
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1 |21cr|0ad-0.0.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude_from ^%{_libdir}/0ad/
%global __requires_exclude ^(libAtlasUI.*\.so|libCollada.*\.so|libmozjs78.*\.so)

Summary:	Cross-Platform RTS Game of Ancient Warfare
Name:		0ad
Version:	0.0.26
Release:	1
Epoch:		1
License:	GPLv2+ and BSD and MIT and IBM and MPLv2.0
Group:		Games/Strategy
Url:		http://play0ad.com
Source0:	http://releases.wildfiregames.com/%{name}-%{version}-alpha-unix-build.tar.xz
# adapted from binaries/system/readme.txt
# It is advisable to review this file at on newer versions, to update the
# version field and check for extra options. Note that windows specific,
# and disabled options were not added to the manual page.
Source1:	0ad.6
# From Fedora
# Only do fcollada debug build with enabling debug maintainer mode
# It also prevents assumption there that it is building in x86
Patch0:		0ad-0.0.26-alpha-debug.patch
Patch1:		0ad-0.0.26-egl-header-path.patch
# From OpenMandriva
# Adding include directories in the wrong order the way 0ad likes to do
# results in cstdlib not finding stdlib.h with include_next
Patch5:		0ad-0.0.23-dont-mess-with-include-dirs.patch
# Fix build with zlib-ng
Patch11:	0ad-no-ZEXPORT.patch
Patch12:	0ad-0.0.26-alpha-check.patch
BuildRequires:	cargo
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	nasm
BuildRequires:	rust
BuildRequires:	subversion
BuildRequires:	boost-devel
BuildRequires:	libdnet-devel
BuildRequires:	miniupnpc-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(gloox)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(IL)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libenet)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data
# Does not build with mozjs-78
# source/scriptinterface/ScriptTypes.h:85:2: error: #error Your compiler is trying to use an untested minor version of the SpiderMonkey library. If you are a package maintainer, please make sure to check very carefully that this version does not change the behaviour of the code executed by SpiderMonkey. Different parts of the game (e.g. the multiplayer mode) rely on deterministic behaviour of the JavaScript engine. A simple way for testing this would be playing a network game with one player using the old version and one player using the new version. Another way for testing is running replays and comparing the final hash (check trac.wildfiregames.com/wiki/Debugging#Replaymode). For more information check this link: trac.wildfiregames.com/wiki/Debugging#Outofsync
Provides:	bundled(mozjs) = 78

%description
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform
real-time strategy (RTS) game of ancient warfare. In short, it is a
historically-based war/economy game that allows players to relive or rewrite
the history of Western civilizations, focusing on the years between 500 B.C.
and 500 A.D. The project is highly ambitious, involving state-of-the-art 3D
graphics, detailed artwork, sound, and a flexible and powerful custom-built
game engine.

The game has been in development by Wildfire Games (WFG), a group of volunteer,
hobbyist game developers, since 2001.

%files
%doc README.txt
%license LICENSE.txt license_gpl-2.0.txt license_lgpl-2.1.txt
%{_gamesbindir}/0ad
%{_gamesbindir}/pyrogenesis
%{_libdir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/appdata/0ad.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_gamesdatadir}/%{name}
%{_mandir}/man6/*.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-alpha

sed -i 's/"0"/"-1"/' build/workspaces/update-workspaces.sh
build/workspaces/clean-workspaces.sh

%build
export CC=%{__cc}
export CFLAGS="%{optflags}"
# avoid warnings with gcc 4.7 due to _FORTIFY_SOURCE in CPPFLAGS
export CPPFLAGS="`echo %{optflags} | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//'`"
build/workspaces/update-workspaces.sh	\
	--bindir %{_gamesbindir}	\
	--datadir %{_gamesdatadir}/%{name}	\
	--libdir %{_libdir}/%{name}	\
	--without-pch			\
	--without-nvtt			\
	%{?_smp_mflags}
sed -i -e "s,-isystem.*,-I`pwd`/libraries/source/cxxtest-4.4 -I%{_includedir}/SDL2 -I%{_includedir}/X11 -I%{_includedir}/valgrind -I`pwd`/libraries/source/spidermonkey/include-unix-release -I`pwd`/source/third_party/tinygettext/include -I%{_includedir}/libxml2 -I%{_includedir}/wx-3.1 -I%{_libdir}/wx/include/gtk3-unicode-3.1 -I`pwd`/libraries/source/fcollada/include,g" build/workspaces/gcc/*.make
%make -C build/workspaces/gcc config=release verbose=1

%install
export CC=%{__cc}
install -d -m 755 %{buildroot}%{_gamesbindir}
install -m 755 binaries/system/pyrogenesis %{buildroot}%{_gamesbindir}/pyrogenesis

install -d -m 755 %{buildroot}%{_libdir}/%{name}
for name in AtlasUI Collada; do
	install -m 755 binaries/system/lib${name}.so %{buildroot}%{_libdir}/%{name}/lib${name}.so
done

install -p -m 755 binaries/system/libmozjs78-ps-release.so %{buildroot}%{_libdir}/%{name}/

install -d -m 755 %{buildroot}%{_datadir}/appdata
install -p -m 644 build/resources/0ad.appdata.xml %{buildroot}%{_datadir}/appdata

install -d -m 755 %{buildroot}%{_gamesdatadir}/applications
install -m 644 build/resources/0ad.desktop %{buildroot}%{_gamesdatadir}/applications/%{name}.desktop
perl -pi -e 's|%{_bindir}/0ad|%{_gamesbindir}/0ad|;' \
	%{buildroot}%{_gamesdatadir}/applications/%{name}.desktop

install -d -m 755 %{buildroot}%{_gamesdatadir}/pixmaps
install -m 644 build/resources/0ad.png %{buildroot}%{_gamesdatadir}/pixmaps/%{name}.png

install -d -m 755 %{buildroot}%{_gamesdatadir}/%{name}
cp -a binaries/data/* %{buildroot}%{_gamesdatadir}/%{name}

install -d -m 755 %{buildroot}%{_mandir}/man6
install -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man6/%{name}.6
ln -sf %{name}.6 %{buildroot}%{_mandir}/man6/pyrogenesis.6

desktop-file-validate %{buildroot}%{_gamesdatadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_datadir}
mv -f %{buildroot}%{_gamesdatadir}/{pixmaps,applications} %{buildroot}%{_datadir}

cat > %{buildroot}%{_gamesbindir}/0ad <<EOF
#!/bin/sh

cd %{_gamesdatadir}/0ad
LD_LIBRARY_PATH=%{_libdir}/0ad %{_gamesbindir}/pyrogenesis "\$@"
EOF
chmod +x %{buildroot}%{_gamesbindir}/0ad

%ifarch aarch64
rm -rf %{buildroot}%{_prefix}/lib/debug/core.19798
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2 |21cr|0ad-data-0.0.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# http://trac.wildfiregames.com/wiki/BuildInstructions#Linux

Summary:	The Data Files for 0 AD
Name:		0ad-data
Version:	0.0.26
Release:	1
Epoch:		1
License:	CC-BY-SA
Group:		Games/Strategy
Url:		http://play0ad.com
Source0:	http://releases.wildfiregames.com/0ad-%{version}-alpha-unix-data.tar.xz
BuildRequires:	unzip
Requires:	fonts-ttf-dejavu
BuildArch:	noarch

%description
0 A.D. (pronounced "zero ey-dee") is a free, open-source, cross-platform
real-time strategy (RTS) game of ancient warfare. In short, it is a
historically-based war/economy game that allows players to relive or rewrite
the history of Western civilizations, focusing on the years between 500 B.C.
and 500 A.D. The project is highly ambitious, involving state-of-the-art 3D
graphics, detailed artwork, sound, and a flexible and powerful custom-built
game engine.

This package contains the 0ad data files.

%files
%license LICENSE-art.txt LICENSE-audio.txt
%{_gamesdatadir}/0ad

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n 0ad-%{version}-alpha

%build
pushd binaries/data/mods/public
	mkdir tmp
	pushd tmp
		unzip -x ../public.zip
		cp -a art/LICENSE.txt ../../../../../LICENSE-art.txt
		cp -a audio/LICENSE.txt ../../../../../LICENSE-audio.txt
		rm -fr *
	popd
	rm -fr tmp
popd

%install
mkdir -p %{buildroot}%{_gamesdatadir}
rm -f tools/fontbuilder/fonts/*.ttf
mv binaries/data %{buildroot}%{_gamesdatadir}/0ad

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3 |21cr|2048-qt-0.1.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   2048-Qt

Name:           2048-qt
Version:        0.1.6
Release:        4
Summary:        Mathematics-based puzzle game
Group:          Games/Puzzles
License:        MIT
URL:            https://github.com/xiaoyong/2048-Qt/
Source0:        https://github.com/xiaoyong/2048-Qt/archive/v%{version}/%{oname}-%{version}.tar.gz
Patch0:         2048-qt-0.1.6-mrb.patch
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	qt5-linguist-tools
BuildRequires:	desktop-file-utils

%description
2048 is a mathematics-based puzzle game where you have to slide tiles
on a grid to combine them and create a tile with the number 2048.
You have to merge the similar number tiles by moving the arrow keys
in four different directions. When two tiles with the same number touch,
they will merge into one.

%files -f %{name}.lang
%doc Changelog.md LICENSE README.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man6/%{name}.6*
#----------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%qmake_qt5 
%make
pushd ts
%{_qt5_bindir}/lrelease *.ts
popd

%install
%makeinstall_qt

mkdir -p %{buildroot}%{_iconsdir}/hicolor
cp -a res/icons/{16x16,32x32,48x48,256x256,scalable} %{buildroot}%{_iconsdir}/hicolor

install -D -m644 res/man/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6

mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install res/%{name}.desktop \
  %{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p  %{buildroot}%{_datadir}/%{name}/translations
cp -a ts/*.qm %{buildroot}%{_datadir}/%{name}/translations
  
%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4 |21cr|2mandvd-1.8.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname 2ManDVD

Summary:	Video DVD creation tool, successor to ManDVD
Name:		2mandvd
Version:	1.8.5
Release:	7
# GPLv2 and LGPL for some icons
License:	GPLv2+ and LGPL
Group:		Video
Url:		http://2mandvd.tuxfamily.org/
Source0:	http://download.tuxfamily.org/2mandvd/%{srcname}-%{version}.tar.gz
Patch0:		2ManDVD-1.8.5-ffmpeg2.0.patch
Patch1:		2ManDVD-1.8.5-install.patch
Patch2:		2mandvd-1.8.5-ffmpeg3.patch
Patch3:		2mandvd-1.8.5-gcc6.patch

BuildRequires:	qt4-devel >= 4.6
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)

Requires:	dvd+rw-tools
Requires:	dvdauthor
Requires:	ffmpeg >= 0.5
Requires:	ffmpegthumbnailer
Requires:	mencoder
Requires:	mjpegtools
Requires:	mkisofs
Requires:	mplayer
Requires:	netpbm
Requires:	sox
Requires:	exif
Recommends:	transcode
Obsoletes:	2ManDVD < %{EVRD}

%description
2ManDVD is a graphical tool for creating Video DVDs and slideshows, including
menus.

N.B. Executable name is 2ManDVD.

%files
%{_bindir}/%{srcname}
%{_bindir}/fake.pl
%dir %{_datadir}/%{srcname}
%{_datadir}/%{srcname}/2mandvd_*.qm
%{_datadir}/%{srcname}/Bibliotheque
%{_datadir}/%{srcname}/mandvdico.png
%{_datadir}/applications/%{srcname}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{srcname}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%qmake_qt4 2ManDVD.pro
%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5 |21cr|389-ds-base-1.4.1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%bcond_without	selinux
%bcond_without	check
%bcond_without	perl
%bcond_with	debug
%bcond_without	cockpit

Summary:	389 Directory Server
Name:		389-ds-base
Version:	1.4.1.1
Release:	8
License:	GPLv3+
Group:		System/Servers
Url:		https://www.port389.org/
Source0:	https://releases.pagure.org/389-ds-base/%{name}-%{version}.tar.bz2
%if %{with cockpit}
Source1:	node_modules.tar.gz
%endif
Patch0:		389-ds-base-1.4.1.1-nss3-cert-h-path.patch
# Canonical's employee Timo Aaltonen <tjaalton@debian.org> maintains
# FreeIPA stack in Debian and Ubuntu, so let's prefix his patches with "UBUNTU"
Patch1:		UBUNTU-fix-obsolete-target.patch
Patch2:		UBUNTU-fix-systemctl-path.patch
Patch3:		UBUNTU-use-bash-instead-of-sh.patch

BuildRequires:	cracklib-devel
BuildRequires:	doxygen
%if %{with debug}
BuildRequires:	%{_lib}asan2
%endif
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	openldap-devel
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(systemd)

%if %{with cockpit}
BuildRequires:	rsync
BuildRequires:	nodejs
%endif

%if %{with check}
BuildRequires:	pkgconfig(cmocka)
%endif

%if %{with perl}
BuildRequires:	perl-bignum
BuildRequires:	perl-devel
BuildRequires:	perl-Archive-Tar
BuildRequires:	perl-DBM-Deep
BuildRequires:	perl-Mozilla-LDAP
BuildRequires:	perl-NetAddr-IP
%endif

Requires:	%{_lib}jemalloc1
# (Fedora) required to support the mandatory LDAP SASL mechs
Requires:	%{_lib}sasl2-plug-gssapi
Requires:	%{_lib}sasl2-plug-crammd5
Requires:	%{_lib}sasl2-plug-plain

%description
389 Directory Server is an LDAPv3 compliant server. The base package includes
the LDAP server and command line utilities for server administration.

%files
%doc LICENSE LICENSE.GPLv3+ LICENSE.mit LICENSE.openssl README.md
%dir %{_sysconfdir}/dirsrv
%dir %{_sysconfdir}/dirsrv/schema
%config(noreplace) %{_sysconfdir}/dirsrv/schema/*.ldif
%dir %{_sysconfdir}/dirsrv/config
%dir %{_sysconfdir}/systemd/system/dirsrv.target.wants
%config(noreplace) %{_sysconfdir}/dirsrv/config/slapd-collations.conf
%config(noreplace) %{_sysconfdir}/dirsrv/config/certmap.conf
%config(noreplace) %{_sysconfdir}/dirsrv/config/ldap-agent.conf
%config(noreplace) %{_sysconfdir}/dirsrv/config/template-initconfig
%config(noreplace) %{_sysconfdir}/sysconfig/dirsrv
%config(noreplace) %{_sysconfdir}/sysconfig/dirsrv.systemd
%dir %{_datadir}/dirsrv
%{_datadir}/dirsrv/data/
%{_datadir}/dirsrv/inf/
%{_datadir}/dirsrv/mibs/
%{_datadir}/dirsrv/schema/
%{_unitdir}/dirsrv-snmp.service
%{_unitdir}/dirsrv.target
%{_unitdir}/dirsrv@.service

%{_bindir}/dbscan
%{_bindir}/ds-replcheck
%{_bindir}/ds-logpipe.py
%{_bindir}/ldclt
%{_bindir}/logconv.pl
%{_bindir}/pwdhash
%{_bindir}/readnsstate

%{_sbindir}/bak2db
%{_sbindir}/db2bak
%{_sbindir}/db2index
%{_sbindir}/db2ldif
%{_sbindir}/dbverify
%{_sbindir}/ldap-agent
%{_sbindir}/ldif2db
%{_sbindir}/ldif2ldap
%{_sbindir}/ns-slapd
%{_sbindir}/restart-dirsrv
%{_sbindir}/start-dirsrv
%{_sbindir}/status-dirsrv
%{_sbindir}/stop-dirsrv
%{_sbindir}/upgradedb
%{_sbindir}/vlvindex

%dir %{_libdir}/dirsrv
%dir %{_libdir}/dirsrv/python
%{_libdir}/dirsrv/python/*.py*
%dir %{_libdir}/dirsrv/plugins
%{_libdir}/dirsrv/plugins/*.so
%{_libdir}/ds_selinux_*
%{_libdir}/ds_systemd_*
%{_datadir}/gdb/auto-load/*
%{_sysctldir}/70-dirsrv.conf
%dir %{_localstatedir}/dirsrv
%dir %{_localstatedir}/lib/dirsrv
%dir %{_logdir}/dirsrv
%ghost %dir %{_localstatedir}/lock/dirsrv
%{_mandir}/man1/dbscan.1.*
%{_mandir}/man1/ds-replcheck.1.*
%{_mandir}/man1/ds-logpipe.py.1.*
%{_mandir}/man1/ldclt.1.*
%{_mandir}/man1/logconv.pl.1.*
%{_mandir}/man1/pwdhash.1.*
%{_mandir}/man1/readnsstate.1.*
%{_mandir}/man1/ldap-agent.1.*
%{_mandir}/man8/ldif2ldap.8.*
%{_mandir}/man8/ns-slapd.8.*
%{_mandir}/man8/bak2db.8.*
%{_mandir}/man8/db2bak.8.*
%{_mandir}/man8/db2index.8.*
%{_mandir}/man8/db2ldif.8.*
%{_mandir}/man8/dbverify.8.*
%{_mandir}/man8/ldif2db.8.*
%{_mandir}/man8/restart-dirsrv.8.*
%{_mandir}/man8/start-dirsrv.8.*
%{_mandir}/man8/status-dirsrv.8.*
%{_mandir}/man8/stop-dirsrv.8.*
%{_mandir}/man8/upgradedb.8.*
%{_mandir}/man8/vlvindex.8.*
%{_mandir}/man5/99user.ldif.5.*
%{_mandir}/man5/certmap.conf.5.*
%{_mandir}/man5/template-initconfig.5.*
%{_mandir}/man5/slapd-collations.conf.5.*
%{_mandir}/man5/dirsrv.5.*
%{_mandir}/man5/dirsrv.systemd.5.*

%post
output=/dev/null
output2=/dev/null
# reload to pick up any changes to systemd files
/bin/systemctl daemon-reload >$output 2>&1 || :
# reload to pick up any shared lib changes
/sbin/ldconfig
# find all instances
instances="" # instances that require a restart after upgrade
ninst=0 # number of instances found in total
if [ -n "$DEBUGPOSTTRANS" ] ; then
	output=$DEBUGPOSTTRANS
	output2=${DEBUGPOSTTRANS}.upgrade
fi

# Soft static allocation for UID and GID
USERNAME="dirsrv"
ALLOCATED_UID=389
GROUPNAME="dirsrv"
ALLOCATED_GID=389
HOMEDIR="/usr/share/dirsrv"

getent group $GROUPNAME >/dev/null || /usr/sbin/groupadd -f -g $ALLOCATED_GID -r $GROUPNAME
if ! getent passwd $USERNAME >/dev/null ; then
	/usr/sbin/useradd -r -u $ALLOCATED_UID -g $GROUPNAME -d $HOMEDIR -s /sbin/nologin -c "user for 389-ds-base" $USERNAME
fi

# Reload our sysctl before we restart (if we can)
sysctl --system &> $output; true

echo looking for instances in %{_sysconfdir}/dirsrv > $output 2>&1 || :
instbase="%{_sysconfdir}/dirsrv"
for dir in $instbase/slapd-* ; do
	echo dir = $dir >> $output 2>&1 || :
	if [ ! -d "$dir" ] ; then continue ; fi
	case "$dir" in *.removed) continue ;; esac
	basename=`basename $dir`
	inst="dirsrv@`echo $basename | sed -e 's/slapd-//g'`"
	echo found instance $inst - getting status >> $output 2>&1 || :
	if /bin/systemctl -q is-active $inst ; then
		echo instance $inst is running >> $output 2>&1 || :
		instances="$instances $inst"
	else
		echo instance $inst is not running >> $output 2>&1 || :
	fi
	ninst=`expr $ninst + 1`
done
if [ $ninst -eq 0 ] ; then
	echo no instances to upgrade >> $output 2>&1 || :
	exit 0 # have no instances to upgrade - just skip the rest
fi
# shutdown all instances
echo shutting down all instances . . . >> $output 2>&1 || :
for inst in $instances ; do
	echo stopping instance $inst >> $output 2>&1 || :
	/bin/systemctl stop $inst >> $output 2>&1 || :
done
echo remove pid files . . . >> $output 2>&1 || :
/bin/rm -f /var/run/dirsrv*.pid /var/run/dirsrv*.startpid
# do the upgrade
echo upgrading instances . . . >> $output 2>&1 || :
DEBUGPOSTSETUPOPT=`echo $DEBUGPOSTSETUP | sed -e "s/[^d]//g"`
if [ -n "$DEBUGPOSTSETUPOPT" ] ; then
	%{_sbindir}/setup-ds.pl -l $output2 -$DEBUGPOSTSETUPOPT -u -s General.UpdateMode=offline >> $output 2>&1 || :
else
	%{_sbindir}/setup-ds.pl -l $output2 -u -s General.UpdateMode=offline >> $output 2>&1 || :
fi

# restart instances that require it
for inst in $instances ; do
	echo restarting instance $inst >> $output 2>&1 || :
	/bin/systemctl start $inst >> $output 2>&1 || :
done
exit 0

%systemd_post dirsrv-snmp.service

%preun
if [ $1 -eq 0 ]; then # Final removal
	# remove instance specific service files/links
	rm -rf %{_sysconfdir}/systemd/system/dirsrv.wants/* > /dev/null 2>&1 || :
fi

%systemd_preun dirsrv-snmp.service dirsrv

%postun
/sbin/ldconfig
if [ $1 = 0 ]; then # Final removal
	rm -rf /var/run/dirsrv
fi

%systemd_postun_with_restart dirsrv-snmp.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Core libraries for 389 Directory Server
Group:		System/Servers
Provides:	%{name}-libs = %{EVRD}
Conflicts:	svrcore

%description -n %{libname}
Core libraries for the 389 Directory Server base package. These libraries
are used by the main package and the -devel package. This allows the -devel
package to be installed with just the -libs package without the main package.

%files -n %{libname}
%doc LICENSE LICENSE.GPLv3+ LICENSE.mit LICENSE.openssl README.md
%dir %{_libdir}/dirsrv
%{_libdir}/libslapd.so.%{major}*
%{_libdir}/libns-dshttpd-%{version}.so
%{_libdir}/libnunc-stans.so.%{major}*
%{_libdir}/libsds.so.%{major}*
%{_libdir}/libldaputil.so.%{major}*
%{_libdir}/libsvrcore.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for 389 Directory Server
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(nspr)
Requires:	pkgconfig(nss)
Requires:	pkgconfig(svrcore)
Requires:	openldap-devel
Requires:	pkgconfig(talloc)
Requires:	pkgconfig(libevent)
Requires:	pkgconfig(tevent)
Requires:	pkgconfig(systemd)
Provides:	%{name}-devel = %{EVRD}
Conflicts:	svrcore-devel

%description -n %{devname}
Development Libraries and headers for the 389 Directory Server base package.

%files -n %{devname}
%doc LICENSE LICENSE.GPLv3+ LICENSE.mit LICENSE.openssl README.md
%{_includedir}/dirsrv
%{_includedir}/svrcore.h
%{_libdir}/libslapd.so
%{_libdir}/libns-dshttpd.so
%{_mandir}/man3/*
%{_libdir}/libnunc-stans.so
%{_libdir}/libsds.so
%{_libdir}/libldaputil.so
%{_libdir}/libsvrcore.so
%{_libdir}/pkgconfig/*

#------------------------------------------------------------------

%package legacy-tools
Summary:	Legacy utilities for 389 Directory Server
Group:		System/Base
Requires:	%{name} = %{EVRD}

%description legacy-tools
Legacy (and deprecated) utilities for 389 Directory Server. This includes
the old account management and task scripts. These are deprecated in favour of
the dscreate, dsctl, dsconf and dsidm tools.

%files legacy-tools
%{_bindir}/infadd
%{_bindir}/ldif
%{_bindir}/migratecred
%{_bindir}/mmldif
%{_bindir}/rsearch

%{_sbindir}/dbmon.sh
%{_sbindir}/dn2rdn
%{_sbindir}/monitor
%{_sbindir}/restoreconfig
%{_sbindir}/saveconfig
%{_sbindir}/suffix2instance
%{_sbindir}/upgradednformat

%{_mandir}/man1/infadd.1.*
%{_mandir}/man1/ldif.1.*
%{_mandir}/man1/migratecred.1.*
%{_mandir}/man1/mmldif.1.*
%{_mandir}/man1/rsearch.1.*
%{_mandir}/man8/dbmon.sh.8.*
%{_mandir}/man8/dn2rdn.8.*
%{_mandir}/man8/monitor.8.*
%{_mandir}/man8/restoreconfig.8.*
%{_mandir}/man8/saveconfig.8.*
%{_mandir}/man8/suffix2instance.8.*
%{_mandir}/man8/upgradednformat.8.*

%if %{with perl}
%dir %{_datadir}/dirsrv/properties
%{_datadir}/dirsrv/properties/ns-slapd.properties
%{_datadir}/dirsrv/properties/*.res
%{_datadir}/dirsrv/script-templates
%{_datadir}/dirsrv/updates

%{_bindir}/cl-dump
%{_bindir}/cl-dump.pl
%{_bindir}/dbgen.pl
%{_bindir}/repl-monitor
%{_bindir}/repl-monitor.pl

%{_sbindir}/bak2db.pl
%{_sbindir}/cleanallruv.pl
%{_sbindir}/db2bak.pl
%{_sbindir}/db2index.pl
%{_sbindir}/db2ldif.pl
%{_sbindir}/fixup-linkedattrs.pl
%{_sbindir}/fixup-memberof.pl
%{_sbindir}/ldif2db.pl
%{_sbindir}/migrate-ds.pl
%{_sbindir}/ns-accountstatus.pl
%{_sbindir}/ns-activate.pl
%{_sbindir}/ns-inactivate.pl
%{_sbindir}/ns-newpwpolicy.pl
%{_sbindir}/remove-ds.pl
%{_sbindir}/schema-reload.pl
%{_sbindir}/setup-ds.pl
%{_sbindir}/syntax-validate.pl
%{_sbindir}/usn-tombstone-cleanup.pl
%{_sbindir}/verify-db.pl

%{_mandir}/man1/dbgen.pl.1.*
%{_mandir}/man1/repl-monitor.1.*
%{_mandir}/man1/repl-monitor.pl.1.*
%{_mandir}/man1/cl-dump.1.*
%{_mandir}/man1/cl-dump.pl.1.*
%{_mandir}/man8/bak2db.pl.8.*
%{_mandir}/man8/cleanallruv.pl.8.*
%{_mandir}/man8/db2bak.pl.8.*
%{_mandir}/man8/db2index.pl.8.*
%{_mandir}/man8/db2ldif.pl.8.*
%{_mandir}/man8/fixup-linkedattrs.pl.8.*
%{_mandir}/man8/fixup-memberof.pl.8.*
%{_mandir}/man8/ldif2db.pl.8.*
%{_mandir}/man8/migrate-ds.pl.8.*
%{_mandir}/man8/ns-accountstatus.pl.8.*
%{_mandir}/man8/ns-activate.pl.8.*
%{_mandir}/man8/ns-inactivate.pl.8.*
%{_mandir}/man8/ns-newpwpolicy.pl.8.*
%{_mandir}/man8/remove-ds.pl.8.*
%{_mandir}/man8/schema-reload.pl.8.*
%{_mandir}/man8/setup-ds.pl.8.*
%{_mandir}/man8/syntax-validate.pl.8.*
%{_mandir}/man8/usn-tombstone-cleanup.pl.8.*
%{_mandir}/man8/verify-db.pl.8.*

%{_libdir}/dirsrv/perl/
%endif

#------------------------------------------------------------------

%if %{with cockpit}
%package -n cockpit-389-ds
Summary:	Cockpit UI Plugin for configuring and administering the 389 Directory Server
BuildArch:	noarch
Group:		System/Base
#Requires:	cockpit

%description -n cockpit-389-ds
A cockpit UI Plugin for configuring and administering the 389 Directory Server

%files -n cockpit-389-ds
%dir %{_datadir}/metainfo/389-console
%{_datadir}/metainfo/389-console/org.cockpit-project.389-console.metainfo.xml
%{_datadir}/cockpit/389-console
%endif

#------------------------------------------------------------------

%prep
%setup -q
tar -xzf %{SOURCE1} -C "./src/cockpit/389-console"
%apply_patches

%build
%serverbuild
autoreconf -fiv
%configure2_5x \
	--enable-autobind \
	--with-selinux \
	--with-openldap \
	--with-tmpfiles-d=%{_tmpfilesdir} \
	--with-systemdsystemunitdir=%{_unitdir} \
	--with-systemdsystemconfdir=%{_sysconfdir}/systemd/system \
	--with-perldir=%{_bindir} \
	--with-systemdgroupname=dirsrv.target \
	--with-svrcore-inc=%{_includedir} \
	--with-svrcore-lib=%{_libdir} \
	--with-nspr-lib=%{_libdir} \
	--with-nspr-inc=%{_includedir}/nspr4 \
	--with-nss-lib=%{_libdir} \
	--with-nss-inc=%{_includedir}/nss \
	--with-systemd \
%if %{with debug}
	--enable-asan \
	--enable-debug \
%endif
%if %{with check}
	--enable-cmocka
%endif

%make

%if %{with cockpit}
# cockpit plugin
%make 389-console
%endif

# argparse-manpage dynamic man pages have hardcoded man v1 in header,
# need to change it to v8
#sed -i "1s/\"1\"/\"8\"/" ./src/lib389/man/ds{conf,ctl,idm,create}.8

%check
%make check || { cat test-suite.log; exit 1; }

%install
%makeinstall_std

mkdir -p %{buildroot}%{_localstatedir}/{lib/,lock/,log/,}dirsrv

# for systemd
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/dirsrv.target.wants

# remove libtool and static libs
find %{buildroot} -type f \( -name "*.la" -o -name "*.a" \) -delete

%if %{with perl}
# make sure perl scripts have a proper shebang
sed -i 's|#0|#!%{_bindir}/perl|' %{buildroot}%{_datadir}/dirsrv/script-templates/template-*.pl
sed -i 's|File::Spec->tmpdir|"/tmp"|g' %{buildroot}%{_libdir}/dirsrv/perl/DSCreate.pm
%endif

# move main libraries to common directory
mv %{buildroot}%{_libdir}/dirsrv/*.so* %{buildroot}%{_libdir}/

# Copy in our docs from doxygen
mkdir -p %{buildroot}%{_mandir}/man3
cp man/man3/* %{buildroot}%{_mandir}/man3/

# Fix path to systemctl in scripts
sed -i 's|%{_bindir}/systemctl|/bin/systemctl|' %{buildroot}%{_sbindir}/*-dirsrv


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6 |21cr|3proxy-0.9.4-1.git7e681b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 7e681bbacd3fb9b401950100577269e108990bf8
%define commit_short %(echo %{commit} | head -c6)

Name:		3proxy
Version:	0.9.4
Release:	1.git%{commit_short}.1
Summary:	Tiny but very powerful proxy
License:	BSD or ASL 2.0 or GPLv2+ or LGPLv2+
Group:		Networking/Other
Url:		http://3proxy.ru/
Source0:	https://github.com/z3APA3A/3proxy/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	gcc
BuildRequires:	openssl-devel
Patch0:		3proxy-0.6.1-config-path.patch
# https://github.com/3proxy/3proxy/pull/750
Patch1:		0001-Fix-underlinkage-of-SSLPlugin.patch

# default archiver in the config
Recommends:	gzip

%description
%{name} -- light proxy server.
Universal proxy server with HTTP, HTTPS, SOCKS v4, SOCKS v4a, SOCKS v5, FTP,
POP3, UDP and TCP portmapping, access control, bandwith control, traffic
limitation and accounting based on username, client IP, target IP, day time,
day of week, etc.

%prep
%autosetup -p1 -n %{name}-%{commit}

# To use "fedora" CFLAGS (exported)
sed -i -e "s/CFLAGS =/CFLAGS +=/" Makefile.Linux

sed -i'' -e '/^PLUGINS/d' Makefile.Linux

# copied to docs later
mv src/plugins/StringsPlugin/ReadMe.txt src/plugins/StringsPlugin/StringsPlugin_ReadMe.txt
mv src/plugins/TrafficPlugin/ReadMe.txt src/plugins/TrafficPlugin/TrafficPlugin_ReadMe.txt
mv src/plugins/TrafficPlugin/Changelog.txt src/plugins/TrafficPlugin/TrafficPlugin_Changelog.txt

%build
%setup_compile_flags
%serverbuild
%make -f Makefile.Linux PLUGINS="$(ls -1v src/plugins | tr '\n' ' ')"

%install

# config or a file like /etc/3proxy/passwd may contain passwords
mkdir --mode=0700 -p %{buildroot}%{_sysconfdir}/3proxy
mkdir -p %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/
mkdir -p %{buildroot}%{_mandir}/man{3,8}
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/3proxy
install -m755 $(ls bin/* | grep -v '.so$') %{buildroot}%{_bindir}
install -m755 $(ls bin/* | grep '.so$') %{buildroot}%{_libdir}/3proxy

sed cfg/3proxy.cfg.sample \
	-e 's,/usr/local/bin/3proxy,%{_bindir}/3proxy,g' \
	-e 's,/usr/local/3proxy/3proxy.cfg,%{_sysconfdir}/3proxy/3proxy.cfg,g' \
	-e 's,/usr/local/etc/3proxy,%{_sysconfdir}/3proxy,g' \
	-e 's,^archiver rar,#archiver rar,g' \
	-e 's,^#archiver gz /bin/gzip,archiver gz gzip,g' \
	-e 's,^#log /var/log/3proxy/log D,log @3proxy,g' \
	-e 's,^log c:,#log c:,g' \
> %{buildroot}%{_sysconfdir}/3proxy/3proxy.cfg

cat scripts/3proxy.service | sed \
	-e 's,=/bin/3proxy,=%{_bindir}/3proxy,g' \
> %{buildroot}/%{_unitdir}/%{name}.service

	for man in man/*.{3,8} ; do
	install "$man" "%{buildroot}%{_mandir}/man${man:(-1)}/"
	done

cat > %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/40-%{name} <<EOF
#!/bin/sh
	if [ "\$2" = "up" ]; then
	  systemctl try-restart %{name}.service || : # reload doesn't work
	fi
EOF

mkdir -p %{buildroot}%{_docdir}/%{name}/doc/txt/plugins
install -m0644 src/plugins/*/*.txt %{buildroot}%{_docdir}/%{name}/doc/txt/plugins
echo "" >> %{buildroot}%{_sysconfdir}/3proxy/3proxy.cfg
echo "# See %{_docdir}/%{name}/doc/txt/plugins and %{_docdir}/%{name}/doc/html/plugins" >> %{buildroot}%{_sysconfdir}/3proxy/3proxy.cfg
for i in $(ls -1v ${buildroot}%{_libdir}/3proxy)
do
	echo "#plugin %{_libdir}/3proxy/$i <...>" >> %{buildroot}%{_sysconfdir}/3proxy/3proxy.cfg
done

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%triggerpostun -- %{name} < 0.9.4
# updated package changed location of the config
if test -f /etc/3proxy.cfg.rpmsave; then
	mv -v /etc/3proxy.cfg.rpmsave /etc/3proxy/3proxy.cfg
fi

%files
%doc README authors doc
%license copying
%{_bindir}/3proxy
%{_bindir}/ftppr
%{_bindir}/mycrypt
%{_bindir}/pop3p
%{_bindir}/proxy
%{_bindir}/socks
%{_bindir}/smtpp
%{_bindir}/tcppm
%{_bindir}/udppm
%{_libdir}/3proxy/*.so
%config(noreplace) %{_sysconfdir}/3proxy/3proxy.cfg
%dir %attr(0700,root,root) %{_sysconfdir}/3proxy
%attr(0755,root,root) %config %{_sysconfdir}/NetworkManager/dispatcher.d/40-%{name}
%{_localstatedir}/log/%{name}
%{_mandir}/man8/*.8*
%{_mandir}/man3/*.3*
%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7 |21cr|4kstogram-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Debug would make sense if we build 4kstogram from sources,
# but it seems to be quite tricky to build it with our boost
%define debug_package %{nil}
%global __provides_exclude lib.*
%global __requires_exclude libQt.*|libicu.*|libssl.*|libjpeg.*

Summary:	Instagram client
Name:		4kstogram
Version:	2.3
Release:	1
License:	Free for non-commercial usage
Group:		Networking/File transfer
Url:		http://4kdownload.com
Source0:	https://downloads.4kdownload.com/app/%{name}_%{version}_i386.tar.bz2
Source1:	https://downloads.4kdownload.com/app/%{name}_%{version}_amd64.tar.bz2
Source2:	%{name}.png
BuildRequires:	imagemagick

%description
View and download instagram user photos on desktop.

%files
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -qcT
%ifarch %{ix86}
tar xvf %{SOURCE0}
%else
tar xvf %{SOURCE1}
%endif

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -r %{name} %{buildroot}%{_datadir}

mkdir -p %{buildroot}/%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/bin/sh
pushd %{_datadir}/%{name}
./%{name}.sh
popd
EOF

chmod 755 %{buildroot}%{_bindir}/%{name}

for s in 16 22 32 48 64 128; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
	convert -geometry ${s}x${s} %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/%{name}.png
done

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=4K Stogram
Name[ru]=4K Stogram
Comment=Instagram client
Comment[ru]=Клиент Instagram
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=System;Network;
EOF

desktop-file-install \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8 |21cr|4kstogram-3.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Debug would make sense if we build 4kstogram from sources,
# but it seems to be quite tricky to build it with our boost
%define debug_package %{nil}
%global __provides_exclude lib.*
%global __requires_exclude libQt.*|libicu.*|libssl.*|libjpeg.*

Summary:	Instagram client
Name:		4kstogram
Version:	3.4.1
Release:	1
License:	Free for non-commercial usage
Group:		Networking/File transfer
Url:		http://4kdownload.com
Source1:	https://dl.4kdownload.com/app/%{name}_%{version}_amd64.tar.bz2
Source2:	%{name}.png
BuildRequires:	imagemagick
ExclusiveArch:	x86_64

%description
View and download instagram user photos on desktop.

%files
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -qcT
tar xvf %{SOURCE1}

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -r %{name} %{buildroot}%{_datadir}

mkdir -p %{buildroot}/%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/bin/sh
pushd %{_datadir}/%{name}
./%{name}.sh
popd
EOF

chmod 755 %{buildroot}%{_bindir}/%{name}

for s in 16 22 32 48 64 128; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
	convert -geometry ${s}x${s} %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/%{name}.png
done

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=4K Stogram
Name[ru]=4K Stogram
Comment=Instagram client
Comment[ru]=Клиент Instagram
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=System;Network;
EOF

desktop-file-install \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9 |21cr|4pane-4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname 4Pane

Summary:	A quad-panel detailed-list file manager for linux
Name:		4pane
Version:	4.0
Release:	1
License:	GPLv3+
Group:		File tools
Url:		http://www.4pane.co.uk
Source0:	http://sourceforge.net/projects/fourpane/files/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	wxgtku2.8-devel
BuildRequires:	pkgconfig(liblzma)

%description
4Pane is a detailed-list file manager which displays directories and files
in separate panes. Generally two pairs of these twin-panes are displayed at
a time, allowing easy dragging/pasting of files. 4Pane aims to be fast and
fully-featured without bloat.

%files -f %{oname}.lang
%{_bindir}/%{name}
%{_datadir}/%{oname}/
%{_datadir}/applications/%{name}.desktop
#%{_datadir}/appdata/%{oname}.appdata.xml
%{_miconsdir}/%{name}.xpm
%{_iconsdir}/%{name}.xpm
%{_iconsdir}/hicolor/*/apps/%{oname}.*
%{_liconsdir}/%{name}.png
%{_datadir}/doc/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-desktop
%make CXX="g++ %{optflags}"

%install
%makeinstall_std

mv %{buildroot}%{_bindir}/%{oname} %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=%{name}
GenericName=File Manager
Comment=A four-pane file manager
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
StartupNotify=false
Categories=FileManager;Utility;
EOF

# icons
install -D -m 644 bitmaps/%{oname}Icon48.png %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 644 bitmaps/%{oname}Icon32.xpm %{buildroot}%{_iconsdir}/%{name}.xpm
install -D -m 644 bitmaps/%{oname}Icon16.xpm %{buildroot}%{_miconsdir}/%{name}.xpm

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10 |21cr|4stAttack-2.1.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Connect-four for pygame
Name:		4stAttack
Version:	2.1.4
Release:	16
Group:		Games/Boards
License:	GPLv2
URL:		http://forcedattack.sourceforge.net
Source:		http://belnet.dl.sourceforge.net/sourceforge/forcedattack/%{name}-%{version}.tar.bz2
Source2:	%{name}-icons.tar.bz2
Requires:	pygame >= 1.5.3
BuildArch:	noarch

%description
4stAttack is a game in which you have to try to out-smart your opponent.
The goal of the game is to connect four of stones in  a	 straight  line.
This can be horizontaly, vertically or diagonally.

This rpm works with the portable pygame game-engine.


%prep
%setup -q
%setup -q -T -D -a2

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_gamesbindir}/%{name}
cp -R *  %{buildroot}%{_gamesbindir}/%{name}
#icon
install -D -m644 %{name}48.png %{buildroot}%{_liconsdir}/%{name}.png
install -D -m644 %{name}32.png %{buildroot}%{_iconsdir}/%{name}.png
install -D -m644 %{name}16.png %{buildroot}%{_miconsdir}/%{name}.png

# Lets make a wrapper.
mkdir -p %{buildroot}%{_bindir}
cat << EOF > %{buildroot}%{_bindir}/%{name}
#!/bin/sh
cd %{_prefix}/games/%{name}

if [ ! -f ~/.%{name} ]; then
    cp settings.ini ~/.%{name} || exit 1
fi

%{__python} 4stattack.py -ini ~/.%{name}
EOF

# Menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Connect-four for pygame
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Boards;Game;BoardGame;
EOF

%files
%defattr(644,root,root,755)
%doc changelog.txt README.txt
%dir %{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}/*

%{_datadir}/applications/mandriva-%{name}.desktop

%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

%defattr(755,root,root,755)
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11 |21cr|4ti2-1.6.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define _libexecdir %{_prefix}/libexec

%define major 0
%define lib4ti2common %mklibname 4ti2common %{major}
%define lib4ti2gmp %mklibname 4ti2gmp %{major}
%define lib4ti2int32 %mklibname 4ti2int32_ %{major}
%define lib4ti2int64 %mklibname 4ti2int64_ %{major}
%define lib4ti2util %mklibname 4ti2util %{major}
%define libzsolve %mklibname zsolve %{major}
%define devname %mklibname %{name} -d

Summary:	A software package for problems on linear spaces
Name:		4ti2
Version:	1.6.7
Release:	4
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://www.4ti2.de/
Source0:	http://www.4ti2.de/version_%{version}/%{name}-%{version}.tar.gz
Source1:	http://www.4ti2.de/4ti2_manual.pdf
Patch0:		4ti2-missing-libs.diff
Patch1:		4ti2-docdir.diff
BuildRequires:	glpk-devel
BuildRequires:	gmp-devel
BuildRequires:	gmpxx-devel

%description
A software package for algebraic, geometric and combinatorial
problems on linear spaces.

This package uses Environment Modules, to load the binaries onto
your PATH you will need to run module load %{name}-%{_arch}.

%files
%doc COPYING AUTHORS TODO NEWS README 4ti2_manual.pdf
%{_bindir}/*
%{_libexecdir}/%{name}/

#----------------------------------------------------------------------------

%package -n %{lib4ti2common}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}lib4ti2-0 < 1.6.7-2
Obsoletes:	%{_lib}lib4ti2-0 < 1.6.7-2

%description -n %{lib4ti2common}
This package contains the 4ti2 program library.

%files -n %{lib4ti2common}
%{_libdir}/lib4ti2common.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{lib4ti2gmp}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}lib4ti2-0 < 1.6.7-2

%description -n %{lib4ti2gmp}
This package contains the 4ti2 program library.

%files -n %{lib4ti2gmp}
%{_libdir}/lib4ti2gmp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{lib4ti2int32}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}lib4ti2-0 < 1.6.7-2

%description -n %{lib4ti2int32}
This package contains the 4ti2 program library.

%files -n %{lib4ti2int32}
%{_libdir}/lib4ti2int32.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{lib4ti2int64}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}lib4ti2-0 < 1.6.7-2

%description -n %{lib4ti2int64}
This package contains the 4ti2 program library.

%files -n %{lib4ti2int64}
%{_libdir}/lib4ti2int64.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{lib4ti2util}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}lib4ti2-0 < 1.6.7-2

%description -n %{lib4ti2util}
This package contains the 4ti2 program library.

%files -n %{lib4ti2util}
%{_libdir}/lib4ti2util.so.%{major}*

#----------------------------------------------------------------------------

%package  -n %{libzsolve}
Summary:	Library for solving linear systems over integers for 4ti2
Group:		System/Libraries

%description -n %{libzsolve}
This package contains the 4ti2 library for solving systems linear systems over
integers (\mathbb{Z}).

%files -n %{libzsolve}
%{_libdir}/libzsolve.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{lib4ti2common} = %{EVRD}
Requires:	%{lib4ti2gmp} = %{EVRD}
Requires:	%{lib4ti2int32} = %{EVRD}
Requires:	%{lib4ti2int64} = %{EVRD}
Requires:	%{lib4ti2util} = %{EVRD}
Requires:	%{libzsolve} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This subpackage contains the include files and library links for
developing against 4ti2's libraries.

%files  -n %{devname}
%doc COPYING AUTHORS TODO NEWS README
%{_includedir}/pkg/%{name}
%{_libdir}/lib*.so

#----------------------------------------------------------------------------

%prep
%setup -q
cp -p %{SOURCE1} .
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure \
	--enable-shared \
	--disable-static \
	--includedir="%{_includedir}/pkg/%{name}" \
	--docdir="%{_docdir}/%{name}"

%make

%install
%makeinstall_std

mkdir -p "%{buildroot}/%{_bindir}" "%{buildroot}/%{_libexecdir}/%{name}";
mv "%{buildroot}/%{_bindir}"/* "%{buildroot}/%{_libexecdir}/%{name}/";
pushd "%{buildroot}/%{_libexecdir}/%{name}";
for i in *; do
	ln -s "%{_libexecdir}/%{name}/$i" "%{buildroot}/%{_bindir}/4ti2_$i";
done;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12 |21cr|7kaa-2.15.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
# Needed because data parser expects DOS EOLs
%define dont_fix_eol 1

Summary:	Seven Kingdoms: Ancient Adversaries is a real-time strategy game
Name:		7kaa
Version:	2.15.5
Release:	2
License:	GPLv2+
Group:		Games/Strategy
Url:		http://7kfans.com/
Source0:	https://github.com/the3dfxdude/7kaa/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1:	%{name}.png
Source2:	%{name}.xpm
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(libenet)
Obsoletes:	%{name}-data < 2.14.4
Recommends:	%{name}-music

%description
Seven Kingdoms made departures from the traditional real-time strategy models
of "gather resources, build a base and army, and attack". The economic model
bears more resemblance to a turn-based strategy game. It features an espionage
system that allows players to train and control spies individually, who each
have a spying skill that increases over time. The player is also responsible
for catching spies in their own kingdom. Inns built within the game allow
players to hire mercenaries of various occupations, skill levels, and races.
Skilled spies of enemy races are essential to a well-conducted espionage
program, and the player can bolster his forces by grabbing a skilled fighter
or give ones own factories, mines, and towers of science, a boost by hiring a
skilled professional.

Enlight Software decided to release the game to the Open Source community
in August 2009. At that time everything, but the music, was released under
the GPL v2. The music has a slightly different license.

%files -f %{name}.lang
%doc COPYING README
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.*
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir} \
	--disable-curl
%make V=1

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/pixmaps
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/
install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Seven Kingdoms
Comment=Seven Kingdoms: Ancient Adversaries
Type=Application
Exec=7kaa
Icon=7kaa
Categories=Game;StrategyGame;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13 |21cr|7kaa-music-2.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname 7kaa

Summary:	Game music files for Seven Kingdoms: Ancient Adversaries
Name:		%{oname}-music
Version:	2.15.0
Release:	1
License:	Freeware
Group:		Games/Strategy
Url:		http://7kfans.com/
Source0:	http://www.7kfans.com/downloads/%{name}.tar.bz2
Recommends:	%{oname} >= %{version}
BuildArch:	noarch

%description
Game music files used by Seven Kingdoms: Ancient Adversaries game.

%files
%doc COPYING-Music.txt README-Music.txt
%{_gamesdatadir}/%{oname}/music

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build

%install
mkdir -p %{buildroot}%{_gamesdatadir}/%{oname}/music
cp -r music/* %{buildroot}%{_gamesdatadir}/%{oname}/music/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14 |21cr|a2jmidid-9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ALSA to JACK MIDI Bridging tools
Name:		a2jmidid
Version:	9
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/linuxaudio/a2jmidid
Source0:	https://github.com/linuxaudio/a2jmidid/archive/%{version}/%{name}-%{version}.tar.gz
# Backported from upstream
Patch0:		a2jmidid-man.patch
Patch1:		a2jmidid-portname.patch
Patch2:		a2jmidid-correct-arguments-for-a2j_control.patch
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(jack)
Requires:	python3-dbus

%description
A tools suite allowing the use of ALSA MIDI applications and hardware
in a JACK MIDI system. The package provides a2j, a2jmidi_bridge,
a2j_control, j2amidi_bridge and a2jmidid, which are small command-line
applications establishing the bridge between ALSA and JACK MIDI.

%files
%doc AUTHORS.rst README.rst CHANGELOG.rst LICENSE
%{_bindir}/*
%{_datadir}/dbus-1/services/org.gna.home.a2jmidid.service
%{_mandir}/man1/*.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

# Fix Python shebangs
sed -i 's|^#!/usr/bin/env python3|#!/usr/bin/python3|' a2j_control


%build
%meson
%meson_build


%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15 |21cr|a4tech-bloody-linux-driver-0-1.git02ca58.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 02ca5835eb106326b1f9d3014df20b2f8f164a2a
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Linux driver for a4tech bloody mouse series
Name:		a4tech-bloody-linux-driver
Version:	0
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		System/Configuration/Hardware
Url:		https://github.com/maxmati/a4tech-bloody-linux-driver
Source0:	https://github.com/maxmati/a4tech-bloody-linux-driver/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(libusb-1.0)

%description
Linux driver for a4tech bloody mouse series.
This tool allows setting backlight level of A4TECH wired mouse.

%files
%doc README.md
%license LICENSE.md
%{_bindir}/bloody

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
mkdir -p %{buildroot}%{_bindir}
cp build/bloody %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16 |21cr|a-a-p-1.094-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Construction tool
Name:		a-a-p
Version:	1.094
Release:	1
License:	GPLv2
Group:		Development/Other
Url:		http://www.a-a-p.org/
Source0:	http://belnet.dl.sourceforge.net/sourceforge/%{name}/aap-%{version}.zip
BuildRequires:	pkgconfig(python2)
Provides:	aap = %{EVRD}
BuildArch:	noarch

%description
A-A-P is an Open Source software construction tool--that is, a build
tool; an improved substitute for the classic Make utility; a better way
to build software.

a-a-p "configuration files" are similar to makefile but they can include
Python.
a-a-p uses MD5 signatures to rebuild only when the contents of a file have
really changed, not just when the timestamps has been touched.  a-a-p
supports side-by-side variant builds, and is easily extended with user-
defined Builder and/or Scanner objects.  Most of the a-a-p logic is object
oriented, including default build rules for many types of program,  they are
all over-loadable also.

%files
%{_bindir}/*
%{_prefix}/lib/aap
%{_mandir}/man*/*
%{_docdir}/aap-%{version}

#--------------------------------------------------------------------

%prep
%setup -q -n aap-%{version} -c aap-%{version}

sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/python2/' *.py
sed -i 's/\/usr\/bin\/env python/\/usr\/bin\/python2/' aap

%build

%install
export PYTHONOPTIMIZE=1
mkdir -p %{buildroot}%{_prefix}
./aap PREFIX=%{buildroot}%{_prefix} install

pushd %{buildroot}%{_bindir}
rm aap
ln -s %{_prefix}/lib/aap/Exec-%{version}/aap aap
popd

mkdir -p %{buildroot}%{_datadir}
mv %{buildroot}%{_prefix}/man %{buildroot}%{_mandir}
mkdir -p %{buildroot}%{_docdir}/aap-%{version}
mv %{buildroot}%{_prefix}/lib/aap/Exec-%{version}/doc %{buildroot}%{_docdir}/aap-%{version}

chmod +x %{buildroot}%{_prefix}/lib/aap/Exec-%{version}/__init__.py

%check
./aap test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17 |21cr|abcde-2.9.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%{nil}

Summary:	Command-line utility to rip and encode audio CD
Name:		abcde
Version:	2.9.3
Release:	2
License:	GPLv2+
Group:		Sound
Url:		https://abcde.einval.com
Source0:	http://abcde.einval.com/download/%{name}-%{version}.tar.gz
Patch0:		%{name}-2.9.3-fix-install-path.patch
# No more binaries: only shell and perl scripts
BuildArch:	noarch
Requires:	cd-discid
Requires:	cdparanoia
Requires:	ffmpeg
Requires:	perl
Requires:	wget
Requires:	vorbis-tools

%description
A frontend command-line utility (actually, a shell script) that grabs tracks
off a CD, encodes them to Ogg/Vorbis, MP3, FLAC, Ogg/Speex and/or
MPP/MP+(Musepack) format, and tags them, all in one go.

%files
%doc changelog README COPYING FAQ
%doc examples/abcded examples/abcde.init examples/autorip.sh examples/cue2discid examples/musicbrainz-get-tracks
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}
%{_bindir}/%{name}-musicbrainz-tool
%{_bindir}/cddb-tool
%{_mandir}/man1/%{name}.*
%{_mandir}/man1/cddb-tool.*

#-----------------------------------------------------------------------------

%prep
%setup -q -b0
%apply_patches


%build
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18 |21cr|abcm2ps-8.14.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts ABC format music sheets into Postscript
Name:		abcm2ps
Version:	8.14.13
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://abcplus.sourceforge.net
Source0:	http://moinejf.free.fr/%{name}-%{version}.tar.gz

%description
abcm2ps is a package which converts music tunes from ABC format
to PostScript. Based on abc2ps version 1.2.5, it was developed
mainly to print polyphonic music, i.e. music with multiple voices
per staff. abcm2ps uses an extension to the ABC language that make
it suitable for classical music. This extended format is documented
under http://abcplus.sourceforge.net/.

%files
%doc README.md *.abc sample3.eps
%{_bindir}/*
%{_datadir}/abcm2ps
%{_datadir}/doc/abcm2ps/examples/
%{_mandir}/man1/abcm2ps.1*

#-------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-a4 \
	--enable-deco-is-roll
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19 |21cr|abcmidi-2022.12.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	abcMIDI

Summary:	Tools for processing ABC music notation files
Name:		abcmidi
Version:	2022.12.22
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://ifdo.ca/~seymour/runabc/top.html
# See also: https://sourceforge.net/projects/abcmidi/files/abcMIDI-%%{version}.zip
Source0:	https://github.com/sshlien/abcmidi/archive/refs/tags/%{name}-%{version}.tar.gz
# Always repack the original abcguide.zip to include the release date in the archive name
Source1:	abcguide-%{version}.tar.xz
# Avoid automatic install of docs: we take them with our %%doc macro
Patch0:	%{name}-2020.08.09-dont-install-docs.patch

%description
The abcMIDI package contains four programs: abc2midi to convert ABC music
notation to midi, midi2abc to convert midi files to (a first approximation
to) the corresponding ABC, abc2abc to reformat and/or transpose ABC files,
and yaps to typeset ABC files as PostScript.
For a description of the abc syntax, please see the abc user-guide.

%files
%doc README.md doc/AUTHORS doc/CHANGES doc/abcguide.txt doc/history.txt doc/readme.txt
%doc abcguide-%{version}/*
%{_bindir}/*
%{_mandir}/man1/*.1*

#-----------------------------------------------------------------------------

%prep
%setup -q -a1
%patch0 -p1


%build
rm -f configure makefile
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20 |21cr|abduco-0.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		abduco
Version:	0.6
Release:	4
Summary:	Session management in a clean and simple way
Group:		Terminals
License:	ISC
Url:		http://www.brain-dump.org/projects/%{name}/
Source0:	http://www.brain-dump.org/projects/%{name}/%{name}-%{version}.tar.gz

%description
%{name} provides session management i.e. it allows programs to be run
independently from its controlling terminal. That is programs can be
detached - run in the background - and then later reattached.
Together with dvtm it provides a simpler and cleaner alternative to tmux or
screen.

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
#-------------------------------------------

%prep
%setup -q
# Apply applicable build flags
echo '#!/bin/sh' > ./configure
chmod +x ./configure

%build
%configure
%make

%install
%makeinstall_std PREFIX=%{_prefix} STRIP=:



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 21 |21cr|abe-1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		abe
Version:	1.1
Release:	11
URL:		http://abe.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		abe-1.1-fix-str-fmt.patch
Patch1:		abe-1.1-drop-x-req.patch
License:	GPL
Group:		Games/Arcade
Summary:	Abe's Amazing Adventure!!
BuildRequires:	SDL-devel SDL_mixer-devel desktop-file-utils

%description
A scrolling, platform-jumping, key-collecting, ancient pyramid
exploring game, vaguely in the style of similar games for the
Commodore+4. The game is intended to show young people all the
cool games they missed.

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
autoreconf -fi
%configure	--bindir=%{_gamesbindir} \
		--with-data-dir=%{_gamesdatadir}/abe
%make

%install
rm -rf %{buildroot}
%makeinstall_std
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a {images,sounds,maps} %{buildroot}%{_gamesdatadir}/%{name}


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{Summary}
Comment=%{Summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc README
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop
%defattr(755,root,root,755)
%{_gamesbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 22 |21cr|abi-compliance-checker-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	API/ABI compatibility checker for C/C++ libraries
Name:		abi-compliance-checker
Version:	2.3
Release:	1
Group:		Development/Other
License:	GPLv1+ or LGPLv2+
Url:		https://lvc.github.io/abi-compliance-checker
Source0:	https://github.com/lvc/abi-compliance-checker/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires:	abi-dumper >= 1.1
Requires:	binutils
Requires:	ctags >= 5.8
Requires:	gcc-c++ >= 4.9
Requires:	perl >= 5.8

%description
ABI Compliance Checker (ABICC) is a tool for checking backward binary and
source-level compatibility of a C/C++ library. The tool checks header files
and shared libraries of old and new versions and analyzes changes in API and
ABI that may break binary and/or source compatibility: changes in calling
stack, v-table changes, removed symbols, renamed fields, etc.

%files
%doc LICENSE README.md doc/
%{_bindir}/%{name}
%{_datadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
# Nothing to build.


%install
mkdir -p %{buildroot}%{_prefix}
perl Makefile.pl -install --prefix=%{_prefix} --destdir=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 23 |21cr|abi-dumper-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dump ABI of an ELF object containing DWARF debug info
Name:		abi-dumper
Version:	1.2
Release:	2
Group:		Development/Other
License:	GPLv2+ or LGPLv2+
Url:		https://github.com/lvc/abi-dumper
Source0:	https://github.com/lvc/abi-dumper/archive/%{name}-%{version}.tar.gz
Patch0:		abi-dumper-1.2-fix-integer-overflow-error.patch
Patch1:		abi-dumper-1.2-fix-symbol-search.patch
Patch2:		abi-dumper-1.2-initial-support-for-Fedora34.patch
BuildArch:	noarch
Requires:	ctags
Requires:	elfutils
Requires:	gcc-c++
Requires:	perl >= 5.8
Requires:	vtable-dumper >= 1.1

%description
A tool to dump ABI of an ELF object containing DWARF debug info. It is
intended to be used with ABI Compliance Checker tool for tracking ABI changes
of a C/C++ library or kernel module.

%files
%doc LICENSE README.md
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build
# Nothing to build.


%install
mkdir -p %{buildroot}%{_prefix}
perl Makefile.pl -install --prefix=%{_prefix} --destdir=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 24 |21cr|abiword-3.0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil
%define api %(echo %{version} | cut -d. -f1,2)

%global __requires_exclude devel\\(libabiword.*\\)

Summary:	Lean and fast full-featured word processor
Name:		abiword
Version:	3.0.5
Release:	2
License:	GPLv2+
Group:		Office
Url:		http://www.abisource.com/
Source0:	http://www.abisource.com/downloads/abiword/%{version}/source/%{name}-%{version}.tar.gz
Source11:	abiword.mime
Source12:	abiword.keys
Source13:	abiword.xml
Source100:	abiword.rpmlintrc
# from Fedora
Patch1:		abiword-2.8.3-desktop.patch
Patch2:		abiword-2.6.0-boolean.patch
Patch3:		abiword-3.0.5-librevenge.patch
Patch4:		abiword-3.0.2-explicit-python.patch
Patch5:		abiword-3.0.4-pygobject.patch
Patch6:		abiword-3.0.5-deps.patch
BuildRequires:	asio
BuildRequires:	bison
BuildRequires:	desktop-file-utils
BuildRequires:	gnome-common
BuildRequires:	boost-devel
BuildRequires:	jpeg-devel
BuildRequires:	libwmf-devel
BuildRequires:	psiconv-devel
BuildRequires:	readline-devel
BuildRequires:	tidy-devel
BuildRequires:	pkgconfig(aiksaurus-1.0)
BuildRequires:	pkgconfig(cairo-pdf)
BuildRequires:	pkgconfig(cairo-ps)
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gaiksaurus-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libgoffice-0.10)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libots-1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libwps-0.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(link-grammar)
BuildRequires:	pkgconfig(loudmouth-1.0)
BuildRequires:	pkgconfig(mathview-frontend-libxml2)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(rasqal)
BuildRequires:	pkgconfig(redland)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(wv-1.0)

Recommends:	abiword-doc

%description
AbiWord is a cross-platform, open source, lean and fast full-featured word
processor. It works on Most Unix systems, Microsoft Windows and Mac OS X.

Abiword with the GNOME front-end is part of the GNOME Office Suite.
See http://www.gnomeoffice.org for details.

%files
%{_bindir}/abiword
%{_datadir}/abiword-%{api}
%dir %{_libdir}/abiword-%{api}
%dir %{_libdir}/abiword-%{api}/plugins
%{_libdir}/abiword-%{api}/plugins/*.so
# this isnt a devel lib
%{_libdir}/libabiword-%{api}.so
%{_libdir}/libAiksaurusGtk3.so
%{_libdir}/libAiksaurusGtk3--export-dynamic.so
%{_datadir}/applications/*.desktop
%{_datadir}/mime-info/abiword.mime
%{_datadir}/mime-info/abiword.keys
%{_datadir}/mime/packages/abiword.xml
%{_datadir}/appdata/abiword.appdata.xml
%{_iconsdir}/hicolor/*/*
%{_mandir}/man1/abiword.1.*

#----------------------------------------------------------------------------

%package devel
Summary:	Devel files for Abiword
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
This pacakage contains devel files for Abiword, mainly header files
and pkg files.

%files devel
%{_includedir}/abiword-%{api}
%{_libdir}/pkgconfig/abiword-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
export CXXFLAGS="%{optflags} -std=gnu++11"
enable_dynamic=yes %configure \
	--disable-static \
	--enable-default-plugins \
	--enable-emacs-keybinding \
	--enable-vi-keybinding \
	--enable-clipart \
	--enable-templates \
	--enable-collab-backend-xmpp \
	--enable-collab-backend-tcp \
	--enable-collab-backend-sugar \
	--enable-collab-backend-service \
	--with-gio \
	--with-goffice \
	--with-inter7eps \
	--with-libtidy \
	--enable-plugins="wml goffice freetranslation latex eml gimp mif loadbindings babelfish wpg openxml mswrite wordperfect mathview urldict presentation pdb psion google paint hancom xslfo opendocument openwriter t602 iscii wmf ots command sdw gdict opml clarisworks kword pdf grammar passepartout applix aiksaurus wikipedia hrtext s5 docbook"

%make

%install
%makeinstall_std

desktop-file-install --vendor="" \
	--remove-category="X-Red-Hat-Base" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

install -p -m 0644 -D %{SOURCE11} %{buildroot}%{_datadir}/mime-info/abiword.mime
install -p -m 0644 -D %{SOURCE12} %{buildroot}%{_datadir}/mime-info/abiword.keys
install -p -m 0644 -D %{SOURCE13} %{buildroot}%{_datadir}/mime/packages/abiword.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 25 |21cr|abiword-docs-3.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Documentation and help files for Abiword
Name:		abiword-docs
Version:	3.0.1
Release:	4
License:	GPLv2+
Group:		Office
Url:		http://www.abisource.com/
Source0:	http://www.abisource.com/downloads/abiword/%{version}/source/%{name}-%{version}.tar.gz
BuildRequires:	abiword-devel >= 3.0
BuildRequires:	pkgconfig(libglade-2.0)
# Exclude some pages pending http://bugzilla.abisource.com/show_bug.cgi?id=13459
Patch0:		abiword-docs-2.9.4-mga-temp_build_fix-en-US-Makefile.in.patch
Patch1:		abiword-docs-2.9.4-mga-temp_build_fix-pl-PL-Makefile.in.patch
Patch2:		abiword-docs-2.9.4-mga-temp_build_fix-fr-FR-Makefile.in.patch
BuildArch:	noarch

%description
Documentation and help files for Abiword.

#----------------------------------------------------------------------------

%package en
Summary:	English documentation and help files for Abiword
Requires:	locales-en
Provides:	abiword-doc = %{EVRD}
BuildArch:	noarch

%description en
English documentation and help files for Abiword.

%files en
%{_datadir}/abiword*/help/en-US
%dir %{_datadir}/abiword*/help/

#----------------------------------------------------------------------------

%package fr
Summary:	French documentation and help files for Abiword
Requires:	locales-fr
Provides:	abiword-doc = %{EVRD}
BuildArch:	noarch

%description fr
French documentation and help files for Abiword.

%files fr
%{_datadir}/abiword*/help/fr-FR
%dir %{_datadir}/abiword*/help/

#----------------------------------------------------------------------------

%package pl
Summary:	Polish documentation and help files for Abiword
Requires:	locales-pl
Provides:	abiword-doc = %{EVRD}
BuildArch:	noarch

%description pl
Polish documentation and help files for Abiword.

%files pl
%{_datadir}/abiword*/help/pl-PL
%dir %{_datadir}/abiword*/help/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .abiword-docs-2.9.4-mga-temp_build_fix-en-US-Makefile.in.patch
%patch1 -p0 -b .abiword-docs-2.9.4-mga-temp_build_fix-pl-PL-Makefile.in.patch
%patch2 -p0 -b .abiword-docs-2.9.4-mga-temp_build_fix-fr-FR-Makefile.in.patch

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 26 |21cr|abook-0.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Text-based addressbook program for mutt
Name:		abook
Version:	0.6.1
Release:	2
License:	GPLv2+
Group:		Networking/Mail
Url:		http://abook.sourceforge.net/
Source0:	http://abook.sourceforge.net/devel/%{name}-%{version}.tar.gz
Patch0:		abook-0.6.1-gcc5.patch
Patch1:		abook-0.6.1-preserve.patch
BuildRequires:	gettext-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncursesw)

%description
Abook is a text-based addressbook program designed for use with the mutt 
mail client.

%files -f %{name}.lang
%doc AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO
%{_bindir}/abook
%{_mandir}/man*/abook*.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

chmod 644 AUTHORS BUGS COPYING ChangeLog NEWS README THANKS TODO

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 27 |21cr|abootimg-0-0.git7e127f.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 7e127fee6a3981f6b0a50ce9910267cd501e09d4
%define commit_short %(echo %{commit} | head -c6)

Summary:	Tool for manipulating Android boot images
Name:		abootimg
Version:	0
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		Development/Other
Url:		https://github.com/ggrandou/abootimg
Source0:	https://github.com/ggrandou/abootimg/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	pkgconfig(blkid)

%description
Tool for manipulating Android boot images

%files
%{_bindir}/abootimg
%{_mandir}/man1/abootimg.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
echo "#define VERSION_STR \"%{version}-%{release}\"" > version.h
%__cc %{optflags} -DHAS_BLKID -lblkid abootimg.c -o abootimg %{ldflags}

%install
install -D -m 755 abootimg %{buildroot}%{_bindir}/abootimg
install -D -m 644 -p debian/abootimg.1 %{buildroot}%{_mandir}/man1/abootimg.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 28 |21cr|abspath-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Return the absolute path of a file or directory
Name:		abspath
Version:	0.1
Release:	11
License:	GPLv2+
Group:		File tools
Url:		http://voxel.jouy.inra.fr/darcs/abspath
Source0:	%{name}-%{version}.tar.bz2
Patch0:		abspath-asciidoc.patch
Patch1:		abspath-0.1-python2.patch
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	xmlto
Requires:	python2
BuildArch:	noarch

%description
Return a normalized absolutized version of the pathnames. If no arguments
are passed on the command line, the standard input is used.

%files
%{_bindir}/abspath
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
chmod a+x abspath
asciidoc -b docbook -d manpage abspath.1.txt
xmlto man abspath.1.xml
perl -e 's/\.sp$/\n\.sp/g' -pi abspath.1

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0755 abspath %{buildroot}%{_bindir}/
install -m 0644 abspath.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 29 |21cr|abuse_sdl-0.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	abuse

Summary:	The classic Crack-Dot-Com game
Name:		%{oname}_sdl
Version:	0.9.0
Release:	2
License:	GPLv2
Group:		Games/Arcade
Url:		http://abuse.zoy.org/
Source0:	https://github.com/Xenoveritas/abuse/archive/refs/tags/v%{version}.tar.gz
Patch0:		abuse-0.9.0-linkage.patch
BuildRequires:	imagemagick
BuildRequires:	cmake
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
Requires:	TiMidity++

%description
Abuse-SDL is a port of Abuse, the classic Crack-Dot-Com game, to the
SDL library. It can run at any color depth, in a window or fullscreen,
and it has stereo sound with sound panning.

%files
%doc AUTHORS README.md TODO.md
%{_bindir}/abuse-tool
%{_gamesbindir}/*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_gamesdatadir}/%{oname}
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_miconsdir}/*.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1

%build
%global optflags %{optflags} -I%{_includedir}/SDL2
%cmake
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Abuse
Comment=The classic Crack-Dot-Com game
Exec=%{_gamesbindir}/%{oname}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

install -d %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert doc/%{oname}.png %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 doc/%{oname}.png %{buildroot}%{_liconsdir}/%{name}.png
convert -size 16x16 doc/%{oname}.png %{buildroot}%{_miconsdir}/%{name}.png

install -d %{buildroot}{%{_gamesdatadir}/%{oname},%{_gamesbindir}}
mv %{buildroot}%{_bindir}/%{oname} %{buildroot}%{_gamesbindir}/%{oname}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 30 |21cr|ac3info-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to display ac3 properties
Name:		ac3info
Version:	0.1
Release:	10
License:	GPLv2+
Group:		File tools
Url:		http://konilope.linuxeries.org/ac3info/
Source0:	%{name}-%{version}.tar.gz
Patch0:		ac3info-0.1-optflags.patch

%description
This tool display some informations about some ac3 files.

%files
%{_bindir}/ac3info

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%setup_compile_flags
%make

%install
%setup_compile_flags
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 31 |21cr|acabit-en-26112003-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname acabit

Summary:	Automatic Corpus-based Acquisition of Binary Terms
Name:		%{oname}-en
Version:	26112003
Release:	13
License:	GPLv2+
Group:		Sciences/Computer science
Url:		http://www.sciences.univ-nantes.fr/info/perso/permanents/daille/acabit.html
Source0:	http://www.sciences.univ-nantes.fr/info/perso/permanents/daille/%{oname}_en_%{version}.tar.bz2
Requires:	locales-en
Provides:	%{oname} = %{EVRD}
BuildArch:	noarch

%description
ACABIT is a terminological aquisition software, taking an annotated  text as
input, and returning an ordered list of candidates terms.

This is the English version.

%files
%doc exemple_en.txt
%{_bindir}/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}_en

%build
perl -pi -e 's|require \("lib/(.*)"\);|require ("%{_datadir}/%{name}/$1");|' */*.pl

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 755 *.pl %{buildroot}%{_bindir}
install -m 644 lib/* %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 32 |21cr|acabit-fr-4.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname acabit

Summary:	Automatic Corpus-based Acquisition of Binary Terms
Name:		%{oname}-fr
Version:	4.3
Release:	12
Epoch:		1
License:	GPLv2+
Group:		Sciences/Computer science
Url:		http://www.sciences.univ-nantes.fr/info/perso/permanents/daille/acabit.html
Source0:	http://www.sciences.univ-nantes.fr/info/perso/permanents/daille/%{oname}_fr_v%{version}.tar.bz2
Requires:	locales-fr
Provides:	%{oname} = %{EVRD}
BuildArch:	noarch

%description
ACABIT is a terminological aquisition software, taking an annotated  text as
input, and returning an ordered list of candidates terms.

This is the French version.

%files
%doc README_FR exemple_fr.txt
%{_bindir}/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}_fr_03112004

%build
perl -pi -e 's|require \("lib/(.*)"\);|require ("%{_datadir}/%{name}/$1");|' */*.pl

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 755 *.pl %{buildroot}%{_bindir}
install -m 644 lib/* %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 33 |21cr|accerciser-3.39.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	An interactive Python tool for querying accessibility information
Name:		accerciser
Version:	3.39.1
Release:	1
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	https://gitlab.gnome.org/GNOME/accerciser/-/raw/master/plugins/ipython_view.py
License:	BSD
Group:		Accessibility
Url:		http://live.gnome.org/Accerciser
BuildArch:	noarch
BuildRequires:	appstream-util
BuildRequires:	appstream-glib-devel
BuildRequires:	pkgconfig(atspi-2) >= 2.1.5
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.1.13
BuildRequires:	pkgconfig(pygobject-3.0) >= 2.90.3
BuildRequires:	pkgconfig(python3)
BuildRequires:	ipython
BuildRequires:	itstool
BuildRequires:	yelp-tools
Requires:	python3-cairo
Requires:	python3-gi
Requires:	python3-ipython
Requires:	python3-pyatspi
Requires:	typelib(Atspi)
Requires:	typelib(Wnck) = 3.0

%description
An interactive Python accessibility explorer.

%files -f %{name}.lang
%doc AUTHORS README NEWS 
%{_bindir}/%{name}
/usr/lib/python?.?/site-packages/accerciser
%{_datadir}/glib-2.0/schemas/org.a11y.Accerciser.gschema.xml
%{_datadir}/%{name}
%{_iconsdir}/hicolor/symbolic/apps/accerciser-symbolic.svg
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/accerciser.appdata.xml
%{_mandir}/man1/*

#-----------------------------------------------------------------

%prep
%setup -q

# Missing from 3.39.1 tarball; fixed in upstream git master
cp -a %{SOURCE1} plugins/

%build
export PYTHON=%__python3
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/accerciser.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 34 |21cr|acetoneiso-2.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package	%{nil}

Summary:	CD/DVD Image Manipulator
Name:		acetoneiso
Version:	2.4
Release:	8
License:	GPLv3+
Group:		Archiving/Other
Url:		https://sourceforge.net/projects/acetoneiso/
Source0:	https://download.sourceforge.net/acetoneiso/%{name}_%{version}.tar.gz
# FIXME: Find a way to remove the use of deprecated HAL.
# Adapted patches from Debian and upstream
Patch0:	acetoneiso-2.4-add-manpage.patch
Patch1:	acetoneiso-2.4-update-desktop-file.patch
Patch2:	acetoneiso-2.4-drop-refs-to-defunct-homepage.patch
Patch3:	acetoneiso-2.4-use-system-youtube_dl.patch
Patch4:	acetoneiso-2.4-fix-metacafe-support.patch
Patch5:	acetoneiso-2.4-port-to-qt5.patch
# We don't provide poweriso, but it's really needed...
# So tell the user where to find it.
Patch6:	acetoneiso-2.4-tell-the-user-about-poweriso-download.patch
# We don't wodim anymore, however it is option compatible with cdrecord:
# use the latter.
Patch7:	acetoneiso-2.4-replace-wodim-with-cdrecord.patch
# FIXME: Update this one...
#Patch8:	acetoneiso-2.3-ru.patch
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	cdrdao
Requires:	cdrkit-genisoimage
Requires:	cdrtools
Requires:	dvd+rw-tools
Requires:	ffmpeg
Requires:	fuse
Requires:	fuseiso
Requires:	gnupg
Requires:	p7zip
Requires:	pinentry-qt5
Requires:	youtube-dl
Requires:	wget
Requires:	xorriso
Recommends:		mencoder
Recommends:		plasma5-dolphin
Recommends:		smplayer
Recommends:		vlc

%description
A CD/DVD image manipulator for Linux, it can do the following:
- Mount and Unmount ISO, MDF, NRG (if iso-9660 standard).
- Convert / Extract / Browse to ISO : *.bin *.mdf *.nrg *.img *.daa *.cdi 
  *.xbx *.b5i *.bwi *.pdi.
- Play a DVD Movie ISO with most commonly-used media players.
- Generate an ISO from a Folder or CD/DVD.
- Generate/Check MD5 file of an image.
- Encrypt/decrypt an image.
- Split image into X megabyte chunks.
- Highly compress an image.
- Rip a PSX CD to *.bin to make it work with epsxe/psx emulators.
- Restore a lost CUE file of *.bin *.img.

%files
%doc AUTHORS CHANGELOG FEATURES LICENSE README
%doc acetoneiso/manual/*.html
%{_bindir}/%{name}
%{_datadir}/applications/AcetoneISO.desktop
%{_datadir}/pixmaps/Acetino2.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}_%{version}
%apply_patches

# Fix perms
chmod -x %{name}/sources/*


%build
pushd %{name}
# Update translations first after we used patch for .ts
lrelease-qt5 ./locale/*.ts
%qmake_qt5
%make
popd


%install
pushd %{name}
make install INSTALL_ROOT=%{buildroot}

# Install our man page
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 manual/%{name}.1 %{buildroot}%{_mandir}/man1
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 35 |21cr|acfax-981011-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:         	acfax
Version:      	981011
Summary:      	Amateur Radio FAX Receiving Software for Linux / X11 
Release:      	6
License:        GPLv2+
Group:          Networking/Other
URL:            http://linux.maruhn.com/sec/acfax.html
Group:        	Networking/Other 
Source:       	ftp://ftp.funet.fi/pub/ham/unix/Linux/misc/%{name}-%{version}.tar.gz
Patch0:        	acfax.dif
Patch1:       	widgets.c_missing_sentinel.diff
Patch2:       	acfax_mod_demod_c__fix-includes.diff
Patch3:       	acfax_DirMgr_RE_SYNTAX_EGREP.patch  
BuildRequires:	gccmakedep
BuildRequires:	imake
BuildRequires:	Xaw3d-devel

%description
Software to receive ham radio faxes with the soundcard.

%prep
%setup -q -n acfax
%patch0
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
xmkmf -a

%make \
	CDEBUGFLAGS="%{optflags}" \
	CXXDEBUGFLAGS="%{optflags}" \
	LOCAL_LDFLAGS="%{ldflags}"


%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc 0* ChangeLog
%{_bindir}/acfax

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 36 |21cr|acidrip-0.14-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple GUI for MEncoder
Name:		acidrip
Version:	0.14
Release:	13
License:	GPLv2+
Group:		Video
Url:		https://sourceforge.net/projects/acidrip/
Source0:	http://prdownloads.sourceforge.net/acidrip/%{name}-%{version}.tar.bz2
Patch0:		acidrip-0.14-xvid_options.patch
Patch1:		acidrip-0.14-mencoder.patch
Patch2:		acidrip-0.14-gtk2.patch
Patch3:		acidrip-0.14-drop-checks.patch
BuildRequires:	lsdvd
BuildRequires:	mencoder
BuildRequires:	mplayer
BuildRequires:	perl-Gtk2
BuildRequires:	perl-devel
Requires:	lsdvd
Requires:	mencoder
Requires:	mplayer
Requires:	perl-Gtk2
Provides:	perl(AcidRip::acidrip)
Provides:	perl(AcidRip::DVDInfo)
Provides:	perl(AcidRip::interface)
Provides:	perl(AcidRip::messages)
Provides:	perl(AcidRip::signals)
BuildArch:	noarch

%description
AcidRip is a Gtk::Perl application for ripping and encoding DVD's. It neatly
wraps MPlayer and MEncoder, which I think is pretty handy, seeing as MPlayer
is by far the best bit of video playing kit around for Linux. As well as
creating a simple Graphical Interface for those scared of getting down and
dirty with MEncoders command line interface, It also automates the process in
a number of ways:
    * Parses DVD into contents tree
    * Finds longest title
    * Calculate video bitrate for given filesize
    * Finds black bands and crops them
    * Gives suggestions for improved performance
    * Other stuff!

%files
%doc CHANGELOG COPYING TODO
%{_bindir}/%{name}
%{perl_vendorlib}/AcidRip
%{_mandir}/man1/*
%{_datadir}/applications/rosa-%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

perl -p -i -e 's/mp3lame/copy/g' Makefile.PL

%build
perl Makefile.PL
%make

%install

%makeinstall_std INSTALLDIRS=vendor

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=AcidRip
Comment=Video ripping and conversion
Exec=%{name}
Icon=video_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Video;AudioVideo;AudioVideoEditing;GTK;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 37 |21cr|ack-3.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ack
%define upstream_version 2.14
%bcond_with	 beta

Name:		%{upstream_name}
Version:	3.6.0
%if %{with beta}
Release:	1
%else
Release:	1
%endif
Summary:	Grep-like text finder for large trees of text

#The Artistic License 2.0 (GPL Compatible)
License:	GPLv2 
Group:		Text tools
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(File::Next)
# for tests
BuildRequires:	perl(IO::Pty::Easy)
BuildArch:	noarch

%description
ack is a grep-like program with optimizations for searching through large trees
of source code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests failing on cluster because they seem to require a real term.
# ==> skipping tests for now
make test

%install
%makeinstall_std

%files
%doc Changes 
%{perl_vendorlib}/App/*
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 38 |21cr|acon-1.0.5-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Arch-independent stuff which ought to be in DATADIR
%define kbddir	%{_prefix}/lib/kbd
%define acondir	%{_prefix}/lib/acon

Summary:	Arabic support for linuxconsole
Name:		acon
Version:	1.0.5
Release:	22
License:	GPLv2+
Group:		System/Internationalization
Source:		http://members.tripod.com/ahmedahamid/arabic/acon-%{version}.tar.bz2
Source1:	%{name}.service
Source3:	%{name}.launcher
# author refuses to integrate Hebrew support, so we need to provide the
# needed files ourselves and do some small patches
Source2:	%{name}-1.0.4-mdk.tar.bz2
Patch0:		%{name}-1.0.4-mdk.patch
Patch1:		acon-1.0.5-fix-str-fmt.patch
URL:		http://members.tripod.com/ahmedahamid/arabic/arabic.html
Requires(post): rpm-helper
Requires(preun):rpm-helper

%description
The function of acon is to display arabic text from right to left,
and process it to change the letter shape according to its position
in the word.

%prep
%setup -q -n %{name} -a2

%patch0 -p1 -b .mdkpatch
%patch1 -p0 -b .str

%build
%serverbuild
%make CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_bindir}
%makeinstall_std

install -m 755 %{SOURCE1} -D %{buildroot}%{_unitdir}/%{name}.service
install -m 755 %{SOURCE3} -D %{buildroot}%{_bindir}/%{name}.launcher

rm %{buildroot}%{acondir}/keymaps/*

cp keymaps/i386/* %{buildroot}%{acondir}/keymaps/
mkdir -p %{buildroot}%{kbddir}/keymaps/i386/qwerty
(cd %{buildroot}%{kbddir}/keymaps/i386/qwerty
 cp ../../../../acon/keymaps/*map .
 gzip -9 *map
)

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service
%files
%doc doc/* README* AUTHORS CHANGES COPYING
%{_unitdir}/%{name}.service
%{_bindir}/%{name}*
%dir %{acondir}
%{acondir}/*
%{kbddir}/keymaps/i386/qwerty/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 39 |21cr|acoustid-fingerprinter-0.7-0.170422.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The last official release was in Sep 2012, but in the devel tree
# there are commits as recent as Apr 2017: let's pick up a devel snapshot
%define	gitdate 170422

Summary:	Music AcoustID fingerprinting application
Name:		acoustid-fingerprinter
%if %{gitdate}
Version:	0.7
Release:	0.%{gitdate}.1
%else
Version:	0.6
Release:	7
%endif
License:	GPLv2+
Group:		Sound
Url:		https://acoustid.org/fingerprinter
%if %{gitdate}
Source0:	%{name}-master.zip
Patch0:	%{name}-master-bump-release.patch
# Perhaps this one is needed no more
#Patch1:		%%{name}-master-request-s16-audio.patch
Patch1:	%{name}-master-enable-using-qt5.patch
%else
Source0:	https://github.com/acoustid/acoustid-fingerprinter/archive/%{name}-%{version}.tar.gz
Patch0:		%{name}-request-s16-audio-format.patch
Patch1:		%{name}-0.6-ffmpeg-2.0.patch
Patch2:		%{name}-0.6-fix-taglib-cmake-detection.patch
Patch3:		%{name}-0.6-fix-build-with-newer-ffmpeg.patch
%endif
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(taglib)

%description
Acoustid fingerprinter is a cross-platform GUI application that uses
Chromaprint to submit audio fingerprints from your music collection to the
Acoustid database. Only tagged audio files are submitted. Files tagged by
MusicBrainz applications such as Picard are preferred, but it will submit
fingerprints for any files that have tags such as track title, artist name,
album name, etc.

%files
%doc CHANGES.txt COPYING.txt 
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

#-----------------------------------------------------------------------------

%prep
%if %{gitdate}
%setup -qn %{name}-master
%patch0 -p1
%patch1 -p1
%else
%setup -q
%apply_patches
%endif


%build
%cmake_qt5
%make


%install
%makeinstall_std -C build

%if !%{gitdate}
# Massage and install the .desktop file
install -d -m755 %{buildroot}%{_datadir}/applications
desktop-file-install \
	--remove-key Encoding \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop
%endif
  
# Install icon
install -p -D -m 0644 images/%{name}.svg  %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 40 |21cr|acpitool-0.5.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A Linux ACPI client 
Name: acpitool
Version: 0.5.1
Release: 5
Source0: http://freeunix.dyndns.org:8088/ftp_site/pub/unix/acpitool/%name-%version.tar.bz2
License: GPL 
Group: System/Kernel and hardware
Url: http://freeunix.dyndns.org:8088/site2/acpitool.shtml


%description
It's a small command-line application,
intended to be a replacement for the apm tool.

%prep
%setup -q -n %name-%{version}

%build
%configure

perl -pi -e "s|/usr/local|$RPM_BUILD_ROOT/usr|g" Makefile
perl -pi -e "s|man/man1|share/man/man1|g" Makefile

make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/acpitool
%{_mandir}/man1/acpitool*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 41 |21cr|acsccid-1.1.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ACS CCID PC/SC Driver for Linux
Name:		acsccid
Version:	1.1.10
Release:	2
License:	LGPL-2.1
Group:		System/Configuration/Hardware
Url:		https://github.com/acshk/acsccid
Source0:	https://github.com/acshk/acsccid/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	autoconf-archive
BuildRequires:	flex
BuildRequires:	perl
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(libusb-1.0)
Requires:	pcsc-lite

%description
Аcsccid is a PC/SC driver for Linux/Mac OS X and it supports ACS CCID smart card
readers. This library provides a PC/SC IFD handler implementation and
communicates with the readers through the PC/SC Lite resource manager (pcscd).

Аcsccid is based on ccid. See CCID free software driver [1] for more.

%files
%doc README
%license COPYING
%{_libdir}/pcsc/drivers/ifd-acsccid.bundle
%{_udevrulesdir}/92_pcscd_acsccid.rules

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./bootstrap
%configure --enable-embedded
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_udevrulesdir}
install -m644 src/92_pcscd_acsccid.rules %{buildroot}%{_udevrulesdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 42 |21cr|adbmanager-3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		adbmanager
Version:	3.1
Release:	1
Group:		System/Configuration/Other
Summary:	Graphical ADB Manager
License:	GPLv3
URL:		https://github.com/AKotov-dev/adbmanager
Source0:	https://github.com/AKotov-dev/adbmanager/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	adbmanager
Source2:	adbmanager.png
Source3:	adbmanager.desktop
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	adb
Requires:	iproute2
Requires:	sakura
Requires:	nmap
Requires:	gtk2


%description
The program is designed for visual and easy management of the ADB 
and connection of Android devices

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%post
[ $(grep "adbusers" /etc/group) ] || groupadd adbusers

#------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.cs.po -o languages/lclstrconsts.cs.mo
msgfmt languages/lclstrconsts.de.po -o languages/lclstrconsts.de.mo
msgfmt languages/lclstrconsts.es.po -o languages/lclstrconsts.es.mo
msgfmt languages/lclstrconsts.fr.po -o languages/lclstrconsts.fr.mo
msgfmt languages/lclstrconsts.it.po -o languages/lclstrconsts.it.mo
msgfmt languages/lclstrconsts.pl.po -o languages/lclstrconsts.pl.mo
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo
msgfmt languages/lclstrconsts.uk.po -o languages/lclstrconsts.uk.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 43 |21cr|adminer-4.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%global appdatadir %{_datadir}/%{name}

Name:    adminer
Version: 4.8.1
Release: 1
Summary: Full-featured database management tool written in PHP
Group:   Databases
License: ASL 2.0 or GPLv2
URL:     http://www.adminer.org/
Source0: https://github.com/vrana/adminer/releases/download/v%{version}/adminer-%{version}.zip
Source1: %{name}.httpd
Source2: %{name}.httpd22
Source3: %{name}.nginx
Source4: %{name}-editor.httpd
Source5: %{name}-editor.httpd22
Source6: %{name}-editor.nginx
Source7: disable-jush.php
Patch0:  disable-jush-plugin.patch

BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}


%description
Adminer (formerly phpMinAdmin) is a full-featured database management tool 
written in PHP. Conversely to phpMyAdmin, it consist of a single file ready to 
deploy to the target server. Adminer is available for MySQL, PostgreSQL, 
SQLite, Oracle, Firebird, SimpleDB, Elasticsearch and MongoDB.

%files
%{_datadir}/%{name}/%{name}
%{_datadir}/%{name}/example-configs/httpd/%{name}.conf
%{_datadir}/%{name}/example-configs/httpd22/%{name}.conf
%{_datadir}/%{name}/example-configs/nginx/%{name}.conf

#-------------------------------------------------------------------

%package editor
Summary:     Easy-to-use and user-friendly database data editing tool written in PHP
Group:       Databases
Requires:    %{name}-common = %{version}-%{release}

%description editor
Adminer Editor is both easy-to-use and user-friendly database data editing
tool written in PHP. It is suitable for common users, as it provides
high-level data manipulation.

%files editor
%{_datadir}/%{name}/editor
%{_datadir}/%{name}/example-configs/httpd/%{name}-editor.conf
%{_datadir}/%{name}/example-configs/httpd22/%{name}-editor.conf
%{_datadir}/%{name}/example-configs/nginx/%{name}-editor.conf

#-------------------------------------------------------------------

%package common
Summary:     Common files for Adminer
Group:       Databases
Requires:    php >= 5.3.0
Requires:    webserver

%description common
Common files and plugins for Adminer and Adminer Editor.

%files common
%doc changes.txt readme.txt todo.txt
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/example-configs
%dir %{_datadir}/%{name}/example-configs/httpd
%dir %{_datadir}/%{name}/example-configs/httpd22
%dir %{_datadir}/%{name}/example-configs/nginx
%{_datadir}/%{name}/plugins
%{_datadir}/%{name}/designs

#-------------------------------------------------------------------

%package designs
Summary:     Alternative designs
Group:       Databases
Requires:    adminer = %{version}

%description designs
Alternative designs for Adminer. Update the symbolic link at
adminer.css to target the desired theme found in
designs/*/adminer.css.

%files designs

#-------------------------------------------------------------------

# Define adminer-database-support packages
%package elasticsearch
Summary:     Dependencies required for Adminer ElasticSearch support
Group:       Databases
Provides:    adminer-database-support = %{version}
Requires:    adminer = %{version}
Requires:    php-horde-Horde-ElasticSearch

%description elasticsearch
Virtual package that requires dependencies needed for Adminer ElasticSearch support

%files elasticsearch

#-------------------------------------------------------------------

%package firebird
Summary:     Dependencies required for Adminer Firebird SQL support
Group:       Databases
Provides:    adminer-database-support = %{version}
Requires:    adminer = %{version}
Requires:    php-firebird

%description firebird
Virtual package that requires dependencies needed for Adminer Firebird SQL support

%files firebird

#-------------------------------------------------------------------

%package mongodb
Summary:     Dependencies required for Adminer MongoDB support
Group:       Databases
Provides:    adminer-database-support = %{version}
Requires:    adminer = %{version}
Requires:    php-horde-Horde-Mongo

%description mongodb
Virtual package that requires dependencies needed for Adminer MongoDB support

%files mongodb

#-------------------------------------------------------------------

#%package mssql
#Summary:        Dependencies required for Adminer MS SQL support
#Group:   Databases
#Provides:       adminer-database-support = %{version}
#Requires:       adminer = %{version}
#Requires:       php-mssql

#%description mssql
#Virtual package that requires dependencies needed for Adminer MS SQL support

#-------------------------------------------------------------------

%package mysql
Summary:     Dependencies required for Adminer MySQL support
Group:       Databases
Provides:    adminer-database-support = %{version}
Requires:    adminer = %{version}
Requires:    php-pdo_mysql

%description mysql
Virtual package that requires dependencies needed for Adminer MySQL support

%files mysql

#-------------------------------------------------------------------

%package pgsql
Summary:     Dependencies required for Adminer PostgreSQL support
Group:       Databases
Provides:    adminer-database-support = %{version}
Requires:    adminer = %{version}
Requires:    php-pdo_pgsql

%description pgsql
Virtual package that requires dependencies needed for Adminer PostgreSQL support

%files pgsql

#-------------------------------------------------------------------

%package sqlite
Summary:     Dependencies required for Adminer SQLite support
Group:       Databases
Provides:    adminer-database-support = %{version}
Requires:    adminer = %{version}
Requires:    php-pdo_sqlite

%description sqlite
Virtual package that requires dependencies needed for Adminer SQLite support

#-------------------------------------------------------------------
%prep
%setup -q


%install
# remove bundled libraries
%{__rm} -rf externals/JsShrink
%{__rm} -rf externals/jush

# remove minification script
%{__rm} -f compile.php

%{__mkdir_p} %{buildroot}%{_datadir}/%{name}
%{__cp} -a adminer %{buildroot}%{_datadir}/%{name}/%{name}
%{__cp} -a editor  %{buildroot}%{_datadir}/%{name}/editor
%{__cp} -a plugins %{buildroot}%{_datadir}/%{name}/plugins
%{__cp} -a designs %{buildroot}%{_datadir}/%{name}/designs

%{__install} -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/example-configs/httpd/%{name}.conf
%{__install} -Dpm 0644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/example-configs/httpd22/%{name}.conf
%{__install} -Dpm 0644 %{SOURCE3} %{buildroot}%{_datadir}/%{name}/example-configs/nginx/%{name}.conf

%{__install} -Dpm 0644 %{SOURCE4} %{buildroot}%{_datadir}/%{name}/example-configs/httpd/%{name}-editor.conf
%{__install} -Dpm 0644 %{SOURCE5} %{buildroot}%{_datadir}/%{name}/example-configs/httpd22/%{name}-editor.conf
%{__install} -Dpm 0644 %{SOURCE6} %{buildroot}%{_datadir}/%{name}/example-configs/nginx/%{name}-editor.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 44 |21cr|adms-2.3.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A code generator that converts electrical compact device models into C code
Name:		adms
Version:	2.3.7
Release:	1
License:	LGPL
Group:		Development/Other
Url:		https://github.com/Qucs/ADMS
Source0:	https://github.com/Qucs/ADMS/archive/release-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	perl-XML-LibXML
Provides:	mot-adms = %{version}-%{release}

%description
ADMS is a code generator that converts electrical compact device models
specified in high-level description language into ready-to-compile c code
for the API of spice simulators.

%files
%doc README.md AUTHORS
%license COPYING
%{_bindir}/admsCheck
%{_bindir}/admsXml
%{_mandir}/man1/admsCheck.1*
%{_mandir}/man1/admsXml.1*

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for ADMS

%description  -n %{libname}
Shared libraries for ADMS.

%files -n %{libname}
%{_libdir}/lib%{name}*.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for ADMS
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description  -n %{devname}
Development files for ADMS.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}*.so


#------------------------------------------------------------------------------

%prep
%setup -q -n ADMS-release-%{version}

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 45 |21cr|admx-chromium-106.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _destdir %{_datadir}/PolicyDefinitions

Name:		admx-chromium
Version:	106.0
Release:	1

Summary:	Chromium-specific ADMX policy templates
License:	CC-BY-2.5
Group:		System/Configuration/Other
Url:		https://www.chromium.org/administrators/policy-templates
# source from Alt linux
Source0:	policy_templates.tar
BuildRequires:	admx-lint
BuildRequires:	/usr/bin/iconv
BuildArch:	noarch

%description
Chromium-specific ADMX files, which are registry-based policy settings provide
an XML-based structure for defining the display of the Administrative Template
policy settings in the Group Policy Object Editor.

%files
%dir %{_destdir}
%dir %{_destdir}/*-*/
%{_destdir}/*.admx
%{_destdir}/*/*.adml

#---------------------------------------------------------------------------
%prep
%setup -q -n policy_templates

%install
mkdir -p %{buildroot}%{_datadir}
cp -a windows/admx/ %{buildroot}%{_destdir}
for file in %{buildroot}%{_destdir}/*.admx %{buildroot}%{_destdir}/*-*/*.adml; do
    if echo "$(basename "$file")" | grep -q "^chrome"; then
        mv "$file" "$file.utf16"
        iconv -f UTF-16 -t UTF-8 <"$file.utf16" >"$file"
        rm -f "$file.utf16"
    fi
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns:xsd=" "$file" ||
        sed -i 's/\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns:xsd="http:\/\/www.w3.org\/2001\/XMLSchema"/' "$file"
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns:xsi=" "$file" ||
        sed -i 's/\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns:xsi="http:\/\/www.w3.org\/2001\/XMLSchema-instance"/' "$file"
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns=" "$file" ||
        sed -i 's/\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns="http:\/\/schemas.microsoft.com\/GroupPolicy\/2006\/07\/PolicyDefinitions"/' "$file"
done

%check
for file in %{buildroot}%{_destdir}/*.admx %{buildroot}%{_destdir}/*-*/*.adml; do
    admx-lint --input_file "$file"
done



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 46 |21cr|admx-firefox-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _destdir %{_datadir}/PolicyDefinitions

Name:		admx-firefox
Version:	4.4
Release:	1
Summary:	Firefox-specific ADMX policy templates
License:	MPL-2.0
Group:		System/Configuration/Other
Url:		https://github.com/mozilla/policy-templates
# source from Alt linux
Source0:	policy-templates.tar
BuildArch:	noarch
BuildRequires:	admx-lint

%description
Firefox-specific ADMX files, which are registry-based policy settings provide
an XML-based structure for defining the display of the Administrative Template
policy settings in the Group Policy Object Editor.

%files
%dir %_destdir
%dir %_destdir/*-*/
%_destdir/*.admx
%_destdir/*/*.adml

#-----------------------------------------------------------------------
%prep
%setup -q -n policy-templates

%install
mkdir -p %{buildroot}%{_datadir}
cp -a windows/ %{buildroot}%{_destdir}
for file in %{buildroot}%{_destdir}/*.admx %{buildroot}%{_destdir}/*-*/*.adml; do
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns:xsd=" "$file" ||
        sed -i 's/^\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns:xsd="http:\/\/www.w3.org\/2001\/XMLSchema"/' "$file"
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns:xsi=" "$file" ||
        sed -i 's/^\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns:xsi="http:\/\/www.w3.org\/2001\/XMLSchema-instance"/' "$file"
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns=" "$file" ||
        sed -i 's/^\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns="http:\/\/schemas.microsoft.com\/GroupPolicy\/2006\/07\/PolicyDefinitions"/' "$file"
done

%check
for file in %{buildroot}%{_destdir}/*.admx %{buildroot}%{_destdir}/*-*/*.adml; do
    admx-lint --input_file "$file"
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 47 |21cr|admx-lint-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		admx-lint
Version:	0.1.0
Release:	1

Summary:	ADMX/ADML verification tool
License:	GPLv2+
Group:		Development/Other
Url:		https://github.com/august-alt/admx-lint
Source0:	https://github.com/altlinux/admx-lint/archive/refs/tags/0.1.0-alt1.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	libxerces-c-devel
BuildRequires:	xsd-devel
BuildRequires:	boost-devel

%description
Is a file verification tool, that checks ADMX/ADML contents against their XSD schema.

%files
%doc README.md
%doc INSTALL.md
%{_bindir}/admx-lint

#-----------------------------------------------
%prep
%setup -q -n %{name}-%{version}-alt1

%build
%cmake
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 48 |21cr|admx-yandex-browser-104.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _destdir %{_datadir}/PolicyDefinitions

Name:		admx-yandex-browser
Version:	104.0
Release:	1
Summary:	YandexBrowser-specific ADMX policy templates
License:	CC-BY-2.5
Group:		System/Configuration/Other
Url:		https://yandex.ru/support/browser-corporate/deployment/deployment.html
Source0:	policy_templates.tar
BuildRequires:	admx-lint
BuildRequires:	/usr/bin/iconv
BuildArch:	noarch

%description
YandexBrowser-specific ADMX files, which are registry-based policy settings
provide an XML-based structure for defining the display of the Administrative
Template policy settings in the Group Policy Object Editor.

%files
%dir %{_destdir}
%dir %{_destdir}/*-*/
%{_destdir}/*.admx
%{_destdir}/*/*.adml

#-----------------------------------------------------------
%prep
%setup -q -n policy_templates

%install
mkdir -p %{buildroot}%{_destdir}
cp -a ./* %{buildroot}%{_destdir}

[ -d %{buildroot}%{_destdir}/en-US ] ||
    cp -a %{buildroot}%{_destdir}/ru-RU %{buildroot}%{_destdir}/en-US

for file in %{buildroot}%{_destdir}/*.admx %{buildroot}%{_destdir}/*-*/*.adml; do
    if echo "$(basename "$file")" | grep -q "\.admx$"; then
        mv "$file" "$file.utf16"
        iconv -f UTF-16 -t UTF-8 <"$file.utf16" >"$file.cr"
        tr -d '\r' <"$file.cr" >"$file"
        rm -f "$file.utf16" "$file.cr"
    fi
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns:xsd=" "$file" ||
        sed -i 's/\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns:xsd="http:\/\/www.w3.org\/2001\/XMLSchema"/' "$file"
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns:xsi=" "$file" ||
        sed -i 's/\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns:xsi="http:\/\/www.w3.org\/2001\/XMLSchema-instance"/' "$file"
    grep -q "^\(<policyDefinitions\|<policyDefinitionResources\) .*xmlns=" "$file" ||
        sed -i 's/\(<policyDefinitions\|<policyDefinitionResources\)/\1 xmlns="http:\/\/schemas.microsoft.com\/GroupPolicy\/2006\/07\/PolicyDefinitions"/' "$file"
done

%check
for file in %{buildroot}%{_destdir}/*.admx %{buildroot}%{_destdir}/*-*/*.adml; do
    admx-lint --input_file "$file"
done



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 49 |21cr|adns-1.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Advanced, easy to use, asynchronous-capable DNS client library
Name:		adns
Version:	1.6.0
Release:	4
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.chiark.greenend.org.uk/~ian/adns/
Source0:	ftp://ftp.chiark.greenend.org.uk/users/ian/adns/%{name}-%{version}.tar.gz
Requires:	%{libname} = %{EVRD}

%description
adns is a resolver library for C (and C++) programs. In contrast with
the existing interfaces, gethostbyname et al and libresolv, it has the
following features:
	* It is reasonably easy to use for simple programs which just want
	to translate names to addresses, look up MX records, etc.
	* It can be used in an asynchronous, non-blocking, manner. Many
	queries can be handled simultaneously.
	* Responses are decoded automatically into a natural representation
	for a C program - there is no need to deal with DNS packet
	formats.
	* Sanity checking (eg, name syntax checking, reverse/forward
	correspondence, CNAME pointing to CNAME) is performed
	automatically.
	* Time-to-live, CNAME and other similar information is returned in
	an easy-to-use form, without getting in the way.
	* There is no global state in the library; resolver state is an
	opaque data structure which the client creates explicitly. A
	program can have several instances of the resolver.
	* Errors are reported to the application in a way that distinguishes
	the various causes of failure properly.
	* Understands conventional resolv.conf, but this can overridden by
	environment variables.
	* Flexibility. For example, the application can tell adns to: ignore
	environment variables (for setuid programs), disable sanity checks
	eg to return arbitrary data, override or ignore resolv.conf in
	favour of supplied configuration, etc.
	* Believed to be correct ! For example, will correctly back off to
	TCP in case of long replies or queries, or to other nameservers if
	several are available. It has sensible handling of bad responses
	etc.

%files
%defattr(-,root,root,0755)
%doc README TODO changelog
%{_bindir}/*

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries needed to run applications using adns
Group:		System/Libraries

%description -n %{libname}
adns is a resolver library for C (and C++) programs. In contrast with
the existing interfaces, gethostbyname et al and libresolv, it has the
following features:
    * It is reasonably easy to use for simple programs which just want
      to translate names to addresses, look up MX records, etc.
    * It can be used in an asynchronous, non-blocking, manner. Many
      queries can be handled simultaneously.
    * Responses are decoded automatically into a natural representation
      for a C program - there is no need to deal with DNS packet
      formats.
    * Sanity checking (eg, name syntax checking, reverse/forward
      correspondence, CNAME pointing to CNAME) is performed
      automatically.
    * Time-to-live, CNAME and other similar information is returned in
      an easy-to-use form, without getting in the way.
    * There is no global state in the library; resolver state is an
      opaque data structure which the client creates explicitly. A
      program can have several instances of the resolver.
    * Errors are reported to the application in a way that distinguishes
      the various causes of failure properly.
    * Understands conventional resolv.conf, but this can overridden by
      environment variables.
    * Flexibility. For example, the application can tell adns to: ignore
      environment variables (for setuid programs), disable sanity checks
      eg to return arbitrary data, override or ignore resolv.conf in
      favour of supplied configuration, etc.
    * Believed to be correct ! For example, will correctly back off to
      TCP in case of long replies or queries, or to other nameservers if
      several are available. It has sensible handling of bad responses
      etc.

This package contains all of adns libraries.

%files -n %{libname}
%defattr(-,root,root,755)
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Advanced, easy to use, asynchronous-capable DNS client library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{libname}-devel < 1.4

%description -n %{devname}
adns is a resolver library for C (and C++) programs. In contrast with
the existing interfaces, gethostbyname et al and libresolv, it has the
following features:
    * It is reasonably easy to use for simple programs which just want
      to translate names to addresses, look up MX records, etc.
    * It can be used in an asynchronous, non-blocking, manner. Many
      queries can be handled simultaneously.
    * Responses are decoded automatically into a natural representation
      for a C program - there is no need to deal with DNS packet
      formats.
    * Sanity checking (eg, name syntax checking, reverse/forward
      correspondence, CNAME pointing to CNAME) is performed
      automatically.
    * Time-to-live, CNAME and other similar information is returned in
      an easy-to-use form, without getting in the way.
    * There is no global state in the library; resolver state is an
      opaque data structure which the client creates explicitly. A
      program can have several instances of the resolver.
    * Errors are reported to the application in a way that distinguishes
      the various causes of failure properly.
    * Understands conventional resolv.conf, but this can overridden by
      environment variables.
    * Flexibility. For example, the application can tell adns to: ignore
      environment variables (for setuid programs), disable sanity checks
      eg to return arbitrary data, override or ignore resolv.conf in
      favour of supplied configuration, etc.
    * Believed to be correct ! For example, will correctly back off to
      TCP in case of long replies or queries, or to other nameservers if
      several are available. It has sensible handling of bad responses
      etc.

This package contains static libraries and header files need for development.

%files -n %{devname}
%defattr(-,root,root,0755)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.a

#----------------------------------------------------------------------

%prep
%setup -q
# make it lib64 aware
perl -pi -e "/^lib_dir=/ and s,/lib,/%{_lib}," settings.make.in

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 50 |21cr|adonthell-0.3.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A 2D graphical RPG game
Name:		adonthell
Version:	0.3.8
Release:	3
License:	GPLv2+
Group:		Games/Adventure
Url:		http://adonthell.nongnu.org/
Source0:	http://download.savannah.gnu.org/releases/adonthell/adonthell-src-%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	swig
BuildRequires:	gpm-devel
# For the dialog editor
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
Recommends:	adonthell-wastesedge

%description
A 2D, graphical, single player role playing game inspired by good old console
RPGs from the SNES like Secret of Mana or Chrono Trigger.
This package contains the game engine. You will also need a game package to
actually play it. For this release, the official package is Waste's Edge.

%files 
%doc ABOUT-NLS ChangeLog COPYING NEWBIE NEWS README
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-dlgedit
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%setup -q

# Set default screen-mode to fullscreen
sed 's|screen_mode = 0|screen_mode = 1|g' -i src/prefs.cc

%build
autoreconf -vfi
export CXXFLAGS="%{optflags} -fno-exceptions"
%configure2_5x \
	--bindir="%{_gamesbindir}"	\
	--datadir="%{_gamesdatadir}"	\
	--with-python="python3"		\
	--enable-dlgedit		\
	--disable-pyc
%make

%install
%makeinstall_std

# We need a binary without the version in the name to support launching games with a .desktop file:
# provide it
mv %{buildroot}%{_gamesbindir}/%{name}-0.3 %{buildroot}%{_gamesbindir}/%{name}

# Install sources for precompiled python modules
install -m644 src/modules/adonthell.py -D %{buildroot}%{_gamesdatadir}/%{name}/modules/adonthell.py
install -m644 src/modules/dialogue.py -D %{buildroot}%{_gamesdatadir}/%{name}/modules/dialogue.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 51 |21cr|adonthell-wastesedge-0.3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	mname	adonthell
%define	rname	wastesedge

Name:		%{mname}-%{rname}
Summary:	Role-playing game (RPG)
Version:	0.3.8
Release:	1
License:	GPLv2+
Group:		Games/Adventure
Url:		http://adonthell.nongnu.org/
Source0:	http://download.savannah.gnu.org/releases/adonthell/%{rname}-src-%{version}.tar.gz
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	python3
BuildRequires:	%{mname} = %{version}
Requires:	%{mname} = %{version}
BuildArch:	noarch

%description
This package contains a game to play with the Adonthell engine.
As a loyal servant of the elven Lady Silverhair, you arrive at the remote
trading post of Waste's Edge, where she is engaged in negotiations with the
dwarish merchant Bjarn Fingolson. But not all is well at Waste's Edge, and
soon you are confronted with circumstances that are about to destroy your
mistress' high reputation. And you are the only one to avert this...

%files
%doc AUTHORS COPYING NEWS PLAYING README
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{mname}/games/%{rname}
%{_datadir}/applications/org.nongnu.%{rname}.desktop
%{_datadir}/metainfo/org.nongnu.%{rname}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{rname}-%{version}


%build
%configure	--bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir}/%{mname}/games/%{rname} \
		--with-adonthell-binary="%{_gamesbindir}/%{mname}" \
		--disable-pyc
%make


%install
%makeinstall_std datadir=%{_datadir}

# Massage the provided .desktop file to match our old one
pushd %{buildroot}%{_datadir}/applications/
desktop-file-edit \
		  --remove-key="Version" \
		  --set-name="Adonthell - Waste's Edge" \
		  --set-generic-name="Open source role-playing game" \
		  --set-icon="%{name}" \
		  --set-key="Exec" --set-value="%{name}" \
		  --add-category="AdventureGame" \
		  org.nongnu.%{rname}.desktop
popd

# Install icons:
# 1. Rename the provided ones to match ours
mv %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{rname}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png 
mv %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{rname}.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
# 2. Provide more png dimensions
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

# Install sources for precompiled python modules to allow rebuilding
# and killing tons of rpmlint warnings
mkdir -p %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/{actions,dialogues,game_events,modules,schedules}
mkdir -p %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/schedules/{audio,mapcharacters,mapviews}
install -m 0644 scripts/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/
install -m 0644 scripts/actions/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/actions/
install -m 0644 scripts/dialogues/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/dialogues/
install -m 0644 scripts/game_events/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/game_events/
install -m 0644 scripts/modules/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/modules/
install -m 0644 scripts/schedules/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/schedules/
install -m 0644 scripts/schedules/audio/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/schedules/audio/
install -m 0644 scripts/schedules/mapcharacters/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/schedules/mapcharacters/
install -m 0644 scripts/schedules/mapviews/*.py %{buildroot}%{_gamesdatadir}/%{mname}/games/%{rname}/scripts/schedules/mapviews/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 52 |21cr|adplay-1.8.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	AdLib music player for the command line
Name:		adplay
Version:	1.8.1
Release:	3
License:	GPLv2+
Group:		Sound
Url:			https://github.com/adplug/adplay-unix
Source0:	https://github.com/adplug/adplay-unix/archive/%{name}-unix-%{version}.tar.gz
Patch0:		adplay-1.8.1-avoid-buffer-underruns.patch
Patch1:		adplay-1.8.1-fix-leak-when-playing-multiple-files.patch
Patch2:		adplay-1.8.1-add-loop-count-option.patch
BuildRequires:	chrpath
BuildRequires:	pkgconfig(adplug) >= 2.3
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(sdl) >= 1.2.0
BuildRequires:	pkgconfig(zlib)

%description
AdPlay/UNIX is AdPlug's UNIX console-based front-end. AdPlug is a free,
universal OPL2 audio playback library. AdPlay/UNIX supports the full range
of AdPlug's file format playback features. Despite this, at the moment, only
emulated OPL2 output is supported by AdPlay/UNIX, but this on a wide range
of output devices.

%files
%doc AUTHORS COPYING NEWS README TODO 
%{_bindir}/%{name}
%_mandir/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-unix-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build
export CPPFLAGS="-I%{_includedir}/libbinio"
autoreconf -vfi
%configure --disable-output-esound
%make


%install
%makeinstall_std
chrpath -d %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 53 |21cr|adriconf-2.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced DRI Configurator
Name:		adriconf
Version:	2.7.2
Release:	1
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		https://gitlab.freedesktop.org/mesa/adriconf
Source0:	https://gitlab.freedesktop.org/mesa/adriconf/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	cmake >= 3.8
BuildRequires:	gettext
BuildRequires:	git
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	python3
BuildRequires:	pkgconfig(atkmm-2.36)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gl)
# For unit tests
BuildRequires:	pkgconfig(gmock)
BuildRequires:	pkgconfig(gtest)
BuildRequires:	pkgconfig(gtkmm-4.0)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(x11)
%rename	driconf

%description
This is a GUI tool used to configure open source graphics drivers. It works by
setting options and writing them to the standard drirc file used by the Mesa
drivers.
Main features:
* Automatic removal of invalid and unsupported options.
* Options whose value is identical to the system-wide value or the driver's
  default value will be ignored.
* System-wide application options with redundant options will be removed
  automatically.

%files -f %{name}.lang
%doc AUTHORS LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/org.freedesktop.%{name}.desktop
%{_appdatadir}/org.freedesktop.%{name}.metainfo.xml
%{_iconsdir}/hicolor/*/apps/org.freedesktop.%{name}.png
  
#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}


%build
%cmake .. -DENABLE_UNIT_TESTS=OFF


%install
%makeinstall_std -C build

# Install source provided icon file and provide more sizes
mkdir -p %{buildroot}%{_iconsdir}/hicolor/256x256/apps/
install -m 0644 flatpak/org.freedesktop.adriconf.png %{buildroot}%{_iconsdir}/hicolor/256x256/apps/
for i in {16,24,32,48,64,96,128}; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$ix$i/apps/
	convert -scale $ix$i flatpak/org.freedesktop.adriconf.png %{buildroot}%{_iconsdir}/hicolor/$ix$i/apps/org.freedesktop.%{name}.png
done

# Install and fix source provided .desktop file
mkdir -p %{buildroot}%{_datadir}/applications/
install -m 0644 flatpak/org.freedesktop.adriconf.desktop %{buildroot}%{_datadir}/applications/

# Install metainfo description
mkdir -p %{buildroot}%{_appdatadir}/
install -m 0644 flatpak/org.freedesktop.adriconf.metainfo.xml %{buildroot}%{_appdatadir}/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 54 |21cr|adtool-1.3.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Active Directory administration utility for Unix
Name:		adtool
Version:	1.3.3
Release:	4
License:	GPLv2
Group:		File tools
Url:		http://www.gp2x.org/adtool/
Source0:	http://www.gp2x.org/adtool/%{name}-%{version}.tar.gz
BuildRequires:	gdbm-devel
BuildRequires:	openldap-devel
BuildRequires:	libsasl-devel
BuildRequires:	openssl-devel

%description
adtool is a unix command line utility for Active Directory
administration. Features include user and group creation,
deletion, modification, password setting and directory query and
search capabilities. 

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README TODO tests/test.sh
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/adtool.cfg
%{_bindir}/adtool
%{_mandir}/man1/adtool.1*

#-------------------------------------------------------------------

%prep

%setup -q

# lib64 fix
perl -pi -e "s|/lib |/%{_lib} |g" configure*

%build
autoreconf -fis

%configure \
    --with-ldap=%{_prefix}

%make

%install
%makeinstall

mv %{buildroot}%{_sysconfdir}/adtool.cfg.dist %{buildroot}%{_sysconfdir}/adtool.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 55 |21cr|advancecomp-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without	tests

Summary:	Recompression utilities
Name:		advancecomp
Version:	2.4
Release:	1
License:	GPLv3+
Group:		Archiving/Compression
Url:		https://www.advancemame.it/comp-readme.html
Source0:	https://github.com/amadvance/advancecomp/releases/download/v%{version}/advancecomp-%{version}.tar.gz
# When advzip is compiled with bzip2 support, one of the tests results in a
# smaller file than otherwise. This patch fixes the expected test size so that
# the test doesn't fail.
Patch0:	advancecomp-2.4-mga-bzip2-test.patch
BuildRequires:	groff-base
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(zlib)

%description
This package contains recompression utilities for your .zip archives, .png
images, .mng video clips and .gz files.

%files
%doc AUTHORS COPYING HISTORY README
%{_bindir}/advzip
%{_bindir}/advpng
%{_bindir}/advmng
%{_bindir}/advdef
%{_mandir}/man1/adv*.1*

#--------------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
sh autogen.sh
%configure --enable-bzip2
%make


%install
%makeinstall_std


%if %{with tests}
%check
%make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 56 |21cr|adwaita-dark-green-rospo-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Adwaita-Dark-Green-Rospo

Summary:	%{theme_name} theme
Name:		adwaita-dark-green-rospo
Version:	1.0
Release:	3
License:        GPLv3+
Group:		Graphics
Url:		https://vk.com/xfce_rospo
Source0:	Adwaita-Dark-Green-Rospo.tar.gz
BuildArch:	noarch
Requires: 	adwaita-dark-green-rospo-common
Requires: 	adwaita-dark-green-rospo-gtk2-theme
Requires: 	adwaita-dark-green-rospo-gtk3-theme
Requires: 	adwaita-dark-green-rospo-metacity-theme

%description
Fork Adwaita-Dark-Green GTK2,GTK3,Metacity theme from ROSPO

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {index.theme,gtk-2.0,gtk-3.0,metacity-1} %{buildroot}%{_datadir}/themes/%{theme_name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 57 |21cr|aee-2.2.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	An easy to use text editor
Name:		aee
Version:	2.2.21
Release:	1
License:	Artistic
Group:		Editors
Url:		http://mahon.cwx.net/
# not updated now
Source0:	https://github.com/xenji/aee/archive/refs/heads/master.zip?/%{name}-%{version}.zip
Patch0:		%{name}-2.2.15b-mdkconf.patch
Patch1:		%{name}-2.2.15b-fix-str-fmt.patch
Patch2:		aee-multiple-definition-fix.patch
BuildRequires:	pkgconfig(x11)

%description
An easy to use text editor. Intended to be usable with little or no
instruction. Provides both a terminal (curses based) interface and native
X-Windows interface (in which case the executable is called xae). Features
include pop-up menus, journalling (to recover from system crash or loss of
connection), cut-and-paste, multiple buffers (associated with files or not),
and much more.

%files
%doc Artistic README.aee aee.1.ps aee.i18n.guide keypad
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/help.ae
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-master

%build
make both OPTFLAGS="%{optflags}"

%install
install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}
install -m755 xae -D %{buildroot}%{_bindir}/xae
install -m644 %{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1
install -m644 help.ae -D %{buildroot}%{_datadir}/%{name}/help.ae
pushd %{buildroot}%{_bindir}
ln -s aee %{buildroot}%{_bindir}/rae
ln -s xae %{buildroot}%{_bindir}/rxae
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 58 |21cr|aegisub-3.3.3-1.fr9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_ld_no_undefined		1

%define commit 79a0655eb814702e64ca7cb7587079e3e3716086
%define commit_short %(echo %{commit} | head -c6)

Summary:	Advanced Subtitle Editor
Name:		aegisub
Version:	3.3.3
Release:	1.fr9.1
Group:		Video
License:	BSD
Url:		https://github.com/Aegisub/Aegisub
# maintained fork
Source0:	https://github.com/arch1t3cht/Aegisub/archive/%{commit}.zip?/%{name}-%{commit}.zip
# Bump version to differentiate git snaphsot from regular release
Source1:	git_version.h
Patch0:		aegisub-tests.patch
Patch1:		aegisub-remove-stackwalker.patch
#Patch0:		aegisub-3.2.2-no-c11.patch
#Patch1:		aegisub-3.2.2-no-stackwalker.patch
#Patch2:		aegisub-3.2.3-fix-makefile-for-newer-make.patch
#Patch3:		aegisub-3.2.3-fix-libs-dependencies.patch
#Patch4:		aegisub-3.2.3-put-new-wxbitmap-constructor-behind-wx-version-check.patch
#Patch5:		aegisub-3.2.3-recognize-newer-boost.patch
#Patch6:		aegisub-3.2.3-fix-deprecated-wxSTC-calls.patch
#Patch7:		aegisub-3.2.3-fix-build-with-system-luajit.patch
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	atomic-devel
BuildRequires:	boost-devel
BuildRequires:	freetype-devel
BuildRequires:	gettext-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ffms2) >= 2.16
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fontconfig) >= 2.4
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(hunspell) >= 1.2.0
BuildRequires:	pkgconfig(icu-io)
BuildRequires:	pkgconfig(libass) >= 0.9.7
BuildRequires:	pkgconfig(libcurl) >= 7.18.2
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(lua) >= 5.2
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(uchardet)

%description
Thi is an advanced subtitle editor that assists in the creation of subtitles,
translations, and complex overlays using audio or video. Developed by
enthusiasts, it builds on work-flows created and perfected through professional
hobby, and everyday use.

%files -f %{name}.lang
%doc automation/demos/ automation/v4-docs/ LICENCE
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
#{_datadir}/metainfo/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Aegisub-%{commit}

mkdir %{_target_platform}
cp %{SOURCE1} %{_target_platform}/

# Fix build with luajit >= 2.1.0
sed -i -e 's,luaL_reg ,luaL_Reg ,g' vendor/luabins/src/luabins.c libaegisub/lua/modules/lpeg.c


%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 59 |21cr|aeskulap-0.2.2-74.gite43334.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit e43334e927d731bac7f710355d4c94acd17d1964
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Medial image viewer for DICOM images
Name:		aeskulap
Version:	0.2.2
Release:	74.git%{commit_short}.1
License:	LGPLv2+
Group:		Graphics
Url:		http://aeskulap.nongnu.org
# Mirror of http://git.altlinux.org/gears/a/aeskulap.git which inherits dead git https://github.com/jenslody/aeskulap
Source0:	https://github.com/mikhailnov/aeskulap/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}-tutorials.pdf
BuildRequires:	desktop-file-utils
BuildRequires:	GConf2
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	dcmtk-devel
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(gconfmm-2.6)
BuildRequires:	pkgconfig(gdkmm-2.4)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Requires:	dcmtk

%description
Aeskulap is able to load a series of special images stored in the
DICOM format for review. Additionally Aeskulap is able to query
and fetch DICOM images from archive nodes (also called PACS) over
the network.

The goal of this project is to create a full open source replacement
for commercially available DICOM viewers.

Aeskulap is based on gtkmm, glademm and gconfmm and designed to run
under Linux. Ports of these packages are available for different
platforms. It should be quite easy to port Aeskulap to any platform
were these packages are available.

%files -f %{name}.lang
%doc AUTHORS ABOUT-NLS ChangeLog COPYING README %{name}-tutorials.pdf
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/%{name}
%{_datadir}/appdata/aeskulap.appdata.xml
%{_datadir}/glib-2.0/schemas/org.gnu.aeskulap.gschema.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
./autogen.sh

# remove bundled copy of dcmtk!
rm -rvf dcmtk

%configure \
	--disable-static \
	--disable-schemas-install

# point her to the correct lib version depending on the arch
sed -i 's/lib -ldcmjpeg/%{_lib}\/dcmtk -ldcmjpeg/' configure configure.ac

%make

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall_std

install -p -m 0644 %{SOURCE1} -t .

desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 60 |21cr|aewan-1.0.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:  Ascii-art Editor Without a Name
Name:     aewan
Version:  1.0.01
Release:  1
License:  GPLv2+
Group:    Text tools
Url:      http://aewan.sourceforge.net/
Source:   http://ovh.dl.sourceforge.net/sourceforge/aewan/%name-%version.tar.gz
BuildRequires: pkgconfig(ncurses)
BuildRequires: pkgconfig(zlib)

%description
Aewan is a multi-layered ascii-art/animation 
editor that produces both stand-alone 
cat-able art files and an easy-to-parse 
format for integration in your terminal applications.
 
%files 
%doc README CHANGELOG COPYING TODO
%{_bindir}/*
%{_mandir}/man?/*
#----------------------------------------------------------
%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 61 |21cr|afce-0.9.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty debug
%define debug_package	%{nil}
Name:		afce
Version:	0.9.8
Release:	4
Summary:	Algorithm Flowchart Editor
License:	GPLv3
Group:		Education
URL:		https://github.com/viktor-zin/afce
# to build from git:
# [ MRB:aint-no-shit $]: cat BUILDING.md | grep sources
Source0:	https://github.com/viktor-zin/afce/archive/v%{version}.tar.gz

# switch to qt5 ,read BUILDING.md.Sflo
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-qtcore-i18n


%description
Flowchart editor with code generation and vector graphics.
AFCE allow to create, edit, print and export flowcharts easyly
for a few minutes. Flowcharts can be exported to several grafical
formats including SVG and PNG.

%prep
%setup -q

%build
%qmake_qt5
%make

%install
%makeinstall INSTALL_ROOT=%{buildroot}

%files
%doc README.RU.txt README.md BUILDING.md LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/afc.ico
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 62 |21cr|affenspiel-1.0-0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:           affenspiel
Version:        1.0
Release:        0.1
Summary:        Little puzzle game with monkey for X Window System
License:        BSD
Group:          Games/Puzzles
Url:            http://www.artsoft.org/affenspiel/
Source0:        http://www.artsoft.org/RELEASES/unix/%{name}/%{name}-%{version}.tar.gz
Source1:        %{name}-icons.tar
Source2:        %{name}.desktop
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xt)

%description
Shift the puzzle pieces around so that the monkey becomes complete,
that means, move the big piece through the other pieces to the
bottom of the playfield, so that the monkey picture gets complete.

This is a one-night hack. It's a puzzle type game for X11.
I played it on another hardware platform (it was made of several
pieces of wood) and ported it to Unix/X11.


%files
%doc COPYRIGHT README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/
#--------------------------------------------------------

%prep
%setup -q -b 1 -n %{name}

%build
%make  FILE_CONFIG=-DSAVED_GAME_NAME='\"affenspiel.saved\"'

%install
# install executable
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}

# install icons
for i in 32 48 64 72 96 ; do
    install -Dm 0644 ../icons/%{name}_${i}x${i}.png \
            %{buildroot}/%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done

# install Desktop file
install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 63 |21cr|afflib-3.7.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname afflib %{major}
%define devname %mklibname afflib -d

Summary:	A set of programs for creating and manipulating AFF files
Name:		afflib
Version:	3.7.18
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.afflib.org/
Source0:	https://github.com/sshock/AFFLIBv3/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libewf)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3-setuptools

%description
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

In addition to the library, AFFLIB also comes with the AFF Tools, a set of
programs for creating and manipulating AFF files.

%files
%{_bindir}/affcat
%{_bindir}/affcompare
%{_bindir}/affconvert
%{_bindir}/affcopy
%{_bindir}/affcrypto
%{_bindir}/affdiskprint
%{_bindir}/affix
%{_bindir}/affuse
%{_bindir}/affinfo
%{_bindir}/affrecover
%{_bindir}/affsegment
%{_bindir}/affsign
%{_bindir}/affstats
%{_bindir}/affverify
%{_bindir}/affxml
%{_mandir}/man1/*
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A shared library that implements the AFF standard
Group:		System/Libraries

%description -n %{libname}
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

This package contains a shared library that implements the AFF standard.

%files -n %{libname}
%doc AUTHORS BUGLIST.txt COPYING ChangeLog NEWS README* doc/*
%{_libdir}/libafflib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the afflib library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

This package contains the static afflib library and its header files.

%files -n %{devname}
%dir %{_includedir}/afflib
%{_includedir}/afflib/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn AFFLIBv3-%{version}

#fix spurious permissions with lzma443
find lzma443 -type f -exec chmod 0644 {} ';'
chmod 0644 lib/base64.{h,cpp}

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-shared \
	--enable-wide-character-type \
	--enable-libewf=yes \
	--enable-s3=yes \
	--enable-fuse=no \
	--enable-python=yes \
	--enable-qemu=no \
	--with-curl=%{_prefix} \
	PYTHON=%{__python3}
%make

%install
%makeinstall_std
# install headers as well
install -d %{buildroot}%{_includedir}/afflib
install -m0644 lib/*.h %{buildroot}%{_includedir}/afflib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 64 |21cr|afio-2.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Archiver program which writes cpio-format archives
Name:		afio
Version:	2.5.2
Release:	1
License:	LGPLv2+
Group:		Archiving/Backup
Url:		http://members.chello.nl/~k.holtman/afio.html
Source0:	https://github.com/kholtman/afio/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

%description
Afio makes cpio-format archives. It deals somewhat gracefully with input
data corruption, supports multi-volume archives during interactive
operation, and can make compressed archives that are much safer than
compressed tar or cpio archives. Afio is best used as an `archive engine'
in a backup script.

%files
%doc HISTORY INSTALLATION PORTING README SCRIPTS afio.lsm script1 script2 script3 script4
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# MW is empty by default so use it for optflags instead of patching sources
%make MW="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 755 afio %{buildroot}%{_bindir}
install -m 755 afio.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 65 |21cr|afraid-dyndns-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:               afraid-dyndns
Version:            1.1
Release:            3
Summary:            Dynamic DNS Client for the Free Service at afraid.org
Source:             http://perl.arix.com/ftp/afraid-dyndns-%{version}.tar.gz
Source99:           %{name}.rpmlintrc
URL:                http://perl.arix.com
Group:              Monitoring
License:            GPL
BuildArch:          noarch

%description
This utility implements a client for the free afraid.org dynamic DNS
service. A cron job is set up to check whether the external IP address
has changed, and when it does, connects to afraid.org and updates the
DNS entries of all the domains of the given account.

%prep
%setup -q

%build

%install
./install '%{buildroot}'

%files
%doc README LICENSE
%{_bindir}/afraid-dyndns
%config(noreplace) %{_sysconfdir}/afraid-dyndns.conf
%config(noreplace) %{_sysconfdir}/cron.d/afraid-dyndns
%dir %{_localstatedir}/cache/afraid-dyndns
%ghost %{_localstatedir}/cache/afraid-dyndns/IP

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 66 |21cr|aften-0.0.9-0.20110104
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		0
%define	libname		%mklibname %{name} %{major}
%define	develname	%mklibname %{name} -d
%define	staticdevelname	%mklibname %{name} -d -s

# Last official release is from 2007, but in the git repo
# there are fixes as recent as 2011: pick them up
%define	git		1
%define	gitdate	20110104

Name:		aften
Summary:	An A/52 audio encoder
# To fix upgrade from old number scheme (0.05)
Epoch:		1
%if %{git}
Version:	0.0.9
Release:	0.%{gitdate}
%else
Version:	0.0.8
Release:	4
%endif
License:	GPLv2+
Group:		Sound
Url:		http://aften.sourceforge.net/
%if %{git}
Source0:	%{name}-code-%{gitdate}.tar.xz
Patch0:		aften-0.0.8-fake-release.patch
%else
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch1:		aften-0.0.8-fix-library-path.patch
%endif
BuildRequires:	cmake >= 2.4
Requires:	%{libname} = %{EVRD}

%description
This is an audio encoder which generates compressed audio streams based on
ATSC A/52 specification. This type of audio is also known as AC-3 or Dolby
Digital and is one of the audio codecs used in DVD-Video content. 

%files
%doc COPYING README Changelog
%{_bindir}/*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package provides the library for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{staticdevelname}

%description -n %{develname}
This package contains development files for %{name}.

%files -n %{develname}
%doc COPYING
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}/*.h

#-----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{name}-code-%{gitdate}
%patch0 -p1
%else
%setup -q
%patch1 -p1
%endif


%build
%cmake .. -DSHARED="On"
%make 


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 67 |21cr|afternoonstalker-1.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		afternoonstalker
Version:	1.1.6
Release:	1
Summary:	A robot-killing video game
License:	GPLv2+
Group:		Games/Arcade
Url:		http://sarrazip.com/dev/afternoonstalker.html
Source0: 	http://perso.b2b2c.ca/sarrazip/dev/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	flatzebra-devel >= 0.1.6

%description
In Afternoon Stalker, you are in a
two-dimensional maze where you are attacked by robots that
shoot at you and that you must shoot down.  You must pick up a
gun somewhere in the maze in order to have a few bullets to shoot.
Avoid the spiders and the bats, which can paralyze you long enough
for a robot to come and shoot you.  The bunker in the center is
your only protection.

%files
%doc AUTHORS COPYING NEWS README THANKS 
%{_gamesbindir}/%{name}
%{_datadir}/sounds/*
%{_datadir}/%{name}/
%{_datadir}/applications/*
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man6/%{name}.6.*
#-----------------------------------------

%prep
%setup -q

%build
%configure --bindir=%{_gamesbindir}

%make

%install
%makeinstall_std
rm -fr %{buildroot}%{_defaultdocdir}/%{name}-*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 68 |21cr|afuse-0.4.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An automounter implemented with FUSE
Name:		afuse
Version:	0.4.1
Release:	3
License:	GPLv2+
Group:		Networking/Other
Url:		https://github.com/pcarrier/afuse/
Source0:	https://afuse.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(fuse)

%description
Afuse is an automounting file system implemented in user-space using FUSE.
Afuse currently implements the most basic functionality that can be expected
by an automounter; that is it manages a directory of virtual directories. If
one of these virtual directories is accessed and is not already automounted,
afuse will attempt to mount a filesystem onto that directory. If the mount
succeeds the requested access proceeds as normal, otherwise it will fail
with an error.

%files
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/afuse
%{_bindir}/afuse-avahissh

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 69 |21cr|agave-0.4.7-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GNOME tool to choose colors
Name:		agave
Version:	0.4.7
Release:	11
License:	GPLv2+
Group:		Graphics
Url:		https://launchpad.net/ubuntu/+source/agave
Source0:	http://download.gna.org/colorscheme/releases/%{name}-%{version}.tar.bz2
Patch0:		agave-0.4.7-mdv-fix-str-fmt.patch
Patch1:		agave-0.4.7-fix-build.patch
# from Ubuntu
Patch2:		agave-desktop_file.diff
Patch3:		agave-clean_deprecated_gtk_reference.patch
Patch4:		agave-headers.diff
Patch5:		agave-compat-round.diff
BuildRequires:	docbook-dtd45-xml
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	rarian
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(gconfmm-2.6)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libgnomeui-2.0)

%description
A GNOME tool to choose colors.

%files -f %{name}.lang
%doc README NEWS COPYING AUTHORS
%{_bindir}/agave
%{_sysconfdir}/gconf/schemas/agave.schemas
%dir %{_datadir}/agave
%dir %{_datadir}/agave/palettes
%{_datadir}/agave/palettes/*.gpl
%dir %{_datadir}/agave/pixmaps
%{_datadir}/agave/pixmaps/*.png
%dir %{_datadir}/agave/ui
%{_datadir}/agave/ui/agave.glade
%{_datadir}/agave/ui/*.ui
%{_datadir}/applications/agave.desktop
%{_iconsdir}/hicolor/*/apps/agave.png
%{_iconsdir}/hicolor/scalable/apps/agave.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 70 |21cr|aggregate-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Aggregate list of prefixes
Name:		aggregate
Version:	1.0.2
Epoch:		1
Release:	1
License:	BSD-like
Group:		Networking/Other
Url:		http://horms.net/projects/aggregate
Source0:	http://horms.net/projects/aggregate/download/%{name}-%{version}.tar.gz
BuildRequires:	popt-devel
BuildRequires:	vanessa_logger-devel

%description
Aggregate takes a list of prefixes in conventional format on stdin,
and performs two optimizations to reduce the length of the prefix
list. It removes any supplied prefixes which are superfluous because
they are already included in another supplied prefix (e.g.,
203.97.2.0/24 would be removed if 203.97.0.0/17 was also supplied),
and identifies adjacent prefixes that can be combined under a single,
shorter-length prefix (e.g., 203.97.2.0/24 and 203.97.3.0/24 can be
combined into the single prefix 203.97.2.0/23).

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/*
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 71 |21cr|ags-3.6.0.23-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define agsteamstub_version 1.0

Summary:	Adventure Game Studio
Name:		ags
Version:	3.6.0.23
Release:	2
License:	Artistic
Group:		Games/Adventure
Url:		http://www.adventuregamestudio.co.uk/
Source0:	https://github.com/adventuregamestudio/ags/archive/v.%{version}.tar.gz?/%{name}-v.%{version}.tar.gz
Source1:	agsteamstub-%{agsteamstub_version}.tar.gz
Patch0:		ags-v.3.5.1.7-system-plugins.patch
BuildRequires:	dumb-devel
BuildRequires:	sdl2_sound-devel
BuildRequires:	pkgconfig(allegro)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xcursor)

%description
Adventure Game Studio (AGS) - is the IDE and the engine meant for creating
and running videogames of adventure (aka "quest") genre. It has potential,
although limited, support for other genres as well.

Originally created by Chris Jones back in 1999, AGS was opensourced in 2011
and since continued to be developed by contributors.

This package contains AGS engine.

%files
%doc Changes.txt Copyright.txt License.txt OPTIONS.md README.md
%{_bindir}/%{name}
%dir %{_libdir}/ags
%{_libdir}/ags/libagsteam.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v.%{version} -a1
%patch0 -p1

pushd agsteamstub-%{agsteamstub_version}
ln -s ../Engine/plugin/agsplugin.h agsplugin.h
popd

%build
pushd Engine
%setup_compile_flags
%make
popd

pushd agsteamstub-%{agsteamstub_version}
%make DEFINES="%{optflags}"
popd

%install
pushd Engine
make install PREFIX=%{buildroot}%{_prefix}
popd

mkdir -p %{buildroot}%{_libdir}/ags
pushd agsteamstub-%{agsteamstub_version}
install -m 755 libagsteam.so %{buildroot}%{_libdir}/ags/libagsteam.so
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 72 |21cr|aifad-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Automated Induction of Functions over Algebraic Datatypes
Name:		aifad
Version:	2.3.0
Release:	1
License:	GPLv3+
Group:		Development/Other
Url:		http://mmottl.github.io/aifad
Source0:	https://github.com/mmottl/aifad/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	menhir
BuildRequires:	ocaml
BuildRequires:	dune
BuildRequires:	ocaml-cfg-devel
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-pcre-devel
BuildRequires:	ocaml-res-devel

%description
AIFAD stands for "Automated Induction of Functions over Algebraic Datatypes"
and improves decision tree learning by supporting significantly more complex
kinds of data. This allows users to more conveniently describe the data they
want to have learnt, which can improve accuracy and complexity of resulting
models.

%files
%doc %{_docdir}/aifad
%{_bindir}/aifad
%{_libdir}/ocaml/aifad/META
%{_libdir}/ocaml/aifad/dune-package
%{_libdir}/ocaml/aifad/opam
%{_datadir}/vim/syntax/aifad.vim

#----------------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot} --docdir=%{_docdir}

install -d %{buildroot}%{_datadir}/vim/syntax/
install -m 0644 ./vim/aifad.vim %{buildroot}%{_datadir}/vim/syntax/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 73 |21cr|aiksaurus-1.2.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.2
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d
%define libgtk %mklibname %{name}gtk %{api} %{major}
%define devgtk %mklibname %{name}gtk -d

Summary:	An English-language thesaurus library
Name:		aiksaurus
Version:	1.2.1
Release:	13
License:	GPLv2+
Group:		Office
Url:		http://sourceforge.net/projects/aiksaurus/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		aiksaurus-1.2.1-gcc43.patch
Patch1:		aiksaurus-1.2.1-fix-str-fmt.patch
Patch2:		aiksaurus-1.2.1-automake.patch
Patch3:		aiksaurus-1.2.1-pkgconfig.patch
BuildRequires:	gnome-common
BuildRequires:	libtool
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	%{name}-data

%description
Aiksaurus is an English-language thesaurus library that can be 
embedded in word processors, email composers, and other authoring
software to provide thesaurus capabilities.  
This package contains a basic command line thesaurus program.

Install Aiksaurus if you want to have a thesaurus available on 
your computer.

%files
%doc ChangeLog README COPYING AUTHORS
%{_bindir}/aiksaurus
%{_bindir}/caiksaurus

#----------------------------------------------------------------------------

%package data
Summary:	An English-language thesaurus library
Group:		Office

%description data
Aiksaurus is an English-language thesaurus library that can be
embedded in word processors, email composers, and other authoring
software to provide thesaurus capabilities.
This package contains the datafiles.

%files data
%dir %{_datadir}/aiksaurus
%{_datadir}/aiksaurus/*.dat

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An English-language thesaurus library
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libname}
Aiksaurus is an English-language thesaurus library that can be
embedded in word processors, email composers, and other authoring
software to provide thesaurus capabilities.
This package contains these libraries.

Install Aiksaurus if you want to have a thesaurus available on
your computer.

%files -n %{libname}
%{_libdir}/libAiksaurus-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for Aiksuarus
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
Aiksaurus is an English-language thesaurus library that can be
embedded in word processors, email composers, and other authoring
software to provide thesaurus capabilities.
This package contains the libraries and includes files necessary to develop
applications with Aiksaurus.

%files -n %{devname}
%{_libdir}/libAiksaurus.so
%{_libdir}/pkgconfig/aiksaurus-1.0.pc
%dir %{_includedir}/Aiksaurus
%{_includedir}/Aiksaurus/Aiksaurus.h
%{_includedir}/Aiksaurus/AiksaurusC.h

#----------------------------------------------------------------------------

%package -n %{name}gtk
Summary:	A GTK+ thesaurus application
Group:		Office

%description -n %{name}gtk
Aiksaurusgtk is a GTK+ interface to the Aiksaurus library.  
It provides an attractive thesaurus interface, and can be embedded
in GTK+ projects, notably AbiWord.  
This package provides the standalone GTK+ interface.

%files -n %{name}gtk
%{_bindir}/gaiksaurus

#----------------------------------------------------------------------------

%package -n %{libgtk}
Summary:	Libraries for aiksaurusgtk
Group:		System/Libraries

%description -n %{libgtk}
Aiksaurusgtk is a GTK+ interface to the Aiksaurus library.
It provides an attractive thesaurus interface, and can be embedded
in GTK+ projects, notably AbiWord.
This package provides the library files for aiksaurusgtk.

%files -n %{libgtk}
%{_libdir}/libAiksaurusGTK-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devgtk}
Summary:	A GTK+ thesaurus library
Group:		Development/C
Requires:	%{libgtk} = %{version}-%{release}
Provides:	aiksaurusgtk-devel = %{version}-%{release}

%description -n %{devgtk}
This package contains the libraries and includes files necessary to develop
applications with Aiksaurusgtk.

%files -n %{devgtk}
%{_libdir}/libAiksaurusGTK.so
%{_libdir}/pkgconfig/gaiksaurus-1.0.pc
%{_includedir}/Aiksaurus/AiksaurusGTK*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

touch NEWS

%build
%global optflags %{optflags} -std=c++14
autoreconf -fi
%configure \
	--disable-static

%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 74 |21cr|aircrack-ng-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Reliable 802.11 (wireless) sniffer and WEP key cracker
Name:		aircrack-ng
Version:	1.7
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.aircrack-ng.org/doku.php
Source0:	http://download.aircrack-ng.org/%{name}-%{version}.tar.gz
Patch0:		aircrack-ng-1.6-parallel-build.patch
BuildRequires:	jemalloc-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(cmocka)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libtcmalloc)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

%description
aircrack-ng is a set of tools for auditing wireless networks. It's an
enhanced/reborn version of aircrack. It consists of airodump (an 802.11
packet capture program), aireplay (an 802.11 packet injection program),
aircrack (static WEP and WPA-PSK cracking), airdecap (decrypts WEP/WPA
capture files), and some tools to handle capture files (merge, convert,
etc.).

%files
%doc ChangeLog README AUTHORS
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man?/*
%dir %{_datadir}/aircrack-ng
%ghost %{_datadir}/aircrack-ng/airodump-ng-oui.txt

%post
%{_sbindir}/airodump-ng-oui-update

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C

%description devel
Development files for %{name}.

%files devel
%{_includedir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--enable-static \
	--disable-shared \
	--disable-silent-rules \
	--disable-dependency-tracking \
	--with-jemalloc \
	--with-tcmalloc \
	--with-experimental

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/%{name}
# License unclear, originates from:
# http://standards.ieee.org/regauth/oui/oui.txt
touch %{buildroot}%{_datadir}/%{name}/airodump-ng-oui.txt

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 75 |21cr|airsnort-0.2.7e-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A wireless LAN tool which cracks encryption keys
Name:		airsnort
Version:	0.2.7e
Release:	15
License:	GPLv2+
Group:		Networking/Other
Url:		http://sourceforge.net/projects/airsnort/
Source:		http://ovh.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libgnomeui-2.0)

%description
AirSnort is a wireless LAN (WLAN) tool which cracks encryption
keys on 802.11b WEP networks. AirSnort operates by passively
monitoring transmissions, computing the encryption key when
enough packets have been gathered.

%files
%doc ChangeLog README README.decrypt TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 76 |21cr|airspyhf-1.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:           airspyhf
Version:        1.6.8
Release:        1
Summary:        Support programs for Airspy HF+ SDR
Group:          System/Libraries
License:        BSD-3-Clause
URL:            http://www.airspy.com/airspy-hf-plus
#Git-Clone:     https://github.com/airspy/airspyhf.git
Source:         https://github.com/airspy/%{name}/archive/%{version}/%{name}-%{version}.tar.gz         
BuildRequires:  cmake
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(udev)

%description
Host software for Airspy HF+, a software defined radio
for the HF and VHF bands.

%files
%{_udevrulesdir}/52-airspyhf.rules
%{_bindir}/airspyhf_calibrate
%{_bindir}/airspyhf_gpio
%{_bindir}/airspyhf_info
%{_bindir}/airspyhf_lib_version
%{_bindir}/airspyhf_rx

#----------------------------------------------------------
%package -n %{libname}
Summary:        Driver for Airspy HF+
Group:          System/Libraries

%description -n %{libname}
Library to run Airspy HF+ SDR receiver.

%files -n %{libname}
%{_libdir}/libairspyhf.so.%{major}*
%{_libdir}/libairspyhf.so.0

#------------------------------------------------------

%package -n %{devname}
Summary:        Development files for Airspy HF+
Group:          Development/Other
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
Library headers for Airspy HF+ driver.

%files -n %{devname}
%license LICENSE
%{_libdir}/libairspyhf.so
%{_includedir}/libairspyhf
%{_libdir}/pkgconfig/libairspyhf.pc

#------------------------------------------------------

%package doc
Summary:        Documentation for Airspy HF+
Group:          Documentation

%description doc
Documentation for Airspy HF+ driver.

%files doc
%doc README.md

#------------------------------------------------------
%prep
%autosetup

%build
export CFLAGS="%{optflags} -lm"
%cmake -DINSTALL_UDEV_RULES=ON
%make_build

%install
%make_install -C build
rm %{buildroot}%{_libdir}/libairspyhf.a

mkdir -p %{buildroot}%{_udevrulesdir}
mv %{buildroot}%{_sysconfdir}/udev/rules.d/52-airspyhf.rules %{buildroot}%{_udevrulesdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 77 |21cr|airspyone_host-1.0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Force out of source build
%undefine __cmake_in_source_build

%define major 0
%define libname %mklibname airspy %{major}
%define devname %mklibname -d airspy

Name:           airspyone_host
Version:	1.0.10
Release:	1
Summary:        AirSpy host tools and library
Group:      Communications
License:        GPLv2+
URL:            http://airspy.com/
Source0:	https://github.com/airspy/airspyone_host/archive/refs/tags/v%{version}.tar.gz

BuildRequires:	pkgconfig(libusb)
BuildRequires:	cmake
Requires:       systemd

%description
Software for AirSpy, a project to produce a low cost, open
source software radio platform.

%package -n %{libname}
Summary:	AirSpy library
Group:		System/Libraries

%description -n %{libname}
AirSpy host tools and library

%package -n     %{devname}
Requires:       %{name}%{?_isa} = %{version}-%{release}
License:        MIT and BSD
Summary:        Development files for %{name}
Group:          System/Libraries
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
Files needed to develop software against libairspy.

%prep
%autosetup -p1

# Remove win stuff
rm -rf libairspy/vc

# Fix udev rule
sed -i -e 's/GROUP="plugdev"/ENV{ID_SOFTWARE_RADIO}="1"/g' airspy-tools/52-airspy.rules

%build
%cmake -DINSTALL_UDEV_RULES=on

%make_build

%install
%make_install -C build

# Remove static object
rm -f %{buildroot}%{_libdir}/libairspy.a

# Move udev rule to correct location
mkdir -p %{buildroot}%{_udevrulesdir}
mv %{buildroot}%{_sysconfdir}/udev/rules.d/52-airspy.rules %{buildroot}%{_udevrulesdir}

%files
%license airspy-tools/LICENSE.md
%doc README.md
%{_bindir}/airspy_*
%{_udevrulesdir}/52-airspy.rules

%files -n %{libname}
%{_libdir}/libairspy.so.%{major}*
%{_libdir}/libairspy.so.%{version}*

%files -n %{devname}
%{_includedir}/libairspy
%{_libdir}/pkgconfig/libairspy.pc
%{_libdir}/libairspy.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 78 |21cr|airstrike-1.0-1.pre6a.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pre	pre6a

Summary:	Incredibly addictive 2D dogfight game
Name:		airstrike
Version:	1.0
Release:	1.%{pre}.8
License:	GPL
Group:		Games/Arcade
URL:		http://icculus.org/airstrike/
Source0:	%{name}-%{pre}-src.tar.gz
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		airstrike-pre6a-config.patch
Patch1:		airstrike-pre6a-optflags.patch
Patch2:		airstrike-pre6a-linkage.patch
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_image-devel

%description
Airstrike is a 0-2 players 2d dogfight game in the tradition of the 
Intellivision and Amiga games 'Biplanes' and 'BIP'. It features a robust 
physics engine and several other extensions of the original games, 
such as povray made graphics and incredible gameplay.

%prep
%setup -q -n %{name}-%{pre}-src
%patch0 -p1 -b .config
%patch1 -p1 -b .optflags
%patch2 -p1 -b .linkage

%build
%make OPTFLAGS="%{optflags}" airstrike-sound

%install
rm -rf %{buildroot}
install -m755 airstrike -D %{buildroot}%{_gamesbindir}/airstrike.bin

# Launch script
cat <<EOF > %{buildroot}%{_gamesbindir}/airstrike
#!/bin/sh
if [ ! -e \$HOME/.airstrikerc ]; then
	cp %{_gamesdatadir}/%{name}/airstrikerc \$HOME/.airstrikerc
fi
cd %{_gamesdatadir}/%{name}
airstrike.bin \$@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/airstrike

install -m644 airstrikerc -D %{buildroot}%{_gamesdatadir}/%{name}/airstrikerc
cp -r data  %{buildroot}%{_gamesdatadir}/%{name}

install -m644 doc/airstrike.6 -D %{buildroot}%{_mandir}/man6/airstrike.6 

#Menu items
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=AirStrike
Comment=Incredibly addictive 2D dogfight game
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

%files
%doc ChangeLog README doc
%{_gamesbindir}/*
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_mandir}/man6/airstrike.6*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 79 |21cr|ajenti-1.2.22-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define unmangled_version 1.2.22

Summary: The server administration panel
Name: ajenti
Version: 1.2.22
Release: 8
Source0: %{name}-%{version}.tar.gz
# This contains fixes for sslwrap
Source1: https://raw.githubusercontent.com/Eugeny/ajenti/54442ccb2b9ee24af15500557e7dd7b2f58acb97/ajenti/compat.py
Patch0: ajenti-rosa.patch

License: AGPLv3
Group: System/Configuration/Other
BuildArch: noarch
Url: http://ajenti.org/
BuildRequires: openssl
BuildRequires: python3-gevent
BuildRequires: python3-greenlet
BuildRequires: python3-lxml

BuildRequires: python3-gevent-socketio
BuildRequires: python3-gevent-websocket
BuildRequires: python3-psutil >= 0.6.0
BuildRequires: python3-pillow
BuildRequires: python3-daemon
BuildRequires: python3-passlib
BuildRequires: python3-requests
BuildRequires: python3-reconfigure >= 0.1.46
BuildRequires: python3-catcher
BuildRequires: python3-exconsole >= 0.1.5

# dbus package does not have egg file
Requires: python3-dbus
Requires: python3-daemon
Requires: python3-catcher
Requires: python3-reconfigure
Requires: python3-ldap


%description
Web admin panel

%package -n ajenti-python3
Summary: The server administration panel
%description -n ajenti-python3
Web admin panel.

%prep
%setup -q -n %{name}-%{unmangled_version} -n %{name}-%{unmangled_version}
sed -e 's/dbus-python//' -i requirements.txt
%apply_patches
cp %{SOURCE1} ajenti/compat.py
rm -rf %{pypi_name}.egg-info

rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
2to3 -n -w %{py3dir}
pushd %{py3dir}
2to3 -n -w ajenti-*
rm ajenti/usersync/ldapsync.py
rm ajenti/usersync/adsync.py
sed -i -e 's!python-ldap!!' requirements.txt
sed -i -e 's!from .ldapsync import LDAPSyncProvider!!' \
    -e 's!from .adsync import ActiveDirectorySyncProvider!!' \
    ajenti/usersync/__init__.py
popd

%build
make
pushd %{py3dir}
make
popd

%install
pushd %{py3dir}
python3 setup.py install --single-version-externally-managed -O1 --root=%{buildroot} --prefix=/usr
install -p -D -m 0644 packaging/files/ajenti.service %{buildroot}%{_unitdir}/ajenti-python3.service
pushd %{buildroot}/%{_bindir}
mv ajenti-panel ajenti-panel-python3
mv ajenti-ipc ajenti-ipc-python3
mv ajenti-ssl-gen ajenti-ssl-gen-python3
popd

ls ajenti/locales | grep _ |grep -v __init__ | while read lang
do
  pushd ajenti/locales/$lang/LC_MESSAGES
  msgfmt -o ajenti.mo ajenti.po || :
  mkdir -p %{buildroot}%{py3_puresitedir}/ajenti/locales/$lang/LC_MESSAGES
  [[ -e ajenti.mo ]] && cp ajenti.mo %{buildroot}%{py3_puresitedir}/ajenti/locales/$lang/LC_MESSAGES/
  popd
done

%files  -n %{name}-python3
%config(noreplace) /etc/ajenti/config.json
%{_unitdir}/ajenti-python3.service
%{_localstatedir}/lib/ajenti/plugins
%{_bindir}/ajenti-panel-python3
%{_bindir}/ajenti-ipc-python3
%{_bindir}/ajenti-ssl-gen-python3
%{py3_puresitedir}/ajenti
%{py3_puresitedir}/ajenti-*-py?.?.egg-info
/etc/init.d/*

%post -n %{name}-python3
ajenti-ssl-gen-python3 `hostname`
%_post_service %{name}-python3

echo ------------------------------------------------
echo Ajenti will listen on HTTPS port 8000 by default
echo
echo Default username : root
echo Default password : admin
echo ------------------------------------------------

%preun -n %{name}-python3
%_preun_service %{name}-python3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 80 |21cr|akamaru-0.1-0.862.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn 862
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Physics engine used by kiba-dock
Name:		akamaru
Version:	0.1
Release:	0.%{svn}.5
License:	BSD
Group:		System/X11
Url:		http://www.kiba-dock.org/
Source0:	%{name}-%{svn}.tar.lzma
Patch0:		akamaru-0.1-build.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)

%description
Akamaru is a simple, but fun, physics engine prototype. It is used by
kiba-dock, a dock applet.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Akamaru is a simple, but fun, physics engine prototype. It is used by
kiba-dock, a dock applet.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Akamaru is a simple, but fun, physics engine prototype. It is used by
kiba-dock, a dock applet. This package contains development headers
for Akamaru.

%files -n %{devname}
%doc AUTHORS ChangeLog README
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p1 -b .build

%build
export LDFLAGS="${LDFLAGS} -lm"
sh autogen.sh -V
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 81 |21cr|akarixb-0.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Jabber/XMPP bot based on Qt and QXMPP
Name:		akarixb
Version:	0.9
Release:	2
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://jancoding.wordpress.com/akarixb/
Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-v%{version}.tar.gz
BuildRequires:	qt5-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(qxmpp)

%description
AkariXB is a Jabber/XMPP bot with a graphical interface.
It can also act as a basic XMPP client.

You can make it join MUC rooms and answer to custom commands, which can be a
static reply, a random reply from a list, a random line from a text file, the
output of a program, a keyword-based reply, etc.

%files
%doc CHANGELOG README TODO LICENSE
%{_appdatadir}/org.nongnu.%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.nongnu.%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}

%build
%qmake_qt5

%make

%install
%makeinstall_qt

chmod 644 %{buildroot}%{_datadir}/applications/org.nongnu.%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 82 |21cr|akonadi-1.13.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An extensible cross-desktop storage service for PIM
Name:		akonadi
Version:	1.13.0
Release:	11
Epoch:		1
License:	LGPLv2.1+
Group:		Networking/WWW
Url:		http://pim.kde.org/akonadi/
%define is_beta %(if test `echo %{version} |cut -d. -f3` -ge 70; then echo -n 1; else echo -n 0; fi)
%if %{is_beta}
%define ftpdir unstable
%else
%define ftpdir stable
%endif
Source0:	ftp://ftp.kde.org/pub/kde/%{ftpdir}/akonadi/src/%{name}-%{version}.tar.bz2
Patch0:		upstream-do_not_crash_when_setmntent_returns_NULL.patch
Patch1:		upstream_dont_call_insert_from_Q_ASSERT.patch
Patch2:		upstream-fix_buffer_overflow_in_AKTEST_FAKESERVER_MAIN.patch
Patch3:		upstream-fix_typo_in_if_condition.patch
BuildRequires:	automoc4
BuildRequires:	kde4-macros
BuildRequires:	libxml2-utils
BuildRequires:	qt4-qtdbus
BuildRequires:	shared-mime-info >= 0.20
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	mariadb-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(soprano)
Requires:	mariadb
# (tpg) needed for mysqld
Requires:	mariadb-server
# Needed for mysqlcheck  which is used in akonadi
Requires:	mariadb-client
Requires:	qt4-database-plugin-mysql

%description
An extensible cross-desktop storage service for PIM data and meta data
providing concurrent read, write, and query access.

%files
%{_kde_bindir}/*
%{_sysconfdir}/akonadi
%{_datadir}/dbus-1/services/*
%{_datadir}/mime/packages/akonadi-mime.xml
%{_libdir}/qt4/plugins/sqldrivers/libqsqlite3.so

#------------------------------------------------------

# Need a dummy package to override old one
%package common
Group:		Networking/WWW
Summary:	Dummy package to override old

%description common
Dummy package to override old.

%files common
%doc README

#------------------------------------------------------

%define akonadiprotocolinternals_major 1
%define libakonadiprotocolinternals %mklibname akonadiprotocolinternals %{akonadiprotocolinternals_major}

%package -n %{libakonadiprotocolinternals}
Summary:	%{name} library
Group:		System/Libraries

%description -n %{libakonadiprotocolinternals}
%{name} library.

%files -n %{libakonadiprotocolinternals}
%{_kde_libdir}/libakonadiprotocolinternals.so.%{akonadiprotocolinternals_major}*

#------------------------------------------------------

%package devel
Summary:	Devel stuff for %{name}
Group:		Development/KDE and Qt
Requires:	%{libakonadiprotocolinternals} = %{EVRD}
Requires:	akonadi-common = %{EVRD}

%description devel
This package contains header files needed if you wish to build applications
based on %{name}

%files devel
%{_kde_includedir}/*
%{_kde_libdir}/*.so
%{_kde_libdir}/pkgconfig/akonadi.pc
%{_kde_libdir}/cmake/Akonadi
%{_kde_datadir}/dbus-1/interfaces/*.xml

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde4 \
	-DMYSQLD_EXECUTABLE=%{_sbindir}/mysqld \
	-DCONFIG_INSTALL_DIR=%{_sysconfdir}
%make

%install
%makeinstall_std -C build
mkdir %{buildroot}%{_libdir}/qt4
mv %{buildroot}%{_libdir}/plugins %{buildroot}%{_libdir}/qt4/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 83 |21cr|alac-0.1-1.20111027.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Apple Lossless Audio Codec (ALAC)
Name:		alac
Version:	0.1
Release:	1.20111027.4
License:	Apache License
Group:		Sound
Url:		http://alac.macosforge.org/
Source0:	%{name}-%{version}.tar.xz
Patch0:		alac-0.1-makefile.patch

%description
The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and
supported on iPhone, iPad, most iPods, Mac and iTunes.  ALAC is a data
compression method which reduces the size of audio files with no loss
of information.  A decoded ALAC stream is bit-for-bit identical to the original
uncompressed audio file.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Apple Lossless Audio Codec
License:	Apple Public Source License
Group:		System/Libraries
Conflicts:	%{_lib}alac < 0.1-1.20111027.1
Obsoletes:	%{_lib}alac < 0.1-1.20111027.1

%description -n %{libname}
The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and
supported on iPhone, iPad, most iPods, Mac and iTunes.  ALAC is a data
compression method which reduces the size of audio files with no loss
of information.  A decoded ALAC stream is bit-for-bit identical to the original
uncompressed audio file.

%files -n %{libname}
%doc codec/APPLE_LICENSE.txt
%{_libdir}/libalac.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Apple Lossless Audio Codec
License:	Apple Public Source License
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}alac-static-devel < 0.1-1.20111027.1

%description -n %{devname}
The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and
supported on iPhone, iPad, most iPods, Mac and iTunes.  ALAC is a data
compression method which reduces the size of audio files with no loss
of information.  A decoded ALAC stream is bit-for-bit identical to the original
uncompressed audio file.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/libalac.so

#----------------------------------------------------------------------------

%package -n alacconvert
Summary:	Apple Lossless Audio Codec
Group:		Sound

%description -n alacconvert
The Apple Lossless Audio Codec (ALAC) is an audio codec developed by Apple and
supported on iPhone, iPad, most iPods, Mac and iTunes.  ALAC is a data
compression method which reduces the size of audio files with no loss of
information.  A decoded ALAC stream is bit-for-bit identical to the original
uncompressed audio file.

This package contains a command-line utility to convert the ALAC format.

%files -n alacconvert
%doc ReadMe.txt ALACMagicCookieDescription.txt LICENSE
%{_bindir}/alacconvert

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0

%build
for d in codec convert-utility; do
    %__make -C "$d" \
        OPTFLAGS="%{optflags}" \
        CC="%__cxx"
done

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 convert-utility/alacconvert %{buildroot}%{_bindir}/alacconvert

mkdir -p %{buildroot}%{_libdir}
cp -a codec/libalac.so* %{buildroot}%{_libdir}/

mkdir -p %{buildroot}%{_includedir}
cp -a codec/*.h %{buildroot}%{_includedir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 84 |21cr|alacarte-3.36.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple menu editor for Gnome
Name:		alacarte
Version:	3.36.0
Release:	2
Group:		System/Configuration/Other
License:	LGPLv2+
URL:		http://www.realistanew.com/projects/alacarte/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.7/%{name}-%{version}.tar.xz
BuildArch:	noarch

BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	python3
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libgnome-menu-3.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	xsltproc

Requires:	typelib(GMenu)
Requires:	typelib(Gtk) = 3.0

%description
Alacarte is a menu editor for GNOME that lets you get things done,
simply and quickly.

Just click and type to edit, add, and delete any menu entry.

%prep
%setup -q

autoreconf -i -f

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

desktop-file-install --vendor="" \
	--add-category="GNOME" \
	--add-category="X-MandrivaLinux-System-Configuration-Other" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README AUTHORS COPYING
%{py3_puresitedir}/*
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 85 |21cr|alac_decoder-0.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Apple Lossless Audio Codec decoder
Name:		alac_decoder
Version:	0.2.0
Release:	3
License:	MIT
Group:		Sound
Url:		http://craz.net/programs/itunes/alac.html
Source0:	http://craz.net/programs/itunes/files/%{name}-%{version}.tgz
Source1:	alac-license.txt
Provides:	alac = %{version}-%{release}

%description
A basic decoder for Apple Lossless Audio Codec files (ALAC).

ALAC is a proprietary lossless audio compression scheme.
Apple never released any documents on the format.

This package is a C implementation of a decoder, written from
reverse engineering the file format.

Although an encoder is not provided, by using the decoder as a sort
of specification it should be fairly trivial to write an encoder.

The program located here will not be able to handle all ALAC files,
it can only handle mono or stereo files. ALAC allows up to 8 channels.
The ALAC decoder supports both 16 and 24 bit sample sizes.

The decoder is fairly self explanatory, it can read an ALAC stream from
either a file or from stdin, and write it as raw PCM data or as a WAV
file to either stdout or a file.

This package is in restricted because it may violate software patents.

%files
%doc README COPYING
%{_bindir}/alac
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
sed -i "s|CFLAGS=.*|CFLAGS=%{optflags}|" Makefile
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 alac %{buildroot}%{_bindir}/%{name}
ln -s %{name} %{buildroot}%{_bindir}/alac
cp %{SOURCE1} COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 86 |21cr|alacritty-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		crates_ver %{version}


Summary:	A GPU-accelerated terminal emulator
Name:		alacritty
Version:	0.12.0
Release:	1
License:	ASL 2.0
Group:		Terminals
Url:		https://github.com/jwilm/alacritty/
Source0:	https://github.com/jwilm/alacritty/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}-crates-%{crates_ver}.tar.xz
Source2:	https://github.com/alacritty/alacritty/releases/download/v%{version}/%{name}.yml
Source4:	https://github.com/jwilm/alacritty/releases/download/v%{version}/Alacritty.svg

BuildRequires:	cargo
BuildRequires:	desktop-file-utils
BuildRequires:	rust
BuildRequires:	cmake
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(ncurses)
Requires:	ncurses-extraterms
# since we have bash as default.
Suggests:   alacritty-bash-completion = %{EVRD}

%description
Alacritty is a terminal emulator written in Rust that leverages the GPU for
rendering.

%files
%doc README.md CONTRIBUTING.md LICENSE-APACHE
%{_bindir}/%{name}
%{_datadir}/applications/Alacritty.desktop
%{_appdatadir}/*.Alacritty.appdata.xml
%{_datadir}/pixmaps/Alacritty.svg
%{_docdir}/%{name}/%{name}.info
%{_iconsdir}/%{name}*svg
%{_mandir}/man1/*
%{_datadir}/alacritty/%{name}.yml
#----------------------------------------------------------------------------

%package bash-completion
Summary:	Bash Completion for %{name}
Group:		Terminals
Requires:	bash-completion
BuildArch:	noarch

%description bash-completion
The official bash completion script for alacritty. It includes support
for every argument that can currently be passed to alacritty.

%files bash-completion
%{_datadir}/bash-completion

#----------------------------------------------------------------------------

%package fish-completion
Summary:	Fish Completion for %{name}
Group:		Terminals
BuildArch:	noarch

%description fish-completion
The official fish completion script for alacritty.

%files fish-completion
%{_datadir}/fish

#----------------------------------------------------------------------------

%package zsh-completion
Summary:	ZSH Completion for %{name}
Group:		Terminals
BuildArch:	noarch

%description zsh-completion
The official zsh completion script for alacritty.

%files zsh-completion
%{_datadir}/zsh

#----------------------------------------------------------------------------

%prep
%autosetup -a1


%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"
cat >.cargo/config <<EOF
[source.crates-io]
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'

[source.vendored-sources]
directory = '$PWD/vendor'
EOF

%build
export CARGO_HOME="$(pwd)/.cargo"
RUSTFLAGS=-g cargo build --all-targets --offline --frozen
cargo doc --verbose

%install
# Create rpm tree
mkdir -p %{buildroot}{%{_bindir},%{_datadir}/applications,%{_iconsdir},%{_datadir}/pixmaps,%{_appdatadir}}

install -Dm 0755 extra/logo/*svg %{buildroot}%{_iconsdir}/
install -Dm 0755 %{S:4} %{buildroot}%{_datadir}/pixmaps/
install -Dm 0755 target/debug/%{name} %{buildroot}%{_bindir}/%{name}
desktop-file-install extra/linux/Alacritty.desktop \
  --dir %{buildroot}%{_datadir}/applications 
  
install -Dm 0755 extra/linux/org.alacritty.Alacritty.appdata.xml %{buildroot}%{_appdatadir}/

# Shell completions
mkdir -p %{buildroot}%{_datadir}/{zsh/site-functions/,bash-completion/completions/,fish/completions/}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_docdir}/%{name}
cp extra/completions/_%{name} %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
cp extra/completions/%{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
cp extra/completions/%{name}.fish %{buildroot}%{_datadir}/fish/completions/%{name}.fish
install -Dm 0644 extra/%{name}.man %{buildroot}%{_mandir}/man1/%{name}.1
install -Dm 0644 extra/%{name}.info %{buildroot}%{_docdir}/%{name}/%{name}.info

# config file
install -Dm 0644 %{S:2} %{buildroot}%{_datadir}/alacritty/%{name}.yml

rm -vf %{buildroot}%{_prefix}/.crates.toml
chmod -x %{buildroot}%{_iconsdir}/*.svg
chmod -x %{buildroot}%{_datadir}/pixmaps/*.svg
chmod -x %{buildroot}%{_appdatadir}/*.xml


# Drop check 4 now
#%%check
# test build only in 64 bit, others fail on abf
# error: ran out of registers during register allocation
# LLVM ERROR: Cannot emit physreg copy instruction
#
%ifarch x86_64
cargo test --release --locked
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 87 |21cr|alarm-clock-applet-0.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	An alarm-clock for use with the GNOME panel
Name:		alarm-clock-applet
Version:	0.3.4
Release:	2
License:	GPLv2+
Group:		Office
Url:		https://github.com/joh/alarm-clock
Source0:	https://launchpad.net/alarm-clock/trunk/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	GConf2
BuildRequires:	gnome-common
BuildRequires:	gnome-icon-theme
BuildRequires:	intltool
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(unique-1.0)
Requires:	gnome-icon-theme

%description
Alarm Clock is a fully-featured alarm clock for your GNOME panel.
It's easy to use yet powerful with support for multiple repeatable
alarms, as well as snoozing and a flexible notification system.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_sysconfdir}/gconf/schemas/alarm-clock.schemas
%{_bindir}/%{name}
%{_datadir}/%{name}/alarm-clock.ui
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg

#----------------------------------------------------------------------------

%prep
%setup -q

%build
NOCONFIGURE=1 ./autogen.sh
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 88 |21cr|albatross-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Albatross

Summary:	%{theme_name} theme
Name:		albatross
Version:	2.0
Release:	2
License:        GPLv3+
Group:		Graphics
Url:		https://www.xfce-look.org/p/1175887/
Source0:	Albatross.tar.bz2
BuildArch:	noarch
Requires: 	albatross-common
Requires: 	albatross-gtk2-theme
Requires: 	albatross-gtk3-theme
Requires: 	albatross-metacity-theme
Requires: 	albatross-xfwm4-theme

%description
Albatross GTK2,GTK3,XFWM,Metacity theme

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE0} -C %{buildroot}%{_datadir}/themes
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 89 |21cr|albert-0.17.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define	pversion b4cac28be7b265027b00279baba14086d97c4d07
%define	pb11version 2.9.2

%define commit edd178d2d58002d69c0e5b25b927863251c8e28c
%define commit_short %(echo %{commit} | head -c6)

Summary:	A fast and flexible keyboard launcher
Name:		albert
Version:	0.17.3
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://github.com/albertlauncher/albert
Source0:	https://github.com/albertlauncher/albert/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# https://github.com/albertlauncher/plugins/tree/%{pversion}
Source1:	plugins-%{pversion}.zip
# https://github.com/pybind/pybind11/tree/%{pb11version}
Source2:	pybind11-%{pb11version}.tar.gz
Patch0:		albert-0.17.2-linkage.patch
BuildRequires:	cmake >= 3.1.3
BuildRequires:	muparser-devel
BuildRequires:	python3egg(pybind11)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Charts)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.5.0
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	libnotify
Requires:	qt5-database-plugin-sqlite

%description
Access everything with virtually zero effort. Run applications, open files or
their paths, open bookmarks in your browser, search the web, calculate things
and a lot more…
Albert is a desktop agnostic launcher. Its goals are usability and beauty,
performance and extensibility. It is written in C++ and based on the Qt
framework.

%files
%doc CHANGELOG.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_libdir}/%{name}/libalbert.so
%{_libdir}/%{name}/libxdg.so
%{_libdir}/%{name}/plugins/

#----------------------------------------------------------------------------

%prep
%setup -q -a1 -a2 -n %{name}-%{commit}
mv plugins-%{pversion}/* plugins/
mv pybind11-%{pb11version}/* plugins/python/pybind11/
%patch0 -p1 -b .linkage


%build
%cmake_qt5 \
	-DBUILD_VIRTUALBOX:BOOL=OFF \
	-DCMAKE_SKIP_RPATH:BOOL=OFF
%make


%install
%makeinstall_std -C build

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/org.albert.frontend.widgetboxmodel/*.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 90 |21cr|albumshaper-2.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Graphical application used to create, maintain, and share photo albums
Name:		albumshaper
Version:	2.1
Release:	14
License:	GPLv2+
Group:		Graphics
Url:		http://albumshaper.sf.net
Source0:	http://prdownloads.sourceforge.net/albumshaper/%{name}_%{version}.tar.bz2
#gw disable upx, find-requires is broken
Patch0:		albumshaper-2.1-no-upx.patch
Patch1:		albumshaper-2.1-gcc4.1.patch
Patch2:		albumshaper-2.1-qt4.patch
BuildRequires:	doxygen
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(libxslt)

%description
Album Shaper is a graphical application used to create, maintain, and
share photo albums using open formats like HTML, XSLT, and JPG.
Two-layer albums can be created in a drag-n-drop interface which
allows quick and easy arrangement and categorization of photos. Batch
rotations make getting your photos ready a quick and easy task. You
can also crop, enhance, and manipulate your photos using a powerful
but intuitive editing interface. Photos, collections, and albums
themselves can be labeled as needed and modified at a later time by
saving and loading from a simple XML format. Albums are exported as
HTML which can then be posted directly on the web or viewed straight
from your hard drive. Album Shaper now supports themes which means you
can completely customize the look of the Albums you produce! Album
Shaper is designed to help you share your photos with your friends and
family as easily as possible, as well as update and maintain these
Albums in the most effecient and easy way possible.

%files
%doc docs/html docs/bugs.txt docs/copying.txt *.txt
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}_%{version}_src
%patch -p1
%patch1 -p1
%patch2 -p1
for file in AlbumShaper.pro AlbumShaper.xcode/project.pbxproj src/main.cpp
do
  sed -i -e 's|/local||g' $file
done

%build
%qmake_qt4
%make
doxygen AlbumShaper.doc

%install
# Install to rpm build location
%makeinstall INSTALL_ROOT=%{buildroot}
install -m 755 bin/AlbumShaper %{buildroot}%{_bindir}/AlbumShaper
find %{buildroot} -name .DS_Store -exec rm {} \;
find %{buildroot}%{_datadir} -type f -exec chmod 644 {} \;

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=AlbumShaper
Name[ru]=AlbumShaper
Comment=Create photo albums
Comment[ru]=Создание фотоальбомов
Exec=%{_bindir}/AlbumShaper
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Photography;Graphics;Viewer;
EOF

mkdir -p %{buildroot}%{_liconsdir}
mkdir -p %{buildroot}%{_miconsdir}
convert -scale 48 resources/icons/as64.png %{buildroot}%{_liconsdir}/%{name}.png
install -m 644 resources/icons/as32.png %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 resources/icons/as16.png %{buildroot}%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 91 |21cr|aldo-0.7.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		aldo
Version: 	0.7.7
Summary: 	Console-based morse tutor 
Release: 	5
License: 	GPLv2+
Group: 		Networking/Other 
Url: 		http://www.nongnu.org/aldo
Source0: 	http://savannah.nongnu.org/download/aldo/%{name}-%{version}.tar.bz2
Source1:	http://savannah.nongnu.org/download/aldo/%{name}-%{version}.tar.bz2.sig
BuildRequires:	libao-devel
BuildRequires:	readline-devel

%description
Console-based morse tutor which has four kinds of exercises:
*  Classic exercise: With this exercise you must guess some random 
   strings of characters that aldo plays in morse code
*  Koch method
*  Read from file (text file)
*  Callsign exercise (random callsigns)

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files -n %{name}
%doc AUTHORS ChangeLog NEWS README THANKS
%{_bindir}/aldo
%{_mandir}/man1/aldo*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 92 |21cr|AlephOne-20230119-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# For the "real" version, see Source_Files/Misc/alephversion.h
%define oversion 20230119

Summary:	An engine for 3D first-person shooter games Marathon 1, 2 and Infinity
Name:		AlephOne
Version:	20230119
Release:	1
License:	GPLv3+
Group:		Games/Arcade
Url:		https://alephone.lhowon.org
Source0:	https://github.com/Aleph-One-Marathon/alephone/releases/download/release-%{oversion}/AlephOne-%{oversion}.tar.bz2
Source1:	marathon.png
BuildRequires:	autoconf-archive
BuildRequires:	boost-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	smpeg2-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(zziplib)
Provides:	alephone = %{EVRD}

%description
Aleph One is an engine to run Marathon, Marathon 2 and Marathon Infinity games.
Packages containig the game datas are:
- marathon
- marathon2
- marathon-infinity.

%files
%doc AUTHORS README.md docs/MML.html
%license COPYING
%{_datadir}/mime/packages/alephone.xml
%{_datadir}/pixmaps/marathon.png
%{_gamesbindir}/alephone
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/mimetypes/*.png
%{_mandir}/man6/alephone.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{oversion}

%build
%configure \
	--bindir=%{_gamesbindir}	\
	--datadir=%{_gamesdatadir}	\
	--enable-opengl
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 93 |21cr|alertmanager-0.27.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug_package %nil

Name:		alertmanager
Version:	0.27.0
Release:	1
Summary:	Prometheus Alertmanager
Group:		Development/Other
License:	ASL 2.0
URL:		https://prometheus.io
Source0:	https://github.com/prometheus/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
# create with 'go mod vendor' and tar.gz vendor directory
Source1:	vendor.tar.gz
# we use system promu
Patch0:		alertmanager-system-promu.patch
BuildRequires:	go >= 1.11
BuildRequires:	nodejs
BuildRequires:	promu
BuildRequires:	upx
# golang not avail for this arch
ExcludeArch:	%{e2k} %{riscv}

%description
Prometheus Alertmanager

%prep
%setup -q -a1
%apply_patches

%build
make build
upx %{name}

%install
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}

%files
%doc README.md LICENSE docs
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 94 |21cr|alevt-1.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Teletext decoder and browser for bttv and DVB
Name:		alevt
Version:	1.8.2
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://www.linuxtv.org/wiki/index.php/AleVT
Source0:	https://gitlab.com/alevt/alevt/-/archive/v%{version}/%{name}-v%{version}.tar.gz
Patch1:		%{name}-1.8.2-vbi-fix.patch
BuildRequires:	pkgconfig(libpng) >= 1.0.8
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
AleVT is a teletext/videotext decoder and browser for the bttv and DVB
drivers. It features multiple windows, a page cache, regexp searching,
built-in manual, and more. There's also a program to get the time from
teletext and one to capture teletext pages from scripts.

%files
%doc CHANGELOG COPYRIGHT README.md
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/mini-%{name}.xpm
%{_datadir}/pixmaps/%{name}.xpm

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

# Fix perms
chmod 0644 {CHANGELOG,COPYRIGHT,README.md}
find . -name \*.c -o -name \*.h -o -name \*.xbm | xargs chmod 0644


%build
make OPT="%{optflags}"


%install
%make_install PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 95 |21cr|alexandra-1.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A small and user friendly opensource video library with great potential
Name:		alexandra
Version:	1.5.1
Release:	2
License:	GPLv2+
Group:		Video
Url:		http://alexandra-qt.sourceforge.net/
#Source0:	https://github.com/eugene-melnik/alexandra/archive/1.5.1.tar.gz?/%{name}-%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-qtcore-i18n
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(libmediainfo)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Alexandra Video Library - a simple and convenient program for the organization
and management of the home video library. You can completely customize the
catalog movies in a list, add a description and detailed information about the
movie in a lot of fields available, attach posters and much more. Directly from
the program, you can start playing the film, with the available choice of any
video player on your computer if you wish.

A small and user friendly opensource video library with great potential,
written in C++ using Qt5 framework.

%files
%doc CHANGELOG README.* LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}*.desktop
%{_iconsdir}/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%lang(cs) %{_datadir}/%{name}/translations/*-cs.qm
%lang(de) %{_datadir}/%{name}/translations/*-de.qm
%lang(fr) %{_datadir}/%{name}/translations/*-fr.qm
%lang(ru_RU) %{_datadir}/%{name}/translations/*-ru_RU.qm
%lang(uk_UA) %{_datadir}/%{name}/translations/*-uk_UA.qm

#----------------------------------------------------------------------------

%prep
%setup -q
# regen for qt5 5.6.0
%{_qt5_bindir}/lupdate %{name}.pro
%{_qt5_bindir}/lupdate lang/lang.pro
%{_qt5_bindir}/lupdate lang/*.ts
%{_qt5_bindir}/lrelease lang/*.ts

%build
%qmake_qt5 DEFINES+=USE_SYSTEM_LOCALE
%make

%install
%makeinstall_qt

mkdir -p %{buildroot}%{_datadir}/%{name}/translations
pushd lang
install -m 644 %{name}-*.qm \
  %{buildroot}%{_datadir}/%{name}/translations/
popd

%check
desktop-file-validate  %{buildroot}%{_datadir}/applications/%{name}*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 96 |21cr|alglib-3.19.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Force out of source build
%undefine __cmake_in_source_build

%define libname %mklibname %{name}
%define devname %mklibname %{name} -d

Name:           alglib
Version:	3.19.0
Release:	1
Summary:        A numerical analysis and data processing library
Group:          System/Libraries
License:        GPLv2+
URL:            http://www.alglib.net/
Source0:        http://www.alglib.net/translator/re/%{name}-%{version}.cpp.gpl.tgz
Source1:        CMakeLists.txt
# Extracted from manual.cpp.html
Source2:        bsd.txt

BuildRequires:  cmake

%description
ALGLIB is a cross-platform numerical analysis and data processing library.
ALGLIB features include:
 - Data analysis (classification/regression, including neural networks)
 - Optimization and nonlinear solvers
 - Interpolation and linear/nonlinear least-squares fitting
 - Linear algebra (direct algorithms, EVD/SVD), direct and iterative linear
   solvers, Fast Fourier Transform and many other algorithms (numerical
   integration, ODEs, statistics, special functions)

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	A numerical analysis and data processing library
Group:		System/Libraries

%description -n %{libname}
ALGLIB is a cross-platform numerical analysis and data processing library.
ALGLIB features include:
 - Data analysis (classification/regression, including neural networks)
 - Optimization and nonlinear solvers
 - Interpolation and linear/nonlinear least-squares fitting
 - Linear algebra (direct algorithms, EVD/SVD), direct and iterative linear
   solvers, Fast Fourier Transform and many other algorithms (numerical
   integration, ODEs, statistics, special functions)

%files -n %{libname}
%{_libdir}/libalglib-%{version}.so

#----------------------------------------------------------------------
%package -n %{devname}
Summary:        Development files for %{name}
Group:          Development/Other
Requires:       %{libname}%{?_isa} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/libalglib.so

#----------------------------------------------------------------------

%package        doc
Summary:        API documentation for %{name}
Group:          Documentation
License:        BSD
BuildArch:      noarch

%description    doc
The %{name}-doc package contains the %{name} API documentation.

%files doc
%license bsd.txt
%doc manual.cpp.html

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-cpp
cp %{SOURCE1} .
cp %{SOURCE2} .

# Fix permissions and line endings
chmod 644 gpl2.txt
chmod 644 manual.cpp.html
sed -i 's|\r||g' manual.cpp.html


%build
%cmake -DALGLIB_VERSION=%{version}
%make_build


%install
%make_install -C build

ln -s libalglib-%{version}.so %{buildroot}%{_libdir}/libalglib.so


%check
pushd build
LD_LIBRARY_PATH=$PWD ./test_c || false
LD_LIBRARY_PATH=$PWD ./test_i || false
popd





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 97 |21cr|alien-8.95.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define debug_package	%{nil}
Summary:	Install Debian and Slackware Packages with RPM

Name:		alien
Version:	8.95.6
Release:	1
URL:		http://joeyh.name/code/alien/
Source:		http://ftp.debian.org/debian/pool/main/a/alien/%{name}_%{version}.tar.xz
License:	GPLv2+
Group:		Archiving/Other
BuildRequires:	perl-devel
Requires:	perl
Requires:	dpkg >= 1.13.26
Requires:	rpm-build
# required to be able to convert rpm to .deb
Recommends:	debhelper

BuildArch:	noarch

%description
Alien is a program that converts between the rpm (Mandriva, Redhat ), 
dpkg (Debian), slp (Stampede), and tgz (Slackware) file formats. 
If you want to use a package from another distribution than the one 
you have installed on your system, you can use alien to convert 
it to your preferred package format and install it.

%package -n perl-Alien
Summary:        Alien Perl modules

Requires:	perl(base)

%description -n perl-Alien
Alien is a program that converts between the rpm (Mandriva, Redhat ),
dpkg (Debian), slp (Stampede), and tgz (Slackware) file formats.
If you want to use a package from another distribution than the one
you have installed on your system, you can use alien to convert
it to your preferred package format and install it.

%prep
%setup -q

%build
perl Makefile.PL INSTALLDIRS=vendor
perl -pi -e 's/: :\s*extra_/:: extra_/' Makefile

%make

%install
%makeinstall_std VARPREFIX=%{buildroot} PREFIX=%{buildroot}%{_prefix}

%files 
%{_bindir}/*
%{_mandir}/*/*
%doc README TODO

%files -n perl-Alien
%{perl_vendorlib}/Alien
%doc README TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 98 |21cr|alienarena-7.71.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Multiplayer retro sci-fi death match game
Name:		alienarena
Version:	7.71.6
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://red.planetarena.org/
# Source0:	http://red.planetarena.org/files/%%{name}-%%{version}-linux20130827.tar.gz
# svn co svn://svn.icculus.org/alienarena/tags/7.71.6
# cd 7.71.6
# find . -name "*.dll" -type f -delete
# find . -name "*.exe" -type f -delete
# cd ..
# mv 7.71.6 alienarena-7.71.6
# tar --exclude-vcs -cJf alienarena-7.71.6.tar.xz alienarena-7.71.6
Source0:	alienarena-%{version}.tar.xz
Source1:	alienarena.desktop
Source2:	GPL.acebot.txt
Source3:	alienarena.appdata.xml
Patch3:		alienarena-7.66-no-qglBlitFramebufferEXT.patch
# I started to clean this up properly
# ... but there are a lot of misused globals here. A LOT.
# So I just added -fcommon.
Patch6:		alienarena-7.71.4-gcc10.patch
Patch7:		alienarena-c99.patch
Patch8:		alienarena-7.71.6-fix-missing-stat-header.patch
Patch9:		alienarena-7.71.6-fix-incompatible-pointer.patch
Patch10:	alienarena-7.71.6-zlib-for-uLong.patch
Patch11:	alienarena-7.71.6-fix-bad-sprintf-use.patch
Patch12:	alienarena-7.71.6-fix-CL_GetLatestGameVersion.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	minizip-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ode)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	alienarena-data = %{EVRD}
Requires:	desktop-file-utils >= 0.9
Requires:	opengl-games-utils
Requires:	openal

%description
Alien Arena is an on-line death match game with over 30 levels, seven modes
of play, loads of mutators, built-in bots, multiple player characters and
weapons (with alt-fire modes).

%files
%doc GPL.acebot.txt
%{_bindir}/%{name}
%{_bindir}/%{name}-wrapper
%{_datadir}/applications/*.desktop
%{_miconsdir}/alien-arena.png
%{_iconsdir}/alien-arena.png
%{_liconsdir}/alien-arena.png
%{_iconsdir}/hicolor/48x48/apps/alien-arena.png
%{_iconsdir}/%{name}/alien-arena.png
%{_datadir}/appdata/alienarena.appdata.xml

#----------------------------------------------------------------------------

%package server
Summary:	Dedicated server for alienarena, the FPS game
Group:		Games/Arcade
Requires:	alienarena-data = %{EVRD}

%description server
Alien Arena is an on-line death match game with over 30 levels, seven modes
of play, loads of mutators, built-in bots, multiple player characters and
weapons (with alt-fire modes).

This is the dedicated server.

%files server
%{_bindir}/%{name}-ded
%{_bindir}/%{name}-server

#----------------------------------------------------------------------------

%package data
Summary:	Data files for Alien Arena
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description data
Data files (audio, maps, etc) for Alien Arena.

%files data
%doc docs/README.txt
%{_datadir}/alienarena/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# We don't want the bundled ode code.
rm -rf source/unix/ode

# Copy license clarification for acebot
cp -p %{SOURCE2} .

# clean up end-line encoding
[[ -e docs/README.txt ]] && %{__sed} -i 's/\r//' docs/README.txt

# clean up prebuilt binary files
[[ -e crx ]] && rm crded crx crx.sdl {arena,data1}/game.so

# clean up end-line encoding
[[ -e docs/README.txt ]] && sed -i 's/\r//' docs/README.txt

# So, AlienArena now "uses" openal by dlopening the library, which is hardcoded to 
# "libopenal.so". That file only lives in openal-devel, so we need to adjust the hardcoding.
LIBOPENAL=`ls %{_libdir}/libopenal.so.? | cut -d "/" -f 4`
sed -i "s|\"libopenal.so\"|\"$LIBOPENAL\"|g" source/unix/qal_unix.c
# linting: 266 warnings spurious exec permits
find . -type f -exec chmod -x {} \;
chmod +x configure
#
%build
export PTHREAD_LIBS="-lpthread"
export PTHREAD_CFLAGS="-pthread"
export CFLAGS="-fcommon %{optflags}"

# configure macros fail on automake -a --foreign stage
./configure --with-system-libode --without-xf86dga --with-zlib \
	--disable-static \
	--disable-silent-rules \
	--disable-dependency-tracking \
	--disable-rpath \
	--program-prefix= \
	--prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--sysconfdir=%{_sysconfdir} \
	--datadir=%{_datadir} \
	--libdir=%{_libdir}

%make

%install
%makeinstall_std
# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --dir %{buildroot}%{_datadir}/applications	\
	%{SOURCE1}

mkdir -p %{buildroot}%{_datadir}/appdata
cp -a %{SOURCE3} %{buildroot}%{_datadir}/appdata

# icons
install -d -m755 %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
convert Tools/Logos/alien-arena.png -resize 32x32 %{buildroot}%{_iconsdir}/alien-arena.png
convert Tools/Logos/alien-arena.png -resize 16x16 %{buildroot}%{_miconsdir}/alien-arena.png
install -p Tools/Logos/alien-arena.png %{buildroot}%{_liconsdir}/alien-arena.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps/
install -p Tools/Logos/alien-arena.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/alien-arena.png

# opengl checker
ln -s opengl-game-wrapper.sh %{buildroot}%{_bindir}/%{name}-wrapper
ln -s crx-ded %{buildroot}%{_bindir}/%{name}-server

# clean docs as we don't want to package them twice
rm -rf %{buildroot}%{_defaultdocdir}/%{name}
find %{buildroot} -type f -empty -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 99 |21cr|alienblaster-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Version:	1.1.0
Summary:	Action-loaded 2D arcade shooter game
Name:		alienblaster
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Source0:	http://www.informatik.uni-bremen.de/~schwardt/alienblaster/%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
URL:		http://www.schwardtnet.de/alienblaster/
BuildRequires:	pkgconfig(SDL_mixer)

%description
Alien Blaster is an action-loaded 2D arcade shooter game. Your mission in the 
game is simple: stop the invasion of the aliens by blasting them. 
Simultaneous two-player mode is available.

%files
%doc README CHANGELOG AUTHORS.txt VERSION
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
#---------------------------------------------------------------------


%prep
%setup -qn %{name}
iconv -c -t UTF-8 < AUTHORS > AUTHORS.txt

%build
%make

%install
install -m755 alienBlaster -D %{buildroot}%{_gamesbindir}/alienBlaster.real

cat > %{buildroot}%{_gamesbindir}/alienBlaster << EOF
#!/bin/bash
cd %{_gamesdatadir}/%{name}
%{_gamesbindir}/alienBlaster.real \$@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/alienBlaster

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Alien Blaster
Comment=%{Summary}
Exec=%{_gamesbindir}/alienBlaster
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -R images sound cfg %{buildroot}%{_gamesdatadir}/%{name}

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 100 |21cr|alienpool-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Arcade-style mix of asteroids and pool
Name:		alienpool
Version:	0.2.0
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.mkorman.org/alienpool/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)

%description
Alienpool is a space-shooter that is similar to both asteroids
and pool. Move a spaceship around the screen and shoot at aliens.
Aliens that have been shot bounce around the screen and hit other
aliens.

%files
%doc README COPYING AUTHORS
%{_gamesbindir}/%{name}
%{_localstatedir}/lib/games/*
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_mandir}/man6/%{name}.6*
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--bindir=%{_gamesbindir} \
	--localstatedir=%{_localstatedir}/lib

%make

%install
#%%makeinstall_std

# binary
install -D -m 755 src/%{name} %{buildroot}%{_gamesbindir}/%{name}
# scores
mkdir -p %{buildroot}%{_localstatedir}/lib/games
install -m 664 %{name}.scores %{buildroot}%{_localstatedir}/lib/games
# data
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/sounds
install -m 644 data/sounds/*.wav %{buildroot}%{_gamesdatadir}/%{name}/sounds
install -m 644 data/sounds/*.ogg %{buildroot}%{_gamesdatadir}/%{name}/sounds

for i in alien alienbullet bullet dumbalien healthbonus hyperbonus ship shootbonus thrustship; do
    mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/sprites/$i
    install -m 644 data/sprites/$i/*.png %{buildroot}%{_gamesdatadir}/%{name}/sprites/$i
    install -m 644 data/sprites/$i/info %{buildroot}%{_gamesdatadir}/%{name}/sprites/$i
done

for i in h.png s.png starscape.png alienpool.xpm mainmenu.png VeraBI.ttf; do
    install -m 644 data/$i %{buildroot}%{_gamesdatadir}/%{name}/$i
done

#menu entry
install -D -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Alien pool
Comment=Arcade-style mix of asteroids and pool
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# icons
install -D -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE2} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 101 |21cr|allegro5-5.2.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname allegro

%define major 5.2
%define libname %mklibname allegro %{major}
%define libacodec %mklibname allegro_acodec %{major}
%define libaudio %mklibname allegro_audio %{major}
%define libcolor %mklibname allegro_color %{major}
%define libdialog %mklibname allegro_dialog %{major}
%define libfont %mklibname allegro_font %{major}
%define libimage %mklibname allegro_image %{major}
%define libmain %mklibname allegro_main %{major}
%define libmemfile %mklibname allegro_memfile %{major}
%define libphysfs %mklibname allegro_physfs %{major}
%define libprimitives %mklibname allegro_primitives %{major}
%define libttf %mklibname allegro_ttf %{major}
%define libvideo %mklibname allegro_video %{major}
%define devname %mklibname %{name} -d

Summary:	Game programming library
Name:		allegro5
Version:	5.2.7.0
Release:	1
License:	zlib
Group:		System/Libraries
Url:		http://liballeg.org
Source0:	https://github.com/liballeg/allegro5/releases/download/%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	jpeg-devel
BuildRequires:	physfs-devel
BuildRequires:	freeimage-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse-simple)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)

%description
Allegro is a library of functions for use in computer games.

%files
%{_sysconfdir}/allegro5rc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
Allegro is a library of functions for use in computer games.

%files -n %{libname}
%{_libdir}/liballegro.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libacodec}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libacodec}
Allegro is a library of functions for use in computer games.

%files -n %{libacodec}
%{_libdir}/liballegro_acodec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libaudio}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libaudio}
Allegro is a library of functions for use in computer games.

%files -n %{libaudio}
%{_libdir}/liballegro_audio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcolor}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libcolor}
Allegro is a library of functions for use in computer games.

%files -n %{libcolor}
%{_libdir}/liballegro_color.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdialog}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libdialog}
Allegro is a library of functions for use in computer games.

%files -n %{libdialog}
%{_libdir}/liballegro_dialog.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfont}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libfont}
Allegro is a library of functions for use in computer games.

%files -n %{libfont}
%{_libdir}/liballegro_font.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libimage}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libimage}
Allegro is a library of functions for use in computer games.

%files -n %{libimage}
%{_libdir}/liballegro_image.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libmain}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libmain}
Allegro is a library of functions for use in computer games.

%files -n %{libmain}
%{_libdir}/liballegro_main.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libmemfile}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libmemfile}
Allegro is a library of functions for use in computer games.

%files -n %{libmemfile}
%{_libdir}/liballegro_memfile.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libphysfs}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libphysfs}
Allegro is a library of functions for use in computer games.

%files -n %{libphysfs}
%{_libdir}/liballegro_physfs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libprimitives}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libprimitives}
Allegro is a library of functions for use in computer games.

%files -n %{libprimitives}
%{_libdir}/liballegro_primitives.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libttf}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libttf}
Allegro is a library of functions for use in computer games.

%files -n %{libttf}
%{_libdir}/liballegro_ttf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libvideo}
Summary:	Game programming library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libvideo}
Allegro is a library of functions for use in computer games.

%files -n %{libvideo}
%{_libdir}/liballegro_video.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Game programming library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libacodec} = %{EVRD}
Requires:	%{libaudio} = %{EVRD}
Requires:	%{libcolor} = %{EVRD}
Requires:	%{libdialog} = %{EVRD}
Requires:	%{libfont} = %{EVRD}
Requires:	%{libimage} = %{EVRD}
Requires:	%{libmain} = %{EVRD}
Requires:	%{libmemfile} = %{EVRD}
Requires:	%{libphysfs} = %{EVRD}
Requires:	%{libprimitives} = %{EVRD}
Requires:	%{libttf} = %{EVRD}
Requires:	%{libvideo} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Allegro is a library of functions for use in computer games.
This package contains files needed to build programs using Allegro.

%files -n %{devname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*-5.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
	-DWANT_DOCS:BOOL=OFF \
	-Wno-dev \
	-G Ninja
%ninja_build

%install
%ninja_install -C build
install -D -m 644 allegro5.cfg %{buildroot}%{_sysconfdir}/allegro5rc

# copy headers to right place
cp %{buildroot}%{_includedir}/%{name}/allegro.h %{buildroot}%{_includedir}
cp %{buildroot}%{_includedir}/%{name}/allegro5.h %{buildroot}%{_includedir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 102 |21cr|alleyoop-0.9.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical frontend to Valgrind memory checker
Name:		alleyoop
Version:	0.9.8
Release:	6
License:	GPLv2+
Group:		Development/Tools
Url:		http://alleyoop.sourceforge.net/
Source0:	https://sourceforge.net/projects/alleyoop/files/alleyoop/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	GConf2
BuildRequires:	intltool
BuildRequires:	valgrind
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
Requires:	GConf2
Requires:	valgrind

%description
Alleyoop is a graphical frontend to the Valgrind memory checker for
GNOME.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%{_sysconfdir}/gconf/schemas/*.schemas
%{_bindir}/*
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-vgstrpool=yes
%make

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Alleyoop
Comment=%{Summary}
Exec=%{_bindir}/%{name}
Icon=development_tools_section
Terminal=false
Type=Application
Categories=Development;Debugger;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 103 |21cr|alligator-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RSS reader for Plasma Mobile
Name:		alligator
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/alligator-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5syndication-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	pkgconfig(openssl)

%description
RSS reader for Plasma Mobile.


%files -f %{name}.lang
%{_kde5_bindir}/alligator
%{_kde5_applicationsdir}/org.kde.alligator.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/alligator.svg
%{_kde5_datadir}/metainfo/org.kde.alligator.appdata.xml

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 104 |21cr|all-spec-2024.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Collection of special rpm Rosa assembly files
Name:		all-spec
Version:	2024.12
Release:	1
License:	MIT
Group:		Documentation
Url:		https://vk.com/rpmbuild
# mkdir -p ~/all-spec/rosa_platform_20{21,23}.1
# cp make_all_spec.sh rosa_mirror_script_x86_64.sh update.sh ~/all-spec/
# ./update.sh
# ./make_all_spec.sh
Source0:	%{name}-%{version}.tar.xz
Source1:	%{name}-unsupport.tar.xz
Source2:	spgrep
Requires:	%{name}-stable = %{EVRD}
Requires:	less
Requires:	grep
Requires:	wget
Recommends:	%{name}-unstable = %{EVRD}
Recommends:	%{name}-unsupport = %{EVRD}
Provides:	spgrep = %{EVRD}
BuildArch:	noarch

%description
Collection of special rpm Rosa assembly files.

%files
%doc make_all_spec.sh readme.txt rosa_mirror_script_x86_64.sh update.sh
%{_bindir}/spgrep

#----------------------------------------------------------------------------

%package unstable
Summary:	Collection of special rpm Rosa assembly files from unstable platform
Group:		Documentation

%description unstable
Collection of special rpm Rosa assembly files from unstable platform.

%files unstable
%{_datadir}/%{name}/all_spec_23

#----------------------------------------------------------------------------

%package stable
Summary:	Collection of special rpm Rosa assembly files from stable platform
Group:		Documentation

%description stable
Collection of special rpm Rosa assembly files from stable platform.

%files stable
%{_datadir}/%{name}/all_spec_21

#----------------------------------------------------------------------------

%package unsupport
Summary:	Collection of special rpm Rosa assembly files from unsupport platform
Group:		Documentation

%description unsupport
Collection of special rpm Rosa assembly files from unstable platform.

%files unsupport
%{_datadir}/%{name}/all_spec_12
%{_datadir}/%{name}/all_spec_14
%{_datadir}/%{name}/all_spec_16

#----------------------------------------------------------------------------

%package raw
Summary:	Collection of copies special rpm Rosa assembly files
Group:		Documentation

%description raw
Collection of copies special rpm Rosa assembly files.

%files raw
%{_datadir}/%{name}/raw_spec_*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1
mv -f all-spec-unsupport/* ./

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp all_* raw_* %{buildroot}%{_datadir}/%{name}

mkdir -p %{buildroot}%{_bindir}
cp %{SOURCE2} %{buildroot}%{_bindir}
chmod +x %{buildroot}%{_bindir}/spgrep

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 105 |21cr|alltray-0.7.5.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Docks any application into the system tray
Name:		alltray
Version:	0.7.5.1
Release:	4
# TODO: get rid of epoch with next rosa R spin.Sflo
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://launchpad.net/alltray/
Source0:	https://launchpad.net/alltray/trunk/%{version}dev/+download/%{name}-%{version}dev.tar.gz
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libwnck-1.0)
BuildRequires:	pkgconfig(xpm)

%description
AllTray is a program you can use on systems running the X Window System to
dock any application which doesn't have a native tray icon into the system
tray/notification area. AllTray works with many desktop environments and
window managers, including Metacity  on GNOME, KWin  on KDE  and OpenBox,
both standalone and with GNOME or KDE.

%files -f %{name}.lang
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}-ctt-helper
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}*.png
%{_datadir}/pixmaps/%{name}_ctt.xpm
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}dev
#fix .desktop file
sed -i -e 's|%{name}.png|%{name}|' -e 's|Application;|GTK;|' data/%{name}.desktop

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 106 |21cr|almanah-0.12.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Application for keeping an encrypted diary
Name:		almanah
Version:	0.12.3
Release:	3
License:	GPLv3+
Group:		Office
Url:		http://tecnocode.co.uk/projects/almanah/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/almanah/0.12/%{name}-%{version}.tar.xz
Patch0:		fix-meson-061.patch
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtkspell3-3.0)
BuildRequires:	gpgme-devel
BuildRequires:	config(gettext)
BuildRequires:	pkgconfig(cryptui-0.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libedataserver-1.2)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	meson
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(gtksourceview-3.0)



%description
Almanah Diary is a small application to ease the management of an encrypted
personal diary. It's got good editing abilities, including text formatting 
and printing. Evolution tasks and appointments will be listed to ease the 
creation of diary entries related to them. At the same time, you can create
diary entries using multiple events.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README.*
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/GConf/gsettings/%{name}.convert
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/*/%{name}-*.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
# wtf
mkdir -p %{buildroot}%{_datadir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 107 |21cr|alpine-2.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mail user agent
Name:		alpine
Version:	2.26
Release:	1
License:	ASL 2.0
Group:		Networking/Mail
Url:		http://alpine.x10host.com/
Source0:	http://alpine.x10host.com/alpine/release/src/alpine-%{version}.tar.xz
BuildRequires:	hunspell
BuildRequires:	passwd
BuildRequires:	rootcerts
BuildRequires:	gettext-devel >= 0.16.1
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
Requires:	hunspell
Requires:	mailcap
Requires(post):	rpm-helper
Conflicts:	pine

%description
Alpine is a tool for reading, sending, and managing e-mail and internet news
(usenet) messages. It is the successor to Pine and was developed by Computing
& Communications at the University of Washington.
Though originally designed for inexperienced email users, it supports many
advanced features and a large number of configuration and personal-preference
options.

%files
%doc README LICENSE NOTICE
%ghost %config(noreplace) %{_sysconfdir}/pine.conf
%ghost %config(noreplace) %{_sysconfdir}/pine.conf.fixed
%{_bindir}/%{name}
%{_bindir}/pico
%{_bindir}/pilot
%{_bindir}/rpload
%{_bindir}/rpdump
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/pico.1*
%{_mandir}/man1/pilot.1*
%{_mandir}/man1/rpload.1*
%{_mandir}/man1/rpdump.1*

%post
%create_ghostfile %{_sysconfdir}/pine.conf root root 664
%create_ghostfile %{_sysconfdir}/pine.conf.fixed root root 664

#----------------------------------------------------------------------------

%prep
%setup -q

# Fix permissions
find . -name "*.c" -o -name "*.h" -o -name "*.cpp" |xargs chmod 0644
chmod 644 NOTICE README LICENSE



%build
touch imap/ip6
%configure \
	--enable-debug \
	--disable-rpath \
	--without-tcl \
	--with-c-client-target=lfd \
	--with-smtp-msa=%{_sbindir}/sendmail \
	--with-npa=%{_bindir}/inews \
	--with-passfile=.alpine.passfile \
	--with-simple-spellcheck=hunspell \
	--with-interactive-spellcheck=hunspell \
	--with-system-pinerc=%{_sysconfdir}/pine.conf \
	--with-system-fixed-pinerc=%{_sysconfdir}/pine.conf.fixed

%make


%install
%makeinstall_std

# Create ghost'd files
mkdir -p %{buildroot}%{_sysconfdir}
touch %{buildroot}%{_sysconfdir}/pine.conf
touch %{buildroot}%{_sysconfdir}/pine.conf.fixed


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 108 |21cr|alsamixergui-0.9.0-0.15rc1_5.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	beta	rc1_5
%define	fbeta	rc1-2

Summary:	Advanced Linux Sound Architecture (ALSA) graphical mixer
Name:		alsamixergui
Version:	0.9.0
Release:	%mkrel 0.15%{beta}.3
License:	GPLv2+
Group:		Sound
# URLs are dead: use the stored sources
#URL:		http://www.iua.upf.es/~mdeboer/projects/alsamixergui/
#Source0:	ftp://www.iua.upf.es/pub/mdeboer/projects/alsamixergui/%%{name}-%%{version}%%{fbeta}.tar.bz2
URL:		https://launchpad.net/ubuntu/+source/alsamixergui
Source0:	%{name}-%{version}%{fbeta}.tar.bz2
Patch0:		alsamixergui-0.9.0rc1-fixes.patch
Patch1:		alsamixer-0.9.0rc1-2-fltk.patch
Patch2:		alsamixer-0.9.0rc1-2-fltk2.patch
Patch3:		alsamixergui-0.9.0rc1-memleak.patch
Patch4:		alsamisergui-fix-compile-gcc-3.4.patch
Patch5:		alsamixergui-0.9.0rc1-lock.patch
Patch6:		alsamixergui-0.9.0rc1-2-mdv-fix-str-fmt.patch
Patch7:		alsamixergui-0.9.0.1.2-strsignal.patch
Patch8:		segfault-on-exit.patch
BuildRequires:	kernel-headers >= 2.4.0
BuildRequires:	fltk-devel >= 1.1
BuildRequires:	pkgconfig(alsa) >= %{version}

%description
Alsamixergui is a FLTK based front-end for alsamixer. It is written directly on
top of the alsamixer sources, leaving the original ones intact, only adding a
couple of ifdefs and some calls to the gui part, so it provides exactly the
same functionality, but with a graphical user interface.

%files
%doc AUTHORS README
%{_bindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}%{fbeta}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch4 -p1 -b .fix_gcc_3.4
%patch5 -p0
%patch6 -p1 -b .strfmt
%patch7 -p1
%patch8 -p1


%build
autoreconf -fi
%configure
%make


%install
%makeinstall_std

# Desktop menu entry
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=AlsaMixerGUI
Comment=%{summary}
Exec=%{name}
Icon=sound_section
Terminal=false
Type=Application
Categories=Audio;Mixer;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 109 |21cr|alsamixertest-48.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	fname %{name}_%{version}
%define	libname %mklibname %{name}

Summary:	A test tool for alsa mixer implementations
Name:		alsamixertest
Version:	48.11
Release:	6
License:	GPLv3+
Group:		Sound
URL:		https://launchpad.net/~diwic/+archive/ubuntu/ppa/+packages
Source0:	https://launchpad.net/~diwic/+archive/ppa/+files/%{fname}.tar.gz
BuildRequires:	pkgconfig(fftw3)
BuildRequires:  pkgconfig(python)

%description
A small script which tests whether the ALSA mixer lives up to PulseAudio's
(and other advanced ALSA clients) expectations. If you are familiar with
dbmeasure or dbverify by Lennart Poettering, this application's purpose is
very similar, but this one is hopefully easier to set up, more user friendly,
and also tests that the names of the volume controls are correct.
My hope is that this will aid as a debugging tool for all these "everything
below 20% of my speaker is muted, and then 21% blows my speakers" bugs.

To use the tool, you'll need some kind of loopback. You can e.g. use a
loopback cable and connect that between line in and line out, or test your
laptop's internal speakers with your laptop's internal mic (just stop humming
when you do so :-) ). Just set up the recording levels appropriately.

When it is installed, run "alsamixertest -r" for a small tutorial and
"alsamixertest -h" for command line options help.

%files
%doc README.txt
%{_bindir}/%{name}
%{_datadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q
#apply_patches


%build
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 110 |21cr|alsaplayer-0.99.82-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This is needed because while the make process builds the gtk2 interface module:
# 1. it needs symbols from libdl but does not have the required "-ldl" in place
# 2. it lacks an explicitly reference to libalsaplayer.la
# 3. it references other modules (app, alsaplayer) before having built them
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Advanced Linux Sound Architecture (ALSA) player
Name:		alsaplayer
# Really a git head snapshot to get all updates since 2010
Version:	0.99.82
Release:	8
License:	GPLv3+
Group:		Sound
URL:		http://alsaplayer.sourceforge.net/
Source0:	https://github.com/%{name}/%{name}/archive/%{name}-master.zip
Source1:	%{name}-icons.tar.bz2
Source2:	alsaplayer_ru.tar.gz
BuildRequires:	doxygen
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	nas-devel
BuildRequires:	xosd-devel
BuildRequires:	pkgconfig(alsa) >= 1.0.4
BuildRequires:	pkgconfig(esound) >= 0.2.4
BuildRequires:	pkgconfig(flac) >= 1.1.3
BuildRequires:	pkgconfig(gdk-2.0) >= 2.10.0
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libmikmod) >= 3.1.7
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(sndfile) >= 1.0.4
BuildRequires:	pkgconfig(vorbis)
Requires:	%{name}-plugin-ui-gtk

%description
Advanced Linux Sound Architecture (ALSA) utils. Modularized architecture with
support for a large range of ISA and PCI cards. Fully compatible with OSS/Lite
(kernel sound drivers), but contains many enhanced features.

%files -f %{name}.lang
%doc docs/*.txt
%doc COPYING
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/*/
%{_libdir}/%{name}/input/libcdda.so
#{_libdir}/%%{name}/input/libwav.so
%{_libdir}/%{name}/output/libalsa_out.so
%{_libdir}/%{name}/output/libnull_out.so
%{_libdir}/%{name}/output/liboss_out.so
%{_libdir}/%{name}/interface/libdaemon_interface.so
%{_libdir}/%{name}/interface/libtext_interface.so
%{_libdir}/%{name}/interface/libxosd_interface.so
%{_libdir}/%{name}/reader/libfile.so
%{_libdir}/%{name}/reader/libhttp.so
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	AlsaPlayer shared library
Group:		System/Libraries

%description -n %{libname}
This is the shared library of AlsaPlayer.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	AlsaPlayer development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the development part of the AlsaPlayer librairy.

%files  -n %{devname}
%doc COPYING
%doc docs/reference/html/
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package plugin-input-flac
Summary:	AlsaPlayer plugin for playing FLAC audio files
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-input-flac
This plugin enables alsaplayer to play files in the lossless audio 
compression format FLAC.

%files plugin-input-flac
%doc COPYING
%{_libdir}/%{name}/input/libflac_in.so

#----------------------------------------------------------------------------

%package plugin-input-mad
Summary:	AlsaPlayer plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-input-mad
This plugin enables alsaplayer to play mpeg files though the libmad library.
It currently supports MPEG-1 and the MPEG-2  extension to Lower Sampling
Frequencies, as well as the so-called MPEG 2.5 format. All three audio layers
(Layer I, Layer II, and Layer III a.k.a. MP3) are fully implemented.

%files plugin-input-mad
%doc COPYING
%{_libdir}/%{name}/input/libmad_in.so

#----------------------------------------------------------------------------

%package plugin-input-mod
Summary:	AlsaPlayer plugin for playing MOD modules
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-input-mod
This plugin enables alsaplayer to play module music files.
Supported file formats include MOD, STM, S3M, MTM, XM, ULT, and IT.

%files plugin-input-mod
%doc COPYING
%{_libdir}/%{name}/input/libmod.so

#----------------------------------------------------------------------------

%package plugin-input-sndfile
Summary:	AlsaPlayer plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-input-sndfile
This plugin enables alsaplayer to play sound files such as AIFF, AU
and WAV files through the sndfile library. It can currently read 8,
16, 24 and 32-bit PCM files as well as 32-bit floating point WAV files
and a number of compressed formats.

%files plugin-input-sndfile
%doc COPYING
%{_libdir}/%{name}/input/libsndfile_in.so

#----------------------------------------------------------------------------

%package plugin-input-vorbis
Summary:	AlsaPlayer plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-input-vorbis
This plugin enables alsaplayer to play ogg vorbis music files.

%files plugin-input-vorbis
%doc COPYING
%{_libdir}/%{name}/input/libvorbis_in.so

#----------------------------------------------------------------------------

%package plugin-output-jack
Summary:	AlsaPlayer for the jack sound server
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-output-jack
This plugin enables alsaplayer to play music with the jack daemon.

%files plugin-output-jack
%doc COPYING
%{_libdir}/%{name}/output/libjack_out.so

#----------------------------------------------------------------------------

%package plugin-output-esound
Summary:	AlsaPlayer plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-output-esound
This plugin enables alsaplayer to play music with the esound daemon.

%files plugin-output-esound
%doc COPYING
%{_libdir}/%{name}/output/libesound_out.so

#----------------------------------------------------------------------------

%package plugin-output-nas
Summary:	AlsaPlayer NAS output plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-output-nas
This plugin enables alsaplayer to play music with the NAS daemon.

%files plugin-output-nas
%doc COPYING
%{_libdir}/%{name}/output/libnas_out.so

#----------------------------------------------------------------------------

%package plugin-ui-gtk
Summary:	AlsaPlayer UI plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-ui-gtk
This plugin adds a nice graphical interface to alsaplayer.

%files plugin-ui-gtk
%doc COPYING
%{_libdir}/%{name}/interface/libgtk2_interface.so

#----------------------------------------------------------------------------

%package plugin-scopes
Summary:	AlsaPlayer graphical scopes
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-scopes
This plugin adds some nice graphical visualization plugins (scopes).

%files plugin-scopes
%doc COPYING
%{_libdir}/%{name}/scopes2

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-master

pushd po
tar -xvzf %{SOURCE2}
popd

rm -rf attic

%build
#./autogen.sh
autoreconf -fi

%configure \
	--enable-alsa \
	--enable-esd \
	--disable-debug \
	--enable-nas \
	--enable-gtk2 \
	--enable-systray

# Fix wrong name for lang files
pushd po
sed -i 's|@GETTEXT_PACKAGE@|alsaplayer|g' Makefile
sed -i 's|@GETTEXT_PACKAGE@|alsaplayer|g' Makefile.in
popd

%make


%install
%makeinstall_std

#clean unpackaged files:
rm -rf %{buildroot}%{_datadir}/doc/%{name}

tar xfj %{SOURCE1} -C %{buildroot}%{_datadir}

# fix permissions:
#chmod 755 docs/reference/html

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 111 |21cr|altermime-0.3.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Allows you to modify mailpacks
Name:		altermime
Version:	0.3.11
Release:	1
License:	BSD
Group:		Networking/Mail
URL:		http://www.pldaniels.com/altermime/
Source0:	http://pldaniels.com/altermime/altermime-0.3-dev.tar.gz
Patch0:		altermime-0.3.11-werror.patch
BuildRequires:	libtool

%description
alterMIME is a small program which is used to alter your mime-encoded
emailpacks as typically received by Inflex, XaMime and AMaViS.

alterMIME will allow you to put in things like disclaimers in each email's
text body, and also permit you to nullify (make into a zero-byte) attachments.

%files
%doc CHANGELOG LICENCE README
%{_bindir}/altermime

#----------------------------------------------------------------------------

%prep
%setup -q -n altermime-0.3-dev
%patch0 -p0

%build
%serverbuild

%make RPM_OPT_FLAGS="%{optflags} -fPIC -D_REENTRANT -I." \
		LDFLAGS="%{ldflags}"

%make RPM_OPT_FLAGS="%{optflags} -fPIC -D_REENTRANT -I." \
		LDFLAGS="%{ldflags}"
       
%install
rm -rf %{buildroot}
# Makefile has hardcoded paths
mkdir -p %{buildroot}%{_bindir}
install -m 755 altermime %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 112 |21cr|alure-1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		alure
Version:	1.2
Release:	9
Summary:	Audio Library Tools REloaded
Group:		System/Libraries
# fedoras license LGPLv2+ , Arch, FreeBSD and Debian : MIT, A lot of gray area here..
License:	LGPLv2+
Url:		http://kcat.strangesoft.net/alure.html
Source0:	%{name}-%{version}.tar.bz2
Patch0:		alure-1.2-gcc47.patch
Patch1:		alure-1.2-link.patch
# cmake generate bad cflags string, use direct pkg-config info
Patch2:		alure-fluidsynth-cflags.patch
BuildRequires:	cmake
#BuildRequires:	dumb-devel
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libmpg123)
Requires:	%{libname} = %{EVRD}

%description
ALURE is a utility library to help manage common tasks with OpenAL
applications. This includes device enumeration and initialization,
file loading, and streaming.

%files
%doc COPYING
%{_bindir}/%{name}*
#------------------------------------------------------------------------------
%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries


%description -n %{libname}
Libraries needed by %{name}.

ALURE is a utility library to help manage common tasks with OpenAL
applications. This includes device enumeration and initialization,
file loading, and streaming.

%files -n %{libname}
%doc COPYING
%{_libdir}/libalure.so.%{major}*
#------------------------------------------------------------------------------
%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{develname}
Libraries and header files to develop applications that use %{name}.

ALURE is a utility library to help manage common tasks with OpenAL
applications. This includes device enumeration and initialization,
file loading, and streaming.


%files -n %{develname}
%doc COPYING
%{_docdir}/%{name}
%{_includedir}/AL
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
#------------------------------------------------------------------------------
%prep
%autosetup -p1

%build
%cmake -DMODPLUG=ON -DDUMB=OFF -DBUILD_STATIC=OFF

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 113 |21cr|amanda-3.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _disable_ld_no_undefined 1

# new perl policy
%if %{_use_internal_dependency_generator}
%global __provides_exclude perl\\(Math::BigInt\\)
%else
%define _provides_exceptions perl(Math::BigInt)
%endif

%define defconfig DailySet1
%define indexserver amandahost
%define tapeserver %{indexserver}
%define amanda_user amandabackup
%define amanda_group disk

Summary:	A network-capable tape backup solution
Name:		amanda
Version:	3.5.1
Release:	1
License:	BSD
Group:		Archiving/Backup
Url:		http://www.amanda.org
Source0:	http://downloads.sourceforge.net/amanda/amanda-%{version}.tar.gz
Source1:	amanda.crontab
Source4:	disklist
Source5:	amanda-xinetd
Source8:	amandahosts
# filter server spcific permits
Source100:	%{name}.rpmlintrc
Patch0:		amanda-3.3.9-hash-permission.patch
Patch1:		amanda-3.4-fix-dependencies.diff
Patch2:		amanda-3.1.1-xattrs.patch
Patch3:		amanda-3.1.1-tcpport.patch
Patch6:		amanda-3.2.0-config-dir.patch
BuildRequires:	bison
BuildRequires:	cups
BuildRequires:	dump
BuildRequires:	flex
BuildRequires:	gnuplot
BuildRequires:	mt-st
BuildRequires:	mtx
BuildRequires:	ncompress
BuildRequires:	netkit-rsh
BuildRequires:	openssh-clients
BuildRequires:	samba-client
BuildRequires:	swig
BuildRequires:	gettext-devel
BuildRequires:	readline-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	perl(Test::Simple)

Requires(pre):	shadow-utils
Requires:	perl-%{name} = %{EVRD}
Requires:	xinetd
%rename		amanda-devel

%description
AMANDA, the Advanced Maryland Automatic Network Disk Archiver, is a
backup system that allows the administrator of a LAN to set up a
single master backup server to back up multiple hosts to one or more
tape drives or disk files.  AMANDA uses native dump and/or GNU tar
facilities and can back up a large number of workstations running
multiple versions of Unix.  Newer versions of AMANDA (including this
version) can use SAMBA to back up Microsoft(TM) Windows95/NT hosts.
The amanda package contains the core AMANDA programs and will need to
be installed on both AMANDA clients and AMANDA servers.  Note that you
will have to install the amanda-client and/or amanda-server packages as
well.

%files
%doc COPYRIGHT* NEWS README
%config(noreplace) %{_sysconfdir}/xinetd.d/amanda
%config(noreplace) %{_sysconfdir}/amanda/amanda-security.conf
%dir %{_libexecdir}/amanda
%{_libexecdir}/amanda/amandad
%{_libexecdir}/amanda/amanda-sh-lib.sh
%{_libexecdir}/amanda/amcat.awk
%{_libexecdir}/amanda/amndmjob
%{_libexecdir}/amanda/amplot.awk
%{_libexecdir}/amanda/amplot.g
%{_libexecdir}/amanda/amplot.gp
%{_libexecdir}/amanda/ndmjob
%{_libexecdir}/amanda/ambind
%{_sbindir}/amandad
%{_sbindir}/amaespipe
%{_sbindir}/amarchiver
%{_sbindir}/amcrypt
%{_sbindir}/amcrypt-ossl
%{_sbindir}/amcrypt-ossl-asym
%{_sbindir}/amcryptsimple
%{_sbindir}/amgetconf
%{_sbindir}/amgpgcrypt
%{_sbindir}/amplot
%{_sbindir}/amssl

%{_mandir}/man5/amanda-archive-format.5*
%{_mandir}/man5/amanda-security.conf.5*
%{_mandir}/man7/amanda-compatibility.7*
%{_mandir}/man5/amanda.conf*
%{_mandir}/man7/amanda-auth.7*
%{_mandir}/man7/amanda-auth-ssl.7*
%{_mandir}/man7/amanda-match.7*
%{_mandir}/man7/amanda-scripts.7*
%{_mandir}/man8/amanda.8*
%{_mandir}/man8/amarchiver.8*
%{_mandir}/man8/amplot.8*
%{_mandir}/man8/script-email.8*
%{_mandir}/man8/amaespipe.8*
%{_mandir}/man8/amcrypt-ossl-asym.8*
%{_mandir}/man8/amcrypt-ossl.8*
%{_mandir}/man8/amcryptsimple.8*
%{_mandir}/man8/amcrypt.8*
%{_mandir}/man8/amgpgcrypt.8*
%{_mandir}/man8/amgetconf.8*
%{_mandir}/man8/amssl.8*

%dir %{_sysconfdir}/amanda/
%dir %{_sysconfdir}/amanda/%{defconfig}

%attr(-,%{amanda_user},%{amanda_group}) %dir %{_localstatedir}/lib/amanda/
%attr(600,%{amanda_user},%{amanda_group}) %config(noreplace) %{_localstatedir}/lib/amanda/.amandahosts
%attr(02700,%{amanda_user},%{amanda_group}) %dir %{_var}/log/amanda

%pre
/usr/sbin/useradd -M -N -g %{amanda_group} -o -r -d %{_localstatedir}/lib/amanda -s /bin/bash \
	-c "Amanda user" -u 33 %{amanda_user} >/dev/null 2>&1 || :
/usr/bin/gpasswd -a %{amanda_user} tape >/dev/null 2>&1 || :

%post
[ -f %{_var}/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || :

%postun
[ -f %{_var}/lock/subsys/xinetd ] && /sbin/service xinetd reload > /dev/null 2>&1 || :

#----------------------------------------------------------------------------

%package client
Summary:	The client component of the AMANDA tape backup system
Group:		Archiving/Backup
Requires:	amanda = %{EVRD}

%description client
The Amanda-client package should be installed on any machine that will
be backed up by AMANDA (including the server if it also needs to be
backed up).  You will also need to install the amanda package on each
AMANDA client machine.

%files client
%doc COPYRIGHT* NEWS README
%dir %{_libexecdir}/amanda/application/
%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/application/ambsdtar
%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/application/amgtar
%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/application/amstar
%{_libexecdir}/amanda/application/amlog-script
%{_libexecdir}/amanda/application/ampgsql
%{_libexecdir}/amanda/application/amrandom
%{_libexecdir}/amanda/application/amraw
%{_libexecdir}/amanda/application/amsamba
%{_libexecdir}/amanda/application/amsuntar
%{_libexecdir}/amanda/application/amzfs-sendrecv
%{_libexecdir}/amanda/application/amzfs-snapshot
%{_libexecdir}/amanda/application/script-email
%{_libexecdir}/amanda/application/script-fail

%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/calcsize
%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/killpgrp
%{_libexecdir}/amanda/noop
%{_libexecdir}/amanda/patch-system
%{_libexecdir}/amanda/restore
%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/rundump
%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/runtar
%{_libexecdir}/amanda/selfcheck
%{_libexecdir}/amanda/sendbackup
%{_libexecdir}/amanda/senddiscover
%{_libexecdir}/amanda/sendsize
%{_libexecdir}/amanda/teecount
%{_sbindir}/ambackup
%{_sbindir}/amdump_client
%{_sbindir}/amoldrecover
%{_sbindir}/amrecover

%{_mandir}/man7/amanda-applications.7*
%{_mandir}/man8/amdump_client.8*
%{_mandir}/man5/amanda-client.conf.5*
%{_mandir}/man8/ambackup.8*
%{_mandir}/man8/ambsdtar.8*
%{_mandir}/man8/amgtar.8*
%{_mandir}/man8/ampgsql.8*
%{_mandir}/man8/amraw.8*
%{_mandir}/man8/amrecover.8*
%{_mandir}/man8/amsamba.8*
%{_mandir}/man8/amstar.8*
%{_mandir}/man8/amsuntar.8*
%{_mandir}/man8/amzfs-sendrecv.8*
%{_mandir}/man8/amzfs-snapshot.8*

%config(noreplace) %{_sysconfdir}/amanda/%{defconfig}/amanda-client.conf
%config(noreplace) %{_sysconfdir}/amanda/%{defconfig}/amanda-client-postgresql.conf

%attr(-,%{amanda_user},%{amanda_group}) %config(noreplace) %{_localstatedir}/lib/amanda/amandates
%attr(-,%{amanda_user},%{amanda_group}) %{_localstatedir}/lib/amanda/gnutar-lists/

#----------------------------------------------------------------------------

%package server
Summary:	The server side of the AMANDA tape backup system
Group:		Archiving/Backup
Requires:	amanda = %{EVRD}

%description server
The amanda-server package should be installed on the AMANDA server,
the machine attached to the device(s) (such as a tape drive) where backups
will be written. You will also need to install the amanda package on
the AMANDA server machine.  And, if the server is also to be backed up, the
server also needs to have the amanda-client package installed.

%files server
%doc COPYRIGHT* NEWS README
%{_libexecdir}/amanda/amadmin_perl
%{_libexecdir}/amanda/ambackupd
%{_libexecdir}/amanda/amdumpd
%{_libexecdir}/amanda/amcheck-device
%{_libexecdir}/amanda/amidxtaped
%{_libexecdir}/amanda/amindexd
%{_libexecdir}/amanda/amlogroll
%{_libexecdir}/amanda/amtrmidx
%{_libexecdir}/amanda/amtrmlog
%{_libexecdir}/amanda/driver
%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/dumper
%{_libexecdir}/amanda/chunker
%attr(4750,root,%{amanda_group}) %{_libexecdir}/amanda/planner
%{_libexecdir}/amanda/rest-server
%{_libexecdir}/amanda/taper
%{_sbindir}/activate-devpay
%{_sbindir}/amaddclient
%{_sbindir}/amanda-rest-server
%{_sbindir}/amcleanupdisk
%{_sbindir}/amadmin
%{_sbindir}/amcleanup
%{_sbindir}/amdevcheck
%{_sbindir}/amdump
%{_sbindir}/amfetchdump
%{_sbindir}/amflush
%attr(4750,root,%{amanda_group}) %{_sbindir}/amcheck
%{_sbindir}/amcheckdb
%{_sbindir}/amcheckdump
%{_sbindir}/amlabel
%{_sbindir}/amoverview
%{_sbindir}/amreindex
%{_sbindir}/amreport
%{_sbindir}/amrestore
%{_sbindir}/amrmtape
%{_sbindir}/amserverconfig
%attr(4750,root,%{amanda_group}) %{_sbindir}/amservice
%{_sbindir}/amstatus
%{_sbindir}/amtape
%{_sbindir}/amtapetype
%{_sbindir}/amtoc
%{_sbindir}/amvault

%{_mandir}/man5/amanda-command-file.5*
%{_mandir}/man5/disklist.5*
%{_mandir}/man5/tapelist.5*
%{_mandir}/man7/amanda-devices.7*
%{_mandir}/man7/amanda-changers.7*
%{_mandir}/man7/amanda-interactivity.7*
%{_mandir}/man7/amanda-taperscan.7*
%{_mandir}/man8/amanda-rest-server.8*
%{_mandir}/man8/amaddclient.8*
%{_mandir}/man8/amcleanupdisk.8.*
%{_mandir}/man8/amadmin.8*
%{_mandir}/man8/amcleanup.8*
%{_mandir}/man8/amdevcheck.8*
%{_mandir}/man8/amdump.8*
%{_mandir}/man8/amfetchdump.8*
%{_mandir}/man8/amflush.8*
%{_mandir}/man8/amcheckdb.8*
%{_mandir}/man8/amcheckdump.8*
%{_mandir}/man8/amcheck.8*
%{_mandir}/man8/amlabel.8*
%{_mandir}/man8/amoverview.8*
%{_mandir}/man8/amreindex.8*
%{_mandir}/man8/amreport.8*
%{_mandir}/man8/amrestore.8*
%{_mandir}/man8/amrmtape.8*
%{_mandir}/man8/amserverconfig.8*
%{_mandir}/man8/amservice.8*
%{_mandir}/man8/amstatus.8*
%{_mandir}/man8/amtapetype.8*
%{_mandir}/man8/amtape.8*
%{_mandir}/man8/amtoc.8*
%{_mandir}/man8/amvault.8*

%config(noreplace) %{_sysconfdir}/amanda/crontab.sample
%config(noreplace) %{_sysconfdir}/amanda/%{defconfig}/*
%exclude %{_sysconfdir}/amanda/%{defconfig}/amanda-client.conf
%exclude %{_sysconfdir}/amanda/%{defconfig}/amanda-client-postgresql.conf

%attr(-,%{amanda_user},%{amanda_group}) %dir %{_localstatedir}/lib/amanda/%{defconfig}/
%attr(-,%{amanda_user},%{amanda_group}) %dir %{_localstatedir}/lib/amanda/%{defconfig}/index
%attr(-,%{amanda_user},%{amanda_group}) %dir %{_localstatedir}/lib/amanda/template.d
%attr(-,%{amanda_user},%{amanda_group}) %config(noreplace) %{_localstatedir}/lib/amanda/template.d/*

#----------------------------------------------------------------------------

%define libamanda %mklibname amanda %{version}

%package -n %{libamanda}
Summary:	Amanda libamanda library
Group:		System/Libraries

%description -n %{libamanda}
Amanda libamanda library.

%files -n %{libamanda}
%doc COPYRIGHT* NEWS README
%{_libdir}/libamanda-%{version}.so

#----------------------------------------------------------------------------

%define libamandad %mklibname amandad %{version}

%package -n %{libamandad}
Summary:	Amanda libamandad library
Group:		System/Libraries

%description -n %{libamandad}
Amanda libamandad library.

%files -n %{libamandad}
%doc COPYRIGHT* NEWS README
%{_libdir}/libamandad-%{version}.so

#----------------------------------------------------------------------------

%define libamar %mklibname amar %{version}

%package -n %{libamar}
Summary:	Amanda libamar library
Group:		System/Libraries

%description -n %{libamar}
Amanda libamar library.

%files -n %{libamar}
%doc COPYRIGHT* NEWS README
%{_libdir}/libamar-%{version}.so

#----------------------------------------------------------------------------

%define libamglue %mklibname amglue %{version}

%package -n %{libamglue}
Summary:	Amanda libamglue library
Group:		System/Libraries

%description -n %{libamglue}
Amanda libamglue library.

%files -n %{libamglue}
%doc COPYRIGHT* NEWS README
%{_libdir}/libamglue-%{version}.so

#----------------------------------------------------------------------------

%define libamxfer %mklibname amxfer %{version}

%package -n %{libamxfer}
Summary:	Amanda libamxfer library
Group:		System/Libraries

%description -n %{libamxfer}
Amanda libamxfer library.

%files -n %{libamxfer}
%doc COPYRIGHT* NEWS README
%{_libdir}/libamxfer-%{version}.so

#----------------------------------------------------------------------------

%define libndmjob %mklibname ndmjob %{version}

%package -n %{libndmjob}
Summary:	Amanda libndmjob library
Group:		System/Libraries

%description -n %{libndmjob}
Amanda libndmjob library.

%files -n %{libndmjob}
%doc COPYRIGHT* NEWS README
%{_libdir}/libndmjob-%{version}.so

#----------------------------------------------------------------------------

%define libndmlib %mklibname ndmlib %{version}

%package -n %{libndmlib}
Summary:	Amanda libndmlib library
Group:		System/Libraries

%description -n	%{libndmlib}
Amanda libndmlib library.

%files -n %{libndmlib}
%doc COPYRIGHT* NEWS README
%{_libdir}/libndmlib-%{version}.so

#----------------------------------------------------------------------------

%define libamdevice %mklibname amdevice %{version}

%package -n %{libamdevice}
Summary:	Amanda libamdevice library
Group:		System/Libraries

%description -n %{libamdevice}
Amanda libamdevice library.

%files -n %{libamdevice}
%doc COPYRIGHT* NEWS README
%{_libdir}/libamdevice-%{version}.so

#----------------------------------------------------------------------------

%define libamserver %mklibname amserver %{version}

%package -n %{libamserver}
Summary:	Amanda libamserver library
Group:		System/Libraries

%description -n %{libamserver}
Amanda libamserver library.

%files -n %{libamserver}
%doc COPYRIGHT* NEWS README
%{_libdir}/libamserver-%{version}.so

#----------------------------------------------------------------------------

%define libamclient %mklibname amclient %{version}

%package -n %{libamclient}
Summary:	Amanda libamclient library
Group:		System/Libraries

%description -n %{libamclient}
Amanda libamclient library.

%files -n %{libamclient}
%doc COPYRIGHT* NEWS README
%{_libdir}/libamclient-%{version}.so

#----------------------------------------------------------------------------

%package -n perl-%{name}
Summary:	Amanda perl files
Group:		Development/Perl
Conflicts:	%{name} < 3.4.1
Conflicts:	%{name}-client < 3.4.1
Conflicts:	%{name}-server < 3.4.1

%description -n perl-%{name}
Amanda perl files.

%files -n perl-%{name}
%{perl_vendorarch}/Amanda/*
%{perl_vendorarch}/auto/Amanda/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch2 -p1 -b .xattrs~
%patch3 -p1 -b .tcpport~
%patch6 -p1 -b .config~
#./autogen
autoreconf -fi

%build
%serverbuild_hardened
export LDFLAGS="%{optflags} -ltirpc"
export MAILER=/bin/mail
export CONFIGURE_XPATH=""
%configure \
	--enable-shared \
	--disable-rpath \
	--disable-static \
	--disable-installperms \
	--program-prefix=%{?_program_prefix} \
	--with-amdatadir=%{_localstatedir}/lib/amanda \
	--with-amlibdir=%{_libdir} \
	--with-amperldir=%{perl_vendorarch} \
	--with-index-server=%{indexserver} \
	--with-tape-server=%{tapeserver} \
	--with-config=%{defconfig} \
	--with-gnutar-listdir=%{_localstatedir}/lib/amanda/gnutar-lists \
	--with-smbclient=%{_bindir}/smbclient \
	--with-amandates=%{_localstatedir}/lib/amanda/amandates \
	--with-amandahosts \
	--with-user=%{amanda_user} \
	--with-group=%{amanda_group} \
	--with-tmpdir=%{_var}/log/amanda \
	--with-gnutar=/bin/tar \
	--with-ssh-security \
	--with-rsh-security \
	--with-bsdtcp-security \
	--with-bsdudp-security \
	--with-krb5-security

%make

%install
%makeinstall_std BINARY_OWNER=%(id -un) SETUID_GROUP=%(id -gn)

install -m644 %{SOURCE5} -D %{buildroot}%{_sysconfdir}/xinetd.d/amanda
mkdir -p %{buildroot}%{_var}/log/amanda
install -m600 %{SOURCE8} -D %{buildroot}%{_localstatedir}/lib/amanda/.amandahosts

ln -s %{_libexecdir}/amanda/amandad %{buildroot}%{_sbindir}/amandad

mkdir -p %{buildroot}%{_sysconfdir}/amanda
mv %{buildroot}%{_localstatedir}/lib/amanda/example %{buildroot}%{_sysconfdir}/amanda/%{defconfig}
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/amanda/crontab.sample
install -m644 %{SOURCE4} -D %{buildroot}%{_sysconfdir}/amanda/%{defconfig}
rm -f %{buildroot}%{_sysconfdir}/amanda/%{defconfig}/xinetd*
rm -f %{buildroot}%{_sysconfdir}/amanda/%{defconfig}/inetd*

mkdir -p %{buildroot}%{_localstatedir}/lib/amanda/gnutar-lists
mkdir -p %{buildroot}%{_localstatedir}/lib/amanda/%{defconfig}/index
touch %{buildroot}%{_localstatedir}/lib/amanda/amandates

rm -rf %{buildroot}%{_datadir}/amanda

rm -rf %{buildroot}%{_libdir}/libamanda.so
rm -rf %{buildroot}%{_libdir}/libamandad.so
rm -rf %{buildroot}%{_libdir}/libamar.so
rm -rf %{buildroot}%{_libdir}/libamclient.so
rm -rf %{buildroot}%{_libdir}/libamdevice.so
rm -rf %{buildroot}%{_libdir}/libamglue.so
rm -rf %{buildroot}%{_libdir}/libamserver.so
rm -rf %{buildroot}%{_libdir}/libamxfer.so
rm -rf %{buildroot}%{_libdir}/libndmjob.so
rm -rf %{buildroot}%{_libdir}/libndmlib.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 114 |21cr|amap-5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network tool for application protocol detection
Name:		amap
Version:	5.4
Release:	1
License:	AMAP License
Group:		Networking/Other
Url:		https://github.com/vanhauser-thc/THC-Archive/tree/master/Tools
Source0:	https://github.com/vanhauser-thc/THC-Archive/blob/master/Tools/%{name}-%{version}.tar.gz
Patch0:		amap-destdir.patch
Patch1:		amap-path.patch
Patch2:		amap-ldflags.patch
Patch3:		amap-lnamap6.patch
Patch4:		amap-system-pcre.patch
Patch5:		amap-optflags.patch
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(openssl)

%description
THC Amap is a next-generation tool for assisting network penetration testing.
It performs fast and reliable application protocol detection, independent
on the TCP/UDP port they are being bound to.

%files
%doc CHANGES README TODO LICENCE.AMAP LICENSE.GNU
%{_bindir}/*
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .0destdir
%patch1 -p1 -b .1path
%patch2 -p1 -b .2ldflags
%patch3 -p1 -b .6lnamap6
%patch4 -p1 -b .4pcre
%patch5 -p1 -b .5optflags

%build
# Bash script, not autotools
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir}
OPT="%{optflags}" LDFLAGS="%{ldflags}" make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 115 |21cr|amarok-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A powerful media player for KDE5
Name:		amarok
Version:	3.0.0
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Sound
Url:		http://amarok.kde.org/
Source0:	https://download.kde.org/stable/amarok/%{version}/amarok-%{version}.tar.xz
Source1:	amarok.po-ru.tar.gz
Source100:	amarok.rpmlintrc
Patch0:		amarok-russian.patch
Patch1:		amarok_sql.patch
Patch100:	amarok-2.9.70-amarokpud-soversion.patch
BuildRequires:	cmake
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activities-devel
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5jsembed-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kded-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5xmlrpcclient-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libgpod-1.0)
BuildRequires:	pkgconfig(libmygpo-qt5)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(taglib-extras)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(opus)
BuildRequires:  phonon4qt5-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	qt5-tools
# mariadb-connector-c
BuildRequires:	mysql-devel
# mariadb, MySQL embeded library
BuildRequires:	libmysqld-devel
BuildRequires:	%{_lib}lastfm-qt5-devel
Requires:	%{_lib}amaroklib1 = %{EVRD}
Requires:	%{_lib}amarokcore1 = %{EVRD}
Requires:	%{_lib}amarokpud1 = %{EVRD}
Requires:	%{_lib}libamarokshared1 = %{EVRD}
Requires:	%{_lib}amarok-sqlcollection1 = %{EVRD}
Requires:	%{_lib}amarok-transcoding1 = %{EVRD}
Requires:	mariadb

%description
Feature Overview

* Music Collection:
You have a huge music library and want to locate tracks quickly? Let amaroK's
powerful Collection take care of that! It's a database powered music store,
which keeps track of your complete music library, allowing you to find any
title in a matter of seconds.

* Intuitive User Interface:
You will be amazed to see how easy amaroK is to use! Simply drag-and-drop files
into the playlist. No hassle with complicated  buttons or tangled menus.
Listening to music has never been easier!

* Streaming Radio:
Web streams take radio to the next level: Listen to thousands of great radio
stations on the internet, for free! amaroK provides excellent streaming
support, with advanced features, such as displaying titles of the currently
playing songs.

* Context Browser:
This tool provides useful information on the music you are currently listening
to, and can make listening suggestions, based on your personal music taste. An
innovate and unique feature.

* Visualizations:
amaroK is compatible with XMMS visualization plugins. Allows you to use the
great number of stunning visualizations available on the net. 3d visualizations
with OpenGL are a great way to enhance your music experience.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.amarok.desktop
%{_kde5_applicationsdir}/org.kde.amarok_containers.desktop
%{_kde5_bindir}/amarok
%{_kde5_bindir}/amarok_afttagger
%{_kde5_bindir}/amarokcollectionscanner
%{_kde5_bindir}/amarokpkg
%{_kde5_configdir}/*
%{_kde5_datadir}/config.kcfg/amarokconfig.kcfg
%{_kde5_iconsdir}/hicolor/*/*/*
%{_kde5_notificationsdir}/amarok.notifyrc
%{_qt5_plugindir}/amarok_*.so
%{_qt5_plugindir}/kcm_amarok_service_*.so
%{_kde5_qmldir}/org/kde/amarok/
%{_kde5_services}/
%{_kde5_servicetypes}/amarok*.desktop
%{_kde5_datadir}/amarok/
%{_kde5_datadir}/kconf_update/
%{_kde5_datadir}/knsrcfiles/amarok.knsrc
%{_kde5_datadir}/kpackage/
%{_kde5_datadir}/solid/
%{_kde5_datadir}/dbus-1/interfaces/*
%{_kde5_datadir}/dbus-1/services/org.kde.amarok.service
%{_appdatadir}/org.kde.amarok.appdata.xml
%{_appdatadir}/org.kde.amarok.context.appdata.xml
%{_appdatadir}/org.kde.amarok.albums.appdata.xml
%{_appdatadir}/org.kde.amarok.analyzer.appdata.xml
%{_appdatadir}/org.kde.amarok.currenttrack.appdata.xml
%{_appdatadir}/org.kde.amarok.lyrics.appdata.xml
%{_appdatadir}/org.kde.amarok.photos.appdata.xml
%{_appdatadir}/org.kde.amarok.wikipedia.appdata.xml
%{_libdir}/libamarok_service_lastfm_config.so
%{_libdir}/libampache_account_login.so
%{_libdir}/libgpodder_service_config.so

#------------------------------------------------

%define libamaroklib_major 1
%define libamaroklib %mklibname amaroklib %{libamaroklib_major}

%package -n %{libamaroklib}
Summary:	Amarok 3 core library
Group:		System/Libraries

%description -n %{libamaroklib}
Amarok 3 core library.

%files -n %{libamaroklib}
%{_kde5_libdir}/libamaroklib.so.%{libamaroklib_major}*

#------------------------------------------------

%define libamarokcore_major 1
%define libamarokcore %mklibname amarokcore %{libamarokcore_major}

%package -n %{libamarokcore}
Summary:	Amarok 3 core library
Group:		System/Libraries

%description -n %{libamarokcore}
Amarok 3 core library.

%files -n %{libamarokcore}
%{_kde5_libdir}/libamarokcore.so.%{libamarokcore_major}*

#------------------------------------------------

%define libamarokpud_major 1
%define libamarokpud %mklibname amarokpud %{libamarokpud_major}

%package -n %{libamarokpud}
Summary:	Amarok 3 core library
Group:		System/Libraries

%description -n %{libamarokpud}
Amarok 3 core library.

%files -n %{libamarokpud}
%{_kde5_libdir}/libamarokpud.so.%{libamarokpud_major}*

#------------------------------------------------

%define libamarokshared_major 1
%define libamarokshared %mklibname libamarokshared %{libamarokshared_major}

%package -n %{libamarokshared}
Summary:	Amarok 3 core library
Group:		System/Libraries

%description -n %{libamarokshared}
Amarok 3 core library.

%files -n %{libamarokshared}
%{_kde5_libdir}/libamarokshared.so.%{libamarokshared_major}*

#------------------------------------------------

%define libamaroksqlcollection_major 1
%define libamaroksqlcollection %mklibname amarok-sqlcollection %{libamaroksqlcollection_major}

%package -n %{libamaroksqlcollection}
Summary:	Amarok 3 core library
Group:		System/Libraries

%description -n %{libamaroksqlcollection}
Amarok 3 core library.

%files -n %{libamaroksqlcollection}
%{_kde5_libdir}/libamarok-sqlcollection.so.%{libamaroksqlcollection_major}*

#------------------------------------------------

%define libamaroktranscoding_major 1
%define libamaroktranscoding %mklibname amarok-transcoding %{libamaroktranscoding_major}

%package -n %{libamaroktranscoding}
Summary:	Amarok 3 core library
Group:		System/Libraries

%description -n %{libamaroktranscoding}
Amarok 3 core library.

%files -n %{libamaroktranscoding}
%{_kde5_libdir}/libamarok-transcoding.so.%{libamaroktranscoding_major}*

#------------------------------------------------

%define devname %mklibname -d %{name}

%package -n %{devname}
Summary:	Headers of %{name} for development
Group:		Development/C
Requires:	%{libamaroklib} = %{EVRD}
Requires:	%{libamarokcore} = %{EVRD}
Requires:	%{libamarokpud} = %{EVRD}
Requires:	%{libamarokshared} = %{EVRD}
Requires:	%{libamaroksqlcollection} = %{EVRD}
Requires:	%{libamaroktranscoding} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
%{_kde5_libdir}/libamaroklib.so
%{_kde5_libdir}/libamarok-sqlcollection.so
%{_kde5_libdir}/libamarok-transcoding.so
%{_kde5_libdir}/libamarokcore.so
%{_kde5_libdir}/libamarokpud.so
%{_kde5_libdir}/libamarokshared.so

#--------------------------------------------------------------------

%prep
%setup -q
#patch0 -p1
%patch1 -p1
%patch100 -p1

pushd po
tar -xvzf %{SOURCE1}
popd

# Fix mygpo-qt5 headers path
find . -name '*.h' -exec sed -i 's|<mygpo-qt5/|<mygpo-qt/|g' {} \;
find . -name '*.cpp' -exec sed -i 's|<mygpo-qt5/|<mygpo-qt/|g' {} \;

%build
%cmake_kde5 -DMYSQLCONFIG_EXECUTABLE:BOOL=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-qt --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 116 |21cr|amavisd-new-2.11.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Email filter with virus scanner and spamassassin support
Name:		amavisd-new
Version:	2.11.0
Release:	4
# LDAP schema is GFDL, some helpers are BSD, core is GPLv2+
License:	GPLv2+ and BSD and GFDL
Group:		Networking/Mail
Url:		http://www.ijs.si/software/amavisd/
Source0:	http://www.ijs.si/software/amavisd/%{name}-%{version}.tar.xz
Source2:	amavis-clamd.conf
Source5:	README.quarantine
Source8:	amavisd-new-tmpfiles.conf
Source9:	amavisd.service
Source10:	amavisd-snmp.service
Source11:	amavisd-clean-tmp.service
Source12:	amavisd-clean-tmp.timer
Source13:	amavisd-clean-quarantine.service
Source14:	amavisd-clean-quarantine.timer
Source15:	amavis-mc.service
Source16:	amavisd-snmp-zmq.service
Patch0:		amavisd-new-2.10.1-conf.patch
Patch1:		amavisd-init.patch
Patch2:		amavisd-condrestart.patch
# Don't source /etc/sysconfig/network in init script; the network check
# is commented out upstream so there's no apparent reason to source it,
# and it can't be relied upon to exist in recent Fedora builds. Mail
# sent upstream to amavis-users ML 2013-05-10. -adamw
Patch3:		amavisd-new-2.8.0-init_network.patch
BuildRequires:	systemd
Requires:	altermime
Requires:	arj
Requires:	binutils
Requires:	bzip2
Requires:	cabextract
Requires:	clamav
Requires:	file
Requires:	freeze
Requires:	gzip
Requires:	lzop
Requires:	lrzip
Requires:	nomarch
Requires:	p7zip
Requires:	pax
Requires:	tar
Requires:	tmpwatch
# zoo is in Restricted repository
Recommends:	zoo
# We probably should parse the fetch_modules() code in amavisd for this list.
# These are just the dependencies that don't get picked up otherwise.
Requires:	perl(Archive::Tar)
Requires:	perl(Archive::Zip) >= 1.14
Requires:	perl(Authen::SASL)
Requires:	perl(Compress::Zlib) >= 1.35
Requires:	perl(Compress::Raw::Zlib) >= 2.017
Requires:	perl(Convert::TNEF)
Requires:	perl(Convert::UUlib)
Requires:	perl(Crypt::OpenSSL::RSA)
Requires:	perl(DBD::SQLite)
Requires:	perl(DBI)
Requires:	perl(Digest::MD5) >= 2.22
Requires:	perl(Digest::SHA)
Requires:	perl(Digest::SHA1)
Requires:	perl(File::LibMagic)
Requires:	perl(IO::Socket::IP)
Requires:	perl(IO::Socket::SSL)
Requires:	perl(IO::Stringy)
Requires:	perl(MIME::Base64)
Requires:	perl(MIME::Body)
Requires:	perl(MIME::Decoder::Base64)
Requires:	perl(MIME::Decoder::Binary)
Requires:	perl(MIME::Decoder::Gzip64)
Requires:	perl(MIME::Decoder::NBit)
Requires:	perl(MIME::Decoder::QuotedPrint)
Requires:	perl(MIME::Decoder::UU)
Requires:	perl(MIME::Head)
Requires:	perl(MIME::Parser)
Requires:	perl(Mail::DKIM) >= 0.31
Requires:	perl(Mail::Field)
Requires:	perl(Mail::Header)
Requires:	perl(Mail::Internet) >= 1.58
Requires:	perl(Mail::SPF)
Requires:	perl(Mail::SpamAssassin)
Requires:	perl(Net::DNS)
Requires:	perl(Net::LDAP)
Requires:	perl(Net::LibIDN)
Requires:	perl(Net::SSLeay)
Requires:	perl(Net::Server) >= 2.0
Requires:	perl(NetAddr::IP)
Requires:	perl(Razor2::Client::Version)
Requires:	perl(Socket6)
Requires:	perl(Time::HiRes) >= 1.49
Requires:	perl(Unix::Syslog)
Requires:	perl(URI)
Requires(pre):	shadow-utils
Requires(post,preun,postun):	systemd
BuildArch:	noarch

%description
amavisd-new is a high-performance and reliable interface between mailer
(MTA) and one or more content checkers: virus scanners, and/or
Mail::SpamAssassin Perl module. It is written in Perl, assuring high
reliability, portability and maintainability. It talks to MTA via (E)SMTP
or LMTP, or by using helper programs. No timing gaps exist in the design
which could cause a mail loss.

%files
%doc AAAREADME.first LDAP.schema LDAP.ldif RELEASE_NOTES TODO INSTALL
%doc README_FILES test-messages amavisd.conf-* amavisd-custom.conf LICENSE
%dir %{_sysconfdir}/amavisd/
%{_unitdir}/amavisd.service
%{_unitdir}/amavisd-clean-tmp.service
%{_unitdir}/amavisd-clean-tmp.timer
%{_unitdir}/amavisd-clean-quarantine.service
%{_unitdir}/amavisd-clean-quarantine.timer
%config(noreplace) %{_sysconfdir}/amavisd/amavisd.conf
%config(noreplace) %{_sysconfdir}/clamd.d/amavisd.conf
%{_sbindir}/amavisd
%{_bindir}/amavisd-agent
%{_bindir}/amavisd-nanny
%{_bindir}/amavisd-release
%{_bindir}/amavisd-signer
%{_bindir}/amavisd-submit
%dir %attr(750,amavis,amavis) %{_localstatedir}/spool/amavisd
%dir %attr(750,amavis,amavis) %{_localstatedir}/spool/amavisd/tmp
%dir %attr(750,amavis,amavis) %{_localstatedir}/spool/amavisd/db
%dir %attr(750,amavis,amavis) %{_localstatedir}/spool/amavisd/quarantine
%{_tmpfilesdir}/amavisd-new.conf

%pre
getent group amavis > /dev/null || %{_sbindir}/groupadd -r amavis
getent passwd amavis > /dev/null || \
  %{_sbindir}/useradd -r -g amavis -d %{_localstatedir}/spool/amavisd -s /sbin/nologin \
  -c "User for amavisd-new" amavis
exit 0

%post
%tmpfiles_create %{name}.conf
%systemd_post amavisd.service
%systemd_post amavisd-clean-tmp.service
%systemd_post amavisd-clean-tmp.timer
%systemd_post amavisd-clean-quarantine.service
%systemd_post amavisd-clean-quarantine.timer

systemctl enable amavisd-clean-tmp.timer >/dev/null 2>&1 || :
systemctl start amavisd-clean-tmp.timer >/dev/null 2>&1 || :
systemctl enable amavisd-clean-quarantine.timer >/dev/null 2>&1 || :
systemctl start amavisd-clean-quarantine.timer >/dev/null 2>&1 || :

%preun
%systemd_preun amavisd.service
%systemd_preun amavisd-clean-tmp.service
%systemd_preun amavisd-clean-tmp.timer
%systemd_preun amavisd-clean-quarantine.service
%systemd_preun amavisd-clean-quarantine.timer

%postun
%systemd_postun_with_restart amavisd.service
%systemd_postun_with_restart amavisd-clean-tmp.service
%systemd_postun_with_restart amavisd-clean-tmp.timer
%systemd_postun_with_restart amavisd-clean-quarantine.service
%systemd_postun_with_restart amavisd-clean-quarantine.timer

#----------------------------------------------------------------------------

%package snmp
Summary:	Exports amavisd SNMP data
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}
Requires:	perl(NetSNMP::OID)
Requires(post,preun,postun):	systemd

%description snmp
This package contains the program amavisd-snmp-subagent, which can be
used as a SNMP AgentX, exporting amavisd statistical counters database
(snmp.db) as well as a child process status database (nanny.db) to a
SNMP daemon supporting the AgentX protocol (RFC 2741), such as NET-SNMP.

It is similar to combined existing utility programs amavisd-agent and
amavisd-nanny, but instead of writing results as text to stdout, it
exports data to a SNMP server running on a host (same or remote), making
them available to SNMP clients (such a Cacti or mrtg) for monitoring or
alerting purposes.

%files snmp
%doc AMAVIS-MIB.txt
%{_unitdir}/amavisd-snmp.service
%{_sbindir}/amavisd-snmp-subagent

%post snmp
%systemd_post amavisd-snmp.service

%preun snmp
%systemd_preun amavisd-snmp.service

%postun snmp
%systemd_postun_with_restart amavisd-snmp.service

#----------------------------------------------------------------------------

%package zeromq
Summary:	Support for communicating through 0MQ sockets
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}
Requires:	perl(ZMQ::Constants)
Requires:	perl(ZMQ::LibZMQ3)
Requires(post,preun,postun):	systemd

%description zeromq
This package adds support for monitoring and communicating with amavisd
and auxiliary services among themselves through 0MQ sockets (also called ZMQ
or ZeroMQ, or Crossroads I/O or XS). This method offers similar features
as current services amavisd-nanny, amavisd-agent and amavisd-snmp-subagent,
but use message passing paradigm instead of communicating through a shared
Berkeley database. This avoids locking contention, so the gain can be
significant for a busy amavisd setup with lots of child processes.

%files zeromq
%{_unitdir}/amavis-mc.service
%{_sbindir}/amavis-mc
%{_bindir}/amavisd-status
%{_bindir}/amavis-services

%post zeromq
%systemd_post amavis-mc.service

%preun zeromq
%systemd_preun amavis-mc.service

%postun zeromq
%systemd_postun_with_restart amavis-mc.service

#----------------------------------------------------------------------------

%package snmp-zeromq
Summary:	Exports amavisd SNMP data and communicates through 0MQ sockets
Group:		Networking/Mail
Requires:	%{name}-zeromq = %{EVRD}
Requires:	perl(NetSNMP::OID)
Requires(post,preun,postun):	systemd

%description snmp-zeromq
This package contains the program amavisd-snmp-subagent-zmq, which can be
used as a SNMP AgentX, exporting amavisd statistical counters database
(snmp.db) as well as a child process status database (nanny.db) to a
SNMP daemon supporting the AgentX protocol (RFC 2741), such as NET-SNMP.
It supports communicating through 0MQ sockets.

%files snmp-zeromq
%{_unitdir}/amavisd-snmp-zmq.service
%{_sbindir}/amavisd-snmp-subagent-zmq

%post snmp-zeromq
%systemd_post amavisd-snmp-zmq.service

%preun snmp-zeromq
%systemd_preun amavisd-snmp-zmq.service

%postun snmp-zeromq
%systemd_postun_with_restart amavisd-snmp-zmq.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p1

install -p -m 644 %{SOURCE5} README_FILES/
sed -e 's,/var/amavis/amavisd.sock\>,%{_localstatedir}/spool/amavisd/amavisd.sock,' -i amavisd-release

%build

%install

install -D -p -m 755 amavisd %{buildroot}%{_sbindir}/amavisd
install -D -p -m 755 amavisd-snmp-subagent %{buildroot}%{_sbindir}/amavisd-snmp-subagent
install -D -p -m 755 amavisd-snmp-subagent-zmq %{buildroot}%{_sbindir}/amavisd-snmp-subagent-zmq

mkdir -p %{buildroot}%{_bindir}
install -p -m 755 amavisd-{agent,nanny,release,signer,status,submit} %{buildroot}%{_bindir}/
install -p -m 755 amavis-mc %{buildroot}%{_sbindir}/
install -p -m 755 amavis-services %{buildroot}%{_bindir}/

install -D -p -m 644 %{SOURCE9} %{buildroot}%{_unitdir}/amavisd.service
install -D -p -m 644 %{SOURCE10} %{buildroot}%{_unitdir}/amavisd-snmp.service
install -D -p -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/amavisd-clean-tmp.service
install -D -p -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/amavisd-clean-tmp.timer
install -D -p -m 644 %{SOURCE13} %{buildroot}%{_unitdir}/amavisd-clean-quarantine.service
install -D -p -m 644 %{SOURCE14} %{buildroot}%{_unitdir}/amavisd-clean-quarantine.timer
install -D -p -m 644 %{SOURCE15} %{buildroot}%{_unitdir}/amavis-mc.service
install -D -p -m 644 %{SOURCE16} %{buildroot}%{_unitdir}/amavisd-snmp-zmq.service

install -D -p -m 644 amavisd.conf %{buildroot}%{_sysconfdir}/amavisd/amavisd.conf
install -D -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/clamd.d/amavisd.conf

mkdir -p %{buildroot}%{_localstatedir}/spool/amavisd/{tmp,db,quarantine}
mkdir -p %{buildroot}%{_localstatedir}/run/{clamd.amavisd,amavisd}

install -D -m 644 %{SOURCE8} %{buildroot}%{_tmpfilesdir}/amavisd-new.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 117 |21cr|amberol-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _lto_cflags %{nil}
%global rustflags '-Clink-arg=-Wl,-z,relro,-z,now'
%define		crates_ver %{version}

Name:           amberol
Version:        0.9.1
Release:        1
Summary:        A small and simple sound and music player that is well integrated with GNOME
Group:          Video
# multiple license CC-By-SA 3.0 not good enough for  rosa
License:        GPLv3
Url:            https://gitlab.gnome.org/World/amberol
Source0:        https://gitlab.gnome.org/World/amberol/-/archive/0.8.1/%{name}-%{version}.tar.gz
# created with cargo vendor
Source1:        %{name}-crates-%{version}.tar.xz

BuildRequires:  m4
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(gmp)
BuildRequires:  itstool
BuildRequires:  libxml2-utils
BuildRequires:  meson
BuildRequires:  pkgconfig(mpfr)
BuildRequires:  reuse
BuildRequires:  rust >= 1.63.0
BuildRequires:  cargo >= 1.63.0
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(fmt)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gstreamer-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-audio-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-bad-audio-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-player-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-plugins-bad-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0) >= 1.16
BuildRequires:  pkgconfig(gtk4) >= 4.6
BuildRequires:  pkgconfig(libadwaita-1) >= 1.1.1
BuildRequires:  pkgconfig(libpng)
BuildRequires:  gtk4-update-icon-cache


%description
A small and simple sound and music player that is well integrated with GNOME.
Amberol aspires to be as small, unintrusive, and simple as possible. It does
not manage your music collection; it does not let you manage playlists, smart
or otherwise; it does not let you edit the metadata for your songs; it does
not show you lyrics for your songs, or the Wikipedia page for your bands.
Amberol plays music, and nothing else.

%files -f %{name}.lang
%doc LICENSES/*.txt *.md
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/appdata/io.bassi.Amberol.appdata.xml
%{_datadir}/applications/io.bassi.Amberol.desktop
%{_datadir}/dbus-1/services/io.bassi.Amberol.service
%{_datadir}/glib-2.0/schemas/io.bassi.Amberol.gschema.xml
%{_datadir}/icons/*/*/*/*.svg
#---------------------------------------------------------------------------

%prep
%setup -q -a1
%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"

cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF

# parallel build will cause compilation error - https://gitlab.gnome.org/World/amberol/-/issues/182
sed -i 's/cargo build/cargo build -j 1/g' build-aux/cargo.sh

%build
export RUSTFLAGS=%{rustflags}
export CFLAGS="%{optflags} -fexceptions"
%meson
%meson_build -j 1

%install
%meson_install
%find_lang %{name}




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 118 |21cr|amide-1.0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Program for viewing and analyzing medical image data sets
Name:		amide
Version:	1.0.5
Release:	6
License:	GPLv2+
Group:		Graphics
Url:		http://amide.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
# Debian patches
Patch10:	10_configure.ac.patch
Patch11:	10_Makefile.am.patch
Patch12:	10_desktop.in.patch
Patch13:	libav10.patch
Patch14:	ffmpeg_2.9.patch
Patch15:	gsl_2x.patch
Patch16:	libc_2.23.patch
Patch17:	remove-autdated-gnome-macros.patch
Patch18:	amide-1.0.6-disable-gconf-and-gnome-vfs.patch
Patch19:	ffmpeg-35.patch
Patch20:	fix-gcc10.patch

BuildRequires:	intltool
BuildRequires:	perl-XML-Parser
BuildRequires:	dcmtk-devel
BuildRequires:	itstool
BuildRequires:	ffmpeg-devel
BuildRequires:	volpack-devel
BuildRequires:	xmedcon-devel
BuildRequires:	yelp-devel
BuildRequires:	yelp-tools
BuildRequires:	yelp-xsl
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
# gnome-vfs is disablable via amide-1.0.6-disable-gconf-and-gnome-vfs.patch
# Can be disabled later if needed
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(libgnomecanvas-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
AMIDE is a tool for viewing and analyzing medical image data sets.
It's capabilities include the simultaneous handling of multiple data
sets imported from a variety of file formats, image fusion, 3D region
of interest drawing and analysis, volume rendering, and rigid body
alignments.

%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog NEWS README todo
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_datadir}/help/C/amide
%lang(es) %{_datadir}/help/es/amide
%{_datadir}/applications/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# (From Debian)
mv help/C/amide.xml help/C/index.docbook

%build
rm -fv Makefile help/Makefile
autoreconf -if
%configure \
	--enable-libecat=no \
	--enable-amide-debug=no \
	--disable-scrollkeeper
# paralel build don't work on abf 
make

%install
%makeinstall_std

desktop-file-install \
	--vendor gnome \
	--delete-original \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

rm -rf %{buildroot}/var/scrollkeeper

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 119 |21cr|amigadepacker-0.04-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Uncompressor for various AmigaOS formats
Name: amigadepacker
Version: 0.04
Release: 6
Source0: %{name}-%{version}.tar.bz2
License: GPLv2+
Group: File tools
Url: http://zakalwe.fi/~shd/foss/amigadepacker/

%description
Amigadepacker uncompresses various compression formats used on
AmigaOS. The supported formats are PowerPacker, XPK SQSH, and
MMCMP. It can also decrypt PowerPacker encrypted data files.

%prep
%setup -q
chmod 644 README ChangeLog COPYING*

%build
./configure
%make CFLAGS="%optflags"
%check
make check

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot%_bindir
install -m 755 %name %buildroot%_bindir
mkdir -p %buildroot%_mandir/man1
install -m 644 %name.1 %buildroot%_mandir/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README ChangeLog COPYING*
%_bindir/%name
%_mandir/man1/%name.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 120 |21cr|amoebax-0.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Action-Puzzle Game
Name:		amoebax
Version:	0.2.1
Release:	4
Group:		Games/Puzzles
License:	GPLv2+
Url:		http://www.emma-soft.com/games/amoebax/
Source0:	http://www.emma-soft.com/games/amoebax/download/%{name}-%{version}.tar.bz2
Patch0:		amoebax-0.2.1-gcc43.patch
Patch1:		amoebax-0.2.1-aclocal.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
Amoebax is a cute and addictive action-puzzle game. Due an awful mutation,
some amoeba's species have started to multiply until they take the world if
you can't stop them. Fortunately the mutation made then too unstable and
lining up four or more will make them disappear.

Follow Kim or Tom through 6 levels in their quest to prevent the cute
multiplying amoebas to take the world and become the new Amoeba Master. Watch
out for the cute but amoeba's controlled creatures that will try to put and
end to your quest.

Amoebax is designed with levels for everyone, from children to adults. With
the training mode everybody will quickly become a master and the tournament
mode will let you have a good time with your friends. There is also catchy
music, funny sound effects, and beautiful screens that sure appeal to everyone
in the family.

%files
%doc AUTHORS COPYING* NEWS README* THANKS TODO doc/manual.pdf
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/pixmaps/%{name}.svg
%{_mandir}/man6/%{name}.6.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1 -b aclocal

%build
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
cp %{buildroot}%{_datadir}/pixmaps/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/

rm %{buildroot}%{_defaultdocdir}/%{name}/manual.pdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 121 |21cr|amora-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A mobile remote assistant
Name:		amora
Version:	1.1
Release:	2
License:	GPLv2
Group:		System/X11
Url:		http://code.google.com/p/amora/
Source0:	http://amora.googlecode.com/files/amora-server-%{version}.tar.gz
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)

%description
Amora is an application that enables you to control your PC desktop using a
cellphone. It uses bluetooth to send mouse and keyboard events to the
graphical session. With it you can control your slides in OpenOffice.org,
movies or any other application. Amora also has a screenshot feature, where
you can see a thumbnail in the cellphone screen of the currently focused
window in your desktop.

In order to use amora, you need a mobile phone with amora-client
installed and running.

%files
%doc README
%{_bindir}/amorad
%{_mandir}/man7/amora.7*
%{_mandir}/man8/amorad.8*

#----------------------------------------------------------------------------

%prep
%setup -qn amora-server-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 122 |21cr|amora-server-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name: amora-server
Version: 1.1
Release: 6
Summary: A mobile remote assistant (server)
License: GPLv2
Group: System/X11
URL: http://code.google.com/p/amora/
Source: http://amora.googlecode.com/files/amora-server-%{version}.tar.gz
BuildRequires: pkgconfig(imlib2)
BuildRequires: pkgconfig(bluez)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: dbus-devel
Obsoletes: amora <= 0.9svn-1mdv2008.1

%description
Amora is an application that enables you to control your PC desktop using a
cellphone. It uses bluetooth to send mouse and keyboard events to the
graphical session. With it you can control your slides in OpenOffice.org,
movies or any other application. Amora also has a screenshot feature, where
you can see a thumbnail in the cellphone screen of the currently focused
window in your desktop.

In order to use amora, you need a mobile phone with amora-client
installed and running. The current client is implemented in Python
for S60 (Nokia cellphones) and is available at
http://code.google.com/p/amora/

%prep
%setup -q -n amora-server-%{version}

%build
%configure
%make

%install
%makeinstall_std

%files
%defattr(-,root,root)
%doc README
%{_bindir}/amorad
%{_mandir}/man7/amora.7.*
%{_mandir}/man8/amorad.8.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 123 |21cr|ampache-5.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ampache
Version:	5.5.2
Release:	1
Summary:        Web-based MP3/Ogg/RM/Flac/WMA/M4A manager
License:        GPL
Group:		Networking/WWW
URL:            http://www.ampache.org
Source:		https://github.com/ampache/ampache/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	apache-mod_php
Requires:	php-iconv
Requires:	php-mysqlnd
BuildArch:      noarch

%description
Ampache is a Web-based MP3/Ogg/RM/Flac/WMA/M4A manager.
It allows you to view, edit, and play your audio files via HTTP/IceCast/Mpd 
or Moosic. It has support for downsampling, playlists, artist, 
and album views, album art, random play, song play tracking, user themes, 
and remote catalogs using XML-RPC.

%prep
%setup -q

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_var}/www/%{name}
cp -r * %{buildroot}%{_var}/www/%{name}

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# Ampache configuration

Alias /%{name} %{_var}/www/%{name}
<Directory %{_var}/www/%{name}>
	Require all granted
</Directory>
EOF

%clean
rm -rf %{buildroot}



%files
%defattr(-,root,root)
%doc docs/*
%{_var}/www/%{name}
%config(noreplace) %{_webappconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 124 |21cr|ams-2.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Alsa Modular Synth
Name:		ams
Version:	2.2.0
Release:	4
License:	GPLv2+
Group:		Sound
Url:		https://alsamodular.sourceforge.net/
Source0:	https://sourceforge.net/projects/alsamodular/files/alsamodular/%{version}/%{name}-%{version}.tar.xz
Patch0:	ams-2.2.0-drop-use-of-qBinaryFind.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	ladspa-devel
BuildRequires:	zita-alsa-pcmi-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo) >= 0.26
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	cmt
Requires:	mcp-plugins
Requires:	rev-plugins
Requires:	swh-plugins
Requires:	VCO-plugins

%description
AlsaModularSynth is a real-time modular synthesizer and effect processor.
It features:
* MIDI controlled modular software synthesis.
* Real-time effect processing with capture from e.g. "Line In" or "Mic In".
* Full control of all synthesis and effect parameters via MIDI.
* Integrated LADSPA Browser with search capability.
* JACK Support.
    * Qt5 interface.
NOTE: Example files and a handy tutorial are in %{_datadir}/ams.

%files
%doc AUTHORS COPYING NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_mandir}/man1/%{name}.1.*
%{_datadir}/pixmaps/%{name}_32.xpm

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
# Fix "missing too old" message
autoreconf -vfi
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make


%install
%makeinstall_std

# Provide a menu entry
mkdir -p %{buildroot}/%{_datadir}/applications
cat > %{buildroot}/%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Alsa Modular Synth
Comment=Modular Synthesizer for ALSA
Exec=%{name}
Icon=%{name}_32.xpm
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Audio;AudioVideoEditing;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 125 |21cr|amsynth-1.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Virtual-analog polyphonic synthesizer for ALSA, OSS and JACK
Name:		amsynth
Version:	1.13.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://amsynth.github.io/
Source0:	https://github.com/amsynth/amsynth/releases/download/release-%{version}/%{name}-%{version}.tar.gz
Patch0:	amsynth-1.10.0-fix-desktop-file.patch
Patch1:	amsynth-1.12.4-use-ladish-for-lash.patch
BuildRequires:	autoconf-archive
BuildRequires:	gettext
BuildRequires:	intltool
# For man pages - not provided yet
#BuildRequires:	pandoc
BuildRequires:	alsa-oss-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.20.0
BuildRequires:	pkgconfig(gtkmm-2.4) >= 2.6.0
BuildRequires:	pkgconfig(liblash)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(jack)

%description
Amsynth is a standalone polyphonic subtractive synthesizer. It supports OSS,
ALSA and JACK for Audio and MIDI I/O.
Features are as follows:
o Dual oscillators with classic waveforms (sine, saw, square, noise).
o 12/24 dB/oct resonant filter (low-pass, high-pass, band-pass, notch).
o Independent ADSR envelopes for filter & amplitude.
o LFO which can module the oscillators, filter, and amplitude.
o Distortion effect.
o Reverb.
o Lot of presets.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/appdata/*.metainfo.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#-----------------------------------------------------------------------------

%package dssi
Summary:	Amsynth DSSI synthesizer plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description dssi
This is the DSSI synthesizer plugin of amsynth, which can be used with DSSI
hosts like qtractor, ghostess, rosegarden and others.

%files dssi
%doc COPYING
%{_libdir}/dssi/%{name}_dssi.so
%{_libdir}/dssi/%{name}_dssi/%{name}_dssi_gtk

#-----------------------------------------------------------------------------

%package plugin-lv2
Summary:	Amsynth LV2 synthesizer plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-lv2
This is the LV2 synthesizer plugin of amsynth, which can be used with LV2
hosts like qtractor, ardour, zynjacku and others.

%files plugin-lv2
%doc COPYING
%{_libdir}/lv2/%{name}.lv2/*

#-----------------------------------------------------------------------------

%package plugin-vst
Summary:	Amsynth VST synthesizer plugin
Group:		Sound
Requires:	%{name} = %{EVRD}

%description plugin-vst
This is the VST synthesizer plugin of amsynth, which can be used with VST
hosts.

%files plugin-vst
%doc COPYING
%{_libdir}/vst/%{name}_vst.so

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%apply_patches


%build
autoreconf -vfi
%configure	--disable-static \
	--with-alsa \
	--with-gui \
	--with-jack \
	--with-lash \
	--with-lv2 \
	--with-oss \
	--without-pandoc

%make


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 126 |21cr|amtk-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global api	5
%global major	0
%define libname %mklibname amtk %api %major
%define girname	%mklibname amtk-gir %{api}
%define devname %mklibname -d amtk %api

%define url_ver %(echo %{version} | cut -d. -f1,2)

Name:           amtk
Version:        5.2.0
Release:        1
Summary:        Text editor product line
Group:		System/Libraries

License:        LGPLv2+
URL:            https://wiki.gnome.org/Projects/Amtk
Source0:        https://download.gnome.org/sources/amtk/%{url_ver}/amtk-%{version}.tar.xz

BuildRequires:  gcc
BuildRequires:  gettext
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtksourceview-4)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(uchardet)

%description
Amtk is the acronym for “Actions, Menus and Toolbars Kit”. It is a basic 
GtkUIManager replacement based on GAction. It is suitable for both a 
traditional UI or a modern UI with a GtkHeaderBar.

%files -f amtk-%{api}.lang
%doc COPYING AUTHORS NEWS README

#--------------------------------------------------------------------

%package        -n %{libname}
Summary:        Libraries for %{name}
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description    -n %{libname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %libname
%{_libdir}/libamtk-%{api}.so.%{major}{,.*}

#--------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for Amtk
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for Amtk.

%files -n %{girname}
%{_libdir}/girepository-1.0/Amtk-%{api}.typelib

#--------------------------------------------------------------------

%package        -n %{devname}
Summary:        Development files for %{name}
Group:		Development/Other
Requires:       %{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description    -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %devname
%doc %{_datadir}/gtk-doc/html/amtk-5.0/
%{_includedir}/amtk-%{api}/
%{_libdir}/libamtk-%{api}.so
%{_libdir}/pkgconfig/amtk-%{api}.pc
%{_datadir}/gir-1.0/Amtk-%{api}.gir

#--------------------------------------------------------------------

%package        tests
Summary:        Tests for the %{name} package
Requires:       %{name} = %{EVRD}

%description    tests
The %{name}-tests package contains tests that can be used to verify
the functionality of the installed %{name} package.

%files tests
%{_libexecdir}/installed-tests/amtk-%{api}/
%{_datadir}/installed-tests/amtk-%{api}/

#--------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-installed-tests
%make


%install
%makeinstall_std

%find_lang amtk-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 127 |21cr|amule-2.3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname aMule

Summary:	File sharing client compatible with eDonkey
Name:		amule
Version:	2.3.3
Release:	3
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://amule.org
Source0:	https://downloads.sourceforge.net/project/amule/aMule/%{version}/%{oname}-%{version}.tar.gz
Source10:	%{name}-16.png
Source11:	%{name}-32.png
Source12:	%{name}-48.png
Patch1:		amule-cmake.patch
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	desktop-file-utils
BuildRequires:	binutils-devel
BuildRequires:	gd-devel >= 2.0
BuildRequires:	gettext-devel
BuildRequires:	readline-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(cryptopp)
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(ncurses)
ExcludeArch:	%{ix86} %{e2k}

%description
aMule is an easy to use multi-platform client for ED2K Peer-to-Peer
Network. It is a fork of xMule, whis was based on emule for
Windows. aMule currently supports (but is not limited to) the
following platforms: Linux, *BSD and MacOS X.

%files -f %{name}.lang
%doc docs/*
%{_datadir}/applications/alc.desktop
%{_datadir}/applications/wxcas.desktop
%{_datadir}/pixmaps/alc.xpm
%{_datadir}/pixmaps/wxcas.xpm
%{_bindir}/amule
%{_bindir}/amulegui
%{_bindir}/wxcas
#%%{_bindir}/cas
%{_bindir}/ed2k-amule
%{_bindir}/alc
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/skins
%{_datadir}/applications/amule.desktop
%{_datadir}/applications/amulegui.desktop
%{_datadir}/pixmaps/amule.png
%{_datadir}/pixmaps/amule.xpm
%{_datadir}/pixmaps/amulegui.xpm
#%%{_datadir}/cas
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man1/alc.1*
%{_mandir}/man1/amule.1*
%{_mandir}/man1/amulegui.1*
#%%{_mandir}/man1/cas.1*
%{_mandir}/man1/ed2k.1*
%{_mandir}/man1/wxcas.1*

%post
update-alternatives --install %{_bindir}/ed2k ed2k %{_bindir}/ed2k-%{name} 5

%postun
update-alternatives --remove ed2k %{_bindir}/ed2k-%{name}

#----------------------------------------------------------------------------

%package commandline
Summary:	File sharing client compatible with eDonkey
Group:		Networking/File transfer
Requires:	amule = %{version}-%{release}

%description commandline
aMule is an easy to use multi-platform client for ED2K Peer-to-Peer
Network.  It is a fork of xMule, whis was based on emule for
Windows. aMule currently supports (but is not limited to) the
following platforms: Linux, *BSD and MacOS X.

This is the command line tool to control aMule remotely (or locally:).

%files commandline -f commandline.lang
%doc docs/README
%{_bindir}/%{name}cmd
%{_bindir}/alcc
%{_bindir}/amuled
%{_mandir}/man1/alcc.1*
%{_mandir}/man1/amulecmd.1*
%{_mandir}/man1/amuled.1*

#----------------------------------------------------------------------------

%package webserver
Summary:	File sharing client compatible with eDonkey
Group:		Networking/File transfer
Requires:	amule = %{version}-%{release}

%description webserver
aMule is an easy to use multi-platform client for ED2K Peer-to-Peer
Network.  It is a fork of xMule, whis was based on emule for
Windows. aMule currently supports (but is not limited to) the
following platforms: Linux, *BSD and MacOS X.

This is the webserver to control aMule remotely (or locally:).

%files webserver -f %{name}web.lang
%doc docs/README
%{_bindir}/%{name}web
%{_datadir}/amule/webserver/*
%{_mandir}/man1/amuleweb.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake -GNinja \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DENABLE_NLS=ON \
	-DBUILD_AMULECMD=ON \
	-DBUILD_DAEMON=ON \
	-DBUILD_WEBSERVER=ON \
	-DBUILD_CAS=OFF \
	-DBUILD_WXCAS=ON \
	-DENABLE_BOOST=ON \
	-DENABLE_IP2COUNTRY=ON \
	-DENABLE_UPNP=ON \
	-DBUILD_REMOTEGUI=ON \
	-DBUILD_ED2K=ON \
	-DBUILD_ALC=ON \
	-DBUILD_ALCC=ON

%ninja_build

%install
%ninja_install -C build

install -m 644 -D %{SOURCE10} %{buildroot}%{_miconsdir}/%{name}.png
install -m 644 -D %{SOURCE11} %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 -D %{SOURCE12} %{buildroot}%{_liconsdir}/%{name}.png

mv %{buildroot}%{_bindir}/ed2k %{buildroot}%{_bindir}/ed2k-%{name}
rm -rf %{buildroot}%{_datadir}/doc/%{oname}-%{version}
#rm -f %{buildroot}%{_libdir}/xchat/plugins/xas.pl

desktop-file-install --vendor="" \
  --add-category="GTK" \
  --add-category="FileTransfer" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

cp amule.png %{buildroot}%{_datadir}/pixmaps
cp amule.xpm %{buildroot}%{_datadir}/pixmaps
cp amulegui.xpm %{buildroot}%{_datadir}/pixmaps

# find_lang macro is different since 2012
%find_lang %{name} %{name}gui alc cas wxcas ed2k %{name}.lang --with-man
%find_lang alcc %{name}cmd %{name}d commandline.lang --with-man
%find_lang %{name}web --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 128 |21cr|amule-adunanza-2019.1-2.3.2.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without	server

%define	oname aMule-AdunanzA
%define	uprel 2.3.2

Summary:	File sharing client compatible with eDonkey
Name:		amule-adunanza
Version:	2019.1
Release:	%{uprel}.2
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://sourceforge.net/projects/amule-adunanza/
#Source0:	https://sourceforge.net/projects/amule-adunanza/files/aMule-AdunanzA/aMule-AdunanzA-%%{version}-%%{uprel}.tar.bz2
# Repackaged devel branch at revision 599
Source0:		%{name}-%{version}-%{uprel}-MoonRiver.tar.xz
Source1:		amuled.systemd
Source2:		amuleweb.systemd
Source3:		amule.sysusers.conf
Patch0:	amule-adunanza-2019.1-2.3.2.1-fix-build-with-newer-binutils.patch
Patch1:	amule-adunanza-2019.1-2.3.2.1-fix-symbol-clash-with-newer-cryptopp.patch
Patch2:	amule-adunanza-2019.1-2.3.2.1-fix-c++17-build.patch
Patch3:	amule-adunanza-2019.1-2.3.2.1-fix-build-against-newer-libupnp.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	binutils-devel
BuildRequires:	boost-devel
BuildRequires:	gd-devel >= 2.0
BuildRequires:	gettext-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(cryptopp) >= 5.5
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng) >= 1.2.0
BuildRequires:	pkgconfig(libupnp) >= 1.6.6
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(zlib) >= 1.1.4
Conflicts:		xmule
Conflicts:		amule
Recommends:		xchat

%description
aMule is an easy to use multi-platform client for ED2K Peer-to-Peer Network.
It's a fork of xMule, which was based on emule for Windows. aMule currently
supports (but is not limited to) the following platforms: Linux, *BSD and
MacOS X.
This package contains the client programs for %{name}.

%files -f amuleadunanza.lang
%{_docdir}/amuleadunanza/*
%{_bindir}/*
%if %{with server}
%exclude %{_bindir}/amuled
%exclude %{_bindir}/amuleweb
%endif
%{_libdir}/xchat/plugins/xasAdunanzA.pl
%{_datadir}/amuleadunanza/skins/*.zip
%{_datadir}/casAdunanzA/stat.png
%{_datadir}/casAdunanzA/tmp.html
%{_datadir}/applications/*.desktop
%{_mandir}/*/man1/*.1*
%{_mandir}/man1/*.1*
%{_datadir}/pixmaps/amuleadunanza.xpm
%{_datadir}/pixmaps/alcadunanza.xpm
%{_datadir}/pixmaps/amuleguiadunanza.xpm
%{_datadir}/pixmaps/wxcasadunanza.xpm

#----------------------------------------------------------------------------

%if %{with server}
%package server
Summary:	File sharing client compatible with eDonkey
Group:		Networking/File transfer
Requires(pre,post,preun):	systemd

%description server
aMule is an easy to use multi-platform client for ED2K Peer-to-Peer Network.
It's a fork of xMule, which was based on emule for Windows. aMule currently
supports (but is not limited to) the following platforms: Linux, *BSD and
MacOS X.
This package contains the amule daemon version and webserver.

%files server
%doc docs/COPYING
%{_bindir}/amuled
%{_bindir}/amuleweb
%{_datadir}/amuleadunanza/webserver/default/*
%{_unitdir}/amuled.service
%{_unitdir}/amuleweb.service
%dir %attr(0755,amule,amule)%{_var}/lib/amuleadunanza

%pre
%sysusers_create_package %{name} %{SOURCE3}

%post
%systemd_post amuled
%systemd_post amuleweb

%preun
%systemd_preun amuleweb
%systemd_preun amuled
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{uprel}-MoonRiver
%apply_patches


%build
./autogen.sh
%configure \
	--prefix=%{_prefix} \
	--with-wx-config=%{_bindir}/wx-config \
	--mandir=%{_mandir} \
	--disable-debug \
	--enable-optimize \
	--enable-amulecmd \
	--enable-amule-gui \
%if %{with server}
	--enable-amule-daemon \
	--enable-webserver \
%else
	--disable-amule-daemon \
	--disable-webserver \
%endif
	--enable-alc \
	--enable-alcc \
	--enable-cas \
	--enable-wxcas \
	--enable-fileview \
	--enable-geoip \
	--enable-mmap \
	--enable-xas

%make


%install
%makeinstall_std

%if %{with server}
# Install systemd units
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/amuled.service
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/amuleweb.service

# Provide a writable home for the daemon 
install -m 0755 -d %{buildroot}%{_var}/lib/amuleadunanza
%endif

# Drop uwanted file
rm -f %{buildroot}%{_docdir}/amuleadunanza/INSTALL

# Fix perms
chmod +x %{buildroot}%{_libdir}/xchat/plugins/xasAdunanzA.pl

%find_lang amuleadunanza

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 129 |21cr|amyedit-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight editor for LaTeX files
Name:		amyedit
Version:	1.0
Release:	13
License:	GPLv2+
Group:		Publishing
Url:		http://amyedit.sourceforge.net/
Source0:	http://kent.dl.sourceforge.net/sourceforge/amyedit/%{name}-%{version}.tar.bz2
Patch0:		amyedit-1.0-keyfile.patch
Patch1:		amyedit-1.0-signal.patch
Patch2:		amyedit-1.0-fix-build.patch
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	aspell-devel
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(gtksourceview-1.0)

%description
AmyEdit is a LaTeX editor written to allow users to easily create LaTeX
documents in a simple, user friendly enviroment. Its main requirement is that
it remains lightweight whilst still having a large number of useful features.

AmyEdit is being designed to run on a fairly old laptop, (a P300 with 64 MB of
RAM), running gedit on this is painfully slow, even after the 30 second
startup time has elapsed.

%files
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p0

%build
autoreconf -fi
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=AmyEdit
Comment=Lightweight LaTeX editor
Exec=%{_bindir}/%{name}
Icon=editors_section
Terminal=false
Type=Application
Categories=GNOME;GTK;Graphics;Office;Viewer;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 130 |21cr|analog-6.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	WWW server logfile analysis program
Name:		analog
Version:	6.0
Release:	11
License:	Distributable
Group:		Monitoring
URL:		http://www.analog.cx/
Source:		http://www.analog.cx/%{name}-%{version}.tar.bz2
Patch0:		analog-5.21-htmlform.patch
Patch1:		analog-5.23-perlform.patch
Patch2:		analog-5.31-config.patch
Patch3:		analog-5.22-defaults.patch
Patch4:		analog-5.22-png.patch
Patch5:		analog-6.0-link.patch
BuildRequires:	bzip2-devel
BuildRequires:	gd-devel >= 2
BuildRequires:	pcre-devel
BuildRequires:	zlib-devel

%description
WWW server logfile analysis program with lots of features. Check the home page
at http://www.statslab.cam.ac.uk/~sret1/analog/ for more information. You
should edit the /etc/analog.cfg and customizer it for your webserver with the
HOSTNAME and HOSTURL options. Perl is required for the html forms interface.
Apache is suggested as the default web server.

%prep

%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch5 -p0 -b .link

%build

%make \
    CC="gcc %build_ldflags" \
    CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" \
    DEFS="-DHAVE_GD -DHAVE_ZLIB -DHAVE_BZLIB -DHAVE_PCRE -DLANGDIR=\\\"%{_datadir}/analog/\\\" -DCONFIGDIR=\\\"%{_sysconfdir}/\\\"" \
    LIBS="-lgd -lpcre -lz -lbz2 -lm"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}/var/www/html/images
install -d %{buildroot}/var/www/html/analog/images
install -d %{buildroot}/var/www/cgi-bin
install -d %{buildroot}%{_datadir}/analog
install -d %{buildroot}%{_mandir}/man1

install -m755 analog %{buildroot}%{_bindir}/
install -m644 analog.cfg %{buildroot}%{_sysconfdir}/
install -m555 anlgform.pl %{buildroot}/var/www/cgi-bin/
install -m644 anlgform.html %{buildroot}/var/www/html/
install -m644 analog.man %{buildroot}%{_mandir}/man1/analog.1

install -m644 images/*.png %{buildroot}/var/www/html/images/
install -m644 lang/* %{buildroot}%{_datadir}/analog/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc Licence.txt README.txt docs/ examples/
%config(noreplace) %{_sysconfdir}/analog.cfg
%{_bindir}/analog
/var/www/cgi-bin/anlgform.pl
/var/www/html/anlgform.html
/var/www/html/images/*.png
%dir /var/www/html/analog
%dir /var/www/html/analog/images
%dir %{_datadir}/analog
%{_datadir}/analog/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 131 |21cr|ananicy-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ananicy
Version:	2.2.1
Release:	1
Summary:	ANother Auto NICe daemon
Group:		System/Kernel and hardware
License:	GPLv3+
URL:		https://github.com/Nefelim4ag/Ananicy
Source0:	https://github.com/Nefelim4ag/Ananicy/archive/refs/tags/%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
Requires:	schedtool

%description
ANother Auto NICe daemon.

%prep
%autosetup -n Ananicy-%{version} -p1
sed -i 's|#!/usr/bin/env python3|#!%{__python}|' ananicy.py

%build

%install
%make_install PREFIX="%{buildroot}"

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-ananicy.preset << EOF
enable ananicy.service
EOF

%files
%dir %{_sysconfdir}/ananicy.d
%config(noreplace) %{_sysconfdir}/ananicy.d/ananicy.conf
%config %{_sysconfdir}/ananicy.d/00-*
%{_bindir}/%{name}
%{_unitdir}/ananicy.service
%{_presetdir}/86-ananicy.preset

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 132 |21cr|anbox-0.0-5.git7a0bee.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 7a0bee7195cbbfb27649a6f181ee137cf63b842d
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Android in a box
Name:		anbox
Version:	0.0
Release:	5.git%{commit_short}.1
License:	GPLv3
Group:		Emulators
Url:		https://anbox.io
Source0:	https://github.com/anbox/anbox/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

# Additional stuff, based on stuff from Debian package
Source10:	anbox-container-manager.service
Source11:	org.anbox.service
Source12:	anbox.desktop
Source13:	anbox.1
Source14:	README.ROSA
Source15:	anbox-load-kernel-modules.sh

# Patches from Debian
Patch0001:	0001-fix-spelling-errors-in-external-libraries.patch
Patch0002:	0002-exclude-external-from-all-target.patch
Patch0003:	0003-pass-dpkg-buildflags-to-external-android-emugl.patch
# ROSA patches
Patch0004:	0004-Use-system-cpu_features-and-sdbus-cpp.patch
Patch0005:	0005-Off-Werror.patch
Patch0006:	0006-Drop-odd-check-for-binderfs.patch

BuildRequires:		boost-devel
BuildRequires:		cmake
BuildRequires:		egl-devel
BuildRequires:		glm-devel
BuildRequires:		git-core
BuildRequires:		protobuf-compiler
BuildRequires:		python3
BuildRequires:		systemd-units
BuildRequires:		/usr/bin/sdbus-c++-xml2cpp
BuildRequires:		cmake(CpuFeatures)
BuildRequires:		pkgconfig(dri)
BuildRequires:		pkgconfig(dbus-1)
BuildRequires:		pkgconfig(libcap)
BuildRequires:		pkgconfig(lxc)
# build of tests is disabled in %%prep, but headers are needed
BuildRequires:		pkgconfig(gmock)
BuildRequires:		pkgconfig(properties-cpp)
BuildRequires:		pkgconfig(protobuf)
BuildRequires:		pkgconfig(sdl2)
BuildRequires:		pkgconfig(SDL2_image)
BuildRequires:		pkgconfig(sdbus-c++)
BuildRequires:		pkgconfig(systemd)
Requires:	lxc
Requires:	iptables
# adb to install android apps
Recommends:	android-tools

# Description is from Debian package by Shengjing Zhu <zhsj@debian.org>
# https://salsa.debian.org/zhsj/anbox

%description
Anbox is a container-based approach to boot a full Android system on a
regular GNU/Linux system.
In other words: Anbox will let you run Android on your Linux system
without the slowness of virtualization.
Anbox uses Linux namespaces (user, pid, uts, net, mount, ipc) to run a
full Android system in a container and provide Android applications on any
GNU/Linux-based platform.
The Android inside the container has no direct access to any hardware. All
hardware access is going through the anbox daemon on the host. It reuses
what Android implemented within the QEMU-based emulator for OpenGL ES
accelerated rendering. The Android system inside the container uses
different pipes to communicate with the host system and sends all hardware
access commands through these.
This package needs Android kernel modules and rootfs image,
download it from https://build.anbox.io/android-images
and put to /var/lib/anbox/android.img.
See %{_docdir}/anbox/README.ROSA for more information.

%files
%doc README.ROSA
%{_bindir}/%{name}
%{_bindir}/%{name}-bridge
%{_bindir}/%{name}-shell
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/interfaces/org.%{name}.ApplicationManager.xml
%{_datadir}/dbus-1/interfaces/org.%{name}.Gps.xml
%{_datadir}/dbus-1/interfaces/org.%{name}.Sensors.xml
%{_datadir}/dbus-1/services/org.%{name}.service
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1*
%{_unitdir}/%{name}-container-manager.service
%dir /var/lib/%{name}
%dir /var/lib/%{name}/binderfs0

%post
%systemd_post %{name}-container-manager.service

%preun
%systemd_preun %{name}-container-manager.service

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# (From AUR) Don't build tests
#truncate -s 0 cmake/FindGMock.cmake
truncate -s 0 tests/CMakeLists.txt

# Use system libraries
rm -fvr external/sdbus-cpp
rm -fvr external/cpu_features

# https://github.com/anbox/anbox/issues/1801#issuecomment-837517753
sed -i src/anbox/container/lxc_container.cpp \
	-e 's/lxc.group.devices.deny/lxc.cgroup2.devices.deny/' \
	-e 's/lxc.group.devices.allow/lxc.cgroup2.devices.allow/'

cp %{SOURCE14} README.ROSA

%build
%cmake \
	-DANBOX_VERSION_SUFFIX=%{vendor}	\
	-DANBOX_VERSION=%{version}-%{release}	\
	-DBINDERFS_PATH=/var/lib/%{name}/binderfs0	\
	-DCMAKE_BUILD_TYPE=Release		\
	-DCMAKE_INSTALL_LIBDIR=%{_libdir}	\
	-DENABLE_TOUCH_INPUT=ON			\
	-DENABLE_WAYLAND=OFF
%make

%install
%makeinstall_std -C build

install -m0644 -D snap/gui/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -m0644 -D %{SOURCE10} %{buildroot}%{_unitdir}/%{name}-container-manager.service
install -m0644 -D %{SOURCE11} %{buildroot}%{_datadir}/dbus-1/services/org.%{name}.service
install -m0644 -D %{SOURCE12} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m0644 -D %{SOURCE13} %{buildroot}%{_mandir}/man1/%{name}.1
install -m0755 -D %{SOURCE15} %{buildroot}%{_datadir}/%{name}/%{name}-load-kernel-modules.sh
install -m0755 -D scripts/%{name}-bridge.sh %{buildroot}%{_datadir}/%{name}/%{name}-bridge.sh
install -m0755 -D scripts/%{name}-shell.sh %{buildroot}%{_datadir}/%{name}/%{name}-shell.sh
mkdir -p %{buildroot}%{_bindir}
( cd %{buildroot}%{_bindir}
	ln -s %{_datadir}/%{name}/%{name}-shell.sh %{name}-shell
	ln -s %{_datadir}/%{name}/%{name}-bridge.sh %{name}-bridge
)
mkdir -p %{buildroot}/var/lib/%{name}/binderfs0
# XXX Is it needed? Added by commit 4b033022eb318, but is not installed.
install -m0644 -D src/%{name}/dbus/gps.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.%{name}.Gps.xml
# The same, do they have to be installed?
install -m0644 -D src/%{name}/dbus/application_manager.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.%{name}.ApplicationManager.xml
install -m0644 -D src/%{name}/dbus/sensors.xml %{buildroot}%{_datadir}/dbus-1/interfaces/org.%{name}.Sensors.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 133 |21cr|android-file-transfer-4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		android-file-transfer
Version:	4.2
Release:	2
Summary:	Reliable Android MTP client with minimalist UI
Group:		Development/Tools
License:	LGPLv2+
URL:		https://github.com/whoozle/android-file-transfer-linux
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:     desktop.patch
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(taglib)

%description
Android File Transfer for Linux — reliable MTP client with minimalist UI
similar to Android File Transfer for Mac.
Features:
- Simple Qt UI with progress dialogs.
- FUSE wrapper (If you'd prefer mounting your device), supporting partial
  read/writes, allowing instant access to your files.
- No file size limits.
- Automatically renames album cover to make it visible from media player.
- USB 'Zerocopy' support found in recent Linux kernel
- No extra dependencies (e.g. libptp/libmtp).
- Command line tool (aft-mtp-cli)

%prep
%setup -qn %{name}-linux-%{version}
%patch0 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

find %{buildroot} -name '*.a' -delete

%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml

%files
%doc README.md FAQ.md
%license LICENSE
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_metainfodir}/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 134 |21cr|android-tools-34.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Android platform tools (adb, fastboot, mkbootimg)
Name:		android-tools
Version:	34.0.1
Release:	1
License:	Apache Software License and BSD
Group:		Development/Tools
Url:			https://github.com/nmeum/android-tools
Source0:	https://github.com/nmeum/android-tools/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1:	51-android.rules
Source2:	adb.service
Patch0:	android-tools-34.0.1-no-member-as_string.patch
# From Mageia
Patch1:	android-tools-31.0.0-system-golang-x-crypto.patch
Patch2:	android-tools-34.0.1-fix-shebangs.patch
BuildRequires:	cmake >= 3.12.0
BuildRequires:	go
BuildRequires:	golang-x-crypto-devel
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(gtest)
BuildRequires:	pkgconfig(libbrotlicommon)
BuildRequires:	pkgconfig(libbrotlidec)
BuildRequires:	pkgconfig(libbrotlienc)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(libunwind-generic)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(zlib)
Provides:		adb = %{EVRD}
Provides:		fastboot = %{EVRD}
Provides:		mkbootimg = %{EVRD}
Requires(post,preun):	systemd
Requires(post,preun):	rpm-helper

%description
The Android Debug Bridge (ADB) is used to:
- keep track of all Android devices and emulators instances connected to or
running on a given host developer machine;
- implement various control commands (e.g. "adb shell", "adb pull", etc.) for
the benefit of clients (command-line users, or helper programs like DDMS).
These commands are what is called a 'service' in ADB;

Fastboot is used to manipulate the flash partitions of the Android phone. It
can also boot the phone using a kernel image or root file-system image which
reside on the host machine rather than in the phone flash.
In order to use it, it is important to understand the flash partition layout
for the phone. The fastboot program works in conjunction with firmware on the
phone to read and write the flash partitions. It needs the same USB device
setup between the host and the target phone as adb.

For Rosa Fresh you must use the following commands:
- adb;
- fastboot;
- mkbootimg.

%files
%doc README.md
%{_bindir}/adb
%{_bindir}/append2simg
%{_bindir}/avbtool
%{_bindir}/e2fsdroid
%{_bindir}/ext2simg
%{_bindir}/fastboot
%{_bindir}/img2simg
%{_bindir}/lpadd
%{_bindir}/lpdump
%{_bindir}/lpflash
%{_bindir}/lpmake
%{_bindir}/lpunpack
%{_bindir}/mkbootimg
%{_bindir}/mkdtboimg
%{_bindir}/mke2fs.android
%{_bindir}/repack_bootimg
%{_bindir}/simg2img
%{_bindir}/unpack_bootimg
%{_datadir}/bash-completion/completions/adb
%{_datadir}/bash-completion/completions/fastboot
%{_datadir}/%{name}/
%dir %{_sharedstatedir}/adb
%{_udevrulesdir}/51-android.rules
%{_unitdir}/adb.service

%post
%_post_service adb

%preun
%_preun_service adb

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
LDFLAGS="%{ldflags} -Wl,--copy-dt-needed-entries"
%cmake	\
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_STATIC_LIBS:BOOL=ON
%make


%install
%makeinstall_std -C build

install -d -m 0775 %{buildroot}%{_sharedstatedir}/adb
install -m 0755 vendor/mkbootimg/mkbootimg.py %{buildroot}%{_bindir}/mkbootimg

# For 51-android.rules
mkdir -p %{buildroot}%{_udevrulesdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/51-android.rules

# For adb.service
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/adb.service

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/mkbootimg/gki/generate_gki_certificate.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 135 |21cr|andromeda-0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname		%mklibname %{name} %{major}
%define debug_package	%{nil}

Name:		andromeda
Summary:	Qt file manager
Version:	0.3
Release:	3
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://github.com/ABBAPOH/andromeda
Source:		https://github.com/ABBAPOH/%{name}/archive/v%{version}.tar.gz
Patch0:		andromeda-0.3-library.patch
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	qt4-linguist
BuildRequires:	desktop-file-utils
Requires:	%{libname} = %{EVRD}

%description
Cross-platform file manager, written on Qt. Currently has support for local
filesystem (i.e. file:// protocol), simple web view and bookmarks plugins.

%files %{?langfile:-f %{langfile}}
%doc TODO.txt
%{_bindir}/%{name}
%{_bindir}/imageviewer
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/imageviewer.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/imageviewer.png

#------------------------------------------------
%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
Cross-platform file manager, written on Qt. Currently has support for local
filesystem (i.e. file:// protocol), simple web view and bookmarks plugins.


%files  -n %{libname}
%doc README.txt
%dir %attr(0755,root,root) %{_libdir}/%{name}
%{_libdir}/%{name}/*
%{_libdir}/libextensionsystem.so
%{_libdir}/libfilemanager.so
%{_libdir}/libguisystem.so
%{_libdir}/libimageviewer.so
%{_libdir}/libio.so
%{_libdir}/libwidgets.so
#------------------------------------------------


%prep
%setup -q
%patch0 -p1
find . -type f -name '*.h' -o -name '*.cpp' -exec chmod 644 {} \;

%build
%cmake_qt4
%make

%install
%makeinstall_std -C build

# imageviewer.desktop: error: key "Comment[ru]" in group "Desktop Entry" is a localized key, 
# but there is no non-localized key "Comment"
# I can't fix this, so whipe it. Sflo
desktop-file-install \
	--dir=%{buildroot}%{_datadir}/applications/ \
	--remove-key=Comment[ru] \
	%{buildroot}%{_datadir}/applications/imageviewer.desktop
	
	
%find_lang %{name} --with-qt --all-name	
%define langfile %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 136 |21cr|angband-4.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# default path is incude/SDL2 not include/SDL 
%global CFLAGS %{optflags} -lSDL2 -lSDL2_mixer -lSDL2_sound -lSDL2_image -lSDL2_ttf -lm

Summary:	Single-player dungeon exploration game in the universe of JRR Tolkien
Name:		angband
Version:	4.2.4
Release:	2
License:	GPLv2
Group:		Games/Adventure
Url:		http://rephial.org
Source0:	https://github.com/angband/angband/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		angband-4.0.5-desktop.patch
Patch1:		angband-4.2.4-optflags.patch
BuildRequires:	SDL2_sound-devel
BuildRequires:	python3dist(docutils)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(x11)

%description
Angband is a free, single-player dungeon exploration game.
You play an adventurer: seeking riches, fighting monsters, and
preparing for a final battle with Morgoth, the Lord of Darkness.

%files
%doc docs/{*.rst,*.txt} *.md 
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%config(noreplace) %{_sysconfdir}/%{name}/
%{_datadir}/%{name}/

#----------------------------------------------------

%prep
%autosetup -p1
# not in UTF-8
iconv -c -t UTF-8 < docs/version.rst > docs/version.txt
rm -fr docs/version.rst

%build
autoreconf -vfi
%configure \
	--bindir=%{_gamesbindir}	\
	--enable-ncurses	\
	--enable-sdl2		\
	--enable-sdl2-mixer	\
	--enable-sdl2-sound	\
	--enable-x11
# Set in git, we do it here
echo %{version}-%{release} > version
%make

%install
%makeinstall_std

install -d %{buildroot}%{_datadir}/applications
mv %{buildroot}%{_datadir}/%{name}/icons/*.desktop %{buildroot}%{_datadir}/applications/

for size in 16 32 128 256 512; do
	install -D -m644 %{buildroot}%{_datadir}/%{name}/icons/att-${size}.png \
		%{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 137 |21cr|angelscript-2.36.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	23600
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d

%global _vpath_srcdir	sdk/%{name}/projects/meson/

Name:		angelscript
Version:	2.36.0
Release:	1
Summary:	Scripting library
License:	zlib
Group:		System/Libraries
URL:		https://www.angelcode.com/angelscript/
Source0:	http://www.angelcode.com/angelscript/sdk/files/%{name}_%{version}.zip
BuildRequires:	gcc-c++
BuildRequires:	meson

%description
The AngelCode Scripting Library, or AngelScript as it is also known,
is a scripting library designed to allow applications to extend their
functionality through external scripts.

It supports Unix sockets and TCP/IP sockets with optional
SSL/TLS support.

%package -n	%{libname}
Summary:	Scripting library
Group:		System/Libraries

%description -n %{libname}
The AngelCode Scripting Library, or AngelScript as it is also known,
is a scripting library designed to allow applications to extend their
functionality through external scripts.

It supports Unix sockets and TCP/IP sockets with optional
SSL/TLS support.

%package -n	%{devname}
Summary:	Development files for AngelScript
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{devname}
The AngelCode Scripting Library, or AngelScript as it is also known,
is a scripting library designed to allow applications to extend their
functionality through external scripts.

This subpackage contains libraries and header files for developing
applications that want to make use of the AngelScript library.

%prep
%autosetup -c

%build
pushd %_vpath_srcdir
%meson
%meson_build
popd

%install
pushd %_vpath_srcdir
%meson_install
popd

%files
%doc sdk/docs/*

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}{,.*}

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/lib%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 138 |21cr|angelwars-0.24-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast-paced, old-fashioned side-scrolling space shooter
Name:		angelwars
Version:	0.24
Release:	18
Group:		Games/Arcade
License:	Artistic
Url:		http://angel-wars.sourceforge.net/
Source0:	http://download.sourceforge.net/angel-wars/%{name}-%{version}.tar.bz2
Source1:	http://download.sourceforge.net/angel-wars/%{name}-media-%{version}.tar.bz2
Source2:	http://download.sourceforge.net/angel-wars/%{name}-docs-%{version}.tar.bz2
Source3:	http://download.sourceforge.net/angel-wars/%{name}-levels-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		%{name}-gcc32.fix.patch.bz2
Patch1:		%{name}-missing-zlib-flag.patch.bz2
Patch2:		angelwars-0.24-libpng15.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	jpeg-devel
BuildRequires:	smpeg-devel

%description
Angel Wars is a traditional "space shooter" with an unusual premise--the
player is a rebellious minion of Satan bent on taking the universe over
for himself. It is written in C++ and aims to be as object-oriented and
platform-independent as possible.

%prep
%setup -q -b1 -b2 -b3
%patch0 -p1
%patch1
%patch2 -p1
# remove .xvpics directories
find . -type d -name .xvpics | xargs rm -rf

%build
%configure	--bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir}
perl -pi -e "s#images/#%{_gamesdatadir}/%{name}/images/#g" %{name}/*.cc
perl -pi -e "s#levels/#%{_gamesdatadir}/%{name}/levels/#g" %{name}/*.cc
perl -pi -e "s#sounds/#%{_gamesdatadir}/%{name}/sounds/#g" %{name}/*.cc
perl -pi -e "s#images/#%{_gamesdatadir}/%{name}/images/#g" %{name}/*/*.txt
perl -pi -e "s#levels/#%{_gamesdatadir}/%{name}/levels/#g" %{name}/*/*.txt
perl -pi -e "s#sounds/#%{_gamesdatadir}/%{name}/sounds/#g" %{name}/*/*.txt
#Really ugly workaround for lousy perl skills(this will be done in another way if I ever
#get the time and skillz;)
perl -pi -e "s#%{_gamesdatadir}/%{name}/images/%{_gamesdatadir}/%{name}#%{_gamesdatadir}/%{name}/images#g" %{name}/levels/*.txt

%make

%install
%makeinstall bindir=%{buildroot}%{_gamesbindir} datadir=%{buildroot}%{_gamesdatadir}
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a %{name}/images %{buildroot}%{_gamesdatadir}/%{name}
cp -a %{name}/levels %{buildroot}%{_gamesdatadir}/%{name}
cp -a %{name}/sounds %{buildroot}%{_gamesdatadir}/%{name}


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Angel Wars
Comment=Fast-paced, old-fashioned side-scrolling space shooter
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

%files
%doc %{name}/docs/*
%{_gamesdatadir}/%{name}
%{_gamesbindir}/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 139 |21cr|angrydd-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Build large gems, break them and defeat your opponent
Name:           angrydd
Version:        1.0.1
Release:        1
Url:            http://www.sacredchao.net/~piman/angrydd/
License:        GPLv2
Group:          Games/Strategy
Source:         http://www.sacredchao.net/~piman/%{name}/%{name}-%{version}.tar.bz2
Source1:        %{name}.desktop
# Debian patches
Patch0:         01_prefix_usr.patch
Patch1:         02_unixbros.patch
Patch2:         03_bug405368.patch
Patch3:         04_bug406548.patch
Patch4:         05_bug402333.patch
Patch5:         windowed-mode.patch
Patch6:         python3.patch

BuildRequires:  python3egg(pygame)
BuildRequires:  python3egg(numpy)
BuildRequires:  desktop-file-utils
Requires:       python3egg(pygame)
Requires:       python3egg(numpy)
Requires:       python3

BuildArch:      noarch

%description
In Angry, Drunken Dwarves (ADD), you are an angry, drunken dwarf. 
Why are you so angry? Who knows. 
But you've decided to take your aggression out on other
dwarves, by dropping gems on their heads. Lots of gems. 
ADD is a member of the
classic "falling blocks" puzzle game family, 
similar to the Capcom game Puzzle Fighter. 
The goal of the game is to build large 
gems by matching up colors,
then break them, raining more gems 
down onto your opponent. 
The first person whose field fills up, loses.

%files
%doc COPYING README HACKING TODO 
%{_gamesbindir}/%{name}
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build

%install
%makeinstall PREFIX=%{_prefix} DESTDIR=%{buildroot}

desktop-file-install                    \
  --dir=%{buildroot}%{_datadir}/applications           \
  %{SOURCE1}
  
install -Dm 0644 angrydd.png %{buildroot}%{_datadir}/pixmaps/angrydd.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 140 |21cr|anilibria-winmaclinux-2.2.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Application for watching anime from AniLibria website
Name:		anilibria-winmaclinux
Version:	2.2.24
Release:	1
License:	GPLv3+
Group:		Video
Url:		https://github.com/anilibria/anilibria-winmaclinux
Source0:	https://github.com/anilibria/anilibria-winmaclinux/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	anilibria-db-uploader
BuildRequires:	gstreamer1.0-libav
BuildRequires:	qt5-qtquickcontrols
BuildRequires:	kdeclarative-devel
BuildRequires:	qt5-qtbase-devel
BuildRequires:	qt5-qtwebengine-devel
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5WebView)
Provides:	anilibria = %{EVRD}
Provides:	AniLibria = %{EVRD}

%description
Application for watching anime from AniLibria website.

%files
%doc CONTRIBUTING.md README.md
%license LICENSE
%{_bindir}/anilibria
%{_bindir}/anilibria-db-uploader
%{_datadir}/applications/anilibria.desktop
%{_datadir}/pixmaps/anilibria.png

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%qmake_qt5 src -recursive
%make_build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{applications,pixmaps}
cp AniLibria %{buildroot}%{_bindir}/anilibria
cp specs/AniLibria.desktop %{buildroot}%{_datadir}/applications/anilibria.desktop
sed -i -e "s/Exec=.*/Exec=anilibria/" -e "s/Icon=.*/Icon=anilibria/" %{buildroot}%{_datadir}/applications/anilibria.desktop
cp specs/AniLibria.png %{buildroot}%{_datadir}/pixmaps/anilibria.png
cp %{SOURCE1} %{buildroot}%{_bindir}
chmod +x %{buildroot}%{_bindir}/anilibria-db-uploader

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 141 |21cr|animata-004-0.091218.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date	091218

Summary:	Open source real-time animation software
Name:		animata
Version:	004
Release:	0.%{date}.1
License:	GPLv3
Group:		Graphics
Url:		http://animata.kibu.hu/
Source0:	http://animata.googlecode.com/files/%{name}_%{version}-%{date}.tar.gz
Patch0:		animata-004-mdv-fix-FL-include-path.patch
Patch1:		animata-fltk-1.3.patch
Patch2:		animata-fix-includes.patch
Patch3:		animata-004-fix-missing-include-Xlib.patch
Patch4:		animata-scons3.patch
BuildRequires:	scons
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	x11-server-xvfb

%description
Animata is an open source real-time animation software, designed to create
animations, interactive background projections for concerts, theatre and dance
performances.

%files
%doc README AUTHORS CHANGES COPYING examples
%{_bindir}/%{name}
%{_datadir}/icons/animata_icon.png
%{_datadir}/applications/mandriva-%{name}.desktop

#------------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%autopatch -p1
sed -i -e "s/^LINKFLAGS =.*/LINKFLAGS = '%{ldflags}'/" src/SConscript

%build
%setup_compile_flags
/usr/bin/xvfb-run -a %scons -j4

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/icons/
cp build/%{name}	%{buildroot}%{_bindir}
cp data/animata_icon.png	%{buildroot}%{_datadir}/icons/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Animata
Comment=Open source real-time animation software
Exec=animata
Icon=animata_icon
StartupNotify=true
Type=Application
Categories=3DGraphics;Graphics;Viewer;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 142 |21cr|anki-2.1.49-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global __requires_exclude_from /opt/%{name}
%global __provides_exclude_from /opt/%{name}

Name:		anki
Version:	2.1.49
Release:	1
Summary:	Flashcard program for using space repetition learning
Group:		Education
License:	AGPLv3+ and GPLv3+ and MIT and BSD
Url:		https://apps.ankiweb.net/
Source0:	https://apps.ankiweb.net/downloads/archive/anki-%{version}-linux.tar.bz2
Source1:	anki.svg
Source2:	anki.appdata.xml
Source10:	anki.rpmlintrc
ExclusiveArch:	x86_64

BuildRequires:	desktop-file-utils
BuildRequires:	xdg-utils

Requires:	(mpv or mplayer)

%description
Anki is a program designed to help you remember facts (such as words
and phrases in a foreign language) as easily, quickly and efficiently
as possible. Anki is based on a theory called spaced repetition.

%files
%doc README*
%{_bindir}/anki
/opt/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.*
%{_datadir}/mime/packages/anki.xml
%{_metainfodir}/%{name}.appdata.xml
%{_mandir}/man1/%{name}.*
#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-linux

%build

%install
#step from install.sh script
install -d %{buildroot}%{_bindir}
install -d %{buildroot}/opt/%{name}

cp -av * %{buildroot}/opt/%{name}/
ln -sf /opt/%{name}/bin/Anki %{buildroot}%{_bindir}/%{name}

install -d %{buildroot}%{_datadir}/mime/packages
install -m 644 anki.xml %{buildroot}%{_datadir}/mime/packages

install -d %{buildroot}%{_iconsdir}/hicolor/scalable/apps
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/scalable/apps/

install -d %{buildroot}%{_mandir}/man1
install -m 644 anki.1 %{buildroot}%{_mandir}/man1/

mkdir -p %{buildroot}%{_metainfodir}
install -m 644 %{SOURCE2} %{buildroot}%{_metainfodir}

desktop-file-install \
  --remove-category=KDE \
  --set-key=Keywords --set-value="learn;education;memorizing;language;flashcard;spaced repetition;" \
  --dir %{buildroot}%{_datadir}/applications \
  %{name}.desktop

#find %{buildroot} -type f -o -type l|sed '
#s:'"%{buildroot}"'::
#s:\(.*/share/anki/locale/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
#s:\(.*/share/anki/locale/qt\)\([^.]\+\)\(\.qm\):%lang(\2) \1\2\3:
#s:^\([^%].*\)::
#s:%lang(C) ::
#/^$/d' > anki.lang

#find %{buildroot}/usr/share/anki/locale -type d|sed '
#s:'"%{buildroot}"'::
#s:\(.*\):%dir \1:' >>anki.lang

#rm -f %{buildroot}%{_defaultdocdir}/LICENSE*
#find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 644 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 143 |21cr|anomy-sanitizer-1.76-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Anomy Sanitizer

Name:		anomy-sanitizer
Version:	1.76
Release:	8
License:	GPL
Group:		Networking/Mail
URL:		http://mailtools.anomy.net/
Source:		http://mailtools.anomy.net/dist/%{name}-%{version}.tar.bz2
Source1:	%{name}.conf.bz2
Requires:	perl
BuildArch:	noarch

%description
The Anomy sanitizer is what most people would call "an email virus scanner".
That description is not totally accurate, but it does cover one of the more
important jobs that the sanitizer can do for you - it can scan email
attachments for viruses. Other things it can do:

* Disable potentially dangerous HTML code, such as javascript, within incoming
  email.
* Protect you from email-based break-in attempts which exploit bugs in common
  email programs (Outlook, Eudora, Pine, ...).
* Block or "mangle" attachments based on their file names. This way if you
  don't need to receive e.g. visual basic scripts, then you don't have to worry
  about the security risk they imply (the ILOVEYOU virus was a visual basic
  program). This lets you protect yourself and your users from whole classes
  of attacks, without relying on complex, resource intensive and outdated
  virus scanning solutions.

%prep
%setup -q -n anomy

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{perl_vendorlib}
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}/var/spool/anomy

cp -R bin/Anomy %{buildroot}%{perl_vendorlib}/Anomy
cp -r bin/*.pl %{buildroot}%{_bindir}
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/%{name}.conf

%files
%defattr(-, root, root, 0755)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%{perl_vendorlib}/Anomy/*
%{_bindir}/*
%dir /var/spool/anomy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 144 |21cr|ansiweather-1.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:      Weather in terminal, with ANSI colors and Unicode symbols
Name:         ansiweather
Version:	1.18.0
Release:	1
Group:        Toys
License:      BSD
Url:          https://github.com/fcambus/%{name}
Source0:      https://github.com/fcambus/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
Requires:     jq
Requires:     curl
Requires:     bc

BuildArch: noarch

%description
AnsiWeather is a Shell script for displaying 
the current weather conditions in your terminal, 
with support for ANSI colors and Unicode symbols.

%files
%doc README.md LICENSE AUTHORS ChangeLog
%{_bindir}/%{name}
%{_mandir}/man1/*
#-----------------------------------------------------

%prep
%setup -q

%build
# nothing to build

%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 145 |21cr|ant-antlr3-20110110-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: ant-antlr3
Version: 20110110
Release: 8
Summary: Antlr3 task for Ant
Group: Development/Java	
License: ASL 2.0
URL: http://antlr.org/
# Repackaged until rhbz#699529 RPM fix takes place in Fedora.
# RPM cannot read the upstream zip file.
# wget http://antlr.org/share/1169924912745/antlr3-task.zip
# unzip antlr3-task.zip
# rm antlr3-task.zip
# zip antlr3-task -r antlr3-task/
Source0: antlr3-task.zip
#Source0: http://antlr.org/share/1169924912745/antlr3-task.zip
BuildRequires: java-devel >= 0:1.6.0
BuildRequires: jpackage-utils
BuildRequires: ant
Requires: java >= 0:1.6.0
Requires: jpackage-utils
Requires: ant
BuildArch: noarch

%description
Antlr3 task for Ant.

%package javadoc
Summary: Javadoc for %{name}
Group: Development/Java
BuildArch: noarch
Requires: jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n antlr3-task
rm -f ant-antlr3.jar

%build
export CLASSPATH=`build-classpath ant`
javac -encoding utf-8 antlr3-src/src/org/apache/tools/ant/antlr/ANTLR3.java
jar cvf ant-antlr3.jar -C antlr3-src/src org/apache/tools/ant/antlr/antlib.xml -C antlr3-src/src org/apache/tools/ant/antlr/ANTLR3.class
javadoc -Xdoclint:none -encoding utf-8 -d antlr3-src/javadoc -sourcepath antlr3-src/src -subpackages java:org.apache.tools.ant.antlr

# Sanitize line endings
find examples Readme.txt -type f -print0 | xargs -0 -e sed -i 's/\r//'
# Remove zero length Java properties files
find examples -size 0 -name \*.properties -print0 | xargs -0 -e rm -f

%install
install -m 644 ant-antlr3.jar -D $RPM_BUILD_ROOT%{_javadir}/ant/ant-antlr3.jar

mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/ant-antlr3
cp -rf antlr3-src/javadoc/* $RPM_BUILD_ROOT%{_javadocdir}/ant-antlr3

# /etc/ant.d
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
cat > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-antlr3 << EOF
ant/ant-antlr3 antlr3
EOF

%files
%defattr(-,root,root,-)
%doc Readme.txt examples
%{_javadir}/ant/ant-antlr3.jar
%config(noreplace) %{_sysconfdir}/ant.d/ant-antlr3

%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/ant-antlr3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 146 |21cr|antimicro-2.23-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Graphical program used to map keyboard buttons and mouse controls to a gamepad
Name:		antimicro
Version:	2.23
Release:	4
License:	GPLv3+
Group:		System/X11
Url:		https://github.com/AntiMicro/antimicro
Source0:	https://github.com/AntiMicro/antimicro/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		antimicro-clang.patch
Patch1:		antimicro-qt5_wrap.patch
BuildRequires:	cmake
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)

%description
AntiMicro is a graphical program used to map keyboard keys and mouse controls
to a gamepad. This program is useful for playing PC games using a gamepad that
do not have any form of built-in gamepad support. AntiMicro was inspired by
QJoyPad but has additional features.

%files -f %{name}.lang
%doc Changelog gpl.txt README.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/translations/antimicro.qm
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 147 |21cr|anyremote-6.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Remote control through bluetooth or IR connection
Name:		anyremote
Version:	6.7.3
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://anyremote.sourceforge.net/
Source0:	http://sourceforge.net/projects/anyremote/files/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-core)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)
Requires:	bluez
# Optional and exclusive for arches
%ifarch %{ix86} x86_64
Requires:	irda-utils
%endif
Recommends:	kanyremote

%description
The overall goal of this project is to provide wireless remote control program
on Linux through Bluetooth, InfraRed, Wi-Fi or just TCP/IP connection.

anyRemote supports wide range of modern cell phones line Nokia, SonyEricsson,
Motorola and others.

anyRemote was developed as thin "communication" layer between Buetooth
(IR, Wi-Fi) capable phone and Linux, and in principle could be configured to
manage almost any software.

anyRemote could be used with:
* bluetooth connection with java client if cell phone is JSR82 compatible
* Wi-Fi connection with java client if phone supports Wi-Fi
* IR connection with java client if java realization in phone supports access
  to IR port
* ordinary TCP/IP connection with java client, if PC is connectable from
  the Internet
* bluetooth, infrared or cable connection using AT "modem" commands
* web interface
* it supports some of IR remotes supplied with TV tuner cards (like LIRC)
* it has limited support for Bemused clients 

anyRemote is a console application, but in addition there are GUI front ends
for Gnome and KDE.

%files
%doc NEWS README AUTHORS
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentations for anyRemote
Group:		System/Kernel and hardware
Conflicts:	%{name} < 4.14
BuildArch:	noarch

%description doc
Documentation for anyRemote.

%files doc
%{_defaultdocdir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 148 |21cr|anytermd-1.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn 20121124

Summary:	Anyterm Daemon
Name:		anytermd
Version:	1.2.3
Release:	1
License:	GPLv2
Group:		System/Servers
Url:		http://anyterm.org
# svn co http://svn.anyterm.org/anyterm/tags/releases/1.2/1.2.3
Source0:	%{name}-%{version}.tar.gz
Source1:	anyterm-cmd
Source4:	anyterm.conf
Source5:	anyterm.service
Patch0:		anyterm-1.2.3-respect-LDFLAGS.patch
Patch1:		anyterm-1.1.29-linkage.patch
# Fedora patches
Patch2:		anyterm-change-url-prefix.patch
Patch3:		anyterm-1.2.3-c++.patch
BuildRequires:	boost-devel
BuildRequires:	librote-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	mailcap
Requires:	openssl

%description
This is the Anyterm daemon terminal emulator.

%files
%doc CHANGELOG LICENSE README
%{_sbindir}/anytermd
%dir %{_datadir}/anyterm
%{_datadir}/anyterm/*
%{_libexecdir}/%{name}/anyterm-cmd
%{_mandir}/man1/anytermd.1*
%{_sysconfdir}/httpd/conf.d/anyterm.conf
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/anyterm.service
%ghost %attr(0755,%{name},%{name}) %dir %{_localstatedir}/run/%{name}

%post
%tmpfiles_create %{name}.conf
%systemd_post anyterm.service

%preun
%systemd_preun anyterm.service

%pre
%_pre_useradd %{name} %{_localstatedir}/run/%{name} /bin/false

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n anytermd-%{version}

%build
%serverbuild
%make GCC_FLAGS="%{optflags} -pthread -fPIC -D_REENTRANT" LDFLAGS="%{ldflags}"

%install
install -Dp -m0755 anytermd %{buildroot}%{_sbindir}/anytermd
install -Dp -m0644 anytermd.1 %{buildroot}%{_mandir}/man1/anytermd.1
install -Dp -m0755 %{SOURCE1} %{buildroot}%{_libexecdir}/%{name}/anyterm-cmd
install -Dp -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/httpd/conf.d/anyterm.conf
install -Dp -m0644 %{SOURCE5} %{buildroot}%{_unitdir}/anyterm.service

mkdir -p %{buildroot}%{_datadir}/anyterm/
for f in browser/*.{html,css,js,png,gif}; do
   install -m644 "$f" %{buildroot}%{_datadir}/anyterm/
done

# Create a home directory for the user.
mkdir -p -m755 %{buildroot}%{_localstatedir}/run/%{name}
mkdir -p %{buildroot}%{_tmpfilesdir}
cat <<EOF > %{buildroot}%{_tmpfilesdir}/%{name}.conf
d %{_localstatedir}/run/%{name} 0755 %{name} %{name}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 149 |21cr|aoetools-37-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Programs to setup ATA over Ethernet device
Name:		aoetools
Group:		System/Kernel and hardware
License:	GPLv2+
Version:	37
Release:	3
Url:		http://sourceforge.net/projects/aoetools/
Source0:	https://github.com/OpenAoE/aoetools/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz

%description
The aoetools are programs for users of the ATA over Ethernet (AoE)
network storage protocol, a simple protocol for using storage over
an ethernet LAN.

%prep
%setup -qn %{name}-%{name}-%{version}

%build
%make CFLAGS="%optflags"

%install
%makeinstall_std
# fix attr
chmod 755 %{buildroot}%{_sbindir}/*

%files
%doc HACKING NEWS README
%_sbindir/*
%_mandir/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 150 |21cr|apache-gallery-1.0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Apache-Gallery

Summary:	A mod_perl handler to create an image gallery
Name:		apache-gallery
Version:	1.0.2
Release:	8
License:	GPL or Artistic
Group:		Networking/WWW
Url:		http://apachegallery.dk/
Source0:	http://apachegallery.dk/download/%{module}-%{version}.tar.gz
BuildRequires:	apache-mod_perl
BuildRequires:	perl-devel
# (tv) for testsuite:
BuildRequires:	perl(CGI)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(Image::Imlib2)
BuildRequires:	perl(Image::Info)
BuildRequires:	perl(Image::Size)
BuildRequires:	perl(Text::Template)
#BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::Pod)
Requires:	apache-mod_perl
Requires(pre):	user(apache)
Provides:	perl-Apache-gallery = %{EVRD}
BuildArch:	noarch

%description
Apache::Gallery creates an thumbnail index of each directory and
allows viewing pictures in different resolutions. Pictures are
resized on the fly and cached.

%files
%doc README Changes INSTALL LICENSE TODO UPGRADE
%config(noreplace) %{_webappconfdir}/%{name}.conf
%{perl_vendorlib}/Apache
%{_datadir}/%{name}
%attr(-,apache,apache) /var/cache/%{name}
%{_var}/www/%{name}
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
install -d -m 755 %{buildroot}%{_datadir}/apache-gallery/default
install -d -m 755 %{buildroot}/var/www/apache-gallery/static

for template in default new; do
    install -d -m 755 %{buildroot}%{_datadir}/apache-gallery/$template
    install -m 644 templates/$template/*.tpl %{buildroot}%{_datadir}/apache-gallery/$template
    install -m 644 templates/$template/gallery.css %{buildroot}/var/www/apache-gallery/static/$template.css
done

install -m 644 htdocs/* %{buildroot}/var/www/apache-gallery/static

install -d -m 755 %{buildroot}/var/www/apache-gallery/photos

install -d -m 755 %{buildroot}/var/cache/apache-gallery

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# %{name} Apache configuration
Alias /apache-gallery/static /var/www/apache-gallery/static
Alias /apache-gallery /var/www/apache-gallery/photos

<IfModule mod_perl.c>
    PerlSetVar GalleryTemplateDir '/usr/share/apache-gallery/default'
    PerlSetVar GalleryCacheDir    '/var/cache/apache-gallery'
    PerlSetVar GalleryURLBase     '/apache-gallery/static'
    PerlOptions +GlobalRequest

    <Directory /var/www/apache-gallery>
        Require all granted
    </Directory>

    <Directory /var/www/apache-gallery/photos>
        SetHandler        modperl
        PerlResponseHandler       Apache::Gallery
    </Directory>

    <Directory /var/cache/apache-gallery>
        Require all granted
    </Directory>
</ifModule>
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 151 |21cr|apachegrep-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A grep tool for apache log files 
Name: apachegrep
Version: 0.3
Release: 7
Source0: http://switch.dl.sourceforge.net/sourceforge/apachegrep/%{name}-%{version}.tar.bz2
License: GPL
Group: File tools
Url: http://apachegrep.sourceforge.net/
Patch0: apachegrep-zcat.patch
BuildArch: noarch
Requires: gzip, bzip2

%description
apachegrep is a perl program to help webmasters go through their apache logs
and try to pullout various bits of information.
Built in the spirit of unix tools, it's designed to be used standalone or 
as part of a pipeline of tools to pore over common (or combined) logs and 
print out entire lines, specified fields or a simple count of matching lines.
You specify what fields you want and what regular expression you want applied
to that field.

It supports gzipped and bzipped log files.

%prep
%setup -q
%patch0 -p0

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot/%{_mandir}/man1
mkdir -p %buildroot/%{_bindir}
install -m 755 apachegrep %buildroot/%{_bindir}
install -m 644 apachegrep.1 %buildroot/%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc INSTALL CHANGELOG LICENSE README TODO 
%{_bindir}/apachegrep
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 152 |21cr|apache-mod_activex_filter-0.2b-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_activex_filter
%define mod_conf A17_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module that filter ActiveX on a proxy
Name:		apache-%{mod_name}
Version:	0.2b
Release:	20
Epoch:		1
Group:		System/Servers
License:	Apache License
URL:		http://brice.free.fr
Source0:	mod_activex_%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Patch0:		mod_activex_0.2-apx1.diff
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
Requires:	apache-mod_proxy

%description
It's only a simple hack of mod_case_filter to get a way to filter
ActiveX on a proxy. Actualy, the only way to filter ActiveX if
your proxy is unable to do it is to use a TIS module chained with
your proxy. But the TIS is only capable of doing HTTP/1.0. If you
need real performances, you'll want to use HTTP/1.1.

%prep
%setup -q -n mod_activex_0.2
%patch0 -p0

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
mv activex_filter/mod_activex_filter.c .
apxs -c mod_activex_filter.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 153 |21cr|apache-mod_annodex-0.2.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_annodex
%define mod_conf A87_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module for server-side support of annodex media
Name:		apache-%{mod_name}
Version:	0.2.2
Release:	17
Group:		System/Servers
License:	Apache License
URL:		http://www.annodex.net/
Source:		http://www.annodex.net/software/mod_annodex/download/%{mod_name}-ap20-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	libannodex-devel
BuildRequires:	libcmml-devel >= 0.8
BuildRequires:	libogg-devel
BuildRequires:	pkgconfig

%description
mod_annodex provides full support for Annodex.net media. For more details about
annodex format, see http://www.annodex.net/

mod_annodex is a handler for type application/x-annodex. It provides the
following features:

        * dynamic generation of Annodex media from CMML files.

        * handling of timed query offsets, such as

          http://media.example.com/fish.anx?t=npt:01:20.8
        or
          http://media.example.com/fish.anx?id=Preparation

        * dynamic retrieval of CMML summaries, if the Accept: header
          prefers type text/x-cmml over application/x-annodex.

%prep

%setup -q -n %{mod_name}-ap20-%{version}

%build

%{_bindir}/apxs -c %{mod_name}.c `pkg-config annodex cmml --cflags --libs`

%install

install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc LICENSE README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 154 |21cr|apache-mod_antispam-1.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_antispam
%define mod_conf A41_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module which can control referer spam
Name:		apache-%{mod_name}
Version:	1.0
Release:	21
Group:		System/Servers
License:	Apache License
URL:		http://bluecoara.net/item44/cat9.html
Source0:	http://bluecoara.net/download/mod_antispam/%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Patch0:		mod_antispam-1.0-apache220.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= 2.2.0
Requires(pre):  apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:  apache-devel >= 2.2.0

%description
mod_antispam is an Apache-2/Apache-2.1 module that can control
spam access. By using white/black lists, you can allow/deny
clients that have invalid HTTP_REFERER. In future versions, DNSBL
and BerkeleyDB will be supported.

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p0

%build
%{_bindir}/apxs -DDEBUG -c %{mod_name}.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}/var/log/httpd

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

touch %{buildroot}/var/log/httpd/antispam.white
touch %{buildroot}/var/log/httpd/antispam.black
touch %{buildroot}/var/log/httpd/antispam.black.auto
touch %{buildroot}/var/log/httpd/antispam.white.auto

%files
%doc AUTHORS CHANGES INSTALL README TODO httpd.conf.sample
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
# this is prone to change later, leave as is for now
%attr(0644,apache,apache) %config(noreplace) /var/log/httpd/antispam.white
%attr(0644,apache,apache) %config(noreplace) /var/log/httpd/antispam.black
%attr(0644,apache,apache) %config(noreplace) /var/log/httpd/antispam.black.auto
%attr(0644,apache,apache) %config(noreplace) /var/log/httpd/antispam.white.auto

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 155 |21cr|apache-mod_apparmor-2.3-1.907.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rev 907

Summary:	Fine-grained AppArmor confinement for apache
Name:		apache-mod_apparmor
Version:	2.3
Release:	1.%{rev}.10
License:	LGPL
Group:		System/Servers
Url:		http://forge.novell.com/modules/xfmod/project/?apparmor
Source0:	apache2-mod_apparmor-%{version}-%{rev}.tar.gz
Source1:	B15_mod_apparmor.conf
BuildRequires:	perl-Pod-Html
BuildRequires:	apache-devel
BuildRequires:	libapparmor-devel

%description
AppArmor is a security framework that proactively protects the operating system
and applications.

apache-mod_apparmor adds support to apache to provide AppArmor confinement
to individual cgi scripts handled by apache modules like mod_php and mod_perl.
This package is part of a suite of tools that used to be named SubDomain.

%files
%doc COPYING.LGPL
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/B15_mod_apparmor.conf
%attr(0755,root,root) %{_libdir}/apache-extramodules/mod_apparmor.so
%attr(0644,root,root) %{_mandir}/man8/mod_apparmor.8*

#----------------------------------------------------------------------------

%prep
%setup -q -n apache2-mod_apparmor-%{version}

%build
%serverbuild

#%make   LIBAPPARMOR_FLAGS="-L../libapparmor/src/.libs -lapparmor -I../libapparmor/src" \
#        TESTBUILDDIR=$(pwd)

%make TESTBUILDDIR=$(pwd)


%install
%makeinstall_std APXS_INSTALL_DIR=%{_libdir}/apache-extramodules
mkdir -p %{buildroot}%{_sysconfdir}/httpd/modules.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/modules.d/
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/*conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 156 |21cr|apache-mod_auth_cert-0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.8
%define mod_name mod_auth_cert
%define mod_conf B40_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Maps the Subject DN of a X509 client certificate to a username
Name:		apache-%{mod_name}
Version:	0.3
Release:	13
Group:		System/Servers
License:	GPL
URL:		http://sourceforge.net/projects/mod-auth-cert/
Source0:	http://dfn.dl.sourceforge.net/sourceforge/mod-auth-cert/%{mod_name}-%{version}.tgz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:	apache-devel >= %{apache_version}
BuildRequires:	dos2unix

%description
mod_auth_cert is an authentication module for the Apache 1.3.x/2.x server. It
can be used to map the Subject DN of a X509 client certificate to a username.
The module can be combined with other authentication modules.

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

find -type f -exec dos2unix {} \;

%build

%{_bindir}/apxs -c %{mod_name}.c
        
%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc LICENSE README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 157 |21cr|apache-mod_auth_certificate-0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_auth_certificate
%define mod_conf B56_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	 A client certificate authentication module for apache
Name:		apache-%{mod_name}
Version:	0.3
Release:	9
Group:		System/Servers
License:	Apache License
URL:		http://sourceforge.net/projects/modauthcertific/
Source0:	http://sunet.dl.sourceforge.net/project/modauthcertific/mod_auth_certificate/mod_auth_certificate-%{version}/mod_auth_certificate-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires(pre):	apache-mod_ssl >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
Requires:	apache-mod_ssl >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	openssl-devel

%description
mod_auth_certificate is an authentication module for the Apache 2.x server. It
adds the capability to forward usernames returned by mod_ssl to authorization
modules or providers as the are called since >= 2.2.x.

%prep

%setup -q -n %{mod_name}-%{version}
cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache|g" %{mod_conf}

%build
%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc COPYING README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 158 |21cr|apache-mod_auth_imap-2.2.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_auth_imap
%define mod_conf A42_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Provides authentication against an IMAP mail server
Name:		apache-%{mod_name}
Version:	2.2.0
Release:	18
Group:		System/Servers
License:	GPL
URL:		http://ben.brillat.net/projects/mod_auth_imap/
Source0:	http://ben.brillat.net/files/projects/mod_auth_imap2/mod_auth_imap2-%{version}.tar.gz
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= 2.2.0
Requires(pre):  apache >= 2.2.0
Requires:       apache-conf >= 2.2.0
Requires:       apache >= 2.2.0
BuildRequires:  apache-devel >= 2.2.0
BuildRequires:	file

%description
mod_auth_imap is an Apache module to provide authentication
against an IMAP mail server. The httpd.conf or .htaccess file can
specify server name and port of the desired IMAP server. It is
also compatible with stunnel for IMAP over SSL.

%prep

%setup -q -n mod_auth_imap2-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc CHANGELOG GPL.txt README examples/htaccess-example examples/httpd.conf-append-example
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 159 |21cr|apache-mod_auth_kerb-5.4-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_auth_kerb
%define mod_conf 11_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module to provides authentifation against a Kerberos server
Name:		apache-%{mod_name}
Version:	5.4
Release:	14
Group:		System/Servers
License:	BSD-like
URL:		http://modauthkerb.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/modauthkerb/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Patch1:		mod_auth_kerb-5.4-rcopshack.patch
Patch2:		mod_auth_kerb-5.4-fixes.patch
Patch3:     mod_auth_kerb-5.4-s4u2proxy.patch
Patch4:     mod_auth_kerb-5.4-httpd24.patch
Patch5:		0011-Always-use-NONE-replay-cache-type.patch
Requires:	krb5-libs
BuildRequires:	krb5-devel
BuildRequires:	automake
BuildRequires:	autoconf2.5
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
Mod_auth_kerb is an apache module designed to provide Kerberos
user authentication to the Apache web server. Using the Basic
Auth mechanism, it retrieves a username/password pair from the
browser and checks them against a Kerberos server as set up by
your particular organization. It also supports mutual ticket
authentication, but most browsers do not support that natively.

I might look into writing a netscape plugin for it at some point.
Some browsers also require being told that they are to use Basic
Auth as opposed to seeing KerberosV* and handling that as basic
auth. The module accounts for this and 'tricks' the browser into
thinking it's normal basic auth. 

If you are using the Basic Auth mechanmism, the module does not
do any special encryption of any sort. The passing of the
username and password is done with the same Base64 encoding that
Basic Auth uses. This can easily be converted to plain text. To
counter this, I would suggest also using mod_ssl. 

%prep

%setup -q -n %{mod_name}-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%configure --localstatedir=/var/lib \
    --with-krb5=%{_prefix} \
    --without-krb4
%make

%install
rm -rf .libs; cp -rp src/.libs .

install -d %{buildroot}%{_libdir}/apache
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}


%files
%doc INSTALL LICENSE README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 160 |21cr|apache-mod_auth_msfix-0.2.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_auth_msfix
%define mod_conf A24_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	A module that fix MS XP WebDAV client problem
Name:		apache-%{mod_name}
Version:	0.2.1
Release:	21
Group:		System/Servers
License:	GPL
URL:		http://www.luluware.com/mod_auth_msfix.html
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}
Patch0:		mod_auth_msfix-0.2.1-apache220.diff
Requires:	apache-mod_dav
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:  apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
When MS XP Clients connect to WebDAV, they may have a problem
sending the user's name to Apache. They send domaine\username
or username@domaine, which break most of the authentification
module of Apache. 

This mod can fix the user's name by rewriting it.

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p0

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc CHANGES INSTALL README mod_auth_msfix.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 161 |21cr|apache-mod_auth_nds-2.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_auth_nds
%define mod_conf 98_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache Web server
Name:		apache-%{mod_name}
Version:	2.0
Release:	20
Group:		System/Servers
License:	GPL
URL:		http://www.gknw.com/development/apache/
Source0: 	http://www.gknw.com/development/apache/httpd-2.0/unix/modules/%{mod_name}-%{version}beta.tar.bz2
Source1:	%{mod_conf}.bz2
Patch0:		mod_auth_nds-2.0-register.patch
Patch1:		mod_auth_nds-2.0-apache220.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	ncpfs-devel
BuildRequires:	file
Epoch:		1

%description
mod_auth_nds is the Novell(tm) NDS(tm) authentication module for 
the apache web server.

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p0
%patch1 -p0

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c -I%{_includedir}/ncp -lncp 

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc my_cfg.txt ChangeLog INSTALL
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 162 |21cr|apache-mod_authn_imap-0.01-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_authn_imap
%define mod_conf B42_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module for basic IMAP authentication support
Name:		apache-%{mod_name}
Version:	0.01
Release: 	11
Group:		System/Servers
License:	Apache License
URL:		http://www.s5h.net/code/mod-imap/
Source0:	http://www.s5h.net/code/mod-imap/mod_imap-%{version}.tar.gz
Source1:	http://www.s5h.net/code/mod-imap/mod_imap-%{version}.tar.gz.asc
Source2:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0

%description
Apache module for basic IMAP authentication support.

%prep

%setup -q -n mod_imap

cp %{SOURCE2} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# change the modules name
cp mod_authn_imap_basic.c %{mod_name}.c

%build
%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

# cleanup
rm -f %{buildroot}%{_libdir}/apache-extramodules/*.*a

%files
%doc README INSTALL
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 163 |21cr|apache-mod_authn_otp-1.1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_authn_otp
%define mod_conf B55_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module for one-time password authentication
Name:		apache-%{mod_name}
Version:	1.1.1
Release:	9
Group:		System/Servers
License:	Apache License
Url:		http://code.google.com/p/mod-authn-otp/
Source0:	http://mod-authn-otp.googlecode.com/files/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_authn_otp-1.1.0-no_funky_cflags.diff
BuildRequires:	apache-devel
BuildRequires:	pkgconfig(openssl)
Requires:	apache
Requires:	apache-conf
Requires(pre):	apache
Requires(pre):	apache-conf
Requires(pre,postun):	rpm-helper

%description
mod_authn_otp is an Apache web server module for two-factor authentication
using one-time passwords (OTP) generated via the HOTP/OATH algorithm defined in
RFC 4226. This creates a simple way to protect a web site with one-time
passwords, using any RFC 4226-compliant hardware or software token device.
mod_authn_otp also supports the Mobile-OTP algorithm.

mod_authn_otp supports both event and time based one-time passwords. It also
supports "lingering" which allows the repeated re-use of a previously used
one-time password up to a configurable maximum linger time. This allows
one-time passwords to be used directly in HTTP authentication without forcing
the user to enter a new one-time password for every page load.

mod_authn_otp supports both basic and digest authentication, and will
auto-synchronize with the user's token within a configurable maximum offset
(auto-synchronization is not supported with digest authentication).

mod_authn_otp is especially useful for setting up protected web sites that
require more security than simple username/password authentication yet also
don't require users to install special VPN software, and is compatible with
software tokens that run on cell phones.

%files
%doc CHANGES LICENSE README users.sample
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_bindir}/otptool
%{_mandir}/man1/otptool.1*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p0
# needed for autoreconf
touch NEWS AUTHORS ChangeLog COPYING

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
rm -f configure
autoreconf -fi
export LIBS="-L%{_libdir} -lcrypto"

%configure
%make

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_mandir}/man1

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_bindir}
install -m0755 otptool %{buildroot}%{_bindir}/otptool
install -m0644 otptool.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 164 |21cr|apache-mod_auth_ntlm_winbind-0.0.0-0.r794.11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap r794

#Module-Specific definitions
%define mod_name mod_auth_ntlm_winbind
%define mod_conf B19_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Enables the Apache Web Server to Authenticate Users against Microsoft like DCs
Name:		apache-%{mod_name}
Version:	0.0.0
Release:	0.%{snap}.11
Group:		System/Servers
License:	Apache License
URL:		http://adldap.sourceforge.net/wiki/doku.php?id=mod_auth_ntlm_winbind
Source0:	%{mod_name}-%{version}-%{snap}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_auth_ntlm_winbind-20060510-connect_http10.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache-mpm-prefork >= 2.2.0
Requires:	samba-common
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
mod_auth_ntlm_winbind is an Apache module to authenticate users and
authorize access through Samba's winbind daemon against a Microsoft
like Domain Controller (DC).  These are Microsoft NT/2000/XP and Samba.

%prep

%setup -q -n %{mod_name}
%patch0 -p0

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type d -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -DAPACHE2 -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc AUTHORS README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 165 |21cr|apache-mod_authn_yubikey-0.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_authn_yubikey
%define mod_conf B47_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Authentication provider for Yubicos YubiKey
Name:		apache-%{mod_name}
Version:	0.1
Release: 	15
Group:		System/Servers
License:	Apache License
URL:		http://mod_authn_yubikey.coffeecrew.org/
Source0:	http://mod_authn_yubikey.coffeecrew.org/authn_yubikey.tar.bz2
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	curl-devel
BuildRequires:	libyubikey-devel

%description
The mod_authn_yubikey module is an authentication provider for the apache 2.2
platform. It leverages the YubiKey which is a small token that acts as an
authentication device. By enabling your apache installation with this module
you can use your YubiKey for authentication with your website. The
mod_authn_yubikey module provides one and two factor authentication for your
website and is completely independend from the technlogy that implements your
website (like CGI, JSP or PHP). In your backend application you can read the
HTTP_X_YUBI_AUTH_TYPE header, which is either OneFactor or TwoFactor stating
that the user authenticated using either just the Yubikey itself or in
conjunction with an additional password, where TwoFactor would be sent instead.

%prep

%setup -q -n authn_yubikey

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -c %{mod_name}.c -Wl,-lcurl -Wl,-lyubikey

%install

install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 166 |21cr|apache-mod_authnz_external-3.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.4
%define mod_name mod_authnz_external
%define mod_conf 10_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	An apache authentication DSO using external programs
Name:		apache-%{mod_name}
Version:	3.3.0
Release:	6
Group:		System/Servers
License:	Apache License
Url:		http://www.unixpapa.com/mod_auth_external.html
Source0:	http://mod-auth-external.googlecode.com/files/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_authnz_external-3.2.5.patch
BuildRequires:	apache-devel >= %{apache_version}
Requires:	pwauth
Requires:	apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires(pre):	apache >= %{apache_version}
Requires(pre):	apache-conf >= %{apache_version}
Provides:	apache-mod_auth_external = %{EVRD}

%description
An apache external authentication module - uses PAM.

%files
%doc AUTHENTICATORS CHANGES INSTALL* README TODO UPGRADE
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

chmod 644 AUTHENTICATORS CHANGES INSTALL* README TODO
%patch0 -p0

%build
apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 167 |21cr|apache-mod_auth_openidc-2.4.11.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# autoreconf is enough
%define _disable_rebuild_configure 1

# XXX TODO: make them be macros in apache-devel?!
%define apache_moddir %{_libdir}/apache
%define apache_confdir /etc/httpd/conf.d
%define apache_modconfdir /etc/httpd/modules.d
%define apache_cachedir /var/cache/httpd

Summary:	OpenID Connect auth module for Apache HTTP Server
Name:		apache-mod_auth_openidc
Version:	2.4.11.3
Release:	1
License:	Apache 2.0
Group:		System/Servers
Url:		https://github.com/zmartzone/mod_auth_openidc
Source0:	https://github.com/zmartzone/mod_auth_openidc/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
	
BuildRequires:	make
BuildRequires:  gcc
BuildRequires:	apache-devel
BuildRequires:	openssl-devel
BuildRequires:	curl-devel
BuildRequires:	jansson-devel
BuildRequires:	pcre-devel
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	jq-devel
BuildRequires:	pkgconfig(cjose)

Requires:	apache
Requires(pre):	group(apache)
Requires(pre):	user(apache)

# compat with Fedora/RH
Provides:	mod_auth_openidc = %{EVRD}

%description
This module enables an Apache 2.x web server to operate as
an OpenID Connect Relying Party and/or OAuth 2.0 Resource Server.

%files
%license LICENSE.txt
%doc ChangeLog AUTHORS README.md
%{apache_moddir}/mod_auth_openidc.so
%config(noreplace) %{apache_modconfdir}/10-auth_openidc.conf
%config(noreplace) %{apache_confdir}/auth_openidc.conf
%dir %attr(0700,apache,apache) %{apache_cachedir}
%dir %attr(0700,apache,apache) %{apache_cachedir}/metadata
%dir %attr(0700,apache,apache) %{apache_cachedir}/cache
#------------------------------------------------------------------

%prep
%autosetup -p1 -n mod_auth_openidc-%{version}

%build
export MODULES_DIR=%{apache_moddir}
export APXS2_OPTS='-S LIBEXECDIR=${MODULES_DIR}'
autoreconf -ifv
%configure \
	--with-jq=%{_libdir} \
	--with-apxs2=%{_bindir}/apxs
%make

%install
mkdir -p %{buildroot}%{apache_moddir}
make install DESTDIR=%{buildroot} MODULES_DIR=%{buildroot}%{apache_moddir}
 
install -m 755 -d %{buildroot}%{apache_modconfdir}
echo 'LoadModule auth_openidc_module modules/mod_auth_openidc.so' > \
	%{buildroot}%{apache_modconfdir}/10-auth_openidc.conf
 
install -m 755 -d %{buildroot}%{apache_confdir}
install -m 644 auth_openidc.conf %{buildroot}%{apache_confdir}
# Adjust httpd cache location in install config file
sed -i 's!/var/cache/apache2/!%{apache_cachedir}/!' %{buildroot}%{apache_confdir}/auth_openidc.conf
install -m 700 -d %{buildroot}%{apache_cachedir}
install -m 700 -d %{buildroot}%{apache_cachedir}/metadata
install -m 700 -d %{buildroot}%{apache_cachedir}/cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 168 |21cr|apache-mod_auth_pam-1.1.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_auth_pam
%define mod_conf A48_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary: 	Pam authorisation for Apache
Name: 		apache-%{mod_name}
Version: 	1.1.1
Release: 	15
License: 	LGPL
Group: 		System/Servers
URL: 		http://pam.sourceforge.net/mod_auth_pam/
Source0:	http://pam.sourceforge.net/mod_auth_pam/dist/%{mod_name}-2.0-%{version}.tar.bz2
Source1:	http://pam.sourceforge.net/mod_auth_pam/shadow.html
Source2:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
BuildRequires:  pam-devel

%description
The PAM authentication module implements Basic authentication on 
top of the Pluggable Authentication Module library. Thereby it 
supports standard unix passwd, shadow, NIS, SMB auth and radius 
authentication transparently and easily interchangeable, wherever 
the HTTP protocol allows it.

%prep

%setup -q -n %{mod_name}

cp %{SOURCE1} .
cp %{SOURCE2} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

chmod 644 INSTALL README doc/configure.html doc/faq.html doc/install.html

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c -o %{mod_name}.la -lpam
%{_bindir}/apxs -c mod_auth_sys_group.c -o mod_auth_sys_group.la -lpam

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_sysconfdir}/pam.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

cat > %{buildroot}%{_sysconfdir}/pam.d/httpd << EOF
#%PAM-1.0
auth       include      system-auth
account    include      system-auth
EOF

%files
%doc INSTALL README doc/configure.html doc/faq.html doc/install.html shadow.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/httpd
%attr(0755,root,root) %{_libdir}/apache-extramodules/mod_*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 169 |21cr|apache-mod_auth_radius-1.5.8-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.4
%define mod_name mod_auth_radius
%define mod_conf 14_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache Web server
Name:		apache-%{mod_name}
Version:	1.5.8
Release:	14
Group:		System/Servers
License:	Apache License
URL:		http://www.freeradius.org/mod_auth_radius/
Source0:	ftp://ftp.freeradius.org/pub/radius/mod_auth_radius-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_auth_radius-1.5.8-CAN2005-0108.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:  apache-devel >= %{apache_version}
Epoch:		2

%description
Make apache a RADIUS client for authentication and accounting requests.

%prep

%setup -q -n mod_auth_radius-%{version}
%patch0 -p0

cp mod_auth_radius-2.0.c mod_auth_radius.c
cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -c mod_auth_radius.c -Wl,-lresolv

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README htaccess httpd.conf index.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 170 |21cr|apache-mod_auth_remote-0.2-0.12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.4
%define mod_name mod_auth_remote
%define mod_conf 82_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache Web server
Name:		apache-%{mod_name}
Version:	0.2
Release:	0.12
Group:		System/Servers
License:	Apache License
URL:		http://saju.pillai.googlepages.com/mod_auth_remote
Source0:	http://github.com/saju/mod_auth_remote/raw/dd48860bdca8366df1d93cd5df66a128278b6104/src/mod_auth_remote.c
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:  apache-devel >= %{apache_version}
Epoch:		1

%description
This module is a very simple, lightweight method of setting up a single signon
system across multiple web-applicaitions hosted on different servers.

The actual authentication & authorization system is deployed on a single server
instead of each individual server. All other servers are built with
mod_auth_remote enabled. When a request comes in, mod_auth_remote obtains the
client username & password from the client via basic authentication scheme.

It then builds a HTTP header with authorization header built from the client's
userid:passwd. mod_auth_remote then makes a HEAD request to the authentication
server. On reciept of a 2XX response, the client is validated; for all other
responses the client is not validated.

%prep

%setup -q -T -c -n %{mod_name}-%{version}

cp %{SOURCE0} %{mod_name}.c
cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}


%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 171 |21cr|apache-mod_auth_shadow-2.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.4
%define mod_name mod_auth_shadow
%define mod_conf 83_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Shadow password authentication for the apache web server
Name:		apache-%{mod_name}
Version:	2.3
Release:	5
Group:		System/Servers
License:	GPL
URL:		http://mod-auth-shadow.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/mod-auth-shadow/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		%{mod_name}-2.1-register.diff
Patch1:		%{mod_name}-2.1-makefile.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:  apache-devel >= %{apache_version}
Epoch:		1

%description
mod_auth_shadow is an apache module which authenticates against the /etc/shadow
file. You may use this module with a mode 400 root:root /etc/shadow file, while
your web daemons are running under a non-privileged user.

%prep

%setup -q -n %{mod_name}_%{version}
%patch0 -p0
%patch1 -p0

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%serverbuild

export PATH="$PATH:/usr/sbin"
%make CFLAGS="$CFLAGS" -f makefile

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_sbindir}
install -m0755 validate %{buildroot}%{_sbindir}/

%files
%doc CHANGES INSTALL README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%attr(4755,root,root) %{_sbindir}/validate

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 172 |21cr|apache-mod_auth_token-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_auth_token
%define mod_conf A63_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Token based authentication to secure downloads and prevent deep-linking
Name:		apache-%{mod_name}
Version:	1.0.3
Release:	14
Group:		System/Servers
License:	GPL
URL:		http://www.synd.info/
Source0:	http://www.synd.info/downloads/releases/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.8
Requires(pre):	apache >= 2.2.8
Requires:	apache-conf >= 2.2.8
Requires:	apache >= 2.2.8
BuildRequires:  apache-devel >= 2.2.8
BuildRequires:	file
BuildRequires:	autoconf2.5
BuildRequires:	automake
BuildRequires:	libtool

%description
This module uses token based authentication to secure downloads and prevent
deep-linking. Have your PHP script or servlet generate the to authenticate the
download. Apache can then treat the download request like a normal file
transfer without having to pipe the file through a script in  order to add
authentication.

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type d -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
rm -f configure
libtoolize --copy --force; aclocal; autoconf; automake --add-missing --copy --foreign && autoconf

%configure --localstatedir=/var/lib \
    --with-apxs=%{_bindir}/apxs

%make

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc AUTHORS ChangeLog LICENSE README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 173 |21cr|apache-mod_authz_ldap-0.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_authz_ldap
%define mod_conf A31_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	LDAP authorization module for apache
Name:		apache-%{mod_name}
Version:	0.30
Release:	1
Epoch:		1
License:	GPL
Group:		System/Servers
Url:		http://authzldap.othello.ch/
#Source0:	http://authzldap.othello.ch/download/%{mod_name}-%{version}.tar.gz
#Re-pack source file because the original one fails on setup extract
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}
BuildRequires:	openssl-devel
BuildRequires:	openldap-devel
BuildRequires:	automake
BuildRequires:	autoconf2.5
Requires:	openldap
Requires:	apache-mod_ssl
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
The mod_authz_ldap package provides support for authenticating
users of the Apache HTTP server against an LDAP database.
mod_authz_ldap features the ability to authenticate users based on
the SSL client certificate presented, and also supports password
aging, and authentication based on role or by configured filters.

%files
%doc ldap/*.schema docs/*.{html,jpg} docs/*.{HOWTO,txt} docs/README
%doc NEWS AUTHORS ChangeLog COPYING INSTALL
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%attr(0755,root,root) %{_bindir}/cert*
%attr(0644,root,root) %{_mandir}/man1/cert*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
#export WANT_AUTOCONF_2_5=1
#rm -f configure
#libtoolize --copy --force; aclocal; autoconf --force; autoheader; automake --add-missing

export CPPFLAGS="`apr-1-config --includes` `apu-1-config --includes` -I%{_includedir}/openssl -DLDAP_DEPRECATED=1"

%configure --localstatedir=/var/lib \
    --with-apxs=%{_bindir}/apxs \
    --disable-static

pushd module
%{_bindir}/apxs -Wl,-export-symbols-regex -Wl,authz_ldap_module \
    -Wc,-DAUTHZ_LDAP_HAVE_SSL -c -o mod_authz_ldap.la *.c \
    -DAUTHZ_LDAP_HAVE_SSL -Wl,-lldap -Wl,-lcrypto
popd

%make -C tools

%install
make -C tools install DESTDIR=%{buildroot}
make -C docs install DESTDIR=%{buildroot}

# fix advx compat
rm -rf .libs; cp -rp module/.libs .

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 174 |21cr|apache-mod_authz_unixgroup-1.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.4.0
%define mod_name mod_authz_unixgroup
%define mod_conf A57_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache Unix Group Access Control Modules
Name:		apache-%{mod_name}
Version:	1.1.0
Release:	5
Group:		System/Servers
License:	Apache License
URL:		http://code.google.com/p/mod-auth-external/wiki/ModAuthzUnixGroup
Source0:	http://mod-auth-external.googlecode.com/files/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires:	pwauth
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:  apache-devel >= %{apache_version}

%description
Mod_Authz_Unixgroup is a unix group access control modules for Apache 2.1 and
later. If you are having users authenticate with real Unix login ID over the
net, using something like my mod_authnz_external / pwauth combination, and you
want to do access control based on unix group membership, then
mod_authz_unixgroup is exactly what you need.

%prep

%setup -q -n %{mod_name}-%{version}

chmod 644 CHANGES INSTALL README

rm -rf .libs

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}


%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc CHANGES INSTALL README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 175 |21cr|apache-mod_backtrace-0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Collects backtraces when a child process crashes
Name:		apache-mod_backtrace
Version:	0
Release:	20
Group:		System/Servers
License:	Apache License
Group:		System/Servers
URL:		http://www.apache.org
# http://www.apache.org/~trawick/mod_backtrace.c
Source0: 	mod_backtrace.c.bz2
Source1: 	test_char.h.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache-base >= 2.2.0
Requires(pre):	apache-modules >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache-base >= 2.2.0
Requires:	apache-modules >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0

%description
mod_backtrace is an experimental module for Apache httpd 2.x which
collects backtraces when a child process crashes. Currently it is
implemented only on Linux and FreeBSD, but other platforms could be
supported in the future. You should verify that it works reasonably
on your system before putting it in production.

It implements a fatal exception hook that will be called when a child
process crashes. In the exception hook it uses system library routines
to obtain information about the call stack, and it writes the call
stack to a log file or the web server error log. The backtrace is a
critical piece of information when determining the failing software
component that caused the crash.  Note that the backtrace written by
mod_backtrace may not have as much information as a debugger can
display from a core dump.

%prep

%setup -c -T

bzcat %{SOURCE0} > mod_backtrace.c
bzcat %{SOURCE1} > test_char.h

%build

%{_bindir}/apxs `apr-1-config --includes` -c mod_backtrace.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}/var/log/httpd

install -m0755 .libs/mod_backtrace.so %{buildroot}%{_libdir}/apache-extramodules/

# fix the mod_backtrace.conf
cat << EOF > %{buildroot}/%{_sysconfdir}/httpd/modules.d/ZZ90_mod_backtrace.conf
LoadModule backtrace_module		%{_libdir}/apache-extramodules/mod_backtrace.so

EnableExceptionHook On
BacktraceLog logs/backtrace_log
EOF

touch %{buildroot}/var/log/httpd/backtrace_log

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/ZZ90_mod_backtrace.conf
%attr(0755,root,root) %{_libdir}/apache-extramodules/mod_backtrace.so
%attr(0644,apache,apache) %ghost /var/log/httpd/backtrace_log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 176 |21cr|apache-mod_bash-0.1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_bash
%define mod_conf B45_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module which embeds bash
Name:		apache-%{mod_name}
Version:	0.1.1
Release: 	11
Group:		System/Servers
License:	Apache License
URL:		http://www.autistici.org/bakunin/mod_bash/
Source0:	http://www.autistici.org/bakunin/mod_bash/src/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_bash-build_fix.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	glib2-devel
BuildRequires:	pcre-devel
BuildRequires:	pkgconfig

%description
mod_bash on is an Apache module that embeds the bash interpreter within the
server.

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p0

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
export PATH="/sbin:/usr/sbin:/bin:/usr/bin"
export CPPFLAGS="`apr-1-config --cppflags`"
autoreconf -fis

%configure

%make

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 src/.libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc examples/*.bash README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 177 |21cr|apache-mod_cfg_ldap-1.2-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_cfg_ldap
%define mod_conf A15_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Keeping apache VirtualHost configuration in a LDAP directory
Name:		apache-%{mod_name}
Version:	1.2
Release:	20
Group:		System/Servers
License:	BSD
URL:		http://sourceforge.net/projects/modcfgldap/
Source0: 	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
BuildRequires:	openldap-devel
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
mod_cfg_ldap allows you to keep your virtual host configuration in
a LDAP directory and update it in nearly realtime.

%prep

%setup -q -n %{mod_name}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c -lldap_r

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc AUTHORS ChangeLog INSTALL README TODO mod_cfg_ldap.schema
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 178 |21cr|apache-mod_chm-0.3.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_chm
%define mod_conf A33_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache Web server
Name:		apache-%{mod_name}
Version:	0.3.1
Release:	19
Group:		System/Servers
License:	GPL
URL:		http://sourceforge.net/projects/modchm/
Source0: 	http://prdownloads.sourceforge.net/modchm/%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
BuildRequires:	perl
BuildRequires:	chmlib-devel
Epoch:		1

%description
mod_chm is an apache module that gives you possibility to explore
files in CHM format. mod_chm uses chmlib by Jed Wing to access CHM
files. This package also includes chmdump program that unpacks
content of CHM file.

%prep

%setup -q -n mod_chm

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c -I. -lchm

gcc %{optflags} chmdump/chmdump.c -o chmdump/chmdump -lchm

%install

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -m0755 chmdump/chmdump %{buildroot}%{_bindir}/

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc AUTHORS COPYING ChangeLog README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_bindir}/chmdump
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 179 |21cr|apache-mod_chroot-0.5-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_chroot
%define mod_conf A85_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Mod_chroot makes running Apache in a secure chroot environment easy
Name:		apache-%{mod_name}
Version:	0.5
Release:	17
Group:		System/Servers
License:	GPL
URL:		http://core.segfault.pl/~hobbit/mod_chroot/
Source0:	http://core.segfault.pl/~hobbit/mod_chroot/dist/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}.bz2
Patch0:		mod_chroot-0.5-no_version_component.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0

%description
mod_chroot makes running Apache in a secure chroot environment easy. You don't
need to create a special directory hierarchy containing /dev, /lib, /etc...

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p0

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type d -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done
    
# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc CAVEATS ChangeLog INSTALL LICENSE README README.Apache20
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 180 |21cr|apache-mod_coredumper-0.1.0-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_coredumper
%define mod_conf A35_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache Web server
Name:		apache-%{mod_name}
Version:	0.1.0
Release:	23
Epoch:		1
License:	Apache License
Group:		System/Servers
Url:		http://www.outoforder.cc/projects/apache/mod_coredumper/
Source0: 	http://www.outoforder.cc/downloads/mod_coredumper/%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}
Patch0:		mod_coredumper-0.1.0-modname.diff
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	coredumper-devel
Requires:	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires(pre):	apache-conf >= 2.2.0
# coredumper library fails to build on aarch64
ExclusiveArch:	%{ix86} x86_64

%description
mod_coredumper uses the CoreDumper library from Google to fetch a
GDB compatible core file from Apache, over HTTP.

%files
%doc LICENSE NOTICE README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p0

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

perl -pi -e "s|APR_FOPEN_READ|APR_READ|g" src/mod_coredumper.c

%build
%{_bindir}/apxs -lcoredumper -I%{_includedir}/google -c src/mod_coredumper.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 src/.libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 181 |21cr|apache-mod_defensible-1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.4.0
%define mod_name mod_defensible
%define mod_conf B25_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	An Apache 2.x module intended to block spammers using DNSBL
Name:		apache-%{mod_name}
Version:	1.5
Release:	5
Group:		System/Servers
License:	GPLv2+
URL:		http://julien.danjou.info/mod_defensible.html
Source0:	%{mod_name}-%{version}.tar.xz
Source1:	%{mod_conf}
Patch0:		mod_defensible-1.5-rosa-libfool.patch
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{apache_version}
Requires(pre):	apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:	apache-devel >= %{apache_version}
BuildRequires:	apr-devel
BuildRequires:	udns-devel
BuildRequires:	libtool

%description
mod_defensible is an Apache 2.x module intended to block spammers using DNSBL
servers. It will look at the client IP and check it in one or several DNSBL
servers and return a 403 Forbidden page to the client.

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p1

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
touch config.h.in
%setup_compile_flags
libtoolize --force --copy; aclocal; automake --add-missing --copy --foreign; autoheader; autoconf
export APXS2="%{_bindir}/apxs"

%configure --localstatedir=/var/lib \
    --with-udns

%make

#%{_bindir}/apxs -c -I%{_includedir}/mysql -L%{_libdir} -lmysqlclient mod_anticrack.c


%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc AUTHORS Changelog README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 182 |21cr|apache-mod_delay-0.9.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_delay
%define mod_conf A67_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Delay module for Apache2
Name:		apache-%{mod_name}
Version:	0.9.2
Release:	9
Group:		System/Servers
License:	Apache License
URL:		http://www.heute-morgen.de/modules/mod_delay/
Source0:	http://www.heute-morgen.de/modules/mod_delay/mod_delay.c
Source1:	http://www.heute-morgen.de/modules/mod_delay/mod_delay.h
Source2:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.0.54
Requires(pre):	apache >= 2.0.54
Requires:	apache-conf >= 2.0.54
Requires:	apache >= 2.0.54
BuildRequires:  apache-devel >= 2.0.54
BuildRequires:	file

%description
mod_delay is an output filter that does buffering until it is told to stop this
(by a note). It also enables the sending of 304 by delaying the call to
ap_meets_conditions until then. The module exports one optional functions and
has no configuration. It registers as an output filter named delay.

%package	devel
Summary:	Development API for the mod_delay apache module
Group:		Development/C

%description	devel
mod_delay is an output filter that does buffering until it is told to stop this
(by a note). It also enables the sending of 304 by delaying the call to
ap_meets_conditions until then. The module exports one optional functions and
has no configuration. It registers as an output filter named delay.

This package contains the development API for the mod_delay apache module.

%prep

%setup -q -c -T -n %{mod_name}

cp %{SOURCE0} .
cp %{SOURCE1} .
cp %{SOURCE2} .
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_includedir}

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 mod_delay.h %{buildroot}%{_includedir}/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

%files devel
%attr(0644,root,root) %{_includedir}/mod_delay.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 183 |21cr|apache-mod_diagnostics-0.1-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_diagnostics
%define mod_conf 94_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.1
Release:	22
Group:		System/Servers
License:	Apache License
URL:		http://apache.webthing.com/mod_diagnostics/
Source0:	http://apache.webthing.com/svn/apache/filters/mod_diagnostics.c
Source1:	http://apache.webthing.com/mod_diagnostics/index.html
Source2:	%{mod_conf}
Patch0:		mod_diagnostics-0.1-format_not_a_string_literal_and_no_format_arguments.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
mod_diagnostics is a very simple filter module. It can be inserted anywhere and
in any number of places in the Apache filter chain, and merely listens to and
reports traffic going through. It is  designed as a learning aid and a
debugging tool for Apache filter modules.

%prep

%setup -q -T -c -n %{mod_name}-%{version}
cp %{SOURCE0} .
cp %{SOURCE1} .
cp %{SOURCE2} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%patch0 -p0

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc index.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 184 |21cr|apache-mod_dns-1.02-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.6
%define mod_name mod_dns
%define mod_conf B24_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DNS Protocol module for Apache 2.x
Name:		apache-%{mod_name}
Version:	1.02
Release:	16
Group:		System/Servers
License:	Apache License
URL:		http://www.beamartyr.net/
Source0:	http://www.beamartyr.net/mod-dns-%{version}.tar.bz2
Source1:	%{mod_conf}
Patch0:		mod_dns-multiple-definition.patch
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{apache_version}
Requires(pre):	apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:	apache-devel >= %{apache_version}

%description
DNS Protocol module for Apache 2.x

%prep

%autosetup -p1 -n mod-dns

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -c mod_dns.c buckets.c errors.c protocol.c rr/*.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 185 |21cr|apache-mod_dnsbl_lookup-0.91-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_dnsbl_lookup
%define mod_conf A39_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	A DNSBL and RHSBL enabled module for apache 2.x
Name:		apache-%{mod_name}
Version:	0.91
Release:	17
Group:		System/Servers
License:	Apache License
URL:		https://svn.apache.org/repos/asf/httpd/mod_smtpd/trunk/mod_dnsbl_lookup/
Source0: 	http://www.sysdesign.ca/archive/%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.0.55
Requires(pre):	apache >= 2.0.55
Requires:	apache-conf >= 2.0.55
Requires:	apache >= 2.0.55
Requires:	apache-mod_smtpd
BuildRequires:	apache-devel >= 2.0.55
BuildRequires:	file
Epoch:		1

%description
mod_dnsbl_lookup aims to provide generic and flexible DNSBL and RHSBL 
use without limiting functionality.

%package	devel
Summary:	Development files for %{mod_name}
Group:		Development/C

%description	devel
Development files for %{mod_name}.

%prep

%setup -q -n %{mod_name}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c mod_dnsbl_lookup.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_includedir}

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -m0644 dnsbl_lookup.h %{buildroot}%{_includedir}/

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

%files devel
%{_includedir}/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 186 |21cr|apache-mod_dnssd-0.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_dnssd
%define mod_conf A47_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Mod_dnssd adds DNS-SD Zeroconf support to Apache 2.0 using Avahi
Name:		apache-%{mod_name}
Version:	0.6
Release:	12
License:	Apache License
Group:		System/Servers
Url:		http://0pointer.de/lennart/projects/mod_dnssd/
Source0:	http://0pointer.de/lennart/projects/mod_dnssd/mod_dnssd-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_dnssd-0.4-no_silly_checks_because_we_know_the_apache_version_is_ok.diff
BuildRequires:	autoconf2.5
BuildRequires:	automake1.8
BuildRequires:	file
BuildRequires:	lynx
BuildRequires:	apache-devel
BuildRequires:	avahi-common-devel >= 0.6.4
BuildRequires:	pkgconfig(avahi-client)
Requires:	apache
Requires:	apache-conf
Requires:	apache-mod_dav
Requires:	apache-mod_userdir
Requires(pre,postun):	rpm-helper
Requires(pre):	apache
Requires(pre):	apache-conf

%description
mod_dnssd is an Apache module which adds Zeroconf support via DNS-SD using
Avahi.

%files
%doc LICENSE README doc/README.html doc/style.css
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p0

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
rm -f configure
libtoolize --force --copy; aclocal-1.8 ; autoheader; automake-1.8 --add-missing --copy --foreign; autoconf

%configure --localstatedir=/var/lib
%make

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 src/.libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 187 |21cr|apache-mod_domaintree-1.6-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_domaintree
%define mod_conf A60_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Mass virtual hosting module mapping host names to a directory tree
Name:		apache-%{mod_name}
Version:	1.6
Release:	17
Group:		System/Servers
License:	Apache License
URL:		http://dev.iworks.at/mod_domaintree/
Source0:	http://dev.iworks.at/mod_domaintree/%{mod_name}-%{version}.tgz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.4
Requires(pre):	apache >= 2.2.4
Requires:	apache-conf >= 2.2.4
Requires:	apache >= 2.2.4
BuildRequires:  apache-devel >= 2.2.4
BuildRequires:	file

%description
Mass virtual hosting module mapping host names to a directory tree.

%prep

%setup -q -n %{mod_name}

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type d -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c mod_domaintree.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}/var/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}/var/www/html/addon-modules/%{name}-%{version}

%files
%doc ChangeLog LICENSE.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
/var/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 188 |21cr|apache-mod_encoding-0.0.20040616-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define snapshot %(echo %{version} |rev |cut -d. -f1 |rev)
%define mod_name mod_encoding
%define mod_conf 44_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-mod_encoding
Version:	0.0.20040616
Release:	13
Group:		System/Servers
License:	GPL
URL:		http://webdav.todo.gr.jp/
Source0: 	mod_encoding-0.0.20021209.tar.bz2
Source1:	%{mod_conf}
Source2:	http://webdav.todo.gr.jp/download/experimental/mod_encoding.c.apache2.%{snapshot}
Patch0:		mod_encoding.c.apache2.20040616-apache220.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
Mod Encoding is an Apache module for non-ascii filename interoperability

This module improves non-ascii filename interoperability of apache
(and mod_dav).

%prep

%setup -q -n mod_encoding-20021209

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

cp %{SOURCE2} %{mod_name}.c

%patch0 -p0 -b .apache220

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
cd lib
[ -r iconv.h ] && rm -f iconv.h
rm -f configure
autoreconf -fis
%configure --enable-shared=no
%make CFLAGS="%{optflags} -fPIC"
ln -s -f  iconv.h.replace iconv.h
cd -

%{_bindir}/apxs -c -I$PWD/lib -L$PWD/lib/ -liconv_hook %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/

%files
%doc AUTHORS ChangeLog README COPYING
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 189 |21cr|apache-mod_evasive-1.10.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_evasive
%define mod_conf A11_%{mod_name}.conf

Summary:	Evasive Maneuvers Module for the apache web server
Name:		apache-%{mod_name}
Version:	1.10.1
Release:	18
Group:		System/Servers
License:	Apache License
URL:		http://www.zdziarski.com/projects/mod_evasive/
Source0: 	http://www.zdziarski.com/projects/mod_evasive/%{mod_name}_%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_evasive-small_fix.diff
Requires:	mailx
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
A module for apache giving Apache the ability to fend off
request-based DoS attacks conserving your system resources and
bandwidth. This new tool maintains an internal table of IP
addresses and URLs and will deny repeated requests for the same
URL from the same IP address, blacklisting the address for
10-seconds per extraneous request. Obviously, this module will
not fend off attacks consuming all available bandwidth or more
resources than are available to send 403's, but is very successful
in typical flood attacks or cgi flood attacks. 

%prep

%setup -q -n mod_evasive
%patch0 -p0

rm -rf .libs
rm -f %{mod_name}.c

cp %{SOURCE1} %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
# create apache httpd-2.4 version and compile it
sed 's/connection->remote_ip/connection->client_ip/' \
  < mod_evasive20.c > mod_evasive.c
%{_bindir}/apxs -Wc,"%{optflags}" -c mod_evasive.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}


%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_name}*.so
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 190 |21cr|apache-mod_fakessl-0.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_fakessl
%define mod_conf A90_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	A apache 2.x module for setting an https flag when you are using reverse proxy
Name:		apache-%{mod_name}
Version:	0.4
Release:	11
Group:		System/Servers
License:	Apache License
URL:		http://websupport.sk/~stanojr/projects/mod_fakessl/
Source0:	http://websupport.sk/~stanojr/projects/mod_fakessl/mod_fakessl-%{version}.tar.gz
Source1:	README.%{mod_name}
Source2:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
Requires:	apache-mod_proxy >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
A apache 2.x module for setting an https flag when you are using reverse proxy

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} .
cp %{SOURCE2} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README.%{mod_name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 191 |21cr|apache-mod_fastcgi-2.4.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.6
%define mod_name mod_fastcgi
%define pre SNAP-0910052141
%define mod_conf 92_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache Web server
Name:		apache-%{mod_name}
Version:	2.4.7
Release:	7
Group:		System/Servers
License:	BSD-style
URL:		http://www.fastcgi.com/
Source0:	http://www.fastcgi.com/dist/%{mod_name}-%{pre}.tar.gz
Source1:	%{mod_conf}
Patch0:		byte-compile-against-apache24.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:	apache-devel >= %{apache_version}

%description
mod_fastcgi provides FastCGI support for the apache web server. FastCGI is a
language independent, scalable, open  extension to CGI that provides high
performance and persistence  without the limitations of server specific APIs.

%prep

%setup -q -n %{mod_name}-%{pre}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}
# get rid of the "cannot remove /var/run/fastcgi/dynamic" error at boot
perl -pi -e "s|^#define DEFAULT_SOCK_DIR  DEFAULT_REL_RUNTIMEDIR .*|#define DEFAULT_SOCK_DIR \"/var/lib/mod_fastcgi\"|g" mod_fastcgi.h
%patch0 -p0

%build
#cp Makefile.tmpl Makefile
#make top_dir=/usr/lib64/apache
#%{_bindir}/apxs -c mod_fastcgi.c f*.c
%{_bindir}/apxs -o mod_fastcgi.so -c mod_fastcgi.c fcgi*.c

%install

#make install
install -d %{buildroot}/var/www/fcgi-bin

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}/var/lib/mod_fastcgi/dynamic

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc docs/* CHANGES
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%dir /var/www/fcgi-bin
%attr(0755,apache,apache) %dir /var/lib/mod_fastcgi
%attr(0755,apache,apache) %dir /var/lib/mod_fastcgi/dynamic

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 192 |21cr|apache-mod_form-0.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_form
%define mod_conf A71_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.1
Release:	21
Group:		System/Servers
License:	GPL
URL:		http://apache.webthing.com/mod_form/
# there is no official tar ball
# http://apache.webthing.com/svn/apache/forms/mod_form.c
Source0:	http://apache.webthing.com/svn/apache/filters/xmlns/mod_form.c
Source1:	http://apache.webthing.com/svn/apache/filters/xmlns/mod_form.h
Source2:	README.mod_form
Source3:	%{mod_conf}
# preserve r->args (apr_strtok is
# destructive in this regard). Makes mod_autoindex work again in
# conjunction with directories where FormGET is enabled.
Patch0:         mod_form.c.preserve_args.patch
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
mod_form is a utility to decode data submitted from Web forms. It deals with
both GET and POST methods where the data are encoded using the default content
type application/x-www-form-urlencoded. It does not decode multipart/form-data
(file upload) forms: for those you should use mod_upload.

%package	devel
Summary:	Development API for the mod_form apache module
Group:		Development/C

%description	devel
mod_form is a utility to decode data submitted from Web forms. It deals with
both GET and POST methods where the data are encoded using the default content
type application/x-www-form-urlencoded. It does not decode multipart/form-data
(file upload) forms: for those you should use mod_upload.

This package contains the development API for the mod_form apache module.

%prep

%setup -q -c -T -n %{mod_name}-%{version}

cp %{SOURCE0} %{mod_name}.c
cp %{SOURCE1} %{mod_name}.h
%patch0
cp %{SOURCE2} README
cp %{SOURCE3} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_includedir}

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 mod_form.h %{buildroot}%{_includedir}/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

%files devel
%attr(0644,root,root) %{_includedir}/mod_form.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 193 |21cr|apache-mod_gfx-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_gfx
%define mod_conf B52_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Performs image operations on the fly
Name:		apache-%{mod_name}
Version:	0.1
Release: 	11
Group:		System/Servers
License:	GPLv3
URL:		http://nauticaltech.com/software/mod_gfx/
Source0:	http://nauticaltech.com/software/mod_gfx/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	libgd-devel

%description
mod_gfx is a configurable Apache module that uses libgd to perform image
operations on the fly. Some of the supported image operations are: resize,
resample, watermark, and crop. A couple of its special features are origin
selection via URI regex and round-robin over a list of hosts.

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -Iinclude -c module/%{mod_name}.c -lgd

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 module/.libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc Benchmark README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 194 |21cr|apache-mod_gzip_disk-0.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_gzip_disk
%define mod_conf B29_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Serves pre-compressed HTML files to avoid compression on the fly
Name:		apache-%{mod_name}
Version:	0.5
Release:	10
Group:		System/Servers
License:	Apache License
URL:		http://www.s5h.net/code/mod-gzip/
Source0:	http://www.s5h.net/code/mod-gzip/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:  apache-devel >= 2.2.0

%description
mod-gzip-disk is a module for serving pre-compressed HTML files to clients to
avoid compression on the fly.

%prep

%setup -q -n %{mod_name}

cp %{SOURCE1} .
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -c %{mod_name}.c -lz

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 195 |21cr|apache-mod_icpquery-2.0.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_icpquery
%define mod_conf B50_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Extend Apache's mod_rewrite by internal mapping functions using ICP
Name:		apache-%{mod_name}
Version:	2.0.2
Release: 	11
Group:		System/Servers
License:	Apache License
URL:		http://code.google.com/p/modicpquery
Source0:	http://modicpquery.googlecode.com/files/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0

%description
Apache mod_rewrite provides ways to map values to attributes using the
directive RewriteMap. RewriteMap can use flat mappings files, hashed
mapping files, internal functions and external rewriting programs.
One not well known feature of mod_rewrite is to extend this functionality
with internal functions, which can be defined in a seperate Apache module.
This allows to do some complex and time consuming mappings, since 
mapping requests do not have to be passed through one single pipe, as
in the case of an external rewrite program.

mod_icpquery is a package which can be used to find objects on caching
servers by sending an UDP query. This query conforms to RFC2186 also
known as ICP and can be handeld by various HTTP-caching servers such
as squid. A cache-server handling ICP should reply to an ICP-query
with an ICP-response indicating if it holds the desired object in its
cache or not. mod_icpquery is able to send UDP datagrams to a list of unicast
and/or multicast IP-addresses.

%prep
%setup -q -n %{mod_name}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%configure
%make

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 196 |21cr|apache-mod_injection-0.3.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_injection
%define mod_conf 23_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.3.1
Release:	19
Group:		System/Servers
License:	BSD
URL:		http://pmade.org/pjones/software/mod_injection/download.html
Source0: 	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Patch0:		%{mod_name}-0.3.0-register.patch
Patch1:		mod_injection-0.3.1-apache220.diff
Patch2:		mod_injection-0.3.1-manual.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
BuildRequires:	openjade
BuildRequires:	docbook-style-dsssl
Epoch:		1

%description
mod_injection is an Apache 2.0.X filter module. It allows you to
inject text in the HTTP response after a HTML tag or after any
given text string. The main intention of this module is to add a
banner to several HTML pages on the fly.

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p1
%patch1 -p0
%patch2 -p0

# fix strange permissions
find docs/manual/ -name "*.xml" | xargs chmod 644

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
cp src/mod_injection.c .
%{_bindir}/apxs -c mod_injection.c

pushd docs/manual
    make html
popd    

mv docs/manual/one-html/manual.html index.html

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

# make the example work... (ugly, but it works...)
NEW_URL=%{_docdir}/%{name}-%{version}/
perl -pi -e "s|_REPLACE_ME_|$NEW_URL|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README INSTALL docs/CREDITS index.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 197 |21cr|apache-mod_jsmin-0-0.r7.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap r7

#Module-Specific definitions
%define mod_name mod_jsmin
%define mod_conf B43_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module which 'minifies' javascript
Name:		apache-%{mod_name}
Version:	0
Release: 	0.%{snap}.8
Group:		System/Servers
License:	BSD
URL:		http://code.google.com/p/modjsmin/
Source0:	mod_jsmin.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0

%description
This is a port of Douglas Crockford's JSMin program so that it can be run as an
apache 2.x filter.

%prep
%setup -q -n %{mod_name}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

head -27 %{mod_name}.c > LICENSE

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc LICENSE
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 198 |21cr|apache-mod_layout-5.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.6
%define mod_name mod_layout
%define mod_conf 15_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Add custom header and/or footers for apache
Name:		apache-%{mod_name}
Version:	5.1
Release:	17
Group:		System/Servers
License:	BSD-style
URL:		http://software.tangent.org/
Source0:	http://download.tangent.org/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:  apache-devel >= %{apache_version}

%description
Mod_Layout creates a framework for doing design. Whether you need a simple
copyright or ad banner attached to every page, or need to have something more
challenging such a custom look and feel for a site that employs an array of
technologies (Java Servlets, mod_perl, PHP, CGI's, static HTML, etc...),
Mod_Layout creates a framework for such an environment. By allowing you to
cache static components and build sites in pieces, it gives you the tools for
creating large custom portal sites. 

%prep
%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -c mod_layout.c utility.c layout.c

cat > index.html <<EOF

<p>No documentation exists yet for this module, go to 
<a href="http://software.tangent.org/">tangent.org</a> 
for more information</p>

<p>Meanwhile take a look at the %{_sysconfdir}/httpd/modules.d/%{mod_conf} file</p>

<p>Also please take the time to check out the 
<a href=http://nux.se/apache/>modules for apache</a> 
repository for Mandriva Linux.</p>

<-- replace_me -->

EOF

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name} %{buildroot}%{_var}/www/html/addon-modules/%{name}

# make the example work... (ugly, but it works...)

NEW_URL=/addon-modules/%{name}/index.html
perl -pi -e "s|_REPLACE_ME_|$NEW_URL|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc ChangeLog INSTALL README index.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 199 |21cr|apache-mod_ldap_userdir-1.1.19-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_ldap_userdir
%define mod_conf A37_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Look up user home directories (for /~user URLs) from an LDAP directory
Name:		apache-%{mod_name}
Version:	1.1.19
Release:	8
Group:		System/Servers
License:	GPL
URL:		http://horde.net/~jwm/software/mod_ldap_userdir/
Source0:	http://horde.net/~jwm/software/mod_ldap_userdir/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
BuildRequires:	openssl-devel
BuildRequires:	openldap-devel
Requires:	openldap
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache-mpm-prefork >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache-mpm-prefork >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Conflicts:	apache-mod_userdir
Epoch:		1

%description
mod_ldap_userdir is a module that enables the Apache web server to look up user
home directories (for /~user URLs) from an LDAP directory.

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%configure --localstatedir=/var/lib \
    --with-apxs=%{_bindir}/apxs \
    --with-tls

#%%make

%{_bindir}/apxs -DTLS=1 -L%{_libdir} -lldap -llber -c mod_ldap_userdir.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc DIRECTIVES README user-ldif
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 200 |21cr|apache-mod_limitipconn-0.24-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_limitipconn
%define mod_conf 85_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.24
Release:	5
Group:		System/Servers
License:	Apache License
URL:		http://dominia.org/djao/limitipconn.html
Source0:	http://dominia.org/djao/limit/%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
%{mod_name} is a DSO module for the apache web server to
limit the maximum number of simultaneous connections per IP
address. Allows inclusion and exclusion of files based on MIME
type.

%prep
%setup -q -n %{mod_name}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}
mv README mod_limitipconn-README.txt

%build
%{_bindir}/apxs  -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name} %{buildroot}%{_var}/www/html/addon-modules/%{name}

# make the example work... (ugly, but it works...)
NEW_URL=/addon-modules/%{name}
perl -pi -e "s|_REPLACE_ME_|$NEW_URL|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc ChangeLog INSTALL mod_limitipconn-README.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 201 |21cr|apache-mod_line_edit-1.0.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_line_edit
%define mod_conf A95_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	A general-purpose output filter for text documents for Apache
Name:		apache-%{mod_name}
Version:	1.0.0
Release:	15
Group:		System/Servers
License:	GPL
URL:		http://apache.webthing.com/mod_line_edit/
Source0:	http://apache.webthing.com/mod_line_edit/mod_line_edit.c
Source1:	%{mod_conf}
Source2:	http://apache.webthing.com/mod_line_edit/index.html
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
mod_line_edit is a general-purpose filter for text documents. It operates as a
simple on-the-fly line editor, applying search-and-replace rules defined in a
configuration or .htaccess file.

Unlike most of Webing's filter modules, it is not markup-aware, so it is not an
optimal choice for processing HTML or XML, though it may nevertheless be used
with caution (and may be far better than semi-markup-aware options such as
mod_layout).

For non-markup document types such as plain text, and non-markup Web documents
such as Javascript or Stylesheets, it is the best available option in the
absence of a filter that parses any relevant document structures.

mod_line_edit is written for performance and reliability, and should scale
without problems as document size grows. mod_line_edit is fully compatible with
Apache 2.0 and 2.2, and all operating systems and MPMs.

%prep

%setup -q -T -c -n %{mod_name}-%{version}
cp %{SOURCE0} %{mod_name}.c
cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}
cp %{SOURCE2} README.html

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

head -19 %{mod_name}.c > LICENSE

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc LICENSE README.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 202 |21cr|apache-mod_load_average-0.1.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_load_average
%define mod_conf A52_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.1.0
Release:	19
Group:		System/Servers
License:	Apache License
URL:		http://svn.force-elite.com/mod_load_average/trunk/src/
# http://issues.apache.org/bugzilla/show_bug.cgi?id=29122
Source0: 	http://svn.force-elite.com/svn/mod_load_average/trunk/src/mod_load_average.c.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0

%description
mod_load_average uses the getloadavg function to determine if the
request should be serviced. The module has two operating Modes.

First, it has an absolute max load average, if this is reached,
all requests will be rejected with a 503.

The 2nd mode uses the handler type to determine the maximum load
under which they will be served. This enables you for example to
disable PHP or CGI under high loads, but still serve images and
plain html.

%prep

%setup -q -c -T -n %{mod_name}-%{version}
bzcat %{SOURCE0} > %{mod_name}.c

%build

%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 203 |21cr|apache-mod_log_data-0.0.3-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_log_data
%define mod_conf A13_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.0.3
Release:	19
Group:		System/Servers
License:	Apache License
URL:		http://loghttp.sourceforge.net/
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Source2:	README.html.bz2
Patch0:		mod_log_data-apr1.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
Mod_log_data is a module for apache, dumping the content for
all HTTP/HTTPS request made on the webserver. It can be used for
debugging or for security aim. It's done with two filter, easy to
configure in httpd.conf.

%prep

%setup -q -n %{mod_name}
%patch0 -p0

bzcat %{SOURCE2} > README.html

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc README.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 204 |21cr|apache-mod_log_rotate-1.00-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_log_rotate
%define mod_conf A83_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Automatic in-process rotation of transfer log
Name:		apache-%{mod_name}
Version:	1.00
Release:	17
Group:		System/Servers
License:	Apache License
URL:		http://www.hexten.net/mod_log_rotate/
Source0:	http://www.hexten.net/assets/apache2/mod_log_rotate.c
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0

%description
Adds RotateLogs and supporting directives that allow logs to be rotated by the
server without having to pipe them through rotatelogs.

%prep

%setup -q -c -T -n %{mod_name}-%{version}

cp %{SOURCE0} %{mod_name}.c
cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 205 |21cr|apache-mod_memcached-0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.8
%define mod_name mod_memcached
%define mod_conf B30_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache Web server
Name:		apache-%{mod_name}
Version:	0.3
Release:	14
Group:		System/Servers
License:	Apache License
URL:		http://tangent.org/
Source0:	http://download.tangent.org/mod_memcached-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:  apache-devel >= %{apache_version}
BuildRequires:  libmemcached-devel

%description
This is an Apache module that provides GET, PUT, and DELETE services to
Memcached clusters. Using this you can serve content directly from memcached
through Apache to clients.

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
echo "#define VERSION \"%{version}\"" > version.h

%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc ChangeLog README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 206 |21cr|apache-mod_mime_xattr-0.4-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_mime_xattr
%define mod_conf A96_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Lets you use file system extended attributes data for MIME type detection
Name:		apache-%{mod_name}
Version:	0.4
Release:	20
License:	Apache License
Group:		System/Servers
Url:		http://0pointer.de/lennart/projects/mod_mime_xattr/
Source0:	http://0pointer.de/lennart/projects/mod_mime_xattr/mod_mime_xattr-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_mime_xattr-0.4-no_silly_checks_because_we_know_the_apache_version_is_ok.diff
Patch1:		mod_mime_xattr-0.4-sys-xattr.patch
BuildRequires:	autoconf2.5
BuildRequires:	automake1.8
BuildRequires:	file
BuildRequires:	lynx
BuildRequires:	apache-devel
BuildRequires:	attr-devel
Requires:	apache
Requires:	apache-conf
Requires:	apache-mod_dav
Requires:	apache-mod_userdir
Requires(pre,postun):	rpm-helper
Requires(pre):	apache
Requires(pre):	apache-conf

%description
mod_mime_xattr is a module for the Apache HTTPD 2.2 which may be used to set a
range of MIME properties of files served from a document tree with extended
attributes (EAs) as supported by the underlying file system. The current
version of mod_mime_xattr has support for Linux style EAs which are supported
by Linux 2.4 with the ACL/EA patches applied and vanilla Linux 2.6. The
following attributes may be used:

 * user.mime_type: set the MIME type of a file explicitly. This
   attribute is compatible with the [17]shared MIME database
   specification as published by [18]freedesktop.org
 * user.charset: set the charset used in a file
 * user.mime_encoding: set the MIME encoding of a file (e.g. gzip)
 * user.apache_handler: set the apache handler of a file explicitly

%files
%doc LICENSE README doc/README.html doc/style.css
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p0
%patch1 -p1

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
rm -f configure
libtoolize --force --copy; aclocal-1.8 ; autoheader; automake-1.8 --add-missing --copy --foreign; autoconf

%configure --localstatedir=/var/lib
%make

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 src/.libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 207 |21cr|apache-mod_musicindex-1.4.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.4.0
%define mod_name mod_musicindex
%define mod_conf B31_%{mod_name}.conf
%define mod_so %{mod_name}.so

# Fails to build with libmp4v2 5.0.1, disable for now
%bcond_with mp4v2

Summary:	DSO module for the apache Web server
Name:		apache-%{mod_name}
Version:	1.4.1
Release:	10
License:	LGPLv2.1
Group:		System/Servers
Url:		http://hacks.slashdirt.org/musicindex/
Source0:	http://hacks.slashdirt.org/musicindex/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		mod_musicindex-libdir.diff
BuildRequires:	apache-devel >= %{apache_version}
BuildRequires:	id3tag-devel
%if %{with mp4v2}
BuildRequires:	libmp4v2-devel
%endif
BuildRequires:	mad-devel
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(vorbis)
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
Requires(pre):	apache-conf >= %{apache_version}
Requires(pre):	apache >= %{apache_version}

%description
mod_musicindex is an Apache module aimed at being a C alternative to the Perl
module Apache::MP3. It allows nice displaying of directories containing MP3,
Ogg Vorbis, FLAC, or MP4/AAC files, including sorting them on various fields,
streaming/downloading them, constructing playlists, and searching. It also
provides features such as RSS and Podcast feeds, multiple CSS support, and
archive downloads.

%files -f %{mod_name}.lang
%doc AUTHORS COPYING ChangeLog README README.Handlers
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_datadir}/%{mod_name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p0

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
rm -f configure
autoreconf -fi

%configure --localstatedir=/var/lib \
    --libdir=%{_libdir}

%make

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

%makeinstall_std

mv %{buildroot}%{_libdir}/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/

install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%find_lang %{mod_name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 208 |21cr|apache-mod_mya-3.0.1-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_mya
%define mod_conf 80_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	3.0.1
Release:	27
Group:		System/Servers
License:	GPL
URL:		http://www.synthemesc.com/mod_mya/
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	mysql-devel
BuildRequires:	file

%description
mod_mya is an Apache Web Server module allowing basic
authentication data to be stored in a MySQL database thus
deprecating file based configuration.
 
%prep

%setup -q -n %{mod_name}-%{version}
perl -pi -e "s/my_connect/mya_connect/g;" *.c

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -DHAVE_STDDEF_H -I%{_includedir}/mysql -L%{_libdir} -Wl,-lmysqlclient -c mod_mya.c
    
%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc AUTHORS README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 209 |21cr|apache-mod_nss-1.0.18-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_bindir}/apxs}}
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/modules.d}}
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/modules.d}}
%{!?_httpd_mmn: %{expand: %%global _httpd_mmn %%(cat %{_includedir}/httpd/.mmn 2>/dev/null || echo 0-0)}}

Name:		apache-mod_nss
Version:	1.0.18
Release:	5
Summary:	SSL/TLS module for the Apache HTTP server
Group:		System/Servers
License:	ASL 2.0
URL:		https://pagure.io/mod_nss/
Source:		https://releases.pagure.org/mod_nss/mod_nss-%{version}.tar.gz
BuildRequires:	nspr-devel
BuildRequires:	nss-devel
BuildRequires:	apache
BuildRequires:	apache-devel
BuildRequires:	flex
BuildRequires:	bison
# Needed for make check
BuildRequires:	openssl
BuildRequires:	python3-nose
BuildRequires:	python3-requests >= 2.7.0
BuildRequires:	python3-OpenSSL
BuildRequires:	nss-tools
Requires(pre): user(apache)
Requires(post): apache, nss-tools
Requires: nss%{?_isa} >= 3.14.0.0

# Change configuration to not conflict with mod_ssl
Patch1: mod_nss-conf.patch
# Generate a password-less NSS database
Patch2: mod_nss-gencert.patch
# Fixes for unit tests against openssl 1.1.1a
Patch4: 0001-Fixes-to-unit-tests-so-they-pass-with-openssl-1.1.1a.patch
Patch5: 0002-Port-to-using-python-3-for-use-in-the-test-framework.patch
Patch6: 0003-Move-the-pool-and-hash-tables-for-SNI-into-mod_nss.c.patch

%description
The mod_nss module provides strong cryptography for the Apache Web
server via the Secure Sockets Layer (SSL) and Transport Layer
Security (TLS) protocols using the Network Security Services (NSS)
security library.

#-------------------------------------------------------------------------
%prep
%setup -q -n mod_nss-%{version}
%patch1 -p1 -b .conf
%patch2 -p1 -b .gencert
%patch4 -p1
%patch5 -p1
%patch6 -p1

# Touch expression parser sources to prevent regenerating it
touch nss_expr_*.[chyl]

%build

CFLAGS="$RPM_OPT_FLAGS"
APXS=%{_httpd_apxs}

export CFLAGS APXS

NSPR_INCLUDE_DIR=`/usr/bin/pkg-config --variable=includedir nspr`
NSPR_LIB_DIR=`/usr/bin/pkg-config --variable=libdir nspr`

NSS_INCLUDE_DIR=`/usr/bin/pkg-config --variable=includedir nss`
NSS_LIB_DIR=`/usr/bin/pkg-config --variable=libdir nss`

NSS_BIN=`/usr/bin/pkg-config --variable=exec_prefix nss`

autoreconf -i -f
%configure \
    --with-nss-lib=$NSS_LIB_DIR \
    --with-nss-inc=$NSS_INCLUDE_DIR \
    --with-nspr-lib=$NSPR_LIB_DIR \
    --with-nspr-inc=$NSPR_INCLUDE_DIR \
    --with-apr-config --enable-ecc

make %{?_smp_mflags} all

%install
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf
mkdir -p %{buildroot}%{_httpd_confdir}
mkdir -p %{buildroot}%{_libdir}/apache
mkdir -p %{buildroot}%{_libexecdir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/pki/nssdb
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_logdir}/httpd/mod_nss

#rename @LIBDIR@ in patched file
sed -i 's|@LIBDIR@|%{_libdir}|' nss.conf

%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
# httpd >= 2.4.x
mkdir -p %{buildroot}%{_httpd_modconfdir}
sed -n /^LoadModule/p nss.conf > 10-nss.conf
sed -i /^LoadModule/d nss.conf
install -m 644 10-nss.conf %{buildroot}%{_httpd_modconfdir}
%endif

install -m 644 gencert.8 %{buildroot}%{_mandir}/man8/
install -m 644 nss_pcache.8 %{buildroot}%{_mandir}/man8/

install -m 644 nss.conf %{buildroot}%{_httpd_confdir}

install -m 755 .libs/libmodnss.so %{buildroot}%{_libdir}/apache/mod_nss.so
install -m 755 nss_pcache %{buildroot}%{_libexecdir}/
# Provide a compatibility link to prevent disruption of customized deployments.
#
#     NOTE:  This link may be deprecated in a future release of 'mod_nss'.
#
ln -s %{_libexecdir}/nss_pcache %{buildroot}%{_sbindir}/nss_pcache
install -m 755 gencert %{buildroot}%{_sbindir}/
#touch %{buildroot}%{_sysconfdir}/pki/nssdb/secmod.db
#touch %{buildroot}%{_sysconfdir}/pki/nssdb/cert8.db
#touch %{buildroot}%{_sysconfdir}/pki/nssdb/key3.db
#touch %{buildroot}%{_sysconfdir}/pki/nssdb/install.log

perl -pi -e "s:$NSS_LIB_DIR:$NSS_BIN:" %{buildroot}%{_sbindir}/gencert


%check
make check

%post
umask 077

if [ "$1" -eq 1 ] ; then
    if [ ! -e %{_sysconfdir}/pki/nssdb/key3.db -a ! -e %{_sysconfdir}/pki/nssdb/key4.db ]; then
        %{_sbindir}/gencert %{_sysconfdir}/pki/nssdb > %{_sysconfdir}/pki/nssdb/install.log 2>&1
        echo ""
        echo "mod_nss certificate database generated."
        echo ""
        /bin/chgrp apache %{_sysconfdir}/pki/nssdb/*.db
        /bin/chmod g+r %{_sysconfdir}/pki/nssdb/*.db

    fi

    # We used to fix existing permissions and ownership here but it isn't needed anymore
    # since mod_nss will report permission/ownership issues on startup.
fi

%files
%doc README LICENSE docs/mod_nss.html
%{_mandir}/man8/*
%config(noreplace) %{_httpd_confdir}/nss.conf
%if "%{_httpd_modconfdir}" != "%{_httpd_confdir}"
%config(noreplace) %{_httpd_modconfdir}/10-nss.conf
%endif
%{_libdir}/apache/mod_nss.so
%dir %{_sysconfdir}/pki/nssdb/
%dir %{_logdir}/httpd/mod_nss
%ghost %attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/pki/nssdb/secmod.db
%ghost %attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/pki/nssdb/cert8.db
%ghost %attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/pki/nssdb/key3.db
%ghost %config(noreplace) %{_sysconfdir}/pki/nssdb/install.log
%{_libexecdir}/nss_pcache
%{_sbindir}/nss_pcache
%{_sbindir}/gencert

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 210 |21cr|apache-mod_proxy_xml-0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_proxy_xml
%define mod_conf A69_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.1
Release:	19
Group:		System/Servers
License:	GPL
URL:		http://apache.webthing.com/mod_proxy_xml/
# there is no official tar ball
# http://apache.webthing.com/svn/apache/filters/xmlns/
Source0:	http://apache.webthing.com/svn/apache/filters/xmlns/mod_proxy_xml.c
Source1:	README.mod_proxy_xml
Source2:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires(pre):	apache-mod_proxy >= 2.2.0
Requires(pre):	apache-mod_xmlns
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
Requires:	apache-mod_proxy >= 2.2.0
Requires:	apache-mod_xmlns
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	apache-mod_xmlns-devel
BuildRequires:	file

%description
mod_proxy_xml is an output filter to rewrite links in a proxy situation, to
ensure that links work for users outside the proxy. It serves the same purpose
as Apache's ProxyPassReverse directive does for HTTP headers, and is an
essential component of a reverse proxy.

%prep

%setup -q -c -T -n %{mod_name}-%{version}

cp %{SOURCE0} mod_proxy_xml.c
cp %{SOURCE1} README
cp %{SOURCE2} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 211 |21cr|apache-mod_put-2.0.9-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_put
%define mod_conf 96_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module that implement DELETE and PUT http methods
Name:		apache-%{mod_name}
Version:	2.0.9
Release:	13
Group:		System/Servers
License:	Apache License
URL:		http://www.gknw.net/development/apache/
Source0: 	http://www.gknw.net/development/apache/httpd-2.0/unix/modules/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
This small module implements the HTTP/1.1 PUT and DELETE methods
for apache. Please notice that it can be a big security 
hole to activate them without securing the web server.

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# fix strange perms
chmod 644 *

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/

%files
%doc mod_put.html my_cfg.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 212 |21cr|apache-mod_random-2.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_random
%define mod_conf 17_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	2.1
Release:	15
Group:		System/Servers
License:	BSD
URL:		http://www.tangent.org/
Source0: 	http://download.tangent.org/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
Mod Random provides three services. The first service is redirection: you feed
it URLs and it will redirect to random URLs that you have loaded. The second is
providing environment variables that can be used for implementing ad banner
systems. The third is displaying entire pages of random HTML, using its own
custom handlers in combination with with random ads and quotes that you feed
into the system. It can also supply text via an environment variable called
RANDOM_QUOTE, RANDOM_AD, or by environment variables that you specify. This can
be used to implement fortune cookies, message of the day, entire random pages,
or banner ads.

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c mod_random.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc ChangeLog README faq.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 213 |21cr|apache-mod_replace-0.1.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_replace
%define mod_conf A45_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Replace text strings based on regular expressions
Name:		apache-%{mod_name}
Version:	0.1.0
Release:	18
Group:		System/Servers
License:	BSD
URL:		http://mod-replace.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/mod-replace/%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Source2:	docs.html.bz2
Source3:	faq.html.bz2
# http://sourceforge.net/tracker/index.php?func=detail&aid=1110387&group_id=107152&atid=646835
Patch0:		mod_replace.c.diff
Patch1:		mod_replace-0.1.0-apache220.diff
Requires(pre):	rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
mod_replace is an Apache 2.0.x filter module that allows you to
replace text strings based on regular expressions. Most commonly
it is used together with mod_proxy to sanitize the behaviour of
ill behaving web applications servers when using Apache as an
reverse proxy. Other uses are, of course, supported as well. It
has been tested on Solaris 8 Sparc and Linux/i386 with various
versions of Apache 2.0.x (development started with 2.0.44, tested
with all releases up to 2.0.49). Although it has only been tested
on those two platforms, this doesn't mean it won't work for
others. Any reports of successfull or unsuccessfull deployment is
more than welcome.

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p0
%patch1 -p0

bzcat %{SOURCE2} > docs.html
bzcat %{SOURCE3} > faq.html

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c mod_replace.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}/var/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}/var/www/html/addon-modules/%{name}-%{version}

%files
%doc INSTALL LICENSE README docs.html faq.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
/var/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 214 |21cr|apache-mod_roaming-2.0.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_roaming
%define mod_conf 18_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Enables Netscape Communicator roaming profiles with apache
Name:		apache-%{mod_name}
Version:	2.0.0
Release:	18
Group:		System/Servers
License:	BSD-style
URL:		http://www.klomp.org/mod_roaming/
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Patch:		%{mod_name}-register.patch
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
With mod_roaming you can use your apache webserver as a
Netscape Roaming Access server. This allows you to store your
Netscape Communicator 4.5 preferences, bookmarks, address books,
cookies etc. on the server so that you can use (and update) the
same settings from any Netscape Communicator 4.5 that can access
the server. 

%prep

%setup -q -n %{mod_name}-%{version}
%patch

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c mod_roaming.c


%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}/var/lib/mod_roaming

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc CHANGES INSTALL LICENSE README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*
%attr(-,apache,apache) %dir /var/lib/mod_roaming

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 215 |21cr|apache-mod_scrmable-0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_scrmable
%define mod_conf A19_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module to scramble words
Name:		apache-%{mod_name}
Version:	0.1
Release:	19
Group:		System/Servers
License:	Apache License
URL:		http://sourceforge.net/projects/modscrmable/
Source0: 	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Patch0:		mod_scrmable-0.1-apache220.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
mod_scrmable is an apache module to scramble words. As 
long as the first and the last letter of a word are in place you
can still read the word.

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p0

# fix strange perms
chmod 644 README

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
mv src/%{mod_name}.c .
%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 216 |21cr|apache-mod_security-2.9.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define mod_name mod_security

Summary:	Open Source Web Application Firewall
Name:		apache-%{mod_name}
Version:	2.9.7
Release:	1
Epoch:		1
Group:		System/Servers
License:	Apache License
URL:		http://www.modsecurity.org/
Source0:	https://github.com/owasp-modsecurity/ModSecurity/archive/v%{version}/modsecurity-%{version}.tar.gz
Source2:	mod_security.logrotate
Source3:	mod_security.conf
Requires:	apache >= 2.4.0
Requires:	mlogc >= 1.4.2
Requires:	unzip
Recommends:	apache-mod_security-crs
BuildRequires:	apache-devel >= 2.4.0
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)

%description
ModSecurity is an open source intrustion detection and prevention engine for
web applications. It operates embedded into the web server, acting as a
powerful umbrella - shielding applications from attacks.

%files
%doc CHANGES LICENSE README*
%config(noreplace) %{_sysconfdir}/httpd/modules.d/10_mod_security.conf
%config(noreplace) %{_sysconfdir}/httpd/conf.d/mod_security.conf
%dir %{_sysconfdir}/httpd/conf/modsecurity.d
%config(noreplace)  %{_sysconfdir}/httpd/conf/modsecurity.d/localrules.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/mod_security
%{_libdir}/apache-extramodules/mod_security2.so
%attr(770,apache,root) %dir %{_localstatedir}/lib/%{name}

#----------------------------------------------------------------------------

%package -n mlogc
Summary:	ModSecurity Audit Log Collector
Group:		System/Servers

%description -n mlogc
ModSecurity is an open source intrustion detection and prevention engine for
web applications. It operates embedded into the web server, acting as a
powerful umbrella - shielding applications from attacks.

This package contains the ModSecurity Audit Log Collector.

%files -n mlogc
%doc mlogc/INSTALL
%attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf/mlogc.conf
%{_bindir}/mlogc
%{_bindir}/mlogc-batch-load

#----------------------------------------------------------------------------

%prep
%setup -q -n ModSecurity-%{version}
find . -type f -exec chmod a+r {} \;

%build
./autogen.sh
%serverbuild

%configure --localstatedir=/var/lib \
	--enable-performance-measurement \
	--enable-extentions \
	--with-apxs=%{_bindir}/apxs \
	--with-pcre=%{_prefix} \
	--with-apr=%{_prefix} \
	--with-apu=%{_prefix} \
	--with-libxml=%{_prefix} \
	--with-lua=%{_prefix} \
	--with-curl=%{_prefix}

%make
%make -C mlogc

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_bindir}

install -d %{buildroot}%{_libdir}/apache-extramodules
install -m 755 apache2/.libs/mod_security2.so \
    %{buildroot}%{_libdir}/apache-extramodules/mod_security2.so

install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
cat >  %{buildroot}%{_sysconfdir}/httpd/modules.d/10_mod_security.conf <<EOF
LoadModule security2_module %{_libdir}/apache-extramodules/mod_security2.so
EOF

install -d %{buildroot}%{_sysconfdir}/httpd/conf.d
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/mod_security.conf

install -d %{buildroot}%{_sysconfdir}/httpd/conf/modsecurity.d
cat >  %{buildroot}%{_sysconfdir}/httpd/conf/modsecurity.d/localrules.conf <<EOF
# Drop your local rules in here.
EOF

install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/mod_security

install -m 755 mlogc/mlogc %{buildroot}%{_bindir}
install -m 755 mlogc/mlogc-batch-load.pl %{buildroot}%{_bindir}/mlogc-batch-load
install -m 644 mlogc/mlogc-default.conf %{buildroot}%{_sysconfdir}/httpd/conf/mlogc.conf

install -d %{buildroot}%{_localstatedir}/lib/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 217 |21cr|apache-mod_sesehe-0.1.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_sesehe
%define mod_conf A55_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Modify or remove "Server: " HTTP response header
Name:		apache-%{mod_name}
Version:	0.1.0
Release:	15
Group:		System/Servers
License:	Apache License
URL:		http://jok.is-a-geek.net/mod_sesehe.php
Source0:	http://jok.is-a-geek.net/code/mod_sesehe.c
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
The ServerTokens directive currently can at best be set to Prod, which will
cause apache to return "Apache" as Server header. Some problem still occurs:

First, the level of security by obscurity of this directive is not acceptable
by some people that just want to change it to some other value, without
re-compiling Apache, or people that even want to simply drop the "Server: "
header. Secondly, if apache is configured as a reverse proxy, and a malformed
request is received, then it will display its own server token instead of the
backend one, so we need to handle error response header.

I developed this tiny module by hijacking normal behavior of (reverse) proxy
feature of Apache : i.e. even if a request is not a proxy request, I tag it as
if it was, to make Apache core let me do what I want with this header.

%prep

%setup -q -c -T

cp %{SOURCE0} mod_sesehe.c
cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c mod_sesehe.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/mod_sesehe.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/mod_sesehe.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 218 |21cr|apache-mod_sleep-2.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_sleep
%define mod_conf 29_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	2.1
Release:	19
Group:		System/Servers
License:	BSD-style
URL:		http://www.snert.com/Software/mod_sleep/index.shtml
Source0:	mod_sleep201.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
This module simply sleeps a fixed length of time every request.
The sleep time can be configured globally, or per <VirtualHost>,
<Directory>, or <Location>. This module serves more as an example
than providing any really useful function, though someone did ask
for it - sort of. 

%prep

%setup -q -n %{mod_name}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c mod_sleep.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc Img CHANGES* index.shtml mailto.js style.css
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 219 |21cr|apache-mod_smtpd-0.9-1.r235759.14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_smtpd
%define mod_conf A38_%{mod_name}.conf
%define mod_so %{mod_name}.so

%define snap r235759

Summary:	A SMTP protocol enabled module for apache 2.x based on qpsmtpd
Name:		apache-%{mod_name}
Version:	0.9
Release:	1.%{snap}.14
Group:		System/Servers
License:	Apache License
URL:		http://www.mail-archive.com/dev@httpd.apache.org/msg27099.html
# http://svn.apache.org/repos/asf/httpd/mod_smtpd/trunk/
Source0: 	%{mod_name}-%{version}-%{snap}.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.0.55
Requires(pre):	apache >= 2.0.55
Requires:	apache-conf >= 2.0.55
Requires:	apache >= 2.0.55
BuildRequires:	apache-devel >= 2.0.55
BuildRequires:	file
Epoch:		1

%description
A SMTP protocol enabled module for apache 2.x based on qpsmtpd.

%package	devel
Summary:	Development files for %{mod_name}
Group:		Development/C

%description	devel
Development files for %{mod_name}.

%prep

%setup -q -n %{mod_name}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

cp smtp_core.c mod_smtpd.c

%{_bindir}/apxs -c mod_smtpd.c smtp_protocol.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_includedir}

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

install -m0644 mod_smtpd.h %{buildroot}%{_includedir}/

%files
%doc CREDITS NOTICE STATUS
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

%files devel
%{_includedir}/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 220 |21cr|apache-mod_spam_die-0.1.2-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_spam_die
%define mod_conf 84_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.1.2
Release:	20
Group:		System/Servers
License:	GPL
URL:		http://spam-die.sourceforge.net/
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
%{mod_name} confuses spam crawlers by giving them infinite
fake email addresses. It is inspired by DIE.net and
spam-conference. 

%prep

%setup -q -n %{mod_name}-%{version}
# OE: do _not_ apply any register patch here!

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc INSTALL README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 221 |21cr|apache-mod_suphp-0.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_suphp
%define mod_conf A36_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.7.2
Release:	1
Epoch:		1
License:	GPL
Group:		System/Servers
Url:		http://www.suphp.org/
Source0: 	http://www.suphp.org/download/suphp-%{version}.tar.gz
Source1:	%{mod_conf}
Source2:	suphp.conf
Patch0:		mod_suphp-0.7.2-Apache24.patch
BuildRequires:	automake
BuildRequires:	file
BuildRequires:	apache-devel >= 2.2.0
Requires:	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	php-cgi
Requires:	php-fcgi
Requires(pre):	apache >= 2.2.0
Requires(pre):	apache-conf >= 2.2.0

%description
suPHP is a tool for executing PHP scripts with the permissions of their owners.
It consists of an Apache module (mod_suphp) and a setuid root binary (suphp)
that is called by the Apache module to change the uid of the process executing
the PHP interpreter.

This package provides support for php as of:

 o mod_suphp.so uses the %{_bindir}/php-cgi binary
 o mod_suphp_fcgi.so uses the %{_bindir}/php-fcgi binary

%files
%doc AUTHORS COPYING ChangeLog README REAME.MDK doc
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/suphp.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/apache-%{mod_name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(4755,root,root) %{_sbindir}/suphp
%attr(4755,root,root) %{_sbindir}/suphp_fcgi
%attr(0755,root,root) %{_libdir}/apache-extramodules/mod_suphp.so
%attr(0755,root,root) %{_libdir}/apache-extramodules/mod_suphp_fcgi.so

#----------------------------------------------------------------------------

%prep
%setup -q -n suphp-%{version}
%patch0 -p1

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

cp %{SOURCE2} suphp.conf

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%global optflags %{optflags} -std=c++14
rm -f configure
libtoolize --copy --force
aclocal
automake --add-missing --copy
autoconf

COMMON_CONFIGURE="--enable-checkpath \
    --enable-checkuid \
    --enable-checkgid \
    --with-apxs=%{_bindir}/apxs \
    --with-apr=%{_bindir}/apr-1-config \
    --with-setid-mode=owner \
    --with-min-uid=500 \
    --with-min-gid=500 \
    --with-apache-user=apache"


%configure --localstatedir=/var/lib \
    $COMMON_CONFIGURE \
    --with-php=%{_bindir}/php-cgi \
    --with-logfile=/var/log/httpd/suphp_log

pushd src/apache2
    %{_bindir}/apxs \
    -I. \
    -DHAVE_CONFIG_H \
    -DSUPHP_PATH_TO_SUPHP=\\\"%{_sbindir}/suphp\\\" \
    -c mod_suphp.c
popd
cp src/apache2/.libs/mod_suphp.so .

%make -C src suphp
cp src/suphp suphp
make clean

%configure --localstatedir=/var/lib \
    $COMMON_CONFIGURE \
    --with-php=%{_bindir}/php-fcgi \
    --with-logfile=/var/log/httpd/suphp_fcgi_log

cp src/apache2/mod_suphp.c src/apache2/mod_suphp_fcgi.c
perl -pi -e "s|suphp|suphp_fcgi|g" src/apache2/mod_suphp_fcgi.c
perl -pi -e "s|suPHP|suPHP_fcgi|g" src/apache2/mod_suphp_fcgi.c

pushd src/apache2
    %{_bindir}/apxs \
    -I. \
    -DHAVE_CONFIG_H \
    -DSUPHP_PATH_TO_SUPHP=\\\"%{_sbindir}/suphp_fcgi\\\" \
    -c mod_suphp_fcgi.c
popd
cp src/apache2/.libs/mod_suphp_fcgi.so .

%make -C src suphp
cp src/suphp suphp_fcgi
make clean

%install
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 mod_suphp.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0755 mod_suphp_fcgi.so %{buildroot}%{_libdir}/apache-extramodules/

install -m0755 suphp %{buildroot}%{_sbindir}/suphp
install -m0755 suphp_fcgi %{buildroot}%{_sbindir}/suphp_fcgi

install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
install -m0644 suphp.conf %{buildroot}%{_sysconfdir}/suphp.conf

# install log rotation stuff
cat > %{buildroot}%{_sysconfdir}/logrotate.d/apache-%{mod_name} << EOF
/var/log/httpd/suphp_log /var/log/httpd/suphp_fcgi_log {
    size=2000M
    rotate 5
    monthly
    missingok
    notifempty
    nocompress
    prerotate
	%{_initrddir}/httpd closelogs > /dev/null 2>&1
    endscript
    postrotate
	%{_initrddir}/httpd closelogs > /dev/null 2>&1
    endscript
}
EOF

cat > REAME.MDK << EOF
A P A C H E - M O D _ S U P H P
-------------------------------

This package provides ways to run php scripts under the uid and gid of the
user owning the vhost using the CGI mode oh php.

The documentation states it is possible to use suphp with the mod_php DSO
installed, but this is not recommended and beyond the scope of this simple
documentation.

You have three suphp DSO's to choose from, but you have to manually 
enable the ones you want to use in the %{_sysconfdir}/httpd/conf.d/%{mod_conf1}
file.

 o mod_suphp.so uses the %{_bindir}/php-cgi binary
 o mod_suphp_fcgi.so uses the %{_bindir}/php-fcgi binary

Additionally you also have to install the nessesary php bits like so:

urpmi php-cgi

Or:

urpmi php-fcgi

Good luck!

Regards // Oden Eriksson
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 222 |21cr|apache-mod_tidy-0.5.5-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_tidy
%define mod_conf 31_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.5.5
Release:	17
Group:		System/Servers
License:	Apache License
URL:		http://mod-tidy.sourceforge.net/
Source0:	http://www.gknw.at/development/apache/httpd-2.0/unix/modules/%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Patch0:		mod_tidy-include.patch
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.0.55
Requires(pre):	apache >= 2.0.55
Requires:	apache-conf >= 2.0.55
Requires:	apache >= 2.0.55
BuildRequires:	apache-devel >= 2.0.55
BuildRequires:	tidy-devel
BuildRequires:	file
Epoch:		1

%description
mod_tidy is a TidyLib based DSO module for the Apache HTTP Server
Version 2 to parse, clean-up and pretty-print the webservers'
(X)HTML output.

%prep

%autosetup -p1 -n %{mod_name}-%{version}

# fix strange perms
chmod 644 README Changes

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
 
%{_bindir}/apxs -ltidy -c src/%{mod_name}.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

cp -rp src/.libs .

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc README Changes
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 223 |21cr|apache-mod_traf_thief-0.01-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_traf_thief
%define mod_conf A21_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.01
Release:	19
Group:		System/Servers
License:	BSD-like
URL:		http://web.god.net.ru/projects/mod_traf_thief/
Source0: 	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
This simple module allows you to redirect percent of traffic to 
your url. For example you have free-based hosting services and you
need to redirect each 100 request to your resource From virtual
host user1.free.com. mod_traf_thief allow you to do this.

%prep

%setup -q -n %{mod_name}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc index.html License*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 224 |21cr|apache-mod_transform-0.6.0-42
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_transform
%define mod_conf A46_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	XSLT and XIncludes Output filter for Apache 2
Name:		apache-%{mod_name}
Version:	0.6.0
Release:	42
Group:		System/Servers
License:	GPL
URL:		http://www.outoforder.cc/projects/apache/mod_transform/
Source0:	http://www.outoforder.cc/downloads/mod_transform/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= 2.0.54
Requires(pre):  apache >= 2.0.54
Requires:       apache-conf >= 2.0.54
Requires:       apache >= 2.0.54
BuildRequires:  apache-devel >= 2.0.54
BuildRequires:	autoconf2.5
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	libxml2-devel >= 2.6.11
BuildRequires:	libxslt-devel >= 1.1.5
BuildRequires:	file

%description
mod_transform is a filter module that allows Apache 2.0 to do
dynamic XSL Transformations on either static XML documents, or XML
documents generated from another Apache module or CGI program.

%prep

%setup -q -n %{mod_name}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

# fix apr
if [ -x %{_bindir}/apr-config ]; then APR=%{_bindir}/apr-config; fi || echo APR=%{_bindir}/apr-1-config
if [ -x %{_bindir}/apu-config ]; then APU=%{_bindir}/apu-config; fi || echo APU=%{_bindir}/apu-1-config
perl -pi -e "s|%{_bindir}/apr-config|$APR|g" m4/*.m4
perl -pi -e "s|%{_bindir}/apu-config|$APU|g" m4/*.m4

%build
libtoolize --copy --force; aclocal -I m4; automake --add-missing --copy --foreign; autoconf

%configure --localstatedir=/var/lib

%make

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 src/.libs/libmod_transform.so %{buildroot}%{_libdir}/apache-extramodules/mod_transform.so
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}/var/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}/var/www/html/addon-modules/%{name}-%{version}

%files
%doc README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
/var/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 225 |21cr|apache-mod_upload-0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_upload
%define mod_conf A70_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0
Release:	17
Group:		System/Servers
License:	GPL
URL:		http://apache.webthing.com/mod_upload/
# there is no official tar ball
# http://apache.webthing.com/svn/apache/forms/mod_upload.c
Source0:	http://apache.webthing.com/svn/apache/filters/xmlns/mod_upload.c
Source1:	README.mod_upload
Source2:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
mod_upload is an input filter module for multipart/form-data, as submitted from
File Upload forms on the Web. mod_upload decodes the data, so the handler gets
the file itself without the MIME encoding. Other fields from the form are
provided as a table of names/values.

%prep

%setup -q -c -T -n %{mod_name}-%{version}

cp %{SOURCE0} %{mod_name}.c
cp %{SOURCE1} README
cp %{SOURCE2} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 226 |21cr|apache-mod_variety-0.2.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_variety
%define mod_conf 78_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Apache module to serve random files from a directory
Name:		apache-%{mod_name}
Version:	0.2.1
Release:	21
Group:		System/Servers
License:	BSD
URL:		http://pmade.org/pjones/software/mod_variety/
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}
Source2:	README.html.variety.bz2
Patch0:		%{mod_name}-0.2.0-register.patch
Patch1:		mod_variety-0.2.1-apache220.diff
BuildRequires:	unzip
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
mod_variety is an Apache 2.x module that will serve a random file
from the requested directory. It is useful for serving random
images or completely random sites. 

%prep

%setup -q -n %{mod_name}-%{version}
%patch0 -p0
%patch1 -p0
bzcat %{SOURCE2} > README.html

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

# fix strange file permissions
find -type f|xargs chmod 644

cp src/%{mod_name}.c %{mod_name}.c

# make doesn't work, but this does (real qute!)
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc README.html docs/manual/*.xml docs/CREDITS docs/manual.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 227 |21cr|apache-mod_vdbh-1.0.3-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_vdbh
%define mod_conf 21_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	A Virtual Database Hosting DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	1.0.3
Release:	26
Group:		System/Servers
License:	GPL
URL:		http://www.synthemesc.com/mod_vdbh/
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	mysql-devel
BuildRequires:	file
Epoch:		1

%description
mod_vdbh is an Apache Web Server module allowing mass virtual
hosting without the need for file based configuration. The virtual
host paths are translated from a MySQL database at request time,
thus the configuration can be changed without having to restart
Apache Web Server.

%prep

%setup -q -n %{mod_name}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -DHAVE_STDDEF_H -I%{_includedir}/mysql -L%{_libdir} -Wl,-lmysqlclient -c mod_vdbh.c
    
%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc AUTHORS README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 228 |21cr|apache-mod_vhost_mysql-0.10-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_vhost_mysql
%define mod_conf A74_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.10
Release:	25
License:	GPL
Group:		System/Servers
Url:		http://fabienne.tc2.utelisys.net/~skinkie/mod_vhost_mysql2/
Source0:	http://fabienne.tc2.utelisys.net/~skinkie/mod_vhost_mysql2/mod_vhost_mysql2-0.10.tar.bz2
Source1:	%{mod_conf}.bz2
BuildRequires:	file
BuildRequires:	apache-devel
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(openssl)
Requires:	apache
Requires:	apache-conf
Requires(pre):	apache
Requires(pre):	apache-conf
Requires(pre,postun):	rpm-helper

%description
This module provides dynamically configured virtual Hosting. using MySQL in
Apache2.

%files
%doc README vh.sql
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}2-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
apxs `mysql_config --include` -lmysqlclient -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 229 |21cr|apache-mod_webfilter-0.6-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_webfilter
%define mod_conf A12_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	An apache content filter module
Name:		apache-%{mod_name}
Version:	0.6
Release:	19
Epoch:		1
License:	GPLv2+
Group:		System/Servers
Url:		http://software.othello.ch/mod_webfilter/
Source0:	%{mod_name}-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Source2:	mod_webfilter.txt.bz2
Patch0:		mod_webfilter-0.6-misc_fixes.patch
Patch1:		mod_webfilter-0.6-apache220.diff
Requires:	apache-mod_php
Requires:	apache-mod_proxy
BuildRequires:	autoconf2.5
BuildRequires:	file
BuildRequires:	apache-devel
BuildRequires:	gdbm-devel
Requires:	apache
Requires:	apache-conf
Requires(pre):	apache
Requires(pre):	apache-conf
Requires(pre,postun):	rpm-helper

%description
Even though the free software community opposes censoring efforts
on the Internet, corporations still prefer to restrict the access
their employees have to the interet with technical measures.
Flexible solutions for URL filtering have so far mostly been
provided by commercial software vendors, free software
implementations usually were not versatile enough for commercial
environments. Unfortunately, this also meant that commercial
products were used for proxies and firewalls, and in the process
for many other things as well.

We believe that mod_webfilter could improve this. In the webfilter
databases, each hostname or domain suffix is categorized with one
or more categories describing the content the site offers. The
administrator can configure the module with a whitelist and a
blacklist. If the hostname requested by a user has a category as
specified in the whitelist, the request is accepted, even if the
following blacklist test would reject it. If the hostname
requested has a category as specified in the black list, it is
rejected. All other requests are accepted, but tag filtering, an
additional capability of the module, is applied to the content
delivered for this URL.

In principle, one database for blacklist and whitelist would be
enough, nevertheless the module allows the databases for whitelist
and blacklist to be different. This makes sense e.g. in a setting
where the blacklist is imported from some public database of
`indecent' URLs, and the whitelist is a locally maintained
database of exceptions.

%files
%doc doc/mod_webfilter.html AUTHORS ChangeLog NEWS README TODO mod_webfilter.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,apache,apache) %dir /var/lib/mod_webfilter
%attr(0666,apache,apache) %config(noreplace) /var/lib/mod_webfilter/white
%attr(0666,apache,apache) %config(noreplace) /var/lib/mod_webfilter/black
%attr(0666,apache,apache) %config(noreplace) /var/lib/mod_webfilter/whitetypes
%attr(0666,apache,apache) %config(noreplace) /var/lib/mod_webfilter/blacktypes
%attr(0755,root,root) %{_bindir}/webfilter_*
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*
%attr(0644,root,root) %{_var}/www/html/admin/mod_webfilter/whitelist.php
%{_mandir}/man1/webfilter_*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p1
%patch1 -p0

bzcat %{SOURCE2} > mod_webfilter.txt

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
export WANT_AUTOCONF_2_5=1
autoreconf -fi

export CFLAGS=`%{_bindir}/apxs -q CFLAGS`

%configure --localstatedir=/var/lib \
    --with-apxs=%{_bindir}/apxs \
    --with-htdocs=%{_var}/www/html/admin/mod_webfilter

make

pushd module
    # the autoconf stuff is a mess, we have to build the module "by hand"
    echo "static char *mod_webfilter_version = \"%{version}\";" > mod_webfilter_version.h
    %{_bindir}/apxs -c mod_webfilter.c
    mv .libs ../
popd

%install
%makeinstall_std

install -d %{buildroot}%{_var}/www/html/admin/%{mod_name}
install -d %{buildroot}/var/lib/%{mod_name}

# create some funny defaults ;)
echo "bad_sites no_visit" | %{buildroot}%{_bindir}/webfilter_create \
    %{buildroot}/var/lib/mod_webfilter/blacktypes

echo "good_sites go_visit" | %{buildroot}%{_bindir}/webfilter_create \
    %{buildroot}/var/lib/mod_webfilter/whitetypes

echo "www.microsoft.com bad_sites #bad" | %{buildroot}%{_bindir}/webfilter_create \
    %{buildroot}/var/lib/mod_webfilter/black

echo "nux.se good_sites #good" | %{buildroot}%{_bindir}/webfilter_create \
    %{buildroot}/var/lib/mod_webfilter/white

# remove silly things...
rm -f %{buildroot}%{_var}/www/html/admin/mod_webfilter/*

# install the web stuff
install -m644 web/whitelist.php %{buildroot}%{_var}/www/html/admin/mod_webfilter/whitelist.php

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 230 |21cr|apache-mod_wsgi-4.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.8
%define mod_name mod_wsgi
%define mod_conf B23_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Python WSGI adapter module for Apache
Name:		apache-%{mod_name}
Version:	4.7.1
Release:	1
Group:		System/Servers
License:	Apache License
URL:		https://github.com/GrahamDumpleton/mod_wsgi
Source0:	https://github.com/GrahamDumpleton/mod_wsgi/archive/%{version}.tar.gz?/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{apache_version}
Requires(pre):	apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:	apache-devel >= %{apache_version}
BuildRequires:	pkgconfig(python3)
BuildRequires:	apache-mpm-prefork >= %{apache_version}

%description
The mod_wsgi adapter is an Apache module that provides a WSGI compliant
interface for hosting Python based web applications within Apache. The
adapter is written completely in C code against the Apache C runtime and
for hosting WSGI applications within Apache has a lower overhead than using
existing WSGI adapters for mod_python or CGI.

%files
%doc LICENSE README.rst
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache/%{mod_so}

#-----------------------------------------------------------------------
%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache|g" %{mod_conf}

%build
rm -f configure
autoconf

%configure --localstatedir=/var/lib \
    --with-apxs=%{_bindir}/apxs

%make

%install
install -d %{buildroot}%{_libdir}/apache
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 src/server/.libs/%{mod_so} %{buildroot}%{_libdir}/apache
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 231 |21cr|apache-mod_xhtml-0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_xhtml
%define mod_conf A68_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Adds XHTML Namespace processing to the Apache Webserver
Name:		apache-%{mod_name}
Version:	0
Release:	17
Group:		System/Servers
License:	GPL
URL:		http://apache.webthing.com/mod_xhtml/
# there is no official tar ball
# http://apache.webthing.com/svn/apache/filters/xmlns/
Source0:	http://apache.webthing.com/svn/apache/filters/xmlns/mod_xhtml.c
Source1:	README.mod_xhtml
Source2:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires(pre):	apache-mod_xmlns
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
Requires:	apache-mod_xmlns
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	apache-mod_xmlns-devel
BuildRequires:	file

%description
mod_xhtml provides a namespace processor for http://www.w3.org/1999/xhtml that
serves to ensure XHTML meets the W3C Appendix C guidelines for compatibility
with HTML browsers and the text/html MIME type. In addition, mod_xhtml
implements Server Side  Includes (SSI), both as Apache's comment-driven
processing language and as a separate XML namespace processor.

%prep

%setup -q -c -T -n %{mod_name}-%{version}

cp %{SOURCE0} mod_xhtml.c
cp %{SOURCE1} README
cp %{SOURCE2} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 232 |21cr|apache-mod_xhtml_neg-1.0a-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.8
%define mod_name mod_xhtml_neg
%define mod_conf B39_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	An XHTML content negotiation module for Apache
Name:		apache-%{mod_name}
Version:	1.0a
Release:	13
Group:		System/Servers
License:	Apache License
URL:		http://mod-xhtml-neg.sourceforge.net/
Source0:	http://dfn.dl.sourceforge.net/sourceforge/mod-xhtml-neg/%{mod_name}2-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:	apache-devel >= %{apache_version}
BuildRequires:	dos2unix

%description
This module provides content negotiation facilities for XHTML documents that
conform to Appendix C compatibility requirements of the XHTML 1.0
specification. This allows compatible browsers to view XHTML content as
XML-compliant documents, and older or less compatible clients to view XHTML
content as text/html documents.

%prep

%setup -q -n %{mod_name}-2.0

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

find -type f -exec dos2unix {} \;

%build
%{_bindir}/apxs -c mod_xhtml_neg.c lookupa.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc LICENSE README mod_xhtml_neg.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 233 |21cr|apache-mod_xml2enc-1.0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_xml2enc
%define mod_conf A29_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Extended internationalisation support
Name:		apache-%{mod_name}
Version:	1.0.3
Release:	12
Group:		System/Servers
License:	Apache License
Url:		http://apache.webthing.com/mod_xml2enc/
Source0:	http://apache.webthing.com/svn/apache/filters/mod_xml2enc.c
Source1:	http://apache.webthing.com/svn/apache/filters/mod_xml2enc.h
Source2:	README.mod_xml2enc
Source3:	%{mod_conf}
BuildRequires:	file
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires(pre):	apache-conf >= 2.2.0

%description
mod_xml2enc is a transcoding module that can be used to extend the
internationalisation support of libxml2-based filter modules by converting
encoding before and/or after the filter has run. Thus an unsupported input
charset can be converted to UTF-8, and output can also be converted to another
charset if required.

%files
%doc README.mod_xml2enc LICENCE
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

#----------------------------------------------------------------------------

%package devel
Summary:	Development API for the mod_xml2enc apache module
Group:		Development/C

%description devel
mod_xml2enc is a transcoding module that can be used to extend the
internationalisation support of libxml2-based filter modules by converting
encoding before and/or after the filter has run. Thus an unsupported input
charset can be converted to UTF-8, and output can also be converted to another
charset if required.

This package contains the development API for the mod_xml2enc apache module.

%files devel
%attr(0644,root,root) %{_includedir}/mod_xml2enc.h

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -n %{mod_name}-%{version}

cp %{SOURCE0} .
cp %{SOURCE1} .
cp %{SOURCE2} README.mod_xml2enc
cp %{SOURCE3} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

head -40 %{mod_name}.c > LICENCE

%build
%{_bindir}/apxs `xml2-config --cflags` `xml2-config --libs` -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_includedir}
install -m0644 mod_xml2enc.h %{buildroot}%{_includedir}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 234 |21cr|apache-mod_xmlns-0.97-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_xmlns
%define mod_conf A67_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Adds XML Namespace processing to the Apache Webserver
Name:		apache-%{mod_name}
Version:	0.97
Release:	19
Group:		System/Servers
License:	GPL
URL:		http://apache.webthing.com/mod_xmlns/
# there is no official tar ball
# http://apache.webthing.com/svn/apache/filters/xmlns/
Source0:	http://apache.webthing.com/svn/apache/filters/xmlns/mod_xmlns.c
Source1:	http://apache.webthing.com/svn/apache/filters/xmlns/xmlns.h
Source2:	README.mod_xmlns
Source3:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file

%description
mod_xmlns adds XML Namespace support to Apache, and may form the basis of
XML-driven publishing systems. It runs as an output filter, so it works
automatically with any content generator.

%package	devel
Summary:	Development API for the mod_xmlns apache module
Group:		Development/C

%description	devel
mod_xmlns adds XML Namespace support to Apache, and may form the basis of
XML-driven publishing systems. It runs as an output filter, so it works
automatically with any content generator.

This package contains the development API for the mod_xmlns apache module.

%prep

%setup -q -c -T -n %{mod_name}-%{version}

cp %{SOURCE0} mod_xmlns.c
cp %{SOURCE1} xmlns.h
cp %{SOURCE2} README
cp %{SOURCE3} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_includedir}

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 xmlns.h %{buildroot}%{_includedir}/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

%files devel
%attr(0644,root,root) %{_includedir}/xmlns.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 235 |21cr|apache-mod_xsendfile-0.12-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.0
%define mod_name mod_xsendfile
%define mod_conf A58_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Process X-SENDFILE header cgi/scripts may set
Name:		apache-%{mod_name}
Version:	0.12
Release:	6
Group:		System/Servers
License:	Apache License
URL:		https://tn123.org/mod_xsendfile/
Source0:	https://tn123.org/mod_xsendfile/mod_xsendfile-%{version}.tar.bz2
Source1:	%{mod_conf}
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:  apache-devel >= %{apache_version}

%description
mod_xsendfile is a small Apache2 module that processes X-SENDFILE headers
registered by the original output handler. If it encounters the presence of
such a header, it will discard all output and send the file specified by that
header instead, using Apache internals including all optimizations like
caching- headers and sendfile or mmap if configured. It is useful for
processing script output of PHP, Perl, or other CGI programs.

%prep
%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

%build
%{_bindir}/apxs -c %{mod_name}.c

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc docs/Readme.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 236 |21cr|apache-mod_xslt_filter-1.5.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.2.8
%define mod_name mod_xslt_filter
%define mod_conf B37_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	Performs XSL transformation on the fly
Name:		apache-%{mod_name}
Version:	1.5.2
Release:	11
Group:		System/Servers
License:	Apache License
URL:		http://sourceforge.net/projects/xslt-filter/
Source0:	xslt_filter-%{version}.tar.gz
Source1:	%{mod_conf}
Patch0:		xslt_filter-correct_naming_fix.diff
Patch1:		xslt_filter-1.5.2-format_not_a_string_literal_and_no_format_arguments.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):  apache-conf >= %{apache_version}
Requires(pre):  apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:	apache-devel >= %{apache_version}
BuildRequires:	automake
BuildRequires:	dos2unix
BuildRequires:	libtool
BuildRequires:	libxml2-devel >= 2.6.30
BuildRequires:	libxslt-devel >= 1.1.20

%description
XSLT Filter is an Apache2 loadable module which performs XSL transformation on
the fly. It uses LibXML2+LibXSLT as parsing and transformation engines. The
module acts as an Apache output fitler and is compatible with mod_perl, CGI and
PHP applications.

%prep
%setup -q -n xslt_filter-%{version}
%patch0 -p1
%patch1 -p0

mv xslt_filter.c %{mod_name}.c

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{mod_conf}

find -type f -exec dos2unix {} \;

%build
rm -f configure
libtoolize --copy --force; aclocal; autoconf; automake --add-missing --copy --foreign; autoconf
export APXS2="%{_bindir}/apxs"

%configure --localstatedir=/var/lib

%make

%install
install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/%{mod_so} %{buildroot}%{_libdir}/apache-extramodules/
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 237 |21cr|apache-mod_ziplook-0.99-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_ziplook
%define mod_conf 87_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.99
Release:	19
Group:		System/Servers
License:	BSD
URL:		http://pihl.kumpu.org/ziplook/index2.html
Source0: 	%{mod_name}2-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
# http://www.winimage.com/zLibDll/unzip21.zip
Source2:	unzip21.zip
BuildRequires:	unzip
BuildRequires:	zip
BuildRequires:	zlib-devel
BuildRequires:	perl
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	file
Epoch:		1

%description
With the mod_ziplook apache module you can view zip-archive
files directly in apache without extracting them to
filesystem. It's useful with large documentation zip-files which
are not very often hit. 

%prep

%setup -q -n ziplook

unzip %{SOURCE2}
zip README.zip README

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c -I. -lz

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

# make the example work... (ugly, but it works...)

NEW_URL=/addon-modules/%{name}-%{version}/
perl -pi -e "s|_REPLACE_ME_|$NEW_URL|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

%files
%doc README*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 238 |21cr|apache-mod_zipread-0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_zipread
%define mod_conf A16_%{mod_name}.conf
%define mod_so %{mod_name}.so

Summary:	DSO module for the apache web server
Name:		apache-%{mod_name}
Version:	0.1
Release:	19
Group:		System/Servers
License:	GPL
URL:		http://modzipread.sourceforge.net/
Source0: 	modzipread-%{version}.tar.bz2
Source1:	%{mod_conf}.bz2
Patch0:		modzipread-0.1-header_fix.diff
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= 2.2.0
Requires(pre):	apache >= 2.2.0
Requires:	apache-conf >= 2.2.0
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	zziplib-devel
BuildRequires:	file
Epoch:		1

%description
Mod ZipRead is an Apache module to browser Zip Archives. It uses
zziplib.

%prep

%setup -q -n modzipread-%{version}
%patch0 -p0

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%{_bindir}/apxs -c %{mod_name}.c -lzzip

%install

install -d %{buildroot}%{_libdir}/apache-extramodules
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 .libs/*.so %{buildroot}%{_libdir}/apache-extramodules/
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache-extramodules|g" %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

install -d %{buildroot}%{_var}/www/html/addon-modules
ln -s ../../../..%{_docdir}/%{name}-%{version} %{buildroot}%{_var}/www/html/addon-modules/%{name}-%{version}

%files
%doc AUTHORS ChangeLog DESC INSTALL
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}
%{_var}/www/html/addon-modules/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 239 |21cr|apachetop-0.12.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    apachetop
%define version 0.12.6
%define release 10

Summary:	Utility to display Apache logs with a top-like interface
Name:		%name
Version:	%version
Release:	%release
License:	BSD
Group:		Monitoring
URL:		http://www.webta.org/projects/apachetop/
Source0:	http://www.webta.org/apachetop/%name-%version.tar.bz2
# mandrivaize default logfile
Patch1:		%name-0.12.6-logfile.patch
# support logfiles over 2GB (from Debian)
Patch2:		apachetop-0.12.5-large_logfile.patch
# gcc4.1 fixes (from Debian)
Patch3:		apachetop-0.12.6-gcc41.patch
# fix some error
Patch4:     apachetop-0.12.6-buffer_overflow.patch
BuildRequires:	ncurses-devel
BuildRequires:	m4
BuildRequires:	pcre-devel
BuildRequires:	adns-devel
BuildRequires:	readline-devel
BuildRequires:	autoconf2.5
Requires:	apache

%description
ApacheTop: top-like display of Apache logs.

ApacheTop watches a logfile generated by Apache (in standard common or
combined logformat, although it doesn't (yet) make use of any of the extra
fields in combined) and generates human-parsable output in realtime.


%prep
%setup -q
%patch1 -p1 -b .log
%patch2 -p1 -b .large
%patch3 -p1 -b .gcc41
%patch4 -p0

%build
%configure
%make


%install
rm -rf %{buildroot}
%makeinstall

# 0.7: remove manpage, not usefull yet, read readme instead
rm %{buildroot}%{_mandir}/man1/*


%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,)
%_bindir/*
#%_mandir/man1/*
%doc AUTHORS LICENSE README ChangeLog TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 240 |21cr|apg-2.2.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Automated Password Generator (apg)
Name:		apg
Version:	2.2.3
Release:	9
License:	BSD
Group:		System/Configuration/Other
Source0:	%{name}-%{version}.tar.bz2
URL:		http://www.adel.nursat.kz/apg/

%description
Apg generates several random passwords. It uses several password
generation algorithms (currently two) and a built-in pseudo random
number generator.


%prep
%setup -q

%build
%{__make} \
	CC="%{__cc}" \
	FLAGS="%{optflags}"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}

install apg apgbfm $RPM_BUILD_ROOT%{_bindir}
install doc/man/{apgbfm,apg}.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README CHANGES THANKS TODO doc/APG_TIPS
%attr(755,root,root) %{_bindir}/apg
%attr(755,root,root) %{_bindir}/apgbfm
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 241 |21cr|aphopper-0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Automatic wireless access point hopper
Name:		aphopper
Version:	0.3
Release:	12
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		https://github.com/BlackArch/aphopper
Source0:	%{name}-%{version}.tar.bz2

%description
AP Hopper is a program that automatically hops between access points of
different wireless networks. It checks for DHCP and Internet Access on all
the networks found. It logs successful and unsuccessful attempts.

P.S. The binary is called 'hopper'.

%files
%doc AUTHORS ChangeLog COPYING
%{_sbindir}/hopper

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
%configure
%make DEFS="%{optflags}"

%install
mkdir -p %{buildroot}%{_sbindir}
install -m 755 hopper %{buildroot}%{_sbindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 242 |21cr|api-sanity-checker-1.98.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:An automatic generator of basic unit tests for a C/C++ library API
Name:		api-sanity-checker
Version:	1.98.7
Release:	1
Group:		Development/Other
License:	GPLv1+ or LGPLv2+
URL:		http://ispras.linuxbase.org/index.php/API_Sanity_Checker
Source0:	https://github.com/lvc/api-sanity-checker/archive/%{version}.tar.gz
Requires:   gcc-c++
Requires:   abi-compliance-checker >= 1.99
BuildRequires:   abi-compliance-checker >= 1.99
BuildArch:	noarch

%description
An automatic generator of basic unit tests for a shared C/C++
library. It helps to quickly generate "shallow"-quality test
cases for every API symbol straight from the library header
files.

%prep
%setup -q
chmod 0644 LICENSE README

%build
# Nothing to build.

%install
mkdir -p %{buildroot}%{_prefix}
perl Makefile.pl -install --prefix=%{_prefix} --destdir=%{buildroot}

%files
%doc LICENSE README doc/
%{_bindir}/%{name}
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 243 |21cr|apitrace-10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	with_GUI 1

# Exclude libc.so.6(GLIBC_PRIVATE) because it's not provided.
%global __requires_exclude (.*)GLIBC_PRIVATE(.*)

Summary:	A project to trace, analyze and debug graphics APIs
Name:		apitrace
Version:	10.0
Release:	3
License:	BSD
Group:		Development/X11
Url:		https://github.com/apitrace/apitrace
Source0:	https://github.com/apitrace/apitrace/archive/%{name}-10.0.tar.gz
Source1:	qapitrace.desktop
Source2:	%{name}.png
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-10.0-fix-python-scripts.patch
Patch1:		%{name}-8.0-fix-waffle-detection.patch
BuildRequires:	cmake >= 3.8
# For stacktrace
BuildRequires:	python3 >= 3.6
BuildRequires:	python3-pillow
BuildRequires:	dwarf-devel
#
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libprocps)
%if %{with_GUI}
BuildRequires:	coreutils
BuildRequires:	qjson >= 0.5
BuildRequires:	pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif
BuildRequires:	pkgconfig(waffle-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib) >= 1.2.6
Requires:	python3-pillow

%description
This is a program to trace, analyze and debug graphics APIs. It offers a
convenient set of tools for:
- trace OpenGL, OpenGL ES, Direct3D11 and DirectDraw API calls to a file;
- retrace (replay) OpenGL and OpenGL ES calls from a file;
- visualize trace files and inspect their state, frame by frame and call
  by call;
- inspect OpenGL state at any call while doing replay;
- visualize and edit trace files;
- profile performance of traces.
It also sports a nice Qt5-based GUI.

%files
%doc docs/BUGS.markdown docs/HACKING.markdown LICENSE
%doc docs/NEWS.markdown README.markdown docs/TODO.markdown docs/USAGE.markdown
%{_bindir}/%{name}
%{_bindir}/eglretrace
%{_bindir}/glretrace
%{_bindir}/gltrim
%{_bindir}/qapitrace
%{_libdir}/%{name}/wrappers/*.so
%{_libdir}/%{name}/scripts/*.py
%{_libdir}/%{name}/scripts/__pycache__/*.pyc
%{_libdir}/%{name}/scripts/*.PIXExp
%{_datadir}/applications/qapitrace.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Fix wrong permissions
chmod -x retrace/glretrace_main.cpp
chmod -x retrace/glretrace_wgl_font_*.cpp

# Fix the path for libraries on 64bit arch (hopefully with no breakage)
sed -i 's|../lib/apitrace/scripts|../%{_lib}/apitrace/scripts|g' cli/cli_resources.cpp


%build
%cmake	.. -DCMAKE_BUILD_TYPE="Release" \
	-DENABLE_CLI=ON \
	-DENABLE_X11=ON \
	-DENABLE_EGL=ON \
	-DENABLE_WAFFLE=ON \
	-DENABLE_TESTS=OFF \
	-DBUILD_TESTING=ON \
%if %{with_GUI}
	-DENABLE_GUI=ON
%else
	-DENABLE_GUI=OFF
%endif
%make


%install
%makeinstall_std -C build

# Remove installed doc files: we pick them with the %%doc macro
rm -rf %{buildroot}%{_docdir}

# Prepare and copy our stuff:
# 1. .desktop file for qt gui
mkdir -p %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
# 2. Install icons
install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png
for i in 16 24 32 48 64 128; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps
	install %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 244 |21cr|apmd-3.2.2-37
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define libname	%mklibname apm %{major}
%define devname	%mklibname apm -d

Summary:	Advanced Power Management (APM) BIOS utilities for laptops
Name:		apmd
Version:	3.2.2
Release:	37
License:	GPLv2+
Group:		System/Servers
Url:		ftp://ftp.debian.org/debian/pool/main/a/apmd
Source0:	ftp://ftp.debian.org/debian/pool/main/a/apmd/%{name}_%{version}.orig.tar.gz
Source1:	apmd.init
Source3:	apmd_proxy
Patch0:		apmd-3.2.2.orig-lib64.patch
Patch1:		apmd-3.2.2.orig-graphicswitch.patch
Patch2:		apmd-3.2.2.orig-optimization.patch
Patch5:		apmd-3.2.2.orig-security.patch
Patch9:		apmd-3.2.2.orig-proxy-timeout.patch
Patch10:	apmd-3.2.2-libtool.patch

BuildRequires:	libtool
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)
Requires(post,preun):	rpm-helper
Requires:	initscripts

%description
APMD is a set of programs for controlling the Advanced Power 
Management daemon and utilities found in most modern laptop 
computers. APMD can watch your notebook's battery and warn 
users when the battery is low. APMD is also capable of shutting 
down the PCMCIA sockets before a suspend.

Install the apmd package if you need to control the APM system 
on your laptop.

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n %{devname}
Summary:	Development library for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the developmeent library needed to compile
programs that use %{name}.

%prep
%setup -qn apmd-%{version}.orig
%apply_patches

echo "LIB = %{_lib}" > config.make

%build
%serverbuild
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags} -s" PROXY_DIR=%{_sbindir}

%install
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/apm-scripts

%makeinstall_std PREFIX=%{_prefix} MANDIR=%{_mandir}

for i in apm.1 apmsleep.1;
	do install -m644 $i -D %{buildroot}%{_mandir}/man1/$i;
done
install -m644 apmd.8 -D %{buildroot}%{_mandir}/man8/apmd.8

install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/apmd
install -m755 %{SOURCE3} -D %{buildroot}%{_sbindir}/apmd_proxy
rm -f %{buildroot}%{_bindir}/on_ac_power

chmod 0755 %{buildroot}%{_libdir}/libapm.so.1.0.0

%post
%_post_service apmd

%preun
%_preun_service apmd

%files
%doc AUTHORS ChangeLog README apmsleep.README
%config(noreplace) %{_initrddir}/apmd
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man?/*

%files -n %{libname}
%{_libdir}/libapm.so.%{major}*

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 245 |21cr|apngasm-3.1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	3
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname -d %{name}

Summary:	Create an APNG from multiple PNG files
Name:		apngasm
Version:	3.1.10
Release:	1
License:	zlib
Group:		Graphics
Url:		https://github.com/apngasm/apngasm
Source0:	https://downloads.sourceforge.net/project/apngasm/%{version}/%{name}-%{version}.tar.gz
Patch0:	apngasm-3.1.10-no-static-library.patch
Patch1:	apngasm-3.1.10-fix-install-path-for-libraries.patch
Patch2:	apngasm-3.1.10-fix-install-path-for-man-pages.patch
# The library has  no SONAME: providing one...
Patch3:	apngasm-3.1.10-add-library-soname.patch
BuildRequires:	cmake >= 3.13
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)

%description
The APNG Assembler: create an APNG from multiple PNG files.

%files
%doc LICENSE.txt README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ library for assembling and disassembling APNG animations
Group:		System/Libraries

%description -n %{libname}
The APNG Assembler: create an APNG from multiple PNG files.
This package contains a C++ library for assembling and disassembling APNG
animations.

%files -n %{libname}
%doc LICENSE.txt
%{_libdir}/libapngasm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++

%description -n %{devname}
The APNG Assembler: create an APNG from multiple PNG files.
This package contains the files needed by programs using %{libname}.

%files -n %{devname}
%doc LICENSE.txt
%{_includedir}/apngasm*.h
%{_includedir}/apngframe.h
%{_libdir}/libapngasm.so
%{_libdir}/pkgconfig/libapngasm.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1


%build
%cmake
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 246 |21cr|apngopt-1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Optimize APNG images
Name:		apngopt
Version:	1.4
Release:	4
License:	zlib
Group:		Graphics
Url:		http://sourceforge.net/projects/apng/
Source0:	http://downloads.sourceforge.net/project/apng/APNG_Optimizer/%{version}/%{name}-%{version}-src.zip
Patch0:		apngopt-1.4-no-strip.patch
BuildRequires:	pkgconfig(libpng)
Buildrequires:	pkgconfig(zlib)

%description
Optimizes existing APNG animation.

%files
%doc readme.txt
%{_bindir}/%{name}

%pretrans
# Replace folder from earlier versions with a file
[[ -d /usr/bin/apngopt ]] && rm -rf /usr/bin/apngopt

#----------------------------------------------------------------------------

%prep
%setup -qc
%patch0 -p1

%build
%make CFLAGS_OPT="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 apngopt %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 247 |21cr|apt2dnf-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert apt* commands to dnf
Name:		apt2dnf
Version:	1.1
Release:	1
License:	GPLv3
Group:		System/Configuration/Packaging
Url:		https://abf.io/import/apt2dnf
Source0:	%{name}.py
BuildArch:	noarch

%description
%{summary}

%files
%{_bindir}/apt-get
%{_bindir}/apt-cache
%{_bindir}/apt-repo
%{_bindir}/apt
%{_bindir}/aptitude

#------------------------------------------------------------------

%prep
%setup -T -c

%install
mkdir -p %{buildroot}%{_bindir}
install -pm0755 %{SOURCE0} %{buildroot}%{_bindir}/apt-get
ln -s apt-get %{buildroot}%{_bindir}/apt-cache
ln -s apt-get %{buildroot}%{_bindir}/apt
ln -s apt-get %{buildroot}%{_bindir}/apt-repo
ln -s apt-get %{buildroot}%{_bindir}/aptitude

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 248 |21cr|apulse-0.1.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __provides_exclude_from ^%{_libdir}/apulse/.*.so.*$

Name:           apulse
Version:        0.1.13
Release:        1
Summary:        PulseAudio emulation for ALSA
License:        MIT
Group:          System/Libraries
Url:            https://github.com/i-rinat/apulse
Source0:		https://github.com/i-rinat/apulse/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# https://github.com/i-rinat/apulse/issues/115
Patch1:			0001-Fix-building-with-PulseAudio-13.patch
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libpulse)

%description
PulseAudio emulation intended to be used with Skype.

%prep
%setup -q
%apply_patches

# revert when PulseAudio < 13
%if %{mdvver} < 201905
%patch1 -p1 -R
%endif

%build
%cmake \
  -DUSE_BUNDLED_PULSEAUDIO_HEADERS=0 \
  -DAPULSEPATH=%{_libdir}/%{name}/
%make

%install
%makeinstall_std -C build
rm -f %{buildroot}%{_libdir}/%{name}/*.so

%files
%doc LICENSE.MIT README.md
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_mandir}/man1/apulse.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 249 |21cr|ap-utils-1.5.1-0.pre3.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prerelease pre3

Summary: Configure and monitor Wireless Access Points
Name: ap-utils
Version: 1.5.1
Release: 0.%{prerelease}.5
License: GPL
Group: Networking/Other
URL: http://ap-utils.polesye.net/
Source: http://prdownloads.sourceforge.net/ap-utils/%{name}-%{version}%{prerelease}.tar.bz2
BuildRequires: pkgconfig(ncurses)

%description
Wireless Access Point Utilities for Unix is a set of utilities
to configure and monitor Wireless Access Points under Unix.

%prep
%setup -q -n %{name}-%{version}%{prerelease}

%build
%define Werror_cflags %nil
%configure
%make

%install
%makeinstall_std

# remove french translation, it is prevent correct usage of ap-config
rm %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/ap-utils.mo

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS INSTALL NEWS COPYING README TODO ChangeLog
%doc Documentation/FAQ Documentation/*.html
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 250 |21cr|apvlv-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A PDF/DJVU/TXT viewer which behaves like Vim
Name:		apvlv
Version:	0.4.0
Release:	1
License:	GPLv2+
Group:		Office
Url:		http://naihe2010.github.com/apvlv/
Source0:	https://github.com/naihe2010/apvlv/archive/v0.4.0.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ghostscript
BuildRequires:	mandoc
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	ebook-tools-devel
BuildRequires:	pkgconfig(poppler-glib)

%description
Apvlv is a PDF viewer which behaves like Vim.

%files
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}rc
%doc %{_datadir}/%{name}/Startup.pdf
%doc %{_datadir}/%{name}/apvlvrc.example
%{_datadir}/%{name}/icons/*.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*
%{_datadir}/apvlv/main_menubar.glade

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DAPVLV_WITH_UMD:BOOL=OFF \
	-DAPVLV_WITH_DJVU:BOOL=ON \
	-DDOCDIR=%{_datadir}/%{name}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 251 |21cr|aqemu-0.9.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		aqemu
Version:	0.9.2
Release:	6
Summary:	A QT graphical interface to QEMU and KVM
Group:		Emulators
License:	GPLv2+
URL:		http://aqemu.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		rcc.patch
Patch1:		aqemu-headers.patch
BuildRequires:	qt5-devel
BuildRequires:	cmake
BuildRequires:	libvncserver-devel
BuildRequires:	desktop-file-utils
BuildRequires:	gnutls-devel
BuildRequires:	hicolor-icon-theme
Requires: 	qemu

%description
AQEMU is a graphical user interface to QEMU and KVM, written in Qt4. The 
program has a user-friendly interface and allows user to set the 
majority of QEMU and KVM options on their virtual machines.

%prep
%autosetup -p1

%build
cmake -DCMAKE_INSTALL_PREFIX=/usr -DMAN_PAGE_COMPRESSOR=bzip2 -DDEBUG=1
%make

%install
make DESTDIR=%{buildroot} install
# Copy 48x48 and 64x64 icons to correct location.
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{48x48,64x64}/apps
mv %{buildroot}%{_datadir}/pixmaps/%{name}_48x48.png \
   %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
mv %{buildroot}%{_datadir}/pixmaps/%{name}_64x64.png \
   %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
# Remove directories from install which are not being deployed in RPM.
rm -rf %{buildroot}%{_datadir}/pixmaps
rm -rf %{buildroot}%{_datadir}/menu
rm -rf %{buildroot}%{_datadir}/doc/%{name}
# Validate the icon file.
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%{_bindir}/%{name}
%doc AUTHORS CHANGELOG COPYING TODO
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 252 |21cr|aqsis-1.8.3-2.git0dfff4.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

%define commit 0dfff4b8476bd79d266a5b26494d9c96dac0cdce
%define commit_short %(echo %{commit} | head -c6)

Summary:	RenderMan-compliant 3D rendering solution
Name:		aqsis
Version:	1.8.3
Release:	2.git%{commit_short}.2
License:	GPLv2+
Group:		Graphics
Url:		https://www.aqsis.org/
#Source0:	http://downloads.sourceforge.net/aqsis/%%{name}-%%{version}.tar.gz
# Taken from untagged release on https://github.com/aqsis/aqsis
Source0:	https://github.com/aqsis/aqsis/archive/%{commit}.zip?/%{name}-%{commit}.zip
# from https://github.com/wdas/partio/archive/refs/tags/v1.14.6.tar.gz
Source1:	partio.tar.gz
BuildRequires:	bison >= 2.6.3
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	gomp-devel
BuildRequires:	flex >= 2.5.4
BuildRequires:	python3-sphinx
BuildRequires:	qt5-linguist-tools
BuildRequires:	texlive-pdftex
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4) >= 3.7.1
# need old openexr 2.x
BuildRequires:	pkgconfig(OpenEXR) < 3.0.0
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
Conflicts:	%{_lib}aqsis1 < 1.8.2-6

%description
The Aqsis rendering system consists of a set of libraries and applications for
creating high-quality computer imagery using the Pixar RenderMan Interface.

%files
%doc AUTHORS README
%config(noreplace) %{_sysconfdir}/aqsisrc
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.png
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so
%{_iconsdir}/hicolor/192x192/mimetypes/%{name}-doc.png

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Aqsis library
Group:		System/Libraries

%description -n %{libname}
The Aqsis rendering system consists of a set of libraries and applications for
creating high-quality computer imagery using the Pixar RenderMan Interface.
This package contain the Aqsis library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libaqsis_*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Aqsis
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
The Aqsis library development files.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}/*
%{_libdir}/libaqsis_*.so


#----------------------------------------------------------------------------

%prep
%setup -q -a1 -n %{name}-%{commit}

cp -r partio/* thirdparty/partio/src

%apply_patches

%build
export CXXFLAGS="%{optflags} -Wno-deprecated -Wno-deprecated-declarations"
%cmake -Wno-dev \
	-DAQSIS_USE_OPENEXR=ON \
	-DAQSIS_USE_RPATH=OFF \
	-DAQSIS_USE_TIMERS=ON \
	-DAQSIS_ENABLE_DOCS=ON \
	-DAQSIS_USE_QT=ON \
	-DSYSCONFDIR="%{_sysconfdir}" \
	-DLIBDIR="%{_libdir}" \
	-DAQSIS_ENABLE_THREADING=ON \
	-DDEFAULT_DISPLAYPATH="%{_libdir}/%{name}"

%make


%install
%makeinstall_std -C build

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/examples/features/occlusion/occlmap.py
chmod +x %{buildroot}%{_datadir}/%{name}/plugins/houdini/slx2otl.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 253 |21cr|arandr-0.1.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple visual front end for XRandR
Name:		arandr
URL:		http://christian.amsuess.com/tools/arandr/
Version:	0.1.11
Release:	1
Source0:	http://christian.amsuess.com/tools/%{name}/files/%{name}-%{version}.tar.gz
License:	GPLv3
Group:		System/X11
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-docutils
BuildRequires:  desktop-file-utils
Requires:	python3-gobject
Requires:	python3-cairo
Requires:	xrandr

%description
ARandR is designed to provide a simple visual front end for XRandR.
Relative monitor positions are shown graphically and can be changed
in a drag-and-drop way.

Features:

- Full control over output positioning (instead of plain "left of")
with edge snapping

- Saving configurations as executable shell scripts (configurations
can be loaded without using this program)

- Configuration files can be edited to include additional payload
(like xsetwacom commands tablet PC users need when rotating),
which is preserved when editing

- Main widget separated from packaged application (to facilitate
integration with existing solutions)

%files -f %{name}.lang
%doc NEWS README TODO
%license COPYING
%{py3_puresitedir}/screenlayout
%{py3_puresitedir}/*.egg-info
%{_bindir}/arandr
%{_bindir}/unxrandr
%{_datadir}/applications/arandr.desktop
%{_mandir}/man1/*

#------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 254 |21cr|aranym-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Atari ST/TT/Falcon emulator
Name:		aranym
Version:	1.1.0
Release:	1
License:	GPLv2
Group:		Emulators
Url:		http://aranym.org/
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}_%{version}.orig.tar.gz
Patch0:		0001-Use-pow10-only-if-it-exits.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl) >= 1.2.12
BuildRequires:	pkgconfig(SDL_image)

%description
ARAnyM is a software virtual machine (similar to VirtualBox or Bochs)
designed and developed for running 32-bit Atari ST/TT/Falcon operating systems
(TOS, FreeMiNT, MagiC and Linux-m68k) and TOS/GEM applications on any kind of
hardware - be it an IBM clone (read it as "PC" :-), an Apple, an Unix server,
a graphics workstation or even a portable computer.

%files
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-jit.desktop
%{_datadir}/applications/%{name}-mmu.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}-jit.png
%{_datadir}/pixmaps/%{name}-mmu.png
%{_iconsdir}/*/*/*/%{name}.png
%{_iconsdir}/*/*/*/%{name}-jit.png
%{_iconsdir}/*/*/*/%{name}-mmu.png
%{_mandir}/man?/*.*.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# fix build on aarch64
#cp -af %{_usr}/lib/rpm/config.{guess,sub} .

%build
%configure
make depend
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 255 |21cr|aravis-0.8.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define gstapi 1.0
%define api 0.8
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Glib/gobject based library implementing a Genicam interface
Name:		aravis
Version:	0.8.10
Release:	5
License:	GPLv2+
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/aravis
Source0:	https://download.gnome.org/sources/aravis/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-app-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{gstapi})
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libusb-1.0)

%description
Aravis is a glib/gobject based library implementing a Genicam interface, 
which can be used for the acquisition of video streams coming from either
ethernet, firewire or USB cameras. It currently only implements an ethernet 
camera protocol used for industrial cameras.

%files
%doc COPYING
%{_bindir}/*
%{_mandir}/man1/arv-tool-%{api}.1*

#--------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Aravis is a glib/gobject based library implementing a Genicam interface, 
which can be used for the acquisition of video streams coming from either
ethernet, firewire or USB cameras. It currently only implements an ethernet 
camera protocol used for industrial cameras.

This package contains the shared library for %{name}.

%files -n %{libname}
%doc AUTHORS COPYING NEWS.md README.md
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#--------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Aravis-%{api}.typelib

#--------------------------------------------------------------------------

%package -n gstreamer%{gstapi}-%{name}
Summary:	Gstreamer support for %{name}
Group:		Sound

%description -n gstreamer%{gstapi}-%{name}
This package contains the gstreamer plugin for %{name}.

%files -n gstreamer%{gstapi}-%{name}
%doc COPYING
%{_libdir}/gstreamer-%{gstapi}/libgst%{name}.%{api}.so

#--------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}-%{api}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/Aravis-%{api}.gir
%{_datadir}/gtk-doc/html/%{name}-%{api}

#--------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install
rm -rf %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 256 |21cr|arc-5.21p-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	ARC archive compression utility
Name:		arc
Version:	5.21p
Release:	3
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://sourceforge.net/projects/arc/
Source0:	%{name}-%{version}.tar.gz
# Patches from Fedora package
Patch0:		arc-5.21p-directory-traversel.patch
Patch1:		arc-5.21p-fix-arcdie.patch
Patch2:		arc-5.21p-hdrv1-read-fix.patch

%description
ARC is used to create and maintain file archives. Many other new archive
formats exist, but it can stil be useful if you have old .arc files.

%files
%doc Changelog COPYING LICENSE Readme PATCHLEVEL Arcinfo Arc521.doc
%{_bindir}/arc
%{_bindir}/marc
%{_mandir}/man1/arc.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%make OPT="%{optflags}"

%install
install -Dp -m0755 arc %{buildroot}%{_bindir}/arc
install -Dp -m0755 marc %{buildroot}%{_bindir}/marc
install -Dp -m0644 arc.1 %{buildroot}%{_mandir}/man1/arc.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 257 |21cr|arc-dark-rospo-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Arc-Dark-Rospo

Summary:	%{theme_name} theme
Name:		arc-dark-rospo
Version:	1.0
Release:	2
License:        GPLv3+
Group:		Graphics
Url:		https://www.vk.com/xfce_rospo/
Source0:	Arc-Dark-Rospo.tar.bz2
BuildArch:	noarch
Requires: 	arc-dark-rospo-common
Requires: 	arc-dark-rospo-gtk2-theme
Requires: 	arc-dark-rospo-gtk3-theme
Requires: 	arc-dark-rospo-gnome-shell-theme
Requires: 	arc-dark-rospo-metacity-theme
Requires: 	arc-dark-rospo-xfwm4-theme

%description
Fork Arc-Dark GTK2,GTK3,Gnome Shell,XFWM,Metacity theme from ROSPO

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package gnome-shell-theme
Summary:	%{theme_name} gnome-shell themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gnome-shell-theme
Themes for Gnome Shell as part of the %{theme_name} theme

%files gnome-shell-theme
%{_datadir}/themes/%{theme_name}/gnome-shell/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE0} -C %{buildroot}%{_datadir}/themes
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 258 |21cr|arc-rospo-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Arc-Rospo

Summary:	%{theme_name} theme
Name:		arc-rospo
Version:	1.0
Release:	3
License:        GPLv3+
Group:		Graphics
Url:		https://www.vk.com/xfce_rospo/
Source0:	Arc-Rospo.tar.bz2
BuildArch:	noarch
Requires: 	arc-rospo-common
Requires: 	arc-rospo-gtk2-theme
Requires: 	arc-rospo-gtk3-theme
Requires: 	arc-rospo-gnome-shell-theme
Requires: 	arc-rospo-metacity-theme
Requires: 	arc-rospo-xfwm4-theme

%description
Arc GTK2,GTK3,Gnome Shell,XFWM,Metacity theme

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package gnome-shell-theme
Summary:	%{theme_name} gnome-shell themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gnome-shell-theme
Themes for Gnome Shell as part of the %{theme_name} theme

%files gnome-shell-theme
%{_datadir}/themes/%{theme_name}/gnome-shell/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE0} -C %{buildroot}%{_datadir}/themes
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 259 |21cr|ardentryst-1.71-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gitdate		20201007

Summary:	Action/RPG sidescroller
Name:		ardentryst
# See VERSION in ardentryst.py file
Version:	1.71
Release:	1
Epoch: 1
License:	GPLv3+
Group:		Games/Adventure
Url:		https://github.com/ardentryst/ardentryst
# Really a devel snapshot at %%{gitdate}
Source0:		%{name}-%{gitdate}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	python3
BuildArch:	noarch
Requires:	python3-pygame

%description
Ardentryst is an action/RPG sidescroller, focused not just on fighting, but on
story, and character development. Strategy as well as reflexes will be needed
to overcome the game. The game is set in another world.  It is somewhat a
cross between Donkey Kong Country, Mario, Castlevania and Kingdom Hearts.
Ardentryst is focused on a fantasy world. 
The player is guided through a story line which he or her must act in and play
a major role in keeping peace and order in Ardentryst. It features two
playable characters and a variety of weapons, items, armor, monsters, and
beautiful level scenery and graphics.

%files
%doc COPYING* README.md
%{_bindir}/%{name}
%dir %{_datadir}/games/%{name}/
%{_datadir}/games/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}


%build
# Nothing to do


%install
# We cannot use the provided install script:
# do it manually
install -m 755 -d -D %{buildroot}%{_bindir}
install -m 755 -D %{name} %{buildroot}%{_bindir}/%{name}
install -m 755 -d -D %{buildroot}%{_datadir}/games/%{name}/
install -m 755 -d -D %{buildroot}%{_datadir}/pixmaps/
install -m 644 -D icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -m 755 -d -D %{buildroot}%{_datadir}/applications/
install -m 644 -D Ardentryst.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
cp -R * %{buildroot}%{_datadir}/games/%{name}/
chmod +x %{buildroot}%{_datadir}/games/%{name}/%{name}.py

# Drop unwanted stuff
rm -f %{buildroot}%{_datadir}/games/%{name}/%{name}
rm -f %{buildroot}%{_datadir}/games/%{name}/requirements.txt
rm -f %{buildroot}%{_datadir}/games/%{name}/*.md
rm -f %{buildroot}%{_datadir}/games/%{name}/COPYING*
rm -f %{buildroot}%{_datadir}/games/%{name}/Ardentryst.desktop

# Fix provided .desktop file
desktop-file-edit		--remove-key="Encoding" \
								--remove-category="RolePlaying" --add-category="AdventureGame" \
								%{buildroot}%{_datadir}/applications/%{name}.desktop

%if 0
#Install data
cp -R Base %{buildroot}%{_datadir}/games/%{name}/
cp -R Data %{buildroot}%{_datadir}/games/%{name}/
cp -R Demos %{buildroot}%{_datadir}/games/%{name}/
cp -R Fonts %{buildroot}%{_datadir}/games/%{name}/
cp -R Levels %{buildroot}%{_datadir}/games/%{name}/
cp -R Music %{buildroot}%{_datadir}/games/%{name}/
cp -R Saves %{buildroot}%{_datadir}/games/%{name}/
cp -R Screenshots %{buildroot}%{_datadir}/games/%{name}/
cp -R Sounds %{buildroot}%{_datadir}/games/%{name}/
cp dig.dig %{buildroot}%{_datadir}/games/%{name}/
cp mapconfig.xml %{buildroot}%{_datadir}/games/%{name}/

#Small fixes
sed -i s\|RolePlaying\|AdventureGame\;\|g %{buildroot}%{_datadir}/applications/%{name}.desktop
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 260 |21cr|ardesia-1.2-1.20141221.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn_ver 20141221
# w/a for GCC 10
%global optflags %{optflags} -fcommon

Name:           ardesia
Summary:        A free digital sketchpad software
Version:        1.2
Release:        1.%{svn_ver}.2
Source0:        http://ardesia.googlecode.com/files/%{name}-%{version}-%{svn_ver}.tar.gz
URL:            http://code.google.com/p/ardesia
Group:          Education
License:        GPLv3

BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	libsigsegv-devel
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(atlas)
BuildRequires:	libsigsegv-devel
BuildRequires:	binutils-devel
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	desktop-file-utils

Recommends:    vlc
Recommends:    vlc-plugin-theora
Recommends:    xdg-utils
Recommends:    curtain
Recommends:    florence

%description
Ardesia is the free digital sketchpad software that help you to make colored
free-hand annotations with digital ink everywhere, record them and share on
the network.

%files -f %name.lang
%doc AUTHORS README COPYING NEWS ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/ui/*.glade
%{_datadir}/%{name}/scripts/*.sh
%{_datadir}/%{name}/ui/icons/*
%{_datadir}/%{name}/ui/backgrounds/*
%{_datadir}/%{name}/ui/*.xml
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.*

#-----------------------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}-%{svn_ver}

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std XDG_UTILS=""

%find_lang %{name}

desktop-file-install    --vendor="" \
                        --dir %{buildroot}%{_datadir}/applications \
                        --remove-category="GNOME" \
                        --remove-category="GTK" \
                        --remove-category="Utility" \
                        --add-category="Education" \
                        %{buildroot}%{_datadir}/applications/%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 261 |21cr|ardour-7.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_ld_no_undefined 1
# lang whoes
%global	_files_listed_twice_terminate_build 0

%define	oname Ardour
%define	api %{expand:%(echo "%{version}" | cut -d. -f1)}
%define	vname %{name}%{api}
%define	_appdatadir %{_datadir}/appdata

%define	backends jack,alsa,dummy,pulseaudio
# Not optimal, but otherwise it won't work with our default audio config
%define	default_backend pulseaudio

Summary:	Professional multi-track audio recording application
Name:		ardour
Version:	7.2.0
Release:	2
License:	GPLv2+
Group:		Sound
Url:		https://ardour.org/
Source0:	https://community.ardour.org/srctar/%{oname}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
# QM-DSP library is missing kiss-fft functions (#1494796)
Patch0:	ardour-7.2.0-missing-kissft.patch
# They used a function signature not present in our 11.2.0 libcxx
# and this broke the build: revert the offending commit
Patch1:	ardour-7.2.0-fix-build.patch
BuildRequires:	desktop-file-utils
BuildRequires:	dmalloc
BuildRequires:	doxygen
BuildRequires:	fontconfig
BuildRequires:	gettext
BuildRequires:	gobject-introspection
BuildRequires:	graphviz
BuildRequires:	gtk-doc
BuildRequires:	help2man
BuildRequires:	itstool >= 2.0.0
BuildRequires:	jackit
BuildRequires:	shared-mime-info
BuildRequires:	xdg-utils
BuildRequires:	boost-devel >= 1.56
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(aubio) >= 0.4.9
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(cairo) >= 1.12.0
BuildRequires:	pkgconfig(cairomm-1.0) >= 1.8.4
BuildRequires:	pkgconfig(cppunit) >= 1.12.0
BuildRequires:	pkgconfig(cwiid) >= 0.6.00
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fftw3) >= 3.3.5
BuildRequires:	pkgconfig(flac) >= 1.2.1
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(giomm-2.4) >= 2.32.0
BuildRequires:	pkgconfig(glib-2.0) >= 2.68
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.18
BuildRequires:	pkgconfig(gtkmm-2.4) >= 2.8
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(jack) >= 0.121.0
BuildRequires:	pkgconfig(libarchive) >= 3.0.0
BuildRequires:	pkgconfig(libart-2.0)
BuildRequires:	pkgconfig(libcurl) >= 7.0.0
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libgnomecanvas-2.0) >= 2.30
BuildRequires:	pkgconfig(libgnomecanvasmm-2.6) >= 2.16
BuildRequires:	pkgconfig(liblo) >= 0.26
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libwebsockets) >= 2.0.0
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(lilv-0) >= 0.24.2
BuildRequires:	pkgconfig(lrdf) >= 0.4.0
BuildRequires:	pkgconfig(ltc) >= 1.1.0
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(lv2) >= 1.17.2
BuildRequires:	pkgconfig(ogg) >= 1.1.2
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(pangoft2) >= 1.36.8
BuildRequires:	pkgconfig(pangomm-1.4)
# Not used in Linux builds
#BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(raptor2)
BuildRequires:	pkgconfig(redland)
BuildRequires:	pkgconfig(rubberband)
BuildRequires:	pkgconfig(samplerate) >= 0.1.7
BuildRequires:	pkgconfig(serd-0) >= 0.14.0
BuildRequires:	pkgconfig(sigc++-2.0) >= 2.0
BuildRequires:	pkgconfig(sndfile) >= 1.0.18
BuildRequires:	pkgconfig(sord-0) >= 0.8.0
BuildRequires:	pkgconfig(soundtouch)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(sratom-0) >= 0.4.0
BuildRequires:	pkgconfig(suil-0) >= 0.6.0
BuildRequires:	pkgconfig(taglib) >= 1.9
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(vamp-sdk) >= 2.1
BuildRequires:	pkgconfig(vamp-hostsdk)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

Requires:	jackit
Requires:	gtk-clearlooks-engine

# To ensure that all LV2 plugins will work properly
Requires:	suil-gtk2-in-qt5
Requires:	suil-qt5-in-gtk2
Requires:	suil-qt5-in-gtk3
Requires:	suil-x11-in-qt5
Requires:	suil-x11-in-gtk2
Requires:	suil-x11-in-gtk3

Provides:		ardour7 = %{EVRD}
Conflicts:		ardour6
Conflicts:		ardour5
Conflicts:		ardour3
Conflicts:		ardour4

%description
This software is a digital audio workstation. You can use it to record, edit
and mix multi-track audio. You can produce your own CDs, mix video sound
tracks, or just experiment with new ideas about music and sound.
Program capabilities include: multi channel recording, non-destructive editing
with unlimited undo/redo, full automation support, a powerful mixer, unlimited
tracks/busses/plugins, time-code synchronization, and hardware control from
surfaces like the Mackie Control Universal.

Now Ardour provides a pulseaudio back-end, but it is still better to have
jackd running. If you are new to jackd, try qjackctl.
See also the online user manual: https://manual.ardour.org/toc/.

%files
%doc README COPYING TRANSLATORS
%{_bindir}/%{vname}
%{_bindir}/%{vname}-copy-mixer
%{_bindir}/%{vname}-export
%{_bindir}/%{vname}-lua
%{_bindir}/%{vname}-new_empty_session
%{_bindir}/%{vname}-new_session
%{_bindir}/gcc-glibmm-abi-check
%{_libdir}/%{vname}
%{_datadir}/%{vname}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/%{vname}.png
%{_iconsdir}/hicolor/*/mimetypes/application-x-%{name}.png
%dir %{_sysconfdir}/%{vname}
%config(noreplace) %{_sysconfdir}/%{vname}/%{name}.keys
%config(noreplace) %{_sysconfdir}/%{vname}/%{name}.menus
%config(noreplace) %{_sysconfdir}/%{vname}/clearlooks.rc
%config(noreplace) %{_sysconfdir}/%{vname}/clearlooks.ardoursans.rc
%config(noreplace) %{_sysconfdir}/%{vname}/default_ui_config
%config(noreplace) %{_sysconfdir}/%{vname}/system_config
%{_appdatadir}/*.appdata.xml
%{_mandir}/man1/*
#{_mandir}/*/man1/*

%post
sed 's|#DefaultLimitNOFILE=|DefaultLimitNOFILE=1048576|' -i /etc/systemd/system.conf
sed 's|#DefaultLimitNOFILE=|DefaultLimitNOFILE=1048576|' -i /etc/systemd/user.conf

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# Don't use python2 
find . -name wscript -o -name waf -o -name '*.py' | xargs sed -i -e '1{s|^#!.*python$|#!/usr/bin/python3|}'


%build
./waf configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--configdir=%{_sysconfdir} \
	--program-name=%{oname} \
%ifarch %{ix86} x86_64
	--arch="%{optflags} -msse -mfpmath=sse -DUSE_XMMINTRIN" \
%else
	--arch="%{optflags}" \
%endif
	--backtrace \
	--cxx11 \
	--debug-symbols \
	--docs \
	--freedesktop \
	--lxvst \
	--nls \
	--noconfirm \
	--no-phone-home \
	--optimize \
	--with-backends=%{backends}

./waf build  --nls --docs
./waf i18n_mo


%install
# %%waf_install breaks the installing
./waf install --destdir=%{buildroot}

install -m755 build/tools/gccabicheck/gcc-glibmm-abi-check %{buildroot}%{_bindir}/


# Install a menu entry...
cat>%{name}.desktop<<EOF
[Desktop Entry]
Name=%{oname}
Name[ru]=%{oname}
GenericName=%{vname}
GenericName[en_GB]=%{vname}
GenericName[ru]=%{vname}
Comment=Ardour Digital Audio Workstation
Comment[en_GB]=Digital Audio Workstation
Comment[ru]=Ardour — цифровая звуковая рабочая станция
Exec=%{vname}
Icon=%{vname}
Terminal=false
MimeType=application/x-%{name};
StartupNotify=true
Type=Application
Categories=AudioVideo;Audio;X-AudioEditing;X-Recorders;X-Multitrack;X-Jack;GTK;

EOF

desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop
# ... in place of the installed one
rm -f %{buildroot}%{_datadir}/applications/%{vname}.desktop


# Install appdata
install -d -m755 %{buildroot}%{_appdatadir}
cp -pr build/gtk2_ardour/%{vname}.appdata.xml %{buildroot}%{_appdatadir}


# Symlink icon mimetypes into the right folders
install -d -m 0755 %{buildroot}%{_iconsdir}
for i in 16 22 32 48; do
	install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/mimetypes
	ln -s %{_datadir}/%{vname}/icons/application-x-%{name}_${i}px.png \
		%{buildroot}%{_iconsdir}/hicolor/${i}x${i}/mimetypes/application-x-%{name}.png
done


# Install man pages
install -d -m755 %{buildroot}%{_mandir}/man1
install -p -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
# No localized man pages??
#for fromfile in %%{name}.1.??; do
#	lang="${fromfile#%%{name}.1.}"
#	todir="%%{buildroot}%%{_mandir}/${lang}/man1"
#	tofile="${todir}/%%{name}.1"
#	install -d -m755 "$todir"
#	install -p -m644 "$fromfile" "$tofile"
#done


# Drop empty hidden file
rm -f %{buildroot}%{_datadir}/%{vname}/templates/.stub

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 262 |21cr|ares-135-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# It's possible to setup system build flags properly
# but let's keep it for now as is
%define debug_package %{nil}

Summary:	Multi System Emulator
Name:		ares
Version:	135
Release:	1
License:	ISC
Group:		Emulators
Url:		https://ares-emu.net/
Source0:	https://github.com/ares-emulator/ares/archive/refs/tags/%{name}-%{version}.tar.gz
# OpenSUSE patch origin: disable build of n64 core, fix building for aarch64
Patch0:		ares-fix-building-for-aarch64.patch
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrandr)
ExcludeArch:	%{e2k}

%description
Multi System Emulator ares is a cross-platform, open source,
multi-system emulator, focusing on accuracy and preservation.

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/Shaders/
%{_datadir}/%{name}/Database/
%{_iconsdir}/hicolor/256x256/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

# disable n64 core for aarch64 because n64 core can not be build for aarch64
%ifarch aarch64
%patch0 -p1
%endif

%build
%make \
	local=false \
	openmp=true \
	hiro=gtk3 \
	compiler=g++ \
	-C desktop-ui

%install
# See makefile
mkdir -p %{buildroot}%{_bindir}/
cp desktop-ui/out/%{name} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications/
cp desktop-ui/resource/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
cp desktop-ui/resource/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
mkdir -p %{buildroot}%{_datadir}/%{name}/Database/
cp -R mia/Database/* %{buildroot}%{_datadir}/%{name}/Database/
mkdir -p %{buildroot}%{_datadir}/%{name}/Shaders/
cp -R ares/Shaders/* %{buildroot}%{_datadir}/%{name}/Shaders/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 263 |21cr|argtable2-13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       argtable2
Version:    13
Release:    4
License:    LGPLv2+
Group:      Development/C
Summary:    A library for parsing GNU style command line arguments
URL:        http://argtable.sourceforge.net/
Source0:    http://downloads.sourceforge.net/argtable/%{name}-%{version}.tar.gz

%description
Argtable is an ANSI C library for parsing GNU style command line arguments.
It enables a program's command line syntax to be defined in the source
code as an array of argtable structs. The command line is then parsed
according to that specification and the resulting values are returned in
those same structs where they are accessible to the main program. Both tagged
(-v, --verbose, --foo=bar) and untagged arguments are supported, as are
multiple instances of each argument. Syntax error handling is automatic and
the library also provides the means for displaying the command line syntax
directly from the array of argument specifications.
Argtable can function as a "getopt_long" replacement, without the user
of the program noticing the difference. Unlike "getopt_long", argtable is
cross platform and works on Windows and Mac as well as Posix systems.

%package devel
Group:      Development/C
Summary:    Development libraries and headers for the %{name} library
Requires:   %{name} = %{version}-%{release}

%description devel
Development libraries and headers for use in building applications that
use the %{name} library.

%package doc
Group:      Development/C
Summary:    Documentation for the %{name} library
Requires:   %{name} = %{version}-%{release}
BuildArch:  noarch

%description doc
The %{name}-doc package contains documentation for using
the %{name} library.

%prep
%setup -q

%build
%configure \
    --enable-static=no \
    --docdir=%{_defaultdocdir}/%{name}-doc-%{version} \
    --target=%{_target_platform}
%make

%install
%makeinstall_std
find %{buildroot} -type f -name '*.la' -exec rm -f {} \;

%check
%make check

%files
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/*.so.*
%{_mandir}/man3/*

%files devel
%{_includedir}/argtable2.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

%files doc
%doc %{_defaultdocdir}/%{name}-doc-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 264 |21cr|argus-3.0.8.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Network transaction audit tool
Name:		argus
Version:	3.0.8.2
Release:	5
License:	GPLv3+
Group:		System/Servers
Url:		http://qosient.com/argus/
Source0:	http://qosient.com/argus/src/argus-%{version}.tar.gz
Source3:	argus.service
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libsasl-devel
BuildRequires:	libwrap-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(zlib)
Requires(post,preun):	rpm-helper
Requires(post,preun):	systemd

%description
Argus (Audit Record Generation and Utilization System) is an IP network
transaction audit tool. The data generated by argus can be used for a
wide range of tasks such as network operations, security and performance
management.

%files
%defattr(0644,root,root,0755)
%doc COPYING CREDITS INSTALL README VERSION doc support
%attr(0755,root,root) %{_bindir}/*
%attr(0755,root,root) %{_sbindir}/argus
%{_mandir}/man5/argus.conf.5*
%{_mandir}/man8/argus.8*
%dir %{_localstatedir}/lib/%{name}
%dir %{_localstatedir}/lib/%{name}/archive
%attr(0755,root,root) %{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/argus.conf

%post
%_post_service %{name}.service

%preun
%_preun_service %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CPPFLAGS="-I%{_includedir}/sasl"
%configure \
	--with-sasl=yes
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_bindir}
cp -a bin/argusbug %{buildroot}%{_bindir}/argusbug

mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/archive

mkdir -p %{buildroot}%{_sysconfdir}
cp -a support/Config/argus.conf %{buildroot}%{_sysconfdir}/argus.conf

perl -pi -e 's|/var/log/argus|%{_localstatedir}/lib/%{name}|;' \
         -e 's|^#ARGUS_BIND_IP|ARGUS_BIND_IP|;' \
         -e 's|^#ARGUS_ACCESS_PORT|ARGUS_ACCESS_PORT|;' \
         %{buildroot}%{_sysconfdir}/argus.conf

mkdir -p %{buildroot}%{_unitdir}
cp -a %{SOURCE3} %{buildroot}%{_unitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 265 |21cr|argus-clients-3.0.8.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sdevname %mklibname %{name} -d -s

# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Client tools for argus network audit
Name:		argus-clients
Version:	3.0.8.2
Release:	6
License:	GPLv2+
Group:		Networking/Other
Url:		http://qosient.com/argus/
Source0:	http://qosient.com/argus/src/%{name}-%{version}.tar.gz
Patch0:		argus-clients-3.0.2-fix-str-fmt.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libsasl-devel
BuildRequires:	mysql-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(ncurses)

%description
Clients to the argus probe which process and display information.

%files
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/*
%{_sbindir}/radium
%{_prefix}/argus
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library and header files for the %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 3.0.7.7-4
Obsoletes:	%{name}-devel < 3.0.7.7-4

%description -n %{sdevname}
Static library and header files for the %{name}.

%files -n %{sdevname}
%{_includedir}/argus/*
%{_libdir}/*.a
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 266 |21cr|ario-1.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude devel\\(.*|libaudioscrobbler\\.so\\.0.*|libfilesystem\\.so\\.0.*|libinformation\\.so\\.0.*|liblibnotify\\.so\\.0.*|libmmkeys\\.so\\.0.*|libradios\\.so\\.0.*|libwikipedia\\.so\\.0.*
%global __requires_exclude libaudioscrobbler\\.so\\.0.*|libfilesystem\\.so\\.0.*|libinformation\\.so\\.0.*|liblibnotify\\.so\\.0.*|libmmkeys\\.so\\.0.*|libradios\\.so\\.0.*|libwikipedia\\.so\\.0.*

Summary:	A GTK+ client for MPD
Name:		ario
Version:	1.6
Release:	3
Group:		Sound
License:	GPLv2+
Url:		http://ario-player.sourceforge.net/
Source0:	https://sourceforge.net/projects/ario-player/files/ario-player/%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		ario-1.6-fix-window-size-with-long-tags.patch
Patch1:		ario-1.6-fix-compilation-warnings.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmpdclient)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(unique-1.0)
Requires:	mpd

%description
A GTK+ client for MPD (Music player daemon). The interface used to browse the
library is inspired by Rhythmbox but Ario aims to be much lighter and faster.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_libdir}/%{name}
%{_bindir}/%{name}
%{_iconsdir}/*/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Configure force prefix == /usl/local and then does not propagate the changes
# the the makefile for lang
sed -i 's|ac_default_prefix=/usr/local|ac_default_prefix=/usr|g' configure


%build
# Using our configure macros makes the build
# fail with boatloads of linking errors
./configure \
	--libdir="%{_libdir}" \
	--bindir="%{_bindir}" \
	--datadir="%{_datadir}" \
	--disable-static




%make


%install
%makeinstall_std

%find_lang %{name}

rm -f %{buildroot}%{_iconsdir}/hicolor/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 267 |21cr|arj-3.10.22-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	File compression and packaging utility compatible with ARJ for MS-DOS
Name:		arj
Version:	3.10.22
Release:	16
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://arj.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/arj/%{name}-%{version}.tar.bz2
Patch:		arj-3.10.21-debian-arches-align.patch
Patch1:		arj-3.10.22-fix_format_string.patch
Patch2:		arj-3.10.2-fix_strnlen_redefinition.patch
Patch3:		arj-3.10.22-quotes.patch
Patch6:		arj-3.10.22-debian-security-afl.patch
Patch7:		arj-3.10.22-debian-security-traversal-dir.patch
Patch8:		arj-3.10.22-debian-security-traversal-symlink.patch
BuildRequires:	automake

%description
A portable version of the ARJ archiver, available for a growing number
of DOS-like and UNIX-like platforms on a variety of architectures.
This aims for compatibility with the original ARJ archiver by ARJ
Software, Inc.

%files
%doc doc/*
%{_bindir}/arj
%{_bindir}/arj-register
%{_bindir}/arjdisp
%{_bindir}/rearj
%dir %{_libdir}/arj/
%{_libdir}/arj/arjcrypt.so
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p1
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

cd gnu
# (misc) fix compile on x86_64, as the platform is otherwise not recognized
# by the current config.sub
cp /usr/share/automake-*/config.sub .
autoconf

%build
cd gnu
%configure
cd ..
make prepare
#disable binary strippings
#gw strange errors from the postproc command
make ADD_LDFLAGS="" || make || make || make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 268 |21cr|armagetron-0.2.9.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	oname armagetronad

Summary:	Another 3d lightcycle game using OpenGL
Name:		armagetron
Version:	0.2.9.1.0
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://armagetronad.net/
Source0:	https://gitlab.com/armagetronad/armagetronad/-/archive/v%{version}/%{oname}-v%{version}.tar.bz2
Patch0:		armagetronad-0.2.9.1.0-fix-empty-master_srv.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.6.11
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(x11)

%description
Another very nice and networked Tron game using OpenGL. Armagetron Advanced is
the continuation of the original Armagetron game.

%files
%doc AUTHORS COPYING.txt NEWS README
%dir %{_sysconfdir}/%{oname}
%config(noreplace) %{_sysconfdir}/%{oname}/*
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{oname}
%{_gamesdatadir}/%{oname}
%{_datadir}/applications/org.%{oname}.%{oname}.desktop
%{_datadir}/metainfo/%{oname}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{oname}.png
%{_defaultdocdir}/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-v%{version}
%patch0 -p1


%build
./bootstrap.sh
export CXXFLAGS="-I. -I.. -I../.. `sdl-config --cflags` %{optflags} -fpermissive"
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir} \
	--enable-music \
	--disable-games \
	--disable-uninstall \
	--with-x

%make


%install
%makeinstall_std

# Provide a launcher script
cat <<EOF >%{buildroot}%{_gamesbindir}/%{name}
#!/bin/sh -e

REALTRON=%{_gamesbindir}/%{oname}

DATADIR=%{_gamesdatadir}/%{oname}
CONFDIR=%{_sysconfdir}/%{oname}
USERCONFDIR=\$HOME/.%{name}
USERDATADIR=\$USERCONFDIR/data
VARDIR=\$HOME/.%{name}
AUTORESOURCEDIR=\$HOME/.%{name}/resource
if [ ! -d \$USERCONFDIR ]; then
	# have to create configuration directory
	install -d \$USERCONFDIR
fi
if [ -f \$HOME/.%{name}rc ]; then
	# upgrade from before 0.2
	mv -f \$HOME/.%{name}rc \$USERCONFDIR/user.cfg
fi
# remove empty master.srv file created by earlier revisions
if [ -r \$USERCONFDIR/master.srv ] && ! [ -s \$USERCONFDIR/master.srv ]; then
  rm -f \$USERCONFDIR/master.srv
fi

CMDLINE="--datadir \$DATADIR --configdir \$CONFDIR --userconfigdir \$USERCONFDIR --vardir \$VARDIR --autoresourcedir \$AUTORESOURCEDIR"
if [ -d \$USERDATADIR ]; then
	CMDLINE="\$CMDLINE --userdatadir \$USERDATADIR"
fi
exec \$REALTRON \$CMDLINE "\$@"
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{name}

# Place correctly the provided .desktop file...
mkdir -p %{buildroot}%{_datadir}/applications
mv %{buildroot}%{_gamesdatadir}/%{oname}/desktop/org.%{oname}.%{oname}.desktop %{buildroot}%{_datadir}/applications/
# ... and do the same with the provided icons...
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
mv %{buildroot}%{_gamesdatadir}/%{oname}/desktop/icons/16x16/%{oname}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/
mv %{buildroot}%{_gamesdatadir}/%{oname}/desktop/icons/32x32/%{oname}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/
mv %{buildroot}%{_gamesdatadir}/%{oname}/desktop/icons/48x48/%{oname}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/
# ... and with the docs
mv %{buildroot}%{_gamesdatadir}/doc %{buildroot}%{_datadir}

# Fix perms
chmod +x %{buildroot}%{_gamesdatadir}/%{oname}/language/update.py
chmod -x %{buildroot}%{_sysconfdir}/%{oname}/rc.config

# Remove unwanted stuff
rm -rf %{buildroot}%{_gamesdatadir}/%{oname}/{desktop,scripts}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 269 |21cr|armorpaint-0.9-0.gite8b7d1.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define commit e8b7d18c57c82d02c9b76d6618e8837473b08737
%define commit_short %(echo %{commit} | head -c6)

Summary:	Software for 3D PBR texture painting
Name:		armorpaint
Version:	0.9
Release:	0.git%{commit_short}.2
License:	zlib
Group:		Graphics
Url:		https://github.com/armory3d/armortools/tree/main/armorpaint
# repack with git clone https://github.com/armory3d/armortools --single-branch && git checkout %{commit}
# git submodule update --init --recursive and tar.gz source dir
Source0:	armortools-%{commit}.tar.gz
Source1:	armorpaint_wrapper
Source2:	armorpaint.desktop
BuildRequires:	git-core
BuildRequires:	clang
BuildRequires:	ninja
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	mesa-common-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(udev)
# aarch64 build not supported, upstream say^ may be in future
ExclusiveArch:	%{x86_64}

%description
ArmorPaint is a stand-alone software designed for physically-based texture painting. 
Drag & drop your 3D models and start painting. Receive instant visual feedback 
in the viewport as you paint.

%files
%license LICENSE.md
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/armorpaint

#------------------------------------------------------------------

%prep
%autosetup -p1 -n armortools

%build
pushd armorpaint
../armorcore/Kinc/make --from ../armorcore -g opengl --compiler clang --compile
popd

%install
# install wrapper script
install -d %{buildroot}%{_bindir}
install -m0755 %{SOURCE1} %{buildroot}%{_bindir}/armorpaint

# install main binary and krom
install -d %{buildroot}%{_datadir}/armorpaint
install -m0755 ./armorpaint/build/Release/ArmorPaint %{buildroot}%{_datadir}/armorpaint/
cp -r ./armorpaint/build/krom %{buildroot}%{_datadir}/armorpaint/

# install desktop file and icon
install -d %{buildroot}%{_datadir}/applications
install -d %{buildroot}%{_datadir}/pixmaps
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/applications
install -m0644 ./armorpaint/icon.png %{buildroot}%{_datadir}/pixmaps/armorpaint.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 270 |21cr|arora-0.11.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		arora
Version:	0.11.0
Release:	6
License:	GPLv2+
URL:		http://code.google.com/p/arora/
BuildRequires:	qt4-devel >= 3:4.4
Buildrequires:	qt4-linguist
#Source:		http://arora.googlecode.com/files/%name-%version.tar.gz
Source:		arora-20120617.tar.xz
Group:		Networking/WWW
Provides:	webclient
Summary:	Cross Platform WebKit Browser

%description
Arora is a simple cross platform web browser. Currently Arora is a very
basic browser whose feature list includes things like "History" and
"Bookmarks".

%prep
%setup -q -n %name

%build
%qmake_qt4 PREFIX=%_prefix 
%make

%install
rm -fr %buildroot
make install INSTALL_ROOT=%{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_bindir}/arora-cacheinfo
%{_bindir}/arora-placesimport
%{_bindir}/htmlToXBel
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/pixmaps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 271 |21cr|arpack-3.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	build_parpack 1
# To build PARPACK, we need a FORTRAN 77 MPI implementation:
# only one of mpich and openmpi; we use openmpi.
%define	build_mpich 0
%define	build_openmpi 1

#global	_disable_ld_no_undefined	1

%define	major		2
%define	libname		%mklibname %{name} %{major}
%define	develname	%mklibname %{name} -d
%if %{build_parpack}
%define	plibname	%mklibname p%{name} %{major}
%define	pdevelname	%mklibname p%{name} -d
%endif

Summary:	Fortran 77 subroutines for solving large scale eigenvalue problems
Name:		arpack
Version:	3.8.0
Release:	1
Group:		Sciences/Mathematics
License:	BSD
Url:		https://github.com/opencollab/arpack-ng
Source0:	https://github.com/opencollab/arpack-ng/archive/%{version}/%{name}-ng-%{version}.tar.gz
BuildRequires:	autoconf
BuildRequires:	gcc-gfortran
BuildRequires:	blas-devel
BuildRequires:	lapack-devel
%if %{build_parpack}
%if %{build_mpich}
BuildRequires:	mpi2f77
%endif
%if %{build_openmpi}
BuildRequires:	openmpi
BuildRequires:	openmpi-devel
%endif
%endif
Provides:	%{name}-ng = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{plibname} = %{EVRD}

%description
ARPACK is a collection of Fortran 77 subroutines designed to solve large scale
eigenvalue problems. The package is designed to compute a few eigenvalues and
corresponding eigenvectors of a general n by n matrix A. It is most
appropriate for large sparse or structured matrices A, where structured means
that a matrix-vector product w <- Av requires order n rather than the usual
order n**2 floating point operations.
This software is based upon an algorithmic variant of the Arnoldi process
called the Implicitly Restarted Arnoldi Method (IRAM).

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime libraries for ARPACK
Group:		Sciences/Mathematics

%description -n %{libname}
ARPACK is a collection of Fortran 77 subroutines designed to solve large scale
eigenvalue problems.
This package contains runtime libraries needed to run arpack based
applications.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Files needed for developing ARPACK based applications
Group:		Sciences/Mathematics
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}-ng-devel = %{EVRD}

%description -n %{develname}
ARPACK is a collection of Fortran 77 subroutines designed to solve large scale
eigenvalue problems.
This package contains the devel files used for building ARPACK based
applications.

%files -n %{develname}
%doc README.md TODO CHANGES COPYING PARPACK_CHANGES EXAMPLES DOCUMENTS
%{_includedir}/%{name}/*.h
%{_libdir}/cmake/%{name}-ng/%{name}-ng-config*.cmake
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/p%{name}.pc

#-----------------------------------------------------------------------------

%if %{build_parpack}
%package -n %{plibname}
Summary:	Runtime libraries for PARPACK
Group:		Sciences/Mathematics

%description -n %{plibname}
ARPACK is a collection of Fortran 77 subroutines designed to solve large scale
eigenvalue problems. 
This package contains runtime libraries needed to run arpack based
applications: a parallel version of ARPACK that utilizes MPI.

%files -n %{plibname}
%doc COPYING
%{_libdir}/libp%{name}.so.*

#-----------------------------------------------------------------------------

%package -n %{pdevelname}
Summary:	Files needed for developing ARPACK based applications
Group:		Sciences/Mathematics
Requires:	%{libname} = %{EVRD}
Requires:	%{plibname} = %{EVRD}
Provides:	p%{name}-devel = %{EVRD}

%description -n %{pdevelname}
PARPACK is a collection of Fortran 77 subroutines designed to solve large scale
eigenvalue problems: a parallel version of ARPACK that utilizes MPI.
This package contains the devel files used for building PARPACK based
applications.

%files -n %{pdevelname}
%doc COPYING
%{_libdir}/libp%{name}.so
%endif

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-ng-%{version}

# Whoa, a logical XOR implementation for RPM!
# mpich and openmpi are mutually exclusive
%if !(%{build_mpich} || %{build_openmpi}) || (%{build_mpich} && %{build_openmpi})
%{error:either MPICH or OpenMPI should be chosen}
exit 1
%endif


%build
export LIBS="-lgfortran -lm"
# The Autoconf ax_mpi.m4 file doesn't detect correct library sets.
%if %{build_mpich}
export MPILIBS="-lfmpich -lpmpich -lmpich"
%endif
%if %{build_openmpi}
export MPILIBS="-lmpi_mpifh"
%endif
autoreconf -vfi
%configure \
%if %{build_parpack}
		--enable-mpi \
%endif
		--disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 272 |21cr|arpalert-2.0.12-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A monitor ethernet networks
Name:		arpalert
Version:	2.0.12
Release:	10
License:	GPLv2+
Group:		Monitoring
Url:		http://www.arpalert.org/
Source0:	http://www.arpalert.org/src/%{name}-%{version}.tar.gz
Source1:	arpalert.service
Source2:	arpalert-tmpfiles.conf
Patch0:		arpalert-2.0.9-fix-str-fmt.diff
Patch1:		0005-gcc10.patch
Patch2:		0007-remove-sysctl.patch
BuildRequires:	pcap-devel
Requires(post,preun):	systemd
Requires(pre,postun):	rpm-helper

%description
This software is used for monitoring ethernet networks. It listens on a network
interface (without using 'promiscuous' mode) and catches all conversations of
MAC address to IP request. It then compares the mac addresses it detected with
a pre-configured list of authorized MAC addresses. If the MAC is not in list,
arpalert launches a pre-defined user script with the MAC address and IP address
as parameters. This software can run in daemon mode; it's very fast (low CPU
and memory consumption). It responds at signal SIGHUP (configuration reload)
and at signals SIGTERM, SIGINT, SIGQUIT and SIGABRT (arpalert stops itself).

%files
%doc CHANGES COPYING README
%attr(0644,root,root) %{_unitdir}/%{name}.service
%dir %{_sysconfdir}/arpalert
%config(noreplace) %{_sysconfdir}/arpalert/*
%{_sbindir}/arpalert
%{_mandir}/man8/arpalert.8*
%dir %attr(0755,%{name},%{name}) %{_localstatedir}/log/%{name}
%ghost %dir %attr(0755,%{name},%{name}) %{_localstatedir}/run/%{name}
%dir %attr(0755,%{name},%{name}) %{_localstatedir}/lib/%{name}
%{_tmpfilesdir}/%{name}.conf

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/sh

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post %{name}

%preun
%systemd_preun %{name}

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1

mv configure.in configure.ac

%build
autoreconf -fi
%serverbuild
%configure \
	--localstatedir=%{_localstatedir}

perl -pi -e "s|^lock_dir.*|lock_dir=%{_localstatedir}/run/%{name}|g" Makefile
perl -pi -e "s|^log_dir.*|log_dir=%{_localstatedir}/log/%{name}|g" Makefile
%make

%install
%makeinstall_std

install -d %{buildroot}%{_tmpfilesdir}
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_localstatedir}/log/%{name}
install -d %{buildroot}%{_localstatedir}/run/%{name}
install -d %{buildroot}%{_localstatedir}/lib/%{name}

install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

install -m0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

sed "s:sysconfig:%{_sysconfdir}/sysconfig:" -i %{buildroot}%{_unitdir}/%{name}.service

# cleanup
rm -f %{buildroot}%{_includedir}/arpalert.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 273 |21cr|arpd-0.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ARP reply daemon
Name:		arpd
Version:	0.2
Release:	18
License:	BSD
Group:		System/Servers
Url:		http://niels.xtdnet.nl/honeyd/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.init.bz2
Source2:	%{name}.sysconfig.bz2
Patch0:		arpd-0.2-gcc34.diff
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	dnet-devel
BuildRequires:	libevent0.9-devel
BuildRequires:	pcap-devel
Requires(preun,post):	rpm-helper

%description
arpd replies to any ARP request for an IP address matching the
specified destination net with the hardware MAC address of the
specified interface, but only after determining if another host
already claims it.

%files
%doc LICENSE
%config(noreplace) %attr(0755,root,root) %{_initrddir}/%{name}
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0644,root,root) %{_mandir}/man8/%{name}.8*

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p0

# libevent0.9 fix
perl -pi -e "s|event\.h|libevent0\.9\.h|g" *
perl -pi -e "s|libevent\.a|libevent0\.9\.a|g" *

# lib64 fix
perl -pi -e "s|\\\$withval/lib/|\\\${libdir}/|g" configure*
perl -pi -e "s|\\\$withval/lib |\\\${libdir} |g" configure*
perl -pi -e "s|\-L\\\${prefix}/lib|\-L\\\${libdir}|g" configure*
perl -pi -e "s|\\\${prefix}/lib/|\\\${libdir}/|g" configure*
perl -pi -e "s|\-levent|\-levent0.9|g" configure*

bzcat %{SOURCE1} > %{name}.init
bzcat %{SOURCE2} > %{name}.sysconfig

%build
autoreconf -fi
export CPPFLAGS="%{optflags} -fPIC"
%configure
%make

%install
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8

install -m755 %{name} %{buildroot}%{_sbindir}/%{name}
install -m644 %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8

install -m755 %{name}.init %{buildroot}%{_initrddir}/%{name}
install -m644 %{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 274 |21cr|arping-2.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ARP Ping
Name:		arping
Version:	2.23
Release:	1
License:	GPLv2+
Group:		Networking/Other
URL:		http://www.habets.pp.se/synscan/programs.php?prog=arping
Source0:	http://www.habets.pp.se/synscan/files/%{name}-%{version}.tar.gz
BuildRequires:	libnet-devel
BuildRequires:	libpcap-devel
Conflicts:	iputils

%description
Arping is a util to find out it a specific IP address on the LAN is 'taken'
and what MAC address owns it. Sure, you *could* just use 'ping' to find out if
it's taken and even if the computer blocks ping (and everything else) you still
get an entry in your ARP cache. But what if you aren't on a routable net? Or
the host blocks ping (all ICMP even)? Then you're screwed. Or you use arping.

%files
%doc README extra/arping-scan-net.sh
%attr(0755,root,root) %{_sbindir}/*
%attr(0644,root,root) %{_mandir}/man8/%{name}.8*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 275 |21cr|arprelease-1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to flush ARP cache entries from devices
Name:		arprelease
Version:	1.2
Release:	9
License:	GPLv2+
Group:		Networking/Other
Url:		http://arprelease.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/arprelease/%{name}-%{version}.tar.bz2
BuildRequires:	libnet-devel

%description
arprelease is a small libnet-based tool to flush ARP cache entries from
devices like Cisco routers to move an IP from one Linux box to another.

%files
%doc README
%{_sbindir}/arprelease

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
gcc %{optflags} `libnet-config --defines` arprelease.c -o arprelease `libnet-config --libs`

%install
install -d %{buildroot}%{_sbindir}
install -m0755 arprelease  %{buildroot}%{_sbindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 276 |21cr|arpscan-0.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Very simple ARP scanner
Name:           arpscan
Version:        0.10
Release:        5
License:	GPLv2
Group:		Networking/Other
URL:		http://wizard.ae.krakow.pl/~jb/arpscan/
Source0:	http://wizard.ae.krakow.pl/~jb/arpscan/%{name}-%{version}.tar.gz
Source1:	http://standards.ieee.org/regauth/oui/oui.txt.bz2
BuildRequires:	gawk

%description
Arpscan is a utility that scans local network using ARP protocol
and reports alive hosts. Program is designed for Linux.

%prep
%setup -q
bzcat %{SOURCE1} > oui.txt

%build
%make \
    CC=%{__cc} \
    CFLAGS="%{optflags} -DVER=\$(VERSION) -DOUI=\$(OUI)" \
    OUI=%{_datadir}/%{name}/oui
gawk -f oui.awk oui.txt > oui

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_datadir}/%{name}/
install -m0755 %{name} %{buildroot}%{_sbindir}/%{name}
install -m0644 oui %{buildroot}%{_datadir}/%{name}/oui

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%attr(0755,root,root) %{_sbindir}/*
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 277 |21cr|arp-scan-1.9.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ARP scanning and fingerprinting tool
Name:		arp-scan
Version:	1.9.7
Release:	1
License:	BSD
Group:		Networking/Other
Url:		http://www.nta-monitor.com/tools/arp-scan
Source0:	http://www.nta-monitor.com/files/arp-scan/arp-scan-%{version}.tar.gz 
BuildRequires:	pcap-devel

%description
arp-scan is a command-line tool that uses the ARP protocol to discover and
fingerprint IP hosts on the local network.

%files
%{_bindir}/arp-fingerprint
%{_bindir}/arp-scan
%{_bindir}/get-iab
%{_bindir}/get-oui
%{_datadir}/arp-scan
%{_mandir}/man1/arp-fingerprint.1*
%{_mandir}/man1/arp-scan.1*
%{_mandir}/man1/get-iab.1*
%{_mandir}/man1/get-oui.1*
%{_mandir}/man5/mac-vendor.5*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 278 |21cr|arpsend-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sends an Ethernet frame containing an IP ARP request or reply packet
Name:		arpsend
Version:	1.2.4
Release:	1
License:	BSD
Group:		System/Kernel and hardware
Url:		http://www.net.princeton.edu/software/arpsend/
Source0:	http://www.net.princeton.edu/software/arpsend/%{name}-%{version}.tar.gz
BuildRequires:	libnet-devel

%description
arpsend sends an Ethernet frame containing an IP ARP request or reply packet
containing fields you specify. This is a diagnostic tool intended for use by
network administrators.

%files
%{_bindir}/arpsend
%{_mandir}/man8/arpsend*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 279 |21cr|arptables-0.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Userspace control program for the arptables network filter
Name:		arptables
Version:	0.0.4
Release:	4
Group:		System/Kernel and hardware
License:	GPLv2
URL:		http://ebtables.sourceforge.net/
Source0:	https://sourceforge.net/projects/ebtables/files/arptables/arptables-v0.0.4/%{name}-v%{version}.tar.gz
BuildRequires:  kernel-devel
BuildRequires:  kernel-headers

%description
The arptables utility controls the arpfilter network packet
filtering code in the Linux kernel. You do not need this program
for normal network firewalling. If you need to manually control
which arp requests and/or replies this machine accepts and sends,
you should install this package.

%prep
%setup -qn %{name}-v%{version}

%build
%make COPT_FLAGS="%{optflags}" KERNEL_DIR=/usr/src/linux/include

%install
install -d %{buildroot}/sbin
install -d %{buildroot}%{_mandir}/man8
install -m755 arptables %{buildroot}/sbin/
install -m644 arptables.8 %{buildroot}%{_mandir}/man8/

%clean

%files
%defattr(-,root,root,0755)
#%doc ChangeLog INSTALL THANKS
%attr(0755,root,root) /sbin/arptables
%attr(0644,root,root) %{_mandir}/man8/arptables.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 280 |21cr|arpwatch2html-0.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert the arpwatch flat-file into html
Name:		arpwatch2html
Version:	0.9
Release:	10
License:	GPL
Group:		System/Base
URL:		http://sisms.no-ip.com/software/arpwatch2html/
Source0:	arpwatch2html.pl.bz2
Requires:	arpwatch
BuildArch:	noarch

%description
arpwatch2html is a script to convert the arpwatch flat-file
database into a nice looking HTML page. It can sort arpwatch
entries by time, MAC address, IP address, or host name. Users can
select which fields from the address pairing database are to be
shown, and can omit old entries. It can also show the most recent
messages sent by arpwatch to the syslog daemon. 

%prep

%setup -q -T -c -n %{name}-%{version}
bzcat %{SOURCE0} > arpwatch2html.pl
perl -pi -e "s|/var/arpwatch|/var/lib/arpwatch|g" arpwatch2html.pl

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 arpwatch2html.pl %{buildroot}%{_bindir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 281 |21cr|arrongin-rospo-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Arrongin-Rospo

Summary:	%{theme_name} theme
Name:		arrongin-rospo
Version:	1.0
Release:	2
License:	GPLv3+
Group:		Graphics
Url:		https://vk.com/xfce_rospo
Source0:	Arrongin-Rospo.tar.bz2
BuildArch:	noarch
Requires:	arrongin-rospo-gtk2-theme
Requires:	arrongin-rospo-gtk3-theme

%description
Fork Arrongin GTK2,GTK3 theme from ROSPO

%files

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires:	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires:	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {gtk-2.0,gtk-3.0} %{buildroot}%{_datadir}/themes/%{theme_name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 282 |21cr|arx-libertatis-1.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cross-platform port of the GPL'ed Arx Fatalis game by Arkane Studios
Name:		arx-libertatis
Version:	1.2.1
Release:	3
License:	GPLv3
Group:		Games/Adventure
Url:		https://github.com/arx/ArxLibertatis
Source0:	https://github.com/arx/ArxLibertatis/archive/%{version}.tar.gz?/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	inkscape
BuildRequires:	optipng
BuildRequires:	boost-devel
BuildRequires:	glm-devel
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
# Dependencies of the crash reporter
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)
Recommends:	innoextract

%description
Arx Libertatis is a cross-platform, open source port of Arx Fatalis, a 2002
first-person role-playing game/dungeon crawler developed by Arkane Studios.

Arx Fatalis features crafting, melee and ranged combat, as well as a unique
casting system where the player draws runes in real time to effect the
desired spell.

Arx Libertatis is based on the publicly released Arx Fatalis sources and
available under the GPL 3+ license. This does however not include the game
data, so you need to obtain a copy of the original Arx Fatalis or its demo
to play Arx Libertatis. See Arx Libertatis' wiki for more information.

%files
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/arx
%{_gamesbindir}/arx-install-data
%{_gamesdatadir}/arx/
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_libexecdir}/arxcrashreporter
%{_mandir}/man1/arx-install-data.1*
%{_mandir}/man6/arx.6*

#--------------------------------------------------------------

%prep
%autosetup -p1 -n ArxLibertatis-%{version}

%build
%cmake \
	-DBUILD_CRASHHANDLER=ON		\
	-DBUILD_CRASHREPORTER=ON	\
	-DBUILD_IO_LIBRARY=OFF		\
	-DBUILD_TOOLS=OFF		\
	-DCMAKE_INSTALL_BINDIR=%{_gamesbindir} \
	-DINSTALL_BLENDER_PLUGIN=OFF
%make

%install
%makeinstall_std -C build

# Replace bundled font with symlink
pushd %{buildroot}%{_gamesdatadir}/arx/misc
rm -f dejavusansmono.ttf
ln -s %{_xfontdir}/TTF/dejavu/DejaVuSansMono.ttf dejavusansmono.ttf
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 283 |21cr|asc-2.8.3.0-1.gitfa3bca.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_appdatadir %{_datadir}/appdata

%define commit fa3bca082a5cea2b35812349f99b877f0113aef0
%define commit_short %(echo %{commit} | head -c6)

Summary:	Advanced Strategic Command
Name:		asc
Version:	2.8.3.0
Release:	1.git%{commit_short}.1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://www.asc-hq.org/
#Source0:	http://terdon.asc-hq.org/asc/builds/%%{name}-%%{version}.tar.bz2
# Really git head from https://github.com/ValHaris/asc-hq/tree/newattack
Source0:	https://github.com/ValHaris/asc-hq/archive/%{commit}.zip?/asc-hq-%{commit}.zip
Source1:	%{name}.desktop
Source2:	%{name}.png
# Music files not included in source tarball
Source3:	https://www.asc-hq.org/music/frontiers.ogg
Source4:	https://www.asc-hq.org/music/time_to_strike.ogg
Source5:	https://www.asc-hq.org/music/machine_wars.ogg
Patch0:		asc-2.8.3.0-gcc-11.patch
Patch1:		asc-2.8.3.0-fix-data-path.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	zip
BuildRequires:	boost-devel
BuildRequires:	SDL_sound-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	xvid-devel
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(lua) >= 5.1
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(physfs)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(vorbis)
Requires:	hicolor-icon-theme
Requires:	%{name}-data = %{EVRD}

%description
Advanced Strategic Command is a free, turn based strategy game.

%files
%doc README AUTHORS COPYING
%{_bindir}/%{name}*
%{_appdatadir}/*
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}*.6.*

#------------------------------------------------------------------

%package data
Summary:	Data files for %{name}
BuildArch:	noarch

%description data
Data files for Advanced Strategic Command game.

%files data
%doc README AUTHORS COPYING
%{_datadir}/%{name}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n asc-hq-%{commit}

# Install the music files
install -m 0644 %{SOURCE3} %{SOURCE4} %{SOURCE5} data/music

chmod -x source/libs/paragui/include/paragui.h


%build
autoreconf -vfi
%configure		--enable-genparse \
						--enable-internal-loki \
						--enable-extradata \
						--disable-paraguitest

%make


%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}

# Provide icons
for size in 256 128 64 48 32 16; do
	install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
	convert %{SOURCE2} -resize ${size} %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 284 |21cr|ascii-3.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Interactive ASCII name and synonym chart
Name:		ascii
Version:	3.18
Release:	1
License:	BSD
Group:		Text tools
Url:		http://www.catb.org/~esr/ascii/
Source0:	http://www.catb.org/~esr/ascii/%name-%version.tar.gz

%description
The ascii utility provides easy conversion between various byte representations
and the American Standard Code for Information Interchange (ASCII) character
table. It knows about a wide variety of hex, binary, octal, Teletype mnemonic,
ISO/ECMA code point, slang names, XML entity names, and other representations.
Given any one on the command line, it will try to display all others. Called
with no arguments it displays a handy small ASCII chart.

%files
%doc README COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CC="%{__cc} %{optflags} %{ldflags}" %{name} %{name}.1

%install
install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}
install -m644 %{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 285 |21cr|ascii-design-1.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Ascii-Design


Name:       ascii-design
Version:    1.1.1
Release:    5
License:    GPLv2
Summary:    Create awesome ascii art text
Url:        http://ascii-design.sourceforge.net/
Group:      Office
Source0:    https://github.com/Faster3ck/Ascii-Design/archive/v%{version}.tar.gz

BuildRequires:  gcc-c++ 
BuildRequires:  cmake  
BuildRequires:  make 
BuildRequires:  kdelibs4-devel
BuildRequires:  desktop-file-utils
BuildRequires:  jpeg-devel
BuildRequires:  qt5-devel
BuildRequires:  qmake5
BuildRequires:  pkgconfig(Qt5Widgets)

Requires:	figlet
Requires:	figlet-more-fonts

%description
Free program, based on figlet engine, that enables you 
to create awesome ascii art text. 
You can create art based text for 
many types of decorations for web sites, e-mail, text files etc...
Ascii Design is able to use dozens of special fonts 
to create various styles of ascii arts.

%prep
%setup -qn %{oname}-%{version}
sed -i 's/\r//' {COPYING,INSTALL}.TXT
cd src
find . -name "*.cpp" -o -name "*.h" -o -name "*.cpp" |xargs chmod 0644
cd -


%build
%cmake_kde4 -DCMAKE_INSTALL_PREFIX=$RPM_BUILD_ROOT%{_prefix} 
%make

%install
%makeinstall -C build

# fix desktop
rm -fr $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Categories=Office;
Comment=Start Ascii Design
Exec=ascii-design
Icon=ascii-design
Name=Ascii Design
StartupNotify=true
Terminal=false
Type=Application
EOF

desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop


%files
%doc COPYING.TXT INSTALL.TXT
%{_bindir}/ascii-design
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/ascii-design.png
%{_datadir}/appdata/ascii-design.appdata.xml
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 286 |21cr|asciinema-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		asciinema
Version:	2.1.0
Release:	1
Summary:	Terminal session recorder
License:	GPLv3+
Group:		Terminals
URL:		https://asciinema.org
Source0:	https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(nose)
# pkg_resources is used from /usr/bin/asciinema
Requires:       python3egg(setuptools)

%description
Asciinema is a free and open source solution for recording
the terminal sessions and sharing them on the web.

%prep
%setup -q -n %{name}-%{version}

%build
%py3_build

%install
%py3_install

# man page
install -d %{buildroot}%{_mandir}/man1
install -p -m 644 man/asciinema.1 %{buildroot}%{_mandir}/man1/

%check
python3 setup.py test

%files
%doc LICENSE
%doc *.md doc/*.md
%{_bindir}/asciinema
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}-*.egg-info/
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 287 |21cr|ascii-patrol-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ASCII game where you can ride and shoot or jump
Name:		ascii-patrol
Version:	1.7
Release:	1
License:	GPL
Group:		Games/Other
Url:		https://github.com/msokalski/ascii-patrol
Source0:	https://github.com/msokalski/ascii-patrol/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		optflags.diff
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  gcc-c++

%description
ASCII game where you can ride and shoot or jump

%files
%{_bindir}/asciipat
#--------------------------------------------------

%prep
%autosetup -p1
chmod +x build.sh

%build
%make ADD_CFLAGS="%{optflags}" ADD_LDFLAGS="%{ldflags}"

%install
install -D -m 755 %{_builddir}/%{name}-%{version}/asciipat %{buildroot}/%{_bindir}/asciipat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 288 |21cr|asciiquarium-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           asciiquarium
Version:        1.1
Release:        4
Summary:        An aquarium/sea animation in ASCII art
License:        GPL
Group:          Toys
URL:            http://www.robobunny.com/projects/asciiquarium/
Source0:        http://www.robobunny.com/projects/asciiquarium/%{name}_%{version}.tar.gz
Requires:	perl-Term-Animation
BuildArch:      noarch

%description
Asciiquarium is an aquarium/sea animation in ASCII art.

%prep
%setup -q -n %{name}_%{version}

%build

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 asciiquarium %{buildroot}%{_bindir}


%files
%doc CHANGES  README gpl.txt
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 289 |21cr|asio-1.22.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Cross-platform C++ library for network programming
Name:		asio
Version:	1.22.1
Release:	1
License:	Boost
Group:		Development/C++
Url:		https://think-async.com/Asio/
Source0:	http://sourceforge.net/projects/asio/files/asio/%{version}%20%28Stable%29/%{name}-%{version}.tar.bz2
Source10:	%{name}.rpmlintrc
# cpp20 examples missing in release archive
Patch0:		asio-examples.patch
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(openssl)

%description
asio is a cross-platform C++ library for network programming that provides
developers with a consistent asynchronous I/O model using a modern C++
approach.

%files
%doc README
%doc doc/*
%{_includedir}/*.hpp
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make LIBS="-lboost_system -lboost_chrono -lcrypto -lssl"

%install
%makeinstall_std

%check
# Disable tests for now as 2 of them fail at ABF but pass at local machines
#make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 290 |21cr|ask-2.5.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _python_bytecompile_build 0

Summary:	Active Spam Killer
Name:		ask
Version:	2.5.3
Release:	13
License:	GPLv2+
Group:		Networking/Mail
Url:		http://a-s-k.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ask-2.5.3-python2.patch
BuildArch:	noarch

%description
Active Spam Killer (ASK) protects your email account against spam
by confirming the sender's email address before actual delivery
takes place. The confirmation happens by means of a "confirmation
message" that is automatically sent to all "unknown" users. Once
the sender replies to that message (a simple reply will do),
future emails from that person will be delivered immediately. You
can also specify (regexp) addresses to be immediately accepted,
rejected (with a nastygram) or ignored. The package also includes
a utility to scan your old mailboxes and generate a list of emails
to be accepted automatically.

%files
%doc ChangeLog
%doc docs/ask_doc.css docs/ask_doc.html docs/ask_doc.pdf docs/ask_doc.txt
%{_bindir}/asksetup
%{_bindir}/asksenders
%{_bindir}/askfilter
%{_prefix}/lib/ask/askconfig.py
%{_prefix}/lib/ask/asklock.py
%{_prefix}/lib/ask/asklog.py
%{_prefix}/lib/ask/askmail.py
%{_prefix}/lib/ask/askmain.py
%{_prefix}/lib/ask/askmessage.py
%{_prefix}/lib/ask/askremote.py
%{_prefix}/lib/ask/askversion.py
%{_datadir}/ask/templates/ask.rc
%{_datadir}/ask/templates/ignorelist.txt
%{_datadir}/ask/templates/whitelist.txt
%{_datadir}/ask/templates/confirm_da.txt
%{_datadir}/ask/templates/confirm_de.txt
%{_datadir}/ask/templates/confirm_en.txt
%{_datadir}/ask/templates/confirm_es.txt
%{_datadir}/ask/templates/confirm_fi.txt
%{_datadir}/ask/templates/confirm_fr.txt
%{_datadir}/ask/templates/confirm_it.txt
%{_datadir}/ask/templates/confirm_nl.txt
%{_datadir}/ask/templates/confirm_ptbr.txt
%{_mandir}/man1/asksenders.1*
%{_mandir}/man1/asksetup.1*
%{_mandir}/man1/askfilter.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# Nothing

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_prefix}/lib/ask
install -d %{buildroot}%{_datadir}/ask
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_datadir}/ask/templates

install -m0755 askfilter asksetup %{buildroot}%{_bindir}/
install -m0755 utils/asksenders %{buildroot}%{_bindir}/

install -m0644 askconfig.py %{buildroot}%{_prefix}/lib/ask/
install -m0644 asklock.py %{buildroot}%{_prefix}/lib/ask/
install -m0644 asklog.py %{buildroot}%{_prefix}/lib/ask/
install -m0644 askmail.py %{buildroot}%{_prefix}/lib/ask/
install -m0644 askmain.py %{buildroot}%{_prefix}/lib/ask/
install -m0644 askmessage.py %{buildroot}%{_prefix}/lib/ask/
install -m0644 askremote.py %{buildroot}%{_prefix}/lib/ask/
install -m0644 askversion.py %{buildroot}%{_prefix}/lib/ask/

install -m0644 templates/* %{buildroot}%{_datadir}/ask/templates/

install -m0644 docs/*.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 291 |21cr|aspell-csb-0.02_0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.02-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Kashubian
%define languagecode csb
# FIXME: no locale yet
%define lc_ctype csb_XX

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.02_0
Release:	1
License:	GPLv2+
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/csb/%{fname}-%{src_ver}.tar.bz2
Provides:	spell-%{languagecode}
BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}
# Mandriva Stuff
#Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
#Provides:	aspell-%{lc_ctype}
Autoreqprov:	no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README* Copyright
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{src_ver}

chmod 644 Copyright README*

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 292 |21cr|aspellgui-0.0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname AspellGUI

Summary:	GUI for aspell
Name:		aspellgui
Version:	0.0.7
Release:	7
License:	GPLv3+
Group:		Text tools
Url:		http://keithhedger.hostingsiteforfree.com/pages/aspellgui/aspelgui.html
Source0:	http://keithhedger.hostingsiteforfree.com/zips/aspellgui/%{oname}-%{version}.tar.gz
Patch0:		AspellGUI-0.0.7-optflags.patch
Patch1:		AspellGUI-0.0.7-install.patch
BuildRequires:	desktop-file-utils
BuildRequires:	aspell-devel
BuildRequires:	pkgconfig(Qt5Widgets)

%description
GUI for aspell, just launch it from the accessories menu and pase or type
a word in the text box and either press "Spell Check" to check and correct
all words in the text box or select a single word and press "Check Word"
to just correct that one, that's all there is to it.

%files
%doc  ChangeLog README AspellGUI/resources/docs/gpl-3.0.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/pixmaps/AspellGUI.png
%{_datadir}/pixmaps/AspellGUI48.png
%{_iconsdir}/hicolor/*/apps/AspellGUI.png
%{_datadir}/AspellGUI/

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1
touch NEWS AUTHORS

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
autoreconf -fi
%configure \
	--enable-qt5
make clean
%make

%install
%makeinstall_std

desktop-file-validate %{buildroot}%{_datadir}/applications/AspellGUI.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 293 |21cr|aspell-pt_BR-0.60.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define languageenglazy Portuguese Brasilian
%define languagecode pt_BR
%define lc_ctype pt_BR

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.60.0
Release:	8
License:	GPLv2+
Group:		System/Internationalization
Url:		http://aspell.sourceforge.net/
# http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
Source:		ftp://ftp.gnu.org/gnu/aspell/dict/pt_BR/aspell6-%{languagecode}-20090702-0.tar.bz2
BuildRequires:	aspell >= 0.60
Requires:	aspell >= 0.60
Requires:	locales-pt
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README Copyright COPYING doc/NEWS doc/LEIAME_ooo.txt doc/README_ooo.txt doc/README_aspell.txt
%{_libdir}/aspell-0.60/*

#----------------------------------------------------------------------------

%prep
%setup -qn aspell6-pt_BR-20090702-0

%build
# don't use configure macro
./configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 294 |21cr|aspell-sr-0.60.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.02
%define languageenglazy Serbian
%define languagecode sr
%define lc_ctype sr_YU

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.60.0
Release:       8
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell6-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   LGPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n aspell6-%{languagecode}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 295 |21cr|aspell-te-0.60.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.01-2
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Telugu
%define languagecode te
%define lc_ctype te_IN

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.60.0
Release:       9
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   LGPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 296 |21cr|assaultcube-1.2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name_orig AssaultCube

Summary:	AssaultCube is a total conversion of Wouter van Oortmerssen's FPS called Cube
Name:		assaultcube
Version:	1.2.0.2
Release:	1
License:	Freeware
Group:		Games/Arcade
Url:		http://assault.cubers.net/index.html
Source0:	http://transact.dl.sourceforge.net/sourceforge/actiongame/%{name_orig}_v%{version}.source.tar.bz2
Source1:	http://transact.dl.sourceforge.net/sourceforge/actiongame/%{name_orig}_v%{version}.tar.bz2
Source2:	AssaultCube-startscript.sh
Source3:	AssaultCube-server.sh
Source11:	%{name_orig}.16.png
Source12:	%{name_orig}.32.png
Source13:	%{name_orig}.48.png
Patch0:		AssaultCube_v1.2.0.2-debug.patch
Patch1:		assaultcube-1.2.0.2-mga-gcc.patch
BuildRequires:	clang
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
BuildConflicts:	freetds-devel
Obsoletes:	ActionCube < 1.0.2

%description
AssaultCube is a total conversion of Wouter van Oortmerssen's FPS called Cube.

Set in a realistic looking environment, gameplay is fast and arcade.
This game is all about team oriented multiplayer fun. Similar to counterstrike.

This package is in restricted non-free because, although the Cube engine is
Free, the game data (models, textures, maps etc.) are non-free, preclude
commercial distribution, and in some cases do not allow modification.

%files
%defattr(-, root, root, 0755)
%doc source/*.txt README.html
%doc docs
%{_gamesbindir}/*
%dir %{_datadir}/games/%{name}
%{_datadir}/games/%{name}/*
%{_datadir}/applications/%{name}*.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png


#----------------------------------------------------------------------------

%prep
%setup -q -n %{name_orig}_v%{version}.source
%setup -q -T -D -b 1 -n %{name_orig}_v%{version}
%patch0 -p1
%patch1 -p1

%build
pushd source/src
# flags for enet:
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
# flags for engine:
make CXXOPTFLAGS="%{optflags}"
popd

%install
pushd source/src
%makeinstall
popd

install -dm 755 %{buildroot}%{_gamesbindir}
install -m 755 bin_unix/native_client \
	%{buildroot}%{_gamesbindir}/assaultcube_client.real
install -m 755 bin_unix/native_server \
	%{buildroot}%{_gamesbindir}/assaultcube_server.real

install -dm 755 %{buildroot}%{_gamesdatadir}
install -dm 755 %{buildroot}%{_gamesdatadir}/%{name}
for i in config demos packages; do
	cp -R $i \
		%{buildroot}%{_datadir}/games/%{name}
	find %{buildroot}%{_datadir}/games/%{name}/$i -type f -exec chmod 644 {} \;
done
chmod o+rwt %{buildroot}%{_datadir}/games/%{name}/packages/maps

# startscripts

install -m 755 %{SOURCE2} \
	%{buildroot}%{_gamesbindir}/%{name}.sh
install -m 755 %{SOURCE3} \
	%{buildroot}%{_gamesbindir}/%{name}_server.sh

# icon
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name_orig}
Encoding=UTF-8
Comment=AssaultCube is a total conversion of Wouter van Oortmerssen's FPS called Cube
Exec=%{_gamesbindir}/%{name}.sh
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}_server.desktop << EOF
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=AssaultCube-Server
Comment=AssaultCube Server
Exec=%{_gamesbindir}/%{name}_server.sh
Icon=%{name}
Terminal=true
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}_server_lan.desktop << EOF
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=AssaultCube-Server-Lan
Comment=AssaultCube Server (private)
Exec=%{_gamesbindir}/%{name}_server.sh -mlocalhost
Icon=%{name}
Terminal=true
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 297 |21cr|assetml-1.2.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %name %major
%define libnamedev %mklibname %name %major -d

%ifarch aarch64 riscv64 %{e2k}
%define _disable_ld_no_undefined 1
%endif

Summary:	Library assetml to share and reuse content like image and audio file
Name: 		assetml
Version: 	1.2.1
Release: 	16
License: 	GPLv2+
Group: 		System/Libraries
Source:		lib%name-%version.tar.bz2
BuildRequires:	pkgconfig
BuildRequires:	popt-devel
BuildRequires:	glib2-devel >= 2.0.0
BuildRequires:	glibc-devel
BuildRequires:	libxml2-devel
BuildRequires:	texi2html
BuildRequires:	texinfo
URL: 		http://ofset.sf.net/assetml

%description
This is a library based on an XML file format that is used to share and reuse 
content like image and audio file.
Application using this library can query files on their system that provides an
assetml xml file description.

%package -n %libname
Summary:        Library assetml to share image and audio file between project
Group:          System/Libraries

%description -n %libname
AssetML Library

%package  -n %libnamedev
Summary:        Devel Library assetml to share image and audio file between project
Group: 		System/Libraries
Requires:       %libname = %version
Provides:	libassetml-devel

%description -n %libnamedev
AssetML Devel Library

%prep

%setup -q -n lib%{name}-%version

%build

%configure

%make

%install
%makeinstall

%find_lang lib%name


%files -f lib%name.lang
%doc AUTHORS COPYING ChangeLog INSTALL README THANKS
%_bindir/*
%_datadir/gnome/help/*
%_infodir/*

%files -n %libname
%_libdir/libassetml.so.*

%files -n %libnamedev
%_libdir/lib*.so
%_includedir/libassetml*/*
%_libdir/pkgconfig/libassetml.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 298 |21cr|associationsubscribersmanager-3.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	 associationsubscribersmanager
%define oname    AssociationSubscribersManager 
%define version	 3.2.0
%define release	 5
%define Summary	 Software which allow people to easily manage their clubs


Summary:	%Summary
Name:		%name
Version:	%version
Release:	%release
Source0:	%oname-%version.tar.gz
License:	GPLv2
Group:		Graphical desktop/KDE
URL:	    http://www.associationsubscribersmanager.org/
BuildRequires:	qt4-devel

%description
Association Subscribers Manager is a software which allow people 
to easily manage their clubs. The main goal is to make it simple.
Association Subscribers Manager do not require any database not 
any complicated settings.

If you are a in charge of a club and don't want a complicated 
software to manage it, you are in the right place !
In the other hand, if you are searching a collaborative web-based 
suite to manage your club you are clearly not at the right place !

%files
%defattr(-,root,root)
%_bindir/association_subscribers_manager
%_datadir/AssociationSubscribersManager

#---------------------------------------------------------------------

%package devel
Group: Development/KDE and Qt
Summary: Devel files needed to build apps based on %name

%description devel
Devel files needed to build apps based on %name

%files devel
%defattr(-,root,root,-)
%_includedir/AssociationSubscribersManager

#---------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%version

%build
lrelease association_subscribers_manager.pro
%qmake_qt4 INSTALLDIR=%_prefix
%make

%install
%__rm -rf %buildroot
%make INSTALL_ROOT=%buildroot install

%clean
%__rm -rf %buildroot

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 299 |21cr|asterisk-18.17.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME Fix the cases when immediate symbol resolution is not enough (pj* stuff)
# For the present, fall back to the old symbol resolution rules for ld.
%define	_disable_ld_now 1
%define	_disable_ld_no_undefined 1

# Misdn is now replaced by chan_dahdi...
%bcond_with	misdn
%bcond_without	oss
%bcond_without	radius
%bcond_without	tds
%bcond_without	corosync

%define	pjsip_version 2.13

%define	major 1
%define	pjmajor 2
%define	libssl %mklibname asteriskssl %{major}
%define	libpj %mklibname asteriskpj %{pjmajor}
%define	devname %mklibname %{name} -d

Summary:	The Open Source PBX
Name:		asterisk
Version:	18.17.1
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.asterisk.org/
Source0:	http://downloads.asterisk.org/pub/telephony/asterisk/releases/%{name}-%{version}.tar.gz
Source1:	%{name}-logrotate
# The config files for build need to be re-generated when upgrading asterisk package:
# 1. Do the %%prep and build stage.
# 2. Run "make menuselect" and use the menuselect utility to modify and save the build config files.
# See: https://wiki.asterisk.org/wiki/display/AST/Using+Menuselect+to+Select+Asterisk+Options
# Default for voicemail backend is "voicemail": to build imap backend we can do some clever sed trick
Source2:	%{name}-18.17.1-menuselect.makedeps
Source3:	%{name}-18.17.1-menuselect.makeopts
Source6:	g72x_install
Source7:	%{name}.service
Source8:	%{name}-tmpfiles
# S9: svn checkout http://svn.digium.com/svn/asterisk-gui/trunk asterisk-gui
Source9:	%{name}-gui.tar.xz
# Building Asterisk with bundled pjproject, because they apply custom patches to it
Source10:	https://raw.githubusercontent.com/asterisk/third-party/master/pjproject/%{pjsip_version}/pjproject-%{pjsip_version}.tar.bz2
Source11:	asterisk.sysusers.conf
Source100:	%{name}.rpmlintrc
Patch0:		0001-voicemail-modules-choice.patch
Patch1:		0002-asterisk-17.3.0-add-pthread-to-utils.patch
Patch2:		0003-asterisk-17.3.0-net_smpt-fix.patch
Patch3:		0004-asterisk-17.3.0-fix-ffmpeg-includes.patch
Patch4:		0005-asterisk-17.3.0-no-internal-liblpc10.patch
Patch5:		0006-asterisk-17.3.0-fix-neon-includes.patch
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	wget
BuildRequires:	alsa-oss-devel
BuildRequires:	c-client-devel
BuildRequires:	dahdi-devel >= 2.0.0
BuildRequires:	ffmpeg-devel
BuildRequires:	freetds-devel >= 0.64
BuildRequires:	gsm-devel
BuildRequires:	hoard-devel
BuildRequires:	libtool-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	lpc10-devel
BuildRequires:	mysql-devel
BuildRequires:	nbs-devel
BuildRequires:	net-snmp-devel
BuildRequires:	openldap-devel
BuildRequires:	openr2-devel
BuildRequires:	pam-devel
BuildRequires:	perl-devel
BuildRequires:	pri-devel
BuildRequires:	radiusclient-ng-devel
BuildRequires:	resample-devel
BuildRequires:	ss7-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	tonezone-devel
BuildRequires:	zapata-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(bluez)
%if %{with corosync}
BuildRequires:	pkgconfig(corosync)
%endif
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gmime-3.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(iksemel)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(jansson) >= 2.11
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(codec2)
BuildRequires:	pkgconfig(libcurl) >= 7.10.1
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libilbc)
BuildRequires:	pkgconfig(libiodbc)
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(libnewt)
BuildRequires:	pkgconfig(libosptk)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libsrtp2)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libunbound) >= 1.5
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(liburiparser)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(libosptk)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(spandsp)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
%if %{with misdn}
BuildRequires:	isdn4net
BuildRequires:	isdn4k-utils-devel
BuildRequires:	misdn2-devel
%endif
Requires(pre):	/bin/systemd-sysusers
Requires(post):	systemd
Requires:	mpg123
Requires:	%{name}-core-sounds
Requires:	%{name}-moh

%description
Asterisk is a complete PBX in software. It runs on Linux and provides all of
the features you would expect from a PBX and more. It does voice over IP in
three protocols, and can interoperate with almost all standards-based
telephony equipment using relatively inexpensive hardware.

%files
%doc README*.md *.txt ChangeLog BUGS CREDITS configs
%doc doc/%{name}.sgml g72x_install
%doc contrib/realtime/mysql
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.socket
%attr(0644,root,root) %{_tmpfilesdir}/%{name}.conf
%attr(0750,asterisk,asterisk) %dir %{_sysconfdir}/%{name}
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/acl.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/adsi.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/aeap.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/agents.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/alarmreceiver.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/amd.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/app_skel.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.adsi
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/ast_debug_tools.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/ccss.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_beanstalkd.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_custom.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_manager.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_syslog.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cel_beanstalkd.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cli_aliases.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cli.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cli_permissions.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/codecs.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/confbridge.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/config_test.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/dnsmgr.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/dsp.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/dundi.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/enum.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/extconfig.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/extensions.ael
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/extensions.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/features.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/followme.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/geolocation.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/ari.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/hep.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/http.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/iax.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/iaxprov.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/indications.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/logger.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/manager.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/mgcp.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/modules.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/motif.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/musiconhold.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/muted.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/phone.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/phoneprov.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/pjproject.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/pjsip.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/pjsip_notify.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/pjsip_wizard.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/prometheus.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/queuerules.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/queues.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_parking.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_stun_monitor.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/resolver_unbound.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/rtp.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/say.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/sip.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/sip_notify.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/sla.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/smdi.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/sorcery.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/ss7.timers
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/stasis.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/statsd.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/stir_shaken.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/telcordia-1.adsi
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/test_sorcery.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/udptl.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/users.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/vpb.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/xmpp.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/modules
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_bridgewait.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_agent_pool.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_alarmreceiver.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_amd.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_attended_transfer.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_authenticate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_audiosocket.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_blind_transfer.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_bridgeaddchan.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_cdr.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_chanisavail.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_channelredirect.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_chanspy.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_confbridge.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_controlplayback.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_db.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_dial.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_dictate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_directed_pickup.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_disa.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_dtmfstore.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_dumpchan.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_echo.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_exec.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_externalivr.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_followme.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_forkcdr.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_ivrdemo.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_image.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_macro.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_milliwatt.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_mixmonitor.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_morsecode.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_originate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_playback.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_playtones.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_privacy.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_queue.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_readexten.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_read.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_record.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_reload.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_saycounted.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_sayunixtime.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_senddtmf.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_sendtext.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_skel.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_sms.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_softhangup.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_speech_utils.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_stack.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_statsd.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_stasis.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_stream_echo.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_system.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_talkdetect.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_test.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_transfer.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_userevent.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_url.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_waitforring.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_waitforsilence.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_waituntil.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_verbose.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_waitforcond.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_while.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_zapateller.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_broadcast.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_if.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_mf.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_sf.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_signal.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/bridge_builtin_features.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/bridge_builtin_interval_features.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/bridge_holding.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/bridge_native_rtp.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/bridge_simple.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/bridge_softmix.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_csv.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_custom.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_manager.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_audiosocket.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_bridge_media.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_iax2.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_mgcp.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_motif.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_nbs.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_pjsip.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_rtp.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_sip.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_adpcm.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_alaw.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_a_mu.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_codec2.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_g722.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_g726.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_gsm.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_ilbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_lpc10.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_resample.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_ulaw.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_g719.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_g723.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_g726.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_g729.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_gsm.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_h263.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_h264.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_ilbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_ogg_speex.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_ogg_vorbis.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_pcm.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_siren14.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_siren7.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_sln.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_wav_gsm.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_wav.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/format_vox.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_aes.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_base64.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_blacklist.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_callcompletion.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_callerid.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_cdr.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_channel.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_config.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_cut.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_db.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_devstate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_dialgroup.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_dialplan.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_enum.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_env.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_extstate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_frame_trace.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_global.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_groupcount.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_hangupcause.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_holdintercept.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_iconv.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_jitterbuffer.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_lock.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_logic.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_math.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_md5.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_module.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_periodic_hook.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_pitchshift.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_pjsip_aor.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_pjsip_contact.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_pjsip_endpoint.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_presencestate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_rand.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_realtime.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_sha1.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_shell.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_sorcery.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_sprintf.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_srv.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_strings.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_sysinfo.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_talkdetect.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_timeout.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_uri.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_version.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_volume.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_evalexten.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_export.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_frame_drop.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_json.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_sayfiles.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_scramble.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/pbx_ael.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/pbx_config.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/pbx_dundi.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/pbx_loopback.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/pbx_realtime.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/pbx_spool.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ael_share.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_agi.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_applications.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_%{name}.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_bridges.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_channels.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_device_states.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_endpoints.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_events.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_mailboxes.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_audiosocket.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_clialiases.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_clioriginate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_convert.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_crypto.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_endpoint_stats.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_celt.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_g729.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_h263.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_h264.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_ilbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_silk.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_siren7.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_siren14.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_vp8.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_hep_pjsip.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_http_media_cache.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_http_post.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_http_websocket.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_limit.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_musiconhold.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_mutestream.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_mwi_devstate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_mwi_external.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_mwi_external_ami.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_phoneprov.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjproject.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_acl.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_authenticator_digest.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_caller_id.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_config_wizard.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_dialog_info_body_generator.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_diversion.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_dlg_options.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_dtmf_info.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_empty_info.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_endpoint_identifier_anonymous.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_endpoint_identifier_ip.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_endpoint_identifier_user.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_exten_state.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_header_funcs.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_history.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_logger.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_messaging.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_mwi.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_mwi_body_generator.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_nat.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_notify.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_one_touch_record_info.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_outbound_authenticator_digest.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_outbound_publish.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_outbound_registration.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_path.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_phoneprov_provider.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_pidf_body_generator.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_pidf_digium_body_supplement.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_pidf_eyebeam_body_supplement.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_publish_asterisk.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_pubsub.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_refer.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_registrar.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_rfc3326.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_sdp_rtp.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_send_to_voicemail.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_session.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_sips_contact.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_stir_shaken.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_t38.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_transport_websocket.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_xpidf_body_generator.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_prometheus.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_realtime.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_resolver_unbound.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_rtp_%{name}.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_rtp_multicast.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_security_log.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_smdi.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_speech.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_srtp.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stun_monitor.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_timing_pthread.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_timing_timerfd.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_xmpp.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_model.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_playbacks.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_recordings.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_ari_sounds.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_chan_stats.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_format_attr_opus.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_hep_rtcp.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_hep.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_manager_devicestate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_manager_presencestate.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_parking.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_remb_modifier.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_sorcery_astdb.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_sorcery_config.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_sorcery_memory_cache.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_sorcery_memory.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_sorcery_realtime.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stasis_answer.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stasis_device_state.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stasis_mailbox.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stasis_playback.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stasis_recording.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stasis_snoop.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stasis.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_statsd.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_stir_shaken.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_aeap.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_cliexec.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_geolocation.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_aoc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_geolocation.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pjsip_rfc3329.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_speech_aeap.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_tonedetect.so
%attr(0755,root,root) %{_sbindir}/astcanary
%attr(0755,root,root) %{_sbindir}/astdb2bdb
%attr(0755,root,root) %{_sbindir}/astdb2sqlite3
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0755,root,root) %{_sbindir}/astgenkey
%attr(0755,root,root) %{_sbindir}/astversion
%attr(0755,root,root) %{_sbindir}/autosupport
%attr(0755,root,root) %{_sbindir}/check_expr
%attr(0755,root,root) %{_sbindir}/check_expr2
%attr(0755,root,root) %{_sbindir}/conf_bridge_binaural_hrir_importer
%{_sbindir}/rasterisk
%attr(0755,root,root) %{_sbindir}/smsq
%attr(0755,root,root) %{_sbindir}/stereorize
%attr(0755,root,root) %{_sbindir}/streamplayer
%{_sysusersdir}/asterisk.conf
%{_mandir}/man8/astdb2bdb.8*
%{_mandir}/man8/astdb2sqlite3.8*
%{_mandir}/man8/%{name}.8*
%{_mandir}/man8/astgenkey.8*
%{_mandir}/man8/autosupport.8*
%{_mandir}/man8/safe_asterisk.8*
%attr(0750,asterisk,asterisk) %dir /var/lib/%{name}
#%%attr(0750,asterisk,asterisk) #%%dir /var/lib/%{name}/agi-bin
#%%attr(0750,asterisk,asterisk) /var/lib/%{name}/agi-bin/*
%attr(0750,asterisk,asterisk) /var/lib/%{name}/rest-api
%attr(0750,asterisk,asterisk) /var/lib/%{name}/static-http/appdocsxml.xslt
%attr(0750,asterisk,asterisk) /var/lib/%{name}/documentation
%attr(0750,asterisk,asterisk) /var/lib/%{name}/images
%attr(0750,asterisk,asterisk) /var/lib/%{name}/keys
%attr(0750,asterisk,asterisk) /var/lib/%{name}/phoneprov
%attr(0750,asterisk,asterisk) %dir /var/log/%{name}
%attr(0750,asterisk,asterisk) %dir /var/log/%{name}/cdr-csv
%attr(0750,asterisk,asterisk) %dir /var/log/%{name}/cdr-custom
%attr(0750,asterisk,asterisk) %dir /var/spool/%{name}
%attr(0770,asterisk,asterisk) %dir /var/spool/%{name}/monitor
%attr(0770,asterisk,asterisk) %dir /var/spool/%{name}/outgoing
%attr(0750,asterisk,asterisk) %dir /var/spool/%{name}/tmp
%attr(0750,asterisk,asterisk) %dir /var/spool/%{name}/voicemail
%attr(0640,asterisk,asterisk) %ghost /var/lib/%{name}/astdb
%attr(0640,asterisk,asterisk) %ghost /var/log/%{name}/cdr-csv/Master.csv
%attr(0640,asterisk,asterisk) %ghost /var/log/%{name}/console
%attr(0640,asterisk,asterisk) %ghost /var/log/%{name}/debug
%attr(0640,asterisk,asterisk) %ghost /var/log/%{name}/event_log
%attr(0640,asterisk,asterisk) %ghost /var/log/%{name}/h323_log
%attr(0640,asterisk,asterisk) %ghost /var/log/%{name}/messages
%attr(0640,asterisk,asterisk) %ghost /var/log/%{name}/queue_log

%pre
# create user and group
%sysusers_create_package asterisk %{SOURCE11}


%post
%create_ghostfile /var/lib/%{name}/astdb %{name} %{name} 640
%create_ghostfile /var/log/%{name}/console %{name} %{name} 640
%create_ghostfile /var/log/%{name}/debug %{name} %{name} 640
%create_ghostfile /var/log/%{name}/messages %{name} %{name} 640
%create_ghostfile /var/log/%{name}/queue_log %{name} %{name} 640
%create_ghostfile /var/log/%{name}/event_log %{name} %{name} 640
%create_ghostfile /var/log/%{name}/cdr-csv/Master.csv %{name} %{name} 640
%create_ghostfile /var/log/%{name}/h323_log %{name} %{name} 640

echo "Adding setuid root to /usr/bin/mpg123, needed for MOH"
chmod u+s %{_bindir}/mpg123
if [[ -e %{_libdir}/%{name}/modules/codec_g729.so ]]; then
	sh %{_docdir}/g72x_install
fi

%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post %{name}.service


%preun
if [ "$1" = 0 ]; then
	echo "Removing setuid root from /usr/bin/mpg123"
	chmod u-s %{_bindir}/mpg123
fi

# Remove the G72x stuff
rm -f /usr/share/doc/%{name}/README.g72x.txt
rm -f /usr/$LIBNAME/%{name}/modules/codec_g723.so
rm -f /usr/$LIBNAME/%{name}/modules/codec_g729.so
rm -f /usr/bin/g729_my_enc
rm -f /usr/bin/g729_my_dec
rm -f /usr/bin/astconv

%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}
gpasswd -d %{name} dialout 1>/dev/null

#----------------------------------------------------------------------------

%package -n %{libssl}
Summary:	The shared SSL library for Asterisk
Group:		System/Libraries

%description -n %{libssl}
The shared SSL library for Asterisk.

%files -n %{libssl}
%doc COPYING LICENSE
%{_libdir}/libasteriskssl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpj}
Summary:	Shared pjproject library for Asterisk
Group:		System/Libraries

%description -n %{libpj}
Shared pjproject library for Asterisk.

%files -n %{libpj}
%doc COPYING LICENSE
%{_libdir}/libasteriskpj.so.%{pjmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for building Asterisk modules
Group:		Development/C
Requires:	%{libpj} = %{EVRD}
Requires:	%{libssl} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 17.3.0-1
Obsoletes:	%{name}-devel < 17.3.0-1

%description -n %{devname}
This package contains the development header files that are needed to compile
3rd party modules.

%files -n %{devname}
%doc COPYING LICENSE
%dir %{_includedir}/%{name}
%dir %{_includedir}/%{name}/doxygen
%{_includedir}/%{name}.h
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/doxygen/*.h
%{_libdir}/libasteriskssl.so
%{_libdir}/libasteriskpj.so

#----------------------------------------------------------------------------

%package addons
Summary:	Asterisk-addons metapackage
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{name}-plugins-mp3 = %{EVRD}
Requires:	%{name}-plugins-mysql = %{EVRD}
Requires:	%{name}-plugins-ooh323 = %{EVRD}

%description addons
Metapackage containing: %{name}-plugins-mp3, %{name}-plugins-mysql and
%{name}-plugins-ooh323.

%files addons
# Metapackage: empty list.

#----------------------------------------------------------------------------

%package firmware
Summary:	Firmware for the Digium S101I (IAXy)
Group:		System/Servers
License:	Redistributable, no modification permitted
Requires:	%{name} = %{EVRD}

%description firmware
Firmware for the Digium S101I (IAXy).

%files firmware
%doc COPYING LICENSE
%attr(0750,asterisk,asterisk) /var/lib/%{name}/firmware

#----------------------------------------------------------------------------

%package gui
Summary:	Asterisk GUI
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description gui
Asterisk GUI is a framework for the creation of graphical interfaces for
configuring Asterisk. Some sample graphical interfaces for specific vertical
markets are included for reference or for actual use and extension.

%files gui
%doc COPYING LICENSE
%dir %attr(0750,asterisk,asterisk) /var/lib/%{name}/gui_backups
%dir %attr(0750,asterisk,asterisk) /var/lib/%{name}/static-http
%dir %attr(0755,asterisk,asterisk) /var/lib/%{name}/static-http/config
%dir %attr(0755,asterisk,asterisk) /var/lib/%{name}/static-http/config/stylesheets
%dir %attr(0755,asterisk,asterisk) /var/lib/%{name}/static-http/config/images
%dir %attr(0755,asterisk,asterisk) /var/lib/%{name}/static-http/config/private
%dir %attr(0755,asterisk,asterisk) /var/lib/%{name}/static-http/config/private/bkps
%dir %attr(0755,asterisk,asterisk) /var/lib/%{name}/static-http/config/js
%dir %attr(0755,asterisk,asterisk) /var/lib/%{name}/scripts
%attr(0644,asterisk,asterisk) /var/lib/%{name}/static-http/config/*.html
%attr(0644,asterisk,asterisk) /var/lib/%{name}/static-http/config/stylesheets/*
%attr(0644,asterisk,asterisk) /var/lib/%{name}/static-http/config/images/*
%attr(0644,asterisk,asterisk) /var/lib/%{name}/static-http/config/js/*
%attr(0755,asterisk,asterisk) /var/lib/%{name}/scripts/*
%attr(0644,asterisk,asterisk) /var/lib/%{name}/static-http/*.html
%attr(0644,asterisk,asterisk) /var/lib/%{name}/static-http/*.css
%attr(0644,asterisk,asterisk) /var/lib/%{name}/static-http/*.js
%attr(0644,asterisk,asterisk) /var/lib/%{name}/static-http/*.xml

#----------------------------------------------------------------------------

%package plugins-alsa
Summary:	Modules for Asterisk that use Alsa sound drivers
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-alsa
Modules for Asterisk that use Alsa sound drivers.

%files plugins-alsa
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/alsa.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_alsa.so

#----------------------------------------------------------------------------

%package plugins-calendar
Summary:	Asterisk calendar support
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-calendar
Asterisk calendar support (ical, caldav, exchange, or ews).

%files plugins-calendar
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/calendar.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_calendar.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_calendar_caldav.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_calendar_ews.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_calendar_exchange.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_calendar_icalendar.so

#----------------------------------------------------------------------------

%package plugins-cel
Summary:	Asterisk Channel Event Logging
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-cel
Channel Event Logging is a mechanism to provide fine-grained event information
that can be used to generate billing information. Such event information can
be recorded to databases and files via pluggable backend modules.

%files plugins-cel
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cel.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cel_custom.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_celgenuserevent.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cel_custom.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cel_manager.so

#----------------------------------------------------------------------------

%if %{with corosync}
%package plugins-corosync
Summary:	Modules for Asterisk that use corosync
Group:		System/Servers
Requires:	%{name} = %{EVRD}
%rename	%{name}-plugins-ais

%description plugins-corosync
Modules for Asterisk using corosync.

%files plugins-corosync
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_corosync.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_corosync.so
%endif

#----------------------------------------------------------------------------

%package plugins-curl
Summary:	Modules for Asterisk that use cURL
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-curl
Modules for Asterisk that use cURL.

%files plugins-curl
%doc contrib/scripts/dbsep.cgi
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/dbsep.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_curl.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_curl.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_config_curl.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_curl.so

#----------------------------------------------------------------------------

%package plugins-dahdi
Summary:	Modules for Asterisk that use DAHDI
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	dahdi-tools >= 2.0.0

%description plugins-dahdi
Modules for Asterisk that use DAHDI.

%files plugins-dahdi
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/meetme.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/chan_dahdi.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_flash.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_meetme.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_page.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_dahdi.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_dahdi.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_timing_dahdi.so
%dir %{_datadir}/dahdi
%dir %{_datadir}/dahdi/span_config.d
%{_datadir}/dahdi/span_config.d/40-%{name}

%pre plugins-dahdi
%{_sbindir}/usermod -a -G dahdi %{name}

#----------------------------------------------------------------------------

%package plugins-fax
Summary:	FAX plugins for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-fax
This package contains FAX plugins for Asterisk.

%files plugins-fax
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_fax.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_fax.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_fax_spandsp.so

#----------------------------------------------------------------------------

%package plugins-festival
Summary:	Festival application for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	festival

%description plugins-festival
Application for the Asterisk PBX that uses Festival to convert text to speech.

%files plugins-festival
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/festival.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_festival.so

#----------------------------------------------------------------------------

%package plugins-ices
Summary:	Stream audio from Asterisk to an IceCast server
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	ices

%description plugins-ices
Stream audio from Asterisk to an IceCast server.

%files plugins-ices
%doc COPYING LICENSE
%doc contrib/%{name}-ices.xml
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_ices.so

#----------------------------------------------------------------------------

%package plugins-jack
Summary:	JACK resources for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-jack
JACK resources for Asterisk.

%files plugins-jack
%doc COPYING LICENSE
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_jack.so

#----------------------------------------------------------------------------

%package plugins-ldap
Summary:	LDAP resources for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-ldap
LDAP resources for Asterisk.

%files plugins-ldap
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_ldap.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_config_ldap.so

#----------------------------------------------------------------------------

%package plugins-lua
Summary:	Lua resources for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-lua
Lua resources for Asterisk.

%files plugins-lua
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/extensions.lua
%attr(0755,root,root) %{_libdir}/%{name}/modules/pbx_lua.so

#----------------------------------------------------------------------------

%if %{with misdn}
%package plugins-misdn
Summary:	This module adds mISDN support to the Asterisk PBX
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-misdn
This module adds mISDN support to the Asterisk PBX. mISDN is the
(experimental) new ISDN4Linux stack, which adds support for
driving cards in NT mode and thus connecting an ISDN phone to your
computer.

%files plugins-misdn
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/misdn.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_misdn.so

%pre plugins-misdn
%doc COPYING LICENSE
%{_sbindir}/usermod -a -G misdn %{name}
%endif

#----------------------------------------------------------------------------

%package plugins-minivm
Summary:	MiniVM applicaton for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-minivm
MiniVM application for Asterisk.

%files plugins-minivm
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/extensions_minivm.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/minivm.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_minivm.so

#----------------------------------------------------------------------------

%package plugins-mobile
Summary:	Asterisk channel driver for bluetooth phones and headsets
Group:		System/Servers
Requires:	%{_lib}bluez3
Requires:	%{name} = %{EVRD}

%description plugins-mobile
Asterisk channel driver to allow Bluetooth cell/mobile phones to be used as
FXO devices, and headsets as FXS devices.

%files plugins-mobile
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/chan_mobile.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_mobile.so

%pre plugins-mobile
if [[ -e %{_sysconfdir}/%{name}/mobile.conf ]] ; then
	mv -f %{_sysconfdir}/%{name}/{,chan_}mobile.conf
fi

#----------------------------------------------------------------------------

%package plugins-mp3
Summary:	MP3 plugins for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-mp3
This package contains MP3 support for Asterisk.

%files plugins-mp3
%doc COPYING LICENSE
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_mp3.so
# This is deprecated and enabling it make the build to fail...
#attr(0755,root,root) %%{_libdir}/%%{name}/modules/format_mp3.so

#----------------------------------------------------------------------------

%package plugins-mysql
Summary:	MySQL plugins for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-mysql
This package contains MySQL plugins for Asterisk.

%files plugins-mysql
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/app_mysql.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_mysql.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_config_mysql.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_mysql.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_mysql.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_config_mysql.so

#----------------------------------------------------------------------------

%package plugins-odbc
Summary:	Applications for Asterisk that use ODBC (except voicemail)
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-odbc
Applications for Asterisk that use ODBC (except voicemail)

%files plugins-odbc
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_adaptive_odbc.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_odbc.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cel_odbc.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/func_odbc.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_odbc.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/cel_odbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_adaptive_odbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_odbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_odbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_config_odbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_odbc.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_odbc_transaction.so

#----------------------------------------------------------------------------

%package plugins-ooh323
Summary:	Objective System's H323 for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-ooh323
Objective System's H323 for Asterisk.

%files plugins-ooh323
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/ooh323.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_ooh323.so

#----------------------------------------------------------------------------

%package plugins-osp
Summary:	Open Settlement Protocol for Asterisk
Group:		System/Servers
Requires:	asterisk = %{EVRD}

%description plugins-osp
This package contains OSP (Open Settlement Protocol) support for Asterisk.

%files plugins-osp
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/osp.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_osplookup.so

#----------------------------------------------------------------------------

%if %{with oss}
%package plugins-oss
Summary:	Modules for Asterisk that use OSS sound drivers
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-oss
Modules for Asterisk that use OSS sound drivers.

%files plugins-oss
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/oss.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_oss.so
%endif

#----------------------------------------------------------------------------

%package plugins-pktccops
Summary:	Modules for Asterisk that use the IETF COPS protocol on PacketCable
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-pktccops
It's a subset or a "profile" of the IETF COPS protocol, extended for
PacketCable specific usage. The IETF COPS RFC defines the extensions mechanism
and the PacketCable standard uses and respects them. For example, IETF COPS
defines an opaque field called "Client Specific Decision Data" and the
PacketCable Standard defines how to fill it. Some IETF COPS messages are not
used in the PC Standard (like SSC), so is a subset.

%files plugins-pktccops
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_pktccops.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_pktccops.so

#----------------------------------------------------------------------------

%package plugins-portaudio
Summary:	Modules for Asterisk that use the portaudio library
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-portaudio
Modules for Asterisk that use the portaudio library.

%files plugins-portaudio
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/console.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_console.so

#----------------------------------------------------------------------------

%package plugins-pgsql
Summary:	PostgreSQL plugins for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Provides:	%{name}-plugins-postgresql = %{EVRD}

%description plugins-pgsql
This package contains PostgreSQL plugins for Asterisk.

%files plugins-pgsql
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_pgsql.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cel_pgsql.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_pgsql.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_pgsql.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cel_pgsql.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_config_pgsql.so

#----------------------------------------------------------------------------

%if %{with radius}
%package plugins-radius
Summary:	Radiusclient plugins for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-radius
This package contains Radiusclient plugins for Asterisk.

%files plugins-radius
%doc COPYING LICENSE
%attr(0755,root,root) %{_libdir}/%{name}/modules/cel_radius.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_radius.so
%endif

#----------------------------------------------------------------------------

%package plugins-skinny
Summary:	Modules for Asterisk that support the SCCP/Skinny protocol
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-skinny
Modules for Asterisk that support the SCCP/Skinny protocol.

%files plugins-skinny
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/skinny.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_skinny.so

#----------------------------------------------------------------------------

%package plugins-snmp
Summary:	Brief SNMP Agent / SubAgent support for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	net-snmp

%description plugins-snmp
This package contains brief SNMP Agent / SubAgent support for Asterisk.

%files plugins-snmp
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_snmp.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_snmp.so

#----------------------------------------------------------------------------

%package plugins-speex
Summary:	SPEEX plugins for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-speex
This package contains SPEEX plugins for Asterisk.

%files plugins-speex
%doc COPYING LICENSE
%attr(0755,root,root) %{_libdir}/%{name}/modules/codec_speex.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_speex.so

#----------------------------------------------------------------------------

%package plugins-sqlite
Summary:	SQLite plugins for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-sqlite
This package contains SQLite plugins for Asterisk.

%files plugins-sqlite
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_sqlite3_custom.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cel_sqlite3_custom.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/res_config_sqlite3.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_sqlite3_custom.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cel_sqlite3_custom.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/res_config_sqlite3.so

#----------------------------------------------------------------------------

%if %{with tds}
%package plugins-tds
Summary:	FreeTDS plugins for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-tds
This package contains FreeTDS plugins for Asterisk.

%files plugins-tds
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cel_tds.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/cdr_tds.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/cel_tds.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/cdr_tds.so
%endif

#----------------------------------------------------------------------------

%package plugins-unistim
Summary:	Unistim channel for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description plugins-unistim
Unistim channel for Asterisk.

%files plugins-unistim
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/unistim.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/chan_unistim.so

#----------------------------------------------------------------------------

%package plugins-voicemail
Summary:	Common Voicemail Modules for Asterisk
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{name}-plugins-voicemail-implementation = %{EVRD}
Requires:	sox
Requires:	sendmail-command

%description plugins-voicemail
Common Voicemail Modules for Asterisk.

%files plugins-voicemail
%doc COPYING LICENSE
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/%{name}/voicemail.conf
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_directory.so
%attr(0755,root,root) %{_libdir}/%{name}/modules/func_vmcount.so
%attr(0750,asterisk,asterisk) %dir /var/spool/%{name}/voicemail/default
%attr(0750,asterisk,asterisk) %dir /var/spool/%{name}/voicemail/default/1234

#----------------------------------------------------------------------------

%package plugins-voicemail-imap
Summary:	Store voicemail on an IMAP server
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{name}-plugins-voicemail = %{EVRD}
Provides:	%{name}-plugins-voicemail-implementation = %{EVRD}
%rename		plugins-voicemail-plain

%description plugins-voicemail-imap
Voicemail implementation for Asterisk that stores voicemail on an IMAP server.

%files plugins-voicemail-imap
%doc COPYING LICENSE
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_voicemail_imap.so

#----------------------------------------------------------------------------

%package plugins-voicemail-odbc
Summary:	Store voicemail in a database using ODBC
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{name}-plugins-voicemail = %{EVRD}
Provides:	%{name}-plugins-voicemail-implementation = %{EVRD}

%description plugins-voicemail-odbc
Voicemail implementation for Asterisk that uses ODBC to store voicemail in
a database.

%files plugins-voicemail-odbc
%doc COPYING LICENSE
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_voicemail_odbc.so

#----------------------------------------------------------------------------

%package plugins-voicemail-plain
Summary:	Store voicemail on the local filesystem
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{name}-plugins-voicemail = %{EVRD}
Provides:	%{name}-plugins-voicemail-implementation = %{EVRD}

%description plugins-voicemail-plain
Voicemail implementation for Asterisk that stores voicemail on the local
filesystem.

%files plugins-voicemail-plain
%doc COPYING LICENSE
%attr(0755,root,root) %{_libdir}/%{name}/modules/app_voicemail.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version} -a 9

# Copy also the pjproject tarball to the cache/ directory
# to avoid downloading it at build time...
mkdir -p cache
cp %{SOURCE10} cache/

# Fix perms
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type d -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;
chmod -x contrib/scripts/dbsep.cgi

# Drop useless files
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
	if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%apply_patches

# Install our build options from menuselect
cp %{SOURCE2} menuselect.makedeps
cp %{SOURCE3} menuselect.makeopts
cp %{SOURCE6} g72x_install

# Convert to UTF-8
mv main/fskmodem.c main/fskmodem.c.old
iconv -f iso-8859-1 -t utf-8 -o main/fskmodem.c main/fskmodem.c.old
touch -r main/fskmodem.c.old main/fskmodem.c
rm main/fskmodem.c.old
#
mv configs/samples/minivm.conf.sample configs/samples/minivm.conf.sample.old
iconv -f iso-8859-1 -t utf-8 -o configs/samples/minivm.conf.sample configs/samples/minivm.conf.sample.old
touch -r configs/samples/minivm.conf.sample.old configs/samples/minivm.conf.sample
rm configs/samples/minivm.conf.sample.old

# We have separate packages for sounds: fixup makefile
# so sound archives aren't downloaded/installed
%__perl -pi -e 's/^all:.*$/all:/' sounds/Makefile
%__perl -pi -e 's/^install:.*$/install:/' sounds/Makefile


%build
./bootstrap.sh

# Unrecognized Options: 
# --with-curses, --without-h323, --with-ltdl, --with-ncurses,
# --without-pwlib and --without-tinfo
ls
%configure \
	--with-asound \
	--with-avcodec \
	--with-bluetooth \
	--with-cap \
%if %{with corosync}
	--with-cpg \
%else
	--without-cpg \
%endif
	--with-crypto \
	--with-download-cache=%{_builddir}/%{name}-%{version}/cache \
	--with-dahdi \
	--with-gmime \
	--with-gsm \
	--without-gtk2 \
	--with-hoard \
	--with-ical \
	--with-iconv \
	--with-iksemel \
	--with-ilbc \
	--with-imap=system \
	--with-inotify \
	--with-jack \
	--without-kqueue \
	--with-ldap \
	--with-libcurl \
	--with-libedit \
	--with-lua \
%if %{with misdn}
	--with-isdnnet \
	--with-misdn \
	--with-suppserv \
%else
	--without-isdnnet \
	--without-misdn \
	--without-suppserv \
%endif
	--with-mysqlclient \
	--with-nbs \
	--with-neon \
	--with-neon29 \
	--with-netsnmp \
	--with-newt \
	--with-ogg \
	--with-openr2 \
	--with-osptk \
%if %{with oss}
	--with-oss \
%else
	--without-oss \
%endif
	--with-pjproject-bundled \
	--with-postgres \
	--with-popt \
	--with-portaudio \
	--with-pri \
	--with-radius \
	--with-resample \
	--with-sdl \
	--with-SDL_image \
	--with-sounds-cache \
	--with-spandsp \
	--with-ss7 \
	--with-speex \
	--with-speexdsp \
	--without-sqlite \
	--with-sqlite3 \
	--with-srtp \
	--with-ssl \
	--with-tds \
	--with-timerfd \
	--with-tonezone \
	--with-iodbc \
	--with-unixodbc \
	--with-vorbis \
	--without-vpb \
	--without-x11 \
	--with-z

# Prepare the menuselect utility
pushd menuselect
	%configure
popd

# Build the gui
pushd %{name}-gui
	%configure
popd

# Fix --no-undefined presence, even if we don't want it
sed -e 's/,--no-undefined -Wl//g' -i makeopts


%make ASTCFLAGS="%{optflags}" DEBUG= OPTIMIZE= ASTVARRUNDIR=/run/asterisk NOISY_BUILD=1


%install
ASTCFLAGS="%{optflags}" make install DEBUG= OPTIMIZE= DESTDIR=%{buildroot} ASTVARRUNDIR=/run/%{name}
ASTCFLAGS="%{optflags}" make install-headers DEBUG= OPTIMIZE= DESTDIR=%{buildroot} ASTVARRUNDIR=/run/%{name}
ASTCFLAGS="%{optflags}" make samples DEBUG= OPTIMIZE= DESTDIR=%{buildroot} ASTVARRUNDIR=/run/%{name}


# Create some directories that need to be packaged
make installdirs DESTDIR=%{buildroot} ASTVARRUNDIR=/run/%{name}
mkdir -p %{buildroot}/var/spool/%{name}/outgoing

# Install logrotate and system stuff
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/%{name}.service
install -m 0644 contrib/systemd/%{name}.socket %{buildroot}%{_unitdir}/%{name}.socket
install -D -p -m 0644 %{SOURCE8} %{buildroot}%{_tmpfilesdir}/%{name}.conf
rm -f %{buildroot}%{_sbindir}/safe_%{name}

# Don't package the sample voicemail user
rm -f %{buildroot}/var/spool/%{name}/voicemail/default/1234/en/*
# Don't package example phone provision configs
rm -rf %{buildroot}/var/lib/%{name}/phoneprov/*

# Install the gui
pushd %{name}-gui
	%makeinstall_std
popd

# Fix ghost files
touch %{buildroot}/var/lib/%{name}/astdb
touch %{buildroot}/var/log/%{name}/console
touch %{buildroot}/var/log/%{name}/debug
touch %{buildroot}/var/log/%{name}/messages
touch %{buildroot}/var/log/%{name}/queue_log
touch %{buildroot}/var/log/%{name}/event_log
touch %{buildroot}/var/log/%{name}/cdr-csv/Master.csv
touch %{buildroot}/var/log/%{name}/h323_log

# Remove unused files
%if %{without misdn}
	rm -f %{buildroot}/%{_sysconfdir}/%{name}/misdn.conf
%endif
%if %{without oss}
	rm -f %{buildroot}/%{_sysconfdir}/%{name}/oss.conf
%endif
rm -f %{buildroot}/%{_sysconfdir}/%{name}/res_config_sqlite.conf

# Fix perms
chmod 0644 %{buildroot}/var/lib/%{name}/documentation/*
chmod 0644 %{buildroot}/var/lib/%{name}/images/*.jpg
chmod 0644 %{buildroot}/var/lib/%{name}/rest-api/*.json
chmod 0644 %{buildroot}/var/lib/%{name}/static-http/*.xslt
chmod 0755 %{buildroot}%{_datadir}/dahdi/span_config.d/40-%{name}

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE11} %{buildroot}%{_sysusersdir}/asterisk.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 300 |21cr|asterisk-core-sounds-en-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine	__find_provides
%undefine	__find_requires

Summary:	English sound files for Asterisk application and toolkit
Name:		asterisk-core-sounds-en
Version:	1.6.1
Release:	1
License:	Public Domain
Group:		System/Servers
Url:		http://www.asterisk.org/
# To download sources, do:
#for FMT in alaw g722 g729 gsm sln16 ulaw wav siren7 siren14; do wget -P SOURCES/ -c http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en-${FMT}-1.6.1.tar.gz ; done
Source0:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-alaw-%{version}.tar.gz
Source1:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g722-%{version}.tar.gz
Source2:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g729-%{version}.tar.gz
Source3:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-gsm-%{version}.tar.gz
Source4:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren7-%{version}.tar.gz
Source5:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren14-%{version}.tar.gz
Source6:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-sln16-%{version}.tar.gz
Source7:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-ulaw-%{version}.tar.gz
Source8:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-wav-%{version}.tar.gz
Requires:	asterisk
Provides:	asterisk-core-sounds = %{EVRD}
BuildArch:	noarch

%description
Asterisk is an Open Source PBX and telephony development platform that can
both replace a conventional PBX and act as a platform for developing custom
telephony applications for delivering dynamic content over a telephone
similarly to how one can deliver dynamic content through a web browser using
CGI and a web server.
Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS,
and IP telephony clients using the Inter-Asterisk eXchange protocol (e.g.
gnophone or miniphone).
This package contains freely usable recorded sounds that were meant to be used
with Asterisk in the following formats: a-Law, G.722, G.729, GSM, Siren7, 
Siren14, sln16, mu-Law, WAV.

%files -f %{name}.filelist
%doc *-asterisk-core-*-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -n asterisk-core-sounds-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8

# Fix dir and file  perms
find . -type d | xargs chmod 755
find . -type f | xargs chmod 644

# Clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done


%build
# Nothing to do


%install
install -d %{buildroot}/var/lib/asterisk/sounds/en
cp -aRf * %{buildroot}/var/lib/asterisk/sounds/en

# lowercase.sln16 from 1.4.25 makes rpmbuild segfault
cp -f %{buildroot}%{_var}/lib/asterisk/sounds/en/uppercase.sln16 %{buildroot}%{_var}/lib/asterisk/sounds/en/lowercase.sln16
    
# Fake a file list
find %{buildroot}/var/lib/asterisk/sounds/en -type f | sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) /' >> %{name}.filelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 301 |21cr|asterisk-core-sounds-en_AU-1.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine	__find_provides
%undefine	__find_requires

Summary:	French sound files for the Asterisk PBX and telephony application and toolkit
Name:		asterisk-core-sounds-en_AU
Version:	1.6.1
Release:	2
License:	Public Domain
Group:		System/Servers
Url:		http://www.asterisk.org/
# To download sources, do:
#for FMT in alaw g722 g729 gsm sln16 ulaw wav siren7 siren14; do wget -P SOURCES/ -c http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-en_AU-${FMT}-1.6.1.tar.gz ; done
Source0:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-alaw-%{version}.tar.gz
Source1:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g722-%{version}.tar.gz
Source2:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g729-%{version}.tar.gz
Source3:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-gsm-%{version}.tar.gz
Source4:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren7-%{version}.tar.gz
Source5:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren14-%{version}.tar.gz
Source6:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-sln16-%{version}.tar.gz
Source7:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-ulaw-%{version}.tar.gz
Source8:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-wav-%{version}.tar.gz
Requires:	asterisk
Provides:	asterisk-core-sounds = %{EVRD}
BuildArch:	noarch

%description
Asterisk is an Open Source PBX and telephony development platform that can
both replace a conventional PBX and act as a platform for developing custom
telephony applications for delivering dynamic content over a telephone
similarly to how one can deliver dynamic content through a web browser using
CGI and a web server.
Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS
and IP telephony clients using the Inter-Asterisk eXchange protocol (e.g.
gnophone or miniphone).
This package contains freely usable music that were meant to be used with
Asterisk in the following formats: a-Law, G.722, G.729, GSM, Siren7, Siren14,
sln16, mu-Law, WAV.

%files -f %{name}.filelist
%doc *-asterisk-core-*-%{version}

#----------------------------------------------------------------------------

%prep
# A bug in rpm5 makes rpmbuild segfault when processing .sln16 files (see rbz #10639):
# as workaround don't install SOURCE6 (-a6).
%setup -q -c -T -n asterisk-core-sounds-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a7 -a8

# Fix perms
find . -type d | xargs chmod 755
find . -type f | xargs chmod 644

# Clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done


%build
# Nothing to do


%install
install -d %{buildroot}/var/lib/asterisk/sounds/en_AU

cp -aRf * %{buildroot}/var/lib/asterisk/sounds/en_AU/


# Fake a file list
find %{buildroot}/var/lib/asterisk/sounds -type f | sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) /' >> %{name}.filelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 302 |21cr|asterisk-core-sounds-es-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine	__find_provides
%undefine	__find_requires

Summary:	Spanish sound files for the Asterisk PBX and telephony application and toolkit
Name:		asterisk-core-sounds-es
Version:	1.6.1
Release:	1
License:	Public Domain
Group:		System/Servers
Url:		http://www.asterisk.org/
# To download sources, do:
#for FMT in alaw g722 g729 gsm sln16 ulaw wav siren7 siren14; do wget -P SOURCES/ -c http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-es-${FMT}-1.6.1.tar.gz ; done
Source0:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-alaw-%{version}.tar.gz
Source1:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g722-%{version}.tar.gz
Source2:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g729-%{version}.tar.gz
Source3:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-gsm-%{version}.tar.gz
Source4:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren7-%{version}.tar.gz
Source5:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren14-%{version}.tar.gz
Source6:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-sln16-%{version}.tar.gz
Source7:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-ulaw-%{version}.tar.gz
Source8:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-wav-%{version}.tar.gz
Requires:	asterisk
Provides:	asterisk-core-sounds = %{version}-%{release}
BuildArch:	noarch

%description
Asterisk is an Open Source PBX and telephony development platform that can
both replace a conventional PBX and act as a platform for developing custom
telephony applications for delivering dynamic content over a telephone
similarly to how one can deliver dynamic content through a web browser using
CGI and a web server.
Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS
and IP telephony clients using the Inter-Asterisk eXchange protocol (e.g.
gnophone or miniphone).
This package contains freely usable music that were meant to be used with
Asterisk in the following formats: a-Law, G.722, G.729, GSM, Siren7, Siren14,
sln16, mu-Law, WAV.

%files -f %{name}.filelist
%doc *-asterisk-core-*-%{version}

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -n asterisk-core-sounds-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8

# Fix perms
find . -type d | xargs chmod 755
find . -type f | xargs chmod 644

# Clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done


%build
# Nothing to do


%install
install -d %{buildroot}/var/lib/asterisk/sounds/es
cp -aRf * %{buildroot}/var/lib/asterisk/sounds/es/

# Fake a file list
find %{buildroot}/var/lib/asterisk/sounds -type f | sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) /' >> %{name}.filelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 303 |21cr|asterisk-core-sounds-fr-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine	__find_provides
%undefine	__find_requires

Summary:	French sound files for the Asterisk PBX and telephony application and toolkit
Name:		asterisk-core-sounds-fr
Version:	1.6.1
Release:	1
License:	Public Domain
Group:		System/Servers
Url:		http://www.asterisk.org/
# To download sources, do:
#for FMT in alaw g722 g729 gsm sln16 ulaw wav siren7 siren14; do wget -P SOURCES/ -c http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-fr-${FMT}-1.6.1.tar.gz ; done
Source0:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-alaw-%{version}.tar.gz
Source1:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g722-%{version}.tar.gz
Source2:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g729-%{version}.tar.gz
Source3:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-gsm-%{version}.tar.gz
Source4:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren7-%{version}.tar.gz
Source5:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren14-%{version}.tar.gz
Source6:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-sln16-%{version}.tar.gz
Source7:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-ulaw-%{version}.tar.gz
Source8:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-wav-%{version}.tar.gz
Requires:	asterisk
Provides:	asterisk-core-sounds = %{version}-%{release}
BuildArch:	noarch

%description
Asterisk is an Open Source PBX and telephony development platform that can
both replace a conventional PBX and act as a platform for developing custom
telephony applications for delivering dynamic content over a telephone
similarly to how one can deliver dynamic content through a web browser using
CGI and a web server.
Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS
and IP telephony clients using the Inter-Asterisk eXchange protocol (e.g.
gnophone or miniphone).
This package contains freely usable music that were meant to be used with
Asterisk in the following formats: a-Law, G.722, G.729, GSM, Siren7, Siren14,
sln16, mu-Law, WAV.

%files -f %{name}.filelist
%doc *-asterisk-core-*-%{version}

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -n asterisk-core-sounds-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8

# Fix perms
find . -type d | xargs chmod 755
find . -type f | xargs chmod 644

# Clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done


%build
# Nothing to do


%install
install -d %{buildroot}/var/lib/asterisk/sounds/fr
cp -aRf * %{buildroot}/var/lib/asterisk/sounds/fr/

# Fake a file list
find %{buildroot}/var/lib/asterisk/sounds -type f | sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) /' >> %{name}.filelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 304 |21cr|asterisk-core-sounds-ru-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine	__find_provides
%undefine	__find_requires

Summary:	Russian sound files for the Asterisk PBX and telephony application and toolkit
Name:		asterisk-core-sounds-ru
Version:	1.6.1
Release:	1
License:	Public Domain
Group:		System/Servers
Url:		http://www.asterisk.org/
# To download the sources, do:
#for FMT in alaw g722 g729 gsm sln16 ulaw wav siren7 siren14; do wget -P SOURCES/ -c http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-core-sounds-ru-${FMT}-1.6.1.tar.gz ; done
Source0:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-alaw-%{version}.tar.gz
Source1:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g722-%{version}.tar.gz
Source2:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g729-%{version}.tar.gz
Source3:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-gsm-%{version}.tar.gz
Source4:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren7-%{version}.tar.gz
Source5:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren14-%{version}.tar.gz
Source6:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-sln16-%{version}.tar.gz
Source7:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-ulaw-%{version}.tar.gz
Source8:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-wav-%{version}.tar.gz
Requires:	asterisk
Provides:	asterisk-core-sounds = %{version}-%{release}
BuildArch:	noarch

%description
Asterisk is an Open Source PBX and telephony development platform that can
both replace a conventional PBX and act as a platform for developing custom
telephony applications for delivering dynamic content over a telephone
similarly to how one can deliver dynamic content through a web browser using
CGI and a web server.
Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS
and IP telephony clients using the Inter-Asterisk eXchange protocol (e.g.
gnophone or miniphone).
This package contains freely usable music that were meant to be used with
Asterisk in the following formats: a-Law, G.722, G.729, GSM, Siren7, Siren14,
sln16, mu-Law, WAV.

%files -f %{name}.filelist
%doc *-asterisk-core-*-%{version}

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -n asterisk-core-sounds-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8

# Fix perms
find . -type d | xargs chmod 755
find . -type f | xargs chmod 644

# Clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done


%build
# Nothing to do

%install
install -d %{buildroot}/var/lib/asterisk/sounds/en
cp -aRf * %{buildroot}/var/lib/asterisk/sounds/en

# Fake a file list
find %{buildroot}/var/lib/asterisk/sounds/en -type f | sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) /' >> %{name}.filelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 305 |21cr|asterisk-extra-sounds-en-1.4.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine __find_provides
%undefine __find_requires

Summary:	English sound files for the Asterisk PBX and telephony application and toolkit
Name:		asterisk-extra-sounds-en
Version:	1.4.11
Release:	4
License:	Public Domain
Group:		System/Servers
URL:		http://www.asterisk.org/
#for FMT in alaw g722 g729 gsm sln16 ulaw wav siren7 siren14; do wget -P SOURCES/ -c http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-extra-sounds-en-${FMT}-1.4.10.tar.gz ; done
Source0:	http://ftp.digium.com/pub/telephony/sounds/%{name}-alaw-%{version}.tar.gz
Source1:	http://ftp.digium.com/pub/telephony/sounds/%{name}-g722-%{version}.tar.gz
Source2:	http://ftp.digium.com/pub/telephony/sounds/%{name}-g729-%{version}.tar.gz
Source3:	http://ftp.digium.com/pub/telephony/sounds/%{name}-gsm-%{version}.tar.gz
Source4:	http://ftp.digium.com/pub/telephony/sounds/%{name}-siren7-%{version}.tar.gz
Source5:	http://ftp.digium.com/pub/telephony/sounds/%{name}-siren14-%{version}.tar.gz
Source6:	http://ftp.digium.com/pub/telephony/sounds/%{name}-sln16-%{version}.tar.gz
Source7:	http://ftp.digium.com/pub/telephony/sounds/%{name}-ulaw-%{version}.tar.gz
Source8:	http://ftp.digium.com/pub/telephony/sounds/%{name}-wav-%{version}.tar.gz
Requires:	asterisk
Provides:	asterisk-extra-sounds = %{version}
BuildArch:	noarch

%description
Asterisk is an Open Source PBX and telephony development platform that can both
replace a conventional PBX and act as a platform for developing custom
telephony applications for delivering dynamic content over a telephone
similarly to how one can deliver dynamic content through a web browser using
CGI and a web server.
 
Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS, and
IP telephony clients using the Inter-Asterisk eXchange protocol (e.g. gnophone
or miniphone).

This package contains freely usable recorded sounds that were meant to be used
with Asterisk in the following formats: a-Law, G.722, G.729, GSM, Siren7, 
Siren14, sln16, mu-Law, WAV

%prep

%setup -q -c -T -n asterisk-extra-sounds-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8

# fix dir perms
find . -type d | xargs chmod 755
    
# fix file perms
find . -type f | xargs chmod 644

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}/var/lib/asterisk/sounds/en

find . -maxdepth 1 -not -iname . -exec cp -aRf {} %{buildroot}/var/lib/asterisk/sounds/en \;

# cleanup
rm -f %{buildroot}/var/lib/asterisk/sounds/en/*-asterisk-extra-*-%{version}

# make a file list
find %{buildroot}/var/lib/asterisk/sounds/en -type f | sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) /' >> %{name}.filelist

%clean
rm -rf %{buildroot}

%files -f %{name}.filelist
%defattr(-,root, root)
%doc *-asterisk-extra-*-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 306 |21cr|asterisk-extra-sounds-fr-1.4.11-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine __find_provides
%undefine __find_requires

Summary:	France sound files for the Asterisk PBX and telephony application and toolkit
Name:		asterisk-extra-sounds-fr
Version:	1.4.11
Release:	5
License:	Public Domain
Group:		System/Servers
Url:		http://www.asterisk.org/
#for I in alaw g722 g729 gsm siren7 siren14 sln16 ulaw wav ; do wget -c http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-extra-sounds-fr-$I-1.4.9.tar.gz -P SOURCES ; done
Source0:	http://ftp.digium.com/pub/telephony/sounds/%{name}-alaw-%{version}.tar.gz
Source1:	http://ftp.digium.com/pub/telephony/sounds/%{name}-g722-%{version}.tar.gz
Source2:	http://ftp.digium.com/pub/telephony/sounds/%{name}-g729-%{version}.tar.gz
Source3:	http://ftp.digium.com/pub/telephony/sounds/%{name}-gsm-%{version}.tar.gz
Source4:	http://ftp.digium.com/pub/telephony/sounds/%{name}-siren7-%{version}.tar.gz
Source5:	http://ftp.digium.com/pub/telephony/sounds/%{name}-siren14-%{version}.tar.gz
Source6:	http://ftp.digium.com/pub/telephony/sounds/%{name}-sln16-%{version}.tar.gz
Source7:	http://ftp.digium.com/pub/telephony/sounds/%{name}-ulaw-%{version}.tar.gz
Source8:	http://ftp.digium.com/pub/telephony/sounds/%{name}-wav-%{version}.tar.gz
Requires:	asterisk
Provides:	asterisk-extra-sounds = %{version}
BuildArch:	noarch

%description
Asterisk is an Open Source PBX and telephony development platform that can both
replace a conventional PBX and act as a platform for developing custom
telephony applications for delivering dynamic content over a telephone
similarly to how one can deliver dynamic content through a web browser using
CGI and a web server.
 
Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS, and
IP telephony clients using the Inter-Asterisk eXchange protocol (e.g. gnophone
or miniphone).

This package contains freely usable recorded sounds that were meant to be used
with Asterisk in the following formats: a-Law, G.722, G.729, GSM, Siren7,
Siren14, sln16, mu-Law, WAV.

%files -f %{name}.filelist
%doc *-asterisk-extra-*-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -n asterisk-extra-sounds-%{version} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

%build

%install
install -d %{buildroot}/var/lib/asterisk/sounds/fr

find . -maxdepth 1 -not -iname . -exec cp -aRf {} %{buildroot}/var/lib/asterisk/sounds/fr \;

# cleanup
rm -f %{buildroot}%{_var}/lib/asterisk/sounds/*-asterisk-extra-*-%{version}

# workaround rpmbuild segfault caused by bug in file 5.28
cp -f %{buildroot}%{_var}/lib/asterisk/sounds/fr/bar.sln16 \
    %{buildroot}%{_var}/lib/asterisk/sounds/fr/barometric.sln16
cp -f %{buildroot}%{_var}/lib/asterisk/sounds/fr/bar.sln16 \
    %{buildroot}%{_var}/lib/asterisk/sounds/fr/ed.sln16
cp -f %{buildroot}%{_var}/lib/asterisk/sounds/fr/bar.sln16 \
    %{buildroot}%{_var}/lib/asterisk/sounds/fr/room-service.sln16
cp -f %{buildroot}%{_var}/lib/asterisk/sounds/fr/bar.sln16 \
    %{buildroot}%{_var}/lib/asterisk/sounds/fr/ha/fan.sln16

# make a file list
rm -f %{name}.filelist
find %{buildroot}/var/lib/asterisk/sounds/fr -type f | sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) /' >> %{name}.filelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 307 |21cr|asterisk-moh-opsound-20131029-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine __find_provides
%undefine __find_requires

Summary:	Free music files for the Asterisk PBX and telephony application and toolkit
Name:		asterisk-moh-opsound
Version:	20131029
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.asterisk.org/
#for I in alaw g722 g729 gsm siren7 siren14 sln16 ulaw wav ; do wget -c http://downloads.asterisk.org/pub/telephony/sounds/releases/asterisk-moh-opsound-$I.tar.gz -P SOURCES ; done
Source0:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-alaw.tar.gz
Source1:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g722.tar.gz
Source2:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-g729.tar.gz
Source3:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-gsm.tar.gz
Source4:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren7.tar.gz
Source5:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-siren14.tar.gz
Source6:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-sln16.tar.gz
Source7:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-ulaw.tar.gz
Source8:	http://downloads.asterisk.org/pub/telephony/sounds/releases/%{name}-wav.tar.gz
Requires:	asterisk
Provides:	asterisk-moh = %{EVRD}
Provides:	asterisk-moh-freeplay = %{EVRD}
Obsoletes:	asterisk-moh-freeplay < 20091226
BuildArch:	noarch

%description
Asterisk is an Open Source PBX and telephony development platform that can both
replace a conventional PBX and act as a platform for developing custom
telephony applications for delivering dynamic content over a telephone
similarly to how one can deliver dynamic content through a web browser using
CGI and a web server.

Asterisk talks to a variety of telephony hardware including BRI, PRI, POTS, and
IP telephony clients using the Inter-Asterisk eXchange protocol (e.g. gnophone
or miniphone).

This package contains freely usable music sounds that were meant to be used
with Asterisk in the following formats: a-Law, G.722, G.729, GSM, Siren7,
Siren14, sln16, mu-Law, WAV

%files -f %{name}.filelist
%doc CHANGES CREDITS LICENSE

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -n %{name} -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

%build
mv CHANGES-asterisk-moh-opsound-wav CHANGES
mv CREDITS-asterisk-moh-opsound-wav CREDITS
mv LICENSE-asterisk-moh-opsound-wav LICENSE

%install
install -d %{buildroot}/var/lib/asterisk/moh
cp -aRf * %{buildroot}/var/lib/asterisk/moh/

# cleanup
rm -f %{buildroot}/var/lib/asterisk/moh/{CHANGES,CREDITS,LICENSE}*

# make a file list
find %{buildroot}/var/lib/asterisk/moh -type f | sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) /' >> %{name}.filelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 308 |21cr|asterisknow-0-0.r5220.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define svnrel	%(echo %{release} |cut -d. -f 2)

Summary:	GUI for configuring Asterisk
Name:		asterisknow
Version:	0
Release:	0.r5220.1
License:	GPL
Group:		System/Servers
# svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0
Source0:	%{name}.%{svnrel}.tar.xz
Patch:		%{name}.mdv.patch
URL:		http://www.asterisknow.org/
Requires:	asterisk >= 1.6.1.0

%description
Asterisk in minutes. The most popular open source PBX software,
Asterisk, can now be easily configured with a graphical interface.
AsteriskNOW. Mandriva Linux distribution that includes Asterisk,
the Asterisk GUI, and all other software needed for an Asterisk system.

%prep
%setup -q -n %{name}.%{svnrel}
%patch -p0

%build
%configure
%make

%install
%makeinstall
mkdir -p %{buildroot}%{_localstatedir}/lib/asterisk/sounds/record




%files
%defattr(-,root,root)
%doc README
%attr(0755,asterisk,asterisk)	%dir	%{_localstatedir}/lib/asterisk/gui_backups
%attr(0755,asterisk,asterisk)	%dir	%{_localstatedir}/lib/asterisk/scripts
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/dldsoundpack
%attr(0755,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/detectdahdi.sh
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/editmisdn.sh
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/editzap.sh
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/listfiles
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/mastercsvexists
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/rebootsystem.sh
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/registerg729.sh
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/restorebackup
%attr(0644,asterisk,asterisk)		%{_localstatedir}/lib/asterisk/scripts/takebackup
%attr(0755,asterisk,asterisk)	%dir	%{_localstatedir}/lib/asterisk/sounds/record
%attr(0755,asterisk,asterisk)	%dir	%{_localstatedir}/lib/asterisk/static-http/config
%attr(0644,root,root)			%{_localstatedir}/lib/asterisk/static-http/config/*.html
%attr(0755,root,root)		%dir	%{_localstatedir}/lib/asterisk/static-http/config/images
%attr(0644,root,root)			%{_localstatedir}/lib/asterisk/static-http/config/images/*.gif
%attr(0644,root,root)			%{_localstatedir}/lib/asterisk/static-http/config/images/*.ico
%attr(0644,root,root)			%{_localstatedir}/lib/asterisk/static-http/config/images/*.jpg
%attr(0644,root,root)			%{_localstatedir}/lib/asterisk/static-http/config/images/*.png
%attr(0755,root,root)		%dir	%{_localstatedir}/lib/asterisk/static-http/config/js
%attr(0644,root,root)			%{_localstatedir}/lib/asterisk/static-http/config/js/*.js
%attr(0755,asterisk,asterisk)	%dir	%{_localstatedir}/lib/asterisk/static-http/config/private
%attr(0755,asterisk,asterisk)	%dir	%{_localstatedir}/lib/asterisk/static-http/config/private/bkps
%attr(0755,root,root)		%dir	%{_localstatedir}/lib/asterisk/static-http/config/stylesheets
%attr(0644,root,root)			%{_localstatedir}/lib/asterisk/static-http/config/stylesheets/*.css
%attr(0644,root,root)			%{_localstatedir}/lib/asterisk/static-http/index.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 309 |21cr|asterisk-stat-2.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		asterisk-stat
Version:	2.0.1
Release:	10
Summary:	Asterisk-Stat : CDR Analyser
License:	GPLv2
Group:		System/Servers
URL:		http://areski.net/asterisk-stat-v2/about.php
Source0:	http://areski.net/asterisk-stat-v2/%{name}-v2_0_1.tar.bz2
Patch0:		asterisk-stat-mdk_conf.diff
Requires:	webserver
Requires:	php-mysql
Requires:	php-gd
Requires:	mod_php
BuildArch:	noarch

%description
Asterisk-Stat is providing different reports & Graph to allow
the Asterisk-admin to analyse quickly and easily the traffic on
their Asterisk server. All the graphic & reports are based over
the CDR database. 

%files
%doc CHANGELOG.txt
#% {_var}/www/html/%{name}
%{_var}/www/html/%{name}/jpgraph_lib/
%{_var}/www/html/%{name}/images/
%{_var}/www/html/%{name}/lib/font
%{_var}/www/html/%{name}/css/
%{_var}/www/html/%{name}/*.php
%{_var}/www/html/%{name}/lib/DB-modules
%{_var}/www/html/%{name}/lib/fpdf.php
%{_var}/www/html/%{name}/lib/Class*.php
%{_var}/www/html/%{name}/lib/iam*.php
%{_var}/www/html/%{name}/*.js
%config(noreplace) %attr(0644,root,root) %{_var}/www/html/%{name}/lib/defines.php

#---------------------------------------------------------------------
%prep
%setup -q -n %{name}-v2
%patch0 -p0

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_var}/www/html/%{name}
cp -aRf * %{buildroot}%{_var}/www/html/%{name}/

# cleanup
rm -rf %{buildroot}%{_var}/www/html/%{name}/CHANGELOG.txt
rm -rf %{buildroot}%{_var}/www/html/%{name}/counter.txt
rm -rf %{buildroot}%{_var}/www/html/%{name}/info.txt
rm -rf %{buildroot}%{_var}/www/html/%{name}/wiki.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 310 |21cr|asteroid-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 64869dfe745800f34f1c68248ba2e350dc95a592
%define shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           asteroid
Version:        1.2.1
Release:        1
Summary:        Modern version of the classic arcade Game
License:        GPLv3
Group:          Games/Arcade
Url:            https://chazomaticus.github.io/asteroid/
Source0:        %{name}-%{version}+git-64869df.tar.bz2
BuildRequires:  cmake
BuildRequires:  pkgconfig(glut)
BuildRequires:  pkgconfig(gail-3.0)
BuildRequires:  pkgconfig(gdk-3.0)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xmu)

%description
Asteroid (just one!) is a modern version of the arcade classic Asteroids,
using OpenGL, GLUT, and optionally GTK and SDL_mixer.
It features a variety of powerups, taunting aliens, 3D textured asteroids,
face-melting sound effects, and infinite playability.

%files
%doc AUTHORS COPYING NEWS README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%{_datadir}/%{name}
#--------------------------------------------------

%prep
%setup -q -n %{name}-%{version}+git-%{shortcommit}

# fix include
sed -i -e 's|${OPENGL_LIBRARIES}|-lm ${OPENGL_LIBRARIES}|' \
     CMakeLists.txt

%build
%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 311 |21cr|asteroids3D-0.5.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	Summary	A 3D, first-person game of blowing up asteroids

Name:		asteroids3D
Summary:	%{Summary}
Version:	0.5.1
Release:	6
License:	GPLv2+
Group:		Games/Arcade
Source:		https://sourceforge.net/projects/a3d/%{name}-%{version}.tar.bz2
URL:		https://sourceforge.net/projects/a3d/	
BuildRequires:	mesa-common-devel

%description
asteroids3D is a 3D, first-person game of blowing up asteroids.
The graphics more accurately reflect the future position of the 
targeted asteroid and provide information about closure rate.

%prep
%setup -q 

%build
%configure --with-gamesdir=%{_gamesbindir} --with-gamedatadir=%{_gamesdatadir}/%{name}
%make

%install
make install gamesdir=%{buildroot}%{_gamesbindir} gamedatadir=%{buildroot}%{_gamesdatadir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=arcade_section
Categories=Game;ArcadeGame;
Name=Asteroids3D
Comment=%{Summary}
Comment[ru]=3D-аркада - взрывайте астероиды!
EOF

%files
%doc COPYRIGHT README.html 
%{_datadir}/applications/%{name}.desktop
%{_gamesdatadir}/%{name}
%defattr (755,root,root,755)
%{_gamesbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 312 |21cr|astromenace-1.4.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname openastromenace
%define oversion 1781

Summary:	Hardcore 3D space shooter with spaceship upgrade possibilities
Name:		astromenace
Version:	1.4.2
Release:	3
License:	GPLv3+
Group:		Games/Arcade
Url:		http://www.viewizard.com/
#Source0:	https://github.com/viewizard/astromenace/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source0:	https://github.com/viewizard/astromenace/archive/%{version}-%{oversion}/%{name}-%{version}-%{oversion}.tar.gz
Source1:	astromenace.desktop
Patch0:		astromenace-1.4.2-includes.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	jpeg-devel
BuildRequires:	desktop-file-utils
Provides:	%{oname} = %{version}-%{release}
Requires:	%{name}-data = %{version}

%description
Space is a vast area, an unbounded territory where it seems there is a 
room for everybody, but reversal of fortune put things differently. The 
hordes of hostile creatures crawled out from the dark corners of the
universe, craving to conquer your homeland. Their force is compelling,
their legions are interminable. However, humans didn't give up without
a final showdown and put their best pilot to fight back. These malicious
invaders chose the wrong galaxy to conquer and you are to prove it! 
Go ahead and make alien aggressors regret their insolence.

%files
%doc CHANGELOG.md LICENSE.md README.md
%{_bindir}/%{name}
%{_datadir}/applications/astromenace.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#------------------------------------------------------------------

%package data
Summary:	Game data for AstroMenace game
Requires:	%{name} = %{version}
Obsoletes:	astromenace-data < 1.3.1
Obsoletes:	astromenace-data-ru < 1.3.1
Obsoletes:	astromenace-data-de < 1.3.1

%description data
This package provides game data for AstroMenace.

%files data
%{_datadir}/%{name}

#------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{oversion}
%patch0 -p0
find . -name "*.cpp" -exec sed -i 's/\r//g' {} \;
find . -name "*.h" -exec sed -i 's/\r//g' {} \;
find . -name "*.cpp" -exec chmod 0644 {} \;
find . -name "*.h" -exec chmod 0644 {} \;
chmod -x CHANGELOG.md LICENSE.md README.md

%build
%cmake \
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DDATADIR=/usr/share/astromenace
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 build/astromenace %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 644 build/gamedata.vfs %{buildroot}%{_datadir}/%{name}/gamedata.vfs

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{SOURCE1}

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
install -p -m 644 share/%{name}_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -p -m 644 share/%{name}_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 313 |21cr|astronciaiptv-0.0.95-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IPTV player
Name:		astronciaiptv
Version:	0.0.95
Release:	1
Group:		Video
License:	GPLv3
URL:		https://gitlab.com/astroncia/iptv
Source0:	%{name}-%{version}.tar.gz
Requires:	python3
Requires:	mpv
Requires:	python3-qt5
Requires:	python3-pillow
Requires:	python3-gobject
Requires:	python3-unidecode
Requires:	python3-requests
Requires:	python3-setproctitle
Requires:	ffmpeg
BuildArch:	noarch

%description
IPTV player.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_localedir}/*/*/astronciaiptv.mo
%{_prefix}/lib/%{name}
%{_iconsdir}/hicolor/scalable/apps/astronciaiptv.svg
%{_appdatadir}/astronciaiptv.appdata.xml

%prep
%setup -q

%build
#nothing

%install
cp -af usr %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 314 |21cr|astyle-2.05.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Reindenter and reformatter of C++, C and Java source code
Name:		astyle
Version:	2.05.1
Release:	4
License:	LGPLv3+
Group:		Development/C
Url:		http://astyle.sourceforge.net/
Source0:	http://internap.dl.sourceforge.net/sourceforge/astyle/astyle_%{version}_linux.tar.gz

%description
Artistic Style is a series of filters that automatically reindent and reformat
C/C++/Java source files. These can be used from a command line, or they can be
incorporated as classes in another C++ program.

%files
%doc doc/*
%{_bindir}/astyle

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
cd build/gcc
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 build/gcc/bin/astyle %{buildroot}%{_bindir}/astyle

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 315 |21cr|asunder-2.9.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GTK+-based audio CD ripper and encoder
Name:		asunder
Version:	2.9.7
Release:	2
License:	GPLv2
Group:		Archiving/Cd burning
URL:		http://littlesvr.ca/asunder/
Source0:	http://littlesvr.ca/asunder/releases/%{name}-%{version}.tar.bz2

BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcddb)
BuildRequires:	intltool >= 0.34.90

Requires:	cdparanoia
Recommends:	lame
Recommends:	vorbis-tools
Recommends:	flac
Recommends:	wavpack

%description
Asunder is a graphical Audio CD ripper and encoder for Linux. You can 
use it to save tracks from an Audio CD as WAV, MP3, OGG, Musepack, AAC,
Monkey Audio, and/or FLAC.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 316 |21cr|asusctl-5.0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

# Use hardening ldflags.
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now

%bcond_without alt_rust

%global cargo_path %(echo /opt/rust*/bin)

Summary:	Control fan speeds, LEDs, graphics modes, and charge levels for ASUS notebooks
Name:		asusctl
Version:	5.0.10
Release:	1
License:	MPLv2
Group:		System/Kernel and hardware
Url:		https://gitlab.com/asus-linux/asusctl
Source0:	https://gitlab.com/asus-linux/asusctl/-/archive/%{version}/%{name}-%{version}.tar.gz
# From https://gitlab.com/asus-linux/asusctl/-/releases/%{version}
Source1:	vendor_%{name}_%{version}.tar.xz
Source2:	cargo_config
BuildRequires:	clang-devel
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	git
%if %{without alt_rust}
BuildRequires:	cargo
BuildRequires:	rust-packaging
%else
BuildRequires:	rust-nightly
%endif
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(systemd)
Requires:	typelib(AppIndicator3)
Recommends:	%{_lib}canberra-gtk3_0
Recommends:	power-profiles-daemon
# No Rust
ExcludeArch:	%{e2k} %{riscv}

%description
asus-nb-ctrl is a utility for Linux to control many aspects of various
ASUS laptops but can also be used with non-Asus laptops with reduced features.

It provides an interface for rootless control of some system functions such as
fan speeds, keyboard LEDs, battery charge level, and graphics modes.
asus-nb-ctrl enables third-party apps to use the above with dbus methods.

%files
%license LICENSE
%{_bindir}/asusd
%{_bindir}/asusd-user
%{_bindir}/asusctl
%{_userunitdir}/asusd-user.service
%{_prefix}/lib/systemd/system/asusd.service
%{_prefix}/lib/udev/rules.d/99-asusd.rules
%{_datadir}/dbus-1/system.d/asusd.conf
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_yellow.png
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_green.png
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_red.png
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_blue.png
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_orange.png
%{_datadir}/icons/hicolor/512x512/apps/asus_notif_white.png
%{_datadir}/icons/hicolor/scalable/status/gpu-compute.svg
%{_datadir}/icons/hicolor/scalable/status/gpu-hybrid.svg
%{_datadir}/icons/hicolor/scalable/status/gpu-integrated.svg
%{_datadir}/icons/hicolor/scalable/status/gpu-nvidia.svg
%{_datadir}/icons/hicolor/scalable/status/gpu-vfio.svg
%{_datadir}/icons/hicolor/scalable/status/notification-reboot.svg
%{_docdir}/%{name}/
%{_datadir}/asusd/

#-----------------------------------------------------------------------

%package rog-gui
Summary:	An experimental GUI for %{name}
Group:		System/Kernel and hardware
Requires:	%{name}

%description rog-gui
A one-stop-shop GUI tool for asusd/asusctl. It aims to provide most controls,
a notification service, and ability to run in the background.

%files rog-gui
%{_bindir}/rog-control-center
%{_datadir}/applications/rog-control-center.desktop
%{_datadir}/icons/hicolor/512x512/apps/rog-control-center.png
%{_datadir}/rog-gui

#-----------------------------------------------------------------------

%prep
%autosetup -a 1 -n %{name}-%{version}

%if %{without alt_rust}
mv Cargo.lock{,.bak}
%cargo_prep
mv Cargo.lock{.bak,}
sed -i 's|replace-with = "local-registry"|replace-with = "vendored-sources"|' .cargo/config
%else
mkdir -p ${PWD}/.cargo
%endif

cat %{SOURCE2} >> .cargo/config

%if %{with alt_rust}
sed -i -e "s|^#||g" .cargo/config
%endif

%build
export RUSTFLAGS="%{rustflags}"

%if %{with alt_rust}
export PATH="%{cargo_path}:${PATH}"
cargo -V

cargo build --release %{_smp_mflags} -Z avoid-dev-deps
%else
%cargo_build
%endif

%install
export RUSTFLAGS="%{rustflags}"
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}
%make_install

install -D -m 0644 README.md %{buildroot}%{_docdir}/%{name}/README.md
install -D -m 0644 rog-anime/README.md %{buildroot}%{_docdir}/%{name}/README-anime.md
install -D -m 0644 rog-anime/data/diagonal-template.png %{buildroot}%{_docdir}/%{name}/diagonal-template.png

desktop-file-validate %{buildroot}%{_datadir}/applications/rog-control-center.desktop
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 317 |21cr|asymptote-2.84-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Descriptive vector graphics language for technical drawing
Name:		asymptote
Version:	2.84
Release:	1
License:	LGPLv3+
Group:		Publishing
Url:		http://asymptote.sourceforge.net/
Source0:	https://sourceforge.net/projects/asymptote/files/%{version}/%{name}-%{version}.src.tgz
Patch0:		asymptote-not-build-latexusage.patch
BuildRequires:	bison
BuildRequires:	boost-devel
BuildRequires:	imagemagick
BuildRequires:	eigen3
BuildRequires:	flex
BuildRequires:	glm-devel
BuildRequires:	tetex
BuildRequires:	texinfo
BuildRequires:	texlive
BuildRequires:	texlive-texinfo
BuildRequires:	texlive-collection-langchinese
BuildRequires:	texlive-collection-langmongolian
BuildRequires:	texlive-epstopdf-pkg
BuildRequires:	texlive-scheme-full
BuildRequires:	texlive-grfext
BuildRequires:	texlive-media9
BuildRequires:	texlive-ocgx2
BuildRequires:	texlive-unicode-data
BuildRequires:	tkinter
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(bdw-gc)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	ghostscript
BuildRequires:	ghostscript-dvipdf

Requires:	tkinter
Requires:	tetex-latex
Requires(post,postun):	tetex

%description
Asymptote is a powerful descriptive vector graphics language that 
provides a natural coordinate-based framework for technical drawing. 
Labels and equations are typeset with LaTeX, for high-quality 
PostScript output.

A major advantage of Asymptote over other graphics packages is that 
it is a programming language, as opposed to just a graphics program.

Features of Asymptote:

- provides a portable standard for typesetting mathematical figures, 
  just as TeX/LaTeX has become the standard for typesetting equations;

- generates and embeds 3D vector PRC graphics within PDF files;

- inspired by MetaPost, with a much cleaner, powerful C++-like 
  programming syntax and floating-point numerics;

- runs on all major platforms (UNIX, MacOS, Microsoft Windows);

- mathematically oriented (e.g. rotation of vectors by complex 
  multiplication);

- LaTeX typesetting of labels (for document consistency);

- uses simplex method and deferred drawing to solve overall size 
  constraint issues between fixed-sized objects (labels and 
  arrowheads) and objects that should scale with figure size;

- fully generalizes MetaPost path construction algorithms to three 
  dimensions;

- compiles commands into virtual machine code for speed without 
  sacrificing portability;

- high-level graphics commands are implemented in the Asymptote 
  language itself, allowing them to be easily tailored to specific 
  applications.

%files
%doc BUGS ChangeLog LICENSE* README ReleaseNotes TODO
%doc %{_docdir}/%{name}/examples
%doc %{_docdir}/%{name}/*.pdf
%doc %{_docdir}/%{name}/asy-faq.html
%doc %{_docdir}/%{name}/asy-faq.ascii
%{_sysconfdir}/emacs/site-start.d/asy-init.el
%{_bindir}/asy
%{_bindir}/xasy
%{_datadir}/%{name}
%{_datadir}/applications/xasy.desktop
%{_datadir}/emacs/site-lisp/asy-mode.el
%{_datadir}/emacs/site-lisp/asy-keywords.el
%{_datadir}/vim/syntax/asy.vim
%{_datadir}/texmf-dist/tex/latex/%{name}
%{_datadir}/texmf-dist/tex/context/%{name}
%{_iconsdir}/hicolor/*/apps/asy.png
%{_infodir}/*.info*
%{_mandir}/man1/asy*
%{_mandir}/man1/xasy*

%post
texhash

%preun
texhash

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--enable-gc=system \
	--disable-texlive-build \
	--with-latex=%{_datadir}/texmf-dist/tex/latex \
	--with-context=%{_datadir}/texmf-dist/tex/context
%make

%install
%makeinstall_std

# Create symlinks for vim / emacs
install -d -m 755 %{buildroot}%{_datadir}/vim/syntax
ln -s ../../%{name}/asy.vim %{buildroot}%{_datadir}/vim/syntax/asy.vim

install -d -m 755 %{buildroot}%{_sysconfdir}/emacs/site-start.d
ln -s ../../../%{_datadir}/%{name}/asy-init.el %{buildroot}%{_sysconfdir}/emacs/site-start.d/asy-init.el
install -d -m 755 %{buildroot}%{_datadir}/emacs/site-lisp
ln -s ../../%{name}/asy-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/asy-mode.el
ln -s ../../%{name}/asy-keywords.el %{buildroot}%{_datadir}/emacs/site-lisp/asy-keywords.el

# Move info file
mv %{buildroot}%{_infodir}/asymptote/asymptote.info %{buildroot}%{_infodir}/asymptote.info

# Icon
for size in 16x16 32x32 48x48
do
  install -d %{buildroot}%{_iconsdir}/hicolor/$size/apps
  convert -resize $size asy.ico %{buildroot}%{_iconsdir}/hicolor/$size/apps/asy.png
done

# Create xasy desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/xasy.desktop << EOF
[Desktop Entry]
Name=Asymptote
Comment=GUI tool for using Asymptote vector graphics 
Exec=%{_bindir}/xasy
Icon=asy
Terminal=false
StartupNotify=true
Type=Application
Categories=Graphics;VectorGraphics;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 318 |21cr|ataidle-2.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility to manage ATA drives 
Name:		ataidle
Version:	2.7.1
Release:	4
License:	BSD
Group:		System/Kernel and hardware 
Url:		http://www.cran.org.uk/bruce/software/ataidle.php
Source0:	http://www.cran.org.uk/bruce/software/%{name}-%{version}.tar.bz2

%description
ATAidle is a utility to set the power management features of ATA hard drives
in FreeBSD and Linux, including idle and standby timeouts, APM, and
acoustic level settings.

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%make

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_mandir}/man8/
install ataidle %{buildroot}/%{_sbindir}
install ataidle.8 %{buildroot}/%{_mandir}/man8

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README Changelog
%{_sbindir}/ataidle
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 319 |21cr|atanks-6.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		atanks
Version:	6.6
Release:	1
Summary:	Scorched Earth game clone
License:	GPLv2+
Group:		Games/Arcade
Url:		http://atanks.sourceforge.net/
Source0:	http://downloads.sourceforge.net/sourceforge/atanks/atanks-%{version}.tar.gz
Patch0:		atanks-remove-cxxflags-mangling.patch
BuildRequires:	pkgconfig(allegro)
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
Requires:	hicolor-icon-theme

%description
This is Atomic Tanks, a multi-player game similar to Scorched Earth
which involves firing enormous weapons to try and destroy the other
tanks.

%files
%doc Changelog README TODO README_ru.txt
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/metainfo/io.sourceforge.atanks.metainfo.xml

#-------------------------------------------------------------------------
%prep
%autosetup -p1

%build
%setup_compile_flags
%make \
	CC="%{__cxx} -g3" \
	OFLAGS="%{optflags}" \
	LFLAGS="%{ldflags} -L%{_libdir} -lX11 -lXext -lXcursor -lXpm -lxcb -lXrender -lXfixes -lXau -lXdmcp" \
	INSTALLDIR=%{_gamesdatadir}/%{name} \
	DEBUG_LOG_TO_FILE=YES

%install
%makeinstall_std \
	BINDIR=%{_gamesbindir} \
	INSTALLDIR=%{_gamesdatadir}/%{name}

perl -pi -e "s/\r$//g" %{buildroot}%{_gamesdatadir}/%{name}/tanks.txt


# install menu icons
for N in 16 32 48 64;
do
convert %{name}.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

desktop-file-install %{name}.desktop \
  --mode 0644 \
  --delete-original \
  --dir=%{buildroot}%{_datadir}/applications  
  

# appdata
mkdir -p %{buildroot}%{_appdatadir}  
 cat > %{buildroot}%{_appdatadir}/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
BugReportURL: jessefrgsmith@yahoo.ca
SentUpstream: 2014-09-17
-->
<application>
  <id type="desktop">atanks.desktop</id>
  <metadata_license>CC0-1.0</metadata_license>
  <summary>Turn-based artillery strategy game</summary>
  <description>
    <p>
      Atomic Tanks is a turn based artillery strategy game where opponents
      take turns to bombard each other with a wide array of different weapons.
      To make things more interesting, Atomic Tanks also features desctructable
      landscapes, teleporting, parachutes and different weather conditions.
    </p>
  </description>
  <url type="homepage">http://atanks.sourceforge.net/index.html</url>
  <screenshots>
    <screenshot type="default">http://atanks.sourceforge.net/Screenshots/scrnshot29.png</screenshot>
  </screenshots>
  <!-- FIXME: change this to an upstream email address for spec updates
  <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
   -->
</application>

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 320 |21cr|atari800-4.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Atari 800 Emulator
Name:		atari800
Version:	4.2.0
Release:	2
License:	GPLv2+
Group:		Emulators
Url:		http://atari800.atari.org/
Source0:	https://github.com/atari800/atari800/releases/download/ATARI800_4_2_0/atari800-%{version}-src.tgz
Source1:	%{name}-chooser
Source2:	ATARI5200.ROM
Source3:	ATARIBAS.ROM
Source4:	ATARIOSA.ROM
Source5:	ATARIOSB.ROM
Source6:	ATARIXL.ROM
BuildRequires:	librsvg
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)

%description
This is Atari 800, 800XL, 130XE and 5200 emulator.

#----------------------------------------------------------------------------

%package common
Summary:	Atari 800 Emulator - common files for all versions
License:	GPLv2+
Group:		Emulators
Recommends:	%{name}-roms

%description common
This is Atari 800, 800XL, 130XE and 5200 emulator.

This package contains common files for ncurses, SDL and X11 versions
of Atari800.

%files common
%doc DOC/{BUGS,CREDITS,ChangeLog,FAQ,NEWS,README,TODO,USAGE,*.txt}
%{_bindir}/%{name}
%{_sysconfdir}/%{name}.cfg
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package roms
Summary:	Atari 800 Emulator - ROM files
License:	Freeware
Group:		Emulators

%description roms
This is Atari 800, 800XL, 130XE and 5200 emulator.

This package contains ROM files.

Notes: Darek Mihocka got the permission from Atari corp. to distribute
the images of Atari 800XL's OS and BASIC ROMs. Package that contains these
ROM images is free now.

%files roms
%{_datadir}/%{name}/*.ROM

#----------------------------------------------------------------------------

%package x11
Summary:	Atari 800 Emulator - X Window version
License:	GPLv2+
Group:		Emulators
Requires:	%{name}-common = %{EVRD}

%description x11
This is Atari 800, 800XL, 130XE and 5200 emulator.

This package contains Atari800 executable file configured for X11 with
sound and joystick support.

%files x11
%{_bindir}/atari800-x11

#----------------------------------------------------------------------------

%package sdl
Summary:	Atari 800 Emulator - SDL version
License:	GPLv2+
Group:		Emulators
Requires:	%{name}-common = %{EVRD}

%description sdl
This is Atari 800, 800XL, 130XE and 5200 emulator.

This package contains Atari800 executable file configured for SDL with
sound and joystick support.

%files sdl
%{_bindir}/atari800-sdl

#----------------------------------------------------------------------------

%package ncurses
Summary:	Atari 800 Emulator - Ncurses version
License:	GPLv2+
Group:		Emulators
Requires:	%{name}-common = %{EVRD}

%description ncurses
This is Atari 800, 800XL, 130XE and 5200 emulator.

This package contains Atari800 executable file configured for Ncurses 
support.

%files ncurses
%{_bindir}/atari800-ncurses

#----------------------------------------------------------------------------

%prep
%setup -q
find ./src -type f -name "*.[chi]*" -exec chmod 644 '{}' +

%build
%configure --target=default --with-video=sdl --with-sound=sdl
%make
cd src
mv -f atari800 atari800-sdl
cd ..
make clean

%configure --target=shm
%make
cd src
mv -f atari800 atari800-x11
cd ..
make clean

%configure --target=default --with-video=ncurses
%make
cd src
mv -f atari800 atari800-ncurses
cd ..

%install
mkdir -p %{buildroot}%{_bindir}
install src/atari800-x11 %{buildroot}%{_bindir}
install src/atari800-sdl %{buildroot}%{_bindir}
install src/atari800-ncurses %{buildroot}%{_bindir}
install %{SOURCE1} %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_mandir}/man1
install src/atari800.man %{buildroot}%{_mandir}/man1/%{name}.1

mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/ATARI5200.ROM
install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/%{name}/ATARIBAS.ROM
install -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/%{name}/ATARIOSA.ROM
install -m 0644 %{SOURCE5} %{buildroot}%{_datadir}/%{name}/ATARIOSB.ROM
install -m 0644 %{SOURCE6} %{buildroot}%{_datadir}/%{name}/ATARIXL.ROM

mkdir -p %{buildroot}%{_sysconfdir}/
install src/dc/%{name}.cfg %{buildroot}%{_sysconfdir}/%{name}.cfg

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=Atari800
Name[ru]=Atari800
Comment=An emulator of 8-bit Atari personal computers.
Comment[ru]=Эмулятор 8-bit компьютера Atari
Icon=%{name}
Exec=%{name}
Categories=Game;Emulator;
EOF

# Install icons of various sizes
for s in 256 128 96 48 32 22 16 ; do
mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps
rsvg-convert -w ${s} -h ${s} \
    data/atari2.svg -o \
    %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 321 |21cr|aterm-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An rxvt-based terminal emulator for X11
Name:		aterm
Version:	1.0.1
Release:	1
License:	GPLv2+
Group:		Terminals
Url:		http://aterm.sourceforge.net
Source0:	ftp://ftp.afterstep.org/apps/aterm/%{name}-%{version}.tar.bz2
Patch0:		aterm-debuginfo.patch
Patch1:		aterm-stropts.patch
Patch2:		aterm-1.0.1-no-strip.patch

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)

%description
Aterm is a colour vt102 terminal emulator based on rxvt 2.4.8 intended as an 
xterm replacement for users who do not require features such as Tektronix 4014 
emulation and toolkit style configurability

%files
%doc ChangeLog doc/README.* %{name}.lsm README.configure
%doc doc/FAQ doc/ChangeLog.rxvt
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1

%build
%configure \
	--enable-fading \
	--enable-background-image
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=An rxvt-based terminal emulator for X11
Exec=%{name} -name Terminal
Icon=%{name}
Terminal=false
Type=Application
Categories=TerminalEmulator;System;
EOF

chrpath --delete %{buildroot}%{_bindir}/aterm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 322 |21cr|atftp-0.7.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced Trivial File Transfer Protocol (TFTP) client
Name:		atftp
Version:	0.7.1
Release:	13
License:	GPLv2+
Group:		System/Servers
Url:		http://ftp.de.debian.org/debian/pool/main/a/atftp/
Source0:	%{name}-%{version}.tar.gz
Source1:	atftpd.init.d
Source2:	atftpd.sysconfig
Source3:	atftpd.logrotate
Source4:	atftp-tmpfiles.conf
Patch0:		atftp-0.7.1-gcc5.patch
Patch1:		atftp-0.7.1-inlines.patch
Patch3:		atftp-CLK_TCK.diff
BuildRequires:	readline-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(ncurses)
Requires(pre):	rpm-helper
Provides:	tftp = %{EVRD}

%description
atftp is an advanced client implementation of the TFTP protocol that implements
RFCs 1350, 2090, 2347, 2348, and 2349. The server is multi-threaded and the
client presents a friendly interface using libreadline. The current server
implementation lacks IPv6 support.

%files
%defattr(-, root, root, 0755)
%doc BUGS Changelog FAQ INSTALL LICENSE README* TODO
%doc %{_mandir}/man1/atftp.*
%{_bindir}/atftp

#----------------------------------------------------------------------------

%package server
Summary:	Advanced Trivial File Transfer Protocol (TFTP) server
Group:		System/Servers
Requires:	binutils
Requires:	gawk
Requires:	logrotate
Requires:	tcp_wrappers
Requires(pre):	rpm-helper
Conflicts:	tftp-server

%description server
atftpd is an advanced server implementation of the TFTP
protocol that implements RFCs 1350, 2090, 2347, 2348, and 2349.
The server is multi-threaded and the client presents a friendly
interface using libreadline. The current server implementation
lacks IPv6 support.

%files server
%defattr(-, root, root, 0755)
%doc docs/*
%attr(0755,root,root) %{_initrddir}/atftpd
%{_sysconfdir}/tmpfiles.d/atftpd.conf
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/xinetd.d/tftp
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/atftpd
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/atftpd

%dir %{_localstatedir}/lib/tftpboot
%dir %attr(0755,nobody,nogroup) %{_logdir}/atftpd
%{_sbindir}/atftpd
%{_sbindir}/in.tftpd
%attr(0644,nobody,nogroup) %{_logdir}/atftpd/atftpd.log
%{_mandir}/man8/atftpd.*
%{_mandir}/man8/in.tftpd.*

%post server
%_post_service atftpd
systemd-tmpfiles --create atftpd.conf

%preun server
%_preun_service atftpd

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch3

### FIXME: Change location of pcre.h to pcre/pcre.h (Please fix upstream)
if [ -r %{_includedir}/pcre/pcre.h ]; then
    perl -pi.orig -e 's|\bpcre.h\b|pcre/pcre.h|' configure tftpd_pcre.h
fi

cat <<EOF >tftp.xinetd
# default: off
# description: The tftp server serves files using the trivial file transfer protocol. The tftp protocol is often used to boot diskless workstations, download configuration files to network-aware printers, and to start the installation process for some operating systems.
service tftp
{
	disable	= yes
	socket_type		= dgram
	protocol		= udp
	wait			= yes
	user			= root
	server			= %{_sbindir}/in.tftpd
# multicast config
#	server_args		= --tftpd-timeout 300 --retry-timeout 5 --mcast-port 1758 --mcast-addr 239.239.239.0-255 --maxthread 1000 --verbose=5 %{_localstatedir}/lib/tftpboot
	server_args		= %{_localstatedir}/lib/tftpboot
	per_source		= 11
	cps			= 100 2
	flags			= IPv4
}
EOF

%build
autoreconf -fi

%configure \
	--disable-dependency-tracking \
	--enable-libreadline \
	--enable-libwrap \
	--enable-libpcre \
	--enable-mtftp
%serverbuild

%install
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_logdir}/atftpd

%makeinstall

install -Dp -m 0755 %{SOURCE1} %{buildroot}/%{_initrddir}/atftpd
install -Dp -m 644  %{SOURCE4} %{buildroot}%{_sysconfdir}/tmpfiles.d/atftpd.conf
install -Dp -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/sysconfig/atftpd
install -Dp -m 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/logrotate.d/atftpd

install -d %{buildroot}/%{_localstatedir}/lib/tftpboot/
install -Dp -m0644 tftp.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/tftp
touch %{buildroot}%{_logdir}/atftpd/atftpd.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 323 |21cr|atlas-3.10.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define enable_native_atlas 0

Name:           atlas
Version:        3.10.3
%if "%{?enable_native_atlas}" != "0"
%define dist .native
%endif
Release:        3
Summary:        Automatically Tuned Linear Algebra Software
Group:          Sciences/Mathematics
License:        BSD
URL:            http://math-atlas.sourceforge.net/
Source0:        http://downloads.sourceforge.net/math-atlas/%{name}%{version}.tar.bz2
Source1:        PPRO32.tgz
Source2:        README.dist
#archdefs taken from debian:
Source3:        POWER332.tar.bz2
Source4:        IBMz932.tar.bz2
Source5:        IBMz964.tar.bz2
#upstream arm uses softfp abi, fedora arm uses hard
Source6:        ARMv732NEON.tar.bz2
#again, taken from debian
Source7:        IBMz1264.tar.bz2
Source8:        ARMa732.tar.bz2

#Provided By IBM
Source9:        IBMz1364VXZ.tar.bz2
Source10:       IBMz1464VXZ2.tar.bz2
Source11:       IBMz1564VXZ2.tar.bz2

Source100:      atlas.rpmlintrc

# Properly pass -melf_* to the linker with -Wl, fixes FTBFS bug 817552
# https://sourceforge.net/tracker/?func=detail&atid=379484&aid=3555789&group_id=23725
Patch1:		atlas-melf.patch
Patch2:		atlas-throttling.patch

#credits Lukas Slebodnik
Patch3:		atlas-shared_libraries.patch

Patch4:		atlas-genparse.patch

# Unbundle LAPACK (BZ #1181369)
Patch5:		atlas.3.10.1-unbundle.patch
Patch6:	atlas-gcc10.patch


#patches dealing with z{13,14,15}, provided by IBM
Patch7: 0001-Avoid-c99-standard-compiler.patch
Patch8: 0002-Fix-rpath-link-command-line-options.patch
Patch9: 0003-Fix-SIMD-support-on-IBM-z13.patch
Patch10: 0004-Read-L1-data-cache-size-from-sysconf-if-possible.patch
Patch11: 0005-Optimizations-for-IBM-z13.patch
Patch12: 0006-Add-IBM-z14-support.patch
Patch13: 0007-Enable-cross-compile.patch
Patch14: 0008-Add-IBM-z15-support.patch
Patch15: atlas-fgrep.patch
#Covscan
Patch101: atlas-getri.patch

BuildRequires: make
BuildRequires: gcc-gfortran
BuildRequires: lapack-devel
BuildRequires: lapack-static-devel

%ifarch x86_64
Obsoletes:      atlas-sse3 < 3.10.3-1
%endif

%ifarch %{ix86}
Obsoletes:      atlas-3dnow < 3.10.3-1
Obsoletes:      atlas-sse < 3.10.3-1
Obsoletes:      atlas-sse2 < 3.10.3-1
Obsoletes:      atlas-sse3 < 3.10.3-1
%endif

%ifarch s390 s390x
Obsoletes:      atlas-z10 < 3.10.3-11
Obsoletes:      atlas-z196 < 3.10.3-11
%endif


%description
The ATLAS (Automatically Tuned Linear Algebra Software) project is an
ongoing research effort f(ocusing on applying empirical techniques in
order to provide portable performance. At present, it provides C and
Fortran77 interfaces to a portably efficient BLAS implementation, as
well as a few routines from LAPACK.

The performance improvements in ATLAS are obtained largely via
compile-time optimizations and tend to be specific to a given hardware
configuration. In order to package ATLAS some compromises
are necessary so that good performance can be obtained on a variety
of hardware. This set of ATLAS binary packages is therefore not
necessarily optimal for any specific hardware configuration.  However,
the source package can be used to compile customized ATLAS packages;
see the documentation for information.

#---------------------------------------------------------------------
%package devel
Summary:        Development libraries for ATLAS
Requires:       %{name} = %{version}-%{release}
Obsoletes:      %name-header <= %version-%release
Requires(posttrans): /usr/sbin/alternatives
Requires(postun):    /usr/sbin/alternatives

%ifarch x86_64
Obsoletes:      atlas-sse3-devel < 3.10.3-1
%endif

%ifarch %{ix86}
Obsoletes:      atlas-3dnow-devel < 3.10.3-1
Obsoletes:      atlas-sse-devel < 3.10.3-1
Obsoletes:      atlas-sse2-devel < 3.10.3-1
Obsoletes:      atlas-sse3-devel < 3.10.3-1
%endif

%ifarch s390 s390x
Obsoletes:      atlas-z10-devel < 3.10.3-11
Obsoletes:      atlas-z196-devel < 3.10.3-11
%endif

%description devel
This package contains headers for development with ATLAS
(Automatically Tuned Linear Algebra Software).

#---------------------------------------------------------------------

%package static
Summary:        Static libraries for ATLAS
Requires:       %{name}-devel = %{version}-%{release}
Requires(posttrans):	/usr/sbin/alternatives
Requires(postun):	/usr/sbin/alternatives

%ifarch x86_64
Obsoletes:      atlas-sse3-static < 3.10.3-1
%endif

%ifarch %{ix86}
Obsoletes:      atlas-3dnow-static < 3.10.3-1
Obsoletes:      atlas-sse-static < 3.10.3-1
Obsoletes:      atlas-sse2-static < 3.10.3-1
Obsoletes:      atlas-sse3-static < 3.10.3-1
%endif

%ifarch s390 s390x
Obsoletes:      atlas-z10-static < 3.10.3-11
Obsoletes:      atlas-z196-static  < 3.10.3-11
%endif

%description static
This package contains static version of ATLAS (Automatically Tuned
Linear Algebra Software).

#---------------------------------------------------------------------

%define types base

%if "%{?enable_native_atlas}" == "0"
############## Subpackages for architecture extensions #################
#
%ifarch x86_64
%define types base corei2

%package corei2-static
Summary:        ATLAS libraries for Corei2 (Ivy/Sandy bridge) CPUs

%description corei2-static
This package contains the ATLAS (Automatically Tuned Linear Algebra
Software) static libraries compiled with optimizations for the Corei2 (Ivy/Sandy bridge)
CPUs. The base ATLAS builds for the x86_64 architecture are made for the hammer64 CPUs.

#---------------------------------------------------------------------

%package corei2
Summary:        ATLAS libraries for Corei2 (Ivy/Sandy bridge) CPUs

%description corei2
This package contains the ATLAS (Automatically Tuned Linear Algebra
Software) libraries compiled with optimizations for the Corei2 (Ivy/Sandy bridge)
CPUs. The base ATLAS builds for the x86_64 architecture are made for the hammer64 CPUs.

#---------------------------------------------------------------------

%package corei2-devel
Summary:        Development libraries for ATLAS for Corei2 (Ivy/Sandy bridge) CPUs
Requires:       %{name}-corei2 = %{version}-%{release}
Obsoletes:	%name-header <= %version-%release
Requires(posttrans):	/usr/sbin/alternatives
Requires(postun):	/usr/sbin/alternatives

%description corei2-devel
This package contains shared and static versions of the ATLAS
(Automatically Tuned Linear Algebra Software) libraries compiled with
optimizations for the corei2 (Ivy/Sandy bridge) CPUs.
%endif

#---------------------------------------------------------------------

%ifarch %{ix86}
%define types base

%endif

%ifarch s390 s390x
%define types base z14 z15

%package z14
Summary:        ATLAS libraries for z14
Group:          System Environment/Libraries

%description z14
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
shared libraries compiled with optimizations for the z14 CPUs.

#---------------------------------------------------------------------

%package z14-devel
Summary:        Development libraries for ATLAS for z14
Group:          Development/Libraries
Requires:       %{name}-z14 = %{version}-%{release}
Obsoletes:	%name-header <= %version-%release
Requires(posttrans):	chkconfig
Requires(postun):	chkconfig

%description z14-devel
This package contains shared and static versions of the ATLAS
(Automatically Tuned Linear Algebra Software) libraries compiled with
optimizations for the z14 CPUs.

#---------------------------------------------------------------------

%package z14-static
Summary:        Static libraries for ATLAS for z14
Group:          Development/Libraries
Requires:       %{name}-z14-devel = %{version}-%{release}
Requires(posttrans):	chkconfig
Requires(postun):	chkconfig

%description z14-static
This package contains the ATLAS (Automatically Tuned Linear Algebra
Software) static libraries compiled with optimizations for the z14
CPUs.

#---------------------------------------------------------------------

%package z15
Summary:        ATLAS libraries for z15
Group:          System Environment/Libraries

%description z15
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
shared libraries compiled with optimizations for the z15 CPUs.

#---------------------------------------------------------------------

%package z15-devel
Summary:        Development libraries for ATLAS for z15
Group:          Development/Libraries
Requires:       %{name}-z15 = %{version}-%{release}
Obsoletes:	%name-header <= %version-%release
Requires(posttrans):	chkconfig
Requires(postun):	chkconfig

%description z15-devel
This package contains shared and static versions of the ATLAS
(Automatically Tuned Linear Algebra Software) libraries compiled with
optimizations for the z15 CPUs.

#---------------------------------------------------------------------

%package z15-static
Summary:        Static libraries for ATLAS for z15
Group:          Development/Libraries
Requires:       %{name}-z15-devel = %{version}-%{release}
Requires(posttrans):	chkconfig
Requires(postun):	chkconfig

%description z15-static
This package contains the ATLAS (Automatically Tuned Linear Algebra
Software) static libraries compiled with optimizations for the z15
CPUs.
%endif

#---------------------------------------------------------------------

%ifarch ppc64
%define types base power7 power8

%package power8
Summary:        ATLAS libraries for Power 8

%description power8
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
shared libraries compiled with optimizations for the Power 8 CPUs. 
The base ATLAS builds for the ppc64 architecture are made for Power 5 CPUs.

#---------------------------------------------------------------------

%package power8-devel
Summary:        Development libraries for ATLAS for Power 8
Requires:       %{name}-power8 = %{version}-%{release}
Obsoletes:	%name-header <= %version-%release
Requires(posttrans):	/usr/sbin/alternatives
Requires(postun):	/usr/sbin/alternatives

%description power8-devel
This package contains shared and static versions of the ATLAS
(Automatically Tuned Linear Algebra Software) libraries compiled with
optimizations for the Power 8 CPUs.

#---------------------------------------------------------------------

%package power8-static
Summary:        Static libraries for ATLAS for Power 8
Requires:       %{name}-power8-devel = %{version}-%{release}
Requires(posttrans):	/usr/sbin/alternatives
Requires(postun):	/usr/sbin/alternatives

%description power8-static
This package contains the ATLAS (Automatically Tuned Linear Algebra
Software) static libraries compiled with optimizations for the Power 8
CPUs. The base ATLAS builds for the ppc64 architecture are made for the Power 5 CPUs.

#---------------------------------------------------------------------

%package power7
Summary:        ATLAS libraries for Power 7

%description power7
This package contains ATLAS (Automatically Tuned Linear Algebra Software)
shared libraries compiled with optimizations for the Power 7 CPUs. 
The base ATLAS builds for the ppc64 architecture are made for Power 5 CPUs.

#---------------------------------------------------------------------

%package power7-devel
Summary:        Development libraries for ATLAS for Power 7
Requires:       %{name}-power7 = %{version}-%{release}
Obsoletes:	%name-header <= %version-%release
Requires(posttrans):	/usr/sbin/alternatives
Requires(postun):	/usr/sbin/alternatives

%description power7-devel
This package contains shared and static versions of the ATLAS
(Automatically Tuned Linear Algebra Software) libraries compiled with
optimizations for the Power 7 CPUs.

#---------------------------------------------------------------------

%package power7-static
Summary:        Static libraries for ATLAS for Power 7
Requires:       %{name}-power7-devel = %{version}-%{release}
Requires(posttrans):	/usr/sbin/alternatives
Requires(postun):	/usr/sbin/alternatives

%description power7-static
This package contains the ATLAS (Automatically Tuned Linear Algebra
Software) static libraries compiled with optimizations for the Power 7
CPUs. The base ATLAS builds for the ppc64 architecture are made for the Power 5 CPUs.

%endif
#end of enable_native_atlas if
%endif

#---------------------------------------------------------------------

%prep
#cat /proc/cpuinfo
%setup -q -n ATLAS


%patch1 -p1
%patch2 -p1
%patch3 -p2
%patch4 -p1
%patch5 -p1
%patch6 -p1

%patch7 -p1
%patch8 -p1
%patch10 -p1

%ifarch s390x s390
%patch9 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%endif

%patch15 -p1
%patch101 -p1

cp %{SOURCE1} CONFIG/ARCHS/
cp %{SOURCE2} doc
cp %{SOURCE3} CONFIG/ARCHS/
cp %{SOURCE4} CONFIG/ARCHS/
cp %{SOURCE5} CONFIG/ARCHS/
cp %{SOURCE6} CONFIG/ARCHS/
cp %{SOURCE7} CONFIG/ARCHS/
cp %{SOURCE8} CONFIG/ARCHS/
cp %{SOURCE9} CONFIG/ARCHS/
cp %{SOURCE10} CONFIG/ARCHS/
cp %{SOURCE11} CONFIG/ARCHS/

%ifarch %{arm}
sed -i -e 's,-mfloat-abi=softfp,-mfloat-abi=hard,' CONFIG/src/atlcomp.txt
%endif

# Generate lapack library
mkdir lapacklib
cd lapacklib
ar x %{_libdir}/liblapack_pic.a
# Remove functions that have ATLAS implementations
rm -f cgelqf.f.o cgels.f.o cgeqlf.f.o cgeqrf.f.o cgerqf.f.o cgesv.f.o cgetrf.f.o cgetri.f.o cgetrs.f.o clarfb.f.o clarft.f.o clauum.f.o cposv.f.o cpotrf.f.o cpotri.f.o cpotrs.f.o ctrtri.f.o dgelqf.f.o dgels.f.o dgeqlf.f.o dgeqrf.f.o dgerqf.f.o dgesv.f.o dgetrf.f.o dgetri.f.o dgetrs.f.o dlamch.f.o dlarfb.f.o dlarft.f.o dlauum.f.o dposv.f.o dpotrf.f.o dpotri.f.o dpotrs.f.o dtrtri.f.o ieeeck.f.o ilaenv.f.o lsame.f.o sgelqf.f.o sgels.f.o sgeqlf.f.o sgeqrf.f.o sgerqf.f.o sgesv.f.o sgetrf.f.o sgetri.f.o sgetrs.f.o slamch.f.o slarfb.f.o slarft.f.o slauum.f.o sposv.f.o spotrf.f.o spotri.f.o spotrs.f.o strtri.f.o xerbla.f.o zgelqf.f.o zgels.f.o zgeqlf.f.o zgeqrf.f.o zgerqf.f.o zgesv.f.o zgetrf.f.o zgetri.f.o zgetrs.f.o zlarfb.f.o zlarft.f.o zlauum.f.o zposv.f.o zpotrf.f.o zpotri.f.o zpotrs.f.o ztrtri.f.o 
# Create new library
ar rcs ../liblapack_pic_pruned.a *.o
cd ..


%build
p=$(pwd)
%undefine _strict_symbol_defs_build
%ifarch %{arm}
%global mode %{nil}
%else
%global mode -b %{__isa_bits}
%endif

%define arg_options %{nil}
%define flags %{nil}
%define threads_option "-t 2"

#Target architectures for the 'base' versions
%ifarch s390x
%define flags %{nil}
%define base_options "-A IBMz12 -V 1"
#%%define base_options "-A IBMz13 -V 8 -Si archdef 2"
%endif

%ifarch x86_64
%define flags %{nil}
%define base_options "-A HAMMER -V 896"
%endif

%ifarch %ix86
%define flags %{nil}
%define base_options "-A PIII -V 512"
%endif

%ifarch ppc
%define flags %{nil}
%define base_options "-A POWER5 -V 1"
%endif

%ifarch ppc64
%define flags %{nil}
%define base_options "-A POWER5 -V 1"
%endif

%ifarch ppc64le
%define flags %{nil}
%define base_options "-A POWER8 -V 1"
%endif

%ifarch %{arm}
%define flags "-DATL_ARM_HARDFP=1"
%define base_options "-A ARMa7 -V 1"
%endif

%ifarch aarch64
%define flags %{nil}
%define base_options "-A ARM64a53 -V 1"
%endif

%if "%{?enable_native_atlas}" != "0"
%define	threads_option %{nil}
%define base_options %{nil}
%define flags %{nil}
%endif

for type in %{types}; do
	if [ "$type" = "base" ]; then
		libname=atlas
		arg_options=%{base_options}
		thread_options=%{threads_option}
		%define pr_base %(echo $((%{__isa_bits}+0)))
	else
		libname=atlas-${type}
		if [ "$type" = "corei2" ]; then
			thread_options="-t 4"
			arg_options="-A Corei2 -V 896"
			%define pr_corei2 %(echo $((%{__isa_bits}+2)))
		elif [ "$type" = "corei1" ]; then
			arg_options="-A Corei1 -V 896"
			%define pr_corei1 %(echo $((%{__isa_bits}+2)))
		elif [ "$type" = "z14" ]; then
			  thread_options="-t 4"
			  arg_options="-A IBMz14 -V 4 -Si archdef 2"
			  %define pr_z14 %(echo $((%{__isa_bits}+2)))
		elif [ "$type" = "z15" ]; then
			  thread_options="-t 4"
			  arg_options="-A IBMz15 -V 4 -Si archdef 2"
			  %define pr_z15 %(echo $((%{__isa_bits}+4)))
		elif [ "$type" = "power7" ]; then
			thread_options="-t 4"
			arg_options="-A POWER7 -V 1"
			%define pr_power7 %(echo $((%{__isa_bits}+2)))
		elif [ "$type" = "power8" ]; then
			thread_options="-t 4"
			arg_options="-A POWER8 -V 1"
			%define pr_power8 %(echo $((%{__isa_bits}+4)))
		fi
	fi
	mkdir -p %{_arch}_${type}
	pushd %{_arch}_${type}
	../configure  %{mode} $thread_options $arg_options -v 2 -D c -DWALL -F xc ' '  -Fa alg '%{flags} -D_FORTIFY_SOURCE=2 -g -Wa,--noexecstack,--generate-missing-build-notes=yes -fstack-protector-strong -fstack-clash-protection -fPIC -Wl,-z,now'\
	--prefix=%{buildroot}%{_prefix}			\
	--incdir=%{buildroot}%{_includedir}		\
	--libdir=%{buildroot}%{_libdir}/${libname}
	#--with-netlib-lapack-tarfile=%{SOURCE10}

	#matches both SLAPACK and SSLAPACK
	sed -i "s#SLAPACKlib.*#SLAPACKlib = ${p}/liblapack_pic_pruned.a#" Make.inc
	cat Make.inc
%if "%{?enable_native_atlas}" == "0"

%ifarch ppc64
	#Use big endian
	sed -i 's#ARCH = POWER564LE#ARCH = POWER564#' Make.inc
	sed -i 's#ARCH = POWER764LE#ARCH = POWER764#' Make.inc
	sed -i 's#ARCH = POWER864LE#ARCH = POWER864#' Make.inc
%endif

%endif

	make build
	cd lib
	make shared
	make ptshared
	popd
done

%install
for type in %{types}; do
	pushd %{_arch}_${type}
	make DESTDIR=%{buildroot} install
        mv %{buildroot}%{_includedir}/atlas %{buildroot}%{_includedir}/atlas-%{_arch}-${type}
        mv %{buildroot}%{_includedir}/clapack.h %{buildroot}%{_includedir}/atlas-%{_arch}-${type}/clapack.h
        mv %{buildroot}%{_includedir}/cblas.h %{buildroot}%{_includedir}/atlas-%{_arch}-${type}/cblas.h
	if [ "$type" = "base" ]; then
		cp -pr lib/*.so* %{buildroot}%{_libdir}/atlas/
		rm -f %{buildroot}%{_libdir}/atlas/*.a
		cp -pr lib/libcblas.a lib/libatlas.a lib/libf77blas.a lib/liblapack.a %{buildroot}%{_libdir}/atlas/
	else
		cp -pr lib/*.so* %{buildroot}%{_libdir}/atlas-${type}/
		rm -f %{buildroot}%{_libdir}/atlas-${type}/*.a
		cp -pr lib/libcblas.a lib/libatlas.a lib/libf77blas.a lib/liblapack.a %{buildroot}%{_libdir}/atlas-${type}/
	fi
	popd

	mkdir -p %{buildroot}/etc/ld.so.conf.d
	if [ "$type" = "base" ]; then
		echo "%{_libdir}/atlas"		\
		> %{buildroot}/etc/ld.so.conf.d/atlas-%{_arch}.conf
	else
		echo "%{_libdir}/atlas-${type}"	\
		> %{buildroot}/etc/ld.so.conf.d/atlas-%{_arch}-${type}.conf
	fi
done

#create pkgconfig file
mkdir -p $RPM_BUILD_ROOT%{_libdir}/pkgconfig/
cat > $RPM_BUILD_ROOT%{_libdir}/pkgconfig/atlas.pc << DATA
Name: %{name}
Version: %{version}
Description: %{summary}
Cflags: -I%{_includedir}/atlas/
Libs: -L%{_libdir}/atlas/ -lsatlas
DATA


mkdir -p %{buildroot}%{_includedir}/atlas


%check
for type in %{types}; do
	if [ "$type" = "z14" ] || [ "$type" = "z15" ]; then
	    # skip the tests (may fail due to illegal instructions).
		  echo "Skipping tests for the $type subpackage"
	else
	    pushd %{_arch}_${type}
	    make check ptcheck
	    popd
  fi
done
#%endif

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%posttrans devel
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
		%{_includedir}/atlas-%{_arch}-base %{pr_base}

%postun devel
if [ $1 -ge 0 ] ; then
/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-base
fi

%if "%{?enable_native_atlas}" == "0"
%ifarch x86_64

%post -n atlas-corei2 -p /sbin/ldconfig

%postun -n atlas-corei2 -p /sbin/ldconfig

%posttrans corei2-devel
	/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
		%{_includedir}/atlas-%{_arch}-corei2  %{pr_corei2}

%postun corei2-devel
if [ $1 -ge 0 ] ; then
	/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-corei2
fi

%endif

%ifarch %{ix86}
# No arch specific packages
%endif

%ifarch s390 s390x

%post -n atlas-z14 -p /sbin/ldconfig

%postun -n atlas-z14 -p /sbin/ldconfig

%posttrans z14-devel
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
						    %{_includedir}/atlas-%{_arch}-z14  %{pr_z14}

%postun z14-devel
if [ $1 -ge 0 ] ; then
		/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-z14
fi

%post -n atlas-z15 -p /sbin/ldconfig

%postun -n atlas-z15 -p /sbin/ldconfig

%posttrans z15-devel
/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
					  %{_includedir}/atlas-%{_arch}-z15  %{pr_z15}

%postun z15-devel
if [ $1 -ge 0 ] ; then
		/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-z15
fi

%endif

%ifarch ppc64

%post -n atlas-power7 -p /sbin/ldconfig

%postun -n atlas-power7 -p /sbin/ldconfig

%posttrans power7-devel
	/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
		%{_includedir}/atlas-%{_arch}-power7  %{pr_power7}

%postun power7-devel
if [ $1 -ge 0 ] ; then
	/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-power7
fi

%post -n atlas-ppc8 -p /sbin/ldconfig

%postun -n atlas-ppc8 -p /sbin/ldconfig

%posttrans ppc8-devel
	/usr/sbin/alternatives	--install %{_includedir}/atlas atlas-inc 	\
		%{_includedir}/atlas-%{_arch}-ppc8  %{pr_ppc8}

%postun ppc8-devel
if [ $1 -ge 0 ] ; then
	/usr/sbin/alternatives --remove atlas-inc %{_includedir}/atlas-%{_arch}-ppc8
fi

%endif
#enable_native_atlas
%endif
%files
%doc doc/README.dist
%dir %{_libdir}/atlas
%{_libdir}/atlas/*.so.*
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}.conf

%files devel
%doc doc
%{_libdir}/atlas/*.so
%{_includedir}/atlas-%{_arch}-base/
%ghost %{_includedir}/atlas
%{_libdir}/pkgconfig/atlas.pc

%files static
%{_libdir}/atlas/*.a

%if "%{?enable_native_atlas}" == "0"

%ifarch x86_64

%files corei2
%doc doc/README.dist
%dir %{_libdir}/atlas-corei2
%{_libdir}/atlas-corei2/*.so.*
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-corei2.conf

%files corei2-devel
%doc doc
%{_libdir}/atlas-corei2/*.so
%{_includedir}/atlas-%{_arch}-corei2/
%ghost %{_includedir}/atlas

%files corei2-static
%{_libdir}/atlas-corei2/*.a
%endif

%ifarch ppc64


%files power8
%doc doc/README.dist
%dir %{_libdir}/atlas-power8
%{_libdir}/atlas-power8/*.so.*
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-power8.conf

%files power8-devel
%doc doc
%{_libdir}/atlas-power8/*.so
%{_includedir}/atlas-%{_arch}-power8/
%ghost %{_includedir}/atlas

%files power8-static
%{_libdir}/atlas-power8/*.a

%files power7
%doc doc/README.dist
%dir %{_libdir}/atlas-power7
%{_libdir}/atlas-power7/*.so.*
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-power7.conf

%files power7-devel
%doc doc
%{_libdir}/atlas-power7/*.so
%{_includedir}/atlas-%{_arch}-power7/
%ghost %{_includedir}/atlas

%files power7-static
%{_libdir}/atlas-power7/*.a
%endif

%ifarch s390 s390x

%files z14
%doc doc/README.dist
%dir %{_libdir}/atlas-z14
%{_libdir}/atlas-z14/*.so.*
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-z14.conf

%files z14-devel
%doc doc
%{_libdir}/atlas-z14/*.so
%{_includedir}/atlas-%{_arch}-z14/
%ghost %{_includedir}/atlas

%files z14-static
%{_libdir}/atlas-z14/*.a


%files z15
%doc doc/README.dist
%dir %{_libdir}/atlas-z15
%{_libdir}/atlas-z15/*.so.*
%config(noreplace) /etc/ld.so.conf.d/atlas-%{_arch}-z15.conf

%files z15-devel
%doc doc
%{_libdir}/atlas-z15/*.so
%{_includedir}/atlas-%{_arch}-z15/
%ghost %{_includedir}/atlas

%files z15-static
%{_libdir}/atlas-z15/*.a

%endif


#enable_native_atlas if
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 324 |21cr|atomicparsley-20221229-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname AtomicParsley
%define	oversion .172126.d813aa6

Summary:	Command-Line Program to Read and Set iTunes-style Metadata Tags
Name:		atomicparsley
Version:	20221229
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://github.com/wez/atomicparsley
Source0:	https://github.com/wez/atomicparsley/archive/%{version}%{oversion}/%{name}-%{version}%{oversion}.tar.gz
BuildRequires:	cmake >= 3.16
BuildRequires:	git
BuildRequires:	unzip
BuildRequires:	pkgconfig(zlib)

%description
AtomicParsley is a lightweight command line program that can read and set
iTunes-style metadata tags in MPEG-4 files & 3gp assets in 3GPP/3GPP2 files. 

%files
%doc COPYING Changes.txt tools/iTunMOVI-1.1.pl
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}%{oversion}


%build
%cmake -DCMAKE_BUILD_TYPE=Release
%make


%install
%makeinstall_std -C build

# Wrong name...
mv %{buildroot}%{_bindir}/%{oname} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 325 |21cr|atomix-3.34.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10+
%global optflags %{optflags} -fcommon

Summary:	Mind game - build molecules out of single atoms
Name:		atomix
Version:	3.34.0
Release:	2
License:	GPLv2+
Group:		Games/Puzzles
Url:		https://wiki.gnome.org/Apps/Atomix
Source:		https://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	gnome-common
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	meson >= 0.41.0
BuildRequires:	ninja
BuildRequires:	perl >= 5.8.1
BuildRequires:	perl(XML::Parser)
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glib-2.0) >= 2.36.0
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.10.0
BuildRequires:	pkgconfig(libgnome-games-support-1)
Requires(pre):	rpm-helper

%description
Atomix is a little mind game where you have to build molecules out of single
atoms. These are lying around between the walls and obstacles on the play
field. Once you have pushed an atom in one direction, it moves until it hits
an obstacle or another atom. It requires some thinking for how to construct
complex molecules with this behavior. The game is inspired by the original
Amiga version.

%files -f %{name}.lang
%doc COPYING NEWS README
%attr(2511, root, games) %{_gamesbindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%ghost %{_localstatedir}/lib/games/%{name}.scores


%pre
%create_ghostfile %{_localstatedir}/lib/games/%{name}.scores root games 0664

%postun
rm -fr %{_localstatedir}/lib/games/%{name}.scores

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%meson --bindir=%{_gamesbindir} --localstatedir=%{_localstatedir}/lib
%meson_build


%install
%meson_install

# Prepare the place for game scores
mkdir -p %{buildroot}%{_localstatedir}/lib/games
touch %{buildroot}%{_localstatedir}/lib/games/%{name}.scores

# Drop unwanted icon
rm -fr %{buildroot}%{_iconsdir}/hicolor/symbolic/apps/atomix-symbolic.svg

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 326 |21cr|atool-0.39.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        A script for managing file archives of various types
Name:           atool
Group:		Archiving/Compression
Version:        0.39.0
Release:        4
Source:         http://savannah.nongnu.org/download/atool/%{name}-%{version}.tar.gz
Patch: atool-0.37.0-bash-completion.patch
URL:            http://www.nongnu.org/atool/
License:        GPLv2+
BuildArch:	noarch
Requires:	perl

%description
atool is a script for managing file archives of various types (tar,
tar+gzip, zip, etc). The main command is probably 'aunpack' which
extracts files from an archive. It overcomes the dreaded "multiple
files in archive root" problem by first extracting to a unique
subdirectory, and then moving back the files if possible. aunpack
also prevents local files from being overwritten by mistake. Other
commands provided are apack (for creating archives), als (for listing
files in archives), and acat (for extracting files to stdout). 

%prep
%setup -q
%patch -p1 -b .bash-completion

%build
%configure
%make

%install
%makeinstall
install -m 644 -D extra/bash-completion-atool_0.1-1 %{buildroot}%{_sysconfdir}/bash_completion.d/atool

%clean

%files
%doc README ChangeLog NEWS TODO
%config(noreplace) %{_sysconfdir}/bash_completion.d/atool
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 327 |21cr|atop-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	AT Computing System and Process Monitor
Name:		atop
Version:	2.6.0
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		http://www.atoptool.nl
Source0:	http://www.atoptool.nl/download/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Source4:        atop.sysconfig
Source5:        atop.d
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)
Requires(post,preun):	systemd

%description
This program is an interactive monitor to view the load on a Linux-system. It
shows the occupation of the most critical hardware-resources (from a
performance point of view) on system-level, i.e. cpu, memory, disk and
network. It also shows which processes are responsible for the indicated load
(again cpu-, memory-, disk- and network-load on process-level).
The program can also be used to log system- and process-level information in
raw format for long-term analysis.
The included program atopsar can be used to view system-level statistics as
reports, similar to the program sar.

%files
%config(noreplace) %{_sysconfdir}/sysconfig/atop
%{_bindir}/atopsar
%{_bindir}/atop
%{_bindir}/atopd
%{_bindir}/atopconvert
%{_mandir}/man1/atop.1.*
%{_mandir}/man1/atopsar.1.*
%attr(0755,root,root) %dir %{_localstatedir}/log/atop
%{_unitdir}/atop*.service
%{_unitdir}/atop*.timer
%{_datadir}/atop/atop.daily
%{_sbindir}/atopacctd
%{_sbindir}/atopgpud

%post
%systemd_post %{name}.service atopacct.service atopgpu.service %{name}-rotate.service

%preun
%systemd_preun %{name}.service atopacct.service atopgpu.service %{name}-rotate.service

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i "s|/etc/default/atop|/etc/sysconfig/atop|g" atop.service atop.daily


%build
%set_build_flags
%make_build


%install
install -Dp -m 0755 atop %{buildroot}%{_bindir}/atop
install -Dp -m 0755 atopconvert %{buildroot}%{_bindir}/atopconvert
ln -s atop %{buildroot}%{_bindir}/atopsar
install -Dp -m 0644 man/atop.1 %{buildroot}%{_mandir}/man1/atop.1
install -Dp -m 0644 man/atopsar.1 %{buildroot}%{_mandir}/man1/atopsar.1
install -Dp -m 0755 atop.daily %{buildroot}%{_datadir}/atop/atop.daily
install -Dp -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/atop
install -Dp -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/atopd
install -Dp -m 0644 atop.service %{buildroot}%{_unitdir}/atop.service
install -d %{buildroot}%{_localstatedir}/log/atop
install -Dp -m 0755 atopacctd %{buildroot}%{_sbindir}/atopacctd
install -Dp -m 0644 atopacct.service %{buildroot}%{_unitdir}/atopacct.service
install -Dp -m 0755 atopgpud %{buildroot}%{_sbindir}/atopgpud
install -Dp -m 0644 atopgpu.service %{buildroot}%{_unitdir}/atopgpu.service
install -Dp -m 0644 atop-rotate.* %{buildroot}%{_unitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 328 |21cr|atop-2.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	AT Computing System and Process Monitor
Name:		atop
Version:	2.7.1
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		http://www.atoptool.nl
Source0:	http://www.atoptool.nl/download/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Source4:        atop.sysconfig
Source5:        atop.d
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)
Requires(post,preun):	systemd

%description
This program is an interactive monitor to view the load on a Linux-system. It
shows the occupation of the most critical hardware-resources (from a
performance point of view) on system-level, i.e. cpu, memory, disk and
network. It also shows which processes are responsible for the indicated load
(again cpu-, memory-, disk- and network-load on process-level).
The program can also be used to log system- and process-level information in
raw format for long-term analysis.
The included program atopsar can be used to view system-level statistics as
reports, similar to the program sar.

%files
%config(noreplace) %{_sysconfdir}/sysconfig/atop
%{_bindir}/atopsar
%{_bindir}/atop
%{_bindir}/atopd
%{_bindir}/atopconvert
%{_mandir}/man1/atop.1.*
%{_mandir}/man1/atopsar.1.*
%attr(0755,root,root) %dir %{_localstatedir}/log/atop
%{_unitdir}/atop*.service
%{_unitdir}/atop*.timer
%{_datadir}/atop/atop.daily
%{_sbindir}/atopacctd
%{_sbindir}/atopgpud

%post
%systemd_post %{name}.service atopacct.service atopgpu.service %{name}-rotate.service

%preun
%systemd_preun %{name}.service atopacct.service atopgpu.service %{name}-rotate.service

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i "s|/etc/default/atop|/etc/sysconfig/atop|g" atop.service atop.daily


%build
%set_build_flags
%make_build


%install
install -Dp -m 0755 atop %{buildroot}%{_bindir}/atop
install -Dp -m 0755 atopconvert %{buildroot}%{_bindir}/atopconvert
ln -s atop %{buildroot}%{_bindir}/atopsar
install -Dp -m 0644 man/atop.1 %{buildroot}%{_mandir}/man1/atop.1
install -Dp -m 0644 man/atopsar.1 %{buildroot}%{_mandir}/man1/atopsar.1
install -Dp -m 0755 atop.daily %{buildroot}%{_datadir}/atop/atop.daily
install -Dp -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/atop
install -Dp -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/atopd
install -Dp -m 0644 atop.service %{buildroot}%{_unitdir}/atop.service
install -d %{buildroot}%{_localstatedir}/log/atop
install -Dp -m 0755 atopacctd %{buildroot}%{_sbindir}/atopacctd
install -Dp -m 0644 atopacct.service %{buildroot}%{_unitdir}/atopacct.service
install -Dp -m 0755 atopgpud %{buildroot}%{_sbindir}/atopgpud
install -Dp -m 0644 atopgpu.service %{buildroot}%{_unitdir}/atopgpu.service
install -Dp -m 0644 atop-rotate.* %{buildroot}%{_unitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 329 |21cr|atril-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname mate-document-viewer

%define major 3
%define api 1.5.0
%define girname %mklibname %{name}-gir %{api}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	MATE Document viewer
Name:		atril
Version:	1.26.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org/
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		0003-CVE-2017-1000083-evince-comics-remove-tar-commands-support-3-10-3.patch
BuildRequires:	autoconf-archive
BuildRequires:	docbook-dtd412-xml
BuildRequires:	ghostscript
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	which
BuildRequires:	xml2po
BuildRequires:	xsltproc
BuildRequires:	yelp-tools
#gw just like xdvi, needed for rendering the fonts
BuildRequires:	kpathsea-devel
BuildRequires:	pkgconfig(synctex)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcaja-extension)
BuildRequires:	pkgconfig(libgxps)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Requires:	ghostscript
Requires:	ghostscript-module-X
Requires:	%{_lib}egl1
Conflicts:	%{_lib}atril3 < 1.16.1

%rename %{oname}

%description
Atril is the MATE Document viewer.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README*
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/atril.desktop
%{_metainfodir}/atril.appdata.xml
%{_datadir}/icons/hicolor/*/apps/atril.*
%{_libexecdir}/atrild
%{_datadir}/dbus-1/services/org.mate.atril.Daemon.service
%{_datadir}/glib-2.0/schemas/org.mate.Atril.gschema.xml
%{_datadir}/thumbnailers/atril.thumbnailer
%{_datadir}/caja/extensions/libatril-properties-page.caja-extension
%{_libdir}/caja/extensions-2.0/libatril*so*
%dir %{_libdir}/%{name}/%{major}/
%dir %{_libdir}/%{name}/%{major}/backends
%{_libdir}/%{name}/%{major}/backends/lib*so*
%{_libdir}/%{name}/%{major}/backends/comicsdocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/djvudocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/dvidocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/epubdocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/pdfdocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/pixbufdocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/psdocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/tiffdocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/xpsdocument.%{name}-backend
%{_mandir}/man1/atril-*.1.*
%{_mandir}/man1/atril.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MATE Document viewer shared library
Group:		System/Libraries

%description -n %{libname}
This is the MATE Document viewer library, the shared parts of %{name}.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README*
%{_libdir}/libatrildocument.so.%{major}*
%{_libdir}/libatrilview.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc AUTHORS COPYING NEWS README*
%{_libdir}/girepository-1.0/AtrilDocument-%{api}.typelib
%{_libdir}/girepository-1.0/AtrilView-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MATE Document viewer development files
Group:		Development/GNOME and GTK+
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
MATE Document viewer development files.

%files -n %{devname}
%doc AUTHORS COPYING NEWS README*
%doc ChangeLog
%{_datadir}/gtk-doc/html/atril
%{_datadir}/gtk-doc/html/libatrildocument-%{api}
%{_datadir}/gtk-doc/html/libatrilview-%{api}
%{_libdir}/libatrildocument.so
%{_libdir}/libatrilview.so
%{_libdir}/pkgconfig/atril*pc
%{_includedir}/atril*
%{_datadir}/gir-1.0/AtrilDocument-%{api}.gir
%{_datadir}/gir-1.0/AtrilView-%{api}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--with-pic \
	--disable-static \
	--enable-introspection \
	--enable-gtk-doc \
	--enable-comics \
	--enable-djvu \
	--enable-dvi \
	--enable-epub \
	--enable-pdf \
	--enable-pixbuf \
	--enable-tiff \
	--enable-xps

# currently parallel builds are broken
# make
make LIBS='-lm -lz -lgmodule-2.0'

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 330 |21cr|attica-kde4-0.4.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.4
%define libname %mklibname attica-kde4 %{major}
%define devname %mklibname attica-kde4 -d

Summary:	Open Collaboration Service providers library
Name:		attica-kde4
Version:	0.4.2
Release:	11
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/
Source0:	http://mirrors.isc.org/pub/kde/stable/attica/attica-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	qt4-devel

%description
A library to access Open Collaboration Service providers. It's required
to access OSC providers in get hot new stuff.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Open Collaboration Service providers library
Group:		System/Libraries
Obsoletes:	attica < 0.4.2-10

%description -n %{libname}
A library to access Open Collaboration Service providers. It's required
to access OSC providers in get hot new stuff.

%files -n %{libname}
%{_libdir}/libattica.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.4.2-5
Obsoletes:	attica-devel < 0.4.2-10

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_includedir}/attica
%{_libdir}/libattica.so
%{_libdir}/pkgconfig/libattica.pc

#----------------------------------------------------------------------------

%prep
%setup -qn attica-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 331 |21cr|aubio-0.4.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 5
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

# Enabling this one requires a ffmpeg built with avresample support
%bcond_without	avcodec

Summary:	A library for audio labelling
Name:		aubio
Version:	0.4.9
Release:	5
License:	GPLv3+
Group:		Sound
Url:		https://aubio.org/
Source0:	https://aubio.org/pub/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:	aubio-0.4.9-prevent-decoding-errors.patch
Patch1:	aubio-0.4.9-fix-ref-counting-of-exception-types.patch
Patch2:	aubio-0.4.9-support-for-newer-avcodec.patch
Patch3:	aubio-0.4.9-fix-shebangs.patch
BuildRequires:	doxygen
BuildRequires:	python3-pytest
BuildRequires:	python3-setuptools
BuildRequires:	python3-sphinx
BuildRequires:	swig
BuildRequires:	txt2man
BuildRequires:	waf
BuildRequires:	pd-devel
BuildRequires:	python3-numpy-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fftw3) >= 3.0.0
BuildRequires:	pkgconfig(jack)
%if %{with avcodec}
BuildRequires:	pkgconfig(libavcodec) >= 54.35.0
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavresample)
BuildRequires:	pkgconfig(libavutil)
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile) >= 1.0.4
Requires:	%{libname} = %{EVRD}

%description
A library for audio labelling. Its features include segmenting a sound file
before each of its attacks, performing pitch detection, tapping the beat and
producing midi streams from live audio. The library name comes from 'audio'
with a typo: several transcription errors are likely to be found in the
results too.

%files
%doc AUTHORS COPYING README.md
%{_bindir}/%{name}*
%{_mandir}/man1/%{name}*.1.*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
# Needed because older library required main package with EVRD and it was wrong
%rename	%{_lib}aubio2

%description -n %{libname}
Main library for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc ChangeLog COPYING VERSION
%doc build/api/*
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 bindings for %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	python3-numpy

%description -n python3-%{name}
Python 3 bindings for %{name}. This package integrates the aubio library
with NumPy to provide a set of efficient tools to process and analyse audio
signals, including:
- read audio from any media file, including videos and remote streams;
- high quality phase vocoder, spectral filterbanks, and linear filters;
- Mel-Frequency Cepstrum Coefficients and standard spectral descriptors;
- detection of note attacks (onset);
- pitch tracking (fundamental frequency estimation);
- beat detection and tempo tracking.

%files -n python3-%{name}
%doc COPYING python/README.md
%{python3_sitearch}/%{name}/*.py*
%{python3_sitearch}/%{name}/*.so
%{python3_sitearch}/%{name}-%{version}-py%{py3_ver}.egg-info/*
%{python3_sitearch}/%{name}/__pycache__/

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
export CPPFLAGS="%{optflags}" LDLFLAGS="%{ldflags}"
waf configure \
	--prefix="%{_prefix}" \
	--libdir="%{_libdir}" \
	--enable-fftw3f \
	--enable-fftw3 \
	--enable-jack \
	--enable-sndfile \
	--enable-samplerate \
	--enable-docs \
%if %{with avcodec}
	--enable-avcodec
%else
	--disable-avcodec
%endif

waf build

# We want also the python stuff for python3
%py3_build


%install
waf install --destdir=%{buildroot}
%py3_install

# We pick the html docs with our macro
rm -rf %{buildroot}%{_docdir}/libaubio-doc

# Remove unwanted .a library
rm -f %{buildroot}%{_libdir}/libaubio.a

# Fix perms
chmod +x %{buildroot}%{py3_platsitedir}/%{name}/{__init__,cmd,cut}.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 332 |21cr|audacious-skins-1.0.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Additional skins for Audacious
Name:		audacious-skins
Version:	1.0.0
Release:	12
License:	GPLv2+
Group:		Sound
Url:		http://www.xmms.org/
Source0:	audacious-skins.tar.bz2
Requires:	audacious
Requires:	unzip
BuildArch:	noarch

%description
Skins for Audacious. When you install this package the skins will
instantly become available from inside Audacious. Browse them in
the appearance category in the Audacious preferences.

%files
%doc README
%{_datadir}/audacious/Skins/*

#----------------------------------------------------------------------------

%prep

%install
mkdir -p %{buildroot}%{_datadir}/audacious

bzip2 -cd %{SOURCE0} | tar xf - -C %{buildroot}%{_datadir}/audacious

cat > README << EOF
This package is a collection of skins for audacious.
Most of them come from http://www.xmms.org
If you would like even more of them you can visit sites like:
  http://www.skinz.org
  http://www.customize.org
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 333 |21cr|audex-0.79-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Audio grabber tool for CD-ROM drives based on KDE 4
Name:		audex
Version:	0.79
Release:	4
License:	GPLv3+
Group:		Sound
URL:		https://sourceforge.net/projects/%{name}/
Source0:	https://sourceforge.net/projects/audex/files/src/%{name}-%{version}.tar.xz
BuildRequires:	automoc4
BuildRequires:	cmake >= 2.8.0
BuildRequires:	cdda-devel
BuildRequires:	kdelibs4-devel 
BuildRequires:	libkcddb-devel >= 4.9
BuildRequires:	libkcompactdisc-devel >= 4.9
BuildRequires:	pkgconfig(phonon)
Requires:	kdebase4-runtime
Requires(post,postun):	desktop-file-utils


%description
Audex is a new audio grabber tool for CD-ROM drives based on KDE 4. It creates
profiles for LAME, OGG Vorbis (oggenc), FLAC, FAAC (MP4/M4A/AAC) and RIFF
WAVE: please install your favorite encoder. Of course for WAVE no external
encoder is needed! Beyond you can define custom profile, which means that
%{name} works together with command line encoders in general.
Some features are:
* Extracting with CDDA Paranoia. So you have quite perfect audio quality.
* Extracting and encoding run parallel.
* Filename editing with local and remote CDDB/FreeDB database.
* Metadata correction tools like capitalize etc.
* Multi-profile extraction (with one command-line encoder per profile).
* Fetch covers from the Internet and store them in the database.
* Create play-lists, cover and template-based-info files in target directory.
* Creates extraction and encoding protocols.
* Transfer files with KDE KIO-Slaves.


%files -f %{name}.lang
%doc LICENCE README.md
%{_kde_bindir}/%{name}
%{_kde_datadir}/applications/kde4/%{name}*.desktop
%{_kde_datadir}/apps/solid/actions/%{name}*.desktop
%{_kde_datadir}/apps/%{name}
%{_kde_iconsdir}/hicolor/*/*/*.png

#--------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -Wstrict-aliasing=0"
export CFLAGS="%{optflags} -Wstrict-aliasing=0"

%cmake_kde4
%make


%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 334 |21cr|audiere-1.9.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %{version}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	High-level audio API
Name:		audiere
Version:	1.9.4
Release:	16
License:	LGPLv2+
Group:		Sound
Url:		http://audiere.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/audiere/%{name}-%{version}-src.tar.bz2
Patch0:		audiere-1.9.4-speex.patch
Patch1:		audiere-1.9.4-gcc43.patch
Patch2:		audiere-1.9.4-flac.patch
Patch3:		audiere-1.9.4-add-missing-header.patch
Patch4:		audiere-1.9.4-no-wx.patch
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(libcdaudio)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(vorbis)

%description
Audiere is a high-level audio API. It can play Ogg Vorbis, MP3,
FLAC, uncompressed WAV, AIFF, MOD, S3M, XM, and IT files. For
audio output, Audiere supports DirectSound or WinMM in Windows,
OSS on Linux and Cygwin, and SGI AL on IRIX.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	High-level audio API
Group:		System/Libraries
Conflicts:	%{_lib}audiere1 < 1.9.4-14
Obsoletes:	%{_lib}audiere1 < 1.9.4-14

%description -n %{libname}
Audiere is a high-level audio API. It can play Ogg Vorbis, MP3,
FLAC, uncompressed WAV, AIFF, MOD, S3M, XM, and IT files. For
audio output, Audiere supports DirectSound or WinMM in Windows,
OSS on Linux and Cygwin, and SGI AL on IRIX.

%files -n %{libname}
%{_libdir}/libaudiere-%{version}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for audiere
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(flac)
Requires:	pkgconfig(libcdaudio)
Requires:	pkgconfig(ogg)
Requires:	pkgconfig(speex)
Requires:	pkgconfig(vorbis)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for audiere.

%files -n %{devname}
%doc doc/*.txt
%{_bindir}/audiere-config
%{_includedir}/audiere.h
%{_libdir}/libaudiere.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
sh ./bootstrap

%configure \
	--disable-static \
	--enable-opt
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 335 |21cr|audiocompress-2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname AudioCompress

Summary:	Simple dynamic range compressor
Name:		audiocompress
Version:	2.0
Release:	5
License:	LGPLv2+
Group:		Sound
Url:		http://beesbuzz.biz/code/audiocompress.php
Source0:	http://beesbuzz.biz/code/%{name}/%{oname}-%{version}.tar.gz

%description
AudioCompress is (essentially) a very gentle, 1-band dynamic range
compressor intended to keep audio output at a consistent volume without
introducing any audible artifacts.  It can either accept input on
standard input and output audio to standard output or bind to the esound
daemon and apply its effect to all esd output.

Install this if you want a nice way to keep your audio at a consistent
volume level.

%files
%doc ChangeLog COPYING README TODO
%{_bindir}/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%make CFLAGS="%{optflags} -fPIC"

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{oname} %{buildroot}%{_bindir}/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 336 |21cr|audiocut-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical .flac .ape .wav splitter
Name:		audiocut	
Version:	1.1
Release:	2
License:	GPLv3
Group:		Sound 
Url:		https://github.com/25RUS/audiocut
Source0:	https://github.com/25RUS/audiocut/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  qt5-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires: shntool
Requires: flac
Requires: wavpack
Requires: ffmpeg

%description
Audiocut is graphical interface for shntool

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=AudioCut
Comment=AudioCut is GUI for shntool
Exec=%{name}
Icon=%{name}
StartupNotify=false
Terminal=false
Categories=AudioVideo;Player;Qt;Audio;
EOF

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{name}.png %{buildroot}%{_datadir}/pixmaps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 337 |21cr|audiokonverter-6.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An audio converter
Name:		audiokonverter
Version:	6.0.0
Release:	2
License:	GPLv2+
Group:		Sound
Url:			https://store.kde.org/p/998467/
Source0:	https://dllb2.pling.com/api/files/download/j/eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpZCI6IjE1NzI1MzIzNzQiLCJ1IjpudWxsLCJsdCI6ImRvd25sb2FkIiwicyI6IjUxYWU0NmRlYWMwOTUwYmNkMmRmYmVkN2JhYmExNzc1ZjBkYzNiZjJhNzNlOWFjYzI0MTMxYjJjZjhlYzJkM2U4NTFlOTBmMTU1N2YzYjMwMTk3YWE4NDIwZjEwODNhNjA5MGNlNDc5M2I2OTEzY2ZiYTcxZGMzOTA5Nzk5ZDVhIiwidCI6MTYyNzYzNTc1Miwic3RmcCI6IjYxMzJlZGJmZmRhZTZiMGI2OTA5ZjFhZWVhMWFjYWYzIiwic3RpcCI6IjMxLjEzMi4yNTAuMCJ9.kNm4Y0THDZvPRSlLi0r7ca9Ufc9Ok7ryKgGKefnGW58/audiokonverter-6.0.0.tar.bz2
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-5.9.5-no-Encoding-in-desktop-files.patch
# Needed when we will have musepack-tools
Patch1:		plasma5-%{name}-6.0.0-rename-mppdec.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kde5-macros
#	TODO: import apetag, musepack-tools (mpcdec) and replaygain
# Main deps
Requires:	plasma5-dolphin
# Deps for various options
Requires:	faac
Requires:	faad2
Requires:	ffmpeg
Requires:	flac
Requires:	id3lib
Requires:	lame
Requires:	mac
Requires:	mplayer
Requires:	vorbis-tools
Requires:	wavpack
Recommends:	shorten
BuildArch:	noarch

%description
This is a small utility to easily convert audio from OGG, MP3, AAC, M4A, FLAC,
WMA, RealAudio, Musepack, Wavpack, WAV and movies to MP3, OGG, M4A, WAV and
FLAC in Dolphin for Plasma 5 (KDE5) by right-clicking on them.

%files
%doc README Changelog COPYING
%{_kde5_bindir}/*
%{_kde5_services}/ServiceMenus/*.desktop
%{_kde5_appsdir}/dolphin/servicemenus/*.desktop

#-----------------------------------------------------------------------------

%prep
%setup
%patch0 -p1


%build
# Only scripts: nothing to do.


%install
mkdir -p %{buildroot}%{_kde5_services}/ServiceMenus
install -m 644 *5.desktop %{buildroot}%{_kde5_services}/ServiceMenus
mkdir -p %{buildroot}%{_kde5_appsdir}/dolphin/servicemenus
install -m 644 *5.desktop %{buildroot}%{_kde5_appsdir}/dolphin/servicemenus
mkdir -p %{buildroot}%{_kde5_bindir}
install -m 755 anytowav5 audioconvert5 movie2sound5 oggdrop-lx %{buildroot}%{_kde5_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 338 |21cr|audio-recorder-3.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gstapi 1.0
Name:		audio-recorder
Version:	3.3.4
Release:	2
Summary:	An audio recorder application
Group:		Sound
URL:	https://launchpad.net/audio-recorder
Source0:	https://launchpad.net/~audio-recorder/+archive/ubuntu/ppa/+sourcefiles/audio-recorder/3.3.4~jammy/audio-recorder_3.3.4~jammy.tar.gz
Patch0:		audio-recorder-1.9.7-fix-desktop-file.patch
Patch2:		audio-recorder-3.3.4-no-autostart.patch
License:	GPL3
BuildRequires:	intltool
BuildRequires:	perl
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(appindicator3-0.1) >= 0.3
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(glib-2.0) >= 2.14.0
BuildRequires:	pkgconfig(gstreamer-%{gstapi}) >= 1.4.0
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libpulse)
Requires:	gstreamer%{gstapi}-plugins-bad
Requires:	gstreamer%{gstapi}-plugins-base
Requires:	gstreamer%{gstapi}-plugins-good
Recommends:	gstreamer%{gstapi}-plugins-ugly
# for mp3
Recommends:	gstreamer%{gstapi}-lame

%description
This program allows you to record your favourite music and audio to a file.
It can record audio from your system's soundcard, microphones, browsers,
webcams & more.
Put simply: if it plays out of your loudspeakers you can record it.

%files -f %{name}.lang
%doc README COPYING ChangeLog AUTHORS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/scalable/*/%{name}*.svg
%{_datadir}/pixmaps/%{name}/*
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_mandir}/man1/%{name}.1*


#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n trunk

%build
%configure
%make

%install
%make_install

# We have it already in doc
rm -f %{buildroot}%{_datadir}/%{name}/COPYING

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 339 |21cr|audiotag-0.19-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# spec is based on MIB work

Name:		audiotag
Version:	0.19
Release:	4
Summary:	Command-line tool for mass tagging/renaming of audio files
License:	GPLv2
Group:		Sound
URL:		http://github.com/Daenyth/audiotag
Source0:	%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires:	id3lib
Requires:	flac
Requires:	atomicparsley

%description
Audiotag is a command-line tool for mass tagging/renaming of audio files.

%prep
%setup -q

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_bindir}
%__install -m755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,)
%doc COPYING README ChangeLog
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 340 |21cr|audiotube-22.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	YouTube Music client for Plasma Mobile
Name:		audiotube
Version:	22.11
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	audiotube-22.11_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	python3dist(ytmusicapi)
BuildRequires:	python3-pybind11
BuildRequires:	python3-devel
BuildRequires:	python3dist(yt-dlp)
Requires:	python3dist(yt-dlp)
Requires:	python3-ytmusicapi

%description
YouTube Music client for Plasma Mobile

%files -f audiotube.lang
%{_kde5_applicationsdir}/org.kde.audiotube.desktop
%{_kde5_bindir}/audiotube
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.audiotube.svg
%{_appdatadir}/org.kde.audiotube.appdata.xml

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang audiotube


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 341 |21cr|auralquiz-1.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		auralquiz
Version:	1.0.0
Release:	2
Summary:	A simple music quiz game for GNU/Linux
License:	GPLv2+
Group:		Games/Other
URL:		https://jancoding.wordpress.com/auralquiz/
Source0:	http://download.savannah.gnu.org/releases/auralquiz/%{name}-v%{version}.tar.gz
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
Recommends:	phonon4qt5-vlc

%description
The game plays short pieces of music files from the player's chosen
folders, and presents a question and several answers about
the current song.
The fastest the answer, the more points the player receives. Up to
8 people can play, in a turn-based mode.
The game is quite complete already, but there are more modes
to be added, and several rough edges to polish.
Auralquiz uses Phonon for sound output.


%files
%doc CHANGELOG README TRANSLATING LICENSE
%{_gamesbindir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6.*
%{_appdatadir}/%{name}.appdata.xml

#----------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}

%{_qt5_bindir}/lrelease translations/*.ts

%build
%setup_compile_flags
%qmake_qt5
%make

%install
%makeinstall_qt
mkdir -p %{buildroot}%{_appdatadir}
cp -pr appdata/%{name}.appdata.xml \
  %{buildroot}%{_appdatadir}/%{name}.appdata.xml

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 342 |21cr|aurora-themes-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Themes for Aurora
Name:		aurora-themes
Version:	1.0
Release:	2
License:	GPL
Group:		Graphical desktop/Xfce
Url:		https://www.xfce-look.org/
Source0:	120069-Aurora-Midnight.tar.bz2
Source1:	114657-Aurora-Grainsboro-0.1.tar.bz2
Source2:	79655-Aurora-clean.tar.bz2
Source3:	Aurora-Night.tar.bz2
Requires:	aurora-clean-gtk2-theme
Requires:	aurora-grainsboro-gtk2-theme
Requires:	aurora-midnight-gtk2-theme
Requires:	aurora-night-gtk2-theme
BuildArch:	noarch

%description
Aurora theme pack for XFCE. Included themes:
- Aurora-Clean,
- Aurora-Grainsboro,
- Aurora-Midnight,
- Aurora-Night.

#----------------------------------------------------------------------------

%package -n aurora-clean-gtk2-theme
Summary:	Aurora-Clean GTK2 theme
Group:		Graphical desktop/Xfce
Requires:	gtk-aurora-engine

%description -n aurora-clean-gtk2-theme
Aurora-Clean GTK2 theme.

%files -n aurora-clean-gtk2-theme
%dir %{_datadir}/themes/Aurora-Clean/gtk-2.0/
%{_datadir}/themes/Aurora-Clean/gtk-2.0/*

#----------------------------------------------------------------------------

%package -n aurora-grainsboro-gtk2-theme
Summary:	Aurora-Grainsboro GTK2 theme
Group:		Graphical desktop/Xfce
Requires:	gtk-aurora-engine

%description -n aurora-grainsboro-gtk2-theme
Aurora-Grainsboro GTK2 theme.

%files -n aurora-grainsboro-gtk2-theme
%dir %{_datadir}/themes/Aurora-Grainsboro/gtk-2.0/
%{_datadir}/themes/Aurora-Grainsboro/gtk-2.0/*

#----------------------------------------------------------------------------

%package -n aurora-midnight-gtk2-theme
Summary:	Aurora-Midnight GTK2 theme
Group:		Graphical desktop/Xfce
Requires:	gtk-aurora-engine

%description -n aurora-midnight-gtk2-theme
Aurora-Midnight GTK2 theme.

%files -n aurora-midnight-gtk2-theme
%dir %{_datadir}/themes/Aurora-Midnight/gtk-2.0/
%{_datadir}/themes/Aurora-Midnight/gtk-2.0/*

#----------------------------------------------------------------------------

%package -n aurora-night-gtk2-theme
Summary:	Aurora-Night GTK2 theme
Group:		Graphical desktop/Xfce
Requires:	gtk-aurora-engine

%description -n aurora-night-gtk2-theme
Aurora-Night GTK2 theme.

%files -n aurora-night-gtk2-theme
%dir %{_datadir}/themes/Aurora-Night/gtk-2.0/
%{_datadir}/themes/Aurora-Night/gtk-2.0/*

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE0} -C %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE1} -C %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE2} -C %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE3} -C %{buildroot}%{_datadir}/themes

mv %{buildroot}%{_datadir}/themes/Aurora_clean %{buildroot}%{_datadir}/themes/Aurora-Clean
mv %{buildroot}%{_datadir}/themes/Aurora\ Grainsboro %{buildroot}%{_datadir}/themes/Aurora-Grainsboro
mv %{buildroot}%{_datadir}/themes/Aurora\ Night %{buildroot}%{_datadir}/themes/Aurora-Night

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 343 |21cr|authd-0.2.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname %{name} -d

Summary:	Software for obtaining and verifying user credentials 
Name:		authd
Version:	0.2.3
Release:	11
License:	BSD-Like
Group:		System/Servers
Url:		http://www.cs.berkeley.edu/~bnc/authd/
Source0:	http://www.theether.org/authd/%{name}-%{version}.tar.gz
Source1:	authd.init
Patch0:		authd-Makefile.in.patch
Patch1:		authd-linkage_fix.diff
Patch2:		fix_for_openssl-1.1.patch
BuildRequires:	libe-cluster >= 0.2
BuildRequires:	pkgconfig(openssl)
Requires:	openssh-clients
Requires:	openssh-server
Requires(post,preun):	rpm-helper

%description
authd is a software package for obtaining and verifying user credentials 
which contain cryptographic signatures based on RSA public key cryptography. 
It includes a server (authd) for authenticating local users through UNIX 
domain sockets and processing credentials, and a client library (libauth.a) 
for requesting new credentials and verifying credentials signed by the server.

%files
%doc ChangeLog COPYING
%{_initrddir}/authd
%{_sbindir}/authd

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel Package for authd
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
authd is a software package for obtaining and verifying user credentials
which contain cryptographic signatures based on RSA public key cryptography.
Provide file auth.h and libauth.a .

%files -n %{devname}
%{_includedir}/auth.h
%{_libdir}/libauth.a

#----------------------------------------------------------------------------

%prep
%autosetup

chmod 644 ChangeLog COPYING

%build
export CFLAGS="%{optflags} -D_GNU_SOURCE -D_REENTRANT"

%configure

%make

%install
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}

%makeinstall INSTALL_USER=%(id -un) INSTALL_GROUP=%(id -gn)
install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/authd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 344 |21cr|autodia-2.140.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Autodia
%define upstream_version 2.14

Name:		autodia
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Automatic Dia/UML generator

License:	GPL
Group:		Text tools
Url:		http://www.aarontrevena.co.uk/opensource/autodia/
Source0:	http://search.cpan.org/CPAN/authors/id/T/TE/TEEJAY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
AutoDia is a modular application that parses source code or data (if a
handler is available) and produces an XML document in Dia format,
essentially a Dia diagram autocreation package. The diagrams its creates
are standard UML diagrams showing dependencies, superclasses, packages,
classes and inheritances, as well as the methods, etc of each class. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
# what does script do there ?
rm -f %{buildroot}%{perl_vendorlib}/*.pl

%files
%doc CHANGES COPYING CREDITS FAQ README INSTALL TODO
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 345 |21cr|autodownloader-0.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Python program that can be used to automatically download files
Name:		autodownloader
Version:	0.5.0
Release:	2
License:	GPL
Group:		Networking/WWW
URL:		http://sourceforge.net/projects/autodownloader
Source0:	https://github.com/frenzymadness/AutoDownloader/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
Requires:	python3-gobject3
Requires:	python3-six
BuildArch:	noarch

%description
Autodownloader is a program written in Python that can be used
to automatically download files that are not freely distributable.

The program can choose from multiple mirrors and download the files
to a specified location. The files will also be checked using an md5
checksum.

%files
%doc COPYING ChangeLog README.txt
%{_bindir}/autodl
%dir %{_datadir}/autodl
%{_datadir}/autodl/*
%{_datadir}/icons/hicolor/*/apps/autodl.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n AutoDownloader-%{version}

%build
# empty

%install
%makeinstall_std

#sed -i s,"#!/usr/bin/env python","#!%{__python3}",g %{buildroot}%{_bindir}/autodl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 346 |21cr|autologin-1.0.0-39
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automatically log in
Name:		autologin
Version:	1.0.0
Release:	39
License:	GPLv2+
Group:		System/Base
Url:		http://www.linux-easy.com/development/autologin/
Source0:	%{name}-%{version}.tar.bz2
Source1:	startx.autologin
Patch0:		autologin-1.0.0-mdv.patch
Patch1:		autologin-glibc28_fix.diff
BuildRequires:	pam-devel
Requires:	initscripts >= 5.15

%description
Autologin automatically logs in as the user specified in
/etc/sysconfig/autologin and starts the X session defined there.

Install autologin if you want to bypass the login screen.

%files
%defattr(-,root,root,0755)
%doc README AUTHORS
%{_sbindir}/autologin
%{_bindir}/startx.autologin
%config(noreplace) /etc/pam.d/autologin

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .fred
%patch1 -p0 -b .glibc28_fix

%build
#FORCE_AUTOCONF_2_5=1 AUTOMAKE="automake --add-missing" autoreconf
autoreconf -fiv
%configure
%make

%install
%makeinstall_std

install -m755 %{SOURCE1} -D %{buildroot}%{_bindir}/startx.autologin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 347 |21cr|automake1.7-1.7.9-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define amversion 1.7

%define docheck 0
%{?_without_check: %global docheck 0}

Summary:	A GNU tool for automatically creating Makefiles
Name:		automake%{amversion}
Version:	1.7.9
%define subrel 1
Release:	21
License:	GPL
Group:		Development/Other
URL:		http://sources.redhat.com/automake/
Source:		ftp://ftp.gnu.org/gnu/automake/automake-%{version}.tar.bz2
Patch0:		automake-1.7.9-infofiles.patch
Patch1:		automake-1.7.9-new-autoconf-and-gettext.patch
Patch2:		automake-1.7.9-CVE-2009-4029.patch
Patch3:		automake-1.7.9-CVE-2012-3386.diff
BuildArch:	noarch
Requires:	autoconf2.5 >= 1:2.54
BuildRequires:	autoconf2.5 >= 1:2.59-4mdk
BuildRequires:	texinfo
Conflicts:	automake1.5
Conflicts:	automake < 1.4-22.p6.mdk
Requires(post): update-alternatives
# for tests
%if %docheck
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	tetex-latex
BuildRequires:	emacs
BuildRequires:	dejagnu
BuildRequires:	gcc-java
BuildRequires:	python
%endif

%description
Automake is a tool for automatically generating Makefiles compliant with
the GNU Coding Standards.

You should install Automake if you are developing software and would like
to use its capabilities of automatically generating GNU standard
Makefiles. If you install Automake, you will also need to install GNU's
Autoconf package.

%prep

%setup -q -n automake-%{version}
%patch0 -p0 -b .parallel
%patch1 -p1 -b .autoconf_gettext
%patch2 -p1 -b .CVE-2009-4029
%patch3 -p0 -b .CVE-2012-3386


%build
%configure
%make

%if %docheck
# (Abel) reqd2.test tries to make sure automake won't work if ltmain.sh
# is not present. But automake behavior changed, now it can handle missing
# libtool file as well, so this test is bogus.
perl -pi -e 's/reqd2.test//g' tests/Makefile
# etex is linked to pdfetex, which does not generate dvi files...
export TEX=tex
# (oe) these test cases fail probably due to incompabilities with latest gettext,
# disable them for now
for test in gettext gettext2 subcond subst; do
    perl -pi -e "s|${test}||g" tests/Makefile
done
make check	# VERBOSE=1
%endif

%install
%makeinstall_std

rm -f %{buildroot}/%{_bindir}/{automake,aclocal}

pushd %{buildroot}/%{_infodir}
for i in *.info*; do
  mv $i %{name}${i#automake}
done
popd

mkdir -p %{buildroot}%{_datadir}/aclocal

%post
update-alternatives --remove automake %{_bindir}/automake-%{amversion}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO
%{_bindir}/*
%{_datadir}/automake*
%{_infodir}/automake*
%{_datadir}/aclocal*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 348 |21cr|autopsy-2.24-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude perl\\(Appsort\\)|perl\\(Appview\\)|perl\\(Args\\)|perl\\(Caseman\\)|perl\\(Data\\)|perl\\(Exec\\)|perl\\(File\\)|perl\\(Filesystem\\)|perl\\(Frame\\)|perl\\(Fs\\)|perl\\(Hash\\)|perl\\(Kwsrch\\)|perl\\(Main\\)|perl\\(Meta\\)|perl\\(Notes\\)|perl\\(Print\\)|perl\\(Timeline\\)|perl\\(autopsyfunc\\)|perl\\(conf.pl\\)|perl\\(define.pl\\)|perl\\(fs.pl\\)|perl\\(search.pl\\)
%global __requires_exclude perl\\(Appsort\\)|perl\\(Appview\\)|perl\\(Args\\)|perl\\(Caseman\\)|perl\\(Data\\)|perl\\(Exec\\)|perl\\(File\\)|perl\\(Filesystem\\)|perl\\(Frame\\)|perl\\(Fs\\)|perl\\(Hash\\)|perl\\(Kwsrch\\)|perl\\(Main\\)|perl\\(Meta\\)|perl\\(Notes\\)|perl\\(Print\\)|perl\\(Timeline\\)|perl\\(autopsyfunc\\)|perl\\(conf.pl\\)|perl\\(define.pl\\)|perl\\(fs.pl\\)|perl\\(search.pl\\)|perl\\(lib::.*\\)


Summary:	Autopsy Forensic Browser
Name:		autopsy
Version:	2.24
Release:	5
License:	GPLv2+
Group:		System/Base
URL:		http://www.sleuthkit.org
Source0:	http://dfn.dl.sourceforge.net/sourceforge/autopsy/%name-%version.tar.gz
Requires:	binutils
Requires:	file
Requires:	grep
Requires:	perl
Requires:	sleuthkit >= 1.61
BuildArch:	noarch

%description
The Autopsy Forensic Browser is a graphical interface to the command line
digital forensic analysis tools in The Sleuth Kit. Together, The Sleuth Kit and
Autopsy provide many of the same features as commercial digital forensics tools
for the analysis of Windows(tm) and UNIX file systems (NTFS, FAT, FFS, EXT2FS,
and EXT3FS).

The Sleuth Kit and Autopsy are both Open Source and run on UNIX platforms. As
Autopsy is HTML-based, the investigator can connect to the Autopsy server from
any platform using an HTML browser. Autopsy provides a "File Manager"-like
interface and shows details about deleted data and file system structures.

%prep

%setup -q

%build

# "build" autopsy
cat > autopsy << EOF
#!%{_bindir}/perl -wT
use lib '%{_datadir}/autopsy/';
use lib '%{_datadir}/autopsy/lib/';
EOF
cat base/autopsy.base >> autopsy

# "build" make-live-cd
cat > make-live-cd << EOF
#!%{_bindir}/perl
use lib '%{_datadir}/autopsy/';
use lib '%{_datadir}/autopsy/lib/';
EOF
cat base/make-live-cd.base >> make-live-cd

# "build" conf.pl
cat > conf.pl << EOF
# Autopsy configuration settings

# when set to 1, the server will stop after it receives no
# connections for STIMEOUT seconds. 
\$USE_STIMEOUT = 0;
\$STIMEOUT = 3600;

# number of seconds that child waits for input from client
\$CTIMEOUT = 15;

# set to 1 to save the cookie value in a file (for scripting)
\$SAVE_COOKIE = 1;

\$INSTALLDIR = '%{_datadir}/autopsy/';

# System Utilities
\$STRINGS_EXE = '%{_bindir}/strings';
\$GREP_EXE = '/bin/grep';
\$FILE_EXE = '%{_bindir}/file';
\$MD5_EXE = '%{_bindir}/md5sum';
\$SHA1_EXE = '%{_bindir}/sha1sum';

# Directories
\$TSKDIR = '%{_bindir}/';
\$NSRLDB = '';
\$LOCKDIR = '%{_localstatedir}/lib/morgue';
EOF

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}/var/log/autopsy
install -d %{buildroot}%{_localstatedir}/lib/morgue
install -d %{buildroot}%{_datadir}/autopsy/help
install -d %{buildroot}%{_datadir}/autopsy/lib
install -d %{buildroot}%{_datadir}/autopsy/pict

install -m0755 autopsy %{buildroot}%{_sbindir}/autopsy
install -m0755 make-live-cd %{buildroot}%{_sbindir}/make-live-cd
install -m0755 conf.pl %{buildroot}%{_datadir}/autopsy/
install -m0644 help/*.html %{buildroot}%{_datadir}/autopsy/help/
install -m0644 lib/*.p* %{buildroot}%{_datadir}/autopsy/lib/
install -m0644 man/man1/autopsy.1 %{buildroot}%{_mandir}/man1/
install -m0644 pict/* %{buildroot}%{_datadir}/autopsy/pict/

%files
%doc CHANGES.txt COPYING docs/*.txt INSTALL.txt README-LIVE.txt README.txt TODO.txt
%{_datadir}/autopsy
%attr(0755,root,root) %{_sbindir}/autopsy
%attr(0755,root,root) %{_sbindir}/make-live-cd
%dir /var/log/autopsy
%dir %{_localstatedir}/lib/morgue
%attr(0644,root,root) %{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 349 |21cr|autossh-1.4g-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automatically restart SSH sessions and tunnels
Name:		autossh
Version:	1.4g
Release:	1
License:	BSD
Group:		Networking/Other
URL:		http://www.harding.motd.ca/autossh/
Source:		http://www.harding.motd.ca/autossh/%{name}-%{version}.tgz
BuildRequires:	openssh-clients
Requires:	openssh

%description
autossh is a program to start a copy of ssh and monitor it,
restarting it as necessary should it die or stop passing
traffic. The idea and the mechanism are from rstunnel
(Reliable SSH Tunnel), but implemented in C.

%files
%doc CHANGES README autossh.host rscreen
%{_bindir}/autossh
%{_mandir}/man1/autossh.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
chmod 644 autossh.host rscreen
%configure
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m755 autossh %{buildroot}%{_bindir}/
install -m644 autossh.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 350 |21cr|autotalent-ladspa-0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Singer pitch correction LADSPA Plugin
Name:		autotalent-ladspa
Group:		Sound
Version:	0.2
Release:	6
License:	GPLv2+
Url:		http://tombaran.info/autotalent.html
Source0:	http://tombaran.info/autotalent-%{version}.tar.gz
Patch0:		autotalent-0.2-makefile.patch

%description
Automatic pitch correction module for singers as LADSPA plugin.
You specify the notes that a singer is allowed to hit, and Autotalent 
makes sure that they do. You can also use Autotalent for more exotic 
effects, like the Cher / T-Pain effect, making your voice sound like a 
chiptune, adding artificial vibrato, or messing with your formants. 
Autotalent can also be used as a harmonizer that knows how to sing in 
the scale with you. Or, you can use Autotalent to change the scale of a 
melody between major and minor or to change the musical mode. 

%files
%{_libdir}/ladspa/autotalent.so

#----------------------------------------------------------------------------

%prep
%setup -q -n autotalent-%{version}
%patch0 -p1

%build
%setup_compile_flags
%make

%install
install -d %{buildroot}%{_libdir}/ladspa
install -m 0755 autotalent.so %{buildroot}%{_libdir}/ladspa/autotalent.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 351 |21cr|autotrace-0.31.1-44
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 3
%define	libname %mklibname autotrace %{major}
%define	devname %mklibname autotrace -d

Summary:	Program for converting bitmap to vector graphics
Name:		autotrace
Version:	0.31.1
Release:	44
License:	GPLv2+ and LGPLv2+
Group:		Publishing
Url:		http://autotrace.sourceforge.net
Source0:	http://prdownload.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		autotrace_0.31.1-13.diff
Patch1:		autotrace-0.31.1-swf-output.patch
Patch2:		autotrace-0.31.1-libpng-1.5.patch
Patch4:		autotrace-0.31.1-CVE-2013-1953.patch
Patch5:		autotrace-0.31.1-CVE-2016-7392.patch
Patch6:		autotrace-0.31.1-GraphicsMagick.patch
Patch7:		autotrace-0.31.1-CVE-2019-19004.patch
Patch8:		autotrace-0.31.1-CVE-2019-19005.patch
Patch9:		autotrace-0001-Modify-GetOnePixel-usage-to-build-against-current-Im.patch
Patch10:	autotrace-0002-Fixed-underquoted-AM_PATH_AUTOTRACE-definition.patch
Patch11:	autotrace-0.31.1-multilib-fix.patch
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(libming)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(pstoedit)
Provides:	fonttracer = %{version}-%{release}

%description
Autotrace is a program for converting bitmap to vector graphics. Supported
formats:
- input formats: BMP, TGA, PNM, PPM, PGM, PBM and those supported by
  ImageMagick;
- export formats: Postscript, svg, xfig, swf, pstoedit, emf, dxf, cgm,
  mif, p2e and sk.

%files
%doc AUTHORS ChangeLog COPYING FAQ README THANKS
%{_bindir}/autotrace
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Autotrace libraries
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries needed to run programs dynamically
linked with autotrace libraries.

%files -n %{libname}
%doc COPYING
%{_libdir}/libautotrace.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static libraries and header files for autotrace development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the static libraries and header files for
developing applications based on autotrace.

%files -n %{devname}
%doc README COPYING
%{_bindir}/autotrace-config
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure \
	--disable-static
%make


%install
# delete autogenerated requires
sed 's/libpng12, ming//' -i %{name}.pc
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 352 |21cr|autozen-2.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Brainwave controller
Name:		autozen
Version:	2.1
Release:	11
License:	GPLv2+
Group:		Sound
Url:		http://www.linuxlabs.com/autozen.html
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}48.png
Source2:	%{name}32.png
Source3:	%{name}16.png
Patch0:		autozen-2.1-no-strip.patch
Patch1:		autozen-2.1-gtk2.patch
BuildRequires:	pkgconfig(gtk+-2.0)

%description
AutoZen is a software 'brain machine' for Linux. It generates sounds that are
meant to cause the brain to temporarily shift to a different dominant
frequency and cause the user to experience an altered state of consciousness.

NOTE: Requires headphones.

%files
%doc CHANGES COPYING doc/HTML/*
%{_bindir}/%{name}
%{_bindir}/seq2wav
%{_bindir}/zentime
%{_mandir}/man1/*
%{_datadir}/AutoZen/*.seq
%{_datadir}/applications/mandriva-%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
make clean
make CFLAGS="%{optflags}"

%install
%makeinstall_std PREFIX=%{buildroot}%{_prefix}
rm -fr %{buildroot}%{_docdir}/AutoZen
mv %{buildroot}/usr/man %{buildroot}/%{_datadir}/

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=AutoZen
Comment=Brainwave controller
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;AudioVideo;Audio;AudioVideoEditing;
EOF

#icons
mkdir -p %{buildroot}%{_liconsdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}
install -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_miconsdir}
install -m 0644 %{SOURCE3} %{buildroot}%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 353 |21cr|avarice-2.14-1.7.0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rel 7

Summary:	Program for interfacing the Atmel JTAG ICE to GDB
Name:		avarice
Version:	2.14
Release:	1.%{rel}.0
License:	GPLv2+
Group:		Development/Tools
Url:		https://github.com/Florin-Popescu/avarice
Source0:	https://github.com/Florin-Popescu/avarice/archive/refs/tags/v%{version}-%{rel}.tar.gz?/%{name}-%{version}-%{rel}.tar.gz
Source1:	avarice.rules
BuildRequires:	binutils-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libusb)

%description
Program for interfacing the Atmel JTAG ICE to GDB to allow users to debug their
embedded AVR target.

%files
%doc AUTHORS ChangeLog NEWS
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*
/lib/udev/rules.d/60-avarice.rules

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-%{rel}

%build
./Bootstrap
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/lib/udev/rules.d/
install -m 0644 %{SOURCE1} %{buildroot}/lib/udev/rules.d/60-avarice.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 354 |21cr|avatar-theme-neru-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Avatar theme for KDE4, KDE5 and XFCE
Name:		avatar-theme-neru
Version:	2.0
Release:	1
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/avatar-theme-neru
Source0:	https://github.com/chistota/avatar-theme-neru/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS README.md
%dir %{_datadir}/mdk/faces
%dir %{_datadir}/user-manager/avatars
%{_datadir}/mdk/faces/*
%{_datadir}/user-manager/avatars/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/mdk/faces
install -d %{buildroot}%{_datadir}/user-manager/avatars
cp -R faces/* %{buildroot}%{_datadir}/mdk/faces/
cp -R avatar/* %{buildroot}%{_datadir}/user-manager/avatars/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 355 |21cr|avatar-theme-rospo-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dname	neru
%define doname	avatar-theme-%{dname}
%define dver	1.0

Summary:	Avatars
Name:		avatar-theme-rospo
Version:	2.0
Release:	1
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/avatar-theme-rospo
Source0:	https://github.com/chistota/%{doname}/archive/v%{dver}.tar.gz?/%{doname}-%{dver}.tar.gz
BuildArch:	noarch

%description
%{summary} theme for KDE4, KDE5 and XFCE.

%files
%doc AUTHORS README.md
%dir %{_datadir}/mdk
%dir %{_datadir}/user-manager
%{_datadir}/mdk/*
%{_datadir}/user-manager/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{doname}-%{dver}

%build

%install
install -d %{buildroot}%{_datadir}/mdk
install -d %{buildroot}%{_datadir}/user-manager
cp -R faces %{buildroot}%{_datadir}/mdk/
cp -R avatar %{buildroot}%{_datadir}/user-manager/avatars

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 356 |21cr|avce00-2.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		avce00
Version:	2.0.0
Release:	7
Summary:	Arc/Info (binary) Vector Coverage <-> E00 Utilities
License:	BSD-like
URL:		http://avce00.maptools.org/
Source:		http://avce00.maptools.org/dl/%{name}-%{version}.tar.gz
Group:		Sciences/Geosciences

%description
AVCE00 is an Open Source (i.e. Free!) ANSI-C library that makes Arc/Info
(binary) Vector Coverages appear as E00! It allows you to read and write binary
coverages just as if they were E00 files.

For those who do not need a library but simply want to convert some coverages,
the package includes the "AVCIMPORT" and "AVCEXPORT" conversion programs.

%package -n %{name}-devel
License:	BSD-like
Group:		Sciences/Geosciences
Summary:	Arc/Info (binary) Vector Coverage <-> E00 Library

%description -n %{name}-devel
AVCE00 is an Open Source (i.e. Free!) ANSI-C library that makes Arc/Info
(binary) Vector Coverages appear as E00! It allows you to read and write binary
coverages just as if they were E00 files.

The C library can be easily plugged into existing E00 translators to add
support for binary coverages simply by replacing your existing translator's
read/write function by the AVCE00ReadNextLine() and AVCE00WriteNextLine()
functions provided by the library. See the library documentation for all the
details.

This package includes the development files (headers and static library)
for developing applications which use the avc library.

%prep
%setup -q


%build
#configure
%make

%install
rm -Rf %{buildroot}
install -d %{buildroot}/{%{_includedir},%{_bindir},%{_libdir}}
install *.h %{buildroot}/%{_includedir}
install *.a %{buildroot}/%{_libdir}
install avc{delete,export,import,test} ex_avcwrite %{buildroot}/%{_bindir}


%files
%defattr(-,root,root)
%{_bindir}/*avc*

%files -n %{name}-devel
%{_includedir}/*.h
%{_libdir}/avc.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 357 |21cr|avogadro2-1.91.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		avogadro2
Version:	1.91.0
Release:	1
Summary:	An advanced molecular editor
License:	BSD
Group:		Sciences/Chemistry
URL:		http://www.openchemistry.org/projects/avogadro2/
Source0:	https://github.com/OpenChemistry/avogadroapp/archive/%{version}/avogadroapp-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	hdf5-devel
BuildRequires:	spglib-devel
BuildRequires:	avogadro2-devel
BuildRequires:	molequeue-devel
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)

Requires:	openbabel
Requires:	python3

%description
Avogadro is an advanced molecular editor designed for cross-platform use in
computational chemistry, molecular modeling, bioinformatics, materials science,
and related areas. It offers flexible rendering and a powerful plugin
architecture. The code in this repository is a rewrite of Avogadro with source
code split across a libraries repository and an application repository. Core
features and goals of the Avogadro project:

  * Open source distributed under the liberal 3-clause BSD license
  * Cross platform with nightly builds on Linux, Mac OS X and Windows
  * Intuitive interface designed to be useful to whole community
  * Fast and efficient embracing the latest technologies
  * Extensible, making extensive use of a plugin architecture
  * Flexible supporting a range of chemical data formats and packages

%prep
%setup -q -n avogadroapp-%{version}
%autopatch -p1

%build
%cmake_qt5 \
	-DENABLE_TESTING:BOOL=OFF \
	-DBUILD_DOCUMENTATION:BOOL=ON

%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_datadir}/doc

# more icons
for i in 64 128 256 512; do
	install -Dpm 644 avogadro/icons/%{name}_${i}.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{name}.png
done

%files
%doc CONTRIBUTING.md README.md LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 358 |21cr|avogadrolibs-1.91.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# filter out bogus auto-requires
%global __noautoreq 'devel\\(libMoleQueue.*'

Name:		avogadrolibs
Version:	1.91.0
Release:	1
Summary:	An advanced molecular editor
License:	BSD
Group:		Sciences/Chemistry
Url:		http://www.openchemistry.org/projects/avogadro2/
Source0:	https://github.com/OpenChemistry/avogadrolibs/archive/%{version}/%{name}-%{version}.tar.gz
# External source code for avogadrolibs >= 1.91.0
# See https://github.com/OpenChemistry/avogadrolibs/issues/362
%global commit	f5a3f98dddda8a776759939a149b4ebb51547507
Source1:	https://github.com/OpenChemistry/avogenerators/archive/%{commit}/avogenerators-%{commit}.tar.gz
Patch0:		avogadrolibs-1.90.0-fix-cmake.patch
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	spglib-devel
BuildRequires:	msym-devel
BuildRequires:	molequeue-devel
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Avogadro is an advanced molecular editor designed for cross-platform use in
computational chemistry, molecular modeling, bioinformatics, materials science,
and related areas. It offers flexible rendering and a powerful plugin
architecture. The code in this repository is a rewrite of Avogadro with source
code split across a libraries repository and an application repository. Core
features and goals of the Avogadro project:

  * Open source distributed under the liberal 3-clause BSD license
  * Cross platform with nightly builds on Linux, Mac OS X and Windows
  * Intuitive interface designed to be useful to whole community
  * Fast and efficient embracing the latest technologies
  * Extensible, making extensive use of a plugin architecture
  * Flexible supporting a range of chemical data formats and packages

%files
%doc avogadrogenerators/README-avogenerators.md
%doc thirdparty/libgwavi/README-libgwavi.md
%doc %{_docdir}/AvogadroLibs/
%doc LICENSE
%{_libdir}/avogadro2/

#----------------------------------------------------

%define core_major		1
%define libcorename		%mklibname avogadrocore %{core_major}

%package -n	%{libcorename}
Summary:	Avogadro Core library
Group:		System/Libraries
Requires:	%{name} >= %{version}-%{release}

%description -n	%{libcorename}
Avogadro Core library.

%files -n %{libcorename}
%{_libdir}/libAvogadroCore.so.%{core_major}*

#----------------------------------------------------

%define io_major		1
%define libioname		%mklibname avogadroio %{io_major}

%package -n	%{libioname}
Summary:	Avogadro IO library
Group:		System/Libraries

%description -n	%{libioname}
Avogadro IO library.

%files -n %{libioname}
%{_libdir}/libAvogadroIO.so.%{io_major}*

#----------------------------------------------------

%define molequeue_major		1
%define libmolequeuename	%mklibname avogadromolequeue %{molequeue_major}

%package -n	%{libmolequeuename}
Summary:	Avogadro MoleQueue library
Group:		System/Libraries

%description -n	%{libmolequeuename}
Avogadro MoleQueue library.

%files -n %{libmolequeuename}
%{_libdir}/libAvogadroMoleQueue.so.%{molequeue_major}*

#----------------------------------------------------

%define qtgui_major		1
%define libqtguiname		%mklibname avogadroqtgui %{qtgui_major}

%package -n	%{libqtguiname}
Summary:	Avogadro Qt Gui library
Group:		System/Libraries

%description -n	%{libqtguiname}
Avogadro Qt Gui library.

%files -n %{libqtguiname}
%{_libdir}/libAvogadroQtGui.so.%{qtgui_major}*

#----------------------------------------------------

%define qtopengl_major		1
%define libqtopenglname		%mklibname avogadroqtopengl %{qtopengl_major}

%package -n	%{libqtopenglname}
Summary:	Avogadro Qt OpenGL library
Group:		System/Libraries

%description -n	%{libqtopenglname}
Avogadro Qt OpenGL library.

%files -n %{libqtopenglname}
%{_libdir}/libAvogadroQtOpenGL.so.%{qtopengl_major}*

#----------------------------------------------------

%define qtplugins_major		1
%define libqtpluginsname	%mklibname avogadroqtplugins %{qtplugins_major}

%package -n	%{libqtpluginsname}
Summary:	Avogadro Qt Plugins library
Group:		System/Libraries

%description -n	%{libqtpluginsname}
Avogadro Qt Plugins library.

%files -n %{libqtpluginsname}
%{_libdir}/libAvogadroQtPlugins.so.%{qtplugins_major}*

#----------------------------------------------------

%define quantumio_major		1
%define libquantumioname	%mklibname avogadroquantumio %{quantumio_major}

%package -n	%{libquantumioname}
Summary:	Avogadro Quantum IO library
Group:		System/Libraries

%description -n	%{libquantumioname}
Avogadro Quantum IO library.

%files -n %{libquantumioname}
%{_libdir}/libAvogadroQuantumIO.so.%{quantumio_major}*

#----------------------------------------------------

%define rendering_major		1
%define librenderingname	%mklibname avogadrorendering %{rendering_major}

%package -n	%{librenderingname}
Summary:	Avogadro Rendering library
Group:		System/Libraries

%description -n	%{librenderingname}
Avogadro Rendering library.

%files -n %{librenderingname}
%{_libdir}/libAvogadroRendering.so.%{rendering_major}*

#----------------------------------------------------

%define devname		%mklibname %{name} -d

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} >= %{version}-%{release}
Requires:	%{libcorename} >= %{version}-%{release}
Requires:	%{libioname} >= %{version}-%{release}
Requires:	%{libmolequeuename} >= %{version}-%{release}
Requires:	%{libqtguiname} >= %{version}-%{release}
Requires:	%{libqtopenglname} >= %{version}-%{release}
Requires:	%{libqtpluginsname} >= %{version}-%{release}
Requires:	%{libquantumioname} >= %{version}-%{release}
Requires:	%{librenderingname} >= %{version}-%{release}
Requires:	molequeue-devel
Provides:	avogadro2-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{name}-devel < 1.90.0-7

%description -n	%{devname}
Header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/avogadro/
%{_libdir}/cmake/%{name}/
%{_libdir}/*.so
%{_libdir}/libjsoncpp.a
%{_libdir}/liblibgwavi.a

#----------------------------------------------------

%prep
%setup -q -a 1
%autopatch -p1

# Make avogadro generators source code available for CMake
mv avogenerators-%{commit} avogadrogenerators
mv avogadrogenerators/README.md avogadrogenerators/README-avogenerators.md
sed -e 's|../avogadrogenerators|avogadrogenerators|g' -i avogadro/qtplugins/quantuminput/CMakeLists.txt

mv thirdparty/libgwavi/README.md thirdparty/libgwavi/README-libgwavi.md

%build
%cmake_qt5 \
	-DCMAKE_INSTALL_LIBDIR=%{_lib}

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 359 |21cr|avra-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	An AVR assembler
Name:		avra
Version:	1.4.2
Release:	1
License:	GPLv2
Group:		Development/Other
Url:		https://avra.sourceforge.net
Source0:	https://github.com/Ro5bert/avra/archive/%{version}.tar.gz?/%{name}-%{version}.tar.bz2

%description
Avra is an GNU GPL'ed assembler for the Atmel AVR microcontrollers.
Features: 
- It's compatible with Atmel's avrasm. 
- Better macro support. 
- Conditional assembly.

%files
%doc CHANGELOG.md README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/examples/*
%{_datadir}/%{name}/includes/*
%{_includedir}/avr

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make

%install
%makeinstall_std PREFIX=/usr

install -Dm755 -d %{buildroot}%{_datadir}/%{name}/includes
install -Dm644 includes/* %{buildroot}%{_datadir}/%{name}/includes/
install -Dm755 -d %{buildroot}%{_datadir}/%{name}/examples
install -Dm644 examples/* %{buildroot}%{_datadir}/%{name}/examples/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 360 |21cr|avrdude-6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Software for programming Atmel AVR Microcontroller
Name:		avrdude
Version:	6.3
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.nongnu.org/avrdude
Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
Source1:	avrdude-udev-rules
Patch0:		avrdude-doc.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	texi2html
BuildRequires:	texinfo
BuildRequires:	glibc-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(ncurses)

%description
AVRDUDE is a program for programming Atmel's AVR CPU's. It can program
the Flash and EEPROM, and where supported by the serial programming
protocol, it can program fuse and lock bits. AVRDUDE also supplies a
direct instruction mode allowing one to issue any programming
instruction to the AVR chip regardless of whether AVRDUDE implements
that specific feature of a particular chip.

%files
%doc README AUTHORS ChangeLog* COPYING NEWS doc/TODO
%config(noreplace) %{_sysconfdir}/%{name}
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_infodir}/%{name}.info*
%{_udevrulesdir}/70-avrdude_usbprog.rules

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

sed -i 's|/usr/local/etc/avrdude.conf|%{_sysconfdir}/%{name}/avrdude.conf|g' doc/avrdude.texi avrdude.1
sed -i 's|/etc/avrdude.conf|%{_sysconfdir}/%{name}/avrdude.conf|g' doc/avrdude.texi avrdude.1
# To fix build failures on i586 HAVE_STDINT_H should be replaced with 1
perl -lp -i -e 's/\A#if\s+HAVE_STDINT_H\s*\z/#if 1/' *.c
iconv -f ISO88591 -t UTF8 < ChangeLog-2003 > ChangeLog-2003~
mv ChangeLog-2003~ ChangeLog-2003
iconv -f ISO88591 -t UTF8 < NEWS > NEWS~
mv NEWS~ NEWS

%build
autoreconf -fi
%configure \
	--disable-shared \
	--enable-doc \
	--sysconfdir=%{_sysconfdir}/%{name}
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_udevrulesdir}
install -m 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/70-avrdude_usbprog.rules

rm -f %{buildroot}%{_infodir}/dir
# We don't need development package
rm -rf %{buildroot}%{_includedir}
rm -f %{buildroot}%{_libdir}/libavrdude.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 361 |21cr|avr-libc-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The C Runtime Library for AVR Microcontrollers
Name:		avr-libc
Version:	2.0.0
Release:	1
License:	BSD
Group:		Development/C
Url:		http://savannah.nongnu.org/projects/avr-libc
#Source0:	http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
# since 3.4.3 atmel no longer distributes patch set, only patched sources in tarball
Source0:	http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.5.4/avr-libc.tar.bz2#/avr-libc-%{version}+atmel.tar.bz2
Source1:	http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{version}.tar.bz2
Source2:	http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{version}.pdf.bz2
Source3:	http://savannah.nongnu.org/download/%{name}/%{name}-manpages-%{version}.tar.bz2
Source4:	http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.5.4/avr/avr8-headers.zip
Source5:	logicp-1.01.tgz
Source6:	%{name}.rpmlintrc
Patch0:		avr-libc-1.6.4-documentation.patch
Patch100:	logicp-1.01-mdv-replace-deprecated-vector-names.patch
BuildRequires:	cross-avr-binutils
BuildRequires:	cross-avr-gcc
BuildRequires:	dos2unix
BuildRequires:	doxygen
BuildRequires:	findutils
Requires:	cross-avr-binutils
Requires:	cross-avr-gcc
BuildArch:	noarch

%description
The C runtime library for the AVR family of microcontrollers for use
with the GNU toolset (cross-avr-binutils, cross-avr-gcc, uisp, etc.).

Authors:
--------
    Joerg Wunsch <j.gnu@uriah.heep.sax.de>
    Marek Michalkiewicz <marekm@amelek.gda.pl>
    Theodore A. Roth <troth@openavr.org>

%files
%dir %{_prefix}/avr
%dir %{_prefix}/avr/share
%doc %{_prefix}/avr/share/man
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/C*
%doc %{_docdir}/%{name}/LICENSE
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/TODO
%doc %{_docdir}/%{name}/examples
%{_prefix}/avr/include
%{_prefix}/avr/lib
%{_bindir}/avr-man

#----------------------------------------------------------------------------

%package doc
Summary:	AVR C library docs in html and pdf format
Group:		Documentation
Requires:	%{name} = %{EVRD}
Obsoletes:	%{name}-docs < %{version}-%{release}

%description doc
This package contains the AVR C library docs in html and pdf format, the main
package already contains the docs in man-page format (use "avr-man xxxx" to
access these).

%files doc
%doc %{_docdir}/%{name}/html
%doc %{_docdir}/%{name}/%{name}*.pdf
#----------------------------------------------------------------------------

%prep
%setup -q -c -b5

# atmel's tarball needs some shuffling to have expected directory layout
# must be done in two steps because of conflicting libc directory
mv libc delete-libc
mv delete-libc/avr-libc/* .
rmdir delete-libc/avr-libc
tar -joxf %{SOURCE3}

%patch0 -p1

dos2unix doc/examples/twitest/twitest.c
pushd ../logicp-1.01
%patch100 -p1
popd

I=0
unzip %{SOURCE4} -d avr8-headers
for i in ./avr8-headers/avr/io[0-9a-zA-Z]*.h
do
  cp $i include/avr/ -v
done

# Add html docs
mkdir html
cd html/
tar -jxvf %{SOURCE1}
cd -

# Add pdf manual
mkdir pdf
cd pdf/
bzip2 -dc %{SOURCE2} > avr-libc-user-manual-%{version}.pdf
cd -

for i in doc/api/faq.dox doc/api/overview.dox include/stdio.h include/stdlib.h;
  do
    iconv -f CP1252 -t UTF8 $i > tmp
    mv tmp $i
done
sed -i 's|@DOC_INST_DIR@/man|%{_prefix}/avr/share/man|' scripts/avr-man.in

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
export PREFIX=%{_prefix}
export PATH=%{_prefix}/bin:$PATH
./bootstrap
./configure --prefix=%{_prefix} --host=avr
make

%install
export PREFIX=%{_prefix}
export PATH=%{_prefix}/bin:$PATH

# ./domake DESTDIR=%%{buildroot} install
make DESTDIR=%{buildroot} install

# put the man-pages in the FHS mandir and gzip them
mkdir -p %{buildroot}%{_prefix}/avr/share
find man/ -type f -exec gzip {} \;
mv man  %{buildroot}%{_prefix}/avr/share

# we only want to use %doc with an absolute path to avoid rpmbuild from erasing
# %{_docdir}/%{name}
mv %{buildroot}%{_docdir}/%{name}-%{version} %{buildroot}%{_docdir}/%{name}
install -p -m 644 doc/TODO doc/CHANGES.old AUTHORS ChangeLog* LICENSE NEWS \
  pdf/* README %{buildroot}%{_docdir}/%{name}
mkdir %{buildroot}%{_docdir}/%{name}/html
cp -ap html/%{name}-user-manual*/* %{buildroot}%{_docdir}/%{name}/html
chmod -R u=rwX,g=rX,o=rX %{buildroot}%{_docdir}/%{name}/html

# despite us being noarch redhat-rpm-config insists on stripping our files
%global __os_install_post /usr/lib/rpm/brp-compress

#tar jxvf %{S:1}
#mv %{name}-user-manual-%{version} user-manual-%{version}
#mkdir -p %{buildroot}/usr/share/doc/%{name}-%{version}
#cp -pr AUTHORS ChangeLog LICENSE NEWS user-manual-%{version} %{buildroot}/usr/share/doc/%{name}-%{version}
#cat >> %{buildroot}/usr/share/doc/%{name}-%{version}/00_index.html <<EOF
#<head><meta http-equiv="Refresh" content="0; user-manual-%{version}/pages.html"></head>
#<a href="user-manual-%{version}/pages.html">user-manual-%{version}/pages.html</a>
#EOF
#tar jxvf %{S:2} -C %{buildroot}/%{_prefix}/share
#mv %{buildroot}/%{_prefix}/share/man %{buildroot}/usr/share/doc/%{name}-%{version}
#find %{buildroot}/usr/share/doc/%{name}-%{version}/man -type f -print | xargs xz

%check
# selftest disabled, may be logicp high old?
#ld: error: cannot change output format whilst linking AVR binaries

### selftest ###
#cd ../logicp*
## how do we tell the linker that crt*.o is at a nonstandard location?
#ln -sf %{buildroot}%{_prefix}/avr/lib/crt*.o .
#ln -sf %{buildroot}%{_prefix}/avr/lib/avr4/crtatmega8.o .
#ln -sf %{buildroot}%{_prefix}/avr/lib/avr?/crtm*.o .
#make test CFLAGS="-Wall -g -Os -mint8 -I%{buildroot}%{_prefix}/avr/include/ -L%{buildroot}%{_prefix}/avr/lib/avr4" CPU=mega8
#make test CFLAGS="-Wall -g -Os -mint8 -I%{buildroot}%{_prefix}/avr/include/ -L%{buildroot}%{_prefix}/avr/lib/avr4" CPU=mega48
#make test CFLAGS="-Wall -g -Os -mint8 -I%{buildroot}%{_prefix}/avr/include/ -L%{buildroot}%{_prefix}/avr/lib"      CPU=tiny2313

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 362 |21cr|aweather-0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Real-time weather data viewer
Name:		aweather
Version:	0.8
Release:	4
License:	GPLv3+
Group:		Sciences/Geosciences
URL:		http://pileus.org/aweather/
Source0:	http://pileus.org/aweather/files/%{name}-%{version}.tar.gz
Patch0:		aweather-0.6.3-mdv-includepath.patch
Patch1:		aweather-0.6.3-mdv-gthread.patch
Patch2:		aweather-0.6.1-mdv-desktop.patch
Patch3:		aweather-0.8-automake.patch
BuildRequires:	bzip2-devel
BuildRequires:	rsl-devel >= 1.42
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(grits) >= %{version}

%description
AWeather is a free/open source application which has been designed to integrate
and visualize high-quality meteorological data using an interactive Virtual
Globe interface suitable for a wide range of users including weather
enthusiasts, academics, and professionals. It is designed to provide more
information than is typically available from weather widgets and simple desktop
applications. At the same time, it strives to be simpler and easier to use
than existing meteorological software packages such as GEMPAK and IDV.
Currently AWeather only displays data provided by the United States National
Weather Service.

%files
%doc ChangeLog COPYING README TODO
%doc %{_docdir}/aweather/*.html
%{_bindir}/aweather
%{_bindir}/wsr88ddec
%{_libdir}/aweather/*.so
%{_datadir}/applications/aweather.desktop
%{_datadir}/aweather
%{_iconsdir}/hicolor/*/apps/aweather.*
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 363 |21cr|awesome-4.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

Summary:	Highly configurable, framework window manager for X. Fast, light and extensible
Name:		awesome
Version:	4.3
Release:	4
License:	GPLv2
Group:		Graphical desktop/Other
Url:		https://awesomewm.org/
Source0:	https://github.com/awesomeWM/awesome-releases/raw/master/%{name}-%{version}.tar.xz
Patch0:		awesome-3.5.2-link.patch
BuildRequires:	cmake
BuildRequires:	gperf
BuildRequires:	imagemagick
BuildRequires:	asciidoc xmlto doxygen
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	lua-lgi
BuildRequires:	ruby-asciidoctor
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-xcb)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(libev)
BuildRequires:	pkgconfig(libstartup-notification-1.0) >= 0.10
BuildRequires:	pkgconfig(libxdg-basedir)
BuildRequires:	pkgconfig(lua) >= 5.2
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-cursor)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-randr)
BuildRequires:	pkgconfig(xcb-shape)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcb-xinerama)
BuildRequires:	pkgconfig(xcb-xrm)
BuildRequires:	pkgconfig(xcb-xtest)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
Requires:	dbus
# for wallpaper setting handling
Requires:	feh
Requires:	lua-lgi
Requires:	typelib(cairo)
Requires:	typelib(GdkPixbuf)
Requires:	typelib(Pango)
Requires:	typelib(PangoCairo)
Requires:	xterm

%description
Awesome is a highly configurable, next generation framework window
manager for X. It is very fast, light and extensible.
It is primarily targeted at power users, developers and any people
dealing with every day computing tasks and want to have fine-grained
control on its graphical environment.

%files -f %{name}.lang
%{_docdir}/%{name}/{*.md,LICENSE,*.lua}
%{_bindir}/aw*
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*
%{_datadir}/%{name}
%{_datadir}/xsessions/awesome.desktop
%config(noreplace) %{_sysconfdir}/xdg/awesome/rc.lua

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%cmake -DXDG_CONFIG_DIR:PATH=%{_sysconfdir}/xdg
%make -s

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-man 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 364 |21cr|awesome-vicious-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname vicious

Summary:	Vicious plugins for awesome
Name:		awesome-vicious
Version:	2.6.0
Release:	1
License:	GPLv2
Group:		Graphical desktop/Other
Url:		https://github.com/vicious-widgets/vicious
Source0:	https://github.com/vicious-widgets/vicious/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Requires:	awesome
BuildArch:	noarch

%description
Vicious is a modular widget library for the "awesome" window manager,
derived from the "Wicked" widget library. It has some of the old
Wicked widget types, a few of them rewritten, and a good number of new
ones.

Vicious widget types are a framework for creating your own awesome
widgets. Vicious contains modules that gather data about your system,
and a few helper functions that make it easier to register timers,
suspend widgets and so on.

For now Vicious doesn't depend on any third party Lua libraries, to
make it easier to install and use. That means some system utilities
are used instead, where available:

 - hddtemp		for the HDD Temperature widget type
 - alsa-utils		for the Volume widget type
 - wireless_tools	for the Wireless widget type
 - curl			for widget types accessing network resources

%files
%doc CHANGELOG.rst README.md TODO
%license LICENSE
%{_datadir}/awesome/lib/vicious
%dir %{_datadir}/awesome
%dir %{_datadir}/awesome/lib

#------------------------------------------------------------------

%prep
%autosetup -n %{oname}-%{version}

%build

%install
install -d %{buildroot}/%{_datadir}/awesome/lib/vicious/contrib
install -d %{buildroot}/%{_datadir}/awesome/lib/vicious/widgets
install -Dm 644 contrib/* %{buildroot}/%{_datadir}/awesome/lib/vicious/contrib
install -Dm 644 widgets/* %{buildroot}/%{_datadir}/awesome/lib/vicious/widgets
install -Dm 644 init.lua %{buildroot}/%{_datadir}/awesome/lib/vicious
install -Dm 644 helpers.lua %{buildroot}/%{_datadir}/awesome/lib/vicious
install -Dm 644 spawn.lua %{buildroot}/%{_datadir}/awesome/lib/vicious

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 365 |21cr|awffull-3.10.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Webalizer Fork, Full o' Features!
Name:		awffull
Version:	3.10.2
Release:	14
License:	GPLv3+
Group:		Monitoring
Url:		http://www.stedee.id.au/awffull
# md5sum: 80acf755b354c49d78a5b9bb580196f2
Source0:	http://www.stedee.id.au/files/%{name}-%{version}.tar.gz
Source1:	http://flags.blogpotato.de/zip/large/world.zip
Source2:	http://flags.blogpotato.de/zip/large/special.zip
Source3:	awffull.cron.daily
Source4:	Vera.ttf
Source5:	VeraBd.ttf
Patch0:		awffull-mdv_conf.diff
Patch1:		awffull-3.10.2-upstreambug309617.diff
Patch2:		awffull-3.10.2-automake.patch
Requires:	apache-base
Requires:	geoip
BuildRequires:	gd-devel
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	apache-base >= 2.0.54
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	unzip

%description
Webalizer is a great weblog analysis program but hasn't been going anywhere in
recent years. AWFFull takes that base and starts to fix the niggles and
annoyances and hopefully become a useful enhancement. As a base, weblizer has
a stated goal of producing web server analysis. AWFFull on the other hand, will
gradually focus more on the business intelligence contained within those logs -
and not specifically limited just to web server logs.

%files
%doc COPYING ChangeLog PERFORMANCE_TIPS.txt README* TODO country-codes.txt sample.minimal.conf sample.css
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(0644,root,root) %config(noreplace) %{_webappconfdir}/%{name}.conf
%attr(0755,root,root) %config(noreplace) %{_sysconfdir}/cron.daily/%{name}
%attr(0755,root,root) %{_bindir}/awffull
%attr(0755,root,root) %{_bindir}/awffull_history_regen
%attr(0755,root,root) %dir %{_localstatedir}/lib/%{name}
%attr(0644,root,root) %config(noreplace) %{_localstatedir}/lib/%{name}/%{name}.css
%attr(0755,root,root) %dir /var/www/icons/flags
%attr(0644,root,root) /var/www/icons/flags/*
%attr(0644,root,root) %{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%attr(0644,root,root) %{_datadir}/%{name}/*.ttf
%attr(0644,root,root) %{_mandir}/man1/*
%attr(0644,root,root) %{_mandir}/man5/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p1

unzip -d flags -o -f %{SOURCE1}
unzip -d flags -o -f %{SOURCE2}

cp %{SOURCE3} .
cp %{SOURCE4} .
cp %{SOURCE5} .

%build
%serverbuild
%configure \
    --with-etcdir=%{_sysconfdir}/%{name} \
    --with-font-default=%{_datadir}/%{name}/VeraBd.ttf \
    --with-font-label=%{_datadir}/%{name}/Vera.ttf

%make

%install
%makeinstall_std

install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}

install -m0644 sample.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -m0644 sample.css %{buildroot}%{_localstatedir}/lib/%{name}/%{name}.css
install -m0755 contrib/awffull_history_regen.pl %{buildroot}%{_bindir}/awffull_history_regen
install -m0644 Vera.ttf %{buildroot}%{_datadir}/%{name}/
install -m0644 VeraBd.ttf %{buildroot}%{_datadir}/%{name}/

install -d %{buildroot}/var/www/icons/flags
install -m0644 flags/*.png %{buildroot}/var/www/icons/flags/
install -m0644 flags/README %{buildroot}/var/www/icons/flags/

# apache configuration
install -d %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# %{name} configuration

Alias /%{name} %{_localstatedir}/lib/%{name}

<Directory %{_localstatedir}/lib/%{name}>
    Require all granted
</Directory>

Alias /flags /var/www/icons/flags

<Directory /var/www/icons/flags>
    Options -Indexes +MultiViews
    AllowOverride None
    Require all granted
</Directory>

EOF

# cron task
install -d %{buildroot}%{_sysconfdir}/cron.daily
install -m0755 awffull.cron.daily %{buildroot}%{_sysconfdir}/cron.daily/%{name}

cat > README.Mandriva << EOF

The default configuration file has been moved from /etc/awffull.conf to
/etc/awffull/awffull.conf

Currently on Mandriva you need to set two environment variables in order to
get the UTF-8 output in the language you want, so for Swedish you should do
like so:

LANG=sv_SE.UTF-8 LANGUAGE=sv_SE.UTF-8:sv \\
awffull --output=/path/to/the/output/directory -n \$HOSTNAME \\
--use_geoip /path/to/the/apache/log/access_log

If you have many virtual hosts you can copy the default /etc/awffull/awffull.conf
to /etc/awffull/virtual_host_name.conf and edit that file to point to the correct
logfile, output directory and such. The new /etc/cron.daily/awffull script will
look for the following settings in the /etc/awffull/virtual_host_name.conf file
and automatically generate the output in the desired language:

#AWFFULL_LANG=
#AWFFULL_LANGUAGE=

So if you for example want the output in Swedish change this to:

#AWFFULL_LANG=sv_SE.UTF-8
#AWFFULL_LANGUAGE=sv_SE.UTF-8:sv

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 366 |21cr|aws-1.75-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Source tar.bz is created by downloading script from
# http://timkay.com/aws
# (https://raw.github.com/timkay/aws/master/aws)

Summary:	Command line access to Amazon S3, EC2 and SQS
Name:		aws
Version:	1.75
Release: 	4	
License:	GPLv3
Group:		Networking/Other
URL:		http://timkay.com/aws/
Source0:	%{name}-%{version}.tar.bz
Requires:	curl
BuildArch: 	noarch

%description
aws is a command line tool that gives you easy access to 
Amazon EC2, S3 and SQS.  aws is designed to be simple to
install and simple to use.

aws S3 (Simple Storage Service) allows you to create 
buckets/directories, add and remove files and list buckets.  

aws EC2 (Elastic Compute Cloud) allows you to start, 
stop, reboot, and manage EC2 virtual machines.

aws SQS (Simple Queue Service) is used to control queues. 

%prep

%setup -q

%build

%install
rm -fr %{buildroot}
install -m 755 -D aws %{buildroot}/%{_bindir}/aws
install -m 644 -D README %{buildroot}/%{_docdir}/aws/README

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root)
%doc README 
%{_bindir}/aws

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 367 |21cr|awstats-7.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced Web Statistics
Name:		awstats
Version:	7.8
Release:	1
License:	GPLv2
Group:		Networking/WWW
Url:		http://www.awstats.org
Source0:	http://prdownloads.sourceforge.net/awstats/%{name}-%{version}.tar.gz
Patch0:		CVE-2020-35176.patch
BuildRequires:	perl
Requires:	webserver
BuildArch:	noarch

%description
Advanced Web Statistics is a powerful and feature-full tool that generates
advanced web server graphic statistics. This server log analyzer works
from command line or as a CGI and shows you all information your log contains,
in graphical web pages. It can analyze a lot of web/wap/proxy servers like
Apache, IIS, Weblogic, Webstar, Squid, ... but also mail or FTP servers.

This program can measure visits, unique visitors, authenticated users, pages,
domains/countries, OS busiest times, robot visits, type of files, search
engines/keywords used, visits duration, HTTP errors and more...
Statistics can be updated from a browser or your scheduler.
The program also supports virtual servers, plugins and a lot of features.

%files
%doc docs/*
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/cron.daily/%{name}
%{_datadir}/%{name}
%{_localstatedir}/lib/%{name}

%post
if [ $1 -eq 1 ]; then
	perl -pi -e 's/SiteDomain=""/SiteDomain="'`hostname`'"/' %{_sysconfdir}/%{name}/%{name}.conf
fi

#------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
# fix perms
find . -type f -exec chmod 644 {} \;
find . -name *.pl -exec chmod 755 {} \;
rm -f  wwwroot/cgi-bin/plugins/.#geoip_city_maxmind.pm.1.8
chmod 755 docs/images docs/scripts

sed -i 's/\r$//' docs/pad_awstats.xml
sed -i 's/\r$//' docs/styles.css

%build
# nothing to build


%install
# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# Awstats configuration

Alias /awstats %{_datadir}/%{name}/www
<Directory %{_datadir}/%{name}/www>
	Require all granted
    
	Options ExecCGI
	AddHandler cgi-script .pl
	DirectoryIndex awstats.pl
</Directory>

SetEnv PERL5LIB %{_datadir}/%{name}/lib:%{_datadir}/%{name}/plugins
EOF

# cron task
install -d -m 755 %{buildroot}%{_sysconfdir}/cron.daily
cat > %{buildroot}%{_sysconfdir}/cron.daily/%{name} <<EOF
#!/bin/sh
%{_datadir}/%{name}/www/awstats.pl -config=awstats.conf -update > /dev/null
EOF
chmod 755 %{buildroot}%{_sysconfdir}/cron.daily/%{name}

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 wwwroot/cgi-bin/awstats.model.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf

perl -pi \
	-e 's|^LogFile=.*|LogFile="/var/log/httpd/access_log"|;' \
	-e 's|^DirData=.*|DirData="/var/lib/awstats"|;' \
	-e 's|^DirCgi=.*|DirCgi="/awstats"|;' \
	-e 's|^DirIcons=.*|DirIcons="/awstats/icon"|;' \
	-e 's|^MiscTrackerUrl=.*|MiscTrackerUrl="/awstats/js/awstats_misc_tracker.js"|;' \
	%{buildroot}%{_sysconfdir}/%{name}/%{name}.conf

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/%{name}/www
install -m 755 wwwroot/cgi-bin/awstats.pl %{buildroot}%{_datadir}/%{name}/www
cp -r wwwroot/icon %{buildroot}%{_datadir}/%{name}/www
cp -r wwwroot/css %{buildroot}%{_datadir}/%{name}/www
cp -r wwwroot/js %{buildroot}%{_datadir}/%{name}/www

cp -r tools %{buildroot}%{_datadir}/%{name}
cp -r wwwroot/cgi-bin/lang %{buildroot}%{_datadir}/%{name}
cp -r wwwroot/cgi-bin/lib %{buildroot}%{_datadir}/%{name}
cp -r wwwroot/cgi-bin/plugins %{buildroot}%{_datadir}/%{name}

install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}

chmod 755 %{buildroot}%{_datadir}/{awstats/lang,awstats/www/icon/browser,awstats/lib,awstats/tools,awstats/tools/webmin,awstats/tools/nginx,awstats/www/icon/flags,awstats/www/icon/other,awstats/www/css,awstats/www/icon/cpu,awstats/www/icon/mime,awstats/tools/xslt,awstats/plugins/example,awstats/plugins,awstats/www/icon/clock,awstats/www/icon/os,awstats/www/icon,awstats/www/js,awstats/lang/tooltips_f,awstats/lang/tooltips_w,awstats/lang/tooltips_m}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 368 |21cr|ax25-0.0.12-0.rc2.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prerel rc2

%define major 0
%define libname %mklibname %{name}_ %{major}
%define libnameio %mklibname %{name}io %{major}
%define devname %mklibname %{name} -d

Summary:	Libraries for Amateur AX25
Name:		ax25
Version:	0.0.12
Release:	0.%{prerel}.5
License:	LGPLv2+
Group:		Communications
Url:		http://www.linux-ax25.org/wiki/LinuxAX25
Source0:	http://www.linux-ax25.org/pub/libax25/lib%{name}-%{version}-%{prerel}.tar.gz
BuildRequires:	pkgconfig(zlib)

%description
Libraries for Amateur AX25.

This package is split off from the previous ax25-utils.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for Amateur AX25
Group:		System/Libraries
Provides:	libax25 = %{EVRD}

%description -n %{libname}
Shared library for Amateur AX25.

%files -n %{libname}
%doc README ChangeLog AUTHORS NEWS
%{_libdir}/libax25.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameio}
Summary:	Shared library for Amateur AX25
Group:		System/Libraries
Conflicts:	%{_lib}ax25_0 < 0.0.12-0.rc2.4

%description -n %{libnameio}
Shared library for Amateur AX25.

%files -n %{libnameio}
%doc README ChangeLog AUTHORS NEWS
%{_libdir}/libax25io.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnameio} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libax25-devel = %{EVRD}
Conflicts:	%{_lib}ax25_0 < 0.0.12-0.rc2.4
Conflicts:	%{_lib}ax25_0-devel < 0.0.12-0.rc2.4
Obsoletes:	%{_lib}ax25_0-devel < 0.0.12-0.rc2.4

%description -n %{devname}
Development package for %{name}.
This package is split off from the previous ax25-utils.

%files -n %{devname}
%{_libdir}/*.so
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_includedir}/netax25/*

#----------------------------------------------------------------------------

%prep
%setup -q -n lib%{name}-%{version}-%{prerel}

%build
%configure \
	--disable-static
#fix build
sed -i -e 's|LIBS =|LIBS = -lz|' Makefile

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 369 |21cr|ax25spyd-0.23-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ax25spyd
Summary:	Daemon that listens for AX.25 packets from the kernel-AX.25
Version:	0.23
Release:	20
Source:		http://linkt.de/ax25spyd/%{name}-%{version}.tar.gz
# From Debian: fixes build - AdamW 2008/01
Patch0:		ax25spyd-0.23-build.patch
Patch1:		ax25spyd-0.23-str_fmt.patch
Group:		System/Servers
URL:		http://linkt.de/ax25spyd/
License:	GPLv2+
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	ax25-devel

%description
This is ax25spyd (formerly known as monixd), a daemon that listens
for AX.25 packets from the kernel-AX.25. These packets are decoded
(like listen(1)) but not displayed on the screen.

Other programs can connect to ax25spyd via sockets and issue commands.
They will get all heard AX.25-packets in a human-readable format, an
mheard structure, DX-cluster messages or spydata.

%prep
%setup -q
%patch0 -p1 -b .build
%patch1 -p0 -b .strfmt
%build
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%_sysconfdir/ax25
mv %{buildroot}/%{_prefix}/etc/ax25/* %{buildroot}/%{_sysconfdir}/ax25/

#doc cleaning
rm -f examples/Makefile*

%files
%defattr(-,root,root)
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/*/*
%{_sysconfdir}/ax25/*
%doc AUTHORS BUGS ChangeLog INSTALL README examples

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 370 |21cr|axel-2.17.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight download accelerator
Name:		axel
Version:	2.17.11
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://github.com/axel-download-accelerator/axel
Source0:	https://github.com/axel-download-accelerator/axel/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(openssl)

%description
Axel tries to accelerate the downloading process by using multiple connections
for one file. It can use multiple mirrors for one download as well.
The program tries to be as light as possible, so it might be useful as a wget
clone on byte-critical systems.

%files -f %{name}.lang
%license COPYING
%doc ChangeLog README.md
%config(noreplace) %{_sysconfdir}/axelrc
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

# Use the sample config file as default
install -d -m 0755 %{buildroot}%{_sysconfdir}
install -m 0644 doc/axelrc.example %{buildroot}%{_sysconfdir}/axelrc

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 371 |21cr|axssh-0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Secure login with linemode and ssh
Name:		axssh
Version:	0.4
Release:	5
License:	GPLv2+
Group:		Communications
Url:		http://tools.assembla.com/svn/hamradio
Source0:	axssh-%{version}.tar.gz
Requires:	openssh-clients

%description
Axssh is a linemode wrapper for SSH via Amateur Packet Radio links.

%files
%doc README
%{_bindir}/axssh

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
install -d -m 755 %{buildroot}/%{_bindir}
install -d -m 755 %{buildroot}/%{_docdir}/%{name}
install -m 755 axssh %{buildroot}/%{_bindir}/
install -m 644 README %{buildroot}/%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 372 |21cr|ayatana-ido-0.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# https://github.com/AyatanaIndicators/ayatana-ido/issues/39
%global ldflags %{ldflags} %(pkg-config --libs gtk+-3.0 || :) -lm

%define major 0
%define api 0.4
%define libname %mklibname libayatana-ido3-%{api} %{major}
%define devname %mklibname libayatana-ido3-%{api} -d
%define girname %mklibname ayatanaido3-gir %{api}

# XXX debugsourcefiles.list is empty, maybe cmake is misconfigured
%define debug_package %{nil}
%global debugcflags %{nil}

Summary:	Ayatana Indicator Display Objects
Name:		ayatana-ido
Version:	0.10.1
Release:	1
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/AyatanaIndicators/ayatana-ido
Source0:	https://github.com/AyatanaIndicators/ayatana-ido/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	gtk-doc
BuildRequires:	gobject-introspection-devel
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
%{summary}

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Ayatana Indicator Display Objects library, API %{api}
Group:		System/Libraries

%description -n %{libname}
Ayatana Indicator Display Objects library, API %{api}

%files -n %{libname}
%{_libdir}/libayatana-ido3-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{girname}
Summary:	Ayatana Indicator Display Objects gir
Group:		System/Libraries

%description -n %{girname}
Ayatana Indicator Display Objects gir

%files -n %{girname}
%{_libdir}/girepository-1.0/AyatanaIdo3-%{api}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Ayatana Indicator Display Objects library development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Ayatana Indicator Display Objects library development files

%files -n %{devname}
%{_libdir}/libayatana-ido3-%{api}.so
%{_libdir}/pkgconfig/libayatana-ido3-%{api}.pc
%{_includedir}/libayatana-ido3-%{api}
%{_datadir}/gir-1.0/AyatanaIdo3-%{api}.gir
%{_datadir}/vala/vapi/libayatana-ido3-0.4.vapi

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 373 |21cr|b43-firmware-784.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages  %{nil}
%define debug_package           %{nil}

Name:           b43-firmware
Version:        784.2
Release:        3
Summary:        Firmware for Broadcom wireless devices

Group:          System/Configuration/Networking
License:        Proprietary
URL:            http://www.lwfinger.com/b43-firmware/
Source0:        http://www.lwfinger.com/b43-firmware/broadcom-wl-6.30.163.46.tar.bz2

BuildArch:      noarch

BuildRequires:  b43-fwcutter >= 018

%description
Firmware for Broadcom wireless devices.
This firmware version can be extracted from the GPL tarball for the ASUS
GPL code for the RT-AC66U 802.11ac Dual-Band Wireless-AC1750 Gigabit Router
http://dlcdnet.asus.com/pub/ASUS/wireless/RT-AC66U/GPL_RT_AC66U_3004372.zip

%prep
%setup -q -c

%build
b43-fwcutter -w . broadcom-wl-6.30.163.46.wl_apsta.o

%install
mkdir -p %{buildroot}/lib/firmware/
cp -r b43 %{buildroot}/lib/firmware/

%files
/lib/firmware/b43/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 374 |21cr|b5i2iso-0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		b5i2iso
Version:	0.2
Release:	9
Summary:	Convert Blindwrite CD Images to ISO
Source:		%{name}-%{version}.tar.bz2
URL:		http://developer.berlios.de/projects/b5i2iso/
License:	GPL
Group:		Archiving/Other


%description 
B5I2ISO is a very simple utility to 
convert an BlindWrite image to the 
standard ISO-9660 format.

Usage: b5i2iso image.b5i <image.iso>

%prep
%setup -q
chmod 644 CHANGELOG

%build
gcc %optflags ./src/b5i2iso.c -o b5i2iso

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install b5i2iso %{buildroot}%{_bindir}/b5i2iso

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGELOG
%{_bindir}/b5i2iso

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 375 |21cr|babe-1.2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tiny Qt Music Player
Name:		babe
Version:	1.2.1
Release:	5
License:	LGPLv2+
Group:		Sound
Url:		https://github.com/KDE/babe
Source0:	https://download.kde.org/stable/babe/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		babe-1.2.1-cmake_locale.patch
Patch1:		babe-1.2.1-i18n_locale.patch
Patch2:		babe-1.2.1-russian_locale.patch
BuildRequires:	gettext
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel >= 5.24.0
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(taglib)

%description
Babe will handle your whole music collection, letting you create custom
playlists to organize your music.

%files -f %{name}.lang
%doc COPYING README.md
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.svg
%{_appdatadir}/org.kde.%{name}.appdata.xml

#--------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
export LDFLAGS="%{ldflags} -ltag"
%cmake_kde5

%make


%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 376 |21cr|backintime-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Backup tool for Linux
Name:		backintime
Version:	1.5.2
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
Url:		https://github.com/bit-team/backintime
Source0:	https://github.com/bit-team/backintime/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source100:	backintime.rpmlintrc
Patch0:		backintime-1.4.3-fix-python-shebangs.patch
BuildRequires:	gettext
BuildRequires:	python3 >= 3.3
BuildArch:	noarch

%description
Back In Time is a simple backup tool for Linux inspired from Flyback project
and TimeVault.

#----------------------------------------------------------------------------

%package common
Summary:	Back Up Tool for Linux
Group:		Archiving/Backup
Requires:	cron-daemon
Requires:	cronie
Requires:	openssh-clients
Requires:	python3
Requires:	python3-dbus
Requires:	python3-keyring
Requires:	rsync
Recommends:	encfs
Recommends:	sshfs-fuse

%description common
Common files for Back In Time.

%files common -f %{name}.lang
%doc %{_datadir}/doc/%{name}/
%{_bindir}/%{name}
%{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_bindir}/%{name}-askpass
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/plugins
%{_datadir}/%{name}/common/
%{_datadir}/%{name}/plugins/usercallbackplugin.py
%{_datadir}/%{name}/plugins/__pycache__/usercallbackplugin*
%{_datadir}/metainfo/io.github.bit_team.back_in_time.gui.metainfo.xml
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-askpass.1.*
%{_mandir}/man1/%{name}-config.1.*
%{_datadir}/bash-completion/completions/%{name}

#----------------------------------------------------------------------------

%package qt
Summary:	Qt5 front-end for Back In Time
Group:		Archiving/Backup
Requires:	%{name}-common = %{EVRD}
Requires:	libnotify
Requires:	polkit
Requires:	python3-keyring
Requires:	python3-qt5
Requires:	python3-secretstorage
Requires:	python3-sip
Requires:	x11-tools
Recommends:		kompare
Recommends:		meld
%rename backintime-kde4
%rename backintime-gnome
%rename backintime-notify
%rename backintime-qt4

%description qt
Qt5 GUI front-end for Back In Time.

%files qt
%doc %{_docdir}/%{name}-qt/
%{_bindir}/%{name}-qt
%{_bindir}/%{name}-qt-root
%{_bindir}/%{name}-qt_polkit
%{_sbindir}/%{name}-qt-root
%config(noreplace) %{_sysconfdir}/pam.d/%{name}-qt-root
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}-qt-root
%{_datadir}/dbus-1/system-services/net.launchpad.%{name}.serviceHelper.service
%{_datadir}/polkit-1/actions/net.launchpad.%{name}.policy
%{_datadir}/applications/%{name}-qt.desktop
%{_datadir}/applications/%{name}-qt-root.desktop
%{_datadir}/%{name}/qt/
%{_datadir}/%{name}/plugins/notifyplugin.py
%{_datadir}/%{name}/plugins/systrayiconplugin.py
%{_datadir}/%{name}/plugins/__pycache__
%{_datadir}/bash-completion/completions/backintime-qt
%{_datadir}/dbus-1/system.d/net.launchpad.%{name}.serviceHelper.conf
%{_iconsdir}/hicolor/*/actions/*.svg
%{_mandir}/man1/%{name}-qt.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix documentation directories.
sed -i -e "s|'%{name}-common'|'%{name}'|g" common/config.py
sed -i -e "s|%{name}-common|%{name}|g" common/configure qt/configure


%build
pushd common
	./configure --no-fuse-group --python3
	%make
popd

pushd qt
	./configure --python3
	%make
popd


%install
pushd common
	%makeinstall_std
popd

pushd qt
	%makeinstall_std
popd

# Manually invoke the python byte compile macro for each path that needs byte
# compilation.
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}/qt

# Provide all the machinery needed for running backintime as root, using polkit
desktop-file-edit \
	--set-key=Exec --set-value="pkexec %{_bindir}/backintime-qt" \
	--add-category="KDE;GNOME;Settings" \
	%{buildroot}%{_datadir}/applications/%{name}-qt-root.desktop

mkdir -p %{buildroot}%{_sbindir}
cp -p %{buildroot}%{_bindir}/%{name}-qt %{buildroot}%{_sbindir}/%{name}-qt-root

ln -s consolehelper %{buildroot}%{_bindir}/%{name}-qt-root

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps/

cat << EOF > %{buildroot}%{_sysconfdir}/security/console.apps/%{name}-qt-root
USER=root
PROGRAM=%{_sbindir}/%{name}-qt-root
SESSION=true
EOF

mkdir -p %{buildroot}%{_sysconfdir}/pam.d

cat << EOF > %{buildroot}%{_sysconfdir}/pam.d/%{name}-qt-root
#%PAM-1.0
auth            include         config-util
account         include         config-util
session         include         config-util
EOF

# Fix perms
chmod -x %{buildroot}%{_datadir}/%{name}/common/askpass.py
#chmod -x %%{buildroot}%%{_datadir}/%%{name}/common/create-manpage-backintime-config.py
chmod +x %{buildroot}%{_datadir}/%{name}/common/bcolors.py
chmod +x %{buildroot}%{_datadir}/%{name}/common/sshMaxArg.py

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 377 |21cr|backupninja-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight, extensible meta-backup system
Name:		backupninja
Version:	1.2.1
Release:	1
License:	GPLv2
Group:		Archiving/Backup
Url:		https://0xacab.org/liberate/backupninja
Source0:	https://0xacab.org/liberate/backupninja/-/archive/%{name}-%{version}/%{name}-%{name}-%{version}.tar.gz
Requires:	dialog
Requires(post): rpm-helper
BuildArch:	noarch

%description
Backupninja lets you drop simple config files in /etc/backup.d to coordinate
system backups. Backupninja is a master of many arts, including incremental
remote filesystem backup, MySQL backup, and ldap backup. By creating simple
drop-in handler scripts, backupninja can learn new skills. Backupninja is a
silent flower blossom death strike to lost data.

In addition to backing up regular files, Backupninja has handlers to ease
backing up: ldap, maildir, MySQL, PostgreSQL, svn, trac, and the output from
shell scripts.

Backupninja currently supports common backup utilities, easing their
configuration, currently supported are: rdiff-backup, duplicity, CD/DVD

%files
%doc AUTHORS COPYING NEWS TODO
%config %{_sysconfdir}/cron.d/backupninja
%config %{_sysconfdir}/logrotate.d/backupninja
%config(noreplace) %{_sysconfdir}/backupninja.conf
%attr(0750,root,root) %dir %{_sysconfdir}/backup.d
%{_sbindir}/*
%{_datadir}/backupninja
%{_prefix}/lib/backupninja
%attr(0750,root,root) %dir /var/backups
%attr(0750,root,root) %dir /var/lib/backupninja
%attr(0750,root,root) %dir /var/lib/backupninja/reports
%ghost /var/log/backupninja.log
%{_mandir}/man1/*
%{_mandir}/man5/*

%post
%create_ghostfile /var/log/backupninja.log root root 644

#------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

%build
autoreconf -fis
%configure \
    --libdir=%{_prefix}/lib \
    --localstatedir=/var
%make

%install
%makeinstall_std
install -d %{buildroot}%{_sysconfdir}/backup.d
install -d %{buildroot}/var/backups
install -d %{buildroot}/var/log
install -d %{buildroot}/var/lib/backupninja/reports
touch %{buildroot}/var/log/backupninja.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 378 |21cr|backuponcd-0.9.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define summary		Multi-CD backup shell scripts
%define group		Archiving/Backup

Name:		backuponcd
Summary:	Multi-CD backup shell scripts
Version:	0.9.1
Release:	15
License:	GPL
Group:		Archiving/Backup
URL:		http://www.tuxoncd.de/backuponcd/pub/backuponcd.html/
Source:		%{name}.tar.bz2
Patch1:		%{name}-rcmod.patch.bz2
Patch2:		%{name}-doc.patch.bz2

BuildArch:	noarch

%description
BackupOnCd is a set of shell scripts which make multi-volume backups on CD-RW
possible.  It also makes the backup faster using cdrecord in a parallel
subshell and minimizes the amount of temporary needed disk space.  Currently
supported: tar and afio.

Be sure to modify /etc/backuponcd/global.rc to suit your system!


%prep

%setup -c -q


# (pc) another dirty hack to clean out some temp files
for i in `find $RPM_BUILD_DIR/%name-%version -path '*~'`; do rm -f $i; done

# (pc) modify global.rc for more of a typical mdk setup
%patch1 -p0
# (pc) patch for documentation locations in backuponcd help message
%patch2 -p0


%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

mkdir -p %{buildroot}{%{_sbindir},%{_sysconfdir}/%{name}}
cp $RPM_BUILD_DIR/%name-%version/usr/local/sbin/* %{buildroot}%{_sbindir}
cp $RPM_BUILD_DIR/%name-%version/etc/%{name}/global.rc %{buildroot}%{_sysconfdir}/%{name}
cp $RPM_BUILD_DIR/%name-%version/usr/doc/%{name}/samples/excludelist %{buildroot}%{_sysconfdir}/%{name}

chmod 755 %{buildroot}%{_sbindir}/*

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/*


%files
%defattr(-,root,root)
%doc usr/doc/backuponcd/*
%{_sbindir}/*
%dir %{_sysconfdir}/%{name}
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/global.rc
%config(noreplace) %{_sysconfdir}/%{name}/excludelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 379 |21cr|backuppc-3.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Name    BackupPC
%define debug_package %{nil}

%global __requires_exclude perl\\(BackupPC::.*\\)
%global __provides_exclude perl\\(BackupPC::.*\\)

Name:               backuppc
Version:            3.3.1
Release:            3
Summary:            High-performance, enterprise-grade backup system

Group:              Archiving/Backup
License:            GPLv2
Url:                http://backuppc.sourceforge.net
Source0:            http://sourceforge.net/projects/backuppc/files/backuppc/%{version}/%{Name}-%{version}.tar.gz
Source3:	    BackupPC_Admin.c
Source4:	    backuppc.service
Source5:	    backuppc.tmpfiles
Patch1:         BackupPC-3.2.1-rundir.patch
Patch2:         BackupPC-3.2.1-piddir.patch
Patch3:         BackupPC-3.3.0-fix-shadow-access.patch
Requires:           sendmail-command
Requires:           apache
Requires(post):     rpm-helper
Requires(preun):    rpm-helper
Recommends:           openssh-clients
Recommends:           samba-client
Recommends:           perl(File::RsyncP)

%description
BackupPC is a high-performance, enterprise-grade system
for backing up Linux, Win32, and laptops to a server's disk.
Features include clever pooling of identical files, no client-side 
software, and a powerful Apache/CGI user interface. 

%prep
%setup -q -n %{Name}-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1

rm -rf images/CVS
# fix file perms
find lib -type f -exec chmod 644 {} \;
find bin -type f -exec chmod 755 {} \;
find doc -type f -exec chmod 644 {} \;
find . -maxdepth 1 -type f -exec chmod 644 {} \;
# fix perl shellbang
find . -type f -exec perl -pi -e 's|^#!/bin/perl|#!/usr/bin/perl|' {} \;

%build
gcc %SOURCE3 -o BackupPC_Admin
# set installation directory
find . -type f -exec perl -pi -e 's|__INSTALLDIR__|%{_datadir}/%{name}|' {} \;
find . -type f -exec perl -pi -e 's|__TOPDIR__|%{_localstatedir}/lib/%{name}|' {} \;
# set configuration
# the binaries path are disabled to avoid service failure at start
perl -pi \
    -e 's|^\$Conf{BackupPCUser}.*|\$Conf{BackupPCUser} = "%{name}";|;' \
    -e 's|^\$Conf{CgiDir}.*|\$Conf{CgiDir} = "%{_var}/www/%{name}";|;' \
    -e 's|^\$Conf{InstallDir}.*|\$Conf{InstallDir} = "%{_datadir}/%{name}";|;' \
    -e 's|^\$Conf{CgiImageDirURL}.*|\$Conf{CgiImageDirURL} = "/%{name}";|;' \
    -e 's|^\$Conf{SshPath}.*|\$Conf{SshPath} = "/usr/bin/ssh";|;' \
    -e 's|^\$Conf{SmbClientPath}.*|\$Conf{SmbClientPath} = "/usr/bin/smbclient";|;' \
    -e 's|^\$Conf{NmbLookupPath}.*|\$Conf{NmbLookupPath} = "/usr/bin/nmblookup";|;' \
    -e 's|^\$Conf{PingPath}.*|\$Conf{PingPath} = "/bin/ping";|;' \
    -e 's|^\$Conf{DfPath}.*|\$Conf{DfPath} = "/bin/df";|;' \
    -e 's|^\$Conf{SplitPath}.*|\$Conf{SplitPath} = "/usr/bin/split";|;' \
    -e 's|^\$Conf{CatPath}.*|\$Conf{CatPath} = "/bin/cat";|;' \
    -e 's|^\$Conf{GzipPath}.*|\$Conf{GzipPath} = "/bin/gzip";|;' \
    -e 's|^\$Conf{Bzip2Path}.*|\$Conf{Bzip2Path} = "/usr/bin/bzip2";|;' \
    -e 's|^\$Conf{SendmailPath}.*|\$Conf{SendmailPath} = "/usr/sbin/sendmail";|;' \
    -e 's|^\$Conf{ServerInitdPath}.*|\$Conf{ServerInitdPath} = "%{_initrddir}/%{name}";|;' \
    -e 's|^\$Conf{BackupPCdPath}.*|\$Conf{BackupPCdPath} = "%{_datadir}/%{name}/bin/BackupPC";|;' \
    -e 's|^\$Conf{TarClientPath}.*|\$Conf{TarClientPath} = "/bin/tar";|;' \
    -e 's|^\$Conf{RsyncClientPath}.*|\$Conf{RsyncClientPath} = "/usr/bin/rsync";|;' \
    -e 's|^\$Conf{TopDir}.*|\$Conf{TopDir} = "/var/lib/backuppc";|;' \
    conf/config.pl

%install
# constant files
install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -pr lib %{buildroot}%{_datadir}/%{name}
cp -pr bin %{buildroot}%{_datadir}/%{name}
cp -pr doc %{buildroot}%{_datadir}/%{name}

# web files
install -d -m 755 %{buildroot}%{_var}/www/%{name}
install -m 644 images/* %{buildroot}%{_var}/www/%{name}
install -m 644 conf/*.css %{buildroot}%{_var}/www/%{name}
install -m 644 conf/*.js %{buildroot}%{_var}/www/%{name}
install -m 755 cgi-bin/BackupPC_Admin %{buildroot}%{_var}/www/%{name}/BackupPC_Admin.cgi

# variable files
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/{cpool,log,pc,pool,trash}

# perl-suidperl is no longer avaialable, use a C wrapper
install -m 4755 BackupPC_Admin %{buildroot}%{_var}/www/%{name}

# configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 conf/{hosts,config.pl} %{buildroot}%{_sysconfdir}/%{name}

# systemd
install -m 644 -D %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service
install -m 644 -D %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# logs
install -d -m 755 %{buildroot}%{_var}/log/%{name}

# strip binary
%{__strip} %{buildroot}/var/www/%{name}/BackupPC_Admin

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# BackupPC Apache configuration
Alias /%{name} %{_var}/www/%{name}

<Directory %{_var}/www/%{name}>
    Require all granted
    Options ExecCGI
    <Files BackupPC_Admin>
        SetHandler cgi-script
    </Files>
    DirectoryIndex BackupPC_Admin
</Directory>
EOF

cat > README.omv <<EOF
%{_distribution} RPM specific notes

Setup
-----
The %{_distribution} setup improves the FHS compliance wrt. that used upstream:
- /var/www/backuppc    ... files accessible from the web
- /usr/share/backuppc  ... files non-accessible from the web
- /var/lib/backuppc    ... files with varibales
- /etc/backuppc        ... both global and per-host configuration files

Backuppc user; backup-data
--------------------------
Backup-data stored in another file-system can be made accessible to backuppc
by creating a soft link from /var/www/lib to the root of the backup-data
hierarchy. If backuppc is uninstalled (urpme backuppc), this data will not
be deleted - with the exception of a cpool directory that is empty; when,
subsequently, backuppc is newly installed, cpool must be manually created
(with uid:gid = backuppc:backkuppc).

To make backuppc access backup-data that exist prior to installing backkuppc,
make sure that the user "backuppc" exists BEFORE the package is installed, and
that its uid and gid matches the ownership of that data (otherwise the
package would automatically create the user with random uid and gid values).

Lighttpd server definition
--------------------------
When using lighttpd, the following definition in /etc/lighttpd/lighttpd.conf
should work:
    $HTTP["url"] =~ "^/backuppc" {
	server.document-root = "/var/www/backuppc"
	cgi.assign = ( "BackupPC_Admin" => "" )
	index-file.names = ( "BackupPC_Admin" )
	alias.url = ( "/backuppc" => "/var/www/backuppc" )
	dir-listing.activate = "disable"
	$HTTP["remoteip"] != "127.0.0.1" { 
	    auth.backend = "htpasswd"
	    auth.backend.htpasswd.userfile = "<password-dir>/passwd/backuppc"
	    auth.require += ( "" => (	"method" => "basic",
					"realm" => "BackupPC",
					"require" => "valid-user" ) )
	}
    }
<password-dir> is the directory where you keep the passwords for your server;
the suggested definition does not require authentication if the backuppc gui
is invoked from the machine that hosts the lighttpd server
EOF


%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/sh

%post
%tmpfiles_create %{name}
%_post_service %{name}

%preun
%_preun_service %{name}
if [ $1 -ne 0 ] ; then
# previous releases of backuppc had root as the owner - undo this fault
  chown backuppc:backuppc %{_sysconfdir}/%{name}
fi

%postun
%_postun_userdel %{name}

%files
%doc ChangeLog README LICENSE doc/* README.omv
# backuppc must be able to edit the config file and create backup files
%config(noreplace) %attr(0755,backuppc,backuppc) %{_sysconfdir}/%{name}
#% config(noreplace) %attr(0640,backuppc,backuppc) %{_sysconfdir}/%{name}/*
%config(noreplace) %{_webappconfdir}/%{name}.conf
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%{_datadir}/%{name}
#note: globbings like [^B]* or !(BackupPC*) don't work
%{_var}/www/%{name}/*.gif
%{_var}/www/%{name}/*.png
%{_var}/www/%{name}/*.css
%{_var}/www/%{name}/*.js
%{_var}/www/%{name}/*.ico
%attr(-,backuppc,backuppc) %{_var}/www/%{name}/BackupPC_Admin.cgi
%attr(-,backuppc,backuppc) %{_var}/www/%{name}/BackupPC_Admin
%attr(-,backuppc,backuppc) %{_var}/log/%{name}
%attr(-,backuppc,backuppc) %{_localstatedir}/lib/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 380 |21cr|bacula-11.0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} %{version}
%define devname %mklibname -d %{name}

# This package has unversioned libraries, do not feed them to devel-rpm-generators to avoid pulling not needed devel() deps
# TODO: relocate these libraries into /usr/lib64/bacula/
%define devel_files %{_libdir}/libbac.so %{_libdir}/libbaccfg.so %{_libdir}/libbacfind.so %{_libdir}/libbacsd.so %{_libdir}/libbacsql.so
%define __develgen_path %(echo "%{devel_files}" | tr ' ' '|')

Summary:	Cross platform network backup for Linux, Unix, Mac and Windows
Name:		bacula
Version:	11.0.6
Release:	2
License:	AGPLv3
Group:		Archiving/Backup
Url:		http://www.bacula.org
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	bacula.rpmlintrc
Source2:	quickstart_postgresql.txt
Source3:	quickstart_mysql.txt
Source4:	quickstart_sqlite3.txt
Source5:	README
Source6:	%{name}.logrotate
Source10:	%{name}-fd.service
Source11:	%{name}-dir.service
Source12:	%{name}-sd.service
Source13:	%{name}-bat.desktop
Source14:	%{name}-traymonitor.desktop
Source15:	%{name}-fd.sysconfig
Source16:	%{name}-dir.sysconfig
Source17:	%{name}-sd.sysconfig
Source18:	bacula.sysusers.conf
# Original patch removed by mistake, upstream is not willing to add it again:
# http://www.bacula.org/git/cgit.cgi/bacula/commit/?h=Branch-7.0&id=51b3b98fb77ab3c0decee455cc6c4d2eb3c5303a
# Without this, there is no library providing the correct shared object name
# required by the daemons.
# http://bugs.bacula.org/view.php?id=2084
Patch0:		bacula-7.0.4-autoconf.patch
Patch1:		bacula-9.4.4-openssl.patch
Patch2:		bacula-11.0.6-queryfile.patch
Patch3:		bacula-9.4.4-sqlite-priv.patch
Patch4:		bacula-11.0.6-bat-build.patch
Patch5:		bacula-9.4.4-seg-fault.patch
Patch6:		bacula-5.2.13-logwatch.patch
Patch7:		bacula-non-free-code.patch
BuildRequires:	desktop-file-utils
BuildRequires:	perl
BuildRequires:	sed
BuildRequires:	systemd
BuildRequires:	glibc-devel
BuildRequires:	readline-devel
BuildRequires:	qt5-devel
BuildRequires:	stdc++-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(libacl)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libecpg)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(mariadb)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

%description
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture and is efficient and relatively easy to
use, while offering many advanced storage management features that make it easy
to find and recover lost or damaged files.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Bacula libraries
Group:		Archiving/Backup
Conflicts:	%{name}-dir-sql < 9.4.4-2

%description -n %{libname}
Bacula is a set of programs that allow you to manage the backup,
recovery, and verification of computer data across a network of
different computers. It is based on a client/server architecture.

This package contains basic Bacula libraries, which are used by all
Bacula programs.

%files -n %{libname}
%doc AUTHORS ChangeLog LICENSE SUPPORT ReleaseNotes
%{_libdir}/libbac-%{version}.so
%{_libdir}/libbaccfg-%{version}.so
%{_libdir}/libbacfind-%{version}.so
%{_libdir}/libbacsd-%{version}.so
%{_libdir}/libbacsql-%{version}.so

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Bacula development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-dir-sql = %{EVRD}

%description -n %{devname}
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This development package contains static libraries and header files.

%files -n %{devname}
%license LICENSE
%{_includedir}/%{name}
%(echo "%{devel_files}" | tr ' ' '\n')

#------------------------------------------------------------------

%package dir-sql
Summary:	Bacula SQL libraries
Group:		Archiving/Backup
Requires(post,preun): /usr/sbin/alternatives
Provides:	%{name}-dir-mysql = %{EVRD}
Provides:	%{name}-dir-sqlite = %{EVRD}
Provides:	%{name}-dir-postgresql = %{EVRD}

%description dir-sql
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This package contains the SQL Bacula libraries, which are used by Director and
Storage daemons. You have to select your preferred catalog library through the
alternatives system.

%files dir-sql
%license LICENSE
%ghost %{_libdir}/libbaccats-%{version}.so
%ghost %{_libdir}/libbaccats.so
%{_libdir}/libbaccats-mysql-%{version}.so
%{_libdir}/libbaccats-mysql.so
%{_libdir}/libbaccats-postgresql-%{version}.so
%{_libdir}/libbaccats-postgresql.so
%{_libdir}/libbaccats-sqlite3-%{version}.so
%{_libdir}/libbaccats-sqlite3.so


%post dir-sql
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-mysql.so 50
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-sqlite3.so 40
/usr/sbin/alternatives --install %{_libdir}/libbaccats.so libbaccats.so %{_libdir}/libbaccats-postgresql.so 60
/usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-mysql.so 50
/usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-sqlite3.so 40
/usr/sbin/alternatives --install %{_libdir}/libbaccats-%{version}.so libbaccats-%{version}.so %{_libdir}/libbaccats-postgresql.so 60
# Fix for automatic selection of backends during upgrades
if readlink /etc/alternatives/libbaccats.so | grep --silent mysql || \
	readlink /etc/alternatives/%{name}-dir | grep --silent mysql || \
	readlink /etc/alternatives/%{name}-sd | grep --silent mysql; then
		/usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-mysql.so
        /usr/sbin/alternatives --set libbaccats-%{version}.so %{_libdir}/libbaccats-mysql.so
elif readlink /etc/alternatives/libbaccats.so | grep --silent sqlite || \
	readlink /etc/alternatives/%{name}-dir | grep --silent sqlite || \
	readlink /etc/alternatives/%{name}-sd | grep --silent sqlite; then
		/usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-sqlite3.so
        /usr/sbin/alternatives --set libbaccats-%{version}.so %{_libdir}/libbaccats-sqlite3.so
else
	/usr/sbin/alternatives --set libbaccats.so %{_libdir}/libbaccats-postgresql.so
    /usr/sbin/alternatives --set libbaccats-%{version}.so %{_libdir}/libbaccats-postgresql.so
fi

%preun dir-sql
if [ "$1" = 0 ]; then
	/usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-mysql.so
	/usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-sqlite3.so
	/usr/sbin/alternatives --remove libbaccats.so %{_libdir}/libbaccats-postgresql.so
	/usr/sbin/alternatives --remove libbaccats-%{version}.so %{_libdir}/libbaccats-mysql.so
	/usr/sbin/alternatives --remove libbaccats-%{version}.so %{_libdir}/libbaccats-sqlite3.so
	/usr/sbin/alternatives --remove libbaccats-%{version}.so %{_libdir}/libbaccats-postgresql.so
fi

#------------------------------------------------------------------

%package common
Summary:	Common Bacula files
Group:		Archiving/Backup
Provides:	%{name}-common = %{EVRD}
Requires:	%{libname} = %{EVRD}
Recommends:	logrotate
Requires(pre):  /bin/systemd-sysusers

%description common
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This package contains files common to all Bacula daemons.

%files common
%doc README quickstart_*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{_localstatedir}/log/%{name} %attr(750, %{name}, %{name})
%dir %{_localstatedir}/spool/%{name} %attr(750, %{name}, %{name})
%dir %{_libdir}/%{name}
%dir %{_libexecdir}/%{name}
%dir %{_sysconfdir}/%{name} %attr(755,root,root)
%{_libexecdir}/%{name}/btraceback.dbx
%{_libexecdir}/%{name}/btraceback.gdb
%{_libexecdir}/%{name}/%{name}_config
%{_libexecdir}/%{name}/btraceback.mdb
%{_mandir}/man8/btraceback.8*
%{_sbindir}/btraceback
%{_sbindir}/*json
%{_sysusersdir}/bacula.conf

%pre common
%sysusers_create_package bacula %{SOURCE18}

#------------------------------------------------------------------

%package dir-common
Summary:	Bacula Director files
Group:		Archiving/Backup
Requires:	%{name}-common = %{EVRD}
# for %%attr
Requires(pre):	%{name}-common = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-dir-sql = %{EVRD}
Requires:	logwatch
# Director backends merged into core.
Provides:	%{name}-dir-common = %{EVRD}
Provides:	%{name}-dir-mysql = %{EVRD}
Provides:	%{name}-dir-sqlite3 = %{EVRD}
Provides:	%{name}-dir-pgsql = %{EVRD}

%description dir-common
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This package contains the director files.

%files dir-common
%doc updatedb examples/sample-query.sql
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-dir.conf %attr(640,root,%{name})
%config(noreplace) %{_sysconfdir}/%{name}/query.sql %attr(640,root,%{name})
%config(noreplace) %{_sysconfdir}/logwatch/conf/logfiles/%{name}.conf
%config(noreplace) %{_sysconfdir}/logwatch/conf/services/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-dir
%{_libexecdir}/%{name}/%{name}backupreport
%{_libexecdir}/%{name}/create_%{name}_database
%{_libexecdir}/%{name}/delete_catalog_backup
%{_libexecdir}/%{name}/drop_%{name}_database
%{_libexecdir}/%{name}/drop_%{name}_tables
%{_libexecdir}/%{name}/grant_%{name}_privileges
%{_libexecdir}/%{name}/isworm
%{_libexecdir}/%{name}/make_%{name}_tables
%{_libexecdir}/%{name}/make_catalog_backup.pl
%{_libexecdir}/%{name}/tapealert
%{_libexecdir}/%{name}/update_%{name}_tables
%{_libexecdir}/%{name}/create_mysql_database
%{_libexecdir}/%{name}/drop_mysql_database
%{_libexecdir}/%{name}/drop_mysql_tables
%{_libexecdir}/%{name}/grant_mysql_privileges
%{_libexecdir}/%{name}/make_mysql_tables
%{_libexecdir}/%{name}/update_mysql_tables
%{_libexecdir}/%{name}/create_sqlite3_database
%{_libexecdir}/%{name}/drop_sqlite3_database
%{_libexecdir}/%{name}/drop_sqlite3_tables
%{_libexecdir}/%{name}/grant_sqlite3_privileges
%{_libexecdir}/%{name}/make_sqlite3_tables
%{_libexecdir}/%{name}/update_sqlite3_tables
%{_libexecdir}/%{name}/create_postgresql_database
%{_libexecdir}/%{name}/drop_postgresql_database
%{_libexecdir}/%{name}/drop_postgresql_tables
%{_libexecdir}/%{name}/grant_postgresql_privileges
%{_libexecdir}/%{name}/make_postgresql_tables
%{_libexecdir}/%{name}/update_postgresql_tables
%{_mandir}/man1/bsmtp.1*
%{_mandir}/man8/%{name}-dir.8*
%{_mandir}/man8/bregex.8*
%{_mandir}/man8/bwild.8*
%{_mandir}/man8/dbcheck.8*
%{_sbindir}/%{name}-dir
%{_sbindir}/bregex
%{_sbindir}/bsmtp
%{_sbindir}/bwild
%{_sbindir}/dbcheck
%{_sysconfdir}/logwatch/scripts/services/%{name}
%{_sysconfdir}/logwatch/scripts/shared/apply%{name}date
%{_unitdir}/%{name}-dir.service

%post dir-common
%systemd_post %{name}-dir.service

%preun dir-common
%systemd_preun %{name}-dir.service

%postun dir-common
%systemd_postun_with_restart %{name}-dir.service

#------------------------------------------------------------------

%package sd
Summary:	Bacula storage daemon files
Group:		Archiving/Backup
Requires:	%{name}-common = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-dir-sql = %{EVRD}
Requires:	mt-st
Provides:	%{name}-storage-common = %{EVRD}
Provides:	%{name}-storage-mysql = %{EVRD}
Provides:	%{name}-storage-sqlite3 = %{EVRD}
Provides:	%{name}-storage-pgsql = %{EVRD}

%description sd
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This package contains the storage daemon, the daemon responsible for writing
the data received from the clients onto tape drives or other mass storage
devices.

%files sd
%license LICENSE
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-sd.conf %attr(640,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-sd
%{_libexecdir}/%{name}/disk-changer
%{_libexecdir}/%{name}/mtx-changer
%{_libexecdir}/%{name}/mtx-changer.conf
%{_mandir}/man8/%{name}-sd.8*
%{_mandir}/man8/bcopy.8*
%{_mandir}/man8/bextract.8*
%{_mandir}/man8/bls.8*
%{_mandir}/man8/bscan.8*
%{_mandir}/man8/btape.8*
%{_sbindir}/%{name}-sd
%{_sbindir}/bcopy
%{_sbindir}/bextract
%{_sbindir}/bls
%{_sbindir}/bscan
%{_sbindir}/btape
%{_unitdir}/%{name}-sd.service

%post sd
%systemd_post %{name}-sd.service

%preun sd
%systemd_preun %{name}-sd.service

%postun sd
%systemd_postun_with_restart %{name}-sd.service

#------------------------------------------------------------------

%package client
Summary:	Bacula backup client
Group:		Archiving/Backup
Requires:	%{name}-common = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description client
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This package contains the bacula client, the daemon running on the system to be
backed up.

%files client
%license LICENSE
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-fd.conf %attr(640,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-fd
%{_mandir}/man8/%{name}-fd.8*
%{_libdir}/%{name}/bpipe-fd.so
%{_sbindir}/%{name}-fd
%{_unitdir}/%{name}-fd.service

%post client
%systemd_post %{name}-fd.service

%preun client
%systemd_preun %{name}-fd.service

%postun client
%systemd_postun_with_restart %{name}-fd.service

#------------------------------------------------------------------

%package console
Summary:	Bacula management console
Group:		Archiving/Backup
Requires:	%{libname} = %{EVRD}

%description console
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This package contains the command-line management console for the bacula backup
system.

%files console
%license LICENSE
%config(noreplace) %{_sysconfdir}/%{name}/bconsole.conf %attr(640,root,root)
%{_mandir}/man8/bconsole.8*
%{_sbindir}/bconsole

#------------------------------------------------------------------

%package bat
Summary:	Bacula bat console
Group:		Archiving/Backup
Requires:	%{libname} = %{EVRD}

%description bat
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This package contains the bat version of the bacula management console.

%files bat
%license LICENSE
%config(noreplace) %{_sysconfdir}/%{name}/bat.conf %attr(640,root,root)
%{_datadir}/applications/%{name}-bat.desktop
%{_datadir}/%{name}/*.html
%{_datadir}/%{name}/*.png
%{_datadir}/pixmaps/bat.png
%{_mandir}/man1/bat.1*
%{_sbindir}/bat

#------------------------------------------------------------------

%package tray-monitor
Summary:	Bacula system tray monitor
Group:		Archiving/Backup
Requires:	%{libname} = %{EVRD}

%description tray-monitor
Bacula is a set of programs that allow you to manage the backup, recovery, and
verification of computer data across a network of different computers. It is
based on a client/server architecture.

This package contains the Gnome and KDE compatible tray monitor to monitor your
bacula server.

%files tray-monitor
%license LICENSE
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/%{name}/bacula-tray-monitor.conf
%{_datadir}/applications/%{name}-traymonitor.desktop
%{_datadir}/pixmaps/%{name}-tray-monitor.png
%{_mandir}/man1/%{name}-tray-monitor.1*
%{_sbindir}/%{name}-tray-monitor

#------------------------------------------------------------------

%package -n nagios-check_bacula
Summary:	Nagios Plugin - check_bacula
Group:		Archiving/Backup
Requires:	%{libname} = %{EVRD}
Recommends:	nagios

%description -n nagios-check_bacula
Provides check_bacula support for Nagios.

%files -n nagios-check_bacula
%license LICENSE
%{_libdir}/nagios/plugins/check_%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} .

# Remove execution permissions from files we're packaging as docs later on
find updatedb -type f | xargs chmod -x

# This script pulls dash as depenency by AutoReq
# but shellcheck says that this script cannot work with dash:
# baculabackupreport.in:197:5: error: In dash, 'let' is not supported. [SC3039]
sed -i -e 's,#!/bin/dash,#!/bin/bash,g' scripts/baculabackupreport.in

%build
# help find qmake
export PATH="%{_libdir}/qt5/bin:$PATH"
export LDFLAGS="$LDFLAGS -lreadline -lncurses"
export CFLAGS="%{optflags} -I%{_includedir}/ncurses"
export CPPFLAGS="%{optflags} -I%{_includedir}/ncurses"
%configure \
	--disable-conio \
	--disable-rpath \
	--docdir=%{_datadir}/%{name} \
	--enable-batch-insert \
	--enable-build-dird \
	--enable-build-stored \
	--enable-includes \
	--enable-largefile \
	--enable-readline \
	--enable-smartalloc \
	--sysconfdir=%{_sysconfdir}/%{name} \
	--with-basename=%{name} \
	--with-bsrdir=%{_localstatedir}/spool/%{name} \
	--with-dir-password=@@DIR_PASSWORD@@ \
	--with-fd-password=@@FD_PASSWORD@@ \
	--with-hostname=localhost \
	--with-logdir=%{_localstatedir}/log/%{name} \
	--with-mon-dir-password=@@MON_DIR_PASSWORD@@ \
	--with-mon-fd-password=@@MON_FD_PASSWORD@@ \
	--with-mon-sd-password=@@MON_SD_PASSWORD@@ \
	--with-mysql \
	--with-openssl \
	--with-pid-dir=%{_localstatedir}/run \
	--with-plugindir=%{_libdir}/%{name} \
	--with-postgresql \
	--with-scriptdir=%{_libexecdir}/%{name} \
	--with-sd-password=@@SD_PASSWORD@@ \
	--with-smtp-host=localhost \
	--with-sqlite3 \
	--with-subsys-dir=%{_localstatedir}/lock/subsys \
	--with-tcp-wrappers \
	--with-working-dir=%{_localstatedir}/spool/%{name} \
	--with-x \
	--enable-bat

# Remove rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make
%make -C examples/nagios/check_%{name}

pushd src/qt-console/tray-monitor
%qmake_qt5 tray-monitor.pro
%make
popd

%install
%makeinstall_std

# Nagios plugin
install -p -m 755 -D examples/nagios/check_%{name}/.libs/check_%{name} %{buildroot}%{_libdir}/nagios/plugins/check_%{name}

# Remove catalogue backend symlinks
rm -f %{buildroot}%{_libdir}/libbaccats.so
rm -f %{buildroot}%{_libdir}/libbaccats-%{version}.so
touch %{buildroot}%{_libdir}/libbaccats.so

# Bat
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/bat.png
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE13}

# QT Tray monitor
install -p -m 755 -D src/qt-console/tray-monitor/%{name}-tray-monitor %{buildroot}%{_sbindir}/%{name}-tray-monitor
install -p -m 644 -D src/qt-console/images/bat_icon.png %{buildroot}%{_datadir}/pixmaps/%{name}-tray-monitor.png
install -p -m 644 -D manpages/%{name}-tray-monitor.1 %{buildroot}%{_mandir}/man1/%{name}-tray-monitor.1
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE14}

# Logrotate
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
install -p -m 644 -D %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# Logwatch
install -p -m 755 -D scripts/logwatch/%{name} %{buildroot}%{_sysconfdir}/logwatch/scripts/services/%{name}
install -p -m 755 -D scripts/logwatch/apply%{name}date %{buildroot}%{_sysconfdir}/logwatch/scripts/shared/apply%{name}date
install -p -m 644 -D scripts/logwatch/logfile.%{name}.conf %{buildroot}%{_sysconfdir}/logwatch/conf/logfiles/%{name}.conf
install -p -m 644 -D scripts/logwatch/services.%{name}.conf %{buildroot}%{_sysconfdir}/logwatch/conf/services/%{name}.conf

# Systemd unit files
mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 -D %{SOURCE10} %{buildroot}%{_unitdir}/%{name}-fd.service
install -p -m 644 -D %{SOURCE11} %{buildroot}%{_unitdir}/%{name}-dir.service
install -p -m 644 -D %{SOURCE12} %{buildroot}%{_unitdir}/%{name}-sd.service

# Sysconfig
install -p -m 644 -D %{SOURCE15} %{buildroot}%{_sysconfdir}/sysconfig/%{name}-fd
install -p -m 644 -D %{SOURCE16} %{buildroot}%{_sysconfdir}/sysconfig/%{name}-dir
install -p -m 644 -D %{SOURCE17} %{buildroot}%{_sysconfdir}/sysconfig/%{name}-sd

# bacula Spool dir
mkdir -p %{buildroot}%{_localstatedir}/spool/%{name}

install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE18} %{buildroot}%{_sysusersdir}/bacula.conf

# Clean
rm -f %{buildroot}%{_libexecdir}/%{name}/{%{name},%{name}-ctl-*,startmysql,stopmysql,bconsole,make_catalog_backup}
rm -f %{buildroot}%{_sbindir}/%{name}
rm -f %{buildroot}%{_mandir}/man8/%{name}.8.gz
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_datadir}/%{name}/{ChangeLog,INSTALL,LICENSE,LICENSE-FAQ,LICENSE-FOSS,README,ReleaseNotes,VERIFYING,technotes}
rm -v %{buildroot}%{_libexecdir}/%{name}/%{name}-tray-monitor.desktop

# make rpmlint a happy 
chmod 755 %{buildroot}%{_sbindir}/*
chmod 755 %{buildroot}%{_libdir}/%{name}/*
chmod 755 %{buildroot}%{_libexecdir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 381 |21cr|baka-mplayer-2.0.4-2.git4265eb.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname Baka-MPlayer

%define commit 4265ebab8524ee8c2a5de4eee66798ed7d2b1478
%define commit_short %(echo %{commit} | head -c 6)

Name:		baka-mplayer
Version:	2.0.4
Release:	2.git%{commit_short}.3
Epoch:		1
Summary:	A media player with UI using libmpv
License:	GPLv2+
Group:		Video
Url:		http://bakamplayer.u8sand.net/
Source0:	https://github.com/u8sand/Baka-MPlayer/archive/%{commit}.tar.gz?/%{oname}-%{commit}.tar.gz
Patch0001:	0001-Remove-update-check.patch
BuildRequires:	desktop-file-utils
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(mpv)
Recommends:		youtube-dl

%description
Baka MPlayer is a libmpv-based multimedia player. It supports gesture seeking,
desktop dimming, hardware accelerated playback (vdpau, vaapi, vda) and
Youtube playback support (and others).

%files
%license LICENSE
%doc LICENSE DOCS/%{name}.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/%{name}

#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{commit}

%build
%qmake_qt5 src/%{oname}.pro CONFIG+="release install_translations man.extra" \
lupdate=lupdate-qt5 lrelease=lrelease-qt5  \
DOCDIR=%{_docdir} LICENSEDIR=%{_docdir} \
QMAKE_CFLAGS+="%{optflags}" QMAKE_CXXFLAGS+="%{optflags}"

%make

%install
%makeinstall_qt

# hicolor would be enough
rm -fr %{buildroot}%{_datadir}/pixmaps/%{name}.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 382 |21cr|bakery-2.6.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.6
%define api2 6
%define major 1
%define libname %mklibname %{name} %{api}_%{api2}_%{major}
%define devname %mklibname %{name} %{api} -d

Summary:	C++ Framework for Document-based GNOME applications
Name:		bakery
Version:	2.6.3
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		http://bakery.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%name/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gconfmm-2.6)
BuildRequires:	pkgconfig(gnome-vfsmm-2.6)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libxml++-2.6)
BuildRequires:	pkgconfig(sm)

%description
A C++ Framework for Document-based GNOME applications, using gtkmm. It allows
use of the Document/View architecture.

#----------------------------------------------------------------------------

%package i18n
Summary:	C++ Framework for document-based GNOME applications
Group:		System/Internationalization

%description i18n
This package contains the translations for %{name}.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ Framework for document-based GNOME applications
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
A C++ Framework for Document-based GNOME applications, using gtkmm. It allows
use of the Document/View architecture.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libbakery-%{api}-.%{api2}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Static libraries and headers from %{name}.

%files -n %{devname}
%doc docs/*.html
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/bakery-%{api}
%{_includedir}/%{name}-%{api}/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static
%make

%install
%makeinstall

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 383 |21cr|ballerburg-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ballerburg
Version:	1.2.1
Release:	1
Summary:        Two players, two castles, and a hill in between
Group:          Games/Arcade
License:        GPLv3+
URL:            http://baller.tuxfamily.org/
Source0:        http://download.tuxfamily.org/baller/%{name}-%{version}.tar.gz
Source1:        http://baller.tuxfamily.org/king.png
Source2:        %{name}.desktop
Source3:        %{name}.appdata.xml

BuildRequires:  cmake
BuildRequires:  pkgconfig(sdl)
BuildRequires:  glibc-devel
BuildRequires:  gettext
BuildRequires:  imagemagick
BuildRequires:	appstream-util
BuildRequires:  desktop-file-utils


%description
Two castles, separated by a mountain, try to defeat each other with their
cannonballs, either by killing the opponent's king or by weakening the
opponent enough so that the king capitulates.

Ballerburg was originally written 1987 by Eckhard Kruse, for the Atari ST
machines (which were brand new computers at that point in time). Over 25
years later, here's finally the adaption of the original source code to
modern operating systems.

%files -f %{name}.lang
%doc *.txt doc/authors.txt
%{_defaultdocdir}/%{name}/*.html
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man6/ballerburg.6*
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*
#-------------------------------------------------------

%prep
%setup -q


%build
%cmake -DCMAKE_BUILD_TYPE:STRING=Debug
  
%make


%install
%makeinstall_std -C build


# Install icons
for px in 32 48 64 256; do
  mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${px}x${px}/apps
  convert -gravity south \
    -resize ${px}x${px} \
    -extent ${px}x${px} \
    -background white \
    %{SOURCE1} \
    %{buildroot}%{_datadir}/icons/hicolor/${px}x${px}/apps/%{name}.png
done

# Install desktop file
desktop-file-install \
  --dir=%{buildroot}%{_datadir}/applications \
  %{SOURCE2}

# Install appdata
install -d %{buildroot}%{_appdatadir}
install -p -m 0644 %{SOURCE3} \
  %{buildroot}%{_appdatadir}
  
%find_lang %{name}
 
%check
appstream-util validate-relax --nonet \
  %{buildroot}%{_appdatadir}/%{name}.appdata.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 384 |21cr|ballplaycupid-17.05.05-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname BallPlayCupid

Name:           ballplaycupid
Version:        17.05.05
Release:        1
Summary:        A challenging arcade puzzle game 
Group:          Games/Arcade
# https://github.com/Tricky1975/BallPlayCupid/blob/master/Script/LANGUAGES/ENGLISH.LUA
License:        GPLv3+
Url:            http://utbbs.tbbs.nl/Game.php?HC=Game&A=Game&game=BPC
# http://gamejolt.com/games/bpc/136187
# https://sourceforge.net/projects/ballplay-cupid/files/?source=navbar
Source0:        ballplaycupid-v17.05.05-linux.zip
Source1:        http://i.imgbox.com/qRNivTQ5.png
Source2:        https://raw.githubusercontent.com/Tricky1975/BallPlayCupid/master/Lic.md
Source3:        https://raw.githubusercontent.com/Tricky1975/BallPlayCupid/master/Readme.md
BuildRequires:  imagemagick
BuildRequires:  zip
Requires:       love >= 0.10
BuildArch:      noarch

%description
BallPlay Cupid is a new instalment 
of the Ballplay series. 
The basic game mechanics are 
the same as in BallPlay Genius, 
however a few new twists
First of all a fully graphical screen only.
No more use of the OSes interface. 
Not only does the engine I used not support it, 
but it also appeared loads of people could 
not play BallPlay Genius as a result, 
and people who wanted to shoot this as 
a video for YouTube suffered most of all.
Second a few more twists have been added.


%files
%doc bpc *.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{oname}.love
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------
%prep
%setup  -q -c -n %{name}-v%{version}-linux
cp -p %{SOURCE2} LICENSE.md
cp -p %{SOURCE3} Readme.md
chmod 644 bpc

%build

%install
# data
install -D -m 644 %{oname}.linux.love %{buildroot}%{_gamesdatadir}/%{name}/%{oname}.love

# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{oname}.love
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{oname}
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size  -background transparent %{SOURCE1} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 385 |21cr|balls-love-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname balls.love

Summary:	Save your planet from the deadly balls
Name:		balls-love
Version:	0.1
Release:	2
License:	CC-BY-SA
Group:		Games/Arcade
Url:		https://mtdev.itch.io/balls
Source0:	%{oname}
# from the love archive
Source1:	title.png
BuildRequires:	imagemagick
BuildRequires:	zip
Requires:	love >= 0.10
BuildArch:	noarch

%description
Save your planet from the deadly balls by corralling them in your forcefield.
Right mouse to change the force field's direction and left click to deploy.
Cover 80% of space to survive and advance to the next level. Think it sounds
easy? It is; for awhile. Every level the challenge increases and the stakes
are higher. Can you get the high score? Your bonus is draining quickly and
the faster you complete this level, the more bonus is available in the next...
That is, assuming you can make it! Launch shields now or wait until it may
be safer? Don't forget that your score and the future of the planet, depend
on you.

%files
%doc LICENSE.md README.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{oname}
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q -c -n %{name}

%build

%install
# data
install -D -m 644 %{SOURCE0} %{buildroot}%{_gamesdatadir}/%{name}/%{oname}


# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{oname}
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size -background transparent -gravity Center %{SOURCE1} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 386 |21cr|ballz-1.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	B.A.L.L.Z. - platform/puzzle game where you control a rolling ball
Name:		ballz
Version:	1.0.4
Release:	4
License:	BSD
Group:		Games/Arcade
Url:		https://gitlab.com/groups/ballz/ballz
# WARNING: Don't use others Gitlab downloads: they won't pass autoreconf stage
Source0:	https://gitlab.com/ballz/ballz/uploads/7e1eaf6c06dc982e9942fb055b7cc243/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	dumb-devel
BuildRequires:	pkgconfig(allegro) >= 4.2.0
BuildRequires:	pkgconfig(allegrogl)
BuildRequires:	pkgconfig(guichan-0.8)
ExcludeArch:	%{ix86}

%description
B.A.L.L.Z. is a platformer with some puzzle elements. You take control of a
ball which is genetically modified by the British secret service. Your mission
is to rescue captured British soldiers from a prison in Iran.

%files -f %{name}.lang
%doc AUTHORS README BSD-license ChangeLog
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*

#---------------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
%configure \
    --bindir=%{_gamesbindir} \
    --datadir=%{_gamesdatadir}
%make


%install
%makeinstall_std

# Install have more icons...
for i in 16x16 22x22 32x32 48x48 64x64 128x128; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/apps
	convert %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png -scale $i %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{name}.png
done

# Massage the provided .desktop file
desktop-file-edit	--set-name="B.A.L.L.Z." --set-comment="Platform/puzzle game where you control a rolling ball"\
					--remove-key="_Name" --remove-key="_Comment" --remove-key="Version" \
					%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 387 |21cr|balsa-2.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#otherwise the ghost html files are really present
%define _files_listed_twice_terminate_build	0
%define enable_gpgme 1

Summary:	Graphical Mail Client
Name:		balsa
Version:	2.6.3
Release:	1
License:	GPLv2+
Group:		Networking/Mail
Url:		http://pawsa.fedorapeople.org/balsa
Source0:	http://pawsa.fedorapeople.org/balsa/%{name}-%{version}.tar.xz
BuildRequires:	gnome-doc-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	sendmail-command
BuildRequires:	aspell-devel >= 0.50
BuildRequires:	compface-devel
BuildRequires:	krb5-devel
BuildRequires:	libesmtp-devel
BuildRequires:	libltdl-devel
BuildRequires:	openldap-devel
# in balsa, gtkhtml 3.x is preferred over 2.x
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(gmime-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(gtkspell3-3.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgtkhtml-4.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(unique-1.0)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
%if %{enable_gpgme}
BuildRequires:	gpgme-devel >= 0.4.2
%endif

%description
Balsa is an e-mail reader.

This client is part of the GNOME desktop environment. It supports local
mailboxes, POP3 and IMAP.

*** Build options: ***
--with gpgme		Build with gpgme/GnuPG support

%files -f %{name}.lang
%doc README COPYING ChangeLog NEWS TODO
%config(noreplace) %{_sysconfdir}/sound/events/*
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/sounds/*
%{_mandir}/man1/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/metainfo/balsa.appdata.xml

%post
touch %{_datadir}/gnome/help/%{name}/C/%{name}.html

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-unique \
	--with-gss=yes \
%if %{enable_gpgme}
	--with-gpgme \
%endif
	--with-ssl \
	--with-ldap=yes \
	--with-gtkspell \
	--with-canberra \
	--with-html-widget=webkit2 \
	--with-gtksourceview \
	--with-sqlite \
	--with-compface \
	--disable-scrollkeeper

make

%install
%makeinstall_std GTK_UPDATE_ICON_CACHE="/usr/bin/gtk-update-icon-cache --ignore-theme-index"

# Icons
mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
install -m 644 -D	gnome-balsa2.png %{buildroot}/%{_liconsdir}/%{name}.png
convert -geometry 32x32 gnome-balsa2.png %{buildroot}/%{_iconsdir}/%{name}.png
convert -geometry 16x16 gnome-balsa2.png %{buildroot}/%{_miconsdir}/%{name}.png

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 388 |21cr|bam-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A build-system
Name:		bam
Version:	0.5.1
Release:	1
License:	MIT
Group:		Development/Other
Url:		http://matricks.github.com/bam/
Source0:	http://github.com/downloads/matricks/bam/%{name}-%{version}.tar.gz

%description
A tool that controls process of producing executables of
software from its source code.

%files
%doc COPYING CHANGELOG docs/*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
sh -x make_unix.sh %{optflags}

%install
install -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m 0644 docs/%{name}.1.txt %{buildroot}%{_mandir}/man1/%{name}.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 389 |21cr|bamf-0.5.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define api 3
%define major 2
%define libname %mklibname %{name}%{api}_ %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name}%{api} -d

%define _libexecdir /usr/libexec
%define Werror_cflags %{nil}

Summary:	Window matching library
Name:		bamf
Version:	0.5.6
Release:	1
License:	LGPLv3+
Group:		Graphical desktop/Other
Url:		http://launchpad.net/bamf
Source0:	https://launchpad.net/bamf/0.5/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	gtk-doc
BuildRequires:	vala-tools
BuildRequires:	python3-lxml
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(vapigen)

%description
Bamf matches application windows to desktop files.

#----------------------------------------------------------------------------

%package daemon
Summary:	Window matching library - daemon
Group:		System/Servers

%description daemon
Bamf matches application windows to desktop files.
This package contains the daemon used by the library and a gio module that
facilitates the matching of applications started through GDesktopAppInfo.

%files daemon
%doc COPYING
%dir %{_libexecdir}/bamf/
%{_libexecdir}/bamf/bamfdaemon*
%{_datadir}/dbus-1/services/*.service
%{_datadir}/upstart/sessions/bamfdaemon.conf
/usr/lib/systemd/user/bamfdaemon.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Window matching library - shared libraries
Group:		System/Libraries

%description -n %{libname}
Bamf matches application windows to desktop files.

This package contains shared libraries to be used by applications.

%files -n %{libname}
%doc COPYING.LGPL COPYING
%{_libdir}/libbamf3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING.LGPL COPYING
%{_libdir}/girepository-1.0/Bamf-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Window matching library - development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-daemon = %{EVRD}

%description -n %{devname}
Bamf matches application windows to desktop files.

This package contains files that are needed to build applications.

%files -n %{devname}
%doc COPYING.LGPL COPYING
%doc %{_datadir}/gtk-doc/html/libbamf/
%{_includedir}/libbamf3/
%{_libdir}/libbamf3.so
%{_libdir}/pkgconfig/libbamf3.pc
%{_datadir}/gir-1.0/Bamf-%{api}.gir
%{_datadir}/vala/vapi/libbamf3.vapi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--disable-webapps \
	--enable-introspection=yes \
	--enable-gtk-doc
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 390 |21cr|bangarang-2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Media player for KDE using nepomuk
Name:		bangarang
Version:	2.1
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://bangarangkde.wordpress.com/
Source0:	http://bangarangissuetracking.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		bangarang-2.1-ru.patch
BuildRequires:	automoc4
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(shared-desktop-ontologies)
BuildRequires:	pkgconfig(soprano)
BuildRequires:	pkgconfig(taglib)

%description
Bangarang is a media player for KDE using nepomuk to store informations.

%files -f %{name}.lang
%{_kde_bindir}/bangarang
%{_kde_bindir}/bangarangnepomukwriter
%{_kde_datadir}/applications/kde4/bangarang.desktop
%{_kde_appsdir}/solid/actions/*.desktop
%{_kde_iconsdir}/hicolor/*/*/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{name}
%patch0 -p1 -b .ru

# GCC 4.7 fix
sed -i '22i#include <unistd.h>' src/platform/infofetchers/{lastfm,tmdb,tvdb}infofetcher.h

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 391 |21cr|banner-1.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Print text as banner on the console
Name:		banner
Version:	1.3.5
Release:	1
License:	GPL
Group:		Text tools
Url:		http://www.cedar-solutions.com/software.html
Source0:	http://cedar-solutions.com/ftp/software/%{name}-%{version}.tar.gz
BuildRequires:	automake

%description
Banner fills an apparent hole in Linux - that is, that is does not provide 
a "banner" program itself, while nearly all UNIX systems seem to do so.
Banner prints a "banner" on the screen that corresponds to the first 10 
characters of a string entered on the command line, in a way similar to
what you might see when using Solaris or AIX. There are fancier things out 
there, but this is nice and simple.

%files
%doc AUTHORS COPYING INSTALL README
%{_bindir}/banner
%{_mandir}/man1/banner.1.xz

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 392 |21cr|barbie_seahorse_adventures-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           barbie_seahorse_adventures
Version:        1.1
Release:        1
Summary:        You are a seahorse and you want to go to the moon!
License:        GPLv2
Group:          Games/Arcade
Url:            http://www.imitationpickles.org/barbie/
Source0:        http://www.imitationpickles.org/barbie/files/barbie-1.1.tgz
Source1:        %{name}.sh
Source2:        %{name}.desktop
Source3:        %{name}.appdata.xml
BuildRequires:  dos2unix
Requires:       python
Requires:       pygame

BuildArch:      noarch

%description
You are a seahorse and you want to go to the moon!
When you play - make sure to check out all 3 phases
- Jungle, Volcano, and Moon.


%files
%doc *.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/icons/hicolor/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
#-------------------------------------------------------------
%prep
%setup -qn barbie-%{version}

# clean
rm -f data/REMOVE_ME.txt data/sample.txt lib/pgu/LICENSE.txt
find . -name "*.py" -exec dos2unix "{}" "+"

%build

%install
# install wrapper
install -Dm 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}

# install tree
mkdir -p %{buildroot}%{_datadir}/%{name}/{data,lib}
for d in data lib ; do
    cp -a $d %{buildroot}%{_datadir}/%{name}
done

# install files
install -Dm 0644 *.ini %{buildroot}%{_datadir}/%{name}

for f in create-upload leveledit run_game tileedit ; do
    install -Dm 0555 ${f}.py %{buildroot}%{_datadir}/%{name}
done

for f in preview pyweek-upload ; do
    install -Dm 0644 ${f}.py %{buildroot}%{_datadir}/%{name}
done

# install icons
for i in 32 64 128 ; do
    install -Dm 0644 icon${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done
install -Dm 0644 icon64.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

# install Desktop file
install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop

# install appdata
install -Dm 0644 %{SOURCE3} %{buildroot}%{_appdatadir}/%{name}.appdata.xml

# fix attr
pushd %{buildroot}%{_datadir}/%{name}
chmod 0755 {tileedit,create-upload,run_game,leveledit}.py
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 393 |21cr|barcode-0.99-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	GNU barcode
Name:		barcode
Version:	0.99
Release:	3
License:	GPLv2+
Group:		Publishing
Source:		ftp://ftp.gnu.org/gnu/barcode/%name-%{version}.tar.xz
Patch0:		barcode-0.98-fix-str-fmt.patch
URL:		http://gnu.systemy.it/software/barcode

%description
This is GNU-barcode.
The package is meant to solve most needs in barcode creation with a
conventional printer. It can create printouts for the conventional
product tagging standards: UPC-A, UPC-E, EAN-13, EAN-8, ISBN, as well
as a few other formats. Ouput is generated as either Postscript or
Encapsulated Postscript (other back-ends may be added if needed).

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std
rm -f %{buildroot}/usr/bin/sample

%files
%doc COPYING ChangeLog README TODO
%{_bindir}/barcode
%{_datadir}/info/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 394 |21cr|barium_iniedit-0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname iniedit
Summary:	ROSA.ini editor for barium
Name:		barium_iniedit
Version:	0.2
Release:	8
License:	GPLv2+
Group:		System/Base
Url:		https://abf.io/soft/barium_iniedit.git
Source:		%{name}.tar.gz
Source100:	%{name}.rpmlintrc
Requires:	python3 >= 3.8
Requires:	python3-gi
Requires:	barium_utils
Recommends:	python3-pwquality
BuildArch:	noarch

%description
Editor for main Barium OS configuration ini file - ROSA.ini

%prep
%setup -n %{name}

%build
# nothing to do

%install
mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}/%{_prefix}/lib/rosa-rw/b-utils
mkdir -p %{buildroot}%{_datadir}/{applications,barium_iniedit}
mkdir -p %{buildroot}%{python3_sitelib}/%{name}
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/

install -m 755 %{oname}.py %{buildroot}/%{_prefix}/lib/rosa-rw/b-utils/%{oname}
install -m 644 %{oname}.svg %{buildroot}%{_iconsdir}/
install -m 644 %{oname}.ui %{buildroot}%{_datadir}/%{name}/%{oname}.ui
install -m 644 %{oname}.desktop %{buildroot}%{_datadir}/applications/
install -m 644 %{name}/* %{buildroot}%{python3_sitelib}/%{name}/
install -m 644 locale/ru/LC_MESSAGES/%{oname}.mo %{buildroot}%{_localedir}/ru/LC_MESSAGES/

%files
%{_prefix}/lib/rosa-rw/b-utils/%{oname}
%{_iconsdir}/%{oname}.svg
%{_datadir}/%{name}/%{oname}.ui
%{_datadir}/applications/%{oname}.desktop
%{python3_sitelib}/barium_iniedit/*.py
%optional %{python3_sitelib}/barium_iniedit/*/*.pyc
%{_localedir}/*/LC_MESSAGES/%{oname}.mo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 395 |21cr|barium_utils-3-20240807.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev	64bc26c
%define gitdate 20240807

# Do not update from git master, fix right here

Summary:	A kit of scripts to managing barium xzm modules
Name:		barium_utils
Version:	3
Release:	20240807.2
License:	GPLv2+
Group:		System/Base
Url:		https://betcher_@abf.io/soft/barium_utils.git
Source0:	%{name}-%{gitdate}-git%{gitrev}.tar.gz

Requires:	bash
Requires:	python3
Requires:	squashfs-tools
Requires:	e2fsprogs
Requires:	rsync
Requires:	wget
Requires:	zenity
BuildArch:	noarch

%description
A kit of shell scripts to managing barium xzm modules
git short commit: %{gitrev}

%files -f b-utils.list
%exclude %{_prefix}/lib/rosa-rw/b-utils/applet
%{_bindir}/barium
%{_sysconfdir}/barium/*
%{_sysconfdir}/bash_completion.d/barium

##########################################################
%package applet
Summary:	Barium OS state indicator
Requires:	typelib(AppIndicator3)
Requires:	barium_utils
Requires:	%{name} = %{EVRD}
Provides:	barium_applet = %{EVRD}

%description applet
Barium OS state indicator for system tray

%files applet
%{_prefix}/lib/rosa-rw/b-utils/applet
%{_prefix}/lib/rosa-rw//rc.desktop/deonly/barium_applet
%{_datadir}/rosa-rw/barium_applet/*
%{_datadir}/applications/barium_applet.desktop
%{_iconsdir}/barium_applet.svg
%{_localedir}/*

########################################################
%package testing
Summary:	New scripts in alpha, beta status
Requires:	%{name} == %{EVRD}

%description testing
New scripts in alpha, beta status

%files testing -f testing.list

########################################################
%package salt
Summary:	Barium OS implementation for salt
Requires:	%{name} = %{EVRD}
Requires:	salt-minion

%description salt
Barium OS state indicator for system tray

%files salt
%{python3_sitelib}/salt/modules/*.py
%{python3_sitelib}/salt/modules/__pycache__/*.pyc

########################################################
%prep

%setup -qn %{name}
sed -i "s/'synchome.x'/'pkexec', 'synchome'/"  b-utils/applet
%build

%install
mkdir -p  %{buildroot}%{_bindir}/ %{buildroot}%{_sysconfdir} \
    %{buildroot}/%{_prefix}/lib/rosa-rw/rc.desktop/deonly/ \
    %{buildroot}/%{python3_sitelib}/salt/modules


cp -fr ./b-utils   %{buildroot}/%{_prefix}/lib/rosa-rw/
ls ./b-utils |while read a ; do
    echo %{_prefix}/lib/rosa-rw/b-utils/$a >> b-utils.list
done

chmod +x %{buildroot}/%{_prefix}/lib/rosa-rw/b-utils/*
ln -sf /%{_prefix}/lib/rosa-rw/b-utils/barium  %{buildroot}%{_bindir}/barium

cp -fr ./etc/* %{buildroot}%{_sysconfdir}/

cp -fr ./share  %{buildroot}/%{_prefix}/
install -m 755 ./barium_applet %{buildroot}%{_prefix}/lib/rosa-rw/rc.desktop/deonly/

cp ./salt/* %{buildroot}/%{python3_sitelib}/salt/modules/

cp -f ./testing/* %{buildroot}/%{_prefix}/lib/rosa-rw/b-utils/
ls ./testing |while read a ; do
    echo %{_prefix}/lib/rosa-rw/b-utils/$a >> testing.list
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 396 |21cr|barrage-1.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		barrage
Version:	1.0.4
Release:	4
License:	GPLv2
Group:		Games/Arcade
Summary:	A rather violent action game
URL:		http://lgames.sourceforge.net/index.php?project=Barrage
Source0:	http://nchc.dl.sourceforge.net/sourceforge/lgames/%{name}-%{version}.tar.gz
Patch0:		barrage-1.0.4-desktop-entry-fix.patch
BuildRequires:	SDL_mixer-devel
Buildrequires:	SDL-devel

%description
Barrage is a rather violent action game with the objective to kill
and destroy as many targets as possible within 3 minutes. The player
controls a gun that may either fire small or large grenades at
soldiers, jeeps and tanks. It is a very simple gameplay though it is
not that easy to get high scores.

%prep
%setup -q
%patch0 -p1

%build
%configure	--bindir=%{_gamesbindir}
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std

%clean
%__rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc AUTHORS BUGS ChangeLog NEWS README TODO
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%attr(755,root,root) %{_gamesbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 397 |21cr|barrage-1.0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A rather violent action game
Name:		barrage
Version:	1.0.5
Release:	3
License:	GPLv2+
Group:		Games/Arcade
Url:		https://lgames.sourceforge.net/index.php?project=Barrage
Source0:	https://sourceforge.net/projects/lgames/files/barrage/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
#build fail on aarch64 and other
ExclusiveArch:	%{x86_64}

%description
Barrage is a rather violent action game with the objective to kill and destroy
as many targets as possible within 3 minutes. The player controls a gun that
may either fire small or large grenades at soldiers, jeeps and tanks. It is a
very simple gameplay though it is not that easy to get high scores.

%files
%doc AUTHORS BUGS ChangeLog README
%config(noreplace) %attr(664, games, games) %{_localstatedir}/games/%{name}.hscr
%{_gamesbindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------


%prep
%setup -q


%build
export CFLAGS="-O2 -fomit-frame-pointer -gdwarf-4 -Wstrict-aliasing=2 -pipe -D_FORTIFY_SOURCE=2 -fPIC -fstack-protector-strong --param=ssp-buffer-size=4 -m64 -mtune=generic"
%configure	--localstatedir=%{_localstatedir}/games \
		--bindir=%{_gamesbindir}
# The build passes "-Wno-format" as compile flag
sed -i -e 's|"-Werror=format-security"||g' src/Makefile
sed -i -e 's|"-Wformat"||g' src/Makefile
%make -j1


%install
%makeinstall_std

# Fix icon name and installation path
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
mv %{buildroot}%{_datadir}/icons/barrage48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png

# Fix .desktop file accordingly
desktop-file-edit	--set-icon="%{name}" --add-category=ArcadeGame \
			--set-key=Terminal --set-value=false \
			--set-comment="A rather destructive action game" \
			%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 398 |21cr|bash2048-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bash2048
Version:        1.0
Release:        1
License:        FSFUL
Summary:        Bash implementation of 2048 game
Url:            https://github.com/mydzor/bash2048
Source:         https://github.com/mydzor/bash2048/archive/%{name}-%{version}.tar.gz
Group:          Games/Arcade
BuildArch:      noarch

%description
Bash implementation of 2048 game.

%files
%doc *.md LICENSE
%{_gamesbindir}/%{name}

#---------------------------------------------
%prep
%setup -q

%build

%install
install -dm755 %{buildroot}%{_gamesbindir}
install -m755  %{name}.sh %{buildroot}%{_gamesbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 399 |21cr|bashburn-3.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	BashBurn

Name:		bashburn
Version:	3.1.0
Release:	4
Summary:	Bash script designed to make CD burning
Source:		%{name}-%{version}.tar.gz
License:	GPLv2
Group:		Archiving/Cd burning
Url:		http://bashburn.sourceforge.net/
Requires:	cdrkit, eject, cdrdao, mpg123, vorbis-tools, flac
Buildarch:	noarch

%description
Sick of all those fancy CD-burning apps not working for you? You need something
that just gets the work done? Welcome to BashBurn - It just works!

BashBurn is the new name for the cd burning shell script Magma. It's not the
best looking CD-burning application out there, but it does what you want it to
do. (And if not then probably didn't want to do it anyway)

Bashburn could need lame codec for some operations.

%prep
%setup -q -n %{oname}-%{version}

%build
make

%install
rm -rf %{buildroot}
./Install.sh --prefix=%{buildroot}%{_prefix}

# correct the symlink
ln -sf /usr/lib/Bashburn/lib/BashBurn.sh %{buildroot}%{_bindir}/bashburn
# fix BBROOTDIR in BashBurn.sh:
sed -i -e 's,BBROOTDIR='.*',BBROOTDIR='/usr/lib/Bashburn/lib',' %{buildroot}/usr/lib/Bashburn/lib/BashBurn.sh

%if 0
install -m 755 -D BashBurn.sh %{buildroot}%{_bindir}/BashBurn.sh
pushd %{buildroot}%{_bindir} && %__ln_s BashBurn.sh bashburn && popd
for i in burning/* config/* convert/* lang/English/* menus/* misc/*; do
	install -m 755 -D $i %{buildroot}%{_datadir}/%{name}/$i
done
install -m 644 -D bashburnrc %{buildroot}/etc/bashburnrc
pushd %{buildroot}/etc && %__sed -i "s|BBROOTDIR: .*|BBROOTDIR: /usr/share/bashburn|" bashburnrc && popd
rm -f Install.sh
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc docs/*
%{_bindir}/*
%{_prefix}/lib/Bashburn
#attr(664,root,cdwriter) %config(noreplace) /etc/bashburnrc
%{_datadir}/man/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 400 |21cr|bashlib-3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# autoreconf is enough
%define _disable_rebuild_configure 1

Summary:	Bash CGI library
Name:		bashlib	
Version:	3
Release:	1
License:	GPLv2
Group:		Development/Other
Url:		https://github.com/mikhailnov/bashlib
Source0:	https://github.com/mikhailnov/bashlib/archive/refs/tags/v%{version}.tar.gz?/bashlib-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	autoconf
BuildRequires:	make
BuildRequires:	coreutils
BuildRequires:	grep
BuildRequires:	sed

Requires:	coreutils
Requires:	gawk
Requires:	grep
Requires:	sed

%description
Bash CGI library.
Can be used when developing web applications in Bash.

%files
%license COPYING
%{_bindir}/bashlib

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -if
%configure
%make

%install
mkdir -p %{buildroot}%{_bindir}
# sourceable, but not executable
install -m0644 bashlib %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 401 |21cr|bashtop-0.9.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bashtop
Version:        0.9.25
Release:        2
Summary:        Linux resource monitor
Group:          Monitoring
License:        ASL 2.0
Url:            https://github.com/aristocratos/bashtop
Source0:        https://github.com/aristocratos/bashtop/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:         dontcheckupdates.patch

Requires: bash >= 4.4
Requires: gawk
Requires: coreutils
Requires: grep
Requires: procps-ng
Requires: sed
Requires: python3egg(psutil)

Suggests: lm-sensors
Suggests: curl
Suggests: sysstat

BuildArch: noarch

%description
Resource monitor written in Bash that 
shows usage and stats for processor, 
memory, disks, network and processes.

%files
%doc README.md CHANGELOG.md LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
#---------------------------------------------------------------------
%prep
%setup -q
%patch0 -p1

%build
# None required

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}/themes
install -p -m 755 bashtop %{buildroot}%{_bindir}
install -p -m 644 themes/* %{buildroot}%{_datadir}/%{name}/themes

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=%{name}
GenericName=Bashtop
Comment=%{summary}
Exec=%{name}
Icon=utilities-system-monitor
Type=Application
StartupNotify=false
Categories=System;Monitor;System;
Terminal=true
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 402 |21cr|bastet-0.43.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tetris clone giving you the worst bricks possible
Name:		bastet
Version:	0.43.2
Release:	1
License:	GPLv3+
Group:		Games/Other
Url:		http://fph.altervista.org/prog/bastet.html
Source0:	https://github.com/fph/bastet/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/fph/bastet/master/bastet.png
Source2:	https://raw.githubusercontent.com/fph/bastet/master/bastet.appdata.xml
Patch0:		bastet-boost.patch
Patch1:		bastet-string.patch
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(ncurses)

%description
Bastet stands for "bastard tetris", and is a simple ncurses-based Tetris(R)
clone for Linux. Instead of choosing the next block randomly, this fiendish
program uses a special algorithm to give you the worst possible brick.
Playing Bastet can be a very frustrating experience!

%files
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%attr(664,root,games) %{_var}/%{_gamesdir}/%{name}.scores2
%{_mandir}/man6/%{name}.*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/bastet.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%serverbuild
%make

%install
# binary
mkdir -p %{buildroot}%{_bindir}
install -p bastet %{buildroot}%{_bindir}/bastet

# empty high score file
mkdir -p %{buildroot}%{_var}/%{_gamesdir}
touch %{buildroot}%{_var}/%{_gamesdir}/%{name}.scores2

# manpage
mkdir -p %{buildroot}%{_mandir}/man6
install -p %{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6 

#menuentry
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
	--dir=%{buildroot}%{_datadir}/applications \
	%{name}.desktop

#icons
# the icon resolution sucks, no hicolor for now...
install -d -m755 %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
convert %{SOURCE1} -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert %{SOURCE1} -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
convert %{SOURCE1} -resize 64x64 %{buildroot}%{_liconsdir}/%{name}.png

#appdata
mkdir -p %{buildroot}%{_appdatadir}
install -p %{SOURCE2} %{buildroot}%{_appdatadir}/bastet.appdata.xml
chmod 644 %{buildroot}%{_appdatadir}/bastet.appdata.xml

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 403 |21cr|bastion-1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		bastion
Version:	1.3
Release:	3
Summary:	Bastion - gateway and content filter for the office network
Group:		Networking/Other
License:	GPLv3
URL:		https://github.com/AKotov-dev/bastion
Source0:	https://github.com/AKotov-dev/bastion/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	bastion
Source2:	bastion.png
Source3:	bastion.desktop
Source4:	bastion.service
Source5:	bastion.policy
Source6:	configs.tar.gz
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	iptables
Requires:	squid
Requires:	ipset
Requires:	bind-utils
Requires:	apache
Requires:	squidanalyzer
Requires:	polkit
Requires:	sakura
Requires:	openssh-server
Requires:	multitail
Requires:	dnsmasq
Requires:	samba
Requires:	net-tools

%description
Gateway and content filter for the office network.
Bastion has built-in Black/White lists of domains, IPTables + ip_set + xt_string

%files
%doc ../README.md configs.tar.gz
%license ../LICENSE
/lib/systemd/system/bastion.service
%{_datadir}/bastion/
%attr(0755,root,root) %{_bindir}/bastion
%{_datadir}/polkit-1/actions/bastion.policy
%{_datadir}/applications/bastion.desktop
%{_datadir}/pixmaps/bastion.png

%post
%systemd_post %{name}.service
echo -n "Please manual unzip and install %{_docdir}/%{name}/source.tar.gz"

%preun
%systemd_preun %{name}.service

#-----------------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

cp %{SOURCE6} ./

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
mkdir -p %{buildroot}/lib/systemd/system/

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp %{SOURCE4} %{buildroot}/lib/systemd/system/
cp %{SOURCE5} %{buildroot}%{_datadir}/polkit-1/actions
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 404 |21cr|bat-0.24.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug_package %nil

Name:		bat
Version:	0.24.0
Release:	1
Summary:	A cat(1) clone with wings
Group:		Development/Other
License:	ASL 2.0, MIT
URL:		https://github.com/sharkdp/bat
Source0:	https://github.com/sharkdp/bat/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# make int with cargo vendor
Source1:	vendor.tar.gz
BuildRequires:	rust
BuildRequires:	cargo

%description
%{summary}

%prep
%setup -q
tar xvzf %{SOURCE1}

sed -i -e "s/lto = true/lto = false/" Cargo.toml
mkdir -p .cargo
cat > .cargo/config << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline


%install

install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}

%files
%doc README.md LICENSE* doc
%{_bindir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 405 |21cr|batik-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scalable Vector Graphics for Java
Name:		batik
Version:	1.9
Release:	1
Epoch:		0
Group:		Development/Java
License:	Apache License
Url:		http://xml.apache.org/batik/
Source0:	http://apache-mirror.rbc.ru/pub/apache/xmlgraphics/batik/source/%{name}-src-%{version}.tar.gz
Source1:	%{name}.squiggle.script
Source2:	%{name}.svgpp.script
Source3:	%{name}.ttf2svg.script
Source4:	%{name}.rasterizer.script
Source5:	%{name}.slideshow.script
Source6:	%{name}-squiggle.desktop
BuildRequires:	ant
BuildRequires:	rhino >= 0:1.5
BuildRequires:	java-rpmbuild >= 0:1.5
BuildRequires:	xerces-j2
BuildRequires:	jython
BuildRequires:	rhino-javadoc
BuildRequires:	xml-commons-jaxp-1.3-apis >= 0:1.3.04
Requires:	rhino >= 0:1.5
Requires:	xml-commons-jaxp-1.3-apis >= 0:1.3.04
BuildArch:	noarch

%description
Batik is a Java(tm) technology based toolkit for applications that want
to use images in the Scalable Vector Graphics (SVG) format for various
purposes, such as viewing, generation or manipulation.

%files
%doc KEYS LICENSE MAINTAIN NOTICE README
%{_javadir}/%{name}-all*.jar

#---------------------------------------------------------

%package squiggle
Summary:	Batik SVG browser
Group:		Development/Java
Requires:	%{name} = %{EVRD}
Requires:	jpackage-utils >= 0:1.5
Requires:	xerces-j2 >= 0:2.3

%description squiggle
The Squiggle SVG Browser lets you view SVG file, zoom, pan and rotate
in the content and select text items in the image and much more.

%files squiggle
%doc KEYS LICENSE MAINTAIN NOTICE README
%{_javadir}/%{name}-squiggle*.jar
%{_bindir}/squiggle

#---------------------------------------------------------

%package svgpp
Summary:	Batik SVG pretty printer
Group:		Development/Java
Requires:	%{name} = %{EVRD}
Requires:	jpackage-utils >= 0:1.5
Requires:	xerces-j2 >= 0:2.3

%description svgpp
The SVG Pretty Printer lets developers "pretty-up" their SVG files and
get their tabulations and other cosmetic parameters in order. It can
also be used to modify the DOCTYPE declaration on SVG files.

%files svgpp
%doc KEYS LICENSE MAINTAIN NOTICE README
%{_javadir}/%{name}-svgpp*.jar
%{_bindir}/svgpp

#---------------------------------------------------------

%package ttf2svg
Summary:	Batik SVG font converter
Group:		Development/Java
Requires:	%{name} = %{EVRD}
Requires:	jpackage-utils >= 0:1.5

%description ttf2svg
The SVG Font Converter lets developers convert character ranges from
the True Type Font format to the SVG Font format to embed in SVG
documents. This allows SVG document to be fully self-contained be
rendered exactly the same on all systems.

%files ttf2svg
%doc KEYS LICENSE MAINTAIN NOTICE README
%{_javadir}/%{name}-ttf2svg*.jar
%{_bindir}/ttf2svg

#---------------------------------------------------------

%package rasterizer
Summary:	Batik SVG rasterizer
Group:		Development/Java
Requires:	%{name} = %{EVRD}
Requires:	jpackage-utils >= 0:1.5
Requires:	xerces-j2 >= 0:2.3

%description rasterizer
The SVG Rasterizer is a utility that can convert SVG files to a raster
format. The tool can convert individual files or sets of files, making
it easy to convert entire directories of SVG files. The supported
formats are JPEG, PNG, and TIFF, however the design allows new formats
to be added easily.

%files rasterizer
%doc KEYS LICENSE MAINTAIN NOTICE README
%{_javadir}/%{name}-rasterizer*.jar
%{_bindir}/rasterizer

#---------------------------------------------------------

%package slideshow
Summary:	Batik SVG slideshow
Group:		Development/Java
Requires:	%{name} = %{EVRD}
Requires:	jpackage-utils >= 0:1.5
Requires:	xerces-j2 >= 0:2.3

%description slideshow
Batik SVG slideshow.

%files slideshow
%doc KEYS LICENSE MAINTAIN NOTICE README
%{_javadir}/%{name}-slideshow*.jar
%{_bindir}/slideshow

#---------------------------------------------------------

%package demo
Summary:	Demo for %{name}
Group:		Development/Java
Requires:	%{name} = %{EVRD}

%description demo
Demonstrations and samples for %{name}.

%files demo
%doc KEYS LICENSE MAINTAIN NOTICE README
%{_datadir}/%{name}

#---------------------------------------------------------

%prep
%setup -q
rm -f `find -name readOnly.png`
rm -f `find -name properties`

%build
export CLASSPATH
export OPT_JAR_LIST=:
%{ant} all-jar \
	svg-pp-jar \
	svg-slideshow-jar \
	squiggle-jar \
	rasterizer-jar \
	ttf2svg-jar

%install
# jars
mkdir -p %{buildroot}%{_javadir}
cp -p %{name}-%{version}/lib/%{name}-all-%{version}.jar \
	%{name}-%{version}/batik-rasterizer-%{version}.jar \
	%{name}-%{version}/batik-slideshow-%{version}.jar \
	%{name}-%{version}/batik-squiggle-%{version}.jar \
	%{name}-%{version}/batik-svgpp-%{version}.jar \
	%{name}-%{version}/batik-ttf2svg-%{version}.jar \
	%{buildroot}%{_javadir}

pushd %{buildroot}%{_javadir}
	for jar in *-%{version}*;
		do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`;
	done
popd

# scripts
mkdir -p %{buildroot}%{_bindir}
cp -p %{SOURCE1} %{buildroot}%{_bindir}/squiggle
cp -p %{SOURCE2} %{buildroot}%{_bindir}/svgpp
cp -p %{SOURCE3} %{buildroot}%{_bindir}/ttf2svg
cp -p %{SOURCE4} %{buildroot}%{_bindir}/rasterizer
cp -p %{SOURCE5} %{buildroot}%{_bindir}/slideshow

# demo
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -pr contrib samples test-resources test-sources \
	%{buildroot}%{_datadir}/%{name}

chmod 755 %{buildroot}%{_datadir}/%{name}/contrib/rasterizertask/build.sh
chmod 755 %{buildroot}%{_datadir}/%{name}/contrib/charts/convert.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 406 |21cr|batrachians-0.1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		batrachians
Version:	0.1.7
Release:	1
Summary:	A fly-eating frog video game
License:	GPLv2+
Group:		Games/Arcade
Url:		http://perso.b2b2c.ca/~sarrazip/dev/batrachians.html
Source0: 	http://perso.b2b2c.ca/sarrazip/dev/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	flatzebra-devel >= 0.1.7

%description
A fly-eating frog video game. 
It is a clone of the 1982 Frog Bog 
video game for the Intellivision, 
from Mattel.

%files
%doc AUTHORS COPYING NEWS README THANKS 
%{_gamesbindir}/%{name}
%{_datadir}/sounds/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man6/%{name}.6.*

#-----------------------------------------

%prep
%setup -q

%build
%configure2_5x \
    --prefix=%{_prefix} \
    --bindir=%{_gamesbindir}

%make

%install
%makeinstall_std
rm -fr %{buildroot}%{_defaultdocdir}/%{name}-*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 407 |21cr|bb-1.3.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	AA demo
Name:		bb
Version:	1.3.0
Release:	15
License:	GPLv2+
Group:		Games/Other
Url:		http://aa-project.sourceforge.net/aalib/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-1.3.0-timer.patch
BuildRequires:	aalib-devel
BuildRequires:	libmikmod-devel

%description
BB is a portable demo based on AAlib

%files
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p0

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 408 |21cr|bbkeys-0.9.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bbkeys, a configurable key-grabber for blackbox
Name:		bbkeys
Version:	0.9.1
Release:	8
License:	MIT
Group:		Graphical desktop/Other
Source0:	http://heanet.dl.sourceforge.net/sourceforge/bbkeys/%name-%version.tar.gz
Source1:	%{name}-16x16.png
Source2:	%{name}-32x32.png
Source3:	%{name}-48x48.png
Url:		http://bbkeys.sourceforge.net/
BuildRequires:	blackbox-devel
BuildRequires:	pkgconfig(x11)

%description
Bbkeys is a configurable key-grabber designed for the blackbox window 
manager which is written by Brad Hughes.
It is based on the bbtools object code created by John Kennis
and re-uses some of the blackbox window manager classesas well.
Bbkeys is easily configurable via directly hand-editing ~/.bbkeysrc
file, or by using the gui configuration tool bbconf.

%files
%doc AUTHORS BUGS ChangeLog LICENSE INSTALL NEWS TODO README
%attr(755,root,root)
%{_bindir}/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_mandir}/man1/*
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Bbkeys, a configurable key-grabber for blackbox
Exec=%{name} -c
Icon=%{name}
Terminal=false
Type=Application
Categories=Settings;DesktopSettings;
EOF

#icon
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_liconsdir}
install -d %{buildroot}%{_miconsdir}
install %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

rm -fr %{buildroot}%{_prefix}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 409 |21cr|bblaunch-0.0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: An application launcher for Blackbox type window managers
Name: bblaunch
Version: 0.0.3
Release: 12
Source0: http://folk.uio.no/~steingrd/%{name}-%{version}.tar.bz2
Source1: %{name}.1
Patch0: bblaunch-0.0.3.typo.patch
License: GPL
Group: Graphical desktop/Other
Url: http://blackboxwm.sourceforge.net/
BuildRequires: pkgconfig(x11)

%description
bblaunch is an application launcher that lets you set certain blackbox related
attributes on the launched program.  You can use it to run an application with
no decorations, to immediately have it sent to a specific workspace, to have it
visible on all workspaces and so on and so on.

%prep
%setup -q
%patch0 -p1 -b .typo

%build
# (blino) the default -O2 optimization makes bblaunch segfault
export CFLAGS="%optflags -O0"
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
install -d -m 755 ${RPM_BUILD_ROOT}%{_mandir}/man1/
install -m 644 %{SOURCE1} ${RPM_BUILD_ROOT}%{_mandir}/man1/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 410 |21cr|bbrun-1.6-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Run window for Blackbox
Name:		bbrun
Version:	1.6
Release:	14
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.darkops.net/bbrun
Source0:	http://www.darkops.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		bbrun-1.6-linkage.patch
Patch1:		bbrun-1.6-gcc5.patch
Patch2:		bbrun-1.6-gcc10.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)

%description
bbrun is a run window for Blackbox with dropdown history list.

%files
%doc README Changelog COPYING CREDITS
%{_bindir}/bbrun
%{_datadir}/applications/rosa-%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
chmod 0644 wmgeneral/*.c wmgeneral/*.h

%build
cd bbrun
%make

%install
install -d %{buildroot}%{_bindir}
install -m 755 bbrun/bbrun %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=BB Run
Comment=BlackBox Run Window
Exec=%{_bindir}/%{name}
Icon=office_accessories_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Office-Accessories;Office;Utility;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 411 |21cr|bcfg2-1.4.0-0.pre1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _rc pre1

Name:		bcfg2
Version:	1.4.0
Release:	0.pre1.1
Summary:	A configuration management system
Group:		System/Base
License:	BSD
URL:		http://bcfg2.org
Source0:	ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-%{version}pre1.tar.gz
Source1:	ftp://ftp.mcs.anl.gov/pub/bcfg/bcfg2-%{version}pre1.tar.gz.gpg
BuildArch:	noarch
Requires(post):	rpm-helper
Requires(preun):	rpm-helper

BuildRequires:	python3-setuptools
BuildRequires:	python3-lxml
Requires:	python3-lxml

%description
Bcfg2 helps system administrators produce a consistent, reproducible,
and verifiable description of their environment, and offers
visualization and reporting tools to aid in day-to-day administrative
tasks. It is the fifth generation of configuration management tools
developed in the Mathematics and Computer Science Division of Argonne
National Laboratory.

It is based on an operational model in which the specification can be
used to validate and optionally change the state of clients, but in a
feature unique to bcfg2 the client's response to the specification can
also be used to assess the completeness of the specification. Using
this feature, bcfg2 provides an objective measure of how good a job an
administrator has done in specifying the configuration of client
systems. Bcfg2 is therefore built to help administrators construct an
accurate, comprehensive specification.

Bcfg2 has been designed from the ground up to support gentle
reconciliation between the specification and current client states. It
is designed to gracefully cope with manual system modifications.

Finally, due to the rapid pace of updates on modern networks, client
systems are constantly changing; if required in your environment,
Bcfg2 can enable the construction of complex change management and
deployment strategies.

%files
%doc examples COPYRIGHT README
%{_mandir}/man1/bcfg2.1*
%{_mandir}/man5/bcfg2*.5*
%ghost %attr(600,root,root) %config(noreplace) %{_sysconfdir}/bcfg2.cert
%ghost %attr(600,root,root) %config(noreplace) %{_sysconfdir}/bcfg2.conf
%config(noreplace) %{_sysconfdir}/sysconfig/bcfg2
%{_sysconfdir}/cron.daily/bcfg2
%{_sysconfdir}/cron.hourly/bcfg2
%{_initrddir}/bcfg2
%{_sbindir}/bcfg2
%{_libexecdir}/bcfg2-cron
%dir %{_var}/cache/bcfg2
%{python3_sitelib}/Bcfg2*.egg-info
%dir %{python3_sitelib}/Bcfg2
%{python3_sitelib}/Bcfg2/__init__.*
%{python3_sitelib}/Bcfg2/Client
%{python3_sitelib}/Bcfg2/Logger.*
%{python3_sitelib}/Bcfg2/Options
%{python3_sitelib}/Bcfg2/Compat.*
%{python3_sitelib}/Bcfg2/Reporting
%{python3_sitelib}/Bcfg2/Utils.*
%{python3_sitelib}/Bcfg2/manage.*
%{python3_sitelib}/Bcfg2/DBSettings.*
%{python3_sitelib}/Bcfg2/version.*

#-----------------------------------------------------------------------

%package server
Summary:	Configuration management server
Group:		System/Base
Requires:	bcfg2 = %{version}-%{release}
Requires:	sendmail
Requires:	openssl
Requires:	python3-gamin
Requires:	python3-genshi
Requires:	python3-cheetah
Requires:	graphviz
Requires(post):	rpm-helper
Requires(preun): rpm-helper

%description server
Configuration management server

%files server
%{_mandir}/man8/bcfg2*.8*
%ghost %attr(600,root,root) %config(noreplace) %{_sysconfdir}/bcfg2.key
%config(noreplace) %{_sysconfdir}/sysconfig/bcfg2-server
%{_initrddir}/bcfg2-server
%{_datadir}/bcfg2
%{_sbindir}/bcfg2-*
%dir %{_var}/lib/bcfg2
%{python3_sitelib}/Bcfg2/Server

#-----------------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}%{?_rc:%{_rc}}

# fixup some paths
perl -pi -e 's@/etc/default@%{_sysconfdir}/sysconfig@g' debian/bcfg2.init
perl -pi -e 's@/etc/default@%{_sysconfdir}/sysconfig@g' debian/bcfg2-server.init
perl -pi -e 's@/etc/default@%{_sysconfdir}/sysconfig@g' tools/bcfg2-cron

perl -pi -e 's@/usr/lib/bcfg2@%{_libexecdir}@g' debian/bcfg2.cron.daily
perl -pi -e 's@/usr/lib/bcfg2@%{_libexecdir}@g' debian/bcfg2.cron.hourly

# don't start servers by default
perl -pi -e 's@chkconfig: (\d+)@chkconfig: -@' debian/bcfg2.init
perl -pi -e 's@chkconfig: (\d+)@chkconfig: -@' debian/bcfg2-server.init

# get rid of extraneous shebangs
for f in `find src/lib -name \*.py`
do
    sed -i -e '/^#!/,1d' $f
done

%build
python3 setup.py build
#python3 setup.py build_sphinx

%install
python3 setup.py install --skip-build --root %{buildroot}

mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
mkdir -p %{buildroot}%{_sysconfdir}/cron.hourly
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_libexecdir}
mkdir -p %{buildroot}%{_var}/lib/bcfg2
mkdir -p %{buildroot}%{_var}/cache/bcfg2
mkdir -p %{buildroot}%{_defaultdocdir}/bcfg2-doc-%{version}%{?_pre:pre%{_pre}}

mv %{buildroot}%{_bindir}/bcfg2* %{buildroot}%{_sbindir}

install -m 755 debian/bcfg2.init %{buildroot}%{_initrddir}/bcfg2
install -m 755 debian/bcfg2-server.init %{buildroot}%{_initrddir}/bcfg2-server
install -m 755 debian/bcfg2.cron.daily %{buildroot}%{_sysconfdir}/cron.daily/bcfg2
install -m 755 debian/bcfg2.cron.hourly %{buildroot}%{_sysconfdir}/cron.hourly/bcfg2
install -m 755 tools/bcfg2-cron %{buildroot}%{_libexecdir}/bcfg2-cron

install -m 644 debian/bcfg2.default %{buildroot}%{_sysconfdir}/sysconfig/bcfg2
install -m 644 debian/bcfg2-server.default %{buildroot}%{_sysconfdir}/sysconfig/bcfg2-server

touch %{buildroot}%{_sysconfdir}/bcfg2.cert
touch %{buildroot}%{_sysconfdir}/bcfg2.conf
touch %{buildroot}%{_sysconfdir}/bcfg2.key

%post
%_post_service bcfg2

%preun
%_preun_service bcfg2

%post server
%_post_service bcfg2-server

%preun server
%_preun_service bcfg2-server

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 412 |21cr|bchunk-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CD image format conversion from bin/cue to iso/cdr
Name:		bchunk
Version:	1.2.2
Release:	1
Group:		Archiving/Other
License:	GPLv2+
Url:		http://hes.iki.fi/bchunk
Source:		http://he.fi/bchunk/%{name}-%{version}.tar.gz

%description
This is a Unix/C rewrite of the fine BinChunker software for
some non-Unix system. The non-Unix version of BinChunker
can be found at http://home.ptd.net/~redline/binchunker.html .
Thanks go to Bob Marietta <marietrg@SLU.EDU>, the author of
BinChunker, for the extensive help, documentation and letting me
look at his Pascal/Delphi source code!

binchunker converts a CD image in a ".bin / .cue" format
(sometimes ".raw / .cue") to a set of .iso and .cdr tracks.

The bin/cue format is used by some non-Unix cd-writing
software, but is not supported on most other cd-writing
programs.

The .iso track contains an ISO file system, which can be
mounted through a loop device on Linux systems, or
written on a CD-R using cdrecord.

The .cdr tracks are in the native CD audio format. They can
be either written on a CD-R using cdrecord -audio, or converted
to WAV (or any other sound format for that matter) using
sox.

%files
%doc COPYING README
%{_bindir}/*
%{_mandir}/man1/*.*
#-------------------------------------------------------

%prep
%setup -q

%build
%make CFLAGS="%{optflags} -Wall -Wstrict-prototypes"

%install
install -m 755 -d  %{buildroot}%{_bindir}
install -m 755 bchunk %{buildroot}%{_bindir}
install -d  %{buildroot}%{_mandir}/man1
install -m 644 bchunk.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 413 |21cr|bcrypt-1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight blowfish file encryption utility
Name:		bcrypt
Version:	1.1
Release:	11
License:	BSD
Group:		Archiving/Other
Url:		http://bcrypt.sourceforge.net/index.html
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.1.bz2
BuildRequires:	pkgconfig(zlib)

%description
bcrypt is a blowfish file encryption utility which aims for cross-platform
portability. In addition to providing 448-bit encryption, bcrypt can overwrite
input files with random garbage before deletion in order to make low-level
data recovery much more difficult.

%files
%doc README LICENSE
%{_bindir}/*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
install -m755 bcrypt -D %{buildroot}%{_bindir}/bcrypt
install -m644 %{SOURCE1} -D %{buildroot}%{_mandir}/man1/%{name}.1.bz2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 414 |21cr|become-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		become
Version:	1.0
Release:	1
URL:		http://www.bindshell.net/tools/become
Source:		http://www.bindshell.net/tools/become/become.tgz
Summary:	Utility to changes the effective, or real, user and group id
License:	BSD
Group:		System/Base
%description
The become utility changes the current effective, or real, user and
group identity to those specified on the command line. The default shell
(/bin/sh) is then executed.
UID and GID are specified numercially and do not have to be currently
defined on the system.

%prep
%setup -q -n %{name}

%build
%{make}
lzma become.8

%install
%{__rm} -Rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man8
%{__install} -c become %{buildroot}%{_sbindir}
%{__install} -c -m 644 become.8.lzma %{buildroot}%{_mandir}/man8

%files
%doc LICENSE
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 415 |21cr|bedup-0.10.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		bedup
Version:	0.10.1
Release:	3
Summary:	Deduplication for Btrfs
Url:		https://github.com/g2p/bedup
License:	GPLv2
Group:		System/Kernel and hardware
Source:		https://github.com/g2p/bedup/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-cffi
BuildRequires:	python3-cparser
BuildRequires:	python3-distribute
BuildRequires:	btrfs-devel

Requires:	python3-cparser
Requires:	python3-markupsafe

%description
bedup looks for new and changed files, making sure that multiple copies
of identical files share space on disk. It integrates deeply with btrfs
so that scans are incremental and low-impact.

%prep
%setup

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root=%{buildroot} --install-lib %{py3_puresitedir}
 
%files
%{_bindir}/%{name}
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 416 |21cr|beecrypt-4.2.1-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with python
%bcond_without cplusplus
%bcond_with docs
%ifnarch %{mips} %{riscv}
%bcond_without java
%else
%bcond_with java
%endif

%define major 7
%define libname %mklibname %{name} %{major}
%define libname_cxx %mklibname %{name}_cxx %{major}
%define libname_java %mklibname %{name}_java %{major}
%define devname %mklibname %{name} -d

Summary:	An open source cryptography library
Name:		beecrypt
Version:	4.2.1
Release:	25
License:	LGPLv2+
Group:		System/Libraries
Url:		http://beecrypt.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/beecrypt/%{name}-%{version}.tar.gz
Patch0:		beecrypt-4.1.2-biarch.patch
# AdamW: ugly patch simply defines upstream's odd libaltdir variable to be 
# equal to libdir in one places. Also replaces a similarly weird pythondir
# variable with hardcoded $(libdir)/python2.5 , so will stop working when
# python goes to 2.6. I expect upstream to have a better fix for this issue
# by then, so it won't matter. The problem is that beecrypt tries to set this
# libaltdir variable to /usr/lib or /usr/lib64 depending on the arch in use
# which it tests by grepping the default CFLAGS for --march=x86_64 . Ours
# don't include this, so the test breaks. Upstream should simply be using
# standard libdir variable. (This is mostly fixed now (2008/02), only two
# instances left).
Patch1:		beecrypt-4.2.0-lib64.patch
Patch2:		beecrypt-4.2.0-link.patch
Patch3:		beecrypt-4.2.1-py_platsitedir.diff
Patch4:		beecrypt-4.2.1-gcc4.7.patch
Patch5:		beecrypt_arm_configure_fix.patch
Patch6:		beecrypt-4.2.1-icu-61.patch
Patch7:		beecrypt-4.2.1-cast-uchar.patch
%if %{with docs}
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	m4
BuildRequires:	texlive
BuildRequires:	texlive-graphics
BuildRequires:	texlive-doublestroke
%endif
BuildRequires:	gomp-devel
%if %{with python}
BuildRequires:	pkgconfig(python3)
%endif
%if %{with cplusplus}
BuildRequires:	icu-devel
%endif
%if %{with java}
BuildRequires:	java-1.8.0-devel
%endif

%description
Beecrypt is a general-purpose cryptography library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An open source cryptography library
Group:		System/Libraries

%description -n %{libname}
Beecrypt is a general-purpose cryptography library.

%files -n %{libname}
%doc README BENCHMARKS
%{_libdir}/libbeecrypt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for developing applications with beecrypt
Group:		Development/C
%if %{with cplusplus}
Requires:	%{libname_cxx} = %{EVRD}
%endif
%if %{with java}
Requires:	%{libname_java} = %{EVRD}
%endif
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Beecrypt is a general-purpose cryptography library.  This package contains
files needed for developing applications with beecrypt.

%files -n %{devname}
%if %{with docs}
%doc BUGS docs/html docs/latex
%endif
%{_includedir}/%{name}
%if %{with cplusplus}
%{_libdir}/%{name}/base.so
%{_libdir}/%{name}/*.a
%endif
%{_libdir}/*.a
%{_libdir}/*.so

#----------------------------------------------------------------------------

%if %{with python}
%package python
Summary:	Files needed for python applications using beecrypt
Group:		Development/Python

%description python
Beecrypt is a general-purpose cryptography library.  This package contains
files needed for using python with beecrypt.

%files python
%{py3_platsitedir}/_bc.so
%endif

#----------------------------------------------------------------------------

%if %{with cplusplus}
%package -n %{libname_cxx}
Summary:	Files needed for C++ applications using beecrypt
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{libname_cxx}
Beecrypt is a general-purpose cryptography library.  This package contains
files needed for using C++ with beecrypt.

%files -n %{libname_cxx}
%config %{_sysconfdir}/beecrypt.conf
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/base.so.*
%{_libdir}/libbeecrypt_cxx.so.%{major}*
%endif

#----------------------------------------------------------------------------

%if %{with java}
%package -n %{libname_java}
Summary:	Files needed for java applications using beecrypt
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{libname_java}
Beecrypt is a general-purpose cryptography library.  This package contains
files needed for using java with beecrypt.

%files -n %{libname_java}
%{_libdir}/libbeecrypt_java.so.%{major}*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .biarch
%patch1 -p0 -b .lib64
%patch2 -p1 -b .link
%patch3 -p0
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1

./autogen.sh

%build
# text relocation error
%ifarch aarch64
%global optflags %optflags -Ofast -falign-functions=32 -fno-math-errno -fno-trapping-math -fopenmp -fuse-ld=bfd --std=gnu++14
%else
%global optflags %optflags -Ofast -falign-functions=32 -fno-math-errno -fno-trapping-math -fopenmp --std=gnu++14
%endif

%configure \
	--enable-shared \
	--enable-static \
%if %{with python}
	--with-python=%{__python3} \
%else
	--with-python=no \
%endif
%if %{with cplusplus}
	--with-cplusplus \
%endif
%if %{with java}
	--with-java
%endif

%make

%if %{with docs}
pushd include/beecrypt
doxygen
cd c++
doxygen
popd
%endif

%install
%makeinstall_std

# XXX nuke unpackaged files, artifacts from using libtool to produce module
rm -f %{buildroot}%{py3_platsitedir}/_bc.*a

# XXX delete next line to build with legacy, non-check aware, rpmbuild.
%check
make check || :
cat /proc/cpuinfo
make bench || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 417 |21cr|beediff-1.9-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Graphical file comparator
Name:    beediff
Version: 1.9
Release: 8
License: GPLv2+
Group:   File tools
URL:     http://www.beesoft.org/index.php?id=beediff
Source0: http://www.beesoft.org/download/%{name}_%{version}_src.tar.gz
BuildRequires: qt4-devel

%description
BeeDiff (beediff) is a graphical file comparator.
User have a possibilty to compare a two text files.
All differences are highlighted in colors.

%prep
%setup -q -n %{name}

%build
%qmake_qt4
%make

%install
rm -rf $RPM_BUILD_ROOT

install -D %{name} %{buildroot}/%{_bindir}/%{name}
install -D img/%{name}.png %{buildroot}/%{_iconsdir}/%{name}.png

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc licence.txt
%{_bindir}/%{name}
%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 418 |21cr|beep-1.4.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Beep the PC speaker any number of ways
Name:		beep
Version:	1.4.12
Release:	2
License:	GPLv2+
Group:		Sound
# Old stuff: http://www.johnath.com/beep/
# Use a more recent fork
Url:		https://github.com/spkr-beep/beep/
Source0:	https://github.com/spkr-beep/beep/archive/%{name}-%{version}.tar.gz
Source1:	70-pcspkr-beep.rules
Source2:	90-pcspkr-beep.rules
Source3:	pcspkr-beep.conf
Source4:	beep.sysusers.conf
Source5:	README.usage
Patch0:	beep-1.4.12-add-SIGHUP-handling.patch
BuildRequires:	kernel-headers
BuildRequires:	systemd-units
BuildRequires:	ubsan-devel
# For /etc/modprobe.conf.d
Requires:	kmod-compat
Requires(pre):	rpm-helper
Requires(pre):	systemd

%description
Beep allows the user to control the PC speaker with precision, allowing
different sounds to indicate different events. While it can be run quite
happily on the command line, it's intended place of residence is within
shell/Perl scripts, notifying the user when something interesting occurs.
Of course, it has no notion of what's interesting, but it's real good at the
notifying part.

%files
%doc COPYING CREDITS.md NEWS.md README.md PERMISSIONS.md
%doc README.usage
%config(noreplace) %{_sysconfdir}/modprobe.d/%{name}.conf
%config(noreplace) %{_sysconfdir}/modules-load.d/%{name}.conf
%{_udevrulesdir}/70-pcspkr-%{name}.rules
%{_udevrulesdir}/90-pcspkr-%{name}.rules
%{_sysusersdir}/%{name}.conf
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_docdir}/%{name}/contrib/*

%pre
%sysusers_create_package %{name} %{SOURCE4}

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

install -m 0644 %{SOURCE5} .


%build
%make prefix="%{_prefix}" COMPILERS=gcc CFLAGS_gcc="%{optflags}" LDFLAGS="%{ldflags}" CPPFLAGS_gcc="%{optflags}"


%install
%makeinstall_std prefix="%{_prefix}" COMPILERS=gcc CFLAGS_gcc="%{optflags}" LDFLAGS="%{ldflags}" CPPFLAGS_gcc="%{optflags}"

# 1. Prepare the needed dirs
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
mkdir -p %{buildroot}%{_udevrulesdir}/
mkdir -p %{buildroot}%{_sysusersdir}/

# 2. Install our stuff
install -m 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/
install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/modprobe.d/%{name}.conf
install -m 644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf

# To allow loading pcspkr module on-demand
echo "pcspkr" > %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

# Drop what we already pick up with our %%doc macro
rm -f  %{buildroot}%{_docdir}/%{name}/{CREDITS,NEWS}.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 419 |21cr|beep-1.4.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Beep the PC speaker any number of ways
Name:		beep
Version:	1.4.9
Release:	2
License:	GPLv2+
Group:		Sound
# Old stuff: http://www.johnath.com/beep/
# Use a more recent fork
Url:		https://github.com/spkr-beep/beep/
Source0:	https://github.com/spkr-beep/beep/archive/%{name}-%{version}.tar.gz
Source1:	70-pcspkr-beep.rules
Source2:	90-pcspkr-beep.rules
Source3:	pcspkr-beep.conf
Source4:	beep.sysusers.conf
Source5:	README.usage
BuildRequires:	kernel-headers
BuildRequires:	systemd-units
# For /etc/modprobe.conf.d
Requires:	kmod-compat
Requires(pre):	rpm-helper
Requires(pre):	systemd

%description
Beep allows the user to control the pc-speaker with precision, allowing
different sounds to indicate different events. While it can be run quite
happily on the commandline, it's intended place of residence is within
shell/perl scripts, notifying the user when something interesting occurs.
Of course, it has no notion of what's interesting, but it's real good at the
notifying part.

%files
%doc CHANGELOG COPYING CREDITS README.md PERMISSIONS.md
%doc README.usage
%config(noreplace) %{_sysconfdir}/modprobe.d/%{name}.conf
%config(noreplace) %{_sysconfdir}/modules-load.d/%{name}.conf
%{_udevrulesdir}/70-pcspkr-%{name}.rules
%{_udevrulesdir}/90-pcspkr-%{name}.rules
%{_sysusersdir}/%{name}.conf
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_docdir}/%{name}/contrib/*-beeps

%pre
%sysusers_create_package %{name} %{SOURCE4}

#-----------------------------------------------------------------------------

%prep
%setup -q
install -m 0644 %{SOURCE5} .


%build
%make COMPILERS=gcc CFLAGS_gcc="%{optflags}" LDFLAGS="%{ldflags}" CPPFLAGS_gcc="%{optflags}"


%install
%makeinstall_std COMPILERS=gcc CFLAGS_gcc="%{optflags}" LDFLAGS="%{ldflags}" CPPFLAGS_gcc="%{optflags}"

# 1. Prepare the needed dirs
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
mkdir -p %{buildroot}%{_udevrulesdir}/
mkdir -p %{buildroot}%{_sysusersdir}/

# 2. Install our stuff
install -m 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/
install -m 644 %{SOURCE2} %{buildroot}%{_udevrulesdir}/
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/modprobe.d/%{name}.conf
install -m 644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf

# To allow loading pcspkr module on-demand
echo "pcspkr" > %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 420 |21cr|beesu-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define nbmversion 1.7

Summary:	Graphical wrapper for su
Name:		beesu
Version:	2.7
Release:	1
License:	GPLv2+
Group:		System/Base
Url:		http://www.honeybeenet.altervista.org
Source0:	http://honeybeenet.altervista.org/beesu/files/beesu-sources/%{name}-%{version}.tar.bz2
Source1:	http://honeybeenet.altervista.org/beesu/files/beesu-manager/nautilus-beesu-manager-%{nbmversion}.tar.bz2
Patch1:		beesu-nautilus-no-browser.patch
Requires:	pam
Requires:	usermode

%description
Beesu is a wrapper around su and works with consolehelper to let you
have a graphic interface like gksu.

%package -n nautilus-beesu-manager
Summary:	Utility to add beesu scripts to nautilus
Version:	2.7
Group:		Graphical desktop/Other
Requires:	beesu
Requires:	zenity
Requires:	nautilus
BuildArch:	noarch

%description -n nautilus-beesu-manager
nautilus-beesu-manager is a little utility to add some useful scripts
to the Nautilus file browser; nautilus-beesu-manager can add scripts
to Nautilus using beesu to elevate the user's privileges to root.

%prep
%setup -q -a1
chmod -x nautilus-beesu-manager-%{nbmversion}/COPYING nautilus-beesu-manager-%{nbmversion}/README
%patch1 -p1

%build
%make CFLAGS="%{optflags} -fno-delete-null-pointer-checks"

%install
mkdir -p %{buildroot}%{_datadir}/%{name}

%makeinstall_std

#nbm
pushd nautilus-beesu-manager-%{nbmversion}
mkdir -v -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
mkdir -v -p %{buildroot}%{_datadir}/applications/
install -p -m 755 nautilus-beesu-manager %{buildroot}%{_bindir}
install -p -m 644 nautilus-beesu-manager.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
desktop-file-install --dir %{buildroot}%{_datadir}/applications --mode 0644 nautilus-beesu-manager.desktop
mkdir -v -p %{buildroot}%{_libexecdir}/nautilus-beesu-manager/
install -p -m 755 libexec/api %{buildroot}%{_libexecdir}/nautilus-beesu-manager/
cp -a libexec/scripts %{buildroot}%{_libexecdir}/nautilus-beesu-manager/
install -p -m 644 libexec/local-launcher %{buildroot}%{_libexecdir}/nautilus-beesu-manager/
popd

%files
%doc COPYING README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%{_sysconfdir}/profile.d/%{name}-bash-completion.sh
%{_sbindir}/%{name}
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.xz

%files -n nautilus-beesu-manager
%doc nautilus-beesu-manager-%{nbmversion}/COPYING nautilus-beesu-manager-%{nbmversion}/README
%{_bindir}/nautilus-beesu-manager
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/32x32/apps/nautilus-beesu-manager.png
%{_libexecdir}/nautilus-beesu-manager/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 421 |21cr|beret-1.2.1-0.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           beret
Version:        1.2.1
Release:        0.3
Summary:        2D puzzle-platformer starring a telekinetic scientist
Group:          Games/Arcade
License:        LGPLv2
Url:            http://kiwisauce.com/beret
# git clone https://gitorious.org/beret/beret.git beret-1.2.1 && tar czf beret-1.2.1.tar.gz beret-1.2.1
Source0:        %{name}-%{version}.tar.gz
Patch0:         math_lib.patch
Patch1:         beret-1.2.1-config-paths.patch

BuildRequires:  icoutils
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(SDL_ttf)
Requires:       %{name}-data >= %{EVRD}

%description
Beret is a 2D puzzle-platformer game about a scientist named Beret
who has gained telekinetic abilities through his research at the Evil
Corporation. He decides that the Evil Corporation is too evil for his
liking, and begins his solitary quest to overthrow the corporation
and punish the evil deeds of his employers.

%package data
Summary:        Data files for the Beret game
BuildArch:      noarch
Group:          Games/Arcade

%description data
This package contains arch-independent data needed by the game Beret,
whose binary is shipped in the %{name} package.

%prep
%setup -q 
%patch0 -p1
%patch1 -p1

%build
%make OPTFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -D -m755 %{name} %{buildroot}%{_gamesbindir}/%{name}

install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a images music rooms sfx AveriaSans-Regular.ttf \
    %{buildroot}%{_gamesdatadir}/%{name}

install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Beret
GenericName=Puzzle platformer
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

icotool -x images/icon.ico
install -D -m644 icon_3_32x32x8.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files
%doc lgpl-3.0.txt FONTLOG.txt README.txt OFL.txt
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files data
%doc lgpl-3.0.txt FONTLOG.txt README.txt OFL.txt
%{_gamesdatadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 422 |21cr|berusky-1.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dversion 1.7

Summary:	Sokoban clone
Name:		berusky
Version:	1.7.2
Release:	1
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://www.anakreon.cz/
Source0:	http://www.anakreon.cz/download/%{name}-%{version}.tar.gz
Source1:	berusky.png
Patch0:		berusky-1.7.2-paths.patch
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
Requires:	%{name}-data >= %{dversion}

%description
Berusky is a 2D logic game based on an ancient puzzle named Sokoban.

An old idea of moving boxes in a maze has been expanded with new logic
items such as explosives, stones, special gates and so on.
In addition, up to five bugs can cooperate and be controlled by the player.

This package contains a binary for the game.

%files
%doc AUTHORS ChangeLog README TODO
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

touch config.rpath ABOUT-NLS
sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' -e 's,AM_PROG_CC_STDC,AC_PROG_CC,g' configure.*

%build
%global optflags %{optflags} -std=c++14
%configure
%make

%install
%makeinstall_std

# Remove docs from a wrong directory
rm -rf %{buildroot}%{_prefix}/doc

# Install icon
install -D -p %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

# Desktop-file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Berusky
Comment=Rescue the bugs!
Exec=%{_gamesbindir}/%{name}
Terminal=false
Type=Application
StartupNotify=false
Icon=%{name}
Categories=Game;LogicGame;
EOF

# Move berusyk.ini to /etc
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/%{name}.ini %{buildroot}%{_sysconfdir}/%{name}

# Remove empty %{_datadir}, and create %{_gamesdatadir} for files from berusky-data
rm -fR %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}

# Move binary to /usr/games
mv %{buildroot}%{_bindir} %{buildroot}%{_gamesbindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 423 |21cr|berusky-data-1.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname berusky

Name:		%{oname}-data
Version:	1.7
Release:	4
Summary:	Game data files for Berusky
License:	GPLv2+
Group:		Games/Puzzles
URL:		http://www.anakreon.cz/
Source0:	http://www.anakreon.cz/download/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
A datafile for Berusky. Berusky is a 2D logic game based on an ancient
puzzle named Sokoban.

An old idea of moving boxes in a maze has been expanded with new logic
items such as explosives, stones, special gates and so on.
In addition, up to five bugs can cooperate and be controlled by the player.

This package contains a data for the game, i.e. files with graphics, levels,
game rules and configuration.


%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_gamesdatadir}/%{oname}

cp -p -R GameData %{buildroot}%{_gamesdatadir}/%{oname}
cp -p -R Graphics %{buildroot}%{_gamesdatadir}/%{oname}
cp -p -R Levels   %{buildroot}%{_gamesdatadir}/%{oname}

# berusky.ini is installed from the berusky package

%files
%doc README COPYING
%{_gamesdatadir}/%{oname}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 424 |21cr|be-shell-0-0.20150112.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20150112

Summary:	Plasma shell replacement for KDE4
Name:		be-shell
Version:	0
Release:	0.%{git}.2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://sourceforge.net/p/be-shell/
# git snapshot
Source0:	%{name}-code-%{git}.tar.bz2
Source1:	be-shell-off
Source2:	be-shell-on
Patch0:		be-shell-code-20150112-startup-service.patch
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xrender)
Requires:	kdebase4-workspace >= 2:4.11.15-4
Conflicts:	kdebase4-workspace < 2:4.11.15-4
Requires(post,preun):	update-alternatives

%description
Plasma shell replacement for KDE4. The focus is on control and understanding.

Use be-shell-on command to switch from Plasma to BE::Shell.

Use be-shell-off command to switch from BE::Shell to Plasma.

See http://sourceforge.net/p/be-shell/wiki/Home/ for more instructions.

%files -f be.shell.lang
%doc COPYING README
%{_kde_bindir}/be.shell
%{_kde_bindir}/be-shell-off
%{_kde_bindir}/be-shell-on
%dir %{_kde_datadir}/%{name}
%{_kde_datadir}/%{name}/*

%post
%{_sbindir}/update-alternatives --install %{_kde_autostart}/krunner-alt.desktop krunner.desktop %{_kde_datadir}/%{name}/autostart/krunner.desktop 5
%{_sbindir}/update-alternatives --install %{_kde_autostart}/plasma-desktop-alt.desktop plasma-desktop.desktop %{_kde_datadir}/%{name}/autostart/plasma-desktop.desktop 5
%{_sbindir}/update-alternatives --install %{_kde_autostart}/be.shell-alt.desktop be.shell.desktop %{_kde_datadir}/%{name}/autostart/be.shell-on.desktop 5
%{_sbindir}/update-alternatives --install %{_kde_autostart}/be.shell-alt.desktop be.shell.desktop %{_kde_datadir}/%{name}/autostart/be.shell-off.desktop 10

%preun
if [ $1 -eq 0 ]; then
    %{_sbindir}/update-alternatives --remove krunner.desktop %{_kde_datadir}/%{name}/autostart/krunner.desktop
    %{_sbindir}/update-alternatives --remove plasma-desktop.desktop %{_kde_datadir}/%{name}/autostart/plasma-desktop.desktop
    %{_sbindir}/update-alternatives --remove be.shell.desktop %{_kde_datadir}/%{name}/autostart/be.shell-on.desktop
    %{_sbindir}/update-alternatives --remove be.shell.desktop %{_kde_datadir}/%{name}/autostart/be.shell-off.desktop
fi

#--------------------------------------------------------------------

%prep
%setup -qn %{name}-code-%{git}
%patch0 -p1

%build
%cmake_kde4

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_kde_datadir}/%{name}/autostart
install -m 0644 krunner.desktop %{buildroot}%{_kde_datadir}/%{name}/autostart/krunner.desktop
install -m 0644 plasma-desktop.desktop %{buildroot}%{_kde_datadir}/%{name}/autostart/plasma-desktop.desktop
mv %{buildroot}%{_kde_autostart}/be.shell.desktop %{buildroot}%{_kde_datadir}/%{name}/autostart/be.shell-on.desktop
cp %{buildroot}%{_kde_datadir}/%{name}/autostart/be.shell-on.desktop %{buildroot}%{_kde_datadir}/%{name}/autostart/be.shell-off.desktop
sed s,"Hidden=false","Hidden=true",g -i %{buildroot}%{_kde_datadir}/%{name}/autostart/be.shell-off.desktop

cp -r examples %{buildroot}%{_kde_datadir}/%{name}/
cp -r scripts %{buildroot}%{_kde_datadir}/%{name}/
cp -r wallpaper %{buildroot}%{_kde_datadir}/%{name}/

install -m 0755 %{SOURCE1} %{buildroot}%{_kde_bindir}/be-shell-off
install -m 0755 %{SOURCE2} %{buildroot}%{_kde_bindir}/be-shell-on

%find_lang be.shell

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 425 |21cr|bfast-0.7.0a-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Blat-like Fast Accurate Search Tool
Name:		bfast
Version:	0.7.0a
Release:	5
License:	GPLv2+ and MIT
Group:		Sciences/Physics
Url:		http://bfast.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		bfast-0.7.0a-linkage.patch
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)

%description
BFAST facilitates the fast and accurate mapping of short reads to
reference sequences.  Some advantages of BFAST include:

Speed: enables billions of short reads to be mapped quickly.

Accuracy: A priori probabilities for mapping reads with defined set of
variants.

An easy way to measurably tune accuracy at the expense of speed.

Specifically, BFAST was designed to facilitate whole-genome
resequencing, where mapping billions of short reads with variants is
of utmost importance.

BFAST supports both Illumina and ABI SOLiD data, as well as any other
Next-Generation Sequencing Technology (454, Helicos), with particular
emphasis on sensitivity towards errors, SNPs and especially
indels. Other algorithms take short-cuts by ignoring errors, certain
types of variants (indels), and even require further alignment, all to
be the "fastest" (but still not complete). BFAST is able to be tuned
to find variants regardless of the error-rate, polymorphism rate, or
other factors.

%files
%doc AUTHORS ChangeLog NEWS README LICENSE
%doc manual/bfast-book.pdf
%{_bindir}/balignmentscoredistribution
%{_bindir}/balignsim
%{_bindir}/bevalsim
%{_bindir}/bfast
%{_bindir}/bfast.resubmit.pl
%{_bindir}/bfast.submit.pl
%{_bindir}/bgeneratereads
%{_bindir}/bindexdist
%{_bindir}/bindexhist
%{_bindir}/bmfmerge
%{_bindir}/brepeat
%{_bindir}/btestindexes
%{_bindir}/ill2fastq.pl
%{_bindir}/solid2fastq

#----------------------------------------------------------------------------


%prep
%setup -q
%patch0 -p1

%build
%global optflags %{optflags} -fgnu89-inline
autoreconf -fi
# temporary fix for 32-bit build problem
sed -i '/^extended_CFLAGS=/ s/-m64//' configure
# Let configure honor CFLAGS
sed -i -e 's,^\(CFLAGS="${default_CFLAGS} ${extended_CFLAGS}"\),# \1,' configure*

%configure
%make

%install
%makeinstall_std

rm %{buildroot}/%{_docdir}/%{name}/LICENSE
rm %{buildroot}/%{_docdir}/%{name}/bfast-book.pdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 426 |21cr|bfr-1.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	General-purpose command-line pipe buffer
Name:		bfr
Version:	1.6
Release:	11
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.glines.org:8000/software/buffer.html
Source0:	%{name}-%{version}.tar.bz2
Patch0:		bfr-1.6-pod.patch

%description
Buffer is a general-purpose command-line pipe buffer. It buffers data from
stdin and sends it to stdout, adjusting to best fit the pace stdout can
handle. It can solve problems on either end of a pipe. For instance, if the
incoming stream is slower than outgoing, performance is mainly dependent on
the "start-stream threshold" you set. This can be used to group data into
larger packets to, for an example, reduce seeking on a tape drive. In the
case of the outgoing being slower, the "stop-stream threshold" prevents
unnecessary CPU from being taken up by reading single-bytes and such (if the
output stream accepts data one byte at a time, for instance), and will
output-only until the buffer goes down to 97% or so. This speeds up certain
procedures, such as creating a tar file, gzipping it, and putting it through
a program such as "netcat". It boosts performance by allowing a certain level
of detachment between the two... allowing tar and (especially) gzip to do its
work at the same time the network is doing its work, so you're not sending
one packet and THEN seeing gzip kick in to create the next.

The Buffer distribution also contains a variant of buffer named Bufplay (bfp).
Bufplay's purpose is to do the same sort of buffering as Buffer, but it is
intended for use with OSS, configuring /dev/dsp for the type of sound data
you specify and playing it. If, for some reason, you want to be cool like me
and have 60 megs of RAM inbetween mpg123 and your sound card, you can. =)

%files
%doc README
%{_bindir}/bfr
%{_bindir}/bfp
%{_mandir}/man1/bfr.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 427 |21cr|bgpq3-0.1.36.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	BGP filtering automation for cisco and juniper routers


Name:		bgpq3
Version:	0.1.36.1
Release:	1
License:	GPLv2
Group:		Text tools
URL:		http://snar.spb.ru/prog/bgpq3/
Source:		https://github.com/snar/bgpq3/archive/refs/tags/v%{version}.zip


%description
The bgpq3 ultility used to generate Cisco and 
Juniper prefix-lists, extended access-lists,
policy-statement terms and as-path lists 
based on RADB data.

%prep
%setup -q

%build
%configure
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -D -m 755 bgpq3 %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_mandir}/man8
install -D -m 644 bgpq3.8 %{buildroot}%{_mandir}/man8/

%files
%{_bindir}/*
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 428 |21cr|biabam-0.9.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Biabam Is A Bash Attachment Mailer
Name:		biabam
License:	GPL
Version:	0.9.7
Release:	10
Group:		Networking/Mail
URL:		http://mmj.dk/biabam/
Source0:	http://mmj.dk/biabam/%{name}-%{version}.tar.bz2
Requires:	sendmail-command
Requires:	sharutils
BuildArch:	noarch

%description
Biabam Is A Bash Attachment Mailer. In other words, BIABAM is a
tool that is used for mailing attachments from the commandline. It
is similar to using Mutt to send attachments on the commandline,
but without the overhead of a complete email client.

%prep

%setup -q

%build

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 biabam %{buildroot}%{_bindir}/biabam

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README
%attr(0755,root,root) %{_bindir}/biabam

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 429 |21cr|bib2html-6.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		bib2html
Version:	6.7
Release:	4
Summary:	BibTeX to HTML translator

URL:		http://www.arakhne.org/bib2ml/
Source:		http://download.tuxfamily.org/arakhne/pool/universe/b/bib2ml/bib2ml_%{version}-0arakhne0.tar.gz
Patch0:		bib2ml_6.7-encoding.patch
License:	GPL
Group:		Publishing
BuildArch:	noarch

%description
bib2html is a script which permits to generate a set of HTML or XML
pages from a BibTeX database.

%prep
%setup -q -n bib2ml-%{version}
%patch0 -p0

find . -type d | xargs chmod 755
find . -type f | xargs chmod 644

%build
# Build the manual pages

pod2man --section=1 --release="%{version}" --center=Bib2HTML --name=Bib2HTML man/bib2html_en.pod man/bib2html.1
pod2man --section=1 --release="%{version}" --center=Bib2HTML --name=Bib2HTML man/bib2html_fr.pod man/bib2html.fr.1
pod2man --section=1 --release="%{version}" --center=Bib2XML --name=Bib2XML man/bib2xml_en.pod man/bib2xml.1
pod2man --section=1 --release="%{version}" --center=Bib2XML --name=Bib2XML man/bib2xml_fr.pod man/bib2xml.fr.1
pod2man --section=1 --release="%{version}" --center=Bib2XML --name=Bib2XML man/bib2sql_en.pod man/bib2sql.1
pod2man --section=1 --release="%{version}" --center=Bib2XML --name=Bib2XML man/bib2sql_fr.pod man/bib2sql.fr.1

# Give the correct path to the pod files
perl -p -i -e 's/"\$basename"/"%{name}-%{version}"/' src/Bib2HTML/Main.pm

%install

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 src/bib2html.pl %{buildroot}%{_bindir}/bib2html
install -m 755 src/bib2xml.pl %{buildroot}%{_bindir}/bib2xml
install -m 755 src/bib2sql.pl %{buildroot}%{_bindir}/bib2sql

install -d -m 755 %{buildroot}%{perl_vendorlib}
cp -pr ./src/Bib2HTML %{buildroot}%{perl_vendorlib}

install -d -m 755 %{buildroot}%{_mandir}/man1
install -d -m 755 %{buildroot}%{_mandir}/fr/man1
install -m 644 man/bib2html.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -m 644 man/bib2xml.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -m 644 man/bib2html.fr.1 %{buildroot}%{_mandir}/fr/man1/%{name}.1
install -m 644 man/bib2xml.fr.1 %{buildroot}%{_mandir}/fr/man1/%{name}.1

%files
%doc Changelog COPYING AUTHORS README doc/* man/*.pod
%{perl_vendorlib}/*
%{_bindir}/*
%{_mandir}/man1/*
%lang(fr) %{_mandir}/fr/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 430 |21cr|bib2xhtml-3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bstdir /usr/share/texmf/bibtex/bst/bib2xhtml

Name:		bib2xhtml
Version:	3.0
Release:	3
Summary:	A program for converting BibTeX files into XHTML 1.0
License:	GPL 
Group:		Publishing
Url:		http://www.spinellis.gr/sw/textproc/bib2xhtml/
Source:		http://www.spinellis.gr/sw/textproc/bib2xhtml/%{name}-v%{version}.tar.gz
BuildRequires:	perl
Requires:	texlive-tetex
Requires:	perl(PDF::API2)
BuildArch:	noarch

%description
bib2xhtml is a program that converts BibTeX files into HTML
(specifically XHTML 1.0). The conversion is mostly done by specialized
BibTeX style files derived from converted bibliography style
templates. This ensures that the original BibTeX styles are faithfully
reproduced. Some postprocessing is performed by Perl code.

%prep
%setup -qn %{name}-v%{version}
# fix encoding
perl -pi -e 'tr/\r//d' *.html *.bib bib2xhtml

%build
perl gen-bst

%install
install -m 755 -d %{buildroot}%{_bindir} 
install -m 755 -d %{buildroot}%{_mandir}/man1
install -m 755 -d %{buildroot}%{bstdir}
install -m 755 bib2xhtml %{buildroot}%{_bindir}
install -m 644 bib2xhtml.man %{buildroot}%{_mandir}/man1/bib2xhtml.1
install -m 644 *.bst %{buildroot}%{bstdir}

%post
texhash

%postun
rm -rf %bstdir
texhash


%files
%doc ChangeLog COPYING *.html *.txt *.pdf example.bib
%{_bindir}/bib2xhtml
%{_mandir}/man1/bib2xhtml.1.*
%{bstdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 431 |21cr|bibletime-3.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bibletime
Version:	3.0.3
Release:	1
Summary:        Easy to use Bible study tool
License:        GPLv2+
Group:          Text tools
Url:            http://www.bibletime.info/
Source0:        https://github.com/bibletime/bibletime/releases/download/v%{version}/%{name}-%{version}.tar.xz

BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Help)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5WebEngine)
BuildRequires:  pkgconfig(Qt5WebEngineWidgets)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(sword) >= 1.9.0
BuildRequires:  pkgconfig(libclucene-core)
BuildRequires:  qt5-linguist-tools
BuildRequires:  cmake
BuildRequires:  docbook-style-xsl
BuildRequires:  fop
BuildRequires:  po4a
BuildRequires:  xsltproc

Requires:       sword >= 1.9.0

# fop 32 bit unsupported arch
ExclusiveArch:  aarch64 x86_64

%description
BibleTime is a free and easy to use bible study tool built with QT5.

BibleTime provides easy handling of digitized texts (Bibles, commentaries
and lexicons) and powerful features to work with these texts (search in
texts, write own notes, save, print etc.). Bibletime is a front-end for
the SWORD Bible Framework.

%files
%doc %{_docdir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/scalable/apps/info.%{name}.BibleTime.svg
%{_datadir}/applications/info.%{name}.BibleTime.desktop
%{_metainfodir}/info.%{name}.BibleTime.metainfo.xml
#--------------------------------------------

%prep
%setup -q

%build
%cmake_qt5

%make

%install
%makeinstall_std -C build

cp ChangeLog README.md LICENSE %{buildroot}%{_docdir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 432 |21cr|bibtex2html-1.99-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	A Tool for translating from BibTeX to HTML
Name:		bibtex2html
Version:	1.99
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://www.lri.fr/~filliatr/bibtex2html
Source0:	http://www.lri.fr/~filliatr/ftp/bibtex2html/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	hevea
BuildRequires:	tetex-latex
BuildRequires:	tetex-dvips
BuildRequires:	tetex-cmsuper
BuildRequires:	texlive
BuildRequires:	texlive-scheme-full
BuildRequires:	texlive-collection-langgerman
BuildRequires:	texlive-collection-langother
BuildRequires:	texlive-collection-langgreek
BuildRequires:	texlive-collection-langchinese
BuildRequires:	texlive-collection-langmongolian

%description
bibtex2html is a collection of tools for translating bibliographies
in BibTeX format to HTML. Here are some of these tools' more important
features:

* Handle any BibTeX style (even those producing multiple bibliographies);
* Use additional fields like abstract, url, ps, etc. to insert web links;
* Crossrefs are also replaced by links;
* Sort by dates or authors, in increasing or decreasing order;
* Read simple macros in TeX or LaTeX files;
* Show syntax errors in BibTeX files;
* Extract from one or several BibTeX files the set of entries satisfying
  a given criterion.

%files
%doc CHANGES COPYING README manual.pdf manual.html
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
# Removing unused lib from makefile
sed -i 's/-cclib -lstr//' Makefile.in

%build
%configure
%make
%make doc

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 755 aux2bib bib2bib bibtex2html %{buildroot}%{_bindir}
install -m 644 aux2bib.1 bib2bib.1 bibtex2html.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 433 |21cr|bibtool-2.68-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname BibTool

Summary:	A Tool for manipulating BibTeX data bases
Name:		bibtool
Version:	2.68
Release:	1
License:	GPLv1+
Group:		Publishing
Url:		http://www.ctan.org/tex-archive/biblio/bibtex/utils/bibtool
Source0:	http://mirrors.ctan.org/biblio/bibtex/utils/bibtool/%{oname}-%{version}.tar.gz
# from Fedora
Patch0:		BibTool-2.51-regex.patch
Patch1:		0001-old-font-commands-added.patch
Patch3:		0001-fix-duplicate-case-fix.patch
Patch4:		0001-support-for-make-check-fixed.patch
BuildRequires:	texlive

%description
BibTeX provides an easy to use means to integrate citations and
bibliographies into LaTeX documents. But the user is left alone with
the management of the BibTeX files. The program BibTool is intended to
fill this gap. BibTool allows the manipulation of BibTeX files which
goes beyond the possibilities --- and intentions --- of BibTeX.

%files
%license COPYING
%doc README* THANKS ToDo
%{_bindir}/*
%{_datadir}/%{oname}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}

sed -i -e 's%^#!/usr/local/bin/tclsh%#! %{_bindir}/tclsh%' Tcl/bibtool.tcl
sed -i -e 's%^#!/usr/local/bin/perl%#! %{_bindir}/perl%' Perl/bibtool.pl
# configure will recreate the directory, but only with config.h within
rm -rf regex-0.12

%build
%configure --libdir=%{_datadir}
sed -i -e 's#@kpathsea_lib_static@##' makefile
%make

%install
make install INSTALLPREFIX=%{buildroot} INSTALL='install -p -m 755'
make install-man INSTALLPREFIX=%{buildroot} INSTALL='install -p -m 644'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 434 |21cr|bibutils-7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define debug_package %{nil}

Summary:	Inter-convert between various bibliography formats
Name:		bibutils
Version:	7.1
Release:	1
License:	GPLv2+
Group:		Sciences/Computer science
Url:		http://www.scripps.edu/~cdputnam/software/bibutils/bibutils.html
Source0:	http://www.scripps.edu/~cdputnam/software/bibutils/%{name}_%{version}_src.tgz
Patch0:		add_missing_library.patch
Buildrequires:	tcsh

%description
Bibutils converts between bibliography formats
including BibTeX, RIS, Endnote (Refer), ISI,
COPAC, and Medline XML using a MODS v3.0 XML intermediate.

%prep
%setup -q -n %{name}_%{version}
# sed -i.orig "s|/usr/local/bin|%{_bindir}|" configure
# %patch0 -p1 -b .missinglib

%build
export CFLAGS="%{optflags}"
./configure --install-dir %_bindir --install-lib %_libdir

%make

%check
cd test
make
make test
cd ..

%install
rm -rf %{buildroot}
mkdir -p %buildroot%{_bindir}
%makeinstall_std INSTALLDIR=%{buildroot}%{_bindir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog readme.txt
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 435 |21cr|bigloo-4.5a-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define inplace `pwd`/inplace
%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

%define rel 1

# libbackrace.so is bundled and is outside of %%_libdir root,
# do not provide it and filter self-requires to it
# (not trying to use system libbacktrace because it has no releases)
%global __provides_exclude ^libbacktrace
%global __requires_exclude ^libbacktrace

Summary:	Compiler for the Scheme programming language
Name:		bigloo
Version:	4.5a
Release:	3
License:	GPLv2+
Group:		Development/C
Url:		http://www-sop.inria.fr/mimosa/fp/Bigloo
Source0:	ftp://ftp-sop.inria.fr/indes/fp/Bigloo/%{name}-%{version}-%{rel}.tar.gz
Source10:	%{name}.rpmlintrc
Patch0:		bigloo-libbacktrace-name.patch
Patch1:		bigloo-libdir.patch
BuildRequires:	indent
BuildRequires:	gmp-devel
BuildRequires:	pcre2-devel
BuildRequires:	libunistring-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(libuv)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-audio-1.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(sqlite3)
Requires:	indent

%description
Bigloo is a Scheme implementation devoted to one goal: enabling Scheme based
programming style where C(++) is usually required. Bigloo attempts to make
Scheme practical by offering features usually presented by traditional
programming languages but ot offered by Scheme and functional programming.
Bigloo compiles Scheme modules. It delivers small and fast stand alone binary
executables. Bigloo enables full connections between Scheme and C programs.

%files
%{_bindir}/*
%dir %{_libdir}/bigloo/%{version}
%dir %{_libdir}/bigloo/%{version}/bmem
%{_libdir}/bigloo/%{version}/*.init
%{_libdir}/bigloo/%{version}/*.heap
%{_libdir}/bigloo/%{version}/bmem/*
%{_libdir}/bigloo/%{version}/bigloo_config.sch
%{_libdir}/bigloo/%{version}/runtest
%{_libdir}/bigloo/%{version}/text
%{_libdir}/bigloo/%{version}/*.so*
%{_infodir}/*.info*
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Bigloo shared library
Group:		System/Libraries

%description -n %{libname}
Bigloo shared library.

%files -n %{libname}
%{_libdir}/lib*-%{version}.so

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Bigloo development files
Group:		Development/C
Conflicts:	%{_lib}backtrace-devel
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(openssl)
Requires:	pkgconfig(sqlite3)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Bigloo development files.

%files -n %{devname}
%doc Makefile.config examples
%{_libdir}/bigloo/%{version}/*.a
%{_libdir}/bigloo/%{version}/*.h
%{_libdir}/bigloo/%{version}/Makefile*
%{_libdir}/bigloo/%{version}/*.so
# used  patched version of libbacktrace
%{_libdir}/libbacktrace.so
#----------------------------------------------------------------------------

%package doc
Summary:	Bigloo documentation
Group:		Documentation

%description doc
Documentation for the Bigloo compiler and integrated development environment.

%files doc
%doc manuals/*.html

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-%{rel}
# backup nonstandart internal config.guess
cp ./autoconf/config.guess config.guess_
%config_update
# restore nonstandart internal config.guess
cp config.guess_ ./autoconf/config.guess

# correct examples Makefiles for installation
find examples -name Makefile -print0 | xargs -0 \
     sed -i 's|include.*Makefile.config|include %{_libdir}/bigloo/%{version}/Makefile.config|g'

perl -pi -e "s|bmask=755|bmask=644|" configure

# this is needed to construct a correct soname (fugly)
perl -pi -e "s|^release=.*|release=%{version}|" configure

# fix attributes
find . -type f -perm 0640 -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;

%build
export CFLAGS="`echo %{optflags}|sed -e 's/-fomit-frame-pointer//'` -fPIC"
%setup_compile_flags
export LDFLAGS="$LDFLAGS -lpthread -ldl"
./configure \
%ifarch %{x86_64} %{e2k} aarch64 %{riskv}
	--arch=athlon \
%endif
%ifarch %{ix86}
	--arch=i686 \
%endif
	--prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir}/man1 \
	--infodir=%{_infodir} \
	--docdir=%{_docdir} \
	--bee=full \
	--native-default-backend \
	--emacs=/bin/true \
	--jvm=no \
	--sharedbde=yes \
	--sharedcompiler=yes \
	--customlibuv=no \
	--customlibbacktrace=yes \
	--coflags="$CFLAGS" \
	--strip=no

# this is needed to construct a correct soname (fugly)
perl -pi -e "s|LDSONAME=.*|LDSONAME=-Wl,-soname|" Makefile.config

# gcc: -pg and -fomit-frame-pointer are incompatible
perl -pi -e "s|-pg||" Makefile.config

# Remove extraneous rpath
sed -i '/^RPATH=/s,\$(DESTDIR).*:,,' Makefile.config

export LD_LIBRARY_PATH=`pwd`/lib/%{version}
#`pwd`/libbacktrace%{_libdir}/%{name}/%{version}"
export BIGLOOLIB=%{inplace}%{_libdir}/bigloo/%{version}
%make
make DESTDIR=%{inplace} install

export PATH=`pwd`/bin:$PATH
%make compile-bee

%install
export LD_LIBRARY_PATH=`pwd`/lib/%{version}
export BIGLOOLIB=%{inplace}%{_libdir}/bigloo/%{version}

make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} install-bee
make -C manuals DESTDIR=%{buildroot} install-bee

chmod 755 %{buildroot}%{_bindir}/*
find %{buildroot}%{_libdir} -name \*.so -exec chmod 755 {} \+

(
	cd %{buildroot}%{_libdir}
	mv bigloo/%{version}/*.so .

	(cd bigloo/%{version}
	for ext in alsa avahi bdl calendar crypto csv flac fthread gstreamer libuv mail multimedia openpgp packrat pthread phone pkgcomp pkglib pulseaudio srfi1 srfi18 srfi27 sqlite ssl text wav web upnp
	do
	    ln -sf libbigloo${ext}_s-%{version}.a libbigloo${ext}_u-%{version}.a
	    ln -sf libbigloo${ext}_s-%{version}.a libbigloo${ext}_u_mt-%{version}.a
	done

	ln -sf ../../*.so .)
)
rm -fr %{buildroot}%{_infodir}/dir
rm -fr %{buildroot}%{_datadir}/doc

# Remove empty directory
rmdir %{buildroot}%{_libdir}/pkgconfig

perl -pi -e 's|^BOOTBINDIR=.*|BOOTBINDIR=%{_bindir}|' Makefile.config

# Remove references to the build root
sed -e 's|^BOOTDIR=.*|BOOTDIR=%{_prefix}|g' \
    -e 's|^BOOTBINDIR=.*|BOOTBINDIR=%{_bindir}|g' \
    -e 's|^BOOTLIBDIR=.*|BOOTLIBDIR=%{_libdir}/bigloo/%{version}|g' \
    -e 's|^BGLBUILDBINDIR=.*|BGLBUILDBINDIR=%{_bindir}|g' \
    -e 's|^BGLBUILDLIBDIR=.*|BGLBUILDLIBDIR=%{_libdir}/bigloo/%{version}|g' \
    -e 's|^\(BIGLOO=.*\)\.sh|\1|' \
    -e 's|^\(BGL.*=.*\)\.sh|\1|' \
    -i %{buildroot}%{_libdir}/bigloo/%{version}/Makefile.config
sed -e 's|%{buildroot}||g' -i %{buildroot}%{_bindir}/*.sh

# Relink absolute symlinks if they exist
# TODO: find out why they exist not always, why they are absolute
# and why /usr/share/spec-helper/relink_symlinks skips them
pushd %{buildroot}%{_libdir}/bigloo/%{version}
test -f libbigloompg123_s-%{version}.a && ln -sf libbigloompg123_s-%{version}.a libbigloompg123_u-%{version}.a
test -f "$(realpath libbigloompg123_u-%{version}.a)"
test -f libbigloompg123_s-%{version}.a && ln -sf libbigloompg123_s-%{version}.a libbigloompg123_u-%{version}.a
test -f libbigloompg123_s-%{version}.a && ln -sf libbigloompg123_s-%{version}.a libbigloompg123_u_mt-%{version}.a
test -f libbigloompg123_s-%{version}.a && ln -sf libbigloompg123_s-%{version}.a libbigloompg123_u_mt-%{version}.a
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 436 |21cr|biloba-0.9.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A tactical board game
Name:		biloba
Version:	0.9.3
Release:	5
License:	GPLv2+
Group:		Games/Boards
Url:		http://biloba.sourceforge.net/
Source0:	http://osdn.dl.sourceforge.net/sourceforge/biloba/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)

%description
Biloba is a very innovative tactical board game.
It can be played by 2, 3 or 4 players and against the computer (IA).
After installing the game you will be able to play on the same computer or
on-line against your opponents.

%files
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/biloba.desktop
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
# fix linting
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog

%build
%configure \
	--bindir=%{_bindir} \
	--datadir=%{_datadir}
%make

%install
%makeinstall bindir=%{buildroot}%{_bindir} \
	datadir=%{buildroot}%{_datadir}

# install menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=A tactical board game
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;BoardGame;
EOF

# install icons
mkdir -p %{buildroot}{%{_liconsdir},%{_miconsdir},%{_iconsdir}}
cp %{name}_icon.png %{buildroot}%{_liconsdir}/%{name}.png
convert -scale 32x32 %{name}_icon.png %{buildroot}%{_iconsdir}/%{name}.png
convert -scale 16x16 %{name}_icon.png %{buildroot}%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 437 |21cr|bin2iso-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		bin2iso
Version:	0.4
Release:	8
Summary:	Very simple utility to convert a BIN image
License:	GPLv2
Group:		File tools
URL:		http://mange.dynalias.org/linux/bin2iso
Source0:	http://mange.dynalias.org/linux/bin2iso/%{name}-%{version}.c

%description
This is a very simple utility to convert a BIN image
(either RAW/2352 or Mode2/2336 format) to standard ISO format (2048 b/s).

%prep
%setup -c -T
install -m 644 %{SOURCE0} %{name}.c


%build
gcc %{optflags} -o %{name} %{name}.c


%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}/%{_bindir}


%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root)
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 438 |21cr|binary-security-check-1.2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Analyzer of security features in executable binaries
Name:		binary-security-check
Version:	1.2.9
Release:	1
License:	MIT
Group:		System/Base
Url:		https://github.com/koutheir/binary-security-check
Source0:	https://github.com/koutheir/binary-security-check/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# cd binary-security-check-%%{version}
# mkdir cargo-home
# cat >cargo-home/config <<EOF
# [source.crates-io]
# registry = 'https://github.com/rust-lang/crates.io-index'
# replace-with = 'vendored-sources'
# [source.vendored-sources]
# directory = './vendor'
# EOF
# export CARGO_HOME=$(pwd)/cargo-home
# cargo vendor
# tar -cpJf ../vendor-%%{version}.tar.xz vendor
Source1:	vendor-%{version}.tar.xz
BuildRequires:	cargo

%description
It is a command line utility that analyses executable binaries looking for features
that make the executable more secure, or less prone to some vulnerabilities.

%files
%doc README.md
%license LICENSE.txt
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1
mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF

chmod -x LICENSE.txt README.md

%build
export CARGO_HOME=$(pwd)/cargo-home/
cargo build %{?_smp_mflags} --release --offline

%install
mkdir -p %{buildroot}%{_bindir}
cp target/release/%{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 439 |21cr|bindfs-1.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bindfs
Version:	1.17.0
Release:	1
Summary:        Fuse filesystem to mirror a directory

Group:          System/Base
License:        GPLv2+
URL:            http://code.google.com/p/bindfs/
Source0:        http://bindfs.org/downloads/bindfs-%{version}.tar.gz

BuildRequires:  fuse-devel
BuildRequires:  recode

%description
Bindfs allows you to mirror a directory and also change the the permissions in
the mirror directory.

%prep
%setup -q
recode latin1..utf8 ChangeLog


%build
autoreconf -fi
%configure --disable-dependency-tracking.
%make

%install
%makeinstall_std

%files
%doc COPYING ChangeLog README*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 440 |21cr|bindgraph-0.2-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gathers bind9 statistics
Name:		bindgraph
Version:	0.2
Release:	19
License:	GPLv2+
Group:		Networking/WWW
Url:		http://www.linux.it/~md/software/
Source0:	http://ftp.debian.org/debian/pool/main/b/bindgraph/%{name}_%{version}a.orig.tar.gz
Source1:	bindgraph.service
Source2:	bindgraph.sysconfig
Source3:	bindgraph.logrotate
Source4:	bindgraph-tmpfiles.conf
Patch0:		bindgraph-0.2-mdk_config.diff
Requires:	bind
Requires:	rrdtool
Requires:	webserver
Requires(post,preun,postun):	systemd
BuildArch:	noarch

%description
DNS statistics RRDtool frontend for BIND9 BindGraph is a very simple DNS
statistics RRDtool frontend for BIND9 that produces daily, weekly, monthly and
yearly graphs of the DNS server's activity (queries, errors, etc.).

%files
%doc ChangeLog COPYING rbldnsd.diff README
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/bindgraph.service
%config(noreplace) %{_webappconfdir}/%{name}.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/bindgraph
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/bindgraph
%attr(0755,root,root) %{_sbindir}/bindgraph
%attr(0755,root,root) %{_localstatedir}/www/cgi-bin/bindgraph.cgi
%ghost %dir %attr(0755,root,root) %{_localstatedir}/run/bindgraph
%dir %attr(0755,root,root) %{_localstatedir}/log/bindgraph
%dir %attr(0755,apache,root) %{_localstatedir}/cache/bindgraph
%dir %attr(0755,root,root) %{_localstatedir}/lib/bindgraph

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post bindgraph.service

%preun
%systemd_preun bindgraph.service

%postun
%systemd_postun_with_restart bindgraph.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build

%install
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_tmpfilesdir}
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_localstatedir}/lib/bindgraph
install -d %{buildroot}%{_localstatedir}/run/bindgraph
install -d %{buildroot}%{_localstatedir}/log/bindgraph
install -d %{buildroot}%{_localstatedir}/cache/bindgraph
install -d %{buildroot}%{_localstatedir}/www/cgi-bin

install -m0755 bindgraph.pl %{buildroot}%{_sbindir}/bindgraph
install -m0755 bindgraph.cgi %{buildroot}%{_localstatedir}/www/cgi-bin/
install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/bindgraph.service
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/bindgraph
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/bindgraph
install -m0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf

install -d %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf << EOF
<Location /cgi-bin/bindgraph.cgi>
    Require all granted
</Location>
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 441 |21cr|biniax2-1.30-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Colour block logic game with original gameplay
Name:		biniax2
Version:	1.30
Release:	7
License:	ZLib
Group:		Games/Puzzles
Url:		http://biniax.com
Source0:	http://mordred.dir.bg/biniax/%{name}-%{version}-fullsrc.tar.gz
Source1:	%{name}-LICENSE
Patch0:		biniax2-1.30-optflags.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)

%description
How to play Biniax :
The gaming field is a 5x7 grid filled partially with pairs of elements.
Every pair consists of two different elements combined of four possible.
You control the box with an element inside. You can move around the field
on empty spaces. You can also remove pairs of elements, if you have the
same element as the one of the pair. When you remove the pair your element
becomes the other one element of the pair and the score is increased;
The gaming field scrolls down slowly (increasing the speed with your progress)
and your goal is to stay as long as possible on the field. Remember, that if
you cannot take the pair in front of you, the scrolling will move your block
down!

%files
%defattr(644,root,root,755)
%doc LICENSE
%attr(755,root,root) %{_gamesbindir}/%{name}*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_gamesdatadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -c
%patch0 -p1

%build
%make FLAGS="%{optflags}"

%install
cp %{SOURCE1} LICENSE

cat > %{name}.sh <<EOF
#!/bin/sh
test -d "\$HOME/.%{name}" || {
  rm -rf "\$HOME/.%{name}"
  mkdir -p "\$HOME/.%{name}"
  ln -s %{_gamesdatadir}/%{name}/data "\$HOME/.%{name}/data"
}
cd "\$HOME/.%{name}"
exec %{name}.bin
EOF

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Biniax-2
Comment=Colour logic game
Type=Application
Exec=%{name}
Icon=%{_datadir}/pixmaps/%{name}.png
Terminal=false
Categories=Game;LogicGame;
EOF

rm -f data/Thumbs.db

install -D %{name} %{buildroot}%{_gamesbindir}/%{name}.bin
install -D -m755 %{name}.sh %{buildroot}%{_gamesbindir}/%{name}
install -D data/graphics/element3.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -r data %{buildroot}%{_gamesdatadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 442 |21cr|bino-1.6.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_rebuild_configure 1

Summary:	Video Player with 3D and Multi-Display Video Support
Name:		bino
Version:	1.6.8
Release:	3
License:	GPLv3+
Group:		Video
Url:		https://bino3d.org
# See also: https://github.com/marlam/bino-mirror
Source0:	https://bino3d.org/releases/%{name}-%{version}.tar.xz
Source1:	https://github.com/sanjayankur31/rpmfusion-appdata/blob/master/appdata-extra-free/desktop/%{name}.appdata.xml
Patch0:	    bino-1.6.8-add-exception-include.patch
BuildRequires:	gettext
BuildRequires:	texinfo
BuildRequires:	ffmpeg-devel
BuildRequires:	gettext-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	quadmath-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew) >= 1.6.0
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libass) >= 0.9.9
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Core) >= 5.10
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)
# Quadmath on arm is unsupported yet
ExclusiveArch:	%{ix86} x86_64
Requires(post,preun):	rpm-helper

%description
Bino is a video player with the following main features:
- Support for stereoscopic 3D video, with a wide variety of input and output
	formats.
- Support for multi-display video, e.g. for powerwalls, Virtual Reality
	installations and other multi-projector setups.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README COPYING
%doc doc/*.html doc/*.jpg doc/*.png
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_infodir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_appdatadir}/%{name}.appdata.xml

%post
/sbin/install-info \
    --entry="* bino: (bino).   3D video player" \
    --section="Miscellaneous" \
    %{_infodir}/%{name}.info \
    %{_infodir}/dir 2>/dev/null || :

%preun
if [ $1 -eq 0 ]; then
  /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir 2>/dev/null || :
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
autoreconf -vfi
%configure \
	--with-qt-version=5 \
	--without-equalizer

%make


%install
%makeinstall_std

# Install our stuff
install -D -m644 %{SOURCE1} %{buildroot}%{_appdatadir}/%{name}.appdata.xml

# Drop unwanted stuff
rm -r %{buildroot}%{_docdir}/%{name}
rm -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
rm -f %{buildroot}%{_datadir}/locale/zh_cn/LC_MESSAGES/bino.mo

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 443 |21cr|binstats-1.08-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An administration utility
Name:		binstats
Version:	1.08
Release:	14
License:	GPL
Group:		File tools
Url:		http://www.ccc.nottingham.ac.uk/~etzpc/binstats.html
Source0:	%{name}-%{version}.tar.bz2

%description
An administration utility for tracking down the various types of binary
formats for Linux (i386) executables and their dynamic library dependencies
and also executable scripts.

%files
%doc README
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
# make install
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 binstats %{buildroot}%{_bindir}/binstats
install -m 755 derefsymlink %{buildroot}%{_bindir}/derefsymlink

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 444 |21cr|binwalk-2.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Firmware analysis tool
Name:		binwalk
Version:	2.3.2
Release:	1
License:	MIT
Group:		System/Configuration/Other
Url:		https://github.com/devttys0/binwalk
Source0:	https://github.com/devttys0/binwalk/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
# For tests
BuildRequires:	python3-nose
BuildRequires:	python3-coverage
BuildArch:	noarch

%description
Binwalk is a fast, easy-to-use tool for analyzing and extracting
firmware images.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-%{version}*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{python3_sitelib} %__python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 445 |21cr|biosdevname-0.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Udev helper for naming devices per BIOS names
Name:		biosdevname
Version:	0.7.3
Release:	1
License:	GPLv2
Group:		System/Base
Url:		http://linux.dell.com/files/biosdevname
Source0:	https://github.com/dell/biosdevname/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	udev
Requires:	udev
# SMBIOS only exists on these arches.  It's also likely that other
# arches don't expect the PCI bus to be sorted breadth-first, or of
# so, there haven't been any comments about that on LKML.
ExclusiveArch:	%{ix86} x86_64

%description
biosdevname in its simplest form takes a kernel device name as an
argument, and returns the BIOS-given name it "should" be.  This is necessary
on systems where the BIOS name for a given device (e.g. the label on
the chassis is "Gb1") doesn't map directly and obviously to the kernel
name (e.g. eth0).

%files
%doc COPYING README
%{_sbindir}/%{name}
%{_udevrulesdir}/71-biosdevname.rules
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -vfi
%configure

%make

%install
%makeinstall_std install-data


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 446 |21cr|biosdisk-1.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# It's a shell script, hence nothing to debug
%define debug_package %{nil}

Summary:	Flashing Dell BIOS images on Linux systems
Name:		biosdisk
Version:	1.01
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/dell/biosdisk
Source0:	https://github.com/dell/biosdisk/archive/%{version}/%{name}-%{version}.tar.gz
ExclusiveArch:	%{ix86} x86_64
Requires:	syslinux
Requires:	wget

%description
FreeDOS based BIOS updating utility for Dell machines.

This utility can be used to update the BIOS on a Dell
machine running in legacy mode.

%files
%license COPYING
%doc README*
%{_sbindir}/%{name}
%{_sharedstatedir}/%{name}
%{_mandir}/man8/%{name}*
%{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf

#----------------------------------------------------------------------------

%prep
%setup -q

# Fix grub2 commands and path
sed -i 's|grub-mkconfig|grub2-mkconfig|g' biosdisk
sed -i 's|grub-reboot|grub2-reboot|g' biosdisk
sed -i 's|/boot/grub|/boot/grub2|g' biosdisk

%build
%__make

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 447 |21cr|bip-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IRC Bouncer (proxy)
Name:		bip
Version:	0.9.3
Release:	1
Group:		Networking/IRC
License:	GPLv2+
Url:		http://bip.t1r.net
Source0:	https://projects.duckcorp.org/attachments/download/146/bip-%{version}.tar.gz
Source2:	bip-tmpfs.conf
Source3:	bip.service
Patch0:		0001-Setup-bip-for-Fedora-s-paths.patch
Patch1:		0002-Throttle-joins-to-prevent-flooding.patch
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(openssl)
Requires(post,preun,postun):	systemd-units
ExcludeArch:	%{ix86}

%description
Bip is an IRC proxy, which means it keeps connected to your preferred IRC
servers, can store the logs for you, and even send them back to your IRC
client(s) upon connection.
You may want to use bip to keep your logfiles (in a unique format and on a
unique computer) whatever your client is, when you connect from multiple
workstations, or when you simply want to have a playback of what was said
while you were away.

%files
%doc AUTHORS ChangeLog COPYING README TODO
%doc samples/bip.vim
%{_bindir}/bip
%{_bindir}/bipgenconfig
%{_bindir}/bipmkpw
%{_mandir}/man1/bip.1*
%{_mandir}/man1/bipmkpw.1*
%{_mandir}/man5/bip.conf.5*
%attr(0640,root,bip) %config(noreplace) %{_sysconfdir}/bip.conf
%config %{_sysconfdir}/tmpfiles.d/bip.conf
%attr(-,bip,bip) %ghost %{_localstatedir}/run/bip
%attr(-,bip,bip) %dir %{_localstatedir}/log/bip
%{_unitdir}/bip.service

%pre
/usr/sbin/useradd -c "Bip IRC Proxy" \
  -s /bin/sh -r -d / bip 2> /dev/null || :

%post
%systemd_post bip.service
/bin/systemd-tmpfiles --create %{_sysconfdir}/tmpfiles.d/bip.conf

%preun
%systemd_preun bip.service

%postun
%systemd_postun_with_restart bip.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

iconv -f iso-8859-1 -t utf-8 -o ChangeLog{.utf8,}
mv ChangeLog{.utf8,}

%build
%configure --with-openssl
make CFLAGS="%{optflags} -fPIE -Wno-unused-result -Wstrict-aliasing=0"

%install
%makeinstall_std

# Remove misplaced files
rm -rf %{buildroot}%{_defaultdocdir}/bip
mkdir -p %{buildroot}%{_sysconfdir}
# Install bip.conf
install -m 0644 samples/bip.conf %{buildroot}%{_sysconfdir}/bip.conf
# Install bipgenconfig
install -m 0755 scripts/bipgenconfig %{buildroot}%{_bindir}/bipgenconfig
mkdir -p %{buildroot}%{_localstatedir}/run/bip
mkdir -p %{buildroot}%{_localstatedir}/log/bip

install -d -m 755 %{buildroot}%{_sysconfdir}/tmpfiles.d
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/tmpfiles.d/bip.conf

# Install systemd service file
install -d -m 755 %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 448 |21cr|birdfont-2.32.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A free font editor for TTF, EOT & SVG fonts
Name:		birdfont
Version:	2.32.3
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		http://birdfont.org
Source0:	http://birdfont.org/releases/%{name}-%{version}.tar.xz
Patch0:		birdfont-2.32-desktop.patch
# require dpkg-architecture
BuildRequires:	dpkg
BuildRequires:	python3
BuildRequires:	vala
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(xmlbird)
Requires:	unicode-ucd

%description
BirdFont is a free font editor that lets you create vector graphics and export
TTF, EOT & SVG fonts.

%files -f %{name}.lang
%{_bindir}/%{name}*
%{_libdir}/libbirdfont.so.*
%{_libdir}/libbirdgems.so.*
%{_datadir}/%{name}/
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./configure
%__python3 scripts/linux_build.py

%install
%__python3 install.py -d%{buildroot} -n/share/man/man1 -l/%{_lib}

rm -f %{buildroot}%{_libdir}/libbird*.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 449 |21cr|bison++-1.21.8-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prefix %{_prefix}

Name: bison++
Summary: A GNU general-purpose parser generator for C++
Version: 1.21.8
Release: 13
License: GPL
Group: Development/Other
Source: ftp://ftp.tu-darmstadt.de/pub/programming/languages/C++/tools/flex++bison++/LATEST/%{name}-%{version}.tar.bz2
Patch0: bison++.cflags.patch.bz2
Buildroot: %{_tmppath}/%{name}-buildroot

%description
Bison is a general purpose parser generator which converts a grammar
description for an LALR context-free grammar into a C program to parse that
grammar.

Bison++ is built on top of Bison; it takes advantage of the C++ language.

%prep

%setup -q
%patch0 -p0

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT

%makeinstall mandir=$RPM_BUILD_ROOT%{_mandir}/man1
mv $RPM_BUILD_ROOT%{_datadir}/bison.* $RPM_BUILD_ROOT%{_libdir}

%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/*
%{_mandir}/man1/*
%{_libdir}/bison.cc
%{_libdir}/bison.h

%clean
rm -rf $RPM_BUILD_ROOT

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 450 |21cr|bitcoin-25.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname bitcoinconsensus %{major}
%define devname %mklibname bitcoinconsensus -d

Summary:	P2P Digital Currency
Name:		bitcoin
Version:	25.0
Release:	1
License:	MIT
Group:		Networking/Other
# ru help https://bitcoin.org/ru/download
Url:		https://bitcoincore.org
Source0:	https://bitcoincore.org/bin/bitcoin-core-%{version}/bitcoin-%{version}.tar.gz
Source1:	bitcoind.service
Source2:	bitcoind-tmpfiles.conf
Source3:	bitcoin-qt.desktop
BuildRequires:	boost-devel
BuildRequires:	db5.2-devel
BuildRequires:	git
BuildRequires:	imagemagick
BuildRequires:	miniupnpc-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(protobuf)

%description
Bitcoin is a free open source peer-to-peer electronic cash system that is
completely decentralized, without the need for a central server or trusted
parties. Users hold the crypto keys to their own money and transact directly
with each other, with the help of a P2P network to check for double-spending.

Full transaction history is stored locally at each client. This requires
several GB of space, slowly growing.

#----------------------------------------------------------------------------

%package -n bitcoind
Summary:	Headless daemon for Bitcoin crypto-currency
Group:		Networking/Other
Requires(post,preun,postun):	systemd

%description -n bitcoind
Bitcoin is a free open source peer-to-peer electronic cash system that is
completely decentralized, without the need for a central server or trusted
parties. Users hold the crypto keys to their own money and transact directly
with each other, with the help of a P2P network to check for double-spending.

Full transaction history is stored locally at each client. This requires
several GB of space, slowly growing.

This package provides bitcoind, headless bitcoin daemon.

%files -n bitcoind
%doc COPYING README.md
%{_bindir}/bitcoind
%{_sbindir}/rcbitcoind
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%dir %attr(700,bitcoin,bitcoin) %{_var}/lib/%{name}
%{_tmpfilesdir}/bitcoind.conf
%{_unitdir}/bitcoind.service
%{_mandir}/man1/bitcoind.1*

%pre -n bitcoind
%_pre_useradd bitcoin %{_var}/lib/%{name} /bin/false
%_pre_groupadd bitcoin

%post -n bitcoind
%systemd_post bitcoind.service
%tmpfiles_create %{_tmpfilesdir}/bitcoind.conf

%preun -n bitcoind
%systemd_preun bitcoind.service

%postun -n bitcoind
%systemd_postun bitcoind.service

#----------------------------------------------------------------------------

%package qt
Summary:	An end-user Qt GUI for the Bitcoin crypto-currency
Group:		Networking/Other

%description qt
Bitcoin is a free open source peer-to-peer electronic cash system that is
completely decentralized, without the need for a central server or trusted
parties. Users hold the crypto keys to their own money and transact directly
with each other, with the help of a P2P network to check for double-spending.

Full transaction history is stored locally at each client. This requires
several GB of space, slowly growing.

This package provides bitcoin-qt, a GUI for Bitcoin based on Qt.

%files qt
%doc COPYING README.md
%{_bindir}/%{name}-qt
%{_bindir}/%{name}-wallet
%{_datadir}/applications/rosa-%{name}-qt.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}-qt.1*
%{_mandir}/man1/%{name}-wallet.1*

#----------------------------------------------------------------------------

%package tests
Summary:	Automated tests for bitcoin client
Group:		Networking/Other

%description tests
Bitcoin is a free open source peer-to-peer electronic cash system that is
completely decentralized, without the need for a central server or trusted
parties. Users hold the crypto keys to their own money and transact directly
with each other, with the help of a P2P network to check for double-spending.

Full transaction history is stored locally at each client. This requires
several GB of space, slowly growing.

This package provides automated tests for bitcoin-qt and bitcoind.

%files tests
%doc COPYING README.md
%{_bindir}/bench_bitcoin
%{_bindir}/test_bitcoin
%{_bindir}/test_bitcoin-qt

#----------------------------------------------------------------------------

%package utils
Summary:	An end-user cli for the Bitcoin crypto-currency
Group:		Networking/Other

%description utils
Bitcoin is a free open source peer-to-peer electronic cash system that is
completely decentralized, without the need for a central server or trusted
parties. Users hold the crypto keys to their own money and transact directly
with each other, with the help of a P2P network to check for double-spending.

Full transaction history is stored locally at each client. This requires
several GB of space, slowly growing.

This package provides bitcoin-cli (CLI tool to interact with the daemon) and
bitcoin-tx utility.

%files utils
%doc COPYING README.md
%{_bindir}/%{name}-cli
%{_bindir}/%{name}-tx
%{_bindir}/bitcoin-util
%{_mandir}/man1/%{name}-cli.1*
%{_mandir}/man1/%{name}-tx.1*
%{_mandir}/man1/bitcoin-util.1*
#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Bitcoin consensus shared library
Group:		System/Libraries

%description -n %{libname}
The purpose of this library is to make the verification functionality
that is critical to Bitcoin’s consensus available to other applications,
e.g. to language bindings such as python-bitcoinlib or alternative node
implementations.

%files -n %{libname}
%doc COPYING README.md
%{_libdir}/libbitcoinconsensus.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Developmont files for bitcoin consensus library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	bitcoinconsensus-devel = %{EVRD}

%description -n %{devname}
The purpose of this library is to make the verification functionality
that is critical to Bitcoin’s consensus available to other applications,
e.g. to language bindings such as python-bitcoinlib or alternative node
implementations.

This package contains development files.

%files -n %{devname}
%doc COPYING README.md
%{_includedir}/bitcoinconsensus.h
%{_libdir}/libbitcoinconsensus.so
%{_libdir}/pkgconfig/libbitcoinconsensus.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -I/usr/include/db52 -fno-strict-aliasing
autoreconf -fi
%configure \
	--disable-static \
	--with-cli=yes \
	--with-daemon=yes \
	--with-gui=qt5 \
	--with-incompatible-bdb \
	--with-miniupnpc \
	--without-qrencode

# # Disable parallel build to save memory
%make

%install
%makeinstall_std

install -D -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/rosa-%{name}-qt.desktop

# install menu icons
for N in 16 32 48 64 128 256;
do
convert share/pixmaps/bitcoin256.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

install -D -m 0644 share/examples/bitcoin.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
mkdir -p %{buildroot}%{_var}/lib/%{name}

mkdir %{buildroot}%{_sbindir}
ln -sv /sbin/service %{buildroot}%{_sbindir}/rcbitcoind
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/bitcoind.service
install -d -m 0755 %{buildroot}%{_tmpfilesdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/bitcoind.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 451 |21cr|bitfighter-022-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free multi-player 2D space combat game with dual-axes controls
Name:		bitfighter
Version:	022
Release:	3
License:	GPLv2+
Group:		Games/Arcade
Url:		http://bitfighter.org
Source0:	http://bitfighter.org/files/%{name}-%{version}.tar.gz
Patch0:		bitfighter-019d-mga-system-tomcrypt.patch
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	boost-devel
BuildRequires:	mariadb-devel
BuildRequires:	tomcrypt-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(poly2tri)
BuildRequires:	pkgconfig(polyclipping)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)

%description
Bitfighter is a free multi-player 2-D space combat game with dual-axes
controls. It's a team-based strategy game featuring retro vector graphics and
customizable ships. It's fast, fun, and frenetic.

%files
%doc doc/README.txt LICENSE.txt
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}_notifier
%{_gamesdatadir}/%{name}/
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

rm -rf boost clipper lua poly2tri sqlite tomcrypt

%build
%cmake \
	-DBUILD_SHARED_LIBS=OFF			\
	-DCMAKE_BIN_PATH=%{_gamesbindir}	\
	-DCMAKE_DATA_PATH=%{_gamesdatadir}	\
	-DLUAJIT_BUILTIN=OFF			\
	-DMASTER_MINIMAL=ON			\
	-DOpenGL_GL_PREFERENCE=GLVND
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 452 |21cr|bitlbee-3.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	bitlbid bitlbee

Summary:	IRC proxy to connect to ICQ, AOL, MSN and Jabber
Name:		bitlbee
Version:	3.5.1
Release:	1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://bitlbee.org/
Source0:	http://get.bitlbee.org/src/%{name}-%{version}.tar.gz
Patch3:		bitlbee-forkdaemon.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(libotr)

Requires(post):	ccp
Requires(pre,post,preun):	rpm-helper

%description
%{name} is a proxy which accepts connections from any irc-client
and allows you to communicate using following instant messaging
protocols:
 - ICQ
 - AIM
 - MSN
 - YIM
 - Jabber (including Google Talk and Facebook)
 - Twitter

%files
%defattr(0750,root,%{bitlbid},0755)
%{_sbindir}/%{name}
%defattr(0644,root,root,0755)
%doc doc/AUTHORS doc/README doc/FAQ
%doc doc/CHANGES doc/CREDITS
%doc doc/user-guide/
%{_datadir}/%{name}/help.txt
%dir %{_datadir}/%{name}/
%{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/%{name}/motd.txt
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_unitdir}/%{name}*
%defattr(0600,%{bitlbid},%{bitlbid},0700)
%{_var}/lib/%{name}

#-------------------------------------------------

%prep
%setup -q
%apply_patches
# Use the nick "bitlbee" instead of "root"
%{__sed} -i 's/ROOT_NICK "root"/ROOT_NICK "bitlbee"/' bitlbee.h


# Convert to utf-8
for file in doc/CHANGES doc/CREDITS; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
perl -pi -e "s#CFLAGS=\"-O2#CFLAGS=\"%{optflags}#g" configure
./configure	--prefix=%{_prefix} \
		--etcdir=%{_sysconfdir}/%{name} \
		--libdir=%{_libdir}/%{name} \
		--strip=0 \
		--msn=1 \
		--jabber=1 \
		--oscar=1 \
		--yahoo=1 \
		--purple=1 \
		--otr=1

%make

%install
%{makeinstall_std} install-etc install-systemd
install -d   %{buildroot}%{_var}/lib/%{name}

%triggerpostun -- bitlbee < 3.0.6
[ -d %{_var}/lib/%{name} ] && chown -R %{bitlbid}:%{bitlbid} %{_var}/lib/%{name}
%_postun_userdel %{bitlbid}

%pre
%_pre_useradd %{bitlbid} %{_var}/%{name} /bin/true
# in post it is harder to know if the new empty dir already exists
if [ $1 = 2 -a -d "%{_var}/%{name}" -a ! -d "%{_var}/lib/%{name}" ]; then
   echo -n " NOTE: new location of bitlbee users data: "
   mv -v "%{_var}/%{name}" "%{_var}/lib/%{name}"
fi

%post
ccp --delete --ifexists --set NoOrphans --oldfile %{_sysconfdir}/%{name}/%{name}.conf --newfile %{_sysconfdir}/%{name}/%{name}.conf.rpmnew
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{bitlbid}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 453 |21cr|bkchem-0.14.0-0.pre2.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Python 2D chemical structure drawing tool

Name: 		bkchem
Version: 	0.14.0
Release: 	0.pre2.4
Source0:	http://bkchem.zirael.org/download/%{name}-%{version}-pre2.tar.gz
URL: 		http://bkchem.zirael.org
License: 	GPLv2+
Group: 		Sciences/Chemistry
BuildRequires:  python2-devel
Requires: 	python2
Requires: 	python2-imaging
Requires: 	python2-pmw
Buildarch:	noarch

%description
BKChem is a free (as in free software :o) chemical drawing program. It was
conceived and written by Beda Kosata.  Supported file formats are SVG and CML.
The output looks best with the Adobe SVG viewer, but sodipodi and batik do a
reasonable job as well.

%prep 
%setup -q -n %{name}-%{version}-pre2
touch INSTALL.binary

%build

%install
mkdir -p %{buildroot}/%{_bindir}
touch %{buildroot}/%{_bindir}/%{name}
python2 setup.py install --root=%{buildroot}
chmod 644 gpl.txt README 
pushd %{buildroot}/%{_datadir}
chmod 644 `find -type f`
chmod 755 `find -type d`
popd

rm -fr %{buildroot}/%{_prefix}/doc/api

#fix executable
rm %{buildroot}%{_bindir}/%{name}
echo '#!/bin/sh' > %{buildroot}/%{_bindir}/%{name}
echo 'export BKCHEM_MODULE_PATH=%{py2_puresitedir}/%{name}' >> %{buildroot}/%{_bindir}/%{name}
echo 'export BKCHEM_TEMPLATE_PATH=%{_datadir}/%{name}/templates' >> %{buildroot}/%{_bindir}/%{name}
echo 'export BKCHEM_PIXMAP_PATH=%{_datadir}/%{name}/pixmaps' >> %{buildroot}/%{_bindir}/%{name}
echo 'export BKCHEM_IMAGE_PATH=%{_datadir}/%{name}/images' >> %{buildroot}/%{_bindir}/%{name}
echo 'python %{py2_puresitedir}/%{name}/%{name}.py' >> %{buildroot}/%{_bindir}/%{name}
chmod 755 %{buildroot}/%{_bindir}/%{name}


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=BKchem
Name[ru]=BKchem
Comment=2D chemical structure drawing tool
Comment[ru]=Инструмент рисования двумерных химических структур
Exec=bkchem
Icon=chemistry_section
Terminal=false
Type=Application
Categories=Science;Chemistry;
EOF

%find_lang BKChem

%clean

%files -f BKChem.lang
%doc gpl.txt README 
%{_bindir}/%{name}
%{_datadir}/%{name}
%{py2_puresitedir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{py2_puresitedir}/*.egg-info
%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 454 |21cr|bkf-2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple client for BitMover
Name:		bkf
Version:	2.0
Release:	5
License:	GPLv2
Group:		Development/Other
URL:		http://www.bitkeeper.com/
Source0:	http://www.bitmover.com/bk-client%{version}.shar.bz2
Patch0:		bk-client-2.0-conflicting_types_for_getline_fix.diff
Requires:	patch
BuildRequires:	sharutils

%description
A simple client for BitMover

%prep

%setup -q -c -T -n %{name}-%{version}
bzcat %{SOURCE0} > bk-client%{version}.shar
sh bk-client%{version}.shar
mv bk-client%{version}/* .
rm -rf bk-client%{version}
%patch0 -p0 -b .conflicting_types_for_getline

head -7 bkf.c > LICENSE

%build
gcc %{optflags} bkf.c -o bkf

%install 
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 bkf %{buildroot}%{_bindir}/

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc demo.sh LICENSE
%attr(0755,root,root) %{_bindir}/bkf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 455 |21cr|blackbox-0.70.1-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname bt %{major}
# fwang: we don't use libbt-devel because it is already occupied by libbt
%define devname %mklibname blackbox -d

Summary:	A Window Manager for the X Window System
Name:		blackbox
Version:	0.70.1
Release:	22
License:	BSD-like
Group:		Graphical desktop/Other
Url:		http://blackboxwm.sourceforge.net/
Source0:	blackbox-%{version}.tar.bz2
Source1:	blackbox.xdg
Source3:	blackbox.png
Source4:	blackbox32.png
Source5:	blackbox.desktop
Patch0:		blackbox-0.70.1-gcc43.patch
Patch1:		blackbox-0.70.1-x11-1.4.patch
BuildRequires:	locales-en
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
Requires:	desktop-common-data
Requires:	xdg-compliance-menu

%description
This is a window manager for X.  It is similar in many respects to
such popular packages as Window Maker, Enlightenment, and FVWM2.  You
might be interested in this package if you are tired of window managers
that are a heavy drain on your system resources, but you still want
an attractive and modern-looking interface.

The best part of all is that this program is coded in C++, so it
is even more attractive "under the hood" than it is in service -- no
small feat.

If none of this sounds familiar to you, or you want your computer to
look like Windows 98, you probably don't want this package.

%files
%config(noreplace) %{_sysconfdir}/menu.d/%{name}
%config(noreplace) %{_sysconfdir}/X11/%{name}/%{name}-menu
%{_bindir}/*
%{_datadir}/blackbox
%{_datadir}/xsessions/blackbox.desktop
%{_iconsdir}/blackbox.png
%{_miconsdir}/blackbox.png
%{_mandir}/man1/*

%post
#blackbox-alternatives
update-alternatives --install %{_bindir}/bsetroot bsetroot %{_bindir}/bsetroot-%{name} 10

%postun
# Remove bsetroot-alternatives
if [ "$1" = 0 ]; then
update-alternatives --remove bsetroot %{_bindir}/bsetroot-%{name}
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for blackbox
Group:		System/Libraries

%description -n %{libname}
This package contains library fiiles needed for blackbox.

%files -n %{libname}
%{_libdir}/libbt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Developemnt files provided by blackbox
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains developemnt files provided by blackbox.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/bt
%{_libdir}/pkgconfig/libbt.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .gcc43
%patch1 -p0

%build
export LANG="en_US" LC_ALL="en_US"
%configure \
	--enable-kde \
	--enable-nls \
	--enable-shared \
	--disable-static

%make DEFAULT_MENU=%{_sysconfdir}/menu.d/%{name}

%install
mkdir -p %{buildroot}%{_prefix}
%makeinstall_std

install -m755 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/menu.d/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/X11/%{name}
touch %{buildroot}%{_sysconfdir}/X11/%{name}/%{name}-menu

install -m644 %{SOURCE3} -D %{buildroot}%{_miconsdir}/blackbox.png
install -m644 %{SOURCE4} -D %{buildroot}%{_iconsdir}/blackbox.png

# bsetroot is an alternative for the one in fluxbox
mv %{buildroot}%{_bindir}/bsetroot %{buildroot}%{_bindir}/bsetroot-blackbox

mkdir -p %{buildroot}%{_datadir}/xsessions/
install -m644 %{SOURCE5} %{buildroot}%{_datadir}/xsessions/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 456 |21cr|bladeRF-2021.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bladerf_group bladerf

%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:           bladeRF
Version:        2021.10
Release:        1
Summary:        SDR radio receiver
License:        GPL-2.0-only AND AGPL-3.0-or-later
Group:          Sciences/Other
URL:            https://nuand.com/
#Git-Clone:     https://github.com/Nuand/bladeRF.git
Source0:        https://github.com/Nuand/bladeRF/archive/%{version}/%{name}-%{version}.tar.gz
Source1:        ad9361.tar.xz
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRequires:  git-core
BuildRequires:  help2man
BuildRequires:  pkgconfig(libedit)
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(udev)

# Although the build scripts mangle the version number to be RPM compatible
# for continuous builds (transforming the output of `git describe`), Fedora 32+
# also validates the version inside the pkgconfig file. There's no impetus for this
# with fish.
%define _wrong_version_format_terminate_build 0

%description
The software for bladeRF USB 3.0 Superspeed Software Defined Radio.

%files
%license COPYING
%doc README.md CONTRIBUTORS
%{_bindir}/bladeRF-cli
%{_bindir}/bladeRF-fsk
%{_mandir}/man1/bladeRF-cli.1.*

#-------------------------------------------------------------------
%package -n %{libname}
Summary:        SDR radio receiver library
Group:          System/Libraries

%description -n %{libname}
Library for bladeRF, an SDR transceiver.

%files -n %{libname}
%{_libdir}/libbladeRF.so.%{major}

#-------------------------------------------------------------------

%package doc
Summary:        Documentation for libbladeRF
Group:          Documentation

%description doc
HTML documentation files for libbladeRF.

%files doc
%{_docdir}/libbladeRF

#-------------------------------------------------------------------

%package udev
Summary:        Udev rules for bladeRF
Group:          System/Configuration/Hardware

%description udev
Udev rules for bladeRF.

%files udev
%{_udevrulesdir}/88-nuand-*.rules

%pre udev
getent group %{bladerf_group} >/dev/null || groupadd -r %{bladerf_group}

#-------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for libbladeRF
Group:          Development/Other
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
Libraries and header files for developing applications that want to make
use of libbladerf.

%files -n %{devname}
%{_libdir}/libbladeRF.so*
%{_includedir}/bladeRF1.h
%{_includedir}/bladeRF2.h
%{_includedir}/libbladeRF.h
%{_libdir}/pkgconfig/libbladeRF.pc

#-------------------------------------------------------------------

%prep
%autosetup
pushd thirdparty/analogdevicesinc/no-OS
tar -xJf %{SOURCE1}
popd

%build
cd host
%cmake \
  -DCMAKE_INSTALL_LIBDIR=%{_lib} \
  -DUDEV_RULES_PATH=%{_udevrulesdir} \
  -DBLADERF_GROUP=%{bladerf_group} \
%if 0%{?use_syslog}
  -DENABLE_LIBBLADERF_SYSLOG=ON \
%endif
  -DBUILD_DOCUMENTATION=ON
%make_build

%install
cd host
%make_install -C build

#move docs
mkdir -p %{buildroot}%{_docdir}





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 457 |21cr|blake2-20210529-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 54f4faa4c16ea34bcd59d16e8da46a64b259fc07
%define commit_short %(echo %{commit} | head -c6)

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		blake2
Summary:	BLAKE2 official implementations
Version:	20210529
Release:	1
License:	Apache-2.0 or CC0-1.0 or OpenSSL
Group:		System/Libraries
Url:		https://www.blake2.net/
Source0:	https://github.com/BLAKE2/BLAKE2/archive/54f4faa4c16ea34bcd59d16e8da46a64b259fc07.zip?/%{name}-%{commit}.zip

%description
BLAKE2 is a cryptographic hash function faster than MD5, SHA-1, SHA-2, and
SHA-3, yet is at least as secure as the latest standard SHA-3. BLAKE2 has been
adopted by many projects due to its high speed, security, and simplicity.

#--------------------------------------------------------------------------
%package -n %{libname}
Summary:	BLAKE2 official implementations
Group:		System/Libraries

%description -n %{libname}
BLAKE2 is a cryptographic hash function faster than MD5, SHA-1, SHA-2, and
SHA-3, yet is at least as secure as the latest standard SHA-3. BLAKE2 has been
adopted by many projects due to its high speed, security, and simplicity.

%files -n %{libname}
%_libdir/libblake2.so.%{major}*

#--------------------------------------------------------------------------
%package -n %{devname}
Summary:	%{summary}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%summary.

%files -n %{devname}
%doc COPYING README.md
%_includedir/blake2.h
%_libdir/libblake2.so

#--------------------------------------------------------------------------

%prep
%autosetup -p1 -n BLAKE2-%{commit}
# Unused source files that will clobber glob.
rm neon/blake2b-neon.c
rm neon/blake2s-neon.c
# Delete invalid default options.
sed -i 's/-march=armv7-a//;s/-mfpu=neon-vfpv4//;s/-mfloat-abi=hard//;s/-fopenmp//' neon/makefile
# Select optimized implementation.
SRC=ref
%ifarch x86_64
SRC=sse
%endif
%ifarch aarch64
SRC=neon
%endif
%ifarch ppc64le
SRC=power8
%endif
ln -s $SRC src

%build
cd src
%define _optlevel 3
FLAGS="%optflags -shared -fPIC -Wl,-soname,libblake2.so.0"
# Build and run self-test binaries.
make
# Finally make the lib.
gcc $FLAGS -o libblake2.so.0 blake2*.c blake2*.h

%install
cd src
mkdir -p %buildroot%_includedir
install -Dp blake2.h %buildroot%_includedir/
install -Dp libblake2.so.0 %buildroot%_libdir/libblake2.so.0.0.0
ln -s libblake2.so.0.0.0   %buildroot%_libdir/libblake2.so.0
ln -s libblake2.so.0.0.0   %buildroot%_libdir/libblake2.so

%check
# 1. 'make' above did full testing for all KATs.
# 2. Build and run sample b2sum.
cd b2sum
export LD_LIBRARY_PATH=%buildroot%_libdir
FLAGS="%optflags -I%buildroot%_includedir -L%buildroot%_libdir -lblake2"
gcc -o b2sum b2sum.c $FLAGS
./b2sum -a blake2b  < /dev/null \
  | grep 786a02f742015903c6c6fd852552d272912f4740e15847618a86e217f71f5419d25e1031afee585313896444934eb04b903a685b1448b755d56f701afe9be2ce
./b2sum -a blake2s  < /dev/null | grep 69217a3079908094e11121d042354a7c1f55b6482ca1a51e1b250dfd1ed0eef9
%ifarch %ix86 x86_64
# 3. Benchmark.
# Shows cpucycles per byte. Test is only on x86, because it requires
# reading cpucycles which is not enabled on other kernels, nor
# implemented in the bench.
cd ../bench
gcc -o bench-blake2b bench.c ../src/blake2b[^p]*c -DSUPERCOP
./bench-blake2b
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 458 |21cr|blaspp-2022.05.00-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude cmake()

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ API for the Basic Linear Algebra Subroutines
Name:		blaspp
Version:	2022.05.00
Release:	3
License:	BSD
Group:		System/Libraries
Url:		https://github.com/icl-utk-edu/blaspp
Source0:	https://github.com/icl-utk-edu/blaspp/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		blaspp-cmake-path.patch
Patch1:		blaspp-versioning.patch
BuildRequires:	blas-devel
BuildRequires:	cmake
BuildRequires:	openmpi-devel

%description
The Basic Linear Algebra Subprograms (BLAS) have been around for many decades and serve 
as the de facto standard for performance-portable and numerically robust implementation 
of essential linear algebra functionality. Originally, they were written in Fortran, 
and later furnished with a C API (CBLAS).

The objective of BLAS++ is to provide a convenient, performance oriented API for 
development in the C++ language, that, for the most part, preserves established 
conventions, while, at the same time, takes advantages of modern C++ features, 
such as: namespaces, templates, exceptions, etc.

#------------------------------------------------------------------
%package -n %{libname}
Summary:	C++ API for the Basic Linear Algebra Subroutines
Group:		System/Libraries

%description -n %{libname}
The Basic Linear Algebra Subprograms (BLAS) have been around for many decades and serve 
as the de facto standard for performance-portable and numerically robust implementation 
of essential linear algebra functionality. Originally, they were written in Fortran, 
and later furnished with a C API (CBLAS).

The objective of BLAS++ is to provide a convenient, performance oriented API for 
development in the C++ language, that, for the most part, preserves established 
conventions, while, at the same time, takes advantages of modern C++ features, 
such as: namespaces, templates, exceptions, etc.


%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:	blaspp development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	cmake
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
blaspp development files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/%{name}

#------------------------------------------------------------------
%prep
%autosetup -p1

%build
%cmake \
	-DBUILD_SHARED_LIBS=ON \
	-Dbuild_tests=OFF \
	-Duse_openmp=ON

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 459 |21cr|bleachbit-4.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname org.bleachbit.BleachBit

Summary:	Remove unnecessary files, free space, and maintain privacy
Name:		bleachbit
Version:	4.6.2
Release:	1
License:	GPLv3+
Group:		System/Configuration/Other
Url:		http://www.bleachbit.org
Source0:	https://github.com/bleachbit/bleachbit/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(python2)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	python3-setuptools
Requires:	python3
Requires:	python3-chardet
Requires:	python3-gi
Requires:	gobject-introspection
Requires:	xdg-utils
BuildArch:	noarch

%description
BleachBit deletes unnecessary files to free valuable disk space, maintain
privacy, and remove junk. Rid your system of old clutter including cache,
cookies, Internet history, localizations, logs, temporary files, and broken
shortcuts. It wipes clean the cache and history list of many common programs.

%files -f %{name}.lang
%doc COPYING README.md
%{_sysconfdir}/pam.d/%{name}-root
%{_sysconfdir}/security/console.apps/%{name}-root
%{_bindir}/*
%{_sbindir}/%{name}-root
%{_datadir}/applications/%{sname}.desktop
%{_datadir}/applications/%{sname}-root.desktop
%{_datadir}/metainfo/%{sname}.metainfo.xml
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/org.bleachbit.policy

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e 's|%{_bindir}/env python|%{_bindir}/python3|g' \
        bleachbit/{CLI.py,GUI.py} bleachbit.py

%build
make -C po local
%py3_build

%install
%makeinstall_std prefix=%{_prefix}

# create root desktop-file
cp %{sname}.desktop %{sname}-root.desktop
sed -i -e 's/Name=BleachBit$/Name=BleachBit as Administrator/g' %{sname}-root.desktop
sed -i -e 's/Exec=bleachbit$/Exec=bleachbit-root/g' %{sname}-root.desktop

cat > bleachbit.pam <<EOF
#%PAM-1.0
auth            include         config-util
account         include         config-util
session         include         config-util
EOF

cat > bleachbit.console <<EOF
USER=root
PROGRAM=/usr/bin/bleachbit
SESSION=true
EOF

desktop-file-install \
	--add-category="Utility"\
	--dir=%{buildroot}%{_datadir}/applications/ \
	--vendor="" %{sname}.desktop

desktop-file-install \
	--add-category="Utility"\
	--dir=%{buildroot}%{_datadir}/applications/ \
	--vendor="" %{sname}-root.desktop

# consolehelper and userhelper
ln -s consolehelper %{buildroot}%{_bindir}/%{name}-root
mkdir -p %{buildroot}%{_sbindir}
ln -s ../..%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}-root
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name}-root
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
install -m 644 %{name}.console %{buildroot}%{_sysconfdir}/security/console.apps/%{name}-root
mkdir -p %{buildroot}%{_mandir}/man1

chmod 644 %{buildroot}%{_datadir}/%{name}/Worker.py
chmod 755 %{buildroot}%{_datadir}/%{name}/CLI.py
chmod 755 %{buildroot}%{_datadir}/%{name}/GUI.py

# clean ms crap and *pyo
rm -fr %{buildroot}%{_datadir}/%{name}/Windows.py*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 460 |21cr|blindelephant-7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot 5

Summary:	Web Application Finger Printer
Name:		blindelephant
Version:	7
Release:	1
License:	LGPL
Group:		Networking/Other
Url:		http://blindelephant.sourceforge.net/
# svn checkout svn://svn.code.sf.net/p/blindelephant/code/trunk blindelephant-code
Source0:	%{name}-%{snapshot}.tar.bz2
BuildRequires:	pkgconfig(python2)
BuildArch:	noarch

%description
The BlindElephant Web Application Fingerprinter attempts to discover the
version of a (known) web application by comparing static files at known
locations against precomputed hashes for versions of those files in all all
available releases. The technique is fast, low-bandwidth, non-invasive,
generic, and highly automatable.

%files
%doc README doc/*
%{_bindir}/blindelephant
%{_datadir}/%{name}
%{python2_sitelib}/blindelephant
%{python2_sitelib}/BlindElephant-1.0-py%{py2_ver}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
cd src
%py2_build

%install
pushd src
%py2_install
popd

install -d -m 755 %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/blindelephant <<EOF
#!/bin/sh
%{__python2} %{python2_sitelib}/blindelephant/BlindElephant.py
EOF
chmod +x %{buildroot}%{_bindir}/blindelephant

install -d -m 755 %{buildroot}%{_datadir}/%{name}/shell-scripts
install -m 755 tools/shell-scripts/* \
    %{buildroot}%{_datadir}/%{name}/shell-scripts/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 461 |21cr|blis-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (C) 2018  Dave love, University of Manchester
# Licence as for the package source

# The full tests are very time-consuming
%bcond_with fulltest

# We need to manipulate the built *.so.%%sover
%global sover .2.1.0
%global major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%if 0%{?el6}%{?el7}
# Use devtoolset for avx512 support
%ifnarch ppc64le ppc64
%global dts 9
%endif
%endif

%global docs CHANGELOG.gz CREDITS README.md README.Fedora

Name:		blis
Version:	0.7.0
Release:	1
Summary:	BLAS-like Library Instantiation Software Framework
Group:		Sciences/Mathematics
License:	BSD
URL:		https://github.com/flame/blis
%if 0%{?commit}
Source0:	https://github.com/flame/blis/archive/%commit/%name-%shortcommit.tar.gz
%else
Source0:	https://github.com/flame/blis/archive/%version/%name-%version.tar.gz
%endif
# Don't identify s390x as 32-bit
Patch1:		blis-s390x.patch
BuildRequires:	perl
BuildRequires:	gomp-devel
BuildRequires:	/usr/bin/python3
BuildRequires:	gcc-gfortran
BuildRequires:	chrpath
BuildRequires:	make
# memkind is currently only relevant for KNL as far as I know, but
# might be relevant in future for other targets with HBM.  It needs
# updating in el7.  It should support other targets, but only x86_64
# is packaged.
%ifarch %{x86_64} aarch64
BuildRequires: memkind-devel
%endif

%global desc \
BLIS is a portable software framework for instantiating\
high-performance BLAS-like dense linear algebra libraries.  The\
framework was designed to isolate essential kernels of computation\
that, when optimized, immediately enable optimized implementations of\
most of its commonly used and computationally intensive operations.\
While BLIS exports a new BLAS-like API, it also includes a BLAS\
compatibility layer which gives application developers access to BLIS\
implementations via traditional BLAS routine calls.\
\
This packaging contains automatically-dispatched\
architecture-optimized kernels for some targets, notably recent x86_64.

%description
%desc


#---------------------------------------------------------
%package -n %{libname}
Summary:	BLAS-like Library Instantiation Software Framework
Group:		Sciences/Mathematics

%description -n %{libname}
%desc

This is the serial version.

%files -n %{libname}
%doc %docs
%license LICENSE
%{_libdir}/libblis.so.%{major}*
%{_libdir}/blisblas

#------------------------------------------------------------------
%if 0%{?__isa_bits} == 64

%define libblis64 %mklibname blis64_ %{major}

%package -n %{libblis64}
Summary:	BLAS-like Library Instantiation Software Framework - 64-bit
Group:		Sciences/Mathematics

%description -n %{libblis64}
%desc

This is the serial version with a 64-bit integer interface.

%files -n %{libblis64}
%doc %docs
%license LICENSE
%{_libdir}/libblis64.so.%{major}*
%{_libdir}/blisblas64
%endif

#---------------------------------------------------------
%define libbliso %mklibname bliso %{major}

%package -n %{libbliso}
Summary:	BLAS-like Library Instantiation Software Framework - OpenMP
Group:		Sciences/Mathematics

%description -n %{libbliso}
%desc

This is the OpenMP-parallelized version.

%files -n %{libbliso}
%doc %docs
%license LICENSE
%{_libdir}/libbliso.so.%{major}*
%{_libdir}/blisblaso

#---------------------------------------------------------
%if 0%{?__isa_bits} == 64
%define libbliso64 %mklibname bliso64_ %{major}

%package -n %{libbliso64}
Summary:	BLAS-like Library Instantiation Software Framework - OpenMP, 64-bit
Group:		Sciences/Mathematics

%description -n %{libbliso64}
%desc

This is the OpenMP-parallelized version with a 64-bit integer interface.

%files -n %{libbliso64}
%doc %docs
%license LICENSE
%{_libdir}/libbliso64.so.%{major}*
%{_libdir}/blisblaso64
%endif

#---------------------------------------------------------
%define libblisp %mklibname blisp %{major}

# A pthreads version is necessary for Python (numpy) according to
# Debian openblas.
%package -n %{libblisp}
Summary:	BLAS-like Library Instantiation Software Framework - pthreads
Group:		Sciences/Mathematics

%description -n %{libblisp}
%desc

This is the pthreads-parallelized version.

%files -n %{libblisp}
%doc %docs
%license LICENSE
%{_libdir}/libblisp.so.%{major}*
%{_libdir}/blisblasp

#---------------------------------------------------------
%if 0%{?__isa_bits} == 64
%define libblisp64 %mklibname blisp64_ %{major}

%package -n %{libblisp64}
Summary:	BLAS-like Library Instantiation Software Framework - pthreads, 64-bit
Group:		Sciences/Mathematics

%description -n %{libblisp64}
%desc

This is the pthreads-parallelized version with a 64-bit integer interface.

%files -n %{libblisp64}
%doc %docs
%license LICENSE
%{_libdir}/libblisp64.so.%{major}*
%{_libdir}/blisblasp64
%endif

#---------------------------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libbliso} = %{EVRD}
Requires:	%{libblisp} = %{EVRD}
%if 0%{?__isa_bits} == 64
Requires:	%{libblis64} = %{EVRD}
Requires:	%{libbliso64} = %{EVRD}
Requires:	%{libblisp64} = %{EVRD}
%endif
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc examples
%{_includedir}/*
%{_libdir}/libblis*.so

#---------------------------------------------------------

%package srpm-macros
Summary:	BLIS architecture macros
Group:		Sciences/Mathematics
BuildArch:	noarch

%description srpm-macros
BLIS architecture macros.

%files srpm-macros
%{_sys_macros_dir}/macros.blis-srpm

#---------------------------------------------------------
%prep
%setup -q %{?commit: -n %{name}-%commit}
# The soversion changed in release 0.7.0, but abipkgdiff suggests it
# shouldn't have, since only undocumented interfaces have changed from
# 0.6.0: removed bli_thread_get_env, bli_thread_init_rntm; indirect
# sub-types in bli_addd_ex; ARCH enum in bli_arch_query_id.
echo %sover | awk -F. '{printf("%s\n%s.%s\n", $2,$3,$4)}' >so_version
%patch1 -p1


%build
%{?dts:. /opt/rh/devtoolset-%{?dts}/enable}
case %_arch in
x86_64) arch=x86_64 ;;
# a57 runs on all aarch64 and the optimized micro-kernel should be a
# better default than generic.
# Fixme:  Include my changes for arm and ppc micro-arch dispatch.
aarch64) arch=cortexa57 ;;
armv7hl) arch=cortexa9 ;;	# Similarly to aarch64
*) arch=generic ;;
esac

# Hardening flags might be expected to affect performance, but appear
# not to.  With the f29 set and gcc 8 (but measured on EL6) for
# Haswell, a 5000×5000 DGEMM ran at 158295±565 MFLops with
# CFLAGS=$RPM_OPT_FLAGS and 158289±414 MFlops with no CFLAGS specified.
# Add back -O3, overridden by -O2 in RPM_OPT_FLAGS.
# -funsafe-math-optimizations vectorizes more, and passes tests
# <https://github.com/flame/blis/issues/259#issuecomment-463657085>
%global confflags --enable-debug=opt --disable-static --enable-shared --enable-verbose-make --enable-cblas
export CFLAGS="$RPM_OPT_FLAGS -O3 -funsafe-math-optimizations" LDFLAGS="%{?__global_ldflags}"
export PYTHON=python3		# Needed by both configure and make

# It's not an autotools configure
./configure --prefix=$(pwd)/o %confflags -t openmp $arch
%make_build SOFLAGS="-shared -Wl,-soname=libbliso.so%sover"
make install

./configure --prefix=$(pwd)/p %confflags -t pthreads $arch
%make_build SOFLAGS="-shared -Wl,-soname=libblisp.so%sover"
make install

# Rename the libraries per soname and generate BLAS_compatible ones
mkdir -p blisblas{,o,p,64,o64,p64}
for d in o p; do
  cd $d/lib
  f=libblis.so%sover
  mv $f ${f/./$d.}
  ln -s libblis$d.so%sover libblis$d.so
  ln -s libblis$d.so%sover  libblis$d.so.%{major}
  rm libblis.*
  cd ../..
  cc -shared -Wl,-soname=libblas.so.3 -L$(pwd)/$d/lib -lblis$d -o blisblas$d/libblas.so.3 $LDFLAGS
  ln -s libblas.so.3 blisblas$d/libblas.so
done

%if 0%{?__isa_bits} == 64

./configure --prefix=$(pwd)/64 %confflags -b 64 $arch
%make_build SOFLAGS="-shared -Wl,-soname=libblis64.so%sover"
make install

./configure --prefix=$(pwd)/o64 %confflags -b 64 -t openmp $arch
%make_build SOFLAGS="-shared -Wl,-soname=libbliso64.so%sover"
make install

./configure --prefix=$(pwd)/p64 %confflags -b 64 -t pthreads $arch
%make_build SOFLAGS="-shared -Wl,-soname=libblisp64.so%sover"
make install

for d in 64 o64 p64; do
  cd $d/lib
  f=libblis.so%sover
  mv $f ${f/./$d.}
  ln -s libblis$d.so%sover libblis$d.so
  ln -s libblis$d.so%sover libblis$d.so.%{major}
  rm -f libblis.*
  cd ../..
  cc -shared -Wl,-soname=libblas64.so.3 -L$(pwd)/$d/lib -lblis$d -o blisblas$d/libblas64.so.3 $LDFLAGS
  ln -s libblas64.so.3 blisblas$d/libblas64.so
done

%endif

# done last for the benefit of check
./configure --prefix=$(pwd)/serial %confflags $arch
%make_build
make install
cc -shared -Wl,-soname=libblas.so.3 -L$(pwd)/serial/lib -lblis -o blisblas/libblas.so.3 $LDFLAGS
ln -s libblas.so.3 blisblas/libblas.so


%install
mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_includedir}

cp -a {serial,o,p}/lib/* %{buildroot}%{_libdir}
mv serial/include/blis %{buildroot}%{_includedir}
for d in o p; do
  cp -a $d/include/blis %{buildroot}%{_includedir}/blis$d
done
%if 0%{?__isa_bits} == 64
cp -a {64,o64,p64}/lib/* %{buildroot}%{_libdir}
for d in 64 o64 p64; do
  cp -a $d/include/blis %{buildroot}%{_includedir}/blis$d
done
%endif
# Needed for debuginfo processing
chmod +x %{buildroot}%{_libdir}/*.so.*
cp -a blisblas* %{buildroot}%{_libdir}
# This is quite large.
gzip CHANGELOG
chrpath -d %{buildroot}%{_libdir}/*.so.*

cat <<EOF >README.Fedora
Fedora BLIS packaging
---------------------

Similarly to the OpenBLAS packaging, as well as the serial library
(libblis), there are versions named with suffix "o" using OpenMP, and
suffix "p" using pthreads.  Also, on 64-bit targets, there are
versions built with 64-bit integer interfaces, which have suffix "64".
Thus "libblaso64" is built for 64-bit integers and OpenMP
parallelization.  The cblas interface is included in each version.

For the BLAS interface, BLIS and OpenBLAS are expected to have similar
performance where they are optimized for the same micro-architectures,
but do show some performance differences in either direction.  BLIS
supports AVX512 on KNL and SKX, which OpenBLAS currently doesn't, and
will be more than twice as fast on such systems, which are the main
targets for this packaging.  BLIS' non-BLAS interface is obviously a
potential advantage generally, but it isn't currently used by any
Fedora packages.

There are shared library shims in %{_libdir}/blisblas* for each version
that provide sonames libblas.so.3 or libblas64.so.3 and so may be
linked dynamically instead of the reference libblas.  You can use an
ldconfig file so that this will be done automatically if the blis or
blis64 packages are installed, which will usually be a lot faster than
the reference version.  Otherwise, setting
LD_LIBRARY_PATH=%{_libdir}/blisblaso, say, will cause a binary
dynamically linked against libblas to run with the OpenMP BLIS version
instead, to allow multiple threads to be used.  The shims could be
extended to substitute the atlas and openblas libraries, but those can
be overridden by running with LD_PRELOAD=%{_libdir}/libblis.so%sover in
the environment.

Runtime dispatch on the micro-architecture is currently only available
on x86_64.  aarch64 will use cortexa57 instructions.  Other
architectures use the "generic" target, so OpenBLAS will be faster on
any of them that it supports (arm, power64, ix86, and s390x in Fedora).

The blis-srpm-macros package defines RPM macro %blis_opt_arches for
the architectures with optimized implementations in case the list is
extended in future.

EOF

mkdir -p %{buildroot}%{_sys_macros_dir}
cat <<EOF >%{buildroot}%{_sys_macros_dir}/macros.blis-srpm
# Architectures for for BLIS has an optimized implementation
%blis_opt_arches x86_64 aarch64
EOF


%check
%{?dts:. /opt/rh/devtoolset-%{?dts}/enable}
# A quick check which tests the Fortran BLAS interface with gfortran,
# unlike the "test" or "check" targets.
# Fixme: check a 64-bit version where relevant
gfortran -o dblat blastest/src/fortran/dblat3.f -Lblisblas -Lserial/lib -lblas -lblis
LD_LIBRARY_PATH=$(pwd)/serial/lib:$(pwd)/blisblas ./dblat <<+ || { cat dblat3.summ && false; }
'dblat3.summ'
6
'dblat3.snap'
-1
F
T
T
16.0
7
0 1 2 3 7 31 63
3
0.0 1.0 0.7
3
0.0 1.0 1.3
DGEMM  T
DSYMM  F
+

export LD_LIBRARY_PATH=`pwd`/serial/lib
%if %{with fulltest}
%make_build test
%else
%make_build check
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 462 |21cr|blktrace-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		blktrace
Summary:	Utilities for performing block layer IO tracing in the Linux kernel
Group:		System/Kernel and hardware
Version:	1.3.0
Release:	1
License:	GPLv2+
Url:		http://brick.kernel.dk/snaps
Source0:	http://brick.kernel.dk/snaps/blktrace-%{version}.tar.bz2

BuildRequires:	python3-devel
BuildRequires:	libaio-devel
BuildRequires:	librsvg2-devel
BuildRequires:	gnupg2
Requires:	librsvg

%description
blktrace is a block layer IO tracing mechanism which provides detailed
information about request queue operations to user space.  This package
includes both blktrace, a utility which gathers event traces from the kernel;
and blkparse, a utility which formats trace data collected by blktrace.

You should install the blktrace package if you need to gather detailed
information about IO patterns.

%files
%doc README COPYING
%{_bindir}/blkparse
%{_bindir}/blkrawverify
%{_bindir}/bno_plot.py
%{_bindir}/btt
%{_bindir}/verify_blkparse
%{_bindir}/blkiomon
%{_bindir}/blktrace
%{_bindir}/btrace
%{_bindir}/btrecord
%{_bindir}/btreplay
%{_mandir}/man1/blkparse.*
%{_mandir}/man1/blkrawverify.*
%{_mandir}/man1/bno_plot.*
%{_mandir}/man1/btt.*
%{_mandir}/man1/verify_blkparse.*
%{_mandir}/man8/blkiomon.*
%{_mandir}/man8/blktrace.*
%{_mandir}/man8/btrace.*
%{_mandir}/man8/btrecord.*
%{_mandir}/man8/btreplay.*

#-----------------------------------------------------------------------
%package -n iowatcher
Summary:	Utility for visualizing block layer IO patterns and performance
Group:		System/Kernel and hardware
Requires:	blktrace
Requires:	sysstat
Requires:	theora-tools

%description -n iowatcher
iowatcher generates graphs from blktrace runs to help visualize IO patterns and
performance as SVG images or movies. It can plot multiple blktrace runs
together, making it easy to compare the differences between different benchmark
runs.

You should install the iowatcher package if you need to visualize detailed
information about IO patterns.

%files -n iowatcher
%doc README iowatcher/COPYING
%{_bindir}/iowatcher
%{_mandir}/man1/iowatcher.*

#-----------------------------------------------------------------------
%prep
%autosetup -p1

pathfix.py -i %{__python3} -pn \
 btt/bno_plot.py \
 btt/btt_plot.py

sed -i '1s=^#!/usr/bin/python3=#!%{__python3}=' \
	btt/{btt_plot.py,bno_plot.py}

%build
%make_build CFLAGS="%{optflags} %{ldflags}" all

%install
make dest=%{buildroot} prefix=%{buildroot}/%{_prefix} mandir=%{buildroot}/%{_mandir} install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 463 |21cr|blobby-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Blobby Volley 2 arcade game
Name:		blobby
Version:	1.0
Release:	8
License:	GPLv2+
Group:		Games/Arcade
Url:		http://sourceforge.net/projects/blobby/
Source0:	http://prdownloads.sourceforge.net/%{name}/blobby2-linux-%{version}.tar.gz
Source1:	%{name}.appdata.xml
Patch0:		blobby2-1.0-mga-games-install-dirs.patch
Patch1:		blobby2-1.0-mga-install-missing-data.patch
Patch2:		blobby-1.0-ostream.patch
BuildRequires:	cmake
BuildRequires:	icoutils
BuildRequires:	zip
BuildRequires:	boost-devel
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(sdl2)

%description
Blobby Volley 2 is an arcade game with a simple gameplay and funny
characters design.

%files
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-server
%{_gamesdatadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake
%make

%install
%makeinstall_std -C build

# Icon
for size in 48 64; do
	install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
	icotool -x -w${size} data/Icon.ico -o %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

# Desktop file
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Blobby Volley 2
Comment=Blobby Volley 2 arcade game
Comment[fr]=Jeu de volley-ball d'arcade
Comment[de]=Volley-Ball Arcade-Spiel
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# AppData
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 464 |21cr|bloboats-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Boat racing game
Name:		bloboats
Version:	1.0.2
Release:	6
License:	GPL
Group:		Games/Arcade
Url:		http://bloboats.dy.fi/
Source0:	http://mirror.kapsi.fi/bloboats.dy.fi/%{name}-%{version}.tar.gz
Patch0:		bloboats-1.0.2-cflags.patch
Patch1:		bloboats-1.0.2-gcc7.patch
Patch2:		bloboats-1.0.2-gcc11.patch
Patch3:		bloboats-1.0.2-fix_segfault_notebook.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(vorbis)

%description
Bloboats is a boat racing game in which the objective is to reach the
goal as fast as possible, at least faster than your friend does.

%files
%doc copying.txt readme.txt
%{_gamesbindir}/%{name}
%{_sysconfdir}/bloboats.dirs
# Why does this files get 755 perms?
%attr(0644,root,root) %{_gamesdatadir}/%{name}/data/*/*.*
%attr(0644,root,root) %{_gamesdatadir}/%{name}/data/defaults/*/*.*
%attr(0644,root,root) %{_gamesdatadir}/%{name}/data/defaults/private/*/*.*
%{_datadir}/applications/*.desktop
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%make \
	STRIP=true \
	CFLAGS="%{optflags}" \
	DATADIR=%{_gamesdatadir}/%{name}/data

%install
%makeinstall_std \
	PREFIX=%{buildroot} \
	BINARYDIR=%{buildroot}%{_gamesbindir} \
	DATADIR=%{buildroot}%{_gamesdatadir}/%{name}/data

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{Summary}
Exec=%{name}
Icon=%{name}
Terminal=false
StartupNotify=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# install icons
mkdir -p %{buildroot}{%{_liconsdir},%{_miconsdir},%{_iconsdir}}
cp data/images/icon.png %{buildroot}%{_iconsdir}/%{name}.png
convert -scale 48x48 data/images/icon.png %{buildroot}%{_liconsdir}/%{name}.png
convert -scale 16x16 data/images/icon.png %{buildroot}%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 465 |21cr|blobwars-2.00-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Otherwise tests fail because the package requires
# "/usr/bin/php" and php-cli provides only "php"
%global __requires_exclude php

Summary:	Blob Wars Episode I : Metal Blob Solid
Name:		blobwars
Version:	2.00
Release:	7
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.parallelrealities.co.uk
Source0:	http://ovh.dl.sourceforge.net/project/blobwars/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		blobwars-2.00-Werror.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(zlib)
# Recolor script needs "/usr/bin/php"
Requires:	php-cli
Requires:	fonts-ttf-bitstream-vera

%description
Since their world was invaded by an alien race, the Blobs have faced a
lifetime of war. But now they have a chance to win the war once and for all.
In Episode I : Metal Blob Solid, you take on the role of a fearless Blob
agent, Bob. Bob's mission is to infiltrate the various enemy bases around the
Blobs'homeworld and rescue as many POWs as possible. But standing in his way
are many vicious enemies, other Blobs who have defected and the evil alien
leader, Galdov.

%files -f %{name}.lang
%doc doc/*
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix bogus perms
find . -type d |while read r; do chmod 0755 "$r"; done
find . -type f |while read r; do chmod 0644 "$r"; done


%build
%make \
	CFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}" \
	RELEASE=1


%install
%makeinstall_std

desktop-file-install \
	--vendor="" \
	--remove-key="Encoding" \
	--remove-category="Application" \
	--remove-category="ActionGame" \
	--add-category="ArcadeGame" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

rm -f %{buildroot}%{_gamesdatadir}/%{name}/data/vera.ttf
ln -s %{_xfontdir}/TTF/Vera.ttf \
	%{buildroot}%{_gamesdatadir}/%{name}/data/vera.ttf

# Fix perms
chmod +x %{buildroot}%{_gamesdatadir}/%{name}/gfx/sprites/recolor

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 466 |21cr|blockout-2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname BlockOutII


Name:           blockout
Version:        2.5
Release:        1
Summary:        A free clone of the original BlockOut-DOS game
Group:          Games/Arcade
License:        GPLv2+
Url:            http://www.blockout.net/blockout2
Source0:        http://download.sourceforge.net/blockout/bl25-src.tar.gz
Source1:        http://download.sourceforge.net/blockout/bl25-linux-x64.tar.gz
Patch0:         blockout-2.5-rosa.patch
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  icoutils
Requires:       %{name}-data >= %{EVRD}
Provides:       %{oname} = %{EVRD}
Obsoletes:      %{oname} < %{EVRD}


%description
BlockOut II is a free adaptation of the original BlockOut DOS game
edited by California Dreams in 1989. BlockOut II has the same
features than the original game with few graphic improvements. The
game has been designed to reproduce the original game kinematics as
accurately as possible.

%files
%doc BlockOut/README.txt
%{_gamesbindir}/%{name}
%{_bindir}/%{oname}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
#--------------------------------------------------------------------------
%package data

Summary:	Data files for BlockOut II
License:	GPLv2+
Group:		Games/Arcade
Suggests:	%{name} = %{version}
BuildArch:	noarch

%description data
Data files for %{oname}

%files data
%doc %{name}/README.txt
%{_gamesdatadir}/%{name}/

#------------------------------------------------------------

%prep
%setup -qn BL_SRC -a 1 
%patch0 -p1
# spuriouse-executable-permit
find -type f -exec chmod 644 {} \;
# wrong-file-end-of-line-encoding
perl -i -pe 's/\r\n/\n/gs' ImageLib/src/CImage.*
# clean out backup files
rm -fr ImageLib/src/png/zlib/*.*~
# fix attr for doc section
chmod 644 %{name}/README.txt BlockOut/README.txt
# utf-8 convert docs
for file in %{name}/README.txt BlockOut/README.txt ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done

# fix attr
pushd %{name}
chmod -x sounds/music.ogg \
  images/background.png
popd
#


%build
%setup_compile_flags
%make -C ImageLib/src
export CXXFLAGS+=" -Wno-error=format-security"
%make -C BlockOut

%install
#wrapper
install -D -m755 BlockOut/%{name} %{buildroot}%{_bindir}/%{oname}

install -d %{buildroot}%{_gamesbindir}
cat << EOF > %{buildroot}%{_gamesbindir}/%{name}
#!/bin/sh
export BL2_HOME=%{_gamesdatadir}/%{name}
exec %{_bindir}/%{oname} \$1
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{name}

# menu entry
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=BlockOut II
GenericName=3D tetris-like
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# icons
icotool -x BlockOut/block_icon.ico
install -D -m644 block_icon_1_32x32x4.png  %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m644 block_icon_2_16x16x4.png  %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m644 block_icon_3_48x48x32.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# data
pushd %{name}
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a images sounds %{buildroot}%{_gamesdatadir}/%{name}/
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 467 |21cr|blop-0.2.8-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Disable debug package because build requires special optimizations
# See comments in configure.in
%global	debug_package %{nil}

Summary:	Bandlimited LADSPA Oscillator Plugins
Name:		blop
Version:	0.2.8
Release:	14
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/blop/
Source0:	https://sourceforge.net/projects/blop/files/blop/0.2/%{name}-%{version}.tar.bz2
BuildRequires:	ladspa-devel
Requires:	ladspa

%description
BLOP comprises a set of LADSPA plugins that generate bandlimited
sawtooth, square, variable pulse and slope-variable triangle waves,
for use in LADSPA hosts, principally for use with one of the many
modular software synthesisers available.

They are wavetable based, and are designed to produce output with
harmonic content as high as possible over a wide pitch range.

%files -f %{name}.lang
%doc AUTHORS NEWS README THANKS TODO doc/{about.txt,blop.rdf,plugins_list.txt}
%{_libdir}/ladspa/*.so
%{_libdir}/ladspa/%{name}_files
%{_datadir}/ladspa/rdf/%{name}.rdf

#----------------------------------------------------------------------------

%prep
%setup -q
perl -p -i -e 's/\/lib\//\/%{_lib}\//g' src/wavedata.c


%build
%configure \
	--with-ladspa-plugin-dir=%{_libdir}/ladspa
%make


%install
mkdir -p %{buildroot}%{_libdir}/ladspa
mkdir -p %{buildroot}%{_datadir}/ladspa/rdf
%makeinstall_std

# Install the rdf description
install -m0644 doc/%{name}.rdf %{buildroot}%{_datadir}/ladspa/rdf

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 468 |21cr|blosc-1.20.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}

Summary:	A high performance compressor optimized for binary data
Name:		blosc
Version:	1.20.1
Release:	2
Group:		Development/C
License:	MIT
Source:		https://github.com/FrancescAlted/blosc/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
URL:		https://github.com/FrancescAlted/blosc
BuildRequires:	cmake
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	snappy-devel
BuildRequires:	zlib-devel

%description
Blosc is a compression library designed to transmit data to the processor
cache faster than the traditional non-compressed memory fetch.
Compression ratios are not very high, but the decompression is very fast.
Blosc is meant not only to reduce the size of large datasets on-disk or
in-memory, but also to accelerate memory-bound computations.

#----------------------------------------------------------------------
%package -n %{libname}
Summary:	A high performance compressor optimized for binary data

%description -n %{libname}
Blosc is a compression library designed to transmit data to the processor
cache faster than the traditional non-compressed memory fetch.
Compression ratios are not very high, but the decompression is very fast.
Blosc is meant not only to reduce the size of large datasets on-disk or
in-memory, but also to accelerate memory-bound computations.

%files -n %{libname}
%exclude %{_pkgdocdir}/bench/
%doc ANNOUNCE.rst RELEASE_NOTES.rst README.md README_THREADED.rst
%{_libdir}/libblosc.so.*

#----------------------------------------------------------------------

%package -n %{devname}
Summary: Header files and libraries for Blosc development
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel

%description -n %{devname}
The blosc-devel package contains the header files and libraries needed
to develop programs that use the blosc meta-compressor.

%files -n %{devname}
%{_libdir}/libblosc.so
%{_includedir}/blosc.h
%{_includedir}/blosc-export.h
%{_libdir}/pkgconfig/blosc.pc

#----------------------------------------------------------------------

%package bench
Summary: Benchmark for the Blosc compressor
Requires: %{libname} = %{version}-%{release}
Requires: python3-matplotlib

%description bench
The blosc-bench package contains a benchmark suite which evaluates
the performance of Blosc, and compares it with memcpy.

%files bench
%{_pkgdocdir}/bench/*.c
%{_pkgdocdir}/bench/*.py
%{_bindir}/%{name}-bench
%{_bindir}/%{name}-plot-times

#----------------------------------------------------------------------

%prep
%setup -qn c-%{name}-%{version}

# https://github.com/Blosc/c-blosc/issues/190
sed -i 's|lib/pkgconfig|%{_lib}/pkgconfig|' CMakeLists.txt

%cmake \
        -DBUILD_STATIC=OFF \
        -DCMAKE_C_FLAGS:STRING="%{optflags}" \
        -DPREFER_EXTERNAL_SNAPPY=ON \
        -DPREFER_EXTERNAL_ZLIB=ON \
        -DPREFER_EXTERNAL_ZSTD=ON \
        -DPREFER_EXTERNAL_LZ4=ON

%build
%make VERBOSE=1 -C build

%install
%makeinstall_std -C build

mkdir -p %{buildroot}/%{_pkgdocdir}/bench
install -p bench/plot-speeds.py* %{buildroot}/%{_pkgdocdir}/bench/
install -pm 0644 bench/*.c %{buildroot}/%{_pkgdocdir}/bench

mkdir -p %{buildroot}/%{_bindir}
install -p build/bench/bench %{buildroot}/%{_bindir}/%{name}-bench
install -p bench/plot-speeds.py %{buildroot}/%{_bindir}/%{name}-plot-times

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 469 |21cr|blosc2-2.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define major 2
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Name:           blosc2
Version:        2.9.2
Release:        2
Summary:        A fast, compressed, persistent binary data store library for C
Group:          System/Libraries
License:        BSD-2-Clause AND BSD-3-Clause AND MIT
URL:            https://www.blosc.org/c-blosc2/c-blosc2.html
Source0:        https://github.com/Blosc/c-blosc2/archive/refs/tags/v%{version}.tar.gz#/c-blosc2-%{version}.tar.gz
Patch0:         blosc2-link.patch
BuildRequires:  cmake
BuildRequires:  pkgconfig(liblz4)
BuildRequires:  pkgconfig(libzstd)
BuildRequires:  pkgconfig(zlib)

%description
Blosc is a high performance compressor optimized for binary data
(i.e. floating point numbers, integers and booleans). It has been
designed to transmit data to the processor cache faster than the
traditional, non-compressed, direct memory fetch approach via a
memcpy() OS call. Blosc main goal is not just to reduce the size
of large datasets on-disk or in-memory, but also to accelerate
memory-bound computations.

C-Blosc2 is the new major version of C-Blosc, and tries hard to
be backward compatible with both the C-Blosc1 API and its in-memory
format. However, the reverse thing is generally not true for the
format; buffers generated with C-Blosc2 are not format-compatible
with C-Blosc1 (i.e. forward compatibility is not supported). In
case you want to ensure full API compatibility with C-Blosc1 API,
define the BLOSC1_COMPAT symbol.

#--------------------------------------------------------------
%package -n %{libname}
Summary:        A fast, compressed, persistent binary data store library for C
Group:          System/Libraries

%description -n %{libname}
Blosc is a high performance compressor optimized for binary data
(i.e. floating point numbers, integers and booleans).

%files -n %{libname}
%{_libdir}/libblosc2.so.%{major}
%{_libdir}/libblosc2.so.%{version}

#--------------------------------------------------------------

%package -n %{devname}
Summary:        Development libraries for %{libname}
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
This package provides development libraries and headers
for %{libname}.

%files -n %{devname}
%doc examples/
%license LICENSE.txt LICENSES/*.txt
%doc ANNOUNCE.md README*.rst RELEASE_NOTES.md THANKS.rst
%{_includedir}/blosc2
%{_includedir}/blosc2.h
%{_includedir}/b2nd.h
%{_libdir}/libblosc2.so
%{_libdir}/pkgconfig/blosc2.pc

#--------------------------------------------------------------

%prep
%autosetup -p1 -n c-blosc2-%{version}

%build
# FIXME: hmmmm.... x86_64_v3 that is it?
%cmake \
%ifnarch x86_64_v3
  -DDEACTIVATE_AVX2:BOOL=ON \
%endif
  -DPREFER_EXTERNAL_ZLIB:BOOL=ON \
  -DPREFER_EXTERNAL_ZSTD:BOOL=ON \
  -DPREFER_EXTERNAL_LZ4:BOOL=ON \
  -DBUILD_STATIC:BOOL=OFF \
  -DBUILD_EXAMPLES:BOOL=OFF \
  -DBUILD_FUZZERS:BOOL=OFF \
  -DBUILD_BENCHMARKS:BOOL=OFF

%make_build

%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 470 |21cr|blowfish-j-2.15-0.0.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Blowfish implementation in Java
Name:		blowfish-j
Version:	2.15
Release:	0.0.8
License:	Apache License
Group: 		Development/Java
Url: 		http://www.lassekolb.info/bfacs.htm
Source0:	http://www.lassekolb.info/bfj215.zip
Source1:	%{name}-build.xml
BuildRequires:	ant
BuildRequires:	java-rpmbuild
BuildRequires:	jpackage-utils >= 1.5
Buildarch:	noarch

%description
The Blowfish implementation in Java, very fast ECB and CBC 
encryption. Comes with the BlowfishEasy class for simple string 
encryption, plus a solution for streaming.

%files
%defattr(0644,root,root,755)
%doc license.txt
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar

#----------------------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description javadoc
Javadoc for %{name}.

%files javadoc
%defattr(0644,root,root,0755)
%dir %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}-%{version}/*
%{_javadocdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -c -n %{name}-%{version}
[ ! -f build.xml ] && cp -a %{SOURCE1} build.xml

%build
%ant clean dist javadoc

%install
# jar
install -d -m 755 %{buildroot}%{_javadir}

install -m 644 dist/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
ln -sf ${jar} ${jar/-%{version}/}; done)

# javadoc
install -p -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
(cd %{buildroot}%{_javadocdir} && ln -sf %{name}-%{version} %{name})


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 471 |21cr|bluecurve-icon-theme-8.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bluecurve icon theme
Group:		Graphical desktop/Other
Name:		bluecurve-icon-theme
Version:	8.0.2
Release:	1
BuildArch:	noarch
License:	GPL-2.0-or-later
URL:		http://www.redhat.com
# There is no official upstream yet
Source0:	%{name}-%{version}.tar.bz2

Requires:	bluecurve-cursor-theme
Requires(post):	coreutils

# we require XML::Parser for our in-tree intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	intltool

%description
This package contains Bluecurve style icons.

%package -n bluecurve-cursor-theme
Summary:	Bluecurve cursor theme
Group:		Graphical desktop/Other

%description -n bluecurve-cursor-theme
This package contains Bluecurve style cursors.

%prep
%autosetup -p1

%build
%configure
make

%install
%make_install INSTALL_DATA="cp -r "

# These are empty
rm -f ChangeLog NEWS README

touch %{buildroot}%{_datadir}/icons/Bluecurve/icon-theme.cache

# The upstream packages may gain po files at some point in the near future
# %find_lang %{name} || touch %{name}.lang

%files
%doc AUTHORS
%license COPYING
%{_iconsdir}/Bluecurve/index.theme
%{_iconsdir}/Bluecurve/16x16
%{_iconsdir}/Bluecurve/20x20
%{_iconsdir}/Bluecurve/24x24
%{_iconsdir}/Bluecurve/32x32
%{_iconsdir}/Bluecurve/36x36
%{_iconsdir}/Bluecurve/48x48
%{_iconsdir}/Bluecurve/64x64
%{_iconsdir}/Bluecurve/96x96
%ghost %{_iconsdir}/Bluecurve/icon-theme.cache

%files -n bluecurve-cursor-theme
%doc AUTHORS
%license COPYING
%dir %{_iconsdir}/Bluecurve
%{_iconsdir}/Bluecurve/Bluecurve.cursortheme
%{_iconsdir}/Bluecurve/cursors
%{_iconsdir}/Bluecurve-inverse
%{_iconsdir}/LBluecurve
%{_iconsdir}/LBluecurve-inverse


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 472 |21cr|bluefish-2.2.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Web development studio
Name:		bluefish
Version:	2.2.16
Release:	2
License:	GPLv2+
Group:		Networking/WWW
Url:		http://bluefish.openoffice.nl/
Source0:	http://www.bennewitz.com/bluefish/stable/source/%{name}-%{version}.tar.bz2
Patch0:		bluefish-2.2.16-replace-obsolete-macro.patch
BuildRequires:	intltool
BuildRequires:	aspell-devel
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gucharmap-2.90)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(python3)
Requires:	python3
Recommends:	dos2unix tidy lynx
Recommends:	python3-jsbeautifier

%description
Bluefish is a programmer's HTML editor, designed to save the experienced
webmaster some keystrokes.

It features a multiple file editor, multiple toolbars, custom menus, image
and thumbnail dialogs,  open from the web, HTML validation and lots of wizards.

This is not a WYSIWYG editor but a HTML editor (you edit the HTML code).

%files -f %{name}.lang
%doc AUTHORS README ChangeLog TODO
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/xml/%{name}
%{_datadir}/applications/*
%{_datadir}/metainfo/bluefish.appdata.xml
%{_datadir}/pixmaps/*.png
%{_datadir}/mime/packages/*
%{_docdir}/bluefish/bflang/sample.bflang2
%{_mandir}/man1/%{name}.1.*
%{_iconsdir}/*/*/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%py3_shebang_fix data/*
%py3_shebang_fix src/*

%build
%configure \
	--disable-update-databases
%make

%install
%makeinstall_std

for script in %{buildroot}%{_datadir}/bluefish/plugins/zencoding/filters/*.py \
	%{buildroot}%{_datadir}/bluefish/plugins/zencoding/actions/*.py \
	%{buildroot}%{_datadir}/bluefish/plugins/zencoding/resources.py \
	%{buildroot}%{_datadir}/bluefish/plugins/zencoding/utils.py \
	%{buildroot}%{_datadir}/bluefish/plugins/zencoding/html_matcher.py
do
[ -f "$script" ] && chmod +x "$script"
done

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 473 |21cr|bluegps-2.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple command line tool for the Royaltek RBT-3000 bluetooth GPS receiver
Name:		bluegps
Version:	2.0
Release:	9
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		http://www.harbaum.org/till/bluegps/
Source0:	http://www.harbaum.org/till/bluegps/bluegps-linux-%{version}.tgz
BuildRequires:	pkgconfig(bluez)

%description
BlueGPS is a simple command line tool to download datalogs from the Royaltek
RBT-3000 bluetooth GPS receiver under Linux, and to configure the data logger.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-linux-%{version}

%build
%make CC="%__cc %{optflags}"

%install
mkdir -p %{buildroot}/%{_bindir}
install -m755 bluegps %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
install -m644 bluegps.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 474 |21cr|blueman-2.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# autogen.sh is run
%define _disable_rebuild_configure 1

Summary:	GTK+ Bluetooth Manager
Name:		blueman
Version:	2.3.2
Release:	1
License:	GPLv2+
Group:		Communications
Url:		https://github.com/blueman-project/blueman
Source0:	https://github.com/blueman-project/blueman/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	iproute2
BuildRequires:	python3-dbus
BuildRequires:	python3-cython
BuildRequires:	python3-notify
BuildRequires:	pkgconfig(appindicator3-0.1)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
# just to ensure valid path when sed'ing
BuildRequires:	%{_libexecdir}/bluetooth/bluetoothd
Requires:	bluez
Requires:	dbus
Requires:	python3-dbus
Requires:	python3-gi-cairo
Requires:	typelib(AppIndicator3)
# no need to install pulseaudio on systems with e.g. pipewire
# https://bugzilla.redhat.com/show_bug.cgi?id=1953716
Recommends:	(pulseaudio-module-bluetooth if pulseaudio-real)
Recommends:	(%{name}-thunar-sendto if thunar)

%description
Blueman is a tool to use Bluetooth devices. It is designed to provide simple,
yet effective means for controlling BlueZ API and simplifying bluetooth tasks
such as:
- Connecting to 3G/EDGE/GPRS via dial-up
- Connecting to/Creating bluetooth networks
- Connecting to input devices
- Connecting to audio devices
- Sending/Receiving files via OBEX
- Pairing

%files -f blueman.lang
%license COPYING
%doc CHANGELOG.md FAQ README.md
%{_bindir}/*
%{python3_sitelib}/blueman/
%{python3_sitearch}/*.so
%{_libexecdir}/blueman-*
%{_sysconfdir}/xdg/autostart/blueman.desktop
%{_datadir}/applications/blueman-*.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/blueman/
%{_datadir}/dbus-1/services/org.blueman.Applet.service
%{_datadir}/dbus-1/services/org.blueman.Manager.service
%{_datadir}/dbus-1/system-services/org.blueman.Mechanism.service
%{_datadir}/dbus-1/system.d/org.blueman.Mechanism.conf
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/polkit-1/actions/org.blueman.policy
%{_datadir}/polkit-1/rules.d/blueman.rules
%{_mandir}/man1/*
%{_unitdir}/blueman-mechanism.service
%{_userunitdir}/blueman-manager.service
%{_userunitdir}/blueman-applet.service
%dir %{_sharedstatedir}/blueman
%ghost %attr(0644,root,root) %{_sharedstatedir}/blueman/network.state

%post
%systemd_post blueman-mechanism.service
%systemd_user_post blueman-applet.service

%postun
%systemd_postun_with_restart blueman-mechanism.service

%preun
%systemd_preun blueman-mechanism.service
%systemd_user_preun blueman-applet.service

#----------------------------------------------------------------------------

%package thunar-sendto
Summary:	Integration of %{name} with Thunar file manager
Group:		Graphical desktop/Xfce
Requires:	thunar

%description thunar-sendto
Integration of %{name} with Thunar file manager and its "Send to" menu

%files thunar-sendto
%{_datadir}/Thunar/sendto/thunar-sendto-blueman.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
NOCONFIGURE=yes ./autogen.sh

# detect /sbin/ip
export PATH="%{_sbindir}:/sbin:${PATH}"

%configure \
	--disable-static \
	--enable-thunar-sendto \
	--disable-schemas-compile
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_datadir}/doc/blueman/

%find_lang blueman

# we need to own this, not only because of SELinux
mkdir -p %{buildroot}%{_sharedstatedir}/blueman
touch %{buildroot}%{_sharedstatedir}/blueman/network.state

for i in tray sendto services manager applet adapters; do
	sed -i "s/^#!\x2fusr\x2fbin\x2fpython$/&3/" %{buildroot}%{_bindir}/%{name}-$i
done
sed -i "s/^#!\x2fusr\x2fbin\x2fpython$/&3/" %{buildroot}%{_libexecdir}/%{name}-mechanism
sed -i "s/^#!\x2fusr\x2fbin\x2fpython$/&3/" %{buildroot}%{_libexecdir}/%{name}-rfcomm-watcher

%check
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/blueman.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/blueman-*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 475 |21cr|bluemindo-1.0-0.rc1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	relc	1
%if %{relc}
%define	release	0.rc%{relc}
%else
%define release	3
%endif

Summary:	Simple audio player in Python/PyGTK, using GStreamer 1.0
Name:		bluemindo
Version:	1.0
Release:	%{release}
License:	GPLv3+
Group:		Sound
Url:		http://codingteam.net/project/%{name}
%if %{relc}
Source0:	http://codingteam.net/project/%{name}/download/file/%{name}-%{version}rc%{relc}.tar.gz
%else
Source0:	http://codingteam.net/project/%{name}/download/file/%{name}-%{version}.tar.gz
%endif
Source100:	%{name}.rpmlintrc
Patch0:		bluemindo-1.0-makefile.patch
Patch1:		bluemindo-1.0-fix-desktop-file.patch
BuildRequires:	desktop-file-utils
Requires:	python3
Requires:	pygtk2.0 
Requires:	pygtk2.0-libglade
# Needed to avoid error on startup: "ValueError: Namespace Gst not available for version 1.0"
Requires:	typelib(Gst) >= 1.0
#Requires:	%%{_lib}gst-gir1.0
Requires:	python3-gstreamer1.0
Requires:	python3-dbus
Requires:	python3-beautifulsoup4
Requires:	python3-taglib
#Requires:	python-tagpy
Requires:	gnome-python-extras
Requires:	python3-pyinotify
Requires:	python-xmpp
BuildArch:	noarch

%description
Bluemindo aims to provide a very simple audio player under GNU systems in PyGTK
without any GNOME dependencies.

%files -f %{name}.lang
%doc AUTHORS CHANGELOG COPYING README THANKS 
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/Bluemindo.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.*

#-----------------------------------------------------------------------------

%prep
%if %{relc}
%setup -qn %{name}-%{version}RC%{relc}
%else
%setup -q
%endif
%patch0 -p1 -b .orig
%patch1 -p1 -b .desktop


%build
# Nothing to do


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 476 |21cr|blueprint-compiler-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A markup language for GTK user interface files
Name:		blueprint-compiler
Version:	0.10.0
Release:	1
License:	GPLv3+
Group:		Development/GNOME and GTK+
Url:		https://gitlab.gnome.org/jwestman/blueprint-compiler
Source0:	https://gitlab.gnome.org/jwestman/blueprint-compiler/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:	meson

%description
A markup language for GTK user interface files.

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	A markup language for GTK user interface files
Group:		Development/Python

%description -n python3-%{name}
A markup language for GTK user interface files.

%files -n python3-%{name}
%doc README.md
%license COPYING
%{_bindir}/%{name}
%{python3_sitelib}/blueprintcompiler

#----------------------------------------------------------------------------

%package -n %{name}-devel
Summary:	Devel file for %{name}
Group:		Development/Python
Requires:	python3-%{name} = %{EVRD}

%description -n %{name}-devel
Devel file for %{name}.

%files -n %{name}-devel
%{_datadir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 477 |21cr|blueproximity-1.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		blueproximity
Version:	1.2.5
Release:	%mkrel 1 
Summary:	Detects you via your bluetooth devices and locks/unlocks the screen
BuildArch:	noarch
Group:		Communications
License:	GPLv2+
URL:		http://blueproximity.sourceforge.net/
Source0:	http://downloads.sourceforge.net/blueproximity/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Patch0:		blueproximity-fix_paths.diff
Patch1:		blueproximity-fix-bash-script.diff
BuildRequires:	desktop-file-utils gettext
Requires:	python-configobj python-pybluez  pygtk2.0-libglade

%description
Add security to your desktop by automatically locking and unlocking 
the screen when you and your phone leave/enter the desk. Think of a 
proximity detector for your mobile phone via bluetooth.

%prep
%setup -q -n %{name}-%{version}.orig
%patch0 -p0 -b .fedorization
%patch1 -p0 -b .fix-bash-script

%build

%install
rm -rf %{buildroot}

# Create Directory Structure
install -d %{buildroot}%{_datadir}/%{name}/
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/pixmaps/
install -d %{buildroot}%{_datadir}/%{name}/pixmaps/
install -d %{buildroot}%{_mandir}/man1/

# Install Files
install -p -m 0755 start_proximity.sh %{buildroot}%{_bindir}/%{name}
install -p -m 0755 proximity.py %{buildroot}%{_datadir}/%{name}/
install -p -m 0644 proximity.glade %{buildroot}%{_datadir}/%{name}/
install -p -m 0644 doc/blueproximity.1 %{buildroot}%{_mandir}/man1/

# Install Languages
for i in $(ls LANG/); do
install -d %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES/
install -p -m 0644 LANG/$i/LC_MESSAGES/* %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES/
done

# Install Images
for i in $(ls *.svg); do
install -p -m 0644 $i %{buildroot}%{_datadir}/%{name}/pixmaps/
done

# Link in SVG
pushd %{buildroot}%{_datadir}
ln -s ../%{name}/pixmaps/%{name}_base.svg pixmaps/
popd

# Install Menu Item
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

# Find Languages
%find_lang %{name}

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc ChangeLog COPYING README doc/manual*
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_mandir}/man1/blueproximity*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}_base.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 478 |21cr|bluez-hcidump-2.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		bluez-hcidump
Summary: 	Bluetooth HCI packet dump
Version: 	2.5
Release: 	5

Source0:	http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
URL:		http://www.bluez.org
License:	GPL
Group:		Communications
BuildRequires:	bluez-devel >= 2.23

%description
Bluetooth HCI packet dump.

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fPIC"
%configure
%make

%install
%makeinstall_std

%files
%doc README AUTHORS ChangeLog NEWS
%{_sbindir}/hcidump
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 479 |21cr|bluez-pin-0.30-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bluetooth PIN GUI
Name:		bluez-pin
Version:	0.30
Release:	24
License:	GPLv2+
Group:		Communications
Url:		http://www.bluez.org/
Source0: 	ftp://gpe.handhelds.org/projects/gpe/source/%{name}-%{version}.tar.bz2
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
Provides:	bluepin = %{EVRD}

%description
A GTK+ helper app for entering a Bluetooth PIN.

%files
%doc ChangeLog
%{_bindir}/%{name}
%config %{_sysconfdir}/dbus*/*
%{_datadir}/pixmaps/*
%{_datadir}/%{name}

%post
update-alternatives --install /bin/bluepin bluepin /usr/bin/bluez-pin 10

%postun
[ $1 != 0 ] && exit 0
update-alternatives --remove bluepin /usr/bin/bluez-pin

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 480 |21cr|bluez-tools-0.1.38-0.662e.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rev	662e

Name:			bluez-tools
Summary:		Command line tools for bluez (bluetooth stack for Linux)
Version:		0.1.38
Release:		0.%{rev}.3
Source0:		%{name}-%{version}-%{rev}.tar.gz
URL:			http://code.google.com/p/bluez-tools
License:		GPLv2
Group:			System/Kernel and hardware
Requires:		bluez >= 4.69
Requires:		obexd >= 0.30
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	readline-devel

%description
This is a GSoC'10 project to implement a new command line tools for 
bluez (bluetooth stack for linux). The project implemented in C and 
uses the D-Bus interface of bluez.

%prep
%setup -q -a 0 -n %{name}-%{version}-%{rev}

%build
%configure
%make

%install
make DESTDIR=%{buildroot} install

%files 
%doc README NEWS COPYING AUTHORS 
%{_bindir}/*
%{_mandir}/man1/bt-adapter.1*
%{_mandir}/man1/bt-agent.1*
%{_mandir}/man1/bt-audio.1*
%{_mandir}/man1/bt-device.1*
%{_mandir}/man1/bt-input.1*
%{_mandir}/man1/bt-monitor.1*
%{_mandir}/man1/bt-network.1*
%{_mandir}/man1/bt-obex.1*
%{_mandir}/man1/bt-serial.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 481 |21cr|bmon-4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bandwidth monitor and rate estimator
Name:		bmon
Version:	4.0
Release:	2
License:	MIT or BSD
Group:		Monitoring
Url:		https://github.com/tgraf/bmon
Source0:	https://github.com/tgraf/bmon/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libconfuse)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(ncursesw)

%description
bmon is a portable bandwidth monitor and rate estimator. It supports various
input methods for different architectures. Various output modes exist,
including an interactive curses interface, lightweight HTML output, and simple
ASCII output. Statistics may be distributed over a network using multicast or
unicast and collected at some point to generate a summary of statistics for a
set of nodes.

%files
%doc LICENSE.BSD LICENSE.MIT NEWS README.md
%doc %{_datadir}/doc/bmon/examples/bmon.conf
%{_bindir}/bmon
%{_mandir}/man8/bmon.8*
%config(noreplace) %{_sysconfdir}/bmon.conf

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 %{buildroot}%{_datadir}/doc/bmon/examples/bmon.conf %{buildroot}%{_sysconfdir}/bmon.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 482 |21cr|boa-0.94.14-0.rc21.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rcver	%(echo %{release} |cut -d. -f 2)
%define webrootdir /var/www/html

Summary:	Web server
Name:		boa
Version:	0.94.14
Release:	0.rc21.3
Source0:	http://www.boa.org/%{name}-%{version}%{rcver}.tar.gz
Source1:	boa.init
Source2:	boa.sysconfig
Patch:		boa-default-config.patch
URL:		http://www.boa.org/
License:	GPL+
Group:		System/Servers
BuildRequires:	flex
BuildRequires:	bison

Requires(post):		rpm-helper
Requires(postun):	rpm-helper

Provides: webserver

%description
A high speed, lightweight web server (HTTP protocol).
Based on direct use of the select(2) system call, it
internally multiplexes all connections without forking,
for maximum speed and minimum system resource use.

%prep
%setup -q -n %{name}-%{version}%{rcver}
%patch -p1

%build
%serverbuild
%configure
%make CFLAGS="%{optflags}"

%install
rm -rf %{buildroot}
cd src
mkdir -p %{buildroot}%{_sbindir}
install boa %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_libdir}/boa
install boa_indexer %{buildroot}%{_libdir}/boa/

mkdir -p %{buildroot}/%{webrootdir}

cd ..
mkdir -p %{buildroot}%{_mandir}/man8
install -m 644 docs/boa.8 %{buildroot}%{_mandir}/man8/

cd examples
mkdir -p %{buildroot}/%{_sysconfdir}/{boa,logrotate.d}
install -m 644 boa.conf %{buildroot}/%{_sysconfdir}/boa/
cd ../contrib
install -m 644 rpm/boa.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/boa

cd ..
mkdir -p %{buildroot}/%{_initrddir}
install -m 755 %{SOURCE1} %{buildroot}/%{_initrddir}/boa
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig
install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/sysconfig/boa

mkdir -p %{buildroot}/var/log/boa
%clean
rm -rf %{buildroot}

%post
%_post_service boa

%preun
%_preun_service boa

%files
%defattr(-,root,root)
%doc docs/*.{texi,png} contrib/*
%{_sbindir}/boa
%{_libdir}/boa/boa_indexer
%dir %{_libdir}/boa/
%dir %{_sysconfdir}/boa
%config(noreplace) %{_initrddir}/boa
%config(noreplace) %{_sysconfdir}/boa/boa.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/boa
%config(noreplace) %{_sysconfdir}/sysconfig/boa
%dir %{webrootdir}
%dir /var/log/boa
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 483 |21cr|bobobot-0-16.preview3.9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define preview preview3

Summary:	Mario-like game
Name:		bobobot
Version:	0
Release:	16.%{preview}.9
Source0:	ftp://ftp.sonic.net/pub/users/nbs/unix/x/bobobot/bobobot-preview3.tar.bz2
Url:		http://newbreedsoftware.com/bobobot/
License:	GPLv2+
Group:		Games/Arcade
Buildrequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
Buildrequires:	pkgconfig(x11)
BuildRequires:	imagemagick
Patch0:		%{name}-preview3-fix-makefile.patch
Patch2:		%{name}-preview3-fix-nosound.patch

%description
BoboBot is a multi-level one-player action game starring "BoboBot," the
robo-monkey. It's played with the keyboard, or optionally with a joystick

%prep
%setup -q -n %{name}-preview3
%patch0 -p1
%patch2 -p1 -z .pix

# beurk
chmod +x mods/unused
chmod -R a+r *

%build
%make SOUND=YES MUSIC=YES INSTALLROOT=%{_gamesdatadir}/%{name} OPTIMIZE="%{optflags}" X11_LIB="-L%_libdir -lX11" bobobot CC="gcc %build_ldflags"

%install
%{__install} -d %{buildroot}{%{_liconsdir},%{_miconsdir}}
convert %{name}-icon.xpm -size 16x16 %{buildroot}%{_miconsdir}/%{name}.png
convert %{name}-icon.xpm -size 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert %{name}-icon.xpm -size 48x48 %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=BoboBot
Comment=%{summary}
Exec=%_gamesbindir/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

install -d %{buildroot}{%{_gamesbindir},%{_gamesdatadir}/%{name}}
make INSTALLROOT=%{buildroot}%{_gamesdatadir}/%{name}
mv %{buildroot}%{_gamesdatadir}/%{name}/%{name} %{buildroot}%{_gamesbindir}

%clean

%files
%defattr(644,root,root,755)
%doc docs/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 484 |21cr|bochs-2.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define _hardened_build 1

Summary:	Portable x86 PC emulator
Name:		bochs
Version:	2.7
Release:	2
License:	LGPLv2+
Group:		Emulators
Url:		http://bochs.sourceforge.net/
Source0:	https://github.com/stlintel/Bochs/archive/refs/tags/REL_2_7_FINAL.tar.gz?/%{name}-%{version}.tar.gz
Source100:	bochs.rpmlintrc
Patch0:		bochs-0001_bx-qemu.patch
Patch3:		bochs-0008_qemu-bios-provide-gpe-_l0x-methods.patch
Patch4:		bochs-0009_qemu-bios-pci-hotplug-support.patch
Patch7:		bochs-nonet-build.patch
Patch11:	0011_read-additional-acpi-tables-from-a-vm.patch
Patch12:	0012-load-smbios-entries-and-files-from-qemu.patch
Patch13:	bochs-2.7-build-enable-iasl.patch
Patch15:	bochs-2.7-build-qemu-bios.patch
BuildRequires:	byacc
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-utils
BuildRequires:	libtool
BuildRequires:	sgml-common
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xpm)
%ifarch %{ix86} x86_64
BuildRequires:	dev86
BuildRequires:	iasl
BuildRequires:	svgalib-devel
Requires:	%{name}-bios = %{EVRD}
%endif
Requires:	vgabios

%description
Bochs is a portable x86 PC emulation software package that emulates
enough of the x86 CPU, related AT hardware, and BIOS to run DOS,
Windows '95, Minix 2.0, and other OS's, all on your workstation.

%files
%doc %{_docdir}/bochs
%{_bindir}/bochs
%{_bindir}/bxhub
%{_bindir}/bximage
%{_libdir}/bochs/
%{_mandir}/man1/bochs.1*
%{_mandir}/man1/bximage.1*
%{_mandir}/man5/bochsrc.5*
%dir %{_datadir}/bochs/
%{_datadir}/bochs/keymaps/

#----------------------------------------------------------------------------

%package debugger
Summary:	Bochs with builtin debugger
Group:		Emulators
Requires:	%{name} = %{EVRD}

%description debugger
Special version of bochs compiled with the builtin debugger.

%files debugger
%{_bindir}/bochs-debugger

#----------------------------------------------------------------------------

%package gdb
Summary:	Bochs with support for debugging with gdb
Group:		Emulators
Requires:	%{name} = %{EVRD}

%description gdb
Special version of bochs compiled with a gdb stub so that the software running
inside the emulator can be debugged with gdb.

%files gdb
%{_bindir}/bochs-gdb

#----------------------------------------------------------------------------

%ifarch %{ix86} x86_64
# building firmwares are quite tricky, because they often have to be built on
# their native architecture (or in a cross-capable compiler, that we lack in
# koji), and deployed everywhere. Recent koji builders support a feature
# that allow us to build packages in a single architecture, and create noarch
# subpackages that will be deployed everywhere. Because the package can only
# be built in certain architectures, the main package has to use
# BuildArch: <nativearch>, or something like that.
# Note that using ExclusiveArch is _wrong_, because it will prevent the noarch
# packages from getting into the excluded repositories.
%package bios
Summary:	Bochs bios
Group:		Emulators
Provides:	bochs-bios-data = 2.3.8.1
Obsoletes:	bochs-bios-data < 2.3.8.1
BuildArch:	noarch

%description bios
Bochs BIOS is a free implementation of a x86 BIOS provided by the Bochs
project. It can also be used in other emulators, such as QEMU

%files bios
%doc %{_datadir}/bochs/SeaBIOS-README
%doc %{_datadir}/bochs/SeaVGABIOS-README
%{_datadir}/bochs/BIOS*
%{_datadir}/bochs/VGABIOS*
%{_datadir}/bochs/bios.bin*
%{_datadir}/bochs/vgabios-cirrus.bin*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n Bochs-REL_2_7_FINAL/%{name}
%patch0 -p1
%patch3 -p1
%patch4 -p1
%patch7 -p0 -z .nonet~
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch15 -p1
autoconf -f

# Fix up some man page paths.
sed -i \
  -e 's|/usr/local/share/doc/bochs/|%{_docdir}/%{name}-%{version}/|' \
  -e 's|/usr/local/share/|%{_datadir}/|' \
  doc/man/*.*
# remove executable bits from sources to make rpmlint happy with the debuginfo
chmod -x `find -name '*.cc' -o -name '*.h' -o -name '*.inc'`
# Fix CHANGES encoding
iconv -f ISO_8859-2 -t UTF8 CHANGES > CHANGES.tmp
mv CHANGES.tmp CHANGES

%build
CONFIGURE_TOP="$PWD"
%ifarch %{ix86} x86_64
ARCH_CONFIGURE_FLAGS=--with-svga
%endif
# Note: the CPU level, MMX et al affect what the emulator will emulate, they
# are not properties of the build target architecture.
# Note2: passing --enable-pcidev will change bochs license from LGPLv2+ to
# LGPLv2 (and requires a kernel driver to be usefull)
CONFIGURE_FLAGS=" \
	--enable-shared \
	--disable-static \
	--enable-plugins \
	--enable-ne2000 \
	--enable-e1000 \
	--enable-pnic \
	--enable-pci \
	--enable-pcidev \
	--enable-all-optimizations \
	--enable-repeat-speedups \
	--enable-trace-linking \
	--enable-fast-function-calls \
	--enable-handlers-chaining \
	--enable-configurable-msrs \
	--enable-clgd54xx \
	--enable-sb16 \
	--enable-es1370 \
	--enable-gameport \
	--enable-3dnow
	--enable-long-phy-address \
	--enable-x86-64 \
	--enable-a20-pin \
	--enable-idle-hack \
	--enable-fpu \
	--with-x11 \
	--with-nogui \
	--with-term \
	--with-rfb \
	--with-sdl2 \
	--without-wx \
	--enable-cpu-level=6 \
	--enable-disasm \
	--enable-usb \
	--enable-usb-ohci \
	--enable-usb-xhci \
	--enable-svm \
	--enable-vmx=2 \
	--enable-alignment-check \
	--enable-monitor-mwait \
	--enable-avx \
	--enable-voodoo \
	--enable-xpm \
	--enable-raw-serial \
	$ARCH_CONFIGURE_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS -DPARANOID"
export LDFLAGS=-L%{_libdir}

mkdir -p intdebug
pushd intdebug
%configure $CONFIGURE_FLAGS --enable-x86-debugger --enable-debugger --enable-smp
ln -sf /usr/bin/libtool .
cp -r ../doc .
%make
popd

mkdir -p gdb-stub
pushd gdb-stub
%configure $CONFIGURE_FLAGS --enable-x86-debugger --enable-gdb-stub
ln -sf /usr/bin/libtool .
cp -r ../doc .
%make
popd

mkdir -p plain
pushd plain
%configure $CONFIGURE_FLAGS --enable-smp
ln -sf /usr/bin/libtool .
cp -r ../doc .
%make

%ifarch %{ix86} x86_64
pushd bios
%make bios
cp BIOS-bochs-latest BIOS-bochs-kvm
popd
popd
%endif

%install
%makeinstall_std -C plain
rm -r %{buildroot}%{_prefix}/share/bochs/VGABIOS*
ln -s %{_prefix}/share/vgabios/VGABIOS-lgpl-latest.bin %{buildroot}%{_prefix}/share/bochs/VGABIOS-lgpl-latest
ln -s %{_prefix}/share/vgabios/VGABIOS-lgpl-latest.cirrus.bin %{buildroot}%{_prefix}/share/bochs/VGABIOS-lgpl-latest.cirrus
ln -s %{_prefix}/share/vgabios/VGABIOS-lgpl-latest.cirrus.debug.bin %{buildroot}%{_prefix}/share/bochs/VGABIOS-lgpl-latest.cirrus.debug
ln -s %{_prefix}/share/vgabios/VGABIOS-lgpl-latest.debug.bin %{buildroot}%{_prefix}/share/bochs/VGABIOS-lgpl-latest.debug
%ifnarch %{ix86} x86_64
rm -r %{buildroot}%{_prefix}/share/bochs/*BIOS*
rm -r %{buildroot}%{_datadir}/bochs/bios.bin*
rm -r %{buildroot}%{_datadir}/bochs/vgabios-cirrus.bin*
%endif
install -m755 intdebug/bochs -D %{buildroot}%{_bindir}/bochs-debugger
install -m755 gdb-stub/bochs -D %{buildroot}%{_bindir}/bochs-gdb

rm %{buildroot}%{_mandir}/man1/bochs-dlx.1*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 485 |21cr|bochs-tools-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bochstools

Summary:	Manipulates Bochs disk-images
Name:		bochs-tools
Version:	1.7.1
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://www.bablokb.de/%{name}/
Source0:	http://www.bablokb.de/%{name}/%{oname}-%{version}.tar.bz2

%description
Bochs-Tools are a collection of scripts and programs to be used together with
the Bochs-emulator. The main goal was to provide a Unix-like interface to the
emulator and to enable access to Bochs disk-images from outside of Bochs.

The tools were developed under Linux. They might also work on other
operating-systems. Feedback on this issue is appreciated.

%files
%doc ChangeLog COPYING NEWS README TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
make \
	-C src \
	CFLAGS="%{optflags}" \
	VERSION="%{version}"

%install
%makeinstall_std \
	UID=0 \
	PREFIX="%{_prefix}" \
	BINDIR="%{_bindir}" \
	MANDIR="%{_mandir}" \
	CFLAGS="%{optflags}" \
	bins \
	install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 486 |21cr|bodr-10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Blue Obelisk Data Repository
Name:		bodr
Version:	10
Release:	6
License:	MIT
Group:		System/Libraries
Url:		http://blueobelisk.sourceforge.net/
Source0:	http://downloads.sourceforge.net/bodr/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	libxslt-proc
BuildArch:	noarch

%description
It represents a set of common, standardized data for chemoinformatics
in both XML and plain-text formats. This data is open for common use,
under the expectation that others will contribute to the repository,
either via tabulations of additional properties or revisions/comments
on existing data.

The concept is that via shared default data, reproducing computational
chemistry and chemoinformatics will become more reproducible :-).

Currently this encompasses:
* Elements directory
  * element names and symbols
  * atomic masses, covalent radii, van der Waals radii
  * Pauling electronegativities
  * electron affinity
  * ionization potential
  * default element colors for viewers
* Isotopes directory
  * exact masses of most abundant isotopes
  * isotopic masses and abundances
  * spin
  * kinds of decay, percentages and energy
  * magnetic dipole moment
  * halflife

%files
%doc AUTHORS ChangeLog COPYING NEWS README THANKS TODO
%doc %{_datadir}/doc/%{name}/biblio/
%{_datadir}/%{name}/*.xml
%{_datadir}/%{name}/dicts/*.xml
%{_datadir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 487 |21cr|bogofilter-1.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define _requires_exceptions perl

Summary:	Fast anti-spam filtering by Bayesian statistical analysis
Name:		bogofilter
Version:	1.2.5
Release:	2
License:	GPLv2+
Group:		Networking/Mail
Url:		http://bogofilter.sourceforge.net
Source0:	https://sourceforge.net/projects/bogofilter/files/bogofilter-stable/bogofilter-%{version}/%{name}-%{version}.tar.xz
BuildRequires:	flex
BuildRequires:	openjade
BuildRequires:	valgrind
BuildRequires:	xmlto
BuildRequires:	db-devel
BuildRequires:	pkgconfig(gsl)

%description
Bogofilter is a Bayesian spam filter. In its normal mode of
operation, it takes an email message or other text on standard
input, does a statistical check against lists of "good" and
"bad" words, and returns a status code indicating whether or not
the message is spam. Bogofilter is designed with fast algorithms
(including Berkeley DB system), coded directly in C, and tuned for
speed, so it can be used for production by sites that process a
lot of mail.

%files
%doc AUTHORS GETTING.STARTED Doxyfile NEWS
%doc README* RELEASE.NOTES
%doc TODO bogofilter.cf.example
%doc doc/README* doc/bogofilter-SA*
%doc doc/integrating-*
%doc .inst/html .inst/xml
%doc contrib/README*
%config(noreplace) %{_sysconfdir}/bogofilter.cf
%{_bindir}/*
%{_datadir}/bogofilter
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-rpath \
	--disable-transactions \
	--with-database=db \
	--without-included-gsl

%make

%install
%makeinstall_std

mv %{buildroot}%{_sysconfdir}/bogofilter.cf.example %{buildroot}%{_sysconfdir}/bogofilter.cf

##include contrib...some my find it usefull
for d in contrib ; do
  install -d %{buildroot}%{_datadir}/%{name}/$d
  files=$(find "$d" -maxdepth 1 -type f -print)
  for f in $files ; do
    case $f in
      *.c|*.o|*.obj|*/Makefile*) continue ;;
      *.1)
    cp -p $f %{buildroot}%{_mandir}/man1 ;;
      *)
    cp -p $f %{buildroot}%{_datadir}/%{name}/$d ;;
    esac
  done
done

# it gets built, so why not install it?
##it is only needed to run check during build and does not need to be installed CAE
#install -m755 contrib/bogogrep %{buildroot}%{_bindir}/

# prepare for doc inclusion
for n in xml html ; do
  install -d .inst/$n
  install -m644 doc/*.$n .inst/$n
done

%check
#make DESTDIR="%{buildroot}" check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 488 |21cr|boinc-client-7.20.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define debug_package %{nil}

# ========== README ==========
#
# BOINC client is not released with Github releases, it is released using
# Github tags.
# When a new BOINC client Github tag is released, replace
# 1) Version
# 2) Release (obviously)
# 3) commit, you can take it from the URL you get on Github when you pass the
# mousepointer on shortcommit (7 chars string)
# 
# BOINC release URLs are troublesome, to download the tar.gz use the following command
# spectool -g -s 0 boinc-client.spec
#
# Do not move the %%global foo block of code in the upper part of the spec
# file, otherwise it will not work because it will try to read macros not
# yet defined like %%{version}

%define major 7
%define libboinc_api %mklibname boinc_api %{major}
%define libboinc_graphics2 %mklibname boinc_graphics2 %{major}
%define libboinc_opencl %mklibname boinc_opencl %{major}


Summary:       The BOINC client
Name:          boinc-client
Version:       7.20.2
Release:       1
License:       LGPLv2+
Group:         Sciences/Other
URL:           http://boinc.berkeley.edu/

%global major_version %(v=%{version}; echo ${v:0:4})
%global commit 5222682feca5506f6168ed5883581a0320c13f8b
%global gittag client_release/%{major_version}/%{version}
# gittag_custom is needed in %%setup process because tar.gz unpacks a folder
# named for example boinc-client_release-7.14-7.14.2
%global gittag_custom client_release-%{major_version}-%{version}
%global shortcommit %(c=%{commit}; echo ${c:0:7})


Source0:       https://github.com/BOINC/boinc/archive/%{gittag}/%{name}-%{version}.tar.gz
Source1:       boinc-client-logrotate-d
Source3:       36x11-common_xhost-boinc
Source4:       config.properties
Source10:      boinc.sysusers.conf
Patch0:        disable_idle_time_detection.patch
# disabled systemd_hardening.patch because its tests are still in early stage
# on upstream development process
#Patch2:        systemd_hardening.patch
# prevents manager close action from stopping client service
Patch1:        manager_close_no_service_stop.patch
# On Linux distributions, BOINC runs as a service. Users must not be able to
# try stopping the service from exit menu entry.
# This leads to unexpected behaviour, like:
# - service being killed;
# - service still running.
# Moreover, the Manager will no longer be able to connect to the client, unless
# the user connects to 127.0.0.1. Then if the Manager is connected to the client
# by using 127.0.0.1 address, the "Exit from BOINC Manager" entry will not
# show any frame asking the user if he wants to stop the service.
# upstream pull request https://github.com/BOINC/boinc/pull/3094 has ben merged
# and unmerged later
Patch2:        manager_exit_menu_entry_removal.patch
# removes menu entry "Shut down the currently connected BOINC client"
# upstream pull request https://github.com/BOINC/boinc/pull/3094 has ben merged
# and unmerged later
Patch3:        manager_shut_down_connected_client.patch
# if user starts manager while client service is not running, manager will
# start a client process running it in user session. This patch prevents
# the manager from starting the client because on Linux the client should
# run as a service only
Patch4:        prevent_manager_from_starting_client.patch
# Fedora / EPEL, the folder /etc/boinc-client does not exist, so it should be removed
Patch5:        remove_etc_boinc-client_from_systemd_unit_file.patch

BuildRequires: curl-devel
BuildRequires: desktop-file-utils
BuildRequires: freeglut-devel
BuildRequires: wxgtku3.1-devel
BuildRequires: gcc-c++
BuildRequires: gettext
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: docbook2x
BuildRequires: libxmu-devel
BuildRequires: jpeg-devel
BuildRequires: libnotify-devel
BuildRequires: libtool
BuildRequires: libxscrnsaver-devel
BuildRequires: pkgconfig(glu)
BuildRequires: openssl-devel
BuildRequires: sqlite-devel
BuildRequires: xcb-util-devel

Requires:         logrotate
Requires(pre):    /bin/systemd-sysusers

%description
The Berkeley Open Infrastructure for Network Computing (BOINC) is an open-
source software platform which supports distributed computing, primarily in
the form of "volunteer" computing and "desktop Grid" computing.  It is well
suited for problems which are often described as "trivially parallel".  BOINC
is the underlying software used by projects such as SETI@home, Einstein@Home,
ClimatePrediciton.net, the World Community Grid, and many other distributed
computing projects.

This package installs the BOINC client software, which will allow your
computer to participate in one or more BOINC projects, using your spare
computer time to search for cures for diseases, model protein folding, study
global warming, discover sources of gravitational waves, and many other types
of scientific and mathematical research.

%files -f BOINC-Client.lang
%doc COPYING COPYRIGHT
%{_bindir}/boinc
%{_bindir}/boinc_client
%{_bindir}/boinccmd
%{_bindir}/switcher
%{_unitdir}/%{name}.service
%{_mandir}/man1/boinccmd.1*
%{_mandir}/man1/boinc.1*
%config(noreplace) %{_sysconfdir}/logrotate.d/boinc-client
%config(noreplace) %{_sysconfdir}/bash_completion.d/boinc-client
%attr(-,boinc,boinc) %{_localstatedir}/lib/boinc/
%{_sysconfdir}/X11/Xsession.d/36x11-common_xhost-boinc
%{_sysconfdir}/boinc-client/config.properties
%{_sysusersdir}/boinc.conf

%pre
# Create BOINC user and group
%sysusers_create_package boinc %{SOURCE10}

%post
%systemd_post boinc-client.service

%preun
%systemd_preun boinc-client.service

%postun
%systemd_postun_with_restart boinc-client.service  

#------------------------------------------------------------------------
%package -n boinc-manager
Summary:    GUI to control and monitor %{name}
Requires:   hicolor-icon-theme
Requires:   %{name} = %{EVRD}

%description -n boinc-manager
The BOINC Manager is a graphical monitor and control utility for the BOINC
core client. It gives a detailed overview of the state of the client it is
monitoring. The BOINC Manager has two modes of operation, the "Simple View" in
which it only displays the most important information and the "Advanced View"
in which all information and all control elements are available.

%files -n boinc-manager -f BOINC-Manager.lang
%{_bindir}/boincmgr
%{_bindir}/boincscr
%{_datadir}/boinc-manager
%{_datadir}/applications/boinc.desktop
%{_datadir}/icons/hicolor/16x16/apps/boinc.png
%{_datadir}/icons/hicolor/32x32/apps/boinc.png
%{_datadir}/icons/hicolor/48x48/apps/boinc.png
%{_datadir}/icons/hicolor/64x64/apps/boinc.png
%{_datadir}/icons/hicolor/scalable/apps/boinc.svg
%{_mandir}/man1/boincmgr.1*

#------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Requires:	%{name} = %{EVRD}
Requires:	%{libboinc_api} = %{EVRD}
Requires:	%{libboinc_graphics2} = %{EVRD}
Requires:	%{libboinc_opencl} = %{EVRD}
Requires:	openssl-devel
Requires:	mariadb-connector-c-devel

%description devel
This package contains development files for %{name}.

%files devel
%{_libdir}/*.so
%{_libdir}/pkgconfig/libboinc*.pc
%{_includedir}/boinc

#------------------------------------------------------------------------

%package static
Summary:	Static libraries for %{name}
Requires:	%{name}-devel = %{EVRD}

%description static
This package contains static libraries for %{name}.

%files static
%{_libdir}/libboinc.a
%{_libdir}/libboinc_api.a
%{_libdir}/libboinc_crypt.a
%{_libdir}/libboinc_graphics2.a
%{_libdir}/libboinc_opencl.a

#------------------------------------------------------------------------

%package -n %{libboinc_api}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libboinc_api}
This package contains stared library for %{name}.


%files -n %{libboinc_api}
%{_libdir}/libboinc_api.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libboinc_graphics2}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libboinc_graphics2}
This package contains stared library for %{name}.


%files -n %{libboinc_graphics2}
%{_libdir}/libboinc_graphics2.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libboinc_opencl}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libboinc_opencl}
This package contains stared library for %{name}.


%files -n %{libboinc_opencl}
%{_libdir}/libboinc_opencl.so.%{major}*

#------------------------------------------------------------------------

%package doc
Summary:    Documentation files for %{name}
BuildArch:  noarch
Requires:   %{name} = %{EVRD}

%description doc
This package contains documentation files for %{name}.

%files doc
%doc checkin_notes checkin_notes_*

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n boinc-%{gittag_custom}

# Fix encoding
for file in $(ls | grep checkin_notes_20); do
    iconv -f ISO-8859-1 -t UTF-8 -o ${file}.utf8 ${file}
    mv ${file}.utf8 ${file}
done

# Fix file permissions
for file in $(ls clientgui | grep .cpp$ ) $(ls clientgui | grep .h$ ); do 
    chmod 644 clientgui/${file}
done

%build
%ifarch %{ix86}
%global boinc_platform i686-pc-linux-gnu
%endif
%ifarch powerpc ppc
%global boinc_platform powerpc-linux-gnu
%endif
%ifarch powerpc64 ppc64
%global boinc_platform ppc64-linux-gnu
%endif
%ifarch aarch64
%global boinc_platform aarch64-unknown-linux-gnu
%endif
%ifarch riscv64
%global boinc_platform riscv64-rosa-linux-gnu
%endif
%ifarch %{e2k}
%global boinc_platform e2kv4-rosa-linux-gnu
%endif

%if %{defined boinc_platform}
%global confflags --with-boinc-platform=%{boinc_platform}
%endif

./_autosetup

%configure %{?confflags} \
  --disable-silent-rules \
  --enable-dynamic-client-linkage \
  --disable-server \
  --disable-fcgi \
  --enable-unicode \
  --with-wx-config=/usr/bin/wx-config \
  --with-ssl \
  --with-x \
  --enable-static \
  STRIP=: \
  DOCBOOK2X_MAN=/usr/bin/docbook2x-man \
  "CXXFLAGS=$(pkg-config gtk+-x11-3.0 --cflags --libs) ${optflags} -DNDEBUG -std=gnu++14"

# Disable rpaths
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

make %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_localstatedir}/lib/boinc
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
mkdir -p %{buildroot}%{_sysconfdir}/X11/Xsession.d
mkdir -p %{buildroot}%{_sysconfdir}/boinc-client

make install INSTALL="%{__install} -p" DESTDIR=%{buildroot}

# Set up links to correct log locations
#ln -s /var/log/boinc/ %%{_localstatedir}/log/boinc.log 
#ln -s /var/log/boinc/ %%{_localstatedir}/log/boincerr.log 

# Remove libtool archives
rm %{buildroot}%{_libdir}/*.la

# Use custom systemd script and logrotate configuration file
rm -f %{buildroot}%{_sysconfdir}/init.d/%{name} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

install -p -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -p -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/Xsession.d/36x11-common_xhost-boinc
install -p -m644 %{SOURCE4} %{buildroot}%{_sysconfdir}/boinc-client/config.properties

# Install Icons
install -p -m644 packages/generic/sea/boincmgr.16x16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/boinc.png
install -p -m644 packages/generic/sea/boincmgr.32x32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/boinc.png
install -p -m644 packages/generic/sea/boincmgr.48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/boinc.png

%find_lang BOINC-Manager
%find_lang BOINC-Client

# bash-completion
install -p -m644 client/scripts/boinc.bash %{buildroot}%{_sysconfdir}/bash_completion.d/boinc-client

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/boinc.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 489 |21cr|BomberInstinct-0.8.9-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Kill the other players with bombs that throw flames
Name:		BomberInstinct
Version:	0.8.9
Release:	17
License:	GPL
Group:		Games/Arcade
Source:		%{name}-%{version}.tar.bz2
Source1:	%{name}-48.png.bz2
Source2:	%{name}-32.png.bz2
Source3:	%{name}-16.png.bz2
Patch:		BomberInstinct-fix_missing_level.diff
URL:		http://bomberinstinct.sourceforge.net/index.html

BuildRequires:	pkgconfig(SDL_mixer) >= 1.2.0
# too much nested gcc
BuildRequires:	gcc-c++, gcc, gcc-cpp


%description
BomberInstinct is part like Bomberman, because you must kill
the other players with bombs that throw flames vertically and
horizontally, but it's much more strategical because you have to
do with the elements of a maze (arrows, tunnels, teleportations,
and many more...), and with the special powers of each character.
(multiplayer on one computer only)

%prep
%setup -q
%patch -p0

%build
export CC=gcc
export CXX=g++

%configure	--bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir}
		
%make CXXFLAGS="-DNDEBUG %{optflags}"

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=BomberInstinct
Name[ru]=BomberInstinct
Comment=Bomberman clone
Comment[ru]=Игра по мотивам Bomberman
Exec=%{_gamesbindir}/bi
Icon=BomberInstinct
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

cp data/Sprites/*.spr %{buildroot}%{_gamesdatadir}/BomberInstinct/Sprites

install -d -m755  %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
bzcat %{SOURCE1} > %{buildroot}%{_liconsdir}/%{name}.png
bzcat %{SOURCE2} > %{buildroot}%{_iconsdir}/%{name}.png
bzcat %{SOURCE3} > %{buildroot}%{_miconsdir}/%{name}.png


%files
%doc AUTHORS ChangeLog LISEZMOI LISEZMOI.Nived README README.Nived  
%doc docs/*.html docs/img scenario.txt 
%{_gamesbindir}/bi
%{_gamesbindir}/nived
%{_gamesbindir}/spred
%{_gamesdatadir}/BomberInstinct
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 490 |21cr|bomns-0.99.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bomns
Version:        0.99.3
Release:        1
Summary:        Best old-school Deathmatch game ever (only for two players)
License:        GPLv2+
Group:          Games/Arcade
Url:            https://github.com/keithfancher/Bomns-for-Linux
Source:         https://github.com/keithfancher/Bomns-for-Linux/archive/master.zip
Patch0:         %{name}-%{name}.desktop.patch
BuildRequires:  pkgconfig(gdk-2.0)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  cmake

%description
The gameplay of Bomns for Linux is quite simple: just move around the level,
picking up powerups and avoiding powerdowns, all the while laying bomns and
plotting your opponent's desctruction. A bomn will do 5 damage to the other
player, and running into them will do 1 damage. The first to kill their
opponent before the time runs out is declared the winner.

%files
%doc AUTHORS COPYING README TODO
%{_bindir}/%{name}
%{_bindir}/%{name}edit
%{_bindir}/%{name}launcher
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}
#-------------------------------------------------------------------------------------
%prep
%setup -qn Bomns-for-Linux-master
%patch0 -p0

%build
%cmake -DCMAKE_INSTALL_PREFIX=%{_prefix}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 491 |21cr|bonk-0.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lossy and lossless audio coder
Name:		bonk
Version:	0.6
Release:	6
License:	GPLv2+
Group:		Sound
URL:		http://www.logarithmic.net/pfh/bonk/
Source:		http://etree.org/shnutils/shntool/support/formats/bonk/win32/%{version}/%{name}-%{version}-shntool.tar.gz
Patch1:		bonk-gcc4.patch

%description
Bonk is high quality audio compression program. It can operate
in either lossless or lossy mode. In lossless mode, the exact
original WAV file can be recovered from the compressed file. In
lossy mode, some information is discarded in the compressed file,
yielding a much higher compression ratio. The information
discarded is perceptually unimportant, and the result should be
a *perceptually* lossless encoding. Bonk can compress some types
of sounds more than others, so the actual bit-rate achieved varies.

In lossy mode, it can compress some types of sound to as low as
95 kbps (a compression ration of 14:1) while maintaining
perceptually lossless CD quality stereo. In general, the
compression ratio achieved by Bonk is slightly higher than that
achieved using the more common MP3 format, for equivalent sound
quality. In particular it copes with transients (eg clapping,
drum beats) better. Performance on purely tonal sound is roughly
equivalent to MP3.

In lossless mode the compression ratio is typically around 2:1.

This version is patched with shntool patch.

%files
%doc README COPYING
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-shntool
%patch1 -p1

chmod 644 *.cc *.h

%build
%make CXXFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 492 |21cr|bonsai-1.3.9-0.20051228.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot	20051228

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(CGI.pl.*|perl\\(SourceChecker.*|perl\\(adminfuncs.*|perl\\(cvsblame.*|perl\\(cvsquery.*|perl\\(defparams.*|perl\\(globals.*|perl\\(lloydcgi.*|perl\\(modules.*|perl\\(utils.*
%else
%define _requires_exceptions perl(\\(CGI.pl\\|SourceChecker\\))
%endif

Name:		bonsai
Version:	1.3.9
Release:	0.%{snapshot}.10
Summary:	A query interface to the CVS source repository
License:	MPL
Group:		Networking/WWW
URL:		http://www.mozilla.org/projects/bonsai/
Source0:	%{name}-%{snapshot}.tar.bz2
Source1:	%{name}.README.mdk.bz2
Patch0:		%{name}-20051228.fhs.patch
Requires:	perl-DBD-mysql
BuildArch:	noarch

%description
Bonsai is a really cool idea on how to "see" changes taking place during a
development cycle. The original implementation was by Terry Weissman, first
done in TCL, then later ported to Perl. It's built to run against CVS using
Perl, MySQL, and your favorite webserver to display checkin history, log
information, diffs, and other assorted pieces of information in easy to parse
HTML.

%prep
%setup -q -n %{name}
%patch0 -p1

find . -name CVS -o -name .cvsignore | xargs rm -rf

# fix paths
find . -type f | xargs perl -pi -e "s|/usr/bonsaitools/bin|%{_bindir}|g"

%build

%install
install -d -m 755 %{buildroot}%{_var}/www/%{name}
install -m 755 *.cgi %{buildroot}%{_var}/www/%{name}
cp -pr *.html *.gif robots.txt %{buildroot}%{_var}/www/%{name}

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/%{name}/lib
install -d -m 755 %{buildroot}%{_datadir}/%{name}/bin
install -m 644 CGI.pl \
		addcheckin.pl \
		adminfuncs.pl \
		adminmail.pl \
		createlegaldirs.pl \
		cvsblame.pl \
		cvsindex.pl \
		cvsmenu.pl \
		cvsquery.pl \
		defparams.pl \
		dolog.pl \
		get_line.pl \
		globals.pl \
		handleAdminMail.pl \
		handleCheckinMail.pl \
		header.pl \
		indextest.pl \
		lloydcgi.pl \
		modules.pl \
		processqueue.pl \
		reposfiles.pl \
		testlock.pl \
		%{buildroot}%{_datadir}/%{name}/lib
install -m 755 addcheckin.pl \
		adminmail.pl \
		createlegaldirs.pl \
		cvsblame.pl \
		cvsindex.pl \
		handleAdminMail.pl \
		handleCheckinMail.pl \
		processqueue.pl \
		reposfiles.pl \
		testlock.pl \
		maketables.sh \
		trapdoor \
		%{buildroot}%{_datadir}/%{name}/bin

install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 treeconfig.pl.in %{buildroot}%{_sysconfdir}/%{name}/treeconfig.pl
install -m 644 cvsgraph.conf %{buildroot}%{_sysconfdir}/%{name}

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# %{name} Apache configuration
Alias /%{name} %{_var}/www/%{name}

<Directory %{_var}/www/%{name}>
    Options ExecCGI
    DirectoryIndex toplevel.cgi
    Require all granted
</Directory>
EOF

%clean



%files
%doc README INSTALL CHANGES
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}
%{_var}/www/%{name}
%{_datadir}/%{name}
%attr(-,apache,apache) %{_localstatedir}/lib/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 493 |21cr|boolstuff-0.1.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 0.1
%define libname %mklibname boolstuff %{api} %{major}
%define devname %mklibname boolstuff -d

Summary:	Disjunctive Normal Form boolean expression library and example
Name:		boolstuff
Version:	0.1.16
Release:	2
License:	GPLv2+
Group:		Development/C++
Url:		http://sarrazip.com/dev/boolstuff.html
Source0:	http://sarrazip.com/dev/%{name}-%{version}.tar.gz
Patch0:		boolstuff-0.1.16-dynamic_exceptions.patch
Patch1:		boolstuff-0.1.16-switch_fallthrough.patch

%description
This library contains an algorithm that converts a boolean expression
binary tree into the Disjunctive Normal Form. The NOT operator
is supported.
A command that calls this library is also provided.

%files
%{_bindir}/*
%{_mandir}/man1/booldnf*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Disjunctive Normal Form boolean expression library
Group:		System/Libraries

%description -n %{libname}
This library contains an algorithm that converts a boolean expression
binary tree into the Disjunctive Normal Form. The NOT operator
is supported.

%files -n %{libname}
%{_libdir}/libboolstuff-%{api}.so.%{major}*
%{_mandir}/man3/boolstuff*
# do we need to redistribute the GPLv2 license? (INSTALL file)
%doc %{_defaultdocdir}/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	C++ header files for the boolstuff library
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
C++ header files for the Disjunctive Normal Form boolean expression library.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
# autoargh listao
./autogen.sh \
	--prefix %{_prefix} \
	--libdir=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 494 |21cr|boomaga-3.0.0-5.git7f7ad4.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 7f7ad4754b20a1027c5095b660c5229353b64c8d
%define commit_short %(echo %{commit} | head -c6)

%define printer_name "Boomaga"
%define cups_serverbin %{_exec_prefix}/lib/cups

Summary:	A virtual printer for viewing a document before printing
Name:		boomaga
Version:	3.0.0
Release:	5.git%{commit_short}.2
License:	LGPLv2.1+
Group:		System/Printing
Url:		http://www.boomaga.org/
Source0:	https://github.com/Boomaga/boomaga/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	cups-devel
BuildRequires:	snappy-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(poppler-cpp)
Requires(post,postun):	cups-common

%description
Boomaga (BOOklet MAnager) is a virtual printer for viewing a document before
printing it out using the physical printer.
The program is very simple to work with. Running any program, click “print”
and select “Boomaga” to see in several seconds (CUPS takes some time to
respond) the Boomaga window open.
If you print out one more document, it gets added to the previous one, and you
can also print them out as one.
Regardless of whether your printer supports duplex printing or not, you would
be able to easily print on both sides of the sheet.

%files -f %{name}.lang
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{cups_serverbin}/backend/boomaga
%{_datadir}/dbus-1/services/org.boomaga.service
%{_mandir}/man1/boomaga.1*
%dir %{_datadir}/ppd/boomaga
%{_datadir}/ppd/boomaga/boomaga.ppd
%{_datadir}/applications/boomaga.desktop
%{_datadir}/icons/hicolor/*/apps/boomaga.png
%{_datadir}/mime/packages/boomaga.xml
%dir %{_datadir}/boomaga
%dir %{_datadir}/boomaga/translations

%post
if [ $1 = 1 ]; then
	lpadmin -h localhost -p "%{printer_name}" -v "boomaga:/" -E -m "lsb/usr/boomaga/boomaga.ppd" -o printer-is-shared=no -o PageSize=a4
fi

%postun
if [ $1 = 0 ]; then
    lpadmin -x "Boomaga"
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 495 |21cr|bootchart-0.14.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bootchart
Version:        0.14.9
Release:        1
Summary:        Boot Process Performance Visualization
License:        GPLv3
Url:            http://www.bootchart.org/
Source0:        https://github.com/xrmx/bootchart/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Group:          Monitoring
BuildRequires:	python3-devel
Provides:	bootchart-logger = %{version}-%{release}

%description
Bootchart is a tool for performance analysis and visualization of the GNU/Linux
boot process.  Resource utilization and process information are collected
during the boot process and can later be displayed in a PNG, SVG or EPS-encoded
chart.

%files
%doc COPYING README.* TODO README
%_bindir/pybootchartgui
%{py3_platsitedir}/pybootchartgui
/sbin/bootchartd
%config(noreplace) %{_sysconfdir}/bootchartd.conf
%dir /lib/bootchart
%dir /lib/bootchart/tmpfs
/lib/bootchart/bootchart-collector
/lib/systemd/system/bootchart2-done.service
/lib/systemd/system/bootchart2-done.timer
/lib/systemd/system/bootchart2.service
%{_mandir}/man1/bootchart2.1*
%{_mandir}/man1/bootchartd.1*
%{_mandir}/man1/pybootchartgui.1*

#------------------------------------------------------------
%prep
%setup -q

%build
make

%install
%makeinstall_std

# set python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/pybootchartgui

# remove wrong doc dir
rm -r %{buildroot}%{_datadir}/docs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 496 |21cr|booth-1.0-6.95d854b.git.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# RPMs are split as follows:
# * booth:
#   - envelope package serving as a syntactic shortcut to install
#     booth-site (with architecture reliably preserved)
# * booth-core:
#   - package serving as a base for booth-{arbitrator,site},
#     carrying also basic documentation, license, etc.
# * booth-arbitrator:
#   - package to be installed at a machine accessible within HA cluster(s),
#     but not (necessarily) a member of any, hence no dependency
#     on anything from cluster stack is required
# * booth-site:
#   - package to be installed at a cluster member node
#     (requires working cluster environment to be useful)
# * booth-test:
#   - files for testing booth
#
# TODO:
# wireshark-dissector.lua currently of no use (rhbz#1259623), but if/when
# this no longer persists, add -wireshark package (akin to libvirt-wireshark)

%bcond_with html_man
%bcond_with glue

## User and group to use for nonprivileged services (should be in sync with pacemaker)
%global uname hacluster
%global gname haclient

# Disable automatic compilation of Python files in extra directories
%global _python_bytecompile_extra 0

%global specver 6
%global boothver 1.0
# set following to the actual commit or, for final release, concatenate
# "boothver" macro to "v" (will yield a tag per the convention)
%global commit 95d854b32a7cb20cb9a0e90c71d8cc269657304d
%global lparen (
%global rparen )
%global shortcommit %(c=%{commit}; case ${c} in
                      v*%{rparen} echo ${c:1};;
                      *%{rparen} echo ${c:0:7};; esac)
%global pre_release %(s=%{shortcommit}; [ ${s: -3:2} != rc ]; echo $?)
%global post_release %([ %{commit} = v%{shortcommit} ]; echo $?)
%global github_owner ClusterLabs

%if 0%{pre_release}
%global boothrel    0.%{specver}.%(s=%{shortcommit}; echo ${s: -3})
%else
%if 0%{post_release}
%global boothrel    %{specver}.%{shortcommit}.git
%else
%global boothrel    %{specver}
%endif
%endif

%global test_path   %{_datadir}/booth/tests

Name:		booth
Version:	%{boothver}
Release:	%{boothrel}.3
Summary:	Ticket Manager for Multi-site Clusters
Group:		System/Servers
License:	GPLv2+
Url:		https://github.com/%{github_owner}/%{name}
Source0:	https://github.com/%{github_owner}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz

# general build dependencies
BuildRequires:  asciidoctor
# linking dependencies
BuildRequires:  libgcrypt-devel
BuildRequires:  libxml2-devel
## just for <pacemaker/crm/services.h> include
BuildRequires:  pacemaker-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  zlib-devel
## logging provider
BuildRequires:  pkgconfig(libqb)
## random2range provider
BuildRequires:  pkgconfig(glib-2.0)
## nametag provider
BuildRequires:  pkgconfig(libsystemd)
# check scriptlet (for hostname and killall respectively)
BuildRequires:  hostname psmisc
BuildRequires:  pkgconfig(python3)
## for autosetup
BuildRequires:  git
# check scriptlet (for perl and netstat)
BuildRequires:  perl-interpreter
BuildRequires:  net-tools
BuildRequires:  ruby

# this is for a composite-requiring-its-components arranged
# as an empty package (empty files section) requiring subpackages
# (_isa so as to preserve the architecture)
Requires:       %{name}-core%{?_isa}
Requires:       %{name}-site
%files
# intentionally empty

%description
Booth manages tickets which authorize cluster sites located
in geographically dispersed locations to run resources.
It facilitates support of geographically distributed
clustering in Pacemaker.

#----------------------------------------------------------------

%package core
Summary:	Booth core files (executables, etc.)
Group:		System/Servers
# for booth-keygen (chown, dd)
Requires:	coreutils
# deal with pre-split arrangement
Conflicts:	%{name} < 1.0-1

%description core
Core files (executables, etc.) for Booth, ticket manager for
multi-site clusters.

%files core
%license COPYING
%doc %{_docdir}/AUTHORS
%doc %{_docdir}/ChangeLog
%doc %{_docdir}/README
%doc %{_docdir}/booth.conf.example
# core command(s) + man pages
%{_sbindir}/booth*
%{_mandir}/man8/booth*.8*
# configuration
%dir %{_sysconfdir}/booth
%exclude %{_sysconfdir}/booth/booth.conf.example

%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/booth/
%dir %attr (750, %{uname}, %{gname}) %{_var}/lib/booth/cores

%{_datadir}/pkgconfig/booth.pc

#----------------------------------------------------------------

%package arbitrator
Summary:	Booth support for running as an arbitrator
Group:		System/Servers
BuildArch:	noarch
Requires:	%{name}-core = %{EVRD}
# deal with pre-split arrangement
Conflicts:	%{name} < 1.0-1

%description arbitrator
Support for running Booth, ticket manager for multi-site clusters,
as an arbitrator.

%post arbitrator
%systemd_post booth@.service booth-arbitrator.service

%preun arbitrator
%systemd_preun booth@.service booth-arbitrator.service

%postun arbitrator
%systemd_postun_with_restart booth@.service booth-arbitrator.service

%files arbitrator
%{_unitdir}/booth@.service
%{_unitdir}/booth-arbitrator.service

#----------------------------------------------------------------

%package site
Summary:	Booth support for running as a full-fledged site
Group:		System/Servers
BuildArch:	noarch
Requires:	%{name}-core = %{EVRD}
# for crm_{resource,simulate,ticket} utilities
Requires:	pacemaker >= 1.1.8
# for ocf-shellfuncs and other parts of OCF shell-based environment
Requires:	resource-agents
# deal with pre-split arrangement
Conflicts:	%{name} < 1.0-1

%description site
Support for running Booth, ticket manager for multi-site clusters,
as a full-fledged site.

%files site
# OCF (agent + a helper)
## /usr/lib/ocf/resource.d/pacemaker provided by pacemaker
%{_usr}/lib/ocf/resource.d/pacemaker/booth-site
%dir %{_usr}/lib/ocf/lib/booth
     %{_usr}/lib/ocf/lib/booth/geo_attr.sh
# geostore (command + OCF agent)
%{_sbindir}/geostore
%{_mandir}/man8/geostore.8*
## /usr/lib/ocf/resource.d provided by resource-agents
%dir %{_usr}/lib/ocf/resource.d/booth
     %{_usr}/lib/ocf/resource.d/booth/geostore
# helper (possibly used in the configuration hook)
%dir %{_datadir}/booth
     %{_datadir}/booth/service-runnable

#----------------------------------------------------------------

%package test
Summary:	Test scripts for Booth
Group:		System/Servers
BuildArch:	noarch
# runtests.py suite (for hostname and killall respectively)
Requires:	hostname
Requires:	psmisc
# any of the following internal dependencies will pull -core package
## for booth@booth.service
Requires:	%{name}-arbitrator = %{EVRD}
## for booth-site and service-runnable scripts
## (and /usr/lib/ocf/resource.d/booth)
Requires:	%{name}-site = %{EVRD}
Requires:	gdb
Requires:	%{__python3}
Requires:	python3-pexpect
# runtests.py suite (for perl and netstat)
Requires:	perl-interpreter
Requires:	net-tools

%description test
Automated tests for running Booth, ticket manager for multi-site clusters.

%files test
%doc %{_docdir}/README-testing
# /usr/share/booth provided by -site
%{test_path}
# /usr/lib/ocf/resource.d/booth provided by -site
%{_usr}/lib/ocf/resource.d/booth/sharedrsc

#----------------------------------------------------------------

%prep
%autosetup -n %{name}-%{commit} -S git_am

%build
./autogen.sh
%configure \
        --with-initddir=%{_initrddir} \
        --docdir=%{_docdir} \
        --enable-user-flags \
        %{!?with_html_man:--without-html_man} \
        %{!?with_glue:--without-glue} \
        PYTHON=%{__python3}
%make_build

%install
%make_install
mkdir -p %{buildroot}/%{_unitdir}
cp -a -t %{buildroot}/%{_unitdir} \
        -- conf/booth@.service conf/booth-arbitrator.service
install -D -m 644 -t %{buildroot}/%{_mandir}/man8 \
        -- docs/boothd.8
ln -s boothd.8 %{buildroot}/%{_mandir}/man8/booth.8
cp -a -t %{buildroot}/%{_docdir} \
        -- ChangeLog README-testing conf/booth.conf.example
# drop what we don't package anyway (COPYING added via tarball-relative path)
rm -rf %{buildroot}/%{_initrddir}/booth-arbitrator
rm -rf %{buildroot}/%{_docdir}/README.upgrade-from-v0.1
rm -rf %{buildroot}/%{_docdir}/COPYING
# tests
mkdir -p %{buildroot}/%{test_path}
# Copy tests from tarball
cp -a -t %{buildroot}/%{test_path} \
        -- conf test unit-tests script/unit-test.py
chmod +x %{buildroot}/%{test_path}/test/booth_path
chmod +x %{buildroot}/%{test_path}/test/live_test.sh
mkdir -p %{buildroot}/%{test_path}/src
ln -s -t %{buildroot}/%{test_path}/src \
        -- %{_sbindir}/boothd
# Generate runtests.py and boothtestenv.py
sed -e 's#PYTHON_SHEBANG#%{__python3} -Es#g' \
    -e 's#TEST_SRC_DIR#%{test_path}/test#g' \
    -e 's#TEST_BUILD_DIR#%{test_path}/test#g' \
    %{buildroot}/%{test_path}/test/runtests.py.in > %{buildroot}/%{test_path}/test/runtests.py

chmod +x %{buildroot}/%{test_path}/test/runtests.py

sed -e 's#PYTHON_SHEBANG#%{__python3} -Es#g' \
    -e 's#TEST_SRC_DIR#%{test_path}/test#g' \
    -e 's#TEST_BUILD_DIR#%{test_path}/test#g' \
    %{buildroot}/%{test_path}/test/boothtestenv.py.in > %{buildroot}/%{test_path}/test/boothtestenv.py

# https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation
%py_byte_compile %{__python3} %{buildroot}/%{test_path}

#disable test, its failed on abf build
#%%check
# alternatively: test/runtests.py
#%VERBOSE=1 make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 497 |21cr|bootsplash-themes-2.1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define scriptdir %{_datadir}/bootsplash/scripts/

Summary:	Bootsplash themes
Name:		bootsplash-themes
Version:	2.1.0
Release:	10
Source:		%{name}-%{version}.tar.bz2
License:	GPL
Group:		System/Kernel and hardware
Url:		http://www.mandrivalinux.com/cgi-bin/cvsweb.cgi/soft/bootsplash/
Requires:	bootsplash
Requires:	mandriva-theme

BuildArch: noarch

%description
Additional themes for bootsplash:
- Linux
- Ayo
- Ayo-73labAllstar
- Ayo-ElvinTooka
- Ayo-FrozenBubble
- Ayo-Misspingus3
- Ayo-Misspingus4

"-tux" themes use Tux logo instead of theme picture in console

%prep
%setup -q

%build
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
rm -rf $RPM_BUILD_ROOT{%_sysconfdir,%_datadir}/bootsplash/themes/{RadiantStar,Enterprise{,-spot}}

%post
# update current theme
if [ -x %scriptdir/switch-themes ]; then 
    %scriptdir/switch-themes -u
fi
 
%postun
# switch back to Mandriva theme on full removal
if [ "$1" = "0" ]; then
  if [ -x %scriptdir/switch-themes ]; then 
    %scriptdir/switch-themes Mandriva
  fi
fi

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%doc README

%dir %_datadir/bootsplash/themes/Linux
%_datadir/bootsplash/themes/Linux/*
%dir %_sysconfdir/bootsplash/themes/Linux
%config(noreplace) %_sysconfdir/bootsplash/themes/Linux/*

%dir %_datadir/bootsplash/themes/Ayo
%_datadir/bootsplash/themes/Ayo/*
%dir %_sysconfdir/bootsplash/themes/Ayo
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo/*

%dir %_datadir/bootsplash/themes/Ayo-73labAllstar
%_datadir/bootsplash/themes/Ayo-73labAllstar/*
%dir %_sysconfdir/bootsplash/themes/Ayo-73labAllstar
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-73labAllstar/*

%dir %_datadir/bootsplash/themes/Ayo-ElvinTooka
%_datadir/bootsplash/themes/Ayo-ElvinTooka/*
%dir %_sysconfdir/bootsplash/themes/Ayo-ElvinTooka
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-ElvinTooka/*

%dir %_datadir/bootsplash/themes/Ayo-FrozenBubble
%_datadir/bootsplash/themes/Ayo-FrozenBubble/*
%dir %_sysconfdir/bootsplash/themes/Ayo-FrozenBubble
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-FrozenBubble/*

%dir %_datadir/bootsplash/themes/Ayo-Misspingus3
%_datadir/bootsplash/themes/Ayo-Misspingus3/*
%dir %_sysconfdir/bootsplash/themes/Ayo-Misspingus3
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-Misspingus3/*

%dir %_datadir/bootsplash/themes/Ayo-Misspingus4
%_datadir/bootsplash/themes/Ayo-Misspingus4/*
%dir %_sysconfdir/bootsplash/themes/Ayo-Misspingus4
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-Misspingus4/*

# -tux themes

%dir %_datadir/bootsplash/themes/Mandriva-tux
%_datadir/bootsplash/themes/Mandriva-tux/*
%dir %_sysconfdir/bootsplash/themes/Mandriva-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Mandriva-tux/*

%dir %_datadir/bootsplash/themes/Enterprise-tux
%_datadir/bootsplash/themes/Enterprise-tux/*
%dir %_sysconfdir/bootsplash/themes/Enterprise-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Enterprise-tux/*

%dir %_datadir/bootsplash/themes/Enterprise-spot-tux
%_datadir/bootsplash/themes/Enterprise-spot-tux/*
%dir %_sysconfdir/bootsplash/themes/Enterprise-spot-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Enterprise-spot-tux/*

%dir %_datadir/bootsplash/themes/Ayo-tux
%_datadir/bootsplash/themes/Ayo-tux/*
%dir %_sysconfdir/bootsplash/themes/Ayo-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-tux/*

%dir %_datadir/bootsplash/themes/Ayo-73labAllstar-tux
%_datadir/bootsplash/themes/Ayo-73labAllstar-tux/*
%dir %_sysconfdir/bootsplash/themes/Ayo-73labAllstar-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-73labAllstar-tux/*

%dir %_datadir/bootsplash/themes/Ayo-ElvinTooka-tux
%_datadir/bootsplash/themes/Ayo-ElvinTooka-tux/*
%dir %_sysconfdir/bootsplash/themes/Ayo-ElvinTooka-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-ElvinTooka-tux/*

%dir %_datadir/bootsplash/themes/Ayo-FrozenBubble-tux
%_datadir/bootsplash/themes/Ayo-FrozenBubble-tux/*
%dir %_sysconfdir/bootsplash/themes/Ayo-FrozenBubble-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-FrozenBubble-tux/*

%dir %_datadir/bootsplash/themes/Ayo-Misspingus3-tux
%_datadir/bootsplash/themes/Ayo-Misspingus3-tux/*
%dir %_sysconfdir/bootsplash/themes/Ayo-Misspingus3-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-Misspingus3-tux/*

%dir %_datadir/bootsplash/themes/Ayo-Misspingus4-tux
%_datadir/bootsplash/themes/Ayo-Misspingus4-tux/*
%dir %_sysconfdir/bootsplash/themes/Ayo-Misspingus4-tux
%config(noreplace) %_sysconfdir/bootsplash/themes/Ayo-Misspingus4-tux/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 498 |21cr|boring-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=off
# see Source0
%global goipath github.com/alebeck/boring

Summary:	The `boring` SSH tunnel manager 
Name:		boring
Version:	0.7.0
Release:	1
License:	MIT
Group:		Development/Other
Url:		https://github.com/alebeck/boring
Source0:	https://github.com/alebeck/boring/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# unpack source and run 'go mod vendor' in source dir, tar.gz 'vendor' dir
# or use upd.sh script
Source1:	boring-go-mod-vendor-0.7.0.tar.gz
Source10:	upd.sh
# slices undefined, may be need golang-1.23?
Patch0:		boring-slices.patch
BuildRequires:	golang
ExcludeArch:	%{ix86}
%gometa

%description
%{summary}.

%files
%doc examples
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%goprep
%apply_patches

# prepare vendored modules
tar -xf %{SOURCE1}
cp -r ./vendor/* _build/src/

%build
%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/%{name}

%install
install -d %{buildroot}%{_bindir}
install -Dm0755 %{gobuilddir}/bin/%{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 499 |21cr|bos-2.7-4.10256
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname boswars
%define svn 10256

Summary:	A real time strategy game
Name:		bos
Version:	2.7
Release:	4.%{svn}
License:	GPLv2+
Group:		Games/Strategy
Url:		http://www.%{oname}.org/
# build from svn
# SVN snapshot: svn co svn://bos.seul.org/svn/bos/bos/trunk boswars
Source0:	%{oname}-%{version}+%{svn}.tar.xz
# Source0:	http://www.boswars.org/dist/releases/%%{oname}-%%{version}-src.zip
Source4:        %{name}.appdata.xml
Source5:        %{name}.6
Source11:	%{name}-16.png
Source12:	%{name}-32.png
Source13:	%{name}-48.png
Patch1:		%{oname}-2.6.1-scons-blows.patch
Patch3:		%{oname}-2.7-compat-lua-5.1.patch
Patch4:		%{oname}-2.7-sconstruct-py3.patch


BuildRequires:	imagemagick
BuildRequires:	scons
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(lua-5.1)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Provides:	%{oname} = %{EVRD}

%description
Invasion - Battle of Survival is a real-time strategy game using
the Stratagus game engine.

%files
%doc doc/*
%dir %{_gamesdatadir}/bos/
%{_gamesdatadir}/bos/*
%{_gamesbindir}/bos
%{_gamesbindir}/%{oname}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_appdatadir}/*.xml
%{_mandir}/man6/*
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}+%{svn}

for file in  doc/guichan-copyright.txt ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done

find campaigns engine maps -type f -executable -exec chmod -x {} ';'


%build
%scons opengl=1 CC="gcc %{optflags}" CXX="g++ %{optflags}" LIBPATH=%{_libdir}


%install
mkdir -p %{buildroot}%{_gamesbindir}
mkdir -p %{buildroot}%{_gamesdatadir}/bos
install -m755 build/%{oname}-release %{buildroot}%{_gamesbindir}/%{oname}

cp -ra campaigns graphics intro languages maps scripts sounds units %{buildroot}%{_gamesdatadir}/bos/
cat << EOF > ./bos.sh
#!/bin/sh
%{oname} \$@ -d %{_gamesdatadir}/bos/
EOF
install -m755 ./bos.sh -D %{buildroot}%{_gamesbindir}/bos

# icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
# menu ebtry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Bos Wars
Comment=Invasion: Battle of survival - a real time strategy game
Exec=%{_gamesbindir}/bos
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;StrategyGame;
EOF

# appdata
mkdir -p %{buildroot}%{_appdatadir}/
install -p -m 644 %{SOURCE4} %{buildroot}%{_appdatadir}

# manpages
mkdir -p %{buildroot}%{_mandir}/man6
install -p -m 644 %{SOURCE5} %{buildroot}%{_mandir}/man6



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 500 |21cr|botan-1.10.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.10
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d

Summary:	Crypto library written in C++
Name:		botan
Version:	1.10.17
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://botan.randombit.net/
Source0:	http://botan.randombit.net/releases/Botan-%{version}.tgz
Patch0:		Botan-1.10.17-cstdint.patch
BuildRequires:	bzip2-devel
BuildRequires:	gmp-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
Botan is a BSD-licensed crypto library written in C++. It provides a
wide variety of basic cryptographic algorithms, X.509 certificates and
CRLs, PKCS \#10 certificate requests, a filter/pipe message processing
system, and a wide variety of other features, all written in portable
C++. The API reference, tutorial, and examples may help impart the
flavor of the library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
Botan is a BSD-licensed crypto library written in C++. It provides a
wide variety of basic cryptographic algorithms, X.509 certificates and
CRLs, PKCS \#10 certificate requests, a filter/pipe message processing
system, and a wide variety of other features, all written in portable
C++. The API reference, tutorial, and examples may help impart the
flavor of the library.

%files -n %{libname}
%{_libdir}/libbotan-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc _doc/readme.txt
%doc doc/examples
%{_includedir}/%{name}-%{api}/
%{_bindir}/botan-config-%{api}
%{_libdir}/libbotan-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn Botan-%{version}
%apply_patches

# Update permissions for debuginfo package
find . -name "*.c" -o -name "*.h" -o -name "*.cpp" |xargs chmod 0644

%build
# we have the necessary prerequisites, so enable optional modules
%define enable_modules gnump,bzip2,zlib,openssl

# fixme: maybe disable unix_procs, very slow.
%define disable_modules %{nil}

./configure.py \
        --prefix=%{_prefix} \
        --libdir=%{_lib} \
        --cc=gcc \
        --os=linux \
        --cpu=%{_arch} \
        --enable-modules=%{enable_modules} \
        --disable-modules=%{disable_modules}

# (ab)using CXX as an easy way to inject our CXXFLAGS
make CXX="g++ ${CXXFLAGS:-%{optflags}} -std=gnu++11" %{?_smp_mflags}

%install
make install \
	DESTDIR=%{buildroot}%{_prefix} \
	DOCDIR=_doc \
	INSTALL_CMD_EXEC="install -p -m 755" \
	INSTALL_CMD_DATA="install -p -m 644" \

rm -f %{buildroot}%{_libdir}/*.a

%check
make CXX="g++ ${CXXFLAGS:-%{optflags}}" %{?_smp_mflags} check

# these checks would fail
mv checks/validate.dat{,.orig}
awk '/\[.*\]/{f=0} /\[(RC5.*|RC6|IDEA)\]/{f=1} (f && !/^#/){sub(/^/,"#")} {print}' \
    checks/validate.dat.orig > checks/validate.dat
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./check --validate

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 501 |21cr|botan2-2.19.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 19
%define api 2
%define libname %mklibname botan %{api} %{major}
%define devname %mklibname -d botan %{api}

Name:		botan2
Version:	2.19.1
Release:	2
Summary:	Crypto and TLS for C++11
Group:		System/Libraries
License:	BSD
URL:		https://botan.randombit.net/
Source0:	https://github.com/randombit/botan/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:	gcc-c++
BuildRequires:	python3
BuildRequires:	python3-devel
BuildRequires:	python3-sphinx
BuildRequires:	bzip2-devel
BuildRequires:	zlib-devel
BuildRequires:	openssl-devel

%description
Botan is a BSD-licensed crypto library written in C++. It provides a
wide variety of basic cryptographic algorithms, X.509 certificates and
CRLs, PKCS \#10 certificate requests, a filter/pipe message processing
system, and a wide variety of other features, all written in portable
C++. The API reference, tutorial, and examples may help impart the
flavor of the library. This is the current stable release branch 2.x
of Botan.

%files
%{_bindir}/botan
%{_mandir}/man1/botan.1*

#-------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description -n %{devname}
Header files for developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libbotan-%{api}.so
%{_libdir}/pkgconfig/botan-%{api}.pc


#-------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Shared library for applications that use %{name}.

%files -n %{libname}
%{_libdir}/libbotan-%{api}.so.%{major}*

#-------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
%{summary}

This package contains HTML documentation for %{name}.

%files doc
%doc license.txt
%{_datadir}/doc/*

#-------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings for %{name}
Group:		Development/Python

%description -n python3-%{name}
%{summary}

This package contains the Python3 binding for %{name}.

%files -n python3-%{name}
%{python3_sitearch}/%{name}.py*
%{python3_sitearch}/__pycache__/*.pyc

#-------------------------------------------------------------

%prep
%setup -q -n botan-%{version}

%build
export CXXFLAGS="${CXXFLAGS:-%{optflags}}"

# we have the necessary prerequisites, so enable optional modules
%global enable_modules bzip2,zlib,openssl

%ifarch %{e2k}
%define _arch generic
%endif

python3 ./configure.py \
        --prefix=%{_prefix} \
        --libdir=%{_lib} \
        --docdir=%{_docdir} \
        --cc=gcc \
        --os=linux \
        --cpu=%{_arch} \
        --enable-modules=%{enable_modules} \
        --with-python-version=%{python3_version} \
        --with-sphinx \
        --with-rst2man \
        --distribution-info="ROSA Desktop" \
        --disable-static-library \
        --with-debug-info

%make

%install
%makeinstall_std

sed -e '1{/^#!/d}' -i %{buildroot}%{python3_sitearch}/botan2.py

# doc installation fixups
#mv %{buildroot}%{_docdir}/botan-%{version} %{buildroot}%{_datadir}/doc
#rm -r %{buildroot}%{_datadir}/doc/manual/{.doctrees,.buildinfo}

%check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./botan-test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 502 |21cr|bottom-0.9.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		crates_ver %{version}

Name:           bottom
Version:        0.9.6
Release:        1
Summary:        A customizable cross-platform graphical process/system monitor for the terminal
Group:          Monitoring
License:        MIT
URL:            https://github.com/ClementTsang/bottom
Source0:        https://github.com/ClementTsang/bottom/v%{version}/%{name}-%{version}.tar.gz
# vendoring for offline build
Source1:        %{name}-crates-%{crates_ver}.tar.xz
#
Source2:        https://github.com/ClementTsang/bottom/releases/download/%{version}/completion.tar.gz
Source3:        https://github.com/ClementTsang/bottom/releases/download/%{version}/manpage.tar.gz

BuildRequires:  cargo
BuildRequires:  rust
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(openssl)

Requires:     cargo-vendor
Requires:     rust

%description
A customizable cross-platform graphical
process/system monitor for the terminal.


%files
%doc *.md LICENSE
%{_bindir}/*
%{_datadir}/applications/%name.desktop
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/bash_completion.d/btm.bash
#---------------------------

%prep
%autosetup -p1 -a1
%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"

cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF


%build
#build and install at ounce.

%install
export CARGO_HOME="$(pwd)/.cargo"
RUSTFLAGS=-g cargo install --no-track --debug --offline --root=%{buildroot}%{_prefix} --path .

pushd %{buildroot}%{_bindir}
ln -s btm %{name}
popd

#manpages
tar -xvzf %{SOURCE3}
mkdir -p %{buildroot}%{_mandir}/man1
install -m644 btm.1.gz %{buildroot}%{_mandir}/man1/bottom.1.gz


#completion
# I'll install only bash completion 4 obvious reasons.sflo
tar -xvzf %{SOURCE2}
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
install -m644 btm.bash %{buildroot}%{_sysconfdir}/bash_completion.d/btm.bash



# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%name
Comment=A process/system monitor for the terminal.
Exec=%{name} %U
Icon=utilities-system-monitor
Terminal=true
Type=Application
StartupNotify=true
Categories=System;Monitor;System;
EOF



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 503 |21cr|box2d-2.3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define major   2.3.0
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

%define oname Box2D

Summary:	A 2D physics engine for games
Name:		box2d
Version:	2.3.0
Release:	7
License:	BSD
Group:		System/Libraries
Url:		http://www.box2d.org
Source0:	http://box2d.googlecode.com/files/%{oname}_v%{version}.7z
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	p7zip
BuildRequires:	glui-devel
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(x11)

%description
Box2D is a 2D rigid body simulation library for games. Programmers can use it
in their games to make objects move in believable ways and make the game world
more interactive. From the game's point of view a physics engine is just
a system for procedural animation.

Box2D is written in portable C++. Most of the types defined in the engine begin
with the b2 prefix. Hopefully this is sufficient to avoid name clashing with
your game engine.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	2D physics engine for games
Group:		System/Libraries

%description -n %{libname}
Box2D is a 2D rigid body simulation library for games. Programmers can use it
in their games to make objects move in believable ways and make the game world
more interactive. From the game's point of view a physics engine is just
a system for procedural animation.

Box2D is written in portable C++. Most of the types defined in the engine begin
with the b2 prefix. Hopefully this is sufficient to avoid name clashing with
your game engine.

%files -n %{libname}
%doc Box2D/License.txt Box2D/Readme.txt Box2D/Documentation/API
%{_libdir}/lib*.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A 2D physics engine for games
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 2.3

%description  -n %{devname}
Box2D is a 2D rigid body simulation library for games. Programmers can use it
in their games to make objects move in believable ways and make the game world
more interactive. From the game's point of view a physics engine is just
a system for procedural animation.

Box2D is written in portable C++. Most of the types defined in the engine begin
with the b2 prefix. Hopefully this is sufficient to avoid name clashing with
your game engine.

%files  -n %{devname}
%doc Box2D/License.txt Box2D/Readme.txt Box2D/Documentation/API
%{_includedir}/%{oname}/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{oname}.pc
%{_libdir}/%{oname}/

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}_v%{version}

# ┌─[ symbianflo @ abfonly ] - [ Mandrivausers.ro ] 
# └─[ MRB:aint-no-shit $]:cat Contributions/Readme.txt
# This folder contains user contributions. Contributions are _not_ supported by the Box2D project.
# Contributions may not compile or function correctly.

rm -fr Contributions

%build
pushd Box2D
%cmake -DBOX2D_INSTALL=ON \
       -DBOX2D_BUILD_SHARED=ON \
       -DBOX2D_BUILD_STATIC=OFF \
       -DBOX2D_BUILD_EXAMPLES=OFF
%make

pushd ../Documentation
doxygen
mv -f API/html/* API
rm -rf API/html
find . -type d -exec chmod 0755 {} \;
popd
popd

%install
%makeinstall_std -C Box2D/build

# pc file
install -d %{buildroot}%{_libdir}/pkgconfig
cat << EOF > %{buildroot}%{_libdir}/pkgconfig/%{oname}.pc
prefix=%{_prefix}
exec_prefix=\${prefix}
libdir=\${exec_prefix}/%{_lib}
includedir=\${prefix}/include

Name: %{oname}
Description: 2D physics engine for games
Version: %{version}
Libs: -L\${libdir} -l%{oname}
Cflags: -I\${includedir} -I\${includedir}/%{oname}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 504 |21cr|brackets-1.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude_from (/opt/brackets/locales|/opt/brackets/www|/opt/brackets/samples|/opt/brackets/node-core)
%global __requires_exclude libcef.*|libudev.*

Summary:	Adobe Brackets text editor + Extract bundle
Name:		brackets
Version:	1.14.1
Release:	1
License:	BSD-like with copyright notice
Group:		Development/Other
Url:		http://brackets.io/
# Though brackets is Open Source, currently we just repack deb packages from upstream
Source0:	https://github.com/adobe/brackets/releases/download/release-%{version}/Brackets.Release.%{version}.32-bit.deb
Source1:	https://github.com/adobe/brackets/releases/download/release-%{version}/Brackets.Release.%{version}.64-bit.deb
Source2:	%{name}.desktop
Source100:	%{name}.rpmlintrc
BuildRequires:	tar
BuildRequires:	xz
Requires:	nodejs
# Even with __noautoreqfiles, the process of dependency detection is rather slow ...
#AutoReqProv:	no
AutoProv:	no
ExclusiveArch:	%{ix86} x86_64

%description
A modern, open source text editor that understands web design.

%files
/opt/%{name}
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/doc/%{name}
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -qcT
%ifarch x86_64
ar vx %{SOURCE1}
%endif

%ifarch %{ix86}
ar vx %{SOURCE0}
%endif

tar xJf data.tar.xz

rm -rf usr/share/menu

%install
cp -r opt %{buildroot}
cp -r usr %{buildroot}

mkdir -p %{buildroot}%{_datadir}/applications/
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 505 |21cr|brainparty-0.61-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		brainparty
Version:	0.61
Release:	1
Summary:	Set of 36 minigames to train your brain in an entertaining way
Group:		Games/Puzzles
License:	GPLv3+
Url:		http://www.tuxradar.com/brainparty
Source0:	https://launchpad.net/brainparty/trunk/%{version}/+download/%{name}%{version}.tar.gz
# Fix from http://packages.debian.org/brainparty

Patch1:		change-config-file-path.patch
Patch2:		path2data.patch
Patch3:		make.patch
Patch4:		unbundle-ttf.patch
Patch5:		disable-fistrun-prompt.patch
Patch6:		fix-FTBFS-with-GCC-4.9.patch
Patch7:		reproducible-build.patch
Patch8:		gcc-6.patch
Patch9:		BPMiniGame_SymbolicLogic.patch

BuildRequires:	imagemagick
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)

%description
Brain Party is a fun, free puzzle game for all the family that's made up
of 36 minigames designed to push your brain to its limits by testing
memory, logic, mathematics, reaction time and more! Brain Party is split
into two modes: test mode gives you five minigames in a row and adds up
your brain weight to see how smart you are, and practise mode lets you
play your favourite minigames as often as you want.


%files
%doc CREDITS README
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.png
#---------------------------------------------------------------------

%prep
%setup -qn %{name}
%autopatch -p1

# Desktop entry
cat > %{name}.desktop << EOF
[Desktop Entry]
Name=Brain Party
Comment=Fun brain training with 36 minigames
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

%build
%make

%install
install -D -m0755 %{name} %{buildroot}%{_gamesbindir}/%{name}
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
install -m0644 Content/* %{buildroot}%{_gamesdatadir}/%{name}/
install -D -m0755 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

for size in 16 32 64; do
    convert ./Content/icon.bmp -resize ${size}x${size} %{name}-${size}.png
    install -D -m0644 %{name}-${size}.png %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 506 |21cr|brilltagger-1.14-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tag     %(echo %{version} |tr . _)

Name:       brilltagger
Version:    1.14
Release:    14
Summary:    Rule based tagger
Source:     http://www.cs.jhu.edu/~brill/RBT%{tag}.tar.bz2
Patch0:     %{name}.makefile.patch
Patch1:     %{name}.no-hardcoded-path-check.patch
# this url no longer work, and it seems it disappeared from internet
URL:        http://www.cs.jhu.edu/~brill/
License:    MIT
Group:      Sciences/Computer science

%description
The Brill tagger is a transformation-based part-of-speech tagger.

%prep
%setup -q -n RULE_BASED_TAGGER_V%{version}
%patch0
%patch1
mkdir Bin
chmod 644 Docs/*

%build
%make RPM_OPT_FLAGS="%{optflags}"

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 Bin/* %{buildroot}%{_bindir}

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 644 Bin_and_Data/* %{buildroot}%{_datadir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc Docs README COPYRIGHT
%{_bindir}/*
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 507 |21cr|briquolo-0.5.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An OpenGL breakout
Name:		briquolo
Version:	0.5.7
Release:	7
License:	GPLv2+
Group:		Games/Arcade
Url:		http://briquolo.free.fr/
Source0:	http://briquolo.free.fr/download/%{name}-%{version}.tar.bz2
Source1:	%{name}.6
Source11:	%{name}-16.png
Source12:	%{name}-32.png
Source13:	%{name}-48.png
Patch0:		briquolo-0.5.6-desktop-install.patch
Patch1:		briquolo-0.5.5-desktop-remove-double-category.patch
Patch2:		briquolo-0.5.7-gcc43.patch
Patch3:		briquolo-0.5.6-fix-icon-install.patch
Patch4:		briquolo-0.5.7-libpng14.patch
Patch5:		briquolo-0.5.7-gcc11-fix-const.patch
BuildRequires:	dos2unix
BuildRequires:	desktop-file-utils
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)

%description
Briquolo is a 3D brick game using OpenGL

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS ChangeLog DejaVuSans.ttf-LICENSE README.fr
%attr(0755,root,games) %{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/briquolo.desktop
%{_datadir}/pixmaps/briquolo.svg
%{_mandir}/man6/*

#----------------------------------------------------------------------------

%prep
%setup -q
dos2unix data/tableau/old/{001,002,003,006}.tab
%patch0 -p1 -b .desktop
%patch1 -p1 -b .remove_category
%patch2 -p0 -b .gcc
%patch3 -p0 -b .icon
%patch4 -p0 -b .png14
%patch5 -p1 -b .gcc11

%build
autoreconf -fi
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

#this empty file makes rpmlint shouting otherwise...
echo %{version} > %{buildroot}%{_gamesdatadir}/%{name}/%{version}

mv %{buildroot}%{_gamesdatadir}/locale %{buildroot}%{_datadir}
mv %{buildroot}%{_gamesdatadir}/pixmaps %{buildroot}%{_datadir}

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

desktop-file-install \
	--vendor="" \
	--delete-original \
	--add-category="X-MandrivaLinux-MoreApplications-Games-Arcade" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_gamesdatadir}/applications/*



mkdir -p %{buildroot}%{_mandir}/man6
install -m644 %{SOURCE1}  %{buildroot}%{_mandir}/man6/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 508 |21cr|brise-0.38-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# https://github.com/rime/plum/
%define plum_commit 6f502ff6fa87789847fa18200415318e705bffa4
%define plum_rime_packages_date 20240115

Summary(ru_RU.UTF-8): Официальный репозиторий схем методов ввода Rime
Summary:        The official Rime schema repository
Name:           brise
Version:        0.38
Release:        1
License:        GPLv3
Group:          System/Internationalization
URL:            https://rime.im/

Source0:        https://github.com/rime/brise/archive/refs/tags/%{name}-%{version}.tar.gz
Source1:        https://github.com/rime/plum/archive/%{plum_commit}.tar.gz?/plum-%{plum_commit}.tar.gz

# $ cd brise
# $ make
# $ date=$(date +%Y%m%d)
# $ XZ_OPT="-6 --threads=0 -v" tar cJf plum-rime-packages-${date}.tar.xz brise/plum/rime/package
Source2:        plum-rime-packages-%{plum_rime_packages_date}.tar.xz

BuildArch: noarch

Requires:  rime-schema-default

%description
La brise: The official Rime schema repository.

%description -l ru_RU.UTF-8
La brise: Официальный репозиторий схем методов ввода Rime.

%files
%license LICENSE
%doc README.md ChangeLog AUTHORS
%dir %{_datadir}/rime-data

#------------------------------------------------------------------

%package -n rime-schema-default
Summary:        Default/Preset collection of rime schemas
Group:          System/Internationalization
Requires:       rime-schema-bopomofo
Requires:       rime-schema-cangjie
Requires:       rime-schema-essay
Requires:       rime-schema-luna-pinyin
Requires:       rime-schema-prelude
Requires:       rime-schema-stroke
Requires:       rime-schema-terra-pinyin
BuildArch:      noarch

%description -n rime-schema-default
Default/Preset collection of rime schemas.

%files -n rime-schema-default
%dir %{_datadir}/rime-data

#------------------------------------------------------------------

%package -n rime-schema-extra
Summary:        Extra collection of rime schemas
Group:          System/Internationalization
Requires:       rime-schema-array
Requires:       rime-schema-cantonese
Requires:       rime-schema-jyutping
Requires:       rime-schema-combo-pinyin
Requires:       rime-schema-double-pinyin
Requires:       rime-schema-emoji
Requires:       rime-schema-ipa
Requires:       rime-schema-middle-chinese
Requires:       rime-schema-pinyin-simp
Requires:       rime-schema-quick
Requires:       rime-schema-scj
Requires:       rime-schema-soutzoe
Requires:       rime-schema-stenotype
Requires:       rime-schema-wubi
Requires:       rime-schema-wugniu
BuildArch:      noarch

%description -n rime-schema-extra
Extra collection of rime schemas.

%files -n rime-schema-extra
%dir %{_datadir}/rime-data

#------------------------------------------------------------------

%package -n rime-schema-all
Summary:        All rime input schemas
Group:          System/Internationalization
Requires:       rime-schema-bopomofo
Requires:       rime-schema-cangjie
Requires:       rime-schema-essay
Requires:       rime-schema-luna-pinyin
Requires:       rime-schema-prelude
Requires:       rime-schema-stroke
Requires:       rime-schema-terra-pinyin
Requires:       rime-schema-array
Requires:       rime-schema-cantonese
Requires:       rime-schema-jyutping
Requires:       rime-schema-combo-pinyin
Requires:       rime-schema-double-pinyin
Requires:       rime-schema-emoji
Requires:       rime-schema-ipa
Requires:       rime-schema-middle-chinese
Requires:       rime-schema-pinyin-simp
Requires:       rime-schema-quick
Requires:       rime-schema-scj
Requires:       rime-schema-soutzoe
Requires:       rime-schema-stenotype
Requires:       rime-schema-wubi
Requires:       rime-schema-wugniu
Provides:       %{name} = %{EVRD}
BuildArch:      noarch

%description -n rime-schema-all
All rime input schemas.

%files -n rime-schema-all
%dir %{_datadir}/rime-data

#------------------------------------------------------------------

%package -n rime-schema-bopomofo
Summary:        bopomofo input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-bopomofo
bopomofo input schema for rime.

%files -n rime-schema-bopomofo
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/bopomofo*.yaml
%{_datadir}/rime-data/zhuyin.yaml

#------------------------------------------------------------------

%package -n rime-schema-cangjie
Summary:        cangjie input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-cangjie
cangjie input schema for rime.

%files -n rime-schema-cangjie
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/cangjie*.yaml

#------------------------------------------------------------------

%package -n rime-schema-essay
Summary:        essay input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-essay
essay input schema for rime.

%files -n rime-schema-essay
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/essay.txt
%{_datadir}/rime-data/essay-cantonese.txt

#------------------------------------------------------------------

%package -n rime-schema-luna-pinyin
Summary:        luna-pinyin input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-luna-pinyin
luna-pinyin input schema for rime.

%files -n rime-schema-luna-pinyin
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/luna_pinyin*.yaml
%{_datadir}/rime-data/pinyin.yaml
%{_datadir}/rime-data/luna_quanpin*.yaml

#------------------------------------------------------------------

%package -n rime-schema-prelude
Summary:        prelude input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-prelude
prelude input schema for rime.

%files -n rime-schema-prelude
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/default.yaml
%{_datadir}/rime-data/key_bindings.yaml
%{_datadir}/rime-data/punctuation.yaml
%{_datadir}/rime-data/symbols.yaml

#------------------------------------------------------------------

%package -n rime-schema-stroke
Summary:        stroke input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-stroke
stroke input schema for rime.

%files -n rime-schema-stroke
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/stroke*.yaml

#------------------------------------------------------------------

%package -n rime-schema-terra-pinyin
Summary:        terra-pinyin input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-terra-pinyin
terra-pinyin input schema for rime.

%files -n rime-schema-terra-pinyin
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/terra_pinyin*.yaml

#------------------------------------------------------------------

%package -n rime-schema-array
Summary:        array input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-array
array input schema for rime.

%files -n rime-schema-array
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/array*.yaml

#------------------------------------------------------------------

%package -n rime-schema-cantonese
Summary:        cantonese input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-cantonese
cantonese(jyutping) input schema for rime.

%files -n rime-schema-cantonese
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/jyut6ping3*.yaml
%{_datadir}/rime-data/symbols_cantonese.yaml
%{_datadir}/rime-data/opencc/HKVariantsFull.txt
%{_datadir}/rime-data/opencc/t2hkf.json

#------------------------------------------------------------------

%package -n rime-schema-jyutping
Summary:        jyutping input schema for rime
Group:          System/Internationalization
BuildArch:      noarch
Provides:       rime-schema-jyutping

%description -n rime-schema-jyutping
jyutping input schema for rime.

%files -n rime-schema-jyutping
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/hkcantonese*.yaml
%{_datadir}/rime-data/jyutping*.yaml
%{_datadir}/rime-data/yale*.yaml

#------------------------------------------------------------------

%package -n rime-schema-combo-pinyin
Summary:        combo-pinyin input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-combo-pinyin
combo-pinyin input schema for rime.

%files -n rime-schema-combo-pinyin
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/combo_pinyin*.yaml

#------------------------------------------------------------------

%package -n rime-schema-double-pinyin
Summary:        double-pinyin input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-double-pinyin
double-pinyin input schema for rime.

%files -n rime-schema-double-pinyin
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/double_pinyin*.yaml

#------------------------------------------------------------------

%package -n rime-schema-emoji
Summary:        emoji input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-emoji
emoji input schema for rime.

%files -n rime-schema-emoji
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/emoji*.yaml
%{_datadir}/rime-data/opencc/emoji.json
%{_datadir}/rime-data/opencc/emoji*.txt

#------------------------------------------------------------------

%package -n rime-schema-ipa
Summary:        ipa input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-ipa
ipa input schema for rime.

%files -n rime-schema-ipa
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/ipa*.yaml

#------------------------------------------------------------------

%package -n rime-schema-middle-chinese
Summary:        middle-chinese input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-middle-chinese
middle-chinese input schema for rime.

%files -n rime-schema-middle-chinese
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/sampheng*.yaml
%{_datadir}/rime-data/zyenpheng*.yaml

#------------------------------------------------------------------

%package -n rime-schema-pinyin-simp
Summary:        pinyin-simp input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-pinyin-simp
pinyin-simp input schema for rime.

%files -n rime-schema-pinyin-simp
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/pinyin_simp*.yaml

#------------------------------------------------------------------

%package -n rime-schema-quick
Summary:        quick input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-quick
quick input schema for rime.

%files -n rime-schema-quick
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/quick*.yaml

#------------------------------------------------------------------

%package -n rime-schema-scj
Summary:        scj input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-scj
scj input schema for rime.

%files -n rime-schema-scj
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/scj*.yaml

#------------------------------------------------------------------

%package -n rime-schema-soutzoe
Summary:        soutzoe input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-soutzoe
soutzoe input schema for rime.

%files -n rime-schema-soutzoe
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/soutzoe*.yaml

#------------------------------------------------------------------

%package -n rime-schema-stenotype
Summary:        stenotype input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-stenotype
stenotype input schema for rime.

%files -n rime-schema-stenotype
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/stenotype*.yaml

#------------------------------------------------------------------

%package -n rime-schema-wubi
Summary:        wubi input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-wubi
wubi input schema for rime.

%files -n rime-schema-wubi
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/wubi*.yaml

#------------------------------------------------------------------

%package -n rime-schema-wugniu
Summary:        wugniu input schema for rime
Group:          System/Internationalization
BuildArch:      noarch

%description -n rime-schema-wugniu
wugniu input schema for rime.

%files -n rime-schema-wugniu
%dir %{_datadir}/rime-data
%{_datadir}/rime-data/wugniu*.yaml

#------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{name}-%{version}

mkdir -p %{_builddir}/%{name}-%{name}-%{version}/plum
tar -xf %{SOURCE1} -C %{_builddir}
cp -r %{_builddir}/plum-%{plum_commit}/* %{_builddir}/%{name}-%{name}-%{version}/plum/
rm -rf %{_builddir}/plum-%{plum_commit}

tar -xf %{SOURCE2} -C %{_builddir}
mkdir -p %{_builddir}/%{name}-%{name}-%{version}/plum/package
cp -r %{_builddir}/package/* %{_builddir}/%{name}-%{name}-%{version}/plum/package/
rm -rf %{_builddir}/package

%build
export no_update=1
%make_build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 509 |21cr|briskola-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clone of the Italian card game Briscola
Name:		briskola
Version:	1.0.0
Release:	5
License:	GPLv3+
Group:		Games/Cards
Url:		http://www.briskola.net
Source0:	http://www.briskola.net/files/briskola-%{version}.tar.gz
Patch0:		briskola.desktop.patch
BuildRequires:	cmake
BuildRequires:	qt4-devel

%description
BrisKola is a clone of the Italian card game Briscola. This is a classic
Italian game, surely one of the most popular, thanks to the simplicity of
the rules and the modest skills required to players.

%files
%doc README
%{_bindir}/briskola
%{_datadir}/applications/briskola.desktop
%{_datadir}/briskola/background/*.png
%{_datadir}/briskola/cards/*.png
%{_datadir}/briskola/decks/*.png
%{_datadir}/briskola/icons/*.png
%{_datadir}/briskola/misc/*.png
%{_datadir}/briskola/text/*.png
%{_datadir}/pixmaps/*.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 510 |21cr|briss-0.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Crop PDF files
Name:		briss
Version:	0.9
Release:	3
License:	GPLv3
Group:		Publishing
Url:		http://briss.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/briss/release%200.9/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Source2:	%{name}.png
Requires:	java-1.8.0-openjdk
BuildArch:	noarch

%description
A simple user interface lets you define exactly the crop-region
by fitting a rectangle on the visually overlaid pages.

%files
%doc CHANGELOG.txt LICENSE.txt README.txt
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/
%{_datadir}/icons/hicolor/32x32/apps

#------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/

cp *jar %{buildroot}%{_datadir}/%{name}

# Launcher
echo "#!/bin/sh" > %{buildroot}%{_bindir}/%{name}
echo 'java -jar /usr/share/briss/briss.jar "$@"' >> %{buildroot}%{_bindir}/%{name}
chmod a+x %{buildroot}%{_bindir}/%{name}

install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 511 |21cr|bristol-0.60.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname %{name} %{major}

Name:		bristol
Summary:	Synthesizer Emulator Pack
Version:	0.60.11
Release:	7
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/bristol/
Source0:	https://sourceforge.net/projects/bristol/files/bristol/%{version}/%{name}-%{version}.tar.gz
Patch0:		bristol-0.60.11-workaround-missing-iatomic-header.patch
Patch1:		bristol-0.60-fix-gcc_10.patch
BuildRequires:	pkgconfig(jack) >= 0.109.0
BuildRequires:	pkgconfig(liblo) >= 0.22.0
BuildRequires:	pkgconfig(alsa) >= 1.0.0
BuildRequires:	pkgconfig(libpulse)
# Needed for GUI and main library
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	x11-proto-devel
Requires:	%{libname} >= %{version}
# FIXME: enable pulseaudio support
Requires:	jack
# sse extension not supported on aarch64 and other
ExclusiveArch:	%{ix86} %{x86_64}
%rename		%{name}-aks
%rename		%{name}-poly
%rename		%{name}-mixer
%rename		%{name}-hammond

%description
Bristol emulates several vintage synthesizers, mainly keyboards: Various Moog,
Sequencial Circuits, Oberheim, Arp, Rhodes, Yamaha, Roland, Hammond, Korg,
and Vox algorithms are provided. Each has its own graphical interface.
A central interface is provided by Brighton.

%files
%doc AUTHORS COPYING* NEWS README
%docdir %{_mandir}/man1/*
%{_mandir}/man1/*
%{_bindir}/brighton
%{_bindir}/%{name}
%{_bindir}/bristoljackstats
%{_bindir}/startBristol
%{_datadir}/pixmaps/bicon.svg
%{_datadir}/%{name}
%{_datadir}/desktop-directories/rosa-%{name}.directory
%config(noreplace) /etc/xdg/menus/applications-merged/%{name}.menu

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries used by bristol
Group:		System/Libraries
Requires:	jack
Provides:	lib%{name} = %{EVRD}

%description -n %{libname}
Dynamic libraries required by the Bristol vintage keyboard emulation package.

%files -n %{libname}
%doc COPYING*
%{_libdir}/*.so.%{major}
%{_libdir}/*.so.%{major}.*

#-------------------------------------------------------------------------------

%package arp2600
Summary:	Bristol - arp 2600
Group:		Sound
Requires:	%{name}

%description arp2600
* arp 2600.

%files arp2600
%{_datadir}/applications/rosa-bristol-arp2600.desktop

#-------------------------------------------------------------------------------

%package axxe
Summary:	Bristol - arp axxe
Group:		Sound
Requires:	%{name}

%description axxe
* axxe - arp axxe.

%files axxe
%{_datadir}/applications/rosa-bristol-axxe.desktop

#-------------------------------------------------------------------------------

%package b3
Summary:	Bristol - hammond B3
Group:		Sound
Requires:	%{name}

%description b3
* b3 - hammond B3.

%files b3
%{_datadir}/applications/rosa-bristol-b3.desktop

#-------------------------------------------------------------------------------

%package bitone
Summary:	Bristol - crumar bit 01
Group:		Sound
Requires:	%{name}

%description bitone
* bitone - crumar bit 01.

%files bitone
%{_datadir}/applications/rosa-bristol-bitone.desktop

#-------------------------------------------------------------------------------

%package bit100
Summary:	Bristol - crumar bit + mods
Group:		Sound
Requires:	%{name}

%description bit100
* bit100 - crumar bit + mods.

%files bit100
%{_datadir}/applications/rosa-bristol-bit100.desktop

#-------------------------------------------------------------------------------

%package bit99
Summary:	Bristol - crumar bit 99
Group:		Sound
Requires:	%{name}

%description bit99
* bit99 - crumar bit 99.

%files bit99
%{_datadir}/applications/rosa-bristol-bit99.desktop

#-------------------------------------------------------------------------------

%package stratus
Summary:	Bristol - crumar stratus synth/organ combo
Group:		Sound
Requires:	%{name}

%description stratus
* stratus - crumar stratus synth/organ combo.

%files stratus
%{_datadir}/applications/rosa-bristol-stratus.desktop

#-------------------------------------------------------------------------------

%package trilogy
Summary:	Bristol - crumar trilogy synth/organ/string combo
Group:		Sound
Requires:	%{name}

%description trilogy
* trilogy - crumar trilogy synth/organ/string combo.

%files trilogy
%{_datadir}/applications/rosa-bristol-trilogy.desktop

#-------------------------------------------------------------------------------

%package dx
Summary:	Bristol - yamaha DX-7
Group:		Sound
Requires:	%{name}

%description dx
* dx - yamaha DX-7.

%files dx
%{_datadir}/applications/rosa-bristol-dx.desktop

#-------------------------------------------------------------------------------

%package explorer
Summary:	Bristol - moog voyager
Group:		Sound
Requires:	%{name}

%description explorer
* explorer - moog voyager.

%files explorer
%{_datadir}/applications/rosa-bristol-explorer.desktop

#-------------------------------------------------------------------------------

%package voyager
Summary:	Bristol - moog voyager electric blue
Group:		Sound
Requires:	%{name}

%description voyager
* voyager - moog voyager electric blue.

%files voyager
%{_datadir}/applications/rosa-bristol-voyager.desktop

#-------------------------------------------------------------------------------

%package sonic6
Summary:	Bristol - moog sonic 6
Group:		Sound
Requires:	%{name}

%description sonic6
* sonic6 - moog sonic 6.

%files sonic6
%{_datadir}/applications/rosa-bristol-sonic6.desktop

#-------------------------------------------------------------------------------

%package mg1
Summary:	Bristol - moog/realistic mg-1 concertmate
Group:		Sound
Requires:	%{name}

%description mg1
* mg1 - moog/realistic mg-1 concertmate.

%files mg1
%{_datadir}/applications/rosa-bristol-mg1.desktop

#-------------------------------------------------------------------------------

%package juno
Summary:	Bristol - roland juno-60
Group:		Sound
Requires:	%{name}

%description juno
* juno - roland juno-60.

%files juno
%{_datadir}/applications/rosa-bristol-juno.desktop

#-------------------------------------------------------------------------------

%package jupiter
Summary:	Bristol - roland jupiter-8
Group:		Sound
Requires:	%{name}

%description jupiter
* jupiter - roland jupiter-8.

%files jupiter
%{_datadir}/applications/rosa-bristol-jupiter.desktop

#-------------------------------------------------------------------------------

%package bme700
Summary:	Bristol - Baumann bme-700
Group:		Sound
Requires:	%{name}

%description bme700
* bme700 - Baumann bme-700.

%files bme700
%{_datadir}/applications/rosa-bristol-bme700.desktop

#-------------------------------------------------------------------------------

%package bm
Summary:	Bristol - bristol bassmaker sequencer
Group:		Sound
Requires:	%{name}

%description bm
* bm - bristol bassmaker sequencer.

%files bm
%{_datadir}/applications/rosa-bristol-bm.desktop

#-------------------------------------------------------------------------------

%package memory
Summary:	Bristol - moog memory
Group:		Sound
Requires:	%{name}

%description memory
* memory - moog memory.

%files memory
%{_datadir}/applications/rosa-bristol-memory.desktop

#-------------------------------------------------------------------------------

%package mini
Summary:	Bristol - moog mini
Group:		Sound
Requires:	%{name}

%description mini
* mini - moog mini.

%files mini
%{_datadir}/applications/rosa-bristol-mini.desktop

#-------------------------------------------------------------------------------

%package mono
Summary:	Bristol - korg monopoly
Group:		Sound
Requires:	%{name}

%description mono
* mono - korg monopoly.

%files mono
%{_datadir}/applications/rosa-bristol-mono.desktop

#-------------------------------------------------------------------------------

%package obx
Summary:	Bristol - oberheim OB-X
Group:		Sound
Requires:	%{name}

%description obx
* obx - oberheim OB-X.

%files obx
%{_datadir}/applications/rosa-bristol-obx.desktop

#-------------------------------------------------------------------------------

%package obxa
Summary:	Bristol - oberheim OB-X-A
Group:		Sound
Requires:	%{name}

%description obxa
* obxa - oberheim OB-X-A.

%files obxa
%{_datadir}/applications/rosa-bristol-obxa.desktop

#-------------------------------------------------------------------------------

%package odyssey
Summary:	Bristol - arp odyssey
Group:		Sound
Requires:	%{name}

%description odyssey
* odyssey - arp odyssey.

%files odyssey
%{_datadir}/applications/rosa-bristol-odyssey.desktop

#-------------------------------------------------------------------------------

%package polysix
Summary:	Bristol - korg polysix
Group:		Sound
Requires:	%{name}

%description polysix
* polysix - korg polysix.

%files polysix
%{_datadir}/applications/rosa-bristol-polysix.desktop

#-------------------------------------------------------------------------------

%package poly800
Summary:	Bristol - korg poly-800
Group:		Sound
Requires:	%{name}

%description poly800
* poly800 - korg poly-800.

%files poly800
%{_datadir}/applications/rosa-bristol-poly800.desktop

#-------------------------------------------------------------------------------

%package monopoly
Summary:	Bristol - korg mono/poly
Group:		Sound
Requires:	%{name}

%description monopoly
* poly - korg mono/poly.

%files monopoly
%{_datadir}/applications/rosa-bristol-monopoly.desktop

#-------------------------------------------------------------------------------

%package prophet
Summary:	Bristol- sequential circuits prophet-5
Group:		Sound
Requires:	%{name}

%description prophet
* prophet - sequential circuits prophet-5.

%files prophet
%{_datadir}/applications/rosa-bristol-prophet.desktop

#-------------------------------------------------------------------------------

%package pro10
Summary:	Bristol- sequential circuits prophet-10
Group:		Sound
Requires:	%{name}

%description pro10
* pro10 - sequential circuits prophet-10.

%files pro10
%{_datadir}/applications/rosa-bristol-pro10.desktop

#-------------------------------------------------------------------------------

%package pro52
Summary:	Bristol- sequential circuits prophet-5/fx
Group:		Sound
Requires:	%{name}

%description pro52
* pro52 - sequential circuits prophet-5 with chorus.

%files pro52
%{_datadir}/applications/rosa-bristol-pro52.desktop

#-------------------------------------------------------------------------------

%package pro1
Summary:	Bristol- sequential circuits pro-one
Group:		Sound
Requires:	%{name}

%description pro1
* pro1 - sequential circuits pro-one.

%files pro1
%{_datadir}/applications/rosa-bristol-pro1.desktop

#-------------------------------------------------------------------------------

%package roadrunner
Summary:	Bristol- roadrunner electric piano
Group:		Sound
Requires:	%{name}

%description roadrunner
* roadrunner   - roadrunner electric piano.

%files roadrunner
%{_datadir}/applications/rosa-bristol-roadrunner.desktop

#-------------------------------------------------------------------------------

%package rhodes
Summary:	Bristol- fender rhodes mark-I stage 73
Group:		Sound
Requires:	%{name}

%description rhodes
* rhodes - fender rhodes mark-I stage 73.

%files rhodes
%{_datadir}/applications/rosa-bristol-rhodes.desktop

#-------------------------------------------------------------------------------

%package rhodesbass
Summary:	Bristol- fender rhodes bass piano
Group:		Sound
Requires:	%{name}

%description rhodesbass
* rhodesbass - fender rhodes bass piano.

%files rhodesbass
%{_datadir}/applications/rosa-bristol-rhodesbass.desktop

#-------------------------------------------------------------------------------

%package solina
Summary:	Bristol- Solina string machine
Group:		Sound
Requires:	%{name}

%description solina
* solina - solina string machine.

%files solina
%{_datadir}/applications/rosa-bristol-solina.desktop

#-------------------------------------------------------------------------------

%package sidney
Summary:	Bristol- Comodore-64 SID chip synth
Group:		Sound
Requires:	%{name}

%description sidney
* sidney - Comodore-64 SID chip synth.

%files sidney
%{_datadir}/applications/rosa-bristol-sidney.desktop

#-------------------------------------------------------------------------------

%package voxM2
Summary:	Bristol- vox continental super/300/II
Group:		Sound
Requires:	%{name}

%description voxM2
* vox - vox continental super/300/II.

%files voxM2
%{_datadir}/applications/rosa-bristol-voxM2.desktop

#-------------------------------------------------------------------------------

%package vox
Summary:	Bristol- vox continental
Group:		Sound
Requires:	%{name}

%description vox
* vox - vox continental.

%files vox
%{_datadir}/applications/rosa-bristol-vox.desktop

#-------------------------------------------------------------------------------


%prep
%autosetup -p1

# Fix perms
chmod  a-x bitmaps/*/*
chmod  a-x bitmaps/bicon.svg bitmaps/icon_bitmap.xbm
chmod  a-x COPYING AUTHORS NEWS

perl -pi -e 's/-march=core2//g' bristol/Makefile.*
perl -pi -e 's/-march=core2//g' libbristol/Makefile.*


%build
autoreconf -vfi
# FIXME: enable pulseaudio support, now failing
# libtool: error: require no space between '-L' and '-lbristolpulse'
%configure	CONFIG_SHELL=/bin/bash \
		--disable-version-check \
		--enable-static=no
%make


%install
make BRISTOL_DIR=%{_datadir}/bristol DESTDIR=%{buildroot} install

# Drop unused stuff (no devel package)
rm -f %{buildroot}%{_libdir}/*.la %{buildroot}%{_libdir}/*.so

# Prepare menus...
mkdir -p %{buildroot}/etc/xdg/menus/applications-merged
cat > %{buildroot}/etc/xdg/menus/applications-merged/%{name}.menu << EOF
<!DOCTYPE Menu PUBLIC "-//freedesktop//DTD Menu 1.0//EN"
"http://www.freedesktop.org/standards/menu-spec/menu-1.0.dtd">
<Menu>
    <Name>Applications</Name>
    <Menu>
        <Name>SoundVideo</Name>
        <Menu>
            <Name>Bristol</Name>
                <Directory>rosa-%{name}.directory</Directory>
                <Include>
                    <Category>X-Bristol</Category>
                </Include>
        </Menu>
    </Menu>
</Menu>
EOF

mkdir -p %{buildroot}%{_datadir}/desktop-directories
cat > %{buildroot}%{_datadir}/desktop-directories/rosa-%{name}.directory << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Bristol
Icon=bicon.svg
Type=Directory
EOF

# ... and .desktop files
mkdir -p %{buildroot}%{_datadir}/applications/
for synth in    arp2600 axxe b3 dx explorer voyager mg1 juno jupiter \
                trilogy stratus memory mini sonic6\
                bitone bit99 bit100 sidney bm bme700 \
                mono obx obxa odyssey poly800 monopoly \
                polysix prophet pro10 pro52 pro1 roadrunner rhodes rhodesbass \
                solina vox voxM2; do

cat > %{buildroot}%{_datadir}/applications/rosa-bristol-${synth}.desktop << EOF
[Desktop Entry]
Name=Bristol ${synth}
Comment=Emulator for diverse keyboard instruments
Icon=bicon.svg
Type=Application
Exec=startBristol -jack -autoconn -priority 70 -${synth}
Terminal=false
Encoding=UTF-8
Categories=X-Bristol;
EOF

done

# Provide icons
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp bitmaps/bicon.svg %{buildroot}%{_datadir}/pixmaps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 512 |21cr|broadvoice-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0

%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	broadvoice - a library for the BroadVoice 16 and 32 speech codecs
Name:		broadvoice
Version:	0.1.0
Release:	1
License:	LGPL2.1
Group:		System/Libraries
URL:		http://www.soft-switch.org/broadvoice
Source:		http://www.soft-switch.org/downloads/codecs/broadvoice-0.1.0.tar.gz
BuildRequires:	audiofile-devel
BuildRequires:	doxygen


%description
broadvoice is a library for the BroadVoice 16 and 32 speech codecs.

#---------------------------------------------------------------

%package -n %{libname}
Summary:	broadvoice - a library for the BroadVoice 16 and 32 speech codecs
Group:		System/Libraries

%description -n %{libname}
broadvoice is a library for the BroadVoice 16 and 32 speech codecs.

%files -n %{libname}
%{_libdir}/libbroadvoice.so.%{major}*

#---------------------------------------------------------------
%package -n %{devname}
Summary:	BroadVoice development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libbroadvoice development files.

%files -n %{devname}
%doc ChangeLog AUTHORS COPYING NEWS README 
%doc doc/api
%{_includedir}/broadvoice.h
%{_includedir}/broadvoice
%{_libdir}/libbroadvoice.so
%{_libdir}/pkgconfig/broadvoice.pc

#---------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh
%configure --enable-doc
%make

%install
%make_install
rm %{buildroot}%{_libdir}/libbroadvoice.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 513 |21cr|brutalchess-0.5.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A 3D chess game inspired by Battle Chess
Name:		brutalchess
Version:	0.5.2
Release:	11
License:	GPLv2+
Group:		Games/Strategy
Url:		http://brutalchess.sourceforge.net/
Source0:	%{name}-alpha-%{version}-src.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Source14:	%{name}.6
Patch0:		brutalchess-0.5.2-fix-FTBFS.patch
Patch1:		brutalchess-0.5.2-gcc4.3.patch
Patch2:		brutalchess-0.5.2-use-own-fonts.patch
Patch3:		brutalchess-0.5.2-gcc4.7.patch
Patch4:		brutalchess-0.5.2-use-pkg-config.patch
Patch5:		brutalchess-0.5.2-disable-quake-pieces.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
Requires:	fonts-ttf-dejavu

%description
Brutal Chess features full 3D graphics, an advanced particle engine, and
several different levels of intelligent AI, inspired by the once popular
"Battle Chess" released by Interplay circa 1988.

%files
%doc AUTHORS ChangeLog NEWS README COPYING
%{_gamesbindir}/%{name}
%{_libexecdir}/md3view
%{_libexecdir}/objview
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man6/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1


%build
autoreconf -fi
%configure \
	--disable-sdltest \
	--disable-freetypetest \
	--without-x \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

# we use system default font via patch2
rm -fr %{buildroot}%{_gamesdatadir}/%{name}/fonts

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Brutal Chess
Comment=A 3D chess game inspired by Battle Chess
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;StrategyGame;BoardGame;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

#debian manpages
mkdir -p %{buildroot}%{_mandir}/man6
install -m644 %{SOURCE14} %{buildroot}%{_mandir}/man6/


# packaging have to handle the install
rm -fr  %{buildroot}%{_defaultdocdir}/%{name}/INSTALL



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 514 |21cr|bsc-4.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       	bsc
Version:    	4.1.0
Release:    	5
Summary:    	Beesoft Commander file manager
License:    	GPLv2+
Group:      	File tools
URL:        	http://www.beesoft.org/index.php?id=bsc
Source:     	http://www.beesoft.org/download/%{name}_%{version}_src.tar.bz2
BuildRequires:	qt4-devel
BuildRequires:	imagemagick

%description
Beesoft Commander is a file manager (like Norton Commander) for Linux. It is
based on Qt4-GUI.

%files
%defattr(-,root,root,-)
%doc *.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png

# ----------------------------------------------------------

%prep
%setup -q -n bsc

%build
%qmake_qt4
%make

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 0755 %{name} %{buildroot}%{_datadir}/%{name}
install -m 0644 help.en.html %{buildroot}%{_datadir}/%{name}
cp -R img %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
ln -s  ../../%{_datadir}/%{name}/%{name} %{name}
popd 

# menu entry

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Beesoft Commander
Comment=Beesoft Commander file manager
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-System-FileTools;System;FileManager;Qt;
EOF

# icon

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48}/apps
convert -resize 16x16 BeesoftCommander.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
convert -resize 48x48 BeesoftCommander.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install BeesoftCommander.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

%clean
rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 515 |21cr|bsd-games-2.17-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Collection of text-based games
Name:		bsd-games
Version:	2.17
Release:	29
License:	BSD
Group:		Games/Other
Url:		ftp://metalab.unc.edu/pub/Linux/games/
Source0:	ftp://metalab.unc.edu/pub/Linux/games/bsd-games-%{version}.tar.gz
Source1:	config.params
# A collection of patches from Debian.
Patch0:		bsd-games-2.17-debian.patch
# Patches from Fedora Core 1
Patch1:		bsd-games-2.17-ospeed.patch
Patch2:		bsd-games-2.17-getline.patch
Patch3:		bsd-games-2.17-utmpstruct.patch
# Additional new patches
Patch4:		bsd-games-2.17-setresgid.patch
Patch5:		bsd-games-2.17-tetrisgid.patch
Patch6:		bsd-games-2.17-hackgid.patch
Patch7:		bsd-games-2.17-phantasiagid.patch
# Add patches for man page renames
Patch8:		bsd-games-2.17-monop-rename.patch
Patch9:		bsd-games-2.17-banner-rename.patch
Patch10:	bsd-games-2.17-stdio-c++.patch
Patch11:	bsd-games-2.17-nolibtermcap.patch
Patch12:	bsd-games-2.17-tetris-rename.patch
Patch13:	bsd-games-2.17-gcc4.3.patch
Patch14:	bsd-games-2.17-format-security.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	words
BuildRequires:	pkgconfig(ncurses)
Requires(pre,postun):	rpm-helper

%description
Bsd-games includes adventure, arithmetic, atc, backgammon, battlestar,
bcd, caesar, canfield, cfscores, cribbage, go-fish, gomoku,
hunt, mille, mpoly, morse, number, phantasia, pig, pom, ppt, primes,
quiz, rain, random, robots, rot13, sail, snake, snscore, teachgammon,
bsd-fbg, trek, worm, worms and wump.

%files
%{_bindir}/adventure
%{_bindir}/arithmetic
%attr(2755,root,games) %{_bindir}/atc
%{_bindir}/backgammon
%{_bindir}/teachgammon
%attr(2755,root,games) %{_bindir}/battlestar
%{_bindir}/boggle
%{_bindir}/bcd
%{_bindir}/caesar
%{_bindir}/dab
%{_bindir}/rot13
%attr(2755,root,games) %{_bindir}/canfield
%{_bindir}/cfscores
%attr(2755,root,games) %{_bindir}/cribbage
%{_bindir}/go-fish
%{_bindir}/gomoku
%attr(2755,root,gamehack) %{_bindir}/hack
%{_bindir}/hangman
%{_bindir}/bsd-hunt
%{_bindir}/mille
%{_bindir}/mpoly
%{_bindir}/morse
%{_bindir}/number
%attr(2755,root,gamephant) %{_bindir}/phantasia
%{_bindir}/pig
%{_bindir}/pom
%{_bindir}/ppt
%{_bindir}/primes
%{_bindir}/quiz
%{_bindir}/bsd-rain
%{_bindir}/random
%attr(2755,root,games) %{_bindir}/robots
%attr(2755,root,gamesail) %{_bindir}/sail
%attr(2755,root,games) %{_bindir}/snake
%{_bindir}/snscore
%attr(2755,root,games) %{_bindir}/bsd-fbg
%{_bindir}/trek
%{_bindir}/vert-banner
%{_bindir}/worm
%{_bindir}/worms
%{_bindir}/wtf
%{_bindir}/wump
%{_datadir}/%{name}
%{_datadir}/misc/acronyms
%{_datadir}/misc/acronyms.comp
%{_mandir}/man6/*
%{_sbindir}/huntd
%config %attr(664,root,games) %{_var}/games/atc_score
%config %attr(664,root,games) %{_var}/games/battlestar.log
%config %attr(664,root,games) %{_var}/games/cfscores
%config %attr(664,root,games) %{_var}/games/criblog
%dir %attr(0775,root,gamehack) %{_var}/games/hack
%config %attr(664,root,gamehack) %{_var}/games/hack/*
%dir %attr(775,root,gamephant) %{_var}/games/phantasia
%config %attr(664,root,gamephant) %{_var}/games/phantasia/*
%dir %attr(775,root,gamesail) %{_var}/games/sail
%config %attr(644,root,games) %{_var}/games/robots_roll
%config %attr(664,root,gamesail) %{_var}/games/saillog
%config %attr(664,root,games) %{_var}/games/snake.log
%config %attr(664,root,games) %{_var}/games/snakerawscores
%config %attr(664,root,games) %{_var}/games/bsd-fbg.scores
%doc AUTHORS COPYING ChangeLog ChangeLog.0 THANKS YEAR2000 README.hunt trek/USD.doc/trek.me

%pre
%_pre_groupadd gamehack
%_pre_groupadd gamesail
%_pre_groupadd gamephant

%postun
%_postun_groupdel gamehack
%_postun_groupdel gamesail
%_postun_groupdel gamephant

#----------------------------------------------------------------------------

%prep
%setup -q
install -p -m 755 %{SOURCE1} .
%patch0 -p1 -b .debian
%patch1 -p1 -b .ospeed
%patch2 -p1 -b .getline
%patch3 -p1 -b .utmpstruct
%patch4 -p1 -b .setresgid
%patch5 -p1 -b .tetrisgid
%patch6 -p1 -b .hackgid
%patch7 -p1 -b .phantasiagid
%patch8 -p1 -b .monop.rename
%patch9 -p0 -b .banner.rename
%patch10 -p0 -b .cplusplus
%patch11 -p0 -b .nolibtermcap
%patch12 -p0 -b .tetris.rename
%patch13 -p1
%patch14 -p1 -b .format-security

%build
# We include a templatized configuration settings file to set
# reasonable defaults, and to tell the configure script not to
# run in interactive mode.
sed -i.bak -e "s#@DESTDIR@#%{buildroot}#" \
    -e "s#@bindir@#%{_bindir}#" \
    -e "s#@docdir@#%{_docdir}#" \
    -e "s#@sbindir@#%{_sbindir}#" \
    -e "s#@datadir@#%{_datadir}#" \
    -e "s#@libdir@#%{_libdir}#" \
    -e "s#@mandir@#%{_mandir}#" \
    -e "s#@var@#%{_var}#" \
    -e "s#@RPM_OPT_FLAGS@#%{optflags}#" \
    config.params 

# Don't use %%configure.  This configure script wasn't generated by
# autoconf and doesn't obey things like --prefix.
./configure
%make RPM_OPT_FLAGS="%{optflags} -D_GNU_SOURCE"

# Rename one doc file to avoid naming collisions
cp hunt/README README.hunt

%install
make RPM_BUILD_ROOT="%{buildroot}" install

# Change the binary name for monop to prevent a conflict with the mono-devel
# package
mv %{buildroot}/%{_bindir}/monop %{buildroot}/%{_bindir}/mpoly
mv %{buildroot}/%{_mandir}/man6/monop.6.gz %{buildroot}/%{_mandir}/man6/mpoly.6.gz

# Change the binary name for banner to prevent a conflict with a Fedora
# package with the same name
mv %{buildroot}/%{_bindir}/banner %{buildroot}/%{_bindir}/vert-banner
mv %{buildroot}/%{_mandir}/man6/banner.6.gz %{buildroot}/%{_mandir}/man6/vert-banner.6.gz

# Change the binary name for tetris to prevent a conflict with the mono-devel
# package
mv %{buildroot}/%{_bindir}/tetris-bsd %{buildroot}/%{_bindir}/bsd-fbg
mv %{buildroot}/%{_mandir}/man6/tetris-bsd.6.gz %{buildroot}/%{_mandir}/man6/bsd-fbg.6.gz

# Change the binary name for rain to prevent a conflict with mesa-demos package
mv %{buildroot}/%{_bindir}/rain %{buildroot}/%{_bindir}/bsd-rain
mv %{buildroot}/%{_mandir}/man6/rain.6.gz %{buildroot}/%{_mandir}/man6/bsd-rain.6.gz

# Change the binary name for hunt to prevent a conflict with hunt package
mv %{buildroot}/%{_bindir}/hunt %{buildroot}/%{_bindir}/bsd-hunt
mv %{buildroot}/%{_mandir}/man6/hunt.6.gz %{buildroot}/%{_mandir}/man6/bsd-hunt.6.gz

# Remove this doc file.  We're copying it to a different location for Fedora.
rm -f %{buildroot}/%{_docdir}/trek.me

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 516 |21cr|bsdiff-4.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Binary diff/patch utility
Name:		bsdiff
Version:	4.3
Release:	7
Group:		File tools
License:	BSD
URL:		http://www.daemonology.net/bsdiff/
Source:		http://www.daemonology.net/bsdiff/%{name}-%{version}.tar.gz
Patch0:		bsdiff-4.3-CVE-2014-9862.patch
BuildRequires:	bzip2-devel

%description
bsdiff and bspatch are tools for building and applying patches to
binary files. By using suffix sorting (specifically, Larsson and
Sadakane's qsufsort) and taking advantage of how executable files
change, bsdiff routinely produces binary patches 50-80%% smaller
than those produced by Xdelta, and 15%% smaller than those produced
by .RTPatch.

These programs were originally named bdiff and bpatch, but the large
number of other programs using those names lead to confusion; I'm
not sure if the "bs" in refers to "binary software" (because bsdiff
produces exceptionally small patches for executable files) or
"bytewise subtraction" (which is the key to how well it performs).
Feel free to offer other suggestions.

%prep
%setup -q
%patch0 -p1

%build
%__cc %{optflags} -lbz2 bsdiff.c -o bsdiff
%__cc %{optflags} -lbz2 bspatch.c -o bspatch

%install

install -D -m755 bsdiff %{buildroot}%{_bindir}/bsdiff
install -D -m755 bspatch %{buildroot}%{_bindir}/bspatch

install -D -m644 bsdiff.1 %{buildroot}%{_mandir}/man1/bsdiff.1
install -D -m644 bspatch.1 %{buildroot}%{_mandir}/man1/bspatch.1

%clean

%files
%{_bindir}/bsdiff
%{_bindir}/bspatch
%{_mandir}/man1/bsdiff.1*
%{_mandir}/man1/bspatch.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 517 |21cr|bspwm-0.9.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tiling window manager based on binary space partitioning
Name:		bspwm
Version:	0.9.10
Release:	2
License:	BSD
Group:		System/X11
Url:		https://github.com/baskerville/bspwm
Source0:	https://github.com/baskerville/bspwm/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/baskerville/bspwm/issues/1303#issuecomment-871059432
Patch0:		focus-raised-windows.patch
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcb-ewmh)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xinerama)

%description
bspwm is a tiling window manager that represents windows as the leaves
of a full binary tree. It only responds to X events, and the messages
it receives on a dedicated socket.
bspc is a program that writes messages on bspwm's socket.
bspwm doesn't handle any keyboard or pointer inputs: a third party program
(e.g. sxhkd) is needed in order to translate keyboard and pointer events
to bspc invocations.

%files
%license LICENSE
%doc %{_docdir}/%{name}/*.md
%doc %{_docdir}/%{name}/examples/*
%{_bindir}/bspc
%{_bindir}/%{name}
%{_mandir}/man1/bspc.1*
%{_mandir}/man1/%{name}.1*
%{_datadir}/xsessions/%{name}.desktop
%{_datadir}/bash-completion/completions/bspc
%{_datadir}/zsh/site-functions/_bspc
%{_datadir}/fish/vendor_completions.d/bspc.fish

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
%make

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 518 |21cr|bstone-1.2.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A source port of Blake Stone: Aliens of Gold and Blake Stone: Planet Strike
Name:		bstone
Version:	1.2.12
Release:	1
License:	GPLv2+
Group:		Games/Shooter
Url:		https://github.com/bibendovsky/bstone
Source0:	https://github.com/bibendovsky/bstone/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		bstone-1.2.12-fix-header.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(sdl2)

%description
A source port of Blake Stone: Aliens of Gold and Blake Stone: Planet Strike.
Please note that this source port requires original game data.
Run it as: bstone --data_dir path_to_data.

%files
%doc CHANGELOG.md README.md TODO.md
%license LICENSE
%{_gamesbindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
# Using "makeinstall_std -C build" put the executable in the wrong place
mkdir -p %{buildroot}%{_gamesbindir}
install -m 0755 build/src/%{name} %{buildroot}%{_gamesbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 519 |21cr|btanks-0.9.8083-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		btanks
Version:	0.9.8083
Release:	7
Summary:	Funny battle on your desk
Group:		Games/Arcade
# Libraries clunk, mrt and sdlx are under LGPLv2+, all other sources are GPLv2+
License:	GPLv2+ with exceptions and LGPLv2+
URL:		http://btanks.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
# Remove RPath from binaries
Patch0:		%{name}-remove-rpath.patch
# Disable video previews of map levels (we don't distribute video anyway)
Patch1:		%{name}-disable-smpeg.patch
# Avoid problem with lib checks using c++ instead of c.
Patch2:		%{name}-libcheck.patch
# Don't override Fedora's options
Patch3:		%{name}-excessopts.patch
# gcc is now more picky about casting
Patch4:		%{name}-gcc.patch
# bted doesn't explicitly link to clunl
Patch5:		%{name}-dso.patch
Patch6:		%{name}-gcc4.7.patch
# fix build against lua 5.2
Patch7:		%{name}-0.9.8083-lua-5.2.patch
# fix build against scons >= 3.0.3
Patch8:		%{name}-scons-3.0.3.patch
# fix build with py3 scons
Patch9:		btanks-py3-scons.patch

# Disabled video previews of map levels
BuildRequires:	smpeg-devel
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	scons
BuildRequires:	zip
BuildRequires:	dos2unix

Requires:	%{name}-data = %{EVRD}
Requires:	%{name}-plugins = %{EVRD}

%description
Battle Tanks is a funny battle on your desk, where you can choose one of three
vehicles and eliminate your enemy using the whole arsenal of weapons. has
original cartoon-like graphics and cool music, it is fun and dynamic, it has
several network modes for deathmatch and cooperative.
What else is needed to have fun with your friends?

And all is packed and ready for you in Battle Tanks.

%files
%doc README-{editor,en,fr,ru}.txt ChangeLog *.url LICENSE LICENSE.EXCEPTION
%{_gamesbindir}/%{name}
%{_gamesbindir}/bted
%{_iconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/bted.desktop

#----------------------------------------------------------------------------

%package	data
Summary:	Data files for %{name}
Group:		Games/Arcade
Requires:	%{name} >= %{EVRD}
BuildArch:	noarch

%description	data
The %{name}-data package contains data files that are needed for
running %{name}.

%files data
%doc LICENSE LICENSE.EXCEPTION
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/data

# rpmlint cry about non-versioned-file-in-library-package
#----------------------------------------------------------------------------
%package	plugins

Summary:	Plugin files for %{name}
Group:		Games/Arcade

%description	plugins
The %{name}-plugins package contains data files that are needed for
running %{name}.

%files  plugins
%doc LICENSE LICENSE.EXCEPTION
%{_libdir}/*.so
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -b .remove-rpath
%patch1 -b .disable-smpeg
%patch2 -b .libcheck
%patch3 -b .excessopts
%patch4 -b .gcc
%patch5 -b .dso
%patch6 -p1 -b .gcc47
%patch7 -p1 -b .lua-52
%patch8 -p1 -b .scons
%patch9 -p1 -b .py3

dos2unix -k *.txt ChangeLog *.url LICENSE LICENSE.EXCEPTION

iconv -f latin1 -t utf-8 LICENSE.EXCEPTION > LICENSE.EXCEPTION.new
touch -r LICENSE.EXCEPTION{,.new}
mv -f LICENSE.EXCEPTION{.new,}

iconv -f latin1 -t utf-8 README-fr.txt > README-fr.txt.new
touch -r README-fr.txt{,.new}
mv -f README-fr.txt{.new,}

iconv -f cp1251 -t utf-8 README-ru.txt > README-ru.txt.new
touch -r README-ru.txt{,.new}
mv -f README-ru.txt{.new,}

# fix build with glibc >= 2.27
sed -i -e 's,pow10f,exp10f,g' clunk/source.cpp

%build
# flags need to be passed via environment or they get treated as a single
# word rather than as multiple arguments. CXXFLAGS is only needed if
# there are c++ only flags that need to get added.
%set_build_flags
%scons \
        prefix=%{_prefix} \
        lib_dir=%{_libdir} \
        plugins_dir=%{_libdir}/%{name} \
        resources_dir=%{_gamesdatadir}/%{name} \
        mode=release \
        enable_lua=true

%install
# binaries
install -dm 755 %{buildroot}%{_gamesbindir}
install -m 755 build/release/engine/%{name} %{buildroot}%{_gamesbindir}
install -m 755 build/release/editor/bted %{buildroot}%{_gamesbindir}

# libs
install -dm 755 %{buildroot}%{_libdir}/%{name}
install -m 755 build/release/engine/libbtanks_engine.so %{buildroot}%{_libdir}
install -m 755 build/release/mrt/libmrt.so %{buildroot}%{_libdir}
install -m 755 build/release/sdlx/libsdlx.so %{buildroot}%{_libdir}
install -m 755 build/release/clunk/libclunk.so %{buildroot}%{_libdir}

# plugins
install -m 755 build/release/objects/libbt_objects.so %{buildroot}%{_libdir}/%{name}

# data-files (see pack-resources.sh)
install -dm 755 %{buildroot}%{_gamesdatadir}/%{name}
install -dm 755 %{buildroot}%{_gamesdatadir}/%{name}/data
pushd data
find . \( -wholename \*.svn\* -or -name \*.wav \) -exec rm -rf {} \;
cp -pR * %{buildroot}%{_gamesdatadir}/%{name}/data
#zip -q -0 -r ../resources.dat * -x \*.svn\* -x \*.wav
popd

# icon
install -dm 755 %{buildroot}%{_datadir}/pixmaps
install -D data/tiles/icon.png %{buildroot}%{_iconsdir}/%{name}.png

# menu-entries
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Battle Tanks
Comment=Battle Tanks is a funny battle on your desk
Exec=%{_gamesbindir}/%{name}
Icon=%{gname}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/bted.desktop << EOF
[Desktop Entry]
Name=Battle Tanks map editor
Comment=Battle Tanks map editor
Exec=%{_gamesbindir}/bted
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 520 |21cr|btas-1.0.0-0.git43aea3.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 43aea374297acbb4e6f5a4b218da5acb73b93dd4
%define commit_short %(echo %{commit} | head -c6)

%global __requires_exclude cmake()

Summary:	Basic Tensor Algebra Subroutines
Name:		btas
Version:	1.0.0
Release:	0.git%{commit_short}.3
License:	GPLv3
Group:		System/Libraries
Url:		https://github.com/ValeevGroup/BTAS
Source0:	https://github.com/ValeevGroup/BTAS/archive/%{commit}.zip??/%{name}-%{commit}.zip
# from https://github.com/ValeevGroup/kit-cmake
Source1:	kit-cmake.tar.gz
Patch0:		btas-no-download.patch
Patch1:		btas-linalgpp.patch
BuildRequires:	boost-devel
BuildRequires:	blaspp-devel
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	lapackpp-devel
BuildArch:	noarch
Requires:	cmake
Provides:	%{name}-devel = %{EVRD}

%description
TiledArray is a scalable, block-sparse tensor framework for rapid composition 
of high-performance tensor arithmetic, appearing for example in many-body 
quantum mechanics. It allows users to compose tensor expressions of arbitrary 
complexity in native C++ code that closely resembles the standard mathematical 
notation. The framework is designed to scale from a single multicore computer 
to a massive distributed-memory multiprocessor.

%files
%{_includedir}/*
%{_libdir}/cmake/*

#------------------------------------------------------------------

%prep
%setup -q -n BTAS-%{commit} -a1

cp -r kit-cmake/* cmake/

sed -i 's|lib/blaspp|%{_lib}/cmake/blaspp|' cmake/modules/FindOrFetchLinalgPP.cmake

%apply_patches

%build
%cmake \
	-DBTAS_INSTALL_LIBDIR=%{_libdir} \
	-DBTAS_INSTALL_CMAKEDIR=%{_libdir}/cmake/BTAS \
	-DENABLE_WFN91_LINALG_DISCOVERY_KIT=OFF

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 521 |21cr|btop-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Modern and colorful command line resource monitor that shows usage and stats
Name:		btop
Version:	1.3.2
Release:	1
License:	Apache License
Group:		Monitoring
Url:		https://github.com/aristocratos/btop
Source:		https://github.com/aristocratos/btop/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	make

%description
Resource monitor that shows usage and stats for processor, memory, disks,
network and processes.
C++ version and continuation of bashtop and bpytop.

%files
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/%{name}
%{_datadir}/applications/btop.desktop
%{_datadir}/btop
%{_datadir}/icons/hicolor/*/apps/btop.*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
# to build debuginfo
export CXXFLAGS="${CXXFLAGS} -g"
export LDFLAGS="$LDFLAGS -ldl"
%make_build

%install
%make_install PREFIX=%{_prefix}
rm -f %{buildroot}%{_datadir}/btop/README.md
desktop-file-validate %{buildroot}%{_datadir}/applications/btop.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 522 |21cr|btparser-0.19-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 2
%define libname %mklibname btparser %{major}
%define devname %mklibname %{name} -d

Summary:	Parser and analyzer for backtraces produced by GDB
Name:		btparser
Version:	0.19
Release:	8
License:	GPLv2+
Group:		Development/Other
Url:		http://fedorahosted.org/btparser
Source0:	https://fedorahosted.org/released/btparser/%{name}-%{version}.tar.xz
Patch0:		btparser-0.18-automake1.12.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(glib-2.0)
Conflicts:	%{libname} < 0.18

%description
Btparser is a backtrace parser and analyzer, which works with
backtraces produced by the GNU Project Debugger. It can parse a text
file with a backtrace to a tree of C structures, allowing to analyze
the threads and frames of the backtrace and work with them.

Btparser also contains some backtrace manipulation and extraction
routines:
- it can find a frame in the crash-time backtrace where the program
  most likely crashed (a chance is that the function described in that
  frame is buggy)
- it can produce a duplication hash of the backtrace, which helps to
  discover that two crash-time backtraces are duplicates, triggered by
  the same flaw of the code
- it can "rate" the backtrace quality, which depends on the number of
  frames with and without the function name known (missing function
  name is caused by missing debugging symbols)

%files
%doc README NEWS COPYING TODO ChangeLog
%{_bindir}/btparser
%{_mandir}/man1/%{name}.1.*
%{python3_sitearch}/%{name}/*

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for reporting crashes to different targets
Group:		System/Libraries

%description -n %{libname}
Btparser is a backtrace parser and analyzer, which works with
backtraces produced by the GNU Project Debugger. It can parse a text
file with a backtrace to a tree of C structures, allowing to analyze
the threads and frames of the backtrace and work with them.

Btparser also contains some backtrace manipulation and extraction
routines:
- it can find a frame in the crash-time backtrace where the program
  most likely crashed (a chance is that the function described in that
  frame is buggy)
- it can produce a duplication hash of the backtrace, which helps to
  discover that two crash-time backtraces are duplicates, triggered by
  the same flaw of the code
- it can "rate" the backtrace quality, which depends on the number of
  frames with and without the function name known (missing function
  name is caused by missing debugging symbols)

%files -n %{libname}
%{_libdir}/libbtparser.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
Development libraries and headers for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*

#--------------------------------------------------------------------
%prep
%setup -q
%patch0 -p1
autoreconf -fi

%build
%configure --disable-static
%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 523 |21cr|btrfs-du-0.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit dc0194d9f31a88a0ca823d734d672a4a53d24029
%define commit_short %(echo %{commit} | head -c 6)

Summary: Easily print BTRFS subvolume/snapshot disk usage
Name: btrfs-du
License: GPLv2
Group: Monitoring
Version:	0.0.7
Release:	1
Url: https://github.com/nachoparker/btrfs-du
Source0: https://github.com/nachoparker/btrfs-du/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch: noarch
BuildRequires: md2man
BuildRequires: sed

Requires: awk
Requires: bash
Requires: btrfs-progs
Requires: grep
Requires: sed

%description
%{summary}

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8
install -m0755 btrfs-du %{buildroot}%{_sbindir}/btrfs-du
md2man -output %{buildroot}%{_mandir}/man8/btrfs-du.8 README.md
# btrfs-du(1) -> btrfs-du(8)
# TODO: make a better manual, document options
sed -i -e 's, 1 , 8 ,g' %{buildroot}%{_mandir}/man8/btrfs-du.8

%files
%license LICENSE
%doc README.md
%{_sbindir}/btrfs-du
%{_mandir}/man8/btrfs-du.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 524 |21cr|btrfs-snapshot-gui-2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Restore BTRFS file system
Summary(ru_RU.UTF-8): Восстановление файловой системы BTRFS
Name:		btrfs-snapshot-gui
Version:	2.3
Release:	2
License:	GPLv3
Group:		System/Configuration/Other
Url:		https://abf.io/import/btrfs-snapshot-gui
Source1:	main.py
Source2:	restore_window.py
Source3:	btrfs-snapshot-gui.svg
Source4:	btrfs-snapshot-gui.desktop
Source5:	btrfs-snapshot-gui.sh
Source6:	ru.mos.os.btrfs-snapshot-gui.policy
Requires:	btrfs-progs
Requires:	python3-qtpy
BuildArch:	noarch

%description
Save and restore BTRFS file system from snapshots

%description -l ru_RU.UTF-8
Сохранение состояния и восстановление файловой системы BTRFS из снимков

%files
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/__pycache__
%{_iconsdir}/hicolor/scalable/apps/btrfs-snapshot-gui.svg
%{_datadir}/%{name}/main.py
%{_datadir}/%{name}/restore_window.py
%{_datadir}/applications/btrfs-snapshot-gui.desktop
%{_datadir}/polkit-1/actions/ru.mos.os.btrfs-snapshot-gui.policy
%{_sbindir}/%{name}
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%build

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
install -m755 main.py %{buildroot}%{_datadir}/%{name}/main.py
install -m755 restore_window.py %{buildroot}%{_datadir}/%{name}/restore_window.py
install -m755 btrfs-snapshot-gui.sh %{buildroot}%{_bindir}/%{name}
install -m644 ru.mos.os.btrfs-snapshot-gui.policy %{buildroot}%{_datadir}/polkit-1/actions
ln -s ../share/%{name}/main.py %{buildroot}%{_sbindir}/%{name}

mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
install -m644 btrfs-snapshot-gui.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/btrfs-snapshot-gui.svg

mkdir -p %{buildroot}%{_datadir}/applications
install -m644 btrfs-snapshot-gui.desktop %{buildroot}%{_datadir}/applications/btrfs-snapshot-gui.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 525 |21cr|btrfs-sync-0.0.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5647f149ecdb52861b7c3498b8324e16d53ee8bc
%define commit_short %(echo %{commit} | head -c 6)

Summary: Smart and easy sync of BTRFS snapshots, locally or through SSH
Name: btrfs-sync
License: GPL-3.0
Group: Monitoring
Version:	0.0.19
Release:	1
Url: https://github.com/nachoparker/btrfs-sync
Source0: https://github.com/nachoparker/btrfs-sync/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch: noarch
BuildRequires: md2man
BuildRequires: sed

Requires: awk
Requires: bash
Requires: btrfs-progs
Requires: grep
Requires: sed
Requires: sudo

%description
%{summary}

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m0755 btrfs-sync %{buildroot}%{_bindir}/btrfs-sync
md2man -output %{buildroot}%{_mandir}/man1/btrfs-sync.1 README.md

%files
%license LICENSE
%doc README.md
%{_bindir}/btrfs-sync
%{_mandir}/man1/btrfs-sync.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 526 |21cr|bubble-chains-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################################################
# SpecFile: chains.spec 
# Generato: Rosalinuxro
# MRB-Symbianflo
######################################################
%define oname chains

Name: 		bubble-chains
Summary: 	Cross-platform 2D arcade-puzzle game
Version: 	0.2.0
Release: 	2
License: 	GPLv3
Group: 		Games/Puzzles
Url:		https://github.com/ArsMasiuk/bubble-chains
Source0:	https://github.com/ArsMasiuk/bubble-chains/archive/refs/tags/V0.2.0/%{name}-%{version}.tar.gz
Patch0:     bubble-chains-0.2.0-mrb.patch

BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	imagemagick 
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util


%description
Bubble Chains is a funny 2D game which runs on Linux, 
Windows and FreeBSD. 
Bubble Chains was created using only free 
development software and free resources.
Actual version (0.2) has been ported to
most recent version of Qt5 framework (Qt 5.15 as for now)
so it can be build using mainly latest versions of actual
C++ compilers (Visual Studio 2019, GCC 9, clang 11 etc).
Dependency on SDL has been removed,
therefore playback of MIDI music files is deprecated.
Qt Multimedia Framework is used instead.

%files
%doc README LICENSE
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_iconsdir}/hicolor/*/apps/%{oname}.*
%{_datadir}/pixmaps/%{oname}.*
%{_gamesdatadir}/%{oname}/data
%{_appdatadir}/*.xml
#-----------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%qmake_qt5
%make 

%install
%makeinstall_qt

# icons in DE
for size in 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size setup.linux/%{oname}.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{oname}.png
done



# make rpmlint happy
pushd %{buildroot}%{_gamesdatadir}/%{oname}/data
chmod 0755 schemes help schemes/default lang tools sounds levels sounds bonus
popd

chmod 0755 %{buildroot}%{_gamesdatadir}/%{oname}/data
#
%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{oname}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 527 |21cr|bubblemon-1.46-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	WindowMaker dockapp CPU, memory, swap and load average monitor
Name:		bubblemon
Version:	1.46
Release:	9
License:	GPLv2+
Group:		Graphical desktop/WindowMaker
Url:		http://www.ne.jp/asahi/linux/timecop/
Source0:	%{name}-dockapp-%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
Patch0:		bubblemon-1.46-gtk2.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)

%description
This is a system monitoring dockapp, visually based on the GNOME "BubbleMon"
applet. Basically, it displays CPU and memory load as bubbles in a jar of
water. But that is where similarity ends. New bubblemon-dockapp features
translucent CPU load meter (for accurate CPU load measurement), yellow duck
swimming back and forth on the water surface (just for fun), and fading load
average and memory usage screens. Either of the info screens can be locked to
stay on top of water/duck/cpu screen, so that you can see both statistics at
once. Pretty nifty toy for your desktop. Code has been thoroughly optimized
since version 1.0, and even with all the features compiled in, BubbleMon still
uses very little CPU time. All the extra "bloated" features can be compiled
out or disabled on command-line, if you prefer original "BubbleMon" look.

%files
%doc ChangeLog README SUPPORTED_SYSTEMS doc/Xdefaults.sample
%{_bindir}/*
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-dockapp-%{version}
%patch0 -p0

%build
make \
	EXTRA="-DENABLE_DUCK -DENABLE_CPU -DENABLE_MEMSCREEN" \
	CFLAGS="%{optflags} \${EXTRA} \${WMAN}"

%install
install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}
tar xOjf %{SOURCE1} %{name}-16x16.png > %{buildroot}%{_miconsdir}/%{name}.png
tar xOjf %{SOURCE1} %{name}-32x32.png > %{buildroot}%{_iconsdir}/%{name}.png
tar xOjf %{SOURCE1} %{name}-48x48.png > %{buildroot}%{_liconsdir}/%{name}.png

install -m 755 bubblemon -D %{buildroot}%{_bindir}/bubblemon

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Monitoring-duck-in-a-jar dockapp
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-System-Monitoring;System;Monitor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 528 |21cr|budgie-control-center-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname %{name} -d

Name:		budgie-control-center
Version:	1.3.0
Release:	1
Summary:	Budgie Control Center is a fork of GNOME Settings / GNOME Control Center
License:	Apache-2.0
Group:		Graphical desktop/Other
URL:		https://github.com/BuddiesOfBudgie/budgie-control-center
Source0:	https://github.com/BuddiesOfBudgie/budgie-control-center/releases/download/v%{version}/budgie-control-center-%{version}.tar.xz
Patch0:		budgie-control-center-1.0.0-gnome-bluetooth-3_0.patch
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-style-xsl
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	shared-mime-info
BuildRequires:	cups-devel
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(accountsservice)
BuildRequires:	pkgconfig(cheese-gtk)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(colord-gtk)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-bluetooth-3.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-settings-daemon)
BuildRequires:	pkgconfig(goa-backend-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(grilo-0.3)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgnome-menu-3.0)
BuildRequires:	pkgconfig(libgnomekbd)
BuildRequires:	pkgconfig(libgnomekbdui)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libwacom)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(pwquality)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(udisks2)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xxf86misc)
Requires:	cups-pk-helper
Recommends:	ntp

%description
Budgie Control Center is a fork of GNOME Settings / GNOME Control Center 
with the intent of providing a simplified list of settings that are 
applicable to the Budgie 10 series, along with any small quality-of-life settings.

%files -f %{name}.lang
%doc README.md
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/%{name}
%{_libexecdir}/budgie-cc-remote-login-helper
%{_datadir}/applications/*
%{_datadir}/bash-completion/*
%{_datadir}/dbus-1/services/*
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/%{name}
%{_datadir}/pixmaps
%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/polkit-1/rules.d/*.rules
%{_datadir}/glib-2.0/schemas/org.buddiesofbudgie.ControlCenter.gschema.xml
%{_libexecdir}/%{name}-print-renderer
%{_datadir}/sounds/budgie/default/alerts/*.ogg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 529 |21cr|budgie-desktop-10.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           budgie-desktop
Version:        10.8
Release:        1
License:        GPL-2.0+ and LGPL-2.1
Summary:        GTK3 Desktop Environment
Url:            https://github.com/BuddiesOfBudgie/budgie-desktop
Group:          Graphical desktop/Other
Source0:        https://github.com/BuddiesOfBudgie/budgie-desktop/releases/download/v%{version}/budgie-desktop-v%{version}.tar.xz
Source10:       %{name}.rpmlintrc
BuildRequires:  %{_bindir}/gtkdocize
BuildRequires:  budgie-screensaver
BuildRequires:  cmake
BuildRequires:  intltool
BuildRequires:  meson
BuildRequires:  magpie-devel
BuildRequires:  pkgconfig(accountsservice)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gee-0.8)
BuildRequires:  pkgconfig(libwnck-3.0)
BuildRequires:  pkgconfig(upower-glib)
BuildRequires:  pkgconfig(libgnome-menu-3.0)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(ibus-1.0)
BuildRequires:  pkgconfig(libcanberra-gtk3)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libpulse-mainloop-glib)
BuildRequires:  pkgconfig(libpeas-1.0)
BuildRequires:  pkgconfig(libpeas-gtk-1.0)
BuildRequires:  pkgconfig(uuid)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gnome-desktop-3.0)
BuildRequires:  pkgconfig(gnome-settings-daemon)
BuildRequires:  pkgconfig(polkit-gobject-1)
BuildRequires:  pkgconfig(polkit-agent-1)
BuildRequires:  pkgconfig(gnome-bluetooth-1.0)
BuildRequires:  pkgconfig(vapigen)
BuildRequires:  sassc
BuildRequires:  vala >= 0.28
# Otherwise OBS complains about ownership of /usr/share/gnome-session etc
BuildRequires:  gnome-session
Requires:       gnome-settings-daemon
Requires:       gnome-session
Requires:       budgie-screensaver


%description
Budgie Desktop is the flagship desktop for the Solus Operating System.

%files -f %{name}.lang
%doc LICENSE LICENSE.LGPL2.1
%{_libdir}/lib*.so.*
%{_bindir}/budgie-desktop
%{_bindir}/budgie-wm
%{_bindir}/budgie-panel
%{_bindir}/budgie-run-dialog
%{_bindir}/budgie-daemon
%{_bindir}/budgie-desktop-settings
%{_bindir}/org.buddiesofbudgie.BudgieScreenshot
%{_libexecdir}/budgie-desktop/budgie-polkit-dialog
%{_libexecdir}/budgie-desktop/budgie-power-dialog
%{_datadir}/budgie/budgie-version.xml
%{_datadir}/xsessions/budgie-desktop.desktop
%{_datadir}/glib-2.0/schemas/20_solus-project.budgie.wm.gschema.override
%{_datadir}/glib-2.0/schemas/com.solus-project.*
%{_datadir}/glib-2.0/schemas/20_buddiesofbudgie.budgie-desktop.notifications.gschema.override
%{_datadir}/glib-2.0/schemas/org.buddiesofbudgie.budgie-desktop.raven.widget.*.xml
%{_datadir}/glib-2.0/schemas/org.buddiesofbudgie.budgie-desktop.screenshot.gschema.xml
%{_datadir}/applications/*.desktop
%{_datadir}/backgrounds/budgie/default.jpg
%{_datadir}/gnome-session/sessions/org.buddiesofbudgie.BudgieDesktop.session
%{_datadir}/icons/hicolor/scalable/actions/*.svg
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/icons/hicolor/scalable/status/*.svg

%dir %{_libdir}/budgie-desktop
%dir %{_libdir}/budgie-desktop/plugins
%{_libdir}/budgie-desktop/plugins/*/*.plugin
%{_libdir}/budgie-desktop/plugins/*/*.so
%{_libdir}/budgie-desktop/libgvc.so
%{_libdir}/budgie-desktop/raven-plugins/*
%{_datadir}/gir-1.0/Budgie*.gir
%{_sysconfdir}/xdg/autostart/*.desktop
%{_mandir}/man1/budgie-daemon.1*
%{_mandir}/man1/budgie-desktop-settings.1*
%{_mandir}/man1/budgie-desktop.1*
%{_mandir}/man1/budgie-panel.1*
%{_mandir}/man1/budgie-run-dialog.1*
%{_mandir}/man1/budgie-wm.1*
%{_mandir}/man1/org.buddiesofbudgie.BudgieScreenshot.1.xz


%post
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas

%postun
/usr/bin/glib-compile-schemas %{_datadir}/glib-2.0/schemas


#-------------------------------------------------------------------
%package -n typelib_1_0-Budgie-0_1
Summary:        GTK3 Desktop Environment -- Introspection bindings
Group:          System/Libraries
Requires:       %{name} = %{EVRD}

%description -n typelib_1_0-Budgie-0_1
A simple GTK3 desktop experience

%files -n typelib_1_0-Budgie-0_1
%{_libdir}/girepository-1.0/Budgie*.typelib

#-------------------------------------------------------------------

%package devel
Summary:        GTK3 Desktop Environment -- Development files
Group:          Development/Other
Requires:       typelib_1_0-Budgie-0_1 = %{EVRD}
Requires:       %{name} = %{EVRD}

%description devel
A simple GTK3 desktop experience

%files devel
%{_includedir}/budgie-desktop/*.h
%dir %{_includedir}/budgie-desktop
%{_libdir}/pkgconfig/budgie*.pc
%{_libdir}/lib*.so
%{_datadir}/vala/vapi/budgie-1.0.*
%{_datadir}/vala/vapi/budgie-raven-plugin-1.0.*

#-------------------------------------------------------------------

%package docs
Summary:        GTK3 Desktop Environment -- Documentation files
Group:          Documentation

%description docs
A simple GTK3 desktop experience -- Documentation files

%files docs
%{_datadir}/gtk-doc/html/budgie-desktop

#-------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 530 |21cr|budgie-desktop-view-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define org org.buddiesofbudgie

Name:           budgie-desktop-view
Version:        1.2.1
Release:        1
Summary:        Official Budgie Desktop icons application
License:        Apache-2.0
Group:          Graphical desktop/Other
URL:            https://github.com/BuddiesOfBudgie/budgie-desktop-view
Source0:        https://github.com/BuddiesOfBudgie/budgie-desktop-view/releases/download/v%{version}/budgie-desktop-view-v%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  intltool
BuildRequires:  meson
BuildRequires:  pkgconfig
BuildRequires:  vala
BuildRequires:  pkgconfig(vapigen)
BuildRequires:  pkgconfig(gdk-3.0)
BuildRequires:  pkgconfig(glib-2.0) >= 2.64.0

%description
Budgie Desktop View is the official Budgie desktop icons application / implementation

%files -f %{name}.lang
%license LICENSE.md
%{_bindir}/%{org}.budgie-desktop-view
%{_sysconfdir}/xdg/autostart/%{org}.budgie-desktop-view-autostart.desktop
%{_datadir}/applications/%{org}.budgie-desktop-view.desktop
%{_datadir}/glib-2.0/schemas/%{org}.budgie-desktop-view.gschema.xml

#--------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dxdg-appdir=%{_sysconfdir}/xdg/autostart
%meson_build

%install
%meson_install

%find_lang budgie-desktop-view --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 531 |21cr|budgie-screensaver-5.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	BUDGIE Screensaver
Name:		budgie-screensaver
Version:	5.1.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://github.com/BuddiesOfBudgie/budgie-screensaver
Source0:	https://github.com/BuddiesOfBudgie/budgie-screensaver/releases/download/v%{version}/budgie-screensaver-v%{version}.tar.xz

BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	pam-devel
BuildRequires:	xmlto
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgnomekbdui)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xxf86misc)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xtst)

Requires:	xsltproc
Requires:	dbus-x11

%description
gnome-screensaver is a screen saver and locker that aims to have
simple, sane, secure defaults and be well integrated with the desktop.
It is designed to support:

* the ability to lock down configuration settings
* translation into other languages
* user switching

%files -f %{name}.lang
%doc README* AUTHORS
%{_sysconfdir}/pam.d/budgie-screensaver
%{_datadir}/applications/budgie-screensaver.desktop
%{_bindir}/*
%{_libexecdir}/budgie-screensaver-dialog
%{_mandir}/man1/budgie-screensaver-command.1.*
%{_mandir}/man1/budgie-screensaver.1.*

#-----------------------------------------------------------
%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 532 |21cr|buffer-1.19-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	General purpose buffer program
Name:		buffer
Version:	1.19
Release:	13
License:	GPLv2+
Group:		Archiving/Backup
Source0:	%{name}-%{version}.tar.bz2
Patch0:		buffer_1.19-7.patch.bz2

%description
This is a program designed to speed up writing tapes on remote tape
drives. After startup it splits itself into two processes. The first
process reads (and reblocks) from stdin into a shared memory buffer.
The second writes from the shared memory buffer to stdout.  Doing it this way
means that the writing side effectly sits in a tight write loop and
doesn't have to wait for input.  Similarly for the input side.  It is
this waiting that slows down other reblocking processes, like dd.

%files
%doc COPYING README
%{_bindir}/buffer
%{_mandir}/man1/buffer.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
make CFLAGS="%{optflags}"

%install
install -m 755 -D buffer %{buildroot}%{_bindir}/buffer
install -m 644 -D buffer.man %{buildroot}%{_mandir}/man1/buffer.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 533 |21cr|bugsquish-0.0.6-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Kill bugs with mouse
Name:		bugsquish
Version:	0.0.6
Release:	18
Source0:	ftp://ftp.sonic.net/pub/users/nbs/unix/x/bugsquish/%{name}-%{version}.tar.bz2
Source5:	%{name}-16.png
Source6:	%{name}-32.png
Source7:	%{name}-48.png
Patch0:		bugsquish-0.0.2-fix-CFLAGS.patch.bz2
License:	GPL
Url:		http://newbreedsoftware.com/bugsquish/
Group:		Games/Arcade
BuildRequires:	SDL-devel
BuildRequires:	SDL_image-devel
BuildRequires:	SDL_mixer-devel

%description
Bugs are trying to suck blood out of your arm! Squish them with with your fly
swatter before you run out of blood.

%prep
%setup -q
%patch0 -p1
chmod a+r -R .
rm -rf `find -name .xvpics`

%build
%make CFLAGS="%{optflags} %build_ldflags" DATA_PREFIX=%{_gamesdatadir}/%{name}/

%install
rm -rf $RPM_BUILD_ROOT
install -D %{name} $RPM_BUILD_ROOT%{_gamesbindir}/%{name}
install -d $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}
cp -a data/* $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Bugsquish
Comment=%{summary}
Exec=%_gamesbindir/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

install -D -m644 %SOURCE6 $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -D -m644 %SOURCE5 $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -D -m644 %SOURCE7 $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS.txt CHANGES.txt README.txt
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 534 |21cr|bugzilla-5.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pre	%nil

Name:		bugzilla
Version:	5.0.6
Release:	1
Summary:	A bug tracking system developed by mozilla.org
License:	MPL
Group:		Networking/WWW
Url:		http://www.bugzilla.org
Source0:	http://ftp.mozilla.org/pub/mozilla.org/webtools/%{name}-%{version}%{pre}.tar.gz
Source1:	Bugzilla.pm
Source2:	bugzilla.rpmlintrc
Patch0:		bugzilla-fhs.patch
Patch2:		bugzilla-fix-permissions.patch
Patch3:		bugzilla-dnf.patch
BuildRequires:	perl-devel
Requires:	apache
# from Fedora
Requires:	perl(CGI) >= 3.51
Requires:	perl(Digest::SHA)
Requires:	perl(Date::Format) >= 2.23
Requires:	perl(DateTime) >= 0.75
Requires:	perl(DateTime::TimeZone) >= 1.64
Requires:	perl(DBI) >= 1.614
Requires:	perl(ExtUtils::MM)
Requires:	perl(Template) >= 2.24
Requires:	perl(Email::Sender) >= %{perl_convert_version 1.300011}
Requires:	perl(Email::MIME) >= 1.904
Requires:	perl(URI) >= 1.55
Requires:	perl(List::MoreUtils) >= 0.32
Requires:	perl(Math::Random::ISAAC) >= 1.0.1
Requires:	perl(File::Slurp) >= 9999.13
Requires:	perl(JSON::XS) >= 2.01
Requires:	perl(Locale::Language)
Requires:	patchutils
Requires:	sendmail-command
Recommends:	diffutils
Recommends:	graphviz
BuildArch:	noarch

##### From Fedora

# Remove private modules from the requires stream
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(sanitycheck.cgi\\)$

# Remove all optional modules from the requires stream
# mod_perl modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Apache2::
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(ModPerl::
# installation of optional modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Config\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(CPAN\\)$
# authentification modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Authen::Radius\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Net::LDAP
# database modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBD::Oracle\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBD::Pg\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBI::db\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(DBI::st\\)$
# graphical reports and charts
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Chart::Lines\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(GD::Graph\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Template::Plugin::GD::Image\\)$
# inbound email modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Email::MIME::Attachment::Stripper\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Email::Reply\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTML::FormatText::WithLinks\\)$
# automatic charset detection for text attachments
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Encode
# sniff MIME type of attachments
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(File::MimeInfo::Magic\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(IO::Scalar\\)$
# mail queueing
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(TheSchwartz\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Daemon::Generic\\)$
# smtp security
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Authen::SASL\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Net::SMTP::SSL\\)$
# bug moving modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(MIME::Parser\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(XML::Twig\\)$
# update notifications
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(LWP::UserAgent\\)$
# use html in product and group descriptions
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTML::Parser\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTML::Scrubber\\)$
# memcached support
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Cache::Memcached\\)$
# documentation
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(File::Copy::Recursive\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(File::Which\\)$
# xml-rpc and json-rpc modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(XMLRPC::
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(HTTP::Message\\)$
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::Taint\\)$
# extension modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Image::Magick\\)$

# and remove the extensions from the provides stream
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::BmpConvert\\)$
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example\\)$
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example::Auth::Login\\)$
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example::Auth::Verify\\)$
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example::Config\\)$
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Example::WebService\\)$
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::OldBugMove\\)$
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::OldBugMove::Params\\)$
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(Bugzilla::Extension::Voting\\)$

##### /From Fedora

# Do not require itself, filter perl(Bugzilla) and perl(Bugzilla::XXX)
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Bugzilla.*\\)$

%description
Bugzilla is one example of a class of programs called "Defect Tracking 
Systems", or, more commonly, "Bug-Tracking Systems". Defect Tracking Systems
allow individual or groups of developers to keep track of outstanding bugs
in their product effectively.

%files
%doc README README.urpmi docs
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/cron.d/%{name}
%{_datadir}/%{name}
%{_sysconfdir}/%{name}
%attr(-,apache,apache) %{_localstatedir}/lib/%{name}
%{perl_sitelib}/*
%exclude %{_datadir}/%{name}/bin/jb2bz.py
%exclude %{_datadir}/%{name}/bin/mysqld-watcher.pl
%exclude %{_datadir}/%{name}/bin/sendbugmail.pl
%exclude %{_datadir}/%{name}/bin/sendunsentbugmail.pl
%exclude %{_datadir}/%{name}/bin/syncLDAP.pl
%exclude %{_datadir}/%{name}/bin/bugzilla-submit
%exclude %{_datadir}/%{name}/bin/buglist
%exclude %{_datadir}/%{name}/bin/bugs
%exclude %{_sysconfdir}/%{name}/query.conf

#-----------------------------------------------------------------------------

%package contrib
Summary:	Additional tools for %{name}
Group:		Networking/WWW
Requires:	%{name} = %{EVRD}

%description contrib
This package contains additional tools for %{name}.

%files contrib
%doc contrib/README
%doc contrib/bugzilla-submit/README.bugzilla-submit
%{_datadir}/%{name}/bin/jb2bz.py
%{_datadir}/%{name}/bin/mysqld-watcher.pl
%{_datadir}/%{name}/bin/sendbugmail.pl
%{_datadir}/%{name}/bin/sendunsentbugmail.pl
%{_datadir}/%{name}/bin/syncLDAP.pl
%{_datadir}/%{name}/bin/bugzilla-submit
%{_datadir}/%{name}/bin/buglist
%{_datadir}/%{name}/bin/bugs
%config(noreplace) %{_sysconfdir}/%{name}/query.conf

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}%{pre}
find . -name CVS -o -name .cvsignore -delete

# Fix perms
chmod -R go=u-w .
chmod 644 Bugzilla/Bug.pm
chmod 644 template/en/default/admin/keywords/*
chmod 755 docs/makedocs.pl

# Fix paths
find . -type f | xargs perl -pi -e "s|/usr/local/bin|%{_bindir}|g"

# Fix contrib documentation files names
(cd contrib/bugzilla-submit && mv README README.bugzilla-submit)

%autopatch -p1


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{perl_sitelib}
install -m644 %{SOURCE1} %{buildroot}%{perl_sitelib}

install -d -m 755 %{buildroot}%{_datadir}/%{name}

install -d -m 755 %{buildroot}%{_datadir}/%{name}/www
install -m 755 *.cgi %{buildroot}%{_datadir}/%{name}/www
cp -pr js skins images robots.txt %{buildroot}%{_datadir}/%{name}/www
install -d -m 755 %{buildroot}%{_datadir}/%{name}/extensions
install -d -m 755 %{buildroot}%{_datadir}/%{name}/www/skins/custom
install -d -m 755 %{buildroot}%{_datadir}/%{name}/www/skins/contrib

install -d -m 755 %{buildroot}%{_datadir}/%{name}/lib
install -d -m 755 %{buildroot}%{_datadir}/%{name}/bin

# only install english templates (bug #61555)
install -d -m 755 %{buildroot}%{_datadir}/%{name}/template
cp -pr template/en %{buildroot}%{_datadir}/%{name}/template

cp -pr Bugzilla %{buildroot}%{_datadir}/%{name}/lib
install -m 644 Bugzilla.pm \
	%{buildroot}%{_datadir}/%{name}/lib
install -m 755 collectstats.pl \
	testserver.pl \
	checksetup.pl \
	importxml.pl \
	whineatnews.pl \
	whine.pl \
	contrib/bzdbcopy.pl \
	contrib/jb2bz.py \
	contrib/merge-users.pl \
	contrib/mysqld-watcher.pl \
	contrib/sendbugmail.pl \
	contrib/sendunsentbugmail.pl \
	contrib/syncLDAP.pl \
	contrib/bugzilla-submit/bugzilla-submit \
	contrib/cmdline/buglist \
	contrib/cmdline/bugs \
	%{buildroot}%{_datadir}/%{name}/bin

install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 contrib/cmdline/query.conf %{buildroot}%{_sysconfdir}/%{name}

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}

# Set apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# Bugzilla Apache configuration
Alias /%{name}/data %{_localstatedir}/lib/%{name}/
Alias /%{name}/images %{_datadir}/%{name}/www/images
Alias /%{name}/js %{_datadir}/%{name}/www/js
Alias /%{name}/skins %{_datadir}/%{name}/www/skins
ScriptAlias /%{name} %{_datadir}/%{name}/www

<Directory %{_datadir}/%{name}/www>
    Require all granted
    DirectoryIndex index.cgi
</Directory>

# The dot files must be accessible to the public webdot server
# The png files locally created locally must be accessible
<Directory %{_localstatedir}/lib/bugzilla/webdot>
    <FilesMatch \.dot$>
        Require host research.att.com
    </FilesMatch>

    <FilesMatch \.png$>
        Require all granted
    </FilesMatch>
</Directory>
EOF

# Provide a cron task
install -d -m 755 %{buildroot}%{_sysconfdir}/cron.d
cat > %{buildroot}%{_sysconfdir}/cron.d/%{name} <<EOF
0 0 * * *     apache     %{_datadir}/%{name}/bin/collectstats.pl > /dev/null 2>&1
0 0 * * *     apache     %{_datadir}/%{name}/bin/whineatnews.pl > /dev/null 2>&1
*/15 * * * *  apache     %{_datadir}/%{name}/bin/whine.pl > /dev/null 2>&1
EOF

cat > README.urpmi <<EOF
ROSA RPM specific notes

setup
-----
The setup used here differs from default one, to achieve better FHS compliance.
- the constant files are in %{_datadir}/%{name}
- the variables files are in %{_localstatedir}/lib/%{name}
- the configuration file will be generated in %{_sysconfdir}/%{name}

post-installation
-----------------
 - create a database in one of: MySQL/MariaDB/PostgreSQL
 - run %{_datadir}/%{name}/bin/checksetup.pl

Additional useful packages
--------------------------
- perl-GD, perl-GDGraph, perl-GD-TextUtil and perl-Chart for graphical reports
- perl-XML-Parser for importing XML bugs
- perl-Net-LDAP for LDAP authentication
- perl-PatchReader, cvs, diffutils and patchutils for patch viewer
- graphviz for graphical view of dependency relationships
- a MySQL/MariaDB/PostgreSQL database, either locale or remote
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 535 |21cr|buildbot-3.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Missing dependencies for tests
%bcond_with check

# Missing dependencies for documentation
%bcond_with docs

# Offer support for various latent worker types
%bcond_without ec2
%bcond_without container
%bcond_without libvirt

%bcond_with openstack

Name:           buildbot
Version:	3.6.1
Release:	1

Summary:        Build/test automation system
Group:          Development/Python
License:        GPLv2
URL:            https://buildbot.net
Source0:        %{pypi_source buildbot}
Source1:        %{pypi_source buildbot-worker}
Source2:        %{pypi_source buildbot-www}
Source3:        %{pypi_source buildbot-waterfall-view}
Source4:        %{pypi_source buildbot-grid-view}
Source5:        %{pypi_source buildbot-console-view}
Source6:        %{pypi_source buildbot-badges}
Source7:        %{pypi_source buildbot-wsgi-dashboards}
# Build-time only component for buildbot
Source8:        %{pypi_source buildbot-pkg}

# Service template units for buildbot instances
Source10:       buildbot-master@.service
Source11:       buildbot-worker@.service

#sysusers files
Source20:       buildbot-master.sysusers.conf
Source21:       buildbot-worker.sysusers.conf

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

# For making the build work from source
BuildRequires:  python3egg(setuptools) >= 21.2.1
BuildRequires:  python3egg(twisted) >= 17.9
BuildRequires:  python3egg(jinja2) >= 2.1
BuildRequires:  python3egg(zope.interface) >= 4.1.1
BuildRequires:  python3egg(future)
BuildRequires:  python3egg(sqlalchemy) >= 1.2.0
BuildRequires:  python3egg(sqlalchemy-migrate) >= 0.9
BuildRequires:  python3egg(python-dateutil) >= 1.5
BuildRequires:  python3egg(txaio) >= 2.2.2
BuildRequires:  python3egg(autobahn) >= 0.16
BuildRequires:  python3egg(pyjwt)
BuildRequires:  python3egg(pyyaml)

BuildRequires:  python3egg(treq)
BuildRequires:  python3egg(boto3)
BuildRequires:  python3egg(mock) >= 2
BuildRequires:  python3egg(lz4)

%if %{with check}
BuildRequires:  bzr
BuildRequires:  cvs
BuildRequires:  git
BuildRequires:  mercurial
BuildRequires:  subversion
BuildRequires:  darcs
%endif

%if %{with docs}
BuildRequires:  make
BuildRequires:  python3egg(sphinx) >= 1.4
BuildRequires:  python3egg(sphinxcontrib-blockdiag)
BuildRequires:  python3egg(sphinxcontrib-spelling)
BuildRequires:  python3egg(pyenchant)
BuildRequires:  (python3egg(docutils) >= 0.8 with python3egg(docutils) < 0.13)
BuildRequires:  python3egg(sphinx-jinja)
BuildRequires:  python3egg(towncrier)
%endif

# Turns former package into a metapackage for installing everything
Requires:       %{name}-master = %{version}-%{release}
%if %{with ec2}
Recommends:     %{name}-master-ec2 = %{version}-%{release}
%endif
%if %{with container}
Recommends:     %{name}-master-container = %{version}-%{release}
%endif
%if %{with libvirt}
Recommends:     %{name}-master-libvirt = %{version}-%{release}
%endif
%if %{with openstack}
Recommends:     %{name}-master-openstack = %{version}-%{release}
%endif
Requires:       %{name}-worker = %{version}-%{release}
Requires:       %{name}-www = %{version}-%{release}
%if %{with docs}
Requires:       %{name}-doc = %{version}-%{release}
%else
Obsoletes:      %{name}-doc < %{version}-%{release}
%endif

%description
The BuildBot is a system to automate the compile/test cycle required by
most software projects to validate code changes. By automatically
rebuilding and testing the tree each time something has changed, build
problems are pinpointed quickly, before other developers are
inconvenienced by the failure.

%files
# Empty because metapackage

# ---------------------------------------------------------------------

%package master
Summary:        Build/test automation system master
Group:          Development/Python
Requires(pre):  shadow-utils
Recommends:     %{name}-www = %{version}-%{release}
%if ! %{with docs}
Obsoletes:      %{name}-doc < %{version}-%{release}
%endif

%description master
The BuildBot is a system to automate the compile/test cycle required by
most software projects to validate code changes. By automatically
rebuilding and testing the tree each time something has changed, build
problems are pinpointed quickly, before other developers are
inconvenienced by the failure.

This package contains only the buildmaster implementation.
The buildbot-worker package contains the buildworker.

%pre master
%sysusers_create_package buildbot-master %{SOURCE20}

%files master
%doc CREDITS NEWS UPGRADING
%license COPYING
%{_bindir}/buildbot
%{_mandir}/man1/buildbot.1*
%{python3_sitelib}/buildbot/
%{python3_sitelib}/buildbot-*egg-info/
%dir %{_sharedstatedir}/buildbot
%dir %attr(-, buildbot-master, buildbot-master) %{_sharedstatedir}/buildbot/master
%{_unitdir}/buildbot-master@.service
%{_sysusersdir}/buildbot-master.conf

# ---------------------------------------------------------------------

%if %{with ec2}
%package master-ec2
Summary:        Build/test automation system master -- AWS EC2 support
Group:          Development/Python
Requires:       %{name}-master = %{version}-%{release}
Requires:       python3egg(boto3)

%description master-ec2
The BuildBot is a system to automate the compile/test cycle required by
most software projects to validate code changes. By automatically
rebuilding and testing the tree each time something has changed, build
problems are pinpointed quickly, before other developers are
inconvenienced by the failure.

This is a metapackage to install the master with AWS EC2 dynamic
worker support.

%files master-ec2
# Empty because metapackage
%endif

# ---------------------------------------------------------------------

%if %{with container}
%package master-container
Summary:        Build/test automation system master -- Container support
Group:          Development/Python
Requires:       %{name}-master = %{version}-%{release}
Requires:       python3egg(docker)

%description master-container
The BuildBot is a system to automate the compile/test cycle required by
most software projects to validate code changes. By automatically
rebuilding and testing the tree each time something has changed, build
problems are pinpointed quickly, before other developers are
inconvenienced by the failure.

This is a metapackage to install the master with container worker support.

%files master-container
# Empty because metapackage
%endif

# ---------------------------------------------------------------------

%if %{with libvirt}
%package master-libvirt
Summary:        Build/test automation system master -- libvirt support
Group:          Development/Python
Requires:       %{name}-master = %{version}-%{release}
Requires:       python3-libvirt

%description master-libvirt
The BuildBot is a system to automate the compile/test cycle required by
most software projects to validate code changes. By automatically
rebuilding and testing the tree each time something has changed, build
problems are pinpointed quickly, before other developers are
inconvenienced by the failure.

This is a metapackage to install the master with libvirt-driven dynamic
VM worker support.

%files master-libvirt
# Empty because metapackage
%endif

# ---------------------------------------------------------------------

%if %{with openstack}
%package master-openstack
Summary:        Build/test automation system master -- OpenStack support
Group:          Development/Python
Requires:       %{name}-master = %{version}-%{release}
Requires:       python%{python3_version}egg(keystoneauth1)
Requires:       python%{python3_version}egg(python-novaclient)

%description master-openstack
The BuildBot is a system to automate the compile/test cycle required by
most software projects to validate code changes. By automatically
rebuilding and testing the tree each time something has changed, build
problems are pinpointed quickly, before other developers are
inconvenienced by the failure.

This is a metapackage to install the master with OpenStack dynamic
worker support.

%files master-openstack
# Empty because metapackage
%endif

# ---------------------------------------------------------------------

%package worker
Summary:        Build/test automation system worker
Group:          Development/Python
Obsoletes:      %{name}-slave < 0.9.0
Provides:       %{name}-slave = %{version}-%{release}
Requires(pre):  shadow-utils
%if ! %{with docs}
Obsoletes:      %{name}-doc < %{version}-%{release}
%endif

%description worker
This package contains only the buildworker implementation.
The buildbot-master package contains the buildmaster.

%pre worker
%sysusers_create_package buildbot-worker %{SOURCE21}

%files worker
%doc NEWS UPGRADING
%license COPYING
%{_bindir}/buildbot-worker
%{_mandir}/man1/buildbot-worker.1*
%{python3_sitelib}/buildbot_worker/
%{python3_sitelib}/buildbot_worker-*egg-info/
%dir %{_sharedstatedir}/buildbot
%dir %attr(-, buildbot-worker, buildbot-worker) %{_sharedstatedir}/buildbot/worker
%{_unitdir}/buildbot-worker@.service
%{_sysusersdir}/buildbot-worker.conf

# ---------------------------------------------------------------------

%package www
Summary:        Build/test automation system web frontend
Group:          Development/Python
Requires:       %{name}-master = %{version}-%{release}

%description www
Provides web frontend for buildbot.

%files www
%license COPYING
%{python3_sitelib}/buildbot_www/
%{python3_sitelib}/buildbot_www-*.egg-info/
%{python3_sitelib}/buildbot_waterfall_view/
%{python3_sitelib}/buildbot_waterfall_view-*egg-info/
%{python3_sitelib}/buildbot_grid_view/
%{python3_sitelib}/buildbot_grid_view-*egg-info/
%{python3_sitelib}/buildbot_console_view/
%{python3_sitelib}/buildbot_console_view-*egg-info/
%{python3_sitelib}/buildbot_badges/
%{python3_sitelib}/buildbot_badges-*egg-info/
%{python3_sitelib}/buildbot_wsgi_dashboards/
%{python3_sitelib}/buildbot_wsgi_dashboards-*egg-info/

# ---------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:        Buildbot documentation
Group:          Documentation

%description doc
%{summary}.

%files doc
%{_pkgdocdir}/
%endif

# ---------------------------------------------------------------------

%prep
%setup -q -b0 -b1 -b2 -b3 -b4 -b5 -b6 -b7 -b8

%build
%py3_build

%if %{with docs}
#TODO create API documentation
pushd docs
make docs.tgz VERSION="%{version}" SPHINXBUILD=sphinx-build-3
popd
%endif

pushd ../%{name}-worker-%{version}
%py3_build
popd

# For buildbot_pkg build-time module to set version correctly
export BUILDBOT_VERSION=%{version}

# So that other modules can use buildbot-pkg import
export PYTHONPATH=%{_builddir}/%{name}-%{version}/build/lib:%{_builddir}/%{name}-pkg-%{version}/build/lib

bbweb_components=(pkg www waterfall-view grid-view console-view badges wsgi-dashboards)

for bbweb_component in ${bbweb_components[@]}; do
	pushd ../%{name}-${bbweb_component}-%{version}
	sed -e "s/^    setup_requires=.*$//" -i setup.py
	%py3_build
	popd
done

%install
%py3_install

# For buildbot_pkg build-time module to set version correctly
export BUILDBOT_VERSION=%{version}

# So that other modules can use buildbot-pkg import
export PYTHONPATH=%{_builddir}/%{name}-%{version}/build/lib:%{_builddir}/%{name}-pkg-%{version}/build/lib

bbweb_components=(www waterfall-view grid-view console-view badges wsgi-dashboards)

for bbweb_component in ${bbweb_components[@]}; do
	pushd ../%{name}-${bbweb_component}-%{version}
	%py3_install
	popd
done

install -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/buildbot.1

%if %{with docs}
mkdir -p %{buildroot}%{_pkgdocdir}
tar xf docs/docs.tgz --strip-components=1 -C %{buildroot}%{_pkgdocdir}
%endif

# install worker files
pushd ../%{name}-worker-%{version}
%py3_install
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/buildbot-worker.1
popd

# Purge windows-only files
rm -vf %{buildroot}%{_bindir}/*windows*

# Install systemd units
mkdir -p %{buildroot}%{_unitdir}
cp -a %{S:10} %{S:11} %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sharedstatedir}/buildbot/{master,worker}

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE20} %{buildroot}%{_sysusersdir}/buildbot-master.conf
install -m0644 %{SOURCE21} %{buildroot}%{_sysusersdir}/buildbot-worker.conf

%if %{with check}
%check
trial buildbot.test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 536 |21cr|bullet-3.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3.17
#define	_disable_lto %{nil}
#define _disable_ld_no_undefined 1

Summary:	Professional 3D collision detection library
Name:		bullet
Version:	3.25
Release:	2
License:	Zlib
Group:		System/Libraries
URL:		http://www.bulletphysics.com
Source0:	https://github.com/bulletphysics/bullet3/archive/%{version}/%{name}3-%{version}.tar.gz
# https://github.com/bulletphysics/bullet3/issues/626
Patch0:         bullet-2.89-fix-bullet.pc.patch
Patch2:         use-system-libs.patch
# from https://svnweb.mageia.org/packages/cauldron/bullet/current/SOURCES/bullet-3.24-fix-bullet-config.cmake.patch?revision=1919697&view=markup
Patch3:         bullet-3.24-fix-bullet-config.cmake.patch
BuildRequires:	cmake
BuildRequires:	libtool
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	perl-Template-Toolkit
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:  pkgconfig(freeglut)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(tinyxml2)

%description
Bullet 3D Game Multiphysics Library provides state of the art
collision detection, soft body and rigid body dynamics.

* Used by many game companies in AAA titles on Playstation 3,
  XBox 360, Nintendo Wii and PC
* Modular extendible C++ design with hot-swap of most components
* Optimized back-ends with multi-threaded support for Playstation 3
  Cell SPU and other platforms
* Discrete and continuous collision detection (CCD)
* Swept collision queries
* Ray casting with custom collision filtering
* Generic convex support (using GJK), capsule, cylinder, cone, sphere,
  box and non-convex triangle meshes.
* Rigid body dynamics including constraint solvers, generic
  constraints, ragdolls, hinge, ball-socket
* Support for constraint limits and motors
* Soft body support including cloth, rope and deformable
* Bullet is integrated into Blender 3D and provides a Maya Plugin
* Supports import and export into COLLADA 1.4 Physics format
* Support for dynamic deformation of non-convex triangle meshes, by
  refitting the acceleration structures

The Library is free for commercial use and open source
under the ZLib License.


#----------------------------------------------------------------------------
%define libname %mklibname %{name} %{major}

%package -n %{libname}
Summary:        Professional 3D collision detection library
Group:          System/Libraries
Provides:       %{_lib}bullet2 = %{version}-%{release}

%description -n %{libname}
Bullet is a professional open source multi-threaded
3D Collision Detection and Rigid Body Dynamics Library
for games and animation.

%files -n %{libname}
%{_libdir}/lib*.so.%{version}

#----------------------------------------------------------------------------
%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development headers for Bullet
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(libxml-2.0)

%description -n %{devname}
Development headers for Bullet, a 3D collision library.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/cmake/%{name}
%{_includedir}/%{name}/*
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}3-%{version}
%autopatch -p1
rm -rf build3/*.{bat,exe}
rm -rf build3/xcode*
rm -rf build3/*osx*
rm -rf build3/premake*
rm -rf data
rm -rf examples/

# Set these files to right permission
#chmod 644 src/LinearMath/btPoolAllocator.h
#chmod 644 src/BulletDynamics/ConstraintSolver/btSliderConstraint.cpp
#chmod 644 src/BulletDynamics/ConstraintSolver/btSliderConstraint.h
sed -i 's|-I@CMAKE_INSTALL_PREFIX@/@INCLUDE_INSTALL_DIR@|-I@INCLUDE_INSTALL_DIR@|' bullet.pc.cmake

sed -i 's|BulletRobotics||' Extras/CMakeLists.txt
sed -i 's|obj2sdf||' Extras/CMakeLists.txt

%build
%cmake \
    -DBUILD_BULLET2_DEMOS=OFF \
    -DBUILD_CPU_DEMOS=OFF \
    -DBUILD_EXTRAS=OFF \
    -DBUILD_OPENGL3_DEMOS=OFF \
    -DBUILD_UNIT_TESTS=OFF \
    -DINSTALL_EXTRA_LIBS=ON \
    -DOpenGL_GL_PREFERENCE=GLVND \
    -DUSE_DOUBLE_PRECISION=ON \
    -DBUILD_EXTRAS=ON \
    -DBUILD_INVERSE_DYNAMIC_EXTRA=OFF \
    -DBUILD_BULLET_ROBOTICS_GUI_EXTRA=OFF \
    -DBUILD_BULLET_ROBOTICS_EXTRA=OFF \
    -DBUILD_OBJ2SDF_EXTRA=OFF \
    -DBUILD_SERIALIZE_EXTRA=ON \
    -DBUILD_CONVEX_DECOMPOSITION_EXTRA=OFF \
    -DBUILD_HACD_EXTRA=OFF \
    -DBUILD_GIMPACTUTILS_EXTRA=OFF \
    -DINCLUDE_INSTALL_DIR=%{_includedir}/%{name}
%make_build

%install
%make_install -C build

# install libs from Extras
pushd Extras
find . -name '*.so*' -exec cp -a {} %{buildroot}%{_libdir} \;
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 537 |21cr|bully-1.4.00-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion 1.4-00

Summary:	WPS brute force attack
Name:		bully
Version:	1.4.00
Release:	1
License:	GPLv3
Group:		Networking/Other
Url:		https://github.com/kimocoder/bully
Source0:	https://github.com/kimocoder/bully/archive/refs/tags/1.4-00/%{name}-%{oversion}.tar.gz
Patch0:     rosa-install.patch
BuildRequires:	pkgconfig(libpcap)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	aircrack-ng-devel
BuildRequires:	pixiewps

%description
Bully is a new implementation of the WPS brute force attack, 
written in C. It is conceptually identical to other programs, 
in that it exploits the (now well known) design flaw in the 
WPS specification. It has several advantages over the original 
reaver code. These include fewer dependencies, improved memory 
and cpu performance, correct handling of endianness, and a more 
robust set of options. It runs on Linux, and was specifically 
developed to run on embedded Linux systems (OpenWrt, etc) 
regardless of architecture.

%files
%doc *.md
%{_bindir}/%{name}

#--------------------------------------------
%prep
%setup -qn %{name}-%{oversion}
%patch0 -p1
pushd src
find . -type f -exec chmod -x {} \;
popd
chmod -x *.md

%build
cd src
%setup_compile_flags
%make


%install
%makeinstall_std -C src



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 538 |21cr|bumprace-1.5.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drive the ship to exit
Name:		bumprace
Epoch:		1
Version:	1.5.8
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.linux-games.com/bumprace
Source0:	https://github.com/karlb/bumprace/archive/bumprace-%{version}.tar.gz
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(sdl) >= 1.1.5
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_image)

%description
BumpRace is a simple arcade game. You've to get from the start to the finish
line without crashing into deadly blocks. This game is really easy to learn!

%files
%doc AUTHORS ChangeLog FAQ NEWS README
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}
%make


%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Bumprace
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

install -D -m644 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m644 %{SOURCE2} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 539 |21cr|buoh-0.8.2-0.gitac3dd2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit ac3dd21f46e90d08a959bfa5d42a913f01cd6462
%define commit_short %(echo %{commit} | head -c6)

Summary:	It aims to help the comic lovers
Name:		buoh
Version:	0.8.2
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/buoh
Source0:	https://github.com/GNOME/buoh/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
It aims to help the comic lovers by providing an easy way of browsing and
reading their favourites online comic strips.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_appdatadir}/org.gnome.%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.*.xml
%{_datadir}/%{name}/comics/comics.xml
%{_iconsdir}/hicolor/*x*/apps/%{name}.png

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 540 |21cr|burgerspace-1.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		burgerspace
Version:	1.9.4
Release:	1
Summary:	A Burgertime(TM) clone
License:	GPLv2+
Group:		Games/Arcade
URL:		http://sarrazip.com/dev/burgerspace.html
Source0: 	http://perso.b2b2c.ca/sarrazip/dev/%{name}-%{version}.tar.gz
Source1:	%{name}-16x16.png.bz2
Source2:	%{name}-32x32.png.bz2
Source3:	%{name}-48x48.png.bz2
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	flatzebra-devel >= 0.1.6


%description
Clone of the Burgertime video game.  You are a chef that must walk
over hamburger ingredients in a maze while avoiding enemies.

Use the arrow keys to move, the left Ctrl key to throw pepper, and
P to pause the game and resume it. The Escape key quits the game.

%files
%doc AUTHORS COPYING NEWS README THANKS
%{_gamesbindir}/burgerspace
%{_gamesbindir}/burgerspace-server
%{_datadir}/%{name}/
%{_mandir}/man6/burgerspace.6*
%{_mandir}/man6/burgerspace-server.6*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/*
%{_datadir}/pixmaps/*.png
#------------------------------------------------------

%prep
%setup -q

%build
%configure --bindir=%{_gamesbindir}
%make

%install
%makeinstall_std

#icon
%__mkdir_p %{buildroot}%{_iconsdir}
%__mkdir_p %{buildroot}%{_miconsdir}
%__mkdir_p %{buildroot}%{_liconsdir}
bzcat %{SOURCE1} > %{buildroot}%{_miconsdir}/%{name}.png
bzcat %{SOURCE2} > %{buildroot}%{_iconsdir}/%{name}.png
bzcat %{SOURCE3} > %{buildroot}%{_liconsdir}/%{name}.png

%__rm -fr %{buildroot}%{_defaultdocdir}/%{name}-*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 541 |21cr|butt-0.1.41-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	BUTT (Broadcast Using This Tool) is an easy to use, multi-OS streaming tool
Name:		butt
Version:	0.1.41
Release:	2
License:	GPL-2.0
Group:		Networking/Other
Url:		https://danielnoethen.de/butt/
Source0:	https://danielnoethen.de/butt/release/%{version}/butt-%{version}.tar.gz
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fdk-aac)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	portmidi-devel
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	liblame-devel

%description
BUTT (Broadcast Using This Tool) is an easy to use, multi-OS streaming tool.
It supports SHOUTcast and Icecast and runs on Linux, Mac OS X and Windows (64 bit only since version 0.1.20).
The main purpose of BUTT is to stream live audio data from your computers mic or line input to a Shoutcast
or Icecast server. If you want you can also record your session.
BUTT is NOT able to stream audio files of any kind.

%files -f %{name}.lang
%doc NEWS README AUTHORS
%license COPYING
%{_bindir}/butt
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_datadir}/metainfo/*.xml
%{_datadir}/pixmaps/*.xpm
#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

# force install desktop files
cp -rf ./usr/share/* %{buildroot}%{_datadir}/


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 542 |21cr|bvi-1.4.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A vi-like binary file editor
Name:		bvi
Version:	1.4.1
Release:	11
License:	GPLv2+
Group:		Editors
Url:		http://bvi.sourceforge.net/
Source0:	http://sourceforge.net/projects/bvi/files/bvi/%{version}/bvi-%{version}.src.tar.gz
BuildRequires:	pkgconfig(ncurses)

%description
bvi is a display-oriented editor for binary files, based on the vi
text editor. If you are familiar with vi, just start the editor and
begin to edit! If you never heard about vi, maybe bvi is not the
best choice for you.

%files
%doc README COPYING CHANGES CREDITS
%{_bindir}/bvi
%{_bindir}/bmore
%{_bindir}/bview
%{_bindir}/bvedit
%{_mandir}/man1/bvi.1*
%{_mandir}/man1/bmore.1*
%{_mandir}/man1/bview.1*
%{_mandir}/man1/bvedit.1*
%{_datadir}/bmore.help

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --libdir=%{_datadir}
make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_libdir}

install -m 755 bvi %{buildroot}%{_bindir}/bvi
install -m 755 bmore %{buildroot}%{_bindir}/bmore
install -m 644 bvi.1 %{buildroot}%{_mandir}/man1/bvi.1
install -m 644 bmore.1 %{buildroot}%{_mandir}/man1/bmore.1
install -m 644 bmore.help %{buildroot}%{_datadir}/bmore.help
ln -sf bvi %{buildroot}%{_bindir}/bview
ln -sf bvi %{buildroot}%{_bindir}/bvedit
echo ".so man1/bvi.1" > %{buildroot}%{_mandir}/man1/bview.1
echo ".so man1/bvi.1" > %{buildroot}%{_mandir}/man1/bvedit.1
chmod 644 README COPYING CHANGES CREDITS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 543 |21cr|bwm-ng-0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Console-based live network and disk io bandwidth monitor
Name:		bwm-ng
Version:	0.6.3
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		http://gropp.org/?id=projects&sub=bwm-ng
#https://github.com/vgropp/bwm-ng
Source0:	http://gropp.org/bwm-ng/bwm-ng-%{version}.tar.gz
BuildRequires:	pkgconfig(ncursesw)

%description
Bandwidth Monitor NG is a small and simple console-based live
network and disk io bandwidth monitor for Linux, BSD, Solaris, Mac
OS X and others.

Short list of features:
- supports /proc/net/dev, netstat, getifaddr, sysctl, kstat,
  /proc/diskstats, /proc/partitions, IOKit, devstat and libstatgrab
- unlimited number of interfaces/devices supported
- interfaces/devices are added or removed dynamically from list
- white-/blacklist of interfaces/devices
- output of KB/s, Kb/s, packets, errors, average, max and total sum
- output in curses, plain console, CSV or HTML
- configfile

%files
%doc README AUTHORS ChangeLog NEWS THANKS bwm-ng.conf-example bwm-ng.css
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure \
	--with-ncurses \
	--with-partitions \
	--with-procnetdev \
	--without-libstatgrab
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 544 |21cr|bw-whois-5.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Enhanced WHOIS client on steroids

Name:		bw-whois
Version:	5.0
Release:	6
License:	GPL or Artistic
Group:          Networking/Other
URL:		http://whois.bw.org
Source0:	whois-%{version}.tar.bz2
Patch0:		whois-config.diff
BuildArch:      noarch
BuildRequires:  perl-devel

%description
BW Whois is a whois client designed to work with the new "Shared
Registration System" whois introduced 1 December 1999. This new
system has proved to be remarkably disorganized and inconsistent,
resulting in tremendous confusion for those of us who need to
find the ownership of a domain now and then.

%prep

%setup -q -n whois-%{version}
%patch0 -p1

%build

%install

install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{perl_vendorlib}
install -d %{buildroot}%{_mandir}/man1

install -m755 whois %{buildroot}%{_bindir}/%{name}
install -m644 whois.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -m644 whois.conf %{buildroot}%{_sysconfdir}/%{name}/
install -m644 tld.conf %{buildroot}%{_sysconfdir}/%{name}/
install -m644 sd.conf %{buildroot}%{_sysconfdir}/%{name}/
install -m644 bwInclude.pm %{buildroot}%{perl_vendorlib}/

%clean

%files
%doc DISCLAIMER HISTORY INSTALL README create_whois.sql whois-*.html whois.txt
%config(noreplace) %{_sysconfdir}/%{name}/tld.conf
%config(noreplace) %{_sysconfdir}/%{name}/whois.conf
%config(noreplace) %{_sysconfdir}/%{name}/sd.conf
%{_bindir}/%{name}
%{perl_vendorlib}/bwInclude.pm
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 545 |21cr|byobu-5.133-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _files_listed_twice_terminate_build 0


Summary:	Profiles for the GNU screen manager
Name:		byobu
Version:	5.133
Release:	1
License:	GPLv3+
Group:		Terminals
URL:		http://byobu.co/index.html
Source0:	https://launchpad.net/byobu/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz
Patch0:		byobu_5.127-desktop.patch
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util
BuildArch:	noarch

# Do not drop TTY req. Sflo
Requires:	screen
Requires:	python3
Requires:	newt
Requires:	gettext
#From X xterm-256color .Sflo
Requires:	ncurses-extraterms
# lauched as byobu, tmux also needed in X .Sflo
Requires:	tmux >= 1.9
# ctail needs it for colorize.
Suggests:	ccze

%description
byobu includes a set of profiles for the GNU screen window
manager. These profiles are quite useful on server machines which are
not running a graphical desktop. The 'screen' command provides a
number of advanced features are not necessarily exposed in the default
profile. These profiles provide features such as status bars, clocks,
notifiers (reboot-required, updates-available), etc. The
profile-switcher allows users to quickly switch their .screenrc to any
of the available profiles.

%files -f %{name}.lang
%doc README.* COPYING ChangeLog usr/share/doc/byobu/help.*.txt
%{_bindir}/*
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_appdatadir}/*.xml
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/sounds
%{_datadir}/dbus-1/services/*
%{_mandir}/man*/*.1.*
%config(noreplace) %{_sysconfdir}/%{name}/backend
%config(noreplace) %{_sysconfdir}/%{name}/socketdir
%config(noreplace) %{_sysconfdir}/profile.d/Z97-byobu.sh

#-------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
autoreconf -fiv

%build
%configure --sysconfdir=%{_sysconfdir}
%make

%install
%makeinstall_std
# lang
for po in po/*.po
do
    lang=${po#po/}
    lang=${lang%.po}
    mkdir -p %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/
    msgfmt ${po} -o %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}.mo
done

# desktop
desktop-file-install usr/share/byobu/desktop/%{name}.desktop \
  --dir %{buildroot}%{_datadir}/applications

chmod -x  %{buildroot}%{_datadir}/applications/%{name}.desktop
rm -fr %{buildroot}%{_datadir}/byobu/desktop

# appdata  
mkdir -p %{buildroot}%{_appdatadir}
cp -pr usr/share/appdata/%{name}.appdata.xml \
  %{buildroot}%{_appdatadir}/%{name}.appdata.xml  
  
# icons in DE
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size usr/share/byobu/pixmaps/byobu.svg \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

  
#
install -Dm644 usr/share/sounds/byobu/%{name}.ogg \
  %{buildroot}%{_datadir}/sounds/%{name}/%{name}.ogg

%find_lang %{name}

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 546 |21cr|bytelist-1.0.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A java library for lists of bytes
Name:		bytelist
Version:	1.0.15
Release:	1
Group:		Development/Java
License:	CPL or GPLv2+ or LGPLv2+
URL:		https://github.com/jruby/bytelist
Source0:	https://github.com/jruby/bytelist/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
BuildRequires:	ant
BuildRequires:	ant-junit
BuildRequires:	java-devel
BuildRequires:	java-rpmbuild
BuildRequires:	jcodings
BuildRequires:	jpackage-utils
BuildRequires:	junit
BuildArch:	noarch
Requires:	java
Requires:	jcodings
Requires:	jpackage-utils

%description
A small java library for manipulating lists of bytes.


%prep
%setup -qn %{name}-%{name}-%{version}

%build
export CLASSPATH=$(build-classpath junit jcodings)
mkdir -p lib
%ant

%install
mkdir -p %{buildroot}%{_javadir}

cp -p lib/%{name}-1.0.2.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

%check
export CLASSPATH=$(build-classpath junit jcodings)
%ant test

%files
%{_javadir}/*
%{_mavenpomdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 547 |21cr|bzflag-2.4.24-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		bzflag
Summary:	A multiplayer 3D tank battle game
Version:	2.4.24
Release:	2
Epoch:		1
License:	LGPLv2+
Group:		Games/Arcade
Url:		https://www.bzflag.org/
# Devel tree: https://github.com/BZFlag-Dev/bzflag
Source0:	https://download.bzflag.org/bzflag/source/%{version}/%{name}-%{version}.tar.bz2
Source1:	bzflag.appdata.xml
Source100:	%{name}.rpmlintrc
BuildRequires:	chrpath
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
BuildConflicts:	freetds-devel

%description
BZFlag is a multiplayer 3D tank battle game. It's one of the most popular
games ever on Silicon Graphics systems.

%files
%doc README ChangeLog README.Linux
%{_gamesbindir}/bz*
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so
%{_mandir}/man5/bzw.5*
%{_mandir}/man6/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_appdatadir}/%{name}.appdata.xml

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--bindir=%{_gamesbindir}	\
	--datadir=%{_gamesdatadir}	\
	--disable-static		\
	--enable-robots			\
	--libdir=%{_libdir}/%{name}	\
	--with-SDL=2
%make

%install
%makeinstall_std

# Install the maps that dont get installed
cp -a misc/maps/ %{buildroot}%{_gamesdatadir}/%{name}/

# Install our stuff
install -d %{buildroot}%{_appdatadir}
install -m 0644 %{SOURCE1} %{buildroot}%{_appdatadir}/

# Install icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -resize $size data/%{name}-256x256.png %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

# Put the .desktop file in the right place and massage it
install -d %{buildroot}%{_datadir}/applications
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
	--set-key=Exec --set-value="%{name}" \
	--set-key=Icon --set-value="%{name}" \
	--delete-original \
	%{buildroot}%{_gamesdatadir}/%{name}/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 548 |21cr|C-0.06-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	C
Summary: 	Pseudo-interpreter for C syntax
Version: 	0.06
Release: 	7

Source:		http://labs.cybozu.co.jp/blog/kazuho/archives/c/%{name}-%{version}.tar.gz
URL:		http://labs.cybozu.co.jp/blog/kazuhoatwork/2006/01/c.php
License:	GPLv2+
Group:		Development/C

%description
C (pronounced large-C) is a pseudo-interpreter of the C programming language.

Without the need of manual compilation, developers can rapidly create scripts
or write one-liners using the C programming language that runs at native-code
speed.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

%clean

%files
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 549 |21cr|c2050-0.4-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Driver for the Lexmark 2050 printer
Name:		c2050
Version:	0.4
Release:	20
Group:		System/Printing
License:	GPL
URL:		http://www.prato.linux.it/~mnencia/lexmark2050
Source0:	http://www.prato.linux.it/~mnencia/lexmark2050/%{name}-%{version}.tar.gz
Patch0:		c2050-0.3-looplimits.patch
Conflicts:	printer-utils = 2007
Conflicts:	printer-filters = 2007

%description
Lexmark 2050 Color Jetprinter printer driver.

%prep

%setup -q
%patch0 -p0 -b .looplimits

%build
%{__cc} %{optflags} %{ldflags} -o c2050 c2050.c

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}

install -m0755 c2050 %{buildroot}%{_bindir}/
install -m0755 ps2lexmark %{buildroot}%{_bindir}/
install -m0755 ps2monolexmark %{buildroot}%{_bindir}/

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc README COPYING
%attr(0755,root,root) %{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 550 |21cr|c2070-0.99-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lexmark 2070 Printer color driver
Name:		c2070
Version:	0.99
Release:	19
Group:		System/Printing
License:	GPL
URL:		http://www.linuxprinting.org/show_driver.cgi?driver=%{name}
Source0:	ftp://mirror.linuxsoft.cz/pool/5865/%{name}-%{version}.tar.gz
Patch0:		c2070-0.99-looplimits.patch
Conflicts:	printer-utils = 2007
Conflicts:	printer-filters = 2007

%description
This filter allows to color print in a Lexmark 2070 (windows GDI) printer.

%prep

%setup -q
%patch0 -p1 -b .looplimits

%build
%{__cc} %{optflags} %{ldflags} -o c2070 c2070.c

%install
rm -rf %{buildroot}

install -d %{buildroot}/%{_bindir}
install -m0755 c2070 %{buildroot}/%{_bindir}

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc LICENSE README
%attr(0755,root,root) %{_bindir}/c2070

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 551 |21cr|c3270-3.3.14ga7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Curses-based 3270 Emulator
Name:		c3270
Version:	3.3.14ga7
Release:	5
License:	MIT
Group:		Terminals
Url:		http://www.geocities.com/SiliconValley/Peaks/7814/
Source0:	http://downloads.sourceforge.net/project/x3270/x3270/%{version}/suite3270-%{version}-src.tgz
Patch0:		c3270-3.3-readline6.3.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
Requires:	x3270

%description
Complete IBM 3278/3279 emulation, TN3270E support, structured
fields, color xterm emulation, highly configurable.

%files
%doc html/*.html README
%{_sysconfdir}/x3270/ibm_hosts
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-3.3
%patch0 -p1

%build
%configure \
	--without-pr3287

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_bindir}/x3270if

install -d %{buildroot}%{_mandir}/man1
install -m644 %{name}.man %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 552 |21cr|cabal-install-3.2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

Name:           cabal-install
Version:        3.2.0.0
Release:        1
Summary:        The command-line interface for Cabal and Hackage
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{name}
Source0:        https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Source10:       cabal-install.sh
# backport sdist fix from https://github.com/haskell/cabal/issues/5813
Patch0:         https://github.com/haskell/cabal/commit/442869918260a7bb3f0cb0698eaeaeb6dae2c4f6.patch
# https://build.opensuse.org/package/view_file/openSUSE:Factory/cabal-install/ghc-8.10-support-for-3.2.patch
Patch1:         cabal-3.2-ghc-8.10-opensuse.patch
Patch2:         https://github.com/haskell/cabal/commit/83983fcc4ba16d7969ba36f4174daf27de00a38e.patch
Patch3:         cabal-install-dependensy.patch
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-HTTP-prof
BuildRequires:  ghc-async-prof
BuildRequires:  ghc-base16-bytestring-prof
BuildRequires:  ghc-cryptohash-sha256-prof
BuildRequires:  ghc-echo-prof
BuildRequires:  ghc-edit-distance-prof
BuildRequires:  ghc-filepath-prof
BuildRequires:  ghc-hackage-security-prof
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-lukko-prof
BuildRequires:  ghc-network-prof
BuildRequires:  ghc-network-uri-prof
BuildRequires:  ghc-pretty-prof
BuildRequires:  ghc-process-prof
BuildRequires:  ghc-random-prof
BuildRequires:  ghc-resolv-prof
BuildRequires:  ghc-stm-prof
BuildRequires:  ghc-tar-prof
BuildRequires:  ghc-text-prof
BuildRequires:  ghc-time-prof
BuildRequires:  ghc-unix-prof
BuildRequires:  ghc-zlib-prof
BuildRequires:  pkgconfig(zlib)

# for /etc/bash_completion.d/
Requires:       filesystem
# nslookup used for mirror dns
Requires:       bind-utils
# for /etc/profile.d/
Requires:       setup
Recommends:     ghc
Recommends:     zlib-devel

%description
The 'cabal' command-line program simplifies the process of managing Haskell
software by automating the fetching, configuration, compilation and
installation of Haskell libraries and programs.


%prep
%setup -q
%patch0 -p2 -b .sdist
%patch1 -p2 -b .ghc8.10
#cabal-tweak-dep-ver base '< 4.14' '< 4.15'
%patch2 -p2 -b .base16
%patch3 -p1
#cabal-tweak-dep-ver base16-bytestring '< 0.2' '< 2'
cabal-tweak-dep-ver random '< 1.2' '< 1.3'

%build
%ghc_bin_build


%install
%ghc_bin_install

install -pm 644 -D -t %{buildroot}%{_datadir}/bash-completion/completions/ bash-completion/cabal

install -pm 644 -D -t %{buildroot}%{_sysconfdir}/profile.d/ %{SOURCE10}


%files
%license LICENSE
%doc README.md changelog
%{_bindir}/cabal
%config(noreplace) %{_sysconfdir}/profile.d/cabal-install.sh
%{_datadir}/bash-completion/completions/cabal
%{_mandir}/man1/cabal.1*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 553 |21cr|cableswig-3.20.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Used to create interfaces to interpreted languages
Name:		cableswig
Version:	3.20.0
Release:	10
License:	BSDish
Group:		Development/C++
Url:		http://www.itk.org
Source0:	http://public.kitware.com/pub/itk/v3.20/CableSwig-ITK-%{version}.tar.gz

# From fedora gccxml package
#		Source is created from a cvs checkout
#		Files for the Borland compiler are excluded for license reasons
#		cvs -d:pserver:anoncvs@www.gccxml.org:/cvsroot/GCC_XML co \
#			-D '2011-02-11 23:59:59Z' -d gccxml-20110211 gccxml
#		tar -z -c --exclude CVS --exclude Borland \
#			-f gccxml-20110211.tar.gz gccxml-20110211
Source1:	gccxml-0.9.0-20140828.tar.gz
BuildRequires:	cmake
Requires:	gccxml = 1:%{version}
Provides:	cable = %{EVRD}
# aarch64 is not supported
ExclusiveArch:	%{ix86} x86_64

%description
CableSwig is used to create interfaces (i.e. "wrappers") to interpreted
languages such as Tcl and Python. It was created to produce wrappers for ITK
because the toolkit uses C++ structures that SWIG cannot parse (deeply nested
template instantiations). CableSwig is a combination tool that uses  GCC_XML as
the c++ parser. The input files are  Cable style input files. The XML produced
from the Cable/GCC_XML input files are then parsed and feed into a modified
version of  SWIG. SWIG is a software development tool that connects programs
written in C and C++ with a variety of high-level programming languages. It is
used to generate the language bindings to the target language. Currently, Tcl
and Python are supported.

%files
%{_libdir}/CableSwig
%{_bindir}/cableidx
%{_bindir}/cswig

#----------------------------------------------------------------------------

%package -n gccxml
Summary:	The XML output extension to GCC
Group:		Development/C++
Epoch:		1

%description -n gccxml
Development tools that work with programming languages benefit from their
ability to understand the code with which they work at a level comparable to a
compiler. C++ has become a popular and powerful language, but parsing it is a
very challenging problem. This has discouraged the development of tools meant
to work directly with the language. 

There is one open-source C++ parser, the C++ front-end to GCC, which is
currently able to deal with the language in its entirety. The purpose of the
GCC-XML extension is to generate an XML description of a C++ program from GCC's
internal representation. Since XML is easy to parse, other development tools
will be able to work with C++ programs without the burden of a complicated C++
parser. 

GCC-XML was developed by Brad King at Kitware to be used by CABLE, which was
developed as part of the NLM Insight Segmentation and Registration Toolkit
project.

%files -n gccxml
%{_datadir}/gccxml*
%{_datadir}/doc/*
%{_mandir}/man*/*
%{_bindir}/gccxml
%{_bindir}/gccxml_cc1plus

#----------------------------------------------------------------------------

%prep
%setup -q -n CableSwig-%{version} -a1
find -name CVS -type d | xargs rm -rf

rm -fr GCC GCC_XML
mv gccxml-0.9.0-20140828/GCC{,_XML} .
pushd GCC
%config_update
popd

%build
%global optflags %{optflags} -fgnu89-inline
%cmake \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DCMAKE_BUILD_TYPE:STRING=Release \
	-DCMAKE_SKIP_RPATH:BOOL=ON \
	-DLIB_DIRECTORY_NAME:STRING=%{_lib} \
	-DCMAKE_CXX_COMPILER:PATH=%{_bindir}/c++ \
	-DCMAKE_C_COMPILER:PATH=%{_bindir}/gcc
# 3.20.0 has a problem with paralell build when generating yacc scanner
make

%install
%makeinstall_std -C build

# fix lib path
%if "%{_lib}" == "lib64"
mv %{buildroot}/usr/lib %{buildroot}/%{_libdir}
%endif

# mv gccxml to std path
mv %{buildroot}/%{_libdir}/CableSwig/share %{buildroot}/%{_prefix}
mv %{buildroot}/%{_libdir}/CableSwig/bin/* %{buildroot}/%{_bindir}
rmdir %{buildroot}/%{_libdir}/CableSwig/bin

# set correct path
cat > %{buildroot}/%{_libdir}/CableSwig/CableSwigConfig.cmake <<EOF
SET(CableSwig_VERSION_MAJOR "0")
SET(CableSwig_VERSION_MINOR "1")
SET(CableSwig_VERSION_PATCH "0")

SET(CableSwig_cableidx_EXE "%{_bindir}/cableidx")
SET(CableSwig_cswig_EXE "%{_bindir}/cswig")
SET(CableSwig_gccxml_EXE "%{_bindir}/gccxml")
SET(CableSwig_DEFAULT_LIB "%{_libdir}/CableSwig/SWIGLib")
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 554 |21cr|cacti-1.2.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude pear(/usr/share/php/adodb/adodb.inc.php)|pear(/usr/share/php-adodb/adodb.inc.php)|/usr/bin/php

Summary:	Php frontend for rrdtool
Name:		cacti
Version:	1.2.25
Release:	2
License:	GPL
Group:		System/Servers
URL:		http://www.cacti.net
Source0:	http://www.cacti.net/downloads/%{name}-%{version}.tar.gz
Source1:	cacti-httpd.conf
Source2:	cacti.logrotate
Source3:	cacti.README.urpmi
Source4:	%{name}.cron
# CVE-2023-46490
# https://github.com/Cacti/cacti/commit/58a980f335980ab57659420053d89d4e721ae3fc
Patch0:		Address-multiple-security-issues.patch
# https://github.com/Cacti/cacti/commit/73d9a60e24d6d826e6343b94d833b48c28b68643
Patch1:		Fix-Purify-from-GitHub.patch
Requires:	apache-mod_php >= 2.0.54
Requires:	php-adodb
Requires:	php-cli
Requires:	php-gd
Requires:	php-snmp
Requires:	php-xml
Requires:	php-sockets
Requires:	net-snmp-utils
Requires:	net-snmp
Requires:	rrdtool
BuildArch:	noarch

Requires: php-pdo
Requires: php-xml
Requires: php-ctype
Requires: php-dom
Requires: php-filter
Requires: php-iconv
Requires: php-imap
Requires: php-intl
Requires: php-json
Requires: php-ldap
Requires: php-mbstring
Requires: php-openssl
Requires: php-pcntl
Requires: php-posix
Requires: php-session
Requires: php-sockets
# PHP 7.x?
Recommends: php-spl
Requires: php-zlib

%description
Cacti is a complete frontend to RRDTool. It stores all of the
necessary information to create graphs and populate them with
data in a MySQL database. The frontend is completely PHP
driven.

%prep
%autosetup -p1

%build

%install
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/
install -d -m 0755 cache/ %{buildroot}/%{_localstatedir}/lib/%{name}/cache
install -d -m 0755 cli/ %{buildroot}/%{_localstatedir}/lib/%{name}/cli
install -d -m 0775 log/ %{buildroot}/%{_localstatedir}/log/%{name}/
touch %{buildroot}/%{_localstatedir}/log/%{name}/%{name}.log
install -d -m 0755 rra/ %{buildroot}/%{_localstatedir}/lib/%{name}/rra/
install -d -m 0755 scripts/ %{buildroot}/%{_localstatedir}/lib/%{name}/scripts/
mv *.php %{buildroot}/%{_datadir}/%{name}/
mv cache/ %{buildroot}/%{_localstatedir}/lib/%{name}/
mv cli/ %{buildroot}/%{_localstatedir}/lib/%{name}/
mv rra/ %{buildroot}/%{_localstatedir}/lib/%{name}/
mv scripts/ %{buildroot}/%{_localstatedir}/lib/%{name}/
install -p -D -m 0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/cron.d/%{name}
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/httpd/conf.d/cacti.conf
install -D -m 0644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/cacti

cp -ar formats/ images/ include/ install/ lib/ locales/ mibs/ plugins/ resource/ %{buildroot}%{_datadir}/%{name}
cp %{SOURCE3} ./docs/README.urpmi
mv %{buildroot}/%{_datadir}/%{name}/include/config.php %{buildroot}/%{_sysconfdir}/%{name}/db.php
chmod +x %{buildroot}/%{_datadir}/%{name}/cmd.php %{buildroot}/%{_datadir}/%{name}/poller.php
ln -s %{_localstatedir}/lib/%{name}/cache %{buildroot}/%{_datadir}/%{name}/
ln -s %{_localstatedir}/lib/%{name}/cli %{buildroot}/%{_datadir}/%{name}/
ln -s %{_sysconfdir}/%{name}/db.php %{buildroot}/%{_datadir}/%{name}/include/config.php
ln -s %{_localstatedir}/lib/%{name}/rra %{buildroot}/%{_datadir}/%{name}/
ln -s %{_localstatedir}/lib/%{name}/scripts %{buildroot}/%{_datadir}/%{name}/
ln -s %{_localstatedir}/log/%{name}/ %{buildroot}/%{_datadir}/%{name}/log
ln -s %{_datadir}/%{name}/lib %{buildroot}/%{_localstatedir}/lib/%{name}/
ln -s %{_datadir}/%{name}/include %{buildroot}/%{_localstatedir}/lib/%{name}/

%pre
useradd -d %{_datadir}/%{name} -r -s /sbin/nologin cacti 2> /dev/null || :

%post
if [ $1 -eq 1 ] ; then
        %systemd_postun_with_restart httpd.service
fi

%postun
%systemd_postun_with_restart httpd.service

%files
%doc docs/ README.md cacti.sql LICENSE
%dir %{_sysconfdir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_localstatedir}/lib/%{name}
%dir %{_localstatedir}/lib/%{name}/cli
%dir %attr(-,apache,apache) %{_localstatedir}/lib/%{name}/scripts
%dir %attr(-,cacti,apache) %{_localstatedir}/log/%{name}/
%config(noreplace) %attr(-,cacti,apache) %{_localstatedir}/log/%{name}/%{name}.log
%config(noreplace) %{_sysconfdir}/cron.d/cacti
%config(noreplace) %{_sysconfdir}/httpd/conf.d/cacti.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0640,cacti,apache) %config(noreplace) %{_sysconfdir}/%{name}/db.php
%{_datadir}/%{name}/*.php
%{_datadir}/%{name}/cache
%{_datadir}/%{name}/cli
%{_datadir}/%{name}/formats/
%{_datadir}/%{name}/images/
%{_datadir}/%{name}/include/
%{_datadir}/%{name}/install/
%{_datadir}/%{name}/lib/
%{_datadir}/%{name}/locales/*
%{_datadir}/%{name}/log
%{_datadir}/%{name}/mibs
%{_datadir}/%{name}/plugins/
%{_datadir}/%{name}/rra
%{_datadir}/%{name}/scripts
%{_localstatedir}/lib/%{name}/scripts/*[^p]
%{_localstatedir}/lib/%{name}/scripts/.htaccess
%attr(-,root,root) %{_localstatedir}/lib/%{name}/scripts/*.php
%attr(-,apache,apache) %{_datadir}/%{name}/resource/
%attr(-,cacti,root) %{_localstatedir}/lib/%{name}/rra/
%attr(-,apache,apache) %{_localstatedir}/lib/%{name}/cache/
%attr(-,root,root) %{_localstatedir}/lib/%{name}/cli/*php
%attr(-,root,root) %{_localstatedir}/lib/%{name}/cli/.htaccess
%attr(-,root,root) %{_localstatedir}/lib/%{name}/include
%attr(-,root,root) %{_localstatedir}/lib/%{name}/lib

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 555 |21cr|cacti-cactid-0.8.6k-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A backend data gatherer for cacti
Name:		cacti-cactid
Version:	0.8.6k
Release:	18
License:	GPL
Group:		System/Servers
URL:		http://www.cacti.net/
Source0:	http://www.cacti.net/downloads/cactid/%{name}-%{version}.tar.gz
Patch0:		cacti-cactid-0.8.6k-format_not_a_string_literal_and_no_format_arguments.diff
Requires:	cacti
BuildRequires:	mysql-devel
BuildRequires:	net-snmp-devel

%description
This code represents the future replacement for cmd.php. As you
can see from the short changelog, development on this code has
only just begun. It has been included in the main release for
*testing* purposes only! Please stick to cmd.php for now.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p0

%build
%serverbuild
# x86_64 fix
export LDFLAGS="-L%{_libdir}"
%configure
%make

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sbindir}

install -m0644 cactid.conf %{buildroot}%{_sysconfdir}/
install -m0755 cactid %{buildroot}%{_sbindir}/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog INSTALL README LICENSE*
%config(noreplace) %{_sysconfdir}/cactid.conf
%attr(0755,root,root) %{_sbindir}/cactid

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 556 |21cr|cacti-plugin-weathermap-0.97a-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name weathermap
%global __requires_exclude /usr/bin/php

Name:       cacti-plugin-%{upstream_name}
Version:    0.97a
Release:    5
Summary:    Weathermap plugin for cacti

License:    GPL
Group:      Monitoring
Url:        http://www.network-weathermap.com/
Source0:    http://www.network-weathermap.com/files/php-weathermap-%{version}.zip
Requires:   cacti
BuildArch:  noarch

%description
Weathermap is a network visualisation tool, to take data you already have and
show you an overview of your network in map form.
"The map is in use by a Infrastructure team and coupled with the Cacti Thold
plugin for alert generation. The map monitors a collection of Leased,SDSL and
ADSL lines."
Support is built in for RRD, MRTG (RRD and old log-format), and tab-delimited
text files. Other sources are via plugins or external scripts.

%prep
%setup -q -n weathermap

%install

install -d -m 755 %{buildroot}%{_datadir}/cacti/plugins/weathermap
cp -ap * %{buildroot}%{_datadir}/cacti/plugins/weathermap

pushd %{buildroot}%{_datadir}/cacti/plugins/weathermap
rm -f CHANGES README COPYING
popd

%clean

%files
%doc CHANGES COPYING README
%{_datadir}/cacti/plugins/weathermap

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 557 |21cr|cadaver-0.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command-line WebDAV client
Name:		cadaver
Version:	0.24
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://www.webdav.org/cadaver/
Source0:	https://notroj.github.io/cadaver/%{name}-%{version}.tar.gz
Patch0:		cadaver-mkdir_p.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
A command-line WebDAV client. Supports file upload, download,
on-screen display, name-space operations (move/copy), collection
creation and deletion, and locking operations.

%files -f %{name}.lang
%doc NEWS TODO FAQ README.* ChangeLog
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# configure: error: cannot find required auxiliary files: config.rpath
#touch config.rpath

%build
autoconf
%configure \
	--with-neon=%{_prefix} \
	--with-ssl

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 558 |21cr|cadaver-gui-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		cadaver-gui
Version:	1.0
Release:	1
Summary: GUI for cadaver - a command-line WebDAV client
Group:		System/Configuration/Networking
License:	GPLv3
URL:		https://github.com/AKotov-dev/Cadaver-GUI
Source0:	https://github.com/AKotov-dev/Cadaver-GUI/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	cadaver
Requires:	gtk2

%description
GUI for cadaver - a command-line WebDAV client

%files
%doc ../README.md
%license ../LICENSE
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#------------------------------------------------------------------
%prep
%setup -n Cadaver-GUI-%{version}/%{name}

# remove prebuild file
rm -f cadaver_gui

%build
lazbuild --build-all *.lpi

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp ./cadaver_gui %{buildroot}%{_datadir}/%{name}
cp ./all/usr/share/icons/* %{buildroot}%{_datadir}/pixmaps/
cp ./all/usr/share/applications/* %{buildroot}%{_datadir}/applications/
cp ./languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 559 |21cr|cadence-0.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}
%global	__requires_exclude /usr/bin/pulseaudio

%define	oname Cadence

Summary:	Set of tools useful for audio production
Name:		cadence
Version:	0.9.2
Release:	2
License:	GPLv2+
Group:		Sound
Url:			https://github.com/falkTX/Cadence
Source0:	https://github.com/falkTX/Cadence/archive/%{oname}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		cadence-0.8.1-mga-fixDesktopFiles.patch
BuildRequires:	python3-qt5
BuildRequires:	python3-qt5-devel
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(python3) >= 3.2
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
# Cannot be noarch because of the binaries in cadence-tools
#BuildArch:	noarch
Requires:	jack
Requires:	ladish
Requires:	pulseaudio
Requires:	python3 >= 3.5
Requires:	python3-dbus
Requires:	python3-qt5-dbus
Requires:	python3-qt5-core
Requires:	python3-qt5-gui
Requires:	python3-qt5-opengl
Requires:	python3-qt5-svg
Requires:	python3-qt5-widgets
Requires:	python3-qt5-xml
Requires:	%{name}-data = %{EVRD}
Requires:	%{name}-tools = %{EVRD}
Requires:	catarina = %{EVRD}
Requires:	catia = %{EVRD}
Requires:	claudia = %{EVRD}
Recommends:		a2jmidid
Recommends:		jack_capture
Recommends:		pulseaudio-module-jack

%description
Cadence is a set of tools useful for audio production. It's being developed by
falkTX, using Python3 and Qt5 (and some C++ where needed).
This package contains the main Cadence application.

%files
%doc COPYING README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/src/%{name}.py
%{_datadir}/%{name}/src/ui_cadence.py
%{_datadir}/%{name}/src/ui_cadence_*.py
%{_datadir}/%{name}/src/__pycache__/cadence.cpython*
%{_datadir}/%{name}/src/__pycache__/ui_cadence*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_sysconfdir}/xdg/autostart/%{name}-session-start.desktop
%{_sysconfdir}/X11/xinit/xinitrc.d/61-%{name}-session-inject.sh

#--------------------------------------------------------------------

%package data
Summary:	Set of tools useful for audio production

%description data
This package contains the shared data and python modules.

%files data
%doc COPYING
%{_datadir}/%{name}/pulse2loopback/*.pa
%{_datadir}/%{name}/src/shared.py
%{_datadir}/%{name}/src/shared_cadence.py
%{_datadir}/%{name}/src/shared_canvasjack.py
%{_datadir}/%{name}/src/shared_settings.py
%{_datadir}/%{name}/src/__pycache__/shared*
%{_datadir}/%{name}/src/resources_rc.py
%{_datadir}/%{name}/src/__pycache__/resources_rc.cpython*
%{_datadir}/%{name}/src/ui_settings_app.py
%{_datadir}/%{name}/src/__pycache__/ui_settings_app*
%{_datadir}/%{name}/src/jacklib.py
%{_datadir}/%{name}/src/jacklib_helpers.py
%{_datadir}/%{name}/src/__pycache__/jacklib*
%{_datadir}/%{name}/src/patchcanvas.py
%{_datadir}/%{name}/src/patchcanvas_theme.py
%{_datadir}/%{name}/src/__pycache__/patchcanvas*
%{_datadir}/%{name}/src/systray.py
%{_datadir}/%{name}/src/__pycache__/systray.cpython*
%{_datadir}/%{name}/src/canvaspreviewframe.py
%{_datadir}/%{name}/src/__pycache__/canvaspreviewframe.cpython*
%{_datadir}/%{name}/src/clickablelabel.py
%{_datadir}/%{name}/src/__pycache__/clickablelabel.cpython*

#--------------------------------------------------------------------

%package tools
Summary:	Set of tools useful for audio production
Requires:	%{name}-data = %{EVRD}
Requires:	jack_capture

%description tools
This package contains the small tools used in Cadence.

%files tools
%doc COPYING
%{_bindir}/%{name}-*
%{_datadir}/%{name}/src/cadence_aloop_daemon.py
%{_datadir}/%{name}/src/cadence_session_start.py
%{_datadir}/%{name}/src/__pycache__/cadence_*
%{_datadir}/%{name}/src/jacksettings.py
%{_datadir}/%{name}/src/__pycache__/jacksettings.cpython*
%{_datadir}/%{name}/src/logs.py
%{_datadir}/%{name}/src/__pycache__/logs.cpython*
%{_datadir}/%{name}/src/render.py
%{_datadir}/%{name}/src/__pycache__/render.cpython*
%{_datadir}/%{name}/src/ui_logs.py
%{_datadir}/%{name}/src/__pycache__/ui_logs.cpython*
%{_datadir}/%{name}/src/ui_render.py
%{_datadir}/%{name}/src/__pycache__/ui_render.cpython*
%{_datadir}/%{name}/src/ui_settings_jack.py
%{_datadir}/%{name}/src/__pycache__/ui_settings_jack*
%{_datadir}/%{name}/pulse2jack/

#--------------------------------------------------------------------

%package -n catarina
Summary:	Set of tools useful for audio production
Requires:	%{name}-data = %{EVRD}

%description -n catarina
Catarina is a testing ground for the 'PatchCanvas' module used in the Cadence
tools.

%files -n catarina
%doc COPYING
%{_bindir}/catarina
%{_datadir}/%{name}/src/catarina.py
%{_datadir}/%{name}/src/__pycache__/catarina.cpython*
%{_datadir}/%{name}/src/ui_catarina.py
%{_datadir}/%{name}/src/ui_catarina_*.py
%{_datadir}/%{name}/src/__pycache__/ui_catarina*
%{_datadir}/applications/catarina.desktop
%{_datadir}/icons/hicolor/*/apps/catarina.*

#--------------------------------------------------------------------

%package -n catia
Summary:	JACK Audio Patchbay with A2J Bridge integration from Cadence
Requires:	%{name}-tools = %{EVRD}
Recommends:	a2jmidid

%description -n catia
Catia is a nice JACK Audio Patchbay with A2J Bridge integration. It also
includes Jack Transport support and the ability to render Jack projects.

%files -n catia
%doc COPYING
%{_bindir}/catia
%{_datadir}/%{name}/src/catia.py
%{_datadir}/%{name}/src/__pycache__/catia.cpython*
%{_datadir}/%{name}/src/ui_catia.py
%{_datadir}/%{name}/src/__pycache__/ui_catia*
%{_datadir}/applications/catia.desktop
%{_datadir}/icons/hicolor/*/apps/catia.*

#--------------------------------------------------------------------

%package -n claudia
Summary:	Graphical User Interface to LADISH from Cadence
Requires:	%{name}-tools = %{EVRD}
Requires:	ladish
Recommends:		a2jmidid

%description -n claudia
Claudia is a Graphical User Interface to LADISH. It has more features than
gladish, including Jack Transport, Configurable Canvas, App Templates,
Render projects (real-time or freewheel mode)

%files -n claudia
%doc COPYING
%{_bindir}/claudia
%{_bindir}/claudia-launcher
%{_datadir}/%{name}/src/claudia.py
%{_datadir}/%{name}/src/claudia_database.py
%{_datadir}/%{name}/src/claudia_launcher.py
%{_datadir}/%{name}/src/__pycache__/claudia*
%{_datadir}/%{name}/src/ui_claudia.py
%{_datadir}/%{name}/src/ui_claudia_*.py
%{_datadir}/%{name}/src/__pycache__/ui_claudia*
%{_datadir}/%{name}/icons/
%{_datadir}/%{name}/templates/
%{_datadir}/applications/claudia*.desktop
%{_datadir}/icons/hicolor/*/apps/claudia*

#--------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python3|#!%{__python3}|'
rm -R data/unity/


%build
CFLAGS="%{optflags}" %make


%install
%makeinstall_std PREFIX=%{_prefix}

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/{pulse2loopback,pulse2jack}/*.pa
chmod +x %{buildroot}%{_datadir}/%{name}/src/*.py
chmod -x %{buildroot}%{_datadir}/%{name}/src/resources_rc.py
chmod -x %{buildroot}%{_datadir}/%{name}/src/ui_*
chmod -x %{buildroot}%{_datadir}/%{name}/templates/LMMS.mmp
chmod -x %{buildroot}%{_datadir}/%{name}/templates/Carla.carxp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 560 |21cr|caffeine-2.9.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A system applet that allows to temporarily inhibit screensaver and sleep mode
Name:		caffeine
Version:	2.9.4
Release:	3
Epoch:		1
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://launchpad.net/caffeine
Source0:	https://launchpad.net/~caffeine-developers/+archive/ubuntu/ppa/+files/%{name}_%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-gi
BuildRequires:	python3-distribute
Requires:	appindicator-gtk3
Requires:	python3-ewmh
Requires:	python3-gi
Requires:	python3-xlib
Requires:	python3-pkg-resources
Requires:	typelib(AppIndicator3)
BuildArch:	noarch

%description
Caffeine is a system applet that allows the user to temporarily
inhibit both the screensaver and the sleep power saving mode, simply
by clicking on it. This could be useful for example when watching
long flash videos or playing certain full screen games that don't
inhibit the screensaver by themselves

%files -f %{name}-indicator.lang
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/caffeine-indicator/glade/*.glade
%{_datadir}/pixmaps/caffeine.png
%{_iconsdir}/hicolor/*
%{_iconsdir}/ubuntu-mono-dark/*
%{_iconsdir}/ubuntu-mono-light/*
%{_mandir}/man?/*
%{py3_platsitedir}/*
%{_sysconfdir}/xdg/autostart/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} --install-lib=%{py3_platsitedir} --prefix=/usr
find %{buildroot} -name "*png" -exec chmod a+r {} \;

%find_lang %{name}-indicator

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 561 |21cr|cagibi-0.2.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An experimental cache/proxy system for the SSDPpart of UPnP
Name:		cagibi
Version:	0.2.0
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.kde.org
Source0:	http://fr2.rpmfind.net/linux/KDE/stable/cagibi/%{name}-%{version}.tar.bz2

BuildRequires:	automoc4
BuildRequires:	kde4-macros
BuildRequires:	qt4-devel

%description
Cagibi aims to be to SSDP what Avahi is to DNS-SD/Zeroconf:
a cache caching all service/device announcements on the network in a
local process as well as being a broker serving local announcements to
the network.
Both should be done by a single daemon process, accessable via D-Bus
on the system bus. The cache should offer active queries, so another
process is only informed about changes about UPnP devices it is
interested in.

%files
%{_kde_bindir}/cagibid
%{_sysconfdir}/cagibid.conf
%{_sysconfdir}/dbus-1/system.d/org.kde.Cagibi.conf
%{_datadir}/dbus-1/interfaces/org.kde.Cagibi.*
%{_datadir}/dbus-1/system-services/org.kde.Cagibi.service

#--------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 562 |21cr|cairo-dock-3.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define urlver %(echo %{version}|cut -d. -f1,2)
# Needed to build help plugin
%define _disable_ld_no_undefined 1

Summary:	A light and eye-candy dock to launch your programs easily
Name:		cairo-dock
Version:	3.4.1
Release:	2
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://launchpad.net/cairo-dock-core
Source0:	http://launchpad.net/cairo-dock-core/%{urlver}/%{version}/+download/%{name}-%{version}.tar.gz
Source1:	cairo-dock_ru.po.tar.gz
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pangox)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtst)
Recommends:	cairo-dock-plugins = %{version}
Recommends:	cairo-dock-help = %{EVRD}
Recommends:	cairo-dock-themes

%description
cairo-dock uses cairo to render nice graphics, and Glitz to use hardware
acceleration. It's fully configurable and can be a taskbar too. You can
easily plug applets into it.

%files -f %{name}.lang
%{_bindir}/*
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/plug-ins
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.svg
%{_mandir}/man1/cairo-dock.1.*
%{_iconsdir}/hicolor/*/apps/%{name}.png

#---------------------------------------------------------------------
%define major 3
%define libname %mklibname gldi %{major}

%package -n %{libname}
Summary:	Library files for cairo-dock
Group:		System/Libraries

%description -n %{libname}
cairo-dock uses cairo to render nice graphics, and Glitz to use hardware
acceleration. It's fully configurable and can be a taskbar too. You can
easily plug applets into it.

This package provides the libraries for cairo-dock functions.

%files  -n %{libname}
%{_libdir}/libgldi.so.%{major}*

#---------------------------------------------------------------------
%package devel
Summary:	Development files for cairo-dock
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description devel
cairo-dock uses cairo to render nice graphics, and Glitz to use hardware
acceleration. It's fully configurable and can be a taskbar too. You can
easily plug applets into it.

This package provides the include files and library for cairo-dock functions.

%files devel
%{_includedir}/%{name}
%{_libdir}/libgldi.so
%{_libdir}/pkgconfig/*.pc

#---------------------------------------------------------------------

%package help
Summary:	This package provides plugin "help"
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}

%description help
This package provides plugin "help".

%files help
%{_libdir}/%{name}/libcd-Help.so
%{_datadir}/%{name}/plug-ins/Help

#---------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake -DCMAKE_INSTALL_LIBDIR=lib
%make

%install
%makeinstall_std -C build
chmod 755 %{buildroot}%{_libdir}/libgldi.so.*

%find_lang %{name}

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 \
		%{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -strip -resize $size data/cairo-dock.svg \
		%{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 563 |21cr|cairo-dock-plugins-3.4.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define urlver %(echo %{version}|cut -d. -f1,2)
%define packagename cairo-dock

%define major 1
%define libcdapplet %mklibname cdapplet %{major}
%define devcdapplet %mklibname cdapplet -d

Summary:	Plugins for cairo-dock
Name:		cairo-dock-plugins
Version:	3.4.1
Release:	7
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://launchpad.net/cairo-dock-plug-ins
Source0:	http://launchpad.net/cairo-dock-plug-ins/%{urlver}/%{version}/+download/cairo-dock-plug-ins-%{version}.tar.gz
Source1:	cairo-dock-plugins_ru.po.tar.gz
Source10:	%{name}.rpmlintrc
# From Arch Linux:
Patch0:		cairo-dock-plugins-3.0.2-applet-host-ias.patch
# cmake logic is messed up in 3.2.0
Patch1:		cairo-dock-plugins-3.2.0-xfce-cmake.patch
Patch2:		cairo-dock-plugins-3.4.0-mcs.patch
# https://forums.gentoo.org/viewtopic-p-8617635.html
Patch3:		cairo-dock-plug-ins-3.4.1-gcc10-extern.patch
BuildRequires:	cmake
BuildRequires:	ruby
BuildRequires:	vala
BuildRequires:	cairo-dock-devel >= %{version}
BuildRequires:	libetpan-devel
BuildRequires:	lm_sensors-devel
#BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dbusmenu-gtk3-0.4)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gldi)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glib-sharp-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libexif)
#disabled until cairo-dock-plugins builds successfully with libgnome-menu-3.0
#BuildRequires:	pkgconfig(libgnome-menu-3.0)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ndesk-dbus-1.0)
BuildRequires:	pkgconfig(ndesk-dbus-glib-1.0)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zeitgeist-1.0)

Requires:	cairo-dock >= %{version}
Requires:	%{packagename}-clock
Requires:	%{packagename}-dustbin
Requires:	%{packagename}-logout
Requires:	%{packagename}-musicPlayer
Requires:	%{packagename}-rendering
Requires:	%{packagename}-terminal
Requires:	%{packagename}-powermanager
Requires:	%{packagename}-systray
Requires:	%{packagename}-weather
Requires:	%{packagename}-xgamma
Requires:	%{packagename}-cairo-penguin
Requires:	%{packagename}-tomboy
Requires:	%{packagename}-wifi
Requires:	%{packagename}-netspeed
Requires:	%{packagename}-switcher
Requires:	%{packagename}-dbus
Requires:	%{packagename}-showdesktop
Requires:	%{packagename}-slider
Requires:	%{packagename}-stack
Requires:	%{packagename}-System-monitor
Requires:	%{packagename}-clipper
Requires:	%{packagename}-animated-icons
Requires:	%{packagename}-desklet-rendering
Requires:	%{packagename}-dialog-rendering
Requires:	%{packagename}-drop_indicator
Requires:	%{packagename}-icon-effect
Requires:	%{packagename}-illusion
Requires:	%{packagename}-motion_blur
Requires:	%{packagename}-quick-browser
Requires:	%{packagename}-show_mouse
Requires:	%{packagename}-status-notifier
Requires:	%{packagename}-toons
Requires:	%{packagename}-keyboard-indicator
Requires:	%{packagename}-dnd2share
Requires:	%{packagename}-kde-integration
Requires:	%{packagename}-rssreader
Requires:	%{packagename}-Folders
Requires:	%{packagename}-remote-control
Requires:	%{packagename}-composite-manager
Requires:	%{packagename}-screenshot
Obsoletes:	%{packagename}-weblets <= %{EVRD}

%description
cairo-dock uses cairo to render nice graphics, and Glitz to use hardware
acceleration. It's fully configurable and can be a taskbar too. You can
easily plug applets into it.

This package contains various plugins for cairo-dock.

%files

#---------------------------------------------------------------------

%package i18n
Summary:	Translation files for %{name}
Group:		Graphical desktop/Other
Requires:	%{packagename} >= %{version}

%description i18n
This package contains common translations for %{name}.

%files i18n -f %{name}.lang

#---------------------------------------------------------------------

%package -n %{packagename}-animated-icons
Summary:	That package provides plugin "Animated Icons"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-animated-icons
This plug-in provides many different animations for your icons.

%files -n %{packagename}-animated-icons
%{_datadir}/cairo-dock/plug-ins/Animated-icons
%{_libdir}/cairo-dock/libcd-Animated-icons.so

#---------------------------------------------------------------------

%package -n %{packagename}-clock
Summary:	That package provides plugin "Clock"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-clock
Display time and date in your dock with the clock applet! 
2 view are available: numeric and analogic.
It can derach itself to be the perfect clone of CairoClock. It can warn you
with alarms, can display a calendar, and allow you to setup time and date.

%files -n %{packagename}-clock
%{_datadir}/cairo-dock/plug-ins/clock
%{_libdir}/cairo-dock/libcd-clock.so

#---------------------------------------------------------------------

%package -n %{packagename}-composite-manager
Summary:	That package provides plugin "Composite Manager"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}
Requires:	%{packagename}-shared-files = %{version}

%description -n %{packagename}-composite-manager
This applet allows you to toggle the composite ON/OFF.

%files -n %{packagename}-composite-manager
%{_datadir}/cairo-dock/plug-ins/Composite-Manager
%{_libdir}/cairo-dock/libcd-Composite-Manager.so

#---------------------------------------------------------------------

%package -n %{packagename}-desklet-rendering
Summary:	That package provides plugin "Desklet Rendering"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-desklet-rendering
This module provides different views for your desklets.

%files -n %{packagename}-desklet-rendering
%{_datadir}/cairo-dock/plug-ins/desklet-rendering
%{_libdir}/cairo-dock/libcd-desklet-rendering.so

#---------------------------------------------------------------------

%package -n %{packagename}-dialog-rendering
Summary:	That package provides plugin "Dialog Rendering"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-dialog-rendering
This plug-in provides some dialog decorators for dialog bubbles.

%files -n %{packagename}-dialog-rendering
%{_datadir}/cairo-dock/plug-ins/dialog-rendering
%{_libdir}/cairo-dock/libcd-dialog-rendering.so

#---------------------------------------------------------------------

%package -n %{packagename}-dnd2share
Summary:	That package provides plugin "dnd2share"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-dnd2share
This applet lets you share files easily :
Drag-and-drop a file on the icon to upload it to one of the available hosting
sites. It supports many sites, like DropBox, Imageshack, pastebin, etc
You can upload text, image, video, and files.
The resulting URL is automatically stored in the clipboard to be directly
copied by CTRL+v. It can keep an history of your last uploads to retrieve them
without any account. You'll need to install 'curl' and 'wget' to upload the
data.

%files -n %{packagename}-dnd2share
%{_datadir}/cairo-dock/plug-ins/dnd2share
%{_libdir}/cairo-dock/libcd-dnd2share.so

#---------------------------------------------------------------------

%package -n %{packagename}-drop_indicator
Summary:	That package provides plugin "Drop Indicator"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-drop_indicator
This plug-in displays an animated indicator when you drop something in the
dock.

%files -n %{packagename}-drop_indicator
%{_datadir}/cairo-dock/plug-ins/drop-indicator
%{_libdir}/cairo-dock/libcd-drop_indicator.so

#---------------------------------------------------------------------

%package -n %{packagename}-dustbin
Summary:	That package provides plugin "Dustbin"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-dustbin
Manage your disks space with this trash applet!
It can handle several trash directories, threw files or unmount disks with
drag'n'drop, warn you if you use too much space, and display usefull info
about your dustbins.

%files -n %{packagename}-dustbin
%{_datadir}/cairo-dock/plug-ins/dustbin
%{_libdir}/cairo-dock/libcd-dustbin.so

#---------------------------------------------------------------------

%package -n %{packagename}-icon-effect
Summary:	That package provides plugin "Icon Effect"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-icon-effect
This plug-in adds many special effects to your icons.

%files -n %{packagename}-icon-effect
%{_datadir}/cairo-dock/plug-ins/icon-effect
%{_libdir}/cairo-dock/libcd-icon-effect.so

#---------------------------------------------------------------------

%package -n %{packagename}-illusion
Summary:	That package provides plugin "Illusion"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-illusion
This plug-in provides animations for appearance & disappearance of icons.

%files -n %{packagename}-illusion
%{_datadir}/cairo-dock/plug-ins/illusion
%{_libdir}/cairo-dock/libcd-illusion.so

#---------------------------------------------------------------------

%package -n %{packagename}-kde-integration
Summary:	That package provides plugin "KDE Integration"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-kde-integration
This applet provides functions for a better integration into a KDE
environnement. It is auto-activated, so you don't need to activate it.
It is designed for KDE4.

%files -n %{packagename}-kde-integration
%{_datadir}/cairo-dock/plug-ins/kde-integration
%{_libdir}/cairo-dock/libcd_kde-integration.so

#---------------------------------------------------------------------

%package -n %{packagename}-logout
Summary:	That package provides plugin "Logout"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-logout
A very simple applet that adds an icon to log out from your session.

%files -n %{packagename}-logout
%{_datadir}/cairo-dock/plug-ins/logout
%{_libdir}/cairo-dock/libcd-logout.so

#---------------------------------------------------------------------

%package -n %{packagename}-motion_blur
Summary:	That package provides plugin "Motion Blur"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-motion_blur
This plug-in adds a motion blur effect on docks.

%files -n %{packagename}-motion_blur
%{_datadir}/cairo-dock/plug-ins/motion-blur
%{_libdir}/cairo-dock/libcd-motion_blur.so

#---------------------------------------------------------------------

%package -n %{packagename}-musicPlayer
Summary:	That package provides plugin "Music Player"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-musicPlayer
This applet lets you control any music player. Left click to Play/Pause,
middle-click to play Next song. Scroll up/down to play previous/next song.
You can drag and drop songs on the icon to put them in the queue,and jpeg
image to use as cover.

%files -n %{packagename}-musicPlayer
%{_datadir}/cairo-dock/plug-ins/musicPlayer
%{_libdir}/cairo-dock/libcd-musicPlayer.so

#---------------------------------------------------------------------

%package -n %{packagename}-quick-browser
Summary:	That package provides plugin "Quick Browser"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-quick-browser
This applet lets you browse a folder and its sub-folders very quickly.
You can set up a shortkey to pop up the menu. Midlle-click will open
the main folder.

This applet can be instanciated several times, if you want to browse
different folders.

%files -n %{packagename}-quick-browser
%{_datadir}/cairo-dock/plug-ins/quick_browser
%{_libdir}/cairo-dock/libcd-quick-browser.so

#---------------------------------------------------------------------

%package -n %{packagename}-rendering
Summary:	That package provides plugin "Rendering"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-rendering
This module adds different views to your dock. Any dock or sub-dock can be
displayed with the view of your choice. Currently, 3D-plane, Caroussel,
Parabolic and Rainbow views are provided

%files -n %{packagename}-rendering
%{_datadir}/cairo-dock/plug-ins/rendering
%{_libdir}/cairo-dock/libcd-rendering.so

#---------------------------------------------------------------------

%package -n %{packagename}-terminal
Summary:	That package provides plugin "Terminal"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-terminal
Add a terminal to your dock! You can drag'n'drop files or text into it
and select an action

%files -n %{packagename}-terminal
%{_datadir}/cairo-dock/plug-ins/terminal
%{_libdir}/cairo-dock/libcd-terminal.so

#---------------------------------------------------------------------

%package -n %{packagename}-powermanager
Summary:	That package provides a powermanager plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-powermanager
A power manager for laptop's battery. It works with ACPI and DBus.

%files -n %{packagename}-powermanager
%{_datadir}/cairo-dock/plug-ins/powermanager
%{_libdir}/cairo-dock/libcd-powermanager.so
%{_datadir}/cairo-dock/gauges/Battery-Mono
%{_datadir}/cairo-dock/gauges/Battery

#---------------------------------------------------------------------

%package -n %{packagename}-shared-files
Summary:	Shared files for plugins
Group:		Graphical desktop/Other

%description -n %{packagename}-shared-files
This package provides shared files for plugins.

%files -n %{packagename}-shared-files
%{_datadir}/cairo-dock/plug-ins/shared-files

#---------------------------------------------------------------------

%package -n %{packagename}-show_mouse
Summary:	That package provides plugin "Show Mouse"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-show_mouse
This plug-in draw some animation around the cursor when it's inside a dock
desklet.

%files -n %{packagename}-show_mouse
%{_datadir}/cairo-dock/plug-ins/show_mouse
%{_libdir}/cairo-dock/libcd-show_mouse.so

#---------------------------------------------------------------------

%package -n %{packagename}-systray
Summary:	That package provides a systray plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-systray
Add a systray to your dock!

%files -n %{packagename}-systray
%{_datadir}/cairo-dock/plug-ins/systray
%{_libdir}/cairo-dock/libcd-systray.so

#---------------------------------------------------------------------

%package -n %{packagename}-toons
Summary:	That package provides plugin "Toons"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-toons
This plug-in draw some animation around the cursor when it's inside a dock
desklet.

%files -n %{packagename}-toons
%{_datadir}/cairo-dock/plug-ins/Toons
%{_libdir}/cairo-dock/libcd-Toons.so

#---------------------------------------------------------------------

%package -n %{packagename}-weather
Summary:	That package provides a weather plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-weather
This applet displyas weather into your dock. It can detach itself to be a
totally eye-candy 3D Desklet. You can have many valuable info by (middle)
clicking on the icons. Data are provided by www.weather.com

%files -n %{packagename}-weather
%{_datadir}/cairo-dock/plug-ins/weather
%{_libdir}/cairo-dock/libcd-weather.so

#---------------------------------------------------------------------

%package -n %{packagename}-xgamma
Summary:	That package provides a Xgamma plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-xgamma
Setup the gama of your screen directly from the dock. It is a simple port of
xgamma. Quickly setup gamma with left click, or more accurately with middle
click.

%files -n %{packagename}-xgamma
%{_datadir}/cairo-dock/plug-ins/Xgamma
%{_libdir}/cairo-dock/libcd-Xgamma.so

#---------------------------------------------------------------------

%package -n %{packagename}-cairo-penguin
Summary:	That package provides a Cairo-Penguin plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-cairo-penguin
Add a lively Penguin in your dock! Left click to change animation,
right click to disturb him ^_^.
Images are from Pingus, Inspiration is from xpenguins.

%files -n %{packagename}-cairo-penguin
%{_datadir}/cairo-dock/plug-ins/Cairo-Penguin
%{_libdir}/cairo-dock/libcd-Cairo-Penguin.so

#---------------------------------------------------------------------

%package -n %{packagename}-slider
Summary:	That package provides a slider plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-slider
The slider applet is a basic image slider.

%files -n %{packagename}-slider
%{_datadir}/cairo-dock/plug-ins/slider
%{_libdir}/cairo-dock/libcd-slider.so

#---------------------------------------------------------------------

%package -n %{packagename}-stack
Summary:	That package provides a stack plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-stack
This applet allows you to build a stack of items, just like the Stack
applet of MacOS X. Items can be files, folders, URL, or even pieces of text.

%files -n %{packagename}-stack
%{_datadir}/cairo-dock/plug-ins/stack
%{_libdir}/cairo-dock/libcd-stack.so

#---------------------------------------------------------------------

%package -n %{packagename}-System-monitor
Summary:	That package provides plugin "System Monitor"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-System-monitor
This applet shows you the CPU load, RAM usage, graphic card temperature, etc.
Middle click on the icon to get some valuable info. Left click on the icon to
get a list of the most ressources using programs.

You can instanciate this applet several times to show different values each
time.

%files -n %{packagename}-System-monitor
%{_datadir}/cairo-dock/plug-ins/System-monitor
%{_libdir}/cairo-dock/libcd-system-monitor.so

#---------------------------------------------------------------------

%package -n %{packagename}-wifi
Summary:	That package provides a wifi plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-wifi
The wifi applet show you the signal strenght of the first active connection.

%files -n %{packagename}-wifi
%{_datadir}/cairo-dock/plug-ins/wifi
%{_libdir}/cairo-dock/libcd-wifi.so
%{_datadir}/cairo-dock/gauges/Wifi_default

#---------------------------------------------------------------------

%package -n %{packagename}-xfce-integration
Summary:	That package provides a xfce-integration plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-xfce-integration
This applet provides functions for a better integration into XFCE.

%files -n %{packagename}-xfce-integration
%{_datadir}/cairo-dock/plug-ins/xfce-integration
%{_libdir}/cairo-dock/libcd_xfce-integration.so

#---------------------------------------------------------------------

%package -n %{packagename}-tomboy
Summary:	That package provides a tomboy plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-tomboy
Control your TomBoy's notes directly in the dock!

%files -n %{packagename}-tomboy
%{_datadir}/cairo-dock/plug-ins/tomboy
%{_libdir}/cairo-dock/libcd-tomboy.so

#---------------------------------------------------------------------

%package -n %{packagename}-netspeed
Summary:	That package provides a netspeed plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-netspeed
the netspeed applet show you the bit rate of your internet connection
and make some stats on it.

%files -n %{packagename}-netspeed
%{_datadir}/cairo-dock/plug-ins/netspeed
%{_libdir}/cairo-dock/libcd-netspeed.so

#---------------------------------------------------------------------

%package -n %{packagename}-switcher
Summary:	That package provides a switcher plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}
Requires:	%{packagename}-shared-files = %{version}

%description -n %{packagename}-switcher
The new and soon wonderful switcher applet

%files -n %{packagename}-switcher
%{_datadir}/cairo-dock/plug-ins/switcher
%{_libdir}/cairo-dock/libcd-switcher.so

#---------------------------------------------------------------------

%package -n %{packagename}-dbus
Summary:	That package provides a Dbus plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-dbus
This plug-in lets extern application interact on the dock. The communication
between both sides is based on Dbus.

%files -n %{packagename}-dbus
%{_datadir}/cairo-dock/plug-ins/Dbus
%{_libdir}/cairo-dock/libcd-Dbus.so
%{_libdir}/cairo-dock/cairo-dock-launcher-API-daemon
%{_prefix}/lib/cli/cairo-dock-plug-ins/CDApplet.dll

#---------------------------------------------------------------------

%package -n %{packagename}-interface-python3
Summary:	This package contains a Python interface for the DBus plug-in
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}
Requires:	python3

%description -n %{packagename}-interface-python3
This package provides library of Cairo-Dock D-Bus interface for Python.

%files -n %{packagename}-interface-python3
%{python3_sitelib}/CDApplet-1.0-py*.egg-info
%{python3_sitelib}/CDApplet.py*
%{python3_sitelib}/CDBashApplet-1.0-py*.egg-info
%{python3_sitelib}/CDBashApplet.py*
%{python3_sitelib}/CairoDock.py*
%{python3_sitelib}/__pycache__/C*.pyc

#---------------------------------------------------------------------

%package -n %{packagename}-showdesktop
Summary:	That package provides a showDesktop plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}
Requires:	%{packagename}-shared-files = %{version}

%description -n %{packagename}-showdesktop
This applet let you acces quickly to your desktop.

%files -n %{packagename}-showdesktop
%{_datadir}/cairo-dock/plug-ins/showDesktop
%{_libdir}/cairo-dock/libcd-showDesktop.so

#---------------------------------------------------------------------

%package -n %{packagename}-gnome-integration
Summary:	That package provides a gnome-integration plugins
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-gnome-integration
This applet provides functions for a better integration into GNOME.

%files -n %{packagename}-gnome-integration
%{_datadir}/cairo-dock/plug-ins/gnome-integration
%{_libdir}/cairo-dock/libcd_gnome-integration.so

#---------------------------------------------------------------------

%package -n %{packagename}-clipper
Summary:	That package provides plugin "Clipper"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-clipper
This applet keeps a trace of the clipboard and mouse selection, so that
you can recall them quickly. It's a clone of the well-know Klipper.

%files -n %{packagename}-clipper
%{_datadir}/cairo-dock/plug-ins/Clipper
%{_libdir}/cairo-dock/libcd-Clipper.so

#---------------------------------------------------------------------

%package -n %{packagename}-keyboard-indicator
Summary:	That package provides plugin "Keyboard Indicator"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-keyboard-indicator
This applet lets you control the keyboard layout.

%files -n %{packagename}-keyboard-indicator
%{_datadir}/cairo-dock/plug-ins/keyboard-indicator
%{_libdir}/cairo-dock/libcd-keyboard-indicator.so

#---------------------------------------------------------------------

%package -n %{packagename}-rssreader
Summary:	That package provides plugin "RSS Reader"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-rssreader
This applet is an RSS/Atom feed reader. You can instanciate it as many
times as you want.

%files -n %{packagename}-rssreader
%{_libdir}/cairo-dock/libcd-rssreader.so
%{_datadir}/cairo-dock/plug-ins/RSSreader

#---------------------------------------------------------------------

%package -n %{packagename}-Folders
Summary:	That package provides plugin "Folders"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-Folders
This applet imports folders inside the Dock.

%files -n %{packagename}-Folders
%{_libdir}/cairo-dock/libcd-Folders.so
%{_datadir}/cairo-dock/plug-ins/Folders

#---------------------------------------------------------------------

%package -n %{packagename}-remote-control
Summary: That package provides plugin "Remote Control"
Group: Graphical desktop/Other
Requires: %{name}-i18n = %{version}

%description -n %{packagename}-remote-control
This plug-in lets you control your dock from the keyboard or even
a remote controller.

%files -n %{packagename}-remote-control
%{_libdir}/cairo-dock/libcd-Remote-Control.so
%{_datadir}/cairo-dock/plug-ins/Remote-Control

#---------------------------------------------------------------------

%package -n %{packagename}-vala
Summary:	This package provides vala binding for %{packagename}
Group:		Graphical desktop/Other

%description -n %{packagename}-vala
This package provides vala binding for %{packagename}.

%files -n %{packagename}-vala
%{_datadir}/vala*/vapi/CDApplet.*

#--------------------------------------------------------------------

%package -n %{packagename}-status-notifier
Summary:	That package provides plugin "status-notifier"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-status-notifier
This package provides plugin Status Notifier for %{packagename}.

%files -n %{packagename}-status-notifier
%{_libdir}/cairo-dock/libcd-status-notifier.so
%{_libdir}/cairo-dock/status-notifier-watcher
%{_datadir}/cairo-dock/plug-ins/Status-Notifier

#---------------------------------------------------------------------

%package -n %{packagename}-recent-events
Summary:	Recent-Events applet based on Zeitgeist framework
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-recent-events
This applet is an quite complex and Gnome Activity Journal like.
Features:
* you can browse recent tracked events by categories (All,
  Document, Folder, Image, Audioa, Video, Other, Top Results)
* you can look for events (search through it and delete the searched item)
* the tracked items have thumbnails
* huge list of recent items

%files -n %{packagename}-recent-events
%{_libdir}/cairo-dock/libcd-Recent-Events.so
%{_datadir}/cairo-dock/plug-ins/Recent-Events/*

#---------------------------------------------------------------------

%package -n %{packagename}-impulse
Summary:	That package provides plugin "Impulse"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-impulse
This applet analyse the signal given by PulseAudio and provides a graphical
equalizer into the dock.

%files -n %{packagename}-impulse
%{_libdir}/cairo-dock/libcd-Impulse.so
%{_datadir}/cairo-dock/plug-ins/Impulse/*

#---------------------------------------------------------------------

%package -n %{packagename}-screenshot
Summary:	That package provides plugin "Screenshot"
Group:		Graphical desktop/Other
Requires:	%{name}-i18n = %{version}

%description -n %{packagename}-screenshot
A simple applet to quickly take screenshots.

%files -n %{packagename}-screenshot
%{_libdir}/cairo-dock/libcd-Screenshot.so
%{_datadir}/cairo-dock/plug-ins/Screenshot/*

#---------------------------------------------------------------------

%package -n %{libcdapplet}
Summary:	%{packagename} shared library
Group:		System/Libraries

%description -n %{libcdapplet}
%{packagename} shared library.

%files -n %{libcdapplet}
%{_libdir}/libCDApplet.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devcdapplet}
Summary:	%{packagename} development files
Group:		Development/Other
Requires:	%{libcdapplet} = %{EVRD}

%description -n %{devcdapplet}
%{packagename} development files.

%files -n %{devcdapplet}
%{_libdir}/libCDApplet.so
%{_libdir}/pkgconfig/CDApplet.pc

#---------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

pushd po
tar -xvzf %{SOURCE1}
popd

for i in */src/CMakeLists.txt
do
	sed -i -e 's/ SHARED/ MODULE /' $i
done
sed 's/(2,91,0)/(0,38,1)/g' -i terminal/src/terminal-widget.c

%build
%cmake
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_libdir}/cairo-dock/cairo-dock-unity-bridge

# chortcuts crash cairo dock now
rm -rf %{buildroot}%{_datadir}/cairo-dock/plug-ins/shortcuts
rm -f %{buildroot}%{_libdir}/cairo-dock/libcd-shortcuts.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 564 |21cr|cairo-dock-themes-1.6.3.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Themes for cairo-dock
Name:		cairo-dock-themes
Version:	1.6.3.1
Release:	8
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		http://www.cairo-dock.org/
Source0:	http://download.berlios.de/cairo-dock/%{name}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Patch0:		cairo-dock-themes-1.6.3.1-theme-dir.patch
BuildRequires:	pkgconfig(gldi)
Requires:	cairo-dock
BuildArch:	noarch

%description
This package contains all cairo-dock themes.

%files
%{_datadir}/cairo-dock/themes/*

#---------------------------------------------------------------------
%prep
%setup -q
%patch0 -p0

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 565 |21cr|caja-1.26.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define oname mate-file-manager

%define major 1
%define gi_major 2.0
%define libname %mklibname %{name}-extension %{major}
%define girname %mklibname %{name}-gir %{gi_major}
%define devname %mklibname %{name}-extension -d

Summary:	File manager for the MATE desktop environment
Name:		caja
Version:	1.26.0
Release:	3
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://www.mate-desktop.org/
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	nautilus_16.png
Source2:	nautilus_32.png
Source3:	nautilus_48.png
Source4:	caja-ffmpegthumbnailer.thumbnailer
# gw from Fedora, fix crash on weird file infos
# http://bugzilla.mate.org/show_bug.cgi?id=519743
Patch0:		nautilus-filetype-symlink-fix.patch
# (fc) auto-unmount ejected medias when mount points are in fstab (Mdv bug #39540)
Patch3:		nautilus-bgo350950-search-desktop.diff
# (gnome#674659) places-sidebar: don't double unref GMount objects
Patch8:		mate-file-manager-1.6.2-double_unref_GMount_objects.patch
Patch11:	caja-1.12.4-rosa-fonts.patch
Patch12:	1.26-caja-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(cairo-gobject)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(pangox)
BuildRequires:	pkgconfig(sm)
Requires:	gvfs
Requires:	mate-desktop
# We need a seperate package for other MATE apps.
Requires:	%{name}-schemas = %{EVRD}
Recommends:	%{name}-extensions
# Whitout these, caja can not connect to a secure network or WebDav
Recommends:	glib-networking
Recommends:	davfs2
Recommends:	ffmpegthumbnailer
Provides:	%{oname} = %{EVRD}

%description
Caja is the file manager and graphical shell for the MATE desktop,
that makes it easy to manage your files and the rest of your system.

It allows to browse directories on local and remote file systems,
preview files and launch applications associated with them.
It is also responsible for handling the icons on the MATE desktop.

%files -f %{name}.lang
%doc README NEWS HACKING AUTHORS
%dir %{_localstatedir}/lib/mate/desktop
%dir %{_localstatedir}/lib/mate/
%{_bindir}/*
%{_datadir}/caja
%{_datadir}/dbus-1/services/org.mate.freedesktop.FileManager1.service
%{_datadir}/metainfo/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/mime/packages/caja.xml
%{_datadir}/thumbnailers/caja-ffmpegthumbnailer.thumbnailer
%{_datadir}/icons/hicolor/*/emblems/emblem-note.png
%{_mandir}/man1/*
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%dir %{_libdir}/caja
%dir %{_libdir}/caja/extensions-2.0

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for Mate file manager
Group:		System/Libraries

%description -n %{libname}
Caja is a  file manager for the MATE desktop environment.
This package contains libraries used by Caja.

%files -n %{libname}
%doc README NEWS HACKING AUTHORS
%{_libdir}/libcaja-extension.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}

%files -n %{girname}
%doc README NEWS HACKING AUTHORS
%{_libdir}/girepository-1.0/Caja-%{gi_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing caja components
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop caja components.

%files -n %{devname}
%doc README NEWS HACKING AUTHORS
%doc ChangeLog
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gtk-doc/html/libcaja-extension
%{_datadir}/gir-1.0/Caja-%{gi_major}.gir

#----------------------------------------------------------------------------

%package schemas
Summary:	Gsettings schema files for %{name}
Group:		Graphical desktop/MATE

%description schemas
This package provides caja gsettings schema files;
needed to run caja and various other MATE applications.

%files schemas
%doc README NEWS HACKING AUTHORS
%{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
%configure \
	--disable-static \
	--disable-schemas-compile \
	--with-gtk=3.0 \
	--disable-update-mimedb

%make

%install
%makeinstall_std

mkdir -p  %{buildroot}%{_miconsdir} %{buildroot}%{_liconsdir}
cp %{SOURCE1} %{buildroot}%{_miconsdir}/caja.png
cp %{SOURCE2} %{buildroot}%{_iconsdir}/caja.png
cp %{SOURCE3} %{buildroot}%{_liconsdir}/caja.png

mkdir -p %{buildroot}%{_datadir}/thumbnailers
install -m644 %{SOURCE4} %{buildroot}%{_datadir}/thumbnailers/caja-ffmpegthumbnailer.thumbnailer

mkdir -p %{buildroot}%{_localstatedir}/lib/mate/desktop \
	%{buildroot}%{_datadir}/%{name}/default-desktop \
	%{buildroot}%{_libdir}/%{name}/extensions-2.0

#Remove unneeded MateConf convert:
rm -fr %{buildroot}%{_datadir}/MateConf

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 566 |21cr|caja-dropbox-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Dropbox extension for Caja
Name:		caja-dropbox
Version:	1.26.0
Release:	1
License:	GPLv3+ and CC-BY-ND
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org/
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	python3-docutils
BuildRequires:	python3-gi
BuildRequires:	pkgconfig(libcaja-extension)
BuildRequires:	pkgconfig(libnotify)
Recommends:	caja
Requires:	libnotify
Recommends:	python3-gpgme
Requires:	wget

%description
Dropbox extension for Caja.

%files -f %{name}.lang
%doc README AUTHORS COPYING
%{_bindir}/%{name}
%{_datadir}/applications/caja-dropbox.desktop
%{_datadir}/%{name}/emblems/emblem-dropbox*.icon
%{_datadir}/%{name}/emblems/emblem-dropbox*.png
%{_datadir}/icons/hicolor/*/apps/caja-dropbox.png
%{_datadir}/man/man1/%{name}.1.*
%{_libdir}/caja/extensions-2.0/lib%{name}.so
%{_datadir}/caja/extensions/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_iconsdir}/hicolor/*/*/*.icon

%find_lang %{name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 567 |21cr|caja-extensions-1.26.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Set of extensions for caja file manager
Name:		caja-extensions
Version:	1.26.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	caja-share-setup-instructions
Source2:	caja-share-smb.conf.example
BuildRequires:	autoconf-archive
BuildRequires:	mate-common
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcaja-extension)
BuildRequires:	pkgconfig(mate-desktop-2.0)

%description
Extensions for the caja file-browser, open-terminal, image-converter,
sendto and share.

#----------------------------------------------------------------------------

%package common
Summary:	Common files for caja-extensions
Group:		Graphical desktop/MATE
BuildArch:	noarch

%description common
Common files for caja extensions such as  open-terminal, image-converter etc.

%files common -f %{name}.lang
%doc AUTHORS README SETUP
%dir %{_datadir}/caja-extensions

#----------------------------------------------------------------------------

%package -n caja-gksu
Summary:	Caja extension for opening files or folders as root
Group:		Graphical desktop/MATE
Requires:	%{name}-common
Requires:	gksu

%description -n caja-gksu
A little plugin for caja to open files or folders as root.

%files -n caja-gksu
%doc AUTHORS README SETUP
%{_libdir}/caja/extensions-2.0/libcaja-gksu.so
%{_datadir}/caja/extensions/libcaja-gksu.caja-extension

#----------------------------------------------------------------------------

%package -n caja-image-converter
Summary:	Caja extension to mass resize images
Group:		Graphical desktop/MATE
Requires:	%{name}-common
Requires:	imagemagick

%description -n caja-image-converter
Adds a "Resize Images..." menu item to the context menu of all images. This
opens a dialog where you set the desired image size and file name. A click
on "Resize" finally resizes the image(s) using ImageMagick's convert tool.

%files -n caja-image-converter
%doc AUTHORS README SETUP
%{_libdir}/caja/extensions-2.0/libcaja-image-converter.so
%{_datadir}/caja/extensions/libcaja-image-converter.caja-extension

#----------------------------------------------------------------------------

%package -n caja-open-terminal
Summary:	Caja extension for an open terminal shortcut
Group:		Graphical desktop/MATE
Requires:	%{name}-common

%description -n caja-open-terminal
This is a proof-of-concept Caja extension which allows you to open
a terminal in arbitrary local folders.

%files -n caja-open-terminal
%doc AUTHORS README SETUP
%{_libdir}/caja/extensions-2.0/libcaja-open-terminal.so
%{_datadir}/glib-2.0/schemas/org.mate.caja-open-terminal.gschema.xml
%{_datadir}/caja/extensions/libcaja-open-terminal.caja-extension

#----------------------------------------------------------------------------

%package -n caja-sendto
Summary:	Send files from caja using with mail or IM
Group:		Graphical desktop/MATE
Requires:	%{name}-common
Provides:	%{name}-gajim  = %{EVRD}
Provides:	%{name}-email = %{EVRD}
Provides:	%{name}-evolution = %{EVRD}

%description -n caja-sendto
This application provides integration between caja and mail or IM clients.
It adds a Caja context menu component ("Send To...") and features
a dialog for insert the email or IM account which you want to send
the file/files.

%files -n caja-sendto
%doc AUTHORS README SETUP
%{_bindir}/caja-sendto
%dir %{_libdir}/caja-sendto
%dir %{_libdir}/caja-sendto/plugins
%{_libdir}/caja-sendto/plugins/libnstburn.so
%{_libdir}/caja-sendto/plugins/libnstemailclient.so
%{_libdir}/caja-sendto/plugins/libnstgajim.so
%{_libdir}/caja-sendto/plugins/libnstremovable_devices.so
%{_libdir}/caja/extensions-2.0/libcaja-sendto.so
%{_datadir}/glib-2.0/schemas/org.mate.Caja.Sendto.gschema.xml
%{_datadir}/caja/extensions/libcaja-sendto.caja-extension
%{_mandir}/man1/caja-sendto.1.*

#----------------------------------------------------------------------------

%package -n caja-sendto-pidgin
Summary:	Send files from caja to pidgin
Group:		Graphical desktop/MATE
Requires:	%{name}-common
Requires:	caja-sendto = %{EVRD}
Requires:	pidgin

%description -n caja-sendto-pidgin
This application provides integration between caja and pidgin.  It
adds a Caja context menu component ("Send To...") and features a
dialog for insert the IM account which you want to send the file/files.

%files -n caja-sendto-pidgin
%doc AUTHORS README SETUP
%{_libdir}/caja-sendto/plugins/libnstpidgin.so

#----------------------------------------------------------------------------

%package -n caja-sendto-devel
Summary:	Development libraries and headers for caja-sendto
Group:		Development/GNOME and GTK+
Requires:	%{name}-common
Requires:	caja-sendto = %{EVRD}

%description -n caja-sendto-devel
Development libraries and headers for caja-sendto.

%files -n caja-sendto-devel
%doc AUTHORS README SETUP
%dir %{_includedir}/caja-sendto
%{_includedir}/caja-sendto/caja-sendto-plugin.h
%{_libdir}/pkgconfig/caja-sendto.pc
%dir %{_datadir}/gtk-doc/html/caja-sendto
%{_datadir}/gtk-doc/html/caja-sendto/*

#----------------------------------------------------------------------------

%package -n caja-share
Summary:	Easy sharing folder via Samba (CIFS protocol)
Group:		Graphical desktop/MATE
Requires:	%{name}-common
Requires:	samba

%description -n caja-share
Caja extension designed for easier folders sharing via Samba (CIFS protocol)
in *NIX systems.

%files -n caja-share
%doc AUTHORS README SETUP
%config(noreplace) %{_sysconfdir}/samba/caja-share-smb.conf.example
%{_libdir}/caja/extensions-2.0/libcaja-share.so
%{_datadir}/caja-extensions/share-dialog.ui
%{_datadir}/caja/extensions/libcaja-share.caja-extension

#----------------------------------------------------------------------------

%package -n caja-wallpaper
Summary:	MATE file manager wallpaper extension
Group:		Graphical desktop/MATE
Requires:	%{name}-common

%description -n caja-wallpaper
Caja wallpaper extension, allows to quickly set wallpaper.

%files -n caja-wallpaper
%doc AUTHORS README SETUP
%{_libdir}/caja/extensions-2.0/libcaja-wallpaper.so
%{_datadir}/caja/extensions/libcaja-wallpaper.caja-extension

#----------------------------------------------------------------------------

%package -n caja-xattr-tags
Summary:	MATE file manager xattr-tags extension
Group:		Graphical desktop/MATE
Requires:	%{name}-common

%description -n caja-xattr-tags
Caja xattr-tags extension, allows to quickly set xattr-tags.

%files -n caja-xattr-tags
%doc AUTHORS README SETUP
%{_libdir}/caja/extensions-2.0/libcaja-xattr-tags.so
%{_datadir}/caja/extensions/libcaja-xattr-tags.caja-extension

#----------------------------------------------------------------------------

%prep
%setup -q
cp %{SOURCE1} SETUP

%build
%configure \
	--disable-schemas-compile \
	--enable-image-converter \
	--enable-open-terminal \
	--enable-sendto \
	--enable-share \
	--enable-gksu \
	--disable-static

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/samba/
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/samba/caja-share-smb.conf.example

# remove needless MateConf stuff
rm -fr %{buildroot}%{_datadir}/MateConf

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 568 |21cr|cajun-jsonapi-2.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A cross-platform C++ header library for JSON
Name:		cajun-jsonapi
Version:	2.0.3
Release:	3
License:	BSD
Group:		Development/C++
Url:		https://github.com/cajun-jsonapi/cajun-jsonapi
Source0:	https://github.com/cajun-jsonapi/cajun-jsonapi/archive/%{version}.tar.gz
BuildArch:	noarch

%description
CAJUN is a C++ API for the JSON data interchange format with an emphasis
on an intuitive, concise interface. The library provides JSON types
and operations that mimic standard C++ as closely as possible in concept
and design.

#----------------------------------------------------------------------------

%package devel
Summary:	A cross-platform C++ header library for JSON
Group:		Development/C++

%description devel
CAJUN is a C++ API for the JSON data interchange format with an emphasis
on an intuitive, concise interface. The library provides JSON types
and operations that mimic standard C++ as closely as possible in concept
and design.


%files devel
%doc Readme.txt ReleaseNotes.txt
%dir %{_includedir}/cajun
%dir %{_includedir}/cajun/json
%{_includedir}/cajun/json/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d -m755 %{buildroot}%{_includedir}/cajun/json
install -p -m644 json/* %{buildroot}%{_includedir}/cajun/json

%check
%make

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 569 |21cr|cakephp-1.3.21-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 924fb6f
%define tag 60df687

Name:		cakephp
Version:	1.3.21
Release:	3

Summary:	MVC rapid application development framework for PHP
License:	MIT
Group:		Development/PHP
URL:		http://cakephp.org/
# https://github.com/cakephp/cakephp/tarball/%{version}:
Source0:	%{name}-%{version}.tar.gz
# Fix the path to launch the console php script to an absolute path:
Patch0:		%{name}-1.3.21-mdv-fix-lib-path.patch
Patch1:		TEMP-0000000-698CF7.patch

BuildArch:	noarch

Requires:	apache-mod_php
Requires:	php-pdo
Recommends:	cakephp-cli


%description
CakePHP is a free, open-source, model-view-controller rapid development
framework for PHP. It's a foundational structure for programmers to create
web applications. CakePHP reduces development costs and helps developers
write less code, making it swiftly and with the least amount of hassle:

* Compatible with versions 4 and 5 of PHP
* Integrated CRUD for database interaction
* Application scaffolding
* Code generation
* MVC architecture
* Request dispatcher with clean, custom URLs and routes
* Built-in validation
* Fast and flexible templating (PHP syntax, with helpers)
* View Helpers for AJAX, JavaScript, HTML Forms and more
* Email, Cookie, Security, Session, and Request Handling Components
* Flexible ACL
* Data Sanitization
* Flexible Caching
* Localization
* Works from any web site directory, with little to no Apache configuration
  involved

%package cli
Summary:	CakePHP console client
Group:	 	Development/PHP

Requires:	%{name}
Requires:	php-cli

%description cli
CakePHP is a free, open-source, model-view-controller rapid development
framework for PHP. It's a foundational structure for programmers to create
web applications.

This package contains the console command-line interface to CakePHP. It
features a number of console applications that are used in concert with
other CakePHP features (like ACL or i18n) and for general use in getting you
to launch quicker.


%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
# Remove unnecessary 'empty' files and directories.  These were added
# by upstream to workaround braindead MacOS X extracting utilities
# that would silently not create empty directories:
find ./ -type f -name empty -size 0 -print0 | xargs -0 rm -f
# We don't need the msdos command launcher:
CAKEBAT=cake/console/cake.bat
[[ -f ${CAKEBAT} ]] && rm -f ${CAKEBAT}


%install
mkdir -p %{buildroot}%{_datadir}/php/%{name}/cake/console
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}/%{name}

cp -r cake/libs \
    cake/tests \
    cake/config \
    cake/*.php \
    %{buildroot}%{_datadir}/php/%{name}/cake
cp -r cake/console/libs \
    cake/console/*.php \
    %{buildroot}%{_datadir}/php/%{name}/cake/console
cp -r cake/console/cake %{buildroot}%{_bindir}/cake

cp README %{buildroot}%{_docdir}/%{name}
cp cake/*.txt %{buildroot}%{_docdir}/%{name}


%files
%{_datadir}/php/%{name}/cake/libs
%{_datadir}/php/%{name}/cake/tests
%{_datadir}/php/%{name}/cake/config
%{_datadir}/php/%{name}/cake/*.php
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/VERSION.txt
%doc %{_docdir}/%{name}/LICENSE.txt


%files cli
%{_bindir}/cake
%{_datadir}/php/%{name}/cake/console

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 570 |21cr|cal3d-0.11.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 12
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A skeletal based character animation library
Name:		cal3d
Version:	0.11.0
Release:	16
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gna.org/projects/cal3d/
Source0:	http://download.gna.org/cal3d/sources/%{name}-%{version}.tar.bz2
Patch0:		cal3d-0.11.0-gcc43.patch
Patch1:		cal3d-0.11.0-gcc7.patch
BuildRequires:	docbook-utils
BuildRequires:	doxygen
BuildRequires:	valgrind

%description
Cal3D is a skeletal based character animation library. It is platform-
independent and not bound to a specific graphic API. Originally designed to
be used in a 3d client for the Worldforge project (www.worldforge.org)
it evolved into a stand-alone product that can be used in many different
projects.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A skeletal based character animation library
Group:		System/Libraries

%description -n %{libname}
Cal3D is a skeletal based character animation library. It is platform-
independent and not bound to a specific graphic API. Originally designed to
be used in a 3d client for the Worldforge project (www.worldforge.org)
it evolved into a stand-alone product that can be used in many different
projects.

%files -n %{libname}
%{_libdir}/libcal3d.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use Cal3D
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use Cal3D.

%files -n %{devname}
%{_bindir}/%{name}_converter
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/libcal3d.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man1/%{name}_converter.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 571 |21cr|calcmysky-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname CalcMySky

%define api 6
%define major 15

%define libname %mklibname showmysky %{major}
%define devname %mklibname showmysky -d

Summary:	Simulator scattering of light by the atmosphere
Name:		calcmysky
Version:	0.3.1
Release:	2
License:	GPLv3+
Group:		Sciences/Astronomy
Url:		https://github.com/10110111/CalcMySky
Source0:	https://github.com/10110111/CalcMySky/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	eigen3
BuildRequires:	glm-devel
BuildRequires:	qt6-cmake
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6ShaderTools)
BuildRequires:	qmake-qt6
BuildRequires:	qt6-qtbase-tools
BuildRequires:	pkgconfig(vulkan)

%description
Simulator scattering of light by the atmosphere to render
daytime and twilight skies (without stars).

%files
%doc README.mdown
%license COPYING
%{_bindir}/%{name}
%{_bindir}/showmysky
%{_datadir}/%{oname}

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	CalcMySky library
Group:		System/Libraries

%description -n %{libname}
Simulator scattering of light by the atmosphere to render
daytime and twilight skies (without stars).
CalcMySky library.

%files -n %{libname}
%{_libdir}/libShowMySky-Qt%{api}.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel files for CalcMySky
Group:		Development/KDE and Qt
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Devel files for CalcMySky.

%files -n %{devname}
%doc README.mdown
%license COPYING
%{_includedir}/ShowMySky
%{_libdir}/cmake/ShowMySky-Qt6
%{_libdir}/libShowMySky-Qt%{api}.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%global optflags %{optflags} -fPIC
%cmake -DQT_VERSION=6
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 572 |21cr|calculate-1.00-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	binname	calc

Name:		calculate
Version:	1.00
Release:	17
License:	GPL
Group:		Development/Other
Source0:	%{name}-%{version}.tar.bz2
Patch0:		calculate-1.00-gcc3-fix.patch.bz2
URL:		http://home.planetinternet.be/~esmee/calc01.html
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
Summary:	A simple command line calculator for the console

%description
A very simple console command line calculater.

%prep
%setup -q
%patch0 -p1 -b .gcc3

%build
%{__cxx} $RPM_OPT_FLAGS -o %{binname} %{name}.cpp

%install
%{__rm} -rf $RPM_BUILD_ROOT
%{__install} -m755 %{binname} -D $RPM_BUILD_ROOT%{_bindir}/%{binname}

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%{_bindir}/%{binname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 573 |21cr|calcurse-4.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A text-based calendar and scheduling application
Name:		calcurse
Version:	4.8.0
Release:	2
License:	GPLv2+ and BSD
Group:		Office
Url:		https://calcurse.org/
Source0:	https://calcurse.org/files/%{name}-%{version}.tar.gz
Patch0:		calcurse-autoreconf.patch
BuildRequires:	autoconf-archive
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(ncurses)

%description
Calcurse helps keep track of events, appointments and everyday tasks.
A configurable notification system reminds user of upcoming deadlines, and the
curses based interface can be customized to suit user needs.

%files -f %{name}.lang
%doc COPYING AUTHORS doc/submitting-patches* doc/manual*
%{_bindir}/%{name}
%{_bindir}/%{name}-caldav
%{_bindir}/%{name}-upgrade
%{_bindir}/%{name}-vdir
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-rpath \
	--disable-docs
%make

%install
%makeinstall_std DOMAIN="%{name}"

install -m644 doc/%{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 574 |21cr|calibre-5.44.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	E-book converter and library management
Name:		calibre
Version:	5.44.0
Release:	4
License:	GPLv3+
Group:		Office
Url:		http://calibre-ebook.com/
Source0:	https://download.calibre-ebook.com/%{version}/%{name}-%{version}.tar.xz
Source1:	calibre-mount-helper
Patch1:		calibre-3.26.1-no-update.patch
Patch2:		calibre-5.25.0-nodisplay.patch
Patch3:		calibre-podofo.patch
Patch4:		calibre-openssl.patch

BuildRequires:	desktop-file-utils
BuildRequires:	python3-apsw
BuildRequires:	python3-beautifulsoup
BuildRequires:	python3-cssselect
#BuildRequires:	python3egg(cssutils)
BuildRequires:	python3-dateutil
#BuildRequires:	python3egg(imaging)
BuildRequires:	python3-lxml
BuildRequires:	python3-mechanize
BuildRequires:	python3-msgpack
BuildRequires:	python3-pillow
BuildRequires:	python3-setuptools
BuildRequires:	python3-six
BuildRequires:	python3-regex
BuildRequires:	python3-html5-parser
BuildRequires:	python3-beautifulsoup4
BuildRequires:	unzip
BuildRequires:	xdg-utils
BuildRequires:	chmlib-devel
BuildRequires:	hyphen-devel
BuildRequires:	libstemmer-devel
BuildRequires:	libwmf-devel
BuildRequires:	podofo-devel
BuildRequires:	python3-qt5-devel
BuildRequires:	python3-qt-builder
BuildRequires:	qt5-devel
# Pulled by some Qt5 packages via sip
BuildRequires:	python3-sip-qt5
BuildRequires:	python3-sip
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	python3egg(chardet)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	python3egg(lxml) >= 3.8.0
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:  python3-css-parser
BuildRequires:	python3-zeroconf
Requires:	python3-css-parser
Requires:	imagemagick
Requires:	python3-apsw
Requires:	python3-beautifulsoup
Requires:	python3-cherrypy
Requires:	python3-cssselect
#Requires:	python3-cssutils
Requires:	python3-dateutil
Requires:	python3-dbus
Requires:	python3-django-tagging
Requires:	python3-genshi
#Requires:	python3-imaging
Requires:	python3-lxml
Requires:	python3-mechanize
Requires:	python3-msgpack
Requires:	python3-regex
Requires:	python3-netifaces
Requires:	python3-html5-parser
Requires:	python3-odf
Requires:	python3-pillow
Requires:	python3-pypdf
Requires:	python3-qt5
Requires:	python3-qt5-webengine
Requires:	python3-qt5-webenginecore
Requires:	python3-qt5-webenginewidgets
Requires:	python3-beautifulsoup4
Requires:	python3-zeroconf
Requires:	poppler
# Require the packages of the files which are symlinked by calibre
Requires:	fonts-ttf-liberation
# E-mail functionality requires this package
# see https://bugs.launchpad.net/calibre/+bug/739073
Requires:	python3-dnspython

%description
Calibre is meant to be a complete e-library solution. It includes library
management, format conversion, news feeds to ebook conversion as well as
e-book reader sync features.

Calibre is primarily a ebook cataloging program. It manages your ebook
collection for you. It is designed around the concept of the logical book,
i.e. a single entry in the database that may correspond to ebooks in several
formats. It also supports conversion to and from a dozen different ebook
formats.

Supported input formats are: MOBI, LIT, PRC, EPUB, CHM, ODT, HTML, CBR, CBZ,
RTF, TXT, PDF and LRS.

%files
#-f %{name}.lang
%doc COPYRIGHT LICENSE Changelog.txt
%{_bindir}/calibre
%{_bindir}/calibre-complete
%{_bindir}/calibre-customize
%{_bindir}/calibre-debug
%{_bindir}/calibre-parallel
%{_bindir}/calibre-server
%{_bindir}/calibre-smtp
%{_bindir}/calibre-mount-helper
%{_bindir}/calibredb
%{_bindir}/ebook-convert
%{_bindir}/ebook-device
%{_bindir}/ebook-edit
%{_bindir}/ebook-meta
%{_bindir}/ebook-polish
%{_bindir}/ebook-viewer
%{_bindir}/fetch-ebook-metadata
%{_bindir}/lrf2lrs
%{_bindir}/lrfviewer
%{_bindir}/lrs2lrf
%{_bindir}/markdown-calibre
%{_bindir}/web2disk
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/*/mimetypes/*
%{python3_sitelib}/init_calibre.py*
%{python3_sitelib}/__pycache__
%{_datadir}/metainfo/*.xml

#--------------------------------------------------------------------

%prep
%setup -q

#  remove redundant / non-free fonts
rm -rf resources/fonts/*/

# don't check for new upstream version (that's what packagers do)
# otherwise the plugins are safe to be updated in ~/.config/calibre/plugins/
%patch1 -F 2 -p1 -b .no-update

%patch2 -p1 -b .python-fix
%patch3 -p1
%patch4 -p1

# dos2unix newline conversion
sed -i -e 's/\r//' src/calibre/web/feeds/recipes/*

# fix the location of liberation default font
# sed -i -e "s:P('fonts/liberation/LiberationSerif:('%{_datadir}/fonts/TTF/liberation/LiberationSerif:" \
#  src/calibre/library/catalog.py
sed -i -e "s:P('fonts/liberation/LiberationSerif:('%{_datadir}/fonts/TTF/liberation/LiberationSerif:" \
  src/calibre/utils/magick/draw.py
sed -i -e "s:P('fonts/liberation/LiberationSerif:('%{_datadir}/fonts/TTF/liberation/LiberationSerif:" \
  src/calibre/web/feeds/news.py
sed -i -e "s:P('fonts/liberation/LiberationSerif:('%{_datadir}/fonts/TTF/liberation/LiberationSerif:" \
  recipes/*_ke.recipe

# remove shebangs
sed -i -e '/^#!\//, 1d' src/calibre/*/*/*/*.py
sed -i -e '/^#!\//, 1d' src/calibre/*/*/*.py
sed -i -e '/^#![ ]*\//, 1d' src/calibre/*/*.py
sed -i -e '/^#!\//, 1d' src/calibre/*.py
sed -i -e '/^#!\//, 1d' src/templite/*.py
sed -i -e '/^#!\//, 1d' resources/default_tweaks.py
sed -i -e '/^#!\//, 1d' recipes/*.recipe

chmod -x src/calibre/*/*/*/*.py
chmod -x src/calibre/*/*/*.py
chmod -x src/calibre/*/*.py
chmod -x src/calibre/*.py
chmod -x recipes/*.recipe

%build
export SUBLIBS="$SUBLIBS -lpython%{py3_ver}"

OVERRIDE_CFLAGS="%{optflags}" python3 setup.py build

%install
mkdir -p %{buildroot}%{_datadir}

# create directories for xdg-utils
mkdir -p %{buildroot}%{_datadir}/icons
mkdir -p %{buildroot}%{_datadir}/icons/hicolor
mkdir -p %{buildroot}%{_datadir}/packages
mkdir -p %{buildroot}%{_datadir}/mime
mkdir -p %{buildroot}%{_datadir}/mime/packages
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/desktop-directories

# create directory for calibre environment module
# the install script assumes it's there.
mkdir -p %{buildroot}%{python3_sitelib}

XDG_DATA_DIRS="%{buildroot}%{_datadir}" \
XDG_UTILS_INSTALL_MODE="system" \
LIBPATH="%{_libdir}" \
LANG="en_US" \
python3 setup.py install --root=%{buildroot}%{_prefix} \
			--prefix=%{_prefix} \
			--libdir=%{_libdir} \
			--staging-libdir=%{buildroot}%{_libdir} \
# remove shebang from init_calibre.py here because
# it just got spawned by the install script
sed -i -e '/^#!\//, 1d' %{buildroot}%{python3_sitelib}/init_calibre.py

# icons
mkdir -p %{buildroot}%{_datadir}/pixmaps/
cp -p resources/images/library.png		  \
   %{buildroot}%{_datadir}/pixmaps/%{name}-gui.png
cp -p resources/images/viewer.png		  \
   %{buildroot}%{_datadir}/pixmaps/calibre-viewer.png

# every file is empty here
find %{buildroot}%{_datadir}/mime -maxdepth 1 -type f|xargs rm -f

# the portable batch (>=0.8.5) is not needed
rm -f %{buildroot}%{_bindir}/calibre-portable.bat

# packages aren't allowed to register mimetypes like this
rm -f %{buildroot}%{_datadir}/applications/defaults.list
rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache
rm -f %{buildroot}%{_datadir}/mime/application/*.xml
rm -f %{buildroot}%{_datadir}/mime/text/*.xml

desktop-file-validate \
%{buildroot}%{_datadir}/applications/calibre-ebook-viewer.desktop
desktop-file-validate \
%{buildroot}%{_datadir}/applications/calibre-gui.desktop
desktop-file-validate \
%{buildroot}%{_datadir}/applications/calibre-lrfviewer.desktop

# mimetype icon for lrf
rm -rf %{buildroot}%{_datadir}/icons/hicolor/128x128
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
cp -p resources/images/mimetypes/lrf.png \
      %{buildroot}%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-sony-bbeb.png
cp -p resources/images/viewer.png \
      %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/calibre-viewer.png

# these are provided as separate packages
rm -rf %{buildroot}%{_libdir}/%{name}/{odf,cherrypy,pyPdf,encutils,cssutils}
rm -rf %{buildroot}%{_libdir}/%{name}/cal/utils/genshi
rm -rf %{buildroot}%{_libdir}/%{name}/cal/trac

# link to system fonts after we have deleted the non-free ones
# http://oldbugs.calibre-ebook.com/ticket/3832
mkdir -p %{buildroot}%{_datadir}/%{name}/fonts/prs500
ln -s %{_datadir}/fonts/TTF/liberation/LiberationSans-Regular.ttf \
      %{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0003m_.ttf
ln -s %{_datadir}/fonts/TTF/liberation/LiberationSerif-Regular.ttf \
      %{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0011m_.ttf
ln -s %{_datadir}/fonts/TTF/liberation/LiberationMono-Regular.ttf \
      %{buildroot}%{_datadir}/%{name}/fonts/prs500/tt0419m_.ttf

# localization has changed since calibre-0.8.5
# locale.zip is treated internally at runtime
# so the traditional locale fixes are moot.
# locales should still be looked for in the proper place
# but under the new localization zip-based schema
sed -i -e 's:localization/locale.zip:%{_datadir}/%{name}/localization/locales.zip:' %{buildroot}%{_libdir}/%{name}/%{name}/utils/localization.py

#% find_lang %{name} --with-kde --all-name

rm -f %{buildroot}%{_bindir}/%{name}-uninstall

install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 575 |21cr|calindori-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Calendar and todo management application for Plasma Mobile
Name:		calindori
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5config-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5people-devel


%description
Calendar and todo management application for Plasma Mobile.

%files -f calindac.lang -f calindori.lang
%{_kde5_bindir}/calindac
%{_kde5_bindir}/calindori
%{_kde5_applicationsdir}/org.kde.calindori.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/calindori.svg
%{_kde5_notificationsdir}/calindac.notifyrc
%{_datadir}/dbus-1/services/org.kde.calindac.service
%{_appdatadir}/org.kde.calindori.appdata.xml
%{_sysconfdir}/xdg/autostart/org.kde.calindac.desktop

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang calindac
%find_lang calindori


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 576 |21cr|callgit-2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		callgit
Version:	2.1
Release:	4
Summary:	A tool for Ham Radio Operators to look up call-signs on the web
Group:		Communications
License:	GPLv3
URL:		http://www.hamsoftware.org/
Source0:	http://www.hamsoftware.org/%{name}-%{version}.tgz
#Icon from Fedora
Source1:	Ham_Icon-1-48.png
BuildRequires:	qt4-devel

%description
This program allows you to search for another Ham's name and address
without having a web browser up. It is very simple.

%prep
%setup -q -n %{name}

%build
%qmake_qt4
%make

%install
rm -rf %{buildroot}
install -Dpm 755 callgit %{buildroot}/%{_bindir}/%{name}

#icon
install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/Ham_icon_callgit.png

#desktop file
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=CallGit
Comment=Ham Radio call-sign lookup tool
Exec=callgit
Icon=Ham_icon_callgit
Terminal=false
Type=Application
Categories=Qt;Network;
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/Ham_icon_callgit.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 577 |21cr|calligra-3.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Set of office applications for KDE
Name:		calligra
Version:	3.1.0
Release:	6
#koffice has epoch 15. We need upper epoch
Epoch:		16
License:	GPLv2+ and LGPLv2+ and GFDL
Group:		Office
Url:		https://www.calligra.org
Source0:	https://download.kde.org/stable/calligra/%{version}/%{name}-%{version}.tar.xz
Source3:	%{name}.rpmlintrc
## upstream patches
Patch0:		0020-Fix-build-with-Qt-5.11-missing-headers.patch
Patch1:		0022-Fix-compilation-with-Qt-5.11-missing-include.patch
Patch2:		0023-Fix-compilation-with-Qt-5.13-missing-include.patch
Patch3:		calligra-3.1.0-enable_stage.patch
Patch10:	calligra-3.1.0-poppler-0.69.patch
Patch11:	calligra-3.1.0-poppler-0.71.patch
Patch12:	calligra-3.1.0-poppler-0.72.patch
Patch13:	calligra-3.1.0-poppler-0.73.patch
Patch14:	calligra-3.1.0-poppler-0.82.patch
Patch15:	calligra-3.1.0-poppler-0.83.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	git
BuildRequires:	pstoedit
BuildRequires:	boost-devel
BuildRequires:	kchart-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kgantt-devel
BuildRequires:	postgresql-devel
BuildRequires:	vc-devel
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(KPropertyWidgets3)
BuildRequires:	pkgconfig(KReport3)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libetonyek-0.1)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libodfgen-0.1)
BuildRequires:	pkgconfig(libopenjpeg1)
BuildRequires:	pkgconfig(libpng)
# Should be 3.x but we have 4.x
BuildRequires:	pkgconfig(libpqxx)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libvisio-0.1)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libwps-0.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(pstoedit)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(shared-mime-info)

Recommends:	%{name}-words
Recommends:	karbon
Recommends:	plan
Recommends:	sheets
Recommends:	stage

%description
Office applications for the K Desktop Environment.

Calligra contains:
   * Words: word processor
   * Table: spreadsheet
   * Stage: presentations
   * Some filters (Excel 97, Winword 97/2000, etc.)
   * karbon: the scalable vector drawing application for KDE.
   * plan: a project management.

%files

#----------------------------------------------------------------------------

%package core
Summary:	Set of office applications for KDE
Group:		Office

%description core
Common files for Calligra.

%files core -f %{name}.lang
%{_kde5_bindir}/calligra
%{_kde5_bindir}/calligraconverter
%{_kde5_bindir}/cstester
%{_kde5_bindir}/cstrunner
%{_kde5_bindir}/visualimagecompare
%{_kde5_datadir}/calligra/calligra_shell.rc
%{_kde5_datadir}/calligra/autocorrect/*
%{_kde5_datadir}/calligra/icons/*/*/*/*
%{_kde5_datadir}/calligra/cursors/*
%{_kde5_datadir}/calligra/palettes/*
%{_kde5_datadir}/calligra/pics/questionmark.png
%{_kde5_datadir}/calligra/styles/markers.xml
%{_kde5_datadir}/calligra_shape_music/fonts/Emmentaler-14.ttf
%{_kde5_qmldir}/org/kde/calligra
%{_kde5_services}/calligra_odg_thumbnail.desktop
%{_kde5_services}/calligradocinfopropspage.desktop
%{_kde5_datadir}/mime/packages/calligra_svm.xml
%{_kde5_datadir}/mime/packages/msooxml-all.xml
%{_qt5_plugindir}/calligradocinfopropspage.so
%{_qt5_plugindir}/calligraimagethumbnail.so
%{_qt5_plugindir}/calligrathumbnail.so
%{_qt5_plugindir}/calligra/colorspaces/kolcmsengine.so
%{_qt5_plugindir}/calligra/dockers/calligra_docker_defaults.so
%{_qt5_plugindir}/calligra/dockers/calligra_docker_stencils.so
%{_qt5_plugindir}/calligra/pageapptools/kopabackgroundtool.so
%{_qt5_plugindir}/calligra/shapefiltereffects/calligra_filtereffects.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_artistictext.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_chart.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_formula.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_music.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_paths.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_picture.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_plugin.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_text.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_vector.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_video.so
%{_qt5_plugindir}/calligra/textediting/calligra_textediting_autocorrect.so
%{_qt5_plugindir}/calligra/textediting/calligra_textediting_changecase.so
%{_qt5_plugindir}/calligra/textediting/calligra_textediting_spellcheck.so
%{_qt5_plugindir}/calligra/textediting/calligra_textediting_thesaurus.so
%{_qt5_plugindir}/calligra/textinlineobjects/calligra_textinlineobject_variables.so
%{_qt5_plugindir}/calligra/tools/calligra_tool_basicflakes.so
%{_qt5_plugindir}/calligra/tools/calligra_tool_defaults.so

#--------------------------------------------------------------------

%package gemini
Summary:	Touch optimised user interface for Calligra
Group:		Office
Requires:	%{name}-words = %{EVRD}
Requires:	stage = %{EVRD}
Requires:	kirigami2

%description gemini
Calligra Gemini is an application encasing word processor and presentation
components which would function both as a traditional desktop application
with a mouse and keyboard, and transform into a touch friendly application
on the go, changing the experience to one suitable for all-touch devices
without the inconvenience of having to switch to a different application.

%files gemini
%{_kde5_bindir}/calligragemini
%{_kde5_bindir}/calligrageminithumbnailhelper
%{_kde5_applicationsdir}/org.kde.calligragemini.desktop
%{_kde5_datadir}/calligragemini
%{_kde5_iconsdir}/hicolor/*/*/calligragemini.*
%{_kde5_qmldir}/Calligra/Gemini/
%{_appdatadir}/org.kde.calligragemini.appdata.xml

#--------------------------------------------------------------------

%package -n karbon
Summary:	Scalable drawing for calligra
Group:		Office
Url:		http://www.calligra-suite.org/karbon/
Requires:	%{name}-core = %{EVRD}
Provides:	%{name}-apps = %{EVRD}
# Required at runtime by the Karbon EPS import filter (karbonepsimport)
Requires:	pstoedit
Conflicts:	calligra-l10n < 3.0

%description -n karbon
Karbon is a vector drawing application with an user interface that is easy to
use, highly customizable and extensible.
That makes Karbon a great application for users starting to explore the world
of vector graphics as well as for artists wanting to create breathtaking vector
art.

%files -n karbon -f karbon.lang
%{_kde5_bindir}/karbon
%{_kde5_applicationsdir}/org.kde.karbon.desktop
%{_kde5_datadir}/karbon
%{_kde5_datadir}/calligra/stencils
%{_kde5_datadir}/color/icc/calligra
%{_kde5_datadir}/templates/Illustration.desktop
%{_kde5_datadir}/templates/.source/Illustration.odg
%{_kde5_iconsdir}/*/*/apps/calligrakarbon.*
%{_kde5_libdir}/libkdeinit5_karbon.so
%{_kde5_services}/ServiceMenus/calligra/karbon_print.desktop
%{_kde5_services}/karbon_*_thumbnail.desktop
%{_kde5_sysconfdir}/xdg/calligra_stencils.knsrc
%{_kde5_sysconfdir}/xdg/karbonrc
%{_kde5_xmlguidir}/karbon
%{_appdatadir}/org.kde.karbon.appdata.xml
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_eps2svgai.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_karbon1x2karbon.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_karbon2image.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_karbon2svg.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_karbon2wmf.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_pdf2svg.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_svg2karbon.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_vsdx2odg.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_wmf2svg.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_wpg2odg.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_wpg2svg.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_xfig2odg.so
%{_qt5_plugindir}/calligra/parts/karbonpart.so
%{_qt5_plugindir}/calligra/tools/karbon_tools.so
%{_qt5_plugindir}/karbon/extensions/karbon_flattenpath.so
%{_qt5_plugindir}/karbon/extensions/karbon_refinepath.so
%{_qt5_plugindir}/karbon/extensions/karbon_roundcorners.so
%{_qt5_plugindir}/karbon/extensions/karbon_whirlpinch.so

#--------------------------------------------------------------------

%package -n sheets
Summary:	SpreadSheet for calligra
Group:		Office
Url:		http://www.calligra-suite.org/sheets/
Requires:	%{name}-core = %{EVRD}
Provides:	%{name}-apps = %{EVRD}
Conflicts:	calligra-l10n < 3.0

%description -n sheets
Sheets is a fully-featured calculation and spreadsheet tool.
Use it to quickly create and calculate various business-related spreadsheets,
such as income and expenditure, employee working hours, etc.

%files -n sheets -f sheets.lang
%{_kde5_bindir}/calligrasheets
%{_kde5_applicationsdir}/org.kde.calligrasheets.desktop
%{_kde5_datadir}/calligrasheets
%{_kde5_sysconfdir}/xdg/calligrasheetsrc
%{_kde5_datadir}/config.kcfg/calligrasheets.kcfg
%{_kde5_datadir}/templates/.source/SpreadSheet.ods
%{_kde5_datadir}/templates/SpreadSheet.desktop
%{_kde5_iconsdir}/hicolor/*/*/calligrasheets*
%{_kde5_libdir}/libkdeinit5_calligrasheets.so
%{_kde5_services}/sheets_excel_thumbnail.desktop
%{_kde5_services}/sheets_ods_thumbnail.desktop
%{_kde5_services}/sheets_xlsx_thumbnail.desktop
%{_kde5_services}/ServiceMenus/calligra/sheets_print.desktop
%{_kde5_xmlguidir}/calligrasheets
%{_appdatadir}/org.kde.calligrasheets.appdata.xml
%{_qt5_plugindir}/calligra/deferred/calligra_shape_spreadsheet-deferred.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_applixspread2kspread.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_csv2sheets.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_dbase2kspread.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_gnumeric2sheets.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_html2ods.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_kspread2tex.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_opencalc2sheets.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_qpro2sheets.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_sheets2csv.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_sheets2gnumeric.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_sheets2html.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_sheets2opencalc.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_xls2ods.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_xlsx2ods.so
%{_qt5_plugindir}/calligra/parts/calligrasheetspart.so
%{_qt5_plugindir}/calligra/shapes/calligra_shape_spreadsheet.so
%dir %{_qt5_plugindir}/calligrasheets/
%{_qt5_plugindir}/calligrasheets/*

#--------------------------------------------------------------------

%package -n stage
Summary:	Presentation for calligra-suite
Group:		Office
Url:		http://www.calligra-suite.org/stage/
Requires:	%{name}-core = %{EVRD}
Requires:	xdg-utils
Provides:	%{name}-apps = %{EVRD}
Conflicts:	calligra-l10n < 3.0

%description -n stage
Stage is an easy to use yet still flexible presentation application. You can
easily create presentations containing a rich variety of elements,
from graphics to text, from charts to images.

Stage is extensible through a plugin system, so it is easy to add new effects,
new content elements or even new ways of managing your presentation. Because of
the integration with Calligra, all the power and flexibility of the Calligra
content elements are available to Stage.

%files -n stage -f stage.lang
%{_kde5_applicationsdir}/org.kde.calligrastage.desktop
%{_kde5_bindir}/calligrastage
%{_kde5_datadir}/calligrastage
%{_kde5_libdir}/libkdeinit5_calligrastage.so
%{_kde5_sysconfdir}/xdg/calligrastagerc
%{_kde5_datadir}/mime/packages/x-iwork-keynote-sffkey.xml
%{_kde5_datadir}/templates/Presentation.desktop
%{_kde5_datadir}/templates/.source/Presentation.odp
%{_kde5_iconsdir}/hicolor/*/apps/calligrastage.*
%{_kde5_services}/flow_vsdx_thumbnail.desktop
%{_kde5_services}/flow_wpg_thumbnail.desktop
%{_kde5_services}/stage_key_thumbnail.desktop
%{_kde5_services}/stage_kpr_thumbnail.desktop
%{_kde5_services}/stage_odp_thumbnail.desktop
%{_kde5_services}/stage_powerpoint_thumbnail.desktop
%{_kde5_services}/stage_pptx_thumbnail.desktop
%{_kde5_services}/ServiceMenus/calligra/stage_print.desktop
%{_kde5_xmlguidir}/calligrastage
%{_appdatadir}/org.kde.calligrastage.appdata.xml
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_key2odp.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_kpr2odp.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_ppt2odp.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_pptx2odp.so
%{_qt5_plugindir}/calligra/parts/calligrastagepart.so
%{_qt5_plugindir}/calligra/presentationeventactions/calligrastageeventactions.so
%{_qt5_plugindir}/calligra/textinlineobjects/kprvariables.so
%dir %{_qt5_plugindir}/calligrastage/
%{_qt5_plugindir}/calligrastage/*

#--------------------------------------------------------------------

%package words
Summary:	Word processor for calligra
Group:		Office
Url:		http://www.calligra-suite.org/words/
Requires:	%{name}-core = %{EVRD}
Requires:	wordnet
Provides:	%{name}-apps = %{EVRD}
Conflicts:	calligra-l10n < 3.0

%description words
Words is an intuitive word processor application with desktop publishing
features.

With it, you can create informative and attractive documents with ease.

%files words -f words.lang
%{_kde5_bindir}/calligrawords
%{_kde5_applicationsdir}/org.kde.calligrawords_ascii.desktop
%{_kde5_applicationsdir}/org.kde.calligrawords.desktop
%{_kde5_datadir}/calligrawords
%{_kde5_sysconfdir}/xdg/calligrawordsrc
%{_kde5_datadir}/mime/packages/wiki-format.xml
%{_kde5_datadir}/templates/.source/TextDocument.odt
%{_kde5_datadir}/templates/TextDocument.desktop
%{_kde5_datadir}/calligra/thesaurus/thesaurus.txt
%{_kde5_iconsdir}/hicolor/*/*/calligrawords*
%{_kde5_libdir}/libkdeinit5_calligrawords.so
%{_kde5_services}/ServiceMenus/calligra/words_print.desktop
%{_kde5_services}/words_*_thumbnail.desktop
%{_kde5_xmlguidir}/calligrawords
%{_appdatadir}/org.kde.calligrawords.appdata.xml
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_applixword2odt.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_ascii2words.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_doc2odt.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_docx2odt.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_odt2ascii.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_odt2docx.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_odt2epub2.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_odt2html.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_odt2mobi.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_odt2wiki.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_rtf2odt.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_wpd2odt.so
%{_qt5_plugindir}/calligra/formatfilters/calligra_filter_wps2odt.so
%{_qt5_plugindir}/calligra/parts/calligrawordspart.so

#--------------------------------------------------------------------

%define libbasicflakes_major 16
%define libbasicflakes %mklibname basicflakes %{libbasicflakes_major}

%package -n %{libbasicflakes}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libbasicflakes}
Calligra core library.

%files -n %{libbasicflakes}
%{_kde5_libdir}/libbasicflakes.so.%{libbasicflakes_major}*

#--------------------------------------------------------------------

%define sheets_major 16
%define libcalligrasheetscommon %mklibname calligrasheetscommon %{sheets_major}

%package -n %{libcalligrasheetscommon}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libcalligrasheetscommon}
Calligra core library.

%files -n %{libcalligrasheetscommon}
%{_kde5_libdir}/libcalligrasheetscommon.so.%{sheets_major}*

#--------------------------------------------------------------------

%define sheetsodf_major 16
%define libcalligrasheetsodf %mklibname calligrasheetsodf %{sheetsodf_major}

%package -n %{libcalligrasheetsodf}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libcalligrasheetsodf}
Calligra core library.

%files -n %{libcalligrasheetsodf}
%{_kde5_libdir}/libcalligrasheetsodf.so.%{sheetsodf_major}*

#--------------------------------------------------------------------

%define calligrastageprivate_major 16
%define libcalligrastageprivate %mklibname calligrastageprivate %{calligrastageprivate_major}

%package -n %{libcalligrastageprivate}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libcalligrastageprivate}
Calligra core library.

%files -n %{libcalligrastageprivate}
%{_kde5_libdir}/libcalligrastageprivate.so.%{calligrastageprivate_major}*

#--------------------------------------------------------------------

%define libflake_major 16
%define libflake %mklibname flake %{libflake_major}

%package -n %{libflake}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libflake}
Calligra core library.

Flake is the object library for Calligra. It provides a basic concept of a
'shape' which can be a square, circle or any other form. The shape can contain
any sort of media because it is responsible for painting itself. This means
that Words can provide a textShape which has text flowing inside.

%files -n %{libflake}
%{_kde5_libdir}/libflake.so.%{libflake_major}*

#--------------------------------------------------------------------

%define gemini_major 16
%define libgemini %mklibname gemini %{gemini_major}

%package -n %{libgemini}
Summary:	Calligra Gemini shared library
Group:		System/Libraries

%description -n %{libgemini}
Calligra Gemini shared library.

%files -n %{libgemini}
%{_kde5_libdir}/libgemini.so.%{gemini_major}*

#--------------------------------------------------------------------

%define karboncommon_major 16
%define libkarboncommon %mklibname karboncommon %{karboncommon_major}

%package -n %{libkarboncommon}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkarboncommon}
Calligra core library.

%files -n %{libkarboncommon}
%{_kde5_libdir}/libkarboncommon.so.%{karboncommon_major}*

#--------------------------------------------------------------------

%define karbonui_major 16
%define libkarbonui %mklibname karbonui %{karbonui_major}

%package -n %{libkarbonui}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkarbonui}
Calligra core library.

%files -n %{libkarbonui}
%{_kde5_libdir}/libkarbonui.so.%{karbonui_major}*

#--------------------------------------------------------------------

%define koformula_major 16
%define libkoformula %mklibname koformula %{koformula_major}

%package -n %{libkoformula}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkoformula}
Calligra core library.

%files -n %{libkoformula}
%{_kde5_libdir}/libkoformula.so.%{koformula_major}*

#--------------------------------------------------------------------

%define libkomain_major 16
%define libkomain %mklibname komain %{libkomain_major}

%package -n %{libkomain}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkomain}
Calligra core library.

%files -n %{libkomain}
%{_kde5_libdir}/libkomain.so.%{libkomain_major}*

#--------------------------------------------------------------------

%define komsooxml_major 16
%define libkomsooxml %mklibname komsooxml %{komsooxml_major}

%package -n %{libkomsooxml}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkomsooxml}
Calligra core library.

%files -n %{libkomsooxml}
%{_kde5_libdir}/libkomsooxml.so.%{komsooxml_major}*

#--------------------------------------------------------------------

%define libkoodf_major 16
%define libkoodf %mklibname koodf %{libkoodf_major}

%package -n %{libkoodf}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkoodf}
Calligra core library. ODF Library.

%files -n %{libkoodf}
%{_kde5_libdir}/libkoodf.so.%{libkoodf_major}*

#--------------------------------------------------------------------

%define koodf2_major 16
%define libkoodf2 %mklibname koodf2_ %{koodf2_major}

%package -n %{libkoodf2}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkoodf2}
Calligra core library.

%files -n %{libkoodf2}
%{_kde5_libdir}/libkoodf2.so.%{koodf2_major}*

#--------------------------------------------------------------------

%define koodfreader_major 16
%define libkoodfreader %mklibname koodfreader %{koodfreader_major}

%package -n %{libkoodfreader}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkoodfreader}
Calligra core library.

%files -n %{libkoodfreader}
%{_kde5_libdir}/libkoodfreader.so.%{koodfreader_major}*

#--------------------------------------------------------------------

%define libkopageapp_major 16
%define libkopageapp %mklibname kopageapp %{libkopageapp_major}

%package -n %{libkopageapp}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkopageapp}
Calligra core library.

%files -n %{libkopageapp}
%{_kde5_libdir}/libkopageapp.so.%{libkopageapp_major}*

#--------------------------------------------------------------------

%define libkoplugin_major 16
%define libkoplugin %mklibname koplugin %{libkoplugin_major}

%package -n %{libkoplugin}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkoplugin}
Calligra core library.

%files -n %{libkoplugin}
%{_kde5_libdir}/libkoplugin.so.%{libkoplugin_major}*

#--------------------------------------------------------------------

%define kostore_major 16
%define libkostore %mklibname kostore %{kostore_major}

%package -n %{libkostore}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkostore}
Calligra core library.

%files -n %{libkostore}
%{_kde5_libdir}/libkostore.so.%{kostore_major}*

#--------------------------------------------------------------------

%define libkotext_major 16
%define libkotext %mklibname kotext %{libkotext_major}

%package -n %{libkotext}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkotext}
Calligra core library.

KoText is the library that offers rich text layout and OpenDocument Format
loading/saving.

%files -n %{libkotext}
%{_kde5_libdir}/libkotext.so.%{libkotext_major}*

#--------------------------------------------------------------------

%define kotextlayout_major 16
%define libkotextlayout %mklibname textlayout %{kotextlayout_major}

%package -n %{libkotextlayout}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkotextlayout}
Calligra core library.

%files -n %{libkotextlayout}
%{_kde5_libdir}/libkotextlayout.so.%{kotextlayout_major}*

#--------------------------------------------------------------------

%define kovectorimage_major 16
%define libkovectorimage %mklibname kovectorimage %{kovectorimage_major}

%package -n %{libkovectorimage}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkovectorimage}
Calligra core library.

%files -n %{libkovectorimage}
%{_kde5_libdir}/libkovectorimage.so.%{kovectorimage_major}*

#--------------------------------------------------------------------

%define koversion_major 16
%define libkoversion %mklibname koversion %{koversion_major}

%package -n %{libkoversion}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkoversion}
Calligra core library.

%files -n %{libkoversion}
%{_kde5_libdir}/libkoversion.so.%{koversion_major}*

#--------------------------------------------------------------------

%define kowidgets_major 16
%define libkowidgets %mklibname kowidgets %{kowidgets_major}

%package -n %{libkowidgets}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkowidgets}
Calligra core library.

%files -n %{libkowidgets}
%{_kde5_libdir}/libkowidgets.so.%{kowidgets_major}*

#--------------------------------------------------------------------

%define libkowidgetutils_major 16
%define libkowidgetutils %mklibname kowidgetutils %{libkowidgetutils_major}

%package -n %{libkowidgetutils}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkowidgetutils}
Calligra core library.

%files -n %{libkowidgetutils}
%{_kde5_libdir}/libkowidgetutils.so.%{libkowidgetutils_major}*

#--------------------------------------------------------------------

%define kowv2_major 9
%define libkowv2 %mklibname kowv2_ %{kowv2_major}

%package -n %{libkowv2}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkowv2}
Calligra core library.

%files -n %{libkowv2}
%{_kde5_libdir}/libkowv2.so.%{kowv2_major}*

#--------------------------------------------------------------------

%define kundo2_major 16
%define libkundo2 %mklibname kundo2_ %{kundo2_major}

%package -n %{libkundo2}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libkundo2}
Calligra core library.

%files -n %{libkundo2}
%{_kde5_libdir}/libkundo2.so.%{kundo2_major}*

#--------------------------------------------------------------------

%define pigmentcms_major 16
%define libpigmentcms %mklibname pigmentcms %{pigmentcms_major}

%package -n %{libpigmentcms}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libpigmentcms}
Calligra core library.

Pigment is the Color Manipulation System library for Calligra, this include but
it is not limited to full color management. Originating from Krita it provides
a generic KoColor class wich represents the notion of a color. The same color
can often be specified in different colorspaces. Some colors however can only
be specified in some colorspaces.

%files -n %{libpigmentcms}
%{_kde5_libdir}/libpigmentcms.so.%{pigmentcms_major}*

#--------------------------------------------------------------------

%define rtfreader_major 16
%define librtfreader %mklibname rtfreader %{rtfreader_major}

%package -n %{librtfreader}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{librtfreader}
Calligra core library.

%files -n %{librtfreader}
%{_kde5_libdir}/libRtfReader.so.%{rtfreader_major}*

#--------------------------------------------------------------------

%define wordsprivate_major 16
%define libwordsprivate %mklibname wordsprivate %{wordsprivate_major}

%package -n %{libwordsprivate}
Summary:	Calligra core library
Group:		System/Libraries

%description -n %{libwordsprivate}
Calligra core library.

%files -n %{libwordsprivate}
%{_kde5_libdir}/libwordsprivate.so.%{wordsprivate_major}*

#--------------------------------------------------------------------

%package devel
Summary:	Header files for developing calligra applications
Group:		Development/KDE and Qt
Requires:	%{libbasicflakes} = %{EVRD}
Requires:	%{libcalligrasheetscommon} = %{EVRD}
Requires:	%{libcalligrasheetsodf} = %{EVRD}
Requires:	%{libcalligrastageprivate} = %{EVRD}
Requires:	%{libflake} = %{EVRD}
Requires:	%{libgemini} = %{EVRD}
Requires:	%{libkarboncommon} = %{EVRD}
Requires:	%{libkarbonui} = %{EVRD}
Requires:	%{libkoformula} = %{EVRD}
Requires:	%{libkomain} = %{EVRD}
Requires:	%{libkomsooxml} = %{EVRD}
Requires:	%{libkoodf} = %{EVRD}
Requires:	%{libkoodf2} = %{EVRD}
Requires:	%{libkoodfreader} = %{EVRD}
Requires:	%{libkopageapp} = %{EVRD}
Requires:	%{libkoplugin} = %{EVRD}
Requires:	%{libkostore} = %{EVRD}
Requires:	%{libkotext} = %{EVRD}
Requires:	%{libkotextlayout} = %{EVRD}
Requires:	%{libkovectorimage} = %{EVRD}
Requires:	%{libkoversion} = %{EVRD}
Requires:	%{libkowidgets} = %{EVRD}
Requires:	%{libkowidgetutils} = %{EVRD}
Requires:	%{libkowv2} = %{EVRD}
Requires:	%{libkundo2} = %{EVRD}
Requires:	%{libpigmentcms} = %{EVRD}
Requires:	%{librtfreader} = %{EVRD}
Requires:	%{libwordsprivate} = %{EVRD}
Requires:	%{name}-core = %{EVRD}

%description devel
Header files needed for developing calligra applications.

%files devel
%{_kde5_libdir}/libbasicflakes.so
%{_kde5_libdir}/libcalligrasheetscommon.so
%{_kde5_libdir}/libcalligrasheetsodf.so
%{_kde5_libdir}/libcalligrastageprivate.so
%{_kde5_libdir}/libflake.so
%{_kde5_libdir}/libgemini.so
%{_kde5_libdir}/libkarboncommon.so
%{_kde5_libdir}/libkarbonui.so
%{_kde5_libdir}/libkoformula.so
%{_kde5_libdir}/libkomain.so
%{_kde5_libdir}/libkomsooxml.so
%{_kde5_libdir}/libkoodf.so
%{_kde5_libdir}/libkoodf2.so
%{_kde5_libdir}/libkoodfreader.so
%{_kde5_libdir}/libkopageapp.so
%{_kde5_libdir}/libkoplugin.so
%{_kde5_libdir}/libkostore.so
%{_kde5_libdir}/libkotext.so
%{_kde5_libdir}/libkotextlayout.so
%{_kde5_libdir}/libkovectorimage.so
%{_kde5_libdir}/libkoversion.so
%{_kde5_libdir}/libkowidgets.so
%{_kde5_libdir}/libkowidgetutils.so
%{_kde5_libdir}/libkowv2.so
%{_kde5_libdir}/libkundo2.so
%{_kde5_libdir}/libpigmentcms.so
%{_kde5_libdir}/libRtfReader.so
%{_kde5_libdir}/libwordsprivate.so

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%if %{mdvver} >= 201910
# Poppler 0.69+ patches
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%endif

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# NOTE: reenable if/when again available
find %{buildroot} -name "braindump.mo" | xargs rm -fv
find %{buildroot} -name "flow.mo" | xargs rm -fv
find %{buildroot} -name "okularGenerator_odp.mo" | xargs rm -fv
find %{buildroot} -name "okularGenerator_odt.mo" | xargs rm -fv

%find_lang %{name} calligra-defaulttools calligra-dockers calligra-opener \
calligra_semanticitem_contact calligra_semanticitem_event calligra_semanticitem_location \
calligra_shape_artistictext calligra_shape_chart calligra_shape_comment calligra_shape_formula \
calligra_shape_music calligra_shape_paths calligra_shape_picture calligra_shape_plugin \
calligra_shape_template calligra_shape_text calligra_shape_threed calligra_shape_vector calligra_shape_video \
calligra_textediting_autocorrect calligra_textediting_changecase calligra_textediting_spellcheck \
calligra_textediting_thesaurus calligra_textinlineobject_variables calligrafilters \
kocolorspaces koconverter %{name}.lang

%find_lang karbon KarbonFilterEffects KarbonTools karbon.lang

%find_lang calligrasheets calligrasheets_calendar calligrasheets_solver krossmodulesheets \
calligra_shape_spreadsheet sheets.lang

%find_lang calligrastage stage.lang

%find_lang calligrawords krossmodulewords words.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 578 |21cr|calligraplan-3.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Project management application for Calligra
Name:		calligraplan
Version:	3.3.0
Release:	2
#koffice has epoch 15. We need upper epoch
Epoch:		16
License:	GPLv2+ and LGPLv2+ and GFDL
Group:		Office
Url:		https://www.calligra.org
Source0:	https://download.kde.org/stable/calligra/%{version}/%{name}-%{version}.tar.xz
Source3:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	git
BuildRequires:	pstoedit
BuildRequires:	boost-devel
BuildRequires:	kchart-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kgantt-devel
BuildRequires:	postgresql-devel
BuildRequires:	vc-devel
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(KPropertyWidgets3)
BuildRequires:	pkgconfig(KReport3)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libetonyek-0.1)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libodfgen-0.1)
BuildRequires:	pkgconfig(libopenjpeg1)
BuildRequires:	pkgconfig(libpng)
# Should be 3.x but we have 4.x
BuildRequires:	pkgconfig(libpqxx)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libvisio-0.1)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libwps-0.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(pstoedit)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(shared-mime-info)
Requires:	calligraplanwork = %{EVRD}
Provides:	plan = %{EVRD}

%description
Plan is a project management application.
It is intended for managing moderately large projects with multiple resources.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.calligraplan.desktop
%{_kde5_bindir}/calligraplan
%{_kde5_datadir}/calligraplan/calligraplan_shell.rc
%{_kde5_datadir}/calligraplan/icons/*/*/*/*
%{_kde5_datadir}/calligraplan/reports/*
%{_kde5_datadir}/calligraplan/templates/*
%{_kde5_datadir}/calligraplan/templates/.source/SharedResources.plant
%{_kde5_datadir}/config.kcfg/calligraplansettings.kcfg
%{_kde5_libdir}/libkdeinit5_calligraplan.so
%{_qt5_plugindir}/calligraplanworkpart.so
%{_qt5_plugindir}/calligraplan/formatfilters/planicalexport.so
%{_qt5_plugindir}/calligraplan/formatfilters/plankplatoimport.so
%{_qt5_plugindir}/calligraplan/formatfilters/planplannerimport.so
%{_qt5_plugindir}/calligraplan/parts/calligraplanpart.so
%{_qt5_plugindir}/calligraplan/schedulers/libplantjscheduler.so
%{_kde5_xmlguidir}/calligraplan/*
%{_kde5_iconsdir}/hicolor/*/*/calligraplan.png
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-vnd.kde.kplato.png
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-vnd.kde.kplato.work.png
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-vnd.kde.plan.png
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-vnd.kde.plan.work.png
%{_kde5_iconsdir}/hicolor/scalable/apps/calligraplan.svgz
%{_kde5_iconsdir}/hicolor/scalable/mimetypes/application-x-vnd.kde.kplato.svgz
%{_kde5_iconsdir}/hicolor/scalable/mimetypes/application-x-vnd.kde.kplato.work.svgz
%{_kde5_iconsdir}/hicolor/scalable/mimetypes/application-x-vnd.kde.plan.svgz
%{_kde5_iconsdir}/hicolor/scalable/mimetypes/application-x-vnd.kde.plan.work.svgz
%{_sysconfdir}/xdg/calligraplanrc
%{_kde5_docdir}/HTML/*/calligraplan/*
%{_appdatadir}/org.kde.calligraplan.appdata.xml

#--------------------------------------------------------------------

%package -n calligraplanwork
Summary:	Office applications for Plasma
Group:		Office
Url:		http://www.calligra-suite.org/calligraplanwork/
Requires:	%{name} = %{EVRD}

%description -n calligraplanwork
Office applications for the for Plasma.

%files -n calligraplanwork
%{_kde5_bindir}/calligraplanwork
%{_kde5_applicationsdir}/org.kde.calligraplanwork.desktop
%{_kde5_datadir}/calligraplanwork
%{_kde5_datadir}/config.kcfg/calligraplanworksettings.kcfg
%{_kde5_xmlguidir}/calligraplanwork//*
%{_kde5_iconsdir}/hicolor/scalable/apps/calligraplanwork.svgz
%{_kde5_iconsdir}/hicolor/*/*/calligraplanwork.png
%{_kde5_libdir}/libkdeinit5_calligraplanwork.so
%{_sysconfdir}/xdg/calligraplanworkrc

#--------------------------------------------------------------------

%define libplankernel_major 18
%define libplankernel %mklibname plankernel %{libplankernel_major}

%package -n %{libplankernel}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplankernel}
Calligraplan system library. ODF Library.

%files -n %{libplankernel}
%{_kde5_libdir}/libplankernel.so.%{libplankernel_major}*

#--------------------------------------------------------------------

%define plankundo2_major 18
%define libplankundo2 %mklibname plankundo2 %{plankundo2_major}

%package -n %{libplankundo2}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplankundo2}
Calligraplan system library.

%files -n %{libplankundo2}
%{_kde5_libdir}/libplankundo2.so.%{plankundo2_major}*

#--------------------------------------------------------------------

%define libplanmain_major 18
%define libplanmain %mklibname planmain %{libplanmain_major}

%package -n %{libplanmain}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanmain}
Calligraplan system library.

%files -n %{libplanmain}
%{_kde5_libdir}/libplanmain.so.%{libplanmain_major}*

#--------------------------------------------------------------------

%define planmodels_major 18
%define libplanmodels %mklibname planmodels %{planmodels_major}

%package -n %{libplanmodels}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanmodels}
Calligraplan system library.

%files -n %{libplanmodels}
%{_kde5_libdir}/libplanmodels.so.%{planmodels_major}*

#--------------------------------------------------------------------

%define planodf_major 18
%define libplanodf %mklibname planodf %{planodf_major}

%package -n %{libplanodf}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanodf}
Calligraplan system library.

%files -n %{libplanodf}
%{_kde5_libdir}/libplanodf.so.%{planodf_major}*

#--------------------------------------------------------------------

%define planplugin_major 18
%define libplanplugin %mklibname planplugin %{planplugin_major}

%package -n %{libplanplugin}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanplugin}
Calligraplan system library.

%files -n %{libplanplugin}
%{_kde5_libdir}/libplanplugin.so.%{planplugin_major}*

#--------------------------------------------------------------------

%define planprivate_major 18
%define libplanprivate %mklibname planprivate %{planprivate_major}

%package -n %{libplanprivate}
Summary:	Calligra Gemini shared library
Group:		System/Libraries

%description -n %{libplanprivate}
Calligra Gemini shared library.

%files -n %{libplanprivate}
%{_kde5_libdir}/libplanprivate.so.%{planprivate_major}*

#--------------------------------------------------------------------

%define libplanstore_major 18
%define libplanstore %mklibname planstore %{libplanstore_major}

%package -n %{libplanstore}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanstore}
Calligraplan system library.

%files -n %{libplanstore}
%{_kde5_libdir}/libplanstore.so.%{libplanstore_major}*

#--------------------------------------------------------------------

%define planui_major 18
%define libplanui %mklibname planui %{planui_major}

%package -n %{libplanui}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanui}
Calligraplan system library.

%files -n %{libplanui}
%{_kde5_libdir}/libplanui.so.%{planui_major}*

#--------------------------------------------------------------------

%define planwidgets_major 18
%define libplanwidgets %mklibname planwidgets %{planwidgets_major}

%package -n %{libplanwidgets}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanwidgets}
Calligraplan system library.

%files -n %{libplanwidgets}
%{_kde5_libdir}/libplanwidgets.so.%{planwidgets_major}*

#--------------------------------------------------------------------

%define planwidgetutils_major 18
%define libplanwidgetutils %mklibname planwidgetutils %{planwidgetutils_major}

%package -n %{libplanwidgetutils}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanwidgetutils}
Calligraplan system library.

%files -n %{libplanwidgetutils}
%{_kde5_libdir}/libplanwidgetutils.so.%{planwidgetutils_major}*

#--------------------------------------------------------------------

%define libplanworkfactory_major 18
%define libplanworkfactory %mklibname planworkfactory %{libplanworkfactory_major}

%package -n %{libplanworkfactory}
Summary:	Calligraplan system library
Group:		System/Libraries

%description -n %{libplanworkfactory}
Calligraplan system library.

%files -n %{libplanworkfactory}
%{_kde5_libdir}/libplanworkfactory.so.%{libplanworkfactory_major}*

#--------------------------------------------------------------------

%package devel
Summary:	Header files for developing calligra applications
Group:		Development/KDE and Qt
Requires:	%{libplanworkfactory} = %{EVRD}
Requires:	%{libplanwidgetutils} = %{EVRD}
Requires:	%{libplanwidgets} = %{EVRD}
Requires:	%{libplanui} = %{EVRD}
Requires:	%{libplanstore} = %{EVRD}
Requires:	%{libplanprivate} = %{EVRD}
Requires:	%{libplanplugin} = %{EVRD}
Requires:	%{libplanodf} = %{EVRD}
Requires:	%{libplanmodels} = %{EVRD}
Requires:	%{libplanmain} = %{EVRD}
Requires:	%{libplankundo2} = %{EVRD}
Requires:	%{name} = %{EVRD}
Requires:	calligraplanwork = %{EVRD}

%description devel
Header files needed for developing calligra applications.

%files devel
%{_kde5_libdir}/libplankernel.so
%{_kde5_libdir}/libplankundo2.so
%{_kde5_libdir}/libplanmain.so
%{_kde5_libdir}/libplanmodels.so
%{_kde5_libdir}/libplanodf.so
%{_kde5_libdir}/libplanplugin.so
%{_kde5_libdir}/libplanprivate.so
%{_kde5_libdir}/libplanstore.so
%{_kde5_libdir}/libplanui.so
%{_kde5_libdir}/libplanwidgets.so
%{_kde5_libdir}/libplanwidgetutils.so
%{_kde5_libdir}/libplanworkfactory.so

#--------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 579 |21cr|calls-42.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	A phone dialer and call handler
Name:		calls
Version:	42.0
Release:	3
License:	GPLv3+ and MIT
Group:		Communications
Url:		https://download.gnome.org/sources/calls/
Source0:	https://download.gnome.org/sources/calls/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		calls-42.0-upstream.patch
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	x11-server-xvfb
BuildRequires:	xauth
BuildRequires:	pkgconfig(libcallaudio-0.1)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(gom-1.0)
BuildRequires:	pkgconfig(libebook-contacts-1.2)
BuildRequires:	pkgconfig(folks)
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(libfeedback-0.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(sofia-sip-ua)
BuildRequires:	pkgconfig(sofia-sip-ua-glib)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(appstream-glib)
Requires:	folks
Requires:	telepathy-mission-control

Requires: hicolor-icon-theme

%description
A phone dialer and call handler.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_appdatadir}/org.gnome.Calls.metainfo.xml
%{_bindir}/gnome-%{name}
%{_datadir}/applications/org.gnome.Calls.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Calls.gschema.xml
%{_datadir}/gtk-doc/html/%{name}
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%dir %{_libdir}/%{name}/plugins/dummy
%dir %{_libdir}/%{name}/plugins/mm
%dir %{_libdir}/%{name}/plugins/sip
%{_iconsdir}/hicolor/scalable/apps/org.gnome.Calls.svg
%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Calls-symbolic.svg
# ofono is retired so we exclude the plugins 4/24/2020
%exclude %{_libdir}/%{name}/plugins/ofono/libofono.so
%exclude %{_libdir}/%{name}/plugins/ofono/ofono.plugin
%{_libdir}/%{name}/plugins/dummy/dummy.plugin
%{_libdir}/%{name}/plugins/dummy/libdummy.so
%{_libdir}/%{name}/plugins/mm/libmm.so
%{_libdir}/%{name}/plugins/mm/mm.plugin
%{_libdir}/%{name}/plugins/sip/libsip.so
%{_libdir}/%{name}/plugins/sip/sip.plugin
%{_sysconfdir}/xdg/autostart/org.gnome.Calls-daemon.desktop

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install
%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 580 |21cr|camorama-0.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GNOME webcam application
Name:		camorama
Version:	0.21
Release:	1
License:	GPLv2+
Group:		Video
# Original URL (http://camorama.fixedgear.org) is dead
# use the fork below because it has been updated more recently
Url:		https://github.com/alessio/camorama
Source0:	https://github.com/alessio/camorama/archive/%{name}-%{version}.tar.gz
Patch0:		camorama-0.21-fix-desktop-file.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext >= 0.19.8
BuildRequires:	GConf2
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.10
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libv4l2)

%description
This is a program for controlling webcams. It is able to capture to various
image formats, as well as saving to a local dir or a FTP server on the web.
Right now you can change the video settings using the gui and apply some
filters.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README.md TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1*
%{_iconsdir}/hicolor/*/devices/%{name}.png

%preun
%preun_uninstall_gconf_schemas camorama

#------------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
./autogen.sh
%configure
%make


%install
%makeinstall_std

# Install an icon in pixmaps, because not sure about the placement of the default ones
install -d %{buildroot}%{_datadir}/pixmaps
install -m644 pixmaps/%{name}-512.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

%{find_lang} %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 581 |21cr|candido-0.9.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname candido-engine

Name: 	 	candido
Summary: 	Candido GTK2 cairo theme
Version: 	0.9.1
Release: 	9
Source:		%{tarname}-%{version}.tar.bz2
Patch0:		candido-engine-0.9.1-glib-includes.patch
URL:		http://candido.berlios.de/
License:	GPL
Group:		Graphical desktop/GNOME
BuildRequires:	gtk2-devel

%description
The Candido engine is a cairo-based GTK2 engine for new thems.  
It's very fast and clean.

%prep
%setup -q -n %{tarname}-%{version}
%patch0 -p1

%build
%configure --enable-animation
%make 									
%install
%makeinstall

%files
%defattr(-,root,root)
%doc AUTHORS COPYING CREDITS ChangeLog NEWS README
%{_libdir}/gtk-2.0/*/engines/libcandido.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 582 |21cr|candido-themes-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define themesdir %{_datadir}/themes

Summary:	  Themes for Candido
Name:    	  candido-themes
Version: 	  1.0
Release: 	  8
Source0: 	  Candido-Calm.tar.bz2
Source1: 	  Candido-Candy.tar.bz2
Source2: 	  Candido-DarkOrange.tar.bz2
Source3: 	  Candido-Hybrid.tar.bz2
Source4: 	  Candido-NeoGraphite.tar.bz2
Source5: 	  Candido-Engine-Metacity.tar.bz2
Source6: 	  Candido-Engine-Xfwm4.tar.bz2
License: 	  GPL
Group: 		  Graphical desktop/GNOME
Url:   		  http://candido.berlios.de/
BuildArch: 	  noarch
Requires: 	  candido

%description
Various GTK2, Metacity, and XFWM4 themes for the Candido GTK2.x engine.

%prep

%build

%install
%__rm -rf %{buildroot}
%__mkdir -p %{buildroot}%{themesdir}
%__tar jfx %SOURCE0 -C %{buildroot}%{themesdir}
%__tar jfx %SOURCE1 -C %{buildroot}%{themesdir}
%__tar jfx %SOURCE2 -C %{buildroot}%{themesdir}
%__tar jfx %SOURCE3 -C %{buildroot}%{themesdir}
%__tar jfx %SOURCE4 -C %{buildroot}%{themesdir}
%__tar jfx %SOURCE5 -C %{buildroot}%{themesdir}
%__tar jfx %SOURCE6 -C %{buildroot}%{themesdir}

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{themesdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 583 |21cr|candle-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Приложение Candle с визуализатором G-Code, написанное на Qt
Summary: Candle application with G-Code visualizer written in Qt
Name: candle
Version: 1.2
Release: 1
License: GPL-3.0-only
Group: Monitoring
Url: https://github.com/Denvi/Candle
Source0: https://github.com/Denvi/Candle/archive/refs/tags/v%{version}b.tar.gz?/%{name}-%{version}b.tar.gz
Source1: %{name}.desktop
Patch1:	candle-1.2b-compile.patch

ExcludeArch: armh

BuildRequires: qt5-devel
BuildRequires: pkgconfig(Qt5SerialPort)

%description
GRBL controller application with G-Code visualizer written in Qt.

Supported functions:

Controlling GRBL-based cnc-machine via console commands,
buttons on form, numpad. Monitoring cnc-machine state.
Loading, editing, saving and sending of G-code files to cnc-machine.
Visualizing G-code files.

%description -l ru_RU.UTF-8
Приложение-контроллер GRBL с визуализатором G-кода, написанное на Qt.

Поддерживаемые функции:

Управление станком с ЧПУ на базе GRBL с помощью консольных команд,
кнопки на форме, нумпад. Мониторинг состояния станка.
Загрузка, редактирование, сохранение и отправка файлов G-кода на ЧПУ-станки.
Визуализация файлов G-кода.

%prep
%autosetup -p1 -n Candle-%{version}b

%build
%qmake_qt5 -o Makefile src/candle.pro
%make

%install
mkdir -p %{buildroot}/{%{_bindir},%{_datadir}/icons,%{_datadir}/applications}
install -m755 Candle %{buildroot}/%{_bindir}
ln -rs %{buildroot}/%{_bindir}/Candle %{buildroot}/%{_bindir}/%name
install -Dpm 0644 src/images/%{name}_256.png %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/

mkdir -p %{buildroot}%{_datadir}/%{name}/translations
install -m644 src/translations/*.qm %{buildroot}/%{_datadir}/%{name}/translations

%files
%doc readme.md
%{_bindir}/%name
%{_bindir}/Candle
%{_datadir}/%name/translations/*.qm
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 584 |21cr|canicatti-1.01-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name CaniCatti

Summary:	%{theme_name} theme
Name:		canicatti
Version:	1.01
Release:	3
License:	GPLv3+
Group:		Graphics
Url:		https://www.gnome-look.org/p/1200080/
Source0:	CaniCatti.tar.gz
Requires:	canicatti-common
Requires:	canicatti-gtk2-theme
Requires:	canicatti-gtk3-theme
Requires:	canicatti-metacity-theme
Requires:	canicatti-openbox-theme
Requires:	canicatti-xfwm4-theme
BuildArch:	noarch

%description
CaniCattì GTK2,GTK3,Metacity,Openbox and XFWM4 theme

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%{_datadir}/themes/%{theme_name}/index.theme
%{_datadir}/themes/%{theme_name}/assets/*

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires:	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires:	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires:	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires:	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires:	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires:	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%package openbox-theme
Summary:	%{theme_name} Openbox themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	openbox

%description openbox-theme
Themes for Openbox as part of the %{theme_name} theme

%files openbox-theme
%{_datadir}/themes/%{theme_name}/openbox-3/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {index.theme,gtk-2.0,gtk-3.0,metacity-1,assets,openbox-3,xfwm4} %{buildroot}%{_datadir}/themes/%{theme_name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

rm -f %{buildroot}%{_datadir}/themes/CaniCatti/gtk-3.0/thumbnail.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 585 |21cr|canna-3.7p3-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define filever 37p3
%define	major	1
%define	libname	%mklibname canna %{major}

Name:		canna
Summary:	Japanese Kana-Kanji translation engine
Version:	3.7p3
Release:	20
License:	MIT
Group:		System/Internationalization
URL:		http://sourceforge.jp/projects/canna/
Source:		Canna%{filever}.tar.bz2
Source1:	canna.service
Source2:	canna-tmpfiles.conf
Patch1:		canna-3.7p1-config.patch
Patch2:		canna-3.7p1-buildfix.patch
Patch3:		canna-3.7p1-fix-str-fmt.patch
Requires:	locales-ja
BuildRequires:	imake

# this is for serviceadd, etc.
Requires(post): rpm-helper
Requires(preun): rpm-helper
# this is for useradd, groupadd, etc.
Requires(pre): rpm-helper
Requires(postun): rpm-helper

%description
Canna is a Japanese Kana-Kanji translation engine.


%package -n	%{libname}
Summary:	Canna libraries
Group:		System/Internationalization

%description -n	%{libname}
Canna libraries.

%package -n	%{libname}-devel
Summary:	Headers and libraries of Canna for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{libname}-devel
Headers and libraries of Canna for development.


%prep
%setup -q -n Canna%{filever}
%patch1 -p0 -b .conf
%patch2 -p0 -b .build
%patch3 -p0 -b .str

%build
xmkmf
make canna EXTRA_LDOPTIONS="%{ldflags}" CCOPTIONS="%{optflags}"

%install
%makeinstall_std sysconfdir=%{buildroot}%{_sysconfdir} libCannaDir=%{_libdir}
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/canna.service

install -d -m 0755 %{buildroot}%{_sysconfdir}/tmpfiles.d
install -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf

%__install -d %{buildroot}%{_sysconfdir}/logrotate.d
cat << EOF > %{buildroot}%{_sysconfdir}/logrotate.d/canna
/var/log/canna/CANNA?msgs {
    notifempty
    missingok
}
EOF

%pre
%_pre_useradd canna %{_datadir}/canna /sbin/nologin

%post
if ! grep -q canna /etc/services
then
        echo "canna             5680/tcp" >>/etc/services
fi
%systemd_post canna.service

%preun
%systemd_preun canna.service

%postun
%systemd_postun_with_restart canna.service
%_postun_userdel canna

%files
%defattr(0755,root,root,0755)
%{_sbindir}/*
%{_bindir}/*
%{_unitdir}/*
%defattr(0644,root,root,0755)
%doc CHANGES.jp ChangeLog README README.jp WHATIS WHATIS.jp
%dir %{_var}/lib/canna
%config(noreplace) %{_sysconfdir}/logrotate.d/canna
%config(noreplace) %{_var}/lib/canna/default.canna
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
%{_var}/lib/canna/sample
%dir %attr(755,canna,canna) %{_var}/lib/canna/dic
%dir %attr(755,canna,canna) %{_var}/lib/canna/dic/canna
%attr(644,canna,canna) %config(noreplace) %{_var}/lib/canna/dic/*.cbp
%attr(644,canna,canna) %config(noreplace) %{_var}/lib/canna/dic/canna/*
%attr(755,canna,canna) %dir %{_var}/log/canna

%files -n %{libname}
%defattr(0755,root,root,0755)
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr(0644,root,root,0755)
%{_libdir}/*.a
%{_libdir}/*.so
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 586 |21cr|cantata-2.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gitdate	0

Summary:	Client for the Music Player Daemon (MPD)
Name:		cantata
Version:	2.5.0
Release:	2
License:	GPLv2+
Group:		Sound
Url:		https://github.com/cdrummond/cantata
%if %{gitdate}
Source0:	%{name}-%{gitdate}.tar.xz
%else
Source0:	https://github.com/CDrummond/cantata/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
%endif
BuildRequires:	cmake
BuildRequires:	cdparanoia
BuildRequires:	media-player-info
BuildRequires:	qt5-linguist-tools
BuildRequires:	cdda-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(libcddb)
BuildRequires:	pkgconfig(libcdio_cdda)
BuildRequires:	pkgconfig(libcdio_paranoia)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.11
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(taglib) >= 1.6
BuildRequires:	pkgconfig(taglib-extras) >= 1.0
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(udisks2)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	mpd >= 0.22
Requires:	oxygen-icon-theme
Recommends:		lame
Recommends:		media-player-info

%description
Cantata is a (yet another!) client for the music player daemon (MPD).
Originally started as a fork of QtMPC, the code is now *very* different. To be
true to QtMPCs origins, Cantata now is a pure Qt5 application. The interface
is very configurable - most views can be shown as either a list or tree
structure.

%files
%doc AUTHORS ChangeLog LICENSE README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_libdir}/%{name}
%{_datadir}/%{name}/icons
%{_datadir}/%{name}/scripts/*
%{_datadir}/%{name}/translations/*
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_iconsdir}/hicolor/symbolic/apps/%{name}-symbolic.*

#------------------------------------------------------------------------------

%prep
%if %{gitdate}
%setup -qn %{name}-%{gitdate}
%else
%setup -q
%endif

# Another hack to fix install path for x86_64 build
#sed -i s,"LINUX_LIB_DIR lib","LINUX_LIB_DIR %%{_lib}",g CMakeLists.txt


%build
%cmake_qt5 -DCANTATA_HELPERS_LIB_DIR="%{_lib}"
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 587 |21cr|canto-0.9.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
%define python_compile     python -c "import compileall; compileall.compile_dir('.')"

Name:		canto
Version:	0.9.8
Release:	1
Summary:	An Atom/RSS feed reader for the console
Group:		Networking/News
License:	GPLv2+
URL:		http://codezen.org/canto/
Source:		https://github.com/themoken/canto-next/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-chardet
BuildRequires:	python3-feedparser
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
Requires:	python3-chardet
Requires:	python3-feedparser
Requires:	xclip
BuildArch:	noarch

%description
Canto is an Atom/RSS feed reader for the console that is meant to be quick,
concise, and colorful. It's meant to allow you to crank through feeds like
you've never cranked before by providing a minimal, yet information packed
interface. No navigating menus. No dense blocks of unreadable white text.
An interface with almost infinite customization and extensibility using the
excellent Python programming language.

%prep
%setup -q -n canto-next-%{version}

%build
%py3_build

%install
%__python3 setup.py install --prefix=%{_prefix} --root=%{buildroot} --no-compile
dir -d %{buildroot}%{python3_sitelib}/%{name}_next

%files
%doc COPYING README*
%{_prefix}/lib/canto/plugins
%{python3_sitelib}/%{name}_next/__pycache__
%{python3_sitelib}/%{name}_next/*.py*
%{python3_sitelib}/Canto-%{version}-py*.egg-info
%{_bindir}/%{name}*
%{_datadir}/man/man1/%{name}*.1.*
%{_userunitdir}/canto-daemon.service


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 588 |21cr|capitaine-cursor-theme-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Capitaine cursor theme
Name:		capitaine-cursor-theme
Version:	2.1
Release:	1
License:	LGPLv3+
Group:		Graphical desktop/Other
Url:		https://github.com/keeferrourke/capitaine-cursors
Source0:	https://github.com/keeferrourke/capitaine-cursors/archive/r2.1.tar.gz?/capitaine-cursors-r%{version}.tar.gz
BuildArch:	noarch

%description
This is an x-cursor theme inspired by macOS and based on KDE Breeze.
 The source files were made in Inkscape,
 and the theme was designed to pair well with my icon pack, La Capitaine.

%files
%doc README.md COPYING
%dir %{_iconsdir}/Capitaine
%{_iconsdir}/Capitaine/*

%prep
%setup -qn capitaine-cursors-r%{version}

%build

%install
mkdir -p %{buildroot}%{_iconsdir}/Capitaine/cursors
cp dist/index.theme %{buildroot}%{_iconsdir}/Capitaine/
cp dist/cursors/* %{buildroot}%{_iconsdir}/Capitaine/cursors/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 589 |21cr|capnproto-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# library package needs to be split
%define modulename %{name}-c++
%define major 0.9.1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A data interchange format and capability-based RPC system
Name:		capnproto
Version:	0.9.1
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://capnproto.org
Source0:	https://capnproto.org/%{modulename}-%{version}.tar.gz
# We need C++
BuildRequires:	cmake >= 3.1
BuildRequires:	gcc-c++ >= 4.8
# Ensure that we use matching version of libraries
Requires:	%{libname} = %{EVRD}

%description
Cap’n Proto is an insanely fast data interchange format and capability-based
RPC system. Think JSON, except binary. Or think Protocol Buffers, except
faster. In fact, in benchmarks, Cap’n Proto is INFINITY TIMES faster than
Protocol Buffers.
This package contains the schema compiler and command-line encoder/decoder
tools.

%files
%doc LICENSE.txt README.txt
%{_bindir}/capnp
%{_bindir}/capnpc
%{_bindir}/capnpc-c++
%{_bindir}/capnpc-capnp

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Cap’n Proto is an insanely fast data interchange format and capability-based
RPC system.
This package contains the libraries for using %{name} in applications.

%files -n %{libname}
%doc LICENSE.txt README.txt
%{_libdir}/*.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Cap’n Proto is an insanely fast data interchange format and capability-based
RPC system.
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc LICENSE.txt README.txt
%{_includedir}/capnp/*
%{_includedir}/kj/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/CapnProto/

#-----------------------------------------------------------------------------

%prep
%setup -qn %{modulename}-%{version}

%build
%cmake \
	-DBUILD_TESTING="OFF"
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 590 |21cr|caprice32-4.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CaPriCe32 - Amstrad CPC Emulator
Name:		caprice32
Version:	4.6.0
Release:	1
#v2, except for cpc roms, which just are just allowed be distributed
License:	GPLv2+
Group:		Emulators
Url:		https://github.com/ColinPitrat/caprice32/
Source0:	https://github.com/ColinPitrat/caprice32/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.png
#this is the same icon as xcpc, but converted in png
Source2:	%{name}
Patch0:		caprice32-4.6.0-iostream.patch
Patch1:		caprice32-4.6.0-string.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(zlib)

%description
CaPriCe32 emulates the Amstrad CPC home computer models 464, 664 and 6128
faithfully on your PC. Detailed usage instructions can be found in the
included documentation.

%files
%doc README.md
%config(noreplace) %{_sysconfdir}/cap32.cfg
%{_bindir}/cap32
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/cap32.6*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%setup_compile_flags
%make RELEASE=true APP_PATH=%{_datadir}/%{name}

%install
%makeinstall_std prefix=%{_prefix}
# wrapper
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}
# install menu icons
for N in 16 32 48;
do
convert %{SOURCE1} -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# xdg menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=CaPriCe32
Comment=Amstrad CPC Emulator
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 591 |21cr|cardpics-0.4-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Some Card images
Name: cardpics
Version: 0.4
Release: 14
License: GPL
Group: Games/Cards
Source: http://download.savannah.nongnu.org/releases/cardpics/%{name}-%{version}.tar.bz2
URL: http://www.nongnu.org/cardpics
BuildArch: noarch

%description
Cardpics is a set of free cards sets.

If you are programming a card game and are looking for free cards, Cardpics was
made for you! Get a set of cards and include them in your project, as soon as
your project is free.

%description -l fr
Cardpics est un jeu de cartes. Pour viter l'ambiguit sur le terme "jeu",
disons que c'est un ensemble d'images de cartes a jouer.

Si vous programmez un jeu de cartes et avez besoin d'un jeu d'images de cartes
libres, Cardpics est fait pour vous! R.cup.rez un jeu de ces cartes, et
incluez-le dans votre projet, а condition que votre projet soit libre.

%description -l es
Cardpics es una serie de juegos de cartas.

Si est' programando un juego de cartas y est' buscando cartas libres, Cardpics
fue hecho para usted! Obtenga un juego de cartas e inclyalas en su proyecto,
mientras que este sea libre.

%prep
%setup -q

%build
%configure
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_datadir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 592 |21cr|cargo-generate-0.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define        crates_ver %{version}

Summary:      Running new Rust project from a git repository
Name:         cargo-generate
Version:      0.13.1
Release:      1
Group:        Development/Rust
License:      MIT
Url:          https://github.com/cargo-generate/cargo-generate
Source0:      https://github.com/cargo-generate/cargo-generate/archive/refs/tags/%{name}-%{version}.tar.gz
# generated with cargo-vendor
Source1:        %{name}-crates-%{crates_ver}.tar.xz


BuildRequires:     pkgconfig(ncurses)
BuildRequires:     pkgconfig(openssl)
BuildRequires:     rust
BuildRequires:     cargo-vendor

Requires:     cargo-vendor
Requires:     rust

%description
cargo-generate is a developer tool
to help you get up and running quickly
with a new Rust project by leveraging
a pre-existing git repository as a template.

%files
%doc *.md LICENSE-*
%{_bindir}/%{name}

#-----------------------------------------------------

%prep
%autosetup -a1
chmod -x src/lib.rs
chmod -x %{name}-%{version}/vendor/sanitize-filename/src/lib.rs

%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"

cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF


%build
#build and install at ounce.

%install
export CARGO_HOME="$(pwd)/.cargo"
RUSTFLAGS=-g cargo install --no-track --debug --offline --root=%{buildroot}%{_prefix} --path .



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 593 |21cr|cargo-ui-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		crates_ver %{version}

Summary:      GUI for cargo
Name:         cargo-ui
Version:      0.3.1
Release:      1
Group:        Development/Rust
License:      GPLv3
Url:          https://github.com/slint-ui/cargo-ui
Source0:      https://github.com/slint-ui/cargo-ui/archive/refs/tags/%{name}-%{version}.tar.gz
# generated with cargo-vendor
Source1:        %{name}-crates-%{crates_ver}.tar.xz
Source2:        https://doc.rust-lang.org/cargo/images/Cargo-Logo-Small.png

BuildRequires:     pkgconfig(ncurses)
BuildRequires:     pkgconfig(fontconfig)
BuildRequires:     pkgconfig(xcb)
BuildRequires:     pkgconfig(openssl)
BuildRequires:     imagemagick
BuildRequires:     rust
BuildRequires:     cargo-vendor

Requires:     cargo-vendor
Requires:     rust

%description
This is a project to make a GUI for cargo, built using Slint.

%files
%doc *.md LICENSE*
%{_bindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
#-----------------------------------------------------

%prep
%setup -q -a1

%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"

cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF


%build
export CARGO_HOME="$(pwd)/.cargo"
RUSTFLAGS=-g cargo build --all-targets --offline --frozen

%install
cargo install --no-track --debug --root=%{buildroot}%{_prefix} --path .

#icons
for size in 256 48 32 16; do
  install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
  convert %{S:2} -resize ${size} %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

#menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=%{name}
Comment=GUI for cargo
Exec=%{name} %f
Icon=%{name}
Terminal=false
X-MultipleArgs=false
Type=Application
Categories=Development;
StartupNotify=true

EOF



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 594 |21cr|carmetal-3.7.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# At this moment (19.02.2012) it fails to run with OpenJDK
# so we require jre-sun (Sun JDK) instead of java and use it
# in wrapper script

Name:		carmetal
Version:	3.7.1
Release:	5
BuildArch:	noarch
URL:		http://db-maths.nuxit.net/CaRMetal/
Source0:	%{name}-%{version}.tar.bz2
Summary:	Dynamic geometry software with highly ergonomic UI
License:	LGPLv3
Group:		Sciences/Mathematics
Requires:	jre-openjdk >= 1.6.0

%description
Based on the C.a.R. (Compass and Ruler) project, CaRMetal includes
all of its functionalities - or almost. It propose a different approach
from the graphical interface point of view.

Here's the C.a.R. presentation:
 - Ruler and compass constructions can be changed by dragging one of the
basic construction points. The construction follows immediately. The
student can check the correctness of the construction and gain new
insight.
 - Tracks of points and animated constructions can help to understand
geometric relations. Tracks can be used as new objects to explore.
 - With the macros of C.a.R. very complicated constructions become
possible. Macros are also a way to organize the geometric thinking.
 - Hiding construction details and using colors make constructions
clearer to read. In C.a.R. lines and circles can also be reduced to the
relevant points.
 - Arithmetic computations, numerical solutions, curves and functions
go beyond classical constructions. It is even possible to construct in 3D
using advanced macros.
 - Other geometries, hyperbolic or elliptic, can be explored.

%prep
%setup -q

%install
%__rm -f uninstall
%__rm -f CaRMetalUninstall.png
%__rm -f CaRMetal.desktop

%__install -d %{buildroot}%{_bindir}
%__install -d %{buildroot}%{_datadir}/%{name}
%__install -d %{buildroot}%{_datadir}/pixmaps

cp -r ./* %{buildroot}%{_datadir}/%{name}/
%__install -m 644 CaRMetal.png %{buildroot}%{_datadir}/pixmaps/CaRMetal.png

# wrapper script
%__cat > %{buildroot}%{_bindir}/carmetal << EOF
#!/bin/sh
env AWT_TOOLKIT="MToolkit" java -jar -Xmx256m /usr/share/%{name}/CaRMetal.jar
EOF

%__chmod 0755 %{buildroot}%{_bindir}/carmetal

# xdg menu
%__mkdir_p %{buildroot}%{_datadir}/applications
%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Version=1.0
Type=Application
Name=CaRMetal
Comment=Dynamic mathematics for schools
Icon=CaRMetal
Exec=carmetal
Categories=Math;Science;Education;
StartupNotify=false
Terminal=false
EOF


%files
%{_bindir}/carmetal
%{_datadir}/pixmaps/CaRMetal.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 595 |21cr|carpm-2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		carpm
Summary:	Script to help rpm's managing in command-line
Version:	2.2
Release:	7
Source0:	%{name}-%{version}.tar.bz2
License:	GPLv3
Group:		System/Configuration/Packaging
URL:		http://carpm.sourceforge.net
BuildRequires:	bash
Requires:	rpm
Requires:	urpmi  
Requires:	bash
BuildArch:  noarch

%description
Carpm is a script, a text tool for help you to managing your rpm and your rpm
database.

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %name %{buildroot}/%{_bindir}


%files
%doc INSTALL COPYING
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 596 |21cr|casparcg-client-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{ix86}
# Qt6 need -msse2
%global optflags %{optflags} -msse2
%endif

Summary:	Client software primarily used with the CasparCG Server software
Name:		casparcg-client
Version:	2.3.0
Release:	1
License:	GPL-3.0
Group:		Video
Url:		https://github.com/CasparCG/client
Source0:	https://github.com/CasparCG/client/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# oscpack tag see in https://github.com/CasparCG/client/tree/main/lib
Source1:	https://github.com/RossBencina/oscpack/archive/3e7e3a102e316d75fe176885a6dd08f216f2eac0.zip
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	qt6-cmake
BuildRequires:	md2man
BuildRequires:	pkgconfig(Qt6Core)
BuildRequires:	pkgconfig(Qt6Core5Compat)
BuildRequires:	pkgconfig(Qt6Gui)
BuildRequires:	pkgconfig(Qt6Network)
BuildRequires:	pkgconfig(Qt6Sql)
BuildRequires:	pkgconfig(Qt6WebSockets)
BuildRequires:	pkgconfig(Qt6Widgets)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	vlc-devel
Provides:	CasparCG-client = %{EVRD}

%description
Client software primarily used with the CasparCG Server software 
for audio and video playout, to control graphics and recording, 
but it can also be used for other tasks within television broadcast. 

%files
%{_bindir}/casparcg-client
%{_datadir}/applications/*.desktop
%{_iconsdir}/casparcg-client

#------------------------------------------------------------------

%prep
%autosetup -p1 -n client-%{version}/src -a1

mv ./oscpack-*/* ../lib/oscpack/

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 597 |21cr|catch-2.13.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A modern, C++-native, header-only, framework for unit-tests, TDD and BDD
Name:		catch
Version:	2.13.7
Release:	1
License:	Boost
Group:		Development/Other
URL:		https://github.com/philsquared/Catch
Source0:	https://github.com/philsquared/Catch/archive/v%{version}.tar.gz?/Catch-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja

%description
Catch stands for C++ Automated Test Cases in Headers and is a
multi-paradigm automated test framework for C++ and Objective-C (and,
maybe, C). It is implemented entirely in a set of header files, but
is packaged up as a single header for extra convenience.

#----------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Provides:	%{name}-static = %{EVRD}
Provides:	catch2-devel = %{EVRD}

%description devel
Catch stands for C++ Automated Test Cases in Headers and is a
multi-paradigm automated test framework for C++ and Objective-C (and,
maybe, C). It is implemented entirely in a set of header files, but
is packaged up as a single header for extra convenience.

%files devel
%doc README.md
%doc %{_docdir}/Catch2/
%{_includedir}/catch2
%{_libdir}/cmake/Catch2
%{_datadir}/pkgconfig/catch2.pc
%{_datadir}/Catch2

#----------------------------------------------------------

%prep
%setup -qn Catch2-%{version}

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 598 |21cr|catcodec-1.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		catcodec
Version:	1.0.5
Release:	4
Summary:	Sample catalog decoder and encoder for OpenTTD
Group:		Development/Other
License:	GPLv2+
URL:		http://www.openttd.org/en/download-catcodec
Source0:	http://binaries.openttd.org/extra/%{name}/%{version}/%{name}-%{version}-source.tar.xz
Patch0:		catcodec-1.0.2-fix_linking_order.patch

%description
catcodec decodes and encodes sample catalogs for OpenTTD. These sample
catalogs are not much more than some meta-data (description and file name)
and raw PCM data.

%prep
%setup -q
%patch0 -p0

%build
cat << EOF >> Makefile.local
VERBOSE=1
CXXFLAGS=%{optflags}
LDFLAGS=%{ldflags}
prefix=%{_prefix}
DO_NOT_INSTALL_DOCS=1
DO_NOT_INSTALL_LICENSE=1
DO_NOT_INSTALL_CHANGELOG=1
EOF

%make VERBOSE=1

%install
%makeinstall_std

%files
%doc docs/readme.txt
%{_bindir}/*
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 599 |21cr|catdoc-0.95-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts MS-Word file to text
Name:		catdoc
Version:	0.95
Release:	3
Source0:	http://ftp.wagner.pp.ru/pub/catdoc/%{name}-%{version}.tar.gz
# CVE-2017-11110
Patch0:		catdoc-0.95-CVE-2017-11110.patch
License:	GPL
Group:		Office
URL:		http://vitus.wagner.pp.ru/software/catdoc/
BuildRequires:	tk
Requires:	tk

%description
CATDOC is program which reads MS-Word file and prints readable
ASCII text to stdout, just like Unix cat command.
It also able to produce correct escape sequences if some UNICODE
charachers have to be represented specially in your typesetting system
such as (La)TeX.

It features runtime configuration, proper charset handling,
user-definable output formats and support
for Word97 files, which contain UNICODE internally.

%prep
%autosetup -p1

%build
%configure
%make

%install
make installroot=%{buildroot} install
mkdir -p %{buildroot}%{_datadir}/man
mkdir -p %{buildroot}%{_mandir}/man1
mv doc/*.1 %{buildroot}%{_mandir}/man1/

%clean

%files
%doc README
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/catdoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 600 |21cr|catfish-4.16.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define apps_name org.xfce.catfish

%define url_ver %(echo %{version} | cut -d. -f 1,2)

Summary:	A handy file search tool
Name:		catfish
Version:	4.16.3
Release:	2
Group:		File tools
License:	GPLv2+
Url:		https://launchpad.net/catfish-search
Source0:	https://archive.xfce.org/src/apps/catfish/%{url_lib}/%{name}-%{version}.tar.bz2?/%{name}-%{version}.tar.bz2
BuildRequires:	gettext
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	python3-devel
BuildRequires:	python3-distutils-extra
BuildRequires:	python3-pexpect
BuildRequires:	pkgconfig(zeitgeist-2.0)
Requires:	python3-gi
Requires:	python3-pexpect
Requires:	mlocate
Requires:	findutils
Requires:	python3-%{name} = %{EVRD}
Requires:	typelib(Xfconf)
BuildArch:	noarch

%description
A handy file searching tool for linux. Basically it is a
frontend for different search engines (daemons) which
provides a unified interface. The interface is intentionally
lightweight and simple, using only GTK+ 3. You can configure
it to your needs by using several command line options.

%files -f %{name}.lang
%doc AUTHORS README*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{apps_name}.{svg,png}
%{_mandir}/*/%{name}.*
#----------------------------------------------------------------------------

%package -n python3-%{name}
Group:		Development/Python
License:	GPLv2+
Summary:	Supplemental module for Catfish
Obsoletes:	catfish < 1.4.7-3

%description -n python3-%{name}
Supplemental python3 module for Catfish

%files -n python3-%{name}
%{python3_sitelib}/*
#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%setup_compile_flags
%__python3 setup.py install -O1 --root %{buildroot}

# For some reason translations are installed automatically
# with Python 3.5 but are not with Python 3.6
if [ ! -d %{buildroot}/%{_localedir}/ ]; then
	mkdir -p %{buildroot}/%{_localedir}/
	cp -r build/mo/* %{buildroot}/%{_localedir}/
fi
if [ ! -d %{buildroot}/%{_datadir}/applications ]; then
	install -D build/share/applications/org.xfce.Catfish.desktop %{buildroot}/%{_datadir}/applications/org.xfce.Catfish.desktop
fi

# give a common name to the desktop file
mv -v %{buildroot}/%{_datadir}/applications/org.xfce.Catfish.desktop %{buildroot}/%{_datadir}/applications/catfish.desktop

rm -rf %{buildroot}%{_docdir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 601 |21cr|catterm-0.0-0.gitb8338b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit b8338bc69d6cc14a9c4f4ec17ada0864e3a7b96b
%define commit_short %(echo %{commit} | head -c6)

Summary:	A minimalist serial port terminal program 
Group:		Terminals
Name:		catterm
Version:	0.0
Release:	0.git%{commit_short}.1
License:	BSD-2
Url:		https://github.com/alexpevzner/catterm
Source0:	https://github.com/alexpevzner/catterm/archive/%{commit}.zip?/%{name}-%{commit}.tar.gz
BuildRequires:	ctags

%description
catterm is the minimalist "terminal emulation" program for serial ports. 
It's primary target is the people who work a lot with hardware platforms 
that use serial ports for debugging/console etc.

Unlike many other similar programs, catterm does absolute minimum. 
It doesn't interpret ESC-sequences, relying on a Linux terminal, 
doesn't deal phone numbers using modem AT commands and so on.

It's primary purpose is to be simple, stupid, reliable and 
predictable like a piece of wood.

It doesn't use serial port modem control lines (RTS/CTS and DTR/DST), 
so it feels quite happy with a 3-wire simple null-modem cable as well 
as with full-wired null-modem.

It was tested with the standard PC serial port as well as with 
USB serial ports, USB modems etc and works with all of them.

%files
%doc README.md
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%setup_compile_flags
%make

%install
install -d %{buildroot}%{_bindir}
install -p -m755 %{name} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 602 |21cr|CBFlib-0.9.2.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cbf %{major}
%define devname %mklibname cbf -d

Summary:	Crystallographic Binary File and Image Library
Name:		CBFlib
Version:	0.9.2.3
Release:	6
# library files (*.so*) are LGPLv2+, all else is GPLv2+
License:	GPLv2+ and (GPLv2+ or LGPLv2+)
Group:		System/Libraries
Url:		http://www.bernstein-plus-sons.com/software/CBF
Source0:	http://downloads.sourceforge.net/cbflib/%{name}-%{version}.tar.gz
Patch0:		CBFlib-0.9.2.3-fix-boz-in-case.patch
BuildRequires:	gcc-gfortran

%description
CBFlib (Crystallographic Binary File library) is a library of ANSI-C
functions providing a simple mechanism for accessing Crystallographic
Binary Files (CBF files) and Image-supporting CIF (imgCIF) files. The
CBFlib API is loosely based on the CIFPARSE API for mmCIF files. Like
CIFPARSE, CBFlib does not perform any semantic integrity checks;
rather it simply provides functions to create, read, modify and write
CBF binary data files and imgCIF ASCII data files.

%files
%doc README doc/gpl.txt
# GPLv2+
%{_bindir}/adscimg2cbf
%{_bindir}/cbf2adscimg
%{_bindir}/convert_image
%{_bindir}/convert_minicbf
%{_bindir}/makecbf
%{_bindir}/img2cif
%{_bindir}/cif2cbf
%{_bindir}/cif2c

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The CBFlib shared library
Group:		System/Libraries
Suggests:	%{name}

%description -n %{libname}
The CBFlib shared library.

%files -n %{libname}
%{_libdir}/libcbf.so.%{major}*
%{_libdir}/libfcb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and library for developing programs with cbf
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel

%description -n %{devname}
This package contains libraries and header files needed for program
development using the crystallographic binary file and image library.

%files -n %{devname}
%doc doc
%{_libdir}/libcbf.so
%{_libdir}/libfcb.so
%{_includedir}/cbf

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p2

# various cleanups
iconv -f iso8859-15 -t utf-8 doc/cif_img_1.5.3_8Jul07.dic > doc/cif_img_1.5.3_8Jul07.dic.conv && mv -f doc/cif_img_1.5.3_8Jul07.dic.conv doc/cif_img_1.5.3_8Jul07.dic 
rm doc/.symlinks
rm doc/.undosymlinks
chmod 644 examples/*.c

%build
cd src
gcc -fPIC -DCBF_DONT_USE_LONG_LONG -D_USE_XOPEN_EXTENDED %{optflags} -c *.c ../examples/img.c -I../include/ -I../examples/
gcc -shared -Wl,-soname,libcbf.so.0 -o libcbf.so.0.0.0 *.o -lm
rm *.o
gfortran -fPIC -fallow-invalid-boz -fno-range-check %{optflags} -c *.f90 -I../include/
gfortran -shared -Wl,-soname,libfcb.so.0 -o libfcb.so.0.0.0 *.o

cd ../examples
utilsublist="adscimg2cbf
cbf2adscimg
adscimg2cbf"
for i in $utilsublist; do
  gcc %{optflags} ${i}.c ${i}_sub.c -I../include ../src/libcbf.so.0.0.0 -o ${i}
done
utillist="convert_image
convert_minicbf
makecbf
img2cif
cif2cbf
cif2c"
for i in $utillist; do
  gcc %{optflags} ${i}.c -I../include ../src/libcbf.so.0.0.0 -o ${i} -lm
done

%install
# make install DESTDIR=%{buildroot} INSTALL='install -p'

mkdir -p %{buildroot}%{_libdir}
install -p -m 644 src/*.so* %{buildroot}%{_libdir}/
pushd %{buildroot}%{_libdir}
chmod +x libcbf.so.0.0.0
ln -sf libcbf.so.0.0.0 libcbf.so.0
ln -sf libcbf.so.0.0.0 libcbf.so
chmod +x libfcb.so.0.0.0
ln -sf libfcb.so.0.0.0 libfcb.so.0
ln -sf libfcb.so.0.0.0 libfcb.so
popd

mkdir -p %{buildroot}%{_bindir}
utilsublist="adscimg2cbf
cbf2adscimg
adscimg2cbf"
for i in $utilsublist; do
  install -p -m 755 examples/${i} %{buildroot}%{_bindir}/
done
utillist="convert_image
convert_minicbf
makecbf
img2cif
cif2cbf
cif2c"
for i in $utillist; do
  install -p -m 755 examples/${i} %{buildroot}%{_bindir}/
done

mkdir -p %{buildroot}%{_includedir}/cbf
install -p -m 644 include/* %{buildroot}%{_includedir}/cbf/
install -p -m 644 examples/img.h %{buildroot}%{_includedir}/cbf/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 603 |21cr|cboard-0.7.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Console frontend of gnuchess
Name:		cboard
Version:	0.7.5
Release:	1
License:	GPLv2
Group:		Games/Boards
URL:		http://benkibbey.wordpress.com/cboard/
Source0:	http://sourceforge.net/projects/c-board/files/0.7.1/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(ncursesw)
Requires:	gnuchess

%description
CBoard is a console frontend to GNU Chess, using the ncurses library for
the interface. It can edit PGN tags, annotate moves with NAG, and more.

%prep
%setup -q

%build
%configure --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 604 |21cr|ccd2cue-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ccd2cue
Summary:	CCD to CUE converter
Version:	0.3
Release:	4
License:	GPLv3
Group:		Archiving/Cd burning
Url:		https://ftp.gnu.org/gnu/ccd2cue
Source:		https://ftp.gnu.org/gnu/ccd2cue/%{name}-%{version}.tar.gz
Patch0:		ccd2cue-0.3-strformat.patch
BuildRequires:  glibc-devel

%description
GNU ccd2cue is a CCD sheet to CUE sheet converter.  It supports the full
extent of CUE sheet format expressiveness, including mixed-mode discs
and CD-Text meta-data.

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/*
%{_infodir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 605 |21cr|ccd2iso-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CloneCD image to ISO image file converter
Name:		ccd2iso
Version:	0.3
Release:	10
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		http://sourceforge.net/projects/ccd2iso/
Source0:	http://ovh.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2

%description
CloneCD is an image to ISO image file converter.

%files
%doc README INSTALL AUTHORS
%{_bindir}/ccd2iso

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 606 |21cr|cciss_vol_status-1.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	HP Smart Array Status Display
Name:		cciss_vol_status
Version:	1.11
Release:        4
Group:		System/Kernel and hardware
License:	GPLv2
Source0:	https://sourceforge.net/projects/cciss/files/cciss_vol_status/%{name}-%{version}.tar.gz
BuildRequires:	kernel-devel

%description
Show status of logical drives attached to HP Smart Array controllers.

%prep

%setup -q

%build
autoreconf -fis
%configure
%make

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8

install -m0755 cciss_vol_status %{buildroot}%{_sbindir}/
install -m0644 cciss_vol_status.8 %{buildroot}%{_mandir}/man8/

%files
%doc ChangeLog AUTHORS
%{_sbindir}/cciss_vol_status
%{_mandir}/man8/cciss_vol_status.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 607 |21cr|ccls-0.20220729-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ccls
Version:        0.20220729
Release:        1
Summary:        C/C++/ObjC/ language server
# main package is Apache 2.0
# bundled dependencies are Boost (macro_map) and CC0 (siphash)
License:        Apache-2.0 AND CC0-1.0 AND BSL-1.0
Group:          Development/C++
URL:            https://github.com/MaskRay/ccls
Source0:        %{URL}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  clang-devel >= 7.0
BuildRequires:  cmake >= 3.8
BuildRequires:  llvm-devel >= 7.0
BuildRequires:  rapidjson-devel
BuildRequires:  zlib-devel
Requires:       clang >= 5.0
Requires:       llvm >= 7.0

%description
ccls, which originates from cquery, is a C/C++/Objective-C language server.

- code completion (with both signature help and snippets)
- definition/references, and other cross references
- cross reference extensions: $ccls/call $ccls/inheritance $ccls/member
  $ccls/vars ...
- formatting
- hierarchies: call (caller/callee) hierarchy, inheritance (base/derived)
  hierarchy, member hierarchy
- symbol rename
- document symbols and approximate search of workspace symbol
- hover information
- diagnostics and code actions (clang FixIts)
- semantic highlighting and preprocessor skipped regions
- semantic navigation: $ccls/navigate

%files
%{_bindir}/%{name}
%license LICENSE
%doc README.md

#--------------------------------------------------------------------
%prep
%autosetup -p1
rm -rf third_party/rapidjson

%build
%cmake -DUSE_SYSTEM_RAPIDJSON=ON \
    -DCLANG_LINK_CLANG_DYLIB=ON

# ccls currently consumes ~1GB of memory during compilation per thread
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 608 |21cr|ccp-0.4.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define	name	ccp
%define	version 0.4.1
%define rel	9
%define	release	%mkrel %rel

Name:		%{name} 
Summary:	Program that reads configuration files and upgrades them
Version:	%{version} 
Release:	%{release} 
Source0:	%{name}-%{version}.tar.bz2
URL:		http://ccp.nongnu.org/
Group:		System/Configuration/Other
License:	GPL
BuildArch:	noarch

%description
CCP is a program that reads configuration files and upgrades them.

It takes a oldfile (typically the old configuration file currently in
use) and a newfile (typically the default new configuration  file)  and
optionally a template (a file which tells ccp how the generated
configuration file should look like. It is generated on-the-fly if a template
isn't supplied, so it is usually not needed). CCP first reads all the
configuration options and values in the new file, then in the old file,
then it either generates the template or reads the supplied template
file, finally it merges the files into one - creating a new 
configuration file that has the changes that was made to the old file
but also the new options that is included in the new file.

CCP is completely independent of the program that created the 
configuration  file, and can be used for many different purposes. For
instance it can be used to merge changes between an old  user-edited 
configuration file and a .rpmnew file generated by rpm when a
rpm was upgraded.

CCP currently supports:
key = value configs (--type keyvalue)
and ini configs (--type ini)

%prep
%setup -q
# We want the tests to succeed. A release shouldn't have failing tests
# but better safe than sorry
if ! ./testsuite/ccp-testsuite ; then exit 1;fi

%install
rm -rf $RPM_BUILD_ROOT
mkdir -vp $RPM_BUILD_ROOT%_bindir/ $RPM_BUILD_ROOT%_mandir/man1/ $RPM_BUILD_ROOT%_datadir/ccp/
install -v -m755 ccp  $RPM_BUILD_ROOT%_bindir/
install -v -m644 ccp.1 $RPM_BUILD_ROOT%_mandir/man1/
cp -vr conftypes $RPM_BUILD_ROOT%_datadir/ccp/

%clean 
rm -rf $RPM_BUILD_ROOT 

%files 
%defattr(-,root,root)
%doc TODO version AUTHORS
%_bindir/%name
%_mandir/*/*
%_datadir/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 609 |21cr|ccrtp-2.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Common C++ RTP stack
Name:		ccrtp
Version:	2.1.2
Release:	6
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.gnu.org/software/ccrtp/
Source0:	ftp://ftp.gnu.org/pub/gnu/ccrtp/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	commoncpp2-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(ucommon)

%description
Common C++ RTP stack.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/libccrtp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	commoncpp2-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc doc/html
%{_includedir}/*
%{_libdir}/libccrtp.so
%{_libdir}/pkgconfig/*.pc
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
chmod 644 src/ccrtp/rtp.h

%build
export CXXFLAGS="-fpermissive %{optflags}"
%configure --disable-static
%make

%install
%makeinstall_std
rm -f %{buildroot}%{_infodir}/dir


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 610 |21cr|ccs-tools-1.6.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 20090528

Summary:	TOMOYO Linux tools
Name:		ccs-tools
Version:	1.6.8
Release:	10
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://tomoyo.sourceforge.jp/
Source0:	http://osdn.dl.sourceforge.jp/tomoyo/27220/ccs-tools-%{version}-%{date}.tar.gz
Source1:	README.ccs-tools.urpmi
Source2:	tomoyo.logrotate
Source3:	tomoyo.init
Patch0:		ccs-tools-dont-use-chown.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)

%description
TOMOYO Linux is an extension for Linux to provide Mandatory Access Control
(MAC) functions. This package contains the tools needed to configure,
activate and manage the TOMOYO Linux MAC system and policies.

%files
%doc README.install.urpmi
%{_sysconfdir}/logrotate.d/tomoyo
%attr(700,root,root) %{_initrddir}/ccs-auditd
%attr(700,root,root) /sbin/ccs-init
%attr(700,root,root) /sbin/tomoyo-init
%{_exec_prefix}/lib/ccs/
%{_sbindir}/ccs-auditd
%{_sbindir}/ccs-ccstree
%{_sbindir}/ccs-checkpolicy
%{_sbindir}/ccs-domainmatch
%{_sbindir}/ccs-editpolicy
%{_sbindir}/ccs-findtemp
%{_sbindir}/ccs-ld-watch
%{_sbindir}/ccs-loadpolicy
%{_sbindir}/ccs-pathmatch
%{_sbindir}/ccs-patternize
%{_sbindir}/ccs-queryd
%{_sbindir}/ccs-savepolicy
%{_sbindir}/ccs-setlevel
%{_sbindir}/ccs-setprofile
%{_sbindir}/ccs-sortpolicy
%{_mandir}/man8/ccs-auditd.8*
%{_mandir}/man8/ccs-ccstree.8*
%{_mandir}/man8/ccs-checkpolicy.8*
%{_mandir}/man8/ccs-domainmatch.8*
%{_mandir}/man8/ccs-editpolicy.8*
%{_mandir}/man8/ccs-editpolicy-agent.8*
%{_mandir}/man8/ccs-findtemp.8*
%{_mandir}/man8/ccs-init.8*
%{_mandir}/man8/ccs-ld-watch.8*
%{_mandir}/man8/ccs-loadpolicy.8*
%{_mandir}/man8/ccs-notifyd.8*
%{_mandir}/man8/ccs-pathmatch.8*
%{_mandir}/man8/ccs-patternize.8*
%{_mandir}/man8/ccs-queryd.8*
%{_mandir}/man8/ccs-savepolicy.8*
%{_mandir}/man8/ccs-setlevel.8*
%{_mandir}/man8/ccs-setprofile.8*
%{_mandir}/man8/ccs-sortpolicy.8*
%{_mandir}/man8/init_policy.sh.8*
%{_mandir}/man8/tomoyo-init.8*
%{_mandir}/man8/tomoyo_init_policy.sh.8*
%{_logdir}/tomoyo/

%post
%_post_service ccs-auditd

%preun
%_preun_service ccs-auditd

#----------------------------------------------------------------------------

%prep
%setup -qn ccstools
%patch0 -p1

%build
%make -s all CFLAGS="%{optflags}"

%install
%makeinstall -s INSTALLDIR=%{buildroot}
install -m 644 %{SOURCE1} README.install.urpmi
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/tomoyo
mkdir -p %{buildroot}%{_initrddir}
install -m 700 %{SOURCE3} %{buildroot}%{_initrddir}/ccs-auditd
mkdir -p %{buildroot}%{_logdir}/tomoyo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 611 |21cr|ccze-0.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A robust log colorizer
Summary(ru):	Мощный коллоризатор логов
Name:		ccze
Version:	0.2.1
Release:	3
# http://web.archive.org/web/20040803024236/bonehunter.rulez.org/CCZE.phtml
URL:		http://bonehunter.rulez.org/CCZE.html
License:	GPLv2+
Group:		Text tools
Source:		ftp://bonehunter.rulez.org/pub/ccze/stable/ccze-%{version}.tar.gz

BuildRequires:	pkgconfig(ncurses) >= 5.0
BuildRequires:	pkgconfig(libpcre) >= 3.1
# Debian patch to correct handle -o switch
Patch0:		ccze-0.2.1-Wmulticharacter.patch
Patch1:		ccze-opts.diff

%description
CCZE is a roboust and modular log colorizer, 
with plugins for apm,
exim, fetchmail, httpd, postfix, 
procmail, squid, syslog, ulogd,
vsftpd, xferlog and more.

%description -l ru
CCZE это мощный и модульный раскрашиватель 
логов. Имеются модули-
-плагины для: apm, exim, fetchmail, 
httpd, postfix, procmail, squid,
syslog, ulogd, vsftpd, xferlog и другие.

%prep
%setup -q
%patch0 -p1 -b .-Wmulticharacter
%patch1 -p1 -b .-Wmulticharacter

%build
%configure --with-builtins=all

%make CFLAGS="%{optflags} -D__error_t_defined=1"

%install
iconv -f ISO-8859-1 -t UTF-8 THANKS > THANKS.new
touch --reference THANKS THANKS.new
mv -f THANKS.new THANKS

%makeinstall_std
install -d %{buildroot}/%{_sysconfdir}
src/ccze-dump > %{buildroot}/%{_sysconfdir}/cczerc

rm %{buildroot}/%{_includedir}/ccze.h

%files
%doc AUTHORS COPYING ChangeLog ChangeLog-0.1 NEWS README THANKS FAQ
%config(noreplace) %{_sysconfdir}/cczerc
%{_bindir}/ccze
%{_bindir}/ccze-cssdump
%{_mandir}/man1/ccze.1*
%{_mandir}/man1/ccze-cssdump.1*
%{_mandir}/man7/ccze-plugin.7*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 612 |21cr|cdb-0.75-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Constant DataBase
Name:		cdb
Version:	0.75
Release:	4
License:	Public Domain
Group:		Databases
Url:		http://cr.yp.to/cdb.html
Source0:	%{name}-%{version}.tar.gz
Patch0:		cdb-0.75-errno.patch
Patch1:		cdb-0.75-stdint.patch
Obsoletes:	cdb-devel < 0.75

%description
cdb is a fast, reliable, lightweight package for creating and reading
constant databases.

%files
%doc README TODO
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
sed -i -e 's/head -1/head -n 1/g' Makefile

%build
echo "gcc %{optflags}">conf-cc
echo "gcc %{ldflags}">>conf-ld
make

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}
install -m 755 cdbdump %{buildroot}%{_bindir}/
install -m 755 cdbget %{buildroot}%{_bindir}/
install -m 755 cdbmake %{buildroot}%{_bindir}/
install -m 755 cdbmake-12 %{buildroot}%{_bindir}/
install -m 755 cdbmake-sv %{buildroot}%{_bindir}/
install -m 755 cdbstats %{buildroot}%{_bindir}/
install -m 755 cdbtest %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 613 |21cr|cddetect-2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for detecting the type of a CD/DVD without mounting it
Name:		cddetect
Version:	2.1
Release:	5
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		http://www.bellut.net/projects.html
Source0:	http://www.bellut.net/files/%{name}-%{version}.tar.bz2

%description
This program tries to detect the type of a CD/DVD without mounting it.
It detects audio, ISO, VCD, SVCD and Video-DVD.

%files
%doc COPYING
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
sed -i -e '1i#include <limits.h>' %{name}.c || die
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install -D %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 614 |21cr|cd-discid-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%{nil}

Name:		cd-discid
Version:	1.4
Release:	1
Summary:	Utility to get CDDB discid information
Group:		File tools
License:	GPLv2+
Url:		http://linukz.org/cd-discid.shtml
Source0:	https://github.com/taem/cd-discid/archive/%{name}-%{version}.tar.gz
Patch0:		cd-discid-1.4-fix-install-path.patch

%description
This is a backend utility to get CDDB discid information for a CD-ROM disc. It
was originally designed for cdgrab (now abcde), but can be used for any
purpose requiring CDDB data.

%files
%doc changelog COPYING README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%setup_compile_flags
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 615 |21cr|cdecl-2.5-35
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Programs for encoding and decoding C and C++ function declarations
Name:		cdecl
Version:	2.5
Release:	35
License:	Distributable
Group:		Development/C
Source0:	%{name}-%{version}.tar.bz2
Url:		ftp://sunsite.unc.edu/pub/Linux/devel/lang/c/
Patch0:		cdecl-2.5-readline6.3.patch
Patch1:		cdecl-2.5-fix-conflicts.patch
Patch2:		cdecl-2.5-deb11.diff
# restrict is a reserved keyword in C99/C11,
# therefore it can't be used as a variable name
Patch3:		cdecl-2.5-restrict.patch
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	readline-devel

%description
The cdecl package includes the cdecl and c++decl utilities, which are
used to translate English to C or C++ function declarations and vice
versa.

You should install the cdecl package if you intend to do C and/or C++
programming.

%files
%{_bindir}/cdecl
%{_bindir}/c++decl
%{_mandir}/man1/cdecl.*
%{_mandir}/man1/c++decl.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
%make CFLAGS="%{optflags} -DUSE_READLINE"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
%makeinstall \
	BINDIR=%{buildroot}%{_bindir} \
	MANDIR=%{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 616 |21cr|cdemu-client-3.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command-line client for controlling CDEmu daemon
Name:		cdemu-client
Version:	3.2.5
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://cdemu.sourceforge.net/
Source0:	http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.xz
Patch0:		cdemu-client-3.2.5-fix-install.patch
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	glib-gettextize
BuildRequires:	pkgconfig(bash-completion)
Requires:	python3-dbus
Requires:	cdemu-daemon >= %{version}
BuildArch:	noarch

%description
This is cdemu-client, a simple command-line client for controlling
CDEmu daemon. It is part of the userspace-cdemu suite, a free, GPL
CD/DVD-ROM device emulator for linux.

It provides a way to perform the key tasks related to controlling
the CDEmu daemon, such as loading and unloading devices, displaying
devices' status and retrieving/setting devices' debug masks.

%files -f cdemu.lang
%doc README AUTHORS COPYING NEWS ChangeLog
%{_bindir}/cdemu
%{_datadir}/applications/%{name}.desktop
%{_datadir}/bash-completion/completions/cdemu
%{_iconsdir}/hicolor/scalable/apps/cdemu-client.svg
%{_mandir}/man1/cdemu.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake \
	-DENABLE_BASH_COMPLETION:BOOL=ON \
	-DPOST_INSTALL_HOOKS:BOOL=OFF
%make -s

%install
%makeinstall_std -C build

%find_lang cdemu

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 617 |21cr|cdemu-daemon-3.2.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Userspace daemon part of the CDemu suite
Name:		cdemu-daemon
Version:	3.2.6
Release:	3
License:	GPLv2+
Group:		Emulators
Url:		http://cdemu.sourceforge.net/
Source0:	http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.xz
Source1:	50-cdemud.rules
Source3:	cdemu-daemon.sysconfig
Source4:	cdemu-daemon.service
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	sysfsutils-devel
BuildRequires:	pkgconfig(libmirage)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(ao)
Requires:	dkms-vhba

%description
The daemon receives SCSI commands from kernel module and processes
them, passing the requested data back to the kernel.

Daemon implements the actual virtual device; one instance per each
device registered by kernel module. It uses libMirage, an image
access library that is part of userspace-cdemu suite, for the image
access (e.g. sector reading).

Daemon is controlled through methods that are exposed via D-BUS. It
is written in C and based on GLib (and thus GObjects), but being
controlled over D-BUS, it allows for different clients written in
different languages.

%files -f %{name}.lang
%doc README AUTHORS
%{_bindir}/cdemu-daemon
%{_mandir}/man8/cdemu-daemon.8*
%{_sysconfdir}/modules-load.d/cdemud.conf
%{_sysconfdir}/sysconfig/cdemu-daemon
%{_udevrulesdir}/50-cdemud.rules
%{_userunitdir}/cdemu-daemon.service
%{_datadir}/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service

%post
# apply the new udev rule if module already present
/sbin/modprobe --first-time vhba 2>/dev/null || /sbin/udevadm trigger --sysname-match=vhba_ctl
%systemd_post cdemu-daemon.service

%preun
%systemd_preun cdemu-daemon.service

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake
%make -s

%install
%makeinstall_std -C build

install -d -m755 %{buildroot}%{_libexecdir}
install -d -m755 %{buildroot}%{_sysconfdir}/modules-load.d
install -d -m755 %{buildroot}%{_udevrulesdir}

echo "vhba" > %{buildroot}%{_sysconfdir}/modules-load.d/cdemud.conf

install %{SOURCE1} %{buildroot}%{_udevrulesdir}/50-cdemud.rules

install -d -m755 %{buildroot}%{_userunitdir}
install -pm0644 %{SOURCE4} %{buildroot}%{_userunitdir}/cdemu-daemon.service

install -d -m755 %{buildroot}%{_datadir}/dbus-1/services
install -pm0644 service-example/net.sf.cdemu.CDEmuDaemon.service %{buildroot}%{_datadir}/dbus-1/services/net.sf.cdemu.CDEmuDaemon.service

install -d -m755 %{buildroot}%{_sysconfdir}/sysconfig
install -pm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/cdemu-daemon

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 618 |21cr|cdi2iso-0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cdi2iso
Version:	0.1
Release:	12
Summary:	Convert DiskJuggler CD Images to ISO
Source:		%{name}-%{version}.tar.bz2
URL:		http://developer.berlios.de/projects/cdi2iso/
License:	GPL
Group:		Archiving/Other

%description 
CDI2ISO is a very simple utility to convert DiscJuggler image
to the standard ISO-9660 format.

%prep
%setup -q

%build
gcc %optflags ./src/cdi2iso.c -o cdi2iso

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install cdi2iso %{buildroot}%{_bindir}/cdi2iso

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGELOG
%{_bindir}/cdi2iso

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 619 |21cr|cdlabelgen-4.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Program for generating inserts for CDs
Name:		cdlabelgen
Version:	4.3.0
Release:	3
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		http://www.aczoom.com/tools/cdinsert/
Source0:	http://www.aczoom.com/pub/tools/%{name}-%{version}.tgz
Buildarch:	noarch

%description
cdlabelgen is a program for generating frontcards and traycards for CDs.
Use it to make labels for your archive CDs, CDs full of oggs, or
even make a label for that CD that you lost the case for! 
This package is used by the gcombust CD writing application.

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man1

# [gb] they meant DATA_DIR
make install \
	BASE_DIR=%{buildroot}%{_prefix} \
	LIB_DIR=%{buildroot}%{_datadir}/%{name} \
	MAN_DIR=%{buildroot}%{_mandir}

%files
%{_bindir}/*
%{_datadir}/%{name}/*
%{_mandir}/man1/*
%doc ChangeLog INSTALL README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 620 |21cr|cdogs-sdl-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open source, classic overhead run-and-gun game
Name:		cdogs-sdl
Version:	1.3.1
Release:	1
Group:		Games/Arcade
License:	GPLv2+ and BSD and CC0 and CC-BY and CC-BY-SA
Url:		http://cxong.github.io/cdogs-sdl
Source0:	https://github.com/cxong/cdogs-sdl/archive/%{version}/%{name}-%{version}.tar.gz
# From OpenMandriva
Patch0:		fix-build.patch
Patch1:		cdogs-sdl-1.3.1-fix-source-file-directory.patch
BuildRequires:	cmake
BuildRequires:	python3dist(protobuf)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libenet)
BuildRequires:	pkgconfig(physfs)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)

%description
A classic overhead run-and-gun game, supporting up to 4 players in co-op and
deathmatch modes. Customize your player, choose from up to 11 weapons, and try
over 100 user-created campaigns.

%files
%doc README.md doc/AUTHORS doc/README_DATA.md doc/original_readme.txt
%{_appdatadir}/io.github.cxong.%{name}.appdata.xml
%{_datadir}/applications/io.github.cxong.%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-editor
%{_gamesdatadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/io.github.cxong.%{name}.png

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
CFLAGS="%{optflags} -Wno-error=inline -fno-strict-aliasing"
%cmake \
	-DCDOGS_BIN_DIR=%{_gamesbindir}			\
	-DCDOGS_DATA_DIR=%{_gamesdatadir}/%{name}/	\
	-DOpenGL_GL_PREFERENCE=GLVND			\
	-DUSE_SHARED_ENET=ON
%make

%install
%makeinstall_std -C build

# Fix some perms
find %{buildroot} -name "*.sh"| xargs chmod +x

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 621 |21cr|cdrdao-1.2.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cdrdao - Write CDs in disk-at-once mode
Name:		cdrdao
Version:	1.2.4
Release:	5
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		http://cdrdao.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/cdrdao/%{name}-%{version}.tar.bz2
Patch1:		mkisofs-changelog.patch
Patch2:		cdrdao-1.2.4-buildfixes.patch
#gw from Fedora: fix version printing needed by k3b
Patch3:		cdrdao-1.2.3-version.patch
Patch4:		cdrdao-1.2.3-autoconf-update.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(ao)
%ifnarch aarch64
BuildRequires:	pkgconfig(mad)
%endif
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(vorbis)

%description
Writes CDs in disc-at-once (DAO) mode allowing control over pre-gaps
(length down to 0, nonzero audio data) and sub-channel information
like ISRC codes. All data that is written to the disc must be
specified with a text file. Audio data may be in WAVE or raw format.

%files
%doc README README.PlexDAE
%doc %{_mandir}/man1/*
%attr(6755,root,cdwriter) %{_bindir}/cdrdao
%{_bindir}/toc2cue
%{_bindir}/toc2cddb
%{_bindir}/cue2toc
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package gcdmaster
Summary:	Graphical front end to cdrdao for creating audio CDs
Group:		Archiving/Cd burning
BuildRequires:	pkgconfig(libgnomeuimm-2.6)
Provides:	cdrdao-xdao
Provides:	cdrdao-xcdrdao
Requires:	%{name} = %{EVRD}

%description gcdmaster
gcdmaster allows the creation of toc-files for cdrdao and can control
the recording process. Its main application is the creation of audio
CDs from one or more audio files. It supports PQ-channel editing,
entry of meta data like ISRC codes/CD-TEXT and non-destructive cut of
the audio data.

%files gcdmaster
%{_sysconfdir}/gconf/schemas/gcdmaster.schemas
%{_bindir}/gcdmaster
%{_datadir}/applications/gcdmaster.desktop
%{_datadir}/application-registry/gcdmaster.applications
%{_datadir}/gcdmaster
%{_datadir}/mime-info/gcdmaster.keys
%{_datadir}/mime-info/gcdmaster.mime
%{_datadir}/mime/packages/gcdmaster.xml
%{_datadir}/pixmaps/*
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%package toc2mp3
Summary:	Command line MP3 encoder front end to cdrdao
Group:		Sound
BuildRequires:	liblame-devel
Requires:	%{name} = %{EVRD}

%description toc2mp3
This is a command line MP3 encoder that converts audio CD disc images
(toc files) to MP3 files. Special care is taken that the MP3 files can
be played in sequence without having unwanted noise at the transition
points. CD-TEXT information (if available) is used to set ID3 (v2)
tags and to construct the name of the MP3 files.

%files toc2mp3
%{_bindir}/toc2mp3

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Remove ancient copies of autoconf internal files
rm -f scsilib/conf/*.m4

%build
export CXXFLAGS="%{optflags} -std=gnu++11 -DENABLE_NLS"

%configure

%make_build

%install
%make_install

# Menu
perl -pi -e 's,gcdmaster.png,gcdmaster,g' %{buildroot}%{_datadir}/applications/*
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="X-Fedora" \
  --remove-key="Encoding" \
  --add-category="GTK" \
  --add-category="AudioVideo" \
  --add-category="DiscBurning" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# icon
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -scale 16 gcdmaster/gcdmaster.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/gcdmaster.png
convert -scale 32 gcdmaster/gcdmaster.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/gcdmaster.png
install -m 644 gcdmaster/gcdmaster.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/gcdmaster.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 622 |21cr|cdtool-2.1.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Powerful command line CDROM player and tools
Name:		cdtool
Version:	2.1.8
Release:	10
License:	GPLv2
Group:		Sound
URL:		http://hinterhof.net/cdtool/
Source0:	http://hinterhof.net/cdtool/dist/%{name}-%{version}.tar.bz2
# fixes error: conflicting types for 'getline' 09 Jun 2009
Patch0:		%{name}-2.1.8-fix-getline.patch

%description
A package of command-line utilities to play and catalog audio CD-ROMs.
This package includes cdstart, cdpause, cdstop, cdeject, and
cdshuffle. Also, cdctrl may be used as a CD-ROM control daemon. Cdown
allows querying of the cddb database to build a local database of
discs usable by cdinfo, etc.

%prep
%setup -q
%patch0 -p1
sed -i -e 's, -o root,,g' Makefile.in
sed -i -e 's,/lib,/%{_lib},g' Makefile.in

%build
%configure
make RPM_OPT_FLAGS="%{optflags}"

%install
%makeinstall
# don't conflict with cdp (#21020) - AdamW 2008/01
mv %{buildroot}%{_bindir}/cdplay %{buildroot}%{_bindir}/cdplay-cdtool
mv %{buildroot}%{_mandir}/man1/cdplay.1 %{buildroot}%{_mandir}/man1/cdplay-cdtool.1

%files
%doc README INSTALL
%{_bindir}/*
%{_mandir}/man1/*
%{_libdir}/cdtool/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 623 |21cr|cdvst-0.18-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Certain Death via Space Things
Name:		cdvst
Version:	0.18
Release:	14
Source0:	http://kokido.sourceforge.net/%{name}-.18.tar.bz2
Source1:	%{name}-icons.tar.bz2
Patch0:		%{name}-optflags.patch.bz2
Patch1:		%{name}-shared.patch.bz2
License:	GPLv2
Url:		http://kokido.sourceforge.net/cdvst.html
Group:		Games/Arcade
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:  desktop-file-utils

%description
The space things will certainly kill you :)
A top down scrolling putting you in the pilot seat of a space fighter.
Reminiscent of many old arcade games. 
 
%prep
%setup -q -n %{name}-.18

%patch0 -p0
%patch1 -p0



%build
%make OPTFLAGS="$RPM_OPT_FLAGS -lm" DATA_PREFIX=%{_gamesdatadir}/%{name}/

%install
install -m755 cdvst -D $RPM_BUILD_ROOT%{_gamesbindir}/%{name}
chmod 644 readme.txt data/*
install -d $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}
cp -a data $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}


mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=CDvST
Comment=%{Summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

install -d ${RPM_BUILD_ROOT}{%{_miconsdir},%{_liconsdir}}
tar -xOjf %{SOURCE1} icons/16x16.png > ${RPM_BUILD_ROOT}%{_miconsdir}/%{name}.png
tar -xOjf %{SOURCE1} icons/32x32.png > ${RPM_BUILD_ROOT}%{_iconsdir}/%{name}.png
tar -xOjf %{SOURCE1} icons/48x48.png > ${RPM_BUILD_ROOT}%{_liconsdir}/%{name}.png


%files
%doc readme.txt
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 624 |21cr|cdw-0.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Front-end for tools used for burning data CD/DVD
Name:		cdw
Version:	0.8.1
Release:	5
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		https://sourceforge.net/projects/cdw/
Source0:	https://downloads.sourceforge.net/project/cdw/cdw/cdw%20%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libburn-1)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(ncursesw)
Requires:	dvd+rw-tools
Requires:	genisoimage
Requires:	xorriso

%description
cdw is a ncurses based front-end for some command-line tools used for burning
data CD and DVD discs and for related tasks. The tools are: cdrecord/wodim,
mkisofs/genisoimage, growisofs, dvd+rw-mediainfo, dvd+rw-format, xorriso.
cdw is able to rip tracks from your audio CD to raw audio files.
Limited support for copying content of data CD and DVD discs to image files
is also provided. cdw can verify correctness of writing ISO9660 image to
CD or DVD disc using md5sum or some of  programs that verifies SHA hashes.

%files
%doc COPYING AUTHORS ChangeLog NEWS README THANKS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std


%check
make check LIBS="-lm"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 625 |21cr|cegui-0.8.7-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gitdate 20200921
%define	gitver 0-8-7
%define	mainver 0.8
%define	api 0
%define	major 2
%define	libname %mklibname %{name} %{api} %{major}
%define	devname %mklibname %{name} %{api} -d

%define	plugins %mklibname %{name}-plugins %{mainver}

Summary:	A free library providing windowing and widgets for graphics APIs / engines
Name:		cegui
Version:	0.8.7
Release:	12
License:	MIT
Group:		System/Libraries
Url:		http://www.cegui.org.uk
#Source0:	https://github.com/cegui/cegui/archive/%%{name}-%%{gitver}.tar.gz
# Pick up the HEAD of the stable 0.8.x branch to have all the latest fixes
Source0:	%{name}-%{gitdate}.tar.xz
Patch0:		cegui-0.8.7git-fix-use-with-newer-xerces32.patch
Patch1:		cegui-0.8.7git-fix-OIS-finding.patch
Patch2:		cegui-0.8.7git-force-finding-of-lua_5.3.patch
# Upstream commits 71892fb382288e75b2ad9067ad019dad57de5a01 and 6e26966e3761176e5e78f5f571e419ad611c7ef3
# cause the build failing
Patch3:		cegui-0.8.7git-revert-change-to-size_t-breaking-build.patch
# need for ogre > 1.11 see https://github.com/cegui/cegui/pull/1218
Patch4:		cegui-ogre-version.patch
Patch5:		cegui-require-glew.patch
Patch6:		cegui-20200921-ogre-compat.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	freeimage-devel
BuildRequires:	glm-devel
BuildRequires:	irrlicht-devel
BuildRequires:	rapidxml-devel
BuildRequires:	tinyxml-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(IL)
BuildRequires:	pkgconfig(glfw3)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(OGRE)
BuildRequires:	pkgconfig(OIS)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(sfml-all)
BuildRequires:	pkgconfig(tinyxml2)
BuildRequires:	pkgconfig(xerces-c)

%description
Crazy Eddie's GUI System is a free library providing windowing and widgets for
graphics APIs / engines where such functionality is not natively available, or
severely lacking. The library is object orientated, written in C++, and
targeted at games developers who should be spending their time creating great
games, not building GUI sub-systems!

#----------------------------------------------------------------------------

%package -n %{plugins}
Summary:	CEGUI library plugins
Group:		System/Libraries

%description -n %{plugins}
This is a library plugins used by CEGUI.

%files -n %{plugins}
%license COPYING
%dir %{_libdir}/%{name}-%{mainver}/
%{_libdir}/%{name}-%{mainver}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CEGUI library
Group:		System/Libraries
Requires:	%{plugins} = %{EVRD}

%description -n %{libname}
This is a library used by CEGUI.

%files -n %{libname}
%license COPYING
%{_libdir}/libCEGUI*-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for CEGUI
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{plugins} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}CEUI0.6-devel

%description -n %{devname}
Development file for CEGUI.

%files -n %{devname}
%doc README.md
%license COPYING
%{_includedir}/%{name}-%{api}/
%{_libdir}/libCEGUI*.so
%{_libdir}/pkgconfig/CEGUI-%{api}*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{gitdate}

# Fix perms
find . -name "*.cpp" | xargs chmod -x

%build
%cmake	\
	-DCEGUI_BUILD_PYTHON_MODULES=FALSE	\
	-DCEGUI_BUILD_RENDERER_DIRECTFB=false	\
	-DCEGUI_BUILD_TESTS=false		\
	-DCEGUI_SAMPLES_ENABLED=FALSE		\
	-Wno-dev
%make

%install
%makeinstall_std -C build

# Remove unnecessary demo content
rm -f %{buildroot}%{_bindir}/toluapp%{name}-%{mainver}
rm -rf %{buildroot}%{_datadir}/%{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 626 |21cr|celestia-1.7.0-0.20210113.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname Celestia
%define	gitdate 20210113

%define	major	1.7
%define	libname	%mklibname %{name} %{major}

Summary:	A real-time visual space simulation
Name:		celestia
Version:	1.7.0
Release:	0.%{gitdate}.2
License:	GPLv2+
Group:		Sciences/Astronomy
Url:		https://celestia.space/
#Source0:	https://github.com/CelestiaProject/Celestia/archive/%%{name}-%%{version}.tar.gz
Source0:	%{name}-%{gitdate}.tar.xz
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
Patch0:		celestia-1.7.0git-cfg.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	eigen3
BuildRequires:	gettext
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(theora)

%description
Celestia is a free real-time space simulation that lets you experience our
universe in three dimensions. Unlike most planetarium software, Celestia
doesn't confine you to the surface of the Earth. You can travel throughout the
solar system, to any of over 100,000 stars, or even beyond the galaxy. All
travel in Celestia is seamless; the exponential zoom feature lets you explore
space across a huge range of scales, from galaxy clusters down to spacecraft
only a few meters across. A 'point-and-goto' interface makes it simple to
navigate through the universe to the object you want to visit.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING README.md
%{_bindir}/%{name}-qt
%{_datadir}/applications/%{name}-qt.desktop
%{_datadir}/%{name}
%{_mandir}/man1/%{name}-qt.1*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < %{version}

%description -n %{libname}
Celestia is a free real-time space simulation that lets you experience our
universe in three dimensions.
This package contains the main library for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/libcelestia.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}
%patch0 -p1


%build
%cmake
%make


%install
%makeinstall_std -C build

# Process and install provided .desktop file
install -d %{buildroot}%{_datadir}/applications/
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
	--remove-key='Version' debian/%{name}-qt.desktop

# Install provided man page
install -d %{buildroot}%{_mandir}/man1/
install -m 644 debian/%{name}-qt.1 %{buildroot}%{_mandir}/man1/%{name}-qt.1

# Install our icons
install -D -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

%find_lang %{name} %{name}_constellations %{name}.lang





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 627 |21cr|cellwriter-1.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
#define debug_package %{nil}

Summary:	Character-based hardwriting input panel
Name:		cellwriter
Version:	1.3.6
Release:	1
License:	GPLv2+
Group:		Accessibility
Url:		http://risujin.org/cellwriter/ 
Source0:	http://pub.risujin.org/cellwriter/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(xtst)

%description
CellWriter is a grid-entry natural handwriting input panel. As you write
characters into the cells, your writing is instantly recognized at the
character level. When you press Enter on the panel, the input you entered is
sent to the currently focused application as if typed on the keyboard.

%files
%doc README NEWS COPYING AUTHORS 
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_iconsdir}/hicolor/scalable/apps/cellwriter.svg
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make LIBS="$LIBS -lX11 -lm -lXtst"

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 628 |21cr|celt07-0.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname celt0_ %major
%define develname %mklibname -d celt0_0.7

Summary:	Older version of the CELT ultra-low delay audio codec
Name:		celt07
Version:	0.7.1
Release:	4
Source0:	http://downloads.us.xiph.org/releases/celt/celt-%{version}.tar.gz
License:	BSD
Group:		Sound
Url:		http://www.celt-codec.org/
BuildRequires:	libogg-devel

%description
This is an older version of the CELT ultra-low delay audio codec,
using a bitstream format different from the current version.

Since the older version is still in common use and newer versions
can't play back or convert streams created with the older version,
this version should be available for some time.

%package -n	%{libname}
Summary:	Ultra-low delay audio codec - shared library
Group:		System/Libraries

%description -n	%{libname}
This is an older version of the CELT ultra-low delay audio codec,
using a bitstream format different from the current version.

Since the older version is still in common use and newer versions
can't play back or convert streams created with the older version,
this version should be available for some time.

%prep
%setup -q -n celt-%version

%build
%configure
%make

%install
%makeinstall_std

# Remove stuff that would conflict with the newer, default celt
rm -rf %buildroot%_includedir \
	%buildroot%_libdir/*.a \
	%buildroot%_libdir/*.so \
	%buildroot%_libdir/pkgconfig \
	%buildroot%_bindir

%check
make check

%files -n %{libname}
%doc README COPYING
%{_libdir}/libcelt0.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 629 |21cr|censor-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		censor
Version:	1.0
Release:	1
Summary:	Scheduled Website Blocker (Parental Control)
Group:		System/Configuration/Networking
License:	GPLv3
URL:		https://github.com/AKotov-dev/Censor
Source0:	https://github.com/AKotov-dev/Censor/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	iptables
Requires:	ipset
Requires:	systemd
Requires:	cronie
Requires:	bind-utils
Requires:	polkit
Requires:	gtk2

%description
Censor is designed to block sites from the black list according to the schedule:
days of the week, time.

It has three blocking options that differ in their effectiveness:

    normal; sites from the list are blocked using ipset + iptables/ip6tables
    dictionary filtering method; useful for blocking "difficult" sites like youtube.com
    only web-surfing; method allows you to disable VPN, Torrent, Skype and other services

%files
%doc ../README.md
%license ../LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/%{name}.policy

%postun
#!/bin/bash

#Если удаление (не обновление!)
if [ ! -f /usr/share/censor/censor ]; then
#Удаляем настройки планировщика (RedHat или Debian)
if [ -d '/var/spool/cron/crontabs' ]; then
rm -fv /var/spool/cron/crontabs/root
systemctl restart cron.service
else
rm -fv /var/spool/cron/root
systemctl restart crond.service
fi;

#Удаляем сервис автозапуска и скрипт правил ip(6)tables
if [ -f /etc/systemd/system/censor.service ]; then
systemctl disable censor.service
rm -fv /etc/systemd/system/censor.service /usr/local/bin/censor.sh
systemctl daemon-reload
fi;

#Возвращаем ip(6)tables в default, удаляем blacklist(6)
iptables -F; iptables -X; iptables -t nat -F; iptables -t nat -X
iptables -t mangle -F; iptables -t mangle -X
ip6tables -F; ip6tables -X; ip6tables -t nat -F; ip6tables -t nat -X
ip6tables -t mangle -F; ip6tables -t mangle -X

iptables -P INPUT ACCEPT; iptables -P OUTPUT ACCEPT; iptables -P FORWARD ACCEPT
ip6tables -P INPUT ACCEPT; ip6tables -P OUTPUT ACCEPT; ip6tables -P FORWARD ACCEPT

#Удаляем таблицы ipset
if [ -f /root/.censor/ipset_rules ]; then rm -fv /root/.censor/ipset_rules; fi
fi;

#------------------------------------------------------------------
%prep
%setup -n censor-%{version}/%{name}

# remove prebuild file
rm -f censor

%build
lazbuild --build-all *.lpi

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications,polkit-1/actions}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp ./%{name} %{buildroot}%{_datadir}/%{name}
cp ./all/usr/bin/* %{buildroot}%{_bindir}/
cp ./all/usr/share/icons/* %{buildroot}%{_datadir}/pixmaps/
cp ./all/usr/share/applications/* %{buildroot}%{_datadir}/applications/
cp ./all/usr/share/polkit-1/actions/* %{buildroot}%{_datadir}/polkit-1/actions
cp ./languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 630 |21cr|centerim-4.22.10-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%{nil}

Summary:	Console ncurses based multi-protocol instant messenger
Name:		centerim
Version:	4.22.10
Release:	7
License:	GPLv2+ and LGPLv2+
Group:		Networking/Instant messaging
Url:		http://www.centerim.org
Source0:	http://www.centerim.org/download/releases/%{name}-%{version}.tar.gz
Patch0:		%{name}-4.22.6-url-escape-fedora.patch
Patch1:		%{name}-gcc46.patch
BuildRequires:	autoconf
BuildRequires:	git
BuildRequires:	gettext-devel
BuildRequires:	gpgme-devel
BuildRequires:	jpeg-devel
BuildRequires:	liblzo-devel 
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
%rename		centericq

%description
CenterIM is a text mode menu- and window-driven instant messenger. ICQ,
Yahoo!, AIM TOC, IRC, MSN, Gadu-Gadu and Jabber protocols are currently
supported. There is also an internal RSS reader and a LiveJournal client.
CenterIM is a fork of the CenterICQ project.

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS COPYING ChangeLog FAQ NEWS README THANKS TODO
%{_bindir}/%{name}
%{_bindir}/cimconv
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/cimconv.1*
%{_datadir}/%{name}
%{_bindir}/cimformathistory
%{_bindir}/cimextracthistory.pl

#-----------------------------------------------------------------------------

%prep 
%setup -q
#security fix from fedora
%patch0 -p1 -b .url-escape-fedora
%patch1 -p1 -b .gcc46


%build
autoreconf -vfi
%global optflags %{optflags} -std=c++14
%configure \
        --with-ssl \
        --enable-locales-fix
%make


%install
%makeinstall_std

# Not needed, drop it as Fedora does
rm -f %{buildroot}%{_bindir}/CenterIMLog2HTML.py

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 631 |21cr|centerim5-5.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Import froms Stella7, Thx to Nux.
# http://li.nux.ro/stella/


%define major 0
%define libname %mklibname cppconsui %{major}

%define _desktopdir %{_datadir}/applications

Summary:	Text mode menu- and window-driven IM
Name:		centerim5
Version:	5.0.1
Release:	1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://www.centerim.org/
Source0:	http://www.centerim.org/download/cim5/%{name}-%{version}.tar.gz
Source1:	centerim5.svg
Source2:	centerim5.desktop
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	doxygen
BuildRequires:	gettext-devel
BuildRequires:	gpgme-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(sigc++-2.0)

Requires:	%{libname} = %{EVRD}
Requires:	%{_lib}purple0
Requires:	xdg-utils
Conflicts:	%{_lib}cppconsui0 < 5.0.0-beta2.2

# do not obsolete centerim4 yet
%if %{mdvver} >= 201200
Provides:	centericq5 = %{EVRD}
Conflicts:	centerim
%endif

%description
CenterIM5 is a text mode menu and window-driven IM interface that supports
the ICQ2000, Yahoo!, MSN, AIM TOC, IRC, Gadu-Gadu and Jabber protocols.
Internal RSS reader and a client for LiveJournal are provided.

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS COPYING ChangeLog HACKING NEWS README TODO
%{_bindir}/%{name}
%{_desktopdir}/*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_libdir}/%{name}/*.so
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}

%files -n %{libname}
%doc HACKING
%{_libdir}/libcppconsui.so.%{major}*

#------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--libdir=%{_libdir}

%make

%install
%makeinstall_std
# remove unnecessary stuff
rm -f %{buildroot}%{_libdir}/libcppconsui.so

for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size %{SOURCE1} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done


desktop-file-install \
	--dir=%{buildroot}%{_desktopdir} \
	%{SOURCE2}


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 632 |21cr|ceph-iscsi-3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python modules for Ceph iSCSI gateway configuration management
Name:		ceph-iscsi
Version:	3.6
Release:	1
License:	GPLv3+
Group:		Development/Python
Url:		https://github.com/ceph/ceph-iscsi
Source0:	https://github.com/ceph/ceph-iscsi/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	tcmu-runner
Requires:	ceph-common
Requires:	python3dist(configshell-fb)
Requires:	python3dist(cryptography)
Requires:	python3dist(flask)
Requires:	python3dist(netifaces)
Requires:	python3dist(pyopenssl)
Requires:	python3dist(requests)
Requires:	python3dist(rtslib-fb)
BuildArch:	noarch

%description
Python package providing the modules used to handle the configuration of an
iSCSI gateway, backed by Ceph RBD. The RPM installs configuration management
logic (ceph_iscsi_config modules), an rbd-target-gw systemd service, and
a CLI-based management tool 'gwcli', replacing the 'targetcli' tool.

The configuration management modules may be are consumed by custom Ansible
playbooks and the rbd-target-gw daemon.

The rbd-target-gw service is responsible for startup and shutdown actions,
replacing the 'target' service used in standalone LIO implementations.
In addition, rbd-target-gw also provides a REST API utilized by the Ceph
dashboard and gwcli tool, and a prometheus exporter for gateway LIO
performance statistics, supporting monitoring and visualisation tools like
Grafana.

%files
%doc README README.md
%license COPYING LICENSE
%attr(0770,root,root) %dir %{_localstatedir}/log/rbd-target-api
%attr(0770,root,root) %dir %{_localstatedir}/log/rbd-target-gw
%{_bindir}/gwcli
%{_bindir}/rbd-target-api
%{_bindir}/rbd-target-gw
%dir %{_localstatedir}/target
%dir %{_localstatedir}/target/alua
%dir %{_localstatedir}/target/pr
%dir %{_sysconfdir}/target
%dir %{_sysconfdir}/target/alua
%dir %{_sysconfdir}/target/pr
%dir %{_unitdir}/rbd-target-gw.service.d
%{_mandir}/man8/gwcli.8.*
%{python3_sitelib}/ceph_iscsi_config
%{python3_sitelib}/ceph_iscsi-%{version}-py*.egg-info
%{python3_sitelib}/gwcli
%{_unitdir}/rbd-target-api.service
%{_unitdir}/rbd-target-gw.service

%post
%systemd_post rbd-target-gw.service
%systemd_post rbd-target-api.service

%preun
%systemd_preun rbd-target-gw.service
%systemd_preun rbd-target-api.service

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_unitdir}
cp usr/lib/systemd/system/rbd-target-gw.service %{buildroot}%{_unitdir}
cp usr/lib/systemd/system/rbd-target-api.service %{buildroot}%{_unitdir}

mkdir -p %{buildroot}%{_mandir}/man8
cp gwcli.8 %{buildroot}%{_mandir}/man8

mkdir -p %{buildroot}%{_unitdir}/rbd-target-gw.service.d
mkdir -p %{buildroot}%{_sysconfdir}/target/pr
mkdir -p %{buildroot}%{_sysconfdir}/target/alua
mkdir -p %{buildroot}%{_localstatedir}/target/pr
mkdir -p %{buildroot}%{_localstatedir}/target/alua

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 633 |21cr|cerealizer-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Cerealizer

Summary:	Python module that allows one to save objects in files
Name:		cerealizer
Version:	0.8.3
Release:	1
License:	Python license
Group:		Development/Python
Url:		http://www.lesfleursdunormal.fr/static/informatique/cerealizer/index_en.html
Source0:	https://pypi.io/packages/source/c/cerealizer/%{oname}-%{version}.tar.gz
Patch0:		cerealizer-0.8.3-fix-StrHandler-class.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
Python module that allows one to save objects in files.

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 module that allows one to save objects in files
Group:		Development/Python

%description -n python3-%{name}
Python 3 module that allows one to save objects in files.

%files -n python3-%{name}
%doc README.rst
%{python3_sitelib}/%{name}
%{python3_sitelib}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

# Remove bundled egg-info
rm -rf %{oname}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 634 |21cr|certwatch-1.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SSL certificate monitoring
Name:		certwatch
Version:	1.0
Release:	15
License:	GPLv2+
Group:		System/Servers
Source0:	%{name}-%{version}.tar.gz
Patch0:		certwatch-1.0-mdv.patch
Patch1:		certwatch-1.0-docbook-dtd45.patch
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	xmlto
BuildRequires:	pkgconfig(openssl)

%description
The certwatch  program  is used to issue warning when an SSL certificate is
about to expire.

%files
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/cron.daily/certwatch
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
cc %{optflags} -Wall -I/usr/include/openssl \
	certwatch.c -o certwatch -lcrypto

xmlto man certwatch.xml

%install
mkdir -p %{buildroot}%{_sysconfdir}/cron.daily \
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig \
	%{buildroot}%{_mandir}/man1 \
	%{buildroot}%{_bindir}

# install certwatch
install -c -m 755 certwatch %{buildroot}%{_bindir}/certwatch
install -c -m 755 certwatch.cron \
	%{buildroot}%{_sysconfdir}/cron.daily/certwatch
install -c -m 644 certwatch.1 \
	%{buildroot}%{_mandir}/man1/certwatch.1

cat > %{buildroot}%{_sysconfdir}/sysconfig/%{name} <<EOF
# certwatch cron task options
CERTS_DIR=/etc/pki/tls/certs
CERTWATCH_OPTS=
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 635 |21cr|cgal-5.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	uname CGAL
%define	soname 13
%define	libname %mklibname %{name} %{soname}
%define	devname %mklibname %{name} -d

Summary:	Computational Geometry Algorithms Library
Name:		cgal
Version:	5.2.2
Release:	2
License:	LGPLv3+ and GPLv3+ and BSL
Group:		System/Libraries
Url:		https://www.cgal.org
Source0:	https://github.com/CGAL/cgal/releases/download/releases%2F%{uname}-%{version}/%{uname}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	boost-devel >= 1.48.0
BuildRequires:	mpfr-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gmp)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(zlib)

%description
The goal of the CGAL Open Source Project is to provide easy access to
efficient and reliable geometric algorithms in the form of a C++ library. CGAL
is used in various areas needing geometric computation, such as: computer
graphics, scientific visualization, computer aided design and modeling,
geographic information systems, molecular biology, medical imaging, robotics
and motion planning, mesh generation, numerical methods...
More on the projects using CGAL on the web page.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Computational Geometry Algorithms Library
Group:		System/Libraries

%description -n %{libname}
The goal of the CGAL Open Source Project is to provide easy access to
efficient and reliable geometric algorithms in the form of a C++ library.
This packge contains the cgal libraries.

%files -n %{libname}
%doc AUTHORS LICENSE LICENSE.BSL LICENSE.LGPL LICENSE.GPL LICENSE.RFL CHANGES.md
%{_libdir}/lib%{uname}*.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and tools for CGAL applications
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{uname}-devel = %{EVRD}

%description -n %{devname}
This package provides the headers files and tools you may need to
develop applications using CGAL.

%files -n %{devname}
%doc doc_html/*
%{_includedir}/%{uname}
%{_libdir}/lib%{uname}*.so
%dir %{_libdir}/cmake/%{uname}
%{_libdir}/cmake/%{uname}/*
%{_bindir}/%{name}*
%{_mandir}/man1/%{name}_create_cmake_script.1*

#----------------------------------------------------------------------------

%package demos-source
Summary:	Examples and demos of CGAL algorithms
Group:		Documentation
Requires:	%{devname} = %{EVRD}

%description demos-source
This package provides the sources of examples and demos of CGAL algorithms.

%files demos-source
%doc LICENSE
%dir %{_datadir}/%{uname}
%dir %{_datadir}/%{uname}/demo
%dir %{_datadir}/%{uname}/examples
%{_datadir}/%{uname}/demo/*
%{_datadir}/%{uname}/examples/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{uname}-%{version}


%build
# Since release 5.0 CGAL is header-only by default, but we want to
# have also the binary libraries
%cmake -DCMAKE_BUILD_TYPE=Release \
       -DCGAL_HEADER_ONLY=False \
       -DCGAL_INSTALL_LIB_DIR=%{_lib} \
       -DCGAL_INSTALL_DOC_DIR=
%make


%install
%makeinstall_std -C build

# Install also demos and examples
mkdir -p %{buildroot}%{_datadir}/%{uname}
cp -a demo %{buildroot}%{_datadir}/%{uname}/demo
cp -a examples %{buildroot}%{_datadir}/%{uname}/examples

rm -rf %{buildroot}%{_datadir}/doc/cgal-demos-source/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 636 |21cr|cgenius-3.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Commander Keen engine
Name:		cgenius
Version:	3.1.3
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		https://clonekeenplus.sourceforge.net/
Source0:	https://gitlab.com/Dringgstein/Commander-Genius/-/archive/v%{version}/Commander-Genius-v%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
Commander Genius is an open-source clone of Commander Keen which allows you to
play the games, and a majority of the mods made for it.
So far Commander Keen 1-6 are fully supported; Keen Dreams is starting to work.

Warning! Make sure to place the games data files into 
%{_gamesdatadir}/commandergenius.
You should note that following versions of Keen work the best:
- Keen 1 - Version 1.33
- Keen 2 - Version 1.33
- Keen 3 - Version 1.33
- Keen 4 - Version 1.4
- Keen 5 - Version 1.4
- Keen 6 - Version 1.4

%files
%doc changelog.txt README.md
%license COPYRIGHT
%{_gamesbindir}/%{name}
%dir %attr(0777,games,root) %{_gamesdatadir}/commandergenius/
%{_gamesdatadir}/commandergenius/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/metainfo/io.sourceforge.clonekeenplus.appdata.xml
%{_iconsdir}/hicolor/*/apps/cg.*.png

#----------------------------------------------------------------------------

%prep
%setup -qn Commander-Genius-v%{version}

find . -type f -perm 0755 -exec chmod 644 {} \;

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=OFF	\
	-DBUILD_STATIC_LIBS:BOOL=ON	\
	-DGAMES_SHAREDIR=%{_gamesdatadir}
%make

%install
%makeinstall_std -C build

# Rename installed binary
mv %{buildroot}%{_gamesbindir}/CGeniusExe %{buildroot}%{_gamesbindir}/%{name}

# Remove icon with the wrong name
rm -f %{buildroot}%{_iconsdir}/hicolor/512x512/apps/CGLogo.png

# Install menu icons
for N in 16 32 48 64 128 256 512;
do
	convert src/CGLogo.png -scale ${N}x${N} $N.png;
	install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# Put the right file names in the provided .desktop file
desktop-file-edit \
	--set-key=Exec				\
	--set-value="%{name}"			\
	--set-key=Icon --set-value="%{name}"	\
	%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 637 |21cr|cgicc-3.2.19-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	ANSI C++ class lib that simplifies the creation of CGI apps
Name:		cgicc
Version:	3.2.19
Release:	5
License:	LGPLv3+
Group:		Development/C
Url:		http://www.gnu.org/software/cgicc
Source0:	https://ftp.gnu.org/gnu/cgicc/%{name}-%{version}.tar.gz
BuildRequires:	doxygen

%description
GNU Cgicc is an ANSI C++ compliant class library that greatly
simplifies the creation of CGI applications for the World Wide
Web. Cgicc performs the following functions:

 - Parses both GET and POST form data transparently. 
 - Provides string, integer, floating-point and single- and
   multiple-choice retrieval methods for form data.
 - Provides methods for saving and restoring CGI environments to aid
   in application debugging.
 - Provides full on-the-fly HTML generation capabilities, with support
   for cookies and file inclusion.
 - Supports HTTP file upload.

%files
%doc AUTHORS COPYING* ChangeLog NEWS README

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	ANSI C++ class lib that simplifies the creation of CGI apps
Group:		System/Libraries

%description -n %{libname}
GNU Cgicc is an ANSI C++ compliant class library that greatly
simplifies the creation of CGI applications for the World Wide
Web. Cgicc performs the following functions:

 - Parses both GET and POST form data transparently.
 - Provides string, integer, floating-point and single- and
   multiple-choice retrieval methods for form data.
 - Provides methods for saving and restoring CGI environments to aid
   in application debugging.
 - Provides full on-the-fly HTML generation capabilities, with support
   for cookies and file inclusion.
 - Supports HTTP file upload.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	ANSI C++ class lib that simplifies the creation of CGI apps
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libcgicc-devel = %{EVRD}

%description -n %{devname}
GNU Cgicc is an ANSI C++ compliant class library that greatly
simplifies the creation of CGI applications for the World Wide
Web. Cgicc performs the following functions:

 - Parses both GET and POST form data transparently.
 - Provides string, integer, floating-point and single- and
   multiple-choice retrieval methods for form data.
 - Provides methods for saving and restoring CGI environments to aid
   in application debugging.
 - Provides full on-the-fly HTML generation capabilities, with support
   for cookies and file inclusion.
 - Supports HTTP file upload.

%files -n %{devname}
%{_bindir}/%{name}-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}
%{_datadir}/aclocal/%{name}.m4

#---------------------------------------------------------------------------

%prep
%setup -q

# fix doc files perms
chmod 644 AUTHORS COPYING* ChangeLog NEWS README

%build
autoreconf -f -i
%configure \
	--disable-static
%make

%install
%makeinstall_std

rm -rf %{buildroot}/%{_prefix}/doc/
rm -rf %{buildroot}/%{_docdir}/%{name}-%{version}/example/.libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 638 |21cr|cgiirc-0.5.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude_from %{_datadir}/cgiirc
%global __requires_exclude ^perl\\(.*\\)

Name:		cgiirc
Version:	0.5.12
Release:	2
Summary:	IRC gateway
License:	Artistic and GPL
Group:		Networking/WWW
URL:		http://cgiirc.org
Source:		http://cgiirc.org/releases/cgiirc-%{version}.tar.gz
Patch0:		%{name}-0.5.8.fhs.patch
Patch1:		%{name}-0.5.7.config.patch
Requires:	webserver
BuildArch:	noarch

%description
CGI:IRC is a Perl/CGI program that lets you access IRC from a web browser, it
is designed to be flexible and has many uses such as an IRC gateway for an IRC
network, a chat-room for a website or to access IRC when stuck behind a
restrictive firewall.

%files
%doc README docs/*
%{_datadir}/%{name}
%{_var}/www/%{name}
%{_var}/www/cgi-bin/*
%config(noreplace) %{_sysconfdir}/cgiirc.config
%config(noreplace) %{_webappconfdir}/%{name}.conf

#-------------------------------------------------------------------------------
%prep
%setup -q
%patch0 -p1
%patch1 -p0
chmod 755 docs/*.pl
find . -name .htaccess -exec rm -f {} \;

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_var}/www/cgi-bin
install -d -m 755 %{buildroot}%{_var}/www/%{name}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}

install -m 755 *.cgi %{buildroot}%{_var}/www/cgi-bin
install -m 644 cgiirc.config.full %{buildroot}%{_sysconfdir}/cgiirc.config
cp -r modules %{buildroot}%{_datadir}/%{name}
cp -r interfaces %{buildroot}%{_datadir}/%{name}
cp -r formats %{buildroot}%{_datadir}/%{name}
cp -r images/* %{buildroot}%{_var}/www/%{name}

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# CGI::IRC configuration

Alias /%{name} %{_var}/www/%{name}
  
<Directory %{_var}/www/%{name}>
    Require all granted
</Directory>
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 639 |21cr|cgilib-0.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname cgi %{major}
%define devname %mklibname cgi -d

Summary:	A CGI (Common Gateway Interface) library
Name:		cgilib
Version:	0.7
Release:	8
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.infodrom.org/projects/cgilib/
Source0:	https://www.infodrom.org/projects/cgilib/download/cgilib-%{version}.tar.gz
Patch1:		FreeBSD-fix-segfault.patch
Patch2:		FreeBSD-allow-use-cgilib.patch
BuildRequires:	libtool

%description
This is quite a simple library that provides an easy CGI interface (Common
Gateway Interface). It provides an easy to use interface to CGI if you need
to write your program in C instead of perl.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A CGI (Common Gateway Interface) library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This is quite a simple library that provides an easy CGI interface (Common
Gateway Interface). It provides an easy to use interface to CGI if you need
to write your program in C instead of perl.

%files -n %{libname}
%doc AUTHORS ChangeLog README
%{_libdir}/libcgi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{libname} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libcgi-devel = %{EVRD}

%description -n %{devname}
Header files and develpment documentation for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man[35]/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -fPIC"
touch NEWS README AUTHORS ChangeLog
autoreconf -if

%configure \
	--disable-static

%make CFLAGS="%{optflags} -fPIC"

%install
%makeinstall_std

# remove unwanted files
rm -f %{buildroot}%{_bindir}/{cgitest,jumpto}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 640 |21cr|cgoban1-1.9.14-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname cgoban

Summary: A Go game client
Summary(fr): Un client pour le jeu de Go
Name: cgoban1
Version: 1.9.14
Release: 18
License: GPLv2+
Group: Games/Boards
Source:	http://ovh.dl.sourceforge.net/sourceforge/cgoban1/%rname-%version.tar.bz2
Source2: %name-mini.png
Source3: %name.png
URL: http://cgoban1.sourceforge.net/
BuildRequires:  pkgconfig(x11)
Provides: %rname = %{version}

%description
Cgoban (Complete Goban) is for Unix systems with X11.  It has the ability
to be a computerized go board, view and edit smart-go files, and connect to
go servers on the Internet.
Cgoban is also a smart interface for GNU Go.

%prep
%setup -q -n %rname-%version

%build
mv src/cgoban.c src/cgoban.c.orig
sed -e 's|\"./goDummy\"|\"/usr/games/gnugo --quiet\"|' <src/cgoban.c.orig >src/cgoban.c
mv configure configure.orig
sed -e "s|-O2 -fomit-frame-pointer|$RPM_OPT_FLAGS|g" <configure.orig >configure
chmod +x configure
%configure --program-suffix=1 
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
mkdir -p $RPM_BUILD_ROOT%{_iconsdir}{,/mini,/large}
%makeinstall_std

cp cgoban_icon.png $RPM_BUILD_ROOT%{_iconsdir}/large/cgoban1.png
cp %{SOURCE2} $RPM_BUILD_ROOT%{_iconsdir}/mini/cgoban1.png 
cp %{SOURCE3} $RPM_BUILD_ROOT%{_iconsdir}/cgoban1.png 

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=CGoban
Comment=Graphical game of Go
Exec=%{_bindir}/%{name}
Icon=cgoban1
Terminal=false
Type=Application
Categories=Game;BoardGame;
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-,root,root)
%doc README TODO seigen-minoru.sgf
%{_bindir}/*
%{_mandir}/man6/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/cgoban1.png
%{_iconsdir}/*/cgoban1.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 641 |21cr|c++-gtk-utils-2.2.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gtk 3
%define api 2.2
%define major 0
%define libname %mklibname c++-gtk-utils%{gtk}_ %{api} %{major}
%define devname %mklibname c++-gtk-utils -d

Summary:	A library for programming GTK+ programs using C++
Name:		c++-gtk-utils
Version:	2.2.20
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://cxx-gtk-utils.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/cxx-gtk-utils/cxx-gtk-utils/%{version}/%{name}-%{version}.tar.gz
Patch0:		c++-gtk-utils-2.2.20-skip_tests-MakeFile.am.patch
Patch1:		c++-gtk-utils-2.2.20-autoconf.patch
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)

%description
c++-gtk-utils is a lightweight library containing a number of classes
and functions for programming GTK+ programs using C++ in POSIX (unix-like)
environments, where the user does not want to use a full-on wrapper such
as gtkmm or wxWidgets, or is concerned about exception safety or thread
safety of the wrapper and their documentation. It is parallel installable
for both GTK+2 and GTK+3.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for programming GTK+ programs using C++
Group:		System/Libraries
Conflicts:	%{_lib}c++-gtk-utils0 < 2.0.12-4
Obsoletes:	%{_lib}c++-gtk-utils0 < 2.0.12-4

%description -n %{libname}
c++-gtk-utils is a lightweight library containing a number of classes
and functions for programming GTK+ programs using C++ in POSIX (unix-like)
environments, where the user does not want to use a full-on wrapper such
as gtkmm or wxWidgets, or is concerned about exception safety or thread
safety of the wrapper and their documentation. It is parallel installable
for both GTK+2 and GTK+3.

%files -n %{libname}
%{_libdir}/libcxx-gtk-utils-%{gtk}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/%{name}-%{gtk}-%{api}/%{name}/*.h
%{_includedir}/%{name}-%{gtk}-%{api}/%{name}/*.tpp
%{_libdir}/pkgconfig/c++-gtk-utils-%{gtk}-%{api}.pc
%{_libdir}/libcxx-gtk-utils-%{gtk}-%{api}.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure \
	--disable-static

%make LIBS="-lpthread"

%install
%makeinstall_std

rm -rf %{buildroot}%{_defaultdocdir}/%{name}/%{api}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 642 |21cr|ch341prog-1.0git200310-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Swithc off debug packege because make generate stripped files
%global debug_package %{nil}
Name:       ch341prog
Version:    1.0git200310
Release:    1
Summary:    A simple command line tool(programmer) interfacing with ch341a
License:    GPL
Group:      Development/Other 

#Url:       https://github.com/setarcos/ch341prog/
Url:		https://github.com/cleverfox/ch341prog

BuildRequires: pkgconfig(libusb-1.0)

Source0:    %{name}-%{version}.tar.gz

%description
A simple command line tool(programmer) interfacing with ch341a

%files
%doc COPYING README.md
%{_bindir}/%{name}

%prep 
%setup -q

%build
%make

%install
install -D %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 643 |21cr|chaplin-1.10-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A DVD chapter tool
Name:		chaplin
Version:	1.10
Release:	13
License:	GPL
Group:		Video
Url:		http://www.lallafa.de/bp/chaplin.html
Source0:	%{name}-%{version}.tar.bz2
Patch0:		chaplin-1.10-makefile.patch
Patch1:		chaplin-1.10-include.patch
BuildRequires:	libdvdread-devel

%description
The tool parses a DVD disc or image and extracts the exact duration for each
chapter of a given title.

%files
%{_bindir}/chaplin
%{_bindir}/chaplin-genmenu

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1
%patch1 -p0

%build
make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install chaplin %{buildroot}%{_bindir}
install chaplin-genmenu %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 644 |21cr|CharLS-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name		CharLS
%define major		1
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:           %{name}
Version:        1.0
Release:        5
License:        BSD
Summary:        A JPEG-LS library
Url:            http://charls.codeplex.com/
Group:          System/Libraries
Source0:        %{name}-source-%{version}.zip
# PATCH-FIX-OPENSUSE charls_add_cmake_install_target.patch asterios.dramis@gmail.com -- Add a cmake install target for CharLS header files
Patch0:         CharLS-1.0-suse-add_cmake_install_target.patch
# PATCH-FIX-OPENSUSE charls_add_sharedlib_soname.patch asterios.dramis@gmail.com -- Add soname to generated shared lib and install libCharLS.so
Patch1:         CharLS-1.0-suse-add_sharedlib_soname.patch
# PATCH-FIX-OPENSUSE charls_fix_tests.patch asterios.dramis@gmail.com -- Fix tests
Patch2:         CharLS-1.0-suse-fix_tests.patch
BuildRequires:	cmake
BuildRequires:	dos2unix

%description
An optimized implementation of the JPEG-LS standard for lossless and
near-lossless image compression. JPEG-LS is a low-complexity standard that
matches JPEG 2000 compression ratios. In terms of speed, CharLS outperforms
open source and commercial JPEG LS implementations.

%package -n %{develname}
Summary:        Libraries and headers for CharLS
Group:          Development/C
Requires:       %{libname} = %{version}
Provides:	CharLS-devel

%description -n %{develname}
This package contains libraries and headers for CharLS.

%package -n %{libname}
Summary:        A JPEG-LS library
Group:          System/Libraries

%description -n %{libname}
An optimized implementation of the JPEG-LS standard for lossless and
near-lossless image compression. JPEG-LS is a low-complexity standard that
matches JPEG 2000 compression ratios. In terms of speed, CharLS outperforms
open source and commercial JPEG LS implementations.

%prep
%setup -c -q
dos2unix *.h *.c* *.txt
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%cmake \
 -Dcharls_BUILD_SHARED_LIBS=ON \
 -DBUILD_TESTING=ON \
 -DCMAKE_BUILD_TYPE=release
%make VERBOSE=1

%install
pushd build
%makeinstall_std
popd

%check
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:.
ctest .

%files -n %{develname}
%doc License.txt
%{_includedir}/CharLS/
%{_libdir}/*.so

%files -n %{libname}
%{_libdir}/libCharLS.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 645 |21cr|chbg-2.0.1-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Desktop background manager/changer/screensaver
Name:		chbg
Version:	2.0.1
Release:	22
License:	GPLv2+
Group:		Graphics
URL:		http://www.beebgames.com/sw/gtk-ports.html
Source0:	http://www.beebgames.com/sw/%{name}-%{version}.tar.bz2
Source1:	%{name}_16x16.png
Source2:	%{name}_32x32.png
Source3:	%{name}_48x48.png
# (fc) 2.0.1-3mdv use correct colormap / depth
Patch0:		chbg-2.0.1-colormap.patch
# (fc) 2.0.1-9mdv fix CFLAGS
Patch1:		chbg-2.0.1-cflags.patch
Patch2:		chbg-2.0.1-libpng1.5.patch
Patch3:		chbg-2.0.1-linkage.patch
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gtk+-2.0)

%description
ChBg is for changing desktop backgrounds in a given period. It can
render images with 10 modes (such as tiled, centered, scaled, etc.). It
uses gdk_pixbuf-2.0 for loading images, so it supports
many image formats.

ChBg has a windowed setup program, is able to load setup files,
can be used as slideshow picture previewer in its own window or as a
desktop background, and can be used as screensaver or as an xscreensaver
hack. It has a dialog for fast previewing of pictures and very usable
thumbnail previews.

%files -f %{name}.lang
%doc AUTHORS BUGS ChangeLog README THANKS TODO chbgrc.sample xscreensaver*txt 
%{_bindir}/chbg
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man*/*
%attr(644,root,root) %config(noreplace,missingok) %{_sysconfdir}/chbgrc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .composite
%patch1 -p1 -b .cflags
%patch2 -p0 -b .png
%patch3 -p1 -b .linkage

#needed by patch1 and patch3
autoreconf -i

%build
%configure \
	--with-intl-includes=%{_datadir}/gettext/intl \
	--x-libraries="-lz"

%make

%install
%makeinstall_std

# install icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# menu stuff
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=ChBg
Comment=Desktop background manager/changer/screensaver
Comment[ru]=Настройка фона рабочего стола и хранителя экрана
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-System-Configuration-Other;Settings;
EOF

# touch the default sysconfig file so that it can be included
mkdir -p %{buildroot}%{_sysconfdir}
touch %{buildroot}%{_sysconfdir}/chbgrc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 646 |21cr|cheat-4.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cheat
Version:	4.4.2
Release:	1
Summary:	Allows you to create and view interactive cheatsheets on the command-line
License:	MIT
Group:		Development/Other
URL:		https://github.com/cheat/cheat
Source0:	https://github.com/cheat/cheat/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	cheat-go-mod-vendor-4.4.2.tar.gz
BuildRequires:	golang

%description
cheat allows you to create and view interactive cheatsheets 
on the command-line. It was designed to help remind *nix system 
administrators of options for commands that they use frequently, 
but not frequently enough to remember.

%prep
%setup -q -a 1

%build
go build -mod=vendor -buildmode=pie -o cheat ./cmd/cheat

%install
install -D -m0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm644 "doc/%{name}.1" -t "%{buildroot}%{_mandir}/man1/"

%files
%{_bindir}/%{name}
%{_mandir}/man1/cheat.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 647 |21cr|checkinstall-1.6.2.16-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define fversion 1.6.2

Summary:   CheckInstall installations tracker
Name:      checkinstall
Version:   1.6.2.16
Release:   15
License:   GPLv2+
Group:     System/Configuration/Packaging
Url:       http://asic-linux.com.mx/~izto/checkinstall/
#gw git snapshot
Source0:   http://checkinstall.izto.org/files/source/%{name}-%{fversion}.tar.gz
Patch1:    0002-Backtick-patch-from-Andrey-Schmachev-Copyright-year-.patch
Patch2:    0003-Fixed-bug-3-Removed-extra-okfail-and-fixed-spanish-t.patch
Patch3:    0004-Fixed-bug-1-Source-directory-package-name-with-space.patch
Patch4:    0006-Added-Norwegian-translation-update-from-Andreas-Note.patch
Patch6:    0007-Added-summary-command-line-option.patch
Patch8:    0009-Fixed-warning-about-uninitialized-variable-in-fopen-.patch
Patch9:    0010-Support-for-the-Makefile-PREFIX-variable.patch
Patch10:   0011-We-now-create-Slackware-packages-in-TMP_DIR.patch
Patch11:   0012-Fixed-bug-110.-create-localdecls-correctly-identifie.patch
Patch12:   0012-add-debian-cflags.patch
Patch13:   0013-Fixed-bug-23.-We-remove-empty-fields-from-the-Debian.patch
Patch14:   0014-Fixed-typo-in-create-localdecls.patch
Patch15:   0015-Fixed-bug-30.-Newlines-are-converted-to-underscores-.patch
Patch16:   0016-Fixed-bug-38.-.spec-file-macro-processing.patch
Patch17:   0017-Fixed-bug-112-make-install-fails-on-Fedora-21.patch
Patch18:   0018-Fixed-bug-137-Missing-in-copy_dir_hierarchy.patch
Patch19:   0019-Fixed-bug-35-Directories-in-etc-are-incorrectly-incl.patch
Patch20:   0020-add-support-for-recommends-and-suggests-AKA-weak-dep.patch
Patch21:   0021-Load-checkinstallrc-from-etc.patch
Patch22:   0022-Drop-cases-for-glibc-2.4.patch
Patch25:   0025-fix-installwatch-path-usr-local.patch

Patch32:    checkinstall-1.6.1-rpm-version-check.patch
Patch34:    checkinstall-mdv-rpm-set-buildroot.patch
#gw from Debian, build with new glibc
Patch35:    checkinstall-1.6.1-deb-mdv-build-with-new-glibc.patch
Patch36:    checkinstall-glibc2.33.patch
Requires:  rpm-build

%description
CheckInstall keeps track of all the files created or modified by your 
installation script ("make install" "make install_modules", "setup", etc),
builds a standard binary package and installs it in your system giving
you the ability to uninstall it with your distribution's standard 
package management utilities. 


%prep
%autosetup -p1 -n %{name}-%{fversion}

perl -pi -e "s!/lib/!/%{_lib}/!" Makefile

%build
%make

%install
install -D -m 755 checkinstall %{buildroot}/%{_bindir}/checkinstall
install -D -m 755 makepak %{buildroot}/%{_sbindir}/makepak
install -m 755 installwatch/installwatch %{buildroot}/%{_bindir}
install -D -m 755 installwatch/installwatch.so %{buildroot}/%{_libdir}/checkinstall/installwatch.so
install -m 755 checkinstallrc-dist %{buildroot}%{_libdir}/checkinstall/checkinstallrc
install -D -m 644 locale/checkinstall-es.mo %{buildroot}%{_libdir}/checkinstall/locale/es/LC_MESSAGES/checkinstall.mo
perl -pi -e "s!#PREFIX#!%{_prefix}!" %{buildroot}%{_bindir}/installwatch
#perl -pi -e "s!/lib/!/%{_lib}/!" %{buildroot}%{_bindir}/*

%files
%doc README RELNOTES BUGS TODO CREDITS
%{_bindir}/installwatch
%{_bindir}/checkinstall
%{_sbindir}/makepak
%dir %{_libdir}/checkinstall/
%{_libdir}/checkinstall/checkinstallrc
%{_libdir}/checkinstall/installwatch.so
%lang(es) %{_libdir}/checkinstall/locale/es
%dir %{_libdir}/checkinstall/locale/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 648 |21cr|checklink-4.81-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname W3C-LinkChecker

Summary:	A tools to check link on website

Name:		checklink
Version:	4.81
Release:	5
Source0:	http://search.cpan.org/CPAN/authors/id/S/SC/SCOP/%{realname}-%{version}.tar.gz
License:	W3C License
Group:		Networking/WWW
Url:		http://search.cpan.org/dist/W3C-LinkChecker/
BuildArch:	noarch
Provides:	%{realname} = %{version}-%{release}
# To follow perl module policy naming:
Provides:	perl-W3C-LinkChecker = %{version}-%{release}
BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::Parser) >= 3.00
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(LWP::RobotUA)
BuildRequires:	perl(Net::IP)
BuildRequires:	perl(Net::hostent)
BuildRequires:	perl(Socket)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(URI::file)
BuildRequires:	perl(WWW::RobotRules)
BuildRequires:	perl(CSS::DOM)
BuildRequires:	perl(Config::General)
BuildRequires:	perl(Term::ReadKey)

%description
The link checker reads an HTML or XHTML document and extracts a list of anchors
and links.

It checks that no anchor is defined twice. 

It then checks that all the links are dereferenceable, including the fragments.
It warns about HTTP redirects, including directory redirects. 

It can check recursively a part of a Web site. 

There is a command line version and a CGI version. They both support HTTP basic
authentication. This is achieved in the CGI version by passing through the
authorization information from the user browser to the site tested. 

%prep
%setup -q -n %realname-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

mkdir -p %{buildroot}%_var/www/cgi-bin/

cp %{buildroot}%{_bindir}/%{name} %{buildroot}%_var/www/cgi-bin/%{name}.cgi

%files
%{_bindir}/%{name}
%{perl_vendorlib}/W3C/LinkChecker.pm
%_var/www/cgi-bin/%{name}.cgi
%{_mandir}/man*/%{name}*
%doc docs/*
%doc README NEWS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 649 |21cr|checkpassword-pam-0.99-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A checkpassword compatible authentication program
Name:		checkpassword-pam
Version:	0.99
Release:	10
License:	GPL
Group:		System/Servers
URL:		http://checkpasswd-pam.sourceforge.net/
Source:		%{name}-%{version}.tar.bz2
BuildRequires:	pam-devel
Provides:	checkpassword

%description
checkpassword-pam is an implementation of checkpassword-compatible
authentication program.

Checkpassword is described in <URL:http://cr.yp.to/checkpwd.html>

checkpassword-pam was written from scratch.  There are several older
packages called checkpassword-pam, derived from DJB's checkpassword
code.   This checkpassword-pam is more modern and
administrator-friendly.


If you are using Linux-PAM, make sure it is more recent than 0.59.
Incompatibilities are in the PAM conversation function (number of
requests vs number of responses).  All modern Linux distribution use
PAM newer than that.

%prep

%setup -q

%build

%configure

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}/bin
install -d %{buildroot}%{_sysconfdir}/pam.d
install -d %{buildroot}%{_mandir}/man8

install -m755 checkpassword-pam %{buildroot}/bin/
install -m644 checkpassword-pam.8 %{buildroot}%{_mandir}/man8/

# This is taken from %{_sysconfdir}/pam.d/login
# I hope this is sufficent?

cat > %{buildroot}%{_sysconfdir}/pam.d/checkpassword-pam << EOF
#%PAM-1.0
auth       required	pam_securetty.so
auth       include      system-auth
auth       required	pam_nologin.so
account    include      system-auth
password   include      system-auth
session    include      system-auth
session    optional	pam_console.so
EOF

chmod 644 %{buildroot}%{_sysconfdir}/pam.d/checkpassword-pam

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc AUTHORS NEWS README interface.html
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/checkpassword-pam
%attr(755,root,root) /bin/checkpassword-pam
%attr(644,root,root) %{_mandir}/man8/checkpassword-pam.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 650 |21cr|cheese-3.38.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define gtk_maj 25
%define major 8
%define gir_maj 3.0
%define libname %mklibname %{name} %{major}
%define gtkname %mklibname %{name}-gtk %{gtk_maj}
%define girname %mklibname %{name}-gtk-gir %{gir_maj}
%define devname %mklibname %{name} -d
%define	devgtk %mklibname %{name}-gtk -d

Summary:	A GNOME application for taking pictures and videos from a webcam
Name:		cheese
Version:	3.38.0
Release:	7
License:	GPLv2+
Group:		Video
Url:		https://download.gnome.org/sources/cheese
Source0:	https://download.gnome.org/sources/cheese/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	cheese-3.38.0_ru.tar.gz
# From Fedora
# https://gitlab.gnome.org/GNOME/cheese/-/merge_requests/39
Patch0:		0001-Fix-infinite-loop-if-thumbnailer-is-not-available.patch
Patch1:		cheese-glibArray.patch
BuildRequires:	appstream-util
BuildRequires:	docbook-dtd43-xml
BuildRequires:	gdk-pixbuf2.0
BuildRequires:	glib2.0-common
BuildRequires:	gnome-doc-utils
BuildRequires:	gstreamer1.0-plugins-bad
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	gstreamer1.0-vp8
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	gstbasevideo1.0-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gst-3.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-video-effects)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
Requires:	gnome-video-effects
Requires:	gsettings-desktop-schemas
Requires:	gstreamer1.0-gstclutter
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Recommends:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-vp8

%description
Cheese is a Photobooth-inspired GNOME application for taking pictures and
videos from a webcam. It also includes fancy graphical effects based on
the gstreamer backend.

%files -f %{name}.lang
%doc COPYING ChangeLog NEWS README
%config(noreplace) %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/glib-2.0/schemas/org.gnome.Cheese.gschema.xml
%{_iconsdir}/hicolor/*/*/*
%{_mandir}/man1/%{name}.1*
%{_appdatadir}/org.gnome.Cheese.appdata.xml
%{_datadir}/dbus-1/services/org.gnome.Cheese.service

%post
update-alternatives --install %{_sysconfdir}/dynamic/launchers/webcam/kde.desktop webcam.kde.dynamic %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop 60
update-alternatives --install %{_sysconfdir}/dynamic/launchers/webcam/gnome.desktop webcam.gnome.dynamic %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop 60

%postun
if [ "$1" = "0" ]; then
	update-alternatives --remove webcam.kde.dynamic %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop
	update-alternatives --remove webcam.gnome.dynamic %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library part of %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{gtkname}
Summary:	Shared library part of %{name} - gtk
Group:		System/Libraries

%description -n %{gtkname}
This package contains the shared library for %{name}-gtk.

%files -n %{gtkname}
%doc COPYING
%{_libdir}/lib%{name}-gtk.so.%{gtk_maj}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Cheese-%{gir_maj}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Developent files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This packages contains the development library and header files for %{name}.

%files -n %{devname}
%doc COPYING NEWS README
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gir-1.0/Cheese-%{gir_maj}.gir
%{_datadir}/gtk-doc/html/%{name}/

#----------------------------------------------------------------------------

%package -n %{devgtk}
Summary:	Developent files for %{name}-gtk
Group:		Development/C
Requires:	%{gtkname} = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{devgtk}
This packages contains the development library and header files for %{name}-gtk.

%files -n %{devgtk}
%doc COPYING
%{_libdir}/lib%{name}-gtk.so
%{_libdir}/pkgconfig/%{name}-gtk.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson -Dtests=false
%meson_build

%install
%meson_install

# dynamic support
mkdir -p %{buildroot}%{_sysconfdir}/dynamic/launchers/webcam
cat > %{buildroot}%{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop << EOF
[Desktop Entry]
Name=Webcam Photobooth
Comment=Cheese Webcam Photobooth using \$devicename
TryExec=%{name}
Exec=%{name}
Terminal=false
Icon=%{name}
Type=Application
StartupNotify=true
EOF

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 651 |21cr|chemtool-1.6.14-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Program for 2D drawing organic molecules
Name:		chemtool
Version:	1.6.14
Release:	4
License:	GPL
Group:		Sciences/Chemistry
Source0:	http://ruby.chemie.uni-freiburg.de/~martin/chemtool/%{name}-%{version}.tar.gz
Url:		http://ruby.chemie.uni-freiburg.de/~martin/chemtool/
Requires:	transfig openbabel
BuildRequires:	gtk2-devel gettext-devel desktop-file-utils
Source11:	%{name}.16.png
Source12:	%{name}.32.png
Source13:	%{name}.48.png
Patch0:		chemtool-1.6.8-compilationfix.patch

%description
Chemtool is a program for drawing organic molecules easily and store them as
a X bitmap, Xfig or EPS file. It runs under the X Window System using 
the GTK widget set.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}
install -m644 examples/* %{buildroot}%{_datadir}/%{name}-%{version}/

mkdir -p %{buildroot}%{_datadir}/applications

# (tv) fix 'error: value "chemtool.png" for key "Icon" in group "Desktop Entry"
# is an icon name with an extension, but there should be no extension as
# described in the Icon Theme Specification if the value is not an absolute
# path':
perl -pi -e 's!^(Icon=).*/([^/]*)$!\1\2!; s!.png$!!' %{name}.desktop

desktop-file-install --vendor='' \
	--dir=%{buildroot}%{_datadir}/applications/ \
	--remove-category='Application' \
	--add-category='GTK' \
	--add-category='Science' \
	%{name}.desktop

install -D -m644 kde/icons/hicolor/32x32/mimetypes/chemtool.png %{buildroot}%{_iconsdir}/hicolor/32x32/mimetypes/chemtool.png

# icons
%{__install} -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
%{__install} -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
%{__install} -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
%{__install} -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{__install} -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{__install} -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%{find_lang} %{name}

%files -f %{name}.lang
%doc TODO README ChangeLog
%{_bindir}/*
%{_datadir}/%{name}-%{version}
%{_mandir}/man1/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/*/*.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 652 |21cr|cherrytree-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hierarchical note taking application
Name:		cherrytree
Version:	1.0.0
Release:	1
License:	GPLv3+
Group:		Office
Url:		http://www.giuspen.com/cherrytree/
Source0:	https://www.giuspen.net/software/%{name}_%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(gtksourceviewmm-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml++-2.6)
BuildRequires:	pkgconfig(spdlog)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(uchardet)

%description
Cherrytree is a hierarchical note taking application. The Main Features:
* Rich Text supporting Images, Tables, Code Boxes, Hyperlinks and Anchors,
  Spell Check, Lists.
* Syntax Highlighting supporting many programming languages.
* Password Protection, Powerful Find and Replace utilities, TOC generator.
* Print, Save as PDF, Export to HTML, Export to Plain Text.
* Import from Several other Note Taking Applications.

%files -f %{name}.lang
%doc changelog.txt README.md
%license license.txt
%{_appdatadir}/net.giuspen.cherrytree.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/mime-info/%{name}.*
%{_datadir}/%{name}/
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}_%{version}

%build
%cmake -DBUILD_TESTING:BOOL=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 653 |21cr|chessx-1.5.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An Open Source chess database
Name:		chessx
Version:	1.5.8
Release:	1
License:	GPLv2
Group:		Games/Boards
Url:		http://chessx.sourceforge.net
Source0:	http://sourceforge.net/projects/chessx/files/%{name}/%{version}/%{name}-%{version}.tgz
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5TextToSpeech)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
ChessX is an Open Source chess database. 
With ChessX you can operate on your
collection of chess games in many ways:
browse, edit, add, organize, analyze, etc.

%files
%doc *.md
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/metainfo/org./io.sourceforge.ChessX.metainfo.xml
#------------------------------------------------------------

%prep
%setup -q
# avoid spurious-executable-perm
find . -type f -exec chmod -x {} \;

%build
%qmake_qt5
lrelease-qt5 i18n/*.ts

%make

%install
# game binary
mkdir -p %{buildroot}%{_gamesbindir}
install -m 0755 release/chessx %{buildroot}%{_gamesbindir}/%{name}

# game data
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -pr data/* %{buildroot}%{_gamesdatadir}/%{name}/
cp -pr i18n/*.qm %{buildroot}%{_gamesdatadir}/%{name}/lang/

# icons
for png in 128x128 64x64 32x32 22x22 16x16; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${png}/apps/
	convert -geometry $png data/images/%{name}.png %{buildroot}%{_iconsdir}/hicolor/${png}/apps/%{name}.png
done

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
	--dir=%{buildroot}%{_datadir}/applications/ \
	unix/%{name}.desktop

#appadata
mkdir -p %{buildroot}%{_datadir}/metainfo/org.
cp -R unix/io.sourceforge.ChessX.metainfo.xml  \
	%{buildroot}%{_datadir}/metainfo/org./io.sourceforge.ChessX.metainfo.xml
	
# linting
find %{buildroot} -name '*.svg' -exec chmod a-x {} \;	
find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 654 |21cr|chipmunk-6.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6.1
%define pkg_major 6
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}
%define demoname  chipmunk-demo
%define samplname chipmunk-samples

Summary:	2D physics engine
Name:		chipmunk
Version:	6.1.5
Release:	4
License:	MIT
Group:		Development/C
Url:		http://chipmunk-physics.net/
Source0:	http://chipmunk-physics.net/release/Chipmunk-%{pkg_major}.x/Chipmunk-%{version}.tgz
Source1:	chipmunk-makefile
# opengl is only needed by the demos
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)

%description
Chipmunk is a rigid body physics library, designed for 2D video games.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	2D physics engine shared library
Group:		Development/C
Obsoletes:	%{_lib}chipmunk6 < 6.1.5

%description -n %{libname}
Chipmunk is a rigid body physics library, designed for 2D video games.

%files -n %{libname}
%doc LICENSE.txt
%{_libdir}/libchipmunk.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains header files for developing
applications that use %{libname}.

%files -n %{devname}
%doc README.textile
%{_libdir}/libchipmunk.so
%{_libdir}/libchipmunk.a
%{_includedir}/chipmunk

#----------------------------------------------------------------------------

%package -n %{demoname}
Summary:	Demos of the library %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{demoname}
The %{demoname} package provides some demos of what can be achieved
using the library %{libname}.
Switch the demos using the keyboard keys from [a] to [s].

%files -n %{demoname}
%{_bindir}/chipmunk-demo

#----------------------------------------------------------------------------

%package -n %{samplname}
Summary:	Examples of use of the library %{name}
Group:		Development/C
BuildArch:	noarch

%description -n %{samplname}
The %{samplname} package provides the source code of the demos.

%files -n %{samplname}
%doc samples

#----------------------------------------------------------------------------

%prep
%setup -q -n Chipmunk-%{version}
cp %{SOURCE1} src/Makefile

%build
pushd src
make clean
make CFLAGS="%{optflags} -std=c99"
make cleanobj
make static CFLAGS="%{optflags} -std=c99"
popd
pushd Demo
ln -s ../src/libchipmunk.so.* libchipmunk.so
gcc -o chipmunk-demo -std=gnu99 -I../include/chipmunk -L. -lchipmunk -lm -lGL -lGLU -lglut *.c
popd
mkdir samples
cp Demo/*.[ch] samples/

%install
pushd src
make install \
  INCDIR=%{buildroot}%{_includedir} \
  LIBDEST=%{buildroot}%{_libdir}
popd
pushd Demo
install -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 chipmunk-demo %{buildroot}%{_bindir}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 655 |21cr|chkdsk-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		chkdsk
Version:	0.2
Release:	1
Group:		File tools
Summary:	Fixing errors on NTFS partitions in Linux
License:	GPLv3
URL:		https://github.com/AKotov-dev/chkdsk
Source0:	https://github.com/AKotov-dev/chkdsk/archive/refs/tags/v%{version}-1.tar.gz?/%{name}-%{version}.tar.gz
Requires:	ntfs-3g

%description
Bash script for automatic error correction on NTFS partitions in Linux
Just run the command with 'su' privileges: chkdsk

%files
%doc README.md
%license LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
#-------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}-1

%build
# nothing

%install
mkdir -p %{buildroot}%{_bindir}
cp %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 656 |21cr|chkfontpath-1.10.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple interface for editing the font path for the X font server
Name:		chkfontpath
Version:	1.10.1
Release:	10
License:	GPLv2+
Group:		System/X11
BuildRequires:	popt-devel
Source0:	%{name}-%{version}.tar.gz
Patch0:		chkfontpath-1.7-unscaled.patch
Requires:	xfs

%description 
This is a simple terminal mode program for configuring the directories
in the X font server's path. It is mostly intended to be used
'internally' by RPM when packages with fonts are added or removed, but
it may be useful as a stand-alone utility in some instances.

%prep
%setup -q
%patch0 -p1 -b .old

%build
make RPM_OPT_FLAGS="$RPM_OPT_FLAGS"

%install
perl -pi -e "s!/usr/man!%{_mandir}!g" Makefile man/Makefile
%makeinstall INSTROOT=$RPM_BUILD_ROOT BINDIR=%{_sbindir} MANDIR=%{_mandir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_sbindir}/chkfontpath
%{_mandir}/man8/chkfontpath.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 657 |21cr|chkrootkit-0.55-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define build_diet 0

# commandline overrides:
# rpm -ba|--rebuild --with 'xxx'
%{?_with_diet: %{expand: %%define build_diet 1}}

Summary:	Check rootkits
Name:		chkrootkit
Version:	0.55
Release:	3
License:	BSD
Group:		Monitoring
Url:		http://www.chkrootkit.org/
Source0:	ftp://ftp.pangeia.com.br/pub/seg/pac/%{name}-%{version}.tar.gz
Patch0:		chkrootkit_fix_apache_false_positive.diff
Patch1:		chkrootkit-0.49-bug57979.diff
Patch2:		chkrootkit-0.52-suckit-false-positive.diff
%if %{build_diet}
BuildRequires:	dietlibc-devel >= 0.32
%endif
BuildRequires:	glibc-static-devel
Requires:	binutils
Requires:	coreutils
Requires:	findutils
Requires:	gawk
Requires:	grep
Requires:	net-tools
Requires:	procps
Requires:	sed

%description
Chkrootkit is a tool to locally check for signs of a rootkit.

%files
%license COPYRIGHT
%doc ACKNOWLEDGMENTS README*
%{_sbindir}/chkrootkit
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1
# fix debuginfo:
sed -i -e 's!\s\+@strip.*!!g' Makefile

# instead of a static patch
chmod 644 *
for i in `ls -1 *.c|sed "s/\.c//"`; do
    perl -pi -e "s|\./${i}|%{_libdir}/%{name}/${i}|g" %{name}
done

%build
%if %{build_diet}
# OE: use the power of dietlibc
make CC="diet gcc" CFLAGS="%{optflags} -DHAVE_LASTLOG_H -DLASTLOG_FILENAME='\"/var/log/lastlog\"' -DWTMP_FILENAME='\"/var/log/wtmp\"' -Os  -s -static" LDFLAGS=-static
%else
make CFLAGS="%{optflags} -DHAVE_LASTLOG_H -DLASTLOG_FILENAME='\"/var/log/lastlog\"' -DWTMP_FILENAME='\"/var/log/wtmp\"'" LDFLAGS=-static
%endif

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}/%{name}

install -m 755 chkrootkit %{buildroot}%{_sbindir}/
install -m 755 -s check_wtmpx chkdirs chklastlog chkproc chkutmp chkwtmp ifpromisc strings-static %{buildroot}%{_libdir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 658 |21cr|chntpw-140201-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap 080526

Summary:	The Offline NT Password Editor
Name:		chntpw
Version:	140201
Release:	2
License:	GPL
Group:		File tools
URL:		http://home.eunet.no/~pnordahl/ntpasswd/
Source0:	http://home.eunet.no/~pnordahl/ntpasswd/chntpw-source-%{snap}.zip
Source1:	chntpw.8
Patch0:		chntpw-cblock.patch
BuildRequires:	openssl-devel
BuildRequires:	openssl-static-devel
BuildRequires:	glibc-static-devel

%description
This little program will enable you to view some information and change user
passwords in a Windows NT SAM userdatabase file. You do not need to know the
old passwords. However, you need to get at the file some way or another
yourself. In addition it contains a simple registry editor with full write
support, and hex-editor which enables you to fiddle around with bits&bytes in
the file as you wish yourself.

%package -n	reged
Summary:	Simple Registry Edit Utility
Group:		File tools

%description -n	reged
This program is a command line utility to export of registry to .reg files.

%prep

%autosetup -p1 -n chntpw-%{snap}

cp %{SOURCE1} chntpw.8

# fix attribs
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

%build
%serverbuild

make \
    CFLAGS="$CFLAGS -DUSEOPENSSL -I. -I%{_includedir}  -Wall" \
    OSSLLIB=%{_libdir} \
    LIBS="-L%{_libdir} -lcrypto -ldl -lpthread"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8

install -m0755 %{name} %{buildroot}%{_sbindir}/
install -m0755 %{name}.static %{buildroot}%{_sbindir}/
install -m0755 reged %{buildroot}%{_sbindir}/
install -m0755 reged.static %{buildroot}%{_sbindir}/
install -m0644 chntpw.8 %{buildroot}%{_mandir}/man8/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc HISTORY.txt README.txt regedit.txt
%{_sbindir}/%{name}*
%{_mandir}/man8/chntpw.8*

%files -n reged
%defattr(-,root,root)
%{_sbindir}/reged*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 659 |21cr|chocolate-doom-3.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Historically compatible Doom engine
Name:		chocolate-doom
Version:	3.0.1
Release:	3
License:	GPLv2+
Group:		Games/Arcade
Url:		https://chocolate-doom.org/
Source0:	https://www.chocolate-doom.org/downloads/%{version}/%{name}-%{version}.tar.gz
Source100:	chocolate-doom.rpmlintrc
Patch0:		chocolate-doom-3.0.1-switch-to-python3.patch
Patch1:		chocolate-doom-3.0.1-fix-build-with-gcc10.patch
BuildRequires:	python3
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
Requires:	chocolate-common = %{EVRD}

%description
Chocolate Doom is a game engine that aims to accurately reproduce the
experience of playing vanilla Doom. It is a conservative, historically
accurate Doom source port, which is compatible with the thousands of mods
and levels that were made before the Doom source code was released. Rather
than flashy new graphics, Chocolate Doom's main features are its accurate
reproduction of the game as it was played in the 1990s.
The following games can be played:
- Doom (including the shareware and registered versions, and the Ultimate Doom
expansion pack).
- Doom II.
- Final Doom (TNT:Evilution, and the Plutonia Experiment).
- Chex Quest.
It is also possible to play these expansion packs and commercial games, each
of which requires one of the above:
-The Master Levels for Doom II.
-Hacx.
And also various TCs and WAD files:
http://www.chocolate-doom.org/wiki/index.php/User_guide.

Warning! Chocolate Doom needs to know where to find your IWAD file. To do this
put the file into /usr/share/games/doom. As an alternative, you can set the
env variable DOOMWADDIR to specify the path to a directory containing your
files; if you have multiple IWADs in different directories, set it to be a
colon-separated list of directories to search.

%files
%doc ChangeLog NEWS.md NOT-BUGS.md README.md README.Music.md TODO.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-setup
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/chocolate-setup.desktop
%{_datadir}/applications/%{name}.desktop
%{_datadir}/bash-completion/completions/%{name}
%{_mandir}/man5/%{name}.cfg.5.*
%{_mandir}/man6/%{name}.6.*
%{_mandir}/man6/%{name}-setup.6.*

#----------------------------------------------------------------------------

%package -n chocolate-common
Summary:	Common files used by Chocolate engines
Group:		Games/Arcade
Conflicts:	%{name} < 2.1.0

%description -n chocolate-common
Common files used by all Chocolate engines.

%files -n chocolate-common
%license COPYING
%{_bindir}/chocolate-server
%{_iconsdir}/%{name}.png
%{_iconsdir}/chocolate-setup.png
%{_mandir}/man5/default.cfg.5.*
%{_mandir}/man6/chocolate-server.6.*
%{_mandir}/man6/chocolate-setup.6.*

#----------------------------------------------------------------------------

%package -n chocolate-heretic
Summary:	Historically compatible Heretic engine
Group:		Games/Arcade
Requires:	chocolate-common = %{EVRD}
Conflicts:	%{name} < 2.1.0

%description -n chocolate-heretic
Chocolate Heretic is a game engine that aims to accurately reproduce the
experience of playing vanilla Heretic. It is a conservative, historically
accurate Heretic source port. Rather than flashy new graphics, Chocolate
Heretic's main features are its accurate reproduction of the game as it
was played in the 1990s.

Warning! Chocolate Heretic needs to know where to find your IWAD file.
To do this, put the file into /usr/share/games/doom.

%files -n chocolate-heretic
%license COPYING
%{_bindir}/chocolate-heretic
%{_bindir}/chocolate-heretic-setup
%{_datadir}/appdata/chocolate-heretic.appdata.xml
%{_datadir}/applications/chocolate-heretic.desktop
%{_datadir}/applications/chocolate-heretic-setup.desktop
%{_datadir}/bash-completion/completions/chocolate-heretic
%{_mandir}/man5/chocolate-heretic.cfg.5.*
%{_mandir}/man5/heretic.cfg.5.*
%{_mandir}/man6/chocolate-heretic.6.*
%{_mandir}/man6/chocolate-heretic-setup.6.*

#----------------------------------------------------------------------------

%package -n chocolate-hexen
Summary:	Historically compatible Hexen engine
Group:		Games/Arcade
Requires:	chocolate-common = %{EVRD}
Conflicts:	chocolate-doom < 2.1.0

%description -n chocolate-hexen
Chocolate Hexen is a game engine that aims to accurately reproduce the
experience of playing vanilla Hexen. It is a conservative, historically
accurate Hexen source port. Rather than flashy new graphics, Chocolate
Hexen's main features are its accurate reproduction of the game as it
was played in the 1990s.

Warning! Chocolate Hexen needs to know where to find your IWAD file.
To do this, put the file into /usr/share/games/doom.

%files -n chocolate-hexen
%license COPYING
%{_bindir}/chocolate-hexen
%{_bindir}/chocolate-hexen-setup
%{_datadir}/appdata/chocolate-hexen.appdata.xml
%{_datadir}/applications/chocolate-hexen.desktop
%{_datadir}/applications/chocolate-hexen-setup.desktop
%{_datadir}/bash-completion/completions/chocolate-hexen
%{_mandir}/man5/chocolate-hexen.cfg.5.*
%{_mandir}/man5/hexen.cfg.5.*
%{_mandir}/man6/chocolate-hexen.6.*
%{_mandir}/man6/chocolate-hexen-setup.6.*

#----------------------------------------------------------------------------

%package -n chocolate-strife
Summary:	Historically compatible Strife engine
Group:		Games/Arcade
Requires:	chocolate-common = %{EVRD}
Conflicts:	chocolate-doom < 2.1.0

%description -n chocolate-strife
Chocolate Strife is a game engine that aims to accurately reproduce the
experience of playing vanilla Strife. It is a conservative, historically
accurate Strife source port. Rather than flashy new graphics, Chocolate
Strife's main features are its accurate reproduction of the game as it
was played in the 1990s.

Warning! Chocolate Strife needs to know where to find your IWAD file.
To do this, put the file into /usr/share/games/doom.

%files -n chocolate-strife
%license COPYING
%{_bindir}/chocolate-strife
%{_bindir}/chocolate-strife-setup
%{_datadir}/appdata/chocolate-strife.appdata.xml
%{_datadir}/applications/chocolate-strife.desktop
%{_datadir}/applications/chocolate-strife-setup.desktop
%{_datadir}/bash-completion/completions/chocolate-strife
%{_mandir}/man5/chocolate-strife.cfg.5.*
%{_mandir}/man5/strife.cfg.5.*
%{_mandir}/man6/chocolate-strife.6.*
%{_mandir}/man6/chocolate-strife-setup.6.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/applications/screensavers/%{name}-screensaver.desktop
rm -rf %{buildroot}%{_datadir}/doc/chocolate-*

# These suck, we don't like them
rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop
rm -f %{buildroot}%{_datadir}/applications/chocolate-heretic.desktop
rm -f %{buildroot}%{_datadir}/applications/chocolate-hexen.desktop
rm -f %{buildroot}%{_datadir}/applications/chocolate-setup.desktop
rm -f %{buildroot}%{_datadir}/applications/chocolate-strife.desktop

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Chocolate Doom
Comment=Conservative Doom source port
Exec=%{name}
Type=Application
Terminal=false
Icon=%{name}
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/chocolate-setup.desktop << EOF
[Desktop Entry]
Name=Chocolate Doom Setup
Comment=Setup tool for Chocolate Doom
Exec=%{name}-setup
Type=Application
Terminal=false
Icon=chocolate-setup
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/chocolate-heretic.desktop << EOF
[Desktop Entry]
Name=Chocolate Heretic
Comment=Conservative Heretic source port
Exec=chocolate-heretic
Type=Application
Terminal=false
Icon=chocolate-doom
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/chocolate-heretic-setup.desktop << EOF
[Desktop Entry]
Name=Chocolate Heretic Setup
Comment=Setup tool for Chocolate Heretic
Exec=chocolate-heretic-setup
Type=Application
Terminal=false
Icon=chocolate-setup
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/chocolate-hexen.desktop << EOF
[Desktop Entry]
Name=Chocolate Hexen
Comment=Conservative Hexen source port
Exec=chocolate-hexen
Type=Application
Terminal=false
Icon=chocolate-doom
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/chocolate-hexen-setup.desktop << EOF
[Desktop Entry]
Name=Chocolate Hexen Setup
Comment=Setup tool for Chocolate Hexen
Exec=chocolate-hexen-setup
Type=Application
Terminal=false
Icon=chocolate-setup
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/chocolate-strife.desktop << EOF
[Desktop Entry]
Name=Chocolate Strife
Comment=Conservative Strife source port
Exec=chocolate-strife
Type=Application
Terminal=false
Icon=chocolate-doom
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/chocolate-strife-setup.desktop << EOF
[Desktop Entry]
Name=Chocolate Strife Setup
Comment=Setup tool for Chocolate Strife
Exec=chocolate-strife-setup
Type=Application
Terminal=false
Icon=chocolate-setup
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 660 |21cr|choose-1.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         debug_package %{nil}

Name:           choose
Version:        1.3.6
Release:        1
Summary:        A human-friendly and fast alternative to cut and (sometimes) awk
License:        MIT
Group:          Development/Other
URL:            https://github.com/theryangeary/choose
Source0:        %{name}-%{version}.tar.gz
Source1:        choose-vendor-1.3.6.tar.xz
Source10:       upd.sh
BuildRequires:  cargo
BuildRequires:  pkgconfig(openssl)

%description
A human-friendly and fast alternative to cut and (sometimes) awk.

%prep
%autosetup -p1 -a1

mkdir -p .cargo
cat > .cargo/config.toml << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline %{?_smp_mflags}

%install
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}

%files
%{_bindir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 661 |21cr|chpax-0.7-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool that allows PaX flags to be modified on a per-binary basis
Name:		chpax
Version:	0.7
Release:	11
License:	Public Domain
Group:		System/Configuration/Other
Url:		http://pax.grsecurity.net/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		chpax-0.7-autotools.patch.bz2
BuildRequires:	autoconf2.5

%description
A tool that allows PaX flags to be modified on a per-binary basis. PaX is part
of common security-enhancing kernel patches, like GrSecurity. Your system needs
to be running an appropriately patched kernel, like the one provided by the
kernel-secure package, for this program to have any effect.

%files
%doc README ChangeLog
%defattr(-,root,root,0755) 
%{_mandir}/man1/chpax.1*
%{_sbindir}/chpax

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .autotools

%build 
aclocal
autoheader
autoconf
automake --foreign -a
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 662 |21cr|chroma-1.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           chroma
Version:	1.20
Release:	1
Summary:        Abstract puzzle game with complex patterns of colourful shapes
License:        GPLv2+
Group:          Games/Puzzles
Url:            http://www.level7.org.uk/chroma/
Source0:        http://www.level7.org.uk/chroma/download/%{name}-%{version}.tar.bz2
Source1:        %{name}.svg
Source2:        %{name}-curses.svg

BuildRequires:  imagemagick
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_image)

%description
Chroma is an abstract puzzle game. A variety of colourful shapes
are arranged in a series of increasingly complex patterns, forming
fiendish traps that must be disarmed and mysterious puzzles that
must be manipulated in order to give up their subtle secrets.
Initially so straightforward that anyone can pick it up and begin
to play, yet gradually becoming difficult enough to tax even
the brightest of minds.

%files -f %{name}.lang
%doc COPYING CHANGELOG
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-curses
%{_gamesdatadir}/%{name}/colours/  
%{_gamesdatadir}/%{name}/graphics/  
%{_gamesdatadir}/%{name}/levels/
%{_gamesdatadir}/%{name}/help/
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-curses.desktop

#-------------------------------------------------------------------

%prep
%setup -q
find . -perm 0600 -exec chmod 0644 {} \;

%build
%configure --bindir=%{_gamesbindir} \
               --datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

# Generate and install icons
for bin in %{name} %{name}-curses; do
  install -D -m644 %{SOURCE2} \
    %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
  for size in 48x48 256x256; do
    install -d %{buildroot}%{_iconsdir}/hicolor/${size}/apps
    convert -background transparent {%{SOURCE1},%{SOURCE2}} -resize ${size} \
      %{buildroot}%{_iconsdir}/hicolor/${size}/apps/${bin}.png
  done
done

# Desktop entries
install -d %{buildroot}%{_datadir}/applications

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Chroma
Comment=Abstract puzzle game
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;BlocksGame;
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}-curses.desktop << EOF
[Desktop Entry]
Name=Chroma (console version)
Comment=Abstract puzzle game (console version)
Exec=%{name}-curses
Icon=%{name}-curses
Terminal=true
Type=Application
Categories=Game;BlocksGame;
EOF

find %{buildroot}%{_gamesdatadir}/%{name}/*/ -name '*.chroma' -exec chmod 644 {} \;
chmod 644 %{buildroot}%{_gamesdatadir}/%{name}/{help/README,graphics/font.txt}

%find_lang %{name} 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 663 |21cr|chromium-bsu-0.9.16.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast paced, arcade-style, top-scrolling space shooter
Name:		chromium-bsu
Version:	0.9.16.1
Release:	4
Group:		Games/Arcade
License:	Artistic clarified
Url:		http://chromium-bsu.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	libglpng-devel
BuildRequires:	ftgl-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(vorbis)

%description
You are captain of the cargo ship Chromium B.S.U., responsible for delivering
supplies to our troops on the front line. Your ship has a small fleet of
robotic fighters which you control from the relative safety of the Chromium
vessel.

This is an OpenGL-based shoot 'em up game with fine graphics.

%prep
%setup -q

%files -f %{name}.lang
%doc %{_docdir}/chromium-bsu
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6.*

#-------------------------------------------------------------------------

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64}/apps
install -m0644 misc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
convert -scale 48x48 misc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32x32 misc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16x16 misc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 664 |21cr|chronojump-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free software dedicated to management human movement measurement devices
Name:		chronojump
Version:	2.3.0
Release:	1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/chronojump
Source0:	https://github.com/GNOME/chronojump/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	pkgconfig(glade-sharp-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glib-sharp-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk-sharp-2.0)
BuildRequires:	pkgconfig(mono)

%description
Chronojump is a free software dedicated to the management of several human
movement measurement devices. Chronojump is compatible with Windows, Mac and
Linux systems. It is regularly updated and the updates are and will always be free.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_bindir}/chronopic-firmwarecord
%{_bindir}/%{name}*
%{_bindir}/test-delete.py
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_defaultdocdir}/%{name}/%{name}_manual_*.pdf
%{_iconsdir}/hicolor/scalable/apps/%{name}_icon.svg
%{_libdir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make

%install
%make_install

%py3_shebang_fix %{buildroot}%{_bindir}/chronopic-firmwarecord

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 665 |21cr|chrony-3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An NTP client/server
Name:		chrony
Version:	3.5
Release:	1
License:	GPLv2
Group:		System/Base
Url:		http://chrony.tuxfamily.org
Source0:	http://download.tuxfamily.org/chrony/%{name}-%{version}.tar.gz
Source1:	chrony.conf
Source2:	chrony.keys
Source3:	chronyd.service
Source4:	chrony.helper
Source5:	chrony.logrotate
Source7:	chrony.nm-dispatcher
Source8:	chrony.dhclient
Source9:	chrony-wait.service
BuildRequires:	bison
BuildRequires:	pps-tools-devel
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libtomcrypt)
BuildRequires:	pkgconfig(nettle)
BuildRequires:	pkgconfig(nss)
Requires(pre): shadow-utils
Requires(pre,post,preun,postun):	rpm-helper

%description
A client/server for the Network Time Protocol, this program keeps your
computer's clock accurate. It was specially designed to support
systems with intermittent internet connections, but it also works well
in permanently connected environments. It can use also hardware reference
clocks, system real-time clock or manual input as time references.

%files
%doc COPYING FAQ NEWS README examples/*
%config(noreplace) %{_sysconfdir}/chrony.conf
%config(noreplace) %verify(not md5 size mtime) %attr(640,root,chrony) %{_sysconfdir}/chrony.keys
%config(noreplace) %{_sysconfdir}/logrotate.d/chrony
%{_sysconfdir}/NetworkManager/dispatcher.d/20-chrony
%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
%{_bindir}/chronyc
%{_sbindir}/chronyd
%{_libdir}/chrony-helper
/lib/systemd/ntp-units.d/*.list
%{_unitdir}/chrony*.service
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man5/%{name}*.5*
%{_mandir}/man8/%{name}*.8*
%dir %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/drift
%ghost %attr(-,chrony,chrony) %{_localstatedir}/lib/chrony/rtc
%dir %attr(-,chrony,chrony) %{_localstatedir}/log/chrony

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /sbin/nologin

%post
%systemd_post chronyd.service

%preun
%systemd_preun chronyd.service

%postun
%systemd_postun_with_restart chronyd.service

#------------------------------------------------------------------

%prep
%setup -q

%build
%serverbuild
%configure2_5x \
	--with-sendmail=%{_sbindir}/sendmail \
	--enable-ntp-signd \
	--with-user=%{name} \
	--with-hwclockfile=%{_sbindir}/hwclock \
	--with-sendmail=%{_sbindir}/sendmail \
	--enable-debug

%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}

mkdir -p %{buildroot}%{_sysconfdir}/{sysconfig,logrotate.d}
mkdir -p %{buildroot}%{_localstatedir}/{lib,log}/chrony
mkdir -p %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d
mkdir -p %{buildroot}%{_sysconfdir}/dhcp/dhclient.d
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}/lib/systemd/ntp-units.d

install -m 644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/chrony.conf
install -m 640 -p %{SOURCE2} %{buildroot}%{_sysconfdir}/chrony.keys
install -m 644 -p %{SOURCE3} %{buildroot}/lib/systemd/system/chronyd.service
install -m 755 -p %{SOURCE4} %{buildroot}%{_libdir}/chrony-helper
install -m 644 -p %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/chrony
install -m 755 -p %{SOURCE7} %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/20-chrony
install -m 755 -p %{SOURCE8} %{buildroot}%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
install -m 644 -p %{SOURCE9} %{buildroot}/lib/systemd/system/chrony-wait.service

touch %{buildroot}%{_localstatedir}/lib/chrony/{drift,rtc}
echo 'chronyd.service' > %{buildroot}/lib/systemd/ntp-units.d/50-chronyd.list

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 666 |21cr|chrootuid-1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Run command in restricted environment
Name:		chrootuid
Version:	1.3
Release:	10
License:	BSD
Group:		System/Servers
Url:		ftp://ftp.porcupine.org/pub/security/index.html
Source0:	ftp://ftp.porcupine.org/pub/security/%{name}%{version}.tar.bz2
Requires:	groff

%description
Chrootuid makes it easy to run a network service at low privilege level
and with restricted file system access.

At Eindhoven University, they use this program to run the gopher
and www (world-wide web) network daemons in a minimal environment:
- the daemons have access only to their own directory tree,
- and run under a low-privileged userid.

The arrangement greatly reduces the impact of possible loopholes
in daemon software.

%files
%doc README
%{_sbindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}%{version}

%build
%make CFLAGS="%{optflags}"

%install
install -D -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
install -D -m 0755 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 667 |21cr|c-icap-0.5.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname icapapi %{major}
%define devname %mklibname c-icap -d

Summary:	An ICAP server coded in C
Name:		c-icap
Version:	0.5.10
Release:	1
Epoch:		4
License:	LGPLv2.1+
Group:		System/Servers
Url:		http://c-icap.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/c-icap/c_icap-%{version}.tar.gz
Source1:	c-icap.service
Source2:	icapd.sysconfig
Source3:	icapd.logrotate
Source4:	c-icap-tmpfiles.conf
Patch0:		c_icap-mdv_conf.diff
Patch1:		c_icap-makefile.patch
BuildRequires:	chrpath
BuildRequires:	dos2unix
BuildRequires:	doxygen
BuildRequires:	file
BuildRequires:	bzip2-devel
BuildRequires:	db-devel
BuildRequires:	gdbm-devel
BuildRequires:	gmp-devel
BuildRequires:	openldap-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libclamav)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(openssl)

%description
c-icap is an implementation of an ICAP server. It can be used with HTTP
proxies that support the ICAP protocol to implement content adaptation
and filtering services

Most of the commercial HTTP proxies must support the ICAP protocol. The
open source Squid 3.x proxy server supports it

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared libraries for %{name}.

%files -n %{libname}
%doc AUTHORS COPYING TODO
%{_libdir}/libicapapi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the static %{libname} library and its header
files.

%files -n %{devname}
%doc AUTHORS COPYING TODO
%dir %{_includedir}/c_icap
%{_includedir}/c_icap/*
%{_libdir}/*.so
%{_bindir}/c-icap-config
%{_bindir}/c-icap-libicapapi-config
%{_mandir}/man8/c-icap-config.8.*
%{_mandir}/man8/c-icap-libicapapi-config.8.*

#----------------------------------------------------------------------------

%package server
Summary:	An ICAP server coded in C
Group:		System/Servers
Requires:	%{name}-modules = %{EVRD}
Requires:	file
Requires:	webserver
Recommends:	c-icap-modules-extra
Requires(pre,post,preun,postun):	rpm-helper

%description server
An ICAP server coded in C.

%files server
%doc AUTHORS COPYING TODO
%{_unitdir}/icapd.service
%{_tmpfilesdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/icapd/c-icap.conf
%config(noreplace) %{_sysconfdir}/icapd/c-icap.magic
%config(noreplace) %{_sysconfdir}/sysconfig/icapd
%config(noreplace) %{_sysconfdir}/logrotate.d/icapd
%{_sbindir}/icapd
%{_var}/www/cgi-bin/get_file.pl
%attr(0755,icapd,icapd) %dir %{_var}/log/icapd
%ghost %attr(0644,icapd,icapd) %{_var}/log/icapd/server.log
%ghost %attr(0644,icapd,icapd) %{_var}/log/icapd/access.log
%{_mandir}/man8/c-icap.8.*

%pre server
%_pre_useradd icapd /var/lib/icapd /bin/sh

%post server
%_post_service icapd

%preun server
%_preun_service icapd

%postun server
%_postun_userdel icapd

#----------------------------------------------------------------------------

%package client
Summary:	An ICAP client coded in C
Group:		System/Servers

%description client
An ICAP client coded in C.

%files client
%doc AUTHORS COPYING TODO
%{_bindir}/c-icap-client
%{_bindir}/c-icap-stretch
%{_bindir}/c-icap-mkbdb
%{_mandir}/man8/c-icap-client.8.*
%{_mandir}/man8/c-icap-mkbdb.8.*
%{_mandir}/man8/c-icap-stretch.8.*

#----------------------------------------------------------------------------

%package modules
Summary:	Modules for the c-icap-server
Group:		System/Servers

%description modules
Modules for the c-icap-server.

%files modules
%doc AUTHORS COPYING TODO
%dir %{_libdir}/c_icap
%{_libdir}/c_icap/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n c_icap-%{version}
%patch0 -p0
%patch1 -p1

cp %{SOURCE2} icapd.sysconfig
cp %{SOURCE3} icapd.logrotate

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-shared \
	--with-perl=%{_bindir}/perl \
	--with-ldap

%make CONFIGDIR=%{_sysconfdir}/icapd

%install
%makeinstall_std CONFIGDIR=%{_sysconfdir}/icapd
install -d -m0755 %{buildroot}%{_sysconfdir}/sysconfig
install -d -m0755 %{buildroot}%{_sysconfdir}/logrotate.d
install -d -m0755 %{buildroot}%{_sbindir}
install -d -m0755 %{buildroot}%{_var}/log/icapd
install -d -m0755 %{buildroot}%{_var}/www/cgi-bin

mv %{buildroot}%{_bindir}/c-icap %{buildroot}%{_sbindir}/icapd
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/icapd.service
install -m0644 icapd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/icapd
install -m0644 icapd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/icapd
install -m0755 contrib/get_file.pl %{buildroot}%{_var}/www/cgi-bin/get_file.pl
install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# nuke rpath
chrpath -d %{buildroot}%{_sbindir}/*

chrpath -d %{buildroot}%{_bindir}/c-icap-client
chrpath -d %{buildroot}%{_bindir}/c-icap-stretch

touch %{buildroot}%{_var}/log/icapd/server.log
touch %{buildroot}%{_var}/log/icapd/access.log

# Useless copy of %%{_sysconfdir}/icapd/c-icap.conf
rm -f %{buildroot}%{_sysconfdir}/c-icap.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 668 |21cr|c-icap-modules-extra-0.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An ICAP module server coded in C
Name:		c-icap-modules-extra
Version:	0.5.5
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Servers
Url:		http://c-icap.sourceforge.net
Source0:	http://sourceforge.net/projects/c-icap/files/c-icap-modules/0.5.x/c_icap_modules-%{version}.tar.gz
BuildRequires:	dos2unix
BuildRequires:	c-icap-devel
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libclamav)
Requires:	c-icap-server

%description
An ICAP modules server coded in C.

%files
%doc AUTHORS COPYING
%dir %{_libdir}/c_icap
%dir %{_sysconfdir}/icapd
%attr(0755,root,root) %{_libdir}/c_icap/*.so
%config(noreplace) %{_sysconfdir}/icapd/*.conf
%{_sysconfdir}/icapd/*.conf.default
%{_bindir}/*
%{_datadir}/c_icap/templates/virus_scan/en/*
%{_datadir}/c_icap/templates/srv_content_filtering/en/*
%{_datadir}/c_icap/templates/srv_url_check/en/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -qn c_icap_modules-%{version}

%build
%configure \
	--disable-static \
	--enable-shared \
	--with-clamav=%{_prefix} \
	--with-c-icap=%{_prefix} \
	--with-bdb

%make

%install
mkdir -p %{buildroot}%{_sysconfdir}/icapd
%makeinstall_std CONFIGDIR=%{_sysconfdir}/icapd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 669 |21cr|ciderpress-4.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities for managing Apple II file archives and disk images
Name:		ciderpress
Version:	4.0.4
Release:	1
License:	BSD
Group:		Emulators
Url:		http://a2ciderpress.com/
Source0:	https://github.com/fadden/ciderpress/archive/%{name}-%{version}.tar.gz
Patch0:		ciderpress-4.0.4-fix-utilities-linking.patch
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)

%description
Utilities for managing Apple II file archives and disk images. It was
initally sold as shareware product and since March 2007 is available as open
source.

%files
%doc nufxlib/ChangeLog.txt nufxlib/NOTES.md nufxlib/README.txt
%doc LICENSE.txt README.md
%{_bindir}/getfile
%{_bindir}/makedisk
%{_bindir}/mdc

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
pushd nufxlib
	%configure --enable-bzip2
	%make -j1
popd

pushd diskimg
	%make
popd

pushd diskimg/libhfs
	%make
popd

pushd linux
	%make
popd


%install
# No automated install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 linux/{getfile,makedisk,mdc} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 670 |21cr|cim-3.37-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define _disable_ld_no_undefined 1

%define	major	3
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

Summary:	Simula to C translator. Mother of all OO-languages
Name:		cim
Version:	3.37
Release:	16
License:	GPLv2+
Group:		Development/Other
Url:		ftp://ftp.ifi.uio.no/pub/cim/
Source0:	ftp://ftp.ifi.uio.no/pub/cim/%{name}-%{version}.tar.bz2
Patch0:		cim-3.37-fix-str-fmt.patch
Patch1:		cim_fix_progname.patch

%description
Cim compiles Simula code to C and uses a C compiler like gcc to
compile it further to machine-code. Simula was the first language
with object-oriented features. The Simula language has features for
quasi-parallel execution and a framework for doing simulations.

%files
%doc NEWS
%{_bindir}/*
%{_mandir}/man1/cim.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNU Cim libraries packages
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries needed to run programs dynamically 
linked with cim (the GNU Simula Compiler)

%files -n %{libname}
%{_libdir}/libcim.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use cim
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use cim.

%files -n %{devname}
%doc README doc/SIMULA-HISTORY AUTHORS COPYING TODO
%{_libdir}/*.so
%{_includedir}/cim.h
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--enable-dump=yes \
	--disable-static

%make 

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 671 |21cr|CImg-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Library of function and tools for advanced image processing
Name:		CImg
# They changed the versioning scheme, but 179 > 3.x.y
Epoch:		1
Version:	3.3.2
Release:	1
# Really CeCiLL v. 2.1
License:	CeCiLL
Group:		Graphics
Url:		https://cimg.eu
Source0:	https://github.com/dtschump/CImg/archive/v.%{version}.tar.gz?/%{name}-v.%{version}.tar.gz
Source100:	CImg.rpmlintrc
# The pkgconfig file for fftw does not list libfftw_threads,
# but this is needed if threads are wanted, as for CImg examples:
# add manually to the library definitions
Patch0:		CImg-2.7.0-fix-example-fftw-linking.patch
Patch1:		CImg-v.179-GraphicsMagick++.patch
# For example tools
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(GraphicsMagick++)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-shm)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
%rename	greycstoration

%description
Advanced image manipulation algorithms.
Note that there is no binary library: the whole code is contained in the
CImg.h file which is found in the devel package.
This package contains some sample tools based on the CImg library and is not
needed to compile a software using it.

%files
%doc README.txt Licence*.txt
%{_bindir}/*

#-----------------------------------------------------------------------------

%package devel
Summary:	Library for advanced image processing (development files)
Group:		Development/C++
Provides:	cimg-devel = %{EVRD}

%description devel
This package contains the development files for the CImg library: it is needed
to compile programs which use functions from the CImg library.
Note that this package does not contains any binary library: the whole code is
contained in the CImg.h file which is found in this package.
The main package is not needed to compile software using this library.

%files devel
%doc README.txt Licence*.txt
%doc html/reference/*
%{_includedir}/%{name}.h
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------


%prep
%setup -qn %{name}-v.%{version}
%patch0 -p1
%patch1 -p1
chmod -R go+rX .


%build
# There is no library to build: only examples...
pushd examples
	%cmake ..
	%make all
popd
# ... and docs
pushd html
	doxygen -u %{name}.doxygen
	doxygen %{name}.doxygen
popd


%install
# First: install the "library"...
install -d %{buildroot}%{_includedir}
cp %{name}.h %{buildroot}%{_includedir}/

# Next: add pkgconfig support file...
install -d %{buildroot}%{_libdir}/pkgconfig
cp resources/%{name}.pc %{buildroot}%{_libdir}/pkgconfig/

# Finally: install the example programs
pushd examples
install -d %{buildroot}%{_bindir}
cp CImg_demo \
	captcha \
	curve_editor2d \
	dtmri_view3d \
	edge_explorer2d \
	fade_images \
	gaussian_fit1d \
	generate_loop_macros \
	hough_transform2d \
	image2ascii \
	image_registration2d \
	image_surface3d \
	jawbreaker \
	mcf_levelsets2d \
	mcf_levelsets3d \
	odykill \
	pde_heatflow2d \
	pde_TschumperleDeriche2d \
	plotter1d \
	radon_transform2d \
	scene3d \
	spherical_function3d \
	tetris \
	tron \
	tutorial \
	use_draw_gradient \
	use_nlmeans \
	use_RGBclass \
	use_skeleton \
	wavelet_atrous %{buildroot}%{_bindir}/
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 672 |21cr|cinnamon-5.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Requres generator fail with error, exclude dir
%global __requires_exclude_from ^%{_datadir}/cinnamon/.*

%global cjs_version 5.0.0
%global cinnamon_desktop_version 5.0.0
%global cinnamon_translations_version 5.0.0
%global gobject_introspection_version 1.38.0
%global muffin_version 5.0.0
%global json_glib_version 0.13.2

Name:		cinnamon
Version:	5.4.0
Release:	3
Summary:	Window management and application launching for GNOME
Group:		Graphical desktop/Other
License:	GPLv2+ and LGPLv2+
URL:		https://github.com/linuxmint/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	polkit-%{name}-authentication-agent-1.desktop
Source2:	10_cinnamon-common.gschema.override
Source3:	10_cinnamon-apps.gschema.override.in

Patch0:		autostart.patch
Patch1:		set_wheel.patch
Patch3:		default_panal_launcher.patch
Patch4:		remove_crap_from_menu.patch

BuildRequires:	meson
BuildRequires:	cinnamon-menus
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(cjs-1.0) >= %{cjs_version}
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gnome-bluetooth-3.0)
BuildRequires:	pkgconfig(libgnome-menu-3.0)
BuildRequires:	pkgconfig(libcinnamon-menu-3.0)
BuildRequires:	pkgconfig(cinnamon-desktop) >= %{cinnamon_desktop_version}
BuildRequires:	gobject-introspection >= %{gobject_introspection_version}
BuildRequires:	pkgconfig(json-glib-1.0) >= %{json_glib_version}
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(xapp)

# for screencast recorder functionality
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	intltool
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libsoup-2.4)

# used in unused BigThemeImage
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libmuffin-0) >= %{muffin_version}
BuildRequires:	pkgconfig(libpulse)

# Bootstrap requirements
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	gnome-common

# media keys
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(libwacom)
BuildRequires:	pkgconfig(xorg-wacom)
BuildRequires:	pkgconfig(xtst)

Requires:	cinnamon-desktop >= %{cinnamon_desktop_version}
Requires:	muffin >= %{muffin_version}
Requires:	cjs >= %{cjs_version}
Requires:	gnome-menus >= 3.0.0-2

# wrapper script used to restart old GNOME session if run --replace
# from the command line
Requires:	gobject-introspection >= %{gobject_introspection_version}

# needed for loading SVG's via gdk-pixbuf
#Requires:	librsvg2

# needed as it is now split from Clutter
Requires:	json-glib >= %{json_glib_version}
Requires:	upower
Requires:	polkit

# needed for session files
Requires:	cinnamon-session

# needed for schemas
Requires:	at-spi2-atk

# needed for on-screen keyboard
Requires:	caribou

# needed for settings
Requires:	typelib(TimezoneMap)
Requires:	python3-distro
Requires:	python3-pytz
Requires:	python3-pexpect
Requires:	python3-gobject
Requires:	python3-gi-cairo
Requires:	python3-dbus
Requires:	python3-lxml
Requires:	python3-pillow
Requires:	python3-pam
Requires:	python3-tinycss2
Requires:	python3-setproctitle
Requires:	python3-xapp
Requires:	cinnamon-control-center
Requires:	cinnamon-translations >= %{cinnamon_translations_version}

# needed for theme overrides
Requires:	gnome-backgrounds

# Theming
Requires:	fonts-ttf-google-noto-sans
Requires:	cinnamon-themes

# RequiredComponents in the session files
Requires:	nemo
Requires:	cinnamon-screensaver

# metacity and tint2 are needed for fallback
Requires:	metacity
Requires:	tint2

# required for keyboard applet
Requires:	gucharmap
Requires:	xapps

# required for network applet
Requires:	networkmanager-applet

Requires:	python3-pyinotify


# required for sound applet
Requires:	wget

# required for printer applet
Requires:	cups-common

# calendar
Requires:	typelib(Goa)
Requires:	evolution-data-server
Requires:	gnome-calendar

Provides:	desktop-notification-daemon
Provides:	bundled(libcroco) = 0.6.12

%description
Cinnamon is a Linux desktop which provides advanced
innovative features and a traditional user experience.

The desktop layout is similar to Gnome 2.
The underlying technology is forked from Gnome Shell.
The emphasis is put on making users feel at home and providing
them with an easy to use and comfortable desktop experience.

%files
%doc README.rst AUTHORS
%license COPYING
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/xdg/menus/*
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.Cinnamon.*.service
%{_datadir}/dbus-1/services/org.cinnamon.CalendarServer.service
%{_datadir}/desktop-directories/*
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/%{name}-session/sessions/*
%{_datadir}/icons/hicolor/*/*/*.svg
%{_datadir}/polkit-1/actions/org.%{name}.settings-users.policy
%{_datadir}/xsessions/*
%{_datadir}/%{name}/
%{_datadir}/%{name}-background-properties
%{_libdir}/%{name}/
%{_libexecdir}/%{name}/
%{_mandir}/man1/*
%{python3_sitelib}/cinnamon/

#---------------------------------------------------------------------------------

%package devel-doc
Summary:	Development Documentation files for Cinnamon
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description devel-doc
This package contains the code documentation for various Cinnamon components.

%files devel-doc
%doc %{_datadir}/gtk-doc/html/*/

#---------------------------------------------------------------------------------

%prep
%autosetup -p1

%{__sed} -i -e 's@gksu@pkexec@g' files%{_bindir}/%{name}-settings-users
%{__sed} -i -e 's@gnome-orca@orca@g' files%{_datadir}/%{name}/%{name}-settings/modules/cs_accessibility.py
# remove mintlocale im from settings
%{__sed} -i -e 's@mintlocale im@mintlocale_im_removed@g' files%{_datadir}/%{name}/%{name}-settings/%{name}-settings.py

# Fix rpmlint errors
for file in files%{_datadir}/%{name}/%{name}-settings/bin/*.py files%{_datadir}/%{name}/%{name}-looking-glass/*.py \
   files%{_datadir}/%{name}/%{name}-settings/modules/cs_{applets,desklets}.py; do
   chmod a+x $file
done
chmod a-x files%{_datadir}/%{name}/%{name}-settings/bin/__init__.py

%build
%meson \
 --libexecdir=%{_libexecdir}/cinnamon/ \
 -Ddeprecated_warnings=false \
 -Dpy3modules_dir=%{python3_sitelib} \
 -Ddocs=true

%meson_build


%install
%meson_install

# install polkit autostart desktop file
install --target-directory=%{buildroot}%{_datadir}/applications \
    -Dpm 0644 %{SOURCE1}

# install common gschema override
install --target-directory=%{buildroot}%{_datadir}/glib-2.0/schemas \
    -Dpm 0644 %{SOURCE2}

# install gschema-override for apps
sed -e 's!@pkg_manager@!org.mageia.dnfdragora.desktop!g' \
    < %{SOURCE3} > %{buildroot}%{_datadir}/glib-2.0/schemas/10_%{name}-apps.gschema.override

# install gschema-override for wallpaper
cat >> %{buildroot}%{_datadir}/glib-2.0/schemas/10_%{name}-wallpaper.gschema.override << EOF
[org.cinnamon.desktop.background]
picture-uri='file:///usr/share/backgrounds/gnome/adwaita-timed.xml'
EOF

# Provide symlink for the background-propeties.
ln -s %{_datadir}/gnome-background-properties %{buildroot}%{_datadir}/%{name}-background-properties


%check
%{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 673 |21cr|cinnamon-control-center-5.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _artwork_version 5.7

%global cinnamon_desktop_version 5.0.0
%global csd_version 5.0.0
%global cinnamon_menus_version 5.0.0
%global redhat_menus_version 1.8

%define major 1
%define libname %mklibname cinnamon-control-center %{major}
%define devname %mklibname cinnamon-control-center -d

Summary:	Utilities to configure the Cinnamon desktop
Name:		cinnamon-control-center
Version:	5.4.0
Release:	2
Group:		Graphical desktop/Other
# The following files contain code from
# ISC for panels/network/rfkill.h
# And MIT for wacom/calibrator/calibrator.c
# wacom/calibrator/calibrator.h
# wacom/calibrator/gui_gtk.c
# wacom/calibrator/gui_gtk.h
# wacom/calibrator/main.c
License:	GPLv2+ and LGPLv2+ and MIT and ISC
URL:		https://github.com/linuxmint/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	http://packages.linuxmint.com/pool/main/m/mint-artwork-cinnamon/mint-artwork-cinnamon_%{_artwork_version}.tar.gz

BuildRequires:	desktop-file-utils
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	pkgconfig(cinnamon-desktop) >= %{cinnamon_desktop_version}
BuildRequires:	pkgconfig(libcinnamon-menu-3.0) >= %{cinnamon_menus_version}
BuildRequires:	pkgconfig(cinnamon-settings-daemon) >= %{csd_version}
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(goa-backend-1.0) >= 3.21.5
BuildRequires:	pkgconfig(libgnomekbd)
BuildRequires:	pkgconfig(libnm) >= 1.2
BuildRequires:	pkgconfig(libnma) >= 1.2
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libwacom)
BuildRequires:	pkgconfig(mm-glib) >= 0.7
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(xkbfile)

Requires:	cinnamon-settings-daemon >= %{csd_version}
%if 0
Requires:	redhat-menus >= %{redhat_menus_version}
%endif
Requires:	hicolor-icon-theme
Requires:	cinnamon-translations
Requires:	%{name}-filesystem = %{version}-%{release}
# For the network panel
Requires:	networkmanager-applet
# For the colour panel
Requires:	gnome-color-manager

%description
This package contains configuration utilities for the Cinnamon desktop, which
allow to configure accessibility options, desktop fonts, keyboard and mouse
properties, sound setup, desktop theme and background, user interface
properties, screen resolution, and other settings.

%files
%doc AUTHORS README
%license COPYING
%{_bindir}/cinnamon-control-center
%{_datadir}/cinnamon-control-center/ui/
%{_datadir}/cinnamon-control-center/sounds/*.og*
%{_datadir}/cinnamon-control-center/panels/
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/glib-2.0/schemas/org.cinnamon.control-center.display.gschema.xml
%dir %{_libdir}/cinnamon-control-center-1/
%{_libdir}/cinnamon-control-center-1/panels/libcolor.so
%{_libdir}/cinnamon-control-center-1/panels/libdisplay.so
%{_libdir}/cinnamon-control-center-1/panels/libnetwork.so
%{_libdir}/cinnamon-control-center-1/panels/libonline-accounts.so
%{_libdir}/cinnamon-control-center-1/panels/libregion.so
%{_libdir}/cinnamon-control-center-1/panels/libwacom-properties.so

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}

%files -n %{libname}
%{_libdir}/libcinnamon-control-center.so.%{major}*

#------------------------------------------------------------------------
%package filesystem
Summary: Cinnamon Control Center directories
Group:		Graphical desktop/Other
# NOTE: this is an "inverse dep" subpackage. It gets pulled in
# NOTE: by the main package an MUST not depend on the main package

%description filesystem
The Cinnamon control-center provides a number of extension points
for applications. This package contains directories where applications
can install configuration files that are picked up by the control-center
utilities.

%files filesystem
%dir %{_datadir}/cinnamon-control-center/
%dir %{_datadir}/cinnamon-control-center/sounds/

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Graphical desktop/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and libraries for developing Muffin plugins. Also includes
utilities for testing Metacity/Muffin themes.

%files -n %{devname}
%{_includedir}/cinnamon-control-center-1/
%{_libdir}/libcinnamon-control-center.so
%{_libdir}/pkgconfig/libcinnamon-control-center.pc

#------------------------------------------------------------------------

%prep
%autosetup -a 1 -p 1


%build
%meson
%meson_build


%install
%meson_install

desktop-file-install                                  \
  --delete-original                                   \
  --dir %{buildroot}/%{_datadir}/cinnamon-control-center/panels/         \
  %{buildroot}/%{_datadir}/cinnamon-control-center/panels/*.desktop
 
# install sound files
mkdir -p %{buildroot}/%{_datadir}/cinnamon-control-center/sounds/
install -pm 0644 mint-artwork-cinnamon-%{_artwork_version}/%{_datadir}/mint-artwork-cinnamon/sounds/* %{buildroot}/%{_datadir}/cinnamon-control-center/sounds/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 674 |21cr|cinnamon-menus-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cinnamon-menu-3 %{major}
%define devname %mklibname cinnamon-menu-3 -d

Summary:	A menu system for the Cinnamon project
Name:		cinnamon-menus
Version:	5.4.0
Release:	1
Group:		Graphical desktop/Other
License:	LGPLv2+
URL:		https://github.com/linuxmint/%{name} 
Source0:	%url/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	python3

%description
cinnamon-menus is an implementation of the draft "Desktop
Menu Specification" from freedesktop.org. This package
also contains the Cinnamon menu layout configuration files,
.directory files and assorted menu related utility programs,
Python bindings, and a simple menu editor.

%files
%doc AUTHORS NEWS
%license COPYING COPYING.LIB
%{_libdir}/girepository-1.0/CMenu-3.0.typelib

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libcinnamon-menu-3.so.%{major}*

#-----------------------------------------------------------------
%package -n %{devname}
Summary:	Libraries and include files for the Cinnamon menu system
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries for
writing applications that use the Cinnamon menu system.

%files -n %{devname}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/cinnamon-menus-3.0
%{_datadir}/gir-1.0/CMenu-3.0.gir

#-----------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
 -Ddeprecated_warnings=false \
 -Denable_debug=false

%meson_build

%install
%meson_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 675 |21cr|cinnamon-screensaver-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cscreensaver %{major}

Summary:	Cinnamon Screensaver
Name:		cinnamon-screensaver
Version:	5.4.0
Release:	1
Group:		Graphical desktop/Other
License:	GPLv2+ and LGPLv2+
URL:		https://github.com/linuxmint/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	glib2-devel
BuildRequires:	libtool
BuildRequires:	gobject-introspection-devel
BuildRequires:	pam-devel
BuildRequires:	python3-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(xext)
BuildRequires:	desktop-file-utils

Requires:	cinnamon-desktop >= 5.0.0
Requires:	cinnamon-translations >= 5.0.0
#Requires:	accountsservice-libs
#Requires:	libgnomekbd
Requires:	python3-gobject
Requires:	python3-setproctitle
Requires:	python3-xapp
#Requires:	python3-xapps-overrides
Requires:	xapps

# since we use it, and pam spams the log if a module is missing
Requires: gnome-keyring

%description
cinnamon-screensaver is a screen saver and locker.

%files
%doc AUTHORS NEWS README.md
%license COPYING COPYING.LIB
%config(noreplace) %{_sysconfdir}/pam.d/cinnamon-screensaver
%{_bindir}/cinnamon-screensaver*
%{_bindir}/cinnamon-unlock-desktop
%{_datadir}/applications/org.cinnamon.ScreenSaver.desktop
%{_datadir}/cinnamon-screensaver/
%{_datadir}/dbus-1/services/org.cinnamon.ScreenSaver.service
%{_datadir}/icons/hicolor/scalable/*/*
%{_libexecdir}/cinnamon-screensaver-pam-helper
%{_libexecdir}/cs-backup-locker
%{_libdir}/girepository-1.0/CScreensaver-1.0.typelib
#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libcscreensaver.so.%{major}*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

desktop-file-install                                     \
  --delete-original                                      \
  --remove-only-show-in=Xfce                             \
  --dir %{buildroot}%{_datadir}/applications             \
  %{buildroot}%{_datadir}/applications/org.cinnamon.ScreenSaver.desktop

# Fix rpmlint errors
for file in %{buildroot}%{_datadir}/cinnamon-screensaver/{dbusdepot,util,widgets}/*.py; do
chmod a+x $file
done
for file in %{buildroot}%{_datadir}/cinnamon-screensaver/*.py; do
chmod a+x $file
done
chmod a-x %{buildroot}%{_datadir}/cinnamon-screensaver/{dbusdepot,util,widgets}/__init__.py
chmod a-x %{buildroot}%{_datadir}/cinnamon-screensaver/{__init__,config}.py
chmod a+x %{buildroot}%{_datadir}/cinnamon-screensaver/pamhelper/authClient.py

# Delete development files
rm %{buildroot}%{_libdir}/libcscreensaver.so
rm %{buildroot}%{_libdir}/pkgconfig/cscreensaver.pc
rm %{buildroot}%{_datadir}/gir-1.0/CScreensaver-1.0.gir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 676 |21cr|cinnamon-session-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global cinnamon_desktop_version 5.0.0

Summary:	Cinnamon session manager
Name:		cinnamon-session
Version:	5.4.0
Release:	1
Group:		Graphical desktop/Other
License:	GPLv2+ and LGPLv2+
URL:		https://github.com/linuxmint/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz

#Requires:	system-logos
# Needed for cinnamon-settings-daemon
Requires:	cinnamon-control-center-filesystem
Requires:	typelib(GSound)
# pull in dbus-x11, see bug 209924
Requires:	dbus-x11

# we need an authentication agent in the fallback session
Requires:	polkit-gnome
# an artificial requires to make sure we get dconf, for now
Requires:	dconf

Requires:	cinnamon-desktop >= %{cinnamon_desktop_version}

BuildRequires:	pkgconfig(gtk+-3.0) >= 2.99.0
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libnotify) >= 0.7.0
BuildRequires:	pkgconfig(xtrans)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
# this is so the configure checks find /usr/bin/halt etc.
BuildRequires:	usermode
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(xapp) >= 1.4.6
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	xmlto


%description
Cinnamon-session manages a Cinnamon desktop or GDM login session. It starts up
the other core components and handles logout and saving the session.

%files
%doc AUTHORS README
%doc %{_mandir}/man*/*
%license COPYING
%{_bindir}/*
%{_libexecdir}/cinnamon-session-check-accelerated
%{_libexecdir}/cinnamon-session-check-accelerated-helper
%{_datadir}/cinnamon-session/
%{_datadir}/icons/hicolor/*/apps/cinnamon-session-properties.png
%{_datadir}/icons/hicolor/scalable/apps/cinnamon-session-properties.svg
%{_datadir}/glib-2.0/schemas/org.cinnamon.SessionManager.gschema.xml

#----------------------------------------------------------------------------
%prep
%autosetup -p1


%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 677 |21cr|cinnamon-settings-daemon-5.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global cinnamon_desktop_version 5.0.0

Name:		cinnamon-settings-daemon
Version:	5.4.0
Release:	3
Summary:	The daemon sharing settings from CINNAMON to GTK+/KDE applications
Group:		Graphical desktop/Other
License:	GPLv2+ and LGPLv2+
URL:		https://github.com/linuxmint/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  meson
BuildRequires:  cmake
BuildRequires:  pkgconfig(cvc)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(cinnamon-desktop) >= %{cinnamon_desktop_version}
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libgnomekbd)
BuildRequires:  pkgconfig(libnm)
BuildRequires:  pkgconfig(libnma)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libcanberra)
BuildRequires:  pkgconfig(libcanberra-gtk3)
BuildRequires:  pkgconfig(polkit-agent-1)
BuildRequires:  pkgconfig(libxklavier)
BuildRequires:  pkgconfig(upower-glib)
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(colord) >= 0.1.12
BuildRequires:  pkgconfig(lcms2) >= 2.2
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  pkgconfig(ibus-1.0)
BuildRequires:  cups-devel
BuildRequires:  desktop-file-utils
BuildRequires:  docbook-style-xsl
BuildRequires:  intltool
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(librsvg-2.0)
BuildRequires:  pkgconfig(xorg-wacom)
BuildRequires:  pkgconfig(libwacom)
# add hard cinnamon-desktop required version due logind schema
Requires:	cinnamon-desktop >= %{cinnamon_desktop_version}
Requires:	iio-sensor-proxy

%description
A daemon to share settings from CINNAMON to other applications. It also
handles global keybindings, and many of desktop-wide settings.

%files
%doc AUTHORS
%license COPYING COPYING.LIB
%{_bindir}/csd-*
%config %{_sysconfdir}/xdg/autostart/*
%{_libdir}/cinnamon-settings-daemon-3.0/
%{_libexecdir}/csd-a11y-settings
%{_libexecdir}/csd-automount
%{_libexecdir}/csd-background
%{_libexecdir}/csd-backlight-helper
%{_libexecdir}/csd-clipboard
%{_libexecdir}/csd-color
%{_libexecdir}/csd-datetime-mechanism
%{_libexecdir}/csd-housekeeping
%{_libexecdir}/csd-input-helper
%{_libexecdir}/csd-keyboard
%{_libexecdir}/csd-media-keys
%{_libexecdir}/csd-power
%{_libexecdir}/csd-printer
%{_libexecdir}/csd-print-notifications
%{_libexecdir}/csd-screensaver-proxy
%{_libexecdir}/csd-xsettings
%{_libexecdir}/csd-list-wacom
%{_libexecdir}/csd-wacom
%{_libexecdir}/csd-wacom-osd
%{_datadir}/applications/csd-automount.desktop
%{_datadir}/cinnamon-settings-daemon/
%{_datadir}/dbus-1/system.d/org.cinnamon.SettingsDaemon.DateTimeMechanism.conf
%{_datadir}/dbus-1/system-services/org.cinnamon.SettingsDaemon.DateTimeMechanism.service
%{_datadir}/glib-2.0/schemas/org.cinnamon.settings-daemon*.xml
%{_datadir}/icons/hicolor/*/apps/csd-*
%{_datadir}/polkit-1/actions/org.cinnamon.settings*.policy

#----------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Requires:	%{name} = %{EVRD}
Requires:	dbus-glib-devel

%description devel
This package contains libraries and header files for
developing applications that use %{name}.

%files devel
%{_includedir}/cinnamon-settings-daemon-3.0/
%{_libdir}/pkgconfig/cinnamon-settings-daemon.pc
%{_datadir}/cinnamon-settings-daemon-3.0/

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
 -Duse_smartcard=disabled

%meson_build


%install
%meson_install

desktop-file-install --delete-original           \
  --dir %{buildroot}%{_sysconfdir}/xdg/autostart/  \
  %{buildroot}%{_sysconfdir}/xdg/autostart/*

desktop-file-install --delete-original           \
  --dir %{buildroot}%{_datadir}/applications/  \
  %{buildroot}%{_datadir}/applications/csd-automount.desktop
  
# Fix non-executable script
chmod a+x %{buildroot}%{_datadir}/cinnamon-settings-daemon-3.0/input-device-example.sh

# Delete csd symlinks
rm -rf %{buildroot}%{_libdir}/cinnamon-settings-daemon/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 678 |21cr|cinnamon-translations-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _trans_version 2021.12.31

Name:		cinnamon-translations
Version:	5.4.0
Release:	1
Summary:	Translations for Cinnamon and Nemo
Group:		Graphical desktop/Other
License:	GPLv2+
URL:		https://github.com/linuxmint/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	http://packages.linuxmint.com/pool/main/m/mint-translations/mint-translations_%{_trans_version}.tar.xz
BuildRequires:	gettext
BuildRequires:	make

BuildArch:	noarch

%description
Translations for Cinnamon and Mintlocale.

%files -f cinnamon.lang -f mintlocale.lang -f nemo-extensions.lang -f cinnamon-control-center.lang -f cinnamon-screensaver.lang -f cinnamon-session.lang -f cinnamon-settings-daemon.lang
%license COPYING

#----------------------------------------------------------------
%prep
%autosetup -a 1 -p 1


%build
%make_build
%make_build -C mint-translations


%install
# install mint translations for mintlocale
find mint-translations -not -name 'mintlocale.mo' -type f -delete
find . -name 'cinnamon-bluetooth.mo' -type f -delete

# nemo translation provides in nemo project
find . -name 'nemo.mo' -type f -delete

cp -pr mint-translations/%{_datadir}/linuxmint/locale .%{_datadir}
cp -pr .%{_prefix} %{buildroot}

%find_lang cinnamon
%find_lang mintlocale
%find_lang nemo-extensions
%find_lang cinnamon-control-center
%find_lang cinnamon-screensaver
%find_lang cinnamon-session
%find_lang cinnamon-settings-daemon


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 679 |21cr|circuslinux-1.0.3-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cute breakout-like game
Name:		circuslinux
Version:	1.0.3
Release:	20
License:	GPLv2
Group:		Games/Arcade
Url:		http://newbreedsoftware.com/circus-linux/
Source0:	ftp://ftp.sonic.net/pub/users/nbs/unix/x/circus-linux/circuslinux-%{version}.tar.bz2
Source5:	%{name}-16.png
Source6:	%{name}-32.png
Source7:	%{name}-48.png
Patch0:		%{name}-1.0.3-fix-64bits-build.patch
BuildRequires:	texinfo
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(esound)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)

%description
"Circus Linux!" is based on the Atari 2600 game "Circus Atari" by Atari,
released in 1980.  Gameplay is similar to "Breakout" and "Arkanoid"- you
slide a device left and right to bounce objects into the air which destroy
a wall.

%files
%doc AUTHORS.txt CHANGES.txt README.txt FAQ.txt README-SDL.txt
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/*
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# fix EOL
mv README-SDL.txt README-SDL.txt.msdos
sed -e 's/\r$//' README-SDL.txt.msdos > README-SDL.txt

cat << EOF > rosa-%{name}.desktop
[Desktop Entry]
Name=Circus Linux
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall \
	bindir=%{buildroot}%{_gamesbindir} \
	datadir=%{buildroot}%{_gamesdatadir}

install -D -m644 rosa-%{name}.desktop %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
install -D -m644 %{SOURCE6} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m644 %{SOURCE6} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m644 %{SOURCE5} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m644 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m644 %{SOURCE7} %{buildroot}%{_liconsdir}/%{name}.png
install -D -m644 %{SOURCE7} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

rm -rf %{buildroot}%{_datadir}/doc/circuslinux-1.0.3


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 680 |21cr|cjdns-21.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Option to enable SUBNODE mode (WIP)
# Fedora generally runs on systems that easily support a full node
%bcond_with subnode
# Option to use the optimized libnacl embedded with cjdns
# Required since v20 due to use of private cnacl APIs
%bcond_with embedded
# Option to enable CPU specific optimization
# Default to generic for distro builds
%bcond_without generic
# Option to use libsodium instead of nacl (broken since v20, fixed v21)
%bcond_without libsodium
# Option to disable SECCOMP: confusing backward logic
# Needed to run on openvz and other container systems
%bcond_without seccomp
# Option to use system libuv instead of bundled libuv-0.11.19
%bcond_with libuv

%if %{with embedded}
%global use_embedded 1
%else
%global use_embedded 0
%endif

%if %{with libuv}
%global use_libuv 1
%else
%global use_libuv 0
%endif

%if %{with generic}
%global generic_build 1
%else
%global generic_build 0
%endif

%if %{with libsodium}
%global use_libsodium 1
%global nacl_name libsodium
%global nacl_version 1.0.14
%global nacl_lib %{_libdir}/libsodium.so
%else
%global use_libsodium 0
%global nacl_name nacl
%global nacl_version 20110221
%global nacl_lib %{_libdir}/libnacl.so
%endif

# FIXME: Needs dependencies and install www dir someplace reasonable.

%global with_admin 0

%{!?__restorecon: %global __restorecon /sbin/restorecon}

Name:           cjdns
# major version is cjdns protocol version:
Version:        21.4
Release:        1
Summary:        The privacy-friendly network without borders
Group:          Networking/Other
# cjdns is all GPLv3 except libuv which is MIT and BSD and ISC
# cnacl is unused except when use_embedded is true
License:        GPLv3 and MIT and BSD and ISC
URL:            http://hyperboria.net/
Source0:        https://github.com/cjdelisle/cjdns/archive/%{name}-v%{version}.tar.gz
Source1:        cjdns.README_Fedora.md
Source2:        cjdns.service
# Contributed python API hacked for python3
Source4:        python-cjdns-0.2.tar.gz
# make vendor.tar.gz: unpack source, cd to source directory, execute: cagro vendor, gzip vendor dir
Source10:       vendor.tar.gz
Source11:       cjdns.sysusers.conf
# Add targeted selinux policy
Patch0:         cjdns.selinux.patch
# Fix RLIMIT_NPROC - setuid() bug.   In its low priv process, cjdroute calls 
#
#   setrlimit(RLIMIT_NPROC, &(struct rlimit){ 0, 0 })
#
# which on recent kernels prevents fork() or exec() after the following
# setuid().  This is due to changes discussed here:
#
# https://lwn.net/Articles/451985/
# 
# Change defaults generated by cjdroute --genconf
Patch4:         cjdns.genconf.patch
# Patch contributed init scripts to put cjdroute in /usr/sbin and
# add additional service options.
Patch5:         cjdns.sbin.patch
# Patch make.js to use dynamic nacl library
Patch6:         cjdns.dyn.patch
# Man pages
Patch9:         cjdns.man.patch
# Patch some bugs in nodejs tools
Patch10:        cjdns.tools.patch
# Alternate dynamic library patch to use libsodium
Patch11:        cjdns.sodium.patch
# Disable WIP subnode code when SUBNODE not enabled
Patch12:        cjdns.sign.patch
# patch build to use system libuv
Patch18:        cjdns.libuv.patch

BuildRequires:  cargo
BuildRequires:  nodejs
BuildRequires:  rust
BuildRequires:  libsodium-devel

# Automated package review hates explicit BR on make, but it *is* needed
BuildRequires:  make gcc

%if !0%{use_embedded}
# x86_64 and ARM libnacl are not compiled with -fPIC before Fedora release 11.
BuildRequires:  %{nacl_name}-devel >= %{nacl_version}
%endif
# systemd macros are not defined unless systemd is present
BuildRequires:  systemd
Requires:       systemd
Requires(pre):  /bin/systemd-sysusers

%if 0%{use_libuv}
BuildRequires: libuv-devel
%else
BuildRequires: gyp
Provides: bundled(libuv) = 0.11.19
%endif

%if 0%{use_embedded}
Provides: bundled(nacl) = 20110221
%endif
# build system requires nodejs, unfortunately
#ExclusiveArch: %{nodejs_arches}

%description
Cjdns implements an encrypted IPv6 network using public-key cryptography for
address allocation and a distributed hash table for routing. This provides
near-zero-configuration networking, and prevents many of the security and
scalability issues that plague existing networks.

%files
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README.md README_*.md HACKING.md
%doc contrib/doc/cjdns-online.*
%doc contrib/doc/cjdroute.*
%doc contrib/doc/makekeys.*
%doc contrib/doc/publictoip6.*
%doc contrib/doc/randombytes.*
%doc contrib/doc/privatetopublic.*
%doc contrib/doc/sybilsim.*
%doc contrib/doc/traceroute.*
%attr(0100,root,root) /var/empty/cjdns
%attr(0755,root,root) %{_sbindir}/cjdroute
%ghost %attr(0600,root,root) %config(missingok,noreplace) %{_sysconfdir}/cjdroute.conf
%dir %{_libexecdir}/cjdns
%{_unitdir}/*
%dir %{_sysconfdir}/cjdns/up.d
%{_libexecdir}/cjdns/cjdns-up
%{_libexecdir}/cjdns/randombytes
%{_libexecdir}/cjdns/publictoip6
%{_libexecdir}/cjdns/privatetopublic
%{_libexecdir}/cjdns/sybilsim
%{_libexecdir}/cjdns/makekeys
%{_libexecdir}/cjdns/mkpasswd
%{_bindir}/randombytes
%{_bindir}/publictoip6
%{_bindir}/makekeys
%{_bindir}/cjdns-online
%{_mandir}/man5/*
%{_mandir}/man1/cjdroute.1*
%{_sysusersdir}/cjdns.conf

%pre
%sysusers_create_package cjdns %{SOURCE11}

%post
%systemd_post cjdns.service

%postun
%systemd_postun_with_restart cjdns.service

%preun
%systemd_preun cjdns.service

#----------------------------------------------------------------------
%package selinux
Summary:        Targeted SELinux policy module for cjdns
BuildRequires:  policycoreutils
BuildRequires:  checkpolicy
BuildRequires:  selinux-policy-devel
Requires:       policycoreutils
#Requires:       selinux-policy-targeted
Requires:       %{name} = %{EVRD}
BuildArch: noarch

%description selinux
Targeted SELinux policy module for cjdns.

%files selinux
%doc cjdns.te cjdns.fc
%{_datadir}/selinux/targeted/*

%post selinux
/usr/sbin/semodule -s targeted -i %{_datadir}/selinux/targeted/cjdns.pp \
        &>/dev/null || :
%{__restorecon} %{_sbindir}/cjdroute

%postun selinux
if [ $1 -eq 0 ] ; then
/usr/sbin/semodule -s targeted -r cjdns &> /dev/null || :
fi

#----------------------------------------------------------------------
# FIXME: keep C tools separate?
%package tools
Summary: Nodejs tools for cjdns
Requires: nodejs, %{name} = %{version}-%{release}
BuildArch: noarch

%description tools
Nodejs tools for cjdns. Highlights:
peerStats          show current peer status
cjdnslog           display cjdroute log
cjdns-traceroute   trace route to cjdns IP
sessionStats       show current crypto sessions

%files tools
%if %{with_admin}
%{_libexecdir}/cjdns/admin
%endif
%{_libexecdir}/cjdns/tools
%{_libexecdir}/cjdns/node_build
%{_libexecdir}/cjdns/node_modules
%{_bindir}/peerStats
%{_bindir}/sessionStats
%{_bindir}/cjdnslog
%{_bindir}/dumpRumorMill
%{_bindir}/dumpLinks
%{_bindir}/pathfinderTree
%{_bindir}/dumptable
%{_bindir}/pingAll
%{_bindir}/search
%{_bindir}/cjdns-traceroute
%doc contrib/doc/sessionStats.md
%doc contrib/doc/peerStats.md
%doc contrib/doc/cjdnslog.md

#----------------------------------------------------------------------
%package -n python3-%{name}
Summary:        Python tools for cjdns
BuildRequires:  python3-devel
Requires:       python3
Requires:       %{name} = %{EVRD}
BuildArch:      noarch

%description -n python3-%{name}
Python tools for cjdns.

%files -n python3-cjdns
%doc python-cjdns/README.md python-cjdns/cjdns-dynamic.conf
%license python-cjdns/cjdnsadmin/bencode.py.LICENSE.txt
%{python3_sitelib}/*
%dir %{_libexecdir}/cjdns/python
%{_libexecdir}/cjdns/python/cexec
%{_libexecdir}/cjdns/python/cjdnsadminmaker.py*
%{_libexecdir}/cjdns/python/cjdnslog
%{_libexecdir}/cjdns/python/dumptable
%{_libexecdir}/cjdns/python/dynamicEndpoints.py*
%{_libexecdir}/cjdns/python/peerStats
%{_libexecdir}/cjdns/python/sessionStats
%{_libexecdir}/cjdns/python/pingAll.py*
%{_libexecdir}/cjdns/python/trashroutes
%{_libexecdir}/cjdns/python/getLinks
%{_libexecdir}/cjdns/python/ip6topk
%{_libexecdir}/cjdns/python/pktoip6
%{_libexecdir}/cjdns/python/cjdnsa
%{_libexecdir}/cjdns/python/searches
%{_libexecdir}/cjdns/python/findnodes
%{_libexecdir}/cjdns/python/__pycache__
%{_bindir}/pingAll.py
%{_bindir}/trashroutes
%{_bindir}/getLinks
%{_bindir}/ip6topk
%{_bindir}/pktoip6
%{_bindir}/cjdnsa
%{_bindir}/searches
%{_bindir}/findnodes
#----------------------------------------------------------------------
%package graph
Summary:        Python peer graph tools for cjdns
Requires:       python3-%{name} = %{EVRD}
Requires:       python3-networkx
BuildArch:      noarch

%description graph
Python peer graph tools for cjdns.

%files graph
%{_libexecdir}/cjdns/python/drawgraph
%{_libexecdir}/cjdns/python/dumpgraph
%{_libexecdir}/cjdns/python/graphStats
%{_bindir}/drawgraph
%{_bindir}/dumpgraph
%{_bindir}/graphStats
#----------------------------------------------------------------------
%prep
%setup -qn cjdns-%{name}-v%{version} -a10
%patch0 -b .selinux

%patch4 -b .genconf
%patch5 -b .sbin

cp %{SOURCE2} contrib/systemd

%if 0%{use_embedded}
# disable CPU opt
%else
# use system nacl library if provided.
if test -x %{nacl_lib}; then
%if %{without libsodium}
%patch6 -b .dyn
%endif
  rm -rf node_build/dependencies/cnacl
# use static library if system nacl doesn't provide dynamic
elif test -d %{_includedir}/nacl && test -r %{_libdir}/libnacl.a; then
  cd node_build/dependencies
  rm -rf cnacl
  mkdir -p cnacl/jsbuild
  ln -s %{_libdir}/libnacl.a cnacl/jsbuild
  ln -s %{_includedir}/nacl cnacl/jsbuild/include
  cd -
fi
%patch12 -b .sign
cd crypto/sign
sed -i -e'/^#include / s,[<>],",g' crypto*int*.h
cd -
%endif

%patch9 -b .man
%patch10 -b .tools
%if 0%{use_libuv}
%patch18 -p1 -b .libuv
rm -rf node_build/dependencies/libuv
%else
rm -rf node_build/dependencies/libuv/build/gyp # use system gyp
%ifarch armv7hl
sed -i -e '/optimizeLevel:/ s/-O0/-O3/' node_build/make.js
%else
sed -i -e '/optimizeLevel:/ s/-O0/-O3/' node_build/make.js
%endif
%endif

cp %{SOURCE1} README_Fedora.md

# Remove #!env from python scripts
chmod a+x contrib/python/cjdnsadmin/cli.py
find contrib/python/cjdnsadmin ! -executable -name "*.py" |
        xargs sed -e '\,^#!/usr/bin/env, d' -i
find contrib/python -type f |
        xargs sed -e '1 s,^#!/usr/bin/env ,#!/usr/bin/,' -i 
sed -e '$ s,^python ,/usr/bin/python2 ,' -i contrib/python/cjdnsa

# Remove #!env from nodejs scripts
find tools -type f | xargs grep -l '^#!\/usr\/bin\/env ' |
        xargs sed -e '1 s,^#!/usr/bin/env ,#!/usr/bin/,' -i

# Fix deprecated Buffer ctor except on EL6
sed -e '1,$ s/new Buffer/Buffer.from/' -i \
        tools/lib/publicToIp6.js tools/lib/cjdnsadmin/cjdnsadmin.js

# Remove unpackaged code with undeclared licenses
%if !%{with_admin}
rm -rf contrib/nodejs   # GPLv3 and ASL 2.0
%endif
rm -rf contrib/http     # GPLv2 and MIT

cat >cjdns-up.sh <<'EOF'
#!/bin/sh

cjdev="$(cjdns-online -i)" || exit 1

for s in %{_sysconfdir}/cjdns/up.d/*.sh; do
  if test -x "$s"; then
    "$s" up $cjdev
  fi
done
EOF

chmod a+x cjdns-up.sh

%if %{generic_build}
%ifarch s390x
sed -i -e 's/-march=native/-mtune=native/' node_build/make.js
%else
sed -i -e 's/-march=native/-mtune=generic/' node_build/make.js
%endif
#rm node_build/dependencies/cnacl/node_build/plans/*_AVX_plan.json
# Leaving SSE2 code in since x86 is secondary arch and pretty much everyone
# is going to have SSE2, except things like XO-1 which needs custom build.
#rm node_build/dependencies/cnacl/node_build/plans/x86_SSE2_plan.json
%endif

# remove hidden files from node_modules/nthen
cd node_modules/nthen
rm -f .f* .j* .t*
cd -

# python3 API
tar xvfz %{SOURCE4}
mv python-cjdns-* python-cjdns

# FIXME: grep Version_CURRENT_PROTOCOL util/version/Version.h and
# check that it matches major %%{version}

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"
cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source."https://github.com/cjdelisle/sodiumoxide"]
git = "https://github.com/cjdelisle/sodiumoxide"
branch = "cjdns"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF

%build

# build selinux policy
cd contrib/selinux
ln -s /usr/share/selinux/devel/Makefile .
make
cd -

#build python3 API
cd python-cjdns
python3 setup.py build
cd -

# nodejs based build system

%if !%{with seccomp}
export Seccomp_NO=1
%endif
%if %{with subnode}
export SUBNODE=1
%endif
NO_TEST=1 CJDNS_RELEASE_VERSION="%{name}-%{version}-%{release}" ./do

# FIXME: use system libuv on compatible systems
# bundled libuv is 0.11.19 with changes:
# https://github.com/cjdelisle/cjdns/commits/master/node_build/dependencies/libuv

%check
target/release/testcjdroute all >test.out

%install

# the main switch process
mkdir -p %{buildroot}%{_sbindir}
install -p cjdroute %{buildroot}%{_sbindir}

# systemd support
mkdir -p %{buildroot}%{_unitdir}
install -pm 644 contrib/systemd/cjdns*.service %{buildroot}%{_unitdir}

mkdir -p %{buildroot}%{_sysconfdir}/cjdns/up.d

# chroot
mkdir -p %{buildroot}/var/empty/cjdns

# install selinux modules
mkdir -p %{buildroot}%{_datadir}/selinux/targeted
install -pm 644 contrib/selinux/cjdns.pp %{buildroot}%{_datadir}/selinux/targeted
ln -f contrib/selinux/cjdns.{te,fc} .  # for doc dir

# install c and nodejs tools
mkdir -p %{buildroot}%{_libexecdir}/cjdns/{node_build,contrib}
install -p publictoip6 privatetopublic mkpasswd makekeys randombytes sybilsim \
        %{buildroot}%{_libexecdir}/cjdns
rm -f node_modules/nthen/.npmignore
cp -pr tools node_modules %{buildroot}%{_libexecdir}/cjdns

%if %{with_admin}
rm -f contrib/nodejs/admin/.gitignore
cp -pr contrib/nodejs/admin %{buildroot}%{_libexecdir}/cjdns
%endif

cp -p cjdns-up.sh %{buildroot}%{_libexecdir}/cjdns/cjdns-up

# do python setup.py install *before* any other bin installs so we can move
# to libexec.  FIXME: pip install might be able to do this more elegantly.
mkdir -p %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_libexecdir}/cjdns/python
cd python-cjdns
python3 setup.py install -O1 --root %{buildroot}
cd -
mv %{buildroot}/%{_bindir}/* %{buildroot}/%{_libexecdir}/cjdns/python

# These files are installed via doc and license
rm -f %{buildroot}%{python3_sitelib}/cjdnsadmin/bencode.py.LICENSE.txt
rm -f %{buildroot}%{_libexecdir}/cjdns/python/README.md
rm -f %{buildroot}%{_libexecdir}/cjdns/python/cjdns-dynamic.conf

# symlinks for selected nodejs tools
for t in peerStats sessionStats cjdnslog search dumpLinks dumptable \
         dumpRumorMill pathfinderTree pingAll; do
  ln -sf %{_libexecdir}/cjdns/tools/$t %{buildroot}%{_bindir}
done
for t in traceroute; do
  ln -sf %{_libexecdir}/cjdns/tools/$t %{buildroot}%{_bindir}/cjdns-$t
done

# symlinks for selected C tools that don't conflict with other packages
for t in publictoip6 randombytes makekeys; do
  ln -sf %{_libexecdir}/cjdns/$t %{buildroot}%{_bindir}
done

# cjdns-online script
install -pm 755 contrib/systemd/cjdns-online.sh \
        %{buildroot}%{_bindir}/cjdns-online

# man pages
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
install -pm 644 doc/man/cjdroute.1 %{buildroot}%{_mandir}/man1
install -pm 644 doc/man/cjdroute.conf.5 %{buildroot}%{_mandir}/man5

# symlink python tools w/o conflict with nodejs tools or needing networkx
for t in pingAll.py trashroutes \
         getLinks ip6topk pktoip6 cjdnsa searches findnodes; do
  ln -sf %{_libexecdir}/cjdns/python/$t %{buildroot}%{_bindir}
done

# symlink python tools that pull in networkx for graphing
for t in drawgraph dumpgraph graphStats; do
  ln -sf %{_libexecdir}/cjdns/python/$t %{buildroot}%{_bindir}
done

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE11} %{buildroot}%{_sysusersdir}/cjdns.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 681 |21cr|cjose-0.6.1-0.git926123.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 9261231f08d2a3cbcf5d73c5f9e754a2f1c379ac
%define commit_short %(echo %{commit} | head -c6)

%define major 0
%define libname %mklibname cjose %{major}
%define devname %mklibname cjose -d

%global optflags %{optflags} -Wno-error=strict-aliasing

Summary:	C library implementing the Javascript Object Signing and Encryption (JOSE)
Name:		cjose
Version:	0.6.1
Release:	0.git%{commit_short}.2
License:	MIT
Group:		Development/C
Url:		https://github.com/cisco/cjose
Source0:	https://github.com/cisco/cjose/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

BuildRequires:	gcc
BuildRequires:	make
BuildRequires:	doxygen
BuildRequires:	openssl-devel
BuildRequires:	jansson-devel
BuildRequires:	check-devel

%description
%{summary}

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{summary}
Group:		System/Libraries

%description -n %{libname}
%{summary}

%files -n %{libname}
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md
%{_libdir}/libcjose.so.%{major}{,.*}

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{summary}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	cjose-devel = %{EVRD}

%description -n %{devname}
Development files for %{summary}

%files -n %{devname}
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md
%{_libdir}/libcjose.so	
%{_libdir}/pkgconfig/cjose.pc
%{_includedir}/cjose
%{_datadir}/doc/cjose

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%configure
%make

%install
%makeinstall_std

%check
make check || (cat test/test-suite.log && exit 1)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 682 |21cr|cjs-5.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api             1.0
%define major           0
%define girmajor        1.0
%define libname         %mklibname %{name} %{major}
%define develname       %mklibname -d %{name}
%define girname         %mklibname %{name}-gir %{girmajor}


%define __requires_exclude typelib\\(.*\\)

Name:		cjs
Version:	5.0.0
Release:	2
Summary:	Java script Bindings for Cinnamon
Group:		Graphical desktop/Other
License:	MIT and (MPLv1.1 or GPLv2+ or LGPLv2+)
URL:		http://cinnamon.linuxmint.com
Source0:	https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz
Patch0:		fix_systemtest.patch
BuildRequires: meson
BuildRequires: pkgconfig(cairo-gobject)
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.31.22
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gtk4)
BuildRequires: pkgconfig(mozjs-78)
BuildRequires: pkgconfig(readline)
BuildRequires: pkgconfig(sysprof-capture-4)
BuildRequires: intltool

%description
Cjs allows using Cinnamon libraries from Javascript. It's based on the
Spidermonkey Javascript engine from Mozilla and the GObject introspection
framework.

%files
%doc COPYING COPYING.LGPL NEWS README
%{_bindir}/cjs
%{_bindir}/cjs-console

#----------------------------------------------------------------------
%package -n %{libname}
Group:		System/Libraries
Summary:	JavaScript bindings based on gobject-introspection

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%doc COPYING COPYING.LGPL NEWS README
%{_libdir}/*.so.*

#----------------------------------------------------------------------

%package -n %{develname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{develname}
Files for development with %{name}.

%files -n %{develname}
%doc examples/*
%{_includedir}/cjs-1.0/
%{_libdir}/pkgconfig/cjs-*1.0.pc
%{_libdir}/*.so
%{_datadir}/cjs-1.0/

#----------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING COPYING.LGPL NEWS README
%{_libdir}/cjs/

#----------------------------------------------------------------------

%package tests
Summary:	Tests for the cjs package
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description tests
The cjs-tests package contains tests that can be used to verify
the functionality of the installed cjs package.

%files tests
%{_libexecdir}/cjs/
%{_datadir}/installed-tests/
%{_datadir}/glib-2.0/schemas/org.cinnamon.CjsTest.gschema.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson --libexecdir=%{_libexecdir}/cjs/
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 683 |21cr|ck-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0

%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		ck
Version:	0.6.0
Release:	2
Summary:	Library for high performance concurrent programming
Group:		Development/C
License:	BSD
URL:		http://concurrencykit.org
Source:		http://concurrencykit.org/releases/ck-%{version}.tar.gz

BuildRequires: gcc

%description
Concurrency Kit provides a plethora of concurrency primitives, safe memory
reclamation mechanisms and lock-less and lock-free data structures designed to
aid in the design and implementation of high performance concurrent systems. It
is designed to minimize dependencies on operating system-specific interfaces
and most of the interface relies only on a strict subset of the standard
library and more popular compiler extensions.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:        Library for high performance concurrent programming
Group:          System/Libraries

%description -n %{libname}
Concurrency Kit provides a plethora of concurrency primitives, safe memory
reclamation mechanisms and lock-less and lock-free data structures designed to
aid in the design and implementation of high performance concurrent systems. It
is designed to minimize dependencies on operating system-specific interfaces
and most of the interface relies only on a strict subset of the standard
library and more popular compiler extensions.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libck.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:        Header files and libraries for CK development
Group:          Development/C
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
Header files and static library for CK.

%files -n %{devname}
%{_libdir}/libck.so
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*.3.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags}"
./configure 		\
	--libdir=%{_libdir} 			\
	--includedir=%{_includedir}/%{name}	\
	--mandir=%{_mandir}			\
	--prefix=%{_prefix}
%make

%install
%makeinstall_std
# fix weird mode of the shared library
chmod 0755 %{buildroot}%{_libdir}/libck.so.*

# remove static library
rm %{buildroot}%{_libdir}/libck.a

%check
# Tests work fine locally but on ABF they either fail or hang forever...
# make check || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 684 |21cr|ckb-next-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ckb-next
Version:        0.5.0
Release:        1
Summary:        Corsair RGB keyboard driver for Linux and OS X
Group:          System/Configuration/Hardware
#bundled kissfft library is BSD
License:        GPLv2 and BSD

URL:            https://github.com/ckb-next/ckb-next
Source0:        https://github.com/ckb-next/ckb-next/archive/v%{version}/%{name}-%{version}.tar.gz

# Upstream provides none of the following files
Source1:        ckb-next.appdata.xml
Source2:        ckb-next.1
Source3:        99-ckb-next.preset

Patch0:         ckb-next-0.4.2-fix-daemon-path.patch


BuildRequires:  cmake
BuildRequires:  cmake(Qt5Core) >= 5.5.1
BuildRequires:  cmake(Qt5DBus) >= 5.5.1
BuildRequires:  cmake(Qt5Gui) >= 5.5.1
BuildRequires:  cmake(Qt5Network) >= 5.5.1
BuildRequires:  cmake(Qt5Widgets) >= 5.5.1
BuildRequires:  cmake(Qt5X11Extras) >= 5.5.1
BuildRequires:  cmake(Qt5LinguistTools) >= 5.5.1
BuildRequires:  pkgconfig(quazip1-qt5)
BuildRequires:  pkgconfig(dbusmenu-qt5)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(xcb-ewmh)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  desktop-file-utils
BuildRequires:  appstream-util
BuildRequires:  imagemagick

%description
ckb-next is an open-source driver for Corsair keyboards and mice. It aims to
bring the features of their proprietary CUE software to the Linux and Mac
operating systems. This project is currently a work in progress, but it already
supports much of the same functionality, including full RGB animations.

%files
%license LICENSE
%doc CHANGELOG.md FIRMWARE README.md
%{_bindir}/*
%{_libexecdir}/%{name}-*
%{_unitdir}/ckb-next-daemon.service
%{_presetdir}/99-ckb-next.preset
%{_datadir}/applications/ckb-next.desktop
%{_datadir}/appdata/ckb-next.appdata.xml
%{_iconsdir}/hicolor/*/*/ckb-next*
%{_mandir}/man1/*
%{_udevrulesdir}/*.rules
%{_libdir}/cmake/ckb-next

%post
%_post_service %{name}-daemon

%preun
%_preun_service %{name}-daemon

%postun
%systemd_postun_with_restart %{name}-daemon

#---------------------------------------------------------------------
%prep
%autosetup -p1

%build
# We force systemd since autodetection fail inside the buildsystem
%cmake -DCMAKE_BUILD_TYPE=Release \
       -DFORCE_INIT_SYSTEM=systemd \
       -DSYSTEMD_UNIT_INSTALL_DIR=%{_unitdir} \
       -DSAFE_INSTALL=OFF \
       -DSAFE_UNINSTALL=OFF \
       -DCMAKE_INSTALL_LIBEXECDIR=libexec \
       -DDISABLE_UPDATER=1 \
       -DUDEV_RULE_DIRECTORY=%{_udevrulesdir}

%make

%install
%make_install -C build

install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml
install -Dpm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/ckb-next.1
install -Dpm 0644 %{SOURCE3} %{buildroot}%{_presetdir}/99-ckb-next.preset
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/ckb-next.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 685 |21cr|cksfv-1.3.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple File Verification program
Name:		cksfv
Version:	1.3.15
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://zakalwe.fi/~shd/foss/cksfv/
Source0:	http://zakalwe.fi/~shd/foss/cksfv/files/%{name}-%{version}.tar.bz2
Source1:	cksfv.bash-completion

%description
Some files that you download will come with a .sfv file. This is used to
verify that the files that you received are the same as the originals.
cksfv is a program that can use the .sfv file to verify the downloaded
files. Also, it can be used to create new .sfv files.

%files
%doc ChangeLog COPYING README.md TODO
%doc scripts/
%{_bindir}/cksfv
%{_mandir}/man1/*
%{_sysconfdir}/bash_completion.d/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%before_configure
./configure \
	--prefix=%{_prefix} \
	--package-prefix=%{buildroot} \
	--bindir=%{_bindir} \
	--mandir=%{_mandir}

%make

%install
%makeinstall_std

#bash completion
install -Dm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

%check
%make check


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 686 |21cr|clalsadrv-2.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ access library for ALSA
Name:		clalsadrv
Version:	2.0.0
Release:	7
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.kokkinizita.net/linuxaudio/
Source0:	http://www.kokkinizita.net/linuxaudio/downloads/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(alsa)

%description
C++ access library for ALSA.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libclalsadrv.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}clalsadrv2-devel < 2.0.0-5
Obsoletes:	%{_lib}clalsadrv2-devel < 2.0.0-5

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc AUTHORS
%{_includedir}/*
%{_libdir}/libclalsadrv.so

#----------------------------------------------------------------------------

%prep
%setup -q
cd libs
sed -i -e 's/\-O2/\$\(RPM_OPT_FLAGS\)/' Makefile
sed -i -e 's/\/sbin\/ldconfig/#\/sbin\/ldconfig/g' Makefile

%build
cd libs
%make

%install
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
cd libs
make install \
	PREFIX=%{buildroot}%{_prefix} \
	LIBDIR=%{_lib}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 687 |21cr|clamav-gui-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ClamAV-GUI

Name:		clamav-gui
Summary:	Qt4 front-end for clamav
Version:	0.4.1
Release:	1
License:	GPLv3+
Group:		File tools
Url:		http://kde-apps.org/content/show.php/ClamAV-GUI?content=170782
Source0:	%{oname}-%{version}.tgz
Patch0:		%{name}-0.4.1-fix-installation-paths.patch
Patch1:		%{name}-0.4.1-fix-freshclam-detection.patch
BuildRequires:	qt4-devel
Requires:	clamav

%description
A graphical front-end, based on Qt4, for the ClamAV anti-virus scanner.

%files
%doc CHANGES README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*
%{_datadir}/man/de/man1/%{name}.1*

#-----------------------------------------------------------------------------


%prep
%setup -qn %{oname}
%apply_patches

# Fix perms
find . -name "*.h" -o -name "*.cpp"|xargs chmod 0644


%build
%qmake_qt4
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 688 |21cr|clamtk-6.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Easy to use front-end for ClamAV
Name:		clamtk
Version:	6.14
Release:	1
License:	Artistic
Group:		File tools
Url:		https://dave-theunsub.github.io/clamtk
Source0:	https://bitbucket.org/davem_/clamtk/downloads/%{name}-%{version}.tar.xz
Patch0:		%{name}-5.24-fix-UTF8-handling.patch
BuildRequires:	gettext
BuildRequires:	desktop-file-utils
Requires:	gettext
Requires:	perl(Gtk2) >= 1.241
Requires:	perl(Digest)
Requires:	perl(LWP)
Requires:	perl(JSON)
Requires:	perl(MIME::Base64)
Requires:	perl(Text::CSV)
Requires:	perl(File::Copy::Recursive)
Requires:	perl(Locale::gettext)
Requires:	perl(Time::Piece)
Requires:	clamav >= 0.98
Requires:	clamav-db
BuildArch:	noarch

%description
ClamTk is a GUI front-end for ClamAV using Gtk2-perl. It is designed to be an
easy-to-use, point and click virus scanner for Linux systems.

%files -f %{name}.lang
%doc CHANGES DISCLAIMER LICENSE README.md
%{_bindir}/%{name}
%{perl_vendorlib}/ClamTk
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.*
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# Nothing to do

%install
%{__install} -D -m0755 %{name} %{buildroot}%{_bindir}/%{name}
%{__install} -D -m0644 images/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
%{__install} -D -m0644 images/%{name}.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
#{__install} -D -m0644 images/%%{name}-loader.gif %%{buildroot}%%{_datadir}/pixmaps/%%{name}-loader.gif
%{__install} -D -m0644 %{name}.1.gz %{buildroot}%{_mandir}/man1/%{name}.1.gz
%{__install} -D -m0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%{__install} -d %{buildroot}%{perl_vendorlib}/ClamTk
%{__install} -m0644 lib/*.pm %{buildroot}%{perl_vendorlib}/ClamTk

for n in po/*.mo ; do
	%{__install} -D -m0644 $n %{buildroot}%{_datadir}/locale/`basename $n .mo`/LC_MESSAGES/%{name}.mo
done

desktop-file-install \
	--add-category="System" \
	--remove-category="Security" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 689 |21cr|clanbomber-1.05-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A free (GPL) Bomberman-like multiplayer game
Name:		clanbomber
Version:	1.05
Release:	19
License:	GPLv2+
Group:		Games/Arcade
Url:		http://clanbomber.sourceforge.net/
Source0:	http://www.clanbomber.de/files/%{name}-%{version}.tar.bz2
Source11:	%{name}.16.png
Source12:	%{name}.32.png
Source13:	%{name}.48.png
Patch8:		clanbomber-1.02a-gcc-3.3.patch
Patch9:		clanbomber-0.5-compile-without-xdisplay.patch
Patch10:	clanbomber-1.05-gcc3_4.patch
Patch11:	clanbomber-1.05-newer-make.patch
Patch12:	clanbomber-1.05-fix-build.patch
Patch13:	clanbomber-1.05-gcc6.patch
Patch14:	clanbomber-1.05-gcc11.patch
BuildRequires:	libclanlib-mikmod
BuildRequires:	libclanlib-sound
BuildRequires:	clanlib0.6-devel
BuildRequires:	hermes-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libmikmod)
Requires:	soundwrapper

%description
ClanBomber is a free (GPL) Bomberman-like multiplayer game that uses ClanLib, a
free multi platform C++ game SDK. First "ClanBomber" was only a working title
for a small game started in September 1998, that has only been started to learn
how to use ClanLib. But the ClanBomber project has grown into a real game. It
is fully playable and features Computer controlled bombers, however, it is
recommended to play ClanBomber with friends (3-8 players are really fun).

%files
%doc AUTHORS COPYING README
%{_gamesbindir}/*
%{_gamesdatadir}/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch8 -p1 -b .peroyvind
%patch9 -p1 -b .peroyvind
%patch10 -p1
%patch11 -p0
%patch12 -p0
%patch13 -p1
%patch14 -p1

%build
autoreconf -fi
# (gc) workaround g++ exception bug when -fomit-frame-pointer is set
export CFLAGS="%{optflags} -fno-omit-frame-pointer"
export CXXFLAGS="%{optflags} -fno-omit-frame-pointer"
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
make

%install
%makeinstall_std

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=ClanBomber
Comment=A free (GPL) Bomberman-like multiplayer game
Exec=soundwrapper %{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 690 |21cr|clanbomber2-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Summary A free (GPL) Bomberman-like multiplayer game
%define oname clanbomber

Name:           clanbomber2
Version:        2.2.0
Release:        1
Summary:        %{Summary}
License:        GPLv3+
Group:          Games/Arcade
Url:            http://savannah.nongnu.org/projects/clanbomber/
Source0:        http://download.savannah.gnu.org/releases/%{oname}/%{oname}-%{version}.tar.xz
Source1:	%{oname}.desktop
Source11:	%{oname}.16.png
Source12:	%{oname}.32.png
Source13:	%{oname}.48.png
BuildRequires:	boost-devel
BuildRequires:	boost
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	desktop-file-utils

%description
ClanBomber is a free (GPL) Bomberman-like multiplayer game that uses ClanLib, a
free multi platform C++ game SDK. First "ClanBomber" was only a working title
for a small game started in September 1998, that has only been started to learn
how to use ClanLib. But the ClanBomber project has grown into a real game. It
is fully playable and features Computer controlled bombers, however, it is
recommended to play ClanBomber with friends (3-8 players are really fun).

Clanbomber2 is a port of ClanBomber on frame buffer.
For X Window, just use plain legacy ClanBomber.

%files -f %oname.lang
%doc AUTHORS COPYING README
%{_gamesbindir}/*
%{_gamesdatadir}/*
%{_miconsdir}/%{oname}.png
%{_iconsdir}/%{oname}.png
%{_liconsdir}/%{oname}.png
%{_datadir}/applications/*.desktop
#---------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
export CXXFLAGS="%{optflags} -pthread"
%configure --bindir=%{_gamesbindir} \
  --datadir=%{_gamesdatadir} \
  --with-boost-libdir=%{_libdir}
  
%make

%install
%makeinstall_std

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{oname}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{oname}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{oname}.png
# drop hacks
rm -fr %{buildroot}%{_gamesdatadir}/applications

mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install  %{SOURCE1}\
    %{buildroot}%{_datadir}/applications/%{oname}.desktop


%find_lang %{oname}

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{oname}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 691 |21cr|clanlib0.6-0.6.5-48
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname_orig libclanlib

%define major 2
%define libname %mklibname clanlib %{major}

Summary:	The ClanLib Game SDK
Name:		clanlib0.6
Version:	0.6.5
Release:	48
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.clanlib.org/
Source0:	http://www.clanlib.org/download/files/ClanLib-%{version}-1.tar.bz2
Patch0:		ClanLib-0.6.5-display-compilation.patch
Patch1:		ClanLib-0.6.5-doc-fix.patch
Patch2:		ClanLib-0.6.5-glXGetProcAddressARB.patch
Patch3:		ClanLib-0.6.5-fix-png-detection.patch
Patch4:		ClanLib-0.6.5-gcc33.patch
Patch5:		ClanLib-0.6.5-64bit-fixes.patch
Patch6:		ClanLib-0.6.5-bounds.patch
Patch7:		ClanLib-0.6.5-directfb-ttf-fix.patch
Patch8:		ClanLib-0.6.5-gcc34.patch
Patch9:		ClanLib-0.6.5-freetype.patch
Patch10:	ClanLib-0.6.5-directfb-fixes.patch
Patch11:	ClanLib-0.6.5-extraqualif.patch
Patch12:	ClanLib-0.6.5-typename.patch
Patch13:	ClanLib-0.6.5-gcc4.3.patch
Patch14:	ClanLib-0.6.5-new-mikmod.patch
Patch15:	ClanLib-0.6.5-gcc4.6.patch
Patch16:	ClanLib-0.6.5-gzopen-flags.patch
Patch17:	ClanLib-0.6.5-gcc45.patch
Patch18:	ClanLib-0.6.5-libpng1.5.patch
Patch19:	ClanLib-0.6.5-link.patch
Patch20:	clanlib-0.8.1-gcc7.patch
Patch21:	ClanLib-0.6.5-use-pthread_mutexattr_settype.patch
Patch22:	clanlib-0.8.1-gcc11.patch
BuildRequires:	autoconf2.5
BuildRequires:	bzip2-devel
BuildRequires:	hermes-devel >= 1.3.0
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(vorbis)
Provides:	ClanLib = %{EVRD}

%description
The ClanLib Game SDK is a crossplatform game library designed to ease the work
for game developers. The goal is to provide a common interface to classical
game problems (loading graphics eg.), so games can share as much code as
possible. Ideally anyone with small resources should be able to write
commercial quality games.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc README COPYING CREDITS
%{_libdir}/libclanCore.so.*
%{_libdir}/libclanApp.so.*
%{_libdir}/libclanDisplay.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-devel
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libname}-gl = %{EVRD}
Requires:	%{libname}-gui = %{EVRD}
Requires:	%{libname}-jpeg = %{EVRD}
Requires:	%{libname}-mikmod = %{EVRD}
Requires:	%{libname}-network = %{EVRD}
Requires:	%{libname}-png = %{EVRD}
Requires:	%{libname}-smalljpeg = %{EVRD}
Requires:	%{libname}-sound = %{EVRD}
Requires:	%{libname}-ttf = %{EVRD}
Requires:	%{libname}-vorbis = %{EVRD}
Provides:	%{libname_orig}-devel = %{EVRD}
Provides:	ClanLib-devel = %{EVRD}
Provides:	clanlib-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	clanlib-devel > 0.7.0

%description -n %{libname}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{libname}-devel
%doc README COPYING CODING_STYLE ascii-logo
%{_libdir}/*.so
%{_includedir}/ClanLib
%{_bindir}/clanlib-config

#----------------------------------------------------------------------------

%package -n %{libname}-static-devel
Summary:	Static libraries for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-static-devel = %{EVRD}
Provides:	ClanLib-static-devel = %{EVRD}
Provides:	clanlib-static-devel = %{EVRD}

%description -n %{libname}-static-devel
This package contains the static libraries for %{name}.

%files -n %{libname}-static-devel
%doc README
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package -n %{libname}-sound
Summary:	ClanLib Sound module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-sound = %{EVRD}

%description -n %{libname}-sound
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Sound module (clanSound).

%files -n %{libname}-sound
%doc README
%{_libdir}/libclanSound.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-vorbis
Summary:	ClanLib Vorbis module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-vorbis = %{EVRD}

%description -n %{libname}-vorbis
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Vorbis module (clanVorbis).

%files -n %{libname}-vorbis
%doc README
%{_libdir}/libclanVorbis.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-network
Summary:	ClanLib Network module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-network = %{EVRD}

%description -n %{libname}-network
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Network module (clanNetwork).

%files -n %{libname}-network
%doc README
%{_libdir}/libclanNetwork.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-jpeg
Summary:	ClanLib Jpeg module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-jpeg = %{EVRD}

%description -n %{libname}-jpeg
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Jpeg module (clanJPEG).

%files -n %{libname}-jpeg
%doc README
%{_libdir}/libclanJPEG.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-gui
Summary:	ClanLib Gui module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-gui = %{EVRD}

%description -n %{libname}-gui
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Gui module (clanGUI).

%files -n %{libname}-gui
%doc README
%{_libdir}/libclanGUI.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-gl
Summary:	ClanLib GL module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-gl = %{EVRD}

%description -n %{libname}-gl
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the GL module (clanGL).

%files -n %{libname}-gl
%doc README
%{_libdir}/libclanGL.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-ttf
Summary:	ClanLib TTF module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-ttf = %{EVRD}

%description -n %{libname}-ttf
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the TTF module (clanTTF).

%files -n %{libname}-ttf
%doc README
%{_libdir}/libclanTTF.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-smalljpeg
Summary:	ClanLib SmallJPEG module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{libname_orig}-smalljpeg = %{EVRD}

%description -n %{libname}-smalljpeg
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the SmallJPEG module
(clanSmallJPEG).

%files -n %{libname}-smalljpeg
%doc README
%{_libdir}/libclanSmallJPEG.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-mikmod
Summary:	ClanLib MikMod module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	ClanLib-mikmod = %{EVRD}
Provides:	clanlib-mikmod = %{EVRD}
Provides:	%{libname_orig}-mikmod = %{EVRD}

%description -n %{libname}-mikmod
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the MikMod module (clanMikMod).

%files -n %{libname}-mikmod
%doc README
%{_libdir}/libclanMikMod.so.*

#----------------------------------------------------------------------------

%package -n %{libname}-png
Summary:	ClanLib PNG module
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	ClanLib-png = %{EVRD}
Provides:	clanlib-png = %{EVRD}
Provides:	%{libname_orig}-png = %{EVRD}

%description -n %{libname}-png
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the PNG module (clanPNG).

%files -n %{libname}-png
%doc README
%{_libdir}/libclanPNG.so.*

#----------------------------------------------------------------------------

%prep
%setup -q -n ClanLib-%{version}
%patch0 -p0
%patch1 -p1
%patch2 -p0
%patch3 -p0
%patch4 -p1
%patch5 -p1 -b .64bit-fixes
%patch6 -p1 -b .bounds
%patch7 -p1
%patch8 -p0
%patch9 -p1 -b .freetype
%patch10 -p1 -b .directfb-fixes
%patch11 -p1 -b .extraqualif
%patch12 -p1 -b .typename
%patch13 -p1 -z .gcc43
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p0
%patch18 -p0
%patch19 -p0
%patch20 -p1
%patch21 -p1
%patch22 -p1

autoconf

%build
export COMMON_CONFIGURE_FLAGS="--enable-dyn --enable-joystick --disable-lua --disable-debug --disable-docs --enable-ttf --disable-directfb"
# (sb) doesn't build on PPC with this
%ifarch %{ix86}
# (gc) workaround g++ exception bug when -fomit-frame-pointer is set
export CFLAGS="%{optflags} -fno-omit-frame-pointer" CXXFLAGS="%{optflags} -fno-omit-frame-pointer"
%else
export COMMON_CONFIGURE_FLAGS="$COMMON_CONFIGURE_FLAGS --disable-asm386"
%endif

%configure $COMMON_CONFIGURE_FLAGS

# (gc) there can be ordering problem when using percent-make, don't use it
make all
make strip
chmod 755 Documentation/FAQ.theme
rm -f Libs/*.a

%install
%makeinstall \
	BIN_PREFIX=%{buildroot}%{_bindir} \
	LIB_PREFIX=%{buildroot}%{_libdir} \
	INC_PREFIX=%{buildroot}%{_includedir} \
	TARGET_PREFIX=%{buildroot}%{_libdir}/ClanLib


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 692 |21cr|clanlib0.8-0.8.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	lib_name_orig	libclanlib
%define	lib_major	0.8
%define	lib_name	%mklibname clanlib %{lib_major}

Summary:	The ClanLib Game SDK
Name:		clanlib0.8
Version:	0.8.1
Release:	14
License:	BSD-like
Group:		System/Libraries
Url:		http://www.clanlib.org/
Source0:	http://www.clanlib.org/download/releases-%{lib_major}/ClanLib-%version.tgz
Patch0:		clanlib-0.8.1-gcc43.patch
Patch1:		clanlib-0.8.1-ndebug.patch
Patch2:		clanlib-0.8.1-gcc44.patch
Patch3:		clanlib-0.8.1-libpng1.5.patch
Patch4:		clanlib-0.8.1-link.patch
Patch5:		ClanLib-0.8.1-gcc4.7.patch
Patch6:		clanlib-0.8.1-gcc7.patch
Patch7:		clanlib-0.8.1-perl-5.26.patch
Patch8:		clanlib-0.8.1-autotools.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	libmikmod-devel
BuildRequires:	jpeg-devel
BuildRequires:	libxslt-proc

%description
The ClanLib Game SDK is a crossplatform game library designed to ease the work
for game developers. The goal is to provide a common interface to classical
game problems (loading graphics eg.), so games can share as much code as
possible. Ideally anyone with small resources should be able to write
commercial quality games.

%package -n	%{lib_name}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n	%{lib_name}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n	%{lib_name}-devel
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{lib_name} = %{version}-%{release}
Requires:	%{lib_name}-gl = %{version}-%{release}
Requires:	%{lib_name}-gui = %{version}-%{release}
Requires:	%{lib_name}-mikmod = %{version}-%{release}
Requires:	%{lib_name}-network = %{version}-%{release}
Requires:	%{lib_name}-sound = %{version}-%{release}
Requires:	%{lib_name}-vorbis = %{version}-%{release}
Requires:	%{lib_name}-sdl = %{version}-%{release}
Requires:	%{lib_name}-signals = %{version}-%{release}
Requires:	%{lib_name}-guistylesilver = %{version}-%{release}
Provides:	%{lib_name_orig}-devel = %{version}-%{release}
Provides:	%{name}-devel
Conflicts:	clanlib0.6-devel

%description -n	%{lib_name}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%package -n	%{lib_name}-sound
Summary:	ClanLib Sound module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-sound = %{version}-%{release}

%description -n	%{lib_name}-sound
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Sound module (clanSound).

%package -n	%{lib_name}-vorbis
Summary:	ClanLib Vorbis module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-vorbis = %{version}-%{release}

%description -n	%{lib_name}-vorbis
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Vorbis module (clanVorbis).

%package -n	%{lib_name}-network
Summary:	ClanLib Network module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-network = %{version}-%{release}

%description -n	%{lib_name}-network
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Network module (clanNetwork).

%package -n	%{lib_name}-gui
Summary:	ClanLib Gui module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-gui = %{version}-%{release}

%description -n	%{lib_name}-gui
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Gui module (clanGUI).

%package -n	%{lib_name}-gl
Summary:	ClanLib GL module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-gl = %{version}-%{release}

%description -n	%{lib_name}-gl
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the GL module (clanGL).

%package -n	%{lib_name}-mikmod
Summary:	ClanLib MikMod module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-mikmod = %{version}-%{release}

%description -n	%{lib_name}-mikmod
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the MikMod module (clanMikMod).

%package -n	%{lib_name}-sdl
Summary:	ClanLib SDL module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-sdl = %{version}-%{release}

%description -n	%{lib_name}-sdl
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the SDL module (clanSDL).

%package -n	%{lib_name}-signals
Summary:	ClanLib Signals module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-signals = %{version}-%{release}

%description -n	%{lib_name}-signals
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the Signals module (clanSignals).

%package -n	%{lib_name}-guistylesilver
Summary:	ClanLib GUIStyleSilver module
Group:		System/Libraries
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{lib_name_orig}-guistylesilver = %{version}-%{release}

%description -n	%{lib_name}-guistylesilver
The ClanLib Game SDK is a crossplatform game library designed to ease the
work for game developers. This package is the GUIStyleSilver module
(clanGUIStyleSilver).

%prep
%setup -q -n ClanLib-%{version}
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p0
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build
./autogen.sh
# disable no_undefined, otherwise it fails on linking src
%define _disable_ld_no_undefined 1
%configure	--enable-dyn \
		--enable-joystick \
		--disable-lua \
		--disable-debug \
		--with-pic \
		--disable-docs \
		--enable-ttf \
		--enable-clanDisplay \
		--enable-clanSDL \
		--enable-clanGL \
		--enable-clanSound \
		--enable-clanNetwork \
		--enable-clanGUI \
		--enable-clanMikMod \
		--enable-clanVorbis \
%ifarch %{ix86}
		--enable-asm386
%endif

%make all

%install
%makeinstall BIN_PREFIX=%{buildroot}%{_bindir} LIB_PREFIX=%{buildroot}%{_libdir} INC_PREFIX=%{buildroot}%{_includedir} TARGET_PREFIX=%{buildroot}%{_libdir}/ClanLib

ln -s ClanLib-0.7 %{buildroot}%{_includedir}/ClanLib

%files -n %{lib_name}
%doc README COPYING CREDITS
%{_libdir}/libclanCore-%{lib_major}.so.*
%{_libdir}/libclanApp-%{lib_major}.so.*
%{_libdir}/libclanDisplay-%{lib_major}.so.*

%files -n %{lib_name}-devel
%doc README COPYING CODING_STYLE ascii-logo
%{_libdir}/*.so
%{_includedir}/ClanLib-%{lib_major}
%{_includedir}/ClanLib
#{_bindir}/clanlib-config
%{_libdir}/pkgconfig/*.pc

%files -n %{lib_name}-mikmod
%{_libdir}/libclanMikMod-%{lib_major}.so.*

%files -n %{lib_name}-network
%{_libdir}/libclanNetwork-%{lib_major}.so.*

%files -n %{lib_name}-vorbis
%{_libdir}/libclanVorbis-%{lib_major}.so.*

%files -n %{lib_name}-sound
%{_libdir}/libclanSound-%{lib_major}.so.*

%files -n %{lib_name}-gui
%{_libdir}/libclanGUI-%{lib_major}.so.*

%files -n %{lib_name}-gl
%{_libdir}/libclanGL-%{lib_major}.so.*

%files -n %{lib_name}-sdl
%{_libdir}/libclanSDL-%{lib_major}.so.*

%files -n %{lib_name}-signals
%{_libdir}/libclanSignals-%{lib_major}.so.*

%files -n %{lib_name}-guistylesilver
%{_libdir}/libclanGUIStyleSilver-%{lib_major}.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 693 |21cr|clanlib-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define api 4.1
%define major 1
%define libname %mklibname clanlib %{api} %{major}
%define devname %mklibname -d clanlib %{api}

Summary:	The ClanLib Game SDK series %{api}
Name:		clanlib
Version:	4.1.0
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.clanlib.org/
Source0:	https://github.com/sphair/ClanLib/archive/refs/tags/v%{version}.tar.gz?/ClanLib-%{version}.tar.gz
Patch0:		ClanLib-4.1.0-ftbfs.patch
Patch1:		ClanLib-4.1.0-aarch64.patch
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	libxslt-proc
BuildRequires:	bzip2-devel
BuildRequires:	jpeg-devel
BuildRequires:	libmikmod-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xrender)
ExcludeArch:	%{e2k} %{riscv}

%description
The ClanLib Game SDK is a crossplatform game library designed to ease the work
for game developers. The goal is to provide a common interface to classical
game problems (loading graphics eg.), so games can share as much code as
possible. Ideally anyone with small resources should be able to write
commercial quality games.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libclan*-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	ClanLib-devel = %{EVRD}
Provides:	clanlib-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n ClanLib-%{version}

%build
%global optflags %{optflags} -fno-stack-protector
%ifarch aarch64
%global optflags %{optflags} -mno-outline-atomics
%endif

autoreconf -fi
%configure \
	--disable-static \
%ifarch %{ix86}
	--disable-sse2 \
%endif
	--enable-docs

# Hack to fix build with new binutils
sed s,"build_libtool_need_lc=no","build_libtool_need_lc=yes",g -i libtool
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 694 |21cr|classads-1.0.10-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define libname	%mklibname classads %{major}
%define libns	%mklibname classads_ns %{major}
%define devname	%mklibname classads -d

Summary:	Condor's classified advertisement language
Name:		classads
Version:	1.0.10
Release:	12
License:	ASLv2.0
Group:		System/Libraries
Url:		http://www.cs.wisc.edu/condor/classad/
Source0:	ftp://ftp.cs.wisc.edu/condor/classad/c++/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libpcre)

%description
Classified Advertisements (classads) are the lingua franca of
Condor. They are used for describing jobs, workstations, and other
resources. They are exchanged by Condor processes to schedule
jobs. They are logged to files for statistical and debugging
purposes. They are used to enquire about current state of the system.

A classad is a mapping from attribute names to expressions. In the
simplest cases, the expressions are simple constants (integer,
floating point, or string). A classad is thus a form of property
list. Attribute expressions can also be more complicated. There is a
protocol for evaluating an attribute expression of a classad vis a vis
another ad. For example, the expression "other.size > 3" in one ad
evaluates to true if the other ad has an attribute named size and the
value of that attribute is (or evaluates to) an integer greater than
three. Two classads match if each ad has an attribute requirements
that evaluates to true in the context of the other ad. Classad
matching is used by the Condor central manager to determine the
compatibility of jobs and workstations where they may be run.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for creating ISO disc images
Group:		System/Libraries
Obsoletes:	%{_lib}classads0 < 1.0.10-11

%description -n %{libname}
Classified Advertisements (classads) are the lingua franca of
Condor. They are used for describing jobs, workstations, and other
resources. They are exchanged by Condor processes to schedule
jobs. They are logged to files for statistical and debugging
purposes. They are used to enquire about current state of the system.

%files -n %{libname}
%{_libdir}/libclassad.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libns}
Summary:	Library for creating ISO disc images
Group:		System/Libraries
Conflicts:	%{_lib}classads0 < 1.0.10-11

%description -n %{libns}
Classified Advertisements (classads) are the lingua franca of
Condor. They are used for describing jobs, workstations, and other
resources. They are exchanged by Condor processes to schedule
jobs. They are logged to files for statistical and debugging
purposes. They are used to enquire about current state of the system.

%files -n %{libns}
%{_libdir}/libclassad_ns.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for Condor's classified advertisement language
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libns} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}classads-static-devel < 1.0.10-11

%description -n %{devname}
Header files for Condor's ClassAd Library, a powerful and flexible,
semi-structured representation of data.

%files -n %{devname}
%doc LICENSE-2.0.txt README CHANGELOG
%{_bindir}/classad_version
%{_bindir}/classad_version_ns
%{_bindir}/classad_functional_tester
%{_bindir}/classad_functional_tester_ns
%{_bindir}/cxi
%{_bindir}/cxi_ns
%{_libdir}/libclassad.so
%{_libdir}/libclassad_ns.so
%dir %{_includedir}/classad/
%{_includedir}/classad/*.h

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-namespace \
	--enable-flexible-member

%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 695 |21cr|clauer-3.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#stop automatic dependencies
%if %{_use_internal_dependency_generator}
%global __requires_exclude 'devel\\(.*\\)'
%else
%define _requires_exceptions devel(.*)
%endif

Name:		clauer
Version:	3.0.2
Release:	7
Summary:	Cryptographic keyring on a USB storage device
License:	BSD-like
Group:		System/Servers
URL:		http://clauer.nisu.org/
Source0:	ClauerLinux-%{version}.tar.gz
Source1:	clos
Source2:	install-clauer-firefox.html
Source3:	uninstall-clauer-firefox.html
Source4:	clauer.png
Source5:	clauer-uninstall.png
Patch0:		ClauerLinux-3.0.2-no-install-hooks.patch
Patch1:		ClauerLinux-3.0.2-fix-configure.patch
Patch2:		ClauerLinux-3.0.2-link.patch
Requires(pre):	rpm-helper
BuildRequires:	libopenssl-devel
BuildRequires:	imagemagick
BuildRequires:	autoconf

%description
This is a software that converts a simple CD-ROM or a USB flash disk
into an authentication tool, capable of performing authentication with
several levels of security, in particular with X509 certificates.
The result is that you carry, with a simple USB "pen drive", all your
x509 certificates and use them in a transparent way.

%prep
%setup -q -n ClauerLinux-%{version}
%patch0 -p1 -b .nohooks
%patch1 -p1 -b .configure
%patch2 -p0 -b .link

%build
# required by patch0
autoreconf -fi

%configure
%make

%install
rm -rf %{buildroot}
%makeinstall

#remove unwanted files
rm -f	%{buildroot}%{_bindir}/firefox-install-pkcs11.sh \
	%{buildroot}%{_bindir}/firefox-uninstall-pkcs11.sh \
	%{buildroot}%{_bindir}/makeclos-rc \
	%{buildroot}%{_bindir}/unmakeclos-rc \
	%{buildroot}%{_libdir}/libclauerpkcs11.{la,a}
rm -f %{buildroot}%{_libdir}/{libclio.{so,la,a},libCRYPTOWrap.{so,la,a},libIMPORT.{so,la,a},libRT.{so,la,a}}

#init script
mkdir -p %{buildroot}%{_initrddir}
install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}

#language files
mkdir -p %{buildroot}/usr/share/locale/es/LC_MESSAGES
install -m 644 clauer-utils/clauer-utils_es.mo %{buildroot}/usr/share/locale/es/LC_MESSAGES/clauer-utils.mo
mkdir -p %{buildroot}/usr/share/locale/ca/LC_MESSAGES
install -m 644 clauer-utils/clauer-utils_ca.mo %{buildroot}/usr/share/locale/ca/LC_MESSAGES/clauer-utils.mo

#html pages to install/uninstall pkcs11 module from firefox
mkdir -p %{buildroot}%{_datadir}/clauer
perl -pl -e "s,---LIBDIR---,%{_libdir},g" %{SOURCE2} > %{buildroot}%{_datadir}/clauer/install-clauer-firefox.html
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/clauer

#icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{64x64,48x48,32x32,16x16}/apps
install -m 644 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -m 644 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}-uninstall.png
convert -scale 48 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -scale 48 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}-uninstall.png
convert -scale 32 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}-uninstall.png
convert -scale 16 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}-uninstall.png

#installation instructions
cat > README.urpmi << EOF 
If you want to use the clauer with firefox/mozilla then use the Mandriva
menu option "Install clauer in Firefox" or open the file
%{_datadir}/clauer/install-clauer-firefox.html
with Firefox.
To install it in Thunderbird follow the instructions in the README file.
Keep in mind that the module is in %{_libdir}/libclauerpkcs11.so

Si vol usar el clauer amb firefox/mozilla seleccioni el programa
"Instal·lar clauer en firefox" des del menu mandriva o obri el fitxer
%{_datadir}/clauer/install-clauer-firefox.html 
amb firefox. Per a usar-lo amb thunderbird segueixi les instruccions en el
fitxer README però tingui en compte que el modulo està en
%{_libdir}/libclauerpkcs11.so

Si quiere usar el clauer con firefox/mozilla seleccione el programa
"Instalar clauer en firefox" desde el menu mandriva o abra el
fichero
%{_datadir}/clauer/install-clauer-firefox.html
con firefox. Para usarlo con thunderbird siga las instrucciones en el fichero
README pero tenga en cuenta que el modulo está en
%{_libdir}/libclauerpkcs11.so
EOF

#menu entries
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-pkcs11-firefox-install.desktop << EOF
[Desktop Entry]
Name=Install Clauer in Firefox
Comment=Install Clauer in Firefox
Name[es]=Instala Clauer en Firefox
Comment[es]=Instala Clauer en Firefox
Name[ca]=Instal·la Clauer per a Firefox
Comment[ca]=Instal·la Clauer per Firefox
Exec=%{_bindir}/firefox %{_datadir}/clauer/install-clauer-firefox.html 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Network;WebBrowser;
EOF

cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-pkcs11-firefox-uninstall.desktop << EOF
[Desktop Entry]
Name=Uninstall Clauer from Firefox
Comment=Uninstall Clauer from Firefox
Name[es]=Desinstala Clauer en Firefox
Comment[es]=Desinstala Clauer en Firefox
Name[ca]=Desinstal·la Clauer per a Firefox
Comment[ca]=Desinstal·la Clauer per a Firefox
Exec=%{_bindir}/firefox %{_datadir}/clauer/uninstall-clauer-firefox.html 
Icon=%{name}-uninstall
Terminal=false
Type=Application
StartupNotify=false
Categories=Network;WebBrowser;
EOF

%find_lang %{name}-utils

%clean
rm -rf %{buildroot}

%post
%if %mdkversion < 200900
/sbin/ldconfig
%endif
%_post_service clos
/sbin/service clos reload > /dev/null 2>&1 || :

%preun
%_preun_service clos

%if %mdkversion < 200900
%postun -p /sbin/ldconfig
%endif

%files -f %{name}-utils.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL README THANKS README.urpmi
%{_bindir}/*
%{_sbindir}/*
%{_initrddir}/clos
%{_datadir}/clauer
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/apps/*
%{_libdir}/lib*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 696 |21cr|clawsker-1.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dialog to edit Claws Mail's hidden preferences
Name:		clawsker
Version:	1.3.5
Release:	1
License:	GPLv3+
Group:		Networking/Mail
Url:		http://www.claws-mail.org/clawsker.php
Source0:	http://www.claws-mail.org/tools/%{name}-%{version}.tar.xz
Requires:	claws-mail
BuildArch:	noarch

%description
Clawsker is a Perl-GTK2 applet to edit hidden preferences for Claws Mail, and
to do it in a safe and user friendly way, preventing users from raw editing of
configuration files.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#nothing as install runs make again

%install
%makeinstall_std \
	LIBDIR=%{_libdir} \
	PREFIX=%{_prefix}

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 697 |21cr|claws-mail-4.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define disable_ld_no_undefined 1

# There are perl scripts in docs/tools and we don't want to install perl
# modules required by these scripts
%global __requires_exclude perl(.*)

# enable/disable unsecure webkit1 dep
# aka enable / disable fancy plugin
%bcond_with webkit1

# enable/disable litehtml_viewer plugin,
# only available claws-mail > 3.17.3
%bcond_with litehtml

# DEBUG: perl_plugin.c:50:10: fatal error: EXTERN.h: No such file or directory
# DEBUG:    50 | #include <EXTERN.h>
%global optflags %{optflags} -I%{_libdir}/perl5/CORE

# Do not strip ELFs, RPM will do it!
%define strip_hack \
mkdir -p local_bin; \
ln -sf /bin/true local_bin/strip; \
export PATH="$PWD/local_bin:$PATH"

Summary:	The user-friendly, lightweight and fast GTK2 based email client
Name:		claws-mail
Version:	4.0.0
Release:	2
Epoch:		1
License:	GPLv3+
Group:		Networking/Mail
Url:		http://www.claws-mail.org
Source0:	http://www.claws-mail.org/releases/%{name}-%{version}.tar.xz
Source1:	claws-mail.rpmlintrc
# from Debian
Patch0:		claws-mail-3.13.2-trashed-read.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	docbook-utils
BuildRequires:	docbook-utils-pdf
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	compface-devel
BuildRequires:	gpgme-devel > 0.4.5
BuildRequires:	libetpan-devel >= 0.42
BuildRequires:	libytnef-devel
BuildRequires:	libxml2-devel
BuildRequires:	openldap-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(champlain-gtk-0.12)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(dbus-1) >= 0.60
BuildRequires:	pkgconfig(dbus-glib-1) >= 0.60
BuildRequires:	pkgconfig(enchant) >= 1.0.0
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(glib-2.0) >= 2.6
BuildRequires:	pkgconfig(gmodule-2.0) >= 2.6
BuildRequires:	pkgconfig(gnutls) >= 2.2
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0) >= 0.5
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(sm)
Requires:	aspell-dictionary
Requires:	common-licenses
Requires:	compface
Requires:	rootcerts
Requires:	gsettings-desktop-schemas
# POP3 / IMAP authentication
#Requires:	sasl-plug-plain
#Requires:	sasl-plug-login
# These are dropped
Obsoletes:	%{name}-clamav-plugin < %{EVRD}
Obsoletes:	%{name}-dillo_viewer-plugin < %{EVRD}
Obsoletes:	%{name}-trayicon-plugin < %{EVRD}
%if %{without litehtml}
Obsoletes:	%{name}-litehtml_viewer-plugin < %{EVRD}
%endif
%if %{without webkit1}
Obsoletes:	%{name}-fancy-plugin < %{EVRD}
%endif

%description
Claws-Mail is an e-mail client (and news reader) based on GTK+2, running
on X Window System, and aiming for:
 * Quick response
 * Graceful, and sophisticated interface
 * Easy configuration, intuitive operation
 * Abundant features

For a complete listing of Features: http://www.claws-mail.org/features.php

%files -f %{name}.lang
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%{_bindir}/%{name}
#%%{_datadir}/appdata/claws-mail.appdata.xml
%{_datadir}/applications/claws-mail.desktop
%{_docdir}/claws-mail
%{_iconsdir}/hicolor/*/apps/*.png

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Claws Mail
Group:		Development/Other
Requires:	%{name} = %{EVRD}
# Dropped since 3.9.2
Obsoletes:	%{name}-notification-plugin-devel < %{EVRD}
Obsoletes:	%{name}-vcalendar-plugin-devel < %{EVRD}

%description devel
Development files and headers for %{name}.

%files devel
%{_includedir}/%{name}
%{_libdir}/pkgconfig/claws-mail.pc

#----------------------------------------------------------------------------

%package acpi-plugin
Summary:	This Claws Mail plugin enables mail notification via LEDs on some laptops
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description acpi-plugin
This plugin for Claws Mail enables mail notification via LEDs on some laptops.

%files acpi-plugin
#%%{_datadir}/appdata/claws-mail-acpi_notifier.metainfo.xml
%{_libdir}/%{name}/plugins/acpi_notifier.so

#----------------------------------------------------------------------------

%package address_keeper-plugin
Summary:	This Claws Mail plugin never forgets e-mail adresses
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description address_keeper-plugin
This plugin for Claws Mail allows saving outgoing addresses to a designated
folder in the address book.Addresses are saved only if not found in the
address book to avoid unwanted duplicates.

%files address_keeper-plugin
#%%{_datadir}/appdata/claws-mail-address_keeper.metainfo.xml
%{_libdir}/%{name}/plugins/address_keeper.so

#----------------------------------------------------------------------------

%package archive-plugin
Summary:	Mail Archiver
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description archive-plugin
This plugin adds archiving features to Claws Mail.

%files archive-plugin
#%%{_datadir}/appdata/claws-mail-archive.metainfo.xml
%{_libdir}/%{name}/plugins/archive.so

#----------------------------------------------------------------------------

%package att_remover-plugin
Summary:	This Claws Mail plugin enables the removal of attachments
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description att_remover-plugin
This plugin for Claws Mail enables the removal of attachments.

%files att_remover-plugin
#%%{_datadir}/appdata/claws-mail-att_remover.metainfo.xml
%{_libdir}/%{name}/plugins/att_remover.so

#----------------------------------------------------------------------------

%package attachwarner-plugin
Summary:	This Claws Mail plugin enables attachment warnings
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description attachwarner-plugin
This Claws Mail plugin enables attachment warnings.

%files attachwarner-plugin
#%%{_datadir}/appdata/claws-mail-attachwarner.metainfo.xml
%{_libdir}/%{name}/plugins/attachwarner.so

#----------------------------------------------------------------------------

%package bogofilter-plugin
Summary:	Bogofilter plugin for Claws Mail
Group:		Networking/Mail
BuildRequires:	bogofilter
Requires:	%{name} = %{EVRD}
Requires:	bogofilter

%description bogofilter-plugin
Enables the scanning of incoming mail received from a POP, IMAP, or LOCAL
account using Bogofilter. It can optionally delete mail identified as spam
or save it to a designated folder. Bogofilter is a pure Bayesian filter,
therefore it has better speed performance than SpamAssassin but might catch
less spam.

%files bogofilter-plugin
#%%{_datadir}/appdata/claws-mail-bogofilter.metainfo.xml
%{_libdir}/%{name}/plugins/bogofilter.so

#----------------------------------------------------------------------------

%package bsfilter-plugin
Summary:	This Claws Mail plugin enables spam fitering through bsfilter
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description bsfilter-plugin
Check all messages that are received from an IMAP, LOCAL or POP account
for spam using Bsfilter.

%files bsfilter-plugin
#%%{_datadir}/appdata/claws-mail-bsfilter.metainfo.xml
%{_libdir}/%{name}/plugins/bsfilter.so

#----------------------------------------------------------------------------

%package clamd-plugin
Summary:	This Claws Mail plugin enables spam fitering through Clam AntiVirus
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description clamd-plugin
Check all messages that are received from an IMAP, LOCAL or POP account
for spam using Clam AntiVirus.

%files clamd-plugin
#%%{_datadir}/appdata/claws-mail-clamd.metainfo.xml
%{_libdir}/%{name}/plugins/clamd.so

#----------------------------------------------------------------------------

%package dillo-plugin
Summary:	This plugin renders HTML e-mails through dillo
Group:		Networking/Mail
Requires:	dillo

%description dillo-plugin
Renders HTML e-mail using dillo webbrowser

%files dillo-plugin
%{_libdir}/%{name}/plugins/dillo.so

#----------------------------------------------------------------------------
%if %{with webkit1}
%package fancy-plugin
Summary:	This Claws Mail plugin renders HTML e-mails through WebKit
Group:		Networking/Mail
BuildRequires:	pkgconfig(webkit-1.0)
Requires:	%{name} = %{EVRD}

%description fancy-plugin
Renders HTML e-mail using the WebKit library.

%files fancy-plugin
#%%{_datadir}/appdata/claws-mail-fancy.metainfo.xml
%{_libdir}/%{name}/plugins/fancy.so
%endif
#----------------------------------------------------------------------------

%package fetchinfo-plugin
Summary:	This Claws Mail plugin inserts headers containing some download information
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description fetchinfo-plugin
This plugin for Claws Mail inserts headers containing some download
information: UIDL, Sylpheeds account name, POP server, user ID
and retrieval time.

%files fetchinfo-plugin
#%%{_datadir}/appdata/claws-mail-fetchinfo.metainfo.xml
%{_libdir}/%{name}/plugins/fetchinfo.so

#----------------------------------------------------------------------------

%package gdata-plugin
Summary:	This Claws Mail plugin enables access to GData (Google services)
Group:		Networking/Mail
BuildRequires:	pkgconfig(libgdata)
BuildConflicts:	gmt-devel
Requires:	%{name} = %{EVRD}

%description gdata-plugin
Plugin to access to GData (Google services). The only currently implemented
feature is inclusion of Google contacts into the address completion.

%files gdata-plugin
#%%{_datadir}/appdata/claws-mail-gdata.metainfo.xml
%{_libdir}/%{name}/plugins/gdata.so

#-----------------------------------------------------------------------------

%package kdeservicemenu
Summary:	This Claws Mail kde service menu integrated
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description kdeservicemenu
This Claws Mail kde service menu integrated

%files kdeservicemenu
%{_bindir}/claws-mail-kdeservicemenu.pl
%{_datadir}/kde4/services/ServiceMenus/claws-mail-attach-files.desktop

#----------------------------------------------------------------------------

%package libravatar-plugin
Summary:	This Claws Mail plugin enables libravatar support
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description libravatar-plugin
Plugin to show the profile pictures associated to email addresses provided by
libravatar service ( http://www.libravatar.org ).

%files libravatar-plugin
#%%{_datadir}/appdata/claws-mail-libravatar.metainfo.xml
%{_libdir}/%{name}/plugins/libravatar.so

#----------------------------------------------------------------------------
%if %{with litehtml}
%package litehtml_viewer-plugin
Summary:	Litehtml viewer plugin for %{name}
Group:		Networking/Mail
BuildRequires:	pkgconfig(gumbo)
Requires:	%{name} >= %{EVRD}
Obsoletes:	%{name}-fancy-plugin < 1:3.17.4

%description litehtml_viewer-plugin
Renders HTML e-mail using the litehml library.

%files litehtml_viewer-plugin
%{_libdir}/%{name}/plugins/litehtml_viewer.so
%endif
#----------------------------------------------------------------------------

%package mailmbox-plugin
Summary:	This Claws Mail plugin provides direct access to mbox folders
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description mailmbox-plugin
This Claws Mail plugin provides direct access to mbox folders.

%files mailmbox-plugin
#%%{_datadir}/appdata/claws-mail-mailmbox.metainfo.xml
%{_libdir}/%{name}/plugins/mailmbox.so

#----------------------------------------------------------------------------

%package managesieve-plugin
Summary:	ManageSieve plugin for %{name}
Group:		Networking/Mail
Requires:	%{name} >= %{EVRD}

%description managesieve-plugin
The Claws Mail ManageSieve plugin provides an interface for managing Sieve
filters. Sieve filters are used for filtering mail on mail servers, usually
with an IMAP account.

This plugin handles managing Sieve filters, editing them, and checking their
syntax.

%files managesieve-plugin
%{_libdir}/%{name}/plugins/managesieve.so

#----------------------------------------------------------------------------

%package newmail-plugin
Summary:	This Claws Mail plugin can write a summary to a log file
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description newmail-plugin
This Claws Mail plugin can write a summary to a log file upon
receiving new mail. It defaults to ~/Mail/NewLog.

%files newmail-plugin
#%%{_datadir}/appdata/claws-mail-newmail.metainfo.xml
%{_libdir}/%{name}/plugins/newmail.so

#----------------------------------------------------------------------------

%package notification-plugin
Summary:	This Claws Mail plugin notifies about new mail
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description notification-plugin
This Claws Mail plugin notifies about new mail.

%files notification-plugin
#%%{_datadir}/appdata/claws-mail-notification.metainfo.xml
%{_libdir}/%{name}/plugins/notification.so

#----------------------------------------------------------------------------

%package pdfviewer-plugin
Summary:	This Claws Mail plugin handles PDF and PostScript attachments
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description pdfviewer-plugin
This Claws Mail plugin This plugin handles PDF and PostScript attachments.

%files pdfviewer-plugin
#%%{_datadir}/appdata/claws-mail-pdf_viewer.metainfo.xml
%{_libdir}/%{name}/plugins/pdf_viewer.so

#----------------------------------------------------------------------------

%package perl-plugin
Summary:	Perl interface to Claws Mail's filtering mechanism
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description perl-plugin
This plugin is intended to extend the filtering possibilities of Claws Mail.
It provides a Perl interface to Claws Mail's filtering mechanism, allowing
the use of full Perl power in email filters.

%files perl-plugin
#%%{_datadir}/appdata/claws-mail-perl.metainfo.xml
%{_libdir}/%{name}/plugins/perl.so

#----------------------------------------------------------------------------

%package pgpcore-plugin
Summary:	PGP core plugin for Claws Mail
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description pgpcore-plugin
Handles core PGP functions and is a dependency of both the PGP/Inline and
PGP/MIME plugins.

%files pgpcore-plugin
#%%{_datadir}/appdata/claws-mail-pgpcore.metainfo.xml
%{_libdir}/%{name}/plugins/pgpcore.so

#----------------------------------------------------------------------------

%package pgpinline-plugin
Summary:	PGP/Inline plugin for Claws Mail
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}
Requires:	%{name}-pgpcore-plugin = %{EVRD}

%description pgpinline-plugin
Handles PGP/Inline signed and/or encrypted mails. You can decrypt mails,
verify signatures or sign and encrypt your own mails.

%files		pgpinline-plugin
#%%{_datadir}/appdata/claws-mail-pgpinline.metainfo.xml
%{_libdir}/%{name}/plugins/pgpinline.so
%{_libdir}/%{name}/plugins/pgpinline.deps

#----------------------------------------------------------------------------

%package pgpmime-plugin
Summary:	PGP/MIME plugin for Claws Mail
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}
Requires:	%{name}-pgpcore-plugin = %{EVRD}

%description pgpmime-plugin
Handles PGP/MIME signed and/or encrypted mails. You can decrypt mails, verify
signatures or sign and encrypt your own mails.

%files pgpmime-plugin
#%%{_datadir}/appdata/claws-mail-pgpmime.metainfo.xml
%{_libdir}/%{name}/plugins/pgpmime.so
%{_libdir}/%{name}/plugins/pgpmime.deps

#----------------------------------------------------------------------------

%package python-plugin
Summary:	Python scriptin access to Claws Mail
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description python-plugin
This plugin offers a Python scripting access to Claws Mail.

%files python-plugin
#%%{_datadir}/appdata/claws-mail-python.metainfo.xml
%{_libdir}/%{name}/plugins/python.so

#----------------------------------------------------------------------------

%package rssyl-plugin
Summary:	This Claws Mail plugin allows you to read your favorite newsfeeds
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description rssyl-plugin
This plugin allows you to read your favorite newsfeeds in Claws Mail.
RSS 1.0, 2.0 and Atom feeds are currently supported.

%files rssyl-plugin
#%%{_datadir}/appdata/claws-mail-rssyl.metainfo.xml
%{_libdir}/%{name}/plugins/rssyl.so

#----------------------------------------------------------------------------

%package smime-plugin
Summary:	S/Mime plugin for Claws Mail
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description smime-plugin
This plugin allows to use S/Mime signatures and encryptions in Claws Mail.

%files smime-plugin
#%%{_datadir}/appdata/claws-mail-smime.metainfo.xml
%{_libdir}/%{name}/plugins/smime.so
%{_libdir}/%{name}/plugins/smime.deps

#----------------------------------------------------------------------------

%package spamassassin-plugin
Summary:	Spamassassin-plugin for Claws Mail
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}
Requires:	spamassassin-spamd

%description spamassassin-plugin
Enables the scanning of incoming mail received from a POP, IMAP, or LOCAL
account using SpamAssassin. See README for configuration and set-up info.

%files spamassassin-plugin
%doc src/plugins/spamassassin/README
#%%{_datadir}/appdata/claws-mail-spamassassin.metainfo.xml
%{_libdir}/%{name}/plugins/spamassassin.so

#----------------------------------------------------------------------------

%package spam_report-plugin
Summary:	This Claws Mail plugin provides spamreport
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description spam_report-plugin
This Claws Mail plugin provides spamreport.

%files spam_report-plugin
#%%{_datadir}/appdata/claws-mail-spam_report.metainfo.xml
%{_libdir}/%{name}/plugins/spamreport.so

#----------------------------------------------------------------------------

%package tnef_parse-plugin
Summary:	This Claws Mail plugin enables parsing MS-TNEF attachments
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description tnef_parse-plugin
This Claws Mail plugin enables parsing MS-TNEF attachments.

%files tnef_parse-plugin
#%%{_datadir}/appdata/claws-mail-tnef_parse.metainfo.xml
%{_libdir}/%{name}/plugins/tnef_parse.so

#-----------------------------------------------------------------------------

%package vcalendar-plugin
Summary:	This plugin for %{name} enables vCalendar message handling
Group:		Networking/Mail
BuildRequires:	pkgconfig(libical)
Requires:	%{name} >= %{EVRD}

%description vcalendar-plugin
This %{name} plugin handles the vCalendar format (or rather, the
meeting subset of it). It displays such mails in a nice format, lets you
create and send meetings, and creates a virtual folder with the meetings you
have sent or received.

%files vcalendar-plugin
%{_libdir}/%{name}/plugins/vcalendar.so

#-----------------------------------------------------------------------------

%package tools
Summary:	This Claws Mail tools
Group:		Networking/Mail
Requires:	%{name} = %{EVRD}

%description tools
This Claws Mail tools.

%files tools
%{_libdir}/%{name}/tools/*

# #-----------------------------------------------------------------------------

%prep
%autosetup -p1
%strip_hack
sed -i -e 's,-g0,%{debugcflags},g' configure.ac

%build
%global optflags %{optflags} -fno-strict-aliasing -Wno-deprecated-declarations
%strip_hack
%configure \
	--enable-gtk3 \
	--enable-crash-dialog \
	--enable-gdata-plugin \
	--disable-static \
	--disable-rpath \
	--disable-manual \
	%{!?with_webkit1:--disable-fancy-plugin}

%make LIBTOOL=%{_bindir}/libtool

%install
%strip_hack
%makeinstall_std

##remove duplicate man#
rm -rf %{buildroot}%{_mandir}
## remove unneeded devel files
rm -f %{buildroot}%{_libdir}/%{name}/plugins/*.*a

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
convert %{name}.png -geometry 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert %{name}.png -geometry 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{name}.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -m644 %{name}-64x64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -m644 %{name}-128x128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications/
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/

cp -a ABOUT-NLS AUTHORS NEWS README* TODO* RELEASE_NOTES tools %{buildroot}%{_docdir}/claws-mail/
rm -f %{buildroot}%{_docdir}/claws-mail/tools/Makefile*

# We don't build with plugin
rm -f %{buildroot}%{_datadir}/appdata/claws-mail-geolocation.metainfo.xml

# integrated kde menu
mkdir -p %{buildroot}%{_datadir}/kde4/services/ServiceMenus/
sed "s/SCRIPT_PATH/claws-mail-kdeservicemenu.pl/" tools/kdeservicemenu/claws-mail-attach-files.desktop.kde4template > %{buildroot}/%{_datadir}/kde4/services/ServiceMenus/claws-mail-attach-files.desktop

install -m755 tools/kdeservicemenu/claws-mail-kdeservicemenu.pl %{buildroot}%{_bindir}/

cp -a tools %{buildroot}%{_libdir}/%{name}/
rm -f %{buildroot}%{_libdir}/%{name}/tools/Makefile*

%find_lang %{name}

# Fix strange executable permissions
find %{buildroot}%{_libdir}/%{name}/tools/ -type f -perm 744 -exec chmod 755 {} \;

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 698 |21cr|claws-mail-themes-20140629-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Icon themes for Claws-Mail
Name:		claws-mail-themes
Version:	20140629
Release:	3
License:	GPL+
Group:		Networking/Mail
URL:		http://claws-mail.org/
Source0:	http://www.claws-mail.org/themes/%{name}-%{version}.tar.gz
Requires:	claws-mail
BuildArch:	noarch
Obsoletes:	sylpheed-claws-themes < %{version}
Provides:	sylpheed-claws-themes = %{version}

%description
This package contains various user contributed icon themes for claws-mail.

%prep
%setup -q

%build
./autogen.sh

%configure
%make

%install
%makeinstall_std

%files
%{_datadir}/claws-mail/themes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 699 |21cr|clipgrab-3.9.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		clipgrab
Version:	3.9.7
Release:	2
Summary:	Video downloader
License:	GPLv3+
Group:		Video
Url:		https://clipgrab.org/
Source0:	https://download.clipgrab.org/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
BuildRequires:	gzip
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
#BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	ffmpeg

%description
A program which downloads and converts on-line videos from YouTube, Vimeo,
DailyMotion, MyVideo and many other platforms.

%files -f %{name}.lang
%doc COPYING README 
%{_bindir}/%{name}
%{_datadir}/%{name}/*.png
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q

# Fix spurious-executable-perm in debug
find . -type f -exec chmod -x {} \;

# Fix wrong EOL encoding
perl -i -pe 's/\r\n/\n/gs' http_handler.h


%build
%qmake_qt5 clipgrab.pro QMAKE_CXXFLAGS="%{optflags -wall}"
%make


%install
# Binary
install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name}

# Icons
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
mkdir -p %{buildroot}%{_iconsdir}/hicolor/16x16/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps
install -D -m644 icon.png %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_datadir}/%{name}
install -D -m644 *.png %{buildroot}%{_datadir}/%{name}/
convert -geometry 32x32 icon.png %{buildroot}%{_liconsdir}/%{name}.png
convert -geometry 16x16 icon.png %{buildroot}%{_miconsdir}/%{name}.png
convert -scale 16x16 icon.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -scale 32x32 icon.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

# Locales
mkdir -p %{buildroot}%{_datadir}/%{name}
install -D -m644 *.qm %{buildroot}%{_datadir}/%{name}/

# Menu entry
install -d %{buildroot}%{_datadir}/applications
desktop-file-install --dir="%{buildroot}%{_datadir}/applications" %{SOURCE1}

# Create lang file
(cd %{buildroot} && find . -name '*.qm') | %__sed -e 's|^.||' | sed -e \
	's:\(%{_datadir}/%{name}/%{name}_\)\([a-z_A-Z]\+\)\(.*qm$\):%lang(\2) \1\2\3:'\
		>> %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 700 |21cr|clipmenu-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	clipmenu is a simple clipboard manager using dmenu
Name:		clipmenu
Version:	6.2.0
Release:	1
License:	free
Group:		System/Configuration/Other
Url:		https://github.com/cdown/clipmenu
Source0:	https://github.com/cdown/clipmenu/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	xsel
BuildRequires:	clipnotify
Requires:	xsel
Requires:	clipnotify
Recommends:	/usr/bin/dmenu

%description
clipmenu is a simple clipboard manager using dmenu (or rofi with CM_LAUNCHER=rofi) and xsel.

%files
%{_bindir}/*
%{_userunitdir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# nothing

%install
#makeinstall_std
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_userunitdir}
install -m0755 {clipmenu,clipmenud,clipdel,clipctl} %{buildroot}%{_bindir}/
install -m0644 init/clipmenud.service %{buildroot}%{_userunitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 701 |21cr|clipnotify-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	clipnotify is a simple program that, using the XFIXES extension to X11, waits until a new selection is available and then exits
Name:		clipnotify
Version:	1.0.2
Release:	1
License:	free
Group:		System/Configuration/Other
Url:		https://github.com/cdown/clipnotify
Source0:	https://github.com/cdown/clipnotify/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(xfixes)

%description
clipnotify is a simple program that, using the XFIXES extension to X11, 
waits until a new selection is available and then exits.

%files
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
install -d %{buildroot}%{_bindir}
install -m0755 %{name} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 702 |21cr|clips-6.40-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Clips language for expert systems
Name:		clips
Version:	6.40
Release:	1
License:	BSD
Group:		Development/Other
Url:		http://www.ghg.net/clips/download/source/
Source0:	http://www.ghg.net/clips/download/source/clipssrc.tar.bz2
Source1:	http://www.ghg.net/clips/download/source/x-prjct.tar.bz2
Source2:	http://www.ghg.net/clips/download/source/makefile.bz2
Source3:	http://www.ghg.net/clips/download/source/clips.hlp
Source4:	http://www.ghg.net/clips/download/documentation/abstract.pdf
Source5:	http://www.ghg.net/clips/download/documentation/apg.pdf
Source6:	http://www.ghg.net/clips/download/documentation/arch5-1.pdf
Source7:	http://www.ghg.net/clips/download/documentation/bpg.pdf
Source8:	http://www.ghg.net/clips/download/documentation/ig.pdf
Source9:	http://www.ghg.net/clips/download/documentation/usrguide.pdf
Patch0:		clips-setup.patch
Patch1:		clips-6.21-lib64.patch
Patch3:		clips-6.21-gcc4.patch
Patch4:		clips-6.21-link.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
This is the Clips expert systems language.

%files
%{_bindir}/clips
%{_docdir}/clips-%{version}
%{_datadir}/clips

#----------------------------------------------------------------------------

%package	X11
Summary:	X interface to Clips
Group:		Development/Other
Requires:	clips

%description	X11
X interface to Clips.

%files X11
%{_prefix}/X11R6/bin/xclips
%doc clips.hlp

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -c
mv x-prjct/makefile/makefile.x clipssrc
mv x-prjct/xinterface/* clipssrc
%patch0 -p0 -b .setup
%patch1 -p1 -b .lib64
%patch3 -p1 -b .gcc4
bzcat %{SOURCE2} > clipssrc/makefile
%patch4 -p0 -b .link
#(peroyvind) invalid flag for C, drop it to avoid lots of warning
perl -pi -e "s#-Woverloaded-virtual ##g" clipssrc/makefile
perl -pi -e "s#gcc #gcc %{optflags} %{ldflags} #g" clipssrc/makefile*

%build
pushd clipssrc
%make
%make -f makefile.x LIB=%{_lib}
popd

%install
mkdir -p -m 0755 %{buildroot}%{_prefix}/{X11R6/bin,bin,doc,share/clips}
install -m 0755 clipssrc/clips %{buildroot}%{_prefix}/bin/
install -m 0755 clipssrc/xclips %{buildroot}%{_prefix}/X11R6/bin/
install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/clips/
cp %{SOURCE3} .
mkdir -p %{buildroot}%{_docdir}/clips-%{version}
for i in %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9}; do
install -m 0644 $i %{buildroot}%{_docdir}/clips-%{version}
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 703 |21cr|cliquer-1.21-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		cliquer
Version:	1.21
Release:	7
Summary:	Find cliques in arbitrary weighted graphs
Group:		Sciences/Mathematics
License:	GPLv2+
Url:		http://users.tkk.fi/pat/cliquer.html
Source0:	http://users.tkk.fi/~pat/%{name}/%{name}-%{version}.tar.gz
Source1:	http://users.tkk.fi/~pat/%{name}/%{name}_fm.pdf
Source2:	http://users.tkk.fi/~pat/%{name}/%{name}.pdf
Source3:	http://users.tkk.fi/~pat/%{name}/%{name}_bm.pdf
Source4:	http://users.tkk.fi/~pat/%{name}/basic.c
Source5:	http://users.tkk.fi/~pat/%{name}/hamming.c
Source6:	http://users.tkk.fi/~pat/%{name}/poly.c
Source7:	http://users.tkk.fi/~pat/%{name}/tetromino.h
# Man page formatting by Jerry James, text from the sources
Source8:	%{name}.1
# Sagemath patches and extra files. History can be found in related tracs at:
#       http://trac.sagemath.org/sage_trac/ticket/6355
#       http://trac.sagemath.org/sage_trac/ticket/5793
# A private email was also sent to cliquer author asking for any comments
# on Fedora cliquer review request and sagemath patches.
Source9:	cl.h
Patch0:		%{name}-sagemath.patch

Requires:	%{libname} = %{EVRD}

%description
The main cliquer package contains a command-line interface to the
cliquer library.  Note that the upstream binary name is "cl", which is
too generic for Fedora.  Therefore, the binary is named "cliquer".

%package -n %{libname}
Summary:	Library to find cliques in arbitrary weighted graphs

%description -n %{libname}
Cliquer is a set of C routines for finding cliques in an arbitrary
weighted graph.  It uses an exact branch-and-bound algorithm developed
by Patric Östergård.  It is designed with the aim of being efficient
while still being flexible and easy to use.

%package -n %{devname}
Summary:	Development files for cliquer
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for cliquer.

%prep
%setup -q
cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} .
%patch0 -p1

mkdir example
sed 's|"cliquer.h"|<cliquer/cliquer.h>|' %{SOURCE4} > example/basic.c
sed 's|"cliquer.h"|<cliquer/cliquer.h>|' %{SOURCE5} > example/hamming.c
sed 's|"cliquer.h"|<cliquer/cliquer.h>|' %{SOURCE6} > example/poly.c
cp -p %{SOURCE7} example

sed -i \
    's/59 Temple Place, Suite 330, Boston, MA  02111-1307/51 Franklin Street, Suite 500, Boston, MA  02110-1335/' \
    LICENSE

%build
# The distributed Makefile just builds a binary named "cl".  However, the
# examples show that the internal code is clearly meant to be used as a
# library.  So we build a library by hand.
gcc %{optflags} -fPIC -c cl.c
gcc %{optflags} -fPIC -c cliquer.c
gcc %{optflags} -fPIC -c graph.c
gcc %{optflags} -fPIC -c reorder.c
gcc %{optflags} -fPIC -shared -o libcliquer.so.%{version} \
  -Wl,-soname=libcliquer.so.%{major} cl.o cliquer.o graph.o reorder.o
ln -s libcliquer.so.%{version} libcliquer.so.%{major}
ln -s libcliquer.so.%{major} libcliquer.so

# Now build the binary
gcc %{optflags} -DENABLE_LONG_OPTIONS -DMAIN -c cl.c
gcc %{optflags} -o cliquer cl.o -L. -lcliquer

%install
# Install the library
mkdir -p %{buildroot}%{_libdir}
cp -pP libcliquer.so* %{buildroot}%{_libdir}
chmod 0755 %{buildroot}%{_libdir}/libcliquer.so.%{version}

# Install the binary
mkdir -p %{buildroot}%{_bindir}
install -m 0755 -p cliquer %{buildroot}%{_bindir}/cliquer

# Install the header file
mkdir -p %{buildroot}%{_includedir}/cliquer
cp -p %{SOURCE9} cliquer.h cliquerconf.h graph.h misc.h reorder.h set.h %{buildroot}%{_includedir}/cliquer

# Install the man page
mkdir -p %{buildroot}%{_mandir}/man1
cp -p %{SOURCE8} %{buildroot}%{_mandir}/man1

%check
LD_LIBRARY_PATH=. make test CFLAGS="%{optflags}"

%files
%doc cliquer*.pdf
%{_bindir}/%{name}
%{_mandir}/man1/*

%files -n %{libname}
%doc ChangeLog LICENSE README example
%{_libdir}/libcliquer.so.%{major}*

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/libcliquer.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 704 |21cr|clisp-2.49.93-3.20180218hg
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Mercurial snapshot
%global hgver 20180218hg

%define with_lightning 0

Summary:	Common Lisp (ANSI CL) implementation
Name:		clisp
Version:	2.49.93
Release:	3.%{hgver}
Epoch:		1
License:	GPLv2+
Group:		Development/Other
Url:		http://clisp.cons.org/

# The source for this package was pulled from upstream's mercurial repository.
# Use the following commands to generate the tarball:
#   hg clone hg clone http://hg.code.sf.net/p/clisp/clisp clisp-2.49
#   rm -fr clisp-2.49/.hg*
#   tar cvjf clisp-2.49-20130208hg.tar.bz2 clisp-2.49
#Source0:	ftp://ftp.gnu.org/pub/gnu/clisp/latest/%%{name}-%%{version}.tar.bz2
Source0:	%{name}-%{version}-%{hgver}.tar.bz2
Patch1:		clisp-2.49.93-rosa-disabled-tests.patch

BuildRequires:	diffutils
BuildRequires:	imake
%if %{with_lightning}
BuildRequires:	lightning
%endif
BuildRequires:	db5-devel
BuildRequires:	ffcall-devel
BuildRequires:	gdbm-devel
BuildRequires:	libfcgi-devel
BuildRequires:	libpari-devel
BuildRequires:	libsigsegv-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
Provides:	ansi-cl

%description
Common Lisp is a high-level, all-purpose programming language.

CLISP is a Common Lisp implementation by Bruno Haible of Karlsruhe
University and Michael Stoll of Munich University, both in Germany.

It mostly supports Common Lisp as described in the ANSI CL standard.
It runs on microcomputers (DOS, OS/2, Windows NT, Windows 95, Amiga
500-4000, Acorn RISC PC) as well as on Unix workstations (Linux,
SVR4, Sun4, DEC Alpha OSF, HP-UX, NeXTstep, SGI, AIX, Sun3 and others) 
and needs only 2 MB of RAM.

It is free software and may be distributed under the terms of GNU GPL,
while it is possible to distribute commercial applications compiled
with CLISP.

The user interface comes in German, English, French and Spanish.
CLISP includes an interpreter, a compiler, a large subset of CLOS,
a foreign language interface and a socket interface.

An X11 interface is available through CLX and Garnet.

%files -f %{name}.lang
%{_bindir}/clisp
%{_mandir}/*/*
%doc %{_docdir}/clisp
%dir %{_libdir}/%{name}-%{version}+
%{_libdir}/%{name}-%{version}+/base/lispinit.mem
%{_libdir}/%{name}-%{version}+/base/lisp.run
%{_libdir}/%{name}-%{version}+/bindings/glibc/*.fas
%{_libdir}/%{name}-%{version}+/bindings/glibc/*.lisp
%{_libdir}/%{name}-%{version}+/clx/new-clx/*.fas
%{_libdir}/%{name}-%{version}+/clx/new-clx/*.lisp
%{_libdir}/%{name}-%{version}+/data
%dir %{_libdir}/%{name}-%{version}+/dbus
%{_libdir}/%{name}-%{version}+/dbus/*.fas
%{_libdir}/%{name}-%{version}+/dbus/*.lisp
%dir %{_libdir}/%{name}-%{version}+/fastcgi
%{_libdir}/%{name}-%{version}+/fastcgi/*.fas
%{_libdir}/%{name}-%{version}+/fastcgi/*.lisp
%dir %{_libdir}/%{name}-%{version}+/gdbm
%{_libdir}/%{name}-%{version}+/gdbm/*.fas
%{_libdir}/%{name}-%{version}+/gdbm/*.lisp
%dir %{_libdir}/%{name}-%{version}+/gtk2
%{_libdir}/%{name}-%{version}+/gtk2/*.fas
%{_libdir}/%{name}-%{version}+/gtk2/*.lisp
%{_libdir}/%{name}-%{version}+/dynmod
%dir %{_libdir}/%{name}-%{version}+/pcre
%{_libdir}/%{name}-%{version}+/pcre/*.fas
%{_libdir}/%{name}-%{version}+/pcre/*.lisp
%dir %{_libdir}/%{name}-%{version}+/postgresql
%{_libdir}/%{name}-%{version}+/postgresql/*.fas
%{_libdir}/%{name}-%{version}+/postgresql/*.lisp
%dir %{_libdir}/%{name}-%{version}+/rawsock
%{_libdir}/%{name}-%{version}+/rawsock/*.fas
%{_libdir}/%{name}-%{version}+/rawsock/*.lisp
%dir %{_libdir}/%{name}-%{version}+/zlib
%{_libdir}/%{name}-%{version}+/zlib/*.fas
%{_libdir}/%{name}-%{version}+/zlib/*.lisp
%{_datadir}/emacs/site-lisp/*
%{_datadir}/vim/vimfiles/after/syntax/lisp.vim

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for CLISP
Group:		Development/Other
Requires:	%{name} = %{epoch}:%{version}-%{release}

%description devel
Files necessary for linking CLISP.

%files devel
%attr(0755,root,root) %{_bindir}/clisp-link
%{_libdir}/%{name}-%{version}+/base/*.a
%{_libdir}/%{name}-%{version}+/base/*.o
%{_libdir}/%{name}-%{version}+/base/*.h
%{_libdir}/%{name}-%{version}+/base/makevars
%{_libdir}/%{name}-%{version}+/bindings/glibc/*.o
%{_libdir}/%{name}-%{version}+/bindings/glibc/*.sh
%{_libdir}/%{name}-%{version}+/bindings/glibc/Makefile
%{_libdir}/%{name}-%{version}+/build-aux/*
%{_libdir}/%{name}-%{version}+/clx/new-clx/*.o
%{_libdir}/%{name}-%{version}+/clx/new-clx/*.sh
%{_libdir}/%{name}-%{version}+/clx/new-clx/demos
%{_libdir}/%{name}-%{version}+/clx/new-clx/Makefile
%{_libdir}/%{name}-%{version}+/clx/new-clx/README
%{_libdir}/%{name}-%{version}+/dbus/*.o
%{_libdir}/%{name}-%{version}+/dbus/*.sh
%{_libdir}/%{name}-%{version}+/dbus/Makefile
%{_libdir}/%{name}-%{version}+/fastcgi/*.o
%{_libdir}/%{name}-%{version}+/fastcgi/*.sh
%{_libdir}/%{name}-%{version}+/fastcgi/Makefile
%{_libdir}/%{name}-%{version}+/fastcgi/README
%{_libdir}/%{name}-%{version}+/gdbm/*.o
%{_libdir}/%{name}-%{version}+/gdbm/*.sh
%{_libdir}/%{name}-%{version}+/gdbm/Makefile
%{_libdir}/%{name}-%{version}+/gtk2/*.cfg
%{_libdir}/%{name}-%{version}+/gtk2/*.glade
%{_libdir}/%{name}-%{version}+/gtk2/*.o
%{_libdir}/%{name}-%{version}+/gtk2/*.sh
%{_libdir}/%{name}-%{version}+/gtk2/Makefile
%{_libdir}/%{name}-%{version}+/linkkit
%{_libdir}/%{name}-%{version}+/pcre/*.o
%{_libdir}/%{name}-%{version}+/pcre/*.sh
%{_libdir}/%{name}-%{version}+/pcre/Makefile
%{_libdir}/%{name}-%{version}+/postgresql/*.o
%{_libdir}/%{name}-%{version}+/postgresql/*.sh
%{_libdir}/%{name}-%{version}+/postgresql/Makefile
%{_libdir}/%{name}-%{version}+/postgresql/README
%{_libdir}/%{name}-%{version}+/rawsock/*.o
%{_libdir}/%{name}-%{version}+/rawsock/*.sh
%{_libdir}/%{name}-%{version}+/rawsock/demos
%{_libdir}/%{name}-%{version}+/rawsock/Makefile
%{_libdir}/%{name}-%{version}+/zlib/*.o
%{_libdir}/%{name}-%{version}+/zlib/*.sh
%{_libdir}/%{name}-%{version}+/zlib/Makefile
%{_datadir}/aclocal/clisp.m4

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch1 -p1

%build
#%%ifarch %{armx}
#cp /usr/share/libtool/config/config.* src/build-aux/
#%%endif

ulimit -s 16384
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir} \
	--docdir=%{_docdir}/clisp \
	--fsstnd=redhat \
	--hyperspec=http://www.lispworks.com/documentation/HyperSpec/ \
	--with-module=bindings/glibc \
	--with-module=clx/new-clx \
	--with-module=dbus \
	--with-module=fastcgi \
	--with-module=gdbm \
	--with-module=gtk2 \
	--with-module=i18n \
	--with-module=pcre \
	--with-module=postgresql \
	--with-module=rawsock \
	--with-module=regexp \
	--with-module=syscalls \
	--with-module=zlib \
	--with-readline \
%if %{with_lightning}
	--with-jitc=lightning \
%endif
	--cbcx \
	build CFLAGS="%{optflags}"

#not needed --sbcx (configure, build, check, extracheck) make all needed
#make -C build

%check
#make -C build check

%install
%makeinstall_std  -C build

rm -f %{buildroot}%{_docdir}/clisp/doc/clisp.{dvi,1,ps}
cp -p doc/mop-spec.pdf %{buildroot}%{_docdir}/clisp/doc

find %{buildroot}/%{_libdir} -name '*.so' -exec chmod +x {} \;

%find_lang %{name}
%find_lang %{name}low
cat %{name}low.lang >> %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 705 |21cr|cln-1.3.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++++ Class Library for Numbers
Name:		cln
Version:	1.3.6
Release:	2
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://www.ginac.de/CLN/
Source0:	http://www.ginac.de/CLN/%{name}-%{version}.tar.bz2
BuildRequires:	gmp-devel

%description
CLN is a collection of C++ math classes and functions licensed under
the GPL that provides efficiency, type safety, and algebraic syntax in
a fast, memory-efficient library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++++ Class Library for Numbers
Group:		Sciences/Mathematics
Provides:	%{name} = %{EVRD}
Obsoletes:	%{mklibname cln 4} < 1.2.2

%description -n %{libname}
CLN is a collection of C++ math classes and functions licensed under
the GPL that provides efficiency, type safety, and algebraic syntax in
a fast, memory-efficient library.

%files -n %{libname}
%{_libdir}/libcln.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for programs using the CLN library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{mklibname cln 4 -d} < 1.2.2

%description -n %{devname}
This package is necessary if you wish to develop software that uses
the CLN library.

%files -n %{devname}
%doc ChangeLog NEWS README TODO* documents/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_infodir}/*.info*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%ifarch %{arm}
%make CPPFLAGS="-DNO_ASM"
%else
%make
%endif

%check
%make check

%install
%makeinstall_std

# prepare documents
rm -rf documents
mkdir documents
cp -p examples/*.cc documents/

rm -rf %{buildroot}%{_datadir}/dvi

rm -rf %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_mandir}
rm -rf %{buildroot}%{_datadir}/aclocal

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 706 |21cr|cloc-1.94-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Win32::File\\)
%else
%define _requires_exceptions perl.Win32::File.
%endif

Summary:	Count lines of code
Name:		cloc
Version:	1.94
Release:	1
Group:		Development/Perl
License:	GPLv2 and Artistic
Url:		https://github.com/AlDanial/cloc
Source0:	https://github.com/AlDanial/cloc/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::Diff)
BuildRequires:	perl(Parallel::ForkManager)
BuildRequires:	perl(Pod::Checker)
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Time::HiRes)
Requires:	perl
Requires:	perl(Algorithm::Diff)
Requires:	perl(Parallel::ForkManager) 
Requires:	perl(Regexp::Common)
Requires:	perl(Time::HiRes)

# Stop trying to find the optional Win32::File dep.
%{?perl_default_filter}

%description
A tool to count lines of code in various languages from a given directory.

%files
%doc AUTHORS README NEWS
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#--------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}/Unix

%build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 707 |21cr|closure-compiler-20131014-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Closure Compiler - JavaScript compressor
Name:		closure-compiler
Version:	20131014
Release:	3
License:	Apache License
Group:		Development/Tools
Url:		http://closure-compiler.appspot.com/
# Source0Download: https://code.google.com/p/closure-compiler/downloads/list
Source0:	http://closure-compiler.googlecode.com/files/compiler-%{version}.tar.gz
# Source0-md5:	37e8eb83d3fe271a002f41e7c2d1e2d7
Source1:	%{name}.sh
Source2:	get-source.sh
BuildArch:	noarch

%description
The Closure Compiler is a tool for making JavaScript download and run
faster. It is a true compiler for JavaScript. Instead of compiling
from a source language to machine code, it compiles from JavaScript to
better JavaScript. It parses your JavaScript, analyzes it, removes
dead code and rewrites and minimizes what's left. It also checks
syntax, variable references, and types, and warns about common
JavaScript pitfalls.

%files
%doc README
%{_bindir}/%{name}
%{_javadir}/*.jar

#----------------------------------------------------------------------------

%prep
%setup -qc
chmod 0644 README

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}

# jars
mkdir -p %{buildroot}%{_javadir}
install -m 0644 compiler.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 708 |21cr|cloudcross-1.4.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname CloudCross

Summary:	Syncronization of local files and folders with clouds
Name:		cloudcross
Version:	1.4.8
Release:	2
License:	BSD
Group:		Networking/File transfer
Url:		https://cloudcross.mastersoft24.ru
Source:		https://github.com/MasterSoft24/CloudCross/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)

%description
CloudCross it's opensource software for synchronization of 
local files and folders with various cloud storages.
On this moment CloudCross supports working with Yandex Disk, 
Google Drive, Dropbox, OneDrive and Cloud Mail.ru.
This program was written on pure Qt, without any third-party libraries.
The program works with Qt version 5 and above. 
Qt version 4.x are not supported. 

CloudCross allows you to sync only a portion of the local/remote files 
and folders using black or white lists (.include and .exclude files).
At the same time you have the opportunity to choose which files 
have the advantage - local or remote. 
Thus, you can keep relevance either local files or files on cloud storage.

In addition, CloudCross supports automatic bidirectional conversion 
of documents from MS Office or Open Office format to Google Docs.
Also, you can control the versioning of files synchronized on Google Drive. 

%files
%doc README*
%{_bindir}/ccross
%{_bindir}/ccross-curl

#------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%qmake_qt5
%make

%install

install -D ccross-app/ccross %{buildroot}%{_bindir}/ccross
install -D ccross-curl-executor/ccross-curl %{buildroot}%{_bindir}/ccross-curl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 709 |21cr|cloud-init-22.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Cloud instance init scripts
Name:		cloud-init
Version:	22.2.2
Release:	1
License:	GPLv3
Group:		System/Base
Url:		http://launchpad.net/cloud-init
Source0:	https://launchpad.net/cloud-init/trunk/%{version}/+download/%{name}-%{version}.tar.gz
Source1:        cloud-init-tmpfiles.conf
# From CentOS
Patch0001:	0001-Add-initial-redhat-setup.patch
Patch0002:	0002-Do-not-write-NM_CONTROLLED-no-in-generated-interface.patch
Patch0003:	0003-limit-permissions-on-def_log_file.patch
Patch0004:	0004-sysconfig-Don-t-write-BOOTPROTO-dhcp-for-ipv6-dhcp.patch
#Patch0005:	0005-DataSourceAzure.py-use-hostnamectl-to-set-hostname.patch
Patch0006:	0006-include-NOZEROCONF-yes-in-etc-sysconfig-network.patch
Patch0007:	0007-Remove-race-condition-between-cloud-init-and-Network.patch
# For bz#1957532 - [cloud-init] From RHEL 82+ cloud-init no longer displays sshd keys fingerprints from instance launched from a backup image
Patch10:	ci-rhel-cloud.cfg-remove-ssh_genkeytypes-in-settings.py.patch
BuildRequires:	git
BuildRequires:	systemd-units
BuildRequires:	python3egg(configobj)
BuildRequires:	python3egg(distro)
BuildRequires:	python3egg(httpretty)
BuildRequires:	python3egg(jinja2)
BuildRequires:	python3egg(jsonpatch)
BuildRequires:	python3egg(jsonschema)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(prettytable)
BuildRequires:	python3egg(pyserial)
BuildRequires:	python3egg(pyyaml)
BuildRequires:	python3egg(requests)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
Requires:	dmidecode
Requires:	e2fsprogs
Requires:	iproute2
Requires:	net-tools
Requires:	procps
Requires:	python3-libselinux
Requires:	shadow-utils
Requires:	python3egg(configobj)
Requires:	python3egg(jinja2)
Requires:	python3egg(jsonpatch)
Requires:	python3egg(jsonschema)
Requires:	python3egg(netifaces)
Requires:	python3egg(oauthlib)
Requires:	python3egg(prettytable)
Requires:	python3egg(pyserial)
Requires:	python3egg(pyyaml)
Requires:	python3egg(requests)
Requires:	python3egg(setuptools)
Requires:	python3egg(six)
Requires(post,preun,postun): systemd-units

%description
Cloud-init is a set of init scripts for cloud instances. Cloud instances
need special scripts to run during initialization to retrieve and install
ssh keys and to let the user run various scripts.

%files
%doc ChangeLog rhel/README.rhel
%license LICENSE
%config(noreplace) %{_sysconfdir}/cloud/cloud.cfg
%dir %{_sysconfdir}/cloud/cloud.cfg.d
%config(noreplace) %{_sysconfdir}/cloud/cloud.cfg.d/*.cfg
%doc %{_sysconfdir}/cloud/cloud.cfg.d/README
%dir %{_sysconfdir}/cloud/templates
%config(noreplace) %{_sysconfdir}/cloud/templates/*
%{_defaultdocdir}/%{name}/examples
%{_defaultdocdir}/%{name}/*.txt
%{_unitdir}/cloud-config.service
%{_unitdir}/cloud-config.target
%{_unitdir}/cloud-final.service
%{_unitdir}/cloud-init-local.service
%{_unitdir}/cloud-init.service
%{_unitdir}/cloud-init.target
%{_tmpfilesdir}/%{name}.conf
%{python3_sitelib}/*
%{_prefix}/libexec/%{name}
%{_bindir}/cloud-init*
%{_mandir}/man1/*
%dir %verify(not mode) /run/cloud-init
%dir /var/lib/cloud
/etc/NetworkManager/dispatcher.d/cloud-init-azure-hook
%{_prefix}/lib/udev/rules.d/66-azure-ephemeral.rules
%{_sysconfdir}/bash_completion.d/cloud-init
%{_bindir}/cloud-id
/usr/lib/systemd/system-generators/cloud-init-generator
%dir %{_sysconfdir}/rsyslog.d
%config(noreplace) %{_sysconfdir}/rsyslog.d/21-cloudinit.conf
%{_sysconfdir}/systemd/system/sshd-keygen@.service.d/disable-sshd-keygen-if-cloud-init-active.conf

%post
if [ $1 -eq 1 ] ; then
	# Initial installation
	# Enabled by default per "runs once then goes away" exception
	/bin/systemctl enable cloud-config.service >/dev/null 2>&1 || :
	/bin/systemctl enable cloud-final.service >/dev/null 2>&1 || :
	/bin/systemctl enable cloud-init.service >/dev/null 2>&1 || :
	/bin/systemctl enable cloud-init-local.service >/dev/null 2>&1 || :
	/bin/systemctl enable cloud-init.target >/dev/null 2>&1 || :
elif [ $1 -eq 2 ]; then
	# Upgrade. If the upgrade is from a version older than 0.7.9-8,
	# there will be stale systemd config
	/bin/systemctl is-enabled cloud-config.service >/dev/null 2>&1 &&
		/bin/systemctl reenable cloud-config.service >/dev/null 2>&1 || :

	/bin/systemctl is-enabled cloud-final.service >/dev/null 2>&1 &&
		/bin/systemctl reenable cloud-final.service >/dev/null 2>&1 || :

	/bin/systemctl is-enabled cloud-init.service >/dev/null 2>&1 &&
		/bin/systemctl reenable cloud-init.service >/dev/null 2>&1 || :

	/bin/systemctl is-enabled cloud-init-local.service >/dev/null 2>&1 &&
		/bin/systemctl reenable cloud-init-local.service >/dev/null 2>&1 || :

	/bin/systemctl is-enabled cloud-init.target >/dev/null 2>&1 &&
		/bin/systemctl reenable cloud-init.target >/dev/null 2>&1 || :
fi

%preun
if [ $1 -eq 0 ] ; then
	# Package removal, not upgrade
	/bin/systemctl --no-reload disable cloud-config.service >/dev/null 2>&1 || :
	/bin/systemctl --no-reload disable cloud-final.service >/dev/null 2>&1 || :
	/bin/systemctl --no-reload disable cloud-init.service >/dev/null 2>&1 || :
	/bin/systemctl --no-reload disable cloud-init-local.service >/dev/null 2>&1 || :
	/bin/systemctl --no-reload disable cloud-init.target >/dev/null 2>&1 || :
	# One-shot services -> no need to stop
fi

%postun
%systemd_postun cloud-config.service cloud-config.target cloud-final.service cloud-init.service cloud-init.target cloud-init-local.service

#------------------------------------------------------------------

%prep
%autosetup -p1

# Change shebangs
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' \
	-e 's|#!/usr/bin/python|#!/usr/bin/python3|' tools/* cloudinit/ssh_util.py

%build
%py3_build

%install
%py3_install

python3 tools/render-cloudcfg --variant fedora > %{buildroot}%{_sysconfdir}/cloud/cloud.cfg

sed -i "s,@@PACKAGED_VERSION@@,%{version}-%{release}," %{buildroot}%{python3_sitelib}/cloudinit/version.py

mkdir -p %{buildroot}/var/lib/cloud

# /run/cloud-init needs a tmpfiles.d entry
mkdir -p %{buildroot}/run/cloud-init
mkdir -p %{buildroot}%{_tmpfilesdir}
cp -p %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# We supply our own config file since our software differs from Ubuntu's.
cp -p rhel/cloud.cfg %{buildroot}%{_sysconfdir}/cloud/cloud.cfg

mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d
cp -p tools/21-cloudinit.conf %{buildroot}%{_sysconfdir}/rsyslog.d/21-cloudinit.conf

# Make installed NetworkManager hook name less generic
mv %{buildroot}/etc/NetworkManager/dispatcher.d/hook-network-manager \
	%{buildroot}/etc/NetworkManager/dispatcher.d/cloud-init-azure-hook

# Install our own systemd units (rhbz#1440831)
mkdir -p %{buildroot}%{_unitdir}
cp rhel/systemd/* %{buildroot}%{_unitdir}/

[ ! -d %{buildroot}/usr/lib/systemd/system-generators ] && mkdir -p %{buildroot}/usr/lib/systemd/system-generators
python3 tools/render-cloudcfg --variant rhel systemd/cloud-init-generator.tmpl > %{buildroot}/usr/lib/systemd/system-generators/cloud-init-generator
chmod 755 %{buildroot}/usr/lib/systemd/system-generators/cloud-init-generator

[ ! -d %{buildroot}/usr/lib/%{name} ] && mkdir -p %{buildroot}/usr/lib/%{name}
cp -p tools/ds-identify %{buildroot}%{_prefix}/libexec/%{name}/ds-identify

# installing man pages
mkdir -p ${RPM_BUILD_ROOT}%{_mandir}/man1/
for man in cloud-id.1 cloud-init.1 cloud-init-per.1; do
	install -c -m 0644 doc/man/${man} ${RPM_BUILD_ROOT}%{_mandir}/man1/${man}
	chmod -x ${RPM_BUILD_ROOT}%{_mandir}/man1/*
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 710 |21cr|cloudsend.sh-2.2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bash script to send files and folders to a NextCloud/OwnCloud publicly shared folder
Name:		cloudsend.sh
Version:	2.2.8
Release:	1
License:	AGPLv3
Group:		Archiving/Backup
Url:		https://github.com/tavinus/cloudsend.sh
Source0:	https://github.com/tavinus/cloudsend.sh/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch
Provides:	cloudsend = %{EVRD}
Requires:	bash
Requires:	curl
Requires:	findutils

%description
Bash script that uses curl to send files and folders
to a NextCloud/OwnCloud publicly shared folder.
Can also be used with SberDisk (sberdisk.ru).

%files
%license LICENSE
%doc README.md
%{_bindir}/cloudsend.sh
%{_bindir}/cloudsend

#------------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m0755 cloudsend.sh %{buildroot}%{_bindir}/cloudsend.sh
( cd %{buildroot}%{_bindir} && ln -s cloudsend.sh cloudsend )

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 711 |21cr|cloud-utils-0.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cloud image management utilities
Name:		cloud-utils
Version:	0.31
Release:	1
License:	GPLv3+
Group:		Networking/Other
Url:		https://launchpad.net/ubuntu/+source/cloud-utils
Source:		https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz
Source1:	LICENSE
Patch0:		0001-supress-partx-usage-error.patch
Requires:	%{name}-growpart
Requires:	e2fsprogs
Requires:	file
Requires:	gawk
Requires:	qemu-img
Requires:	util-linux
BuildArch:	noarch

%description
This package provides a useful set of utilities for managing cloud
images.

The euca2ools package (a dependency of cloud-utils) provides an Amazon
EC2 API compatible set of utilities for bundling kernels, ramdisks,
and root filesystems, and uploading them to either EC2 or UEC.

The tasks associated with image bundling are often tedious and
repetitive.  The cloud-utils package provides several scripts
that wrap the complicated tasks with a much simpler interface.

%files
%doc ChangeLog LICENSE
%{_bindir}/cloud-localds
%{_bindir}/cloud-publish-image
%{_bindir}/cloud-publish-tarball
%{_bindir}/ec2metadata
%{_bindir}/mount-image-callback
%{_bindir}/resize-part-image
%{_bindir}/vcs-run
%{_bindir}/write-mime-multipart
%doc %{_mandir}/man1/cloud-localds.1*
%doc %{_mandir}/man1/cloud-publish-image.1*
%doc %{_mandir}/man1/cloud-publish-tarball.1*
%doc %{_mandir}/man1/resize-part-image.1*
%doc %{_mandir}/man1/write-mime-multipart.1*

#----------------------------------------------------------------------------

%package growpart
Summary:	Script for growing a partition
Group:		Networking/Other
Requires:	gawk
# gdisk is only required for resizing GPT partitions and depends on libicu
# (25MB). We don't make this a hard requirement to save some space in non-GPT
# systems.
#Requires:	gdisk
Requires:	util-linux
Conflicts:	%{name} < 0.27

%description growpart
This package provides the growpart script for growing a partition. It is
primarily used in cloud images in conjunction with the dracut-modules-growroot
package to grow the root partition on first boot.

%files growpart
%doc ChangeLog LICENSE
%{_bindir}/growpart
%doc %{_mandir}/man1/growpart.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
cp %{SOURCE1} LICENSE
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

cp bin/* %{buildroot}%{_bindir}/
cp man/* %{buildroot}%{_mandir}/man1/

rm -f %{buildroot}%{_bindir}/*ubuntu*
rm -f %{buildroot}%{_mandir}/man1/cloud-run-instances.1

# Install the growpart binary and man page
cp bin/growpart %{buildroot}%{_bindir}/
cp man/growpart.* %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 712 |21cr|clr-power-tweaks-213-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Power management and performance tweaks from Clear Linux
Name:		clr-power-tweaks
Version:	213
Release:	1
License:	GPLv3
Group:		System/Kernel and hardware
Url:		https://github.com/clearlinux/clr-power-tweaks
Source0:	https://github.com/clearlinux/clr-power-tweaks/archive/%{version}.tar.gz?/clr-power-tweaks-%{version}.tar.gz
# Allow to run and build on non-Intel (AMD, ARM, e2k etc.)
Patch0:		non-intel.patch
# From AUR, fixes: "/usr/share/clear/versionstamp does not exist!"
Patch1:		verify_time.patch
BuildRequires:	glibc-devel
BuildRequires:	pkgconfig(systemd)

%description
This is a utility, authored for the purposes of Clear Linux,
that sets reasonable power management defaults for platform devices.
This is to improve energy efficiency while platform is idle.

%files
%license COPYING
%doc README.md
%{_sbindir}/clr_power
%{_unitdir}/clr-power.service
%{_unitdir}/clr-power.timer
%{_unitdir}/clr-power-rfkill.service
%{_mandir}/man1/clr_power.1*
%{_mandir}/man5/clr-power-tweaks.conf.5*

%post
%systemd_post clr-power.timer
%systemd_post clr-power-rfkill.service

#-----------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# ROSA paths
sed -i -e 's,/usr/bin/,/usr/sbin/,g' *.service
# (mikhailnov) Really weird to set vm.swappiness, remove it
sed -i -e '/vm\/swappiness/d' src/data.h

%build
autoreconf -if
%configure \
	--with-systemdsystemunitdir=%{_unitdir}
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sbindir}
mv -v %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 713 |21cr|clufter-0.77.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# virtual provides:
#   clufter        -> clufter-cli
#   clufter-lib    -> python.+-clufter (any if multiple)
#   python-clufter -> python2-clufter (subject of change)

# https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')

%bcond_with tests

Name:		clufter
Version:	0.77.2
Release:	1
Summary:	Tool/library for transforming/analyzing cluster configuration formats
Group:		System/Base
License:	GPLv2+
URL:		https://pagure.io/%{name}
Source0:	https://pagure.io/clufter/archive/v%{version}/%{name}-v%{version}.tar.gz?/%{name}-%{version}.tar.gz
#Source2:        https://pagure.io/%{name}/raw/v%{version}/f/misc/fix-jing-simplified-rng.xsl
#Source2:	fix-jing-simplified-rng.xsl
#Source3:        https://pagure.io/#{name}/raw/v#{version}/f/misc/pacemaker-borrow-schemas
#Source3:        https://pagure.io/%{name}/raw/50377b47601b88381537fa13ab466fe2cb37c56a/f/misc/pacemaker-borrow-schemas
#Source3:	pacemaker-borrow-schemas
#Source10:       https://people.redhat.com/jpokorny/pkgs/%{name}/%{name}-%{version}.tar.gz.asc

#jing generated files, for remove BR jing
Source2:	pacemaker-1.3.rng
Source3:	pacemaker-2.0.rng
Source4:	pacemaker-2.10.rng
Source5:	pacemaker-3.0.rng
Source6:	pacemaker-3.3.rng

#Source10:	%{name}-%{version}.tar.gz.asc
# publicly stated signature key rollover policy:
# https://lists.clusterlabs.org/pipermail/users/2019-August/026234.html
#Source11:       https://people.redhat.com/jpokorny/pkgs/%{name}/%{name}-2019-08-15-5CD7F9EF.keyring
#Source11:	%{name}-2019-08-15-5CD7F9EF.keyring

Patch0:         compat-Python-3.9-no-longer-offers-collections.Mutable-ABCs.patch
Patch1:         compat-Python-3.9-no-longer-raises-ValueError-at-some-bound.patch
Patch2:         plugin_registry-fix-a-problem-with-native-plugins-missing.patch

BuildRequires:  git-core
BuildRequires:  gnupg2

# Python 3 related
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(lxml)
BuildRequires:  python3egg(distro)

BuildRequires:  pkgconfig(libxml-2.0)

# schemadir path pointer (former since pacemaker 2.0.3)
BuildRequires:  pkgconfig(pacemaker-schemas)

# needed to squash multi-file schemas to single file
#BuildRequires:  jing

# needed for xsltproc and xmllint respectively
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(libxml-2.0)


%description
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.


#-----------------------------------------------------------------------------
%package cli
Summary:        Tool for transforming/analyzing cluster configuration formats
Provides:       %{name} = %{version}-%{release}

BuildRequires:  bash-completion

BuildRequires:  help2man

# following for pkg_resources module
Requires:       python3-setuptools
Requires:       python3-%{name} = %{EVRD}
Requires:       %{_bindir}/nano
BuildArch:      noarch

%description cli
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.

This package contains %{name} command-line interface for the underlying
library (packaged as python3-%{name}).

%files cli -f .bashcomp-files
%{_mandir}/man1/*.1*
%{_bindir}/%{name}

%post cli
if [ $1 -gt 1 ]; then  # no gain regenerating it w/ fresh install (same result)
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
%{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
fi

#-----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:        Library for transforming/analyzing cluster configuration formats
License:        GPLv2+ and GFDL

Provides:       %{name}-lib = %{version}-%{release}
Obsoletes:      python-%{name} < %{version}-%{release}
Obsoletes:      python2-%{name} < %{version}-%{release}
Requires:       %{name}-bin = %{version}-%{release}
BuildArch:      noarch

%description -n python3-%{name}
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.

This package contains %{name} library including built-in plugins.

%files -n python3-%{name}
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-*.egg-info

#-----------------------------------------------------------------------------

%package bin
Summary:        Common internal compiled files for %{name}
License:        GPLv2+

Requires:       %{name}-common = %{EVRD}

%description bin
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.

This package contains internal, arch-specific files for %{name}.

%files bin
%{_libexecdir}/%{name}-%{version}

#-----------------------------------------------------------------------------

%package common
Summary:        Common internal data files for %{name}
License:        GPLv2+
BuildArch:      noarch

%description common
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.

This package contains internal, arch-agnostic files for %{name}.

%files common
%{_datadir}/cluster
%{_datarootdir}/%{name}
%dir %{_defaultdocdir}/%{name}-%{version}
%{_defaultdocdir}/%{name}-%{version}/*[^[:digit:]]
%license %{_defaultdocdir}/%{name}-%{version}/*[[:digit:]].txt

#-----------------------------------------------------------------------------

%package lib-general
Summary:        Extra %{name} plugins usable for/as generic/auxiliary products
Requires:       %{name}-lib = %{EVRD}
BuildArch:      noarch

%description lib-general
This package contains set of additional plugins targeting variety of generic
formats often serving as a byproducts in the intermediate steps of the overall
process arrangement: either experimental commands or internally unused,
reusable formats and filters.

%files lib-general
%{_datarootdir}/%{name}/ext-plugins/lib-general

%post lib-general
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
# if the completion file is not present, suppose it is not desired
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :


#-----------------------------------------------------------------------------

%package lib-ccs
Summary:        Extra plugins for transforming/analyzing CMAN configuration
Requires:       %{name}-lib-general = %{EVRD}
BuildArch:      noarch

%description lib-ccs
This package contains set of additional plugins targeting CMAN cluster
configuration: either experimental commands or internally unused, reusable
formats and filters.

%files lib-ccs
%{_datarootdir}/%{name}/ext-plugins/lib-ccs

%post lib-ccs
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
# if the completion file is not present, suppose it is not desired
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :

#-----------------------------------------------------------------------------

%package lib-pcs
Summary:        Extra plugins for transforming/analyzing Pacemaker configuration
Requires:       %{name}-lib-general = %{EVRD}
BuildArch:      noarch

%description lib-pcs
This package contains set of additional plugins targeting Pacemaker cluster
configuration: either experimental commands or internally unused, reusable
formats and filters.

%files lib-pcs
%{_datarootdir}/%{name}/ext-plugins/lib-pcs

%post lib-pcs
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
# if the completion file is not present, suppose it is not desired
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-v%{version}
%autopatch -p1


## for some esoteric reason, the line above has to be empty
%{__python3} setup.py saveopts -f setup.cfg pkg_prepare \
                      --ccs-flatten='%{_libexecdir}/%{name}-%{version}/ccs_flatten' \
                      --editor='%{_bindir}/nano' \
                      --extplugins-shared='%{_datarootdir}/%{name}/ext-plugins' \
                      --ra-metadata-dir='%{_datadir}/cluster' \
                      --ra-metadata-ext='metadata' \
                      --shell-posix='%(which sh 2>/dev/null || echo /bin/SHELL-POSIX)' \
                      --shell-bashlike='%(which bash 2>/dev/null || echo /bin/SHELL-BASHLIKE)'
%{__python3} setup.py saveopts -f setup.cfg pkg_prepare \
  --report-bugs='https://bugzilla.rosalinux.ru/'

%build
# see https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale;
# specifically:
#   File "setup.py", line 466, in _pkg_prepare_file
#     content = fr.read()
#   File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
#     return codecs.ascii_decode(input, self.errors)[0]
# UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 221: ordinal not in range(128)
export LC_ALL=C.UTF-8 LANG=C.UTF-8
%py3_build

%{__python3} -I ./run-dev --skip-ext --completion-bash 2>/dev/null \
  | sed 's|run[-_]dev|%{name}|g' > .bashcomp
# generate man pages (proper commands and aliases from a sorted sequence)
%{__mkdir_p} -- .manpages/man1
{ echo; %{__python3} -I ./run-dev -l | sed -n 's|^  \(\S\+\).*|\1|p' \
  | sort; } > .subcmds
sed -e 's:\(.\+\):\\\&\\fIrun_dev-\1\\fR\\\|(1), :' \
  -e '1s|\(.*\)|\[SEE ALSO\]\n|' \
  -e '$s|\(.*\)|\1\nand perhaps more|' \
  .subcmds > .see-also
help2man -N -h -H -i .see-also \
  -n "$(sed -n '2s|[^(]\+(\([^)]\+\))|\1|p' README)" \
  '%{__python3} -I ./run-dev' | sed 's|run\\\?[-_]dev|%{name}|g' \
  > ".manpages/man1/%{name}.1"
while read cmd; do
  [ -n "${cmd}" ] || continue
  echo -e "#\!/bin/sh\n{ [ \$# -ge 1 ] && [ \"\$1\" = \"--version\" ] \
  && %{__python3} -I ./run-dev \"\$@\" \
  || %{__python3} -I ./run-dev \"${cmd}\" \"\$@\"; }" > ".tmp-${cmd}"
  chmod +x ".tmp-${cmd}"
  grep -v "^${cmd}\$" .subcmds \
    | grep -e '^$' -e "$(echo ${cmd} | cut -d- -f1)\(-\|\$\)" \
    | sed -e 's:\(.\+\):\\\&\\fIrun_dev-\1\\fR\\\|(1), :' \
      -e '1s|\(.*\)|\[SEE ALSO\]\n\\\&\\fIrun_dev\\fR\\\|(1), \n|' \
      -e '$s|\(.*\)|\1\nand perhaps more|' > .see-also
  # XXX uses ";;&" bashism
  case "${cmd}" in
  ccs[2-]*)
    sed -i \
      '1s:\(.*\):\1\n\\\&\\fIcluster.conf\\fR\\\|(5), \\\&\\fIccs\\fR\\\|(7), :' \
    .see-also
    ;;&
  ccs2pcs*)
    sed -i \
      '1s:\(.*\):\1\n\\\&\\fI%{_defaultdocdir}/%{name}-%{version}/rgmanager-pacemaker\\fR\\\|, :' \
    .see-also
    ;;&
  *[2-]pcscmd*)
    sed -i '1s:\(.*\):\1\n\\\&\\fIpcs\\fR\\\|(8), :' .see-also
    ;;&
  esac
  help2man -N -h -H -i .see-also -n "${cmd}" "./.tmp-${cmd}" \
    | sed 's|run\\\?[-_]dev|%{name}|g' \
  > ".manpages/man1/%{name}-${cmd}.1"
done < .subcmds

#generate files with jing
#OUTPUTDIR=.schemas POSTPROCESS="%{SOURCE2}" sh "%{SOURCE3}" --clobber


%install
# see build section
export LC_ALL=C.UTF-8 LANG=C.UTF-8
%py3_install

# following is needed due to umask 022 not taking effect(?) leading to 775
%{__chmod} -- g-w '%{buildroot}%{_libexecdir}/%{name}-%{version}/ccs_flatten'
# %%{_bindir}/%%{name} should have been created
test -f '%{buildroot}%{_bindir}/%{name}' \
  || %{__install} -D -pm 644 -- '%{buildroot}%{_bindir}/%{name}' \
                                '%{buildroot}%{_bindir}/%{name}'

# move data files from python-specific locations to a single common one
# and possibly symlink that back
%{__mkdir_p} -- '%{buildroot}%{_datarootdir}/%{name}/formats'
for format in cib corosync; do
  %{__cp} -a -t '%{buildroot}%{_datarootdir}/%{name}/formats' \
          -- "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}"
  %{__rm} -f -- "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}"/*
  ln -s -t "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}" \
     -- $(pushd "%{buildroot}%{_datarootdir}/%{name}/formats/${format}" >/dev/null; \
          ls -1A | sed "s:.*:%{_datarootdir}/%{name}/formats/${format}/\\0:")
done

# move ext-plugins from python-specific locations to a single common one
# incl. the different sorts of precompiled bytecodes
%{__mkdir_p} -- '%{buildroot}%{_datarootdir}/%{name}/ext-plugins'
%{__cp} -af -t '%{buildroot}%{_datarootdir}/%{name}/ext-plugins' \
        -- '%{buildroot}%{python3_sitelib}/%{name}'/ext-plugins/*
%{__rm} -rf -- '%{buildroot}%{python3_sitelib}/%{name}'/ext-plugins/*/

declare bashcompdir="$(pkg-config --variable=completionsdir bash-completion \
                       || echo '%{_datadir}/bash-completion/completions')"
declare bashcomp="${bashcompdir}/%{name}"
%{__install} -D -pm 644 -- \
  .bashcomp '%{buildroot}%{_sysconfdir}/%{name}/bash-completion'
%{__mkdir_p} -- "%{buildroot}${bashcompdir}"
ln -s '%{_sysconfdir}/%{name}/bash-completion' "%{buildroot}${bashcomp}"
# own %%{_datadir}/bash-completion in case of ...bash-completion/completions,
# more generally any path up to any of /, /usr, /usr/share, /etc
while true; do
  test "$(dirname "${bashcompdir}")" != "/" \
  && test "$(dirname "${bashcompdir}")" != "%{_prefix}" \
  && test "$(dirname "${bashcompdir}")" != "%{_datadir}" \
  && test "$(dirname "${bashcompdir}")" != "%{_sysconfdir}" \
  || break
  bashcompdir="$(dirname "${bashcompdir}")"
done
cat >.bashcomp-files <<-EOF
	${bashcompdir}
	%dir %{_sysconfdir}/%{name}
	%verify(not size md5 mtime) %{_sysconfdir}/%{name}/bash-completion
EOF
%{__mkdir_p} -- '%{buildroot}%{_mandir}'
%{__cp} -a -t '%{buildroot}%{_mandir}' -- .manpages/*
%{__mkdir_p} -- '%{buildroot}%{_defaultdocdir}/%{name}-%{version}'
%{__cp} -a -t '%{buildroot}%{_defaultdocdir}/%{name}-%{version}' \
           -- doc/*.txt doc/rgmanager-pacemaker

cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{buildroot}%{_datarootdir}/%{name}/formats/cib

%if %{with tests}
%check
# just a basic sanity check
# we need to massage RA metadata files and PATH so the local run works
# XXX we could also inject buildroot's site_packages dir to PYTHONPATH
declare ret=0 \
        ccs_flatten_dir="$(dirname '%{buildroot}%{_libexecdir}/%{name}-%{version}/ccs_flatten')"
ln -s '%{buildroot}%{_datadir}/cluster'/*.'metadata' \
      "${ccs_flatten_dir}"
# see build section
export LC_ALL=C.UTF-8 LANG=C.UTF-8
PATH="${PATH:+${PATH}:}${ccs_flatten_dir}" PYTHONEXEC="%{__python3} -I" ./run-tests
ret=$?
%{__rm} -f -- "${ccs_flatten_dir}"/*.'metadata'
[ ${ret} -eq 0 ] || exit ${ret}
%endif
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 714 |21cr|clusterssh-4.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname App-ClusterSSH

%bcond_with tests

Summary:	Secure concurrent multi-server terminal control
Name:		clusterssh
Version:	4.16
Release:	1
License:	GPLv2+
Group:		Shells
Url:		https://github.com/duncs/clusterssh
Source0:	https://cpan.metacpan.org/authors/id/D/DU/DUNCS/%{modname}-%{version}.tar.gz
Buildrequires:	perl-devel
BuildRequires:	perl(Net::Domain)
Buildrequires:	perl(Exception::Class)
Buildrequires:	perl(Module::Build)
Buildrequires:	perl(Tk)
Buildrequires:	perl(Try::Tiny)
Buildrequires:	perl(X11::Protocol)
Buildrequires:	perl(X11::Protocol::WM)
# For tests
%if %{with tests}
Buildrequires:	perl(File::Which)
Buildrequires:	perl(Readonly)
Buildrequires:	perl(Test::Differences)
Buildrequires:	perl(Test::Trap)
%endif
Requires:	xterm
BuildArch:	noarch

%description
Control multiple terminals open on different servers to perform administration
tasks, for example multiple hosts requiring the same config within a cluster.
Not limited to use with clusters, however.

%files
%doc AUTHORS Changes THANKS TODO
%{_bindir}/ccon
%{_bindir}/crsh
%{_bindir}/csftp
%{_bindir}/cssh
%{_bindir}/ctel
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_datadir}/bash-completion/completions/clusterssh
%{perl_vendorlib}/App/ClusterSSH.pm
%dir %{perl_vendorlib}/App/ClusterSSH/
%{perl_vendorlib}/App/ClusterSSH/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{modname}-%{version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0

find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
mv %{buildroot}%{_bindir}/clusterssh_bash_completion.dist \
	%{buildroot}%{_datadir}/bash-completion/completions/clusterssh
chmod 644 %{buildroot}%{_datadir}/bash-completion/completions/clusterssh

%if %{with tests}
%check
./Build test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 715 |21cr|clutter-gesture-0.0.2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api	0.0.2
%define major		0
%define libname		%mklibname %{name} %{api} %{major}
%define develname	%mklibname %{name} %{api} -d

Name:		clutter-gesture
Version:	0.0.2.1
Release:	7
Summary:	Gesture Library for Clutter
Group:		System/Libraries
License:	LGPLv2+ and MIT
URL:		http://maemo.org/packages/view/clutter-gesture/
Source0:	http://git.moblin.org/cgit.cgi/%{name}/snapshot/%{name}-%{version}.tar.bz2
Patch1:		clutter-gesture-0.0.2-build.patch

BuildRequires:	pkgconfig(clutter-x11-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gl)

%description
This library allows clutter applications to be aware of gestures 
and to easily attach some handlers to the gesture events. The library 
supports both single and multi touch.

%package -n %{libname}
Summary:	Gesture Library for Clutter
Group:		System/Libraries

%description -n %{libname}
This library allows clutter applications to be aware of gestures
and to easily attach some handlers to the gesture events. The library
supports both single and multi touch.

%package -n %{develname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
Files for development with %{name}.

%prep
%setup -q
%apply_patches

# don't treat warnings as errors
sed -i -e 's,-Werror,,g' configure.ac

# The NEWS file contains the license so use it as a COPYING file. Upstream has been contacted to resolve the issue
cp NEWS COPYING

%build
autoreconf -vfi
%configure \
	--disable-static

%make LIBS=-lm CFLAGS+="-DGLIB_DISABLE_DEPRECATION_WARNINGS -DCLUTTER_DISABLE_DEPRECATION_WARNINGS" V=1
%install
rm -rf %{buildroot}
%makeinstall_std

#Remove libtool archives.
find %{buildroot} -name '*.la' -exec rm -f {} ';'

%files -n %{libname}
%doc COPYING
%{_libdir}/libcluttergesture-%{api}.so.%{major}*
%{_libdir}/libengine.so.%{major}*

%files -n %{develname}
%{_libdir}/libcluttergesture-%{api}.so
%{_libdir}/libengine.so
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 716 |21cr|clutter-gst-1.6.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define clutterapi 1.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} %{api} -d

%define gstapi 0.10
%define gstname gstreamer%{gstapi}-gstclutter

Summary:	GST video texture actor and audio player object for Clutter
Name:		clutter-gst
Version:	1.6.0
Release:	10
License:	LGPLv2+
Group:		Graphics
Url:		http://clutter-project.org/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
Patch0:		clutter-gst-1.6.0-needless-glint.patch
BuildRequires:	docbook-dtd412-xml
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(clutter-1.0) >= 1.6.14
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 1.36.0
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{gstapi})

%description
An integration library for using GStreamer with Clutter.
GST video texture actor and audio player object.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GST video texture actor and audio player object for Clutter
Group:		System/Libraries
Requires:	gstreamer0.10-plugins-base
Requires:	%{girname} = %{EVRD}
Requires:	%{gstname} = %{EVRD}

%description -n %{libname}
An integration library for using GStreamer with Clutter.
GST video texture actor and audio player object.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}clutter-gst1.0_0 < 1.6.0-3

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/ClutterGst-%{clutterapi}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers/libraries for %{name}
Group:		Development/X11
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development headers/libraries for %{name}.
(see %{libname} package)

%files -n %{devname}
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/clutter-%{clutterapi}/%{name}
%{_includedir}/clutter-%{clutterapi}/%{name}/*.h
%{_datadir}/gir-1.0/ClutterGst-%{clutterapi}.gir

#----------------------------------------------------------------------------

%package -n %{gstname}
Summary:	Gstreamer plugin for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}clutter-gst1.0_0 < 1.6.0-3

%description -n %{gstname}
Standalone gstreamer plugin for %{name}.

%files -n %{gstname}
%{_libdir}/gstreamer-%{gstapi}/libgstclutter.so

#----------------------------------------------------------------------------

%package doc
Summary:	API reference for clutter-gst
Group:		Development/Other

%description doc
Documentation for Clutter-Gst.

%files doc
%dir %{_datadir}/gtk-doc/html/%{name}
%doc %{_datadir}/gtk-doc/html/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
gtkdocize
autoreconf
%configure \
	--disable-static \
	--enable-gtk-doc \
	--enable-introspection
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 717 |21cr|clutter-gtk-1.8.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} %{api} -d

Summary:	GTK Support for Clutter
Name:		clutter-gtk
Version:	1.8.4
Release:	9
License:	LGPLv2+
Group:		Graphics
Url:		https://download.gnome.org/sources/clutter-gtk
Source0:	https://download.gnome.org/sources/clutter-gtk/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	docbook-dtd412-xml
#gw for Gtk-2.0.gir
BuildRequires:	gir-repository
BuildRequires:	gtk-doc
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(clutter-%{api})
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)

%description
A library providing facilities to integrate Clutter into GTK+
applications. It provides a GTK+ widget, GtkClutterEmbed, for embedding the
default ClutterStage into any GtkContainer.

Because of limitations inside Clutter, it is only possible to embed a single
ClutterStage.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GTK Support for Clutter
Group:		System/Libraries

%description -n %{libname}
A library providing facilities to integrate Clutter into GTK+
applications. It provides a GTK+ widget, GtkClutterEmbed, for embedding the
default ClutterStage into any GtkContainer.

Because of limitations inside Clutter, it is only possible to embed a single
ClutterStage.

%files -n %{libname} -f cluttergtk-%{api}.lang
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}clutter-gtk1.0_0 < 1.5.2-3

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkClutter-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers/libraries for %{name}
Group:		Development/X11
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Development headers/libraries for %{name}.

%files -n %{devname}
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_datadir}/gir-1.0/GtkClutter-%{api}.gir
%dir %{_datadir}/gtk-doc/html/%{name}-%{api}
%doc %{_datadir}/gtk-doc/html/%{name}-%{api}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --enable-gtk-doc
%make

%install
%makeinstall

%find_lang cluttergtk-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 718 |21cr|clutter-imcontext-0.1.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 0.1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Port of GTK IMContext to Clutter
Name:		clutter-imcontext
Version:	0.1.4
Release:	9
License:	LGPLv2+
Group:		Graphics
Url:		http://www.clutter-project.org
Source0:	http://git.moblin.org/cgit.cgi/%{name}/snapshot/%{name}-%{version}.tar.bz2
BuildRequires:	gir-repository
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
Port of GTK IMContext to Clutter.

%files
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Port of GTK IMContext to Clutter
Group:		System/Libraries
Conflicts:	%{_lib}clutter-imcontext0 < 0.1.4-5
Obsoletes:	%{_lib}clutter-imcontext0 < 0.1.4-5

%description -n %{libname}
Port of GTK IMContext to Clutter.

%files -n %{libname}
%{_libdir}/libclutter-imcontext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/%{name}-%{api}/%{name}/*
%{_libdir}/pkgconfig/clutter-imcontext-%{api}.pc
%{_libdir}/libclutter-imcontext-%{api}.so
%dir %{_datadir}/gtk-doc/html/%{name}
%{_datadir}/gtk-doc/html/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
perl -pi -e 's,^./configure.*,,' ./autogen.sh

%build
./autogen.sh
%configure \
	--disable-static \
	--enable-gtk-doc
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_datadir}/doc/%{name}-%{version}
for f in `ls %{buildroot}/%{_datadir}/doc/`; do
  if [ -f %{buildroot}/%{_datadir}/doc/$f ]; then
    mv %{buildroot}/%{_datadir}/doc/$f %{buildroot}/%{_datadir}/doc/%{name}-%{version}
  fi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 719 |21cr|cm-0.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libmajor 0
%define libname	%mklibname %{name} %{libmajor}
%define devname	%mklibname %{name} -d

Summary:	Ring class fields of imaginary quadratic number fields and of elliptic curves
Name:		cm
Version:	0.4.0
Release:	2
License:	GPLv2+
Group:		System/Libraries
URL:		http://www.multiprecision.org/%{name}
Source0:	https://gitlab.inria.fr/enge/cm/-/archive/%{version}/cm-%{version}.tar.gz
BuildRequires:	gmp-devel >= 4.3.2
BuildRequires:	mpfr-devel >= 2.4.2
BuildRequires:	libmpc-devel >= 1.0
BuildRequires:	libmpfrcx-devel >= 0.6.3
BuildRequires:	libpari-devel >= 2.11
BuildRequires:	texinfo
BuildRequires:	ntl-devel
BuildRequires:	zlib-devel

%description
The CM software implements the construction of ring class fields of
imaginary quadratic number fields and of elliptic curves with complex
multiplication via floating point approximations. It consists of libraries
that can be called from within a C program and of executable command line
applications. For the implemented algorithms, see A. Enge, The complexity
of class polynomial computation via floating point approximations,
Mathematics of Computation 78 (266), 2009, pp. 1089-1107.

%files
%{_bindir}/classpol
%{_bindir}/cm
%{_bindir}/ecpp
%{_datadir}/%{name}
#------------------------------------------------------------------------
%package	-n %{libname}
Summary:	Arithmetic of complex numbers with arbitrarily high precision
Group:		System/Libraries

%description	-n %{libname}
The CM software implements the construction of ring class fields of
imaginary quadratic number fields and of elliptic curves with complex
multiplication via floating point approximations. It consists of libraries
that can be called from within a C program and of executable command line
applications. For the implemented algorithms, see A. Enge, The complexity
of class polynomial computation via floating point approximations,
Mathematics of Computation 78 (266), 2009, pp. 1089-1107.

%files -n %{libname}
%{_libdir}/lib*.so.%{libmajor}*

#------------------------------------------------------------------------
%package	-n %{devname}
Summary:	Development headers and libraries for CM
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description	-n %{devname}
Development headers and libraries for CM.

%files -n %{devname}
%{_includedir}/*.h
%{_infodir}/cm.info*
%{_libdir}/lib*.so

#------------------------------------------------------------------------
%prep
%setup -q

%build
autoreconf -if
%configure			\
	--enable-shared		\
	--disable-static

%make

%install
%makeinstall_std

%check
# i dont know why test fail on x32 arch
%ifnarch %{ix86}
make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 720 |21cr|cm256cc-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

%global optflags %{optflags} -O3

Name:		cm256cc
Version:	1.1.0
Release:	1
Summary:	Fast GF(256) Cauchy MDS Block Erasure Codec in C++
License:	BSD-2-Clause
Group:		Communications
URL:		https://github.com/f4exb/cm256cc
Source:		https://github.com/f4exb/cm256cc/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	ninja

%description
This is the rewrite in (as much as possible) clean C++ of cm256.
cm256cc is a simple library for erasure codes. From given data it
generates redundant data that can be used to recover the originals.

%package -n %{libname}
Summary:	Fast GF(256) Cauchy MDS Block Erasure Codec in C++
Group:		System/Libraries

%description -n %{libname}
This is the rewrite in (as much as possible) clean C++ of cm256.
cm256cc is a simple library for erasure codes. From given data it
generates redundant data that can be used to recover the originals.

%package -n %{devname}
Summary:	Development files for the cm256cc library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This is the rewrite in (as much as possible) clean C++ of cm256.
cm256cc is a simple library for erasure codes. From given data it
generates redundant data that can be used to recover the originals.

This subpackage contains libraries and header files for developing
applications that want to make use of libcm256cc.

%package doc
Summary:	Documentation for cm256cc

%description doc
Documentation for cm256cc.

%prep
%autosetup -p1
%cmake -G Ninja

%build
%ninja_build -C build

%install
%ninja_install -C build

%files
%{_bindir}/cm256_rx
%{_bindir}/cm256_test
%{_bindir}/cm256_tx

%files -n %{libname}
%{_libdir}/libcm256cc.so.%{major}*

%files -n %{devname}
%{_includedir}/cm256cc
%{_libdir}/libcm256cc.so
%{_libdir}/pkgconfig/libcm256cc.pc

%files doc
%doc README.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 721 |21cr|cmatrix-1.2a-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################################################
# SpecFile: cmatrix.spec
# Generato: http://www.mandrivausers.ro/
# MRB-Falticska Florin
#####################################################

Summary:	CMatrix simulates the display from "The Matrix"
Name:		cmatrix
Version:	1.2a
Release:	4
License:	GPLv2+
Group:		Terminals
Url:		http://www.asty.org/cmatrix/
Source0:	http://www.asty.org/cmatrix/dist/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(xfont)
Requires:	ncurses
Requires(pre):	x11-server-common

%description
CMatrix is based on the screensaver from The Matrix website. It works
with terminal settings up to 132x300 and can scroll lines all at the same
rate or asynchronously and at a user-defined speed.

%files
%doc README COPYING ChangeLog AUTHORS NEWS TODO
%{_bindir}/cmatrix
%{_prefix}/lib/kbd/consolefonts/matrix.psf.gz
%{_prefix}/lib/kbd/consolefonts/matrix.fnt
%{_prefix}/X11R6/lib/X11/fonts/misc/mtx.pcf

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
./configure --prefix=%{_prefix}
%make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_prefix}/lib/kbd/consolefonts
install -d -m 755 %{buildroot}%{_prefix}/X11R6/lib/X11/fonts/misc
install -d -m 755 %{buildroot}%{_prefix}/X11R6/lib/X11/fonts/misc
install -d -m 755 %{buildroot}%{_mandir}

install -m 755 cmatrix %{buildroot}%{_bindir}/
install -m 644 matrix.fnt %{buildroot}%{_prefix}/lib/kbd/consolefonts
install -m 644 matrix.psf.gz %{buildroot}%{_prefix}/lib/kbd/consolefonts
install -m 644 mtx.pcf %{buildroot}%{_prefix}/X11R6/lib/X11/fonts/misc
install -m 644 mtx.pcf %{buildroot}%{_prefix}/X11R6/lib/X11/fonts/misc/mtx.pcf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 722 |21cr|cmdftp-0.9.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cmdftp
Version:	0.9.8
Release:	4
Summary:	A command line shell-like FTP client
Source:		http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
URL:		http://www.nongnu.org/cmdftp/
Group:		Networking/File transfer
License:	GPLv3

%description
cmdftp is a command line FTP client for Unix under GPL.

Features include passive mode for all data transfers, shell like
transparent syntax for local and remote modes, multiple and recursive
file transfers using wild-cards, recursive copy and move commands, remote
and local text file viewing and editing, network errors detection and
resuming of currently executing command, partial download resuming (if
server accepts REST command), tab completion for both local and remote
names, auto-login using classic ~/.netrc approach, large file support.

cmdftp is aimed at being small and simple. 

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 723 |21cr|cmmusic-1.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Console Mplayer Music
Name:		cmmusic
Version:	1.6
Release:	4
License:	GPLv2+
Group:		Sound
Source0:	http://downloads.sourceforge.net/cmmusic/%{name}-%{version}.tar.gz
Source1:	http://downloads.sourceforge.net/cmmusic/%{name}-plugin-%{version}.tar.gz
Patch0:		cmmusic-1.6-gcc43.patch
Patch1:		cmmusic-1.6-fix-format-string-error.patch
URL:		http://cmmusic.sourceforge.net/
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	desktop-file-utils
Requires:	mplayer
%rename		%{name}-gtk

%description
A front looks like xmms of mplayer which base on console user interface for
Linux. It may include control, list or event lirc panel and supports keyboard
and mouse.


%prep
%setup -qc -n %{name}-%{version}
#tar xfz %%{name}-%%{version}.tar.gz
tar xfz %{SOURCE1}
#tar xfz %%{name}-plugin-gtk-%%{version}.tar.gz

# Fix wron executable perms
find %{name}-%{version} -name "*.cpp" -exec chmod a-x {} \;
find %{name}-%{version} -name "*.c" -exec chmod a-x {} \;
find %{name}-%{version} -name "*.h" -exec chmod a-x {} \;
find %{name}-plugin-%{version} -name "*.cpp" -exec chmod a-x {} \;
find %{name}-plugin-%{version} -name "*.c" -exec chmod a-x {} \;
find %{name}-plugin-%{version} -name "*.h" -exec chmod a-x {} \;
chmod -x %{name}-%{version}/{COPYING,ChangeLog,README}

pushd %{name}-plugin-%{version}
%patch0 -p1
popd
%patch1 -p1


%build
pushd %{name}-%{version}
%configure
%make
popd

pushd %{name}-plugin-%{version}
%configure
%make
popd


%install
pushd %{name}-%{version}
%makeinstall_std
popd

pushd %{name}-plugin-%{version}
%makeinstall_std
popd

# Fix the .desktop file
desktop-file-install	--remove-key=Encoding \
			--set-key=Icon --set-value=%{name} \
			%{buildroot}%{_datadir}/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

chmod +x %{buildroot}%{_datadir}/%{name}/plugins/{baidump3,cuelist,shell,ttplrc}.sh


%files
%doc %{name}-%{version}/{COPYING,ChangeLog,README}
%{_bindir}/%{name}
%{_bindir}/cmmusicx
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 724 |21cr|cmpc-driver-dkms-0.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Driver for Classmate PC
Name:		cmpc-driver-dkms
Version:	0.1.2
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://github.com/HuayraLinux/classmate-laptop-dkms
Source0:	classmate_laptop-%{version}.tar.gz
Requires:	dkms
Requires:	kernel-devel
Requires(post):	dkms
Provides:	classmate-laptop = %{EVRD}
BuildArch:	noarch

%description
This is fixed Classmate PC driver for 4th generation too.
Use with dkms.

%files
/usr/src/classmate_laptop-%{version}/*

%post
dkms --rpm_safe_upgrade add -m classmate_laptop -v %{version}
dkms --rpm_safe_upgrade build -m classmate_laptop -v %{version}
dkms --rpm_safe_upgrade install -m classmate_laptop -v %{version} --force

# rmmod any old driver if present and not in use (e.g. by X)
rmmod classmate_laptop > /dev/null 2>&1 || true

%preun
dkms --rpm_safe_upgrade remove -m classmate_laptop -v %{version} --all

# rmmod any old driver if present and not in use (e.g. by X)
rmmod classmate_laptop > /dev/null 2>&1 || true

#----------------------------------------------------------------------------

%prep
%setup -q -n classmate_laptop-%{version}

%build

%install
mkdir -p %{buildroot}/usr/src/classmate_laptop-%{version}/
cp -f * %{buildroot}/usr/src/classmate_laptop-%{version}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 725 |21cr|cmph-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cmph %{major}
%define devname %mklibname cmph -d

Summary:	C Minimal Perfect Hashing Library
Name:		cmph
Version:	2.0
Release:	6
License:	LGPL
Group:		System/Libraries
Url:		http://cmph.sourceforge.net/
Source0:	https://sourceforge.net/projects/cmph/files/cmph/%{name}-%{version}.tar.gz
Patch0:		cmph-2.0-no_examples.diff
Patch1:		cmph-2.0-no_-Werror.diff

%description
C Minimal Perfect Hashing Library is a portable LGPL library to create and to
work with minimal perfect hashing functions. The library encapsulates the
newest and more efficient algorithms available in the literature in an
easy-to-use, production-quality, fast API. The library is designed to work with
big entries that cannot fit in the main memory. It has been used successfully
for constructing minimal perfect hashing functions for sets with billions of
keys.

This package contains the cmph command line tool to generate and query minimal
perfect hash functions.

%files
%{_bindir}/cmph
%{_mandir}/man1/cmph.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C Minimal Perfect Hashing Library
Group:		System/Libraries

%description -n	%{libname}
C Minimal Perfect Hashing Library is a portable LGPL library to create and to
work with minimal perfect hashing functions. The library encapsulates the
newest and more efficient algorithms available in the literature in an
easy-to-use, production-quality, fast API. The library is designed to work with
big entries that cannot fit in the main memory. It has been used successfully
for constructing minimal perfect hashing functions for sets with billions of
keys.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libcmph.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
C Minimal Perfect Hashing Library is a portable LGPL library to create and to
work with minimal perfect hashing functions. The library encapsulates the
newest and more efficient algorithms available in the literature in an
easy-to-use, production-quality, fast API. The library is designed to work with
big entries that cannot fit in the main memory. It has been used successfully
for constructing minimal perfect hashing functions for sets with billions of
keys.

This package contains the development files for %{name}

%files -n %{devname}
%doc ChangeLog
%{_includedir}/*.h
%{_libdir}/libcmph.so
%{_libdir}/pkgconfig/cmph.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
autoreconf -fi
%configure

%make

%install
%makeinstall_std

# cleanup
rm -f %{buildroot}%{_libdir}/*.*a

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 726 |21cr|cmst-2023.03.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt5 GUI for Connman with system tray icon
Name:		cmst
Version:	2023.03.14
Release:	1
License:	MIT
Group:		Networking/Other
Url:		https://github.com/andrew-bibb/cmst
Source0:	https://github.com/andrew-bibb/cmst/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz
BuildRequires:	qmake5
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Network)
Requires:	connman

%description
The program provides graphical user interface to control the connman daemon.
The connman daemon must be started as you normally would, this program just
interfaces with that daemon. You can see what technologies and services connman
has found, and for wifi services an agent is registered to assist in obtaining
the information from you necessary to logon the wifi service.

The program requires that connman be installed and running.

%files
%{_libexecdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*
%{_sysconfdir}/dbus-1/system.d/org.cmst.roothelper.conf
%{_datadir}/%{name}/autostart/cmst-autostart.desktop
%{_datadir}/dbus-1/system-services/org.cmst.roothelper.service
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/licenses/%{name}/LICENSE
%{_datadir}/metainfo/org.cmst.cmst.appdata.xml
#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
sed -i -e 's|CMST_LIB_PATH = "/usr/lib/cmst"|CMST_LIB_PATH = "%{_libexecdir}/%{name}"|g' cmst.pri


%build
%qmake_qt5
%make

%install
make install INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 727 |21cr|cmuclmtk-0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	The CMU-Cambridge Statistical Language Modeling Toolkit
Name:		cmuclmtk
Version:	0.7
Release:	6
License:	GPLv3+
Group:		Development/Tools
Url:		http://cmusphinx.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/cmusphinx/cmuclmtk/0.7/%{name}-%{version}.tar.gz

%description
The CMU-Cambridge Statistical Language Modeling Toolkit need for make
cmu-sphinx's language models.

%files
%doc README NEWS ChangeLog TODO
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 0.7-4

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 0.7-4

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 728 |21cr|cmus-2.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_ld_no_undefined 0

Summary:	A powerful ncurses-based music player
Name:		cmus
Version:	2.10.0
Release:	3
License:	GPLv2+
Group:		Sound
Url:		https://cmus.github.io/
Source0:	https://github.com/cmus/cmus/archive/%{name}-%{version}.tar.gz
Source100:	cmus.rpmlintrc
Patch0:	cmus-2.10.0-fix-segfault-accessing-uninitialized-variable.patch
Patch1:	cmus-2.10.0-add-support-for-nomedia-file.patch
Patch2:	cmus-2.10.0-add-account-for-opus-gain.patch
Patch3:	cmus-2.10.0-recognize-sort-keys-from-ffmpeg-plugin.patch
Patch4:	cmus-2.10.0-fix-missing-combining-marks-on-last-chars-in-a-field.patch
BuildRequires:	ffmpeg-devel
BuildRequires:	libmp4v2-devel
BuildRequires:	libmpcdec-devel
BuildRequires:	soundio-devel
BuildRequires:	pkgconfig(alsa) >= 1.0.11
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libcddb)
BuildRequires:	pkgconfig(libcdio_cdda)
BuildRequires:	pkgconfig(libcue)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libsystemd) >= 239
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack) >= 4.40
Requires:	ncurses

%description
Cmus is a powerful music player with an ncurses UI. It supports many
different file types like FLAC, Ogg/Vorbis, etc. and is able to handle play
lists.

%files
%doc README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-remote
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/ip/
%dir %{_libdir}/%{name}/op/
%{_libdir}/%{name}/*/*.so
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*.theme
%{_datadir}/%{name}/rc
%{_datadir}/bash-completion/completions/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-remote.1*
%{_mandir}/man7/%{name}-tutorial.7*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%setup_compile_flags
./configure \
	prefix="%{_prefix}" \
	libdir="%{_libdir}" \
	bindir="%{_bindir}" \
	mandir="%{_mandir}" \
	CONFIG_MIKMOD=y \
	DEBUG=0
%make


%install
# Automated install won't work: install manually
# 1. Create the needed directories
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/%{name}/ip
mkdir -p %{buildroot}%{_libdir}/%{name}/op
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man7

# 2. Install the files
install -m755 cmus %{buildroot}%{_bindir}
install -m755 cmus-remote %{buildroot}%{_bindir}

install -m755 ip/*.so %{buildroot}%{_libdir}/%{name}/ip
install -m755 op/*.so %{buildroot}%{_libdir}/%{name}/op

install -m644 data/* %{buildroot}%{_datadir}/%{name}
install -m644 contrib/%{name}.bash-completion %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -m644 Doc/*.1 %{buildroot}%{_mandir}/man1
install -m644 Doc/*.7 %{buildroot}%{_mandir}/man7

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 729 |21cr|cnc-qt-0.3.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname cncqt

Summary:	GUI for CNC controller
Name:		cnc-qt
Version:	0.3.6
Release:	2
License:	GPLv3
Group:		Office
Url:		https://github.com/eduard-x/cnc-qt
Source0:	https://github.com/eduard-x/cnc-qt/archive/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick

%description
CNC-Qt is the program for management of
planet-cnc controllers, 
supports now only mk1 (4 axis) hardware. 
No supporting of mk2 interface at time. 


%files
%doc README.md README LICENSE 
%{_bindir}/%{name}
%{_datadir}/%{oname}
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%config(noreplace) %{_sysconfdir}/udev/rules.d/z90_cncusb.rules
#-----------------------------------------------------------
%prep
%setup -qn %{name}-%{name}-%{version}
chmod 0644 LICENSE

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
cp -pr udev/rules.d/z90_cncusb.rules %{buildroot}%{_sysconfdir}/udev/rules.d/.

desktop-file-install %{SOURCE1} \
  --dir=%{buildroot}%{_datadir}/applications
  
for size in 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size icons/%{name}.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

rm -fr %{buildroot}%{_iconsdir}/%{name}.*
rm -fr %{buildroot}%{_defaultdocdir}
rm -fr %{buildroot}/lib/udev/rules.d/z90_cncusb.rules

%post
systemctl restart udev.service

%postun
systemctl restart udev.service
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 730 |21cr|cntlm-0.92.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _hardened_build 1

Summary:          Fast NTLM authentication proxy with tunneling
Name:             cntlm
Version:          0.92.3
Release:          3
License:          GPLv2+
Group:            System/Servers
URL:              http://cntlm.sourceforge.net/
Source0:          http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1:          cntlm.tmpfiles
Source2:          cntlm.service
Patch0:           cntlm_makefile.patch
Requires:         systemd
BuildRequires:    systemd
Requires(pre):    shadow-utils
Requires(post):   systemd
Requires(preun):  systemd
Requires(postun): systemd

%description
Cntlm is a fast and efficient NTLM proxy, with support for TCP/IP tunneling,
authenticated connection caching, ACLs, proper daemon logging and behavior
and much more. It has up to ten times faster responses than similar NTLM
proxies, while using by orders or magnitude less RAM and CPU. Manual page
contains detailed information.

%prep
%setup -q
%patch0 -p1


%build
%configure
%make SYSCONFDIR=%{_sysconfdir}

%install
make BINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir} SYSCONFDIR=%{buildroot}%{_sysconfdir} install

install -D -m 0644 rpm/%{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/cntlmd
install -D -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service

install -D -d -m 0755 %{buildroot}/run/%{name}/


%pre
%_pre_useradd %{name} %{_localstatedir}/run/%{name} /sbin/nologin

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service
%_postun_userdel %{name}

%files
%doc LICENSE README COPYRIGHT
%{_sbindir}/%{name}
%{_mandir}/man1/%{name}.1*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/cntlmd
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 731 |21cr|cobang-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define oname CoBang

Summary:	A QR code scanner desktop app for Linux
Name:		cobang
Version:	0.14.1
Release:	1
License:	GPL-3.0
Group:		Graphics
Url:		https://github.com/hongquan/CoBang
Source0:	https://github.com/hongquan/CoBang/archive/refs/tags/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	python3-single-version
Requires:	python3-kiss-headers
Requires:	python3-logbook
Requires:	python3-gstreamer1.0
Requires:	graphicsmagick
Requires:	zbar
Requires:	python3-zbar

%description
CoBang can scan barcode, QR code from webcam or static image, local or remote.

%files -f %{name}.lang
%doc README.rst
%{_bindir}/cobang
%{python3_sitelib}/cobang
%{_datadir}/applications/vn.hoabinh.quan.CoBang.desktop
%{_datadir}/cobang
%{_datadir}/glib-2.0/schemas/vn.hoabinh.quan.CoBang.gschema.xml
%{_datadir}/icons/hicolor/48x48/apps/vn.hoabinh.quan.CoBang.png
%{_datadir}/icons/hicolor/scalable/apps/vn.hoabinh.quan.CoBang.svg
%{_datadir}/metainfo/vn.hoabinh.quan.CoBang.appdata.xml

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 732 |21cr|cobibird-rospo-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name CobiBird-Rospo

Summary:	%{theme_name} theme
Name:		cobibird-rospo
Version:	2.0
Release:	2
License:        GPLv3+
Group:		Graphics
Url:		https://vk.com/xfce_rospo
Source0:	CobiBird-Rospo.tar.bz2
BuildArch:	noarch
Requires: 	cobibird-rospo-common
Requires: 	cobibird-rospo-gtk2-theme
Requires: 	cobibird-rospo-gtk3-theme
Requires: 	cobibird-rospo-metacity-theme
Requires: 	cobibird-rospo-xfwm4-theme

%description
Fork CobiBird GTK2,GTK3,Metacity and XFWM theme from ROSPO

%files
%doc LICENSE.CC LICENSE.GPL README

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%doc LICENSE.CC LICENSE.GPL
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%doc LICENSE.CC LICENSE.GPL
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%doc LICENSE.CC LICENSE.GPL
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%doc LICENSE.CC LICENSE.GPL
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {index.theme,gtk-2.0,gtk-3.0,metacity-1,xfwm4} %{buildroot}%{_datadir}/themes/%{theme_name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 733 |21cr|coccigrep-1.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Semantic grep for C based on coccinelle
Name:		coccigrep
Version:	1.20
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://home.regit.org/software/coccigrep/
Source0:	http://pypi.python.org/packages/source/c/coccigrep/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	coccinelle
Requires:	%{name}-data
Recommends:	%{name}-emacs
Recommends:	%{name}-vim
Obsoletes:	%{name}-docs < 1.20
BuildArch:	noarch

%description
Coccigrep is a semantic grep for the C language based on coccinelle. It
can be used to find where a given structure is used in code files.
coccigrep depends on the spatch program which comes with coccinelle.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{python3_sitelib}/%{name}/*.py*
%{python3_sitelib}/%{name}*.egg-info
%{python3_sitelib}/%{name}/__pycache__/

#----------------------------------------------------------------------------

%package data
Summary:	Data for %{name}
Group:		Development/Tools

%description data
This package provides the data for %{name}, i.e. the coccinelle semantic
patches.

%files data
%{python3_sitelib}/%{name}/%{name}.cfg
%{python3_sitelib}/%{name}/data/

#----------------------------------------------------------------------------

%package emacs
Summary:	Emacs for %{name}
Group:		Development/Tools
Requires:	%{name}

%description emacs
This package provides Emacs integration for %{name}.

%files emacs
%{_datadir}/emacs/site-lisp/cocci-grep.el

#----------------------------------------------------------------------------

%package vim
Summary:	VIM support for %{name}
Group:		Development/Tools
Requires:	%{name}

%description vim
This package provides Vim integration for %{name}.

%files vim
%{_datadir}/vim/plugin/cocci-grep.vim

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

install -m0644 -D %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

pushd editors
install -m0644 -D cocci-grep.vim %{buildroot}%{_datadir}/vim/plugin/cocci-grep.vim
install -m0644 -D cocci-grep.el %{buildroot}%{_datadir}/emacs/site-lisp/cocci-grep.el
popd



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 734 |21cr|coccinelle-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags

%bcond_with doc

Name:           coccinelle
Version:        1.1.1
Release:        1
Summary:        Semantic patching for Linux (spatch)
Group:          Development/C
License:        GPLv2

URL:            https://coccinelle.gitlabpages.inria.fr/website/
Source0:        https://github.com/coccinelle/coccinelle/archive/%{version}/%{name}-%{version}.tar.gz

# Used for running Python tests.
Source1:        test.c
Source2:        testpy.cocci

BuildRequires:  git
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  python3-devel
BuildRequires:  bash-completion
BuildRequires:  make
BuildRequires:  ocaml >= 3.10.0
BuildRequires:  ocaml-findlib-devel
BuildRequires:  ocaml-odoc
BuildRequires:  ocaml-parmap-devel
BuildRequires:  ocaml-pcre-devel
BuildRequires:  menhir
BuildRequires:  ocaml-num-devel
BuildRequires:  ocaml-pyml-devel
BuildRequires:  ocaml-stdcompat-devel
%if %{with doc}
BuildRequires:  latexmk
BuildRequires:  texlive-boxedminipage
BuildRequires:  texlive-comment
BuildRequires:  texlive-endnotes
BuildRequires:  texlive-ifsym
BuildRequires:  texlive-latex
BuildRequires:  texlive-listings
BuildRequires:  texlive-moreverb
BuildRequires:  texlive-multirow
BuildRequires:  texlive-preprint
BuildRequires:  texlive-subfigure
BuildRequires:  texlive-wrapfig
BuildRequires:  texlive-xypic
BuildRequires:  hevea
%endif

# This stops the automatic dependency generator adding some bogus
# OCaml dependencies.  Unfortunately we have to keep adding modules to
# this list every time there is some change in coccinelle.  There
# should be a better way, but I don't know what.
%{lua:
  modules = {
    'Control_flow_c',
    'Cpp_token_c',
    'Danger',
    'Data',
    'Flag_parsing_cocci',
    'Includes',
    'Includes_cache',
    'Lexer_parser',
    'Ograph_extended',
    'Parsing_consistency_c',
    'Parsing_hacks',
    'Parsing_recovery_c',
    'Parsing_stat',
    'Regexp_pcre',
    'Semantic_c',
    'Token_annot',
    'Token_helpers',
    'Token_views_c',
    'Type_annoter_c',
  }
  local arg = "__ocaml_requires_opts"
  for i, m in ipairs(modules) do
    arg = arg .. " -i " .. m .. " -x " .. m
  end
  rpm.define(arg)
}

# RHBZ#725415.
Requires:       ocaml-findlib


%description
Coccinelle is a tool to utilize semantic patches for manipulating C
code.  It was originally designed to ease maintenance of device
drivers in the Linux kernel.

%files
%license license.txt copyright.txt
%doc authors.txt bugs.txt changes.txt
%doc credits.txt install.txt readme.txt
%{_bindir}/pycocci
%{_bindir}/spatch
%{_bindir}/spgen
%{_libdir}/%{name}/
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%{python3_sitelib}/coccilib/
%{_libdir}/ocaml/*.cmx

#---------------------------------------------------------------
%package bash-completion
Summary:        Bash tab-completion for %{name}
BuildArch:      noarch
Requires:       bash-completion > 2.0
Requires:       %{name} = %{version}-%{release}


%description bash-completion
Install this package if you want intelligent bash tab-completion
for %{name}.

%files bash-completion
%license license.txt copyright.txt
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/spatch

#---------------------------------------------------------------

%if %{with doc}
%package doc
Summary:        Documentation for %{name}
BuildArch:      noarch
Requires:       %{name} = %{version}-%{release}


%description doc
The %{name}-doc package contains documentation for %{name}.

%files doc
%doc docs
%endif

#---------------------------------------------------------------

%package examples
Summary:        Examples for %{name}
BuildArch:      noarch
Requires:       %{name} = %{version}-%{release}


%description examples
The %{name}-examples package contains examples for %{name}.

%files examples
%doc demos

#---------------------------------------------------------------

%prep
%autosetup -n %{name}-%{version} -S git

# Replace /usr/bin/env shebang with /usr/bin/python3
sed -i '1s_^#!/usr/bin/env python$_#!/usr/bin/python3_' tools/pycocci

# Remove .gitignore files.
find -name .gitignore -delete

# Convert a few files to UTF-8 encoding.
for f in demos/demo_rule9/sym53c8xx.res demos/demo_rule9/sym53c8xx.c; do
  mv $f $f.orig
  iconv -f iso-8859-1 -t utf-8 < $f.orig > $f
  rm $f.orig
done

# replace tabs with spaces
find . -iname '*.py' | xargs -I {} sh -exc 'expand -t8 {} > tempfile && mv tempfile {}'

# Properly rebuild Menhir generated files.
rm -f parsing_cocci/parser_cocci_menhir.ml parsing_cocci/parser_cocci_menhir.mli

# On 32-bit ARM only, use of recent menhir leads to memory exhaustion.  Turn
# down the menhir optimization level to cope.
%ifarch %{arm}
sed -i 's/--infer/& -O 1/' Makefile
%endif

rm -r bundles/*

%build
autoreconf -vfi

%configure \
    --with-python=%__python3 \
    --with-menhir=%{_bindir}/menhir

%{__sed} -i \
  -e 's,LIBDIR=.*,LIBDIR=%{_libdir},' \
  -e 's,MANDIR=.*,MANDIR=%{_mandir},' \
  -e 's,SHAREDIR=.*,SHAREDIR=%{_libdir}/%{name},' \
  -e 's,DYNLINKDIR=.*,DYNLINKDIR=%{_libdir}/ocaml,' \
  -e 's,BASH_COMPLETION_DIR=.*,BASH_COMPLETION_DIR=%{_datadir}/bash-completion/completions,' \
  Makefile.config

# Pass -g option everywhere.
echo '
EXTRA_OCAML_FLAGS = -g
EXTRACFLAGS = $(EXTRA_OCAML_FLAGS)
' > Makefile.local

%ifarch %{ocaml_native_compiler}
target=all-release
%else
target=all-dev
%endif

# NOTE: Do not use smp_mflags!  It breaks the build.
unset MAKEFLAGS

make $target

%install
mkdir -p $RPM_BUILD_ROOT%{_libdir}/python/coccilib
%make_install

# Remove these (they are just wrapper scripts).
rm -f $RPM_BUILD_ROOT%{_bindir}/spatch.byte
rm -f $RPM_BUILD_ROOT%{_bindir}/spatch.opt

# Move the libdir stuff into a subdirectory.
pushd $RPM_BUILD_ROOT%{_libdir}
mkdir coccinelle
mkdir coccinelle/ocaml
for f in standard.h standard.iso spatch spatch.byte spatch.opt ocaml/*.cmi; do
  if [ -f $f ]; then
    mv $f coccinelle/$f
  fi
done
popd

# Move Python libraries to python sitelib directory.
mkdir -p $RPM_BUILD_ROOT%{python3_sitelib}
mv $RPM_BUILD_ROOT%{_libdir}/python/coccilib \
  $RPM_BUILD_ROOT%{python3_sitelib}

rmdir $RPM_BUILD_ROOT%{_libdir}/python

mv $RPM_BUILD_ROOT%{_bindir}/spatch $RPM_BUILD_ROOT%{_libdir}/coccinelle

cp -p tools/pycocci $RPM_BUILD_ROOT%{_bindir}/

# wrapper script, sets up env variables
cp -p scripts/spatch.sh $RPM_BUILD_ROOT%{_bindir}/spatch
chmod a+x $RPM_BUILD_ROOT%{_bindir}/spatch


%check
# Run the tests using the non-script version of spatch so that these
# environment variables have effect, since spatch.sh (installed as
# %%{_bindir}/spatch) overwrites them.
export COCCINELLE_HOME=$RPM_BUILD_ROOT%{_libdir}/coccinelle
spatch=$COCCINELLE_HOME/spatch
export LD_LIBRARY_PATH=.
export PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitelib}:$PYTHONPATH

# Run --help to check the command works in general.
$spatch --help

# run the test recommended by the README
$spatch -sp_file demos/simple.cocci demos/simple.c

# test python support is working
# on previously broken builds, spatch exits with 255
$spatch --sp-file %{SOURCE2} %{SOURCE1}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 735 |21cr|cockpit-file-sharing-2.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global forgeurl https://github.com/45Drives/cockpit-file-sharing/
Version: 2.4.5
%forgemeta

Name:		cockpit-file-sharing
Release:	1
Summary:	Cockpit user interface for managing SMB and NFS file sharing
Group:		Monitoring
License:	GPLv3+
URL:		%{forgeurl}
Source0:	%{forgesource}
BuildArch:	noarch

BuildRequires:	nodejs

Requires:	cockpit-ws
Requires:	python3
Recommends:	nfs-utils
Recommends:	samba

Provides: bundled(patternfly) = 3

%description
A Cockpit component for managing SMB exports and NFS shares.
This package uses Samba and nfs-utils.

%files
%license LICENSE
%doc README.md
%doc CHANGELOG.md
%{_datadir}/cockpit/file-sharing/

#-------------------------------------------------------------
%prep
%forgeautosetup -p1

%build
# no build required

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 736 |21cr|cockpit-machines-276-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# Copyright (C) 2021 Red Hat, Inc.
#
# Cockpit is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Cockpit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
#

Name:           cockpit-machines
Version:        276
Release:        1
Summary:        Cockpit user interface for virtual machines
Group:          Monitoring
License:        LGPLv2+ and MIT
URL:            https://github.com/cockpit-project/cockpit-machines

Source0:        https://github.com/cockpit-project/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildArch:      noarch
BuildRequires:  appstream-util
BuildRequires:  make
BuildRequires:  gettext

Requires:	cockpit-bridge
Requires:	cockpit-system
Requires:	libvirt-client
Requires:	libvirt-dbus >= 1.2.0
# Optional components
#Recommends:	libosinfo-common
#Recommends:	python3-gobject-base
Recommends:	virt-install

%description
Cockpit component for managing virtual machines.

If "virt-install" is installed, you can also create new virtual machines.

%files
%doc README.md
%license LICENSE dist/index.js.LICENSE.txt.gz
%{_datadir}/cockpit/*
%{_datadir}/metainfo/*

#-------------------------------------------------------
%prep
%setup -q -n %{name}

%build
# Nothing to build

%install
%make_install
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 737 |21cr|cockpit-navigator-0.5.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global forgeurl https://github.com/45Drives/cockpit-navigator/
Version:	0.5.9
%forgemeta

Name:		cockpit-navigator
Release:	1
Summary:	A File System Browser for Cockpit
Group:		Monitoring
License:	GPLv3+
URL:		%{forgeurl}
Source0:	%{forgesource}
BuildArch:	noarch

Requires:	cockpit-system
Requires:	python3
Requires:	rsync
Requires:	zip

Patch1:	0001-Fedora-remove-branding.patch

%description
Cockpit Navigator
A File System Browser for Cockpit.

%files
%license LICENSE
%doc README.md
%doc CHANGELOG.md
/usr/share/cockpit/navigator/

#-------------------------------------------------------
%prep
%forgeautosetup -p1


%build
# empty

%install
mkdir -p %{buildroot}%{_datadir}/cockpit/
cp -rpf navigator %{buildroot}%{_datadir}/cockpit/
echo "export let NAVIGATOR_VERSION = \"%{version}\";" > %{buildroot}%{_datadir}/cockpit/navigator/version.js





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 738 |21cr|cockpit-podman-59-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# Copyright (C) 2017-2020 Red Hat, Inc.
#
# Cockpit is free software; you can redistribute it and/or modify it
# under the terms of the GNU Lesser General Public License as published by
# the Free Software Foundation; either version 2.1 of the License, or
# (at your option) any later version.
#
# Cockpit is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public License
# along with Cockpit; If not, see <http://www.gnu.org/licenses/>.
#

Name:           cockpit-podman
Version:        59
Release:        1
Summary:        Cockpit component for Podman containers
Group:          Monitoring
License:        LGPLv2+
URL:            https://github.com/cockpit-project/cockpit-podman

Source0:        https://github.com/cockpit-project/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildArch:      noarch
BuildRequires:  appstream-util
BuildRequires:  make
BuildRequires:  gettext

Requires:       cockpit-bridge >= 138
Requires:       podman >= 2.0.4

%description
The Cockpit user interface for Podman containers.

%prep
%setup -q -n %{name}

%build
# Nothing to build

%install
%make_install
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*

%files
%doc README.md
%license LICENSE dist/index.js.LICENSE.txt.gz
%{_datadir}/cockpit/*
%{_datadir}/metainfo/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 739 |21cr|cockpit-session-recording-12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cockpit-session-recording
Version:	12
Release:	1
Summary:	Cockpit Session Recording
Group:		Monitoring
License:	LGPLv2+
URL:		https://github.com/Scribery/%{name}
Source0:	https://github.com/Scribery/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz

BuildArch:	noarch
BuildRequires:	appstream-util
BuildRequires:	make
Requires:	cockpit-system
Requires:	tlog

%description
Cockpit module providing session recording configuration and playback.
This module allows viewing and playback of journal-stored terminal session
recordings generated by the tlog component.

%files
%{_datadir}/cockpit/session-recording
%{_datadir}/metainfo/org.cockpit-project.session-recording.metainfo.xml

#----------------------------------------------------------------------
%prep
%setup -qn cockpit-session-recording

%install
%make_install
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 740 |21cr|cocoalib-0.99800-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cocoa %{major}
%define devname %mklibname cocoa -d
%define debug_package	%{nil}
%define oname	CoCoALib

Name:           cocoalib
Version:        0.99800
Release:        1
Summary:        Computations library in Commutative Algebra
Group:          Sciences/Mathematics
License:        GPLv3
URL:            https://cocoa.dima.unige.it/cocoa/
Source0:        https://cocoa.dima.unige.it/cocoa/cocoalib/tgz/CoCoALib-%{version}.tgz
Source100:      cocoalib.rpmlintrc
# Build a shared library instead of a static library
Patch0:         %{name}-shared.patch
# Fix error handling in Qsolve
Patch1:         %{name}-ffelem.patch
# Add a noreturn attribute to silence several warnings
Patch2:         %{name}-noreturn.patch
# Fix out of bounds vector accesses
Patch3:         %{name}-vec.patch
# Fix broken code that tries to get a vector size
Patch4:         %{name}-vector-size.patch
# Avoid using a variable uninitialized
Patch5:         %{name}-uninit.patch
BuildRequires:  gmp-devel
BuildRequires:  java-1.8.0-openjdk-devel
BuildRequires:  pkgconfig(gsl)
BuildRequires:  flexiblas-devel
BuildRequires:  boost-devel
BuildRequires:  readline-devel
BuildRequires:  pkgconfig(lapack)
BuildRequires:  pkgconfig(blas)
BuildRequires:  qt4-devel
BuildRequires:  texlive-ulem

%description
CoCoALib is a GPL C++ library for doing Computations in Commutative Algebra.
CoCoALib will be the mathematical kernel for the completely new system CoCoA-5.

#---------------------------------------------------------------------------
%package -n %{libname}
Summary:	Computations library in Commutative Algebra
Group:		Sciences/Mathematics

%description -n %{libname}
CoCoALib is a GPL C++ library for doing Computations in Commutative Algebra.
CoCoALib will be the mathematical kernel for the completely new system CoCoA-5.

%files -n %{libname}
%{_libdir}/libcocoa.so.%{major}*
#----------------------------------------------------------------------------

%package -n %{devname}

Summary:        Development files for CoCoALib
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files for developing applications which
will use CoCoALib.

%files -n %{devname}
%{_includedir}/CoCoA
%{_libdir}/libcocoa.so
#----------------------------------------------------------------------------

%package doc
Summary:        Examples for %{name}
Group:          Development/Other
Requires:       %{libname} = %{EVRD}

%description doc
Examples for %{name}.

%files doc
%license doc/COPYING
%doc doc/*.html
%doc doc/*.pdf
%doc doc/CoCoALib-tasks
%doc doc/html
%doc examples

#----------------------------------------------------------------------------
%prep
%autosetup -p0 -n CoCoALib-%{version}

# Do not suppress compiler command lines
sed -i 's/\$(MAKE) -s/\$(MAKE)/' Makefile doc/Makefile src/Makefile \
    src/AlgebraicCore/Makefile src/AlgebraicCore/TmpFactorDir/Makefile

%build
# Use Fedora's linker flags
sed -i 's|@RPM_LD_FLAGS@|%{build_ldflags}|' src/AlgebraicCore/Makefile

./configure \
	    --with-libgmp=%{_libdir}/libgmp.so \
	    --with-libgsl=%{_libdir}/libgsl.so \
	    --with-cxxflags='%{build_cxxflags} -fPIC'

%make library
%make doc

%install
# The Makefile ignores DESTDIR.  Install by hand.

# Install the library
mkdir -p %{buildroot}%{_libdir}
cp -p src/AlgebraicCore/libcocoa.so.0.0.0 %{buildroot}%{_libdir}
ln -s libcocoa.so.0.0.0 %{buildroot}%{_libdir}/libcocoa.so.0
ln -s libcocoa.so.0 %{buildroot}%{_libdir}/libcocoa.so

# Install the headers
mkdir -p %{buildroot}%{_includedir}
cp -a include/CoCoA %{buildroot}%{_includedir}
rm -f %{buildroot}%{_includedir}/{MakeUnifiedHeader.sh,PREPROCESSOR_DEFNS.H-old}

# Remove files from the doc directories that we want to include in %%files
rm -f doc/CoCoALib-tasks/{HTMLTasks,HTMLTasks.C,Makefile,tasks.xml}
rm -f examples/CopyInfo
chmod a-x examples/*.sh

%check
# 32-bit systems are unable to pass some of the tests due to the limited range
# of the FFelem type.  Disable those tests.
%if 0%{?__isa_bits} == 32
sed -e '/test-factor1\.C/d' \
    -e 's/test-RingTwinFloat3\.C //' \
    -e 's/test-SparsePolyRing1\.C  //' \
    -e 's/test-SparsePolyRing5\.C //' \
    -e '/test-SqFreeFactor1\.C/d' \
    -i src/tests/Makefile
%endif

export LD_LIBRARY_PATH=$PWD/lib
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 741 |21cr|coda-8.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Coda distributed filesystem
Name:		coda
Version:	8.1.5
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.coda.cs.cmu.edu/doc/html/index.html
Source0:	https://github.com/cmusatyalab/coda/archive/%{name}-%{version}.tar.gz
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	rvm-tools
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(lwp)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(rpc2)
BuildRequires:	pkgconfig(rvmlwp)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	python3egg(attrs)
BuildRequires:	python3egg(setuptools)

%description
Source package for the Coda filesystem.  Three packages are provided by
this rpm: the client and server and the backup components. Separately
you must install a kernel module, or have a Coda enabled kernel, and 
you should get the Coda documentation package.

#----------------------------------------------------------------------------

%package client
Summary:	Coda client
Group:		Networking/Other
Requires:	bc
Requires:	ed
Requires(post,preun):	rpm-helper
Obsoletes:	coda-backup < 6.10

%description client
This package contains the main client program, the cachemanager Venus.
Also included are the binaries for the cfs, utilities for logging, ACL
manipulation etc, the hoarding tools for use with laptops and repair
tools for fixing conflicts. Finally there is the cmon and codacon
console utilities to monitor Coda's activities. You need a Coda
kernel-module for your kernel version, or Coda in your kernel, to have
a complete coda client.  Make sure to select the correct C library
version.

%files client
%doc AUTHORS COPYING INSTALL ChangeLog LICENSE NEWS README*
%dir %{_prefix}/coda
%dir %{_prefix}/coda/etc
%dir %{_prefix}/coda/venus.cache
%dir /coda
%verify() /coda/NOT_REALLY_CODA
%config(noreplace)%{_sysconfdir}/coda/venus.conf.ex
/lib/modules-load.d/coda.conf
%{_sbindir}/coda-client-setup
%{_sbindir}/codaconfedit
%{_sbindir}/venus
%{_sbindir}/vutil
%{_bindir}/cfs
%{_bindir}/clog
%{_bindir}/cmon
%{_bindir}/codacon
%{_bindir}/gcodacon
%{_bindir}/cpasswd
%{_bindir}/ctokens
%{_bindir}/cunlog
%{_bindir}/filerepair
%{_bindir}/hoard
%{_bindir}/mklka
%{_bindir}/parser
%{_bindir}/removeinc
%{_bindir}/repair
%{_bindir}/coda_replay
%{_bindir}/spy
%{_bindir}/volmunge
%{_bindir}/xaskuser
%{_bindir}/xfrepair
%{_bindir}/getvolinfo
%{_bindir}/rpc2ping
%{_bindir}/smon2
%{_mandir}/man1/cfs.1*
%{_mandir}/man1/clog.1*
%{_mandir}/man1/cmon.1*
%{_mandir}/man1/cunlog.1*
%{_mandir}/man1/hoard.1*
%{_mandir}/man1/repair.1*
%{_mandir}/man1/spy.1*
%{_mandir}/man1/coda_replay.1*
%{_mandir}/man1/cpasswd.1*
%{_mandir}/man1/ctokens.1*
%{_mandir}/man5/passwd.coda.5*
%{_mandir}/man8/coda-client-setup.8*
%{_mandir}/man8/venus.8*
%{_mandir}/man1/volmunge.1*
%{_unitdir}/coda-client.service
%{_unitdir}/coda-update-slave.service
%{python3_sitelib}/codafs
%{python3_sitelib}/codafs-*.egg-info

%post client
%_post_service coda-client
%_post_service coda-update-slave

%preun client
%_preun_service coda-client
%_preun_service coda-update-slave

#----------------------------------------------------------------------------

%package server
Summary:	Coda server
Group:		Networking/Other
Requires:	bc
Requires:	ed
Requires:	rvm-tools
Requires(post,preun):	rpm-helper

%description server
This package contains the fileserver codasrv for the coda filesystem,
as well as the volume utilities.  For highest performance you will
need a modified kernel with inode system calls.

%files server
%doc AUTHORS COPYING INSTALL ChangeLog LICENSE NEWS README*
%config(noreplace)%{_sysconfdir}/coda/server.conf.ex
%config(noreplace)%{_sysconfdir}/coda/realms
%config(noreplace)%{_sysconfdir}/coda/ssl/Coda_CA.crt
%{_sbindir}/auth2
%{_sbindir}/bldvldb.sh
%{_sbindir}/codadump2tar
%{_sbindir}/codamergedump
%{_sbindir}/codareaddump
%{_sbindir}/codasrv
%{_sbindir}/createvol_rep
%{_sbindir}/initpw
%{_sbindir}/inoder
%{_sbindir}/partial-reinit.sh
%{_sbindir}/pdbtool
%{_sbindir}/printvrdb
%{_sbindir}/purgevol_rep
%{_sbindir}/startserver
%{_sbindir}/updatesrv
%{_sbindir}/updateclnt
%{_sbindir}/updatefetch
%{_sbindir}/vice-killvolumes
%{_sbindir}/vice-setup
%{_sbindir}/vice-setup-rvm
%{_sbindir}/vice-setup-srvdir
%{_sbindir}/vice-setup-user
%{_sbindir}/vice-setup-scm
%{_sbindir}/volutil
%{_bindir}/coda-make-certs
%{_bindir}/coda-sync-acls
%{_bindir}/rvmsizer
%{_sbindir}/codastart
%{_sbindir}/norton
%{_sbindir}/norton-reinit
%{_bindir}/reinit
%{_sbindir}/coda-server-logrotate
%{_bindir}/au
%{_bindir}/mkcodabf
%{_sbindir}/asrlauncher
%{_sbindir}/tokentool
%{_mandir}/man1/au.1*
%{_mandir}/man1/mkcodabf.1*
%{_mandir}/man5/codadumpfile.5*
%{_mandir}/man5/maxgroupid.5*
%{_mandir}/man5/servers.5*
%{_mandir}/man5/vicetab.5*
%{_mandir}/man5/volumelist.5*
%{_mandir}/man5/vrdb.5*
%{_mandir}/man8/auth2.8*
%{_mandir}/man8/bldvldb.sh.8*
%{_mandir}/man8/codamergedump.8*
%{_mandir}/man8/codareaddump.8*
%{_mandir}/man8/codasrv.8*
%{_mandir}/man8/createvol_rep.8*
%{_mandir}/man8/initpw.8*
%{_mandir}/man8/norton.8*
%{_mandir}/man8/pdbtool.8*
%{_mandir}/man8/purgevol_rep.8*
%{_mandir}/man8/startserver.8*
%{_mandir}/man8/updateclnt.8*
%{_mandir}/man8/updatesrv.8*
%{_mandir}/man8/vice-setup.8*
%{_mandir}/man8/volutil.8*
%{_mandir}/man8/vutil.8*
%{_unitdir}/coda-server.service
%{_unitdir}/coda-update-master.service
%{_unitdir}/coda-auth2.service

%post server
%_post_service coda-auth2
%_post_service coda-server
%_post_service coda-update-master

%preun server
%_preun_service coda-auth2
%_preun_service coda-server
%_preun_service coda-update-master

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{name}-%{version}

autoreconf -vfi
#./bootstrap.sh

rm -rf lib-src/lwp
rm -rf lib-src/rpc2
rm -rf lib-src/rvm

%build

./configure --prefix=%{_prefix}
make

%install
mkdir -p %{buildroot}%{_prefix}/coda/venus.cache %{buildroot}/dev \
	 %{buildroot}%{_prefix}/coda/etc \
	 %{buildroot}/coda \
	 %{buildroot}%{_libdir}/coda
%makeinstall_std

touch %{buildroot}/coda/NOT_REALLY_CODA

# for non debuging versions
if [ X1 != X1 ]; then
   strip %{buildroot}%{_bindir}/* %{buildroot}/vice/bin/* %{buildroot}%{_sbindir}/* || :
fi

#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/gcodacon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 742 |21cr|code2html-0.9.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts a program source code to syntax highlighted HTML
Name:		code2html
Version:	0.9.1
Release:	12
License:	GPL
Group:		Development/Other
Source:		ftp://code2html.sourceforge.net/pub/code2html/all/%{name}-%{version}.tar.bz2
URL:		http://www.palfrader.org/code2html/
Buildarch:	noarch

%description
code2html is a perlscript which converts a program source code to syntax
highlighted HTML. It may be called from the command line or as a CGI script.
It can also handle include commands in HTML files.
Currently supports: Ada 95, C, C++, HTML, Java, JavaScript, Makefile,
Pascal, Perl, SQL, AWK, M4, and Groff. 

%prep

%setup -q

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 %{name} $RPM_BUILD_ROOT%{_bindir}/
install -m 644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CREDITS ChangeLog INSTALL LICENSE README
%{_bindir}/*
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 743 |21cr|codeblocks-20.03-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil
%global optflags %{optflags} -fpermissive -fno-strict-aliasing
%global __provides_exclude_from ^%{_libdir}/%{name}/plugins/.*\\.so$

%define major 0
%define libname_orig lib%{name}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A C++ IDE
Name:		codeblocks
Version:	20.03
Release:	4
License:	GPLv3
Group:		Development/Other
Url:		http://www.codeblocks.org/
Source0:	https://downloads.sourceforge.net/project/codeblocks/Sources/%{version}/%{name}-%{version}.tar.xz
Source1:	%{name}.png
Source100:	%{name}.rpmlintrc

Patch0:		enable-i18n-by-default.patch

# from Fedora
Patch10:	codeblocks-autorev.patch
Patch11:	codeblocks-20.03-multi-arch.patch
Patch12:	codeblocks-20.03-pragma.patch

# from gentoo, fix SymbolBrowser wx3.0 compat
Patch21:	0001-CodeBlocks-codecompletion-r12190.patch
Patch22:	0002-CodeBlocks-codecompletion-r12209.patch
Patch23:	0003-CodeBlocks-codecompletion-r12218.patch
Patch24:	0004-CodeBlocks-codecompletion-r12287.patch
Patch25:	0005-CodeBlocks-codecompletion-r12289.patch
Patch26:	0006-CodeBlocks-codecompletion-r12293.patch
Patch27:	0007-CodeBlocks-openfileslistplugin-gcc11-r12303.patch
Patch28:	0008-CodeBlocks-codecompletion-r12304.patch
Patch29:	0009-CodeBlocks-codecompletion-r12314.patch
Patch30:	0010-CodeBlocks-codecompletion-r12317.patch
Patch31:	0011-CodeBlocks-codecompletion-r12322.patch

BuildRequires:	appstream-util
BuildRequires:	zip
BuildRequires:	dos2unix
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	libboost-devel
BuildRequires:	bzip2-devel
BuildRequires:	wxgtku3.0-devel
BuildRequires:	tinyxml-devel
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(zlib)
Requires:	%{libname} >= %{EVRD}
Recommends:	gcc-c++
Recommends:	gdb

%description
Code::Blocks is a free C++ IDE built specifically to meet the most 
demanding needs of its users. It was designed, right from the start, 
to be extensible and configurable.
Built around a plugin framework, Code::Blocks can be extended with 
plugin DLLs. It includes a plugin wizard so you can compile your own
plugins!

%files
%doc README AUTHORS BUGS COMPILERS TODO NEWS ChangeLog
%{_bindir}/*
%{_libdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/*/*.png
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/appdata/%{name}-contrib.metainfo.xml
%{_mandir}/man1/*.1*
%{_sysconfdir}/ld.so.conf.d/%{name}-contrib-%{_arch}.conf

#----------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Provides:	%{libname_orig} = %{EVRD}

%description -n %{libname}
Shared libraries for %{name}.

%files -n %{libname}
%doc README ChangeLog
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{libname_orig}-devel = %{EVRD}

%description -n %{devname}
Development headers for %{name}.

%files -n %{devname}
%doc BUGS COMPILERS TODO
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

#----------------------------------------------------------------

%prep
%autosetup -p1

# remove hunspell, use system hunspell
rm -rf src/plugins/contrib/SpellChecker/hunspell


%build
autoreconf -vfi
%configure \
	--with-contrib-plugins=all \
	--with-boost-libdir=%{_libdir} \
	--disable-static

# remove unbundled stuff pt.2
rm -rf src/include/tinyxml src/base/tinyxml
rm -rf src/plugins/contrib/devpak_plugin/bzip2
rm -rf src/plugins/contrib/help_plugin/{bzip2,zlib}

# Don't use rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
%makeinstall_std

find %{buildroot} -name '*.la' -delete

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{128x128,256x256}/apps
convert -scale 128x128 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
install -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png

chmod +x %{buildroot}%{_datadir}/%{name}/lexers/lexer_bash.sample

appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/*.{appdata,metainfo}.xml
desktop-file-validate	%{buildroot}/%{_datadir}/applications/codeblocks.desktop

find %{buildroot} -type f -name "*.la" -delete

# generate linker config file for wxContribItems libraries
mkdir -p %{buildroot}/%{_sysconfdir}/ld.so.conf.d
echo "%{_libdir}/%{name}/wxContribItems" > %{buildroot}/%{_sysconfdir}/ld.so.conf.d/%{name}-contrib-%{_arch}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 744 |21cr|codec2-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname codec2 _%{major}
%define	develname %mklibname codec2 -d

Summary:	Low bit rate speech codec
Name:		codec2
Version:	1.0.5
Release:	1
License:	LGPLv2+
Group:		Sound
Url:			https://www.rowetel.com/blog/?page_id=452
Source0:	https://github.com/drowe67/codec2/archive/%{name}-%{version}.tar.gz
Patch0:		codec2-0.9.2-fix-pkgconfig-file.patch
Patch1:		codec2-1.0.3-fix-python-shebangs.patch
BuildRequires:	cmake >= 3.0
BuildRequires:	pkgconfig(speexdsp)
# For test and sample stuff
Requires:	octave

%description
Codec2 is an open source low bit rate speech codec designed for communications
quality speech at around 3200 bit/s and below. Applications include low
bandwidth HF/VHF digital radio. It fills a gap in open source,
free-as-in-speech voice codecs beneath 5000 bit/s.

%files
%doc COPYING
%{_bindir}/c2demo
%{_bindir}/freedv_*
%{_datadir}/%{name}/*

#-----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Shared %{name} library
Group:		System/Libraries

%description -n	%{libname}
Codec2 is an open source low bit rate speech codec designed for communications
quality speech at around 3200 bit/s and below. Applications include low
bandwidth HF/VHF digital radio. It fills a gap in open source, 
free-as-in-speech voice codecs beneath 5000 bit/s.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for the %{name} library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n	%{develname}
Codec2 is an open source low bit rate speech codec designed for communications
quality speech at around 3200 bit/s and below. Applications include low
bandwidth HF/VHF digital radio. It fills a gap in open source, 
free-as-in-speech voice codecs beneath 5000 bit/s.
This package contains the development files for codec2.

%files -n %{develname}
%doc COPYING README.md README_*
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}/*.cmake
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1
%patch1 -p1

# Fix perms
find . -name "*.c" |xargs chmod -x


%build
%cmake -DINSTALL_EXAMPLES=ON -DUNITTEST=OFF
%make


%install
%makeinstall_std -C build

# Somehow now sample programs don't get installed... do it manually
install -d %{buildroot}%{_bindir}
install -m 755 build/demo/c2demo %{buildroot}%{_bindir}
install -m 755 build/demo/freedv_* %{buildroot}%{_bindir}

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/octave/*.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 745 |21cr|codelite-14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A powerful open-source, cross platform code editor for C/C++
Name:		codelite
Version:	14.0
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.codelite.org
Source0:	https://github.com/eranif/codelite/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
Patch2:		%{name}-5.4-libdir.patch
Patch3:		%{name}-9.2_WordTokenizer.patch
BuildRequires:	cmake
BuildRequires:	wxgtku3.0-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	clang-devel
BuildRequires:	clang
BuildRequires:	hunspell-devel
Requires:	wxgtk3.0
Requires:	xterm

%description
CodeLite uses a sophisticated, yet intuitive interface which allows
users to easily create, build and debug complex projects.

%files -f %{name}.lang
%doc AUTHORS LICENSE COPYING
%{_bindir}/codelite
%{_bindir}/codelite-cc
%{_bindir}/codelite-echo
%{_bindir}/codelite-make
%{_bindir}/codelite-terminal
%{_bindir}/codelite_indexer
%{_bindir}/codelite_cppcheck
%{_bindir}/codelite_fix_files
%{_bindir}/codelite_exec
%{_bindir}/codelite_kill_children
%{_bindir}/codelite_xterm
%{_bindir}/codelite-lsp-helper
%{_bindir}/codelite_open_helper.py
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_libdir}/%{name}/
%{_mandir}/man1/*.1*
%{_iconsdir}/hicolor/128x128/apps/codelite.png
%{_iconsdir}/hicolor/128x128@2x/apps/codelite.png
%{_iconsdir}/hicolor/256x256/apps/codelite.png
%{_iconsdir}/hicolor/256x256@2x/apps/codelite.png
%{_iconsdir}/hicolor/32x32/apps/codelite.png
%{_iconsdir}/hicolor/32x32@2x/apps/codelite.png
%{_iconsdir}/hicolor/64x64/apps/codelite.png
%{_iconsdir}/hicolor/64x64@2x/apps/codelite.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch2 -p1
%patch3 -p1

%build
cmake -DPREFIX:PATH=%{_prefix} \
      -DCL_INSTALL_LIBDIR:PATH=%{_lib} \
       .
%make

%install
%makeinstall_std PREFIX=/usr

%find_lang %{name}

# To fix unstripped-binary-or-object
chmod 0755 %{buildroot}%{_libdir}/%{name}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 746 |21cr|codeworker-4.5.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname CodeWorker
%define tarballver %(echo %version |sed -e 's#\\.#_#g')

Summary:	A universal parsing tool and a source code generator
Name:		codeworker
Version:	4.5.4
Release:	6
License:	LGPLv2+
Group:		Development/Other
Url:		http://codeworker.free.fr/
Source0:	http://codeworker.free.fr/downloads/%{oname}_SRC%{tarballver}.zip
Patch0:		codeworker-4.5.1-enable-readline.patch
Patch1:		codeworker-4.5.1-gcc4.3.patch
BuildRequires:	gcc-c++
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	readline-devel

%description
CodeWorker is a versatile parsing tool and a source code generator
devoted to generative programming. Generative programming is a
software engineering approach interested in automating the production
of reusable, tailor-made, adaptable and reliable IT systems.
In layman's terms, CodeWorker lets you generate code by parsing
existing languages, or by creating and parsing your own language. Once
a language file has been parsed, CodeWorker provides several
techniques for generating code.

%files
%doc Documentation/ Scripts/ WebSite/
%{_bindir}/codeworker

#----------------------------------------------------------------------------

%package devel
Summary:	Codeworker static library
Group:		System/Libraries

%description devel
CodeWorker is a versatile parsing tool and a source code generator
devoted to generative programming. Generative programming is a
software engineering approach interested in automating the production
of reusable, tailor-made, adaptable and reliable IT systems.
In layman's terms, CodeWorker lets you generate code by parsing
existing languages, or by creating and parsing your own language. Once
a language file has been parsed, CodeWorker provides several
techniques for generating code.

This package include the static library.

%files devel
%{_includedir}/*
%{_libdir}/libcodeworker.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}%{tarballver}
%patch0 -p0
%patch1 -p0

%build
%make CFLAGS="%{optflags} -std=c++14" LDFLAGS="%{?ldflags} -L%{_libdir}"

%install
install -m 755 -D codeworker %{buildroot}%{_bindir}/codeworker
install -m 644 -D libcodeworker.a %{buildroot}%{_libdir}/libcodeworker.a
for i in ./*.h; do
	install -m 644 -D $i %{buildroot}%{_includedir}/%{name}/$i
done



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 747 |21cr|codicefiscale-3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Name: 		codicefiscale
Summary: 	The tax code in Italy is an alphanumeric code
Version: 	3.0
Release: 	2
License: 	LGPLv3
Group: 		Office
Url:		https://github.com/kratos83/CodiceFiscale
Source0:	https://www.codelinsoft.it/sito/download/categoria-linux/CodiceFiscale/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Source2:	https://raw.githubusercontent.com/kratos83/CodiceFiscale/master/cod_fisc/images/%{name}.png
Patch0:		codicefiscale-2.0-update.patch
Patch1:		codicefiscale-3.0_install.patch
BuildRequires:	qt5-devel 
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
# this is being seen as the same %name...
Conflicts:		texlive-codicefiscaleitaliano


%description
The tax code in Italy is an alphanumeric code with a fixed 
length of 16 characters, inspired by the use of library, 
which is used to uniquely identify the tax and 
administrative citizens, non-recognized associations, 
taxpayers and foreigners born and domiciled the 
Italian territory. The tax code is assigned at birth
or the constitution for associations. 
For all taxpayers not subject individuals 
with a VAT (trust, permanent establishments, 
societies, associations recognized, foundations) 
normally also has the same function of the tax code. 
For companies registered in the register of companies, 
although all have a tax code, according to the law, 
the identifier is the legal Rea, even if not used by the Revenue.

%files
%doc CHANGELOG README.md cod_fisc/licenza.txt
%{_bindir}/%{name}
%{_bindir}/update
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
#------------------------------------------------
%prep
%setup -q
%patch0 -p0
%patch1 -p1
find . -type f -exec chmod -x {} \;
rm -fr windows

%build
%cmake_qt5 -DWANT_QT5=ON 
%make

%install
%makeinstall_std -C build 
#menu entry
rm -fr %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install %{SOURCE1} \
  --dir=%{buildroot}%{_datadir}/applications

#icons
for size in 128x128 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size %{SOURCE2}  \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 748 |21cr|cog-0.8.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cog
Summary: Another Gnome config tool
Version:	0.8.0
Release:	11
License: GPL
Url: http://www.krakoa.dk/linux-software.html
Group: Graphical desktop/GNOME
Source: http://www.krakoa.dk/progs/cog/%{name}-%{version}.tar.bz2
Source10:   %{name}-16.png
Source11:   %{name}-32.png
Source12:   %{name}-48.png

BuildRequires: automake >= 1.4
Buildrequires: libgnomeui2-devel >= 2.0
Buildrequires: libglade2.0-devel >= 2.0

%description
Edit advanced Gnome settings in an easy way.

%prep
%setup -q

%build
%configure

%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall_std
install -m644 %SOURCE10 -D %{buildroot}/%_miconsdir/%name.png
install -m644 %SOURCE11 -D %{buildroot}/%_iconsdir/%name.png
install -m644 %SOURCE12 -D %{buildroot}/%_liconsdir/%name.png


%find_lang %name --all-name

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files -f %name.lang
%defattr(-,root,root,0755)
%doc NEWS README TODO AUTHORS
%{_bindir}/*
%{_iconsdir}/%name.png
%{_liconsdir}/%name.png
%{_miconsdir}/%name.png
%{_datadir}/pixmaps/%{name}*
%{_datadir}/applications/%name.desktop
%{_datadir}/cog

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 749 |21cr|cogito-0.18.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cogito scm with git core
Name:		cogito
Version:	0.18.2
Release:	9
Source0:	http://www.kernel.org/pub/software/scm/cogito/%{name}-%{version}.tar.bz2
License:	GPL
Group:		Development/Other
Url:		http://www.kernel.org/pub/software/scm/cogito/
BuildRequires:	openssl-devel
BuildRequires:  curl-devel
BuildRequires:  zlib-devel
Requires: 	rsync
Requires:       mktemp >= 1.5
Requires:       diffutils
Requires:       git-core
BuildArch:      noarch
Epoch:		1

%description
Cogito is a version control system layered on top of the git tree history
storage system. It aims at seamless user interface and ease of use, providing
generally smoother user experience than the "raw" Core GIT itself and indeed
many other version control systems.

%prep
%setup -q

%build
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
make install DESTDIR=$RPM_BUILD_ROOT prefix=%{_prefix} libdir=%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/cg*
#%{_bindir}/commit-id
#%{_bindir}/parent-id
#%{_bindir}/tree-id
%{_datadir}/%{name}
%doc README VERSION COPYING 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 750 |21cr|coin-4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 80
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Implementation of the Open Inventor API
Name:		coin
Version:	4.0.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.coin3d.org/
Source0:	https://github.com/coin3d/coin/releases/download/Coin-%{version}/coin-%{version}-src.tar.gz
Patch1:		coin-ldflags.patch
Patch3:		0003-man3.patch
Patch5:		0005-gcc-4.7.patch
Patch6:		0006-inttypes.patch
Patch11:	0011-Fix-SoCamera-manpage.patch
# Per this thread Coin provides a dummy GLX implementation which causes issues
# when running under Wayland so we patch it out.
# https://forum.freecadweb.org/viewtopic.php?f=8&t=33359#p279513
Patch12:	coin-no_glx.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ninja
BuildRequires:	boost-devel
BuildRequires:	zlib-devel
BuildRequires:	bzip2-devel
BuildRequires:	fontconfig-devel
BuildRequires:	freetype-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	expat-devel

%description
Coin3D is a high-level, retained-mode toolkit for effective 3D graphics
development. It is API compatible with Open Inventor 2.1.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for Coin
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with Coin.

%files -n %{libname}
%{_libdir}/libCoin.so.%{major}*
%{_libdir}/*.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use Coin
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use Coin.

%files -n %{devname}
%doc README FAQ AUTHORS NEWS RELNOTES THANKS
%doc %{_docdir}/Coin4
%{_bindir}/coin-config
%{_libdir}/*.so
%{_libdir}/cmake/Coin-%{version}
%{_libdir}/pkgconfig/Coin.pc
%{_includedir}/*
%{_datadir}/Coin4
%{_datadir}/info/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n coin

# Update doxygen configuration
doxygen -u docs/coin.doxygen.in

#find -name 'Makefile.*' -exec sed -i -e 's,\$(datadir)/Coin,$(datadir)/Coin4,' {} \;

# bogus permissions
find . \( -name '*.h' -o -name '*.cpp' -o -name '*.c' \) -a -executable -exec chmod -x {} \;

# convert sources to utf-8
for a in $(find . -type f -exec file -i {} \; | grep -i iso | sed -e 's,:.*,,'); do \
  /usr/bin/iconv -f ISO-8859-1 -t utf-8 $a > $a~; \
  mv $a~ $a; \
done

# get rid of bundled boost headers
rm -rf include/boost

%build
%cmake -DCOIN_BUILD_DOCUMENTATION=TRUE \
       -DCOIN_BUILD_DOCUMENTATION_MAN=TRUE \
       -DHAVE_MULTIPLE_VERSION=TRUE \
       -DUSE_EXTERNAL_EXPAT=TRUE \
       -G Ninja

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 751 |21cr|coldfire-0.3.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Freescale Coldfire 5206 Emulator
Name:		coldfire
Version:	0.3.1
Release:	12
License:	GPLv2
Group:		Emulators
URL:		http://www.slicer.ca/coldfire/
Source:		http://www.slicer.ca/coldfire/files/coldfire-%{version}.tar.gz
Patch0:		coldfire-0.3.1-headers.patch
Patch1:		coldfire-0.2.2-manpage.patch
Patch2:		coldfire-0.3.1-gcc10.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)

%description
Coldfire is a Freescale Coldfire 5206 Emulator. It currently features
all but 5 assembly instructions, a full dBug with extra functionality,
both serial ports, the parallel port, interrupts (through telnet
sessions), full exception handling, timers and timer interrupts, and
full tracing capability.

%files
%doc README LICENSE
%{_bindir}/coldfire
%{_mandir}/man1/coldfire.1*
%{_datadir}/coldfire/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .headers
%patch1 -p1 -b .manpage
%patch2 -p1 -b .gcc10

%build
%configure
make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/coldfire
install -m 755 coldfire %{buildroot}%{_bindir}/coldfire
install -m 644 coldfire.1 %{buildroot}%{_mandir}/man1/coldfire.1
install -m 644 boards/* %{buildroot}%{_datadir}/coldfire/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 752 |21cr|colibri-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Alternative notifications for KDE4
Name:		colibri
Version:	0.3.0
Release:	4
Group:		Graphical desktop/KDE
License:	GPLv2
Url:		http://kde-apps.org/content/show.php/Colibri?content=117147
Source0:	ftp://ftp.kde.org/pub/kde/stable/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	kdelibs4-devel
Requires:	kdebase4-workspace

%description
Colibri provides an alternative to KDE4 Plasma notifications.

Colibri notifications look lighter and are completely passive: they do not
provide any buttons. You may or may not like this.

Since they are completely passive, they smoothly fade away when you mouse over
them, allowing you to interact with any window behind them.

They also do not stack each others: if multiple notifications happen, they will
be shown one at a time.

Colibri can be configured from its System Settings module.
If you need help follow the setup howto at 
http://gitorious.org/colibri/pages/SetupHowto.

%files -f %{name}.lang
%{_kde_bindir}/%{name}
%{_kde_libdir}/kde4/kcm_colibri.so
%{_kde_services}/%{name}.desktop
%{_kde_datadir}/autostart/%{name}_autostart.desktop

#---------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 753 |21cr|collectd-5.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}client %{major}
%define devname %mklibname %{name}client -d

Summary:	Collects system information in RRD files
Name:		collectd
Version:	5.12.0
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		http://collectd.org/
Source0:	https://github.com/collectd/collectd/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
Source1:	%{name}.service
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	java-devel
BuildRequires:	libdbi-devel
BuildRequires:	libesmtp-devel
BuildRequires:	libtool-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	mysql-devel
BuildRequires:	net-snmp-devel
BuildRequires:	oping-devel
BuildRequires:	pcap-devel
BuildRequires:	perl-devel
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libiptc)
BuildRequires:	pkgconfig(libip4tc)
BuildRequires:	pkgconfig(libip6tc)
BuildRequires:	pkgconfig(libmemcached)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(librrd)
BuildRequires:	pkgconfig(libstatgrab)
BuildRequires:	pkgconfig(libupsclient)
BuildRequires:	pkgconfig(libvirt)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(OpenIPMI)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(xtables)
Requires(post,preun):	rpm-helper

%description
The collectd daemon collects information about the system it is running on and
writes this information into special database files. These database files can
then be used to generate graphs of the collected data.

%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING README ChangeLog
%{_bindir}/%{name}-nagios
%{_bindir}/%{name}-tg
%{_bindir}/%{name}ctl
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/java
%{_datadir}/%{name}/postgresql_default.conf
%{_datadir}/%{name}/types.db
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so
%{_mandir}/man1/%{name}-nagios.1*
%{_mandir}/man1/%{name}-tg.*
%{_mandir}/man1/%{name}.*
%{_mandir}/man1/%{name}ctl.1*
%{_mandir}/man1/%{name}mon.1*
%{_mandir}/man3/Collectd::Unixsock.3*
%{_mandir}/man5/%{name}-email.5*
%{_mandir}/man5/%{name}-exec.5*
%{_mandir}/man5/%{name}-java.5*
%{_mandir}/man5/%{name}-lua.5*
%{_mandir}/man5/%{name}-perl.5*
%{_mandir}/man5/%{name}-python.5*
%{_mandir}/man5/%{name}-snmp.5*
%{_mandir}/man5/%{name}-threshold.5*
%{_mandir}/man5/%{name}-unixsock.5*
%{_mandir}/man5/%{name}.conf.*
%{_mandir}/man5/types.db.5*
%{_sbindir}/%{name}
%{_sbindir}/%{name}mon
%{_unitdir}/%{name}.service
%{perl_vendorlib}/*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%dir /var/lib/%{name}
%dir /var/log/%{name}
%ghost /var/log/%{name}/%{name}.log
%ghost %dir /var/run/%{name}

%post
%create_ghostfile /var/log/%{name}/%{name}.log root root 644
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Collects system information in RRD files
Group:		System/Libraries

%description -n %{libname}
The collectd daemon collects information about the system it is running on.
This package contains the shared libraries used by %{name}

%files -n %{libname}
%{_libdir}/lib%{name}client.so.1*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Collects system information in RRD files
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The collectd daemon collects information about the system it is running on.
This package contains the development headers.

%files -n %{devname}
%defattr(644,root,root,755)
%{_libdir}/lib%{name}client.so
%{_includedir}/%{name}/client.h
%{_includedir}/%{name}/lcc_features.h
%{_includedir}/%{name}/network.h
%{_includedir}/%{name}/network_buffer.h
%{_includedir}/%{name}/network_parse.h
%{_includedir}/%{name}/server.h
%{_includedir}/%{name}/types.h
%{_libdir}/pkgconfig/lib%{name}client.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

%build
autoreconf -fi
%serverbuild

export CFLAGS="%{optflags} -fno-strict-aliasing -Wno-unused-function"
%configure \
    --with-libperl=%{_prefix} \
    --with-perl-bindings="INSTALLDIRS=vendor" \
    --localstatedir=/var/lib \
    --without-included-ltdl \
    --with-ltdl-include=%{_includedir} \
    --with-ltdl-lib=%{_libdir} \
    --disable-xmms \
    --disable-static

%make

%install
install -d %{buildroot}/var/lib/%{name}
install -d %{buildroot}/var/run/%{name}
install -d %{buildroot}/var/log/%{name}

%makeinstall_std

install -Dm755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

touch %{buildroot}/var/log/%{name}/%{name}.log

# cleanup
rm %{buildroot}%{_libdir}/%{name}/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 754 |21cr|collectl-4.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility to collect various linux performance data
Name:		collectl
Version:	4.3.4
Release:	1
License:	GPL+ or Artistic
Group:		Monitoring
Url:		http://collectl.sourceforge.net
Source0:	https://sourceforge.net/projects/collectl/files/collectl/%{name}-%{version}/%{name}-%{version}.src.tar.gz
Source1:	%{name}.service
Source2:	%{name}.sysconfig
Requires(post,preun,postun):	systemd
BuildArch:	noarch

%description
A utility to collect linux performance data

%files
%doc ARTISTIC COPYING GPL RELEASE-collectl
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_bindir}/%{name}
%{_bindir}/colmux
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/colmux.1*
%{_localstatedir}/log/%{name}/

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build

%install
# create required directories
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}/utils
mkdir -p %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}

# install the files, setting the mode
install -p -m 755  collectl          %{buildroot}%{_bindir}/
install -p -m 755  colmux            %{buildroot}%{_bindir}/
install -p -m 644  *.ph              %{buildroot}%{_datadir}/%{name}
install -p -m 644  envrules.std      %{buildroot}%{_datadir}/%{name}
install -p -m 755  client.pl         %{buildroot}%{_datadir}/%{name}/utils
install -p -m 644  man1/*.1          %{buildroot}%{_mandir}/man1
install -p -m 644  collectl.conf     %{buildroot}%{_sysconfdir}
install -p -m 644  %{SOURCE1}        %{buildroot}%{_unitdir}
install -p -m 644  %{SOURCE2}        %{buildroot}%{_sysconfdir}/sysconfig/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 755 |21cr|colobot-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -Wstrict-aliasing=0

Summary:	A real-time strategy game with programmable bots
Name:		colobot
Version:	0.2.0
Release:	2
License:	GPLv3+
Group:		Games/Strategy
Url:		http://colobot.info
Source0:	https://github.com/colobot/colobot/archive/%{name}-gold-%{version}-alpha.tar.gz?/%{name}-%{name}-gold-%{version}-alpha.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	gettext
BuildRequires:	librsvg2
BuildRequires:	po4a
BuildRequires:	xmlstarlet
BuildRequires:	boost-devel
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{version}
Requires:	%{name}-libs = %{EVRD}

%description
Colobot is a real-time strategy game. In a way. But it isn't.

Unlike most RTS games, Colobot does not require tactics, but it does require
thinking. Another difference would be the fact that you do not control
the game from a 'god' camera, seeing everything from up top, but you have
to control each unit individually. This could potentially cause the problem
of not being able to control two units at once, yet this is when another
twist comes in: Colobot actually has its own interpretation of robot
programming, which is done fully by the player, together with a few hints
and tips from the trusty SatCom.

But then, you can play the game without programming the robots if you want.
This is all up to you!

%files -f %{name}.lang
%doc LICENSE.txt README.md
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/shaders/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man6/%{name}.6*
%{_mandir}/*/man6/%{name}.6*
%{_appdatadir}/*.appdata.xml

#-----------------------------------------------------------------------------------
#
# split out libs package avoid 42 err.
# E: non-versioned-file-in-library-package
#
%package -n %{name}-libs
Summary:	Lib plugin for %{name}
Group:		Games/Strategy

%description -n %{name}-libs
Lib plugin for %{name}.

%files -n %{name}-libs
%{_libdir}/*.so

#-----------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-gold-%{version}-alpha

%build
%setup_compile_flags
%cmake \
	-DCMAKE_BUILD_TYPE=Release			\
	-DCOLOBOT_INSTALL_DATA_DIR:PATH=%{_gamesdatadir}/%{name}	\
	-DCOLOBOT_INSTALL_DOCS=ON			\
	-DCOLOBOT_INSTALL_LIB_DIR:PATH=%{_libdir}
%make

%install
%makeinstall_std -C build

desktop-file-edit %{buildroot}%{_datadir}/applications/%{name}.desktop	\
	--remove-category=AdventureGame	\
	--remove-category=Robotics

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 756 |21cr|colobot-data-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define game colobot

Summary:	Data files for Colobot
Name:		%{game}-data
Version:	0.2.0
Release:	2
License:	GPLv3+
Group:		Games/Strategy
Url:		http://colobot.info
Source0:	https://github.com/colobot/colobot-data/archive/%{game}-gold-%{version}-alpha.tar.gz?/%{name}-%{game}-gold-%{version}-alpha.tar.gz
BuildRequires:	cmake
BuildRequires:	po4a
Recommends:	%{game}-music == %{EVRD}
BuildArch:	noarch

%description
This package contains data files for the Colobot game.

%files
%doc README.i18n.md README.md
%license LICENSE.txt
%{_gamesdatadir}/%{game}/

#----------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{game}-gold-%{version}-alpha

%build
%cmake -DMUSIC=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 757 |21cr|colobot-music-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define game colobot

Summary:	Music files for Colobot
Name:		%{game}-music
Version:	0.2.0
Release:	1
License:	GPLv3+
Group:		Games/Strategy
Url:		http://colobot.info
Source0:	https://colobot.info/files/music/%{name}_ogg_%{version}-alpha.tar.gz
BuildArch:	noarch

%description
This package contains flac music files for the Colobot game.

%files
%license LICENSE.txt
%{_gamesdatadir}/%{game}/music/

#----------------------------------------------------

%prep
%autosetup -c

%build

%install
install -d %{buildroot}%{_gamesdatadir}/%{game}/music
cp -a *.ogg %{buildroot}%{_gamesdatadir}/%{game}/music

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 758 |21cr|colorcode-0.8.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	ColorCode

Name:		colorcode
Version:	0.8.5
Release:	2
Summary:	Advanced MasterMind clone
Source0:	http://colorcode.laebisch.com/download/%{oname}-%{version}.tar.gz
Source1:	https://sources.debian.net/src/colorcode/0.8.5-1/debian/%{name}.6
URL:		http://colorcode.laebisch.com/
License:	GPLv2+
Group:		Games/Puzzles
BuildRequires:	qt5-devel
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)


%description
ColorCode is an advanced MasterMind code-breaking game clone. The program 
accepts setting the number of slots (from 2 to 5), the number of colors 
(from 2 to 10) and setting if colors might be repeated in the secret code 
(doubles allowed or not). The game has 5 built-in levels, from 
level 1 (beginner: 2 slots and 2 colors, with doubles allowed) 
to level 5 (hard: 5 slots and 10 colors, with doubles allowed). 
ColorCode can make guesses in place of the user.

%files
%doc changelog
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*
#-----------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%qmake_qt5
%make

%install
install -Dm 755 %{name} %{buildroot}%{_gamesbindir}/%{name}
install -Dm 644 %{SOURCE1} %{buildroot}%{_mandir}/man6/%{name}.6

for size in 16 32 64; do
  install -Dm 644 img/cc${size}.png \
  %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=ColorCode
Comment=Advanced clone of the MasterMind code-breaking game
GenericName=Advanced MasterMind clone
GenericName[fr]=Clone avancé du jeu MasterMind
GenericName[nb_NO]=Avansert MasterMind-klone
GenericName[nn]=Avansert MasterMind-klone
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 759 |21cr|colordiff-1.0.13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wrapper for diff that produces output with syntax highlighting
Name:		colordiff
Version:	1.0.13
Release:	4
License:	GPLv2+
Url:		http://colordiff.sourceforge.net/
Source0:	http://download.sourceforge.net/sourceforge/colordiff/%{name}-%{version}.tar.gz
Group:		Development/Other
Requires:	diffutils
Requires:	less
Requires:	perl
Requires:	webfetch
BuildArch:	noarch

%description
The Perl script colordiff is a wrapper for diff. It produces the same
output but with syntax highlighting. Color schemes can be customized.

%prep
%setup -q

%build

%install
%{__install} -m 755 -D cdiff.sh %{buildroot}%{_bindir}/cdiff
%{__install} -m 755 -D colordiff.pl %{buildroot}%{_bindir}/colordiff
%{__install} -m 644 -D colordiff.1 %{buildroot}%{_mandir}/man1/colordiff.1
%{__sed} -i -e 's/banner=yes/banner=no/' colordiffrc*
%{__install} -m 644 -D colordiffrc %{buildroot}%{_sysconfdir}/colordiffrc

%files
%doc BUGS CHANGES colordiffrc-lightbg COPYING README
%{_bindir}/cdiff
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/colordiffrc
%{_mandir}/man1/colordiff*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 760 |21cr|colord-kde-0.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Colord support for KDE
Name:		colord-kde
Version:	0.3.0
Release:	5
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://dantti.wordpress.com/
Source0:	http://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2
Patch0:		colord-kde-0.3.0-cmake34.patch
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(lcms2)
Requires:	kdebase4-runtime
Requires:	colord

%description
KDE support for colord including KDE Daemon module and System Settings module.

%files
%doc COPYING MAINTAINERS TODO
%{_kde_applicationsdir}/colordkdeiccimporter.desktop
%{_kde_bindir}/colord-kde-icc-importer
%{_kde_libdir}/kde4/k*_colord.so
%{_kde_services}/kcm_colord.desktop
%{_kde_services}/kded/colord.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 761 |21cr|colorer-take5-0-0.beta5.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname colorer %{major}
%define devname %mklibname colorer -d

Summary:	Syntax highlighting and text parsing library
Name:		colorer-take5
Version:	0
Release:	0.beta5.7
License:	MPL
Group:		Text tools
Url:		http://colorer.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/colorer/Colorer-take5-linux.be5.tar.bz2
Patch0:		colorer-optflags.diff
Patch1:		colorer-soname.diff
Patch2:		colorer-DESTDIR.diff
Patch3:		colorer-take5-fix-missing-include.patch
BuildRequires:	libstdc++-devel

%description
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.

%files
%{_bindir}/colorer

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Syntax highlighting and text parsing library
Group:		System/Libraries

%description -n %{libname}
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.

%files -n %{libname}
%doc LICENSE README
%{_libdir}/libcolorer.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the %{name} library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-base = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	libcolorer-devel = %{EVRD}

%description -n %{devname}
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.

This package contains the development files for the %{name} library.

%files -n %{devname}
%{_includedir}/colorer
%{_libdir}/libcolorer.so
%{_datadir}/colorer/bin

#----------------------------------------------------------------------------

%package base
Summary:	Common files for Colorer take5
Group:		Text tools

%description base
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.

This package contains common files for Colorer take5.

%files base
%{_datadir}/colorer/catalog.xml
%{_datadir}/colorer/hrc
%{_datadir}/colorer/hrd

#----------------------------------------------------------------------------

%package docs
Summary:	Documentation for Colorer take5
Group:		Documentation

%description docs
Colorer take5 is a syntax highlighting and text parsing library, that provides
services of text parsing in host editor systems in real-time and transforming
results into colored text. Result information allows to search and build
outlined lists of functions, structures, and to search and indent programming
language constructions (brackets, paired tags). Colorer uses pure C++, XML, it
is fully portable and works on either win32/unix/mac platforms. Top level Java
language API is also available.

This package contains the documentation for Colorer take5.

%files docs
%doc installed_docs/*

#----------------------------------------------------------------------------

%prep
%setup -q -c -n %{name}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%configure

%make RPM_OPT_FLAGS="%{optflags} -fpermissive -Wall -fPIC"

%install
%makeinstall_std

ln -snf libcolorer.so.%{major} %{buildroot}%{_libdir}/libcolorer.so

rm -f %{buildroot}%{_datadir}/colorer/{LICENSE,README}

rm -rf installed_docs
mv %{buildroot}%{_datadir}/doc/colorer-take5 installed_docs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 762 |21cr|colorgcc-1.3.2-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GCC output colorizer
Name:		colorgcc
Version:	1.3.2
Release:	20
License:	GPLv2+
Group:		Development/C
Url:		http://www.schlueters.de/colorgcc.html
Source0:	%{name}-%{version}.tar.bz2
Patch0:		005_old_changes.patch
Patch1:		01_split_non_quoted.patch
Patch2:		02_stderr.patch
Patch3:		03_color_warnings.patch
Patch4:		04_g++_color.patch
Patch5:		05_console-colors.patch
Patch6:		06_use_distcc.patch
Patch7:		07_invalid_attr.patch
Patch8:		08_force_color_opt.patch 
Patch9:		09_color_warnings.patch
Patch10:	10_utf8_output.patch
Patch11:	colorgcc-1.3.2-handle-translated-output.patch
Patch12:	colorgcc-1.3.2-dont-use-unitialized-env-value.patch
# fix so that colorgcc wrapper will work with other wrappers such as ie.
# icecream, distcc & ccache
Patch13:	colorgcc-1.3.2-get-gcc-path-properly.patch
# magenta color is easier on the eyes than dark blue, especially when using a
# dark background
Patch14:	colorgcc-1.3.2-make-linenumber-magenta-colored.patch
Requires:	gcc
BuildArch:	noarch
%rename		gcc-colorgcc

%description
ColorGCC is a Perl wrapper to colorize the output of compilers with
warning and error messages matching the GCC output format.

This package is configured to run with the associated system compiler. If you
want to use it for another compiler (e.g. gcc 2.96), you may have to define
gccVersion: 2.96 and uncomment the respective compiler paths in
%{_sysconfdir}/colorgccrc for a system-wide effect, or in ~/.colorgccrc for
your user only.

%files
%doc COPYING CREDITS ChangeLog
%config(noreplace) %{_sysconfdir}/colorgccrc
%{_sysconfdir}/profile.d/*
%{_bindir}/colorgcc
%{_datadir}/colorgcc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

cat <<'EOF' > colorgcc.sh
case ":${PATH}:" in
    :: )
	PATH=%{_datadir}/%{name}
	export PATH
    ;;
    *:%{_datadir}/%{name}:* )
	: Already set
    ;;
    * )
	PATH=%{_datadir}/%{name}:$PATH
	export PATH
    ;;
esac
EOF

cat <<'EOF' > colorgcc.csh
if ( $?PATH ) then
    switch (:${PATH}:)
	case *":%{_datadir}/%{name}:"* :
		breaksw
	default :
		setenv PATH %{_datadir}/%{name}:$PATH
		breaksw
	endsw
else
   setenv PATH %{_datadir}/%{name}
endif
EOF

%build

%install
install -D -m 755 colorgcc     %{buildroot}%{_bindir}/colorgcc
install -D -m 644 colorgccrc   %{buildroot}%{_sysconfdir}/colorgccrc
install -D -m 644 colorgcc.sh  %{buildroot}%{_sysconfdir}/profile.d/90colorgcc.sh
install -D -m 644 colorgcc.csh %{buildroot}%{_sysconfdir}/profile.d/90colorgcc.csh

install -d %{buildroot}%{_datadir}/%{name}
ln -s ../../bin/colorgcc %{buildroot}%{_datadir}/%{name}/colorgcc
for i in gcc cc g++ c++ gfortran gcj; do
    ln -s colorgcc %{buildroot}%{_datadir}/%{name}/$i
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 763 |21cr|colorhug-client-0.2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for the Hughski Colorimeter
Name:		colorhug-client
Version:	0.2.8
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://www.hughski.com/
Source0:	http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
Patch0:		colorhug-client-0.2.8-no-man.patch
BuildRequires:	intltool
BuildRequires:	itstool
#BuildRequires:	docbook-to-man
BuildRequires:	docbook-utils
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(colord-gtk)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gusb)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
The Hughski ColorHug colorimeter is a low cost open-source hardware
sensor used to calibrate screens.

This package includes the client tools which allows the user to upgrade
the firmware on the sensor or to access the sensor from command line
scripts.

%files -f %{name}.lang
%doc README AUTHORS NEWS COPYING
%{_bindir}/colorhug*
%{_datadir}/%{name}
%{_libexecdir}/colorhug*
%{_datadir}/appdata/com.hughski.ColorHug.*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/bash-completion/completions/colorhug-cmd
%{_datadir}/glib-2.0/schemas/com.hughski.colorhug-client.gschema.xml
%{_iconsdir}/hicolor/*/apps/*
%{_iconsdir}/hicolor/*/mimetypes/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 764 |21cr|colorize-0.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Colorized output from tail, like your log files
Name:		colorize
Version:	0.3.5
Release:	1
License:	GPLv2+
Group:		Text tools
URL:		http://www.solbu.net/hoved/english/software.htm
Source0:	http://www.solbu.net/progs/%{name}-%{version}.tar.gz
Requires:	perl
BuildArch:	noarch

%description
This is a perl script, made by Istvan Karaszi, to colorize' your logs.
You can use your own colors, you can simply modify your configuration file 
in your home directory ($HOME), or system-wide (/etc/colorizerc).

%files
%doc README.md THANKS TIPS TODO examples changelog.gz
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -m644 %{name}.1.gz -D %{buildroot}%{_mandir}/man1/%{name}.1.gz
install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}
install -m644 %{name}rc -D %{buildroot}%{_sysconfdir}/%{name}rc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 765 |21cr|colorprompt-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define profilefile 92user-color.sh
%define profilefile2 92user-color-clock.sh

Summary:	Make the user prompt in bash different colors depending on your user
Name:		colorprompt
Version:	1.0
Release:	1
License:	GPLv3+
Group:		Shells
Url:		https://github.com/solbu/colorprompt
Source0:	https://github.com/solbu/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
A little bash profile extension to color your user prompt appropriately.
It will make regular logins green and root logins red.

%files
%doc AUTHORS COPYING README
%{_sysconfdir}/profile.d/%{profilefile}

#----------------------------------------------------------------------------

%package clock
Summary:	Make the user prompt in bash different colors depending on your user
Group:		Shells

%description clock
A little bash profile extension to color your user prompt appropriately.
It will make regular logins green and root logins red.

This version also add a timestamp at the front of the prompt,
showing a timestamp of when the previous command completed.

%files clock
%doc AUTHORS COPYING README
%{_sysconfdir}/profile.d/%{profilefile2}

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -D -m 0644 %{profilefile} %{buildroot}%{_sysconfdir}/profile.d/%{profilefile}
install -D -m 0644 %{profilefile2} %{buildroot}%{_sysconfdir}/profile.d/%{profilefile2}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 766 |21cr|colortail-0.3.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	A colorised tail with configuration files
Name:		colortail
Version:	0.3.3
Release:	4
URL:		http://joakimandersson.se/projects/colortail/
Source:		%{name}-%{version}.tar.gz
License:	GPLv2+
Group:		Monitoring
BuildRequires:	automake autoconf 

%description
Colortail is a log colorizer make log checking easier. 
It works like tail but can read one or more configuration files. 
In which it's specified which patterns result in which colors. 

%prep
%setup -q

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall
install -d %{buildroot}/%{_sysconfdir}/%{name}
install -m 0644 example-conf/conf* %{buildroot}/%{_sysconfdir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc INSTALL README AUTHORS ChangeLog BUGS TODO
%attr(0755,root,root) %dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 767 |21cr|comex-0.1.6.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Console interface for comex project
Name:		comex
Version:	0.1.6.1
Release:	5
License:	GPLv2+
Group:		Text tools
Url:		http://comex-project.googlecode.com/
Source0:	http://comex-project.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		comex-0.1.6.1-mcs.patch
BuildRequires:	mono
BuildRequires:	comex-base-devel >= 0.1.8.5
BuildRequires:	log4net-devel
Requires:	comex-base >= 0.1.8.5
Requires:	log4net
Requires:	mono
BuildArch:	noarch

%description
Is console interface of a simple application that can be used to exchange
data with smartcards using PC/SC standard readers or smartmouse
phoenix serial reader.

%files
%doc copying.gpl comex/readme.txt
%{_bindir}/%{name}
%{_prefix}/lib/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--libdir=%{_prefix}/lib
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 768 |21cr|comex-base-0.1.8.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Base component for comex project
Name:		comex-base
Version:	0.1.8.5
Release:	7
License:	GPLv2+
Group:		Office
Url:		http://comex-project.googlecode.com/
Source0:	http://comex-project.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:	mono.snk
Patch0:		comex-base-0.1.8.5-mcs.patch
BuildRequires:	log4net-devel
BuildRequires:	pkgconfig(mono)
Requires:	mono
Requires:	log4net
Requires:	pcsc-lite
BuildArch:	noarch

%description
Is base component of a simple application that can be used to exchange
data with smartcards using PC/SC standard readers or smartmouse
phoenix serial reader.

%files
%doc copying.gpl comex-base/Docs/readme
%{_prefix}/lib/mono/gac/comex-base/
%{_prefix}/lib/mono/comex-base
%{_prefix}/lib/%{name}/
%{_datadir}/%{name}/

#----------------------------------------------------------------------------

%package devel
Summary:	Base component for comex project
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Is base component of a simple application that can be used to exchange
data with smartcards using PC/SC standard readers or smartmouse
phoenix serial reader.

%files devel
%{_datadir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# Use the mono system key instead of generating our own here.
%if %{mdvver} >= 201100
  cp %{_sysconfdir}/pki/mono/mono.snk comex-base/comex-base.snk
%else
  cp -f %{SOURCE1} comex-base/comex-base.snk
%endif
%configure \
	--prefix=%{_prefix} \
	--libdir=%{_prefix}/lib
%make

%install
mkdir -p %{buildroot}%{_datadir}/pkgconfig
%makeinstall_std linuxpkgconfigdir=%{_datadir}/pkgconfig
mkdir -p %{buildroot}%{_prefix}/lib/mono/gac/
gacutil -i %{buildroot}%{_prefix}/lib/%{name}/comex-base.dll \
        -f \
        -package %{name} \
        -root %{buildroot}%{_prefix}/lib/ \
        -gacdir %{buildroot}%{_prefix}/lib/mono/gac

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 769 |21cr|comex-gtk-0.1.6.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	GTK user interface for comex project
Name:		comex-gtk
Version:	0.1.6.2
Release:	4
License:	GPLv2+
Group:		Office
Url:		http://comex-project.googlecode.com/
Source0:	http://comex-project.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		comex-gtk-0.1.6.2-mcs.patch
BuildRequires:	glade-sharp2
BuildRequires:	mono
BuildRequires:	comex-base-devel >= 0.1.8.5
BuildRequires:	gtk-sharp2-devel
BuildRequires:	log4net-devel

Requires:	comex-base >= 0.1.8.5
Requires:	glade-sharp2
Requires:	glib-sharp2
Requires:	gtk-sharp2
Requires:	log4net
Requires:	mono
BuildArch:	noarch

%description
Is GTK user interface of a simple application that can be used to exchange
data with smartcards using PC/SC standard readers or smartmouse
phoenix serial reader.

%files
%doc copying.gpl comex-gtk/readme
%{_bindir}/%{name}
%{_prefix}/lib/%{name}/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--libdir=%{_prefix}/lib
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 770 |21cr|comgt-0.32-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define old_name gcom

Summary:	GPRS/EDGE/3G/HSDPA datacard control tool
Name:		comgt
Version:	0.32
Release:	22
License:	GPLv2+
Group:		Communications
Url:		http://pharscape.org/comgt.html
Source0:	http://www.pharscape.org/3G/%{name}/%{name}.%{version}.tgz
Patch0:		comgt-0.32-string-format.patch
Patch1:		comgt-0.32-fix-man-page-typo.patch
Requires:	usb_modeswitch
Provides:	%{old_name} = %{EVRD}

%description
comgt is a datacard control tool for Option GlobeTrotter GPRS/EDGE/3G/HSDPA
and Vodafone 3G/GPRS.

It is a scripting language interpreter useful for establishing communications
on serial lines and through PCMCIA modems as well as GPRS and 3G datacards.

comgt has some features that are rarely found in other utilities of the same
type.

%files
%defattr(644,root,root,755)
%doc CHANGELOG gprs.txt TODO umts.txt
%{_mandir}/man1/%{name}.1*
%defattr(755,root,root,755)
%{_sbindir}/%{name}
%{_sbindir}/%{old_name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}.%{version}
%patch0 -p1 -b .str_format~
%patch1 -p1 -b .man_typo~

%build
%make CFLAGS="-c %{optflags}" LDFLAGS="%{ldflags}"

%install
install -m755 %{name} -D %{buildroot}%{_sbindir}/%{name}
install -m644 %{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1
ln -s %{_sbindir}/%{name} %{buildroot}%{_sbindir}/%{old_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 771 |21cr|command-not-found-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		command-not-found
Version:	1.3
Release:	7
Summary:	Command-not-found tool for ROSA and OpenMandriva
Group:		File tools
License:	GPLv2
URL:		https://abf.io/soft/command-not-found
Source0:	https://abf.io/soft/%{name}/archive/%{name}-%{version}.tar.gz
Patch0:		file-not-found-python2.patch
BuildRequires:	python(abi) = 2.7
Requires:	command-not-found-data
Requires:	python-json
BuildArch:	noarch

%description
When you call non-existent command in bash, you will get a 
list of packages (with repositories) where you can find this command
or similar ones.

%prep
%autosetup -p1

%install
export PYTHON=%__python2
for d in `python localizer.py --list`; do\
    mkdir -p %{buildroot}/usr/share/locale/$d/LC_MESSAGES;\
    install -m 644 locale/$d/LC_MESSAGES/%{name}.mo %{buildroot}/usr/share/locale/$d/LC_MESSAGES/%{name}.mo;\
done
mkdir -p %{buildroot}/usr/bin
mkdir -p %{buildroot}/etc/profile.d
cp command-not-found.py  %{buildroot}/usr/bin/cnf
cp handler.sh %{buildroot}/etc/profile.d/91cnf.sh

%find_lang %{name}

%files -f %{name}.lang
/usr/bin/cnf
/etc/profile.d/91cnf.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 772 |21cr|command-not-found-data-2013.02.21-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           command-not-found-data
Version:        2013.02.21
Release:        7
Summary:        Data files for command-not-found
Group:          File tools
License:        GPLv2
URL:            N/A
Source0:        %{name}-%{version}.tar.gz
BuildArch:      noarch

%description
Contains data files for command-not-found tool.
This package will be rebuilt every week with new data.

%prep
%setup -q -n %{name}

%install
mkdir -p %{buildroot}/usr/share/command-not-found
cp data.json %{buildroot}/usr/share/command-not-found/data.json

%files
%dir /usr/share/command-not-found/
/usr/share/command-not-found/data.json

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 773 |21cr|commit-patch-2.5.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility that lets you check select portions of a file into a VCS
Name:		commit-patch
Version:	2.5.2
Release:	4
License:	GPLv2
Group:		Text tools
Url:		http://porkrind.org/commit-patch/
Source0:	https://github.com/caldwell/commit-patch/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
Jim Radford and David Caldwell wrote a neat little utility that lets you check
in select portions of a file into Darcs, Git, CVS, Subversion, or Mercurial. It
comes as a command line app and also and emacs interface.

A blog entry (http://porkrind.org/missives/commit-patch-managing-your-mess)
about commit-patch provides some detailed information on why you might want to
use commit-patch.

commit-patch and commit-partial can make commiting partial changes easier with:
-darcs
-git
-mercurial
-cvs
-svn

commit-patch-buffer.el is an emacs interface to commit-patch. It allows you to
just hit C-c C-c in any patch buffer to apply and commit only the changes
indicated by the patch, regardless of the changes in your working directory. 

%files
%{_bindir}/commit-partial
%{_bindir}/commit-patch
%{_mandir}/man1/commit-*.1*
%{_datadir}/emacs/site-lisp/%{name}*.el

#----------------------------------------------------------------------------

%prep
%setup -q

%install
install -d %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1/ %{buildroot}%{_datadir}/emacs/site-lisp
install -m 755 %{name} %{buildroot}%{_bindir}
install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/commit-partial.1
install -m 644 *.el %{buildroot}%{_datadir}/emacs/site-lisp/
ln -s %{name} %{buildroot}%{_bindir}/commit-partial


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 774 |21cr|commoncpp2-1.8.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api	1.8
%define major	0
%define libccext2	%mklibname ccext2_ %{api} %{major}
%define libccgnu2	%mklibname ccgnu2_ %{api} %{major}
%define devname		%mklibname %{name} -d

Summary:	A GNU package for creating portable C++ programs
Name:		commoncpp2
Version:	1.8.1
Release:	11
Group:		Development/C++
License:	GPLv2
Url:		http://www.gnutelephony.org
Source0:	http://ftp.gnu.org/gnu/commoncpp/%{name}-%{version}.tar.gz
Patch0:		applog_pipe.patch
# Fix mkfifo modes: S_IREAD | S_IWRITE -> S_IRUSR | S_IWUSR
Patch1:		commoncpp2-statfix.patch
# Fix build against GCC9+
Patch2:		commoncpp2-gcc9.patch
# Fix two occurences of incorrect sizeof usage
Patch3:		commoncpp2_sizeof.patch
# Replace obsolete macros
Patch4:		commoncpp2_obsoletem4.patch
# Call setgroups before setuid
Patch5:		commoncpp2_setgroups.patch
# Disable thread1 test which is badly written and hangs (or takes a very long time)
# Add return code to detect failure/success
Patch6:		commoncpp2_tests.patch
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	glibc-static-devel
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(zlib)

%description
Common C++2 is a GNU package which offers portable "abstraction" of system
services such as threads, networks, and sockets. Common C++ also offers
individual frameworks generally useful to developing portable C++ applications
including a object persistance engine, math libraries, threading, sockets, etc.

Common C++2 is small, and highly portable. Common C++ will support most Unix
operating systems as well as Win32, in addition to GNU/Linux.

#----------------------------------------------------------------------------

%package -n %{libccext2}
Summary:	A GNU package for creating portable C++ program
Group:		System/Libraries
Conflicts:	%{_lib}commoncpp2_1.8 < 1.8.1-4
Obsoletes:	%{_lib}commoncpp2_1.8 < 1.8.1-4

%description -n %{libccext2}
This package contains the shared library part of CommonC++.

%files -n %{libccext2}
%{_libdir}/libccext2-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libccgnu2}
Summary:	A GNU package for creating portable C++ program
Group:		System/Libraries
Conflicts:	%{_lib}commoncpp2_1.8 < 1.8.1-4

%description -n %{libccgnu2}
This package contains the shared library part of CommonC++.

%files -n %{libccgnu2}
%{_libdir}/libccgnu2-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A GNU package for creating portable C++ program
Group:		Development/C++
Requires:	%{libccext2} = %{EVRD}
Requires:	%{libccgnu2} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}commoncpp-devel < 1.8.1-4
# Keep it for a while
Provides:	libcommoncpp-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and documentation needed to build
programs with CommonC++.

%files -n %{devname}
%doc AUTHORS NEWS README TODO COPYING COPYING.addendum THANKS ChangeLog doc/html 
%{_bindir}/ccgnu2-config
%{_includedir}/cc++
%{_datadir}/aclocal/*
%{_infodir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
export CXXFLAGS="%{optflags} -std=gnu++14"
./autogen.sh
%configure \
	--disable-static

# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
# -Wl,--as-needed after all the libraries.
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \
    -i libtool

# Parallel build occasionally broken
%make -j1

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 775 |21cr|comp-cab-setup-4.0-1.git0d2a19.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 0d2a19e7c383df078ff46e9f64dc7eea65061c51
%define commit_short %(echo %{commit} | head -c6)
%define proj comp-cab-setup

Summary(ru_RU.UTF-8):	Управление компьютерным классом
Summary:	Computer class setup
Name:		comp-cab-setup
Version:	4.0
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		Education
Url:		https://hub.mos.ru/mos/src/%{proj}
Vendor:		MOS
Source0:	https://hub.mos.ru/mos/src/%{proj}/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch:	noarch
BuildRequires:	desktop-file-utils
Requires:	python3-qt5
Requires:	python3-paramiko
Requires:	sshpass
Requires:	py-ini-config
Requires:	sshfs-fuse

%description
%{summary}.

%description -l ru_RU.UTF-8
Приложение для настройки управления компьютерным классом с использованием ssh и Veyon.

%files
%{_bindir}/%{name}
%{_libexecdir}/%{name}
%{python3_sitelib}/comp_cab_setup_modules
%{_iconsdir}/hicolor/scalable/apps/comp-cab-setup.svg
%{_datadir}/applications/comp-cab-setup.desktop
%{_datadir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -n %{proj}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libexecdir}/%{name}
mkdir -p %{buildroot}%{python3_sitelib}/comp_cab_setup_modules
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_datadir}/%{name}

install -m755 app.py %{buildroot}%{_libexecdir}/%{name}
install -m644 style.css %{buildroot}%{_libexecdir}/%{name}
cat << EOF > %{buildroot}%{_bindir}/%{name}
#!/bin/sh
%{_libexecdir}/%{name}/app.py
EOF
chmod 755 %{buildroot}%{_bindir}/%{name}
install -m644 comp_cab_setup_modules/*.py %{buildroot}%{python3_sitelib}/comp_cab_setup_modules
install -m644 comp_cab_setup_modules/*.rules %{buildroot}%{_datadir}/%{name}
install -m644 comp_cab_setup_modules/*.sh %{buildroot}%{_datadir}/%{name}
install -m644 comp-cab-setup.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps
desktop-file-install %{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 776 |21cr|compcache-0.6.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Compcache provides the ability to use part of the RAM as compressed swap
Name:		compcache
Version:	0.6.2
Release:	10
License:	BSD and GPLv2+
Group:		System/Kernel and hardware
Url:		http://code.google.com/p/compcache/
Source0:	http://compcache.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:	compcache.service
Source2:	compcache.sysconfig

%description
Compcache (compressed caching) provides the ability to use part of the RAM as
compressed swap. In other words, you can take a portion of your RAM (default
25%) and use it as swap, compressing the data before moving it into swap, and
decompressing it when moving it out of swap. This is a classic time-space
trade-off. You effectively get more memory, but some of it is slower than
normal RAM due to the CPU time required to compress and decompress the swapped
pages.

%files
%doc README Changelog
%{_unitdir}/%{name}*
%config %{_sysconfdir}/sysconfig/%{name}
%{_sbindir}/rzscontrol
%{_mandir}/man1/rzscontrol.1*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q
install -m0755 %{SOURCE1} compcache.service
install -m0755 %{SOURCE2} compcache.sysconfig

%build
%make -C sub-projects/rzscontrol/

%install
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m755 compcache.service -D %{buildroot}%{_unitdir}/%{name}.service
install -m0755 compcache.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m0755 sub-projects/rzscontrol/rzscontrol %{buildroot}%{_sbindir}
install -m0755 sub-projects/rzscontrol/rzscontrol %{buildroot}%{_sbindir}
install -m0644 sub-projects/rzscontrol/man/rzscontrol.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 777 |21cr|compface-1.5.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	Image from/to X-Face conversion utilities
Name:		compface
Version:	1.5.2
Release:	11
License:	MIT
Group:		Graphics
Source0:	http://freshmeat.net/redir/compface/1439/url_tgz/%{name}-%{version}.tar.bz2
# originally from http://ftp.debian.org/debian/pool/main/libc/libcompface/libcompface_1.5.2-5.diff.gz
Patch0:         libcompface_1.5.2-5.diff
Patch2:         compface-1.5.2-build.patch

%description
Compface provides utilities to convert from/to X-Face format, a 48x48 bitmap
format used to carry thumbnails of email authors in a mail header.

%package -n	%{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n	%{libname}
Compface provides utilities to convert from/to X-Face format, a 48x48 bitmap
format used to carry thumbnails of email authors in a mail header.

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} >= %{version}
Obsoletes:	%{name}-devel < 1.5.2-3
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
Compface provides utilities to convert from/to X-Face format, a 48x48 bitmap
format used to carry thumbnails of email authors in a mail header.

This package provides the development files for %{name}.

%prep

%setup -q
%patch0 -p1
%patch2 -p0

%build
export CFLAGS="%{optflags} -fPIC"

%configure
%make

%install
rm -rf %{buildroot}

%makeinstall_std STRIP=/bin/true

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README ChangeLog
%attr(0755,root,root) %{_bindir}/*
%{_mandir}/man1/compface.1*
%{_mandir}/man1/uncompface.1*

%files -n %{libname}
%defattr(-,root,root,-)
%{_libdir}/lib*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root,-)
%{_libdir}/lib*.so
%{_includedir}/compface.h
%{_mandir}/man3/compface.3*
%{_mandir}/man3/uncompface.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 778 |21cr|compiz0.8-bcop-0.8.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname compiz-bcop
%define shortname bcop

Name:		compiz0.8-bcop
Version:	0.8.8
Release:	6
Summary:	BCOP: Compiz Fusion plugin build utility
Group:		System/X11
License:	GPLv2
URL:		http://www.compiz.org/
Source:		http://releases.compiz.org/components/%{oname}/%{oname}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libxslt)
Requires:	xsltproc
Conflicts:	compiz > 0.9
BuildArch:	noarch

%description
BCOP: Compiz Fusion plugin build utility.

%prep
%setup -q -n %{oname}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/%{shortname}
%dir %{_datadir}/%{shortname}
%{_datadir}/%{shortname}/%{shortname}.xslt
%{_datadir}/pkgconfig/%{shortname}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 779 |21cr|compiz-fusion-2012.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		compiz-fusion
Version:	2012.1
Release:	7
Summary:	Compiz Fusion OpenGL compositing manager
License:	GPLv2
Group:		System/X11
URL:		http://www.compiz.org/
Source0:	%{name}
Source1:	%{name}.defaults
Requires:	compiz0.8
Requires:	ccsm0.8
Requires:	compiz-fusion-plugins-main
Conflicts:	compiz > 0.9
BuildArch:	noarch

%description
Compiz Fusion is a set of applications based on the compiz OpenGL
compositing manager.

It uses the ccp configuration backend, contains additional compiz
plugins, and provides the ccsm configuration interface.

This package provides some helper scripts and contains the necessary
dependancies to pull in the relevent required packages.

%prep
%setup -q -T -c

%build

%install
install -d %{buildroot}%{_bindir}
install -m755 %{SOURCE0} %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/compositing-wm
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/compositing-wm

%files
%{_bindir}/%{name}
%{_datadir}/compositing-wm/%{name}.defaults

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 780 |21cr|compsize-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility for measuring compression ratio of files on btrfs
Name:		compsize
Version:	1.5
Release:	1
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/kilobyte/compsize
Source0:	https://github.com/kilobyte/compsize/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libbtrfsutil)
# compat with Debian/Ubuntu
Provides:	btrfs-compsize = %{EVRD}

%description
compsize takes a list of files (given as arguments) on a btrfs filesystem and
measures used compression types and effective compression ratio, producing
a report.

%files
%license LICENSE
%doc README.md
%{_bindir}/compsize
%{_bindir}/btrfs-compsize
%{_mandir}/man8/compsize.8*
%{_mandir}/man8/btrfs-compsize.8*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
%make

%install
# `make install` uselessly compresses man page into gzip
install -D -m0755 %{name} %{buildroot}%{_bindir}/compsize
install -D -m0644 %{name}.8 %{buildroot}%{_mandir}/man8/compsize.8

cd %{buildroot}%{_bindir}
ln -s compsize btrfs-compsize
cd %{buildroot}%{_mandir}/man8
ln -s compsize.8 btrfs-compsize.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 781 |21cr|compton-0.2-0.git316eac.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 316eac0613bf342ff91cc645a6c3c80e6b9083fb
%define commit_short %(echo %{commit} | head -c6)

Name:		compton
Version:	0.2
Release:	0.git%{commit_short}.1
Summary:	Compositor for X
Group:		System/X11
License:	MIT
Url:		https://github.com/chjj/%{name}
Source0:	https://github.com/chjj/compton/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libconfig)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
Requires:	xprop
Requires:	xwininfo

%description
Compton is a compositor for X, and a fork of xcompmgr-dana.

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-trans
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-trans.1.*
%{_iconsdir}/hicolor/48x48/apps/compton.png
%{_iconsdir}/hicolor/scalable/apps/compton.svg

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}

%build
CFLAGS="%{optflags}" make
make docs

%install
%makeinstall_std
rm -f %{buildroot}%{_datadir}/applications/compton.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 782 |21cr|compton-conf-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Deprecated

Summary:	Compositor for X - configuration files
Name:		compton-conf
Version:	0.15.0
Release:	1
License:	MIT
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/compton-conf/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(libconfig)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	compton

%description
This is LXQt configure tools for Compton - compositor for X.

%files
%doc AUTHORS CHANGELOG COPYING README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/compton.conf.example
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_datadir}/applications/%{name}.desktop
%{_sysconfdir}/xdg/autostart/lxqt-compton.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

desktop-file-edit --remove-category=LXQt --add-category=X-LXQt \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 783 |21cr|comsat-0.17-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/

Summary:	A mail checker client and comsat mail checking server
Name:		comsat
Version:	0.17
Release:	15
License:	BSD
Group:		Networking/Mail
Url:		http://freshmeat.net/projects/netkit/
Source0:	ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/biff+comsat-%{version}.tar.bz2
Source1:	%{name}-xinetd
Patch0:		biff+comsat-0.10-nobr.patch
Patch1:		biff+comsat-0.17-no-strip.patch
Requires:	xinetd
Provides:	biff = %{EVRD}

%description
The biff client and comsat server are an antiquated method of
asynchronous mail notification.  Although they are still supported, most
users use their shell's MAIL variable (or csh shell's mail variable) to
check for mail, or a dedicated application like xbiff or xmailbox.  If
the comsat service is not enabled, biff won't work and you'll need to use
either the MAIL or mail variable.

You may want to install biff if you'd like to be notified when mail
arrives. However, you should probably check out the more modern
methodologies of mail notification (xbiff or xmailbox) instead.

%files
%{_bindir}/biff
%{_sbindir}/in.comsat
%config(noreplace) %{_sysconfdir}/xinetd.d/comsat
%{_mandir}/man[18]/*

#----------------------------------------------------------------------------

%prep
%setup -q -n biff+comsat-%{version}
%patch1 -p1
%patch0 -p1

%build
sh configure --with-c-compiler=gcc

perl -pi -e '
    s,^CC=.*$,CC=cc,;
    s,^BINDIR=.*$,BINDIR=%{_bindir},;
    s,^MANDIR=.*$,MANDIR=%{_mandir},;
    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
    ' MCONFIG

sed s/"-O2"/"%{optflags}"/g -i MCONFIG

%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man8

make install INSTALLROOT=%{buildroot} MANDIR=%{_mandir}

rm %{buildroot}%{_mandir}/man8/comsat.8
ln -s in.comsat.8.bz2 %{buildroot}%{_mandir}/man8/comsat.8.bz2

install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/comsat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 784 |21cr|concordance-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	6
%define libname	%mklibname concord %major
%define devname	%mklibname concord -d 

Summary:	Command-line Logitech Harmony remote programmer
Name:		concordance
Version:	1.5
Release:	1
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		http://www.phildev.net/harmony/
Source:		https://github.com/jaymzh/concordance/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	swig
BuildRequires:	perl-devel
BuildRequires:	zziplib-devel
BuildRequires:	pkgconfig(hidapi-libusb)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
Requires:	%{libname} = %{EVRD}

%description
This command-line software allows you to program your Logitech Harmony
remote using a configuration object retrieved from the Harmony website.

%files
%doc Changelog CodingStyle LICENSE SubmittingPatches TODO README.md %{name}/INSTALL.linux
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

#------------------------------------------------------------------

%package -n libconcord-common
Summary:	Common files of libconcord
Group:		System/Libraries

%description -n libconcord-common
Common files required by Logitech Harmony remote programmer library.

%files -n libconcord-common
%doc Changelog CodingStyle LICENSE SubmittingPatches libconcord/README libconcord/INSTALL.linux
%{_datadir}/mime/packages/libconcord.xml
/lib/udev/start_%{name}_dhcpd.sh
/lib/udev/start_%{name}_dhcpd_wrapper.sh
%{_udevrulesdir}/80-libconcord-usbnet.rules
%{_udevrulesdir}/60-libconcord.rules

%post -n libconcord-common
# apply new/updated rules
/sbin/udevadm trigger --subsystem-match=usb --attr-match=idVendor=046d --attr-match=idProduct="c1*"
/sbin/udevadm trigger --subsystem-match=usb --attr-match=idVendor=0400 --attr-match=idProduct="c359"

#------------------------------------------------------------------

%package -n %{libname}
Summary:	System library of libconcord
Group:		System/Libraries
Requires:	libconcord-common = %{EVRD}

%description -n %{libname}
Logitech Harmony remote programmer library for applications that use it.

%files -n %{libname}
%{_libdir}/libconcord.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for libconcord
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	concord-devel = %{EVRD}

%description -n %{devname}
Development headers for developing applications that use libconcord, a
Logitech Harmony remote programmer library.

%files -n %{devname}
%doc libconcord/README TODO
%{_bindir}/consnoop
%{_includedir}/libconcord.h
%{_libdir}/libconcord.so

#------------------------------------------------------------------

%package -n perl-concord
Summary:	Perl bindings for libconcord
Group:		Development/Perl

%description -n perl-concord
Perl bindings for libconcord, a Logitech Harmony remote programmer
library.

%files -n perl-concord
%{perl_vendorarch}/auto/concord
%{perl_vendorarch}/concord.pm

#------------------------------------------------------------------

%package -n python3-libconcord
Summary:	Python3 bindings for libconcord
Group:		Development/Python
Requires:	%{libname}

%description -n python3-libconcord
Python3 bindings for libconcord, a Logitech Harmony remote programmer
library.

%files -n python3-libconcord
%doc libconcord/bindings/python/README
%{python3_sitelib}/libconcord*

#------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
pushd libconcord
autoreconf -fi
%configure \
	--disable-static	\
	--disable-mime-update
%make
%make udev
popd

pushd libconcord/bindings/perl
swig -perl5 concord.i
%{__perl} Makefile.PL INSTALLDIRS=vendor INC=-I../..
%make OTHERLDFLAGS="-L../../.libs" LDLOADLIBS="-lconcord"
popd

pushd %{name}
%configure \
	CPPFLAGS=-I../libconcord	\
	LDFLAGS="%{?ldflags} -L../libconcord/.libs"	\
	--enable-shared
%make
popd

pushd consnoop
%make CXXFLAGS="%{optflags} %{?ldflags}"
popd

%install
%makeinstall_std -C libconcord \
	install_udev UDEVROOT=/
#
%makeinstall_std -C libconcord/bindings/perl
%makeinstall_std -C %{name}

pushd libconcord/bindings/python
%py3_install
popd

install -m755 consnoop/consnoop %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 785 |21cr|cone-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mail reader
Name:		cone
Version:	1.6
Release:	1
License:	GPLv2+
Group:		Networking/Mail
Url:		http://www.courier-mta.org/cone
Source0:	http://prdownloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
BuildRequires:	aspell-devel
BuildRequires:	courier-unicode-devel
BuildRequires:	libstdc++-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	procps-ng
BuildRequires:	sysconftool

%description
CONE is a simple, text-based E-mail reader and writer.

%files
%doc cone/ABOUT-NLS ChangeLog README NEWS AUTHORS COPYING* cone/html
%attr(644,root,root) %{_sysconfdir}/cone.dist
%ghost %attr(0644,root,root) %{_sysconfdir}/cone
%attr(0755,root,root) %{_bindir}/cone
%attr(0755,root,root) %{_bindir}/leaf
%attr(0755,root,root) %{_bindir}/mailtool
%attr(0755,root,root) %{_libexecdir}/cone
%{_datadir}/cone
%{_mandir}/man1/*

%preun
if [ "$1" = 0 ]; then
    mv %{_sysconfdir}/cone %{_sysconfdir}/cone.rpmsave
fi

%pre
if [ "$1" = 1 -a -f %{_sysconfdir}/cone.rpmsave -a ! -f %{_sysconfdir}/cone ]; then
    mv %{_sysconfdir}/cone.rpmsave %{_sysconfdir}/cone
fi

%post
perl %{_datadir}/cone/cone.sysconftool %{_sysconfdir}/cone.dist > /dev/null

#----------------------------------------------------------------------------

%package	devel
Summary:	LibMAIL mail client development library
Group:		Development/C++

%description	devel
The %{name}-devel package the header files and library files for
developing application using LibMAIL - a high level, C++ OO
library for mail clients.

%files devel
%{_libdir}/*.a
%{_mandir}/man[35]/*
%{_includedir}/libmail

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--with-devel \
	--with-notice=unicode
%make

%install
%makeinstall_std
install sysconftool %{buildroot}%{_datadir}/cone/cone.sysconftool
touch %{buildroot}%{_sysconfdir}/cone

pushd %{buildroot}%{_datadir}/cone
    for i in *.html; do
	ln -snf ../doc/%{name}/html/$i $i
    done
popd

# install missing files
install -m755 libmail/mailtool %{buildroot}%{_bindir}/mailtool
install -m644 help.txt %{buildroot}%{_datadir}/cone/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 786 |21cr|conectivator-0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of aliases for Conectiva users
Name:		conectivator
Version:	0.2
Release:	9
License:	GPLv2+
Group:		Shells
Source0:	conectivator-profile.sh
Requires:	bash
Buildarch:	noarch

%files
%{_sysconfdir}/profile.d/conectivator.sh

#----------------------------------------------------------------------------

%description
This package provides a set of aliases for users familiar with Conectiva Linux.
Back are:
- l
- tm
- tmm
- tms
- cds

%install
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -m 0755 %{SOURCE0} %{buildroot}%{_sysconfdir}/profile.d/conectivator.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 787 |21cr|configcleaner-2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Очистка конфигов программ на МОС
Summary:	Config cleaner for MOS apps
Name:		configcleaner
Version:	2.1
Release:	3
License:	GPLv3
Group:		System/Configuration/Other
Url:		https://os.mos.ru/git/rp/configcleaner
Vendor:		MOS
Source2:	main.cpp
Source4:	colorpicker.h
Source5:	configcleaner.pro
Source6:	cleaner.conf
Source7:	mainwindow.h
Source8:	mainwindow.cpp
Source9:	colorpicker.cpp
Source10:	mainwindow.ui
Source11:	colorpicker.ui
Source12:   configcleaner.svg
Source13:   configcleaner.desktop
Source14:   passworddialog.h
Source15:   configcleaner.complete
Source16:   config.cpp
Source17:   config.h
Source18:   functions.cpp
Source19:   functions.h
Source20:   tests.py
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
Requires:	py-ini-config

%description
Config cleaner for MOS apps

%description -l ru_RU.UTF-8
Очистка конфигов программ на МОС

%files
%{_bindir}/%{name}
%config /etc/cleaner.conf
/usr/share/icons/hicolor/scalable/apps/configcleaner.svg
%{_datadir}/applications/configcleaner.desktop
%{_datadir}/bash-completion/completions/%{name}

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%build
%qmake_qt5 *.pro
%make_build

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 configcleaner %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}/etc
install -m644 cleaner.conf %{buildroot}/etc/cleaner.conf

mkdir -p %{buildroot}/usr/share/icons/hicolor/scalable/apps/
install -m644 configcleaner.svg %{buildroot}/usr/share/icons/hicolor/scalable/apps/configcleaner.svg

mkdir -p %{buildroot}%{_datadir}/applications
install -m644 configcleaner.desktop %{buildroot}%{_datadir}/applications/configcleaner.desktop

mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
install -m644 %{name}.complete %{buildroot}%{_datadir}/bash-completion/completions/%{name}

%check
chmod +x ./tests.py
if ! ./tests.py; then
  cat logFile.txt
  exit 1
fi


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 788 |21cr|configure-thinkpad-0.9-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to configure IBM Thinkpad behaviour
Name:		configure-thinkpad
Version:	0.9
Release:	9
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://tpctl.sourceforge.net/configure-thinkpad.html
Source:		http://prdownloads.sourceforge.net/tpctl/%{name}-%{version}.tar.bz2
Patch0:		configure-thinkpad-fix-desktop-entry.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libgnomeui-2.0)

%description
Utility to configure IBM Thinkpad behaviour.

Currently, mainly power management features are supported.

%files
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop


%post
modulesconf=/etc/modules.conf
if ! `grep -q "/dev/thinkpad" $modulesconf` ; then
        echo "adding entry for /dev/thinkpad/* to your $modulesconf"
        cat >> $modulesconf << EOF
#Added by %{name} to autoload thinkpad drivers
#path[thinkpad]=/lib/modules/`uname -r`/thinkpad
#options thinkpad enable_smapi=1 enable_superio=1 enable_rtcmosram=1 enable_thinkpadpm=1
alias char-major-10-170 thinkpad
alias /dev/thinkpad thinkpad
alias /dev/thinkpad/thinkpad thinkpad
alias /dev/thinkpad/smapi smapi
alias /dev/thinkpad/superio superio
alias /dev/thinkpad/rtcmosram rtcmosram
alias /dev/thinkpad/thinkpadpm thinkpadpm

EOF
fi

consoleperms=/etc/security/console.perms
if ! `grep -q "/dev/thinkpad" $consoleperms` ; then
        echo "adding entry for /dev/thinkpad/* to your $consoleperms"
        cat >> $consoleperms << EOF

# Added by %{name} to allow user access to thinkpad devices
<console>  0600 /dev/thinkpad/*   0600 root

EOF
fi

# We don't remove the additions to modules.conf and console.perms since
# some other package (ie tpctl) may want them ...

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%configure
%make

%install
%makeinstall_std

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="Settings;HardwareSettings" \
	--add-category="X-MandrivaLinux-System-Configuration-Hardware" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

mkdir -p %{buildroot}/{%{_miconsdir},%{_liconsdir}}
convert -resize 48x48 pixmaps/gnome-laptop.png %{buildroot}/%{_liconsdir}/%{name}.png
convert -resize 32x32 pixmaps/gnome-laptop.png %{buildroot}/%{_iconsdir}/%{name}.png
convert -resize 16x16 pixmaps/gnome-laptop.png %{buildroot}/%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 789 |21cr|configure-trackpoint-0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	TrackPoint configuration tool
Name:		configure-trackpoint
Version:	0.7
Release:	4
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://tpctl.sourceforge.net/configure-trackpoint.html
Source0:	http://prdownloads.sourceforge.net/tpctl/%{name}-%{version}.tar.gz
Source1:	trackpoint.init
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libgnomeui-2.0)
Requires:	beesu
Requires(post,preun):	rpm-helper

%description
Configure-trackpoint is a Gnome TrackPoint configuration tool, which
provides a friendly and descriptive interface to configure various
TrackPoint device's parameters.

%files
%doc AUTHORS ChangeLog
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}
%{_iconsdir}/*
%{_sysconfdir}/init.d/trackpoint
%{_datadir}/applications/*.desktop

%post
%_post_service trackpoint

consoleperms=/etc/security/console.perms
if ! `grep -q "/proc/trackpoint/" $consoleperms` ; then
        echo "adding entry for /proc/trackpoint/* to your $consoleperms"
        cat >> $consoleperms << EOF

# Added by %{name} to allow user access to /proc/trackpoint
<console>  0600 /proc/trackpoint/* 0600 root
EOF
fi

%preun
%_preun_service trackpoint

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make
# the Icon tag shouldn't have an extension, desktop-* complains
sed -i~ -e '/^Icon/s/\.png//' configure-trackpoint.desktop

%install
%makeinstall_std

rm -rf %{buildroot}{%{_sysconfdir}/init.d,%{_initrddir}/trackpoint}
mkdir -p %{buildroot}%{_sysconfdir}/init.d
cp -p %{SOURCE1} %{buildroot}%{_sysconfdir}/init.d/trackpoint


desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="SystemSetup" \
  --add-category="Settings;HardwareSettings" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

mkdir -p %{buildroot}/{%{_miconsdir},%{_liconsdir}}
convert -resize 48x48 pixmaps/trackpoint.png %{buildroot}/%{_liconsdir}/%{name}.png
convert -resize 32x32 pixmaps/trackpoint.png %{buildroot}/%{_iconsdir}/%{name}.png
convert -resize 16x16 pixmaps/trackpoint.png %{buildroot}/%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 790 |21cr|congruity-21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Logitech Harmony remote programmer GUI
Name:		congruity
Version:	21
Release:	1
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		http://congruity.sourceforge.net/
Source0:	https://downloads.sourceforge.net/congruity/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-libconcord
Requires:	python3-wxpython4
# For mhgui
Requires:	python3-suds
BuildArch:	noarch

%description
This software allows you to program your Logitech Harmony universal
remote.

%files
%doc Changelog COPYING README.txt
%license LICENSE.txt
%{_bindir}/congruity
%{_bindir}/mhgui
%{_datadir}/applications/congruity.desktop
%{_datadir}/applications/mhgui.desktop
%{_mandir}/man1/*
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-%{version}-*egg-info/

#----------------------------------------------------------------------------


%prep
%setup -q

%build
%py3_build

%install
%py3_install "--skip-update-desktop-db"


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 791 |21cr|conky-1.19.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with audacious
%bcond_with nvidia
%bcond_without wlan

Summary:	A lightweight system monitor
Name:		conky
Version:	1.19.1
Release:	1
License:	GPLv3+
Group:		Monitoring
Url:		https://github.com/brndnmtthws/conky
Source0:	https://github.com/brndnmtthws/conky/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook2x
BuildRequires:	git
BuildRequires:	man
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	libxslt-proc
BuildRequires:	libiw-devel
BuildRequires:	tolua++-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(ncurses)

%description
Conky is a free, light-weight system monitor for X, that displays any
information on your desktop.

%files
%doc AUTHORS COPYING README.md extras/*
%dir %{_sysconfdir}/conky
%config %{_sysconfdir}/conky/conky.conf
%{_bindir}/conky
%{_libdir}/conky
#%%{_mandir}/man1/conky.1*
%{_datadir}/applications/conky.desktop
%{_iconsdir}/hicolor/scalable/apps/conky-logomark-violet.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# remove -Werror from CFLAGS
#sed -i 's|-Werror||' cmake/ConkyBuildOptions.cmake

# remove executable bits from files included in %{_docdir}
chmod a-x extras/convert.lua

%build
%cmake \
        -DMAINTAINER_MODE=OFF \
        -DBUILD_BUILTIN_CONFIG=OFF \
        -DBUILD_PORT_MONITORS=OFF \
        -DBUILD_CURL=ON \
        -DBUILD_IBM=OFF \
        -DBUILD_IMLIB2=ON \
        -DBUILD_LUA_CAIRO=ON \
        -DBUILD_LUA_IMLIB2=ON \
        -DBUILD_MOC=OFF \
        -DBUILD_MPD=OFF \
        -DBUILD_NCURSES=OFF \
        -DBUILD_RSS=ON \
        -DBUILD_WEATHER_METAR=ON \
        -DBUILD_WEATHER_XOAP=ON \
        -DBUILD_XDBE=ON \
        -DBUILD_HSV_GRADIENT=OFF \
    %{?with_audacious:      -DBUILD_AUDACIOUS=ON} \
    %{?with_nvidia:         -DBUILD_NVIDIA=ON} \
    %{?with_wlan:           -DBUILD_WLAN=ON} \
	-G Ninja

%ninja_build

%install
pushd build
%ninja_install
mkdir -p %{buildroot}%{_sysconfdir}/conky
popd
install -m644 -p data/conky.conf %{buildroot}%{_sysconfdir}/conky
rm -rf %{buildroot}%{_docdir}/conky-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 792 |21cr|conky-manager-2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A simple GUI for managing Conky config files
Name:		conky-manager
Version:	2.4
Release:	3
License:	GPLv3+
Group:		Monitoring
Url:		https://launchpad.net/%{name}
Source0:	%{name}-%{version}.tar.xz
Patch0:		conky-manager-2.4-desktop-file.patch
BuildRequires:	vala
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
Requires:	conky
Requires:	hddtemp
Requires:	lm_sensors
Requires:	p7zip
Requires:       imagemagick

%description
A simple GUI for managing Conky config files. Options for changing themes and
running Conky at startup, more info about the code, licence and credits at
https://launchpad.net/conky-manager.

%files -f %{name}.lang
%doc README AUTHORS TODO
%{_bindir}/conky-manager
%{_datadir}/appdata/conky-manager.appdata.xml
%{_datadir}/applications/conky-manager.desktop
%{_datadir}/conky-manager
%{_datadir}/pixmaps/conky-manager.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

rm -f %{buildroot}%{_bindir}/conky-manager-uninstall

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 793 |21cr|conky-theme-blueconky-0-0.git0221b1c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# To get new sources and set version/release in spec file please run: 
# bash <(cat ./conky-theme-blueconky.spec |sed -e '/^###/!d' -e 's/^###[[:space:]]*//')

### #!/bin/bash
### git clone https://github.com/dkodar20/blueconky.git
### pushd ./blueconky
### hash="$(git log -1 --format='%h')" 
### date="$(git log -1 --format='%cd' --date=short | tr -d -)"
### rm -rf .git
### tar czf ../blueconky-${date}-git${hash}.tar.gz ../blueconky
### popd
### sed -i '/^.define/s/gitdate.*/gitdate '"$date"'/' ./conky-theme-blueconky.spec
### sed -i '/^.define/s/gitrev.*/gitrev	'"$hash"'/' ./conky-theme-blueconky.spec
### rm -rf ./blueconky

%define gitrev	0221b1c
%define gitdate 20210803
%define oname blueconky

Summary:	Conky theme blueconky
Name:		conky-theme-blueconky
Version:	0
Release:	0.git%{gitrev}.1
License:	GPLv3
Group:		System/Base
Url:		https://github.com/dkodar20/blueconky.git
Source0:	%{oname}-%{gitdate}-git%{gitrev}.tar.gz
Requires:	conky
BuildArch:	noarch

%description
Conky theme blue conky with autostart

%files
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_sysconfdir}/xdg/autostart/%{name}.desktop

%prep
%setup -qn %{oname}

%build
sed -i 's/%%I/%%H/' conkyrc

%install
mkdir -p %{buildroot}%{_datadir}/%{name} %{buildroot}%{_sysconfdir}/xdg/autostart
install -m 644 conky_dashboard.lua %{buildroot}%{_datadir}/%{name}/
install -m 644 conkyrc %{buildroot}%{_datadir}/%{name}/

cat << EOF >  %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop
[Desktop Entry]
Comment=Run conky with %{name} theme at statup
Comment[ru]=Автозапуск conky c темой %{name}
Exec=/usr/bin/conky -c %{_datadir}/%{name}/conkyrc
GenericName=%{name}
Name=%{name}
StartupNotify=false
Terminal=false
Type=Application
X-DBUS-StartupType=unique
X-KDE-StartupNotify=false
X-KDE-SubstituteUID=false
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 794 |21cr|conmen-0.3.020804-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#This is NOT a relocatable package

Summary:   Console menuscripts for Linux
Name:      conmen
Version:   0.3.020804
Release:   11
Source:    %{name}-%{version}.tar.bz2
License:   GPL
Group:     Shells
URL:       http://home.wanadoo.nl/cchq/conmen/index.html
Requires:  dialog >= 0.9a Xdialog
BuildArchitectures: noarch

%description
These are menu scripts for the bash shell.
The program uses dialog and Xdialog.

%prep
  [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != / ] \
  && rm -rf ${RPM_BUILD_ROOT}/

%setup -q

%install
  mkdir -p ${RPM_BUILD_ROOT}/etc/conmen
  mkdir -p ${RPM_BUILD_ROOT}/usr/bin
  mkdir -p ${RPM_BUILD_ROOT}/usr/lib/conmen
#  mkdir -p ${RPM_BUILD_ROOT}%{_menudir}
  mkdir -p ${RPM_BUILD_ROOT}/var/lib/conmen

  cp conmen \
     cmcfg \
     cmcdrecording \
     cmdialup \
     cmfloppy \
     cmgames \
     cmgraphics \
     cmlog \
     cmm \
     cmmp3 \
     cmprint \
     cmrpm \
     cmsound \
     cmsystem \
     cmuser \
     ${RPM_BUILD_ROOT}/usr/bin

cp -r usr/lib/conmen ${RPM_BUILD_ROOT}/usr/lib

cp cmrc ${RPM_BUILD_ROOT}/etc/conmen

cd ${RPM_BUILD_ROOT}/usr/bin
ln -sf conmen cm

#cat << EOF > ${RPM_BUILD_ROOT}%{_menudir}/%{name}
#?package(conmen): needs="x11" section="Applications/Shells" title="ConMen" longtitle="ConMen is a menu shell" command="%{name}"
#?package(conmen): needs="x11" section="Documentation" title="Conmen Homepage" command="if ps U \$USER | grep -q \$BROWSER; then \$BROWSER -remote \'openURL(%{url})\'; else \$BROWSER \'%{url}\'; fi"
#?package(conmen): title="(Un)Mount CD-ROM" section="Configuration/Other" needs="x11" command="cmm cd"
#?package(conmen): title="(Un)Mount CD-RW" section="Configuration/Other" needs="x11" command="cmm cdr"
#?package(conmen): title="(Un)Mount Windows C:" section="Configuration/Other" needs="x11" command="cmm dosc"
#?package(conmen): title="(Un)Mount Windows D:" section="Configuration/Other" needs="x11" command="cmm dosd"
#?package(conmen): title="(Un)Mount DOS Floppy" section="Configuration/Other" needs="x11" command="cmm df"
#?package(conmen): title="(Un)Mount EXT2 Floppy" section="Configuration/Other" needs="x11" command="cmm e2f"
#EOF

#%post
#%update_menus

#%postun
#%clean_menus

%clean
  [ -n "${RPM_BUILD_ROOT}" -a "${RPM_BUILD_ROOT}" != / ] \
  && rm -rf ${RPM_BUILD_ROOT}/

%files
%defattr(-,root,root,755)
%doc AUTHORS BUGS ChangeLog COPYING README THANKS TODO
%config(noreplace) /etc/conmen/cmrc
/usr/bin/conmen
/usr/bin/cm
/usr/bin/cmcfg
/usr/bin/cmcdrecording
/usr/bin/cmdialup
/usr/bin/cmfloppy
/usr/bin/cmgames
/usr/bin/cmgraphics
/usr/bin/cmlog
/usr/bin/cmm
/usr/bin/cmmp3
/usr/bin/cmprint
/usr/bin/cmrpm
/usr/bin/cmsound
/usr/bin/cmsystem
/usr/bin/cmuser
/usr/lib/conmen/*[!~]
#%{_menudir}/%{name}
/var/lib/conmen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 795 |21cr|connect-1.105-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Relaying command to make network connection via proxy
Name:		connect
Version:	1.105
Release:	3
License:	GPLv2+
Group:		Networking/Other
Url:		https://bitbucket.org/gotoh/connect
Source0:	%{name}-%{version}.tar.bz2

%description
Connect is the simple relaying command to make network connection
via SOCKS and https proxy. It is mainly intended to be used as
proxy command of OpenSSH. You can make SSH session beyond
the firewall with this command,

Features of connect.c are:

 * Supports SOCKS (version 4/4a/5) and https CONNECT method.
 * Supports NO-AUTH and USERPASS authentication of SOCKS
 * Partially supports telnet proxy (experimental).
 * You can input password from tty, ssh-askpass or environment variable.
 * Run on UNIX or Windows platform.
 * You can compile with various C compiler (cc, gcc, Visual C,
   Borland C. etc.)
 * Simple and general program independent from OpenSSH.
 * You can also relay local socket stream instead of standard I/O.


%files
%doc doc/manual.html doc/manual.txt
%{_bindir}/connect

#----------------------------------------------------------------------------

%prep
%setup -q

%build
gcc %{optflags} -DSOCKLEN_T=unsigned connect.c -o %{name}

%install
install -m755 connect -D %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 796 |21cr|connectagram-1.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A word unscrambling game
Name:		connectagram
Version:	1.3.1
Release:	2
Group:		Games/Puzzles
License:	GPLv3+
Url:		http://gottcode.org/connectagram
Source:		http://gottcode.org/connectagram/%{name}-%{version}-src.tar.bz2

BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	qt5-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util

%description
Connectagram is a word unscrambling game. The board consists of several
scrambled words that are joined together. You can choose the length of
the words, the amount of words, and the pattern that the words are
arranged in. The game provides a hint option for times when you are
stuck, and features an online word lookup that fetches the definitions
of each word from Wiktionary. Your current progress is automatically
saved.

%files
%{_gamesbindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_appdatadir}/%{name}.appdata.xml
%{_mandir}/man6/%{name}.6*

#---------------------------------------------

%prep
%setup -q

%build
%qmake_qt5 PREFIX=%{_prefix} BINDIR=games
%make

%install
%makeinstall_qt PREFIX=%{_prefix} BINDIR=games

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop 
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 797 |21cr|connector-1.9.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Remote desktop chooser
Name:		connector
Version:	1.9.7
Release:	1
License:	GPLv2
Group:		Networking/Remote access
Url:		http://myconnector.ru
# From http://ftp.altlinux.org/pub/distributions/ALTLinux/Sisyphus/noarch/SRPMS.classic/connector-1.9.7-alt1.src.rpm
Source0:	%{name}-%{version}.tar.gz
Patch0:		connector-1.9.6-disable-warnings-about-system-etc.patch
Requires:	freerdp
Requires:	python3-gi
Requires:	remmina
Requires:	tigervnc
Requires:	xdg-utils
Requires:	zenity
Requires:	python3dist(keyring)
Requires:	python3dist(secretstorage)
Requires:	typelib(Gtk)
Requires:	%mklibname gtk+ 3 0
BuildArch:	noarch

%description
This is an aggregator program to connnect to various servers
using all of the popular remote desktop protocols
(RDP, VNC, Citrix, VMware, etc).

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/%{name}/data
%{_datadir}/%{name}/*.py
%{_datadir}/%{name}/*/*.pyc
%{_datadir}/%{name}/%{name}-check-*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%package kiosk
Summary:	Mode "KIOSK" for connector
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}
Requires:	xinitrc
Requires:	xterm

%description kiosk
Files for connector mode "KIOSK".

%files kiosk
%{_datadir}/%{name}/kiosk/*
%{_mandir}/man1/%{name}-kiosk.*
%config(noreplace) %{_sysconfdir}/%{name}/kiosk.conf

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -pDm755 %{name} %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_datadir}/applications
install -pDm644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{_datadir}/%{name}/data/
install -p *.png *.ui %{buildroot}%{_datadir}/%{name}/data/
install -p *.py %{buildroot}%{_datadir}/%{name}/
install -pm755 %{name}-check-* %{buildroot}%{_datadir}/%{name}/
install -pDm644 %{name}.man %{buildroot}%{_mandir}/man1/%{name}.1
install -pDm644 %{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml
mkdir -p %{buildroot}%{_iconsdir}
cp -r icons/hicolor %{buildroot}%{_iconsdir}/
mkdir -p %{buildroot}%{_datadir}/%{name}/kiosk/
install -p kiosk/*.{py,ui} %{buildroot}%{_datadir}/%{name}/kiosk/
install -pm755 kiosk/connector* %{buildroot}%{_datadir}/%{name}/kiosk/
install -pDm600 kiosk/kiosk.conf %{buildroot}%{_sysconfdir}/%{name}/kiosk.conf
install -pDm644 kiosk/%{name}-kiosk.man %{buildroot}%{_mandir}/man1/%{name}-kiosk.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 798 |21cr|connman-1.42-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Connection Manager
Name:		connman
Version:	1.42
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		https://01.org/connman
Source0:	http://www.kernel.org/pub/linux/network/%{name}/%{name}-%{version}.tar.xz
Patch0:		connman-1.33-service.patch
Patch1:		connman-ppp-missing-header.patch
BuildRequires:	gtk-doc
BuildRequires:	dhcp-client
BuildRequires:	iptables-devel
BuildRequires:	mnl-devel
BuildRequires:	ppp-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(openconnect)
BuildRequires:	openvpn openconnect vpnc
BuildRequires:	wpa_supplicant
Requires:	openvpn openconnect vpnc
Requires:	dbus
Requires:	dhcp-client >= 3.0.2
Requires:	wpa_supplicant >= 0.5.7
Requires:	bluez

%description
Connection Manager provides a daemon for managing Internet connections
within embedded devices running the Linux operating system.

%files
%doc AUTHORS COPYING ChangeLog README
%{_sbindir}/*
%{_bindir}/connmanctl
%dir %{_libdir}/%{name}/scripts/
%{_libdir}/%{name}/plugins/*.so
%{_libdir}/%{name}/plugins-vpn/*.so
%{_datadir}/dbus-1/system-services/net.connman.vpn.service
%{_datadir}/dbus-1/system-services/org.moblin.connman.service
%{_datadir}/dbus-1/system.d/connman-nmcompat.conf
%{_datadir}/dbus-1/system.d/connman-vpn-dbus.conf
%{_datadir}/dbus-1/system.d/connman.conf
%{_datadir}/polkit-1/actions/net.connman.policy
%{_datadir}/polkit-1/actions/net.connman.vpn.policy
%{_libdir}/%{name}/scripts/*.so*
%{_libdir}/%{name}/scripts/open*-script
%{_libdir}/%{name}/scripts/vpn-script
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-vpn.service
%{_mandir}/man1/connmanctl.1.*
%{_mandir}/man5/connman*.conf*.5.*
%{_mandir}/man8/connman*.8.*
%{_unitdir}/connman-wait-online.service
/usr/lib/tmpfiles.d/connman_resolvconf.conf

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Connection Manager
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
connman-devel contains development files for use with connman.

%files devel
%doc AUTHORS COPYING
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure	--disable-static \
		--enable-ethernet \
		--enable-wifi \
		--enable-bluetooth \
		--enable-datafiles \
		--enable-loopback \
		--enable-client \
		--enable-threads \
		--enable-gtk-doc \
		--enable-hh2serial-gps \
		--enable-openvpn \
		--enable-openconnect \
		--enable-vpnc \
		--enable-l2tp \
		--enable-iospm \
		--enable-tist \
		--enable-nmcompat \
		--enable-polkit \
		--prefix=%{_prefix} \
		--libdir=%{_libdir}
%make

%install
%makeinstall_std

install -d %{buildroot}%{_datadir}/dbus-1/system-services/
install -m644 src/connman.service %{buildroot}%{_datadir}/dbus-1/system-services/org.moblin.connman.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 799 |21cr|conserver-8.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Serial console server daemon/client
Name:		conserver
Version:	8.2.7
Release:	1
License:	BSD-like
Group:		System/Servers
Url:		http://www.conserver.com/
Source0:	http://www.conserver.com/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.sysconfig
Source3:	%{name}.tmpfiles.conf
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires:	tcp_wrappers
BuildRequires:	openssl-devel
BuildRequires:	pam-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	gssglue-devel

Requires(post):	systemd-units
Requires(preun):	systemd-units
Requires(postun):	systemd-units

%description
Conserver is an application that allows multiple users to watch a serial
console at the same time. It can log the data, allows users to take
write-access of a console (one at a time), and has a variety of bells and
whistles to accentuate that basic functionality.

#------------------------------------------------------------------------

%package daemon
Summary:	Serial console server daemon
Group:		System/Servers
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires:	tcp_wrappers

Requires(post):	systemd-units
Requires(preun):	systemd-units
Requires(postun):	systemd-units

%description daemon
Conserver is an application that allows multiple users to watch a serial
console at the same time. It can log the data, allows users to take
write-access of a console (one at a time), and has a variety of bells and
whistles to accentuate that basic functionality.

This package contains the server daemon part.

%files daemon
%doc CHANGES FAQ LICENSE TODO
%doc %{name}.cf/%{name}.cf
%doc %{name}.cf/%{name}.passwd
%doc %{name}.cf/label.ps
%doc %{name}.cf/test.cf
%doc %{name}/Sun-serial
%config(noreplace) %{_sysconfdir}/%{name}.cf
%config(noreplace) %{_sysconfdir}/%{name}.passwd
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service
%{_mandir}/man8/%{name}.8*
%{_mandir}/man5/%{name}.cf.5*
%{_mandir}/man5/%{name}.passwd.5*
%{_sbindir}/%{name}
%{_sbindir}/convert-conserver.cf
%dir /var/log/%{name}
%dir /var/consoles
%dir %{_localstatedir}/lib/%{name}
%attr(0644,root,root) %ghost /var/log/%{name}/%{name}.log

#------------------------------------------------------------------------

%package client
Summary:	Serial console server client
Group:		System/Servers
Requires:	tcp_wrappers

%description client
Conserver is an application that allows multiple users to watch a serial
console at the same time. It can log the data, allows users to take
write-access of a console (one at a time), and has a variety of bells and
whistles to accentuate that basic functionality.

This package contains the client part.

%files client
%{_bindir}/console
%{_mandir}/man1/console.1*

#------------------------------------------------------------------------

%prep

%setup -q

# lib64 fixes
perl -pi -e "s|/lib\b|/%{_lib}|g" configure*


%build

%configure \
    --with-port=782 \
    --with-base=0 \
    --with-master=console \
    --with-cffile=%{_sysconfdir}/%{name}.cf \
    --with-pwdfile=%{_sysconfdir}/%{name}.passwd \
    --with-logfile=/var/log/%{name}/%{name}.log \
    --with-pidfile=/var/run/%{name}/%{name}.pid \
    --with-libwrap=%{_prefix} \
    --with-openssl=%{_prefix} \
    --with-uds=%{_localstatedir}/lib/%{name} \
    --with-maxmemb=16 \
    --with-timeout=10 \
    --with-pam \
    --with-gssapi

%make

# make test must be run by root?

%install

%makeinstall

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}/var/log/%{name}
install -d %{buildroot}/var/consoles
install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%{__sed} -e 's/^/#/' \
  < %{name}.cf/%{name}.cf \
  > %{buildroot}%{_sysconfdir}/%{name}.cf
%{__sed} -e 's/^/#/' \
  < %{name}.cf/%{name}.passwd \
  > %{buildroot}%{_sysconfdir}/%{name}.passwd

install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

# fix ghostfiles
touch %{buildroot}/var/log/%{name}/%{name}.log

# remove crap
rm -f %{buildroot}%{_sysconfdir}/%{name}.rc
rm -rf %{buildroot}%{_datadir}/examples

# install missing stuff
install -m 755 conserver/convert %{buildroot}%{_sbindir}/convert-conserver.cf

# nuke dupe
rm -f %{buildroot}%{_libdir}/conserver/convert

%post -n %{name}-daemon
%tmpfiles_create %{name}.conf
%systemd_post conserver.service
%create_ghostfile /var/log/%{name}/%{name}.log root root 0644

#make sure /etc/services has a conserver entry
if ! grep -E '\<conserver\>' /etc/services > /dev/null 2>&1 ; then
  echo "console		782/tcp		conserver" >> /etc/services
fi

%preun -n %{name}-daemon
%systemd_preun conserver.service

%postun
%systemd_postun_with_restart conserver.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 800 |21cr|console-gentoo-style-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Console Gentoo style
Name:		console-gentoo-style
Version:	0.1
Release:	10
Source0:	console-gentoo-style-%{version}.tar.gz
License:	GPLv2
Group:		Shells
BuildArch:	noarch

%description
Console Gentoo style.

%prep
%setup -q

%install
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
cp -rf ./gentoo_colors %{buildroot}%{_sysconfdir}/bash_completion.d/gentoo_colors

sed 's|use_color=false|use_color=true|' -i %{buildroot}%{_sysconfdir}/bash_completion.d/gentoo_colors

%files
%{_sysconfdir}/bash_completion.d/gentoo_colors


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 801 |21cr|containerd-1.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with debug

%if %{with debug}
%global _dwz_low_mem_die_limit 0
%endif
%global _empty_manifest_terminate_build 0

%if ! 0%{?gobuild:1}
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
%endif

%global import_path github.com/containerd/containerd

#define beta 0

Name: containerd
Version:	1.5.5
%global commit 8e9ba8376ec25a6158719118a97a99a3555d0fd8
%global tag v%{version}%{?beta:-%{beta}}
Release:	%{?beta:0.%{beta}.}1
Group:         System/Base
Epoch: 1
Summary: An industry-standard container runtime
License: ASL 2.0
URL: https://containerd.io
Source0: https://%{import_path}/archive/%{tag}/containerd-%{version}%{?beta:-%{beta}}.tar.gz
Source1: containerd.service
Source2: containerd.toml
%{?go_compiler:BuildRequires: compiler(go-compiler)}
BuildRequires: golang >= 1.10
BuildRequires: protobuf-compiler
BuildRequires: pkgconfig(protobuf) >= 3
BuildRequires: btrfs-devel
BuildRequires: go-md2man
BuildRequires: go-srpm-macros
%{?systemd_requires}
# https://github.com/containerd/containerd/issues/1508#issuecomment-335566293
Requires: (runc or crun)
# vendored libraries
# grep -v -e '^$' -e '^#' containerd-*/vendor.conf | awk '{print "Provides: bundled(golang("$1")) = "$2}' | sort
Provides: bundled(golang(github.com/beorn7/perks)) = 4c0e84591b9aa9e6dcfdf3e020114cd81f89d5f9
Provides: bundled(golang(github.com/blang/semver)) = v3.1.0
Provides: bundled(golang(github.com/BurntSushi/toml)) = a368813c5e648fee92e5f6c30e3944ff9d5e8895
Provides: bundled(golang(github.com/containerd/aufs)) = ffa39970e26ad01d81f540b21e65f9c1841a5f92
Provides: bundled(golang(github.com/containerd/btrfs)) = 2e1aa0ddf94f91fa282b6ed87c23bf0d64911244
Provides: bundled(golang(github.com/containerd/cgroups)) = 5e610833b72089b37d0e615de9a92dfc043757c2
Provides: bundled(golang(github.com/containerd/console)) = c12b1e7919c14469339a5d38f2f8ed9b64a9de23
Provides: bundled(golang(github.com/containerd/continuity)) = bd77b46c8352f74eb12c85bdc01f4b90f69d66b4
Provides: bundled(golang(github.com/containerd/cri)) = da0c016c830b2ea97fd1d737c49a568a816bf964
Provides: bundled(golang(github.com/containerd/fifo)) = 3d5202aec260678c48179c56f40e6f38a095738c
Provides: bundled(golang(github.com/containerd/go-cni)) = 40bcf8ec8acd7372be1d77031d585d5d8e561c90
Provides: bundled(golang(github.com/containerd/go-runc)) = 5a6d9f37cfa36b15efba46dc7ea349fa9b7143c3
Provides: bundled(golang(github.com/containerd/ttrpc)) = 2a805f71863501300ae1976d29f0454ae003e85a
Provides: bundled(golang(github.com/containerd/typeurl)) = a93fcdb778cd272c6e9b3028b2f42d813e785d40
Provides: bundled(golang(github.com/containerd/zfs)) = 9a0b8b8b5982014b729cd34eb7cd7a11062aa6ec
Provides: bundled(golang(github.com/containernetworking/cni)) = v0.6.0
Provides: bundled(golang(github.com/containernetworking/plugins)) = v0.7.0
Provides: bundled(golang(github.com/coreos/go-systemd)) = 48702e0da86bd25e76cfef347e2adeb434a0d0a6
Provides: bundled(golang(github.com/davecgh/go-spew)) = v1.1.0
Provides: bundled(golang(github.com/docker/distribution)) = 0d3efadf0154c2b8a4e7b6621fff9809655cc580
Provides: bundled(golang(github.com/docker/docker)) = 86f080cff0914e9694068ed78d503701667c4c00
Provides: bundled(golang(github.com/docker/go-events)) = 9461782956ad83b30282bf90e31fa6a70c255ba9
Provides: bundled(golang(github.com/docker/go-metrics)) = 4ea375f7759c82740c893fc030bc37088d2ec098
Provides: bundled(golang(github.com/docker/go-units)) = v0.3.1
Provides: bundled(golang(github.com/docker/spdystream)) = 449fdfce4d962303d702fec724ef0ad181c92528
Provides: bundled(golang(github.com/emicklei/go-restful)) = v2.2.1
Provides: bundled(golang(github.com/ghodss/yaml)) = v1.0.0
Provides: bundled(golang(github.com/godbus/dbus)) = c7fdd8b5cd55e87b4e1f4e372cdb1db61dd6c66f
Provides: bundled(golang(github.com/gogo/googleapis)) = 08a7655d27152912db7aaf4f983275eaf8d128ef
Provides: bundled(golang(github.com/gogo/protobuf)) = v1.0.0
Provides: bundled(golang(github.com/golang/glog)) = 44145f04b68cf362d9c4df2182967c2275eaefed
Provides: bundled(golang(github.com/golang/protobuf)) = v1.1.0
Provides: bundled(golang(github.com/google/go-cmp)) = v0.1.0
Provides: bundled(golang(github.com/google/gofuzz)) = 44d81051d367757e1c7c6a5a86423ece9afcf63c
Provides: bundled(golang(github.com/grpc-ecosystem/go-grpc-prometheus)) = 6b7015e65d366bf3f19b2b2a000a831940f0f7e0
Provides: bundled(golang(github.com/hashicorp/errwrap)) = 7554cd9344cec97297fa6649b055a8c98c2a1e55
Provides: bundled(golang(github.com/hashicorp/go-multierror)) = ed905158d87462226a13fe39ddf685ea65f1c11f
Provides: bundled(golang(github.com/json-iterator/go)) = 1.1.5
Provides: bundled(golang(github.com/matttproud/golang_protobuf_extensions)) = v1.0.0
Provides: bundled(golang(github.com/Microsoft/go-winio)) = v0.4.11
Provides: bundled(golang(github.com/Microsoft/hcsshim)) = v0.8.1
Provides: bundled(golang(github.com/mistifyio/go-zfs)) = 166add352731e515512690329794ee593f1aaff2
Provides: bundled(golang(github.com/modern-go/concurrent)) = 1.0.3
Provides: bundled(golang(github.com/modern-go/reflect2)) = 1.0.1
Provides: bundled(golang(github.com/opencontainers/go-digest)) = c9281466c8b2f606084ac71339773efd177436e7
Provides: bundled(golang(github.com/opencontainers/image-spec)) = v1.0.1
Provides: bundled(golang(github.com/opencontainers/runc)) = 6635b4f0c6af3810594d2770f662f34ddc15b40d
Provides: bundled(golang(github.com/opencontainers/runtime-spec)) = eba862dc2470385a233c7507392675cbeadf7353
Provides: bundled(golang(github.com/opencontainers/runtime-tools)) = v0.6.0
Provides: bundled(golang(github.com/opencontainers/selinux)) = b6fa367ed7f534f9ba25391cc2d467085dbb445a
Provides: bundled(golang(github.com/pborman/uuid)) = c65b2f87fee37d1c7854c9164a450713c28d50cd
Provides: bundled(golang(github.com/pkg/errors)) = v0.8.0
Provides: bundled(golang(github.com/prometheus/client_golang)) = f4fb1b73fb099f396a7f0036bf86aa8def4ed823
Provides: bundled(golang(github.com/prometheus/client_model)) = 99fa1f4be8e564e8a6b613da7fa6f46c9edafc6c
Provides: bundled(golang(github.com/prometheus/common)) = 89604d197083d4781071d3c65855d24ecfb0a563
Provides: bundled(golang(github.com/prometheus/procfs)) = cb4147076ac75738c9a7d279075a253c0cc5acbd
Provides: bundled(golang(github.com/seccomp/libseccomp-golang)) = 32f571b70023028bd57d9288c20efbcb237f3ce0
Provides: bundled(golang(github.com/sirupsen/logrus)) = v1.0.0
Provides: bundled(golang(github.com/syndtr/gocapability)) = db04d3cc01c8b54962a58ec7e491717d06cfcc16
Provides: bundled(golang(github.com/tchap/go-patricia)) = v2.2.6
Provides: bundled(golang(github.com/urfave/cli)) = 7bc6a0acffa589f415f88aca16cc1de5ffd66f9c
Provides: bundled(golang(github.com/xeipuuv/gojsonpointer)) = 4e3ac2762d5f479393488629ee9370b50873b3a6
Provides: bundled(golang(github.com/xeipuuv/gojsonreference)) = bd5ef7bd5415a7ac448318e64f11a24cd21e594b
Provides: bundled(golang(github.com/xeipuuv/gojsonschema)) = 1d523034197ff1f222f6429836dd36a2457a1874
Provides: bundled(golang(go.etcd.io/bbolt)) = v1.3.1-etcd.8
Provides: bundled(golang(golang.org/x/crypto)) = 49796115aa4b964c318aad4f3084fdb41e9aa067
Provides: bundled(golang(golang.org/x/net)) = b3756b4b77d7b13260a0a2ec658753cf48922eac
Provides: bundled(golang(golang.org/x/oauth2)) = a6bd8cefa1811bd24b86f8902872e4e8225f74c4
Provides: bundled(golang(golang.org/x/sync)) = 450f422ab23cf9881c94e2db30cac0eb1b7cf80c
Provides: bundled(golang(golang.org/x/sys)) = 41f3e6584952bb034a481797859f6ab34b6803bd
Provides: bundled(golang(golang.org/x/text)) = 19e51611da83d6be54ddafce4a4af510cb3e9ea4
Provides: bundled(golang(golang.org/x/time)) = f51c12702a4d776e4c1fa9b0fabab841babae631
Provides: bundled(golang(google.golang.org/genproto)) = d80a6e20e776b0b17a324d0ba1ab50a39c8e8944
Provides: bundled(golang(google.golang.org/grpc)) = v1.12.0
Provides: bundled(golang(gopkg.in/inf.v0)) = 3887ee99ecf07df5b447e9b00d9c0b2adaa9f3e4
Provides: bundled(golang(gopkg.in/yaml.v2)) = v2.2.1
Provides: bundled(golang(gotest.tools)) = v2.1.0
Provides: bundled(golang(k8s.io/api)) = kubernetes-1.12.0
Provides: bundled(golang(k8s.io/apimachinery)) = kubernetes-1.12.0
Provides: bundled(golang(k8s.io/apiserver)) = kubernetes-1.12.0
Provides: bundled(golang(k8s.io/client-go)) = kubernetes-1.12.0
Provides: bundled(golang(k8s.io/kubernetes)) = v1.12.0
Provides: bundled(golang(k8s.io/utils)) = cd34563cd63c2bd7c6fe88a73c4dcf34ed8a67cb

%description
containerd is an industry-standard container runtime with an emphasis on
simplicity, robustness and portability. It is available as a daemon for Linux
and Windows, which can manage the complete container lifecycle of its host
system: image transfer and storage, container execution and supervision,
low-level storage and network attachments, etc.

%prep
%autosetup -n containerd-%{version}%{?beta:-%{beta}}

%build
mkdir -p GO/src/github.com/%{name}
ln -s $(pwd) GO/src/github.com/containerd/containerd
export TMP_GOPATH="$(pwd)/GO"
export GOPATH=%{gopath}:"$(pwd)/GO"

mkdir -p src/%(dirname %{import_path})
ln -s ../../.. src/%{import_path}
#export GOPATH=$(pwd):%{gopath}
export LDFLAGS="-X %{import_path}/version.Package=%{import_path} -X %{import_path}/version.Version=%{tag} -X %{import_path}/version.Revision=%{commit}"
for i in cmd/*; do
	%gobuild -o bin/$(basename $i) %{import_path}/$i
done


%install
mkdir -p %{buildroot}%{_bindir}
install -D -m 0755 bin/* %{buildroot}%{_bindir}/
install -D -m 0644 %{S:1} %{buildroot}%{_unitdir}/containerd.service
install -D -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/containerd/config.toml

ln -s containerd %{buildroot}%{_bindir}/docker-containerd
ln -s containerd-shim %{buildroot}%{_bindir}/docker-containerd-shim

# These are needed at build time only
rm %{buildroot}%{_bindir}/gen-manpages %{buildroot}%{_bindir}/protoc-gen-gogoctrd

%post
%systemd_post containerd.service

%preun
%systemd_preun containerd.service

%postun
%systemd_postun_with_restart containerd.service

%files
%license LICENSE
%doc README.md
%{_bindir}/containerd
%{_bindir}/containerd-shim
%{_bindir}/containerd-shim-runc-v1
%{_bindir}/containerd-shim-runc-v2
%{_bindir}/containerd-stress
%{_bindir}/docker-containerd
%{_bindir}/docker-containerd-shim
%{_bindir}/ctr
%{_unitdir}/containerd.service
%dir %{_sysconfdir}/containerd
%config(noreplace) %{_sysconfdir}/containerd/config.toml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 802 |21cr|contour-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A context sensitive user interface for Plasma Active
Name:		contour
Version:	0.3
Release:	7
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://community.kde.org/Plasma/Active/Contour
Source0:	http://download.kde.org/stable/active/3.0/src/%{name}-%{version}.tar.xz
Patch0:		qtmobility.diff
Patch1:		contour-0.1.1-find-qtmobility.patch
Patch100:	changeset_rd5306e452fd64f8bcb2dab6d5cef770584131486.diff
Patch101:	changeset_r688e2a2ce823d99e5ca1def1861fdf7591603cf2.diff
BuildRequires:	libkactivities
BuildRequires:	kdelibs4-devel
BuildRequires:	kdebase4-workspace-devel
BuildRequires:	pkgconfig(libkactivities)
BuildRequires:	pkgconfig(NetworkManager)
BuildRequires:	pkgconfig(NetworkManagerQt)
BuildRequires:	pkgconfig(shared-desktop-ontologies)
BuildRequires:	pkgconfig(soprano)
Requires:	kdebase4-runtime

%description
Contour contributes a new usage paradigm using adaptive activities and
intelligent recommendations. Contour creates a context-sensitive user
interface that adapts to current context, current activities and behavioral
patterns of the user.

Contour is part of Plasma Active project.

%files
%{_kde_bindir}/contour
%{_kde_libdir}/kde4/*.so
%{_kde_appsdir}/contour
%{_kde_appsdir}/plasma/packages/org.kde.contour.recommendations
%{_kde_appsdir}/plasma/services/recommendations.operations
%{_kde_datadir}/autostart/contour.desktop
%{_kde_services}/*.desktop
%{_kde_servicetypes}/*.desktop

#----------------------------------------------------------------------------

%package devel
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
%{name} development files.

%files devel
%{_datadir}/cmake/Contour

#----------------------------------------------------------------------------

%prep
%setup -q

# FindQtMobility is under review for inclusion to kdelibs, not needed
# by any other package
# TODO: remove once included in kdelibs
%patch0 -p1
%patch1 -p1 -b .find-qtmobility

# Upstream patches
%patch100 -p1 -b .makefile
%patch101 -p1 -b .notifier

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 803 |21cr|control-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _controldir %{_sysconfdir}/control.d/facilities

Name:		control
Version:	0.8.0
Release:	2
Summary:	A set of scripts to control installed system facilities
Group:		System/Base
License:	GPLv2+
Source0:	%{name}-%{version}.tar
BuildArch:	noarch

# due to sed -i support
Requires: sed

%description
The scripts included in this package provide a common interface to
control system facilities provided by a number of other packages.
This is intended for use primarily by packages which are providing
a facility that can potentially be dangerous to system security,
to let you enable, disable, or configure the facility independently
from package installation.

%files
%{_sbindir}/control*
%{_rpmmacrodir}/macros.control
%config %{_sysconfdir}/control.d
%attr(0700,root,root) %ghost /var/run/control/
%{_mandir}/man8/*.8*
%{_mandir}/ru/man8/*.8*

#------------------------------------------------------------------
%prep
%setup -q

%build
sed -i s/@VERSION@/%{version}-%{release}/ control

%install
mkdir -p %{buildroot}{%{_controldir},%{_sbindir},%{_mandir}/man8,%{_mandir}/ru/man8,/var/run/control}
install -p -m755 control{,-dump,-restore} %{buildroot}%{_sbindir}/
install -p -m755 functions %{buildroot}%{_sysconfdir}/control.d/
install -p -m644 control{,-dump,-restore}.8 %{buildroot}%{_mandir}/man8/
install -p -m644 ru/control{,-dump,-restore}.8 %{buildroot}%{_mandir}/ru/man8/
install -pD -m644 control.macros %{buildroot}%{_rpmmacrodir}/macros.control

# Generate shell functions provides list.
(
	echo '# shell functions provides list'
	for f in %{buildroot}%{_sysconfdir}/control.d/*; do
		[ -f "$f" -a -x "$f" ] || continue
		sed -ne 's/^\([A-Za-z][A-Za-z_0-9]*[[:space:]]*\)()$/\1/pg' "$f"
	done |LC_COLLATE=C sort -u
) >%{buildroot}%{_controldir}/.provides.sh



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 804 |21cr|control-sshd-permit-root-login-0.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:     control-sshd-permit-root-login
Version:	0.0.1
Release:	1
Summary:	Control rules for the OpenSSH server PermitRootLogin option
License:	GPLv2+
Group:		System/Servers
Source0:	sshd-permit-root-login.control
BuildRequires:	control
Requires:	control
BuildArch:	noarch

%description
This package contains control rules for OpenSSH server PermitRootLogin option.
See control(8) for details.

#-----------------------------------------------------------
%prep

%install
install -pD -m755 %{SOURCE0} \
    %{buildroot}%{_controldir}/sshd-permit-root-login

%files
%attr(755,root,root) %{_controldir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 805 |21cr|converseen-0.9.9.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _desktopdir	%{_datadir}/applications
%define oname Converseen

Summary:	A batch image conversion tool
Name:		converseen
Version:	0.9.9.8
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		https://converseen.fasterland.net/
Source0:	https://github.com/Faster3ck/Converseen/archive/refs/tags/%{oname}-%{version}.tar.gz
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Converseen is a batch image conversion tool and resizer written in C++ with
Qt5 and Magick++. It allows you to convert images in more than 100 different
formats!

%files -f %{name}.lang
%doc README.* COPYING
%{_bindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_desktopdir}/*.desktop
%{_datadir}/kservices5/ServiceMenus/%{name}_import.desktop
%{_appdatadir}/*.appdata.xml

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

find . -type f -exec chmod -x {} \;


%build
%cmake
%make


%install
%makeinstall_std -C build

# Drop installed icons...
rm -rf %{buildroot}%{_datadir}/pixmaps/%{name}.png
#... and install more sizes
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
  install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/${size}/apps
  convert -strip -resize ${size} res/%{name}.png %{buildroot}%{_iconsdir}/hicolor/${size}/apps/%{name}.png
done

%find_lang %{name} --with-qt


%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 806 |21cr|convertall-0.7.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A very flexible unit converter
Name:		convertall
Version:	0.7.5
Release:	1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://convertall.bellz.org
Source0:	http://sourceforge.net/projects/convertall/files/%{version}/%{name}-%{version}.tar.gz
Patch0:		convertall-0.6.0-remove-shebang.patch
BuildRequires:	librsvg
BuildRequires:	python3-qt5-devel
Requires:	python3-qt5
BuildArch:	noarch

%description
With ConvertAll, you can convert any unit in the large database to any other
compatible unit. If you want to convert from inches per decade, that's fine.
Or from meter-pounds. Or from cubic nautical miles. The units don't have to
make sense to anyone else.

%files
%doc doc/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#--------------------------------------------------------------------

%prep
%setup -qn ConvertAll
%patch -p1

%build

%install
python3 install.py \
	-p %{_prefix} \
	-b %{buildroot} \
	-i %{_datadir}/%{name}/icons \
	-d %{_datadir}/%{name}/doc

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Version=1.0
Name=ConvertAll
GenericName=Unit Converter
GenericName[ru]=Конвертер единиц измерения
Comment=Convert between various units
Comment[ru]=Преобразование одних единиц измерения в другие
Icon=%{name}
Exec=%{name}
Terminal=false
Type=Application
Categories=Science;Math;
Keywords=Pound;Euro;Dollar;Yen;Meter;Metre;Mile;Convert;Gram;Inch;Litre;
EOF

# install menu icons
for s in 256 128 96 48 32 22 16 ; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
rsvg-convert -w ${s} -h ${s} \
    icons/%{name}-icon.svg -o \
    %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/%{name}.png
done

mv %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}-icon.svg \
    %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 807 |21cr|convertfs-0.20050113-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# OE: conditional switches
#(ie. use with rpm --rebuild):
#	--with diet	Compile convertfs against dietlibc

%define build_diet 0

# commandline overrides:
# rpm -ba|--rebuild --with 'xxx'
%{?_with_diet: %{expand: %%define build_diet 1}}

%define date	%(echo %{version} |cut -d. -f 2)
%define fdate	%(date -d %date +%d%b%Y | tr [:upper:] [:lower:])

Summary:	ConvertFS - convert one file system to another
Name:		convertfs
Version:	0.20050113
Release:	3
Source0:	http://tzukanov.narod.ru/convertfs/%{name}-%{fdate}.tar.gz
# lynx -dump -nolist http://tzukanov.narod.ru/convertfs/ > README
Source1:	README.lzma
License:	GPLv2
Group:		System/Kernel and hardware
URL:		http://tzukanov.narod.ru/convertfs/

%if %{build_diet}
BuildRequires:	dietlibc-devel >= 0.20-1mdk
%endif

%description
ConvertFS is a very simple but extremely powerful toolset which
allows users to convert one file system to another. It works for
converting virtually any filesystem type to virtually any one as
long as they are both block-oriented and supported by Linux for
read/write, and as long as primary filesystem supports sparse
files. 

 * devclone  -  Utility to make clone of the block device (sparse
                file of the same size).
 * devremap  -  Core of the toolset - block relocation utility.
 * prepindex -  Utility to prepare index (list of raw blocks) of
                filesystem image.

%prep
%setup -q -n %{name}
lzcat %{SOURCE1} > README

%build
%if %{build_diet}
    # OE: use the power of dietlibc
    for i in devclone devremap prepindex; do
	diet gcc -s -static -o $i $i.c -Os
    done	
%else
    %make CFLAGS="%{optflags}"
%endif

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}/sbin
install -m755 devclone %{buildroot}/sbin/
install -m755 devremap %{buildroot}/sbin/
install -m755 prepindex %{buildroot}/sbin/

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README contrib test convertfs_dumb
/sbin/devclone
/sbin/devremap
/sbin/prepindex

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 808 |21cr|converts_print-0-1.gitb22848.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit b2284869c1f59957961b53e62d79180dfb25f6f2
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Script to automate printing envelopes for a list of receptionists
Name:		converts_print
Version:	0
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		Office
Url:		https://gitlab.com/mikhailnov/converts_print
Source0:	https://gitlab.com/mikhailnov/converts_print/-/archive/%{commit}/converts_print-%{commit}.tar.gz
BuildArch:	noarch
# in sync with debian/control
Requires:	bash
Requires:	coreutils
Requires:	gawk
Requires:	libreoffice-calc
Requires:	libreoffice-draw
Requires:	sed
Requires:	zenity
Requires:	zip
Requires:	%{_bindir}/pdfunite
Requires:	%{_bindir}/xdg-open
# fonts inside *.odg templates
Recommends:	fonts-ttf-XO
Recommends:	fonts-ttf-liberation-sans
Provides:	converts-print = %{EVRD}

%description
Script to automate printing envelopes for a list of receptionists

%description -l ru_RU.UTF-8
Скрипт для автоматической генерации конвертов из базы получателей в виде таблицы

%files
%license LICENSE
%doc debian/changelog
%{_bindir}/converts_print
%{_datadir}/converts_print
%{_datadir}/icons/converts_print.svg
%{_datadir}/applications/converts_print.desktop

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 809 |21cr|convmv-2.05-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts filenames from one encoding to another
Name:		convmv
Version:	2.05
Release:	1
Source0:	http://www.j3e.de/linux/convmv/%{name}-%{version}.tar.gz
Source1:	testsuite2.tar.bz2
License:	GPLv2+
Group:		File tools
Url:		http://j3e.de/linux/convmv/
BuildArch:	noarch

%description
This is a script for renaming files from one file name encoding to another,
e.g. from ISO-LATIN-1 to UTF-8.

%prep
%setup -q -a 1

%build
make

%check
make test

%install
%makeinstall PREFIX=%{buildroot}%{_prefix}

%clean

%files
%doc Changes CREDITS TODO
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 810 |21cr|cooledit-3.17.17-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1
%define libname %mklibname Cw %{major}
%define develname %mklibname -d Cw

Summary:	Full featured multiple window programmer's text editor
Name:		cooledit
Version:	3.17.17
Release:	11
License:	GPLv2+
Group:		Editors
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)
BuildRequires:	gettext-devel
URL:		ftp://ftp.ibiblio.org/pub/Linux/apps/editors/X/cooledit/
Source0:	ftp://ftp.ibiblio.org/pub/Linux/apps/editors/X/%{name}/%{name}-%{version}.tar.bz2
Source1:	%{name}_48x48.xpm
Patch0:		cooledit-gcc4.patch
Patch1:		cooledit-3.17.17-mdv-fix-str-fmt.patch
Patch2:		cooledit-3.17.17-mdv-fix-underlinking.patch

%description 
Full-featured X Window text editor; multiple edit windows; 3D Motif-ish
look and feel; shift-arrow and mouse text highlighting; column text
highlighting and manipulation; color syntax highlighting for various
sources; buildin Python interpretor for macro program.; interactive
graphical debugger - interface to gdb; key for key undo; macro
recording; regular expression search and replace; pull-down menus; drag
and drop; interactive man page browser; run make and other shell
commands with seamless shell interface; redefine keys with an easy
interactive key learner; full support for proportional fonts;

%package -n %{libname}
Group:		Editors
Summary:	Shared library files for cooledit

%description -n %{libname}
Shared library files for cooledit.

%package -n %{develname}
Group:		Development/C
Summary:	Development files for cooledit
Requires:	%{name} = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
Files for development from the cooledit package.

%prep
%setup -q
%patch0 -p1
%patch1 -p1 -b .strfmt
%patch2 -p1 -b .undlnk

%build
autoreconf -fi
%configure --program-prefix='' --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

# Mandriva menu entries

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=CoolEdit
Comment=Programmer's text editor with Python and shell scripting hooks
Exec=%{_bindir}/%{name}
Icon=editors_section
Terminal=false
Type=Application
StartupNotify=true
Categories=TextEditor;Utility;
EOF

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS BUGS COPYING FAQ INSTALL INTERNATIONAL HINTS
%doc NEWS README TODO VERSION ChangeLog
%doc cooledit.lsm cooledit.spec
%doc cooledit_16x16.xpm cooledit_32x32.xpm rxvt/README.rxvt
%dir %{_datadir}/cooledit/
%{_datadir}/cooledit/*
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 811 |21cr|coolkey-1.1.0-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define coolkey_module "CoolKey PKCS #11 Module"
%define nssdb %{_sysconfdir}/pki/nssdb

%define major 1
%define libname %mklibname ckyapplet %{major}
%define devname %mklibname ckyapplet -d

Summary:	CoolKey PKCS #11 module
Name:		coolkey
Version:	1.1.0
Release:	33
License:	LGPLv2+
Group:		System/Libraries
Url:		http://directory.fedora.redhat.com/wiki/CoolKey
Source0:	coolkey-%{version}.tar.gz
Patch1:		coolkey-cache-dir-move.patch
Patch2:		coolkey-gcc43.patch
Patch3:		coolkey-latest.patch
Patch4:		coolkey-simple-bugs.patch
Patch5:		coolkey-thread-fix.patch
Patch6:		coolkey-cac.patch
Patch7:		coolkey-cac-1.patch
Patch8:		coolkey-pcsc-lite-fix.patch
Patch9:		coolkey-fix-token-removal-failure.patch
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(zlib)
Requires:	ccid
Requires:	nss
Requires:	pcsc-lite

%description
Linux Driver support for the CoolKey and CAC products.

%files
%doc ChangeLog LICENSE
%{_bindir}/pk11install
%{_libdir}/libcoolkeypk11.so
%{_libdir}/pkcs11

%post
isThere=`modutil -rawlist -dbdir %{nssdb} | grep %{coolkey_module} || echo NO`
if [ "$isThere" == "NO" ]; then
   if [ -x %{_bindir}/pk11install ]; then
      pk11install -p %{nssdb} 'name=%{coolkey_module} library=libcoolkeypk11.so' ||:
   fi
fi


%postun
if [ $1 -eq 0 ]; then
   modutil -delete %{coolkey_module} -dbdir %{nssdb} -force || :
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CoolKey Applet shared library
Group:		System/Libraries
Conflicts:	%{name} < 1.1.0-30

%description -n %{libname}
Linux Driver support to access the CoolKey applet (shared library).

%files -n %{libname}
%{_libdir}/libckyapplet.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	CoolKey Applet development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.1.0-30
Obsoletes:	%{name}-devel < 1.1.0-30

%description -n %{devname}
Linux Driver support to access the CoolKey applet (development files).

%files -n %{devname}
%{_libdir}/libckyapplet.so
%{_libdir}/pkgconfig/libckyapplet.pc
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1
%patch2
%patch3
%patch4
%patch5
%patch6
%patch7
%patch8
%patch9 -p1

%build
%global optflags %{optflags} -fno-strict-aliasing
autoconf
%configure \
	--disable-dependency-tracking \
	--enable-pk11install
%make

#	CFLAGS="$CFLAGS -fno-strict-aliasing $CFLAGS " \
#	CXXFLAGS="$CXXFLAGS -fno-strict-aliasing $CFLAGS"

%install
%makeinstall_std
ln -s pkcs11/libcoolkeypk11.so %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_var}/cache/coolkey

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 812 |21cr|coolreader3-3.2.59-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname coolreader-cr

Summary:	Free e-book reader
Name:		coolreader3
Version:	3.2.59
Release:	2
License:	GPLv2+
Group:		Books/Literature
Url:		http://www.coolreader.org
Source0:	https://github.com/buggins/coolreader/archive/cr%{version}/coolreader-cr%{version}.tar.gz
Source1:	cr3.appdata.xml
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libutf8proc)
BuildRequires:	pkgconfig(libunibreak)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)

%description
CoolReader 3.X is free open-source (GPL) multiplatform version under active
development.

%files
%{_bindir}/cr3
%{_datadir}/cr3/*.css
%{_datadir}/cr3/i18n/*.qm
%{_datadir}/cr3/hyph/*.pattern
%{_datadir}/cr3/textures/*.jpg
%{_datadir}/cr3/backgrounds/*.jpg
%{_datadir}/pixmaps/cr3.*
%{_datadir}/applications/cr3.desktop
%{_datadir}/doc/cr3/*
%{_mandir}/man1/cr3.*
%{_appdatadir}/cr3.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -qn coolreader-cr%{version}

%build
%cmake \
	-DGUI=QT5			\
	-DMAX_IMAGE_SCALE_MUL=2		\
	-DDOC_DATA_COMPRESSION_LEVEL=3	\
	-DDOC_BUFFER_SIZE=0x1400000	\
	-DCMAKE_BUILD_TYPE=Release
%make

%install
%makeinstall_std -C build
install -D -pm 644 %{SOURCE1} %{buildroot}%{_appdatadir}/cr3.appdata.xml

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/cr3.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/cr3.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 813 |21cr|cool-retro-term-1.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define qmltermwidget_version 0.1.0

Summary:        Cool Retro Terminal
Name:           cool-retro-term
Version:        1.0.1
Release:        4
License:        GPLv3+
Group:          Terminals
Url:            https://github.com/Swordfish90/cool-retro-term
# From git by tag https://github.com/Swordfish90/cool-retro-term/archive/v%{version}.tar.gz
Source0:        %{name}-%{version}.tar.gz
# From git by tag https://github.com/Swordfish90/qmltermwidget/archive/v%{qmltermwidget_version}.tar.gz
Source1:        qmltermwidget-%{qmltermwidget_version}.tar.gz
BuildRequires:  qmake5
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Widgets)

%description
Cool Retro Terminal is a terminal emulator which tries to mimic the look and
feel of the old cathode tube screens. It has been designed to be eye-candy,
customizable, and reasonably lightweight.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%dir %{_qt5_libdir}/qt5/qml/QMLTermWidget
%{_qt5_libdir}/qt5/qml/QMLTermWidget/*

#----------------------------------------------------------------------------

%prep
%setup -q

rm -rf qmltermwidget
tar -xf %{SOURCE1}
mv qmltermwidget-%{qmltermwidget_version} qmltermwidget

%build
%define optflags -Wa,--compress-debug-sections -gdwarf-4
%define ldflags %{nil}
%qmake_qt5
%make

%install
make install INSTALL_ROOT=%{buildroot} STRIP=true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 814 |21cr|copyfs-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A copy-on-write, versionned filesystem
Name:		copyfs
Version:	1.0.1
Release:	10
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://n0x.org/copyfs/
Source0:	http://n0x.org/copyfs/%{name}-%{version}.tar.bz2
Patch0:		copyfs-headers.patch
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(fuse)
Requires:	fuse

%description
CopyFS is a copy-on-write, versionned file system. This file system is
useful for example when you have a directory containing important
files, for which you want to track changes, and be able to revert to an
older version. CopyFS lets you do that by transparently making backups
of each file that you modify. You are then able to see what version are
available for a file, and get an older version.

%files
%doc README TODO COPYING
%{_bindir}/copyfs-daemon
%{_bindir}/copyfs-fversion
%{_bindir}/copyfs-mount
%{_mandir}/man1/copyfs-daemon.*
%{_mandir}/man1/copyfs-fversion.*
%{_mandir}/man1/copyfs-mount.*
%{_mandir}/man1/copyfs.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 815 |21cr|copyq-7.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname CopyQ

Summary:	Advanced clipboard manager
Name:		copyq
Version:	7.1.0
Release:	1
License:	GPLv3+
Group:		Accessibility
Url:		http://hluk.github.io/CopyQ/
Source0:	https://github.com/hluk/CopyQ/archive/v%{version}/%{oname}-%{version}.tar.gz
Patch0:		copyq-6.1.0-plugindir.patch
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core) >= 5.8.0
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	kf5notifications-devel

%description
CopyQ is advanced clipboard manager with search-able and editable history with
support for image formats, command line control and more.
Features
- Supports Windows and Linux.
- Store text, HTML, images and any other custom format.
- Customize tray menu.
- Save items in new tabs.
- Quickly browse through items (fast navigation, filtering with matched text
  highlighting).
- Sort items, create new, remove, copy/paste to different tab.
- Variety of system-wide shortcuts (e.g. show main window or tray, edit
  clipboard, copy next/previous item, paste as plain text).
- Immediately paste to focused window from tray or main window.
- Fully customizable appearance (colors, fonts, transparency).
- Advanced command-line interface and scripting.
- Ignore clipboard copied from some windows or containing some text.
- Apply custom commands on selected items or automatically when new matching
  clipboard content is available.

%files
%doc AUTHORS LICENSE
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/com.github.hluk.%{name}.desktop
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/metainfo/com.github.hluk.%{name}.appdata.xml
%{_datadir}/%{name}/themes/*.css
%{_datadir}/%{name}/themes/*.ini
%{_datadir}/%{name}/translations/%{name}*.qm
%{_iconsdir}/hicolor/*/apps/%{name}*.svg
%{_iconsdir}/hicolor/*/apps/%{name}*.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
find . -type f -exec chmod -x {} \;


%build
export CFLAGS="%{optflags} -ffast-math"
%cmake_qt5 \
    -DWITH_QT5=TRUE \
    -DLIBDIR=%{_lib}
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 816 |21cr|coq-8.15.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

%global camlsuffix opt
%global ocamldir %{_libdir}/ocaml

Summary:	The Coq Proof Assistant
Name:		coq
Version:	8.15.2
Release:	2
Group:		Sciences/Computer science
License:	LGPLv2+
Url:		http://coq.inria.fr
Source0:	https://github.com/coq/coq/archive/refs/tags/V%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/coq/coq/releases/download/V%{version}/coq-%{version}-reference-manual.pdf?/Reference-Manual.pdf
Source2:	coq.xml
Source3:	fr.inria.coqide.metainfo.xml
Source4:	fr.inria.coqide.desktop
Source10:	%{name}.rpmlintrc
BuildRequires:	appstream
BuildRequires:	libicns-utils
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-zarith-devel
BuildRequires:	ocaml-lablgtk3-devel
BuildRequires:	ocaml-lablgtk3-sourceview3-devel

%description
Coq is a proof assistant which:
  - allows to handle calculus assertions,
  - check mechanically proofs of these assertions,
  - helps to find formal proofs,
  - extracts a certified program from the constructive proof
    of its formal specification.

%files
%doc %{_docdir}/coq/coq-core
%{_bindir}/*
%{_libdir}/ocaml/coq
%{_libdir}/ocaml/coq-core
%{_libdir}/ocaml/coq-doc
%{_libdir}/ocaml/coq-stdlib
%{_libdir}/ocaml/stublibs
%{_mandir}/man1/*
%{_datadir}/texmf/tex/latex/misc/*
%exclude %{_bindir}/coqide*
%exclude %{_libdir}/ocaml/coqide*

#----------------------------------------------------------------------------

%package ide
Summary:	The Coq Integrated Development Interface
Group:		Sciences/Computer science
Requires:	%{name} = %{EVRD}

%description ide
The Coq Integrated Development Interface is a graphical interface for the
Coq proof assistant.

%files ide
%doc %{_docdir}/coq/coqide*
%{_bindir}/coqide*
%{_libdir}/ocaml/coqide*
%{_datadir}/icons/hicolor/16x16/apps/coq.png
%{_datadir}/icons/hicolor/16x16/mimetypes/coqfile.png
%{_datadir}/icons/hicolor/32x32/apps/coq.png
%{_datadir}/icons/hicolor/32x32/mimetypes/coqfile.png
%{_datadir}/icons/hicolor/128x128/mimetypes/coqfile.png
%{_datadir}/icons/hicolor/256x256/apps/coq.png
%{_datadir}/icons/hicolor/256x256/mimetypes/coqfile.png
%{_datadir}/icons/hicolor/512x512/apps/coq.png
%{_datadir}/icons/hicolor/512x512/mimetypes/coqfile.png
%{_metainfodir}/fr.inria.coqide.metainfo.xml
%{_datadir}/applications/fr.inria.coqide.desktop
%{_datadir}/gtksourceview-3.0/language-specs/coq*.lang
%{_datadir}/gtksourceview-3.0/styles/coq_style.xml
%{_datadir}/coq
%{_datadir}/mime/packages/coq.xml
%{_sysconfdir}/xdg/coq/

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Sciences/Computer science
License:	Open Publication License
BuildArch:	noarch

%description doc
The %{name}-doc package contains documentation for %{name}.

%files doc
%doc Reference-Manual.pdf

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

cp %{SOURCE1} .

# Use Fedora flags
sed -e 's|-Wall.*-O2|%{build_cflags} %{build_ldflags} -Wno-unused|' \
    -e 's| -march=native||' \
    -i tools/configure/configure.ml

fixtimestamp() {
  touch -r $1.orig $1
  rm -f $1.orig
}

# Do not invoke env
for f in doc/tools/coqrst/notations/fontsupport.py;
do
  sed -i.orig 's,/usr/bin/env python2,%__python3,' $f
  fixtimestamp $f
done
for f in $(grep -Frl '%{_bindir}/env'); do
  sed -r -i.orig 's,(%{_bindir}/)env[[:blank:]]+([[:alnum:]]+),\1\2,g' $f
  fixtimestamp $f
done

%build
./configure \
        -mandir %{_mandir} \
        -prefix %{_prefix} \
        -libdir %{ocamldir}/coq \
        -configdir %{_sysconfdir}/xdg/coq \
        -docdir %{_datadir}/doc/%{name} \
        -datadir %{_datadir}/pixmaps \
        -browser "xdg-open %s" \
        -native-compiler yes \
        -coqide opt \
        -bin-annot

export CAML_LD_LIBRARY_PATH=`pwd`/kernel/byterun:${CAML_LD_LIBRARY_PATH}
make world

%install
make install-coq DESTDIR=%{buildroot}
make install-coqide DESTDIR=%{buildroot}
export EXCLUDE_FROM_STRIP=%{_bindir}

#%%make_install

# FIXME: why didn't this install in libdir?
mkdir -p %{buildroot}%{ocamldir}
mv %{buildroot}%{_prefix}/lib/{coq*,stublibs} %{buildroot}%{ocamldir}
%ifnarch %{ix86}
rmdir %{buildroot}%{_prefix}/lib
%endif

# FIXME: dune ignores the configdir argument to configure
mkdir -p %{buildroot}%{_sysconfdir}/xdg/%{name}

# Use links rather than copying binaries
for fil in coqtop coqidetop; do
  rm -f %{buildroot}%{_bindir}/$fil
  ln %{buildroot}%{_bindir}/$fil.%{camlsuffix} %{buildroot}%{_bindir}/$fil
done

# Install desktop and file type icons
pushd ide/coqide/MacOS
icns2png -x coqide.icns
for sz in 16 32 256 512; do
  mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${sz}x${sz}/apps
  mv coqide_${sz}x${sz}x32.png \
    %{buildroot}%{_datadir}/icons/hicolor/${sz}x${sz}/apps/coq.png
done
icns2png -x coqfile.icns
for sz in 16 32 128 256 512; do
  mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${sz}x${sz}/mimetypes
  mv coqfile_${sz}x${sz}x32.png \
    %{buildroot}%{_datadir}/icons/hicolor/${sz}x${sz}/mimetypes/coqfile.png
done
popd

# Install desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE4}

# Make a MIME type for .v files
mkdir -p %{buildroot}%{_datadir}/mime/packages
cp -p %{SOURCE2} %{buildroot}%{_datadir}/mime/packages

# Install AppData file
mkdir -p %{buildroot}%{_metainfodir}
install -pm 644 %{SOURCE3} %{buildroot}%{_metainfodir}
appstreamcli validate --no-net \
  %{buildroot}%{_metainfodir}/fr.inria.coqide.metainfo.xml

# Install the language bindings
mkdir -p %{buildroot}%{_datadir}/gtksourceview-3.0/language-specs
for fil in coq.lang coq-ssreflect.lang; do
  ln -s ../../coq/$fil %{buildroot}%{_datadir}/gtksourceview-3.0/language-specs
done

# Install the style file
mkdir -p %{buildroot}%{_datadir}/gtksourceview-3.0/styles
ln -s ../../coq/coq_style.xml %{buildroot}%{_datadir}/gtksourceview-3.0/styles

# We install our own documentation
rm -fr %{buildroot}%{_prefix}/doc

# Install opam files
cp -p coq.opam %{buildroot}%{ocamldir}/coq/opam

mkdir -p %{buildroot}%{ocamldir}/coq-stdlib
cp -p coq-stdlib.opam %{buildroot}%{ocamldir}/coq-stdlib/opam

mkdir -p %{buildroot}%{ocamldir}/coq-doc
cp -p coq-doc.opam %{buildroot}%{ocamldir}/coq-doc/opam

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 817 |21cr|coquillo-2.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	Audio Metadata Editor
Name:		coquillo
Version:	2.0.2
Release:	2
License:	LGPLv3+
Group:		Sound
Url:			https://github.com/sjuvonen/coquillo
Source0:	https://github.com/sjuvonen/coquillo/archive/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(taglib)

%description
Coquillo is a metadata editor, or so-called tagger utility, with which you can
edit tags of many different audio files. Its support includes MP3, Ogg/Vorbis,
FLAC and many others.

%files
%doc BUGS LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%qmake_qt5
%make


%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 818 |21cr|corectrl-1.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}

Summary:	Friendly hardware control
Name:		corectrl
Version:	1.2.7
Release:	1
License:	GPLv3+ and Boost and BSD and MIT and Public Domain
Group:		Monitoring
Url:		https://gitlab.com/corectrl/corectrl
Source0:	https://gitlab.com/corectrl/corectrl/-/archive/v%{version}/%{name}-v%{version}.tar.gz
Source1:	README.fedora.md
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	ninja
BuildRequires:	appstream-glib-devel
BuildRequires:	libdrm-devel
BuildRequires:	libstdc++-static-devel
BuildRequires:	cmake(KF5Archive)
BuildRequires:	cmake(KF5Auth)
BuildRequires:	cmake(KF5CoreAddons)
BuildRequires:	cmake(Qt5Charts)
BuildRequires:	cmake(Qt5Concurrent)
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5DBus)
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	cmake(Qt5Multimedia)
BuildRequires:	cmake(Qt5Network)
BuildRequires:	cmake(Qt5Svg)
BuildRequires:	cmake(Qt5Widgets)
BuildRequires:	pkgconfig(botan-2)
BuildRequires:	pkgconfig(x11)
Requires:	dbus-common
Requires:	hicolor-icon-theme
Requires:	polkit
Requires:	qt5-qtquickcontrols2
Recommends:	glxinfo
Recommends:	vulkan

%description
CoreCtrl is a Free and Open Source GNU/Linux application that allows you to
control with ease your computer hardware using application profiles. It aims to
be flexible, comfortable and accessible to regular users.

- For setup instructions run:

 xdg-open %{_docdir}/%{name}/README.md

- or go to the project wiki:

 https://gitlab.com/corectrl/corectrl/wikis

%files
%doc README.md README.fedora.md
%license COPYING LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/system.d/*.conf
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/icons/hicolor/*/*/*.svg
%{_datadir}/polkit-1/actions/*.policy
%{_libdir}/libexec/kauth/%{name}_*
%{_metainfodir}/*.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CoreCtrl library
Group:		System/Libraries

%description -n %{libname}
CoreCtrl library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%prep
%autosetup -n %{name}-v%{version} -p1
cp %{SOURCE1} ./
# 'lib64' path fix
sed -e 's@DESTINATION lib@DESTINATION %{_lib}@g' -i src/CMakeLists.txt
# lib soversion fix
echo "set_property(TARGET %{name}_lib PROPERTY SOVERSION 0)" >> src/CMakeLists.txt

%build
%cmake	\
	-DBUILD_TESTING=ON	\
	-DCMAKE_BUILD_TYPE=RelWithDebInfo	\
	-G Ninja
%ninja_build

%install
%ninja_install -C build

# Useless symlink without headers
rm %{buildroot}/%{_libdir}/lib%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 819 |21cr|coredumper-1.2.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Generate a core dump of a running program without crashing
Name:		coredumper
Version:	1.2.1
Release:	13
License:	BSD
Group:		System/Libraries
Url:		http://code.google.com/p/google-coredumper/
Source0:	http://google-coredumper.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		coredumper-libtool_fixes.diff
Patch1:		coredumper-1.2.1-fix-build-1.patch
Patch2:		coredumper-1.2.1-rosa-buildfix.patch
Patch3:		coredumper-1.2.1-fix-build-2.patch
BuildRequires:	autoconf2.5
BuildRequires:	automake
# gdb is needed by make check
BuildRequires:	gdb

%description
The coredumper library can be compiled into applications to create
core dumps of the running program, without termination. It
supports both single- and multi-threaded core dumps, even if the
kernel doesn't natively support for multi-threaded core files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Generate a core dump of a running program without crashing
Group:		System/Libraries

%description -n %{libname}
The coredumper library can be compiled into applications to create
core dumps of the running program, without termination. It
supports both single- and multi-threaded core dumps, even if the
kernel doesn't natively support for multi-threaded core files.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Generate a core dump of a running program without crashing
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	coredumper-devel = %{EVRD}

%description -n %{devname}
The coredumper library can be compiled into applications to create
core dumps of the running program, without termination. It
supports both single- and multi-threaded core dumps, even if the
kernel doesn't natively support for multi-threaded core files.

This package contains static and debug libraries and header
files for developing applications that use the coredumper library.

%files -n %{devname}
%doc examples
%{_libdir}/lib%{name}.so
%{_includedir}/google/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .libtool
%patch1 -p1
%patch2 -p1
%patch3 -p1

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

%build
export WANT_AUTOCONF_2_5=1
rm -f configure
libtoolize --copy --force
aclocal
autoconf --force
automake --add-missing

%serverbuild

export CFLAGS="$CFLAGS -fPIC -DPIC"

%configure --disable-static

%make CFLAGS="$CFLAGS -fPIC -DPIC"

%install
%makeinstall_std

# cleanup
rm -rf %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 820 |21cr|coriander-2.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI for controlling IEEE1394 cameras
Name:		coriander
Version:	2.0.3
Release:	2
License:	GPLv2+
Group:		Video
Url:		http://damien.douxchamps.net/ieee1394/coriander/
Source0:	http://downloads.sourceforge.net/project/coriander/%{name}-2/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	gettext
#BuildRequires:	ffmpeg-devel
BuildRequires:	ftp-devel
BuildRequires:	pkgconfig(libdc1394-2) >= 2.0.2
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libraw1394) >= 1.2.0
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xv)

%description
Coriander is the Linux graphical user interface (GUI) for controlling a
Digital Camera through the IEEE1394 bus (aka FireWire, or iLink). Coriander is
full featured and besides changing the parameters of the camera it will also
let you record video, send images to an FTP site, convert the video to a V4L
stream,... A live display is of course provided too. Best of all, Coriander
will work with any camera that is compatible with the IIDC specifications
(also known as DCAM specs). This includes most 1394 webcams and a majority of
industrial or scientific cameras too.

%files
%doc AUTHORS COPYING README
%{_bindir}/%{name}
%dir %{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}/%{name}-icon.png
%{_datadir}/pixmaps/%{name}/%{name}-logo.png

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fcommon
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 821 |21cr|corkscrew-2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define patchSet0 20060404

Name: corkscrew
Summary: Tool for tunneling SSH through HTTP proxies
Version: 2.0
Release: 10
License: GPL
Url: http://www.agroman.net/%{name}
Group: Networking/Other
Source0: http://www.agroman.net/%{name}/%{name}-%{version}.tar.bz2
Patch0: %{name}-%{version}.%{patchSet0}-manpage.patch.bz2
Patch1: %{name}-%{version}.%{patchSet0}-firstpacket.patch.bz2

%description
Corkscrew is a tool for tunneling SSH through HTTP proxies.

%prep
%setup
%patch0 -p1 -b .manpage
%patch1 -p1 -b .firstpacket

# Fix some bad references in the man pages
perl -pi -e 's|/usr/local/bin|%{_bindir}|g;' corkscrew.1 README

%build
rm -f install-sh missing mkinstalldirs
sed -i -e 's:AM_C_PROTOTYPES:dnl &:' configure.in
autoreconf -fi

%configure
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
cp corkscrew.1 %{buildroot}%{_mandir}/man1/corkscrew.1

%makeinstall

%files
%doc README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 822 |21cr|corosync-3.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __requires_exclude devel\\(libqb

%define	major		4
%define	maj_cmap	4
%define	maj_cpg		4
%define	maj_sam		4
%define	maj_cfg		7
%define	maj_quorum	5
%define	maj_totem	5
%define	maj_vote	8
%define	libname_common	%mklibname %{name}_common %{major}
%define	libcmap		%mklibname cmap %{maj_cmap}
%define	libcpg		%mklibname cpg %{maj_cpg}
%define	libsam		%mklibname sam %{maj_sam}
%define	libcfg		%mklibname cfg %{maj_cfg}
%define	libquorum	%mklibname quorum %{maj_quorum}
%define	libtotem_pg	%mklibname totem_pg %{maj_totem}
%define	libvotequorum	%mklibname votequorum %{maj_vote}
%define	devname %mklibname -d %{name}

Summary:	The Corosync Cluster Engine and Application Programming Interfaces
Name:		corosync
Version:	3.1.0
Release:	2
License:	BSD
Group:		System/Base
Url:		http://corosync.github.io/corosync
Source0:	http://build.clusterlabs.org/corosync/releases/corosync-%{version}.tar.gz
BuildRequires:	augeas
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libknet)
BuildRequires:	pkgconfig(libnozzle)
BuildRequires:	pkgconfig(libqb)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(nss)

%description
This package contains the Corosync Cluster Engine Executive, several default
APIs and libraries, default configuration files and a systemd unit.

%files
%doc AUTHORS ChangeLog LICENSE README.recovery
%{_sbindir}/%{name}*
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_datadir}/augeas/lenses
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/service.d
%dir %{_sysconfdir}/%{name}/uidgid.d
%dir %{_sysconfdir}/sysconfig/
%{_sysconfdir}/dbus-1/system.d/%{name}-signals.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/corosync
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-notifyd
%dir %{_localstatedir}/lib/%{name}
%{_mandir}/man5/%{name}.xml.5*
%{_mandir}/man5/%{name}.conf.5*
%{_mandir}/man5/votequorum.5*
%{_mandir}/man7/%{name}_overview.7*
%{_mandir}/man7/cmap_keys.7*
%{_mandir}/man8/%{name}-*.8*
%{_mandir}/man8/%{name}.8*
%{_unitdir}/%{name}-notifyd.service
%{_unitdir}/%{name}.service
%dir /var/log/cluster
%{_sysconfdir}/logrotate.d/%{name}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#---------------------------------------------------------------------------

%package -n %{libcmap}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libcmap}
This package contains corosync libraries.

%files -n %{libcmap}
%doc LICENSE
%{_libdir}/libcmap.so.%{maj_cmap}*

#---------------------------------------------------------------------------

%package -n %{libname_common}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libname_common}
This package contains corosync libraries.

%files -n %{libname_common}
%doc LICENSE
%{_libdir}/lib%{name}_common.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{libcpg}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libcpg}
This package contains corosync libraries.

%files -n %{libcpg}
%doc LICENSE
%{_libdir}/libcpg.so.%{maj_cpg}*

#---------------------------------------------------------------------------

%package -n %{libsam}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libsam}
This package contains corosync libraries.

%files -n %{libsam}
%doc LICENSE
%{_libdir}/libsam.so.%{maj_sam}*

#---------------------------------------------------------------------------

%package -n %{libcfg}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libcfg}
This package contains corosync libraries.

%files -n %{libcfg}
%doc LICENSE
%{_libdir}/libcfg.so.%{maj_cfg}*

#---------------------------------------------------------------------------

%package -n %{libquorum}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libquorum}
This package contains corosync libraries.

%files -n %{libquorum}
%doc LICENSE
%{_libdir}/libquorum.so.%{maj_quorum}*

#---------------------------------------------------------------------------

%package -n %{libvotequorum}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libvotequorum}
This package contains corosync libraries.

%files -n %{libvotequorum}
%doc LICENSE
%{_libdir}/libvotequorum.so.%{maj_vote}*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	The Corosync Cluster Engine Development Kit
Group:		Development/C
Requires:	%{libcmap} = %{EVRD}
Requires:	%{libname_common} = %{EVRD}
Requires:	%{libcpg} = %{EVRD}
Requires:	%{libsam} = %{EVRD}
Requires:	%{libcfg} = %{EVRD}
Requires:	%{libquorum} = %{EVRD}
Requires:	%{libvotequorum} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains include files and man pages used to develop using
the Corosync Cluster Engine APIs.

%files -n %{devname}
%doc LICENSE README.recovery
%{_includedir}/%{name}/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*.3*

#---------------------------------------------------------------------------

%prep
%setup -q


%build
./autogen.sh
%configure \
	--disable-static \
	--enable-systemd \
	--enable-dbus \
	--enable-watchdog \
	--enable-augeas \
	--enable-xmlconf \
	--enable-vqsim \
	--enable-nozzle \
	--enable-user-flags \
	--with-systemddir=%{_unitdir}
%make

%install
%makeinstall_std

# drop docs and html docs for now
rm -rf %{buildroot}%{_docdir}/*

# add logs directory
mkdir -p %{buildroot}/var/log/cluster

# main config
mv %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf.example %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf

# /etc/sysconfig/corosync-notifyd
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 tools/corosync-notifyd.sysconfig.example %{buildroot}%{_sysconfdir}/sysconfig/%{name}-notifyd
# /etc/sysconfig/corosync
install -m 644 init/corosync.sysconfig.example %{buildroot}%{_sysconfdir}/sysconfig/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 823 |21cr|corosync-qdevice-3.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without userflags

Name:		corosync-qdevice
Summary:	The Corosync Cluster Engine Qdevice
Group:		System/Base
Version:	3.0.3
Release:	1
License:	BSD-3-Clause
URL:		https://github.com/corosync/corosync-qdevice
Source0:	https://github.com/corosync/corosync-qdevice/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source10:	coroqnetd.sysusers.conf
BuildRequires:	pkgconfig(systemd)
BuildRequires:	corosync-devel
BuildRequires:	libqb-devel
BuildRequires:	sed
BuildRequires:	groff
BuildRequires:	nss-devel

Requires:	corosync
Requires:	nss-tools

%description
This package contains the Corosync Cluster Engine Qdevice, script for creating
NSS certificates and an init script.

%files
%dir %{_sysconfdir}/corosync/qdevice
%dir %config(noreplace) %{_sysconfdir}/corosync/qdevice/net
%dir %{_localstatedir}/run/corosync-qdevice
%{_sbindir}/corosync-qdevice
%{_sbindir}/corosync-qdevice-net-certutil
%{_sbindir}/corosync-qdevice-tool
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-qdevice
%{_unitdir}/corosync-qdevice.service
%{_mandir}/man8/corosync-qdevice-tool.8*
%{_mandir}/man8/corosync-qdevice-net-certutil.8*
%{_mandir}/man8/corosync-qdevice.8*


%post
%systemd_post corosync-qdevice.service

%preun
%systemd_preun corosync-qdevice.service

%postun
%systemd_postun_with_restart corosync-qdevice.service

#-----------------------------------------------------------
%package -n corosync-qdevice-devel
Summary:	The Corosync Cluster Engine Qdevice Network Development Kit
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig

%description -n corosync-qdevice-devel
This package contains files used to develop using
The Corosync Cluster Engine Qdevice

%files -n corosync-qdevice-devel
%license LICENSE
%{_datadir}/pkgconfig/corosync-qdevice.pc
#-----------------------------------------------------------
%package -n corosync-qnetd
Summary:	The Corosync Cluster Engine Qdevice Network Daemon
Group:		System/Base
Requires:	nss-tools
Requires(pre):	/bin/systemd-sysusers

%description -n corosync-qnetd
This package contains the Corosync Cluster Engine Qdevice Network Daemon,
script for creating NSS certificates and an init script.

%files -n corosync-qnetd
%dir %config(noreplace) %attr(770, coroqnetd, coroqnetd) %{_sysconfdir}/corosync/qnetd
%dir %attr(770, coroqnetd, coroqnetd) %{_localstatedir}/run/corosync-qnetd
%{_bindir}/corosync-qnetd
%{_bindir}/corosync-qnetd-certutil
%{_bindir}/corosync-qnetd-tool
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-qnetd
%{_unitdir}/corosync-qnetd.service
%{_mandir}/man8/corosync-qnetd-tool.8*
%{_mandir}/man8/corosync-qnetd-certutil.8*
%{_mandir}/man8/corosync-qnetd.8*
%{_sysusersdir}/coroqnetd.conf

%pre -n corosync-qnetd
%sysusers_create_package coroqnetd %{SOURCE10}

%post -n corosync-qnetd
%systemd_post corosync-qnetd.service

%preun -n corosync-qnetd
%systemd_preun corosync-qnetd.service

%postun -n corosync-qnetd
%systemd_postun_with_restart corosync-qnetd.service

#-----------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}%{?gittarver}

%build
%configure \
%if %{with userflags}
	--enable-user-flags \
%endif
	--enable-systemd \
	--enable-qdevices \
	--enable-qnetd \
	--with-systemddir=%{_unitdir} \
	--docdir=%{_docdir}

%make_build

%install
%make_install

## tree fixup
# drop docs and html docs for now
rm -rf %{buildroot}%{_docdir}/*
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
# /etc/sysconfig/corosync-qdevice
install -p -m 644 init/corosync-qdevice.sysconfig.example \
   %{buildroot}%{_sysconfdir}/sysconfig/corosync-qdevice
# /etc/sysconfig/corosync-qnetd
install -p -m 644 init/corosync-qnetd.sysconfig.example \
   %{buildroot}%{_sysconfdir}/sysconfig/corosync-qnetd

sed -i -e 's/^#User=/User=/' \
   %{buildroot}%{_unitdir}/corosync-qnetd.service

# install sysusers config
install -D -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/coroqnetd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 824 |21cr|corsixth-0.66-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname CorsixTH

Summary:	Open source clone of Theme Hospital
Name:		corsixth
Version:	0.66
Release:	2
Epoch:		1
License:	MIT
Group:		Games/Strategy
Url:		https://github.com/CorsixTH/CorsixTH
Source0:	https://github.com/CorsixTH/CorsixTH/archive/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
Requires:	lua-luafilesystem
Requires:	lua-lpeg
Suggests:	fluidsynth

%description
This project aims to reimplement the game engine of Theme Hospital, and be
able to load the original game data files. This means that you will need a
purchased copy of Theme Hospital in order to enjoy CorsixTH.

%files
%doc README.txt
%license LICENSE.txt
%{_appdatadir}/com.%{name}.%{name}.metainfo.xml
%{_datadir}/applications/com.%{name}.%{name}.desktop
%{_gamesbindir}/corsix-th
%{_gamesdatadir}/corsix-th/
%{_iconsdir}/hicolor/scalable/apps/corsix-th.svg
%{_mandir}/man6/corsix-th.6.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
	-DCMAKE_INSTALL_BINDIR="games"		\
	-DCMAKE_INSTALL_DATADIR="share/games"	\
	-DCMAKE_INSTALL_PREFIX="%{_prefix}"
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 825 |21cr|cortado-0.2.2-0.0.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: don't bundle all this thirdparty software
# FIXME: do we need to install others jars, besides the applets?

Name:           cortado
Version:        0.2.2
Release:        0.0.6
Epoch:          0
Summary:        Java media framework based on GStreamer's design
Group:          Development/Java
License:        GPLv2+/LGPLv2+/BSD
URL:            http://www.flumotion.net/
Source0:        http://www.flumotion.net/src/cortado/cortado-%{version}.tar.gz
BuildRequires:  ant
BuildRequires:  java-rpmbuild
BuildArch:      noarch

%description
Cortado is a Java media framework based on GStreamer's design.

%prep
%setup -q

%build
export CLASSPATH=
export OPT_JAR_LIST=:
%{ant}

%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_javadir}

%{__cp} -a output/dist/applet/cortado-ovt-debug-%{version}.jar  %{buildroot}%{_javadir}/%{name}-ovt-%{version}.jar
%{__cp} -a output/dist/applet/cortado-ov-debug-%{version}.jar  %{buildroot}%{_javadir}/%{name}-ov-%{version}.jar
%{__cp} -a output/dist/applet/cortado-mmjs-debug-%{version}.jar  %{buildroot}%{_javadir}/%{name}-mmjs-%{version}.jar

(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc LICENSE.* HACKING README NEWS RELEASE TODO cortado.doap
%{_javadir}/%{name}-ovt-%{version}.jar
%{_javadir}/%{name}-ovt.jar
%{_javadir}/%{name}-ov-%{version}.jar
%{_javadir}/%{name}-ov.jar
%{_javadir}/%{name}-mmjs-%{version}.jar
%{_javadir}/%{name}-mmjs.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 826 |21cr|cosmosmash-1.4.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cosmosmash
Version:	1.4.8
Release:	1
Summary:	A space rock shooting video game
License:	GPLv2+
Group:		Games/Arcade
Url:		http://sarrazip.com/dev/cosmosmash.html
Source0: 	http://perso.b2b2c.ca/sarrazip/dev/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	flatzebra-devel >= 0.1.7

%description
In this game, you control a base that must destroy
rocks before they hit the ground, or you lose points.
You must also prevent "spinners" from touching the ground,
or your base will explode.
This game is a clone of the 1981 Astrosmash game for the
Intellivision by Mattel Electronics.

%files
%doc AUTHORS COPYING NEWS README THANKS 
%{_gamesbindir}/%{name}
%{_datadir}/sounds/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man6/%{name}.6.*
#-----------------------------------------

%prep
%setup -q

%build
%configure2_5x --bindir=%{_gamesbindir}

%make

%install
%makeinstall_std
rm -fr %{buildroot}%{_defaultdocdir}/%{name}-*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 827 |21cr|countryballgame-1.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname CountryballGame

Name:           countryballgame
Version:	1.01
Release:	1
Summary:        2D sidescroller similar to original Super Mario series
Group:          Games/Arcade
License:        GPLv2+
Url:            https://github.com/stepulak/CountryballGame
Source0:        https://github.com/stepulak/CountryballGame/archive/v1.0-windows.tar.gz
Source1:        https://raw.githubusercontent.com/stepulak/CountryballGame/master/media/polandball_ico.png
BuildRequires:  imagemagick
BuildRequires:  zip
Requires:       love >= 0.10
BuildArch:      noarch

%description
2D sidescroller platform game similar to 
original Super Mario series. 
The whole engine and game is written 
in Lua using Love2D framework.

Editor's keyboard shorcuts:
end - Editor mode/gameplay mode switch 
(unavailable in mobile version or when campaign is on)

tab - Show objects grid and available options

't' - Enable console

'1' - Show on/off grid

escape - Disable console

F5 - Quicksave (may overwrite old quicksavefile!)

F6 - Quickload (if exists)

WASD - Camera control .
 

%files
%doc README.md LICENSE
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------
%prep
%setup  -qn %{oname}-1.0-windows
pushd game
zip -9 -q -r %{name}.love .
popd


%build

%install
# data
install -D -m 644 game/%{name}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love

# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{name}.love
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size  -background transparent %{SOURCE1} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 828 |21cr|countrycodes-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Country code finder
Name:		countrycodes
Version:	1.0.6
Release:	1
License:	GPL
Group:		Networking/Other
Url:		http://www.grigna.com/diego/linux/countrycodes
Source0:	http://www.grigna.com/diego/linux/countrycodes/%{name}-%{version}.tar.gz

%description
Country codes is an ISO 3166 country code finder. It is mainly used to
determine to what country a domain name belongs. It also allows
searching by 2 or 3 letter codes, country number, and country name.

%files
%doc AUTHORS Changelog COPYING README
%{_bindir}/iso3166
%{_mandir}/man1/iso3166.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CCOPTS="%{optflags}"

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 755 iso3166 %{buildroot}%{_bindir}/iso3166
install -m 644 iso3166.1 %{buildroot}%{_mandir}/man1/iso3166.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 829 |21cr|courier-authlib-0.71.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Courier authentication library
Name:		courier-authlib
Version:	0.71.5
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.courier-mta.org
Source0:	http://prdownloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
Source2:	courier-authlib.authdaemon-init
Source3:	courier-authlib-tmpfiles.conf
Patch0:		courier-authlib-0.65.sysconftool.patch
BuildRequires:	courier-unicode-devel
BuildRequires:	expect
BuildRequires:	gdbm-devel
BuildRequires:	libltdl-devel
BuildRequires:	mysql-devel
BuildRequires:	openldap-devel
BuildRequires:	procps-ng
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libpq)
BuildRequires:	sysconftool

%description
The Courier authentication library provides authentication
services for other Courier applications.

This package contains common authentication modules:

 o authcustom
 o authpam
 o authpwd
 o authshadow
 o courierauthsaslclient
 o courierauthsasl

%files
%doc README.urpmi README README.authdebug.html README.html README_authlib.html
%doc NEWS COPYING* AUTHORS ChangeLog liblog/courierlogger.html
%dir %{_sysconfdir}/courier
%dir %{_libdir}/courier-authlib
%{_libdir}/courier-authlib/sysconftool
%{_libdir}/courier-authlib/libcourierauthsaslclient.so.*
%{_libdir}/courier-authlib/libcourierauthsasl.so.*
%{_libdir}/courier-authlib/libcourierauthcommon.so.*
%{_libdir}/courier-authlib/libcourierauth.so.*
%{_libdir}/courier-authlib/libauthcustom.so.0*
%{_libdir}/courier-authlib/libauthpam.so.0*
%{_libdir}/courier-authlib/libauthpwd.so.0*
%{_libdir}/courier-authlib/libauthshadow.so.0*
%{_libdir}/courier-authlib/libauthpipe.so.0*
%{_mandir}/man1/*
%{_libexecdir}/courier-authlib/authsystem.passwd

#----------------------------------------------------------------------------

%package -n courier-authdaemon
Summary:	Courier authentication daemon
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	expect
Requires(post,preun):	rpm-helper
Requires(post):	systemd
Requires(post):	%{name} = %{EVRD}

%description -n courier-authdaemon
This package contains the Courier authentication daemon.

%files -n courier-authdaemon
%config(noreplace) %{_sysconfdir}/courier/authdaemonrc
%{_sbindir}/authdaemond
%{_sbindir}/authdaemontest
%{_sbindir}/authenumerate
%{_sbindir}/authinfo
%{_sbindir}/authtest
%{_sbindir}/courierlogger
%{_sbindir}/authpasswd
%{_initrddir}/courier-authdaemon
%{_localstatedir}/lib/authdaemon
%{_tmpfilesdir}/%{name}.conf
%ghost %{_var}/run/authdaemon
%{_libexecdir}/courier-authlib/authdaemond
%{_libexecdir}/courier-authlib/makedatprog


%post -n courier-authdaemon
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
if [ -f %{_sysconfdir}/courier/authdaemonrc.rpmnew ]; then
    %{_libdir}/courier-authlib/sysconftool %{_sysconfdir}/courier/authdaemonrc.rpmnew >/dev/null
fi
%_post_service courier-authdaemon

%preun -n courier-authdaemon
%_preun_service courier-authdaemon

#----------------------------------------------------------------------------

%package userdb
Summary:	Userdb support for the Courier authentication library
Group:		System/Servers
Requires(post,postun):	courier-authdaemon = %{EVRD}

%description userdb
This package installs the userdb support for the Courier
authentication library.  Userdb is a simple way to manage virtual
mail accounts using a GDBM-based database file.

Install this package in order to be able to authenticate with
userdb.

%files userdb
%doc userdb/makeuserdb.html userdb/userdb.html userdb/userdbpw.html
%{_sbindir}/makeuserdb
%{_sbindir}/pw2userdb
%{_sbindir}/userdb
%{_sbindir}/userdbpw
%{_libdir}/courier-authlib/libauthuserdb.so.0*
%{_mandir}/man8/*userdb*

%post userdb
%{_initrddir}/courier-authdaemon condrestart 1>&2;

%postun userdb
if [ "$1" = "0" ]; then
    %{_initrddir}/courier-authdaemon condrestart 1>&2;
fi

#----------------------------------------------------------------------------

%package ldap
Summary:	LDAP support for the Courier authentication library
Group:		System/Servers
Requires(post):	%{name} = %{EVRD}
Requires(post,postun):	courier-authdaemon = %{EVRD}

%description ldap
This package installs LDAP support for the Courier authentication
library. Install this package in order to be able to authenticate
using LDAP.

%files ldap
%doc README.ldap authldap.schema
%config(noreplace) %{_sysconfdir}/courier/authldaprc
%{_libdir}/courier-authlib/libauthldap.so.0*

%post ldap
if [ -f %{_sysconfdir}/courier/authldaprc.rpmnew ]; then
    %{_libdir}/courier-authlib/sysconftool %{_sysconfdir}/courier/authldaprc.rpmnew >/dev/null
fi
%{_initrddir}/courier-authdaemon condrestart 1>&2;

%postun ldap
if [ "$1" = "0" ]; then
    %{_initrddir}/courier-authdaemon condrestart 1>&2;
fi

#----------------------------------------------------------------------------

%package mysql
Summary:	MySQL support for the Courier authentication library
Group:		System/Servers
Requires(post):	%{name} = %{EVRD}
Requires(post,postun):	courier-authdaemon = %{EVRD}

%description mysql
This package installs MySQL support for the Courier authentication
library. Install this package in order to be able to authenticate
using MySQL.

%files mysql
%doc README.authmysql.html README.authmysql.myownquery
%config(noreplace) %{_sysconfdir}/courier/authmysqlrc
%{_libdir}/courier-authlib/libauthmysql.so.0*

%post mysql
if [ -f %{_sysconfdir}/courier/authmysqlrc.rpmnew ]; then
    %{_libdir}/courier-authlib/sysconftool %{_sysconfdir}/courier/authmysqlrc.rpmnew >/dev/null
fi
%{_initrddir}/courier-authdaemon condrestart 1>&2;

%postun mysql
if [ "$1" = "0" ]; then
    %{_initrddir}/courier-authdaemon condrestart 1>&2;
fi

#----------------------------------------------------------------------------

%package pgsql
Summary:	PostgreSQL support for the Courier authentication library
Group:		System/Servers
Requires(pre,post,postun):	courier-authdaemon = %{EVRD}

%description pgsql
This package installs PostgreSQL support for the Courier
authentication library. Install this package in order to be able
to authenticate using PostgreSQL.

%files pgsql
%doc README.authpostgres.html
%config(noreplace) %{_sysconfdir}/courier/authpgsqlrc
%{_libdir}/courier-authlib/libauthpgsql.so.0*

%post pgsql
%{_initrddir}/courier-authdaemon condrestart 1>&2;

%postun pgsql
if [ "$1" = "0" ]; then
    %{_initrddir}/courier-authdaemon condrestart 1>&2;
fi

#----------------------------------------------------------------------------

%package devel
Summary:	Development libraries for the Courier authentication library
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development libraries and files needed
to compile Courier packages that use this authentication library.
Install this package in order to build the rest of the Courier
packages. After they are built and installed this package can be
removed. Files in this package are not needed at runtime.

%files devel
%doc authlib.html auth_*.html
%{_bindir}/courierauthconfig
%{_libdir}/courier-authlib/*.so
%{_libdir}/*.so
%{_includedir}/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p 0 -b .sysconftool

%build
%configure \
	--with-syslog=MAIL \
	--disable-ltdl-install \
	--with-db=gdbm \
	--with-random=/dev/urandom \
	--with-mailuser=daemon \
	--with-mailgroup=daemon \
	--with-authdaemonrc=%{_sysconfdir}/courier/authdaemonrc \
	--with-authdaemonvar=%{_localstatedir}/lib/authdaemon \
	--with-makedatprog=%{_sbindir}/makedatprog \
	--with-userdb=%{_sysconfdir}/userdb \
	--with-pkgconfdir=%{_sysconfdir}/courier \
	--with-authuserdb \
	--with-authpam \
	--with-authldap \
	--with-authldaprc=%{_sysconfdir}/courier/authldaprc \
	--with-authpwd \
	--with-authshadow \
	--without-authvchkpw \
	--with-authpgsqlrc=%{_sysconfdir}/courier/authpgsqlrc \
	--with-authpgsql \
	--with-pgsql-libs=%{_libdir} \
	--with-pgsql-includes=%{_includedir}/pgsql \
	--with-authmysqlrc=%{_sysconfdir}/courier/authmysqlrc \
	--with-authmysql \
	--with-mysql-libs=%{_libdir} \
	--with-mysql-includes=%{_includedir}/mysql \
	--with-authcustom

%make
%make authinfo

%install
%makeinstall_std

# fix perms
chmod 755 %{buildroot}%{_localstatedir}/lib/authdaemon

install -d %{buildroot}%{_var}/run/authdaemon

install -m 755 sysconftool %{buildroot}%{_libdir}/courier-authlib/

install -d -m 755 %{buildroot}%{_initrddir}
install -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/courier-authdaemon

# some utils...
install -m 755 authinfo %{buildroot}%{_sbindir}/
install -m 755 authdaemontest %{buildroot}%{_sbindir}/

# A hack to provide libraries under libdir to be able to pick up them w/o adding
# courier-authlib to LD_LIBRARY_PATH
for file in %{buildroot}%{_libdir}/courier-authlib/*.so
do
    ln -s %{_libdir}/courier-authlib/`basename $file` %{buildroot}%{_libdir}/`basename $file`
done

# fix configuration
for file in %{buildroot}%{_sysconfdir}/courier/*.dist; do
    mv $file  %{buildroot}%{_sysconfdir}/courier/`basename $file .dist`
done
chmod 644 %{buildroot}%{_sysconfdir}/courier/*

perl -pi \
    -e "s|^authmodulelist=.*|authmodulelist=\"authpam authpwd authshadow\"|g;" \
    -e "s|^authmodulelistorig=.*|authmodulelistorig=\"authpam authpwd authshadow\"|g;" \
    %{buildroot}%{_sysconfdir}/courier/authdaemonrc

mkdir -p %{buildroot}%{_tmpfilesdir}
install -m0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

cat > README.urpmi << EOF
ROSA RPM specific notes

Upgrade
------
Default upgrade procedure consists of shipping new configuration files with
.dist suffix, then running sysconftool script to merge with current
configuration. This packages ships new configuration files with their final
name instead, wich will be saved by rpm as .rpmnew if original ones have been
modified, and run sysconftools script during upgrade automatically.
EOF

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 830 |21cr|courier-imap-5.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IMAP server that uses Maildirs
Name:		courier-imap
Version:	5.1.8
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.courier-mta.org
Source0:	http://prdownloads.sourceforge.net/courier/%{name}-%{version}.tar.bz2
Source1:	%{name}.imapd-init
Source2:	%{name}.imapd-ssl-init
Source3:	%{name}.pop3d-init
Source4:	%{name}.pop3d-ssl-init
Requires:	courier-base = %{version}
Requires:	courier-authdaemon
BuildRequires:	courier-unicode-devel
BuildRequires:	locales-en
BuildRequires:	gdbm-devel
BuildRequires:	courier-authlib-devel
BuildRequires:	courier-authdaemon
BuildRequires:	procps-ng
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	sysconftool
Requires(post,preun):	rpm-helper

%description
Courier-IMAP is an IMAP server for Maildir mailboxes. This package contains
the standalone version of the IMAP server that's included in the Courier
mail server package. This package is a standalone version for use with
other mail servers. Do not install this package if you intend to install
the full Courier mail server.  Install the Courier package instead.

%files
%doc libs/imap/BUGS libs/imap/ChangeLog libs/imap/README.*
%config(noreplace) %{_sysconfdir}/pam.d/courier-imap
%config(noreplace) %{_sysconfdir}/courier/imapd
%config(noreplace) %{_sysconfdir}/courier/imapd-ssl
%{_initrddir}/courier-imapd
%{_initrddir}/courier-imapd-ssl
%{_bindir}/imapd
%{_sbindir}/imaplogin
%{_sbindir}/mkimapdcert
%{_sbindir}/mkdhparams
%{_mandir}/man8/imapd.8*
%{_mandir}/man8/mkimapdcert.8*
%{_mandir}/man8/mkdhparams.8*
%{_datadir}/%{name}/mkimapdcert
%{_datadir}/courier-imap/mkdhparams

%post
if [ -f %{_sysconfdir}/courier/imapd.rpmnew ]; then
    %{_libdir}/courier-authlib/sysconftool %{_sysconfdir}/courier/imapd.rpmnew >/dev/null
fi
if [ -f %{_sysconfdir}/courier/imapd-ssl.rpmnew ]; then
    %{_libdir}/courier-authlib/sysconftool %{_sysconfdir}/courier/imapd-ssl.rpmnew >/dev/null
fi
%_post_service courier-imapd
%_post_service courier-imapd-ssl
%_create_ssl_certificate courier-imap -b

%preun
%_preun_service courier-imapd
%_preun_service courier-imapd-ssl

#----------------------------------------------------------------------------

%package -n courier-base
Summary:	Courier base files for POP and IMAP servers
Group:		System/Servers

%description -n courier-base
This package contains the base files for POP and IMAP servers.

%files -n courier-base
%doc INSTALL INSTALL.html NEWS README README.mdv
%doc libs/liblock/*.html
%doc libs/maildir/README.*
%doc libs/rfc2045/*.html
%doc libs/rfc822/ChangeLog.rfc822
%doc libs/tcpd/README.* libs/tcpd/*.html
%doc libs/maildir/maildirmake.html
%config(noreplace) %{_sysconfdir}/courier/quotawarnmsg.example
%config(noreplace) %{_sysconfdir}/courier/shared
%config(noreplace) %{_sysconfdir}/courier/shared.tmp
%config(noreplace) %{_sysconfdir}/skel/Maildir
%{_bindir}/maildirmake
%{_bindir}/deliverquota
%{_bindir}/couriertls
%{_bindir}/maildirkw
%{_bindir}/maildiracl
%{_bindir}/makedat
%{_bindir}/makeimapaccess
%{_sbindir}/sharedindexinstall
%{_sbindir}/sharedindexsplit
%{_mandir}/man1/maildirmake.1*
%{_mandir}/man1/couriertcpd.1*
%{_mandir}/man1/maildiracl.1*
%{_mandir}/man1/maildirkw.1*
%{_mandir}/man8/deliverquota.8*
%{_mandir}/man8/makeimapaccess.8*
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%package -n courier-pop
Summary:	Courier POP servers
Group:		System/Servers
Requires:	courier-base = %{EVRD}
Requires:	courier-authdaemon
Requires(post,preun):	rpm-helper

%description -n courier-pop
This package contains the POP servers of the Courier-IMAP
server suite.

%files -n courier-pop
%config(noreplace) %{_sysconfdir}/pam.d/courier-pop3
%config(noreplace) %{_sysconfdir}/courier/pop3d
%config(noreplace) %{_sysconfdir}/courier/pop3d-ssl
%{_initrddir}/courier-pop3d
%{_initrddir}/courier-pop3d-ssl
%{_bindir}/pop3d
%{_sbindir}/pop3login
%{_sbindir}/mkpop3dcert
%{_mandir}/man8/mkpop3dcert.8*
%{_datadir}/%{name}/mkpop3dcert

%post -n courier-pop
%_create_ssl_certificate courier-pop -b
if [ -f %{_sysconfdir}/courier/pop3d.rpmnew ]; then
    %{_libdir}/courier-authlib/sysconftool %{_sysconfdir}/courier/pop3d.rpmnew >/dev/null
fi
if [ -f %{_sysconfdir}/courier/pop3d-ssl.rpmnew ]; then
    %{_libdir}/courier-authlib/sysconftool %{_sysconfdir}/courier/pop3d-ssl.rpmnew >/dev/null
fi
%_post_service courier-pop3d
%_post_service courier-pop3d-ssl

%preun -n courier-pop
%_preun_service courier-pop3d
%_preun_service courier-pop3d-ssl

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LD_LIBRARY_PATH="%{_libdir}/courier-authlib"
%serverbuild
%configure \
    --enable-unicode \
    --libexec=%{_libdir}/%{name} \
    --datadir=%{_datadir}/%{name} \
    --sysconfdir=%{_sysconfdir}/courier \
    --with-notice=unicode

%make

%install
install -d -m 755 %{buildroot}%{_initrddir}
install -d -m 755 %{buildroot}%{_sysconfdir}/pam.d
%makeinstall_std

# delete upstream init scripts and install custom one
rm -f  %{buildroot}%{_libdir}/%{name}/*.rc
install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/courier-imapd
install -m 755 %{SOURCE2} %{buildroot}%{_initrddir}/courier-imapd-ssl
install -m 755 %{SOURCE3} %{buildroot}%{_initrddir}/courier-pop3d
install -m 755 %{SOURCE4} %{buildroot}%{_initrddir}/courier-pop3d-ssl
perl -pi -e 's|\@libdir\@|%{_libdir}|' %{buildroot}%{_initrddir}/*

# fix configuration
for file in %{buildroot}%{_sysconfdir}/courier/*.dist; do
    mv $file  %{buildroot}%{_sysconfdir}/courier/`basename $file .dist`
done
chmod 644 %{buildroot}%{_sysconfdir}/courier/imapd*
chmod 644 %{buildroot}%{_sysconfdir}/courier/pop3d*

# fix pam configuration
rm -f %{buildroot}%{_sysconfdir}/pam.d/*
cat > %{buildroot}%{_sysconfdir}/pam.d/courier-imap <<EOF
auth	required	pam_nologin.so
auth	include	system-auth
account	include	system-auth
session	include	system-auth
EOF
cat > %{buildroot}%{_sysconfdir}/pam.d/courier-pop3 <<EOF
auth	required	pam_nologin.so
auth	include	system-auth
account	include	system-auth
session	include	system-auth
EOF

# fix name conflict for doc files
cp libs/rfc822/ChangeLog libs/rfc822/ChangeLog.rfc822

# Maildir
install -d -m 755 %{buildroot}%{_sysconfdir}/skel
(cd %{buildroot}%{_sysconfdir}/skel && %{buildroot}%{_bindir}/maildirmake Maildir)


cat > README.mdv << EOF
Mandriva RPM specific notes

Upgrade
-------
Upstream upgrade procedure consists of shipping new configuration files with
.dist suffix, then running sysconftool script to merge with current
configuration. This packages ships new configuration files with their final
name instead, wich will be saved by rpm as .rpmnew if original ones have been
modified, and run sysconftools script during upgrade automatically.

Init scripts
------------
Upstream init system consist of one unique init script, using values in
configuration files to select wich services to run. This package ships a
replacement init system, composed of four distincts standard services script
for each server, so as to use normal procedure (chkconfig command) to determine
which one to run. As a side-effect, the various *START variables in
configuration files have no effect.
EOF

# replace SSL certs configuration with our own
rm -f %{buildroot}%{_sysconfdir}/courier/imapd.cnf
rm -f %{buildroot}%{_sysconfdir}/courier/pop3d.cnf
perl -pi \
    -e 's|TLS_CERTFILE=.*|TLS_CERTFILE=%{_sysconfdir}/pki/tls/private/courier-imap.pem|'\
    %{buildroot}%{_sysconfdir}/courier/imapd-ssl
perl -pi \
    -e 's|TLS_CERTFILE=.*|TLS_CERTFILE=%{_sysconfdir}/pki/tls/private/courier-pop.pem|'\
    %{buildroot}%{_sysconfdir}/courier/pop3d-ssl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 831 |21cr|courier-unicode-2.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	7
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d

Summary:	A library implementing algorithms related to the Unicode Standard
Name:		courier-unicode
Version:	2.2.4
Release:	1
License:	GPLv3
Group:		System/Libraries
URL:		http://www.courier-mta.org/unicode/
Source0: 	http://download.sourceforge.net/courier/courier-unicode-%{version}.tar.bz2
BuildRequires:	gnupg

%description
This library implements several algorithms related to the Unicode Standard:

* Look up uppercase, lowercase, and titlecase equivalents of a unicode
  character.
* Implementation of grapheme and work breaking rules.
* Implementation of line breaking rules.

Several ancillary functions, like looking up the unicode character that
corresponds to some HTML 4.0 entity (such as “&amp;”, for example), and
determining the normal width or a double-width status of a unicode character.
Also, an adaptation of the iconv(3) API for this unicode library.

This library also implements C++ bindings for these algorithms.
The current release of the Courier Unicode library is based on the Unicode
6.3.0 standard.

#------------------------------------------------------------------------
%package -n %{libname}
Summary:	A library implementing algorithms related to the Unicode Standard
Group:		System/Libraries

%description -n %{libname}
This library implements several algorithms related to the Unicode Standard:

* Look up uppercase, lowercase, and titlecase equivalents of a unicode
  character.
* Implementation of grapheme and work breaking rules.
* Implementation of line breaking rules.

Several ancillary functions, like looking up the unicode character that
corresponds to some HTML 4.0 entity (such as “&amp;”, for example), and
determining the normal width or a double-width status of a unicode character.
Also, an adaptation of the iconv(3) API for this unicode library.

This library also implements C++ bindings for these algorithms.
The current release of the Courier Unicode library is based on the Unicode
6.3.0 standard.

%files -n %{libname}
%doc README ChangeLog AUTHORS COPYING
%{_libdir}/libcourier-unicode.so.%{major}
%{_libdir}/libcourier-unicode.so.%{major}.*
#------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development tools for programs which use the libcourier-unicode library
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
The courier-unicode-devel package includes the header files and documentation
necessary for developing programs which will use the libcourier-unicode
library.

%files -n %{devname}
%{_includedir}/courier-unicode.h
%{_includedir}/courier-unicode-categories-tab.h
%{_includedir}/courier-unicode-script-tab.h
%{_libdir}/libcourier-unicode.so
%{_datadir}/aclocal/courier-unicode*
%{_mandir}/man3/*
%{_mandir}/man7/*

#------------------------------------------------------------------------
%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%check
%make check



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 832 |21cr|cowbell-0.2.7.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	cowbell
Summary: 	Music collection organizer and editor
Version: 	0.2.7.1
Release: 	12
License:	GPLv2+
Group:		Sound
URL:		http://more-cowbell.org/
# Download URL is dead: use stored sources
#Source0:	http://more-cowbell.org/releases/%%{name}-%%{version}.tar.bz2
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	gtk-sharp2
BuildRequires:	glade-sharp2
BuildRequires:	imagemagick
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig
BuildRequires:	mono-devel
BuildRequires:	taglib-devel

%description
Do you ever pull your hair out trying to hand-edit all your tags with some
arcane editor? Tell your inner OCD to take a hike because Cowbell is coming
to town. Cowbell is an elegant music organizer intended to make keeping your
collection tidy both fun and easy. Infused with Amazon Web Services SOAP-fu,
Cowbell can whip your music platoon into shape without even getting your boots
muddy. And, if that isn't enough, Cowbell can also snatch album art and rename
your music files like a pro.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
perl -p -i -e 's/lib\/cowbell/%{_lib}\/cowbell/g' Makefile* cowbell.in
%configure
%make


%install
%makeinstall_std

# Desktop menu entry
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Audio" \
  --add-category="Recorder" \
  --add-category="AudioVideo" \
  --add-category="X-MandrivaLinux-Multimedia-Sound" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Provide icons
mkdir -p %{buildroot}/%{_liconsdir}
convert -size 48x48 resources/%{name}.svg %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert -size 32x32 resources/%{name}.png %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 resources/%{name}.png %{buildroot}/%{_miconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 833 |21cr|cowdancer-0.48-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Copy-on-write directory tree utility
Name:		cowdancer
Version:	0.48
Release:	8
License:	GPL
Group:		Development/Other
Source0:	%{name}_%{version}.tar.gz
Patch0:		Makefile.patch

%description
Tries to make copy-on-write semantics upon hard-link copied
directory trees generated with 'cp -la'.
'cow-shell' command invokes a shell session. Within that session,
under the directory cow-shell was invoked, cowdancer will create 
a new file when existing i-nodes are opened for  write.
Useful for quick scratch workspace and experimentation.
'cowbuilder' command is a wrapper for pbuilder which allows using 
pbuilder-like interface over cowdancer environment.

%files
%doc COPYING NEWS ChangeLog
%{_bindir}/*
%{_sbindir}/*
%{_libdir}/%{name}/libcowdancer.so
%{_mandir}/man*/*
%{_sysconfdir}/bash_completion.d/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%make

%install
%makeinstall_std LIBDIR=%{_libdir}

chmod 755 %{buildroot}%{_libdir}/%{name}/libcowdancer.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 834 |21cr|cowpatty-4.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cowpatty
Summary:	Brute-force dictionary attack against WPA-PSK
Version:	4.8
Release:	2
License:	GPLv2
Group:		Networking/Other
Url:		https://github.com/joswr1ght/cowpatty
Source0:	https://github.com/joswr1ght/cowpatty/releases/download/%{version}/%{name}-%{version}.tgz
# from master commit 0a274975040960d85cd68550facf801fc3a9d7df
Patch0:		cowpatty-4.8-upstream-fixes.patch
# https://github.com/joswr1ght/cowpatty/pull/8
Patch1:		cowpatty-4.8-more-Makefile-improvements.patch
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libpcap)


%description
coWPAtty is designed to audit the pre-shared key (PSK) selection for WPA
networks based on the TKIP protocol. Supply a libpcap file that includes the
TKIP four-way handshake to mount an offline dictionary attack with a supplied
wordlist.

%files
%doc AUTHORS COPYING README FAQ TODO CHANGELOG
%{_bindir}/%{name}
%{_bindir}/genpmk
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/genpmk.1.*
#----------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

sed '/clang/d' -i Makefile

%build
%setup_compile_flags
%make

%install
%makeinstall_std BINDIR=%{_bindir} MANDIR=%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 835 |21cr|cowsay-3.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global compdir %(pkg-config --variable=completionsdir bash-completion)
%global __requires_exclude .*Acme::Cow.*

Name:       cowsay
Version:    3.7.0
Release:    1
Summary:    Configurable talking cow
License:    Artistic and GPL
Group:      Toys
URL:        https://github.com/cowsay-org/cowsay
Source0:    %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:    cowsay.bashcomp
Source2:    animalsay
Source9:    duck.cow
Source10:   apt.cow
Source11:   calvin.cow
Source12:   cock.cow
Source13:   small-duck.cow
Source14:   gnu.cow
Source15:   sodomized-sheep.cow
Source16:   suse.cow
Source17:   shark.cow
Source18:   girafe.cow
Source19:   phaco.cow
Source20:   pumpkin.cow
Source21:   kenny.cow
Patch0:     fox-cow.patch
BuildArch:  noarch

%description
Funny program to create ASCII images like cows, sheeps and much more.

%prep
%autosetup -p1

perl -pi -e 's|%BANGPERL%|!%{_bindir}/perl|' cowsay
perl -pi -e 's|%PREFIX%|%{_prefix}|' cowsay cowsay.1

%install
# At least for cowsay-3.7.0, replace upstream's "make install" by our
# own installation code.
install -d -m 0755         %{buildroot}%{_bindir}
install -p -m 0755 %{name} %{buildroot}%{_bindir}
ln -s              %{name} %{buildroot}%{_bindir}/cowthink

install -d -m 0755           %{buildroot}%{_mandir}/man1
install -p -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1
ln -s              %{name}.1 %{buildroot}%{_mandir}/man1/cowthink.1

install -d -m 0755              %{buildroot}%{_datadir}/%{name}/cows
install -p -m 0644 share/cows/* %{buildroot}%{_datadir}/%{name}/cows

install -d -m 0755              %{buildroot}%{_datadir}/%{name}/site-cows

install -d -m 0755              %{buildroot}%{_sysconfdir}/%{name}/cowpath.d

# Install actions specific to the Fedora package

# License issue
rm -f %{buildroot}%{_datadir}/%{name}/cows/daemon.cow
# animalsay
install -p -m 0755 %{SOURCE2} %{buildroot}%{_bindir}
# bash completion file
install -d -m 0755            %{buildroot}%{compdir}
install -p -m 0644 %{SOURCE1} %{buildroot}%{compdir}/%{name}


install -m 644 %{SOURCE10} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE11} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE12} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE13} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE14} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE15} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE16} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE17} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE18} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE19} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE20} %{buildroot}%{_datadir}/%{name}/cows
install -m 644 %{SOURCE21} %{buildroot}%{_datadir}/%{name}/cows

%files
%doc LICENSE.txt README.md INSTALL
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/cowthink.1*
%{compdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 836 |21cr|cpan-upload-2.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       cpan-upload
Version:    2.2
Release:    9
Summary:    Upload one or more files to CPAN, using PAUSE
License:    GPL or Artistic
Group:      Development/Perl
URL:        http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/scripts
Source:     http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/scripts/%{name}-%{version}.tar.gz
BuildRequires:  perl-devel
BuildRequires: perl(AppConfig::Std) >= 1.05
BuildRequires: perl(Pod::Usage) >= 1.14
BuildRequires: perl(Net::FTP) >= 2.28
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(File::Basename) >= 2.28
BuildRequires: perl(Term::ReadKey)
BuildArch:      noarch

%description
cpan-upload is a script which automates the process of uploading a file to
CPAN using PAUSE, the Perl Authors Upload Server.

%prep
%setup -q

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%{__make} test

%install
%makeinstall_std

%files
%defattr(-,root,root)
%doc README ChangeLog
%{_mandir}/*/*
%{_bindir}/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 837 |21cr|cpat-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:           cpat
Version:        1.4.1
Release:        1
Summary:        CPat is a curses based solitaire/patience collection
License:        GPLv2
Group:          Games/Cards
Url:            http://cpat.sourceforge.net/
Source0:        http://netcologne.dl.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(ncurses)

%description
CPat is a curses based solitaire/patience collection. 
It's pretty stable and at present contains implementations of 
Freecell, Klondike, Spider, 40 Thieves, Baker's Dozen, Scorpion, 
Penguin, Yukon and Stategy. 
The games are played in your favourite shell using keyboard commands.

%files
%doc ChangeLog AUTHORS COPYING README
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6*
#----------------------------------------------

%prep
%setup -q
autoreconf -fiv

%build
%configure --prefix=%{_prefix}
%setup_compile_flags
%make 

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 838 |21cr|cpp2latex-2.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts C/C++ code to a LaTeX file
Name:		cpp2latex
Version:	2.3
Release:	6
License:	GPLv2+
Group:		Development/C++
Url:		http://www.arnoldarts.de/drupal/?q=Cpp2LaTeX
Source0:	http://www.arnoldarts.de/drupal/files/downloads/cpp2latex/%{name}-%{version}.tar.bz2
BuildRequires:	flex
Requires:	tetex-latex
Patch1:		cpp2latex-2.3-gcc43.patch
Patch0:		cpp2latex-2.3.patch
Patch2:		cpp2latex-2.3-tests.patch

%description
cpp2latex takes as input a C or C++ source file and outputs a LaTeX
file that is a beautified listing (optionally the output can contain
the 'documentstyle' header and so on).

%files
%doc README ChangeLog
%{_bindir}/cpp2latex

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
%config_update
./configure --prefix=%{_prefix}
%make \
	CFLAGS="-DC_PLUSPLUS %{optflags}" \
	CXXFLAGS="-DC_PLUSPLUS %{optflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 839 |21cr|cpptest-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define libname	%mklibname cpptest %{major}
%define develname %mklibname -d cpptest

Summary:	A portable and powerful and simple unit testing framework for C++
Name:		cpptest
Version:	2.0.0
Release:	1
Group:		System/Libraries
License:	LGPLv2+
URL:		http://%{name}.sourceforge.net/
Source0:	https://github.com/cpptest/cpptest/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	autoconf
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	pkgconfig

%description
CppTest is a portable and powerful, yet simple, unit testing framework for
handling automated tests in C++. The focus lies on usability and extendability.

#-------------------------------------------------------------------------------
%package -n %{libname}
Summary:	A portable and powerful and simple unit testing framework for C++
Group:		System/Libraries

%description -n %{libname}
CppTest is a portable and powerful, yet simple, unit testing framework
for handling automated tests in C++. The focus lies on usability and
extendability.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#-------------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for the cpptest library
Group:		Development/C
Provides:	%{name}-devel = %{version}
Requires:	%{libname} >= %{version}
Requires:	pkgconfig

%description -n	%{develname}
This package contains libraries and header files for developing applications
that use cpptest.

%files -n %{develname}
%doc NEWS COPYING AUTHORS ChangeLog
%doc doc/html
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#-------------------------------------------------------------------------------

%prep

%autosetup -p1

%build
./autogen.sh
%configure \
    --disable-static \
    --enable-doc
%make

%install
%makeinstall_std

find %{buildroot} -name '*.la' -exec rm -f {} ';'

# Not useful. Aready present in html and images folder
rm -f %{buildroot}/%{_datadir}/doc/%{name}/screenshot*png
rm -f %{buildroot}/%{_datadir}/doc/%{name}/index.html
rm -f %{buildroot}/%{_datadir}/doc/%{name}/html-example.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 840 |21cr|cpqarrayd-2.3-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Monitors SmartArray controllers and notifies via SNMP and syslog
Name:		cpqarrayd
Version:	2.3
Release:	17
License:	GPL
Group:		System/Servers
URL:		https://github.com/spark404/cpqarrayd
Source0:	http://www.strocamp.net/opensource/compaq/downloads/%{name}-%{version}.tar.bz2
Patch0:		cpqarrayd-2.3.no_ida.patch
Patch1:		cpqarrayd-2.3-message-overrun.patch
Patch2:		cpqarrayd-2.3-fix-str-fmt.patch

Requires(post): rpm-helper
Requires(preun): rpm-helper
Requires:	net-snmp

BuildRequires:	net-snmp-devel
BuildRequires:	openssl-devel
BuildRequires:	libtool


%description
This tool can run on a linux based intel box with a smart array controller from
Compaq. It reports status changes in the disks both to the syslog and to a snmp
trap host. The default is to only log to the syslog. You can specify traphosts
with the -t parameter at the commandline. Multiple traphosts are allowed. It
checks for valid input, but any errors are non-fatal, in fact the traphost is
just ignored. To ensure correct opereration compile it for the same kernel that
runs on the machine where you want to use this. At least make sure that the
version of the SmartArray driver is the same. Strange things can happen
otherwise.

%prep

%setup -q
%patch0 -p1 -b .no_ida
%patch1 -p1 -b .message-overrun
%patch2 -p0

chmod 644 AUTHORS ChangeLog NEWS README

%build
rm -rf .deps
rm -f configure
#libtoolize --force --copy; aclocal; autoheader; automake --add-missing --copy --foreign; autoconf
autoreconf -fiv

%configure

%make

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/sysconfig

%makeinstall

perl -i -p -e 's:\@installroot\@:%{prefix}:;' scripts/cpqarrayd

install -m0755 scripts/cpqarrayd %{buildroot}%{_initrddir}
install scripts/cpqarrayd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/cpqarrayd

%post
%_post_service cpqarrayd

%preun
%_preun_service cpqarrayd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%attr(0755,root,root) %{_initrddir}/cpqarrayd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/cpqarrayd
%{_sbindir}/cpqarrayd
%{_mandir}/man1/cpqarrayd.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 841 |21cr|cproto-4.7m-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generates function prototypes and variable declarations from C code
Name:		cproto
Version:	4.7m
Release:	3
License:	Public Domain
Group:		Development/C
Url:		http://invisible-island.net/cproto/
Source0:	ftp://invisible-island.net/cproto/%{name}-%{version}.tgz
BuildRequires:	byacc
BuildRequires:	flex


%description
Cproto generates function prototypes and variable declarations from
C source code.  Cproto can also convert function definitions between the
old style and the ANSI C style.  This conversion will overwrite the
original files, however, so be sure to make a backup copy of your original
files in case something goes wrong.  Since cproto uses a Yacc generated
parser, it shouldn't be confused by complex function definitions as much
as other prototype generators) because it uses a Yacc generated parser.  

Cproto will be useful for C programmers, so install cproto if you are going
to do any C programming.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall


%files
%doc CHANGES README
%{_bindir}/cproto
%{_mandir}/*/cproto.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 842 |21cr|cpu-1.4.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cputil %{major}

Summary:	Ldap aware command like useradd, userdel, usermod and others
Name:		cpu
Version:	1.4.3
Release:	14
License:	GPLv2+
Group:		System/Base
Url:		http://cpu.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/cpu/cpu-%{version}.tar.bz2
# first hunk taken from the debian unstable package,
# author is Guido Trotter <ultrotter@debian.org>
Patch0:		cpu-1.4.3-gcc4.patch
Patch1: 	cpu-1.4.3-fix_open_usage.diff
Patch2:		cpu-1.4.3-fix_makefile.diff
Patch3:		cpu-1.4.3-linkage.patch
Patch4:		cpu-1.4.3-gcc10.patch
BuildRequires:	openldap-devel

%description
CPU is an LDAP user management tool written in C and loosely based
on FreeBSD's pw(8). The goal of CPU is to be a suitable replacement
of the useradd/usermod/userdel utilities for administrators using an
LDAP backend and wishing to have a suite of command line tools for
doing the administration.

%files
%doc AUTHORS COPYING INSTALL NEWS README doc/cpu.conf.doc
%{_mandir}/man8/*
%{_mandir}/man5/*
%{_sbindir}/cpu
%{_libdir}/libcpu_ldap.so
%config(noreplace) %{_sysconfdir}/cpu.conf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Ldap aware command like useradd, userdel, usermod and others
Group:		System/Libraries

%description -n %{libname}
CPU is an LDAP user management tool written in C and loosely based
on FreeBSD's pw(8). The goal of CPU is to be a suitable replacement
of the useradd/usermod/userdel utilities for administrators using an
LDAP backend and wishing to have a suite of command line tools for
doing the administration.

%files -n %{libname}
%{_libdir}/libcputil.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .gcc4
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall

rm -f %{buildroot}%{_datadir}/{cpu.conf.doc,test.ldif}
# no headers for development package
rm -f %{buildroot}%{_libdir}/libcputil.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 843 |21cr|cpuburn-1.4a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	CPU testing utilities
Name:		cpuburn
Version:	1.4a
Release:	7
License:	GPLv2+
Group:		Monitoring
Url:		http://pages.sbcglobal.net/redelm/
Source0:	%{name}-%{version}.tar.gz
Patch0:		cpuburn-1.4-deb-data.patch
ExclusiveArch:	%{ix86} x86_64

%description
CPU testing utilities in optimized assembler for maximum loading P6 (Intel
Pentium Pro, Pentium II, Celeron and Pentium III TM), AMD K6, and P5
Pentium chips.

%files
%doc Design README
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%ifarch %{ix86} x86_64
gcc -m32 -s -nostdlib -o burnP6 burnP6.S
gcc -m32 -s -nostdlib -o burnBX burnBX.S
gcc -m32 -s -nostdlib -o burnK6 burnK6.S
gcc -m32 -s -nostdlib -o burnK7 burnK7.S
gcc -m32 -s -nostdlib -o burnMMX burnMMX.S
gcc -m32 -s -nostdlib -o burnP5 burnP5.S
%endif
%ifarch aarch64
pushd ARM
#gcc -s -mcpu=cortex-a8 -march=armv7-a -nostdlib -o burnCortexA8 burnCortexA8.s
gcc -s -Wa,--noexecstack -no-pie -fno-PIE -g -Wa,-mthumb,-mfpu=neon,-mcpu=cortex-a8,-march=armv7-a -nostdlib -march=armv7-a burnCortexA8.s -o burnCortexA8
popd
%endif

%install
mkdir -p %{buildroot}%{_bindir}
%ifarch %{ix86} x86_64
install -m 0755 {burnP6,burnBX,burnK6,burnK7,burnMMX,burnP5} \
	%{buildroot}%{_bindir}
%endif
%ifarch aarch64
install -p -m755 ARM/burnCortexA8 %{buildroot}%{_bindir}/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 844 |21cr|cpudyn-1.0.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A tools to control CPU frequency
Name:		cpudyn
Version:	1.0.1
Release:	13
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://mnm.uib.es/~gallir/cpudyn/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.service
Patch0:		cpudyn-printf-format.patch
Requires(pre,post):	rpm-helper
Requires(post,preun,postun):	systemd-units

%description
This program control the speed in Intel SpeedStep, Pentium 4 Mobile
and PowerPC machines with the cpufreq compiled in the kernel.

It allows to reduce cpu speed in order to save battery and reduce 
temperature of the processor. It can also put the drive on standby mode.

Tested with 2.4, Pentium 3 Speedstep Laptop (Dell Latitude),
Pentium 4 Mobile Laptop (Dell Inspiron), AMD Power Now, Apple iBook,
IBM Thinkpad. cpudyn is just a user space program, so it will work on
every processor supported by the kernel's cpufreq driver.

%files
%{_sbindir}/cpudynd
%{_mandir}/man8/cpudynd*
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p0

%build
%make CFLAGS="%{optflags} -fgnu89-inline"

%install
mkdir -p %{buildroot}{%{_sbindir},%{_mandir}/man8,%{_sysconfdir}/sysconfig}
cp cpudynd %{buildroot}%{_sbindir}/cpudynd
#bzip2 cpudynd.8
cp cpudynd.8 %{buildroot}%{_mandir}/man8/

install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

cat > %{buildroot}/%{_sysconfdir}/sysconfig/%{name} <<EOF
# see man 8 cpudynd  for details
OPTS="-i 1 -p 0.5 0.90"
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 845 |21cr|cpu_features-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C library to retrieve CPU features at runtime
Name:		cpu_features
Version:	0.7.0
Release:	1
License:	Apache 2.0
Group:		System/Libraries
Url:		https://github.com/google/cpu_features
Source0:	https://github.com/google/cpu_features/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	patchelf

%description
Utility to retrieve CPU features (such as available instructions)
at runtime

%files
%license LICENSE
%{_bindir}/list_cpu_features

#------------------------------------------------------------------

%package -n %{libname}
Summary:	C library to retrieve CPU features at runtime
Group:		System/Libraries

%description -n %{libname}
C library to retrieve CPU features (such as available instructions)
at runtime

%files -n %{libname}
%license LICENSE
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/C
Requires:	%{libname}%{?_isa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} development files

%files -n %{devname}
%license LICENSE
%{_includedir}/cpu_features
%{_libdir}/libcpu_features.so
%{_libdir}/cmake/CpuFeatures

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DCMAKE_BUILD_TYPE=Release -DBUILD_TESTING=OFF

%install
%makeinstall_std -C build

patchelf --set-soname lib%{name}.so.0 %{buildroot}%{_libdir}/lib%{name}.so
mv %{buildroot}%{_libdir}/lib%{name}.so %{buildroot}%{_libdir}/lib%{name}.so.%{version}
patchelf --replace-needed lib%{name}.so lib%{name}.so.0 %{buildroot}%{_bindir}/list_cpu_features
( cd %{buildroot}%{_libdir}
  ln -s lib%{name}.so.0 lib%{name}.so
  ln -s lib%{name}.so.%{version} lib%{name}.so.0
)

%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%{buildroot}%{_bindir}/list_cpu_features --json | grep -q .

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 846 |21cr|cpufrequtils-008-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cpufreq %{major}
%define devname %mklibname cpufreq -d

Summary:	Tools to determine and set cpufreq settings
Name:		cpufrequtils
Version:	008
Release:	8
License:	GPLv2+
Group:		System/Base
Url:		http://www.kernel.org/pub/linux/utils/kernel/cpufreq/cpufrequtils.html
Source0:	http://www.kernel.org/pub/linux/utils/kernel/cpufreq/%{name}-%{version}.tar.bz2
BuildRequires:	libtool
BuildRequires:	sysfsutils-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
To make access to the Linux kernel cpufreq subsystem easier for users
and cpufreq userspace tools, the cpufrequtils package was created. It
contains a library used by other programs (libcpufreq), command line
tools to determine current CPUfreq settings and to modify them
(cpufreq-info and cpufreq-set), and debug tools.

%files -f %{name}.lang
%doc README AUTHORS
%{_mandir}/man1/*
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic library for programs accessing cpufreq subsystem.

%files -n %{libname}
%{_libdir}/libcpufreq.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	libcpufreq-devel = %{EVRD}

%description -n %{devname}
Static libraries, include files for cpufrequtils.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libcpufreq.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall localedir=%{buildroot}%{_datadir}/locale

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 847 |21cr|cpuid-1.0-0.20170122.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define snapshot 20170122

Summary:	Dumps CPUID information about the CPU(s)
Name:		cpuid
Version:	1.0
Release:	0.%{snapshot}.1
License:	BSD
Group:		System/Kernel and hardware
Url:		http://www.etallen.com
Source0:	http://www.etallen.com/cpuid/%{name}-%{snapshot}.src.tar.gz

%description
Cpuid dumps detailed information about the CPU(s) gathered from the
CPUID instruction, and also determines the exact model of CPU(s). It
supports Intel, AMD, and VIA CPUs, as well as older Transmeta, Cyrix,
UMC, NexGen, and Rise CPUs.

%files
%doc ChangeLog FUTURE LICENSE
%{_bindir}/cpuid
%{_mandir}/man1/cpuid.1*
%{_bindir}/cpuinfo2cpuid
%{_mandir}/man1/cpuinfo2cpuid.1*

#---------------------------------------------------------------

%prep
%setup -q -n %{name}-%{snapshot}

sed -i "31i#include <sys/sysmacros.h>" cpuid.c

%build
%setup_compile_flags
%make

%install
%makeinstall_std BUILDROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 848 |21cr|cpuinfo-1.0-0.20110325.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svndate 20110325
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

%bcond_without perl
# Python3 is not supported here, but now we have a separate
# python3-cpuinfo from another source
%bcond_with python

Summary:	A CPU identification tool and library
Name:		cpuinfo
Version:	1.0
Release:	0.%{svndate}.10
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://gwenole.beauchesne.info/projects/cpuinfo/
# based on branch at https://code.launchpad.net/cpuinfo/trunk, please don't
# replace until merged upstream
Source0:	%{name}-%{version}-%{svndate}.tar.xz
# Fix frequency evaluation for a frozen system
Patch1:		cpuinfo-fix-for-freeze.patch
%if %{with perl}
BuildRequires:	perl-devel
%endif
%if %{with python}
BuildRequires:	python2-setuptools
BuildRequires:	pkgconfig(python2)
%endif
ExclusiveArch:	%{ix86} x86_64 ppc ppc64 ia64

%description
cpuinfo consists of an API/library used by programs to get information
about the underlying CPU. Such information includes CPU vendor, model
name, cache hierarchy, and supported features (e.g. CMP, SMT, and
SIMD). cpuinfo is also a standalone program to demonstrate the use of
this API.

%files
%doc README COPYING NEWS
%{_bindir}/cpuinfo.bin

%post
%{_sbindir}/update-alternatives --install %{_bindir}/cpuinfo \
  cpuinfo %{_bindir}/cpuinfo.bin 20

%postun
if [ $1 -eq 0 ] ; then
  %{_sbindir}/update-alternatives --remove cpuinfo %{_bindir}/cpuinfo.bin
fi


#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for cpuinfo
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with cpuinfo.

%files -n %{libname}
%{_libdir}/libcpuinfo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for cpuinfo
Group:		Development/C
Requires:	%{libname} = %{EVRD}
%rename		%{name}-devel

%description -n %{devname}
This package contains headers and libraries needed to use cpuinfo's
processor characterisation features in your programs.

%files -n %{devname}
%{_includedir}/cpuinfo.h
%{_libdir}/pkgconfig/libcpuinfo.pc
%{_libdir}/libcpuinfo.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library for cpuinfo
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains static libraries needed to statically link cpuinfo's
processor characterisation features in your programs.

%files -n %{sdevname}
%{_libdir}/libcpuinfo.a

#----------------------------------------------------------------------------

%if %{with perl}
%package -n perl-Cpuinfo
Summary:	Perl bindings for cpuinfo
Group:		Development/Perl

%description -n perl-Cpuinfo
Provides a Perl API to the cpuinfo library.

%files -n perl-Cpuinfo
%doc src/bindings/perl/cpuinfo.pl
%{perl_vendorarch}/Cpuinfo.pm
%dir %{perl_vendorarch}/auto/Cpuinfo
%{perl_vendorarch}/auto/Cpuinfo/*
%endif

#----------------------------------------------------------------------------

%if %{with python}
%package -n python-cpuinfo
Summary:	Python bindings for cpuinfo
Group:		Development/Perl

%description -n python-cpuinfo
Provides a Python API to the cpuinfo library.

%files -n python-cpuinfo
%{py2_platsitedir}/CPUInfo.so
%dir %{py2_platsitedir}/pycpuinfo-*.egg-info/
%{py2_platsitedir}/pycpuinfo-*.egg-info/*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--enable-shared \
%if %{with perl}
	--enable-perl=vendor \
%endif
%if %{with python}
	--enable-python \
%endif
	--install-sdk
LDFLAGS="%{ldflags}" %make

%install
%makeinstall_std

mv %{buildroot}%{_bindir}/cpuinfo %{buildroot}%{_bindir}/cpuinfo.bin

# nuke unpackaged files
find %{buildroot} -name cpuinfo.pl -exec rm -f {} \;
find %{buildroot} -name perllocal.pod -exec rm -f {} \;
find %{buildroot} -name .packlist -exec rm -f {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 849 |21cr|cpulimit-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Name:		cpulimit
Epoch:		1
Version:	0.2
Release:	1
Summary:	CPU Usage Limiter
Group:		Monitoring
License:	GPLv2+
URL:		https://github.com/opsengine/cpulimit
Source0:	https://github.com/opsengine/cpulimit/archive/v0.2.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		cpulimit-headers.patch
BuildRequires:	kernel-headers

%description
cpulimit is a simple program that attempts to limit the cpu usage of a
process (expressed in percentage, not in cpu time). This is useful to
control batch jobs, when you don't want they eat too much cpu. It does
not act on the nice value or other scheduling priority stuff, but on
the real cpu usage. Also, it is able to adapt itself to the overall
system load, dynamically and quickly.

%prep
%autosetup -p1

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
cp -p src/%{name} %{buildroot}%{_bindir}/%{name}


%files
%doc README*
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 850 |21cr|cpuset-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Allows manipulation of cpusets on system and provides higher level functions
Name:		cpuset
Version:	1.6
Release:	2
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/lpechacek/cpuset
Source0:	https://github.com/lpechacek/cpuset/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	python3egg(future)
BuildArch:	noarch

%description
Cpuset is a Python application to make using the cpusets facilities in the
Linux kernel easier.  The actual included command is called cset and it allows
manipulation of cpusets on the system and provides higher level functions such
as implementation and control of a basic CPU shielding setup.

#=============================================================================
%package -n python2-%{name}
%py2_migration_meta python2-%{name}
Summary:	Allows manipulation of cpusets on system and provides higher level functions
Group:		System/Kernel and hardware
BuildRequires:	pkgconfig(python2)

%description -n python2-%{name}
Cpuset is a Python application to make using the cpusets facilities in the
Linux kernel easier.  The actual included command is called cset and it allows
manipulation of cpusets on the system and provides higher level functions such
as implementation and control of a basic CPU shielding setup.

%files -n python2-%{name}
%{_bindir}/cset
%{python2_sitelib}/*
%{_mandir}/man1/*
%{_defaultdocdir}/*

#=============================================================================
%package -n python3-%{name}
Summary:	Allows manipulation of cpusets on system and provides higher level functions
Group:		System/Kernel and hardware
BuildRequires:	pkgconfig(python3)

%description  -n python3-%{name}
Cpuset is a Python application to make using the cpusets facilities in the
Linux kernel easier.  The actual included command is called cset and it allows
manipulation of cpusets on the system and provides higher level functions such
as implementation and control of a basic CPU shielding setup.

%files -n python3-%{name}
%{_bindir}/cset3
%{python3_sitelib}/*
%{_mandir}/man1/*
%{_defaultdocdir}/*

#============================================================================

%prep
%setup -qc

mv %{name}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd
pushd python3
%py3_build
popd

%install
pushd python3
%__python3 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
rm -rf %{buildroot}/eraseme
mv %{buildroot}%{_bindir}/cset %{buildroot}%{_bindir}/cset3

# Install documentation
mkdir -p %{buildroot}/%{_defaultdocdir}/cpuset
cp NEWS README INSTALL AUTHORS COPYING cset.init.d %{buildroot}/%{_defaultdocdir}/cpuset/
mkdir -p %{buildroot}/%{_mandir}/man1
cd doc
cp *.1 %{buildroot}/%{_mandir}/man1
cp *.txt %{buildroot}/%{_defaultdocdir}/cpuset/
mkdir %{buildroot}/%{_defaultdocdir}/cpuset/html
cp *.html %{buildroot}/%{_defaultdocdir}/cpuset/html/
popd

pushd python2
%__python2 setup.py install --root=%{buildroot} --prefix=%{_prefix} --install-data=/eraseme
rm -rf %{buildroot}/eraseme
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 851 |21cr|cpu-x-4.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname CPU-X

Name:		cpu-x
Version:	4.4.0
Release:	1
Summary:	Hardware information
URL:		https://x0rg.github.io/CPU-X
Source0:	https://github.com/X0rg/CPU-X/archive/v%{version}/%{name}-%{version}.tar.gz
License:	GPLv3
Group:		Development/Other
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	nasm
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcpuid) >= 0.5.0
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libprocps)
BuildRequires:	pkgconfig(OpenCL)
BuildRequires:	pkgconfig(glfw3)
BuildRequires:	pciutils
ExclusiveArch:	%{ix86} %{x86_64}
Requires:	procps-ng

%description
CPU-X is a Free software that gathers information on CPU,
motherboard and more.
CPU-X is similar to CPU-Z (Windows), but CPU-X is a Free
and Open Source software designed for GNU/Linux and FreeBSD.

%files -f %{name}.lang
%doc README.md COPYING
%{_bindir}/%{name}
%{_libexecdir}/%{name}-daemon
%{_datadir}/applications/%{name}.desktop
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/%{name}/*
%{_datadir}/fish/vendor_completions.d/cpu-x.fish
%{_datadir}/glib-2.0/schemas/org.cpu-x.gschema.xml
%{_datadir}/metainfo/org.cpu-x.appdata.xml
%{_datadir}/zsh/site-functions/_cpu-x
%{_datadir}/polkit-1/actions/org.cpu-x-daemon.policy
%{_iconsdir}/hicolor/*/apps/*.png

#---------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang %{name}

desktop-file-install    --vendor="" \
                        --dir %{buildroot}%{_datadir}/applications \
                        --remove-category="GTK" \
                        %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 852 |21cr|CQRlib-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Name:           CQRlib
Version:        1.1.3
Release:        1
Summary:        ANSI C API for quaternion arithmetic and rotation

Group:          System/Libraries
License:        LGPLv2+
URL:            http://cqrlib.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/cqrlib/cqrlib/CQRlib-%{version}/CQRlib-%{version}.tar.gz
# to fix /-dynamic/-rdynamic/ issue, reported to upstream
Patch0:         CQRlib-1.1.3-dynamic.patch
# to fix tag issue
Patch1:         CQRlib-1.1.2-tag.patch
BuildRequires:  libtool

%description
CQRlib is an ANSI C implementation of a utility library for quaternion
arithmetic and quaternion rotation math.

%package -n %{libname}
Summary:        The CQRlib shared library
Group:          System/Libraries
Requires:       %{name}

%description -n %{libname}
The CQRlib shared library.

%package -n %{develname}
Summary:        Development tools for compiling programs using CQRlib
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel

%description -n %{develname}
The CQRlib-devel package includes the header and library files for
developing applications that use CQRlib.

%prep
%autosetup -p1

%if "%{_lib}" == "lib64"
sed -i -e 's,$(INSTALLDIR)/lib,$(INSTALLDIR)/lib64,' -e 's,$(ROOT)/lib,$(ROOT)/lib64,' Makefile
%endif

%build
%make

%install
# %makeinstall_std
make install CFLAGS="%{optflags}" INSTALLDIR="%{buildroot}%{_prefix}"

# remove .a files
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'

%check
make tests

%files
%doc README_CQRlib.html README_CQRlib.txt lgpl.txt

%files -n %{libname}
%{_libdir}/libCQRlib.so.%{major}*

%files -n %{develname}
%{_includedir}/cqrlib.h
%{_libdir}/libCQRlib.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 853 |21cr|crack-5.0a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Password cracker
Name:		crack
Version:	5.0a
Release:	1
Group:		Development/Other
License:	Artistic clarified
URL:		https://dropsafe.crypticide.com/alecm/software/crack/c50-faq.html
Source:		ftp://ftp.cerias.purdue.edu/pub/tools/unix/pwdutils/crack/%{name}5.0.tar.gz
Patch0:		%{name}-chris.patch
Patch1:		%{name}-FHS.patch
BuildRequires:	words

%description
Crack is a password guessing program that is designed to quickly locate
insecurities in Unix (or other) password files by scanning the contents of a
password file, looking for users who have misguidedly chosen a weak login
password.

This package creates a group named "crack" and the Crack program puts all
its results in the /var/lib/crack/run directory, which belongs to that group.
Only users in the crack group can use this package.

%files
%doc LICENCE manual.* doc
%attr(00750, root, crack) %{_bindir}/Crack*
%{_libexecdir}/%{name}/
%{_datadir}/%{name}/
%dir %{_sharedstatedir}/%{name}/
%attr(02770, root, crack) %dir %{_sharedstatedir}/%{name}/run/
%attr(02770, root, crack) %dir %{_sharedstatedir}/%{name}/run/dict/
%attr(00640, root, crack) %{_sharedstatedir}/%{name}/run/dict/*
%attr(00640, root, crack) %{_sharedstatedir}/%{name}/run/dict/.dictmade

%pre
if [ $1 -eq 1 ]; then
    groupadd -r crack >/dev/null 2>&1 || :
fi

#-----------------------------------------------------------------------
%prep
%setup -q -n c50a
# Make sure we do not use libdes
rm -rf src/libdes
# select proper crypt routine and related checks
rm -f src/util/elcid.c
ln src/util/elcid.c,bsd src/util/elcid.c
mkdir run bin
# Try not to pollute bin namespace
sed -i -e 's/Reporter/CrackReporter/g' doc/gui.txt manual.html manual.txt
%patch0 -p1 -b .chris
sed -i 's|/usr/dict/|/usr/share/dict/|g' conf/dictgrps.conf
# Alter script to use FHS layout
%patch1 -p1 -b .FHS

%build
C5FLAGS="-D_XOPEN_SOURCE -DUSE_STRING_H -DUSE_STDLIB_H -DUSE_SIGNAL_H -DUSE_SYS_TYPES_H -DUSE_UNISTD_H -DUSE_PWD_H"
make XDIR=../../bin XCC=gcc XCFLAGS="$RPM_OPT_FLAGS $C5FLAGS" XLIBS=-lcrypt utils
CRACK_HOME=`pwd` CRACK_BIN_HOME=`pwd` CRACK_STATE_DIR=`pwd` ./Crack -makedict


%install
rm -f bin/libc5.a bin/stdlib-cracker
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_libexecdir}/%{name}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
cp -a bin %{buildroot}%{_libexecdir}/%{name} 
cp -a conf dict scripts %{buildroot}%{_datadir}/%{name}
cp -a run %{buildroot}%{_sharedstatedir}/%{name}
install -p -m0755 Crack %{buildroot}%{_bindir}/Crack
install -p -m0755 Reporter %{buildroot}%{_bindir}/CrackReporter

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 854 |21cr|crash-8.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Kernel analysis utility for live systems and crash dumps
Name:		crash
Version:	8.0.2
Release:	2
License:	GPLv3+
Group:		Development/Tools
Url:		https://crash-utility.github.io/
Source0:	https://github.com/crash-utility/crash/archive/%{version}.tar.gz?/crash-%{version}.tar.gz
# need for build
Source1:	gdb-10.2.tar.gz
Patch0:		lzo_snappy.patch
Patch1:		use_system_readline_v3.patch
BuildRequires:	bison
BuildRequires:	liblzo-devel
BuildRequires:	readline-devel
BuildRequires:	snappy-devel
BuildRequires:	texinfo
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(zlib)
Requires:	binutils
ExclusiveArch:	%{ix86} %{x86_64} aarch64

%description
Crash tool can be used to investigate the kernel in live systems
as well as the kernel core dumps.

%files
%doc README COPYING3
%{_bindir}/crash
%{_mandir}/man8/crash.8*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(zlib)

%description devel
Development files for %{name}.

%files devel
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%apply_patches

cp %{SOURCE1} ./

%build
make \
	RPMPKG="%{version}-%{release}" \
	CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/man8
cp -p crash.8 %{buildroot}%{_mandir}/man8/crash.8
mkdir -p %{buildroot}%{_includedir}/crash
chmod 0644 defs.h
cp -p defs.h %{buildroot}%{_includedir}/crash

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 855 |21cr|crawl-0.29.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stone_soup

Summary:	Dungeon Crawl Stone Soup, a roguelike RPG with 2D or ascii graphics
Name:		crawl
Version:	0.29.1
Release:	1
License:	GPLv2+
Group:		Games/Adventure
Url:		http://crawl.develz.org
# git clone https://github.com/crawl/crawl
# cd crawl
# git checkout %%{version}-debian
# git submodule update --init
# git-archive-all --prefix=crawl-%%{version}-debian ../crawl-%%{version}-debian.tar.xz
Source0:	%{name}-%{version}-debian.tar.xz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	imagemagick
BuildRequires:	python3dist(pyyaml)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

%description
Dungeon Crawl Stone Soup is a free rogue-like game of exploration and
treasure-hunting in dungeons filled with dangerous and unfriendly
monsters in a quest for the mystifyingly fabulous Orb of Zot.

The game has diverse species and many different character backgrounds
to choose from, deep tactical game-play, sophisticated magic, religion
and skill systems, and a grand variety of monsters to fight and run
from, making each game unique and challenging.

#-----------------------------------------------------------------------------

%package common-data
Summary:	Common data for both game versions
Group:		Games/Adventure
BuildArch:	noarch

%description common-data
This package contains common data used by the console and the tiles
version of the game.

%files common-data
%doc CREDITS.txt README.md docs/*
%license LICENSE
%{_gamesdatadir}/%{name}/dat/
%{_gamesdatadir}/%{name}/settings/
%{_mandir}/man6/%{name}.6*
%exclude %{_gamesdatadir}/%{name}/dat/tiles/

#-----------------------------------------------------------------------------

%package console
Summary:	Console version of Dungeon Crawl Stone Soup, a roguelike RPG
Group:		Games/Adventure
Requires:	%{name}-common-data = %{EVRD}
Provides:	%{name}-cli = %{EVRD}

%description console
Dungeon Crawl Stone Soup is a free rogue-like game of exploration and
treasure-hunting in dungeons filled with dangerous and unfriendly
monsters in a quest for the mystifyingly fabulous Orb of Zot.

The game has diverse species and many different character backgrounds
to choose from, deep tactical game-play, sophisticated magic, religion
and skill systems, and a grand variety of monsters to fight and run
from, making each game unique and challenging.

This package contains the console version of Dungeon Crawl Stone Soup
(with ASCII characters). You can find a graphical version
with tiles in the package crawl-tiles.

%files console
%doc CREDITS.txt
%license LICENSE
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-console

#-----------------------------------------------------------------------------

%package tiles
Summary:	Tiles version of Dungeon Crawl Stone Soup, a rogue-like RPG
Group:		Games/Adventure
Requires:	%{name}-common-data = %{EVRD}
Provides:	%{name} = %{EVRD}

%description tiles
Dungeon Crawl Stone Soup is a free rogue-like game of exploration and
treasure-hunting in dungeons filled with dangerous and unfriendly
monsters in a quest for the mystifyingly fabulous Orb of Zot.

The game has diverse species and many different character backgrounds
to choose from, deep tactical game-play, sophisticated magic, religion
and skill systems, and a grand variety of monsters to fight and run
from, making each game unique and challenging.

This package contains the tiles version of Dungeon Crawl Stone Soup.
You can find a console version with ASCII characters in the package
crawl-console.

%files tiles
%doc CREDITS.txt
%license LICENSE
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}-tiles
%{_gamesdatadir}/%{name}/dat/tiles/
%{_iconsdir}/hicolor/*/apps/%{name}.*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-debian/crawl-ref
chmod 644 source/decks.cc
echo %{version} > source/util/release_ver
cp ../LICENSE ../README.md ./

%define rosaflags prefix=%{_prefix} DATADIR=%{_gamesdatadir}/%{name} BINDIR=%{_gamesbindir} \\\
		EXTERNAL_FLAGS="%{optflags}" EXTERNAL_LDFLAGS="%{ldflags}" NO_TRY_LLD=y

%build
pushd source
%make %{rosaflags}
mv %{name} %{name}-console
%make %{rosaflags} TILES=y
popd

%install
# Binaries
%makeinstall_std -C source %{rosaflags} TILES=y
mv %{buildroot}%{_gamesbindir}/%{name} %{buildroot}%{_gamesbindir}/%{name}-tiles
install -m0755 source/%{name}-console %{buildroot}%{_gamesbindir}

# Symbolic link for crawl-CLI
ln -s %{_gamesbindir}/%{name}-console %{buildroot}%{_gamesbindir}/%{name}

rm -rf %{buildroot}%{_gamesdatadir}/%{name}/docs

# Man page
install -D -m0644 docs/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6

# Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/512x512/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
cp source/dat/tiles/%{oname}_icon-32x32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
cp source/dat/tiles/%{oname}_icon-48x48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
cp source/dat/tiles/%{oname}_icon-512x512.png %{buildroot}%{_iconsdir}/hicolor/512x512/apps/%{name}.png
cp source/dat/tiles/%{oname}_icon.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

# Menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Dungeon Crawl Stone Soup
Comment=Roguelike game with 2D graphics
GenericName=Roguelike game
Exec=%{name}-tiles
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;RolePlaying;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 856 |21cr|cream-0.42-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	cream
Summary: 	User-friendly face for Vim
Version: 	0.42
Release: 	5

Source:		%{name}-%{version}.tar.bz2
URL:		http://cream.sourceforge.net/
License:	GPL
Group:		Editors

BuildRequires:	imagemagick
BuildRequires:  desktop-file-utils
Requires:	vim-X11
BuildArch:	noarch
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils

%description
Cream is a modeless GUIification of Vim.  Cream includes all the features of
Vim plus many custom utilities. A short list of features includes syntax
highlighting, spell check, multi-file find/replace, bookmarking, function
prototype popups, macros, auto-wrapping, reformatting, justification,
time/date stamps, file explorer, completion, sorting, calendar, tag
navigation, block commenting, Microsoft, Unix and Apple format text editing,
virtually unlimited file sizes, 38 varieties of 8-bit, 2-byte, and Unicode
support, single/multiple document modes, unlimited undo/redo, show invisible
characters, word count, and more.

%prep
%setup -q

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot/%_datadir/vim/cream/{addons,bitmaps,docs,docs-html,filetypes,help,spelldicts}
cp creamrc %buildroot/%_datadir/vim/cream/
cp *.vim %buildroot/%_datadir/vim/cream/
cp addons/*.vim %buildroot/%_datadir/vim/cream/addons/
cp bitmaps/*.bmp %buildroot/%_datadir/vim/cream/bitmaps/
cp bitmaps/*.xpm %buildroot/%_datadir/vim/cream/bitmaps/
cp docs/*.txt %buildroot/%_datadir/vim/cream/docs/
cp docs-html/*.html %buildroot/%_datadir/vim/cream/docs-html/
##cp docs-html/*.css %buildroot/%_datadir/vim/cream/docs-html/
cp docs-html/*.png %buildroot/%_datadir/vim/cream/docs-html/
cp filetypes/*.vim %buildroot/%_datadir/vim/cream/filetypes/
cp help/*.txt %buildroot/%_datadir/vim/cream/help/
#cp spelldicts/cream-spell-dict-eng-s*.vim %buildroot/%_datadir/vim/cream/spelldicts/
#cp spelldicts/cream-spell-dict.vim %buildroot/%_datadir/vim/cream/spelldicts/

mkdir -p %buildroot/%_bindir
cp cream %buildroot/%_bindir/

mkdir -p %buildroot/%_datadir/applications
cp cream.desktop %buildroot/%_datadir/applications/

#mkdir -p %buildroot/
#cp cream.svg %buildroot/%_iconsdir/

#menu

desktop-file-install --vendor="" \
  --remove-key="XClassHintResName" \
  --remove-category="Application" \
  --add-category="TextEditor" \
  --add-category="X-MandrivaLinux-MoreApplications-Editors" \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications $RPM_BUILD_ROOT%{_datadir}/applications/*

#icons
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
convert -size 48x48 %name.png $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
convert -size 32x32 %name.png $RPM_BUILD_ROOT/%_iconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
convert -size 16x16 %name.png $RPM_BUILD_ROOT/%_miconsdir/%name.png

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-,root,root)
%{_bindir}/%name
%{_datadir}/vim/%name
%{_datadir}/applications/%name.desktop
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 857 |21cr|createtorrent-1.1.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Create torrent files for BitTorrent
Name:		createtorrent
Version:	1.1.4
Release:	10
License:	GPL
Group:		File tools
Url:		http://www.createtorrent.com/
Source0:	%{name}-%{version}.tar.gz
# (Anssi 06/2008) Fix linking (SHA1 is in -lcrypto, not -lssl):
Patch0:		createtorrent-1.1.4-linking.patch
BuildRequires:	pkgconfig(openssl)

%description
CreateTorrent is a small and fast command line utility for all Linux
and Unix operating systems to create BitTorrent files easily.
BitTorrent files can be created from either one file or a collection
of files that are grouped together into a directory.

%files
%doc ChangeLog AUTHORS
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# patch0
autoreconf -fi
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 858 |21cr|creduce-2.11.0-0.20210505.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20210505

Name:		creduce
Version:	2.11.0
%if 0%{git}
Release: 0.%{git}.2
Source0: https://github.com/csmith-project/creduce/archive/llvm-12.0-dev/%{name}-%{git}.tar.gz
%else
Release: 1
Source0: http://embed.cs.utah.edu/creduce/%{name}-%{version}.tar.gz
%endif
Summary: Tool for creating reduced test cases for compiler bugs
Group: Development/Tools
License: BSD
# https://github.com/csmith-project/creduce
URL:		http://embed.cs.utah.edu/creduce/
Patch1:		https://github.com/csmith-project/creduce/commit/575986abefbb80b1fd2e7e7fc573935fc56c7bd8.patch
Patch2:		https://github.com/csmith-project/creduce/commit/4c74487fcde78a129e792b39ab99498e073ae426.patch
Patch3:		https://github.com/csmith-project/creduce/commit/e507cca4ccb32585c5692d49b8d907c1051c826c.patch
Patch4:		creduce-llvm-12.patch
BuildRequires:	llvm-devel
BuildRequires:	clang-devel
BuildRequires:	flex
BuildRequires:	perl(File::Which)
BuildRequires:	perl(Getopt::Tabular)
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Term::ReadKey)
Requires:	clang
Requires:	flex
Requires:	astyle
Requires:	indent

%description
C-Reduce is a tool that takes a large C or C++ program that has a
property of interest (such as triggering a compiler bug) and
automatically produces a much smaller C/C++ program that has the
same property. It is intended for use by people who discover and
report bugs in compilers and other tools that process C/C++ code.

%files
%{_bindir}/*
%{_libexecdir}/*
%{_datadir}/creduce

#-----------------------------------------------------------------
%prep
%if 0%{git}
%autosetup -p1 -n %{name}-llvm-12.0-dev
%else
%autosetup -p1 -n %{name}-%{version}
%endif

%build
CXXFLAGS="%{optflags} -std=gnu++1y -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1" %configure

%make_build

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 859 |21cr|crimson-fields-0.5.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define oname crimson

Summary:	Crimson Fields - Tactical war game with hexagonal grid
Name:		%{oname}-fields
Version:	0.5.3
Release:	8
License:	GPLv2+
Group:		Games/Strategy
Url:		http://crimson.seul.org/
Source0:	http://crimson.seul.org/files/%{oname}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	libxslt-proc
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(zlib)
Provides:	crimson-field = %{EVRD}

%description
Crimson Fields is a tactical war game in the tradition of Battle Isle. While
not being an exact clone, it tries to keep closer to the very first part of the
series than to the later ones, especially with regard to a rather simple rule
set and straight forward game play.

A simple editor can be used to create custom level files.

%files
%doc ChangeLog COPYING NEWS README 
%{_iconsdir}/%{oname}.png
%{_miconsdir}/%{oname}.png
%{_liconsdir}/%{oname}.png
%{_gamesbindir}/crimson
%{_datadir}/%{oname}
%{_datadir}/pixmaps/*
%{_mandir}/man6/crimson.*
%{_datadir}/applications/crimson.desktop

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities for Crimson Fields (a tactical war game)
Group:		Games/Strategy
Requires:	%{name} = %{EVRD}

%description utils
Crimson Fields is a tactical war game in the tradition of Battle Isle. While
not being an exact clone, it tries to keep closer to the very first part of the
series than to the later ones, especially with regard to a rather simple rule
set and straight forward game play.

This package includes utilities for Crimson Fields, including a simple map
editor for creating custom level files, map compiler and Battle Isle map
conversion tool.

%files utils
%doc README.CoMET README.bi2cf
%{_gamesbindir}/comet
%{_gamesbindir}/cfed
%{_gamesbindir}/bi2cf
%{_mandir}/man6/comet.*
%{_mandir}/man6/cfed.*
%{_mandir}/man6/bi2cf.*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%configure \
	--bindir=%{_gamesbindir} \
	--enable-cfed \
	--enable-bi2cf \
	--enable-comet

touch levels/*.lev

%make

%install
%makeinstall_std

desktop-file-install \
	--vendor="" \
	--remove-category="Application" \
	--add-category="X-MandrivaLinux-MoreApplications-Games-Strategy;Game;StrategyGame" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*


install -d %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
install -m644 gfx/crimson.png -D %{buildroot}%{_liconsdir}/%{oname}.png
convert -geometry 32x32 gfx/crimson.png %{buildroot}%{_iconsdir}/%{oname}.png
convert -geometry 16x16 gfx/crimson.png %{buildroot}%{_miconsdir}/%{oname}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 860 |21cr|cri-o-1.28.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_debug 1
%global with_check 0

%if 0%{?with_debug}
%global _find_debuginfo_dwz_opts %{nil}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif


%global provider github
%global provider_tld com
%global project cri-o
%global repo cri-o
# https://github.com/cri-o/cri-o
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path %{provider_prefix}
%global commit0 c5fc2a463053cf988db2aebe9b762700484922e5
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global git0 https://%{provider_prefix}

%global service_name crio

Name:		cri-o
Version:	1.28.4
Release:	1
Summary:	Kubernetes Container Runtime Interface for OCI-based containers
Group:		System/Configuration/Other
License:	ASL 2.0
URL:		%{git0}
Source0:	%{git0}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
Source3:	%{service_name}-network.sysconfig
Source4:	%{service_name}-storage.sysconfig
Source5:	%{service_name}-metrics.sysconfig
Source6:	%{service_name}.service
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:	golang
BuildRequires:	btrfs-devel
BuildRequires:	device-mapper-devel
BuildRequires:	git
BuildRequires:	glib2-devel
BuildRequires:	glibc-static-devel
BuildRequires:	go-md2man
BuildRequires:	gpgme-devel
BuildRequires:	libassuan-devel
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	go-rpm-macros
#Requires(pre): container-selinux
Requires:	containers-common >= 0.1.31-14
Requires:	conmon >= 2.0
Provides:	ocid = %{version}-%{release}
Provides:	%{service_name} = %{version}-%{release}
Requires:	cni-plugins >= 0.7.3-1

%description
%{summary}

%prep
%autosetup -Sgit -n %{name}-%{commit0}
cp %{SOURCE6} contrib/systemd/.
#sed -i '/strip/d' pause/Makefile
sed -i 's/install.config: crio.conf/install.config:/' Makefile
sed -i 's/install.bin: binaries/install.bin:/' Makefile
sed -i 's/\.gopathok //' Makefile
#sed -i 's/%{version}/%{version}-%{release}/' version/version.go
sed -i 's/\/local//' contrib/systemd/%{service_name}.service
sed -i 's|$(PREFIX)/lib/systemd|$(DESTDIR)/lib/systemd|' Makefile

%build
mkdir _output
pushd _output
mkdir -p src/%{provider}.%{provider_tld}/{%{project},opencontainers}
ln -s $(dirs +1 -l) src/%{import_path}
popd

ln -s vendor src
export GOPATH=$(pwd)/_output:$(pwd)
export BUILDTAGS="$(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh) $(hack/libdm_installed.sh) $(hack/libdm_no_deferred_remove_tag.sh) $(hack/ostree_tag.sh) $(hack/seccomp_tag.sh) $(hack/selinux_tag.sh)"
%gobuild -o bin/%{service_name} %{import_path}/cmd/%{service_name}
%gobuild -o bin/%{service_name}-status %{import_path}/cmd/%{service_name}-status
%make_build bin/pinns

%install
sed -i 's/\/local//' contrib/systemd/%{service_name}.service
# turn off selinux

./bin/%{service_name} \
      --cgroup-manager "systemd" \
      --conmon "%{_libexecdir}/%{service_name}/conmon" \
      --cni-plugin-dir "%{_libexecdir}/cni" \
      --enable-metrics \
      --metrics-port 9537 \
      config > %{service_name}.conf

# install binaries
install -dp %{buildroot}{%{_bindir},%{_libexecdir}/%{service_name}}
install -p -m 755 bin/%{service_name} %{buildroot}%{_bindir}

# install conf files
install -dp %{buildroot}%{_sysconfdir}/cni/net.d
install -p -m 644 contrib/cni/10-crio-bridge.conflist %{buildroot}%{_sysconfdir}/cni/net.d/100-crio-bridge.conf
install -p -m 644 contrib/cni/99-loopback.conflist %{buildroot}%{_sysconfdir}/cni/net.d/200-loopback.conf

install -dp %{buildroot}%{_sysconfdir}/%{service_name}
install -dp %{buildroot}%{_datadir}/containers/oci/hooks.d
install -dp %{buildroot}%{_datadir}/oci-umount/oci-umount.d
install -p -m 644 crio.conf %{buildroot}%{_sysconfdir}/%{service_name}
#install -p -m 644 seccomp.json %{buildroot}%{_sysconfdir}/%{service_name}
install -p -m 644 crio-umount.conf %{buildroot}%{_datadir}/oci-umount/oci-umount.d/%{service_name}-umount.conf
install -p -m 644 crictl.yaml %{buildroot}%{_sysconfdir}

install -dp %{buildroot}%{_sysconfdir}/sysconfig
install -p -m 644 contrib/sysconfig/%{service_name} %{buildroot}%{_sysconfdir}/sysconfig/%{service_name}
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{service_name}-network
install -p -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{service_name}-storage
install -p -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/%{service_name}-metrics

make PREFIX=%{buildroot}%{_usr} DESTDIR=%{buildroot} \
            install.bin \
            install.completions \
            install.config \
            install.man \
            install.systemd

install -dp %{buildroot}%{_sharedstatedir}/containers
#install -dp %{buildroot}/lib/systemd/system-preset

%check
%if 0%{?with_check}
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace
%endif

%post
%systemd_post %{service_name}

%preun
%systemd_preun %{service_name}

%postun
%systemd_postun_with_restart %{service_name}

%files
%license LICENSE
%doc README.md
%{_bindir}/%{service_name}
%{_bindir}/%{service_name}-status
%{_bindir}/pinns
%{_mandir}/man5/%{service_name}.conf*5*
%{_mandir}/man8/%{service_name}.8*
%{_mandir}/man8/crio-status.8*

%dir %{_sysconfdir}/%{service_name}
%config(noreplace) %{_sysconfdir}/%{service_name}/%{service_name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}-storage
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}-network
%config(noreplace) %{_sysconfdir}/sysconfig/%{service_name}-metrics
%config(noreplace) %{_sysconfdir}/cni/net.d/100-%{service_name}-bridge.conf
%config(noreplace) %{_sysconfdir}/cni/net.d/200-loopback.conf
%config(noreplace) %{_sysconfdir}/crictl.yaml
%dir %{_libexecdir}/%{service_name}
%{_unitdir}/%{service_name}.service
%{_unitdir}/%{service_name}-wipe.service
%dir %{_sharedstatedir}/containers
%dir %{_datadir}/oci-umount
%dir %{_datadir}/oci-umount/oci-umount.d
%{_datadir}/oci-umount/oci-umount.d/%{service_name}-umount.conf
%{_datadir}/bash-completion/completions/crio
%{_datadir}/bash-completion/completions/crio-status
%{_datadir}/fish/completions/*.fish
%{_datadir}/zsh/site-functions/_*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 861 |21cr|cronolog-1.6.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A flexible log file rotation program for Apache
Name:		cronolog
Version:	1.6.2
Release:	12
License: 	Apache License
Group:		System/Servers
URL: 		http://cronolog.org/
Source0:	http://cronolog.org/download/%{name}-%{version}.tar.bz2
# http://cronolog.org/patches/cronolog-jumbo-patch.txt
Patch0:		cronolog-jumbo-patch.txt
# http://cronolog.org/mailing-list/msg00266.html
Patch1:		cronolog-1.6.2-filemode.diff

%description
"cronolog" is a simple program that reads log messages from its input and
writes them to a set of output files, the names of which are constructed using
template and the current date and time. The template uses the same format
specifiers as the Unix date command (which are the same as the standard C
strftime library function).

%prep
%setup -q
%patch0 -p1
%patch1 -p0

%build
export CFLAGS="%{optflags} -DFILE_MODE=0640 -DDIR_MODE=0711"
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

install -m0755 src/zip_send_rm.sh %{buildroot}%{_sbindir}/zip_send_rm

%files
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%attr(0755,root,root) %{_sbindir}/cronolog
%attr(0755,root,root) %{_sbindir}/cronosplit
%attr(0755,root,root) %{_sbindir}/zip_send_rm
%attr(0644,root,root) %{_mandir}/man1/*.1*
%{_infodir}/cronolog*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 862 |21cr|cronutils-1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities to assist running batch processing jobs
Name:		cronutils
Version:	1.10
Release:	1
Group:		System/Base
License:	Apache 2.0
Url:		https://github.com/google/cronutils
Source0:	https://github.com/google/cronutils/archive/version/%{version}.tar.gz?/%{name}-version-%{version}.tar.gz

%description
Utilities to assist running batch processing jobs.

    runalarm: Limit the run time of a process
    runlock: Prevent concurrent runs of a process
    runstat: Export statistics about a process's execution

%files
%{_bindir}/runalarm
%{_bindir}/runstat
%{_bindir}/runlock
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-version-%{version}
sed -i 's/local//g' Makefile

%build
%make CC=%{__cc}

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 863 |21cr|cross-avr-binutils-2.35-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define target avr

Summary:	Cross Compiling GNU binutils targeted at %{target}
Name:		cross-%{target}-binutils
Version:	2.35
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.gnu.org/software/binutils/
Source0:	ftp://ftp.gnu.org:21/pub/gnu/binutils/binutils-%{version}.tar.xz
BuildRequires:	gawk
BuildRequires:	texinfo

%description
This is a Cross Compiling version of GNU binutils, which can be used to
assemble and link binaries for the %{target} platform, instead of for the
native %{_arch} platform.

%files
%doc binutils-%{version}/COPYING binutils-%{version}/COPYING.LIB
%doc binutils-%{version}/README
%{_prefix}/%{target}
%{_bindir}/%{target}-*
%{_mandir}/man1/%{target}-*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -c

%build
mkdir -p build
pushd build
CFLAGS="%{optflags}" ../binutils-%{version}/configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--target=%{target} \
	--disable-werror \
	--disable-nls

%make
popd

%install
pushd build
%makeinstall_std
popd
# these are for win targets only
rm %{buildroot}%{_mandir}/man1/%{target}-{dlltool,windres}.1
# we don't want these as we are a cross version
rm -r %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 864 |21cr|cross-avr-gcc-10.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define target avr
%define Werror_cflags -Wformat
%define debug_package %{nil}
# This is a ugly workaround for not listing all files in /usr/lib and %%{_libexecdir}
# Don't remove it until you are going to support this package in future
%define _files_listed_twice_terminate_build 0

Summary:	Cross Compiling GNU GCC targeted at %{target}
Name:		cross-%{target}-gcc
Version:	10.2.0
Release:	2
License:	GPLv2+
Group:		Development/C
Url:		http://gcc.gnu.org/
Source0:	ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
Patch0:		avr-gcc-4.5.3-mint8.patch
Patch1:		avr-gcc-config.patch
BuildRequires:	cross-%{target}-binutils
BuildRequires:	gawk
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	libmpc-devel
BuildRequires:	pkgconfig(zlib)
Requires:	cross-%{target}-binutils
Provides:	%{name}-cpp = %{EVRD}

%description
This is a Cross Compiling version of GNU GCC, which can be used to compile
for the %{target} platform, instead of for the native %{_arch} platform.

%files
%doc COPYING COPYING.LIB
%{_bindir}/%{target}-*
%dir /usr/lib/gcc
%dir /usr/lib/gcc/%{target}
/usr/lib/gcc/%{target}/%{version}
%dir %{_libexecdir}/gcc
%dir %{_libexecdir}/gcc/%{target}
%{_libexecdir}/gcc/%{target}/%{version}
%{_mandir}/man1/%{target}-*.1.*
%exclude %{_bindir}/%{target}-?++
%exclude %{_libexecdir}/gcc/%{target}/%{version}/cc1plus
%exclude %{_mandir}/man1/%{target}-g++.1.*

#----------------------------------------------------------------------------

%package c++
Summary:	Cross Compiling GNU GCC targeted at %{target}
Group:		Development/C++
Requires:	%{name} = %{EVRD}

%description c++
This package contains the Cross Compiling version of g++, which can be used to
compile c++ code for the %{target} platform, instead of for the native %{_arch}
platform.

%files c++
%{_bindir}/%{target}-?++
%{_libexecdir}/gcc/%{target}/%{version}/cc1plus
%{_mandir}/man1/%{target}-g++.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gcc-%{version}

contrib/gcc_update --touch

# Extract %%__os_install_post into os_install_post~
cat << \EOF > os_install_post~
%__os_install_post
EOF

# Generate customized brp-*scripts
cat os_install_post~ | while read a x y; do
case $a in
# Prevent brp-strip* from trying to handle foreign binaries
*/brp-strip*)
  b=$(basename $a)
  sed -e 's,find %{buildroot},find %{buildroot}%{_bindir} %{buildroot}%{_libexecdir},' $a > $b
  chmod a+x $b
  ;;
esac
done

sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
< os_install_post~ > os_install_post 

%build

mkdir -p gcc-%{target}
pushd gcc-%{target}
CC="%{__cc} %{optflags} -fno-stack-protector" \
../configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--target=%{target} \
	--enable-languages=c,c++ \
	--disable-nls \
	--disable-libssp \
	--with-system-zlib \
	--enable-version-specific-runtime-libs \
	--with-pkgversion="%{distribution} %{EVRD}" \
	--with-bugurl="%{bugurl}" \
	--libexecdir=%{_libexecdir}
# In general, building GCC is not smp-safe
make
popd

%install
pushd gcc-%{target}
%makeinstall_std
popd
# we don't want these as we are a cross version
rm -rf %{buildroot}%{_infodir}
rm -rf %{buildroot}%{_mandir}/man7
rm -rf %{buildroot}%{_libdir}/libcc1.so*
# and these aren't usefull for embedded targets
rm -rf %{buildroot}/usr/lib/gcc/%{target}/%{version}/install-tools
rm -rf %{buildroot}%{_libexecdir}/gcc/%{target}/%{version}/install-tools

%define __os_install_post . ./os_install_post

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 865 |21cr|crossfire-maps-1.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		crossfire-maps
Version:	1.70.0
Release:	4
Summary:	Map files for Crossfire, a graphical adventure game
Group:		Games/Adventure
License:	GPL
URL:		http://crossfire.real-time.com/
Source0:	http://downloads.sourceforge.net/project/crossfire/crossfire-%{version}/crossfire-%{version}.maps.tar.bz2
Source1:	crossfire-maps.README
Buildarch:	noarch

%description
Crossfire is a highly graphical role-playing adventure game
with characteristics reminiscent of rogue, nethack, omega, and gauntlet.
It has multiplayer capability and presently runs under X11.

This package contains map files necessary for crossfire server to
run. If you just want to play crossfire only, you don't need this package.

%prep
# since the archive is quite large and takes long time to decompress, so
# unpack it during %%install to save some time
%setup -q -T -c
cp %{SOURCE1} README

%build

%install
mkdir -p %{buildroot}%{_gamesdatadir}/crossfire
tar -xvf %SOURCE0 -C %{buildroot}%{_gamesdatadir}/crossfire/

# cleanup
find %{builddoot}%{_gamesdatadir}/crossfire -name '.#*' -type f -print0 | xargs -r -0 rm -f

%files
%defattr(0644,root,root,0755)
%doc README
%{_gamesdatadir}/crossfire/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 866 |21cr|crosti-1.13.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		crosti
Summary:	Tool to create cross stitch scheme from custom image
Version:	1.13.2
Release:	3
License:	GPLv3+
Group:		Graphics
URL:		https://sites.google.com/site/crostiapp/
Source0:	https://sourceforge.net/projects/crosti/files/crosti%201.13.2/%{name}-%{version}-source.zip
Source1:	crosti.xml
BuildRequires:	qt4-devel

%description
This tool allows you to make your own unique cross stitch scheme from custom
image. You can resize and rotate image, reduce the number of colors, change
image palette, make cross stitch scheme, preview it, save and print. Cross
stitch scheme edition available: colors and icons changing, new color addition,
color fill, scheme pixel draw, lines and half-stitches.

Features

* Convert custom image to cross stitch scheme.
* Edit cross stitch scheme.
* Save and print the scheme that you created.
* Input images: BMP, GIF, ICO, JPEG, JPG, MNG, PBM, PGM, PNG, PPM, SVG, TIF,
  TIFF, XBM, XPM.
* Output cross stitch scheme: BMP, ICO, JPEG, JPG, PNG, PPM, TIF, TIFF, XBM,
  XPM, PDF, CST (crosti scheme text file).

%prep
%setup  -q -c -n %{name}-%{version}-source
perl -i -pe 's/\r\n/\n/gs' {readme,changelog}.txt

%build
%qmake_qt4
%make

%install
%makeinstall_qt
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages/%{name}.xml

%files
%doc readme.txt changelog.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/*
%{_iconsdir}/hicolor/*/mimetypes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 867 |21cr|crrcsim-0.9.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	A Model-Airplane Flight Simulation Program
Name:		crrcsim
Version:	0.9.13
Release:	2
License:	GPLv2+
Group:		Games/Other
Url:		https://sourceforge.net/projects/crrcsim/
Source0:	https://sourceforge.net/projects/crrcsim/files/crrcsim/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1:	CRRCsim.desktop
# Autoreconf fails: we need to patch directly configure
Patch0:		crrcsim-0.9.13-fix-boost_thread-detection.patch
Patch1:		crrcsim-0.9.13-fix-endline.patch
BuildRequires:	desktop-file-utils
BuildRequires:	boost-devel
BuildRequires:	cgal-devel >= 1.8.4
BuildRequires:	plib-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gmp)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sdl) >= 1.2.0
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
# aarch64 is supported with patches from Fedora (when needed)
ExclusiveArch:	%{ix86} %{x86_64}

%description
Crrcsim is a model-airplane flight simulation program. Using it, you can learn
how to fly model aircraft, test new aircraft designs, and improve your skills
by practicing on your computer.
It rules! The flight model is very realistic. The flight model parameters are
calculated based on a 3D representation of the aircraft. Stalls are properly
modelled as well. Model control is possible with your own rc transmitter, or
any input device such as joystick, mouse, keyboard ...

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/CRRCsim.desktop
%doc %{_datadir}/doc/%{name}/*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Fix perms
find . -name "*.cpp" -o -name "*.h"| xargs chmod -x


%build
%configure
%make


%install
%makeinstall_std

desktop-file-install --vendor="" \
	--dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 868 |21cr|cryptkeeper-0.9.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       cryptkeeper
Version:    0.9.5
Release:    6
Summary:    System tray applet that manages EncFS encrypted folders
License:    GPLv3
Group:      System/Kernel and hardware
URL:        http://tom.noflag.org.uk/cryptkeeper.html
Source0:    http://tom.noflag.org.uk/cryptkeeper/%name-%version.tar.gz
Source1:    ru.gmo
Source2:    ru.po
Source3:    cryptkeeper32x32.png.tar.gz
BuildRequires:  gettext-devel
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gconf-2.0)
Requires:       encfs
Patch0:		cryptkeeper-0.9.5-add-unistd-header.patch
Patch1:		cryptkeeper-0.9.5-fix-linking.patch
Patch2:		fix.lokale-name-ru.patch

%description
Cryptkeeper is a Linux system tray applet that manages EncFS encrypted folders. 

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

# Not ported yet
rm -f po/ru_RU.gmo
rm -f po/ru_RU.po

# update ru translation
cp -f %{SOURCE1} po/
cp -f %{SOURCE2} po/

tar -xvzf %{SOURCE3}

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/cryptkeeper
%{_datadir}/applications/cryptkeeper.desktop
%{_datadir}/pixmaps/cryptkeeper.png

%changelog
* Sun Jul 21 2024 VictorR2007 <victorr2007@yandex.ru> 93ca445  (HEAD, origin/rosa2023.1)
- Fix Russian translations

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 869 |21cr|cryptominisat-5.11.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname cryptominisat5_ %{major}
%define devname %mklibname cryptominisat5 -d

Summary:	SAT solver
Name:		cryptominisat
Version:	5.11.4
Release:	2
# The Mersenne Twister implementation is BSD-licensed.
# All other files are MIT-licensed.
License:	MIT
Group:		Sciences/Mathematics
Url:		http://www.msoos.org/cryptominisat2/
Source0:	https://github.com/msoos/cryptominisat/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

%description
This system provides CryptoMiniSat, an advanced incremental SAT solver. 
The system has 3 interfaces: command-line, C++ library and python. 
The command-line interface takes a cnf as an input in the DIMACS format 
with the extension of XOR clauses. The C++ and python interface mimics 
this and also allows for incremental use: assumptions and multiple solve calls. 
A C compatible wrapper is also provided.

%files
%doc AUTHORS LICENSE.txt README*
%{_bindir}/cryptominisat5*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cryptominisat library
Group:		System/Libraries

%description -n %{libname}
The %{name} library.

%files -n %{libname}
%{_libdir}/lib%{name}5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for developing with %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}5-devel = %{EVRD}

%description -n %{devname}
Header files for developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}5/
%{_libdir}/lib%{name}5.so
%{_libdir}/cmake/%{name}5

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix cmake files install path
sed -i 's|lib/cmake|%{_lib}/cmake|' CMakeLists.txt

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 870 |21cr|cryptopro-install-helper-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Скрипт установки КриптоПРО из архива с офсайта
Summary:	Скрипт установки КриптоПРО из архива с офсайта
Name:		cryptopro-install-helper
Version:	1.0
Release:	2
License:	GPLv3
Group:		Accessibility
Url:		https://abf.io/import/cryptopro-install-helper
Vendor:		MOS
Source0:	install-cryptopro.sh
BuildArch:	noarch
ExclusiveArch:	x86_64

Requires:	tar

%description
The script allows you to simply and correctly install CryptoPro packages into the system.
To use it, just download the archive from the official website and enter the command:

sudo install-cryptopro linux-amd64.tgz

%description -l ru_RU.UTF-8
Скрипт позволяет просто и правильно установить пакеты КриптоПРО в систему.
Для использования достаточно скачать архив с официального сайта и ввести команду:

sudo install-cryptopro linux-amd64.tgz

%files
%{_bindir}/install-cryptopro
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 install-cryptopro.sh %{buildroot}%{_bindir}/install-cryptopro
cd %{buildroot}%{_bindir}
ln -sf install-cryptopro %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 871 |21cr|cscope-15.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	C source file browser
Name:		cscope
Version:	15.9
Release:	1
License:	BSD
Group:		Development/Other
URL:		http://cscope.sourceforge.net/
Source:		http://sourceforge.net/projects/cscope/files/cscope/v%{version}/%{name}-%{version}.tar.gz
Patch0:		cscope_prog_info.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(ncurses)

%description
cscope is an interactive, screen-oriented tool that allows the user to browse
through C source files for specified elements of code.

%files
%doc TODO COPYING ChangeLog AUTHORS README NEWS
%{_bindir}/cscope
%{_bindir}/ocs
%{_mandir}/man1/cscope.1*
%{_datadir}/emacs/site-lisp/xcscope.el

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p0

%build
%configure
%make

%install
%make_install

mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp
install contrib/xcscope/xcscope.el %{buildroot}%{_datadir}/emacs/site-lisp/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 872 |21cr|csmash-0.6.6-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		csmash
Summary:	A 3D table tennis game
Version:	0.6.6
Release:	23
Source0:	http://belnet.dl.sourceforge.net/sourceforge/cannonsmash/%{name}-%{version}.tar.bz2
Source11:	%{name}.16.png
Source12:	%{name}.32.png
Source13:	%{name}.48.png
Patch0:		csmash-0.6.6-64bit-fixes.patch.bz2
Patch1:		csmash-0.6.6-gcc4.patch.bz2
Patch2:		csmash-0.6.6-extraqualif.patch.bz2
URL:		http://CannonSmash.sourceforge.net/
License:	GPL
Group:		Games/Sports
BuildRequires:	pkgconfig(x11) libxext-devel libxi-devel libxmu-devel libxt-devel
BuildRequires:	SDL_mixer-devel SDL_image-devel  esound-devel
BuildRequires:	gtk+2-devel mesaglu-devel jpeg-devel texinfo zlib-devel gettext bison
BuildRequires:  pkgconfig(alsa)

%description
CannonSmash is a 3D tabletennis game. The goal of this project is to represent
various strategy of tabletennis on computer game.

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
%configure
%make

%install
%makeinstall
rm -rf %{buildroot}%{_datadir}/%{name}/win32

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=CannonSmash
Comment=A 3D table tennis game
Comment[ru]=Трехмерный настольный теннис
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;SportsGame;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS README README.en
%{_bindir}/*
%{_datadir}/games/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 873 |21cr|cs_obexftp-1.0.0.18-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: ObexFtp files transfert between two devices
Name: cs_obexftp
Version: 1.0.0.18
Release: 6
License: GPLv2+
Group: Communications
URL: http://cs-obexftp.wiki.sourceforge.net/
Source0: http://kent.dl.sourceforge.net/sourceforge/cs-obexftp/%name-%version.tar.bz2
BuildRequires: mono-devel >= 2.0
BuildRequires: obexftp-devel
Requires: obexftp
BuildArch: noarch

%description
Using the new CSharp Dll from swig portability of Openobex/ObexFtp to write
a nice GUI able to transfer file between two devices.

%prep
%setup -q -n %name-%version

%build
./configure --prefix=%_prefix --bindir=%_bindir --datadir=%_datadir --libdir=%_prefix/lib
%make

%install
rm -fr %buildroot
%makeinstall_std

%clean
rm -fr %buildroot

%files
%defattr(-,root,root)
%doc Cs-ObexFtp/ChangeLog THANKS todos
%_bindir/*
%_prefix/lib/csobexftp
%_prefix/lib/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 874 |21cr|csound-6.18.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package	%{nil}

%define	major		6
%define	libname		%mklibname %{name} %{major}
%define	develname	%mklibname -d %{name}

%define	with_manual	1

# Avoid providing private libraries
%global	__provides_exclude	_CsoundAC.so | _csnd6.so

Summary:	A sound synthesis language and library
Name:		csound
Version:	6.18.1
Release:	1
License:	LGPLv2+
Group:		Sound
Url:			https://csound.github.io/
# Sub-modules are a pain...
#Source0:	https://github.com/csound/csound/archive/%%{name}-%%{version}.tar.gz
Source0:	%{name}-%{version}.tar.xz
%if %{with_manual}
Source1:	https://github.com/csound/csound/releases/download/%{version}/Csound6.18.0_manual_html.zip
%endif
Source100:	%{name}.rpmlintrc
Patch0:	csound-6.16.2-default-opcodedir.patch
Patch1:	csound-6.16.2-default-pulse.patch
Patch2:	csound-6.16.2-fix-luajit-detection.patch
Patch4:	csound-6.16.2-fix-faust-detection.patch
BuildRequires:	cmake >= 2.8.12
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	eigen3
BuildRequires:	flex
BuildRequires:	git
BuildRequires:	getfem++
BuildRequires:	gettext
BuildRequires:	jpackage-utils >= 1.5
BuildRequires:	llvm
BuildRequires:	python3
BuildRequires:	swig >= 2.0
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	faust-devel >= 2.0.0
BuildRequires:	fltk-devel >= 1.1.7
BuildRequires:	gomp-devel
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	ladspa-devel
BuildRequires:	libmusicxml-devel
BuildRequires:	llvm-devel
BuildRequires:	portmidi-devel
BuildRequires:	stk-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sndfile) >= 1.1.0
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
Obsoletes:	%{name} < %{EVRD}

%description
Csound is a sound and music synthesis system, providing facilities for
composition and performance over a wide range of platforms. It is not
restricted to any style of music, having been used for many years in
at least classical, pop, techno, ambient...

%files -f csound6.lang
%doc COPYING README.md Release_Notes/*
%{_bindir}/atsa
%{_bindir}/cs
%{_bindir}/csanalyze
%{_bindir}/csb64enc
%{_bindir}/csbeats
%{_bindir}/csdebugger
%{_bindir}/csound
%{_bindir}/cvanal
%{_bindir}/dnoise
%{_bindir}/envext
%{_bindir}/extract
%{_bindir}/extractor
%{_bindir}/het_export
%{_bindir}/het_import
%{_bindir}/hetro
%{_bindir}/lpanal
%{_bindir}/lpc_export
%{_bindir}/lpc_import
%{_bindir}/makecsd
%{_bindir}/mixer
%{_bindir}/pv_export
%{_bindir}/pv_import
%{_bindir}/pvanal
%{_bindir}/pvlook
%{_bindir}/scale
%{_bindir}/scot
%{_bindir}/scsort
%{_bindir}/sdif2ad
%{_bindir}/sndinfo
%{_bindir}/srconv
%{_bindir}/src_conv
%{_datadir}/samples/*

#-------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Csound main library and plug-ins
Group:		System/Libraries
# Dropped plugins
%rename	%{name}-fltk
%rename	%{name}-fluidsynth
%rename	%{name}-stk
%rename	%{name}-virtual-keyboard

%description -n %{libname}
Contains the libraries and the main plug-ins for using Csound.

%files -n %{libname}
%doc COPYING
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins-6.0
%{_libdir}/lib%{name}64.so.%{major}*
%{_libdir}/libcsnd6.so.%{major}*
%{_libdir}/luaCsnd6.so
%{_libdir}/%{name}/plugins-6.0/libarrayops.so
%{_libdir}/%{name}/plugins-6.0/libampmidid.so
%{_libdir}/%{name}/plugins-6.0/libcontrol.so
%{_libdir}/%{name}/plugins-6.0/libdeprecated.so
%{_libdir}/%{name}/plugins-6.0/libdoppler.so
%{_libdir}/%{name}/plugins-6.0/libbformdec2.so
%{_libdir}/%{name}/plugins-6.0/libfractalnoise.so
%{_libdir}/%{name}/plugins-6.0/libftsamplebank.so
%{_libdir}/%{name}/plugins-6.0/libipmidi.so
%{_libdir}/%{name}/plugins-6.0/libjoystick.so
%{_libdir}/%{name}/plugins-6.0/liblfsr.so
%{_libdir}/%{name}/plugins-6.0/libmixer.so
%{_libdir}/%{name}/plugins-6.0/libpadsynth.so
%{_libdir}/%{name}/plugins-6.0/libpmidi.so
%{_libdir}/%{name}/plugins-6.0/libpvsops.so
%{_libdir}/%{name}/plugins-6.0/librtalsa.so
%{_libdir}/%{name}/plugins-6.0/librtpa.so
%{_libdir}/%{name}/plugins-6.0/librtpulse.so
%{_libdir}/%{name}/plugins-6.0/libscansyn.so
%{_libdir}/%{name}/plugins-6.0/libsignalflowgraph.so
%{_libdir}/%{name}/plugins-6.0/libstdutil.so
%{_libdir}/%{name}/plugins-6.0/libtrigenvsegs.so
%{_libdir}/%{name}/plugins-6.0/liburandom.so

#-------------------------------------------------------------------------------

%package -n %{develname}
Summary:	Csound development files and libraries
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}

%description -n %{develname}
Contains headers and libraries for developing applications that use Csound.

%files -n %{develname}
%doc COPYING
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/*
%{_libdir}/lib%{name}64.so
%{_libdir}/libcsnd6.so
%{_datadir}/cmake/Csound/FindCsound.cmake

#-------------------------------------------------------------------------------

%package python3
Summary:	Python 3 Csound files and libraries
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	python3
Requires:	python3-numpy

%description python3
Contains Python 3 files for using Csound.

%files python3
%doc COPYING
%{py3_platsitedir}/ctcsound.py*
%{py3_platsitedir}/__pycache__/*.pyc

#-------------------------------------------------------------------------------

%package java
Summary:	Java Csound support
Group:		Development/Java
Requires:	%{libname} = %{EVRD}
Requires:	jpackage-utils >= 1.5

%description java
Contains Java language bindings for developing and running Java applications
that use Csound.

%files java
%doc COPYING
%{_libdir}/lib_jcsound6.so
%{_libdir}/lib_jcsound.so.1
%{_libdir}/csnd6.jar
%{_javadir}/csnd6.jar

#-------------------------------------------------------------------------------

%package javadoc
Summary:	API documentation for Java Csound support
Group:		Development/Java
Requires:	%{name}-java = %{EVRD}

%description javadoc
API documentation for the %{name}-java package.

%files javadoc
%doc COPYING
%doc %{_javadocdir}/%{name}-java

#-------------------------------------------------------------------------------

%package jack
Summary:	Jack Audio plug-ins for Csound
Group:		Sound
Requires:	%{libname} = %{EVRD}
Requires:	jackit

%description jack
Contains Jack Audio plugins for Csound.

%files jack
%doc COPYING
%{_libdir}/%{name}/plugins-6.0/librtjack.so
#{_libdir}/%%{name}/plugins-6.0/libjackTransport.so

#-------------------------------------------------------------------------------

%package dssi
Summary:	Disposable Soft Synth Interface (DSSI) plug-in for Csound
Group:		Sound
Requires:	%{libname} = %{EVRD}
Requires:	dssi

%description dssi
Disposable Soft Synth Interface (DSSI) plug-in for Csound.

%files dssi
%doc COPYING
%{_libdir}/%{name}/plugins-6.0/libdssi4cs.so

#-------------------------------------------------------------------------------

%package osc
Summary:	Open Sound Control (OSC) plug-in for Csound
Group:		Sound
Requires:	%{libname} = %{EVRD}

%description osc
Open Sound Control (OSC) plug-in for Csound.

%files osc
%doc COPYING
%{_libdir}/%{name}/plugins-6.0/libosc.so

#-------------------------------------------------------------------------------

%if %{with_manual}
%package manual
Summary:	The Csound manual
Group:		Sound
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description manual
Canonical Reference Manual for Csound.

%files manual
%doc manual/html
%endif

#-------------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%if %{with_manual}
# Extract manual files and fix perms
mkdir -p manual
pushd manual
	unzip -q %{SOURCE1}
	chmod 0755 html
	cd html
	chmod 0644 *.html *.css
	chmod 0755 images examples
	cd images/callouts
	chmod 0644 *
	cd ..
	chmod 0755 callouts
	chmod 0644 *.png *.jpg *.gif
	cd ..
	cd examples
	chmod 0644 *
	chmod 0755 musical
	cd ../..
popd
%endif

# Fix source perms
find Opcodes/emugens/ -name "*.c" -o -name "*.h" | xargs chmod 0644
find util/ -name "*.c" -o -name "*.h" | xargs chmod 0644
find util1/sortex/ -name "*.c" -o -name "*.h" | xargs chmod 0644

# Dirty hack
sed -i 's|"${LIBRARY_INSTALL_DIR}/%{name}/plugins64-${APIVERSION}"|"${LIBRARY_INSTALL_DIR}/%{name}/plugins-${APIVERSION}"|g' CMakeLists.txt


%build
%cmake \
	-DBUILD_RELEASE=1 \
	-DBUILD_UTILITIES=1 \
	-DFAIL_MISSING=0 \
	-DUSE_DOUBLE=1 \
	-DUSE_CURL=1 \
%ifarch x86_64 aarch64
	-DUSE_LIB64=1 \
%endif
	-DUSE_GETTEXT=1 \
	-DLUA_LIBRARY="%{_libdir}/libluajit-5.1.so" \
	-DLUA_MODULE_INSTALL_DIR="%{_libdir}"

%make

# Generate javadoc...
pushd interfaces
	javadoc *.java
popd


%install
%makeinstall_std -C build

# Put the java package where it should be and make sure csound can find it
install -dm 755 %{buildroot}%{_javadir}
(cd %{buildroot}%{_javadir}; ln -s %{_libdir}/csnd6.jar .)
# Create index for it
jar -i %{buildroot}%{_libdir}/csnd6.jar

# Package the docs for java
install -dm 644 %{buildroot}%{_javadocdir}/%{name}-java
%{__chmod} -R 755 %{buildroot}%{_javadocdir}/%{name}-java
pushd build/interfaces
	(tar cf - *.html csnd6/*.html) | (cd %{buildroot}%{_javadocdir}/%{name}-java; tar xvf -)
popd


%find_lang csound6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 875 |21cr|csoundqt-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	CsoundQt

Summary:	Front-end for the csound sound processor
Name:		csoundqt
Version:	1.1.1
Release:	1
License:	LGPLv2+
Group:		Sound
Url:			https://csoundqt.github.io/
Source0:	https://github.com/%{oname}/%{oname}/archive/%{oname}-%{version}.tar.gz
Patch0:	csoundqt-1.1.1-fix-python3-syntax-errors.patch
# This one needs eventually to be updated every time there is a new csound release
Patch2:	csoundqt-0.9.8.1-update-csound-manual-URL.patch
BuildRequires:	byacc
BuildRequires:	csound >= 6.17.0
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	csound-devel >= 6.17.0
BuildRequires:	python3-qt5-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.8
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(rtmidi)
BuildRequires:	pkgconfig(sndfile)
Requires:	csound >= 6.17.0
Requires:	PyQt5
%rename	qutecsound

%description
This is a front-end for Csound featuring a highlighting editor with
auto-complete, interactive widgets and integrated help. It is a cross platform
and aims to be a simple yet powerful and complete development environment for
Csound. It can open files created by MacCsound. Csound is a musical
programming language with a very long history, with roots in the origins of
computer music. It is still being maintained by an active community and
despite its age, is still one of the most powerful tools for sound processing
and synthesis. This program  hopes to bring the power of Csound to a larger
group of people, by reducing Csound's initial learning curve, and by giving
users more immediate control of their sound. It hopes to be both a simple
tool for the beginner, as well as a powerful tool for experienced users.

%files
%doc ChangeLog COPYING README.md
%doc doc/*.pdf doc/images/* release_notes/*.md
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/x-csound-*.xml
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/mimetypes/csound.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
#patch2 -p1

# Fix paths
sed -i s,"/usr/lib","%{_libdir}",g qcs-unix.pro
sed -i s,"/usr/local/include","%{_includedir}",g qcs-unix.pro


%build
%qmake_qt5 qcs.pro CONFIG+=html_webengine CONFIG+=rtmidi INSTALL_DIR="%{buildroot}%{_prefix}" SHARE_DIR="%{buildroot}%{_datadir}"
%make


%install
%makeinstall_std INSTALL_DIR="%{buildroot}%{_prefix}" SHARE_DIR="%{buildroot}%{_datadir}"

# Install images data
cp -a images %{buildroot}%{_datadir}/%{name}

# Fix perms
chmod -x "%{buildroot}%{_datadir}/%{name}/Examples/McCurdy Collection/LiveAudioIn/pitchamdf.csd"
chmod -x %{buildroot}%{_datadir}/applications/%{name}.desktop 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 876 |21cr|ctemplate-2.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 3
%define	libname %mklibname ctemplate %{major}
%define	develname %mklibname ctemplate -d

Name:		ctemplate
Version:	2.3
Release:	6
Summary:	Simple but powerful template language for C++
Group:		System/Libraries
License:	BSD
URL:		https://code.google.com/p/ctemplate/
Source0:	https://ctemplate.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	python2
BuildRequires:	make

%description
The ctemplate package contains a library implementing a simple but
powerful template language for C++.  It emphasizes separating logic
from presentation: it is impossible to embed application logic in this
template language.  This limits the power of the template language
without limiting the power of the template *system*.  Indeed, Google's
"main" web search uses this system exclusively for formatting output.

%package -n	%{libname}
Summary:	Simple but powerful template language for C++
Group:		System/Libraries

%description -n	%{libname}
The ctemplate package contains a library implementing a simple but
powerful template language for C++.  It emphasizes separating logic
from presentation: it is impossible to embed application logic in this
template language.  This limits the power of the template language
without limiting the power of the template *system*.  Indeed, Google's
"main" web search uses this system exclusively for formatting output.

%package -n	%{develname}
Summary:	Development files for the %{name} library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{version}

%description -n	%{develname}
The ctemplate-devel package contains static and debug libraries and header
files for developing applications that use the ctemplate package.

%prep
%setup -q -n ctemplate-ctemplate-%{version}

find . -name *.py -exec sed -i 's/env python/env python2/' {} \;

%build
export PTHREAD_LIBS="-lpthread"
%configure -enable-static=no
%make

%check
%__make check

%install
%__rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog INSTALL README doc/*
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%doc %{_docdir}/%{name}-%{version}
%{_includedir}/ctemplate/*
%{_libdir}/pkgconfig/libctemplate*.pc
%{_bindir}/diff_tpl_auto_escape
%{_bindir}/make_tpl_varnames_h
%{_bindir}/template-converter
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 877 |21cr|cthumb-4.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program to generate Web picture albums
Name:		cthumb
Version:	4.2
Release:	16
License:	GPL
Group:		Networking/WWW
Source0:	http://prdownloads.sourceforge.net/cthumb/%{name}-%{version}.tar.gz
URL:		http://cthumb.sourceforge.net/
BuildArch:	noarch
Requires:	perl-base
Requires:	perl-HTML-Parser
Requires:	perl-MIME-tools
Requires:	perl-URI
Requires:	netpbm


%description
Cthumb allows you to create a web picture album, with an index and
several pages, each with thumbnails of your pictures. it optionally
generates pages in several languages simultaneously. it automatically
generates thumbnails of the pictures. it attempts to be nice in the
look of the pages it generates. it is geared towards people that have
ton of digital images that need to be labeled and classified. all you
need is the pictures and a text editor to put all the titles for every
picture in a simple "album" textfile.

%prep
%setup -q

%build
./configure --prefix=%{_prefix} --mandir=%{_mandir}

%install
mkdir -p %{buildroot}

make prefix=%{buildroot}%{_prefix} \
    mandir=%{buildroot}%{_mandir} install
cp contrib/mkalbum %{buildroot}%{_bindir}
cp contrib/tree2album %{buildroot}%{_bindir}

%files
%doc README TO-DO INSTALL BUGS VERSION AUTHORS ChangeLog cthumbrc.sample
%doc contrib/*.readme
%attr(0755,root,root) %{_bindir}/*
%{_datadir}/man/*/*
%dir %{_datadir}/images/
%{_datadir}/images/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 878 |21cr|ctorrent-3.3.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast and small BitTorrent Client program written in C/C++
Name:		ctorrent
Version:	3.3.2
Release:	9
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://www.rahul.net/dholmes/ctorrent/
Source0:	http://www.rahul.net/dholmes/ctorrent/%{name}-dnh%{version}.tar.gz
BuildRequires:	pkgconfig(openssl)

%description
CTorrent is a BitTorrent Client program written in C/C++ for FreeBSD and Linux.
Fast and small are CTorrent's two strengths.

This is the Enhanced CTorrent fork.

%files
%doc AUTHORS ChangeLog NEWS README* VERSION
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-dnh%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 879 |21cr|ctpl-0.3.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define use_ccache        	1
%define ccachedir		~/.ccache-OOo%{mdvsuffix}%{?_with_ccache: %global use_ccache 1}%{?_without_ccache: %global use_ccache 0}
%define debug_package          	%{nil}

%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:		ctpl
Group:		Sciences/Mathematics
License:	GPLv3+
Summary:	Template engine library written in C
Version:	0.3.4
Release:	4
Source:		http://download.tuxfamily.org/ctpl/releases/%{name}-%{version}.tar.gz
URL:		http://ctpl.tuxfamily.org/
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig

%description
CTPL is a template engine library written in C and distributed 
under the terms of the GNU GPLv3+. See the overview in the
documentation for a more complete description.

%package -n %{libname}
Summary: Template engine library written in C
Group:   Sciences/Mathematics

%description -n %{libname}
Library package for ctpl

%package -n %{devname}
Summary: Development files for ctpl
Group:   Sciences/Mathematics

%description -n %{devname}
Development files for ctpl library

%prep
%setup -q

%build
%configure --enable-gtk-doc -enable-gtk-doc-pdf
%make

%install
%makeinstall

%files
%{_datadir}/gtk-doc/*
%{_datadir}/man/man1/*
%{_bindir}/ctpl
%{_datadir}/locale/fr/LC_MESSAGES/ctpl.mo
%{_datadir}/locale/it/LC_MESSAGES/ctpl.mo

%files -n %{libname}
%{_libdir}/*

%files -n %{devname}
%{_includedir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 880 |21cr|cube-escape-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define debug_package	%{nil}

Name:           cube-escape
Version:        0.9
Release:        1
Summary:        Progress over a maze etched on the surface of a cube
License:        GPLv3+
Group:          Games/Puzzles
Url:            https://code.google.com/p/cube-escape/
Source0:        http://cube-escape.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:        %{name}.png
Patch0:         cube-escape-rosa-games.patch
Patch1:         cube-escape-rosa-optflags.patch
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_ttf)
BuildRequires:  pkgconfig(SDL_image)
Requires:       fonts-ttf-liberation

%description
Cube Escape is a game in which you are inside a cube made up of numerous
shells, with a maze etched on the surface of each shell. Escape the cube
by travelling through the mazes, including over cube edges, until you find
an upward exit. When you reach the red exit, you win.

%files
%doc README COPYING
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
#-----------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
find . -perm 0600 -exec chmod 0644 {} \;

%build
%setup_compile_flags
%make 

%install
rm -f data/{LiberationMono-Regular.ttf,icon.png}

install -D -m 0755 %{name} %{buildroot}%{_gamesbindir}/%{name}
install -d -m 0755 %{buildroot}%{_gamesdatadir}/%{name}/
install -m 0644 data/* %{buildroot}%{_gamesdatadir}/%{name}/
install -D -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Cube Escape
GenericName=3D maze
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;LogicGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 881 |21cr|cudd-2.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         libcudd         %mklibname cudd 2
%define         libcudd_devel   %mklibname -d cudd

Name:           cudd
Version:        2.5.0
Release:        5
Summary:        CU Decision Diagram Package
Group:          Sciences/Mathematics
License:        BSD
URL:            http://vlsi.colorado.edu/~fabio/CUDD/
Source0:        ftp://vlsi.Colorado.EDU/pub/%{name}-%{version}.tar.gz
# This patch was sent upstream in September 2005.
# Build shared libraries as well as static archives, and incidentally unbreak
# parallel make.
Patch0:         cudd-2.5.0-sharedlib.patch
# This patch was sent upstream in September 2005.
# Fix some mixed signed/unsigned operations
Patch1:         cudd-2.5.0-signedness.patch
# This patch was sent upstream in September 2005.
# Don't ignore the return values of certain functions
Patch2:         cudd-2.5.0-retval.patch
# This patch was sent upstream in September 2005.
# Fix a bunch of "used without being initialized" warnings
Patch3:         cudd-2.5.0-init.patch
# This patch was sent upstream in September 2005.
# On 64 bit platforms, fix the size definitions of void * and long.
# Use the correct floating point structure based on endianness.
Patch4:         cudd-2.5.0-arch.patch


%description
CUDD is a package for the manipulation of Binary Decision Diagrams
(BDDs), Algebraic Decision Diagrams (ADDs) and Zero-suppressed
Binary Decision Diagrams (ZDDs).


%package        -n %{libcudd}
Summary:        Runtime libraries for %{name}
Group:          Sciences/Mathematics
Requires:       %{libcudd} = %{version}-%{release}


%description    -n %{libcudd}
Runtime libraries for %{name}.


%package        -n %{libcudd_devel}
Summary:        Header files and man pages for %{name}
Group:          Development/C++
Requires:       %{libcudd} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}


%description    -n %{libcudd_devel}
Development headers and man pages for %{name}.


%prep
%setup -q
%patch0
%patch1
%patch2
%patch3
%patch4

# Fix two doc files with DOS line endings
for f in dddmp/README.*; do
  sed 's/\r//' $f > ${f}.fixed
  touch -r $f ${f}.fixed
  mv -f ${f}.fixed $f
done


%build
# Build the shared libraries and binaries
make %{?_smp_mflags} CPPFLAGS="%{optflags}" ICFLAGS="%{optflags} -fPIC" \
  XCFLAGS="-DHAVE_IEEE_754 -DBSD"


%install
# Install the shared libraries
mkdir -p $RPM_BUILD_ROOT%{_libdir}
for slib in */*.so; do
  install -p -m 755 ${slib}.%{version} $RPM_BUILD_ROOT%{_libdir}/
  mv ${slib}.2 $RPM_BUILD_ROOT%{_libdir}
  mv ${slib} $RPM_BUILD_ROOT%{_libdir}
done

# Install the header files
mkdir -p $RPM_BUILD_ROOT%{_includedir}/%{name}
for hdr in include/*; do
  install -p -m 644 ${hdr} $RPM_BUILD_ROOT%{_includedir}/%{name}/
done

# Install the test binary
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 nanotrav/nanotrav $RPM_BUILD_ROOT%{_bindir}

# Install the test binary man page
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m 0644 nanotrav/nanotrav.1 $RPM_BUILD_ROOT%{_mandir}/man1

# Put all the documentation in one place for easy installation
mkdir doc
mv cudd/doc doc/cudd
mv dddmp/doc doc/dddmp
mv dddmp/R* doc/dddmp
mv mtr/doc doc/mtr
mv nanotrav/doc doc/nanotrav
mv nanotrav/README doc/nanotrav
mv st/doc doc/st


%files
%doc README LICENSE RELEASE.NOTES doc/nanotrav
%{_bindir}/nanotrav
%{_mandir}/man1/*


%files -n %{libcudd}
%doc README LICENSE doc/cudd doc/dddmp doc/mtr doc/st
%{_libdir}/*.so.*


%files -n %{libcudd_devel}
%doc README LICENSE doc/cudd doc/dddmp doc/mtr doc/st
%{_includedir}/%{name}
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 882 |21cr|cuegen-1.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No debug package produced
%define	debug_package %{nil}

Summary:	FLAC-compatible cuesheet generator for Linux
Name:		cuegen
Version:	1.2.2
Release:	4
License:	GPLv3+
Group:		Sound
Url:		https://sourceforge.net/projects/cuegen/
Source0:	https://sourceforge.net/projects/cuegen/files/%{name}.src.tar.gz
BuildRequires:	lazarus >= 1.2
#lazarus not available on aarch64 and other
ExclusiveArch: %{ix86} %{x86_64}

%description
CUEgen is a FLAC-compatible cuesheet generator for Linux. The FLAC format
allows cuesheets to be embedded in .flac files by storing their data in the
CUESHEET metadata block. The cuesheet itself is simply a description of the
contents of an audio CD. The cuesheet can be used in conjunction with a .flac
file to store a complete album in a single FLAC file and then retrieve
individual tracks from that file. The cuesheet may also be used by CD burning
applications to recreate an identical copy of an original audio CD from its
FLAC representation and an associated cuesheet. As such, cuesheets are of
great use in archiving, transporting and burning FLAC-encoded audio files.

%files
%doc COPYING.txt readme.txt
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -qn %{version}

# Fix wrong perms
chmod -x *.txt


%build
# See buildlinux.sh in the sources
lazbuild --bm="release generic" cuegenerator.lpi


%install
# No install script
install -D -m 755 bin/release/cuegenerator %{buildroot}%{_bindir}/cuegen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 883 |21cr|cuetools-1.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities to works with cue and TOC files
Name:		cuetools
Version:	1.4.1
Release:	2
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		https://github.com/svend/cuetools
Source0:	https://github.com/svend/cuetools/archive/%{name}-%{version}.tar.gz
Source1:	cuetag.sh
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	flex

%description
Cuetools is a set of utilities for working with cue files and TOC files.
It includes programs for conversion between the formats, file renaming based
on cue/TOC information, and track breakpoint printing.

%files
%doc COPYING NEWS README.md TODO
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

install -m 755 %{SOURCE1} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 884 |21cr|culmus-latex-0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define texmfdir %{_datadir}/texmf

Summary:	Culmus Hebrew fonts for LaTeX
Name:		culmus-latex
Version:	0.7
Release:	6
License:	GPLv2+
Group:		Publishing
Url:		http://ivritex.sourceforge.net/
Source0:	%{name}-%{version}-r1.tar.gz
Patch0:		Makefile.patch
BuildRequires:	fonts-type1-hebrew
BuildRequires:	tetex
BuildRequires:	tetex-afm
Requires:	fonts-type1-hebrew
Requires:	tetex
Requires(post,preun):	texlive-kpathsea.bin
Requires(post,preun):	texlive-tetex
Obsoletes:	ivritex < 1.2.2
BuildArch:	noarch

%description
This package provides LaTeX support for the Hebrew fonts distributed by the
Culmus Project.

%files
%doc README GNU-GPL LICENSE-Culmus examples/
%{texmfdir}/fonts/afm/public/culmus
%{texmfdir}/fonts/type1/public/culmus
%{texmfdir}/fonts/enc/dvips/culmus
%{texmfdir}/fonts/map/dvips/culmus.map
%{texmfdir}/fonts/tfm/public/culmus
%{texmfdir}/fonts/vf/public/culmus
%{texmfdir}/tex/latex/culmus
%{texmfdir}/tex/generic/0babel

%post
mktexlsr
updmap-sys --enable Map=culmus.map --quiet

%postun
mktexlsr
updmap-sys --disable culmus.map --quiet

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-r1
%patch0 -p0

%install
make DESTDIR=%{buildroot} pkginstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 885 |21cr|cuneiform-linux-1.1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cuneiform %{major}
%define devname %mklibname cuneiform -d

# datafiles must have DOS-style EOL
%define dont_fix_eol 1

Summary:	An OCR system
Name:		cuneiform-linux
Version:	1.1.0
Release:	8
License:	BSD
Group:		Text tools
Url:		https://launchpad.net/cuneiform-linux
Source0:	%{name}-%{version}.tar.bz2
Patch0:		cuneiform-1.1.0-typos.patch
Patch1:		cuneiform-1.1.0-c-assert.patch
Patch2:		cuneiform-1.1.0-graphicsmagick.patch
Patch3:		cuneiform-1.1.0-libm.patch
Patch4:		cuneiform-1.1.0-fix_buffer_overflow.patch
Patch5:		cuneiform-1.1.0-fix_buffer_overflow_2.patch
Patch6:		cuneiform-1.1.0-size4to5.patch
Patch7:		cuneiform-1.1.0-gcc6.patch
Patch8:		cuneiform-1.1.0-gcc7.patch
Patch9:		cuneiform-1.1.0-gcc11.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(ImageMagick)
#Suggests:	cuneiform-qt yagf

%description
Cuneiform is an multi-language OCR system originally developed
and open sourced by Cognitive Technologies. Cuneiform was
originally a Windows program, which was ported to Linux
by Jussi Pakkanen.

%files
%doc issues.txt *readme.rtf readme.txt
%{_bindir}/cuneiform
%{_datadir}/cuneiform/*.dat

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cuneiform OCR system shared libraries
Group:		System/Libraries

%description -n %{libname}
Cuneiform is an multi-language OCR system originally developed
and open sourced by Cognitive Technologies. Cuneiform was
originally a Windows program, which was ported to Linux
by Jussi Pakkanen.

%files -n %{libname}
%{_libdir}/*.so.%{major}*
%{_libdir}/*.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Cuneiform development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Cuneiform is an multi-language OCR system originally developed
and open sourced by Cognitive Technologies. Cuneiform was
originally a Windows program, which was ported to Linux
by Jussi Pakkanen.

This package contains files required only for development purpose.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/cuneiform.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -fcommon
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 886 |21cr|cuneiform-qt-0.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI frontend for Cuneiform OCR
Name:		cuneiform-qt
Version:	0.1.4
Release:	2
License:	GPLv3+
Group:		Text tools
URL:		https://github.com/sibskull/cuneiform-qt
Source0:	https://github.com/sibskull/cuneiform-qt/archive/%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	cuneiform-linux
Requires:	qt5-qttranslations

%description
This application is GUI frontend for Cuneiform (OCR system originally
developed and open sourced by Cognitive technologies). It allow to open
scanned image, view this one in preview pane, recornize text via Cuneiform
and save result in HTML file.

%files
%doc AUTHORS README.md TODO.md
%{_bindir}/%{name}
%{_datadir}/apps/%{name}/*.qm
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5
%make

%install
%makeinstall_qt

# Icons
for i in '48x48' '32x32' '16x16'; do
mkdir -p "%{buildroot}%{_iconsdir}/hicolor/${i}/apps/"
convert -resize "$i" icons/%{name}.png "%{buildroot}%{_iconsdir}/hicolor/${i}/apps/%{name}.png"
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 887 |21cr|cups-drivers-foo2kyo-0.1.0a-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname foo2kyo

Summary:	Printer and scanner drivers for the Kyocera Mita FS-1016 MFP under Linux
Name:		cups-drivers-%{rname}
Version:	0.1.0a
Release:	20
Group:		System/Printing
License:	GPL
URL:		http://sourceforge.net/projects/kyo-fs1016mfp/
Source0:	http://downloads.sourceforge.net/kyo-fs1016mfp/%{rname}-%{version}.tar.bz2
Source1:	foo2kyo-cups.tar.bz2
Requires:	cups
Requires:	foomatic-db-engine
BuildRequires:	jbig-devel

%description
Printer and scanner drivers for the Kyocera Mita FS-1016 MFP under Linux.

This package contains foomatic and cups Drivers for the Kyocera Mita FS-1016
MFP.

%prep

%setup -q -n %{rname} -a1

perl -p -i -e 's/Kyocera-Mita-FS-1016/Kyocera-FS-1016/g' foomatic-db/driver/foo2kyo.xml

# fix attribs
chmod 644 COPYING

%build

gcc %{optflags} %{ldflags} -o foo2kyo foo2kyo.c -ljbig

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/foomatic/db/source/{driver,opt,printer}
install -d %{buildroot}%{_datadir}/cups/model/%{rname}

install -m0755 foo2kyo %{buildroot}%{_bindir}
install -m0755 foo2kyo-wrapper %{buildroot}%{_bindir}

for dir in driver opt printer; do
    install -c -m0644 foomatic-db/$dir/*.xml %{buildroot}%{_datadir}/foomatic/db/source/$dir/
done

install -m0644 ppd/Kyocera-FS-1016MFP-foo2kyo.ppd %{buildroot}%{_datadir}/cups/model/%{rname}/

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%license COPYING
%attr(0755,root,root) %{_bindir}/foo2kyo
%attr(0755,root,root) %{_bindir}/foo2kyo-wrapper
%attr(0644,root,root) %{_datadir}/foomatic/db/source/opt/*.xml
%attr(0644,root,root) %{_datadir}/foomatic/db/source/printer/*.xml
%attr(0644,root,root) %{_datadir}/foomatic/db/source/driver/*.xml
%attr(0755,root,root) %dir %{_datadir}/cups/model/%{rname}
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Kyocera-FS-1016MFP-foo2kyo.ppd*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 888 |21cr|cups-drivers-lxx74-0.8.4.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname lxx74

Summary:	A Linux Printer Driver for Lexmark X74 All In One
Name:		cups-drivers-%{rname}
Version:	0.8.4.2
Release:	17
License:	GPL
Group:		System/Printing
URL:		http://home.online.no/~enrio/
Source0:	http://home.online.no/~enrio/%{rname}-cups-%{version}.tar.gz
Requires:	cups
BuildRequires:	cups-devel
BuildRequires:	cups
Conflicts:	cups-drivers = 2007
Conflicts:	printer-utils = 2007
Conflicts:	printer-filters = 2007

%description
A Linux Printer Driver for Lexmark X74 All In One

The driver also works with:
 o Lexmark X75

The driver also should work with:
 o Compaq  - IJ670 Series, Inkjet Printer
 o Lexmark - Inkjet 4104, Inkjet Printer, Lexmark X76, Lexmark Z13,
             Lexmark Z14, Lexmark Z23-Z33, Lexmark Z24-Z34, Lexmark Z25-Z35
 o Samsung - MJC-940_2200_530, MJC-950_2130_530

This package contains CUPS drivers (PPD) for the following printers:

 o Compaq IJ670
 o Compaq Inkjet Printer
 o Lexmark All In One
 o Lexmark Inkjet Printer
 o Lexmark X74
 o Lexmark X75
 o Lexmark X76
 o Lexmark Z13
 o Lexmark Z14
 o Lexmark Z23
 o Lexmark Z24
 o Lexmark Z25
 o Lexmark Z33
 o Lexmark Z34
 o Lexmark Z35
 o Samsung MJC-2130
 o Samsung MJC-2200
 o Samsung MJC-530
 o Samsung MJC-940
 o Samsung MJC-950
 o Lexmark All In One

%prep

%setup -q -n %{rname}-cups-%{version}

%build
perl -p -i -e "s|gcc|gcc %{optflags} %{ldflags}|g" Makefile
make clean
%make

gunzip lxx74.ppd.gz
cp lxx74.ppd Compaq-IJ670-lxx74.ppd
perl -p -i -e 's/All In One/IJ670/gi' Compaq-IJ670-lxx74.ppd
cp lxx74.ppd Compaq-Inkjet_Printer-lxx74.ppd
perl -p -i -e 's/All In One/Inkjet Printer/gi' Compaq-Inkjet_Printer-lxx74.ppd
perl -p -i -e 's/Lexmark/Compaq/gi' Compaq-*-lxx74.ppd
cp lxx74.ppd Lexmark-X74-lxx74.ppd
perl -p -i -e 's/All In One/X74/gi' Lexmark-X74-lxx74.ppd
cp lxx74.ppd Lexmark-X75-lxx74.ppd
perl -p -i -e 's/All In One/X75/gi' Lexmark-X75-lxx74.ppd
cp lxx74.ppd Lexmark-X76-lxx74.ppd
perl -p -i -e 's/All In One/X76/gi' Lexmark-X76-lxx74.ppd
cp lxx74.ppd Lexmark-Z13-lxx74.ppd
perl -p -i -e 's/All In One/Z13/gi' Lexmark-Z13-lxx74.ppd
cp lxx74.ppd Lexmark-Z14-lxx74.ppd
perl -p -i -e 's/All In One/Z14/gi' Lexmark-Z14-lxx74.ppd
cp lxx74.ppd Lexmark-Z23-lxx74.ppd
perl -p -i -e 's/All In One/Z23/gi' Lexmark-Z23-lxx74.ppd
cp lxx74.ppd Lexmark-Z33-lxx74.ppd
perl -p -i -e 's/All In One/Z33/gi' Lexmark-Z33-lxx74.ppd
cp lxx74.ppd Lexmark-Z24-lxx74.ppd
perl -p -i -e 's/All In One/Z24/gi' Lexmark-Z24-lxx74.ppd
cp lxx74.ppd Lexmark-Z34-lxx74.ppd
perl -p -i -e 's/All In One/Z34/gi' Lexmark-Z34-lxx74.ppd
cp lxx74.ppd Lexmark-Z25-lxx74.ppd
perl -p -i -e 's/All In One/Z25/gi' Lexmark-Z25-lxx74.ppd
cp lxx74.ppd Lexmark-Z35-lxx74.ppd
perl -p -i -e 's/All In One/Z35/gi' Lexmark-Z35-lxx74.ppd
cp lxx74.ppd Lexmark-Inkjet_Printer-lxx74.ppd
perl -p -i -e 's/All In One/Inkjet Printer/gi' Lexmark-Inkjet_Printer-lxx74.ppd
cp lxx74.ppd Lexmark-InkJet_4104-lxx74.ppd
perl -p -i -e 's/All In One/Inkjet 4104/gi' Lexmark-Inkjet_4104-lxx74.ppd
cp lxx74.ppd Samsung-MJC-940-lxx74.ppd
perl -p -i -e 's/All In One/MJC-940/gi' Samsung-MJC-940-lxx74.ppd
cp lxx74.ppd Samsung-MJC-950-lxx74.ppd
perl -p -i -e 's/All In One/MJC-950/gi' Samsung-MJC-950-lxx74.ppd
cp lxx74.ppd Samsung-MJC-2200-lxx74.ppd
perl -p -i -e 's/All In One/MJC-2200/gi' Samsung-MJC-2200-lxx74.ppd
cp lxx74.ppd Samsung-MJC-2130-lxx74.ppd
perl -p -i -e 's/All In One/MJC-2130/gi' Samsung-MJC-2130-lxx74.ppd
cp lxx74.ppd Samsung-MJC-530-lxx74.ppd
perl -p -i -e 's/All In One/MJC-530/gi' Samsung-MJC-530-lxx74.ppd
perl -p -i -e 's/Lexmark/Samsung/gi' Samsung-*-lxx74.ppd
gzip -9 *.ppd

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}/cups
install -d %{buildroot}%{_prefix}/lib/cups/filter
install -d %{buildroot}%{_datadir}/cups/data
install -d %{buildroot}%{_datadir}/cups/model/%{rname}

install -m0755 rasterto%{rname} %{buildroot}%{_prefix}/lib/cups/filter/rasterto%{rname}.bin
install -m0644 self-portrait.out.gz %{buildroot}%{_datadir}/cups/data/self-portrait.out.gz

cat << EOF > %{buildroot}%{_prefix}/lib/cups/filter/rasterto%{rname}
#!/bin/bash
export self_portrait="%{_datadir}/cups/data/self-portrait.out.gz"
exec %{_prefix}/lib/cups/filter/rasterto%{rname}.bin "\$@"
EOF
chmod 755 %{buildroot}%{_prefix}/lib/cups/filter/rasterto%{rname}

install -m0644 %{rname}.types %{buildroot}%{_sysconfdir}/cups/
install -m0644 %{rname}.convs %{buildroot}%{_sysconfdir}/cups/
install -m0644 *.ppd* %{buildroot}%{_datadir}/cups/model/%{rname}/

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cups/%{rname}.convs
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cups/%{rname}.types
%attr(0755,root,root) %{_prefix}/lib/cups/filter/rasterto%{rname}.bin
%attr(0755,root,root) %{_prefix}/lib/cups/filter/rasterto%{rname}
%attr(0644,root,root) %{_datadir}/cups/data/self-portrait.out*
%attr(0755,root,root) %dir %{_datadir}/cups/model/%{rname}
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Compaq-IJ670-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Compaq-Inkjet_Printer-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-InkJet_4104-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Inkjet_Printer-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-X74-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-X75-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-X76-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Z13-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Z14-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Z23-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Z24-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Z25-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Z33-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Z34-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Lexmark-Z35-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Samsung-MJC-2130-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Samsung-MJC-2200-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Samsung-MJC-530-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Samsung-MJC-940-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Samsung-MJC-950-%{rname}.ppd*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 889 |21cr|cups-drivers-lz11-1.2-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname lz11

Summary:	Printer Drivers for the Lexmark Z11 and Compaq IJ300 printer
Name:		cups-drivers-%{rname}
Version:	1.2
Release:	20
License:	GPLv2+
Group:		System/Printing
Url:		http://sourceforge.net/projects/lz11/
Source0:	http://easynews.dl.sourceforge.net/sourceforge/lz11/lz11-V2-%{version}.tar.gz
Patch0:		lz11-V2-1.2-format_not_a_string_literal_and_no_format_arguments.diff

%description
A Linux printer driver/filter for the Lexmark Z11 and the Compaq IJ300 printer,
supporting color and b/w printing, variable page size and more.

This package contains CUPS drivers (PPD) for the following printers:

 o Compaq IJ300
 o Lexmark Z11

%files
%defattr(0644,root,root,0755)
%doc ChangeLog README release-notes-*
%attr(0644,root,sys) %config(noreplace) %{_sysconfdir}/LexmarkZ11/lz11.conf
%attr(0755,root,root) %{_bindir}/*
%attr(0644,root,root) %{_datadir}/cups/model/Lexmark-Z11-lz11-V2.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/Compaq-IJ300-lz11-V2.ppd*

#----------------------------------------------------------------------------

%prep
%setup -qn lz11-V2-%{version}
%patch0 -p0

%build
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_sysconfdir}/LexmarkZ11
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/cups/model

install -m0755 cZ11-V2 %{buildroot}%{_bindir}/
install -m0755 cZ11 %{buildroot}%{_bindir}/
install -m0755 cZ11-bit* %{buildroot}%{_bindir}/
install -m0755 lz11.[^c]* %{buildroot}%{_bindir}/
install -m0644 lz11.conf %{buildroot}/etc/LexmarkZ11/
install -m0644 *.ppd %{buildroot}%{_datadir}/cups/model/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 890 |21cr|cups-drivers-m2300w-0.51-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname m2300w

Summary:	Konica Minolta magicolor 2300W and 2400W Printer Driver
Name:		cups-drivers-%{rname}
Version:	0.51
Release:	21
License:	GPLv2+
Group:		System/Printing
Url:		http://sourceforge.net/projects/m2300w/
Source0:	http://downloads.sourceforge.net/m2300w/%{rname}-%{version}.tar.gz
Patch0:		m2300w-0.3-noppdbuild.patch
Patch1:		m2300w-0.2-ppc-build-fix.patch
Patch2:		m2300w-0.51-LDFLAGS.diff
Requires:	cups
Requires:	foomatic-db-engine

%description
The m2300w driver is a Linux printer driver for the Konica Minolta magicolor
2300W and 2400W color laser printers. It is intended for being used in
conjunction with ghostscript, foomatic and CUPS.

This package contains CUPS drivers (PPD) for the following printers:

 o Minolta magicolor 2300W
 o Minolta magicolor 2400W

%files
%doc COPYING INSTALL README README.ghostscript
%attr(0755,root,root) %{_bindir}/%{rname}
%attr(0755,root,root) %{_bindir}/%{rname}-wrapper
%attr(0755,root,root) %{_bindir}/m2400w
%{_datadir}/%{rname}
%attr(0644,root,root) %{_datadir}/foomatic/db/source/opt/*.xml
%attr(0644,root,root) %{_datadir}/foomatic/db/source/printer/*.xml
%attr(0644,root,root) %{_datadir}/foomatic/db/source/driver/*.xml
%attr(0755,root,root) %dir %{_datadir}/cups/model/%{rname}
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/magicolor_2300W-%{rname}.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/magicolor_2400W-m2400w.ppd*

#----------------------------------------------------------------------------

%prep
%setup -qn %{rname}-%{version}
%patch0 -p0
%patch1 -p0 -b .ppc
%patch2 -p0

%build
rm -f configure
autoconf
%configure

# Omit the installation of the PPD in the Makefile, we use the Foomatic
# XML data
perl -p -i -e "s/src psfiles foomatic ppd/src psfiles/" Makefile
%make

%install
install -d %{buildroot}%{_datadir}/foomatic/db/source/{driver,opt,printer}
install -d %{buildroot}%{_datadir}/cups/model/%{rname}

%makeinstall INSTROOT=%{buildroot}

for dir in driver opt printer; do
    install -c -m 644 foomatic/$dir/*.xml %{buildroot}%{_datadir}/foomatic/db/source/$dir/
done

install -m0644 ppd/*.ppd %{buildroot}%{_datadir}/cups/model/%{rname}/

# cleanup
rm -rf %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 891 |21cr|cups-drivers-magicolor2530dl-2.1.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname magicolor2530dl

Summary:	Cups Driver for KONICA MINOLTA magicolor 2530 DL
Name:		cups-drivers-%{rname}
Version:	2.1.1
Release:	20
License:	GPL
Group:		System/Printing
URL:		http://printer.konicaminolta.net/
Source0:	magicolor2530DL-%{version}.tar.gz
Patch0:		magicolor2430DL-shared_system_libs.diff
Patch1:         magicolor2530DL-2.1.1-automake-1.13.patch
Patch2:         magicolor2530DL-2.1.1-cups-2.2.patch
BuildRequires:	automake
BuildRequires:	cups-devel
BuildRequires:	jbig-devel
BuildRequires:	lcms-devel
Requires:	cups

%description
This package contains KONICA MINOLTA CUPS LavaFlow stream(PCL-like) filter
rastertokm2530dl and the PPD file. The filter converts CUPS raster data to
KONICA MINOLTA LavaFlow stream.

This package contains CUPS drivers (PPD) for the following printers:

 o KONICA MINOLTA magicolor 2530 DL printer

%prep

%setup -q -n magicolor2530DL-%{version}
%patch0 -p0
%patch1 -p1
%patch2 -p1

# Fix copy of CUPS headers in kmlf.h
perl -p -i -e 's:\bcups_strlcpy:_cups_strlcpy:g' src/kmlf.h

# Remove asterisks from group names in PPD file
gzip -dc src/km_en.ppd.gz | perl -p -e 's/(Group:\s+)\*/$1/g' | gzip > src/km_en.tmp.ppd.gz && mv -f src/km_en.tmp.ppd.gz src/km_en.ppd.gz

# Determine the directory for the CUPS filters using the correct method
perl -p -i -e 's:(CUPS_SERVERBIN=)"\$libdir/cups":$1`cups-config --serverbin`:' configure*

%build
rm -f configure
libtoolize --force --copy; aclocal; automake --add-missing --copy --foreign; autoconf

%configure

%make

%install

%makeinstall_std

%clean

%files
%doc AUTHORS COPYING ChangeLog
%{_prefix}/lib/cups/filter/rastertokm2530dl
%{_datadir}/KONICA_MINOLTA/mc2530DL
%attr(0644,root,root) %{_datadir}/cups/model/KONICA_MINOLTA/km2530dl.ppd*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 892 |21cr|cups-drivers-pegg-0.23-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CUPS printer drivers for Casio USB label printers
Name:		cups-drivers-pegg
Version:	0.23
Release:	21
License:	GPLv2+
Group:		System/Printing
Url:		http://www.tu-harburg.de/~soda0231/pegg/pegg.html
# the http://www.tu-harburg.de/~soda0231/pegg/files/ resource is gone
Source0:	pegg-0.23.tar.bz2
Source1:	xbm2crw-0.4.tar.bz2
Source2:	cups2pegg-0.21a.tar.bz2
Source3:	pegg_el-0.11.tar.bz2
Patch0:		cups-drivers-pegg-0.23-LDFLAGS.diff
BuildRequires:	pkgconfig(libusb)
Requires:	cups
Requires:	imagemagick

%description
CUPS printer drivers for  Casio USB label printers.

This package contains CUPS drivers (PPD) for the following printers:

 o CASIO Computer CO. LTD. EL-700 EL-5000W
 o CASIO Computer CO. LTD. KL-P1000 KL-E11
 o CASIO Computer CO. LTD. KP-C10 KP-C50

%files
%defattr(0644,root,root,0755)
%doc pegg-*/CHANGELOG pegg-*/README pegg-*/LICENSE pegg-*/INSTALL installed_docs/*
%attr(0755,root,root) %{_bindir}/pegg
%attr(0755,root,root) %{_bindir}/pegg_el
%attr(0755,root,root) %{_bindir}/xbm2crw
%attr(0755,root,root) %{_prefix}/lib/cups/backend/cups2pegg
%attr(0755,root,root) %dir %{_datadir}/cups/model/pegg
%attr(0644,root,root) %{_datadir}/cups/model/pegg/*.ppd*
%attr(0644,root,root) %{_mandir}/man1/pegg*.1*

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -n %{name}-%{version} -a0 -a1 -a2 -a3
%patch0 -p1

# gunzip the man pages
find -name "*.1.gz" | xargs gunzip

%build
%make -C pegg-* CFLAGS="%{optflags}" LIB_PATH="%{_libdir}" LDFLAGS="%{ldflags}"

%make -C pegg_el-*/src CFLAGS="%{optflags}" LIB_PATH="%{_libdir}" LDFLAGS="%{ldflags}"

# Suppress logging in cups2pegg backend
perl -p -i -e "s:/var/log/cups/cups2pegg.log:/dev/null:" cups2pegg*/src/cups2pegg

# Fix PPD file
perl -p -i -e 's/^(\*ModelName:).*$/$1 "CASIO Computer CO. LTD. EL-700 EL-5000W"/' cups2pegg-*/src/ppd/casio_el.ppd
perl -p -i -e 's/^(\*ShortNickName:).*$/$1 "CASIO EL-700 EL-5000W"/' cups2pegg-*/src/ppd/casio_el.ppd
perl -p -i -e 's/^(\*ModelName:).*$/$1 "CASIO Computer CO. LTD. KL-P1000 KL-E11"/' cups2pegg-*/src/ppd/casio_kl.ppd
perl -p -i -e 's/^(\*ShortNickName:).*$/$1 "CASIO KL-P1000 KL-E11"/' cups2pegg-*/src/ppd/casio_kl.ppd
perl -p -i -e 's/: Letter/: 128_64/' cups2pegg-*/src/ppd/casio_kl.ppd
perl -p -i -e 's/^(\*ModelName:).*$/$1 "CASIO Computer CO. LTD. KP-C10 KP-C50"/' cups2pegg-*/src/ppd/casio_kp.ppd
perl -p -i -e 's/^(\*ShortNickName:).*$/$1 "CASIO KP-C10 KP-C50"/' cups2pegg-*/src/ppd/casio_kp.ppd
perl -p -i -e 's/: Letter/: 512_64/' cups2pegg-*/src/ppd/casio_kp.ppd

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_prefix}/lib/cups/backend
install -d %{buildroot}%{_datadir}/cups/model/pegg
install -d %{buildroot}%{_mandir}/man1

install -m0755 pegg-*/pegg %{buildroot}%{_bindir}/
install -m0755 pegg_el-*/src/pegg_el %{buildroot}%{_bindir}/
install -m0755 xbm2crw*/xbm2crw %{buildroot}%{_bindir}/
install -m0755 cups2pegg*/src/cups2pegg %{buildroot}%{_prefix}/lib/cups/backend/
install -m0644 pegg-*/pegg.1 %{buildroot}%{_mandir}/man1/
install -m0644 pegg_el-*/src/pegg_el.1 %{buildroot}%{_mandir}/man1/
install -m0644 cups2pegg-*/src/ppd/*.ppd* %{buildroot}%{_datadir}/cups/model/pegg/

rm -rf installed_docs
mkdir -p installed_docs/{pegg_el,xbm2crw,cups2pegg}
cp pegg_el-*/README pegg_el-*/TODO pegg_el-*/INSTALL installed_docs/pegg_el/
cp xbm2crw-*/README installed_docs/xbm2crw/
cp cups2pegg-*/*.png cups2pegg-*/*.html installed_docs/cups2pegg/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 893 |21cr|cups-pdf-3.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Extension for creating pdf-Files with CUPS
Name:		cups-pdf
Version:	3.0.1
Release:	3
License:	GPLv2+
Group:		System/Printing
Url:		http://cip.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/
Source0:	http://www.physik.uni-wuerzburg.de/~vrbehr/cups-pdf/src/%{name}_%{version}.tar.gz
Patch1:		0001-PDF-will-be-expanded-to-the-home-directory.patch
# https://bugzilla.altlinux.org/41587
Patch2:		0002-Fix-empty-out-file.patch
BuildRequires:	cups-devel
Requires:	cups
Requires:	ghostscript
Requires(post,postun):	cups-common

# These are the defaults paths defined in config.h
# CUPS-PDF spool directory
%define CPSPOOL   %{_localstatedir}/spool/cups-pdf/SPOOL
# CUPS-PDF output directory
%define CPOUT     %{_localstatedir}/spool/cups-pdf
# CUPS-PDF log directory
%define CPLOG     %{_localstatedir}/log/cups
# CUPS-PDF cups-pdf.conf config file
%define ETCCUPS   %(cups-config --serverroot 2>/dev/null || echo %{_sysconfdir}/cups)
# Additional path to backend directory
%define CPBACKEND %(cups-config --serverbin  2>/dev/null || echo %{_libdir}/cups)/backend

%description
"cups-pdf" is a backend script for use with CUPS - the "Common UNIX Printing
System" (see more for CUPS under http://www.cups.org/).
"cups-pdf" uses the ghostscript pdfwrite device to produce PDF Files.

This version has been modified to store the PDF files on the Desktop of the 
user. This behavior can be changed by editing the configuration file.

%files
%doc ChangeLog README
%dir %{CPSPOOL}
%dir %{CPOUT}
%attr(700, root, root) %{CPBACKEND}/cups-pdf
%config(noreplace) %{ETCCUPS}/cups-pdf.conf
%{_datadir}/cups/model/CUPS-PDF_opt.ppd
%{_datadir}/cups/model/CUPS-PDF_noopt.ppd

%post
# First install : create the printer if cupsd is running
if systemctl -q is-active cups 2>/dev/null
then
    /usr/sbin/lpadmin -p Cups-PDF -v cups-pdf:/ -m CUPS-PDF_opt.ppd -E || :
fi

%postun
if [ "$1" -eq "0" ]; then
    # Delete the printer
    /usr/sbin/lpadmin -x Cups-PDF || :
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
pushd src
gcc %{optflags} -lcups -o cups-pdf cups-pdf.c %{ldflags}
popd

%install
mkdir -p %{buildroot}%{CPBACKEND}
mkdir -p %{buildroot}%{CPSPOOL}
mkdir -p %{buildroot}%{CPOUT}
mkdir -p %{buildroot}%{CPLOG}
mkdir -p %{buildroot}%{CPBACKEND}
mkdir -p %{buildroot}%{ETCCUPS}
mkdir -p %{buildroot}%{_datadir}/cups/model/
install -m644 extra/CUPS-PDF_opt.ppd %{buildroot}%{_datadir}/cups/model/
install -m644 extra/CUPS-PDF_noopt.ppd %{buildroot}%{_datadir}/cups/model/
install -m644 extra/cups-pdf.conf %{buildroot}%{ETCCUPS}
install -m700 src/cups-pdf %{buildroot}%{CPBACKEND}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 894 |21cr|CuraEngine-4.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Engine for processing 3D models into G-code instructions for 3D printers
Name:		CuraEngine
Version:	4.13.2
Release:	1
Epoch:		1
License:	AGPLv3+
Group:		Development/Other
Url:		https://github.com/Ultimaker/%{name}
Source0:	%{url}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		CuraEngine-static-libstdcpp.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gomp-devel
BuildRequires:	stb-devel
BuildRequires:	libarcus-devel = %{version}
BuildRequires:	polyclipping-devel >= 6.1.2
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(RapidJSON)

%description
%{name} is a C++ console application for 3D printing G-code generation. It
has been made as a better and faster alternative to the old Skeinforge engine.

This is just a console application for G-code generation. For a full graphical
application look at cura with is the graphical frontend for %{name}.

%files
%doc LICENSE README.md
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# bundled libraries
rm -rf libs
sed -i 's|#include <clipper/clipper.hpp>|#include <polyclipping/clipper.hpp>|' src/utils/*.h src/*.cpp

# The -DCURA_ENGINE_VERSION does not work, so we sed-change the default value
sed -i 's/"DEV"/"%{version}"/' src/settings/Settings.h

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DCURA_ENGINE_VERSION:STRING=%{version} \
	-DUSE_SYSTEM_LIBS=ON \
	-Wno-dev \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

%check
%{buildroot}%{_bindir}/%{name} help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 895 |21cr|cura-profile-3dq-fullheat-1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cura profile for the 3DQ Fullheat 3D printer
Summary(ru_RU.UTF-8):	Профиль Cura для 3D-принтера 3DQ Fullheat
Name:		cura-profile-3dq-fullheat
Version:	1
Release:	2
License:	Distributable
Group:		System/Printing
Url:		https://www.3dquality.ru/catalog/product/3d-printer-fullheat/
Source10:	3DQ_Fullheat.def.json
Source11:	3DQ_Fullheat_extruder_0.def.json
Source12:	Fullheat_normal.inst.cfg
BuildArch:	noarch
Requires:	cura
Supplements:	cura

%description
Cura profile for the 3DQ Fullheat 3D printer.

%description -l ru_RU.UTF-8
Профиль Cura для 3D-принтера 3DQ Fullheat.

%files
%dir %{_datadir}/cura/resources/quality/3DQ_Fullheat
%{_datadir}/cura/resources/quality/3DQ_Fullheat/Fullheat_normal.inst.cfg
%{_datadir}/cura/resources/definitions/3DQ_Fullheat.def.json
%{_datadir}/cura/resources/extruders/3DQ_Fullheat_extruder_0.def.json

#------------------------------------------------------------------

%prep
%setup -T -c

%install
mkdir -p %{buildroot}%{_datadir}/cura/resources/quality/3DQ_Fullheat
install -m644 %{SOURCE12} %{buildroot}%{_datadir}/cura/resources/quality/3DQ_Fullheat
mkdir -p %{buildroot}%{_datadir}/cura/resources/definitions
install -m644 %{SOURCE10} %{buildroot}%{_datadir}/cura/resources/definitions
mkdir -p %{buildroot}%{_datadir}/cura/resources/extruders
install -m644 %{SOURCE11} %{buildroot}%{_datadir}/cura/resources/extruders

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 896 |21cr|curlew-0.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	Curlew

Summary:	Easy to use and Free Multimedia Converter for Linux
Name:		curlew
Version:	0.2.5
Release:	1
License:	Waqf
Group:		Sound
Url:		https://github.com/chamfay/Curlew
# Really an unreleased 0.2.5 version
Source0:	https://github.com/chamfay/Curlew/archive/refs/heads/%{oname}-master.zip
BuildArch:	noarch
BuildRequires:	intltool
BuildRequires:	librsvg
BuildRequires:	python3-devel
BuildRequires:	python3-gi >= 3.12
BuildRequires:	python3-dbus
Requires:	ffmpeg
Requires:	gnome-icon-theme-symbolic
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-good
Requires:	mediainfo
Requires:	mencoder
Requires:	python3 >= 3.3
Requires:	python3-gi >= 3.12
Requires:	python3-dbus
Requires:	xdg-utils

%description
%{summary}

%files -f %{name}.lang
%doc AUTHORS changelog LICENSE* README THANKS
%{_bindir}/%{name}
%{py3_puresitedir}/%{name}-%{version}-py*.egg-info
%{_datadir}/%{name}/done.ogg
%{_datadir}/%{name}/formats.cfg
%{_datadir}/%{name}/modules
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/*/*/*/%{name}.png
%{_datadir}/icons/*/*/*/%{name}.svg
%{_datadir}/pixmaps/%{name}.svg

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-master


%build
%py3_build
chmod 644 %{name}.desktop


%install
%py3_install

# We have our macro for docs
rm -rf %{buildroot}/doc/curlew

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 897 |21cr|curlftpfs-0.9.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name curlftpfs
%define version 0.9.2
%define release 7

Name:		%name
Version:	%version
Release:	%release
Url:		http://curlftpfs.sourceforge.net/
Summary:	Filesystem for accessing FTP hosts based on FUSE and libcurl
License:	GPL+
Group:		Networking/Other
BuildRequires:	curl-devel, glib2-devel
BuildRequires:	pkgconfig(fuse)
Requires:	fuse
Source:		%{name}-%{version}.tar.gz
%description
CurlFtpFS is a filesystem for accessing FTP hosts based on FUSE and libcurl.

CurlFtpFS diferentiates itself from other FTP filesystems because it features:

    * SSLv3 and TLSv1 support
    * connecting through tunneling HTTP proxies
    * automatically reconnection if the server times out
    * transform absolute symlinks to point back into the ftp file system

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

%clean
%{__rm} -Rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 898 |21cr|curl-loader-0.53-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A HTTP(S)/FTP(S) application load stress testing tool
Name:		curl-loader
Version:	0.53
Release:	5
License:	GPLv2
Group:		System/Servers
URL:		http://curl-loader.sourceforge.net/
Source0:	http://sunet.dl.sourceforge.net/project/curl-loader/curl-loader/%{name}-%{version}/%{name}-%{version}.tar.bz2
Patch0:		curl-loader-0.53-link.patch
Patch1:		curl-loader-0.50-hack.diff
BuildRequires:	curl-devel >= 7.19.6
BuildRequires:	libevent-devel >= 1.4.11
BuildRequires:	openssl-devel

%description
curl-loader is an open-source community tool written in C-language, simulating 
application load and application behavior of thousands and tens of thousand 
HTTP/HTTPS and FTP/FTPS clients, each with its own source IP-address.

%prep
%setup -q
%patch0 -p0 -b .link
%patch1 -p0

%build

%make OPT_FLAGS="%{optflags}" INCDIR="-I. -I%{_includedir}/curl -I%{_includedir}/openssl" LDFLAGS="%{ldflags}"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_mandir}/man5

install -m0755 %{name} %{buildroot}%{_sbindir}/
install -m0644 doc/curl-loader.1 %{buildroot}%{_mandir}/man1/
install -m0644 doc/curl-loader-config.5 %{buildroot}%{_mandir}/man5/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc doc/COPYING doc/PROBLEM-REPORTING doc/QUICK-START doc/README doc/THANKS doc/TODO conf-examples
%{_sbindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 899 |21cr|cursor_themes-0.0.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Collection of cursor themes for XFree86 4.3 or later
Name:		cursor_themes
Version:	0.0.5
Release:	11
License:	GPL
Url:		http://kde-look.org
BuildArch:	noarch
Group:		Graphical desktop/Other
Source:		choose_cursor
Source1:        4805-RedDot.tar.bz2
Source2:        4858-YCursors.tar.bz2
Source3:        4975-GKD-XCursors.tar.bz2
Source5:        5076-corp.tar.bz2
Source6:        5077-innerspace.tar.bz2
Source7:        5078-vox.tar.bz2
%define		bexos_ver		0.4
Source8:        5211-bexos_color_%{bexos_ver}.tar.bz2
Source9:        5238-3dwhite.tar.bz2
Source10:       5265-3Dcursors-0.2.tar.bz2
Source11:       5271-3dcolor.tar.bz2
Source12:       5359-tuxcursor02.tar.gz
Source13:       5376-tuxcute.tar.bz2
Source14:       5376-tuxresize.tar.bz2
Source15:       5475-yellowdot.tar.bz2
Source16:       5507-Golden-XCursors-3D-0.8.tar.bz2
Source17:       5532-BlueGlass-XCursors-3D-0.4.tar.bz2
Source18:       5533-Silver-XCursors-3D-0.4.tar.bz2
Source19:	5600-redhat9cursor.tar.bz2
Source20:	5605-cursor_mix.tar.bz2
Source21:	5833-aquadiz.tar.bz2
Source22:	6132-SignalOS-Cursors-0.0.2.tar.bz2
Source23:	6240-crystalcursors.tar.bz2
Source24:	6277-bean.tar.bz2
Source25:	6336-flat_white_cursor_0.3.tar.bz2
Source26:	6504-flat_black_cursor_0.3.tar.bz2
Source27:	6550-Jimmac.tar.bz2
Source28:	macoscursors-default-0.2.tar.bz2
Source29:	tuxsplash.tar.bz2
Source30:	10394-justwhite-0.2.tar.bz2
Source31:	10500-justgreen-0.1a.tar.bz2
Source32:	10163-justblue-0.21.tar.bz2
Source33:	10211-daliesque.tar.bz2
Source34:	11313-pearlgrey-1.0.tar.bz2

Requires:	gtkdialogs
Requires:	XFree86 >= 4.3
BuildRequires:	imagemagick XFree86 >= 4.3
Prefix:		%{_prefix}

%description
This package contains all the freely distributeable cursor themes for XFree86
4.3 or newer currently available from http://kde-look.org, along with a 
simple script (choose_cursor) which will allow you to easily choose a 
cursor theme.

%prep
#rm -rf $RPM_BUILD_ROOT
%setup -T -c -q -a 1 -a 2 -a 3 -a 5 -a 6 -a 7 -a 8 -a 9 -a 10 -a 11 -a 12 -a 13 -a 14 -a 15 -a 16 -a 17 -a 18 -a 20 -a 21 -a 22 -a 23 -a 24 -a 27 -a 28 -a 29 -a 30 -a 31 -a 32 -a 33 -a 34
tar -xzf tuxshadow.tar.gz
mv tuxcursor tuxshadow
tar -xzf tuxcursor.tar.gz
mv tuxcursor tuxcursor.orig
tar xjf %{SOURCE13}; mv tuxcursor tuxcute
tar xjf %{SOURCE14}; mv tuxcursor tuxresize
mv tuxcursor.orig tuxcursor
tar xjf %{SOURCE19}; mkdir redhat;mv cursors redhat
tar xjf %{SOURCE25}; mkdir flat_white;mv cursors flat_white
tar xjf %{SOURCE26}; mkdir flat_black;mv cursors flat_black

%build
rm -Rf default
#pushd reddot;make;popd
mkdir -p GKD-XCursors/cursors;cp -f GKD-XCursors/* GKD-XCursors/cursors 2>/dev/null||:
rm -f GKD-XCursors/cursors/*.png
mkdir -p bexos_color_%{bexos_ver}/bexos_color/cursors;cp -f bexos_color_%{bexos_ver}/* bexos_color_%{bexos_ver}/bexos_color/cursors 2>/dev/null||:
#pushd maccursors; rm -f crosshair cross_reverse hand1 hand2;popd

%install
rm -Rf %{buildroot}
mkdir -p %{buildroot}/%{_bindir}
install -m755 %{SOURCE0} %{buildroot}/%{_bindir}


#Menu
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Name=Cursor Themes
Comment=Choose a Cursor Theme
Exec=choose_cursor
Icon=%{name}
Terminal=false
Type=Application
Categories=Settings;DesktopSettings;
EOF

mkdir -p %{buildroot}/{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
install -m644 RedDotSource/sources/hand.png %{buildroot}/%{_iconsdir}/%{name}.png
convert -resize 16x16 RedDotSource/sources/hand.png %{buildroot}/%{_miconsdir}/%{name}.png
convert -resize 48x48 RedDotSource/sources/hand.png %{buildroot}/%{_liconsdir}/%{name}.png
pwd
CURSORS=`find . -type d -name 'cursors'`
echo -e "\n\n\n\t\tFound the following cursors:\n $CURSORS\n\n\n"
set +x
for CURSOR in $CURSORS
	do CURSORNAME=$(basename `dirname $CURSOR`)
	CURSORNAME=${CURSORNAME%%-*[0-9]*}
	if [ "$CURSORNAME" == "*-[0-9]*" ]
	then echo "$CURSORNAME is versioned" >&2; CURSORNAME=${CURSORNAME#-[0-9]*}
	fi
	mkdir -p %{buildroot}/%{_iconsdir}/$CURSORNAME
	cp -a $CURSOR %{buildroot}/%{_iconsdir}/$CURSORNAME

	#Ensure links are in place:
	pushd %{buildroot}/%{_iconsdir}/$CURSORNAME/cursors >/dev/null

	
	[ -e hand -a ! -f hand1 ] && ln -sf hand hand1 >/dev/null 2>&1||:
	[ -e hand -a ! -f hand2 ] && ln -sf hand hand2 >/dev/null 2>&1||:
	[ -e cross -a ! -f crosshair ] && ln -sf cross crosshair >&- 2>&- ||:
	[ -e cross -a ! -f cross_reverse ] && ln -sf cross cross_reverse >&- 2>&- ||:

	#QT symlinks mess :-(
	[ -e v_double_arrow ] && ln -sf v_double_arrow	00008160000006810000408080010102 #v_double_arrow
	[ -e h_double_arrow ] && ln -sf h_double_arrow	028006030e0e7ebffc7f7070c0600140 #h_double_arrow
	[ -e fd_double_arrow ] && ln -sf fd_double_arrow	fcf1c3c7cd4491d801f1e1c78f100000 #fd_double_arrow
	[ -e bd_double_arrow ] && ln -sf bd_double_arrow	c7088f0f3e6c8088236ef8e1e3e70000 #bd_double_arrow
	[ -e sb_h_double_arrow ] && ln -sf sb_h_double_arrow   14fef782d02440884392942c11205230 #sb_h_double_arrow
	[ -e sb_v_double_arrow ] && ln -sf sb_v_double_arrow   2870a09082c103050810ffdffffe0204 #sb_v_double_arrow
	[ -e hand1 ] && ln -sf hand1 9d800788f1b08800ae810202380a0822 #hand1
	[ -e hand2 ] && ln -sf hand2 e29285e634086352946a0e7090d73106 #hand2
	[ -e crossed_circle ] && ln -sf crossed_circle 03b6e0fcb3499374a867c041f52298f0 #crossed_circle (dnd forbidden)
	[ -e move ] && ln -sf move 4498f0e0c1937ffe01fd06f973665830 #left_ptr (move_cursor)
	[ -e copy ] && ln -sf copy 6407b0e94181790501fd1e167b474872 #copy
	[ -e link ] && ln -sf link 640fb0e74195791501fd1ed57b41487f # link
	[ -e left_ptr_watch ] && ln -sf left_ptr_watch 3ecb610c1bf2410f44200f48c40d3599 # left_ptr_watch
	[ -e question_arrow ] && ln -sf question_arrow d9ce0ab605698f320427677b458ad60b # question_arrow
	
	#Other apps' symlinks
	[ -e left_ptr_watch ] && ln -sf left_ptr_watch 08e8e1c95fe2fc01f976f1e063a24ccd #mozilla's left_ptr_watch
	popd >/dev/null
done
set -x

pushd %{buildroot}/%{_iconsdir}/ ; ln -s RedDot reddot;popd
rm -Rf %{buildroot}/%{_iconsdir}/RedDotSource

echo "%defattr(-,root,root)" > %name.files
find %{buildroot}/%{_datadir}/icons/ -type d -o -type l -maxdepth 1 -mindepth 1|egrep -v "(large|mini)"|sed -e 's|%{buildroot}/||;s|%{_datadir}|%%{_datadir}|'|sort>> %name.files

%clean
rm -rf $RPM_BUILD_ROOT

%pre
if [ "$1" = "2" -a -d %{_datadir}/icons/reddot ]; then
 rm -rf %{_datadir}/icons/reddot
fi

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%files -f %name.files
%defattr(-,root,root)
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 900 |21cr|curtain-0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Show a movable and resizable curtain on the desktop screen
Name:		curtain
Version:	0.3
Release:	5
License:	GPLv3+
Group:		Education
Url:		http://code.google.com/p/ardesia
Source:		http://ardesia.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		curtain-desktop-file.patch
Patch1:		curtain-0.3-gtk3tests.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Curtain is a tool that show a movable and resizable curtain on the desktop
screen. You can use this to hide and show objects on the desktop.

This program has been implemented for educational purposes.

%files -f %{name}.lang
%doc COPYING README NEWS ChangeLog AUTHORS
%{_bindir}/curtain
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/ui/%{name}.glade
%{_datadir}/%{name}/ui/icons/%{name}.*
%{_iconsdir}/%{name}.*
%{_datadir}/pixmaps/%{name}.*
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1 -b .gtk3tests

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_datadir}/pixmaps
mv %{buildroot}%{_iconsdir}/%{name}.xpm %{buildroot}%{_datadir}/pixmaps/

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 901 |21cr|custodia-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           custodia
Version:        0.6.0
Release:        1
Summary:        A service to manage, retrieve and store secrets for other processes
Group:		Development/Python
License:        GPLv3+
URL:            https://github.com/latchset/%{name}
Source0:        https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source2:        custodia.conf
Source3:        custodia@.service
Source4:        custodia@.socket
Source5:        custodia.tmpfiles.conf

Patch1:         nonfatal_deprecation.patch
Patch2:         0001-Replace-use-of-pytest-get_marker.patch

BuildArch:      noarch

BuildRequires:      pkgconfig(python3)
BuildRequires:      python3egg(jwcrypto) >= 0.4.2
BuildRequires:      python3egg(requests)
BuildRequires:      python3egg(setuptools) > 18
BuildRequires:      python3egg(coverage)
BuildRequires:      python3egg(pytest)
BuildRequires:      python3egg(docutils)
BuildRequires:      python3-systemd

%description
A service to manage, retrieve and store secrets for other processes
Custodia is a Secrets Service Provider, it stores or proxies access to     \
keys, password, and secret material in general. Custodia is built to       \
use the HTTP protocol and a RESTful API as an IPC mechanism over a local   \
Unix Socket. It can also be exposed to a network via a Reverse Proxy       \
service assuming proper authentication and header validation is            \
implemented in the Proxy.                                                  \

%files
%doc README API.md
%doc %{_defaultdocdir}/custodia/examples/custodia.conf
%license LICENSE
%{_mandir}/man7/custodia*
%{_sbindir}/custodia
%{_bindir}/custodia-cli
%dir %attr(0700,custodia,custodia) %{_sysconfdir}/custodia
%config(noreplace) %attr(600,custodia,custodia) %{_sysconfdir}/custodia/custodia.conf
%attr(644,root,root)  %{_unitdir}/custodia@.socket
%attr(644,root,root)  %{_unitdir}/custodia@.service
%dir %attr(0700,custodia,custodia) %{_localstatedir}/lib/custodia
%dir %attr(0700,custodia,custodia) %{_localstatedir}/log/custodia
%dir %attr(0755,custodia,custodia) %{_localstatedir}/run/custodia
%{_tmpfilesdir}/custodia.conf

%pre
getent group custodia >/dev/null || groupadd -r custodia
getent passwd custodia >/dev/null || \
    useradd -r -g custodia -d / -s /sbin/nologin \
    -c "User for custodia" custodia
exit 0

#------------------------------------------------------------------
%package -n python3-custodia
Summary:    Sub-package with python3 custodia modules
Requires:   python3-jwcrypto >= 0.4.2
Requires:   python3-requests
Requires:   python3-setuptools
Requires:   python3-systemd
Conflicts:  python3-custodia-extra < %{version}

%description -n python3-custodia
Sub-package with python custodia modules

%files -n python3-custodia
%license LICENSE
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}-nspkg.pth
%{_sbindir}/custodia
%{_bindir}/custodia-cli

#-------------------------------------------------------------------

%prep
%autosetup -p1


%build
%py3_build


%check
# don't download packages
export PIP_INDEX_URL=http://host.invalid./
# Don't try to download dnspython3. The package is provided by python%{python3_pkgversion}-dns
export PIP_NO_DEPS=yes
# Ignore all install packages to enforce installation of sdist. Otherwise tox
# may pick up this package from global site-packages instead of source dist.
export PIP_IGNORE_INSTALLED=yes

# Test custodia in a virtual environment
%{__python3} -m venv --system-site-packages testenv
testenv/bin/pip install .
testenv/bin/python -m pytest --capture=no --strict --skip-servertests

%install
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_mandir}/man7
mkdir -p %{buildroot}/%{_defaultdocdir}/custodia
mkdir -p %{buildroot}/%{_defaultdocdir}/custodia/examples
mkdir -p %{buildroot}/%{_sysconfdir}/custodia
mkdir -p %{buildroot}/%{_unitdir}
mkdir -p %{buildroot}/%{_tmpfilesdir}
mkdir -p %{buildroot}/%{_localstatedir}/lib/custodia
mkdir -p %{buildroot}/%{_localstatedir}/log/custodia
mkdir -p %{buildroot}/%{_localstatedir}/run/custodia

%py3_install
mv %{buildroot}/%{_bindir}/custodia %{buildroot}/%{_sbindir}/custodia

install -m 644 -t "%{buildroot}/%{_mandir}/man7" man/custodia.7
install -m 644 -t "%{buildroot}/%{_defaultdocdir}/custodia" README API.md
install -m 644 -t "%{buildroot}/%{_defaultdocdir}/custodia/examples" custodia.conf
install -m 600 %{SOURCE2} %{buildroot}%{_sysconfdir}/custodia
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/custodia.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 902 |21cr|cutecom-0.51.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit cce2e5ec01df09ca4b05f055f21942e0de7eb7dd

Summary:	A graphical serial terminal, like minicom or Hyperterminal on Windows
Name:		cutecom
Version:	0.51.0
Release:	2
License:	GPLv3+
Group:		Communications
Url:		https://gitlab.com/cutecom/cutecom
Source0:	https://gitlab.com/cutecom/cutecom/-/archive/v%{version}/%{name}-%{version}.tgz
Patch0:		cutecom-0.50.0-mga-fixinstall.patch
Patch1:		0001-Fix-build-with-Qt-5.15.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5Widgets)
# Required for xmodem support
Requires:	lrzsz

%description
CuteCom is a graphical serial terminal, like minicom or Hyperterminal on
Windows. It is aimed mainly at hardware developers or other people who need
a terminal to talk to their devices.

%files
%doc Changelog LICENSE README.md TODO
%{_bindir}/cutecom
%{_mandir}/man1/cutecom.1*
%{_datadir}/applications/cutecom.desktop
%{_iconsdir}/hicolor/scalable/apps/cutecom.svg

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-v%{version}-%{commit}
%autopatch -p1

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

# Upstream script does not install the .desktop file if KDE is not installed,
# so we install it manually:
desktop-file-install \
   --remove-key=Path --remove-key=Encoding \
   --add-category=System \
   --dir %{buildroot}%{_datadir}/applications/ \
   cutecom.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 903 |21cr|cutemaze-1.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           cutemaze
Summary:        Maze game
License:        GPLv3
Version:        1.3.0
Release:        2
Group:          Games/Puzzles
Url:            https://gottcode.org/%{name}/
Source:         https://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5UiTools)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  qt5-linguist-tools
BuildRequires:  qmake5
BuildRequires:  desktop-file-utils
BuildRequires:  appstream-util



%description
CuteMaze is a simple, top-down game in which mazes are randomly generated
using one of a choice of several different algorithms. You move the character
through the maze while hunting for targets (cheese, by default)—the game is
won once all of these targets have been picked up.

%files -f %{name}.lang
%doc ChangeLog COPYING CREDITS README
%{_gamesbindir}/%{name}
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man?/%{name}.*

#------------------------------------------------------------
%prep
%setup -q

%build
%setup_compile_flags
%qmake_qt5 \
    PREFIX=%{_prefix}  \
    BINDIR=games
%make

%install
%makeinstall_qt \
    PREFIX=%{_prefix}  \
    BINDIR=games




%{find_lang} %{name} --with-qt


%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 904 |21cr|cutter-1.03-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Aborts TCP/IP connections
Name:		cutter
Version:	1.03
Release:	11
License:	GPLv2+
Group:		Networking/Other
URL:		http://www.lowth.com/cutter
Source0:	%{name}-%{version}.tar.bz2
Patch1:		%{name}-1.02-fixnonnatted.patch

%description
Cutter is an open source program that allows Linux firewall administrators to
abort TCP/IP connections routed over the firewall or router on which it is run.

%prep

%setup -q
%patch1 -p1 -b .fixnonnatted

%build

%{__cc} %{optflags} -o cutter cutter.c

%install
%{__rm} -rf %{buildroot}

%{__install} -d %{buildroot}%{_sbindir}
%{__install} -m755 %{name} %{buildroot}%{_sbindir}/%{name}

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%attr(0755,root,root) %{_sbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 905 |21cr|cuyo-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	A tetris like game
Name:		cuyo
Version:	2.1.0
Release:	1
Epoch:		1
License:	GPLv2
Group:		Games/Arcade
Url:		http://www.karimmi.de/cuyo/
Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)

%description
Cuyo is a Tetris like game, There is many different level,
with different rules. We can play it with two players.

%files -f %{name}.lang
%{_gamesbindir}/%{name}
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_mandir}/man?/cu*.6*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/64x64/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Game;ArcadeGame;
Name=Cuyo
Comment=%{Summary}
EOF

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 906 |21cr|cvassistant-3.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		cvassistant
Summary:	Create resumes in Word.docx format
Version:	3.1.0
Release:	2
Group:		Education
License:	GPLv3
URL:		http://sourceforge.net/projects/%{name}
Source0:	http://heanet.dl.sourceforge.net/project/%{name}/%{name}-%{version}-src.tar.bz2

BuildRequires:	qt5-devel
BuildRequires:	qmake5
BuildRequires:	pkgconfig(quazip)
BuildRequires:	desktop-file-utils
BuildRequires:	txt2man
BuildRequires:	gzip

%description
CV Assistant helps you create specialized 
resumes in Word .docx format fast and easy. 
The idea is to have a master resume with all 
skills and experiences in it. 
Then based on skills mentioned 
in the job advertisement, export a 
clean but well formatted word .docx file as a 
summarized resume with only relevant skills in it.
This increases your chance of getting a job 
interview as most companies are using 
Applicant Tracking Software (ATS) or at 
best hiring managers which may be unaware 
of similarity between phrases like skilled 
in MS Word, familiar with 
Microsoft Word and Fully experienced with office suites.
So job seekers need to create 
specialized resumes for each and every 
job position with the same wordings used 
in the advertisement. Add all your skills 
to CV Assistant, pick only relevant ones.
It also creates cover letters! 
Again, write all possible sentences, 
and select those relevant ones per job post.

%files
%doc README licence.txt
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/
%{_datadir}/%{name}/templates
%{_mandir}/man1/%{name}*.1.*
#--------------------------------------------------

%prep
%setup -qn %{name}-%{version}-src
# hack a man
chmod 644 README licence.txt
txt2man README > cvassistant.1
gzip cvassistant.1
#fix attr
chmod 644 resources/templates/*
#disable donations dialog
perl -pi -e "s|//#define NO_DONATION_PROMPT|#define NO_DONATION_PROMPT|" controllers/mainwindow.cpp

%build
%qmake_qt5  
# Our quazip don't link as quazip-qt5
perl -pi -e "s|-lquazip-qt5|-lquazip|" Makefile
%make

%install
%makeinstall_qt INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/%{name}/templates
cp -R resources/templates/* %{buildroot}%{_datadir}/%{name}/templates

mkdir -p %{buildroot}%{_mandir}/man1
cp cvassistant.1.gz  %{buildroot}%{_mandir}/man1/

find %{buildroot} -type f -empty -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 907 |21cr|cvechecker-4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CVE reporting tool
Name: 		cvechecker
Version: 	4.0
Release: 	1
License: 	GPL
Group: 		System/Servers
Url:		https://github.com/sjvermeu/cvechecker/wiki
Source0: 	https://github.com/sjvermeu/cvechecker/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	xmlto
BuildRequires:	pkgconfig(libconfig)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(mariadb)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
Requires:	wget
Requires:	xsltproc

%description
cvechecker reports about possible vulnerabilities on your system by scanning
the installed software and matching the results with the CVE database. This is
not a bullet-proof method and you will most likely have many false positives,
but it is still better than nothing, especially if you are running a
distribution with little security coverage.

%files
%doc ChangeLog README.md
%{_bindir}/*
%{_datadir}/%{name}
%attr(0644,root,root) %{_mandir}/man1/*
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%dir /var/lib/%{name}
%dir /var/lib/%{name}/local
%dir /var/lib/%{name}/cache

#------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

%build
autoreconf -fi
%configure \
	--localstatedir=/var/lib	\
	--enable-sqlite3		\
	--enable-mysql
sed -i 's/\/mysql/\/mariadb/g;s/-lmysqlclient/-lmariadb/g' Makefile
%make

%install
%makeinstall_std

xmlto --skip-validation html-nochunks %{buildroot}%{_defaultdocdir}/%{name}/acknowledgements.xml 
xmlto --skip-validation html-nochunks %{buildroot}%{_defaultdocdir}/%{name}/userguide.xml
install -Dm644 userguide.html %{buildroot}%{_defaultdocdir}/%{name}/userguide.html
install -Dm644 acknowledgements.html %{buildroot}%{_defaultdocdir}/%{name}/acknowledgements.html

rm -rf %{buildroot}%{_docdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 908 |21cr|CVector-1.0.3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion %(echo %{version} |cut -d. -f1-3)
%define major 2
%define libname %mklibname %{name} %{oversion} %{major}
%define devname %mklibname %{name} -d

Summary:	ANSI C API for Dynamic Arrays
Name:		CVector
Version:	1.0.3.1
Release:	7
License:	LGPLv2+
Group:		System/Libraries
Url:		http://cvector.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/cvector/cvector/%{name}-%{oversion}/%{name}-%{version}.tar.gz
# to fix /-dynamic/-rdynamic/ issue, reported to upstream
Patch0:		CVector-1.0.3.1-dynamic.patch
# to fix libdir for lib64 architecture
Patch1:		CVector-1.0.3-lib64.patch
BuildRequires:	libtool

%description
CVector is an ANSI C implementation of dynamic arrays to provide a
crude approximation to the C++ vector class.

%files
%doc README_CVector.html README_CVector.txt lgpl.txt

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The CVector shared library
Group:		System/Libraries
Conflicts:	%{_lib}CVector2 < 1.0.3.1-5
Obsoletes:	%{_lib}CVector2 < 1.0.3.1-5

%description -n %{libname}
The CVector shared library.

%files -n %{libname}
%{_libdir}/libCVector-%{oversion}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for compiling programs using CVector
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel

%description -n %{devname}
This package includes the header and library files for developing applications
that use CVector.

%files -n %{devname}
%{_includedir}/CVector.h
%{_libdir}/libCVector.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .dynamic
%if "%{_lib}" == "lib64"
%patch1 -p1 -b .lib64
%endif

%build
%make

%install
make install CFLAGS="%{optflags}" INSTALL_PREFIX="%{buildroot}%{_prefix}"

# remove .a files
find %{buildroot} -name '*.a' -exec rm -f {} ';'

%check
make tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 909 |21cr|CVector-1.0.3.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion %(echo %{version} |cut -d. -f1-3)
%define major 2
%define libname %mklibname %{name} %{oversion} %{major}
%define devname %mklibname %{name} -d

Summary:	ANSI C API for Dynamic Arrays
Name:		CVector
Version:	1.0.3.1
Release:	8
License:	LGPLv2+
Group:		System/Libraries
Url:		http://cvector.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/cvector/cvector/%{name}-%{oversion}/%{name}-%{version}.tar.gz
# to fix /-dynamic/-rdynamic/ issue, reported to upstream
Patch0:		CVector-1.0.3.1-dynamic.patch
# to fix libdir for lib64 architecture
Patch1:		CVector-1.0.3-lib64.patch
BuildRequires:	libtool
ExclusiveArch:	%{ix86} %{x86_64}

%description
CVector is an ANSI C implementation of dynamic arrays to provide a
crude approximation to the C++ vector class.

%files
%doc README_CVector.html README_CVector.txt lgpl.txt

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The CVector shared library
Group:		System/Libraries
Conflicts:	%{_lib}CVector2 < 1.0.3.1-5
Obsoletes:	%{_lib}CVector2 < 1.0.3.1-5

%description -n %{libname}
The CVector shared library.

%files -n %{libname}
%{_libdir}/libCVector-%{oversion}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for compiling programs using CVector
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel

%description -n %{devname}
This package includes the header and library files for developing applications
that use CVector.

%files -n %{devname}
%{_includedir}/CVector.h
%{_libdir}/libCVector.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .dynamic
%if "%{_lib}" == "lib64"
%patch1 -p1 -b .lib64
%endif

%build
%make

%install
make install CFLAGS="%{optflags}" INSTALL_PREFIX="%{buildroot}%{_prefix}"

# remove .a files
find %{buildroot} -name '*.a' -exec rm -f {} ';'

%check
make tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 910 |21cr|cvoicecontrol-0.9-1.alpha.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Speech recognition system enabling to use spoken commands
Name:		cvoicecontrol
Version:	0.9
Release:	%mkrel 1.alpha.7
License:	GPLv2+
Group:		Sound
URL:		https://launchpad.net/cvoicecontrol
# Download URL is dead: use the stored sources
#Source0:	http://www.kiecza.de/daniel/linux/%%{name}-%%{version}alpha.tar.bz2
Source0:	%{name}-%{version}alpha.tar.bz2
Patch0:		%{name}-make.patch.bz2
Patch1:		%{name}-crash.patch.bz2
BuildRequires:	texinfo
BuildRequires:	ncurses-devel >= 5.2

%description
CVoiceControl is a speech recognition system that enables a user to connect
spoken commands to unix commands. It automagically detects speech input from a
microphone, performs recognition on this input and, in case of successful
recognition, executes the associated unix command. 

%files
%doc AUTHORS BUGS FAQ README %{name}/docs/en/index*.html
%{_bindir}/%{name}
%{_bindir}/model_editor
%{_bindir}/microphone_config

#-----------------------------------------------------------------------------

%prep 
%setup -qn %{name}-%{version}alpha
%patch0 -p1
%patch1 -p1


%build
%configure
%make


%install
mkdir -p %{buildroot}%{_bindir}
install -m755 %{name}/%{name}  %{buildroot}%{_bindir}
install -m755 %{name}/model_editor  %{buildroot}%{_bindir}
install -m755 %{name}/microphone_config  %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 911 |21cr|cvs2cl-2.73-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url http://www.red-bean.com/cvs2cl/

Summary:	Generator of ChangeLogs from `cvs log` output
Name:		cvs2cl
Version:	2.73
Release:	6
Source0:	%{url}/cvs2cl.pl
Source1:	%{url}/changelogs.html
License:	GPL
Group:		Development/Other
URL:		%{url}
BuildArch:	noarch

%description
CVS2CL attempts to produce a nice ChangeLog from the cvs log output, some
say nicer than rcs2log. It is included with the open source CVS book :

http://cvsbook.red-bean.com/

%prep
%setup -T -c

%install
mkdir -p %{buildroot}/%{_bindir}
install -m755 %{SOURCE0} %{buildroot}/%{_bindir}/%{name}
install -m644 %{SOURCE1} ./

%files
%doc changelogs.html
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 912 |21cr|cvsadmin-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Version:	1.0.3
Summary:	Tool to administer users of a CVS repository
Name:		cvsadmin
Release:	14
License:	GPLv2
Group:		Development/Other
Source:		%{name}-%{version}.tar.bz2
URL:		ftp://ftp.freebsd.org/pub/FreeBSD/ports/local-distfiles/gabor/

%description
cvsadmin is a simple program to administrate users of a CVS repository. 

It currently allows you to easily
- add users
- remove users
- change users passwords
- show existing users
- rename users
- change system users

%prep
%setup -q

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%doc AUTHORS COPYING Makefile README 
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 913 |21cr|cvsgraph-1.7.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		cvsgraph
Version:	1.7.0
Release:	7
Summary:	Create graphs of branches and revisions for files in a CVS repository
License:	GPL
Group:		System/Servers
Source:		http://www.akhphd.au.dk/~bertho/cvsgraph/release/%{name}-%{version}.tar.gz
URL:		http://www.akhphd.au.dk/~bertho/cvsgraph
BuildRequires:	libgd-devel
BuildRequires:	flex
BuildRequires:	bison

%description
CvsGraph is a utility to make a graphical representation of all revisions
and branches of a file in a CVS/RCS repository. It has been inspired by
the 'graph' option in WinCVS, but I could not find a stand-alone version
of this graph code. So, it was time to write one.

%prep
%setup -q
chmod 755 contrib/automatic_documentation/*.sh

%build
%configure
%make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_sysconfdir}
install -d -m 755 %{buildroot}%{_mandir}/{man1,man5}
install -m 755 %{name} %{buildroot}%{_bindir}
install -m 644 %{name}.conf %{buildroot}%{_sysconfdir}
install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1
install -m 644 %{name}.conf.5 %{buildroot}%{_mandir}/man5

%clean

%files
%doc ChangeLog COPYING AUTHORS NEWS README INSTALL
%doc contrib/*.php
%doc contrib/automatic_documentation
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_mandir}/man5/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 914 |21cr|cvsps-2.2b1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           cvsps
Version:        2.2b1
Release:        8
Summary:        Patchset tool for CVS
Group:          Development/Other
License:        GPLv3
URL:            http://www.cobite.com/cvsps/
Source0:        http://www.cobite.com/cvsps/%{name}-%{version}.tar.gz
BuildRequires:  zlib-devel
# Requires cvs only with --no-cvs-direct, but I cannot imagine this dep
# being a problem on systems where cvsps will be installed...
Requires:       cvs

%description
CVSps is a program for generating 'patchset' information from a CVS
repository.  A patchset in this case is defined as a set of changes
made to a collection of files, and all committed at the same time
(using a single 'cvs commit' command).  This information is valuable
to seeing the big picture of the evolution of a cvs project.  While
cvs tracks revision information, it is often difficult to see what
changes were committed 'atomically' to the repository.


%prep
%setup -q


%build
CFLAGS="%{optflags}" %make


%install
install -Dpm 755 cvsps %{buildroot}%{_bindir}/cvsps
install -Dpm 644 cvsps.1 %{buildroot}%{_mandir}/man1/cvsps.1


%clean


%files
%defattr(-,root,root,-)
%doc CHANGELOG COPYING README merge_utils.sh
%{_bindir}/cvsps
%{_mandir}/man1/cvsps.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 915 |21cr|cvsreport-0.3.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:       cvsreport
Version:    0.3.5
Release:    11
Summary:    Produce CVS activity reports
License:    GPL
Group:      System/Servers
URL:        http://home.gna.org/cvsreport/
Source:     http://download.gna.org/cvsreport/cvsreport.pkg/0.3.5/%{name}-%{version}.tar.gz
BuildArch:  noarch

%description
CVSreport produces text or enhanced HTML activity reports from a local or
remote CVS repository. It can be used to extract activity information from any
time span, or to automatically generate reports and store/send them on commit
events.

CVSreport can extract changesets from a CVS repository history. A changeset is
a set of commit operations (addition, removal, modification) which happen along
a single invocation of the cvs commit command. Used from client side, it
produces a report starting from an arbitrary date from a simple working copy.
On the server side, it can automatically generate reports and mail them upon
commit.

%prep
%setup -q
chmod 644 ChangeLog

%build

%install
%makeinstall_std PREFIX=%{_prefix}

%clean

%files
%doc COPYING ChangeLog TODO README NEWS examples test
%{_bindir}/%{name}
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 916 |21cr|cvsspam-0.2.12-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cvsspam
Version:	0.2.12
Release:	9
Summary:	CVSspam emails you diffs when someone commits a change to your CVS repository
License:	GPL
Group:		System/Servers
Source:		http://www.badgers-in-foil.co.uk/projects/cvsspam/releases/%{name}-%{version}.tar.bz2
URL:		http://www.badgers-in-foil.co.uk/projects/cvsspam/
Requires:	cvs
BuildArch:	noarch

%description
CVSspam sends email when a change is committed to the CVS repository.
Syntax-highlighted diffs describe the changes made, and links to Web
frontends on CVS and bug tracking systems are generated where
possible.

%prep
%setup -q

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 *.rb %{buildroot}%{_bindir}

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 cvsspam.conf %{buildroot}%{_sysconfdir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CREDITS TODO cvsspam-doc.pdf cvsspam-doc.html
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 917 |21cr|cvsutils-0.2.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	Summary	Collection of useful CVS scripts

Summary:	%Summary
Name:		cvsutils
Version:	0.2.6
Release:	3
License:	GPLv2+
Group:		Development/Other
URL:		http://www.red-bean.com/cvsutils/
Source0:	http://www.red-bean.com/cvsutils/releases/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
CVS Utilities is a collection of scripts, mostly in the Perl language,
that allow you to manage the files in the CVS working directory.
You can tell which files are under version control and which are
not without even being online. You can erase or move away all derived
files in seconds.


%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%defattr(0755,root,root,0755)
%{_bindir}/*
%defattr(0644,root,root,0755)
%{_mandir}/man1/%{name}.1*
%doc AUTHORS COPYING ChangeLog NEWS README THANKS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 918 |21cr|cw-1.0.16-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Non-intrusive real-time ANSI color wrapper for common Unix-based commands
Name:		cw
Version:	1.0.16
Release:	6
License:	GPLv2+
Group:		Development/Other
Url:		http://cwrapper.sourceforge.net/
Source0:	http://cwrapper.sourceforge.net/cw-%{version}.tar.bz2
Patch0:		cw-1.0.16-sfmt.patch

%description
cw is a non-intrusive real-time ANSI color wrapper for common Unix-based
commands on GNU/Linux. cw is designed to simulate the environment of the
commands being executed, so that if a person types 'du', 'df', 'ping',
etc. in their shell it will automatically color the output in real-time
according to a definition file containing the color format desired. cw
has support for wildcard match coloring, tokenized coloring,
headers/footers, case scenario coloring, command line dependent
definition coloring, and includes over 50 pre-made definition files.

%files
%doc CHANGES CONTRIB cw.lsm FILES MD5SUM README
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
perl -pi -e 's/ -o 0 -g 0//g' Makefile.in
perl -pi -e 's|/usr/local/lib|%{_datadir}|g' README

%build
%configure
%make \
	CC="%__cc %{optflags}" \
	LIBDIR=%{_datadir} \
	local

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1

make install \
	CC="%__cc %{optflags}" \
	PREFIX=%{buildroot}%{_prefix} \
	LIBDIR=%{buildroot}%{_datadir} \
	MANDIR=%{buildroot}%{_mandir}

rm %{buildroot}%{_bindir}/cwe
ln -s cw %{buildroot}%{_bindir}/cwe

perl -pi -e 's|CWLIB=.*|CWLIB="%{_datadir}/%{name}"|g' %{buildroot}%{_bindir}/colorcfg
perl -pi -e 's|%{buildroot}||g' %{buildroot}%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 919 |21cr|cw-1.0.16-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Non-intrusive real-time ANSI color wrapper for common Unix-based commands
Name:		cw
Version:	1.0.16
Release:	7
License:	GPLv2+
Group:		Development/Other
Url:		http://cwrapper.sourceforge.net/
Source0:	http://cwrapper.sourceforge.net/cw-%{version}.tar.bz2
Patch0:		cw-1.0.16-sfmt.patch

%description
cw is a non-intrusive real-time ANSI color wrapper for common Unix-based
commands on GNU/Linux. cw is designed to simulate the environment of the
commands being executed, so that if a person types 'du', 'df', 'ping',
etc. in their shell it will automatically color the output in real-time
according to a definition file containing the color format desired. cw
has support for wildcard match coloring, tokenized coloring,
headers/footers, case scenario coloring, command line dependent
definition coloring, and includes over 50 pre-made definition files.

%files
%doc CHANGES CONTRIB cw.lsm FILES MD5SUM README
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
perl -pi -e 's/ -o 0 -g 0//g' Makefile.in
perl -pi -e 's|/usr/local/lib|%{_datadir}|g' README
# STREAMS support is gone from glibc 2.31
perl -pi -e 's/isastream\([[:alnum:]]*\)/0/' src/*.c

%build
%configure
%make \
	CC="%__cc %{optflags}" \
	LIBDIR=%{_datadir} \
	local

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1

make install \
	CC="%__cc %{optflags}" \
	PREFIX=%{buildroot}%{_prefix} \
	LIBDIR=%{buildroot}%{_datadir} \
	MANDIR=%{buildroot}%{_mandir}

rm %{buildroot}%{_bindir}/cwe
ln -s cw %{buildroot}%{_bindir}/cwe

perl -pi -e 's|CWLIB=.*|CWLIB="%{_datadir}/%{name}"|g' %{buildroot}%{_bindir}/colorcfg
perl -pi -e 's|%{buildroot}||g' %{buildroot}%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 920 |21cr|cwtmp-3.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cwtmp
Version:	3.4
Release:	4
URL:		http://www.armory.com/~spcecdt/
Source0:	ftp://ftp.armory.com/pub/source/%{name}.tar.gz
License:	GPLv2
Group:		Text tools
Summary:	Clean up utmp & wtmp files (discard entries; fix corruption)

%description
cwtmp compresses a wtmp file by discarding the uninteresting utmp entries
that make up a large fraction of the typical wtmp file.  If no filename is
given, /etc/wtmp is read.  utmp entries in the file are written to the
output, except entries of type LOGIN_PROCESS, INIT_PROCESS, and EMPTY,
which are skipped.

%prep
%setup -q -c

%build
%make CFLAGS="%{optflags}" LIBS="%{ldflags}"

%install
install -m755 %{name} -D %{buildroot}%{_sbindir}/%{name}
install -m644 %{name}.8 -D %{buildroot}%{_mandir}/man8/%{name}.8

%files 
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 921 |21cr|cxref-1.6c-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	C program cross-referencing & documentation tool
Name:		cxref
Version:	1.6c
Release:	5
License:	GPL
Group:		Development/C
Url:		http://www.gedanken.demon.co.uk/cxref/
Source0:	http://www.gedanken.demon.co.uk/download-cxref/%name-%version.tgz
BuildRequires:	bison
BuildRequires:	flex

%description
A program that takes as input a series of C source files
and produces a LaTeX or HTML document containing a cross
reference of the files/functions/variables in the program,
including documentation taken from suitably formatted
source code comments.

The documentation is stored in the C source file in
specially formatted comments, making it simple to maintain.
The cross referencing includes lists of functions called,
callers of each function, usage of global variables, header
file inclusion, macro definitions and type definitions.
Works for ANSI C, including many gcc extensions.

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

rm -rf %{buildroot}%{_datadir}/cxref-cpp.defines


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 922 |21cr|cxtracker-0.9.8-1.29c7a60.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 29c7a6031cfff11e949ff31f5845c6892d2a6441
%define git 29c7a60

Name:		cxtracker
Summary:	Connection Tracker - is a passive network connection tracker
Version:	0.9.8
Release:	1.%{git}.1
License:	GPLv3
Group:		Monitoring
URL:		https://github.com/gamelinux/cxtracker
Source:		https://github.com/gamelinux/cxtracker/archive/%{commit}.zip?/%{name}-%{git}.zip
BuildRequires:	pkgconfig(libpcap)

%description
CxTracker (Connection Tracker) is a passive network connection tracker 
for profiling, history, auditing and network discovery. It can be used 
as an replacement for sancp in the sguil setup. It handles vlan (2 layers)
and IPv6 out of the box.

%files
%defattr(0755,root,root)
%{_bindir}/cxtracker
%{_bindir}/*.pl

#------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}

%install
cd src/
%make 
mkdir -p %{buildroot}%{_bindir}
install -m 755 cxtracker %{buildroot}%{_bindir}
install -m 755 ../bin/*.pl %{buildroot}%{_bindir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 923 |21cr|cxxtools-3.0-1.git43ba2e.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 43ba2ec90fcb082cb3066d26a6f7e4a15a1abbb1
%define commit_short %(echo %{commit} | head -c6)

%define major	11
%define libname	%mklibname cxxtools %major
%define devname	%mklibname cxxtools -d

Summary:	Toolbox with reusable c++ components
Name:		cxxtools
Version:	3.0
Release:	1.git%{commit_short}.1
License:	LGPLv2.1+
Group:		System/Libraries
URL:		http://www.tntnet.org/
Source0:	https://github.com/maekitalo/cxxtools/archive/%{commit}.zip?/%{name}-%{commit}.tar.gz
BuildRequires:	pkgconfig(openssl)

%description
Toolbox with reusable c++ components.

#------------------------------------------------------------
%package -n %{libname}
Summary:	Shared library of cxxtools
Group:		System/Libraries

%description -n %{libname}
Toolbox with reusable c++ components.

%files -n %libname
%{_libdir}/*.so.%{major}*

#------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and static library for cxxtools development
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	cxxtools-devel = %{EVRD}

%description -n %{devname}
Toolbox with reusable c++ components.

%files -n %devname
%doc README AUTHORS
%{_bindir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/%{name}

#------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}

# fix spurious executable perm
find -name "*.cpp" -exec chmod -x {} \;
find -name "*.h" -exec chmod -x {} \;

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
autoreconf -vfi
./configure     --disable-static \
		--prefix=%{_prefix} \
		--libdir=%{_libdir} \
		--disable-dependency-tracking \
		--disable-demos \
		--disable-unittest
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 924 |21cr|cyassl-1.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	SSL library developed for embedded environments
Name:		cyassl
Version:	1.9.0
Release:	5
License:	GPL
Group:		System/Libraries
Url:		http://www.yassl.com/
Source0:	http://www.yassl.com/%{name}-%{version}.zip
Patch0:		cyassl-1.4.0-malloc_linkage_fix.diff
BuildRequires:	dos2unix

%description
CyaSSL is a C language based SSL library developed for embedded environments
and real time operating systems where resources are constrained. CyaSSL is
about 10 times smaller than yaSSL and up to 20 times smaller than OpenSSL. User
benchmarking and feedback also reports dramatically better performance from
CyaSSL vs. OpenSSL in the vast majority of standard SSL operations.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library associated with ncpfs
Group:		System/Libraries

%description -n %{libname}
CyaSSL is a C language based SSL library developed for embedded environments
and real time operating systems where resources are constrained. CyaSSL is
about 10 times smaller than yaSSL and up to 20 times smaller than OpenSSL. User
benchmarking and feedback also reports dramatically better performance from
CyaSSL vs. OpenSSL in the vast majority of standard SSL operations.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package with static libs and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
CyaSSL is a C language based SSL library developed for embedded environments
and real time operating systems where resources are constrained. CyaSSL is
about 10 times smaller than yaSSL and up to 20 times smaller than OpenSSL. User
benchmarking and feedback also reports dramatically better performance from
CyaSSL vs. OpenSSL in the vast majority of standard SSL operations.

%files -n %{devname}
%dir %{_includedir}/cyassl
%dir %{_includedir}/cyassl/openssl
%{_includedir}/cyassl/*.h
%{_includedir}/cyassl/openssl/*.h
%{_libdir}/lib*.so

#----------------------------------------------------------------------------

%prep
%setup -q

find -type f -exec dos2unix -U {} \;
%patch0 -p1

%build
%serverbuild
%configure
%make

%install
# the install is too borked...
%makeinstall_std -C src

install -d %{buildroot}%{_includedir}/cyassl/openssl
install -m0644 include/*.h %{buildroot}%{_includedir}/cyassl/
install -m0644 include/openssl/*.h %{buildroot}%{_includedir}/cyassl/openssl/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 925 |21cr|cyreal-lobster-cyrillic-fonts-1.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           cyreal-lobster-cyrillic-fonts
Version:        1.4
Release:        3
License:        OFL-1.1
Summary:        Lobster Cyrillic Font
Url:            http://cyreal.org/archives/373
Group:          System/Fonts/True type
#Source0:       wget http://www.google.com/webfonts/download?kit=V9dGwk5Wx0cNwNcoYGYKAqCWcynf_cDxXwCLxiixG1c -O cyreal-lobster-cyrillic-fonts.zip
Source0:        cyreal-lobster-cyrillic-fonts.zip
BuildRequires:	fontpackages-devel
BuildRequires:  unzip
Provides:       locale(ru;uk)
Provides:       lobster-cyrillic-fonts = %{version}
# FIXME: This causes a rpmlint warning; change "<=" to "<" once there's
# a new upstream version.
Obsoletes:      lobster-cyrillic-fonts <= %{version}
BuildArch:      noarch

%description
A lovely Bold Condensed Script fully loaded with hundreds of ligatures
and alternates.

Lobster Cyrillic includes:
- 99 Cyrillic ligatures.
- 25 ending glyphs.
- 100 ending ligatures.
- 2 initial ligatures.
- Ukrainian Hryvnia and Russian Ruble currency symbols.

%prep
%setup -cqn %{name}-%{version}
sed -i 's/\r$//g' OFL.txt

%build

%install
install -Dm 644 Lobster.ttf %{buildroot}%{_datadir}/fonts/TTF/Lobster.ttf

%files
%defattr(-,root,root,-)
%doc OFL.txt
%{_datadir}/fonts/TTF/Lobster.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 926 |21cr|d0_blind_id-0.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} %{major} -d

Summary:	Blind-ID library for user identification
Name:		d0_blind_id
Version:	0.6
Release:	6
License:	GPLv2+
Group:		Games/Arcade
Url:		http://git.xonotic.org/?p=xonotic/d0_blind_id.git;a=summary
Source0:	%{name}-%{version}.tar.bz2
Requires:	%{libname} = %{version}-%{release}
BuildRequires:	gmp-devel

%description
Cryptographic library to perform identification 
using Schnorr Identification scheme and Blind RSA Signatures.

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}

%description -n %{libname}
Shared library for %{name}.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel

%description -n %{develname}
Development files needed for compiling against %{name}.


%prep
%setup -q

%build
autoreconf -i

%configure \
	--disable-static
%make

%install
%makeinstall_std

%files
%doc COPYING d0_blind_id.txt
%{_bindir}/blind_id

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 927 |21cr|d1x-rebirth-0.58.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The port of Descent 1 for Linux
Name:		d1x-rebirth
Version:	0.58.1
Release:	7
License:	GPL
Group:		Games/Arcade
URL:		http://www.dxx-rebirth.com/
Source:		http://www.dxx-rebirth.com/download/dxx/%{name}_v%{version}-src.tar.gz
Source1:	%{name}.png
Source2:	D2XBDE01.zip
Patch0:		d1x-rebirth_v0.58.1-common-objects.patch
Patch1:		d1x-rebirth_v0.58.1-python3.patch
BuildRequires:	dos2unix
BuildRequires:	gcc-c++
BuildRequires:	nasm
BuildRequires:	scons
BuildRequires:	unzip
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
Requires:	physfs

%description
This is the port of Descent 1, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999 by
Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent2. See dxx-readme.txt.

%files
%doc *.txt *.plist *.ini
%dir %{_gamesdatadir}/descent2
%{_gamesdatadir}/descent2/*.txb
%{_gamesdatadir}/descent2/*.txt
%dir %{_gamesdatadir}/descent2/missions
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%package sdl
Summary:	Descent 1 for Linux, SDL version
Group:		Games/Arcade
Requires:	d1x-rebirth = %{EVRD}
Conflicts:	d1x-rebirth-gl

%description sdl
This is the port of Descent 1, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999
by Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent2. See dxx-readme.txt.

This version uses SDL for Audio, Input/Output and graphics
rendering.

%files sdl
%doc COPYING*
%{_gamesbindir}/d1x-rebirth-sdl
%{_datadir}/applications/%{name}-sdl.desktop

#----------------------------------------------------------------------------

%package gl
Summary:	Descent 1 for Linux, OpenGL version
Group:		Games/Arcade
Requires:	d1x-rebirth = %{EVRD}
Conflicts:	d1x-rebirth-sdl

%description gl
This is the port of Descent 1, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999 by
Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent2.  See dxx-readme.txt.

This version uses SDL for Audio and Input/Output and OpenGL for
graphics rendering.

%files gl
%doc COPYING*
%{_gamesbindir}/d1x-rebirth-gl
%{_datadir}/applications/%{name}-gl.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}_v%{version}-src -a2
dos2unix d1x.ini *.txt
chmod 644 d1x.ini *.txt
dos2unix CHANGELOG.txt
%patch0 -p1
%patch1 -p1

%build
%setup_compile_flags
# d1x-sdl
%scons \
	sharepath=%{_gamesdatadir}/descent2 \
	sdl_only=1 \
	sdlmixer=1 \
	no_asm=1
cp d1x-rebirth d1x-rebirth-sdl

# d1x-gl
%scons -c
%scons \
	sharepath=%{_gamesdatadir}/descent2 \
	sdlmixer=1 \
	PREFIX=%{buildroot}%{_prefix}
cp d1x-rebirth d1x-rebirth-gl

%install
# binaries
install -dm 755 %{buildroot}%{_gamesbindir}
install -m 755 d1x-rebirth-gl %{buildroot}%{_gamesbindir}/
install -m 755 d1x-rebirth-sdl %{buildroot}%{_gamesbindir}/

install -dm 755 %{buildroot}%{_gamesdatadir}/descent2
# german translations
install -m 644 D2XBDE01/D2XbDE01/*.txb %{buildroot}%{_gamesdatadir}/descent2
install -m 644 D2XBDE01/*.txt %{buildroot}%{_gamesdatadir}/descent2
# directory for original descent data
install -dm 755 %{buildroot}%{_gamesdatadir}/descent2/missions

# icon
install -dm 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE1} \
	%{buildroot}%{_datadir}/pixmaps

# menu
install -dm 755 %{buildroot}%{_datadir}/applications
cat > %{name}-sdl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=D2x (SDL version)
Comment=The port of Descent 1 for Linux
Exec=%{_gamesbindir}/d1x-rebirth-sdl
Icon=%{name}
Categories=Game;ActionGame;
EOF
install -m 644 %{name}-sdl.desktop %{buildroot}%{_datadir}/applications

cat > %{name}-gl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=D2x (OpenGL version)
Comment=The port of Descent 1 for Linux
Exec=%{_gamesbindir}/d1x-rebirth-gl
Icon=%{name}
Categories=Game;ArcadeGame;
EOF
install -m 644 %{name}-gl.desktop %{buildroot}%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 928 |21cr|d2x-rebirth-0.58.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The port of Descent 2 for Linux
Name:		d2x-rebirth
Version:	0.58.1
Release:	8
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.dxx-rebirth.com/
Source0:	http://www.dxx-rebirth.com/download/dxx/%{name}_v%{version}-src.tar.gz
Source1:	%{name}.png
Source2:	D2XBDE01.zip
Patch0:		d2x-rebirth_v0.58.1-libphysfs-3.0.1.patch
Patch1:		d2x-rebirth_v0.58.1-common-objects.patch
Patch2:		d2x-rebirth_v0.58.1-python3.patch
BuildRequires:	dos2unix
BuildRequires:	gcc-c++
BuildRequires:	nasm
BuildRequires:	scons
BuildRequires:	unzip
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
Requires:	physfs

%description
This is the port of Descent 2, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999 by
Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent2. See dxx-readme.txt.

%files
%doc *.txt *.plist *.ini
%dir %{_gamesdatadir}/descent2
%{_gamesdatadir}/descent2/*.txb
%{_gamesdatadir}/descent2/*.txt
%dir %{_gamesdatadir}/descent2/missions
%{_mandir}/man1/*
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%package sdl
Summary:	Descent 2 for Linux, SDL version
Group:		Games/Arcade
Requires:	d2x-rebirth = %{EVRD}
Conflicts:	d2x-rebirth-gl

%description sdl
This is the port of Descent 2, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999
by Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent2. See dxx-readme.txt.

This version uses SDL for Audio, Input/Output and graphics
rendering.

%files sdl
%doc COPYING*
%{_gamesbindir}/d2x-rebirth-sdl
%{_datadir}/applications/%{name}-sdl.desktop

#----------------------------------------------------------------------------

%package gl
Summary:	Descent 2 for Linux, OpenGL version
Group:		Games/Arcade
Requires:	d2x-rebirth = %{EVRD}
Conflicts:	d2x-rebirth-sdl

%description gl
This is the port of Descent 2, the famous 3D game for PC.

D2X is based on source code that was released the 14 December 1999 by
Parallax Software Corporation.

To use this package you'll need some datafiles installed in
/usr/share/games/descent2.  See dxx-readme.txt.

This version uses SDL for Audio and Input/Output and OpenGL for
graphics rendering.

%files gl
%doc COPYING*
%{_gamesbindir}/d2x-rebirth-gl
%{_datadir}/applications/%{name}-gl.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}_v%{version}-src -a2
dos2unix d2x.ini *.txt
chmod 644 d2x.ini *.txt
dos2unix CHANGELOG.txt
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%setup_compile_flags
# d2x-sdl
%scons \
	sharepath=%{_gamesdatadir}/descent2 \
	sdl_only=1 \
	sdlmixer=1 \
	no_asm=1
mv d2x-rebirth d2x-rebirth-sdl

# d2x-gl
%scons -c
%scons \
	sharepath=%{_gamesdatadir}/descent2 \
	sdlmixer=1 \
	PREFIX=%{buildroot}%{_prefix}
cp d2x-rebirth d2x-rebirth-gl

%install
# binaries
install -dm 755 %{buildroot}%{_gamesbindir}/
install -m 755 d2x-rebirth %{buildroot}%{_gamesbindir}/d2x-rebirth-gl
install -m 755 d2x-rebirth-sdl %{buildroot}%{_gamesbindir}/

install -dm 755 %{buildroot}%{_gamesdatadir}/descent2
# german translations
install -m 644 D2XBDE01/D2XbDE01/*.txb %{buildroot}%{_gamesdatadir}/descent2
install -m 644 D2XBDE01/*.txt %{buildroot}%{_gamesdatadir}/descent2
# directory for original descent data
install -dm 755 %{buildroot}%{_gamesdatadir}/descent2/missions

# man-pages
install -dm 755 %{buildroot}%{_mandir}/man1/
install  -m 644 libmve/*.1 %{buildroot}%{_mandir}/man1/

# icon
install -dm 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps

# menu
install -dm 755 %{buildroot}%{_datadir}/applications
cat > %{name}-sdl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=D2x (SDL version)
Comment=The port of Descent 2 for Linux
Exec=%{_gamesbindir}/d2x-rebirth-sdl
Icon=%{name}
Categories=Game;ActionGame;
EOF
install -m 644 %{name}-sdl.desktop %{buildroot}%{_datadir}/applications

cat > %{name}-gl.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=D2x (OpenGL version)
Comment=The port of Descent 2 for Linux
Exec=%{_gamesbindir}/d2x-rebirth-gl
Icon=%{name}
Categories=Game;ArcadeGame;
EOF
install -m 644 %{name}-gl.desktop %{buildroot}%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 929 |21cr|dact-0.8.42-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Dinamically choose best algorithm to compress a file
Name:		dact
Version:	0.8.42
Release:	5
License:	LGPL
Group:		Archiving/Compression
Url:		http://www.rkeene.org/oss/dact/
Source:		http://www.rkeene.org/files/oss/dact/release/%{name}-%{version}.tar.gz
BuildRequires:	bzip2-devel
BuildRequires:	liblzo-devel
BuildRequires:	libmcrypt-devel

%description
DACT is a compression tool designed to compress a file dynamically,
choosing the algorithm that works best per block of input data to
produce an overall smaller output file.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall

%files
%doc MD5SUMS README TODO.ideas TODO VERSION ChangeLog AUTHORS
%doc Docs/config_help.txt Docs/dact.txt Docs/helpfile.txt
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_libdir}/lib%{name}.*
%{_mandir}/man1/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 930 |21cr|daemonize-1.7.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Run a command as a Unix daemon
Name:		daemonize
Version:	1.7.8
Release:	1
License:	BSD
Group:		System/Servers
Url:		http://www.clapper.org/software/daemonize/
Source0:	https://github.com/bmc/daemonize/archive/release-%{version}/%{name}-release-%{version}.tar.gz

%description
daemonize runs a command as a Unix daemon. As defined in W. Richard
Stevens' 1990 book, Unix Network Programming (Addison-Wesley, 1990), a
daemon is "a process that executes 'in the background' (i.e., without
an associated terminal or login shell) either waiting for some event to
occur, or waiting to perform some specified task on a periodic basis."

Upon startup, a typical daemon program will:
- Close all open file descriptors (especially standard input, standard
  output and standard error)
- Change its working directory to the root filesystem, to ensure that
  it doesn't tie up another filesystem and prevent it from being unmounted
- Reset its umask value
- Run in the background (i.e., fork)
- Disassociate from its process group (usually a shell), to insulate
  itself from signals (such as HUP) sent to the process group
- Ignore all terminal I/O signals
- Disassociate from the control terminal (and take steps not to
  reacquire one)
- Handle any SIGCLD signals

Most programs that are designed to be run as daemons do that work for
themselves. However, you'll occasionally run across one that does not.
When you must run a daemon program that does not properly make itself
into a true Unix daemon, you can use daemonize to force it to run as a
true daemon.

%files
%doc README.md CHANGELOG.md LICENSE.md
%{_sbindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{version}

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 931 |21cr|daemonlogger-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		daemonlogger
Summary:	Simple packet logging daemon
Version:	1.2.2
Release:	1
License:	GPLv3
Group:		Monitoring
URL:		https://talosintelligence.com/daemon
Source:		https://github.com/Cisco-Talos/Daemonlogger/archive/V%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	libdnet-devel
BuildRequires:	libpcap-devel

%description
This is a libpcap-based program.  It has two runtime modes:

1) It sniffs packets and spools them straight to the disk and can daemonize 
itself for background packet logging.  By default the file rolls over when 
1 GB of data is logged.

2) It sniffs packets and rewrites them to a second interface, essentially 
acting as a soft tap.  It can also do this in daemon mode.

These two runtime modes are mutually exclusive, if the program is placed in
tap mode (using the -I switch) then logging to disk is disabled.

%files
%defattr(-, root, root)
%doc README COPYING
%attr(0700,root,root) %{_sbindir}/%{name}

#-----------------------------------------------------------------------------
%prep
%autosetup -p1 -n Daemonlogger-%{version}

%build
%configure --with-libpcap-libraries=%{_libdir}/
%make

%install
install -D -m 0700 %{name} %{buildroot}%{_sbindir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 932 |21cr|dagrab-0.3.5-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: dagrab
Summary: A CD ripper
Version: 0.3.5
Release: 15
Source: %{name}-%{version}.tar.bz2
UrL: http://web.tiscalinet.it:/marcellou/dagrab.html
Group: Sound
License: GPL

%description
Dagrab is a digital audio grabber designed to rip sound tracks from an audio 
cd to wave files.

%prep

%setup -q 

%build
%make

%install
rm -rf $RPM_BUILD_ROOT

install -m 755 -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 dagrab $RPM_BUILD_ROOT%{_bindir}/
install -m 755 -d $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 dagrab.1 $RPM_BUILD_ROOT%{_mandir}/man1/

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 933 |21cr|dahdi-2.7.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _disable_ld_as_needed 1

%define progs dahdi_diag fxstest hdlcgen hdlcstress hdlctest hdlcverify patgen patlooptest pattest timertest

%define major 2
%define libname	%mklibname tonezone %{major}
%define devname %mklibname tonezone -d

%global __requires_exclude /bin/true

Summary:	Userspace tools and DAHDI kernel modules

Name:		dahdi
Version:	2.7.0.2
Release:	2
Group:		System/Kernel and hardware
License:	GPLv2+ and LGPLv2+
Url:		http://www.asterisk.org/
Source0:	https://downloads.asterisk.org/pub/telephony/dahdi-tools/releases/dahdi-tools-%{version}.tar.gz
# this is original tarball with stripped binary firmware
Source1:	dahdi-linux-%{version}.tar.xz
Patch0:		dahdi-tools-mdv.diff
Patch1:		dahdi-genudevrules-2.2.0.1.diff
Patch2:		dahdi-2.6.1-rosa-null.patch
Patch3:		dahdi-2.6.1-rosa-no_blobs.patch
Patch4:		dahdi-undefined-reference.patch
BuildRequires:	ppp-devel
BuildRequires:	pkgconfig(libnewt)
BuildRequires:	pkgconfig(libusb)
BuildConflicts:	libtonezone-devel

%description
DAHDI stands for Digium Asterisk Hardware Device Interface. This package
provides the userspace tools to configure the DAHDI kernel modules and the
kernel modules. DAHDI is the replacement for Zaptel, which must be renamed due
to trademark issues.

%package	tools
Summary:	Userspace tools to configure the DAHDI kernel modules

Group:		System/Kernel and hardware
Provides:	zaptel-tools = %{version}-%{release}

%description	tools
DAHDI stands for Digium Asterisk Hardware Device Interface.

This package contains the userspace tools to configure the DAHDI kernel
modules. DAHDI is the replacement for Zaptel, which must be renamed due to
trademark issues.

The DAHDI Telephony Interface drivers is contained in the kernel-dahdi
(or dkms) package.

%package -n	%{libname}
Summary:	The shared DAHDI Library

Group:		System/Libraries

%description -n	%{libname}
DAHDI stands for Digium Asterisk Hardware Device Interface. This package
contains the userspace tools to configure the DAHDI kernel modules. DAHDI is
the replacement for Zaptel, which must be renamed due to trademark issues.

This package contains libraries for accessing DAHDI hardware.

The DAHDI drivers is contained in the kernel-dahdi (or dkms) package.

%package -n	%{devname}
Summary:	Development files for the DAHDI Library

Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	tonezone-devel = %{EVRD}
Provides:	dahdi-devel = %{EVRD}
Provides:	libtonezone-devel = %{EVRD}

%description -n	%{devname}
DAHDI stands for Digium Asterisk Hardware Device Interface. This package
contains the userspace tools to configure the DAHDI kernel modules. DAHDI is
the replacement for Zaptel, which must be renamed due to trademark issues.

This package contains the tonezone library and the development headers for
DAHDI.

%package -n	perl-Dahdi
Summary:	Interface to Dahdi information

Group:		Development/Perl

%description -n	perl-Dahdi
DAHDI stands for Digium Asterisk Hardware Device Interface. This package
contains the userspace tools to configure the DAHDI kernel modules. DAHDI is
the replacement for Zaptel, which must be renamed due to trademark issues.

This package allows access from Perl to information about Dahdi hardware and
loaded Dahdi devices.

%package -n	dkms-dahdi
Summary:	Kernel drivers for the Digium Asterisk Hardware Device Interface (DAHDI)

Group:		System/Kernel and hardware
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires(post): rpm-helper
Requires(preun): rpm-helper
Requires(post):	dkms
Requires(preun):	dkms
Requires:	dahdi-tools >= %{version}
Requires:	sethdlc >= 1.15
Recommends:	dahdi-firmware >= %{version}
Provides:	dkms-zaptel = %{version}-%{release}

%description -n	dkms-dahdi
DAHDI stands for Digium Asterisk Hardware Device Interface.

This package contains the kernel modules for DAHDI. For the required 
userspace tools see the package dahdi-tools.

%prep

%setup -q -n dahdi-tools-%{version} -a1
ln -s dahdi-linux-%{version}/include include

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type d -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;
		
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done
%patch0 -p1 -b .mdv
pushd dahdi-linux-%{version}
%patch1 -p0 -b .udevrules
%patch3 -p1
popd
%patch2 -p1
pushd dahdi-linux-%{version}/drivers/dahdi
%patch2 -p2
popd
%patch4 -p1

%{__perl} -pi -e 's/chkconfig:\s([0-9]+)\s([0-9]+)\s([0-9]+)/chkconfig: - \2 \3/' dahdi.init

%build

%configure \
	--disable-static \
	--with-dahdi=`pwd` \
	--with-newt=%{_prefix} \
	--with-usb=%{_prefix} \
	--without-selinux \
	--with-ppp=%{_prefix}

%make

for prog in %progs; do
    %make $prog
done

%install
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{buildroot}%{_includedir}

make install config DESTDIR=%{buildroot} PERLLIBDIR=%{perl_vendorlib}

for prog in %progs; do
    install -m0755 $prog %{buildroot}%{_sbindir}/
done

# fix one conflicting file with tetex
mv %{buildroot}%{_sbindir}/patgen %{buildroot}%{_sbindir}/%{name}-patgen

find %{buildroot} -name '*.a' -exec rm -f {} ';'

ln -sf ../../..%{_datadir}/dahdi/xpp_fxloader %{buildroot}%{_sysconfdir}/hotplug/usb/xpp_fxloader

pushd dahdi-linux-%{version}
    make DESTDIR=%{buildroot} \
	install-include \
	install-devices \
	install-xpp-firm \
	HOTPLUG_FIRMWARE=yes \
	DYNFS=yes \
	UDEVRULES=yes \
	DOWNLOAD=echo \
	DAHDI_MODULES_EXTRA="cwain.o qozap.o ztgsm.o"
popd

for file in %{buildroot}/etc/udev/rules.d/*.rules; do
  name=`basename $file`
  mv $file %{buildroot}/etc/udev/rules.d/40-$name
done

install -d %{buildroot}/usr/src/dahdi-%{version}-%{release}
cp	dahdi-linux-%{version}/Makefile \
	dahdi-linux-%{version}/.version \
	%{buildroot}/usr/src/dahdi-%{version}-%{release}/

cp -r	dahdi-linux-%{version}/build_tools \
	dahdi-linux-%{version}/drivers \
	dahdi-linux-%{version}/include \
	%{buildroot}/usr/src/dahdi-%{version}-%{release}/

# Remove files that produce weird dependencies
rm	%{buildroot}/usr/src/dahdi-%{version}-%{release}/drivers/dahdi/oct612x/get_discards

cat > %{buildroot}/usr/src/dahdi-%{version}-%{release}/dkms.conf <<EOF
PACKAGE_VERSION="%{version}-%{release}"

# Items below here should not have to change with each driver version
PACKAGE_NAME="dahdi"
MAKE[0]="make modules KERNVER=\$kernelver DOWNLOAD=echo"
CLEAN="make KERNVER=\$kernelver clean DOWNLOAD=echo"

BUILT_MODULE_NAME[0]="dahdi"
BUILT_MODULE_LOCATION[0]="drivers/dahdi/"
DEST_MODULE_LOCATION[0]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[1]="dahdi_dynamic"
BUILT_MODULE_LOCATION[1]="drivers/dahdi/"
DEST_MODULE_LOCATION[1]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[2]="dahdi_dynamic_eth"
BUILT_MODULE_LOCATION[2]="drivers/dahdi/"
DEST_MODULE_LOCATION[2]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[3]="dahdi_dynamic_loc"
BUILT_MODULE_LOCATION[3]="drivers/dahdi/"
DEST_MODULE_LOCATION[3]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[4]="dahdi_echocan_jpah"
BUILT_MODULE_LOCATION[4]="drivers/dahdi/"
DEST_MODULE_LOCATION[4]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[5]="dahdi_echocan_kb1"
BUILT_MODULE_LOCATION[5]="drivers/dahdi/"
DEST_MODULE_LOCATION[5]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[6]="dahdi_echocan_mg2"
BUILT_MODULE_LOCATION[6]="drivers/dahdi/"
DEST_MODULE_LOCATION[6]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[7]="dahdi_echocan_sec"
BUILT_MODULE_LOCATION[7]="drivers/dahdi/"
DEST_MODULE_LOCATION[7]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[8]="dahdi_echocan_sec2"
BUILT_MODULE_LOCATION[8]="drivers/dahdi/"
DEST_MODULE_LOCATION[8]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[9]="dahdi_transcode"
BUILT_MODULE_LOCATION[9]="drivers/dahdi/"
DEST_MODULE_LOCATION[9]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[10]="pciradio"
BUILT_MODULE_LOCATION[10]="drivers/dahdi/"
DEST_MODULE_LOCATION[10]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[11]="tor2"
BUILT_MODULE_LOCATION[11]="drivers/dahdi/"
DEST_MODULE_LOCATION[11]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[12]="wcb4xxp"
BUILT_MODULE_LOCATION[12]="drivers/dahdi/wcb4xxp/"
DEST_MODULE_LOCATION[12]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[13]="wcfxo"
BUILT_MODULE_LOCATION[13]="drivers/dahdi/"
DEST_MODULE_LOCATION[13]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[14]="wct1xxp"
BUILT_MODULE_LOCATION[14]="drivers/dahdi/"
DEST_MODULE_LOCATION[14]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[15]="wct4xxp"
BUILT_MODULE_LOCATION[15]="drivers/dahdi/wct4xxp/"
DEST_MODULE_LOCATION[15]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[16]="wctc4xxp"
BUILT_MODULE_LOCATION[16]="drivers/dahdi/wctc4xxp/"
DEST_MODULE_LOCATION[16]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[17]="wctdm"
BUILT_MODULE_LOCATION[17]="drivers/dahdi/"
DEST_MODULE_LOCATION[17]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[18]="wctdm24xxp"
BUILT_MODULE_LOCATION[18]="drivers/dahdi/wctdm24xxp/"
DEST_MODULE_LOCATION[18]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[19]="wcte11xp"
BUILT_MODULE_LOCATION[19]="drivers/dahdi/"
DEST_MODULE_LOCATION[19]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[20]="wcte12xp"
BUILT_MODULE_LOCATION[20]="drivers/dahdi/wcte12xp/"
DEST_MODULE_LOCATION[20]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[21]="xpd_fxo"
BUILT_MODULE_LOCATION[21]="drivers/dahdi/xpp/"
DEST_MODULE_LOCATION[21]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[22]="xpd_fxs"
BUILT_MODULE_LOCATION[22]="drivers/dahdi/xpp/"
DEST_MODULE_LOCATION[22]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[23]="xpd_pri"
BUILT_MODULE_LOCATION[23]="drivers/dahdi/xpp/"
DEST_MODULE_LOCATION[23]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[24]="xpp"
BUILT_MODULE_LOCATION[24]="drivers/dahdi/xpp/"
DEST_MODULE_LOCATION[24]="/kernel/drivers/telephony/dahdi"

BUILT_MODULE_NAME[25]="xpp_usb"
BUILT_MODULE_LOCATION[25]="drivers/dahdi/xpp/"
DEST_MODULE_LOCATION[25]="/kernel/drivers/telephony/dahdi"

AUTOINSTALL=yes
EOF

# cleanup
rm -f %{buildroot}%{_sbindir}/sethdlc
rm -r %{buildroot}/builddir
rm -rf %{buildroot}/usr/lib/hotplug/firmware
rm -f drivers/dahdi/firmware/*.{bin,gz}
rm -f %{buildroot}%{_libdir}/libtonezone.so.1.0
rm -f %{buildroot}%{_libdir}/libtonezone.so.1

%pre tools
%_pre_useradd dahdi /usr/share/dahdi /sbin/nologin

%postun tools
%_postun_userdel dahdi

%post -n dkms-dahdi
dkms add	-m dahdi -v %{version}-%{release} --rpm_safe_upgrade &&
dkms build	-m dahdi -v %{version}-%{release} --rpm_safe_upgrade &&
dkms install	-m dahdi -v %{version}-%{release} --rpm_safe_upgrade --force
%_post_service dahdi

%preun -n dkms-dahdi
dkms remove -m	dahdi -v %{version}-%{release} --rpm_safe_upgrade --all
%_preun_service dahdi

%pre -n dkms-dahdi
%_pre_useradd asterisk /var/lib/asterisk /bin/sh

%postun -n dkms-dahdi
%_postun_userdel asterisk

%files tools
%doc README UPGRADE.txt xpp/README.Astribank 
%dir %{_sysconfdir}/dahdi
%config(noreplace) %{_sysconfdir}/dahdi/genconf_parameters
%config(noreplace) %{_sysconfdir}/dahdi/init.conf
%config(noreplace) %{_sysconfdir}/dahdi/modules
%config(noreplace) %{_sysconfdir}/dahdi/system.conf
%{_sysconfdir}/hotplug/usb/xpp_fxloader
%config(noreplace) %{_sysconfdir}/hotplug/usb/xpp_fxloader.usermap
%config(noreplace) %{_sysconfdir}/modprobe.d/dahdi.blacklist.conf
%config(noreplace) %{_sysconfdir}/modprobe.d/dahdi.conf
%{_initrddir}/dahdi
%{_sbindir}/astribank_allow
%{_sbindir}/astribank_hexload
%{_sbindir}/astribank_is_starting
%{_sbindir}/astribank_tool
%{_sbindir}/dahdi_cfg
%{_sbindir}/dahdi_diag
%{_sbindir}/dahdi_genconf
%{_sbindir}/dahdi_hardware
%{_sbindir}/dahdi_maint
%{_sbindir}/dahdi_monitor
%{_sbindir}/dahdi_registration
%{_sbindir}/dahdi_scan
%{_sbindir}/dahdi_speed
%{_sbindir}/dahdi_test
%{_sbindir}/dahdi_tool
%{_sbindir}/dahdi-patgen
%{_sbindir}/fxotune
%{_sbindir}/fxstest
%{_sbindir}/hdlcgen
%{_sbindir}/hdlcstress
%{_sbindir}/hdlctest
%{_sbindir}/hdlcverify
%{_sbindir}/lsdahdi
%{_sbindir}/patlooptest
%{_sbindir}/pattest
%{_sbindir}/timertest
%{_sbindir}/twinstar
%{_sbindir}/xpp_blink
%{_sbindir}/xpp_sync
%{_datadir}/dahdi/astribank_hook
%{_datadir}/dahdi/waitfor_xpds
%{_datadir}/dahdi/xpp_fxloader
%{_mandir}/man8/astribank_allow.8*
%{_mandir}/man8/astribank_hexload.8*
%{_mandir}/man8/astribank_is_starting.8*
%{_mandir}/man8/astribank_tool.8*
%{_mandir}/man8/dahdi_cfg.8*
%{_mandir}/man8/dahdi_genconf.8*
%{_mandir}/man8/dahdi_hardware.8*
%{_mandir}/man8/dahdi_maint.8*
%{_mandir}/man8/dahdi_monitor.8*
%{_mandir}/man8/dahdi_registration.8*
%{_mandir}/man8/dahdi_scan.8*
%{_mandir}/man8/dahdi_test.8*
%{_mandir}/man8/dahdi_tool.8*
%{_mandir}/man8/fxotune.8*
%{_mandir}/man8/lsdahdi.8*
%{_mandir}/man8/twinstar.8*
%{_mandir}/man8/xpp_blink.8*
%{_mandir}/man8/xpp_sync.8*

%files -n %{libname}
%doc README LICENSE LICENSE.LGPL
%{_libdir}/libtonezone.so.%{major}*

%files -n %{devname}
%dir %{_includedir}/dahdi
%{_includedir}/dahdi/*.h
%{_libdir}/libtonezone.so

%files -n perl-Dahdi
%{perl_vendorlib}/Dahdi
%{perl_vendorlib}/Dahdi.pm

%files -n dkms-dahdi
%doc dahdi-linux-%{version}/README*
%doc dahdi-linux-%{version}/UPGRADE.*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/udev/rules.d/40-dahdi.rules
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/udev/rules.d/40-xpp.rules
%{_datadir}/dahdi/XppConfig.pm
%{_datadir}/dahdi/init_card_1_30
%{_datadir}/dahdi/init_card_2_30
%{_datadir}/dahdi/init_card_3_30
%{_datadir}/dahdi/init_card_4_30
%{_datadir}/dahdi/init_card_5_30
/usr/src/dahdi-%{version}-%{release}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 934 |21cr|dailystrips-1.0.28-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		dailystrips
Summary:	A program to automatically download your favorite online comic strips 
Version:	1.0.28
Release:	10
# (misc) Don't really know where to put it...
Group:		Toys
Source:		%{name}-%{version}.tar.bz2
# (misc) Use Date::Manip instead of Date::Parse
Patch0:		%{name}-1.0.28-module_date.patch.bz2
Url:		http://dailystrips.sf.net/
License:	GPL
BuildArch:	noarch
Requires:	perl > 5.6
Requires:	perl-libwww-perl perl-Date-Manip

%description
dailystrips is a perl script to automatically download your favorite online
comics from the web. It currently supports over 300 comics and offers a
'local' mode in which strips are downloaded and saved locally to speed
access time.

%prep
%setup -q
%patch -p1 

cat <<EOF > README.mandrake
The main executable is patched to use the module Date::Manip
instead of Date::Parse, since only the first is packaged for Mandrake.
Date::Manip can parse more date format, see perldoc Date::Manip.
EOF

%install

install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}
install -m755 %{name}-clean -D %{buildroot}%{_bindir}/%{name}-clean
install -m755 %{name}-update -D %{buildroot}%{_bindir}/%{name}-update

mkdir -p  %{buildroot}/%{_datadir}/%{name}
cp strips.def archive.def  %{buildroot}/%{_datadir}/%{name}

%clean

%files
%defattr(-,root,root,0755)
%doc README BUGS CHANGELOG COPYING INSTALL README.LOCAL TODO README.dailystrips-clean README.DEFS README.mandrake
%{_bindir}/*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 935 |21cr|dante-1.4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libname_orig                            lib%{name}
%define libname                 %mklibname      %{name} %{major}
%define libnamedev              %mklibname      %{name} %{major} -d

%global __requires_exclude GLIBC_PRIVATE

Summary:        A free Socks v4/v5 client implementation
Name:           dante
Version:        1.4.3
Release:        2
License:        BSD-like
Group:          Networking/Other
URL:            http://www.inet.no/dante/

Source0:        http://www.inet.no/dante/files/%{name}-%{version}.tar.gz
Source1:        %{name}-sockd.init
Source100:      %{name}.rpmlintrc
Patch0:         0002-osdep-m4-Remove-getaddrinfo-too-low-checks.patch

BuildRequires:  flex bison
BuildRequires:  perl-base
BuildRequires:  pam-devel
BuildRequires:  tcp_wrappers-devel

Requires:       %{libname} = %{version}

%description
Dante is a free implementation of the proxy protocols socks version 4,
socks version 5 (rfc1928) and msproxy. It can be used as a firewall
between networks. It is being developed by Inferno Nettverk A/S, a
Norwegian consulting company. Commercial support is available.

This package contains the dynamic libraries required to "socksify"
existing applications to become socks clients.

%package        server
Summary:        A free Socks v4/v5 server implementation
Group:          System/Servers
Requires(pre):  rpm-helper

%package -n     %{libname}
Summary:        Library for Dante
Group:          System/Libraries

%description -n %{libname}
Library for Dante

%description    server
This package contains the socks proxy daemon and its documentation.
The sockd is the server part of the Dante socks proxy package and
allows socks clients to connect through it to the network.

%package -n     %{libnamedev}
Summary:        Development libraries for dante
Group:          Development/C
Provides:       %{libname_orig}-devel = %{EVRD}
Provides:       %{name}-devel = %{EVRD}
Requires:       %{libname} = %{version}

%description -n %{libnamedev}
Additional libraries required to compile programs that use dante.

%package -n     %{libnamestaticdev}
Summary:        Static libraries for dante
Group:          Development/C
Provides:       %{libname_orig}-static-devel = %{EVRD}
Provides:       %{libname_orig}-static = %{EVRD}
Provides:       %{name}-static-devel = %{EVRD}
Provides:       %{name}-static = %{EVRD}

%description -n %{libnamestaticdev}
Static libraries for dante

%prep
%autosetup -p1

%build
%configure --enable-shared --disable-static
%make

%install
%makeinstall

#perl -pi -e "s/libdl.so/`basename \`readlink %{_libdir}/libdl.so\``/;s/libdsocks.so/libdsocks.so.%major/" %{buildroot}%{_bindir}/socksify

install -m644 example/socks.conf -D %{buildroot}%{_sysconfdir}/socks.conf
install -m644 example/sockd.conf -D %{buildroot}%{_sysconfdir}/sockd.conf

install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/sockd
install -d %{buildroot}%{_sysconfdir}/sysconfig
cat <<EOF > %{buildroot}%{_sysconfdir}/sysconfig/sockd
# Any extra option to pass to sockd
SOCKD_EXTRA_OPTIONS=
EOF

chmod +x %{buildroot}%{_libdir}/lib*.so*

%post server
%_post_service sockd

%preun server
%_preun_service sockd

%files
%doc BUGS CREDITS LICENSE NEWS README SUPPORT VERSION
%doc doc/README* doc/*.protocol doc/rfc*
%{_bindir}/socksify
%{_mandir}/man1/socksify.1*
%{_mandir}/man5/socks.conf.5*
%config(noreplace) %{_sysconfdir}/socks.conf

%files -n %{libname}
%{_libdir}/*.so.*

%files server
%{_sbindir}/sockd
%{_mandir}/man5/sockd.conf.5*
%{_mandir}/man8/*
%attr(0755,root,root) %{_initrddir}/sockd
%config(noreplace) %{_sysconfdir}/sockd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/sockd

%files -n %{libnamedev}
%{_libdir}/*.so
%{_includedir}/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 936 |21cr|daphne-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multiple Arcade Laserdisc Emulator
Name:		daphne
Version:	1.0
Release:	2
License:	GPL
Group:		Emulators
Source0:	%{name}-%{version}-src.tar.bz2
Source1:	%{name}-1.0beta-linux-data.tar.gz
Patch0:		daphne.dif
Patch1:		daphne-gl.patch
BuildRequires:	fdupes
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	glew-devel
BuildRequires:	libogg-devel
BuildRequires:	libvorbis-devel
BuildRequires:	mesaglu-devel
BuildRequires:	zlib-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
Play the original versions of many laserdisc arcade game.

%files
%{_gamesbindir}/%{name}
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n src -a 1
%patch0 -p1
%patch1 -p1

%build
cp Makefile.vars.linux_x86 Makefile.vars
make %{?jobs:-j%jobs} \
%ifarch %{ix86}
I386FLAGS="-DNATIVE_CPU_X86 -DMMX_RGB2YUV -lGL -lGLU" USE_MMX=1
%else
I386FLAGS="-lGL -lGLU"
%endif
cd vldp2
./configure \
%ifnarch %{ix86}
	--disable-accel-detect
%endif

%ifarch %{ix86}
make -f Makefile.linux DFLAGS="%{optflags}"
%else
make -f Makefile.linux DFLAGS="%{optflags} -fPIC"
%endif

%install
# install section
install -D -m 755 ../daphne.bin %{buildroot}%{_libdir}/%{name}/%{name}
install -m 755 ../libvldp2.so %{buildroot}%{_libdir}/%{name}
cd daphne
cp -a pics roms sound %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_gamesbindir}
cat <<EOT >%{buildroot}%{_gamesbindir}/%{name}
#!/bin/sh
cd %{_libdir}/%{name}
exec ./daphne "\$@"
EOT
chmod 755 %{buildroot}%{_gamesbindir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 937 |21cr|dar-2.7.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 6000
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Shell command to back up directory trees and files
Name:		dar
Version:	2.7.7
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://dar.linux.free.fr/
Source0:	http://downloads.sourceforge.net/project/dar/%{name}/v%{version}/%{name}-%{version}.tar.gz
Patch0:	dar-2.4.3-mdv-shebang.patch
Patch1:	dar-2.7.6-gettext.patch
Patch2:	dar-2.7.7-linkage.patch
BuildRequires:	doxygen >= 1.3.0
BuildRequires:	groff
BuildRequires:	xz
BuildRequires:	gettext-devel
BuildRequires:	glibc-static-devel
BuildRequires:	librsync-devel
BuildRequires:	libstdc++-static-devel
BuildRequires:	openssl-static-devel
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(gpgme) >= 1.2.0
BuildRequires:	pkgconfig(libacl)
BuildRequires:	pkgconfig(libargon2)
BuildRequires:	pkgconfig(libattr)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt) >= 1.6.0
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libthreadar)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(zlib)

%description
DAR is a command line tool to backup a directory tree and files. DAR is able
to make differential backups, split them over a set of disks or files of a
given size, use compression, filter files or subtrees to be saved or not saved
directly access and restore given files. DAR is also able to handle extended
attributes, and can make remote backups through an ssh session for example.
Finally, DAR handles save and restore of hard and symbolic links.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%doc README.samples doc/samples/cdbackup.sh doc/samples/darrc_sample doc/samples/sample1.txt
%doc doc/mini-howto/dar-differential-backup-mini-howto.*.html
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}dar5 < 2.4.8-3
%rename	%{_lib}dar5

%description -n %{libname}
DAR is a command line tool to backup a directory tree and files. DAR is
able to make differential backups, split them over a set of disks or files
of a given size, use compression, filter files or subtrees to be saved or
not saved, directly access and restore given files. DAR is also able
to handle extended attributes, and can make remote backups through an
ssh session for example. Finally, DAR handles save and restore of hard
and symbolic links.

%files -n %{libname}
%doc AUTHORS
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
DAR is a command line tool to backup a directory tree and files. DAR is
able to make differential backups, split them over a set of disks or files
of a given size, use compression, filter files or subtrees to be saved or
not saved, directly access and restore given files. DAR is also able
to handle extended attributes, and can make remote backups through an
ssh session for example. Finally, DAR handles save and restore of hard
and symbolic links.

%files -n %{devname}
%doc AUTHORS
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/lib%{name}64.pc

#----------------------------------------------------------------------------

%prep
%setup -q
# Wrong perms are causing patching to silently fail
chmod 0644 configure.ac Makefile.am
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build
autoreconf -vfi
%configure \
	--disable-upx \
	--disable-static
%make


%install
# Fix-up docs
install -m 644 doc/samples/README README.samples

%makeinstall_std

# Fix perms
chmod -x %{buildroot}%{_datadir}/%{name}/samples/MyBackup.sh.tar.gz

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 938 |21cr|darkice-1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Live IceCast / ShoutCast streamer
Name:		darkice
Version:	1.4
Release:	4
License:	GPLv3+
Group:		Sound
Url:		http://www.darkice.org/
# The devel tree really is here: https://github.com/rafael2k/darkice, but it contains much more
# than darkice only. Provide a custom source tarball from the needed git tag
Source0:	%{name}-%{version}.tar.xz
Patch0:	darkice-1.4-fix-example-config-to-make-working-with-Icecast2.patch
Patch1:	darkice-1.4-fix-lame-and-faac-finding-on-arm.patch
Patch2:	darkice-1.4-change-faac-object-type-to-low.patch
Patch3:	darkice-1.4-handle-gracefully-exceptions.patch
BuildRequires:	lame-devel
BuildRequires:	libfaac-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(libaacs)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(twolame)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisenc)

%description
This is an IceCast, IceCast2 and ShoutCast live audio streamer. It takes audio
input from a sound card, encodes it into mp3 and/or Ogg Vorbis, and sends the
mp3 stream to one or more IceCast and/or ShoutCast servers, the Ogg Vorbis
stream to one or more IceCast2 servers.

%files
%doc COPYING ChangeLog README TODO AUTHORS
%config(noreplace) %{_sysconfdir}/%{name}.cfg
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.cfg.5*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
./autogen.sh
export CXXFLAGS="%{optflags} -std=gnu++11"
# For aacplus we need libaacplus, but it has legal issues:
# see http://tipok.org.ua/node/17
%configure \
	    --with-lame \
	    --without-aacplus
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 939 |21cr|darkplaces-20220924-0.git58b65b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil

%define debug_package %{nil}

%define commit 58b65b2db26fd701bca24f8c44237f1f8d577097
%define commit_short %(echo %{commit} | head -c6)

Summary:	Multiplayer, deathmatch oriented first person shooter engine
Name:		darkplaces
Version:	20220924
Release:	0.git%{commit_short}.1
Epoch:		1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://icculus.org/twilight/darkplaces/
Source0:	https://github.com/DarkPlacesEngine/darkplaces/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ode)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
Requires:	curl

%description
Darkplaces is a modern, powerful first-person shooter engine.

%files
%doc COPYING darkplaces.txt
%{_gamesbindir}/darkplaces-sdl

#----------------------------------------------------------------------------

%package server
Summary:	Dedicated server for the darkplaces engine
Group:		Games/Arcade
Requires:	curl

%description server
Darkplaces is a modern, powerful first-person shooter engine.

This is the darkplaces dedicated server required to host network games.

%files server
%doc COPYING darkplaces.txt
%{_gamesbindir}/darkplaces-dedicated

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}
%apply_patches

%build
make \
	release \
	OPTIM_RELEASE="%{optflags}" \
	LINK_TO_CURL=1 \
	LINK_TO_FREETYPE2=1 \
	LINK_TO_LIBJPEG=1 \
	LINK_TO_LIBVORBIS=1 \
	LINK_TO_MODPLUG=1 \
	LINK_TO_ODE=1 \
	LINK_TO_PNG=1 \
	LINK_TO_THEORA=1 \
	LINK_TO_ZLIB=1 \
	DISABLE_OFFSCREEN_GECKO=1 \
	DISABLE_D0_BLIND_ID=1 \
	DISABLE_D0_RIJNDAEL=1

%install
# Install the main programs
mkdir -p %{buildroot}%{_gamesbindir}
install -m 0755 darkplaces-sdl \
	%{buildroot}%{_gamesbindir}/darkplaces-sdl
install -m 0755 darkplaces-dedicated \
	%{buildroot}%{_gamesbindir}/darkplaces-dedicated

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 940 |21cr|davmail-4.7.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define rev 2427

Summary:	DavMail POP/IMAP/SMTP/Caldav/Carddav/LDAP Exchange Gateway
Name:		davmail
Version:	4.7.2
Release:	6
License:	GPLv2+
Group:		Networking/Mail
Url:		http://davmail.sourceforge.net/
Source0:	http://downloads.sourceforge.net/davmail/%{name}-linux-x86-%{version}-%{rev}.tgz
# Source0-md5:	95ccac520040732e078556b238aa37b9
Source1:	http://downloads.sourceforge.net/davmail/%{name}-linux-x86_64-%{version}-%{rev}.tgz
# Source1-md5:	aa4c2d3437046dbce60cdc92839fdb1b
Patch0:		%{name}-base.patch
Requires:	java

%description
DavMail is a POP/IMAP/SMTP/Caldav/Carddav/LDAP exchange gateway
allowing users to use any mail/calendar client (e.g. Thunderbird with
Lightning or Apple iCal) with an Exchange server, even from the
internet or behind a firewall through Outlook Web Access.

%files
%{_bindir}/davmail
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/davmail
%{_datadir}/%{name}/davmail.jar
%{_datadir}/%{name}/lib

#----------------------------------------------------------------------------

%prep
%setup -qcT

%ifarch %{ix86}
tar zxf %{SOURCE0} --strip-components=1
%else
tar zxf %{SOURCE1} --strip-components=1
%endif
%patch0 -p0

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a lib %{buildroot}%{_datadir}/%{name}/
install -m 755 davmail.sh %{buildroot}%{_datadir}/%{name}/davmail
install -m 644 davmail.jar %{buildroot}%{_datadir}/%{name}/davmail.jar

pushd %{buildroot}%{_bindir}
ln -sf ../..%{_datadir}/%{name}/davmail davmail
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 941 |21cr|db1-1.85-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname db %{major}
%define libname1 %mklibname db1_ %{major}
%define devname %mklibname db -d

Summary:	The BSD database library for C (version 1)
Name:		db1
Version:	1.85
Release:	30
Epoch:		1
License:	BSD
Group:		System/Libraries
Url:		ftp://ftp.sleepycat.com/releases
Source0:	db.%{version}.tar.bz2
Patch0:		db.%{version}.patch
Patch1:		db.%{version}-include.patch
Patch2:		db.1.85-LDFLAGS.diff

%description
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
It should be installed if compatibility is needed with databases created
with db1.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The BSD database library for C (version 1)
Group:		System/Libraries
Conflicts:	%{_lib}db1 < 1:1.85-27
Obsoletes:	%{_lib}db1 < 1:1.85-27

%description -n %{libname}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
It should be installed if compatibility is needed with databases created
with db1.

%files -n %{libname}
%{_libdir}/libdb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname1}
Summary:	The BSD database library for C (version 1)
Group:		System/Libraries
Conflicts:	%{_lib}db1 < 1:1.85-27

%description -n %{libname1}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
It should be installed if compatibility is needed with databases created
with db1.

%files -n %{libname1}
%{_libdir}/libdb1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libs/header files for Berkeley DB (version 1) library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libname1} = %{EVRD}
Provides:	db1-devel = %{EVRD}
Conflicts:	%{_lib}db1-devel < 1:1.85-27
Obsoletes:	%{_lib}db1-devel < 1:1.85-27

%description -n %{devname}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB includes B tree, Hashing, Fixed and Variable-length
record access methods.

This package contains the header files, libraries, and documentation for
building programs which use Berkeley DB.

%files -n %{devname}
%doc docs/*.ps.bz2 README changelog
%{_includedir}/db1
%{_libdir}/libdb1.a
%{_libdir}/libdb1.so

#----------------------------------------------------------------------------

%package tools
Summary:	Tools for Berkeley DB (version 1) library
Group:		Databases

%description tools
Tools to manipulate Berkeley database (version 1) databases.

%files tools
%{_bindir}/db1_dump185

#----------------------------------------------------------------------------

%prep
%setup -q -n db.%{version}
%patch0 -p1
%patch1 -p1 -b .old
%patch2 -p0 -b .LDFLAGS

%build
bzip2 docs/*.ps
cd PORT/linux
# otherwise "db1/db.h" not found
ln -s include db1
%make OORG="%{optflags}" LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}%{_includedir}/%{name}
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}/%{_bindir}

sed -n '/^\/\*-/,/^ \*\//s/^.\*.\?//p' include/db.h | grep -v '^@.*db\.h' > LICENSE

cd PORT/linux
sover=`echo libdb.so.* | sed 's/libdb.so.//'`
install -m644 libdb.a			%{buildroot}/%{_libdir}/libdb1.a
install -m755 libdb.so.$sover		%{buildroot}/%{_libdir}/libdb1.so.$sover
ln -sf libdb1.so.$sover 		%{buildroot}/%{_libdir}/libdb1.so
ln -sf libdb1.so.$sover			%{buildroot}/%{_libdir}/libdb.so.$sover
install -m644 ../include/ndbm.h		%{buildroot}/%{_includedir}/db1/
install -m644 ../../include/db.h	%{buildroot}/%{_includedir}/db1/
install -m644 ../../include/mpool.h	%{buildroot}/%{_includedir}/db1/
install -s -m755 db_dump185		%{buildroot}/%{_bindir}/db1_dump185

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 942 |21cr|dbeaver-3.7.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Free and open source database management tool
Name:		dbeaver
Version:	3.7.3
Release:	4
License:	GPLv2
Group:		Development/Tools
Url:		http://dbeaver.jkiss.org/
Requires:	java >= 1.7.0
BuildRequires:	unzip
%ifarch %{ix86}
Source0:	http://dbeaver.jkiss.org/files/%{name}-ee-%{version}-linux.gtk.x86.tar.gz
%endif
%ifarch %{x86_64}
Source0:	http://dbeaver.jkiss.org/files/%{name}-ee-%{version}-linux.gtk.x86_64.tar.gz
%endif
Source1:	%{name}.desktop
Source99:	%{name}.rpmlintrc
ExclusiveArch:	%{ix86} %{x86_64}

%description
DBeaver is free and open source universal database tool 
for developers and database administrators.

%prep
%setup -qc %{name}

%build

%install
mkdir -p %{buildroot}/opt/%{name}

# Copy all files from archive into /opt/%{name} dir
cp -Rp * %{buildroot}/opt/%{name}/
install -Dm644 %{buildroot}/opt/%{name}/icon.xpm %{buildroot}/%{_datadir}/icons/%{name}.xpm

# install resources
install -Dm644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop

# Add antialiasing settings
echo -Dawt.useSystemAAFontSettings=on >> init.xargs

mkdir -p %{buildroot}/%{_bindir}
cd %{buildroot}/%{_bindir}
ln -snf ../../opt/%{name}/%{name}.sh %{name}

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.xpm
/opt/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 943 |21cr|dbench-4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Filesystem benchmark similar to Netbench
Name:		dbench
Version:	4.0
Release:	6
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://samba.org/ftp/tridge/dbench/README
Source0:	http://samba.org/ftp/tridge/dbench/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(popt)

%description
dbench is a filesystem benchmark that generates load patterns similar
to those of the commercial Netbench benchmark, but without requiring
a lab of Windows load generators to run. It is now considered a de-facto
standard for generating load on the Linux VFS.

%files
%doc COPYING README
%attr(755,root,root) %{_bindir}/dbench
%attr(755,root,root) %{_bindir}/tbench
%attr(755,root,root) %{_bindir}/tbench_srv
%attr(644,root,root) %{_mandir}/man1/dbench.1.*
%attr(644,root,root) %{_mandir}/man1/tbench.1.*
%attr(644,root,root) %{_mandir}/man1/tbench_srv.1.*
%attr(644,root,root) %{_datadir}/%{name}/client.txt

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure --datadir=/usr/share/dbench
%make CC="cc %build_ldflags"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/%{name}
install -c -m 0755 dbench %{buildroot}%{_bindir}/dbench
install -c -m 0755 tbench %{buildroot}%{_bindir}/tbench
install -c -m 0755 tbench_srv %{buildroot}%{_bindir}/tbench_srv
install -c -m 0644 dbench.1 %{buildroot}%{_mandir}/man1/dbench.1
install -c -m 0644 client.txt %{buildroot}%{_datadir}/%{name}/client.txt
pushd %{buildroot}%{_mandir}/man1/
ln -sf dbench.1 tbench.1
ln -sf dbench.1 tbench_srv.1
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 944 |21cr|dbf2mysql-1.14a-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert between xBase and MySQL databases
Name:		dbf2mysql
Version:	1.14a
Release:	4
License:	GPLv2+
Group:		System/Servers
Url:		http://dbf2mysql.sourceforge.net
# We use modified sources from Debian
Source0:	http://http.debian.net/debian/pool/main/d/dbf2mysql/%{name}_%{version}.orig.tar.gz
Source1:	dbf2mysql.1
Patch0:		05-foxpro.patch
Patch1:		10-mysql.patch
Patch2:		15-README.patch
Patch3:		20-u-char.patch
#Patch4:		25-mysql-real-connect.patch
Patch5:		30-makefile
Patch6:		35_gcc-7.patch
Patch7:		remove_skipping_extchars.patch
Patch8:		strtoupperlower.patch
Patch9:		charset.patch
BuildRequires:	mariadb-devel

%description
dbf2mysql takes an xBase file and sends queries to an MySQL server to
insert it into an MySQL table.

mysql2dbf dumps a MySQL table to a dbf file.

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
export CFLAGS="%{optflags}"
%make

%install
%makeinstall_std
install -D -m644 %{SOURCE1} %{buildroot}%{_mandir}/man1/dbf2mysql.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 945 |21cr|dbtool-1.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command Line Tool for GDBM
Name:		dbtool
Version:	1.6
Release:	13
License:	GPLv2+
Group:		Databases
Url:		http://www.daemon.de/DBTOOL
Source0:	ftp://ftp.daemon.de/scip/Apps/dbtool/dbtool-%{version}.tar.bz2
Patch0:		dbtool.patch
Patch1:		dbtool-1.6-gcc411.diff
BuildRequires:	gdbm-devel
BuildRequires:	pkgconfig(libpcre)

%description
dbtool can be used to store and retrieve data in a key/value format
in a GDBM hash database. Perl compatible regular expressions are
supported both for storing and retrieving of data. It's main
advantages are the ability to maintain huge amounts of data and
speed. It also supports encrypted databases using the AES cipher
algorithm.

%files
%doc AUTHORS ChangeLog README samples
%{_bindir}/dbtool*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

# fix attribs
find samples -type f | xargs chmod 644
find samples -type d | xargs chmod 755
chmod 644 AUTHORS ChangeLog README

%build
# build the gdbm version
%configure --without-berkeley
%make CXXFLAGS="%{optflags} -Wall" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 dbtool %{buildroot}%{_bindir}/
install -m0644 dbtool.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 946 |21cr|dbus-cxx-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 2
%define libname %mklibname dbus-cxx %{major}
%define libglib %mklibname  dbus-cxx-glib %{major}
%define libqt %mklibname  dbus-cxx-qt %{major}
%define devname %mklibname %{name} -d

Summary:	Native C++ bindings for D-Bus
Name:		dbus-cxx
Version:	2.3.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://freedesktop.org/wiki/Software/dbus-c++
Source0:	https://github.com/dbus-cxx/dbus-cxx/archive/%{version}.tar.gz?/dbus-cxx-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gdkmm-2.4)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(sigc++-3.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(popt)

%description
Native C++ bindings for D-Bus for use in C++ programs.

%files
%doc COPYING AUTHORS
%{_bindir}/dbus-cxx-introspect
%{_bindir}/dbus-cxx-xml2cpp

#----------------------------------------------------------------------------

%package -n %{libqt}
Summary:	Native C++ QT5 bindings for D-Bus
Group:		System/Libraries

%description -n %{libqt}
Native C++ QT5 bindings for D-Bus for use in C++ programs.

%files -n %{libqt}
%{_libdir}/libdbus-cxx-qt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libglib}
Summary:	Native C++ glib bindings for D-Bus
Group:		System/Libraries

%description -n %{libglib}
Native C++ glib bindings for D-Bus for use in C++ programs.

%files -n %{libglib}
%{_libdir}/libdbus-cxx-glib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Native C++ bindings for D-Bus
Group:		System/Libraries

%description -n %{libname}
Native C++ bindings for D-Bus for use in C++ programs.

%files -n %{libname}
%{_libdir}/libdbus-cxx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libglib} = %{EVRD}
Requires:	%{libqt} = %{EVRD}
Requires:	%{name} >= %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc TODO
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n dbus-cxx-%{version}

%build
#export CXXFLAGS="%{optflags} -std=gnu++11"
%cmake \
	-DBUILD_TESTING=OFF \
	-DENABLE_TOOLS=ON \
	-DENABLE_GLIB_SUPPORT=ON \
	-DENABLE_QT_SUPPORT=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 947 |21cr|dbview-1.0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Dbview - view dBase files
Name: dbview
Version: 1.0.4
Release: 8
Source: %{name}-%{version}.tar.bz2
Patch: %name-patch.bz2
License: GPL
Group: Databases

%description
Dbview is a little tool that will display dBase III and IV files. 
You can also use it to convert your old .dbf files for further use with Unix.

%prep
rm -rf $RPM_BUILD_ROOT

%setup

%build
make "CFLAGS=$RPM_OPT_FLAGS -pipe"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 dbview $RPM_BUILD_ROOT%{_bindir}
install -m 644 dbview.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README dBASE
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 948 |21cr|dcaenc-3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	pluginname %{mklibname alsa-plugins}-dca
%define	libname %mklibname %{name} %major
%define	devellibname %mklibname -d %{name}

Summary:	DTS Coherent Acoustics encoder
Name:		dcaenc
Version:	3
Release:	1
License:	LGPLv2+
Group:		Sound
Url:	https://gitlab.com/patrakov/dcaenc
Source0:	https://gitlab.com/patrakov/dcaenc/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:	kernel-headers
BuildRequires:	pkgconfig(alsa) >= 1.0.11

%description
DTS Coherent Acoustics encoder. It may be useful if you want to create a DTS
CD or a DTS soundtrack for a DVD from a 6-channel PCM wav file using Linux.
Another use case is related to real-time encoding of multichannel PCM  audio
output from arbitrary Linux applications for transmission over SPDIF (see
%{pluginname} package).

%files
%doc BUGS NEWS README
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for DTS Coherent Acoustics encoder
Group:		System/Libraries

%description -n %{libname}
Libraries for DTS Coherent Acoustics encoder.

%files -n %{libname}
%doc COPYING
%{_libdir}/libdcaenc.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devellibname}
Summary:	Development files for DTS Coherent Acoustics encoder
Group:		Development/C
Provides:		%{name}-devel = %{EVRD}
Requires:  %{libname} = %{EVRD}

%description -n %{devellibname}
Development files for DTS Coherent Acoustics encoder.

%files -n %{devellibname}
%doc COPYING
%{_includedir}/%{name}.h
%{_libdir}/libdcaenc.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%package -n %{pluginname}
Summary:	DTS Coherent Acoustics encoder plugin for ALSA
Group:		Sound
Requires:	alsa-lib

%description -n %{pluginname}
DTS Coherent Acoustics encoder plugin for ALSA. It provides real-time
encoding of multichannel PCM audio output from arbitrary Linux
applications for transmission over SPDIF.

%files -n %{pluginname}
%doc COPYING
%{_libdir}/alsa-lib/libasound_module_pcm_dca.so
%{_datadir}/alsa/alsa.conf.d/dca.conf

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

mv %{buildroot}%{_datadir}/alsa/pcm %{buildroot}%{_datadir}/alsa/alsa.conf.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 949 |21cr|dcc-1.3.158-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%bcond_without sendmail

Summary:	Distributed Checksum Clearinghouse, anti-spam tool
Name:		dcc
Version:	1.3.158
Release:	3
License:	BSD-like
Group:		System/Servers
Url:		http://www.rhyolite.com/anti-spam/dcc/
Source0:	http://www.rhyolite.com/src/dcc/old/%{name}-%{version}.tar.Z
Source1:	dcc-tmpfiles.conf
Patch0:		dcc-dccd-initscript-154.diff
Patch1:		dcc-make-dcc_conf-nochwon.diff
BuildRequires:	apache-base
BuildRequires:	wget
%if %{with sendmail}
BuildRequires:	sendmail-devel
%endif
Requires:	rrdtool
Requires(post,preun):	rpm-helper rrdtool
Requires(pre,postun):	rpm-helper

%description
Distributed Checksum Clearinghouse or DCC is a cooperative,
distributed system intended to detect "bulk" mail or mail sent to
many people. It allows individuals receiving a single mail message
to determine that many other people have been sent essentially
identical copies of the message and so reject the message. It can
identify some unsolicited bulk mail using "spam traps" and other
detectors, but that is not its focus.

The DCC can be viewed as a tool for end users to enforce their
right to "opt-in" to streams of bulk mail by refusing all bulk mail
except from sources in a "white list."  White lists are generally
the responsibility of DCC clients, since only they know which bulk
mail they solicited.

NB to use DCC to reject SPAM you need to configure
%{_datadir}/dcc/dcc_conf and either use procmail or sendmail to
feed the messages to DCC

%files
%doc CHANGES  LICENSE README.misc README.homedir
%doc FAQ.html INSTALL.html cdcc.html dbclean.html dblist.html
%doc dcc.html dccd.html dccifd.html dccproc.html dccsight.html

%attr(0755,root,root) %{_sysconfdir}/cron.daily/dccd
%attr(0755,root,root) %{_initrddir}/dccd
%{_tmpfilesdir}/%{name}.conf

%config(noreplace) %attr(0600,dcc,dcc) %{_localstatedir}/lib/dcc/ids
%config(noreplace) %attr(0600,dcc,dcc) %{_localstatedir}/lib/dcc/map
%config(noreplace) %attr(0600,dcc,dcc) %{_localstatedir}/lib/dcc/map.txt
%config(noreplace) %attr(0644,dcc,dcc) %{_localstatedir}/lib/dcc/dcc_conf
%config(noreplace) %attr(0644,dcc,dcc) %{_localstatedir}/lib/dcc/flod
%config(noreplace) %attr(0644,dcc,dcc) %{_localstatedir}/lib/dcc/whiteclnt
%config(noreplace) %attr(0644,dcc,dcc) %{_localstatedir}/lib/dcc/whitecommon
%config(noreplace) %attr(0644,dcc,dcc) %{_localstatedir}/lib/dcc/whitelist
%config(noreplace) %attr(0644,dcc,dcc) %{_localstatedir}/lib/dcc/grey_flod
%config(noreplace) %attr(0644,dcc,dcc) %{_localstatedir}/lib/dcc/grey_whitelist

%attr(4755,root,root) %{_bindir}/cdcc
%attr(4755,root,root) %{_bindir}/dccproc
%attr(0755,root,root) %{_bindir}/dccif-test

%attr(0755,root,root) %{_sbindir}/dbclean
%attr(0755,root,root) %{_sbindir}/dblist
%attr(0755,root,root) %{_sbindir}/dccd
%attr(0755,root,root) %{_sbindir}/dccifd
%attr(0755,root,root) %{_sbindir}/newwebuser
%attr(0755,root,root) %{_sbindir}/start-dccd
%attr(0755,root,root) %{_sbindir}/start-dccifd
%attr(0755,root,root) %{_sbindir}/stop-dccd
%attr(0755,root,root) %{_sbindir}/wlist
%attr(4755,root,root) %{_sbindir}/dccsight
%attr(0755,root,root) %{_sbindir}/start-grey
%attr(0755,root,root) %{_sbindir}/fetchblack
%attr(0755,root,root) %{_sbindir}/list-clients
%attr(0755,root,root) %{_sbindir}/dns-helper
%attr(0755,root,root) %{_sbindir}/ck2ip
%attr(0755,root,root) %{_sbindir}/dcc-stats-update

%attr(0755,root,root) %{_sbindir}/check_ip_range
%attr(0755,root,root) %{_sbindir}/dcc-nagios
%attr(0755,root,root) %{_sbindir}/dump-clients
%attr(0755,root,root) %{_sbindir}/fetchids
%attr(0755,root,root) %{_sbindir}/fix-map

# rrdtool stuff
%attr(0755,root,root) %{_sbindir}/dcc-stats-collect
%attr(0755,root,root) %{_sbindir}/dcc-stats-graph
%attr(0755,root,root) %{_sbindir}/dcc-stats-init
%attr(0755,root,root) %{_sbindir}/stats-get

# extras
%attr(0755,root,root) %{_sbindir}/dccif-test
%attr(0755,root,root) %{_sbindir}/dccif.pl
%attr(0755,root,root) %{_sbindir}/fetch-testmsg-whitelist

%attr(0755,dcc,dcc) %dir %{_localstatedir}/lib/dcc
%attr(0755,dcc,dcc) %dir %{_localstatedir}/lib/dcc/log
%attr(0755,dcc,dcc) %dir %{_localstatedir}/lib/dcc/userdirs
%attr(0755,dcc,dcc) %dir %{_localstatedir}/lib/dcc/userdirs/local
%attr(0755,dcc,dcc) %dir %{_localstatedir}/lib/dcc/userdirs/cyrus
%attr(0755,dcc,dcc) %dir %{_localstatedir}/lib/dcc/userdirs/procmail
%attr(0755,dcc,dcc) %dir %{_localstatedir}/lib/dcc/userdirs/esmtp
%ghost %attr(0755,dcc,dcc) %dir %{_localstatedir}/run/dcc

%attr(0644,root,root) %{_mandir}/man8/cdcc.8*
%attr(0644,root,root) %{_mandir}/man8/dbclean.8*
%attr(0644,root,root) %{_mandir}/man8/dblist.8*
%attr(0644,root,root) %{_mandir}/man8/dcc.8*
%attr(0644,root,root) %{_mandir}/man8/dccd.8*
%attr(0644,root,root) %{_mandir}/man8/dccifd.8*
%attr(0644,root,root) %{_mandir}/man8/dccproc.8*
%attr(0644,root,root) %{_mandir}/man8/dccsight.8*

# excludes - files related to dcc-sendmail
%exclude %{_sbindir}/hackmc
%exclude %{_sbindir}/start-dccm
%exclude %{_mandir}/man8/dccm.8*

%pre
%_pre_useradd dcc %{_localstatedir}/lib/dcc /bin/sh

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service dccd

%preun
%_preun_service dccd

%postun
%_postun_userdel dcc

#----------------------------------------------------------------------------

%package cgi
Summary:	The cgi-scripts for managing mail delivery on a DCC enabled server
Group:		System/Servers
Requires:	apache-mpm-prefork
Requires:	%{name} = %{EVRD}

%description cgi
Example set of cgi-scripts to allow users to point-and-click
manage their own DCC whitelists and thus what is delivered to
them.  Allows overriding of site level lists.  The scripts give
controlled access to the whitelists which are otherwise in
protected directory space (owned by dcc).

NB these scripts need configured after installation.

%files cgi
%doc README.cgi-bin
%attr(0644,root,root) %config(noreplace) %{_webappconfdir}/dcc.conf
%attr(0644,root,root) %config(noreplace) %{_localstatedir}/lib/dcc/userdirs/webusers
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/chgpasswd
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/common
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/edit-whiteclnt
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/http2https
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/list-log
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/list-msg
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/webuser-notify
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/footer
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/header
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/common.pm
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/footer-dist
%attr(0755,root,root) %{_localstatedir}/www/dcc-bin/header-dist

#----------------------------------------------------------------------------

%if %{with sendmail}
%package sendmail
Summary:	Distributed Checksum Clearinghouse Milter Interface
Group:		System/Servers
Requires:	sendmail
Requires:	sendmail-cf
Requires:	%{name} = %{EVRD}

%description sendmail
Dccm is a daemon built with the sendmail milter interface intended
to connect sendmail to DCC servers.

%files sendmail
%doc dccm.html
%attr(0755,root,root) %{_sbindir}/dccm
%attr(0755,root,root) %{_sbindir}/hackmc
%attr(0755,root,root) %{_sbindir}/start-dccm
%attr(0644,root,root) %{_datadir}/sendmail-cf/feature/dcc.m4
%attr(0644,root,root) %{_datadir}/sendmail-cf/feature/dccdnsbl.m4
%attr(0644,root,root) %{_mandir}/man8/dccm.8*
%endif

#----------------------------------------------------------------------------

%package devel
Summary:	Development headers and libraries for %{name}
Group:		Development/C

%description devel
Development headers and libraries for %{name}.

%files devel
%attr(0644,root,root) %{_includedir}/dcc/*.h
%attr(0755,root,root) %{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .initscript
%patch1 -p1 -b .nochown

# fix defaults
find . -type f | xargs perl -pi -e "s|/usr/local|%{_prefix}|g"
find . -type f | xargs perl -pi -e "s|/var/dcc|%{_localstatedir}/lib/dcc|g"

# lib64 fixes
perl -pi -e "s|/usr/lib|%{_libdir}|g" configure

%build
./configure \
	--libexecdir=%{_sbindir} \
%if %{with sendmail}
	--with-sendmail \
%endif
	--with-installroot=%{buildroot} \
	--homedir=%{_localstatedir}/lib/dcc \
	-bindir=%{_bindir} \
	--mandir=%{_mandir} \
	--disable-sys-inst \
	--with-uid=dcc \
	--with-cgibin=%{_localstatedir}/www/dcc-bin \
	--with-rundir=%{_localstatedir}/run/dcc \
	--with-db-memory=32

perl -p -i -e "s:\".*\":\"%{_sbindir}\": if m/define\s+DCC_LIBEXECDIR/ ;" include/dcc_config.h

make CWARN="%{optflags}"

# make extras
make CWARN="%{optflags}" -C dccifd/dccif-test

%install
# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/cron.daily
install -d %{buildroot}%{_webappconfdir}
install -d %{buildroot}%{_localstatedir}/run/dcc
install -d %{buildroot}%{_localstatedir}/lib/dcc/{log,userdirs/{local,esmtp,cyrus,procmail}}
install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}/dcc

export INST_UID="`id -u`"
export INST_GID="`id -g`"
alias chown=echo
make MANOWN=$INST_UID MANGRP=$INST_GID DCC_SUID=$INST_UID DCC_OWN=$INST_UID \
    DCC_GRP=$INST_GID BINOWN=$INST_UID GRP=$INST_GID INSTALL="install -c" \
    install
unalias chown

chmod 755 %{buildroot}%{_sbindir}/* %{buildroot}%{_bindir}/* 

install -m0755 misc/cron-dccd %{buildroot}%{_sysconfdir}/cron.daily/dccd
install -m0755 misc/rcDCC %{buildroot}%{_initrddir}/dccd
install -m0600 homedir/flod %{buildroot}%{_localstatedir}/lib/dcc/flod

install -m0755 dccifd/dccif-test/dccif-test %{buildroot}%{_sbindir}/
install -m0755 dccifd/dccif.pl %{buildroot}%{_sbindir}/

%if %{with sendmail}
install -d %{buildroot}%{_datadir}/sendmail-cf/feature
install -m0644 misc/dcc.m4 %{buildroot}%{_datadir}/sendmail-cf/feature/
install -m0644 misc/dccdnsbl.m4 %{buildroot}%{_datadir}/sendmail-cf/feature/
%endif

# Set some initial logging, but no rejections
perl -p -i -e "s/BRAND=\$/BRAND=%{version}-%{release}/ ; s/DCCM_LOG_AT=\$/\$&10/ ; " \
	%{buildroot}%{_localstatedir}/lib/dcc/dcc_conf

# install the apache2 config
cat > dcc.conf <<EOF

ScriptAlias /dcc-bin/ /var/www/dcc-bin/

    <Directory /var/www/dcc-bin/>
	Require host 127.0.0.1

	SSLCipherSuite ALL:!ADH:RC4+RSA:+HIGH:+MEDIUM:+LOW:+SSLv2:+EXP
	SSLRequireSSL
	ErrorDocument 403 /dcc-bin/http2https

	AuthType Basic
	AuthName "DCC user"
	AuthUserFile /var/lib/dcc/userdirs/webusers
	require valid-user

    </Directory>
EOF

install -m 0755 dcc.conf %{buildroot}%{_webappconfdir}/dcc.conf 
echo "# put users in here" > %{buildroot}%{_localstatedir}/lib/dcc/userdirs/webusers

# prepare for docs inclusion
cp misc/README README.misc
cp homedir/README README.homedir
cp cgi-bin/README README.cgi-bin

# fix strange attribs
chmod 644 CHANGES LICENSE README*  *.html

# install devel files
install -m0644 dccd/*.h %{buildroot}%{_includedir}/dcc/
install -m0644 include/*.h %{buildroot}%{_includedir}/dcc/
install -m0644 srvrlib/*.h %{buildroot}%{_includedir}/dcc/
install -m0644 thrlib/*.h %{buildroot}%{_includedir}/dcc/

install -m0755 dcclib/libdcc.a %{buildroot}%{_libdir}/
install -m0755 srvrlib/libsrvr.a %{buildroot}%{_libdir}/
install -m0755 thrlib/libthr.a %{buildroot}%{_libdir}/
install -m0755 clntlib/libclnt.a %{buildroot}%{_libdir}/

# house cleaning
rm -f %{buildroot}%{_localstatedir}/www/dcc-bin/README
rm -f %{buildroot}%{_sbindir}/rcDCC
rm -f %{buildroot}%{_sbindir}/cron-dccd
rm -f %{buildroot}%{_sbindir}/logger
rm -f %{buildroot}%{_sbindir}/updatedcc
rm -f %{buildroot}%{_sbindir}/uninstalldcc

# install man pages
install -m0644 *.8 %{buildroot}%{_mandir}/man8/

# handle /var/run/dcc
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 950 |21cr|dcetest-2.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# OE: conditional switches
#
#(ie. use with rpm --rebuild):
#
#	--with diet	Compile dcetest against dietlibc
#
# 

%define build_diet 0

# commandline overrides:
# rpm -ba|--rebuild --with 'xxx'
%{?_with_diet: %{expand: %%define build_diet 1}}

Summary: 	The @stake MSRPC dumper
Name:		dcetest
Version:	2.0
Release:	11
License:	GPL
Group:		Networking/Other
URL:		http://www.atstake.com/research/tools/info_gathering/
Source0:	%{name}.tar.bz2
Patch0:		%{name}-%{version}-optflags.patch
%if %{build_diet}
BuildRequires: dietlibc-devel >= 0.20-1mdk
%endif

%description
This little utility dumps MSRPC endpoint information from Windows 
systems. Similar to the rpcdump program from Microsoft, but does 
not need a DCE stack and so runs on Unixes. dcetest can be very 
useful once inside a DMZ to fingerprint Windows machines on the 
network. dcetest operates over TCP port 135. (Think of it as 
rpcinfo -p against Windows.)

%prep

%setup -q -n %{name}
%patch0 -p0 -b .optflags

%build

%if %{build_diet}
# OE: use the power of dietlibc
make CC="diet gcc -D_BSD_SOURCE -D_GNU_SOURCE -s -static"
%else
%make
%endif

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}

install -m755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGELOG README
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 951 |21cr|dcfldd-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Improved dd, useful for forensics and security
Name:		dcfldd
Version:	1.7
Release:	1
#Fedora license analysis: it applies to Mageia
#Whole dcfldd is licensed as GPLv2+
#sha1.c sha1.h BSD Type license - Allan Saddi <allan@saddi.com>
#sha2.c sha2.h BSD Type license - Aaron D. Gifford <me@aarongifford.com>
#md5.c Copyright RSA
# Note that we are using the RSA MD5 code without license.
# See: https://fedoraproject.org/wiki/Licensing:FAQ#MD5
License:	GPLv2+ and BSD and Copyright Only
Group:		Security
Url:		http://dcfldd.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz

%description
dcfldd is an enhanced version of GNU dd with features useful for forensics
and security. dcfldd has the following additional features:

   * Hashing on-the-fly - dcfldd can hash the input data as it is being
     transferred, helping to ensure data integrity.
   * Status output - dcfldd can update the user of its progress in terms of
     the amount of data transferred and how much longer operation will take.
   * Flexible disk wipes - dcfldd can be used to wipe disks quickly
     and with a known pattern if desired.
   * Image/wipe Verify - dcfldd can verify that a target drive is a
     bit-for-bit match of the specified input file or pattern.
   * Multiple outputs - dcfldd can output to multiple files or disks at
     the same time.
   * Split output - dcfldd can split output to multiple files with more
     configuration possibilities than the split command.
   * Piped output and logs - dcfldd can send all its log data and output
     to commands as well as files.

%files
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/dcfldd
%{_mandir}/man1/dcfldd.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 952 |21cr|dcmo5-11.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Thomson MO5 emulator
Name:		dcmo5
Version:	11.2
Release:	6
License:	GPLv3+
Group:		Emulators
Url:		http://dcmo5.free.fr/
Source0:	http://dcmo5.free.fr/v11/download/%{name}v11.0.tar.gz
Source1:	http://dcmo5.free.fr/v11/download/%{name}v%{version}.tar.gz
Source2:	%{name}-32.png
Source3:	%{name}-16.png
Source4:	%{name}.rom
Patch0:		dcmo5v11.2-user_directory.patch.bz2
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_ttf)

%description
DCMO5 is an emulator for the Thomson MO5 system.

%files
%doc licence/dcmo5v11-licence.txt licence/gpl-3.0.txt licence/lgpl-3.0.txt licence/vera-copyright.txt
%{_bindir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/apps/%{name}/%{name}.rom

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -c %{name}-%{version}-%{release}
%patch0 -p0
sed -i s/cc/"gcc %{optflags}"/g makefile

%build
%make

%install
# binary
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 dcmo5 %{buildroot}%{_bindir}/

# icon
install -d -m 755 %{buildroot}%{_iconsdir}
install -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -d -m 755 %{buildroot}%{_liconsdir}
install -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

# xdg menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=DCMO5
Comment=%{summary}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

# rom
install -d -m 755 %{buildroot}%{_datadir}/apps/dcmo5
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/apps/dcmo5/%{name}.rom

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 953 |21cr|dcmtk-3.6.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 17
%define devname %mklibname dcmtk -d

%define libpkg() %{expand: \
%define pkg %{mklibname %{1} %{major}} \
%package -n %{pkg} \
Summary: %{1} library from %{name} \
Group: System/Libraries \
%description -n %{pkg} \
DCMTK is a collection of libraries and applications implementing large parts \
the DICOM standard. This is lib%{1}.so.%{major} library from it. \
%files -n %{pkg} \
%{_libdir}/lib%{1}.so.%{major}* \
%{nil} \
}

%define libs_list cmr dcmdata dcmect dcmdsig dcmfg dcmimage dcmimgle dcmiod dcmjpeg dcmjpls dcmnet dcmpmap dcmpstat dcmqrdb dcmrt dcmseg dcmsr dcmtkcharls dcmtls dcmtract dcmwlm i2d ijg12 ijg16 ijg8 oflog ofstd

%define url_ver %(echo %{version} | tr -d '.')

Summary:	DICOM libraries and applications
Name:		dcmtk
Version:	3.6.7
Release:	2
License:	BSD and MIT
Group:		System/Libraries
Url:		http://dicom.offis.de/dcmtk.php.en
Source0:	https://dicom.offis.de/download/dcmtk/dcmtk%{url_ver}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	CharLS-devel
BuildRequires:	wrap-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
DCMTK is a collection of libraries and applications implementing large parts
the DICOM standard. It includes software for examining, constructing
and converting DICOM image files, handling offline media, sending and receiving
images over a network connection, as well as demonstrative image storage
and worklist servers. DCMTK is is written in a mixture of ANSI C and C++.
It comes in complete source code and is made available as "open source"
software.

DCMTK has been used at numerous DICOM demonstrations to provide central,
vendor-independent image storage and worklist servers (CTNs - Central Test
Nodes). It is used by hospitals and companies all over the world for a wide
variety of purposes ranging from being a tool for product testing to being
a building block for research projects, prototypes and commercial products.

%files
%{_bindir}/*
%{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/%{name}/*.cfg
%{_datadir}/dcmtk
%doc %{_defaultdocdir}/dcmtk/*

#----------------------------------------------------------------------------

%{expand:%(for i in %{libs_list}; do echo "%%libpkg $i"; done) }

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	DICOM libraries development files
Group:		Development/C
# Uses files from bindir
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%{expand:%(for i in %{libs_list}; do echo "Requires: %%{mklibname $i %%{major}} = %%{EVRD}"; done) }

%description -n %{devname}
DCMTK is a collection of libraries and applications implementing large parts
the DICOM standard. It includes software for examining, constructing
and converting DICOM image files, handling offline media, sending and receiving
images over a network connection, as well as demonstrative image storage
and worklist servers. DCMTK is is written in a mixture of ANSI C and C++.
It comes in complete source code and is made available as "open source"
software.

This package contains files required for development only.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/dcmtk
%{_libdir}/cmake/dcmtk/*.cmake
%{_libdir}/pkgconfig/dcmtk.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=ON \
	-DDCMTK_INSTALL_LIBDIR=%{_lib} \
	-DDCMTK_INSTALL_CMKDIR=%{_libdir}/cmake/dcmtk \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
	-DDCMTK_DEFAULT_CONFIGURATION_DIR=%{_sysconfdir}/dcmtk \
	-DDCMTK_WITH_OPENSSL:BOOL=ON \
	-DDCMTK_ENABLE_PRIVATE_TAGS:BOOL=ON \
	-DDCMTK_WITH_XML:BOOL=ON \
	-DDCMTK_WITH_TIFF:BOOL=ON \
	-DDCMTK_WITH_ZLIB:BOOL=ON \
	-DDCMTK_WITH_ICONV:BOOL=ON \
	-DCMAKE_VERBOSE_MAKEFILE=ON \
	-DDCMTK_INSTALL_DATDIC:STRING=share/libdcmtk12 \
	-DDCMTK_USE_CXX11_STL:BOOL=ON \
	-DDCMTK_ENABLE_CXX11:BOOL=ON
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 954 |21cr|dcto9p-11.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Thomson TO9+ emulator
Name:		dcto9p
Version:	11.0
Release:	6
License:	GPLv3+
Group:		Emulators
Url:		http://dcto9p.free.fr/
Source0:	http://dcto9p.free.fr/v11/download/%{name}v%{version}.tar.gz
Source1:	%{name}-32.png
Source2:	%{name}-16.png
Patch0:		dcto9pv11.0-user_directory.patch.bz2
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_ttf)

%description
DCTO9+ is an emulator for the Thomson TO9+ system.

%files
%doc licence/dcto9pv11-licence.txt licence/gpl-3.0.txt licence/lgpl-3.0.txt licence/vera-copyright.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -c %{name}-%{version}-%{release}
%patch0 -p0
sed -i s/cc/"gcc %{optflags}"/g makefile

%build
%make

%install
# binary
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 dcto9p %{buildroot}%{_bindir}/

# icon
install -d -m 755 %{buildroot}%{_iconsdir}
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png
install -d -m 755 %{buildroot}%{_liconsdir}
install -m 644 %{SOURCE2} %{buildroot}%{_liconsdir}/%{name}.png

# xdg menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=DCTO9+
Comment=%{summary}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 955 |21cr|dcw-gmt-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           dcw-gmt
Version:	2.1.1
Release:	1
Summary:        Digital Chart of the World (DCW) for GMT
Group:          Sciences/Geosciences
License:        LGPLv3+
URL:            https://github.com/GenericMappingTools/dcw-gmt
Source0:        https://github.com/GenericMappingTools/dcw-gmt/releases/download/%{version}/dcw-gmt-%{version}.tar.gz
BuildArch:      noarch


%description
DCW-GMT is an enhancement to the original 1:1,000,000 scale vector basemap of
the world available from the Princeton University Digital Map and Geospatial
Information Center and from GeoCommunity at
http://data.geocomm.com/readme/dcw/dcw.html.  To read and process the data you
should install GMT, the Generic Mapping Tools.


%prep
%setup -q

# Nothing to build

%install
mkdir -p %{buildroot}/%{_datadir}/%{name}
cp -a *.nc *.txt %{buildroot}/%{_datadir}/%{name}/


%files
%license LICENSE
%doc README.md
%{_datadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 956 |21cr|ddccontrol-0.4.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define dbversion 20061014
%define ddcdb %{name}-db-%{dbversion}

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Ddccontrol control the monitor parameters
Name:		ddccontrol
Version:	0.4.2
Release:	7
License:	GPL
Group:		System/Kernel and hardware
Url:		http://ddccontrol.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{ddcdb}.tar.bz2
Patch0:		ddccontrol-0.4.2-fix-str-fmt.patch
BuildRequires:	pciutils-devel
BuildRequires:	libxml2-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	gtk+2-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
DDCcontrol is a program running on Linux, used to control monitor parameters,
like brightness and contrast, by software, i.e. without using the OSD
and the buttons in front of the monitor.

%files
%{_bindir}/ddccontrol
%{_bindir}/ddcpci
%{_bindir}/gddccontrol
%{_datadir}/locale/*/*/*
%{_datadir}/ddccontrol-db/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libddccontrol library 
Group:		Development/Other
Provides:	lib%{name} = %{version}

%description -n %{libname}
DDCcontrol is a program running on Linux, used to control monitor parameters,
like brightness and contrast, by software, i.e. without using the OSD
and the buttons in front of the monitor.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libddccontrol library headers and development libraries
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libddccontrol devel files

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -a 1
%patch0 -p0

%build
%global optflags %{optflags} -fcommon
%configure
%make
cd %{ddcdb}
%configure \
	--prefix=%{_prefix}/%{name}
%make

%install
%makeinstall_std
cd %{ddcdb}
%makeinstall_std
chmod 755 %{buildroot}%{_bindir}/ddcpci


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 957 |21cr|ddclient-3.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Client to update dynamic DNS host entries
Name:		ddclient
Version:	3.9.1
Release:	1
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://ddclient.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/ddclient/%name-%version.tar.gz
Source1:	ddclient.rwtab
Source2:	ddclient.service
Source3:	ddclient.sysconfig
Source4:	ddclient.NetworkManager
Source5:	ddclient-tmpfiles.conf
Patch0:		ddclient-3.8.1-config.patch
Requires:	perl(IO::Socket::SSL)
Requires(post):	systemd
Requires(pre,post,postun):	rpm-helper
BuildArch:	noarch

%description
ddclient is a Perl client used to update dynamic DNS entries for accounts
on many different dynamic DNS services. Features include: Operating as a
daemon, manual and automatic updates, static and dynamic updates, optimized
updates for multiple addresses, MX, wildcards, abuse avoidance, retrying
the failed updates and sending update status to syslog and through e-mail.

%files
%doc README*
%{_sbindir}/%{name}
%dir %{_sysconfdir}/%{name}
%attr(0600,%{name},%{name}) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/rwtab.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%dir %{_localstatedir}/cache/%{name}
%attr(0600,%{name},%{name}) %ghost %{_localstatedir}/cache/%{name}/%{name}.cache
%{_sysconfdir}/NetworkManager/dispatcher.d/50-%{name}
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service

%pre
%_pre_useradd %{name} %{_localstatedir}/cache/%{name} /sbin/nologin

%post
%_tmpfilescreate %{name}
%create_ghostfile %{_localstatedir}/cache/%{name}/%{name}.cache %{name} %{name} 600

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build

%install
chmod 644 README*

install -D -p -m 755 %{name} %{buildroot}%{_sbindir}/%{name}
install -D -p -m 600 sample-etc_ddclient.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -D -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rwtab.d/%{name}
install -D -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
install -D -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -D -p -m 755 %{SOURCE4} %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/50-%{name}
install -D -p -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf

mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}
touch %{buildroot}%{_localstatedir}/cache/%{name}/%{name}.cache


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 958 |21cr|ddcutil-1.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%global optflags %{optflags} %(pkg-config --cflags-only-I libkmod || :)

Summary:	Query and update monitor settings
Name:		ddcutil
Version:	1.4.1
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.ddcutil.com
Source0:	https://github.com/rockowitz/ddcutil/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		ddcutil-1.4.1-kmod.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(xrandr)
Requires:	hwdata
Requires:	i2c-tools

%description
Query and change monitor settings.

ddcutil communicates with monitors implementing MCCS (Monitor Control Command
Set), using either the DDC/CI protocol on the I2C bus or as a Human Interface
Device on USB.  In general, anything that can be controlled using a monitor's
on-screen display can be controlled by this program.  Examples include 
changing a monitor's input source and adjusting its brightness.

%files
%doc AUTHORS NEWS.md README.md CHANGELOG.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_udevrulesdir}/60-ddcutil.rules

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library to query and update monitor settings
Group:		System/Libraries

%description -n %{libname}
Shared library version of ddcutil, exposing a C API.

%files -n %{libname}
%doc AUTHORS NEWS.md README.md CHANGELOG.md
%license COPYING
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libddcutil
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for libddcutil.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}*.h
%{_libdir}/cmake/%{name}
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--enable-lib=yes
%make

%install
%makeinstall_std

# Make sure udev rules dir is correct
rm -f %{buildroot}%{_prefix}/lib/udev/rules.d/60-ddcutil.rules
mkdir -p %{buildroot}%{_udevrulesdir}
install -m 644 data/usr/lib/udev/rules.d/60-ddcutil.rules %{buildroot}%{_udevrulesdir}/60-ddcutil.rules


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 959 |21cr|ddrescue-1.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Data recovery tool
Name:		ddrescue
Version:	1.26
Release:	1
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://www.gnu.org/software/ddrescue/ddrescue.html
Source0:	http://ftp.gnu.org/gnu/ddrescue/%{name}-%{version}.tar.lz
Source1:	http://ftp.gnu.org/gnu/ddrescue/%{name}-%{version}.tar.lz.sig
BuildRequires:	lzip

%description
GNU ddrescue is a data recovery tool. It copies data from one file or block 
device (hard disc, CDROM, etc) to another, trying hard to rescue data in 
case of read errors.

Ddrescue does not truncate the output file if not asked to. So, every time 
you run it on the same output file, it tries to fill in the gaps.

The basic operation of ddrescue is fully automatic. That is, you don't have 
to wait for an error, stop the program, read the log, run it in reverse mode.

If you use the log-file feature of ddrescue, the data is rescued very 
efficiently (only the needed blocks are read). Also you can interrupt the 
rescue at any time and resume it later at the same point.

Automatic merging of backups: If you have two or more damaged copies of a file,
CDROM, etc, and run ddrescue on all of them, one at a time, with the same 
output file, you will probably obtain a complete and error-free file. This is 
so because the probability of having damaged areas at the same places on 
different input files is very low. Using the log-file, only the needed blocks 
are read from the second and successive copies.

The log-file is periodically saved to disc. So in case of a crash you can 
resume the rescue with little recopying.

Also, the same log-file can be used for multiple commands that copy different 
areas of the file, and for multiple recovery attempts over different subsets.

Ddrescue aligns its I/O buffer to the sector size so that it can be used to 
read from raw devices. For efficiency reasons, also aligns it to the memory 
page size if page size is a multiple of sector size. 

%files
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_infodir}/*
%{_mandir}/*/*

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make CXXFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 960 |21cr|dd_rhelp-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A hard disk rescue helper
Name:		dd_rhelp
Version:	0.3.0
Release:	4
Source0:	http://www.kalysto.org/pkg/%{name}-%{version}.tar.gz
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://www.kalysto.org/utilities/dd_rhelp/index.en.html
BuildArch:	noarch
Requires:	dd_rescue

%description
dd_rhelp is a bash script that handles a very useful program written
in C by Kurt Garloff which is called dd_rescue, it roughly act as the
dd Linux command with the characteristic to NOT stop when it falls on
read/write errors.

%prep
%setup -q
perl -pi -e "s|59 Temple Place, Suite 330, Boston, MA  02111-1307  USA|51 Franklin Street, Fifth Floor, Boston, MA 02110-1301|" COPYING
perl -pi -e "s|Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307|Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301|" dd_rhelp

%build

%install
install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name}

%files
%doc ChangeLog FAQ NEWS README THANKS TODO COPYING
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 961 |21cr|deadbeef-plugin-infobar-1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%if %{_use_internal_dependency_generator}
%global __provides_exclude ddb_infobar_gtk3\\.so(.*)
%endif

Summary:	InfoBar plugin for DeaDBeeF
Name:		deadbeef-plugin-infobar
Version:	1.4
Release:	4
License:	GPLv2+
Group:		Sound
Url:		https://bitbucket.org/dsimbiriatin/deadbeef-infobar
Source0:	https://bitbucket.org/dsimbiriatin/deadbeef-infobar/downloads/deadbeef-infobar-%{version}.tar.gz
BuildRequires:	deadbeef-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	deadbeef

%description
InfoBar plugin for DeaDBeeF. It allows you to view:
 - lyrics for the current song;
 - biography for the current artist;
 - list of the similar artists.

%files
%doc COPYING
%{_libdir}/deadbeef/ddb_infobar_gtk3.so

#----------------------------------------------------------------------------

%prep
%setup -qn deadbeef-infobar-%{version}

%build
%setup_compile_flags
%make gtk3

%install
mkdir -p %{buildroot}%{_libdir}/deadbeef/
install -m 0755 gtk3/ddb_infobar_gtk3.so %{buildroot}%{_libdir}/deadbeef/ddb_infobar_gtk3.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 962 |21cr|deadbeef-plugin-mpris-2.1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __provides_exclude mpris\\.so(.*)
%endif

Summary:	MPRIS support plugin for DeaDBeeF
Name:		deadbeef-plugin-mpris
Version:	2.1.5
Release:	5
License:	GPLv3+
Group:		Sound
Url:		https://github.com/kernelhcy/DeaDBeeF-MPRIS-plugin
# Snapshot from git, version from configure.ac
Source0:	deadbeef-mpris-plugin-%{version}.tar.bz2
Patch0:		deadbeef-plugin-mpris-2.1.5-fix-crash.patch
BuildRequires:	deadbeef-devel
BuildRequires:	pkgconfig(glib-2.0)
Requires:	deadbeef

%description
MPRIS support plugin for DeaDBeeF.

%files
%doc README COPYING
%{_libdir}/deadbeef/mpris.so*

#----------------------------------------------------------------------------

%prep
%setup -qn deadbeef-mpris-plugin-%{version}
%patch0 -p1

sed s,"/lib/","/%{_lib}/",g -i configure.ac

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 963 |21cr|deadwood-3.2.02-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A fully recursive caching DNS resolver
Name:		deadwood
Version:	3.2.02
Release:	6
License:	BSD
Group:		System/Servers
URL:		http://www.maradns.org
Source0:	http://www.maradns.org/%{name}/stable/%{name}-%{version}.tar.bz2
Source1:	deadwood.service
Source2:	deadwood.tmpfiles.d
Requires(post,preun):	rpm-helper

%description
Deadwood is a fully recursive DNS cache. This is a DNS server with the 
following features:
 * Full support for both DNS recursion and DNS forwarding caching
 * Small size and memory footprint suitable for embedded systems
 * Simple and clean codebase
 * Secure design
 * Spoof protection: Strong cryptography used to determine the
 Query ID and source port
 * Ability to read and write the cache to a file
 * Dynamic cache that deletes entries not recently used
 * Ability to use expired entries in the cache when it is
 impossible to contact upstream DNS servers.
 * Both DNS-over-UDP and DNS-over-TCP are handled by the same daemon
 * Built-in dnswall functionality

%prep
%setup -q

%build
export FLAGS="%{optflags} -DIPV6"
cd src
%make
cd ../tools
%make

%install
mkdir -p %{buildroot}%{_sbindir}
install src/Deadwood %{buildroot}%{_sbindir}/deadwood
install tools/duende %{buildroot}%{_sbindir}/duende
mkdir -p %{buildroot}%{_mandir}/man1
install doc/*.1 %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}%{_sysconfdir}/maradns/logger
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_unitdir}
install %{SOURCE1} %{buildroot}%{_unitdir}/deadwood.service
install doc/dwood3rc %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_logdir}/%{name}

install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
%pre
%_pre_useradd %{name} /etc/%{name} /bin/false
%_pre_groupadd %{name} %{name}

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post %{name}.service
cat << EOF
Please update the maradns_uid and maradns_gid otions in %{_sysconfdir}/dwood3c (line `%__grep -n '^maradns_uid' %{_sysconfdir}/dwood3rc | %__sed 's/:.*$//'`)
to the valid deadwood uid (`%__grep '^deadwood:' /etc/passwd | %__awk -F ':' '{print $3}'`) and gid (`%__grep '^deadwood:' /etc/passwd | %__awk -F ':' '{print $4}'`)

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}
%_postun_groupdel %{name}
%systemd_postun_with_restart %{name}.service

%files
%doc doc/*
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/maradns/logger
%attr(750,root,root) %{_unitdir}/%{name}*
%config(noreplace) %{_sysconfdir}/dwood3rc
%{_sbindir}/deadwood
%{_sbindir}/duende
%{_mandir}/man1/*
%{_tmpfilesdir}/*
%dir %{_logdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 964 |21cr|debmirror-2.36-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	debmirror
%define version 2.36
Name:		debmirror
Version:	2.36
Release:	1
Epoch:		1
Summary:	Debian partial mirror script, with ftp and package pool support
License:	GPLv2+
Group:		Development/Other
Url:		http://packages.debian.org/unstable/net/debmirror
Source:		http://ftp.debian.org/debian/pool/main/d/debmirror/%{name}_%{version}.tar.xz
BuildRequires:	perl
BuildRequires:	perl-generators
BuildRequires:	perl(LockFile::Simple)
Buildarch:	noarch

%description
This program downloads and maintains a partial local Debian mirror. It can
mirror any combination of architectures, distributions and sections. Files are
transferred by ftp, http, hftp or rsync, and package pools are fully supported.
It also does locking and updates trace files.

%prep
%setup -q -n work
%build

%install
install -Dp -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dp -m 0644 examples/%{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf

# generate a man page
install -d %{buildroot}%{_mandir}/man1
pod2man %{name} %{buildroot}%{_mandir}/man1/%{name}.1



%files 
%doc debian/changelog debian/NEWS doc/design.txt
%config(noreplace) %{_sysconfdir}/debmirror.conf
%{_bindir}/*
%{_mandir}/man1/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 965 |21cr|decibel-audio-player-1.08-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		decibel-audio-player
Summary:	A clean and user-friendly audio player
Version:	1.08
Release:	4
Source0:	http://decibel.silent-blade.org/uploads/Main/%{name}-%{version}.tar.gz
Source1:	decibel-audio-player
Source2:	decibel-audio-player-remote
URL:		http://decibel.silent-blade.org/
Group:		Sound
License:	GPLv2+
Requires:	pygtk2.0 
Requires:	gstreamer0.10-python 
Requires:	pygtk2.0-libglade
Requires:	gstreamer0.10-plugins-good 
Requires:	gstreamer0.10-plugins-base 
Requires:	gstreamer0.10-plugins-ugly 
Requires:	python
Requires:	mutagen
Requires:	python-notify
Requires:	python-imaging
Requires:	zeitgeist
Requires:	python-CDDB

BuildArch:	noarch

%description
Decibel is a GTK+ audio player designed for GNU/Linux, which aims at
being very straightforward to use by means of a very clean and user
friendly interface. Decibel is especially targeted at Gnome and will
follow the Gnome HIG as closely as possible.

It does not include features that generally have had better support
in specialized software, e.g. tagging.

%prep
%setup -q -n %{name}-%{version}
# fix paths in make
perl -pi -e "s|/usr/local|/usr|"  Makefile
perl -pi -e "s|share/pixmaps|share/icons|"  Makefile

%build

%install
%makeinstall_std

# replace wrappers
rm -rf %{buildroot}%{_bindir}/*
install -m755 {%SOURCE1,%SOURCE2} %{buildroot}%{_bindir}/
# fix permits
chmod a+x %{buildroot}%{_datadir}/%{name}/src/decibel-audio-player.py
%find_lang %name


%files -f %name.lang
%doc doc/{ChangeLog,decibel-audio-player.1,decibel-audio-player-remote.1,LICENCE}
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/applications/*
%{_iconsdir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 966 |21cr|declarative-plasmoids-4.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    declarative-plasmoids
Summary: Declarative plasmoids for the plasma desktop and mobile
Version: 4.10
Release: 4
Group:   Graphical desktop/KDE
License: LGPLv2
URL:     http://www.kde.org/
Source:  ftp://ftp.kde.org/pub/kde/stable/active/1.0/src/%{name}-%version.tar.xz
BuildRequires: kdelibs4-devel
BuildArch: noarch


%description
Declarative plasmoids for the plasma desktop and mobile

%files
%doc COPYING.LIB
# dictionary
%_kde_appsdir/plasma/plasmoids/org.kde.dictionary-qml
%_kde_datadir/kde4/services/plasma-applet-dictionary-qml.desktop
# knowledgebase
%_kde_appsdir/plasma/plasmoids/org.kde.knowledgebase
%_kde_datadir/kde4/services/plasma-applet-knowledgebase-qml.desktop
# microblog
%_kde_datadir/applications/kde4/active-microblog.desktop
%_kde_appsdir/plasma/plasmoids/org.kde.microblog-qml
%_kde_datadir/kde4/services/plasma-applet-microblog-qml.desktop
# news
%_kde_appsdir/plasma/plasmoids/org.kde.news-qml
%_kde_datadir/kde4/services/plasma-applet-news-qml.desktop
%_kde_datadir/applications/kde4/active-news-reader.desktop
%_kde_datadir/icons/hicolor/*/apps/active-news.png
%_kde_datadir/icons/hicolor/scalable/apps/active-news.svgz
# rssnow
%_kde_appsdir/plasma/plasmoids/org.kde.rssnow-qml
%_kde_datadir/kde4/services/plasma-applet-rssnow-qml.desktop
# social-news
%_kde_datadir/kde4/services/plasma-applet-social-news-qml.desktop
%_kde_appsdir/plasma/plasmoids/org.kde.social-news-qml

#----------------------------------------------------------------------

%prep
%setup -q 

%build
%cmake_kde4
	
%make

%install
%makeinstall_std -C build

perl -pi -e "s|identi.ca,twitter|identi.ca,twitter;|"  %{buildroot}%{_datadir}/applications/kde4/active-microblog.desktop
perl -pi -e "s|xxidenti.ca,twitter;xx|xxidenti.ca,twitter;xx;|"  %{buildroot}%{_datadir}/applications/kde4/active-microblog.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 967 |21cr|defendguin-0.0.12-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Defender Clone
Name:		defendguin
Version:	0.0.12
Release:	6
Source0:	ftp://ftp.tuxpaint.org/unix/x/defendguin/src/%{name}-%{version}.tar.gz
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
License:	GPLv2 
Url:		http://newbreedsoftware.com/defendguin
Group:		Games/Arcade 
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL-devel
Patch0:		%{name}-0.0.11-fix-CFLAGS.patch

%description
Defendguin is going to be a clone of the arcade game "Defender," but with a
Linux theme. Your mission is to defend little penguinoids from being captured
and mutated by... well, you know who.

%prep
%setup -q
%patch0 -p1

%build
%make CFLAGS="%{optflags}" PREFIX=%{_prefix} BIN_PREFIX=%{_gamesbindir} DATA_PREFIX=%{_gamesdatadir}/%{name}/

%install
rm -rf %{buildroot}
install -d %{buildroot}{%{_gamesbindir},%{_mandir}/man6}
%make install PREFIX=%{buildroot}%{_prefix} BIN_PREFIX=%{buildroot}%{_gamesbindir} \
DATA_PREFIX=%{buildroot}%{_gamesdatadir}/%{name}/ MAN_PREFIX=%{buildroot}%{_datadir}


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Defendguin
Comment=%{Summary}
Exec=%_gamesbindir/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus} 
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc docs/*
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_mandir}/*/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 968 |21cr|defendo-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           defendo
Version:        2.5.0
Release:        1
License:        GPLv3+
Summary:        Tower defense
Url:            https://github.com/HassanHeydariNasab/defendo
Group:          Games/Arcade
Source0:        https://github.com/HassanHeydariNasab/defendo/archive/%{name}-%{version}.tar.gz
Source1:        https://raw.githubusercontent.com/HassanHeydariNasab/defendo/master/LICENSE
BuildRequires:  imagemagick
Requires:       godot2-runner

BuildArch:      noarch

%description
Defendo is a tower defense game that 
made using Godot Game Engine v2.1.4.stable.official.

%files
%doc *.md LICENSE
%{_gamesdatadir}/%{name}
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

%prep
%setup -q
cp -a %{SOURCE1} LICENSE

%build

%install
# game data files
install -dm755 %{buildroot}%{_gamesdatadir}/%{name}
cp -R -t %{buildroot}%{_gamesdatadir}/%{name} *

# wrapper
install -dm755 %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
godot2-runner -path "%{_gamesdatadir}/%{name}" $@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{name}

# icons
for size in 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size ikono.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done


# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=%{name} 
Comment=Tower Defense Game
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Game;ArcadeGame;
StartupNotify=true
EOF
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 969 |21cr|deflate-stats-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Apache mod_deflate logfile analyzer
Name:		deflate-stats
Version:	1.0
Release:	8
License:	BSD-like
Group:		Monitoring
URL:		http://prefetch.net/code/deflate-stats.html
Source0:	http://prefetch.net/code/deflate-stats.pl.bz2
Requires:	apache-mod_deflate
BuildArch:	noarch

%description
deflate-stats.pl is a Perl script that summarizes mod_deflate log data, and
provides detailed reports that include the amount of bandwidth saved, bytes not
sent, number of requestes deflated, and compresion ratios per URI.

%prep

%setup -q -c -T
bzcat %{SOURCE0} > %{name}

%build

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 970 |21cr|dekagen-1.0.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Script that rips and encodes CD's
Name:		dekagen
Version:	1.0.2
Release:	11
License:	GPLv2+
Group:		Sound
Url:		http://www.mbayer.de/dekagen/index.shtml
Source0:	http://www.mbayer.de/dekagen/downloads/%{name}-%{version}.tar.bz2
BuildRequires:	dos2unix
BuildArch:	noarch
# For the various functions of the script
Requires:	cdrtools
Requires:	dialog
Requires:	id3lib
Requires:	lame
Requires:	vorbis-tools
%rename	ripenc

%description
This bourne shell script, formerly known as ripenc, is an interactive command
line tool, that automates the whole process of ripping data from music compact
discs (CD), the naming of the files, their converting into MP3 or Ogg-Vorbis
format and the labelling of the MP3 files with an ID3 tag.

%files
%doc COPYING CHANGES CREDITS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------------

%prep
%setup -q

# Fix CRLF in CHANGES
cp --preserve CHANGES CHANGES.msdos
dos2unix  CHANGES

# Fix utf8 encoding
iconv -f latin1 -t utf8 README > README 


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

cp %{name} %{buildroot}%{_bindir}
gunzip %{name}.1.gz
cp %{name}.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 971 |21cr|delaboratory-0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		delaboratory
Version:	0.8
Release:	5
Summary:	Free Software color correction utility
License:	GPLv3+
Group:		Graphics
Url:		https://code.google.com/p/delaboratory/
Source0:	https://delaboratory.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		delaboratory-0.8-mdv-makefile.patch
Requires:	dcraw
BuildRequires:	tiff-devel
BuildRequires:	wxgtku-devel
BuildRequires:	libxml2-devel


%description
Delaboratory is a Free Software color correction utility, it allows you
to modify color/contrast of your photo in a creative way - by performing
non-destructive operations in different colorspaces (RGB/BW, XYZ/LAB/LCH,
CMY/CMYK, HSL/HSV) with floating-point precision per channel.

%prep
%setup -q
%patch0 -p1

%build
%setup_compile_flags
CXXFLAGS_WX="%{optflags}" ; export CXXFLAGS_WX ;
make DEBUG=YES

%install
install -D -m0755 delaboratory "%{buildroot}%{_bindir}/delaboratory"
install -d -m0755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}/%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Terminal=false
TryExec=delaboratory
Exec=delaboratory
Type=Application
Categories=Graphics;Photography;GTK;
StartupNotify=false
Name=Delaboratory
GenericName=Color correction utility
EOF

%files
%defattr(-,root,root)
%doc README
%{_bindir}/delaboratory
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 972 |21cr|demoroniser-20030916-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Corrects incompatible HTML generated by Microsoft applications
Name:		demoroniser
Version:	20030916
Release:	7
License:        Public Domain	
Group:		Text tools
URL:	        http://www.fourmilab.ch/webtools/demoroniser/	
Source0:        http://www.fourmilab.ch/webtools/demoroniser/%{name}.zip
Patch0:		%{name}-perl-path.patch
Requires:       perl
BuildArch:	noarch

%description
Corrects moronic and gratuitously incompatible HTML generated by 
Microsoft applications.  Also can be useful on just text to get rid of
the "smart quotes" Microsoft applications like to use.

%prep
rm -rf %{buildroot}
%setup -q -c -n %{name}-%{version}
%patch0

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0755 demoroniser.pl %{buildroot}%{_bindir}/demoroniser
install -m 0644 demoroniser.1 %{buildroot}%{_mandir}/man1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc demoroniser.man 
%{_bindir}/demoroniser
%{_mandir}/man1/demoroniser.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 973 |21cr|denemo-2.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Avoid conflicts with lilypond fonts
%global	__provides_exclude 'font\\\(.*\\\)|font\\\(:lang=.*\\\)'

Summary:	WYSIWYG musical score editor and front-end for Lilypond
Name:		denemo
Version:	2.6.0
Release:	5
License:	GPLv2+
Group:		Sound
Url:		http://www.denemo.org/
Source0:	http://ftp.gnu.org/gnu/denemo/%{name}-%{version}.tar.gz
Source1:	docs_denemomanual.pdf
Source100:	denemo.rpmlintrc
Patch0:		denemo-2.6.0-fix-desktop-file.patch
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	desktop-file-utils
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	guile22
BuildRequires:	guile22-runtime
#BuildRequires:	guile >= 3.0
#BuildRequires:	guile-runtime >= 3.0
BuildRequires:	intltool
BuildRequires:	libmusicxml-devel
BuildRequires:	portmidi-devel
BuildRequires:	pkgconfig(alsa) >= 1.0.0
BuildRequires:	pkgconfig(aubio) >= 0.4.9
BuildRequires:	pkgconfig(evince-view-3.0) >= 3.0
BuildRequires:	pkgconfig(fftw3) >= 3.1.2
BuildRequires:	pkgconfig(fluidsynth) >= 1.0.8
BuildRequires:	pkgconfig(fontconfig) >= 2.2.0
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(gthread-2.0) >= 2.30.0
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires:	pkgconfig(gtk-doc) >= 1.14
BuildRequires:	pkgconfig(gtksourceview-3.0) >= 3.0
BuildRequires:	pkgconfig(guile-2.2)
#BuildRequires:	pkgconfig(guile-3.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(librsvg-2.0) >= 2.0
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.3.10
BuildRequires:	pkgconfig(mount)
BuildRequires:	pkgconfig(portaudio-2.0) >= 19
BuildRequires:	pkgconfig(smf) >= 1.3
BuildRequires:	pkgconfig(sndfile) >= 1.0
BuildRequires:	pkgconfig(rubberband) >= 1.0.8
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(x11)
# Force the use of the latest aubio package because
# it has not changed %%{major}
Requires:	%{_lib}aubio5 >= 0.4.6
Requires:	lilypond >= 2.19.84
%ifnarch aarch64
# Not built on aarch64
Requires:	playmidi
%endif
Requires:	fluidsynth
# For EvinceDocument pdf
Recommends:		evince

%description
Denemo is the GNU graphical musical score editor, and serves as a front-end
to Lilypond. Besides Lilypond, it can also export music into ABC format,
as well as handling Csound score files playback and MIDI playback.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS docs/*
%doc docs_denemomanual.pdf
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/appdata/org.%{name}.Denemo.appdata.xml
%{_datadir}/applications/org.%{name}.Denemo.desktop
%{_datadir}/fonts/truetype/%{name}/*
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/pixmaps/org.%{name}.Denemo.png

#------------------------------------------------------------

%prep
%autosetup -p1

find docs/images -name "*.png" |xargs chmod 644
find docs  -size 0 -delete

install -m 0644 %{SOURCE1} .


%build
%configure \
	--disable-static \
	--enable-aubio \
	--enable-alsa \
	--enable-jack \
	--enable-fluidsynth \
	--enable-portaudio \
	--enable-portmidi \
	--enable-rubberband \
	--enable-gtk3 \
	--enable-evince \
	--enable-doc \
	--enable-gtk-doc \
	--enable-gtk-doc-html \
	--enable-guile_2_2
%make

chmod 644 actions/*.scm
chrpath -d src/%{name}


%install
%makeinstall_std

find %{buildroot} -size 0 -delete	
	
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 974 |21cr|denyhosts-2.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A script to help thwart ssh server attacks
Name:		denyhosts
Version:	2.6
Release:	8
License:	GPLv2
Group:		Networking/Other
Url:		http://denyhosts.sourceforge.net/
Source0:	http://dl.sourceforge.net/denyhosts/DenyHosts-%{version}.tar.gz
Source1:	denyhosts.cron
Source2:	denyhosts.init
Source3:	denyhosts-allowed-hosts
Source4:	denyhosts.sysconfig
Source5:	denyhosts.logrotate
Source6:	README.fedora
Patch0:		denyhosts-2.6-config.patch
Patch1:		denyhosts-2.4-setup.patch
Patch2:		denyhosts-2.6-daemon-control.patch
# Patch10 is a security fix
Patch10:	denyhosts-2.6-regex.patch
BuildRequires:	pkgconfig(python2)
Requires:	openssh-server
Requires(post,preun):	rpm-helper
BuildArch:	noarch

%description
DenyHosts is a Python script that analyzes the sshd server log
messages to determine which hosts are attempting to hack into your
system. It also determines what user accounts are being targeted. It
keeps track of the frequency of attempts from each host and, upon
discovering a repeated attack host, updates the /etc/hosts.deny file
to prevent future break-in attempts from that host.  Email reports can
be sent to a system admin.


%prep
%setup -q -n DenyHosts-%{version}
%patch0 -p0 -b .config
%patch1 -p0 -b .setup
%patch2 -p0 -b .daemon-control
%patch10 -p1 -b .regex

cp %{SOURCE6} .

# Fix up non-utf8-ness
for i in CHANGELOG.txt; do
  iconv -f iso-8859-1 -t utf-8 < $i > $i. && touch -r $i $i. && mv -f $i. $i
done

# This must be moved before the Python build process runs so that we
# can include it as documentation.
mv plugins/README.contrib .

# And the permissions are off as well
chmod +x plugins/*


%build
%py2_build

%install
%py2_install

install -d %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_initrddir}
install -d %{buildroot}/%{_sysconfdir}/cron.d
install -d %{buildroot}/%{_sysconfdir}/logrotate.d
install -d %{buildroot}/%{_sysconfdir}/sysconfig

install -d -m 700 %{buildroot}/%{_localstatedir}/lib/denyhosts
install -d %{buildroot}/%{_localstatedir}/log

install -p -m 600 denyhosts.cfg-dist %{buildroot}/%{_sysconfdir}/denyhosts.conf
install -p -m 755 daemon-control-dist %{buildroot}/%{_bindir}/denyhosts-control
install -p -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/cron.d/denyhosts
install -p -m 755 %{SOURCE2} %{buildroot}/%{_initrddir}/denyhosts
install -p -m 644 %{SOURCE3} %{buildroot}/%{_localstatedir}/lib/denyhosts/allowed-hosts
install -p -m 644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/sysconfig/denyhosts
install -p -m 644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/logrotate.d/denyhosts

touch %{buildroot}/%{_localstatedir}/log/denyhosts

for i in allowed-warned-hosts hosts hosts-restricted hosts-root \
         hosts-valid offset suspicious-logins sync-hosts \
         users-hosts users-invalid users-valid; do
  touch %{buildroot}/%{_localstatedir}/lib/denyhosts/$i
done

#fix python shebang
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/denyhosts-control


%preun
%_preun_service %name

%post
# Note that we do not automaticaly run --migrate, because we can't be
# sure that all of the hosts.deny entries were created by denyhosts
%_post_service %name

touch %{_localstatedir}/log/denyhosts
touch %{_localstatedir}/lib/denyhosts/allowed-warned-hosts
touch %{_localstatedir}/lib/denyhosts/hosts
touch %{_localstatedir}/lib/denyhosts/hosts-restricted
touch %{_localstatedir}/lib/denyhosts/hosts-root
touch %{_localstatedir}/lib/denyhosts/hosts-valid
touch %{_localstatedir}/lib/denyhosts/offset
touch %{_localstatedir}/lib/denyhosts/suspicious-logins
touch %{_localstatedir}/lib/denyhosts/sync-hosts
touch %{_localstatedir}/lib/denyhosts/users-hosts
touch %{_localstatedir}/lib/denyhosts/users-invalid
touch %{_localstatedir}/lib/denyhosts/users-valid

%postun
if [ $1 -ge 1 ] ; then
  service %name condrestart >/dev/null 2>&1
fi


%files
%doc CHANGELOG.txt denyhosts.cfg-dist LICENSE.txt
%doc README.fedora README.txt setup.py README.contrib

%{_bindir}/denyhosts.py
%{_bindir}/denyhosts-control
%{_datadir}/denyhosts
%{python2_sitelib}/*

%config(noreplace) %{_sysconfdir}/denyhosts.conf
%config(noreplace) %{_sysconfdir}/cron.d/denyhosts
%config(noreplace) %{_sysconfdir}/logrotate.d/denyhosts
%config(noreplace) %{_sysconfdir}/sysconfig/denyhosts
%config(noreplace) %{_localstatedir}/lib/denyhosts/allowed-hosts

%ghost %{_localstatedir}/log/denyhosts
%ghost %{_localstatedir}/lib/denyhosts/allowed-warned-hosts
%ghost %{_localstatedir}/lib/denyhosts/hosts
%ghost %{_localstatedir}/lib/denyhosts/hosts-restricted
%ghost %{_localstatedir}/lib/denyhosts/hosts-root
%ghost %{_localstatedir}/lib/denyhosts/hosts-valid
%ghost %{_localstatedir}/lib/denyhosts/offset
%ghost %{_localstatedir}/lib/denyhosts/suspicious-logins
%ghost %{_localstatedir}/lib/denyhosts/sync-hosts
%ghost %{_localstatedir}/lib/denyhosts/users-hosts
%ghost %{_localstatedir}/lib/denyhosts/users-invalid
%ghost %{_localstatedir}/lib/denyhosts/users-valid

%dir %{_localstatedir}/lib/denyhosts

%{_initrddir}/denyhosts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 975 |21cr|desmume-0.9.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Nintendo DS emulator
Name:		desmume
Version:	0.9.13
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://desmume.sourceforge.net/
Source0:	https://github.com/TASEmulators/desmume/releases/download/release_0_9_13/desmume-%{version}.tar.xz
Source10:	%{name}-48.png
Patch0:		desmume-formatstring.patch
Patch1:		desmume-aarch64-build.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	recode
BuildRequires:	meson
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkglext-1.0)
BuildRequires:	pkgconfig(libagg)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(soundtouch)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pcap-devel
Obsoletes:	wx%{name} < 0.9.10

%description
DeSmuME is a Nintendo DS emulator running homebrew demos and commercial 
games... For the latter ones, you should own the games corresponding the 
roms you play with.

You can find a compatibility list here : http://desmume.org/?page_id=15

In this package is the GTK GUI version.

%files
%doc desmume/AUTHORS desmume/ChangeLog desmume/README desmume/README.LIN
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/icons/*/*/*/org.desmume.DeSmuME.svg
%{_datadir}/metainfo/org.desmume.DeSmuME.metainfo.xml
%{_datadir}/applications/*.desktop
%{_mandir}/man1/desmume.1*

#----------------------------------------------------------------------------

%package -n %{name}-cli
Summary:	A Nintendo DS emulator (CLI version)
Group:		Emulators

%description -n %{name}-cli
DeSmuME is a Nintendo DS emulator running homebrew demos and commercial 
games... For the latter ones, you should own the games corresponding the 
roms you play with.

You can find a compatibility list here : http://desmume.org/?page_id=15

In this package is the CLI version (without a GUI).

%files -n %{name}-cli
%doc desmume/AUTHORS desmume/ChangeLog desmume/README desmume/README.LIN
%attr(0755,root,root) %{_bindir}/%{name}-cli
%{_mandir}/man1/desmume-cli.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

recode l1..u8 %{name}/AUTHORS %{name}/ChangeLog
perl -pi -e 's|\r\n|\n|g' %{name}/AUTHORS %{name}/ChangeLog
find . -name *.[ch]* -exec chmod 644 {} +

%build
pushd desmume/src/frontend/posix
%meson \
    -Dopenal=true \
    -Dfrontend-gtk=true \
    -Dfrontend-cli=true \
    -Dwifi=true \
    -Dgdb-stub=true

%meson_build
popd
%install
pushd desmume/src/frontend/posix
%meson_install
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 976 |21cr|detox-1.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to replace problematic characters in file names
Name:		detox
Version:	1.4.5
Release:	1
License:	BSD
Group:		File tools
Url:		https://github.com/dharple/detox
Source0:	https://github.com/dharple/detox/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	flex

%description
Detox is a utility designed to clean up file names. It replaces difficult to
work with characters, such as spaces, with standard equivalents. It will also
clean up file names with UTF-8 or Latin-1 (or CP-1252) characters in them.

%files
%doc README.md
%{_bindir}/%{name}
%{_bindir}/inline-%{name}
%{_datadir}/%{name}/
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_mandir}/man5/detox*
%{_mandir}/man1/detox*
%{_mandir}/man1/inline-%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_sysconfdir}/detoxrc.sample

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 977 |21cr|deutex-5.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define waddir %{_datadir}/doom

Summary:	DOOM wad file manipulator
Name:		deutex
Version:	5.2.2
Release:	1
# All files LGPLv2+ or GPLv2+ except ./src/lzw.c which is MIT
License:	GPLv2+ and MIT
Group:		Games/Arcade
URL:		https://github.com/Doom-Utils/deutex
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		deutex-5.2.0-waddir.patch
BuildRequires:	asciidoc
BuildRequires:	pkgconfig(libpng)

%description
DeuTex is a wad composer for Doom, Heretic, Hexen and Strife. It can be
used to extract the lumps of a wad and save them as individual files.
Conversely, it can also build a wad from separate files. When extracting
a lump to a file, it does not just copy the raw data, it converts it to
an appropriate format (such as PPM for graphics, Sun audio for samples,
etc.). Conversely, when it reads files for inclusion in pwads, it does
the necessary conversions (for example, from PPM to Doom picture
format). In addition, DeuTex has functions such as merging wads, etc. If
you're doing any wad hacking beyond level editing, DeuTex is a must.

%files
%doc COPYING COPYING.LIB AUTHORS README.adoc NEWS.adoc
%license LICENSE
%{_bindir}/deutex

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
autoreconf -if
%configure \
	--with-libpng

%make CFLAGS="%{optflags} -DDOOMDIR=\"\\\"%{waddir}\\\"\""

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 978 |21cr|devede-4.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################
# Hardcode PLF build
%define build_plf 0
######################
%if %{build_plf}
%define distsuffix plf
%define extrarelsuffix plf
%endif

Summary:	Graphical frontend to create video DVDs/(S)VCDs
Name:		devede
Version:	4.16.0
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Other
URL:		http://www.rastersoft.com/programas/devede.html
Source0:	https://github.com/rastersoft/devedeng/archive/%{version}.tar.gz?/%{name}ng-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	imagemagick
Requires:	dvdauthor
Requires:	mencoder
Requires:	mkisofs
Requires:	mplayer
Requires:	ffmpeg
Requires:	vcdimager
Requires:	ffmpeg
Requires:	python3-pkg-resources
Requires:	py3cairo
%if %{build_plf}
Requires:	faad2
%else
Recommends:	faad2
%endif
Provides:	%{name}ng = %{EVRD}
BuildArch:	noarch

%description
DeVeDe is a program to create video DVDs (compatible with home players) from
nearly any video format. It only uses Python, MPlayer, Mencoder, DVDAuthor,
VCDImager, and mkisofs, so it has very few dependencies.

%files -f %{name}ng.lang
%doc %{_datadir}/doc/%{name}ng
%{_bindir}/*
%{_datadir}/applications/%{name}_ng.py.desktop
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/%{name}ng
%{_datadir}/pixmaps/%{name}ng.svg
%{py3_puresitedir}/%{name}ng
%{py3_puresitedir}/%{name}ng-%{version}-py*.egg-info
%{_mandir}/man1/%{name}.1.*
#-------------------------------------------------------------------------
%prep
%setup -qn %{name}ng-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} --skip-build

for i in {16,22,32,64}
do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps
	convert -resize $i data/devedeng.svg %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{name}ng.png
done

pushd %{buildroot}%{py3_puresitedir}/%{name}ng
chmod 755 {configuration_data,file_copy,mkisofs,executor,avbase,dvdauthor_converter,help,ffmpeg,ffprobe,genisoimage,vcdimager_converter,mpv,avprobe,avconv,subtitles_mux,__init__,mplayer,mux_dvd_menu}.py
popd

%find_lang %{name}ng

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 979 |21cr|devicesync-0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn     893106
Name:           devicesync
Version:        0.1
Summary:        An application that lets you transfer data between devices
Release:        5
License:        GPL
Group:          Graphical desktop/KDE
URL:            http://www.kde.org
Source0:        http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.%{svn}.tar.bz2
BuildRequires:  kdelibs4-devel
BuildRequires:  libmtp-devel
BuildRequires:  taglib-devel
Requires:       kdebase4-runtime

%description
An application that lets you transfer data between devices

%files
%defattr(-,root,root)
%{_kde_bindir}/devicesync
%{_kde_libdir}/kde4/devicesync_localstorageplugin.so
%{_kde_libdir}/kde4/devicesync_mtpplugin.so
%{_kde_datadir}/applications/kde4/devicesync.desktop
%{_kde_appsdir}/devicesync
%{_kde_datadir}/config.kcfg/devicesync.kcfg
%doc %{_kde_docdir}/HTML/en/devicesync
%{_kde_iconsdir}/hicolor/*/apps/devicesync.png
%{_kde_datadir}/kde4/services/devicesync_localstorage.desktop
%{_kde_datadir}/kde4/services/devicesync_mtp.desktop
%{_kde_datadir}/kde4/servicetypes/devicesync_plugin.desktop


#------------------------------------------------

%define libdevicesynccore_major 4
%define libdevicesynccore %mklibname devicesynccore %libdevicesynccore_major

%package -n %libdevicesynccore
Summary: %name core library
Group: System/Libraries

%description -n %libdevicesynccore
%name core library.

%files -n %libdevicesynccore
%defattr(-,root,root)
%_kde_libdir/libdevicesynccore.so.%{libdevicesynccore_major}*

#-----------------------------------------------------------------------------

%package devel
Group: Development/KDE and Qt
Summary: Header files and documentation for compiling %name applications
Requires: kdelibs4-devel
Requires: %libdevicesynccore = %version

%description devel
This package includes the header files you will need to compile applications
for %name.

%files devel
%defattr(-,root,root,-)
%{_kde_libdir}/libdevicesynccore.so
%{_kde_includedir}/devicesync

#-----------------------------------------------------------------------------

%prep
%setup -q -n %name

%build

%cmake_kde4
%make


%install
rm -rf %buildroot
cd build
make DESTDIR=%buildroot install
cd ..

%clean
rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 980 |21cr|devilspie-0.23-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A window matching tool
Name:		devilspie
Version:	0.23
Release:	4
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://www.burtonini.com/
Source0:	http://www.burtonini.com/computing/%{name}-%{version}.tar.xz
# Debian patchset
Patch0:		fix_manpage_lintian_warnings.patch
Patch1:		fix_memleak_in_my_wnck_get_viewport_start.patch
Patch2:		fix_using_deprecated_wnck_functions.patch
Patch3:		remove_unavailable_options_from_manpage.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(x11)

%description
A window-matching utility, inspired by Sawfish's "Matched Windows" option and
the lack of the functionality in Metacity. Metacity lacking window matching is
not a bad thing -- Metacity is a lean window manager, and window matching does
not have to be a window manager task.

Devil's Pie can be configured to detect windows as they are created, and match
the window to a set of rules. If the window matches the rules, it can perform a
series of actions on that window. For example, I make all windows created by
X-Chat appear on all workspaces, and the main Gkrellm1 window does not appear
in the pager or task list.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README* TODO
%{_bindir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%configure
%make

%check
make check

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 981 |21cr|devilutionx-1.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%define oname devilutionX

Summary:	An open source implementation of the Diablo 1 game engine
Name:		devilutionx
Version:	1.5.3
Release:	1
License:	Public Domain
Group:		Games/Adventure
Url:		https://github.com/diasurgical/devilutionX
Source0:	https://github.com/diasurgical/devilutionX/releases/download/%{version}/devilutionx-src.tar.xz?/devilutionx-%{version}-src.tar.xz
Patch0:		devolutionx-linkage.patch
BuildRequires:  cmake
BuildRequires:  desktop-file-utils
BuildRequires:  gettext
BuildRequires:  hicolor-icon-theme
BuildRequires:  ninja
BuildRequires:  libstdc++-static-devel
BuildRequires:  natpmp-devel
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  pkgconfig(fmt)
BuildRequires:  pkgconfig(gmock)
BuildRequires:  pkgconfig(gtest)
BuildRequires:  pkgconfig(libsodium)
BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(zlib)
#Requires:       fonts-ttf-charis-sil
Requires:       SDL2_mixer-player
ExclusiveArch:  %{x86_64}

%description
DevilutionX is a open source implementation of the game engine used in
Diablo1.
This package only includes the binary files, you still need the data
files from the original Diablo1 CD.

%files
%license LICENSE.md
%doc README.md
%{_bindir}/%{name}
%{_datadir}/diasurgical
%{_datadir}/icons/hicolor/512x512/apps/%{name}*.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-hellfire.desktop
%{_datadir}//metainfo/%{name}.metainfo.xml


%post
echo "Copy diabdat.mpq to ~/.local/share/diasurgical/devilution/"

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n devilutionx-src-%{version}

# Fix EOF
sed -i 's/\r$//' README.md


%build
export CXXFLAGS='%{optflags} -DTTF_FONT_PATH=\"/usr/share/fonts/truetype/CharisSILB.ttf\"'
# Disable tests: not used and with them the building fails with linker errors.
%cmake \
 -DBINARY_RELEASE=ON \
 -DVERSION_NUM=%{version} \
 -DSDL2_INCLUDE_DIRS=%{_includedir}/SDL2 \
 -DBUILD_TESTING=OFF \
 -G Ninja

export LD_LIBRARY_PATH=$(pwd)/test:$LD_LIBRARY_PATH
%ninja_build


%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 982 |21cr|devmon-0.3.1-0.beta1.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta beta1

Summary:	SNMP Device Monitoring for Hobbit/BigBrother
Name:		devmon
Version:	0.3.1
Release:	0.%{beta}.4
License:	GPLv2+
Group:		Monitoring
Url:		http://devmon.sf.net
Source0:	http://prdownloads.sourceforge.net/devmon/devmon-%{version}%{?beta:-%beta}.tar.gz
Source1:	devmon-tmpfiles.conf
Patch0:		devmon-correct-paths.patch
Requires:	devmon-templates
Requires(pre,post,preun,postun):	rpm-helper
BuildArch:	noarch

%description
Devmon is a device monitoring script which works in tandem with the
Hobbit/BigBrother monitoring suites. It queries remote hosts via SNMP, applies
user-defined logic and thresholds to the acquired data, and submits status and
alarms to a display server.

%files
%doc docs/* README CHANGELOG extras/devmon.db extras/devmon-graph.cfg
%{_datadir}/%{name}
%attr(,640,root,devmon) %config(noreplace) %{_sysconfdir}/devmon.cfg
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config %{_initrddir}/%{name}
%attr(755,devmon,devmon) %dir %{_logdir}/%{name}
%ghost %attr(755,devmon,devmon) %dir %{_var}/run/%{name}
%attr(755,devmon,devmon) %dir %{_localstatedir}/lib/%{name}
%{_tmpfilesdir}/%{name}.conf

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/false

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{beta}
%patch0 -p1 -b .mdv

%build

%install
install -d %{buildroot}/%{_datadir}/%{name}
install -d %{buildroot}/%{_sysconfdir}/logrotate.d %{buildroot}/%{_initrddir}
install -d %{buildroot}/%{_localstatedir}/lib/%{name} %{buildroot}/%{_var}/run/%{name}
install -d %{buildroot}/%{_logdir}/%{name}
install -d %{buildroot}/%{_localstatedir}/lib/%{name}
cp -a modules %{buildroot}/%{_datadir}/%{name}
install -m755 devmon %{buildroot}/%{_datadir}/%{name}
install -m 640 devmon.cfg %{buildroot}/%{_sysconfdir}
install -m 755 extras/devmon.initd.redhat %{buildroot}/%{_initrddir}/devmon

cat << EOF > %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
/var/log/devmon/devmon.log {
    notifempty
    missingok
    postrotate
        /sbin/service %{name} condrestart 2> /dev/null > /dev/null || true
    endscript
}
EOF

mkdir -p %{buildroot}%{_tmpfilesdir}
install -m0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 983 |21cr|devmon-templates-20080206-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Templates for Devmon SNMP Device Monitoring for Hobbit/BigBrother
Name:		devmon-templates
Version:	20080206
Release:	9
License:	GPLv2+
Group:		Monitoring
Url:		http://devmon.sf.net
Source0:	http://prdownloads.sourceforge.net/devmon/devmon-templates-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
Requires:	devmon
BuildArch:	noarch

%description
Devmon is a device monitoring script which works in tandem with the
Hobbit/BigBrother monitoring suites. It queries remote hosts via SNMP, applies
user-defined logic and thresholds to the acquired data, and submits status and
alarms to a display server.

This package contains the device templates, which define the OIDs, transforms,
thresholds, exceptions, and the message template sent to Hobbit/Big Brother.

%files
%{_datadir}/devmon/templates

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}/%{_datadir}/devmon/templates
cp -a * %{buildroot}/%{_datadir}/devmon/templates

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 984 |21cr|devtodo-0.1.20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		devtodo
Summary:	Todo displays and manages heirarchical lists of prioritized tasks
Version:	0.1.20
Release:	7
Source0:	%{name}-%{version}.tar.bz2
Patch0:		devtodo-0.1.20-fix-gcc43.patch
URL:		http://swapoff.org/DevTodo
Group:		Development/Other
Buildrequires:	readline-devel ncurses-devel glibc-static-devel
License:	GPLv2

%description
Todo is a program to display and manage a hierarchical, prioritized list of
outstanding work, or just reminders.

The program itself is assisted by a few shell scripts that override default
builtins. Specifically, cd, pushd and popd are overridden so that when using
one of these commands to enter a directory, the todo will display any
outstanding items in that directory.

For much more complete information please refer to the man page (devtodo(1)).

%prep
%setup -q
%patch0 -p1 -b .gcc43

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%doc AUTHORS README COPYING INSTALL NEWS QuickStart doc/todorc.example doc/scripts.sh doc/scripts.tcsh ChangeLog
%config(noreplace) %{_sysconfdir}/todorc
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 985 |21cr|dex-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Generate and execute DesktopEntry files
Name:           dex
Version:        0.9.0
Release:        1
License:        GPLv3+
Group:          File tools
Url:            https://github.com/jceb/dex
Source0:        https://github.com/jceb/dex/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-sphinx
Requires:       python3
BuildArch:      noarch

%description
dex, DesktopEntry Execution, is a program to generate and execute
DesktopEntry files of the Application type.

%files
%doc LICENSE README.rst CHANGELOG.md
%{_mandir}/man1/%{name}.1*
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make VERSION=%{version}

%install
%makeinstall_std PREFIX=%{_prefix} MANPREFIX=%{_mandir}

%check
# TODO: fix all tests
%{buildroot}/%{_bindir}/%{name} --test -v || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 986 |21cr|dfb++-1.2.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Name	DFB++

%define api		%(A=%version; echo ${A%%.*})
%define major		%(A=%version; echo ${A##*.})
%define libname		%mklibname %{name} %{api} %{major}
%define libnamedevel	%mklibname %{name} -d

Summary:	C++ binding for DirectFB providing a much easier usage
Name:		dfb++
Version:	1.2.0
Release:	14
License:	LGPLv2+
Group:		System/Libraries
URL:		http://directfb.org/
Source0:	http://directfb.org/downloads/Extras/%{Name}-%{version}.tar.gz
Patch0:		DFB++-1.2.0-directfb-api.patch
BuildRequires:	directfb-devel >= %{version}

%description
This is a C++ binding for DirectFB providing a much easier usage.

%package -n	%{libname}
Summary:	C++ binding for DirectFB providing a much easier usage
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n	%{libname}
This is a C++ binding for DirectFB providing a much easier usage.

This package contains the library needed to run programs dynamically
linked with DFB++.

%package -n 	%{libnamedevel}
Summary:	Headers for developing programs that will use DFB++
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}%{api}-devel = %{version}-%{release}

%description -n %{libnamedevel}
This package contains the headers that programmers will need to develop
applications which will use DFB++.

%package	examples
Summary:	Example programs that use DFB++
Group:		Development/C++

%description	examples
Example programs dfbshow and dfbswitch that use DFB++.

%prep
%setup -q -n %{Name}-%{version}
%patch0 -p0

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std
chmod 644 %{buildroot}%{_libdir}/*.la

make -C examples clean

%files -n %{libname}
%{_libdir}/libdfb++-%{api}.so.%{major}*

%files -n %{libnamedevel}
%doc COPYING
%{_bindir}/dfb++-config
%{_includedir}/dfb++
%{_libdir}/*.so
%{_libdir}/pkgconfig/dfb++.pc

%files examples
%doc COPYING examples
%{_bindir}/dfbshow
%{_bindir}/dfbswitch

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 987 |21cr|d-feet-0.3.16-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}
%define	url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	D-Bus debugger
Name:		d-feet
Version:	0.3.16
Release:	8
License:	GPLv2+
Group:		Emulators
Url:		https://download.gnome.org/sources/d-feet
Source0:	https://download.gnome.org/sources/%{name}/0.3/%{name}-%{version}.tar.xz
Patch0:		d-feet-build-with-meson61.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	perl-XML-Parser
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	python3egg(setuptools)
Requires:	python3-dbus
BuildArch:	noarch

%description
D-Feet is a D-Bus debugger written in PyGtk by John (J5) Palmieri.
It allows :
* to view names on any bus,
* to view exported objects, interfaces, methods and signals,
* to view the full command line of services on the bus,
* to execute methods with parameters on the bus and see their return values.

%files -f %{name}.lang
%doc AUTHORS COPYING README.md
%{py3_puresitedir}/dfeet/*
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/*/apps/*.svg
%{_datadir}/metainfo/org.gnome.dfeet.appdata.xml
%{_datadir}/applications/org.gnome.dfeet.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.dfeet.gschema.xml

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%meson -Dtests=false
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_datadir}/%{name}/help/figures
mv %{buildroot}%{_datadir}/help/C/%{name}/{index,basics}.page %{buildroot}%{_datadir}/%{name}/help/
mv %{buildroot}%{_datadir}/help/C/%{name}/figures/icon.png %{buildroot}%{_datadir}/%{name}/help/figures/
rm -rf %{buildroot}%{_datadir}/help

# Fix .desktop file
desktop-file-edit --set-key="Keywords[fr]" --set-value="d?bogage;d-bus;" %{buildroot}%{_datadir}/applications/org.gnome.dfeet.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 988 |21cr|dfm-0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		dfm
Summary:	Dino file manager
Version:	0.5
Release:	4
License:	GPLv3+
Group:		Graphical desktop/Other
URL:		http://dfm.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/dfm/src/Dino_src-%{version}.tar.gz
BuildRequires:	qt4-devel
BuildRequires:	imagemagick

%description
Dino is an easy to use and powerful file manager built in Qt. It’s features
include symlinking files by mouse click, the usual features such as making
directories, run commands, copying & pasting..etc; drag and drop and even
a built in text editor.

%prep
%setup -q

%build
%qmake_qt4
%make
lrelease Dino.pro

%install
#make install INSTALL_ROOT=%{buildroot}

%__install -d %{buildroot}%{_datadir}/Dino/translations/
%__install -d %{buildroot}%{_datadir}/applications/

%__install -D -m 755 Dino %{buildroot}%{_bindir}/Dino
cp -a translations/Dino_*.qm %{buildroot}%{_datadir}/Dino/translations/
%__rm -f %{buildroot}%{_datadir}/Dino/translations/Dino_xx_xx.qm
%__install -D -m 644 dino.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/dino.png
for size in 16 32 48
do
%__install -d -m 755 %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/
convert -resize ${size}x${size} dino.png %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/dino.png
done

cat > %{buildroot}%{_datadir}/applications/Dino.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Dino
GenericName=Dino
Comment=Simple File Manager
Exec=Dino
Icon=dino
Terminal=false
Type=Application
StartupNotify=false
Categories=FileTransfer;Utility;FileManager;Qt;
EOF

%if %{mdvver} >= 201200
%find_lang Dino --with-qt
%else
cat > Dino.lang << EOF
%lang(ru) /usr/share/Dino/translations/Dino_ru.qm
%lang(sr_BA) /usr/share/Dino/translations/Dino_sr_BA.qm
%lang(de) /usr/share/Dino/translations/Dino_de.qm
%lang(sr_RS) /usr/share/Dino/translations/Dino_sr_RS.qm
%lang(es_VE) /usr/share/Dino/translations/Dino_es_VE.qm
EOF
%endif

%files -f Dino.lang
%{_bindir}/Dino
%{_datadir}/applications/Dino.desktop
%{_iconsdir}/hicolor/*/apps/dino.*
%doc CHANGELOG README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 989 |21cr|dfu-programmer-0.7.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Device Firmware Update based USB programmer for Atmel chips
Name:		dfu-programmer
Version:	0.7.2
Release:	3
License:	GPLv2+
Group:		Development/Tools
Url:		http://dfu-programmer.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libusb-1.0)

%description
A linux based command-line programmer for Atmel chips with a USB
bootloader supporting ISP. This is a mostly Device Firmware Update
(DFU) 1.0 compliant user-space application. Supports all DFU enabled
Atmel chips with USB support.

%files
%doc AUTHORS ChangeLog NEWS README COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/hal/fdi/information/20thirdparty/10-dfu-programmer.fdi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

install -d %{buildroot}%{_datadir}/hal/fdi/information/20thirdparty
install -pm 644 fedora/10-dfu-programmer.fdi %{buildroot}%{_datadir}/hal/fdi/information/20thirdparty/10-dfu-programmer.fdi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 990 |21cr|dfu-util-0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to reflash firmware by usb
Name:		dfu-util
Version:	0.11
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://dfu-util.sourceforge.net/
Source0:	http://dfu-util.sourceforge.net/releases/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libusb-1.0)

%description
USB Device Firmware Upgrade (DFU) is an official USB device class specification
of the USB Implementers Forum. It specifies a vendor and device independent way
of updating the firmware of a USB device. The idea is to have only one
vendor-independent firmware update tool as part of the operating system, which
can then (given a particular firmware image) be downloaded into the device.

In addition to firmware download, it also specifies firmware upload, i.e.
loading the currently installed device firmware to the USB Host.

%files
%{_bindir}/dfu-prefix
%{_bindir}/dfu-suffix
%{_bindir}/dfu-util
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 991 |21cr|dgen-sdl-1.33-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DGen Sega Genesis emulator, ported to SDL
Name:		dgen-sdl
Version:	1.33
Release:	2
License:	BSD
Group:		Emulators
Url:		http://dgen.sourceforge.net/
Source0:	http://sourceforge.net/projects/dgen/files/dgen/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
%ifarch %{ix86}
BuildRequires:	nasm
%endif

%description
DGen/SDL is a free, open source emulator for Sega Genesis/MegaDrive systems.
The latest version supports save states, interlace mode, Game Genie,
Linux joystick support, compressed ROM images, and other nice features.

Warning! There is no GUI yet so you need to either run DGen/SDL from
terminal or use front-end (if there are any).

%files
%doc AUTHORS ChangeLog COPYING README BUGS
%{_bindir}/dgen
%{_bindir}/dgen_tobin
%{_mandir}/man1/dgen.1*
%{_mandir}/man1/dgen_tobin.1*
%{_mandir}/man5/dgenrc.5*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--without-star \
	--enable-opengl
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 992 |21cr|dhcpdump-1.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Parse tcpdump DHCP packets
Name:           dhcpdump
Version:        1.8
Release:        7
License:        BSD
Group:		Networking/Other
URL:		http://www.mavetju.org/unix/general.php
Source:         http://www.mavetju.org/download/%{name}-%{version}.tar.gz
Patch0:		dhcpdump-1.8.patch
Requires:	tcpdump
BuildRequires:	perl
BuildRequires:	pcap-devel

%description
A post-processor of tcpdump output to analyze sniffed DHCP
packets.

%prep

%setup -q
%patch0 -p0 -b .build

%build

%make CCFLAGS="%{otpflags}"

%install
rm -rf %{buildroot}

install -D -m 755 dhcpdump %buildroot%_bindir/%{name}
install -D -m644 dhcpdump.8 %buildroot%_mandir/man8/dhcpdump.8

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES CONTACT
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 993 |21cr|dhcp-forwarder-0.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An DHCP relay agent
Name:		dhcp-forwarder
Version:	0.11
Release:	3
License:	GPLv2+
Group:		System/Servers
Url:		http://www.nongnu.org/dhcp-fwd/
Source0:	http://savannah.nongnu.org/download/dhcp-fwd/%{name}-%{version}.tar.xz
Source1:	dhcp-forwarder.service
Requires(pre,post,preun,postun):	rpm-helper
Conflicts:	dhcpd-relay

%description
dhcp-fwd forwards DHCP messages between subnets with different sublayer
broadcast domains. It is similar to the DHCP relay agent dhcrelay of
ISC's DHCP, but has the following features which are important for me:

* Runs as non-root in a chroot-jail
* Uses "normal" AF_INET sockets which allows to uses packagefilters to
  filter incoming messages.
* The DHCP agent IDs can be defined freely
* Has a small memory footprint when using dietlibc

%files
%doc AUTHORS ChangeLog NEWS README
%config(noreplace) %{_sysconfdir}/sysconfig/dhcp-fwd
%config(noreplace) %{_sysconfdir}/dhcp-fwd.conf
%{_sbindir}/*
%dir /var/lib/dhcpfwd
%{_mandir}/man1/*
%{_unitdir}/dhcp-forwarder.service

%pre
%_pre_useradd dhcp-fwd /var/lib/dhcpfwd /bin/false

%post
%_post_service dhcp-forwarder

%preun
%_preun_service dhcp-forwarder

%postun
%_postun_userdel dhcp-fwd

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-release \
	--disable-dietlibc \
	--with-systemd-unitdir=%{_unitdir}

%make

%install
%makeinstall_std
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/sysconfig

install %{SOURCE1} %{buildroot}/%{_unitdir}/dhcp-forwarder.service

install -m644 contrib/dhcp-fwd.conf %{buildroot}%{_sysconfdir}/dhcp-fwd.conf
install -m644 contrib/dhcp-fwd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/dhcp-fwd

install -m755 -d %{buildroot}/var/lib/dhcpfwd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 994 |21cr|dhcping-1.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dhcp daemon ping program
Name:           dhcping
Version:        1.2
Release:        16
License:        BSD
Group:		Networking/Other
URL:		http://www.mavetju.org/unix/general.php
Source:         http://www.mavetju.org/download/%{name}-%{version}.tar.gz

%description
This small tool let you perform a dhcp-request to find out if a dhcp-server is
still running.

%prep

%setup -q

%build

%configure

%make

%install

%makeinstall

%clean

%files
%doc CHANGES CONTACT
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 995 |21cr|dhcprelay-0.3.2b-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A dhcp relay to implement dhcp over ipsec
Name:		dhcprelay
Version:	0.3.2b
Release:	8
License:	GPLv2+
Group:		System/Servers
Url:		http://www.strongsec.com/freeswan/dhcprelay/
Source0:	http://www.strongsec.com/freeswan/dhcprelay/dhcprelay-%{version}.tar.gz
BuildRequires:	gmp-devel
Requires(post,preun):	rpm-helper

%description
This DHCP-Relay forwards any DHCP packet out of a list of given ipsec devices
to the DHCP server of a network and returns the response. If no DHCP server is
given the packets are sent by broadcast.

%files
%defattr(-,root,root,755)
%doc AUTHORS README INSTALL COPYING ChangeLog howto/*
%config(noreplace) %{_sysconfdir}/dhcprelay.conf
%{_initrddir}/dhcprelay
%{_sbindir}/dhcprelay

%post
%_post_service dhcprelay

%preun
%_preun_service dhcprelay

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
#makeinstall_std

install -d %{buildroot}{%{_sysconfdir},/etc/rc.d/init.d,/usr/sbin}
install -m 755 src/dhcprelay %{buildroot}/usr/sbin
install -m 755 init.d/dhcprelay %{buildroot}/etc/rc.d/init.d
install -m 644 etc/dhcprelay.conf %{buildroot}/etc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 996 |21cr|dhcpstatus-0.60-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^perl\\((dhcpstatus::.*)

Summary:	Dhcp IP status cgi

Name:		dhcpstatus
Version:	0.60
Release:	25
License:	GPLv2+
Group:		Monitoring
Url:		http://dhcpstatus.sourceforge.net
Source0:	%{name}_%{version}.tar.bz2
Source1:	%{name}_%{version}.patch
BuildArch:	noarch
Requires:	dhcp-server
Requires:	perl(CGI)

%description
DHCP-Status is basically two Perl CGI scripts that provide an overall picture
of the information contained in the dhcpd.conf and dhcpd.leases files that
are used by ISC's DHCP server, DHCPD.

%prep
%setup -qn %{name}_%{version}

%build

%install
mkdir -p %{buildroot}%{perl_vendorlib}/%{name}
mkdir -p %{buildroot}%{_docdir}/%{name}_%{version}
mkdir -p %{buildroot}/var/www/cgi-bin
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/
tar xf libraries.tar
# TODO: Fix Apply patch 
bzcat %{SOURCE1} | patch -p0

cp -a %{name}/*.pm %{buildroot}/%{perl_vendorlib}/%{name}
cp -a {README,INSTALL,LICENSE} %{buildroot}%{_docdir}/%{name}_%{version}
cp -a scripts/*.cgi %{buildroot}/var/www/cgi-bin
cp -a scripts/%{name} %{buildroot}/%{_bindir}
cp -a *.ini %{buildroot}/%{_sysconfdir}/
sed -i -e 's|/etc/dhcpd\.leases|%{_localstatedir}/lib/dhcp/dhcpd.leases|' %{buildroot}/var/www/cgi-bin/%{name}.cgi
sed -i -e 's|/usr/local/dhcpstatus|%{_sysconfdir}|' %{buildroot}/%{_bindir}/%{name}
sed -i -e 's|/local||' %{buildroot}/%{_bindir}/%{name}
sed -i -e 's|/usr/local/dhcpstatus|%{_sysconfdir}|' %{buildroot}/var/www/cgi-bin/%{name}.cgi
sed -i -e 's|/etc/dhcpd\.leases|%{_localstatedir}/lib/dhcp/dhcpd.leases|' %{buildroot}/%{_sysconfdir}/dhcpstatus.ini

#(peroyvind) remove unpackaged files
rm -rf %{buildroot}%{_docdir}/%{name}_%{version}

%files
%doc  INSTALL README LICENSE
%{perl_vendorlib}/dhcpstatus
%attr(755,root,root) /var/www/cgi-bin/*
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/*ini

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 997 |21cr|dhcpxd-1.0.3-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

Summary:	DHCPXD Daemon
Name:		dhcpxd
Version:	1.0.3
Release:	33
License:	GPL
Group:		System/Servers
Source:		ftp://ftp.guido.yi.org:50021/dhcpxd-%{version}.tar.bz2
Patch2:		dhcpxd-1.0.3-gcc-3.3.patch
Patch3:		dhcpxd-1.0.3-64bit-fixes.patch
Patch4:		dhcpxd-1.0.3-varargs.patch
Patch5:		dhcpxd-1.0.3-extra.patch
Patch6:		dhcpxd-glibc28_fix.diff

%description
The primary goal of this DHCP client is to conform to the DHCP specification
defined in RFC2131 which is now the draft standard. However, the client can
be told how to behave. Additionally, the client supports all-in-one-process
session managment as well as a process per session. It may also be used to
masquerade IP leases and has the capability of running on interface aliases.
Finally, perhaps the most advanced feature of the client is that all the
configuration that is required for setting up interfaces is in scripts that
are run at the appropriate times. 

%prep

%setup -q
%patch2 -p1 -b .gcc3.3
%patch3 -p1 -b .64bit-fixes
%patch4 -p1 -b .varargs
%patch5 -p1 -b .extra
%patch6 -p0 -b .glibc28_fix

%build
%configure
perl -pi -e 's/-Wall/\$(RPM_OPT_FLAGS) -Wall/g;' Makefile
%make RPM_OPT_FLAGS="%optflags"

%install
mkdir -p %{buildroot}/sbin %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_sysconfdir}/dhcpxd

cp -f filter %{buildroot}%{_sysconfdir}/dhcpxd
cp -df install/* %{buildroot}%{_sysconfdir}/dhcpxd

ln -sf /dev/log %{buildroot}%{_sysconfdir}/dhcpxd/out

install -m 700 dhcpxd %{buildroot}/sbin/dhcpxd
install -m 644 dhcpxd.8 %{buildroot}%{_mandir}/man8/dhcpxd.8

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/dhcpxd
%attr (0500,root,root) /sbin/dhcpxd
%{_mandir}/man8/dhcpxd.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 998 |21cr|dhsd-1.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A daemon that updates your DNS record in DHS.ORG whenever your IP changes
Name:		dhsd
Version:	1.0
Release:	15
Group:		Networking/Other
License:	GPLv2+
URL:		http://dhsd.sourceforge.net

Source:		%name-%version.tar.bz2


%description
DHSD is a small project spurned off the need for a proper updater for the 
DHS.ORG dynamic DNS services. There has already existed scripts to do it made
in botche bash scripts and lynxs, even some attempts in perl. This program is 
totally developed in C and sits in the background and changes your record when 
the IP changes.

%prep

%setup -q

%build
%configure

%make CFLAGS="%optflags" CXXFLAGS="%optflags"

%check
%make check

%install
rm -fr %buildroot

#echo "prefix = %buildroot/%_prefix" >> $RPM_BUILD_DIR/dhsd-%{version}/src/Makefile.am
#echo "sysconfdir = %buildroot/%_sysconfdir" >> $RPM_BUILD_DIR/dhsd-%{version}/scripts/Makefile.am

%makeinstall
mkdir -p %buildroot/%_sysconfdir/rc.d
mkdir -p %buildroot/%_sysconfdir/rc.d/init.d
mkdir -p %buildroot/%_sysconfdir/rc.d/rc3.d

cp scripts/dhsd-rh %buildroot/%_sysconfdir/rc.d/init.d/dhsd
ln -s ../init.d/dhsd %buildroot/%_sysconfdir/rc.d/rc3.d/S15dhsd

%post
if [ "$1" = 1 ]; then
   chkconfig --add dhsd
fi

%preun
if [ "$1" = 0 ]; then
   chkconfig --del dhsd
fi

%clean
rm -fr %buildroot

%files
%defattr (-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%_sbindir/dhsd
%config(noreplace) %_sysconfdir/rc.d/init.d/dhsd
%_sysconfdir/rc.d/rc3.d/S15dhsd
%config(noreplace) %_sysconfdir/dhsd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 999 |21cr|di-4.51-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Disk information utility, more powerful than 'df'
Name:		di
Version:	4.51
Release:	2
Group:		System/Base
License:	zlib/libpng
Url:		http://www.gentoo.com/di/
Source0:	http://www.gentoo.com/di/di-%{version}.tar.gz

%description
'di' is a disk information utility, displaying everything
(and more) that your 'df' command does. It features the
ability to display your disk usage in whatever format you
prefer. It is designed to be highly portable. Great for
heterogenous networks.

%files -f %{name}.lang
%doc LICENSE MANIFEST
%{_bindir}/*
%{_mandir}/man?/*

#--------------------------------------------------

%prep
%setup -q

%build
make -e LOCALEDIR=/usr/share/locale

%install
mkdir -p %{buildroot}/usr
make -e prefix=%{buildroot}/usr install

%find_lang %{name} %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1000 |21cr|dia-0.98.0-0.git9c28c2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define commit 9c28c29ed8c2ae55cde95fa23baa989f46fb4836
%define commit_short %(echo %{commit} | head -c6)

Summary:	A gtk+ based diagram creation program
Name:		dia
Version:	0.98.0
Release:	0.git%{commit_short}.1
License:	GPLv2+
Group:		Office
Url:		https://gitlab.gnome.org/GNOME/dia
Source0:	https://gitlab.gnome.org/GNOME/dia/-/archive/%{commit}/%{name}-%{commit}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		dia-9c28c2-downgrade-glib.patch
BuildRequires:	appstream-util
BuildRequires:	meson1
BuildRequires:	pkgconfig(graphene-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(python3)
#gw help viewer also for non-GNOME
Recommends:	yelp

%description
Dia is a program designed to be much like the Windows
program 'Visio'. It can be used to draw different kind of diagrams. In
this first version there is support for UML static structure diagrams
(class diagrams) and Network diagrams. It can currently load and save
diagrams to a custom fileformat and export to postscript.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md TODO
%license COPYING
%{_appdatadir}/org.gnome.Dia.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Dia.desktop
%{_datadir}/%{name}
%{_datadir}/thumbnailers/org.gnome.Dia.thumbnailer
%{_iconsdir}/hicolor/scalable/apps/org.gnome.Dia.svg
%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Dia-symbolic.svg
%{_libdir}/lib%{name}.so
%{_libdir}/%{name}

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%meson
%meson_build

%install
%meson_install

chmod -x %{buildroot}%{_datadir}/%{name}/shapes/Civil/civil_aerator.shape
chmod +x %{buildroot}%{_datadir}/%{name}/python/doxrev.py

%find_lang %{name} --with-gnome --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1001 |21cr|diction-1.11-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Text diction and style analyzer
Name: 		diction
Version:	1.11
Release: 	5
Epoch:		1
License: 	GPLv3+
Group: 		Text tools
Source:		%{name}-%{version}.tar.gz
URL: 		http://www.moria.de/~michael/diction/

%description
GNU diction and style are free implementations of old standard Unix
commands that are unavailable on many modern systems because they have
been unbundled. Diction identifies wordy and commonly misused phrases.
Style analyses surface characteristics of a document (e.g., sentence
length and various readability measures); unlike the original code, it
cannot analyze sentence type, word usage, and general sentence
beginnings. Both commands currently support English and German
documents.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std

%clean
%__rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc COPYING README NEWS INSTALL
%{_bindir}/*
%{_datadir}/diction/
%{_datadir}/locale/
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1002 |21cr|digger-20160420-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Unix version of the old classic game Digger
Name:		digger
Version:	20160420
Release:	3
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.digger.org
# created from https://github.com/sobomax/digger
Source0:	%{name}-%{version}.tar.xz
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		digger-20160420-mga-flags.patch
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
This is the Unix version of the old classic game Digger.
It has many new features including:
* Exit button
* Optional VGA graphics
* Recording and playback
* Real time speed control
* Keyboard redefinition
* Gauntlet mode
* Two player simultaneous mode

%files
%doc %{name}.txt
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%set_build_flags
%make_build

%install
install -D -m755 digger %{buildroot}%{_gamesbindir}/%{name}

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Digger Remastered
Comment=The Unix version of the old classic game Digger
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1003 |21cr|digicamerge-2.00-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Digital camera filename manager
Name:		digicamerge
Version:	2.00
Release:	9
License:	GPL
Group:		Graphics
Url:		http://www.librelogiciel.com/software/DigicaMerge/action_Presentation
Source0: 	http://www.librelogiciel.com/software/DigicaMerge/tarballs/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(python2)
Buildarch:	noarch

%description
DigicaMerge is a commandline tool to merge directories of pictures taken
with digital cameras. If you've got a digital camera, your hard disk
probably contains many directories full of pictures all named with the
same names. This utility allows you to merge such directories' contents
into a new directory, and renames all the pictures on the fly, ensuring
no filename clash will occur. You can define your own naming scheme,
using either a set of predefined variables or any recognized Exif tag
which may be present in your pictures, and also specify a pattern to
select only certain files.

%files
%doc COPYING CREDITS NEWS PKG-INFO README TODO
%{_bindir}/%{name}
%{_mandir}/man1/*
%{python2_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py2_build

%install
%py2_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1004 |21cr|digitemp-3.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Digital thermometer using DS1820 1-wire sensors
Name:		digitemp
Version:	3.7.2
Release:	1
License:	GPLv2+
Group:		Monitoring
URL:		http://www.digitemp.com/
Source0:	http://www.digitemp.com/software/linux/%{name}-%{version}.tar.gz
Source1:	http://www.brianlane.com/linux/dthowto.txt
Source2:	DS9097_Schematic.gif
BuildRequires:	pkgconfig(libusb)

%description
DigiTemp is a simple to use interface to the Dallas Semiconductor DS18S20,
DS1822, and DS18B20 1-wire digital temperature sensors. You can use DigiTemp
in a wide variety of applications, such as heating control, process monitoring,
weather station, indor/outdoor temperature logging, etc. It includes a couple
of useful Perl, Python and RRD Tool scripts for crating graphs and dynamic
signatures.

%files
%doc CREDITS DS9097_S* FAQ README TODO dthowto.txt perl python rrdb
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

cp %{SOURCE1} %{SOURCE2} .

%build
%setup_compile_flags

%make ds9097

%make clean
%make ds9097u

%make clean
%make ds2490

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -pm0755 digitemp_DS* %{buildroot}%{_bindir}/
install -pm0644 %{name}.1 %{buildroot}%{_mandir}/man1/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1005 |21cr|dillo-3.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Very fast and light web browser
Name:		dillo
Version:	3.0.5
Release:	4
# The OpenSSL exception is in dpi/https.c - AdamW 2008/12
License:	GPLv3+ with exceptions
Group:		Networking/WWW
Url:		http://www.dillo.org/
Source0:	http://www.dillo.org/download/%{name}-%{version}.tar.bz2
Patch1:		dillo-openssl.patch
BuildRequires:	fltk-devel
BuildRequires:	jpeg-devel
BuildRequires:	ungif-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Requires:	wget

%description
Dillo is a Web browser that's completely written in C, very fast, and small in
code base and binary. It is a graphical browser built upon FLTK2 and currently
renders a subset of HTML (no frames, no JavaScript, and no JVM).

%files
%doc AUTHORS ChangeLog* INSTALL NEWS README
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_libdir}/%{name}/
%config(noreplace) %{_sysconfdir}/dillorc
%config(noreplace) %{_sysconfdir}/dillo/dillorc
%config(noreplace) %{_sysconfdir}/dillo/dpidrc
%config(noreplace) %{_sysconfdir}/dillo/keysrc
%config(noreplace) %{_sysconfdir}/dillo/domainrc
%{_mandir}/man1/dillo.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-dependency-tracking \
	--enable-ipv6 \
	--enable-ssl
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 dillorc %{buildroot}%{_sysconfdir}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Dillo
Comment=A simple web browser
Exec=%{name}
Icon=networking_www_section
Terminal=false
Type=Application
Categories=Network;WebBrowser;
EOF

# included with doc
rm -rf %{buildroot}%{_datadir}/doc/dillo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1006 |21cr|ding-1.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A Dictionary Lookup program
Name: ding
Version: 1.7
Release: 5
License: GPL 
Group: System/Internationalization
Source: ftp://ftp.tu-chemnitz.de/pub/Local/urz/ding/ding-%{version}.tar.bz2
Patch: ding-1.5-xdg.patch
Patch1: ding-1.5-encoding.patch
URL: http://www-user.tu-chemnitz.de/~fri/ding/
BuildArch: noarch
BuildRequires: desktop-file-utils
BuildRequires: imagemagick
Requires: tcl >= 8.0
Requires: tk >= 8.0
Requires: aspell-en
Requires: aspell-de

%description 
Ding (DIctionary Nice Grep) is a tool to lookup words in dictionaries.
It uses tools like agrep, dict, ispell/aspell etc. It contains a program 
(ding) written in Tcl/Tk and a German - English dictionary with about
180,000 translations.

%prep 
%setup -q
%patch -p1 -b .xdg
%patch1 -p1 -b .encoding

%build
%install
echo $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/dict
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
mkdir -p $RPM_BUILD_ROOT%{_datadir}/doc/%{name}-%{version}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
cp ding $RPM_BUILD_ROOT%{_bindir}/ding
cp de-en.txt $RPM_BUILD_ROOT%{_datadir}/dict/de-en.txt
cp ding.png $RPM_BUILD_ROOT%{_datadir}/pixmaps/ding.png
cp ding.desktop $RPM_BUILD_ROOT%{_datadir}/applications/ding.desktop
cp ding.1 $RPM_BUILD_ROOT%{_mandir}/man1/ding.1
mkdir -p %buildroot{%_liconsdir,%_miconsdir,%_iconsdir}
ln -s %_datadir/pixmaps/%name.png %buildroot%_iconsdir/
convert -scale 16 %name.png %buildroot%_miconsdir/%name.png

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files 
%defattr(-,root,root)
%doc README
%doc CHANGES
%doc COPYING
%{_bindir}/ding
%{_datadir}/dict/de-en.txt
%{_datadir}/pixmaps/ding.png
%{_datadir}/applications/ding.desktop
%{_mandir}/man1/ding.1*
%_iconsdir/%name.png
%_miconsdir/%name.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1007 |21cr|dino-0.2.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pattern-based MIDI sequencer
Name:		dino
Version:	0.2.8
Release:	7
License:	GPLv2+
Group:		Sound
Url:		http://dino.nongnu.org/
Source0:	http://download.savannah.nongnu.org/releases/dino/%{name}-%{version}.tar.gz
Patch0:		dino-0.2.8-gcc5.patch
Patch1:		dino-0.2.8-use-ladish-instead-of-lash.patch
BuildRequires:	chrpath
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblash)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libxml++-2.6)
BuildRequires:	pkgconfig(readline)

%description
Dino is a pattern-based sequencer, which means that you write small patterns
of MIDI events that you can repeat and arrange to create a whole song. Each
track has its own patterns, so you can for example play the same drum pattern
over and over again while you play different lead synth patterns and
basslines.

%files
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
autoreconf -vfi
export CXX="g++ -std=gnu++11"
%configure
%make


%install
%makeinstall_std
chrpath -d %{buildroot}/%{_bindir}/%{name}

# Provide menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Dino
Comment=MIDI Sequencer
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;Audio;Sequencer;
EOF

# Provide icons
mkdir -p %{buildroot}/%{_liconsdir}
convert -size 48x48 pixmaps/head.png %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert -size 32x32 pixmaps/head.png %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 pixmaps/head.png %{buildroot}/%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1008 |21cr|dino-im-0.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dino

%define major 0
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	Modern Jabber/XMPP Client using GTK+/Vala
Name:		dino-im
Version:	0.4.3
Release:	1
License:	GPLv3.0
Group:		Networking/IRC
Url:		https://github.com/dino/dino
Source0:	https://github.com/dino/dino/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		dino-0.4.3-upstream-meson.patch
Patch1:		dino-0.4.3-find-libsoup.patch
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gpgme)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libqrencode)
BuildRequires:	pkgconfig(libsignal-protocol-c)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsrtp2)
BuildRequires:	pkgconfig(nice)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(webrtc-audio-processing-1)

%description
Modern Jabber/XMPP Client using GTK+/Vala.

%files -f %{name}.lang
%doc README.md
%license LICENSE
%{_appdatadir}/im.%{oname}.Dino.appdata.xml
%{_bindir}/%{oname}
%{_datadir}/applications/im.%{oname}.Dino.desktop
%{_datadir}/dbus-1/services/im.%{oname}.Dino.service
%{_datadir}/icons/hicolor/scalable/apps/im.%{oname}.Dino.svg
%{_datadir}/icons/hicolor/symbolic/apps/im.%{oname}.Dino-symbolic.svg
%{_libdir}/%{oname}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{oname}
Group:		System/Libraries

%description -n %{libname}
Library for %{oname}.

%files -n %{libname}
%{_libdir}/libcrypto-vala.so.%{major}*
%{_libdir}/lib%{oname}.so.%{major}*
%{_libdir}/libqlite.so.%{major}*
%{_libdir}/libxmpp-vala.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{oname}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{oname}.

%files -n %{devname}
%doc README.md
%license LICENSE
%{_datadir}/vala/vapi/crypto-vala.*
%{_datadir}/vala/vapi/%{oname}.*
%{_datadir}/vala/vapi/qlite.*
%{_datadir}/vala/vapi/xmpp-vala.*
%{_includedir}/*.h
%{_libdir}/libcrypto-vala.so
%{_libdir}/lib%{oname}.so
%{_libdir}/libqlite.so
%{_libdir}/libxmpp-vala.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1009 |21cr|dip-3.3.7o-42
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Handles the connections needed for dialup IP links
Name:		dip
Version:	3.3.7o
Release:	42
License:	GPLv2
Group:		Communications
Url:		ftp://sunsite.unc.edu/pub/Linux/system/network/serial
Source0:	ftp://sunsite.unc.edu/pub/Linux/system/network/serial/dip337o-uri.tar.bz2
Patch0:		dip-3.3.7o-misc.patch
Patch1:		dip-3.3.7o-suffix.patch
Patch2:		dip-3.3.7o-fsstnd.patch
Patch3:		dip-3.3.7o-glibc.patch
Patch4:		dip-3.3.7o-sparc.patch
Patch5:		dip-3.3.7o-andor.patch
Patch6:		dip-arm.patch
Patch7:		dip-gcc295.patch
Patch8:		dip-3.3.7o-include.patch
# From Yellow Dog Linux 1.2
Patch9:		dip-3.3.7o-ppc.patch
Patch10:	dip-3.3.7o-gcc-3.3.patch
Patch11:	dip-3.3.7o-amd64.patch
Patch12:	dip-3.3.7o-gcc3.4-fix.patch
BuildRequires:	gccmakedep
Requires:	setup >= 2.7.16

%description
Dip is a modem dialer.  Dip handles the connections needed for dialup IP links
like SLIP or PPP.  Dip can handle both incoming and outgoing connections, using
password security for incoming connections.  Dip is useful for setting up PPP
and SLIP connections, but isn't required for either. Netcfg uses dip for
setting up SLIP connections.

Install dip if you need a utility which will handle dialup IP connections.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch4 -p0
%patch5 -p1 -b .andor
%patch3 -p1 -b .glibc
%patch6 -p1 -b .arm
%patch7 -p1 -b .gcc295
%patch8 -p0 -b .include
%patch9 -p1 -b .ppc
%patch10 -p1 -b .gcc3.3
%patch11 -p1 -b .amd64
%patch12 -p1 -b .gcc34

%build
#build fails with ld-gold
mkdir ld 
ln -s `which ld.bfd` ld/ld 
export PATH=`pwd`/ld:$PATH 

make depend
cd skey; make clean; make linux; cd -
%make RPM_OPT_FLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8

install -c -s dip %{buildroot}%{_sbindir}
ln -sf dip %{buildroot}%{_sbindir}/diplogini
install -c -m 0444 dip.8 %{buildroot}%{_mandir}/man8
ln -sf dip.8%{_extension} %{buildroot}%{_mandir}/man8/diplogin.8%{_extension}

%files
%attr(0755,root,dialout) %{_sbindir}/dip
%{_sbindir}/diplogini
%{_mandir}/man8/dip.8*
%{_mandir}/man8/diplogin.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1010 |21cr|dirac-1.0.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
# TODO: split library package
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Video Codec based on Wavelets
Name:		dirac
Version:	1.0.2
Release:	15
License:	MPLv1.1
Group:		Video
Url:		http://sf.net/projects/dirac
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		dirac-0.7.0-werror.patch
Patch1:		dirac-1.0.2-backports.patch
BuildRequires:	doxygen
BuildRequires:	texlive-dvipdfm
BuildRequires:	texlive-latex
BuildRequires:	pkgconfig(cppunit)

%description
Dirac is an open source video codec. It uses a traditional hybrid
video codec architecture, but with the wavelet transform instead of
the usual block transforms.  Motion compensation uses overlapped
blocks to reduce block artefacts that would upset the transform coding
stage.

Dirac can code just about any size of video, from streaming up to HD
and beyond, although certain presets are defined for different
applications and standards.  These cover the parameters that need to
be set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of the Dirac Video codec
Group:		System/Libraries
Obsoletes:	%{_lib}dirac0.1 < 1.0.2-4

%description -n %{libname}
Dirac is an open source video codec. It uses a traditional hybrid
video codec architecture, but with the wavelet transform instead of
the usual block transforms.  Motion compensation uses overlapped
blocks to reduce block artefacts that would upset the transform coding
stage.

Dirac can code just about any size of video, from streaming up to HD
and beyond, although certain presets are defined for different
applications and standards.  These cover the parameters that need to
be set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand.

%files -n %{libname}
%{_libdir}/libdirac*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of the Dirac Video codec
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}%{name}-static-devel < 1.0.2-10

%description -n %{devname}
Dirac is an open source video codec. It uses a traditional hybrid
video codec architecture, but with the wavelet transform instead of
the usual block transforms.  Motion compensation uses overlapped
blocks to reduce block artefacts that would upset the transform coding
stage.

Dirac can code just about any size of video, from streaming up to HD
and beyond, although certain presets are defined for different
applications and standards.  These cover the parameters that need to
be set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand.

%files -n %{devname}
%doc installed-docs/*
%{_includedir}/%{name}
%{_libdir}/libdirac*.so
%{_libdir}/pkgconfig/dirac.pc

#----------------------------------------------------------------------------

%package utils
Summary:	Example encoder and decoder for the Dirac video codec
Group:		Video

%description utils
Dirac is an open source video codec. It uses a traditional hybrid
video codec architecture, but with the wavelet transform instead of
the usual block transforms.  Motion compensation uses overlapped
blocks to reduce block artefacts that would upset the transform coding
stage.

Dirac can code just about any size of video, from streaming up to HD
and beyond, although certain presets are defined for different
applications and standards.  These cover the parameters that need to
be set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand.

%files utils
%doc README TODO AUTHORS
%{_bindir}/dirac*
%{_bindir}/BMPtoRGB
%{_bindir}/RGB*
%{_bindir}/UYVYtoRGB
%{_bindir}/UYVYtoYUV422
%{_bindir}/YUV*
%{_bindir}/create_dirac_testfile.pl

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p1
%patch1 -p0

%build
%global optflags %{optflags} -std=gnu++11
./bootstrap
%configure --disable-static
%make

%install
%makeinstall_std

mv %{buildroot}%{_datadir}/doc installed-docs
#gw don't package unit tests
rm -fv %{buildroot}%{_bindir}/dirac_unittest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1011 |21cr|disc-cover-1.5.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Makes covers for audio CDs using CDDB info
Name:		disc-cover
Version:	1.5.6
Release:	10
License:	GPLv2+
Group:		Graphics
Url:		http://www.vanhemert.co.uk/disc-cover.html
Source0:	http://www.vanhemert.co.uk/files/%{name}-%{version}.tar.gz
Requires:	tetex-dvips
Requires:	tetex-latex
Requires:	perl-Audio-CD
BuildArch:	noarch

%description
Provides an easy way to produce covers for audio cds.  It scans audio CDs and
uses information from the CDDB database to build a back and front cover for the
CD.  The cover output is in Latex, Dvi, Pdf or Postscript.  This little gadget
lets you produce covers without typing in all the information yourself.  An
easy way to replace all those lost covers ;-)

%files
%doc AUTHORS COPYING CHANGELOG TODO
%{_bindir}/disc-cover
%{_datadir}/disc-cover/

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 0755 disc-cover %{buildroot}%{_bindir}
chmod 755 templates
chmod 644 templates/*
cp -r templates %{buildroot}%{_datadir}/%{name}
#fix doc permissions
chmod 644 AUTHORS COPYING CHANGELOG TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1012 |21cr|diskimg-1.1.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tools to make disks/partitions image
Name:		diskimg
Version:	1.1.1
Release:	13
License:	GPL
Group:		Archiving/Backup
Url:		http://www.scylla-charybdis.com/tools.html#diskimg
Source0:	%{name}.tar.bz2

%description
DiskImg is a small command-line utility that dumps the contents
of a drive or partition to standard out. Because it is based on 
large file support, it is able to skip over read errors and log
them to a log file. It can start reading at an offset and writes
its progress to stderr.

%files
%doc VERSION README
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make "CFLAGS=%{optflags}"

%install
install -D %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1013 |21cr|diskmonitor-0.3.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE tools to monitor SMART devices and MDRaid health status
Name:		diskmonitor
Version:	0.3.1
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://github.com/papylhomme/diskmonitor
# From git by tag:
# https://github.com/papylhomme/diskmonitor/archive/%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
Source1:	DisKMonitor_ru.tar.gz
Patch0:		diskmonitor-0.3.1-ki18n.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	udisks2

%description
KDE tools to monitor SMART devices and MDRaid health status.

Features:
- Display S.M.A.R.T. attributes for harddrives supporting it
- Start and monitor progress of S.M.A.R.T. Short and Extended self test
- Display properties for MDRaid arrays
- Start and monitor progress of data scrubbing on MDRaid arrays

%files -f %{name}.lang
%{_kde5_bindir}/diskmonitor
%{_kde5_datadir}/config.kcfg/diskmonitor.kcfg
%{_kde5_iconsdir}/diskmonitor.svg
%{_datadir}/applications/diskmonitor.desktop
%{_datadir}/metainfo/org.papylhomme.diskmonitor.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-diskmonitor
Summary:	Plasma 5 disk monitor plasmoid
Group:		Graphical desktop/KDE
Requires:	%{name}

%description -n plasma5-applet-diskmonitor
Plasma 5 disk monitor plasmoid.

Features:
- Display basic health status for storage units
- Can be used on the desktop, on a panel or as a systray icon
- Use KDE notification for health status change
- Highly configurable interface

%files -n plasma5-applet-diskmonitor -f plasma_applet_org.papylhomme.diskmonitor.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.papylhomme.diskmonitor/
%{_kde5_datadir}/plasma/plasmoids/org.papylhomme.diskmonitor/*
%{_kde5_notificationsdir}/diskmonitor.notifyrc
%dir %{_kde5_qmldir}/org/papylhomme/diskmonitor/
%{_kde5_qmldir}/org/papylhomme/diskmonitor/*
%{_kde5_services}/plasma-applet-org.papylhomme.diskmonitor.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

pushd translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}
%find_lang plasma_applet_org.papylhomme.diskmonitor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1014 |21cr|disksearch-1.2.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		disksearch
Summary:	Catalog and search tool for removable media
Version:	1.2.1
Release:	9
Source:		http://prdownloads.sourceforge.net/disksearch/%{name}-%{version}.tar.bz2
URL:		http://disksearch.sourceforge.net/
License:	GPL
Group:		File tools
BuildRequires:	imagemagick
Requires:	pygtk2.0-libglade
BuildArch:	noarch

%description
DiskSearch is a tool for searching for files on all your removable media disks
(e.g. CD's, ZIP disks or backup tapes). For instance you can search for songs
on your MP3-CD's or for a document on your backup DVD's. For advanced queries
there is a regular expression search mode.  The search is based on a simple
database file which needs to be filled once by adding all your disks to it.

%prep
%setup -q
perl -p -i -e 's|/usr/local|/usr||g' %name

%build
# for remove rpmlint's warning...

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%find_lang %name

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=DiskSearch
Comment=Search removable media
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=System;Filesystem;
EOF

#icons
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
convert -size 48x48 resource/%name.png $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
convert -size 32x32 resource/%name.png $RPM_BUILD_ROOT/%_iconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
convert -size 16x16 resource/%name.png $RPM_BUILD_ROOT/%_miconsdir/%name.png

mkdir -p %{buildroot}%{_iconsdir}/hicolor/16x16/apps/
convert -geometry 16x16 resource/%name.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps/
convert -geometry 32x32 resource/%name.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps/
convert -geometry 48x48 resource/%name.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc docs/*
%{_bindir}/%name
%{_datadir}/%name
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/applications/mandriva-%name.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1015 |21cr|dislocker-0.7.3-0.git3e7aea.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 3e7aea196eaa176c38296a9bc75c0201df0a3679
%define commit_short %(echo %{commit} | head -c6)

%define major 0.7
%define libname %mklibname dislocker %{major}
%define devname %mklibname dislocker -d

Summary:	FUSE driver to read/write Windows' BitLocker-ed volumes under Linux / Mac OSX
Name:		dislocker
Version:	0.7.3
Release:	0.git%{commit_short}.1
License:	GPLv2.0
Group:		System/Libraries
Url:		https://github.com/Aorimn/dislocker
Source0:	https://github.com/Aorimn/dislocker/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	cmake
BuildRequires:	mbedtls-devel
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(ruby)

%description
This software has been designed to read BitLocker encrypted
partitions under a Linux system.

%files
%doc README.md
%license LICENSE.txt
%{_bindir}/%{name}*
%{_mandir}/man1/%{name}*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dislocker library
Group:		System/Libraries

%description -n %{libname}
Dislocker library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development file for dislocker
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development file for dislocker.

%files -n %{devname}
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1016 |21cr|displaycal-3.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname DisplayCAL

%global __provides_exclude_from '%{py3_platsitedir}/%{oname}/lib64/python27/RealDisplaySizeMM.so'

Name:		displaycal
Version:	3.9.4
Release:	1
Summary:	A graphical user interface for the Argyll CMS display calibration utilities
Group:		Graphics
License:	GPLv3+
Url:		http://displaycal.net/
Source0:	https://github.com/eoyilmaz/displaycal-py3/releases/download/%{version}/%{oname}-%{version}.tar.gz
Patch0:		displaycal-3.9.4-fix-linkage.patch
Patch1:		displaycal-3.9.4-udev-dir.patch
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(wxpython)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
Requires:	argyllcms
Requires:	python3-gi
Requires:	python3dist(numpy)
Requires:	python3dist(pychromecast)
Requires:	python3dist(send2trash)
Requires:	python3dist(setuptools)
Requires:	python3dist(wxpython)
Provides:	%{oname} = %{EVRD}

%description
A graphical user interface for the Argyll CMS display calibration utilities.

%files
%doc %{_docdir}/%{oname}-%{version}/LICENSE.txt
%doc %{_docdir}/%{oname}-%{version}/CHANGES.html
%doc %{_docdir}/%{oname}-%{version}/README*.html
%doc %{_docdir}/%{oname}-%{version}/screenshots
%doc %{_docdir}/%{oname}-%{version}/theme
%{_bindir}/%{name}*
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/net.%{name}.%{oname}.appdata.xml
%{_datadir}/%{oname}/
%{_iconsdir}/hicolor/*/apps/*.png
%{_mandir}/man1/*
%{py3_platsitedir}/%{oname}/
%{py3_platsitedir}/%{oname}-%{version}-py%{py3_ver}.egg-info
%{_sysconfdir}/xdg/autostart/z-displaycal-apply-profiles.desktop
%{_udevrulesdir}/*-Argyll.rules

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}/%{_sysconfdir}/xdg/autostart/
cp %{buildroot}/builddir/.config/autostart/z-displaycal-apply-profiles.desktop %{buildroot}/%{_sysconfdir}/xdg/autostart/z-displaycal-apply-profiles.desktop
rm -rf %{buildroot}/builddir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1017 |21cr|distcc-3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Distributed C/C++ compilation
Name:		distcc
Version:	3.4
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://distcc.org/
Source0:	https://github.com/distcc/distcc/releases/download/v%{version}/distcc-%{version}.tar.gz
Source1:	hosts.sample
Source2:	distccd.service
#https://github.com/distcc/distcc/issues/110
Patch1:		path-masquarade.patch
BuildRequires:	avahi-common-devel
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-core)
Conflicts:	%{name}-server < 3.3.3

%description
distcc is a program to distribute compilation of C or C++ code across
several machines on a network. distcc should always generate the same
results as a local compile, is simple to install and use, and is often
two or more times faster than a local compile.

%files
%doc %{_datadir}/doc/%{name}
%{_bindir}/distcc
%{_bindir}/distccmon-text
%{_bindir}/lsdistcc
%{_bindir}/pump
%{_mandir}/man1/distcc.*
%{_mandir}/man1/distccmon-text*
%{_mandir}/man1/lsdistcc.*
%{_mandir}/man1/include_server*
%{_mandir}/man1/pump*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/hosts
%{python3_sitearch}/include_server*
%{_sbindir}/update-distcc-symlinks
%dir /usr/lib/distcc
/usr/lib64/distcc
%dir /usr/lib/gcc-cross

%post
%{_sbindir}/update-distcc-symlinks

#----------------------------------------------------------------------------

%package gnome
Summary:	Gnome frontend of distcc monitoring tool
Requires:	%{name} = %{EVRD}

%description gnome
This package contains the Gnome frontend of the distcc monitoring tool.

%files gnome
%{_bindir}/distccmon-gnome
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/distccmon-gnome.png

#----------------------------------------------------------------------------

%package server
Summary:	Server for distributed C/C++ compilation
Group:		Development/Tools
Requires:	%{name} = %{EVRD}
Requires(post,preun,postun):	systemd-units

%description server
This package contains the compilation server needed to use %{name}.

%files server
%doc COPYING README
%{_bindir}/distccd
%{_unitdir}/*
%{_sysconfdir}/default/distcc
%{_sysconfdir}/distcc/*allow*
%{_mandir}/man1/distccd*
%config(noreplace) %{_sysconfdir}/sysconfig/distccd

%post server
#[ $1 -lt 2 ] && /sbin/chkconfig --add distccd ||:
if [ $1 -eq 1 ] ; then
    # Initial installation
    /usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

%preun server
#[ $1 -eq 0 ] && /sbin/chkconfig --del distccd ||:
if [ $1 -eq 0 ] ; then
    # Package removal, not upgrade
    /usr/bin/systemctl --no-reload disable distccd.service > /dev/null 2>&1 || :
    /usr/bin/systemctl stop distccd.service > /dev/null 2>&1 || :
fi

%postun server
/usr/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    # Package upgrade, not uninstall
    /usr/bin/systemctl try-restart distccd.service >/dev/null 2>&1 || :
fi


#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh
#https://githubhot.com/repo/distcc/distcc/issues/454
CFLAGS+=" -DPY_SSIZE_T_CLEAN" %configure \
	--disable-Werror \
	--without-gnome \
	--without-libiberty \
	--with-gtk
%make_build


%install
%make_install

# Install sample hosts file
install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/hosts

# Install sample distccd config file
install -Dm 0644 contrib/redhat/sysconfig %{buildroot}%{_sysconfdir}/sysconfig/distccd

# Install distcdd unit file
mkdir -p %{buildroot}%{_unitdir}
install -Dm 0755 %{SOURCE2} %{buildroot}%{_unitdir}/distccd.service

# Install distcc dirs
mkdir -p %{buildroot}/usr/lib/distcc
mkdir -p %{buildroot}/usr/lib/gcc-cross
if [ ! -d %{buildroot}/usr/lib64 ]; then
  mkdir -p %{buildroot}/usr/lib64	
fi
ln -s /usr/lib/distcc %{buildroot}/usr/lib64/distcc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1018 |21cr|distrobox-1.6.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# https://github.com/89luca89/distrobox/issues/127
%global __brp_mangle_shebangs_exclude_from %{_bindir}/distrobox-(export|init)$

Summary:	Another tool for containerized command line environments on Linux
Name:		distrobox
Version:	1.6.0.1
Release:	1
License:	GPLv3
Group:		System/Configuration/Other
Url:		https://github.com/89luca89/distrobox
Source0:	https://github.com/89luca89/distrobox/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
Requires:	(docker or podman)
Suggests:	podman
BuildArch:	noarch

%description
Use any linux distribution inside your terminal. Distrobox uses podman
or docker to create containers using the linux distribution of your
choice. Created container will be tightly integrated with the host,
allowing to share the HOME directory of the user, external storage,
external usb devices and graphical apps (X11/Wayland) and audio.

%files
%doc %{_docdir}/%{name}
%license COPYING.md
%{_bindir}/%{name}*
%{_datadir}/bash-completion/completions/distrobox*
%{_iconsdir}/hicolor/scalable/apps/terminal-distrobox-icon.svg
%{_iconsdir}/hicolor/*x*/apps/terminal-distrobox-icon.png
%{_mandir}/man1/%{name}*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
./install -P %{buildroot}/%{_prefix}

install -d -m0755 %{buildroot}%{_docdir}/%{name}
install -m 0644 docs/*.md %{buildroot}%{_docdir}/%{name}

# Move the icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
mv %{buildroot}%{_datadir}/icons/terminal-distrobox-icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps

# Generate more icon sizes
for sz in 16 22 24 32 36 48 64 72 96 128 256; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${sz}x${sz}/apps
	convert terminal-distrobox-icon.svg -resize ${sz}x${sz} %{buildroot}%{_datadir}/icons/hicolor/${sz}x${sz}/apps/terminal-distrobox-icon.png
done

%check
%{buildroot}%{_bindir}/%{name} list -V
for i in create enter export init list rm stop host-exec; do
	%{buildroot}%{_bindir}/%{name}-$i -V
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1019 |21cr|divfix++-0.34-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname DivFix++

Summary:	A program to repair broken AVI file streams by rebuilding index part of file
Name:		divfix++
Version:	0.34
Release:	5
License:	GPLv2+
Group:		Video
Url:		http://divfixpp.sourceforge.net/
Source0:	%{oname}_v%{version}-src.tar.bz2
Patch0:		DivFix++_v0.34-optflags.patch
BuildRequires:	dos2unix
BuildRequires:	wxgtku-devel
%rename		%{oname}

%description
This program designed to repair broken AVI file streams by
rebuilding index part of file. This is very useful when trying
to preview movies which has no index part, like some files are
currently downloading from ed2k or bittorent networks.

DivFix++ has supports CLI tools, this means you can fix, preview
and delete movies automatically via script (by using argument
parameters...)

DivFix++ program code supports lots of operating system, because
it's writen by cross-platform API, wxWidgets.

%files -f %{oname}.lang
%doc docs/*
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/pixmaps/%{oname}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}_v%{version}
%patch0 -p1
dos2unix docs/*
chmod 644 docs/*

%build
%make OPT_FLAGS="%{optflags}"

%install
%makeinstall_std

# Overwite .desktop file
cat > %{buildroot}%{_datadir}/applications/%{oname}.desktop << EOF
[Desktop Entry]
Name=DivFix++
Comment=AVI Repair & Preview Utility
Exec=DivFix++
Icon=DivFix++
Terminal=false
Type=Application
Categories=AudioVideo;Video;
EOF

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1020 |21cr|dixit-14.2.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Dixit permite cautari de cuvinte off-line
Name:		dixit
Version:	14.2.5
Release:	3
License:	GPLv3
Group:		Office
URL:		http://dixit.sourceforge.net
Source:		http://downloads.sourceforge.net/dixit/%{name}-%{version}-dvlp.tgz
Source1:	%{name}.desktop
Source2:	%{name}.png
BuildRequires:	qt4-devel >= 4.5 
BuildRequires:	cmake
Requires:	qt4-common >= 4.5
# bootstrap circular dep
Recommends:	dixit.qdb >= 0.4

%description
Dixit permite cautari de cuvinte off-line, folosind baza de date a
proiectului DEX online <http://dexonline.ro>.

Versiunile Dixit pentru Qt4 si Qt3 sunt identice functional, folosind acelasi
cod sursa pentru majoritatea procedurilor. Deosebirile in cod se datoresc
diferentelor in implementarea interfetelor grafice cat si evolutiei
bibliotecii Qt. Denumirea versiunii Dixit compilabila cu biblioteca Qt4 este
9.11.4 (4 semnificand biblioteca Qt4), iar cea a versiunii compilabila cu Qt3
este 9.11.3 (3 semnificand biblioteca Qt3).

%prep
%setup -qn %{name}-%{version}-dvlp

%build
export QTDIR=%{qt4dir}
%qmake_qt4 dixit-%{version}.pro
perl -pi -e "s| -lpthread| -lz -lpthread|" Makefile

%make 

%install
# menu
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{SOURCE1}

#icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

#binaries
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/

%files
%attr(0755,root,root) %{_bindir}/dixit
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1021 |21cr|dixit.qdb-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################################################
# SpecFile: dixit.qdb.spec 
# Generato: http://www.mandrivausers.ro/
# MRB-Falticska Florin
######################################################
%define debug_package	%{nil}

%define oname	dixit

Name:		dixit.qdb
Version:	0.5
Release:	3
Source:		%{name}.tar.bz2
Group:		Databases
Summary:	Baza de date pentru dixit
URL:		http://dixit.sourceforge.net
License:	GPLv3
BuildArch:      noarch
Requires:	qt4-common >= 4.5
Requires:	dixit >= 11.11.4

%description
Baza de date pentru Dixit
Dixit permite cautari de cuvinte off-line, folosind baza de date a
proiectului DEX online <http://dexonline.ro>.

%prep
%setup -qn %{oname}

%build
# nothing to build

%install
install -d -m755 %{buildroot}%{_datadir}/dixit
install -m 755 dixit.qdb %{buildroot}%{_datadir}/dixit/dixit.qdb


%files
%dir %{_datadir}/dixit
%{_datadir}/dixit/*
%doc LICENSE.GPL3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1022 |21cr|djvubind-1.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Combine multiple image files into an optimally compressed djvu file
Name:		djvubind
Version:	1.2.1
Release:	6
License:	MIT
Group:		Graphics
Url:		https://github.com/strider1551/djvubind
Source0:	https://github.com/strider1551/djvubind/archive/v%{version}.zip
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	djvulibre
Requires:	imagemagick
Requires:	tesseract
Recommends:	minidjvu
BuildArch:	noarch

%description
Combine multiple image files into an optimally compressed djvu file.

%files
%doc README
%{_bindir}/*
%{_mandir}/man1/*
%{_sysconfdir}/*
%{py3_puresitedir}/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1023 |21cr|dkms-bbswitch-0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bbswitch

Name:		dkms-bbswitch
Summary:	bbswitch - Optimus GPU power switcher
Version:	0.8
Release:	5
Source0:	%{oname}-%{version}.tar.gz
URL:		https://github.com/Bumblebee-Project/bbswitch
Group:		System/Kernel and hardware
License:	GPLv3
BuildArch:	noarch
Requires:   dkms

%description
bbswitch is a kernel module which automatically detects
the required ACPI calls for two kinds of Optimus laptops. 
It has been verified to work with "real" Optimus and 
"legacy" Optimus laptops (at least, that is how I call them).

%prep
%setup -qn %{oname}-%{version}
sed -i 's/#MODULE_VERSION#/%{version}-%{release}/g' dkms/dkms.conf

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_usrsrc}/%{oname}-%{version}-%{release}
cp *.c %{buildroot}%{_usrsrc}/%{oname}-%{version}-%{release}
cp Makefile %{buildroot}%{_usrsrc}/%{oname}-%{version}-%{release}
cp dkms/dkms.conf %{buildroot}%{_usrsrc}/%{oname}-%{version}-%{release}/dkms.conf

%post
dkms add -m %{oname} -v %{version}-%{release} --rpm_safe_upgrade &&
dkms build -m %{oname} -v %{version}-%{release} --rpm_safe_upgrade &&
dkms install -m %{oname} -v %{version}-%{release} --rpm_safe_upgrade --force
true
/sbin/modprobe %{oname} || true

%preun
dkms remove --binary -m %{oname} -v %{version}-%{release} --rpm_safe_upgrade --all
true
/sbin/rmmod %{oname} || true

%files
%{_usrsrc}/%{oname}-%{version}-%{release}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1024 |21cr|dkms-hid-tmff2-0.8-0.git8d636c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name hid-tmff2
%define module_path %{_usrsrc}/%{module_name}-%{version}-%{release}

%define commit 8d636c20b225d949869d48622707cf08cc865bd7
%define commit_short %(echo %{commit} | head -c6)

Summary:	Linux kernel module for Thrustmaster T300RS and T248 wheels
Name:		dkms-%{module_name}
Version:	0.8
Release:	0.git%{commit_short}.1
License:	GPL-3.0
URL:		https://github.com/Kimplul/hid-tmff2
Group:		System/Kernel and hardware
# repack with git clone --recursive https://github.com/Kimplul/hid-tmff2
Source0:	%{module_name}-%{commit}.tar.gz
BuildArch:	noarch
Requires:	dkms

%description
%{summary}.

%files
%defattr(-,root,root)
%{module_path}

#-----------------------------------------------------------------------------
%prep
%setup -q -n %{module_name}-%{commit}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{module_path}
cp -a * %{buildroot}/%{module_path}

%post
dkms add     -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
dkms build   -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
dkms install -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
true
/sbin/modprobe hid-tminit || true
/sbin/modprobe hid-tmff-new || true

%preun
dkms remove -m %{module_name} -v %{version}-%{release} --all --rpm_safe_upgrade
true
/sbin/rmmod hid-tminit || true
/sbin/rmmod hid-tmff-new || true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1025 |21cr|dkms-kalmia-0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modname	kalmia

Name:		dkms-%{modname}
Version:	0.2
Release:	4
Summary:	Driver for Kalmia-based 4G/LTE modems
Group:		System/Configuration/Hardware
License:	GPLv2+
URL:		https://github.com/mkotsbak/Samsung-GT-B3730-linux-driver
Source0:	%{modname}-%{version}.tar.xz
#CVSID:		796fd38b68167f527980ed75a5cbfe0d802d4ece
Requires(post):	dkms
Requires(preun):dkms
BuildArch:	noarch
Recommends:	minicom

%description
This package provides the kernel driver for 4G/LTE modems using the Kalmia
chipset, ie. such as Samsung's GT-B3710 & GT-B3730.

%prep
%setup -qn %{modname}-%{version}

%build

%install
install -d %{buildroot}%{_docdir}/%{modname}
install -m644 README *.txt %{buildroot}%{_docdir}/%{modname}
install -m755 chat.sh connect_lte.sh connect_nonlte.sh %{buildroot}%{_docdir}/%{modname}

# DKMS stuff
install -d %{buildroot}%{_usrsrc}/%{modname}-%{version}
install -m644 Makefile kalmia.c %{buildroot}%{_usrsrc}/%{modname}-%{version}

# Configuration for dkms
cat > %{buildroot}%{_usrsrc}/%{modname}-%{version}/dkms.conf << 'EOF'
PACKAGE_NAME=%{modname}
PACKAGE_VERSION=%{version}
BUILT_MODULE_NAME="%{modname}"
DEST_MODULE_LOCATION="/kernel/drivers/usb/net"
AUTOINSTALL=yes
EOF

%post
dkms add -m %{modname} -v %{version} --rpm_safe_upgrade || :
dkms build -m %{modname} -v %{version} --rpm_safe_upgrade || :
dkms install -m %{modname} -v %{version} --rpm_safe_upgrade || :

%preun
dkms remove -m %{modname} -v %{version} --all --rpm_safe_upgrade || :

%files
%dir %{_docdir}/%{modname}
%doc %{_docdir}/%{modname}/README
%{_docdir}/%{modname}/*.txt
%{_docdir}/%{modname}/*.sh
%{_usrsrc}/%{modname}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1026 |21cr|dkms-lazyfs-0.1.26-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module lazyfs
%define vname lazyfs-linux
%define LAZYFS_VERSION 0d1d26

Summary: Dkms module for the lazyfs module
Name: dkms-lazyfs
Version: 0.1.26
Release: 9
Source0: http://prdownloads.sourceforge.net/zero-install/%{vname}-%{version}.tgz.gpg
Source1: lazyfs-dkms.conf
License: GPL
Group: System/Kernel and hardware
URL: http://0install.net/
BuildArchitectures: noarch
Requires(post): dkms
Requires(preun): dkms
Provides: lazyfs = %{LAZYFS_VERSION}
Prefix: %{_prefix}
BuildRequires: gnupg
%description
Lazyfs is a kernel module needed by the Zero Install system.

%prep
%setup -c -T -n %vname-%version
cd ..
gpg -o %{vname}.tar.gz %{SOURCE0} || echo Ignoring GPG error
tar --no-same-owner -xzf %{vname}.tar.gz
rm %{vname}.tar.gz
cd %vname-%version
perl -p -i -e 's/\@VERSION@/%version/; s/\@LAZYFS_VERSION@/%{LAZYFS_VERSION}/' < %{SOURCE1} > dkms.conf

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/usr/src/%module-%version.%release/
install -m 644 dkms.conf $RPM_BUILD_ROOT/usr/src/%module-%version.%release/dkms.conf
tar c . | tar x -C $RPM_BUILD_ROOT/usr/src/%module-%version.%release/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%attr(0755,root,root) /usr/src/%module-%version.%release/

%post
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %module -v %version.%release
/usr/sbin/dkms --rpm_safe_upgrade build -m %module -v %version.%release
/usr/sbin/dkms --rpm_safe_upgrade install -m %module -v %version.%release

%preun
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %module -v %version.%release --all

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1027 |21cr|dkms-netfilter-rtsp-3.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define proto rtsp
%define module_name netfilter-%{proto}

Summary:	Netfilter RTSP support (nat and conntrack)
Name:		dkms-%{module_name}
Version:	3.7
Release:	4
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://mike.it-loops.com/rtsp/
Source0:	%{proto}-module-%{version}-v2.tar.gz
Source10:	%{name}.rpmlintrc
Requires(post):	coreutils
Requires(post,preun):	dkms
Provides:	%{module_name} = %{EVRD}
BuildArch:	noarch

%description
This module enable to add conntrack and nat support to netfilter for rtsp,
( Real Time Streaming Protocol ).

%files
%defattr(0644,root,root,0755)
%doc README.rst
%{_usrsrc}/%{module_name}-%{version}-%{release}

%post
%{_sbindir}/dkms add -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
%{_sbindir}/dkms build -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
%{_sbindir}/dkms install -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade
/sbin/rmmod nf_conntrack_rtsp
/sbin/modprobe nf_conntrack_rtsp
/sbin/rmmod nf_nat_rtsp
/sbin/modprobe nf_nat_rtsp || :

%preun
%{_sbindir}/dkms remove -m %{module_name} -v %{version}-%{release} --rpm_safe_upgrade --all || :

#----------------------------------------------------------------------------

%prep
%setup -q -c

%build

%install
mkdir -p %{buildroot}%{_usrsrc}/%{module_name}-%{version}-%{release}
cp -a * %{buildroot}%{_usrsrc}/%{module_name}-%{version}-%{release}
cat > %{buildroot}%{_usrsrc}/%{module_name}-%{version}-%{release}/dkms.conf << EOF
PACKAGE_VERSION="%{version}-%{release}"

# Items below here should not have to change with each driver version
PACKAGE_NAME="%{module_name}"

BUILT_MODULE_NAME[0]="nf_conntrack_rtsp"
DEST_MODULE_LOCATION[0]="/kernel/net/netfilter"
BUILT_MODULE_NAME[1]="nf_nat_rtsp"
DEST_MODULE_LOCATION[1]="/kernel/net/netfilter"

AUTOINSTALL="yes"

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1028 |21cr|dkms-tp_smapi-0.41-3.20140506.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20140506
%define modname tp_smapi

Summary:	DKMS-ready module for SMAPI BIOS of ThinkPad laptops
Name:		dkms-%{modname}
Version:	0.41
Release:	3.%{git}.2
License:	GPLv2+
Group:		Development/Kernel
Url:		https://github.com/evgeni/tp_smapi
# Git snapshot from https://github.com/evgeni/tp_smapi
Source0:	%{modname}-%{version}-%{git}.tar.bz2
Source1:	README.urpmi
Requires(preun,post):	dkms
Buildarch:	noarch

%description
ThinkPad laptops include a proprietary interface called SMAPI BIOS
(System Management Application Program Interface) which provides some
hardware control functionality that is not accessible by other means.

This driver exposes some features of the SMAPI BIOS through a sysfs
interface. It is suitable for newer models, on which SMAPI is invoked
through IO port writes.

WARNING:
This driver uses undocumented features and direct hardware access.
It thus cannot be guaranteed to work, and may cause arbitrary damage
(especially on models it wasn't tested on).

NOTE:
This package replaces module hdaps from upstream kernel with an
improved and tp_smapi compatible one. See the documentation.

%files
%doc %{modname}-%{version}/{README,CHANGES,TODO} README.urpmi
%{_sysconfdir}/modules-load.d/%{name}.conf
%{_usrsrc}/%{modname}-%{version}-%{release}

%post
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{modname} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
        kk=$(echo $kk | sed 's/^\/lib\/modules\///');
        if test -d "/lib/modules/$kk/build"; then
                /usr/sbin/dkms --rpm_safe_upgrade build -m %{modname} -v %{version}-%{release} -k $kk &&
                /usr/sbin/dkms --rpm_safe_upgrade install -m %{modname} -v %{version}-%{release} -k $kk || true
        else
                echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
        fi;
done

%preun
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{modname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{modname} -v %{version}-%{release} --all || true

#----------------------------------------------------------------------------

%prep
%setup -q -c -n %{modname}-%{version}
mv %{modname}-%{version}-%{git} %{modname}-%{version}
chmod -R go=u-w .
cp %{SOURCE1} .

%build

%install
mkdir -p %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}
mkdir -p %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}/patches
cp -a %{modname}-%{version}/* %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}
cat > %{buildroot}%{_usrsrc}/%{modname}-%{version}-%{release}/dkms.conf <<EOF

PACKAGE_VERSION="%{version}-%{release}"

# Items below here should not have to change with each driver version
PACKAGE_NAME="%{modname}"
MAKE[0]="make -C \${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build KBASE=\${kernel_source_dir}/.. KSRC=\${kernel_source_dir} KBUILD=\${kernel_source_dir} HDAPS=1"
CLEAN="make -C \${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build clean"
BUILT_MODULE_NAME[0]="\$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/extra"
BUILT_MODULE_NAME[1]="thinkpad_ec"
DEST_MODULE_LOCATION[1]="/extra"
BUILT_MODULE_NAME[2]="hdaps"
DEST_MODULE_LOCATION[2]="/kernel/drivers/hwmon"
REMAKE_INITRD="no"
AUTOINSTALL="YES"
EOF

mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
echo "tp_smapi" >%{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1029 |21cr|dkms-v4l2loopback_dc-0.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#---DroidCam - GNU/Linux client for DroidCam---
#URL: https://www.dev47apps.com/droidcam/linux/
#GitHub: https://github.com/dev47apps/droidcam

%define module	v4l2loopback_dc

Summary:	DroidCam kernel module
Name:		dkms-%{module}
Version:	0.0.3
Release:	1
Group:		System/Kernel and hardware
License:	GPLv2+
URL:		https://github.com/AKotov-dev/droidcam-rpm
BuildArch:	noarch
Provides:	kmod(v4l2loopback_dc) = %{version}
Requires:	dkms
Requires(post):	dkms
Requires(preun): dkms

Source:		%{module}-%{version}.tar.gz
#v4l2loopback_dc configuration files
Source1:	droidcam.conf
Source2:	droidcam-mod.conf

%description
DriodCam kernel module v4l2loopback_dc

%prep
%setup -q -n %{module}-%{version}

%build
# nothing

%install
install -d -m755 %{buildroot}%{_usrsrc}/%{module}-%{version}
cp -r * %{buildroot}%{_usrsrc}/%{module}-%{version}

#Copy configuration files
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d

cp %{SOURCE1} %{buildroot}%{_sysconfdir}/modprobe.d/droidcam.conf
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/modules-load.d/droidcam-mod.conf

%post
#Build and install module
dkms add	-m %{module} -v %{version} --rpm_safe_upgrade &&
dkms build	-m %{module} -v %{version} --rpm_safe_upgrade &&
dkms install	-m %{module} -v %{version} --rpm_safe_upgrade
true

#Load module
modprobe %{module}
modprobe snd_aloop

%preun
dkms remove  -m %{module} -v %{version} --all --rpm_safe_upgrade
true

%files
%{_usrsrc}/%{module}-%{version}
#Configuration files
%{_sysconfdir}/modprobe.d/droidcam.conf
%{_sysconfdir}/modules-load.d/droidcam-mod.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1030 |21cr|dkms-vhba-20211218-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module vhba
%define oname vhba-module

Summary:	Virtual SCSI HBA kernel module
Name:		dkms-vhba
Version:	20211218
Release:	1
Group:		System/Kernel and hardware
License:	GPLv2+
Url:		http://cdemu.sourceforge.net/
Source0:	https://sourceforge.net/projects/cdemu/files/vhba-module/%{oname}-%{version}.tar.xz
Source10:	%{name}.rpmlintrc
Requires:	dkms
Requires(post,preun):	dkms
BuildArch:	noarch

%description
Virtual SCSI HBA kernel module. The vhba module is used by cdemu.

%files
%{_usr}/src/%{module}-%{version}-%{release}

%post
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{module} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{module} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{module} -v %{version}-%{release} -k $kk || :
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || :
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{module} -v %{version}-%{release} --all || :


#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
rm -rf debian

%build

%install
install -d -m755 %{buildroot}%{_usrsrc}/%{module}-%{version}-%{release}
cp -r * %{buildroot}%{_usrsrc}/%{module}-%{version}-%{release}

cat > %{buildroot}%{_usrsrc}/%{module}-%{version}-%{release}/dkms.conf <<EOF
PACKAGE_NAME="%{module}"
PACKAGE_VERSION="%{version}-%{release}"
DEST_MODULE_LOCATION[0]="/kernel/%{module}"
BUILT_MODULE_NAME[0]="%{module}"
AUTOINSTALL="yes"
MAKE="'make' KVER=\${kernelver} KERNELRELEASE=\${kernelver}"
EOF
sed -i 's/-Werror//' %{buildroot}%{_usrsrc}/%{module}-%{version}-%{release}/Makefile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1031 |21cr|dlib-0-0.git8dc1f.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 8dc1fadd31a9a6839b0a73d4543cf2f6d6fe168a
%define commit_short %(echo %{commit} | head -c 5)

%define major 0
%define libname %mklibname dlib %{major}
%define slibname %mklibname dlib -s
%define devname %mklibname dlib -d

# Upstream seems to be not very alive, compiler gives
# a lot of depreceation warnings from OpenSSL,
# let's build with LibrerSSL trying to avoid problems
# when OpenSSL becomes 3.x
%global optflags %{optflags} -I%{libressl_prefix}/include -L%{libressl_prefix}/lib

Summary:	Just some C utility functions that are used by deanproxy@
Name:		dlib	
Version:	0
Release:	0.git%{commit_short}.3
# license is not specified in upstream
License:	Free
Group:		System/Libraries
Url:		https://github.com/deanproxy/dlib
Source0:	https://github.com/deanproxy/dlib/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires: libressl-devel
BuildRequires: pkgconfig(libnsl)

%description
Just some C utility functions that are used by deanproxy@

#------------------------------------------------------------------

%package -n %{libname}
Summary: Just some C utility functions that are used by deanproxy@
Group: System/Libraries
Provides: dlib = %{EVRD}

%description -n %{libname}
Just some C utility functions that are used by deanproxy@
Shared library

%files -n %{libname}
%{_libdir}/libdlib.so.%{major}

#------------------------------------------------------------------

%package -n %{slibname}
Summary: Just some C utility functions that are used by deanproxy@
Group: Development/C

%description -n %{slibname}
Just some C utility functions that are used by deanproxy@
Static library

%files -n %{slibname}
%{_libdir}/libdlib.a

#------------------------------------------------------------------

%package -n %{devname}
Summary: Just some C utility functions that are used by deanproxy@
Group: Development/C
Requires: %{libname} = %{EVRD}
Provides: dlib-devel = %{EVRD}

%description -n %{devname}
Just some C utility functions that are used by deanproxy@
Development files

%files -n %{devname}
%{_includedir}/dlib
%{_libdir}/libdlib.so

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
autoreconf -if
%configure --with-ssl
%make

# TODO upstreamize it
%__cc -shared -fPIC %{optflags} -o libdlib.so.%{major} -Iinclude -DHAVE_CONFIG_H src/*.c -Wl,-soname,libdlib.so.%{major} -lcrypto -lcrypto -lssl -lnsl -lm

%install
%makeinstall_std

install -m0755 libdlib.so.%{major} %{buildroot}%{_libdir}
( cd %{buildroot}%{_libdir}
  ln -s libdlib.so.%{major} libdlib.so
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1032 |21cr|dlint-1.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name dlint
%define version 1.4.1
%define release  5

Summary: A DNS error checking utility
Name: dlint
Version: 1.4.1
Release: 5
Source: http://www.domtools.com/pub/%{name}%{version}.tar.gz
Patch0: %{name}-rrfilt.patch
Patch1: %{name}-tempdir.patch
License: GPLv2+
URL: http://www.domtools.com
Group: Networking/Other
BuildArch: noarch
Requires: bind-utils, perl

%description 
This program analyzes any DNS zone you specify, and reports any
problems it finds by displaying errors and warnings.  Then it descends
recursively to examine all zones below the given one (this can be
disabled with a command line option).

%prep
%setup -q -n %{name}%{version}
%patch0 -p1 -b .rrfilt
%patch1 -p1 -b .tempdir
%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir} \
	$RPM_BUILD_ROOT%{_datadir}/%{name} \
	$RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 dlint digparse $RPM_BUILD_ROOT%{_bindir}
install -m 755 digparse $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 dlint.1 $RPM_BUILD_ROOT%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README COPYING CHANGES COPYRIGHT TESTCASES
%{_bindir}/*
%{_datadir}/%{name}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1033 |21cr|dma-0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sendmail_command %{_sbindir}/%{name}

Summary:	An end-system mail server
Name:		dma
Version:	0.13
Release:	1
License:	BSD
Url:		https://github.com/corecode/dma
Group:		Networking/Mail
Source0:	https://github.com/corecode/dma/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	dma-aliases
Source2:	README.urpmi
Patch0:		dma-0.5-mdv-fix-build-in-rpm-env.patch
Patch1:		dma-0.2-mdv-locate-aliases-in-dma-etc-subdir.patch
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	pkgconfig(openssl)
Provides:	sendmail-command

%description
DragonFly Mail Agent (dma) is a small and secure MTA (mail transport agent) for
end-system use.
It features:
– daemon-less operation
– queueing
– aliases
– local delivery
– remote delivery via SMTP
– SSL support via STARTTLS and SSL
– SMTP AUTH LOGIN and -MD5 (for smart hosts)

%files
%defattr(-,root,root)
%doc TODO README.markdown VERSION README.urpmi
%attr(2755, root, mail)%{_sbindir}/%{name}
%attr(4750, root, mail)%{_libdir}/dma-mbox-create
%{_mandir}/man8/%{name}.8.*
%attr(770, root, mail)%{_var}/spool/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/auth.conf
%config(noreplace) %{_sysconfdir}/%{name}/aliases

%post
/usr/sbin/update-alternatives --install %{_sbindir}/sendmail sendmail-command %{sendmail_command} 5 --slave %{_prefix}/lib/sendmail sendmail-command-in_libdir %{sendmail_command}

%postun
if [ ! -e %{sendmail_command} ]; then 
      /usr/sbin/update-alternatives --remove sendmail-command %{_sendmail_command}
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0
%patch1

%build
%make -j1 \
	CFLAGS="%{optflags} \
	-DDMA_VERSION='\"%{version}\"' \
	-DLIBEXEC_PATH='\"%{_libdir}\"' \
	-DCONF_PATH='\"/etc/dma\"'" \
	LIBEXEC=%{_libdir} \
	PREFIX=%{_prefix}

%install
%makeinstall \
	DESTDIR=%{buildroot} \
	LIBEXEC=%{_libdir} \
	PREFIX=%{_prefix}

install -d %{buildroot}/%{_sysconfdir}/%{name}
cp auth.conf %{buildroot}/%{_sysconfdir}/%{name}/auth.conf
cp dma.conf %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
cp %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}/aliases
install -m644 %{SOURCE2} README.urpmi


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1034 |21cr|dmalloc-5.6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname %{name} -d

Summary:	Debugging MALLOC
Name:		dmalloc
Version:	5.6.5
Release:	1
License:	BSD style
Group:		Development/Other
Url:		http://dmalloc.com/
Source0:	http://dmalloc.com/releases/%{name}-%{version}.tgz
Requires:	%{devname} = %{version}

%description
The debug memory allocation or "dmalloc" library has been designed
as a drop in replacement for the system's `malloc', `realloc',
`calloc', `free' and other memory management routines while providing
powerful debugging facilities configurable at runtime.  These
facilities include such things as memory-leak tracking, fence-post write
detection, file/line number reporting, and general logging of
statistics.

%files
%doc ChangeLog.txt INSTALL.txt README.md RELEASE.txt
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Debugging MALLOC library
Group:		Development/Other
Provides:	dmalloc-devel = %{EVRD}
Provides:	libdmalloc-devel = %{EVRD}

%description -n %{devname}
The debug memory allocation or "dmalloc" library has been designed
as a drop in replacement for the system's `malloc', `realloc',
`calloc', `free' and other memory management routines while providing
powerful debugging facilities configurable at runtime.  These
facilities include such things as memory-leak tracking, fence-post write
detection, file/line number reporting, and general logging of
statistics.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q
chmod -R o+rX .

%build
export CFLAGS=`echo %{optflags} | sed 's/-O2/-O0/'`

# testing program will segfault when building with -fPIC flag, so
# don't build shared library at all. Anyway this is for developers,
# so building static library is enough.
%configure --enable-threads

# test this puppy
make heavy

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1035 |21cr|dmapi-2.2.12-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libdm
%define major 0
%define libname %mklibname dm %{major}
%define devname %mklibname dm -d

Summary:	Data Management API runtime environment
Name:		dmapi
Version:	2.2.12
Release:	7
License:	LGPLv2+ and GPLv2+
Group:		System/Kernel and hardware
Url:		http://oss.sgi.com/projects/xfs/
Source0:	ftp://oss.sgi.com/projects/xfs/cmd_tars/%{name}-%{version}.tar.gz
Patch0:		dmapi-2.2.10-headers.patch
BuildRequires:	libtool
BuildRequires:	xfsprogs-devel
BuildRequires:	pkgconfig(ext2fs)
ExclusiveArch:	%{ix86} x86_64

%description
Files required by system software using the Data Management API
(DMAPI).  This is used to implement the interface defined in the
X/Open document:  Systems Management: Data Storage Managment
(XDSM) API dated February 1997.  This interface is implemented
by the libdm library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{oname}
Group:		System/Libraries
Provides:	%{oname} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{oname}.

%files -n %{libname}
/%{_lib}/libdm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Data Management API static libraries and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}
Provides:	dm-devel = %{EVRD}
Provides:	libdm0-devel = %{EVRD}

%description -n %{devname}
dmapi-devel contains the libraries and header files needed to
develop programs which make use of the Data Management API
(DMAPI).  If you install dmapi-devel, you'll also want to install
the dmapi (runtime) package and the xfsprogs-devel package.

%files -n %{devname}
%doc doc/PORTING doc/CHANGES.gz doc/COPYING README
/%{_lib}/*.so
%{_libexecdir}/libdm.so
%{_mandir}/man3/*
%{_includedir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--libdir=/%{_lib} \
	--disable-static
%make

%install
make install DIST_ROOT=%{buildroot}/
make install-dev DIST_ROOT=%{buildroot}/

# (sb) installed but unpackaged files
rm -rf %{buildroot}%{_datadir}/doc/dmapi

rm -f %{buildroot}/%{_lib}/libdm.a

chmod 0755 %{buildroot}/%{_lib}/libdm.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1036 |21cr|dmg2img-1.6.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Uncompress the Apple compressed disk image files
Name:		dmg2img
Version:	1.6.7
Release:	2
# dmg2img is GPL without specific version
# vfdecrypt is MIT licensed
License:	GPL and MIT
Group:		File tools
Url:		http://vu1tur.eu.org/tools/
Source0:	http://vu1tur.eu.org/tools/%{name}-%{version}.tar.gz
Patch0:		dmg2img-1.6.2-nostrip.patch
Patch1:		dmg2img-1.6.7-openssl1.1.patch
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
This package contains dmg2img utility that is able to uncompress compressed dmg
files into plain disk or filesystem images.

%files
%doc README COPYING
%{_bindir}/dmg2img
%{_bindir}/vfdecrypt
%{_mandir}/man1/vfdecrypt.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%make CC="%{__cc}" CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_bindir}

install dmg2img %{buildroot}%{_bindir}
install vfdecrypt %{buildroot}%{_bindir}
install -pm644 vfdecrypt.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1037 |21cr|dmidiplayer-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multi-platform MIDI File Player
Name:		dmidiplayer
Version:	1.7.1
Release:	1
License:	GPLv3+
Group:		Sound
Url:			https://sourceforge.net/projects/dmidiplayer/
Source0:	https://sourceforge.net/projects/dmidiplayer/files/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	cmake >= 3.14
BuildRequires:	git
BuildRequires:	gzip-utils
# Needed for docs, but not provided yet
#BuildRequires:	 pandoc
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(drumstick-file) >= 2.7
BuildRequires:	pkgconfig(drumstick-rt)
BuildRequires:	pkgconfig(drumstick-widgets)
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.0
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(uchardet) >= 0.0.7

%description
Drumstick MIDI File Player: a Qt-only replacement for Kmid2.
Some key features:
* MIDI Output to hardware MIDI ports, or any other Drumstick back-end.
* Transpose song tonality between -12 and +12 semitones.
* Change MIDI volume level (using MIDI CC7).
* Scale song speed between half and double tempo.
* Lyrics, Piano Player and MIDI Channels views.
* Supports MID/KAR (Standard MIDI Files) and WRK (Cakewalk) file formats.

%files
%doc ChangeLog LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/net.sourceforge.%{name}.desktop
%{_datadir}/metainfo/net.sourceforge.%{name}.metainfo.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
# Building docs now requires pandoc and we don't have it yet...
%cmake_qt5 -DUSE_QT=5 -DBUILD_DOCS=OFF
%make


%install
%makeinstall_std -C build

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat %{name}.svgz > %{name}.svg && rm -f %{name}.svgz
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1038 |21cr|dmtx-utils-0.7.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No ImageMagick 7 support yet
%bcond_with imagemagick

Summary:	A library for reading and writing Data Matrix 2D barcodes
Name:		dmtx-utils
Version:	0.7.6
Release:	1
License: 	GPLv2+
Group:		Development/Tools
Url:		http://www.libdmtx.org
Source0:	http://downloads.sourceforge.net/project/libdmtx/libdmtx/%{version}/%{name}-%{version}.tar.gz
%if %{with imagemagick}
BuildRequires:	pkgconfig(ImageMagick)
%endif
BuildRequires:	pkgconfig(libdmtx)

%description
dmtx-utils is open source software for reading and writing Data Matrix 2D
barcodes on Linux and Unix. At its core libdmtx is a shared library,
allowing C/C++ programs to use its capabilities without restrictions
or overhead.

This package contains command line tools (dmtxread, dmtxwrite and dmtxquery)
to test %{name} and to learn its behavior.

%files
%doc AUTHORS ChangeLog COPYING README README.linux TODO
%{_bindir}/dmtxquery
%if %{with imagemagick}
%{_bindir}/dmtxread
%{_bindir}/dmtxwrite
%endif
%{_mandir}/man1/dmtxquery*
%{_mandir}/man1/dmtxread*
%{_mandir}/man1/dmtxwrite*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
%if %{with imagemagick}
	--enable-dmtxread \
	--enable-dmtxwrite
%else
	--disable-dmtxread \
	--disable-dmtxwrite
%endif

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1039 |21cr|dmz-cursor-theme-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DMZ cursor themes (black and white)
Name:		dmz-cursor-theme
Version:	1.0
Release:	1
License:	CC-BY-SA
Group:		Graphical desktop/Other
Url:		https://github.com/GalliumOS/dmz-cursor-theme/
#Source0:	https://github.com/GalliumOS/dmz-cursor-theme/archive/%{name}-release-%{version}.tar.gz
# From git by tag
Source0:	%{name}-release-%{version}.tar.gz
BuildRequires:	xcursorgen
BuildArch:	noarch

%description
This package contains the DMZ cursor themes, which are derived from
the Industrial theme developed for the Ximian GNOME desktop. Black and
white cursors are provided, in scalable formats.

#----------------------------------------------------------------------------

%package -n dmz-cursor-theme-black
Summary:	DMZ Black cursor theme
Group:		Graphical desktop/KDE

%description -n dmz-cursor-theme-black
DMZ Black cursor theme.

%files -n dmz-cursor-theme-black
%dir %{_iconsdir}/DMZ_Black
%{_iconsdir}/DMZ_Black/*

#----------------------------------------------------------------------------

%package -n dmz-cursor-theme-white
Summary:	DMZ White cursor theme
Group:		Graphical desktop/KDE

%description -n dmz-cursor-theme-white
DMZ White cursor theme.

%files -n dmz-cursor-theme-white
%dir %{_iconsdir}/DMZ_White
%{_iconsdir}/DMZ_White/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{version}

%build
pushd DMZ-Black/pngs
./make.sh
popd

pushd DMZ-White/pngs
./make.sh
popd

%install
mkdir -p %{buildroot}%{_iconsdir}/DMZ_Black/cursors
cp DMZ-Black/index.theme %{buildroot}%{_iconsdir}/DMZ_Black/
cp DMZ-Black/xcursors/* %{buildroot}%{_iconsdir}/DMZ_Black/cursors/

mkdir -p %{buildroot}%{_iconsdir}/DMZ_White/cursors
cp DMZ-White/index.theme %{buildroot}%{_iconsdir}/DMZ_White/
cp DMZ-White/xcursors/* %{buildroot}%{_iconsdir}/DMZ_White/cursors/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1040 |21cr|dnotify-0.18.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Execute command when directory changes
Name:		dnotify
Version:	0.18.0
Release:	13
License:	GPLv2+
Group:		File tools
# Not working anymore ??
# URL:		http://oskarsapps.mine.nu/dnotify.html
Source0:	http://oskarsapps.mine.nu/src/%{name}-%{version}.tar.bz2
Source1:	%{name}.init
Source2:	%{name}.sysconfig
Source3:	%{name}.d.README
Patch0:		dnotify-include-stat_h.patch
Requires(post,preun):	rpm-helper

%description
Dnotify is a simple program that makes it possible to execute a command every
time the contents of a specific directory change in Linux. It is run from the
command line and takes two arguments: one or more directories to monitor and
a command to execute whenever a directory has changed. Options control what
events to trigger on: when a file was read in the directory, when one was
created/deleted, etc.

%files -f %{name}.lang
%doc README NEWS AUTHORS COPYING INSTALL
%{_bindir}/dnotify
%{_mandir}/*/*
%config(noreplace) %{_initrddir}/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%dir %{_sysconfdir}/sysconfig/%{name}.d
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}.d/README

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .stat_h

%build
%configure
%make

%install
%makeinstall
install -m755 -d %{buildroot}%{_sysconfdir}/sysconfig/%{name}.d
install -m755 -d %{buildroot}%{_initrddir}
install -m700 %{SOURCE1} %{buildroot}%{_initrddir}/%{name}
install -m600 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}.d/README

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1041 |21cr|dns2tcp-0.5.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:		dns2tcp
Version:	0.5.2
Release:	6
Summary:	Tunnel TCP over DNS
Group:		Networking/Other
License:	GPLv2+
URL:		http://www.hsc.fr/ressources/outils/dns2tcp/
Source0:	http://www.hsc.fr/ressources/outils/dns2tcp/download/%{name}-%{version}.tar.gz
Source1: 	dns2tcpd.service
Source2: 	dns2tcpd.conf
Source3: 	dns2tcpc.service
Source4: 	dns2tcpc.conf
BuildRequires:  openssl-devel
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

%description
Dns2tcp is a tool for relaying TCP connections over DNS. There is no
authentications nor encryption mecanisms : DNS encapsulation must be
considered as an unsecure and anonymous transport layer. Ressources should
be public external services like ssh, ssltunnel ... 

%package	client
Summary:	Client for dns2tcp (Tunnel TCP over DNS)
Group:		Networking/Other
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

%description	client
Dns2tcp is a tool for relaying TCP connections over DNS. There is no
authentications nor encryption mecanisms : DNS encapsulation must be
considered as an unsecure and anonymous transport layer. Ressources should
be public external services like ssh, ssltunnel ...

This package contains the client part.

%package	server
Summary:	dns2tcp server (Tunnel TCP over DNS)
Group:		Networking/Other
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

%description	server
Dns2tcp is a tool for relaying TCP connections over DNS. There is no
authentications nor encryption mecanisms : DNS encapsulation must be
considered as an unsecure and anonymous transport layer. Ressources should
be public external services like ssh, ssltunnel ...

This package contains the server part.

%prep
%setup -q 

%build
%configure
%make


%install

%makeinstall

install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/dns2tcpd.service
install -D -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/dns2tcpd.conf
install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/dns2tcpc.service
install -D -m 0755 %{SOURCE4} %{buildroot}%{_sysconfdir}/dns2tcpc.conf

%clean

%post server
%systemd_post dns2tcpd.service

%preun server
%systemd_preun dns2tcpd.service

%postun server
%systemd_postun_with_restart dns2tcpd.service

%post client
%systemd_post dns2tcpc.service

%preun client
%systemd_preun dns2tcpc.service

%postun client
%systemd_postun_with_restart dns2tcpc.service

%files server
%doc README COPYING ChangeLog
%{_bindir}/dns2tcpd
%{_unitdir}/dns2tcpd.service
%config(noreplace) %{_sysconfdir}/dns2tcpd.conf
%{_mandir}/man1/dns2tcpd.1.*

%files client
%doc README COPYING ChangeLog
%{_bindir}/dns2tcpc
%{_unitdir}/dns2tcpc.service
%config(noreplace) %{_sysconfdir}/dns2tcpc.conf
%{_mandir}/man1/dns2tcpc.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1042 |21cr|dnsa-0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DNS Auditing tool
Name:		dnsa
Version:	0.5
Release:	4
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.packetfactory.net/projects/dnsa/
Source0:	%{name}-%{version}-beta.tar.bz2
BuildRequires:	libnet-devel
BuildRequires:	libpcap-devel

%description
DNS Auditing tool.

%files
%doc sources/AUTHORS sources/ChangeLog sources/INSTALL sources/KNOWN_BUGS sources/README sources/TODO docs
%{_bindir}/dnsa

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-beta

# lib64 fixes
perl -pi -e "s|/lib\ |/%{_lib}\ |g" sources/configure*

# anti recheck hack
touch sources/*

%build
cd sources
%configure
%make

%install
install -d %{buildroot}%{_bindir}
install -m0755 sources/dnsa %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1043 |21cr|dnsflood-1.20-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DNS Flood Detector
Name:		dnsflood
Version:	1.20
Release:	4
License:	GPLv2
Group:		System/Servers
URL:		http://www.adotout.com/dnsflood.html
Source0:	http://www.adotout.com/%{name}-%{version}.tgz
Source1:	%{name}.init
Source2:	%{name}.sysconfig
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires:	libpcap-devel


%description
DNS Flood Detector was developed to detect abusive usage levels on high traffic
name-servers and to enable quick response to the use of one's name-server to
facilitate Spam.

%prep

%setup -q -n dns_flood_detector_1.2

cp %{SOURCE1} %{name}.init
cp %{SOURCE2} %{name}.sysconfig

%build
%serverbuild

gcc $CFLAGS -D_BSD_SOURCE -lpcap -lpthread -lm -o dns_flood_detector dns_flood_detector.c

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/sysconfig

install -m0755 dns_flood_detector %{buildroot}%{_sbindir}/
install -m0755 %{name}.init %{buildroot}%{_initrddir}/'dnsflood'
install -m0644 %{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/dns_flood_detector

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%doc README LICENSE
%config(noreplace) %{_sysconfdir}/sysconfig/dns_flood_detector
%attr(0755,root,root) %{_initrddir}/dnsflood
%attr(0755,root,root) %{_sbindir}/dns_flood_detector

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1044 |21cr|dnshistory-1.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Processes various log file formats doing dns IP Address lookups
Name:		dnshistory
Version:	1.3
Release:	11
License:	GPL
Group:		File tools
URL:		http://www.stedee.id.au/dnshistory
Source:		http://www.stedee.id.au/files/%{name}-%{version}.tar.bz2
BuildRequires:	db-devel
BuildRequires:	pcre-devel
BuildRequires:	zlib-devel
BuildRequires:	autoconf2.5
BuildRequires:	libtool

%description
dnshistory currently processes Apache CLF and Combined logs, Squid access logs,
FTP xferlog files and iptables based logs. The log format is auto-detected.

%prep

%setup -q -n %{name}-%{version}
 
%build

%configure \
    --enable-database-name=%{name}.db \
    --enable-database-dir=%{_localstatedir}/lib/%{name}

%make

%install
rm -rf %{buildroot}

%makeinstall_std

install -d %{buildroot}%{_localstatedir}/lib/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%doc ChangeLog COPYING INSTALL README
%{_bindir}/%{name}
%dir %{_localstatedir}/lib/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1045 |21cr|dnsproxy-1.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Proxy for DNS queries
Name:		dnsproxy
Version:	1.17
Release:	2
License:	BSD-style
Group:		System/Servers
Url:		http://www.wolfermann.org/dnsproxy.html
Source0:	http://www.wolfermann.org/%{name}-%{version}.tar.gz
Source1:	dnsproxy.service
BuildRequires:	libevent-devel
BuildRequires:	groff-for-man
BuildRequires:	systemd
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires(post):	systemd
Requires(preun):	systemd
Requires(postun):	systemd

%description
The dnsproxy daemon is a proxy for DNS queries. It forwards these
queries to two previously configured nameservers: one for
authoritative queries and another for recursive queries. The
received answers are sent back to the client unchanged. No local
caching is done. 

Primary motivation for this project was the need to replace Bind
servers with djbdns in an ISP environment. These servers get
recursive queries from customers and authoritative queries from
outside at the same IP address. Now it is possible to run dnscache
and tinydns on the same machine with queries dispatched by
dnsproxy.

Other scenarios are firewalls where you want to proxy queries to
the real servers in your DMZ. Or internal nameservers behind
firewalls, or...

%files
%doc README
%{_unitdir}/dnsproxy.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/dnsproxy.conf
%attr(0755,root,root) %{_sbindir}/dnsproxy
%{_mandir}/man1/*

#----------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-native-libevent
%make

%install
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 dnsproxy %{buildroot}%{_sbindir}/
install -m0644 dnsproxy.1 %{buildroot}%{_mandir}/man1
install -D -p -m 0644 dnsproxy.conf %{buildroot}%{_sysconfdir}/dnsproxy.conf
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_unitdir}/dnsproxy.service

%post
%systemd_post dnsproxy.service

%preun
%systemd_preun dnsproxy.service

%postun
%systemd_postun_with_restart dnsproxy.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1046 |21cr|dnstop-20180227-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	This displays various tables of DNS traffic on your network
Name:		dnstop
Version:	20180227
Release:	1
License:	BSD
Group:		Monitoring
Url:		http://dnstop.measurement-factory.com/
Source0:	https://github.com/measurement-factory/dnstop/archive/master//dnstop-%{version}.zip
BuildRequires:	libpcap-devel >= 0.7
BuildRequires:	pkgconfig(ncurses)

%description
dnstop is a libpcap application (ala tcpdump) that displays
various tables of DNS traffic on your network, including tables
of source and destination IP addresses, query types, top level
domains and second level domains.

%files
%doc CHANGES LICENSE
%attr(0755,root,root) %{_sbindir}/dnstop
%attr(0644,root,root) %{_mandir}/man8/dnstop.8*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-master

%build
%configure
%make \
	CFLAGS="%{optflags} \
	-DUSE_IPV6=1 \
	-DUSE_PPP=0"

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8
install -m755 dnstop %{buildroot}%{_sbindir}/
install -m644 dnstop.8 %{buildroot}%{_mandir}/man8/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1047 |21cr|dnstouch-0.4-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Incrementally updates bind v8+ zone file serial numbers
Name:		dnstouch
Version:	0.4
Release:	19
License:	GPL
Group:		Networking/Other
URL:		http://uranus.it.swin.edu.au/~jn/linux/dns.htm
Source0:	http://uranus.it.swin.edu.au/~jn/linux/ndu-%{version}.tar.bz2
Source1:	ndu.conf
Patch0:		ndu-opt.patch
Patch1:		ndu-verbose.patch
Requires:	ed bind 

%description
dnstouch incrementally updates bind v8+ zone file serial numbers.

%prep

%setup -q -n ndu-%{version}
%patch0 -p0
%patch1 -p0 

%build
export CFLAGS="%{optflags}"
export CC="g++"
make CC="g++" CFLAGS="%{optflags}" -C src dnstouch

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}

install -m0755 src/dnstouch %{buildroot}%{_bindir}/dnstouch
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README INSTALL
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ndu.conf
%attr(0755,root,root) %{_bindir}/dnstouch

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1048 |21cr|dnstracer-1.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to trace dns queries
Name:		dnstracer
Version:	1.9
Release:	6
License:	BSD
Group:		Networking/Other
URL:		http://www.mavetju.org/unix/general.php
Source:		http://www.mavetju.org/download/%{name}-%{version}.tar.gz

%description
dnstracer determines where a given Domain Name Server (DNS) gets
its information from, and follows the chain of DNS servers back to
the servers which know the data.

%prep
%setup -q

%build
%configure
%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
%makeinstall

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES README
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1049 |21cr|dnsutl-1.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:      Utilities to make DNS easier to configure
Name:         dnsutl
Version:      1.8
Release:      8
License:    GPL
Group:        Networking/Other
Source:       http://www.canb.auug.org.au/%7Emillerp/dnsutl/%{name}-%{version}.tar.bz2
URL:          http://www.canb.auug.org.au/~millerp/dnsutl/
 
Buildrequires: byacc gettext-devel gawk
# (tv) for gsoelim:
Buildrequires: groff

%description
The dnsutl package is a collection of tools to make administering
DNS easier.  The tools include:

dns-rev: Take the forward DNS mapping and generate the reverse mapping.

dns-hosts: Take the forward DNS mapping and generate the /etc/hosts file.

dns-ng: Take the forward DNS mapping and generate the /etc/netgroup file.

dns-ethers: By using a bogus record type, you can keep the MAC address
	with the IP address, and generate the /etc/ethers file.

dns-bootp: Using the MAC and IP information, you can generate the
	/etc/bootptab file.

dns-bootparams: Using the MAC and IP information, you can generate the
	Sun /etc/bootparams file.

All of these programs are both faster than shell scripts, and more
robust when faced with all the peculiar semantics of DNS resource files.
They even understand the \f(CW$include\fP directive.

%prep

%setup -q 
%configure

%build
# doesn't build with -j
make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean 
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%doc etc/CHANGES.1*
%doc README 
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1050 |21cr|dnswalk-2.0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The dnswalk DNS database debugger
Name:		dnswalk
Version:	2.0.2
Release:	12
Group:		Networking/Other
URL:		http://www.visi.com/~barr/dnswalk/
License:	Artistic
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-%{version}-perlpath.patch
BuildArch:	noarch

%description
dnswalk is a DNS debugger. It performs zone transfers of specified
domains, and checks the database in numerous ways for internal
consistency, as well as accuracy. 

%prep

%setup -q -c -a0
%patch0 -p1

%build

# fix attr
chmod 644 *

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1
install -m755 %{name} %{buildroot}%{_sbindir}/
install -m755 %{name}.1 %{buildroot}%{_mandir}/man1/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES README TODO makereports sendreports rfc1912.txt do-dnswalk
%attr(0755,root,root) %{_sbindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1051 |21cr|docbook-dtd-mathml20-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dtdver 20030619
%define mltype mathml20
%define sgmlbase %{_datadir}/sgml

Name:    docbook-dtd-%{mltype}
Version: 1.0
Release:  4
Group  : Publishing
Summary: XHTML 1.1 plus MathML 2.0 document type definition
License: Distributable
URL    : http://numexp.sourceforge.net/

# tar.gz at http://www.w3.org/Math/DTD/mathml2.tgz
Source0  : mathml2.tar.bz2
Patch0   : %{name}-sysid-base.patch.bz2
BuildArch: noarch

BuildRequires: libxml2-utils
Requires: sgml-common >= 0.6.3-2mdk

%description
The DocBook Document Type Definition (DTD) describes the syntax of
technical documentation texts (articles, books and manual pages).
This syntax is XML-compliant and is developed by the OASIS consortium.
This is the version %{dtdver} of this DTD.

%prep
%setup -q -n mathml2

# CRLF -> LF
find -type f -print0 | xargs -r -0 perl -pi -e 's/\r//g'

%patch0 -p1

%build

%install
[ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ] || rm -rf $RPM_BUILD_ROOT
DESTDIR=$RPM_BUILD_ROOT%{sgmlbase}/docbook/%{mltype}-dtd-%{dtdver}
mkdir -p $DESTDIR
cp -a html iso8879 iso9573-13 mathml $DESTDIR/
cp -a mathml2.dtd xhtml-math11-f.dtd *.mod $DESTDIR/

ln -s %{mltype}-dtd-%{dtdver} $RPM_BUILD_ROOT%{sgmlbase}/docbook/%{mltype}-dtd

# create subcatalog
SUBCATALOG="%{_sysconfdir}/xml/mathml.cat"
SGMLDIR="%{sgmlbase}/docbook/%{mltype}-dtd"

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/xml
xmlcatalog --create > $RPM_BUILD_ROOT$SUBCATALOG

xmlcatalog --noout --add "rewriteSystem" \
	"http://www.w3.org/Math/DTD/mathml2/" \
	"file://$SGMLDIR/" \
	$RPM_BUILD_ROOT$SUBCATALOG

xmlcatalog --noout --add "public" \
	"-//W3C//DTD MathML 2.0//EN" \
	"$SGMLDIR/mathml2.dtd" \
	$RPM_BUILD_ROOT$SUBCATALOG

xmlcatalog --noout --add "public" \
	"-//W3C//DTD XHTML 1.1 plus MathML 2.0//EN" \
	"$SGMLDIR/xhtml-math11-f.dtd" \
	$RPM_BUILD_ROOT$SUBCATALOG

xmlcatalog --noout --add "public" \
	"-//W3C//DTD XHTML 1.1 plus MathML 2.0 plus SVG 1.1//EN" \
	"$SGMLDIR/xhtml-math11-f.dtd" \
	$RPM_BUILD_ROOT$SUBCATALOG


%clean
[ -z "$RPM_BUILD_ROOT" -o "$RPM_BUILD_ROOT" = "/" ] || rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,0755)
%{sgmlbase}/docbook/%{mltype}-dtd
%{sgmlbase}/docbook/%{mltype}-dtd-%{dtdver}
%{_sysconfdir}/xml/mathml.cat

%post
CATALOG="%{_sysconfdir}/xml/catalog"
SUBCATALOG="%{_sysconfdir}/xml/mathml.cat"
# test xmlcatalog is available before using it...
[ -f "$CATALOG" -a -f "$SUBCATALOG" ] || exit 0

%{_bindir}/xmlcatalog --noout --add "delegatePublic" \
	"-//W3C//DTD MathML 2.0//EN" \
	"file://$SUBCATALOG" "$CATALOG"
%{_bindir}/xmlcatalog --noout --add "delegatePublic" \
	"-//W3C//DTD XHTML 1.1 plus MathML 2.0" \
	"file://$SUBCATALOG" "$CATALOG"
%{_bindir}/xmlcatalog --noout --add "delegateSystem" \
	"http://www.w3.org/Math/DTD/mathml2"  \
	"file://$SUBCATALOG" "$CATALOG"
%{_bindir}/xmlcatalog --noout --add "delegateURI" \
	"http://www.w3.org/Math/DTD/mathml2" \
	"file://$SUBCATALOG" "$CATALOG"

%preun
CATALOG=%{_sysconfdir}/xml/catalog
SUBCATALOG="%{_sysconfdir}/xml/mathml.cat"
# test xmlcatalog is available before using it...
[ -f "$CATALOG" -a -f "$SUBCATALOG" ] || exit 0
# Do not remove if upgrade
[ "$1" = "0" ] || exit 0

%{_bindir}/xmlcatalog --noout --del \
	"file://$SUBCATALOG" $CATALOG
 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1052 |21cr|docbook-style-xsl-ns-1.79.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sgmlbase %{_datadir}/sgml/

Summary:	Norman Walsh's modular stylesheets for DocBook5
Name:		docbook-style-xsl-ns
Version:	1.79.1
Release:	1
Group:		Publishing
License:	Artistic style
Url:		http://sourceforge.net/projects/docbook
Source0:	https://sourceforge.net/projects/docbook/files/docbook-xsl-ns/%{version}/docbook-xsl-ns-%{version}.tar.bz2
Requires:	docbook-dtd-xml
Provides:	docbook-xsl = %{version}
Requires(pre):	sgml-common
Obsoletes:	docbook5-style-xsl < %{EVRD}
Provides:	docbook5-style-xsl = %{EVRD}
BuildArch:	noarch

%description
These XSL stylesheets allow to convert any DocBook5 document to another
printed (for example, RTF or PostScript) or online (for example, HTML) format.
They are highly customizable.
Note that this is an experimental release for testing purposes only: it makes
the stylesheets namespace aware for the first time for DocBook 5 (RNG based).
For production use please install docbook-style-xsl instead.

%files
%doc BUGS TODO README VERSION NEWS* COPYING RELEASE* INSTALL
%{sgmlbase}/docbook/xsl-stylesheets-db5-%{version}

#----------------------------------------------------------------------------

%prep
%setup -n docbook-xsl-ns-%{version} -q

%build

%install
TARGET=%{sgmlbase}/docbook/xsl-stylesheets-db5-%{version}
mkdir -p %{buildroot}$TARGET
# Camille 2007-01-23: "slides website roundtrip" XSL not available in this DB5 release
cp -a VERSION common eclipse extensions fo highlighting html htmlhelp images javahelp lib template xhtml manpages profiling params tools %{buildroot}$TARGET

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1053 |21cr|dockapp-0.7.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         srcname       libdockapp

%define         major         3
%define         libname       %mklibname %{name} %{major}
%define         libdevelname  %mklibname -d %{name}

Name:           dockapp
Version:        0.7.2
Release:        4
Summary:        A library that eases the creation of dock apps
License:        MIT
Group:          System/Libraries
URL:            http://windowmaker.org/dockapps/?name=libdockapp
Source0:        %{srcname}-%{version}.tar.gz


BuildRequires:  pkgconfig(xpm)
BuildRequires:  pkgconfig(x11) 
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(pkg-config)
BuildRequires:  x11-font-util


%description
A simple library that eases the creation of WindowMaker dock apps. It
provides functions that set up a dock app in such a way that they can
be properly docked. It also provides some event handlers and makes it
very simple to write dockapps.


%package -n %{libname}
Summary:        A library that eases the creation of dock apps
Group:          System/Libraries
Requires:       %{name} = %{version}-%{release}

%description -n %{libname}
%{summary}.



%package -n %{libdevelname}
Summary:        Development files for libdockapp
Group:          Development/Other
Requires:       %{libname} = %{version}-%{release}
Provides:       lib%{name}-devel = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{libdevelname}
%{summary}.



%prep
%setup -q -n %{srcname}-%{version}

%build
autoreconf -fi
%configure --with-pic --disable-static

%install
%makeinstall_std

find %{buildroot}%{_libdir} -name *.la -delete


%files
%doc README
%{_xfontdir}/X11/misc/*


%files -n %{libname}
%{_libdir}/*.so.*


%files -n %{libdevelname}
%{_includedir}/%{srcname}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_docdir}/%{srcname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1054 |21cr|docker-compose-2.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     debug_package %{nil}

%define     oname docker-compose

Name:           %{oname}
Version:	2.3.3
Release:	1
Summary:        Docker compose golang version
Group:          System/Kernel and hardware
License:        ASL 2.0
URL:            https://docs.docker.com/compose
Source0:        https://github.com/docker/compose/archive/v%{version}/%{name}-%{version}.tar.gz
Source10:       docker-compose-2.3.3-go-mod-vendor.tar.xz
Source11:       upd.sh
Patch0:         docker-compose-remove-vendors.patch
# docker-compose is compatible with fig and is a simple rename.
Provides:       fig = %{version}-%{release}
Obsoletes:      fig < 1.0.0-4

BuildRequires:  golang
BuildRequires:  git-core
BuildRequires:  upx

Requires:       docker

%description
Docker Compose v2

Docker Compose is a tool for running multi-container
applications on Docker defined using the Compose file
format. A Compose file is used to define how the one or
more containers that make up your application are
configured. Once you have a Compose file, you can
create and start your application with a single command:

docker compose up

%prep
%autosetup -p1 -n compose-%{version}

%build
( cd .. && tar -xf %{SOURCE10} )
export GO111MODULE=on

CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=%{version}"  -o bin/%{oname} ./cmd
upx bin/%{oname}

find . -type f -size 0 -exec rm -f {} \;

%install
install -Dm0755 bin/%{oname} %{buildroot}%{_bindir}/%{oname}

%files
%doc README.md LICENSE docs
%{_bindir}/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1055 |21cr|docker-manager-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		docker-manager
Version:	1.9
Release:	1
Summary:	Manager for Docker
Group:		System/Servers
License:	GPLv3
URL:		https://github.com/AKotov-dev/docker-manager
Source0:	https://github.com/AKotov-dev/docker-manager/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	docker-manager
Source2:	docker-manager.png
Source3:	docker-manager.desktop
BuildRequires:	lazarus
Requires:	docker
Requires:	sakura
Requires:	systemd


%description
The GUI is designed to manage Docker images and containers. It allows you to monitor
the status of certain objects in real time and perform entry-level operations on them (right-click menu).
It can also be useful as a monitor of Docker objects activity during deployment and configuration

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
#-----------------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp docker_manager %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1056 |21cr|doctorj-5.1.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with tests

Name:		doctorj
Version:	5.1.2
Release:	13
Epoch:		0
Summary:	Compares javadoc comments against code
License:	LGPL
Group:		Development/Java
URL:		http://www.incava.org/projects/java/doctorj/index.html
Source0:	http://superb-east.dl.sourceforge.net/sourceforge/doctorj/doctorj-%{version}.tar.gz
BuildArch: 	noarch
BuildRequires:	java-devel
BuildRequires:	ant
%if %with tests
BuildRequires:	ant-junit
%endif
BuildRequires:	java-rpmbuild
BuildRequires:  xmlto

%description
Beyond the level of what Javadoc does, DoctorJ compares
documentation against code. Among what it detects:

    * misspelled words
    * parameter and exception names:
          o missing
          o misordered
          o misspelled
    * Javadoc tags:
          o invalid
          o misordered
          o missing expected arguments
          o invalid arguments
          o missing descriptions
    * undocumented classes, methods, fields, parameters

%package        javadoc
Group:          Development/Java
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q

%build
export CLASSPATH=
export OPT_JAR_LIST=
%ant dist
%ant doc

%if %with tests
%check
export CLASSPATH=
export OPT_JAR_LIST="%{__cat} %{_sysconfdir}/ant.d/junit"
%ant tests
%endif

%install
%ant -Ddestdir=%{buildroot} install

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a doc/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
(cd %{buildroot}%{_javadocdir} && %{__ln_s} %{name}-%{version} %{name})

%files
%defattr(0644,root,root,0755)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
%attr(0755,root,root) %{_bindir}/%{name}
# XXX: This should probably go in %%{_javadir}.
%{_datadir}/%{name}/doctorj.jar
%{_datadir}/%{name}/words.*
%{_mandir}/man1/%{name}.1*

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1057 |21cr|docx2txt-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	cli tool to convert docx to ascii txt files
Name:		docx2txt
Version:	1.4
Release:	1
Group:		Office
License:	GPLv3
Url:		http://sourceforge.net/projects/docx2txt
Source0:	http://downloads.sourceforge.net/project/docx2txt/docx2txt/v1.4/%{name}-%{version}.tgz
BuildArch:	noarch
Requires:	unzip

%description
Docx2txt is a Perl based command-line tool
to convert Microsoft docx documents to
(ASCII) text files, preserving some formatting
and document information (which MS
text conversion drops) along with appropriate
character conversions.

%files
%doc ChangeLog README COPYING
%{_bindir}/%{name}
%{_bindir}/docx2txt.pl

#-------------------------------------------------------

%prep
%setup -q

%build

%install
export BINDIR="%{buildroot}%{_bindir}"
export CONFIGDIR="%{buildroot}%{_sysconfdir}"
make INSTALLDIR=%{buildroot}%{_bindir}
mv %{buildroot}%{_bindir}/docx2txt.sh %{buildroot}%{_bindir}/docx2txt
rm -f %{buildroot}%{_sysconfdir}/docx2txt.config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1058 |21cr|doggo-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=off
# see Source0
%global goipath github.com/mr-karan/doggo

Name:		doggo
Version:	1.0.5
Release:	1
Summary:	CLI tool and API server DNS client implemented in Go
License:	GPL-3.0-only
Group:		Networking/WWW
URL:		https://github.com/mr-karan/doggo
Source0:	https://github.com/mr-karan/doggo/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	doggo-go-mod-vendor-1.0.5.tar.gz
Source10:	upd.sh
BuildRequires:	golang
Recommends:	%{name}-bash-completion
Suggests:	%{name}-fish-completion
Suggests:	%{name}-zsh-completion
%gometa

%description
doggo is a modern command-line DNS client (like dig) implemented in Go.
It outputs information in a neat concise manner and supports protocols
like DoH, DoT, DoQ, and DNSCrypt as well.

%package web
Summary:	Web UI for %{name}
Group:		Networking/WWW
Supplements:	%{name}

%description web
HTTP server for %{name} that provides a web browser UI for making DNS queries

%package bash-completion
Summary:	Bash completion for %{name}
Group:		Shells
Supplements:	(%{name} and bash)
BuildArch:	noarch

%description bash-completion
bash completion scripts for %{name}

%package fish-completion
Summary:	Fish completion for %{name}
Group:		Shells
Supplements:	(%{name} and fish)
BuildArch:	noarch

%description fish-completion
fish completion scripts for %{name}

%package zsh-completion
Summary:	Zsh completion for %{name}
Group:		Shells
Supplements:	(%{name} and zsh)
BuildArch:	noarch

%description zsh-completion
zsh completion scripts for %{name}

%prep
%goprep

# prepare vendored modules
tar -xf %{SOURCE1}
cp -r ./vendor/* _build/src/

%build
%gobuild -o %{name} %{goipath}/cmd/%{name}
# build separate binary providing web interface
%gobuild -o %{name}-web %{goipath}/web/

%install
install -d %{buildroot}%{_bindir}
install -D ./%{name} %{buildroot}%{_bindir}/%{name}
install -D ./%{name}-web %{buildroot}%{_bindir}/%{name}-web

# Completions
./%{name} completions bash > %{name}.bash
install -Dm644 %{name}.bash %{buildroot}%{_datadir}/bash-completions/completions/%{name}
./%{name} completions fish > %{name}.fish
install -Dm644 %{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
./%{name} completions zsh > %{name}.zsh
install -Dm644 %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}

%files web
%doc config-api-sample.toml
%{_bindir}/%{name}-web

%files fish-completion
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/%{name}.fish

%files zsh-completion
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_%{name}

%files bash-completion
%dir %{_datadir}/bash-completions
%dir %{_datadir}/bash-completions/completions
%{_datadir}/bash-completions/completions/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1059 |21cr|dogtail-0.9.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI test tool and automation framework
Name:		dogtail
Version:	0.9.11
Release:	1
License:	GPLv2+
Group:		System/X11
Url:		https://fedorahosted.org/dogtail/
Source0:	https://fedorahosted.org/released/dogtail/%{name}-%{version}.tar.gz
Patch0:		dogtail-0.9.0-desktop-fix.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	typelib(Atspi)
BuildArch:	noarch

%description
GUI test tool and automation framework that uses Accessibility (a11y) 
technologies to communicate with desktop applications.

%files
%doc COPYING examples NEWS
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/dogtail
%{python3_sitelib}/dogtail
%{python3_sitelib}/*.egg-info
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%py3_build

%install
%py3_install

rm -fr %{buildroot}%{_datadir}/doc/dogtail

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -resize 16x16 icons/dogtail-head-48.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/dogtail-head.png
convert -resize 32x32 icons/dogtail-head-48.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/dogtail-head.png
convert -resize 48x48 icons/dogtail-head-48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/dogtail-head.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1060 |21cr|dokeos-1.8.6.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An elearning and course management web application
Name:		dokeos
Version:	1.8.6.1
Release:	7
License:	GPLv2+
Group:		Education
Url:		http://www.dokeos.com/
Source0:	http://ovh.dl.sourceforge.net/sourceforge/dokeos/%{name}-%{version}.zip
Requires:	apache-mod_php
Requires:	php-mysql
Requires:	php-xml
BuildArch:	noarch

%description
Dokeos is an elearning and course management web application, translated
in 31 languages, already helping thousands of organisations worldwide to
manage learning and collaboration activities. It has many tools, is light
and flexible, and free software.

%files
%doc README.txt install.sh
%{_var}/www/html/%{name}

%post
echo "Default permissions of configuration files won't allow dokeo to make changes."
echo "To allow dokeos to make changes be sure to run %{_docdir}/%{name}-%{version}/install.sh"
echo "to change the permissions."
echo "Also be sure to restrict permissions of /var/www/html/dokeos/claroline/inc/conf/claro_main.conf.php"
echo "afterwards so other users can't write to it."
echo "Eg. chmod 644 /var/www/html/dokeos/claroline/inc/conf/claro_main.conf.php"

#----------------------------------------------------------------------------

%prep
%setup -q

%build
cat << EOF > install.sh
#!/bin/sh
echo "Setting permissions of dokeos' files"
chmod 777 %{webroot}/claroline/inc/conf/
chmod 777 %{webroot}/claroline/garbage/
chmod 777 %{webroot}/claroline/upload/
chmod 777 %{webroot}/archive/
chmod 777 %{webroot}/courses/
chmod 777 %{webroot}/home/
echo ""
echo "Be sure to change the permission of /var/www/html/dokeos/claroline/inc/conf/claro_main.conf.php"
echo "afterwards so other users can't write to it."
echo "Eg. chmod 644 /var/www/html/dokeos/claroline/inc/conf/claro_main.conf.php"
EOF
chmod 700 install.sh

%install
install -d %{buildroot}%{_var}/www/html/%{name}
cp -r * %{buildroot}%{_var}/www/html/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1061 |21cr|dokuwiki-20160626-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dir_version  2016-06-26a
%define _localstatedir %{_var}
%global __requires_exclude /usr/bin/php

Summary:	A wiki with plain text files backend
Name:		dokuwiki
Version:	20160626
Release:	3
License:	GPLv2
Group:		Networking/WWW
URL:		https://www.dokuwiki.org/dokuwiki
Source0:	http://download.dokuwiki.org/src/dokuwiki/%{name}-%{dir_version}.tgz
Requires:	apache-mod_php
Requires:	php-xml
BuildArch:	noarch

%description
DokuWiki is a standards compliant, simple to use Wiki, mainly aimed at creating
documentation of any kind. It is targeted at developer teams, workgroups and
small companies. It has a simple but powerful syntax which makes sure the
datafiles remain readable outside the Wiki and eases the creation of structured
texts. All data is stored in plain text files -- no database is required.

%prep
%setup -qn %{name}
find . -name '.htaccess' | xargs rm -f

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/%{name}

install -d -m 755 %{buildroot}%{_datadir}/%{name}/bin
install -m 755 bin/* %{buildroot}%{_datadir}/%{name}/bin

cp -pr inc %{buildroot}%{_datadir}/%{name}
cp -pr lib %{buildroot}%{_datadir}/%{name}

install -m 644 *.php %{buildroot}%{_datadir}/%{name}

pushd %{buildroot}%{_datadir}/%{name}
ln -sf ../../../var/lib/dokuwiki data
ln -sf ../../../etc/dokuwiki conf
popd

install -d -m 755 %{buildroot}%{_localstatedir}/lib
cp -pr data %{buildroot}%{_localstatedir}/lib/%{name}

install -d -m 755 %{buildroot}%{_sysconfdir}
cp -pr conf %{buildroot}%{_sysconfdir}/%{name}
rm -f %{buildroot}%{_sysconfdir}/%{name}/*.{dist,example}

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# %{name} Apache configuration
Alias /%{name} %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Require all granted
    DirectoryIndex doku.php
</Directory>

<Directory %{_datadir}/%{name}/bin>
    Require all denied
</Directory>

<Directory %{_datadir}/%{name}/inc>
    Require all denied
</Directory>

<Directory %{_datadir}/%{name}/conf>
    Require all denied
</Directory>

<Directory %{_datadir}/%{name}/data>
    Require all denied
</Directory>
EOF

cat > README.urpmi <<EOF
The setup used here differs from default one, to achieve better FHS compliance, and
follow upstream security recommandations detailed at
http://wiki.splitbrain.org/wiki:security:
- the non-variable files are in %{_datadir}/%{name}
- the variable files are in %{_localstatedir}/lib/%{name}
- the configuration files are in %{_sysconfdir}/%{name}
EOF
	
%pretrans
# fix for old lib setup
if [ -d %{_localstatedir}/www/%{name}/lib -a ! -L %{_localstatedir}/www/%{name}/lib ]; then
    cd %{_localstatedir}/www/%{name}
    find lib -type f | \
        tar --create --files-from - --remove-files | \
        (cd %{_datadir}/%{name} && tar --preserve --extract)
    rm -rf lib
    ln -sf ../../..%{_datadir}/%{name}/lib lib
fi


%pre
if [ $1 = "2" ]; then
    # fix for old setup
    if [ -d %{_localstatedir}/lib/%{name}/data ]; then
        mv %{_localstatedir}/lib/%{name}/data/* %{_localstatedir}/lib/%{name}
        rmdir %{_localstatedir}/lib/%{name}/data
    fi
fi

%files
%doc README VERSION README.urpmi conf/*.{dist,example}
%config(noreplace) %{_webappconfdir}/%{name}.conf
%attr(-,apache,apache) %config(noreplace) %{_sysconfdir}/%{name}
%{_datadir}/%{name}
%attr(-,apache,apache) %{_localstatedir}/lib/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1062 |21cr|dolly-0.57-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clone the installation of one machine to many other machines
Name:		dolly
Version:	0.57
Release:	14
License:	GPLv2+
Group:		System/Cluster
Url:		http://www.cs.inf.ethz.ch/stricker/CoPs/patagonia/dolly.html
Source0:	%{name}-%{version}.tar.bz2
Source10:	dolly.html
Source11:	dolly.conf
Patch0:		dolly-0.57-sfmt.patch

%description
Dolly is used to clone the installation of one machine to (possibly many)
other machines. It can distribute image-files (even gnu-zipped), partitions
or whole hard disk drives to other partitions or hard disk drives. As it
forms a "virtual TCP ring" to distribute data, it works best with fast
switched networks (we were able to clone a 2 GB Windows NT partition to 15
machines in our cluster over Gigabit Ethernet in less than 4 minutes).

As dolly clones whole partitions block-wise it works for most filesystems.
We used it to clone partitions of the following type: Linux, Windows NT,
Oberon, Solaris (most of our machines have multi boot setups). We have a
small (additional) Linux installation on all of our machines or use a small
one-floppy-disk-linux (e.g. muLinux) to do the cloning.

%files
%doc README dolly.html
%{_bindir}/dolly
%config(noreplace) %{_sysconfdir}/%{name}.conf

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
cp -v %{SOURCE10} .

%build
%__cc %{optflags} dolly.c -o dolly

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}
install -m755 dolly %{buildroot}%{_bindir}/dolly
cp -v %{SOURCE11} %{buildroot}%{_sysconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1063 |21cr|dolly_plus-0.93-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Clone the installation of one machine to many other machines
Name: dolly_plus
Version: 0.93
Release: 10
Source0: %{name}-%{version}.tar.bz2
Patch0: dolly_plus-Makefile.patch
Patch1: dolly_plus-Client.patch
Source2: dolly_plus.cfg
License: GPL
Group: System/Servers
Url: http://corvus.kek.jp/~manabe/pcf/dolly/


%description
In administrating a large scale PC cluster, installation and updating both
of kernel and utility software to whole the system are very troublesome, 
especially if the numbers of PC exceeds a hundred. In installation, people 
usually make dead copies of a hard disk image in which software systems are
previously installed and then they are distributed among node PCs by CDs or
hard disk themselves.
Though some software do such a process through networks, they commonly have 
an performance bottleneck at server where the original image are hold. 
A cloning program `dolly' developed in ETH(Swiss Federal Institute of 
Technology) avoids such bottleneck by using a "ring" type connection rather 
than 'hub' type connection among one server and many clients.
I have extended its concept with multi-threading and pipeline technique.
It speeds up installation process very much. One-to-ten copying, for example,
finishes in almost same minutes for one-to-one copy. 
In addition, time out sensing 'bypass' mechanism makes the copy process
pretty robust in the case of a client machine trouble.

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_sysconfdir}
install -m755 $RPM_BUILD_DIR/%name-%version/dollyS %{buildroot}/%{_bindir}/dollyS
install -m755 $RPM_BUILD_DIR/%name-%version/dollyC %{buildroot}/%{_bindir}/dollyC
install -m755 $RPM_BUILD_DIR/%name-%version/dping %{buildroot}/%{_bindir}/dping
install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/dolly_plus.cfg.sample

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc index.html
%config %{_sysconfdir}/dolly_plus.cfg.sample
%{_bindir}/dollyS
%{_bindir}/dollyC
%{_bindir}/dping

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1064 |21cr|dolphin-checksum-plugin-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	dolphin checksum plugin
Name:		dolphin-checksum-plugin
Version:	0.2
Release:	1
License:	GPLv3
Group:		System/Base
Url:		https://abf.io/import/dolphin-checksum-plugin
Source0:	dolphin-checksum.sh
Source1:	checksum.desktop

Requires:	bash
Requires:	gettext
Requires:	plasma5-dolphin
Requires:	xclip
Requires:	kdialog
Recommends:	md5sum
Recommends:	sha1sum
Recommends:	sha256sum
Recommends:	sha512sum
Recommends:	gostsum

BuildArch:	noarch

%description
checksum plugin for right click menu dolphin

%files
%{_bindir}/dolphin-checksum.sh
%{_datadir}/kservices5/ServiceMenus/*.desktop

%prep

%build

%install
mkdir -p %{buildroot}/%{_bindir} %{buildroot}/%{_datadir}/kservices5/ServiceMenus/
install -m 755 %{SOURCE0}  %{buildroot}/%{_bindir}/dolphin-checksum.sh
install -m 644 %{SOURCE1}  %{buildroot}/%{_datadir}/kservices5/ServiceMenus/checksum.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1065 |21cr|dolphin-connector-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn_version g5f75edb

%define major 1
%define libname %mklibname dolphinconn %{major}
%define devname %mklibname dolphinconn -d

Summary:	Simple MySQL C API wrapper for C++
Name:		dolphin-connector
Version:	1.2
Release:	10
License:	BSD
Group:		Development/C++
Url:		http://github.com/poetinha/dolphin-connector
Source0:	http://github.com/poetinha/dolphin-connector/tarball/master/poetinha-%{name}-v%{version}-1-%{svn_version}.tar.gz
BuildRequires:	boost-devel
BuildRequires:	mysql-devel

%description
Dolphin Connector is a simples MySQL C API wrapper for C++, It is originally
designed to be as efficient as is possible, and makes no use of exceptions.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Simple MySQL C API wrapper for C++
Group:		System/Libraries
Conflicts:	%{name} < 1.2-8
Obsoletes:	%{name} < 1.2-8

%description -n %{libname}
Dolphin Connector is a simples MySQL C API wrapper for C++, It is originally
designed to be as efficient as is possible, and makes no use of exceptions.

%files -n %{libname}
%doc ChangeLog LICENSE README TODO
%{_libdir}/libdolphinconn.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Dolphin Connector
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	boost-devel
Requires:	mysql-devel
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.2-8
Obsoletes:	%{name}-devel < 1.2-8

%description -n %{devname}
Dolphin Connector development package.

%files -n %{devname}
%doc sample
%{_includedir}/dolphinconn
%{_libdir}/libdolphinconn.so

#----------------------------------------------------------------------------

%prep
%setup -qn poetinha-%{name}-5f75edb

%build
./autogen.sh
%configure \
	--disable-static
%make

%install
%makeinstall_std

rm -f sample/Makefile*
rm -rf sample/.deps*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1066 |21cr|dolphin-libreoffice-templates-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LibreOffice document templates for Dolphin contextual menu
Name:		dolphin-libreoffice-templates
Version:	1.1
Release:	3
# Based on Calligra templates
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalab.com/
Source0:	%{name}-%{version}.tar.bz2
Buildarch:	noarch

%description
LibreOffice document templates for Dolphin contextual menu.

%files
%{_datadir}/templates

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/templates/
mkdir -p %{buildroot}%{_datadir}/templates/.source
install -m 0644 templates/*.desktop %{buildroot}%{_datadir}/templates/
install -m 0644 templates/.source/* %{buildroot}%{_datadir}/templates/.source/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1067 |21cr|domain-check-1.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DNS domain expiration checker
Name:		domain-check
Version:	1.3
Release:	8
License:	BSD-like
Group:		Monitoring
URL:		http://prefetch.net/code/domain-check.html
Source0:	http://prefetch.net/code/domain-check.bz2
Patch0:		domain-check-1.3-whois.diff
Requires:	whois
BuildArch:	noarch

%description
domain-check is a utility for checking DNS domain expiration dates. domain-
check queries WHOIS data in realtime, and can be integrated with cron to
provide e-mail notifications prior to a domain expiring.

%prep

%setup -q -c -T
bzcat %{SOURCE0} > %{name}
%patch0 -p0

%build

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1068 |21cr|doomsday-2.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude libdehread\\.so(.*)|libdoom64\\.so(.*)|libdoom\\.so(.*)|libexample\\.so(.*)|libheretic\\.so(.*)|libhexen\\.so(.*)|libsavegameconverter\\.so(.*)|libwadmapconverter\\.so(.*)

Summary:	The Doomsday Engine: Doom/Hertic/Hexen port with pretty graphics
Name:		doomsday
Version:	2.3.1
Release:	2
License:	GPLv2+
Group:		Games/Shooter
Url:		http://dengine.net/
Source0:	http://sourceforge.net/projects/deng/files/Doomsday%20Engine/%{version}/%{name}-%{version}.tar.gz
Patch0:		doomsday-2.3.1-desktop.patch
BuildRequires:	imagemagick
BuildRequires:	cmake
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xxf86vm)
Recommends:	%{name}-launcher

%description
The Doomsday Engine is a source port with support for Doom, Heretic,
and Hexen. It does not support BOOM extensions.

%files
%dir %{_sysconfdir}/doomsday
%config %{_sysconfdir}/doomsday/paths
%{_bindir}/doomsday-server*
%{_bindir}/doomsday-shell*
%{_bindir}/doomsdayscript*
%{_bindir}/wadtool
%{_libdir}/%{name}/
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*.png
%{_datadir}/%{name}/*.pk3
%{_datadir}/%{name}/*.pack
%{_datadir}/metainfo/net.dengine.Doomsday.appdata.xml
%{_datadir}/applications/net.dengine.Shell.desktop
%if "%{_libdir}" != "%{_libexecdir}"
%{_libexecdir}/%{name}/
%endif

#----------------------------------------------------------------------------

%package launcher
Summary:	Graphical launcher for Doomsday
Group:		Games/Shooter
Requires:	%{name}

%description launcher
Snowberry is the official frontend of the Doomsday Engine. It is a portable
graphical game launcher, with support for configuring the various types of
games supported by Doomsday. It offers to save your settings for launching
a particular game (e.g., Doom).

%files launcher
%{_bindir}/doomsday
%{_bindir}/doomsday-%{version}
%{_datadir}/applications/net.dengine.Doomsday.desktop
%{_datadir}/icons/hicolor/256x256/apps/net.dengine.Doomsday.png

#----------------------------------------------------------------------------

%define deng_core_major 2
%define libdeng_core %mklibname deng_core %{deng_core_major}

%package -n %{libdeng_core}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdeng_core}
Shared library for %{name}.

%files -n %{libdeng_core}
%{_libdir}/libdeng_core.so.%{deng_core_major}*

#----------------------------------------------------------------------------

%define deng_doomsday_major 2
%define libdeng_doomsday %mklibname deng_doomsday %{deng_doomsday_major}

%package -n %{libdeng_doomsday}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdeng_doomsday}
Shared library for %{name}.

%files -n %{libdeng_doomsday}
%{_libdir}/libdeng_doomsday.so.%{deng_doomsday_major}*

#----------------------------------------------------------------------------

%define deng_gamefw_major 2
%define libdeng_gamefw %mklibname deng_gamefw %{deng_gamefw_major}

%package -n %{libdeng_gamefw}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdeng_gamefw}
Shared library for %{name}.

%files -n %{libdeng_gamefw}
%{_libdir}/libdeng_gamefw.so.%{deng_gamefw_major}*

#----------------------------------------------------------------------------
%define deng_legacy_major 2
%define libdeng_legacy %mklibname deng_legacy %{deng_legacy_major}

%package -n %{libdeng_legacy}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdeng_legacy}
Shared library for %{name}.

%files -n %{libdeng_legacy}
%{_libdir}/libdeng_legacy.so.%{deng_legacy_major}*

#----------------------------------------------------------------------------

%define deng_appfw_major 2
%define libdeng_appfw %mklibname deng_appfw %{deng_appfw_major}

%package -n %{libdeng_appfw}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdeng_appfw}
Shared library for %{name}.

%files -n %{libdeng_appfw}
%{_libdir}/libdeng_appfw.so.%{deng_appfw_major}*

#----------------------------------------------------------------------------

%define deng_gui_major 2
%define libdeng_gui %mklibname deng_gui %{deng_gui_major}

%package -n %{libdeng_gui}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdeng_gui}
Shared library for %{name}.

%files -n %{libdeng_gui}
%{_libdir}/libdeng_gui.so.%{deng_gui_major}*

#----------------------------------------------------------------------------

%define deng_shell_major 2
%define libdeng_shell %mklibname deng_shell %{deng_shell_major}

%package -n %{libdeng_shell}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdeng_shell}
Shared library for %{name}.

%files -n %{libdeng_shell}
%{_libdir}/libdeng_shell.so.%{deng_shell_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

find . -type f -name "*.png" -exec convert {} -strip {} \;

%build
pushd doomsday
%cmake
%make
popd

%install
pushd doomsday
%makeinstall_std -C build
popd

mkdir -p %{buildroot}%{_libexecdir}/%{name}
mv %{buildroot}%{_bindir}/{md2tool,savegametool*,texc} %{buildroot}%{_libexecdir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/doomsday
cat > %{buildroot}%{_sysconfdir}/doomsday/paths <<-EOF
	basedir: %{_datadir}/doomsday
	libdir: %{_libdir}/doomsday
	iwaddir: %{_datadir}/doom
EOF

rm -f %{buildroot}%{_libdir}/*.so
rm -rf %{buildroot}%{_libdir}/cmake
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_docdir}/texc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1069 |21cr|doomseeker-1.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname wadseeker %{major}
%define	devname %mklibname wadseeker -d

Summary:	A cross-platform Doom server browser
Name:		doomseeker
Version:	1.3.1
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		http://doomseeker.drdteam.org/
Source0:	http://doomseeker.drdteam.org/files/%{name}-%{version}.tar.xz
Source1:	%{name}.desktop
# Search for plugins in proper path
Patch0:		doomseeker-1.3-fix-datapath.patch
BuildRequires:	cmake >= 3.6.0
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(zlib)

%description
A cross-platform Doom server browser.

%files
%doc LICENSE LICENSE-json *.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_libdir}/%{name}/engines/libchocolatedoom.so
%{_libdir}/%{name}/engines/libodamex.so
%{_libdir}/%{name}/engines/libsrb2.so
%{_libdir}/%{name}/engines/libturok2ex.so
%{_libdir}/%{name}/engines/libzandronum.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Wadseeker shared library
Group:		System/Libraries

%description -n %{libname}
Wadseeker shared library: a library to find Mods.

%files -n %{libname}
%doc LICENSE LICENSE-json
%{_libdir}/libwadseeker.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Wadseeker development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	wadseeker-devel = %{EVRD}
Conflicts:	%{name} < 1.2

%description -n %{devname}
Wadseeker development files.

%files -n %{devname}
%doc LICENSE LICENSE-json
%{_libdir}/libwadseeker.so
%{_includedir}/wadseeker/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix perms
find src/wadseeker/lzma/C -name "*.c" -o -name "*.h" | xargs chmod -x


%build
%cmake_qt5
%make


%install
%makeinstall_std -C build

# Generate icons from the one provided
for i in 16x16 22x22 32x32 48x48 64x64 128x128 256x256; do
	convert media/icon.png -scale ${N}x${N} $N.png;
	install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done
rm -f %{buildroot}%{_iconsdir}/%{name}.png

# Add our .desktop file as menu entry instead of the one from the sources
rm -fr %{buildroot}%{_datadir}/applications/org.drdteam.Doomseeker.desktop
desktop-file-install %{SOURCE1} --dir=%{buildroot}%{_datadir}/applications

# We have our macro for docs
rm -f %{buildroot}%{_datadir}/doc/wadseeker/LICENSE-json

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1070 |21cr|dopewars-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define title       Dopewars
%define longtitle   Make a fortune dealing drugs on the streets of New York

Name:		dopewars
Version:	1.6.2
Release:	1
Summary:	Make a fortune dealing drugs on the streets of New York
License:	GPL
Group:		Games/Strategy
URL:		http://dopewars.sourceforge.net/
Source0:	https://sourceforge.net/projects/dopewars/files/dopewars/%{version}/dopewars-%{version}.tar.gz
Source11:	%{name}-16.png
Source12:	%{name}-32.png
Source13:	%{name}-48.png
Patch1:		%{name}-1.5.10-config.patch
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	ncurses-devel
BuildRequires:	SDL2-devel
BuildRequires:	SDL2_mixer-devel
BuildRequires:	esound-devel
BuildRequires:	desktop-file-utils
Buildrequires:	recode
BuildRequires:	pkgconfig(libcurl)

%description
Based on John E. Dell's old Drug Wars game, dopewars is a simulation of an
imaginary drug market.  dopewars is an All-American game which features
buying, selling, and trying to get past the cops!

The first thing you need to do is pay off your debt to the Loan Shark. After
that, your goal is to make as much money as possible (and stay alive)! You
have one month of game time to make your fortune.

dopewars supports multiple players via. TCP/IP. Chatting to and fighting
with other players (computer or human) is supported; check the command line
switches (via dopewars -h) for further information.

%prep
%autosetup -p1

%build
%configure  --bindir=%{_gamesbindir} \
            --datadir=%{_gamesdatadir} \
            --localstatedir=/var/lib/games
%make

%install
%makeinstall_std
install -d %{buildroot}{%{_gamesdatadir},%{_sysconfdir},%{_localstatedir}/lib/games}
mv %{buildroot}%{_gamesdatadir}/{gnome,locale,pixmaps} %{buildroot}%{_datadir}/
install -m 644 doc/example-cfg  %{buildroot}%{_sysconfdir}/%{name}

%{find_lang} %{name}

# icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png 
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png 
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

# menu entry
mkdir -p %{buildroot}/usr/share/applications
mv %{buildroot}%{_datadir}/gnome/apps/Games/%{name}.desktop \
    %{buildroot}%{_datadir}/applications/%{name}.desktop

perl -pi -e 's,%{name}-weed.png,%{name}-weed,g' %{buildroot}%{_datadir}/applications/*

recode ISO-8859-15..UTF-8 %{buildroot}%{_datadir}/applications/%{name}.desktop

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Game;StrategyGame" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# create highscore file
install -d %{buildroot}%{_localstatedir}/lib/games
touch %{buildroot}%{_localstatedir}/lib/games/%{name}.sco


%files -f %{name}.lang
# not very nice, but it makes things work
%doc %{_datadir}/doc/*/
%config(noreplace) %{_sysconfdir}/%{name}
%{_libdir}/%{name}
%attr(2755,root,games) %{_gamesbindir}/dopewars
%attr(0664,root,games) %{_localstatedir}/lib/games/%{name}.sco
%{_mandir}/man6/*
%{_datadir}/pixmaps/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1071 |21cr|dosbox-0.74.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A DOS emulator
Name:		dosbox
Version:	0.74.3
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://dosbox.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/dosbox/%{name}-%{version}.tar.xz
# Source1 comes from http://www.dosbox.com/download.php?main=1 - Translations.
# It is prepared by extracting all the .lng file and renaming them to %%{name}-%%{version}-locale.lng
# Be sure it fits %%{version} before adding/updating files to Source1!
Source1:	%{name}-%{version}-i18n.tar.xz
Source2:	%{name}-%{version}.conf
Source3:	%{name}-%{version}-set-locale_config.sh
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
BuildRequires:	icoutils
BuildRequires:	SDL_sound-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl) >= 1.2.0
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
DOSBox is a DOS-emulator that uses the SDL-library which makes it very easy to
port to different platforms. It has already been ported to many different 
platforms, such as Windows, BeOS, Linux, MacOS X...
It also emulates CPU:286/386 realmode/protected mode, 
Directory FileSystem/XMS/EMS, Tandy/Hercules/CGA/EGA/VGA/VESA graphics, a
SoundBlaster/Gravis Ultra Sound card for excellent sound compatibility with
older games...
You can "re-live" the good old days with the help of DOSBox, as it can run
plenty of the old classics that don't run on your new computer!

%files
%doc AUTHORS ChangeLog NEWS README THANKS docs/README.video
%{_bindir}/%{name}
%{_gamesbindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_datadir}/%{name}/i18n/%{name}-*.lng
%{_datadir}/%{name}/template/%{name}-%{version}.conf
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure --enable-core-inline
%make


%install
%makeinstall_std

# Stuff for locale & keyboard layout switching and i18n support:
# 1. wrapper script
mkdir -p %{buildroot}/%{_gamesbindir}/
mv -f %{buildroot}%{_bindir}/%{name} %{buildroot}/%{_gamesbindir}/
install -Dm 0755 %{SOURCE3} %{buildroot}%{_bindir}/%{name}
# 2. i18n data
mkdir -p %{buildroot}%{_datadir}/%{name}/{i18n,template}
tar -xJf %{SOURCE1} -C %{buildroot}%{_datadir}/%{name}/i18n/
# 3. config file
install -Dm 0664 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/template/

# Remove installed docs (we have %%doc macro for this)
rm -rf %{buildroot}%{_datadir}/doc/dosbox

# Create an appropriate .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=DOSBox
GenericName=A DOS emulator
GenericName[ar]=محاكي DOS
GenericName[az]=DOS emulyatoru
GenericName[bg]=Емулатор на DOS
GenericName[bn]=একটি ডস এমুলেটর
GenericName[br]=Ur Kendarvaner DOS
GenericName[bs]=Simulator DOSa
GenericName[ca]=Emulador de DOS
GenericName[cy]=Efelychwr DOS
GenericName[da]=En DOS-emulator
GenericName[de]=Ein DOS-Emulator
GenericName[el]=Εξομοιωτής DOS
GenericName[es]=Un emulador de DOS
GenericName[et]=DOS-i emulaator
GenericName[eu]=DOS emulatzaile bat
GenericName[fa]=یک شبیه‌ساز داس
GenericName[fi]=DOS-emulaattori
GenericName[fr]=Un émulateur DOS
GenericName[gl]=Un emulador do DOS
GenericName[he]=הדמיית DOS
GenericName[hi]=एक डॉस एम्यूलेटर
GenericName[hr]=DOS emulator
GenericName[hu]=DOS-emulátor
GenericName[hy]=DOS էմուլատոր
GenericName[id]=Emulator DOS
GenericName[is]=DOS Hermir
GenericName[it]=Emulatore DOS
GenericName[ja]=DOS エミュレータ
GenericName[ky]=DOS эмулятору
GenericName[mk]=DOS емулатор
GenericName[mt]=Emulatur DOS
GenericName[nb]=DOS-emulator
GenericName[nl]=Een DOS-emulator
GenericName[nn]=DOS-emulator
GenericName[pl]=Emulator DOS
GenericName[pt]=Um emulador DOS
GenericName[pt_BR]=Emulador de DOS
GenericName[ro]=Un emulator de DOS
GenericName[ru]=Эмулятор DOS
GenericName[sc]=Un'emuladori de DOS
GenericName[sk]=DOS emulátor
GenericName[sl]=Emulator za DOS
GenericName[sq]=Një imitues DOS
GenericName[sv]=DOS-emulator
GenericName[tg]=Намунасизи DOS
GenericName[tl]=Isang manggagaya ng DOS
GenericName[tr]=Bir DOS öykünücü
GenericName[uk]=Емулятор DOS
GenericName[uz]=DOS emulyatori
GenericName[uz@cyrillic]=DOS emulyatori
GenericName[vi]=Trình mô phỏng DOS
GenericName[wa]=Èn emulateu DOS
GenericName[zh_CN]=DOS 模拟器
GenericName[zh_TW]=DOS 模擬器
Comment=DOS emulator to run old DOS programs
Comment[ru]=Эмулятор DOS для запуска старых программ DOS
Exec=%{name} %%U
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;Emulator;Game;
EOF

# Install icons: ours...
install -m 0644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m 0644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m 0644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
# ...and a bigger one, produced from the original .ico file
icotool -x -i 1 -o %{name}.png src/%{name}.ico
install -m 0644 %{name}.png -D %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1072 |21cr|dosbox-x-0.84.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A DOS emulator
Name:		dosbox-x
Version:	0.84.3
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://dosbox-x.com/
Source0:	https://github.com/joncampbell123/dosbox-x/archive/%{name}-v%{version}.tar.gz
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
# Patch for i586
Patch0:		dosbox-x-0.81-for-i586.patch
BuildRequires:	ffmpeg-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)

%description
As a fork of DOSBox, it retains compatibility with the wide base of DOS games
and DOS gaming DOSBox was designed for. DOSBox-X however goes further, with a
focus on accurate emulation of the hardware and many more ways to tweak and
configure the DOS virtual machine! We believe that a better way to emulate the
legacy PC platform is to give the user all the options they need to emulate
everything from original IBM PC hardware with 64KB of RAM all the way up to
late 90's hardware, whatever it takes to get that game or software package
to run.
The goal is to eventually make DOSBox-X a complete emulation package that
covers all pre-2000 DOS and Windows 9x based hardware scenarios, including
peripherals, motherboards, CPUs, and all manner of hardware that was made
for PC hardware of that time.
------------------------------------------------------------
This release doesn't auto-create a dosbox.conf file, nor it uses the one found
in your home directory. You will have to create dosbox.conf in your current
directory, by tiping at the command prompt: "CONFIG.COM -all -wc dosbox.conf".
When you run dosbox-x from that directory it should automatically read that
file.

%files
%doc AUTHORS CHANGELOG NEWS README.* THANKS
%doc docs/*
%{_bindir}/%{name}
%{_datadir}/applications/com.dosbox_x.DOSBox-X.desktop
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/dosbox-x.1*
%{_datadir}/metainfo/com.dosbox_x.DOSBox-X.metainfo.xml
%{_datadir}/bash-completion/completions/dosbox-x

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-v%{version}
%patch0 -p0

%build
./autogen.sh
./configure \
	--enable-debug \
	--enable-sdl2 \
	--prefix=%{_prefix}
%make

%install
%makeinstall_std

# Drop unwanted stuff
rm -rf %{buildroot}%{_datadir}/doc/dosbox-x
rm -f %{buildroot}%{_datadir}/%{name}/CHANGELOG
rm -f %{buildroot}%{_datadir}/%{name}/*.BMP

# Provide some icons
install -D -m 0644 %{SOURCE11} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m 0644 %{SOURCE12} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m 0644 %{SOURCE13} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1073 |21cr|dosemu-1.4.0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dosver 1.1

#disable for plugins
%define _disable_ld_no_undefined 1

Summary:	DOSEMU stands for DOS Emulation, and enables Linux to run DOS programs
Name:		dosemu
Version:	1.4.0.8
Release:	5
License:	GPLv2+
Group:		Emulators
Url:		http://dosemu.sourceforge.net/
#git archive --format=tar --remote=git://dosemu.git.sourceforge.net/gitroot/dosemu/dosemu dosemu-1.4.0.7 | xz >dosemu-1.4.0.7.tar.xz
Source0:	%{name}-%{version}.tgz
Source1:	%{name}-freedos-%{dosver}-bin.tar.bz2
Source11:	xdosemu-16x16.png
Source12:	xdosemu-32x32.png
Source13:	xdosemu-48x48.png
Patch0:		dosemu-1.4.0.8-parallel-build.patch
BuildRequires:	bdftopcf
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	git
BuildRequires:	mkfontdir
BuildRequires:	gpm-devel
BuildRequires:	svgalib-devel
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	dosimage
Exclusivearch:	%{ix86} x86_64

%description
DOSEMU is a user-level program which uses certain special features
of the Linux kernel and the 80386 processor to run MS-DOS/FreeDOS/
DR-DOS, DOS programs, and many DPMI applications in what we in the
biz call a `DOS box'.

%files
%doc doc/*
%{_bindir}/dosemu.bin
%{_bindir}/dosemu
%{_bindir}/mkfatimage
%{_bindir}/mkfatimage16
%{_bindir}/midid
%{_bindir}/dosdebug
%{_libdir}/dosemu/libplugin*.so
%{_mandir}/man1/mkfatimage16.1*
%{_mandir}/man1/dosdebug.1*
%{_mandir}/man1/dosemu.1*
%{_mandir}/man1/dosemu.bin.1*
%{_mandir}/man1/midid.1.*
%lang(ru) %{_mandir}/ru/man1/mkfatimage16.1*
%lang(ru) %{_mandir}/ru/man1/dosdebug.1*
%lang(ru) %{_mandir}/ru/man1/dosemu.1*
%lang(ru) %{_mandir}/ru/man1/dosemu.bin.1*
%{_datadir}/dosemu/commands
%{_datadir}/dosemu/keymap
%{_datadir}/dosemu/Xfonts
%config(noreplace) %{_sysconfdir}/dosemu.conf
%config(noreplace) %{_sysconfdir}/drives/c
%config(noreplace) %{_sysconfdir}/drives/d
%config(noreplace) %{_sysconfdir}/dosemu.users
%config(noreplace) %{_sysconfdir}/global.conf

#----------------------------------------------------------------------------

%package -n xdosemu
Summary:	A DOS emulator for the X Window System
Group:		Emulators
Requires:	%{name} = %{EVRD}
Requires:	dosimage

%description -n xdosemu
Xdosemu is a version of the dosemu DOS emulator that runs with the X
Window System.  Xdosemu provides VGA graphics and mouse support.

Install xdosemu if you need to run DOS programs on your system, and you'd
like to do so with the convenience of graphics support and mouse
capabilities.

%files -n xdosemu
%{_bindir}/xdosemu
%{_mandir}/man1/xdosemu.1*
%lang(ru) %{_mandir}/ru/man1/xdosemu.1*
%{_iconsdir}/hicolor/16x16/apps/x%{name}.png
%{_iconsdir}/hicolor/32x32/apps/x%{name}.png
%{_iconsdir}/hicolor/48x48/apps/x%{name}.png
%{_datadir}/applications/xdosemu.desktop

#----------------------------------------------------------------------------

%package freedos
Summary:	A FreeDOS hdimage for dosemu, a DOS emulator, to use
Group:		Emulators
Provides:	dosimage

%description freedos
Generally, the dosemu DOS emulator requires either that your system
have some version of DOS available or that your system's partitions
were formatted and installed with DOS. If your system does not meet
either of the previous requirements, you can instead use the dosemu-
freedos package, which contains required files which will be
installed in '/usr/share/dosemu/freedos-1.0'

Install dosemu-freedos if you are installing the dosemu package
and you don't have a version of DOS available on your system,
and your system's partitions were not formatted and installed
with DOS.

%files freedos
%{_datadir}/dosemu/freedos-%{dosver}
%{_datadir}/dosemu/drive_z

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

bunzip2 -c %{SOURCE1} | gzip -c > freedos.tgz

%build
%configure \
	--with-fdtarball=freedos.tgz \
	--with-svgalib \
	--with-x
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m644 %{SOURCE11} -D \
	%{buildroot}%{_iconsdir}/hicolor/16x16/apps/x%{name}.png
install -m644 %{SOURCE12} -D \
	%{buildroot}%{_iconsdir}/hicolor/32x32/apps/x%{name}.png
install -m644 %{SOURCE13} -D \
	%{buildroot}%{_iconsdir}/hicolor/48x48/apps/x%{name}.png

#xdg menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/xdosemu.desktop <<EOF
[Desktop Entry]
Name=Xdosemu
Comment=DOS emulator running under X
Exec=%{_bindir}/x%{name}
Icon=x%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Emulators;Emulator;
EOF

rm -rf %{buildroot}%{_docdir}

# move freedos to another place to fix update issue (#34837)
mv %{buildroot}%{_datadir}/%{name}/freedos \
 %{buildroot}%{_datadir}/%{name}/freedos-%{dosver}

chmod 0755 %{buildroot}%{_libdir}/dosemu/libplugin*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1074 |21cr|doskast-0-0.git759b7d.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 759b7dc35fe9cb2f9dc7f5c6cefbadd8b15e72bc
%define commit_short %(echo %{commit} | head -c6)

Summary:	Cast screen in a computer class
Name:		doskast
Version:	0
Release:	0.git%{commit_short}.2
License:	GPL-3.0
Group:		Graphical desktop/Other
Url:		https://os.mos.ru/git/MOS/doskast
Source0:	https://os.mos.ru/git/MOS/doskast/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch
BuildRequires: make
BuildRequires: desktop-file-utils

%description
Cast screen

#--------------------------------------------------------------

%package board
Summary: Doskast for server (board)
Group: Graphical desktop/Other
Requires: %{_bindir}/inotifywait
Requires: xpra
Requires: apache-base
Requires(pre): apache-base
Requires(pre): group(apache)

%description board
%summary

%files board
%doc README.md
/var/www/cgi-bin/doskast-trigger-connect.cgi
%{_bindir}/doskast-server-watcher
%{_sysconfdir}/xdg/autostart/doskast-server-watcher.desktop
%attr(0775,root,apache) /var/spool/doskast

#--------------------------------------------------------------

%package student
Summary: Doskast for client (student)
Group: Graphical desktop/Other
Requires: curl
Requires: xdpyinfo
Requires: xpra
Requires: zenity
Requires: %{_bindir}/pkexec

%description student
%summary

%files student
%doc README.md
%{_bindir}/doskast-student-config
%{_bindir}/doskast-student-connect
%{_bindir}/doskast-xpra-shadow
%{_sbindir}/doskast-student-config
%{_unitdir}/doskast-xpra-shadow.service
%{_unitdir}/doskast-xpra-shadow.socket
%{_datadir}/applications/doskast-student-config.desktop
%{_datadir}/applications/doskast-student-connect.desktop
%{_datadir}/polkit-1/actions/ru.mos.doskast-student-config.policy
%{_sysconfdir}/xdg/autostart/doskast-xpra-shadow.desktop
%dir %{_sysconfdir}/systemd/system/doskast-xpra-shadow.service.d
%config(noreplace) %{_sysconfdir}/systemd/system/doskast-xpra-shadow.service.d/xpra-shadow-firewall.conf
%config(noreplace) %{_sysconfdir}/doskastrc

%post student
%systemd_post doskast-xpra-shadow.socket

%preun student
%systemd_preun doskast-xpra-shadow.service
%systemd_preun doskast-xpra-shadow.socket

#--------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%install
desktop-file-validate server-watcher/*.desktop
desktop-file-validate xpra-shadow/*.desktop
%makeinstall_std

mkdir -p %{buildroot}/var/spool/doskast
mkdir -p %{buildroot}%{_sysconfdir}
touch %{buildroot}%{_sysconfdir}/doskastrc
chmod 0644 %{buildroot}%{_sysconfdir}/doskastrc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1075 |21cr|dot2tex-2.11.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphviz to LaTeX converter
Name:		dot2tex
Version:	2.11.3
Release:	1
License:	MIT
Group:		Graphics
Url:		http://www.fauskes.net/code/dot2tex/
Source0:	https://pypi.io/packages/source/d/dot2tex/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
Requires:	emacs-auctex
Requires:	graphviz
Recommends:	texlive
BuildArch:	noarch

%description
The purpose of dot2tex is to give graphs generated by Graphviz a more
LaTeX friendly look and feel. This is accomplished by converting dot
output from Graphviz to a series of PSTricks or PGF/TikZ
commands. This approach allows:

* Typesetting labels with LaTeX, allowing mathematical notation.
* Using native PSTricks and PGF/TikZ commands for drawing arrows (optional).
* Using back-end specific styles to customize the output

Dot2tex can preprocess graphs using the preview package. Information
about label sizes will be extracted and used to get correctly sized
nodes and edge labels.

%files
%doc AUTHORS CHANGES LICENSE readme.md docs/* examples/
%{_bindir}/%{name}
%{python3_sitelib}/%{name}-*.egg-info
%{python3_sitelib}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q

# Remove bundled egg-info
rm -rf %{name}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1076 |21cr|dotclear-2.10.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		dotclear
Version:	2.10.2
Release:	3
Summary:	Web-based blog

License:	GPLv2
Group:		System/Servers
URL:		http://www.dotclear.net
Source0:	http://download.dotclear.org/latest/%{name}-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Patch0:		php53.patch
Requires:	php-xml 
Requires:	php-iconv
Requires:	php-mbstring
BuildArch:	noarch

%description
dotclear is a multilingual web application developed in php. 
It provides personal blogs and trackbacks to react,
but also can be used in a multi-user mode with several right levels.

%prep
%setup -q -n %{name}
%patch0 -p1

%build

%install
# install files
install -d -m 755 %{buildroot}%{_var}/www/%{name}
cp -aRf * %{buildroot}%{_var}/www/%{name}
for i in CHANGELOG CREDITS LICENSE README; do
	rm -f %{buildroot}%{_var}/www/%{name}/$i
done

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
Alias /dotclear /var/www/dotclear
<Directory /var/www/dotclear>
    Require all granted
</Directory>

<Directory /var/www/dotclear/admin/install>
    Require local granted
    ErrorDocument 403 "Access denied per %{_webappconfdir}/%{name}.conf"
</Directory>
EOF

# remove .htaccess files
find %{buildroot}%{_var}/www/%{name} -name .htaccess -exec rm -f {} \;

# fix exectuable bit 
find %{buildroot}%{_var}/www/%{name} -type f -exec chmod 644 {} \;
chmod 755 %{buildroot}%{_var}/www/%{name}/inc/dbschema/upgrade-cli.php

cat > README.urpmi <<EOF
Dotclear is a database driven blogging program designed to make it exceedingly
easy to publish an online blog, sometimes also called a weblog or journal.

Once this package is installed, there are a few configuration items which need
to be performed before the blog is usable.  First, you need to install
Mysql or PostgreSQL database and corresponding php modules:

# urpmi mysql php-mysql

or 

# urpmi postgresql php-pgsql

Then, you need to establish a username and password to connect to your
MySQL database as, and make both MySQL/Postgres and Dotclear aware of this.
Let's start by creating the database and the username / password
inside MySQL first:

  # mysql
  mysql> create database dotclear;
  Query OK, 1 row affected (0.00 sec)

  mysql> grant all privileges on dotclear.* to dotclear identified by 'dotclear';
  Query OK, 0 rows affected (0.00 sec)

  mysql> flush privileges;
  Query OK, 0 rows affected (0.00 sec)

  mysql> exit
  Bye
  #

Under certain curcumstances, you may need to run variations of the "grant"
command:
mysql> grant all privileges on dotclear.* to dotclear@localhost identified by 'dotclear';
   OR
mysql> grant all privileges on dotclear.* to dotclear@'%' identified by 'dotclear';

This has created an empty database called 'dotclear', created a user named
'dotclear' with a password of 'dotclear', and given the 'dotclear' user total
permission over the 'dotclear' database.  Obviously, you'll want to select a
different password, and you may want to choose different database and user
names depending on your installation.  The specific values you choose are
not constrained, they simply need to be consistent between the database and the
config file.

Once that's done and the database server and web server have been started, 
 in your favourite web browser, enter following URL :
http://hostname/dotclear/admin/install/wizard.php  and 
follow the instructions given to you on the pages you see to set up the 
database tables and begin publishing your blog.
EOF

%files
%doc README.urpmi CHANGELOG CREDITS LICENSE
%config(noreplace) %{_webappconfdir}/%{name}.conf
%dir %{_var}/www/%{name}
%{_var}/www/%{name}/*.php
%{_var}/www/%{name}/*.md
#%{_var}/www/%{name}/inc/
%{_var}/www/%{name}/admin
#%{_var}/www/%{name}/cache
%{_var}/www/%{name}/db
%{_var}/www/%{name}/locales
%{_var}/www/%{name}/plugins
%{_var}/www/%{name}/public
%{_var}/www/%{name}/themes
%attr(0775,root,apache) %{_var}/www/%{name}/cache
%attr(0775,root,apache) %{_var}/www/%{name}/inc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1077 |21cr|doublecmd-1.1.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# norootforbuild

%define debug_package %{nil}

Summary:	Twin-panel (commander-style) file manager (GTK2 and QT5)
Name:		doublecmd
Version:	1.1.21
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://doublecmd.sourceforge.io
Source0:	http://downloads.sourceforge.net/project/doublecmd/Double%20Commander%20Source/%{name}-%{version}-src.tar.gz
Source1:	%{name}-qt5.desktop
Source2:	%{name}-qt6.desktop
Source10:	%{name}.rpmlintrc
BuildRequires:	desktop-file-utils
BuildRequires:	fpc
BuildRequires:	fpc-src
BuildRequires:	lazarus
BuildRequires:	util-linux
BuildRequires:	bzip2-devel
BuildRequires:	qt5pas-devel
BuildRequires:	qt5-qtbase-devel
BuildRequires:	qt6pas-devel
BuildRequires:	pkgconfig(Qt6Core)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(xtrans)
Requires:	hicolor-icon-theme
Obsoletes:	%{name} < 1.0.0
ExclusiveArch:	%{ix86} x86_64

%description
Double Commander is a cross platform open source file manager with two panels
side by side. It is inspired by Total Commander and features some new ideas.

#----------------------------------------------------------------------------

%package -n %{name}-gtk
Summary:	Twin-panel (commander-style) file manager (GTK2)
Group:		File tools
Requires:	%{name}-common = %{EVRD}
Provides:	%{name} = %{EVRD}

%description -n %{name}-gtk
Double Commander GTK version.

%files -n %{name}-gtk
%doc doc/*
%{_bindir}/%{name}
%{_libdir}/%{name}/%{name}
%{_libdir}/%{name}/%{name}.zdli
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%package -n %{name}-qt5
Summary:	Twin-panel (commander-style) file manager (Qt5)
Group:		File tools
Requires:	%{name}-common = %{EVRD}
Provides:	%{name} = %{EVRD}
Conflicts:	%{name}-qt < %{EVRD}
Obsoletes:	%{name}-qt < %{EVRD}

%description -n %{name}-qt5
Double Commander QT version.

%files -n %{name}-qt5
%doc doc/*
%{_bindir}/%{name}-qt5
%{_libdir}/%{name}/%{name}-qt5
%{_libdir}/%{name}/%{name}-qt5.zdli
%{_datadir}/applications/%{name}-qt5.desktop

#----------------------------------------------------------------------------

%package -n %{name}-qt6
Summary:	Twin-panel (commander-style) file manager (qt6)
Group:		File tools
Requires:	%{name}-common = %{EVRD}
Provides:	%{name} = %{EVRD}

%description -n %{name}-qt6
Double Commander QT version.

%files -n %{name}-qt6
%doc doc/*
%{_bindir}/%{name}-qt6
%{_libdir}/%{name}/%{name}-qt6
%{_libdir}/%{name}/%{name}-qt6.zdli
%{_datadir}/applications/%{name}-qt6.desktop

#----------------------------------------------------------------------------

%package -n %{name}-common
Summary:	Common files for Double Commander
Group:		File tools

%description -n %{name}-common
Common files for Double Commander

%files -n %{name}-common
%exclude %{_libdir}/%{name}/%{name}
%exclude %{_libdir}/%{name}/%{name}-qt5
%exclude %{_libdir}/%{name}/%{name}-qt6
%exclude %{_libdir}/%{name}/%{name}.zdli
%exclude %{_libdir}/%{name}/%{name}-qt5.zdli
%exclude %{_libdir}/%{name}/%{name}-qt6.zdli
%exclude %{_bindir}/%{name}
%exclude %{_bindir}/%{name}-qt5
%exclude %{_bindir}/%{name}-qt6
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_datadir}/pixmaps/%{name}.*
%{_datadir}/icons/hicolor/scalable/apps/doublecmd.svg
%{_datadir}/polkit-1/actions/org.doublecmd.root.policy

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# --------- qt5 ------------------
lcl=qt5 ./build.sh beta
mv ./%{name} ./%{name}-qt5 && mv ./%{name}.zdli ./%{name}-qt5.zdli
./clean.sh

# --------- qt6 ------------------
lcl=qt6 ./build.sh beta
mv ./%{name} ./%{name}-qt6 && mv ./%{name}.zdli ./%{name}-qt6.zdli
./clean.sh
# --------- qt6 ------------------
lcl=gtk2 ./build.sh beta

%install
install/linux/install.sh --install-prefix=%{buildroot}
install ./%{name}-qt5 %{buildroot}%{_libdir}/%{name}/%{name}-qt5
install ./%{name}-qt6 %{buildroot}%{_libdir}/%{name}/%{name}-qt6
install -m 0644 ./%{name}-qt5.zdli %{buildroot}%{_libdir}/%{name}/%{name}-qt5.zdli
install -m 0644 ./%{name}-qt6.zdli %{buildroot}%{_libdir}/%{name}/%{name}-qt6.zdli
ln -s ../%{_lib}/%{name}/%{name}-qt5 %{buildroot}%{_bindir}/%{name}-qt5
ln -s ../%{_lib}/%{name}/%{name}-qt6 %{buildroot}%{_bindir}/%{name}-qt6
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}-qt5.desktop
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}-qt6.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1078 |21cr|double-conversion-3.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
%define staticname %mklibname %{name} -d -s
%define gitdate 20160703
%bcond_without static_libs # don't build static libraries

Summary:	Library providing binary-decimal and decimal-binary routines for IEEE doubles
Name:		double-conversion
Version:	3.1.4
Release:	1
License:	BSD
Group:          System/Libraries
URL:            https://github.com/google/double-conversion/
# git archive --format=tar --prefix double-conversion-2.0.1-$(date +%Y%m%d)/ HEAD | xz -vf > double-conversion-2.0.1-$(date +%Y%m%d).tar.xz
#Source0:	https://github.com/google/double-conversion/archive/%{name}-%{version}-%{gitdate}.tar.gz
Source0:	https://github.com/google/double-conversion/archive/%{name}-%{version}.tar.gz
BuildRequires:  cmake

%description
Provides binary-decimal and decimal-binary routines for IEEE doubles.
The library consists of efficient conversion routines that have been
extracted from the V8 JavaScript engine. The code has been re-factored
and improved so that it can be used more easily in other projects.

%package -n %{libname}
Summary:	Library providing binary-decimal and decimal-binary routines for IEEE doubles
Group:		System/Libraries

%description -n %{libname}
Provides binary-decimal and decimal-binary routines for IEEE doubles.
The library consists of efficient conversion routines that have been
extracted from the V8 JavaScript engine. The code has been re-factored
and improved so that it can be used more easily in other projects.

%package -n %{develname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
Contains header files for developing applications that 
use the %{name} library.

There is extensive documentation in src/double-conversion.h.
Other examples can be found in test/cctest/test-conversions.cc.

%package -n %{staticname}
Summary:	Static library for %{name}
Group:		Development/Other
Requires:	%{develname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{staticname}
Static %{name} library.

%prep
%setup -qn %{name}-%{version}

# Fix up install locations
# https://github.com/floitsch/double-conversion/issues/8
sed -i -e 's,lib/,%{_lib}/,g;s,"lib","%{_lib}",g' CMakeLists.txt

%build
mkdir -p build-shared
pushd build-shared
  %cmake -DBUILD_TESTING=ON ../..
  %make
popd

%if %{with static_libs}
mkdir  -p build-static
pushd build-static
  CXXFLAGS="%{optflags} -fPIC" %cmake -DBUILD_SHARED_LIBS=NO ../..
  %make
popd
%endif

%install
%if %{with static_libs}
pushd build-static
  %makeinstall_std -C build
popd
%endif

pushd build-shared
  %makeinstall_std -C build
popd

%check
pushd build-shared
  ctest -V
popd

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{develname}
%doc LICENSE README.md AUTHORS Changelog
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}
%{_includedir}/%{name}

%if %{with static_libs}
%files -n %{staticname}
%{_libdir}/lib%{name}.a
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1079 |21cr|double-cross-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   dcross

Name:           double-cross
Version:        2.0
Release:        1
Summary:        Unconventional falling block game
License:        GPLv3+
Group:          Games/Arcade
Url:            https://code.google.com/p/double-cross/
Source0:        https://double-cross.googlecode.com/files/%{oname}_%{version}.zip
Source1:        %{name}.sh
Source2:        %{name}-music.tar
Source3:        %{name}-icons.tar
Source4:        %{name}.desktop
Source5:        LICENSE.TXT
BuildRequires:  dos2unix
BuildRequires:  unzip
BuildRequires:  pythonegg(setuptools)
BuildRequires:  desktop-file-utils
Requires:       pygame
BuildArch:      noarch


%description
Unlike your common unilateral falling block games, 'Double Cross'
implements a bidirectional paradigm expanding the genre in both
dimension and difficulty.

Blocks fall from the top and fly in from the side settling in a joined
"play area". Deletions occur when rows of ten blocks are completed.
A horizontal row of 10 will cause the blocks to fall down, and
a vertical row of 10 will cause the blocks to "fall" to the right.
If a vertical row is completed during a vertical drop or a horizontal
row is completed during a horizontal drop the corresponding deletion
will not occur until the next turn. This can and will lead to
non-intuitive results. Focus on the vertical alone and you will die
from horizontal negligence and vice versa.

%files
%doc LICENSE.TXT
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/
%{_gamesdatadir}/%{name}
#----------------------------------------------------------------------

%prep
%setup -qn %{oname}_%{version} -a 2 -a 3 

# Convert to unix line end
find -name "*.py" -print0 -or -name "*.pyw" -print0 | xargs -0 dos2unix

# Remove not usable mp3 music, because not works with pygame
rm -f sound/music/*.mp3

# Copy ogg music, converted with soundKonverter, and replace mp3 with ogg
cp -a music/*.ogg sound/music
sed -i 's|mp3|ogg|' data/setup.py data/menu.py
cp -p %{SOURCE5} .

%build

%install
# install wrapper
install -Dm 0755 %{SOURCE1} %{buildroot}%{_gamesbindir}/%{name}

# install directories
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,fonts,graphics,sound}
for d in data fonts graphics sound ; do
    cp -a $d %{buildroot}%{_gamesdatadir}/%{name}
done

# install files
install -Dm 0664 %{name}.pyw %{buildroot}%{_gamesdatadir}/%{name}

# install icons
for i in 32 48 64 72 96 ; do
    install -Dm 0644 icons/%{name}_${i}x${i}.png \
            %{buildroot}/%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done

# install Desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
  %{SOURCE4} 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1080 |21cr|dparser-1.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary: Simple but powerful tool for parsing

Name: dparser
Version: 1.31
Release: 1
Source0: https://github.com/jplevyak/dparser/releases/download/%{version}/dparser-%{version}-src.tar.gz
Source2: %{name}.rpmlintrc
License: BSD
Group: Development/Python
Url: http://dparser.sourceforge.net/
BuildRequires:  python3-devel

%description
DParser is an simple but powerful tool for parsing. You can specify the form of
the text to be parsed using a combination of regular expressions and grammar
productions.  Because of the parsing technique (technically a scannerless GLR
parser based on the Tomita algorithm) there are no restrictions.   The grammar
can be ambiguous, right or left recursive, have any number of null productions,
and because there is no separate tokenizer, can include whitespace in terminals
and have terminals which are prefixes of other terminals.   DParser handles not
just well formed computer languages and data files, but just about any wacky
situation that occurs in the real world.


%package -n python3-%{name}
Summary: DParser python binding
Requires: python
Group: Development/Python
%rename python-%{name}

%description  -n python3-%{name}
DParser is a simple but powerful tool for parsing, written by J. Plevyak.
DParser for Python gives Python programmers a seamless interface to DParser.

The features that set this Python parser apart from other Python parsers are:
 + it can deal with any grammar (GLR)
 + it is fast (based in C)
 + it does not require a compiler to operate.

DParser for Python also has many easy-to-use features found in other Python
parsers:
 + it does not require explicit definitions of tokens
 + it does not require a separate, non-Python grammar file
 + it uses function documentation strings to specify grammar rules
 + it does not output parser code that the user must compile or run.

%prep
%setup -qn %{name}

%build
make

%install
PREFIX=%{buildroot}%{_prefix} make install
pushd python
python3 setup.py install --skip-build --root=%{buildroot}
popd
mkdir -p %{buildroot}%{_mandir}/man1
mv  %{buildroot}%{_prefix}/man/man1/* %{buildroot}%{_mandir}/man1/

rm -f %{buildroot}/usr/lib/*.a

%check
make test

%clean

%files
%defattr(-,root,root,0755)
%{_bindir}/*
%{_includedir}/*
%{_mandir}/man1/*
%defattr(644,root,root,755)
%doc CHANGES COPYRIGHT *.html tests verilog

%files  -n python3-%{name}
%defattr(-,root,root,0755)
%{py3_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1081 |21cr|dparser-1.31-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%bcond_with tests

Summary:	Simple but powerful tool for parsing
Name:		dparser
Version:	1.31
Release:	2
License:	BSD
Group:		Development/Python
Url:		http://dparser.sourceforge.net/
Source0:	https://github.com/jplevyak/dparser/releases/download/%{version}/dparser-%{version}-src.tar.gz
Source2:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(python3)
%if %{with tests}
BuildRequires:	tsch
%endif

%description
DParser is an simple but powerful tool for parsing. You can specify the form of
the text to be parsed using a combination of regular expressions and grammar
productions.  Because of the parsing technique (technically a scannerless GLR
parser based on the Tomita algorithm) there are no restrictions.   The grammar
can be ambiguous, right or left recursive, have any number of null productions,
and because there is no separate tokenizer, can include whitespace in terminals
and have terminals which are prefixes of other terminals.   DParser handles not
just well formed computer languages and data files, but just about any wacky
situation that occurs in the real world.

%files
%{_bindir}/*
%{_includedir}/*
%{_mandir}/man1/*
%defattr(644,root,root,755)
%doc CHANGES COPYRIGHT *.html tests verilog

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	DParser python binding
Group:		Development/Python

%description  -n python3-%{name}
DParser is a simple but powerful tool for parsing, written by J. Plevyak.
DParser for Python gives Python programmers a seamless interface to DParser.

The features that set this Python parser apart from other Python parsers are:
 + it can deal with any grammar (GLR)
 + it is fast (based in C)
 + it does not require a compiler to operate.

DParser for Python also has many easy-to-use features found in other Python
parsers:
 + it does not require explicit definitions of tokens
 + it does not require a separate, non-Python grammar file
 + it uses function documentation strings to specify grammar rules
 + it does not output parser code that the user must compile or run.

%files  -n python3-%{name}
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
make

%install
PREFIX=%{buildroot}%{_prefix} make install
pushd python
python3 setup.py install --skip-build --root=%{buildroot}
popd
mkdir -p %{buildroot}%{_mandir}/man1
mv  %{buildroot}%{_prefix}/man/man1/* %{buildroot}%{_mandir}/man1/

rm -f %{buildroot}/usr/lib/*.a

%if %{with tests}
%check
make test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1082 |21cr|dpatch-2.0.35-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Debian dpatch tool
Name:		dpatch
Version:	2.0.35
Release:	5
License:	GPLv2+
Group:		Development/Other
Url:		https://alioth.debian.org/projects/dpatch/
Source0:	ftp://ftp.debian.org:21/debian/pool/main/d/dpatch/%{name}_%{version}.tar.gz
Patch1:		dpatch-nawk.patch
BuildArch:	noarch
Requires:	dpkg

%description
Debian dpatch tool.

%files
%doc %{_datadir}/doc/%{name}/examples/*
%{_bindir}/*
%{_datadir}/dpatch
%{_mandir}/*/*
%{_sysconfdir}/bash_completion.d/dpatch_edit_patch

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch1 -p1 -b .orig

%build
make

%install
install -d %{buildroot}{%{_mandir}/{man1,man7},%{_bindir}}
make install DESTDIR=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1083 |21cr|dpgconv-10.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package		%{nil}

Summary:	Transcode video files to DPG (nDs mPeG)
Name:		dpgconv
Version:	10.1
Release:	3
License:	GPLv2+
Group:		Video
# Original URL is dead
#Url: http://theli.is-a-geek.org/blog/static/dpgconv
Url:		http://pypi.python.org/pypi/dpgconv
Source0:	%{name}-%{version}.tar.gz
Source1:	dpgconv-readme
Source2:	dpgshow
Patch0:		dpgconv-10.1-fix-python3-compat.patch
BuildArch:	noarch
Requires:	mplayer
Requires:	mencoder
Requires:	mpeg-stat
Requires:	python3-pillow

%description
A script to transcode video files to DPG format suitable for Nintendo DS (tm).

%files
%{_docdir}/%{name}/Get-Started
%{_bindir}/%{name}
%{_docdir}/%{name}/dpgshow
%{py3_puresitedir}/%{name}-*.egg-info

#-----------------------------------------------------------------------------


%prep
%setup -q
%patch0 -p1


%build
%py3_build


%install
%py3_install

# Install also our stuff
install -D -m 644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/Get-Started
install -m 644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1084 |21cr|dpic-2021.11.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_enable_debug_packages %{nil}
%global	debug_package %{nil}

Name:		dpic
Version:	2021.11.01
Release:	1
Summary:	Pic language processor
License:	BSD
Group:		Publishing
Url:		https://www.ece.uwaterloo.ca/~aplevich/dpic/
Source0:	https://ece.uwaterloo.ca/~aplevich/dpic/%{name}-%{version}.tar.gz

%description
Pic language processor for LaTeX documents or web sites.

%files
%doc README CHANGES dpic-doc.pdf
%{_bindir}/%{name}
%{_datadir}/%{name}/doc/dpictools.pic
%{_mandir}/man1/%{name}.1*


#--------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
%configure
%make


%install
%makeinstall_std

# Somehow %%{_prefix} gets lost...
install -d %{buildroot}%{_datadir}/%{name}/doc
install -Dm 644 doc/dpic.1 %{buildroot}%{_mandir}/man1/dpic.1
mv %{buildroot}/bin %{buildroot}%{_prefix}/
mv %{buildroot}/share/doc/%{name}/dpictools.pic %{buildroot}%{_datadir}/%{name}/doc/
rm -rf %{buildroot}/share

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1085 |21cr|dpkg-1.21.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(controllib.pl\\)|perl\\(file\\)|perl\\(extra\\)|perl\\(in\\)
%define devname %mklibname dpkg -s -d

Summary:	Package maintenance system for Debian Linux
Name:		dpkg
Version:	1.21.9
Release:	1
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		https://tracker.debian.org/pkg/dpkg
Source0:	http://ftp.debian.org/debian/pool/main/d/dpkg/%{name}_%{version}.tar.xz
Source2:	debsign.sh
Source3:	debsign.1
BuildRequires:	po4a
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	perl-devel
BuildRequires:	perl(Time::Piece)
Requires:       perl-Dpkg = %{EVRD}
# not splitted into subpackage, compat with Fedora/RH
Provides:	dpkg-dev = %{EVRD}

%description
This package contains the programs dpkg which used to handle the installation
and removal of packages on a Debian system.
In order to unpack and build Debian packages you may also need
to install the debhelper package.

%files -f %{name}.lang
%license COPYING
%doc README
%{_datadir}/doc/dpkg/*
%{_bindir}/d*
%{_sbindir}/*
%{_libexecdir}/%{name}
%dir %{_localstatedir}/lib/%{name}
%{_datadir}/%{name}
%{_datadir}/zsh/vendor-completions/_dpkg-*
%{_localstatedir}/lib/%{name}/*
%dir %{_sysconfdir}/%{name}
%{_mandir}/man1/d*
%{_mandir}/man5/*
%{_mandir}/man7/*
%{_mandir}/man8/*
%lang(de) %{_mandir}/de/man?/*
%lang(ja) %{_mandir}/ja/man?/*
%lang(pl) %{_mandir}/pl/man?/*
%lang(sv) %{_mandir}/sv/man?/*
%lang(fr) %{_mandir}/fr/man?/*
%lang(hu) %{_mandir}/hu/man?/*
%lang(it) %{_mandir}/it/man?/*
%lang(es) %{_mandir}/es/man?/*
%lang(nl) %{_mandir}/nl/man?/*
%lang(pt) %{_mandir}/pt/man?/*

#---------------------------------------------

%package -n %{devname}
Summary:	Headers and static library of dpkg
Group:		Development/C
# /usr/share/aclocal
Requires:	automake
Provides:	dpkg-devel = %{EVRD}
# files were moved
Conflicts:	%{name} < 1.21.1-1

%description -n %{devname}
Headers and static library of dpkg

%files -n %{devname}
%{_includedir}/dpkg
%{_mandir}/man3/*
%{_libdir}/libdpkg.a
%{_libdir}/pkgconfig/libdpkg.pc
%{_datadir}/aclocal/*.m4

#---------------------------------------------

%package -n	perl-Dpkg
Summary:	Package maintenance system for Debian Linux
Group:		Development/Perl
BuildArch:	noarch

%description -n	perl-Dpkg
This module provides dpkg functionalities.

%files -n perl-Dpkg
%doc README COPYING
%{perl_vendorlib}/Dpkg
%{perl_vendorlib}/Dpkg.pm

#---------------------------------------------

%prep
%autosetup -p1

%build
CONFIGURE_TOP="$PWD"
mkdir -p dpkg
pushd dpkg
%configure \
	--disable-dselect \
	--disable-install-info \
	--disable-update-alternatives \
	--with-admindir=%{_localstatedir}/lib/%{name} \
	--with-zlib \
	--with-bz2 \
	--with-liblzma

%make
popd

# rpmlint goes hysterical here.
pushd man
for file in dpkg-*.* dpkg.*.* deb-*.* deb.* dpkg.* deb-*-*.* start-*-*.* ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done

cd de
for file in dpkg-*.* dpkg.*.* deb-*.* deb.* dpkg.* deb-*-*.* start-*-*.* ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
cd ..
cd es
for file in dpkg-*.* dpkg.*.* deb-*.* deb.* dpkg.* deb-*-*.* start-*-*.* ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
cd ..
cd fr
for file in dpkg-*.* dpkg.*.* deb-*.* deb.* dpkg.* deb-*-*.* start-*-*.* ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
cd ..
cd it
for file in dpkg-*.* dpkg.*.* deb-*.* deb.* dpkg.* deb-*-*.* start-*-*.* ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
cd ..
cd ja
for file in dpkg-*.1 dpkg-*.5 dpkg-*.8 dpkg.*.* ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
cd ..
cd pl
for file in dpkg-*.* dpkg.*.* deb-*.* deb.* dpkg.* deb-*-*.* start-*-*.* ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
cd ..
cd sv
for file in dpkg-*.* dpkg.*.* deb-*.* deb.* dpkg.* deb-*-*.* start-*-*.* ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
popd

%install
%makeinstall_std -C dpkg

install -m755 %{SOURCE2} -D %{buildroot}%{_bindir}/debsign
install -m644 %{SOURCE3} -D %{buildroot}%{_mandir}/man1/debsign.1

%find_lang %{name} dpkg-dev %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1086 |21cr|dpml-util-cli-1.0.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define short_name      cli
%define category        util

Name:           dpml-%{category}-%{short_name}
Version:        1.0.0
Release:        13
Epoch:          0
Summary:        DPML Metro Common Utilities
License:        Apache License
Group:          Development/Java
URL:            http://dpml.net/util/cli/index.html
# svn checkout https://svn.berlios.de/svnroot/repos/dpml/trunk/main
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}-build.xml
BuildArch:      noarch
BuildRequires:  ant >= 0:1.6
#BuildRequires: ant-junit >= 0:1.6
#BuildRequires: junit
BuildRequires:  java-rpmbuild >= 0:1.5

%description
The CLI index provides an API for processing command line interfaces.

The implementation is based on the Jakarta Commons CLI2 library written 
by John Keyes and Rob Oxspring.

CLI1 was formed by the merger of ideas and code from three different 
libraries and allows most simple interfaces to be modelled. CLI1 became 
increasingly difficult to maintain and develop further and so CLI2 was 
developed with the goals of clearer responsibilities and being more 
flexible. The intention was that CLI2 would be able to model a far 
greater selection of interfaces and do so more completely, validating 
as much as possible.

The DPML codebase was established in late 2005 based on a fork of the 
Jarkata Commons CL2 content as CLI2 development with Jakarta Commons 
appears to have stopped around April 2005. Modification to the codebase 
applied during incorporation under DPML include removal of CLI1 
content, resolution of a number of testcase failures, removal of file 
validation hidden feature (due to platform inconsitencies at the JVM 
level), removal of Maven dependencies in the build and test procedures, 
resolution of issues in the Help formatter, package renaming, 
documentation enhancements, upgrading of the codebase to be compliant 
with DPML style guidelines, and additions to the argument validator 
package.

%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
BuildRequires:  java-javadoc

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{short_name}
%{__cp} -a %{SOURCE1} build.xml

%build
#export OPT_JAR_LIST="ant/ant-junit junit"
export OPT_JAR_LIST=
export CLASSPATH=
%ant jar javadoc #test

%install
# jars
%{__mkdir_p} %{buildroot}%{_javadir}
%{__cp} -a build/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do %{__ln_s} ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
%{__ln_s} %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink

%post javadoc
rm -f %{_javadocdir}/%{name}
%{__ln_s} %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ $1 -eq 0 ]; then
  %{__rm} -f %{_javadocdir}/%{name}
fi

%files
%defattr(0644,root,root,0755)
%doc
%{_javadir}/*

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1087 |21cr|dragonbox-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Static library only -- no debug package
%define debug_package %{nil}
%define devname %mklibname dragonbox -d

Name: dragonbox
Version:	1.1.2
Release:	1
Source0: https://github.com/jk-jeon/dragonbox/archive/refs/tags/%{version}.tar.gz
Summary: Float-to-string conversion library
URL: https://github.com/jk-jeon/dragonbox
License: Apache-2.0
Group: System/Libraries
BuildRequires: cmake ninja

%description
Dragonbox is a float-to-string conversion algorithm.

It generates a pair of integers from a floating-point number: the decimal
significand and the decimal exponent of the input floating-point number.
These integers can then be used for string generation of decimal
representation of the input floating-point number, the procedure
commonly called ftoa or dtoa.

The algorithm guarantees three things:

1. It has the roundtrip guarantee; that is, a correct parser interprets the
   generated output string as the original input floating-point number.

2. The output is of the shortest length; that is, no other output strings that
   are interpreted as the input number can contain less number of significand
   digits than the output of Dragonbox.

3. The output is correctly rounded: the number generated by Dragonbox is the
   closest to the actual value of the input number among possible outputs of
   minimum number of digits.

%package -n %{devname}
Summary: Development files for the %{name} float-to-string conversion library
Group: Development/C
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

Dragonbox is a float-to-string conversion algorithm.

It generates a pair of integers from a floating-point number: the decimal
significand and the decimal exponent of the input floating-point number.
These integers can then be used for string generation of decimal
representation of the input floating-point number, the procedure
commonly called ftoa or dtoa.

The algorithm guarantees three things:

1. It has the roundtrip guarantee; that is, a correct parser interprets the
   generated output string as the original input floating-point number.

2. The output is of the shortest length; that is, no other output strings that
   are interpreted as the input number can contain less number of significand
   digits than the output of Dragonbox.

3. The output is correctly rounded: the number generated by Dragonbox is the
   closest to the actual value of the input number among possible outputs of
   minimum number of digits.

%prep
%autosetup -p1
%cmake -G Ninja

%build
%ninja_build -C build

%install
%ninja_install -C build

%files -n %{devname}
%{_includedir}/*
%{_libdir}/cmake/*
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1088 |21cr|dragonmemory-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	DragonMemory

Name:		dragonmemory
Version:	1.0
Release:	6
Summary:	A memory game where you have to match identical chips
License:	GPLv3
Group:		Games/Boards
URL:		http://dragontech.net/index.php/games-en
Source0:	http://dragontech.net/index.php/games-en?file=tl_files/dragontech/Software/%{oname}/%{oname}-source.tgz
Source1:	dragonmemory.png
Patch0:		dragonmemory-1.0-linuxpath.patch
Patch1:		dragonmemory-1.0-makefile.patch
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_image-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)

%description
Dragon Memory is a memory game where you have to match identical chips from
a board. The game has very detailed graphics and a lot of levels to play.

%prep
%setup -q -n %{oname}
%patch0 -p1 -b .path
%patch1 -p1 -b .makefile

%build
export CPPFLAGS="%{optflags}"
%make

%install
mkdir -p %{buildroot}%{_gamesbindir}
cp %{name} %{buildroot}%{_gamesbindir}/

mkdir -p %{buildroot}%{_gamesdatadir}/%{name}

cp -r fonts %{buildroot}%{_gamesdatadir}/%{name}/
cp -r gfx %{buildroot}%{_gamesdatadir}/%{name}/
cp -r music %{buildroot}%{_gamesdatadir}/%{name}/
cp -r sounds %{buildroot}%{_gamesdatadir}/%{name}/
cp -r themes %{buildroot}%{_gamesdatadir}/%{name}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Dragon Memory
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;BoardGame;
EOF

mkdir -p %{buildroot}%{_iconsdir}/hicolor/128x128/apps/
cp %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/

%files
%doc Authors.txt License.txt
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1089 |21cr|drakbackup-0.19.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define drakxtools_required_version  10.4.89-1mdv2007.0
%define drakxtools_conflicted_version  10.4.88

%define libname %mklibname %{name}

Summary:  Backup and restore the system
Name:     drakbackup
Version:  0.19.3
Release:  5
Source0:  %name-%version.tar.lzma
License:  GPL
Group:    Archiving/Other
Url:      http://www.mandrivalinux.com/en/cvs.php3
BuildRequires: perl-MDK-Common-devel
Requires: drakxtools => %drakxtools_required_version
Requires: common-licenses
Requires: usermode-consoleonly >= 1.92-4mdv2008.0
# for program:
Conflicts: drakxtools <= %drakxtools_conflicted_version
# for man pages:
Conflicts: drakxtools-curses <= %drakxtools_conflicted_version
BuildArch: noarch

%description
Drakbackup enables to backup and restore the system.

%prep
%setup -q

%build

%install
rm -fr $RPM_BUILD_ROOT
%makeinstall_std

#install lang
%find_lang %name

# consolehelper configuration
# ask for root password
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/drakbackup
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/drakbackup <<EOF
USER=root
PROGRAM=/usr/sbin/drakbackup
FALLBACK=false
SESSION=true
EOF
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
ln -sf %{_sysconfdir}/pam.d/mandriva-simple-auth %{buildroot}%{_sysconfdir}/pam.d/drakbackup
# make menu entry call the consolehelper link
sed -i -e "s,%{_sbindir}/drakbackup,%{_bindir}/drakbackup," \
        %{buildroot}%{_datadir}/applications/drakbackup.desktop

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc ChangeLog
%config(noreplace) %_sysconfdir/pam.d/drakbackup
%config(noreplace) %_sysconfdir/security/console.apps/drakbackup
%_bindir/drakbackup
%_sbindir/*
/usr/lib/libDrakX/icons/*
/usr/share/libDrakX/pixmaps/*
/usr/share/applications/drakbackup.desktop
%_mandir/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1090 |21cr|drakclick-0.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program to change Single/Double click in KDE
Name:		drakclick
Version:	0.2
Release:	11
Group:		Graphical desktop/KDE
Source0: 	drakclick
License:	GPL
URL:		http://www.advx.org/drakclick
BuildArch: 	noarch

%description
A quick 5 minute hack to test GTK-perl and provide an easy way
to change the SingleClick vs DoubleClick KDE behavior.

%install
mkdir -p %{buildroot}/usr/bin
cp %{SOURCE0} %{buildroot}/usr/bin
mkdir -p %{buildroot}%{_docdir}/drakclick-%{version}
cat << EOF > %{buildroot}%{_docdir}/drakclick-%{version}/README
A quick 5 minute hack to test GTK-perl and provide an easy way
to change the SingleClick vs DoubleClick KDE behavior.
EOF


%clean
#Yeah, right ;-)

%files
%defattr(755,root,root)
%{_bindir}/drakclick
%{_docdir}/drakclick-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1091 |21cr|drakconf-lxqt-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drakxtools launchers for LXQt Control Center
Name:		drakconf-lxqt
Version:	1.1
Release:	1
License:	GPLv2+
Group:		System/Base
Source0:	lxqt_drakauth.desktop
Source1:	lxqt_drakfirewall.desktop
Source2:	lxqt_drakguard.desktop
Source3:	lxqt_draksec.desktop
Source4:	lxqt_harddrake.desktop
Source5:	lxqt_logdrake.desktop
Source6:	lxqt_rpmdrake.desktop
Source7:	lxqt_rpmdrake-sources.desktop
Source8:	lxqt_rpmdrake-update.desktop
Source9:	lxqt_update-freq.desktop
Source10:	lxqt_XFdrake.desktop

%description
This metapackage integrates Drakx utilites via LXQt Control Center.

%files
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications
# Disable logdrake - it doesn't support journalctl
#install -m644 %{SOURCE5} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE6} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE7} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE8} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE9} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE10} %{buildroot}%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1092 |21cr|drakconf-mate-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drakxtools launchers for Mate Control Center
Name:		drakconf-mate
Version:	1.0
Release:	6
License:	GPLv2+
Group:		System/Base
Source0:	mate_drakauth.desktop
Source1:	mate_drakfirewall.desktop
Source2:	mate_drakclock.desktop
Source3:	mate_drakuser.desktop
Source4:	mate_drakguard.desktop
Source5:	mate_draksec.desktop
Source6:	mate_harddrake.desktop
Source7:	mate_rpmdrake.desktop
Source8:	mate_rpmdrake-sources.desktop
Source9:	mate_rpmdrake-update.desktop
Source10:	mate_update-freq.desktop
Source11:	mate_XFdrake.desktop

%description
This metapackage integrates Drakx utilites via Mate Control Center.

%files
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE6} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE7} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE8} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE9} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE10} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE11} %{buildroot}%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1093 |21cr|drakconf-xfce-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drakxtools launchers for XFCE Control Center
Name:		drakconf-xfce
Version:	1.1
Release:	4
License:	GPLv2+
Group:		System/Base
Url:		http://rosalab.ru
Source0:	xfce_drakfirewall.desktop
Source1:	xfce_drakclock.desktop
Source2:	xfce_drakuser.desktop
Source3:	xfce_drakguard.desktop
Source4:	xfce_draksec.desktop
Source5:	xfce_drakproxy.desktop
Source6:	xfce_harddrake.desktop
Source7:	xfce_rpmdrake-sources.desktop
Source8:	xfce_rpmdrake-update.desktop
Source9:	xfce_reset.desktop
Source10:	xfce_draksambashare.desktop
Source11:	xfce_drakedm.desktop

%description
This metapackage integrates Drakx utilites via XFCE Control Center.

%files
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE5} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE6} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE7} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE8} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE9} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE10} %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE11} %{buildroot}%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1094 |21cr|drakfax-0.17.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define version 0.17.3
%define name drakfax

Summary:	Fax configuration tool
Name:		%{name}
Version:	%{version}
Release:	12
#cvs source
# http://www.mandrivalinux.com/en/cvs.php3
Source0:	%{name}-%{version}.tar.bz2
License:	GPLv2+
URL:		https://qa.mandriva.com
Group:		System/Configuration/Networking
Requires:	drakxtools >= 10-0.9mdk, perl-Gtk2 >= 1.023-2mdk, hylafax-client >= 4.1.8-2mdk
Buildrequires:	perl-MDK-Common-devel
BuildArch:	noarch

%description
drakfax is a tool to setup a fax (modem fax), to send and receive 
facsimiles.
drakfax also provides a client to send facsimile locally or via 
a hylafax server.

%prep
%setup -q

%build

%install
rm -rf $RPM_BUILD_ROOT
make PREFIX=$RPM_BUILD_ROOT install 

#install lang
%{find_lang} drakfax

#install menu
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-drakfax.desktop << EOF
[Desktop Entry]
Name=Fax configuration
Comment=A client and server fax configuration tool
Exec=%{_bindir}/%{name}
Icon=%{name}
Type=Application
Categories=GTK;Settings;
NoDisplay=true
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%files -f drakfax.lang
%defattr(-,root,root)
%doc FEATURES
%{_bindir}/*
%{_sbindir}/*
%{_datadir}/drakfax
%{_datadir}/applications/mandriva-*.desktop
%{_miconsdir}/*.png
%{_iconsdir}/*.png
%{_liconsdir}/*.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1095 |21cr|drakfon-0.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Install FON firmwares in wireless routers
Name:		drakfon
Version:	0.6
Release:	8
Source0:	%{name}-%{version}.tar.bz2
License:	GPL	
Group:		System/Configuration/Networking
Url:		http://fon.com
BuildArch:      noarch

%description
Tool to install FON based firmwares in wireless routers

%prep
%setup -q

%build
%make -C po

%install
rm -rf %{buildroot}
%makeinstall_std -C po
install -D -m 755 %{name} %{buildroot}%{_sbindir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}/firmwares
install -m 644 FONbasic-* %{buildroot}%{_datadir}/%{name}/firmwares
install -d %{buildroot}%{_iconsdir}
install -m 644 FON*.png %{buildroot}%{_iconsdir}
install -m 644 -D %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%find_lang %{name}

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files -f %{name}.lang
%defattr(-,root,root)
%{_sbindir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/firmwares/
%{_datadir}/%{name}/firmwares/FONbasic-*
%{_iconsdir}/FON*.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1096 |21cr|drakguard-0.7.14-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Parental control tool
Name:		drakguard
Version:	0.7.14
Release:	10
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://www.mandriva.com/
Source0:	%{name}-%{version}.tar.xz
BuildRequires:	imagemagick
BuildRequires:	perl-MDK-Common-devel
Requires:	drakxtools >= 10.22
Requires:	drakx-net >= 0.41
Requires:	shorewall
Requires:	squid
Requires:	e2guardian
BuildArch:	noarch

%description
This tool allows to configure parental control. It can block access to
web sites and restrict connection during a specified timeframe.

%files -f %{name}.lang
%doc NEWS
%{_sbindir}/%{name}
%{_prefix}/lib/libDrakX/icons/*
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
%makeinstall_std

# install menu icons
for N in 16 32 48 64 128;
do
convert data/icons/drakguard_128.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1097 |21cr|drakguard-policy-0.7.7-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Parental control tool with NetPolice DNS enable
Name:		drakguard-policy
Version:	0.7.7
Release:	12
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://www.rosalab.ru/
Requires(post,postun):	squid
Requires:	drakguard
BuildArch:	noarch

%description
This tool allows to configure parental control. It can block access to
web sites and restrict connection during a specified timeframe. This version
consist DNS-protect from russian company Yandex.

To disable NetPolice filters remove this line from /etc/squid/squid.conf:
dns_nameservers 77.88.8.3 77.88.8.7

%files

%post
echo "dns_nameservers 77.88.8.3 77.88.8.7" >> /etc/squid/squid.conf

%postun
sed -i 's/dns_nameservers\ 77.88.8.3\ 77.88.8.7//' /etc/squid/squid.conf

#----------------------------------------------------------------------------

%prep
# Nothing

%build
# Nothing

%install
# Nothing

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1098 |21cr|draklive-0.9-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Live systems generation and copying tool
Name:		draklive
Version:	0.9
Release:	9
Source0:	%{name}-%{version}.tar.xz
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://wiki.mandriva.com/Development/Packaging/Tools/draklive
BuildArch:      noarch
Requires:       syslinux grub
Requires:       cdrkit cdrkit-genisoimage mkcd
Requires:       curl rsync dosfstools mtools patch squashfs3-tools setarch urpmi
Recommends:	draklive-config-One
Recommends:	drakx-installer-images drakx-installer-rescue
Recommends:	x11-server-xnest mkisofs

%description
This tool lets you generate Mandriva live systems.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
install -D -m 0755 %{name} %{buildroot}/%{_sbindir}/%{name}
mkdir -p %{buildroot}/%{perl_vendorlib}/MDV/Draklive/
install -D -m 0755 lib/MDV/Draklive/*.pm %{buildroot}/%{perl_vendorlib}/MDV/Draklive/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc NEWS
%{_sbindir}/%{name}
%{perl_vendorlib}/MDV/Draklive/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1099 |21cr|draklive-config-One-0.1-0.20090428.1.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name draklive-config-One
%define version 0.1
%define svnsnap 20090428.1
%define rel 5
%define release %mkrel 0.%{svnsnap}.%{rel}
%define distname %{name}-%{svnsnap}
# DATE=$(date +%Y%m%d)
# svn export http://svn.mandriva.com/svn/config/One/trunk draklive-config-One-$DATE
# tar cjf draklive-config-One-$DATE.tar.bz2 draklive-config-One-$DATE

Summary: Configuration files to build Mandriva One with draklive
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{distname}.tar.bz2
License: GPL
Group: System/Configuration/Other
Url: http://wiki.mandriva.com/en/Draklive
BuildArch: noarch

%description
This package contains the required configuration files to build
Mandriva One live CDs with the draklive tool.

%prep
%setup -q -n %{distname}

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
cp -a * %{buildroot}%{_sysconfdir}/%{name}

%post
if [ ! -e %{_sysconfdir}/draklive ]; then
   ln -s %{name} %{_sysconfdir}/draklive
fi
:

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sysconfdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1100 |21cr|draklive-install-1.70-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define iconname ROSAOne-install-icon.png
%define xsetup_level 60

Summary:	Live installer
Name:		draklive-install
Version:	1.70
Release:	3
Url:		https://abf.rosalinux.ru/soft/%{name}
Source0:	%{url}/archive/%{name}-version-%{version}.tar.gz
Source1:	efi-remount.sh
Source2:	remove-live-user.sh
License:	GPL
Group:		System/Configuration/Other
BuildArch:	noarch
Requires:	drakxtools >= 14.47-24
Requires:	draklive-install-advert
Requires:	livestart-rosa
Requires:	lm_sensors >= 3.3.5
Requires:	xinitrc
BuildRequires:	intltool

%description
This tool allows to install Rosa from a running live system.

%prep
%setup -q -n %{name}-version-%{version}
%apply_patches

%if %{mdvver} == 201905
sed -i '/For installing proprietary video drivers, please launch/d' %{name}
%endif

%build
%make

%install

%makeinstall

for product in one flash; do
  install -D -m 0755 %{name}.desktop %{buildroot}%{_datadir}/mdk/desktop/$product/%{name}.desktop
done
install -D -m 0755 %{name} %{buildroot}/%{_sbindir}/%{name}
install -m 0755 %{name}-lock-storage %{buildroot}/%{_sbindir}/

mkdir -p %{buildroot}%{_sysconfdir}/X11/xinit.d/
install -m 0755 xdg-user-dirs-update.sh %{buildroot}%{_sysconfdir}/X11/xinit.d/xdg-user-dirs-update.sh

mkdir -p %{buildroot}%{_bindir}
ln -sf consolehelper %{buildroot}%{_bindir}/%{name}-lock-storage
mkdir -p %{buildroot}%{_sysconfdir}/pam.d

cat > %{buildroot}%{_sysconfdir}/pam.d/%{name}-lock-storage  <<EOF
#%%PAM-1.0
auth		include		config-util-user
account		include		config-util-user
session		include		config-util-user
EOF

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps

cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name}-lock-storage <<EOF
USER=<user>
PROGRAM=/usr/sbin/%{name}-lock-storage
FALLBACK=false
SESSION=true
EOF

mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir},%{_menudir},%{_datadir}/libDrakX/pixmaps/{en,ru},%{_datadir}/applications,%{_datadir}/icons/hicolor/{16x16,32x32,48x48}/apps}
install data/icons/IC-installone-48.png %{buildroot}%{_liconsdir}/%{iconname}
install data/icons/IC-installone-32.png %{buildroot}%{_iconsdir}/%{iconname}
install data/icons/IC-installone-16.png %{buildroot}%{_miconsdir}/%{iconname}
cp -l %{buildroot}%{_liconsdir}/%{iconname} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{iconname}
cp -l %{buildroot}%{_liconsdir}/%{iconname} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{iconname}
cp -l %{buildroot}%{_liconsdir}/%{iconname} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{iconname}

#install advert to properties directores
install -m 0644 data/icons/en/ROSAOne-*.png %{buildroot}%{_datadir}/libDrakX/pixmaps/en/
install -m 0644 data/icons/ru/ROSAOne-*.png %{buildroot}%{_datadir}/libDrakX/pixmaps/ru/

install rosa-draklive-install.desktop %{buildroot}%{_datadir}/applications/
install -D -m 0755 %{name}.xsetup %{buildroot}%{_sysconfdir}/X11/xsetup.d/%{xsetup_level}%{name}.xsetup
install -m 0755 clean_live_hds %{buildroot}%{_sbindir}/clean_live_hds
install -m 0755 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.d/run.d/efi-remount.sh
install -m 0755 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}.d/run.d/remove-live-user.sh

%find_lang %{name}

%files -f %{name}.lang
%{_sbindir}/%{name}
%{_sbindir}/%{name}-lock-storage
%{_bindir}/%{name}-lock-storage
%{_sysconfdir}/pam.d/%{name}-lock-storage
%{_sysconfdir}/security/console.apps/%{name}-lock-storage
%{_datadir}/mdk/desktop/*/*.desktop
%{_datadir}/applications/rosa-draklive-install.desktop
%{_iconsdir}/%{iconname}
%{_liconsdir}/%{iconname}
%{_miconsdir}/%{iconname}
%{_datadir}/icons/hicolor/*/apps/%{iconname}
%{_datadir}/libDrakX/pixmaps/en/ROSAOne-*.png
%{_datadir}/libDrakX/pixmaps/ru/ROSAOne-*.png
%{_sysconfdir}/X11/xsetup.d/??%{name}.xsetup
%dir %{_sysconfdir}/%{name}.d
%dir %{_sysconfdir}/%{name}.d/run.d
%{_sysconfdir}/%{name}.d/run.d/*
%{_sysconfdir}/X11/xinit.d/xdg-user-dirs-update.sh
%{_sbindir}/clean_live_hds

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1101 |21cr|draklive-install-gnome-1.47-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global src_name draklive-install-advert
%global desktop_name GNOME
%global desktop_suffix gnome

Summary:	%{desktop_name} specific files for Live installer
Name:		draklive-install-%{desktop_suffix}
Version:	1.47
Release:	5
Url:		https://abf.rosalinux.ru/soft/%{src_name}
Source0:	%{url}/archive/%{src_name}-version-%{version}.tar.gz
License:	GPL
Group:		System/Configuration/Other
BuildArch:	noarch
Provides:	draklive-install-advert
Conflicts:	draklive-install < 1.47
Conflicts:	draklive-install-kde
Conflicts:	draklive-install-lxde

%description
This package contains Live installer files that are specific for %{desktop_name}
desktop environment installation.

%prep
%setup -q -n %{src_name}-version-%{version}
%apply_patches

%install
mkdir -p %{buildroot}%{_datadir}/libDrakX/{pixmaps,advert}/{en,ru}
install -m 0644 %{desktop_suffix}/advert/en/ROSAOne-advert-1.png %{buildroot}%{_datadir}/libDrakX/pixmaps/en/ROSAOne-advert.png
install -m 0644 %{desktop_suffix}/advert/en/* %{buildroot}%{_datadir}/libDrakX/advert/en/
install -m 0644 %{desktop_suffix}/advert/ru/ROSAOne-advert-1.png %{buildroot}%{_datadir}/libDrakX/pixmaps/ru/ROSAOne-advert.png
install -m 0644 %{desktop_suffix}/advert/ru/* %{buildroot}%{_datadir}/libDrakX/advert/ru/

%files
%{_datadir}/libDrakX/pixmaps/*
%{_datadir}/libDrakX/advert/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1102 |21cr|draklive-install-kde-1.47-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global src_name draklive-install-advert
%global desktop_name KDE
%global desktop_suffix kde

Summary:	%{desktop_name} specific files for Live installer
Name:		draklive-install-%{desktop_suffix}
Version:	1.47
Release:	5
Url:		https://abf.rosalinux.ru/soft/%{src_name}
Source0:	%{url}/archive/%{src_name}-version-%{version}.tar.gz
License:	GPL
Group:		System/Configuration/Other
BuildArch:	noarch
Provides:	draklive-install-advert
Conflicts:	draklive-install < 1.47
Conflicts:	draklive-install-lxde
Conflicts:	draklive-install-gnome

%description
This package contains Live installer files that are specific for %{desktop_name}
desktop environment installation.

%prep
%setup -q -n %{src_name}-version-%{version}
%apply_patches

%install
mkdir -p %{buildroot}%{_datadir}/libDrakX/{pixmaps,advert}/{en,ru}
install -m 0644 %{desktop_suffix}/advert/en/ROSAOne-advert-1.png %{buildroot}%{_datadir}/libDrakX/pixmaps/en/ROSAOne-advert.png
install -m 0644 %{desktop_suffix}/advert/en/* %{buildroot}%{_datadir}/libDrakX/advert/en/
install -m 0644 %{desktop_suffix}/advert/ru/ROSAOne-advert-1.png %{buildroot}%{_datadir}/libDrakX/pixmaps/ru/ROSAOne-advert.png
install -m 0644 %{desktop_suffix}/advert/ru/* %{buildroot}%{_datadir}/libDrakX/advert/ru/

%files
%{_datadir}/libDrakX/pixmaps/*
%{_datadir}/libDrakX/advert/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1103 |21cr|draklive-install-lxde-1.49-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global src_name draklive-install-advert
%global desktop_name LXDE
%global desktop_suffix lxde

Summary:	%{desktop_name} specific files for Live installer
Name:		draklive-install-%{desktop_suffix}
Version:	1.49
Release:	3
License:	GPL
Group:		System/Configuration/Other
Url:		https://abf.rosalinux.ru/soft/%{src_name}
Source0:	%{url}/archive/%{src_name}-version-%{version}.tar.gz
Provides:	draklive-install-advert
Conflicts:	draklive-install < 1.47
Conflicts:	draklive-install-kde
Conflicts:	draklive-install-gnome
BuildArch:	noarch

%description
This package contains Live installer files that are specific for %{desktop_name}
desktop environment installation.

%files
%{_datadir}/libDrakX/pixmaps/*
%{_datadir}/libDrakX/advert/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{src_name}-version-%{version}
%apply_patches

%install
mkdir -p %{buildroot}%{_datadir}/libDrakX/{pixmaps,advert}/{en,ru}
install -m 0644 %{desktop_suffix}/advert/en/ROSAOne-advert-1.png %{buildroot}%{_datadir}/libDrakX/pixmaps/en/ROSAOne-advert.png
install -m 0644 %{desktop_suffix}/advert/en/* %{buildroot}%{_datadir}/libDrakX/advert/en/
install -m 0644 %{desktop_suffix}/advert/ru/ROSAOne-advert-1.png %{buildroot}%{_datadir}/libDrakX/pixmaps/ru/ROSAOne-advert.png
install -m 0644 %{desktop_suffix}/advert/ru/* %{buildroot}%{_datadir}/libDrakX/advert/ru/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1104 |21cr|draklive-install-plasma5-1.49-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global src_name draklive-install-advert
%global desktop_name Plasma 5
%global desktop_suffix plasma5

Summary:	%{desktop_name} specific files for Live installer
Name:		draklive-install-%{desktop_suffix}
Version:	1.49
Release:	3
License:	GPLv2+
Group:		System/Configuration/Other
Url:		https://abf.rosalinux.ru/soft/%{src_name}
Source0:	%{url}/archive/%{src_name}-version-%{version}.tar.gz
Provides:	draklive-install-advert
Conflicts:	draklive-install < 1.47
Conflicts:	draklive-install-gnome
Conflicts:	draklive-install-kde
Conflicts:	draklive-install-lxde
Conflicts:	draklive-install-xfce
BuildArch:	noarch

%description
This package contains Live installer files that are specific for %{desktop_name}
desktop environment installation.

%files
%{_datadir}/libDrakX/pixmaps/*
%{_datadir}/libDrakX/advert/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{src_name}-version-%{version}
%apply_patches

%install
mkdir -p %{buildroot}%{_datadir}/libDrakX/{pixmaps,advert}/{en,ru}
install -m 0644 %{desktop_suffix}/advert/en/ROSAOne-advert-1.png %{buildroot}%{_datadir}/libDrakX/pixmaps/en/ROSAOne-advert.png
install -m 0644 %{desktop_suffix}/advert/en/* %{buildroot}%{_datadir}/libDrakX/advert/en/
install -m 0644 %{desktop_suffix}/advert/ru/ROSAOne-advert-1.png %{buildroot}%{_datadir}/libDrakX/pixmaps/ru/ROSAOne-advert.png
install -m 0644 %{desktop_suffix}/advert/ru/* %{buildroot}%{_datadir}/libDrakX/advert/ru/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1105 |21cr|draklive-resize-0.18.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name draklive-resize
%define version 0.18.2
%define iconname MandrivaOne-resize-icon.png

Summary:	Live system resizing tool
Name:		%{name}
Version:	%{version}
Release:	8
Source0:	%{name}-%{version}.tar.bz2
License:	GPL
Group:		System/Configuration/Other
Url:		https://svn.mandriva.com/svn/soft/draklive-resize
BuildArch:      noarch

%description
This tool allows to resize a the system space for live systems.

%prep
%setup -q

%build
%make

%install
rm -rf %buildroot
%makeinstall_std
%find_lang %name

%clean
rm -rf %buildroot

%files -f %{name}.lang
%defattr(-,root,root)
%doc NEWS
%_sbindir/%name
%_sysconfdir/X11/xsetup.d/??%{name}.xsetup
%_iconsdir/*.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1106 |21cr|draktermserv-0.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define drakxtools_required_version  10.4.89-1mdv2007.0
%define drakxtools_conflicted_version  10.4.88

%define libname %mklibname %{name}

Summary:  Terminal server configurator
Name:     draktermserv
Version:  0.8.1
Release:  4
Source0:  %name-%version.tar.bz2
License:  GPL
Group:    System/Configuration/Printing
Url:      http://www.mandrivalinux.com/en/cvs.php3
BuildRequires: perl-MDK-Common-devel
Requires: drakxtools => %drakxtools_required_version
Conflicts: drakxtools <= %drakxtools_conflicted_version
BuildArch: noarch

%description
Draktermserv is a terminal server configurator.

%prep
%setup -q

%build

%install
rm -fr $RPM_BUILD_ROOT
%makeinstall_std

#install lang
%find_lang %name

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc COPYING ChangeLog
%_sbindir/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1107 |21cr|drakx-autoinstall-doc-10.0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Auto Install Documentation for Drakx
Name:           drakx-autoinstall-doc
Version:        10.0.3
Release:        10
Url:            http://members.shaw.ca/mandrake
Source0:        drakx-autoinstall-doc.tar.bz2
Source1:        so_split.tar.bz2
License:        GFDL
Group:          System/Configuration/Other
BuildArch:      noarch

%description
This package contains the AutoInstall documents, in OpenOffice.org binary
format, Post Script, PDF, one big HTML file and a HOWTO like set of smaller
HTML files.

The Mandriva Linux Distribution provides a facility, DrakX, which allows
for the automated installation on to computers that you use or manage.

The DrakX graphic installer has the capability of being used in both the
interactive and automated modes. These documents deal specifically with
it's automated capability.

Automated Installation is intended for situations where the same
'Install' set is to be placed on multiple computers. This can be a
substantial time saver for anyone. More importantly, the automation means
that you do not have to sit in front of each computer filling in the
blanks, picking this and that and hoping that you remember the selections
you chose the previous time.

%prep

%setup -q -n %{version}

# put source code in here too
bzip2 -dc %{SOURCE1} | tar xf -
# make sure executable is not present
rm -f Programs/so_split

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AutoInstall-%{version}.sxw
%doc AutoInstall-%{version}.ps AutoInstall-%{version}.pdf
%doc AutoInstall-%{version}.html HTML
%doc README build Programs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1108 |21cr|drakx-installer-binaries-2.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define debug_package %{nil}
%define family drakx-installer

Summary:	DrakX binaries
Name:		drakx-installer-binaries
Version:	2.0
Release:	14
License:	GPLv2+
Group:		Development/Other
Url:		http://wiki.mandriva.com/Tools/DrakX
Source0:	%{name}-%{version}.tar.xz
Patch0:		kmod-log.diff
Patch1:		rosa-kmod-build-fix.patch
Patch2:		drakx-installer-binaries-2.0-tirpc.patch
Patch3:		drakx-installer-binaries-2.0-fix-lib-deps.patch
Patch4:		drakx-installer-binaries-2.0-no-werror.patch
Patch5:		glibc229.patch

BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	hwdata
# Seems to be really needed
BuildRequires:	kernel
BuildRequires:	rpcsvc-proto-devel
BuildRequires:	ldetect-lst >= 0.1.222
BuildRequires:	ldetect-lst-devel
BuildRequires:	ldetect-devel >= 0.9.1
BuildRequires:	slang-static-devel
BuildRequires:	sysfsutils-devel
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libnewt)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(zlib)
#- not requiring the same version otherwise releasing drakx-installer-images takes a day
#- (restore this when the build system can build a pack of packages)
Requires:	ldetect-lst
%rename		%{name}-probe

%description
Binaries needed to build the ROSA Linux installer (DrakX).

%files
%doc mdk-stage1/NEWS
%dir %{_libdir}/%{family}
%dir %{_libdir}/%{family}/binaries
%{_libdir}/%{family}/binaries/stage1
%{_libdir}/%{family}/binaries/rescue-gui
%{_libdir}/%{family}/binaries/dhcp-client
#{_libdir}/%{family}/binaries/drvinst
#{_libdir}/%{family}/binaries/lspcidrake
%optional %{_libdir}/%{family}/binaries/pcmcia_probe.o
%{_libdir}/%{family}/binaries/probe-modules
%{_libdir}/%{family}/binaries/init

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
make -C mdk-stage1

%install
cd mdk-stage1
dest=%{buildroot}%{_libdir}/%{family}/binaries
mkdir -p $dest
install init stage1 rescue-gui dhcp-client probe-modules $dest
if [ -e pcmcia/pcmcia_probe.o ]; then
  install -m 644 pcmcia/pcmcia_probe.o $dest
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1109 |21cr|drawing-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple image editor like Paint
Name:		drawing
Version:	1.0.1
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		https://github.com/maoschanz/drawing
Source0:	https://github.com/maoschanz/drawing/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	python3-gobject
BuildRequires:	python3-devel
BuildRequires:	python3dist(pycairo)
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	gtk3
Requires:	python3-gobject
Requires:	python3dist(pycairo)
BuildArch:	noarch

%description
Simple image editor like Paint.

%files -f %{name}.lang
%doc CONTRIBUTING.md README.md
%license LICENSE
%{_appdatadir}/com.github.maoschanz.%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/com.github.maoschanz.%{name}.desktop
%{_datadir}/glib-2.0/schemas/com.github.maoschanz.%{name}.gschema.xml
%{_datadir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/com.github.maoschanz.%{name}*.svg
%{_iconsdir}/hicolor/*x*/apps/com.github.maoschanz.%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1110 |21cr|drbd90-utils-9.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define oname drbd-utils

Summary:	Management utilities for DRBD
Name:		drbd90-utils
Version:	9.6.0
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.drbd.org/
Source0:	http://oss.linbit.com/drbd/%{oname}-%{version}.tar.gz
Patch0:		elrepo-selinux-bug695.patch
Patch1:		drbd-utils-9.6.0-compiler-check.patch
BuildRequires:	docbook-style-xsl
BuildRequires:	flex
BuildRequires:	udev
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)
Requires:	udev
Requires(post,preun,postun):	systemd-units

%description
DRBD mirrors a block device over the network to another machine.
Think of it as networked raid 1. It is a building block for
setting up high availability (HA) clusters.

This packages includes the DRBD administration tools and integration
scripts for heartbeat, pacemaker, rgmanager and xen.

%files
%doc ChangeLog COPYING README.md scripts/drbd.conf.example
%doc %{_mandir}/man5/drbd.conf.5*
%doc %{_mandir}/man5/drbd.conf-*
%doc %{_mandir}/man8/drbd*
%doc %{_mandir}/ja/man5/drbd.conf.5*
%doc %{_mandir}/ja/man5/drbd.conf-*
%doc %{_mandir}/ja/man8/drbd*
%config(noreplace) %{_sysconfdir}/bash_completion.d/drbdadm
%config(noreplace) %{_udevrulesdir}/65-drbd.rules
%config(noreplace) %{_sysconfdir}/drbd.conf
%dir %{_sysconfdir}/drbd.d/
%config(noreplace) %{_sysconfdir}/drbd.d/global_common.conf
%config(noreplace) %{_unitdir}/drbd.service
%dir %{_localstatedir}/lib/drbd/
%dir /lib/drbd/
/lib/drbd/drbd
/lib/drbd/drbdadm-83
/lib/drbd/drbdsetup-83
/lib/drbd/drbdadm-84
/lib/drbd/drbdsetup-84
%{_sbindir}/drbdadm
%{_sbindir}/drbdmeta
%{_sbindir}/drbdsetup
%{_sbindir}/drbdmon
%dir %{_prefix}/lib/drbd/
%{_prefix}/lib/drbd/notify-out-of-sync.sh
%{_prefix}/lib/drbd/notify-split-brain.sh
%{_prefix}/lib/drbd/notify-emergency-reboot.sh
%{_prefix}/lib/drbd/notify-emergency-shutdown.sh
%{_prefix}/lib/drbd/notify-io-error.sh
%{_prefix}/lib/drbd/notify-pri-lost-after-sb.sh
%{_prefix}/lib/drbd/notify-pri-lost.sh
%{_prefix}/lib/drbd/notify-pri-on-incon-degr.sh
%{_prefix}/lib/drbd/notify.sh
%{_prefix}/lib/drbd/outdate-peer.sh
%{_prefix}/lib/drbd/snapshot-resync-target-lvm.sh
%{_prefix}/lib/drbd/stonith_admin-fence-peer.sh
%{_prefix}/lib/drbd/unsnapshot-resync-target-lvm.sh
%{_prefix}/lib/tmpfiles.d/drbd.conf

### heartbeat
%{_sysconfdir}/ha.d/resource.d/drbddisk
%{_sysconfdir}/ha.d/resource.d/drbdupper

### pacemaker
%{_prefix}/lib/drbd/crm-fence-peer.sh
%{_prefix}/lib/drbd/crm-unfence-peer.sh
%{_prefix}/lib/ocf/resource.d/linbit/drbd
%{_prefix}/lib/drbd/crm-fence-peer.9.sh
%{_prefix}/lib/drbd/crm-unfence-peer.9.sh
%{_prefix}/lib/ocf/resource.d/linbit/drbd.shellfuncs.sh

### rgmanager / rhcs
%{_datadir}/cluster/drbd.sh
%{_datadir}/cluster/drbd.metadata
%{_prefix}/lib/drbd/rhcs_fence

### xen
%{_sysconfdir}/xen/scripts/block-drbd

%post
%systemd_post drbd.service

for i in $(seq 0 15); do
	if [ ! -b /dev/drbd$i ]; then
	mknod -m0660 /dev/drbd$i b 147 $i
	fi
done

if /usr/bin/getent group | grep -q ^haclient; then
	chgrp haclient /usr/sbin/drbdsetup
	chmod o-x,u+s /usr/sbin/drbdsetup
	chgrp haclient /usr/sbin/drbdmeta
	chmod o-x,u+s /usr/sbin/drbdmeta
fi

%preun
%systemd_preun drbd.service

%postun
%systemd_postun_with_restart drbd.service

#------------------------------------------------------------------

%package sysvinit
Summary:	The SysV initscript to manage the DRBD
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description sysvinit
DRBD mirrors a block device over the network to another machine.
Think of it as networked raid 1. It is a building block for
setting up high availability (HA) clusters.

This package contains the SysV init script to manage the DRBD when
running a legacy SysV-compatible init system.

It is not required when the init system used is systemd.

%files sysvinit
%doc COPYING
%config %{_initrddir}/drbd

#------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure \
	--with-initdir="%{_initrddir}" \
	--with-rgmanager \
	--with-initscripttype=both
%make WITH_HEARTBEAT=yes 

%install
%makeinstall_std WITH_HEARTBEAT=yes
pushd scripts
%makeinstall_std WITH_HEARTBEAT=yes install-heartbeat
popd

chmod +x %{buildroot}%{_prefix}/lib/ocf/resource.d/linbit/drbd.shellfuncs.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1111 |21cr|dream-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn_revision r1347

%global optflags %{optflags} -I%{_qt5_includedir}/QtMultimedia
%global ldflags %{ldflags} -lQt5Multimedia

Summary:	AM/DRM Receiver
Name:		dream
License:	GPLv2
Group:		Development/Other
# I don't know which version branch 'dream-2.3' is inherited from
Version:	2.2
Release:	1
Url:		https://sourceforge.net/projects/drm/
# Go to https://sourceforge.net/p/drm/code/1347/tree/ and click "Download snapshot",
# after that this URL will start working
Source0:	https://sourceforge.net/code-snapshots/svn/d/dr/drm/code/drm-code-%{svn_revision}.zip
# from https://github.com/rpmfusion/dream
Source1:	dream.desktop
# https://aur.archlinux.org/cgit/aur.git/plain/fix_qwttext.patch?h=dream, s/NULL/nullptr/g
Patch0:		fix_qwttext.patch
BuildRequires:	qmake5
BuildRequires:	libfaac-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Qwt6)
BuildRequires:	pkgconfig(libpcap)
# not buildable with current libgps
#BuildRequires:	pkgconfig(libgps)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(opus)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(fdk-aac)
BuildRequires:	pkgconfig(faad2)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(SoapySDR)
# not buildable with current hamlib
#BuildRequires:	pkgconfig(hamlib)
Requires:	faad2
Requires:	faac

%description
Dream is a software implementation of a Digital Radio 
Mondiale (DRM) receiver. With Dream, DRM broadcasts can
be received with a modified analog receiver (SW, MW, LW)
and a PC with a sound card.

%files
%license COPYING
%doc README
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/scalable/apps/dream.svg
%{_datadir}/applications/dream.desktop
%{_mandir}/man1/dream.1*

#--------------------------------------------------------

%prep
%autosetup -p0 -n drm-code-%{svn_revision}/tags/dream-2.3

sed -i'' dream.pro -E \
	-e 's,documentation.path =.+,documentation.path = %{buildroot}%{_mandir}/man1,g' \
	-e 's,target.path =.+,target.path = %{buildroot}%{_bindir},g'

%build
%qmake_qt5 dream.pro
# XXX w/a strange problem ("-lqwt-qt5-qt5")
sed -i "s,qwt-qt5-qt5,qwt-qt5,g" Makefile

%make

%install
# strip(1) is called, I did not find where from; RPM will strip binaries
mkdir local_bin
ln -s /bin/true local_bin/strip
export PATH="$PWD/local_bin:$PATH"
%makeinstall_std

install -Dpm 0644 src/GUI-QT/res/MainIcon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/dream.svg
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/dream.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1112 |21cr|dreamchess-0.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# eol 'fix' corrupts font.wid
%define dont_fix_eol 1

Summary:	OpenGL chess game
Name:		dreamchess
Version:	0.3.0
Release:	3
License:	GPLv3+
Group:		Games/Boards
Url:		http://www.dreamchess.org/
Source0:	http://downloads.sourceforge.net/dreamchess/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
Requires:	%{name}-data = %{EVRD}

%description
DreamChess is a user interface for playing chess. It comes with its own
engine called Dreamer. Both DreamChess and Dreamer are compatible with the
xboard/Winboard chess engine communication protocol. This means that
DreamChess can be used with other xboard-compatible chess engines such as
crafty (ftp://ftp.cis.uab.edu/pub/hyatt/) and GNU Chess
(http://www.gnu.org/software/chess/). Similarly, the Dreamer chess engine can
be used with other xboard-compatible user interfaces such as xboard and
Winboard (http://www.tim-mann.org/xboard.html) and recent editions of the
commercial chess program Chessmaster (http://www.chessmaster.com/).

%files
%doc NEWS.md README.md
%{_datadir}/applications/%{name}.desktop
%{_datadir}/doc/DreamChess/AUTHORS.txt
%{_datadir}/doc/DreamChess/LICENSE.txt
%{_gamesbindir}/*
%{_iconsdir}/hicolor/*/apps/dreamchess.*
%{_mandir}/man6/*

#----------------------------------------------------------------------------

%package data
Summary:	Data files for DreamChess game
Group:		Games/Boards
BuildArch:	noarch
Requires:	%{name} = %{EVRD}

%description data
This package contains data files for DreamChess game.

%files data
%{_gamesdatadir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DCMAKE_INSTALL_BINDIR=%{_gamesbindir} \
	-DCMAKE_INSTALL_DATADIR=%{_gamesdatadir}

%install
%makeinstall_std -C build
install -pD -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1113 |21cr|drgeo-doc-1.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drgeo documentation
Name:		drgeo-doc
Version:	1.5
Release:	9
License:	GFDL
Group:		Books/Other
URL:		http://www.ofset.org/drgeo/
Source:		http://prdownloads.sourceforge.net/ofset/%{name}-%{version}.tar.bz2
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch:	noarch

%description
This package contains manual for DrGeo, an interactive geometry
software.

%prep
%setup -q

%build
%configure

%install
rm -rf %{buildroot}
%makeinstall_std

# drgeo searches for ..../C/drgenius.html, not c/drgenius.html
mv %{buildroot}%{_datadir}/drgeo/help/{c,C}

pwd=`pwd`
pushd %{buildroot}%{_datadir}/drgeo/help
for i in ??*; do echo "%%lang($i) %%{_datadir}/drgeo/help/$i" >> $pwd/%{name}.lang; done
popd

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%dir %{_datadir}/drgeo/help
%{_datadir}/drgeo/help/C

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1114 |21cr|driftnet-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network pictures sniffer
Name:		driftnet
Version:	1.3.0
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		https://github.com/deiv/driftnet
Source0:	https://github.com/deiv/driftnet/archive/upstream/%{name}-%{version}.tar.gz
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libwebsockets)

%description
Inspired by EtherPEG, Driftnet is a program which listens to network traffic
and picks out images from TCP streams it observes.

%files
%doc Changelog COPYING CREDITS README.md TODO
%{_bindir}/driftnet
%dir %{_datadir}/driftnet/
%{_datadir}/driftnet/*
%{_mandir}/man1/driftnet.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1115 |21cr|drm_info-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small utility to dump info about DRM devices
Name:		drm_info
Version:	2.6.0
Release:	1
License:	MIT
Group:		Graphics
Url:		https://gitlab.freedesktop.org/emersion/drm_info
Source0:	https://gitlab.freedesktop.org/emersion/drm_info/-/archive/v%{version}/downloads/%{name}-%{version}.tar.gz
BuildRequires:	meson >= 0.53.0
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libdrm) >= 2.4.113
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(scdoc)

%description
A small utility to dump info about DRM devices. It can output in JSON format.

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%doc %{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%meson
%meson_build


%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1116 |21cr|droidcam-1.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           droidcam
Version:        1.9.0
Release:        1
Summary:        Program to turn a mobile device into a webcam
Group:          System/Kernel and hardware
License:        GPL-2.0-or-later
URL:            https://www.dev47apps.com/droidcam/linux/
Source0:        https://github.com/aramg/droidcam/archive/v%{version}.tar.gz#/droidcam-%{version}.tar.gz
Source1:        README-v4l2loopback.md
Source2:        droidcam.sh
Source3:        droidcam-resolution.sh
Source4:        droidcam.desktop
Source5:        droidcam-resolution.desktop
Patch2:         0003-Hack-backwards-compatibility-for-TurboJPEG-2.0.0.patch
Patch3:         0001-Use-icon-installed-to-theme-directory.patch
Patch4:         droidcam-desktop.patch
BuildRequires:  gcc-c++
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(appindicator3-0.1)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libavutil)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(libswscale)
BuildRequires:  libusbmuxd-devel
BuildRequires:  pkgconfig(speex)
Requires:       hicolor-icon-theme
Requires:       droidcam-cli
Requires:       zenity
Requires:       pulseaudio-utils

%description
This program turns a mobile device into a webcam.

It can be used with chat programs like Skype, Zoom, Teams, or with
live streaming programs like OBS.

%files
%license LICENSE
%doc README-v4l2loopback.md
%{_bindir}/droidcam
%{_bindir}/droidcam.sh
%{_bindir}/droidcam-resolution.sh
%{_datadir}/icons/hicolor/*/apps/droidcam.png
%{_datadir}/applications/droidcam.desktop
%{_datadir}/applications/droidcam-resolution.desktop

#-----------------------------------------------------------------
%package cli
Summary:        Command line client for droidcam
Group:          System/Kernel and hardware
Requires:       kmod(v4l2loopback_dc)
# USB connection uses adb for Android, other
# options are usbmuxd (iOS) or Wifi
Recommends:     adb

%description cli
This program turns a mobile device into a webcam.

It can be used with chat programs like Skype, Zoom, Teams, or with
live streaming programs like OBS.

%files cli
%license LICENSE
%doc README-v4l2loopback.md
%{_bindir}/droidcam-cli

#-----------------------------------------------------------------

%prep
%autosetup -p1

cp %{SOURCE1} ./

%build
export USBMUXDLIBS="`pkg-config --silence-errors --libs libusbmuxd-2.0 || pkg-config --silence-errors --libs libusbmuxd`"
# CC is used for CXXFLAGS
%make_build JPEG="-lturbojpeg" USBMUXD=${USBMUXDLIBS} CFLAGS="%{optflags}" droidcam-cli
%make_build JPEG="-lturbojpeg" USBMUXD=${USBMUXDLIBS} CFLAGS="%{optflags}" droidcam

%install
install -D -m 755 -t %{buildroot}%{_bindir} droidcam-cli
install -D -m 755 -t %{buildroot}%{_bindir} droidcam
install -D -m 755 %{SOURCE2} %{buildroot}%{_bindir}/
install -D -m 755 %{SOURCE3} %{buildroot}%{_bindir}/
install -D -m 644 icon2.png %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/droidcam.png
install -D -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m 644 %{SOURCE5} %{buildroot}%{_datadir}/applications/%{name}-resolution.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1117 |21cr|dropbear-2022.82-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SSH2 server and client
Name:		dropbear
Version:	2022.82
Release:	1
License:	MIT
Group:		Networking/Remote access
Url:		http://matt.ucc.asn.au/dropbear/dropbear.html
Source0:	http://matt.ucc.asn.au/dropbear/releases/%{name}-%{version}.tar.bz2
Source1:	%{name}.service
Source2:	%{name}-keygen.service
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libtomcrypt)
BuildRequires:	pkgconfig(libtommath)
BuildRequires:	pkgconfig(zlib)

%description
Dropbear is a relatively small SSH 2 server and client. It is particularly
useful for "embedded"-type Linux (or other Unix) systems, such as wireless
routers.

%files
%license LICENSE
%doc CHANGES MULTI README SMALL
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-keygen.service
%{_bindir}/dropbearkey
%{_bindir}/dropbearconvert
%{_bindir}/dbclient
%{_sbindir}/%{name}
%{_mandir}/man1/dbclient.1*
%{_mandir}/man1/dropbearconvert.1*
%{_mandir}/man1/dropbearkey.1*
%{_mandir}/man8/%{name}.8*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
# Point to the OpenSSH SFTP subsystem binary since dropbear doesn't include
# sftp support itself. The location is architecture-dependent, so must be
# overridden at build time, not patch time
%configure CFLAGS="%{optflags}" CPPFLAGS='%{optflags} -DSFTPSERVER_PATH=\"%{_libdir}/ssh/sftp-server\" -I%{_includedir}/tomcrypt -I%{_includedir}/tommath'
#	--enable-pam

%make


%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}-keygen.service
install -d %{buildroot}%{_mandir}/man1
install -m 0644 dbclient.1 %{buildroot}%{_mandir}/man1/dbclient.1
install -d %{buildroot}%{_mandir}/man8
install -m 0644 dropbearkey.1 %{buildroot}%{_mandir}/man1/dropbearkey.1

cat > %{buildroot}%{_sysconfdir}/sysconfig/%{name} << EOF
OPTIONS=""
EOF

chmod a+r CHANGES LICENSE MULTI README SMALL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1118 |21cr|drumstick-2.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
#undefine _find_debuginfo_dwz_opts

%define	major 2
%define	libalsa %mklibname %{name}-alsa %{major}
%define	libfile %mklibname %{name}-file %{major}
%define	librt %mklibname %{name}-rt %{major}
%define	libwidgets %mklibname %{name}-widgets %{major}
%define	devname %mklibname %{name} -d

Summary:	C++/Qt5 wrapper around the ALSA library sequencer interface
Name:		drumstick
Version:	2.9.1
Release:	1
License:	GPLv3+
Group:		Development/C++
Url:		https://sourceforge.net/projects/drumstick/
Source0:	https://downloads.sourceforge.net/project/drumstick/%{version}/%{name}-%{version}.tar.bz2
Source100:		drumstick.rpmlintrc
# For all the deps: see install.md file
BuildRequires:	cmake >= 3.16
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd-xml
BuildRequires:	doxygen >= 1.5.0
BuildRequires:	graphviz
BuildRequires:	qt5-linguist-tools
BuildRequires:	shared-mime-info >= 0.30
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(alsa) >= 1.0.0
BuildRequires:	pkgconfig(fluidsynth) >= 2.0.0
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpulse-simple)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sonivox)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(xkbcommon)

%description
The %{name} library is a C++ wrapper around the ALSA library sequencer
interface, using Qt5 objects, idioms and style. The ALSA sequencer
interface provides software support for MIDI technology on GNU/Linux.

%files
%doc AUTHORS ChangeLog COPYING NEWS TODO
%{_datadir}/%{name}/*.qm
%{_datadir}/metainfo/net.sourceforge.%{name}-*.metainfo.xml
%{_datadir}/mime/packages/%{name}.xml

#----------------------------------------------------------------------------

%package -n %{libalsa}
Summary:	Drumstick shared library
Group:		System/Libraries

%description -n %{libalsa}
Drumstick shared library.

%files -n %{libalsa}
%doc COPYING
%{_libdir}/lib%{name}-alsa.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfile}
Summary:	Drumstick shared library
Group:		System/Libraries

%description -n %{libfile}
Drumstick shared library.

%files -n %{libfile}
%doc COPYING
%{_libdir}/lib%{name}-file.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{librt}
Summary:	Drumstick shared library
Group:		System/Libraries

%description -n %{librt}
Drumstick shared library.

%files -n %{librt}
%doc COPYING
%{_libdir}/lib%{name}-rt.so.%{major}*
%{_libdir}/%{name}2/lib%{name}-rt-*.so

#----------------------------------------------------------------------------

%package -n %{libwidgets}
Summary:	Drumstick shared library
Group:		System/Libraries

%description -n %{libwidgets}
Drumstick shared library.

%files -n %{libwidgets}
%doc COPYING
%{_libdir}/lib%{name}-widgets.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libalsa} = %{EVRD}
Requires:	%{libfile} = %{EVRD}
Requires:	%{librt} = %{EVRD}
Requires:	%{libwidgets} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name} library is a C++ wrapper around the ALSA library sequencer
interface, using Qt5 objects, idioms and style. This package contains
the files needed for build programs against %{name}.

%files -n %{devname}
%doc build/doc/html/*
%{_includedir}/%{name}/
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}-alsa.so
%{_libdir}/lib%{name}-file.so
%{_libdir}/lib%{name}-rt.so
%{_libdir}/lib%{name}-widgets.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/%{name}/*.cmake
%{_qt5_plugindir}/designer/lib%{name}-vpiano-plugin.so

#----------------------------------------------------------------------------

%package examples
Summary:	Example programs for %{name}
Group:		Development/C++
Requires:	%{name} = %{EVRD}

%description examples
This package contains the test/example programs for %{name}.

%files examples
%{_bindir}/%{name}-*
%{_datadir}/applications/net.sourceforge.%{name}-*.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man1/%{name}-*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake	-DCMAKE_BUILD_TYPE=Release \
		-DCMAKE_INSTALL_LIBDIR="%{_lib}" \
		-DUSE_QT5=ON \
		-DUSE_DBUS=ON \
		-DUSE_FLUIDSYNTH=ON \
		-DUSE_NETWORK=ON \
		-DUSE_PULSEAUDIO=ON \
		-DUSE_SONIVOX=ON \
		-DBUILD_DOCS=YES
%make

# (gvm) Make also the doxygen docs for the library
%make doxygen


%install
%makeinstall_std -C build

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat %{name}.svgz > %{name}.svg && rm -f %{name}.svgz
)

# Fix qt designer plugin placement
mkdir -p %{buildroot}%{_qt5_plugindir}/designer
mv %{buildroot}/usr/plugins/designer/libdrumstick-vpiano-plugin.so %{buildroot}%{_qt5_plugindir}/designer/libdrumstick-vpiano-plugin.so
rm -rf %{buildroot}/usr/plugins

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1119 |21cr|drupal-7.57-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open source content management platform
Name:		drupal
Version:	7.57
Release:	1
License:	GPLv2+
Group:		Networking/WWW
Url:		http://www.drupal.org/
Source0:	https://ftp-origin.drupal.org/files/projects/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		drupal-7.4-baseurl.patch
Patch1:		drupal-7.43-scripts-remove-shebang.patch
Patch2:		drupal-7.14-fc-fix-path-disclosure-vulnerability.patch
Patch3:		drupal-7.56-drupal-conf.patch
Requires:	apache
Requires:	apache-mod_php
Requires:	php-xml
Requires:	php-mbstring
Requires:	php-gd
Recommends:	drupal-database-storage
# Drupal fails to create initial config when php-suhosin is installed
Conflicts:	php-suhosin
BuildArch:	noarch

%description
Drupal is a free software package that allows an individual or a community of
users to easily publish, manage and organize a wide variety of content on a
website. Tens of thousands of people and organizations have used Drupal to
power scores of different web sites, including
    * Community web portals
    * Discussion sites
    * Corporate web sites
    * Intranet applications
    * Personal web sites or blogs
    * Aficionado sites
    * E-commerce applications
    * Resource directories
    * Social Networking sites.

%files
%doc *.txt
%dir %{_var}/www/drupal
%{_var}/www/drupal/*.php
%{_var}/www/drupal/*.txt
%{_var}/www/drupal/includes
%{_var}/www/drupal/misc
%{_var}/www/drupal/modules
%{_var}/www/drupal/profiles
%{_var}/www/drupal/themes
%dir %{_var}/www/drupal/scripts
%attr(0755,root,root) %{_var}/www/drupal/scripts/*
%attr(0755,apache,apache) %{_var}/www/drupal/sites
%attr(710,root,apache) %dir %{_sysconfdir}/drupal
%attr(640,root,apache) %config(noreplace) %{_sysconfdir}/drupal/robots.txt
%config(noreplace) %{_webappconfdir}/drupal.conf

#----------------------------------------------------------------------------

%package mysql
Summary:	Mysql storage of drupal
Group:		Networking/WWW
Provides:	drupal-database-storage = %{EVRD}
Requires:	drupal = %{EVRD}
Requires:	php-pdo_mysql
Requires:	mysql
%rename		drupal-mysqli

%description mysql
This package provides virtual requires for using mysql as storage backend
for drupal.

%files mysql

#----------------------------------------------------------------------------

%package postgresql
Summary:	Postgresql storage of drupal
Group:		Networking/WWW
Provides:	drupal-database-storage = %{EVRD}
Requires:	drupal = %{EVRD}
Requires:	php-pdo_pgsql
Requires:	postgresql

%description postgresql
This package provides virtual requires for using postgresql as storage backend
for drupal.

%files postgresql

#----------------------------------------------------------------------------

%package sqlite
Summary:	Sqlite storage of drupal
Group:		Networking/WWW
Provides:	drupal-database-storage = %{EVRD}
Requires:	drupal = %{EVRD}
Requires:	php-pdo_sqlite

%description sqlite
This package provides virtual requires for using sqlite as storage backend
for drupal.

%files sqlite

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{_var}/www/drupal
cp -a * %{buildroot}%{_var}/www/drupal

rm %{buildroot}%{_var}/www/drupal/*.txt %{buildroot}%{_var}/www/drupal/web.config

mkdir -p %{buildroot}%{_sysconfdir}/drupal
cat > %{buildroot}%{_sysconfdir}/drupal/robots.txt << EOF
User-agent: *
Disallow:   /
EOF
(cd %{buildroot}%{_var}/www/drupal && \
ln -s %{_sysconfdir}/drupal/robots.txt robots.txt)

mkdir -p %{buildroot}%{_webappconfdir}
cp .htaccess %{buildroot}%{_webappconfdir}/drupal.conf

# Fix perms
find %{buildroot} -name "README.txt" | xargs chmod -x
find %{buildroot} -name "default.settings.php" | xargs chmod -x
find %{buildroot} -name "example.sites.php" | xargs chmod -x
chmod -x %{buildroot}%{_var}/www/drupal/scripts/test.script

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1120 |21cr|drupal-antispam-7.x.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		antispam
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-antispam
Summary:	AntiSpam module for Drupal
Version:	7.x.1.5
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
BuildArch:	noarch
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}

%description
AntiSpam module is the successor of the Akismet module, and it provides spam
protection to your drupal site using external antispam service like Akismet.

AntiSpam module expanded the support of the external antispam service
with TypePad AntiSpam and Defensio service as well as Akismet service.
Now you can choose one of the antispam service you wish to use.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1121 |21cr|drupal-ctools-7.x.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		ctools
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-ctools
Summary:	Chaos tool suite module for Drupal
Version:	7.x.1.1
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}
BuildArch:	noarch

%description
This suite is primarily a set of APIs and tools to improve the developer
experience. It also contains a module called the Page Manager whose job is to
manage pages. In particular it manages panel pages, but as it grows it will be
able to manage far more than just Panels.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc API.txt CHANGELOG.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1122 |21cr|drupal-metatags_quick-7.x.2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		metatags_quick
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-%{modname}
Summary:	Meta tags quick module for Drupal
Version:	7.x.2.5
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
BuildArch:	noarch
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}

%description
Meta tags support for Drupal 7 sites based on Fields API.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1123 |21cr|drupal-module_filter-7.x.1.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		module_filter
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-%{modname}
Summary:	Module Filter module for Drupal
Version:	7.x.1.7
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
BuildArch:	noarch
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}

%description
The modules list page can become quite big when dealing with a fairly large
site or even just a dev site meant for testing new and various modules being
considered. What this module aims to accomplish is the ability to quickly find
the module you are looking for without having to rely on the browsers search
feature which more times than not shows you the module name in the 'Required
by' or 'Depends on' sections of the various modules or even some other location
on the page like a menu item.

When tabs is enabled via the Module Filter's settings page, a new module layout
theme is implemented. This tab layout provides a tab for each package as well
as a tab that will show every module alphabetically. The filter textfield is
available on each tab but currently doesn't support autocomplete.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc CHANGELOG.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1124 |21cr|drupal-page_title-7.x.2.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		page_title
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-%{modname}
Summary:	Page Title module for Drupal
Version:	7.x.2.7
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
BuildArch:	noarch
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}

%description
The word "title" is a bit overloaded. Every piece of content in Drupal has
a title, and so does every page. The page title is the one found in the HTML
head inside the <title> tag. It is also used on SERPs (Search Engine Result
Pages) and can greatly enhance your websites SEO (Search Engine Optimization).

This module gives you granular control over the page title. You can specify
patterns for how the title should be structured and, on content creation pages,
specify the page title separately to the content's title.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%defattr(644,root,root,755)
%{_var}/www/drupal/modules/%{modname}
%doc CHANGELOG.txt README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1125 |21cr|drupal-panels-7.x.3.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		panels
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-%{modname}
Summary:	Panels module for Drupal
Version:	7.x.3.2
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
BuildArch:	noarch
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}
Requires:	drupal-ctools

%description
The Panels module allows a site administrator to create customized layouts
for multiple uses. At its core it is a drag and drop content manager that lets
you visually design a layout and place content within that layout. Integration
with other systems allows you to create nodes that use this, landing pages
that use this, and even override system pages such as taxonomy and the node
page so that you can customize the layout of your site with very fine grained
permissions.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%defattr(644,root,root,755)
%{_var}/www/drupal/modules/%{modname}
%doc CHANGELOG.txt KNOWN_ISSUES.txt README.txt UPGRADE.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1126 |21cr|drupal-pathauto-7.x.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		pathauto
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-%{modname}
Summary:	Pathauto module for Drupal
Version:	7.x.1.1
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}
BuildArch:	noarch

%description
The Pathauto module automatically generates URL/path aliases for various kinds
of content (nodes, taxonomy terms, users) without requiring the user
to manually specify the path alias. This allows you to have URL aliases like
/category/my-node-title instead of /node/123. The aliases are based
upon a "pattern" system that uses tokens which the administrator can change.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc API.txt README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1127 |21cr|drupal-seo_checker-7.x.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		seo_checker
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-%{modname}
Summary:	SEO Compliance Checker module for Drupal
Version:	7.x.1.5
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
BuildArch:	noarch
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}

%description
The SEO Compliance Checker checks node content on search engine optimization
upon its creation or modification. Whenever a publisher saves or previews
a node, the module performs a set of checks and gives the user a feedback
on the compliance of the rules.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/{*.txt,.gitignore}

%files
%{_var}/www/drupal/modules/%{modname}
%doc README_FOR_DEVELOPERS.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1128 |21cr|drupal-token-7.x.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		token
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-token
Summary:	Token module for Drupal
Version:	7.x.1.1
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
Source1:	%{name}.rpmlintrc
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}
BuildArch:	noarch

%description
Tokens are small bits of text that can be placed into larger documents via
simple placeholders, like %%site-name or [user]. The Token module provides
a central API for modules to use these tokens, and expose their own token
values.

Note that Token module doesn't provide any visible functions to the user on its
own, it just provides token handling services for other modules.

The basic token API is now a part of Drupal 7! Unfortunately, other things like
the a browsable token UI, and field & profile tokens did not make it into core
and will be supported here for Drupal 7.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1129 |21cr|drupal-transliteration-7.x.3.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		transliteration
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-%{modname}
Summary:	Transliteration module for Drupal
Version:	7.x.3.1
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
BuildArch:	noarch
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}

%description
Provides one-way string transliteration (romanization) and cleans file names
during upload by replacing unwanted characters.

Generally spoken, it takes Unicode text and tries to represent it in US-ASCII
characters (universally displayable, unaccented characters) by attempting
to transliterate the pronunciation expressed by the text in some other writing
system to Roman letters.

According to Unidecode, from which most of the transliteration data has been
derived, "Russian and Greek seem to work passably. But it works quite bad
on Japanese and Thai."

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1130 |21cr|drupal-variable-7.x.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		variable
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-%{modname}
Summary:	Variable module for Drupal
Version:	7.x.2.1
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
BuildArch:	noarch
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}

%description
Variable module provides a registry for meta-data about Drupal variables
and some extended Variable API and administration interface.

This is an API module so it must be installed only when other modules require
it.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1131 |21cr|drupal-views-7.x.3.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		views
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-views
Summary:	Views module for Drupal
Version:	7.x.3.3
Release:	4
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}
Requires:	drupal-ctools
BuildArch:	noarch

%description
The Views module provides a flexible method for Drupal site designers
to control how lists and tables of content, users, taxonomy terms
and other data are presented.

This tool is essentially a smart query builder that, given enough information,
can build the proper query, execute it, and display the results. It has four
modes, plus a special mode, and provides an impressive amount of functionality
from these modes.

Among other things, Views can be used to generate reports, create summaries,
and display collections of images and other content.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc CHANGELOG.txt README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1132 |21cr|drupal-wysiwyg-7.x.2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname		wysiwyg
%define drupal_version	%(echo %{version} |cut -d. -f 1)
%define xver		%(echo %{version} |cut -dx -f 2 |sed s/^\\./-/)

Name:		drupal-wysiwyg
Summary:	Wysywig module for Drupal
Version:	7.x.2.1
Release:	5
License:	GPLv2+
Group:		Networking/WWW
URL:		https://drupal.org/project/%{modname}
Source0:	http://ftp.drupal.org/files/projects/%{modname}-%{drupal_version}.x%{xver}.tar.gz
Requires:	drupal >= %{drupal_version}
Requires:	drupal < %{lua: print(rpm.expand("%{drupal_version}")+1)}
Requires:	drupal-wysiwyg-editor
BuildArch:	noarch

%description
Allows to use client-side editors to edit content. It simplifies
the installation and integration of the editor of your choice. This module
replaces all other editor integration modules. No other Drupal module is
required.

Wysiwyg module is capable to support any kind of client-side editor. It can be
a HTML-editor (a.k.a. WYSIWYG), a pseudo-editor (buttons to insert markup
into a textarea), or even Flash-based applications. The editor library needs
to be downloaded separately. Various editors are supported (see below).

Wysiwyg module also provides an abstraction layer for other Drupal modules
to integrate with any editor. This means that other Drupal modules can expose
content-editing functionality, regardless of which editor you have installed.

%prep
%setup -q -n %{modname}

%build

%install
%__install -d -m 0755 %{buildroot}%{_var}/www/drupal/modules/
cp -a . %{buildroot}%{_var}/www/drupal/modules/%{modname}
rm -f %{buildroot}%{_var}/www/drupal/modules/%{modname}/*.txt

%files
%{_var}/www/drupal/modules/%{modname}
%doc CHANGELOG.txt README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1133 |21cr|drupal-wysiwyg-ckeditor-3.6.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	ckeditor

Name:		drupal-wysiwyg-%{oname}
Summary:	CKEditor for Drupal Wysiwyg module
Version:	3.6.4
Release:	4
License:	GPLv2+ or LGPLv2.1+ or MPL
Group:		Networking/WWW
URL:		http://ckeditor.com/
Source0:	http://download.cksource.com/CKEditor/CKEditor/CKEditor%%20%{version}/%{oname}_%{version}.tar.gz
Requires:	drupal-wysiwyg
Provides:	drupal-wysiwyg-editor
BuildArch:	noarch

%description
CKEditor is a text editor to be used inside web pages. It's a WYSIWYG editor,
which means that the text being edited on it looks as similar as possible
to the results users have when publishing it. It brings to the web common
editing features found on desktop editing applications like Microsoft Word
and OpenOffice.

%prep
%setup -q -n %{oname}

%build

%install
%__install -d %{buildroot}%{_var}/www/drupal//sites/all/libraries/
cp -a . %{buildroot}%{_var}/www/drupal//sites/all/libraries/%{oname}
rm %{buildroot}%{_var}/www/drupal//sites/all/libraries/%{oname}/*.html

%files
%{_var}/www/drupal//sites/all/libraries/%{oname}
%doc CHANGES.html LICENSE.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1134 |21cr|drupal-wysiwyg-tinymce-3.5.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	tinymce

Name:		drupal-wysiwyg-tinymce
Summary:	TinyMCE editor for Drupal Wysiwyg module
Version:	3.5.6
Release:	4
License:	LGPLv2.1
Group:		Networking/WWW
URL:		http://www.tinymce.com/
Source0:	https://github.com/downloads/tinymce/%{oname}/%{oname}_%{version}.zip
Requires:	drupal-wysiwyg
Provides:	drupal-wysiwyg-editor
BuildArch:	noarch

%description
TinyMCE is a platform independent web based Javascript HTML WYSIWYG editor
control released as Open Source under LGPL by Moxiecode Systems AB.

TinyMCE has the ability to convert HTML TEXTAREA fields or other HTML elements
to editor instances. TinyMCE is very easy to integrate into other Content
Management Systems.

%prep
%setup -q -n %{oname}

%build

%install
%__install -d %{buildroot}%{_var}/www/drupal//sites/all/libraries/
cp -a . %{buildroot}%{_var}/www/drupal//sites/all/libraries/%{oname}
rm %{buildroot}%{_var}/www/drupal//sites/all/libraries/%{oname}/*.txt

%files
%{_var}/www/drupal//sites/all/libraries/%{oname}
%doc changelog.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1135 |21cr|drupal-wysiwyg-wymeditor-0.5-0.rc2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	wymeditor
%define pre_rc	2
%define rel	1

Name:		drupal-wysiwyg-%{oname}
Summary:	WYMeditor for Drupal Wysiwyg module
Version:	0.5
Release:	%{?pre_rc:0.rc%{pre_rc}.}%{rel}
License:	GPLv2 or MIT
Group:		Networking/WWW
URL:		http://www.wymeditor.org/
Source0:	%{oname}-%{version}%{?pre_rc:-rc-%{pre_rc}}.tar.gz
Requires:	drupal-wysiwyg
Provides:	drupal-wysiwyg-editor
BuildArch:	noarch

%description
WYMeditor is a web-based WYSIWYM (What You See Is What You Mean) XHTML editor 
(not WYSIWYG).

WYMeditor's main concept is to leave details of the document's visual layout,
and to concentrate on its structure and meaning, while trying to give the user
as much comfort as possible (at least as WYSIWYG editors).

WYMeditor has been created to generate perfectly structured XHTML strict code,
to conform to the W3C XHTML specifications and to facilitate further processing
by modern applications.

With WYMeditor, the code can't be contaminated by visual informations like font
styles and weights, borders, colors, ...

%prep
%setup -q -n %{oname}

%build

%install
%__install -d %{buildroot}%{_var}/www/drupal//sites/all/libraries/
cp -a . %{buildroot}%{_var}/www/drupal//sites/all/libraries/%{oname}
rm %{buildroot}%{_var}/www/drupal//sites/all/libraries/%{oname}/{*.txt,README}

%files
%{_var}/www/drupal//sites/all/libraries/%{oname}
%doc README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1136 |21cr|dsdcc-1.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:           dsdcc
Version:	1.9.3
Release:	1
Summary:        Digital Speech Decoder (DSD) rewritten as a C++ library
License:        GPL-3.0-or-later
Group:          Communications
URL:            https://github.com/f4exb/dsdcc
#Git-Clone:     https://github.com/f4exb/dsdcc.git
Source0:	https://github.com/f4exb/dsdcc/archive/v%{version}.tar.gz
BuildRequires:  cmake

%description
DSDcc is a complete rewrite from the original DSD (Digital Speech Decoder) project.
It provides a binary executable dsdccx and a library libdsdcc.so to be used in
other programs.
It decodes DMR, dPMR, D-Star and Yaesu System Fusion (YSF) standards.

%package -n	%{libname}
Summary:        Digital Speech Decoder (DSD) rewritten as a C++ library
Group:          System/Libraries

%description -n %{libname}
DSDcc is a complete rewrite from the original DSD (Digital Speech Decoder) project.
It provides a binary executable dsdccx and a library libdsdcc.so to be used in
other programs.
It decodes DMR, dPMR, D-Star and Yaesu System Fusion (YSF) standards.

This subpackage contains the shared library files for libdsdcc.

%package -n	%{devname}
Summary:        Development files for the dsdcc library
Group:          System/Libraries
Provides:	%{name}-devel = %{EVRD}
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
DSDcc is a complete rewrite from the original DSD (Digital Speech Decoder) project.
It provides a binary executable dsdccx and a library libdsdcc.so to be used in
other programs.
It decodes DMR, dPMR, D-Star and Yaesu System Fusion (YSF) standards.

This subpackage contains libraries and header files for developing
applications that want to make use of libdsdcc.

%package doc
Summary:        Documentation for DSDcc

%description doc
Documentation for DSDcc

%prep
%autosetup

%build
%cmake \
  -DUSE_MBELIB=OFF \
  -Wno-dev
%make_build

%install
%make_install -C build

%files
%{_bindir}/dsdccx*

%files -n %{libname}
%{_libdir}/libdsdcc.so.%{major}*

%files -n %{devname}
%{_includedir}/dsdcc
%{_libdir}/libdsdcc.so
%{_libdir}/pkgconfig/libdsdcc.pc

%files doc
%doc *.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1137 |21cr|ds_net_utils-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DanSoft Net Utils
Name:		ds_net_utils
Version:	0.3
Release:	4
License:	GPLv2+
Group:		Networking/Other
Url:		http://dansoft.krasnokamensk.ru
Source0:	http://dansoft.krasnokamensk.ru/data/1017/%{name}-%{version}.tar.gz
BuildRequires:	qt4-devel

%description
DanSoft Net Utils:
 - ping
 - what is my ip
 - Looking Glass

%prep
%setup -q

%build
%qmake_qt4
%make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 ping/ds_ping %{buildroot}%{_bindir}/ds_ping
install -m 755 lg/ds_lg %{buildroot}%{_bindir}/ds_lg
install -m 755 whatismyip/ds_whatismyip %{buildroot}%{_bindir}/ds_whatismyip

%files
%{_bindir}/ds_ping
%{_bindir}/ds_lg
%{_bindir}/ds_whatismyip

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1138 |21cr|dspam-3.10.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _disable_ld_no_undefined 1

%define major 7
%define libname %mklibname dspam %{major}
%define devname %mklibname dspam -d
%global __requires_exclude ^perl\\(configure.pl

Summary:	A library and Mail Delivery Agent for Bayesian spam filtering
Name:		dspam
Version:	3.10.2
Release:	5
License:	AGPLv3+
Group:		System/Servers
Url:		http://dspam.sourceforge.net
Source0:	https://sourceforge.net/projects/dspam/files/dspam/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1:	dspam.cf
Source2:	dspam.cron
Source3:	dspam.sysconfig
Source4:	dspam.service
Source5:	dspam-tmpfiles.conf
Patch0:		dspam-modules.diff
# (f32)
Patch1:		dspam-mariadb.patch
BuildRequires:	autoconf2.5
BuildRequires:	libtool
BuildRequires:	mysql-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(libpq)
Requires:	apache-mod_socache_shmcb
Requires:	clamav
Requires:	clamd
Recommends:	%{name}-backend-hash
Requires(post,preun):	rpm-helper
Requires(post,preun,postun):	systemd

%description
DSPAM (as in De-Spam) is an open-source project to create a new
kind of anti-spam mechanism, and is currently effective as both a
server-side agent for UNIX email servers and a developer's library
for mail clients, other anti-spam tools, and similar projects
requiring drop-in spam filtering.

The DSPAM agent masquerades as the email server's local delivery
agent and filters/learns spams using an advanced Bayesian
statistical approach (based on Baye's theorem of combined
probabilities) which provides an administratively
maintenance-free, easy-learning Anti-Spam service custom tailored
to each individual user's behavior. Advanced because on top of
standard Bayesian filtering is also incorporated the use of
Chained Tokens, de-obfuscation, and other enhancements. DSPAM
works great with Sendmail and Exim, and should work well with
any other MTA that supports an external local delivery agent
(postfix, qmail, etc.)

%files
%doc README* RELEASE.NOTES CHANGELOG txt/*.txt
%doc doc/courier.txt doc/exim.txt doc/markov.txt doc/pop3filter.txt
%doc doc/postfix.txt doc/qmail.txt doc/relay.txt doc/sendmail.txt
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/dspam.service
%attr(0755,root,root) %{_sysconfdir}/cron.daily/dspam
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/dspam.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/dspam
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/dspam
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/mail/spamassassin/dspam.cf
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/ld.so.conf.d/dspam.conf
%attr(0755,root,root) %{_bindir}/cssclean
%attr(0755,root,root) %{_bindir}/csscompress
%attr(0755,root,root) %{_bindir}/cssconvert
%attr(0755,root,root) %{_bindir}/cssstat
%attr(0755,root,mail) %{_bindir}/dspam_admin
%attr(0755,root,mail) %{_bindir}/dspam
%attr(0755,root,root) %{_bindir}/dspam_2sql
%attr(0755,root,root) %{_bindir}/dspam_clean
%attr(0755,root,root) %{_bindir}/dspam_crc
%attr(0755,root,root) %{_bindir}/dspamc
%attr(0755,root,root) %{_bindir}/dspam_dump
%attr(0755,root,root) %{_bindir}/dspam_logrotate
%attr(0755,root,root) %{_bindir}/dspam_merge
%attr(0755,root,root) %{_bindir}/dspam_stats
%attr(0755,root,root) %{_bindir}/dspam_train
%attr(0755,root,root) %{_bindir}/dspam_notify
%attr(0644,root,root) %{_mandir}/man1/dspam.1*
%attr(0644,root,root) %{_mandir}/man1/dspam_clean.1*
%attr(0644,root,root) %{_mandir}/man1/dspam_dump.1*
%attr(0644,root,root) %{_mandir}/man1/dspam_merge.1*
%attr(0644,root,root) %{_mandir}/man1/dspam_stats.1*
%attr(0644,root,root) %{_mandir}/man1/dspam_train.1*
%attr(0644,root,root) %{_mandir}/man1/dspam_admin.1*
%attr(0644,root,root) %{_mandir}/man1/dspam_crc.1*
%attr(0644,root,root) %{_mandir}/man1/dspam_logrotate.1*
%attr(0644,root,root) %{_localstatedir}/www/icons/dspam.gif
%dir %attr(0750,root,mail) %{_localstatedir}/lib/dspam
%dir %attr(0750,root,mail) %{_localstatedir}/lib/dspam/data
%dir %attr(0750,root,mail) %{_localstatedir}/log/dspam
%ghost %dir %attr(0750,root,root) %{_localstatedir}/run/dspam
%dir %attr(0755,root,root) %{_datadir}/dspam

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post dspam.service

%preun
%systemd_preun dspam.service

%postun
%systemd_postun_with_restart dspam.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library and Mail Delivery Agent for Bayesian spam filtering
Group:		System/Libraries

%description -n %{libname}
Shared library for DSPAM.

%files -n %{libname}
%{_libdir}/libdspam.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
DSPAM has had its core engine moved into a separate library,
libdspam. This library can be used by developers to provide
'drop-in' spam filtering for their mail client applications,
other anti-spam tools, or similar projects.

%files -n %{devname}
%attr(0755,root,root) %{_libdir}/libdspam.so
%{_includedir}/dspam
%attr(0644,root,root) %{_libdir}/pkgconfig/dspam.pc
%attr(0644,root,root) %{_mandir}/man3/*

#----------------------------------------------------------------------------

%package backend-hash
Summary:	The hash driver for DSPAM
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}dspam7 < 3.10.1-6

%description backend-hash
The hash driver for DSPAM. It's the default backend.

%files backend-hash
%attr(0755,root,root) %{_libdir}/dspam/libhash_drv.so

#----------------------------------------------------------------------------

%package backend-mysql
Summary:	The mysql driver for DSPAM
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-mysql
The mysql driver for DSPAM.

%files backend-mysql
%doc doc/mysql_drv.txt
%attr(0755,root,root) %{_libdir}/dspam/libmysql_drv.so
%dir %attr(0755,root,root) %{_datadir}/dspam-mysql
%attr(0644,root,root) %{_datadir}/dspam-mysql/*

#----------------------------------------------------------------------------

%package backend-pgsql
Summary:	The pgsql driver for DSPAM
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-pgsql
The pgsql driver for DSPAM.

%files backend-pgsql
%doc doc/pgsql_drv.txt
%attr(0755,root,root) %{_libdir}/dspam/libpgsql_drv.so
%attr(0755,root,root) %{_bindir}/dspam_pg2int8
%dir %attr(0755,root,root) %{_datadir}/dspam-pgsql
%attr(0644,root,root) %{_datadir}/dspam-pgsql/*

#----------------------------------------------------------------------------

%package backend-sqlite3
Summary:	The sqlite3 driver for DSPAM
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-sqlite3
The sqlite3 driver for DSPAM.

%files backend-sqlite3
%doc doc/sqlite_drv.txt
%attr(0755,root,root) %{_libdir}/dspam/libsqlite3_drv.so
%{_datadir}/dspam-sqlite3

#----------------------------------------------------------------------------

%package cgi
Summary:	Web administration GUI for DSPAM
Group:		System/Servers
Requires:	apache
Requires:	%{name} = %{EVRD}

%description cgi
Web administration GUI for DSPAM.

%files cgi
%dir %attr(0755,root,root) %{_datadir}/dspam/cgi-bin
%dir %attr(0755,root,root) %{_datadir}/dspam/cgi-bin/templates
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/dspam.conf
%attr(0644,root,root) %config(noreplace) %{_datadir}/dspam/cgi-bin/default.prefs
%attr(0644,root,root) %config(noreplace) %{_datadir}/dspam/cgi-bin/admins
%attr(0644,root,root) %config(noreplace) %{_datadir}/dspam/cgi-bin/.htpasswd
%attr(0644,root,root) %{_datadir}/dspam/cgi-bin/*.txt
%attr(0644,root,root) %{_datadir}/dspam/cgi-bin/*.gif
%attr(0644,root,root) %{_datadir}/dspam/cgi-bin/*.css
%attr(0755,root,root) %{_datadir}/dspam/cgi-bin/*.cgi
%attr(0755,root,root) %{_datadir}/dspam/cgi-bin/*.pl
%attr(0644,root,root) %{_datadir}/dspam/cgi-bin/templates/*.html

%post cgi
systemctl try-restart httpd

%postun cgi
if [ "$1" = "0" ]; then
    systemctl try-restart httpd
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0

# instead of maintaining patches...
find -type f -name "Makefile*" | xargs perl -pi -e "s|-static||g"

%build
export WANT_AUTOCONF_2_5=1
rm -f configure
autoreconf -fis
ln -snf %{_bindir}/libtool .

%configure \
	--disable-static \
	--enable-daemon \
	--enable-trusted-user-security \
	--enable-clamav \
	--enable-long-usernames \
	--enable-domain-scale \
	--enable-virtual-users \
	--with-dspam-home=%{_localstatedir}/lib/dspam \
	--with-logdir=%{_localstatedir}/log/dspam \
	--with-storage-driver=hash_drv,mysql_drv,pgsql_drv,sqlite3_drv \
	--with-mysql-includes=%{_includedir}/mysql \
	--with-mysql-libraries=%{_libdir} \
	--with-pgsql-includes=%{_includedir} \
	--with-pgsql-libraries=%{_libdir}

%install
# make some dirs
install -d %{buildroot}%{_includedir}/dspam
install -d %{buildroot}%{_sysconfdir}/mail/spamassassin
install -d %{buildroot}%{_sysconfdir}/cron.daily
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/ld.so.conf.d
install -d %{buildroot}%{_libdir}/dspam
install -d %{buildroot}%{_localstatedir}/lib/dspam/data
install -d %{buildroot}/var/log/dspam
install -d %{buildroot}/var/run/dspam
install -d %{buildroot}/var/www/icons
install -d %{buildroot}%{_datadir}/dspam/cgi-bin/templates
install -d %{buildroot}%{_datadir}/dspam-sqlite3
install -d %{buildroot}%{_datadir}/dspam-mysql
install -d %{buildroot}%{_datadir}/dspam-pgsql

%makeinstall_std

# install promo icon
install -m0644 webui/htdocs/dspam-logo-small.gif %{buildroot}/var/www/icons/dspam.gif

# install /etc stuff
install -m0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.daily/dspam
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/dspam

# install systemd unit and tmpfiles config
install -D -m0644 %{SOURCE4} %{buildroot}%{_unitdir}/dspam.service
install -D -m0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# install sql stuff
install -m0644 src/tools.sqlite_drv/*.sql %{buildroot}%{_datadir}/dspam-sqlite3/
install -m0644 src/tools.mysql_drv/*.sql %{buildroot}%{_datadir}/dspam-mysql/
install -m0644 src/tools.pgsql_drv/*.sql %{buildroot}%{_datadir}/dspam-pgsql/

# install the cgi stuff
install -m0755 webui/cgi-bin/*.cgi %{buildroot}%{_datadir}/dspam/cgi-bin/
install -m0755 webui/cgi-bin/configure.pl %{buildroot}%{_datadir}/dspam/cgi-bin/
install -m0644 webui/cgi-bin/*.txt %{buildroot}%{_datadir}/dspam/cgi-bin/
install -m0644 webui/cgi-bin/default.prefs %{buildroot}%{_datadir}/dspam/cgi-bin/
install -m0644 webui/cgi-bin/admins %{buildroot}%{_datadir}/dspam/cgi-bin/
install -m0644 webui/htdocs/*.css %{buildroot}%{_datadir}/dspam/cgi-bin/
install -m0644 webui/htdocs/*.gif %{buildroot}%{_datadir}/dspam/cgi-bin/
install -m0644 webui/cgi-bin/templates/*.html %{buildroot}%{_datadir}/dspam/cgi-bin/templates/

# fix webroot
perl -pi -e "s|\"\/\"\;|\"\/dspam\"\;|g" %{buildroot}%{_datadir}/dspam/cgi-bin/configure.pl

cat > dspam.apache2 << EOF

Alias /dspam %{_datadir}/dspam/cgi-bin

<Directory %{_datadir}/dspam/cgi-bin/>

    Options ExecCGI
    AllowOverride Limit AuthConfig
    DirectoryIndex dspam.cgi

    Require host 127.0.0.1

    AuthUserFile %{_datadir}/dspam/cgi-bin/.htpasswd
    AuthGroupFile /dev/null
    AuthName "Authorization required"
    AuthType Basic

    <Limit GET>
	require user root
	require user dspamadmin
    </Limit>

</Directory>
EOF
install -m0644 dspam.apache2 %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/dspam.conf
echo "dspamadmin:h7Sr5nPztyPjU" > %{buildroot}%{_datadir}/dspam/cgi-bin/.htpasswd
echo "dspamadmin" >> %{buildroot}%{_datadir}/dspam/cgi-bin/admins

cat > dspam.logrotate << EOF
/var/log/dspam/*.log {
    missingok
    monthly
    compress
    postrotate
	/bin/kill -HUP \`cat /var/run/dspam/dspam.pid 2> /dev/null\` || /bin/true
    endscript
}
EOF
install -m0644 dspam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/dspam

# fix strange perms (strip cannot access setuid/sgid files...)
chmod 755 %{buildroot}%{_bindir}/*

# install spamassassin stuff
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/mail/spamassassin

# fix default config (patches won't apply here...)
perl -pi -e "s|^#ServerDomainSocketPath.*|ServerDomainSocketPath \"%{_localstatedir}/lib/dspam/dspam\.sock\"|g" %{buildroot}%{_sysconfdir}/dspam.conf
perl -pi -e "s|^#ClientHost.*|ClientHost \"%{_localstatedir}/lib/dspam/dspam\.sock\"|g" %{buildroot}%{_sysconfdir}/dspam.conf
perl -pi -e "s|^#ServerPID.*|ServerPID \"/var/run/dspam/dspam\.pid\"|g" %{buildroot}%{_sysconfdir}/dspam.conf
perl -pi -e "s|^#ServerMode.*|ServerMode dspam|g" %{buildroot}%{_sysconfdir}/dspam.conf

# fix strange perms
chmod 644 doc/*

# provide a  README.urpmi file
cat > README.urpmi << EOF

Due huge changes in the source an upgrade from 3.4.x to 3.6.x has to be done 
manually, please read these files:

%{_docdir}/%{name}-%{version}/RELEASE.NOTES
%{_docdir}/%{name}-%{version}/UPGRADING

The previous 3.4.x packages was specially handcrafted so that you could use each
driver and even toggle between them, or use them simultaneousely. This is not
nessesary anymore and that magic has therefore been removed.

The Berkley-DB backend driver has been removed as it is prone to give errors due 
lack of thread safety as outlined in the dspam documentation.

The amavis-new tailored package has been removed, it may reappear later on.

You will have to define a proper cron command to use for daily cleanups. Look
in the %{_sysconfdir}/sysconfig/dspam file for some examples.

For example when executing dspam with the mysql driver it is possible it will
complain that it cannot find a %{_localstatedir}/lib/dspam/mysql.data file. This
is for backward compatibility. Do not use this file, edit the %{_sysconfdir}/dspam.conf
file instead.

The dspam-cgi web interface is password protected and only accessable from 127.0.0.1,
login as dspamadmin (l/p=dspamadmin) and change this ASAP in the 
%{_datadir}/dspam/cgi-bin/.htpasswd file. Preferably you should use some other
authentication mechanish.
EOF

echo "%{_libdir}/dspam" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/dspam.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1139 |21cr|dspam-scripts-0.0.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A script for let dspam learning maildirs of spam/ham
Name:		dspam-scripts
Version:	0.0.6
Release:	9
License:	GPL
Group:		Networking/Mail
URL:		http://www.kalysto.org/utilities/dspam-scripts/index.en.html
Source0:	http://www.kalysto.org/pkg/%{name}-%{version}.tar.bz2
Buildroot:	%{_tmppath}/%{name}-%{version}-root
BuildArch:	noarch

%description
This package holds the 'dspam-learn' bash script that will help greatly using
dspam learning by looking at mailbox directories rather than a forwarding
method. This is much as you could have set it with Spamassassin and the
sa-learn.

%prep
%setup

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/mail/
%makeinstall
install -m 644 src/sample/dspam-learn.rc $RPM_BUILD_ROOT%{_sysconfdir}/mail/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL README README.en.desc
%doc README.fr.desc THANKS
%{_bindir}/dspam-learn
%config(noreplace) %{_sysconfdir}/mail/dspam-learn.rc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1140 |21cr|dssh-0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Remote command via ssh
Name: dssh
Version: 0.1
Release: 8
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Networking/Remote access
Url: http://dssh.subverted.net/
Buildarch: noarch
requires: perl	

%description
Remote command via ssh.

%prep
%setup -q

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/dssh/node_groups
cp -vf $RPM_BUILD_DIR/%name-%version/dssh %{buildroot}%{_bindir}
cp -vf $RPM_BUILD_DIR/%name-%version/dssh.1 %{buildroot}%{_mandir}/man1

cat > %{buildroot}%{_sysconfdir}/dssh/node_groups/ALL <<EOF
# username@host:port
# ex: root@n1:22
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING README TODO 
%attr(755,root,root) %{_bindir}/dssh
%{_mandir}/man1/dssh.1*
%config(noreplace) %{_sysconfdir}/dssh/node_groups/ALL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1141 |21cr|dssi-1.1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Disposable Soft Synth Interface examples and utilities
Name:		dssi
Version:	1.1.1
Release:	11
License:	LGPLv2+
Group:		Sound
Url:		http://dssi.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/dssi/%{name}-%{version}.tar.gz
Source1:	dssi.sh.bz2
Source2:	dssi.csh.bz2
BuildRequires:	ladspa-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)

%description
DSSI (pronounced "dizzy") is an API for audio plugins, with particular
application for software synthesis plugins with native user
interfaces. DSSI is an open specification developed for use in Linux
audio applications, although portable to other platforms. It may be
thought of as LADSPA-for-instruments, or something comparable to VSTi.

This package contains examples and utilities.

%files
%doc ChangeLog README
%{_bindir}/jack-dssi-host
%{_bindir}/dssi_analyse_plugin
%{_bindir}/dssi_list_plugins
%{_bindir}/dssi_osc_send
%{_bindir}/dssi_osc_update
%{_bindir}/karplong
%{_bindir}/less_trivial_synth
%{_bindir}/trivial_sampler
%{_bindir}/trivial_synth
%{_libdir}/dssi/*.so
%{_libdir}/dssi/less_trivial_synth/LTS_*
%{_libdir}/dssi/trivial_sampler/trivial_sampler_*
%{_mandir}/man1/dssi_osc_send.1*
%{_mandir}/man1/dssi_osc_update.1*
%{_mandir}/man1/jack-dssi-host.1*
%{_mandir}/man1/dssi_analyse_plugin.1*
%{_mandir}/man1/dssi_list_plugins.1*
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/profile.d/dssi*sh

#----------------------------------------------------------------------------

%package devel
Summary:	Disposable Soft Synth Interface API
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	ladspa-devel
Requires:	pkgconfig(alsa)

%description devel
DSSI (pronounced "dizzy") is an API for audio plugins, with particular
application for software synthesis plugins with native user
interfaces. DSSI is an open specification developed for use in Linux
audio applications, although portable to other platforms. It may be
thought of as LADSPA-for-instruments, or something comparable to VSTi.

DSSI consists of a C language API for use by plugins and hosts, based
on the LADSPA API, and an OSC (Open Sound Control) API for use in user
interface to host communications. The DSSI specification consists of
an RFC which describes the background for the proposal and defines the
OSC part of the specification, and a documented header file which
defines the C API.

%files devel
%doc doc/TODO doc/*.txt
%{_includedir}/dssi.h
%{_libdir}/pkgconfig/dssi.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/profile.d/dssi.sh
bzcat %{SOURCE2} > %{buildroot}%{_sysconfdir}/profile.d/dssi.csh
perl -pi -e "s!__LIBDIR__!%{_libdir}!" %{buildroot}%{_sysconfdir}/profile.d/dssi*sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1142 |21cr|dssi-vst-0.9.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}
# When building debug package: *** ERROR: same build ID in nonidentical files!

Summary:	DSSI and LADSPA plugin wrapper for VST plugins
Name:		dssi-vst
Version:	0.9.2
Release:	10
License:	GPLv2+
Group:		Sound
# URLs are dead
Url:		http://breakfastquay.com/dssi-vst/
# There is a fork on GitHub (https://github.com/falkTX/dssi-vst)
# but it has no releases: use HEAD snapshot to pick updates until 2018
Source0:	%{name}-master.zip
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(zlib)
# The -wine subpackage will only be built on ix86
%ifarch %{ix86}
BuildRequires:	wine-devel
# Both packages depend on each other
Requires:	%{name}-wine = %{EVRD}
%endif
Requires:	dssi
ExclusiveArch:	%{ix86} x86_64

%description
dssi-vst enables any compliant DSSI or LADSPA host to use VST instruments and
effects as plugins. They will recognize VSTs placed in the user's
HOME/plugins/win32-vst.
Note: x86_64 users also need the dssi-vst-wine package from the i686 contrib
repository.
VST is a trademark of Steinberg Media Technologies GmbH.
However, this library does not use VST headers, and is absolutely free.

%files
%doc README
%config(noreplace) %{_sysconfdir}/profile.d/dssi-vst.sh
%config(noreplace) %{_sysconfdir}/profile.d/dssi-vst.csh
%{_bindir}/*
%{_libdir}/dssi/%{name}.so
%dir %{_libdir}/dssi/%{name}/
%{_libdir}/dssi/%{name}/%{name}_gui
%{_libdir}/ladspa/%{name}.so

#----------------------------------------------------------------------------

%ifarch %{ix86}
%package wine
Summary:	VST plugins wrapper
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description wine
This package provides two 32bit executables necessary for using dssi-vst
even on 64bit platforms.
dssi-vst enables any compliant DSSI or LADSPA host to use VST instruments
and effects as plugins. They will recognize VSTs placed in the user's
HOME/plugins/win32-vst
VST is a trademark of Steinberg Media Technologies GmbH.
However, this library does not use VST headers, and is absolutely free.

%files wine
%dir %{_libdir}/dssi/
%dir %{_libdir}/dssi/%{name}/
%{_libdir}/dssi/%{name}/%{name}-scanner*
%{_libdir}/dssi/%{name}/%{name}-server*
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-master


%build
%ifarch %{ix86}
# Build all targets only on i686:
make CXXFLAGS="%{optflags} -fPIC -Ivestige"

# Correct executable filenames if wineg++ >= 4.3
mv dssi-vst-server.exe dssi-vst-server
mv dssi-vst-scanner.exe dssi-vst-scanner
%else
# On x86_64, build non-wine parts only:
make dssi-vst.so vsthost dssi-vst_gui \
	CXXFLAGS="%{optflags} -fPIC -Ivestige"
%endif


%install
%ifarch %{ix86}
make DSSIDIR=%{buildroot}%{_libdir}/dssi \
	LADSPADIR=%{buildroot}%{_libdir}/ladspa \
	BINDIR=%{buildroot}%{_bindir} \
	install
rm -f %{buildroot}%{_libdir}/ladspa/*
%else
mkdir -p %{buildroot}%{_libdir}/dssi/%{name} \
	%{buildroot}%{_bindir} \
	%{buildroot}%{_libdir}/ladspa
install -pm 755 vsthost %{buildroot}%{_bindir}
install -pm 644 %{name}.so %{buildroot}%{_libdir}/dssi/
install -pm 755 %{name}_gui %{buildroot}%{_libdir}/dssi/%{name}/
%endif

ln -s ../dssi/%{name}.so %{buildroot}%{_libdir}/ladspa


# Prepare VST_PATH definition in user profile
install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d

cat > %{buildroot}%{_sysconfdir}/profile.d/%{name}.csh << EOF
# Set VST_PATH for csh
if ( \${?VST_PATH} ) then
   exit
endif
setenv VST_PATH \$HOME/plugins/win32-vst
EOF

cat > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh << EOF
# Set VST_PATH for Bash shell
if [ -n "\\\$VST_PATH" ]; then
   export VST_PATH="\$HOME/plugins/win32-vst"
fi
EOF


# Add 32bit dssi path on x86_64 systems to allow findinding wine executables
%ifarch x86_64
cat  > %{buildroot}%{_sysconfdir}/profile.d/%{name}.csh << EOF
setenv DSSI_PATH \$DSSI_PATH:/usr/lib/dssi
EOF
cat  > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh << EOF
export DSSI_PATH="\$DSSI_PATH:/usr/lib/dssi"
EOF
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1143 |21cr|dstat-0.7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Versatile vmstat, iostat and ifstat replacement
Name:		dstat
Version:	0.7.4
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://dag.wiee.rs/home-made/dstat/
Source0:	https://github.com/dagwieers/dstat/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Dstat is a versatile replacement for vmstat, iostat and ifstat. Dstat
overcomes some of the limitations and adds some extra features.

Dstat allows you to view all of your system resources instantly,
you can e.g. compare disk usage in combination with interrupts from
your IDE controller, or compare the network bandwidth numbers
directly with the disk throughput (in the same interval).

Dstat also cleverly gives you the most detailed information in
columns and clearly indicates in what magnitude and unit the output
is displayed. Less confusion, less mistakes.

Dstat is also unique in letting you aggregate block device throughput
for a certain diskset or network bandwidth for a group of interfaces,
i.e. you can see the throughput for all the block devices that make up
a single filesystem or storage system.

You can customize your dstat output from /etc/dstat.conf and you can
write your own dstat modules to plug into the dstat output.

Dstat's output, in its current form, is not very useful to be post-
processed by other tools. It's mostly meant for allowing humans to
interpret real-time data as easily as possible.

%files
%doc AUTHORS ChangeLog README.adoc TODO
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
%makeinstall_std

# python shebangs
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/%{name}
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_datadir}/%{name}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1144 |21cr|dt-23.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hardware performances test
Name:		dt
Version:	23.28
Release:	1
License:	GPL
Group:		System/Kernel and hardware
Url:		http://home.comcast.net/~SCSIguy/SCSI_FAQ/RMiller_Tools/dt.html
Source0:	intel-%{name}.tar.bz2
Patch0:		makefile.patch
BuildRequires:	ed

%description
'dt' is a generic data test program used to verify proper operation of
peripherals and for obtaining performance information.  Since verification
of data is performed, 'dt' can be thought of as a generic diagnostic tool.

'dt' command lines are similar to the 'dd' program, which is popular on
most UNIX systems.  It contains numerous options to give the user complete
control of the test parameters.

'dt' has been used to successfully test disks, tapes, serial lines,
parallel lines, pipes, and memory mapped files.  In fact, 'dt' can be used
for any device which allows the standard open, read, write, & close system
calls.  Special support is necessary for some devices, such as serial lines,
for setting up the speed, parity, data bits, etc.

%files
%attr(755,root,root)
%{_bindir}/dt
%{_defaultdocdir}/%{name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}.d
%patch0 -p0

%build
%make depend
# avoid static link to libc
%make LDFLAGS=

%install
install -d %{buildroot}%{_bindir}
cp dt %{buildroot}%{_bindir}

install -d %{buildroot}%{_defaultdocdir}/%{name}-%{version}
cp dt-Abstract dt.examples dt-UsersGuide.* IOT-Example %{buildroot}%{_defaultdocdir}/%{name}-%{version}
cp LINUX-Notes README.1st ToDoList WhatsNew-* %{buildroot}%{_defaultdocdir}/%{name}-%{version}
cp -r html %{buildroot}%{_defaultdocdir}/%{name}-%{version}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1145 |21cr|dtach-0.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary: A simple program that emulates the detach feature of screen
Name: dtach
Version: 0.8
Release: 6
License: GPL
URL: http://dtach.sourceforge.net
Group:   Terminals
Source: http://prdownloads.sourceforge.net/dtach/dtach-%{version}.tar.bz2
Buildroot: %{_tmppath}/%{name}-%{version}-root
 
%description
dtach is a program that emulates the detach feature of screen, with
less overhead.  It is designed to be transparent and un-intrusive; it
avoids interpreting the input and output between attached terminals
and the program under its control. Consequently, it works best with
full-screen applications such as emacs.
  
%prep
%setup
 
%build
%configure
make
 
%install
rm -rf $RPM_BUILD_ROOT/*
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 755 dtach $RPM_BUILD_ROOT/%{_bindir}/dtach
install -m 644 dtach.1 $RPM_BUILD_ROOT/%{_mandir}/man1/dtach.1

%clean
make clean
rm -rf $RPM_BUILD_ROOT
rm -rf $RPM_BUILD_DIR/%{name}-%{version}

%files
%defattr(-,root,root,-)
%doc COPYING README
%{_bindir}/dtach
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1146 |21cr|dtdparser-1.21-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define section         free

Name:           dtdparser
Version:        1.21
Release:        6
Epoch:          0
Summary:        A Java DTD Parser
License:        LGPL
Source0:        http://wutka.com/download/%{name}-%{version}.tgz
URL:            http://wutka.com/dtdparser.html
BuildRequires:  ant
BuildRequires:  locales-en
BuildRequires:  java-rpmbuild
Requires:       java
Requires:       jpackage-utils >= 0:1.6
Requires(postun): jpackage-utils >= 0:1.6 
Group:          Development/Java
BuildArch:      noarch

%description
DTD parsers for Java seem to be pretty scarce. That's probably because
DTD isn't valid XML. At some point, if/when XML Schema becomes widely
accepted, no one will need DTD parsers anymore. Until then, you can
use this library to parse a DTD.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
Requires:       jpackage-utils >= 0:1.6
Requires(postun): jpackage-utils >= 0:1.6 

%description javadoc
Javadoc for %{name}.

# -----------------------------------------------------------------------------

%prep
%setup -q
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;

# -----------------------------------------------------------------------------

%build
export LC_ALL=en_US.ISO-8859-1
%{ant} build createdoc

# -----------------------------------------------------------------------------

%install
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/%{name}120.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# -----------------------------------------------------------------------------

%files
%defattr(0644,root,root,0755)
%doc CHANGES LICENSE README
%{_javadir}/*

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1147 |21cr|duckmarines-1.0c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           duckmarines
Version:        1.0c
Release:        1
Summary:        Frantic couch multiplayer action
Group:          Games/Arcade
License:        zlib
Url:            http://tangramgames.dk/games/duckmarines
Source0:        https://github.com/SimonLarsen/duckmarines/archive/%{name}-%{version}.tar.gz
BuildRequires:  imagemagick
BuildRequires:  zip

Requires:       love >= 0.10
BuildArch:      noarch

%description
Duck Marines is a cross-platform free software PC remake of Sonic Team's
ChuChu Rocket.
Duck Marines attempts to recreate the magic from the local multiplayer
of ChuChu Rocket while adding new elements like mini games, a level editor,
colorful pixel art and more.

%files
%doc README.md LICENSE.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
# data
zip -9 -r %{name}.love .
install -D -m644 %{name}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love

# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{name}.love
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Duck Marines
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size res/icons/vector.svg \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1148 |21cr|duf-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=off
# https://github.com/muesli/duf
%global goipath         github.com/muesli/duf
Version:                0.8.1

%gometa

%global goname          duf

%global common_description %{expand:
Disk Usage/Free Utility - a better 'df' alternative.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        Disk Usage/Free Utility - a better 'df' alternative
Group:          File tools
License:        MIT and BSD

URL:            %{gourl}
Source0:        %{gosource}
Source1:        vendor.tar.gz
BuildRequires:  golang
%description
%{common_description}

%gopkg

%prep
%goprep

# prepare vendored modules
tar -xf %{SOURCE1}
cp -r ./vendor _build/src/

%build
%gobuild -o %{gobuilddir}/bin/duf %{goipath}

%install
install -m 0755 -vd                       %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/duf %{buildroot}%{_bindir}/
install -m 0755 -vd                       %{buildroot}%{_mandir}/man1
cp -a duf.1 %{buildroot}%{_mandir}/man1/

%files
%license LICENSE
%doc README.md
%{_bindir}/duf
%{_mandir}/man1/duf.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1149 |21cr|duktape-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 202
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Embeddable Javascript engine
Name:		duktape
Version:	2.2.1
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://duktape.org/
Source0:	http://duktape.org/%{name}-%{version}.tar.xz
Patch0:		duktape-2.1.0-makefile.patch

%description
Duktape is an embeddable Javascript engine, with a focus on portability
and compact footprint.

This package contains a commandline duk interpreter.

%files
%doc AUTHORS.rst LICENSE.txt README.rst
%{_bindir}/duk

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Embeddable Javascript engine shared library
Group:		System/Libraries

%description -n %{libname}
Embeddable Javascript engine shared library.

%files -n %{libname}
%{_libdir}/libduktape.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and header files for developing programs based on %{name}.

%files -n %{devname}
%{_includedir}/duk_config.h
%{_includedir}/duktape.h
%{_libdir}/libduktape.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%setup_compile_flags
%make -f Makefile.sharedlibrary
%make -f Makefile.cmdline

%install
%makeinstall_std \
	INSTALL_PREFIX="%{_prefix}" \
	LIBDIR="%{_libdir}" \
	-f Makefile.sharedlibrary

mkdir -p %{buildroot}%{_bindir}
install -m 755 duk %{buildroot}%{_bindir}/duk

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1150 |21cr|duma-2.5.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_version 2_5_15

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Detect Unintended Memory Access
Name:		duma
Version:	2.5.21
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://duma.sourceforge.net/
Source0:	http://dl.sf.net/duma/duma_%{real_version}.tar.gz
Patch0:		duma_2_5_15-soname.patch
Patch1:		duma_2_5_15-fopen.patch
Patch2:		duma-2.5.15-gcc6.patch

%description
DUMA (Detect Unintended Memory Access) stops your program on the exact
instruction that overruns (or underruns) a malloc() memory buffer. GDB
will then display the source-code line that causes the bug. It works by
using the virtual-memory hardware to create a red-zone at the border of
each buffer: touch that, and your program stops. It can catch formerly
impossible-to-catch overrun bugs. DUMA is a fork of Bruce Perens'
Electric Fence library.

%files
%doc TODO README.txt
%{_bindir}/duma
%{_mandir}/man3/duma.3*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 2.5.15-3

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libduma.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 2.5.15-3
Obsoletes:	%{name}-devel < 2.5.15-3

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}.

%files -n %{devname}
%{_includedir}/duma*.h
%{_includedir}/noduma.h
%{_libdir}/libduma.so

#----------------------------------------------------------------------------

%prep
%setup -qn duma_%{real_version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
# duma doesn't build with _smp_mflags
%__make CFLAGS="%{optflags}" CPPFLAGS="%{optflags} -std=c++14"

%install
install -d -m0755 %{buildroot}%{_bindir}
install -d -m0755 %{buildroot}%{_mandir}/man3/
install -d -m0755 %{buildroot}%{_libdir}

%makeinstall \
	BIN_INSTALL_DIR="%{buildroot}%{_bindir}" \
	LIB_INSTALL_DIR="%{buildroot}%{_libdir}" \
	MAN_INSTALL_DIR="%{buildroot}%{_mandir}/man3/"

rm -r %{buildroot}/%{_libdir}/libduma.a
rm -r %{buildroot}/%{_docdir}/duma/README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1151 |21cr|dumb-2.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

Summary:	Dynamic Universal Music Bibliotheque
Name:		dumb
Version:	2.0.3
Release:	2
License:	BSD-like
Group:		Sound
Url:		https://github.com/kode54/dumb/
Source0:	https://github.com/kode54/dumb/archive/refs/heads/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 3.1
BuildRequires:	pkgconfig(allegro) >= 4.0
# For example binaries
BuildRequires:	pkgconfig(argtable2)
BuildRequires:	pkgconfig(sdl2)

%description
DUMB is an IT, XM, S3M and MOD player library.
This package includes a player based on Allegro.

%files
%doc README.md
%{_bindir}/*

#-----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Shared libraries for %{name}

%description -n %{libname}
DUMB is an IT, XM, S3M and MOD player library.
This package contains the library itself.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/libaldmb.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Group:		Development/C
Summary:	Development files and headers for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 0.9.3-9

%description -n %{devname}
This package contains the development files and headers for %{name}.

%files -n %{devname}
%doc DUMBFILE_SYSTEM.md
%{_includedir}/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/libaldmb.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%ifarch aarch64
%cmake -DUSE_SSE=OFF
%else
%cmake
%endif
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1152 |21cr|dunelegacy-0.96.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open-source Dune II engine
Name:		dunelegacy
Version:	0.96.4
Release:	3
License:	GPLv2+
Group:		Games/Strategy
Url:		http://dunelegacy.sourceforge.net/
Source0:	http://www.myway.de/richieland/%{name}-%{version}-src.tar.bz2
Patch0:		dunelegacy-0.96.4-optflags.patch
Patch1:		mix_init_mid.patch
BuildRequires:	desktop-file-utils
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)

%description
Lead one of three interplanetary houses, Atreides, Harkonnen or Ordos,
in an attempt to harvest the largest amount of spice from the sand
dunes. Exchange your spice stockpiles for credits through refinement
and build an army capable of thwarting attempts of the other houses to
stop your harvesting!

Dune Legacy is an effort by a handful of developers to revitalize the
first-ever real-time strategy game. The original game was the basis
for the hugely successful Command and Conquer series, and the game-play
has been replicated an extended to a wide variety of story-lines and
series.

NOTE: Original Dune 2 game files are needed.

%files
%doc README ToDo.txt ChangeLog
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i s,"#!/usr/bin/env xdg-open",,g %{name}.desktop
sed -i 's/\r//' ToDo.txt
# clean
rm -fr debian
rm -fr MacOSX

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std
# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
# icons
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 %{name}-128x128.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1153 |21cr|dunst-1.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           dunst
Version:        1.9.2
Release:        1
Summary:        Customizable and lightweight notification-daemon
License:        BSD
Group:          Graphical desktop/Other
URL:            https://dunst-project.org/
Source0:        https://github.com/dunst-project/dunst/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xrandr)

#libxss
BuildRequires:  pkgconfig(xscrnsaver)

BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gdk-2.0)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(wayland-client)

#Оptional, for recompiling protocols
BuildRequires:  pkgconfig(wayland-protocols)

#Optional, xdg-open is the default 'browser' for opening URLs
BuildRequires:  xdg-utils
#BuildRequires:  pkgconfig(libxdg-basedir)

#For systemd unit autodetect
BuildRequires:  pkgconfig(systemd)

%description
Dunst is a lightweight replacement for the notification-daemons provided
by most desktop environments. It's very customizable, doesn't depend on
any toolkits and therefore fits in those windowmanager centric setups
we all love to customize to perfection.

%prep
%setup -q

%build
%set_build_flags
%make_build SYSCONFDIR=%{_sysconfdir}/xdg VERSION=%{version}

%install
%make_install PREFIX=%{_prefix} SYSCONFDIR=%{_sysconfdir}/xdg

# create directory for config drop-in files
install -d -m 0755 -pv %{buildroot}%{_sysconfdir}/xdg/%{name}/dunstrc.d

%files
%doc RELEASE_NOTES README.md CHANGELOG.md AUTHORS
%license LICENSE
%dir %{_sysconfdir}/xdg/%{name}
%dir %{_sysconfdir}/xdg/%{name}/dunstrc.d
%config(noreplace) %{_sysconfdir}/xdg/%{name}/dunstrc
%{_bindir}/%{name}
%{_bindir}/dunstctl
%{_bindir}/dunstify
%{_datadir}/dbus-1/services/org.knopwob.dunst.service
%{_userunitdir}/%{name}.service
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/dunstctl.1.*
%{_mandir}/man5/%{name}.5.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1154 |21cr|duperemove-0.11.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define samename btrfs-extent-same

Name:           duperemove
Version:	0.11.3
Release:	2
Summary:        Software to find duplicate extents in files and remove them
License:        GPLv2
Group:          System/Kernel and hardware
Url:            https://github.com/markfasheh/duperemove
Source:         https://github.com/markfasheh/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  glib2-devel
BuildRequires:  sqlite3-devel

%description
Duperemove finds duplicate extents in files and prints them to the
console. It also has the option to remove duplicates on those file
systems which support the btrfs-extent-same ioctl.

%package -n %{samename}
Summary:        Debug/Test tool to exercise the btrfs out-of-band deduplication ioctl
Group:          System/Kernel and hardware

%description -n %{samename}
Debug/Test tool to exercise a btrfs ioctl for deduplicating file regions.

%prep
%autosetup -p1
# Set the destdir / prefix
sed -i \
    -e 's:DESTDIR =:DESTDIR ?=:g' \
    -e 's:%{_prefix}/local:/usr:g' \
    Makefile

%build
%make

%install
%makeinstall_std

%files -n %{samename}
%license LICENSE
%doc *.md
%{_sbindir}/%{samename}
%{_mandir}/man?/%{samename}.8.*

%files
%license LICENSE
%doc *.md
%{_sbindir}/duperemove
%{_sbindir}/hashstats
%{_sbindir}/show-shared-extents
%{_mandir}/man?/%{name}.8.*
%{_mandir}/man?/hashstats.8.*
%{_mandir}/man?/show-shared-extents.8.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1155 |21cr|duplicatesfinder-1.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	Duplicate files finder
Name:		duplicatesfinder
Version:	1.6.8
Release:	1
License:	LGPLv2+
Group:		File tools
Url:		https://github.com/bodun56/duplicatesfinder
Source0:	https://github.com/bodun56/duplicatesfinder/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Duplicates file finder.

%files
%doc LICENSE
%{_bindir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/Lang_*.qm

#------------------------------------------------------------

%prep
%autosetup -p1


%build
%qmake_qt5
%make


%install
make install INSTALL_ROOT=%{buildroot}

# Install icons
install -d %{buildroot}%{_iconsdir}/hicolor/scalable/apps
install -m0644 %{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

# Install and fix desktop file
install -d %{buildroot}%{_datadir}/applications
desktop-file-install -m 0644 --remove-key="Encoding" \
								--dir="%{buildroot}%{_datadir}/applications" \
								%{name}.desktop

# Install translation files
install -d %{buildroot}%{_datadir}/%{name}
install -m0644 Lang_*.qm %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1156 |21cr|dustrac-2.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -Wstrict-aliasing=0
%define oname DustRacing2D

Summary:	A nice 2D racing game and a level editor written in Qt and OpenGL
Name:		dustrac
Version:	2.1.1
Release:	2
License:	GPLv3+
Group:		Games/Sports
Url:		http://juzzlin.github.io/DustRacing2D/
Source0:	https://github.com/juzzlin/DustRacing2D/archive/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils

%description
Dust Racing (Dustrac) is a tile-based, cross-platform 2D racing game
written in Qt (C++) and OpenGL. Dust Racing comes with a Qt-based level
editor for easy level creation. A custom engine, MiniCore, is used for
physics modeling. Dust Racing 2D is inspired by Super Cars and
Slicks'n Slide.

%files
%{_gamesbindir}/%{name}-editor
%{_gamesbindir}/%{name}-game
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}*.desktop
%{_defaultdocdir}/%{name}/
%{_iconsdir}/hicolor/64x64/apps/%{name}*.png
%{_appdatadir}/*.appdata.xml
#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
%cmake_qt5 \
	-DReleaseBuild=1 \
	-DBUILD_SHARED_LIBS=OFF \
	-DBIN_PATH=%{_gamesbindir} \
	-DDATA_PATH=%{_gamesdatadir}/%{name} \
	-DDOC_PATH=%{_defaultdocdir}/%{name}
%make

%install
%makeinstall_std -C build

# Hicolor is sufficient
rm -rf %{buildroot}%{_datadir}/pixmaps

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml || :  

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1157 |21cr|dvb-apps-20140321-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Otherwise we don't pass rpmlint control
%global	_enable_debug_packages %{nil}
%global	debug_package %{nil}
# linting will fail anyway due the not-standard-release-extension .Sflo
%global	_build_pkgcheck_set %{nil}


# No sonames, and these are presumably only used internally,
# so put them all in the same package;
# If some other apps start using them, sonames should be fixed,
# and package splitted properly. - Anssi
%define	libname %mklibname dvbapps
%define	devname %mklibname dvbapps -d

%define	snapshot 1503

Summary:	Various apps for DVB cards
Name:		dvb-apps
Version:	20140321
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://www.linuxtv.org/wiki/index.php/LinuxTV_dvb-apps
Source0:	%{name}-%{snapshot}.tar.xz
# (Anssi 02/2008): dvbnet tries to strip 'path/' out from 'path/dvbnet'
# in argv[0] when showing it in commandline usage help output. The NULL
# check is buggy as 's' has already been incremented by 1 before the check.
# This patch removes the stripping altogether and uses the full argv[0]
# in usage(), as GNU utilities do.
Patch0:		dvb-apps-1503-dont-strip-dir-from-argv0.patch
Patch1:		dvb-apps-1503-kernel-4.14.patch
BuildRequires:	pkgconfig(libv4l2)
# bin/scan conflict:
Conflicts:	nmh

%description
Various apps for DVB cards.

%files
%doc README README.av7110_loadkeys README.scan util/dvbnet/net_start.*
%doc util/dib3000-watch/README.* README.zap
%{_bindir}/*
%dir %{_datadir}/dvb
#{_datadir}/dvb/atsc
%{_datadir}/dvb/av7110_loadkeys
#{_datadir}/dvb/dvb-c
#{_datadir}/dvb/dvb-s
#{_datadir}/dvb/dvb-t

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Common libraries used by dvb-apps
Group:		System/Libraries

%description -n %{libname}
Common libraries as used by the dvb-apps package.

%files -n %{libname}
%{_libdir}/libdvb*.so
%{_libdir}/libesg.so
%{_libdir}/libucsi.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for dvb-apps
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for dvb-apps, for building applications that depend on:
- libdvbapi;
- libdvbcfg;
- libdvben50221;
- libdvbsec;
- libesg;
- libucsi.

%files -n %{devname}
%{_includedir}/libdvbapi
%{_includedir}/libdvbcfg
%{_includedir}/libdvben50221
%{_includedir}/libdvbsec
%{_includedir}/libesg
%{_includedir}/libucsi
%{_libdir}/libdvb*.a
%{_libdir}/libesg.a
%{_libdir}/libucsi.a

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{snapshot}
%patch0 -p1
%patch1 -p1

# Fix function
sed -i -e "s|stime|ctime|g" util/dvbdate/dvbdate.c


%build
%setup_compile_flags
# (Anssi 02/2008) version.h gets written too late for dvbnet.c, parallel make broken
make prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir} sharedir=%{_datadir}


%install
%makeinstall_std prefix=%{_prefix} libdir=%{_libdir} includedir=%{_includedir} sharedir=%{_datadir}

install -m644 util/av7110_loadkeys/README README.av7110_loadkeys
sed -i -e 's:./evtest:evtest:' README.av7110_loadkeys
sed -i -e 's:./av7110_loadkeys:av7110_loadkeys:' README.av7110_loadkeys
sed -i -e "s:hauppauge.rc5:%{_datadir}/dvb/av7110_loadkeys/hauppauge.rc5:" README.av7110_loadkeys

install -m644 util/scan/README README.scan
sed -i -e "s:\./::g" README.scan
sed -i -e "s:dvb-s/Astra-19.2E:%{_datadir}/dvb/dvb-s/Astra-19.2E:" README.scan
sed -i -e "s:atscscan -h:atscscan -h\nTuning files are stored in %{_datadir}/dvb.:"  README.scan

install -m644 util/szap/README README.zap
sed -i -e "s:\./::g" README.zap

# For backward compatibility:
ln -s scan %{buildroot}%{_bindir}/scandvb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1158 |21cr|dvb-firmwares-20110802-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define firmdir /lib/firmware

Name:		dvb-firmwares
Version:	20110802
Release:	3
Summary:	Firmware files for Linux DVB drivers
License:	Proprietary
Group:		System/Kernel and hardware
Source:		http://www.linuxtv.org/downloads/firmware/%{name}.tar.bz2
URL:		http://www.linuxtv.org/
BuildArch:	noarch

%description
Source package to build firmware files for the Linux DVB drivers
that require such (except for dvb-ttpci which is in separate package).

This package is in restricted because the firmware files are non-free.

%package	usb
Summary:	Firmware files for USB DVB devices requiring such
Group:		System/Kernel and hardware

%description	usb
Firmware files for the USB DVB devices that require such. You might
also need the %{name}-frontends package.

dvb-usb-avertv-a800 - AVerMedia
dvb-usb-bluebird - Bluebird devices
dvb-usb-dib0700 - Dibcom dib0700
dvb-usb-dibusb-5.0.0.x - various DiBcom USB1.1
dvb-usb-dibusb-6.0.0.x - DiBcom/Artec USB2.0
dvb-usb-dtt200u - Yakumo/Typhoon/Hama USB2.0
dvb-usb-terratec-h5-drxk - Terratec H5
dvb-usb-terratec-h7-drxk - Terratec H7 DRX-K
dvb-usb-terratec-h7-az6007 - Terratec H7 az6007
dvb-usb-umt-010 - HanfTek UMT-010 USB2.0
dvb-usb-vp7045 - Twinhan USB-T VP-7045/VP-7046 (MagicBoxII)
dvb-usb-vp702x - TwinhanDTV StarBox
dvb-usb-wt220u - WideViewer WT-220U PenType DVB-T Receiver

This package is in restricted because the firmware files are non-free.

%package	ttpci
Summary:	Firmware files for ttpci devices
Group:		System/Kernel and hardware

%description	ttpci
Firmware for the Siemens/Technotrend/Hauppauge Premium/FF AV7110
based DVB cards featuring MPEG-2 decoder.

dvb-ttpci-01.fw-261a - Firmware 01.261a
dvb-ttpci-01.fw-261b - Firmware 01.261b
dvb-ttpci-01.fw-261c - Firmware 01.261c
dvb-ttpci-01.fw-261d - Firmware 01.261d
dvb-ttpci-01.fw-261f - Firmware 01.261f
dvb-ttpci-01.fw-2622 - Firmware 01.2622

This package is in restricted because the firmware files are non-free.

%package	frontends
Summary:	Firmware files for DVB frontends requiring such
Group:		System/Kernel and hardware

%description	frontends
Firmware files for the DVB frontends requiring such. 

dvb-fe-bcm3510 - Broadcom BCM3510
dvb-fe-or51132-qam - OREN demodulator
dvb-fe-or51132-vsb - OREN demodulator
dvb-fe-or51211 - OREN demodulator
dvb-fe-xc5000 - Xceive xc5000 tuner

This package is in restricted because the firmware files are non-free.

%package	v4l
Summary:	Firmware files for Conexant devices
Group:		System/Kernel and hardware

%description	v4l
Firmware for Conexant devices.

v4l-cx231xx-avcore - Conexant cx231xx USB
v4l-cx23418-apu - Conexant cx18 APU firmware
v4l-cx23418-cpu - Conexant cx18 CPU firmware
v4l-cx23418-dig - Conexant cx18 DIG firmware
v4l-cx23885-enc - Conexant cx23885 firmware
v4l-cx23885-avcore - Conexant cx23885 firmware for cx2584x
v4l-cx25840 - Conexant firmware for cx2584x

This package is in restricted because the firmware files are non-free.

%prep
%setup -q -c

%build

%install
%__rm -rf %{buildroot}
%__install -d -m 755 %{buildroot}%{firmdir}
%__install -m 644 *.fw* %{buildroot}%{firmdir}
%__ln_s dvb-ttpci-01.fw-2622 %{buildroot}%{firmdir}/dvb-ttpci-01.fw

%clean
%__rm -rf %{buildroot}

%files usb
%{firmdir}/dvb-usb-*.fw

%files ttpci
%{firmdir}/dvb-ttpci-*.fw*

%files frontends
%{firmdir}/dvb-fe-*.fw

%files v4l
%{firmdir}/v4l-*.fw

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1159 |21cr|dvbsnoop-1.4.50-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple dvb/mpeg stream analyzer program
Name:		dvbsnoop
Version:	1.4.50
Release:	15
License:	GPLv2+
Group:		Video
Url:		http://dvbsnoop.sf.net
Source0:	http://osdn.dl.sourceforge.net/dvbsnoop/%{name}-%{version}.tar.gz
BuildRequires:	glibc-devel

%description
dvbsnoop is a simple dvb/mpeg stream analyzer program. The program can
be used to sniff, monitor, debug, dump or view dvb/mpeg/dsm-cc/MHP
stream information (digital television) send via satellite, cable or
terrestrial.

%files
%doc README COPYING 
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
# Fix permissions
find . -perm 0744 -exec chmod 0644 '{}' \;

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1160 |21cr|dvbstream-0.8.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MPEG-2 streaming over LAN
Name:		dvbstream
Version:	0.8.2
Release:	3
License:	GPLv2+
Group:		Video
Url:		http://www.orcas.net/dvbstream/
Source0:	http://www.orcas.net/dvbstream/%{name}-%{version}.tar.bz2
Patch0:		format-security.patch
BuildRequires:	ncurses-devel
# There is no more need for update-alternatives trick:
# force removing of previous version to remove it
Conflicts:	%{name} < %{version}

%description
DVBstream is based on the ts-rtp package available at http://www.linuxtv.org.
It can be used to broadcast program or transport stream (entire or up to 8
PIDs)over LAN using the RTP protocol. Even though this is enhanced version of
original program, there are newer projects based on dvbstream, like mumudvb.

%files
%doc README COPYING CHANGES TELNET
%{_bindir}/*
#dir %%{_libdir}/%%{name}
#{_libdir}/%%{name}/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1

# Fix perms
chmod 0644 *.{c,h}
chmod -x TELNET/*.sh


%build
%make CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -I/usr/include/ncurses"


%install
# There is no installation rules in Makefile: go manually
install -d -m755 %{buildroot}%{_bindir}
#install -d -m755 %%{buildroot}%%{_libdir}/%%{name}
install -m755 dvbstream %{buildroot}%{_bindir}/
install -m755 dumprtp %{buildroot}%{_bindir}/
install -m755 rtpfeed %{buildroot}%{_bindir}/
install -m755 ts_filter %{buildroot}%{_bindir}/
install -m755 *.sh %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1161 |21cr|dvbsubs-0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	dvbsubs
%define version	0.3

Summary:	Dvbsubtitle tools	
Name:		dvbsubs
Version:	0.3
Release:	13
Source0:	http://linuxtv.org/download/dvb/%{name}-%{version}.tar.bz2
Patch0:	dvbsubs-0.3-png-zlib.patch
License:	GPLv2
Group:		Video
URL:		http://linuxtv.org/dvb/

BuildRequires:	libxml2-devel 
BuildRequires:	freetype2-devel
BuildRequires:	png-devel

%description
DVB subtitles utilities.

%prep
%setup -q
%patch0 -p0

%build
%setup_compile_flags
%make

%install
#makeinstall_std
install -d -m755 %buildroot/%{_bindir}
install -m755 dvbsubs %buildroot/%{_bindir}/
install -m755 dvbtextsubs %buildroot/%{_bindir}/
install -m755 xml2spumux %buildroot/%{_bindir}/
install -m755 xml2srt %buildroot/%{_bindir}/

install -d -m755 %buildroot/%{_mandir}/man1
install -m755 dvbtextsubs.1 %buildroot/%{_mandir}/man1/


%files
%license COPYING
%doc CHANGES README 
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1162 |21cr|dvbtune-0.5-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define kernel_dir /usr/src/linux
%define kernel_inc %{kernel_dir}/include
%define debug_package %{nil}

Summary:	Tuning application for DVB cards
Name:		dvbtune
Version:	0.5
Release:	29
License:	GPLv2+
Group:		Video
Url:		http://www.linuxstb.org
Source0:	http://osdn.dl.sourceforge.net/dvbtools/%{name}-%{version}.tar.bz2
Patch0:		dvbtune-0.5-gcc5.patch
BuildRequires:	kernel-headers
BuildRequires:	pkgconfig(libxml-2.0)
Requires(post,postun):	update-alternatives

%description
DVBtune is a simple tuning application for DVB cards supported by the Linux
DVB driver (www.linuxtv.org).

%files
%doc README
%{_bindir}/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*

%post -f dvbtune-setup-alternatives.sh

%postun
if [ $1 = 0 ]; then
	update-alternatives --remove dvbtune %{_bindir}/dvbtune-uk
	update-alternatives --remove dvbtune %{_bindir}/dvbtune-fin
	update-alternatives --remove dvbtune %{_bindir}/dvbtune-fin2
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
find . -type f -exec chmod -x {} \;

%build
#UK
make INCS=-I%kernel_inc
make xml2vdr
install -m755 dvbtune dvbtune-uk
install -m755 xml2vdr dvb_xml2vdr-uk

make clean
#Finland
make INCS=-I%kernel_inc FINLAND=1
make FINLAND=1 xml2vdr
install -m755 dvbtune dvbtune-fin
install -m755 xml2vdr dvb_xml2vdr-fin

make clean

make INCS=-I%kernel_inc FINLAND2=1
make FINLAND2=1 xml2vdr
install -m755 dvbtune dvbtune-fin2
install -m755 xml2vdr dvb_xml2vdr-fin2

%install
install -d -m755 %{buildroot}%{_bindir}
install -m755 dvbtune-* %{buildroot}%{_bindir}/
install -m755 dvb_* %{buildroot}%{_bindir}/

install -d -m755 %{buildroot}%{_libdir}/%{name}
install -m755 scripts/* %{buildroot}%{_libdir}/%{name}/

echo "update-alternatives --install %{_bindir}/dvbtune dvbtune %{_bindir}/dvbtune-uk 30 \\" >> dvbtune-setup-alternatives.sh
echo "--slave  %{_bindir}/dvb_xml2vdr dvb_xml2vdr %{_bindir}/dvb_xml2vdr-uk \\" >> dvbtune-setup-alternatives.sh
echo >> dvbtune-setup-alternatives.sh

echo "update-alternatives --install %{_bindir}/dvbtune dvbtune %{_bindir}/dvbtune-fin 20 \\" >> dvbtune-setup-alternatives.sh
echo "--slave  %{_bindir}/dvb_xml2vdr dvb_xml2vdr %{_bindir}/dvb_xml2vdr-fin \\" >> dvbtune-setup-alternatives.sh
echo >> dvbtune-setup-alternatives.sh

echo "update-alternatives --install %{_bindir}/dvbtune dvbtune %{_bindir}/dvbtune-fin2 10 \\" >> dvbtune-setup-alternatives.sh
echo "--slave  %{_bindir}/dvb_xml2vdr dvb_xml2vdr %{_bindir}/dvb_xml2vdr-fin2 \\" >> dvbtune-setup-alternatives.sh
echo >> dvbtune-setup-alternatives.sh

rm -fr %{buildroot}%{_bindir}/dvb_defaults.h
pushd %{buildroot}%{_libdir}/dvbtune
chmod -x README astra28.txt astra19.txt
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1163 |21cr|dvda-author-20.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	High-definition DVD-AUDIO disc creator
Name:		dvda-author
Version:	20.10
Release:	2
License:	GPLv3+
Group:		Archiving/Cd burning
# Repack, drop built binaries etc from upstream tarball
Url:		http://dvd-audio.sourceforge.net/
Source0:	%{name}-src.%{version}.tar.xz
Patch1:		dvda-disable-pdf.patch
Patch2:		dvda-libs-force.patch
Patch3:		dvda-program-name.patch 
BuildRequires:	mc
BuildRequires:	curl
BuildRequires:	help2man
BuildRequires:	man2html
BuildRequires:	imagemagick
BuildRequires:	mjpegtools
BuildRequires:	mkisofs
BuildRequires:	dvdauthor
BuildRequires:	flex
BuildRequires:	flac-static-devel
BuildRequires:	libogg-static-devel
BuildRequires:	pkgconfig(sox)
BuildRequires:	ffmpeg-static-devel
Requires:	cdrkit
Requires:	dvdauthor
Requires:	imagemagick
Requires:	mkisofs
Requires:	mjpegtools

%description
dvda-author creates high-definition DVD-Audio discs with navigable DVD-Video
zone from DVD-Audio zone Supported input audio types: .wav, .flac, .oga,
SoX-supported formats
EXAMPLES
-creates a 3-group DVD-Audio disc (legacy syntax):

dvda-author -g file1.wav file2.flac -g file3.flac -g file4.wav

-creates a hybrid DVD disc with both AUDIO_TS mirroring audio_input_directory
and VIDEO_TS imported from directory VID, outputs disc structure to directory
DVD_HYBRID and links video titleset #2 of VIDEO_TS to AUDIO_TS:

dvda-author -i ~/audio/audio_input_directory -o DVD_HYBRID -V ~/Video/VID -T 2

Both types of constructions can be combined.

%files
%doc %{_datadir}/doc/%{name}/*
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}/menu/
%{_datadir}/%{name}/%{name}.conf
%{_datadir}/pixmaps/%{name}*.png
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
./autogen

%configure --with-sox=sox --with-libogg=ogg
sed 's/FLAC_LIB=/FLAC_LIB=FLAC/g' -i mk/FLAC.global.mk
sed 's/WITH_FLAC=@WITH_FLAC@/WITH_FLAC=yes/g' -i mk/FLAC.global.mk
sed 's/HAVE_EXTERNAL_FLAC=@HAVE_EXTERNAL_FLAC@/HAVE_EXTERNAL_FLAC=yes/g' -i mk/FLAC.global.mk
%make


%install
help2man -s 1 -N -o dvda-author.1 src/dvda-author
man2html < dvda-author.1 > dvda-author.html
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1164 |21cr|dvda-author-gui-09.02-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt GUI for dvda-author
Name:		dvda-author-gui
Version:	09.02
Release:	5
Source0:	%{name}-%{version}-13.tar.gz
License:	GPLv3
Group: 		Archiving/Cd burning
Requires:	dvda-author
BuildRequires:	qt4-devel

%description
dvda-author-gui is a Qt4 GUI for dvda-author.

%prep
%setup -q

%build
%qmake_qt4
%make
mv gui dvda-author-gui
sed -e 's#/usr/local/share#%{_datadir}#g' -i %{name}.desktop

%install
rm -rf %{buildroot}

install -m644 images/dvda-author.png -D %{buildroot}%{_datadir}/pixmaps/dvda-author.png
install -m644 %{name}.desktop -D %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}
cp -rf images/ %{buildroot}%{_datadir}/%{name}
cp -f GUI.shtml %{buildroot}%{_datadir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README ChangeLog
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/dvda-author.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1165 |21cr|dvdauthor-0.7.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple set of tools to help you author a DVD
Name:		dvdauthor
Version:	0.7.2
Release:	5
License:	GPLv2+
Group:		Video
Url:		http://dvdauthor.sourceforge.net/
Source0:	https://github.com/ldo/dvdauthor/archive/%{name}-%{version}.tar.gz
Source1:	http://www.joonet.de/dvdauthor/ftp/%{name}-doc-0.6.17.tar.gz
Patch0:		dvdauthor-0.7.2-GraphicsMagick-ImageMagick-choice.patch
Patch1:		dvdauthor-0.7.2-use-pkgconfig-for-find-freetype.patch
Patch2:		dvdauthor-0.7.2-fix-build-warnings.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.6.0
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)

%description
A simple set of tools to help you author a DVD. The idea is to be able to
create menus, buttons, chapters, etc. But for now you can just take an MPEG
stream (as created by mplex -f 8 from mjpegtools 1.6.0) and write it to DVD.
NB. The system-wide default video format is NTSC, to change it modify 
/etc/video_format; for per user specific settings create
~/.config/video_format and put the video format you want (NTSC or PAL) there.

%files
%doc AUTHORS README ChangeLog COPYING INSTALL TODO html
%{_sysconfdir}/video_format
%{_bindir}/%{name}
%{_bindir}/dvddirdel
%{_bindir}/dvdunauthor
%{_bindir}/mpeg2desc
%{_bindir}/spumux
%{_bindir}/spuunmux
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_mandir}/man7/video_format.7*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name} -a 1
%apply_patches

mv %{name}-doc-0.6.17/html .


%build
autoreconf -vfi
%configure --with-graphicsmagick
%make


%install
%makeinstall_std

# (ahmad) Starting from 0.7, dvdauthor doesn't specify a default video format
# previoulsy it defaulted to NTSC
mkdir -p %{buildroot}%{_sysconfdir}
cat > %{buildroot}%{_sysconfdir}/video_format << EOF
NTSC
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1166 |21cr|dvdisaster-0.72.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

%define Werror_cflags %{nil}

Summary:	Securely store data on DVD/CD media
Name:		dvdisaster
Version:	0.72.6
Release:	7
License:	GPLv2
Group:		Archiving/Backup
Url:		http://dvdisaster.net/
Source0:	http://dvdisaster.net/downloads/%{name}-%{version}.tar.bz2
Patch0:		dvdisaster-0.72.6-po.patch
Patch1:		dvdisaster-0.72.6-sfmt.patch
BuildRequires:	imagemagick
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
dvdisaster is a way to securely store data on DVD/CD media.
CD, DVD and BD media keep their data only for a finite time
(typically for many years).
After that time, data loss develops slowly with read errors
growing from the outer media region towards the inside.
dvdisaster stores data on CD/DVD/BD (supported media) in a way
that it is fully recoverable even after some read errors have
developed. This enables you to rescue the complete data to a new
medium. Data loss is prevented by using error correcting codes.
Error correction data is either added to the medium 
or kept in separate error correction files. dvdisaster works at
the image level so that the 
ecovery does not depend on the file system of the medium. 
The maximum error correction capacity is user-selectable.

%files
%{_bindir}/dvdisaster*
%doc CHANGELOG COPYING CREDIT* README* TODO  documentation
%{_mandir}/man?/%{name}*
%{_mandir}/*/man?/%{name}*
%lang(cs) %{_datadir}/locale/cs/LC_MESSAGES/dvdisaster.mo
%lang(de) %{_datadir}/locale/de/LC_MESSAGES/dvdisaster.mo
%lang(it) %{_datadir}/locale/it/LC_MESSAGES/dvdisaster.mo
%lang(pt_BR) %{_datadir}/locale/pt_BR/LC_MESSAGES/dvdisaster.mo
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/dvdisaster.mo
%lang(sv) %{_datadir}/locale/sv/LC_MESSAGES/dvdisaster.mo
%{_datadir}/icons/hicolor/*/apps/dvdisaster.png
%{_datadir}/applications/dvdisaster.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
# linting Sflo
pushd documentation/cs
find -name "*.php"  -exec chmod -x {} \;
popd
chmod 0755 documentation/diff-content.sh
#
%patch0 -p1
%patch1 -p1

%build
%configure \
	--buildroot=%{buildroot} \
	--docdir=%{_defaultdocdir} \
	--docsubdir=%{name} \
	--localedir=%{_datadir}/locale \
	--mandir=%{_mandir} \
	--with-embedded-src-path=no

# No parallel build. sflo
make

%install
%makeinstall_std
# icons
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{48x48,32x32,16x16}/apps
install -Dm644 contrib/%{name}48.png %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -size 32x32 contrib/%{name}48.png %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -size 16x16 contrib/%{name}48.png %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# desktop file
desktop-file-install --vendor "" \
     --dir %{buildroot}%{_datadir}/applications \
     --set-icon=%{name} \
     contrib/%{name}.desktop

# handle docs in files section
mv %{buildroot}%{_defaultdocdir}/%{name} installed-docs

# unwanted files
rm -f %{buildroot}%{_bindir}/*-uninstall.sh


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1167 |21cr|dvdrip-0.98.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global __requires_exclude perl\\(Video::DVDRip.*

Summary:	DVD ripping GUI
Name:		dvdrip
Version:	0.98.11
Release:	7
License:	GPL or Artistic
Group:		Video
Url:		http://www.exit1.org/dvdrip/
Source0:	http://www.exit1.org/dvdrip/dist/%{name}-%{version}.tar.gz
Source1:	Video-DVDRip-16.png
Source2:	Video-DVDRip-32.png
Source3:	Video-DVDRip-48.png
Source4:	Video-DVDRip.xml
Patch:		dvdrip-0.98.7-fping.patch
Patch1:		dvdrip-0.98.10-cssmethod.patch
BuildRequires:	perl-devel
BuildRequires:	perl-Event-ExecFlow >= 0.62
BuildRequires:	perl-Event-RPC >= 0.89
BuildRequires:	perl-Gtk2 >= 1.121
BuildRequires:	perl-Gtk2-Ex-FormFactory >= 0.65
BuildRequires:	perl-libintl-perl >= 1.16
Requires:	fping
Requires:	imagemagick
Requires:	libdvdcss
Requires:	ogmtools
Requires:	transcode
Requires:	perl-Gtk2-Ex-FormFactory
Requires:	perl-libintl-perl

%description
dvd::rip is a full featured DVD copy program written in Perl. It
provides an easy to use but feature-rich Gtk+ GUI to control almost
all aspects of the ripping and transcoding process. It uses the widely
known video processing swissknife transcode and many other Open Source
tools.

This package is in restricted, as DVD ripping might break local laws.

%files -f %{name}.lang
%doc README TODO Credits Changes COPYRIGHT
%{_bindir}/*
%{_mandir}/*/*
%dir %{perl_vendorlib}/LocaleData
%{perl_vendorlib}/Video/
%{_datadir}/applications/mandriva*.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

# icons
install -D -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
#mime
install -D -m 644 %{SOURCE4} %{buildroot}%{_datadir}/mime/packages/%{name}.xml

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=dvd::rip
Comment=DVD ripping GUI
Exec=%{_bindir}/dvdrip %U
Icon=%{name}
Terminal=false
imeType=application/x-rip
Type=Application
StartupNotify=true
Categories=GTK;AudioVideo;Video;AudioVideoEdition;Player
EOF

for subdir in %{buildroot}%{perl_vendorlib}/LocaleData/*; do
echo "%lang($(basename $subdir)) $(echo $subdir|sed s!%{buildroot}!!)" >> %{name}.\lang
done

# change permission
chmod 755 %{buildroot}%{_bindir}/*

# strip file
strip %{buildroot}%{_bindir}/dvdrip-progress
strip %{buildroot}%{_bindir}/dvdrip-splitpipe


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1168 |21cr|dvd-slideshow-0.8.6.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	vmajor %(echo %{version} |cut -d. -f-3)
%define	vminor %(echo %{version} |cut -d. -f4)

Summary:	Makes a DVD slideshow video
Name:		dvd-slideshow
Version:	0.8.6.1
Release:	4
License:	GPLv2+
Group:		Video
Url:		http://dvd-slideshow.sourceforge.net/
Source0:	http://dl.sourceforge.net/dvd-slideshow/%{name}-%{vmajor}-%{vminor}.tar.gz
Requires:	dvdauthor
Requires:	imagemagick
Requires:	ffmpeg
Requires:	mjpegtools
Requires:	sox
Recommends:	lame
BuildArch:	noarch

%description
dvd-slideshow makes a DVD slideshow video with menus from a text file listing
of pictures, effects, and audio tracks. You can add some nice effects like
fades, crops, scrolls, or Ken Burns effects. It will hopefully become a
command-line clone of imovie.

%files
%doc COPYING.txt TODO.txt doc/*.html
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{vmajor}-%{vminor}

%build

%install
install -d  %{buildroot}{%{_bindir},%{_mandir}/man1}
install dir2slideshow %{buildroot}%{_bindir}
install dvd-menu %{buildroot}%{_bindir}
install dvd-burn %{buildroot}%{_bindir}
install dvd-slideshow %{buildroot}%{_bindir}
install gallery1-to-slideshow %{buildroot}%{_bindir}
install jigl2slideshow %{buildroot}%{_bindir}
install man/* %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1169 |21cr|dvdstyler-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname DVDStyler

Summary:	DVD authoring application
Name:		dvdstyler
Version:	3.2.1
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Video
Url:		https://www.dvdstyler.org
Source0:	https://sourceforge.net/projects/dvdstyler/files/%{name}/%{version}/%{oname}-%{version}.tar.bz2
Patch0:		dvdstyler-3.2.1-fix-build-with-wxwidgets31.patch
BuildRequires:	bison
BuildRequires:	desktop-file-utils
BuildRequires:	dvd+rw-tools
BuildRequires:	dvdauthor >= 0.7.0
BuildRequires:	mkisofs
BuildRequires:	ffmpeg
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	netpbm
BuildRequires:	xmlto
BuildRequires:	zip
BuildRequires:	ffmpeg-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libwxsvg) >= 1.5.23
BuildRequires:	pkgconfig(udev)
Requires:	dvd+rw-tools
Requires:	dvdauthor
Requires:	mjpegtools
Requires:	mkisofs

%description
DVDstyler is a DVD authoring program. The main DVDStyler features are:
    * you can drag and drop MPEG files directly
    * you can import image file for background
    * you can create NTSC/PAL menu
    * you can place text and images anywhere on the menu screen
    * you can change font/color
    * you can put basic text buttons, change font/color and background color
    * you can set chapters for each movie
    * you can change post command for each movie.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README TODO
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_mandir}/man1/%{name}.1*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

# Not utf-8 file
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog


%build
chmod +x ./autogen.sh ./configure
./autogen.sh
%configure	--with-wx-config="%{_bindir}/wx-config"
%make


%install
%makeinstall_std

# We'll install this in %%files section
rm -fr %{buildroot}%{_docdir}

# Fix desktop file
desktop-file-install --vendor='' \
	--dir=%{buildroot}%{_datadir}/applications \
	--remove-key='Version' \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

# Install icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{48x48,32x32,16x16}/apps
convert -size 48x48 src/rc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -size 32x32 src/rc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -size 16x16 src/rc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# Remove duplicate soc files
rm -rf %{buildroot}%{_libdir}/share/doc/dvdstyler/

# es_ar language missing in rosa lang tree, to be seen later
# for now we got to live with "E: invalid-lc-messages-dir"
# I'd like to avoid rpmlintrc usage.
# If someone have a fix please push it.
# FIXME: (gvm) Perhaps could we simply remove the offending language files,
# until the lang tree will be updated to provide the needed support?
rm -rf %{buildroot}%{_datadir}/locale/es_ar

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1170 |21cr|dvdwizard-0.7.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DVD-Video creation wrapper
Name:		dvdwizard
Version:	0.7.0
Release:	5
License:	GPLv3+
Group:		Archiving/Cd burning
Url:		http://udrecsuite.sourceforge.net/doku_dvdwizard.html
Source0:	http://www.wershofen.de/downloads/%{name}-%{version}.tar.gz
Patch1:		dvdwizard-disable-pdf.patch
BuildRequires:	dvdauthor
BuildRequires:	imagemagick
BuildRequires:	mjpegtools
BuildRequires:	texinfo
BuildRequires:	texlive-texinfo
Requires:	bc
Requires:	dvdauthor
Requires:	imagemagick
Requires:	mjpegtools
Requires:	transcode
BuildArch:	noarch

%description
dvdwizard is a wrapper-script which incorporates a fully automated creation of
a DVD-structure with Chapters and menus from one or more mpeg-streams. This is
done by several "sub-scripts" and various freely available tools. Needless to
say, that dvdwizard is distributed under the GPL as well.

%files -f %{name}.lang
%doc %{_defaultdocdir}/%{name}
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/Clapperboard.svg
%{_mandir}/*/*
%{_infodir}/*
%config(noreplace) %{_sysconfdir}/%{name}.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}
%makeinstall_std prefix=%{_prefix}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1171 |21cr|dvi2tty-5.3.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#debuginfo-without-sources
%define debug_package	%{nil}

Name:		dvi2tty
Version:	5.3.4
Release:	4
Summary:	Tool for previewing DVI files on text-only devices
Group:		Text tools
URL:		http://www.mesa.nl/pub/dvi2tty/
Source:		http://www.mesa.nl/pub/dvi2tty/%{name}-%{version}.tgz
Patch0:		dvi2tty-5.3.4-pager.patch
License:	GPLv2


%description
dvi2tty is a tool for previewing DVI files on text-only devices. It is
used by MC for viewing DVI files.

%prep
%setup -q
%patch0 -p0 -b .pager

%build
%make

%install
mkdir -p %buildroot%_bindir
mkdir -p %buildroot%_mandir/man1
install -m 755 dvi2tty disdvi %buildroot%_bindir
install -m 644 dvi2tty.1 disdvi.1 %buildroot%_mandir/man1

%files
%_bindir/*
%_mandir/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1172 |21cr|dvorak7min-1.6.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Typing tutor for dvorak keyboards
Name:		dvorak7min
Version:	1.6.1
Release:	5
License:	GPLv2+
Group:		Games/Other
Url:		https://packages.debian.org/unstable/games/dvorak7min
Source0:	dvorak7min_1.6.1.orig.tar.gz
# debian patch
Patch0:		dvorak7min_1.6.1-9.diff.gz
BuildRequires:	pkgconfig(ncurses)

%description
dvorak7min is a typing tutor to help you learn dvorak.

%files
%doc ChangeLog COPYING README
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make PROF="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
cp -p %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1173 |21cr|dvtm-0.15-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tiling window management for the console
Name:		dvtm
Version:	0.15
Release:	5
License:	MIT
Group:		Terminals
Url:		http://www.brain-dump.org/projects/dvtm/
Source0:	http://www.brain-dump.org/projects/dvtm/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
Patch0:		%{name}-debug-fix.patch
Recommends:	abduco
Conflicts:	ncurses-extraterms

%description
Dvtm brings the concept of tiling window management, popularized by
X11-window managers like dwm to the console. As a console window manager
it tries to make it easy to work with multiple console based programs
like vim, mutt, cmus or irssi.

%files
%doc README.*
%license LICENSE
%{_bindir}/%{name}
%{_bindir}/%{name}-status
%{_datadir}/terminfo/d/%{name}
%{_datadir}/terminfo/d/%{name}-256color
%{_mandir}/man1/%{name}.1*

#---------------------------------------------------------

%prep
%autosetup -p1

%build
sed -i 's/PREFIX.*local*/PREFIX\ =\ \/usr\//' config.mk
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1174 |21cr|dwm-6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A minimalist window manager for the X Window System
Name:		dwm
Version:	6.4
Release:	1
License:	MIT
Group:		Graphical desktop/Other
Url:		http://dwm.suckless.org
Source0:	http://dl.suckless.org/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}.png
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xft)
Requires:	dwm-tools
Requires:	xmessage
Requires:	xterm

%description
dwm is a dynamic window manager for X.

It manages windows in tiled and floating layouts. Either layout can be applied
dynamically, optimizing the environment for the application in use and the
task performed. It is the little brother of wmii.

%files
%defattr(-,root,root,755)
%doc LICENSE README
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/40%{name}
%{_bindir}/%{name}
%{_bindir}/start%{name}
%{_mandir}/man1/dwm.1*
%{_datadir}/icons/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CC="gcc %{optflags} %{ldflags}"

%install
%makeinstall_std DESTDIR=%{buildroot} PREFIX=%{_prefix}

# startfile
cat > %{buildroot}%{_bindir}/start%{name} << EOF
#!/bin/sh
exec %{_bindir}/%{name}
EOF

chmod 755 %{buildroot}%{_bindir}/start%{name}

# session file
install -d %{buildroot}%{_sysconfdir}/X11/wmsession.d
cat > %{buildroot}%{_sysconfdir}/X11/wmsession.d/40%{name} << EOF
NAME=%{name}
EXEC=%{_bindir}/start%{name}
DESC=%{name} window manager
SCRIPT:
exec %{_bindir}/start%{name}
EOF

mkdir -p %{buildroot}%{_datadir}/icons/
cp -f %{SOURCE1} %{buildroot}%{_datadir}/icons/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1175 |21cr|dwm-tools-37-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define dmenu_version 5.3
%define lsw_version 0.3
%define slock_version 1.5
%define sselp_version 0.2
%define ssid_version 0.1
%define swarp_version 0.1
%define tabbed_version 0.8
%define wmname_version 0.1

Summary:	Dwm Window Manager Tools
Name:		dwm-tools
Version:	37
Release:	1
License:	MIT
Group:		Graphical desktop/Other
Url:		http://www.suckless.org
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
Provides:	dmenu = %{dmenu_version}
Provides:	lsw = %{lsw_version}
Provides:	slock = %{slock_version}
Provides:	sselp = %{sselp_version}
Provides:	ssid = %{ssid_version}
Provides:	swarp = %{swarp_version}
Provides:	tabbed = %{tabbed_version}
Provides:	wmname = %{wmname_version}

%description
Dwm tools is a set of tools for some WM such as wmii, dwm, etc.

%files
%attr(0755,root,root) %{_bindir}/*
%{_datadir}/man/man*/*
%doc %{_docdir}/tabbed/README

#----------------------------------------------------------------------------

%prep
%setup -q
for tarballs in dmenu-%{dmenu_version}.tar.gz lsw-%{lsw_version}.tar.gz slock-%{slock_version}.tar.gz sselp-%{sselp_version}.tar.gz ssid-%{ssid_version}.tar.gz swarp-%{swarp_version}.tar.gz tabbed-%{tabbed_version}.tar.gz wmname-%{wmname_version}.tar.gz; \
do \
   tar xf $tarballs; \
done

%build
for dwmtools in dmenu-%{dmenu_version} lsw-%{lsw_version} slock-%{slock_version} sselp-%{sselp_version} ssid-%{ssid_version} swarp-%{swarp_version} tabbed-%{tabbed_version} wmname-%{wmname_version}; \
do \
   make -C $dwmtools PREFIX=%{_prefix}; \
done

%install
# bug in tabbed, man file missing
touch tabbed-%{tabbed_version}/xembed.1

for dwmtools in dmenu-%{dmenu_version} lsw-%{lsw_version} slock-%{slock_version} sselp-%{sselp_version} ssid-%{ssid_version} swarp-%{swarp_version} tabbed-%{tabbed_version} wmname-%{wmname_version}; \
do \
   make -C $dwmtools install DESTDIR=%{buildroot} PREFIX=%{_prefix}; \
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1176 |21cr|dxc-1.7.2207-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define libname %mklibname dxcompiler
%define devname %mklibname dxcompiler -d

%define oname DirectXShaderCompiler

Summary:  DirectX Shader Compiler
Name:     dxc
Version:  1.7.2207
Release:  1
License:   Apache License with LLVM-exception or NCSA
Group:    Graphics
URL:      https://github.com/microsoft/DirectXShaderCompiler/
Source0:  https://github.com/microsoft/DirectXShaderCompiler/archive/v%{version}/%{oname}-%{version}.tar.gz
# use spirv from system not supported
Source1:  https://github.com/KhronosGroup/SPIRV-Headers/archive/0bcc624926a25a2a273d07877fd25a6ff5ba1cfb.tar.gz
Source2:  https://github.com/KhronosGroup/SPIRV-Tools/archive/71b2aee6c868a673ec82d1385f97593aa2881316.tar.gz
# effcee not in repo, need new version re2 library
Source3:  https://github.com/google/effcee/archive/35912e1b7778ec2ddcff7e7188177761539e59e0.tar.gz

BuildRequires: git
BuildRequires: cmake
BuildRequires: ninja
BuildRequires: ocaml
BuildRequires: xz
BuildRequires: libxml2-devel

%description
The DirectX Shader Compiler project includes a compiler and related tools used to compile
High-Level Shader Language (HLSL) programs into DirectX Intermediate Language (DXIL) representation.
Applications that make use of DirectX for graphics, games, and computation can use it to generate shader programs.

%files
%doc README.md
%license LICENSE.TXT
%{_bindir}/dxc*

#------------------------------------------------------------------

%package -n %{libname}
Summary:  DirectX Shader Compiler library
Group:    Graphics

%description -n %{libname}
DirectX Shader Compiler standalone dynamic library

%files -n %{libname}
%{_libdir}/libdxcompiler.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:  DirectX Shader Compiler library development files
Group:    Graphics
Requires: %{libname} = %{EVRD}

%description -n %{devname}
DirectX Shader Compiler standalone dynamic library

%files -n %{devname}
%{_includedir}/dxc
%{_libdir}/libdxcompiler.so
%{_libdir}/libdxclib.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

pushd external
rmdir SPIRV-Headers
tar xf %{S:1}
mv SPIRV-Headers-* SPIRV-Headers
rmdir SPIRV-Tools
tar xf %{S:2}
mv SPIRV-Tools-* SPIRV-Tools
rmdir effcee
tar xf %{S:3}
mv effcee-* effcee
popd

%build
ulimit -Sn 4000
export CFLAGS="%{optflags} -ffat-lto-objects"
export CXXFLAGS="%{optflags} -fpermissive"
export LDFLAGS="-Wl,-O1 -Wl,--gc-sections"

%cmake .. \
    -G Ninja \
    -DCMAKE_C_FLAGS="${CFLAGS}" \
    -DCMAKE_CXX_FLAGS="${CXXFLAGS}" \
    -DCMAKE_EXE_LINKER_FLAGS="${LDLAGS}" \
    -DCMAKE_MODULE_LINKER_FLAGS="${LDLAGS}" \
    -DCMAKE_SHARED_LINKER_FLAGS="${LDLAGS}" \
    -DCMAKE_INSTALL_PREFIX="%{_prefix}" \
    -DCMAKE_SKIP_RPATH=OFF \
    -DCMAKE_INSTALL_RPATH="" \
    -DCMAKE_BUILD_WITH_INSTALL_RPATH=OFF \
    -DCMAKE_SKIP_INSTALL_RPATH=ON \
    -C ../cmake/caches/PredefinedParams.cmake \
    -DHLSL_OFFICIAL_BUILD=ON \
    -DHLSL_OPTIONAL_PROJS_IN_DEFAULT=OFF \
    -DLLVM_USE_FOLDERS=OFF \
    -DLLVM_INSTALL_UTILS=OFF \
    -DLLVM_INSTALL_TOOLCHAIN_ONLY=ON \
    -DBUILD_SHARED_LIBS=OFF \
    -DHLSL_INCLUDE_TESTS=OFF \
    -DENABLE_SPIRV_CODEGEN=ON \
    -DSPIRV_BUILD_TESTS=OFF \
    -DLLVM_USE_INTEL_JITEVENTS=ON

%ninja_build

%install
%ninja_install -C build

mkdir -p %{buildroot}%{_includedir} || echo "whatever"
if [ ! -d "%{buildroot}%{_includedir}/dxc" ]; then
    mv -v build/include/dxc %{buildroot}%{_includedir}/
fi
mkdir -p %{buildroot}/%{_libdir} || echo "whatever"
if [ ! -f "%{buildroot}/%{_libdir}/libdxcompiler.so" ]; then
    mv -v build/lib*/libdxc* %{buildroot}/%{_libdir}/
fi
%if "%{_lib}" == "lib64"
# fix correct lib folder
if [ -d "%{buildroot}/%{_exec_prefix}/lib" ]; then
    mkdir -p %{buildroot}/%{_libdir} || echo "whatever"
    mv -v %{buildroot}/%{_exec_prefix}/lib/* %{buildroot}/%{_libdir}/
    rmdir %{buildroot}/%{_exec_prefix}/lib || echo "whatever"
fi
%endif

# Remove static libraries, don't think they are needed at all
#rm #{buildroot}/#{_libdir}/*.a

# Libclang and friends of this fork are harmful, use "real"
# libclang
rm -rf %{buildroot}%{_includedir}/clang-c \
 %{buildroot}%{_libdir}/libclang.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1177 |21cr|dxf2fig-2.13-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert dxf files to xfig format
Name:		dxf2fig
Version:	2.13
Release:	9
License:	GPL
Group:		Graphics
Url:		http://ta.twi.tudelft.nl/ftp/dv/lemmens/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		dxf2fig-format-string.patch

%description
dxf2fig parses Autocad DXF input, then calls external
routines to do either plotting or a fig conversion for xfig.
The conversion is fairly complete. Layers (depths in xfig),
blocks (compounds in xfig), colors, and linetypes are roughly
preserved in the output file. 

%prep
%setup -q
%patch0 -p0 -b .fmt

%build
%make CFLAGS="%{optflags} -DVERSION=\\\"\$(VERSION)\\\" -DMODDATE=\\\"\$(MODDATE)\\\""

%install
mkdir -p %{buildroot}%{_bindir}
cp dxf2fig %{buildroot}%{_bindir}

%files
%doc README TODO Changelog
%{_bindir}/dxf2fig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1178 |21cr|dynagen-0.11.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		dynagen
Version:	0.11.0
Release:	5
Summary:	A configuration tool the dynamips Cisco router simulator
Group:		Emulators
License:	GPL
URL:		http://dyna-gen.sourceforge.net/
Source:		http://downloads.sourceforge.net/dyna-gen/dynagen-%{version}.tar.gz
# Patch for gdynagen, shipped in gdynagen tarball, merged in dynagen svn
# http://gdynagen.sourceforge.net/
Patch0:		dynagen-python3.patch
Recommends:	dynamips >= 0.2.8
Recommends:	xterm
#Requires:	dynamips
BuildArch:	noarch


%description
Dynagen is a front-end for use with the  Dynamips Cisco router emulator. It
uses an INI-like configuration file to provision Dynamips emulator networks. It
takes care of specifying the right port adapters, generating and matching up
those pesky NIO descriptors, specifying bridges, frame-relay, ATM switches,
etc. It also provides a management CLI for listing devices, suspending and
reloading instances, determining and managing idle-pc values, etc.

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%attr (644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.ini
%{_datadir}/%{name}
#%{python3_sitelib}/dynamips_lib.py
%defattr(644,root,root,755)
%doc docs sample_labs README.txt dynagen.ini

#---------------------------------------------------------------------
%prep
%autosetup -p1
for file in `find . -type f`
do perl -pi -e 'BEGIN {exit unless -T $ARGV[0];}s/\r\n$/\n/;' $file
done

%build

%install
mkdir -p %{buildroot}/{%{_datadir}/%{name},%{_sysconfdir},%{_bindir},%{python3_sitelib}}
install configspec *.py *.sh %{buildroot}/%{_datadir}/%{name}
#install dynamips_lib.py %{buildroot}/%{python3_sitelib}
install -m755 dynagen %{buildroot}/%{_datadir}/%{name}
install %{name}.ini %{buildroot}/%{_sysconfdir}
ln -s %{_datadir}/%{name}/%{name} %{buildroot}/%{_bindir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1179 |21cr|dynamips-0.2.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	MIPS64 emulator able to emulate the Cisco 7200 and 3600 platforms
Name:		dynamips
Version:	0.2.22
Release:	1
License:	GPLv2+
Group:		Emulators
URL:		https://github.com/GNS3/dynamips
Source0:	https://github.com/GNS3/dynamips/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	libpcap-devel
BuildRequires:	elfutils-devel
BuildRequires:	pkgconfig(uuid)
#ExclusiveArch:	%ix86 x86_64

%description
I started in August 2005 a project to emulate a Cisco 7200 on a traditional
PC. Now, it also supports Cisco 3600 series (3620, 3640 and 3660).
The goals of this emulator are mainly:
  * To be used as a training platform, with software used in real world. It
    would allow people to become more familiar with Cisco devices, Cisco
    being the world leader in networking technologies.
  * Test and experiment the numerous and powerful features of Cisco IOS.
  * Check quickly configurations to be deployed later on real routers.
Of course, this emulator cannot replace a real router: you should be able to
get a performance of about 1 kpps (depending on your host machine), to be
compared to the 100 kpps delivered by a NPE-100 (the oldest NPE model). So, it
is simply a complementary tool to real labs for administrators of Cisco
networks or people wanting to pass their CCNA/CCNP/CCIE exams. 

%files
%doc ChangeLog COPYING README.hypervisor RELEASE-NOTES TODO
%doc %{_mandir}/man1/*
%doc %{_docdir}/dynamips/MAINTAINERS
%doc %{_docdir}/dynamips/README.md

%{_bindir}/*
%dir /var/lib/%{name}/images
%dir /var/lib/%{name}/labs
%{_mandir}/man7/hypervisor_mode.*

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%ifarch x86_64
export DYNAMIPS_ARCH=amd64
%endif

%cmake
%make

%install
%makeinstall_std -C build
chmod u+s %{buildroot}/usr/bin/dynamips
# Still needed?
mkdir -p %{buildroot}/var/lib/%{name}/{labs,images}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1180 |21cr|dynare-5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Software platform for handling a wide class of economic models
Name:		dynare
Version:	5.2
Release:	1
License:	GPLv3+
Group:		Sciences/Mathematics
Url:		http://www.dynare.org/
Source0:	https://www.dynare.org/release/source/dynare-%{version}.tar.xz
Patch1:		dynare-autotools.patch
Patch2:		dynare-no-return-in-non-void-function.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconf-devel
BuildRequires:	boost-devel
BuildRequires:	octave-devel
BuildRequires:	umfpack-devel
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(matio)

%description
Dynare is a software platform for handling a wide class of economic models, in
particular dynamic stochastic general equilibrium (DSGE) and overlapping
generations (OLG) models. The models solved by Dynare include those relying on
the rational expectations hypothesis, wherein agents form their expectations
about the future in a way consistent with the model. But Dynare is also able
to handle models where expectations are formed differently: on one extreme,
models where agents perfectly anticipate the future; on the other extreme,
models where agents have limited rationality or imperfect knowledge of the
state of the economy and, hence, form their expectations through a learning
process. In terms of types of agents, models solved by Dynare can incorporate
consumers, productive firms, governments, monetary authorities, investors and
financial intermediaries. Some degree of heterogeneity can be achieved by
including several distinct classes of agents in each of the aforementioned
agent categories.

%files
%doc README* NEWS* CONTRIBUTING* COPYING
%{_bindir}/dynare++
%{_bindir}/dynare-preprocessor
%dir %{_libdir}/dynare/
%{_libdir}/dynare/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

#update config.guess and config.sub files
for f in config.guess config.sub ; do
        test -f /usr/share/libtool/config/$f || continue
        find . -type f -name $f -exec cp /usr/share/libtool/config/$f \{\} \;
done

%build
export LDFLAGS="%{ldflags}"

autoreconf -fi
# FIXME!
# use %%configure macros fail on rebuild configure in mex/build/octave and mex/build/matlab
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--sysconfdir=%{_sysconfdir} \
	--localstatedir=%{_localstatedir} \
	--disable-matlab \
	--enable-octave \
	--disable-doc \
	--disable-mex-kalman-steady-state
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1181 |21cr|dzen2-0.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Этот древний пакет нужен для herbstluftwm
%define debug_pakage %nil
%define oversion 1379930259.488ab66

Summary:	A general purpose messaging and notification program
Summary(ru_RU.UTF-8):	Программа для обмена сообщениями и уведомлений общего назначения
Name:		dzen2
Version:	0.9.5
Release:	1
License:	MIT
Group:		Graphical desktop/Other
Url:		http://robm.github.io/dzen/
Source0:	%{name}-%{oversion}.tar.gz
### Manpages extracted from debian package and included here
### URL: http://ftp.us.debian.org/debian/pool/main/d/dzen2/dzen2_0.8.5-4_armel.deb
### *.deb Exctract: ar -x dzen2_0.8.5-4_armel.deb
Source1:	%{name}_man.tar.bz2
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)

%description
Dezen is a general purpose messaging, notification and menuing program for X11.
It was designed to be scriptable in any language and integrate well with
window managers like dwm, wmii and xmonad though it will work with any windowmanger.

%description -l ru_RU.UTF-8
Dezen - это программа общего назначения для обмена сообщениями, уведомлений и меню для X11.
Она была разработана с возможностью написания сценариев на любом языке и хорошо интегрируется с
оконными менеджерами, такими как dwm, wmii и xmonad, хотя она будет работать с любым оконным менеджером.

%files
%doc CREDITS README
%license LICENSE
%{_bindir}/%{name}
%{_bindir}/%{name}-dbar
%{_bindir}/%{name}-gcpubar
%{_bindir}/%{name}-gdbar
%{_bindir}/%{name}-textwidth
%{_mandir}/man1/%{name}*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{oversion} -a1

%build
sed -i '/^CFLAGS/ s/$/ %{optflags}/' config.mk
sed -i '/^CFLAGS/ s/$/ %{optflags}/' gadgets/config.mk
sed -i 's@strip@true@g' Makefile
sed -i 's@strip@true@g' gadgets/Makefile

%make
pushd gadgets
%make
popd

%install
%make_install PREFIX=%{_prefix}

mkdir -p %{buildroot}%{_mandir}/man1
tar -jxf %{SOURCE1} -C %{buildroot}%{_mandir}/man1

pushd gadgets
%make_install PREFIX=%{_prefix}
popd

pushd %{buildroot}%{_bindir}
for i in dbar gcpubar gdbar textwidth; do
	mv $i %{name}-$i
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1182 |21cr|e00compr-1.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools to Read/Write Compressed E00 Files
Name:		e00compr
Version:	1.0.1
Release:	6
License:	BSD-like
Group:		Sciences/Geosciences
Url:		http://avce00.maptools.org/e00compr
Source0:	http://avce00.maptools.org/dl/%{name}-%{version}.tar.bz2

%description
E00Compr is an Open Source (i.e. Free!) ANSI-C library to compress and
uncompress Arc/Info Export (E00) files.

For those who do not need a library but simply want to convert some files, the
package includes the "E00CONV" conversion program that allows you to convert a
E00 file to and from any compression level (NONE, PARTIAL or FULL).

%files
%{_bindir}/e00conv

#----------------------------------------------------------------------------

%package devel
Summary:	A Library to Read/Write Compressed E00 Files
Group:		Development/Other

%description devel
E00Compr is an Open Source (i.e. Free!) ANSI-C library to compress and
uncompress Arc/Info Export (E00) files.

The C library can be easily plugged into existing E00 translators to add
support for compressed E00 files simply by replacing the existing translator's
read/write function by the E00ReadNextLine() and E00WriteNextLine() functions
provided by the library. See the library documentation for all the details.

This package includes the development files (headers and static library)
for developing applications which use the e00 library.

%files devel
%{_includedir}/*.h
%{_libdir}/e00compr.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
install -d %{buildroot}/{%{_includedir},%{_bindir},%{_libdir}}
install -m644 *.h %{buildroot}/%{_includedir}
install *.a %{buildroot}/%{_libdir}
install -m755 e00conv %{buildroot}/%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1183 |21cr|e-0.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define use_ccache 1
%define oname enlightenment

%define _disable_ld_no_undefined 1

Summary:	Enlightenment DR 17 window manager
Name:		e
Version:	0.26.0
Release:	1
License:	BSD
Group:		Graphical desktop/Enlightenment
Url:		http://www.enlightenment.org/
Source0:	http://download.enlightenment.org/rel/apps/%{oname}/%{oname}-%{version}.tar.xz
# When we have it:
#Source1:	some-theme.edj.bz2
Patch0:		e17_sysactions.conf.patch

BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	edje
BuildRequires:	eet
BuildRequires:	embryo
BuildRequires:	systemd-units
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(ecore) >= 1.18.2
BuildRequires:	pkgconfig(ecore-con) >= 1.18.2
BuildRequires:	pkgconfig(ecore-evas) >= 1.18.2
BuildRequires:	pkgconfig(ecore-file) >= 1.18.2
BuildRequires:	pkgconfig(ecore-input) >= 1.18.2
BuildRequires:	pkgconfig(ecore-input-evas) >= 1.18.2
BuildRequires:	pkgconfig(ecore-ipc) >= 1.18.2
BuildRequires:	pkgconfig(ecore-x) >= 1.18.2
BuildRequires:	pkgconfig(edje) >= 1.18.2
BuildRequires:	pkgconfig(eet) >= 1.18.2
BuildRequires:	pkgconfig(eeze) >= 1.18.2
BuildRequires:	pkgconfig(efreet) >= 1.18.2
BuildRequires:	pkgconfig(efreet-mime) >= 1.18.2
BuildRequires:	pkgconfig(efreet-trash) >= 1.18.2
BuildRequires:	pkgconfig(eina) >= 1.18.2
BuildRequires:	pkgconfig(eio) >= 1.18.2
BuildRequires:	pkgconfig(eldbus) >= 1.18.2
BuildRequires:	pkgconfig(elementary) >= 1.18.2
BuildRequires:	pkgconfig(ethumb)
BuildRequires:	pkgconfig(evas) >= 1.18.2
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(xkeyboard-config)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-shape)

#Requires:	acpitool
Requires:	pm-utils
Requires:	eet >= 1.18.2
Requires:	ecore >= 1.18.2
Requires:	efreet >= 1.18.2
Requires:	elementary >= 1.18.2
Requires:	embryo >= 1.18.2
Requires:	emotion >= 1.18.2
Requires:	eldbus >= 1.18.2
Requires:	evas >= 1.18.2
#Suggests:	econnman
Obsoletes:	emotion_generic_players < 1.18

Provides:	%{oname} = %{EVRD}

%description
E19 is a next generation window manager for UNIX operating systems. Based on
the Enlightenment Foundation Libraries (EFL), E19 is much more than just
another window manager - it's an ambitious and innovative project that aims
to drive the development of graphical applications industry-wide for several
years to come.

%files -f %{oname}.lang
%doc AUTHORS README.md COPYING doc/*
%config(noreplace) %{_sysconfdir}/%{oname}/sysactions.conf
%config(noreplace) %{_sysconfdir}/%{oname}/system.conf
%{_sysconfdir}/xdg/menus/e-applications.menu
%{_bindir}/%{oname}
%{_bindir}/%{oname}_*
%{_bindir}/emixer
%{_datadir}/%{oname}
%{_datadir}/applications/emixer.desktop
%{_datadir}/applications/enlightenment_filemanager.desktop
%{_datadir}/applications/enlightenment_askpass.desktop
%{_datadir}/applications/enlightenment_fprint.desktop
%{_datadir}/applications/enlightenment_paledit.desktop
%{_datadir}/pixmaps/*.png
%{_iconsdir}/hicolor/*/*/*.png
%{_iconsdir}/hicolor/scalable/*/*.svg
%{_datadir}/xsessions/%{oname}.desktop
%{_libdir}/%{oname}
%{_unitdir}/enlightenment.service

#----------------------------------------------------------------------------

%package devel
Summary:	Enlightenment library headers and development libraries
Group:		Development/C

%description devel
E19 development headers and development libraries.

%files devel
%{_bindir}/%{oname}-config
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{oname}

# Put systemd service to proper path
mkdir -p %{buildroot}%{_unitdir}/
mv %{buildroot}%{_prefix}/lib/systemd/user/enlightenment.service %{buildroot}%{_unitdir}/enlightenment.service

#fake e-config
touch %{buildroot}/%{_bindir}/%{oname}-config

#fix bad perms
#chmod a=rx,u+xws %{buildroot}%{_libdir}/%{oname}/modules/cpufreq/linux-*/freqset
#chmod a=rx,u+xws %{buildroot}%{_libdir}/%{oname}/utils/enlightenment_sys
#chmod a=rx,u+xws %{buildroot}%{_libdir}/%{oname}/utils/enlightenment_backlight

# When we have our own theme
# rename default theme, so we can replace it with our theme
#mv %{buildroot}%{_datadir}/enlightenment/data/themes/default.edj %{buildroot}%{_datadir}/enlightenment/data/themes/original-default.edj
# add our theme as default
#bzcat %{SOURCE1} > %{buildroot}%{_datadir}/enlightenment/data/themes/default.edj

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1184 |21cr|e17_themes-0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Enlightenment DR 17 themes
Name: 		e17_themes
Version: 	0.2
Release: 	6
License: 	BSD
Group: 		Graphical desktop/Enlightenment
URL:		http://exchange.enlightenment.org/theme/
#Source0:	Natural_Yellow.edj.bz2
#Source1:	bwsquared.edj.bz2
Source2:	cerium.edj.bz2
#Source3:	crude.edj.bz2
#Source4:	cthulhain-0.5.8.edj.bz2
#Source5:	grunge.edj.bz2
Source6:	milky1.0-Beta8.edj.bz2
#Source7:	nyz-0.3.edj.bz2
Source8:	simply-white-1.0.2.edj.bz2
Source9:	steampunk_0_18.edj.bz2
Source10:	edjy-b.edj.bz2
#Source11:	fireball.edj.bz2
Source12:	A-Beautiful-Blue.edj.bz2
Requires:	e >= 0.16.999.050

%description
E17 theme from exchange.enlightenment.org.

%prep

%build

%install
rm -fr %{buildroot}
mkdir -p %buildroot/%{_datadir}/enlightenment/data/themes/
#cp -av %{SOURCE1} %buildroot/%{_datadir}/enlightenment/data/themes/
cp -av %{SOURCE2} %buildroot/%{_datadir}/enlightenment/data/themes/
#cp -av %{SOURCE3} %buildroot/%{_datadir}/enlightenment/data/themes/
#cp -av %{SOURCE4} %buildroot/%{_datadir}/enlightenment/data/themes/
#cp -av %{SOURCE5} %buildroot/%{_datadir}/enlightenment/data/themes/
cp -av %{SOURCE6} %buildroot/%{_datadir}/enlightenment/data/themes/
#cp -av %{SOURCE7} %buildroot/%{_datadir}/enlightenment/data/themes/
cp -av %{SOURCE8} %buildroot/%{_datadir}/enlightenment/data/themes/
cp -av %{SOURCE9} %buildroot/%{_datadir}/enlightenment/data/themes/
cp -av %{SOURCE10} %buildroot/%{_datadir}/enlightenment/data/themes/
#cp -av %{SOURCE11} %buildroot/%{_datadir}/enlightenment/data/themes/
cp -av %{SOURCE12} %buildroot/%{_datadir}/enlightenment/data/themes/

pushd %buildroot/%{_datadir}/enlightenment/data/themes/
for theme in *.bz2
do
bunzip2 -fv $theme
done
popd

%clean

%files
%defattr(-,root,root)
%{_datadir}/enlightenment/data/themes/*.edj

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1185 |21cr|e2guardian-5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		e2guardian
Version:	5.5
Release:	1
Summary:	Open Source web content filter
License:	GPLv2+
Group:		System/Servers
URL:		http://e2guardian.org/cms/
Source0:	https://github.com/e2guardian/e2guardian/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	e2guardian.service
Patch0:		e2guardian-mga_conf.patch
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libpcreposix)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	libesmtp-devel
Provides:	dansguardian

Recommends:	webproxy

%description
e2guardian is an Open Source web content filter, It filters the actual
content of pages based on many methods including phrase matching, request
header and URL filtering, etc. It does not purely filter based on a banned
list of sites.
e2guardian is a content filtering proxy that works in conjunction with
another caching proxy such as Squid or Oops.
e2guardian is a fork of DansGuardian and the maintainers fully acknowledge
the work carried out by and the copyright of Daniel Baron and other
contributors to the Dansguardian project.

%prep
%autosetup -p1

# fix permission
chmod 0644 doc/* AUTHORS ChangeLog COPYING

%build
NOCONFIGURE=1 ./autogen.sh

%configure \
	--localstatedir=%{_var}/lib \
	--disable-silent-rules \
	--enable-pcre=yes \
	--enable-clamd=yes \
	--enable-icap=yes \
	--enable-kavd=no \
	--enable-commandline=yes \
	--enable-ntlm=yes \
	--enable-email=yes \
	--enable-orig-ip=yes \
	--enable-sslmitm=yes \
	--with-proxyuser=%{name} \
	--with-proxygroup=%{name} \
	--with-logdir=%{_var}/log/%{name} \
	--with-piddir=/run \
	--with-sysconfsubdir=%{name}

%make_build

%install
%make_install

# systemd service
install -Dpm 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

# access log file
install -d %{buildroot}%{_var}/log/%{name}
touch %{buildroot}%{_var}/log/%{name}/access.log

install -d %{buildroot}%{_var}/lib/%{name}/tmp

# cgi-script
install -d %{buildroot}%{_var}/www/cgi-bin
install -m 0755 data/e2guardian.pl %{buildroot}%{_var}/www/cgi-bin/

# make sure this file is present
echo "localhost" >> %{buildroot}%{_sysconfdir}/%{name}/lists/exceptionfileurllist

# construct file lists
find %{buildroot}%{_sysconfdir}/%{name} -type d | \
    sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0755,root,root) %dir /' > %{name}.filelist

find %{buildroot}%{_sysconfdir}/%{name} -type f | grep -v "\.orig" | \
    sed -e "s|%{buildroot}||" | sed -e 's/^/%attr(0644,root,root) %config(noreplace) /' >> %{name}.filelist

# logrotate file
install -d %{buildroot}%{_sysconfdir}/logrotate.d
cat << EOF > %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
/var/log/%{name}/access.log {
    create 644 %{name} %{name}
    rotate 5
    weekly
    sharedscripts
    prerotate
	service %{name} stop
    endscript
    postrotate
	service %{name} start
    endscript
}
EOF

# README.urpmi Mageia file
cat > README.urpmi << EOF
Make sure to change your /etc/%{name}/%{name}.conf to reflect your own settings.
Special attention must be given to the port that the proxy server is listening to,
the port that %{name} will listen to and to the web url to the %{name}.pl cgi-script.

Author: Daniel Barron
daniel@jadeb.com
EOF

# cleanup
rm -rf %{buildroot}%{_datadir}/%{name}/scripts
rm -rf %{buildroot}%{_datadir}/doc/e2guardian*

%pre
%_pre_useradd %{name} /var/lib/%{name} /bin/false

%preun
%_preun_service %{name}
if [ $1 = 0 ] ; then
    rm -f /var/log/%{name}/*
fi

%post
%create_ghostfile /var/log/%{name}/access.log %{name} %{name} 644
%_post_service %{name}

%postun
%_postun_userdel %{name}

%files -f %{name}.filelist
%doc AUTHORS ChangeLog README.md README.urpmi
%doc doc/{AuthPlugins,ContentScanners,DownloadManagers}
%doc doc/{FAQ,FAQ.html,Plugins}
%license COPYING
%{_sbindir}/%{name}
%{_datadir}/%{name}/
%{_unitdir}/%{name}.service
%{_mandir}/man8/%{name}.8*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0755,root,root) %{_var}/www/cgi-bin/%{name}.pl
%dir %attr(0755,%{name},%{name}) %{_var}/log/%{name}
%dir %attr(0755,%{name},%{name}) %{_var}/lib/%{name}
%dir %attr(0755,%{name},%{name}) %{_var}/lib/%{name}/tmp
%ghost %attr(0644,%{name},%{name}) %{_var}/log/%{name}/access.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1186 |21cr|e2tools-0.0.16-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           e2tools
Version:        0.0.16
Release:        14
Summary:        Manipulate files in unmounted ext2/ext3 filesystems

Group:          System/Kernel and hardware
License:        GPLv2
URL:            http://home.earthlink.net/~k_sheff/sw/e2tools/
Source0:        http://home.earthlink.net/~k_sheff/sw/e2tools/%{name}-%{version}.tar.gz
Source1:        e2tools-test.sh
# Thank you very much for the man pages from Debian package.
Source2:        e2cp.1
Source3:        e2ln.1
Source4:        e2ls.1
Source5:        e2mkdir.1
Source6:        e2mv.1
Source7:        e2rm.1
Source8:        e2tail.1
Source9:        e2tools.7
Patch1:         e2tools-fedora-fixes.patch

BuildRequires:  pkgconfig(ext2fs) >= 1.27

# For e2tools-test.sh
BuildRequires:  e2fsprogs, diffutils


%description
A simple set of utilities to read, write, and manipulate files in an
ext2/ext3 filesystem directly using the ext2fs library. This works

  - without root access
  - without the filesystem being mounted
  - without kernel ext2/ext3 support

The utilities are: e2cp e2ln e2ls e2mkdir e2mv e2rm e2tail

%prep
%setup -q
%patch1 -p1

%build
sed -i '/e2cp_LDADD/s:-L@[^@]*@::' Makefile.in || die

%configure
%make  CPPFLAGS="-Wall"


%check
# Run tests
for e in e2ln e2ls e2mkdir e2mv e2rm e2tail; do
    ln -s e2cp $e
done
sh %{SOURCE1}


%install
%makeinstall_std
%{__install} -d %{buildroot}%{_mandir}/man1/
%{__install} \
    %{SOURCE2} \
    %{SOURCE3} \
    %{SOURCE4} \
    %{SOURCE5} \
    %{SOURCE6} \
    %{SOURCE7} \
    %{SOURCE8} \
    %{buildroot}%{_mandir}/man1/
%{__install} -D %{SOURCE9} %{buildroot}%{_mandir}/man7/e2tools.7


%files
%doc README ChangeLog TODO AUTHORS
%{_bindir}/e2cp
%{_bindir}/e2ln
%{_bindir}/e2ls
%{_bindir}/e2mkdir
%{_bindir}/e2mv
%{_bindir}/e2rm
%{_bindir}/e2tail
%doc %{_mandir}/man1/e2cp.1*
%doc %{_mandir}/man1/e2ln.1*
%doc %{_mandir}/man1/e2ls.1*
%doc %{_mandir}/man1/e2mkdir.1*
%doc %{_mandir}/man1/e2mv.1*
%doc %{_mandir}/man1/e2rm.1*
%doc %{_mandir}/man1/e2tail.1*
%doc %{_mandir}/man7/e2tools.7*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1187 |21cr|e3-2.82-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Tiny editor, well suited for rescue disks
Name:		e3
Version:	2.82
Release:	1
License:	GPLv2+
Group:		Editors
Url:		https://sites.google.com/site/e3editor/
Source0:	https://sites.google.com/site/e3editor/Home/%{name}-%{version}.tgz
# mark the stack as non-executable and disable tiny/crippled elf on 32
# bit linux so that stack can be marked as non-executable on it too
# http://www.gentoo.org/proj/en/hardened/gnu-stack.xml
Patch0:		e3-gnu-stack.patch
BuildRequires:	nasm
ExclusiveArch:	%{ix86} x86_64

%description
E3 is teeny tiny editor that doesn't depend on any libs.
e3 uses subset of wordstar|emacs|pico|vi|nedit commands.

%files
%doc README ChangeLog e3.html
%{_bindir}/e3
%{_bindir}/e3em
%{_bindir}/e3ne
%{_bindir}/e3pi
%{_bindir}/e3vi
%{_bindir}/e3ws
%{_mandir}/man1/e3*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
rm -rf bin

%build
%ifarch x86_64
make PREFIX=%{_prefix} MANDIR=%{_mandir}/man1 EXMODE=SED 64
%else
make PREFIX=%{_prefix} MANDIR=%{_mandir}/man1 EXMODE=SED 32
%endif

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m755 e3 %{buildroot}%{_bindir}/e3
install -m644 e3.man %{buildroot}%{_mandir}/man1/e3.1

# fix those softlinks
pushd %{buildroot}%{_bindir}
    for i in e3em e3ne e3pi e3vi e3ws; do
	ln -snf e3 ${i}
    done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1188 |21cr|easychem-0.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Name:		easychem
Summary:	2D molecular drawing program
Version:	0.6
Release:	10

Source0:	http://puzzle.dl.sourceforge.net/sourceforge/easychem/%{name}-%{version}.tar.bz2
Patch0:		easychem-0.6-rosa-linkage.patch
URL:		http://easychem.sourceforge.net/
License:	GPLv2+
Group:		Sciences/Chemistry
BuildRequires:	gtk2-devel

%description
EasyChem is a program designed to draw chemical molecules.  The problem in all
existing programs is: they intend to be easy to use at first try, kind of a
quick-and-dirty approach. EasyChem would be a bit difficult to learn, but when
you master it, you can be very fast, and with a huge precision. In fact, it's
just like a specialized vectorial drawing tool.

%prep
%setup -q
%patch0 -p1

%build
%make -f Makefile.linux C_FLAGS="%{?optflags} %{?ldflags}"

%install
install -D -m755 %{name} %{buildroot}/%{_bindir}/%{name}

#menu

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=EasyChem
Comment=2D Molecule Editor
Exec=%{name}
Icon=chemistry_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Sciences-Chemistry;Science;Chemistry;
EOF

%files
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1189 |21cr|easymp3gain-0.5.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Graphical user interface for MP3Gain, AACGain and VorbisGain (GTK2)
Name:		easymp3gain
Version:	0.5.0
Release:	7
License:	GPLv2+
Group:		Sound
Url:		http://easymp3gain.sourceforge.net
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
Source0:	%{name}-%{version}.src.tar.gz
Patch0:		easymp3gain-cpu.patch
Patch1:		easymp3gain-0.5.0-desktop.patch
Patch2:		fix_missing_LazarusDir.diff
Patch3:		fix_missing_overload_on_AddTask.diff
BuildRequires:	fpc
BuildRequires:	lazarus
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	mp3gain
Requires:	vorbisgain
ExclusiveArch:	%{ix86} %{x86_64}

%description
easyMP3Gain is a graphical user interface for MP3Gain, AACGain and VorbisGain.
The Interface looks similar to the one available for Windows.
It's a native GTK/GTK+ application, so it runs on Linux and FreeBSD/OpenBSD.

%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%ifarch %{ix86}
%patch0 -p1
%endif
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
make all

%install
./install.sh DESTDIR=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1190 |21cr|easynote-keys-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		easynote-keys
Version:	1.0
Release:	4
Summary:	Mappings for additional keys of Packard Bell EASYNOTE
License:	GPLv2+
Group:		System/Configuration/Hardware
BuildArch:	noarch
Requires:	xmodmap

%description
setkeycodes and Xmodmap settings for
Packard Bell EASYNOTE machines such as TE11HC-B8302G50Mnks

%prep

%build

%install

%post
cat >>/etc/rc.d/rc.local <<EOF
setkeycodes e01a 217     # added by easynote-keys
setkeycodes e034 219     # added by easynote-keys
setkeycodes e033 221     # added by easynote-keys
EOF

cat >>/etc/X11/Xmodmap <<EOF
! added by easynote-keys
keycode 229 = EuroSign
! added by easynote-keys
keycode 227 = dollar
EOF

%preun
sed -i '/added by easynote-keys/{N;d}' /etc/X11/Xmodmap
sed -i '/added by easynote-keys/d' /etc/rc.d/rc.local


%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1191 |21cr|easypaint-0.1.1-3.git81d7a8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname EasyPaint
%define commit 81d7a87d870f7f6f8069da305bfd5a1677637e56
%define short_commit %(echo %{commit} | head -c 6)

Summary:	A simple graphics painting program
Name:		easypaint
Version:	0.1.1
Release:	3.git%{short_commit}
License:	MIT
Group:		Graphics
Url:		https://github.com/Gr1N/EasyPaint
Source0:	https://github.com/Gr1N/EasyPaint/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source10:	easypaint_de_DE.ts
Source11:	easypaint_pl_PL.ts
Patch0:		easypaint-0.1.1-add-translations.patch
Patch1:		easypaint-0.1.1-fix-incomplete-type.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5PrintSupport)

%description
EasyPaint is a simple graphics painting program.

%files
%doc AUTHORS COPYING README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}_64.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{commit}
%patch0 -p2
%patch1 -p2

sed -i /^Version=0/d sources/media/easypaint.desktop

cp %{SOURCE10} %{SOURCE11} sources/translations/

%build
%qmake_qt5 sources/%{name}.pro

%install
%makeinstall_qt

mkdir -p %{buildroot}%{_datadir}/%{name}/translations/
for i in sources/translations/*.ts; do
	nametr=$(echo $i |rev |cut -d. -f2 |cut -d/ -f1 |rev)
	lconvert-qt5 $i -o %{buildroot}%{_datadir}/%{name}/translations/$nametr.qm
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1192 |21cr|easystroke-0.6.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#empty debug package
%define debug_package %{nil}

Summary:	A gesture-recognition application for X11
Name:		easystroke
Version:	0.6.0
Release:	6
License:	ISC
Group:		Accessibility
Url:		http://easystroke.sourceforge.net/
Source0:	http://garr.dl.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch0:		easystroke-0.6.0-fix-desktop-file.patch
Patch1:		replace-sigc-group-with-lambda.patch
Patch2:		easystroke-0.6.0-abs.patch
BuildRequires:	help2man
BuildRequires:	intltool
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gdkmm-3.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xorg-server)

%description
Easystroke is a gesture-recognition application for X11. Gestures or 
strokes are movements that you make with you mouse (or your pen, 
finger etc.) while holding down a specific mouse button. Easystroke 
will execute certain actions if it recognizes the stroke; currently 
easystroke can emulate key presses, execute shell commands, hold down 
modifiers and emulate a scroll wheel. 
The program was designed with Tablet PCs in mind and can be used 
effectively even without access to a keyboard. Easystroke tries to 
provide an intuitive and efficient user interface, while at the same 
time being highly configurable and offering many advanced features. 

%files -f %{name}.lang
%doc LICENSE changelog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
# fix PREFIX
sed -i -e 's:/usr/local:%{_prefix}:' Makefile

%build
%make \
	CXX="g++ %{optflags}" \
	CC="gcc -std=c99 %{optflags}" \
	LDFLAGS="%{ldflags}"

# man page
make man

%install
%makeinstall_std

# man page install
install -D -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1193 |21cr|easy-switcher-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		easy-switcher
Version:	0.3
Release:	2
Summary:	Easy Switcher - keyboard layout switcher for Linux 
Group:		System/X11
License:	GPL-2.0
URL:		https://github.com/freemind001/easy-switcher
Source:		https://github.com/freemind001/easy-switcher/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	fpc
Requires:	systemd

%description
Easy Switcher is a keyboard layout switcher and input corrector for Linux.
It runs as a daemon on your system, is independent from your desktop 
environment and windowing system, works with the keyboard 
directly via kernel input, so it is reliable and smooth.

Easy Switcher writes your keystrokes to internal buffer, 
and when you press a special key (Pause/Break by default), 
it erases what you have written, changes the layout, 
and writes the correct input back.

%files
%doc README.md
%license LICENSE
%attr(0755,root,root) %{_bindir}/%{name}

#-------------------------------------------------------
%prep
%setup -q

%build
fpc *.lpr

%install
mkdir -p %{buildroot}%{_bindir}
cp %{name} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1194 |21cr|easytag-2.2.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Tag editor for MP3, OGG and some other files
Name:		easytag
Version:	2.2.6
Release:	10
Epoch:		1
License:	GPLv2+
Group:		Sound
Url:		https://wiki.gnome.org/Apps/EasyTAG
Source0:	https://download.gnome.org/sources/%{name}/2.2/%{name}-%{version}.tar.xz
Source1:	easytag-2.2.6-ru.po.bz2
Patch0:		easytag-2.2-select-all.patch
BuildRequires:	appdata-tools
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	itstool
BuildRequires:	intltool
BuildRequires:	libmp4v2-utils
BuildRequires:	yelp-tools
BuildRequires:	xsltproc
BuildRequires:	id3lib-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)

%description
EasyTAG is an utility for viewing and editing tags of MP3, MP2, FLAC,
Ogg Vorbis, MP4/AAC, MusePack, Wavpack, Speex and Monkey's Audio
files. Its simple and nice GTK+ interface makes tagging easier under
GNU/Linux.
Features:
- View, edit, write tags of MP3, MP2 files (ID3 tag with pictures),
  FLAC files (FLAC Vorbis tag), Ogg Vorbis files (Ogg Vorbis tag),
  MP4/AAC (MP4/AAC tag), and MusePack, Wavpack, Monkey's Audio files
  (APE tag), Speex files, Opus files,
- Can edit more tag fields : Title, Artist, Album, Disc Album, Year,
  Track Number, Genre, Comment, Composer, Original Artist/Performer,
  Copyright, URL and Encoder name,
- Auto tagging: parse filename and directory to complete automatically
  the fields (using masks),
- Ability to rename files and directories from the tag (using masks) or by
  loading a text file,
- Process selected files of the selected directory,
- Ability to browse subdirectories,
- Recursion for tagging, removing, renaming, saving...,
- Can set a field (artist, title,...) to all other files,
- Read file header informations (bitrate, time, ...) and display them,
- Auto completion of the date if a partial is entered,
- Undo and redo last changes,
- Ability to process fields of tag and file name (convert letters into
  uppercase, downcase, ...),
- Ability to open a directory or a file with an external program,
- CDDB support using Freedb.org servers (manual and automatic search),
- A tree based browser or a view by Artist & Album,
- A list to select files,
- A playlist generator window,
- A file searching window,
- Simple and explicit interface!,

%files -f %{name}.lang
%doc ChangeLog README TODO THANKS
%doc %{_datadir}/help/*/%{name}/*
%{_bindir}/easytag
%{_mandir}/man1/easytag.1*
%{_datadir}/applications/easytag.desktop
%{_datadir}/appdata/easytag.appdata.xml
%{_datadir}/icons/hicolor/*/apps/easytag.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
bzcat %{SOURCE1} > po/ru.po

%build
autoreconf -fi
%configure \
	--with-gtk2
%make

%install
%makeinstall_std

%find_lang %{name}

desktop-file-install --vendor="" \
	--remove-mime-type="x-directory/normal" \
	--add-mime-type="inode/directory" \
	--remove-category="Editor" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1195 |21cr|easytag24-2.4.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname easytag

Summary:	Tag editor for MP3, OGG and some other files
Name:		easytag24
Version:	2.4.3
Release:	5
License:	GPLv3+
Group:		Sound
Url:		https://wiki.gnome.org/Apps/EasyTAG
Source0:	https://download.gnome.org/sources/%{name}/2.4/%{rname}-%{version}.tar.xz
Source1:	easytag_ru.po.tar.gz
BuildRequires:	appdata-tools
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	itstool
BuildRequires:	intltool
BuildRequires:	libmp4v2-utils
BuildRequires:	yelp-tools
BuildRequires:	xsltproc
BuildRequires:	id3lib-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)

Conflicts: %{rname} < 2.4.0

%description
EasyTAG is an utility for viewing and editing tags of MP3, MP2, FLAC,
Ogg Vorbis, MP4/AAC, MusePack, Wavpack, Speex and Monkey's Audio
files. Its simple and nice GTK+ interface makes tagging easier under
GNU/Linux.
Features:
- View, edit, write tags of MP3, MP2 files (ID3 tag with pictures),
  FLAC files (FLAC Vorbis tag), Ogg Vorbis files (Ogg Vorbis tag),
  MP4/AAC (MP4/AAC tag), and MusePack, Wavpack, Monkey's Audio files
  (APE tag), Speex files, Opus files,
- Can edit more tag fields : Title, Artist, Album, Disc Album, Year,
  Track Number, Genre, Comment, Composer, Original Artist/Performer,
  Copyright, URL and Encoder name,
- Auto tagging: parse filename and directory to complete automatically
  the fields (using masks),
- Ability to rename files and directories from the tag (using masks) or by
  loading a text file,
- Process selected files of the selected directory,
- Ability to browse subdirectories,
- Recursion for tagging, removing, renaming, saving...,
- Can set a field (artist, title,...) to all other files,
- Read file header informations (bitrate, time, ...) and display them,
- Auto completion of the date if a partial is entered,
- Undo and redo last changes,
- Ability to process fields of tag and file name (convert letters into
  uppercase, downcase, ...),
- Ability to open a directory or a file with an external program,
- CDDB support using Freedb.org servers (manual and automatic search),
- A tree based browser or a view by Artist & Album,
- A list to select files,
- A playlist generator window,
- A file searching window,
- Simple and explicit interface!,

%files -f %{rname}.lang
%doc COPYING.GPL3 ChangeLog README TODO THANKS
%doc %{_datadir}/help/*/%{rname}/*
%{_bindir}/easytag
%{_mandir}/man1/easytag.1*
%{_datadir}/applications/easytag.desktop
%{_datadir}/appdata/easytag.appdata.xml
%{_datadir}/icons/hicolor/*/apps/easytag*.*
%{_datadir}/glib-2.0/schemas/org.gnome.EasyTAG.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.EasyTAG.gschema.xml

#----------------------------------------------------------------------------

%package nautilus
Summary:	Nautilus extension for opening in EasyTAG
Group:		Sound
License:	GPLv3+
Requires:	%{name} = %{version}-%{release}
Conflicts:	%{rname}-nautilus < 2.4.0

%description nautilus
Nautilus extension to add "Open with EasyTAG" to the Nautilus context menu, for
easier access to EasyTAG when opening directories and audio files.

%files nautilus
%doc COPYING.GPL3 ChangeLog README TODO THANKS
%{_datadir}/appdata/easytag-nautilus.metainfo.xml
%{_libdir}/nautilus/extensions-3.0/libnautilus-easytag.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{rname}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{rname}

desktop-file-install --vendor="" \
	--remove-mime-type="x-directory/normal" \
	--add-mime-type="inode/directory" \
	--remove-category="Editor" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1196 |21cr|eatmonkey-0.1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver %(echo %{version} | cut -c 1-3)

Summary:	Download manager for Xfce
Name:		eatmonkey
Version:	0.1.4
Release:	5
License:	GPLv3
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/applications/eatmonkey
Source0:	http://archive.xfce.org/src/apps/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2 
BuildRequires:	rubygem-gio2
BuildRequires:	rubygem-glib2
BuildRequires:	rubygem-gobject-introspection
BuildRequires:	intltool

BuildArch:	noarch

%description
Eatmonkey is a download manager that works exclusively with aria2, the ultra
fast download utility. It has support for HTTP(s)/FTP, BitTorrent and Metalink
files.

%prep
%setup -q

%build
%configure

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/eatmonkey
%{_datadir}/applications/eatmonkey.desktop
%{_datadir}/eatmonkey
%{_iconsdir}/hicolor/*/apps/eatmonkey.*
%{_datadir}/pixmaps/eatmonkey-logo.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1197 |21cr|eatmydata-105-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define oname libeatmydata

Summary:	A small wrapper to disable fsync and related functions
Name:		eatmydata
Version:	105
Release:	4
License:	GPLv3+
Group:		File tools
Url:		https://launchpad.net/%{oname}
Source0:	https://launchpad.net/libeatmydata/trunk/release-%{version}/+download/%{oname}-%{version}.tar.gz
Patch0:		libeatmydata-105-remove-dpkg.patch

%description
LD_PRELOAD library that disables all forms of writing data safely to disk.
fsync() becomes a NO-OP, O_SYNC is removed etc. The idea is to use in
testing to get faster test runs where real durability is not required.

%files
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_libdir}/%{oname}.so
%{_libexecdir}/%{name}.sh

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%configure \
	--libexecdir=%{_libexecdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1198 |21cr|eb-4.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define soname 16
%define libname_orig lib%{name}
%define libname %mklibname %{name} %{soname}
%define devname %mklibname %{name} -d

Summary:	Library for reading EB/EPWING files
Name:		eb
Version:	4.4.3
Release:	1
License:	BSD-like
Group:		System/Internationalization
Url:		http://www.sra.co.jp/people/m-kasahr/eb/
Source0:	ftp://ftp.sra.co.jp/pub/misc/eb/%{name}-%{version}.tar.bz2
BuildRequires:	locales-en
BuildRequires:	zlib-devel
Requires:	%{libname} = %{version}

%description
Eb is a library for reading EB/EPWING files.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README
%config(noreplace) %{_sysconfdir}/eb.conf
%{_bindir}/eb*
%{_datadir}/eb

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Eb share library
Group:		System/Internationalization
Provides:	%{libname_orig} = %{EVRD}

%description -n %{libname}
Eb library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libeb.so.%{soname}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of %{name} for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Eb development package: static libraries, header files, and the like.

%files -n %{devname}
%doc COPYING
%{_datadir}/aclocal/eb4.m4
%{_libdir}/*.a
%{_libdir}/libeb.so
%{_includedir}/eb

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-static
%make_build

%install
%make_install

%find_lang %{name}

%find_lang ebutils

cat ebutils.lang >> %{name}.lang


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1199 |21cr|eboard-1.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        FICS chess-server interface
Name:           eboard
Version:        1.1.1
Release:        5
License:        GPLv2+
Group:          Games/Boards
URL:            http://eboard.sf.net
Source0:        http://nchc.dl.sourceforge.net/sourceforge/eboard/%name-%version.tar.bz2
Source1:        http://nchc.dl.sourceforge.net/sourceforge/eboard/%name-icons.tar.bz2
Source2:	http://nchc.dl.sourceforge.net/sourceforge/eboard/%name-extras-1pl2.tar.bz2
Source3:	http://nchc.dl.sourceforge.net/sourceforge/eboard/%name-extras-2.tar.bz2
Patch0:		eboard-1.0.4-mdv-fix-str-fmt.patch
Patch1:		eboard-1.1.1-gcc44.patch
Patch2:		eboard-1.1.1-libpng15.patch
Patch3:		eboard-1.1.1-link.patch
Patch4:		eboard-1.1.1-ldl.patch
Buildrequires:  gtk+2-devel
Buildrequires:  libpng-devel

%description
eboard is a chess interface for Unix-like systems (GNU/Linux, FreeBSD,
Solaris, etc.) based on the GTK+ GUI toolkit.  It provides a chess
board interface to ICS (Internet Chess Servers) like FICS and to chess
engines like GNU Chess, Sjeng and Crafty.

%prep
%setup -q
%setup -q -T -D -a1
%setup -q -T -D -a2
%setup -q -T -D -a3
%patch0 -p1 -b .strfmt
%patch1 -p1 -b .gcc44
%patch2 -p0 -b .png15
%patch3 -p0 -b .link
%patch4 -p1 -b .ldl


%build
%configure

# o_O
%__sed -i 's/-O6/%{optflags}/' Makefile
%__sed -i 's,/usr/share,%{_gamesdatadir},' config.h


%make bindir=%{_gamesbindir} \
      datadir=%{_gamesdatadir}/%{name}

# Add the additional themes to the configurationfile
%__cat %{name}-extras-1pl2/extras1.conf >> %{name}_themes.conf
%__cat %{name}-extras-2/extras2.conf    >> %{name}_themes.conf

%install
%__rm -rf %{buildroot}
%makeinstall bindir=%{buildroot}%{_gamesbindir} \
             datadir=%{buildroot}%{_gamesdatadir}/%{name}

# Menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Eboard
Comment=FICS chess-server interface
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Type=Application
Categories=Game;BoardGame;
EOF

# Icons
%__install -D %{name}-48x48.png %{buildroot}%{_liconsdir}/%{name}.png
%__install -D %{name}-32x32.png %{buildroot}%{_iconsdir}/%{name}.png
%__install -D %{name}-16x16.png %{buildroot}%{_miconsdir}/%{name}.png

# extras
%__install -d %{buildroot}%{_gamesdatadir}/%{name}
%__install %{name}-extras-*/*.{png,wav} %{buildroot}%{_gamesdatadir}/%{name}


%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
%__rm -rf %{buildroot}

%files
%defattr(0755,root,root,0755)
%{_gamesbindir}/*
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING README ChangeLog TODO Documentation/*
%{_gamesdatadir}/%{name}/*
%dir %{_gamesdatadir}/%{name}
%{_mandir}/man1/*
%{_mandir}/man6/*
%{_datadir}/applications/*
%{_iconsdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1200 |21cr|ebview-0.3.6.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	EBView is a browser for EB/EPWING files
Name:		ebview
Version:	0.3.6.2
Release:	8
License:	GPLv2+
Group:		System/Internationalization
Url:		http://ebview.sourceforge.net/
Source0:	%{name}_%{version}.orig.tar.gz
#Source0:	http://prdownloads.sourceforge.net/ebview/%{name}-%{version}.tar.bz2
# patches from Gentoo
Patch0:		ebview-0.3.6_pango_with_cairo.patch
Patch1:		ebview-0.3.6.2-destdir.diff
Patch2:		ebview-0.3.6.2-wrong-inline.patch
# Fix build errors with -Wformat -Werror=format-security
Patch3:		ebview-0.3.6-format-security.patch
BuildRequires:	eb
BuildRequires:	eb-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pangox)
Requires:	eb

%description
EBView is a browser for EB/EPWING files.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/ebview
%{_datadir}/ebview
%{_datadir}/applications/rosa-%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%configure

%make

%install
%makeinstall_std

%find_lang %{name}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=EBView
Comment=%{Summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;TextTools;GTK;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1201 |21cr|ecasound-2.9.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		24
%define	cmajor		1
%define	kmajor		10
%define	libname	%mklibname %{name} %{major}
%define	libnamec	%mklibname %{name}c %{cmajor}
%define	libkvutils	%mklibname kvutils %{kmajor}
%define	devname	%mklibname %{name} -d

# Workaround a probable bug in our ruby macros
%define	ruby_sitelibdir	%{_datadir}/ruby/

Summary:	Sound processing, multitrack recording, and mixing tools
Name:		ecasound
Version:	2.9.3
Release:	2
License:	GPLv2+
Group:		Sound
Url:			http://www.eca.cx/ecasound/
# Also on GitHub: https://github.com/kaivehmanen/ecasound
Source0:	http://nosignal.fi/download/%{name}-%{version}.tar.gz
Source1:	ecasound16.png
Source2:	ecasound32.png
Source3:	ecasound48.png
Patch0:		ecasound-2.9.3-shared.patch
Patch1:		ecasound-2.9.3-fix-shebangs.patch
Patch2:		ecasound-2.9.3-linkage-fix.patch
Patch3:		ecasound-2.9.3-kill-rpath-in-config-scripts.patch
Patch4:		ecasound-2.9.3-fix-lv2-check.patch
Patch5:		ecasound-2.9.3-use-SIGTERM-to-avoid-messing-up-the-console.patch
Patch6:		ecasound-2.9.3-do-not-normalize-output-floating-point-data.patch
BuildRequires:	multiarch-utils >= 1.0.3
BuildRequires:	ruby
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(liboil-0.3)
BuildRequires:	pkgconfig(lilv-0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
Requires(post,postun):	desktop-file-utils

%description
Ecasound is a software package designed for multi-track audio processing.
It can be used for simple tasks like audio playback, recording and format
conversions, as well as for multi-track effect processing, mixing, recording
and signal recycling. Ecasound supports a wide range of audio inputs, outputs
and effect algorithms. Effects and audio objects can be combined in various
ways, and their parameters can be controlled by operator objects like
oscillators and MIDI-CCs. A versatile console mode user-interface is included
in the package.

%files
%doc NEWS COPYING COPYING.GPL COPYING.LGPL README BUGS TODO examples
%doc Documentation/*.html
%{_bindir}/eca*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#-------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main shared library for Ecasound
Group:		System/Libraries

%description -n %{libname}
Ecasound is a software package designed for multi-track audio processing.
It can be used for simple tasks like audio playback, recording and format
conversions, as well as for multi-track effect processing, mixing, recording
and signal recycling. Ecasound supports a wide range of audio inputs, outputs
and effect algorithms. Effects and audio objects can be combined in various
ways, and their parameters can be controlled by operator objects like
oscillators and MIDI-CCs. A versatile console mode user-interface is included
in the package. This package contains the shared Ecasound libraries.

%files -n %{libname}
%doc COPYING COPYING.GPL COPYING.LGPL
%{_libdir}/libecasound.so.%{major}*

#-------------------------------------------------------------------------------

%package -n %{libnamec}
Summary:	Shared library for Ecasound
Group:		System/Libraries
Conflicts:	%{_lib}ecasound24 < 2.9.0-5

%description -n %{libnamec}
Shared library for Ecasound.

%files -n %{libnamec}
%doc COPYING COPYING.GPL COPYING.LGPL
%{_libdir}/libecasoundc.so.%{cmajor}*

#-------------------------------------------------------------------------------

%package -n %{libkvutils}
Summary:	Shared library for Ecasound
Group:		System/Libraries
Conflicts:	%{_lib}ecasound24 < 2.9.0-5

%description -n %{libkvutils}
Shared library for Ecasound.

%files -n %{libkvutils}
%doc COPYING COPYING.GPL COPYING.LGPL
%{_libdir}/libkvutils.so.%{kmajor}*

#-------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Ecasound - development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamec} = %{EVRD}
Requires:	%{libkvutils} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files necessary for building apps that directly link
against %{name} libraries.

%files -n %{devname}
%doc COPYING COPYING.GPL COPYING.LGPL
%{_bindir}/libecasound-config
%{_bindir}/libecasoundc-config
%{_includedir}/kvutils/*.h
%{_includedir}/libecasound/*.h
%{_includedir}/libecasoundc/*.h
%{_libdir}/*.so

#-------------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings to %{name} control interface
Group:		Sound
Requires:	%{name} = %{EVRD}
%rename		pyecasound
%rename		python-%{name}

%description -n python3-%{name}
Python3 bindings to Ecasound Control Interface (ECI).

%files -n python3-%{name}
%doc COPYING COPYING.GPL COPYING.LGPL
%{py3_platsitedir}/*.py
%{py3_platsitedir}/__pycache__/*.pyc

#-------------------------------------------------------------------------------

%package -n ruby-%{name}
Summary:	Ruby bindings to %{name} control interface
Group:		Sound
Requires:	%{name} = %{EVRD}
%rename		rubyecasound

%description -n ruby-%{name}
Ruby bindings to Ecasound Control Interface (ECI).

%files -n ruby-ecasound
%doc COPYING COPYING.GPL COPYING.LGPL
%{ruby_sitelibdir}/*.rb

#-------------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Fix for lib64
perl -pi -e "s|/lib/|/%{_lib}/|g" configure*


%build
autoreconf -fiv
export CFLAGS="%{optflags} -DPIC"
export CXXFLAGS="%{optflags} -DPIC -std=c++11"
# Need to export this because otherwise python files go
# in the wrong spot; --with-python-modules is of no use
export ECA_S_PYTHON_MODULES="%{_libdir}/python%{py3_ver}"
%configure \
	--enable-jack \
	--enable-liboil \
	--enable-liblilv \
	--enable-pyecasound \
	--disable-arts \
	--disable-static \
	--enable-sys-readline \
	--enable-python-force-site-packages

%make


%install
%makeinstall_std

# Icons
install -m644 %{SOURCE1} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE2} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE3} -D %{buildroot}%{_liconsdir}/%{name}.png

# Menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Name[ru]=%{name}
Comment=%{Summary}
Comment[ru]=Инструменты обработки звука, микширования и записи
Exec=%{name} -c
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;
EOF

cat > %{buildroot}%{_datadir}/applications/ecamonitor.desktop << EOF
[Desktop Entry]
Name=%{name}
Name[ru]=%{name}
Comment=%{Summary}
Comment[ru]=Инструменты обработки звука, микширования и записи
Exec=ecamonitor
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;
EOF

cat > %{buildroot}%{_datadir}/applications/ecasignalview.desktop << EOF
[Desktop Entry]
Name=%{name}
Name[ru]=%{name}
Comment=%{Summary}
Comment[ru]=Инструменты обработки звука, микширования и записи
Exec=ecasignalview
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;
EOF

# Installer wrongly put the ecasound.rb file in /usr/local/share/ruby/site_ruby/2.7,
# while the right spot is %%{ruby_sitelibdir}==/usr/share/ruby/:
# move it accordingly
mkdir -p %{buildroot}%{ruby_sitelibdir}/
mv %{buildroot}/usr/local/share/ruby/site_ruby/2.7/ecasound.rb %{buildroot}%{ruby_sitelibdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1202 |21cr|echomine-muse-0.81-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define section free

Name:           echomine-muse
Version:        0.81
Release:        7
Epoch:          0
Summary:        Java API for XMPP/Jabber
License:        GPL
Group:          Development/Java
URL:            http://open.echomine.org/confluence/display/MUSE/Muse+Home
Source0:        http://download.berlios.de/muse/muse-0.81.tar.gz
Patch0:         muse-0.81-file-compare-to.patch
Requires:       jakarta-commons-logging
Requires:       jdom
Requires:       xpp3
BuildRequires:  ant
BuildRequires:  apache-commons-logging
BuildRequires:  jdom
BuildRequires:  xpp3
BuildArch:      noarch
BuildRequires:  java-rpmbuild

%description
Echomine Muse provides an easy-to-use Java API that gives you quick
and easy yet powerful access to network collaboration services.
Specifically, it allows you to communicate with XMPP/Jabber servers
to perform instant messaging and presence management in a secure
and real-time environment.

%package javadoc
Summary:        Javadoc documentation for muse
Group:          Development/Java

%description javadoc
Javadoc documentation for muse.

%prep
%setup -q -c
%patch0 -p0
%{_bindir}/find . -name '*.jar' | %{_bindir}/xargs -t %{__rm}

%build
export CLASSPATH=$(build-classpath apache-commons-logging jdom xpp3)
export OPT_JAR_LIST=:
%{ant} jar javadocs

%install
%{__mkdir_p} %{buildroot}%{_javadir}
cp -a work/muse.jar %{buildroot}%{_javadir}/muse-%{version}.jar
%{__ln_s} muse-%{version}.jar %{buildroot}%{_javadir}/muse.jar

%{__mkdir_p} %{buildroot}%{_javadocdir}/muse-%{version}
cp -a work/docs/api/* %{buildroot}%{_javadocdir}/muse-%{version}
%{__ln_s} muse-%{version} %{buildroot}%{_javadocdir}/muse

%files
%defattr(0644,root,root,0755)
%doc examples license
%{_javadir}/*.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/muse-%{version}
%doc %{_javadocdir}/muse

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1203 |21cr|ecl-21.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}
%define major 21
%define libname %mklibname %{name} %{major}

Summary:	Embeddable Common-Lisp
Name:		ecl
Version:	21.2.1
Release:	1
Group:		Development/Other
License:	LGPLv2+ and BSD and MIT and Public Domain
Url:		http://ecls.sourceforge.net/
Source0:	https://ecl.common-lisp.dev/static/files/release/ecl-21.2.1.tgz
# The manual has not yet been released.  Use the following commands to generate
# the manual tarball:
#   git clone git://ecls.git.sourceforge.net/gitroot/ecls/ecl-doc
#   cd ecl-doc
#   git checkout 5d2657b5b32a2b5df701ba1ffa768e3e05816b70
#   rm -fr .git
#   cd ..
#   tar cJf ecl-doc.tar.xz ecl-doc
Source1:	%{name}-doc.tar.xz
Source2:	%{name}.desktop
# A modified version of src/util/ecl.svg with extra whitespace removed.  The
# extra whitespace made the icon appear very small and shoved into a corner.
Source3:	%{name}.svg
Source4:	%{name}.rpmlintrc
# Do not use a separate thread to handle signals by default if built with
# boehm-gc support.
# This prevents a deadlock when building maxima with ecl support in
# fedora, and should handle by default these problems:
# http://trac.sagemath.org/sage_trac/ticket/11752
# http://www.mail-archive.com/ecls-list@lists.sourceforge.net/msg00644.html
Patch1:		ecl-21.2.1-signal_handling_thread.patch
# Work around xsltproc requiring namespace declarations for entities.  This
# patch was sent upstream 3 Jun 2013.
Patch2:		ecl-12.12.1-xsltproc.patch
# GCC does not implement support for #pragma STDC FENV_ACCESS
Patch3:		ecl-21.2.1-fenv-access.patch

BuildRequires:	m4
BuildRequires:	texi2html
BuildRequires:	texinfo
BuildRequires:	xmlto
BuildRequires:	gmp-devel
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(bdw-gc)
BuildRequires:	pkgconfig(x11)

# ECL permits to mix C code and Lisp, so users probably want gcc and 
# devel packages of libraries used by ecl
Recommends:	gcc
Recommends:	gmp-devel
Recommends:	pkgconfig(bdw-gc)

%description
ECL (Embeddable Common-Lisp) is an interpreter of the Common-Lisp
language as described in the X3J13 Ansi specification, featuring CLOS
(Common-Lisp Object System), conditions, loops, etc, plus a translator
to C, which can produce standalone executables.

%files
%doc COPYING LICENSE CHANGELOG
%{_bindir}/ecl
%{_bindir}/ecl-config
%{_datadir}/applications/ecl.desktop
%{_datadir}/icons/hicolor/scalable/apps/ecl.svg
%{_libdir}/%{name}-%{version}/
%{_libdir}/libecl.so
%{_includedir}/ecl
%{_mandir}/man1/*

# no -devel package for header files is split off
# since they are required by the main package

#----------------------------------------------------------------------------
%package -n %{libname}
Summary:	ECL (Embeddable Common-Lisp) shared library
Group:		System/Libraries

%description -n %{libname}
ECL (Embeddable Common-Lisp) shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------
%package doc
Summary:	Documentation for Embeddable Common-Lisp
Group:		Documentation
Requires:	%{name}

%description doc
ECL (Embeddable Common-Lisp) is an interpreter of the Common-Lisp
language as described in the X3J13 Ansi specification, featuring CLOS
(Common-Lisp Object System), conditions, loops, etc, plus a translator
to C, which can produce standalone executables.

This package contains the documentation for ECL.

%files doc
%doc examples ecl-doc/html
%doc src/doc/amop.txt src/doc/types-and-classes

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -q -T -D -a 1
%patch1 -p1
%patch2
%patch3 -p1

# Remove spurious executable bits
find src/c -type f -perm /0111 | xargs chmod a-x
find src/h -type f -perm /0111 | xargs chmod a-x

%build
CONFIGURE_TOP=$PWD \
%configure \
	--enable-unicode=yes \
	--enable-c99complex \
	--enable-threads=yes \
	--with-__thread \
	--with-clx \
	--disable-rpath \
%ifarch x86_64
	--with-sse \
%endif
	CPPFLAGS=`pkg-config --cflags libffi` \
	CFLAGS="%{optflags} -std=gnu99 -Wno-unused -Wno-return-type"
make
mkdir -p ecl-doc/tmp
make -C ecl-doc
rm ecl-doc/html/ecl2.proc

%install
%makeinstall_std

# Remove installed files that are in the wrong place
rm -fr %{buildroot}%{_docdir}
rm -f %{buildroot}%{_libdir}/Copyright
rm -f %{buildroot}%{_libdir}/LGPL

# Install the man pages
mkdir -p %{buildroot}%{_mandir}/man1
sed -e "s|@bindir@|%{_bindir}|" src/doc/ecl.man.in > \
	%{buildroot}%{_mandir}/man1/ecl.1
cp -p src/doc/ecl-config.man.in %{buildroot}%{_mandir}/man1/ecl-config.1

# Install the desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE2}

# Install the desktop icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
cp -p %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1204 |21cr|eclib-mwrank-20220621-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 10
%define libeclib	%mklibname eclib %{major}
%define libeclib_devel	%mklibname -d eclib

Name:		eclib-mwrank
Group:		Sciences/Mathematics
License:	GPLv3+
Summary:	Mordell-Weil groups of elliptic curves over Q via 2-descent
Version:	20220621
Release:	1
URL:		http://www.warwick.ac.uk/~masgaj/mwrank/index.html
Source0:	https://github.com/JohnCremona/eclib/releases/download/%{version}/eclib-%{version}.tar.bz2

BuildRequires:	gcc-c++
BuildRequires:	gmp-devel
BuildRequires:	ntl-devel
BuildRequires:	libpari-devel

%description
mwrank is a program written in C++ for computing Mordell-Weil groups of
elliptic curves over Q via 2-descent. It is available as source code
(licensed under GPL) in the eclib package. mwrank is now only distributed
as part of eclib. eclib is also included in Sage, and for most potential
users the easiest way to run mwrank is to install Sage (which also of
course gives you much much more). I no longer provide a source code
distribution of mwrank by itself: use eclib instead. Full source code
for eclib is available from google code.

%files
%{_bindir}/*
%{_datadir}/doc/eclib/g0n.txt
%{_datadir}/doc/eclib/howto.txt
%{_datadir}/doc/eclib/mwrank/mwrank.changes
%{_datadir}/doc/eclib/mwrank/mwrank.info
%{_datadir}/doc/eclib/mwrank/mwrank.options
%{_datadir}/doc/eclib/mwrank/mwrank.readme
%{_datadir}/doc/eclib/progs.txt
%{_mandir}/man1/mwrank.1*

#---------------------------------------------------------------
%package	-n %{libeclib}
Group:		Sciences/Mathematics
License:	GPL
Summary:	Run time libraries for %{name}

%description -n %{libeclib}
Run time libraries for %{name}.

%files -n %{libeclib}
%{_libdir}/lib*.so.%{major}*

#---------------------------------------------------------------
%package	-n %{libeclib_devel}
Group:		Development/C
License:	GPL
Summary:	Development files for %{name}
Provides:	eclib-devel = %{version}-%{release}
Provides:	libeclib-devel = %{version}-%{release}
Requires:	%{libeclib} = %{version}-%{release}

%description -n %{libeclib_devel}
Development header files and libraries for %{name}.

%files -n %{libeclib_devel}
%doc %dir %{_docdir}/eclib
%doc %{_docdir}/eclib/AUTHORS
%doc %{_docdir}/eclib/COPYING
%doc %{_docdir}/eclib/ChangeLog
%doc %{_docdir}/eclib/NEWS
%doc %{_docdir}/eclib/README
%{_includedir}/eclib
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/eclib.pc

#---------------------------------------------------------------
%prep
%setup -qn eclib-%{version}

%build
%configure --disable-allprogs
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_docdir}/eclib
cp -a AUTHORS COPYING ChangeLog NEWS README %{buildroot}%{_docdir}/eclib

%check
# FIXME! testing not work
#make check LD_LIBRARY_PATH=%{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1205 |21cr|eclipse-avr-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Sourceforge doesn't allow downloading by tag name? This is the corresponding commit
%global gittag 32f8cc2bde1083a42f439668e5cbdd003b2e4522

Summary:		AVR plug-in for Eclipse
Name:			eclipse-avr
Version:		2.4.2
Release:		9
License:		EPL-1.0
URL:			http://avr-eclipse.sourceforge.net
Source0:		https://sourceforge.net/code-snapshots/git/a/av/avr-eclipse/code.git/avr-eclipse-code-%{gittag}.zip

Group:          Development/Java
BuildArch:		noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:	tycho
BuildRequires:	eclipse-cdt

# AVR Toolchain + Programmer
Requires:		cross-avr-gcc
Requires:		avr-libc
Requires:		cross-avr-binutils
#Requires:		avr-gdb
Requires:		avrdude

%description
This Eclipse plug-in provides some tools and settings for developing C programs
for the ATMEL AVR series of embedded processors with the Eclipse IDE.

%prep
%setup -q -n avr-eclipse-code-%{gittag}

# Don't install poms or test bundles
%mvn_package "::pom:" __noinstall
%mvn_package ":*{test,tests}" __noinstall

%build
# Skip tests, they do not work
%mvn_build -j -f -- -f de.innot.avreclipse.master/pom.xml

%install
%mvn_install

%files -f .mfiles
%license de.innot.avreclipse/about.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1206 |21cr|ecm-7.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GMP ECM - Elliptic Curve Method for Integer Factorization
Name:		ecm
Version:	7.0.3
Release:	3
License:	GPLv3+
Group:		Sciences/Mathematics
Url:		http://gforge.inria.fr/projects/ecm/
Source0:	http://gforge.inria.fr/frs/download.php/file/36043/ecm-7.0.3.tar.gz
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	gmp-devel

%description
GMP ECM - Elliptic Curve Method for Integer Factorization.

%files
%doc NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/ecm.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared GMP ECM library
License:	LGPLv3+
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries needed to run ecm.

%files -n %{libname}
%{_libdir}/libecm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for GMP ECM
License:	LGPLv3+
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the GMP ECM development header files and
libraries.

%files -n %{devname}
%doc AUTHORS README.lib TODO
%{_includedir}/ecm.h
%{_libdir}/libecm.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--enable-shared \
	--disable-static

%make LIBS="-lgmp -lm"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1207 |21cr|econnman-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	EFL user interface for ConnMan
Name:		econnman
Version:	1.1
Release:	4
License:	LGPLv3+
Group:		Graphical desktop/Enlightenment
Url:		http://enlightenment.org/
Source:		http://download.enlightenment.org/rel/apps/%{name}/%{name}-%{version}.tar.gz
Patch:		econnman-1.1-desktop.patch
BuildRequires:	edje
BuildRequires:	pkgconfig(edje)
Requires:	python-dbus
Requires:	python3-efl
Requires:	connman
BuildArch:	noarch

%description
EFL user interface for ConnMan (Connection Manager).

%files
%doc README COPYING AUTHORS
%{_bindir}/*
%{_datadir}/econnman/
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1208 |21cr|ecryptfs-utils-111-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil

# FIXME rhbz#533920, automake does not support python3
%bcond_with python3

%bcond_without unittests

%global confflags %{shrink: \
 --enable-pywrap --enable-tspi --enable-nss \
 --enable-pkcs11-helper --enable-tests \
 --with-pamdir=/%{_lib}/security \
}


%define libmajor 1
%define libname %mklibname ecryptfs %libmajor
%define libnamedevel %mklibname -d ecryptfs
%define libnamestaticdevel %mklibname -d -s ecryptfs

Summary:	An Enterprise-class Cryptographic Filesystem for Linux
Name:		ecryptfs-utils
Version:	111
Release:	5
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://launchpad.net/ecryptfs
Source0:	http://launchpad.net/ecryptfs/trunk/%{version}/+download/%{name}_%{version}.orig.tar.gz
Source1:	ecryptfs-mount-private.png
### upstream patches
# rhbz#1384023, openssl 1.1.x
Patch1: https://code.launchpad.net/~jelle-vdwaa/ecryptfs/ecryptfs/+merge/319746/+preview-diff/792383/+files/preview.diff#/%{name}-openssl11.patch

### downstream patches
# rhbz#500829, do not use ubuntu/debian only service
Patch92: %{name}-75-nocryptdisks.patch

# rhbz#553629, fix usage of salt together with file_passwd
Patch93: %{name}-83-fixsalt.patch

# fedora/rhel specific, rhbz#486139, remove nss dependency from umount.ecryptfs
Patch94: %{name}-83-splitnss.patch

# rhbz#664474, fix unsigned < 0 test
Patch95: %{name}-84-fixsigness.patch

# fix man pages
Patch98: %{name}-86-manpage.patch

# autoload ecryptfs module in ecryptfs-setup-private when needed, rhbz#707608
Patch99: %{name}-87-autoload.patch

# fedora/rhel specific, check for pam ecryptfs module before home migration
Patch911: %{name}-87-authconfig.patch

# using return after fork() in pam module has some nasty side effects, rhbz#722445
Patch914: %{name}-87-fixpamfork.patch

# we need gid==ecryptfs in pam module before mount.ecryptfs_private execution
Patch915: %{name}-87-fixexecgid.patch

# do not use zombie process, it causes lock ups at least for ssh login
Patch916: %{name}-87-nozombies.patch

# if we do not use zombies, we have to store passphrase in pam_data and init keyring later
Patch917: %{name}-87-pamdata.patch

# patch17 needs propper const on some places
Patch918: %{name}-87-fixconst.patch

Patch919: %{name}-87-syslog.patch

# if e-m-p fails, check if user is member of ecryptfs group
Patch921: %{name}-96-groupcheck.patch
Patch922: %{name}-99-selinux.patch

# rhbz#868330
Patch923: %{name}-100-sudokeyring.patch

# for e-u < 112
Patch924: %{name}-111-cve_2016_5224.patch

# do not crash if no password is available #1339714
Patch925: %{name}-111-nopasswd.patch

# Authconfig should no longer be used since F28
Patch926: %{name}-111-authselect.patch

### patches for general cleanup, should be kept and executed after all others
# allow building with -Werror
Patch999: %{name}-75-werror.patch
BuildRequires:	attr-devel
BuildRequires:	openssl-devel
BuildRequires:	keyutils-devel
BuildRequires:	libgcrypt-devel
BuildRequires:	pam-devel
BuildRequires:	pkcs11-helper-devel
BuildRequires:	trousers-devel
BuildRequires:	nss-devel
BuildRequires:	intltool
BuildRequires:	glib2-devel
Requires:	keyutils
Requires:	cryptsetup
Requires:	util-linux
Requires:	gettext

%description
eCryptfs is a POSIX-compliant enterprise-class stacked cryptographic
filesystem for Linux. It is derived from Erez Zadok's Cryptfs, implemented
through the FiST framework for generating stacked filesystems. eCryptfs
extends Cryptfs to provide advanced key management and policy features.
eCryptfs stores cryptographic metadata in the header of each file written,
so that encrypted files can be copied between hosts; the file will be
decryptable with the proper key, and there is no need to keep track of any
additional information aside from what is already in the encrypted file
itself. Think of eCryptfs as a sort of ``gnupgfs.''

eCryptfs is a native Linux filesystem (other popular cryptographic
filesystems for Linux require FUSE or operate via RPC calls). The kernel
module component of eCryptfs is upstream in the Linux kernel.

%files -f %{name}.lang
%license COPYING
%doc README AUTHORS NEWS THANKS
%doc doc/ecryptfs-faq.html
%doc doc/ecryptfs-pkcs11-helper-doc.txt
%{_sbindir}/mount.ecryptfs
%{_sbindir}/umount.ecryptfs
%attr(4750,root,ecryptfs) %{_sbindir}/mount.ecryptfs_private
%{_sbindir}/umount.ecryptfs_private
%{_bindir}/ecryptfs-add-passphrase
%{_bindir}/ecryptfs-find
%{_bindir}/ecryptfs-generate-tpm-key
%{_bindir}/ecryptfs-insert-wrapped-passphrase-into-keyring
%{_bindir}/ecryptfs-manager
%{_bindir}/ecryptfs-migrate-home
%{_bindir}/ecryptfs-mount-private
%{_bindir}/ecryptfs-recover-private
%{_bindir}/ecryptfs-rewrap-passphrase
%{_bindir}/ecryptfs-rewrite-file
%{_bindir}/ecryptfs-setup-private
%{_bindir}/ecryptfs-setup-swap
%{_bindir}/ecryptfs-stat
%{_bindir}/ecryptfs-umount-private
%{_bindir}/ecryptfs-unwrap-passphrase
%{_bindir}/ecryptfs-verify
%{_bindir}/ecryptfs-wrap-passphrase
%{_bindir}/ecryptfsd
%{_prefix}/lib/modules-load.d/ecryptfs.conf
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/ecryptfs-mount-private.txt
%{_datadir}/%{name}/ecryptfs-mount-private.desktop
%{_datadir}/%{name}/ecryptfs-mount-private.png
%{_datadir}/%{name}/ecryptfs-setup-private.desktop
%{_mandir}/man1/ecryptfs-add-passphrase.1*
%{_mandir}/man1/ecryptfs-find.1*
%{_mandir}/man1/ecryptfs-generate-tpm-key.1*
%{_mandir}/man1/ecryptfs-insert-wrapped-passphrase-into-keyring.1*
%{_mandir}/man1/ecryptfs-mount-private.1*
%{_mandir}/man1/ecryptfs-recover-private.1*
%{_mandir}/man1/ecryptfs-rewrap-passphrase.1*
%{_mandir}/man1/ecryptfs-rewrite-file.1*
%{_mandir}/man1/ecryptfs-setup-private.1*
%{_mandir}/man1/ecryptfs-setup-swap.1*
%{_mandir}/man1/ecryptfs-stat.1*
%{_mandir}/man1/ecryptfs-umount-private.1*
%{_mandir}/man1/ecryptfs-unwrap-passphrase.1*
%{_mandir}/man1/ecryptfs-verify.1*
%{_mandir}/man1/ecryptfs-wrap-passphrase.1*
%{_mandir}/man1/mount.ecryptfs_private.1*
%{_mandir}/man1/umount.ecryptfs_private.1*
%{_mandir}/man7/ecryptfs.7*
%{_mandir}/man8/ecryptfs-manager.8*
%{_mandir}/man8/ecryptfs-migrate-home.8*
%{_mandir}/man8/ecryptfsd.8*
%{_mandir}/man8/mount.ecryptfs.8*
%{_mandir}/man8/pam_ecryptfs.8*
%{_mandir}/man8/umount.ecryptfs.8*

%pre
groupadd -r -f ecryptfs

%post
/sbin/ldconfig
if [ $1 -eq 1 ] ; then
 # Initial installation
 authselect enable-feature with-ecryptfs >/dev/null 2>&1
fi

%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
 # Package removal, not upgrade
 authselect disable-feature with-ecryptfs >/dev/null 2>&1
fi

#----------------------------------------------------------------------

%package -n pam_ecryptfs
Summary:	ECryptfs PAM module
Group:		System/Libraries
Requires:	%{name} = %{version}

%description -n pam_ecryptfs
eCryptfs PAM module to automatically mount a private cryptographic
directory.

%files -n pam_ecryptfs
/%{_lib}/security/pam_ecryptfs.so
%{_mandir}/man8/pam_ecryptfs.8.*

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	ECryptfs library
Group:		System/Libraries

%description -n %{libname}
eCryptfs library.

%files -n %{libname}
%{_libdir}/ecryptfs/libecryptfs_key_mod_openssl.so
%{_libdir}/ecryptfs/libecryptfs_key_mod_passphrase.so
%{_libdir}/ecryptfs/libecryptfs_key_mod_pkcs11_helper.so
%{_libdir}/ecryptfs/libecryptfs_key_mod_tspi.so
%{_libdir}/libecryptfs.so.%{libmajor}*

#----------------------------------------------------------------------

%package -n %libnamedevel
Summary:	ECryptfs library
Group:		Development/Other
Requires:	%{libname} = %{version}
Provides:	libecryptfs-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %libnamedevel
eCryptfs development files.

%files -n %libnamedevel
%{_includedir}/ecryptfs.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/libecryptfs.pc

#----------------------------------------------------------------------

%package -n %{libnamestaticdevel}
Summary:	ECryptfs library
Group:		Development/Other
Requires:	%{libnamedevel} = %{EVRD}
Provides:	libecryptfs-static-devel = %{EVRD}

%description -n %{libnamestaticdevel}
eCryptfs static library development files.

#----------------------------------------------------------------------
%if %{with python3}
%package -n python3-%{name}
Summary:	ECryptfs Python library
Group:		Development/Python
BuildRequires:	swig
BuildRequires:	python3-devel
Provides:	%{name}-python
Requires:	%{name} = %{EVRD}

%description -n python3-%{name}
eCryptfs Python library.

%files -n python3-%{name}
%{py3_puresitedir}/%{name}/libecryptfs.py*
%{py3_puresitedir}/%{name}/libecryptfs.pyc
%{py3_puresitedir}/%{name}/libecryptfs.pyo
%{py3_platsitedir}/ecryptfs-utils/_libecryptfs.*
%endif
#----------------------------------------------------------------------

%prep
%setup -q
%patch1 -p0 -b .openssl11

%patch92 -p1 -b .nocryptdisks
%patch93 -p1 -b .fixsalt
%patch94 -p1 -b .splitnss
%patch95 -p1 -b .fixsigness
%patch98 -p1 -b .manfix
%patch99 -p1 -b .autoload
%patch911 -p1 -b .authconfig
%patch914 -p1 -b .fixpamfork
%patch915 -p1 -b .fixexecgid
%patch916 -p1 -b .nozombies
%patch917 -p1 -b .pamdata
%patch918 -p1 -b .fixconst
%patch919 -p1 -b .syslog
%patch921 -p1 -b .groupcheck
%patch922 -p1 -b .selinux
%patch923 -p1 -b .sudokeyring
%patch924 -p1 -b .cve_2016_5224
%patch925 -p1 -b .nopasswd
%patch926 -p1 -b .authselect

%patch999 -p1 -b .werror

sed -i -r 's:^_syslog\(LOG:ecryptfs_\0:' src/pam_ecryptfs/pam_ecryptfs.c

# snprintf directive output may be truncated
sed -i -r 's:(snprintf.*"\%)(s/\%)(s"):\1.42\2.23\3:' \
 tests/kernel/inotify/test.c

# fix usr-move
sed -i -r 's:(rootsbindir=).*:\1"%{_sbindir}":' configure.ac
autoreconf -fiv

%build
# openssl 1.1 marks some functions as deprecated
export ERRFLAGS="-Werror -Wtype-limits -Wno-unused -Wno-error=deprecated-declarations"

%if %{with python3}
export PYTHON_VERSION=3
export PYTHON=%{__python3}
export PYTHON_NOVERSIONCHECK=1
export PY3FLAGS='%(pkg-config --cflags --libs python3)'
export CFLAGS="%{optflags} $PY3FLAGS $ERRFLAGS"
%configure %{confflags}
%else
%configure %{confflags} --disable-pywrap
%endif

%make

%install
%makeinstall_std

find %{buildroot} -name '*.la' -print -delete
rm -rf %{buildroot}%{_docdir}/%{name}

#install files Makefile forgot to install
install -p -m644 %{SOURCE1} %{buildroot}%{_datadir}/%{name}/ecryptfs-mount-private.png
printf "Encoding=UTF-8\n" >>%{buildroot}%{_datadir}/%{name}/ecryptfs-mount-private.desktop
printf "Encoding=UTF-8\n" >>%{buildroot}%{_datadir}/%{name}/ecryptfs-setup-private.desktop
printf "Icon=%{_datadir}/%{name}/ecryptfs-mount-private.png\n" >>%{buildroot}%{_datadir}/%{name}/ecryptfs-mount-private.desktop
printf "Icon=%{_datadir}/%{name}/ecryptfs-mount-private.png\n" >>%{buildroot}%{_datadir}/%{name}/ecryptfs-setup-private.desktop
sed -i 's|^_||' %{buildroot}%{_datadir}/%{name}/ecryptfs-mount-private.desktop
sed -i 's|^_||' %{buildroot}%{_datadir}/%{name}/ecryptfs-setup-private.desktop
chmod +x %{buildroot}%{_datadir}/%{name}/ecryptfs-mount-private.desktop
chmod +x %{buildroot}%{_datadir}/%{name}/ecryptfs-setup-private.desktop
for file in $(find py2/src/desktop -name ¸*.desktop) ; do
 touch -r $file %{buildroot}%{_datadir}/%{name}/$(basename $file)
done
rm -f %{buildroot}%{_datadir}/%{name}/ecryptfs-record-passphrase

#we need ecryptfs kernel module
mkdir -p %{buildroot}/usr/lib/modules-load.d/
echo -e "# ecryptfs module is needed before ecryptfs mount, so mount helper can \n# check for file name encryption support\necryptfs" \
 >%{buildroot}/usr/lib/modules-load.d/ecryptfs.conf

%find_lang %{name}


%check
desktop-file-validate %{buildroot}%{_datadir}/%{name}/*.desktop

%if %{with unittests}
for folder in $(find . -name py\* -type d) ; do
 export LD_LIBRARY_PATH=${folder}/src/libecryptfs/.libs
 make check -C $folder
done
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1209 |21cr|edb-debugger-0.9.20-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _name   debugger
%define _exe    edb

Summary:	A free OllyDbg like debugger
Name:		edb-debugger
Version:	0.9.20
Release:	4
License:	GPLv2
Group:		Development/Other
Url:		http://www.codef00.com/projects
Source0:	http://www.codef00.com/projects/%{_name}-%{version}.tgz
BuildRequires:	imagemagick
BuildRequires:	qt4-devel
BuildRequires:	boost-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
One of the main goals of this debugger is modularity.
The interface is written in Qt4 and is therefore source portable
to many platforms. The debugger core is a plugin and the platform
specific code is isolated to just a few files, porting to a new OS
would require porting these few files and implementing a plugin
which implements the DebuggerCoreInterface interface. Also,
because the plugins are based on the QPlugin API, and do their work
through the DebuggerCoreInterface object, they are almost always
portable with just a simple recompile.
The disassembly engine is my edisassm project. I feel that this
disassembler is mature and works well. It is worth noting that the
current version of edb has temporarily dropped AT&T syntax support.
Once this is implemented in edisassm, it will return.

%files
%{_bindir}/%{_exe}
%{_libdir}/%{_exe}/*.so
%{_datadir}/applications/%{_exe}.desktop
%{_liconsdir}/%{_exe}.png
%{_miconsdir}/%{_exe}.png
%{_iconsdir}/%{_exe}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{_name}

sed -i -e 's/\.uic/uic/' -e 's/\.moc/moc/' -e 's/\.rcc/rcc/' src/src.pro
sed -i -e 's/\.ui/ui/' -e 's/\.moc/moc/' -e 's/\.rcc/rcc/' plugins/plugins.pri

%build
%qmake_qt4 DEFAULT_PLUGIN_PATH="%{_libdir}/%{_exe}/"
%make

%install
make install INSTALL_ROOT=%{buildroot}%{_prefix}
mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir},%{_bindir},%{_libdir}}/
install -c -m 0755 src/images/edb48-logo.png "%{buildroot}%{_liconsdir}/%{_exe}.png"

convert src/images/edb48-logo.png -resize 32x32 %{buildroot}%{_iconsdir}/%{_exe}.png
convert src/images/edb48-logo.png -resize 16x16 %{buildroot}%{_miconsdir}/%{_exe}.png

desktop-file-install --vendor="" \
	--dir %{buildroot}%{_datadir}/applications \
	--remove-category="Qt" \
	%{_exe}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1210 |21cr|edgar-1.35-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	2D Platform Game
Name:		edgar
Version:	1.35
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		https://www.parallelrealities.co.uk/games/edgar/
Source0:	https://github.com/riksweeney/edgar/releases/download/%{version}/%{name}-%{version}-1.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}

%description
The Legend of Edgar. When his father fails to return home after venturing out
one stormy night, Edgar sets off on a quest to rescue him.

%files -f %{name}.lang
%doc doc/*
%{_gamesbindir}/%{name}
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%package data
Summary:	The Legend of Edgar level set
Group:		Games/Arcade
License:	GPLv2+
BuildArch:	noarch
Requires:	%{name} = %{version}

%description data
The Legend of Edgar. When his father fails to return home after venturing
out one stormy night, Edgar sets off on a quest to rescue him.
This package contains official level set for Edgar.

%files data
%doc doc/readme
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make VERSION=%{version}

%install
%makeinstall_std

desktop-file-install --dir %{buildroot}%{_datadir}/applications \
	--remove-category=Application \
	--add-category="AdventureGame" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

rm -rf %{buildroot}%{_datadir}/doc

%if %{mdvver} >= 201610
mkdir -p %{buildroot}%{_appdatadir}
cp %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %{buildroot}%{_appdatadir}/%{name}.appdata.xml
rm -rf %{buildroot}%{_datadir}/appdata
%endif

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1211 |21cr|editobj2-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname EditObj2

Summary:	Tkinter dialog box for editing any Python object
Name:		editobj2
Version:	0.5.1
Release:	1
License:	GPLv2+
Group:		Development/Python
Url:		https://pypi.python.org/pypi/EditObj2
Source0:	EditObj2-%{version}.tar.gz
BuildRequires:	pkgconfig(python)
Requires:	tkinter
BuildArch:	noarch

%description
EditObj2 can create and display a Tkinter dialog box for editing any Python
object (similarly to what Java call a Bean editor, but for Python object).
EditObj2 is a useful tool for writing (text or non-text) editors of all
kinds, including GUI editor, 3D editor,... It also includes a Python console.
It supports also lists, dictionaries and hierarchies (nested lists) edition.
It includes also a tree widget for Tkinter, an event framework and a mutiple
undo/redo system.

%files
%doc AUTHORS CHANGES LICENSE README
%{py2_puresitedir}/%{name}
%{py2_puresitedir}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
%py2_build


%install
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1212 |21cr|editobj3-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Editobj3

Summary:	GTK or Qt5 dialog box for editing any Python object
Name:		editobj3
Version:	0.1
Release:	1
License:	LGPLv3+
Group:		Development/Python
Url:		https://pypi.python.org/pypi/EditObj3
Source0:	%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-gi
Requires:	python3-qt5-core
Requires:	python3-qt5-gui
Requires:	python3-qt5-widgets
Requires:	typelib(Gtk)
BuildArch:	noarch

%description
Editobj3 is an automatic dialog box generator for Python objects. It supports
several backends; currenlty Qt5, GTK and HTML are supported. The HTML backend
is based on W2UI, and can be used either in local single user mode, or in
distributed multiple users mode.
Its dialog boxes are composed of an attribute list, a luxurious good-looking
but useless icon and title bar, and a tree view (if the edited object is part
of a tree-like structure).
It includes an advanced introspection module that usually guesses how to edit
any object; it can also be customized for a given class of object through the
editobj3.introsp module. It also supports the simultaneous edition of a group
of objects, as if they were a single object, and a mutiple undo/redo system.

%files
%doc LICENSE.txt README.rst
%doc doc/html
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

# Remove hidden files
rm -f doc/html/.buildinfo
rm -rf doc/html/.doctrees/


%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1213 |21cr|eduke32-oldmp-2.0.4-2.33.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	svndate 20140722
%define	sversion 33
%define	oname eduke32

Summary:	Source port of Duke Nukem 3D
Name:		eduke32-oldmp
Version:	2.0.4
Release:	2.%{sversion}.1
License:	GPLv2+
Group:		Games/Arcade
Url:		https://www.eduke32.com/
Source0:	https://voidpoint.io/StrikerTheHedgefox/eduke32-csrefactor/-/archive/%{name}_release_%{sversion}/eduke32-csrefactor-%{name}_release_%{sversion}.tar.bz2
Source1:	%{oname}_32x32.png
Source2:	%{oname}_48x48.png
Source3:	%{oname}_64x64.png
Source4:	%{oname}_128x128.png
Source5:	%{oname}-demo-install.sh
Source6:	%{name}.cfg
BuildRequires:	git
BuildRequires:	nasm
BuildRequires:	shared-mime-info
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxmp)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(xrender)
Requires:	eduke32-oldmp_engine = %{EVRD}

%description
This package contains a source port of the classic first person shooter Duke
Nukem 3D. It fixes many known bugs, adds fraglimit support, backports some
features of mainline EDuke32, and has a few CON features of it's own that are
planned for mainline down the road.
Before using this you will need the data files from the original games and a
config file: see the provided README.config for the details.

%files
%doc package/common/gamecontrollerdb.txt
%{_gamesbindir}/%{name}-demo-install
%dir %{_gamesdatadir}/%{name}/
%{_gamesdatadir}/%{name}/m32help.hlp
%{_gamesdatadir}/%{name}/sehelp.hlp
%{_gamesdatadir}/%{name}/sthelp.hlp
%{_gamesdatadir}/%{name}/%{name}.cfg
%{_gamesdatadir}/%{name}/README.config
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png

#-----------------------------------------------------------------------------

%package gui
Group:		Games/Arcade
Summary:	Eduke32 GUI game
Requires:	%{name} = %{EVRD}
Requires:	update-alternatives
Provides:	eduke32-oldmp_engine = %{EVRD}

%description gui
Eduke32 game with a nice simple GTK2 loader.

%files gui
%doc package/common/gpl-2.0.txt
%{_gamesbindir}/%{name}-gui
%{_datadir}/applications/rosa-%{name}-gui.desktop

%post gui
update-alternatives --install %{_gamesbindir}/%{name} %{name} %{_gamesbindir}/%{name}-gui 11

%preun gui
if [ "$1" = 0 ] ; then
	update-alternatives --remove %{name} %{_gamesbindir}/%{name}-gui
fi

#-----------------------------------------------------------------------------

%package console
Summary:	Eduke32 Console game
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
Requires:	update-alternatives
Provides:	eduke32-oldmp_engine = %{EVRD}

%description console
Classic game Eduke32 without a GUI launcher.

%files console
%doc package/common/gpl-2.0.txt
%{_gamesbindir}/%{name}-console
%{_datadir}/applications/rosa-%{name}-console.desktop

%post console
update-alternatives --install %{_gamesbindir}/%{name} %{name} %{_gamesbindir}/%{name}-console 12

%preun console
if [ "$1" = 0 ] ; then
	update-alternatives --remove %{name} %{_gamesbindir}/%{name}-console
fi

#-----------------------------------------------------------------------------

# We pack both versions of the editor here and prefer the GUI one by using
# update-alternatives
%package mapeditor
Summary:	Eduke32 map editor
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
Requires:	update-alternatives

%description mapeditor
Eduke32 maps editor based on BUILD engine.

%files mapeditor
%doc package/common/gpl-2.0.txt
%{_gamesbindir}/mapster32-gui
%{_gamesbindir}/mapster32-console

%post mapeditor
update-alternatives --install %{_gamesbindir}/mapster32 mapster32 %{_gamesbindir}/mapster32-console 11
update-alternatives --install %{_gamesbindir}/mapster32 mapster32 %{_gamesbindir}/mapster32-gui 12

%preun mapeditor
if [ "$1" = 0 ] ; then
	update-alternatives --remove mapster32 %{_gamesbindir}/mapster32-console
	update-alternatives --remove mapster32 %{_gamesbindir}/mapster32-gui
fi

#-----------------------------------------------------------------------------

%prep
%setup -qn eduke32-csrefactor-%{name}_release_%{sversion}

%build
%setup_compile_flags
# Build first the GUI binaries...
make veryclean
%make FORCEDEBUG=1
mv %{oname} %{name}-gui
mv mapster32 mapster32-gui
# ...then the console ones
make veryclean
%make FORCEDEBUG=1 HAVE_GTK2=0
mv %{oname} %{name}-console
mv mapster32 mapster32-console

%install 
# No automated install in Makefile: do it manually
# Shareware demo installer script
install -Dm 0755 %{SOURCE5} %{buildroot}%{_gamesbindir}/%{name}-demo-install

# Gui versions of the game engine
install -Dm 0755 %{name}-gui %{buildroot}%{_gamesbindir}/%{name}-gui
install -Dm 0755 mapster32-gui %{buildroot}%{_gamesbindir}/mapster32-gui

# Console versions of the game engine
install -Dm 0755 %{name}-console %{buildroot}%{_gamesbindir}/%{name}-console
install -Dm 0755 mapster32-console %{buildroot}%{_gamesbindir}/mapster32-console

# Data files and help files for the editor
pushd package/sdk
install -Dm 0644 SEHELP.HLP %{buildroot}%{_gamesdatadir}/%{name}/sehelp.hlp
install -Dm 0644 STHELP.HLP %{buildroot}%{_gamesdatadir}/%{name}/sthelp.hlp
install -Dm 0644 m32help.hlp %{buildroot}%{_gamesdatadir}/%{name}/m32help.hlp
popd

# Icons
install -Dm 0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -Dm 0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -Dm 0644 %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png

# Sample config file
install -Dm 0644 %{SOURCE6} %{buildroot}%{_gamesdatadir}/%{name}/%{name}.cfg

# .desktop files for the two program flavors
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}-gui.desktop << EOF
[Desktop Entry]
Name=Duke Nukem 3D GUI
Comment=Eduke32 GUI game
Exec=%{name}-gui
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-%{name}-console.desktop << EOF
[Desktop Entry]
Name=Duke Nukem 3D Console
Comment=Eduke32 Console game
Exec=%{name}-console
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

# Tell to our users about the need of a config file and game data
cat > %{buildroot}%{_gamesdatadir}/%{name}/README.config << EOF
To actually use %{name} you need the data files from the original games
and a config file. Note that without the latter the console program flavor
and both map editors will simply crash.

To install the data files you will need to create the directory "eduke32"
in $Home/.config and copy into it the .GRP files from the original games.
As an alternative you can dowload the shareware game by using the provided
%{name}-demo-install script and use the .GRP file from it.

To have a config file, you can copy and customize the sample config file,
installed in %{_gamesdatadir}/%{name}.
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1214 |21cr|eekboard-1.0.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define libeek %mklibname eek %{major}
%define libeekgtk %mklibname eek-gtk %{major}
%define libeekxkl %mklibname eek-xkl %{major}
%define devname %mklibname %{name} -d

Summary:	Yet Another Virtual Keyboard
Name:		eekboard
Version:	1.0.8
Release:	10
Group:		System/X11
License:	GPLv3+
Url:		http://fedorahosted.org/eekboard/
Source0:	http://github.com/downloads/ueno/eekboard/%{name}-%{version}.tar.gz
Patch0:		eekboard-stop-key-repeat.patch
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libcroco-0.6)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(xtst)
Conflicts:	eekboard-service < 1.0.8-6
Obsoletes:	eekboard-service < 1.0.8-6

%description
eekboard is a virtual keyboard software package, including a set of
tools to implement desktop virtual keyboards.

%files -f %{name}.lang
%doc AUTHORS README
%doc base-installed/examples
%license COPYING
%{_bindir}/eekboard
%{_bindir}/eekboard-server
%{_libexecdir}/eekboard-setup
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/services/eekboard-server.service
%{_datadir}/eekboard/
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/icons/hicolor/*/apps/eekboard.png
%{_datadir}/icons/hicolor/scalable/apps/eekboard.svg

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for eekboard
Group:		System/Libraries
Conflicts:	%{name}-libs < 1.0.8-6
Obsoletes:	%{name}-libs < 1.0.8-6

%description -n %{libname}
This package contains shared library for eekboard.

%files -n %{libname}
%{_libdir}/libeekboard.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libeek}
Summary:	Shared library for eekboard
Group:		System/Libraries
Conflicts:	%{name}-libs < 1.0.8-6

%description -n %{libeek}
This package contains shared library for eekboard.

%files -n %{libeek}
%{_libdir}/libeek.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libeekgtk}
Summary:	Shared library for eekboard
Group:		System/Libraries
Conflicts:	%{name}-libs < 1.0.8-6

%description -n %{libeekgtk}
This package contains shared library for eekboard.

%files -n %{libeekgtk}
%{_libdir}/libeek-gtk.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libeekxkl}
Summary:	Shared library for eekboard
Group:		System/Libraries
Conflicts:	%{name}-libs < 1.0.8-6

%description -n %{libeekxkl}
This package contains shared library for eekboard.

%files -n %{libeekxkl}
%{_libdir}/libeek-xkl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for eekboard
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	%{libeek} = %{EVRD}
Requires:	%{libeekgtk} = %{EVRD}
Requires:	%{libeekxkl} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.0.8-6
Obsoletes:	%{name}-devel < 1.0.8-6

%description -n %{devname}
This package contains the development tools for eekboard.

%files -n %{devname}
%{_libdir}/libeek*.so
%{_includedir}/eek-0.90/
%{_includedir}/eekboard-0.90/
%{_libdir}/pkgconfig/eek*.pc
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
AUTOPOINT='intltoolize --automake --copy' autoreconf -fi
%configure	\
	--disable-static	\
	--disable-introspection \
	--disable-vala		\
	--enable-atspi
%make

%install
%makeinstall_std

# We don't install autostart file to avoid conflict with other OSK.
# Instead, install it under doc.
mkdir -p base-installed/examples
mv %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop base-installed/examples

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1215 |21cr|eepm-3.64.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Versions are X.Y.Z
# Stable versions have even Y (in Russian: у стабильных версий четный Y)

Summary:	Etersoft EPM package manager
Name:		eepm
Version:	3.64.0
Release:	2
License:	AGPLv3
Group:		System/Configuration/Packaging
Url:		https://wiki.etersoft.ru/EPM
Source0:	https://github.com/Etersoft/eepm/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		eepm-rosa.patch
BuildArch:	noarch

%description
Etersoft EPM is the package manager for any platform and any platform version.
It provides universal interface to any package manager. Can be useful for
system administrators working with various distros.

See detailed description here: http://wiki.etersoft.ru/EPM

%files
%doc README.* TODO
%license LICENSE
%{_bindir}/distr_info
%{_bindir}/epm*
%{_bindir}/esu
%{_bindir}/%{name}
%{_bindir}/serv
%{_datadir}/%{name}/
%_datadir/zsh/Completion/Linux/_%{name}
%dir %{_sysconfdir}/%{name}
%{_mandir}/man1/*
%{_sharedstatedir}/%{name}
%{_sysconfdir}/bash_completion.d/%{name}
%{_sysconfdir}/bash_completion.d/serv
%{_sysconfdir}/%{name}/%{name}.conf
%{_sysconfdir}/%{name}/pack.d
%{_sysconfdir}/%{name}/packrules.list
%{_sysconfdir}/%{name}/pkgallowscripts.list
%{_sysconfdir}/%{name}/play.d
%{_sysconfdir}/%{name}/prescription.d
%{_sysconfdir}/%{name}/repack.d
%{_sysconfdir}/%{name}/repackstoplist.list
%{_sysconfdir}/%{name}/serv.conf
%{_sysconfdir}/%{name}/vendorallowscripts.list

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
%make_install	\
	bindir=%{_bindir}	\
	datadir=%{_datadir}	\
	mandir=%{_mandir}	\
	sysconfdir=%{_sysconfdir}	\
	version=%{version}-%{release}

# shebang.req.files
chmod a+x %{buildroot}%{_datadir}/%{name}/erc-sh-archive

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1216 |21cr|eepmapp-3.64.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define oname eepmApp

Summary:	Graphical interface for the epm utility
Summary(ru_RU.UTF-8):	Графический интерфейс для утилиты epm
Name:		eepmapp
Version:	3.64.0.1
Release:	1
License:	GPLv3
Group:		System/Base
Url:		https://gitflic.ru/project/don_venchenzo/%{name}
Source0:	https://gitflic.ru/project/don_venchenzo/%{name}/blob/raw?file=SOURCES/%{oname}.tar.gz
BuildRequires:	gettext
BuildRequires:	lazarus
BuildRequires:	qt5pas
BuildRequires:	qt5pas-devel
Requires:	alien
Requires:	eepm
Requires:	qqc2-desktop-style
Requires:	%{_lib}Qt5Pas1

%description
A graphical interface for installing and removing programs provided by the eepm utility

%description -l ru_RU.UTF-8
Графический интерфейс для установки и удаления программ предоставляемых утилитой eepm.

%files -f %{oname}.lang
%doc README.md
%license LICENSE
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/locale/en/LC_MESSAGES/eepmApp.po
%{_datadir}/locale/ru/LC_MESSAGES/eepmApp.po
%{_datadir}/%{oname}
%{_iconsdir}/hicolor/256x256/apps/%{oname}.png
%{_sbindir}/%{name}install
%{_sbindir}/%{name}remove
%{_sbindir}/%{oname}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}
# remove prebuild file
rm -f %{oname}

%build
lazbuild --build-all %{oname}_qt5/*.lpi
lazbuild --build-all %{oname}_qt5_install/*.lpi
lazbuild --build-all %{oname}_qt5_remove/*.lpi

%install
install -Dm0755 ./%{oname}_qt5/%{oname} %{buildroot}%{_sbindir}/%{oname}
install -Dm0755 ./%{oname}_qt5_install/%{name}install %{buildroot}%{_sbindir}/%{name}install
install -Dm0755 ./%{oname}_qt5_remove/%{name}remove %{buildroot}%{_sbindir}/%{name}remove

install -Dm0755 ./src%{_bindir}/%{oname} %{buildroot}%{_bindir}/%{oname}
install -Dm0644 ./src%{_iconsdir}/hicolor/256x256/apps/%{oname}.png %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{oname}.png
install -Dm0644 ./src%{_datadir}/applications/%{oname}.desktop %{buildroot}%{_datadir}/applications/%{oname}.desktop
cp -r ./src%{_datadir}/%{oname}/ %{buildroot}%{_datadir}/%{oname}/
install -Dm0644 ./%{oname}_qt5/languages/%{oname}.en.mo %{buildroot}%{_datadir}/locale/en/LC_MESSAGES/%{oname}.mo
install -Dm0644 ./%{oname}_qt5/languages/%{oname}.ru.mo %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/%{oname}.mo
install -Dm0644 ./%{oname}_qt5/languages/%{oname}.en.po %{buildroot}%{_datadir}/locale/en/LC_MESSAGES/%{oname}.po
install -Dm0644 ./%{oname}_qt5/languages/%{oname}.ru.po %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/%{oname}.po

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1217 |21cr|efax-gtk-3.2.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil

Summary:	GTK frontend for efax
Name:		efax-gtk
Version:	3.2.15
Release:	1
License:	GPLv2
Group:		Communications
Url:		http://efax-gtk.sourceforge.net
Source0:	http://sourceforge.net/projects/efax-gtk/files/efax-gtk/3.2.12/%{name}-%{version}.src.tgz
BuildRequires:	desktop-file-utils
BuildRequires:	c++-gtk-utils-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(sigc++-2.0)
Requires:	cups
Requires:	ghostscript
Requires:	gv

%description
Efax-gtk provides a GUI frontend for the efax fax program. It interfaces with
efax directly, replacing the scripts supplied with efax, and can be used for
receiving and sending faxes, and for viewing, printing, and managing faxes
which have been received and sent.

%files -f %{name}.lang
%doc AUTHORS README BUGS COPYING
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_datadir}/applications/*
%{_mandir}/man1/*
%{_datadir}/pixmaps/%{name}.png
%{_localstatedir}/spool/fax/*

%post
touch /tmp/faxfile.ps
chmod a+rw /tmp/faxfile.ps

#----------------------------------------------------------------------------

%prep
%setup -q
# since users can't write to /var/lock
perl -p -i -e 's|/var/lock|/tmp||g' efax-gtkrc
# /dev/modem is quite common
perl -p -i -e 's|ttyS1|modem||g' efax-gtkrc

%build
%configure
perl -p -i -e 's/install-data-hook//g' Makefile efax-gtk-faxfilter/Makefile
perl -p -i -e 's/usr\/local/usr/g' Makefile
perl -p -i -e 's/efax-gtk.png/efax-gtk/g' efax-gtk.desktop
%make

%install
%makeinstall_std

#menu
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-Office-Communications-Fax" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1218 |21cr|efiboots-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		efiboots
Summary:	Manage EFI boot loader entries with this simple GUI
URL:		https://github.com/Elinvention/%{name}
Version:	1.0
Release:	1
License:	GPLv3
Group:		System/Configuration/Boot and Init
Source0:	https://github.com/Elinvention/efiboots/archive/refs/tags/1.0.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	efibootmgr
Requires:	python3
Requires:	python3-gobject3
Requires:	gtk4
BuildArch:	noarch

%description
Manage EFI boot loader entries with this simple GUI.

%prep
%autosetup -n %{name}-%{version}

%build
%py3_build

%install
%py3_install

%files
%{_bindir}/%{name}
%{python3_sitelib}/%{name}.py
%{python3_sitelib}/__pycache__/*.pyc
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%{_datadir}/applications/%{name}.desktop
%license LICENSE
%doc README.md
%exclude %{python3_sitelib}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1219 |21cr|efl-1.27.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define gstapi 1.0
%define major 1

%define shortver %(echo %{version} | cut -d. -f1,2)
%define libecore %mklibname ecore %{major}
%define libecore_audio %mklibname ecore_audio %{major}
%define libecore_avahi %mklibname ecore_avahi %{major}
%define libecore_con %mklibname ecore_con %{major}
%define libecore_drm2 %mklibname ecore_drm2 %{major}
%define libecore_evas %mklibname ecore_evas %{major}
%define libecore_file %mklibname ecore_file %{major}
%define libecore_imf %mklibname ecore_imf %{major}
%define libecore_imf_evas %mklibname ecore_imf_evas %{major}
%define libecore_input %mklibname ecore_input %{major}
%define libecore_input_evas %mklibname ecore_input_evas %{major}
%define libecore_ipc %mklibname ecore_ipc %{major}
%define libecore_sdl %mklibname ecore_sdl %{major}
%define libecore_x %mklibname ecore_x %{major}
%define libecore_wl2 %mklibname ecore_wl2 %{major}
%define devecore %mklibname ecore -d

%define libedje %mklibname edje %{major}
%define devedje %mklibname edje -d

%define libeet %mklibname eet %{major}
%define deveet %mklibname eet -d

%define libeeze %mklibname eeze %{major}
%define deveeze %mklibname eeze -d

%define libefl %mklibname efl %{major}
%define libefl_canvas_wl %mklibname efl_canvas_wl %{major}
%define devefl %mklibname efl -d

%define libefreet %mklibname efreet %{major}
%define libefreet_mime %mklibname efreet_mime %{major}
%define libefreet_trash %mklibname efreet_trash %{major}
%define devefreet %mklibname efreet -d

%define libeina %mklibname eina %{major}
%define deveina %mklibname eina -d

%define libeio %mklibname eio %{major}
%define deveio %mklibname eio -d

%define libeldbus %mklibname eldbus %{major}
%define develdbus %mklibname eldbus -d

%define libelua %mklibname elua %{major}
%define develua %mklibname elua -d

%define libembryo %mklibname embryo %{major}
%define devembryo %mklibname embryo -d

%define libemotion %mklibname emotion %{major}
%define devemotion %mklibname emotion -d

%define libeo %mklibname eo %{major}
%define libeo_dbg %mklibname eo_dbg %{major}
%define deveo %mklibname eo -d

%define libeolian %mklibname eolian %{major}
%define deveolian %mklibname eolian -d

%define libethumb %mklibname ethumb %{major}
%define libethumb_client %mklibname ethumb_client %{major}
%define devethumb %mklibname ethumb -d

%define libevas %mklibname evas %{major}
%define devevas %mklibname evas -d

%define libector %mklibname ector %{major}
%define devector %mklibname ector -d

%define libelput %mklibname elput %{major}
%define develput %mklibname elput -d

%define libexactness_play %mklibname exactness_play %{major}
%define libexactness_record %mklibname exactness_record %{major}
%define devexactness %mklibname exactness -d

%define libemile %mklibname emile %{major}
%define devemile %mklibname emile -d

%define libelementary %mklibname elementary %{major}
%define develementary %mklibname elementary -d

Summary:	Enlightenment Foundation Libraries
Name:		efl
Version:	1.27.0
Release:	1
Epoch:		3
License:	BSD
Group:		Graphical desktop/Enlightenment
Url:		http://www.enlightenment.org
Source0:	http://download.enlightenment.org/rel/libs/efl/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	egl-devel
BuildRequires:	gstreamer%{gstapi}-tools
BuildRequires:	gettext-devel
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	scim-devel
BuildRequires:	check-devel
BuildRequires:	wayland-protocols-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(bullet)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-video-%{gstapi})
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(ice)
#BuildRequires:	pkgconfig(libavif)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libheif)
#BuildRequires:	pkgconfig(libjxl)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libwebp)
#BuildRequires:	pkgconfig(libxine)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(mount)
BuildRequires:	pkgconfig(poppler-cpp)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
Provides:	%{mklibname elocation 1} = %{EVRD}
Provides:	%{mklibname ephysics 1} = %{EVRD}
Obsoletes:	%{mklibname elocation 1} < %{EVRD}
Obsoletes:	%{mklibname ephysics } < %{EVRD}

%description
The Enlightenment Foundation Libraries are a collection of libraries
and tools upon which sophisticated graphical applications can be
built. Included are a data structure library (Eina), a C-based object
engine (EO), a data storage library (EET), an object canvas (Evas),
and more.

%files -f %{name}.lang
%doc AUTHORS COPYING README.md

#----------------------------------------------------------------------------

%package -n ecore
Summary:	Enlightenment event/X abstraction layer
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n ecore
Ecore is the event/X abstraction layer that makes doing selections,
Xdnd, general X stuff, event loops, timeouts and idle handlers fast,
optimized, and convenient.

%files -n ecore
%{_bindir}/ecore_evas_convert
%{_datadir}/ecore
%{_datadir}/ecore_imf
%{_datadir}/ecore_x
%{_iconsdir}/Enlightenment-X
%{_libdir}/ecore_con/utils/v-%{shortver}/efl_net_proxy_helper
%{_libdir}/ecore_evas/engines/*/*/module.so
%{_libdir}/ecore_imf/modules/*/*/module.so
%{_libdir}/ecore/system/systemd/*/module.so
%{_libdir}/ecore/system/upower/*/module.so
%{_libdir}/ecore_wl2/engines/*/*/module.so

#----------------------------------------------------------------------------

%package -n %{libecore}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	ecore = %{EVRD}
Provides:	%{libecore_sdl} = %{EVRD}
Obsoletes:	%{libecore_sdl} < %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore}
Enlightenment event/X abstraction layer library.

%files -n %{libecore}
%{_libdir}/libecore.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_audio}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}

%description -n %{libecore_audio}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_audio}
%{_libdir}/libecore_audio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_avahi}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}

%description -n %{libecore_avahi}
Enlightenment avahi abstraction layer library.

%files -n %{libecore_avahi}
%{_libdir}/libecore_avahi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_con}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_con}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_con}
%{_libdir}/libecore_con.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_drm2}
Summary:	Enlightenment drm2 abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_drm2}
Enlightenment drm2 abstraction layer library.

%files -n %{libecore_drm2}
%{_libdir}/libecore_drm2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_evas}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_evas}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_evas}
%{_libdir}/libecore_evas.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_file}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_file}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_file}
%{_libdir}/libecore_file.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_imf}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_imf}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_imf}
%{_libdir}/libecore_imf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_imf_evas}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_imf_evas}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_imf_evas}
%{_libdir}/libecore_imf_evas.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_input}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_input}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_input}
%{_libdir}/libecore_input.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_input_evas}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_input_evas}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_input_evas}
%{_libdir}/libecore_input_evas.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_ipc}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_ipc}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_ipc}
%{_libdir}/libecore_ipc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_x}
Summary:	Enlightenment event/X abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_x}
Enlightenment event/X abstraction layer library.

%files -n %{libecore_x}
%{_libdir}/libecore_x.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecore_wl2}
Summary:	Enlightenment wayland abstraction layer library
License:	BSD
Group:		System/Libraries
Requires:	%{libecore} = %{EVRD}
Conflicts:	%{_lib}ecore1 < 3:1.8.0

%description -n %{libecore_wl2}
Enlightenment wayland abstraction layer library.

%files -n %{libecore_wl2}
%{_libdir}/libecore_wl2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libector}
Summary:	Enlightenment rendering libraries
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libector}
Enlightenment rendering libraries

%files -n %{libector}
%{_libdir}/libector.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devector}
Summary:	Ector headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libector} = %{EVRD}

%description -n %{devector}
ector headers and development libraries.

%files -n %{devector}
%{_libdir}/libector.so
%{_libdir}/pkgconfig/ector.pc

#----------------------------------------------------------------------------

%package -n %{libelput}
Summary:	Enlightenment rendering libraries
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libelput}
Enlightenment rendering libraries

%files -n %{libelput}
%{_libdir}/libelput.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{develput}
Summary:	elput headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libelput} = %{EVRD}

%description -n %{develput}
elput headers and development libraries.

%files -n %{develput}
%{_libdir}/libelput.so
%{_libdir}/pkgconfig/elput.pc
%{_includedir}/elput-1/Elput.h

#----------------------------------------------------------------------------

%package -n %{devecore}
Summary:	Ecore headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libecore} = %{EVRD}
Requires:	%{libecore_audio} = %{EVRD}
Requires:	%{libecore_avahi} = %{EVRD}
Requires:	%{libecore_con} = %{EVRD}
Requires:	%{libecore_drm2} = %{EVRD}
Requires:	%{libecore_evas} = %{EVRD}
Requires:	%{libecore_file} = %{EVRD}
Requires:	%{libecore_imf} = %{EVRD}
Requires:	%{libecore_imf_evas} = %{EVRD}
Requires:	%{libecore_input} = %{EVRD}
Requires:	%{libecore_input_evas} = %{EVRD}
Requires:	%{libecore_ipc} = %{EVRD}
Requires:	%{libecore_x} = %{EVRD}
Requires:	%{libecore_wl2} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	ecore-devel = %{EVRD}

%description -n %{devecore}
Ecore headers and development libraries.

%files -n %{devecore}
%{_datadir}/eolian/include/ecore-1
%{_datadir}/eolian/include/efl-1
%{_datadir}/eolian/include/efl-canvas-wl-1
%{_datadir}/eolian/include/elementary-1
%{_datadir}/eolian/include/emotion-1
%{_includedir}/ecore-1
%{_includedir}/ecore-audio-1
%{_includedir}/ecore-avahi-1
%{_includedir}/ecore-con-1
%{_includedir}/ecore-cxx-1
%{_includedir}/ecore-drm2-1
%{_includedir}/ecore-evas-1
%{_includedir}/ecore-file-1
%{_includedir}/ecore-imf-1
%{_includedir}/ecore-imf-evas-1
%{_includedir}/ecore-input-1
%{_includedir}/ecore-input-evas-1
%{_includedir}/ecore-ipc-1
%{_includedir}/ecore-sdl-1
%{_includedir}/ecore-wl2-1
%{_includedir}/ecore-x-1
%{_libdir}/cmake/Ecore
%{_libdir}/cmake/EcoreCxx
%{_libdir}/libecore_audio.so
%{_libdir}/libecore_avahi.so
%{_libdir}/libecore_con.so
%{_libdir}/libecore_drm2.so
%{_libdir}/libecore_evas.so
%{_libdir}/libecore_file.so
%{_libdir}/libecore_imf_evas.so
%{_libdir}/libecore_imf.so
%{_libdir}/libecore_input_evas.so
%{_libdir}/libecore_input.so
%{_libdir}/libecore_ipc.so
%{_libdir}/libecore_sdl.so
%{_libdir}/libecore.so
%{_libdir}/libecore_wl2.so
%{_libdir}/libecore_x.so
%{_libdir}/pkgconfig/ecore-audio.pc
%{_libdir}/pkgconfig/ecore-avahi.pc
%{_libdir}/pkgconfig/ecore-con.pc
%{_libdir}/pkgconfig/ecore-cxx.pc
%{_libdir}/pkgconfig/ecore-drm2.pc
%{_libdir}/pkgconfig/ecore-evas.pc
%{_libdir}/pkgconfig/ecore-file.pc
%{_libdir}/pkgconfig/ecore-imf-evas.pc
%{_libdir}/pkgconfig/ecore-imf.pc
%{_libdir}/pkgconfig/ecore-input-evas.pc
%{_libdir}/pkgconfig/ecore-input.pc
%{_libdir}/pkgconfig/ecore-ipc.pc
%{_libdir}/pkgconfig/ecore.pc
%{_libdir}/pkgconfig/ecore-sdl.pc
%{_libdir}/pkgconfig/ecore-wl2.pc
%{_libdir}/pkgconfig/ecore-x.pc

#----------------------------------------------------------------------------

%package -n exactness
Summary:	Enlightenment exactness
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n exactness
Enlightenment exactness

%files -n exactness
%{_bindir}/exactness
%{_bindir}/exactness_inject
%{_bindir}/exactness_inspect
%{_bindir}/exactness_play
%{_bindir}/exactness_record
%{_datadir}/exactness/player_entry.edj

#----------------------------------------------------------------------------

%package -n %{libexactness_play}
Summary:	Enlightenment rendering libraries
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libexactness_play}
Enlightenment rendering libraries

%files -n %{libexactness_play}
%{_libdir}/libexactness_play.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libexactness_record}
Summary:	Enlightenment rendering libraries
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libexactness_record}
Enlightenment rendering libraries

%files -n %{libexactness_record}
%{_libdir}/libexactness_record.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devexactness}
Summary:	exactness_play headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	exactness = %{EVRD}
Requires:	%{libexactness_play} = %{EVRD}
Requires:	%{libexactness_record} = %{EVRD}

%description -n %{devexactness}
exactness_play headers and development libraries.

%files -n %{devexactness}
%{_libdir}/libexactness_play.so
%{_libdir}/libexactness_record.so

#----------------------------------------------------------------------------

%package -n elementary
Summary:	Basic widget set based on EFL for mobile touch-screen devices
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n elementary
Basic widget set based on EFL for mobile touch-screen devices

%files -n elementary
%{_bindir}/elementary_codegen
%{_bindir}/elementary_config
%{_bindir}/elementary_perf
%{_bindir}/elementary_quicklaunch
%{_bindir}/elementary_run
%{_bindir}/elm_prefs_cc
%{_datadir}/applications/elementary_config.desktop
%{_datadir}/applications/elementary_perf.desktop
%{_datadir}/elementary
%{_iconsdir}/*/*/apps/elementary.png

#----------------------------------------------------------------------------

%package -n %{libelementary}
Summary:	Basic widget set based on EFL for mobile touch-screen devices
License:	BSD
Group:		System/Libraries

%description -n %{libelementary}
Basic widget set based on EFL for mobile touch-screen devices

%files -n %{libelementary}
%{_libdir}/libelementary.so.%{major}.*
%{_libdir}/libelementary.so.%{major}

#----------------------------------------------------------------------------

%package -n %{develementary}
Summary:	Elementary headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libelementary} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	elementary-devel = %{EVRD}

%description -n %{develementary}
Elementary headers and development libraries

%files -n %{develementary}
%{_bindir}/elementary_test
%{_datadir}/applications/elementary_test.desktop
%{_includedir}/elementary-1
%{_includedir}/elementary-cxx-1
%{_libdir}/cmake/Elementary/ElementaryConfig.cmake
%{_libdir}/cmake/Elementary/ElementaryConfigVersion.cmake
%{_libdir}/elementary/modules
%{_libdir}/libelementary.so
%{_libdir}/pkgconfig/elementary-cxx.pc
%{_libdir}/pkgconfig/elementary.pc

#----------------------------------------------------------------------------

%package -n edje
Summary:	Enlightenment complex graphical design and layout library extra files
License:	BSD
Group:		Graphical desktop/Enlightenment
Requires:	evas = %{EVRD}

%description -n edje
Enlightenment complex graphical design and layout library extra files.

%files -n edje
%{_bindir}/edje_*
%{_datadir}/edje
%{_datadir}/mime/packages/edje.xml
%{_libdir}/edje/modules/elm/*/module.so
%{_libdir}/edje/utils/*/epp

#----------------------------------------------------------------------------

%package -n %{libedje}
Summary:	Enlightenment complex graphical design and layout library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	edje = %{EVRD}

%description -n %{libedje}
Enlightenment complex graphical design and layout library for animated
resizable, compressed and scalable themes.

%files -n %{libedje}
%{_libdir}/libedje.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devedje}
Summary:	Edje headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libedje} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	edje-devel = %{EVRD}

%description -n %{devedje}
Edje headers and development libraries.

%files -n %{devedje}
%{_datadir}/eolian/include/edje-1
%{_includedir}/edje-1
%{_includedir}/edje-cxx-1
%{_libdir}/cmake/Edje
%{_libdir}/libedje.so
%{_libdir}/pkgconfig/edje-cxx.pc
%{_libdir}/pkgconfig/edje.pc

#----------------------------------------------------------------------------

%package -n eet
Summary:	Enlightenment simple compression utility
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n eet
Enlightenment simple compression utility.

%files -n eet
%{_bindir}/diffeet
%{_bindir}/eet
%{_bindir}/eetpack
%{_bindir}/vieet

#----------------------------------------------------------------------------

%package -n %{libeet}
Summary:	Enlightenment simple compression library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	eet = %{EVRD}

%description -n %{libeet}
Enlightenment simple compression library.

%files -n %{libeet}
%{_libdir}/libeet.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deveet}
Summary:	Eet headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libeet} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	eet-devel = %{EVRD}

%description -n %{deveet}
Eet headers and development libraries.

%files -n %{deveet}
%{_includedir}/eet-1
%{_includedir}/eet-cxx-1
%{_libdir}/cmake/Eet
%{_libdir}/cmake/EetCxx
%{_libdir}/libeet.so
%{_libdir}/pkgconfig/eet-cxx.pc
%{_libdir}/pkgconfig/eet.pc

#----------------------------------------------------------------------------

%package -n eeze
Summary:	Enlightenment devices manipulation library extra files
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n eeze
Eeze is a library for manipulating devices through udev with a simple and fast
api. It interfaces directly with libudev, avoiding such middleman daemons as
udisks/upower or hal, to immediately gather device information the instant it
becomes known to the system.

%files -n eeze
%{_bindir}/eeze_disk_ls
%{_bindir}/eeze_mount
%{_bindir}/eeze_scanner
%{_bindir}/eeze_scanner_monitor
%{_bindir}/eeze_umount
%{_datadir}/eeze
%{_libdir}/eeze/modules

#----------------------------------------------------------------------------

%package -n %{libeeze}
Summary:	Enlightenment devices manipulation library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	eeze = %{EVRD}

%description -n %{libeeze}
Enlightenment devices manipulation library.

%files -n %{libeeze}
%{_libdir}/libeeze.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deveeze}
Summary:	Eeze headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libeeze} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	eeze-devel = %{EVRD}

%description -n %{deveeze}
Eeze headers and development libraries.

%files -n %{deveeze}
%{_includedir}/eeze-1
%{_libdir}/cmake/Eeze
%{_libdir}/libeeze.so
%{_libdir}/pkgconfig/eeze.pc

#----------------------------------------------------------------------------

%package -n efreet
Summary:	Enlightenment freedesktop.org specifications implementation extra files
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n efreet
Enlightenment freedesktop.org specifications implementation extra files.
 - Base Directory
 - Desktop Entry
 - Icon Theme
 - Menu

%files -n efreet
%{_bindir}/efreetd
%{_datadir}/efreet
%{_libdir}/efreet/*/efreet_desktop_cache_create
%{_libdir}/efreet/*/efreet_icon_cache_create
%{_libdir}/efreet/*/efreet_mime_cache_create

#----------------------------------------------------------------------------

%package -n %{libefl}
Summary:	Enlightenment canvas library
License:	LGPLv2.1+
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libefl}
Enlightenment canvas library.

%files -n %{libefl}
%{_libdir}/libefl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libefl_canvas_wl}
Summary:	Enlightenment canvas library
License:	LGPLv2.1+
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libefl_canvas_wl}
Enlightenment canvas library.

%files -n %{libefl_canvas_wl}
%{_libdir}/libefl_canvas_wl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devefl}
Summary:	Efl canvas headers and development libraries
License:	LGPLv2.1+
Group:		Development/Other
Requires:	%{libefl} = %{EVRD}
Requires:	%{libefl_canvas_wl} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	efl-devel = %{EVRD}
Provides:	elocation-devel = %{EVRD}
Provides:	ephysics-devel = %{EVRD}
Provides:	%{mklibname elocation -d} = %{EVRD}
Provides:	%{mklibname ephysics -d} = %{EVRD}
Obsoletes:	%{mklibname elocation -d} < %{EVRD}
Obsoletes:	%{mklibname ephysics -d} < %{EVRD}

%description -n %{devefl}
Efl canvas headers and development libraries.

%files -n %{devefl}
%{_bindir}/efl_canvas_wl_test
%{_bindir}/efl_canvas_wl_test_stack
%{_bindir}/efl_debug
%{_bindir}/efl_debugd
%{_includedir}/efl-1
%{_includedir}/efl-canvas-wl-1
%{_includedir}/efl-cxx-1
%{_libdir}/cmake/Efl
%{_libdir}/libefl_canvas_wl.so
%{_libdir}/libefl.so
%{_libdir}/pkgconfig/efl-canvas-wl.pc
%{_libdir}/pkgconfig/efl-core.pc
%{_libdir}/pkgconfig/efl-cxx.pc
%{_libdir}/pkgconfig/efl-net.pc
%{_libdir}/pkgconfig/efl.pc
%{_libdir}/pkgconfig/efl-ui.pc

#----------------------------------------------------------------------------

%package -n %{libefreet}
Summary:	Enlightenment freedesktop.org specifications implementation library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	efreet = %{EVRD}

%description -n %{libefreet}
Enlightenment freedesktop.org specifications implementation library.

%files -n %{libefreet}
%{_libdir}/libefreet.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libefreet_mime}
Summary:	Enlightenment freedesktop.org specifications implementation library
License:	BSD
Group:		System/Libraries
Requires:	%{libefreet} = %{EVRD}
Conflicts:	%{_lib}efreet1 < 2:1.8.0

%description -n %{libefreet_mime}
Enlightenment freedesktop.org specifications implementation library.

%files -n %{libefreet_mime}
%{_libdir}/libefreet_mime.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libefreet_trash}
Summary:	Enlightenment freedesktop.org specifications implementation library
License:	BSD
Group:		System/Libraries
Requires:	%{libefreet} = %{EVRD}
Conflicts:	%{_lib}efreet1 < 2:1.8.0

%description -n %{libefreet_trash}
Enlightenment freedesktop.org specifications implementation library.

%files -n %{libefreet_trash}
%{_libdir}/libefreet_trash.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devefreet}
Summary:	Efreet headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libefreet} = %{EVRD}
Requires:	%{libefreet_mime} = %{EVRD}
Requires:	%{libefreet_trash} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	efreet-devel = %{EVRD}

%description -n %{devefreet}
Efreet headers and development libraries.

%files -n %{devefreet}
%{_includedir}/efreet-1
%{_libdir}/cmake/Efreet
%{_libdir}/libefreet_mime.so
%{_libdir}/libefreet.so
%{_libdir}/libefreet_trash.so
%{_libdir}/pkgconfig/efreet-mime.pc
%{_libdir}/pkgconfig/efreet.pc
%{_libdir}/pkgconfig/efreet-trash.pc

#----------------------------------------------------------------------------

%package -n eina
Summary:	Enlightenment data types library extra files
License:	LGPLv2.1+
Group:		Graphical desktop/Enlightenment

%description -n eina
Enlightenment data types library extra files.

eina-bench-cmp:
- generate reports comparing two or more outputs of expedite

eina_btlog:
- make EFL backtrace logs more human-readable

%files -n eina
%{_bindir}/eina_modinfo
%{_bindir}/eina_btlog

#----------------------------------------------------------------------------

%package -n %{libeina}
Summary:	Enlightenment data types library
License:	LGPLv2.1+
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libeina}
Enlightenment data types library.

%files -n %{libeina}
%{_libdir}/libeina.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deveina}
Summary:	Eina headers and development libraries
License:	LGPLv2.1+
Group:		Development/Other
Requires:	%{libeina} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Requires:	pkgconfig(libsystemd)
Provides:	eina-devel = %{EVRD}

%description -n %{deveina}
Eina headers and development libraries.

%files -n %{deveina}
%{_includedir}/eina-1
%{_includedir}/eina-cxx-1
%{_libdir}/cmake/Eina
%{_libdir}/cmake/EinaCxx
%{_libdir}/libeina.so
%{_libdir}/pkgconfig/eina-cxx.pc
%{_libdir}/pkgconfig/eina.pc

#----------------------------------------------------------------------------

%package -n %{libeio}
Summary:	Enlightenment Input Output library
License:	LGPLv2.1+
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libeio}
Enlightenment Input Output library.

%files -n %{libeio}
%{_libdir}/libeio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deveio}
Summary:	Eio headers and development libraries
License:	LGPLv2.1+
Group:		Development/Other
Requires:	%{libeio} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	eio-devel = %{EVRD}

%description -n %{deveio}
Eio headers and development libraries.

%files -n %{deveio}
%{_datadir}/eolian/include/eio-1
%{_includedir}/eio-1
%{_includedir}/eio-cxx-1
%{_libdir}/cmake/Eio
%{_libdir}/libeio.so
%{_libdir}/pkgconfig/eio-cxx.pc
%{_libdir}/pkgconfig/eio.pc

#----------------------------------------------------------------------------

%package -n eldbus
Summary:	Enlightenment dbus wrapper
License:	LGPLv2.1+
Group:		Graphical desktop/Enlightenment

%description -n eldbus
Enlightenment dbus wrapper.

%files -n eldbus
%{_bindir}/eldbus-codegen

#----------------------------------------------------------------------------

%package -n %{libeldbus}
Summary:	Enlightenment dbus wrapper library
License:	LGPLv2.1+
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	eldbus = %{EVRD}

%description -n %{libeldbus}
Enlightenment dbus wrapper library.

%files -n %{libeldbus}
%{_libdir}/libeldbus.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{develdbus}
Summary:	Eldbus headers and development libraries
License:	LGPLv2.1+
Group:		Development/Other
Requires:	%{libeldbus} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	eldbus-devel = %{EVRD}

%description -n %{develdbus}
Eldbus headers and development libraries.

%files -n %{develdbus}
%{_includedir}/eldbus-1
%{_includedir}/eldbus-cxx-1
%{_libdir}/cmake/Eldbus
%{_libdir}/libeldbus.so
%{_libdir}/pkgconfig/eldbus-cxx.pc
%{_libdir}/pkgconfig/eldbus.pc

#----------------------------------------------------------------------------

%package -n %{libelua}
Summary:	Enlightenment lua wrapper library
License:	LGPLv2.1+
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	elua = %{EVRD}

%description -n %{libelua}
Enlightenment lua wrapper library.

%files -n %{libelua}
%{_libdir}/libelua.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{develua}
Summary:	Elua headers and development libraries
License:	LGPLv2.1+
Group:		Development/Other
Requires:	%{libelua} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	elua-devel = %{EVRD}

%description -n %{develua}
Elua headers and development libraries.

%files -n %{develua}
%{_datadir}/elua/apps/empty.txt
%{_includedir}/elua-1
%{_libdir}/cmake/Elua
%{_libdir}/libelua.so
%{_libdir}/pkgconfig/elua.pc

#----------------------------------------------------------------------------

%package -n elua
Summary:	Enlightenment Lua-based Just-in-Time application runtime stack
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n elua
Enlightenment Lua-based Just-in-Time application runtime stack.

%files -n elua
%{_bindir}/elua
%{_datadir}/elua/checkme
%{_datadir}/elua/core/*.lua
%{_datadir}/elua/modules/*.lua

#----------------------------------------------------------------------------

%package -n embryo
Summary:	Enlightenment bytecode virtual machine
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n embryo
Embryo is primarily a shared library that gives you an API to load and control
interpreted programs compiled into an abstract machine bytecode that it
understands. This abstract (or virtual) machine is similar to a real machine
with a CPU, but it is emulated in software.

%files -n embryo
%{_bindir}/embryo_cc
%{_datadir}/embryo

#----------------------------------------------------------------------------

%package -n %{libembryo}
Summary:	Enlightenment bytecode virtual machine library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	embryo = %{EVRD}

%description -n %{libembryo}
Enlightenment bytecode virtual machine library.

%files -n %{libembryo}
%{_libdir}/libembryo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devembryo}
Summary:	Embryo headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libembryo} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	embryo-devel = %{EVRD}

%description -n %{devembryo}
Embryo headers and development libraries.

%files -n %{devembryo}
%{_includedir}/embryo-1
%{_libdir}/libembryo.so
%{_libdir}/pkgconfig/embryo.pc

#----------------------------------------------------------------------------

%package -n %{libemile}
Summary:	Enlightenment encoding libraries
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libemile}
Enlightenment encoding libraries

%files -n %{libemile}
%{_libdir}/libemile.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devemile}
Summary:	Emile headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libemile} = %{EVRD}

%description -n %{devemile}
emile headers and development libraries.

%files -n %{devemile}
%{_includedir}/emile-1
%{_libdir}/cmake/Emile
%{_libdir}/libemile.so
%{_libdir}/pkgconfig/emile.pc

#----------------------------------------------------------------------------

%package -n emotion
Summary:	Enlightenment video & media object library extra files
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n emotion
Emotion is a video & media object library designed to interface with Evas and
Ecore to provide autonomous "video" and "audio" objects that can be moved,
resized and positioned like any normal object, but instead they can play video
and audio and can be controlled from a high-level control API allowing the
programmer to quickly piece together a multi-media system with minimal work.

%files -n emotion
%{_bindir}/emotion_test
%{_bindir}/emotion_test-eo
%{_datadir}/emotion
%{_libdir}/edje/modules/emotion
%{_libdir}/emotion

#----------------------------------------------------------------------------

%package -n %{libemotion}
Summary:	Enlightenment video & media object library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	emotion = %{EVRD}

%description -n %{libemotion}
Enlightenment video & media object library.

%files -n %{libemotion}
%{_libdir}/libemotion.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devemotion}
Summary:	Emotion headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libemotion} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	emotion-devel = %{EVRD}

%description -n %{devemotion}
Emotion headers and development libraries.

%files -n %{devemotion}
%{_includedir}/emotion-1
%{_libdir}/cmake/Emotion
%{_libdir}/libemotion.so
%{_libdir}/pkgconfig/emotion.pc

#----------------------------------------------------------------------------

%package -n %{libeo}
Summary:	Enlightenment generic object system library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libeo}
Enlightenment generic object system library.

%files -n %{libeo}
%{_libdir}/libeo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libeo_dbg}
Summary:	Enlightenment generic object system library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libeo_dbg}
Enlightenment generic object system library.

%files -n %{libeo_dbg}
%{_libdir}/libeo_dbg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deveo}
Summary:	Eo headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libeo} = %{EVRD}
Requires:	%{libeo_dbg} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	eo-devel = %{EVRD}

%description -n %{deveo}
Eo headers and development libraries.

%files -n %{deveo}
%{_bindir}/eo_debug
%{_datadir}/eo/gdb/eo_gdb.py
%{_datadir}/eo/gdb/__pycache__
%{_datadir}/eolian/include/eo-1
%{_datadir}/gdb/auto-load/usr/lib/libeo.so.*-gdb.py
%{_datadir}/gdb/auto-load/usr/lib/__pycache__
%{_includedir}/eo-1
%{_includedir}/eo-cxx-1
%{_libdir}/cmake/Eo
%{_libdir}/cmake/EoCxx
%{_libdir}/libeo_dbg.so
%{_libdir}/libeo.so
%{_libdir}/pkgconfig/eo-cxx.pc
%{_libdir}/pkgconfig/eo.pc

#----------------------------------------------------------------------------

%package -n eolian
Summary:	Enlightenment C++ bindings generator
License:	BSD
Group:		Graphical desktop/Enlightenment

%description -n eolian
Enlightenment C++ bindings generator.

%files -n eolian
%{_bindir}/eolian_cxx
%{_bindir}/eolian_gen

#----------------------------------------------------------------------------

%package -n %{libeolian}
Summary:	Enlightenment C++ bindings generator library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libeolian}
Enlightenment C++ bindings generator library.

%files -n %{libeolian}
%{_libdir}/libeolian.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deveolian}
Summary:	Eolian headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libeolian} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Requires:	eolian = %{EVRD}
Provides:	eolian-devel = %{EVRD}

%description -n %{deveolian}
Eolian headers and development libraries.

%files -n %{deveolian}
%{_includedir}/eolian-1
%{_includedir}/eolian-cxx-1
%{_libdir}/cmake/Eolian
%{_libdir}/cmake/EolianCxx
%{_libdir}/libeolian.so
%{_libdir}/pkgconfig/eolian-cxx.pc
%{_libdir}/pkgconfig/eolian.pc

#----------------------------------------------------------------------------

%package -n ethumb
Summary:	Enlightenment canvas library extra files
License:	LGPLv2.1+
Group:		Graphical desktop/Enlightenment
Requires(post,preun,postun):	systemd

%description -n ethumb
Enlightenment canvas library extra files.

Evas is a clean display canvas API for several target display systems
that can draw anti-aliased text, smooth super and sub-sampled scaled
images, alpha-blend objects much and more.

%files -n ethumb
%{_bindir}/ethumb
%{_bindir}/ethumbd
%{_bindir}/ethumbd_client
%{_datadir}/dbus-1/services/org.enlightenment.Ethumb.service
%{_datadir}/ethumb
%{_datadir}/ethumb_client
%{_libdir}/ethumb
%{_libdir}/ethumb_client
%{_userunitdir}/ethumb.service

%post -n ethumb
%systemd_post ethumb.service

%preun -n ethumb
%systemd_preun ethumb.service

%postun -n ethumb
%systemd_postun ethumb.service

#----------------------------------------------------------------------------

%package -n %{libethumb}
Summary:	Enlightenment thumbnailing library
License:	LGPLv2.1+
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	ethumb = %{EVRD}

%description -n %{libethumb}
Enlightenment thumbnailing library.

%files -n %{libethumb}
%{_libdir}/libethumb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libethumb_client}
Summary:	Enlightenment thumbnailing library
License:	LGPLv2.1+
Group:		System/Libraries
Requires:	%{libethumb} = %{EVRD}
Conflicts:	%{_lib}ethumb1 < 1.7.9

%description -n %{libethumb_client}
Enlightenment thumbnailing library.

%files -n %{libethumb_client}
%{_libdir}/libethumb_client.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devethumb}
Summary:	Ethumb headers and development libraries
License:	LGPLv2.1+
Group:		Development/Other
Requires:	%{libethumb} = %{EVRD}
Requires:	%{libethumb_client} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	ethumb-devel = %{EVRD}

%description -n %{devethumb}
Ethumb headers and development libraries.

%files -n %{devethumb}
%{_includedir}/ethumb-1
%{_includedir}/ethumb-client-1
%{_libdir}/cmake/Ethumb
%{_libdir}/cmake/EthumbClient
%{_libdir}/libethumb_client.so
%{_libdir}/libethumb.so
%{_libdir}/pkgconfig/ethumb-client.pc
%{_libdir}/pkgconfig/ethumb_client.pc
%{_libdir}/pkgconfig/ethumb.pc

#----------------------------------------------------------------------------

%package -n evas
Summary:	Enlightenment canvas library extra files
License:	BSD
Group:		Graphical desktop/Enlightenment
Provides:	evas_generic_loaders = %{EVRD}
Conflicts:	evas_generic_loaders < 1.18
Obsoletes:	evas_generic_loaders < 1.18

%description -n evas
Enlightenment canvas library extra files.

Evas is a clean display canvas API for several target display systems
that can draw anti-aliased text, smooth super and sub-sampled scaled
images, alpha-blend objects much and more.

%files -n evas
%{_datadir}/evas
%{_datadir}/mime/packages/evas.xml
%{_libdir}/evas/modules/engines/*/*/*.so
%{_libdir}/evas/modules/image_loaders/*/*/*.so
%{_libdir}/evas/modules/image_savers/*/*/*.so
%{_libdir}/evas/utils

#----------------------------------------------------------------------------

%package -n %{libevas}
Summary:	Enlightenment canvas library
License:	BSD
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	evas = %{EVRD}

%description -n %{libevas}
Enlightenment canvas library.

%files -n %{libevas}
%{_libdir}/libevas.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devevas}
Summary:	Evas headers and development libraries
License:	BSD
Group:		Development/Other
Requires:	%{libevas} = %{EVRD}
Requires:	%{devefl} = %{EVRD}
Provides:	evas-devel = %{EVRD}

%description -n %{devevas}
Evas headers and development libraries.

%files -n %{devevas}
%{_datadir}/eolian/include/evas-1
%{_includedir}/evas-1
%{_includedir}/evas-cxx-1
%{_libdir}/cmake/Evas
%{_libdir}/cmake/EvasCxx
%{_libdir}/libevas.so
%{_libdir}/pkgconfig/evas-cxx.pc
%{_libdir}/pkgconfig/evas.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
	-Davahi=true	\
	-Ddrm=true	\
	-Delua=true	\
	-Dsdl=true	\
	-Dwl=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1220 |21cr|efte-1.1.1-0.20190905.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap 20190905
%define debug_package %{nil}

Summary:	Easy to use text mode editor
Name:		efte
Version:	1.1.1
Release:	0.%{snap}.1
Source0:	https://github.com/lanurmi/efte/archive/master.tar.gz
License:	GPL
Group:		Editors
URL:		http://github.com/lanurmi/efte/
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	cmake ninja
%rename fte

%description
eFTE is a Text Mode text editor for xterm sessions.  Color syntax highlighting
for C/C++, REXX, HTML, IPF, PERL, Ada, Pascal, TEX.  Multiple file/window
editing, Column blocks, configurable menus and keyboard bindings, mouse
support, undo/redo, regular expression search and replace, folding, background
compiler execution.

%package x11
Summary:	X11 version of the eFTE editor
Group:		Editors
Requires:	%{name} = %{EVRD}
%rename fte-x11

%description x11
X11 version of the eFTE editor

%prep
%setup -qn efte-master
%cmake \
	-G Ninja

%build
%ninja_build -C build

%install
%ninja_install -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/org.openmandriva.%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=eFTE Text Editor
Exec=%{name}
Icon=editors_section
Terminal=false
Type=Application
Categories=Utility;TextEditor;
EOF


%files 
%doc README COPYING AUTHORS HISTORY Artistic
%{_bindir}/nefte
%{_bindir}/vefte
%{_datadir}/efte

%files x11
%{_bindir}/efte
%{_datadir}/applications/*
%{_datadir}/pixmaps/efte*.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1221 |21cr|eggdrop-1.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IRC bot, written in C
Name:		eggdrop
Version:	1.9.1
Release:	4
License:	GPLv2+
Group:		Networking/IRC
Url:		http://www.eggheads.org/
Source0:	ftp://ftp.eggheads.org/pub/eggdrop/source/1.9/%{name}-%{version}.tar.gz
BuildRequires:	tcl
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(tcl)

%description
Eggdrop is an IRC bot, written in C.  If you don't know what IRC is,
this is probably not whatever you're looking for!  Eggdrop, being a
bot, sits on a channel and takes protective measures: to keep the
channel from being taken over (in the few ways that anything CAN),

to recognize banished users or sites and reject them, to recognize
privileged users and let them gain ops, etc.

%files
%doc %{_docdir}/*
%dir %{_libdir}/eggdrop
%dir %{_libdir}/eggdrop/language
%dir %{_libdir}/eggdrop/modules-%{version}
%dir %{_libdir}/eggdrop/help
%dir %{_libdir}/eggdrop/help/msg
%dir %{_libdir}/eggdrop/help/set
%dir %{_libdir}/eggdrop/scripts
%dir %{_libdir}/eggdrop/logs
%dir %{_libdir}/eggdrop/text
%{_libdir}/eggdrop/language/*.lang
%{_libdir}/eggdrop/text/*
%{_libdir}/eggdrop/logs/*
%{_libdir}/eggdrop/modules-%{version}/*.so
%{_libdir}/eggdrop/eggdrop-%{version}
%{_libdir}/eggdrop/eggdrop-basic.conf
%{_libdir}/eggdrop/eggdrop
%{_libdir}/eggdrop/help/*.help
%{_libdir}/eggdrop/help/msg/*.help
%{_libdir}/eggdrop/help/set/*.help
%{_libdir}/eggdrop/scripts/CONTENTS
%{_libdir}/eggdrop/scripts/*.tcl
%{_libdir}/eggdrop/scripts/botchk
%{_libdir}/eggdrop/scripts/autobotchk
%{_libdir}/eggdrop/scripts/weed
%{_libdir}/eggdrop/eggdrop.conf
%{_mandir}/man1/*
%{_libdir}/eggdrop/modules

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CPPFLAGS="%{optflags} -DHAVE_TCL_THREADS"
export CFLAGS="%{optflags}"
%configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir}

make config

%make \
	LD="gcc %{ldflags}" \
	SHLIB_LD="gcc -shared -nostartfiles %{ldflags}" \
	MOD_LD="gcc %{ldflags}"

%install
mkdir -p %{buildroot}%{_libdir}/eggdrop
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_docdir}/eggdrop-%{version}
mkdir -p %{buildroot}%{_mandir}

%makeinstall \
	prefix=%{buildroot}%{_libdir}/eggdrop

mv %{buildroot}%{_libdir}/eggdrop/doc/man1/ %{buildroot}%{_mandir}

#rpm installation complains otherwise due to rpm looking up the executables..
perl -pi -e s":/path/to/executable/eggdrop:%{_libdir}/eggdrop/eggdrop:" eggdrop.conf

cp -fR eggdrop.conf %{buildroot}%{_docdir}/eggdrop-%{version}/
cp -Rf scripts/botchk %{buildroot}%{_docdir}/eggdrop-%{version}/
rm -rf %{buildroot}%{_libdir}/eggdrop/filesys
cp -Rf %{buildroot}%{_libdir}/eggdrop/doc/* %{buildroot}%{_docdir}/eggdrop-%{version}/
rm -rf %{buildroot}%{_libdir}/eggdrop/doc/
mv %{buildroot}%{_libdir}/eggdrop/README %{buildroot}%{_docdir}/eggdrop-%{version}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1222 |21cr|egoboo-2.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	3D dungeon crawling game
Name:		egoboo
Version:	2.8.1
Release:	4
Epoch:		1
License:	GPLv3+
Group:		Games/Adventure
URL:		http://egoboo.sourceforge.net/
#Source0:	http://downloads.sourceforge.net/egoboo/%{name}-%{version}.tar.gz
#Since upstream gives both source and data in one tarball, we split it between here and egoboo-data package :
#wget http://downloads.sourceforge.net/egoboo/%{name}-%{version}.tar.gz
#tar xvf %{name}-%{version}.tar.gz
#mkdir %{name}-data-%{version}
#cd %{name}-%{version}
#mv basicdat/ doc/ modules/ egoboo*ico ../%{name}-data-%{version}/
#cd ..
#tar Jcvf %{name}-%{version}.tar.xz %{name}-%{version}/
#tar Jcvf %{name}-data-%{version}.tar.xz %{name}-data-%{version}/
Source0:	%{name}-%{version}.tar.xz
Patch5:		egoboo-2.8.1-add-destdir.patch
Patch7:		egoboo-2.8.1-use-datadir-for-config.patch
Patch9:		egoboo-2.8.1-link-against-libm.patch
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:	SDL_image-devel
BuildRequires:	mesaglu-devel
BuildRequires:	imagemagick
BuildRequires:	physfs-devel
BuildRequires:	dos2unix
Requires:	egoboo-data = %{epoch}:%{version}

%description
Egoboo is an open source project, using OpenGL and SDL(Simple
DirectMedia Layer) libraries. It is a 3d dungeon role playing
game in the spirit of NetHack. Nice colorful graphics, and
detailed models(using Quake2 modeling tools) make this game
stand out in the gaming open-source community.

%prep
%setup -q
%patch5 -p1 -b .destdir~
%patch7 -p1 -b .conf_dir~
%patch9 -p1 -b .libm~
for f in `find -name \*.c -o -name \*.h -o -name README\* -o -name change.log`; do
	dos2unix $f
	chmod 644 $f
done

%build
%make OPT='-DPREFIX=\"%{_prefix}\" -D_NIX_PREFIX -Wall %{optflags}'

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Egoboo
Comment=A top down graphical (3D) RPG in the spirit of Nethack
Exec=%{_gamesbindir}/egoboo
Icon=egoboo
Terminal=false
StartupNotify=false
Type=Application
Categories=Game;RolePlaying;AdventureGame;
EOF

mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert egoboo1.ico egoboo.png
convert -resize 16x16 egoboo-1.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -resize 32x32 egoboo-1.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -resize 48x48 egoboo-1.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files
%doc README.Linux game/change.log
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/controls.txt
%{_gamesdatadir}/%{name}/setup.txt
%{_datadir}/applications/egoboo.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1223 |21cr|egoboo-data-2.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	egoboo

Summary:	Data files for egoboo
Name:		%{oname}-data
Version:	2.8.1
Release:	4
Epoch:		1
License:	GPLv3+
Group:		Games/Adventure
URL:		http://egoboo.sourceforge.net/
Source0:	http://downloads.sourceforge.net/egoboo/%{name}-%{version}.tar.xz
Requires:	%{oname} = %{epoch}:%{version}
BuildArch:	noarch

%description
Egoboo is an open source project, using OpenGL and SDL(Simple
DirectMedia Layer) libraries. It is a 3d dungeon role playing
game in the spirit of NetHack. Nice colorful graphics, and
detailed models(using Quake2 modeling tools) make this game
stand out in the gaming open-source community.

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_gamesdatadir}/%{oname}
cp -r basicdat modules %{buildroot}%{_gamesdatadir}/%{oname}

%files
%defattr(644,root,root,755)
%dir %{_gamesdatadir}/%{oname}
%{_gamesdatadir}/%{oname}/basicdat
%{_gamesdatadir}/%{oname}/modules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1224 |21cr|egroupware-16.1.20170703-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (oe) undefining these makes the build _real_ quick.
%undefine __find_provides
%undefine __find_requires

%define	Name	eGroupware

Name:		egroupware
Version:	16.1.20170703 
Release:	1
Summary:	Web-based groupware suite written in php
License:	GPL+
Group:		System/Servers
URL:		http://www.egroupware.org/
Source0:	https://github.com/EGroupware/egroupware/releases/download/%{version}/%{name}-epl-%{version}.tar.bz2
Patch0:		egroupware-apache.conf.patch

Requires:	apache-mod_php
Requires:	apache-mod_socache_shmcb
Requires:	php-xml
Requires:	php-gd
Requires:	php-cli
Requires:	php-dom
Requires:	php-zip
Requires:	php-pear-XML_Parser
Requires:	%{name}-calendar
Requires:	%{name}-etemplate
Requires:	%{name}-emailadmin
Recommends:	php-pdo_mysql
Recommends:	php-mcrypt
Recommends:	php-imap
Provides:	egroupware-addressbook = %{version}-%{release}
Provides:	egroupware-etemplate = %{version}-%{release}
Provides:	egroupware-contrib-icalsrv = %{version}-%{release}
Provides:	egroupware-contrib-egwical = %{version}-%{release}
Provides:	egroupware-icalsrv = %{version}-%{release}
Provides:	egroupware-mydms = %{version}-%{release}
Provides:	%{name}-egw-pear = %{version}-%{release}
BuildArch:	noarch

%description
eGroupWare is a web-based groupware suite written in PHP. 
The core package provides the admin, setup, phpgwapi and preferences
packages. It also provides an API for developing additional applications. 
See the egroupware apps project for add-on apps.

%files
%doc doc/* 
# Apache configuration file
%config(noreplace) %{_webappconfdir}/%{name}.conf
# Header config file
%attr(640,apache,apache) %config(noreplace) %{_localstatedir}/lib/%{name}/header.inc.php
# top level dir and files
%dir %{_var}/www/%{name}
%{_var}/www/%{name}/Gruntfile.js
%{_var}/www/%{name}/README.md
%{_var}/www/%{name}/package.json
%{_var}/www/%{name}/*.php
%{_var}/www/%{name}/groupdav.htaccess
%{_var}/www/%{name}/header.inc.php.template
%{_var}/www/%{name}/addressbook
%{_var}/www/%{name}/admin
%{_var}/www/%{name}/preferences
%{_var}/www/%{name}/setup
%{_var}/www/%{name}/home
%{_var}/www/%{name}/resources
%{_var}/www/%{name}/files
%{_var}/www/%{name}/activesync
%{_var}/www/%{name}/composer*
%{_var}/www/%{name}/api
%{_var}/www/%{name}/mail
%{_var}/www/%{name}/pixelegg
%{_var}/www/%{name}/vendor
%attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name}
%attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name}/default
%attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name}/default/files
%attr(-,apache,apache) %dir %{_localstatedir}/lib/%{name}/default/backup

#------------------------------------------------------------------------

%package bookmarks
Summary:	The eGroupWare bookmarks application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description bookmarks
Manage your bookmarks with eGroupWare. Has Netscape plugin.

%files bookmarks
%{_var}/www/%{name}/bookmarks

#------------------------------------------------------------------------

%package calendar
Summary:	The eGroupWare calendar application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description calendar
Powerful calendar with meeting request system, Alarms, CalDAV and E-Mail 
support, and ACL security.

%files calendar
%{_var}/www/%{name}/calendar

#------------------------------------------------------------------------

%package emailadmin
Summary:	The eGroupWare emailadmin application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}
Recommends:	php-pear-Auth_SASL

%description emailadmin
EmailAdmin enables user email account maintenance in eGroupWare.

%files emailadmin
%{_var}/www/%{name}/emailadmin

#------------------------------------------------------------------------

%package filemanager
Summary:	The eGroupWare filemanager application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description filemanager
This is the filemanager app for eGroupWare.

%files filemanager
%{_var}/www/%{name}/filemanager

#------------------------------------------------------------------------

%package importexport
Summary:	The eGroupWare import/export function
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description importexport
This package provides a general import/export function for the 
eGroupware suite.

%files importexport
%{_var}/www/%{name}/importexport

#------------------------------------------------------------------------

%package infolog
Summary:	The eGroupWare infolog application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description infolog
This is the infolog app for eGroupWare.

%files infolog
%{_var}/www/%{name}/infolog

#------------------------------------------------------------------------

%package news_admin
Summary:	The eGroupWare news_admin application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description news_admin
This is the news_admin app for eGroupWare.

%files news_admin
%doc news_admin/doc/*
%{_var}/www/%{name}/news_admin

#------------------------------------------------------------------------

%package notifications
Summary:	User notifications for eGroupWare
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description notifications
This package provides pop-up user notifications for the eGroupWare 
suite.

%files notifications
%{_var}/www/%{name}/notifications

#------------------------------------------------------------------------

%package projectmanager
Summary:	The eGroupWare projects application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description projectmanager
This is the projects app for eGroupWare.

%files projectmanager
%{_var}/www/%{name}/projectmanager

#------------------------------------------------------------------------

%package registration
Summary:	The eGroupWare registration application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description registration
This is the registration app for eGroupWare.

%files registration
%doc registration/doc/*
%{_var}/www/%{name}/registration

#------------------------------------------------------------------------

%package timesheet
Summary:	The eGroupWare timesheet application
Group:		System/Servers
Requires:	%{name} >= %{version}-%{release}

%description timesheet
Free time management.

%files timesheet
%{_var}/www/%{name}/timesheet

#------------------------------------------------------------------------

%package tracker
Summary:	The eGroupWare tracker application
Group:		System/Servers
Requires:	%{name} = %{version}-%{release}

%description tracker
This is the tracker app for eGroupWare.

%files tracker
%{_var}/www/%{name}/tracker

#------------------------------------------------------------------------

%prep
%setup -qn %{name}
%apply_patches

# cleanup
find . -type f -empty | xargs rm -f
find . -type f | xargs -I % chmod 644 "%"
find . -name .htaccess |xargs rm -f

%build

%install
# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
install -m 644 doc/rpm-build/apache.conf %{buildroot}%{_webappconfdir}/%{name}.conf

# install files
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/default/files
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/default/backup
install -d -m 755 %{buildroot}%{_var}/www/%{name}
cp -aRf * %{buildroot}%{_var}/www/%{name}

# setup the config file: this dummy content triggers the setup process 
# (from upstream's package)
cp doc/rpm-build/header.inc.php %{buildroot}%{_localstatedir}/lib/%{name}/header.inc.php
ln -s %{_localstatedir}/lib/%{name}/header.inc.php %{buildroot}%{_var}/www/%{name}/header.inc.php

# post-install cleanup
rm -rf %{buildroot}%{_var}/www/%{name}/doc 
rm -rf %{buildroot}%{_var}/www/%{name}/*/doc 
#rm -f %{buildroot}%{_var}/www/%{name}/felamimail/{COPYING,Changelog,README,TODO}
# doc cleanup
# rm -f doc/Makefile
rm -rf doc/rpm-build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1225 |21cr|egroupware-contrib-1.2.107-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname egroupware
%define wwwdir %{_var}/www/%{oname}

Summary:	Contrib modules for egroupware suite
Name:		egroupware-contrib
Version:	1.2.107
Release:	15
License:	GPL+
Group:		System/Servers
Url:		http://www.egroupware.org/
Source0:	eGroupWare-contrib-%{version}-2.tar.bz2
Requires:	apache-mod_php
Requires:	apache-mod_socache_shmcb
Requires:	php-xml
Requires:	php-gd
BuildArch:	noarch

%description
eGroupWare is a web-based groupware suite written in PHP. This -contrib
package provides unsupported (and often obsolete and broken) plugins.

#----------------------------------------------------------------------------

%package backup
Summary:	The eGroupWare backup application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-backup = %{EVRD}

%description backup
An online configurable backup app to store data offline.
Can store files in zip, tar.gz and tar.bz2 on the local machine
or Remote via FTP, SMBMOUNT or NFS.

%files backup
%doc backup/README
%{wwwdir}/backup

#----------------------------------------------------------------------------

%package browser
Summary:	The eGroupWare browser application
Group:		System/Servers
Requires:	%{oname} >= %{version}

%description browser
The eGroupWare browser application.

%files browser
%doc browser/doc/*
%{wwwdir}/browser

#----------------------------------------------------------------------------

%package chatty
Summary:	The eGroupWare chat application
Group:		System/Servers
Requires:	%{oname} >= %{version}

%description chatty
Direct dialogue for egroupware.

%files chatty
%{wwwdir}/chatty

#----------------------------------------------------------------------------

%package comic
Summary:	The eGroupWare comic application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-comic = %{EVRD}

%description comic
This application display comic strips.

%files comic
%doc comic/doc/*
%{wwwdir}/comic

#----------------------------------------------------------------------------

%package email
Summary:	The eGroupWare email application
Group:		System/Servers
Provides:	egroupware-email = %{EVRD}

%description email
AngleMail for eGroupWare at www.anglemail.org is an Email reader with multiple
accounts and mailbox filtering. Also Anglemail support IMAP, IMAPS, POP3 and
POP3S accounts.

%files email
%doc email/addressbook-js.changelog.txt email/doc/*
%{wwwdir}/email

#----------------------------------------------------------------------------

%package filescenter
Summary:	The eGroupWare filescenter application
Group:		System/Servers
Requires:	%{oname} >= %{version}

%description filescenter
This is the filescenter app for eGroupWare.

%files filescenter
%doc filescenter/doc/*
%{wwwdir}/filescenter

#----------------------------------------------------------------------------

%package forum
Summary:	The eGroupWare forum application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-forum = %{EVRD}

%description forum
This is the forum app for eGroupWare.

%files forum
%doc forum/README
%{wwwdir}/forum

#----------------------------------------------------------------------------

%package ftp
Summary:	The eGroupWare ftp application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-ftp = %{EVRD}

%description ftp
This is the ftp app for eGroupWare.

%files ftp
%doc ftp/doc/*
%{wwwdir}/ftp

#----------------------------------------------------------------------------

%package fudforum
Summary:	The eGroupWare fudforum application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-fudforum = %{EVRD}

%description fudforum
This is the fudforum app for eGroupWare.

%files fudforum
%{wwwdir}/fudforum
%config(noreplace) %{_webappconfdir}/%{oname}-fudforum.conf

#----------------------------------------------------------------------------

%package headlines
Summary:	The eGroupWare headlines application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-headlines = %{EVRD}

%description headlines
This is the headlines app for eGroupWare.

%files headlines
%{wwwdir}/headlines

#----------------------------------------------------------------------------

%package jinn
Summary:	The eGroupWare jinn application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-jinn = %{EVRD}

%description jinn
The jinn app is a multi-site, multi-database, multi-user/-group, database
driven Content Management System written in and for the eGroupWare Framework.

%files jinn
%doc jinn/{CHANGELOG,COPYING,INSTALL,LICENSE,README,TODO} jinn/doc/*
%{wwwdir}/jinn

#----------------------------------------------------------------------------

%package messenger
Summary:	The eGroupWare messenger application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-messenger = %{EVRD}

%description messenger
This is the messenger app for eGroupWare.

%files messenger
%doc messenger/doc/*
%{wwwdir}/messenger

#----------------------------------------------------------------------------

%package phpldapadmin
Summary:	The eGroupWare phpldapadmin application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-phpldapadmin = %{EVRD}

%description phpldapadmin
This is the phpldapadmin app for eGroupWare.

%files phpldapadmin
%doc phpldapadmin/{LICENSE,VERSION}
%{wwwdir}/phpldapadmin

#----------------------------------------------------------------------------

%package projects
Summary:	The eGroupWare projects application
Group:		System/Servers
Provides:	egroupware-projects = %{EVRD}

%description projects
This is the projects app for eGroupWare.

%files projects
%doc projects/doc/*
%{wwwdir}/projects

#----------------------------------------------------------------------------

%package skel
Summary:	The eGroupWare skel application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-skel = %{EVRD}

%description skel
This is the skel app for eGroupWare.

%files skel
%doc skel/doc/*
%{wwwdir}/skel

#----------------------------------------------------------------------------

%package soap
Summary:	The eGroupWare soap application
Group:		System/Servers
Requires:	%{oname} >= %{version}

%description soap
This is the soap app for eGroupWare.

%files soap
%doc soap/README.txt
%{wwwdir}/soap

#----------------------------------------------------------------------------

%package stocks
Summary:	The eGroupWare stocks application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-stocks = %{EVRD}

%description stocks
This is the stocks app for eGroupWare.

%files stocks
%doc stocks/doc/*
%{wwwdir}/stocks

#----------------------------------------------------------------------------

%package switchuser
Summary:	The eGroupWare switchuser application
Group:		System/Servers
Requires:	%{oname} >= %{version}

%description switchuser
This is the switchuser app for eGroupWare.

%files switchuser
%doc switchuser/CHANGELOG switchuser/doc/*
%{wwwdir}/switchuser

#----------------------------------------------------------------------------

%package tts
Summary:	The eGroupWare tts application
Group:		System/Servers
Requires:	%{oname} >= %{version}
Provides:	egroupware-tts = %{EVRD}

%description tts
This is the tts app for eGroupWare.

%files tts
%doc tts/doc/*
%{wwwdir}/tts

#----------------------------------------------------------------------------

%package xmlrpc
Summary:	The eGroupWare xmlrpc application
Group:		System/Servers
Requires:	%{oname} >= %{EVRD}

%description xmlrpc
This is the xmlrpc app for eGroupWare.

%files xmlrpc
%doc xmlrpc/NOTE xmlrpc/doc/*
%{wwwdir}/xmlrpc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}
# cleanup
find . -type d -name CVS | xargs rm -rf
find . -type f -name *.old -o -name *.backup | xargs rm -f
find . -type f -empty | xargs rm -f
find . -type f | xargs chmod 644
find . -name .svn | xargs rm -rf


# delete duplicate fonts
find . -type d -name ttf-bitstream-vera-1.10|xargs rm -rf

# remove egwical and icalsrv (they're in the main package now)
rm -rf egwical/ icalsrv/

%build

%install
# install files
install -d -m 755 %{buildroot}%{wwwdir}
cp -aRf * %{buildroot}%{wwwdir}

# post-install cleanup
rm -rf %{buildroot}%{wwwdir}/doc 
rm -rf %{buildroot}%{wwwdir}/*/doc 
rm -f %{buildroot}%{wwwdir}/backup/README
rm -f %{buildroot}%{wwwdir}/felamimail/{COPYING,Changelog,README,TODO}
rm -f %{buildroot}%{wwwdir}/jinn/{CHANGELOG,COPYING,INSTALL,LICENSE,README,TODO}
rm -f %{buildroot}%{wwwdir}/phpldapadmin/{INSTALL,LICENSE,VERSION}
rm -rf %{buildroot}%{wwwdir}/infolog/debian
rm -rf %{buildroot}%{wwwdir}/jinn/quixplorer_2_3
# doc cleanup
rm -f doc/Makefile
rm -rf doc/rpm-build

# remove .htaccess files
find %{buildroot}%{wwwdir} -name .htaccess -exec rm -f {} \;

# modify shell bang for perl scripts
find %{buildroot}%{wwwdir} -name '*.pl' -exec perl -pi -e 's|/usr/local/bin/perl|/usr/bin/perl|g' {} \;
find %{buildroot}%{wwwdir} -name '*.py' -exec perl -pi -e 's|/usr/local/bin/python|/usr/bin/python|g' {} \;

# fix right on scripts
find %{buildroot}%{wwwdir} -name '*.pl' -exec chmod 755 {} \;
find %{buildroot}%{wwwdir} -name '*.py' -exec chmod 755 {} \;

# apache configuration for fudforum
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{oname}-fudforum.conf <<EOF
<Directory /var/www/egroupware/fudforum/setup/base>
    Require all denied
</Directory>

<Directory /var/www/egroupware/fudforum/setup/base/sql>
    Require all denied
</Directory>

<Directory /var/www/egroupware/fudforum/setup/base/src>
    Require all denied
</Directory>

<Directory /var/www/egroupware/fudforum/setup/base/thm>
    Require all denied
</Directory>

<Directory /var/www/egroupware/fudforum/setup/base/cache>
    Require all denied
</Directory>

<Directory /var/www/egroupware/fudforum/setup/base/scripts>
    Require all denied
</Directory>

<Directory /var/www/egroupware/fudforum/setup/base/www_root>

    php_admin_value output_buffering 16000
    php_admin_value variables_order GPCS
    php_admin_value implicit_flush 0
    php_admin_value register_globals 0
    php_admin_value register_argc_argv 0
    php_admin_value magic_quotes_gpc 0
    php_admin_value session.use_trans_sid 0
</Directory>

<Directory /var/www/egroupware/fudforum/setup/base/include>
    Require all denied
</Directory>
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1226 |21cr|eiciel-0.9.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical access control list (ACL) editor
Name:		eiciel
Version:	0.9.13.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://rofi.roger-ferrer.org/eiciel/
Source0:	http://rofi.roger-ferrer.org/eiciel/files/%{name}-%{version}.tar.bz2
BuildRequires:	autoconf2.5
BuildRequires:	desktop-file-utils
BuildRequires:	acl-devel
BuildRequires:	attr-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libnautilus-extension)

%description
Graphical editor for access control lists (ACL) and extended attributes
(XATTR), either as an extension within Nautilus, or as a standalone utility.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}/
%{_datadir}/applications/org.roger-ferrer.Eiciel.desktop
%{_datadir}/gnome/help/%{name}
%{_datadir}/metainfo/org.roger-ferrer.Eiciel.appdata.xml
%{_mandir}/man1/%{name}*
%{_libdir}/nautilus/extensions-3.0/lib%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i s/Version=.*/Version=1.0/ src/*.desktop.in

%build
#autoreconf -fi
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--with-nautilus-extensions-dir=%{_libdir}/nautilus/extensions-3.0
%make

%install
%makeinstall_std
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1227 |21cr|eina-extra-0.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname eina_extra %{major}
%define devname %mklibname eina_extra -d

Summary:	Extra types for eina
Name:		eina-extra
Version:	0.0.1
Release:	4
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://code.google.com/p/enesim/source/browse/#svn%2Ftrunk%2Feina-extra
# svn snapshot
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(eina)

%description
Extra types for eina.

#---------------------------------------------------------------------

%package -n %{libname}
Summary:	Extra types for eina
Group:		System/Libraries

%description -n %{libname}
Extra types for eina.

%files -n %{libname}
%{_libdir}/libeina_extra.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for eina-extra
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for eina-extra.

%files -n %{devname}
%{_libdir}/pkgconfig/*
%{_libdir}/libeina_extra.so
%{_includedir}/*

#---------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1228 |21cr|einstein-2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Remake of old DOS game Sherlock which was inspired by Albert Einstein's puzzle
Name:		einstein
Version:	2.0
Release:	5
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://games.flowix.com/en/index.html
Source:		http://www.babichev.info/files/einstein/%{name}-%{version}-src.tar.gz
Source1:	%{name}-1.0-html-pages.tgz
Source2:	%{name}-wrapper
Source3:	icon.bmp
Source4:	einstein.desktop
Source5:	einstein.png
Patch1:		einstein-math_h.patch
Patch2:		einstein-Makefile.patch
Patch3:		einstein-formatter_cpp.patch
Patch4:		einstein-2.0-deb-icon_change.patch
Patch5:		einstein-2.0-deb-font_change.patch
Patch6:		einstein-2.0-deb-random_init.patch
Patch7:		einstein-2.0-alt-rules_clarification.patch
Patch8:		einstein-2.0-alt-fix_mkres_link.patch
Patch9:		einstein-2.0-alt-translation_fix.patch
Patch10:	einstein-2.0-gcc43.patch
Patch11:	einstein-2.0-no-strip.patch
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	makedepend
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(zlib)

%description
Einstein puzzle is cross-platform open source remake of old DOS game Sherlock
which was inspired by Albert Einstein's puzzle. Einstein said that only those
with an intelligence quotient of 97 percentile and higher should be able to
solve it.

The game goal is to open all cards in square of 6x6 cards.
Every row of square contains cards of one type only. For example, first row
contains arabic digits, second - letters, third - rome digits, fouths - dices,
fifth - geometric figures, sixs - mathematic symbols.

%files
%doc doc/*
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup
%setup -q -T -D -a 1

%patch1
%patch2
%patch3 -p2
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
install %{SOURCE3} res/
mv %{name} doc
cp /usr/share/fonts/TTF/dejavu/DejaVuSans.ttf res/

%build
%make depend
%make -C mkres OPTIMIZE="%{optflags}"
pushd res
../mkres/mkres --source resources.descr --output ../einstein.res
popd
%make PREFIX=/usr OPTIMIZE="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}/res
%makeinstall_std PREFIX=%{buildroot}%{_prefix}
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.bin
install %{SOURCE2} %{buildroot}%{_bindir}/%{name}
chmod 755 %{buildroot}%{_bindir}/%{name}
install -Dm 0644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm 0644 %{SOURCE5} %{buildroot}%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1229 |21cr|eiskaltdcpp-2.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2.4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Cross-platform program that uses the Direct Connect and ADC protocols
Name:		eiskaltdcpp
Version:	2.4.2
Release:	2
License:	GPLv3+
Group:		Networking/File transfer
Url:		https://github.com/eiskaltdcpp/eiskaltdcpp
# Source0:	https://github.com/eiskaltdcpp/%%{name}/archive/v%%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	aspell-devel
BuildRequires:	bzip2-devel
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext-devel
BuildRequires:	miniupnpc-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
EiskaltDC++ is a cross-platform program that uses the Direct Connect
(DC aka NMDC) and Advanced Direct Connect (ADC) protocols.
It is compatible with DC++, AirDC++, FlylinkDC++ and other DC clients.
EiskaltDC++ also interoperates with all common DC hub software.

%files -f lib%{name}.lang
%doc AUTHORS COPYING LICENSE ChangeLog.txt
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/emoticons
%{_datadir}/%{name}/examples
%{_datadir}/%{name}/luascripts
%{_datadir}/%{name}/sounds
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%package qt
Summary:	Qt frontend for EiskaltDC++
Group:		Networking/File transfer
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description qt
EiskaltDC++ is a cross-platform program that uses the Direct Connect and ADC
protocol. It is compatible with other DC clients, such as the original DC from
Neomodus, DC++ and derivatives. EiskaltDC++ also inter operates with all
common DC hub software. The minimum number of our patches to original DC++
kernel makes it easy to upgrade to new versions and ensures compatibility with
other clients. This is the Qt front end.

%files qt -f %{name}-qt.lang
%doc COPYING
%dir %{_datadir}/%{name}/qt
%dir %{_datadir}/%{name}/qt/translations
%{_bindir}/%{name}-qt
%{_datadir}/%{name}/qt/client-res
%{_datadir}/%{name}/qt/icons
%{_datadir}/%{name}/qt/qtscripts
%{_datadir}/applications/%{name}-qt.desktop
%{_mandir}/man1/%{name}-qt.1.*

#-----------------------------------------------------------------------------

%package gtk
Summary:	GTK frontend for EiskaltDC++
Group:		Networking/File transfer
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description gtk
EiskaltDC++ is a cross-platform program that uses the Direct Connect and ADC
protocol. It is compatible with other DC clients, such as the original DC from
Neomodus, DC++ and derivatives. EiskaltDC++ also inter operates with all
common DC hub software. The minimum number of our patches to original DC++
kernel makes it easy to upgrade to new versions and ensures compatibility with
other clients. This is the GTK front end.

%files gtk -f %{name}-gtk.lang
%doc COPYING
%{_bindir}/%{name}-gtk
%{_datadir}/%{name}/gtk
%{_datadir}/applications/%{name}-gtk.desktop
%{_mandir}/man1/%{name}-gtk.1.*

#-----------------------------------------------------------------------------

%package daemon
Summary:	A simple EiskaltDC++ daemon
Group:		Networking/File transfer
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	perl(Term::UI)

%description daemon
EiskaltDC++ is a cross-platform program that uses the Direct Connect and
ADC protocol. It is compatible with other DC clients, such as the original
DC from Neomodus, DC++ and derivatives. EiskaltDC++ also inter operates
with all common DC hub software. This is a simple daemon for running
EiskaltDC++ without any GUI; it can be controlled via XMLRPC or JSONRPC.

%files daemon
%doc AUTHORS COPYING LICENSE README.md TODO
%{_bindir}/%{name}-cli-*
%{_bindir}/%{name}-daemon
%{_datadir}/%{name}/cli/*
%{_mandir}/man1/%{name}-cli-*.1.*
%{_mandir}/man1/%{name}-daemon.1.*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic library used by EiskaltDC++
Group:		System/Libraries

%description -n %{libname}
Dynamic library used by EiskaltDC++.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the main EiskaltDC++ library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
EiskaltDC++ is a cross-platform program that uses the Direct Connect and
ADC protocol. It is compatible with other DC clients, such as the original
DC from Neomodus, DC++ and derivatives. EiskaltDC++ also inter operates
with all common DC hub software.
This package contains the header files needed to use the main EiskaltDC++
library.

%files -n %{devname}
%doc COPYING ChangeLog.txt
%{_includedir}/%{name}/dcpp/*.h

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DLIB_INSTALL_DIR=%{_libdir} \
	-DEISKALTDCPP_INCLUDE_DIR="%{_includedir}/%{name}" \
	-DCREATE_MO=ON \
	-DDBUS_NOTIFY=ON \
	-DFREE_SPACE_BAR_C=ON \
	-DINSTALL_RUNTIME_PATH=OFF \
	-DJSONRPC_DAEMON=ON \
	-DLUA_SCRIPT=ON \
	-DNO_UI_DAEMON=ON \
	-DPERL_REGEX=ON \
	-DUSE_ASPELL=ON \
	-DUSE_CLI_JSONRPC=ON \
	-DUSE_CLI_XMLRPC=ON \
	-DUSE_GTK3=ON \
	-DUSE_IDNA=ON \
	-DUSE_JS=ON \
	-DUSE_LIBCANBERRA=ON \
	-DUSE_LIBGNOME2=OFF \
	-DUSE_LIBNOTIFY=ON \
	-DUSE_MINIUPNP=ON \
	-DUSE_QT5=ON \
	-DUSE_QT=OFF \
	-DUSE_QT_QML=OFF \
	-DUSE_QT_SQLITE=ON \
	-DWITH_DEV_FILES=ON \
	-DWITH_DHT=ON \
	-DWITH_EMOTICONS=ON \
	-DWITH_EXAMPLES=ON \
	-DWITH_LUASCRIPTS=ON \
	-DWITH_SOUNDS=ON \
	-DXMLRPC_DAEMON=OFF
%make -s


%install
%makeinstall_std -C build

rm -f %{buildroot}/%{_datadir}/%{name}/examples/*.php
rm -rf %{buildroot}/%{_datadir}/%{name}/qt/qtscripts/gnome

%find_lang %{name}-gtk

find %{buildroot} -name "*.qm" | sed 's:'%{buildroot}':: 
s:.*/\([a-zA-Z]\{2\}\).qm:%lang(\1) \0:' > %{name}-qt.lang

%find_lang lib%{name} lib%{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1230 |21cr|ejabberd-23.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global _hardened_build 1
%global srcname ejabberd

# Since we require the version in both BuildRequires and Requires, let's make these variables for
# easier maintenance.
%global cache_tab_ver 1.0.14
%global eimp_ver 1.0.6
%global epam_ver 1.0.4
%global esip_ver 1.0.24
%global ezlib_ver 1.0.4
%global fast_tls_ver 1.0.23
%global fast_xml_ver 1.1.31
%global fast_yaml_ver 1.0.15
%global iconv_ver 1.0.8
%global luerl_ver 0.3
%global p1_mysql_ver 1.0.6
%global p1_oauth2_ver 0.6.3
%global p1_pgsql_ver 1.1.6
%global p1_utils_ver 1.0.12
%global stringprep_ver 1.0.12
%global stun_ver 1.0.23
%global xmpp_ver 1.7.0



Name:           ejabberd
Version:        23.10
Release:        1

Group:          System/Servers
License:        GPLv2+
Summary:        A distributed, fault-tolerant Jabber/XMPP server
URL:            http://www.ejabberd.im/
Source0:        https://github.com/processone/%{name}/archive/%{version}/%{srcname}-%{version}.tar.gz
Source2:        ejabberd.logrotate

# Support for systemd
Source4:        ejabberd.service
Source5:        ejabberd.tmpfiles.conf

# PAM support
Source9:        ejabberdctl.pam
Source11:       ejabberd.pam

# polkit support
Source12:       ejabberdctl.polkit.actions
Source13:       ejabberdctl.polkit.rules

# sysusers config file
Source14:       ejabberd.sysusers.conf

# Fedora-specific
Patch3: ejabberd-0003-Install-into-BINDIR-instead-of-SBINDIR.patch
# Fedora-specific
Patch4: ejabberd-0004-Enable-systemd-notification-if-available.patch

#BuildRequires:  elixir >= 1.4.4
BuildRequires:  erlang-base64url
BuildRequires:  erlang-cache_tab >= %{cache_tab_ver}
BuildRequires:  erlang-eimp >= %{eimp_ver}
BuildRequires:  erlang-epam >= %{epam_ver}
BuildRequires:  erlang-esip >= %{esip_ver}
BuildRequires:  erlang-ezlib >= %{ezlib_ver}
BuildRequires:  erlang-fast_tls >= %{fast_tls_ver}
BuildRequires:  erlang-fast_xml >= %{fast_xml_ver}
BuildRequires:  erlang-fast_yaml >= %{fast_yaml_ver}
BuildRequires:  erlang-iconv >= %{iconv_ver}
BuildRequires:  erlang-jiffy >= 0.14.8
BuildRequires:  erlang-jose >= 1.8.4
BuildRequires:  erlang-inets
BuildRequires:  erlang-lager >= 3.4.2
BuildRequires:  erlang-luerl >= %{luerl_ver}
BuildRequires:  erlang-mnesia
BuildRequires:  erlang-mqtree
BuildRequires:  erlang-meck >= 0.8.4
BuildRequires:  erlang-public_key
BuildRequires:  erlang-odbc
BuildRequires:  erlang-os_mon
BuildRequires:  erlang-p1_acme
BuildRequires:  erlang-p1_mysql >= %{p1_mysql_ver}
BuildRequires:  erlang-p1_oauth2 >= %{p1_oauth2_ver}
BuildRequires:  erlang-p1_pgsql >= %{p1_pgsql_ver}
BuildRequires:  erlang-p1_utils >= %{p1_utils_ver}
BuildRequires:  erlang-pkix
BuildRequires:  erlang-rebar
BuildRequires:  erlang-riak_client
BuildRequires:  erlang-ssl
BuildRequires:  erlang-sd_notify
BuildRequires:  erlang-stringprep >= %{stringprep_ver}
BuildRequires:  erlang-stun >= %{stun_ver}
BuildRequires:  erlang-sqlite3
BuildRequires:  erlang-xmpp >= %{xmpp_ver}
BuildRequires:  expat-devel >= 1.95
BuildRequires:  git
BuildRequires:  yaml-devel >= 0.1.4
BuildRequires:  openssl-devel >= 1.0.0
BuildRequires:  pam-devel

BuildRequires:  autoconf
BuildRequires:  automake

# For creating user and group
Requires(pre):  /bin/systemd-sysusers

Requires(post): /usr/bin/openssl
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

# From rebar
#Requires:  elixir >= 1.4.4
Requires:  erlang-base64url
Requires:  erlang-cache_tab >= %{cache_tab_ver}
Requires:  erlang-eimp >= %{eimp_ver}
Requires:  erlang-epam >= %{epam_ver}
Requires:  erlang-esip >= %{esip_ver}
Requires:  erlang-ezlib >= %{ezlib_ver}
Requires:  erlang-fast_tls >= %{fast_tls_ver}
Requires:  erlang-fast_xml >= %{fast_xml_ver}
Requires:  erlang-fast_yaml >= %{fast_yaml_ver}
Requires:  erlang-iconv >= %{iconv_ver}
Requires:  erlang-jiffy >= 0.14.8
Requires:  erlang-jose >= 1.8.4
Requires:  erlang-inets
Requires:  erlang-lager >= 3.4.2
Requires:  erlang-luerl >= %{luerl_ver}
Requires:  erlang-mnesia
Requires:  erlang-mqtree
Requires:  erlang-meck >= 0.8.4
Requires:  erlang-os_mon
Requires:  erlang-p1_acme
Requires:  erlang-p1_mysql >= %{p1_mysql_ver}
Requires:  erlang-p1_oauth2 >= %{p1_oauth2_ver}
Requires:  erlang-p1_pgsql >= %{p1_pgsql_ver}
Requires:  erlang-p1_utils >= %{p1_utils_ver}
Requires:  erlang-pkix
Requires:  erlang-ssl
Requires:  erlang-stringprep >= %{stringprep_ver}
Requires:  erlang-stun >= %{stun_ver}
Requires:  erlang-sqlite3
Requires:  erlang-xmpp >= %{xmpp_ver}
# We install a logrotate.d file
Requires:   logrotate
# for /usr/bin/pkexec
Requires:   polkit
# for flock in ejabberdctl
Requires:   util-linux

%description
ejabberd is a Free and Open Source distributed fault-tolerant
Jabber/XMPP server. It is mostly written in Erlang, and runs on many
platforms (tested on Linux, FreeBSD, NetBSD, Solaris, Mac OS X and
Windows NT/2000/XP).


%prep
%autosetup -p1

# Upstream seems to import erlang-xmpp and erlang-fast_xml in a way that isn't compatible with them
# being system libraries. We need to patch the include statements to fix this.
# https://github.com/processone/ejabberd/pull/1446/
find . -name "*.hrl" | xargs sed -i \
    "s/include(\"fxml.hrl/include_lib(\"fast_xml\/include\/fxml.hrl/"
find . -name "*.erl" | xargs sed -i "s/include(\"jid.hrl/include_lib(\"xmpp\/include\/jid.hrl/"
find . -name "*.hrl" | xargs sed -i "s/include(\"ns.hrl/include_lib(\"xmpp\/include\/ns.hrl/"
find . -name "*.erl" | xargs sed -i "s/include(\"xmpp.hrl/include_lib(\"xmpp\/include\/xmpp.hrl/"
find . -name "*.hrl" | xargs sed -i \
    "s/include(\"xmpp_codec.hrl/include_lib(\"xmpp\/include\/xmpp_codec.hrl/"

# A few dependencies are configured to be found in the deps folder instead of in system libs
# https://github.com/processone/ejabberd/issues/1850
perl -p -i -e "s|deps/p1_utils/include|$(rpm -ql erlang-p1_utils | grep -E '/include$' )|g" rebar.config
perl -p -i -e "s|deps/fast_xml/include|$(rpm -ql erlang-fast_xml | grep -E '/include$' )|g" rebar.config
perl -p -i -e "s|deps/xmpp/include|$(rpm -ql erlang-xmpp | grep -E '/include$' )|g"   rebar.config


%build
autoreconf -ivf

# Disabled: --enable-hipe --enable-roster-gateway-workaround --enable-transient_supervisors
#           --enable-full-xml --enable-mssql --enable-tools --enable-riak --enable-http
%configure --disable-graphics --enable-odbc --enable-mysql --enable-pgsql --enable-pam --enable-zlib --enable-iconv --enable-debug --enable-lager --libdir=%{_libdir}/erlang/lib/ --with-erlang=%{_libdir}/erlang/ --enable-system-deps --enable-stun

%{erlang_compile}


%install
%{erlang_install}

sed -e "s*{{rootdir}}*%{_prefix}*" \
    -e "s*{{installuser}}**" \
    -e "s*{{bindir}}*%{_bindir}*" \
    -e "s*{{libdir}}*%{_erllibdir}*" \
    -e "s*{{sysconfdir}}*%{_sysconfdir}*" \
    -e "s*{{localstatedir}}*/var*" \
    -e "s*{{docdir}}*%{_datadir}/doc/%{name}*" \
    -e "s*{{erl}}*%{_erldir}/bin/erl*" \
    -e "s*{{epmd}}*%{_erllibdir}/bin/epmd*" ejabberdctl.template \
> ejabberdctl.example

install -d -m 0750 %{buildroot}%{_sysconfdir}/%{name}
install -D -p -m 0644 ejabberd.yml.example %{buildroot}%{_sysconfdir}/%{name}/ejabberd.yml
install -D -p -m 0644 ejabberdctl.cfg.example %{buildroot}%{_sysconfdir}/%{name}/ejabberdctl.cfg
install -D -p -m 0644 inetrc %{buildroot}%{_sysconfdir}/%{name}/inetrc

install -D -p -m 0644 ejabberdctl.example %{buildroot}%{_bindir}/ejabberdctl

install -d -m 0750 %{buildroot}/var/lib/ejabberd
install -d -m 0750 %{buildroot}/var/lock/ejabberdctl
install -d -m 0750 %{buildroot}/var/log/ejabberd

# fix example SSL certificate path to real one, which we created recently (see above)
perl -pi -e 's!/path/to/ssl.pem!/etc/ejabberd/ejabberd.pem!g' %{buildroot}/etc/ejabberd/ejabberd.yml

install -D -p -m 0755 tools/captcha.sh %{buildroot}%{_erllibdir}/%{name}-%{version}/priv/bin/captcha.sh
# fix captcha path
perl -pi -e 's!/lib/ejabberd/priv/bin/captcha.sh!%{_libdir}/%{name}/priv/bin/captcha.sh!g' %{buildroot}/etc/ejabberd/ejabberd.yml

install -D -p -m 0644 %{S:9} %{buildroot}%{_sysconfdir}/pam.d/ejabberdctl
install -D -p -m 0644 %{S:11} %{buildroot}%{_sysconfdir}/pam.d/ejabberd

# install systemd entry
install -D -m 0644 -p %{S:4} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0644 -p %{S:5} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -D -m 0644 -p %{S:14} %{buildroot}%{_sysusersdir}/%{name}.conf

# install config for logrotate
install -D -p -m 0644  %{S:2} %{buildroot}%{_sysconfdir}/logrotate.d/ejabberd

# create room for additional files (such as SQL schemas)
install -d -m 0755 %{buildroot}%{_erllibdir}/%{name}-%{version}/priv/sql/
# install sql-scripts for creating db schemes for various RDBMS
install -p -m 0644 sql/lite.sql %{buildroot}%{_erllibdir}/%{name}-%{version}/priv/sql/
install -p -m 0644 sql/mssql.sql %{buildroot}%{_erllibdir}/%{name}-%{version}/priv/sql/
install -p -m 0644 sql/mysql.sql %{buildroot}%{_erllibdir}/%{name}-%{version}/priv/sql/
install -p -m 0644 sql/pg.sql %{buildroot}%{_erllibdir}/%{name}-%{version}/priv/sql/

install -d -m 0755 %{buildroot}%{_erllibdir}/%{name}-%{version}/priv/msgs/
install -p -m 0644 priv/msgs/*.msg %{buildroot}%{_erllibdir}/%{name}-%{version}/priv/msgs/

# Install polkit-related files
install -D -p -m 0644 %{S:12} %{buildroot}%{_datadir}/polkit-1/actions/ejabberdctl.policy
install -D -p -m 0644 %{S:13} %{buildroot}%{_datadir}/polkit-1/rules.d/51-ejabberdctl.rules


%pre
%sysusers_create_package ejabberd %{SOURCE14}

if [ $1 -gt 1 ]; then
    # we should backup DB in every upgrade
    if ejabberdctl status >/dev/null ; then
        # Use timestamp to make database restoring easier
        TIME=$(date +%%Y-%%m-%%dT%%H:%%M:%%S)
        BACKUPDIR=$(mktemp -d -p /var/tmp/ ejabberd-$TIME.XXXXXX)
        chown ejabberd:ejabberd $BACKUPDIR
        BACKUP=$BACKUPDIR/ejabberd-database
        ejabberdctl backup $BACKUP
        # Change ownership to root:root because ejabberd user might be
        # removed on package removal.
        chown -R root:root $BACKUPDIR
        chmod 700 $BACKUPDIR
        echo
        echo The ejabberd database has been backed up to $BACKUP.
        echo
    fi

    # fix cookie path (since ver. 2.1.0 cookie stored in /var/lib/ejabberd/spool
    # rather than in /var/lib/ejabberd
    if [ -f /var/lib/ejabberd/spool/.erlang.cookie ]; then
        cp -pu /var/lib/ejabberd/{spool/,}.erlang.cookie
        echo
        echo The ejabberd cookie file was moved again.
        echo Please delete old one from /var/lib/ejabberd/spool/.erlang.cookie
        echo
    fi
fi


%post
%tmpfiles_create %{name}.conf
%systemd_post %{name}.service

# Create SSL certificate with default values if it doesn't exist
(cd /etc/ejabberd
if [ ! -f ejabberd.pem ]
then
    echo "Generating SSL certificate /etc/ejabberd/ejabberd.pem..."
    HOSTNAME=$(hostname -s 2>/dev/null || echo "localhost")
    DOMAINNAME=$(hostname -d 2>/dev/null || echo "localdomain")
    openssl req -new -x509 -days 365 -nodes -out ejabberd.pem \
                -keyout ejabberd.pem > /dev/null 2>&1 <<+++
.
.
.
$DOMAINNAME
$HOSTNAME
ejabberd
root@$HOSTNAME.$DOMAINNAME
+++
chown ejabberd:ejabberd ejabberd.pem
chmod 600 ejabberd.pem
fi)


%preun
%systemd_preun %{name}.service

%files
%doc COPYING
%doc README.md

%attr(750,ejabberd,ejabberd) %dir %{_sysconfdir}/ejabberd
%attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberd.yml
%attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/ejabberdctl.cfg
%attr(640,ejabberd,ejabberd) %config(noreplace) %{_sysconfdir}/ejabberd/inetrc

%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf

%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/pam.d/ejabberdctl
%{_datadir}/polkit-1/actions/ejabberdctl.policy
%{_datadir}/polkit-1/rules.d/51-ejabberdctl.rules
%{_bindir}/ejabberdctl

%dir %{_erllibdir}/%{name}-%{version}
%dir %{_erllibdir}/%{name}-%{version}/ebin
%dir %{_erllibdir}/%{name}-%{version}/include
%dir %{_erllibdir}/%{name}-%{version}/priv
%dir %{_erllibdir}/%{name}-%{version}/priv/bin
%dir %{_erllibdir}/%{name}-%{version}/priv/msgs

%{_erllibdir}/%{name}-%{version}/ebin/*.app
%{_erllibdir}/%{name}-%{version}/ebin/*.beam
%{_erllibdir}/%{name}-%{version}/include/*.hrl
%{_erllibdir}/%{name}-%{version}/priv/bin/captcha.sh
%{_erllibdir}/%{name}-%{version}/priv/msgs/*.msg
%{_erllibdir}/%{name}-%{version}/priv/sql/*.sql

%attr(750,ejabberd,ejabberd) %dir /var/lib/ejabberd
%attr(750,ejabberd,ejabberd) %dir %ghost /var/lock/ejabberdctl
%attr(750,ejabberd,ejabberd) %dir /var/log/ejabberd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1231 |21cr|eko-6.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple sound editor
Name:		eko
Version:	6.0.0
Release:	2
License:	GPLv3+
Group:		Sound
Url:		http://semiletov.org/eko/
Source0:	http://semiletov.org/eko/dloads/%{name}-%{version}.tar.bz2
           
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)

%description
Simple audio editor. It features:
 - real-time FX rack
 - generators of sine, nouse
 - channel converter
 - RMS and level analysis
 - DC offset corrector
 - reverese
 - handy editing
 - color palettes
 - hotkeys customizations

%files
%doc README COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5 PREFIX=%{_prefix}
%make

%install
%makeinstall_qt

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=EKO
Name[ru]=EKO
Comment=Simple sound editor
Comment[ru]=Простой редактор звуковых файлов
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=AudioVideo;Audio;AudioVideoEditing;
EOF

# install menu icons
for N in 16 32 48 64;
do
convert icons/eko.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1232 |21cr|ekstertera-0.1.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ekstertera
Version:        0.1.13
Release:        1
Summary:        Yandex.Disk GUI client
Group:          Networking/File transfer
License:        BSD
URL:            https://github.com/abbat/ekstertera
Source0:        https://github.com/abbat/ekstertera/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	qt5-linguist-tools

%description
GUI tool to upload, retrieve and manage data in Yandex.Disk service

%prep
%setup -q

%build
export builddir=$(pwd)

qmake-qt5 -project -recursive -Wall -nopwd -o %{name}.pro  \
    "CODEC         = UTF-8"                                \
    "CODECFORTR    = UTF-8"                                \
    "QT           += network core widgets"                 \
    "CONFIG       += release link_pkgconfig"               \
    "PKGCONFIG    += glib-2.0 gtk+-2.0 gdk-pixbuf-2.0"     \
    "DEFINES      += ETERA_CUSTOM_TRAY_ICON_GTK"           \
    "INCLUDEPATH  += src"                                  \
    "TRANSLATIONS +=  ${builddir}/src/translations/ekstertera_en.ts     \
     ${builddir}/src/translations/ekstertera_fr.ts"                     \
     "${builddir}/src" \
     "${builddir}/3dparty/json"

lrelease-qt5 -compress -removeidentical %{name}.pro
%qmake_qt5 %{name}.pro
%make


%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/pixmaps
install -d %{buildroot}%{_datadir}/applications

install -m755 %{name}               %{buildroot}%{_bindir}/%{name}
install -m644 src/icons/%{name}.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
install -m644 %{name}.desktop       %{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1233 |21cr|electronics-menu-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Electronics Menu for the Desktop
Name:		electronics-menu
Version:	1.0
Release:	2
License:	GPLv2
Group:		Sciences/Computer science
Url:		http://geda.seul.org/
Source0:	http://geda.seul.org/dist/%{name}-%{version}.tar.gz
# Created by Chitlesh
Source1:	electronics-menu-1.0-submenu.tar.bz2
Patch0:		electronics-menu-1.0-submenus.patch
Patch1:		electronics-menu-1.0-makefile.patch
Patch2:		electronics-menu-1.0-typo.patch
Patch3:		electronics-menu-1.0-submenus-fr_ru.patch
Patch4:		electronics-menu-1.0-submenus-qucs.patch
BuildArch:	noarch

%description
The programs from the category Electronics are normally located
in the Edutainment directory.
This Package adds a Electronics menu to the xdg menu structure.

%files
%doc COPYING README
%{_datadir}/desktop-directories/*.directory
%{_iconsdir}/hicolor/*/categories/applications-electronics*.png
%{_iconsdir}/hicolor/scalable/categories/applications-electronics*.svg
%config(noreplace) %{_sysconfdir}/xdg/menus/applications-merged/electronics.menu

#------------------------------------------------------------------

%prep
%setup -q -a 1
%patch0 -p0 -b .submenus
%patch1 -p0 -b .submenus
%patch2 -p0 -b .typo
%patch3 -p0 -b .french
%patch4 -p0 -b .qucs

# allowing timestamps
sed -i 's|install|install -p|g' Makefile
sed -i 's|<Filename>fedora-|<Filename>|' electronics.menu

%build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1234 |21cr|electrum-4.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight Bitcoin Client
Name:		electrum
Version:	4.3.4
Release:	2
License:	MIT
Group:		Graphical desktop/Other
Url:		https://electrum.org/
Source0:	https://download.electrum.org/%{version}/Electrum-%{version}.tar.gz
# Patches from Fedora (https://src.fedoraproject.org/rpms/electrum)
Patch0:		fix-desktop-exec.patch
Patch1:		electrum-4.3.4-fix-qdarkstyle-requirement.patch
BuildRequires:	gettext
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3-qt5-devel
# Not needed, but check installability etc. of this runtime dependency
BuildRequires:	pkgconfig(libsecp256k1)
Requires:	python%{python3_version}dist(pyqt5)
Requires:	python3-cryptography
# dlopen's libsecp256k1.so.0
# can write "libsecp256k1.so.0%%{_arch_tag_suffix}" here because of "BuildArch: noarch"
Recommends:	libsecp256k1
# https://bugzilla.redhat.com/show_bug.cgi?id=2063404
Recommends:	zbar
Recommends:	python3-trezor
Recommends:	python3-btchip
BuildArch:	noarch

%description
Electrum is an easy to use Bitcoin client. It protects you from losing
coins in a backup mistake or computer failure, because your wallet can
be recovered from a secret phrase that you can write on paper or learn
by heart. There is no waiting time when you start the client, because
it does not download the Bitcoin block chain.

%files -f %{name}.lang
%license LICENCE
%doc AUTHORS
%doc RELEASE-NOTES
%doc PKG-INFO
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{python3_sitelib}/%{name}
%{python3_sitelib}/Electrum-%{version}*.egg-info
%exclude %{python3_sitelib}/%{name}/locale

#------------------------------------------------------------------

%prep
%autosetup -p1 -n Electrum-%{version}
rm -rf Electrum.egg-info
rm -rf packages


%build
%py3_build


%install
%py3_install

# (From Fedora)
# Remove shebang lines from .py files that aren't executable, and
# remove executability from .py files that don't have a shebang line:
# Source: dmalcolm.fedorapeople.org/python3.spec
find %{buildroot} -name \*.py \
  \( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
  -print -exec sed -i '1d' {} \; \) -o \( \
  -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
  -exec chmod a-x {} \; \) \)

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1235 |21cr|elementary-icons-7.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	icons

Summary:	Elementary icons
Name:		elementary-icons
Version:	7.0.0
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Other
URL:		https://github.com/elementary/icons
Source0:	https://github.com/elementary/icons/archive/%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	librsvg
BuildRequires:	xcursorgen
Requires:	murrine
BuildArch:	noarch

%description
This is an icon theme designed to be smooth, clear, and efficient.

%files
%defattr(-,root,root)
%doc README.md COPYING
%dir %{_iconsdir}/elementary
%ghost %{_iconsdir}/elementary/icon-theme.cache
%{_iconsdir}/elementary/*/
%{_iconsdir}/elementary/*@2x
%{_iconsdir}/elementary/*@3x
%{_iconsdir}/elementary/cursor.theme
%{_iconsdir}/elementary/index.theme
%{_datadir}/metainfo/io.elementary.%{oname}.appdata.xml

#--------------------------------------------------------------------

%package	gimp-palette
Summary:	Icons from the Elementary Project (GIMP palette)
Requires:	%{name} = %{version}-%{release}
Requires:	gimp

%description	gimp-palette
This is an icon theme designed to be smooth, clear, and efficient.
This package contains a palette file for the GIMP.

%files	gimp-palette
%{_datadir}/gimp/2.0/palettes/elementary.gpl

#--------------------------------------------------------------------

%package	inkscape-palette
Summary:	Icons from the Elementary Project (inkscape palette)
Requires:	%{name} = %{version}-%{release}
Requires:	inkscape

%description	inkscape-palette
This is an icon theme designed to be smooth, clear, and efficient.
This package contains a palette file for inkscape.

%files	inkscape-palette
%{_datadir}/inkscape/palettes/elementary.gpl

#--------------------------------------------------------------------

%prep
%autosetup -n %{oname}-%{version} -p1

%build
%meson -Dvolume_icons=false
%meson_build

%install
%meson_install

touch %{buildroot}/%{_iconsdir}/elementary/icon-theme.cache

%transfiletriggerin -- %{_iconsdir}/elementary
gtk-update-icon-cache --force %{_iconsdir}/elementary &>/dev/null || :

%transfiletriggerpostun -- %{_iconsdir}/elementary
gtk-update-icon-cache --force %{_iconsdir}/elementary &>/dev/null || :

%post
%{update_icon_cache}

%postun
%{clean_icon_cache}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1236 |21cr|elfio-3.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ELFIO
%define sdevname %mklibname %{name} -d -s

Summary:	ELF (Executable and Linkable Format) reader and producer
Name:		elfio
Version:	3.10
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://elfio.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{oname}-sources/%{oname}-%{version}/%{name}-%{version}.tar.gz

%description
ELFIO is a C++ library for reading and generating files in the ELF
binary format. This library is unique and not based on any other
product. It is also platform independent. The library uses standard
ANSI C++ constructions and runs on a wide variety of architectures.

%files
%doc README AUTHORS doc/%{name}.pdf
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Development tools for programs using the %{oname} library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}elfio1-devel < 1.0.3-6

%description -n %{sdevname}
This package contains the header files and libraries needed for
developing programs using the %{oname} library.

%files -n %{sdevname}
%{_includedir}/%{name}/elf*.hpp

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1237 |21cr|eliminate-dups-1.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define qdir /var/qmail

Name:		eliminate-dups
Summary:	Eliminates duplicate email messages for qmail users
Version:	1.2
Release:	15
License:	GPL
Group:		Networking/Mail
Source:		%{name}-%{version}.tar.bz2
Patch:		%{name}.patch.bz2
Requires:	perl
BuildArch:	noarch
Buildrequires:  perl-MD5

%description
eliminate-dups is a small perl program that will help in the elimination of
duplicate messages.


%prep

%setup -q
%patch -p1


%build
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}
mv $RPM_BUILD_DIR/%{name}-%{version}/Makefile.dist $RPM_BUILD_DIR/%{name}-%{version}/Makefile
make

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p %{buildroot}/var/qmail/bin
install -m 755 $RPM_BUILD_DIR/%{name}-%{version}/%{name} %{buildroot}%{qdir}/bin

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/%{name}-%{version}


%files 
%defattr(-,root,root)
%doc README INSTALL CHANGES
%{qdir}/bin/eliminate-dups

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1238 |21cr|elinks-0.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lynx-like text WWW browser
Name:		elinks
Version:	0.17.0
Release:	1
License:	GPLv2+
Group:		Networking/WWW
Url:		https://github.com/rkd77/felinks
Source0:	https://github.com/rkd77/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	elinks.conf

BuildRequires:	bison
BuildRequires:	bzip2-devel
BuildRequires:	gpm-devel
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(x11)
Provides:	webclient
Provides:	links

%description
ELinks is an advanced and well-established feature-rich text mode web
(HTTP/FTP/..) browser. ELinks can render both frames and tables, is highly
customizable and can be extended via scripts. Its features include:

- renders tables and frames
- displays colors as specified in current HTML page
- uses drop-down menu (like in Midnight Commander)
- can download files in background
- HTTP authentication

%files -f elinks.lang
%{_bindir}/elinks
%doc README.md SITES TODO COPYING
%ghost %verify(not md5 size mtime) %{_bindir}/links
%ghost %verify(not md5 size mtime) %{_mandir}/man1/links*
%config(noreplace) %{_sysconfdir}/elinks.conf
%{_mandir}/man1/elinks.1*
%{_mandir}/man5/*

%post
update-alternatives --install %{_bindir}/links links %{_bindir}/elinks 50

%preun
if [ "$1" = "0" ]; then
  update-alternatives --remove links %{_bindir}/elinks
fi
#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
./autogen.sh
%configure \
	--enable-256-colors \
	--enable-true-color \
	--enable-bittorrent \
	--with-terminf
# parallel build failed, use single thread
%make -j1

%install
%makeinstall_std
rm -f %{buildroot}%{_datadir}/locale/locale.alias
mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/elinks.conf
touch %{buildroot}%{_bindir}/links
true | gzip -c > %{buildroot}%{_mandir}/man1/links.1.gz

%find_lang elinks

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1239 |21cr|elisa-20.08.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname %{name} %{major}

Summary:	A powerful media player for plasma
Name:		elisa
Version:	20.08.1
Release:	1
Epoch:		2
License:	LGPLv2+
Group:		Sound
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
# TODO: Update to the new release
Source1:	%{name}-%{version}_ru.tar.gz
Patch0:     elisa-russian_radio.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:		vlc

%description
A powerful media player for plasma.

%files -f %{name}.lang
%doc COPYING README.md
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_kde5_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.png
%{_kde5_qmldir}/org/kde/elisa/plugins.qmltypes
%{_appdatadir}/org.kde.%{name}.appdata.xml
%{_kde5_datadir}/qlogging-categories5/elisa.categories

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Plasma Media Player Libraries
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries needed by %{name}.

%files -n %{libname}
%doc COPYING
%{_kde5_libdir}/libelisaLib.so.0
%{_kde5_libdir}/elisa/libelisaLib.so.%{major}*
%{_qt5_libdir}/qt5/qml/org/kde/%{name}/qmldir
%{_qt5_libdir}/qt5/qml/org/kde/%{name}/libelisaqmlplugin.so

#--------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# Russian locale
pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

ln -s %{_kde5_libdir}/elisa/libelisaLib.so.0.1 %{buildroot}%{_kde5_libdir}/libelisaLib.so.0

# Fix perms
chmod -x %{buildroot}%{_kde5_applicationsdir}/org.kde.%{name}.desktop

%find_lang %{name} %{name}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1240 |21cr|elixir-1.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global __with_rebar 1
# We don't use rebar3 for now
%global __with_rebar3 0

Name:		elixir
Version:	1.14.0
Release:	1
Summary:	A modern approach to programming for the Erlang VM
Group:		Development/Tools
License:	ASL 2.0
URL:		http://elixir-lang.org/
Source0:	https://github.com/elixir-lang/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:	https://github.com/elixir-lang/%{name}/releases/download/v%{version}/Docs.zip#/%{name}-%{version}-doc.zip
# See https://bugzilla.redhat.com/1470583
#BuildArch:      noarch
BuildRequires: erlang-rpm-macros
BuildRequires: erlang-base
BuildRequires: erlang-compiler
BuildRequires: erlang-crypto
BuildRequires: erlang-dialyzer
BuildRequires: erlang-eunit
BuildRequires: erlang-inets
BuildRequires: erlang-parsetools
BuildRequires: erlang-public_key
%if %{__with_rebar}
BuildRequires: erlang-rebar
%endif
%if %{__with_rebar3}
BuildRequires: erlang-rebar3
%endif
BuildRequires: erlang-tools
BuildRequires: erlang-xmerl
#BuildRequires: git
BuildRequires: sed

Requires: erlang-compiler
Requires: erlang-crypto
Requires: erlang-base
#Requires: erlang-eunit
Requires: erlang-inets
Requires: erlang-parsetools
Requires: erlang-public_key
Requires: erlang-tools


%description
Elixir is a programming language built on top of the Erlang VM.
As Erlang, it is a functional language built to support distributed,
fault-tolerant, non-stop applications with hot code swapping.

%files
%license LICENSE
%{_bindir}/elixir
%{_bindir}/elixirc
%{_bindir}/iex
%{_bindir}/mix
%{_datadir}/%{name}
%{_mandir}/man1/elixir.1*
%{_mandir}/man1/elixirc.1*
%{_mandir}/man1/iex.1*
%{_mandir}/man1/mix.1*

#---------------------------------------------------------------------
%package doc
License: ASL 2.0
Summary: Documentation for the elixir language and tools

%description doc
HTML documentation for eex, elixir, iex, logger and mix.

%files doc
%license docs/LICENSE
%doc docs/doc/eex docs/doc/elixir docs/doc/iex docs/doc/logger docs/doc/mix

#---------------------------------------------------------------------
%prep
# Unpack the HTML documentation (Source1)
%setup -q -T -c -n %{name}-%{version}/docs -a 1
find -name ".build" -exec rm \{\} \;

# Unpack elixir itself (Source0)
%setup -q -D

# Remove windows-specific scripts
find -name '*.bat' -exec rm \{\} \;

# This contains a failing test. We want `make test` for most tests, but
# this deals with ANSI codes which rpmbuild strips.
rm lib/elixir/test/elixir/io/ansi_test.exs

# Remove VCS-specific files
find . -name .gitignore -delete
find . -name .gitkeep -delete

# Let the Makefile speak!
sed -i '/^Q\s*:=/d' Makefile

rm -f ./lib/mix/test/fixtures/rebar ./lib/mix/test/fixtures/rebar3
%if %{__with_rebar}
# Do nothing
%else
# Disable rebar-related tests (tests require both rebar and rebar3)
rm -f ./lib/mix/test/mix/rebar_test.exs
touch ./lib/mix/test/fixtures/rebar
%endif

%if %{__with_rebar3}
# Do nothing
%else
# Disable rebar-related tests (tests require both rebar and rebar3)
rm -f ./lib/mix/test/mix/rebar_test.exs
touch ./lib/mix/test/fixtures/rebar3
%endif

%build
export LANG=C.UTF-8
%if %{__with_rebar}
export REBAR=/usr/bin/rebar
export REBAR_DEPS_PREFER_LIBS=TRUE
%endif
%if %{__with_rebar3}
export REBAR3=/usr/bin/rebar3
%endif
%make compile
%make build_man

%check
export LANG=C.UTF-8
%if %{__with_rebar}
export REBAR=/usr/bin/rebar
export REBAR_DEPS_PREFER_LIBS=TRUE
%endif
%if %{__with_rebar3}
export REBAR3=/usr/bin/rebar3
%endif
#temporaly disable test, test passed but exit not 0
#%%make test

%install
mkdir -p %{buildroot}/%{_datadir}/%{name}/%{version}
cp -ra bin lib %{buildroot}/%{_datadir}/%{name}/%{version}

mkdir -p %{buildroot}/%{_bindir}
ln -s %{_datadir}/%{name}/%{version}/bin/{elixir,elixirc,iex,mix} %{buildroot}/%{_bindir}/

# Manual pages
mkdir -p %{buildroot}/%{_mandir}/man1
cp -a man/elixir.1 man/elixirc.1 man/iex.1 man/mix.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1241 |21cr|emacs-browse-kill-ring-1.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname browse-kill-ring

Summary:	Interactively insert items from kill-ring
Name:		emacs-%{rname}
Version:	1.3
Release:	14
License:	GPLv2+
Group:		Editors
Url:		http://www.todesschaf.org/projects/bkr.html
Source0:	%{rname}.el
Source1:	%{name}-autostart.el
BuildRequires:	emacs
BuildRequires:	perl
BuildArch:	noarch

%description
Ever feel that 'C-y M-y M-y M-y ...' is not a great way of trying
to find that piece of text you know you killed a while back?  Then
browse-kill-ring is for you.

%files
%doc DOCUMENTATION
%config(noreplace) /etc/emacs/site-start.d/%{name}.el
%{_datadir}/*/site-lisp/*el*

#----------------------------------------------------------------------------

%prep
%setup -T -c
install -m644 %{SOURCE0} .

%build
emacs -batch -q -no-site-file -f batch-byte-compile %{rname}.el
mv %{rname}.elc emacs-%{rname}.elc

#Maybe need adjust
perl -n -e 'last if /^\(/;last if /^;;; Code/; s|^([;])+\s||; print' < %{SOURCE0} > DOCUMENTATION

%install
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/
install -m644 emacs-%{rname}.elc %{buildroot}%{_datadir}/emacs/site-lisp/
install -m644 %{rname}.el %{buildroot}%{_datadir}/emacs/site-lisp/

install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1242 |21cr|emacs-chess-2.0b5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pname chess

Name:		emacs-%{pname}
Summary: 	A client and library for playing Chess from Emacs
Version: 	2.0b5
Release: 	10
License:	GPL
Group: 		Editors
Source: 	%{pname}-%{version}.tar.bz2
Patch0:         chess-2.0b5-texi.patch
Url: 		http://www.newartisans.com/johnw/EmacsChess.html
BuildRequires: 	emacs-bin
BuildRequires:  texinfo
BuildArch: noarch

%description
Chess.el does not know how to play chess against you.  While the
library does know all legal moves, there is no "thinking" module.  For
this, you must download one of the publically available chess engines,
such as gnuchess, crafty or phalanx.  You will find all of these
sufficiently challenging, I'm sure.  Once they are installed, chess.el
will use them, provided the locations of the binaries is on your PATH.

%prep
%setup -q -n %{pname}-%{version}
%patch0 -p1

%build
make clean
%make

%install
mkdir -p %{buildroot}/%{_datadir}/emacs/site-lisp
install	*.el *.elc %{buildroot}/%{_datadir}/emacs/site-lisp

install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
cp chess-auto.el %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{pname}-emacs.el

%files
%doc COPYING ChangeLog EPD.txt PGN.txt PLAN README TODO 
%{_datadir}/emacs/site-lisp/*.el
%{_datadir}/emacs/site-lisp/*.elc
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{pname}-emacs.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1243 |21cr|emacs-ebib-1.7.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	ebib

Summary:	BibTeX database manager for Emacs
Name:		emacs-ebib
Version:	1.7.2
Release:	4
Source0:	%{tarname}-%{version}.tar.gz
License:	BSD
Group:		Editors
Url:		http://ebib.sourceforge.net/
BuildArch:	noarch
Provides:	%{tarname} = %{version}-%{release}
Requires:	emacs 
BuildRequires:	emacs 

%description
Ebib is a BibTeX database manager that runs in GNU Emacs and
XEmacs. With Ebib, you can create and manage .bib-files, all within
Emacs. It supports @string and @preamble definitions, multi-line field
values, searching, and integration with Emacs' (La)TeX mode.

%prep
%setup -q -n %{tarname}-%{version}

%build
emacs -batch -f batch-byte-compile ebib.el
cp -p info/*.info .
lzma -z *.info

%install
%__rm -rf %{buildroot}
%__install -d -m 755 %{buildroot}%{_datadir}/emacs/site-lisp
%__install -d -m 755 %{buildroot}%{_infodir}
%__install -d -m 755 %{buildroot}%{_sysconfdir}/emacs/site-start.d
%__install -m 644 ebib.el* %{buildroot}%{_datadir}/emacs/site-lisp
%__install -m 644 ebib-manual.info* %{buildroot}%{_infodir}
ln -s %{_infodir}/ebib-manual.info.lzma %{buildroot}%{_infodir}/ebib.info.lzma
%__cat <<EOF > %{buildroot}%{_sysconfdir}/emacs/site-start.d/ebib.el
(autoload 'ebib "ebib" "Ebib, a BibTeX database manager" t)
EOF
%__chmod 644 %{buildroot}%{_sysconfdir}/emacs/site-start.d/ebib.el

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog README doc/html/*
%_sysconfdir/emacs/site-start.d/ebib.*
%_datadir/emacs/site-lisp/ebib*
%_infodir/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1244 |21cr|emacs-elib-1.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname   elib
%define elibdir %{_datadir}/emacs/site-lisp/%{fname}

Name:           emacs-%{fname}
Version:        1.0
Release:        17
Epoch:          0
Summary:        Emacs Lisp Library
Requires:       emacs >= 0:20.7
License:        GPL
URL:            http://jdee.sunsite.dk/
Source:         http://jdee.sunsite.dk/%{fname}-%{version}.tar.bz2
Patch0:         emacs-elib-1.0-direntry.patch
Patch1:		emacs-elib-1.0-texi.patch
Group:          Editors
Obsoletes:      elib < %{epoch}:%{version}-%{release}
Provides:       elib = %{epoch}:%{version}-%{release}
BuildArch:      noarch
BuildRequires:  emacs-bin
BuildRequires:  texinfo

%description
The Emacs Lisp Library.

%prep
%setup -q -n %{fname}-%{version}
%patch0 -p1
%patch1 -p1

%build
%make

%install
%{__mkdir_p} %{buildroot}%{_datadir}/emacs/site-lisp/%{fname}
%{__mkdir_p} %{buildroot}{%{elibdir},%{_infodir}}

%{__install} -m 644 *.el *.elc %{buildroot}%{elibdir}
%{__install} -m 644 *.info* %{buildroot}%{_infodir}

%files
%doc ChangeLog COPYING INSTALL NEWS README RELEASING TODO
%{elibdir}
%{_infodir}/*info*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1245 |21cr|emacs-EPL-0.7-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Control Emacs using Perl as an alternative to Emacs Lisp

Name: emacs-EPL
Version: 0.7
Release: 16
License: GPL
Group: Development/Perl
Source: http://www.cpan.org/modules/by-module/Emacs/Emacs-EPL-%{version}.tar.gz
Requires: emacs, perl
BuildRequires: perl-devel
BuildArch: noarch

%description
EPL (Emacs Perl) lets you control Emacs and XEmacs using Perl as an alternative
to Emacs Lisp.

%prep
%setup -n Emacs-EPL-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std
(
 cd lisp
 for i in *.el; do install -D $i %{buildroot}/usr/share/emacs/site-lisp/$i; done
)

install -d %{buildroot}/etc/emacs/site-start.d
echo "(require 'perl)" > %{buildroot}/etc/emacs/site-start.d/epl.el

%clean 

%files
%doc README
%{perl_vendorlib}/Emacs*
%{_mandir}/*/*
%{_datadir}/emacs/site-lisp/*
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1246 |21cr|emacs-ess-18.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ess

Summary:	Emacs Speaks Statistics package for Emacs
Name:		emacs-ess
Version:	18.10.2
Release:	1
License:	GPLv2+
Group:		Editors
Url:		https://ess.r-project.org
Source0:	https://ess.r-project.org/downloads/ess/%{oname}-%{version}.tgz
Patch0:		ess-18.10.2-docstring-wider.patch
BuildRequires:	emacs
BuildRequires:	emacs-el
BuildRequires:	R-base
BuildRequires:	texinfo
Requires:	emacs
Requires:	emacs-el
BuildArch:	noarch

%description
This package provides Emacs Speaks Statistics (ESS), which provides
Emacs-based front ends for popular statistics packages.

ESS provides an intelligent, consistent interface between the user and
the software. ESS interfaces with S-PLUS, R, SAS, BUGS and other
statistical analysis packages under the Unix, Microsoft Windows, and
Apple Mac OS operating systems. ESS is a package for the GNU Emacs
text editor whose features ESS uses to streamline the creation and use
of statistical software. ESS knows the syntax and grammar of statistical
analysis packages and provides consistent display and editing features
based on that knowledge. ESS assists in interactive and batch execution
of statements written in these statistical analysis languages.

%files
%doc ANNOUNCE ChangeLog README VERSION
%dir %{_datadir}/emacs/site-lisp
%{_datadir}/emacs/site-lisp/%{oname}
%{_datadir}/emacs/site-lisp/ess-site.el
%{_infodir}/%{oname}.info.xz
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el

#----------------------------------------------------------------------------

%package doc
Summary:	Emacs Speaks Statistics Documentation
Group:		Editors

%description doc
This package provides documentation for Emacs Speaks Statistics (ESS).

%prep
%autosetup -p1 -n %{oname}-%{version}
chmod u+w doc/{html,info,refcard,dir.txt} # fix perms

%files doc
%doc doc/ess.pdf doc/readme.pdf doc/refcard.pdf doc/html

#----------------------------------------------------------------------------

%build
%make \
	PREFIX=%{_prefix} \
	LISPDIR=%{_datadir}/emacs/site-lisp/%{oname} \
	ETCDIR=%{_datadir}/emacs/site-lisp/%{oname}/etc \
	INFODIR=%{_infodir}

cat > %{name}.el <<"EOF"
;;; Set up %{oname} for Emacs.
;;;
;;; This file is automatically loaded by emacs's site-start.el
;;; when you start a new emacs session.
(if (not (string-match "XEmacs" emacs-version)) (require 'ess-site))
EOF

%install
install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
install -d %{buildroot}%{_infodir}

%makeinstall_std \
	PREFIX=%{buildroot}%{_prefix} \
	LISPDIR=%{buildroot}%{_datadir}/emacs/site-lisp/%{oname} \
	ETCDIR=%{buildroot}%{_datadir}/emacs/site-lisp/%{oname}/etc \
	INFODIR=%{buildroot}%{_infodir} \
	DOCDIR=%{buildroot}%{_docdir}/%{name}-doc
install -m 0644 %{name}.el %{buildroot}%{_sysconfdir}/emacs/site-start.d/
ln -sf %{_datadir}/emacs/site-lisp/%{oname}/ess-site.el %{buildroot}%{_datadir}/emacs/site-lisp/ess-site.el
rm -f %{buildroot}%{_datadir}/emacs/site-lisp/%{oname}/etc/*.BAT
rm -f %{buildroot}%{_datadir}/emacs/site-lisp/%{oname}/etc/*.sparc
rm -f %{buildroot}%{_docdir}/%{name}-doc/*.dvi
rm -f %{buildroot}%{_docdir}/%{name}-doc/*.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1247 |21cr|emacs-haskell-mode-17.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname haskell-mode

Summary:	Major mode for editing Haskell code with emacs
Name:		emacs-haskell-mode
Version:	17.2
Release:	1
License:	GPL
Group:		Development/Other
Url:		https://github.com/haskell/haskell-mode
Source0:	https://github.com/haskell/haskell-mode/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		haskell-mode-17.2-docstring-wider.patch
BuildRequires:	emacs
BuildRequires:	emacs-el
BuildRequires:	info
BuildRequires:	texinfo
BuildArch:	noarch

%description
Haskell Mode for Emacs

%files
%doc NEWS README.md
%license COPYING
%{_datadir}/*/site-lisp/*
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{oname}.el

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
make

%install
# NB: prefering .el files (so that it's version independant)
install -d %{buildroot}%{_datadir}/emacs/site-lisp
install -m644 *.el %{buildroot}%{_datadir}/emacs/site-lisp

install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat <<EOF >%{buildroot}%{_sysconfdir}/emacs/site-start.d/%{oname}.el
(load "%{_datadir}/emacs/site-lisp/haskell-site-file")
;(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
;(add-hook 'haskell-mode-hook 'turn-on-haskell-hugs)
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1248 |21cr|emacs-htmlize-1.56-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname 	htmlize

Summary: 	HTML-ize font-lock buffers
Name: 		emacs-%{oname}
Version:	1.56
Release: 	1
Epoch:		0
Group: 		Editors
Url:		https://github.com/hniksic/emacs-htmlize
Source0: 	https://github.com/hniksic/emacs-htmlize/archive/release/%{version}.tar.gz?/%{name}-release-%{version}.tar.gz
License: 	GPLv2+
BuildRequires:	emacs
BuildArch:	noarch

%description
This package converts text and associated decorations in an emacs
buffer to HTML.

%files
%doc htmlize.el.html NEWS README.md
%{_datadir}/emacs/site-lisp/%{oname}.el*
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{oname}.el

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-release-%{version}
cat > %{oname}-start.el << EOF
;; -*- Mode: Emacs-Lisp -*-

(if (string-match "GNU Emacs" (version)) (autoload '%{oname}-buffer "%{oname}" nil t))
(if (string-match "GNU Emacs" (version)) (autoload '%{oname}-region "%{oname}" nil t))
(if (string-match "GNU Emacs" (version)) (autoload '%{oname}-file "%{oname}" nil t))
(if (string-match "GNU Emacs" (version)) (autoload '%{oname}-many-files "%{oname}" nil t))
(if (string-match "GNU Emacs" (version)) (autoload '%{oname}-many-files-dired "%{oname}" nil t))
EOF

%build
emacs -batch -q -no-site-file -f batch-byte-compile %{oname}.el 

%install
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp
install -m 644 %{oname}.el %{buildroot}/%{_datadir}/emacs/site-lisp
install -m 644 %{oname}.elc %{buildroot}/%{_datadir}/emacs/site-lisp

mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d
install -m 644 %{oname}-start.el %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{oname}.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1249 |21cr|emacs-matlab-3.3.1-3.20130402.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20130402

Summary:	Matlab mode for emacs
Name:		emacs-matlab
Version:	3.3.1
Release:	3.%{git}.1
License:	GPLv2+
Group:		Editors
Url: 		http://matlab-emacs.sourceforge.net/
Source0:	matlab-emacs-%{git}.tar.bz2
BuildRequires:	emacs
BuildRequires:	emacs-cedet
Requires:	emacs
Requires:	emacs-cedet
BuildArch:	noarch

%description
Matlab mode for emacs.

%files
%doc ChangeLog* README
%{_datadir}/emacs/site-lisp/matlab
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/matlab-load.*

#----------------------------------------------------------------------------

%prep
%setup -q -n matlab-emacs

%build
sed -i 's,--no-site-file,,' Makefile
%make all

%install
rm -f *~
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/matlab/
install -m 644 *.el* %{buildroot}%{_datadir}/emacs/site-lisp/matlab/

cat > tmp <<EOF
;; Set path to matlab mode files on Mandriva
(add-to-list 'load-path "/usr/share/emacs/site-lisp/matlab")

EOF
cat tmp matlab-load.el > tmp2
mv -f tmp2 matlab-load.el

mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/
install -m 644 matlab-load.el* %{buildroot}%{_sysconfdir}/emacs/site-start.d/
rm -f %{buildroot}%{_datadir}/emacs/site-lisp/matlab/matlab-load*

chmod 644 ChangeLog* README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1250 |21cr|emacs-php-mode-1.24.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname php-mode

Summary:	Major mode for editing PHP code
Name:		emacs-php-mode
Version:	1.24.0
Release:	1
Epoch:		1
License:	GPLv3+
Group:		Editors
Url:		https://github.com/emacs-php/php-mode
Source0:	https://github.com/emacs-php/php-mode/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		php-mode-1.24.0-docstring-wider.patch
BuildRequires:	emacs
BuildRequires:	texinfo
Requires:	emacs
BuildArch:	noarch	

%description 
PHP mode is a major Emacs mode for editing PHP 3 and 4 source code. As
it is an extension of the C mode, it inherits all of that mode's
navigation functionality. It's syntax highlighting colors code
according to PHP's grammar, however, and indents it according to the
PEAR coding guidelines. The mode also includes a couple of handy
IDE features such as documentation search and a source and class
browser.

%files
%{_datadir}/*/site-lisp/*el*
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
make

%install

%__install -m 755 -d %{buildroot}%{_datadir}/emacs/site-lisp
%__install -m 644 lisp/*.el* %{buildroot}%{_datadir}/emacs/site-lisp/

%__install -m 755 -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat > %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el << EOF
;; -*- Mode: Emacs-Lisp -*-
; Copyright (C) 2000 by Chmouel Boudjnah
; 
; Redistribution of this file is permitted under the terms of the GNU 
; Public License (GPL)
;

(autoload '%{oname} "%{oname}" nil t)
(setq auto-mode-alist (append '(("\\\\.php3?\\\\'" . %{oname})) auto-mode-alist))
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1251 |21cr|emacs-psgml-1.3.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname psgml
%define psgmldir %{_datadir}/emacs/site-lisp/psgml

%define debug_package %{nil}

Summary:	A GNU Emacs major mode for editing SGML documents
Name:		emacs-%{oname}
Version:	1.3.2
Release:	6
License:	GPLv2+
Group:		Editors
Url:		http://www.lysator.liu.se/projects/about_psgml.html
Source0:	ftp://ftp.lysator.liu.se:21/pub/sgml/ALPHA/psgml-%{version}.tar.gz
BuildRequires:	emacs-bin
Requires:	emacs >= 20.7
Requires:	sgml-common
Provides:	psgml = %{EVRD}

%description
Emacs is an advanced and extensible editor. An Emacs major mode
customizes Emacs for editing particular types of text documents. PSGML
is a major mode for SGML (a markup language) documents.  PSGML
provides several functionalities for editing SGML documents:
indentation according to element nesting depth and identification of
structural errors (but it is not a validating SGML parser); menus and
commands for inserting tags with only the contextually valid tags;
attribute values can be edited in a separate window with information
about types and defaults; structure based editing includes movement
and killing; and also several commands for folding editing.

%files
%doc README.psgml
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}-init.el
%dir %{psgmldir}
%{psgmldir}/*
%{_libdir}/sgml/cdtd
%{_infodir}/*info*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%configure
make infodir=%{_infodir} psgmldir=%{psgmldir}

%install
install -d %{buildroot}{%{psgmldir},%{_infodir},%{_libdir}/sgml/cdtd}

%makeinstall psgmldir=%{buildroot}%{psgmldir} lispdir=%{buildroot}%{psgmldir}

# Why putting source files ??????
#for i in %{buildroot}%{psgmldir}/*.elc; do 
#  rm -f $i
#  cp `echo $(basename $i) | sed s/elc/el/` %{buildroot}%{psgmldir}
#done

make install-info infodir=%{buildroot}%{_infodir}

install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat << EOF > %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}-init.el
(add-to-list 'load-path "%{psgmldir}")

(autoload 'sgml-mode "psgml" "Major mode for editing SGML." t)
(autoload 'xml-mode "psgml" "Major mode for editing XML." t)
(if (not (getenv "SGML_CATALOG_FILES"))
   (defvar sgml-catalog-files '("CATALOG" "catalog" "/etc/sgml/catalog""%{_libdir}/sgml/CATALOG" "%{_libdir}/sgml-tools/dtd/catalog"))
  "*List of catalog entry files.
The files are in the format defined in the SGML Open Draft Technical
Resolution on Entity Management.")
(put 'sgml-catalog-files 'sgml-type 'list);;
;;
;; SGML markup faces.
;;
(setq sgml-markup-faces
'((start-tag . font-lock-function-name-face)
(end-tag . font-lock-builtin-face)
(comment . font-lock-comment-face)
(pi . font-lock-keyword-face)
(sgml . font-lock-keyword-face)
(doctype . font-lock-keyword-face)
(entity . font-lock-variable-name-face)
(shortref . font-lock-variable-name-face)
(ignored  . font-lock-comment)
(ms-start . font-lock-type-face)
(ms-end . font-lock-type-face)))

(setq sgml-set-face t)

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1252 |21cr|emacs-tnt-2.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname 	tnt

Summary: 	Emacs based AOL Instant Message Client
Name: 		emacs-tnt
Version:	2.4
Release: 	12
Source0: 	%{rname}-%{version}.tar.bz2
Url:		http://tnt.sourceforge.net
License: 	GPL
Group: 		Editors
Prefix: 	%{_prefix}
BuildRequires:  emacs-bin
BuildArch: noarch

%description
TNT is an Emacs client for AIM, AOL's free instant messaging service.
Using TNT, you can, from the comfort of your Emacs window, check
whether friends and coworkers are online, send them "instant
messages", and join them in multi-party private chat sessions.  Unlike
the official AIM clients, TNT is designed to be functional rather than
pretty, easy to use rather than easy to learn.  It doesn't have a
graphical user interface, fancy artwork, or other random fluff.
Instead, like other emacs extensions, it has a keyboard-driven,
text-based interface.  TNT is AIM for grownups ;-).

%prep
%setup -n %{rname}-%{version}

%build
emacs -batch --no-site-file --eval '(setq load-path (cons "." load-path))' -f batch-byte-compile *.el

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/tnt $RPM_BUILD_ROOT%{_sysconfdir}/emacs/site-start.d
cp *.el *.elc $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
cat << EOF > $RPM_BUILD_ROOT%{_sysconfdir}/emacs/site-start.d/tnt.el
(load "tnt")
EOF
%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%doc README PROTOCOL TODO
%{_datadir}/emacs/site-lisp/*.el
%{_datadir}/emacs/site-lisp/*.elc
%{_sysconfdir}/emacs/site-start.d/tnt.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1253 |21cr|emacs-w3m-1.5-1.gitc3a3a9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname w3m
%define emacs_version 28.1
%define commit c3a3a947fb267df1f03287be2eab4f7119707e90
%define commit_short %(echo %{commit} | head -c 6)

Summary:	An Emacs interface to w3m, a web browser and pager
Name:		emacs-w3m
Version:	1.5
Release:	1.git%{commit_short}.1
License:	GPLv2+
Group:		Networking/WWW
Url:		https://github.com/emacs-w3m/emacs-w3m
Source0:	https://github.com/emacs-w3m/emacs-w3m/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}-autostart.el
BuildRequires:	emacs
Requires:	emacs
Requires:	w3m
Conflicts:	xemacs
Provides:	emacs-w3 = %{EVRD}
BuildArch:	noarch

%description
Emacs-w3m is a simple Emacs interface to w3m, which is a pager with WWW
capability. Although it is a pager, it can be used as a text-mode WWW browser.

%files
%doc README
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*el
%{_infodir}/*
%dir %attr(0755, root, root) %{_datadir}/emacs/site-lisp/%{oname}/
%{_datadir}/emacs/site-lisp/%{oname}/*elc
%{_datadir}/emacs/site-lisp/%{oname}/.dir-locals.el
%{_datadir}/emacs/site-lisp/%{oname}/mew-%{oname}.el
%{_datadir}/emacs/site-lisp/%{oname}/mime-%{oname}.el
%{_datadir}/emacs/site-lisp/%{oname}/octet.el
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-load.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-save.el.*
%{_datadir}/emacs/%{emacs_version}/etc/images/w3m/

#----------------------------------------------------------------------------

%package el
Summary:	Web Browser sources for GNU Emacs
Group:		Editors
Url:		http://www.cs.indiana.edu/elisp/w3/
Requires:	%{name} = %{EVRD}

%description el
Emacs-w3m is a simple Emacs interface to w3m, which is a pager with WWW
capability. Although it is a pager, it can be used as a text-mode WWW browser.

This is the elisp source.

%files el
%doc ChangeLog
%dir %attr(0755, root, root) %{_datadir}/emacs/site-lisp/%{oname}/
%{_datadir}/emacs/site-lisp/%{oname}/ChangeLog
%{_datadir}/emacs/site-lisp/%{oname}/ChangeLog.1
%{_datadir}/emacs/site-lisp/%{oname}/bookmark-w3m.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-antenna.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-bookmark.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-bug.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-cookie.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-dtree.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-ems.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-favicon.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-fb.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-filter.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-form.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-hist.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-image.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-lnum.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-mail.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-namazu.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-perldoc.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-proc.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-rss.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-search.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-session.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-symbol.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-tabmenu.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-util.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}-weather.el.*
%{_datadir}/emacs/site-lisp/%{oname}/%{oname}.el.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{commit}

%build
autoreconf -fi
./configure --with-emacs=emacs --libdir=%{_libdir}

make

%install
mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{oname}.el

make install \
	infodir=%{buildroot}%{_infodir} \
	lispdir=%{buildroot}%{_datadir}/emacs/site-lisp/%{oname}

make install-icons \
	ICONDIR=%{buildroot}%{_datadir}/emacs/%{emacs_version}/etc/images/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1254 |21cr|emacs-xslide-0.2.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define xslidedir %{_datadir}/emacs/site-lisp/xslide/

Summary:	A GNU Emacs major mode for editing XSL documents
Name:		emacs-xslide
Version:	0.2.2
Release:	14
License:	GPLv2+
Group:		Publishing
Url:		http://www.menteith.com/xslide/index.html
Source0:	http://www.menteith.com/xslide/data/xslide-%{version}.tar.bz2
BuildRequires:	emacs-bin
Requires:	emacs
Provides:	xslide = %{EVRD}
BuildArch:	noarch

%description
Emacs is an advanced and extensible editor. An Emacs major mode
customizes Emacs for editing particular types of text documents.
The xslide package is an Emacs major mode for editing XSL.

%files
%doc README.TXT ChangeLog TODO NEWS
%dir %{xslidedir}
%{xslidedir}/*.elc
%{_sysconfdir}/emacs/site-start.d/xslide-init.el

#----------------------------------------------------------------------------

%prep
%setup -q -n xslide-%{version}

%build
%make

cat >> dot_emacs << __ELISP__
(setq load-path (append load-path '("/usr/share/emacs/site-lisp/xslide")))

;; "Used for prefix and colon portion of formatting object elements and attributes"
(make-face 'xsl-fo-alternate-face)
(set-face-foreground 'xsl-fo-alternate-face "Midnight Blue")

;; "Used for literal result element tags"
(make-face 'xsl-other-element-face)
(set-face-foreground 'xsl-other-element-face "Midnight Blue")

(make-face 'xsl-fo-main-face)
(set-face-foreground 'xsl-other-element-face "Midnight Blue")

__ELISP__

%install
mkdir -p %{buildroot}%{xslidedir}
mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/

make
cp *.elc %{buildroot}%{xslidedir}
cp dot_emacs %{buildroot}%{_sysconfdir}/emacs/site-start.d/xslide-init.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1255 |21cr|emacs-yaml-mode-0.0.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname yaml-mode

Summary:	Major mode for editing YAML file
Name:		emacs-%{oname}
Version:	0.0.15
Release:	1
Epoch:		1
License:	GPLv3+
Group:		Editors
Url:		https://github.com/yoshiki/yaml-mode
Source0:	https://github.com/yoshiki/yaml-mode/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	emacs
BuildRequires:	texinfo
Requires:	emacs
BuildArch:    	noarch	

%description 
YAML mode is a major Emacs mode for editing YAML.

%files
%doc Changes README
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
%{_datadir}/*/site-lisp/*el*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
emacs -batch -q -no-site-file -f batch-byte-compile %{oname}.el 

%install
%__install -m 755 -d %{buildroot}%{_datadir}/emacs/site-lisp
%__install -m 644 %{oname}.el* %{buildroot}%{_datadir}/emacs/site-lisp/

%__install -m 755 -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat > %buildroot%_sysconfdir/emacs/site-start.d/%{name}.el << EOF
;; -*- Mode: Emacs-Lisp -*-
; 
; Redistribution of this file is permitted under the terms of the GNU 
; Public License (GPL)
;

(autoload '%{oname} "%{oname}" nil t)
(setq auto-mode-alist (append '(("\\\\.yml?\\\\'" . %{oname})) auto-mode-alist))

(add-hook 'yaml-mode-hook
      '(lambda ()
        (define-key yaml-mode-map "\C-m" 'newline-and-indent)))

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1256 |21cr|email-0-0.gitfe8ac.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit fe8acf4789d1d60bec6b200ff87e4f589767e41f
%define commit_short %(echo %{commit} | head -c 5)

# Match with dlib
%global optflags %{optflags} -fcommon -I%{libressl_prefix}/include -L%{libressl_prefix}/lib

Summary:	Command line SMTP client
Name:		email	
Version:	0
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		System/Libraries
Url:		https://github.com/deanproxy/eMail
Source0:	https://github.com/deanproxy/eMail/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	dlib-devel
BuildRequires:	libressl-devel
Provides:	eMail = %{EVRD}

%description
Simple to use command line SMTP client

%files
%license COPYING
%doc AUTHORS ChangeLog README.md THANKS
%{_bindir}/email
%{_mandir}/man1/email.1*
%dir %{_sysconfdir}/email
%config(noreplace) %{_sysconfdir}/email/email.sig
%{_sysconfdir}/email/mime.types
%config(noreplace) %{_sysconfdir}/email/email.conf
%{_sysconfdir}/email/email.help
%config(noreplace) %{_sysconfdir}/email/email.address.template

#-------------------------------------------------------------------------------------------------s

%prep
%autosetup -p1 -n eMail-%{commit}

%build
autoreconf -if
# TODO: upstreamize building shared dlib to dlib and using it here
sed -i'' src/Makefile.in -e '/^DLIB =/d'
%configure --with-system-dlib
%make DLIB="-ldlib"

%install

# for install.sh, from debian/rules
export VERSION="%{version}-%{release}"
%makeinstall_std

rm -fvr %{buildroot}%{_defaultdocdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1257 |21cr|emboss-6.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define _disable_ld_as_needed 1

%define oname EMBOSS
%define major 6
%define major1 1
%define major7 7
%define major3 3
%define libacd %mklibname acd %{major}
%define libajax %mklibname ajax %{major}
%define libajaxdb %mklibname ajaxdb %{major}
%define libajaxg %mklibname ajaxg %{major}
%define libeexpat %mklibname eexpat %{major1}
%define libensembl %mklibname ensembl %{major}
%define libepcre %mklibname epcre %{major7}
%define libeplplot %mklibname eplplot %{major3}
%define libezlib %mklibname ezlib %{major1}
%define libnucleus %mklibname nucleus %{major}
%define devname %mklibname %{name} -d

Summary:	The European Molecular Biology Open Software Suite
Name:		emboss
Version:	6.4.0
Release:	6
License:	GPL/LGPL
Group:		Sciences/Biology
Url:		http://www.emboss.org
Source0:	ftp://emboss.open-bio.org/pub/EMBOSS/%{oname}-%{version}.tar.gz
Source1:	%{name}.default.bz2
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
Obsoletes:	%{_lib}emboss6 < 6.4.0-4

%description
EMBOSS is a new, free Open Source software analysis package specially
developed for the needs of the molecular biology (e.g. EMBnet) user community.
The software automatically copes with data in a variety of formats and even
allows transparent retrieval of sequence data from the web. Also, as extensive
libraries are provided with the package, it is a platform to allow other
scientists to develop and release software in true open source spirit.
EMBOSS also integrates a range of currently available packages and tools for
sequence analysis into a seamless whole.

Reference for EMBOSS: Rice,P. Longden,I. and Bleasby,A.
"EMBOSS: The European Molecular Biology Open Software Suite"
Trends in Genetics June 2000, vol 16, No 6. pp.276-277

%files
%doc AUTHORS ChangeLog COPYING FAQ INSTALL LICENSE NEWS README THANKS
%{_bindir}/*
%{_datadir}/EMBOSS
%config(noreplace) %{_sysconfdir}/emboss.default
%config(noreplace) %{_sysconfdir}/profile.d/emboss.*

#----------------------------------------------------------------------------

%package -n %{libacd}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libacd}
Shared library for %{name}.

%files -n %{libacd}
%{_libdir}/libacd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libajax}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libajax}
Shared library for %{name}.

%files -n %{libajax}
%{_libdir}/libajax.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libajaxdb}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libajaxdb}
Shared library for %{name}.

%files -n %{libajaxdb}
%{_libdir}/libajaxdb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libajaxg}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libajaxg}
Shared library for %{name}.

%files -n %{libajaxg}
%{_libdir}/libajaxg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libeexpat}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libeexpat}
Shared library for %{name}.

%files -n %{libeexpat}
%{_libdir}/libeexpat.so.%{major1}*

#----------------------------------------------------------------------------

%package -n %{libensembl}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libensembl}
Shared library for %{name}.

%files -n %{libensembl}
%{_libdir}/libensembl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libepcre}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libepcre}
Shared library for %{name}.

%files -n %{libepcre}
%{_libdir}/libepcre.so.%{major7}*

#----------------------------------------------------------------------------

%package -n %{libeplplot}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libeplplot}
Shared library for %{name}.

%files -n %{libeplplot}
%{_libdir}/libeplplot.so.%{major3}*

#----------------------------------------------------------------------------

%package -n %{libezlib}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libezlib}
Shared library for %{name}.

%files -n %{libezlib}
%{_libdir}/libezlib.so.%{major1}*

#----------------------------------------------------------------------------

%package -n %{libnucleus}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}emboss6 < 6.4.0-4

%description -n %{libnucleus}
Shared library for %{name}.

%files -n %{libnucleus}
%{_libdir}/libnucleus.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libacd} = %{EVRD}
Requires:	%{libajax} = %{EVRD}
Requires:	%{libajaxdb} = %{EVRD}
Requires:	%{libajaxg} = %{EVRD}
Requires:	%{libeexpat} = %{EVRD}
Requires:	%{libensembl} = %{EVRD}
Requires:	%{libepcre} = %{EVRD}
Requires:	%{libeplplot} = %{EVRD}
Requires:	%{libezlib} = %{EVRD}
Requires:	%{libnucleus} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libacd.so
%{_libdir}/libajax.so
%{_libdir}/libajaxdb.so
%{_libdir}/libajaxg.so
%{_libdir}/libeexpat.so
%{_libdir}/libensembl.so
%{_libdir}/libepcre.so
%{_libdir}/libeplplot.so
%{_libdir}/libezlib.so
%{_libdir}/libnucleus.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
bzcat %{SOURCE1} > emboss.default

%build
autoreconf -fi
%configure \
	--without-java \
	--disable-static
%make

%install
%makeinstall_std

# fix perms and conflicts
chmod 755 %{buildroot}%{_bindir}/runJemboss.csh
for file in merger emma yank; do 
	mv %{buildroot}%{_bindir}/$file %{buildroot}%{_bindir}/$file-%{name}
done
# configuration file
install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 emboss.default %{buildroot}%{_sysconfdir}
cd %{buildroot}%{_datadir}/EMBOSS && ln -s ../../../etc/emboss.default .
# shell init files
install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
cat >%{buildroot}%{_sysconfdir}/profile.d/emboss.sh <<EOF
#EMBOSS environment
export PLPLOT_LIB=%{_datadir}/EMBOSS
EOF
cat >%{buildroot}%{_sysconfdir}/profile.d/emboss.csh <<EOF
#EMBOSS environment
setenv PLPLOT_LIB %{_datadir}/EMBOSS
EOF
#remove jemboss
rm -rf %{buildroot}%{_datadir}/EMBOSS/jemboss

#fix avlmap-utils
mv %{buildroot}%{_bindir}/wordcount %{buildroot}%{_bindir}/wordcount-%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1258 |21cr|embutils-0.19-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Small system utilities for embedded systems
Name:		embutils
Version:	0.19
Release:	9
License:	GPLv2+
Group:		System/Base
Url:		http://www.fefe.de/
Source0:	http://dl.fefe.de/%{name}-%{version}.tar.bz2
Source1:	http://dl.fefe.de/%{name}-%{version}.tar.bz2.sig
BuildRequires:	dietlibc-devel
Prefix:		%{_libdir}/%{name}

%description
Most of the typical Unix userland typically comes from either the
GNU project or the BSD people. Those sources are ancient and 
optimized for features, not for small size, and now that computers
are fast enough and have lots of RAM, implementations became 
larger and larger. Features like internationalization eat lots of
memory and disk space.

For embedded system and boot disks (and desktops and servers for 
purist Unix users), you rather want small than internationalized 
versions of the utilities. That's why I started to reimplement a 
few important typical userland programs that I need on boot and 
rescue disks, making sure that you can link it against diet libc
to create very small statically linked binaries.

%files
%doc CHANGES TODO
%{prefix}/bin/allinone
%{prefix}/bin/arch
%{prefix}/bin/basename
%{prefix}/bin/cat
%{prefix}/bin/chgrp
%{prefix}/bin/chmod
%{prefix}/bin/chown
%{prefix}/bin/chroot
%{prefix}/bin/chrootuid
%{prefix}/bin/chvt
%{prefix}/bin/clear
%{prefix}/bin/cmp
%{prefix}/bin/cp
%{prefix}/bin/date
%{prefix}/bin/dd
%{prefix}/bin/df
%{prefix}/bin/dirname
%{prefix}/bin/dmesg
%{prefix}/bin/domainname
%{prefix}/bin/du
%{prefix}/bin/echo
%{prefix}/bin/env
%{prefix}/bin/false
%{prefix}/bin/head
%{prefix}/bin/hostname
%{prefix}/bin/id
%{prefix}/bin/insmod
%{prefix}/bin/install
%{prefix}/bin/kill
%{prefix}/bin/ln
%{prefix}/bin/ls
%{prefix}/bin/lsmod
%{prefix}/bin/md5sum
%{prefix}/bin/mesg
%{prefix}/bin/mkdir
%{prefix}/bin/mkfifo
%{prefix}/bin/mknod
%{prefix}/bin/mktemp
%{prefix}/bin/mount
%{prefix}/bin/mv
%{prefix}/bin/nice
%{prefix}/bin/nohup
%{prefix}/bin/pivot_root
%{prefix}/bin/printenv
%{prefix}/bin/pwd
%{prefix}/bin/renice
%{prefix}/bin/rm
%{prefix}/bin/rmdir
%{prefix}/bin/rmmod
%{prefix}/bin/sleep
%{prefix}/bin/sleep2
%{prefix}/bin/soscp
%{prefix}/bin/sosln
%{prefix}/bin/soslns
%{prefix}/bin/sosmv
%{prefix}/bin/sosrm
%{prefix}/bin/strings
%{prefix}/bin/sync
%{prefix}/bin/tail
%{prefix}/bin/tar
%{prefix}/bin/tee
%{prefix}/bin/test
%{prefix}/bin/time
%{prefix}/bin/touch
%{prefix}/bin/tr
%{prefix}/bin/true
%{prefix}/bin/truncate
%{prefix}/bin/tty
%{prefix}/bin/umount
%{prefix}/bin/uname
%{prefix}/bin/uniq
%{prefix}/bin/uudecode
%{prefix}/bin/uuencode
%{prefix}/bin/wc
%{prefix}/bin/which
%{prefix}/bin/whoami
%{prefix}/bin/write
%{prefix}/bin/yes

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make FLAGS="-DPAGE_SIZE=\"`getconf PAGE_SIZE`\""

%install
install -d %{buildroot}%{prefix}/bin

make DESTDIR="%{buildroot}%{prefix}" prefix="" install

# fix softlinks...
ln -snf chown %{buildroot}%{prefix}/bin/chgrp
ln -snf mv %{buildroot}%{prefix}/bin/cp
ln -snf mknod %{buildroot}%{prefix}/bin/mkfifo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1259 |21cr|emelfm2-0.9.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	GTK+3 file manager with two-panel format
Name:		emelfm2
Version:	0.9.1
Release:	3
License:	GPLv3+ and LGPLv3+
Group:		File tools
Url:		http://emelfm2.net
Source0:	http://emelfm2.net/rel/%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	acl-devel
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(udev)
Obsoletes:	%{name}-i18n < 0.8.1-3

%description
emelFM2 is a file manager with the efficient two-panel format,
featuring:
  o Simple interface
  o Bookmarks and history lists
  o Flexible filetyping scheme
  o Multiple actions selectable for each filetype
  o Filename, size, and date Filters
  o Built-in command line
  o Configurable keyboard bindings
  o Configurable toolbars
  o Runtime loadable plugins

It is the GTK+3 port of emelFM.

Note: EmelFM2 and EmelFM are parallel installable

%files -f %{name}.lang
%doc docs/ACTIONS docs/CONFIGURATION docs/CREDITS
%doc docs/HACKING docs/README docs/TODO docs/USAGE
%doc docs/WARNING
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_prefix}/lib/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
sed -i Makefile -e 's:dbus-glib-1::' || die

%make \
	OPTIMIZE="%{optflags}" \
	CFLAGS="%{optflags}" \
	STRIP=0 \
	DEBUG=0 \
	USE_INOTIFY=1 \
	GTK3=1 \
	WITH_POLKIT=1 \
	WITH_DEVKIT=1 \
	WITH_ACL=1 \
	USE_LATEST=1 \
	PREFIX="%{_prefix}" \
	WITH_THUMBS=1 \
	WITH_TRACKER=1 \
	WITH_CUSTOMMOUSE=1 \
	WITH_HAL=0 \
	EDITOR_SPELLCHECK=0 \
	PREFIX="%{_prefix}"

%install
make install PREFIX=%{buildroot}%{_prefix}
make install_i18n PREFIX=%{buildroot}%{_prefix}

# remove unnecessary
rm -rf %{buildroot}/%{_docdir}/*

# icons
install -m 644 -D icons/emelfm2_48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m 644 -D icons/emelfm2_32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 644 -D icons/emelfm2_24.png %{buildroot}%{_iconsdir}/hicolor/24x24/apps/%{name}.png

# menu
perl -pi -e 's,Icon=emelfm2/emelfm2_48.png,Icon=%{name},g' %{buildroot}%{_datadir}/applications/*
desktop-file-install --vendor="" \
	--add-category="System" \
	--add-category="Utility" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1260 |21cr|emi-1.5.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	python_compile_opt python2 -O -c "import compileall; compileall.compile_dir('.')"
%define	python_compile python2 -c "import compileall; compileall.compile_dir('.')"

Summary:	Ecasound Mastering Interface
Name:		emi
Version:	1.5.1
Release:	12
License:	Python license
Group:		Sound
# All URLs dead: use the stored sources
Url:		http://emi.thevtek.com/
Source0:	EMi_%{version}.zip
Patch0:		emi-1.5.1-fix-python-syntax-errors.patch
BuildRequires:	imagemagick
BuildRequires:	python2
BuildRequires:	pkgconfig(python2)
BuildArch:	noarch
Requires:	pyecasound
Requires:	tkinter

%description
EMI is a python2 front-end to ecasound: it's a virtual rackmount effect that
can be use to record and mix audio.  You will be able to export to *.ecs as
well. This nice light interface give you full control over ecasound effect
parameters in real time. EMI Interface use real ecasound parameters name so
you can use ecasound documentation to catch the basic's.

%files
%doc doc
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -qn EMI
%patch0 -p1

perl -p -i -e 's|/usr/local/bin/python|/usr/bin/python2||g' *.py
perl -p -i -e 's|/usr/python|/usr/bin/python2||g' *.py


%build
# Nothing to do


%install
# No automated install: do it manually
# 1. Create the needed dirs
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}/%{_iconsdir}
mkdir -p %{buildroot}/%{_liconsdir}
mkdir -p %{buildroot}/%{_miconsdir}

# 2. Install the program files
chmod 755 *.py
%python_compile_opt
%python_compile
cp *.py* %{buildroot}/%{_datadir}/%{name}

# 3. Provide a little bash script to run the program
echo '#!/bin/bash' > %{buildroot}/%{_bindir}/%{name}
echo 'cd /usr/share/emi' >> %{buildroot}/%{_bindir}/%{name}
echo 'python2 EMI.py $@' >> %{buildroot}/%{_bindir}/%{name}
chmod 755 %{buildroot}/%{_bindir}/%{name}

# 4. Provide a .desktop file for menu
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Ecasound Mastering Interface
Exec=%{name} -c
Icon=%{name}
Terminal=false
Type=Application
Categories=AudioVideo;Audio;AudioVideoEditing;
EOF

# 5. Provide the needed icons
convert -size 32x32 %{name}.png %{buildroot}/%{_iconsdir}/%{name}.png
convert -size 48x48 %{name}.png %{buildroot}/%{_liconsdir}/%{name}.png
convert -size 16x16 %{name}.png %{buildroot}/%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1261 |21cr|empathy-3.25.90-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	A IM client based on Telepathy framework
Name:		empathy
Version:	3.25.90
Release:	20
License:	LGPLv2+
Group:		Networking/Instant messaging
Url:		https://download.gnome.org/sources/empathy
Source0:	https://download.gnome.org/sources/empathy/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	empathy-3.25.90_ru.tar.gz
Patch0:		empathy-3.25.90-soup3.patch
BuildRequires:	glib2.0-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	iso-codes
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(champlain-gtk-0.12)
BuildRequires:	pkgconfig(cheese-gtk)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(clutter-gst-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(evolution-data-server-1.2)
BuildRequires:	pkgconfig(farstream-0.2)
BuildRequires:	pkgconfig(folks)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-keybindings)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libcanberra-gtk)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mission-control-plugins)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(telepathy-farstream)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(telepathy-logger-0.2)
BuildRequires:	pkgconfig(webkit2gtk-4.1)
BuildRequires:	pkgconfig(x11)
Requires:	folks
Requires:	gsettings-desktop-schemas
Requires:	iso-codes
Requires:	telepathy-logger
Requires:	telepathy-mission-control
Recommends:	nautilus-sendto
Recommends:	telepathy-haze
Recommends:	telepathy-salut
Recommends:	telepathy-idle

%description
Empathy consists of a rich set of reusable instant messaging widgets, as
well as a GNOME client that uses those widgets.

Empathy uses Telepathy and Nokia's Mission Control, and reuses Gossip's
UI. Its main goal is to integrate instant messaging with the desktop by
providing libempathy and libempathy-gtk libraries, a set of widgets that
can be embeded into any GNOME application.

%files -f %{name}.lang
%doc README ChangeLog AUTHORS
%{_appdatadir}/empathy.appdata.xml
%{_bindir}/empathy
%{_bindir}/empathy-accounts
%{_bindir}/empathy-debugger
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*
%{_datadir}/adium/message-styles/*
%{_datadir}/dbus-1/services/*
%{_datadir}/GConf/gsettings/empathy.convert
%{_datadir}/glib-2.0/schemas/org.gnome.Empathy.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.telepathy-account-widgets.gschema.xml
%{_datadir}/telepathy/clients/Empathy.Auth.client
%{_datadir}/telepathy/clients/Empathy.Call.client
%{_datadir}/telepathy/clients/Empathy.Chat.client
%{_datadir}/telepathy/clients/Empathy.FileTransfer.client
%{_iconsdir}/hicolor/*/apps/empathy.*
%{_iconsdir}/hicolor/scalable/apps/empathy-symbolic.svg
%{_libdir}/mission-control-plugins.0/mcp-account-manager-goa.so
%{_libdir}/%{name}/*.so
%{_libexecdir}/empathy-auth-client
%{_libexecdir}/empathy-call
%{_mandir}/man1/empathy.1*
%{_mandir}/man1/empathy-accounts.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
CFLAGS="%{optflags} -Wno-implicit-function-declaration -Wno-int-conversion"
%configure --disable-static
sed -i "s/ -Llib\(64\|\) / /" */Makefile */*/Makefile
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1262 |21cr|emprint-20130520-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20130110

Summary:	Enlightenment screen capture utility
Name:		emprint
Version:	20130520
Release:	2
License:	BSD
Group:		Graphical desktop/Enlightenment
Url:		http://www.enlightenment.org/
# git://git.enlightenment.org/apps/emprint.git
Source0:	%{name}-%{git}.tar.bz2
BuildRequires:	pkgconfig(ecore)
BuildRequires:	pkgconfig(eina)
BuildRequires:	pkgconfig(evas)

%description
Emprint is a utility for taking screenshots of the entire screen, a specific
window, or a specific region. It is written with the Enlightenment Foundation
Libraries.

%files
%doc AUTHORS README ChangeLog NEWS TODO
%{_bindir}/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{git}

%build
NOCONFIGURE=1 ./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1263 |21cr|empy-3.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	System for embedding Python expressions and statements in template text
Name:		empy
Version:	3.3
Release:	10
License:	GPL
Group:		Text tools
Url:		http://www.alcyone.com/pyos/empy/
Source0:	%{name}-%{version}.tar.bz2
BuildArch:	noarch

%description
System for embedding Python expressions and statements in template
text.

%files
%defattr(-,root,root,755)
%doc README *.em
%{_bindir}/em.py

#----------------------------------------------------------------------------

%prep
%setup -q
perl -p -i -e 's/usr\/local\/bin\/python/usr\/bin\/python2/g' em.py

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 em.py %{buildroot}%{_bindir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1264 |21cr|emulationstation-2.11.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname EmulationStation

Summary:	A cross-platform graphical front-end for emulators
Name:		emulationstation
Version:	2.11.0
Release:	2
License:	MIT
Group:		Emulators
Url:		http://www.emulationstation.org
Source0:	https://github.com/RetroPie/EmulationStation/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source1:	es_icon.png
# The ones provided by Github lack the pugixml submodule sources.
# https://github.com/RetroPie/EmulationStation/tree/master/external
# git clone -b stable --recursive https://github.com/RetroPie/EmulationStation.git
# cd EmulationStation
# tar -zcf ../pugixml-d2deb42.tar.gz external/pugixml
Source2:	pugixml-d2deb42.tar.gz
# Sample config file
Source3:	es_systems.cfg
Source4:	themes.tar.gz
# Otherwise the program searches for its resources where we cannot
# have it (user's $Home, %%{_bindir} and %%{_var}) and then crashes.
Patch0:		emulationstation-2.10.2-use-datadir-for-resources.patch
Patch1:		emulationstation-2.9.4-make-exePath-reliable-on-linux.patch
Patch2:		emulationstation-2.9.6-fix-MAX_PATH-error.patch
BuildRequires:	cmake >= 2.8
BuildRequires:	eigen3
BuildRequires:	gcc-c++ >= 4.7.0
BuildRequires:	boost-devel
BuildRequires:	freeimage-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcec)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(RapidJSON)
BuildRequires:	pkgconfig(sdl2)
Requires:	fonts-ttf-droid

%description
A graphical and themeable front-end for emulators with controller navigation:
it allows you to access all your favorite games in one place, even without a
keyboard!
WARNING: Before running this program you will have customize the provided
sample system config file, according to the SYSTEMS.md instructions. If you
forget to do this, the program will not run at all or will crash.

%files
%doc GAMELISTS.md README.md SYSTEMS.md THEMES.md
%license LICENSE.md
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/gamelists/
%dir %{_sysconfdir}/%{name}/themes/
%dir %{_sysconfdir}/%{name}/themes/simple/
%config(noreplace) %{_sysconfdir}/%{name}/themes/simple/*
%config(noreplace) %{_sysconfdir}/%{name}/es_systems.cfg
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/pixmaps/es_icon.png
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version} -a2 -a4
%apply_patches

# Fix perms
chmod 0755 resources/help

%build
%cmake \
	-DCEC="ON"	\
	-DGL="ON"
%make

%install
%makeinstall_std -C build

# The program need its resource files, but they don't get automatically
# installed: put them in %%{_datadir} and use them (see P0)
mkdir -p %{buildroot}%{_datadir}/%{name}/resources
cp -r resources/* %{buildroot}%{_datadir}/%{name}/resources/

# Install our stuff: icon and sample config file
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/gamelists
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/es_icon.png
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/es_systems.cfg

# Install themes
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/themes/simple
cp -R ./themes %{buildroot}%{_sysconfdir}/%{name}/

# Provide a .desktop file
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=%{oname}
GenericName=%{oname}
Comment= A cross-platform graphical front-end for emulators
Comment[it]= Un front-end grafico per emulatori multi-piattaforma
Exec=%{name}
Icon=es_icon
StartupNotify=true
Terminal=false
Type=Application
Categories=Game;Simulation;
EOF

# The sources want to build and install the pugixml library, but we
# don't want it because we already have the system pugixml
# FIXME: Teach cmake to look for a system pugixml library and use it
rm -rf %{buildroot}%{_libdir}
rm -rf %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1265 |21cr|endless-sky-0.10.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	hidpi %{name}-high-dpi

Summary:	A space exploration and combat game similar to Escape Velocity
Name:		endless-sky
Version:	0.10.6
Release:	1
License:	GPLv3+
Group:		Games/Simulation
Url:		https://endless-sky.github.io
Source0:	https://github.com/endless-sky/endless-sky/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	https://github.com/endless-sky/endless-sky-high-dpi/archive/v%{version}/%{hidpi}-%{version}.tar.gz
BuildRequires:	scons
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(uuid)
Requires:	%{name}-data = %{EVRD}
Suggests:	%{name}-high-dpi = %{EVRD}

%description
Endless Sky is a sandbox-style space exploration game similar to Elite, Escape
Velocity, or Star Control. You start out as the captain of a tiny space ship
and can choose what to do from there. The game includes a major plot line and
many minor missions, but you can choose whether you want to play through the
plot or strike out on your own as a merchant or bounty hunter or explorer.
Note: For users of high-DPI monitors, there is an optional %{hidpi}
package that contains high-resolution graphics for this game.

%files
%doc changelog README.md
%{_gamesbindir}/%{name}
%{_datadir}/metainfo/*.appdata.xml
%{_datadir}/applications/io.github.endless_sky.endless_sky.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------

%package data
Summary:	Data files for the Endless Sky game
License:	GPLv3+
BuildArch:	noarch

%description data
This package contains arch-independent data files for the Endless Sky game
(sounds, graphics, game scripts and texts).

%files data
%doc license.txt
%{_gamesdatadir}/%{name}/
%exclude %{_gamesdatadir}/%{name}/plugins/%{hidpi}

#----------------------------------------------------------------------

%package high-dpi
Summary:	High-DPI graphics for Endless Sky
License:	CC-BY-SA
BuildArch:	noarch

%description high-dpi
This is a collection of double-resolution sprites for Endless Sky. Installing
this package is fully optional. These sprites will only be used if:
- you have set the "zoom factor" to higher than 100%% in the preferences, or
- you have a high-DPI monitor.

%files high-dpi
%doc copyright
%{_gamesdatadir}/%{name}/plugins/%{hidpi}

#----------------------------------------------------------------------

%prep
%autosetup -p1 -a1
cp -r %{hidpi}-%{version}/copyright .

%build
# There is no separation between build and install phases:
# running here means that the compiling gets repeated two times...
#scons

%install
%setup_compile_flags
export CCFLAGS="%{optflags}"
%scons_install \
	PREFIX=%{_prefix} \
	mode=debug

install -d %{buildroot}%{_gamesdatadir}/%{name}/plugins
mv %{hidpi}-%{version} %{buildroot}%{_gamesdatadir}/%{name}/plugins/%{hidpi}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1266 |21cr|enemylines4-1.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple futuristic racing game
Name:		enemylines4
Version:	1.0
Release:	15
License:	GPLv2+
Group:		Games/Arcade
Url:		http://proj.phk.at/el/4/
Source0:	http://proj.phk.at/el/4/%{name}-%{version}.tar.bz2
Source10:	%{name}.png
# include assert.h in track.cc to fix build failure - AdamW 2008/02
Patch0:		enemylines4-assert.patch
Patch1:		enemylines4-1.0-mdv-fix-gcc-4.3.patch
Patch2:		enemylines4-1.0-optflags.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)

%description
A simple futuristic racing game. Urgent deliveries - Reach goal before
time runs out. Times aren't what they used to be though.
Road conditions are horrible and traffic safety and control systems
have been offline for months.

%files
%doc README
%{_datadir}/%{name}
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .assert~
%patch1 -p1 -b .gcc43~
%patch2 -p1 -b .optflags

%build
%make OPT_FLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_datadir}/%{name}/
cp ./data/* %{buildroot}%{_datadir}/%{name}/
install -m755 %{name} -D %{buildroot}%{_gamesbindir}/%{name}

mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m644 %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32x32 %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16x16 %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Game;ArcadeGame;
Name=Enemy Lines 4
Comment=A simple futuristic racing game
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1267 |21cr|enet-1.3.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple and robust network communication layer on top of UDP
Name:		enet
Version:	1.3.17
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://enet.bespin.org
Source0:	http://enet.bespin.org/download/%{name}-%{version}.tar.gz

%description
ENet's purpose is to provide a relatively thin, simple and robust
network communication layer on top of UDP (User Datagram Protocol). The
primary feature it provides is optional reliable, in-order delivery of
packets.

ENet omits certain higher level networking features such as
authentication, lobbying, server discovery, encryption, or other similar
tasks that are particularly application specific so that the library
remains flexible, portable, and easily embeddable.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
ENet's purpose is to provide a relatively thin, simple and robust
network communication layer on top of UDP (User Datagram Protocol). The
primary feature it provides is optional reliable, in-order delivery of
packets.

ENet omits certain higher level networking features such as
authentication, lobbying, server discovery, encryption, or other similar
tasks that are particularly application specific so that the library
remains flexible, portable, and easily embeddable.

This package provides the libraries for %{name}.

%files -n %{libname}
%doc LICENSE README ChangeLog
%{_libdir}/libenet.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libenet.so
%{_libdir}/pkgconfig/libenet.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1268 |21cr|engauge-digitizer-7.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert graphs or map files into numbers
Name:		engauge-digitizer
Version:	7.0
Release:	5
License:	GPLv2+
Group:		Sciences/Other
Url:		https://github.com/markummitchell/engauge-digitizer
Source0:	https://github.com/markummitchell/engauge-digitizer/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}.appdata.xml
Source2:	%{name}.svg
Source3:	%{name}-with-name.svg
Patch0:		%{name}-7.0-fix_test_script.patch
### Main building
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-assistant
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(log4cpp)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
### Doxygen for documentation
BuildRequires:	doxygen
### Xvfb is needed to run a virtual X server used by tests
BuildRequires:	x11-server-xvfb
BuildRequires:	pkgconfig(Qt5Test)

%description
Engauge 7 is rewritten with Qt5.
This digitizing software converts an image file showing a graph or map, into
numbers.
The image file can come from a scanner, digital camera or screen-shot.
The numbers can be read on the screen, and written or copied to a spreadsheet.
The process starts with an image file containing a graph or map.
The final result is digitized data that can be used by other tools such as
Gnumeric.

New features already added to Engauge:

* Older Engauge files (before version 6) can be loaded
* Undo/redo of all operations means recovering from mistakes and experimenting
  with options is painless
* Wizard provides an interactive tutorial to explain the basic steps
* Wizard creates a checklist guide to interactively leads user through steps
  from file import to file export
* Cubic spline interpolation between points gives more accurate curves with
  fewer points
* Axes Checker briefly highlights the axes when they are defined or modified,
  to reveal entry mistakes
* Graph coordinates can be specified as date and time value, or as degrees,
  minutes and seconds
* All settings dialogs are resizable so they can be enlarged as necessary to
  display more information
* Import by drag-and-drop
* Replacement of Qt3 (which is at its end of life) by Qt5
* Much better zooming, with a fill mode that automatically zooms in on image
  features, and rezooms when the application window is resized
* Color picking straight from the original image
* Uploadable error report generated when a programming error is encountered,
  for identifying problems and improving user support
* Test suite for regression testing minimizes code breakage
  as new features are added
* Multiple coordinate systems in the same image can be digitized in advanced
  mode
* Axes with only one known coordinate (floating axes) can be digitized in
  advanced mode
* File import by pasting

%files
%doc README.md help/
%doc bin/documentation/engauge.qhc bin/documentation/engauge.qch LICENSE
%{_bindir}/engauge
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/scalable/apps/%{name}*.svg
%exclude %{_datadir}/%{name}/samples

#----------------------------------------------------------------------------

%package samples
Summary:	Sample files for %{name}
Group:		Documentation
BuildArch:	noarch

%description samples
This package contains several sample image files that may be imported into
Engauge Digitizer (http://digitizer.sourceforge.net).

These files are listed below, with comments:

* corners.png - Graph that lots of corners that would be painful
  to digitize manually
* gridlines.gif - Graph with gridlines that are easily removed by Engauge
* gridlines_log.gif - Another graph with gridlines that are easily
  removed by Engauge
* gridlines_log.src - Creates gridlines_log.gif in gnuplot using 'load'
  command (not an image!)
* inverse.jpg - Image of y/x function
* inverse.png - Same as inverse.jpg but in png format
* linlog.jpg - Graph with linear/logarithmic coordinates
* linlog.png - Same as linlog.jpg but in png format
* loglin.png - Graph with logarithmic/linear coordinates
* loglog.png - Graph with logarithmic/logarithmic coordinates
* normdist.jpg - Graph of normal distribution
* normdist.png - Same as normdist.jpg but in png format
* pointmatch.jpg - Graph with fuzzy points for playing with Point Match
  feature of Engauge
* pointplot.bmp - Graph with points that are easily captured by Point Match
  feature of Engauge, if the Discretize settings are set to "Intensity 90
  to 99" for the triangles, and "Intensity 10 to 50" for the diamonds
* polarcircles.jpg - Polar plot for experimenting. No coordinates are
  displayed, so not very useful
* polarplot.jpg - Polar plot with cardioid pattern
* polarplot.png - Same as polarplot.jpg but in png format
* testcase.jpg - Simple graph that serves as an excellent starting point
  for the new user
* testcase.png - Same as testcase.jpg but in png format
* testcoords.jpg - Advanced graph used by developers to check the affine
  transformations in Engauge
* testcoords.sxd - Open Office document used to create testcoords.jpg
  (not an image!)
* usgs.png - Fictional map loosely based on U.S. Geological Survey
  topographic maps

%files samples
%doc samples/README LICENSE
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/samples

#----------------------------------------------------------------------------

%package doc
Summary:	HTML documentation of %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
HTML documentation of %{name}.

%files doc
%doc README.md doc/doxygen/html LICENSE

#----------------------------------------------------------------------------

%prep
%setup -q
### optimization flags for compilers
%patch0 -p1
sed -e 's|RPM_OPT_FLAGS|"%{optflags}"|g' -i src/build_and_run_all_cli_tests

### Remove default -O1 optimization
sed -e 's|-O1||g' -i engauge.pro

### Active support to jpeg2000
sed -e 's|CONFIG      = qt warn_on thread debug|CONFIG = qt warn_on thread jpeg2000 debug|g' -i engauge.pro
sed -e 's|INCLUDEPATH += Jpeg2000|INCLUDEPATH += src/Jpeg2000|g' -i engauge.pro

### Remove spurious executable permissions
for i in `find src -type f \( -name "*.cpp" -o -name "*.h" \)`; do
chmod a-x $i
done

%build
%global optflags %{optflags} -std=gnu++11
export JPEG2000_INCLUDE=%{_includedir}/openjpeg-2.1
export JPEG2000_LIB=%{_libdir}
export ENGAUGE_RELEASE=1

### Build engauge
%qmake_qt5 engauge.pro DEFINES+=HELPDIR=%{_docdir}/%{name}/help
%make

### Build HELP files
pushd help
%{_qt5_bindir}/qcollectiongenerator engauge.qhcp -o engauge.qhc
mv engauge.qch ../bin/documentation
mv engauge.qhc ../bin/documentation
rm -f build
popd

### Build HTML/Latex documentation files
pushd src
doxygen
popd

%install
### Install binary
mkdir -p %{buildroot}%{_bindir}
install -p -m 755 bin/engauge %{buildroot}%{_bindir}

### Install sample files
mkdir -p %{buildroot}%{_datadir}/%{name}/samples
pushd samples
install -p -m 644 *.gif *.jp* *.png *.bmp %{buildroot}%{_datadir}/%{name}/samples
popd

### Install img files
mkdir -p %{buildroot}%{_datadir}/%{name}/img
install -p -m 644 src/img/* %{buildroot}%{_datadir}/%{name}/img

### Install appdata file
mkdir -p %{buildroot}%{_datadir}/appdata
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata

### Install icons svg
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
install -p -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/scalable/apps
install -p -m 644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/scalable/apps

### Install .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Engauge Digitizer
Type=Application
Comment=Extract data from graphs
Comment[fr]=Extraire des données à partir de graphiques
Comment[ru]=Извлечение данных из графов
TryExec=engauge
Exec=engauge
MimeType=text/plain;
Categories=Education;Science;DataVisualization;
Icon=%{name}-with-name
Keywords=analog;digital;converter;
EOF

%check
### Tests
pushd src
xvfb-run -s "-screen 0 640x480x24" -a  sh -x ./build_and_run_all_cli_tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1269 |21cr|engrampa-1.26.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname mate-file-archiver

Summary:	An archive manager for MATE Desktop
Name:		engrampa
Version:	1.26.1
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	chrpath
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	xsltproc
BuildRequires:	which
BuildRequires:	xml2po
BuildRequires:	yelp-tools
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libcaja-extension)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(sm)
# for the gsettings schema
Recommends:	caja-schemas
Recommends:	cdrtools

%rename %{oname}

%description
Engrampa is an archive manager for the GNOME environment.  This means that 
you can : create and modify archives; view the content of an archive; view a 
file contained in the archive; extract files from the archive.
Engrampa is only a front-end (a graphical interface) to archiving programs 
like tar and zip. The supported file types are :
	* Tar archives uncompressed (.tar) or compressed with
		* gzip (.tar.gz , .tgz)
		* bzip (.tar.bz , .tbz)
		* bzip2 (.tar.bz2 , .tbz2)
		* compress (.tar.Z , .taz)
		* lzop (.tar.lzo , .tzo)
		* lzma (.tar.lzma , .tlz)
	* Zip archives (.zip)
	* Jar archives (.jar , .ear , .war)
	* Lha archives (.lzh)
	* Rar archives (.rar)
	* Single files compressed with gzip, bzip, bzip2, compress, lzop, lzma
	* ISO images

%files -f %{name}.lang
%license COPYING
%doc README NEWS AUTHORS
%{_bindir}/%{name}
%{_libexecdir}/%{name}*
%{_datadir}/%{name}
%{_metainfodir}/engrampa.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/caja/extensions/libcaja-engrampa.caja-extension
%{_datadir}/glib-2.0/schemas/org.mate.engrampa.gschema.xml
%{_datadir}/dbus-1/services/org.mate.Engrampa.service
%{_iconsdir}/hicolor/*/apps/{*.png,*.svg}
%{_iconsdir}/hicolor/*/actions//{*.png,*.svg}
%{_libdir}/caja/extensions-2.0/libcaja-%{name}.so
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--enable-magic \
	--enable-packagekit \
	--enable-caja-actions

%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome --all-name

#gw rpmlint errors
chrpath -d %{buildroot}%{_bindir}/%{name}
chrpath -d %{buildroot}%{_libdir}/caja/*/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1270 |21cr|enigma-1.21-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Puzzle game similar to Oxyd
Name:		enigma
Version:	1.21
Release:	5
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.nongnu.org/enigma/
Source0:	http://downloads.sf.net/%{name}-game/%{name}-%{version}.tar.gz
Patch0:		enigma-1.21-desktop.patch
Patch1:		enigma-1.21-gcc6.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libenet)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	zipios++-devel
BuildRequires:	pkgconfig(x11)

%description
Enigma is a tribute to and a re-implementation of one of the most
original and intriguing computer games of the 1990's: Oxyd.  Your
objective is easily explained: find and uncover all pairs of identical
Oxyd stones in each landscape.  Sounds simple?  It would be, if it
weren't for hidden traps, vast mazes, insurmountable obstacles and
innumerable puzzles blocking your direct way to the Oxyd stones...

%files -f %{name}.lang
%{_bindir}/*
%{_datadir}/enigma
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/*
%{_datadir}/icons/hicolor/48x48/apps/*
%{_datadir}/pixmaps/*
%{_datadir}/appdata/*
#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}/%{_docdir}/%{name}

rm -rf %{buildroot}%{_includedir} %{buildroot}%{_libdir}/*.a

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="PuzzleGame" \
  --add-category="ArcadeGame;LogicGame" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1271 |21cr|enso-xfwm4-theme-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname enso

Summary:	Enso Themes for XFWM4
Name:		enso-xfwm4-theme
Version:	1.1
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		https://www.xfce-look.org/p/1242825/
Source0:	%{oname}-%{version}.tar.gz
BuildArch:	noarch

%description
Enso Themes for XFWM4

%files
%{_datadir}/themes/Enso
%{_datadir}/themes/Enso-Unlocked

%prep
%setup -qn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/themes/Enso/xfwm4
mkdir -p %{buildroot}%{_datadir}/themes/Enso-Unlocked/xfwm4
cp Enso-0.3-Xfwm/xfwm4/* %{buildroot}%{_datadir}/themes/Enso/xfwm4/
cp Enso-0.3-Xfwm-Unlocked/xfwm4/* %{buildroot}%{_datadir}/themes/Enso-Unlocked/xfwm4/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1272 |21cr|entagged-audioformats-java-0.15-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname entagged-audioformats
Name:		%{shortname}-java
Version:	0.15
Release:	9
License:	LGPLv2+
URL:		http://entagged.sourceforge.net/
Source:		entagged-audioformats-source-%{version}.tar.gz
Group:		Development/Java
Summary:	Library to access and modify tags in audio files
Requires:	java
BuildRequires:	java-devel ant
BuildArch:	noarch
%description
Java library to access and modify tags in audio files.

%prep
%setup -q -n entagged

%build
cd audioformats
%{_bindir}/ant

%install
rm -Rf %{buildroot}
cd audioformats
%{__mkdir_p} %{buildroot}%{_javadir}
ln -s %{shortname}-%{version}.jar %{shortname}.jar
cp -p %{shortname}-%{version}.jar %{shortname}.jar %{buildroot}%{_javadir}

%files
%{_javadir}/%{shortname}-%{version}.jar
%{_javadir}/%{shortname}.jar

%package -n %{shortname}-javadoc
Group:		Development/Java
Summary:	Javadoc for %{shortname}
%description -n %{shortname}-javadoc
javadoc for %{shortname}

%files -n %{shortname}-javadoc
%doc audioformats/javadoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1273 |21cr|entangle-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gmajor	0.1
%define	girname	%mklibname %{name}-gir %{gmajor}

%define	major	0
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

Summary:	Tethered Camera Control & Capture
Name:		entangle
Version:	3.0
Release:	1
License:	GPLv3+
Group:		Video
Url:		https://entangle-photo.org
Source0:	https://entangle-photo.org/download/sources/%{name}-%{version}.tar.xz
Patch0:		entangle-3.0-fix-build-with-meson-greater-than-0.60.0.patch
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson >= 0.49.0
BuildRequires:	ninja
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(adwaita-icon-theme)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0) >= 2.12.0
BuildRequires:	pkgconfig(gexiv2) >= 0.10
BuildRequires:	pkgconfig(glib-2.0) >= 2.38.0
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 1.54.0
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.22
BuildRequires:	pkgconfig(gudev-1.0) >= 145
BuildRequires:	pkgconfig(lcms2) >= 2.0
BuildRequires:	pkgconfig(libgphoto2) >= 2.5.0
BuildRequires:	pkgconfig(libpeas-1.0) >= 1.2.0
BuildRequires:	pkgconfig(libraw_r)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	%{girname} = %{EVRD}
Requires:	adwaita-icon-theme

%description
Entangle provides a graphical interface for "tethered shooting", aka taking
photographs with a digital camera completely controlled from the computer.
It is built on top of libgphoto using GTK3 for its interface. It is fully
color managed, auto-detecting system monitor profile and applying the
necessary transforms when displaying images.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README.rst
%{_datadir}/gtk-doc/html/%{name}
%{_bindir}/%{name}
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/plugins/
%{_libdir}/%{name}/plugins/eclipse/
%{_libdir}/%{name}/plugins/photobox/
%{_libdir}/%{name}/plugins/shooter/
%{_datadir}/%{name}/
%dir %{_datadir}/help/C/%{name}
%dir %{_datadir}/help/C/%{name}/figures
%{_datadir}/help/C/%{name}/*.page
%{_datadir}/help/C/%{name}/*.xml
%{_datadir}/help/C/%{name}/figures/*.png
%{_datadir}/glib-2.0/schemas/org.%{name}-photo.manager.gschema.xml
%{_datadir}/applications/org.%{name}_photo.Manager.desktop
%{_datadir}/metainfo/org.%{name}_photo.Manager.metainfo.xml
%{_iconsdir}/hicolor/*x*/apps/org.%{name}_photo.Manager.png
%{_iconsdir}/hicolor/*x*/apps/%{name}-*.png
%{_iconsdir}/hicolor/scalable/apps/org.%{name}_photo.Manager.svg
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared libraries for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}_backend.so.%{major}*
%{_libdir}/lib%{name}_frontend.so.%{major}*

#-----------------------------------------------------------------------------

%if 0
# For now we are dropping .gir and .so files => no devel package
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other

%description -n %{devname}
This package contains the development files for %{name}.
#doc COPYING
#{_datadir}/gir-1.0/Entangle-0.1.gir
#{_libdir}/lib%%{name}_*end.so
%endif

#-----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Entangle-%{gmajor}.typelib

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%meson -Denable-gtk-doc=true
%meson_build


%install
%meson_install

# Drop .gir and .so
rm -rf %{buildroot}%{_datadir}/gir-1.0/
rm -rf %{buildroot}%{_libdir}/*.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1274 |21cr|envycontrol-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	envycontrol


Name:		%{module}
Version:	3.2.0
Release:	1
Summary:	CLI tool that provides an easy way to switch between GPU modes on Nvidia Optimus
License:	MIT
Group:		Development/Python
Url:        https://github.com/bayasdev/envycontrol
Source0:    https://github.com/bayasdev/envycontrol/archive/refs/tags/v%{version}.tar.gz
BuildArch:  noarch
Requires:   python3-%{module} = %{EVRD}

%description
EnvyControl is a CLI tool that provides an easy way to switch between GPU modes on Nvidia Optimus systems
(i.e laptops with hybrid Intel + Nvidia or AMD + Nvidia graphics configurations) under Linux.

%package -n python3-%{module}
Summary:	CLI tool that provides an easy way to switch between GPU modes on Nvidia Optimus
Group:		Development/Python
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
EnvyControl is a CLI tool that provides an easy way to switch between GPU modes on Nvidia Optimus systems
(i.e laptops with hybrid Intel + Nvidia or AMD + Nvidia graphics configurations) under Linux.

%files
%{_bindir}/%{module}

%files -n python3-%{module}
%{python3_sitelib}/%{module}.py
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{module}-%{version}-py%{python3_version}.egg-info

#=======================================================================

%prep
%autosetup -p1 -n %{module}-%{version}
%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1275 |21cr|eog-plugins-42.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Plugins for the Eye of GNOME image viewer
Name:		eog-plugins
Version:	42.2
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/eog-plugins
Source0:	https://download.gnome.org/sources/eog-plugins/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	mt-st
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(eog)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libical-glib)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(python3)
Requires:	eog

%description
This is the Eye of Gnome, an image viewer program. It is meant
to be a fast and functional image viewer as well as an image
cataloging program. It does proper handling of large images and
images with full opacity information, and can zoom and scroll
images quickly while keeping  memory usage constant.

This package contains additional plugins for EOG:
- Map
- Exif display
- Zoom to fit image width
- Flickr Uploader
- PicasaWeb Uploader
- Python Console
- Send By Mail
- Slideshow Shuffle

%files -f %{name}.lang
%doc AUTHORS NEWS README
%license COPYING
%{_appdatadir}/eog-exif-display.appdata.xml
%{_appdatadir}/eog-export-to-folder.appdata.xml
%{_appdatadir}/eog-fit-to-width.appdata.xml
%{_appdatadir}/eog-fullscreenbg.appdata.xml
%{_appdatadir}/eog-light-theme.appdata.xml
%{_appdatadir}/eog-map.appdata.xml
%{_appdatadir}/eog-maximize-windows.appdata.xml
%{_appdatadir}/eog-postasa.appdata.xml
%{_appdatadir}/eog-pythonconsole.appdata.xml
%{_appdatadir}/eog-send-by-mail.appdata.xml
%{_appdatadir}/eog-slideshowshuffle.appdata.xml
%{_datadir}/eog/plugins/export-to-folder/
%{_datadir}/eog/plugins/fullscreenbg/
%{_datadir}/eog/plugins/pythonconsole/
%{_datadir}/glib-2.0/schemas/*.xml
%{_libdir}/eog/plugins/exif-display.plugin
%{_libdir}/eog/plugins/export-to-folder.plugin
%{_libdir}/eog/plugins/export-to-folder.py
%{_libdir}/eog/plugins/fit-to-width.plugin
%{_libdir}/eog/plugins/fullscreenbg.plugin
%{_libdir}/eog/plugins/fullscreenbg.py
%{_libdir}/eog/plugins/libexif-display.so
%{_libdir}/eog/plugins/libfit-to-width.so
%{_libdir}/eog/plugins/liblight-theme.so
%{_libdir}/eog/plugins/libmap.so
%{_libdir}/eog/plugins/libpostasa.so
%{_libdir}/eog/plugins/libsend-by-mail.so
%{_libdir}/eog/plugins/light-theme.plugin
%{_libdir}/eog/plugins/map.plugin
%{_libdir}/eog/plugins/maximize-windows.plugin
%{_libdir}/eog/plugins/maximize-windows.py
%{_libdir}/eog/plugins/postasa.plugin
%{_libdir}/eog/plugins/__pycache__/
%{_libdir}/eog/plugins/pythonconsole/
%{_libdir}/eog/plugins/pythonconsole.plugin
%{_libdir}/eog/plugins/send-by-mail.plugin
%{_libdir}/eog/plugins/slideshowshuffle.plugin
%{_libdir}/eog/plugins/slideshowshuffle.py

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1276 |21cr|eom-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gi_major 1.0
%define girname %mklibname eom %{gi_major}

%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname mate-image-viewer

%define _disable_rebuild_configure 1

Summary:	Eye of MATE image viewer
Name:		eom
Version:	1.26.0
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		eom_fix-glibcompile-f23.patch
Patch1:		eom-1.12.0-mimetypes.patch
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	which
BuildRequires:	xml2po
BuildRequires:	yelp-tools
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
Recommends:	mate-desktop
Recommends:	mate-icon-theme
Requires:	gsettings-desktop-schemas

%rename %{oname}

%description
This is the Eye of MATE, an image viewer program.  It is meant to be
a fast and functional image viewer.

Eye of MATE is a fork of Eye of GNOME.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_bindir}/eom
%{_mandir}/man1/eom.*
%{_libdir}/eom/plugins
%{_datadir}/applications/eom.desktop
%{_datadir}/eom
%{_metainfodir}/eom.appdata.xml
%{_datadir}/gtk-doc/html/eom/*
%{_datadir}/icons/hicolor/*/apps/eom.*
%{_datadir}/glib-2.0/schemas/*

%post
touch --no-create %{_datadir}/mate-image-viewer/icons/hicolor >&/dev/null || :

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc AUTHORS COPYING NEWS README
%{_datadir}/gir-1.0/Eom-%{gi_major}.gir

#----------------------------------------------------------------------------

%package devel
Summary:	C headers needed to build EOM plugins
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description devel
The Eye of MATE image viewer (eom) is the official image viewer for the
MATE desktop. This package allows you to develop plugins that add new
functionality to eom.

%files devel
%doc AUTHORS COPYING NEWS README
%{_libdir}/pkgconfig/eom.pc
%{_libdir}/girepository-1.0/Eom-1.0.typelib
%{_includedir}/eom-2.20

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
export LDFLAGS="-L%{_libdir}/"
%configure \
	--disable-schemas-compile
%make

%install
%makeinstall_std

desktop-file-install \
	--delete-original \
	--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/eom.desktop

%find_lang eom --with-gnome --all-name


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1277 |21cr|epdfview-0.1.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple and lightweight PDF viewer
Name:		epdfview
Version:	0.1.8
Release:	9
License:	GPLv2+
Group:		Office
Url:		http://trac.emma-soft.com/epdfview/
Source0:	http://trac.emma-soft.com/epdfview/chrome/site/releases/%{name}-%{version}.tar.bz2
Patch1:		epdfview-0.1.8_glibh.patch
Patch2:		epdfview-0.1.6-format_not_a_string_literal_and_no_format_arguments.patch
Patch3:		epdfview-0.1.8-bgra_to_rgba.patch
Patch4:		epdfview-0.1.8-cups-1.6.patch
BuildRequires:	bison
BuildRequires:	cups-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(poppler-glib)
Requires:	poppler

%description
ePDFView is a free lightweight PDF document viewer using Poppler and GTK+
libraries.The aim of ePDFView is to make a simple PDF document viewer,
in the lines of Evince but without using the Gnome libraries.

%files -f %{name}.lang
%dir %{_datadir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/epdfview.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-rpath \
	--with-cups
%make

%install
%makeinstall_std

# (tpg) move icons to the right place
for i in 24 32 48;do
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
cp %{buildroot}%{_datadir}/%{name}/pixmaps/icon_epdfview-$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png;
done

sed -i -e 's/^Icon=icon_epdfview-48$/Icon=%{name}/g' %{buildroot}%{_datadir}/applications/*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1278 |21cr|ephoto-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Enlightenment photo manager
Name:		ephoto
Version:	1.6.0
Release:	1
License:	BSD
Group:		Graphics
Url:		http://www.enlightenment.org
Source0:	https://download.enlightenment.org/rel/apps/ephoto/ephoto-%{version}.tar.xz
Buildrequires:	meson
Buildrequires:	edje
Buildrequires:	elementary
Buildrequires:	evas
#Buildrequires:	subversion
Buildrequires:	gettext-devel
BuildRequires:	pkgconfig(edje)
Buildrequires:	pkgconfig(efreet)
Buildrequires:	pkgconfig(eio)
Buildrequires:	pkgconfig(elementary)
Buildrequires:	pkgconfig(ethumb)
BuildRequires:	pkgconfig(evas)
#Buildrequires:	pkgconfig(eweather)
Buildrequires:	pkgconfig(libexif)

%description
Ephoto is an ewl app that is used for sophisticate image viewing.
This package is part of the Enlightenment desktop shell.

%files -f %{name}.lang
%doc AUTHORS README* TODO
%license COPYING
%{_bindir}/*
%{_datadir}/icons/*.png
%{_datadir}/applications/ephoto.desktop
%{_datadir}/%{name}
%{_libdir}/ephoto/ephoto_thumbnail

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1279 |21cr|epic4-2.10.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define help_version 20050315

Summary:	(E)nhanced (P)rogrammable (I)RC-II (C)lient
Name:		epic4
Version:	2.10.10
Release:	1
License:	BSD
Group:		Networking/IRC
Url:		http://www.epicsol.org/
Source0:	http://ftp.epicsol.org/pub/epic/EPIC4-PRODUCTION/epic4-%{version}.tar.xz
Source1:	http://ftp.epicsol.org/pub/epic/EPIC4-PRODUCTION/epic4-help-%{help_version}.tar.gz
Source2:	epic.wmconfig
Source3:	ircII.servers
# Don't include term.h, it conflicts with termcap.h - AdamW 2008/12
Patch0:		epic4-2.10-include.patch
# patch from upstream
Patch1:		epic4-2.10.1-sighandling.patch
Patch2:		epic-default.patch
BuildRequires:	desktop-file-utils
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
Provides:	epic = %{EVRD}
Provides:	epic-help = %{help_version}

%description
EPIC is the (E)nhanced (P)rogrammable (I)RC-II (C)lient. It is a program
used to connect to IRC servers around the globe so that the user can chat
with others.

%files
%doc INSTALL UPDATES KNOWNBUGS BUG_FORM doc/*
%{_bindir}/*
%{_libexecdir}/wserv4
%dir %{_datadir}/epic
%config(noreplace) %{_datadir}/epic/ircII.servers
%{_datadir}/epic/script/
%{_datadir}/epic/help/
%{_mandir}/man1/*
%{_datadir}/applications/*-%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -T -b 0
%patch0 -p1 -b .include
rm -r `%{_bindir}/find -type d -name CVS`

%build
%configure \
	--with-ipv6 \
	--with-perl \
	--with-ssl \
	--without-socks \
	--without-socks5

%make wserv_exe="%{_libexecdir}"

%install
%makeinstall installhelp sharedir=%{buildroot}%{_datadir} libexecdir=%{buildroot}%{_libexecdir}
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/epic
chmod 755 %{buildroot}%{_datadir}/epic/script/epic-crypt-gpg{,-aa}

cat > %{name}.desktop << EOF
[Desktop Entry]
Name=Epic
Comment=EPIC is the (E)nhanced (P)rogrammable (I)RC-II (C)lient.
Exec=%{_bindir}/%{name}
Icon=irc_section
Terminal=false
Type=Application
Categories=Network;IRCClient;
EOF

mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --vendor="rosa" \
	--remove-category="Application" \
	--dir %{buildroot}%{_datadir}/applications %{name}.desktop

# Empty docs make rpmlint go crazy
find %{buildroot} -size 0 |xargs rm -f

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1280 |21cr|epic5-2.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	(E)nhanced (P)rogrammable (I)RC-II (C)lient
Name:		epic5
Version:	2.1.9
Release:	1
License:	BSD
Group:		Networking/IRC
Url:		http://www.epicsol.org/
Source0:	http://ftp.epicsol.org/pub/epic/EPIC5-PRODUCTION/%{name}-%{version}.tar.xz
Source1:	http://ftp.epicsol.org/pub/epic/help/epic-help-current.tar.gz
# Amnesiac 2.0.2 release updated on Jul 26 2010 @ 20:09
Source2:	http://amnesiac.ircii.org/amnesiac2.0.2cvs51.tgz
Source10:	%{name}.rpmlintrc
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	perl-devel
BuildRequires:	ruby-devel
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)

%description
EPIC is an irc client project. The EPIC software was forked from
ircII-2.8.2 in fall 1994. There have been 5 generations of EPIC.

EPIC's development model is to provide tools to scripters rather than
features to end users. Out of the box, EPIC behaves much the same way
ircII-2.8.2 did in 1994. To truly leverage EPIC, you will need a
script pack.

This package includes the Amnesia script pack, see http://amnesiac.ircii.org

%files
%defattr(0644,root,root,0755)
%doc BUG_FORM COPYRIGHT FILES INSTALL KNOWNBUGS README README-CRYPTO UPDATES VOTES doc/* regress
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}-*
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -T -b 0
find . -type d -name CVS | xargs -t rm -r
perl -pi -e 's|/usr/local/bin/perl5|perl|' regress/crash-irc

%build
autoreconf -fi
%configure \
	--with-ipv6 \
	--with-perl \
	--with-ruby \
	--with-ssl \
	--without-socks

make wserv_exe=%{_bindir}/wserv4

%install
%makeinstall \
	libexecdir=%{buildroot}%{_bindir} \
	sharedir=%{buildroot}%{_datadir}

chmod 755 %{buildroot}%{_datadir}/%{name}/script/epic-crypt-gpg{,-aa}

tar -xf %{SOURCE2} -C %{buildroot}%{_datadir}/%{name}/script
chmod 644 %{buildroot}%{_datadir}/%{name}/script/amn/themes/ansiless.th

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1281 |21cr|epoptes-22.01-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           epoptes
Version:        22.01
Release:        3
License:        GPL-2.0+
Summary:        Computer lab management tool
URL:            http://www.epoptes.org
Group:          System/Servers
Source:         https://github.com/epoptes/epoptes/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:        epoptes-server.service
Source3:        epoptes-client.service
BuildRequires:  intltool
BuildRequires:  openssl
#BuildRequires:  pwdutils
BuildRequires:  python3-devel
BuildRequires:  python3-distutils-extra
BuildRequires:  desktop-file-utils
BuildRequires:  systemd
Requires:       faketime
Requires:       librsvg2
Requires:       iperf
Requires:       openssl
#Requires:       pwdutils
Requires:       python3-twisted
Requires:       python3-pycha
Requires:       python3-notify
Requires:       typelib(Notify)
Requires:       python3-netifaces
Requires:       python3-gi
# WARNING: This is much more a python-Twisted dependency than a Epoptes one.
Requires:       python3-service-identity
Requires:       socat
Requires:       (tigervnc or tightvnc)
Requires:       x11vnc
Requires:       xset
Requires:       xwininfo
BuildArch:      noarch

%description
Epoptes (Επόπτης - a Greek word for overseer) is an open source computer lab
management and monitoring tool. It allows for screen broadcasting and
monitoring, remote command execution, message sending, imposing restrictions
like screen locking or sound muting the clients and much more!

%files -f epoptes.lang
%config(noreplace) %{_sysconfdir}/default/epoptes
%{_unitdir}/epoptes-server.service
%{_sbindir}/rcepoptes-server
%{_bindir}/epoptes
%{python3_sitelib}/*
%{_datadir}/applications/*
%{_datadir}/icons/*
%{_datadir}/ltsp/
%{_datadir}/epoptes/
%dir %{_datadir}/doc/epoptes
%{_datadir}/doc/epoptes/README.md
%{_mandir}/man1/epoptes.1.*

%post
if ! getent group epoptes >/dev/null; then
    groupadd --system epoptes
fi

if ! [ -f /etc/epoptes/server.key ] || ! [ -f /etc/epoptes/server.crt ] || ! [ -s /etc/epoptes/server.crt ]; then
    if ! [ -d /etc/epoptes ]; then
        mkdir /etc/epoptes
    fi
    openssl req -batch -x509 -nodes -newkey rsa:1024 -days $(($(date --utc +%s) / 86400 + 3652)) -keyout /etc/epoptes/server.key -out /etc/epoptes/server.crt
    chmod 600 /etc/epoptes/server.key
fi
%systemd_post epoptes-server.service

%preun
%systemd_preun epoptes-server.service

#-----------------------------------------------------
%package client
Summary:        Epoptes client
Requires:       librsvg2
Requires:       iperf
Requires:       socat
Requires:       (tigervnc or tightvnc)
Requires:       x11vnc
Requires:       xset
Requires:       xwininfo

%description client
This is a client part of Epoptes Computer lab management tool.

%files client
%config(noreplace) %{_sysconfdir}/default/epoptes-client
%{_sysconfdir}/xdg/autostart/epoptes-client.desktop
%{_unitdir}/epoptes-client.service
%{_sbindir}/rcepoptes-client
%{_sbindir}/epoptes-client
%{_datadir}/epoptes-client/
#{_datadir}/ldm/
%{_mandir}/man8/epoptes-client.8.*

%post client
%systemd_post epoptes-client.service

%preun client
%systemd_preun epoptes-client.service

#-----------------------------------------------------

%prep
%autosetup -p1

for file in $(find . -type f -name "*.py" ); do
	sed -i "s|/usr/bin/env python|%{_bindir}/python3|g" $file
done

%build

%install
%__python3 setup.py install --root=%{buildroot} --prefix=%{_prefix}

find %{buildroot} \( -name \*.a -o -name \*.la -o -name \*.orig \) -print0 | xargs -0 rm -f

mkdir -p %{buildroot}%{_sysconfdir}/default
install -m 644 ./debian/epoptes.default %{buildroot}%{_sysconfdir}/default/epoptes
install -m 644 ./debian/epoptes-client.default %{buildroot}%{_sysconfdir}/default/epoptes-client

mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}

ln -s service %{buildroot}%{_sbindir}/rcepoptes-server
ln -s service %{buildroot}%{_sbindir}/rcepoptes-client

%find_lang epoptes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1282 |21cr|epour-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Enlightened torrent client
Name: 		epour
Version:	0.7.0
Epoch:		1
Release:	1
License:	BSD
Group:		Graphical desktop/Enlightenment
Url:		https://www.enlightenment.org/
Source0:	https://download.enlightenment.org/rel/apps/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	python3-distutils-extra
Requires:	python3-dbus
Requires:	python3-efl
Requires:	python3-libtorrent-rasterbar
Requires:	python3-pyxdg
BuildArch:	noarch

%description
Epour is a torrent client based on EFL.

%files -f %{name}.lang
%doc AUTHORS README
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/epour/themes/default.edj
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/*/actions/*.png
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
%__python3 setup.py install --prefix=%{buildroot}%{_prefix}

%find_lang %{name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1283 |21cr|epsoneplijs-0.4.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ghostscript IJS Plugin for the Epson EPL-5700L/5800L/5900L/6100L/6200L printers
Name:		epsoneplijs
Version:	0.4.1
Release:	15
Group:		System/Printing
License:	BSD
URL:		http://sourceforge.net/projects/epsonepl/
Source0:	http://osdn.dl.sourceforge.net/sourceforge/epsonepl/epsoneplijs-%{version}.tgz
Patch0:		epsoneplijs-use_system_libs.diff
Patch1:		epsoneplijs-mandriva-install.diff
Patch2:		epsoneplijs-0.4.1-LDFLAGS.diff
BuildRequires:	libtool
BuildRequires:	libusb-devel
BuildRequires:	ieee1284-devel
Requires:	ghostscript >= 6.53
Conflicts:	printer-utils = 2007
Conflicts:	printer-filters = 2007

%description
Support for the Epson EPL-5700L/5800L/5900L/6100L/6200L printer family under
linux and other unix-like systems.
It is known to work for at least one user for each of 5700L, 5800L,
5900L, and 6100L. 6100L and 6200L support is new.

%prep

%setup -q

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%patch0 -p1 -b .use_system_libs
%patch1 -p1 -b .mandriva-install
%patch2 -p0 -b .LDFLAGS

%build
%serverbuild

perl -pi -e "s|-g -O2 -Wall -Werror -ansi -pedantic -Wmissing-prototypes|$CFLAGS -fPIC|g" Makefile.in

rm -f configure
libtoolize --force --copy; aclocal; autoconf

%configure \
    --with-kernelusb \
    --with-kernel1284 \
    --with-libusb \
    --with-libieee1284 

%make
%make test5700lusb

gcc $CFLAGS -fPIC -Wall %{ldflags} -o epl-5700 epl_docs/epl-5700.c
gcc $CFLAGS -fPIC -Wall %{ldflags} -o epl-5800 epl_docs/epl-5800.c
gcc $CFLAGS -fPIC -Wall %{ldflags} -o epl5x00l epl_docs/epl5x00l.c

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}

%makeinstall

install -m0755 ps2epl.pl %{buildroot}%{_bindir}
install -m0755 test5700lusb %{buildroot}%{_bindir}/
install -m0755 epl-5700 %{buildroot}%{_bindir}/
install -m0755 epl-5800 %{buildroot}%{_bindir}/
install -m0755 epl5x00l %{buildroot}%{_bindir}/

pushd foomatic_scripts
sh install_mandrake %{buildroot}
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc ChangeLog FAQ LIMITATIONS README* *.pdf epl_test* apsfilter cups epl_docs/epl-protocol.pdf epl_docs/README.1st
%{_bindir}/*
%{_datadir}/cups/model/epson/*.ppd.gz
%{_datadir}/foomatic/db/source/driver/*.xml
%{_datadir}/foomatic/db/source/opt/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1284 |21cr|eqonomize-0.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    eqonomize          
%define version 0.6                
%define release 6
 
Name:           %name
Version:        %version
Release:        %release
Source0:        http://ovh.dl.sourceforge.net/sourceforge/eqonomize/%name-%version.tar.gz
Patch0:         eqonomize-0.6-fix-desktopfile-typo.patch
Patch1:		eqonomize-0.6-fix-docs.patch
Summary:        Personal finance program for KDE                                         
License:        GPLv2+                                                                   
Group:          Office                                                                   
Url:            http://eqonomize.sourceforge.net/                                        
BuildRequires:  kdelibs4-devel                                                           
 
%description
Eqonomize! is a personal accounting software, 
with focus on efficiency and ease of use for  
the small household economy. 
 
%files -f %name.lang
%defattr(-,root,root)
%_bindir/eqonomize   
%_datadir/applications/kde4/eqonomize.desktop
%_datadir/apps/eqonomize/eqonomizeui.rc      
%_datadir/icons/hicolor/128x128/apps/eqonomize.png
%_datadir/icons/hicolor/128x128/mimetypes/eqz.png 
%_datadir/icons/hicolor/16x16/apps/eqonomize.png
%_datadir/icons/hicolor/16x16/mimetypes/eqz.png
%_datadir/icons/hicolor/22x22/apps/eqonomize.png
%_datadir/icons/hicolor/22x22/mimetypes/eqz.png
%_datadir/icons/hicolor/32x32/apps/eqonomize.png
%_datadir/icons/hicolor/32x32/mimetypes/eqz.png
%_datadir/icons/hicolor/48x48/apps/eqonomize.png
%_datadir/icons/hicolor/48x48/mimetypes/eqz.png
%_datadir/icons/hicolor/64x64/apps/eqonomize.png
%_datadir/icons/hicolor/64x64/mimetypes/eqz.png
%_datadir/mimelnk/application/x-eqonomize.desktop
 
 
#--------------------------------------------------------------------
 
%prep
%setup -q -n %name-%version
%apply_patches
%build
%cmake_kde4
%make
 
%install
rm -rf %{buildroot}
%{makeinstall_std} -C build
 
rm -f %buildroot%_datadir/applications/kde/*.desktop
 
%find_lang %name --with-html
 
%clean
rm -rf %{buildroot}
 
%post
%update_icon_cache hicolor
 
%postun
%clean_icon_cache hicolor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1285 |21cr|erfa-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.3.0
%define libname %mklibname erfa %{major}
%define libname_virt    liberfa
%define develname %mklibname erfa -d

Name: erfa
Version:	2.0.0
Release:	1
Summary: Essential Routines for Fundamental Astronomy
Group: Development/C
License: BSD
URL: https://github.com/liberfa/erfa
Source0: https://github.com/liberfa/erfa/releases/download/v%{version}/%{name}-%{version}.tar.gz

%description
ERFA is a C library containing key algorithms for astronomy, and is 
based on the SOFA library published by the International Astronomical 
Union (IAU).

%package -n %{develname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname_virt} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %{develname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package -n %{libname}
Summary: Essential Routines for Fundamental Astronomy
Group: Development/C
Provides: %{name} = %{version}-%{release}
Provides: %{libname_virt} = %{version}-%{release}
Provides: %{name} = %{version}-%{release}
%description -n %{libname}
ERFA is a C library containing key algorithms for astronomy, and is 
based on the SOFA library published by the International Astronomical 
Union (IAU).

%prep
%setup -q 

%build
%configure --disable-static
%make

%install
%makeinstall_std

%check
%make check

%files -n %{libname}
%doc README.rst INFO
%doc LICENSE
%{_libdir}/liberfa.so.*

%files -n %{develname}
%{_libdir}/liberfa.so
%{_includedir}/erfa*.h
%{_libdir}/pkgconfig/erfa.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1286 |21cr|eric-21.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Full featured Python and Ruby editor and IDE
Name:           eric
Version:        21.11
Release:        1
License:        GPLv3
Group:          Development/Python
Url:            http://eric-ide.python-projects.org/
Source0:        http://sourceforge.net/projects/eric-ide/files/eric6/stable/%{version}/%{name}6-%{version}.tar.gz
BuildRequires:  imagemagick
BuildRequires:  python3-qt5
BuildRequires:  python3-qt5-qscintilla
BuildRequires:  python3-sip
Requires:       python3-docutils
Requires:       python3-markdown
Requires:       python3-yaml
Requires:       python3-toml
Requires:       python3-chardet
Requires:       python3-send2trash
Requires:       python3-pygments
Requires:       python3-enchant
Requires:       python3-editorconfig
Requires:       python3-asttokens
Requires:       python3-qt5
Requires:       python3-qt5-devel
Requires:       python3-qt5-help
Requires:       python3-qt5-qscintilla
BuildArch:      noarch
%global _use_internal_dependency_generator 0

%description
Eric is a full featured Python and Ruby editor and IDE, written in python. It
is based on the cross platform Qt GUI toolkit, integrating the highly flexible
Scintilla editor control. It is designed to be usable as everdays' quick and
dirty editor as well as being usable as a professional project management tool
integrating many advanced features Python offers the professional coder.

%files
%doc eric/docs/*
%{_bindir}/*
%{_datadir}/qt5/qsci/api
%{python3_sitelib}/*
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/%{name}6.appdata.xml
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}Web.png
%{_iconsdir}/hicolor/32x32/apps/%{name}Web.png
%{_iconsdir}/hicolor/16x16/apps/%{name}Web.png
%{_iconsdir}/%{name}.png
%{_iconsdir}/%{name}Web.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}6-%{version}

%install

mkdir -p %{buildroot}%{py3_puresitedir}/%{name}
python3 install.py -x -i %{buildroot} \
    -b %{_bindir} -d %{py3_puresitedir} \
    -a %{_datadir}/qt5/qsci/api

find %{buildroot}%{_bindir} -type f -name "*" -exec sed -i "s|%{buildroot}||" {} \;
find %{buildroot}%{_datadir}/applications -type f -name "*.desktop" -exec sed -i "s|%{buildroot}||" {} \;
sed -i "s|%{buildroot}||" %{buildroot}/%{py3_puresitedir}/eric6config.py

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}6.desktop << EOF
[Desktop Entry]
Name=Eric
Name[ru]=Eric
Comment=Python IDE
Comment[ru]=Интегрированная среда разработки для Python
Exec=eric6
Icon=%{name}
Terminal=false
Type=Application
Categories=Development;IDE;
EOF

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{48x48,32x32,16x16}/apps
convert -scale 48 %{buildroot}%{_iconsdir}/eric.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 %{buildroot}%{_iconsdir}/eric.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{buildroot}%{_iconsdir}/eric.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -scale 48 %{buildroot}%{_iconsdir}/ericWeb.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}Web.png
convert -scale 32 %{buildroot}%{_iconsdir}/ericWeb.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}Web.png
convert -scale 16 %{buildroot}%{_iconsdir}/ericWeb.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}Web.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1287 |21cr|erlang-26.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%ifarch %{ix86} x86_64
%bcond_with java
%else
%bcond_without java
%endif

%define erlang_libdir %{_libdir}/erlang/lib

Summary:	General-purpose programming language and runtime environment
Name:		erlang
Version:	26.1
Release:	1
Group:		Development/Erlang
License:	MPL
Url:		http://www.erlang.org
Source0:	http://www.erlang.org/download/otp_src_%{version}.tar.gz
Source1:	http://www.erlang.org/download/otp_doc_html_%{version}.tar.gz
Source2:	http://www.erlang.org/download/otp_doc_man_%{version}.tar.gz
Source10:	erlang.rpmlintrc
BuildRequires:	bison
BuildRequires:	flex
%if %{with java}
BuildRequires:	java-devel
BuildRequires:	java-rpmbuild
%endif
BuildRequires:	m4
# needed for configure test
BuildRequires:	openssl
BuildRequires:	libgd-devel
BuildRequires:	tcl-devel
BuildRequires:	unixODBC-devel
BuildRequires:	wxgtku3.0-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblzma)
Requires:	tk
Requires:	tcl

%description
Erlang is a general-purpose programming language and runtime
environment. Erlang has built-in support for concurrency, distribution
and fault tolerance. Erlang is used in several large telecommunication
systems from Ericsson.

#----------------------------------------------------------------------------

%package stack
Summary:	Erlang bundle
License:	MPL
Group:		Development/Erlang
Requires:	erlang-base = %{EVRD}
Requires:	erlang-asn1
Requires:	erlang-common_test
Requires:	erlang-compiler
Requires:	erlang-crypto
Requires:	erlang-debugger
Requires:	erlang-dialyzer
Requires:	erlang-diameter
Requires:	erlang-edoc
Requires:	erlang-eldap
Requires:	erlang-emacs
Requires:	erlang-erl_docgen
Requires:	erlang-erl_interface
Requires:	erlang-et
Requires:	erlang-eunit
Requires:	erlang-inets
%if %{with java}
Requires:	erlang-jinterface
%endif
Requires:	erlang-megaco
Requires:	erlang-mnesia
Requires:	erlang-observer
Requires:	erlang-odbc
Requires:	erlang-os_mon
Requires:	erlang-parsetools
Requires:	erlang-public_key
Requires:	erlang-reltool
Requires:	erlang-runtime_tools
Requires:	erlang-snmp
Requires:	erlang-ssh
Requires:	erlang-ssl
Requires:	erlang-syntax_tools
Requires:	erlang-tools
Requires:	erlang-typer
Requires:	erlang-wx
Requires:	erlang-xmerl

%description stack
Erlang bundle.

The Erlang/OTP system --- Erlang is a programming language which
has many features more commonly associated with an operating system
than with a programming language: concurrent processes, scheduling,
memory management, distribution, networking, etc. The development package
in addition contains the Erlang sources for all base libraries.
Includes the Erlang/OTP graphical libraries.

%files stack
%doc AUTHORS README.md

#----------------------------------------------------------------------------

%package base
Summary:	Erlang architecture independent files
License:	MPL
Group:		Development/Erlang
Provides:	%{name} = %{EVRD}
Provides:	%{name}-erts
Provides:	%{name}-kernel
Provides:	%{name}-stdlib
Provides:	%{name}-sasl
Provides:	%{name}-ftp
Provides:	%{name}-tftp
# Removed in R16
Obsoletes:	%{name}-inviso < %{EVRD}

%description base
Erlang architecture independent files

The Erlang/OTP system --- Erlang is a programming language which
has many features more commonly associated with an operating system
than with a programming language: concurrent processes, scheduling,
memory management, distribution, networking, etc. The development package
in addition contains the Erlang sources for all base libraries.
Includes the Erlang/OTP graphical libraries.

%files base
%dir %{_libdir}/erlang
%dir %{_libdir}/erlang/bin
%dir %{_libdir}/erlang/lib
%dir %{_libdir}/erlang/misc
%{_bindir}/*
%{_libdir}/erlang/Install
%{_libdir}/erlang/bin/ct_run
%{_libdir}/erlang/bin/epmd
%{_libdir}/erlang/bin/erl
%{_libdir}/erlang/bin/erl_call
%{_libdir}/erlang/bin/erlc
%{_libdir}/erlang/bin/escript
%{_libdir}/erlang/bin/no_dot_erlang.boot
%{_libdir}/erlang/bin/run_erl
%{_libdir}/erlang/bin/start
%{_libdir}/erlang/bin/start.boot
%{_libdir}/erlang/bin/start.script
%{_libdir}/erlang/bin/start_clean.boot
%{_libdir}/erlang/bin/start_erl
%{_libdir}/erlang/bin/start_sasl.boot
%{_libdir}/erlang/bin/to_erl
%{_libdir}/erlang/erts-*
%{_libdir}/erlang/misc/format_man_pages
%{_libdir}/erlang/misc/makewhatis
%{_libdir}/erlang/releases
%{erlang_libdir}/erts-*
%{erlang_libdir}/kernel-*
%{erlang_libdir}/stdlib-*
%{erlang_libdir}/sasl-*
%{erlang_libdir}/ftp-*
%{erlang_libdir}/tftp-*

%post base
%{_libdir}/erlang/Install -minimal %{_libdir}/erlang >/dev/null 2>/dev/null

#----------------------------------------------------------------------------

%package devel
Summary:	Erlang header
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description devel
Erlang headers. This package is used to build some library.

%files devel
%dir %{_libdir}/%{name}/%{_includedir}
%dir %{_libdir}/%{name}/%{_prefix}/lib
%{_libdir}/%{name}/%{_includedir}/*
%{_libdir}/%{name}/%{_prefix}/lib/*

#----------------------------------------------------------------------------

%package manpages
Summary:	Erlang man pages
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description manpages
Documentation for the Erlang programming language in `man' format. This
documentation can be read using the command `erl -man mod', where `mod' is
the name of the module you want documentation on.

%files manpages
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man4/*
%{_mandir}/man6/*
%{_mandir}/man7/*
#----------------------------------------------------------------------------

%package docs
Summary:	Erlang docs in html and pdf
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description docs
Documentation for the Erlang programming language in html and pdf format.

%files docs
%doc erlang_doc/*

#----------------------------------------------------------------------------

%package asn1
Summary:	Provides support for Abstract Syntax Notation One
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description asn1
Asn1 application contains modules with compile-time and run-time support for
ASN.1.

%files asn1
%{erlang_libdir}/asn1-*

#----------------------------------------------------------------------------

%package common_test
Summary:	Portable framework for automatic testing
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description common_test
A portable Erlang framework for automatic testing.

%files common_test
%{erlang_libdir}/common_test-*

#----------------------------------------------------------------------------

%package compiler
Summary:	Byte code compiler for Erlang which produces highly compact code
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description compiler
Compiler application compiles Erlang code to byte-code. The highly compact
byte-code is executed by the Erlang emulator.

%files compiler
%{erlang_libdir}/compiler-*

#----------------------------------------------------------------------------

%package crypto
Summary:	Cryptographical support
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description crypto
Cryptographical support for erlang.

%files crypto
%{erlang_libdir}/crypto-*

#----------------------------------------------------------------------------

%package debugger
Summary:	Debugger for debugging and testing of Erlang programs
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description debugger
Debugger is a graphical tool which can be used for debugging and testing
of Erlang programs. For example, breakpoints can be set, code can be single
stepped and variable values can be displayed and changed.

%files debugger
%{erlang_libdir}/debugger-*

#----------------------------------------------------------------------------

%package dialyzer
Summary:	Static analysis tool
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description dialyzer
Dialyzer is a static analysis tool that identifies software discrepancies
such as type errors, unreachable code, unnecessary tests, etc in single
Erlang modules or entire (sets of) applications.

%files dialyzer
%{erlang_libdir}/dialyzer-*
%{_libdir}/%{name}/bin/dialyzer

#----------------------------------------------------------------------------

%package diameter
Summary:	An implementation of the Diameter protocol as defined by RFC 3588
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description diameter
An implementation of the Diameter protocol as defined by RFC 3588.

%files diameter
%{erlang_libdir}/diameter-*

#----------------------------------------------------------------------------

%package edoc
Summary:	The Erlang program documentation generator
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}
Requires:	erlang-syntax_tools
Requires:	erlang-xmerl

%description edoc
This module provides the main user interface to EDoc.

%files edoc
%{erlang_libdir}/edoc-*

#----------------------------------------------------------------------------

%package eldap
Summary:	The Erlang LDAP library
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-asn1 = %{EVRD}
Requires:	%{name}-base = %{EVRD}
Requires:	%{name}-ssl = %{EVRD}

%description eldap
Eldap is a module which provides a client API to the Lightweight Directory
Access Protocol (LDAP).

%files eldap
%{erlang_libdir}/eldap-*

#----------------------------------------------------------------------------

%package emacs
Summary:	Emacs support for The Erlang language
License:	GPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}
Requires:	emacs

%description emacs
This module provides Erlang support to Emacs.

%files emacs
%{_sysconfdir}/emacs/site-start.d/erlang.el

#----------------------------------------------------------------------------

%package erl_docgen
Summary:	Documentation generator
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description erl_docgen
Documentation generator for erlang.

%files erl_docgen
%{erlang_libdir}/erl_docgen-*

#----------------------------------------------------------------------------

%package erl_interface
Summary:	Low level interface to C
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description erl_interface
Low level interface to C for erlang.

%files erl_interface
%{erlang_libdir}/erl_interface-*

#----------------------------------------------------------------------------

%package et
Summary:	Event Tracer
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description et
The Event Tracer (ET) uses the built-in trace mechanism in Erlang and
provides tools for collection and graphical viewing of trace data.

%files et
%{erlang_libdir}/et-*

#----------------------------------------------------------------------------

%package eunit
Summary:	Erlang support for unit testing
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description eunit
Erlang support for unit testing.

%files eunit
%{erlang_libdir}/eunit-*

#----------------------------------------------------------------------------

%package inets
Summary:	Set of services such as a Web server and a ftp client etc
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description inets
Inets is a container for Internet clients and servers. Currently a HTTP
server and a FTP client has been incorporated in Inets. The HTTP server
is an efficient implementation of HTTP 1.1 as defined in RFC 2616, i.e.
a Web server.

%files inets
%{erlang_libdir}/inets-*

#----------------------------------------------------------------------------

%if %{with java}
%package jinterface
Summary:	Low level interface to Java
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description jinterface
The Jinterface package provides a set of tools for communication with
Erlang processes. It can also be used for communication with other Java
processes using the same package, as well as C processes using the
Erl_Interface library.

%files jinterface
%{erlang_libdir}/jinterface-*
%endif

#----------------------------------------------------------------------------

%package megaco
Summary:	Framework for building applications on top of the Megaco/H.248 protocol
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description megaco
Megaco/H.248 is a protocol for control of elements in a physically decomposed
multimedia gateway, enabling separation of call control from media conversion.

%files megaco
%{erlang_libdir}/megaco-*

#----------------------------------------------------------------------------

%package mnesia
Summary:	Heavy duty real-time distributed database
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description mnesia
Mnesia is a distributed DataBase Management System (DBMS), appropriate for
telecommunications applications and other Erlang applications which require
continuous operation and exhibit soft real-time properties.

%files mnesia
%{erlang_libdir}/mnesia-*

#----------------------------------------------------------------------------

%package observer
Summary:	Observer, tools for tracing and investigation of distributed systems
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description observer
The OBSERVER application contains tools for tracing and investigation of
distributed systems.

%files observer
%{erlang_libdir}/observer-*

#----------------------------------------------------------------------------

%package odbc
Summary:	Interface to relational SQL-databases built on ODBC
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description odbc
The ODBC application is an interface to relational SQL-databases built 
on ODBC (Open Database.)

%files odbc
%{erlang_libdir}/odbc-*

#----------------------------------------------------------------------------

%package os_mon
Summary:	Monitor which allows inspection of the underlying operating system
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description os_mon
The operating system monitor OS_Mon monitors operating system disk and memory
usage etc.

%files os_mon
%{erlang_libdir}/os_mon-*

#----------------------------------------------------------------------------

%package parsetools
Summary:	Set of parsing and lexical analysis tools
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description parsetools
The Parsetools application contains utilities for parsing, e.g. the yecc
module. Yecc is an LALR-1 parser generator for Erlang, similar to yacc.
Yecc takes a BNF grammar definition as input, and produces Erlang code for
a parser as output.

%files parsetools
%{erlang_libdir}/parsetools-*

#----------------------------------------------------------------------------

%package public_key
Summary:	Erlang API to public key infrastructure
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description public_key
Erlang API to public key infrastructure.

%files public_key
%{erlang_libdir}/public_key-*

#----------------------------------------------------------------------------

%package reltool
Summary:	A release management tool for Erlang
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description reltool
It analyses a given Erlang/OTP installation and determines various
dependencies between applications. The graphical frontend depicts
the dependencies and enables interactive customization of a
target system. The backend provides a batch interface for
generation of customized target systems.

%files reltool
%{erlang_libdir}/reltool-*

#----------------------------------------------------------------------------

%package runtime_tools
Summary:	Runtime tools, tools to include in a production system
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description runtime_tools
Runtime tools, tools to include in a production system.

%files runtime_tools
%{erlang_libdir}/runtime_tools-*

#----------------------------------------------------------------------------

%package snmp
Summary:	Simple Network Management Protocol (SNMP) support
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description snmp
A multilingual Simple Network Management Protocol Extensible Agent, featuring
a MIB compiler and facilities for implementing SNMP MIBs etc.

%files snmp
%{erlang_libdir}/snmp-*

#----------------------------------------------------------------------------

%package ssh
Summary:	Secure Shell application with ssh and sftp support
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description ssh
Secure Shell application with ssh and sftp support.

%files ssh
%{erlang_libdir}/ssh-*

#----------------------------------------------------------------------------

%package ssl
Summary:	Interface to UNIX BSD sockets with Secure Sockets Layer
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description ssl
The SSL application provides secure communication over sockets.

%files ssl
%{erlang_libdir}/ssl-*

#----------------------------------------------------------------------------

%package syntax_tools
Summary:	Set of modules for working with Erlang source code
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description syntax_tools
This package defines an abstract datatype that is compatible with the
`erl_parse' data structures, and provides modules for analysis and
manipulation, flexible pretty printing, and preservation of source-code
comments. Now includes `erl_tidy': automatic code tidying and checking.

%files syntax_tools
%{erlang_libdir}/syntax_tools-*

#----------------------------------------------------------------------------

%package tools
Summary:	Set of programming tools including a coverage analyzer etc
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description tools
The Tools application contains a number of stand-alone tools, which are
useful when developing Erlang programs.

%files tools
%{erlang_libdir}/tools-*

#----------------------------------------------------------------------------

%package typer
Summary:	Type annotator of Erlang code
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description typer
A type annotator of Erlang code.

%files typer
%{_libdir}/%{name}/bin/typer

#----------------------------------------------------------------------------

%package wx
Summary:	Graphic system for Erlang
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description wx
A Graphics System used to write platform independent user interfaces
for Erlang.

%files wx
%{erlang_libdir}/wx-*

#----------------------------------------------------------------------------

%package xmerl
Summary:	XML processing tools
License:	MPL
Group:		Development/Erlang
Requires:	%{name}-base = %{EVRD}

%description xmerl
Implements a set of tools for processing XML documents, as well as working
with XML-like structures in Erlang. The main attraction so far is a
single-pass, highly customizable XML processor. Other components are an
export/translation facility and an XPATH query engine. This version fixes
a few bugs in the scanner, and improves HTML export.

%files xmerl
%{erlang_libdir}/xmerl-*

#----------------------------------------------------------------------------

%prep
%setup -qn otp_src_%{version}

%build
%serverbuild
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXLAGS=$CFLAGS
ERL_TOP=`pwd`; export ERL_TOP

# enable dynamic linking for ssl
sed -i 's|SSL_DYNAMIC_ONLY=no|SSL_DYNAMIC_ONLY=yes|' erts/configure
#define __cputoolize true

%configure \
	--prefix=%{_prefix} \
	--exec-prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir} \
	--datadir=%{_datadir} \
	%ifarch x86_64
	--enable-m64-build \
	%endif
	--enable-threads \
	--enable-kernel-poll \
	--enable-smp-support \
	--with-ssl \
	--disable-erlang-mandir \
	--enable-dynamic-ssl-lib

%make

%install
%makeinstall_std INSTALL_PREFIX=%{buildroot}

# clean up
find %{buildroot}%{_libdir}/erlang -perm 0775 | xargs chmod 755
find %{buildroot}%{_libdir}/erlang -name Makefile | xargs chmod 644
find %{buildroot}%{_libdir}/erlang -name \*.bat | xargs rm -f
find %{buildroot}%{_libdir}/erlang -name index.txt.old | xargs rm -f

# doc
mkdir -p erlang_doc
mkdir -p %{buildroot}%{_datadir}
tar -C erlang_doc -xf %{SOURCE1}
tar -C %{buildroot}%{_datadir} -xf %{SOURCE2}

# make links to binaries
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
for file in erl erlc escript run_erl
do
	ln -sf ../%{_lib}/erlang/bin/$file .
done
popd

# (tpg) fixes bug #32318
mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat > %{buildroot}%{_sysconfdir}/emacs/site-start.d/erlang.el << EOF
(setq load-path (cons "%{_libdir}/%{name}/lib/tools-*/emacs" load-path))
(add-to-list 'load-path "%{_datadir}/emacs/site-lisp/ess")
(load-library "erlang-start")
EOF

# remove buildroot from installed files
pushd %{buildroot}%{_libdir}/erlang
sed -i "s|%{buildroot}||" erts*/bin/{erl,start} releases/RELEASES bin/{erl,start}
popd

# (tpg) remove not needed files
rm -rf %{buildroot}%{_datadir}/COPYRIGHT
rm -rf %{buildroot}%{_datadir}/PR.template
rm -rf %{buildroot}%{_datadir}/README.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1288 |21cr|erlang-base64url-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname base64url
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}


Name:      erlang-%{srcname}
Version:   1.0
Release:   4

Group:     Development/Erlang
License:   MIT
Summary:   URL safe base64-compatible codec
URL:       https://github.com/dvv/base64url
Source0:   %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-rebar
BuildRequires: erlang-eunit


%description
Standalone URL safe base64-compatible codec.


%prep
%setup -qn %{srcname}-%{version}


%build
%{rebar_compile}


%check
%{rebar_eunit}


%install
%{erlang_install}


%files
%doc LICENSE.txt
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1289 |21cr|erlang-bbmustache-1.12.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname bbmustache
%global upstream soranoba


Name:		erlang-%{realname}
Version:	1.12.2
Release:	1
Summary:	Binary pattern match-based Mustache template engine for Erlang
Group:		Development/Erlang
License:	MIT
URL:		https://github.com/%{upstream}/%{realname}
#VCS:		scm:git:https://github.com/%{upstream}/%{realname}.git
Source0:	https://github.com/soranoba/bbmustache/archive/v%{version}.tar.gz?/%{realname}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	erlang-rebar
BuildRequires:	erlang-rpm-macros


%description
Binary pattern match-based Mustache template engine for Erlang.

%files
%license LICENSE
%doc doc/ README.md
%{erlang_appdir}/

#--------------------------------------------------------------
%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{erlang_compile}


%install
%{erlang_install}


%check
%{erlang_test}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1290 |21cr|erlang-cache_tab-1.0.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%global srcname cache_tab

%global p1_utils_ver 1.0.25

Name:		erlang-cache_tab
Version:	1.0.30
Release:	1
Group:		Development/Erlang

License:	ASL 2.0
Summary:	Erlang cache table application
URL:		https://github.com/processone/cache_tab/
Source0:	https://github.com/processone/cache_tab/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:	gcc
BuildRequires:	erlang-rebar
BuildRequires:	erlang-p1_utils >= %{p1_utils_ver}

Requires:	erlang-p1_utils >= %{p1_utils_ver}


%description
This application is intended to proxy back-end operations for Key-Value insert,
lookup and delete and maintain a cache of those Key-Values in-memory, to save
back-end operations. Operations are intended to be atomic between back-end and
cache tables. The lifetime of the cache object and the max size of the cache
can be defined as table parameters to limit the size of the in-memory tables.


%prep
%setup -qn cache_tab-%{version}


%build
%{rebar_compile}


%install
%{erlang_install}

install -p -D -m 755 priv/lib/* --target-directory=%{buildroot}%{erlang_appdir}/priv/lib/


%check
%{rebar_eunit}


%files
%doc LICENSE.txt
%doc CHANGELOG.md
%doc README.md
%{_erllibdir}/%{srcname}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1291 |21cr|erlang-certifi-2.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname certifi
%global upstream certifi
%global upstream_reponame erlang-certifi

# Technically we're noarch, but our install path is not.
%global debug_package %{nil}

Name:		erlang-%{realname}
Version:	2.5.3
Release:	1
Summary:	Dummy certifi (certificate bundle) package for erlang
Group:		Development/Erlang
License:	BSD
URL:		https://github.com/%{upstream}/%{upstream_reponame}
Source0:	https://github.com/%{upstream}/%{upstream_reponame}/archive/%{version}/%{upstream_reponame}-%{version}.tar.gz
Patch0:		erlang-certifi-enforce_fedora_ca_bundle.patch
BuildRequires:	erlang-rebar
BuildRequires:	erlang-parse_trans
BuildRequires:	erlang-public_key
BuildRequires:	sed
Requires:	erlang-rebar

%description
Upstream certifi provides a custom CA bundle to erlang. Since custom CA bundles
cannot be packaged in Fedora, this 'dummy' package patches certifi to point to
the default Fedora CA bundle.

%files
%license LICENSE
%doc README.md
%{erlang_appdir}/

#------------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{upstream_reponame}-%{version}

# Fix dependency version issue
sed -i 's/{parse_trans, "3.2.0"}/{parse_trans, "3.3.0"}/' rebar.config

%build
%{erlang_compile}

%install
%{erlang_install}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1292 |21cr|erlang-cf-0.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname cf
%global upstream project-fifo

# Technically we're noarch, but our install path is not.
%global debug_package %{nil}

Name:		erlang-%{realname}
Version:	0.3.1
Release:	3
Summary:	Terminal color helper
License:	BSD
Group:		Development/Erlang
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/v%{version}.tar.gz#/%{realname}-%{version}.tar.gz
BuildRequires:	erlang-rebar
Requires:	erlang-rebar

%description
A helper library for termial colour printing extending the io:format 
syntax to add colours.

%files
%license LICENSE
%doc README.md
%{erlang_appdir}/*

#--------------------------------------------------------------------
%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{erlang_compile}
%install
%{erlang_install}

%check
%{erlang_test}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1293 |21cr|erlang-cth_readable-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname cth_readable
%global upstream ferd

Name:		erlang-%{realname}
Version:	1.5.1
Release:	1
Summary:	Common test hooks for more readable erlang logs
Group:		Development/Erlang
License:	BSD
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/v%{version}/%{realname}-v%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	erlang-rebar
BuildRequires:	erlang-lager
BuildRequires:	erlang-cf
BuildRequires:	erlang-goldrush
Requires:	erlang-rebar

%description
%{summary}.

%files
%license LICENSE
%doc README.md
%{erlang_appdir}/

#-------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{realname}-%{version}
# Fails since kernel/include/logger.hrl is not shipped witch Fedora's erlang
# installation
rm test/show_logs_SUITE.erl

%build
%{erlang_compile}

%install
%{erlang_install}

%check
%{erlang_test}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1294 |21cr|erlang-edown-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname edown
%global upstream uwiger


Name:		erlang-%{realname}
Version:	0.8.1
Release:	1
Summary:	EDoc extension for generating Github-flavored Markdown
Group:		Development/Other
License:	ASL 2.0
URL:		https://github.com/%{upstream}/%{realname}
VCS:		scm:git:https://github.com/%{upstream}/%{realname}.git
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
BuildArch:	noarch
Patch1:		erlang-edown-0001-Remove-pre-18.0-code.patch
Patch2:		erlang-edown-0002-Don-t-use-git-command-for-branch-retrieval.patch
BuildRequires:	erlang-edoc
BuildRequires:	erlang-rebar


%description
EDoc extension for generating Github-flavored Markdown.


%prep
%autosetup -p1 -n %{realname}-%{version}


%build
%{erlang_compile}


%install
%{erlang_install}


%check
%{erlang_test}


%files
%doc NOTICE README.md doc/
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1295 |21cr|erlang-eimp-1.0.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname eimp

%global p1_utils_ver 1.0.25


Name:		erlang-eimp
Version:	1.0.22
Release:	1

Group:		Development/Erlang
License:	ASL 2.0
Summary:	Erlang Image Manipulation Process
URL:		https://github.com/processone/eimp/
Source0:	%{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: gd-devel
BuildRequires: erlang-rebar
BuildRequires: erlang-p1_utils >= %{p1_utils_ver}
BuildRequires: pkgconfig(libturbojpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: webp-devel

Requires: erlang-p1_utils >= %{p1_utils_ver}


%description
eimp is an Erlang/Elixir application for manipulating graphic images
using external C libraries. It supports WebP, JPEG, PNG and GIF.


%prep
%setup -qn %{srcname}-%{version}
rm configure


%build
autoreconf -ivf
%configure2_5x
%{rebar_compile}


%install
%{erlang_install}

install -p -D -m 755 priv/bin/* --target-directory=%{buildroot}%{erlang_appdir}/priv/bin/


%check
# The unit tests do not pass: https://github.com/processone/eimp/issues/5
echo "Skipping tests."


%files
%doc LICENSE.txt
%doc README.md
%{_erllibdir}/%{srcname}-%{version}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1296 |21cr|erlang-epam-1.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname epam


Name:       erlang-%{srcname}
Version:    1.0.12
Release:    1

Group:      Development/Erlang
Summary:    Library for ejabberd for PAM authentication support
License:    ASL 2.0
URL:        https://github.com/processone/%{srcname}/
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gcc
BuildRequires: erlang-rebar
BuildRequires: pam-devel

Provides: erlang-p1_pam = %{version}-%{release}
Obsoletes: erlang-p1_pam < 1.0.3-4


%description
An Erlang library for ejabberd that helps with PAM authentication.


%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
autoreconf -ivf

%configure

%{erlang_compile}


%install
%{erlang_install}

install -d %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/bin
install -pm755 priv/bin/%{srcname} %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/bin/


%files
%doc LICENSE.txt
%doc CHANGELOG.md
%doc README.md
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1297 |21cr|erlang-erlware_commons-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname erlware_commons
%global upstream erlware

Name:		erlang-%{realname}
Version:	1.6.0
Release:	1
Summary:	Extension to Erlang's standard library
Group:		Development/Tools
License:	MIT
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/erlware/erlware_commons/archive/v%{version}.tar.gz?/%{realname}-%{version}.tar.gz
# The "color" test does not play well with Fedora's build system
Patch0:		erlang-erlware_commons-disable-color_test.patch
BuildArch:	noarch
BuildRequires:	erlang-rebar
BuildRequires:	erlang-cf
BuildRequires:	erlang-rpm-macros
BuildRequires:	git
Requires:	erlang-rebar
Requires:	erlang-cf

%description
Erlware commons can best be described as an extension to the stdlib 
application that is distributed with Erlang.

%files
%doc README.md
%{erlang_appdir}/

#------------------------------------------------------------------
%prep
%setup -q -n %{realname}-%{version}
%patch0 -p0

%build
%erlang_compile

%install
%erlang_install
cp -arv priv/ %{buildroot}%{erlang_appdir}/

%check
%erlang_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1298 |21cr|erlang-esdl-1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname esdl
%define erlang_libdir %{_libdir}/erlang/addons

Summary:	Erlang OpenGL/SDL api and utilities
Name:		erlang-%{oname}
Version:	1.2
Release:	5
Group:		Development/Other
License:	BSD
URL:		http://esdl.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/esdl/esdl/%{oname}-%{version}/%{oname}-%{version}.src.tar.gz
Patch0:		esdl-1.0.1-optflags.patch
Patch1:		esdl-1.0.1-makefile.patch
BuildRequires:  SDL-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:	SDL_image-devel
BuildRequires:	mesa-common-devel
BuildRequires:	erlang-compiler		>= R11B-7
BuildRequires:	erlang-devel		>= R11B-7
Requires:	erlang-base		>= R11B-7

%description
A library that gives you access to SDL and OpenGL functionality in
your Erlang program.

%package devel
Summary:	Development files for ESDL
Group:		Development/Other
Requires:	%{name} = %{version}-%{release}
Requires:	erlang-devel >= R11B-6
Requires:	SDL-devel
Requires:	mesa-common-devel

%description devel
Development files for ESDL.

%prep
%setup -qn %{oname}-%{version}
#% patch0 -p1

%patch1 -p1

perl -pi -e 's|INSTALLDIR = |INSTALLDIR = \$(DESTDIR)|' Makefile

%build
%define _disable_ld_no_undefined 1
export CFLAGS="%{optflags}"
export CLINKFLAGS="%{ldflags}"
%make

%install
%makeinstall_std

pushd test
mv -f *.beam %{buildroot}%{erlang_libdir}/esdl-%{version}/ebin
popd

rm -f %{buildroot}%{erlang_libdir}/esdl-%{version}/Readme.MacOSX-Cocoa
rm -f %{buildroot}%{erlang_libdir}/esdl-%{version}/Readme.win32

%files
%defattr(644,root,root,755)
%doc %{erlang_libdir}/esdl-%{version}/license.terms
%doc %{erlang_libdir}/esdl-%{version}/Readme
%dir %{erlang_libdir}/esdl-%{version}
%dir %{erlang_libdir}/esdl-%{version}/ebin
%dir %{erlang_libdir}/esdl-%{version}/priv
%attr(755,root,root) %{erlang_libdir}/esdl-%{version}/priv/*.so
%{erlang_libdir}/esdl-%{version}/ebin/*.beam
%{erlang_libdir}/esdl-%{version}/vsn.mk
%exclude %{erlang_libdir}/esdl-%{version}/include
%exclude %{erlang_libdir}/esdl-%{version}/src

%files devel
%defattr(644,root,root,755)
%doc %{erlang_libdir}/esdl-%{version}/doc
%{erlang_libdir}/esdl-%{version}/include
%{erlang_libdir}/esdl-%{version}/src
%{erlang_libdir}/esdl-%{version}/c_src

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1299 |21cr|erlang-esip-1.0.47-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%global srcname esip

%global fast_tls_ver 1.0.23
%global p1_utils_ver 1.0.25
%global stun_ver 1.0.23

Name:		erlang-%{srcname}
Version:	1.0.47
Release:	1

Group:		Development/Erlang

License:	ASL 2.0
Summary:	ProcessOne SIP server component in Erlang
URL: https://github.com/processone/esip/
Source0: https://github.com/processone/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz

Provides:	erlang-p1_sip = %{version}-%{release}
Obsoletes:	erlang-p1_sip < 1.0.2

BuildRequires:	gcc
#BuildRequires:	erlang-fast_tls >= %{fast_tls_ver}
BuildRequires:	erlang-p1_utils >= %{p1_utils_ver}
BuildRequires:	erlang-rebar
BuildRequires:	erlang-stun >= %{stun_ver}

#Requires:	erlang-fast_tls >= %{fast_tls_ver}
Requires:	erlang-p1_utils >= %{p1_utils_ver}
Requires:	erlang-stun >= %{stun_ver}


%description
ProcessOne SIP server component in Erlang.


%prep
%setup -n %{srcname}-%{version} -q

rm -rf ebin


%build
%{rebar_compile}


%install
%{erlang_install}

install -d %{buildroot}%{_erllibdir}/esip-%{version}/include
install -d %{buildroot}%{_erllibdir}/esip-%{version}/priv/lib

install -pm644 include/* %{buildroot}%{_erllibdir}/esip-%{version}/include/
install -pm755 priv/lib/*.so %{buildroot}%{_erllibdir}/esip-%{version}/priv/lib/


%check
%{rebar_eunit}


%files
%doc LICENSE.txt
%doc CHANGELOG.md README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1300 |21cr|erlang-eunit_formatters-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname eunit_formatters
%global upstream seancribbs

# Technically we're noarch, but our install path is not.
%global debug_package %{nil}

Name:		erlang-%{realname}
Version:	0.5.0
Release:	1
Summary:	Better output format for eunit test suites
Group:		Development/Erlang
License:	ASL 2.0
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/v%{version}/%{realname}-v%{version}.tar.gz
BuildRequires:	erlang-rebar
Requires:	erlang-rebar

%description
%{summary}.

%prep
%autosetup -n %{realname}-%{version}

%build
%{erlang_compile}

%install
%{erlang_install}

%check
%{erlang_test}

%files
%license LICENSE
%doc README.md
%{erlang_appdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1301 |21cr|erlang-ezlib-1.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname ezlib

%define  _disable_ld_no_undefined 1

Name:       erlang-%{srcname}
Version:    1.0.12
Release:    1

Group:      Development/Erlang

License:    ASL 2.0
Summary:    Native zlib driver for Erlang
URL:        https://github.com/processone/ezlib/
Source0:    https://github.com/processone/ezlib/archive/%{version}/%{srcname}-%{version}.tar.gz

Provides:   erlang-p1_zlib = %{version}-%{release}
Obsoletes:  erlang-p1_zlib <= 1.0.1-2

BuildRequires: gcc
BuildRequires: erlang-rebar
BuildRequires: pkgconfig(zlib)


%description
A native zlib driver for Erlang / Elixir, used by ejabberd.


%prep
%setup -qn ezlib-%{version}


%build
%configure --enable-nif
# There is a pull request upstream for this -lz https://github.com/processone/ezlib/pull/1
LDFLAGS="$LDFLAGS -lz" %{rebar_compile}


%check
#%%{rebar_eunit}


%install
install -d %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib

install -pm755 priv/lib/ezlib.so \
    %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib/
%{erlang_install}


%files
%doc LICENSE.txt
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1302 |21cr|erlang-fast_tls-1.1.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%global srcname fast_tls

%global p1_utils_ver 1.0.25

Name:		erlang-%{srcname}
Version:	1.1.15
Release:	1

Group:		Development/Erlang

License:	ASL 2.0
Summary:	TLS / SSL native driver for Erlang / Elixir
URL:		https://github.com/processone/%{srcname}/
Source0:	https://github.com/processone/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
# Set the default cipher list to PROFILE=SYSTEM.
# https://fedoraproject.org/wiki/Packaging:CryptoPolicies
Patch0:		0000-Use-the-system-ciphers-by-default.patch

Provides:	erlang-p1_tls = %{version}-%{release}
Obsoletes:	erlang-p1_tls < 1.0.1

BuildRequires:	erlang-p1_utils >= %{p1_utils_ver}
BuildRequires:	erlang-rebar
BuildRequires:	erlang-ssl
BuildRequires:	erlang-eunit
BuildRequires:	erlang-public_key
BuildRequires:	pkgconfig(openssl)

Requires:	erlang-p1_utils >= %{p1_utils_ver}


%description
TLS / SSL native driver for Erlang / Elixir. This is used by ejabberd.


%prep
%autosetup -p1 -n %{srcname}-%{version}

%check
%{rebar_eunit}


%build
%{rebar_compile}


%install
install -d %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib

install -pm755 priv/lib/* %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib/
%{erlang_install}


%files
%doc LICENSE.txt
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1303 |21cr|erlang-fast_xml-1.1.49-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define with_tests 0
%global _disable_ld_no_undefined 1

%global srcname fast_xml

%global p1_utils_ver 1.0.25

Name:		erlang-%{srcname}
Version:	1.1.49
Release:	1
Group:		Development/Erlang

License:	ASL 2.0
Summary:	Fast Expat based Erlang XML parsing and manipulation library
URL:		https://github.com/processone/fast_xml/
Source0:	https://github.com/processone/fast_xml/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:	gcc
BuildRequires:	erlang-edoc
BuildRequires:	erlang-rebar
BuildRequires:	erlang-p1_utils >= %{p1_utils_ver}
BuildRequires:	expat-devel

Requires: erlang-p1_utils >= %{p1_utils_ver}


%description
Fast Expat based Erlang XML parsing and manipulation library, with a strong
focus on XML stream parsing from network. It supports full XML structure
parsing, suitable for small but complete XML chunks, and XML stream parsing
suitable for large XML document, or infinite network XML stream like XMPP.
This module can parse files much faster than built-in module xmerl. Depending
on file complexity and size xml_stream:parse_element/1 can be 8-18 times faster
than calling xmerl_scan:string/2.


%prep
%setup -qn fast_xml-%{version}


%build
%{rebar_compile}


%install
%{erlang_install}

install -p -D -m 755 priv/lib/* --target-directory=%{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib/

%if %with_tests
%check
%{rebar_eunit}
%endif

%files
%doc LICENSE.txt
%doc CHANGELOG.md README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1304 |21cr|erlang-fast_yaml-1.0.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%global srcname fast_yaml

Name:		erlang-%{srcname}
Version:	1.0.33
Release:	1

Group:		Development/Erlang

License:	ASL 2.0
Summary:	An Erlang wrapper for libyaml "C" library
URL:		https://github.com/processone/fast_yaml/
Source0:	https://github.com/processone/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz

Provides:	erlang-p1_yaml = %{version}-%{release}
Obsoletes:	erlang-p1_yaml < 1.0.2

BuildRequires:	gcc
BuildRequires:	erlang-rebar
BuildRequires:	erlang-p1_utils >= 1.0.5
BuildRequires:	pkgconfig(yaml-0.1)


%description
P1 YAML is an Erlang wrapper for libyaml "C" library.


%prep
%setup -qn %{srcname}-%{version}


%build
%{rebar_compile}


%install
%{erlang_install}

install -d %{buildroot}%{_libdir}/erlang/lib/%{srcname}-%{version}/priv/lib

install -pm755 priv/lib/* %{buildroot}%{_libdir}/erlang/lib/%{srcname}-%{version}/priv/lib


%check
%{rebar_eunit}


%files
%doc LICENSE.txt
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1305 |21cr|erlang-getopt-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname getopt
%global upstream jcomellas
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}


Name:		erlang-%{realname}
Version:	1.0.2
Release:	1
Summary:	Erlang module to parse command line arguments using the GNU getopt syntax
Group:		Development/Erlang
License:	BSD
URL:		http://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/v%{version}/%{realname}-%{version}.tar.gz
BuildRequires:	erlang-rebar
#BuildRequires:  erlang-getopt


%description
Command-line parsing module that uses a syntax similar to that of GNU getopt.

%files
%doc LICENSE.txt
%doc README.md examples/
%{erlang_appdir}/

#----------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{realname}-%{version}

chmod 0644 examples/*.escript

%build
%{erlang_compile}

%install
%{erlang_install}


%check
# BEWARE rebar needs bootstrapped getopt in case of an API change
%{erlang_test}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1306 |21cr|erlang-goldrush-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname goldrush
%global upstream DeadZen
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}

Name:       erlang-%{realname}
Version:    0.2.0
Release:    1
Group:      Development/Erlang
Summary:    Small, fast event processing and monitoring for Erlang/OTP applications
License:    MIT
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
BuildRequires:	erlang-rebar


%description
A small Erlang app that provides fast event stream processing.


%prep
%setup -qn %{realname}-%{version}


%build
%{erlang_compile}


%install
%{erlang_install}


%if 0
%check
%{erlang_test}
%endif


%files
%doc LICENSE
%doc README.org
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1307 |21cr|erlang-iconv-1.0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%global srcname iconv

%global p1_utils_ver 1.0.25

Name:       erlang-%{srcname}
Version:    1.0.13
Release:    1

Group:      Development/Erlang
Summary:    Fast encoding conversion library for Erlang / Elixir
License:    ASL 2.0
URL:        https://github.com/processone/iconv/
Source0:    https://github.com/processone/iconv/archive/%{version}/%{srcname}-%{version}.tar.gz

Provides:   erlang-p1_iconv = %{version}-%{release}
Obsoletes:  erlang-p1_iconv < 1.0.0-3

BuildRequires: gcc
BuildRequires: erlang-p1_utils >= %{p1_utils_ver}
BuildRequires: erlang-rebar

Requires: erlang-p1_utils >= %{p1_utils_ver}


%description
Erlang bindings for libiconv. This is used by ejabberd.


%prep
%setup -qn iconv-%{version}


%build
%configure --enable-nif
%{rebar_compile}


%check
%{rebar_eunit}


%install
install -d %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib

install -pm755 priv/lib/iconv.so %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib/
%{erlang_install}


%files
%doc LICENSE.txt
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1308 |21cr|erlang-idna-6.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname idna

Name:       erlang-%{srcname}
Version:    6.1.1
Release:    1
BuildArch:  noarch

License:    MIT
Summary:    Erlang IDNA lib
Group:      Development/Erlang
URL:        https://github.com/benoitc/erlang-idna
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-rebar
BuildRequires: erlang-unicode_util_compat

Requires: erlang-unicode_util_compat


%description
A pure Erlang IDNA implementation that folllows RFC5891.


%prep
%setup -q -n %{name}-%{version}


%build
%{rebar_compile}


%install
%{erlang_install}


%check
#%%{rebar_eunit}


%files
%license LICENSE
%doc CHANGELOG
%doc README.md
%{erlang_appdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1309 |21cr|erlang-jiffy-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global realname jiffy
%global commit 1febce3ca86c5ca5d5a3618ed3d5f125bb99e4c5

Name:           erlang-%{realname}
Version:        1.1.1
Release:        1
Summary:        Erlang JSON parser
Group:          Development/Erlang
License:        MIT
URL:            https://github.com/davisp/jiffy
Source0:        https://github.com/davisp/jiffy/archive/%{version}/%{realname}-%{version}.tar.gz
BuildRequires:  erlang-rebar
BuildRequires:  gcc-c++
BuildRequires:  double-conversion-devel
Provides:       %{realname} = %{version}
Obsoletes:      %{realname} < %{version}

%description
A JSON parser for Erlang implemented as a NIF.


%prep
%autosetup -p 1 -n %{realname}-%{version}

rm -r c_src/double-conversion


%build
%{erlang_compile}


%install
%{erlang_install}


%check
#%%{erlang_test}


%files
%{erlang_appdir}/
%doc README.md
%doc LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1310 |21cr|erlang-jose-1.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname jose
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}

Name:		erlang-%{srcname}
Version:	1.10.1
Release:	1

Group:		Development/Erlang
License:	MPLv2.0
Summary:	JSON Object Signing and Encryption (JOSE) for Erlang and Elixir
URL:		https://github.com/potatosalad/erlang-jose
Source0:	%{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
# Workaround for https://github.com/potatosalad/erlang-jose/issues/47
Patch1:		0001-Remove-warnings_as_errors-to-work-around-47.patch

BuildRequires: erlang-base64url
BuildRequires: erlang-rebar
BuildRequires: erlang-triq
BuildRequires: erlang-jsx
BuildRequires: erlang-jiffy
BuildRequires: erlang-public_key

%description
%{summary}.


%prep
%autosetup -p1 -n %{name}-%{version}


%build
%{rebar_compile}


%check
#%%{rebar_eunit}


%install
%{erlang_install}


%files
%doc LICENSE*
%doc ALGORITHMS.md
%doc CHANGELOG.md
%doc examples
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1311 |21cr|erlang-jsx-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname jsx
%global upstream talentdeficit
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}


Name:		erlang-%{realname}
Version:	3.1.0
Release:	1
Group:		Development/Erlang
Summary:	A streaming, evented json parsing toolkit
License:	MIT
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/talentdeficit/jsx/archive/refs/tags/v%{version}.tar.gz?/%{realname}-%{version}.tar.gz
BuildRequires:	erlang-rebar


%description
An Erlang application for consuming, producing and manipulating json. inspired
by yajl.


%prep
%setup -q -n %{realname}-%{version}


%build
%{erlang_compile}


%install
%{erlang_install}


%check
%{erlang_test}


%files
%doc LICENSE
%doc CHANGES.md README.md
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1312 |21cr|erlang-lager-3.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname lager
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}

Name:		erlang-%{realname}
Version:	3.9.2
Release:	1
Summary:	A logging framework for Erlang/OTP
Group:		Development/Erlang
License:	ASL 2.0
URL:		http://github.com/%{name}/%{realname}
Source0:	https://github.com/%{name}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
BuildRequires:	erlang-goldrush >= 0.1.9
BuildRequires:	erlang-rebar

%description
Lager (as in the beer) is a logging framework for Erlang. Its purpose is to
provide a more traditional way to perform logging in an erlang application that
plays nicely with traditional UNIX logging tools like logrotate and syslog.

%files
%doc LICENSE
%doc README.md
%{erlang_appdir}/

#-----------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{erlang_compile}

%install
%{erlang_install}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1313 |21cr|erlang-lfe-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define realname lfe
%define upstream rvirding

# Set this to true when starting a rebuild of the whole erlang stack. There's a
# cyclical dependency between erlang-erts, erlang-lfe, and erlang-rebar so this
# package (erlang-lfe) needs to get built first in bootstrap mode.
%bcond_without bootstrap

Name:		erlang-%{realname}
Version:	1.3
Release:	1
Summary:	Lisp Flavoured Erlang
Group:		Development/Erlang
License:	BSD
Url:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
Patch1:		erlang-lfe-0001-Remove-support-for-erlang-packages.patch
Patch2:		erlang-lfe-0002-Convert-to-proper-UTF-8.patch
%if %{with bootstrap}
BuildRequires:	erlang-compiler
%else
BuildRequires:	erlang-rebar
%endif

%description
Lisp Flavoured Erlang, is a lisp syntax front-end to the Erlang
compiler. Code produced with it is compatible with "normal" Erlang
code. An LFE evaluator and shell is also included.

%files
%doc LICENSE README.md doc/ examples/
%{_bindir}/lfe
%{_bindir}/lfec
%{_bindir}/lfescript
%{_libdir}/erlang/lib/%{realname}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{realname}-%{version}
%patch1 -p1 -b .no_erl_packages
%patch2 -p1 -b .proper_utf8

%build
%if %{with bootstrap}
mkdir ebin
erlc -o ./ebin/ src/*.erl
%else
%rebar_compile
%endif

%install
install -m 0755 -d %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/{bin,ebin,priv}
install -p -m 0755 -D ebin/* %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/ebin/
install -p -m 0755 -D bin/*  %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/bin/
%if %{with bootstrap}
echo "we are going to install only bare minimum of LFE - just for rebar bootstrapping"
%else
install -p -m 0755 priv/%{realname}_drv.so %{buildroot}%{_libdir}/erlang/lib/%{realname}-%{version}/priv/
%endif
install -m 0755 -d %{buildroot}%{_bindir}
ln -s %{_libdir}/erlang/lib/%{realname}-%{version}/bin/{lfe,lfec,lfescript} %{buildroot}%{_bindir}/

%check
%if %{with bootstrap}
echo "No tests during bootstrapping"
%else
rebar eunit -v
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1314 |21cr|erlang-luerl-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname luerl
# Erlang packages do not provide debug subpackages.
%global debug_package %{nil}

Name:       erlang-%{srcname}
Version:    1.0
Release:    1

Group:      Development/Erlang
License:    ASL 2.0
Summary:    Lua in Erlang
URL:        https://github.com/rvirding/%{srcname}
Source0:    https://github.com/rvirding/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: dos2unix
BuildRequires: erlang-rebar
BuildRequires: erlang-eunit

%description
An experimental implementation of Lua 5.2 written solely in pure Erlang.


%prep
%setup -qn %{srcname}-%{version}

dos2unix examples/hello/hello2-3.lua


%build
%{rebar_compile}


%check
%{rebar_eunit}


%install
%{erlang_install}


%files
%doc LICENSE
%doc examples
%doc README.md
%doc src/NOTES
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1315 |21cr|erlang-meck-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname meck
%global upstream eproxus
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}


Name:		erlang-%{realname}
Version:	0.9.2
Release:	1
Summary:	A mocking library for Erlang
Group:		Development/Erlang
License:	ASL 2.0
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
Patch0:		erlang-meck-0001-Disable-erlang-unite-test-output-highlighting.patch
#BuildRequires:	erlang-hamcrest
BuildRequires:	erlang-rebar
# FIXME - calls to unexported cover:compile_beam/2, cover:get_term/1,
# cover:write/2


%description
With meck you can easily mock modules in Erlang. Since meck is intended to be
used in testing, you can also perform some basic validations on the mocked
modules, such as making sure no function is called in a way it should not.


%prep
%autosetup -p1 -n %{realname}-%{version}


%build
%{erlang_compile}


%install
%{erlang_install}


%check
#%%{erlang_test -C test.config}


%files
%doc LICENSE
%doc README.md NOTICE
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1316 |21cr|erlang-mqtree-1.0.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%global srcname mqtree

%global p1_utils_ver 1.0.25


Name:       erlang-%{srcname}
Version:    1.0.15
Release:    1

# c_src/uthash.h is unspecified BSD
License:    ASL 2.0 and BSD
Summary:    Index tree for MQTT topic filters
Group:      Development/Erlang
URL:        https://github.com/processone/mqtree/
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-p1_utils >= %{p1_utils_ver}
BuildRequires: erlang-rebar
BuildRequires: gcc
BuildRequires: openssl-devel

Requires: erlang-p1_utils >= %{p1_utils_ver}


%description
mqtree is an Erlang NIF implementation of N-ary tree
to keep MQTT topic filters for efficient matching.


%prep
%setup -q -n %{srcname}-%{version}


%build
%{rebar_compile}


%install
install -d %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib

install -pm755 priv/lib/* %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib/
%{erlang_install}


%check
%{rebar_eunit}


%files
%license LICENSE
%doc README.md
%{erlang_appdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1317 |21cr|erlang-p1_acme-1.0.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname p1_acme

%global idna_ver 6.0.0
%global jiffy_ver 1.0.5
%global jose_ver 1.9.0
%global yconf_ver 1.0.7

Name:       erlang-%{srcname}
Version:    1.0.19
Release:    1
BuildArch:  noarch

License:    ASL 2.0
Summary:    ACME client library for Erlang
Group:      Development/Erlang
URL:        https://github.com/processone/p1_acme/
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-idna >= %{idna_ver}
BuildRequires: erlang-jiffy >= %{jiffy_ver}
BuildRequires: erlang-jose >= %{jose_ver}
BuildRequires: erlang-rebar
BuildRequires: erlang-yconf >= %{yconf_ver}

Requires: erlang-idna >= %{idna_ver}
Requires: erlang-jiffy >= %{jiffy_ver}
Requires: erlang-jose >= %{jose_ver}
Requires: erlang-yconf >= %{yconf_ver}


%description
ACME client library for Erlang.


%prep
%autosetup -p1 -n %{srcname}-%{version}


%build
%{rebar_compile}


%check
%{rebar_eunit}


%install
%{erlang_install}


%files
%license LICENSE.txt
%doc CHANGELOG.md
%doc README.md
%{erlang_appdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1318 |21cr|erlang-p1_mysql-1.0.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname p1_mysql
# Erlang packages do not provide debug subpackages
%global debug_package %{nil}

Name:       erlang-%{srcname}
Version:	1.0.20
Release:	1

Group:      Development/Erlang
Summary:    Pure Erlang MySQL driver
License:    BSD
URL:        https://github.com/processone/p1_mysql/
Source0:    https://github.com/processone/p1_mysql/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-eunit
BuildRequires: erlang-rebar
BuildRequires: erlang-rpm-macros


%description
This is an Erlang MySQL driver, used by ejabberd.


%prep
%setup -qn p1_mysql-%{version}


%build
%{rebar_compile}


%check
%{rebar_eunit}


%install
%{erlang_install}


%files
%doc COPYING
%doc README.md
%{_erllibdir}/%{srcname}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1319 |21cr|erlang-p1_oauth2-0.6.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname p1_oauth2
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}

Name:       erlang-%{srcname}
Version:    0.6.11
Release:    1

Group:      Development/Erlang
License:    MIT
Summary:    An Oauth2 implementation for Erlang
URL:        https://github.com/processone/%{srcname}
Source0:    https://github.com/processone/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-meck >= 0.8.3
BuildRequires: erlang-proper
BuildRequires: erlang-rebar


%description
This library is designed to simplify the implementation of the server side of
OAuth2. It is a fork of erlang-oauth2 by processone, and is needed by ejabberd.


%prep
%setup -qn %{srcname}-%{version}


%build
%{rebar_compile}


%check
%{rebar_eunit}


%install
%{erlang_install}


%files
%doc LICENSE
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1320 |21cr|erlang-p1_pgsql-1.1.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname p1_pgsql
%global upstream processone
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}

Name:       erlang-%{realname}
Version:    1.1.18
Release:    1

License:    ERPL
Summary:    Pure Erlang PostgreSQL driver
Group:      Development/Erlang
URL:        https://github.com/%{upstream}/%{realname}
Source0:    https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz

Provides:   erlang-pgsql = %{version}-%{release}
Obsoletes:  erlang-pgsql < 0-16

BuildRequires: erlang-rebar
BuildRequires: erlang-eunit

%description
Pure Erlang PostgreSQL driver.

%prep
%setup -qn %{realname}-%{version}

%build
%{erlang_compile}

%check
%{rebar_eunit}

%install
%{erlang_install}

%files
%doc README.md
%doc EPLICENSE
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1321 |21cr|erlang-p1_utils-1.0.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global srcname p1_utils
# Erlang packages do not provide debug subpackages
%global debug_package %{nil}


Name:       erlang-%{srcname}
Version:    1.0.25
Release:    2
Group:      Development/Erlang
Summary:    Erlang utility modules from ProcessOne

License:    ASL 2.0
URL:        https://github.com/processone/p1_utils/
Source0:    https://github.com/processone/p1_utils/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-rebar
BuildRequires: erlang-edoc
BuildRequires: erlang-eunit

%description
p1_utils is an application containing ProcessOne modules and tools that are
leveraged in other development projects.


%prep
%autosetup -p1 -n %{srcname}-%{version}


%build
%{rebar_compile}
%{rebar_doc}


%check
%{rebar_eunit}


%install
%{erlang_install}


%files
%doc LICENSE.txt
%doc CHANGELOG.md
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1322 |21cr|erlang-parse_trans-3.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname parse_trans
%global upstream uwiger


Name:		erlang-%{realname}
Version:	3.4.1
Release:	1
Summary:	Parse transform utilities for Erlang
Group:		Development/Erlang
License:	EPL 1.1 and ASL 2.0
URL:		https://github.com/%{upstream}/%{realname}
#VCS:		scm:git:https://github.com/%{upstream}/%{realname}.git
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
BuildRequires:	erlang-edown
BuildRequires:	erlang-rebar
BuildArch:	noarch

%description
Parse transform utilities for Erlang.

%files
%license LICENSE
%doc doc/ examples/ README.md
%{erlang_appdir}/

#-----------------------------------------------------------------
%prep
%autosetup -p 1 -n %{realname}-%{version}


%build
%{erlang_compile}


%install
%{erlang_install}


%check
%{erlang_test}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1323 |21cr|erlang-pkix-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pkix

Name:       erlang-%{srcname}
Version:    1.0.9
Release:    1
BuildArch:  noarch

License:    ASL 2.0
Summary:    PKIX certificates management for Erlang
Group:      Development/Erlang
URL:        https://github.com/processone/pkix/
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-rebar
BuildRequires: erlang-public_key

Requires: ca-certificates


%description
A library for managing TLS certificates in Erlang.


%prep
%setup -q -n %{srcname}-%{version}


%build
%{rebar_compile}


%install
%{erlang_install}

# pkix includes a CA bundle in priv/cacert.pem. Let's use a symlink to Fedora's CA bundle instead.
install -d -m 0755 %{buildroot}/%{erlang_appdir}/priv
ln -s /etc/pki/tls/certs/ca-bundle.trust.crt %{buildroot}/%{erlang_appdir}/priv/cacert.pem


%check
%{rebar_eunit}


%files
%license LICENSE
%doc README.md
%{erlang_appdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1324 |21cr|erlang-proper-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname proper
%global upstream manopapad
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}


Name:       erlang-%{realname}
Version:    1.4
Release:    1
Group:      Development/Erlang
Summary:    A QuickCheck-inspired property-based testing tool for Erlang

License:    GPLv3+
URL:        https://github.com/%{upstream}/%{realname}
Source0:    https://github.com/proper-testing/proper/archive/refs/tags/v%{version}.tar.gz?/%{realname}-%{version}.tar.gz

BuildRequires: erlang-rebar


%description
PropEr (PROPerty-based testing tool for ERlang) is a QuickCheck-inspired
open-source property-based testing tool for Erlang.


%prep
%setup -qn %{realname}-%{version}


%build
# The docs need to be built first: https://github.com/proper-testing/proper/issues/179
./scripts/make_doc
%{erlang_compile}


%install
%{erlang_install}


%check
#%%{erlang_test}


%files
%doc COPYING
%doc doc
%doc examples
%doc README.md
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1325 |21cr|erlang-protobuffs-0.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname protobuffs
%global upstream basho
%global debug_package %{nil}


Name:		erlang-%{realname}
Version:	0.9.1
Release:	2
Summary:	A set of Protocol Buffers tools and modules for Erlang applications
Group:		Development/Erlang
License:	MIT
URL:		https://github.com/%{upstream}/erlang_%{realname}
Source0:	https://github.com/%{upstream}/erlang_%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
Source1:	erlang-protobuffs-protoc-erl
BuildRequires:	erlang-meck
# FIXME
BuildRequires:	erlang-proper
BuildRequires:	erlang-rebar


%description
A set of Protocol Buffers tools and modules for Erlang applications.


%prep
%setup -qn erlang_%{realname}-%{version}


%build
%{erlang_compile}


%install
%{erlang_install}
# Install Erlang protobuf compiler script
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/protoc-erl


%if 0
%check
%{erlang_test}
%endif


%files
%doc LICENSE
%doc AUTHORS CONTRIBUTING.md README.md README_ORIG.md RELNOTES.md
%{_bindir}/protoc-erl
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1326 |21cr|erlang-providers-1.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname providers
%global upstream tsloughter

Name:		erlang-%{realname}
Version:	1.9.0
Release:	2
Summary:	An Erlang providers library
Group:		Development/Erlang
License:	LGPLv3
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/tsloughter/providers/archive/%{version}.tar.gz?/%{realname}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	erlang-rebar
BuildRequires:	erlang-rpm-macros

%description
%{summary}.

%prep
%autosetup -n %{realname}-%{version}

%build
%{erlang_compile}

%install
%{erlang_install}

%check
%{erlang_test}

%files
%license LICENSE
%doc README.md
%{erlang_appdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1327 |21cr|erlang-rebar-2.6.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname rebar
%global upstream rebar
%global debug_package %{nil}

#%%{?need_bootstrap}%{?!need_bootstrap:%bcond_with bootstrap}

#uncomment for manual enable bootstrap build
#after build bootstraped rebar, build erlang-cf and after this disable bootstrap
#%%bcond_without bootstrap

Name:		erlang-%{realname}
Version:	2.6.4
Release:	5
Summary:	Erlang Build Tools
Group:		Development/Tools
License:	MIT
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
Source1:	rebar.escript
# Fedora/EPEL-specific
Patch1:		rebar-0001-Load-templates-from-the-filesystem-first.patch
# Fedora/EPEL-specific
Patch2:		rebar-0002-Remove-bundled-mustache.patch
# The bundled getopt is necessary to do the initial bootstrap since
# erlang-getopt requires erlang-rebar to build and vice versa.
# Fedora/EPEL-specific
Patch3:		rebar-0003-Remove-bundled-getopt.patch
# Will be proposed for inclusion
Patch4:		rebar-0004-Allow-discarding-building-ports.patch
# Fedora/EPEL-specific - we're using at least R16B03
Patch5:		rebar-0005-Remove-any-traces-of-long-time-obsolete-escript-fold.patch
Patch6:		rebar-0006-remove-abnfc.patch
Patch7:		rebar-0007-Remove-support-for-gpb-compiler.patch
# Fedora/EPEL-specific - we're using at least R16B03
Patch8:		rebar-0008-Remove-pre-R15B02-workaround.patch
# Fedora/EPEL-specific - keep until we dump R16B03-1 and 17.x.y entirely
Patch9:		rebar-0009-No-such-function-erlang-timestamp-0.patch
# Fedora/EPEL-specific - allow vsn variable override
Patch10:	rebar-0010-Try-shell-variable-VSN-first.patch
# Fedora/EPEL-specific - allow overriding missind deps error (versions
# mismatch)
Patch11:	rebar-0011-Allow-ignoring-missing-deps.patch
Patch12:	rebar-0012-Don-t-use-deprecated-crypto-rand_uniform-2.patch
#liberl_interface removed from erlang >22
Patch13:	rebar-remove-liberl_interface.patch

%if %{with bootstrap}
BuildRequires:	erlang-asn1
BuildRequires:	erlang-common_test
BuildRequires:	erlang-compiler
BuildRequires:	erlang-crypto
BuildRequires:	erlang-dialyzer
BuildRequires:	erlang-diameter
BuildRequires:	erlang-edoc
BuildRequires:	erlang-erl_interface
BuildRequires:	erlang-eunit
BuildRequires:	erlang-lfe
BuildRequires:	erlang-parsetools
BuildRequires:	erlang-reltool
BuildRequires:	erlang-rpm-macros
BuildRequires:	erlang-snmp
BuildRequires:	erlang-syntax_tools
BuildRequires:	erlang-tools
%else
BuildRequires:	erlang-rebar
# FIXME remove later and revisit getopt<->rebar bootstrapping
BuildRequires:  erlang-getopt
Requires:	erlang-cf
%endif

# This one cannot be picked up automatically
# See https://bugzilla.redhat.com/960079
Requires:	erlang-common_test
# Requires for port compiling - no direct references in Rebar's src/*.erl files
Requires:	erlang-erl_interface
# This one cannot be picked up automatically
# See https://bugzilla.redhat.com/960079
Requires:	erlang-parsetools

# FIXME (ROSA): should be detected automatically
Requires:	erlang-asn1
Requires:	erlang-compiler
Requires:	erlang-crypto
Requires:	erlang-dialyzer
Requires:	erlang-diameter
Requires:	erlang-edoc
Requires:	erlang-eunit
Requires:	erlang-lfe
Requires:	erlang-reltool
Requires:	erlang-rpm-macros
Requires:	erlang-snmp
Requires:	erlang-syntax_tools
Requires:	erlang-tools
Requires:	erlang-rpm-macros >= 0.2.2
Provides:	%{realname} = %{version}-%{release}

%description
Erlang Build Tools.


%prep
%autosetup -p1 -n %{realname}-%{version}
%if %{with bootstrap}
%patch3 -p1 -R
%endif

%build
%if %{with bootstrap}
./bootstrap
./rebar compile -v
%else
%{erlang_compile}
%endif


%install
%{erlang_install}
# Install rebar script itself
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/rebar
# Copy the contents of priv folder
cp -a priv %{buildroot}%{_erllibdir}/%{realname}-%{version}/

%files
%doc README.md THANKS rebar.config.sample
%doc LICENSE
%{_bindir}/rebar
%{erlang_appdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1328 |21cr|erlang-rebar3-3.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname rebar3
%global upstream rebar
%global debug_package %{nil}

%{?need_bootstrap}%{?!need_bootstrap:%bcond_with bootstrap}

#enable bootstrap build
%bcond_without bootstrap

Name:		erlang-%{realname}
Version:	3.20.0
Release:	1
Summary:	Erlang Build Tools
Group:		Development/Tools
License:	MIT
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/%{upstream}/%{realname}/archive/%{version}/%{realname}-%{version}.tar.gz
Source1:	rebar3.escript
# from Fedora
Patch3:		erlang-rebar3-0003-WIP-ignore-deps-on-demand.patch
BuildRequires:	perl
%if %{without bootstrap}
BuildRequires:	erlang-rebar3
%endif
BuildRequires:	erlang-certifi
BuildRequires:	erlang-getopt
BuildRequires:	erlang-erlware_commons
BuildRequires:	erlang-inets
BuildRequires:	erlang-ssl_verify_fun
BuildRequires:	erlang-ssl
BuildRequires:	erlang-providers
BuildRequires:	erlang-public_key
BuildRequires:	erlang-rpm-macros >= 0.2.2
BuildRequires:	erlang-bbmustache
BuildRequires:	erlang-relx
BuildRequires:	erlang-cf
BuildRequires:	erlang-cth_readable
BuildRequires:	erlang-eunit_formatters

Requires:	erlang-certifi
Requires:	erlang-getopt
Requires:	erlang-erlware_commons
Requires:	erlang-inets
Requires:	erlang-ssl_verify_fun
Requires:	erlang-ssl
Requires:	erlang-providers
Requires:	erlang-public_key
Requires:	erlang-rpm-macros >= 0.2.2
Requires:	erlang-bbmustache
Requires:	erlang-relx
Requires:	erlang-cf
Requires:	erlang-cth_readable
Requires:	erlang-eunit_formatters
Requires:	erlang-rpm-macros

Provides:	%{realname} = %{EVRD}
#i dont know needed noarch or not :(
BuildArch:	noarch

%description
Erlang Build Tools.

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
ebin_paths=$(perl -e 'print join(":", grep { !/rebar/} (glob("%{_libdir}/erlang/lib/*/ebin"), glob("%{_datadir}/erlang/lib/*/ebin")))')

%if %{with bootstrap}
#use precompiled binary rebar3 for build
echo "BOOTSTRAP BUILD"
DIAGNOSTIC=1 ./bootstrap bare compile --paths $ebin_paths --separator :
%else
#use system rebar3 for compile
echo "SYSTEM REBAR USE"
DEBUG=1 %{realname} bare compile --paths $ebin_paths --separator :
%endif

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/erlang/lib/%{realname}-%{version}/ebin/
mkdir -p %{buildroot}%{_datadir}/erlang/lib/%{realname}-%{version}/priv/
mkdir -p %{buildroot}%{_mandir}/man1/

# Install rebar script itself
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/rebar3

%if %{with bootstrap}
install -p -m644 _build/bootstrap/lib/rebar/ebin/*.beam %{buildroot}%{_datadir}/erlang/lib/%{realname}-%{version}/ebin/
install -p -m644 _build/bootstrap/lib/rebar/ebin/%{upstream}.app %{buildroot}%{_datadir}/erlang/lib/%{realname}-%{version}/ebin/
%else
install -p -m644 ebin/*.beam %{buildroot}%{_datadir}/erlang/lib/%{realname}-%{version}/ebin/
install -p -m644 ebin/%{upstream}.app %{buildroot}%{_datadir}/erlang/lib/%{realname}-%{version}/ebin/
%endif
install -p -m755 -d priv/* %{buildroot}%{_datadir}/erlang/lib/%{realname}-%{version}/priv/
install -p -m644 manpages/%{realname}.1 %{buildroot}%{_mandir}/man1/


%files
%license LICENSE
%doc README.md
%{_bindir}/%{realname}
%{erlang_appdir}/*
%{_mandir}/man1/%{realname}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1329 |21cr|erlang-relx-4.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname relx
%global upstream erlware

Name:		erlang-%{realname}
Version:	4.7.0
Release:	1
Summary:	Release assembler for Erlang/OTP Releases
Group:		Development/Erlang
License:	ASL 2.0
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/erlware/relx/archive/v%{version}.tar.gz?/%{realname}-v%{version}.tar.gz
BuildRequires:	erlang-rebar
BuildRequires:	erlang-bbmustache
Requires:	erlang-rebar
Requires:	erlang-bbmustache
BuildArch: noarch

%description
Relx assembles releases for an Erlang/OTP release. Given a release
specification and a list of directories in which to search for OTP applications
it will generate a release output.

%files
%license LICENSE.md
%doc README.md
%{erlang_appdir}/*

#--------------------------------------------------------------------
%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%{erlang_compile}

#DO enable test on release version 4.0.0, now tests broken
#%%check
#%%{erlang_test}

%install
%{erlang_install}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1330 |21cr|erlang-riak_client-2.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname riak-erlang-client
%global upstream basho
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}


Name:		erlang-riak_client
Version:	2.9.2
Release:	1
Summary:	Erlang client for Riak
Group:		Development/Erlang
License:	ASL 2.0
URL:		https://github.com/%{upstream}/riak-erlang-client
Source0:	https://github.com/basho/riak-erlang-client/archive/refs/tags/riak_kv-2.9.2.tar.gz?/%{realname}-%{version}.tar.gz
Patch1:		erlang-riak_client-0001-Allow-more-Erlang-versions.patch
Patch2:		erlang-riak_client-0002-Add-deprecation-for-Erlang-20-as-well.patch
Patch3:		erlang-riak_client-0003-Remove-excessive-export_all-directive.patch
BuildRequires:	erlang-riak_pb
BuildRequires:	erlang-rebar
Provides:	riak-erlang-client%{?_isa} = %{version}-%{release}


%description
Erlang client for Riak.


%prep
%autosetup -p1 -n riak-erlang-client-riak_kv-%{version}

%build
%{rebar_compile}


%install
%{erlang_install}


%check
%{erlang_test}


%files
%doc LICENSE
%doc README.md
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1331 |21cr|erlang-riak_pb-2.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname riak_pb
%global upstream basho
# Techincally, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}


Name:		erlang-%{realname}
Version:	2.9.2
Release:	1
Summary:	Riak Protocol Buffers Messages
Group:		Development/Erlang
License:	ASL 2.0
URL:		https://github.com/%{upstream}/%{realname}
Source0:	https://github.com/basho/riak_pb/archive/refs/tags/riak_kv-%{version}.tar.gz?/%{realname}-%{version}.tar.gz
Patch1:		erlang-riak_pb-0001-Remove-export_all-directive.patch
# FIXME add Python and Java bindings
#BuildRequires:	erlang-hamcrest
BuildRequires:	erlang-protobuffs >= 0.7.0
BuildRequires:	erlang-rebar


%description
The message definitions for the Protocol Buffers-based interface to Riak and
various Erlang-specific utility modules for the message types.


%prep
%autosetup -p1 -n %{realname}-riak_kv-%{version}


%build
%{erlang_compile}


%install
%{erlang_install}


%check
%{erlang_test}


%files
%doc LICENSE
%doc README.md
%{erlang_appdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1332 |21cr|erlang-rpm-macros-0.3.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		erlang-rpm-macros
Version:	0.3.6
Release:	2
Summary:	Macros for simplifying building of Erlang packages
Group:		Development/Erlang
License:	MIT
URL:		https://github.com/fedora-erlang/erlang-rpm-macros
Source0:	https://github.com/fedora-erlang/erlang-rpm-macros/archive/%{version}/%{name}-%{version}.tar.gz
# Mageia patches
Patch50:	erlang-rpm-macros-0.2.9-mageiafy.patch
BuildArch:	noarch
# This package does not make sense without rpm-build,
# but rpm-build is always installed when these macros are used.
# rabbitmq-server automatically depends from erlang-rebar, which depends from this package.
# I don't know if that automatic dependency is correct. Avoid pulling rpm-build and its
# dependencies when installing e.g. rabbitmq-server.
#Requires:	rpm-build
# Requires for BEAM parsing
Requires:	python3-pybeam
# Requires for so-lib parsing
Requires:	python3-pyelftools
Requires:	python3-rpm
Requires:	erlang-crypto
Requires:	erlang-erts

%description
Macros for simplifying building of Erlang packages.

%files
%doc LICENSE
%doc README
%{_rpmconfigdir}/erlang-find-provides
%{_rpmconfigdir}/erlang-find-requires
%{_rpmconfigdir}/fileattrs/erlang.attr
%{_rpmmacrodir}/*erlang*

#---------------------------------------------------------
%prep
%setup -q
# not needed in rpm4
%patch50 -p1


%build
# Nothing to build


%install
install -d %{buildroot}%{_rpmconfigdir}/fileattrs
install -p -m 0755 erlang-find-provides.py %{buildroot}%{_rpmconfigdir}/erlang-find-provides
install -p -m 0755 erlang-find-requires.py %{buildroot}%{_rpmconfigdir}/erlang-find-requires
install -p -m 0644 erlang.attr %{buildroot}/%{_rpmconfigdir}/fileattrs/erlang.attr
%install_macro erlang macros.erlang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1333 |21cr|erlang-sd_notify-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global realname sd_notify
%global upstream systemd

%global debug_package %{nil}

Name:		erlang-%{realname}
Version:	1.1
Release:	1
Summary:	Erlang interface to systemd notify subsystem
Group:		Development/Other
License:	MIT
URL:		https://github.com/%{upstream}/erlang-%{realname}
Source0:	https://github.com/%{upstream}/erlang-%{realname}/archive/v%{version}/erlang-%{realname}-%{version}.tar.gz
BuildRequires:	erlang-rebar
BuildRequires:	erlang-erl_interface
BuildRequires:	pkgconfig(systemd)


%description
%{summary}.

%files
%doc LICENSE
%{erlang_appdir}/*

#------------------------------------------------------
%prep
%setup -q

%build
%{erlang_compile}

%install
%{erlang_install}

%check
%{erlang_test}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1334 |21cr|erlang-sqlite3-1.1.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define srcname sqlite3

Name:		erlang-%{srcname}
Version:	1.1.13
Release:	1
Summary:	Sqlite gen_server port for Erlang. Creates, reads and writes to sqlite database
Group:		Development/Erlang
License:	ErlPL-1.1
Url:		https://github.com/processone/erlang-sqlite3
Source0:	https://github.com/processone/erlang-sqlite3/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar
BuildRequires:	erlang-rebar
BuildRequires:	pkgconfig(sqlite3)

%description
This library allows you to work with SQLite3 databases from Erlang.

%prep
%setup -q -n %{name}-%{version}
rm -rf sqlite3_amalgamation

%build
autoreconf -vfi
%configure
%{rebar_compile}

%install
%{erlang_install}

%check
%{rebar_eunit}

%files
%license LICENSE
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1335 |21cr|erlang-ssl_verify_fun-1.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname ssl_verify_fun
%global upstream deadtrickster
%global upstream_reponame %{realname}.erl

Name:		erlang-%{realname}
Version:	1.1.6
Release:	1
Summary:	Collection of ssl verification functions for Erlang
Group:		Development/Erlang
License:	MIT
URL:		https://github.com/%{upstream}/%{upstream_reponame}
Source0:	https://github.com/%{upstream}/%{upstream_reponame}/archive/%{version}/%{upstream_reponame}-%{version}.tar.gz
# Fix the path used in `load_cert/1` during tests
Patch0:		erlang-ssl_verify_fun-fix-tests-load_cert.patch
BuildArch:	noarch
BuildRequires:	erlang-rebar
BuildRequires:	erlang-public_key
Requires:	erlang-rebar

%description
%{summary}.

%prep
%setup -q -n %{upstream_reponame}-%{version}
%patch0

%build
%{erlang_compile}

%install
%{erlang_install}

%check
%{erlang_test}

%files
%license LICENSE
%doc README.md
%{erlang_appdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1336 |21cr|erlang-stringprep-1.0.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%global srcname stringprep

%global p1_utils_ver 1.0.25


Name:		erlang-%{srcname}
Version:	1.0.28
Release:	1

Group:		Development/Erlang
License:	ASL 2.0 and TCL
Summary:	A framework for preparing Unicode strings to help input and comparison
URL:		https://github.com/processone/stringprep/
Source0:	https://github.com/processone/stringprep/archive/%{version}/%{srcname}-%{version}.tar.gz

Provides:	erlang-p1_stringprep = %{version}-%{release}
Obsoletes:	erlang-p1_stringprep < 1.0.3

BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	erlang-rebar
BuildRequires:	erlang-p1_utils >= %{p1_utils_ver}

Requires:	erlang-p1_utils >= %{p1_utils_ver}


%description
Stringprep is a framework for preparing Unicode test strings in order to
increase the likelihood that string input and string comparison work. The
principle are defined in RFC-3454: Preparation of Internationalized Strings.
This library is leverage Erlang native NIF mechanism to provide extremely fast
and efficient processing.


%prep
%setup -qn stringprep-%{version}


%build
%{rebar_compile}


%install
install -d %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib

install -pm755 priv/lib/* %{buildroot}%{_erllibdir}/%{srcname}-%{version}/priv/lib/
%{erlang_install}


%check
#%%{rebar_eunit}


%files
%doc LICENSE.txt LICENSE.TCL LICENSE.ALL
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1337 |21cr|erlang-stun-1.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname stun
# Erlang packages don't seem to ship debug files, as the build process does not generate them
%global debug_package %{nil}

%global fast_tls_ver 1.0.23
%global p1_utils_ver 1.0.25


Name:		erlang-%{srcname}
Version:	1.2.5
Release:	1

Group:		Development/Erlang
License:	ASL 2.0
Summary:	STUN and TURN library for Erlang / Elixir
URL:		https://github.com/processone/stun/
Source0:	https://github.com/processone/stun/archive/%{version}/%{srcname}-%{version}.tar.gz
# This test failed on 1.0.22 as well, so it must be a Fedora dependency that changed.
# https://github.com/processone/stun/issues/21
Patch0:		0000-Remove-a-failing-test.patch

Provides:	erlang-p1_stun = %{version}-%{release}
Obsoletes:	erlang-p1_stun < 1.0.7-3

BuildRequires:	erlang-edoc
BuildRequires:	erlang-rebar
#BuildRequires:	erlang-fast_tls >= %{fast_tls_ver}
BuildRequires:	erlang-p1_utils >= %{p1_utils_ver}

#Requires:	erlang-fast_tls >= %{fast_tls_ver}
Requires:	erlang-p1_utils >= %{p1_utils_ver}


%description
STUN and TURN library for Erlang / Elixir. Both STUN (Session Traversal
Utilities for NAT) and TURN standards are used as techniques to establish media
connection between peers for VoIP (for example using SIP or Jingle) and WebRTC.


%prep
%autosetup -p1 -n stun-%{version}


%build
%{rebar_compile}


%install
%{erlang_install}


##check
#{rebar_eunit}


%files
%doc LICENSE.txt
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1338 |21cr|erlang-triq-1.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname triq
%global upstream triq
# Technically, we're noarch; but erlang whose directories we install into is not.
%global debug_package %{nil}


Name:		erlang-%{realname}
Version:	1.3.0
Release:	5
Summary:	A property-based testing library for Erlang
Group:		Development/Erlang
License:	ASL 2.0
URL:		https://gitlab.com/%{upstream}/%{realname}
Source0:	https://gitlab.com/%{upstream}/%{realname}/-/archive/v%{version}/%{realname}-%{version}.tar.bz2
Patch0:		increase-test-timeouts.patch
Patch1:		0001-Skip-failing-test.patch

BuildRequires:	erlang-rebar
BuildRequires:	erlang-eunit

%description
A property-based testing library for Erlang.


%prep
%setup -q -n %{realname}-v%{version}-e68b47fe7b9e963ec45edf3bf9d5a4cd81831e3c
%autopatch -p1

%build
%{erlang_compile}


%install
%{erlang_install}


%check
%{erlang_test}


%files
%doc LICENSE
%doc NOTICE README.org THANKS
%{erlang_appdir}/





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1339 |21cr|erlang-unicode_util_compat-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname unicode_util_compat

Name:       erlang-%{srcname}
Version:    0.7.0
Release:    1
BuildArch:  noarch

License:    ASL 2.0
Summary:    A unicode_util compatibility library for Erlang < 20
Group:      Development/Erlang
URL:        https://github.com/benoitc/unicode_util_compat
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-rebar


%description
This allows the usage of unicode_util and string from Erlang R21 in
older erlang >= R18.


%prep
%setup -q -n %{srcname}-%{version}


%build
%{rebar_compile}


%install
%{erlang_install}


%check
%{rebar_eunit}


%files
%license LICENSE
%doc README.md
%{erlang_appdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1340 |21cr|erlang-xmpp-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global _disable_ld_no_undefined 1

%global srcname xmpp

%global fast_xml_ver 1.1.32
%global p1_utils_ver 1.0.12
%global stringprep_ver 1.0.12

Name:       erlang-%{srcname}
Version:    1.7.0
Release:    1
Summary:    Erlang/Elixir XMPP parsing and serialization library

Group:      Development/Erlang
License:    ASL 2.0
URL:        https://github.com/processone/xmpp/
Source0:    https://github.com/processone/xmpp/archive/%{version}/xmpp-%{version}.tar.gz
Patch0:     xmpp-erl_tidy.patch
BuildRequires: gcc
BuildRequires: erlang-ezlib
BuildRequires: erlang-fast_tls
BuildRequires: erlang-fast_xml >= %{fast_xml_ver}
BuildRequires: erlang-p1_utils >= %{p1_utils_ver}
BuildRequires: erlang-idna
BuildRequires: erlang-rebar
BuildRequires: erlang-stringprep >= %{stringprep_ver}

Requires: erlang-ezlib
Requires: erlang-fast_tls
Requires: erlang-fast_xml >= %{fast_xml_ver}
Requires: erlang-p1_utils >= %{p1_utils_ver}
Requires: erlang-idna
Requires: erlang-stringprep >= %{stringprep_ver}


%description
XMPP is an Erlang XMPP parsing and serialization library, built on top of Fast
XML.


%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%{rebar_compile}


%install
%{erlang_install}

install -p -D -m 755 priv/lib/* --target-directory=%{buildroot}%{erlang_appdir}/priv/lib/


%check
#%%{rebar_eunit}


%files
%doc LICENSE.txt
%doc CHANGELOG.md
%doc doc
%doc README.md
%{erlang_appdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1341 |21cr|erlang-yconf-1.0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname yconf

%global fast_yaml_ver 1.0.27

Name:       erlang-%{srcname}
Version:    1.0.13
Release:    1
BuildArch:  noarch

License:    ASL 2.0
Summary:    YAML configuration processor
Group:      Development/Erlang
URL:        https://github.com/processone/yconf/
Source0:    %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires: erlang-fast_yaml >= %{fast_yaml_ver}
BuildRequires: erlang-rebar

Requires: erlang-fast_yaml >= %{fast_yaml_ver}


%description
YAML configuration processor.


%prep
%setup -q -n %{srcname}-%{version}


%build
%{rebar_compile}


%install
%{erlang_install}


%check
%{rebar_eunit}


%files
%license LICENSE
%doc CHANGELOG.md
%doc README.md
%{erlang_appdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1342 |21cr|ermixer-0.8-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ermixer
Summary:	A full featured OSS mixer
Version:	0.8
Release:	12
License:	GPL
Group:		Sound
URL:		http://ermixer.sourceforge.net
Source:		http://erevan.cuore.org/files/ermixer/%{name}-%{version}.tar.bz2
Patch0:		ermixer-0.8-fix-link.patch
BuildRequires:	ncurses-devel

%description
This is a very sophisticated OSS mixer with a lot of useful 
features like handling of multiple profile files, it offers 
a complete interface to the mixer capatibilities. You can
use it with a nice curses interface or with a command line 
interface (useful for use it in scripts).

%prep
%setup -q 
%patch0 -p0 -b .link

%build
%configure
%make

%install
rm -fr %buildroot
%makeinstall_std

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%name.desktop
[Desktop Entry]
Type=Application
Exec=/usr/bin/ermixer
Icon=sound_section
Categories=AudioVideo;Player;Audio;
Name=Ermixer
Comment=A full featured OSS mixer
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%files
%defattr(-,root,root)
%doc INSTALL COPYING
%{_bindir}/ermixer
%{_mandir}/man1/ermixer.1*
%{_datadir}/applications/mandriva-ermixer.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1343 |21cr|esmtp-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	User configurable relay-only Mail Transfer Agent (MTA)
Name:		esmtp
Version:	1.2
Release:	10
License:	GPLv2+
Group:		Networking/Mail
# http://flow.dl.sourceforge.net/sourceforge/esmtp/
Url:		http://esmtp.sourceforge.net
Source0:	http://heanet.dl.sourceforge.net/sourceforge/esmtp/%{name}-%{version}.tar.bz2
BuildRequires:	libesmtp-devel
Provides:	sendmail-command
Requires(post,postun):	update-alternatives

%description
ESMTP is a user configurable relay-only Mail Transfer Agent (MTA) with a
sendmail-compatible syntax. It's based on libESMTP supporting the AUTH
(including the CRAM-MD5 and NTLM SASL mechanisms) and the StartTLS SMTP
extensions.

So these are ESMTP features:

 * requires no administration privileges
 * individual user configuration
 * sendmail command line compatible
 * supports the AUTH SMTP extension, with the CRAM-MD5 and NTLM SASL
   mechanisms
 * support the StartTLS SMTP extension
 * does not receive mail, expand aliases or manage a queue

%files
%doc AUTHORS README TODO ChangeLog sample.esmtprc
%config(noreplace) %{_sysconfdir}/esmtprc
%{_bindir}/%{name}
%{_bindir}/mailq
%{_bindir}/newaliases
%{_libdir}/sendmail
%{_sbindir}/sendmail
%{_mandir}/man1/*
%{_mandir}/man5/%{name}rc.5*

%post
# sendmail-alternatives
update-alternatives --install %{_sbindir}/sendmail sendmail-command %{_bindir}/%{name} 20

%postun
# sendmail-alternatives
if [ "$1" = 0 ]; then
    update-alternatives --remove sendmail-command %{_bindir}/%{name}
fi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# Avoid making symlinks, this is done  by make alternatives.
sed -i 's/\(.*LN_S.*\)/\#\1/' Makefile.in
%configure
%make

%install
%makeinstall_std
install -d %{buildroot}%{_sbindir}

install -d %{buildroot}%{_sysconfdir}
install -m0644 sample.esmtprc %{buildroot}%{_sysconfdir}/esmtprc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1344 |21cr|etch-0.0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Rendering framework
Name:		etch
Version:	0.0.7
Release:	4
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/turran/etch/
# From git
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(eina)

%description
Generic rendering framework library used by other libraries.
Part of Enesim framework.

%files
%{_bindir}/*

#---------------------------------------------------------------------

%package -n %{libname}
Summary:	Generic rendering framework library
Group:		System/Libraries

%description -n %{libname}
Generic rendering framework library used by other libraries.
Part of Enesim framework.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	Enesim headers, static libraries, documentation and test programs
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Headers, static libraries, test programs and documentation for etch.

%files -n %{devname}
%doc ChangeLog README COPYING
%{_libdir}/pkgconfig/etch.pc
%{_includedir}/*
%{_libdir}/*.so

#---------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1345 |21cr|etckeeper-1.18.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Store /etc in a SCM system (git, mercurial, bzr or darcs)
Name:		etckeeper
Version:	1.18.5
Release:	4
Group:		System/Base
License:	GPLv2+
Url:		http://etckeeper.branchable.com/
Source0:	https://github.com/joeyh/etckeeper/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	README.ROSA
Patch0:		etckeeper-makefile-remove-python-plugins.patch
Requires:	crontabs
Requires:	git
BuildArch:	noarch

%description
The etckeeper program is a tool to let /etc be stored in a git,
mercurial, bzr or darcs repository.

To start using the package please read README.

%files
%doc README.md README.ROSA
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/*.d
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_sysconfdir}/cron.daily/%{name}
%{_datadir}/bash-completion/completions/%{name}
%{_localstatedir}/cache/%{name}
%{_sysconfdir}/etckeeper/daily
%{_unitdir}/etckeeper.service
%{_unitdir}/etckeeper.timer

%post
if [ $1 -gt 1 ] ; then
   %{name} update-ignore
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
sed -e 's|HIGHLEVEL_PACKAGE_MANAGER=apt|HIGHLEVEL_PACKAGE_MANAGER=urpmi|' \
    -e 's|LOWLEVEL_PACKAGE_MANAGER=dpkg|LOWLEVEL_PACKAGE_MANAGER=rpm|' \
    -i etckeeper.conf
sed -e 's|^prefix=.*|prefix=%{_prefix}|' \
    -e 's|^bindir=.*|bindir=%{_bindir}|' \
    -e 's|^etcdir=.*|etcdir=%{_sysconfdir}|' \
    -e 's|^mandir=.*|mandir=%{_mandir}|' \
    -e 's|^vardir=.*|vardir=%{_localstatedir}|' \
    -e 's|^INSTALL=.*|INSTALL=install -p|' \
    -e 's|^CP=.*|CP=cp -pR|' \
    -i Makefile

cp -av %{SOURCE1} .

%build
%make

%install
%makeinstall_std

install -D -p debian/cron.daily %{buildroot}%{_sysconfdir}/cron.daily/%{name}
install -d  %{buildroot}%{_localstatedir}/cache/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1346 |21cr|etc-update-20020731-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		etc-update
Version:	20020731
Release:	15
Summary:	Mergemaster for Linux
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.1
Patch0:		etc-update-foo.patch.bz2
URL:		http://www.xs4all.nl/~hanb/software
License:	GPLv2+
Group:		System/Configuration/Packaging
BuildArch:	noarch

%description
After an update with urpmi rpm makes .rpmnew  copies  of  all  files  it
knows it should not overwrite. Of course you have to look at  all  those
files and merge any changes. A tedious and much forgotten job.


%prep
%setup -q
%patch0 -p1 -b .foo

%build

%install
install -m 755 %{name} -D %{buildroot}%{_bindir}/%{name}
install -m 644 %{name}rc -D %{buildroot}%{_sysconfdir}/%{name}rc
install -m 644 %{SOURCE1} -D %{buildroot}%{_mandir}/man1/%{name}.1

%files
%doc CHANGES
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1347 |21cr|eterm-0.9.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	Eterm

# this situation is similar to Berkeley DB
%define major	%{version}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Terminal emulator
Name:		eterm
Version:	0.9.6
Release:	6
License:	BSD
Group:		Terminals
URL:		http://eterm.sourceforge.net/
Source0:	https://github.com/mej/Eterm/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source5:	%{oname}-bg-%{version}.tar.gz
Patch0:		eterm-headers.patch
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	libast-devel >= 0.5
BuildRequires:	utempter-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	twin-devel
BuildRequires:	pkgconfig(xres)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:  groff-for-man man
BuildRequires:	gdb
Requires(pre):	ncurses
# needed by Etbg_update_list script
Requires(post):	diffutils
Conflicts:	ncurses-extraterms
Provides:	%{oname} = %{version}-%{release}
Obsoletes:	%{oname} < %{version}-%{release}

%description
Eterm is a color vt102 terminal emulator intended as a replacement for Xterm.
It is designed with a Freedom of Choice philosophy, leaving as much power,
flexibility, and freedom as possible in the hands of the user.

It is designed to look good and work well, but takes a feature-rich approach
rather than one of minimalism while still maintaining speed and efficiency.

It works on any window manager/desktop environment, although it is designed
to work and integrate best with Enlightenment.

%files
%doc ChangeLog README ReleaseNotes doc/Eterm_reference.html doc/README.Escreen
%{_bindir}/*
%dir %{_datadir}/Eterm
%config(noreplace) %{_datadir}/Eterm/themes
%{_datadir}/Eterm/pix
%{_mandir}/man1/Eterm.1.*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/%{oname}/gdb.scr
%{_datadir}/terminfo/E/*

%post
update-alternatives --install /usr/bin/xvt xvt /usr/bin/Eterm 15
%{_bindir}/Etbg_update_list

%postun
[ "$1" = "0" ]&& update-alternatives --remove xvt /usr/bin/Eterm

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library from Eterm (Enlightened Terminal Emulator)
Group:		Terminals

%description -n	%{libname}
Eterm is a color vt102 terminal emulator intended as a replacement for Xterm.
It is designed with a Freedom of Choice philosophy, leaving as much power,
flexibility, and freedom as possible in the hands of the user.

It is designed to look good and work well, but takes a feature-rich approach
rather than one of minimalism while still maintaining speed and efficiency.

It works on any window manager/desktop environment, although it is designed
to work and integrate best with Enlightenment.

This library is essential for Eterm to work.

%files -n %{libname}
%{_libdir}/lib%{oname}-%{major}.so

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel files for Eterm
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{oname}-devel = %{version}-%{release}

%description -n %{devname}
Eterm is a color vt102 terminal emulator intended as a replacement for Xterm.
It is designed with a Freedom of Choice philosophy, leaving as much power,
flexibility, and freedom as possible in the hands of the user.

It is designed to look good and work well, but takes a feature-rich approach
rather than one of minimalism while still maintaining speed and efficiency.

It works on any window manager/desktop environment, although it is designed
to work and integrate best with Enlightenment.

This package provides the necessary development libraries and include files
to allow you to develop or compile programs that needs Eterm, though no such
program has existed so far.

%files -n %{devname}
%{_libdir}/lib%{oname}.so

#-------------------------------------------------------------------------
%prep
%setup -q -a5 -n %{oname}-%{version}
%apply_patches

# patch1 also sets $TERM = xterm for all themes,
# do that here since patch1 is not applied
find themes/ -name 'theme.cfg.in' -print0 | xargs -0 -r perl -pi -e 's/term_name Eterm/term_name xterm/'

%build
./autogen.sh
%configure \
  --enable-etwin \
  --enable-escreen-fx \
  --enable-profile \
  --enable-trans \
  --with-backspace=bs \
%ifnarch %{armx}
  --enable-mmx \
%endif
  --enable-utmp \
  --with-delete=execute \
  --enable-auto-encoding \
  --enable-multi-charset \
  --enable-xim \
  --enable-greek \
  --disable-static

%make

%install
%makeinstall_std

# Install menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Eterm
Comment=Enlightened Terminal Emulator
Exec=Eterm
Icon=terminals_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-System-Terminals;System;TerminalEmulator;
EOF

mkdir -p %{buildroot}%{_datadir}/terminfo/E
tic -o %{buildroot}%{_datadir}/terminfo doc/Eterm.ti


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1348 |21cr|ethemes-1.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ethemes
Version:	1.1
Release:	 19
License:	GPL
Summary:	Themes for Enlightenment
Group:		Graphical desktop/Enlightenment

Source:		ethemes-%{version}.tar.bz2

Requires:	enlightenment >= 0.16
BuildArchitectures: noarch
URL:		http://e.themes.org/
Prefix:		%{_prefix}

%description
This package contains some nice themes for Enlightenment.

%description -l fr
Ce package contient des themes pour Enlightenment.

%prep
%setup -q -n  %{name} 

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{prefix}/X11R6/share/enlightenment/themes/
cp -a * $RPM_BUILD_ROOT%{prefix}/X11R6/share/enlightenment/themes/
cd $RPM_BUILD_ROOT%{prefix}/X11R6/share/enlightenment/themes/Absolute_E/sound/samples
for sample in *.wav;
 do ln -sf %{prefix}/X11R6/share/enlightenment/themes/BrushedMetal-Tigert/sound/samples/$sample .;
done
find $RPM_BUILD_ROOT -type d -a -name .xvpics | xargs rm -rf

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%{prefix}/X11R6/share/enlightenment/themes/Absolute_E
%{prefix}/X11R6/share/enlightenment/themes/Aliens
%{prefix}/X11R6/share/enlightenment/themes/minEguE
%{prefix}/X11R6/share/enlightenment/themes/GTK+

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1349 |21cr|etherape-0.9.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical network viewer modeled after etherman
Name:		etherape
Version:	0.9.20
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		http://etherape.sourceforge.net/
Source0:	https://sourceforge.net/projects/etherape/files/etherape/%{version}/%{name}-%{version}.tar.gz
Patch0:		etherape-goocanvas3.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	itstool
BuildRequires:	yelp-tools
BuildRequires:	libpcap-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(goocanvas-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(popt)
Requires:	usermode-consoleonly

%description
Etherape is a graphical network monitor for Unix modeled after
etherman. Featuring ether, ip and tcp modes, it displays network
activity graphically. Hosts and links change in size with traffic. 
Color coded protocols display. It supports ethernet, ppp and slip 
devices. It can filter traffic to be shown, and can read traffic 
from a file as well as live from the network. 

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README* FAQ
%config(noreplace) %{_sysconfdir}/pam.d/etherape
%config(noreplace) %{_sysconfdir}/security/console.apps/etherape
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man1/*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std bindir=%{_sbindir}
mkdir -p %{buildroot}%{_bindir}

mv %{buildroot}/%{_sbindir}/etherape %{buildroot}/%{_sbindir}/etherape.real
ln -sf %{_bindir}/consolehelper %{buildroot}/%{_bindir}/etherape

perl -pi -e 's,%{name}.png,%{name},g' %{buildroot}%{_datadir}/applications/*

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="System" \
  --add-category="Monitor" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# pam.d
install -m 755 -d %{buildroot}%{_sysconfdir}/pam.d
cat > %{buildroot}%{_sysconfdir}/pam.d/%{name} << _EOF_
#%PAM-1.0
auth       sufficient	pam_rootok.so
auth       required     pam_console.so
auth       sufficient	pam_timestamp.so
auth       include	system-auth
account    required	pam_permit.so
session    optional	pam_xauth.so
session    optional	pam_timestamp.so
_EOF_

# console.apps
install -m 755 -d %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} << _EOF_
USER=root
PROGRAM=%{_sbindir}/etherape.real
SESSION=true
FALLBACK=false
_EOF_

# fd.o icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m 644 %{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 %{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# remove files not bundled
rm -rf %{buildroot}%{_datadir}/gnome

%find_lang %{name} --with-gnome


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1350 |21cr|ethstatus-0.4.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Console-based ethernet statistics monitor
Name:		ethstatus
Version:	0.4.9
Release:	3
License:	GPLv2+
Group:		Monitoring
Url:		http://packages.debian.org/stable/net/ethstatus
Source0:	http://ftp.de.debian.org/debian/pool/main/e/ethstatus/%{name}_%{version}.tar.xz
BuildRequires:	pkgconfig(ncurses)

%description
EthStatus is a simple, easy to use program for displaying commonly 
needed / wanted statistics in real time about ingoing and outgoing
traffic that is usually hard to find, with a simple, efficient
interface.

%files
%doc CHANGELOG COPYRIGHT README THANKS
%{_bindir}/%{name}
%{_mandir}/man*/%{name}*.*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%make CFLAGS="%{optflags}"

%install
install -Dp -m 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dp -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1351 |21cr|etl-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_enable_debug_packages	%{nil}
%global	debug_package		%{nil}

%define	oname ETL
%define	devname %mklibname %{name} -d

Summary:	Template library for synfig
Name:		etl
Version:	1.5.1
Release:	1
License:	GPLv2+
Group:		Development/C++
Url:		https://www.synfig.org
Source0:	https://downloads.sourceforge.net/synfig/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(glibmm-2.4) >= 2.24.2

%description
Voria ETL is a multi-platform class and template library designed to add new
data types and functions which combine well with the existing types and
functions from the C++ Standard Template Library (STL).

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Template library for synfig
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name} = %{EVRD}

%description -n %{devname}
Voria ETL is a multi-platform class and template library designed to add new
data types and functions which combine well with the existing types and
functions from the C++ Standard Template Library (STL).

%files -n %{devname}
%doc AUTHORS README NEWS
%{_bindir}/%{oname}-config
%{_includedir}/%{oname}
%{_libdir}/pkgconfig/%{oname}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}


%build
autoreconf -vfi
# Smth in our configure macro breaks etl_profile header,
# just call the script directly
./configure --target=%{_target_platform} \
		--program-prefix=%{?_program_prefix} \
		--prefix=%{_prefix} \
		--exec-prefix=%{_exec_prefix} \
		--bindir=%{_bindir} \
		--sbindir=%{_sbindir} \
		--sysconfdir=%{_sysconfdir} \
		--datadir=%{_datadir} \
		--includedir=%{_includedir} \
		--libdir=%{_libdir} \
		--libexecdir=%{_libexecdir} \
		--localstatedir=%{_localstatedir} \
		--sharedstatedir=%{_sharedstatedir} \
		--mandir=%{_mandir} \
		--infodir=%{_infodir}

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1352 |21cr|etoys-5.0.2408-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define source  %{name}-%{version}

Name:		etoys
Summary:	A media-rich model, game, and simulation construction kit and authoring tool
Version:	5.0.2408
Release:	3
Source0:        http://download.sugarlabs.org/sources/sucrose/glucose/etoys/%{name}-%{version}.tar.gz
URL:		http://squeakland.org/
License:	MIT/Apache
BuildArch:	noarch
Group:		Development/Other
Requires:	squeak-vm >= 3.10
Requires:	shared-mime-info
BuildRequires:	gettext

%description
Squeak Etoys was inspired by LOGO, PARC-Smalltalk, Hypercard,
and starLOGO. It is a media-rich authoring environment with a
simple powerful scripted object model for many kinds of objects
created by end-users that runs on many platforms, and is free
and open source. It includes graphics, images, text, particles,
presentations, web-pages, videos, sound and MIDI, etc.

%prep
%setup -q

%build
./autogen.sh --prefix=%{_prefix}
%make ROOT=%{buildroot}

%install
make install-etoys ROOT=%{buildroot}

%files
%{_datadir}/etoys
%{_bindir}/etoys
%{_datadir}/doc/etoys
%{_datadir}/mime/packages/etoys.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1353 |21cr|etswitch-0.1.14-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ETSWITCH - A *nix 'minimizer' for a few games
Name:		etswitch
Version:	0.1.14
Release:	14
License:	GPLv2+
Group:		Games/Other
Url:		http://hem.bredband.net/b400150/
Source0:	http://hem.bredband.net/b400150/etswitch/%{name}-%{version}.tar.gz
Patch0:		etswitch-0.1.14-missing-argument-in-open.patch
Patch1:		etswitch-0.1.14-gcc10.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	desktop-file-utils

%description
A minimizer for all OpenGL and SDL games natively supported by GNU/Linux.

%files
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/etswitch
%{_datadir}/applications/etswitch.desktop
%{_mandir}/man1/etswitch.*
%{_datadir}/pixmaps/etswitch.png
%{_datadir}/pixmaps/etswitch.xpm

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

sed -i -e 's/^Icon=%{name}.png$/Icon=%{name}/g' %{name}.desktop.in

%build
%configure \
	--enable-debug=no \
	--disable-debug

%make

%install
%makeinstall_std

desktop-file-install \
	--remove-category="Tool" \
	--remove-category="Application" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1354 |21cr|ettercap-0.8.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libname %mklibname %{name} %{major}
%define libnameui %mklibname %{name}-ui %{major}
%define devname %mklibname %{name} -d

Summary:	Ncurses/Gtk based sniffer/interceptor utility
Name:		ettercap
Version:	0.8.3.1
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://ettercap.github.io/ettercap/
Source:		https://github.com/Ettercap/ettercap/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		ettercap-0.8.2-fix-desktop-file.patch
Patch1:		ettercap-0.8.3-ncurses-tinfo.patch
Patch2:		ettercap-0.8.3-harfbuzz-header-path.patch
Patch3:		ettercap-0.8.1-radius-stack-overflow.patch
Patch4:		2168090f5b023573ebea0f83574950401ed5d67b.patch
Patch5:		ettercap-linking.patch
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	ghostscript
BuildRequires:	groff
BuildRequires:	libnet-devel
BuildRequires:	libtool-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
Ettercap is a suite for man in the middle attacks on LAN.

It features sniffing of live connections, content filtering
on the fly and many other interesting tricks.

It supports active and passive dissection of many protocols
(even ciphered ones) and includes many feature for network
and host analysis.

%files
%doc AUTHORS CHANGELOG INSTALL LICENSE README* THANKS TODO TODO.TESTING doc/*
%{_appdatadir}/ettercap.metainfo.xml
%{_bindir}/*
%{_datadir}/ettercap
%{_datadir}/applications/ettercap.desktop
%{_datadir}/pixmaps/ettercap.svg
%{_datadir}/polkit-1/actions/org.pkexec.ettercap.policy
%{_libdir}/ettercap
%{_mandir}/man?/*
%dir %{_sysconfdir}/ettercap
%config(noreplace) %{_sysconfdir}/ettercap/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Ettercap shared library
Group:		System/Libraries
Obsoletes:	%{_lib}ettercap-devel < 0.8.3.1

%description -n %{libname}
Ettercap shared library.

%files -n %{libname}
%{_libdir}/libettercap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameui}
Summary:	Ettercap shared library
Group:		System/Libraries

%description -n %{libnameui}
Ettercap shared library.

%files -n %{libnameui}
%{_libdir}/libettercap-ui.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
%cmake \
	-DENABLE_IPV6=yes \
	-DCMAKE_BUILD_TYPE=Release
%make

%install
%makeinstall_std -C build

# Useless without header files
rm -f %{buildroot}%{_libdir}/libettercap.so
rm -f %{buildroot}%{_libdir}/libettercap-ui.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1355 |21cr|etw-3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           etw
Version:        3.6
Release:        1
Summary:        Eat the Whistle is a multi-platform 2D soccer game
License:        GPLv2
Group:          Games/Sports
Url:            http://www.ggsoft.org/etw/
Source0:        http://downloads.sourceforge.net/project/etw/etw-sources/%{version}/ETW-%{version}-src.tar.gz
Source1:        etw-data-3.6.tar.xz
Patch0:         fix_build.diff
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(gdk-2.0)
Requires:       %{name}-data = %{EVRD}

%description
Eat The Whistle is a multiplayer soccer game with a lot of unique features.

Features:
* System friendly. Run in a window or fullscreen, can be played
  also on old machines (runs pefectly on a P200).
* World cup, leagues, cups with real teams (with slightly modified
  names).
* Can be played through keyboard or joypad/joysticks (USB or Gameport).
* Network playing through TCP/IP (not yet finished).
* Very intuitive control method with acceleration/deceleration.
* More than 550 frames of animations for the players, 300 for the
  goalkeeper, 100 for the refree and a lot of other graphics.
* 30 different fields, including muddy, frozen and wet.
* Fouls, corners, throw-in with an intuitive control system.
* Role playing. (You can play a match as the whole team or only as a player).
* About every thing in the game is configurable via intuitive menus.
* Game Tactics and tactic editor.
* Heading and other special shots with intuitive controls.
* Team players (with individual stats)
* Import SWOS (Sensible word of soccer) teams.
* Arcade mode with powerups, bonuses... (something like Speedball II).
* Replays (with load/save option).

%files
%doc *.txt
%{_bindir}/etw
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/*.desktop
%{_gamesbindir}/%{name}.bin
#------------------------------------------------------------------

%package data
Summary:        Data files for %{name}
BuildArch:      noarch

%description data 
This package contains arch-independent data files for %{name}
game (sounds, graphics, game scripts and texts).

%files data
%doc README.*
%{_gamesdatadir}/etw/
#------------------------------------------------------------------

%prep
%setup -q -a 1
%patch0 -p1
sed -i -e 's|pkg-config --cflags sdl|sdl-config --cflags|g' Makefile.linux
sed -i -e 's|pkg-config --libs sdl|sdl-config --libs|g' Makefile.linux

%build
%make 

%install
install -dm 755 %{buildroot}%{_gamesbindir}
install -m 755 %{name} %{buildroot}%{_gamesbindir}/%{name}.bin

# wrapper
install -dm 755 %{buildroot}%{_bindir}
cat > %{name} <<EOF
#!/bin/sh
cd %{_gamesdatadir}/etw
%{_gamesbindir}/etw.bin
EOF
install -m 755 %{name} %{buildroot}%{_bindir}

# icons
install -Dm 644 %{name}.png \
  %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png

# data
install -d %{buildroot}%{_gamesdatadir}/etw
pushd etw-data-3.6
cp -r * %{buildroot}%{_gamesdatadir}/etw
popd
rm %{buildroot}%{_gamesdatadir}/etw/newgfx/.cvsignore
rm -rf %{buildroot}%{_gamesdatadir}/etw/t/
rm -rf %{buildroot}%{_gamesdatadir}/etw/saves/

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Eat the Whistle
GenericName=etw
Comment=2D soccer game
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Game;SportsGame;
StartupNotify=true
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1356 |21cr|e-uae-0.8.29-2.WIP4.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

%define cdrname cdrtools
%define cdrmainvers 2.01
%define cdrvers %{cdrmainvers}a38
%define wiprel WIP4

# For building with SCSI support
%define build_scsi 0
%{?_with_scsi: %global build_scsi 1}
%{?_without_scsi: %global build_scsi 0}

Summary:	A software emulation of the Amiga system
Name:		e-uae
Version:	0.8.29
Release:	2.%{wiprel}.3
License:	GPLv2+
Group:		Emulators
Url:		http://sourceforge.net/projects/uaedev/
Source0:	e-uae-%{version}-%{wiprel}.tar.bz2
Source1:	ftp://ftp.berlios.de/pub/cdrecord/alpha/%{cdrname}-%{cdrvers}.tar.bz2
Source10:	%{name}.rpmlintrc
Patch4:		uae-0.8.25-20040302-libscg.patch
Patch5:		e-uae-ucontext_t.patch
Patch7:		e-uae-0.8.29-WIP4-sdlkeys-wahcade.patch
Patch8:		e-uae-fix-string-format-bug.patch
BuildRequires:	x11-data-xkbdata
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
Conflicts:	uae
ExclusiveArch:	%{ix86} %{x86_64}

%description
UAE is a software emulation of the Amiga system hardware, which
enables you to run most available Amiga software.  Since it is a
software emulation, no extra or special hardware is needed.  The Amiga
hardware is emulated accurately, so that Amiga software is tricked
into thinking it is running on the real thing.  Your computer's
display, keyboard, hard disk and mouse assume the roles of their
emulated counterparts.

Note that to fully emulate the Amiga you need the Amiga KickStart ROM
images, which are copyrighted and, of course, not included here.

[This is in an unofficial branch of UAE (the Ubiquitous Amiga Emulator)
with the aim of bringing the features of WinUAE to non-Windows platforms
such as Linux, Mac OS X and BeOS.]

%files
%doc docs/*
%{_bindir}/*
%{_libdir}/uae

#----------------------------------------------------------------------------

%prep
%setup -q -n e-uae-%{version}-%{wiprel} -a1
%patch4 -p1 -b .libscg
%patch5 -p1
%patch7
%patch8

%build
%if %{build_scsi}
# build libscg for scsi-device support
(cd %{cdrname}-%{cdrmainvers}
ln -sf i586-linux-cc.rul RULES/ia64-linux-cc.rul
ln -sf i586-linux-cc.rul RULES/x86_64-linux-cc.rul
ln -sf i586-linux-cc.rul RULES/amd64-linux-cc.rul
ln -sf i686-linux-cc.rul RULES/athlon-linux-cc.rul
pwd

CFLAGS="%{optflags}" \
CONFFLAGS="%{_target_platform} --prefix=%{_prefix}" \
        XL_ARCH=%{_target_cpu} ./Gmake)
(cd src
./install_libscg ../%{cdrname}-%{cdrmainvers})
%endif

# build uae
CFLAGS="%{optflags} -O3 -pipe -ffast-math -fomit-frame-pointer -Wa,--execstack" \
./configure \
	--prefix=%{_prefix} \
	--with-x \
	--with-sdl \
	--with-sdl-sound \
	--with-sdl-gfx \
	--enable-threads \
	--enable-ui \
	--enable-jit \
%if %{build_scsi}
	--enable-scsi-device \
	--with-libscg-includedir=`pwd`/src/include/ \
	--with-libscg-libdir=`pwd`/src \
%else
	--disable-scsi-device \
%endif
	--enable-bsdsock-new
make

%install
mkdir -p %{buildroot}%{_prefix}/bin \
	%{buildroot}%{_libdir}/uae/amiga/source

%makeinstall_std
cp -pR amiga/* %{buildroot}/%{_libdir}/uae/amiga/.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1357 |21cr|evemu-2.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Event Device Query and Emulation Program
Name:		evemu
Version:	2.7.0
Release:	2
License:	GPLv3+
Group:		Development/Other
Url:		http://www.freedesktop.org/wiki/Evemu/
Source0:	http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	asciidoc
BuildRequires:	xmlto
BuildRequires:	pkgconfig(libevdev) >= 1.3
BuildRequires:	pkgconfig(python3)

%description
%{name} is a simple utility to capture the event stream from input devices
and replay that stream on a virtual input device.

%files
%doc COPYING
%{_bindir}/%{name}-describe
%{_bindir}/%{name}-device
%{_bindir}/%{name}-play
%{_bindir}/%{name}-record
%{_bindir}/%{name}-event
%{_mandir}/man1/%{name}-*.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Event Device Query and Emulation Program Library Package
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with evemu.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Event Device Query and Emulation Program Development Package
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides headers files for evemu development.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Event Device Query and Emulation Program python3 module
Group:		System/Libraries

%description -n python3-%{name}
Event Device Query and Emulation Program python3 module.

%files -n python3-%{name}
%dir %{python3_sitelib}/evemu/
%{python3_sitelib}/evemu/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -vfi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1358 |21cr|evilwm-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A minimalist window manager for the X Window System
Name:		evilwm
Version:	1.4.0
Release:	1
License:	Public Domain
Group:		Graphical desktop/Other
Url:		http://evilwm.sourceforge.net/
Source0:	http://www.6809.org.uk/evilwm/%{name}-%{version}.tar.gz

BuildRequires:	lesstif-devel 
BuildRequires:	nas-devel 
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrandr)

%description
evilwm is a minimalist window manager for the X Window System.

The name evil came from Stuart 'Stuii' Ford, who thinks that any software
I use must be evil and masochistic.  In reality, this window manager is
clean and easy to use.

FEATURES

 * No window decorations apart from a simple 1 pixel border.
 * No icons.
 * Good keyboard control, including repositioning and maximise toggles.
 * Solid window drags (compile time option - may be slow on old machines).
 * Virtual desktops.
 * Small binary size (even with everything turned on).

%prep
%setup -q
sed -i -e 's!^#DEFINES.*-DVDESK.*!DEFINES += -DVDESK!' Makefile

%build
%make CC="gcc %{optflags}" LDPATH="-L%{_prefix}/X11R6/%{_lib}"

%install
%makeinstall_std

# startfile
cat > %{buildroot}%{_bindir}/start%{name} << EOF
#!/bin/sh
exec %{_bindir}/%{name}
EOF

# session file
install -d %{buildroot}%{_sysconfdir}/X11/wmsession.d
cat > %{buildroot}%{_sysconfdir}/X11/wmsession.d/16%{name} << EOF
NAME=%{name}
EXEC=%{_bindir}/start%{name}
DESC=%{name} window manager
SCRIPT:
exec %{_bindir}/start%{name}
EOF

%files
%doc README ChangeLog TODO
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/16%{name}
%{_bindir}/start%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1359 |21cr|evisum-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		evisum
Version:	0.6.0
Release:	1
Summary:	The Enlightenment system and process monitor
Group:		Graphical desktop/Enlightenment
License:	ISC
Url:		https://enlightenment.org
Source:		https://download.enlightenment.org/rel/apps/%name/%name-%version.tar.xz
BuildRequires:	meson
BuildRequires:	elementary-devel

%description
System and process monitor for Enlightenment

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}_cpu.desktop
%{_datadir}/applications/%{name}_mem.desktop
%{_iconsdir}/hicolor/*/apps/*.png

#-------------------------------------------------------
%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1360 |21cr|evolvotron-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#debuginfo-without-sources
%define debug_package %{nil}

Summary:	Interactive "generative art" software
Name:		evolvotron
Version:	0.8.0
Release:	1
License:	GPLv2+
Group:		Toys
Url:		http://evolvotron.sf.net
Source0:	http://prdownloads.sourceforge.net/evolvotron/%{name}-%{version}.tar.gz
BuildRequires:	boost-devel
BuildRequires:	qt5-devel

%description
Evolvotron Interactive "generative art" software to evolve images/textures/
patterns through an iterative process of random mutation and user-selection
driven evolution.  If you like lava lamps, and still think the Mandelbrot
set is cool, this could be the software for you.

%files
%doc LICENSE README.md TODO USAGE
%doc %{name}.html
%{_bindir}/%{name}*
%{_mandir}/man1/%{name}*.1*
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%qmake_qt5 main.pro
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 evolvotron/evolvotron evolvotron_mutate/evolvotron_mutate \
  evolvotron_render/evolvotron_render %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 man/man1/*.1 %{buildroot}%{_mandir}/man1

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Evolvotron
Comment=Interactive generative art software
Exec=%{name}
Icon=toys_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Qt;Amusement;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1361 |21cr|evopop-gtk-theme-2.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	EvoPop GTK theme for Gnome
Name:		evopop-gtk-theme
Version:	2.0.4
Release:	4
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://github.com/fdinardo/evopop-gtk-theme
Source0:	%{name}-%{version}.tar.gz
Requires:	gtk+3.0 >= 3.14.0
Requires:	murrine >= 0.98.1.1
BuildArch:	noarch

%description
EvoPop is the official GTK theme for Ozon OS.

%files
%doc LICENSE README.md
%dir %{_datadir}/themes/EvoPop
%{_datadir}/themes/EvoPop/*
#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1362 |21cr|evopop-icon-theme-0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Default icon theme for OzonOS
Name:		evopop-icon-theme
Version:	0.8
Release:	4
License:	GPLv3
Group:		Graphical desktop/Other
Url:		http://github.com/solus-project/evopop-icon-theme
Source0:	%{name}-%{version}.tar.gz

BuildArch:  noarch

%description
EvoPop is the official icon theme for Ozon OS.


%prep
%setup -q

%build
./autogen.sh

%install
%makeinstall_std


%files
%defattr(-,root,root)
%dir %{_datadir}/icons/EvoPop
%{_datadir}/icons/EvoPop/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1363 |21cr|exaile-4.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}
%global	__requires_exclude ^typelib\\(GtkosxApplication\\)(.*)

%define	url_ver %(echo %version | cut -d. -f1,2,3)

Summary:	A powerful GTK3 music player
Name:		exaile
Version:	4.1.2
Release:	1
Epoch:		1
Group:		Sound
License:	GPLv2+
Url:		https://www.exaile.org/
Source0:	https://github.com/exaile/exaile/archive/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	gettext
BuildRequires:	help2man
BuildRequires:	gir-repository
BuildRequires:	gobject-introspection
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	python3-sphinx
Requires:	gstreamer1.0-plugins-good >= 1.14
Requires:	gstreamer1.0-plugins-base >= 1.14
Requires:	gstreamer1.0-plugins-ugly
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-cdio
Requires:	python3-beautifulsoup4
Requires:	python3-bsddb3
Requires:	python3-cairo
Requires:	python3-gi-cairo
Requires:	python3-dbus
Requires:	python3-feedparser
Requires:	python3-gobject
Requires:	python3-gstreamer1.0
Requires:	python3-musicbrainzngs
Requires:	python3-mutagen >= 1.38
Requires:	python3-pylast
Requires:	typelib(GstApp)
Requires:	typelib(GstBase)
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(Keybinder)
Requires:	typelib(Rsvg)
Requires:	udisks2
BuildArch:	noarch

%description
Exaile is a music player inspired by KDE's Amarok, but for GTK3 and written in
Python. It incorporates many of the cool things from Amarok and other, like:
* automatic fetching of album art;
* handling of large libraries;
* lyrics fetching;
* artist/album information via the wikipedia;
* Last.fm support;
* optional iPod support;
* an advanced tag editor;
* a SHOUTcast directory browser.
In addition, it also includes:
* tabbed playlists (so you can have more than one playlist open at a time);
* blacklisting of tracks (so they don't get scanned into your library);
* downloading of guitar tablature from fretplay.com;
* submitting played tracks on your iPod to Last.fm.

%files -f %{name}.lang
%doc README.md
%config(noreplace) %{_sysconfdir}/xdg/%{name}/
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.*
%{_datadir}/dbus-1/services/org.%{name}.Exaile.service
#{_datadir}/bash-completion/completions/%%{name}
#{_datadir}/fish/vendor_completions.d/%%{name}.fish
#{_mandir}/man1/%%{name}.*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
# Only locale files need to be built 
%make locale


%install
# Exaile launcher works with LIBINSTALLDIR which is a relative path from %%{_prefix}.
%makeinstall_std PREFIX=%{_prefix} LIBINSTALLDIR=%{_datadir} DESTDIR=%{buildroot}

# Fix some other rpmlint warnings
chmod -x %{buildroot}%{_datadir}/%{name}/plugins/ipconsole/ipython_view.py
chmod -x %{buildroot}%{_datadir}/%{name}/plugins/bpm/bpmdetect.py
chmod -x %{buildroot}%{_datadir}/%{name}/plugins/ipconsole/ipython_view.py
chmod +x %{buildroot}%{_datadir}/%{name}/plugins/multialarmclock/*.py
chmod -x %{buildroot}%{_datadir}/%{name}/plugins/multialarmclock/{__init__,cellrenderers,macprefs}.py

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1364 |21cr|exfatprogs-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           exfatprogs
Version:        1.2.0
Release:        1
Summary:        Userspace utilities for exFAT filesystems
Group:          File tools
License:        GPLv2
URL:            https://github.com/%{name}/%{name}

Source0:        %{url}/releases/download/%{version}/%{name}-%{version}.tar.xz

BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc
BuildRequires:  libtool
BuildRequires:  make

%description
Utilities for formatting and repairing exFAT filesystems.

%prep
%autosetup

%build
autoreconf -vif
%configure \
    --enable-shared=yes \
    --enable-static=no
%make_build

%install
%make_install

%files
%license COPYING
%doc README.md
%{_sbindir}/dump.exfat
%{_sbindir}/exfat2img
%{_sbindir}/exfatlabel
%{_sbindir}/fsck.exfat
%{_sbindir}/mkfs.exfat
%{_sbindir}/tune.exfat
%{_mandir}/man8/dump.exfat.*
%{_mandir}/man8/exfat2img.*
%{_mandir}/man8/exfatlabel.*
%{_mandir}/man8/fsck.exfat.*
%{_mandir}/man8/mkfs.exfat.*
%{_mandir}/man8/tune.exfat.*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1365 |21cr|exframe-3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           exframe
Version:        3.4
Release:        1
Summary:        This package provides a framework to describe and typeset exercises
License:        The LaTeX Project Public License 1.3
Group:          Publishing
URL:            https://ctan.org/tex-archive/macros/latex/contrib/exframe
Source0:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/exframe.tar.xz
Source1:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/exframe.doc.tar.xz
Source2:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/exframe.source.tar.xz
BuildArch: noarch
BuildRequires:	texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post): texlive-kpathsea


%description
exframe is a LaTeX2e package which provides a general purpose
framework to describe and typeset exercises and exam questions
along with their solutions. The package features mechanisms to
hide or postpone solutions, to assign and handle points, to
collect problems on exercise sheets, to store and use metadata
and to implement a consistent numbering. It also provides a
very flexible interface for configuring and customising the
formatting, layout and representation of the exercise content.

%prep
%setup -c -a0 -a1 -a2

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -rf tex doc source %{buildroot}%{_texmfdistdir}

%files
%{_texmfdistdir}/tex/latex/exframe
%doc %{_texmfdistdir}/source/latex/exframe
%doc %{_texmfdistdir}/doc/latex/exframe
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1366 |21cr|exif-0.6.22-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line tools to access EXIF extensions in JPEG files
Name:		exif
Version:	0.6.22
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Graphics
Url:		https://github.com/libexif/exif
Source0:	http://downloads.sourceforge.net/project/libexif/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:	exif-0.6.22-add-empty-string-check.patch
Patch1:	exif-0.6.22-avoid-NULL-ptr-crash.patch
Patch2:	exif-0.6.22-specify-hexcode-of-unknown-tag.patch
BuildRequires:	gettext >= 0.18.3
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(popt)

%description
Most digital cameras produce EXIF files, which are JPEG files with extra tags
that contain information about the image. The EXIF library allows you to
parse an EXIF file and read the data from those tags.
This package contains a command line front-end for the EXIF library.

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build
%configure
%make


%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1367 |21cr|exim-4.96.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define tlsdir %{_sysconfdir}/pki/tls/%{name}

%bcond_without mysql
%bcond_with pgsql
%bcond_without monitor
%bcond_without exiscan
%bcond_with spf2
%bcond_with srs_alt
%bcond_without sqlite3
%bcond_without ldap
%bcond_without sasl2
%bcond_without logrotate
%bcond_without certs

%define altpriority 40
%define alternatives_install_cmd update-alternatives --install %{_sbindir}/sendmail mta %{_sbindir}/sendmail.exim %{altpriority} --slave %{_prefix}/lib/sendmail mta-in_libdir %{_sbindir}/sendmail.exim --slave %{_bindir}/mailq mta-mailq %{_bindir}/mailq.exim --slave %{_bindir}/newaliases mta-newaliases %{_bindir}/newaliases.exim --slave %{_bindir}/rmail mta-rmail %{_bindir}/rmail.exim --slave %{_sysconfdir}/aliases mta-etc_aliases %{_sysconfdir}/exim/aliases

Summary:	The exim mail transfer agent
Name:		exim
Version:	4.96.2
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.exim.org
Source0:	ftp://ftp.exim.org/pub/exim/exim4/%{name}-%{version}.tar.xz
# http://www.exim.org/pub/exim/exim4/config.samples.tar.bz2
Source2:	exim-4.43-config.samples.tar.bz2
Source3:	ftp://ftp.exim.org/pub/exim/exim4/exim-html-%{version}.tar.xz
Source7:	exim-README.urpmi
Source20:	exim.aliases
Source21:	exim.init
Source22:	exim.sysconfig
Source23:	exim.logrotate
Source24:	exim.pam
Source25:	exim_monitor-16x16.png
Source26:	exim_monitor-32x32.png
Source27:	exim_monitor-48x48.png
Source28:	exim-4.63-auth_pop3_imap.embedded_perl
Source29:	exim-4.63-sasl2_smtpd.conf
Source30:	exim-4.63-logrotate_eximstats
Source31:	exim-4.63-cron_exicyclog_eximstats
Source32:	exim-4.63-sysconfig
Source33:	exim-tmpfiles.conf
Patch0:		exim-4.96-mdv-config.patch
Patch3:		exim-4.22-install.patch
Patch10:	exim-4.87-rhl.patch
Patch11:	exim-4.87-cyrus.patch
Patch12:	exim-4.95-pamconfig.patch
Patch13:	exim-4.95-spamdconf.patch
Patch14:	exim-4.95-procmail.patch
Patch15:	exim-4.87-allow-filter.patch
Patch16:	exim-4.87-localhost-is-local.patch
Patch17:	exim-4.95-greylist-conf.patch
Patch18:	exim-4.95-smarthost-config.patch
Patch19:	exim-4.87-environment.patch

BuildRequires:	links
BuildRequires:	lynx
BuildRequires:	db-devel
%if %{with spf2}
BuildRequires:	libspf2-devel
%endif
%if %{with mysql}
BuildRequires:	mysql-devel
%endif
%if %{with ldap}
BuildRequires:	openldap-devel >= 2.0.11
Requires:	openldap >= 2.0.11
%endif
BuildRequires:	pam-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
%if %{with sasl2}
BuildRequires:	sasl-devel >= 2.1.25
%endif
%if %{with srs_alt}
BuildRequires:	srs_alt-devel
%endif
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libpcre)
%if %{with pgsql}
BuildRequires:	pkgconfig(libpq)
%endif
%if %{mdvver} > 201610
BuildRequires:	pkgconfig(libnsl)
%endif
BuildRequires:	pkgconfig(libtirpc)
%if %{with sqlite3}
BuildRequires:	pkgconfig(sqlite3)
%endif
%if %{with monitor}
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
%endif
Requires(pre):	rpm-helper
Requires:	apache-mod_socache_shmcb
Requires:	openssl
Requires:	perl(Net::IMAP::Simple)
Provides:	mail-server
Provides:	sendmail-command
Conflicts:	postfix
Conflicts:	qmail
Conflicts:	sendmail

%description
Exim is a mail transport agent (MTA) developed at the University of
Cambridge for use on Unix systems connected to the Internet. In style
it is similar to Smail 3, but its facilities are more extensive, and
in particular it has options for verifying incoming sender and
recipient addresses, for refusing mail from specified hosts, networks,
or senders, and for controlling mail relaying. Exim is in production
use at quite a few sites, some of which move hundreds of thousands of
messages per day.

%files
%doc ACKNOWLEDGMENTS CHANGES LICENCE NOTICE README*
%doc doc/ChangeLog doc/*.upgrade doc/NewStuff doc/OptionLists.txt doc/README.SIEVE doc/dbm.discuss.txt
%doc doc/experimental-spec.txt doc/filter.txt doc/spec.txt
%doc util/unknownuser.sh build-Linux-*/transport-filter.pl util/cramtest.pl util/logargs.sh
%attr(0755,root,mail) %dir %{_sysconfdir}/exim
%attr(0755,root,root) %{_initrddir}/exim
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/exim/exim.conf
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/exim/aliases
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/exim
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/exim/exim_perl.pl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/eximstats.conf
%if %{with sasl2}
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/sasl2/smtpd.conf
%endif
%if %{with logrotate}
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/logrotate.d/exim
%else
%attr(0755,root,root) %{_sysconfdir}/cron.weekly/exim
%endif
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/smtp
# SSL/TLS
%attr(0600,root,root) %dir %{tlsdir}/certs
%attr(0600,root,root) %dir %{tlsdir}/dhparam
%attr(0600,root,root) %dir %{tlsdir}/private
# end SSL/TLS
%attr(0755,root,root) %{_bindir}/convert4r3
%attr(0755,root,root) %{_bindir}/convert4r4
%attr(0755,root,root) %{_bindir}/exicyclog
%attr(0755,root,root) %{_bindir}/exigrep
%attr(0755,root,root) %{_bindir}/exim_checkaccess
%attr(0755,root,root) %{_bindir}/exim_dbmbuild
%attr(0755,root,root) %{_bindir}/exim_dumpdb
%attr(0755,root,root) %{_bindir}/exim_fixdb
%attr(0755,root,root) %{_bindir}/exim_lock
%attr(0755,root,root) %{_bindir}/eximstats
%attr(0755,root,root) %{_bindir}/exim_tidydb
%attr(0755,root,root) %{_bindir}/exinext
%attr(0755,root,root) %{_bindir}/exipick
%attr(0755,root,root) %{_bindir}/exiqgrep
%attr(0755,root,root) %{_bindir}/exiqsumm
%attr(0755,root,root) %{_bindir}/exiwhat
%attr(0755,root,root) %{_bindir}/rsmtp
%attr(0755,root,root) %{_bindir}/runq
%attr(4755,root,root) %{_bindir}/exim
%attr(0755,root,root) %{_sbindir}/exim
%attr(0755,root,root) %{_sbindir}/sendmail.exim
%attr(0644,root,root) %{_prefix}/lib/sendmail.exim
%attr(0755,root,root) %{_bindir}/mailq.exim
%attr(0755,root,root) %{_bindir}/newaliases.exim
%attr(0755,root,root) %{_bindir}/rmail.exim
%attr(0755,root,root) %{_bindir}/rsmtp.exim
%attr(0755,root,root) %{_bindir}/runq.exim
%attr(0755,mail,mail) %dir %{_var}/spool/exim
%attr(0755,mail,mail) %dir %{_var}/spool/exim/db
%attr(0755,mail,mail) %dir %{_var}/spool/exim/input
%attr(0755,mail,mail) %dir %{_var}/spool/exim/msglog
%attr(0755,mail,mail) %dir %{_logdir}/exim
%ghost %attr(0755,mail,mail) %dir %{_var}/run/exim
%attr(0644,root,root) %{_mandir}/man8/exim.8*
%attr(0644,root,root) %{_mandir}/man8/eximstats.8*
%{_tmpfilesdir}/%{name}.conf

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service exim
%alternatives_install_cmd

# scrub hints files - db files change format between builds so
# killing the hints can save an MTA crash later
[ -d /var/spool/exim/db ] && rm -f /var/spool/exim/db/*

# alternatives changes the mode of /usr/bin/exim so we have to chmod
chmod 4755 %{_bindir}/exim

# Define FQDN
FQDN=`hostname`
if [ "x${FQDN}" = "x" ]; then
	FQDN="localhost.localdomain"
fi
# fix primary_hostname
perl -pi -e "s|^# primary_hostname =|primary_hostname = $FQDN|" %{_sysconfdir}/%{name}/%{name}.conf

# disable cron job if with logrotate enabled:
%if %{with logrotate}
if [ -f "/etc/cron.weekly/exim" ]; then
	day=`date +%Y%m%d`
	mv /etc/cron.weekly/exim /etc/exim/cron.weekly_exim.backup.$day
fi
%endif

%if %{with certs}
# Add dummy certficates
if [ ! -f "%{tlsdir}/certs/%{name}.pem" ]; then
    touch %{tlsdir}/{certs,private,dhparam}/%{name}.pem
    umask 077
    cat << EOF | openssl req -new -x509 -days 365 -nodes \
    -out %{tlsdir}/certs/%{name}.pem \
    -keyout %{tlsdir}/private/%{name}.pem &>/dev/null
MandrivaLand
MandrivaCountry
MandrivaCity
SMTP server on ${FQDN}
SMTP SSL/TLS key on ${FQDN}
${FQDN}
root@${FQDN}
EOF
    openssl dhparam -check -text -5 512 -out %{tlsdir}/dhparam/%{name}.pem &>/dev/null
    chown mail.root %{tlsdir}/{private,certs,dhparam}/%{name}.pem
    chmod 600 %{tlsdir}/{private,certs,dhparam}/%{name}.pem
fi
%endif

# necessary when we upgrade from a non-alternatives package
%triggerpostun -- exim
[ -e %{_sbindir}/sendmail.exim ] && %alternatives_install_cmd || :

%preun
%_preun_service exim
if [ "$1" = "0" ]; then
    update-alternatives --remove mta %{_sbindir}/sendmail.exim
fi

%postun
if [ "$1" -ge "1" ]; then
    /sbin/service exim condrestart > /dev/null 2>&1
fi


#----------------------------------------------------------------------------

%if %{with monitor}
%package monitor
Summary:	X11 monitor application for exim
Group:		Monitoring
Requires:	%{name} >= %{EVRD}

%description monitor
The Exim Monitor is an optional supplement to the Exim package. It
displays information about Exim's processing in an X window, and an
administrator can perform a number of control actions from the window
interface.

%files monitor
%doc CHANGES LICENCE NOTICE README*
%attr(0755,root,root) %{_bindir}/eximon
%attr(0755,root,root) %{_bindir}/eximon.bin
%{_iconsdir}/%{name}-monitor.png
%{_miconsdir}/%{name}-monitor.png
%{_liconsdir}/%{name}-monitor.png
%{_datadir}/applications/%{name}-monitor.desktop
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version} -a2 -a3

cp %{SOURCE7} README.urpmi

# fix strange attribs
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

# cvs cleanup
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
	if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

# pre-build setup
cp src/EDITME Local/Makefile
%if %{with monitor}
cp exim_monitor/EDITME Local/eximon.conf
%endif

# Added BIN_DIRECTORY:
perl -pi -e 's|^BIN_DIRECTORY=/usr/exim/bin|BIN_DIRECTORY=%{_bindir}|g' Local/Makefile

# modify Local/Makefile for our builds
%if !%{with mysql}
  perl -pi -e 's|^LOOKUP_MYSQL=yes|#LOOKUP_MYSQL=yes|g' Local/Makefile
  perl -pi -e 's|-lmysqlclient||g' Local/Makefile
  perl -pi -e 's|-I%{_includedir}/mysql||g' Local/Makefile
%endif
%if !%{with pgsql}
  perl -pi -e 's|^LOOKUP_PGSQL=yes|#LOOKUP_PGSQL=yes|g' Local/Makefile
  perl -pi -e 's|-lpq||g' Local/Makefile
  perl -pi -e 's|-I%{_includedir}/pgsql||g' Local/Makefile
%endif
%if %{with monitor}
  perl -pi -e 's|# EXIM_MONITOR=|EXIM_MONITOR=|g' Local/Makefile
%endif

%ifarch amd64 x86_64
  perl -pi -e 's|X11\)/lib|X11\)/lib64|g' OS/Makefile-Linux
%endif

%if %{with exiscan}
  perl -pi -e 's|^# WITH_CONTENT_SCAN=.*|WITH_CONTENT_SCAN=yes|g' Local/Makefile
  perl -pi -e 's|^# WITH_OLD_DEMIME=.*|WITH_OLD_DEMIME=yes|g' Local/Makefile
%endif

# the spf stuff won't build
%if %{with spf2}
  perl -pi -e 's|^# EXPERIMENTAL_SPF=.*|EXPERIMENTAL_SPF=yes\nCFLAGS += -DHAVE_NS_TYPE\nLDFLAGS += -L%{_libdir} -lspf2|g' Local/Makefile
%endif

%if %{with srs_alt}
  perl -pi -e 's|^# EXPERIMENTAL_SRS=.*|EXPERIMENTAL_SRS=yes\nLDFLAGS += -L%{_libdir} -lsrs_alt|g' Local/Makefile
%endif

%if %{with ldap}
perl -pi -e 's|^# LOOKUP_LDAP=yes|LOOKUP_LDAP=yes|g' Local/Makefile
perl -pi -e 's|^# LDAP_LIB_TYPE=OPENLDAP2|LDAP_LIB_TYPE=OPENLDAP2|' Local/Makefile
perl -pi -e 's|^LOOKUP_INCLUDE=|LOOKUP_INCLUDE=-I%{_includedir}/ldap |' Local/Makefile
perl -pi -e 's|^LOOKUP_LIBS=|LOOKUP_LIBS=-L%{_libdir} -llber -lldap |' Local/Makefile
%endif

%if %{with sqlite3}
perl -pi -e 's|^# LOOKUP_SQLITE=yes|LOOKUP_SQLITE=yes|g' Local/Makefile
perl -pi -e 's|^LOOKUP_INCLUDE=|LOOKUP_INCLUDE=-I/usr/include |g' Local/Makefile
perl -pi -e 's|^LOOKUP_LIBS=|LOOKUP_LIBS=-L%{_libdir} -lsqlite3 |g' Local/Makefile
%endif

%if %{with sasl2}
  perl -pi -e 's|^# CYRUS_SASLAUTHD_SOCKET=/var/run/saslauthd/mux|CYRUS_SASLAUTHD_SOCKET=/var/lib/sasl2/mux|' Local/Makefile
  perl -pi -e 's|^# AUTH_LIBS=-lsasl2|AUTH_LIBS=-L%{_libdir} -lsasl2|' Local/Makefile
%endif

# Remove references to Interbase (-lgds):
perl -pi -e 's|-lgds||g' Local/Makefile

# support the SMTP STARTTLS:
perl -pi -e 's|-L/usr/openssl/lib -lssl -lcrypto|-L%{_libdir} -lssl -lcrypto|' Local/Makefile

# enable all of them
perl -pi -e "s|^# AUTH_CYRUS_SASL=yes|AUTH_CYRUS_SASL=yes|g" Local/Makefile
perl -pi -e "s|^# AUTH_DOVECOT=yes|AUTH_DOVECOT=yes|g" Local/Makefile

# fix stray borked libdir
perl -pi -e "s|/usr/lib\b|%{_libdir}|g" Local/Makefile

# unpack some other stuff
mkdir -p mandriva
cp %{SOURCE20} mandriva/exim.aliases
cp %{SOURCE21} mandriva/exim.init
cp %{SOURCE22} mandriva/exim.sysconfig
cp %{SOURCE23} mandriva/exim.logrotate
cp %{SOURCE24} mandriva/exim.pam

# copy icons
cp %{SOURCE25} exim_monitor-16x16.png
cp %{SOURCE26} exim_monitor-32x32.png
cp %{SOURCE27} exim_monitor-48x48.png

mkdir -p exim_tmp
# embedded perl
cp -f %{SOURCE28} exim_tmp/exim_auth_pop3_imap.embedded_perl
cp -f %{SOURCE29} exim_tmp/exim_sasl2_smtpd.conf
cp -f %{SOURCE30} exim_tmp/exim_logrotate_eximstats
cp -f %{SOURCE31} exim_tmp/exim_cron_exicyclog_eximstats
cp -f %{SOURCE32} exim_tmp/exim_sysconfig

%build
%serverbuild

make CC="gcc %{ldflags}" \
    CFLAGS="%{optflags} -fPIC" \
    RPM_OPT_FLAGS="%{optflags} -fPIC"

%install
# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

# make some directories
install -d %{buildroot}%{_sysconfdir}/{pam.d,exim,sysconfig,cron.weekly}
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}/exim
install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}/var/spool/exim/{db,input,msglog}
install -d %{buildroot}/var/run/exim
install -d %{buildroot}/var/log/exim
install -d %{buildroot}%{_datadir}/applications
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_liconsdir}
install -d %{buildroot}%{_prefix}/lib
mkdir -p %{buildroot}%{tlsdir}/{certs,private,dhparam}

%makeinstall_std

pushd build-`scripts/os-type`-`scripts/arch-type`
    for i in convert4r3 convert4r4 exicyclog exigrep \
    exim exim_checkaccess exim_dbmbuild exim_dumpdb exim_fixdb \
    exim_lock eximstats exim_tidydb exinext exipick exiqgrep \
    exiqsumm exiwhat; do
	install -m0755 $i %{buildroot}%{_bindir}/
    done

%if %{with monitor}
    install -m0755 eximon %{buildroot}%{_bindir}/
    install -m0755 eximon.bin %{buildroot}%{_bindir}/
%endif

popd

# make some softlinks
ln -snf ../bin/exim %{buildroot}%{_prefix}/lib/sendmail.exim
ln -snf ../bin/exim %{buildroot}%{_sbindir}/exim
ln -snf exim %{buildroot}%{_sbindir}/sendmail.exim
ln -snf exim %{buildroot}%{_bindir}/mailq.exim
ln -snf exim %{buildroot}%{_bindir}/newaliases.exim
ln -snf exim %{buildroot}%{_bindir}/rmail.exim
ln -snf exim %{buildroot}%{_bindir}/rsmtp
ln -snf exim %{buildroot}%{_bindir}/rsmtp.exim
ln -snf exim %{buildroot}%{_bindir}/runq
ln -snf exim %{buildroot}%{_bindir}/runq.exim

# install some other stuff
pushd mandriva
    install -m0644 exim.aliases %{buildroot}%{_sysconfdir}/exim/aliases
    install -m0755 exim.init %{buildroot}%{_initrddir}/exim
    install -m0644 exim.pam %{buildroot}%{_sysconfdir}/pam.d/smtp
popd

install -m0644 exim_tmp/exim_auth_pop3_imap.embedded_perl %{buildroot}%{_sysconfdir}/exim/exim_perl.pl
%if %{with sasl2}
install -d %{buildroot}%{_sysconfdir}/sasl2
install -m0644 exim_tmp/exim_sasl2_smtpd.conf %{buildroot}%{_sysconfdir}/sasl2/smtpd.conf
%endif
%if %{with logrotate}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -m0644 exim_tmp/exim_logrotate_eximstats %{buildroot}%{_sysconfdir}/logrotate.d/exim
%else
install -m0755 exim_tmp/exim_cron_exicyclog_eximstats %{buildroot}%{_sysconfdir}/cron.weekly/exim
%endif
install -m0644 exim_tmp/exim_sysconfig %{buildroot}%{_sysconfdir}/sysconfig/exim

install -m644 doc/exim.8 %{buildroot}%{_mandir}/man8/exim.8

# Alias /eximstats /var/www/eximstats for Apache
install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/eximstats.conf << EOF
Alias /eximstats /var/www/eximstats
<Directory /var/www/eximstats>
	Require all granted
	Options +Indexes
</Directory>
EOF

pod2man --center=EXIM --section=8 \
    %{buildroot}%{_bindir}/eximstats \
    %{buildroot}%{_mandir}/man8/eximstats.8

%if %{with monitor}
# Mandriva Icons
install -m0644 exim_monitor-48x48.png %{buildroot}%{_liconsdir}/%{name}-monitor.png
install -m0644 exim_monitor-32x32.png %{buildroot}%{_iconsdir}/%{name}-monitor.png
install -m0644 exim_monitor-16x16.png %{buildroot}%{_miconsdir}/%{name}-monitor.png

#menu-xdg
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-monitor.desktop << EOXDG
[Desktop Entry]
Name=Exim Monitor
Comment=X11 monitor application for exim
Exec=%{_bindir}/eximon
Icon=%{name}-monitor
Terminal=false
Type=Application
Categories=Settings;Network;
EOXDG
%endif

# include more README files in %%doc
cp src/auths/README README.auths
cp src/lookups/README README.lookups
cp src/routers/README README.routers
cp src/transports/README README.transports
cp doc/README README.doc

# cleanup
rm -f %{buildroot}%{_bindir}/exim-%{version}*

mkdir -p %{buildroot}%{_tmpfilesdir}
install -m0644 %{SOURCE33} %{buildroot}%{_tmpfilesdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1368 |21cr|exmap-console-0.4.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define kernelname exmap

Summary:	Memory analysis tool
Name:		exmap-console
Version:	0.4.1
Release:	13
License:	GPLv2+
Group:		Development/Tools
Url:		http://projects.o-hand.com/exmap-console
Source0:	http://projects.o-hand.com/sources/exmap-console/%{name}-%{version}.tgz
Patch0:		exmap-console-0.4.1-no_module.patch
Patch1:		exmap-console-2.6.26.patch
BuildRequires:	help2man
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(glib-2.0)
Requires(post,preun):	dkms

%description
Exmap-console is a suite of command line applications developed around the
Exmap memory analysis tool. It is intended for use in situations where running
the Exmap GUI application is not feasible, for example, on embedded devices,
or when memory data needs to be saved for later examination.

The suite contains three applications: exmap client (exmap), exmap daemon
(exampd) and exmap remote server (exmapserver).

%files
%doc AUTHORS COPYING ChangeLog INSTALL README
%{_bindir}/*
%{_prefix}/src/%{kernelname}-%{version}

%post
dkms add -m %{kernelname} -v %{version} --rpm_safe_upgrade ||:
dkms build -m %{kernelname} -v %{version} --rpm_safe_upgrade ||:
dkms install -m %{kernelname} -v %{version} --rpm_safe_upgrade

%preun
dkms remove -m %{kernelname} -v %{version} --rpm_safe_upgrade --all ||:

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p2

%build
autoreconf -fi
%configure --disable-kernel-module
%make

%install
%makeinstall

# DKMS
######

install -d -m 755 %{buildroot}%{_prefix}/src
cp -a kernel %{buildroot}%{_prefix}/src/%{kernelname}-%{version}

cat > %{buildroot}%{_prefix}/src/%{kernelname}-%{version}/dkms.conf <<EOF

PACKAGE_VERSION="%{version}"

# Items below here should not have to change with each driver version
PACKAGE_NAME="%{kernelname}"
MAKE[0]="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build modules"
CLEAN="make clean"

BUILT_MODULE_NAME[0]="\$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/kernel/3rdparty/\$PACKAGE_NAME/"

AUTOINSTALL=yes
REMAKE_INITRD=no

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1369 |21cr|exmplayer-5.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ExMplayer
%define	gitdate	20210814

Summary:	MPlayer GUI with thumbnail seeking and 3D Video support
Name:		exmplayer
Version:	5.8.0
Release:	3
License:	GPLv2+
Group:		Video
Url:		http://exmplayer.sourceforge.net/
#Source0:	https://launchpad.net/~exmplayer-dev/+archive/ubuntu/exmplayer/+files/%%{name}_%%{version}.tar.gz
# Untagged release from https://github.com/rupeshs/ExMplayer
Source0:	%{oname}-%{gitdate}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	ffmpeg-devel
#BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	ffmpeg
Requires:	mplayer
# Uses assembler
ExclusiveArch:	%{ix86} x86_64

%description
ExMplayer(Extended MPlayer) is a GUI front-end for MPlayer. It can play audio,
video, dvd files(.vob), vcd files(.mpg, .dat), mp4, mkv etc, supports network
streaming and subtitles. It has many useful tools like audio converter, audio
extractor, media cutter, movie animator and video equalizer.

%files
%doc README.md Release_notes.txt
%{_bindir}/%{name}
%{_sysconfdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}_enqueue.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{gitdate}


%build
cd src
%qmake_qt5
%make


%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 src/%{name} %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/%{name}
install -m 0644 linux_build/fmts %{buildroot}%{_sysconfdir}/%{name}/fmts
install -m 0644 linux_build/sc_default.xml %{buildroot}%{_sysconfdir}/%{name}/sc_default.xml

mkdir -p %{buildroot}%{_datadir}/applications
install -m 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m 0644 %{name}_enqueue.desktop %{buildroot}%{_datadir}/applications/%{name}_enqueue.desktop

# Use the system installed ffmpeg
mkdir -p %{buildroot}%{_datadir}/%{name}
ln -s %{_bindir}/ffmpeg %{buildroot}%{_datadir}/%{name}/ffmpeg

# Install menu icons
for N in 16 32 48 64 128 256;
do
	convert debian/%{name}.png -resize ${N}x${N} $N.png;
	install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1370 |21cr|exo-4.16.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

%define major 0
%define gtk3api	2
%define devname %mklibname %{name} -d
%define gtk3lib	%mklibname %{name} %{gtk3api} %{major}

%define _disable_rebuild_configure 1

Summary:	An extension library to Xfce desktop environment
Name:		exo
Version:	4.16.4
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/exo/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	xfce4-dev-tools
BuildRequires:	git-core
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(URI::file)
BuildRequires:	perl(URI::URL)

%description
This is libexo, an extension library to Xfce, developed by os-cillation.
While Xfce comes with quite a few libraries that are targeted at
desktop development, libexo is targeted at application development.

%files -f %{name}-%{gtk3api}.lang
%doc AUTHORS ChangeLog
%{_bindir}/exo*
%{_datadir}/icons/hicolor/*/*/*.png
%{_mandir}/man1/exo*
%{_datadir}/pixmaps/exo/exo-thumbnail-frame.png

#----------------------------------------------------------------------------

%package -n %{gtk3lib}
Summary:	An extension library for Xfce
Group:		System/Libraries
Requires:	%{name} >= %{version}-%{release}

%description -n %{gtk3lib}
Exo is an Xfce library targeted at application development. It contains
various custom widgets and APIs extending the functionality of GLib and
GTK+. It also ships utilities for defining preferred applications,
mounting storage devices and more.

%files -n %{gtk3lib}
%doc AUTHORS ChangeLog
%{_libdir}/lib%{name}-%{gtk3api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files, headers and documentation for libexo
Group:		Development/C
Requires:	%{gtk3lib} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Conflicts:	%{_lib}exo1_0-devel
Conflicts:	%{name} < 0.7.0

%description -n %{devname}
Development files, headers and documentation for libexo.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html
%{_libdir}/lib%{name}-%{gtk3api}.so
%{_libdir}/pkgconfig/%{name}-%{gtk3api}.pc
%{_includedir}/exo-%{gtk3api}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--enable-gtk-doc=yes

%make

%install
%makeinstall_std

%find_lang %{name}-%{gtk3api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1371 |21cr|ext2resize-1.1.19-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ext2 fs resizer
Name:		ext2resize
Version:	1.1.19
Release:	8
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://ext2resize.sourceforge.net/
Source0:	http://ext2resize.sourceforge.net/%{name}-%{version}.tar.bz2
Patch0:		ext2resize-1.1.19-blkgetsize64.patch
BuildRequires:	pkgconfig(ext2fs)
Provides:	ext2fs = %{EVRD}

%description
ext2resize enable to enlarge or reduce a ext2 fs.

WARNING: this is BETA software.
You may lose data.
You have been warned
Save them before using ext2resize

WARNING: you should probably use resize2fs from e2fsprogs
         which is more robust.

%files
%doc AUTHORS COPYING ChangeLog INSTALL README
%{_sbindir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p2 -b .blkgetsize64
# lib64 fixes, aka libuuid.a is in $(libdir) not /usr/lib
perl -pi -e "s@/usr/lib/(libuuid.a)@%{_libdir}/\1@g" \
	src/Makefile.am src/Makefile.in

%build
%configure
make CFLAGS="%{optflags} -fgnu89-inline"

%install
chmod +r *
%makeinstall

install -d %{buildroot}%{_mandir}/man8
install -m 644 doc/*.8 %{buildroot}%{_mandir}/man8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1372 |21cr|ext3grep-0.10.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Investigation and recovery tool for ext3 filesystem
Name:		ext3grep
Version:	0.10.2
Release:	5
License:	GPLv2+
Group:		File tools
Url:		http://code.google.com/p/ext3grep/
Source0:	http://ext3grep.googlecode.com/files/ext3grep-%{version}.tar.gz
BuildRequires:	ext2fs-devel
Patch0:		ext3grep-0.10.1-gcc44.patch
Patch1:		ext3grep-0.10.2-include-unistd_h-for-sysconf.patch
Patch2:		ext3grep-0.10.2-new-e2fsprogs.diff
Patch3:		002_remove_i_dir_acl.diff

%description
A tool to investigate an ext3 file system for deleted content and
possibly recover it.

%files
%doc NEWS README
%{_bindir}/ext3grep

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
# http://code.google.com/p/ext3grep/issues/detail?id=14
export CXX=%{_bindir}/g++

%configure
%make

%install
# Builds twice unless setting it here as well:
export CXX=%{_bindir}/g++
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1373 |21cr|extension-manager-0.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A native tool for browsing, installing, and managing GNOME Shell Extensions
Name:		extension-manager
Version:	0.3.2
Release:	2
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://github.com/mjakeman/extension-manager
Source0:	https://github.com/mjakeman/extension-manager/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		extension-manager-0.3.1-lost-h.patch
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	meson
BuildRequires:	python3-gi
BuildRequires:	pkgconfig(blueprint-compiler)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(text-engine-0.1)

%description
A native tool for browsing, installing, and managing GNOME Shell Extensions.

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_appdatadir}/com.mattjakeman.ExtensionManager.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/com.mattjakeman.ExtensionManager.desktop
%{_datadir}/glib-2.0/schemas/com.mattjakeman.ExtensionManager.gschema.xml
%{_iconsdir}/hicolor/scalable/actions/*.svg
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_iconsdir}/hicolor/symbolic/apps/*.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1374 |21cr|extract-xiso-2.7.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		extract-xiso
Version:	2.7.1
Release:	5
Summary:	A backup tool for creating and extracting disc image .iso's of XBox games
License:	BSD
Group:		Archiving/Backup
URL:		http://sourceforge.net/projects/extract-xiso
Source0:	%{name}-%{version}.tar.gz

%description
A backup tool for creating and extracting disc image .iso's of XBox games.
For more details see: http://sourceforge.net/projects/extract-xiso

%prep
%setup -q -n %{name}

%build
%setup_compile_flags
gcc -D__LINUX__ $CFLAGS $LDFLAGS extract-xiso.c libftp-*/*.c -o extract-xiso

%install
mkdir -p %{buildroot}%{_bindir}
cp %{name} %{buildroot}%{_bindir}/

%files
%doc LICENSE.TXT README.TXT
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1375 |21cr|extremetuxracer-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gname etr
%define _appdatadir %{_datadir}/metainfo

Summary:	OpenGL racing game featuring Tux
Name:		extremetuxracer
Version:	0.8.3
Release:	1
License:	GPLv2
Group:		Games/Arcade
Url:		https://sourceforge.net/projects/extremetuxracer
Source0:	https://sourceforge.net/projects/extremetuxracer/files/releases/%{version}/%{gname}-%{version}.tar.xz
Source2:	%{name}.metainfo.xml
Source3:	%{name}-papercuts.metainfo.xml
Source4:	%{name}-papercuts-outline.metainfo.xml
Source5:	%{gname}.6
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sfml-audio) >= 2.2
BuildRequires:	pkgconfig(sfml-graphics) >= 2.2
BuildRequires:	pkgconfig(sfml-window) >= 2.2
Provides:	tuxracer = %{EVRD}

%description
Extreme Tux Racer is an OpenGL racing game featuring Tux, the Linux
mascot. The goal of the game is to slide down a snow- and ice-covered
mountain as quickly as possible.  It is based on the GPL version of
TuxRacer.

%files
%doc AUTHORS ChangeLog COPYING
%{_gamesbindir}/%{gname}
%{_gamesdatadir}/%{gname}/
%{_datadir}/applications/net.sourceforge.extremetuxracer.desktop
%{_iconsdir}/hicolor/*/apps/%{gname}.*
%{_mandir}/man6/etr.6*
%{_appdatadir}/*.metainfo.xml
%{_datadir}/doc/%{name}/TODO
%{_datadir}/doc/%{name}/code
%{_datadir}/doc/%{name}/courses_events
%{_datadir}/doc/%{name}/guide
%{_datadir}/doc/%{name}/score_algorithm

#--------------------------------------------------------------------------------
%prep
%setup -qn %{gname}-%{version}

%build
CFLAGS="%{optflags} -Ofast -ffast-math" \
  CXXFLAGS="%{optflags} -Ofast -ffast-math" \
  %configure \
    --bindir=%{_gamesbindir} \
    --datadir=%{_gamesdatadir} \
    --docdir=%{_docdir}/%{name}
%make

%install
%makeinstall_std
for r in 16 22 32 48; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${r}x${r}/apps
	convert resources/%{gname}.png -scale ${r}x${r} %{buildroot}%{_datadir}/icons/hicolor/${r}x${r}/apps/%{gname}.png
done
install -m 644 -D resources/%{gname}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{gname}.svg

rm -fr  %{buildroot}%{_datadir}/pixmaps

# appdata
mkdir -p %{buildroot}%{_appdatadir}
install -Dm 0644 -p %{SOURCE2} \
        %{buildroot}%{_appdatadir}/%{name}.metainfo.xml
install -Dm 0644 -p %{SOURCE3} \
        %{buildroot}%{_appdatadir}/%{name}-papercuts.metainfo.xml
install -Dm 0644 -p %{SOURCE4} \
        %{buildroot}%{_appdatadir}/%{name}-papercuts-outline.metainfo.xml

#man pages
install -Dm 0644 -p %{SOURCE5} %{buildroot}%{_mandir}/man6/etr.6

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/net.sourceforge.extremetuxracer.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1376 |21cr|extundelete-0.2.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Investigation and recovery tool for ext3/4 filesystem
Name:		extundelete
Version:	0.2.4
Release:	4
License:	GPLv2+
Group:		File tools
Url:		http://extundelete.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		02_fix_ftbfs.patch
BuildRequires:	pkgconfig(ext2fs)

%description
Utility that can recover deleted files from an ext3 or ext4 partition.
The ext3 and ext4 file systems are the most common default file systems
in Linux distributions. extundelete uses information stored in the
partition's journal to attempt to recover a file that has been deleted
from the partition.

%files
%doc LICENSE README
%{_bindir}/%{name}

#---------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1377 |21cr|eza-0.20.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug_package %{nil}

Name:		eza
Version:	0.20.5
Release:	1
Summary:	A modern replacement for ‘ls’
License:	EUPL-1.2
Group:		Development/Other
URL:		https://github.com/eza-community/eza
Source0:	https://github.com/eza-community/eza/archive/refs/tags/v0.20.5.tar.gz?/%{name}-%{version}.tar.gz
Source1:	eza-vendor-0.20.5.tar.xz
BuildRequires:	cargo

%description
eza is a modern, maintained replacement for the venerable 
file-listing command-line program ls that ships with Unix 
and Linux operating systems, giving it more features and 
better defaults. It uses colours to distinguish file types 
and metadata. It knows about symlinks, extended attributes, 
and Git. And it’s small, fast, and just one single binary.

%prep
%setup -q -a1

mkdir -p .cargo
cat > .cargo/config.toml << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline %{?_smp_mflags}

%install
install -d %{buildroot}%{_sysconfdir}/bash_completion.d
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm0644 completions/bash/%{name} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

%files
%doc README.md
%license LICENSE.txt
%{_bindir}/%{name}
%{_sysconfdir}/bash_completion.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1378 |21cr|ez-ipupdate-3.0.11b8-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: ez-ipupdate
Summary: Client for Dynamic DNS Services
Version: 3.0.11b8
Release: 20
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}.service
# add missing include for 64 bit (bug #35001)
Patch0: ez-ipupdate-3.0.11b8-64-bit.patch
Patch1: 000_missing_headers.diff
Patch2: 001_automake_syntax.diff
Patch3: 002_am_maintainer_mode.diff
Patch4: 010_rebootstrap.diff
Patch5: 100_portability.diff
Patch6: 101_syslog_crashes.diff
Patch7: 102_misc_crashes.diff
Patch8: 103_protocol.diff
Patch9: 104_misc_crashes.diff
Patch10: 150_cosmetic.diff
Patch11: 200_default_config.diff
Patch12: 201_upstream_changelog.diff
Group: Networking/Other
URL: http://ez-ipupdate.com/
License: GPL
Requires(post): rpm-helper
Requires(postun): rpm-helper
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

%description
ez-ipupdate is a small utility for updating your host name for any of the
dynamic DNS service offered at: 

    * http://www.ez-ip.net
    * http://www.justlinux.com
    * http://www.dhs.org
    * http://www.dyndns.org
    * http://www.ods.org
    * http://gnudip.cheapnet.net (GNUDip)
    * http://www.dyn.ca (GNUDip)
    * http://www.tzo.com
    * http://www.easydns.com
    * http://www.dyns.cx
    * http://www.hn.org
    * http://www.zoneedit.com

it is pure C and works on Linux, *BSD and Solaris.  

Don't forget to create your own config file ( in /etc/ez-ipupdate.conf )
You can find some example in /usr/share/doc/%{name}-%{version}

%prep

%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p0
%patch10 -p1
%patch11 -p1
%patch12 -p1

%build
%configure
%make

%install
chmod 644 *.conf
%makeinstall_std
perl -pi -e "s|\/usr\/local\/bin|\/usr\/bin|" *.conf
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

cat > README.urpmi << EOF
To configure the ez-ipupdate deamon, edit and set the corrects
parameters in /etc/ez-ipupdate.conf config file.
Then you can start the deamon with service ez-ipupdate start
EOF

%clean

%files 
%doc COPYING INSTALL README README.urpmi
%doc *.conf
%{_bindir}/*
%{_unitdir}/%{name}.service

%post
%create_ghostfile %{_sysconfdir}/%{name}.conf nobody root 600
if [ ! -s %{_sysconfdir}/%{name}.conf ]; then
cat > %{_sysconfdir}/%{name}.conf << EOF
# example config file for ez-ipupdate
#service-type=dyndns-static
service-type=dyndns
user=login:password
host=somedomain.dyndns.org
interface=eth1
max-interval=2073600

# cache file in the temp directory
cache-file=/tmp/.ez-ipupdate.cache
EOF
fi

%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1379 |21cr|ezusbmidi-2002_10_20-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Firmware drivers for EZUSB MIDI devices
Name:		ezusbmidi
Version:	2002_10_20
Release:	14
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://linux-hotplug.sourceforge.net
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ezusbmidi-2002_10_20-sdcc33.patch
Patch1:		ezusbmidi-2002_10_20-udev.patch
BuildRequires:	linuxdoc-tools
BuildRequires:	sdcc
Requires:	fxload
Requires:	udev
BuildArch:	noarch

%description
This program is an USB-MIDI compliant firmware for the EZUSB chip
(AN2131SC) developed to make an USB-MIDI adapter to run with Linux.
It runs with these USB-MIDI devices:
- Midiman Midisport 1x1
- Midiman Midisport 2x2
- Midiman Midisport UNO
- Steinberg USB-2-MIDI

%files
%doc AUTHORS COPYING ChangeLog descriptor.png KnownBugs README *.html
%{_sysconfdir}/udev/rules.d/*
%{_datadir}/usb/ezusbmidi

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1380 |21cr|f2c-20210928-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define libf2cname %mklibname f2c %{major}

Name:           f2c
Summary:        A Fortran 77 to C/C++ conversion program
Version:	20210928
Release:	1
License:        MIT
Group:          Development/C
URL:            http://netlib.org/f2c/
Source0:        ftp://netlib.org/f2c.tar
# Patch makefile to build a shared library
Patch0:		f2c-20090411.patch
Patch1:		f2c-arithchk.patch
Patch2:		f2c-parallel-make.patch
BuildRequires:  unzip
Requires:       %{libf2cname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description
F2c converts Fortran 77 source code to C or C++ source files. If no
Fortran files are named on the command line, f2c can read Fortran from
standard input and write C to standard output.

%package -n %{libf2cname}
Summary:    Dynamic libraries from %{name}
Group:      System/Libraries

%description -n %{libf2cname}
Dynamic libraries from %{name}.

%prep
%setup -q -n %{name}
mkdir lib%{name}
pushd lib%{name}
unzip ../lib%{name}.zip
popd
%patch0
%patch1
%patch2 -p1 -b .parallel-make

%build
cp src/makefile.u src/Makefile
cp lib%{name}/makefile.u lib%{name}/Makefile
%make -C src CFLAGS="%{optflags}" f2c
%make -C lib%{name} CFLAGS="%{optflags} -fPIC"

%install
rm -rf %{buildroot}
install -D -p -m 644 %{name}.h %{buildroot}%{_includedir}/%{name}.h
install -D -p -m 755 src/%{name} %{buildroot}%{_bindir}/%{name}
install -D -p -m 644 src/%{name}.1t %{buildroot}%{_mandir}/man1/%{name}.1
install -D -p -m 755 lib%{name}/lib%{name}.so.0.22 %{buildroot}%{_libdir}/lib%{name}.so.0.22
ln -s lib%{name}.so.0.22 %{buildroot}%{_libdir}/lib%{name}.so.0
ln -s lib%{name}.so.0.22 %{buildroot}%{_libdir}/lib%{name}.so

%files
%doc %{name}.ps %{name}.pdf readme changes src/README
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so

%files -n %{libf2cname}
%doc permission disclaimer src/Notice
%{_libdir}/lib%{name}.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1381 |21cr|f3-8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple tool that tests flash cards capacity and performance
Name:		f3
Version:	8.0
Release:	2
License:	GPLv3
Group:		System/Configuration/Hardware
Url:		https://github.com/AltraMayor/f3
Source0:	https://github.com/AltraMayor/f3/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libparted)

%description
f3 is a simple tool that tests flash cards capacity and performance 
to see if they live up to claimed specifications. It fills the device 
with pseudorandom data and then checks if it returns the same on reading.

F3 stands for Fight Flash Fraud, or Fight Fake Flash.

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

# fix install path
sed -i 's|/usr/local|%{_prefix}|' ./Makefile

%build
%make
%make extra

%install
%makeinstall_std
%makeinstall_std install-extra


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1382 |21cr|faad2-2.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define	major 2
%define	libname %mklibname faad %{major}
%define	libdrm %mklibname faad_drm %{major}
%define	devname %mklibname -d %{name}
%define	sdevname %mklibname -s -d %{name}

%define	oversion %(echo %{version}|sed s/\\\\\./_/g)

Summary:	Freeware Advanced Audio Decoder version 2
Name:		faad2
Version:	2.10.0
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/knik0/faad2
Source0:	https://github.com/knik0/faad2/archive/%{oversion}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		faad2-2.10.0-version.patch
BuildRequires:	id3lib-devel
BuildRequires:	pkgconfig(gtk+)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sndfile)

%description
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch. FAAD 2 is licensed under the GPL.

%files
%doc AUTHORS ChangeLog NEWS README README.linux TODO 
%{_bindir}/faad
%{_mandir}/man1/faad.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Freeware Advanced Audio Decoder shared library
Group:		System/Libraries
Conflicts:	%{_lib}faad2_2 < 1:2.9.2
Obsoletes:	%{_lib}faad2_2 < 1:2.9.2

%description -n %{libname}
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch. FAAD 2 is licensed under the GPL.
This package contains the shared library needed by programs linked to libfaad.

%files -n %{libname}
%{_libdir}/libfaad.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdrm}
Summary:	Freeware Advanced Audio Decoder shared library
Group:		System/Libraries
Conflicts:	%{_lib}faad2_2 < 1:2.9.2

%description -n %{libdrm}
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch. FAAD 2 is licensed under the GPL.

This package contains the shared library needed by programs linked to
libfaad_drm.

%files -n %{libdrm}
%{_libdir}/libfaad_drm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Freeware Advanced Audio Decoder development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libdrm} = %{EVRD}
Provides:	lib%{name}-devel  = %{EVRD}

%description -n %{devname}
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch. FAAD 2 is licensed under the GPL.

This package contains the C++ headers needed to build programs with
libfaad.

%files -n %{devname}
%doc docs/*.pdf
%{_libdir}/libfaad.so
%{_libdir}/libfaad_drm.so
%{_libdir}/pkgconfig/faad2.pc
%{_includedir}/*.h
%{_mandir}/man3/libfaad.3*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Freeware Advanced Audio Decoder static libraries
Group:		Development/C++
Requires:	%{devname} = %{EVRD}
Provides:	lib%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch. FAAD 2 is licensed under the GPL.

This package contains the static libraries needed to build programs
with libfaad.

%files -n %{sdevname}
%{_libdir}/libfaad.a
%{_libdir}/libfaad_drm.a

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oversion}
%patch0 -p1


%build
autoreconf -vfi
%configure	--enable-static
%make


%install
%makeinstall_std

# Install also a man3 page
mkdir -p %{buildroot}%{_mandir}/man3
install -m 0644 docs/libfaad.3 %{buildroot}%{_mandir}/man3/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1383 |21cr|faces-penguin-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name	faces-penguin
%define	version 0.1
%define release	11

Summary:	Penguin face icons
Name:		%name
Version:	%version
Release:	%release
License:	GPL
Group:		System/Configuration/Other	
Source0:	%name-%version.tar.bz2
BuildArch:	noarch

%description
Penguin faces from previous Mandriva Linux releases.

%prep

%setup -q


%install
rm -rf $RPM_BUILD_ROOT

install -d %{buildroot}/%{_datadir}/mdk/faces
install -m644 olddefault.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 root.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxbaby.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxbox.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxcoocker.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxdad.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxegg.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxgirl.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxhead1.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxhead2.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxmam.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tuxmecano.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 tux.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 user-brunette-mdk.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 user-curly-mdk.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 user-olddefault-mdk.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 user-girl-mdk.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 user-hat-mdk.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 user-tie-mdk.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 user-woman-blond-mdk.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 utildame.png %{buildroot}/%{_datadir}/mdk/faces
install -m644 utilmons.png %{buildroot}/%{_datadir}/mdk/faces

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/mdk/faces/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1384 |21cr|faenza-icon-theme-1.3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Faenza icon theme
Name:		faenza-icon-theme
Version:	1.3.1
Release:	5
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		http://tiheum.deviantart.com/art/Faenza-Icons-173323228
Source0:	%{name}_%{version}.tar.gz
Patch0:		faenza-icon-theme-1.3-adwaita.patch
Requires:	adwaita-icon-theme
Recommends:	kfaenza-icon-theme
Requires:	gnome-themes
Requires(post,postun):	gtk+2
BuildArch:	noarch

%description
This icon theme for Gnome provides monochromatic icons for panels,
toolbars and buttons and colourful squared icons for devices,
applications, folder, files and Gnome menu items.

Four themes are included to fit with light or dark themes/panels.

%files
%defattr(0644,root,root,0755)
%{_iconsdir}/Faenza*

%post
%update_icon_cache Faenza
%update_icon_cache Faenza-Ambiance
%update_icon_cache Faenza-Dark
%update_icon_cache Faenza-Darker
%update_icon_cache Faenza-Darkest
%update_icon_cache Faenza-Radiance

%postun
%clean_icon_cache Faenza
%clean_icon_cache Faenza-Ambiance
%clean_icon_cache Faenza-Dark
%clean_icon_cache Faenza-Darker
%clean_icon_cache Faenza-Darkest
%clean_icon_cache Faenza_Radiance

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-1.3
%patch0 -p1

%build

%install
find Faenza* -type d -exec chmod 755 {} \;
find Faenza* -type f -exec chmod 644 {} \;
mkdir -p %{buildroot}%{_iconsdir}
cp -r Faenza* %{buildroot}%{_iconsdir}
touch %{buildroot}%{_iconsdir}/Faenza/icon-theme.cache
touch %{buildroot}%{_iconsdir}/Faenza-Ambiance/icon-theme.cache
touch %{buildroot}%{_iconsdir}/Faenza-Dark/icon-theme.cache
touch %{buildroot}%{_iconsdir}/Faenza-Darker/icon-theme.cache
touch %{buildroot}%{_iconsdir}/Faenza-Darkest/icon-theme.cache
touch %{buildroot}%{_iconsdir}/Faenza-Radiance/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1385 |21cr|fail2ban-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ban IP-addresses that result in too many password failures
Name:		fail2ban
Version:	1.1.0
Release:	1
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		https://github.com/fail2ban/fail2ban
Source0:	https://github.com/fail2ban/fail2ban/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.tmpfiles.conf
BuildRequires:	help2man
BuildRequires:	systemd-units
BuildRequires:	python3dist(coverage)
BuildRequires:	python3dist(dnspython)
BuildRequires:	python3dist(pyinotify)
BuildRequires:	python3dist(systemd-python)
BuildRequires:	pkgconfig(python3)
Requires:	python3-%{name} = %{EVRD}
Requires:	python3
Requires:	tcp_wrappers
Requires:	iptables
Requires:	syslog-daemon
Requires:	python3dist(systemd-python)
Requires(post,preun):	rpm-helper
Requires(post,preun):	systemd-units
Recommends:	python3-gamin
BuildArch:	noarch

%description
Fail2Ban scans log files like /var/log/secure and bans IP-addresses that have
too many password failures within a specified time frame. It updates firewall
rules to reject these IP addresses. The rules needed for this can be defined by
the user. Fail2Ban can read multiple log files including sshd and Apache web
server logs.

%files
%doc ChangeLog CONTRIBUTING.md DEVELOP FILTERS README.md THANKS
%{_docdir}/%{name}/run-rootless.txt
%license COPYING
%{_bindir}/%{name}-*
%config(noreplace) %{_sysconfdir}/%{name}/action.d/*.conf
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
%config(noreplace) %{_sysconfdir}/%{name}/filter.d/*.conf
%dir /run/%{name}
%dir %{_sysconfdir}/%{name}/jail.d
%dir %{_sysconfdir}/%{name}/%{name}.d
%{_mandir}/man1/*
%{_sysconfdir}/%{name}/action.d/*py*
%{_sysconfdir}/%{name}/filter.d/ignorecommands/apache-fakegooglebot
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service
%exclude %{_bindir}/%{name}-python

%post
%tmpfiles_create %{name}.conf
%_post_service %{name}

%preun
%_preun_service %{name}

#------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Ban IP-addresses that result in too many password failures
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Provides:	python-%{name} = %{EVRD}

%description -n python3-%{name}
Fail2Ban scans log files like /var/log/secure and bans IP-addresses that have
too many password failures within a specified time frame. It updates firewall
rules to reject these IP addresses. The rules needed for this can be defined by
the user. Fail2Ban can read multiple log files including sshd and Apache web
server logs.

%files -n python3-%{name}
%doc COPYING
%{_bindir}/%{name}-python
%config(noreplace) %{_sysconfdir}/%{name}/action.d/*.py
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/%{name}-%{version}-py*.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

install -d %{buildroot}%{_mandir}/man1
install man/*.1 %{buildroot}%{_mandir}/man1/
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

ln -sf python3 %{buildroot}%{_bindir}/%{name}-python

# Remove non-Linux actions
rm %{buildroot}%{_sysconfdir}/%{name}/action.d/*ipfw.conf
rm %{buildroot}%{_sysconfdir}/%{name}/action.d/{ipfilter,pf,ufw}.conf
rm %{buildroot}%{_sysconfdir}/%{name}/action.d/osx-*.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1386 |21cr|fake-1.1.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Switches in redundant servers using arp spoofing
Name:		fake
Version:	1.1.11
Release:	6
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.vergenet.net/linux/fake/
Source0:	http://www.vergenet.net/linux/fake/download/%{version}/%{name}-%{version}.tar.gz

%description
Fake is a utility that enables the IP address be taken over
by bringing up a second interface on the host machine and
using gratuitous arp. Designed to switch in backup servers
on a LAN.

%files
%defattr(644,root,root,755)
%doc COPYING AUTHORS README ChangeLog docs/* instance_config/* heartbeat/fake
%defattr(-,root,root)
%{_prefix}/sbin/*
%{_mandir}/man8/*
%dir %{_sysconfdir}/fake
%config(noreplace) %{_sysconfdir}/fake/instance_config
%config(noreplace) %{_sysconfdir}/fake/.fakerc
%config(noreplace) %{_sysconfdir}/fake/clear_routers
%{_prefix}/lib/heartbeat/fake

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make patch
%make CC="gcc %{optflags}"

%install
make ROOT_DIR=%{buildroot} MAN8_DIR=%{buildroot}%{_mandir}/man8 install
rm -rf %{buildroot}%{_prefix}/doc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1387 |21cr|fakechroot-2.20.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A chroot-like wrapper for non-privileged users
Name:		fakechroot
Version:	2.20.1
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://github.com/fakechroot/fakechroot/wiki
Source0:	https://github.com/downloads/%{name}/%{name}/%{name}-%{version}.tar.gz
Patch1:		https://github.com/dex4er/fakechroot/commit/b42d1fb9538f680af2f31e864c555414ccba842a.patch
Patch2:		https://github.com/dex4er/fakechroot/pull/85/commits/534e6d555736b97211523970d378dfb0db2608e9.patch
Patch3:		https://github.com/dex4er/fakechroot/pull/85/commits/75d7e6fa191c11a791faff06a0de86eaa7801d05.patch
Patch4:		https://github.com/dex4er/fakechroot/pull/85/commits/693a3597ea7fccfb62f357503ff177bd3e3d5a89.patch
Patch5:		https://github.com/dex4er/fakechroot/pull/86.patch
BuildRequires:	gdbm

%description
fakechroot runs a command in an environment were is additional possibility
to use chroot(8) command without root privileges. This is useful for
allowing users to create own chrooted environment with possibility to
install another packages without need for root privileges.

%files
%doc README.md NEWS.md LICENSE
%{_bindir}/%{name}
%{_bindir}/env.%{name}
%{_bindir}/ldd.%{name}
%{_sbindir}/chroot.%{name}
%{_mandir}/man1/%{name}*
%{_libdir}/%{name}/*.so
%{_sysconfdir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1388 |21cr|falkon-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libnameprivate %mklibname falkonprivate %{major}

Summary:	Fast browser based on QtWebKit
Name:		falkon
Version:	23.08.4
Release:	1
License:	GPLv3+ and BSD and LGPLv2.1 and GPLv2+ and MPL
Group:		Networking/WWW
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/falkon/%{version}/src/%{name}-%{version}.tar.xz
Source1:	falkon-3.1.99_ru.tar.gz
# reenable native scrollbars by default (upstream disabled them in 2.1.2)
Patch0:		falkon-3.1.0-native-scrollbars.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(python3)
BuildRequires:	qt5-tools
BuildRequires:	dos2unix
BuildRequires:	%{_lib}appstream-glib-devel
Requires:	%{name}-plugins = %{EVRD}
Requires:	qt5-database-plugin-sqlite
Requires:	qt5-output-driver-default

%description
Falkon is a new and very fast QtWebKit browser.

%files -f %{name}.lang
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/themes
%{_datadir}/bash-completion/completions/*
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_kde5_applicationsdir}/org.kde.falkon.desktop
%{_appdatadir}/org.kde.falkon.appdata.xml

#----------------------------------------------------------------------------

%package plugins
Summary:	Various plugins for %{name} web browser
Group:		Networking/WWW
Requires:	%{name} = %{EVRD}

%description plugins
Falkon Plugins are dynamically that can extend
application in almost any way. This package 
contains the following plugins:

* Mouse Gestures
* Access Keys Navigation
* Personal Information Manager
* GreaseMonkey

%files plugins
%{_qt5_plugindir}/falkon/*

#----------------------------------------------------------------------------

%package -n %{libnameprivate}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libnameprivate}
Shared library used by %{name} web browser.

%files -n %{libnameprivate}
%{_libdir}/libFalkonPrivate.so.%{major}*
%{_libdir}/libFalkonPrivate.so.%{version}



#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

pushd poqm
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

rm -f %{buildroot}%{_datadir}/falkon/locale/sr@*.qm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1389 |21cr|fancontrol-gui-0.8-2.20220606git5bfa8fa
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gitcommit_full 5bfa8fa9c880db2374c75d2d25107da3926b8f29
%global gitcommit %(c=%{gitcommit_full}; echo ${c:0:7})
%global date 20220606

Name:           fancontrol-gui
Version:        0.8
Release:        2.%{date}git%{gitcommit}
Summary:        GUI for fancontrol
Group:          Graphical desktop/KDE
License:        GPL-2.0-or-later
URL:            https://github.com/Maldela/fancontrol-gui
Source0:        https://github.com/Maldela/fancontrol-gui/archive/5bfa8fa9c880db2374c75d2d25107da3926b8f29.zip?/%{name}-%{gitcommit}.zip

BuildRequires:  gcc-c++
BuildRequires:  cmake >= 3.0.2
BuildRequires:  extra-cmake-modules
BuildRequires:  cmake(KF5Auth)
BuildRequires:  cmake(KF5Config)
BuildRequires:  cmake(KF5I18n)
BuildRequires:  cmake(KF5Package)
BuildRequires:  cmake(KF5CoreAddons)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(Qt5QuickControls2)
BuildRequires:  cmake(KF5ConfigWidgets)
BuildRequires:  cmake(KF5KCMUtils)
BuildRequires:  cmake(KF5Plasma)
BuildRequires:  gettext
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5Test)
BuildRequires:  cmake(KF5Declarative)
BuildRequires:  cmake(KF5Kirigami2)
#BuildRequires:  cmake(Qt5QuickLayouts)
#BuildRequires:  cmake(Qt5QuickDialogs)
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(appstream-glib)
BuildRequires:  appstream-util

Requires:       hicolor-icon-theme
Requires:       dbus-common
Requires:       polkit

%description
GUI for fancontrol which is part of lm_sensors.
It uses the KAuth module of the KDE Frameworks 5 to write the
generated config file. Furthermore it communicates with systemd
via dbus to control the fancontrol service.

%package        kcm
Summary:        KCM for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       plasma-settings
Requires:       kcmutils

%description    kcm
KCM for %{name}.

%package        plasmoid
Summary:        Plasmoid for %{name}
BuildArch:      noarch
Requires:       %{name} = %{version}-%{release}
Requires:       plasma5-workspace

%description    plasmoid
Plasmoid for %{name}.

%prep
%autosetup -n %{name}-%{gitcommit_full}


%build
%cmake_kde5 -DCMAKE_INSTALL_PREFIX=/usr -DBUILD_KCM=on -DBUILD_PLASMOID=on
%make_build

%install
%make_install -C build
%find_lang fancontrol_kcm --all-name
# Remove icon tag
sed -i '/icon/d' %{buildroot}%{_metainfodir}/org.kde.fancontrol.gui.appdata.xml
sed -i '/icon/d' %{buildroot}%{_metainfodir}/org.kde.fancontrol.kcm.appdata.xml
sed -i '/icon/d' %{buildroot}%{_metainfodir}/org.kde.fancontrol.plasmoid.appdata.xml

%check
desktop-file-validate %{buildroot}%{_kde5_applicationsdir}/org.kde.fancontrol.gui.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.kde.fancontrol.*.appdata.xml

%files -f fancontrol_kcm.lang
%license LICENSE
%doc README.md
%{_bindir}/fancontrol_gui
%{_qt5_prefix}/qml/Fancontrol
%{_kde5_libexecdir}/kauth/fancontrol_gui-helper
%{_kde5_applicationsdir}/org.kde.fancontrol.gui.desktop
%{_datadir}/dbus-1/system-services/org.kde.fancontrol.gui.helper.service
%{_datadir}/dbus-1/system.d/org.kde.fancontrol.gui.helper.conf
%{_datadir}/icons/hicolor/scalable/apps/org.kde.fancontrol.gui.svg
%{_metainfodir}/org.kde.fancontrol.gui.appdata.xml
%{_datadir}/polkit-1/actions/org.kde.fancontrol.gui.helper.policy

%files kcm
%{_qt5_plugindir}/kcms/kcm_fancontrol.so
%{_datadir}/kpackage/genericqml/org.kde.fancontrol.gui
%{_datadir}/kpackage/kcms/org.kde.fancontrol.kcm
%{_datadir}/kservices5/kcm_fancontrol.desktop
%{_metainfodir}/org.kde.fancontrol.kcm.appdata.xml

%files plasmoid
%{_datadir}/kservices5/plasma-applet-org.kde.fancontrol.plasmoid.desktop
%{_metainfodir}/org.kde.fancontrol.plasmoid.appdata.xml
%{_datadir}/plasma/plasmoids/org.kde.fancontrol.plasmoid


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1390 |21cr|fanout-0.6.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fanout lets you run commands on multiple remote machines simultaneously
Name:		fanout
Version:	0.6.1
Release:	12
License:	GPL
Group:		Networking/Remote access
Source:		http://www.stearns.org/fanout/fanout-%{version}.tar.gz
URL:		http://www.stearns.org/fanout/
Buildarch:	noarch
requires:	xterm

%description
Fanout allows you to run non-interactive commands on remote
machines simultaneously, collecting the output in an organized fashion.

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}/%{_bindir}
#%make DESTDIR=$RPM_BUILD_ROOT install
cp -avf fanout %{buildroot}/%{_bindir}
cp -avf fanterm %{buildroot}/%{_bindir}
cp -avf fanmux %{buildroot}/%{_bindir}

%clean

%files
%doc AUTHORS COPYING CREDITS ChangeLog Makefile
%attr(755,root,root) %{_bindir}/fanmux
%attr(755,root,root) %{_bindir}/fanout
%attr(755,root,root) %{_bindir}/fanterm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1391 |21cr|FANtastic-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname FANtastic.love
#define  distuffix mrb

Name:           FANtastic
Version:        0.1
Release:        1
Summary:        It's TOOOO HOT on Tiki Island!
Group:          Games/Arcade
License:        MIT
Url:            https://tannerrogalsky.itch.io/fantastic
Source0:        %{oname}
BuildRequires:  imagemagick
BuildRequires:  zip

Requires:       love
BuildArch:      noarch

%description
It's TOOOO HOT on Tiki Island! 
Turn on all the fans to save the day!
Arrow keys to move. Space to turn fans on/off.


%files
%doc README.md LICENSE
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{oname}
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep 
%setup -q -c -n FANtastic
find . -perm 0666 -exec chmod 0644 {} \;

%build

%install
# data
install -D -m 644 %{SOURCE0} %{buildroot}%{_gamesdatadir}/%{name}/%{oname}


# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{oname}
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size -background transparent -gravity Center images/fan_with_trolley/fan_blue_trolley_2.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1392 |21cr|fapg-0.43-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define Werror_cflags	%%{nil}
#define debug_package	%%{nil}

Summary:	Fast Audio Playlist Generator
Name:		fapg
Version:	0.43
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://royale.zerezo.com/%{name}/
Source0:	http://royale.zerezo.com/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(liburiparser)
BuildRequires:	gawk

%description
FAPG is a tool to generate list of audio files (Wav, MP3, Ogg, etc) in various
formats (M3U, PLS, HTML, etc).

%files 
%doc COPYING README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep 
%setup -q


%build 
%configure
%make


%install 
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1393 |21cr|fapolicy-analyzer-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	File Access Policy Analyzer
Name:		fapolicy-analyzer
Version:	1.1.0
Release:	1
License:	GPLv3.0
Group:		System/Base
Url:		https://github.com/ctc-oss/fapolicy-analyzer
Source0:	https://github.com/ctc-oss/fapolicy-analyzer/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# cd fapolicy-analyzer-%%{version}
# mkdir cargo-home
# cat >cargo-home/config <<EOF
# [source.crates-io]
# replace-with = "vendored-sources"
# [source.vendored-sources]
# directory = "vendor"
# EOF
# export CARGO_HOME=$(pwd)/cargo-home
# cargo vendor
# tar -cpJf ../vendor-%%{version}.tar.xz vendor
Source1:	vendor-%{version}.tar.xz
BuildRequires:	cargo
BuildRequires:	clang
BuildRequires:	python3dist(pep517)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-rust)
BuildRequires:	pkgconfig(auparse)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(python3)
Requires:	gnome-icon-theme
Requires:	gtk3
Requires:	gtksourceview3
Requires:	mesa-dri-drivers
Requires:	webkit2gtk4.0
Requires:	python3dist(configargparse)
Requires:	python3dist(events)
Requires:	python3dist(pygobject)
Requires:	python3dist(importlib-metadata)
Requires:	python3dist(more-itertools)
Requires:	python3dist(rx)
Requires:	python3dist(toml)

%description
File Access Policy Analyzer.
1. Edit rules with validation and syntax highlighting.
2. Diff trust between fapolicyd trust db and disk.
3. Analyze fapolicyd logs and fix trust discrepancies.
4. Profile application disk access in fapolicy permissive mode.

%files
%doc scripts/srpm/README
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man8/%{name}.8*
%{python3_sitearch}/fapolicy_analyzer*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1
mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF

%build
export CARGO_HOME=$(pwd)/cargo-home
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_bindir}
cp bin/%{name} %{buildroot}%{_bindir}
cp data/%{name}.8 %{buildroot}%{_mandir}/man8
cp data/%{name}.desktop %{buildroot}%{_datadir}/applications
sed -i "s,!/usr/bin/env ,!/usr/bin/," %{buildroot}%{_bindir}/%{name}
chmod -x %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1394 |21cr|far2l-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
# gives false positives
%define dont_check_python_shebangs 1

# enabling python installs strange files like:
# /usr/libexec/far2l/Plugins/python/plug/python/lib64/python3.8/site-packages/debugpy/_vendored/pydevd/pydevd_attach_to_process/windows/targetver.h
# /usr/libexec/far2l/Plugins/python/plug/python/bin/pip with shebang
# /usr/libexec/far2l/Plugins/python/plug/python/bin/python
# /usr/libexec/far2l/Plugins/python is 73 MiB when enabled
# TODO: clean up all this crap and reenable python
%bcond_with python

Summary:	FAR Manager - Linux port
Name:		far2l
Version:	2.6.1
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://github.com/elfmz/far2l
Source0:	https://github.com/elfmz/far2l/archive/v_%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gawk
BuildRequires:	gcc-c++
BuildRequires:	m4
BuildRequires:	perl-open
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libnfs)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(glib-2.0)
%if %{with python}
BuildRequires:	pkgconfig(python3)
%endif
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(spdlog)
BuildRequires:	pkgconfig(uchardet)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pcre2-devel
BuildRequires:	wxgtku3.1-devel
Provides:	far = %{EVRD}

%description
Linux port of FAR v2.

%files
%{_bindir}/far*
%if %{with python}
%{_libexecdir}/%{name}/*
%endif
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{_iconsdir}/%{name}.svg
%{_mandir}/ru/man1/far2l.*
%{_mandir}/man1/far2l.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v_%{version}

%build
%cmake \
%if %{with python}
	-DPYTHON=yes \
%else
	-DPYTHON=no \
%endif
	-DUSEWX=yes \
	-DCMAKE_BUILD_TYPE=Release \
	-G Ninja

%ninja_build

%install
%ninja_install -C build
ln -s /usr/bin/far2l %{buildroot}%{_bindir}/far

%if %{with python}
# fix absolute paths to shebangs
test -x %{buildroot}%{_libexecdir}/%{name}/Plugins/python/plug/python/bin/python
grep -IrlE '^#\!/.*/bin/python' %{buildroot}%{_libexecdir}/%{name} | xargs sed -i -r -e '1s,#!/.*/bin/python,#!%{_libexecdir}/%{name}/Plugins/python/plug/python/bin/python,'
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1395 |21cr|fastdup-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		fastdup
Version:	0.3
Release:	4
Group:		Archiving/Backup
License:	GPLv3+
Summary:	Find copies of the same file
Url:		http://sourceforge.net/projects/fastdup/
Source0:	http://downloads.sourceforge.net/project/fastdup/fastdup/0.3%20alpha/fastdup-0.3.tar.bz2
Patch0:		fastdup-0.3-install-path.patch

%description
FastDup is a tool to find copies of the same file within directory tree(s),
designed for maximum speed and efficiency unlike most similar tools. Where
many similar tools rely on checksums or hashes of files, or simple comparisons,
fastdup uses a number of cleverly optimized tricks to reduce the number of
actual comparisons necessary, and as a result can scan large sets of data
extremely quickly compared to alternatives.

%prep
%setup -q
%patch0 -p1

%build
%make

%install
mkdir -p %{buildroot}/usr/bin
%makeinstall_std

%files
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1396 |21cr|fastfloat-6.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define devname %mklibname fastfloat -d

Name:		fastfloat
Version:	6.1.6
Release:	1
Source0:	https://github.com/fastfloat/fast_float/archive/refs/tags/v%{version}.tar.gz
Summary:	Fast and exact version of the C++ from_chars function for float and double types
URL:		https://github.com/fastfloat/fast_float
License:	Apache-2.0 or Boost or MIT
Group:		System/Libraries
BuildRequires:	cmake
BuildRequires:	ninja
BuildArch:	noarch

%description
Fast and exact implementation of the C++ from_chars functions
for float and double types: 4x to 10x faster than strtod

#--------------------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

Fast and exact implementation of the C++ from_chars functions
for float and double types: 4x to 10x faster than strtod

%files -n %{devname}
%{_includedir}/*
%{_datadir}/cmake/*

#--------------------------------------------------

%prep
%autosetup -p1 -n fast_float-%{version}

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1397 |21cr|fatpack-0.10.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name App-FatPacker
%define upstream_version 0.010007

Summary:    Pack your dependencies onto your script file
Name:       fatpack
Version:    %perl_convert_version %{upstream_version}
Release:    1
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel

BuildArch: noarch

%files
%doc Changes META.yml
%{_bindir}/fatpack
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

#------------------------------------------------------

%description
Pack your dependencies onto your script file
Command line frontend for App::FatPacker  

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 META.yml

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1398 |21cr|fatsort-1.6.4.625-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FAT sorter for FAT16 and FAT32 filesystems
Name:		fatsort
Version:	1.6.4.625
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://fatsort.sf.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	help2man

%description
Fatsort is a utility written in C to sort FAT16 and FAT32 filesystems. It is
needed to sort files on cheap mp3 players that display files not sorted by
their name but by the order they appear in the file allocation table (FAT).

%files
%doc CHANGES.md LICENSE.txt README
%{_mandir}/man1/%{name}.1*
%{_sbindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make \
	CFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}"

%install
%makeinstall_std \
	SBINDIR=%{_sbindir} \
	MANDIR=%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1399 |21cr|faust-2.54.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No sources in debug package
%global	debug_package %{nil}

%define	faustmajor	2
%define	machmajor	1
%define	oscmajor	1
%define	httpdmajor	0
%define	libname		%mklibname %{name} %{faustmajor}
%define	devname		%mklibname -d %{name}

Summary:	Faust AUdio Stream (real-time audio signal processing language)
Name:		faust
Version:	2.54.9
Release:	2
License:	GPLv2+ and BSD
Group:		Development/Other
Url:			https://faust.grame.fr/
# Releases > 0.9.95 are in the new GitHub repository
Source0:	https://github.com/grame-cncm/faust/releases/download/%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		faust-2.27.1-fix-faustmachine-soname.patch
Patch1:		faust-std-limits.patch
Patch2:		faust-2.54.9-fix-shebangs.patch
BuildRequires:	clang >= 3.8
BuildRequires:	cmake >= 3.7.2
BuildRequires:	ctags
BuildRequires:	doxygen
BuildRequires:	git
BuildRequires:	graphviz
BuildRequires:	llvm >= 3.8
BuildRequires:	llvm-devel
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libmicrohttpd) >= 0.9.71
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sndfile)
Requires:	glitz
Requires:	%{libname} = %{EVRD}
# Mostly needed by the tools
Recommends:	jackit
Recommends:	csound
Recommends:	octave

%description
Faust AUdio STreams is a functional programming language for real-time audio
signal processing. Its programming model combines two approaches : functional
programming and block diagram composition. You can think of it as a structured
block diagram language with a textual syntax. It's intended for developers who
need to develop efficient C/C++ audio plugins for existing systems or full
standalone audio applications. Thanks to some specific compilation techniques
and powerful optimizations, the C++ code generated by the compiler is usually
very fast. It can generally compete with (and sometimes outperform)
hand-written C code.
Programming with FAUST is somehow like working with electronic circuits and
signals. A program is a list of definitions that defines a signal processor
block-diagram: a piece of code that produces output signals according to its
input signals (and maybe some user interface parameters). The compiler then
translates that DSP specification into very efficient code for various
languages (C++, C, JAVA, JavaScript, ASM JavaScript, LLVM IR, WebAssembly,
etc.) working at sample level.

%files
%doc COPYING.txt README.md WHATSNEW.md
%{_bindir}/%{name}
%{_bindir}/%{name}path
%{_bindir}/%{name}remote
%{_bindir}/%{name}optflags
%{_bindir}/%{name}-config
%{_bindir}/usage.sh
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for Faust programming language
License:	GPLv2+
Group:		System/Libraries

%description -n %{libname}
A functional programming language for real-time audio signal processing.
This package provides the libraries used by %{name}.

%files -n %{libname}
%doc COPYING.txt
%{_libdir}/libfaust.so.%{faustmajor}*
%{_libdir}/libfaustmachine.so.%{machmajor}*
%{_libdir}/libHTTPDFaust.so.%{httpdmajor}*
%{_libdir}/libOSCFaust.so.%{oscmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Faust programming language
License:	GPLv2+
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
# For the examples
Requires:	%{name}-tools
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
A functional programming language for real-time audio signal processing.
This package provides the documentation and the devel files needed to write
programs using %{name}.

%files -n %{devname}
%doc documentation/faust-quick-reference.pdf
%doc examples
%{_includedir}/%{name}
%{_libdir}/libfaust.so
%{_libdir}/libfaustmachine.so
%{_libdir}/libHTTPDFaust.so
%{_libdir}/libOSCFaust.so

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
License:	GPLv2+
Group:		Development/Other
BuildArch:		noarch

%description doc
A functional programming language for real-time audio signal processing.
This package provides the documentation files to help writing programs
with %{name}.

%files doc
%doc documentation/misc/*.pdf

#----------------------------------------------------------------------------

%package tools
Summary:	3rd party tools written for Faust
License:	GPLv2+
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description tools
A functional programming language for real-time audio signal processing.
These additional tools and scripts are provided by various contributors to
help the building process of applications and plugins with %{name}.

%files tools
%doc tools/README.md README.appls.md README.supercollider
%{_bindir}/encoderunitypackage
%{_bindir}/%{name}2*
%{_bindir}/filename2ident
%{_bindir}/sound2*

#----------------------------------------------------------------------------

%package kate
Summary:	Kate/Kwrite plugin for %{name}
License:	GPLv2+
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description kate
A functional programming language for real-time audio signal processing.
This package provides code syntax highlighting support for Plasma5
Kate/Kwrite.

%files kate
%doc syntax-highlighting/README.md
%{_datadir}/katepart5/syntax/%{name}.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%clang_gcc_wrapper


pushd build
cmake . \
        -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
        -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
        -DINCLUDE_INSTALL_DIR:PATH=%{_includedir} \
        -DLIB_INSTALL_DIR:PATH=%{_libdir} \
        -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
        -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
%if "%{?_lib}" == "lib64"
        %{?_cmake_lib_suffix64} \
%endif
        %{?_cmake_skip_rpath} \
        %{?_cmake_verbose} \
        -DBUILD_SHARED_LIBS:BOOL=ON \
        -DBUILD_STATIC_LIBS:BOOL=OFF \
        -DCMAKE_MODULE_LINKER_FLAGS="%{ldflags} -Wl,--unresolved-symbols=ignore-all" \
        -DLIBSDIR=%{_lib} \
        -DINCLUDE_EXECUTABLE=ON \
        -DINCLUDE_STATIC=ON \
        -DINCLUDE_DYNAMIC=ON \
        -DINCLUDE_OSC=ON \
        -DINCLUDE_HTTP=ON \
        -DHTTPDYNAMIC=ON \
        -DOSCDYNAMIC=ON \
        -DINCLUDE_ITP=ON \
        -DITPDYNAMIC=ON \

# add backends
cmake -C ./backends/backends.cmake

%make
popd

# make dynamicaly linked tools (staic libsounfile.a not provided in repo)
make sound2faust -C tools/sound2faust
make sound2file -C tools/sound2faust

# Limit doxygen generation to html and man page
doxygen -u documentation/compiler/Doxyfile
sed -i -e "s/GENERATE_LATEX         = YES/GENERATE_LATEX          = NO/g" documentation/compiler/Doxyfile
sed -i -e "s/GENERATE_MAN         = NO/GENERATE_MAN          = YES/g" documentation/compiler/Doxyfile
make doc


%install
%makeinstall_std -C build

# Prepare docs for tools
mv tools/%{name}2appls/README.md README.appls.md
mv tools/%{name}2sc-1.0.0/README README.supercollider

# Install kate5 syntax highlighting support
mkdir -p %{buildroot}%{_datadir}/katepart5/syntax/
cp -a syntax-highlighting/%{name}.xml %{buildroot}%{_datadir}/katepart5/syntax/

# Remove unwanted stuff (support for android, ios...)...
rm -fr %{buildroot}%{_datadir}/%{name}/AU/
rm -fr %{buildroot}%{_datadir}/%{name}/android/
rm -fr %{buildroot}%{_datadir}/%{name}/api/
rm -fr %{buildroot}%{_datadir}/%{name}/iOS/
rm -fr %{buildroot}%{_datadir}/%{name}/iOSKeyboard/
rm -fr %{buildroot}%{_datadir}/%{name}/iPhone/
rm -fr %{buildroot}%{_datadir}/%{name}/smartKeyboard/
#rm -fr %%{buildroot}%%{_datadir}/%%{name}/webaudio/
# ...and unwanted static libraries...
rm -fr %{buildroot}%{_libdir}/*.a
rm -fr %{buildroot}%{_datadir}/%{name}/max-dsp/sndfile/intel/libsndfile.a
# ...and zero-lenght files
rm -fr %{buildroot}%{_datadir}/%{name}/esp32/drivers/ac101/component.mk
rm -fr %{buildroot}%{_datadir}/%{name}/esp32/drivers/wm8978/component.mk
rm -fr %{buildroot}%{_datadir}/%{name}/esp32/drivers/es8388/component.mk


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1400 |21cr|fb-2.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name fb
%define version 1.5
%define release 17

Summary: Utility for the viewing, editing, and manipulation of binary files
Name: %{name}
Version:	2.0.4
Release:	1
License: GPLv1
Source0: fb_tar.bz2
Source1: fb_exmp.html
Group: File tools
URL: http://home.mho.net/jswaby/fb.html 


%description
fb is a binary file viewer, editor, and manipulator. It can be used as a 
filter, an interactive browser, or to simply dump a file in either binary, 
decimal, hexadecimal, or octal and/or characters. Either overwrite bytes in 
either of the four bases or characters or dump to a file and edit the 
resulting text file with any text editor, then fb can translate from either 
of the four bases back into a binary file. In summary, fb is a versatile 
tool for binary file creation, manipulation, and examination. 
 

%prep 
%setup0 -q -c 
cp %SOURCE1 $RPM_BUILD_DIR/%{name}-%{version}

%build
cc $RPM_OPT_FLAGS fb.c -o fb

%install
install -m 755 -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 -d $RPM_BUILD_ROOT%{_mandir}/man1
install -m 755 fb $RPM_BUILD_ROOT%{_bindir}/
install -m 644 fb.1 $RPM_BUILD_ROOT%{_mandir}/man1/


%files 
%{_bindir}/*
%{_mandir}/man1/*
%doc README fb.doc fb_exmp.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1401 |21cr|fb2edit-0.0.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FB2 editor
Name:		fb2edit
Version:	0.0.9
Release:	3
License:	GPLv3
Group:		Editors
URL:		http://fb2edit.lintest.ru
Source0:	https://github.com/lintest/fb2edit/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	qt4-devel

%description
Editor for FB2 ("FictionBook") files.

%files
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1402 |21cr|fb2png-0.1-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Take screenshots from the framebuffer
Name:		fb2png
Version:	0.1
Release:	23
Group:		System/Kernel and hardware
License:	GPLv2
Url:		http://www.minlinux.org/projects/fb2png/
Source0:	%{name}-%{version}.tar.bz2
Source1:	fb2png-0.1-index.html
Patch0:		fb2png-0.1-libpng-needs-libm.patch
Patch1:		fb2png-0.1-zlib-include.patch
Patch2:		fb2png-0.1-cflags-ldflags.patch

BuildRequires:	pkgconfig(libpng)

%description
Utility to make screenshots from framebuffer

%prep
%setup -q
%apply_patches
cp %{SOURCE1} index.html

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
%makeinstall BINDIR=%{buildroot}%{_bindir}

%files
%doc index.html
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1403 |21cr|fbcat-0.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Framebuffer screenshot program
Name:		fbcat
Version:	0.5.2
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphics
Url:		http://jwilk.net/software/fbcat
Source:		https://github.com/jwilk/fbcat/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
%rename fbgrab

%description
fbcat takes a screenshot using the framebuffer device.

The following visuals are supported:
    TRUECOLOR,
    DIRECTCOLOR,
    PSEUDOCOLOR,
    STATIC_PSEUDOCOLOR.

It's a modern replacement for fbgrab.

%files
%doc doc/COPYING doc/changelog doc/tested.txt
%{_bindir}/fbcat
%{_bindir}/fbgrab
%{_mandir}/man1/fbcat.1*
%{_mandir}/man1/fbgrab.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"
%make -C doc

%install
%makeinstall_std PREFIX=%{_prefix}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1404 |21cr|fbdesk-1.4.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fluxbox-application to create and manage icons on your desktop
Name:		fbdesk
Version:	1.4.1
Release:	13
License:	MIT
Group:		Graphical desktop/Other
Url:		http://fluxbox.sourceforge.net/fbdesk
Source0:	http://fluxbox.sourceforge.net/download/%{name}-%{version}.tar.gz
Source1:	%{name}-icons.tar.bz2
Patch0:		fbdesk-1.4.1-gcc43.patch
Patch1:		fbdesk-1.4.1-gcc48.patch
Patch2:		fbdesk-1.4.1-libpng15.patch
Patch3:		fbdesk-1.4.1-cassert.patch
Patch4:		fbdesk-1.4.1-option-v.patch
Patch5:		fbdesk-1.4.1-fix-c++14.patch
Buildrequires:	imlib2-devel
Buildrequires:	pkgconfig(x11)
Buildrequires:	pkgconfig(xext)
Buildrequires:	pkgconfig(xft)
Buildrequires:	pkgconfig(xpm)
Buildrequires:	pkgconfig(xrender)

%description
FbDesk is a fluxbox-application to create and manage icons on your desktop.

Implemented Features :

 * XPM and PNG image loading
 * Antialias text
 * UTF-8 and multibyte support
 * Vertical text
 * Grid Snapping
 * GUI for editing command/label and add/remove icons
 * Fluxbox menu style

%files
%doc README
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/*.png
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -q -T -D -a1
%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
%configure
%make

%install
%makeinstall_std

# Menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Name=Fbdesk
Comment=Fluxbox-application to create and manage icons on your desktop
Exec=%{_bindir}/%{name}
Icon=%{name}
Categories=Graphics;2DGraphics;
EOF

# icon
install -D -m 644 %{name}48.png %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 644 %{name}32.png %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{name}16.png %{buildroot}%{_miconsdir}/%{name}.png

install -d %{buildroot}%{_datadir}/%{name}
install -m 0644 *.png %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1405 |21cr|fbida-2.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Collection of applications for viewing and editing images
Name:		fbida
Version:	2.14
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://linux.bytesex.org/fbida/
Source0:	https://www.kraxel.org/releases/fbida/%{name}-%{version}.tar.gz
Patch0:	fbida-2.14-no-strip.patch
Patch1:	fbida-2.14-fix-build-with-gcc11.patch
BuildRequires:	desktop-file-utils
# The app needs /etc/X11/app-defaults
BuildRequires:	x11-server-common
BuildRequires:	giflib-devel
BuildRequires:	lesstif-devel
BuildRequires:	libexif-devel
BuildRequires:	libpcd-devel
BuildRequires:	sane-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(lirc)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)
Provides:		fbi = %{EVRD}
Requires:	exiftran = %{EVRD}
Requires:	fonts-ttf-dejavu
# Fbgs requires gs
Requires:	ghostscript
# Fbi uses convert to show indirectly supported image format
Requires:	imagemagick


%description
The fbida project contains a few applications for viewing and editing
images, with the main focus being photos.
The included applications are:
* fbi	- Image viewer for Linux framebuffer console.
* fbgs	- Wrapper script using fbi, for viewing ps/pdf files on frame buffer
* ida	- X11 application (Motif based) for viewing images with basic editing
    functions.
* exiftran- command line tool to do lossless transformations of JPEG images,
    similar to jpegtran but includes EXIF data.
*  thumbnail.cgi - CGI script to extract EXIF thumbnails from jpeg images
	and send them to web browser.
This project used to be 2 seperate projects (fbi and ida), but later merged
by the author.

%files
%doc COPYING README
%config(noreplace) %{_sysconfdir}/X11/app-defaults/
%{_bindir}/fbi
%{_bindir}/fbgs
%{_bindir}/fbpdf
%{_bindir}/ida
%{_datadir}/applications/ida.desktop
%{_mandir}/man1/fbi.1*
%{_mandir}/man1/fbgs.1*
%{_mandir}/man1/ida.1*

#-----------------------------------------------------------------------------

%package -n	exiftran
Summary:	Transform Digital Camera JPEG Images
Group:		Graphics
Conflicts:  	fbida < 2.09

%description -n	exiftran
This is a command-line utility to transform digital image JPEG images.
It can do lossless rotations like jpegtran, but unlike jpegtran, it cares
about the EXIF data.  It can rotate images automatically by checking the EXIF
orientation tag, updating the EXIF information if needed (image dimension,
orientation), and also rotating the EXIF thumbnail. It can process multiple
images at once.

%files -n exiftran
%doc COPYING
%{_bindir}/exiftran
%{_mandir}/man1/exiftran.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Drop internal libjpeg sources
rm -f jpeg/*/jpeg*


%build
# Must use CFLAGS as env variable, because makefile adds flags to it.
# Directly specifying CFLAGS as make variable would fail
export CFLAGS="%{optflags}"
%make verbose=yes


%install
%makeinstall_std prefix=%{_prefix}

# Install and fix the provided .desktop file
install -d %{buildroot}%{_datadir}/applications
desktop-file-install -m 0644 \
                                --remove-key="Encoding" \
                                --set-icon="graphics_section" \
                                --set-key="Terminal" --set-value="false" \
                                --add-category="2DGraphics" --add-category="RasterGraphics" \
                                --dir="%{buildroot}%{_datadir}/applications/" \
                                desktop/ida.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1406 |21cr|fbpager-0.1.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             fbpager
Version:          0.1.4
Release:          12
Summary:          Workspace pager dockapp for Fluxbox
License:          MIT
Group:            Graphical desktop/Other
Source:           %{name}-%{version}.tar.gz
Patch0:           01-fix_g++_build_error.patch
Patch1:		  fbpager-0.1.4-gcc43.patch
URL:              http://fluxbox.sourceforge.net/fbpager/
BuildRequires:    pkgconfig(x11)
BuildRequires:    pkgconfig(xrender)
Requires:         fluxbox

%description
Fbpager is a workspace pager dockapp, particularly useful with the
fbpager window manager. It is largely based on bbpager for Blackbox.

For additional information, see the included README and INSTALL text
files.

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
%configure
%make

%install
rm -fr %buildroot
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS  COPYING ChangeLog INSTALL NEWS README  TODO
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1407 |21cr|fbpanel-7.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	A lightweight X11 desktop panel
Name:		fbpanel
Version:	7.0
Release:	5
License:	LGPLv2+ and GPLv2+
Group:		Graphical desktop/Other
Url:		http://aanatoly.github.io/fbpanel/
Source0:	https://github.com/aanatoly/fbpanel/archive/%{version}.tar.gz
# distro specific patches
Patch10:	fbpanel-7.0-default-config.patch
Patch11:	fbpanel-6.1-default-applications.patch
Patch12:	fbpanel-7.0-gcc10-fno-common.patch
Patch13:	fbpanel-7.0-script-py3.patch
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xpm)
Requires:	xdg-utils

%description
fbpanel is a lightweight, NETWM compliant desktop panel. It works with any
NETWM compliant window manager (eg xfwm4, sawfish, openbox, metacity, kde).

It provides:
    * variety of plugins
    * ability to replace window icons
    * all icons follow your current GTK+ icon theme
    * transparency support
    * customizable size and screen position
    * ability to run many instances each with its own configuration
    * modest resource usage

%files
%doc CHANGELOG COPYING CREDITS NOTES
%{_bindir}/%{name}
%{_libdir}/*.so
%{_libexecdir}/make_profile
%{_libexecdir}/xlogout
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch10 -p1 -b .default-config
%patch11 -p1 -b .default-applications
%patch12 -p1
%patch13 -p1

%build
%setup_compile_flags
# this script is really ugly and doesn't work with configure macro
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir}/man1 \
	--libexecdir=%{_libexecdir} \
	--sysconfdir=%{_sysconfdir} \
	--localstatedir=%{_localstatedir}
%make cflagsx="%{optflags}"

%install
%makeinstall_std

# change some icon names that were also changed in the default panel config
mv %{buildroot}%{_datadir}/%{name}/images/logo.png \
	%{buildroot}%{_datadir}/%{name}/images/start-here.png

mv %{buildroot}%{_datadir}/%{name}/images/gnome-session-halt.png \
	%{buildroot}%{_datadir}/%{name}/images/system-shutdown.png

mv %{buildroot}%{_datadir}/%{name}/images/gnome-session-reboot.png \
	%{buildroot}%{_datadir}/%{name}/images/system-reboot.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1408 |21cr|fbreader-0.99.5-0.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty debug
%define debug_package %{nil}
%define _disable_ld_no_undefined 1

%define major 0.99
%define libzlcore %mklibname zlcore %{major}
%define libzltext %mklibname zltext %{major}
%define libzlui %mklibname zlui %{major}

Summary:	Reader for e-books in various formats
Name:		fbreader
Version:	0.99.5
Release:	0.6
License:	GPLv2+
Group:		Office
Url:		http://www.fbreader.org
#Source0:	http://fbreader.org/files/desktop/%{name}-sources-%{version}.tgz
# from git this time
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	bzip2-devel
BuildRequires:	jpeg-devel
BuildRequires:	libstdc++-devel
BuildRequires:	linebreak-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	desktop-file-utils
# force explicit Requires because of library packages being messed up in past
Requires:	%{libzlcore} = %{EVRD}
Requires:	%{libzltext} = %{EVRD}
Requires:	%{libzlui} = %{EVRD}
Obsoletes:	%{_lib}zlibrary-devel < 0.99.5

%description
FBReader is an e-book reader for various platforms.
Supported formats include: fb2, HTML, chm, plucker, palmdoc,
zTxt, TCR, RTF, OEB, OpenReader, mobipocket, plain text.

%files
%doc fbreader/LICENSE
%{_bindir}/FBReader
%{_datadir}/FBReader/
%{_datadir}/pixmaps/FBReader/
%{_datadir}/pixmaps/FBReader.png
%{_datadir}/applications/FBReader.desktop
%{_mandir}/man1/FBReader.1.*

#----------------------------------------------------------------------------

%package -n %{libzlcore}
Summary:	Cross-platform GUI library
Group:		System/Libraries
Requires:	zlibrary-common = %{EVRD}
Conflicts:	%{_lib}zlibrary < 0.99.5
Obsoletes:	%{_lib}zlibrary < 0.99.5

%description -n %{libzlcore}
ZLibrary is a cross-platform library to build applications running on
desktop Linux, Windows, and different Linux-based PDAs.

This package provides ZLibrary core.

%files -n %{libzlcore}
%{_libdir}/libzlcore.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libzltext}
Summary:	Cross-platform GUI library
Group:		System/Libraries
Requires:	zlibrary-common = %{EVRD}
Conflicts:	%{_lib}zlibrary < 0.99.5

%description -n %{libzltext}
ZLibrary is a cross-platform library to build applications running on
desktop Linux, Windows, and different Linux-based PDAs.

This package provides ZLibrary text.

%files -n %{libzltext}
%{_libdir}/libzltext.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libzlui}
Summary:	Cross-platform GUI library
Group:		System/Libraries
Requires:	zlibrary-common = %{EVRD}
Conflicts:	%{_lib}zlibrary < 0.99.5

%description -n %{libzlui}
ZLibrary is a cross-platform library to build applications running on
desktop Linux, Windows, and different Linux-based PDAs.

This package provides ZLibrary ui.

%files -n %{libzlui}
%{_libdir}/libzlui.so.%{major}*

#----------------------------------------------------------------------------

%package -n zlibrary-common
Summary:	Cross-platform GUI library
Group:		System/Libraries
BuildArch:	noarch
Conflicts:	%{_lib}zlibrary < 0.99.5

%description -n zlibrary-common
ZLibrary is a cross-platform library to build applications running on
desktop Linux, Windows, and different Linux-based PDAs.

This package provides ZLibrary common files.

%files -n zlibrary-common
%{_datadir}/zlibrary/

#----------------------------------------------------------------------------

%prep
%setup -q

# fix icon extension in the .desktop file
perl -pi -e 's,FBReader.png,FBReader,' fbreader/desktop/desktop

# fix qt4 build
perl -pi -e 's,moc-qt4,%{qt4bin}/moc,' makefiles/arch/desktop.mk
perl -pi -e 's,CC = .*,CC = gcc,' makefiles/arch/desktop.mk
perl -pi -e 's,QTINCLUDE = -I /usr/include/qt4,QTINCLUDE = -I %{qt4include},' makefiles/arch/desktop.mk
perl -pi -e 's,UILIBS = -lQtGui,UILIBS = -lQtGui -lQtCore,' makefiles/arch/desktop.mk
perl -pi -e 's,-lunibreak,-llinebreak,' makefiles/config.mk zlibrary/text/Makefile

echo "CFLAGS = %{optflags} -Wno-narrowing" >> makefiles/arch/desktop.mk
echo "LDFLAGS = %{ldflags}" >> makefiles/arch/desktop.mk

%build
make -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy

make -C zlibrary/text TARGET_ARCH=desktop UI_TYPE=dummy

make -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=qt4

make -C fbreader TARGET_ARCH=desktop UI_TYPE=dummy

%install
make -C zlibrary/core TARGET_ARCH=desktop UI_TYPE=dummy \
	DESTDIR=%{buildroot} INSTALLDIR=%{_prefix} LIBDIR=%{_libdir} do_install

make -C zlibrary/text TARGET_ARCH=desktop UI_TYPE=dummy \
	DESTDIR=%{buildroot} INSTALLDIR=%{_prefix} LIBDIR=%{_libdir} do_install

make -C zlibrary/ui TARGET_ARCH=desktop UI_TYPE=qt4 \
	DESTDIR=%{buildroot} INSTALLDIR=%{_prefix} LIBDIR=%{_libdir} do_install

make -C fbreader TARGET_ARCH=desktop UI_TYPE=dummy \
	DESTDIR=%{buildroot} INSTALLDIR=%{_prefix} LIBDIR=%{_libdir} do_install

# add mimetypes
desktop-file-install \
	--vendor="" \
	--add-mime-type="application/epub+zip;application/rtf;" \
	--add-mime-type="application/x-mobipocket-ebook;application/x-fictionbook+xml;" \
	--add-mime-type="text/html;application/xhtml+xml;" \
	--add-mime-type="application/vnd.ms-htmlhelp;" \
	%{buildroot}%{_datadir}/applications/FBReader.desktop --dir=%{buildroot}%{_datadir}/applications/

# man
mkdir -p %{buildroot}%{_mandir}/man1
install -m644 fbreader/desktop/FBReader.1 %{buildroot}%{_mandir}/man1

# remove useless .so files (there are no includes to use them)
rm -f %{buildroot}%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1409 |21cr|fbterm-1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A fast FrameBuffer based TERMinal emulator for linux
Name:		fbterm
Version:	1.8
Release:	2
License:	GPLv2+
Group:		Terminals
Url:		https://github.com/sfzhi/fbterm
Source0: 	https://github.com/sfzhi/fbterm/archive/%{version}.tar.gz
Patch0:		fbterm-1.7-u16-build.patch
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(ncurses)
# libx86 provides to be fixed
%ifarch x86_64
BuildRequires:	devel(libx86(64bit))
%else
BuildRequires:	devel(libx86)
%endif
ExclusiveArch:	%{ix86} x86_64

%description
FbTerm is a fast terminal emulator for linux with frame buffer. Features
include:

* mostly as fast as terminal of linux kernel while accelerated scrolling
  is enabled on framebuffer device
* select font with fontconfig and draw text with freetype2, same as
  Qt/Gtk+ based GUI apps
* dynamicly create/destroy up to 10 windows initially running default
  shell
* record scrollback history for every window 
* auto-detect text encoding with current locale, support double width
  scripts like Chinese, Japanese etc
* switch between configurable additional text encodings with hot keys on
  the fly
* copy/past selected text between windows with mouse when gpm server is
  running

%files
%doc AUTHORS ChangeLog README COPYING 
%{_bindir}/%{name}
%{_mandir}/man1/*

#--------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1410 |21cr|fbv-1.0b-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################################################
# SpecFile: fbv.spec 
# Generato: http://www.mandrivausers.ro/
# MRB-Falticska Florin
######################################################
%define debug_package	%{nil}

Summary:	Framebuffer image viewer
Name:		fbv
Version:	1.0b
Release:	9
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://s-tech.elsat.net.pl/fbv
Source0:	http://s-tech.elsat.net.pl/fbv/%{name}-%{version}.tar.gz
#patch from alt-linux
Patch0:		fbv-nocenter.patch
# giflib 5.1 support
Patch1:		fbv-1.0b-giflib51.patch
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
A simple program to view pictures on a framebuffer console. It
supports PNG, JPEG, GIF and BMP files.

%files
%doc ChangeLog README TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && \
	mv -f ChangeLog.conv ChangeLog

%build
./configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir}

sed -i 's|LIBS.*|LIBS=-lpng -ljpeg -lungif -lgif|' Make.conf
sed -i 's|setjmp(png_ptr->jmpbuf)|setjmp(png_jmpbuf(png_ptr))|' png.c

%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1411 |21cr|fbzx-4.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A ZX Spectrum Emulator for FrameBuffer
Name:		fbzx
Version:	4.8.0
Release:	2
License:	GPLv3+
Group:		Emulators
Url:		https://www.rastersoft.com/programas/fbzx.html
Source0:	https://gitlab.com/rastersoft/fbzx/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(sdl2)
Recommends:	spectrum-roms

%description
FBZX is a Sinclair Spectrum emulator, designed to work at full screen using
the FrameBuffer or under X-Windows.

For ZX Spectrum roms install spectrum-roms package from non-free repository.

%files
%doc AMSTRAD CAPABILITIES FAQ HISTORY.md README* TODO
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make FLAGS="%{optflags}"

%install
#install application
mkdir -p %{buildroot}%{_bindir}
install -m 755 src/%{name} %{buildroot}%{_bindir}

# install data
mkdir -p %{buildroot}%{_datadir}/%{name}
install -p -m 644 data/keymap.bmp %{buildroot}%{_datadir}/%{name}

# install icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
install -p -m 644 data/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps

# install desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install	\
	--add-category=Emulator	\
	--remove-key=Version	\
	--dir %{buildroot}%{_datadir}/applications	\
	data/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1412 |21cr|fceux-2.6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NES emulator
Name:		fceux
Version:	2.6.5
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://fceux.com/web/home.html
Source0:	https://github.com/TASEmulators/fceux/archive/refs/tags/v2.6.5.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		fceux-minizip-ng.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
# Use the internal sources and be happy with the system lua
#BuildRequires:	lua5.1-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)

%description
FCEUX is a Nintendo Entertainment System (NES), Famicom, and Famicom Disk
System (FDS) emulator. It supports both PAL (European) and NTSC (USA/JPN)
modes. It supports both Windows and SDL versions for cross compatibility.

%files
%doc changelog.txt NewPPUtests.txt README TODO*
%license COPYING
%doc documentation/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*
%{_mandir}/man6/%{name}-net-server.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

# Massage the provided .desktop file
desktop-file-edit	--remove-key=Version --remove-key=Encoding \
					--remove-only-show-in="Unity" --set-icon="%{name}" \
					--set-key="Exec" --set-value="%{name}" \
					--set-comment="Play Nintendo Enternainment System games" \
					%{buildroot}%{_datadir}/applications/%{name}.desktop

# Process the provided icon to have more icon sizes
for size in 512x512 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -resize $size %{buildroot}%{_datadir}/pixmaps/%{name}1.png %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done
rm -f %{buildroot}%{_datadir}/pixmaps/%{name}1.png
rmdir %{buildroot}%{_datadir}/pixmaps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1413 |21cr|fcgi-2.4.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	The FastCGI development kit
Name:		fcgi
Version:	2.4.0
Release:	21
License:	BSD-style
Group:		System/Servers
URL:		http://www.fastcgi.com/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		fcgi-no-libs.patch
Patch1:		FastCGI-clientdata_pointer.patch
Patch2:		FastCGI-makefile.am_cppflags.patch
Patch3:		fastcgi-2.4.0_missing_call_to_fclose.patch
Patch4:		FastCGI-2.4.0-CVE-2011-2766.diff
Patch5:		fcgi-2.4.0-gcc4.4.diff
Patch6:		fcgi-2.4.0-poll.patch
BuildRequires:	libstdc++-devel
BuildRequires:	autoconf automake libtool
Requires:	%{libname} = %{EVRD}

%description
FastCGI is an open extension to CGI that provides high performance
for all Internet applications without the penalties of Web server
APIs.

FastCGI is designed to be layered on top of existing Web server
APIs. For instance, the mod_fastcgi Apache module adds FastCGI 
support to the Apache server. FastCGI can also be used, with 
reduced functionality and reduced performance, on any Web server
that supports CGI.

This FastCGI Developer's Kit is designed to make developing 
FastCGI applications easy. The kit currently supports FastCGI 
applications written in C/C++, Perl, Tcl, and Java.

This package contains only shared libraries used by programs 
developed using FastCGI Developer's Kit and cgi-fcgi (bridge from
CGI to FastCGI).

%package -n	%{libname}
Summary:	Libraries for %{name}
Group:          System/Libraries

%description -n	%{libname}
This package contains the %{name} library files.

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C
Requires:	%{libname}  = %{EVRD}
Provides:	libfcgi-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}


%description -n %{devname}
This package contains FastCGI Developer's Kit, which is designed
to make developing FastCGI applications easy. The kit currently
supports FastCGI applications written in C/C++, Perl, Tcl, and
Java.

%prep

%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
%patch5 -p0
%patch6 -p1

%build
touch INSTALL NEWS AUTHORS ChangeLog COPYING
rm -f configure
libtoolize --copy --force; aclocal; autoconf; automake --add-missing --copy

%configure \
    --with-global \
    --with-nodebug \
    --with-noassert \
    --with-notest

make

%install
%makeinstall_std

install -d %{buildroot}%{_datadir}/fastcgi
cp -a examples/{Makefile*,*.c} %{buildroot}%{_datadir}/fastcgi/

# install the built examples (should we require apache here?)
install -d %{buildroot}/var/www/fcgi-bin

pushd examples/.libs/
    install -m755 authorizer %{buildroot}/var/www/fcgi-bin/
    install -m755 echo %{buildroot}/var/www/fcgi-bin/
    install -m755 echo-cpp %{buildroot}/var/www/fcgi-bin/
    install -m755 echo-x %{buildroot}/var/www/fcgi-bin/
    install -m755 log-dump %{buildroot}/var/www/fcgi-bin/
    install -m755 size %{buildroot}/var/www/fcgi-bin/
    install -m755 threaded %{buildroot}/var/www/fcgi-bin/
popd

# cleanup
rm -f %{buildroot}%{_libdir}/*.*a

# install mans
mkdir -p %{buildroot}%{_mandir}/man1
cp -v doc/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man3
cp -v doc/*.3 %{buildroot}%{_mandir}/man3

%files
%license LICENSE.TERMS
%doc README
%attr(0755,root,root) %{_bindir}/cgi-fcgi
%attr(0755,root,root) /var/www/fcgi-bin/authorizer
%attr(0755,root,root) /var/www/fcgi-bin/echo
%attr(0755,root,root) /var/www/fcgi-bin/echo-cpp
%attr(0755,root,root) /var/www/fcgi-bin/echo-x
%attr(0755,root,root) /var/www/fcgi-bin/log-dump
%attr(0755,root,root) /var/www/fcgi-bin/size
%attr(0755,root,root) /var/www/fcgi-bin/threaded
%{_mandir}/man1/*.1*

%files -n %{libname}
%attr(0755,root,root) %{_libdir}/libfcgi++.so.%{major}*
%attr(0755,root,root) %{_libdir}/libfcgi.so.%{major}*

%files -n %{devname}
%doc doc/*.htm* doc/*.gif doc/fastcgi-*
%attr(0755,root,root) %{_libdir}/libfcgi++.so
%attr(0755,root,root) %{_libdir}/libfcgi.so
%{_includedir}/*.h
%{_datadir}/fastcgi
%{_mandir}/man3/*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1414 |21cr|fcitx-4.2.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Whether or not to build Qt 4.x input module
%bcond_without qt4
# Whether or not to build GTK 2.x input module
%bcond_without gtk2
# Whether or not to build GTK 3.x input module
%bcond_without gtk3
# Whether or not to build the Classic UI (not needed with kimpanel)
%bcond_without classic_ui

Name:		fcitx
Version:	4.2.9.9
Release:	1
Summary:	Fcitx - Free Chinese Input Tool for X
License:	GPLv2
Group:		System/Internationalization
URL:		http://www.fcitx-im.org/
Source0:	http://download.fcitx-im.org/fcitx/%{name}-%{version}.tar.xz
Source1:	https://download.fcitx-im.org/data/pinyin.tar.gz
Source2:	http://download.fcitx-im.org/data/py_stroke-20121124.tar.gz
Source3:	http://download.fcitx-im.org/data/py_table-20121124.tar.gz
Source4:	http://download.fcitx-im.org/data/en_dict-20121020.tar.gz
Source5:	http://download.fcitx-im.org/data/table.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		fcitx-4.2.8.1-defaults.patch
Patch1:		fcitx-no-download.patch
BuildRequires:	automake
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xkeyboard-config)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	wget
BuildRequires:	intltool
BuildRequires:	pkgconfig(opencc)
BuildRequires:	chrpath
Requires:	locales-zh

%description
%{name} is an X input method allowing people to enter simplified Chinese
characters in X environment following XIM standard.

%files -f %{name}.lang
%attr(0644,-,-) %doc doc/*.txt doc/*.htm
%{_bindir}/createPYMB
%{_bindir}/fcitx
%{_bindir}/fcitx-autostart
%{_bindir}/fcitx-dbus-watcher
%{_bindir}/fcitx-diagnose
%{_bindir}/fcitx-remote
%{_bindir}/mb2org
%{_bindir}/mb2txt
%{_bindir}/readPYBase
%{_bindir}/readPYMB
%{_bindir}/scel2org
%{_bindir}/txt2mb
%{_libdir}/libfcitx-config.so.4*
%{_libdir}/libfcitx-core.so.0*
%{_libdir}/libfcitx-utils.so.0*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/fcitx-autoeng.so
%{_libdir}/%{name}/fcitx-chttrans.so
%{_libdir}/%{name}/fcitx-clipboard.so
%{_libdir}/%{name}/fcitx-dbus.so
%{_libdir}/%{name}/fcitx-freedesktop-notify.so
%{_libdir}/%{name}/fcitx-fullwidth-char.so
%{_libdir}/%{name}/fcitx-ipcportal.so
%{_libdir}/%{name}/fcitx-imselector.so
%{_libdir}/%{name}/fcitx-ipc.so
%{_libdir}/%{name}/fcitx-keyboard.so
%{_libdir}/%{name}/fcitx-notificationitem.so
%{_libdir}/%{name}/fcitx-pinyin-enhance.so
%{_libdir}/%{name}/fcitx-pinyin.so
%{_libdir}/%{name}/fcitx-punc.so
%{_libdir}/%{name}/fcitx-quickphrase.so
%{_libdir}/%{name}/fcitx-qw.so
%{_libdir}/%{name}/fcitx-remote-module.so
%{_libdir}/%{name}/fcitx-spell.so
%{_libdir}/%{name}/fcitx-table.so
%{_libdir}/%{name}/fcitx-unicode.so
%{_libdir}/%{name}/fcitx-x11.so
%{_libdir}/%{name}/fcitx-xim.so
%{_libdir}/%{name}/fcitx-xkb.so
%{_libdir}/%{name}/fcitx-xkbdbus.so
%dir %{_libdir}/%{name}/libexec
%{_libdir}/%{name}/libexec/comp-spell-dict
%{_libdir}/%{name}/libexec/fcitx-po-parser
%{_libdir}/%{name}/libexec/fcitx-scanner
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/addon
%{_datadir}/%{name}/addon/fcitx-autoeng.conf
%{_datadir}/%{name}/addon/fcitx-chttrans.conf
%{_datadir}/%{name}/addon/fcitx-clipboard.conf
%{_datadir}/%{name}/addon/fcitx-dbus.conf
%{_datadir}/%{name}/addon/fcitx-freedesktop-notify.conf
%{_datadir}/%{name}/addon/fcitx-fullwidth-char.conf
%{_datadir}/%{name}/addon/fcitx-imselector.conf
%{_datadir}/%{name}/addon/fcitx-ipcportal.conf
%{_datadir}/%{name}/addon/fcitx-ipc.conf
%{_datadir}/%{name}/addon/fcitx-keyboard.conf
%{_datadir}/%{name}/addon/fcitx-notificationitem.conf
%{_datadir}/%{name}/addon/fcitx-pinyin-enhance.conf
%{_datadir}/%{name}/addon/fcitx-pinyin.conf
%{_datadir}/%{name}/addon/fcitx-punc.conf
%{_datadir}/%{name}/addon/fcitx-quickphrase.conf
%{_datadir}/%{name}/addon/fcitx-qw.conf
%{_datadir}/%{name}/addon/fcitx-remote-module.conf
%{_datadir}/%{name}/addon/fcitx-spell.conf
%{_datadir}/%{name}/addon/fcitx-table.conf
%{_datadir}/%{name}/addon/fcitx-unicode.conf
%{_datadir}/%{name}/addon/fcitx-x11.conf
%{_datadir}/%{name}/addon/fcitx-xim.conf
%{_datadir}/%{name}/addon/fcitx-xkb.conf
%{_datadir}/%{name}/addon/fcitx-xkbdbus.conf
%dir %{_datadir}/%{name}/configdesc
%{_datadir}/%{name}/configdesc/addon.desc
%{_datadir}/%{name}/configdesc/config.desc
%{_datadir}/%{name}/configdesc/fcitx-autoeng.desc
%{_datadir}/%{name}/configdesc/fcitx-chttrans.desc
%{_datadir}/%{name}/configdesc/fcitx-clipboard.desc
%{_datadir}/%{name}/configdesc/fcitx-imselector.desc
%{_datadir}/%{name}/configdesc/fcitx-keyboard.desc
%{_datadir}/%{name}/configdesc/fcitx-pinyin.desc
%{_datadir}/%{name}/configdesc/fcitx-pinyin-enhance.desc
%{_datadir}/%{name}/configdesc/fcitx-quickphrase.desc
%{_datadir}/%{name}/configdesc/fcitx-spell.desc
%{_datadir}/%{name}/configdesc/fcitx-table.desc
%{_datadir}/%{name}/configdesc/fcitx-unicode.desc
%{_datadir}/%{name}/configdesc/fcitx-xim.desc
%{_datadir}/%{name}/configdesc/fcitx-xkb.desc
%{_datadir}/%{name}/configdesc/inputmethod.desc
%{_datadir}/%{name}/configdesc/profile.desc
%{_datadir}/%{name}/configdesc/table.desc
%dir %{_datadir}/%{name}/data
%{_datadir}/%{name}/data/*sh
%{_datadir}/%{name}/data/AutoEng.dat
%{_datadir}/%{name}/data/charselectdata
%{_datadir}/%{name}/data/gbks2t.tab
%{_datadir}/%{name}/data/punc.mb.zh_CN
%{_datadir}/%{name}/data/punc.mb.zh_HK
%{_datadir}/%{name}/data/punc.mb.zh_TW
%{_datadir}/%{name}/data/vk.conf
%dir %{_datadir}/%{name}/data/quickphrase.d
%{_datadir}/%{name}/data/quickphrase.d/emoji.mb
%{_datadir}/%{name}/data/quickphrase.d/emoji-eac.mb
%{_datadir}/%{name}/data/quickphrase.d/latex.mb
%dir %{_datadir}/%{name}/dbus
%{_datadir}/%{name}/dbus/daemon.conf
%dir %{_datadir}/%{name}/imicon
%{_datadir}/%{name}/imicon/*
%dir %{_datadir}/%{name}/inputmethod
%{_datadir}/%{name}/inputmethod/pinyin.conf
%{_datadir}/%{name}/inputmethod/qw.conf
%{_datadir}/%{name}/inputmethod/shuangpin.conf
%dir %{_datadir}/%{name}/pinyin
%{_datadir}/%{name}/pinyin/*
%dir %{_datadir}/%{name}/py-enhance
%{_datadir}/%{name}/py-enhance/*
%{_mandir}/man1/createPYMB.1*
%{_mandir}/man1/fcitx-remote.1*
%{_mandir}/man1/fcitx.1*
%{_mandir}/man1/mb2org.1*
%{_mandir}/man1/mb2txt.1*
%{_mandir}/man1/readPYBase.1*
%{_mandir}/man1/readPYMB.1*
%{_mandir}/man1/scel2org.1*
%{_mandir}/man1/txt2mb.1*
%{_datadir}/applications/fcitx.desktop
%{_datadir}/icons/hicolor/*/*/fcitx*.*
%{_sysconfdir}/xdg/autostart/fcitx-autostart.desktop
%dir %{_datadir}/fcitx/spell
%{_datadir}/fcitx/spell/*
%dir %{_datadir}/fcitx/table
%{_datadir}/fcitx/table/*
%{_datadir}/dbus-1/services/*service

#-------------------------------------------------------
%package devel
Summary:	Fcitx development library
Group:		Development/C
Requires:	%{name} = %{version}

%description devel
fcitx development files.

%files devel
%doc %{_docdir}/fcitx/Develop_Readme
%{_bindir}/fcitx4-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_datadir}/cmake/%{name}

#-------------------------------------------------------

%if %{with classic_ui}
%package ui
Summary:	Classic UI for fcitx
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(pango)

%description ui
Classic UI for fcitx.

This is needed if you don't use kimpanel.

%files ui
%{_bindir}/fcitx-skin-installer
%{_libdir}/fcitx/fcitx-classic-ui.so
%{_libdir}/fcitx/fcitx-vk.so
%{_datadir}/applications/fcitx-skin-installer.desktop
%{_datadir}/fcitx/addon/fcitx-classic-ui.conf
%{_datadir}/fcitx/addon/fcitx-vk.conf
%{_datadir}/fcitx/configdesc/fcitx-classic-ui.desc
%{_datadir}/fcitx/configdesc/skin.desc
%{_datadir}/mime/packages/x-fskin.xml
%{_datadir}/fcitx/skin
%endif

#-------------------------------------------------------

%if %{with qt4}
%package qt4
Summary:	Fcitx Qt 4.x module
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	pkgconfig(QtDBus)

%description qt4
fcitx Qt 4.x module.

%files qt4
%{_libdir}/fcitx/libexec/fcitx-qt-gui-wrapper
%{_libdir}/qt4/plugins/inputmethods/qtim-fcitx.so
%{_libdir}/%{name}/fcitx-kimpanel-ui.so
%{_datadir}/%{name}/addon/fcitx-kimpanel-ui.conf
%{_libdir}/libfcitx-qt.so.0*
%endif

#-------------------------------------------------------

%package configtool
Summary:	Tool for configuring fcitx
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}

%description configtool
Tool for configuring fcitx

%files configtool
%{_bindir}/fcitx-configtool
%{_datadir}/applications/fcitx-configtool.desktop

#-------------------------------------------------------

%if %{with gtk2} || %{with gtk3}
%package gtk
Summary:	Common files for the fcitx gtk 2.x and 3.x modules
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(dbus-glib-1)

%description gtk
Common files for the fcitx gtk 2.x and 3.x modules

%files gtk
%{_libdir}/girepository-1.0/Fcitx-1.0.typelib
%{_datadir}/gir-1.0/Fcitx-1.0.gir
%{_libdir}/libfcitx-gclient.so.0*
%{_libdir}/libfcitx-gclient.so.1
%endif

#-------------------------------------------------------

%if %{with gtk2}
%package gtk2
Summary:	Fcitx gtk 2.x module
Group:		System/Internationalization
BuildRequires:	pkgconfig(gtk+-x11-2.0)
Requires:	%{name}-gtk = %{EVRD}
Requires(post):	gtk+2.0
Requires(postun): gtk+2.0

%description gtk2
fcitx gtk module.

%files gtk2
%{_libdir}/gtk-2.0/*/immodules/im-fcitx.so

%post gtk2
%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%{_lib}

%postun gtk2
%{_bindir}/gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%{_lib}
%endif
#-------------------------------------------------------

%if %{with gtk3}
%package gtk3
Summary:	Fcitx gtk 3.x module
Group:		System/Internationalization
Requires:	%{name} = %{version}
Requires:	%{name}-gtk = %{EVRD}
BuildRequires:	pkgconfig(gtk+-x11-3.0)

%description gtk3
fcitx gtk module.

%files gtk3
%{_libdir}/gtk-3.0/*/immodules/im-fcitx.so
%endif
#-------------------------------------------------------

%prep
%autosetup -p1

cp %{SOURCE1} src/im/pinyin/data
cp %{SOURCE2} src/module/pinyin-enhance/data
cp %{SOURCE3} src/module/pinyin-enhance/data
cp %{SOURCE4} src/module/spell/dict
cp %{SOURCE5} src/im/table/data

%build
%cmake -Wno-dev -DCMAKE_SKIP_RPATH=OFF \
	-DENABLE_GTK2_IM_MODULE=%{with gtk2} \
	-DENABLE_GTK3_IM_MODULE=%{with gtk3} \
	-DENABLE_QT_IM_MODULE=%{with qt4} \
	-DENABLE_CAIRO=%{with classic_ui} \
	-DENABLE_PANGO=%{with classic_ui}
%make

%install
%makeinstall_std -C build

chrpath -d %{buildroot}%{_libdir}/*.so

# A hack - make install issue?
mkdir -p %{buildroot}/etc/xdg/autostart/
mv %{buildroot}/usr/etc/xdg/autostart/* %{buildroot}/etc/xdg/autostart/
rm -rf %{buildroot}/usr/etc

%if %{without classic_ui}
# Built even without classic_ui... But apparently not needed
rm -rf %{buildroot}%{_datadir}/fcitx/skin
%endif

%find_lang %{name}




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1415 |21cr|fcitx5-5.1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/fcitx5.conf

%define major_core 7
%define	libcore %mklibname %{name}-core %{major_core}
%define major_config 6
%define	libconfig %mklibname %{name}-config %{major_config}
%define major_utils 2
%define	libutils %mklibname %{name}-utils %{major_utils}
%define devname	%mklibname %{name} -d

# RPM macroses for fcitx5
%define _fcitx5_libdir %{_libdir}/fcitx5
%define _fcitx5_libexecdir %{_fcitx5_libdir}/libexec
%define _fcitx5_datadir %{_datadir}/fcitx5
%define _fcitx5_addondir %{_fcitx5_datadir}/addon
%define _fcitx5_imconfdir %{_fcitx5_datadir}/inputmethod

Summary(ru_RU.UTF-8): Новое поколение fcitx
Summary:        Next generation of fcitx
Name:           fcitx5
Version:        5.1.7
Release:        2
License:        LGPLv2+
Group:		System/Internationalization
URL:            https://github.com/fcitx/fcitx5

Source0:        https://download.fcitx-im.org/fcitx5/fcitx5/fcitx5-%{version}_dict.tar.xz
Source1:        fcitx5-xinput
Source2:        fcitx5.sh
Source3:        xim.d-fcitx5
Source4:        fcitx5.service

BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(pangocairo)
BuildRequires:  pkgconfig(pangoxft)
BuildRequires:  pkgconfig(cldr-emoji-annotation)
BuildRequires:  pkgconfig(dri)
BuildRequires:  pkgconfig(enchant)
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(fmt)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(iso-codes)
BuildRequires:  pkgconfig(json-c)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(pangoxft)
BuildRequires:  pkgconfig(uuid)
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(wayland-egl)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-aux)
BuildRequires:  pkgconfig(xkbcommon-x11)
BuildRequires:  pkgconfig(xkbfile)
BuildRequires:  pkgconfig(xcb-ewmh)
BuildRequires:  pkgconfig(xcb-imdkit)
BuildRequires:  pkgconfig(xcb-icccm)
BuildRequires:  pkgconfig(xcb-keysyms)
BuildRequires:  pkgconfig(xkeyboard-config)
BuildRequires:  desktop-file-utils
BuildRequires:  /usr/bin/appstream-util

Requires:       %{name}-data = %{EVRD}
Requires:	%{name} = %{EVRD}
Requires:       fcitx5-gtk
Requires:       fcitx5-qt
Recommends:     fcitx5-autostart
Requires:       fcitx5-configtool
Requires:       %{libcore} = %{EVRD}
Requires:       %{libconfig} = %{EVRD}
Requires:       %{libutils} = %{EVRD}

Obsoletes:      fcitx < 5
Provides:       inputmethod

%description
Fcitx 5 is a generic input method framework released under LGPL-2.1+.

%description -l ru_RU.UTF-8
Fcitx 5 - это универсальный фреймворк методов ввода,
выпускаемый под лицензией LGPL-2.1+.

%files -f %{name}.lang
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md 
%config %{_xinputconf}
%{_bindir}/%{name}
%{_bindir}/%{name}-configtool
%{_bindir}/%{name}-remote
%{_bindir}/%{name}-diagnose
%{_fcitx5_libdir}/*.so
%{_fcitx5_libexecdir}/comp-spell-dict
%{_libexecdir}/fcitx5-wayland-launcher
%{_sysconfdir}/xdg/Xwayland-session.d/20-fcitx-x11
%{_fcitx5_addondir}

#------------------------------------------------------------------

%package -n %{devname}
Summary(ru_RU.UTF-8): Файлы разработчика для %{name}
Summary:        Development files for %{name}
Group:		Development/C
Requires:	%{libcore} = %{EVRD}
Requires:	%{libconfig} = %{EVRD}
Requires:	%{libutils} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides development files for fcitx5

%description -l ru_RU.UTF-8 -n %{devname}
Этот пакет предоставляет файлы разработчика для %{name}

%files -n %{devname}
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md
%{_includedir}/Fcitx5/
%{_libdir}/cmake/Fcitx5*
%{_libdir}/libFcitx5*.so
%{_libdir}/pkgconfig/Fcitx5*.pc

#------------------------------------------------------------------

%package -n %{libcore}
Summary(ru_RU.UTF-8): Библиотека Core для %{name}
Summary:        Core library for %{name}
Group:          System/Libraries

%description -n %{libcore}
This package contains the library needed to run programs dynamically linked 
with %{libcore}.

%description -l ru_RU.UTF-8 -n %{libcore}
Этот пакет содержит библиотеку, необходимую для запуска программ,
динамически связанных с %{libcore}.

%files -n %{libcore}
%{_libdir}/libFcitx5Core.so.%{major_core}
%{_libdir}/libFcitx5Core.so.%{version}

#------------------------------------------------------------------

%package -n %{libconfig}
Summary(ru_RU.UTF-8): Библиотека Config для %{name}
Summary:        Config library for %{name}
Group:          System/Libraries

%description -n %{libconfig}
This package contains the library needed to run programs dynamically linked 
with %{libconfig}.

%description -l ru_RU.UTF-8 -n %{libconfig}
Этот пакет содержит библиотеку, необходимую для запуска программ,
динамически связанных с %{libconfig}.

%files -n %{libconfig}
%{_libdir}/libFcitx5Config.so.%{major_config}
%{_libdir}/libFcitx5Config.so.%{version}

#------------------------------------------------------------------

%package -n %{libutils}
Summary(ru_RU.UTF-8): Библиотека Utils для %{name}
Summary:        Utils library for %{name}
Group:          System/Libraries

%description -n %{libutils}
This package contains the library needed to run programs dynamically linked 
with %{libutils}.

%description -l ru_RU.UTF-8 -n %{libutils}
Этот пакет содержит библиотеку, необходимую для запуска программ,
динамически связанных с %{libutils}.

%files -n %{libutils}
%{_libdir}/libFcitx5Utils.so.%{major_utils}
%{_libdir}/libFcitx5Utils.so.%{version}

#------------------------------------------------------------------

%package data
Summary:        Data files of Fcitx5	
BuildArch:      noarch
Requires:	%{name} = %{EVRD}
#Requires:       hicolor-icon-theme

%description data
This package contains shared data for Fcitx5.

%description -l ru_RU.UTF-8 data
Этот пакет содержит общие данные для Fcitx5.

%files data
%{_userunitdir}/fcitx5.service
%{_fcitx5_datadir}/{data,default,emoji,inputmethod,spell,table,testing,themes,unicode}/*
%{_datadir}/dbus-1/services/org.fcitx.Fcitx5.service
%{_datadir}/applications/org.fcitx.Fcitx5.desktop
%{_metainfodir}/org.fcitx.Fcitx5.metainfo.xml
%{_datadir}/applications/%{name}-configtool.desktop
%{_datadir}/applications/%{name}-wayland-launcher.desktop
%{_datadir}/icons/hicolor/*/apps/*

#------------------------------------------------------------------

%package autostart
Summary(ru_RU.UTF-8): Этот пакет позволит запустить fcitx5 с вашей графической сессией
Summary:        This package will make fcitx5 start with your GUI session
BuildArch:      noarch
Requires:       %{name} = %{EVRD}

%description autostart
This package will setup autostart and environment needed for fcitx5 to work properly.

%description -l ru_RU.UTF-8 autostart
Этот пакет настраивает автозапуск fcitx5.

%files autostart
%config %{_sysconfdir}/xdg/autostart/org.fcitx.Fcitx5.desktop
%config %{_sysconfdir}/profile.d/fcitx5.sh

#------------------------------------------------------------------

%package rpm-macros
Summary:	RPM macros to build third-party fcitx5 addons packages
BuildArch:	noarch

%description rpm-macros
This package provides rpm macros to support the creation of third-party addon
packages to extend Fcitx5.

%description -l ru_RU.UTF-8 rpm-macros
Этот пакет содержит макросы rpm, необходимые для создания пакетов дополнений
сторонних разработчиков для расширения Fcitx5.

%files rpm-macros
%{_rpmmacrodir}/macros.%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DCMAKE_SKIP_RPATH=OFF
%make

%install
%makeinstall_std -C build

# rpm macros
cat > macros << 'EOF'
# RPM macroses for fcitx5
%%_fcitx5_libdir %{_fcitx5_libdir}
%%_fcitx5_libexecdir %{_fcitx5_libexecdir}
%%_fcitx5_datadir %{_fcitx5_datadir}
%%_fcitx5_addondir %{_fcitx5_addondir}
%%_fcitx5_imconfdir %{_fcitx5_imconfdir}
EOF
%install_macro %{name} macros

install -pm 644 -D %{SOURCE1} %{buildroot}%{_xinputconf}
install -pm 644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/fcitx5.sh
install -d %{buildroot}%{_datadir}/%{name}/inputmethod
install -d %{buildroot}%{_datadir}/%{name}/table

# recreate soft link
rm -rf %{buildroot}%{_sysconfdir}/xdg/autostart/org.fcitx.Fcitx5.desktop
ln -sf %{_datadir}/applications/org.fcitx.Fcitx5.desktop %{buildroot}%{_sysconfdir}/xdg/autostart/

# create autostart
mkdir -p %{buildroot}%{_distconfdir}/X11/xim.d/
install -m 644 %{SOURCE3} %{buildroot}%{_distconfdir}/X11/xim.d/fcitx5

priority=30
pushd  %{buildroot}%{_distconfdir}/X11/xim.d/
    for lang in am ar as bn el fa gu he hi hr ja ka kk kn ko lo ml my \
                pa ru sk vi zh_TW zh_CN zh_HK zh_SG \
                de fr it es nl cs pl da nn nb fi en sv ; do
        mkdir $lang
        pushd $lang
            ln -s ../fcitx5 $priority-fcitx5
        popd
    done
popd

desktop-file-install --delete-original \
  --dir %{buildroot}%{_datadir}/applications \
  %{buildroot}%{_datadir}/applications/%{name}-configtool.desktop
 
desktop-file-install --delete-original \
  --dir %{buildroot}%{_datadir}/applications \
  %{buildroot}%{_datadir}/applications/org.fcitx.Fcitx5.desktop
  
# convert symlinked icons to copied icons, this will help co-existing with
# fcitx4
for iconfile in $(find %{buildroot}%{_datadir}/icons -type l)
do
  origicon=$(readlink -f ${iconfile})
  rm -f ${iconfile}
  cp ${origicon} ${iconfile}
done 
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
%find_lang %{name}

# own directories
mkdir -p %{buildroot}%{_fcitx5_imconfdir}

install -D -m 0644 %{SOURCE4} %{buildroot}%{_userunitdir}/fcitx5.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1416 |21cr|fcitx5-chinese-addons-5.1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Аддон с китайским языком для fcitx5
Summary:        Chinese related addon for fcitx5
Name:           fcitx5-chinese-addons
Version:        5.1.3
Release:        3
License:        LGPLv2+
Group:		System/Internationalization
URL:            https://github.com/fcitx/fcitx5-chinese-addons

Source:         https://download.fcitx-im.org/fcitx5/fcitx5-chinese-addons/fcitx5-chinese-addons-%{version}_dict.tar.xz

Patch1:         fcitx5-chinese-addons-5.1.3-set-baidu-default-engine.patch

BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  libime-devel
BuildRequires:  libime-tools
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(fmt)
BuildRequires:  pkgconfig(opencc)
BuildRequires:  boost-devel
BuildRequires:  pkgconfig(Qt5WebKit)
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(Qt5WebEngineWidgets)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  fcitx5-rpm-macros
BuildRequires:  fcitx5-qt5-devel
BuildRequires:  fcitx5-lua-devel
BuildRequires:  pkgconfig(Fcitx5Core)
BuildRequires:  pkgconfig(Fcitx5Module)
BuildRequires:  /usr/bin/appstream-util

Requires:       %{name}-data = %{EVRD}
Recommends:     fcitx5-lua
Requires:       fcitx5-data
Requires:       libime
Requires:       opencc
Recommends:     fcitx5-rime

%description
This provides pinyin and table input method
support for fcitx5. Released under LGPL-2.1+.

im/pinyin/emoji.txt is derived from Unicode 
CLDR with modification.

%description -l ru_RU.UTF-8
Обеспечивает пиньинь и табличный метод ввода
поддержку fcitx5. Выпущено под LGPL-2.1+.

im/pinyin/emoji.txt взят из Unicode
CLDR с изменениями.

%files -f %{name}.lang
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md 
%{_bindir}/scel2org5
%{_fcitx5_libdir}/*.so
%{_fcitx5_libdir}/qt5/libpinyindictmanager.so
%{_fcitx5_libdir}/qt5/libcustomphraseeditor.so

#------------------------------------------------------------------

%package data
Summary(ru_RU.UTF-8): Файлы данных для %{name}
Summary:        Data files of %{name}
Group:		System/Internationalization
BuildArch:      noarch
Requires:       %{name} = %{EVRD}

%description data
The %{name}-data package provides shared data for %{name}.

%description -l ru_RU.UTF-8 data
Пакет %{name}-data предоставляет общие данные для %{name}.

%files data
%dir %{_fcitx5_datadir}/pinyin
%dir %{_fcitx5_datadir}/punctuation
%dir %{_fcitx5_datadir}/pinyinhelper
%{_fcitx5_addondir}/*.conf
%{_fcitx5_imconfdir}/*.conf
%{_fcitx5_datadir}/lua/imeapi/extensions/pinyin.lua
%{_fcitx5_datadir}/pinyin/*.dict
%{_fcitx5_datadir}/pinyinhelper/py_*.mb
%{_fcitx5_datadir}/punctuation/punc.mb.*
%dir %{_fcitx5_datadir}/chttrans
%{_fcitx5_datadir}/chttrans/gbks2t.tab
%{_datadir}/icons/hicolor/*/apps/*
%{_metainfodir}/org.fcitx.Fcitx5.Addon.ChineseAddons.metainfo.xml

#------------------------------------------------------------------

%package devel
Summary(ru_RU.UTF-8): Файлы разработки для %{name}
Summary:        Development files for %{name}
Group:          Development/C
Requires:       %{name} = %{EVRD}

%description devel
Devel files for fcitx5-chinese-addons.

%description -l ru_RU.UTF-8 devel
Файлы разработки для fcitx5-chinese-addons.

%files devel
%{_includedir}/Fcitx5/Module/fcitx-module/*
%{_libdir}/cmake/Fcitx5Module*

#------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake -DUSE_WEBKIT=Off
%make

%install
%makeinstall_std -C build

# convert symlinked icons to copied icons, this will help co-existing with
# fcitx4
for iconfile in $(find %{buildroot}%{_datadir}/icons -type l)
do
  origicon=$(readlink -f ${iconfile})
  rm -f ${iconfile}
  cp ${origicon} ${iconfile}
done 
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1417 |21cr|fcitx5-configtool-5.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Инструменты конфигурирования, используемые во fcitx5
Summary:        Configuration tools used by fcitx5
Name:           fcitx5-configtool
Version:        5.1.3
Release:        1
License:        GPLv2+
Group:          System/Internationalization
URL:            https://github.com/fcitx/fcitx5-configtool

Source:         https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.xz

BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  desktop-file-utils
BuildRequires:  ninja
BuildRequires:  fcitx5-qt5-devel
BuildRequires:  cmake(Fcitx5Core)
BuildRequires:  cmake(Fcitx5Utils)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  kf5itemviews-devel
BuildRequires:  pkgconfig(Qt5QuickControls2)
BuildRequires:  pkgconfig(KF5CoreAddons)
BuildRequires:  kf5i18n-devel
BuildRequires:  kf5package-devel
BuildRequires:  kf5declarative-devel
BuildRequires:  pkgconfig(xkbcommon-x11)
BuildRequires:  kf5plasma-devel
BuildRequires:  kf5kirigami2-devel
BuildRequires:  pkgconfig(iso-codes)
BuildRequires:  pkgconfig(xkeyboard-config)
BuildRequires:  pkgconfig(xkbfile)

Recommends: (kcm-fcitx5 if plasma5-workspace)

%description
Configuration tools used by fcitx5.

%description -l ru_RU.UTF-8
Инструменты конфигурирования, используемые во fcitx5

%files -f %{name}.lang 
%license LICENSES/GPL-2.0-or-later.txt
%doc README
%{_bindir}/fcitx5-config-qt
%{_datadir}/applications/org.fcitx.fcitx5-config-qt.desktop

#------------------------------------------------------------------

%package -n kcm-fcitx5
Summary(ru_RU.UTF-8): Инструменты конфигурирования для использования в среде на базе KDE
Summary:        Config tools to be used on KDE based environment
Group:		System/Internationalization
Requires:       %{name} = %{EVRD}

%description -n kcm-fcitx5
Config tools to be used on KDE based environment. Can be installed seperately.

%description -l ru_RU.UTF-8 -n kcm-fcitx5
Инструменты настройки для использования в среде на базе KDE. Можно устанавливать отдельно.

%files -n kcm-fcitx5 -f kcm_fcitx5.lang
%license LICENSES/GPL-2.0-or-later.txt
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_fcitx5.so
%{_kde5_services}/kcm_fcitx5.desktop
%{_datadir}/kpackage/kcms/kcm_fcitx5/*
%{_bindir}/fcitx5-plasma-theme-generator
%{_bindir}/kbd-layout-viewer5
%{_datadir}/applications/kbd-layout-viewer5.desktop

#------------------------------------------------------------------

%package -n fcitx5-migrator
Summary(ru_RU.UTF-8): Инструменты миграции на fcitx5
Summary:        Migration tools for fcitx5
Group:          System/Internationalization
Requires:       %{name} = %{EVRD}

%description -n fcitx5-migrator
Migration tools for fcitx5, containing fcitx5-migrator

%description -l ru_RU.UTF-8 -n fcitx5-migrator
Инструменты миграции на fcitx5, содержащие fcitx5-migrator

%files -n fcitx5-migrator
%{_bindir}/fcitx5-migrator
%{_libdir}/libFcitx5Migrator.so.5*
%{_libdir}/libFcitx5Migrator.so.1
%{_datadir}/applications/org.fcitx.fcitx5-migrator.desktop

#------------------------------------------------------------------

%package -n fcitx5-migrator-devel
Summary(ru_RU.UTF-8): Файлы разработчика для fcitx5-migrator
Summary:        Devel files for fcitx5-migrator
Group:          System/Internationalization
Requires:       fcitx5-migrator = %{EVRD}

%description -n fcitx5-migrator-devel
Development files for fcitx5-migrator

%description -l ru_RU.UTF-8 -n fcitx5-migrator-devel
Файлы разработчика для fcitx5-migrator

%files -n fcitx5-migrator-devel
%{_libdir}/libFcitx5Migrator.so

#------------------------------------------------------------------

%prep
%setup -q

#fix typos
sed -i 's/Catogories/Categories/g' src/configtool/org.fcitx.fcitx5-config-qt.desktop.in
sed -i 's/Catogories/Categories/g' src/migrator/app/org.fcitx.fcitx5-migrator.desktop.in

%build
%cmake_qt5 \
	-GNinja

%ninja_build

%install
%ninja_install -C build

# kservices5/*.desktop desktop file dont't need to use desktop-file-install
# only for applications/*.desktop
for desktop_file_name in kbd-layout-viewer5 org.fcitx.fcitx5-config-qt org.fcitx.fcitx5-migrator
do
desktop-file-install --delete-original \
  --dir %{buildroot}%{_datadir}/applications \
  %{buildroot}%{_datadir}/applications/${desktop_file_name}.desktop
done

mkdir -p %{buildroot}/%{_qt5_plugindir}/plasma/kcms/systemsettings
mv %{buildroot}/%{_libdir}/plugins/plasma/kcms/systemsettings/kcm_fcitx5.so %{buildroot}/%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_fcitx5.so
#rm -rf %%{_libdir}/plugins/*

mkdir -p %{buildroot}/%{_kde5_services}
mv %{buildroot}/%{_datadir}/applications/kcm_fcitx5.desktop %{buildroot}/%{_kde5_services}/kcm_fcitx5.desktop

%find_lang %{name}
%find_lang kcm_fcitx5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1418 |21cr|fcitx5-gtk-5.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gimajor	1.0
%define	libgtk2 %mklibname %{name}2
%define	libgtk3 %mklibname %{name}3
%define	libgtk4 %mklibname %{name}4
%define girname %mklibname %{name}-gir %{gimajor}
%define devname	%mklibname %{name} -d

Summary(ru_RU.UTF-8): Модуль Gtk для обмена сообщениями через Интернет и клиентская библиотека dbus на основе glib
Summary:        Gtk im module and glib based dbus client library
Name:           fcitx5-gtk
Version:        5.1.1
Release:        2
License:        LGPLv2+
Group:          System/Internationalization
URL:            https://github.com/fcitx/fcitx5-gtk

Source:         https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.xz

BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(glib-2.0) >= 2.38
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtk4)
BuildRequires:  pkgconfig(fmt)

Requires:       %{girname} = %{EVRD}
Requires:     (%{libgtk2} = %{EVRD} if libgtk-x11-2.0.so.0%{_arch_tag_suffix})
Requires:     (%{libgtk3} = %{EVRD} if libgtk-3.so.0%{_arch_tag_suffix})
Requires:     (%{libgtk4} = %{EVRD} if libgtk-4.so.1%{_arch_tag_suffix})

# not requiring fcitx5 due to that I want to make 
# im_modules be able to install seperately
# this will be helpful to those who are looking 
# forward to use upstream flatpak version.

%description
Gtk im module and glib based dbus client library.

%description -l ru_RU.UTF-8
Модуль Gtk для обмена сообщениями через Интернет и клиентская библиотека dbus на основе glib

%files
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md 
%{_libdir}/libFcitx5GClient.so.5.*
%{_libdir}/libFcitx5GClient.so.2

#------------------------------------------------------------------
 
%package -n %{girname}
Summary(ru_RU.UTF-8): Описание интерфейса GObject Introspection для %{name}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%description -l ru_RU.UTF-8 -n %{girname}
Описание интерфейса GObject Introspection для %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/FcitxG-%{gimajor}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary(ru_RU.UTF-8): Файлы разработчика для %{name}
Summary:        Development files for %{name}
Group:		Development/C
Requires:	%{libgtk2} = %{EVRD}
Requires:	%{libgtk3} = %{EVRD}
Requires:	%{libgtk4} = %{EVRD}
Requires:       %{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides development files for %{name}

%description -l ru_RU.UTF-8 -n %{devname}
Этот пакет предоставляет файлы разработчика для %{name}

%files -n %{devname}
%{_includedir}/Fcitx5/GClient/
%{_libdir}/cmake/Fcitx5GClient
%{_libdir}/libFcitx5GClient.so
%{_libdir}/pkgconfig/Fcitx5GClient.pc
%{_datadir}/gir-1.0/

#------------------------------------------------------------------

%package -n %{libgtk2}
Summary(ru_RU.UTF-8): fcitx5 gtk модуль для gtk2
Summary:        fcitx5 gtk module for gtk2
Group:          System/Libraries
Requires(pre):  %{name} = %{EVRD}

%description -n %{libgtk2}
fcitx5 gtk module for gtk2.

%files -n %{libgtk2}
%{_libdir}/gtk-2.0/*/immodules/im-fcitx5.so
%{_bindir}/fcitx5-gtk2-immodule-probing

%description -l ru_RU.UTF-8 -n %{libgtk2}
fcitx5 gtk модуль для gtk2.

#------------------------------------------------------------------

%package -n %{libgtk3}
Summary(ru_RU.UTF-8): fcitx5 gtk модуль для gtk3
Summary:        fcitx5 gtk module for gtk3
Group:          System/Libraries
Requires(pre):  %{name} = %{EVRD}

%description -n %{libgtk3}
fcitx5 gtk module for gtk3.

%description -l ru_RU.UTF-8 -n %{libgtk3}
fcitx5 gtk модуль для gtk3.

%files -n %{libgtk3}
%{_libdir}/gtk-3.0/*/immodules/im-fcitx5.so
%{_bindir}/fcitx5-gtk3-immodule-probing

#------------------------------------------------------------------

%package -n %{libgtk4}
Summary(ru_RU.UTF-8): fcitx5 gtk модуль для gtk4
Summary:        fcitx5 gtk module for gtk4
Group:          System/Libraries
Requires(pre):  %{name} = %{EVRD}

%description -n %{libgtk4}
fcitx5 gtk module for gtk4.

%description -l ru_RU.UTF-8 -n %{libgtk4}
fcitx5 gtk модуль для gtk4.

%files -n %{libgtk4}
%{_libdir}/gtk-4.0/*/immodules/libim-fcitx5.so
%{_bindir}/fcitx5-gtk4-immodule-probing

#------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build
sed -i 's,^Version: $,Version: %version,' %{buildroot}%{_libdir}/pkgconfig/Fcitx5GClient.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1419 |21cr|fcitx5-lua-5.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Поддержка Lua во fcitx5
Summary:        Lua support for fcitx5
Name:           fcitx5-lua
Version:        5.0.12
Release:        1
License:        LGPLv2+
Group:		System/Internationalization
URL:            https://github.com/fcitx/fcitx5-lua
Source:         https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.xz

BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  ninja
BuildRequires:  pkgconfig(lua)
BuildRequires:  pkgconfig(Fcitx5Core)
BuildRequires:  /usr/bin/appstream-util

Requires:       fcitx5-data

%description
Lua support for fcit5.

%description -l ru_RU.UTF-8
Поддержка Lua во fcitx5.

%files -f %{name}.lang
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md 
%{_libdir}/fcitx5/libluaaddonloader.so
%{_datadir}/fcitx5/addon/imeapi.conf
%{_datadir}/fcitx5/addon/luaaddonloader.conf
%{_datadir}/fcitx5/lua
%{_metainfodir}/org.fcitx.Fcitx5.Addon.Lua.metainfo.xml

#------------------------------------------------------------------

%package devel
Summary(ru_RU.UTF-8): Файлы разработки для %{name}
Summary:        Development files for %{name}
Group:		System/Internationalization
Requires:       %{name} = %{EVRD}

%description devel
Devel files for fcitx5-lua

%description -l ru_RU.UTF-8
Файлы разработчика для fcitx5-lua

%files devel
%{_includedir}/Fcitx5/Module/fcitx-module/luaaddonloader
%{_libdir}/cmake/Fcitx5ModuleLuaAddonLoader

#------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5 \
	-GNinja

%ninja_build

%install
%ninja_install -C build

install -d  %{buildroot}%{_datadir}/lua/imeapi/extensions
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1420 |21cr|fcitx5-qt-5.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major_qt4bus 1
%define	libqt4dbus %mklibname fcitx5-qt4-dbus %{major_qt4bus}
%define major_qt4widgets 2
%define	libqt4widgets %mklibname fcitx5-qt4-widgets %{major_qt4widgets}
%define qt4devname	%mklibname %{name}4 -d

%define major_qt5bus 1
%define	libqt5dbus %mklibname fcitx5-qt5-dbus %{major_qt5bus}
%define major_qt5widgets 2
%define	libqt5widgets %mklibname fcitx5-qt5-widgets %{major_qt5widgets}
%define qt5devname	%mklibname %{name}5 -d

%define major_qt6bus 1
%define	libqt6dbus %mklibname fcitx5-qt6-dbus %{major_qt6bus}
%define major_qt6widgets 2
%define	libqt6widgets %mklibname fcitx5-qt6-widgets %{major_qt6widgets}
%define qt6devname	%mklibname %{name}6 -d

Summary(ru_RU.UTF-8): Библиотека Qt и модуль IM для fcitx5 
Summary:       Qt library and IM module for fcitx5

Name:          fcitx5-qt
Version:       5.1.4
Release:       1
# Fcitx5Qt{4,5}DBusAddons Library and Input context plugin are released under BSD.
License:       LGPLv2+ and BSD
Group:         System/Internationalization
URL:           https://github.com/fcitx/fcitx5-qt

Source:        https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.xz

BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: fcitx5-rpm-macros
BuildRequires: ninja
BuildRequires: pkgconfig(xkbcommon-x11)
BuildRequires: pkgconfig(Fcitx5Utils)
# Qt4
BuildRequires: qt4-devel
# Qt5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui) 
BuildRequires: pkgconfig(Qt5Widgets)
# Qt6
BuildRequires: cmake(Qt6)
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6DBus)
BuildRequires: pkgconfig(Qt6Gui) 
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(Qt6WaylandClient)
BuildRequires: pkgconfig(Qt6Concurrent)

Requires: (%{name}4 if libQtCore.so.4%{_arch_tag_suffix})
Requires: (%{name}5 if libQt5Core.so.5%{_arch_tag_suffix})
Requires: (%{name}6 if libQt6Core.so.6%{_arch_tag_suffix})

%description
Qt library and IM module for fcitx5.

%description -l ru_RU.UTF-8
Библиотека Qt и модуль IM для fcitx5.

%files
# metapackage

#------------------------------------------------------------------

%package -n %{name}4
Summary(ru_RU.UTF-8): Библиотека Qt4 и модуль IM для fcitx5 
Summary:       Qt4 library and IM module for fcitx5
Requires: %{libqt4dbus} = %{EVRD}

%description -n %{name}4
Qt4 library and IM module for fcitx5.

%description -l ru_RU.UTF-8 -n %{name}4
Библиотека Qt4 и модуль IM для fcitx5.

%files -n %{name}4 -f %{name}.lang
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md 
%{_qt_plugindir}/inputmethods/libqtim-fcitx5.so
%{_bindir}/fcitx5-qt4-immodule-probing

#------------------------------------------------------------------

%package -n %{name}5
Summary(ru_RU.UTF-8): Библиотека Qt5 и модуль IM для fcitx5 
Summary:       Qt5 library and IM module for fcitx5
Requires: %{libqt5dbus} = %{EVRD}
Requires: %{libqt5widgets} = %{EVRD}

%description -n %{name}5
Qt4 library and IM module for fcitx5.

%description -l ru_RU.UTF-8 -n %{name}5
Библиотека Qt5 и модуль IM для fcitx5.

%files -n %{name}5 -f %{name}.lang
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md 
%{_libexecdir}/fcitx5-qt5-gui-wrapper
%{_datadir}/applications/org.fcitx.fcitx5-qt5-gui-wrapper.desktop
%{_qt5_plugindir}/platforminputcontexts/libfcitx5platforminputcontextplugin.so
%{_bindir}/fcitx5-qt5-immodule-probing

#------------------------------------------------------------------

%package -n %{name}6
Summary(ru_RU.UTF-8): Библиотека Qt6 и модуль IM для fcitx5 
Summary:       Qt6 library and IM module for fcitx5
Requires: %{libqt6dbus} = %{EVRD}
Requires: %{libqt6widgets} = %{EVRD}

%description -n %{name}6
Qt6 library and IM module for fcitx5.

%description -l ru_RU.UTF-8 -n %{name}6
Библиотека Qt6 и модуль IM для fcitx5.

%files -n %{name}6 -f %{name}.lang
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md 
%{_libexecdir}/fcitx5-qt6-gui-wrapper
%{_libdir}/fcitx5/qt6/libfcitx-quickphrase-editor5.so
%{_datadir}/applications/org.fcitx.fcitx5-qt6-gui-wrapper.desktop
%{_qt6_plugindir}/platforminputcontexts/libfcitx5platforminputcontextplugin.so
%{_bindir}/fcitx5-qt6-immodule-probing

#------------------------------------------------------------------

%package -n %{libqt4dbus}
Summary(ru_RU.UTF-8): Предоставляет библиотеку Qt4 DBus Addons для fcitx5
Summary:  Provides Qt4 DBus Addons library for fcitx5

%description -n %{libqt4dbus}
This package provides Qt4 DBus Addons library for fcitx5.

%description -l ru_RU.UTF-8 -n %{libqt4dbus}
Этот пакет предоставляет библиотеку Qt4 DBus Addons для fcitx5.

%files -n %{libqt4dbus}
%license LICENSES/LGPL-2.1-or-later.txt
%{_libdir}/libFcitx5Qt4DBusAddons.so.%{major_qt4bus}
%{_libdir}/libFcitx5Qt4DBusAddons.so.%{version}

#------------------------------------------------------------------

%package -n %{libqt5dbus}
Summary(ru_RU.UTF-8): Предоставляет библиотеку Qt5 DBus Addons для fcitx5
Summary:  Provides Qt5 DBus Addons library for fcitx5

%description -n %{libqt5dbus}
This package provides Qt5 DBus Addons library for fcitx5.

%description -l ru_RU.UTF-8 -n %{libqt5dbus}
Этот пакет предоставляет библиотеку Qt5 DBus Addons для fcitx5.

%files -n %{libqt5dbus}
%license LICENSES/LGPL-2.1-or-later.txt
%{_libdir}/libFcitx5Qt5DBusAddons.so.%{major_qt5bus}
%{_libdir}/libFcitx5Qt5DBusAddons.so.%{version}

#------------------------------------------------------------------

%package -n %{libqt6dbus}
Summary(ru_RU.UTF-8): Предоставляет библиотеку Qt6 DBus Addons для fcitx5
Summary:  Provides Qt6 DBus Addons library for fcitx5

%description -n %{libqt6dbus}
This package provides Qt6 DBus Addons library for fcitx5.

%description -l ru_RU.UTF-8 -n %{libqt6dbus}
Этот пакет предоставляет библиотеку Qt6 DBus Addons для fcitx5.

%files -n %{libqt6dbus}
%license LICENSES/LGPL-2.1-or-later.txt
%{_libdir}/libFcitx5Qt6DBusAddons.so.%{major_qt6bus}
%{_libdir}/libFcitx5Qt6DBusAddons.so.%{version}

#------------------------------------------------------------------

%package -n %{libqt5widgets}
Summary(ru_RU.UTF-8): Предоставляет библиотеку Qt5 Widgets Addons для fcitx5
Summary:  Provides Qt5 Widgets Addons library for fcitx5

%description -n %{libqt5widgets}
This package provides Qt5 Widgets Addons library for fcitx5.

%description -l ru_RU.UTF-8 -n %{libqt5widgets}
Этот пакет предоставляет библиотеку Qt5 Widgets Addons для fcitx5.

%files -n %{libqt5widgets}
%license LICENSES/LGPL-2.1-or-later.txt
%{_libdir}/libFcitx5Qt5WidgetsAddons.so.%{major_qt5widgets}
%{_libdir}/libFcitx5Qt5WidgetsAddons.so.%{version}

#------------------------------------------------------------------

%package -n %{libqt6widgets}
Summary(ru_RU.UTF-8): Предоставляет библиотеку Qt6 Widgets Addons для fcitx5
Summary:  Provides Qt6 Widgets Addons library for fcitx5

%description -n %{libqt6widgets}
This package provides Qt6 Widgets Addons library for fcitx5.

%description -l ru_RU.UTF-8 -n %{libqt6widgets}
Этот пакет предоставляет библиотеку Qt6 Widgets Addons для fcitx5.

%files -n %{libqt6widgets}
%license LICENSES/LGPL-2.1-or-later.txt
%{_libdir}/libFcitx5Qt6WidgetsAddons.so.%{major_qt6widgets}
%{_libdir}/libFcitx5Qt6WidgetsAddons.so.%{version}

#------------------------------------------------------------------

%package -n %{qt4devname}
Summary(ru_RU.UTF-8): Файлы разработчика для %{name}4
Summary:  Development files for %{name}4
Requires: fcitx5-devel
Requires: %{libqt4dbus} = %{EVRD}
Provides: %{name}4-devel = %{EVRD}

%description -n %{qt4devname}
Development files for %{name}4

%description -l ru_RU.UTF-8 -n %{qt4devname}
Этот пакет предоставляет файлы разработчика для %{name}4

%files -n %{qt4devname}
%{_includedir}/Fcitx5Qt4/
%{_libdir}/cmake/Fcitx5Qt4*
%{_libdir}/libFcitx5Qt4DBusAddons.so
	
#------------------------------------------------------------------

%package -n %{qt5devname}
Summary(ru_RU.UTF-8): Файлы разработчика для %{name}5
Summary:  Development files for %{name}5
Requires: fcitx5-devel
Requires: %{libqt5dbus} = %{EVRD}
Requires: %{libqt5widgets} = %{EVRD}
Provides: %{name}5-devel = %{EVRD}

%description -n %{qt5devname}
Development files for %{name}5

%description -l ru_RU.UTF-8 -n %{qt5devname}
Этот пакет предоставляет файлы разработчика для %{name}5

%files -n %{qt5devname}
%{_includedir}/Fcitx5Qt5/
%{_libdir}/cmake/Fcitx5Qt5*
%{_libdir}/libFcitx5Qt5DBusAddons.so
%{_libdir}/libFcitx5Qt5WidgetsAddons.so

#------------------------------------------------------------------

%package -n %{qt6devname}
Summary(ru_RU.UTF-8): Файлы разработчика для %{name}6
Summary:  Development files for %{name}6
Requires: fcitx5-devel
Requires: %{libqt6dbus} = %{EVRD}
Requires: %{libqt6widgets} = %{EVRD}
Provides: %{name}6-devel = %{EVRD}

%description -n %{qt6devname}
Development files for %{name}6

%description -l ru_RU.UTF-8 -n %{qt6devname}
Этот пакет предоставляет файлы разработчика для %{name}6

%files -n %{qt6devname}
%{_includedir}/Fcitx5Qt6/
%{_libdir}/cmake/Fcitx5Qt6*
%{_libdir}/libFcitx5Qt6DBusAddons.so
%{_libdir}/libFcitx5Qt6WidgetsAddons.so

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
mkdir build_qt4
ln -sf build_qt4 build
%cmake_qt4 \
	-GNinja \
	-DENABLE_QT4=True \
	-DENABLE_QT5=False \
	-DENABLE_QT6=False
%ninja_build -C %{_builddir}/%{name}-%{version}/build_qt4
cd ..

mkdir build_qt5
ln -snf build_qt5 build
%cmake_qt5 \
	-GNinja \
	-DENABLE_QT4=False \
	-DENABLE_QT5=True \
	-DENABLE_QT6=False
%ninja_build -C %{_builddir}/%{name}-%{version}/build_qt5
cd ..

mkdir build_qt6
ln -snf build_qt6 build
%cmake \
	-GNinja \
	-DENABLE_QT4=False \
	-DENABLE_QT5=False \
	-DENABLE_QT6=True
%ninja_build -C %{_builddir}/%{name}-%{version}/build_qt6
cd ..

%install
ln -snf build_qt4 build
%ninja_install -C build

ln -snf build_qt5 build
%ninja_install -C build

ln -snf build_qt6 build
%ninja_install -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1421 |21cr|fcitx5-rime-5.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Поддержка RIME для Fcitx 
Summary: RIME support for Fcitx

Name:    fcitx5-rime
Version: 5.1.4
Release: 1
License: LGPLv2+
Group:   System/Internationalization
URL:     https://github.com/fcitx/fcitx5-rime

Source:  https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.xz

BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: pkgconfig(rime)
BuildRequires: fcitx5-data
BuildRequires: brise 
BuildRequires: appstream-util
BuildRequires: pkgconfig(Fcitx5Core)

Requires:       fcitx5-data
Requires:       brise

%description
RIME (Zhongzhouyun Input Method Engine) is mainly a Traditional Chinese 
input method engine.

%description -l ru_RU.UTF-8
RIME (Zhongzhouyun Input Method Engine) - это в первую очередь движок
для традиционных китайских методов ввода.

%files -f %{name}.lang
%license LICENSES/LGPL-2.1-or-later.txt
%doc README.md 
%{_libdir}/fcitx5/librime.so
%{_datadir}/fcitx5/*/rime.conf
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/rime-data/fcitx5.yaml
%{_metainfodir}/org.fcitx.Fcitx5.Addon.Rime.metainfo.xml

#------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

# convert symlinked icons to copied icons, this will help co-existing with
# fcitx4
for iconfile in $(find %{buildroot}%{_datadir}/icons -type l)
do
  origicon=$(readlink -f ${iconfile})
  rm -f ${iconfile}
  cp ${origicon} ${iconfile}
done
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1422 |21cr|fcitx-qt5-1.2.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libFcitxQt5DBusAddons %mklibname FcitxQt5DBusAddons %{major}
%define libFcitxQt5WidgetsAddons %mklibname FcitxQt5WidgetsAddons %{major}
%define devname %mklibname %{name} -d

Name:           fcitx-qt5
Summary:        Fcitx IM module for Qt5
Version:        1.2.7
Release:        2
Group:          System/Internationalization
# The entire source code is GPLv2+ except
# platforminputcontext/keyserver_x11.h which is LGPLv2+
License:        GPLv2+ and LGPLv2+
URL:            https://github.com/fcitx/fcitx-qt5
Source0:        https://download.fcitx-im.org/%{name}/%{name}-%{version}.tar.xz
BuildRequires:  cmake
BuildRequires:  pkgconfig(fcitx)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  extra-cmake-modules
Requires:       fcitx

%description
This package provides Fcitx Qt5 input context.

%files -f %{name}.lang
%doc README COPYING
%{_libdir}/fcitx/libexec/fcitx-qt5-gui-wrapper
%dir %{_libdir}/fcitx/qt
%{_libdir}/fcitx/qt/libfcitx-quickphrase-editor5.so
%{_qt5_plugindir}/platforminputcontexts/libfcitxplatforminputcontextplugin.so
#------------------------------------------------------------------

%package -n %{libFcitxQt5DBusAddons}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libFcitxQt5DBusAddons}
%{name} shared library.

%files -n %{libFcitxQt5DBusAddons}
%{_libdir}/libFcitxQt5DBusAddons.so.%{major}*
#-----------------------------------------------------------
%package -n %{libFcitxQt5WidgetsAddons}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libFcitxQt5WidgetsAddons}
%{name} shared library.

%files -n %{libFcitxQt5WidgetsAddons}
%{_libdir}/libFcitxQt5WidgetsAddons.so.%{major}*
#-----------------------------------------------------------

%package -n %{devname}
Summary:        Development files for fcitx-qt5
Group:          Development/KDE and Qt
Requires:       %{name} = %{EVRD}
Requires:       %{libFcitxQt5DBusAddons} = %{EVRD}
Requires:       %{libFcitxQt5WidgetsAddons} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files necessary for
developing programs using fcitx-qt5 libraries.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/cmake/*
%{_libdir}/libFcitxQt5DBusAddons.so
%{_libdir}/libFcitxQt5WidgetsAddons.so

#-----------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5
%make_build

%install
%make_install -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1423 |21cr|fcrackzip-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		fcrackzip
Version:	1.0
Release:	4
Summary:	A zip password cracker
License:	GPLv2
Group:		File tools
URL:		http://oldhome.schmorp.de/marc/fcrackzip.html
Source:		http://oldhome.schmorp.de/marc/data/%{name}-%{version}.tar.gz
Requires:	unzip

%description
A zip password cracker.

%prep
%setup -q

%build
%configure
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std
%__rm -f %{buildroot}%{_bindir}/zipinfo

%clean
%__rm -rf %{buildroot}

%files
%doc COPYING README NEWS AUTHORS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1424 |21cr|fdesktoprecorder-20130527-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname FDesktopRecorder

Summary:	A program to record the screen
Name:		fdesktoprecorder
Version:	20130527
Release:	7
License:	GPLv2+
Group:		Video
# no commits from the new developer since 2013
Url:		https://bitbucket.org/Lacky/fdesktoprecorder
Source0:	https://github.com/froksen/FDesktopRecorder/zipball/master/%{oname}-%{version}.tar.gz
Patch0:		FDesktopRecorder-20130527-notifyrc-path.patch
BuildRequires:	desktop-file-utils
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(alsa)
Requires:	ffmpeg >= 2.2.3
Conflicts:	FDesktopRecorder < 20130527-5
Obsoletes:	FDesktopRecorder < 20130527-5

%description
A program that can record a single window or your entire desktop using ffmpeg.
Based on a script by Peter Lyberth from the danish GNU/Linux show "Kanal Tux"
http://www.kanaltux.dk

%files
%doc CHANGELOG README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/translations/*.qm
%{_kde_appsdir}/%{name}/%{name}.notifyrc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
rm -rf abandoned
find src -name '*.{h,cpp}' -exec chmod a-x {} \;

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

# fix localize in fresh
mkdir -p %{buildroot}%{_datadir}/%{name}/translations
cp -R build/src/*.qm %{buildroot}%{_datadir}/%{name}/translations

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1425 |21cr|fd-find-9.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           fd-find
Version:        9.0.0
Release:        1
Summary:        Fd is a simple, fast and user-friendly alternative to find
Group:          System/Base
License:        MIT OR Apache-2.0
URL:            https://crates.io/crates/fd-find
Source0:        https://github.com/sharkdp/fd/archive/refs/tags/v%{version}.tar.gz?/fd-find-%{version}.tar.gz
# create with 'cargo vendor'
Source10:       vendor.tar.gz
# Manually created patch for downstream crate metadata changes
# * drop jemallocator dependency
Patch0:         fd-find-fix-metadata.diff
# * drop jemallocator from code
# * bump lscolors from 0.16 to 0.17
# * bump nu-ansi-term from 0.49 to 0.50
Patch1:          0001-remove-references-to-jemalloc.patch

BuildRequires:   cargo

%description
Fd is a simple, fast and user-friendly alternative to find.

%files
%license LICENSE-APACHE
%license LICENSE-MIT
%doc CHANGELOG.md
%doc CONTRIBUTING.md
%doc README.md
%{_bindir}/fd
%{_mandir}/man1/fd.1*
%{_datadir}/bash-completion/completions/fd
%{_datadir}/fish/completions/fd.fish
%{_datadir}/zsh/site-functions/_fd
#---------------------------------------------------

%prep
%autosetup -n fd-%{version} -p1 -a10

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"

cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF

%build
#build and install at ounce.

%install
RUSTFLAGS=-g cargo install --no-track --debug --offline --root=%{buildroot}%{_prefix} --path .

# generate shell completions
./target/debug/fd --gen-completions bash > fd.bash
./target/debug/fd --gen-completions fish > fd.fish
./target/debug/fd --gen-completions zsh > fd.zsh

# install manpage
install -Dpm 644 doc/fd.1 -t %{buildroot}/%{_mandir}/man1/
# install shell completions
install -Dpm 0644 fd.bash %{buildroot}%{_datadir}/bash-completion/completions/fd
install -Dpm 0644 fd.fish %{buildroot}%{_datadir}/fish/completions/fd.fish
install -Dpm 0644 fd.zsh %{buildroot}%{_datadir}/zsh/site-functions/_fd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1426 |21cr|featherpad-0.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname FeatherPad

Summary:	Lightweight Qt5 Plain-Text Editor
Name:		featherpad
Version:	0.18.0
Release:	1
License:	GPLv3+
Group:		Editors
Url:		https://github.com/tsujan/FeatherPad
Source0:	https://github.com/tsujan/FeatherPad/archive/V%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5X11Extras)

%description
FeatherPad is a lightweight Qt5 plain-text editor for Linux

%files -f %{name}.lang
%doc ChangeLog COPYING NEWS README.md
%{_bindir}/fpad
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/help*
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#-------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
sed -i 's/LIBS += -lhunspell$/LIBS += -lhunspell-1.7/' %{name}/%{name}.pro

%build
%qmake_qt5

%install
%makeinstall_qt

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1427 |21cr|feedbackd-0.0.0+git20220208-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} 0
%define develname %mklibname -d %{name}

Summary:		Feedback library for GNOME
Name:		   feedbackd
Version:		0.0.0+git20220208
Release:		1
Group:		System/Libraries
License:		GPLv3+
URL:		    https://source.puri.sm/Librem5/feedbackd
Source0:		https://source.puri.sm/Librem5/feedbackd/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  pkgconfig(gio-2.0) >= 2.50.0
BuildRequires:  pkgconfig(gio-unix-2.0) >= 2.50.0
BuildRequires:  pkgconfig(glib-2.0) >= 2.50.0
BuildRequires:  pkgconfig(gobject-2.0) >= 2.50.0
BuildRequires:  pkgconfig(gsound)
BuildRequires:  pkgconfig(gudev-1.0) >= 232
BuildRequires:  pkgconfig(json-glib-1.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(systemd)
BuildRequires:  vala
BuildRequires:  dbus-daemon
Requires: %{libname}%{?_isa} = %{version}-%{release}

%description
feedbackd provides a DBus daemon (feedbackd) to act on events to provide
haptic, visual and audio feedback. It offers a library (libfeedback) and
GObject introspection bindings to ease using it from applications.

%files
%{_bindir}/fbcli
%{_libexecdir}/feedbackd
%{_libexecdir}/fbd-ledctrl
%{_udevrulesdir}/90-feedbackd.rules
%{_datadir}/dbus-1/interfaces/org.sigxcpu.Feedback.xml
%{_datadir}/dbus-1/services/org.sigxcpu.Feedback.service
%{_datadir}/feedbackd
%{_datadir}/glib-2.0/schemas/org.sigxcpu.feedbackd.gschema.xml

#-----------------------------------------------------------------

%package -n %{libname}
Summary: Library for %{name}

%description -n %{libname}
The lib%{name} package contains libraries for %{name}

%files -n %{libname}
%{_libdir}/libfeedback-0.0.so.0
%{_libdir}/girepository-1.0/Lfb-0.0.typelib

#-----------------------------------------------------------------

%package -n %{develname}
Summary: Development files for %{name}
Requires: %{libname}%{?_isa} = %{version}-%{release}
Requires: %{name}%{?_isa} = %{version}-%{release}

%description -n %{develname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{develname}
%{_libdir}/libfeedback-0.0.so
%{_includedir}/libfeedback-0.0/
%{_datadir}/vala/vapi/libfeedback-0.0.*
%{_datadir}/gir-1.0/Lfb-0.0.gir
%{_libdir}/pkgconfig/libfeedback-0.0.pc

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install
install -D -m 644 debian/feedbackd.udev %{buildroot}%{_udevrulesdir}/90-feedbackd.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1428 |21cr|feff-1.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty debug
%define debug_package	%{nil}
%define	name	feff
%define	version	1.9.2
%define release	5
Name:		%{name}
Version:	1.10.1
Release:	1
Summary:	Front-end for FFmpeg
License:	GPLv3
URL:		http://dansoft.krasnokamensk.ru/
Source:		http://qt-apps.org/CONTENT/content-files/140298-%{name}_source.tar.gz
Group:		Video
BuildRequires:	qt4-devel 
BuildRequires:	desktop-file-utils 
BuildRequires:	imagemagick
Requires:	ffmpeg 

%description
Front-end for FFmpeg written in QT4

%prep
%setup -q -n feff_source

ln Bin/COPYING COPYING
ln Bin/HISTORY HISTORY

%build
qmake 
%make 

%install

# menu entry
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Categories=X-MandrivaLinux-Multimedia-Video;AudioVideo;Video;
Comment=Front-end for FFmpeg
Exec=feff
GenericName=feff
Icon=feff
Name=feff
StartupNotify=true
Terminal=false
Type=Application
EOF

desktop-file-validate $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop 

#binaries
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 Bin/%{name} %{buildroot}%{_bindir}/

# icons
install -d -m755 $RPM_BUILD_ROOT%{_miconsdir}
convert %{name}.ico -resize 16x16 $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -d -m755 $RPM_BUILD_ROOT%{_iconsdir}
convert %{name}.ico -resize 32x32 $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -d -m755 $RPM_BUILD_ROOT%{_liconsdir}
convert %{name}.ico -resize 48x48 $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
# lang
install -d -m 755 %{buildroot}%{_datadir}/%{name}
# .ts needed for translations to be dropped in the future.
install -m 755  %{name}_*.ts %{buildroot}%{_datadir}/%{name}/
install -m 755  Bin/feff_*.qm %{buildroot}%{_datadir}/%{name}/
# permits
find %{buildroot}%{_datadir}/%{name} -name '*.ts' -exec chmod -x {} \;

%files
%doc HISTORY COPYING
%{_datadir}/%{name}/*.ts
%{_datadir}/%{name}/feff_*.qm
%{_bindir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1429 |21cr|feh-3.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Image viewer at heart, though it does other cool stuff
Name:           feh
Version:        3.9.1
Release:        1
License:        MIT
Group:          Graphics
Url:            http://feh.finalrewind.org/
Source0:        http://feh.finalrewind.org/%{name}-%{version}.tar.bz2

BuildRequires:  pkgconfig(imlib2)
BuildRequires:  pkgconfig(xt) 
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  giflib-devel
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  jpeg-progs
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libexif)
BuildRequires:  perl-devel

%description
Feh is an image viewer, but it does a whole lot of other cool stuff as
well. There are simply too many to mention them here so please check the
docs/homepage.

%files
%doc AUTHORS ChangeLog TODO examples README.md
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/feh.*

#-----------------------------------------------------------------------------

%prep
%setup -q

# fix debug
find . -name "*.c" -o -name "*.h" |xargs chmod 0644
chmod 644 AUTHORS ChangeLog TODO examples/*
chmod 755 examples

%build
%setup_compile_flags
%make PREFIX=%{_prefix} exif=1 help=1 stat64=1

%install
%makeinstall_std PREFIX=%{_prefix}

#let files section handle docs
rm -rf %{buildroot}%{_docdir}%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1430 |21cr|fence-agents-4.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

#whis pkg missing in rosa2019.1 repository
%bcond_with openwsman
%bcond_with nova
%bcond_with sbd
%bcond_with azure
%bcond_with amtterm
%bcond_with mpath
%bcond_without ipmi

Name:		fence-agents
Summary:	Set of unified programs capable of host isolation ("fencing")
Version:	4.16.0
Release:	1
Group:		System/Kernel and hardware
License:	GPLv2+ and LGPLv2+
URL:		https://github.com/ClusterLabs/fence-agents
Source0:	https://github.com/ClusterLabs/fence-agents/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# skipped: pve, raritan, rcd-serial, virsh
%global allfenceagents %(cat <<EOF
fence-agents-alom \\
fence-agents-apc \\
fence-agents-apc-snmp \\
fence-agents-bladecenter \\
fence-agents-brocade \\
fence-agents-cisco-mds \\
fence-agents-cisco-ucs \\
fence-agents-docker \\
fence-agents-drac \\
fence-agents-drac5 \\
fence-agents-eaton-snmp \\
fence-agents-emerson \\
fence-agents-eps \\
fence-agents-hds-cb \\
fence-agents-heuristics-ping \\
fence-agents-hpblade \\
fence-agents-ibmblade \\
fence-agents-ifmib \\
fence-agents-ilo-moonshot \\
fence-agents-ilo-mp \\
fence-agents-ilo-ssh \\
fence-agents-ilo2 \\
fence-agents-intelmodular \\
fence-agents-ipdu \\
fence-agents-kdump \\
fence-agents-ldom \\
fence-agents-lpar \\
fence-agents-netio \\
fence-agents-ovh \\
fence-agents-redfish \\
fence-agents-rhevm \\
fence-agents-rsa \\
fence-agents-rsb \\
fence-agents-sanbox2 \\
fence-agents-scsi \\
fence-agents-vbox \\
fence-agents-virt \\
fence-agents-vmware \\
fence-agents-vmware-rest \\
fence-agents-vmware-soap \\
fence-agents-vmware-vcloud \\
fence-agents-wti \\
fence-agents-xenapi \\
fence-agents-zvm \\

EOF)

%ifarch x86_64
%global allfenceagents %(cat <<EOF
%{allfenceagents} \\
fence-agents-compute \\
fence-agents-ironic

EOF)
%endif


BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(boto3)
BuildRequires:	python3egg(pexpect)
BuildRequires:	python3egg(pycurl)
BuildRequires:	python3egg(google-api-python-client)
BuildRequires:	python3egg(oauth2client)
BuildRequires:	python3egg(requests)
BuildRequires:	python3egg(suds-community)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(libvirt)
BuildRequires:	pkgconfig(libcpg)

%if %{with openwsman}
BuildRequires:	python3egg(boto3)
BuildRequires:	openwsman-python3
BuildRequires:	python3egg(google-api-client)
%endif

%if %{with nova}
BuildRequires:	python3-novaclient
BuildRequires:	python3-keystoneclient
%endif

# turn off the brp-python-bytecompile script
# (for F28+ or equivalent, the latter is the preferred form)
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompilespace:.*$!!g')
%undefine __brp_python_bytecompile

%description
A collection of executables to handle isolation ("fencing") of possibly
misbehaving hosts by the means of remote power management, blocking
network, storage, or similar. They operate through a unified interface
(calling conventions) devised for the original Red Hat clustering solution.

%post
ccs_update_schema > /dev/null 2>&1 ||:

#--------------------------------------------------------------------------
%package common
Summary:	Common base for Fence Agents
Group:		System/Kernel and hardware
Requires:	python3-pexpect
Requires:	python3-pycurl
BuildArch:	noarch

%description common
A collection of executables to handle isolation ("fencing") of possibly
misbehaving hosts by the means of remote power management, blocking
network, storage, or similar.

This package contains support files including the Python fencing library.

%files common
%doc doc/COPYING.* doc/COPYRIGHT doc/README.licence
%{_datadir}/fence
%exclude %{_datadir}/fence/azure_fence.*
%exclude %{_datadir}/fence/__pycache__/azure_fence.*
%exclude %{_datadir}/fence/XenAPI.*
%exclude %{_datadir}/fence/__pycache__/XenAPI.*
%{_datadir}/cluster
%exclude %{_datadir}/cluster/fence_scsi_check*
%exclude %{_sbindir}/*
%exclude %{_mandir}/man8/*
%{_datadir}/pkgconfig/fence-agents.pc
%{_prefix}/lib/tmpfiles.d/fence-agents.conf
#--------------------------------------------------------------------------

%package all
Summary:	Set of unified programs capable of host isolation ("fencing")
Group:		System/Kernel and hardware
Requires:	%{allfenceagents}
%if %{with openwsman}
Requires:	fence-agents-aws
Requires:	fence-agents-gce
%endif
%if %{with ipmi}
Requires:	fence-agents-ipmilan
%endif
%if %{with amtterm}
Requires:	fence-agents-amt \\
Requires:	fence-agents-amt-ws \\
%endif
%if %{with azure}
Requires:	fence-agents-azure-arm
%endif
%if %{with mpath}
Requires:	fence-agents-mpath
%endif
%if %{with sbd}
Requires:	fence-agents-sbd
%endif
%if %{with nova}
Requires:	fence-agents-openstack
%endif

Provides:	fence-agents = %{EVRD}
Obsoletes:	fence-agents < 3.1.13
%description all
A collection of executables to handle isolation ("fencing") of possibly
misbehaving hosts by the means of remote power management, blocking
network, storage, or similar.

This package serves as a catch-all for all supported fence agents.

%files all

#--------------------------------------------------------------------------

%package alom
Summary:	Fence agent for SUN ALOM
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description alom
Fence agent for SUN ALOM.

%files alom
%{_sbindir}/fence_alom
%{_mandir}/man8/fence_alom.8*

#--------------------------------------------------------------------------
%if %{with amtterm}

%package amt
Summary:	Fence agent for Intel AMT devices
Requires:	amtterm
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description amt
Fence agent for AMT compatibile devices that are accessed via
3rd party software.

%files amt
%{_sbindir}/fence_amt
%{_mandir}/man8/fence_amt.8*

%endif
#--------------------------------------------------------------------------
%if %{with openwsman}

%package amt-ws
Summary:	Fence agent for Intel AMT (WS-Man) devices
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
Requires:	openwsman-python3
BuildArch:	noarch

%description amt-ws
Fence agent for AMT (WS-Man) devices.

%files amt-ws
%{_sbindir}/fence_amt_ws
%{_mandir}/man8/fence_amt_ws.8*

%endif
#--------------------------------------------------------------------------

%package apc
Summary:	Fence agent for APC devices
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description apc
Fence agent for APC devices that are accessed via telnet or SSH.

%files apc
%{_sbindir}/fence_apc
%{_mandir}/man8/fence_apc.8*

#--------------------------------------------------------------------------

%package apc-snmp
Summary:	Fence agents for APC devices (SNMP)
Group:		System/Kernel and hardware
Requires:	net-snmp-utils
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description apc-snmp
Fence agents for APC devices that are accessed via the SNMP protocol.

%files apc-snmp
%{_sbindir}/fence_apc_snmp
%{_mandir}/man8/fence_apc_snmp.8*
%{_sbindir}/fence_tripplite_snmp
%{_mandir}/man8/fence_tripplite_snmp.8*

#--------------------------------------------------------------------------
%if %{with openwsman}

%package aws
Summary:	Fence agent for Amazon AWS
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
Requires:	python3-boto3
BuildArch:	noarch
Obsoletes:	fence-agents < 4.10.0

%description aws
Fence agent for Amazon AWS instances.

%files aws
%{_sbindir}/fence_aws
%{_mandir}/man8/fence_aws.8*

%endif
#--------------------------------------------------------------------------
%if %{with azure}
%package azure-arm
Summary:	Fence agent for Azure Resource Manager
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
Requires:	python3-azure-sdk
BuildArch:	noarch
Obsoletes:	fence-agents < 4.10.0

%description azure-arm
Fence agent for Azure Resource Manager instances.

%files azure-arm
%{_sbindir}/fence_azure_arm
%{_datadir}/fence/azure_fence.py*
%{_datadir}/fence/__pycache__/azure_fence.*
%{_mandir}/man8/fence_azure_arm.8*

%endif
#--------------------------------------------------------------------------

%package bladecenter
Summary:	Fence agent for IBM BladeCenter
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description bladecenter
Fence agent for IBM BladeCenter devices that are accessed
via telnet or SSH.

%files bladecenter
%{_sbindir}/fence_bladecenter
%{_mandir}/man8/fence_bladecenter.8*

#--------------------------------------------------------------------------

%package brocade
Summary:	Fence agent for Brocade switches
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description brocade
Fence agent for Brocade devices that are accessed via telnet or SSH.

%files brocade
%{_sbindir}/fence_brocade
%{_mandir}/man8/fence_brocade.8*

#--------------------------------------------------------------------------

%package cisco-mds
Summary:	Fence agent for Cisco MDS 9000 series
Group:		System/Kernel and hardware
Requires:	net-snmp-utils
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description cisco-mds
Fence agent for Cisco MDS 9000 series devices that are accessed
via the SNMP protocol.

%files cisco-mds
%{_sbindir}/fence_cisco_mds
%{_mandir}/man8/fence_cisco_mds.8*

#--------------------------------------------------------------------------

%package cisco-ucs
Summary:	Fence agent for Cisco UCS series
Group:		System/Kernel and hardware
Requires:	python3-pycurl
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description cisco-ucs
Fence agent for Cisco UCS series devices that are accessed
via the SNMP protocol.

%files cisco-ucs
%{_sbindir}/fence_cisco_ucs
%{_mandir}/man8/fence_cisco_ucs.8*

#--------------------------------------------------------------------------

%package compute
Summary:	Fence agent for Nova compute nodes
Group:		System/Kernel and hardware
Requires:	python3-requests
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description compute
Fence agent for Nova compute nodes.

%files compute
%{_sbindir}/fence_compute
%{_sbindir}/fence_evacuate
%{_mandir}/man8/fence_compute.8*
%{_mandir}/man8/fence_evacuate.8*

#--------------------------------------------------------------------------

%package docker
Summary:	Fence agent for Docker
Group:		System/Kernel and hardware
Requires:	python3-pycurl
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description docker
Fence agent for Docker images that are accessed over HTTP.

%files docker
%{_sbindir}/fence_docker
%{_mandir}/man8/fence_docker.8*

#--------------------------------------------------------------------------

%package drac
Summary:	Fence agent for Dell DRAC
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description drac
Fence agent for Dell DRAC IV series devices that are accessed
via telnet.

%files drac
%{_sbindir}/fence_drac
%{_mandir}/man8/fence_drac.8*

#--------------------------------------------------------------------------

%package drac5
Summary:	Fence agent for Dell DRAC 5
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description drac5
Fence agent for Dell DRAC 5 series devices that are accessed
via telnet or SSH.

%files drac5
%{_sbindir}/fence_drac5
%{_mandir}/man8/fence_drac5.8*

#--------------------------------------------------------------------------

%package eaton-snmp
Summary:	Fence agent for Eaton network power switches
Group:		System/Kernel and hardware
Requires:	net-snmp-utils
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description eaton-snmp
Fence agent for Eaton network power switches that are accessed
via the SNMP protocol.

%files eaton-snmp
%{_sbindir}/fence_eaton_snmp
%{_mandir}/man8/fence_eaton_snmp.8*

#--------------------------------------------------------------------------

%package emerson
Summary:	Fence agent for Emerson devices (SNMP)
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description emerson
Fence agent for Emerson devices that are accessed via
the SNMP protocol.

%files emerson
%{_sbindir}/fence_emerson
%{_mandir}/man8/fence_emerson.8*

#--------------------------------------------------------------------------

%package eps
Summary:	Fence agent for ePowerSwitch 8M+ power switches
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description eps
Fence agent for ePowerSwitch 8M+ power switches that are accessed
via the HTTP(s) protocol.

%files eps
%{_sbindir}/fence_eps
%{_mandir}/man8/fence_eps.8*

#--------------------------------------------------------------------------
%if %{with openwsman}

%package gce
Summary:	Fence agent for GCE (Google Cloud Engine)
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
Requires:	python3-google-api-client
BuildArch:	noarch
Obsoletes:	fence-agents < 4.10.0

%description gce
Fence agent for GCE (Google Cloud Engine) instances.

%files gce
%{_sbindir}/fence_gce
%{_mandir}/man8/fence_gce.8*

%endif
#--------------------------------------------------------------------------

%package hds-cb
Summary:	Fence agent for Hitachi Compute Blade systems
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description hds-cb
Fence agent for Hitachi Compute Blades that are accessed via telnet.

%files hds-cb
%{_sbindir}/fence_hds_cb
%{_mandir}/man8/fence_hds_cb.8*

#--------------------------------------------------------------------------

%package heuristics-ping
Summary:	Pseudo fence agent to affect other agents based on ping-heuristics
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch
Obsoletes:	fence-agents < 4.10.0

%description heuristics-ping
Fence pseudo agent used to affect other agents based on
ping-heuristics.

%files heuristics-ping
%{_sbindir}/fence_heuristics_ping
%{_mandir}/man8/fence_heuristics_ping.8*

#--------------------------------------------------------------------------

%package hpblade
Summary:	Fence agent for HP BladeSystem devices
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description hpblade
Fence agent for HP BladeSystem devices that are accessed via telnet
or SSH.

%files hpblade
%{_sbindir}/fence_hpblade
%{_mandir}/man8/fence_hpblade.8*

#--------------------------------------------------------------------------

%package ibmblade
Summary:	Fence agent for IBM BladeCenter
Group:		System/Kernel and hardware
Requires:	net-snmp-utils
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ibmblade
Fence agent for IBM BladeCenter devices that are accessed
via the SNMP protocol.

%files ibmblade
%{_sbindir}/fence_ibmblade
%{_mandir}/man8/fence_ibmblade.8*

#--------------------------------------------------------------------------

%package ifmib
Summary:	Fence agent for devices with IF-MIB interfaces
Group:		System/Kernel and hardware
Requires:	net-snmp-utils
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ifmib
Fence agent for IF-MIB interfaces that are accessed via
the SNMP protocol.

%files ifmib
%{_sbindir}/fence_ifmib
%{_mandir}/man8/fence_ifmib.8*

#--------------------------------------------------------------------------

%package ilo2
Summary:	Fence agents for HP iLO2 devices
Group:		System/Kernel and hardware
Requires:	gnutls
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ilo2
Fence agents for HP iLO2 devices that are accessed via
the HTTP(s) protocol.

%files ilo2
%{_sbindir}/fence_ilo
%{_sbindir}/fence_ilo2
%{_mandir}/man8/fence_ilo.8*
%{_mandir}/man8/fence_ilo2.8*

#--------------------------------------------------------------------------

%package ilo-moonshot
Summary:	Fence agent for HP iLO Moonshot devices
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ilo-moonshot
Fence agent for HP iLO Moonshot devices that are accessed
via telnet or SSH.

%files ilo-moonshot
%{_sbindir}/fence_ilo_moonshot
%{_mandir}/man8/fence_ilo_moonshot.8*

#--------------------------------------------------------------------------

%package ilo-mp
Summary:	Fence agent for HP iLO MP devices
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ilo-mp
Fence agent for HP iLO MP devices that are accessed via telnet or SSH.

%files ilo-mp
%{_sbindir}/fence_ilo_mp
%{_mandir}/man8/fence_ilo_mp.8*

#--------------------------------------------------------------------------

%package ilo-ssh
Summary:	Fence agents for HP iLO devices over SSH
Group:		System/Kernel and hardware
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ilo-ssh
Fence agents for HP iLO devices that are accessed via telnet or SSH.

%files ilo-ssh
%{_sbindir}/fence_ilo_ssh
%{_mandir}/man8/fence_ilo_ssh.8*
%{_sbindir}/fence_ilo3_ssh
%{_mandir}/man8/fence_ilo3_ssh.8*
%{_sbindir}/fence_ilo4_ssh
%{_mandir}/man8/fence_ilo4_ssh.8*
%{_sbindir}/fence_ilo5_ssh
%{_mandir}/man8/fence_ilo5_ssh.8*

#--------------------------------------------------------------------------

%package intelmodular
Summary:	Fence agent for devices with Intel Modular interfaces
Group:		System/Kernel and hardware
Requires:	net-snmp-utils
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description intelmodular
Fence agent for Intel Modular interfaces that are accessed
via the SNMP protocol.

%files intelmodular
%{_sbindir}/fence_intelmodular
%{_mandir}/man8/fence_intelmodular.8*

#--------------------------------------------------------------------------

%package ipdu
Summary:	Fence agent for IBM iPDU network power switches
Group:		System/Kernel and hardware
Requires:	net-snmp-utils
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ipdu
Fence agent for IBM iPDU network power switches that are accessed
via the SNMP protocol.

%files ipdu
%{_sbindir}/fence_ipdu
%{_mandir}/man8/fence_ipdu.8*

#--------------------------------------------------------------------------
%if %{with ipmi}
%package ipmilan
Summary:	Fence agents for devices with IPMI interface
Group:		System/Kernel and hardware
Requires:	/usr/bin/ipmitool
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ipmilan
Fence agents for devices with IPMI interface.

%files ipmilan
%{_sbindir}/fence_ipmilan
%{_mandir}/man8/fence_ipmilan.8*
%{_sbindir}/fence_idrac
%{_mandir}/man8/fence_idrac.8*
%{_sbindir}/fence_ilo3
%{_mandir}/man8/fence_ilo3.8*
%{_sbindir}/fence_ilo4
%{_mandir}/man8/fence_ilo4.8*
%{_sbindir}/fence_ilo5
%{_mandir}/man8/fence_ilo5.8*
%{_sbindir}/fence_imm
%{_mandir}/man8/fence_imm.8*

%endif
#--------------------------------------------------------------------------

%package ironic
Summary:	Fence agent for OpenStack's Ironic (Bare Metal as a service)
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ironic
Fence agent for OpenStack's Ironic (Bare Metal as a service) service.

%files ironic
%{_sbindir}/fence_ironic
%{_mandir}/man8/fence_ironic.8*

#--------------------------------------------------------------------------

%package kdump
Summary:	Fence agent for use with kdump crash recovery service
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
# this cannot be noarch since it's compiled

%description kdump
Fence agent for use with kdump crash recovery service.

%files kdump
%{_sbindir}/fence_kdump
%{_libexecdir}/fence_kdump_send
%{_mandir}/man8/fence_kdump.8*
%{_mandir}/man8/fence_kdump_send.8*

#--------------------------------------------------------------------------

%package ldom
Summary:	Fence agent for Sun LDom virtual machines
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ldom
Fence agent for APC devices that are accessed via telnet or SSH.

%files ldom
%{_sbindir}/fence_ldom
%{_mandir}/man8/fence_ldom.8*

#--------------------------------------------------------------------------

%package lpar
Summary:	Fence agent for IBM LPAR
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description lpar
Fence agent for IBM LPAR devices that are accessed via telnet or SSH.

%files lpar
%{_sbindir}/fence_lpar
%{_mandir}/man8/fence_lpar.8*

#--------------------------------------------------------------------------
%if %{with mpath}
%package mpath
Summary:	Fence agent for reservations over Device Mapper Multipath
Group:		System/Kernel and hardware
Requires:	device-mapper-multipath
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description mpath
Fence agent for SCSI persistent reservation over
Device Mapper Multipath.

%files mpath
%{_sbindir}/fence_mpath
%{_mandir}/man8/fence_mpath.8*

%endif
#--------------------------------------------------------------------------

%package netio
Summary:	Fence agent for Koukaam NETIO devices
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description netio
Fence agent for Koukaam NETIO devices that are accessed
via telnet or SSH.

%files netio
%{_sbindir}/fence_netio
%{_mandir}/man8/fence_netio.8*

#--------------------------------------------------------------------------
%if %{with nova}

%package openstack
Summary:	Fence agent for OpenStack's Nova service
Group:		System/Kernel and hardware
Requires:	python3-requests
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description openstack
Fence agent for OpenStack's Nova service.

%files openstack
%{_sbindir}/fence_openstack
%{_mandir}/man8/fence_openstack.8*

%endif
#--------------------------------------------------------------------------

%package ovh
Summary:	Fence agent for OVH provider
Group:		System/Kernel and hardware
Requires:	python3-suds
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description ovh
Fence agent for OVH hosting provider.

%files ovh
%{_sbindir}/fence_ovh
%{_mandir}/man8/fence_ovh.8*

#--------------------------------------------------------------------------

# skipped from allfenceagents
%package pve
Summary:	Fence agent for PVE
Group:		System/Kernel and hardware
Requires:	python3-pycurl
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description pve
Fence agent for PVE.

%files pve
%{_sbindir}/fence_pve
%{_mandir}/man8/fence_pve.8*

#--------------------------------------------------------------------------

# skipped from allfenceagents
%package raritan
Summary:	Fence agent for Raritan Dominion PX
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description raritan
Fence agent for Raritan Dominion PX.

%files raritan
%{_sbindir}/fence_raritan
%{_mandir}/man8/fence_raritan.8*

#--------------------------------------------------------------------------

# skipped from allfenceagents
%package rcd-serial
Summary:	Fence agent for RCD serial
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description rcd-serial
Fence agent for RCD serial.

%files rcd-serial
%{_sbindir}/fence_rcd_serial
%{_mandir}/man8/fence_rcd_serial.8*

#--------------------------------------------------------------------------

%package redfish
Summary:	Fence agent for Redfish
Group:		System/Kernel and hardware
Requires:	fence-agents-common >= %{EVRD}
Requires:	python3-requests
Obsoletes:	fence-agents < 4.10.0

%description redfish
The fence-agents-redfish package contains a fence agent for Redfish

%files redfish
%defattr(-,root,root,-)
%{_sbindir}/fence_redfish
%{_mandir}/man8/fence_redfish.8*

#--------------------------------------------------------------------------

%package rhevm
Summary:	Fence agent for RHEV-M
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description rhevm
Fence agent for RHEV-M via REST API.

%files rhevm
%{_sbindir}/fence_rhevm
%{_mandir}/man8/fence_rhevm.8*

#--------------------------------------------------------------------------

%package rsa
Summary:	Fence agent for IBM RSA II
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description rsa
Fence agent for IBM RSA II devices that are accessed
via telnet or SSH.

%files rsa
%{_sbindir}/fence_rsa
%{_mandir}/man8/fence_rsa.8*

#--------------------------------------------------------------------------

%package rsb
Summary:	Fence agent for Fujitsu RSB
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description rsb
Fence agent for Fujitsu RSB devices that are accessed
via telnet or SSH.

%files rsb
%{_sbindir}/fence_rsb
%{_mandir}/man8/fence_rsb.8*

#--------------------------------------------------------------------------

%package sanbox2
Summary:	Fence agent for QLogic SANBox2 FC switches
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description sanbox2
Fence agent for QLogic SANBox2 switches that are accessed via telnet.

%files sanbox2
%{_sbindir}/fence_sanbox2
%{_mandir}/man8/fence_sanbox2.8*

#--------------------------------------------------------------------------
%if %{with sbd}

%package sbd
Summary:	Fence agent for SBD (storage-based death)
Group:		System/Kernel and hardware
Requires:	sbd
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description sbd
Fence agent for SBD (storage-based death).

%files sbd
%{_sbindir}/fence_sbd
%{_mandir}/man8/fence_sbd.8*

%endif
#--------------------------------------------------------------------------

%package scsi
Summary:	Fence agent for SCSI persistent reservations
Group:		System/Kernel and hardware
Requires:	sg3_utils
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description scsi
Fence agent for SCSI persistent reservations.

%files scsi
%{_sbindir}/fence_scsi
%{_datadir}/cluster/fence_scsi_check
%{_datadir}/cluster/fence_scsi_check_hardreboot
%{_mandir}/man8/fence_scsi.8*

#--------------------------------------------------------------------------

%package vbox
Summary:	Fence agent for VirtualBox
Group:		System/Kernel and hardware
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description vbox
Fence agent for VirtualBox dom0 accessed via SSH.

%files vbox
%{_sbindir}/fence_vbox
%{_mandir}/man8/fence_vbox.8*

#--------------------------------------------------------------------------

%package virt
Summary:	Fence agent for libvirt
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}

%description virt
Fence agent for libvirt.

%files virt
%{_sysconfdir}/fence_virt.conf
%{_libdir}/fence-virt/cpg.so
%{_libdir}/fence-virt/multicast.so
%{_libdir}/fence-virt/serial.so
%{_libdir}/fence-virt/tcp.so
%{_libdir}/fence-virt/virt.so
%{_libdir}/fence-virt/vsock.so
%{_mandir}/man5/fence_virt.conf.5.xz

#--------------------------------------------------------------------------

# skipped from allfenceagents
%package virsh
Summary:	Fence agent for virtual machines based on libvirt
Group:		System/Kernel and hardware
Requires:	openssh-clients
Requires:	/usr/bin/virsh
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description virsh
Fence agent for virtual machines that are accessed via SSH.

%files virsh
%{_sbindir}/fence_virsh
%{_mandir}/man8/fence_virsh.8*

#--------------------------------------------------------------------------

%package vmware
Summary:	Fence agent for VMWare with VI Perl Toolkit or vmrun
Group:		System/Kernel and hardware
Requires:	python3-pexpect
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description vmware
Fence agent for VMWare accessed with VI Perl Toolkit or vmrun.

%files vmware
%{_sbindir}/fence_vmware
%{_mandir}/man8/fence_vmware.8*

#--------------------------------------------------------------------------

%package vmware-rest
Summary:	Fence agent for VMWare with REST API
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch
Obsoletes:	fence-agents < 4.10.0

%description vmware-rest
Fence agent for VMWare with REST API.

%files vmware-rest
%{_sbindir}/fence_vmware_rest
%{_mandir}/man8/fence_vmware_rest.8*

#--------------------------------------------------------------------------

%package vmware-soap
Summary:	Fence agent for VMWare with SOAP API v4.1+
Group:		System/Kernel and hardware
Requires:	python3-suds
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description vmware-soap
Fence agent for VMWare with SOAP API v4.1+.

%files vmware-soap
%{_sbindir}/fence_vmware_soap
%{_mandir}/man8/fence_vmware_soap.8*

#--------------------------------------------------------------------------

%package vmware-vcloud
Summary:	Fence agent for VMWare vCloud Director
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch
Obsoletes:	fence-agents < 4.10.0

%description vmware-vcloud
Fence agent for VMWare vCloud Director.

%files vmware-vcloud
%{_sbindir}/fence_vmware_vcloud
%{_mandir}/man8/fence_vmware_vcloud.8*

#--------------------------------------------------------------------------

%package wti
Summary:	Fence agent for WTI Network power switches
Group:		System/Kernel and hardware
Requires:	telnet
Requires:	openssh-clients
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description wti
Fence agent for WTI network power switches that are accessed
via telnet or SSH.

%files wti
%{_sbindir}/fence_wti
%{_mandir}/man8/fence_wti.8*

#--------------------------------------------------------------------------

%package xenapi
Summary:	Fence agent for Citrix XenServer over XenAPI
Group:		System/Kernel and hardware
Requires:	python3-pexpect
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description xenapi
Fence agent for Citrix XenServer accessed over XenAPI.

%files xenapi
%{_sbindir}/fence_xenapi
%{_datadir}/fence/XenAPI.py*
%{_datadir}/fence/__pycache__/XenAPI.*
%{_mandir}/man8/fence_xenapi.8*

#--------------------------------------------------------------------------

%package zvm
Summary:	Fence agent for IBM z/VM over IP
Group:		System/Kernel and hardware
Requires:	fence-agents-common = %{EVRD}
BuildArch:	noarch

%description zvm
Fence agent for IBM z/VM over IP.

%files zvm
%{_sbindir}/fence_zvmip
%{_mandir}/man8/fence_zvmip.8*

#--------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}
# prevent compilation of something that won't get used anyway
sed -i.orig 's|FENCE_ZVM=1|FENCE_ZVM=0|' configure.ac

echo %{version} > .tarball-version

%build
./autogen.sh
%configure PYTHON="%__python3"

#remove -Werror -Wall flags
sed -i 's/-Werror -Wall//g' agents/virt/common/Makefile
sed -i 's/-Werror -Wall//g' agents/virt/client/Makefile
sed -i 's/-Werror -Wall//g' agents/virt/server/Makefile
sed -i 's/-Werror -Wall//g' agents/Makefile

%make -j1

%install
%make_install
# bytecompile Python source code in a non-standard location
%py_byte_compile %__python3 %{buildroot}%{_datadir}/fence
# XXX unsure if /usr/sbin/fence_* should be compiled as well

## tree fix up
# fix libfence permissions
chmod 0755 %{buildroot}%{_datadir}/fence/*.py
# remove docs
rm -rf %{buildroot}/usr/share/doc/fence-agents

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1431 |21cr|festivox-ru-0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_this msu_ru_nsh_clunits
%define	indir /usr/share/festival/voices/russian
%define	instdir %{buildroot}%{indir}

#sound-theme-echoe.synth.spec
Summary:	Festival speech synthesis russian voice
Name:		festivox-ru
Version:	0.5
Release:	6
Group:		Sound
License:	GPL
# for content EFML and OAL or Free Art or CC-BY-SA - just not for sale
# For details on the licenses used, see CREDITS
Url:		http://sourceforge.net/projects/festlang.berlios/
Source0:	http://sourceforge.net/projects/festlang.berlios/files/msu_ru_nsh_clunits-0.5.tar.bz2
Patch0:		patch.festival_server
Patch1:		patch.lexicon.scm
Patch2:		patch.tokenizer.scm
BuildRequires:	festival
BuildArch:	noarch
Provides:	festivox-ru

%description
Russian voice for Festival tts engine made by MGU speech group
(http://www.philol.msu.ru/~otipl/SpeechGroup/).

%files
%doc 
%{indir}/%{_this}/

#-----------------------------------------------------------------------------

%prep
%setup -qn %{_this}
%patch1 -p0
%patch2 -p0


%build


%install
mkdir -p %{instdir}/%{_this}
cp -a %{_builddir}/%{_this}/* %{buildroot}%{indir}/%{_this}/


%post
%patch0 -p0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1432 |21cr|festvox-suopuhe-lj-1.0g-20051204.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	date	20051204
%define	rel	5
%define release	%mkrel %{date}.%{rel}

Summary:	Festival Voice - Finnish female speaker (suo_fi_lj)
Name:		festvox-suopuhe-lj
Version:	1.0g
Release:	%{release}
License:	LGPL
Group:		Sound
# URLs are dead: use stored sources
# WARNING: possibly not working with festival >= 2.4
Url:		http://phon.joensuu.fi/suopuhe/
Source0:	suo_fi_lj-%{version}-%{date}.tar.bz2
Source1:	README.MDV
# patches from debian
Patch0:		festvox-suopuhe-lj-paths.diff
Patch1:		festvox-suopuhe-lj-funcname.patch
Requires:	festvox-suopuhe-common
# per Mandriva locale-specific package policy:
Requires:	locales-fi
# other festvox packages seem to provide these:
Provides:	festival-voice
Provides:	festival-voice-finnish
Provides:	festival-voice-fi_FI
BuildArch:	noarch

%description
This is a Finnish female speaker for the Festival speech synthesis system. It
was developed as part of the Suopuhe project at the universities of Helsinki
and Joensuu.

%files
%doc lib/voices/finnish/suo_fi_lj_diphone/README.lj
%{_datadir}/festival/voices/finnish/suo_fi_lj_diphone

#-----------------------------------------------------------------------------

%package -n	festvox-suopuhe-common
Summary:	Common files for Festival Finnish speakers
Group:		Sound
Recommends:	festvox-suopuhe-mv
Recommends:	festvox-suopuhe-lj

%description -n	festvox-suopuhe-common
This package contains the common files between the two Finnish Festival speech
synthesis speakers, festvox-suopuhe-mv and festvox-suopuhe-lj.

%files -n festvox-suopuhe-common
%doc README.MDV README.install.urpmi
%{_datadir}/festival/voices/finnish/suopuhe.common
%dir %{_datadir}/festival/voices/finnish


#-----------------------------------------------------------------------------

%prep
%setup -q -n festival
%patch0 -p1
%patch1 -p1
cp -a %{SOURCE1} .
cat > README.install.urpmi <<EOF
See suopuhe usage instructions in
%{_docdir}/festvox-suopuhe-common/README.MDV.
EOF


%install
install -d -m755 %{buildroot}%{_datadir}/festival/voices/finnish/suopuhe.common
cp -a lib/voices/finnish/suo_fi_lj_diphone/festvox/* \
	%{buildroot}%{_datadir}/festival/voices/finnish/suopuhe.common

install -d -m755 %{buildroot}%{_datadir}/festival/voices/finnish/suo_fi_lj_diphone
cp -a lib/voices/finnish/suo_fi_lj_diphone/group \
	%{buildroot}%{_datadir}/festival/voices/finnish/suo_fi_lj_diphone

ln -s ../suopuhe.common %{buildroot}%{_datadir}/festival/voices/finnish/suo_fi_lj_diphone/festvox

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1433 |21cr|festvox-suopuhe-mv-20041119-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Festival Voice - Finnish male speaker (hy_fi_mv)
Name:		festvox-suopuhe-mv
Version:	20041119
Release:	7
License:	LGPL
Group:		Sound
# URLs are dead: use stored sources
# WARNING: possibly not working with festival >= 2.4
Url:		http://phon.joensuu.fi/suopuhe/
Source0:	hy_fi_mv_diphone-%{version}.tar.bz2
Requires:	festvox-suopuhe-common
# per Mandriva locale-specific package policy:
Requires:	locales-fi
# other festvox packages seem to provide these:
Provides:	festival-voice
Provides:	festival-voice-finnish
Provides:	festival-voice-fi_FI
BuildArch:	noarch

%description
This is a Finnish male speaker for the Festival speech synthesis system. It
was developed as part of the Suopuhe project at the universities of Helsinki
and Joensuu.

%files
%doc lib/voices/finnish/hy_fi_mv_diphone/README.mv
%{_datadir}/festival/voices/finnish/hy_fi_mv_diphone

#-----------------------------------------------------------------------------

%prep
%setup -q -n festival

%install
install -d -m755 %{buildroot}%{_datadir}/festival/voices/finnish/hy_fi_mv_diphone
cp -a lib/voices/finnish/hy_fi_mv_diphone/group \
	%{buildroot}%{_datadir}/festival/voices/finnish/hy_fi_mv_diphone

ln -s ../suopuhe.common %{buildroot}%{_datadir}/festival/voices/finnish/hy_fi_mv_diphone/festvox

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1434 |21cr|fet-6.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define distsuffix mrb

Summary:	Free Timetabling Software
Name:		fet
Version:	6.8.5
Release:	1
License:	GPLv3
Group:		Education
Url:		http://lalescu.ro/liviu/fet/
Source0:	http://lalescu.ro/liviu/fet/download/%{name}-%{version}.tar.bz2
BuildRequires:	qt5-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	qmake5
BuildRequires:	desktop-file-utils

%description
FET is free timetabling software (licensed under GNU GPL v2 or later). This
program aims to automatically generate the timetable of a school,
high-school or university. It may be used for other timetabling purposes.

FET can mean "Free Educational Timetabling" (the "E" in the middle may
also stand for other words, based on your personal preference).

%files -f %{name}.lang
%{_docdir}/%{name}
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/examples
%dir %{_datadir}/%{name}/translations
%{_mandir}/man1/%{name}*.1.*

#-------------------------------------------------------------------

%prep
%setup -q
#file-not-utf8
iconv -c -t UTF-8 < licenses/qt/ThirdPartySoftware_Listing.txt > \
  licenses/qt/ThirdPartySoftware_Listing.txt

%build
%{_qt5_bindir}/lupdate %{name}.pro
pushd translations
%{_qt5_bindir}/lrelease *.ts
popd

%qmake_qt5 DEFINES+=USE_SYSTEM_LOCALE 
%make

%install
%makeinstall_qt
chmod 0644 %{buildroot}%{_datadir}/applications/%{name}.desktop
%find_lang %{name} --with-qt

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1435 |21cr|fetchlog-1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fetch and convert new messages of a logfile
Name:		fetchlog
Version:	1.4
Release:	5
License:	GPLv2+
Group:		System/Kernel and hardware
URL:		http://sourceforge.net/projects/fetchlog/
Source0:	http://prdownloads.sourceforge.net/fetchlog/%{name}-%{version}.tar.gz

%description
The fetchlog utility displays the last new messages of a logfile
(syslog).  fetchlog is similar like tail but offers some extra
functionality like pattern matching with regular expressions,
output formatting for email, SMS, pager or SNMP tools, etc.

%prep

%setup -q -n %{name}-%{version}

%build

%make CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 fetchlog %{buildroot}%{_bindir}/
install -m0644 fetchlog.1 %{buildroot}%{_mandir}/man1/

%files
%doc CHANGES README README.Nagios README.SNMP
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1436 |21cr|fetchyahoo-2.14.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Downloads mail from an Yahoo! webmail account
Name: fetchyahoo
Version: 2.14.10
Release: 4
URL: http://fetchyahoo.twizzler.org
Source0: http://fetchyahoo.twizzler.org/%{name}-%{version}.tar.gz
Source1: README.urpmi
License: GPLv2+
Group: Networking/Mail

Requires: perl(LWP::Protocol::https)
Requires: perl

BuildArch: noarch

%description
FetchYahoo is a Perl script that downloads mail from a Yahoo! web-mail
account to a local mail spool, an m-box file, or to proc-mail. It is
meant to replace fetchmail for people using Yahoo! mail since Yahoo!'s
POP and email forwarding services are no longer free. It includes all
parts and attachments within the email. It can also forward the email
to a specified address.

%prep
%setup -q
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog
iconv -f iso8859-1 -t utf-8 Credits > Credits.conv && mv -f Credits.conv Credits

%build

%install
mkdir -p $RPM_BUILD_ROOT%_bindir
mkdir -p $RPM_BUILD_ROOT%_mandir/man1
cp -a fetchyahoo $RPM_BUILD_ROOT%_bindir/fetchyahoo
cp -a fetchyahoo.1 $RPM_BUILD_ROOT%_mandir/man1/fetchyahoo.1
install  %{SOURCE1} README.urpmi

%files
%doc COPYING INSTALL TODO index.html fetchyahoorc ChangeLog Credits
%_bindir/fetchyahoo
%_mandir/man1/fetchyahoo.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1437 |21cr|ffcall-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define ffcallmajor 0
%define libffcall %mklibname ffcall %{ffcallmajor}
%define libavcall %mklibname avcall %{major}
%define libcallback %mklibname callback %{major}
%define libtrampoline %mklibname trampoline %{major}
%define devname %mklibname %{name} -d

Summary:	Libraries that can be used to build foreign function call interfaces
Name:		ffcall
Version:	2.4
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://www.gnu.org/software/libffcall/
Source:		https://ftp.gnu.org/gnu/libffcall/libffcall-%{version}.tar.gz

%description
This is a collection of four libraries which can be used to build
foreign function call interfaces in embedded interpreters.

The four packages are:
- avcall - calling C functions with variable arguments
- vacall - C functions accepting variable argument prototypes
- trampoline - closures as first-class C functions
- callback - closures with variable arguments as first-class C functions
  (a reentrant combination of vacall and trampoline)
This version B includes some minor configuration changes so that files
are installed in the proper place. Also it compiles on cygwin and mingw32.

#----------------------------------------------------------------------------

%package -n %{libffcall}
Summary:	Libraries that can be used to build foreign function call interfaces
Group:		System/Libraries
Conflicts:	%{_lib}ffcall0 < 1.10-11
Obsoletes:	%{_lib}ffcall0 < 1.10-11

%description -n %{libffcall}
This is a collection of four libraries which can be used to build
foreign function call interfaces in embedded interpreters.

The four packages are:
- avcall - calling C functions with variable arguments
- vacall - C functions accepting variable argument prototypes
- trampoline - closures as first-class C functions
- callback - closures with variable arguments as first-class C functions
  (a reentrant combination of vacall and trampoline)
This version B includes some minor configuration changes so that files
are installed in the proper place. Also it compiles on cygwin and mingw32.

%files -n %{libffcall}
%{_libdir}/libffcall.so.%{ffcallmajor}*

#----------------------------------------------------------------------------

%package -n %{libavcall}
Summary:	Libraries that can be used to build foreign function call interfaces
Group:		System/Libraries
Conflicts:	%{_lib}ffcall0 < 1.10-11

%description -n %{libavcall}
This is a collection of four libraries which can be used to build
foreign function call interfaces in embedded interpreters.

The four packages are:
- avcall - calling C functions with variable arguments
- vacall - C functions accepting variable argument prototypes
- trampoline - closures as first-class C functions
- callback - closures with variable arguments as first-class C functions
  (a reentrant combination of vacall and trampoline)
This version B includes some minor configuration changes so that files
are installed in the proper place. Also it compiles on cygwin and mingw32.

%files -n %{libavcall}
%{_libdir}/libavcall.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcallback}
Summary:	Libraries that can be used to build foreign function call interfaces
Group:		System/Libraries
Conflicts:	%{_lib}ffcall0 < 1.10-11
Obsoletes:	%{_lib}ffcall0 < 1.10-11

%description -n %{libcallback}
This is a collection of four libraries which can be used to build
foreign function call interfaces in embedded interpreters.

The four packages are:
- avcall - calling C functions with variable arguments
- vacall - C functions accepting variable argument prototypes
- trampoline - closures as first-class C functions
- callback - closures with variable arguments as first-class C functions
  (a reentrant combination of vacall and trampoline)
This version B includes some minor configuration changes so that files
are installed in the proper place. Also it compiles on cygwin and mingw32.

%files -n %{libcallback}
%{_libdir}/libcallback.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libtrampoline}
Summary:	Libraries that can be used to build foreign function call interfaces
Group:		System/Libraries
Conflicts:	%{_lib}ffcall0 < 1.10-11

%description -n %{libtrampoline}
This is a collection of four libraries which can be used to build
foreign function call interfaces in embedded interpreters.

The four packages are:
- avcall - calling C functions with variable arguments
- vacall - C functions accepting variable argument prototypes
- trampoline - closures as first-class C functions
- callback - closures with variable arguments as first-class C functions
  (a reentrant combination of vacall and trampoline)
This version B includes some minor configuration changes so that files
are installed in the proper place. Also it compiles on cygwin and mingw32.

%files -n %{libtrampoline}
%{_libdir}/libtrampoline.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for ffcall library
Group:		Development/C
Requires:	%{libffcall} = %{EVRD}
Requires:	%{libavcall} = %{EVRD}
Requires:	%{libcallback} = %{EVRD}
Requires:	%{libtrampoline} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for ffcall library.

%files -n %{devname}
%doc NEWS README PLATFORMS
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.a
%{_mandir}/man3/*
%{_defaultdocdir}/%{devname}/html

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n lib%{name}-%{version}

%build
%configure \
	--enable-shared
#build failed if multithread compile enabled, package is small, not need enable
#multithread
%make -j1

%install
# make install does not create all necessary directories
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_mandir}
%makeinstall_std

mkdir -p %{buildroot}%{_defaultdocdir}/%{devname}
mv %{buildroot}%{_datadir}/html %{buildroot}%{_defaultdocdir}/%{devname}/html

chmod 0755 %{buildroot}%{_libdir}/*.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1438 |21cr|ffdiaporama-2.2-0.11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}
%define	oname ffDiaporama

Summary:	Movie creator from photos and video clips
Name:		ffdiaporama
Version:	2.2
Release:	0.11
License:	GPLv2+
Group:		Video
Url:		http://ffdiaporama.tuxfamily.org
# this is devel version
Source0:	http://download.tuxfamily.org/%{name}/Packages/Stable/%{name}-2014.07.01.tar.gz
Patch0:		ffdiaporama-ffmpeg-2.4.patch
Patch1:		ffdiaporama-audiodecode.patch
Patch2:		ffdiaporama-nodownload.patch
Patch3:		ffdiaporama-workingdir.patch
Patch4:		ffdiaporama-ffmpeg-3.0.patch
Patch5:		DEBIAN-download-privacy.patch
Patch6:		DEBIAN-ROSA-ffmpeg-4.0.patch
Patch7:		DEBIAN-ffmpeg-include.patch
Patch8:		DEBIAN-fix-hardening-flags.patch
#Patch10:	DEBIAN-ROSA-enable-rsc.patch
Patch11:	ROSA-Fix-symlinks.patch
Patch12:	DEBIAN-ROSA-64bit-detection.patch
Patch13:	DEBIAN-ROSA-libav-log-callback-mutext.patch
Patch15:	ffdiaporama-2.2-ffmpeg-4.4.patch
BuildRequires:	desktop-file-utils
BuildRequires:	qmake5
BuildRequires:	qt5-macros
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	ffmpeg
Requires:	qt5-database-plugin-sqlite
Recommends:	ffdiaporama-openclipart
Recommends:	ffdiaporama-texturemate

%description
ffDiaporama is an application for creating video sequences consisting of
* titles, fixed or animated.
* images or photos, fixed or animated.
* movie clips
* music

These sequences are assembled into a slide show by means of transitions
to produce complete videos
The following options are available:

* Reframing of images and photos
* Cutting of video clips
* Adding text, notes to images, photos, sequences and animations
* Graphical filters on the images and the videos (conversion into
  black and white, dust removal, equalization of colors, etc.)
* Creation of animation by zoom, rotation or Ken Burns Effect on
  images or photos
* Correction of the images and the videos during animations
  (luminosity, contrast, gamma, colors, etc.)
* Transitions between sequences with definition of the transition type,
  sequence by sequence.
* Addition of a background sound (wav, mp3 or ogg) with customizable
  effects for volume, fade in/out and passage in pause, sequence by sequence.
* Generation of videos usable on most current video equipment
  (DVD player/smartphone, multimedia box, hard drive, etc.)
  but also publishable on the main video-sharing Websites
  (YouTube, Dailymotion, etc.)
* Video formats from QVGA (320×240) to Full HD (1920×1080)
  by way of the DVD and HD 720 formats.
* Image geometry (aspect ratio) : 4:3, 16:9 or 2.35:1 (cinema)
* Possible formats for rendering : avi, mpg, mp4, webm, mkv

%files -f %{name}.lang
%doc authors.txt BUILDVERSION.txt changelog-en.txt changelog-fr.txt licences.txt readme.txt licence.rtf ffDiaporama.xml Devices.xml
%{_datadir}/%{oname}/*.txt
%{_datadir}/%{oname}/*.xml
%{_datadir}/%{oname}/*.rtf
%{_datadir}/%{oname}/locale/*.TXT
%{_datadir}/%{oname}/locale/*.ts
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/mime/packages/%{oname}-mime.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}
%apply_patches

perl -pi -e "s|Categories=GTK;GNOME;Qt;KDE;AudioVideo|Categories=GTK;GNOME;Qt;KDE;AudioVideo;|" ffDiaporama.desktop

chmod -x authors.txt BUILDVERSION.txt changelog-en.txt changelog-fr.txt licences.txt \
  readme.txt licence.rtf ffDiaporama.xml ffDiaporama.desktop Devices.xml ffDiaporama-mime.xml \
  locale/LOCALEVERSION.TXT locale/WIKIVERSION.TXT


%build
%qmake_qt5
%make || :

%install
%makeinstall INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}%{_datadir}%{oname}/locale
cp -v locale/* %{buildroot}%{_datadir}/%{oname}/locale/

(cd %{buildroot} && find . -name '*.q*') | sed -e 's|^.||' | sed -e \
    's:\(.*/locale/\)\([_a-z_A-Z]\+\)\(.q\):%lang(\2) \1\2\3:' >> %{name}.lang

find %{buildroot}%{_datadir}/%{oname}/locale  -name '*.ts' -exec chmod -x {} \;
find %{buildroot}%{_datadir}/%{oname}/locale  -name '*.TXT' -exec chmod -x {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1439 |21cr|ffdiaporama-openclipart-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	This is ffDiaporama extension for Openclipart
Name:		ffdiaporama-openclipart
Version:	1.0
Release:	4
License:	GPLv2+
Group:		Graphics
Url:		http://ffdiaporama.tuxfamily.org/?page_id=9273
BuildRequires:	openclipart
Requires:	ffdiaporama
Requires:	openclipart
BuildArch:	noarch

%description
This extension allows you to use the openclipart database (version 0.18+)
with ffDiaporama. This database contains nearly 13,000 free clipart in .svg
format (vector). These cliparts are available in ffDiaporama under the
"clipart" entry of the directory tree in multimedia file browser.

%files
%{_datadir}/ffDiaporama/clipart/openclipart

#----------------------------------------------------------------------------

%prep
#nothing

%build
#nothing

%install
install -d %{buildroot}%{_datadir}/ffDiaporama/clipart/openclipart
ln -s %{_datadir}/clipart/openclipart/* %{buildroot}%{_datadir}/ffDiaporama/clipart/openclipart

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1440 |21cr|ffdiaporama-texturemate-1.0-1.2014.0125.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ffdiaporama_texturemate
%define upname ffDiaporama_texturemate

%define year 2014
%define minor 0125

Summary:	Background textures for ffDiaporama
Name:		ffdiaporama-texturemate
Version:	1.0
Release:	1.%{year}.%{minor}.2
License:	CC-BY
Group:		Graphics
Url:		http://www.texturemate.com/
Source0:	http://download.tuxfamily.org/ffdiaporama/Packages/Stable/%{oname}_%{version}.%{year}.%{minor}.tar.gz
BuildRequires:	ffdiaporama
BuildRequires:	qmake5
BuildRequires:	qt5-macros
Requires:	ffdiaporama
BuildArch:	noarch

%description
This package contains free textures to set as background in ffDiaporama.
You can set a texture as background from the library when editing the
background in a slide's settings dialog.

ffDiaporama is a tool to make diaporamas as video and a part of ffDiaporama.

All resources provided with ffDiaporama-texturemate are from the site:
 http://www.texturemate.com/
and have been redesigned to work with ffDiaporama 1.6 and higher.

%files
%doc licence.txt readme.txt TMTBUILDVERSION.txt
%{_datadir}/ffDiaporama/background/texturemate/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upname}

%build
%qmake_qt5 %{upname}.pro

%make

%install
%makeinstall INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1441 |21cr|ffingerd-1.28-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: ffingerd
Summary: Secure finger daemon
Version: 1.28
Release: 14
Source0: %{name}-%{version}.tar.bz2
Group: Networking/Other
URL: http://www.fefe.de/ffingerd/
License: GPL

%description
Fefe's Finger Daemon is a secure fingerd which doesn't run as root,
doesn't give away vital info about your system, and does syslogging.

%prep

%setup -q %{name}-%{version}

%build

%configure

%make

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_prefix}/sbin
install -d $RPM_BUILD_ROOT%{_mandir}/man8
install -m 644 ffingerd.8 $RPM_BUILD_ROOT/%{_mandir}/man8
install -m 755 ffingerd $RPM_BUILD_ROOT%{_sbindir}/

%post
# remove other fingerd's and add ffingerd. make a backup, too
cat /etc/inetd.conf | grep ffingerd > /tmp/ffingerd.test
if [ ! -s /tmp/ffingerd.test ]; then
     cp -f /etc/inetd.conf /etc/inetd.conf.rpmsave
     cat /etc/inetd.conf | grep -v in.fingerd | grep -v "End of inetd.conf" > /etc/inetd.conf
     echo "#" >> /etc/inetd.conf
     echo "# Fefe's finger daemon, a secure finger daemon" >> /etc/inetd.conf
     echo "#" >> /etc/inetd.conf
     echo "finger  stream  tcp     nowait  nobody  /usr/sbin/tcpd  /usr/sbin/ffingerd" >> /etc/inetd.conf
     echo >> /etc/inetd.conf
     echo "# End of inetd.conf" >> /etc/inetd.conf
fi
rm /tmp/ffingerd.test

# now restart inetd
if [ -f /var/run/inetd.pid ]; then
     kill -HUP `cat /var/run/inetd.pid` ;
else
     echo "Now you need to restart inetd" ;
fi

%postun
# restore the old config file, or try to at least
if [ -f /etc/inetd.conf.rpmsave ]; then
     mv /etc/inetd.conf.rpmsave /etc/inetd.conf ;
fi

# now restart inetd
if [ -f /var/run/inetd.pid ]; then
     kill -HUP `cat /var/run/inetd.pid` ;
else
     echo "Now you need to restart inetd" ;
fi

%files
%defattr(-,root,root)
%doc NEWS README TODO
%{_sbindir}/*
%{_mandir}/man8/*

%clean
rm -rf $RPM_BUILD_ROOT

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1442 |21cr|fflas-ffpack-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This package is arch-specific, because it computes properties of the system
# (such as endianness) and stores them in generated header files.  Hence, the
# files DO vary by platform.  However, there is no actual compiled code, so
# turn off debuginfo generation.
%global debug_package %{nil}

Summary:	Finite field linear algebra subroutines
Name:		fflas-ffpack
Version:	2.5.0
Release:	1
License:	LGPLv2+ and CeCILL-B
Group:		Sciences/Mathematics
Url:		http://linbox-team.github.io/fflas-ffpack
Source0:	https://github.com/linbox-team/fflas-ffpack/releases/download/v%{version}/%{name}-%{version}.tar.gz
# Man page written for Fedora in groff_man(7) format based on --help output
Source1:	fflas-ffpack-config.1
# Patch from upstream discussion list.  Fixes building with debug.
Patch1:		fflas-ffpack-debug.patch
BuildRequires:	doxygen
BuildRequires:	givaro-devel
BuildRequires:	gmp-devel
BuildRequires:	gomp-devel
BuildRequires:	flexiblas-devel


# Although there are references to linbox-devel files in this package,
# linbox-devel Requires fflas-ffpack-devel, not the other way around.

%description
The FFLAS-FFPACK library provides functionality for dense linear algebra
over word size prime finite fields.

#----------------------------------------------------------------------------

%package devel
Summary:	Header files for developing with fflas-ffpack
Group:		Development/C++
Requires:	givaro-devel
Requires:	gmp-devel
Requires:	flexiblas-devel

%description devel
The FFLAS-FFPACK library provides functionality for dense linear algebra
over word size prime finite fields.  This package provides the header
files for developing applications that use FFLAS-FFPACK.

%files devel
%doc AUTHORS ChangeLog COPYING README* TODO
%doc 
%{_bindir}/fflas-ffpack-config
%{_includedir}/fflas-ffpack
%{_mandir}/man1/*
%{_libdir}/pkgconfig/fflas-ffpack.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix character encodings
for f in AUTHORS TODO; do
  iconv -f iso8859-1 -t utf-8 $f > $f.utf8
  touch -r $f $f.utf8
  mv -f $f.utf8 $f
done

# Fix the FSF's address
for f in `grep -FRl 'Temple Place' .`; do
  sed -i.orig \
    's/59 Temple Place, Suite 330, Boston, MA  02111-1307/51 Franklin Street, Suite 500, Boston, MA  02110-1335/' \
    $f
  touch -r $f.orig $f
  rm -f $f.orig
done

# Do not use env
sed -i 's,%{_bindir}/env bash,%{_bindir}/bash,' fflas-ffpack-config.in

# Remove parts of the configure script that select non-default architectures
# and ABIs. On x86_64, we could rely on up to SSE2, but there are no explicit
# SIMD routines below SSE4.1 in the library, so it is not worth worrying about.
sed -i '/INSTR_SET/,/fabi-version/d' configure.ac

%build
# Regenerate configure after monkeying with configure.ac
autoreconf --force --install --verbose

%configure \
	--docdir=%{_docdir}/fflas-ffpack-%{version} \
	--disable-doc \
	--enable-openmp \
	--disable-static \
	--with-blas-libs="-lflexiblas"

chmod -v a+x fflas-ffpack-config
%make

%install
%makeinstall_std

install -t '%{buildroot}%{_mandir}/man1' -D -m 0644 -p '%{SOURCE1}'

# Documentation is installed in the wrong place
rm -fr %{buildroot}%{_prefix}/docs

# Don't want these files in with the HTML files
rm -f doc/fflas-ffpack-html/{AUTHORS,COPYING,INSTALL}

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1443 |21cr|ffmpeg2theora-0.30-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	A simple converter to create Ogg Theora files
Name:		ffmpeg2theora
Version:	0.30
Release:	3
License:	GPLv2+
Group:		Video
Url:		http://www.v2v.cc/~j/ffmpeg2theora/
Source0:	http://v2v.cc/~j/ffmpeg2theora/downloads/%{name}-%{version}.tar.bz2
Patch0:     scons-python3.patch
Patch1:		ffmpeg2theora-0.29-link.patch
BuildRequires:	scons
BuildRequires:	ffmpeg-devel >= 0.6
BuildRequires:	pkgconfig(kate)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(theoraenc)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisenc)

%description
Simple converter to create Ogg Theora files.

%files
%doc COPYING ChangeLog AUTHORS README TODO README.mdv
%attr(0755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
echo "#define AVCODEC_MAX_AUDIO_FRAME_SIZE 192000" >> src/ffmpeg2theora.h

%build
scons prefix=%{_prefix} mandir=%{_mandir}

%install
scons install destdir=%{buildroot} prefix=%{_prefix} mandir=%{_mandir}
install -D %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1


cat > %{_builddir}/%{name}-%{version}/README.mdv << EOF

some examples using ffmpeg2theora:

to convert your DV file, called videoclip.dv to Ogg Theora:

ffmpeg2theora videoclip.dv

this will create an Ogg Theora file called videoclip.dv.ogg.

to encode with another quality, lets say Video Quality 7 and Audio Quality 3:

ffmpeg2theora -v 7 -a 3 videoclip.dv

you can also use the v2v Presets to encode your video

ffmpeg2theora -p preview videoclip.dv

or

ffmpeg2theora -p pro videoclip.dv

on linux you can use ffmpeg2theora to stream to an icecast server:
this needs the latest icecast-kh version and a small tool to send the ogg stream to the icecast server.

dvgrab --format raw - | \
	ffmpeg2theora -a 0 -v 5 -f dv -x 320 -y 240 -o /dev/stdout - | \
	oggfwd  icecastserver  8000 pwd /theora.ogg

crop the input

ffmpeg2theora --croptop 16 --cropbottom 16 --cropright 32 --cropleft 8 file.avi

further examples and discussion

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1444 |21cr|ffmpegthumbnailer-2.2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 4
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

# KF5 front-end needs %%{devname} so allow for
# a build without it
%bcond_without	kde5

Summary:	Lightweight video thumbnailer
Name:		ffmpegthumbnailer
Version:	2.2.2
Release:	3
License:	GPLv2+
Group:		Video
Url:		https://github.com/dirkvdb/ffmpegthumbnailer
Source0:	https://github.com/dirkvdb/ffmpegthumbnailer/releases/download/%{version}/%{name}-%{version}.tar.bz2
Patch0:		0001-Fixed-object-target-configuration.patch
Patch1:		0002-Added-application_x-matroska-match-in-thumbnailer-file.patch
Patch2:		ffmpegthumbnailer-2.2.2-pkgconfig-prefix.patch
Patch3:		ffmpegthumbnailer-2.2.2-revamp-kde-frontend.patch
BuildRequires:	cmake
BuildRequires:	gettext
%if %{with kde5}
BuildRequires:	extra-cmake-modules
BuildRequires:	kde5-macros
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
%endif
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libpng)
%if %{with kde5}
BuildRequires:	pkgconfig(libffmpegthumbnailer)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.2.0
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
%endif
BuildRequires:	pkgconfig(zlib)

%description
This video thumbnailer can be used by file managers to create thumbnails for
your video files. The thumbnailer uses ffmpeg to decode frames from the video
files, so supported video formats depend on the configuration flags of ffmpeg.
This thumbnailer was designed to be as fast and lightweight as possible.

%files
%doc AUTHORS ChangeLog README TODO
%{_bindir}/%{name}
%{_datadir}/thumbnailers/%{name}.thumbnailer
%if %{with kde5}
%{_kde5_services}/kffmpegthumbnailer.desktop
%{_libdir}/plugins/kffmpegthumbnailer.so
%endif
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/libffmpegthumbnailer.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc COPYING
%dir %{_includedir}/libffmpegthumbnailer
%{_includedir}/libffmpegthumbnailer/*.h
%{_libdir}/libffmpegthumbnailer.so
%{_libdir}/pkgconfig/libffmpegthumbnailer.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%cmake \
	-DENABLE_GIO=ON \
	-DENABLE_THUMBNAILER=ON
%make

%if %{with kde5}
pushd ../kffmpegthumbnailer
	%cmake
	%make
popd
%endif

%install
%makeinstall_std -C build

%if %{with kde5}
pushd kffmpegthumbnailer
	%makeinstall_std -C build
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1445 |21cr|ffms2-2.40-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	Wrapper library around libffmpeg
Name:		ffms2
Version:	2.40
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://github.com/FFMS/ffms2/
Source0:	https://github.com/FFMS/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	libtool
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(zlib)

%description
FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform wrapper
library around libffmpeg, plus some additional components to deal with file
formats libavformat has (or used to have) problems with.

%files
%doc COPYING
%{_bindir}/ffmsindex

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
FFmpegSource (usually known as FFMS or FFMS2) is a cross-platform wrapper
library around libffmpeg, plus some additional components to deal with file
formats libavformat has (or used to have) problems with.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
Header files for development with %{name}.

%files -n %{devname}
%{_includedir}/ffms*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_docdir}/lib%{name}-devel

#---------------------------------------------------------------------------

%prep
%setup -q

sed -i 's/\r$//' COPYING

%build
./autogen.sh
%configure \
	--docdir=%{_docdir}/lib%{name}-devel \
	--enable-shared \
	--disable-static
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1446 |21cr|fget-1.3.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sdevname %mklibname %{name} -d -s

Summary:	Commandline tool for mirroring remote files via FTP
Name:		fget
Version:	1.3.3
Release:	10
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://www.feep.net/fget/
Source0:	ftp://ftp.feep.net/pub/software/fget/%{name}-%{version}.tar.bz2
Patch0:		fget-1.3.3-no-strip.patch

%description
fget is a commandline tool for mirroring remote files via FTP. It was designed
as an analog to the GNU wget utility. The fget package includes an FTP client
library, so that others can make use of FTP from within their own C programs.

%files
%doc README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Development library for fget
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 1.3.3-6
Conflicts:	%{name}-devel < 1.3.3-6
Obsoletes:	%{name}-devel < 1.3.3-6

%description -n %{sdevname}
Development library for fget.

%files -n %{sdevname}
%{_includedir}/*.h
%{_libdir}/*.a
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1447 |21cr|fgrun-2016.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical launcher for the FlightGear flight simulator
Name:		fgrun
Version:	2016.3.1
Release:	3
License:	GPLv2+
Group:		Games/Simulation
Url:		http://sourceforge.net/projects/fgrun/
# git clone git://gitorious.org/fg/fgrun.git
# git archive --format=tar.gz -o fgrun-3.2.0.tar.gz --prefix=fgrun-3.2.0/ origin/release/3.2.0
Source0:	%{name}-%{version}.tar.bz2
Source1:	README.urpmi
Patch1:		0001-Build-fgrun-with-static-ui-libs.patch
Patch2:		0002-Fix-a-crash-when-setting-defaults.patch
Patch3:		fgrun-3.2.0-fdr-rosa-default-settings.patch
Patch4:		0004-Fix-reloadPath-logic.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	fltk-devel >= 1.3.0
BuildRequires:	simgear-devel
BuildRequires:	pkgconfig(openscenegraph)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
Requires:	flightgear

%description
fgrun is a graphical launcher for the FlightGear flight simulator.

%files -f %{name}.lang
%doc README COPYING NEWS AUTHORS README.urpmi
%{_bindir}/%{name}
%dir %{_sysconfdir}/fltk
%dir %{_sysconfdir}/fltk/flightgear.org
%{_sysconfdir}/fltk/flightgear.org/%{name}.prefs
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
cp -a %{SOURCE1} .

%build
%cmake \
	-DFLTK_FLUID_EXECUTABLE=%{_bindir}/fluid
%make

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_sysconfdir}/fltk/flightgear.org
install -m 0644 fgrun.prefs \
        %{buildroot}%{_sysconfdir}/fltk/flightgear.org/fgrun.prefs
%find_lang %{name}

mkdir %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Name[ru]=%{name}
Comment=Graphical launcher for the FlightGear flight simulator
Comment[ru]=Графический интерфейс для запуска авиасимулятора FlightGear
Exec=fgrun
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;Simulation;
EOF

install -d %{buildroot}{%{_miconsdir},%{_liconsdir}}
convert flightgear.ico flightgear.png 
install flightgear-1.png %{buildroot}%{_miconsdir}/%{name}.png
install flightgear-0.png %{buildroot}%{_iconsdir}/%{name}.png
install flightgear-3.png %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1448 |21cr|fheroes2-0.9.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Free implementation of Heroes of the Might and Magic II engine
Name:		fheroes2
Epoch:		1
Version:	0.9.21
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://ihhub.github.io/fheroes2/
Source0:	https://github.com/ihhub/fheroes2/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	fheroes2.sh
Source3:	fheroes2.png
Source4:	fheroes2.desktop
Source5:	fheroes2.cfg
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(zlib)

%description
Free implementation of Heroes of the Might and Magic II engine.
You need to copy files from data and maps directories from original game
into your /usr/share/games/fheroes2/{maps,data} directories respectively.

%files
%doc changelog.txt README.md
%license LICENSE
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
%make \
	WITH_AI=simple \
	WITH_SDL2="ON" \
	CONFIGURE_FHEROES2_DATA="%{_gamesdatadir}/%{name}/"

%install
# No automated install:
# 1) Create directory structure
mkdir -p %{buildroot}%{_gamesbindir}
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps

# 2) install what we need where we need it
install -pm 755 src/dist/%{name} %{buildroot}%{_gamesbindir}/%{name}.bin
install -pm 755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1449 |21cr|fidoconf-1.4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define preversion rc5

%define release 0.%{preversion}.%{rel}

%define major 1.4
%define libname %mklibname %name %major

Summary:	Library to access the fidoconfig
Name:           fidoconf
Version:        1.4.0
Release:        7
License:	GPL
Group:		File tools
Source0:		%{name}-%{major}-%{preversion}.tar.bz2
Patch0:		fidoconf-20021015-main.patch
Patch1:		fidoconf-20021015-doc.patch
Patch2:		fidoconf-20021015-man.patch
Patch3:		fidoconf-20021022-config.patch
Patch4:		fidoconf-20030523-fc2fgate.patch
Patch5:		fidoconf-tparser.diff
Patch6:		fidoconf-Makefile.diff
patch7:		fidoconf-1.4-rc5.huskymak.patch
patch8:		fidoconf-1.4-rc5.printf.patch
BuildRequires:	huskybse smapi-devel texinfo
URL:		http://sourceforge.net/projects/husky/

%description
The design goal of fidoconfig was to provide one config-file for several
different fido software packages like editor, tosser etc.
An additional aim was to have one library (fidoconfig) which can be used by
all programs.
The advantage is you only have to edit one config-file, so changing your
system is much easier than with common software packages. Also bugs can only
creep in one library and not in thousands over thousands libraries.

%package -n %libname
Summary: Library to access the fidoconfig
Group: System/Libraries
Provides: lib%name = %version-%release

%description -n %libname
The design goal of fidoconfig was to provide one config-file for several
different fido software packages like editor, tosser etc.
An additional aim was to have one library (fidoconfig) which can be used by
all programs.
The advantage is you only have to edit one config-file, so changing your
system is much easier than with common software packages. Also bugs can only
creep in one library and not in thousands over thousands libraries.

%package -n %libname-devel
Summary: Library to access the fidoconfig, development files
Group: Development/Other
Requires: %{libname} = %{version}-%{release}
Provides: lib%name-devel = %{version}-%{release}
Provides: %name-devel = %{version}-%{release} 

%description -n %libname-devel
The design goal of fidoconfig was to provide one config-file for several
different fido software packages like editor, tosser etc.
An additional aim was to have one library (fidoconfig) which can be used by
all programs.
The advantage is you only have to edit one config-file, so changing your
system is much easier than with common software packages. Also bugs can only
creep in one library and not in thousands over thousands libraries.

This Package contains the Development Files. Only needed if you want to
compile the Husky-Programs yourself

%prep
%setup -q -n %name
#% patch0 -p1
#% patch1 -p1
#% patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1 -b .huskymak
%patch8 -p1 -b .printf

%build
MANDIR=%{buildroot}%{_mandir} BINDIR=%{buildroot}%{_bindir} INCDIR=%{buildroot}%{_includedir} LIBDIR=%{buildroot}%{_libdir} INFODIR=%{buildroot}%{_infodir}
%make OPTCFLAGS=" -s -c -fPIC %{optflags}"

%install
make BINDIR=%{buildroot}%{_bindir} INCDIR=%{buildroot}%{_includedir} LIBDIR=%{buildroot}%{_libdir} INFODIR=%{buildroot}%{_infodir} install
rm -rf %{buildroot}%{_infodir}/dir
make MANDIR=%{buildroot}%{_mandir} install-man

chmod 755 %{buildroot}%{_bindir}/*
chmod 755 %{buildroot}%{_libdir}/*



%files
%doc COPYING ChangeLog HISTORY INSTALL README.TXT TODO VERSION fconf2dir fconf2fidogate.cfg.sample doc/config
%{_bindir}/*
%{_infodir}/fidoconfig.info*
%{_mandir}/*/*

%files -n %libname
%{_libdir}/libfidoconfig.so.*

%files -n %libname-devel
%{_libdir}/libfidoconfig.so
%dir %{_includedir}/fidoconf
%{_includedir}/fidoconf/*
%{_libdir}/libfidoconfig.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1450 |21cr|fife-0.4.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	soname 0
%define	libname %mklibname %{name} %{soname}
%define	devname %mklibname %{name} -d
%define	sdevname %mklibname %{name} -d -s

# fife.ppc: W: devel-file-in-non-devel-package /usr/lib/libfife.so <- just a symlink, shouldn't be in -devel. It's used by the client(s).

Summary:	Cross platform game creation framework
Name:		fife
Version:	0.4.2
Release:	5
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.fifengine.de
Source0:	https://github.com/fifengine/fifengine/archive/fifengine-%{version}.tar.gz
Patch0:		fife-0.4.2-fix-doxyfile.patch
# Drop unsupported swig options
Patch1:		fifengine-0.4.2-swig-options.patch
Patch2:		fife-headers.patch
BuildRequires:	chrpath
BuildRequires:	cmake >= 3.8
BuildRequires:	doxygen
BuildRequires:	git
BuildRequires:	graphviz
BuildRequires:	python3-yaml
BuildRequires:	swig
BuildRequires:	boost-devel
BuildRequires:	fifechan-devel
BuildRequires:	tinyxml-devel
BuildRequires:	pkgconfig(allegro)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(guichan-0.8)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(zlib)
Provides:	%{name}-python3 = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description
This package of Fife comes with game-engine only.
Unknown horizons is one of the clients that will use this engine.

%files
%doc AUTHORS CHANGELOG.md
%{py3_platsitedir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libs for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared libs for %{name}.

%files -n %{libname}
%doc LICENSE.md
%{_libdir}/lib%{name}.so.%{soname}
%{_libdir}/lib%{name}.so.%{version}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{sdevname}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%doc LICENSE.md
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}/

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Doxygen generated documentation for %{name}.

%files doc
%doc ./doc/doxygen/html/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n fifengine-%{version}

# Remove tests (because of legal issues)...
rm -rf tests/*
# ...and the useless build directory
rm -rf build/*

%build
%cmake \
	-Dbuild-library=ON \
	-DPYTHON_EXECUTABLE="%{_bindir}/python3"
make

# Generate devel docs
pushd ../doc/doxygen
	doxygen -u
	doxygen
	rm -f html/installdox
popd

%install
%makeinstall_std -C build

# Playing a little bit with the library soname
pushd %{buildroot}%{_libdir}
	ln -s lib%{name}.so.%{version} lib%{name}.so.%{soname}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1451 |21cr|fifechan-0.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %{version}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Portable C++ GUI library for games using Allegro, SDL and OpenGL
Name:		fifechan
Version:	0.1.5
Release:	4
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https//fifengine.github.io/fifechan/
Source0:	https://github.com/fifengine/fifechan/archive/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	irrlicht-devel
BuildRequires:	pkgconfig(allegro)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_ttf)

%description
Fifechan is a lightweight cross platform GUI library written in C++
specifically designed for games. It has a small yet powerful built in set
of extendable GUI Widgets allowing users to create virtually unlimited
types of widgets. Fifechan supports rendering in SDL, OpenGL, or Allegro
out of the box or it can be adapted to use any rendering engine the user
requires. Events are pushed to Fifechan which allows users to use any input
library they wish or they could use the built in input handling through
either SDL input or Allegro input.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%license LICENSE.md
%{_libdir}/lib%{name}*.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc AUTHORS CHANGELOG.md README.md
%{_includedir}/%{name}*
%{_libdir}/lib%{name}*.so

#-----------------------------------------------------------------------------

%prep
%setup -q

iconv -f ISO-8859-1 -t UTF-8 AUTHORS > AUTHORS.new
touch -r AUTHORS AUTHORS.new
mv AUTHORS.new AUTHORS

%build
%cmake	\
	-DBUILD_FIFECHAN_ALLEGRO_SHARED=ON	\
	-DBUILD_FIFECHAN_IRRLICHT_SHARED=ON	\
	-DENABLE_ALLEGRO=ON	\
	-DENABLE_IRRLICHT=ON	\
	-DENABLE_SDL_CONTRIB=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1452 |21cr|figlet-2.2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _fontdir %{_datadir}/%{name}

Name: figlet
Epoch: 1
Version: 2.2.5
Release: 4
Summary: A program for making large letters out of ordinary text
URL: http://www.figlet.org/
Group: Toys
License: BSD
Source: ftp://ftp.figlet.org:21/pub/figlet/program/unix/%{name}-%{version}.tar.gz
BuildRequires: zip

%description
FIGlet is a program that creates large characters out of ordinary
screen characters
 _ _ _          _   _     _
| (_) | _____  | |_| |__ (_)___
| | | |/ / _ \ | __| '_ \| / __|
| | |   <  __/ | |_| | | | \__ \_
|_|_|_|\_\___|  \__|_| |_|_|___(_)

(This is meant to be viewed in a monospaced font.)  FIGlet can create
characters in many different styles and can kern and "smush" these
characters together in various ways.

%prep
%setup -q

%build
%make \
  CFLAGS="%{optflags}" \
  BINDIR=%{_bindir} \
  MANDIR=%{_mandir} \
  DEFAULTFONTDIR=%{_fontdir}

%install
rm -rf %{buildroot}

# Compress fonts
(cd fonts;
chmod 644 *;
for i in *; do
  zip -m $i.zip $i
  mv $i.zip $i
done)

make install \
  BINDIR=%{_bindir} \
  MANDIR=%{_mandir} \
  DEFAULTFONTDIR=%{_fontdir} \
  DESTDIR=%{buildroot}
./run-tests.sh %{buildroot}%{_fontdir}

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc FAQ CHANGES LICENSE README figfont.txt
%attr(755,-,-) %{_bindir}/figlet
%attr(755,-,-) %{_bindir}/chkfont
%attr(755,-,-) %{_bindir}/figlist
%attr(755,-,-) %{_bindir}/showfigfonts
%{_mandir}/man6/figlet.6*
%{_mandir}/man6/chkfont.6*
%{_mandir}/man6/figlist.6*
%{_mandir}/man6/showfigfonts.6*
%dir %{_fontdir}
%{_fontdir}/*.fl[fc]

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1453 |21cr|figlet-more-fonts-20040514-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Program for making large letters out of ordinary text 
Name: figlet-more-fonts
Version: 20040514
Release: 13
Source0: contributed.tar.bz2
Source2: international.tar.gz
Source3: ms-dos.tar.bz2
License: Artistic
Group: Toys
Url: http://ianchai.50megs.com/figlet.html
BuildArch: noarch
Requires: figlet

%description
FIGlet is a program for making large letters out 
of ordinary text.

This package allready include lot of fonts.

%prep
%setup -q -n %name%version -c 0 
%setup -q -T -D -n %name%version -a 2 
%setup -q -T -D -n %name%version -a 3 

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%_datadir/figlet

(#SOURCE2
cd contributed

# Conflict with figlet itself
find . -name banner.flf -exec rm -f {} \;

cp -af *.fl? $RPM_BUILD_ROOT%_datadir/figlet
tar xzf Obanner.tgz
cp -af Obanner/*.fl? $RPM_BUILD_ROOT%_datadir/figlet
tar xzf Obanner-canon.tgz
cp -af Obanner-canon/*.fl? $RPM_BUILD_ROOT%_datadir/figlet
cp -af bdffonts/*.fl? $RPM_BUILD_ROOT%_datadir/figlet
cp -af C64-fonts/*.fl? $RPM_BUILD_ROOT%_datadir/figlet
)

ls contributed/*.fl? | sed 's!^.*/!%_datadir/figlet/!' >> files.list
ls contributed/Obanner/*.fl? | sed 's!^.*/!%_datadir/figlet/!' >> files.list
ls contributed/Obanner-canon/*.fl? | sed 's!^.*/!%_datadir/figlet/!' >> files.list
ls contributed/bdffonts/*.fl? | sed 's!^.*/!%_datadir/figlet/!' >> files.list
ls contributed/C64-fonts/*.fl? | sed 's!^.*/!%_datadir/figlet/!' >> files.list
(#SOURCE3
cd international
tar xzf cjkfonts.tar.gz
cp -af *.fl? $RPM_BUILD_ROOT%_datadir/figlet
)

ls international/*.fl? | sed 's!^.*/!%_datadir/figlet/!' >> files.list

(#SOURCE4
cd ms-dos
cp -af *.fl? $RPM_BUILD_ROOT%_datadir/figlet
)

ls ms-dos/*.fl? | sed 's!^.*/!%_datadir/figlet/!' >> files.list

chmod 644 $RPM_BUILD_ROOT%_datadir/figlet/*

cat files.list | sort | uniq >> files.list.uniq

%clean
rm -rf $RPM_BUILD_ROOT

%files -f files.list.uniq
%defattr(-,root,root)
%doc contributed/Obanner.README international/cjkfonts.readme  

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1454 |21cr|file2divx3pass-2.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		file2divx3pass
Version:	2.3
Release:	6
Summary:	An easy to use frontend for mencoder
License:	GPL
Group:		Video
Url:		http://coding.wooyayhoopla.be/file2divx3pass/
Source0:	http://coding.wooyayhoopla.be/file2divx3pass/sources/%{name}-%{version}.tar.gz
BuildRequires:	perl-devel
Requires:	mencoder
Provides:	perl(File2DiVX3Pass2::Helpers)
Provides:	perl(File2DiVX3Pass2::Signals)
Provides:	perl(File2DiVX3Pass2::Interface)
BuildArch:	noarch

%description
file2divx3pass is a simple frontend to mencoder for converting any 
media-file to Divx, with features such as an automatic video bitrate
calculator, an automatic bits per pixel calculator, and 1-pass, 2-pass,
and 3-pass Divx encoding. It can encode any media file supported by
mencoder, such as MPEG-1, MPEG-2, ASF, WMV, and even RM (buggy) and
CUE/BIN. file2divx3pass is also equipped with batch encoding.

This package is in restricted because it depends on other software from
restricted.

%prep
%setup -q
chmod 644 README

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%__mkdir_p %{buildroot}%{_datadir}/applications
%__cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=File2DiVX3Pass
Comment=An easy to use mencoder frontend
Exec=%{_bindir}/%{name}
Icon=multimedia_section
Terminal=false
Type=Application
Categories=AudioVideo;Video;AudioVideoEditing;GTK;
EOF

( cd %{buildroot}%{_bindir}
%__ln_s %{name}2 %{name}
)

%files
%doc README
%{_bindir}/%{name}*
%{perl_vendorlib}/*
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1455 |21cr|filerunner-13.4.18.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	FileRunner

Summary:	A simple file manager with built-in FTP support
Name:		filerunner
Version:	13.4.18.11
Release:	4
License:	GPLv3+
Group:		File tools
URL:		http://sourceforge.net/projects/filerunner/
Source0:	http://netcologne.dl.sourceforge.net/project/filerunner/Release-13.4.18.11/fr-13.4.18.11.tar.gz
BuildArch:	noarch
BuildRequires:	imagemagick
BuildRequires:	tcl-devel
Requires:	tcl
Requires:	tk
Recommends:	expect
Recommends:	openssh-clients


Provides:	%{oname} = %{version}-%{release}
Obsoletes:	%{oname} <= 2.5.1


%description
FileRunner is a file manager for Unix. It is simple and efficient and has
a built-in FTP client. New and improved from a FileRunner of long ago.

%prep
%setup -q -c %{name}-%{version}
cd %{name}
# http://qa.mandriva.com/show_bug.cgi?id=22193
find -type f | xargs perl -pi -e "s|\\\$glob\(doclib_fr\)|%{_docdir}/%{name}|g"

%build
#nothing

%install
mkdir -p %{buildroot}%{tcl_sitelib}/%{oname}/bitmaps
mkdir -p %{buildroot}%{_bindir}
cd %{name}
cp -a bitmaps/* %{buildroot}%{tcl_sitelib}/%{oname}/bitmaps
cp -a *.tcl %{buildroot}%{tcl_sitelib}/%{oname}
cp -a icon.xpm %{buildroot}%{tcl_sitelib}/%{oname}
cp -a tclIndex %{buildroot}%{tcl_sitelib}/%{oname}

install -m755 fr %{buildroot}%{tcl_sitelib}/%{oname}/fr
install -m755 frftp %{buildroot}%{tcl_sitelib}/%{oname}/frftp

ln -s %{tcl_sitelib}/%{oname}/fr %{buildroot}%{_bindir}/fr
ln -s %{_docdir}/%{name}/HISTORY %{buildroot}%{tcl_sitelib}/%{oname}/HISTORY

# Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps

convert icon.xpm -resize 16x16  %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert icon.xpm -resize 32x32  %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert icon.xpm -resize 48x48  %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=fr
Icon=%{name}
Terminal=false
Type=Application
Categories=Network;FileTransfer;
EOF

find %{buildroot}%{_datadir}/tcl8.6/FileRunner/bitmaps -name '*.bit' -exec chmod -x {} \;
chmod +x %{buildroot}%{_datadir}/tcl8.6/FileRunner/bitmaps/bitmapeditor
chmod 0755 %{buildroot}%{_datadir}/tcl8.6/FileRunner/frcolor.tcl



%files
%doc %{name}/COPYING %{name}/FAQ %{name}/HISTORY %{name}/README %{name}/*.txt
%{tcl_sitelib}/%{oname}
%{_bindir}/fr
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1456 |21cr|fileschanged-0.6.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Reports when files have been altered
Name:		fileschanged
Version:	0.6.5
Release:	9
License:	GPLv2+
Group:		File tools
Url:		http://fileschanged.sourceforge.net
Source0:	http://mesh.dl.sourceforge.net/sourceforge/fileschanged/%{name}-%{version}.tar.bz2
BuildRequires:	help2man
BuildRequires:	texinfo
BuildRequires:	pkgconfig(gamin)
Requires:	gamin

%description
This software is a client to the FAM (File Alteration Monitor) server.
Here's how the fileschanged FAM client works: 
you give it some filenames on the command line, it monitors those for changes.
When it discovers that a file has changed (or has been altered),
it displays the filename on the standard-output.

%files -f %{name}.lang
%doc README
%{_bindir}/fileschanged
%{_datadir}/fileschanged
%{_mandir}/man1/*
%{_datadir}/info/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
sed -i 's/-Werror//' src/Makefile.*
%configure
make

%install
%makeinstall_std
rm -f %{buildroot}%{_datadir}/%{name}/NEWS

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1457 |21cr|fillets-ng-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fillets
%define _appdatadir %{_datadir}/appdata

Summary:	Fish Fillets NG
Name:		fillets-ng
Version:	1.0.1
Release:	7
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://fillets.sourceforge.net/
Source0:	http://downloads.sf.net/%{oname}/%{name}-%{version}.tar.gz
Source3:	%{name}-48.png
Source4:	%{name}-32.png
Source5:	%{name}-16.png
Source6:	%{oname}.appdata.xml
Patch0:		https://sourceforge.net/p/fillets/bugs/7/attachment/fillets-ng-lua-5.2.patch
Requires:	%{name}-data >= %{version}
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)


%description
Fish Fillets NG is strictly a puzzle game. The goal in every of the seventy
levels is always the same: find a safe way out. The fish utter witty remarks
about their surroundings, the various inhabitants of their underwater realm
quarrel among themselves or comment on the efforts of your fish. The whole
game is accompanied by quiet, comforting music.

%files
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_gamesbindir}/fillets
%{_mandir}/man6/*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/%{oname}.appdata.xml
#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .lua-52

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}/%{name}
%make

%install
%makeinstall_std

# Menu entry
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Fish Fillets NG
Comment=Fish Fillets NG puzzle game
Exec= %{_gamesbindir}/fillets
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

# Icon installation
install -D -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 644 %{SOURCE4} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE5} %{buildroot}%{_miconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/appdata
cp -pr %{SOURCE6} %{buildroot}%{_appdatadir}/%{oname}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1458 |21cr|fillets-ng-data-1.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		mainname fillets-ng

Summary:	Data files for the Fish Fillets NG game
Name:		fillets-ng-data
Version:	1.0.1
Release:	3
License:	GPLv2+
Group:		Games/Puzzles
URL:		http://fillets.sourceforge.net/
Source0:	http://downloads.sourceforge.net/fillets/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		https://sourceforge.net/p/fillets/bugs/7/attachment/fillets_data-lua-5.2.patch
#Game depends by data, and data depends by game, dump the circular here.Sflo
Recommends:	%{mainname}
Provides:	fillets-ng-data-cs = %{EVRD}
Obsoletes:	fillets-ng-data-cs < %{EVRD}
BuildArch:	noarch

%description
Data files for the Fish Fillets NG game.
%files
%doc COPYING doc
%{_gamesdatadir}/%{mainname}
#------------------------------------------------------------
%prep
%setup -q
%patch0 -p0

%install
rm -rf %{buildroot}

install -m 755 -d %{buildroot}%{_gamesdatadir}/%{mainname}
cp -a font images music script sound %{buildroot}%{_gamesdatadir}/%{mainname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1459 |21cr|filter_audio-0.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname filteraudio %{major}
%define devname %mklibname filteraudio -d

%define Werror_cflags %{nil}
%define debug_package %{nil}

Summary:	An easy to use audio filtering library made from webrtc code
Name:		filter_audio
Version:	0.0.1
Release:	2
Group:		Sound
License:	GPLv3
Url:		https://github.com/irungentoo/filter_audio
Source0:	https://github.com/irungentoo/filter_audio/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

%description
An easy to use audio filtering library made from webrtc code.

#-----------------------------------------------------------

%package -n %{libname}
Summary:	%{summary}
Group:		System/Libraries

%description -n %{libname}
%{summary}

%files -n %{libname}
%doc README
%{_libdir}/libfilteraudio.so.%{major}*

#-----------------------------------------------------------

%package -n %{devname}
Summary:	%{summary}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for filter_audio.

%files -n %{devname}
%doc README
%{_libdir}/pkgconfig/filteraudio.pc
%{_libdir}/*so
%{_libdir}/*a
%{_includedir}/*

#-----------------------------------------------------------

%prep
%setup -q

%build
%make

%install
%makeinstall_std PREFIX=/usr LIBDIR=%{_lib}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1460 |21cr|filters-2.55-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A collection of text filters, including the Swedish Chef
Name:		filters
Version:	2.55
Release:	3
License:	GPL
Group:		Toys
URL:		http://kitenet.net/~joey/code/filters.html
# author distributes tarball only from debian pool
Source:		http://ftp.debian.org/debian/pool/main/f/filters/filters_%{version}.orig.tar.gz
BuildRequires:	byacc
BuildRequires:	flex

%description
A collection of filters to do all sorts of strange things to text.
This includes such favorites as B1FF and the Swedish Chef, and a
wide range of others.

%prep
%setup -q -n %{name}

sed -r -i '/\s+g*cc/s,g*cc,\$(CC),' *.dir/makefile

%build
export CC="%__cc %{optflags}"
%make

%install
%makeinstall_std

%files
%defattr(0644,root,root,0755)
%doc README
%attr(0755,root,root) %{_gamesbindir}/*
%{_mandir}/man6/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1461 |21cr|findbugs-bcel-5.2-1.3.8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This is a version of BCEL that has been modified by the findbugs team.  They
# added some new functionality and also did some performance optimizations of
# the base code.  I am not producing a new manual, since we already have a
# bcel-manual package and the findbugs team did not patch the manual.  However,
# the javadoc package is necessary to show the changes in the API created by
# the findbug team's work.

%global findbugsver 1.3.8

Name:           findbugs-bcel
Version:        5.2
Release:        %{findbugsver}.1
Summary:        Byte Code Engineering Library with findbugs extensions

Group:          Development/Java
License:        ASL 2.0
URL:            http://commons.apache.org/proper/commons-bcel/
Source0:        http://archive.apache.org/dist/commons/bcel/source/bcel-%{version}-src.tar.gz
# This patch is available in the findbugs release, in src/patches/bcel.diff.
Source1:        bcel.diff

BuildRequires:  java-devel, jpackage-utils
Requires:       java, jpackage-utils

BuildArch:      noarch

%description
This is a version of Apache's Byte Code Engineering Library (BCEL) that has
been modified by the findbugs developers.  The modifications add some new
functionality, and also introduce a number of performance optimizations to
address findbugs performance problems.  Some of the performance optimizations
induce API changes, so this version of BCEL is not compatible with the vanilla
upstream version.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
Requires:       jpackage-utils

%description javadoc
%{summary}.

%prep
%setup -q -n bcel-%{version}
%{__patch} -p7 -s < %{SOURCE1}

%build
# The ant and maven builds both try to download unneeded jars
mkdir classes
find src/java -type f -name '*.java' | \
xargs javac -g -d classes -source 1.5 -encoding ISO8859-1
cd classes
jar cf findbugs-bcel-%{findbugsver}.jar org
cd ..

mkdir javadoc
find src/java -type f -name '*.java' | xargs javadoc -Xdoclint:none -sourcepath src/java \
  -classpath classes -source 1.5 -encoding ISO8859-1 -d javadoc 

%install

mkdir -p %{buildroot}%{_javadir}
cp -p classes/findbugs-bcel-%{findbugsver}.jar %{buildroot}%{_javadir}
ln -s findbugs-bcel-%{findbugsver}.jar %{buildroot}%{_javadir}/findbugs-bcel.jar

mkdir -p %{buildroot}%{_javadocdir}
cp -a javadoc %{buildroot}%{_javadocdir}/findbugs-bcel-%{findbugsver}
ln -s findbugs-bcel-%{findbugsver} %{buildroot}%{_javadocdir}/findbugs-bcel

%files
%doc LICENSE.txt NOTICE.txt README.txt
%{_javadir}/findbugs-bcel*

%files javadoc
%doc LICENSE.txt NOTICE.txt
%{_javadocdir}/findbugs-bcel*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1462 |21cr|fingerpaint-1.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name %{name}

Summary:	Lets you draw using your laptop's touchpad on Linux
Name:		fingerpaint
Version:	1.2.6
Release:	1
License:	GPLv2
Group:		Development/Python
Url:		https://github.com/Wazzaps/fingerpaint
Source0:	%pypi_source
BuildRequires:	pyproject-rpm-macros
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%generate_buildrequires
%pyproject_buildrequires -r

%description
This utility lets you draw using your laptop's touchpad on Linux.

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{name}
This utility lets you draw using your laptop's touchpad on Linux.

%files -n python3-%{name}
%doc README*
%license LICENSE
%{_bindir}/%{name}
%{python3_sitelib}/%{name}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%pyproject_wheel

%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1463 |21cr|fireflies-2.07-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Colourful OpenGL screensaver
Name:		fireflies
Version:	2.07
Release:	17
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://somewhere.fscked.org/fireflies/
Source0:	http://somewhere.fscked.org/fireflies/%{name}-%{version}.tar.bz2
Patch0:		fireflies-2.07-gcc4.3.patch
Patch1:		libgfx-fltk-header.patch
Patch2:		fireflies-2.07-missing-header.patch
Patch3:		fireflies-2.07-libgfx-libpng15.patch
Patch4:		fireflies-2.07-libgfx-libpng16.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
Requires:	xscreensaver

%description
Fireflies is an OpenGL screensaver for Linux (using xscreensaver) and
Windows. It also works as a standalone program, which allows you to
move and rotate the camera. Swarms of bugs fly around the screen
leaving colorful translucent trails that get blown around by the wind.

%files
%doc README ChangeLog
%{_libexecdir}/xscreensaver/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
tar xzf libgfx*
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p0
%patch4 -p0

%build
cd libgfx
%configure
cd src
%make
cd ../..
%configure
%make OPT_LIBS=-lX11

%install
install -D -m 755 src/%{name} %{buildroot}%{_libexecdir}/xscreensaver/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1464 |21cr|firefly-1.1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Multi-user professional help desk system
Name: firefly
Version: 1.1.1
Release: 10
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Communications
URL: http://somwhere.com
Requires: mod_php, php-gd, php-pgsql, postgresql, postgresql-server
Buildarch: noarch

%description
Firefly is a multi-user professional help desk system with several additional
applications including company and contact management, knowledge database 
management, and contracts management. 
Firefly is also an application framework providing services such as
user authentication, profile management, and database abstraction.
It is designed on PHP3, postgreSQL, and Apache.

Any new module profits firefly's user authentification and framework services.
A library of generic functions and a unified structure of the folders
make it possible to develop ew modules easily.

%prep
%setup -q

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/var/www/html/firefly
cp -avf images include modules templates *.php *.gif *.css $RPM_BUILD_ROOT/var/www/html/firefly

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README README-FR CREDITS doc_* DocUser.txt INSTALL LICENSE INSTALL-FR GPL GPL-FR dumps/*
/var/www/html/firefly

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1465 |21cr|firefox-ext-adblock-plus-2.5.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%{nil}

Summary:	Ad-blocking extension for firefox
Name:		firefox-ext-adblock-plus
Version:	2.5.1
Release:	4
License:	MPL
Group:		Networking/WWW
URL:		https://addons.mozilla.org/en-US/firefox/addon/1865
Source0:	http://releases.mozilla.org/pub/mozilla.org/addons/1865/adblock_plus-%{version}-sm+tb+an+fx.xpi
BuildRequires:	firefox-devel
Requires:	firefox >= %{firefox_version}
BuildArch:	noarch

%description
Ever been annoyed by all those ads and banners on the Internet that often take
longer to download than everything else on the page? Install Adblock Plus now
and get rid of them. 


%prep
%setup -qcn %{name}-%{version}


%build
# Precompiled Java archive: nothing to do


%install
mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
if [ -z "$hash" ]; then
    hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
fi
if [ -z "$hash" ]; then
    echo "Failed to find plugin hash."
    exit 1
fi
extdir="%{firefox_extdir}/"
mkdir -p "%{buildroot}$extdir"
cp -af %SOURCE0 "%{buildroot}$extdir/$hash.xpi"


%files
%{firefox_extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1466 |21cr|firefox-ext-bugzilla-tweaks-1.12.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bugzilla extension for firefox
Name:		firefox-ext-bugzilla-tweaks
Version:	1.12.1.1
Release:	4
License:	MPL
Group:		Networking/WWW
URL:		https://addons.mozilla.org/en-US/firefox/addon/187588/
Source0:	https://addons.mozilla.org/firefox/downloads/latest/187588/bugzilla_tweaks-%{version}-fx.xpi
BuildRequires:	firefox-devel
Requires:	firefox >= %{firefox_version}
BuildArch:	noarch

%description
This extension modifies the pages loaded from bugzilla.mozilla.org and adds
features including:
- Interleaving the bug's change history with the comments on the same page
- Showing the last time that a bug or attachment flag was changed
- Proving user name autocompletion support
- And many more...


%prep
%setup -qcn %{name}-%{version}


%build
# Precompiled Java archive: nothing to do


%install
mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
if [ -z "$hash" ]; then
    hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
fi
if [ -z "$hash" ]; then
    echo "Failed to find plugin hash."
    exit 1
fi
extdir="%{firefox_extdir}/$hash"
mkdir -p "%{buildroot}$extdir"
cp -af * "%{buildroot}$extdir/"


%files
%{firefox_extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1467 |21cr|firefox-ext-download-statusbar-0.9.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Download Statusbar extension for firefox
Name: firefox-ext-download-statusbar
Version: 0.9.8
Release: 5
License: MPL
Group:	Networking/WWW
URL:	https://addons.mozilla.org/en_US/firefox/addon/26/
Source: http://releases.mozilla.org/pub/mozilla.org/addons/26/download_statusbar-%{version}-fx.xpi
Requires: firefox >= %{firefox_version}
Obsoletes: %{name} < %{version}
BuildRequires: firefox-devel
Buildarch: noarch

%description
Despite its compact size, Download Statusbar packs in more useful features than
the standard download window. The fully customizable interface auto-hides when
not in use, allowing full control without interruption. 

%prep
%setup -q -c -n %{name}-%{version}

%install
mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
if [ -z "$hash" ]; then
    hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
fi
if [ -z "$hash" ]; then
    echo "Failed to find plugin hash."
    exit 1
fi
extdir="%{firefox_extdir}/$hash"
mkdir -p "%{buildroot}$extdir"
# (tv) xpi packaging doesn't work with that extension (UI issues):
#cp -af %SOURCE0 "%{buildroot}$extdir/$hash.xpi"
#zip -9 "%{buildroot}$extdir/$hash.xpi" *
cp -af * "%{buildroot}$extdir/"

%files
%defattr(0644,root,root,0755)
%{firefox_extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1468 |21cr|firefox-ext-downthemall-2.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname downthemall

%define rel 2

Summary: DownThemAll! extension for firefox
Name: firefox-ext-%{realname}
Version: 2.0.3
Release: %rel
License: MPL1.1 or GPLv2+ or LGPLv2+
Group: Networking/WWW
URL: http://www.downthemall.net
Source: http://code.downthemall.net/releases/%{realname}-%{version}.xpi
Buildarch: noarch
Requires: firefox >= %{firefox_version}
Obsoletes: mozilla-firefox-ext-%{realname} < %{version}-%{release}
Provides: mozilla-firefox-ext-%{realname} = %{version}-%{release}
BuildRequires: firefox-devel
Obsoletes: %{name} < %{version}-%{release}

%description
DownThemAll (or just dTa) is a powerful yet easy-to-use Mozilla Firefox
extension that adds new advanced download capabilities to your browser.

DownThemAll lets you download all the links or images contained in a
webpage and much more: you can refine your downloads by fully
customizable criteria to get only what you really want.

%prep
%setup -q -c -n %{name}-%{version}

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*id="\(.*\)"/{s//\1/p;q}' install.rdf)"
if [ -z "$hash" ]; then
    hash="$(sed -n '/.*id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
fi
if [ -z "$hash" ]; then
    echo "Failed to find plugin hash."
    exit 1
fi
extdir="%{firefox_extdir}/$hash"
mkdir -p "%{buildroot}$extdir"
cp -af * "%{buildroot}$extdir/"

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%{firefox_extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1469 |21cr|firefox-ext-flashgot-1.2.9.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Flashgot extension for firefox
Name: firefox-ext-flashgot
Version: 1.2.9.4
Release: 5
License: GPLv2+
Group: Networking/WWW
URL: http://flashgot.net
Source: https://secure.informaction.com/download/releases/flashgot-%{version}.xpi
Requires: firefox >= %{firefox_version}
Obsoletes: mozilla-firefox-ext-flashgot < %{version}-%{release}
Obsoletes: %{name} < %{version}-%{release}
BuildArch: noarch
Recommends: kget curl gwget
BuildRequires: firefox-devel

%description
FlashGot is the free Mozilla / Firefox / Flock / Thunderbird extension
(compatible with Netscape too), meant to handle single and massive ("all"
and "selection") downloads with several external Download Managers.

%prep
%setup -q -c -n %{name}-%{version}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
if [ -z "$hash" ]; then
    hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
fi
if [ -z "$hash" ]; then
    echo "Failed to find plugin hash."
    exit 1
fi
extdir="%{firefox_extdir}/$hash"
mkdir -p "%{buildroot}$extdir"
cp -af * "%{buildroot}$extdir/"

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%{firefox_extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1470 |21cr|firefox-ext-greasemonkey-1.15-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Greasemonkey extension for firefox
Name:		firefox-ext-greasemonkey
Version:	1.15
Release:	4
License:	MIT
Group:		Networking/WWW
URL:		https://addons.mozilla.org/en-US/firefox/addon/748
Source0:	https://addons.mozilla.org/firefox/downloads/latest/748/greasemonkey-%{version}-fx.xpi
BuildRequires:	firefox-devel
Requires:	firefox >= %{firefox_version}
BuildArch:	noarch

%description
Allows you to customize the way a webpage displays using small bits of
JavaScript.  Hundreds of scripts, for a wide variety of popular sites, are
already available at http://userscripts.org.  You can write your own scripts,
too. Check out http://wiki.greasespot.net/ to get started.


%prep
%setup -qcn %{name}-%{version}


%build
# Precompiled Java archive: nothing to do


%install

mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
if [ -z "$hash" ]; then
    hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
fi
if [ -z "$hash" ]; then
    echo "Failed to find plugin hash."
    exit 1
fi
extdir="%{firefox_extdir}/"
mkdir -p "%{buildroot}$extdir"
cp -af %SOURCE0 "%{buildroot}$extdir/$hash.xpi"


%files
%{firefox_extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1471 |21cr|firefox-ext-jumpstart-0.5a5.4.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname new_tab_jumpstart

Summary:	New Tab JumpStart for firefox
Name:		firefox-ext-jumpstart
Version:	0.5a5.4.3
Release:	6
License:	MPL
Group:		Networking/WWW
URL:		https://addons.mozilla.org/en-US/firefox/addon/8914
Source:		http://releases.mozilla.org/pub/mozilla.org/addons/8914/%{srcname}-%{version}-fx.xpi
Requires:	firefox >= %{firefox_version}
Obsoletes:	%{name} < %{version}-%{release}
BuildArch:	noarch
BuildRequires:	firefox-devel

%description
When you open a new tab get immediate access to your most frequently
used sites, bookmarks, closed tabs, history search.
Similar to Google's Chrome new tab feature.

%prep
%setup -q -c -n %{name}-%{version}

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
if [ -z "$hash" ]; then
    hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
fi
if [ -z "$hash" ]; then
    echo "Failed to find plugin hash."
    exit 1
fi

extdir="%{firefox_extdir}/$hash"
mkdir -p "%{buildroot}$extdir"
cp -af * "%{buildroot}$extdir/"

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%{firefox_extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1472 |21cr|firefox-ext-noscript-2.6.8.19-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Firefox extension that protects against XSS and Clickjacking attacks
Name:		firefox-ext-noscript
Version:	2.6.8.19
Release:	4
License:	MPL
Group:		Networking/WWW
URL:		https://addons.mozilla.org/en-US/firefox/addon/722/
Source0:	https://addons.mozilla.org/firefox/downloads/latest/722/noscript_security_suite-%{version}-fn+sm+fx.xpi
BuildRequires:	firefox-devel
Requires:	firefox >= %{firefox_version}
BuildArch:	noarch

%description
The best security you can get in a web browser! Allow active content to run
only from sites you trust, and protect yourself against XSS and Clickjacking
attacks.
Winner of the "2006 PC World World Class Award", this tool provides extra
protection to your Firefox. It allows JavaScript, Java and other executable
content to run only from trusted domains of your choice, e.g. your
home-banking web site, guarding your "trust boundaries" against cross-site
scripting attacks (XSS), cross-zone DNS rebinding / CSRF attacks
(router hacking), and Clickjacking attempts, thanks to its unique ClearClick
technology.
Such a preemptive approach prevents exploitation of security vulnerabilities
(known and even unknown!) with no loss of functionality... 
Experts do agree: Firefox is really safer with NoScript ;-)


%prep
%setup -qcn %{name}-%{version}


%build
# Precompiled Java archive: nothing to do


%install
mkdir -p %{buildroot}%{firefox_extdir}

hash="$(sed -n '/.*em:id="\(.*\)"/{s//\1/p;q}' install.rdf)"
if [ -z "$hash" ]; then
    hash="$(sed -n '/.*em:id>\(.*\)<\/em:id>.*/{s//\1/p;q}' install.rdf)"
fi
if [ -z "$hash" ]; then
    echo "Failed to find plugin hash."
    exit 1
fi
extdir="%{firefox_extdir}/"
mkdir -p "%{buildroot}$extdir"
cp -af %SOURCE0 "%{buildroot}$extdir/$hash.xpi"


%files
%{firefox_extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1473 |21cr|firehol-3.1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		firehol
Version:	3.1.7
Release:	1
Summary:	An easy to use but powerfull iptables stateful firewall
License:	GPLv2
Group:		System/Configuration/Networking
Url:		http://firehol.org/
Source0:	https://github.com/firehol/firehol/releases/download/v%{version}/firehol-%{version}.tar.xz
Source1:	ftp_ssl.conf
Patch2:		firehol-sbin-alt-iptables.patch
BuildRequires:	%{_bindir}/flock
BuildRequires:	%{_bindir}/gunzip
BuildRequires:	%{_bindir}/less
BuildRequires:	%{_bindir}/renice
BuildRequires:	%{_bindir}/zcat
BuildRequires:	perl(Text::ParseWords)

BuildArch: noarch

%define iptools /sbin/insmod /sbin/modprobe iproute2-tc traceroute iptables ipset iprange iputils whois tcpdump
BuildRequires:	%{iptools}
Requires:	%{iptools}

%define tools which bash util-linux curl procps-ng udev jq unzip
BuildRequires:	%{tools}
Requires:	%{tools}

%description
FireHOL uses an extremely simple but powerfull way to define firewall
rules which it turns into complete stateful iptables firewalls.  FireHOL
is a generic firewall generator, meaning that you can design any kind of
local or routing stateful packet filtering firewalls with ease.

Install FireHOL if you want an easy way to configure stateful packet
filtering firewalls on Linux hosts and routers.

You can run FireHOL with the 'helpme' argument, to get a configuration
file for the system run, which you can modify according to your needs.

The default configuration file will allow only client traffic on all
interfaces.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# Hack for documentation without crufts.
rm -frv %{buildroot}%{_docdir}
find doc/ examples/ -name "Makefile*" -delete -print

# Install systemd units.
mkdir -p %{buildroot}%{_unitdir}
install -pm644 contrib/firehol.service contrib/fireqos.service %{buildroot}%{_unitdir}

# Install runtime directories.
mkdir -p %{buildroot}%{_sysconfdir}/firehol/services
mkdir -p %{buildroot}%{_var}/spool/firehol

# Ghost configurations.
touch %{buildroot}%{_sysconfdir}/firehol/firehol.conf \
%{buildroot}%{_sysconfdir}/firehol/fireqos.conf

%if 0
mkdir -p %{buildroot}%{_sysconfdir}/firehol/services
install -m 640 examples/client-all.conf %{buildroot}%{_sysconfdir}/firehol/firehol.conf
%endif

%post
if [ -f %{_sysconfdir}/firehol.conf -a ! -f %{_sysconfdir}/firehol/firehol.conf ]
then
	mv -f %{_sysconfdir}/firehol.conf %{_sysconfdir}/firehol/firehol.conf
	echo
	echo
	echo "FireHOL has now its configuration in %{_sysconfdir}/firehol/firehol.conf"
	echo "Your existing configuration has been moved to its new place."
	echo
fi

%files
%doc COPYING THANKS README ChangeLog contrib
%doc examples
%doc doc/*
%dir %{_sysconfdir}/firehol
%dir %{_sysconfdir}/firehol/services
%{_sysconfdir}/firehol/services/*
%{_sbindir}/*
%{_unitdir}/firehol.service
%{_unitdir}/fireqos.service
%{_mandir}/man1/*
%{_mandir}/man5/*
%config(noreplace) %{_sysconfdir}/firehol/firehol.conf
%config(noreplace) %{_sysconfdir}/firehol/fireqos.conf
%{_sysconfdir}/firehol/firehol.conf.example
%{_sysconfdir}/firehol/fireqos.conf.example
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/%{version}/
%{_datadir}/update-ipsets/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1474 |21cr|firejail-0.9.72-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux namepaces sandbox program
Name:		firejail
Version:	0.9.72
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://github.com/netblue30/firejail
Source0:	https://github.com/netblue30/firejail/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
# For linux/seccomp.h
BuildRequires:	kernel-headers
Recommends:	firetools

%description
Firejail is a SUID sandbox program that reduces the risk of security
breaches by restricting the running environment of untrusted applications
using Linux namespaces. It includes a sandbox profile for Mozilla Firefox.

%files
%doc README COPYING RELNOTES
%attr(4755,root,root) %{_bindir}/firejail
%{_bindir}/firemon
%{_bindir}/firecfg
%{_bindir}/jailcheck
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/fbuilder
%{_libdir}/%{name}/fcopy
%{_libdir}/%{name}/fids
%{_libdir}/%{name}/firejail-welcome.sh
%{_libdir}/%{name}/fix_private-bin.py
%{_libdir}/%{name}/fj-mkdeb.py
%{_libdir}/%{name}/fjclip.py
%{_libdir}/%{name}/fjdisplay.py
%{_libdir}/%{name}/fjresize.py
%{_libdir}/%{name}/fldd
%{_libdir}/%{name}/fnettrace
%{_libdir}/%{name}/fnettrace-dns
%{_libdir}/%{name}/fnettrace-icmp
%{_libdir}/%{name}/fnettrace-sni
%{_libdir}/%{name}/fnetfilter
%{_libdir}/%{name}/fnet
%{_libdir}/%{name}/fsec-optimize
%{_libdir}/%{name}/fsec-print
%{_libdir}/%{name}/fseccomp
%{_libdir}/%{name}/fshaper.sh
%{_libdir}/%{name}/ftee
%{_libdir}/%{name}/fzenity
%{_libdir}/%{name}/gdb-firejail.sh
%{_libdir}/%{name}/jail_prober.py
%{_libdir}/%{name}/libpostexecseccomp.so
%{_libdir}/%{name}/libtrace.so
%{_libdir}/%{name}/libtracelog.so
%{_libdir}/%{name}/profstats
%{_libdir}/%{name}/seccomp*
%{_libdir}/%{name}/sort.py
%{_libdir}/%{name}/static-ip-map
%{_libdir}/%{name}/syscalls.sh
%{_libdir}/%{name}/update_deb.sh
%if %{mdvver} > 201610
%{_libdir}/%{name}/__pycache__/
%endif
%{_datadir}/bash-completion/completions/firejail
%{_datadir}/bash-completion/completions/firemon
%{_datadir}/bash-completion/completions/firecfg
%{_datadir}/doc/%{name}/profile.template
%{_datadir}/doc/%{name}/redirect_alias-profile.template
%{_datadir}/doc/%{name}/syscalls.txt
%{_datadir}/gtksourceview-5/language-specs/%{name}-profile.lang
%{_datadir}/vim/vimfiles/ftdetect/firejail.vim
%{_datadir}/vim/vimfiles/syntax/firejail.vim
%{_datadir}/zsh/site-functions/_firejail
%{_mandir}/man1/firejail.1*
%{_mandir}/man1/firemon.1*
%{_mandir}/man1/firecfg.1*
%{_mandir}/man1/jailcheck.1*
%{_mandir}/man5/%{name}-login.5*
%{_mandir}/man5/%{name}-profile.5*
%{_mandir}/man5/%{name}-users.5*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
echo "// using default values" >> uids.h
echo "#define UID_MIN 1000" >> uids.h
echo "#define GID_MIN 1000" >> uids.h

%build
%configure \
    --enable-contrib-install
%make

%install
%makeinstall_std

#change permission for auto strip library
chmod 755 %{buildroot}%{_libdir}/%{name}/{libpostexecseccomp.so,libtrace.so,libtracelog.so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1475 |21cr|firetools-0.9.64-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Firejail user interface
Name:		firetools
Version:	0.9.64
Release:	3
License:	GPLv2+
Group:		Development/Tools
Url:		http://firejail.wordpress.com
Source0:	https://sourceforge.net/projects/firejail/files/firetools/%{name}-%{version}.tar.xz
Source1:	https://sourceforge.net/projects/firejail/files/firetools/%{name}-%{version}.tar.xz.asc
# Fix startup, otherwise quits with error
Patch0:		firetools-0.9.58-fix-startup.patch
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gl)
Requires:	firejail
Requires:	xterm

%description
Firetools is the graphical user interface of Firejail.

Firejail is a SUID sandbox program that reduces the risk of security breaches
by restricting the running environment of untrusted applications using Linux
namespaces, seccomp-bpf and Linux capabilities. It allows a process and all
its descendants to have their own private view of the globally shared kernel
resources, such as the network stack, process table, mount table. Firejail
can work in a SELinux or AppArmor environment, and it is integrated with Linux
Control Groups.

%files
%doc README* COPYING RELNOTES
%{_bindir}/%{name}
%{_bindir}/firejail-ui
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/firejail-ui.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}-minimal.png
%{_datadir}/pixmaps/firejail-ui.png
%{_mandir}/man1/*
%{_prefix}/lib/firetools/fmgr
%{_prefix}/lib/firetools/fstats
%{_prefix}/lib/firetools/uihelp
%{_prefix}/lib/firetools/uimenus

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -if
%configure \
	--with-qmake=%{_bindir}/qmake-qt5
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1476 |21cr|firmware-tools-2.1.15-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		firmware-tools
Version:	2.1.15
Release:	5
Summary:	Scripts and tools to manage firmware and BIOS updates
Group:		System/Kernel and hardware
License:	GPLv2+
URL:		http://linux.dell.com/libsmbios/download/ 
Source0:	http://linux.dell.com/libsmbios/download/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2
Patch0:		001-fix-lzma-not-supported.patch
BuildRequires:	python2-devel
# Dell only sells Intel-compat systems, so this package doesnt make much sense
# on, eg. PPC. Also, we rely on libsmbios, which is only avail on Intel-compat
ExclusiveArch:	x86_64 %{ix86}

%description
The firmware-tools project provides tools to inventory hardware and a plug-in
architecture so that different OEM vendors can provide different inventory
components. It is intended to tie to the package system to enable seamless
installation of updated firmware via your package manager, as well as provide
a framework for BIOS and firmware updates.


%prep
%autosetup -p1

find . -type f | xargs perl -pi -e 's|#!/usr/bin/python|#!/usr/bin/python2|'

%build
export PYTHON=%{__python2}
# Needed by Patch0
autoreconf -vfi
%configure
# There is nothing to build
#%%make


%install
%makeinstall_std
mkdir -p %{buildroot}/%{_sysconfdir}/firmware/firmware.d/
mkdir -p %{buildroot}/%{_datadir}/firmware


%files
%doc COPYING-GPL COPYING-OSL README
%{python2_sitelib}/*
%{_sbindir}/*
%{_datadir}/firmware-tools/
%dir %{_sysconfdir}/firmware
%dir %{_sysconfdir}/firmware/firmware.d
%config(noreplace) %{_sysconfdir}/firmware/firmware.conf
%{_datadir}/firmware/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1477 |21cr|fish-3.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname fish-shell

Summary:	A friendly interactive shell
Name:		fish
Version:	3.6.3
Release:	1
License:	GPLv2+
Group:		Shells
Url:		http://fishshell.co
Source0:	https://github.com/fish-shell/fish-shell/archive/refs/tags/%{version}.tar.gz#/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ncurses-devel
BuildRequires:	pkgconfig(libpcre2-posix)
# for some function in fish configfile, like max_width, etc
Requires:	bc
Requires(post,postun):	rpm-helper

%description
fish is a shell geared towards interactive use. It's features are
focused on user friendlieness and discoverability. The language syntax
is simple but incompatible with other shell languages.

%files -f %{name}.lang
%doc *.rst
%license COPYING
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pkgconfig/%{name}.pc
%config(noreplace) %{_prefix}/%{_sysconfdir}/%{name}/config.%{name}

%post
%{_datadir}/rpm-helper/add-shell %{name} $1 %{_bindir}/%{name}

%postun
%{_datadir}/rpm-helper/del-shell %{name} $1 %{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
# fix showing version, this file is included into release tarball
# (we use git)
echo %{version} > version

%build
%cmake \
       -DBUILD_SHARED_LIBS:BOOL=OFF
%make

%install
%makeinstall_std PREFIX=%{_prefix}
rm -rf %{buildroot}%{_defaultdocdir}
%find_lang %{name}

%check
# check runability and showing version
%{buildroot}%{_bindir}/fish --version | grep -q %{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1478 |21cr|fit-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#


%define section free

Summary:        Framework for Integrated Test
Name:           fit
Version:        1.1
Release:        4
Epoch:          0
License:        GPL
URL:            http://fit.c2.com/
Group:          Development/Java
Source0:        http://prdownloads.sourceforge.net/fit/fit-java-1.1.zip
Patch0:         fit-1.1-build_xml.patch
BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  java-rpmbuild >= 0:1.6
BuildRequires:  junit
BuildRequires:  locales-en
BuildArch:      noarch

%description
Great software requires collaboration and communication.
Fit is a tool for enhancing collaboration in software
development. It's an invaluable way to collaborate on
complicated problems--and get them right--early in development.
Fit allows customers, testers, and programmers to learn what
their software should do and what it does do. It automatically
compares customers' expectations to actual results. 

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
Requires(post):   /bin/rm,/bin/ln
Requires(postun): /bin/rm

%description javadoc
%{summary}.

%package manual
Summary:        Documents for %{name}
Group:          Development/Java

%description manual
%{summary}.

%prep
%setup -c -q -n %{name}-%{version}
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
%patch0 -p0 -b .sav
%{_bindir}/find . -name '*.css' -o -name '*.html' -o -name '*.txt' | \
  %{_bindir}/xargs -t %{__perl} -pi -e 's/\r$//g'
%{__perl} -pi -e 's/fork="true"/fork="false"/g' source/imp/java/build.xml

%build
export LC_ALL=en_US.ISO-8859-1
export CLASSPATH=$(build-classpath junit):`pwd`/source/imp/java/output/jars/fit.jar
export OPT_JAR_LIST="ant/ant-junit"
pushd source/imp/java
# XXX: %{ant} release fails with gcj so spec, examples, and test targets are disabled
# XXX: Permission (java.lang.RuntimePermission exitVM) was not granted.
# XXX: http://developer.classpath.org/pipermail/classpath-patches/2007-May/005469.html
%{ant} release
popd

%install
# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}

install -m 0644 source/imp/java/output/jars/%{name}.jar \
  $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -a source/imp/java/doc/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name}
rm -rf source/imp/java/doc/api

# manual
mkdir -p $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}
cp -a source/imp/java/doc/* $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}

%files
%defattr(0644,root,root,0755)
%doc license.txt
%{_javadir}/*.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1479 |21cr|fityk-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Non-linear curve fitting and data analysis
Name:		fityk
Version:	1.3.2
Release:	1
License:	GPLv2+
Group:		Sciences/Other
Url:		https://github.com/wojdyr/fityk
Source0:	https://github.com/wojdyr/fityk/releases/download/v%{version}/fityk-%{version}.tar.bz2
BuildRequires:	swig
BuildRequires:	boost-devel
BuildRequires:	readline-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	xylib-devel
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	desktop-file-utils
Requires:	gnuplot

%description
Fityk is nonlinear curve-fitting and data analysis software. It allows data
visualization, separation of overlapping peaks, and least squares fitting
using standard Levenberg-Marquardt algorithm, a genetic algorithm, or
Nelder-Mead simplex method. It only knows about common bell-shaped functions
(Gaussian, Loretzian, Pearson 7, Voigt, Pseudo-Voigt) and polynomials, but
more sophisticated formulae can be easily added if necessary. It also
enables background substracting, data calibration and task automation with a
simple script language. It is being developed to analyze powder diffraction
patterns, but it can be used to fit analytical functions to any kind of data.

%files
%doc README* NEWS
%{_bindir}/%{name}
%{_bindir}/c%{name}
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/*
%{_datadir}/mime/packages/*
%{_datadir}/appdata/fityk.appdata.xml
%{_datadir}/icons/hicolor/32x32/apps/fityk.png
%{_datadir}/icons/hicolor/scalable/apps/fityk.svg

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/fityk/*.h

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -std=c++14
autoreconf -fi
%configure \
	--disable-3rdparty \
	--disable-xyconvert
%make

%install
%makeinstall_std

desktop-file-install \
	--vendor="" \
	--remove-category="Education" \
	--add-category="X-MandrivaLinux-MoreApplications-Sciences-DataVisualization" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1480 |21cr|fizmo-0.8.5-2.c13c64.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit c13c64d54aa38f129640eabc2f7b59e09e5c039d
%define commit_short %(echo %{commit} | head -c6)

Summary:	A Z-Machine interpreter supporting unicode, sound, blorbfile and more
Name:		fizmo
Version:	0.8.5
Release:	2.%{commit_short}.1
License:	BSD
Group:		Games/Adventure
Url:		https://fizmo.spellbreaker.org
# git clone -b stable --recursive https://github.com/chrender/fizmo.git
# tar -zcf fizmo-%%{commit}.tar.gz fizmo
Source0:	%{name}-%{commit}.tar.gz
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(x11)

%description
Fizmo is a Z-Machine interpreter. That means it allows you to play interactive
fiction, also know as textadventures, which were implemented either by Infocom
or created using the Inform compiler. It is a console-based interpreter,
meaning that there is no graphical user interface, and works with all Z-machine
versions except version 6.

%files
%doc user-config-example.txt
%{_datadir}/%{name}/fonts/fira*/*
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-console
%{_gamesbindir}/%{name}-ncursesw
%{_gamesbindir}/%{name}-sdl2
%lang(de) %{_datadir}/%{name}/locales/de_DE/*
%lang(en_GB) %{_datadir}/%{name}/locales/en_GB/*
%lang(fr) %{_datadir}/%{name}/locales/fr_FR/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%configure --bindir=%{_gamesbindir}
%make

%install
%makeinstall_std

cd %{buildroot}%{_gamesbindir} && ln -s %{name}-ncursesw %{name} && cd -
cd %{buildroot}%{_mandir}/man6 && ln -s %{name}-ncursesw.6.xz %{name}.6.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1481 |21cr|flac123-0.0.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line program for playing FLAC audio files
Name:		flac123
Version:	0.0.12
Release:	5
License:	GPLv2+
Group:		Sound
URL:		http://flac-tools.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/flac-tools/flac123/%{name}-%{version}-release.tar.gz
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(popt)

%description
%{name} is a command-line program for playing FLAC audio files.

%files
%doc AUTHORS BUGS ChangeLog NEWS README*
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make CPPFLAGS=-DHAVE_INTTYPES_H

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1482 |21cr|flacon-11.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Audio file splitter and converter
Name:		flacon
Version:	11.3.0
Release:	1
Group:		Sound
License:	GPLv3+
Url:		https://flacon.github.io/
Source0:	https://github.com/flacon/flacon/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 3.16.0
BuildRequires:	desktop-file-utils
BuildRequires:	hicolor-icon-theme
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(uchardet)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(zlib)
Requires:	alac_decoder
Requires:	flac
Requires:	lame
Requires:	mp3gain
Requires:	opus-tools
Requires:	shntool
Requires:	ttaenc
Requires:	vorbis-tools
Requires:	vorbisgain
Requires:	wavpack
Suggests:	faac
Suggests:	mac

%description
Flacon extracts individual tracks from one big audio file containing the
entire album of music and saves them as separate audio files. To do this, it
uses information from the appropriate CUE file. Flacon also makes it possible
to conveniently revise or specify tags both for all tracks at once or for each
tag separately.

%files -f %{name}.lang
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/metainfo/*.metainfo.xml
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake -DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_C_FLAGS="%{optflags}" \
	-DCMAKE_CXX_FLAGS="%{optflags}"
%make


%install
%makeinstall_std -C build

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-Multimedia-Sound" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1483 |21cr|flamerobin-0.9.3.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical client for Firebird
Name:		flamerobin
Version:	0.9.3.12
Release:	2
License:	BSD style
Group:		Databases
Url:		http://www.flamerobin.org/
Source0:	https://github.com/mariuz/flamerobin/archive/%{version}/%{name}-%{version}.tar.gz
Patch1:		flamerobin-32bit-build.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	firebird-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(fbclient)

%description
FlameRobin is a database administration tool for Firebird DBMS based on wxgtk
toolkit.

%files
%doc docs
%{_mandir}/man1/flamerobin.1*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%make_install -C build

install -d %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert -size 16x16 ./res/fricon128.png %{buildroot}%{_miconsdir}/%{name}.png
convert -size 32x32 ./res/fricon128.png %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 ./res/fricon128.png %{buildroot}%{_liconsdir}/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1484 |21cr|flameshot-12.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Powerful yet simple to use screenshot software
Name:		flameshot
Version:	12.1.0
Release:	1
License:	GPLv3
Group:		Graphics
Url:			https://flameshot.org/
Source0:		https://github.com/flameshot-org/flameshot/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		0001-Disable-automatic-updates-checks-by-default.patch
BuildRequires:	cmake
BuildRequires:	git
BuildRequires:	qt5-linguist
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

##_Fix https://github.com/lupoDharkael/flameshot/issues/335_##
Requires:	%{_lib}qt5svg5

%description
Flameshot is a screenshot software, it's powerful yet simple to use for
GNU/Linux.

%files
%license LICENSE
%doc *.md
%{_bindir}/%{name}
%{_datadir}/applications/org.flameshot.Flameshot.desktop
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/dbus-1/interfaces/*.Flameshot.xml
%{_datadir}/dbus-1/services/*.Flameshot.service
%{_datadir}/%{name}
%{_mandir}/man1/flameshot.1*
%{_iconsdir}/hicolor/*/*/*.png
%{_iconsdir}/hicolor/*/*/*.svg
%{_datadir}/metainfo/org.%{name}.Flameshot.metainfo.xml
%{_datadir}/zsh/site-functions/_%{name}
%{_datadir}/fish/vendor_completions.d/flameshot.fish

#------------------------------------------------------------------

%prep
%autosetup -p1


%build
%cmake_qt5 -DCMAKE_BUILD_TYPE=Release
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1485 |21cr|flare-1.13.04-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dark fantasy single-player 2D action RPG using the FLARE engine
Name:		flare
Version:	1.13.04
Release:	2
Epoch:		1
License:	GPLv3+
Group:		Games/Adventure
Url:		https://flarerpg.org/
Source0:	https://github.com/flareteam/flare-engine/archive/v%{version}.tar.gz?/%{name}-engine-%{version}.tar.gz
Source1:	https://github.com/flareteam/flare-game/archive/v%{version}.tar.gz?/%{name}-game-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)

%description
Flare is a single-player 2D action RPG with fast-paced action and a dark
fantasy style using the Free Libre Action Roleplaying Engine (FLARE).
It is a simple game engine built to handle such kind of RPGs. Flare is
not a reimplementation of an existing game or engine. It is a tribute to and
exploration of the action RPG genre.

%files
%doc README.engine.md CREDITS.engine.txt ../%{name}-game-%{version}/{README,CREDITS.txt}
%{_appdatadir}/org.%{name}rpg.Flare.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man6/%{name}.6.xz

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-engine-%{version} -b1

%build
pushd ../%{name}-game-%{version}
%cmake
%make
popd

%cmake
%make

%install
%makeinstall_std -C build
%makeinstall_std -C ../%{name}-game-%{version}/build
sed -i -e 's/RolePlaying/AdventureGame/' -e '/TryExec/d' %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1486 |21cr|flashrom-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Utility which can be used to detect/read/write BIOS chips
Name:		flashrom
Version:	1.3.0
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://flashrom.org
Source0:	http://download.flashrom.org/releases/%{name}-v%{version}.tar.bz2
Patch0:     flashrom-v1.2-ftdi1-path.patch
BuildRequires:	dmidecode
BuildRequires:	glibc-static-devel
BuildRequires:	meson
BuildRequires:	pkgconfig(libftdi1)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libjaylink)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(zlib)
Requires:	dmidecode
Requires:	%{libname} = %{EVRD}
ExclusiveArch:	%{ix86} x86_64 aarch64

%description
Flashrom is a utility which can be used to detect BIOS chips (DIP, PLCC),
read their contents and write new contents on the chips ("flash the chip").

%files
%doc README
%license COPYING
%{_mandir}/man8/%{name}.*
%{_sbindir}/%{name}
%{_udevrulesdir}/60_%{name}.rules

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
Library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%{_includedir}/lib%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

sed -i 's!werror=true!werror=false!g' meson.build
sed -e 's/MODE="[0-9]*", GROUP="plugdev"/TAG+="uaccess"/g' util/flashrom_udev.rules -i

%build
%meson -Dtests=disabled
%meson_build

%install
%meson_install
mkdir -p %{buildroot}/%{_udevrulesdir}
install -D -p -m 0644 util/flashrom_udev.rules %{buildroot}/%{_udevrulesdir}/60_flashrom.rules
rm %{buildroot}/%{_libdir}/libflashrom.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1487 |21cr|flatzebra-0.1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 2
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	A Generic Game Engine library for 2D double-buffering animation
Name:		flatzebra
Version:	0.1.7
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://sarrazip.com/dev/burgerspace.html
Source0:	http://sarrazip.com/dev/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(zlib)

%description
Generic Game Engine library suitable for BurgerSpace, Afternoon Stalker
and Cosmosmash.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}flatzebra2 < 0.1.6-4
Obsoletes:	%{_lib}flatzebra2 < 0.1.6-4

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc AUTHORS COPYING README NEWS
%{_libdir}/libflatzebra-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%dir %{_includedir}/%{name}-%{api}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1488 |21cr|flaw-1.3.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	F.L.A.W. is a fighting game between magicians
Name:		flaw
Version:	1.3.2
Release:	7
License:	GPLv3+
Group:		Games/Arcade
Url:		http://flaw.sourceforge.net/index.php
Source0:	%{name}-%{version}.tar.gz
# Buffer is too small and sprintf causes segfault with buffer overflaw
Patch0:		flaw-1.3.2-buffer.patch
BuildRequires:	intltool
BuildRequires:	boost-devel
BuildRequires:	gettext-devel
BuildRequires:	SDL_image-devel
BuildRequires:	SDL_gfx-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:	pkgconfig(glib-2.0)
Requires:	fonts-ttf-freefont

%description
F.L.A.W. is a free top-down wizard fighting game that can be played by
up to 5 players. The goal of the game is to survive as long as possible
while more and more fireballs appear in the arena.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog INSTALL README
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_bindir}/*
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

touch NEWS

%build
autoreconf -fi
%configure \
	--with-fontpath=%{_datadir}/fonts/TTF/
%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1489 |21cr|flawfinder-2.0.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Examines C/C++ source code for security flaws
Name:		flawfinder
Version:	2.0.19
Release:	1
License:	GPL
Group:		Development/C
Url:		http://www.dwheeler.com/flawfinder/
Source0:	http://www.dwheeler.com/flawfinder/flawfinder-%{version}.tar.gz
Patch0:		flawfinder-2.0.19-python3.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
Flawfinder scans through C/C++ source code, identifying lines ("hits") with
potential security flaws. By default it reports hits sorted by severity, with
the riskiest lines first.

%files
%doc README.md
%{_bindir}/flawfinder
%{_mandir}/man1/flawfinder.1*
%{python3_sitelib}/flawfinder.py
%{python3_sitelib}/flawfinder-%{version}-py*.egg-info/
%{python3_sitelib}/__pycache__/flawfinder.*.pyc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1490 |21cr|flawz-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	TUI for browsing CVE
Name:		flawz
Version:	0.2.0
Release:	1
License:	MIT
Group:		Databases
Url:		https://github.com/orhun/flawz
Source0:	https://github.com/orhun/flawz/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# To create Source1:
# extract flawz-%%{version} archive
# cd flawz-%%{version}
# mkdir cargo-home
# cat >cargo-home/config <<EOF
# [source.crates-io]
# registry = 'https://github.com/rust-lang/crates.io-index'
# replace-with = 'vendored-sources'
# [source.vendored-sources]
# directory = './vendor'
# EOF
# export CARGO_HOME=$(pwd)/cargo-home
# cargo vendor
# tar -cpJf ../vendor-%%{version}.tar.xz vendor
Source1:	vendor-%{version}.tar.xz
BuildRequires:	cargo
BuildRequires:	rust
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)

%description
Terminal User Interface (TUI) for browsing the security vulnerabilities
(also known as CVEs).
As default it uses the vulnerability database (NVD) from NIST
and provides search and listing functionalities in the terminal
with different theming options.

%files
%doc CHANGELOG.md README.md
%license LICENSE*
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1

mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'
[source.vendored-sources]
directory = './vendor'
EOF

%build
export CARGO_HOME=$(pwd)/cargo-home/
CARGO_TARGET_DIR=target cargo build %{?_smp_mflags} --release --offline

%install
mkdir -p %{buildroot}%{_bindir}
cp target/release/%{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1491 |21cr|fldigi-4.1.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fldigi is a software modem for Amateur Radio use
Name:		fldigi
Version:	4.1.21
Release:	1
License:	GPLv3+
Group:		Communications
Url:		http://www.w1hkj.com
Source0:	https://sourceforge.net/projects/fldigi/files/%{name}/%{name}-%{version}.tar.gz
Source1:	http://www.w1hkj.com/downloads/fldigi/FLDigi_3.23_Users_Manual.pdf
Source100:	fldigi.appdata.xml
BuildRequires:	asciidoc
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(hamlib)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(xmlrpc)

%description
Fldigi is a software modem for Amateur Radio use. It is a sound card based
program that is used for both transmitting and receiving data in any of the
following modes:

BPSK and QPSK        31, 63, 125, 250 (both), and 63F and 500 (BPSK only)
PSKR                 125, 250, and 500
CW                   speeds from 5 to 200 wpm
DominoEX             4, 5, 8, 11, 16 and 22; also with FEC
Hellschreiber        Feld Hell, Slow Hell, Hell x5/x9, FSKHell(-105)
                     and Hell 80
MFSK                 4, 8, 11, 16, 22, 31, 32 and 64; most with image support
MT63                 500, 1000 and 2000
OLIVIA               various tones and bandwidths
RTTY                 various baud rates, shifts, nbr. of data bits, etc.
THOR                 4, 5, 8, 11, 16 and 22
Throb and ThrobX     1, 2, and 4
WWV                  receive only - calibrate your sound card to WWV
Frequency Analysis   receive only - measure the frequency of a carrier

Fldigi can also control a transceiver using Hamlib or RigCAT I/O, perform
online or cdrom QRZ queries, log QSOs with the built-in logbook or Xlog,
and send reception reports to the PSK Automatic Propagation Reporter.

%files -f %{name}.lang
%doc README NEWS AUTHORS doc/guide*
%doc %{_datadir}/doc/%{name}/FLDigi_3.23_Users_Manual.pdf
%{_bindir}/*
%{_datadir}/appdata/fldigi.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.xpm
%{_datadir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-rpath \
	--with-xmlrpc \
	--with-hamlib

%make LIBS='-lxmlrpc_server_abyss++ -lxmlrpc_server++ -lxmlrpc_server_abyss -lxmlrpc_server -lxmlrpc_abyss -lxmlrpc++ -lxmlrpc -lxml2 -lxmlrpc_util' \
	ASCIIDOC_ICONS_DIR=%{_sysconfdir}/asciidoc/images/icons \
	V=1

%install
%makeinstall_std

mkdir -p %{buildroot}%{_docdir}/%{name}
install -pm 0644 %{SOURCE1} %{buildroot}%{_docdir}/%{name}/

mkdir -p %{buildroot}%{_datadir}/appdata
install %{SOURCE100} -pm 0644 %{buildroot}%{_datadir}/appdata/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1492 |21cr|flemm-3.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       flemm
Version:    3.1
Release:    13
Summary:    Inflectional analysis on French texts
License:    GPL
Group:      Sciences/Computer science
URL:        http://www.univ-nancy2.fr/pers/namer/Telecharger_Flemm.htm
Source:     %{name}-%{version}.tar.bz2
Patch0:     %{name}.perl-modules-path.patch.bz2
Patch1:     %{name}-3.1.stdin.patch.bz2
BuildArch:  noarch

%description
FLEMM is a Perl5 program that performs inflectional analysis on French texts
which have previously been tagged (eg. by the Brill tagger). This is a small
program, (60kb in a zipped format) mainly rule-based (i.e. only a 3000 words
lexicon is used in order to deal with exceptions). It runs on PCs or
Workstation, under Unix, Linux or Windows95/NT OS.

The returned Flemm result objects are likely to be displayed as
XML structures.

%prep
%setup -q
%patch0
%patch1
perl -pi -e 'tr/\r//d' LISMOI.txt tests/agatha.bll
chmod 755 *.pl

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 flemm.pl %{buildroot}%{_bindir}/flemm.pl

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 644 Flemm.pm %{buildroot}%{_datadir}/%{name}
cp -pr Flemm %{buildroot}%{_datadir}/%{name}
cp -pr EXCEP %{buildroot}%{_datadir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc LICENCE.txt README.txt LISMOI.txt tests flem_ex?.pl
%{_bindir}/flemm.pl
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1493 |21cr|flexiblas-3.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%bcond_without system_lapack
%bcond_without atlas
%bcond_without blis
%bcond_without openblas

%if %{with openblas}
%global default_backend openblas-openmp
%else
%global default_backend netlib
%endif

%global major_version 3
%global minor_version 2
%global patch_version 1



Name:		flexiblas
Version:	3.4.2
Release:	2
Summary:	A BLAS/LAPACK wrapper library with runtime exchangeable backends
Group:		Sciences/Mathematics
# GPLv3 with an exception for the BLAS/LAPACK interface
# https://www.gnu.org/licenses/gpl-faq.en.html#LinkingOverControlledInterface
# libcscutils/ is LGPLv2+
# contributed/ and test/ are BSD
License:	GPLv3 with exceptions and LGPLv2+ and BSD
URL:		https://www.mpi-magdeburg.mpg.de/projects/%{name}
Source0:	https://github.com/mpimd-csc/flexiblas/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.xz

BuildRequires:	gcc-gfortran, cmake, python3
%if %{with system_lapack}
BuildRequires:	blas-devel
BuildRequires:	blas-static-devel
BuildRequires:	lapack-devel
BuildRequires:	lapack-static-devel
%endif
%if %{with atlas}
BuildRequires:	atlas-devel
%endif
%if %{with blis}
BuildRequires:	blis-devel
%endif
%if %{with openblas}
BuildRequires:	openblas-devel
%endif

%global _description %{expand:
FlexiBLAS is a wrapper library that enables the exchange of the BLAS and
LAPACK implementation used by a program without recompiling or relinking it.
}

%description %_description

#-------------------------------------------------------------------------
%package        netlib
Summary:        FlexiBLAS wrapper library
Requires:       %{name} = %{EVRD}
Requires:       %{name}-%{default_backend} = %{EVRD}

%description    netlib %_description
This package contains the wrapper library with 32-bit integer support.

#-------------------------------------------------------------------------

%package        hook-profile
Summary:        FlexiBLAS profile hook plugin
Requires:       %{name} = %{EVRD}
Requires:       %{name}-netlib = %{EVRD}

%description    hook-profile %_description
This package contains a plugin that enables profiling support.

#-------------------------------------------------------------------------

%package        devel
Summary:        Development headers and libraries for FlexiBLAS
Requires:       %{name} = %{EVRD}
Requires:       %{name}-netlib = %{EVRD}

%description    devel %_description
This package contains the development headers and libraries.

#-------------------------------------------------------------------------

%if %{with atlas}
%package        atlas
Summary:        FlexiBLAS wrappers for ATLAS
Requires:       %{name} = %{EVRD}

%description    atlas %_description
This package contains FlexiBLAS wrappers for the ATLAS project.
%endif

#-------------------------------------------------------------------------

%if %{with blis}
%package        blis-serial
Summary:        FlexiBLAS wrappers for BLIS
Requires:       %{name} = %{EVRD}

%description    blis-serial %_description
This package contains FlexiBLAS wrappers for the sequential library compiled
with a 32-integer interface.

#-------------------------------------------------------------------------

%package        blis-openmp
Summary:        FlexiBLAS wrappers for BLIS
Requires:       %{name} = %{EVRD}

%description    blis-openmp %_description
This package contains FlexiBLAS wrappers for the library compiled with
OpenMP support with a 32-integer interface.

#-------------------------------------------------------------------------

%package        blis-threads
Summary:        FlexiBLAS wrappers for BLIS
Requires:       %{name} = %{EVRD}

%description    blis-threads %_description
This package contains FlexiBLAS wrappers for the library compiled with
threading support with a 32-integer interface.
%endif

#-------------------------------------------------------------------------

%if %{with openblas}
%package        openblas-openmp
Summary:        FlexiBLAS wrappers for OpenBLAS
Requires:       %{name} = %{EVRD}

%description    openblas-openmp %_description
This package contains FlexiBLAS wrappers for the library compiled with
OpenMP support with a 32-integer interface.

%endif

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%if %{with system_lapack}
rm -rf contributed
%endif
%cmake  \
    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
%if %{with system_lapack}
    -DLAPACK_API_VERSION=3.9.0 \
    -DSYS_BLAS_LIBRARY=$(pkg-config --variable=libdir blas)/libblas.a \
    -DSYS_LAPACK_LIBRARY=$(pkg-config --variable=libdir lapack)/liblapack.a \
%endif
    -DINTEGER8=OFF \
    -DCMAKE_SKIP_INSTALL_RPATH=ON \
    -DTESTS=ON

%make_build

%install
%make_install -C build
echo "default = %{default_backend}" > %{buildroot}%{_sysconfdir}/%{name}rc

# remove dummy hook
rm -f %{buildroot}%{_libdir}/%{name}*/lib%{name}_hook_dummy.so

# set Fedora-friendly names
rename -- serial -serial %{buildroot}%{_libdir}/%{name}*/* || true
rename -- openmp -openmp %{buildroot}%{_libdir}/%{name}*/* || true
rename -- pthread -threads %{buildroot}%{_libdir}/%{name}*/* || true
rename NETLIB netlib %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename ATLAS atlas %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename Blis blis %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename OpenBLAS openblas %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename -- Serial -serial %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename -- OpenMP -openmp %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
rename -- PThread -threads %{buildroot}%{_sysconfdir}/%{name}*.d/* || true
find %{buildroot}%{_sysconfdir}/%{name}*.d/* -type f \
    -exec sed -i 's NETLIB netlib gI' {} \;\
    -exec sed -i 's ATLAS atlas gI' {} \;\
    -exec sed -i 's Blis blis gI' {} \;\
    -exec sed -i 's OpenBLAS openblas gI' {} \;\
    -exec sed -i 's Serial -serial gI' {} \;\
    -exec sed -i 's OpenMP -openmp gI' {} \;\
    -exec sed -i 's PThread -threads gI' {} \;

%check
export FLEXIBLAS_TEST=%{buildroot}%{_libdir}/%{name}/lib%{name}_%{default_backend}.so
%make_build test

%files
%license COPYING COPYING.NETLIB
%doc ISSUES.md README.md CHANGELOG

%files netlib
%config(noreplace) %{_sysconfdir}/%{name}rc
%dir %{_sysconfdir}/%{name}rc.d
%{_sysconfdir}/%{name}rc.d/netlib.conf
%{_bindir}/%{name}
%{_libdir}/lib%{name}.so.%{major_version}*
%{_libdir}/lib%{name}_api.so.%{major_version}*
%{_libdir}/lib%{name}_mgmt.so.%{major_version}*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/lib%{name}_fallback_lapack.so
%{_libdir}/%{name}/lib%{name}_netlib.so
%{_mandir}/man1/%{name}.1*

%files hook-profile
%{_libdir}/%{name}/lib%{name}_hook_profile.so

%files devel
%{_includedir}/%{name}
%{_bindir}/flexiblas-config
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}_api.so
%{_libdir}/lib%{name}_mgmt.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}_api.pc
%{_mandir}/man3/%{name}_*
%{_mandir}/man7/%{name}-api.7*

%if %{with atlas}
%files atlas
%{_sysconfdir}/%{name}rc.d/atlas.conf
%{_libdir}/%{name}/lib%{name}_atlas.so
%endif

%if %{with blis}
%files blis-serial
%{_sysconfdir}/%{name}rc.d/blis-serial.conf
%{_libdir}/%{name}/lib%{name}_blis-serial.so

%files blis-openmp
%{_sysconfdir}/%{name}rc.d/blis-openmp.conf
%{_libdir}/%{name}/lib%{name}_blis-openmp.so

%files blis-threads
%{_sysconfdir}/%{name}rc.d/blis-threads.conf
%{_libdir}/%{name}/lib%{name}_blis-threads.so
%endif

%if %{with openblas}
%files openblas-openmp
%{_sysconfdir}/%{name}rc.d/openblas-openmp.conf
%{_libdir}/%{name}/lib%{name}_openblas-openmp.so

%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1494 |21cr|flickcurl-1.26-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C library for the Flickr API
Name:		flickcurl
Version:	1.26
Release:	2
License:	LGPLv2+
Group:		Networking/File transfer
Url:		http://librdf.org/flickcurl/
Source0:	http://download.dajobe.org/flickcurl/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libexslt)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(raptor2)

%description
Flickcurl is a C library for the Flickr API, handling creating the
requests, signing, token management, calling the API, marshalling
request parameters and decoding responses. It uses libcurl to call the
REST web service and libxml2 to manipulate the XML responses. The
current version supports part of the API (see Flickcurl API coverage)
primarily the functions for reading photo, people and tags description,
uploading photos, changing tags and comments.

This package contains some utility programs using the %{name} library.

%files
%doc LICENSE-2.0.txt LICENSE.html AUTHORS
%doc NEWS NEWS.html README README.html ChangeLog coverage.html
%{_bindir}/%{name}
%{_bindir}/flickrdf
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/flickrdf.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C library for the Flickr API
Group:		System/Libraries

%description -n %{libname}
Flickcurl is a C library for the Flickr API, handling creating the
requests, signing, token management, calling the API, marshalling
request parameters and decoding responses. It uses libcurl to call the
REST web service and libxml2 to manipulate the XML responses. The
current version supports part of the API (see Flickcurl API coverage)
primarily the functions for reading photo, people and tags description,
uploading photos, changing tags and comments.

%files -n %{libname}
%doc LICENSE-2.0.txt LICENSE.html AUTHORS
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for the %{name} library.

%files -n %{devname}
%doc NOTICE
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}.h
%{_bindir}/%{name}-config
%{_mandir}/man1/%{name}-config.1.*
%{_datadir}/gtk-doc/html/flickcurl

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1495 |21cr|flif-0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define oname	FLIF
%define major	0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} %{major} -d

Summary:	Free Lossless Image Format
Name:		flif
Version:	0.4
Release:	3
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		http://flif.info/
Source0:	https://github.com/FLIF-hub/FLIF/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	make
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
Requires:	exiv2

%description
FLIF is a lossless image format which outperforms PNG, lossless WebP,
lossless BPG and lossless JPEG2000 in terms of compression ratio.

%files
%doc README.md CONTRIBUTING.md FLIF-CLA-template.txt
%license LICENSE LICENSE_Apache2 LICENSE_GPL LICENSE_LGPL
%{_bindir}/%{name}
%{_bindir}/apng2%{name}
%{_bindir}/gif2%{name}
%{_bindir}/view%{name}
%{_mandir}/man1/flif.1*

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Free Lossless Image Format encoder/decoder library
License:	LGPLv3+ and ASL 2.0
Group:		System/Libraries

%description -n	%{libname}
FLIF is a lossless image format which outperforms PNG, lossless WebP,
lossless BPG and lossless JPEG2000 in terms of compression ratio.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}

#------------------------------------------------------------------

%package -n	%{devname}
Summary:	FLIF development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
FLIF is a lossless image format which outperforms PNG, lossless WebP,
lossless BPG and lossless JPEG2000 in terms of compression ratio.

%files -n %{devname}
%{_includedir}/%{oname}/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
sed -i \
	-e "s!PREFIX := \$(DESTDIR)/usr.*!PREFIX := \$(DESTDIR)%{_prefix}!" \
	-e "s!\$(PREFIX)/lib!\$(PREFIX)/%{_lib}!" \
	-e "s!\$(PREFIX)/include!\$(PREFIX)/include/%{oname}!" \
	src/Makefile

%build
%make
%make -C src viewflif

%install
%makeinstall_std
%makeinstall_std install-dev
%makeinstall_std -C src install-viewflif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1496 |21cr|flightcrew-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

%define oname FlightCrew

Summary:	A C++, cross-platform, native code epub validator
Name:		flightcrew
Version:	0.9.2
Release:	1
License:	GPLv3 and CC-BY-SA
Group:		Office
Url:		http://code.google.com/p/flightcrew/
Source0:	https://github.com/Sigil-Ebook/flightcrew/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	flightcrew-sigil-plugin.metainfo.xml
Patch1:		0001-use-system-zlib-if-available.patch
Patch2:		0002-use-system-boost-libraries-if-available.patch
Patch3:		0003-use-system-xerces-c-if-available.patch
Patch4:		0004-don-t-build-googlemock-when-NO_TEST_EXE-is-specified.patch
Patch5:		0005-move-zipextraction-under-FlightCrew.patch
#Patch6:		0006-use-system-zipios-library-if-available.patch
Patch7:		0007-FlightCrew-plugin-Make-FlightCrew-plugin-work-on-uni.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1450956
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=861987
Patch8:		use_random_unique_tmp_path.patch
Patch9:		boost_176_scoped_ptr.patch
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	pkgconfig(zlib)

%description
FlightCrew is a C++, cross-platform, native code epub validator. It is composed
of three parts:
  FlightCrew, the validation library
  FlightCrew-cli, the command-line front-end to the FlightCrew library
  FlightCrew-gui, the GUI front-end to the FlightCrew library

It was initially created for Sigil, the epub editor.

#----------------------------------------------------------------------------

%package common
Summary:	A C++, cross-platform, native code epub validator
Group:		Office

%description common
FlightCrew is a C++, cross-platform, native code epub validator.
It is composed of three parts:
  FlightCrew, the validation library
  FlightCrew-cli, the command-line front-end to the FlightCrew library
  FlightCrew-gui, the GUI front-end to the FlightCrew library

It was initially created for Sigil, the epub editor.

%files common
%doc ChangeLog.txt COPYING.txt

#----------------------------------------------------------------------------

%package cli
Summary:	Command line tool for FlightCrew
Group:		Office
Requires:	%{name}-common = %{EVRD}

%description cli
FlightCrew is a C++, cross-platform, native code epub validator. This package
contains the command line tool for FlightCrew.

%files cli
%{_bindir}/%{name}-cli

#----------------------------------------------------------------------------

%package gui
Summary:	Command line tool for FlightCrew
Group:		Office
Requires:	%{name}-cli = %{EVRD}
Provides:	%{name} = %{EVRD}

%description gui
FlightCrew is a C++, cross-platform, native code epub validator. This package
contains the Qt4 graphical front-ed for FlightCrew.

%files gui
%{_bindir}/%{name}-gui

#----------------------------------------------------------------------------

%package sigil-plugin
Summary:	Sigil FlightCrew epub validator plugin
Requires:	sigil
# Older versions of FlightCrew were directly linked into sigil, we
# hacked up the FlightCrew build to produce a dynamic-lib to make this
# work, but upstream never intended FlightCrew to be used this way and
# with the plugin this is no longer necessary
Obsoletes:	%{name} <= 0.8
Obsoletes:	%{name}-devel <= 0.8

%description	sigil-plugin
Sigil FlightCrew epub validator plugin.

%files sigil-plugin
%{_bindir}/flightcrew-plugin
%{_datadir}/appdata/flightcrew-sigil-plugin.metainfo.xml
%{_datadir}/sigil/plugins/%{name}
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

# Fix EOL encoding for %%doc
for i in COPYING*.txt ChangeLog.txt README.txt; do
    sed -i.old 's/\r//' "$i"
    touch -r "$i.old" "$i"
done

# remove unbundled stuff
rm -rf src/BoostParts src/zlib src/Xerces
# remove test framework
rm -rf src/googlemock

# fix permissions
chmod a-x src/utf8-cpp/utf8/*.h

# Fix python shebang
sed -i '1s=^#!/usr/bin/\(python\|env python\)[23]\?=#!%{__python3}=' src/FlightCrew-plugin/plugin.py

%build
%global optflags %{optflags} -std=c++11
%cmake \
	-DSKIP_FC_GUI=OFF \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_SHARED_FC=OFF \
	-DNO_TEST_EXE=ON
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/sigil/plugins/%{name}
install -p -m 755 src/FlightCrew-plugin/plugin.py \
  %{buildroot}%{_datadir}/sigil/plugins/%{name}
install -p -m 644 src/FlightCrew-plugin/plugin.xml \
  %{buildroot}%{_datadir}/sigil/plugins/%{name}
mkdir -p %{buildroot}%{_datadir}/appdata
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata
appstream-util validate-relax --nonet \
  %{buildroot}%{_datadir}/appdata/flightcrew-sigil-plugin.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1497 |21cr|flightgear-2020.3.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d'.' -f1,2)

Summary:	The FlightGear Flight Simulator
Name:		flightgear
Version:	2020.3.14
Release:	2
License:	GPLv2+
Group:		Games/Other
Url:		https://sourceforge.net/projects/flightgear/
Source0:	https://sourceforge.net/projects/flightgear/files/release-%{url_ver}/flightgear-%{version}.tar.bz2
Source11:	%{name}.16.png
Source12:	%{name}.32.png
Source13:	%{name}.48.png
Patch5:		0005-make-fglauncher-a-static-library.patch
BuildRequires:	cmake
BuildRequires:	git-core
BuildRequires:	boost-devel
BuildRequires:	fltk-devel
BuildRequires:	gsm-devel
BuildRequires:	libgomp-devel
BuildRequires:	plib-devel
BuildRequires:	subversion-devel
BuildRequires:	simgear-devel >= %{version}
BuildRequires:	pkgconfig(apr-1)
BuildRequires:	flite-devel
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openscenegraph)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Quick)

Requires:	%{name}-data = %{version}
Requires:	openscenegraph-plugins

%description
The FlightGear project is working to create a sophisticated flight simulator
framework for the development and pursuit of interesting flight simulator
ideas. We are developing a solid basic sim that can be expanded and improved
upon by anyone interested in contributing.

%files
%doc README AUTHORS docs-mini/
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/bash-completion/completions/fgfs
%{_datadir}/zsh/site-functions/_fgfs
%{_datadir}/applications/org.flightgear.FlightGear.desktop
%{_datadir}/metainfo/org.flightgear.FlightGear.metainfo.xml
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/flightgear.*
%{_mandir}/man?/*
%{_mandir}/it/man*/*.xz

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Taken from OBS
for f in docs-mini/README.xmlparticles Thanks
do
    iconv -f iso-8859-1 -t utf-8 -o ${f}.utf8 ${f}
    mv -f ${f}.utf8 ${f}
done
sed -i 's/\r//' docs-mini/AptNavFAQ.FlightGear.html

# remove some unneeded doc files
for ext in Cygwin IRIX Joystick Linux MSVC MSVC8 MacOS SimGear Unix Win32-X autoconf mingw plib src xmlsyntax; do
    rm -f docs-mini/README.${ext}
done

%build
%cmake \
        -DBUILD_SHARED_LIBS=OFF \
        -DFG_DATA_DIR=%{_datadir}/%{name} \
        -DSYSTEM_FLITE=ON \
        -DSYSTEM_GSM=ON \
        -DSYSTEM_SPEEX=OFF \
        -DSYSTEM_SQLITE=ON \
        -DSIMGEAR_SHARED=ON \
        -DENABLE_GDAL=ON \
        -DENABLE_OPENMP=ON \
        -DFG_BUILD_TYPE=Release
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Flight Gear
Name[ru]=Flight Gear
Comment=%{Summary}
Comment[ru]=Авиасимулятор Flight Gear
Exec=fgfs
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;Simulation;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

rm -rf %{buildroot}%{_docdir}/FlightGear

# remove obsolete utilities (taken from OBS)
cd %{buildroot}%{_bindir} && rm GPSsmooth MIDGsmooth UGsmooth metar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1498 |21cr|flightgear-data-2020.3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d'.' -f1,2)

%define	oname	flightgear

Summary:	The data for FlightGear Flight Simulator
Name:		flightgear-data
Version:	2020.3.14
Release:	1
License:	GPLv2+
Group:		Games/Other
Url:		http://www.flightgear.org/
Source0:	https://sourceforge.net/projects/flightgear/files/release-%{url_ver}/FlightGear-%{version}-data.txz
Provides:	flightgear-base = %{EVRD}
BuildArch:	noarch

%description
The Flight Gear project is working to create a sophisticated flight simulator
framework for the development and pursuit of interesting flight simulator
ideas. We are developing a solid basic sim that can be expanded and improved
upon by anyone interested in contributing.

This package contains the base data files.

%files
%doc AUTHORS COPYING NEWS README Thanks Docs
%{_datadir}/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -q -n fgdata

%build
# Nothing

%install
install -d -m 0755 %{buildroot}%{_datadir}/%{oname}/
cp -a * %{buildroot}%{_datadir}/%{oname}/

# cleanup temporary files and fix permissions
find %{buildroot}%{_datadir}/%{oname} -name '*#*' -exec rm {} \;
find %{buildroot}%{_datadir}/%{oname} -type f -exec chmod 644 {} \;

# fix wrong eol encoding on some doc files
for f in Docs/FGShortRef.css Docs/README.kln89.html Docs/FGShortRef.html \
	Docs/README.submodels Docs/README.yasim Docs/README.xmlparticles
do
	sed -i 's/\r//' %{buildroot}%{_datadir}/%{oname}/$f
done

# fix files not in utf-8
for f in Thanks Docs/README.xmlparticles
do
	path=%{buildroot}%{_datadir}/%{oname}/$f
	iconv -f iso-8859-1 -t utf-8 -o ${path}.utf8 $path
	mv -f ${path}.utf8 ${path}
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1499 |21cr|flint-2.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# hmod_mat addon checkout information; this is used by eclib
%global hm_user fredrik-johansson
%global hm_name hmod_mat
%global hm_commit 75378f4af0f0b558385a8bf28d6b4b8ca5f0f568
%global hm_shortcommit %(c=%{hm_commit}; echo ${c:0:7})
%global hm_date 20140328

Name:           flint
Version:        2.9.0
Release:        1
Summary:        Fast Library for Number Theory
Group:          Sciences/Mathematics
# Flint itself is LGPLv2+.  The hmod_mat extension is GPLv2+.
License:        LGPLv2+ and GPLv2+
URL:            https://www.flintlib.org/
Source0:        https://www.flintlib.org/%{name}-%{version}.tar.gz
Source1:        https://github.com/%{hm_user}/%{hm_name}/archive/%{hm_commit}/%{hm_name}-%{hm_shortcommit}.tar.gz
# Make the hmod_mat extension use gmp instead of mpir
Patch0:         %{name}-hmod_mat.patch
# Use the popcnt instruction when available
Patch1:         %{name}-popcnt.patch
# Work around a test that will not compile
# See https://github.com/wbhart/flint2/issues/1165
Patch2:         %{name}-test.patch
# force use flexiblas headers
Patch3:         flint-flexiblas-headers.patch

BuildRequires:  flexiblas-devel
BuildRequires:  gcc-c++
BuildRequires:  gmp-devel
BuildRequires:  make
BuildRequires:  ntl-devel
BuildRequires:  pkgconfig(bdw-gc)
BuildRequires:  pkgconfig(mpfr)
BuildRequires:  python3-sphinx
#BuildRequires:  tex(latex)

%description
FLINT is a C library for doing number theory, written by William Hart
and David Harvey.

%files
%doc %{name}-%{version}/AUTHORS
%doc %{name}-%{version}/NEWS
%doc %{name}-%{version}/README
%doc %{name}-%{version}/README.hmod_mat.md
%license %{name}-%{version}/LICENSE %{name}-%{version}/LICENSE.hmod_mat
%{_libdir}/libflint.so.17*
%{_libdir}/libflint-gc.so.17*
%{_datadir}/flint/

#-------------------------------------------------------
%package        devel
Summary:        Development files for FLINT
Group:          Development/Other
Requires:       %{name} = %{version}-%{release}
Requires:       gmp-devel
Requires:       mpfr-devel
Requires:       ntl-devel

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files devel
%doc %{name}-%{version}/doc/build/html
%{_includedir}/flint/
%{_libdir}/libflint.so
%{_libdir}/libflint-gc.so

#-------------------------------------------------------

%package        static
Summary:        Static libraries for FLINT
Group:          Development/Other
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}


%description    static
The %{name}-static package contains static libraries for
developing applications that use %{name}.

%files static
%{_libdir}/libflint.a
%{_libdir}/libflint-gc.a

#-------------------------------------------------------

%prep
%setup -q -c
%setup -q -T -D -a 1

fixtimestamp() {
  touch -r $1.orig $1
  rm -f $1.orig
}

# Use gmp instead of mpir with hmod_mat
for fil in $(grep -Frl mpir.h hmod_mat-%{hm_commit}); do
  sed -i.orig 's/mpir\.h/gmp.h/' $fil
  fixtimestamp $fil
done

mv hmod_mat-%{hm_commit} %{name}-%{version}/hmod_mat
pushd %{name}-%{version}

%autopatch -p0

# Do not use rpaths.  Use flexiblas instead of openblas
sed -i '/ -Wl,-rpath,[^"]*\("\)/d;s/openblas/flexiblas/' configure

# sanitize header files
ln -sf $PWD flint
# sanitize references to external headers
for fil in $(find . -name \*.c -o -name \*.h -o -name \*.in); do
  sed -ri.orig 's/"((gc|gmp|limits|math|stdlib|string)\.h)"/<\1>/' $fil
  fixtimestamp $fil
done
# sanitize references to flintxx headers
sed_expr=$(ls -1 flintxx/*.h | \
  sed -r 's,flintxx/(.*)\.h,\1,' | \
  awk '/START/{if (x) print x;x="";next}{x=(!x)?$0:x"|"$0;}END{print x;}')
for fil in $(find . -name \*.c -o -name \*.h); do
  sed -ri.orig "s@\"(flintxx/)?(($sed_expr)\.h)\"@<flint/flintxx/\2>@" $fil
  fixtimestamp $fil
done
# sanitize references to all other headers
for fil in $(find . -name \*.c -o -name \*.h); do
  sed -ri.orig 's@"(\.\./)?([^"]+\.h])"@<flint/\2>@' $fil
  fixtimestamp $fil
done
# "

# Use the classic sphinx theme
sed -i "s/'default'/'classic'/" doc/source/conf.py

# Rename hmod_mat files for doc
cp -p hmod_mat/LICENSE LICENSE.hmod_mat
cp -p hmod_mat/README.md README.hmod_mat.md
popd

# Prepare to build two versions of the library
cp -a %{name}-%{version} %{name}-%{version}-gc
for fil in $(grep -Frl libflint %{name}-%{version}-gc); do
  sed -i 's/libflint/libflint-gc/' $fil
done


%build
export CFLAGS="%{build_cflags} -fwrapv -D_FILE_OFFSET_BITS=64 -I%{_includedir}"
# We set HAVE_FAST_COMPILER to 0 on i686, ARM, s390, and 32-bit MIPS because
# otherwise the tests exhaust virtual memory.  If other architectures run out
# of virtual memory while building flintxx/test/t-fmpzxx.cpp, then do likewise.
%ifarch %{ix86} %{arm} s390 %{mips32}
CFLAGS="$CFLAGS -DHAVE_FAST_COMPILER=0"
%endif
export CXXFLAGS="$CFLAGS"

# Build the non-gc version
pushd %{name}-%{version}
OS=Linux \
MACHINE=%{_arch} \
sh -x ./configure \
    --prefix=%{_prefix} \
    --with-gmp=%{_prefix} \
    --with-mpfr=%{_prefix} \
    --with-blas=%{_libdir} \
    --with-ntl=%{_prefix} \
    --enable-cxx \
    --extensions=$PWD/hmod_mat \
    CFLAGS="$CFLAGS" \
    CXXFLAGS="$CXXFLAGS"

# FIXME: %%{?_smp_mflags} sometimes fails
make verbose LDFLAGS="%{build_ldflags}" LIBDIR=%{_lib}

# Build the documentation
make -C doc html
popd

# Build the gc version
pushd %{name}-%{version}-gc
OS=Linux \
MACHINE=%{_arch} \
sh -x ./configure \
    --prefix=%{_prefix} \
    --with-gmp=%{_prefix} \
    --with-mpfr=%{_prefix} \
    --with-blas=%{_libdir} \
    --with-ntl=%{_prefix} \
    --with-gc=%{_prefix} \
    --enable-cxx \
    CFLAGS="$CFLAGS" \
    CXXFLAGS="$CXXFLAGS"

# FIXME: %%{?_smp_mflags} sometimes fails
make verbose LDFLAGS="%{build_ldflags}" LIBDIR=%{_lib}
popd


%install
# Install the gc version
pushd %{name}-%{version}-gc
%make_install LIBDIR=%{_lib}
popd

# Install the non-gc version
pushd %{name}-%{version}
%make_install LIBDIR=%{_lib}

# Fix permissions
chmod 0755 %{buildroot}%{_libdir}/libflint*.so.*

# Install CPimport.txt
mkdir -p %{buildroot}%{_datadir}/flint
cp -p qadic/CPimport.txt %{buildroot}%{_datadir}/flint
popd


%ifnarch %{arm} %{ix86}
# Tests temporarily disabled on 32-bit builders.
# See https://github.com/wbhart/flint2/issues/786
%check
#pushd %{name}-%{version}
#export LD_LIBRARY_PATH=$PWD
#make check QUIET_CC= QUIET_CXX= QUIET_AR= \
#  LDFLAGS="%{build_ldflags}" LIBDIR=%{_lib}
#popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1500 |21cr|florence-0.6.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gstapi 1.0

%define api 1.0
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Extensible scalable on-screen virtual keyboard
Name:		florence
Version:	0.6.3
Release:	5
Group:		System/X11
License:	GPLv2+ and GFDL
Url:		http://florence.sourceforge.net
Source0:	https://sourceforge.net/projects/florence/files/florence/%{version}/%{name}-%{version}.tar.bz2
Patch0:		florence-0.6.0-desktop.patch
Patch1:		florence-0.6.2-linkage.patch
BuildRequires:	intltool
BuildRequires:	rarian
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xtst)

%description
Florence is an extensible scalable virtual keyboard.

It's designed for GNOME but can be used in any DE (without some features).

You need it if you can't use a real hardware keyboard, for example because
you are disabled, your keyboard is broken or because you use a tablet PC,
but you must be able to use a pointing device (as a mouse, a trackball or
a touchscreen).

In GNOME Florence stays out of your way when you don't need it: it appears
on the screen only when you need it.

A Timer-based auto-click functionality is available to help disabled people
having difficulties to click.

If you have problems switching keyboard layout (language) in KDE4, reconfigure
layouts in KDE4 settings once and it should work.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING COPYING-DOCS NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.*
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/pixmaps/%{name}.svg
%{_mandir}/man1/%{name}*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libflorence-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/florence-%{api}/florence.h
%{_libdir}/libflorence-%{api}.so
%{_libdir}/pkgconfig/florence-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--without-panelapplet \
	--without-xrecord \
	--without-notification \
	--disable-static
make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1501 |21cr|flowblade-2.8.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multitrack non-linear video editor
Name:		flowblade
Version:	2.8.0.3
Release:	1
License:	GPLv3
Group:		Video
Url:		https://github.com/jliljebl/flowblade
Source0:	https://github.com/jliljebl/flowblade/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		flowblade_sys_path.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
Requires:	ffmpeg
Requires:	frei0r-plugins
Requires:	gmic
Requires:	gtk3
Requires:	ladspa
Requires:	librsvg2
Requires:	mlt6
Requires:	python3-dbus
Requires:	python3-gobject-cairo
Requires:	python3-mlt6
Requires:	sox
Requires:	swh-plugins
Requires:	python3dist(pillow)
Requires:	python3dist(numpy)
Requires:	python3dist(pyxdg)
Requires:	typelib(PangoFT2)
BuildArch:	noarch

%description
Flowblade is designed to provide a fast, precise and robust editing experience.
In Flowblade clips are usually automatically placed tightly after or between
clips when they are inserted on the timeline. Edits are fine tuned by trimming
in and out points of clips, or by cutting and deleting parts of clips.
Flowblade provides powerful tools to mix and filter video and audio.

%files -f %{name}.lang
%doc AUTHORS copyrights README README.md
%license COPYING
%{_bindir}/%{name}*
%{_datadir}/applications/io.github.jliljebl.Flowblade.desktop
%{_datadir}/metainfo/io.github.jliljebl.Flowblade.appdata.xml
%{_datadir}/mime/packages/io.github.jliljebl.Flowblade.xml
%{_iconsdir}/hicolor/128x128/apps/*.png
%{_mandir}/man1/%{name}.1.*
%{python3_sitelib}/Flowblade/
%{python3_sitelib}/%{name}*

#------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
cp -rf %{name}-trunk/* ./

sed -i "s|#!/usr/bin/env python|#!/usr/bin/python3|g" Flowblade/launch/*
sed -i "s|#!/usr/bin/env python|#!/usr/bin/python3|g" Flowblade/tools/clapperless.py

sed -i "s|respaths.LOCALE_PATH|'%{_datadir}/locale'|g" %{name}-trunk/Flowblade/translations.py

%build
%py3_build

%install
%py3_install

chmod +x %{buildroot}%{python3_sitelib}/Flowblade/launch/*
chmod +x %{buildroot}%{python3_sitelib}/Flowblade/tools/clapperless.py

for i in $(ls -d %{buildroot}%{python3_sitelib}/Flowblade/locale/*/LC_MESSAGES/ | sed 's/\(^.*locale\/\)\(.*\)\(\/LC_MESSAGES\/$\)/\2/') ; do
	mkdir -p %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES/
	mv %{buildroot}%{python3_sitelib}/Flowblade/locale/$i/LC_MESSAGES/%{name}.mo %{buildroot}%{_datadir}/locale/$i/LC_MESSAGES/
done

install -d -m 0755 %{buildroot}%{python3_sitelib}/Flowblade/res/css
cp Flowblade/res/css/gtk-%{name}-dark.css %{buildroot}%{python3_sitelib}/Flowblade/res/css

ln -sf io.github.jliljebl.Flowblade.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
sed -i "s/Icons=.*/Icons=%{name}/" %{buildroot}%{_datadir}/applications/io.github.jliljebl.Flowblade.desktop

rm %{buildroot}/usr/lib/mime/packages/%{name}

# Drop when fix wayland's use
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-start
cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/bin/sh
env GDK_BACKEND=x11 %{_bindir}/%{name}-start "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1502 |21cr|flowcanvas-0.7.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An interactive Gtkmm/Gnomecanvasmm widget
Name:		flowcanvas
Version:	0.7.1
Release:	12
License:	GPLv2+
Group:		System/Libraries
Url:		http://drobilla.net/software/flowcanvas/
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.bz2
Patch0:		flowcanvas-0.7.1-graphviz23.patch
BuildRequires:	python2
BuildRequires:	waf
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libgnomecanvasmm-2.6)
BuildRequires:	pkgconfig(libgvc)

%description
FlowCanvas is an interactive Gtkmm/Gnomecanvasmm widget for "boxes
and lines" style environments (e.g. modular synths or interactive
finite state automata diagrams).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An interactive Gtkmm/Gnomecanvasmm widget library
Group:		System/Libraries

%description -n %{libname}
FlowCanvas is an interactive Gtkmm/Gnomecanvasmm widget for "boxes
and lines" style environments (e.g. modular synths or interactive
finite state automata diagrams).

%files -n %{libname}
%doc AUTHORS README ChangeLog
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix Python shebangs
sed -i 's|/usr/bin.*python$|/usr/bin/python2|' autowaf/autowaf.py autowaf/waf wscript

%build
%setup_compile_flags
export CXXFLAGS="%{optflags} -std=gnu++11"
./waf configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir} \
	--libdir=%{_libdir} \
	--includedir=%{_includedir} \

# execution of waf link in source topdir fails to include autowaf.py:

./autowaf/waf build

%install
./autowaf/waf install --destdir=%{buildroot}

chmod 0755 %{buildroot}%{_libdir}/lib%{name}.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1503 |21cr|flow-tools-0.68.5.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ft %{major}
%define devname %mklibname ft -d

Summary:	Tool set for working with NetFlow data
Name:		flow-tools
Version:	0.68.5.1
Release:	11
License:	BSD
Group:		Monitoring
Url:		http://code.google.com/p/flow-tools/
Source0:	http://flow-tools.googlecode.com/files/flow-tools-%{version}.tar.bz2
Source1:	flow-capture.service
Source2:	flow-capture.conf
Patch0:		flow-tools-0.68.5.1-openssl11.patch
Patch4:		flow-tools-0.68-format_not_a_string_literal_and_no_format_arguments.diff
Patch5:		flow-tools-extern.patch
Requires:	tcp_wrappers
BuildRequires:	bison
BuildRequires:	docbook-utils
BuildRequires:	flex
BuildRequires:	python2
BuildRequires:	python3
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(zlib)

%description
Flow-tools is library and a collection of programs used to
collect, send, process, and generate reports from NetFlow data.
The tools can be used together on a single server or distributed
to multiple servers for large deployments. The flow-toools library
provides an API for development of custom applications for NetFlow
export versions 1,5,6 and the 14 currently defined version 8
subversions.

%files
%doc ChangeLog README SECURITY TODO
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/cfg
%dir %{_sysconfdir}/%{name}/sym
%config(noreplace) %{_sysconfdir}/%{name}/cfg/*
%config(noreplace) %{_sysconfdir}/%{name}/sym/*
%{_sbindir}/flow-cat
%{_sbindir}/flow-dscan
%{_sbindir}/flow-expire
%{_sbindir}/flow-export
%{_sbindir}/flow-fanout
%{_sbindir}/flow-filter
%{_sbindir}/flow-gen
%{_sbindir}/flow-header
%{_sbindir}/flow-import
%{_sbindir}/flow-mask
%{_sbindir}/flow-merge
%{_sbindir}/flow-nfilter
%{_sbindir}/flow-print
%{_sbindir}/flow-receive
%{_sbindir}/flow-report
%{_sbindir}/flow-send
%{_sbindir}/flow-split
%{_sbindir}/flow-stat
%{_sbindir}/flow-tag
%{_sbindir}/flow-xlate
%{_sbindir}/flow-rptfmt
%{_mandir}/man1/flow-cat.1*
%{_mandir}/man1/flow-dscan.1*
%{_mandir}/man1/flow-expire.1*
%{_mandir}/man1/flow-export.1*
%{_mandir}/man1/flow-fanout.1*
%{_mandir}/man1/flow-filter.1*
%{_mandir}/man1/flow-gen.1*
%{_mandir}/man1/flow-header.1*
%{_mandir}/man1/flow-import.1*
%{_mandir}/man1/flow-mask.1*
%{_mandir}/man1/flow-merge.1*
%{_mandir}/man1/flow-nfilter.1*
%{_mandir}/man1/flow-print.1*
%{_mandir}/man1/flow-receive.1*
%{_mandir}/man1/flow-report.1*
%{_mandir}/man1/flow-send.1*
%{_mandir}/man1/flow-split.1*
%{_mandir}/man1/flow-stat.1*
%{_mandir}/man1/flow-tag.1*
%{_mandir}/man1/flow-tools.1*
%{_mandir}/man1/flow-tools-examples.1*
%{_mandir}/man1/flow-xlate.1*
%{_mandir}/man1/flow-rptfmt.1*
%{_datadir}/%{name}


#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Flow-tools shared libraries
Group:		System/Libraries

%description -n %{libname}
Flow-tools is library and a collection of programs used to
collect, send, process, and generate reports from NetFlow data.
The tools can be used together on a single server or distributed
to multiple servers for large deployments. The flow-toools library
provides an API for development of custom applications for NetFlow
export versions 1,5,6 and the 14 currently defined version 8
subversions.

%files -n %{libname}
%{_libdir}/libft.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libft-devel = %{EVRD}

%description -n %{devname}
Flow-tools is library and a collection of programs used to
collect, send, process, and generate reports from NetFlow data.
The tools can be used together on a single server or distributed
to multiple servers for large deployments. The flow-toools library
provides an API for development of custom applications for NetFlow
export versions 1,5,6 and the 14 currently defined version 8
subversions.

%files -n %{devname}
%doc docs/*.html
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package -n flow-capture
Summary:	Manage storage of flow file archives by expiring old data
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires(post,preun,postun):	rpm-helper

%description -n flow-capture
The flow-capture utility will receive and store NetFlow exports to
disk.

%files -n flow-capture
%{_unitdir}/flow-capture*
%config(noreplace) %{_sysconfdir}/flow-capture.conf
%{_sbindir}/flow-capture
%{_mandir}/man1/flow-capture.1*
%dir /var/lib/flow-capture

%post -n flow-capture
%systemd_post flow-capture

%preun -n flow-capture
%systemd_preun flow-capture

%postun -n flow-capture
%systemd_postun_with_reload flow-capture

#----------------------------------------------------------------------------

%package rrdtool
Summary:	Scripts for flow-tools to build rrd graphs
Group:		Monitoring
Requires:	%{name} = %{EVRD}
Requires:	python3-rrdtool

%description rrdtool
Flow-tools is library and a collection of programs used to collect,
send, process, and generate reports from NetFlow data. The tools can be
used together on a single server or distributed to multiple servers for
large deployments. The flow-toools library provides an API for development
of custom applications for NetFlow export versions 1,5,6 and the 14 currently
defined version 8 subversions. A Perl and Python interface have been
contributed and are included in the distribution.

This package contains scripts that use python-rrdtool to create rrds and graphs
from flow data.

%files rrdtool
%{_sbindir}/flow-log2rrd
%{_sbindir}/flow-rpt2rrd
%{_mandir}/man1/flow-log2rrd.1*
%{_mandir}/man1/flow-rpt2rrd.1*

#----------------------------------------------------------------------------

%package docs
Summary:	HTML and other redundant docs for flow-tools
Group:		Documentation

%description docs
Flow-tools is library and a collection of programs used to collect,
send, process, and generate reports from NetFlow data. The tools can be
used together on a single server or distributed to multiple servers for
large deployments. The flow-toools library provides an API for development
of custom applications for NetFlow export versions 1,5,6 and the 14 currently
defined version 8 subversions. A Perl and Python interface have been
contributed and are included in the distribution.

This package contains additional documentation, such as man pages in html
format.

%files docs
%doc docs/*.html ChangeLog.old TODO INSTALL SECURITY 

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch4 -p0
%patch5 -p1

sed -i '1s|^#!.*python|#!/usr/bin/python3|' bin/flow*
2to3 --write --nobackups bin/flow*

cp %{SOURCE2} flow-capture.conf

%build
%configure \
	--localstatedir=%{_localstatedir}/%{name} \
	--sysconfdir=%{_sysconfdir}/%{name} \
	--bindir=%{_sbindir} \
	--with-mysql \
	--with-postgresql \
	--with-openssl

%install
%makeinstall_std

install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/ft
install -d %{buildroot}/var/lib/flow-capture

install -m0755 %{SOURCE1} %{buildroot}%{_unitdir}/flow-capture.service
install -m0644 flow-capture.conf %{buildroot}%{_sysconfdir}/flow-capture.conf

# python path fix
perl -pi -e "s|/usr/local/bin/python|%{_bindir}/python3|g" %{buildroot}%{_sbindir}/flow-log2rrd
perl -pi -e "s|/usr/local/bin/python|%{_bindir}/python3|g" %{buildroot}%{_sbindir}/flow-rpt2rrd
perl -pi -e "s|/usr/local/bin/python|%{_bindir}/python3|g" %{buildroot}%{_sbindir}/flow-rptfmt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1504 |21cr|flrig-1.4.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Transceiver control program for Amateur Radio use
Name:		flrig
Version:	1.4.7
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://www.w1hjk.com
Source0:	http://sourceforge.net/projects/fldigi/files/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	fltk-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmlrpc)

%description
Flrig is a transceiver control program designed to be used either stand
alone or as an adjunct to fldigi. The user interface changes to accommodate
the degree of CAT support available for the transceiver in use.
The back end control code for each transceiver is unique to flrig.
No additional libraries or definition files are required.

%files
%{_bindir}/%{name}
%{_datadir}/applications/flrig.desktop
%{_datadir}/pixmaps/flrig.xpm

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1505 |21cr|fluidsynth-dssi-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DSSI plugin wrapper for the FluidSynth software synthesizer
Name:		fluidsynth-dssi
Version:	1.0.0
Release:	7
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/dssi/
# Head snapshot from the more live: https://github.com/schnitzeltony/fluidsynth-dssi
# Various fixes, notably the ones to build against fluidsynth >= 2.0.0
Source0:	%{name}-20190112.tar.xz
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(dssi)
BuildRequires:  pkgconfig(fluidsynth)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(liblo)

%description
This package contains FluidSynth-DSSI, a wrapper for the FluidSynth software
synthesizer, allowing it to function as a DSSI plugin.

%files
%doc ChangeLog README TODO
%license COPYING
%{_libdir}/dssi/%{name}/FluidSynth-DSSI_gtk
%{_libdir}/dssi/%{name}.so

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-20190112

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1506 |21cr|flukz-0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################################################
# SpecFile: flukz.spec 
# Generato: http://www.mandrivausers.ro/
# MRB-Falticska Florin
######################################################
#define debug_package   %{nil}

Summary:	Flukz is a shoot'em up with levels directly editable online
Name:		flukz
Version:	0.4
Release:	6
License:	GPLv2
Group:		Games/Arcade
Url:		http://flukz.org/wiki/doku.php?id=flukz
Source0:	http://download.tuxfamily.org/flukz/%{name}%{version}.tar.gz
Patch0:		flukz-0.4-gcc7.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(QtMultimediaKit)
Requires:	pulseaudio

%description
Flukz is a shoot'em up with levels directly editable on-line. 
All users can easily create new levels or edit existing ones, 
in the same way as a wiki. A graphical interface is provided 
o edit levels easily, without programming knowledge.
In the new version 0.4 (released on 22 february 2014), 
the best scores are automatically saved on the server 
and displayed at the end of a level.Our long-term goal is 
to create a complete Qt platform for all 2D games 
like shoot'em ups, platformers, board games or puzzles

%files
%doc Changelog.txt License.txt README.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}%{version}
%patch0 -p1

%build
%qmake_qt4
%make

%install
#makeinstall not provided
# binary
install -d -m755 %{buildroot}%{_bindir}
install -m755 bin/%{name} %{buildroot}%{_bindir}/%{name}

# icons
install -d -m755 %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
convert images/flukz-24x32.png -resize 48x48 %{buildroot}%{_liconsdir}/%{name}.png
convert images/flukz-24x32.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert images/flukz-24x32.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Categories=Qt;Game;
Comment=funny 2D game
Exec=flukz
GenericName=flukz
Icon=flukz
Name=flukz
NoDisplay=false
StartupNotify=true
Terminal=false
Type=Application
EOF

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1507 |21cr|fluxbox-1.3.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define title Fluxbox
%define style Met-Anti-Flux-blue

Summary:	Windowmanager based on the original blackbox-code
Name:		fluxbox
Version:	1.3.7
Release:	5
License:	MIT
Group:		Graphical desktop/Other
Url:		http://fluxbox.org/
Source0:	https://sourceforge.net/projects/fluxbox/files/fluxbox/%{name}-%{version}.tar.gz
Source3:	%{name}-icons.tar.bz2
Source4:	%{name}-%{style}.tar.bz2
Source6:	%{name}-artwiz-fonts.tar.bz2
Source10:	%{name}-splash.jpg
Source11:	%{name}-menu-xdg
Patch0:		fluxbox-startfluxbox-pulseaudio.patch
Patch1:		fluxbox-gcc11.patch
BuildRequires:	mkfontdir
BuildRequires:	gettext-devel
# Make sure these exist
BuildRequires:	alsa-plugins-pulseaudio
BuildRequires:	pulseaudio
BuildRequires:	pulseaudio-module-x11
BuildRequires:	pulseaudio-utils
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(zlib)

Requires:	xmessage
Requires:	xdg-compliance-menu

%description
Fluxbox is yet another windowmanager for X. It's a fork from the origi-
nal blackbox-0.61.1 code. Fluxbox looks like blackbox and handles
styles, colors, window placement and similar thing exactly like black-
box. So what's the difference between fluxbox and blackbox then? The
answer is: LOTS!

Have a look at the homepage for more info ;)

%files
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%config(noreplace) %{_sysconfdir}/X11/%{name}/menu
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/16%{name}
%{_sysconfdir}/menu.d/%{name}
%{_bindir}/fbsetbg
%{_bindir}/fbrun
%{_bindir}/fbsetroot
%{_bindir}/fluxbox
%{_bindir}/fluxbox-generate_menu
%{_bindir}/fluxbox-update_configs
%{_bindir}/startfluxbox
%{_bindir}/fluxbox-remote
%{_mandir}/man1/*
%dir %{_datadir}/fonts/fluxbox-artwiz-fonts
%{_datadir}/fonts/fluxbox-artwiz-fonts/*.gz
%{_datadir}/fonts/fluxbox-artwiz-fonts/fonts.dir
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/init
%{_datadir}/%{name}/keys
%{_datadir}/%{name}/splash.jpg
%{_datadir}/%{name}/backgrounds/default.png
%{_datadir}/%{name}/styles/*
%{_datadir}/%{name}/pixmaps/*
%{_sysconfdir}/X11/fontpath.d/fluxbox-artwiz-fonts:unscaled:pri=50
%{_datadir}/%{name}/apps
%{_datadir}/%{name}/overlay
%{_datadir}/%{name}/windowmenu
%{_datadir}/%{name}/nls/*
%{_mandir}/man5/fluxbox-keys.5.*
%{_mandir}/man5/fluxbox-apps.5*
%{_mandir}/man5/fluxbox-menu.5*
%{_mandir}/man5/fluxbox-style.5*

#----------------------------------------------------------------------------

%package pulseaudio
Summary:	Enable pulseaudio support
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}
Requires:	alsa-plugins-pulseaudio
Requires:	pulseaudio
Requires:	pulseaudio-module-x11
Requires:	pulseaudio-utils

%description pulseaudio
Enable pulseaudio support.

%files pulseaudio
%{_sysconfdir}/fluxbox-pulseaudio

#----------------------------------------------------------------------------

%prep
%setup -q -a3
%patch0 -p0 -b .pulseaudio
%patch1 -p0

%build
%configure \
	--enable-xft \
	--enable-xinerama \
	--enable-imlib2 \
	--enable-nls \
	--with-menu=%{_sysconfdir}/X11/fluxbox/menu \
	--with-style=%{_datadir}/%{name}/styles/%{style} \
	--with-keys=%{_datadir}/%{name}/keys \
	--with-init=%{_datadir}/%{name}/init

%make

%install
%makeinstall_std

# icon
install -D -m 644 %{name}48.png %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 644 %{name}32.png %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{name}16.png %{buildroot}%{_miconsdir}/%{name}.png

# session file
install -d %{buildroot}%{_sysconfdir}/X11/wmsession.d
cat > %{buildroot}%{_sysconfdir}/X11/wmsession.d/16fluxbox << EOF
NAME=Fluxbox
ICON=fluxbox.png
EXEC=%{_bindir}/startfluxbox
DESC=%{summary}
SCRIPT:
exec %{_bindir}/startfluxbox
EOF

# menu
install -d %{buildroot}%{_sysconfdir}/menu.d
install -m 0755 %{SOURCE11} %{buildroot}%{_sysconfdir}/menu.d/%{name}

# Artwiz fonts
install -d %{buildroot}%{_datadir}/fonts
tar xjf %{SOURCE6} -C %{buildroot}%{_datadir}/fonts/
pushd %{buildroot}%{_datadir}/fonts/fluxbox-artwiz-fonts
mkfontdir
popd

# mdk-style and background.
install -d %{buildroot}%{_datadir}/%{name}/{styles,backgrounds}
tar xjf %{SOURCE4} -C %{buildroot}%{_datadir}/%{name}
# update background command for fluxbox >= 0.9.15
sed -i "s/^rootCommand:.*@WALLPAPER@/background: aspect\nbackground.pixmap: @WALLPAPER@/" %{buildroot}%{_datadir}/%{name}/styles/%{style}
sed -i "s,\@WALLPAPER@,%{_datadir}/%{name}/backgrounds/default.png," \
                                           %{buildroot}%{_datadir}/%{name}/styles/%{style}
sed -i "s,\@DATADIR\@,%{_datadir}/%{name}," %{buildroot}%{_datadir}/%{name}/styles/%{style}

pushd %{buildroot}%{_datadir}/%{name}/backgrounds/
ln -s %{_datadir}/mdk/backgrounds/default.png default.png
popd
install %{SOURCE10} %{buildroot}%{_datadir}/%{name}/splash.jpg

# bzip2 manpages (should be automatic, dirty); lenny
bzip2 %{buildroot}%{_mandir}/man1/*.1

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/fluxbox-artwiz-fonts \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/fluxbox-artwiz-fonts:unscaled:pri=50

mkdir -p %{buildroot}%{_sysconfdir}
touch -r ChangeLog %{buildroot}%{_sysconfdir}/fluxbox-pulseaudio

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1508 |21cr|fly-2.0.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generate GIF on the fly
Name:		fly
Version:	2.0.0
Release:	14
License:	Distributable
Group:		Graphics
Url:		http://martin.gleeson.com/fly/
Source0:	http://martin.gleeson.com/fly/dist/%{name}-%{version}.tar.bz2
Patch0:		fly-2.0.0-makefile.patch
BuildRequires:	gd-devel

%description
Fly is a graphic tool to generate gif/png on the fly.

%files
%doc README doc/*
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make CFLAGS="%{optflags}"

%install
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1509 |21cr|flyspray-0.9.9.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude pear\\(Zend(.*)\\)
%else
%define _requires_exceptions pear(Zend.*)
%endif

Summary:	A simple Bug tracking system
Name:		flyspray
Version:	0.9.9.6
Release:	10
License:	GPLv2
Group:		Networking/WWW
Url:		http://flyspray.org
Source0:	http://flyspray.org/%{name}-%{version}.tar.bz2
Requires:	apache-mod_php
Requires:	php-adodb
Requires:	apache-mod_socache_shmcb
BuildArch:	noarch

%description
%{name} is a simple bug tracking system, written in php, aimed
at people who do not want to deploy Bugzilla.
It offer most of the features needed without a increased complexity.
The configuration is done trough a web interface, and you can fully
control who can do what on the various task.

%prep
%setup -q -c %{name}-%{release}

%build

%install
%__install -d -m 755 %{buildroot}%{_var}/www/%{name}
cp -aRf * %{buildroot}%{_var}/www/%{name}

# remove .htaccess files
find %{buildroot}%{_var}/www/%{name} -name .htaccess -exec rm -f {} \;

# Create empty config file
%__install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
cat > %{buildroot}%{_sysconfdir}/%{name}/flyspray.conf.php <<EOF
# Configuration file for flyspray will be overide during configuration
EOF

ln -s %{_sysconfdir}/%{name}/flyspray.conf.php %{buildroot}%{_var}/www/%{name}/

%__install -d -m 755  %{buildroot}/%{_webappconfdir}
cat > %{buildroot}/%{_webappconfdir}/%{name}.conf << EOF

Alias /%{name} %{_var}/www/%{name}
<Directory %{_var}/www/%{name}>
    Require all granted
</Directory>

<Directory %{_var}/www/%{name}/adodb>
    Require all denied
</Directory>

<Directory %{_var}/www/%{name}/conf>
    Require all denied
</Directory>

<Directory %{_var}/www/%{name}/includes>
    Require all denied
</Directory>

<Directory %{_var}/www/%{name}/templates>
    Require all denied
</Directory>

<Files %{_var}/www/%{name}/plugins/*.php>
    Require all denied
</Files>

<Files %{_var}/www/%{name}/plugins/fetch.php>
    Require all granted
</Files>
EOF

cat > README.urpmi <<EOF
Once this package is installed, there are a few configuration items which need
to be performed before the blog is usable.  First, you need to install
Mysql or PostgreSQL database and corresponding php modules:

# urpmi mysql php-mysql

or 

# urpmi postgresql php-pgsql

Then, you need to establish a username and password to connect to your
MySQL database as, and make both MySQL/Postgres and Flyspray aware of this.
Let's start by creating the database and the username / password
inside MySQL first:

  # mysql
  mysql> create database flyspray;
  Query OK, 1 row affected (0.00 sec)

  mysql> grant all privileges on flyspray.* to flyspray identified by 'flyspray';
  Query OK, 0 rows affected (0.00 sec)

  mysql> flush privileges;
  Query OK, 0 rows affected (0.00 sec)

  mysql> exit
  Bye
  #

Under certain curcumstances, you may need to run variations of the "grant"
command:
mysql> grant all privileges on flyspray.* to flyspray@localhost identified by 'flyspray';
   OR
mysql> grant all privileges on flyspray.* to flyspray@'%' identified by 'flyspray';

This has created an empty database called 'flyspray', created a user named
'flyspray' with a password of 'flyspray', and given the 'flyspray' user total
permission over the 'flyspray' database.  Obviously, you'll want to select a
different password, and you may want to choose different database and user
names depending on your installation.  The specific values you choose are
not constrained, they simply need to be consistent between the database and the
config file.

Once that's done and the database server and web server have been started, 
 in your favourite web browser, enter following URL :
http://hostname/flyspray/  and 
follow the instructions given to you on the pages you see to set up the 
database tables and begin publishing your blog.
EOF

%files
%doc docs/* 
%{_var}/www/%{name}/adodb
%{_var}/www/%{name}/docs
%{_var}/www/%{name}/favicon.ico
%{_var}/www/%{name}/feed.php
%{_var}/www/%{name}/flyspray.conf.php
%{_var}/www/%{name}/header.php
%{_var}/www/%{name}/htaccess.dist
%{_var}/www/%{name}/includes
%{_var}/www/%{name}/index.php
%{_var}/www/%{name}/javascript
%{_var}/www/%{name}/lang
%{_var}/www/%{name}/plugins
%{_var}/www/%{name}/scripts
%{_var}/www/%{name}/setup
%{_var}/www/%{name}/templates
%{_var}/www/%{name}/themes
%{_var}/www/%{name}/robots.txt
%{_var}/www/%{name}/schedule.php
%dir %attr(0755,apache,apache) %{_var}/www/%{name}/attachments/
%dir %attr(0755,apache,apache) %{_var}/www/%{name}/cache/
%attr(0644,apache,apache) %{_var}/www/%{name}/attachments/index.html
%attr(0644,apache,apache) %{_var}/www/%{name}/cache/index.html
%config(noreplace) %attr(0755,apache,apache) %{_sysconfdir}/%{name}/flyspray.conf.php
%config(noreplace) %{_webappconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1510 |21cr|fmt8-8.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use in system libfmt.so.7
%define __provides_exclude cmake\\(fmt\\)|devel\\(libfmt\\(.*\\)|pkgconfig\\(fmt\\)

%define major 8
%define libname %mklibname fmt %{major}
%define devname %mklibname fmt8 -d

Summary:	Small, safe and fast formatting library
Name:		fmt8
Version:	8.1.1
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://fmtlib.net
Source0:	https://github.com/fmtlib/fmt/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
fmt is an open-source formatting library for C++. It can be used as a safe
alternative to printf or as a fast alternative to IOStreams.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Small, safe and fast formatting shared library
Group:		System/Libraries

%description -n %{libname}
This package contains the library for libfmt.

%files -n %{libname}
%doc ChangeLog.rst LICENSE.rst README.rst
%{_libdir}/libfmt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for small, safe and fast formatting library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	fmt-devel <= 8.0

%description -n %{devname}
This package contains the development header files, libraries
and cmake files for libfmt

%files -n %{devname}
%doc LICENSE.rst
%{_includedir}/fmt/
%{_libdir}/cmake/fmt/
%{_libdir}/pkgconfig/fmt.pc
%{_libdir}/libfmt.so

#----------------------------------------------------------------------------

%prep
%setup -q -n fmt-%{version}

%build
%cmake \
	-DFMT_TEST=OFF
%make_build

%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1511 |21cr|fnfx-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Toshiba laptop function key utility
Name:		fnfx
Version:	0.3
Release:	10
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://fnfx.sf.net
Source0:	downloads.sourceforge.net/project/fnfx/fnfx/fnfx%20v0.3/fnfx-0.3.tar.bz2
Source1:	%{name}.service
Source2:	fnfxd_check.sh
Requires(post,preun,postun):	systemd-units

%description
FnFX enables owners of Toshiba laptops to change the LCD brightness,
control, the internal fan and use the special keys on their keyboard
(Fn-x combinations, hot-keys). The internal functions will give the
possibility to map the Fn-Keys to functions like volume up/down, mute,
suspend to disk, suspend to ram and switch LCD/CRT/TV-out. These
functions heavily depend on the system and/or kernel configuration.
You will need at least a kernel (v2.4.x, v2.5.x, v2.6.x) with ACPI and
Toshiba support (CONFIG_ACPI and CONFIG_ACPI_TOSHIBA).

%files
%doc ChangeLog INSTALL AUTHORS README
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/%{name}
%{_sbindir}/*
%dir %{_sysconfdir}/%{name}
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -m0755 %{SOURCE2} %{buildroot}%{_sbindir}/fnfxd_check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1512 |21cr|focuswriter-1.7.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A full-screen, distraction-free writing program
Name:		focuswriter
Version:	1.7.6
Release:	2
License:	GPLv3+
Group:		Editors
URL:		http://gottcode.org/%{name}/
Source:		http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2

BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	qt5-linguist-tools
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util

%description
A full-screen, distraction-free writing program. 
You can customize your environment by changing the font, colors, and
background image to add ambiance as you type. FocusWriter features
an on-the-fly updating word count, optional auto-save, optional daily
goals, and an interface that hides away to allow you to focus more 
clearly; additionally, when you open the program your current 
work-in-progress will automatically load and position you at the end
of your document, so that you can immediately jump back in.

%files
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/focuswriter.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/focuswriter.1.xz
#---------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5 PREFIX=%{_prefix}
%make

%install
%makeinstall_qt

rm -fr  %{buildroot}%{_datadir}/pixmaps

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop 
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1513 |21cr|folder-color-switcher-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Change a folder colour
Name:		folder-color-switcher
Version:	1.6.0
Release:	1
License:	GPL-3.0-only
Group:		Graphical desktop/Other
Url:		https://github.com/linuxmint/folder-color-switcher
Source0:	http://packages.linuxmint.com/pool/main/f/%{name}/%{name}_%{version}.tar.xz
BuildRequires:	gettext
BuildArch:	noarch

%description
Change a folder colour

%files -f %{name}.lang
%license COPYING.GPL3
%{_datadir}/%{name}

#------------------------------------------------------------------

%package nemo
Summary:	Nemo folder colour
Requires:	%{name} = %{EVRD}
Requires:	nemo-python

%description nemo
Support for Nemo folder colour

%files nemo
%{_datadir}/nemo-python/extensions/*

#------------------------------------------------------------------

%package caja
Summary:	Caja folder colour
Requires:	%{name} = %{EVRD}
Requires:	python3-caja

%description caja
Support for Caja folder colour

%files caja
%{_datadir}/caja-python/extensions/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}
chmod 644 COPYING.GPL3

%build
%make

%install
cp -Rp usr/ %{buildroot}/

for lib in %{buildroot}%{_datadir}/*-python/extensions/*.py; do
	sed '1{\@^#!/usr/bin/python@d}' $lib > $lib.new &&
	touch -r $lib $lib.new &&
	mv $lib.new $lib
done

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1514 |21cr|foliate-2.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A simple and modern GTK eBook reader
Name:		foliate
Version:	2.6.3
Release:	1
License:	GPLv3
Group:		Office
Url:		https://johnfactotum.github.io/foliate
Source0:	https://github.com/johnfactotum/foliate/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	gjs
BuildRequires:	meson
BuildRequires:	gettext
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
Requires:	gjs
Requires:	webkit
# Needed for mobipocket (.mobi) and Kindle File Format (.azw, .azw3)
Requires:	python3
# Optional for text-to-speech
Recommends:	espeak
Recommends:	gspell-i18n

%description
A simple and modern GTK eBook viewer, built with GJS and Epub.js.

%files -f com.github.johnfactotum.Foliate.lang
%doc README.md COPYING
%{_bindir}/com.github.johnfactotum.Foliate
%{_bindir}/foliate
%{_datadir}/applications/com.github.johnfactotum.Foliate.desktop
%{_datadir}/com.github.johnfactotum.Foliate/*
%{_datadir}/glib-2.0/schemas/com.github.johnfactotum.Foliate.gschema.xml
%{_datadir}/metainfo/com.github.johnfactotum.Foliate.appdata.xml
%{_iconsdir}/hicolor/*/apps/com.github.johnfactotum.Foliate*.svg

#-------------------------------------------------------------------

%prep
%setup -q
2to3 --write --nobackups --no-diffs src/assets/KindleUnpack/mobiml2xhtml.py
sed -i -e '1s/python$/python3/' src/assets/KindleUnpack/*.py
%autopatch -p1

%build
%meson
%meson_build

%install
%meson_install

pushd %{buildroot}%{_bindir}
ln -s com.github.johnfactotum.Foliate foliate
popd

%find_lang com.github.johnfactotum.Foliate

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1515 |21cr|fondu-060102-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fonduversion	060102

Name:		fondu
Version:	060102
Release:	1
Summary:	Converts between mac and unix fonts
License:	BSD
Group:		Publishing
Source0:	http://fondu.sourceforge.net/fondu_src-%{fonduversion}.tgz
Url:		http://fondu.sourceforge.net/
Conflicts:	dgen-sdl

%description 
Fondu allows you to convert a mac font into a unix one. ufond converts
a unix font into a mac one.

%prep
%setup -q -n fondu-%{fonduversion}

%build
%configure
%make OPT_FLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir} \
	%{buildroot}%{_mandir}/man1
%makeinstall
install -m 644 *.1 %{buildroot}%{_mandir}/man1

%clean

%files
%doc LICENSE README
%{_bindir}/fondu
%{_bindir}/ufond
%{_bindir}/showfond
%{_bindir}/dfont2res
%{_bindir}/frombin
%{_bindir}/tobin
%{_bindir}/lumper
%{_bindir}/setfondname
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1516 |21cr|fontawesome5-fonts-5.15.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Iconic font set awesome version 5
Summary(ru_RU.UTF-8):	Набор иконических шрифтов awesome версии 5
Name:		fontawesome5-fonts
Version:	5.15.4
Release:	2
License:	OFL
Group:		System/Fonts/True type
Url:		http://fontawesome.io/
Source0:	https://github.com/FortAwesome/Font-Awesome/releases/download/%{version}/fontawesome-free-%{version}-desktop.zip
Source1:	https://github.com/FortAwesome/Font-Awesome/releases/download/%{version}/fontawesome-free-%{version}-web.zip
Source2:	LICENSE.txt
BuildRequires:	fontpackages-devel
BuildRequires:	unzip
BuildArch:	noarch

%description
Scalable vector icons that can be customized — size, color, drop shadow,
and anything that can be done with the power of CSS.

(Note that the font does not contain regular letters, and that icons
are in the range U+F000..U+F23A.)

%description -l ru_RU.UTF-8
Масштабируемые векторные иконки, которые можно настраивать — размер, цвет, отбрасываемую тень
и все, что можно сделать с помощью CSS.

(Обратите внимание, что шрифт не содержит обычных букв и что значки
находятся в диапазоне U+F000..U+F23A.)

%files
%license LICENSE.txt
%{_datadir}/fonts/TTF/fontawesome5/*

#--------------------------------------------------------------------------

%package web
Summary:	Web files for font awesome version 5
Summary(ru_RU.UTF-8):	Веб-файлы для шрифта awesome version 5
License:	MIT
Group:		System/Fonts/True type

%description web
Web files (css, less, scss, etc) for font awesome version 5.

%description web -l ru_RU.UTF-8
Веб-файлы (css, less, scss и т.д.) для шрифта awesome версии 5.

%files web
%{_datadir}/fontawesome5-web/

#--------------------------------------------------------------------------

%prep
%setup -q -c
%setup -q -T -D -a1
cp -p %{SOURCE2} .

%build

%install
install -m 0755 -d %{buildroot}%{_datadir}/fonts/TTF/fontawesome5
install -p -m 0644 */otfs/*.otf %{buildroot}%{_datadir}/fonts/TTF/fontawesome5/

install -m 0755 -d %{buildroot}%{_datadir}/fontawesome5-web/webfonts
install -p -m 0644 */webfonts/*.{ttf,woff,woff2,svg,eot} %{buildroot}%{_datadir}/fontawesome5-web/webfonts
cp -r */css */less */scss %{buildroot}%{_datadir}/fontawesome5-web/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1517 |21cr|fontawesome5-fonts-6.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Iconic font set awesome version 6
Summary(ru_RU.UTF-8):	Набор иконических шрифтов awesome версии 6
Name:		fontawesome5-fonts
Version:	6.5.1
Release:	2
License:	OFL
Group:		System/Fonts/True type
Url:		http://fontawesome.io/
Source0:	https://github.com/FortAwesome/Font-Awesome/releases/download/%{version}/fontawesome-free-%{version}-desktop.zip
Source1:	https://github.com/FortAwesome/Font-Awesome/releases/download/%{version}/fontawesome-free-%{version}-web.zip
Source2:	LICENSE.txt
BuildRequires:	fontpackages-devel
BuildRequires:	unzip
BuildArch:	noarch

%description
Scalable vector icons that can be customized — size, color, drop shadow,
and anything that can be done with the power of CSS.

(Note that the font does not contain regular letters)

%description -l ru_RU.UTF-8
Масштабируемые векторные иконки, которые можно настраивать — размер, цвет, отбрасываемую тень
и все, что можно сделать с помощью CSS.

(Обратите внимание, что шрифт не содержит обычных букв)

#--------------------------------------------------------------------------

%files
%license LICENSE.txt
%{_datadir}/fonts/TTF/fontawesome6/*

#--------------------------------------------------------------------------

%package web
Summary:	Web files for font awesome version 6
Summary(ru_RU.UTF-8):	Веб-файлы для шрифта awesome version 6
License:	MIT
Group:		System/Fonts/True type

%description web
Web files (css, less, scss, etc) for font awesome version 6.

%description web -l ru_RU.UTF-8
Веб-файлы (css, less, scss и т.д.) для шрифта awesome версии 6.

%files web
%{_datadir}/fontawesome6-web/

#--------------------------------------------------------------------------

%prep
%setup -q -c
%setup -q -T -D -a1
cp -p %{SOURCE2} .

%build

%install
install -m 0755 -d %{buildroot}%{_datadir}/fonts/TTF/fontawesome6
install -p -m 0644 */otfs/*.otf %{buildroot}%{_datadir}/fonts/TTF/fontawesome6/

install -m 0755 -d %{buildroot}%{_datadir}/fontawesome6-web/webfonts
install -p -m 0644 */webfonts/*.{ttf,woff2} %{buildroot}%{_datadir}/fontawesome6-web/webfonts
cp -r */css */less */scss %{buildroot}%{_datadir}/fontawesome6-web/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1518 |21cr|fontmatrix-0.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Featureful personal font manager
Name:		fontmatrix
Version:	0.6.0
Release:	4
License:	GPLv2+
Group:		Office
Url:		http://fontmatrix.net/
Source0:	http://fontmatrix.net/archives/fontmatrix-%{version}-Source.tar.gz
Patch0:		fontmatrix-0.6.0-sfmt.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(freetype2)

%description
fontmatrix is a manager built with the kind of features and abilities graphic
designers, layout professionals along with others have felt necessary, but
modernized with some new touches.

Fontmatrix has a concept of 'tagging'. This makes it really nice to group
fonts and even sub-group them logically for use in a book for instance. It
also has extensive gui support for showing all glyphs in a font, previews of
sample text, variable sizing and also tells what kinds of advanced Open Type
features are inside each font. These features have never been seen outside of
a font editor. And not least, it creates a nice PDF catalogue of user's fonts
for printing or reference. In short, fontmatrix is a font manager for
professionals, but is nice and user friendly.

%files
%doc COPYING ChangeLog TODO
%{_bindir}/fontmatrix
%{_mandir}/man1/fontmatrix.1*
%{_datadir}/applications/fontmatrix.desktop
%{_iconsdir}/hicolor/*/apps/fontmatrix.png
%dir %{_datadir}/fontmatrix
%{_datadir}/fontmatrix/*

#----------------------------------------------------------------------------

%prep
%setup -q -n fontmatrix-%{version}-Source
%patch0 -p1

%build
%cmake_qt4
%make

%install
%makeinstall_std -C build

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/fontmatrix.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1519 |21cr|fontpackages-1.44-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spectemplatedir %{_sysconfdir}/rpmdevtools/
%global ftcgtemplatedir %{_datadir}/fontconfig/templates/
%global rpmmacrodir     %{_sysconfdir}/rpm/

Name:    fontpackages
Version: 1.44
Release: 4
Summary: Common directory and macro definitions used by font packages


# Mostly means the scriptlets inserted via this package do not change the
# license of the packages they're inserted in
Group:	   System/X11
License:   LGPLv3+
URL:       http://fedoraproject.org/wiki/fontpackages
Source0:   http://fedorahosted.org/releases/f/o/%{name}/%{name}-%{version}.tar.xz

BuildArch: noarch


%description
This package contains the basic directory layout, spec templates, rpm macros
and other materials used to create font packages.


%package filesystem
Summary: Directories used by font packages
License: Public Domain

%description filesystem
This package contains the basic directory layout used by font packages,
including the correct permissions for the directories.


%package devel
Summary: Templates and macros used to create font packages

Requires: rpmdevtools, %{name}-filesystem = %{version}-%{release}
Requires: fontconfig

%description devel
This package contains spec templates, rpm macros and other materials used to
create font packages.


%package tools
Summary: Tools used to check fonts and font packages

Requires: fontconfig, fontforge
Requires: curl, make, mutt
Requires: rpmlint

%description tools
This package contains tools used to check fonts and font packages


%prep
%setup -q

%build
for file in bin/repo-font-audit bin/compare-repo-font-audit ; do
sed -i "s|^DATADIR\([[:space:]]*\)\?=\(.*\)$|DATADIR=%{_datadir}/%{name}|g" \
  $file
done

%install

# Pull macros out of macros.fonts and emulate them during install
for dir in fontbasedir        fontconfig_masterdir \
           fontconfig_confdir fontconfig_templatedir ; do
  export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" \
    rpm/macros.fonts | %{__awk} '{ print $2 }'))
done

install -m 0755 -d %{buildroot}${_fontbasedir} \
                   %{buildroot}${_fontconfig_masterdir} \
                   %{buildroot}${_fontconfig_confdir} \
                   %{buildroot}${_fontconfig_templatedir} \
                   %{buildroot}%{spectemplatedir} \
                   %{buildroot}%{rpmmacrodir} \
                   %{buildroot}%{_datadir}/fontconfig/templates \
                   %{buildroot}/%_datadir/%{name} \
                   %{buildroot}%{_bindir}
install -m 0644 -p spec-templates/*.spec       %{buildroot}%{spectemplatedir}
install -m 0644 -p fontconfig-templates/*      %{buildroot}%{ftcgtemplatedir}
install -m 0644 -p rpm/macros*                 %{buildroot}%{rpmmacrodir}
install -m 0644 -p private/repo-font-audit.mk  %{buildroot}/%{_datadir}/%{name}
install -m 0755 -p private/core-fonts-report \
                   private/font-links-report \
                   private/fonts-report \
                   private/process-fc-query \
                   private/test-info           %{buildroot}/%{_datadir}/%{name}
install -m 0755 -p bin/*                       %{buildroot}%{_bindir}

cat <<EOF > %{name}-%{version}.files
%defattr(0644,root,root,0755)
%dir ${_fontbasedir}
%dir ${_fontconfig_masterdir}
%dir ${_fontconfig_confdir}
%dir ${_fontconfig_templatedir}
EOF

%files filesystem -f %{name}-%{version}.files
%defattr(0644,root,root,0755)
%dir %{_datadir}/fontconfig

%files devel
%defattr(0644,root,root,0755)
%doc license.txt readme.txt
%config(noreplace) %{spectemplatedir}/*.spec
%{rpmmacrodir}/macros*
%dir %{ftcgtemplatedir}
%{ftcgtemplatedir}/*conf
%{ftcgtemplatedir}/*txt

%files tools
%defattr(0644,root,root,0755)
%doc license.txt readme.txt
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/repo-font-audit.mk
%defattr(0755,root,root,0755)
%{_datadir}/%{name}/core-fonts-report
%{_datadir}/%{name}/font-links-report
%{_datadir}/%{name}/fonts-report
%{_datadir}/%{name}/process-fc-query
%{_datadir}/%{name}/test-info
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1520 |21cr|fonts-bitmap-lfp-fix-0.83-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: fonts-bitmap-lfp-fix
Summary: Linux Font Project fixed width bitmap fonts for X11
Version: 0.83
Release: 9
Source0: http://ovh.dl.sourceforge.net/sourceforge/xfonts/lfpfonts-fix-src-0.83.tar.bz2
License: Public Domain
Group: System/Fonts/X11 bitmap
Url: http://dreamer.nitro.dk/typography/bitmap-fonts.html
BuildRequires: bdftopcf
BuildRequires: mkfontdir
BuildArch: noarch
BuildRequires: fontconfig

%description
This package is a part of bigger project -- Linux Font Project. It includes
fixed width (character cell) fonts for X in PCF format.

The project is now inactive, but the fonts are still good.

%prep
%setup -q -n lfpfonts-fix-src

%build
pushd src
# use the provided ucs2any script, ucs2any from x11-font-util crashes badly
PATH=.:$PATH ./compile 2>/dev/null
popd
pushd lfp-fix
mkfontdir
popd


%install
rm -rf %{buildroot}
mkdir -p %buildroot%_datadir/fonts %buildroot%_sysconfdir/X11/fontpath.d
cp -pr lfp-fix %buildroot%_datadir/fonts/
ln -s ../../..%_datadir/fonts/lfp-fix \
   %buildroot%_sysconfdir/X11/fontpath.d/lfp-fix:unscaled:pri=50


%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%dir %_datadir/fonts/lfp-fix
%_datadir/fonts/lfp-fix/*
%_sysconfdir/X11/fontpath.d/lfp-fix:unscaled:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1521 |21cr|fonts-otf-Aegean-3.01-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Aegean
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Aegean fonts
Name:		fonts-otf-Aegean
Version:	3.01
Release:	6
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
Source1:	http://users.teilar.gr/~g1951d/Anatolian.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Aegean covers the following scripts and symbols supported by The
Unicode Standard 5.2: Basic Latin, Greek and Coptic, Greek Extended,
some Punctuation and other Symbols, Linear B Syllabary, Linear B
Ideograms, Aegean Numbers, Ancient Greek Numbers, Ancient Symbols,
Phaistos Disc, Lycian, Carian, Old Italic, Ugaritic, Old Persian,
Cypriot Syllabary, Phoenician, Lydian, and Archaic Greek Musical
Notation. Aegean allocates in the Supplementary Private Use Plane 15,
the following scripts and symbols, as yet unsupported by Unicode:
Cretan Hieroglyphs, Cypro-Minoan, Linear A, the Arkalochori Axe,
Ancient Greek and Old Italic variant alphabets.

In this version:
* Cretan Hieroglyphs are redesigned and expanded to cover signs on
  seals.
* Cypro-Minoan is entirely new and in agreement with the latest
  edition of the inscriptions.
* Idalion, Akanthou, Eteocypriot, Ancient and Recent Paphian variants
  of the Cypriot Syllabary are available as its Open Type Stylistic
  Sets I-V.
* Anatolian Hieroglyphs are included in this package.

%prep
%setup -q -c %{name}-%{version}
unzip %SOURCE1

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc *.txt
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1522 |21cr|fonts-otf-Aegyptus-3.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Aegyptus
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Aegyptus fonts
Name:		fonts-otf-Aegyptus
Version:	3.11
Release:	6
Source0:	http://users.teilar.gr/~g1951d/%{fontname}311.zip
Source1:	http://users.teilar.gr/~g1951d/Gardiner311.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Ars longa, vita brevis; this is the final version of Aegyptus. The
font encodes some 7100 Egyptian Hieroglyphs, all with a graphical
representation. The main sources of glyphs are Hieroglyphica and the
work of Alan Gardiner. Egyptian Hieroglyphs are allocated in the
Supplementary Private Use Plane 15, for the lack of a standard. The
font also covers Basic Latin, Egyptian Transliteration characters,
Meroitic, some Punctuation and other Symbols and the Gardiner set of
Egyptian Hieroglyphs supported by The Unicode Standard 5.2 (13000 -
1342F).

The Gardiner set is also available in the small font Gardiner (regular
and bold).

%prep
%setup -q -c %{name}-%{version}
unzip -o %SOURCE1

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc *.txt
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1523 |21cr|fonts-otf-Akkadian-2.52-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Akkadian
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Akkadian fonts
Name:		fonts-otf-Akkadian
Version:	2.52
Release:	6
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Akkadian covers the following scripts and symbols supported by The
Unicode Standard 5.2: Basic Latin, Greek and Coptic, some Punctuation
and other Symbols, Cuneiform, Cuneiform Numbers and Punctuation.

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1524 |21cr|fonts-otf-Alexander-3.01-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Alexander
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Alexander fonts
Name:		fonts-otf-Alexander
Version:	3.01
Release:	5
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
A text typeface using the Greek letters designed by Alexander Wilson
(1714-1786), a Scottish doctor, astronomer, and typefounder. The type
was especially designed for an edition of Homer's epics, published in
1756-8 by Andrew and Robert Foulis, printers to the University of
Glasgow. A modern revival, Wilson Greek, has been designed by Matthew
Carter in 1995. Peter S. Baker is also using Wilson's Greek type in
his Junicode font for medieval scholars (2007). Latin and Cyrillic are
based on a Garamond typeface. The font covers the Windows Glyph List,
IPA Extensions, Greek Extended, Ancient Greek Numbers, Byzantine and
Ancient Greek Musical Notation, various typographic extras and several
Open Type features (Case-Sensitive Forms, Small Capitals, Subscript,
Superscript, Numerators, Denominators, Fractions, Old Style Figures,
Historical Forms, Stylistic Alternates, Ligatures).

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1525 |21cr|fonts-otf-Alfios-1.01-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Alfios
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Alfios fonts
Name:		fonts-otf-Alfios
Version:	1.01
Release:	5
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Lowercase upright Greek were designed in 1805 by Firmin Didot (1764 -
1836) and cut by Walfard and Vibert. The typeface, together with a
complete printing house, was donated in 1821 to the new Greek state by
Didot's son, Ambroise Firmin Didot (1790 - 1876). Lowercase italic
Greek were designed in 1802 by Richard Porson (1757 - 1808) and cut by
Richard Austin. They were first used by Cambridge University Press in
1810. Capitals, Latin and Cyrillic, as well as the complete bold
weights, have been designed in an attempt to create a well-balanced
font. The font covers the Windows Glyph List, Greek Extended, various
typographic extras and some Open Type features (Numerators,
Denominators, Fractions, Old Style Figures, Historical Forms,
Stylistic Alternates, Ligatures); it is available in regular, italic,
bold and bold italic.

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1526 |21cr|fonts-otf-Anaktoria-1.01-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Anaktoria
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Anaktoria fonts
Name:		fonts-otf-Anaktoria
Version:	1.01
Release:	5
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Grecs du roi was designed by Claude Garamond (1480 - 1561) between
1541 and 1544, commissioned by king Francis I of France, for the
exclusive use by the Imprimerie Nationale in Paris. Greek in Anaktoria
is based on a modern version of Grecs du roi prepared by Mindaugas
Strockis in 2001. Lowercase Latin stems from the titles in the 1623
First Folio Edition of Shakespeare. Scott Mann & Peter Guither
prepared a modern version for The Illinois Shakespeare Festival in
1995. Cyrillic has been designed to match the above Greek and
Latin. The font covers the Windows Glyph List, Greek Extended, various
typographic extras and some Open Type features (Numerators,
Denominators, Fractions, Old Style Figures, Historical Forms,
Stylistic Alternates, Ligatures, Swash Capitals).

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1527 |21cr|fonts-otf-Analecta-2.52-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Analecta
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Analecta fonts
Name:		fonts-otf-Analecta
Version:	2.52
Release:	6
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Analecta is an ecclesiastic scripts font, covering Basic Latin, Greek
and Coptic, some Punctuation and other Symbols, Coptic, typographica
varia, Specials, Gothic and Deseret.

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1528 |21cr|fonts-otf-Aroania-1.01-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Aroania
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Aroania fonts
Name:		fonts-otf-Aroania
Version:	1.01
Release:	5
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
In 1927, Victor Julius Scholderer (1880 - 1971), on behalf of the
'Society for the Promotion of Greek Studies', got involved in choosing
and consulting the design and production of a Greek type called 'New
Hellenic' cut by the Lanston Monotype Corporation. He chose the
revival of a round, and almost monoline type which had first appeared
in 1492 in the edition of Macrobius, ascribable to the printing shop
of Giovanni Rosso (Joannes Rubeus) in Venice. Aroania is a modern
recast of Victor Scholderer’s 'New Hellenic' font, on the basis of
Verdana. The font covers the Windows Glyph List, Greek Extended,
various typographic extras and is available in regular and bold. The
regular style of the font also covers IPA Extensions, Ancient Greek
Numbers, Byzantine and Ancient Greek Musical Notation and several Open
Type features (Case-Sensitive Forms, Small Capitals, Subscript,
Superscript, Numerators, Denominators, Fractions, Old Style Figures,
Historical Forms, Stylistic Alternates, Ligatures).

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1529 |21cr|fonts-otf-Atavyros-1.01-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Atavyros
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Atavyros fonts
Name:		fonts-otf-Atavyros
Version:	1.01
Release:	5
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Robert Granjon (1513 - 1589) produced his Parangonne Greque typeface
(garmond size) at the instigation of Christophe Plantin as a
counterpart to Garamond's Grec du roi, in Antwerp Holland, between
1560 - 1565. It was used in Plantin's multilingual Bible of
1572. Versions of Granjon's type were used for the 1692 edition of
Diogenes Laertius and for the Greek-Dutch edition of the New Testament
in 1698, both published by Henric Wetstenium in Amsterdam. A digital
revival was prepared by Ralph P. Hancock for his Vusillus font in
1999. Latin and Cyrillic are based on a Goudy typeface. The font
covers the Windows Glyph List, Greek Extended, various typographic
extras and some Open Type features (Numerators, Denominators,
Fractions, Old Style Figures, Historical Forms, Stylistic Alternates,
Ligatures).

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1530 |21cr|fonts-otf-Avdira-3.01-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Avdira
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Avdira fonts
Name:		fonts-otf-Avdira
Version:	3.01
Release:	5
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Upright is based on the lowercase Greek letters in the typeface used
by Demetrios Damilas for the edition of Isocrates, published in Milan
in 1493. A digital revival was prepared by Ralph P. Hancock for his
Milan (Mediolanum) font in 2000. Italic Greek were designed in 1802 by
Richard Porson (1757 - 1808) and cut by Richard Austin. They were
first used by Cambridge University Press in 1810. Capitals, Latin and
Cyrillic, as well as the complete bold weights, have been designed in
an attempt to create a well-balanced font. The font covers the Windows
Glyph List, Greek Extended, various typographic extras and is
available in regular, italic, bold and bold italic. The regular style
of the font also covers IPA Extensions, Ancient Greek Numbers,
Byzantine and Ancient Greek Musical Notation and several Open Type
features (Case-Sensitive Forms, Small Capitals, Subscript,
Superscript, Numerators, Denominators, Fractions, Old Style Figures,
Historical Forms, Stylistic Alternates, Ligatures).

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1531 |21cr|fonts-otf-caesar-dressing-cyrillic-1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	CaesarDressingСyrillic
%define fontdir		%{_otffontsdir}/%{fontname}

Summary(ru_RU.UTF-8):	Шрифт в греческом стиле с поддержкой кириллицы Caesar Dressing
Summary:	Caesar Dressing - font greek style with cyrillic support
Name:		fonts-otf-caesar-dressing-cyrillic
Version:	1
Release:	5
Source0:	https://mutno.me/fonts/files/caesar-dressing-cyrillic.otf
License:	OFL 1.1
Group:		System/Fonts/True type
Url:		https://mutno.me/fonts/
BuildArch:	noarch
BuildRequires:	fonts-rpm-macros
BuildRequires:	mkfontdir
BuildRequires:	mkfontscale

%description
Caesar Dressing is a 'Markers' take on a Greek alphabet.
Open Window fonts gravitate towards more experimental or
spontaneous renderings and this one doesn't look out of
place next to the most experimental of those.
It also maintains the geometric balance of
a classic Greek-font quite effectively.
Designed by Dathan Boardman of Open Window.

Copyright (c) 2011 by Open Window (dathanboardman@gmail.com)
with Reseved Font Name "Caesar Dressing",
(c) 2020 by Denis Ignatov (https://mutno.me/fonts)

%description -l ru_RU.UTF-8
Caesar Dressing - это "маркерный" вариант греческого алфавита.
Шрифты с открытым окном тяготеют к более экспериментальным или
спонтанным визуализациям, и этот не выглядит неуместным рядом
с самыми экспериментальными из них.
Он также довольно эффективно поддерживает геометрический баланс
классического греческого шрифта.
Разработан Дафаном Бордманом из Open Window.

Авторское право (c) 2011 от Open Window (dathanboardman@gmail.com)
с измененным названием шрифта "Caesar Dressing",
(c) 2020 автор Денис Игнатов (https://mutno.me/fonts)

%files
%{fontdir}

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%install
mkdir -p %{buildroot}%{fontdir}

%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1532 |21cr|fonts-otf-crimson-20110816-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname crimson

Summary:	Crimson serif font family
Name:		fonts-otf-crimson
Version:	20110816
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://openfontlibrary.org/font/crimson
Source0:	%{pkgname}.zip
Source1:	OFL.txt
Source2:	OFL-FAQ.txt
BuildArch:	noarch
BuildRequires:	freetype-tools

%description
A Garalde under construction; for the love of the works of Tschichold, Slimbach
and Hoefler. For now, only the cuts Roman, Italic and Bold are kerned.

%prep
%setup -q -c -n %{pkgname}-%{version}

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/OTF/crimson

%__install -m 644 *.otf %{buildroot}%{_xfontdir}/OTF/crimson
ttmkfdir %{buildroot}%{_xfontdir}/OTF/crimson -o %{buildroot}%{_xfontdir}/OTF/crimson/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/OTF/crimson/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/OTF/crimson \
    %{buildroot}%_sysconfdir/X11/fontpath.d/otf-crimson:pri=50

%__install -D -m 644 %{SOURCE1} %{buildroot}%{_docdir}/%name/OFL.txt
%__install -D -m 644 %{SOURCE2} %{buildroot}%{_docdir}/%name/OFL-FAQ.txt

%files
%doc %{_docdir}/%name/OFL.txt
%doc %{_docdir}/%name/OFL-FAQ.txt
%dir %{_xfontdir}/OTF/crimson
%{_xfontdir}/OTF/crimson/*.otf
%verify(not mtime) %{_datadir}/fonts/OTF/crimson/fonts.dir
%{_xfontdir}/OTF/crimson/fonts.scale
%{_sysconfdir}/X11/fontpath.d/otf-crimson:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1533 |21cr|fonts-otf-Musica-2.52-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Musica
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Musica fonts
Name:		fonts-otf-Musica
Version:	2.52
Release:	6
Source0:	http://users.teilar.gr/~g1951d/%{fontname}.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Musica (formerly issued as Musical Symbols), covers the following
scripts and symbols supported by The Unicode Standard 5.2: Basic
Latin, Greek and Coptic, some Punctuation and other Symbols, Byzantine
Musical Symbols, (Western) Musical Symbols, Archaic Greek Musical
Notation.

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1534 |21cr|fonts-otf-poltawski-antiqua-1.101-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenType's Poltawski-Antiqua fonts
Name:		fonts-otf-poltawski-antiqua
Version:	1.101
Release:	4
License:	GUST Font License
Group:		System/Fonts/True type
URL:		http://jmn.pl/antykwa-poltawskiego/
Source0:	http://jmn.pl/pliki/ap%{version}otf.zip
BuildArch:	noarch
BuildRequires:	fontconfig
BuildRequires:	mkfontscale
BuildRequires:	mkfontdir

%description
This font was designed in the 'twenties and the 'thirties
of XX century by a Polish graphic artist and a typographer 
Adam Poltawski.
It was widely used by Polish printing houses as long as metal
types were in use (until ca the 'sixties).

%prep
%setup -qc

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/OTF/antpolt

install -m 644 *.otf %{buildroot}%{_datadir}/fonts/OTF/antpolt

mkfontscale %{buildroot}%{_datadir}/fonts/OTF/antpolt
mkfontdir %{buildroot}%{_datadir}/fonts/OTF/antpolt

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/OTF/antpolt \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/otf-antpolt:pri=50

%files
%dir %{_datadir}/fonts/OTF/antpolt
%{_datadir}/fonts/OTF/antpolt/*.otf
%verify(not mtime) %{_datadir}/fonts/OTF/antpolt/fonts.dir
%{_datadir}/fonts/OTF/antpolt/fonts.scale
%{_sysconfdir}/X11/fontpath.d/otf-antpolt:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1535 |21cr|fonts-otf-stix-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	stix
%define fontdir	 	%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Scientific and Technical Information Exchange fonts
Name:		fonts-otf-stix
Version:	1.0.0
Release:	5
Source0:	STIXv%{version}.zip
License:	OFLv1.1
Group:		System/Fonts/True type
Url:		http://www.stixfonts.org/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
The mission of the Scientific and Technical Information Exchange
(STIX) font creation project is the preparation of a comprehensive set
of fonts that serve the scientific and engineering community in the
process from manuscript creation through final publication, both in
electronic and print formats. Toward this purpose, the STIX fonts will
be made available, under royalty-free license, to anyone, including
publishers, software developers, scientists, students, and the general
public.

The STIX mission will be fully realized when:

* Fully hinted PostScript Type 1 and TrueType font sets have been created
* All characters/glyphs have been incorporated into Unicode
  representation or comparable representation and browsers include
  program logic to fully utilize the STIX font set in the electronic
  representation of scholarly scientific documents


%prep
%setup -q -n STIXv%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 Fonts/*.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}/%{fontdir}
mkfontdir %{buildroot}/%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc License/*.pdf *.pdf
%{fontconfdir}/otf*
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1536 |21cr|fonts-otf-swanky-and-moo-moo-cyrillic-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	SwankyAndMooMooCyrillic
%define fontdir		%{_otffontsdir}/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary(ru_RU.UTF-8):	Шрифт в рукописном стиле с поддержкой кириллицы Swanky and Moo Moo
Summary:	Swanky and Moo Moo - handwritten font with cyrillic support
Name:		fonts-otf-swanky-and-moo-moo-cyrillic
Version:	1
Release:	1
Source0:	https://mutno.me/fonts/files/swanky-and-moo-moo-cyrillic.otf
License:	OFL 1.1
Group:		System/Fonts/True type
Url:		https://mutno.me/fonts/
BuildArch:	noarch
BuildRequires:	fontconfig
BuildRequires:	fontpackages-devel
BuildRequires:	fonts-rpm-macros
BuildRequires:	mkfontdir
BuildRequires:	mkfontscale

%description
The font is Swanky and Moo Moo.
The headset contains 1 file and supports 52 languages. The SIL OFL 1.1 license
can be used in commercial and non-commercial activities.
The development of Swanky and Moo Moo was led by Kimberly Geswein, Denis Ignatov.

Copyright
(c) 2010, Kimberly Geswein (kimberlygeswein.com);
(c) 2018, Denis Ignatov (mutno.me/fonts)

%description -l ru_RU.UTF-8
Шрифт Swanky and Moo Moo.
Гарнитура содержит 1 файл и поддерживает 52 языка. Лицензия SIL OFL 1.1.
Можно использовать в коммерческой и не коммерческой деятельности.
Разработка Swanky and Moo Moo велась Kimberly Geswein, Denis Ignatov.

Copyright
(c) 2010, Kimberly Geswein (kimberlygeswein.com);
(c) 2018, Denis Ignatov (mutno.me/fonts)

%files
%{fontdir}
%{fontconfdir}/otf*

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1537 |21cr|fonts-otf-Symbola-2.53-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname	Symbola
%define fontdir		%{_datadir}/fonts/OTF/%{fontname}
%define fontconfdir	%{_sysconfdir}/X11/fontpath.d

Summary:	Unicode Symbola fonts
Name:		fonts-otf-Symbola
Version:	2.53
Release:	7
Source0:	http://users.teilar.gr/~g1951d/%{fontname}253.zip
License:	Public Domain
Group:		System/Fonts/True type
Url:		http://users.teilar.gr/~g1951d/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale, mkfontdir

%description
Symbola (formerly issued as Unicode Symbols) covers the following
scripts and symbols supported by The Unicode Standard 5.2:
Basic Latin, Latin-1 Supplement, Latin Extended-A, IPA Extensions,
Spacing Modifier Letters, Greek and Coptic, Cyrillic, Cyrillic
Supplementary, General Punctuation, Superscripts and Subscripts,
Combining Diacritical Marks for Symbols, Letterlike Symbols, Number
Forms, Arrows, Mathematical Operators, Miscellaneous Technical,
Control Pictures, Optical Character Recognition, Box Drawing, Block
Elements, Geometric Shapes, Miscellaneous Symbols, Dingbats,
Miscellaneous Mathematical Symbols-A, Supplemental Arrows-A,
Supplemental Arrows-B, Miscellaneous Mathematical Symbols-B,
Supplemental Mathematical Operators, Miscellaneous Symbols and Arrows,
Supplemental Punctuation, CJK Symbols and Punctuation, Yijing Hexagram
Symbols, Vertical Forms, Combining Half Marks, CJK Compatibility
Forms, Specials, Tai Xuan Jing Symbols, Counting Rod Numerals,
Mathematical Alphanumeric Symbols, Mahjong Tile Symbols, Domino Tile
Symbols.

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}

%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 *.otf %{buildroot}%{fontdir}
mkfontscale %{buildroot}%{fontdir}
mkfontdir %{buildroot}%{fontdir}

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/otf-%{fontname}:pri=50

%clean
%__rm -rf %{buildroot}

%files
%doc *.txt
%{fontconfdir}/otf*
%dir %{fontdir}
%{fontdir}/*.otf
%{fontdir}/fonts.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1538 |21cr|fonts-ttf-ancient-semitic-0.06.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname AncientSemiticFonts
%define oversion 0.06-1

%define _fontdir %{_datadir}/fonts/TTF

Summary:	A collection of fonts related to the history of the Hebrew writing
Name:		fonts-ttf-ancient-semitic
Version:	0.06.1
Release:	3
License:	GPLv2
Url:		http://culmus.sourceforge.net/ancient/index.html
Source0:	http://sourceforge.net/downloads/project/culmus/ancient_fonts/%{oname}-%{oversion}/%{oname}-%{oversion}.tgz
Source1:	GenerateTTF.pe
Group:		System/Fonts/True type
BuildRequires:	fontconfig
BuildRequires:	fontforge
BuildRequires:	ttmkfdir
Provides:	ancient-semitic-fonts = %{version}-%{release}
BuildArch:	noarch

%description
This package contains a collection of fonts related to the
history of the Hebrew writing. Starting with the Proto-Canaanite
continuing with Phoenician/Canaanite, Paleo-Hebrew, Aramaic, early
Hebrew Square Script - all the way to the modern Hebrew letter forms. 

%files
%doc README LICENSE CHANGES
%{_fontdir}/AncientSemitic

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{oversion}

#fix rights 
chmod 644 README LICENSE CHANGES

#build fonts from source
rm -rf src/*.ttf

%build
pushd src
install -m755 %{SOURCE1} .
for i in *.sfd
	do ./GenerateTTF.pe $i .
done
popd

%install
mkdir -p %{buildroot}%{_fontdir}/AncientSemitic
cp src/*.ttf %{buildroot}%{_fontdir}/AncientSemitic

ttmkfdir -d %{buildroot}%{_fontdir}/AncientSemitic -o %{buildroot}%{_fontdir}/AncientSemitic/fonts.dir
ln -s fonts.dir %{buildroot}%{_fontdir}/AncientSemitic/fonts.scale


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1539 |21cr|fonts-ttf-andagii-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname andagii

%define fontdir %{_datadir}/fonts/TTF/%{fontname}
%define fontconfdir %{_sysconfdir}/X11/fontpath.d

Summary:	Andagii font for the Osmanya script
Name:		fonts-ttf-%{fontname}
Version:	1.0
Release:	6
License:	GPL
Group:		System/Fonts/True type
Url:		http://www.i18nguy.com/unicode/unicode-font.html
Source0:	%{fontname}.zip
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
BuildArch:	noarch

%description
This package contains the Andagii font for the Osmanya script by
Mark Williamson. Ugaritic and Shavian are also supported.

%files
%dir %{fontdir}
%{fontdir}/*.ttf
%{fontdir}/fonts.*
%{fontconfdir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -c -T
unzip %{SOURCE0}
mv -f ANDAGII_.TTF andagii.ttf

%install
install -m 0755 -d %{buildroot}%{fontdir}
install -m 0644 -p *.ttf %{buildroot}%{fontdir}
ttmkfdir -u %{buildroot}%{fontdir} > %{buildroot}%{fontdir}/fonts.dir
ln -s fonts.dir %{buildroot}%{fontdir}/fonts.scale

install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/ttf-%{fontname}:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1540 |21cr|fonts-ttf-charis-sil-4.110-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname CharisSIL

Summary:	Unicode serif font family for typography
Name:		fonts-ttf-charis-sil
Version:	4.110
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&item_id=CharisSILfont
Source0:	%{pkgname}-%{version}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
Charis is similar to Bitstream Charter, one of the first fonts designed
specifically for laser printers. It is highly readable and holds up well
in less-than-ideal reproduction environments. It also has a full set of styles
- regular, italic, bold, bold italic - and so is more useful in general
publishing than Doulos SIL. Charis is a serif, proportionally-spaced font
optimized for readability in long printed documents.

The goal for this product was to provide a single Unicode-based font family
that would contain a comprehensive inventory of glyphs needed for almost any
Roman- or Cyrillic-based writing system, whether used for phonetic
or orthographic needs. In addition, there is provision for other characters
and symbols useful to linguists. This font makes use of state-of-the-art font
technologies to support complex typographic issues, such as the need
to position arbitrary combinations of base glyphs and diacritics optimally. 


%prep
%setup -q -n %{pkgname}-%{version}
dos2unix *.txt

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/charis-sil

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/charis-sil
ttmkfdir %{buildroot}%{_xfontdir}/TTF/charis-sil -o %{buildroot}%{_xfontdir}/TTF/charis-sil/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/charis-sil/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/charis-sil \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-charis-sil:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
%dir %{_xfontdir}/TTF/charis-sil
%{_xfontdir}/TTF/charis-sil/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/charis-sil/fonts.dir
%{_xfontdir}/TTF/charis-sil/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-charis-sil:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1541 |21cr|fonts-ttf-chinese-0.2.20080216.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Unified Chinese True Type font
Name:		fonts-ttf-chinese
Version:	0.2.20080216.1
Release:	21
Epoch:		1
License:	Arphic Public License
Group:		System/Fonts/True type
Url:		http://www.freedesktop.org/wiki/Software/CJKUnifonts
Source6:	cidinst.chinese
Source7:	cidunin.chinese
Source10:	http://apt.debian.org.tw/pool/t/ttf-arphic-ukai/ttf-arphic-ukai_%{version}.orig.tar.gz
Source11:	http://apt.debian.org.tw/pool/t/ttf-arphic-ukai/ttf-arphic-uming_%{version}.orig.tar.gz
BuildRequires:	fontconfig
Provides:	fonts-ttf-big5 = %{EVRD}
Provides:	fonts-ttf-gb2312 = %{EVRD}
BuildArch:	noarch

%description
Chinese True Type font covering both tranditional and simplified chinese,
in Sung and Kai font face. It was merged by Arne Goetje, using Sung/Kai
face fonts (both in trad. and simp. Chinese) donated by Arphic Technology
Co Ltd.

In addition, it includes embedded 11-16 pixel bitmap fonts done by Firefly,
and HKSCS(Hong Kong) glyphs done by Akar et. al.

%files
%defattr(0644,root,root,0755)
%doc ../doc/*
%dir %{_datadir}/fonts/TTF/chinese/
%{_datadir}/fonts/TTF/chinese/*
%{_sysconfdir}/X11/fontpath.d/ttf-chinese:pri=50
%{_sysconfdir}/fonts/conf.d/*.conf

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -n ttf-arphic-ukai -a 10
%setup -q -c -T -D -n ttf-arphic-uming -a 11

%build
cd ..

mkdir -p doc
# prevent name clash
cp ttf-arphic-ukai/README doc/README-ukai
cp ttf-arphic-uming/README doc/README-uming
cp ttf-arphic-ukai/FONTLOG doc/FONTLOG-ukai
cp ttf-arphic-uming/FONTLOG doc/FONTLOG-uming

cp ttf-arphic-ukai/CONTRIBUTERS ttf-arphic-ukai/KNOWN_ISSUES ttf-arphic-ukai/NEWS ttf-arphic-ukai/TODO doc/

# merge fonts.dir
grep uming.ttc ttf-arphic-uming/fonts.dir > fonts.dir.prepare
grep ukai.ttc ttf-arphic-ukai/fonts.dir >> fonts.dir.prepare
wc -l fonts.dir.prepare |awk -F' ' '{print $1}' > fonts.dir
cat fonts.dir.prepare >> fonts.dir

# merge fonts.scale
grep uming.ttc ttf-arphic-uming/fonts.scale > fonts.scale.prepare
grep ukai.ttc ttf-arphic-ukai/fonts.scale >> fonts.scale.prepare
wc -l fonts.scale.prepare |awk -F' ' '{print $1}' > fonts.scale
cat fonts.scale.prepare >> fonts.scale

%install
cd ..

install -d %{buildroot}%{_datadir}/fonts/TTF/chinese/
install -m 644 ttf-arphic-ukai/ukai.ttc %{buildroot}%{_datadir}/fonts/TTF/chinese/
install -m 644 ttf-arphic-uming/uming.ttc %{buildroot}%{_datadir}/fonts/TTF/chinese/
install -m 644 fonts.dir fonts.scale %{buildroot}%{_datadir}/fonts/TTF/chinese/

mkdir -p %{buildroot}%{_sysconfdir}/fonts/conf.d/
install -m 644 ttf-arphic-ukai/35-ttf-arphic-ukai-aliases.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/
install -m 644 ttf-arphic-uming/35-ttf-arphic-uming-aliases.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/

touch %{buildroot}%{_datadir}/fonts/TTF/chinese/fonts.*

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/chinese \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-chinese:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1542 |21cr|fonts-ttf-chinese-opendesktop-1.6.100-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenDesktop.Org.tw Font
Name:		fonts-ttf-chinese-opendesktop
Version:	1.6.100
Release:	2
License:	Arphic Public License
Group:		System/Fonts/True type
Url:		http://www.opendesktop.org.tw/
Source0:	ftp://ftp.opendesktop.org.tw/odp/ODOFonts/OpenFonts/opendesktop-fonts-%{version}.tar.xz
BuildArch:	noarch
BuildRequires:	fontconfig
Requires(post): mkfontdir, mkfontscale
Requires(postun): mkfontdir, mkfontscale
Obsoletes:	fonts-ttf-chinese-compat < 1.6.100
Provides:	fonts-ttf-chinese-compat = %{version}-%{release}

%description
OpenDesktop.Org.tw Font -- Simplified and Traditional Chinese and Japanese
Ming and Kai Face, based on Chinese and Japanese TTF Fonts donated by
Arphic company.

%files
%doc Changelog Changelog.zh_TW AUTHORS COPYRIGHT license
%dir %{_datadir}/fonts/TTF/chinese-opendesktop/
%{_datadir}/fonts/TTF/chinese-opendesktop/*.ttf
%{_datadir}/fonts/TTF/chinese-opendesktop/*.ttc
%{_sysconfdir}/X11/fontpath.d/chinese-opendesktop:pri=50
%{_datadir}/fontconfig/conf.avail/*
%{_datadir}/ghostscript/conf.d/*

%post
[ -x %{_bindir}/mkfontdir ] && %{_bindir}/mkfontdir %{_datadir}/fonts/ttf/chinese-opendesktop
[ -x %{_bindir}/mkfontscale ] && %{_bindir}/mkfontscale %{_datadir}/fonts/ttf/chinese-opendesktop

%postun
if [ "$1" = "0" ]; then
  [ -x %{_bindir}/mkfontdir ] && %{_bindir}/mkfontdir %{_datadir}/fonts/ttf/chinese-opendesktop
  [ -x %{_bindir}/mkfontscale ] && %{_bindir}/mkfontscale %{_datadir}/fonts/ttf/chinese-opendesktop
fi

#----------------------------------------------------------------------------

%package -n fonts-ttf-default-zh_TW
Summary: Virtual package providing default zh_TW fonts
Group: System/Fonts/True type
Requires: %{name} = %{version}

%description -n fonts-ttf-default-zh_TW
This package provides default TrueType font for zh_TW locale.

%files -n fonts-ttf-default-zh_TW

#----------------------------------------------------------------------------

%prep
%setup -q -n opendesktop-fonts-%{version} 

%install
rm -rf %buildroot
install -d %{buildroot}/%{_datadir}/fonts/TTF/chinese-opendesktop/
install -m 644 odosung.ttc %{buildroot}/%{_datadir}/fonts/TTF/chinese-opendesktop/
install -m 644 odokai.ttf %{buildroot}/%{_datadir}/fonts/TTF/chinese-opendesktop/
install -m 644 odohei.ttf %{buildroot}/%{_datadir}/fonts/TTF/chinese-opendesktop/

install -d %{buildroot}%{_datadir}/fontconfig/conf.avail/
install -m 644 69-odofonts.conf %{buildroot}%{_datadir}/fontconfig/conf.avail/
install -m 644 80-odofonts-original.conf %{buildroot}%{_datadir}/fontconfig/conf.avail/
install -m 644 80-odofonts-simulate-MS-simplified-chinese.conf %{buildroot}%{_datadir}/fontconfig/conf.avail/
install -m 644 80-odofonts-simulate-MS-traditional-chinese.conf %{buildroot}%{_datadir}/fontconfig/conf.avail/
install -m 644 80-odohei.conf %{buildroot}%{_datadir}/fontconfig/conf.avail/
install -m 644 80-odokai.conf %{buildroot}%{_datadir}/fontconfig/conf.avail/
install -m 644 80-odosung.conf %{buildroot}%{_datadir}/fontconfig/conf.avail/

# for ghostscript
install -d %{buildroot}/%{_datadir}/ghostscript/conf.d/
install -m 0644 FAPIcidfmap.zh_TW %{buildroot}/%{_datadir}/ghostscript/conf.d/
install -m 0644 FAPIcidfmap.zh_CN %{buildroot}/%{_datadir}/ghostscript/conf.d/
install -m 0644 cidfmap.zh_TW %{buildroot}/%{_datadir}/ghostscript/conf.d/
install -m 0644 cidfmap.zh_CN %{buildroot}/%{_datadir}/ghostscript/conf.d/
install -m 0644 CIDFnmap.zh_TW %{buildroot}/%{_datadir}/ghostscript/conf.d/
install -m 0644 CIDFnmap.zh_CN %{buildroot}/%{_datadir}/ghostscript/conf.d/

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/ttf/chinese-opendesktop \
    %{buildroot}%_sysconfdir/X11/fontpath.d/chinese-opendesktop:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1543 |21cr|fonts-ttf-consolamono-20110922-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname consolamono

Summary:	Consola Mono Book typeface
Name:		fonts-ttf-consolamono
Version:	20110922
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://openfontlibrary.org/font/consolamono
Source0:	%{pkgname}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools

%description
Monospaced font Consola Mono.

%prep
%setup -q -n 'Consola Mono'

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/consolamono

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/consolamono
ttmkfdir %{buildroot}%{_xfontdir}/TTF/consolamono -o %{buildroot}%{_xfontdir}/TTF/consolamono/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/consolamono/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/consolamono \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-consolamono:pri=50

%files
%doc *.txt
%dir %{_xfontdir}/TTF/consolamono
%{_xfontdir}/TTF/consolamono/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/consolamono/fonts.dir
%{_xfontdir}/TTF/consolamono/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-consolamono:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1544 |21cr|fonts-ttf-designosaur-20110526-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname designosaur

Summary:	Designosaur font family
Name:		fonts-ttf-designosaur
Version:	20110526
Release:	4
License:	Creative Commons Attribution
Group:		System/Fonts/True type
URL:		http://openfontlibrary.org/font/designosaur
Source0:	%{pkgname}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools

%description
"Designosaur" typeface was inspired by classic school design canons to turn
greatly elegant and functional, serve for various ideas and survive decades.

%prep
%setup -q -c -n %{name}-%{version}

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/designosaur

%__install -m 644 OT-tt/*.ttf %{buildroot}%{_xfontdir}/TTF/designosaur
ttmkfdir %{buildroot}%{_xfontdir}/TTF/designosaur -o %{buildroot}%{_xfontdir}/TTF/designosaur/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/designosaur/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/designosaur \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-designosaur:pri=50

%__install -d %{buildroot}%{_docdir}/%{name}
cat > %{buildroot}%{_docdir}/%{name}/README << EOF
Family		Designosaur
Designer	Sergiy S. Tkachenko 
Foundry		Sergiy S. Tkachenko 
License		CC-BY
Category	Serif

Description

"Designosaur" typeface was inspired by classic school design canons to turn
greatly elegant and functional, serve for various ideas and survive decades.

Full Language Support

Afrikaans, Baltic, Basic Cyrillic, Basic Latin, Catalan, Central European,
Dutch, Euro, Igbo Onwu, Pinyin, Romanian, Turkish, Vietnamese, Western
European.
EOF

%files
%doc %{_docdir}/%{name}/README
%dir %{_xfontdir}/TTF/designosaur
%{_xfontdir}/TTF/designosaur/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/designosaur/fonts.dir
%{_xfontdir}/TTF/designosaur/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-designosaur:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1545 |21cr|fonts-ttf-DidactGothic-20110825-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname DidactGothic

Summary:	Sans-serif font
Name:		fonts-ttf-DidactGothic
Version:	20110825
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://io.debian.net/~danielj/
Source0:	http://io.debian.net/~danielj/DidactGothic/%{pkgname}-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
Didact Gothic is a sans-serif font designed to present each letter in the form
most often used in elementary classrooms. This makes it very suitable
for literacy efforts.

The font supports all of Basic Latin, Latin-1 Supplement, and most of Latin
Extended-A. It supports almost all Latin-alphabet European languages.
It also supports the major Cyrillic scripts, including non-Slavic languages,
as well as modern and polytonic Greek.

%prep
%setup -q -c -n %{pkgname}-%{version}
chmod -x *
dos2unix OFL.txt

%build

%install
%__mkdir_p %{buildroot}%{_xfontdir}/TTF/DidactGothic

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/DidactGothic
ttmkfdir %{buildroot}%{_xfontdir}/TTF/DidactGothic -o %{buildroot}%{_xfontdir}/TTF/DidactGothic/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/DidactGothic/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/DidactGothic \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-DidactGothic:pri=50

%files
%doc FONTLOG.txt OFL.txt
%dir %{_xfontdir}/TTF/DidactGothic
%{_xfontdir}/TTF/DidactGothic/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/DidactGothic/fonts.dir
%{_xfontdir}/TTF/DidactGothic/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-DidactGothic:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1546 |21cr|fonts-ttf-doulos-sil-4.110-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname DoulosSIL

Summary:	Unicode Times-like font with only regular face
Name:		fonts-ttf-doulos-sil
Version:	4.110
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://scripts.sil.org/cms/scripts/page.php?site_id=nrsi&id=DoulosSILfont
Source0:	%{pkgname}-%{version}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
The goal for this product was to provide a single Unicode-based font family
that would contain a comprehensive inventory of glyphs needed for almost any
Roman- or Cyrillic-based writing system, whether used for phonetic
or orthographic needs. In addition, there is provision for other characters
and symbols useful to linguists. This font makes use of state-of-the-art font
technologies to support complex typographic issues, such as the need
to position arbitrary combinations of base glyphs and diacritics optimally.

Doulos is very similar to Times/Times New Roman, but only has a single face -
regular. It is intended for use alongside other Times-like fonts where
a range of styles (italic, bold) are not needed.

%prep
%setup -q -n %{pkgname}-%{version}
dos2unix *.txt

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/doulos-sil

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/doulos-sil
ttmkfdir %{buildroot}%{_xfontdir}/TTF/doulos-sil -o %{buildroot}%{_xfontdir}/TTF/doulos-sil/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/doulos-sil/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/doulos-sil \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-doulos-sil:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt README.txt
%dir %{_xfontdir}/TTF/doulos-sil
%{_xfontdir}/TTF/doulos-sil/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/doulos-sil/fonts.dir
%{_xfontdir}/TTF/doulos-sil/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-doulos-sil:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1547 |21cr|fonts-ttf-dustismo-2.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A small collection of Truetype fonts (GPL)
Name:		fonts-ttf-dustismo
Version:	2.0
Release:	16
License:	GPL
Group:		System/Fonts/True type
Url:		http://www.dustismo.com
Source0:	Dustismo.tgz
Source1:	Abogada_loco.zip
Source2:	balker.zip
Source3:	Domestic_Manners.zip
Source4:	El_Abogado_Loco.zip
Source5:	flatline.zip
Source6:	ItWasntMe.zip
Source7:	Junkyard.zip
Source8:	MarkedFool.zip
Source9:	PenguinAttack.zip
Source10:	Progenisis.zip
Source11:	Swift.zip
Source12:	Wargames.zip
Source13:	Winks.zip
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
Provides:	dustismo-fonts = %{EVRD}
BuildArch:	noarch

%description
A small collection of Truetype fonts released under the GPL.
One of the fonts included is Dustismo. The aim is to create a standard,
high quality, all purpose, sans serif font.

%files
%defattr(0644,root,root,0755)
%doc installation.txt license.txt
%dir %{_datadir}/fonts/ttf/dustismo
%config(noreplace) %{_datadir}/fonts/ttf/dustismo/fonts.dir
%config(noreplace) %{_datadir}/fonts/ttf/dustismo/fonts.scale
%{_datadir}/fonts/ttf/dustismo/*.ttf
%{_sysconfdir}/X11/fontpath.d/ttf-dustismo:pri=50

#----------------------------------------------------------------------------

%prep
%setup -qc
unzip -o %{SOURCE2}
unzip -o %{SOURCE3}
unzip -o %{SOURCE4}
unzip -o %{SOURCE5}
unzip -o %{SOURCE6}
unzip -o %{SOURCE7}
unzip -o %{SOURCE8}
unzip -o %{SOURCE9}
unzip -o %{SOURCE10}
unzip -o %{SOURCE11}
unzip -o %{SOURCE12}
unzip -o %{SOURCE13}

mv "It wasn't me.ttf" It_wasn_t_me.ttf

%install
mkdir -p %{buildroot}%{_datadir}/fonts/ttf/dustismo
cp -f *.ttf %{buildroot}%{_datadir}/fonts/ttf/dustismo
{
    pushd %{buildroot}%{_datadir}/fonts/ttf/dustismo
    ttmkfdir > fonts.dir
    cp fonts.dir fonts.scale
    popd
}

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/ttf/dustismo \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-dustismo:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1548 |21cr|fonts-ttf-ebgaramond-0.014e-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname	EBGaramond

Name:		fonts-ttf-ebgaramond
Summary:	A revival of Claude Garamont's famous humanist typeface
Version:	0.014e
Release:	5
License:	OFL
Group:		System/Fonts/True type
URL:		http://www.georgduffner.at/ebgaramond/index.html
Source0:	https://github.com/downloads/georgd/EB-Garamond/%{pkgname}-%{version}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
Garamont’s fonts represent a milestone in the history of type design,
a touchstone to which font designers have been returning ever since.
EB Garamond is an open source project to create a revival of Claude
Garamont’s famous humanist typeface from the mid-16th century. Its design
reproduces the original by Claude Garamont: The source for the letterforms
is a scan of a specimen known as the “Berner specimen”, which, composed
in 1592 by Conrad Berner, son-in-law of Christian Egenolff and his successor
at the Egenolff print office, shows Garamont’s roman and Granjon’s italic
fonts at different sizes. Hence the name of this project: Egenolff-Berner
Garamond.

%prep
%setup -qn %{pkgname}-%{version}
dos2unix COPYING

%build

%install
%__mkdir_p %{buildroot}%{_xfontdir}/TTF/ebgaramond

%__install -m 644 ttf/*.ttf %{buildroot}%{_xfontdir}/TTF/ebgaramond
ttmkfdir %{buildroot}%{_xfontdir}/TTF/ebgaramond -o %{buildroot}%{_xfontdir}/TTF/ebgaramond/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/ebgaramond/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/ebgaramond \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-ebgaramond:pri=50

%files
%defattr(0644,root,root,0755)
%doc COPYING
%dir %{_xfontdir}/TTF/ebgaramond
%{_xfontdir}/TTF/ebgaramond/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/ebgaramond/fonts.dir
%{_xfontdir}/TTF/ebgaramond/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-ebgaramond:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1549 |21cr|fonts-ttf-edrip-r6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname edrip-ttf

Summary: contrast sans-serif font
Name: fonts-ttf-edrip
Version: r6
Release: 5
License: OFL
Group: System/Fonts/True type
URL: http://code.google.com/p/edrip/
Source0: http://edrip.googlecode.com/files/%{pkgname}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: freetype-tools

%description
Edrip font is a contrast sans-serif font. It is based on the Teams font
released on 2000 by TopTeam Co. which can be found in Debian:
http://packages.debian.org/sarge/t1-teams. The font is distributed under the
terms of SIL Open Font License. Up to now this font contains symbols for
Cyrillic and basic Latin alphabets.

%prep
%setup -q -c -n %{pkgname}-%{version}

%build

%install
%__mkdir_p %{buildroot}%{_xfontdir}/TTF/edrip

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/edrip
ttmkfdir %{buildroot}%{_xfontdir}/TTF/edrip > %{buildroot}%{_xfontdir}/TTF/edrip/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/edrip/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/edrip \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-edrip:pri=50

%files
%defattr(-,root,root,-)
%doc README OFL.txt OFL-FAQ.txt FontLog.txt
%dir %{_xfontdir}/TTF/edrip
%{_xfontdir}/TTF/edrip/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/edrip/fonts.dir
%{_xfontdir}/TTF/edrip/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-edrip:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1550 |21cr|fonts-ttf-essays1743-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A small collection of Truetype fonts
Name:		fonts-ttf-essays1743
Version:	1.0
Release:	13
License:	GPL/LGPL
Group:		System/Fonts/True type
Url:		http://www.thibault.org/fonts/
Source0:	StayPuft.ttf.tar.gz
Source1:	Essays1743-1.0-ttf.tar.gz
Source2:	Isabella.ttf.tar.gz
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
BuildArch:	noarch

%description 
A small collection of Truetype fonts.

This package contains 3 fonts:
 * Essays1743 which is based on the typeface used in a 1743
   English translation of Montaigne's Essays,
 * Isabella is based on the calligraphic hand used in the Isabella
   Breviary, made around 1497, in Holland, for Isabella of Castille,
   the first queen of united Spain,
 * StayPuft is a rounded, sort of marshmallowy font.
   It's kind of cute, and might be good for frivolous stuff such as
   birthday cards.

%files
%defattr(0644,root,root,0755)
%doc StayPuft.README.txt Isabella/Isabella.README.txt Essays1743/Essays1743.README.txt
%dir %{_datadir}/fonts/ttf/essays1743
%config(noreplace) %{_datadir}/fonts/ttf/essays1743/fonts.dir
%config(noreplace) %{_datadir}/fonts/ttf/essays1743/fonts.scale
%{_datadir}/fonts/ttf/essays1743/*.ttf
%{_sysconfdir}/X11/fontpath.d/ttf-essays:pri=50

#----------------------------------------------------------------------------

%prep
%setup -qc %{name}-%{version} -a1 -a2

%install
mkdir -p %{buildroot}%{_datadir}/fonts/ttf/essays1743

cp -f *.ttf %{buildroot}%{_datadir}/fonts/ttf/essays1743/
cp -f Isabella/*.ttf %{buildroot}%{_datadir}/fonts/ttf/essays1743/
cp -f Essays1743/*.ttf %{buildroot}%{_datadir}/fonts/ttf/essays1743/

{
    pushd %{buildroot}%{_datadir}/fonts/ttf/essays1743
    ttmkfdir > fonts.dir
    cp fonts.dir fonts.scale
    popd
}
# Rename docs
cp README.txt StayPuft.README.txt
cp Isabella/README.txt Isabella/Isabella.README.txt
cp Essays1743/README Essays1743/Essays1743.README.txt

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/ttf/essays1743 \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-essays:pri=50


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1551 |21cr|fonts-ttf-ethiopic-1.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ethiopic TrueType fonts
Name:		fonts-ttf-ethiopic
Version:	1.0
Release:	20
License:	GPL
Group:		System/Fonts/True type
# GFZemen unicode font from
# ftp://ftp.ethiopic.org/pub/fonts/TrueType/gfzemenu.ttf
# the site seems gone now
Source0:	fonts-ttf-ethiopic.tar.bz2

BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale

%description
This Package provides Free Ethiopic TrueType fonts.

%prep

%setup -q -n %{name}

%install
rm -fr %buildroot

mkdir -p %buildroot/%_datadir/fonts/TTF/ethiopic/
cp *.ttf %buildroot/%_datadir/fonts/TTF/ethiopic/

(
cd %buildroot/%_datadir/fonts/TTF/ethiopic/
mkfontscale > fonts.scale
cp fonts.scale fonts.dir
)

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/ethiopic \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-ethiopic:pri=50

%clean
rm -fr %buildroot

%files
%defattr(0644,root,root,0755)
%dir %_datadir/fonts/TTF/ethiopic/
%_datadir/fonts/TTF/ethiopic/*
%_sysconfdir/X11/fontpath.d/ttf-ethiopic:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1552 |21cr|fonts-ttf-Gentium-1.02-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname		Gentium

Summary:		Free multilingual Truetype fonts
Name:			fonts-ttf-Gentium
Version:		1.02
Release:		8
Source0:		%{pkgname}_102_W.zip
License:		OFL
Group:			System/Fonts/True type
Url:			http://scripts.sil.org/%{pkgname}
BuildArch:		noarch
BuildRequires: fontconfig
BuildRequires:		freetype-tools, dos2unix

%description
Gentium is a typeface family designed to enable the diverse ethnic
groups around the world who use the Latin and Greek scripts to produce
readable, high-quality publications. It supports a wide range of
Latin-based alphabets and includes glyphs that correspond to all the
Latin ranges of Unicode.

The design is intended to be highly readable, reasonably compact, and
visually attractive. The additional 'extended' Latin letters are
designed to naturally harmonize with the traditional 26
ones. Diacritics are treated with careful thought and attention to
their use. Gentium also supports both polytonic and monotonic Greek,
including a number of alternate forms. Expansion of the character set
to include more extended Latin glyphs (Unicode 5.1), archaic Greek
symbols, and full Cyrillic script support is underway and will be
released in 2008.

%prep
%setup -q -n %{pkgname}102

%install
%__rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}

install -m 644 *.TTF %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}
ttmkfdir %{buildroot}/%{_datadir}/fonts/TTF/%{pkgname}  > %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/%{pkgname} \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-%{pkgname}:pri=50

dos2unix README.txt

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc *.txt
%dir %{_datadir}/fonts/TTF/%{pkgname}
%{_datadir}/fonts/TTF/%{pkgname}/*.TTF
%verify(not mtime) %{_datadir}/fonts/TTF/%{pkgname}/fonts.dir
%{_datadir}/fonts/TTF/%{pkgname}/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-%{pkgname}:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1553 |21cr|fonts-ttf-gliphmaker.com-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname gliphmaker.com-fonts

Summary: Fonts from gliphmaker.com Web-site
Name: fonts-ttf-gliphmaker.com
Version: 1.0
Release: 4
License: Other/Non-commertial
Group: System/Fonts/True type
URL: http://www.gliphmaker.com/
Source0: %{pkgname}-%{version}.tar.bz2
BuildArch: noarch
BuildRequires: freetype-tools

%description
A collection of non-commertial fonts from gliphmaker.com Web-site

%prep
%setup -q -n %{pkgname}-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/gliphmaker.com

install -m 644 *.?tf $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/gliphmaker.com
ttmkfdir $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/gliphmaker.com > $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/gliphmaker.com/fonts.dir
ln -s fonts.dir $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/gliphmaker.com/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/gliphmaker.com \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-gliphmaker.com:pri=50

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%dir %{_datadir}/fonts/TTF/gliphmaker.com
%{_datadir}/fonts/TTF/gliphmaker.com/*.ttf
%{_datadir}/fonts/TTF/gliphmaker.com/*.otf
%verify(not mtime) %{_datadir}/fonts/TTF/gliphmaker.com/fonts.dir
%{_datadir}/fonts/TTF/gliphmaker.com/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-gliphmaker.com:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1554 |21cr|fonts-ttf-golos-text-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:    Golos is a versatile closed sans-serif commissioned by Smena and AIC Media for state and social service websites
Name:       fonts-ttf-golos-text
Version:    1.2
Release:    1
BuildArch:  noarch
Group:      System/Fonts/True type
License:    OFL
URL:        https://www.paratype.ru/fonts/pt/golos-text
Source0:    %{name}.tar.gz
Source1:    OFL.txt
BuildRequires:	fontpackages-devel
Requires:	fontpackages-filesystem

%description
Golos is a versatile closed sans-serif commissioned by Smena and AIC Media for state and social service websites.
Golos Text suits perfectly for continuous reading on screen. It includes five weights from Regular to Black.
Golos was designed by Alexandra Korolkova and Vitaly Kuzmin and released by Paratype in 2019.

%files -f golos-text.files
%license OFL.txt

#------------------------------------------------------------------

%prep
%setup -c -q -n %{name}
cp %{SOURCE1} .

%build
ln */*.ttf .

%install
%ttf_fonts_install golos-text

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1555 |21cr|fonts-ttf-grana-padano-20100429-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname grana-padano

Summary:	medium-weight upright sans-serif font
Name:		fonts-ttf-grana-padano
Version:	20100429
Release:	6
License:	OFL
Group:		System/Fonts/True type
Url:		http://io.debian.net/~danielj/
Source0:	http://io.debian.net/~danielj/grana-padano/%{fontname}-%{version}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	fontforge

%description
Grana Padano is a medium-weight upright sans-serif font in roughly the same
family as Apple Computer's historic Chicago font. It has support for Latin and
Cyrillic character sets, containing sufficient characters for Latin-0 through
Latin-10, as well as support for Vietnamese and all major Slavic
Cyrillic-based languages.

%files
%doc FONTLOG.txt
%dir %{_xfontdir}/TTF/grana-padano
%{_xfontdir}/TTF/grana-padano/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/grana-padano/fonts.dir
%{_xfontdir}/TTF/grana-padano/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-grana-padano:pri=50

#----------------------------------------------------------------------------

%prep
%setup -q -c -n %{fontname}-%{version}

%build
for sfdfile in *.sfd
do
  fontforge -lang=ff -c "Open(\"./$sfdfile\"); Generate(\"./$sfdfile\":r + \".ttf\")"
done

%install
mkdir -p %{buildroot}%{_xfontdir}/TTF/grana-padano

install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/grana-padano
ttmkfdir %{buildroot}%{_xfontdir}/TTF/grana-padano > %{buildroot}%{_xfontdir}/TTF/grana-padano/fonts.dir
ln -s fonts.dir %{buildroot}%{_xfontdir}/TTF/grana-padano/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_xfontdir}/TTF/grana-padano \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-grana-padano:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1556 |21cr|fonts-ttf-heuristica-1.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname heuristica-ttf

Summary:	Extended version of Adobe Utopia font
Name:		fonts-ttf-heuristica
Version:	1.0.1
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://code.google.com/p/evristika/
Source0:	http://evristika.googlecode.com/files/%{pkgname}-%{version}.tar.xz
BuildArch:	noarch
BuildRequires:	freetype-tools
%rename		fonts-ttf-heuristika

%description
Heuristica is a font, based on the “Adobe Utopia” font that was released
to the TeX Users Group.

%prep
%setup -q -c -n %{pkgname}-%{version}

%build

%install
%__mkdir_p %{buildroot}%{_xfontdir}/TTF/heuristica

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/heuristica
ttmkfdir %{buildroot}%{_xfontdir}/TTF/heuristica -o %{buildroot}%{_xfontdir}/TTF/heuristica/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/heuristica/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/heuristica \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-heuristica:pri=50

%files
%doc OFL.txt OFL-FAQ.txt FontLog.txt
%dir %{_xfontdir}/TTF/heuristica
%{_xfontdir}/TTF/heuristica/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/heuristica/fonts.dir
%{_xfontdir}/TTF/heuristica/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-heuristica:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1557 |21cr|fonts-ttf-Inconsolata-1.010-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	fontname	Inconsolata

%define fontdir		%{_datadir}/fonts/TTF/%{fontname}
%define fontconfdir 	%{_sysconfdir}/X11/fontpath.d

Summary:		Inconsolata monospace font
Name:			fonts-ttf-%{fontname}
Version:		1.010
Release: 		9
License:		OFL
Group:			System/Fonts/True type
URL:			http://www.levien.com/type/myfonts/inconsolata.html
Source0:		http://www.levien.com/type/myfonts/Inconsolata.otf
Source1:		OFL.txt
Source2:		OFL-FAQ.txt
BuildArch:		noarch
BuildRequires:		ttmkfdir
BuildRequires: fontconfig

%description
A monospace font designed by Ralph Levien for code listings and the like
in print.

%prep
cp %{SOURCE1} %{SOURCE2} .

%install
%__install -m 0755 -d %{buildroot}%{fontdir}
%__install -m 0644 -p %{SOURCE0} %{buildroot}%{fontdir}
ttmkfdir %{buildroot}%{fontdir} > %{buildroot}%{fontdir}/fonts.dir
ln -s fonts.dir %{buildroot}%{fontdir}/fonts.scale

%__install -m 0755 -d %{buildroot}%{fontconfdir}
ln -s ../../../%{fontdir} %{buildroot}%{fontconfdir}/ttf-%{fontname}:pri=50

%files
%doc OFL*
%dir %{fontdir}
%{fontdir}/*.otf
%{fontdir}/fonts.*
%{fontconfdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1558 |21cr|fonts-ttf-istok-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname istok-ttf

Summary:	Sans serif typeface
Name:		fonts-ttf-istok
Version:	1.0
Release:	4
License:	GPLv3 with font exception
Group:		System/Fonts/True type
URL:		http://code.google.com/p/istok/
Source0:	http://istok.googlecode.com/files/%{pkgname}-%{version}.tar.xz
BuildArch:	noarch
BuildRequires:	freetype-tools

%description
Istok is new sans serif typeface. At present it has four fonts
with support for Latin and Cyrillic. Most glyphs are manually instructed using
xgridfit, but another ones are autoinstructed in fontforge. Truetype
instructions are specifically intended for rendering on LCD displays.

%prep
%setup -q -c -n %{pkgname}-%{version}

%build

%install
%__mkdir_p %{buildroot}%{_xfontdir}/TTF/istok

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/istok
ttmkfdir %{buildroot}%{_xfontdir}/TTF/istok -o %{buildroot}%{_xfontdir}/TTF/istok/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/istok/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/istok \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-istok:pri=50

%files
%defattr(644,root,root,755)
%doc README COPYING ChangeLog AUTHORS TODO
%dir %{_xfontdir}/TTF/istok
%{_xfontdir}/TTF/istok/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/istok/fonts.dir
%{_xfontdir}/TTF/istok/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-istok:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1559 |21cr|fonts-ttf-japanese-extra-0.20040217-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Japanese TrueType fonts
Name:		fonts-ttf-japanese-extra
Version:	0.20040217
Release:	17
License:	Distributable
Url:		http://sourceforge.jp/projects/mplus-fonts/
Group:		System/Fonts/True type
# Original Kochi fonts include in ascii section non free glyphs, they must
# be removed. Red Hat did it, packages taken from them 
## Original fonts is here
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	mkfontscale
Provides:	xtt-fonts = %{EVRD}
BuildArch:	noarch

%description
This Package provides Free Japanese TrueType fonts (alternative Kochi fonts:
kochi-gothic-subst, kochi-mincho-subst).

%files
%defattr(0644,root,root,0755)
%doc COPYING  Changelog  README.ja docs/*
%dir %{_datadir}/fonts/ttf/japanese-extra/
%config(noreplace) %{_datadir}/fonts/ttf/japanese-extra/fonts.dir
%config(noreplace) %{_datadir}/fonts/ttf/japanese-extra/fonts.scale
%{_datadir}/fonts/ttf/japanese-extra/kochi*
%{_sysconfdir}/X11/fontpath.d/ttf-japanese-extra:pri=50

#----------------------------------------------------------------------------

%prep
%setup -q

%build
tar xfj docs.tar.bz2

%install
mkdir -p %{buildroot}%{_datadir}/fonts/ttf/japanese-extra
install -m 755 *.ttf %{buildroot}%{_datadir}/fonts/ttf/japanese-extra

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/ttf/japanese-extra \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-japanese-extra:pri=50

pushd %{buildroot}/%{_datadir}/fonts/ttf/japanese-extra/
mkfontscale
cp fonts.scale fonts.dir
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1560 |21cr|fonts-ttf-japanese-ipamona-20060712-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontdir %_datadir/fonts/TTF/japanese-ipamona

Name:		fonts-ttf-japanese-ipamona
Summary:	IPAMona fonts for Japanese
Version:	20060712
Release:	13
Group:		System/Fonts/True type
License:	Distributable
URL:		http://www.geocities.jp/ipa_mona/
Source0:	%{name}-%{version}.tar.bz2
Source1:	fonts-ttf-japanese-ipamona_fonts.dir
BuildArch:	noarch
BuildRequires: fontconfig

%description
IPAMona fonts are modified IPA fonts.

Most Japanese web sites and MS Office templates are
designed for MSPGothic, so Mr. Kobayashi changed the width of 
IPAPGothic to fit against MSPGothic.

Also he changed IPAPMincho for MSPMincho,
and added a "0x301c" character (= "〜") to IPAGothic/IPAMincho.


%prep
%setup -q

%install
rm -rf $RPM_BUILD_ROOT

install -d %buildroot/%fontdir
install -m 644 fonts/*.ttf %{buildroot}/%fontdir/
install %SOURCE1 %buildroot/%fontdir/fonts.dir
install %SOURCE1 %buildroot/%fontdir/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%fontdir \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-japanese-ipamona:pri=50

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc fonts/COPYING.font.ja fonts/README_ipamona.txt
%doc fonts/doc/*
%doc opfc-ModuleHP-1.1.1.tar.bz2
%{fontdir}/*
%_sysconfdir/X11/fontpath.d/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1561 |21cr|fonts-ttf-japanese-mplus_ipagothic-20060520-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontdir %_datadir/fonts/TTF/japanese-mplus_ipagothic

Name:		fonts-ttf-japanese-mplus_ipagothic
Summary:	M+ OUTLINE FONTS with IPA gothic for Japanese
Version:	20060520
Release:	13
Group:		System/Fonts/True type
License:	Distributable
URL:		http://mix-mplus-ipa.sourceforge.jp/
Source0:	%{name}-%{version}.tar.bz2
Requires(post): mkfontdir, mkfontscale
BuildArch:	noarch
BuildRequires: fontconfig

%description
M+ OUTLINE FONTS don't have Kanji,
so "M+ with IPA gothic" use IPA gothic for Kanji.


%prep
%setup -q

%install
rm -rf $RPM_BUILD_ROOT

install -d %{buildroot}/%{fontdir}
install -m 644 *.ttf %{buildroot}/%{fontdir}

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%fontdir \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-japanese-mplus_ipagothic:pri=50

%clean
rm -rf $RPM_BUILD_ROOT

%post
cd %{fontdir}
mkfontdir
mkfontscale
cd -

%preun
rm -f %fontdir/fonts.{dir,scale}

%files
%defattr(-,root,root)
%doc COPYING.font.ja *.txt
%doc opfc-ModuleHP-1.1.1_withIPAFonts_and_Mplus.tar.bz2
%{fontdir}/*.ttf
%_sysconfdir/X11/fontpath.d/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1562 |21cr|fonts-ttf-junicode-0.6.11-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fversion %(echo %{version} |tr . -)

Summary:	Peter Baker's Junicode Fonts for medievalists
Name:		fonts-ttf-junicode
Version:	0.6.11
Release:	11
License:	GPL
Group:		System/Fonts/True type
URL:		http://junicode.sourceforge.net/
# (Abel) I'm lazy; zip file at http://www.engl.virginia.edu/OE/junicode/
Source0:	junicode-%fversion.zip
# from http://heanet.dl.sourceforge.net/sourceforge/junicode/junicode-source-0.6.11.tar.gz:
Source1:	junicode-changelog-0.6.11
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	freetype-tools

%description
This package contains the excellent Junicode font created by Peter
S. Baker. This font is especially suited for medievalists, as it offers
many characters common in languages as Old English, Old Norse, etc.,
but it is beautiful and elegant enough to be used for other purposes.

%prep
%setup -q -c %name-%version
install -m 644 %SOURCE1 ChangeLog

# clean useless dirs
rm -rf docs/.xvpics

%build

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts/ttf/junicode

cp *.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/ttf/junicode
ttmkfdir $RPM_BUILD_ROOT%{_datadir}/fonts/ttf/junicode > $RPM_BUILD_ROOT%{_datadir}/fonts/ttf/junicode/fonts.dir
ln -s fonts.dir $RPM_BUILD_ROOT%{_datadir}/fonts/ttf/junicode/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/ttf/junicode \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-junicode:pri=50

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc ChangeLog
%{_datadir}/fonts/ttf/junicode
%{_sysconfdir}/X11/fontpath.d/ttf-junicode:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1563 |21cr|fonts-ttf-jura-2.6.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname jura-ttf

Summary:	Family of sans-serif fonts in the Eurostile vein
Name:		fonts-ttf-jura
Version:	2.6.1
Release:	4
License:	OFL and GPLv3
Group:		System/Fonts/True type
URL:		http://io.debian.net/~danielj/
Source0:	http://io.debian.net/~danielj/jura/%{pkgname}-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
Jura is a family of sans-serif fonts in the Eurostile vein. It was originally
inspired by some work I was doing for the FreeFont project in designing a Kayah
Li range for FreeMono. (Kayah Li is a language used by a minority people group
in Burma. Because the Burmese government suppresses the teaching of minority
scripts, the Kayah Li script is taught only in schools in refugee camps
in Thailand.) I wanted to create a Roman alphabet using the same kinds
of strokes and curves as the Kayah Li glyphs, and thus Jura was born. It has
been expanded to include glyphs for the Cyrillic and Greek alphabets as well.

Jura is available in four weights: Book, Medium, DemiBold, and Bold.

%prep
%setup -q -c -n %{pkgname}-%{version}
chmod -x *
dos2unix *.txt

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/jura

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/jura
ttmkfdir %{buildroot}%{_xfontdir}/TTF/jura -o %{buildroot}%{_xfontdir}/TTF/jura/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/jura/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/jura \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-jura:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc FONTLOG.txt license-gpl-3.0.txt license-ofl.txt
%dir %{_xfontdir}/TTF/jura
%{_xfontdir}/TTF/jura/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/jura/fonts.dir
%{_xfontdir}/TTF/jura/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-jura:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1564 |21cr|fonts-ttf-kannada-1.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Kannada TTF fonts (Unicode encoded)
Name:		fonts-ttf-kannada
Version:	1.0
Release:	16

Url:		http://kannada.sourceforge.net/
# dated 2002-10-27
Source0:	http://brahmi.sourceforge.net/dl/Sampige.ttf.bz2
License:	GPL
Group:		System/Fonts/True type
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	freetype-tools

%description
Kannada TTF fonts usable to display Unicode encoded text; through text
engines like pango etc.


%prep

#%setup
 
%build

%install
rm -fr %buildroot

install -d %buildroot/%_datadir/fonts/TTF/kannada/
bzcat %{SOURCE0} > %buildroot/%_datadir/fonts/TTF/kannada/Sampige.ttf

%clean
rm -fr %buildroot

%files
%defattr(0644,root,root,0755)
#%doc README
%dir %_datadir/fonts/TTF/
%dir %_datadir/fonts/TTF/kannada/
%_datadir/fonts/TTF/kannada/*.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1565 |21cr|fonts-ttf-khartiya-1.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname khartiya-ttf

Summary:	Extended Bitstream Charter font
Name:		fonts-ttf-khartiya
Version:	1.0.1
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://code.google.com/p/khartiya/
Source0:	http://khartiya.googlecode.com/files/%{pkgname}-%{version}.tar.xz
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
These fonts are based on Bitstream Charter font which was released by Bitstream
for X Window System. They are extended by addition of Cyrillic letters.

%prep
%setup -q -c -n %{pkgname}-%{version}
dos2unix OFL-FAQ.txt

%build

%install
%__mkdir_p %{buildroot}%{_xfontdir}/TTF/khartiya

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/khartiya
ttmkfdir %{buildroot}%{_xfontdir}/TTF/khartiya -o %{buildroot}%{_xfontdir}/TTF/khartiya/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/khartiya/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/khartiya \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-khartiya:pri=50

%files
%defattr(644,root,root,755)
%doc FontLog.txt OFL.txt OFL-FAQ.txt
%dir %{_xfontdir}/TTF/khartiya
%{_xfontdir}/TTF/khartiya/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/khartiya/fonts.dir
%{_xfontdir}/TTF/khartiya/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-khartiya:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1566 |21cr|fonts-ttf-korean-1.0.2-1.080608.9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapdate 080608

Summary:	Un Fonts in Koream
Name:		fonts-ttf-korean
Epoch:		1
Version:	1.0.2
Release:	1.%{snapdate}.9
License:	GPLv2
Group:		System/Fonts/True type
URL:		http://kldp.net/projects/unfonts/
Source0:	http://kldp.net/frs/download.php/4695/un-fonts-core-%version-%snapdate.tar.gz
BuildArch:	noarch
BuildRequires:	fontconfig
BuildRequires:	mkfontdir
Provides:	baekmuk = %{EVRD}
Provides:	hwan-fonts = %{EVRD}

%description
Un-fonts is comes from the HLaTeX as type1 fonts in 1998 by Koaunghi Un,
he made type1 fonts to use with Korean TeX(HLaTeX [1]) in the late 1990's and
release it under the GNU GPL license.

%prep
%setup -q -n un-fonts

%build

%install
install -d %{buildroot}%{_datadir}/fonts/TTF/korean/
install -m 0644 *.ttf %{buildroot}%{_datadir}/fonts/TTF/korean


(
cd %{buildroot}%{_datadir}/fonts/TTF/korean
mkfontdir > fonts.dir
ln -sf fonts.dir fonts.scale
) 

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/korean \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-korean:pri=50

%files
%defattr(-,root,root,0755)
%doc README COPYING
%dir %{_datadir}/fonts/TTF/korean/
%{_datadir}/fonts/TTF/korean/*.ttf
%config(noreplace) %{_datadir}/fonts/TTF/korean/fonts.dir
%{_datadir}/fonts/TTF/korean/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-korean:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1567 |21cr|fonts-ttf-liberastika-1.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname liberastika-ttf

Summary: Sans fonts derived from Liberation Sans
Name: fonts-ttf-liberastika
Version: 1.1.3
Release: 5
License: GPLv2 with exception
Group: System/Fonts/True type
URL: http://code.google.com/p/liberastika/
Source0: http://liberastika.googlecode.com/files/%{pkgname}-%{version}.tar.xz
BuildArch: noarch
BuildRequires: freetype-tools

%description
The font based on Liberation Sans with some cyrillic letters modified. It is
metrically incompatible with Arial fonts.

%prep
%setup -q -c -n %{pkgname}-%{version}

%build

%install
%__mkdir_p %{buildroot}%{_xfontdir}/TTF/liberastika

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/liberastika
ttmkfdir %{buildroot}%{_xfontdir}/TTF/liberastika > %{buildroot}%{_xfontdir}/TTF/liberastika/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/liberastika/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/liberastika \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-liberastika:pri=50

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README ChangeLog
%dir %{_xfontdir}/TTF/liberastika
%{_xfontdir}/TTF/liberastika/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/liberastika/fonts.dir
%{_xfontdir}/TTF/liberastika/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-liberastika:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1568 |21cr|fonts-ttf-libertine-5.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define archivename	LinLibertineTTF
%define reldate		2012_07_02
%define fontdir		%{_datadir}/fonts/ttf/libertine

Summary:	Linux Libertine Open Fonts
Name:		fonts-ttf-libertine
Version:	5.3.0
Release:	5
License:	GPLv2+ and OFL
Group:		System/Fonts/True type
Url:		http://linuxlibertine.sf.net
Source0:	http://downloads.sourceforge.net/project/linuxlibertine/linuxlibertine/5.3.0/%{archivename}_%{version}_%{reldate}.tgz
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
Provides:	linux-libertine-fonts = %{EVRD}
BuildArch:	noarch

%description
The Linux Libertine Open Fonts are a TrueType font family for practical
use in documents. They were created to provide a free alternative to
proprietary standard fonts.

%files
%doc *.txt
%{fontdir}
%{_sysconfdir}/X11/fontpath.d/ttf-libertine:pri=50

#----------------------------------------------------------------------------

%prep
%setup -qc

%build

%install
install -d -m 0755 %{buildroot}%{fontdir}
install -p -m 0644 *.ttf  %{buildroot}%{fontdir}
ttmkfdir -d %{buildroot}%{fontdir} -o %{buildroot}%{fontdir}/fonts.scale
cp -f %{buildroot}%{fontdir}/fonts.scale %{buildroot}%{fontdir}/fonts.dir
mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d
ln -s %{fontdir} %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-libertine:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1569 |21cr|fonts-ttf-lohit-2.3.8-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:        fonts-ttf-lohit
Version:     2.3.8
Release:     12
Summary:     Free Indian truetype/opentype fonts

Group:       System/Fonts/True type
License:     GPLv2
URL:         http://fedoraproject.org/wiki/Lohit
Source:      http://rbhalera.fedorapeople.org/released/lohit/lohit-fonts-%{version}.tar.gz
BuildArch:   noarch
BuildRequires: fontconfig
Obsoletes:   fonts-ttf-gurmukhi <= 1.0
Provides:    fonts-ttf-gurmukhi = %{version}-%{release}

%description 
This package provides Hindi, Bengali, Gujarati, Punjabi, Tamil,
Kannada, Malayalam, Oriya, Telugu, Marathi, Maithili, Kashmiri, 
Konkani, Nepali and Sindhi TrueType/Opentype fonts.

%prep
%setup -q -n lohit-fonts-%{version}

%build
echo "Nothing to do in Build."

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT/%{_datadir}/fonts/TTF/lohit
for i in *
do
  [ -d $i ] || continue
  install -m 0644 $i/* $RPM_BUILD_ROOT/%{_datadir}/fonts/TTF/lohit
done

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-, root, root, -) 
%doc COPYING README AUTHORS 
%{_datadir}/fonts/TTF/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1570 |21cr|fonts-ttf-mntch-script-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname MNTch-Script

Summary:	BarCode font
Name:		fonts-ttf-mntch-script
Version:	1.0
Release:	1
License:	OFL
Group:		System/Fonts/True type
Url:		https://github.com/ConLenov/MNTch-Script
Source0:	https://github.com/ConLenov/MNTch-Script/archive/refs/tags/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	freetype-tools
BuildArch:	noarch

%description
BarCode font.

%files
%doc README.md
%license COPYING.md
%dir %{_xfontdir}/TTF/mntch-script
%{_xfontdir}/TTF/mntch-script/%{oname}.ttf
%verify(not mtime) %{_xfontdir}/TTF/mntch-script/fonts.dir
%{_xfontdir}/TTF/mntch-script/fonts.scale
%{_sysconfdir}/X11/fontpath.d/mntch-script:pri=50

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}/%{_xfontdir}/TTF/mntch-script
cp %{oname}.ttf %{buildroot}/%{_xfontdir}/TTF/mntch-script
ttmkfdir %{buildroot}%{_xfontdir}/TTF/mntch-script -o %{buildroot}%{_xfontdir}/TTF/mntch-script/fonts.dir
ln -s fonts.dir %{buildroot}%{_xfontdir}/TTF/mntch-script/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_xfontdir}/TTF/mntch-script %{buildroot}%{_sysconfdir}/X11/fontpath.d/mntch-script:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1571 |21cr|fonts-ttf-myuppy-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MYuppy TrueType font
Name:		fonts-ttf-myuppy
Version:	1.0.0
Release:	6
License:	Eclipse Public Licence 1.0
URL:		http://developer.symbian.org/
Group:		System/Fonts/True type
Source0:	http://developer.symbian.org/xref/epl/raw/Symbian3/sf/os/textandloc/fontservices/referencefonts/truetype/myuppygb-medium.ttf
Source1:	http://developer.symbian.org/xref/epl/raw/Symbian3/sf/os/textandloc/fontservices/referencefonts/truetype/myuppygb-medium_readme.txt
BuildArch:	noarch
BuildRequires: fontconfig

%description
MYuppyGB-Medium

Format - TTF TrueType
Character set - GB2312
Encoding - Unicode

This font was designed to appeal to young urban professionals, Monotype
Yuppy is a newly designed typeface with a unique, modern feel. The
design combines elements of handwriting with classic letterform
characteristics, such as open shapes and proper proportions that help
the typeface retain legibility.

%prep
%setup -Tc
cp %{SOURCE1} .

%install
rm -fr %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/fonts/TTF/myuppy
install -m 644 %{SOURCE0} %{buildroot}/%{_datadir}/fonts/TTF/myuppy

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/myuppy \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-myuppy:pri=50

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root,0755)
%doc *.txt
%dir %{_datadir}/fonts/TTF/myuppy/
%{_datadir}/fonts/TTF/myuppy/*.ttf
%{_sysconfdir}/X11/fontpath.d/ttf-myuppy:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1572 |21cr|fonts-ttf-neocyr-20110622-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname neocyr

Summary:	Decorative typeface
Name:		fonts-ttf-neocyr
Version:	20110622
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://openfontlibrary.org/font/neocyr
Source0:	%{pkgname}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
Neocyr is a decorative typeface that includes Latin and Cyrillic characters.

%prep
%setup -q -c -n %{pkgname}-%{version}
dos2unix *.txt

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/neocyr

%__install -m 644 ttf/*.ttf %{buildroot}%{_xfontdir}/TTF/neocyr
ttmkfdir %{buildroot}%{_xfontdir}/TTF/neocyr -o %{buildroot}%{_xfontdir}/TTF/neocyr/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/neocyr/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/neocyr \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-neocyr:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt
%dir %{_xfontdir}/TTF/neocyr
%{_xfontdir}/TTF/neocyr/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/neocyr/fonts.dir
%{_xfontdir}/TTF/neocyr/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-neocyr:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1573 |21cr|fonts-ttf-notcouriersans-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname notcouriersans

Summary:	Re-interpretation of Nimbus Mono
Name:		fonts-ttf-notcouriersans
Version:	1.1
Release:	4
License:	GPLv2 with font exception
Group:		System/Fonts/True type
URL:		http://ospublish.constantvzw.org
Source0:	%{pkgname}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools

%description
NotCourierSans is a re-interpretation of Nimbus Mono whose design began
in Wroclaw at the occasion of the Libre Graphics Meeting 2008. For more
detailed information explore the files included in the font package
(FONTLOG.txt). The 1.1 version has been expanded by a work on Cyrillic
glyphs by Paulo Silva aka nitrofurano. NotCourierSans 1.1 contains 2 ornamental
glyphs encoded in the private use characters: - in U+E000, the OSP frog mascot
- in U+E001, the 75 ligature added during an OSP workshop in Le 75, École
Supérieure des Arts de l’Image, on Wednesday 17 December. These sugars are
accessible through the Ornament Open Type features.

%prep
%setup -q -n OSP_NotCourierSans

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/notcouriersans

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/notcouriersans
ttmkfdir %{buildroot}%{_xfontdir}/TTF/notcouriersans -o %{buildroot}%{_xfontdir}/TTF/notcouriersans/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/notcouriersans/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/notcouriersans \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-notcouriersans:pri=50

%files
%doc FONTLOG.txt COPYING.txt
%dir %{_xfontdir}/TTF/notcouriersans
%{_xfontdir}/TTF/notcouriersans/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/notcouriersans/fonts.dir
%{_xfontdir}/TTF/notcouriersans/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-notcouriersans:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1574 |21cr|fonts-ttf-oldstandard-2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname oldstandard

Summary:	Old-style font family
Name:		fonts-ttf-oldstandard
Version:	2.2
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://www.thessalonica.org.ru/en/fonts.html
Source0:	http://www.thessalonica.org.ru/downloads/%{pkgname}-%{version}.ttf.zip
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
Old Standard is a multilingual font family, supposed to be a good companion
for Thessalonica. It is based on Russian and German editions of the late 19th
and early 20th centuries and reproduces the so-called "Modern" style, extremely
popular in its time, but almost completely abandoned later. This project is
currently most mature and stable, although still has a large field
for improvements. The Old Standard font family currently includes three shapes
(regular, italic and bold) and has more than 1400 glyphs in the regular
version.

%prep
%setup -q -c -n %{pkgname}-%{version}
dos2unix OFL-FAQ.txt

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/oldstandard

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/oldstandard
ttmkfdir %{buildroot}%{_xfontdir}/TTF/oldstandard -o %{buildroot}%{_xfontdir}/TTF/oldstandard/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/oldstandard/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/oldstandard \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-oldstandard:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt
%dir %{_xfontdir}/TTF/oldstandard
%{_xfontdir}/TTF/oldstandard/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/oldstandard/fonts.dir
%{_xfontdir}/TTF/oldstandard/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-oldstandard:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1575 |21cr|fonts-ttf-open-dyslexic-20160623-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		fonts-ttf-open-dyslexic
Version:	20160623
Release:	1
License:	CC-BY
Summary:	TrueType fonts
Group:		System/Fonts/True type 
Source0:	https://github.com/antijingoist/open-dyslexic/raw/master/opendyslexic.ttf
Source1:	https://github.com/antijingoist/open-dyslexic/raw/master/opendyslexic-bold.ttf
Source2:	https://github.com/antijingoist/open-dyslexic/raw/master/opendyslexic-italic.ttf
Source3:	https://github.com/antijingoist/open-dyslexic/raw/master/OpenDyslexic-BoldItalic.ttf
BuildArch:	noarch

%description
Font created to help dyslexic readers. Bottom heavy and unique
character shapes help prevent letters and numbers from being confused.

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/ttf/open-dyslexic
install -m444 %SOURCE0 %{buildroot}%{_datadir}/fonts/ttf/open-dyslexic
install -m444 %SOURCE1 %{buildroot}%{_datadir}/fonts/ttf/open-dyslexic
install -m444 %SOURCE2 %{buildroot}%{_datadir}/fonts/ttf/open-dyslexic
install -m444 %SOURCE3 %{buildroot}%{_datadir}/fonts/ttf/open-dyslexic

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/ttf/open-dyslexic \
        %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-open-dyslexic:pri=50

%files 
%dir %{_datadir}/fonts/ttf/open-dyslexic
%{_datadir}/fonts/ttf/open-dyslexic/*.ttf
%{_sysconfdir}/X11/fontpath.d/ttf-open-dyslexic:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1576 |21cr|fonts-ttf-overpass-3.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname overpass
%global fontconf 60-%{fontname}.conf
%global monofontconf 60-%{fontname}-mono.conf

Name:		fonts-ttf-overpass
Version:	3.0.4
Release:	1
Summary:	Typeface based on the U.S. interstate highway road signage type system
Group:		System/Fonts/True type
License:	OFL or LGPLv2+
URL:		https://github.com/RedHatBrand/overpass/
Source0:	https://github.com/RedHatBrand/Overpass/archive/%{version}.tar.gz?/%{fontname}-%{version}.tar.gz
Source1:	%{fontname}-fonts-fontconfig.conf
Source2:	%{fontname}.metainfo.xml
Source3:	%{fontname}-mono-fonts-fontconfig.conf
Source4:	%{fontname}-mono.metainfo.xml

BuildRequires:	fontconfig
BuildRequires:	freetype-tools
Provides:	overpass-fonts
BuildArch:	noarch

%description
Free and open source typeface based on the U.S. interstate highway road signage
type system; it is sans-serif and suitable for both body and titling text.

%files
%doc README.md overpass-specimen.pdf
%license LICENSE.md
%{_datadir}/appdata/%{fontname}.metainfo.xml
%{_sysconfdir}/X11/fontpath.d/ttf-overpass*
%{_sysconfdir}/X11/fontpath.d/otf-overpass*
%{_datadir}/fonts/TTF/overpass/overpass-bold*
%{_datadir}/fonts/TTF/overpass/overpass-extrabold*
%{_datadir}/fonts/TTF/overpass/overpass-extralight*
%{_datadir}/fonts/TTF/overpass/overpass-light*
%{_datadir}/fonts/TTF/overpass/overpass-heavy*
%{_datadir}/fonts/TTF/overpass/overpass-italic*
%{_datadir}/fonts/TTF/overpass/overpass-regular*
%{_datadir}/fonts/TTF/overpass/overpass-semibold*
%{_datadir}/fonts/TTF/overpass/overpass-thin*
%{_datadir}/fonts/OTF/overpass/overpass-bold*
%{_datadir}/fonts/OTF/overpass/overpass-extrabold*
%{_datadir}/fonts/OTF/overpass/overpass-extralight*
%{_datadir}/fonts/OTF/overpass/overpass-light*
%{_datadir}/fonts/OTF/overpass/overpass-heavy*
%{_datadir}/fonts/OTF/overpass/overpass-italic*
%{_datadir}/fonts/OTF/overpass/overpass-regular*
%{_datadir}/fonts/OTF/overpass/overpass-semibold*
%{_datadir}/fonts/OTF/overpass/overpass-thin*
%verify(not mtime) %{_datadir}/fonts/TTF/overpass/fonts.dir
%verify(not mtime) %{_datadir}/fonts/OTF/overpass/fonts.dir
%{_datadir}/fonts/TTF/overpass/fonts.scale
%{_datadir}/fonts/OTF/overpass/fonts.scale

%if 0
%{_libdir}/node_modules/overpass/
%endif

#------------------------------------------------------------------------------
%package -n %{fontname}-mono-fonts
Summary:	Monospace version of overpass fonts
Group:		System/Fonts/True type

%description -n %{fontname}-mono-fonts
Free and open source typeface based on the U.S. interstate highway road signage
type system. This is the monospace family variant.

%files -n %{fontname}-mono-fonts
#%%{monofontconf} overpass-mono-*.otf
%doc README.md overpass-mono-specimen.pdf
%license LICENSE.md
%{_datadir}/appdata/%{fontname}-mono.metainfo.xml
%{_datadir}/fonts/TTF/overpass/overpass-mono*
%{_datadir}/fonts/OTF/overpass/overpass-mono*

#------------------------------------------------------------------------------

%prep
%setup -q -n Overpass-%{version}

%build
# Nothing to do here.

%install
#ttf install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/overpass

install -m 644 -p webfonts/overpass*/*.ttf %{buildroot}%{_datadir}/fonts/TTF/overpass
ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/overpass > %{buildroot}%{_datadir}/fonts/TTF/overpass/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/overpass/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/overpass \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-overpass:pri=50

#otf install
mkdir -p %{buildroot}%{_datadir}/fonts/OTF/overpass

install -m 644 -p desktop-fonts/overpass*/*.otf %{buildroot}%{_datadir}/fonts/OTF/overpass
ttmkfdir %{buildroot}%{_datadir}/fonts/OTF/overpass > %{buildroot}%{_datadir}/fonts/OTF/overpass/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/OTF/overpass/fonts.scale

ln -s ../../..%{_datadir}/fonts/OTF/overpass \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/otf-overpass:pri=50


install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
		%{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{SOURCE1} \
		%{buildroot}%{_fontconfig_templatedir}/%{fontconf}

install -m 0644 -p %{SOURCE3} \
		%{buildroot}%{_fontconfig_templatedir}/%{monofontconf}

ln -s %{_fontconfig_templatedir}/%{fontconf} \
		%{buildroot}%{_fontconfig_confdir}/%{fontconf}

ln -s %{_fontconfig_templatedir}/%{monofontconf} \
                %{buildroot}%{_fontconfig_confdir}/%{monofontconf}

# I do not think this is useful to package, but if it is...
%if 0
mkdir -p %{buildroot}%{_libdir}/node_modules/overpass/
cp -a bower.json package.json %{buildroot}%{libdir}/node_modules/overpass/
%endif

# Add AppStream metadata
install -Dm 0644 -p %{SOURCE2} \
	%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml

install -Dm 0644 -p %{SOURCE4} \
        %{buildroot}%{_datadir}/appdata/%{fontname}-mono.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1577 |21cr|fonts-ttf-paratype-astra-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       fonts-ttf-paratype-astra
Version:    1.1.0
Release:    1
Summary:    PT Astra Sans and PT Astra Serif fonts
Group:      System/Fonts/True type
BuildArch:  noarch
URL:        https://www.paratype.ru/cinfo/news.asp?NewsId=3469
Source0:    http://www.paratype.ru/uni/public/PTAstraSans.zip
Source1:    http://www.paratype.ru/uni/public/PTAstraSerif.zip
License:    OFL (SIL Open Font License)
BuildRequires: fontconfig

%description
PT Astra Sans, PT Astra Serif are the free 
alternatives of Times New Roman font.

%prep
%setup -c
%setup -T -D -a 1

%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/PTAstra
cp -f *.ttf %{buildroot}%{_datadir}/fonts/TTF/PTAstra/

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/PTAstra \
        %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-paratype-astra:pri=50

%files
%dir %{_datadir}/fonts/TTF/PTAstra
%{_datadir}/fonts/TTF/PTAstra/*.ttf
%{_sysconfdir}/X11/fontpath.d/ttf-paratype-astra:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1578 |21cr|fonts-ttf-pfennig-20110924-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname pfennig

Summary:	Humanist sans-serif font family
Name:		fonts-ttf-pfennig
Version:	20110924
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://io.debian.net/~danielj/
Source0:	http://io.debian.net/~danielj/pfennig/%{pkgname}-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
Pfennig is a humanist sans-serif font with support for Latin, Cyrillic, Greek
and Hebrew character sets. It contains sufficient characters for Latin-0
through Latin-10, as well as glyphs for all modern Cyrillic orthographies,
the full Vietnamese range, modern Greek, modern Hebrew, and the Pan-African
Alphabet. It supports the standard Roman ligatures and uses OpenType tables
for diacritic placement. The italic faces are true italics, not just oblique.

%prep
%setup -q -c -n %{pkgname}-%{version}
dos2unix *.txt

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/pfennig

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/pfennig
ttmkfdir %{buildroot}%{_xfontdir}/TTF/pfennig -o %{buildroot}%{_xfontdir}/TTF/pfennig/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/pfennig/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/pfennig \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-pfennig:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc FONTLOG.txt OFL.txt
%dir %{_xfontdir}/TTF/pfennig
%{_xfontdir}/TTF/pfennig/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/pfennig/fonts.dir
%{_xfontdir}/TTF/pfennig/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-pfennig:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1579 |21cr|fonts-ttf-poltawski-antiqua-1.101-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Truetype's Poltawski-Antiqua fonts
Name:		fonts-ttf-poltawski-antiqua
Version:	1.101
Release:	4
License:	GUST Font License
Group:		System/Fonts/True type
URL:		http://jmn.pl/antykwa-poltawskiego/
Source0:	http://jmn.pl/pliki/ap%{version}ttf.zip
BuildArch:	noarch
BuildRequires:	fontconfig
BuildRequires:	freetype-tools

%description
This font was designed in the 'twenties and the 'thirties
of XX century by a Polish graphic artist and a typographer 
Adam Poltawski.
It was widely used by Polish printing houses as long as metal
types were in use (until ca the 'sixties).

%prep
%setup -qc

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/antpolt

install -m 644 *.ttf %{buildroot}%{_datadir}/fonts/TTF/antpolt
ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/antpolt > %{buildroot}%{_datadir}/fonts/TTF/antpolt/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/antpolt/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/antpolt \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-antpolt:pri=50

%files
%dir %{_datadir}/fonts/TTF/antpolt
%{_datadir}/fonts/TTF/antpolt/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/antpolt/fonts.dir
%{_datadir}/fonts/TTF/antpolt/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-antpolt:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1580 |21cr|fonts-ttf-ptsans-20101225-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname PTSans

Summary: Fonts to support national alphabet of Russian people
Name: fonts-ttf-ptsans
Version: 20101225
Release: 4
License: open
Group: System/Fonts/True type
URL: http://www.fontstock.com/public/PTSans.zip
Source0: %{pkgname}.zip
BuildArch: noarch
BuildRequires: freetype-tools

%description
Headset PTSans is part of the project to create a set of Russian fonts free
public open-user license, designed to meet the needs of multi-ethnic country
in the font that will not only serve in official and business correspondence,
but also serve as a tool for development of national literature
and intercultural exchange.

%prep
%setup -q -c -n %{pkgname}

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/ptsans

install -m 644 *.ttf %{buildroot}%{_datadir}/fonts/TTF/ptsans
ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/ptsans -o %{buildroot}%{_datadir}/fonts/TTF/ptsans/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/ptsans/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/ptsans \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-ptsans:pri=50

%files
%defattr(644,root,root,755)
%doc *.txt 
%dir %{_datadir}/fonts/TTF/ptsans
%{_datadir}/fonts/TTF/ptsans/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/ptsans/fonts.dir
%{_datadir}/fonts/TTF/ptsans/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-ptsans:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1581 |21cr|fonts-ttf-ptserif-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname PTSerif

Summary:	Fonts to support national alphabet of Russian people
Name:		fonts-ttf-ptserif
Version:	0.1
Release:	6
License:	ParaType Free Font License
Group:		System/Fonts/True type
URL:		http://www.paratype.com/public/
Source0:	http://www.fontstock.com/public/%{pkgname}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
PT Serif is a transitional serif face with humanistic terminals designed
for use together with PT Sans and harmonized with PT Sans on metrics,
proportions, weights and design. PT Serif consists of six styles: regular
and bold weights with corresponding italics form a standard computer font
family for basic text setting; two caption styles (regular and italic) are
for texts of small point sizes.

Designed by Alexandra Korolkova, Olga Umpeleva and Vladimir Yefimov.
Released by ParaType in 2010. 

%prep
%setup -q -c -n %{pkgname}
iconv -f cp1252 -t utf8 'PT Free Font License_eng_1.2.txt' -o 'PT-Free-Font-License_eng_1.2.txt'
dos2unix PT-Free-Font-License_eng_1.2.txt

%build

%install
mkdir -p %{buildroot}%{_xfontdir}/TTF/ptserif

install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/ptserif
ttmkfdir %{buildroot}%{_xfontdir}/TTF/ptserif -o %{buildroot}%{_xfontdir}/TTF/ptserif/fonts.dir
ln -s fonts.dir %{buildroot}%{_xfontdir}/TTF/ptserif/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/ptserif \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-ptserif:pri=50

%files
%doc PT-Free-Font-License_eng_1.2.txt
%dir %{_xfontdir}/TTF/ptserif
%{_xfontdir}/TTF/ptserif/*.ttf
%verify(not mtime) %{_xfontdir}/TTF/ptserif/fonts.dir
%{_xfontdir}/TTF/ptserif/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-ptserif:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1582 |21cr|fonts-ttf-pwt-0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname pwtfont

Summary: Fonts to replace commonly used Microsoft Windows Fonts
Name: fonts-ttf-pwt
Version: 0.5
Release: 5
License: open
Group: System/Fonts/True type
URL: http://www.pingwinsoft.ru/system/uploads/7/original/fonts_test.zip?1276003553
Source0: %{pkgname}.tar.bz2
BuildArch: noarch
BuildRequires: freetype-tools

%description
The PingWin Typography (PWT) fonts are intended to be replacements for most 
commonly used fonts on Microsoft systems: Tahoma, Arial, Courier, Verdana,
Times New Roman

%prep
%setup -q -n %{pkgname}

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/pwt

install -m 644 *.ttf %{buildroot}%{_datadir}/fonts/TTF/pwt
ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/pwt > %{buildroot}%{_datadir}/fonts/TTF/pwt/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/pwt/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/pwt \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-pwt:pri=50

%post
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache 

%postun
if [ "$1" = "0" ]; then
  [ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache 
fi


%files
%defattr(-,root,root,-)
%doc License.txt 
#COPYING
%dir %{_datadir}/fonts/TTF/pwt
%{_datadir}/fonts/TTF/pwt/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/pwt/fonts.dir
%{_datadir}/fonts/TTF/pwt/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-pwt:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1583 |21cr|fonts-ttf-ru-eng-fonts-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname 122658-ru-eng-fonts

Summary: Russian Fonts
Name: fonts-ttf-ru-eng-fonts
Version: 1.0
Release: 4
License: GPL
Group: System/Fonts/True type
URL: http://opendesktop.org/content/show.php/ru-eng-fonts?content=122658
Source0: %{pkgname}.tar.gz
BuildArch: noarch
BuildRequires: freetype-tools

%description
There are 8 fonts in this package,which include english and russian alphabet.

%prep
%setup -q -n ru-eng-fonts

%build

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/ru-eng

install -m 644 *.ttf $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/ru-eng
ttmkfdir $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/ru-eng > $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/ru-eng/fonts.dir
ln -s fonts.dir $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/ru-eng/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/ru-eng \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-ru-eng:pri=50

%clean
rm -rf $RPM_BUILD_ROOT

%post
[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache 

%postun
if [ "$1" = "0" ]; then
  [ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache 
fi


%files
%defattr(-,root,root,-)
#%doc License.txt 
#COPYING
%dir %{_datadir}/fonts/TTF/ru-eng
%{_datadir}/fonts/TTF/ru-eng/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/ru-eng/fonts.dir
%{_datadir}/fonts/TTF/ru-eng/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-ru-eng:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1584 |21cr|fonts-ttf-sansus-webissimo-20110518-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname sansus-webissimo

Summary:	Sansus Webissimo serif font family
Name:		fonts-ttf-sansus-webissimo
Version:	20110518
Release:	4
License:	Creative Commons Attribution
Group:		System/Fonts/True type
URL:		http://openfontlibrary.org/font/sansus-webissimo
Source0:	%{pkgname}.zip
BuildArch:	noarch
BuildRequires:	freetype-tools

%description
"Sansus" - experiment with a new font brought into life in our professional
type foundry. We worked on every single shape and curve to enrich "Sansus"
with elegance and exactitude, try it on phone directories, on your site -
anywhere.

%prep
%setup -q -c -n %{name}-%{version}

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/sansus-webissimo

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/sansus-webissimo
ttmkfdir %{buildroot}%{_xfontdir}/TTF/sansus-webissimo -o %{buildroot}%{_xfontdir}/TTF/sansus-webissimo/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/sansus-webissimo/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/sansus-webissimo \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-sansus-webissimo:pri=50

%__install -d %{buildroot}%{_docdir}/%{name}
cat > %{buildroot}%{_docdir}/%{name}/README << EOF
Family		Sansus Webissimo
Designer	Sergiy S. Tkachenko 
License		CC-BY
Category	Serif

Description

"Sansus" - experiment with a new font brought into life in our professional
type foundry. We worked on every single shape and curve to enrich "Sansus"
with elegance and exactitude, try it on phone directories, on your site -
anywhere.

Full Language Support

Basic Cyrillic, Basic Latin, Euro, Western European
EOF

%files
%doc %{_docdir}/%{name}/README
%dir %{_xfontdir}/TTF/sansus-webissimo
%{_xfontdir}/TTF/sansus-webissimo/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/sansus-webissimo/fonts.dir
%{_xfontdir}/TTF/sansus-webissimo/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-sansus-webissimo:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1585 |21cr|fonts-ttf-tamil-1.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tamil TTF fonts (Unicode encoded)
Name:		fonts-ttf-tamil
Version:	1.1
Release:	19

Url:		http://www.tamil.net/tscii/tools.html#fonts
# from http://groups.yahoo.com/group/tamilinix/files/
# the suitability for free distribution has been checked by
# Thuraiappah Vaseeharan <t_vasee@yahoo.com>
Source0:	tsc-avarangal.tar.bz2
Source1:	tscii-bitmap.tar.bz2
Source2:	tamil_opentype_fonts.tar.bz2

License:	Free
Group:		System/Fonts/True type
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	freetype-tools

%description
Tamil TTF fonts usable to display Unicode encoded text; through text
engines like pango etc.

%package -n fonts-ttf-tscii
Url:		http://www.geocities.com/avarangal/
Summary:		Tamil TTF fonts (TSCII encoded)
Group:		System/Fonts/True type	

%description -n fonts-ttf-tscii
Tamil TTF fonts in TSCII encoding.
Those fonts present themselves as covering western (cp1252) character set,
which is wrong, but currently the only way to make Tamil TSCII work.

%package -n fonts-bitmap-tscii
Summary:	Tamil Bitmap fonts
Group:		System/Fonts/X11 bitmap
License:	GPL
%description -n fonts-bitmap-tscii
Tamil bitmap fonts for X11 in TSCII encoding 


%prep

%setup -q -T -c -a0 -a1 -a2
 
%build

cp tsc-avarangal/README README.avarangal
cp tamil_opentype_fonts/README README.TSCu

%install
rm -fr %buildroot

install -d %buildroot/%_datadir/fonts/TTF/tamil/
install -m 0644 tamil_opentype_fonts/*.ttf %buildroot/%_datadir/fonts/TTF/tamil
install -d %buildroot/%_datadir/fonts/TTF/tscii/
install -m 0644 tsc-avarangal/*.ttf %buildroot/%_datadir/fonts/TTF/tscii
install -d %buildroot/%_datadir/fonts/bitmap/tscii/
install -m 0644 tscii-bitmap/*.gz %buildroot/%_datadir/fonts/bitmap/tscii
install -m 0644 tscii-bitmap/fonts.dir %buildroot/%_datadir/fonts/bitmap/tscii

(
cd %buildroot/%_datadir/fonts/TTF/tscii
# ttmkfdir can't be used as we need special names
cat << EOF > fonts.scale
15
tscavai.TTF -misc-TSC_Avarangal-medium-i-normal--0-0-0-0-p-0-tscii-0
tscavai.TTF -misc-TSC_Avarangal-medium-i-normal--0-0-0-0-p-0-iso8859-1
tscavai.TTF -misc-TSC_Avarangal-medium-i-normal--0-0-0-0-p-0-iso10646-1
tscavaf.TTF -misc-TSC_AvarangalFxd-medium-r-normal--0-0-0-0-m-0-tscii-0
tscavaf.TTF -misc-TSC_AvarangalFxd-medium-r-normal--0-0-0-0-m-0-iso8859-1
tscavaf.TTF -misc-TSC_AvarangalFxd-medium-r-normal--0-0-0-0-m-0-iso10646-1
tscavabi.TTF -misc-TSC_Avarangal-bold-i-normal--0-0-0-0-p-0-tscii-0
tscavabi.TTF -misc-TSC_Avarangal-bold-i-normal--0-0-0-0-p-0-iso8859-1
tscavabi.TTF -misc-TSC_Avarangal-bold-i-normal--0-0-0-0-p-0-iso10646-1
tscavab.TTF -misc-TSC_Avarangal-bold-r-normal--0-0-0-0-p-0-tscii-0
tscavab.TTF -misc-TSC_Avarangal-bold-r-normal--0-0-0-0-p-0-iso8859-1
tscavab.TTF -misc-TSC_Avarangal-bold-r-normal--0-0-0-0-p-0-iso10646-1
tscava.TTF -misc-TSC_Avarangal-medium-r-normal--0-0-0-0-p-0-tscii-0
tscava.TTF -misc-TSC_Avarangal-medium-r-normal--0-0-0-0-p-0-iso8859-1
tscava.TTF -misc-TSC_Avarangal-medium-r-normal--0-0-0-0-p-0-iso10646-1
EOF
cp fonts.scale fonts.dir
) 

(
cd %buildroot/%_datadir/fonts/bitmap/tscii
# just to be sure that an mkfontdir won't rewrite it
cp fonts.dir fonts.scale
)

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
for dir in tamil tscii; do
	ln -s ../../..%_datadir/fonts/TTF/$dir \
		%{buildroot}%_sysconfdir/X11/fontpath.d/ttf-$dir:pri=50
done
ln -s ../../..%_datadir/fonts/bitmap/tscii \
	%{buildroot}%_sysconfdir/X11/fontpath.d/bitmap-tscii:pri=50


%clean
rm -fr %buildroot

%files
%defattr(0644,root,root,0755)
%doc tamil_opentype_fonts/README
%dir %_datadir/fonts/TTF/tamil/
%_datadir/fonts/TTF/tamil/*.ttf
%_sysconfdir/X11/fontpath.d/ttf-tamil:pri=50

%files -n fonts-ttf-tscii 
%defattr(0644,root,root,0755)
%doc README.avarangal
%dir %_datadir/fonts/TTF/tscii/
%_datadir/fonts/TTF/tscii/*.ttf
%config(noreplace) %_datadir/fonts/TTF/tscii/fonts.dir
%config(noreplace) %_datadir/fonts/TTF/tscii/fonts.scale
%_sysconfdir/X11/fontpath.d/ttf-tscii:pri=50

%files -n fonts-bitmap-tscii
%defattr(0644,root,root,0755)
%doc tscii-bitmap/README
%dir %_datadir/fonts/bitmap/
%dir %_datadir/fonts/bitmap/tscii/
%_datadir/fonts/bitmap/tscii/*.gz
%config(noreplace) %_datadir/fonts/bitmap/tscii/fonts.dir
%config(noreplace) %_datadir/fonts/bitmap/tscii/fonts.scale
%_sysconfdir/X11/fontpath.d/bitmap-tscii:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1586 |21cr|fonts-ttf-tempora-lgc-0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname tempora-lgc

Summary:	times-like font with Latin, Greek and Cyrillic support
Name:		fonts-ttf-tempora-lgc
Version:	0.2
Release:	4
License:	GPLv2 with exception
Group:		System/Fonts/True type
URL:		http://www.thessalonica.org.ru/en/fonts.html
Source0:	http://www.thessalonica.org.ru/downloads/%{pkgname}.ttf.zip
BuildArch:	noarch
BuildRequires:	freetype-tools

%description
This font family is based on two well-known free typefaces similar to Adobe
Times: Nimbus Roman No 9 L by URW (russified by Valek Filippov), and the Omega
Serif family, developed by Yannis Haralambous. However, all basic components
of the font, and especially its Greek and Cyrillic parts, have suffered
serious modifications, so that currently Tempora LGC Unicode represents an
independent typeface, quite different from its predecessors.

%prep
%setup -q -c -n %{pkgname}-%{version}

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/tempora-lgc

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/tempora-lgc
ttmkfdir %{buildroot}%{_xfontdir}/TTF/tempora-lgc > %{buildroot}%{_xfontdir}/TTF/tempora-lgc/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/tempora-lgc/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/tempora-lgc \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-tempora-lgc:pri=50

%clean
%__rm -rf %{buildroot}

%files
%doc COPYING HISTORY README
%dir %{_xfontdir}/TTF/tempora-lgc
%{_xfontdir}/TTF/tempora-lgc/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/tempora-lgc/fonts.dir
%{_xfontdir}/TTF/tempora-lgc/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-tempora-lgc:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1587 |21cr|fonts-ttf-thai-0.4.17-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Thai TrueType fonts
Name:		fonts-ttf-thai
Version:	0.4.17
Release:	6
# Waree font is licensed under Bitstream license
License:	GPLv2+ and Bitstream Vera Fonts Copyright
Group:		System/Fonts/True type
Url:		http://linux.thai.net/projects/thaifonts-scalable
Source0:	ftp://linux.thai.net/pub/ThaiLinux/software/thai-ttf/thai-ttf-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	fontconfig
BuildRequires:	ttmkfdir

%description
This Package provides Free Thai TrueType fonts.

%prep
%setup -qn thai-ttf-%{version}

%install
mkdir -p %{buildroot}/%{_datadir}/fonts/TTF/thai/
cp *.ttf %{buildroot}/%{_datadir}/fonts/TTF/thai/

(
cd %{buildroot}/%{_datadir}/fonts/TTF/thai/
%_bindir/ttmkfdir -u > fonts.scale
cp fonts.scale fonts.dir
)

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/thai \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-thai:pri=50


%files
%dir %{_datadir}/fonts/TTF/
%dir %{_datadir}/fonts/TTF/thai/
%{_datadir}/fonts/TTF/thai/*
%{_sysconfdir}/X11/fontpath.d/ttf-thai:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1588 |21cr|fonts-ttf-theano-2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname theano

Summary:	Theano Classical Fonts
Name:		fonts-ttf-theano
Version:	2.0
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://www.thessalonica.org.ru/en/fonts.html
Source0:	http://www.thessalonica.org.ru/downloads/%{pkgname}-%{version}.ttf.zip
BuildRequires:	freetype-tools
BuildRequires:	dos2unix
BuildArch:	noarch

%description
Theano is a common name for some fonts designed from historic samples. Most
of these fonts were initially intended as Greek-only faces, but currently
Theano fonts contain a standard set of Latin, Greek and Cyrillic characters
(including the full polytonic set for Greek) and some additional characters.
These fonts can be useful for classicists or medievalists.

%prep
%setup -q -c -n %{pkgname}-%{version}
dos2unix OFL-FAQ.txt

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/theano

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/theano
ttmkfdir %{buildroot}%{_xfontdir}/TTF/theano -o %{buildroot}%{_xfontdir}/TTF/theano/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/theano/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/theano \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-theano:pri=50

%files
%doc FONTLOG.txt OFL.txt OFL-FAQ.txt
%dir %{_xfontdir}/TTF/theano
%{_xfontdir}/TTF/theano/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/theano/fonts.dir
%{_xfontdir}/TTF/theano/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-theano:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1589 |21cr|fonts-ttf-tibetan-ttmuni-1.901b-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tibetan Machine Unicode font
Name:		fonts-ttf-tibetan-ttmuni
Version:	1.901b
Release:	8
License:	GPLv2+
URL: 		http://www.thdl.org/tools/fonts/tibfonts.php
Group:		System/Fonts/True type
Source0:	TibetanMachineUnicodeFont.zip
Buildarch:	noarch
BuildRequires:	mkfontdir

%description
This package provides an OpenType Unicode Tibetan font,
for writing in Tibetan, Dzongkha and Ladakhi with almost 4000 glyphs.

%prep
%setup -q -c %{name}

%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/fonts/ttf/ttmuni/
install -m 644 *.ttf ${RPM_BUILD_ROOT}%{_datadir}/fonts/ttf/ttmuni/
cd ${RPM_BUILD_ROOT}/%{_datadir}/fonts/ttf/ttmuni/
mkfontdir
cp fonts.dir fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/ttf/ttmuni \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-tibetan-ttmuni:pri=50


%clean
rm -fr ${RPM_BUILD_ROOT}

%files
%defattr(0644,root,root,0755)
%doc *.txt
%{_datadir}/fonts/ttf/ttmuni/
%{_sysconfdir}/X11/fontpath.d/ttf-tibetan-ttmuni:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1590 |21cr|fonts-ttf-tifinagh-1.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Tifinagh TTF font(s)
Name: fonts-ttf-tifinagh
Version: 1.0
Release: 18
License: Free use and distribution
Group: System/Fonts/True type
Source0: http://pages.infinit.net/hapax/polices/hapaxber.ttf.bz2
Source1: http://pages.infinit.net/hapax/polices/inventaire-des-oeils.pdf.bz2
URL: http://hapax.qc.ca/propo_tifinagh.pdf
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	freetype-tools

%description
This package contains fonts for the Tifinagh script,
as encoded in unicode.

%prep
#%setup -c 

rm -rf %{name}-%{version}
mkdir %{name}-%{version}
cd %{name}-%{version}

%build
cd %{name}-%{version}
bzcat %{SOURCE0} > hapaxber.ttf
bzcat %{SOURCE1} > inventaire-des-oeils.pdf

cat << EOF > README.txt
The "Hapax Berbère" font was used as the reference font for
the proposal of inclusion of tifinagh script into Unicode BMP;
its autor, Patrick Andries hapax(at)iquebec.com, kindly released
as freely usable and distributable.

The PDF file inventaire-des-oeils.pdf gives the list of all the glyphs
in the font (there are various glyph variants and ligatures on private
use area too)
EOF

%install
cd %{name}-%{version}
rm -rf %buildroot
install -d %buildroot/%_datadir/fonts/TTF/tifinagh

for i in `find . -name "*.ttf"` ; do
install -m 644 $i %buildroot/%_datadir/fonts/TTF/tifinagh
done

%post
touch %{_datadir}/fonts/TTF

%clean
rm -fr %buildroot

%files
%defattr(0644,root,root,0755)
%doc %{name}-%{version}/README* %{name}-%{version}/*.pdf
%dir %_datadir/fonts/TTF/
%dir %_datadir/fonts/TTF/tifinagh
%_datadir/fonts/TTF/tifinagh/*.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1591 |21cr|fonts-ttf-triod-postnaja-20100305-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname TriodPostnaja

Summary: Decorative font in Slavonic Church style
Name: fonts-ttf-triod-postnaja
Version: 20100305
Release: 5
License: OFL
Group: System/Fonts/True type
URL: http://io.debian.net/~danielj/
Source0: http://io.debian.net/~danielj/triod-postnaja/%{pkgname}-%{version}.sfd.gz
BuildArch: noarch
BuildRequires: freetype-tools
BuildRequires: fontforge


%description
Triod Postnaja attempts to mimic the typefaces used to publish Old Church
Slavonic service books prior to the 20th century. It also provides a range of
Latin letters in the same style, sufficient for the needs of central, northern
and western European languages.

%prep
#%setup -q -c -n %{pkgname}-%{version}
cd %_builddir
%__mkdir_p %{pkgname}-%{version}
cd %{pkgname}-%{version}
%__gzip -dc %{SOURCE0} > %{pkgname}-%{version}.sfd

%build
cd %{_builddir}/%{pkgname}-%{version}
for sfdfile in *.sfd
do
  fontforge -lang=ff -c "Open(\"./$sfdfile\"); Generate(\"./$sfdfile\":r + \".ttf\")"
done

%install
cd %{pkgname}-%{version}

%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/triod-postnaja

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/triod-postnaja
ttmkfdir %{buildroot}%{_xfontdir}/TTF/triod-postnaja > %{buildroot}%{_xfontdir}/TTF/triod-postnaja/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/triod-postnaja/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/triod-postnaja \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-triod-postnaja:pri=50

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%dir %{_xfontdir}/TTF/triod-postnaja
%{_xfontdir}/TTF/triod-postnaja/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/triod-postnaja/fonts.dir
%{_xfontdir}/TTF/triod-postnaja/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-triod-postnaja:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1592 |21cr|fonts-ttf-ubuntu-0.83-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname ubuntu-font-family
%define _fontdir %{_datadir}/fonts/TTF/ubuntu

Name: fonts-ttf-ubuntu
Summary: Ubuntu Font Family
Version: 0.83
Release: 3
License: Ubuntu Font Licence 1.0
Group: System/Fonts/True type
URL: http://font.ubuntu.com/
Source: http://font.ubuntu.com/download/%{pkgname}-0.83.zip
BuildRequires: freetype-tools
BuildArch: noarch
BuildRequires: fontconfig

%description
The Ubuntu Font Family are a set of matching new libre/open fonts in
development during 2010--2011. The development is being funded by
Canonical Ltd on behalf the wider Free Software community and the
Ubuntu project.  The technical font design work and implementation is
being undertaken by Dalton Maag.

Both the final font Truetype/OpenType files and the design files used
to produce the font family are distributed under an open licence and
you are expressly encouraged to experiment, modify, share and improve.

%prep
%setup -q -n %{pkgname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_fontdir}
install -m 644 *.ttf %{buildroot}%{_fontdir}
ttmkfdir %{buildroot}%{_fontdir} > %{buildroot}%{_fontdir}/fonts.dir
ln -s fonts.dir %{buildroot}%{_fontdir}/fonts.scale
mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_fontdir} \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-ubuntu:pri=50

%files
%doc *.txt
%dir %{_fontdir}
%{_fontdir}/*.ttf
%verify(not mtime) %{_fontdir}/fonts.dir
%{_fontdir}/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-ubuntu:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1593 |21cr|fonts-ttf-uralic-0-2.20040829.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Truetype fonts for Cyrillic-based Uralic languages
Name: fonts-ttf-uralic
Version: 0
Release: 2.20040829.8
License: GPLv2+
Group: System/Fonts/True type
URL: http://peoples.org.ru/eng_uralic.html
Source0: http://www.peoples.org.ru/font/BookmanUralic.zip
Source1: http://www.peoples.org.ru/font/ChanceryUralic.zip
Source2: http://www.peoples.org.ru/font/GothicUralic.zip
Source3: http://www.peoples.org.ru/font/MonoUralic.zip
Source4: http://www.peoples.org.ru/font/PalladioUralic.zip
Source5: http://www.peoples.org.ru/font/RomanUralic.zip
Source6: http://www.peoples.org.ru/font/SansCondUralic.zip
Source7: http://www.peoples.org.ru/font/SansUralic.zip
Source8: http://www.peoples.org.ru/font/SchoolbookUralic.zip
BuildArch: noarch
BuildRequires: fontconfig
BuildRequires: freetype-tools

%description
The Uralic fonts contain additional letters used in most Uralic languages
with Russian-based writing systems - Khanty (all dialects), Komi, Mansi 
(without marking long vowels), Mari, Nenets, Selkup and Udmurt. 

The fonts also support Altai, Chukchi, Even, Evenki, Koryak and Nanai.

Font list:

   * Bookman Uralic (regular, bold, italic)
   * Chancery Uralic - Decorative calligraphic font
   * Gothic Uralic (regular, bold) - Futura-like sans serif
   * Mono Uralic (regular) - Courier-like fixed width font
   * Palladio Uralic (regular, bold, italic) - Palatino-like typeface
   * Roman Uralic (regular, bold, italic) - Times-like typeface
   * Sans Uralic (regular, bold, italic, bold italic) - Helvetica-like
     sans serif typeface
   * Sans Condensed Uralic (regular, bold) - Narrow version of Sans Uralic
   * Schoolbook Uralic (regular, bold, italic)

These fonts cover ISO10646-1 and CP1251 charsets.

%prep
%setup -q -c 
unzip -qq -o %{SOURCE1}
unzip -qq -o %{SOURCE2}
unzip -qq -o %{SOURCE3}
unzip -qq -o %{SOURCE4}
unzip -qq -o %{SOURCE5}
unzip -qq -o %{SOURCE6}
unzip -qq -o %{SOURCE7}
unzip -qq -o %{SOURCE8}
chmod 0644 license.txt

%build

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/uralic

install -m 644 *.TTF $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/uralic
ttmkfdir $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/uralic > $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/uralic/fonts.dir
ln -s fonts.dir $RPM_BUILD_ROOT%{_datadir}/fonts/TTF/uralic/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/uralic \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-uralic:pri=50

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc license.txt
%dir %{_datadir}/fonts/TTF/uralic
%{_datadir}/fonts/TTF/uralic/*.TTF
%verify(not mtime) %{_datadir}/fonts/TTF/uralic/fonts.dir
%{_datadir}/fonts/TTF/uralic/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-uralic:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1594 |21cr|fonts-ttf-vds-20110926-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname vds

Summary:	VDS font family
Name:		fonts-ttf-vds
Version:	20110926
Release:	4
License:	OFL
Group:		System/Fonts/True type
URL:		http://openfontlibrary.org/font/vds
Source0:	%{pkgname}.zip
Source1:	OFL.txt
Source2:	OFL-FAQ.txt
BuildArch:	noarch
BuildRequires:	freetype-tools
BuildRequires:	dos2unix

%description
Font family. Regular Bold Italic Bold Italic. More than 15 languages supported,
including Baltic & Cyrillic symbols.

%prep
%setup -q -c -n %{pkgname}-%{version}

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_xfontdir}/TTF/vds

%__install -m 644 *.ttf %{buildroot}%{_xfontdir}/TTF/vds
ttmkfdir %{buildroot}%{_xfontdir}/TTF/vds -o %{buildroot}%{_xfontdir}/TTF/vds/fonts.dir
%__ln_s fonts.dir %{buildroot}%{_xfontdir}/TTF/vds/fonts.scale

%__mkdir_p %{buildroot}%_sysconfdir/X11/fontpath.d/
%__ln_s ../../..%{_xfontdir}/TTF/vds \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-vds:pri=50

%__install -D -m 644 %{SOURCE1} %{buildroot}%{_docdir}/%name/OFL.txt
%__install -D -m 644 %{SOURCE2} %{buildroot}%{_docdir}/%name/OFL-FAQ.txt

%files
%doc %{_docdir}/%name/OFL.txt
%doc %{_docdir}/%name/OFL-FAQ.txt
%dir %{_xfontdir}/TTF/vds
%{_xfontdir}/TTF/vds/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/vds/fonts.dir
%{_xfontdir}/TTF/vds/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-vds:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1595 |21cr|fonts-ttf-wqy-microhei-0.2.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	WenQuanYi MicroHei TrueType fonts
Name:		fonts-ttf-wqy-microhei
Version:	0.2.0
Release:	15
License:	ASL 2.0 or GPLv3
URL:		http://wenq.org/
Group:		System/Fonts/True type
Source0:	http://freefr.dl.sourceforge.net/sourceforge/wqy/wqy-microhei-%{version}-beta.tar.gz
BuildArch:	noarch
BuildRequires:	fontconfig

%description
WenQuanYi Micro Hei font family is a Sans-Serif style (also known as Hei,
Gothic or Dotum among the Chinese/Japanese/Korean users) high quality
CJK outline font. It was derived from "Droid Sans Fallback", "Droid
Sans" and "Droid Sans Mono" released by Google Corp. This font package
contains two faces, "Micro Hei" and "Micro Hei Mono", in form of a
True-Type Collection (ttc) file. All the unified CJK Han glyphs, i.e.
GBK Hanzi, in the range of U+4E00-U+9FC3 defined in Unicode Standard 5.1
are covered, with additional support to many other international
languages such as Latin, Extended Latin, Hanguls and Kanas. The font
file is extremely compact (~5M) compared with most known CJK fonts.
As a result, it can be used for hand-held devices or embedded systems, or
used on PC with a significantly small memory footprint. Because both
font faces carry hinting and kerning instructions for Latin glyphs,
they are the excellent choices for desktop fonts.

%package -n fonts-ttf-default-zh_CN
Summary: Virtual package providing default zh_CN fonts
Group: System/Fonts/True type
Requires: %{name} = %{version}

%description -n fonts-ttf-default-zh_CN
This package provides default TrueType font for zh_CN locale.

%prep
%setup -q -n wqy-microhei

%build

%install
rm -fr %buildroot
mkdir -p %buildroot/%{_datadir}/fonts/TTF/wqy-microhei
install -m 644 *.ttc %buildroot/%{_datadir}/fonts/TTF/wqy-microhei

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/wqy-microhei \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-wqy-microhei:pri=50

%clean
rm -fr %buildroot

%files
%defattr(-,root,root,0755)
%doc *.txt
%dir %_datadir/fonts/TTF/wqy-microhei/
%_datadir/fonts/TTF/wqy-microhei/*.ttc
%_sysconfdir/X11/fontpath.d/ttf-wqy-microhei:pri=50

%files -n fonts-ttf-default-zh_CN
%defattr(-,root,root,0755)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1596 |21cr|fonts-ttf-wqy-zenhei-0.9.45-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wqy-zenhei

Summary:	WenQuanYi ZenHei TrueType font
Name:		fonts-ttf-%{oname}
Version:	0.9.45
Release:	6
Source:		http://downloads.sourceforge.net/wqy/%{oname}-%{version}.tar.gz
URL:		http://www.wenq.org
License:	GPLv2+
Group:		System/Fonts/True type
BuildArch:	noarch
BuildRequires: fontconfig
Requires(post):	mkfontdir, mkfontscale
Requires(postun):	mkfontdir, mkfontscale

%description
The WenQuanYi Zen Hei is the first open-source Chinese font
for Hei Ti, a sans-serif font style that are widely used for
general purpose Chinese text formatting, and on-screen
display of Chinese characters (such as in Windows Vista and Mac OS).
Simple and elegant font outlines and slightly emboldened strokes
makes the glyphs presenting higher contrast and therefore easy
to read. The unique style of this font also provide a simple
interface for adding grid-fitting information for further
fine-tuning of the on-screen performance.

%prep
%setup -q -n %{oname} 
 
%build

%install
rm -fr %{buildroot}

install -d %{buildroot}/%{_datadir}/fonts/TTF/%{oname}/
install -m 644 wqy-zenhei.ttc %{buildroot}/%{_datadir}/fonts/TTF/%{oname}/

install -d %{buildroot}/%{_sysconfdir}/fonts/conf.avail/
install -m 644 43-wqy-zenhei-sharp.conf %{buildroot}/%{_sysconfdir}/fonts/conf.avail/43-wqy-zenhei-sharp.conf

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/%{oname} \
    %{buildroot}%_sysconfdir/X11/fontpath.d/%{oname}:pri=50

%post
[ -x %{_bindir}/mkfontdir ] && %{_bindir}/mkfontdir %{_datadir}/fonts/TTF/%{oname}
[ -x %{_bindir}/mkfontscale ] && %{_bindir}/mkfontscale %{_datadir}/fonts/TTF/%{oname}

%postun
if [ "$1" = "0" ]; then
  [ -x %{_bindir}/mkfontdir ] && %{_bindir}/mkfontdir %{_datadir}/fonts/TTF/%{oname}
  [ -x %{_bindir}/mkfontscale ] && %{_bindir}/mkfontscale %{_datadir}/fonts/TTF/%{oname}
fi

%clean
rm -fr %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc ChangeLog AUTHORS COPYING README
%{_sysconfdir}/fonts/conf.avail/43-wqy-zenhei-sharp.conf
%dir %{_datadir}/fonts/TTF/%{oname}/
%{_datadir}/fonts/TTF/%{oname}/*.ttc
%{_sysconfdir}/X11/fontpath.d/%{oname}:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1597 |21cr|fonts-type1-hebrew-0.130-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hebrew Type1 fonts
Name:		fonts-type1-hebrew
Version:	0.130
Release:	6
License:	GPLv2
Group:		System/Fonts/Type1
Url:		http://culmus.sourceforge.net/
Source0:	http://belnet.dl.sourceforge.net/sourceforge/culmus/culmus-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
BuildRequires:	t1utils
# Added to avoid conflicts with the official RPM released by Culmus project

%description
This Package provides free Hebrew Type1 fonts, courtesy of the Culmus project.

Since version 0.100, all default sizes have been reduced and names have been
changed. Once you install this version or a later one, all letters in your
documents will shrink; manual tuning may therefore be necessary.

%prep
%setup -qn culmus-%{version}

%build
for i in *.pfa ; do 
	t1binary $i `basename $i .pfa`.pfb
done 
sed -i -e '1,$s/\.pfa/.pfb/' fonts.scale-type1

%install
mkdir -p %{buildroot}/%{_datadir}/fonts/Type1/hebrew/
mkdir -p %{buildroot}/%{_datadir}/fonts/TTF/hebrew/
install -m 0644 *.pfb %{buildroot}/%{_datadir}/fonts/Type1/hebrew
install -m 0644 *.afm %{buildroot}/%{_datadir}/fonts/Type1/hebrew
install -m 0644 *.ttf %{buildroot}/%{_datadir}/fonts/TTF/hebrew
install -m 0644 fonts.scale-type1 %{buildroot}/%{_datadir}/fonts/Type1/hebrew/fonts.scale
install -m 0644 fonts.scale-ttf %{buildroot}/%{_datadir}/fonts/TTF/hebrew/fonts.scale
# Added for version 0.100
mkdir -p %{buildroot}/%{_sysconfdir}/fonts/conf.d
mkdir -p %{buildroot}/%{_sysconfdir}/fonts/conf.avail
install -m 0644 culmus.conf %{buildroot}/%{_sysconfdir}/fonts/conf.avail/01-culmus.conf
ln -s %{_sysconfdir}/fonts/conf.avail/01-culmus.conf %{buildroot}/%{_sysconfdir}/fonts/conf.d/01-culmus.conf

(
cd %{buildroot}/%{_datadir}/fonts/Type1/hebrew/
cp fonts.scale fonts.dir
)
(
cd %{buildroot}/%{_datadir}/fonts/TTF/hebrew/
cp fonts.scale fonts.dir
)

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/Type1/hebrew \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/Type1-hebrew:pri=50
ln -s ../../..%{_datadir}/fonts/TTF/hebrew \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/TTF-hebrew:pri=50

%files
%doc CHANGES LICENSE LICENSE-BITSTREAM GNU-GPL
%{_datadir}/fonts/Type1/hebrew
%{_datadir}/fonts/TTF/hebrew
# Added for version 0.100
%{_sysconfdir}/fonts/conf.d/01-culmus.conf
%{_sysconfdir}/fonts/conf.avail/01-culmus.conf
%{_sysconfdir}/X11/fontpath.d/Type1-hebrew:pri=50
%{_sysconfdir}/X11/fontpath.d/TTF-hebrew:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1598 |21cr|fonts-type1-mathml-cm-1.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontdir %{_datadir}/fonts/type1/mathml-cm

Summary:	PostScript Type1 MathML fonts (Computer Modern)
Name:		fonts-type1-mathml-cm
Version:	1.0
Release:	15
License:	Freely distributable
Group:		System/Fonts/Type1
Url:		http://www.ams.org/tex/type1-fonts.html
Source0:	ftp://ftp.dante.de/pub/tex/fonts/cm/ps-type1/bluesky/cmps-unix.tar.bz2
BuildRequires:	fontconfig
Requires:	font-tools
Provides:	fonts-mathml-cm-type1 = %{EVRD}
BuildArch:	noarch

%description
This package contains a subset of PostScript fonts of the Knuth's Computer
Modern family, to be used with Xprint.

%files
%dir %{fontdir}
%doc README
%attr(644,root,root) %{fontdir}/*.pfb
%attr(644,root,root) %{fontdir}/*.afm
%attr(644,root,root) %{fontdir}/fonts.dir
%{_sysconfdir}/X11/fontpath.d/type1-mathml-cm:pri=50

#----------------------------------------------------------------------------

%prep
%setup -q -n cmpsfont

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{fontdir}
(cd pfb
install -m 644 cmr10.pfb cmmi10.pfb cmex10.pfb cmsy10.pfb \
	%{buildroot}%{fontdir}/
)

(cd afm
install -m 644 cmr10.afm cmmi10.afm cmex10.afm cmsy10.afm \
	%{buildroot}%{fontdir}/
)

cat <<EOF > %{buildroot}%{fontdir}/fonts.dir
4
cmex10.pfb -bsr-cmex10-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
cmmi10.pfb -bsr-cmmi10-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
cmr10.pfb -bsr-cmr10-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
cmsy10.pfb -bsr-cmsy10-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific
EOF

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{fontdir} \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/type1-mathml-cm:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1599 |21cr|fonttools-3.38.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          fonttools
Version:       3.38.0
Release:       2
Summary:       A tool to convert True/OpenType fonts to XML and back
Group:         Development/Other
License:       BSD
Url:           https://github.com/behdad/fonttools
Source0:       https://github.com/behdad/fonttools/archive/%{version}/%{name}-%{version}.tar.gz

BuildArch:     noarch
BuildRequires: glibc-devel
Requires:      python3-fonttools
Requires:      python3-setuptools

%description
TTX/FontTools is a tool to convert OpenType and TrueType fonts to and
from XML. FontTools is a library for manipulating fonts, written in Python.
It supports TrueType, OpenType, AFM and to an extent Type 1 and some
Mac-specific formats.

%package -n python2-fonttools
Summary:       Python 2 fonttools library
BuildRequires: pkgconfig(python2)
BuildRequires: python-numpy
BuildRequires: pythonegg(setuptools)
Requires:      python-numpy

%description -n python2-fonttools
TTX/FontTools is a tool for manipulating TrueType and OpenType fonts. It is
written in Python and has a BSD-style, open-source license. TTX can dump
TrueType and OpenType fonts to an XML-based text format and vice versa.


%package -n python3-fonttools
Summary:       Python 3 fonttools library
BuildRequires: pkgconfig(python3)
BuildRequires: python3-numpy
BuildRequires: python3egg(cffi)
BuildRequires: python3egg(setuptools)
Requires:      python3-numpy

%description -n python3-fonttools
TTX/FontTools is a tool for manipulating TrueType and OpenType fonts. It is
written in Python and has a BSD-style, open-source license. TTX can dump
TrueType and OpenType fonts to an XML-based text format and vice versa.

%prep
%setup -qn %{name}-%{version}

rm -rf %{py3dir} && mkdir %{py3dir}
cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

pushd %{py3dir}
%py3_install
popd

rm -rf %{buildroot}%{py_puresitedir}/FontTools/fontTools/ttLib/test

%files
%{_bindir}/%{name}
%{_bindir}/pyft*
%{_bindir}/ttx
%{_mandir}/man1/ttx.1.xz
 
%files -n python2-fonttools
%doc NEWS.rst
%doc LICENSE
%{py_puresitedir}/%{name}-%{version}-py%{python2_version}.egg-info/
%{py_puresitedir}/fontTools/

%files -n python3-fonttools
%doc NEWS.rst
%doc LICENSE
%{py3_puresitedir}/%{name}-%{version}-py%{python3_version}.egg-info/
%{py3_puresitedir}/fontTools



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1600 |21cr|foobillardplus-3.43-0.svn170.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rev svn170

Summary:	A free 3D OpenGL billiard game
Name:		foobillardplus
Version:	3.43
Release:	0.%{rev}.3
License:	GPLv2+
Group:		Games/Sports
Url:		http://foobillardplus.sourceforge.net
# From http://svn.code.sf.net/p/foobillardplus/code/ after removing useless and nonfree content
# rm -rf .svn data/music/* data/DejaVuSans*.ttf debian osx src-graphics
Source0:	%{name}-%{version}-%{rev}.tar.xz
Source1:	%{name}.6
Source2:	intro-nomusic.png
Patch0:		foobillardplus-3.43-mga-install-dir-in-configure.in.patch
Patch1:		foobillardplus-3.43-mga-user-settings-in-XDG_DATA_HOME.patch
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)
Requires:	fonts-ttf-dejavu
Obsoletes:	foobillard < 3.0a-14
Provides:	foobillard = %{EVRD}

%description
FooBillard++ is an advanced 3D OpenGL billiard game based on the original
foobillard 3.0a sources from Florian Berger. You can play it with one or two
players or against the computer.

The music has been removed because of its restrictive CC BY-NC-ND license.

%files
%doc AUTHORS COPYING ChangeLog README
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/128x128/apps/%{name}.png
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{rev}
%apply_patches
# Use system browser
sed -i -e 's/firefox/www-browser/g' data/browser.sh

%build
autoreconf -vfi
%global optflags %{optflags} -fgnu89-inline
%configure \
	--enable-debian
%make

%install
# make install instructions are kind of broken
install -D -m755 src/foobillardplus %{buildroot}%{_gamesbindir}/%{name}
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a data/ %{buildroot}%{_gamesdatadir}/%{name}/

# Fixed intro image without the removed music credits
cp -f %{SOURCE2} %{buildroot}%{_gamesdatadir}/%{name}/data/intro.png

# icon and man page
install -D -m644 foobillardplus.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
install -D -m644 %{SOURCE1} %{buildroot}%{_mandir}/man6/%{name}.6

# symlink to DejaVu fonts
ln -s %{_xfontdir}/TTF/dejavu/DejaVuSans.ttf      %{buildroot}%{_gamesdatadir}/%{name}/data/DejaVuSans.ttf
ln -s %{_xfontdir}/TTF/dejavu/DejaVuSans-Bold.ttf %{buildroot}%{_gamesdatadir}/%{name}/data/DejaVuSans-Bold.ttf

# desktop entry
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=FooBillard++
GenericName=3D OpenGL billiard game
GenericName[de]=3D-OpenGL-Billard-Spiel
GenericName[fr]=Jeu de billard en 3D OpenGL
Comment=3D OpenGL billiard game
Comment[de]=3D-OpenGL-Billard-Spiel
Comment[fr]=Jeu de billard en 3D OpenGL
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Game;Simulation;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1601 |21cr|foobnix-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}
%define	snapshot 0

Summary:	Simple and powerful music player for Linux
Name:		foobnix
Version:	3.2.1
Release:	1
License:	GPLv3+
Group:		Sound
Url:		http://foobnix.com/en/index.html
# Take a master snapshot to get a not-tagged 3.1.2 and fixes until 04/25/2016
%if %{snapshot}
Source0:	https://github.com/%{name}/%{name}/archive/%{name}-master.zip
%else
Source0:	https://github.com/foobnix/foobnix/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
%endif
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	python3-mutagen
BuildRequires:	python3-devel
BuildRequires:	python3-simplejson
BuildRequires:	python3-setuptools
Requires:	python3-mutagen
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-python
Requires:	gstreamer1.0-ffmpeg
Requires:	python3-chardet
Requires:	python3-setuptools
Requires:	python3-simplejson
# The package is in Contrib, but supports mp3 and AAC:
# suggest the needed packages from Restricted
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-ugly
Recommends:	faac
Recommends:	lame
BuildArch:	noarch

%description
Simple and powerful music player for Linux, written in python.
All best features in one player: small, fast, customizable, powerful, with
user-friendly interface.
Main features:
  * CUE, wv and iso.wv support.
  * Supports MP3, MP4, AAC, CD Audio, WMA, OGG, FLAC, WavPack, WAV, Musepack
    and many more formats.
  * 10-band equalizer with presets.
  * Last.FM integration.
  * vk.com also supported.
  * Lyrics search by lyricsmania.com and megalyrics.ru.

%files -f %{name}.lang
%doc README* COPYING CHANGELOG
%{_bindir}/%{name}
%{python3_sitelib}/%{name}/*
%{python3_sitelib}/%{name}-*.egg-info
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------------

%prep
%if %{snapshot}
%setup -qn %{name}-master
%else
%setup -qn %{name}-%{version}
%endif


%build
%py3_build


%install
%__python3 setup.py install --prefix=/usr --root %{buildroot}

# icon fix
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/
cp %{buildroot}%{_datadir}/pixmaps/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1602 |21cr|foo-yc20-1.3.0-1.30e924.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}
%define	lv2dir %{_libdir}/lv2/

%define	commit 30e924ba233d13a95384aed36e5c080fbbb548ab
%define	git 30e924

Summary:	YC-20 organ emulation
Name:		foo-yc20
Version:	1.3.0
Release:	1.%{git}.2
License:	GPLv2+
Group:		Sound
Url:			https://github.com/sampov2/foo-yc20
Source0:	https://github.com/sampov2/foo-yc20/archive/30e924ba233d13a95384aed36e5c080fbbb548ab.zip?/%{name}-%{version}-%{git}.zip
Patch0:	foo-yc20-1.3.0-desktop.patch
Patch1:	foo-yc20-faust2-support.patch
Patch2:	foo-yc20-1.3.0-use-variables-for-install-path.patch
BuildRequires:	faust-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(slv2)

%description
The YC-20 is a divide-down combo organ designed in the late 60's. This
emulation faithfully copies the features, sounds and flaws of the
original organ. It comes as standalone synth and as LV2 plugin. Features
are as follows:
o Physical modelling, no polyphony restrictions.
o 61 keys.
o Two main voice sections.
o Switchable bass section.
o Realism control to add flaws found in the real organ.

%files
%doc README
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{lv2dir}%{name}.lv2/%{name}-lv2ui.so
%{lv2dir}%{name}.lv2/%{name}.so
%{lv2dir}%{name}.lv2/%{name}.ttl
%{lv2dir}%{name}.lv2/manifest.ttl

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

perl -pi -e 's/\/usr\/local/\/usr\//g' Makefile
perl -pi -e 's/\/lib/\/%{_lib}/g' Makefile
perl -pi -e 's/CFLAGS=/#CFLAGS=/g' Makefile


%build
%ifarch %{armx}
CFLAGS="-ffast-math -ftree-vectorize" %make
%else
CFLAGS="-mfpmath=sse -ffast-math -ftree-vectorize" %make
%endif


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1603 |21cr|fooyin-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# set rpath
%global ldflags %{ldflags} -Wl,-rpath -Wl,%{_libdir}/foo

Summary:	A customisable music player built with Qt
Name:		fooyin
Version:	0.8.0
Release:	1
License:	GPLv3.0
Group:		Sound
Url:		https://github.com/ludouzi/fooyin
Source0:	https://github.com/ludouzi/fooyin/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/ValleyBell/libvgm/archive/34c368cde98f33c42455fbbfbec07073ba79bf5c.zip?/libvgm.tar.gz
BuildRequires:	hicolor-icon-theme
BuildRequires:	qt6-cmake
BuildRequires:	cmake(KDSingleApplication-qt6)
BuildRequires:	cmake(Qt6LinguistTools)
BuildRequires:	patchelf
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavdevice)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libopenmpt)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(Qt6Concurrent)
BuildRequires:	pkgconfig(Qt6Core)
BuildRequires:	pkgconfig(Qt6DBus)
BuildRequires:	pkgconfig(Qt6Linguist)
BuildRequires:	pkgconfig(Qt6OpenGLWidgets)
BuildRequires:	pkgconfig(Qt6Sql)
BuildRequires:	pkgconfig(Qt6Svg)
BuildRequires:	pkgconfig(Qt6Widgets)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(xkbcommon)
ExcludeArch:	%{ix86}

%description
fooyin is a Qt6 music player built around customisation. It offers a
growing list of widgets to manage and play a local music collection.
It is extendable through the use of plugins, and many widgets make
use of FooScript to offer an even deeper level of control.

%files
%doc %{_docdir}/fooyin
%license COPYING
%{_appdatadir}/org.%{name}.%{name}.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.%{name}.%{name}.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/org.%{name}.%{name}.*
%{_libdir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -a1

cp -r libvgm-*/* 3rdparty/libvgm/

%build
%cmake
%make_build

%install
%make_install -C build
# No header files were installed, so... no point in keeping the
# component libraries' devel files.
rm -fv %{buildroot}/%{_libdir}/fooyin/*.so

# set rpath
patchelf --set-rpath '$ORIGIN/../%{_lib}/%{name}' %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1604 |21cr|foremost-1.5.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

Summary:	Recover files based on their headers and footers
Name:		foremost
Version:	1.5.7
Release:	6
License:	Public Domain
Group:		File tools
Url:		http://foremost.sourceforge.net/
Source0:	http://foremost.sourceforge.net/pkg/foremost-%{version}.tar.gz
Patch0:		foremost-1.5.7-format-security.patch
Patch1:		foremost-1.5.7-gcc10.patch

%description
Foremost is a Linux program to recover files based on their headers and
footers. Foremost can work on image files, such as those generated by
dd, Safeback, Encase, etc, or directly on a drive. The headers and
footers are specified by a configuration file, so you can pick and
choose which headers you want to look for.

%files
%defattr(0644,root,root,0755)
%doc CHANGES README
%attr(0755,root,root) %{_bindir}/foremost
%config(noreplace) %{_sysconfdir}/%{name}.conf

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%__perl -pi -e 's/-O2/%{optflags}/g' Makefile
%__perl -pi -e 's|/usr/local/etc|%{_sysconfdir}|' config.c

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 foremost %{buildroot}%{_bindir}/foremost
mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 foremost.conf %{buildroot}%{_sysconfdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1605 |21cr|forge-parent-38-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           forge-parent
Version:	38
Release:	1
Summary:        Sonatype Forge Parent Pom

Group:          Development/Java
#Note: The license is confirmed at:
#http://nexus.sonatype.org/mailing-list-dev-archives.html#nabble-ts28522017
License:        ASL 2.0
#svn export http://svn.sonatype.org/forge/tags/forge-parent-5 forge-parent
URL:            http://svn.sonatype.org/forge/tags/forge-parent-5

# tar czf forge-parent-5.tgz forge-parent
Source0:        forge-parent-5.tgz

BuildArch: noarch

BuildRequires: jpackage-utils
BuildRequires: java
BuildRequires: java-devel

Requires: jpackage-utils

%description
Sonatype Forge is an open-source community dedicated to the creation of the 
next-generation of development tools and technologies.

%prep
%setup -q -n %{name}

%build
#nothing to do for the pom

%install
%add_to_maven_depmap org.sonatype.forge forge-parent %{version} JPP forge-parent

# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \
    %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%{_mavenpomdir}/*
%{_mavendepmapfragdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1606 |21cr|fortune-bofh-1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name	bofh

Name:		fortune-%{base_name}
Version:	1.2
Release:	4
Summary:	BOFH excuses fortune
License:	Public Domain
Group:		Toys
Source:		%{base_name}-%{version}.tar.bz2
URL:		http://www.cs.wisc.edu/~ballard/bofh
BuildArch:	noarch
Requires:	fortune-mod
BuildRequires:	fortune-mod

%description
This is a set of BOFH-style excuses.

%prep
%setup -q -n %{base_name}-%{version}

%build
%__perl -ni -e 'print "BOFH excuse #" . ++$i . ":\n\n$_%\n"' excuses
/usr/sbin/strfile excuses

%install
%__rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_gamesdatadir}/fortunes
install -m 644 excuses %{buildroot}%{_gamesdatadir}/fortunes/%{base_name}
install -m 644 excuses.dat %{buildroot}%{_gamesdatadir}/fortunes/%{base_name}.dat

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_gamesdatadir}/fortunes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1607 |21cr|fortune-brice2nice-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name	brice2nice

Name:		fortune-brice2nice
Version:	0.2
Release:	10
Summary:	Brice de nice sketches
License:	Public Domain
Group:		Toys
Source:		%{name}.tar.bz2
Url:		http://www.tom.free.fr/src/brice2nice
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-buildroot
Requires:	fortune-mod

BuildRequires: fortune-mod

%description
The "Brice de nice" sketches.
Special Thanks to the mandrakefr community during RMLL2004
where "Brice de Nice" was inside all our discussions.

%prep
%setup -q -n %{name} 

%build
%make clean
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_gamesdatadir}/fortunes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1608 |21cr|fortune-distribfr-20090926-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: The best IRC moments by the French Mandr* team
Summary(fr): Les meilleurs moments IRC par les mandr* français
Name: fortune-distribfr
Version: 20090926
Release: 5
Source0: %{name}-%{version}.tar.bz2
License: GPLv2+
Group: Toys
URL: http://nanardon.zarb.org/cgi-bin/viewcvs.cgi/?root=fortune
BuildArch: noarch
Requires: fortune-mod
BuildRequires: fortune-mod
BuildRequires: recode

%define thanks Milka, Ennael, Zborg, Zorro, Dolly, Erinmargault, Virginie, Hina,
%define thanks2 Paysage, Bibi, Cvjetic, Othalia, Mandi, leeloo, Little_Tux_Girl,
%define thanks3 poipoi, Scara, lafeebleue, Cinaee, eponae, annma, elephantine,
%define thanks4 melodie, Amaz, Jehane, Djezael

%description
The best moments of IRC chatting from channels #mandriva-fr ( ex #mandrakefr ),
#gentoofr, #lea-linux, on the IRC server irc.freenode.net (in French), and from
the Mandriva Linux Cooker mailing list.

This package includes octoz fortunes.

Special thanks to:
%{thanks}
%{thanks2}
%{thanks3}
%{thanks4}.

%description -l fr
Les meilleurs moments trouvés sur IRC sur les canaux #mandrivafr 
( ex #mandrakefr ), #gentoofr, #lea-linux, serveur IRC irc.freenode.net, et sur
la mailing-list Mandriva Linux Cooker.

Ce paquet inclut les fortunes octoz.

Spéciale dédicace à:
%{thanks}
%{thanks2}
%{thanks3}
%{thanks4}.

%prep
%setup -q -c %name
rm -f fr/*.dat
for fortune in fr/*;do recode l1..u8 $fortune; done

%build
%make clean
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
cd %buildroot%_datadir/games/fortunes/fr
for x in *.dat; do 
  ln -s $(echo $x|sed s/.dat//) $(echo $x|sed s/.dat/.u8/) 
done

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
 %_datadir/games/fortunes/mandrake*
%lang(fr) %_datadir/games/fortunes/fr/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1609 |21cr|fortune-kernelnewbies-20060120-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name fortune-kernelnewbies
%define version 20060120
%define release 9

Summary: The best IRC moments by kernel hacker
Name: fortune-kernelnewbies
Version: 20060120
Release: 9
Source0: kernelnewbies-fortunes.tar.bz2
License: GPL
Group: Toys
URL: http://kernelnewbies.org/kernelnewbies-fortunes.tar.gz
BuildArch: noarch
Requires: fortune-mod

%description
The best "famous word" of famous kernel hackers.

%prep
%setup -q -c %name

%build
# nothing to do

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%_datadir/games/fortunes
install -m 644 kernelnewbies $RPM_BUILD_ROOT/%_datadir/games/fortunes/
install -m 644 kernelnewbies.dat $RPM_BUILD_ROOT/%_datadir/games/fortunes/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%_datadir/games/fortunes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1610 |21cr|fortune-MDOS-fr-20040104-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: The best of Jayce about MultiDeskOS
Summary(fr): Le meilleur de Jayce propos de MultiDeskOS 
Name: fortune-MDOS-fr
Version: 20040104
Release: 10
Source0: multidesk.tar.bz2
License: Public Domain
Group: Toys
BuildArch: noarch
Url: http://lordoric.free.fr/fortunes
BuildRequires: fortune-mod
Requires: fortune-mod locales-fr

%description -l fr
Le meilleur de la liste de discussion de MultideskOS et de la documentation
de ce systeme (?) d'avenir.
 
%description 
Best of MultideskOS' ML and documentation. In French.

%prep
%setup -c 

%build
sed -i 's/\r//g' multidesk
cat multidesk2 >> multidesk
%{_sbindir}/strfile multidesk

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%_datadir/games/fortunes/fr/
cp multidesk multidesk.dat $RPM_BUILD_ROOT/%_datadir/games/fortunes/fr/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc multidesk.licence
%_datadir/games/fortunes/fr/multidesk*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1611 |21cr|fortune-mod-ru-1.52-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Russian fortune messages
Name:		fortune-mod-ru
Version:	1.52
Release:	4
License:	GPLv2+
Group:		Toys
Url:		http://jack.kiev.ua/fortune-mod-ru/
Source0:	http://jack.kiev.ua/filez/%{name}-%{version}.tar.bz2
Requires:	fortune-mod
BuildArch:	noarch

%description
Russian fortune messages from Acid Jack.

%files
%doc ChangeLog README
%{_gamesdatadir}/fortunes/ru/

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
%makeinstall_std INSTALL=install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1612 |21cr|fortune-murphy-1.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name	murphy

Name:		fortune-murphy
Version:	1.0
Release:	16
Summary:	Quotes from Murphy's laws
License:	GPL
Group:		Toys
Url:		http://lis.snv.jussieu.fr/~rousse/linux
Source:		%{name}-%{version}.tar.bz2
Requires:	fortune-mod
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}

%description
This is a collection of more than 1250 Murphy's (& Al) laws, ignominously
stolen from the excellent Ultimate Collection of Murphy's Laws by Andreas Götz
(http://www.cpuidle.de/murphy.shtml), at format used by the good old fortune
command.

%prep
%setup -q

%build

%clean 
rm -rf %{buildroot}

%install
install -d -m 755 %{buildroot}%{_gamesdatadir}/fortunes
for file in data/*; do
  install -m 644 $file %{buildroot}%{_gamesdatadir}/fortunes/%{base_name}-`basename $file`
done

%files
%defattr(-,root,root)
%doc COPYING README
%{_gamesdatadir}/fortunes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1613 |21cr|fortune-top100-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name	top100

Name:		fortune-top100
Version:	1.0
Release:	13
Summary:	Top 100 things you don't want the sysadmin to say
License:	Public Domain
Group:		Toys
Source:		%{base_name}.tar.bz2
Url:		http://people.redhat.com/andrew/humor/100sys.html
Requires:	fortune-mod
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}

%description
The top 100 things you don't want the sysadmin to say in fortune format.

%prep
%setup -q -n %{base_name}

%build

%clean 
rm -rf %{buildroot}

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_gamesdatadir}/fortunes
install -m 644 %{base_name}* %{buildroot}%{_gamesdatadir}/fortunes

%files
%defattr(-,root,root)
%{_gamesdatadir}/fortunes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1614 |21cr|fossil-2.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Simple, high-reliability, distributed, software configuration management
Name:		fossil
Version:	2.19
Release:	1
License:	BSD 2-clause
Group:		Development/Tools
Url:		http://www.fossil-scm.org/
Source0:	https://fossil-scm.org/home/tarball/1e131febd3fbb028d00cab6d020214e8fe36be95daaf93237523c29c542e9a5f/%{name}-src-%{version}.tar.gz
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3) >= 3.25.2
BuildRequires:	pkgconfig(zlib)
BuildRequires:	readline-devel
BuildRequires:	tcl

%description
Fossil is a simple, high-reliability, and distributed, software configuration
management system, with distributed bug tracking, a distributed wiki
capability, and a built-in web interface.

%files
%doc COPYRIGHT-BSD2.txt
%{_bindir}/fossil

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-src-%{version}

%build
CFLAGS="%{optflags}" ./configure --prefix=%{_prefix} \
	--with-openssl=auto --disable-internal-sqlite
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1615 |21cr|fotowall-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FotoWall is a wallpaper generator
Name:		fotowall
Version:	1.0
Release:	5
License:	GPLv2
Group:		Graphical desktop/KDE
Url:		http://www.enricoros.com/opensource/fotowall/
Source0:	https://github.com/enricoros/fotowall/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	ru_RU.qm
Patch0:		fotowall-1.0-backports-upstream-fixes-from-2019-01-02.patch
Patch1:		fotowall-1.0-fix-build-against-qt-5.15.0.patch
Patch2:		posterazor.ru.patch
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	qt5-linguist-tools
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(libv4lconvert)

%description
FotoWall is a wallpaper generator rendering some of your favorite pictures
in a nice and smooth high resolution composition.

%files
%doc GPL_V2 README.markdown
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/man/man?/%{name}.?.xz
#-------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

# update ru translation
cp -f %{SOURCE1} 3rdparty/posterazor/

# for hidden-file-or-dir warning
sed -i -e "s/\.build/build/" %{name}.pro
# Unused file
sed -i -e "/scripts/d" -e "s@man\ \\\@man@" %{name}.pro
# for v4l1 compatibility
sed -i -e 's/linux\/videodev.h/libv4l1-videodev.h/' 3rdparty/videocapture/VideoDevice.h
%{_qt5_bindir}/lrelease translations/*.ts

%build
%setup_compile_flags
%qmake_qt5
%make

%install
%makeinstall_qt
desktop-file-install --vendor="" \
  --mode 644 \
  --dir %{buildroot}%{_datadir}/applications/ \
  %{buildroot}/%{_datadir}/applications/%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1616 |21cr|fotoxx-22.31-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Editor of image files from digital cameras
Name:		fotoxx
Version:	22.31
Release:	2
License:	GPLv3+
Group:		Graphics
Url:		https://www.kornelix.net/fotoxx/fotoxx.html
Source0:	https://kornelix.net/downloads/downloads/%{name}-%{version}.tar.gz
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	xdg-utils
BuildRequires:	perl(Image::ExifTool)
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(champlain-gtk-0.12)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libtiff-4)
Suggests:	brasero
Requires:	exiv2
Requires:	dcraw
Requires:	perl(Image::ExifTool)
Recommends:		ffmpeg
# Needed for making panoramas
Recommends:		hugin
Recommends:		libwebp-tools
Recommends:		openjpeg2
Recommends:	    rawtherapee
Recommends:		vlc


%description
Edit image files from a digital camera. Includes color and contrast
enhancement, red-eye removal, sharpen, crop, rotate, noise removal, HDR (high
dynamic range) and panorama image compositing, thumbnail image browser, tag
editing and search.

%files
%{_docdir}/%{name}
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}


%build
%setup_compile_flags
# Add "-std=gnu++11" to avoid build warnings
CXXFLAGS="%{optflags} -std=gnu++11" %make PREFIX=%{_prefix}


%install
%makeinstall_std

# Provide variable size menu icons, instead of the only one present in the sources
# 1. Create the standard dir for the original 64x64 icon and move it here
install -D -m 644 %{buildroot}%{_datadir}/%{name}/icons/%{name}.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
# 2. Generate and install other icon sizes
for size in 16 24 32 48
do
install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/
convert -resize ${size}x${size} %{buildroot}%{_datadir}/%{name}/icons/%{name}.png %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done
# 3. Fix the provided .desktop file to use our icon files
desktop-file-edit --set-icon=%{name} %{buildroot}%{_datadir}/applications/%{name}.desktop


# Fix wrong perms (0744) causing rpmlint errors
chmod 0644 %{buildroot}%{_datadir}/%{name}/data/patterns/*.jpg


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1617 |21cr|fox1.6-1.6.57-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fox

%define api 1.6
%define major 0
%define libname_FOX %mklibname FOX%{api}_%{major}
%define libname_CHART %mklibname CHART%{api}_%{major}
%define devname %mklibname %{name} -d

Summary:	The FOX C++ GUI Toolkit
Name:		fox1.6
Version:	1.6.57
Release:	11
License:	LGPLv2+
Group:		Development/C++
Url:		http://www.fox-toolkit.org
Source:		http://www.fox-toolkit.org/ftp/%{oname}-%{version}.tar.gz
Patch0:		fox-1.6.36-fix-str-fmt.patch
Patch2:		fox-1.6.57-optflags.patch
BuildRequires:	bzip2-devel
BuildRequires:	cups-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xrandr)

%description
FOX is a C++-Based Library for Graphical User Interface Development
FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics.  Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.

#----------------------------------------------------------------------------

%package -n %{libname_FOX}
Summary:	The FOX C++ GUI Toolkit - Libraries
Group:		System/Libraries
# Package was named incorrectly
Obsoletes:	%{mklibname fox 1.6_0} < 1.6.47-9
Conflicts:	%{mklibname fox 1.6_0} < 1.6.47-9

%description -n %{libname_FOX}
This is a C++-Based Library for Graphical User Interface Development.
It supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics. Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.

%files -n %{libname_FOX}
%{_libdir}/libFOX-%{api}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{libname_CHART}
Summary:	The FOX C++ GUI Toolkit - Libraries
Group:		System/Libraries
# Package was named incorrectly
Obsoletes:	%{mklibname fox 1.6_0} < 1.6.47-9
Conflicts:	%{mklibname fox 1.6_0} < 1.6.47-9

%description -n %{libname_CHART}
This is a C++-Based Library for Graphical User Interface Development.
It supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics. Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.

%files -n %{libname_CHART}
%{_libdir}/libCHART-%{api}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	FOX header files
Group:		Development/C++
Requires:	%{libname_FOX} = %{EVRD}
Requires:	%{libname_CHART} = %{EVRD}
Provides:	fox1.6-devel = %{EVRD}
Provides:	libfox1.6-devel = %{EVRD}
Conflicts:	fox1.4-devel
Conflicts:	fox1.7-devel

%description -n %{devname}
FOX is a C++-Based Library for Graphical User Interface Development
FOX supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics.  Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.

This package contains the necessary files to develop applications
with FOX.

%files -n %{devname}
%doc doc ADDITIONS TRACING
%doc installed-docs
%doc %{_mandir}/man1/reswrap*
%{_bindir}/reswrap
%{_bindir}/fox-config
%dir %{_includedir}/fox-%{api}
%{_includedir}/fox-%{api}/*
%{_libdir}/pkgconfig/fox.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p0
%patch2 -p1

%build
autoreconf -fi
LDFLAGS="-lfontconfig" %configure \
	--with-opengl=yes \
	--with-xft \
	--with-xcursor \
	--with-xrandr \
	--with-shape \
	--with-xshm \
	--disable-static \
	--enable-release

%make

%install
%makeinstall_std

mv %{buildroot}%{_datadir}/doc/fox-1.6/* installed-docs

rm -rf %{buildroot}%{_prefix}/fox %{buildroot}%{_bindir}/Adie.stx \
       %{buildroot}%{_bindir}/PathFinder %{buildroot}%{_bindir}/adie \
       %{buildroot}%{_bindir}/calculator %{buildroot}%{_bindir}/shutterbug \
       %{buildroot}%{_mandir}/man1/PathFinder* %{buildroot}%{_mandir}/man1/adie* \
       %{buildroot}%{_mandir}/man1/calculator* %{buildroot}%{_mandir}/man1/shutterbug*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1618 |21cr|fox-1.7.82-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.7
%define libname_FOX %mklibname FOX%{major}_0
%define libname_CHART %mklibname CHART%{major}_0
%define devname %mklibname %{name} -d
%define name_ex_apps %{name}-example-apps

%define icon_name_calc %{name}-calculator.png
%define icon_name_adie %{name}-adie.png

Summary:	The FOX C++ GUI Toolkit
Name:		fox
Version:	1.7.82
Release:	1
License:	LGPLv2+
Group:		Development/C++
Url:		http://www.fox-toolkit.org
Source:		http://www.fox-toolkit.org/ftp/fox-%{version}.tar.gz
Source1:	%{name}-shutterbug-16.png
Source2:	%{name}-shutterbug-32.png
Source3:	%{name}-shutterbug-48.png
Source10:	%{name}_adie_16.png
Source11:	%{name}_adie_32.png
Source12:	%{name}_adie_48.png
Source20:	%{name}_calc_16.png
Source21:	%{name}_calc_32.png
Source22:	%{name}_calc_48.png
Patch0:		fox-1.7.52-cxxflags.patch
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	cups-devel
BuildRequires:	bzip2-devel >= 1.0.2
BuildRequires:	pkgconfig(zlib) >= 1.1.4
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi) >= 1.7.4
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
# Formats supported
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng) >= 1.2.5
BuildRequires:	pkgconfig(libtiff-4) >= 3.5.7
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	doxygen

%description
This is a C++-Based Library for Graphical User Interface Development.
It supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics. Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.

#-----------------------------------------------------------------------------

%package -n %{name_ex_apps}
Summary:	Example applications for %{name}
Group:		Office

%description -n %{name_ex_apps}
Editor, file browser and calculator, written with FOX

%files -n %{name_ex_apps}
%license LICENSE
%doc README
%{_mandir}/man1/ControlPanel*
%{_mandir}/man1/PathFinder*
%{_mandir}/man1/adie*
%{_mandir}/man1/calculator*
%{_mandir}/man1/shutterbug.1*
%{_bindir}/calculator
%{_bindir}/ControlPanel
%{_bindir}/PathFinder
%{_bindir}/adie
%{_bindir}/Adie.stx
%{_bindir}/shutterbug
%{_datadir}/applications/mandriva*
%{_miconsdir}/%{icon_name_adie}
%{_iconsdir}/%{icon_name_adie}
%{_liconsdir}/%{icon_name_adie}
%{_miconsdir}/%{icon_name_calc}
%{_iconsdir}/%{icon_name_calc}
%{_liconsdir}/%{icon_name_calc}
%{_miconsdir}/shutterbug.png
%{_iconsdir}/shutterbug.png
%{_liconsdir}/shutterbug.png

#-----------------------------------------------------------------------------

%package -n %{libname_FOX}
Summary:	The FOX C++ GUI Toolkit - Libraries
Group:		System/Libraries
# Package was named incorrectly
Obsoletes:	%{mklibname fox 1.7_0} < 1.7.75
Conflicts:	%{mklibname fox 1.7_0} < 1.7.75

%description -n %{libname_FOX}
This is a C++-Based Library for Graphical User Interface Development.
It supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics. Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.

%files -n %{libname_FOX}
%license LICENSE
%doc README
%{_libdir}/libFOX-%{major}.so.0*

#-----------------------------------------------------------------------------

%package -n %{libname_CHART}
Summary:	The FOX C++ GUI Toolkit - Libraries
Group:		System/Libraries
# Package was named incorrectly
Obsoletes:	%{mklibname fox 1.7_0} < 1.7.75
Conflicts:	%{mklibname fox 1.7_0} < 1.7.75

%description -n %{libname_CHART}
This is a C++-Based Library for Graphical User Interface Development.
It supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics. Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.

%files -n %{libname_CHART}
%license LICENSE
%doc README
%{_libdir}/libCHART-%{major}.so.0*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	FOX header files
Group:		Development/C++
Requires:	%{libname_FOX} = %{EVRD}
Requires:	%{libname_CHART} = %{EVRD}
Provides:	libfox-devel = %{EVRD}
Provides:	fox%{major}-devel = %{EVRD}
Provides:	libfox%{major}-devel = %{EVRD}

%description -n %{devname}
This is a C++-Based Library for Graphical User Interface Development.
It supports modern GUI features, such as Drag-and-Drop, Tooltips, Tab
Books, Tree Lists, Icons, Multiple-Document Interfaces (MDI), timers,
idle processing, automatic GUI updating, as well as OpenGL/Mesa for
3D graphics. Subclassing of basic FOX widgets allows for easy
extension beyond the built-in widgets by application writers.
This package contains the necessary files to develop applications
with FOX.

%files -n %{devname}
%license LICENSE
%doc doc ADDITIONS TRACING
#doc installed-docs
%doc %{_mandir}/man1/reswrap*
%{_bindir}/reswrap
%{_bindir}/fox-config
%dir %{_includedir}/fox-%{major}
%{_includedir}/fox-%{major}/*
%{_libdir}/*.so
#{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -if
%configure	\
		--enable-release \
		--enable-threadsafe \
		--disable-static \
		--disable-jp2 \
		--with-x=yes \
		--with-xft=no \
		--with-xshm=yes \
		--with-shape=yes \
		--with-xcursor=yes \
		--with-xrender=yes \
		--with-xrandr=yes \
		--with-xfixes=yes \
		--with-xinput=yes \
		--with-opengl=yes
%make
#LIBS='-lfontconfig'


%install
#rm -rf installed-docs
%makeinstall_std
#mv %%{buildroot}%%{_datadir}/doc/fox-%%{major}/* installed-docs
#cp -p pathfinder/PathFinder %%{buildroot}/usr/bin

# Make .desktop files for some sample programs
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-foxcalculator.desktop << EOF
[Desktop Entry]
Name=FOX Calculator
Comment=Calculator using the FOX toolkit
Exec=calculator %U
Icon=%{icon_name_calc}
Terminal=false
Type=Application
StartupNotify=true
Categories=Science;Math;
EOF

cat > %{buildroot}%{_datadir}/applications/mandriva-foxadie.desktop << EOF
[Desktop Entry]
Name=FOX Adie
Comment=A.D.I.E. - Advanced Interactive Editor using the FOX toolkit
Exec=adie %U
Icon=%{icon_name_adie}
Terminal=false
Type=Application
StartupNotify=true
Categories=TextEditor;Utility;
EOF

cat > %{buildroot}%{_datadir}/applications/mandriva-shutterbug.desktop << EOF
[Desktop Entry]
Name=FOX Shutterbug
Comment=Takes a screenshot and saves it to a file
Exec=shutterbug %U
Icon=shutterbug
Terminal=false
Type=Application
StartupNotify=true
Categories=Graphics;
EOF

# Add the needed icons for them
install -D -m 644 %{SOURCE10} %{buildroot}%{_miconsdir}/%{icon_name_adie}
install -D -m 644 %{SOURCE11} %{buildroot}%{_iconsdir}/%{icon_name_adie}
install -D -m 644 %{SOURCE12} %{buildroot}%{_liconsdir}/%{icon_name_adie}

install -m 644 %{SOURCE20} %{buildroot}%{_miconsdir}/%{icon_name_calc}
install -m 644 %{SOURCE21} %{buildroot}%{_iconsdir}/%{icon_name_calc}
install -m 644 %{SOURCE22} %{buildroot}%{_liconsdir}/%{icon_name_calc}

install -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/shutterbug.png
install -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/shutterbug.png
install -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/shutterbug.png

# Drop useless dir and dir with duplicated elsewhere contents
#rm -rf %%{buildroot}%%{_prefix}/fox
rm -rf %{buildroot}%{_datadir}/doc/fox-%{major}
rm -rf %{buildroot}%{_datadir}/doc/installed-docs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1619 |21cr|fplll-4.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name		fplll
%define major		0
%define libfplll	%mklibname %{name} %{major}
%define libfplll_devel	%mklibname %{name} -d

Epoch:		1
Name:		%{name}
Group:		Sciences/Mathematics
License:	LGPLv2+
Summary:	LLL-reduction of euclidean lattices
Version:	4.0.4
Release:	5
Source:		http://perso.ens-lyon.fr/damien.stehle/fplll/lib%{name}-%{version}.tar.gz
URL:		http://perso.ens-lyon.fr/damien.stehle/fplll/
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
#Reversed (or previously applied) patch detected!
#Patch0:		%{name}-fplllv31.patch

%description
%{name}-%{version} contains several algorithms on lattices that rely on
floating-point computations. This includes implementations of the
floating-point LLL reduction algorithm, offering different
speed/guarantees ratios. It contains a 'wrapper' choosing the
estimated best sequence of variants in order to provide a guaranteed
output as fast as possible. In the case of the wrapper, the
succession of variants is oblivious to the user. It also includes
a rigorous floating-point implementation of the Kannan-Fincke-Pohst
algorithm that finds a shortest non-zero lattice vector, and the BKZ
reduction algorithm.

%package	-n %{libfplll}
Summary:	lib%{name} shared libraries
Group:		System/Libraries

%description	-n %{libfplll}
libfpll shared libraries. fplll is code that LLL-reduces euclidean lattices.

%package	-n %{libfplll_devel}
Summary:	lib%{name} libraries, includes, etc
Group:		Development/C
Requires:	%{libfplll} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}fplll3 < 3.0-7
Obsoletes:	%{_lib}fplll3 < 3.0-7

%description	-n %{libfplll_devel}
libfpll libraries, includes, etc. fplll is code that LLL-reduces
euclidean lattices.

%prep
%setup -q -n lib%{name}-%{version}
#patch0 -p1

%build
%configure --disable-static LDFLAGS="-Wl,--as-needed $RPM_LD_FLAGS"

# Eliminate hardcoded rpaths, and workaround libtool moving all -Wl options
# after the libraries to be linked
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    -e 's|-nostdlib|-Wl,--as-needed &|' \
    -i libtool
%make

%install
%makeinstall_std
rm %{buildroot}%{_libdir}/libfplll.la

%check
export LD_LIBRARY_PATH=$PWD/src/.libs
make check

%files
%{_bindir}/*

%files		-n %{libfplll}
%{_libdir}/libfplll.so.*

%files		-n %{libfplll_devel}
%{_includedir}/%{name}.h
%{_includedir}/%{name}
%{_libdir}/libfplll.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1620 |21cr|frame-2.5.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Buildup and synchronization of simultaneous touches
Name:		frame
Version:	2.5.0
Release:	6
License:	GPLv3+
Group:		Development/Other
Url:		https://launchpad.net/frame
Source0:	https://launchpad.net/frame/trunk/utouch-%{name}-%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	pkgconfig(evemu)
BuildRequires:	pkgconfig(mtdev)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xorg-server)
Requires:	evemu

%description
Frame handles the buildup and synchronization of a set of simultaneous touches.

%files
%doc COPYING
%{_bindir}/frame-test-x11
%{_mandir}/man1/frame-test-x11.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Frame shared library Package
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with Frame.

%files -n %{libname}
%{_libdir}/libframe.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Frame development package
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}frame6 < 2.5.0

%description -n %{devname}
This package provides headers files for Frame development.

%files -n %{devname}
%{_includedir}/oif/*.h
%{_libdir}/libframe.so
%{_libdir}/pkgconfig/frame.pc
%{_libdir}/pkgconfig/frame-x11.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1621 |21cr|fred-0.1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple action game: save Fred from a plummeting death!
Name:		fred
Version:	0.1.1
Release:	11
# Upstream source includes arial.ttf. Which is, um, copyright
# Microsoft. That's not smart. This source is upstream's tarball
# with arial.ttf and the (likely also copyright someone) grease.ttf
# removed. - AdamW 2008/02
Source0:	http://www.enormousplow.com/projects/fred/%{name}-%{version}-fontclean.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		fred-0.1.1-no-windows.patch
# Fix an error in a header file that breaks build - AdamW 2008/02
Patch1:		fred-0.1.1-build.patch
# Use DejaVu instead of arial.ttf and grease.ttf - AdamW 2008/02
Patch2:		fred-0.1.1-font.patch
License:	GPL+
URL:		http://www.enormousplow.com/projects/fred/
Group:		Games/Arcade
BuildRequires:	SDL_image-devel
BuildRequires:	zlib-devel
BuildRequires:	SDL_ttf-devel
Requires:	fonts-ttf-dejavu

%description
Free Fallin' Fred is a very simple clicking game.
You see the airplane going across the screen and after a while, Fred jumps.
You click on Fred to open his chute.
If you fail to open the chute in time, poor Fred will be dead.
Don't let Fred die. 

%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1 -b .build
%patch2 -p1 -b .fonts

%build
rm -f install-sh
autoreconf -i
perl -pi -e 's!DATADIR = "/usr/local/share/games/fred/data/";!DATADIR = "%{_gamesdatadir}/%{name}/data/";!g' src/fred.cpp
%configure --bindir=%{_gamesbindir}
%make

%install
rm -rf %{buildroot}
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}		  
Icon=%{name}		  		  
Categories=Game;ArcadeGame;		  
Name=Fred 
Comment=Simple action game: save Fred from a plummeting death
EOF

%{__install} -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{__install} -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{__install} -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%if %mdkversion < 200900
%post
%{update_menus}
%{update_icon_cache hicolor}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%{clean_icon_cache hicolor}
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}
%defattr(644,root,root,755)
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_mandir}/man6/fred.6*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop
%doc AUTHORS ChangeLog INSTALL NEWS README TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1622 |21cr|freealut-1.1.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname	alut
%define major	0
%define libname %mklibname %{sname} %{major}
%define devname %mklibname %{sname} -d

Summary:	OpenAL Utility Toolkit (ALUT)
Name:		freealut
Version:	1.1.0
Release:	17
License:	LGPLv2
Group:		Sound
Url:		http://www.openal.org
# Download URL looks dead: use stored sources
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-openal.patch
BuildRequires:	pkgconfig(openal)

%description
ALUT is the OpenAL Utility Toolkit.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for ALUT
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Conflicts:	%{_lib}freealut0 < 1.1.0-11
Obsoletes:	%{_lib}freealut0 < 1.1.0-11

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with ALUT.

%files -n %{libname}
%{_libdir}/libalut.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use ALUT
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}freealut-devel < 1.1.0-11
Obsoletes:	%{_lib}freealut-devel < 1.1.0-11

%description -n	%{devname}
This package contains the headers that programmers will need to develop
applications which will use ALUT.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README
%{_includedir}/AL
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/*.so
%{_bindir}/%{name}-config

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
./autogen.sh
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1623 |21cr|freebasic-1.09.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		enable_debug_packages	%{nil}
%define		debug_package		%{nil}

%bcond_with bootstrap

%define		oname	FreeBASIC

Summary:	Free BASIC language compiler
Name:		freebasic
Version:	1.09.0
Release:	2
License:	GPLv2+
Group:		Development/Basic
Url:		http://freebasic.net
Source0:	https://downloads.sourceforge.net/fbc/%{oname}-%{version}-source.tar.xz
Source10:	https://downloads.sourceforge.net/fbc/Binaries%20-%20Linux/%{oname}-%{version}-linux-x86.tar.gz
Source11:	https://downloads.sourceforge.net/fbc/Binaries%20-%20Linux/%{oname}-%{version}-linux-x86_64.tar.gz
Source100:	%{name}.rpmlintrc
%if %{without bootstrap}
BuildRequires:	freebasic
%else
# Required for precompiled fbc binaries
BuildRequires:	%{_lib}tinfo6
%endif
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
Provides:	fbc = %{EVRD}
ExclusiveArch:	%{ix86} %{x86_64}

%description
Free BASIC - is a completely free, open source, 32-bit BASIC compiler,
with syntax similar to MS Quick BASIC, that adds new features such as
pointers, unsigned data types, inline assembly, object orientation,
and many others.

%files
%doc doc/GoRC.txt doc/gpl.txt doc/lgpl.txt readme.txt
%{_bindir}/fbc
%{_datadir}/pixmaps/freebasic/*
%{_includedir}/freebasic/
%{_libdir}/freebasic/*
%{_mandir}/man1/fbc.1*

#----------------------------------------------------------------------------

%package examples
Summary:	Example files for Free BASIC language compiler
Group:		Development/Basic

%description examples
Example files for Free BASIC language compiler.

%files examples
%{_datadir}/freebasic/examples/*

#----------------------------------------------------------------------------

%prep
%if %{with bootstrap}
%ifarch %{x86_64}
%setup -q -T -D -b 11 -n FreeBASIC-%{version}-linux-x86_64
%else
%setup -q -T -D -b 10 -n FreeBASIC-%{version}-linux-x86
%endif
%endif

%setup -qn %{oname}-%{version}-source

%build
%setup_compile_flags
%if %{with bootstrap}
%ifarch %{x86_64}
make FBC=%{_builddir}/%{oname}-%{version}-linux-x86_64/bin/fbc prefix=%{_prefix} ENABLE_PREFIX=1 ENABLE_LIB64=1
%else
make FBC=%{_builddir}/%{oname}-%{version}-linux-x86/bin/fbc prefix=%{_prefix} ENABLE_PREFIX=1
%endif
%else
%ifarch %{x86_64}
make prefix=%{_prefix} ENABLE_PREFIX=1 ENABLE_LIB64=1
%else
make prefix=%{_prefix} ENABLE_PREFIX=1
%endif
%endif

%install
make install \
%ifarch %{x86_64}
	ENABLE_LIB64=1 \
%endif
	prefix=%{buildroot}%{_prefix}

# Man
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 doc/fbc.1 %{buildroot}%{_mandir}/man1/fbc.1

# Examples
rm -rf examples/win32
mkdir -p %{buildroot}%{_datadir}/freebasic/examples
cp -r examples/* %{buildroot}%{_datadir}/freebasic/examples/

# Pixmaps
mkdir -p %{buildroot}%{_datadir}/pixmaps/freebasic
cp contrib/*logo* %{buildroot}%{_datadir}/pixmaps/freebasic/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1624 |21cr|freecad-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname FreeCAD

Summary:	FreeCAD is a general purpose 3D CAD modeler
Name:		freecad
Version:	1.0.0
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Graphics
Url:		https://www.freecadweb.org
Source0:	https://github.com/FreeCAD/FreeCAD/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
# see commit hash on https://github.com/FreeCAD/FreeCAD/tree/main/src/3rdParty
Source10:	https://github.com/Ondsel-Development/OndselSolver/archive/91f70382beeb58b32432b5a82da3802e4c19199c.tar.gz?/OndselSolver.tar.gz
Source1:	freecad.desktop
Source2:	freecad.1
Source3:	freecad.rpmlintrc
Patch1:		freecad-fix-shebangs.patch
BuildRequires:	boost-python
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	doxygen
BuildRequires:	extra-cmake-modules
BuildRequires:	fmt-devel
BuildRequires:	fastfloat-devel
BuildRequires:	gcc-gfortran
BuildRequires:	gomp-devel
BuildRequires:	ninja
BuildRequires:	pyside2-tools
BuildRequires:	python-vtk
BuildRequires:	swig
BuildRequires:	vtk-test-suite
BuildRequires:	xerces-c
BuildRequires:	boost-devel >= 1.65
BuildRequires:	double-conversion-devel
BuildRequires:	hdf5-devel
BuildRequires:	gl2ps-devel
BuildRequires:	libharu-devel
BuildRequires:	med-devel
BuildRequires:	microsoft-gsl-devel
BuildRequires:	opencascade-devel
BuildRequires:	PEGTL-devel
BuildRequires:	utf8cpp-devel
BuildRequires:	vtk-devel
BuildRequires:	python3egg(markdown)
BuildRequires:	python3egg(matplotlib)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(pivy)
BuildRequires:	python3-pyside2
BuildRequires:	python3-shiboken2
BuildRequires:	pkgconfig(Coin)
BuildRequires:	pkgconfig(eigen3) >= 2.91.0
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-0.10)
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(ompi)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(proj)
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(pyside2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(shiboken)
BuildRequires:	pkgconfig(shiboken2)
BuildRequires:	pkgconfig(spnav)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(tbb)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(yaml-cpp)
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	pkgconfig(zlib)
# Need this python modules https://forum.rosalinux.ru/viewtopic.php?f=33&t=10444
Requires:	python3-pyside2
Requires:	python3-shiboken2
Requires:	python3-six
# https://forum.rosalinux.ru/viewtopic.php?p=109941
Requires:	python3-pivy

%description
FreeCAD will be a general purpose parametric 3D CAD modeler. The development
is completely Open Source. It is a feature based parametric modeler with a
modular software architecture which makes it easy to provide additional
functionality without modifying the core system. As with many modern 3D CAD
modelers it has many 2D component in order to extract design detail from
the 3D model to create 2D production drawings, but direct 2D drawing (e.g.
AutoCAD LT) is not the focus, neither are animation and organic shapes (e.g.
Maya, 3D StudioMAX, Blender and Cinema 4D).

%files
%doc LICENSE
%doc %{_docdir}/freecad/LICENSE.html
%doc %{_docdir}/freecad/ThirdPartyLibraries.html
%{_appdatadir}/org.freecad.FreeCAD.metainfo.xml
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/org.freecad.FreeCAD.xml
%{_datadir}/pixmaps/freecad.xpm
%{_datadir}/thumbnailers/FreeCAD.thumbnailer
%{_iconsdir}/hicolor/*/apps/*.*
%{_iconsdir}/hicolor/scalable/mimetypes/application-x-extension-fcstd.svg
%{_libdir}/%{name}/*.so
%{_libdir}/%{name}/libOndselSolver.so.*
%{_libdir}/%{name}/bin/
%{_libdir}/%{name}/Ext/
%{_libdir}/%{name}/Mod/
%{_libdir}/%{name}/*.a
%{_mandir}/man1/*.1*
%{python3_sitearch}/%{name}
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version} -a10

mv OndselSolver-*/* ./src/3rdParty/OndselSolver/

# Fix bogus file perms
find ./src -name "*.py*" |xargs chmod 755
find ./src -name "*.h*" |xargs chmod 644
find ./src -name "*.cpp*" |xargs chmod 644

# Fix wrong EOL
dos2unix LICENSE


%build
%global	optflags %{optflags} -fno-strict-aliasing

%cmake_qt5 -DCMAKE_BUILD_TYPE=Release \
	-DFREECAD_USE_EXTERNAL_FMT=ON \
	-DENABLE_DEVELOPER_TESTS=OFF \
	-DCMAKE_INSTALL_PREFIX=%{_libdir}/%{name} \
	-DCMAKE_INSTALL_DATADIR=%{_datadir}/%{name} \
	-DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
	-DCMAKE_INSTALL_LIBDIR=%{_libdir}/%{name} \
	-DRESOURCEDIR=%{_libdir}/freecad \
	-DBUILD_QT5=TRUE \
	-DPYTHON_EXECUTABLE=%{__python3} \
	-Wno-dev \
	-G Ninja

%ninja_build


%install
%ninja_install -C build

# Symlink binaries to /usr/bin
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
	ln -s ../%{_lib}/freecad/bin/FreeCAD .
	ln -s ../%{_lib}/freecad/bin/FreeCADCmd .
popd

# Install and fix .desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
sed -i 's,@lib@,%{_lib},g' %{buildroot}%{_datadir}/applications/%{name}.desktop
rm %{buildroot}%{_libdir}/%{name}/share/applications/org.freecad.FreeCAD.desktop

# Install desktop icon
mkdir -p %{buildroot}%{_iconsdir}/hicolor/16x16/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/64x64/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/mimetypes
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_datadir}/thumbnailers
mv %{buildroot}%{_libdir}/%{name}/share/icons/hicolor/16x16/apps/org.freecad.FreeCAD.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
mv %{buildroot}%{_libdir}/%{name}/share/icons/hicolor/32x32/apps/org.freecad.FreeCAD.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
mv %{buildroot}%{_libdir}/%{name}/share/icons/hicolor/48x48/apps/org.freecad.FreeCAD.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
mv %{buildroot}%{_libdir}/%{name}/share/icons/hicolor/64x64/apps/org.freecad.FreeCAD.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
mv %{buildroot}%{_libdir}/%{name}/share/icons/hicolor/scalable/apps/org.freecad.FreeCAD.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
mv %{buildroot}%{_libdir}/%{name}/share/icons/hicolor/scalable/mimetypes/application-x-extension-fcstd.svg %{buildroot}%{_iconsdir}/hicolor/scalable/mimetypes/application-x-extension-fcstd.svg
mv %{buildroot}%{_libdir}/%{name}/share/pixmaps/freecad.xpm %{buildroot}%{_datadir}/pixmaps/freecad.xpm
mv %{buildroot}%{_libdir}/%{name}/share/thumbnailers/FreeCAD.thumbnailer %{buildroot}%{_datadir}/thumbnailers/FreeCAD.thumbnailer

mkdir -p %{buildroot}%{_appdatadir}
mv %{buildroot}%{_libdir}/%{name}/share/metainfo/org.freecad.FreeCAD.metainfo.xml %{buildroot}%{_appdatadir}/

mkdir -p %{buildroot}%{_datadir}/mime/packages
mv %{buildroot}%{_libdir}/%{name}/share/mime/packages/org.freecad.FreeCAD.xml %{buildroot}%{_datadir}/mime/packages/

# Install man page
install -pD -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
# Symlink manpage to other binary names
pushd %{buildroot}%{_mandir}/man1
	ln -sf %{name}.1.gz FreeCAD.1.gz.
	ln -sf %{name}.1.gz FreeCADCmd.1.gz
popd

# Correct bogus perms
chmod +x %{buildroot}%{_libdir}/%{name}/Mod/AddonManager/AddonManager.py
chmod +x %{buildroot}%{_libdir}/%{name}/Mod/Mesh/MeshTestsApp.py
chmod +x %{buildroot}%{_libdir}/%{name}/Mod/Robot/{KukaExporter,MovieTool}.py
chmod +x %{buildroot}%{_libdir}/%{name}/Mod/Spreadsheet/importXLSX.py
chmod +x %{buildroot}%{_libdir}/%{name}/Mod/Test/{testmakeWireString,unittestgui}.py
chmod +x %{buildroot}%{_libdir}/%{name}/Mod/PartDesign/Scripts/*.py
chmod -x %{buildroot}%{_libdir}/%{name}/Mod/PartDesign/Scripts/{Gear,__init__}.py

# cleanup development files
rm -r %{buildroot}%{_libdir}/%{name}/include
rm -r %{buildroot}%{_libdir}/%{name}/share/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1625 |21cr|freeciv-3.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CIVilization clone
Name:		freeciv
Version:	3.0.3
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://www.freeciv.org/
Source0:	http://files.freeciv.org/stable/%{name}-%{version}.tar.xz
Source1:	%{name}.server.wrapper
Source2:	stdsounds3.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	qt5-linguist-tools
BuildRequires:	tolua
BuildRequires:	libstdc++-static-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(SDL2_gfx)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)

%description
Freeciv is a multiplayer strategy game, released under the GNU GPL. It is
generally comparable with Civilization II(r), published by Microprose(r).
Default configuration uses the Civilization II(r) style Isometric view. If you
prefer classic Civilization(r) 2-d view, invoke the client with
"civclient --tiles trident".

#----------------------------------------------------------------------------

%package data
Summary:	CIVilization clone - data files
Group:		Games/Strategy
BuildArch:	noarch

%description data
Freeciv is a multiplayer strategy game, released under the GNU GPL. It is
generally comparable with Civilization II(r), published by Microprose(r).
This package contains the data files for the game.

%files -f %{name}.lang data
%doc AUTHORS doc/BUGS doc/HOWTOPLAY NEWS doc/README doc/README.AI doc/README.graphics
%doc doc/README.rulesets doc/README.sound doc/HACKING
%{_gamesdatadir}/%{name}

#----------------------------------------------------------------------------

%package client
Summary:	CIVilization clone - client
Group:		Games/Strategy
Provides:	%{name} = %{EVRD}
Requires:	%{name}-data = %{EVRD}
Requires:	%{name}-server = %{EVRD}

%description client
The graphical client for %{name}: GTK3 and SDL flavors.

%files client
%doc NEWS-3.0
%license COPYING
%{_appdatadir}/org.%{name}.gtk322.appdata.xml
%{_appdatadir}/org.%{name}.mp.gtk3.appdata.xml
%{_appdatadir}/org.%{name}.sdl2.appdata.xml
%{_datadir}/applications/org.%{name}.gtk322.desktop
%{_datadir}/applications/org.%{name}.mp.gtk3.desktop
%{_datadir}/applications/org.%{name}.sdl2.desktop
%{_datadir}/pixmaps/%{name}-client.png
%{_datadir}/pixmaps/%{name}-modpack.png
%{_gamesbindir}/%{name}-gtk3.22
%{_gamesbindir}/%{name}-manual
%{_gamesbindir}/%{name}-mp-gtk3
%{_gamesbindir}/%{name}-ruleup
%{_gamesbindir}/%{name}-sdl2
%{_iconsdir}/hicolor/*/apps/%{name}-client.png
%{_iconsdir}/hicolor/*/apps/%{name}-modpack.png
%{_mandir}/man6/freeciv.6*
%{_mandir}/man6/%{name}-client.6*
%{_mandir}/man6/%{name}-gtk2.6*
%{_mandir}/man6/%{name}-manual.6*
%{_mandir}/man6/%{name}-modpack.6*
%{_mandir}/man6/%{name}-mp-cli.6*
%{_mandir}/man6/%{name}-mp-gtk2.6*
%{_mandir}/man6/%{name}-ruledit*
%{_mandir}/man6/%{name}-ruleup.6*

#----------------------------------------------------------------------------

%package server
Summary:	CIVilization clone - server
Group:		Games/Strategy
Requires:	%{name}-data = %{EVRD}

%description server
This is the server for %{name}.

%files server
%doc NEWS-3.0
%license COPYING
%{_appdatadir}/org.%{name}.server.appdata.xml
%{_datadir}/applications/org.%{name}.server.desktop
%{_gamesbindir}/civserver.real
%{_gamesbindir}/%{name}-server
%{_iconsdir}/hicolor/*/apps/%{name}-server.png
%{_mandir}/man6/%{name}-server.6*
%{_sysconfdir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi

# Locales are not in %%{_gamesdatadir}
export localedir=%{_datadir}/locale
%configure \
	--bindir=%{_gamesbindir}	\
	--datadir=%{_gamesdatadir}	\
	--disable-ruledit		\
	--disable-static		\
	--enable-client=gtk3.22,sdl2	\
	--enable-fcdb=sqlite3		\
	--enable-freeciv-manual=html	\
	--enable-ipv6=yes		\
	--enable-sdl-mixer=sdl2		\
	--enable-sys-lua=yes		\
	--enable-sys-tolua-cmd=yes	\
	--localedir=%{_datadir}/locale	\
	--with-libbz2			\
	--with-liblzma			\
	--with-qt5-framework-bin="%{_qt5_bindir}"	\
	--with-qt5-includes="%{_qt5_includedir}"	\
	--with-qt5-libs="%{_qt5_libdir}"	\
	--with-readline
%make

%install
%makeinstall_std localedir=%{_datadir}/locale

tar -xvf %{SOURCE2} -C %{buildroot}%{_gamesdatadir}/%{name}

# Install our wrapper script
mv %{buildroot}%{_gamesbindir}/%{name}-server %{buildroot}%{_gamesbindir}/civserver.real
install -m 755 %{SOURCE1} %{buildroot}%{_gamesbindir}/%{name}-server

# Fix icons locations
mv %{buildroot}%{_gamesdatadir}/icons %{buildroot}%{_datadir}/icons

%find_lang %{name} %{name}-core %{name}-nations %{name}-ruledit %{name}.lang

# Remove unneeded stuff
rm -f %{buildroot}%{_libdir}/*a
rm -f %{buildroot}%{_mandir}/man6/*ftwl*
rm -f %{buildroot}%{_mandir}/man6/*gtk3*
rm -f %{buildroot}%{_mandir}/man6/*qt*
rm -f %{buildroot}%{_mandir}/man6/*sdl*
rm -f %{buildroot}%{_mandir}/man6/*win32*
rm -f %{buildroot}%{_mandir}/man6/*xaw*

rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1626 |21cr|freedoom-0.12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Complete and free DOOM IWAD
Name:		freedoom
Version:	0.12.1
Release:	1
License:	GPLv2+
Group:		Games/Shooter
Url:		https://freedoom.github.io/
Source0:	https://github.com/freedoom/freedoom/releases/download/v%{version}/%{name}-%{version}.zip
Provides:	doom-iwad
Recommends:	prboom-plus
BuildArch:	noarch

%description
FreeDOOM is a project to create a complete, free DOOM IWAD file. Combined with
a free DOOM engine, it will create a completely free DOOM-based game. To play
it, a game engine such as PrBoom or PrBoom+ is required.

%files
%doc CREDITS.txt README.html NEWS.html freedoom-manual.pdf
%{_gamesdatadir}/doom/%{name}1.wad
%{_gamesdatadir}/doom/%{name}2.wad

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
# Nothing to do


%install
install -D -m644 %{name}1.wad %{buildroot}%{_gamesdatadir}/doom/%{name}1.wad
install -D -m644 %{name}2.wad %{buildroot}%{_gamesdatadir}/doom/%{name}2.wad

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1627 |21cr|freedroid-1.0rc3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Clone of the C64 Game Paradroid
Name:		freedroid
Version:	1.0rc3
Release:	1
Source0:	https://ftp.osuosl.org/pub/freedroid/freedroidRPG-1.0/freedroidRPG-%{version}.tar.gz
License:	GPLv2+
Group:		Games/Arcade
URL:		http://freedroid.sourceforge.net/
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_image-devel
BuildRequires:	SDL_gfx-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	jpeg-devel
BuildRequires:	png-devel
BuildRequires:	libvorbis-devel

%description
This is a clone of the classic game "Paradroid" on Commodore 64
with some improvements and extensions to the classic version.

In this game, you control a robot, depicted by a small white ball with
a few numbers within an interstellar spaceship consisting of several
decks connected by elevators.

The aim of the game is to destroy all enemy robots, depicted by small
black balls with a few numbers, by either shooting them or seizing
control over them by creating connections in a short subgame of
electric circuits.

%prep
%autosetup -p1 -n %{name}rpg-1.0RC3

%build
%configure --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}
%make CC="cc %{optflags}"

%install
%makeinstall_std transform=""

mv  %{buildroot}%{_gamesdatadir}/applications %{buildroot}%{_datadir}
mv  %{buildroot}%{_gamesdatadir}/icons %{buildroot}%{_datadir}
mv  %{buildroot}%{_gamesdatadir}/metainfo %{buildroot}%{_datadir}

%find_lang freedroidrpg --all-name

%files -f freedroidrpg.lang
%doc %{_docdir}/freedroidrpg
%{_gamesbindir}/freedroidRPG
%{_gamesdatadir}/freedroidrpg
%{_mandir}/man6/freedroidRPG.6*
%{_datadir}/applications/*.desktop
%{_iconsdir}/*
%{_datadir}/metainfo/org.freedroid.freedroidRPG.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1628 |21cr|freedroidrpg-1.0.rc2-0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define oname freedroidRPG

Summary:	Clone of the C64 Game Paradroid
Name:		freedroidrpg
Version:	1.0.rc2
Release:	0.1
License:	GPLv2+
Group:		Games/Arcade
URL:		http://www.freedroid.org/
Source0:	https://ftp.osuosl.org/pub/freedroid/freedroidRPG-1.0/freedroidRPG-1.0rc2.tar.gz
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(lua)
BuildRequires:	python3

%description
This is a clone of the classic game "Paradroid" on Commodore 64
with some improvements and extensions to the classic version.

In this game, you control a robot, depicted by a small white ball with
a few numbers within an interstellar spaceship consisting of several
decks connected by elevators.

The aim of the game is to destroy all enemy robots, depicted by small
black balls with a few numbers, by either shooting them or seizing
control over them by creating connections in a short subgame of
electric circuits.

%files -f %{name}.lang
%doc README AUTHORS ChangeLog NEWS README-*
%{_gamesbindir}/%{oname}
%{_datadir}/%{name}
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/apps/
%{_iconsdir}/HighContrast/*/apps/
%{_appdatadir}/*.appdata.xml
%{_mandir}/man6/%{oname}.6.*

#-----------------------------------------------------------------

%prep
%setup -qn %{name}-1.0RC2

%build
%configure \
  --bindir=%{_gamesbindir} \
  --datadir=%{_datadir}

make clean
%make

%install
%makeinstall_std transform=""
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Freedroid
Comment=Clone of the C64 Game Paradroid
Comment[ru]=Клон игры Paradroid для C64
Exec=%{oname}
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF

rm -fr %{buildroot}%{_docdir}/%{name}

chmod +x %{buildroot}%{_datadir}/freedroidrpg/data/sound/speak.py

find %{buildroot}%{_datadir}/%{name}/data/storyline -name 'ERASEME' -exec rm {} \;

%{find_lang} %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1629 |21cr|freedups-0.6.14-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hardlinks identical files to save space
Name:		freedups
Version:	0.6.14
Release:	10
License:	GPL
Group:		File tools
URL:		http://www.stearns.org/freedups/
Source:		http://www.stearns.org/freedups/%{name}-%{version}.tar.gz
Buildarch:	noarch

%description
Freedups hardlinks identical files to save space.  For files that are
generally read from and not written to, this can provide a 
significant space savings with no performance degredation.  In fact,
in a small number of cases, this can speed up the system.

%prep
%setup

%install
install -d %{buildroot}%{_bindir}
install -m755 %{name}.pl %{buildroot}%{_bindir}/%{name}

%clean

%files
%doc README ChangeLog
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1630 |21cr|freefilesync-11.25-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname FreeFileSync

Summary:	A free file sync tool
Name:		freefilesync
Version:	11.25
Release:	3
License:	GPLv3+
Group:		Networking/File transfer
URL:		https://freefilesync.org
Source0:	https://freefilesync.org/download/FreeFileSync_%{version}_Source.zip
Source2:	%{oname}.desktop
Source3:	%{oname}.png
Source4:	RealTimeSync.desktop
Patch0:		freefilesync-11.25-disable-selinux.patch
# from debian
Patch1:		ffs_allow_parallel_ops.patch
Patch2:		ffs_devuan.patch
Patch3:		ffs_devuan_gtk3.patch
Patch4:		ffs_no_check_updates.patch
Patch5:		ffs_sftp.patch
Patch6:		ffs_libssh2.patch
# rediffed for wx3.1
Patch7:		revert_zenju_aggressive_upstreamisms.patch
Patch8:		ffs_traditional_view.patch
Patch9:		ffs_openssl.patch
Patch10:	ffs_icon_loader.patch
Patch11:	freefilesync-wx-language.patch
#remove patch11 after update gcc to >12.0
Patch12:	freefilesync-gcc11.patch
Patch13:	freefilesync-curl.patch

BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	glibmm2.4-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(openssl)

%description
FreeFileSync is a folder comparison and synchronization tool.

%files
%{_bindir}/%{oname}
%{_bindir}/RealTimeSync
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/realtimesync.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qc
%apply_patches


%build
%make -C FreeFileSync/Source \
	BUILD="Launchpad"

#for RealTimeSync build
%make -C FreeFileSync/Source/RealTimeSync

%install
# make install target missing, manual put files
#%%makeinstall_std -C FreeFileSync/Source

install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm644 %{SOURCE4} %{buildroot}%{_datadir}/applications/realtimesync.desktop

# install menu icons
for N in 16 32 48 64 128 256;
do
convert %{SOURCE3} -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

install -d %{buildroot}%{_bindir}
install -m 0755 %{oname}/Build/Bin/%{oname} %{buildroot}%{_bindir}
install -m 0755 %{oname}/Build/Bin/RealTimeSync %{buildroot}%{_bindir}

install -d %{buildroot}%{_datadir}/%{name}
install -m 0644 %{oname}/Build/Resources/* %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1631 |21cr|freego-4.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Easier access to your personal data on free.fr
Name:		freego
Version:	4.5
Release:	5
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.freego.fr/
Source0:	http://www.freego.fr/logiciel/linux/FreeGo%{version}.zip
Patch0:		freego-4-prefix.patch
Patch1:		freego-4-desktopfile.patch
Patch2:		freego-4-gcc45.patch
BuildRequires:	qt4-devel
Requires:	vlc

%description
FreeGo makes it easier to access your personal data on the french ISP Free.

%files
%doc *.pdf
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.png

#----------------------------------------------------------------------------

%prep
%setup -q -c Freego%{version}
%patch0 -p0 -b .prefix
%patch1 -p0 -b .desktopfile
%patch2 -p0 -b .gcc

%build
%qmake_qt4
%make

%install
%makeinstall INSTALL_ROOT=%{buildroot}
install -p -m 755 -D FreeGo %{buildroot}%{_bindir}/FreeGo

desktop-file-install  \
	--dir %{buildroot}%{_datadir}/applications\
	--delete-original\
	%{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1632 |21cr|freehdl-0.0.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Free HDL simulator
Name:		freehdl
Version:	0.0.8
Release:	11
License:	GPLv2+
Group:		Sciences/Other
Url:		http://freehdl.seul.org/
Source0:	%{name}-%{version}.tar.gz
Patch0:		freehdl-0.0.8-freehdl-config.patch
Patch1:		NetBSD-modern-gcc.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool

%description
A project to develop a free, open source, GPL'ed VHDL simulator for Linux.

%files
%doc AUTHORS COPYING HACKING INSTALL NEWS README README.AIRE README.gen-nodes README.libraries README.v2cc README.vaul
%{_bindir}/freehdl-gennodes
%{_bindir}/freehdl-v2cc
%{_bindir}/gvhdl
%{_datadir}/%{name}
%{_infodir}/fire.info.*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared libraries for %{name}.

%files -n %{libname}
%{_libdir}/freehdl/libieee.so.%{major}*
%{_libdir}/libfreehdl-cdfggen.so.%{major}*
%{_libdir}/libfreehdl-fire.so.%{major}*
%{_libdir}/libfreehdl-kernel.so.%{major}*
%{_libdir}/libfreehdl-std.so.%{major}*
%{_libdir}/libfreehdl-vaul.so.%{major}*
%{_sysconfdir}/ld.so.conf.d/freehdl_%{_arch}.conf

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
# shell script qucs/qucsdigi uses freehdl-config
Provides:	freehdl-config = %{EVRD}
# see freehdl-config --help
Requires:	libtool

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_bindir}/freehdl-config
%{_includedir}/%{name}
%{_libdir}/freehdl/libieee.so
%{_libdir}/libfreehdl-cdfggen.so
%{_libdir}/libfreehdl-fire.so
%{_libdir}/libfreehdl-kernel.so
%{_libdir}/libfreehdl-std.so
%{_libdir}/libfreehdl-vaul.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%if %{mdvver} >= 201900
%patch1 -p0
%endif
autoreconf -fi

%build
%configure \
	--disable-static \
	--with-gnu-ld \
	--with-pic
%make

%install
%makeinstall_std

# Binaries (e.g. during digital simulation in Qucs)
# are linked with /usr/lib(64)/freehdl/libieee.so.0
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
cat >%{buildroot}%{_sysconfdir}/ld.so.conf.d/freehdl_%{_arch}.conf <<EOF
%{_libdir}/freehdl
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1633 |21cr|freelords-0.0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A Linux clone of the old DOS game WarLords
Name:		freelords
Version:	0.0.4
Release:	3
License:	GPLv2+
Group:		Games/Strategy
Url:		https://sourceforge.net/p/freelords/wiki/Home
Source0:	https://sourceforge.net/projects/freelords/files/Java%20Freelords/%{version}/freelords-%{version}_src.zip
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	ant
BuildRequires:	xalan-j2
BuildRequires:	xerces-j2
BuildRequires:	xml-commons-jaxp-1.3-apis
Requires:	java
BuildArch:	noarch

%description
FreeLords is a turn-based strategy game similar to Warlords.
It can be played with friends on one computer or via a network.

%files
%{_gamesbindir}/*
%{_datadir}/games/%{name}
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -qc

%build
ant build

%install
ant deploy

# No need to support M$ crap
rm -f deploy/*.bat

mkdir -p %{buildroot}%{_datadir}/games/%{name}
cp -a deploy/* %{buildroot}%{_datadir}/games/%{name}

mkdir -p %{buildroot}%{_gamesbindir}
for i in client server; do
	cat >%{buildroot}%{_gamesbindir}/%{name}-$i <<EOF
#!/bin/sh
cd %{_datadir}/games/%{name}
exec ./$i.sh "$@"
EOF
done
chmod 0755 %{buildroot}%{_gamesbindir}/*

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=FreeLords
Name[ru]=FreeLords
Comment=A Linux clone of the old DOS game WarLords
Comment[ru]=Клон игры WarLords
Exec=%{_gamesbindir}/%{name}-client
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;StrategyGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1634 |21cr|freemind-1.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           freemind
Summary:        A premier mind-mapping software
Version:        1.0.1
Release:        3
Group:          Office
License:        GPLv2
Url:            http://freemind.sourceforge.net

Requires:       java >= 1.6.0
BuildRequires:  unzip

Source0:        %{name}-bin-max-%{version}.zip
Source1:        %{name}.desktop
Source2:	%{name}.xml
Source3:        %{name}16.png
Source4:        %{name}32.png
Source5:        %{name}48.png
Source99:	%{name}.rpmlintrc
BuildArch:      noarch

%description
A mind mapper, and at the same time an easy-to-operate hierarchical editor
with strong emphasis on folding. These two are not really two different
things, just two different descriptions of a single application. Often used
for knowledge and content management.

%prep
%setup -qc

%build

%install
mkdir -p %{buildroot}/opt/%{name}

# Copy all files from archive into /opt/freeplane dir
cp -Rp * %{buildroot}/opt/%{name}/
rm -f %{buildroot}/opt/%{name}/*exe
rm -f %{buildroot}/opt/%{name}/*bat

# install resources
install -Dm644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop
install -Dm644 %{SOURCE2} %{buildroot}/%{_datadir}/mime/packages/%{name}.xml

mkdir -p %{buildroot}/%{_iconsdir}/hicolor/16x16/apps %{buildroot}/%{_iconsdir}/hicolor/32x32/apps %{buildroot}/%{_iconsdir}/hicolor/48x48/apps
install -Dm644 %{SOURCE3} %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -Dm644 %{SOURCE4} %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -Dm644 %{SOURCE5} %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/%{name}.png

mkdir -p %{buildroot}/%{_bindir}
cd %{buildroot}/%{_bindir}
ln -snf ../../opt/%{name}/%{name}.sh %{name}
chmod a+x %{name}

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
/opt/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1635 |21cr|freemode-3.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Alternative UI for freeplayer
Name: 	 freemode
Version: 3.0
Release: 10
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group:   Video
Url:     http://www.moktoipas.com/freemode/
Buildarch: noarch

Requires:	freeplayer-common

%description
Alternative UI for freeplayer

%prep
%setup -q

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx
for i in config settings options; do
  mv $i.html $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx/$i-freemode.html
done
cp -rp *.html $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx
cp -rp *.m3u $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx
cp -rp aides $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx
cp -rp freezic $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx
cp -rp radios $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx
cp -rp tele $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx
cp -rp favoris $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx
cp -rp imgs $RPM_BUILD_ROOT/%{_datadir}/freeplayer/http-fbx

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc LICENCE.TXT
%{_datadir}/freeplayer/http-fbx

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1636 |21cr|freenx-0.7.3-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# --with NomachineKey
# Allow login with the key shipped with the NoMachine client.
# This can be a security risk, so it is disabled by default
# and an SSH key is generated at install time.
%bcond_with NomachineKey

Summary:	Free NX implementation
Name:		freenx
Version:	0.7.3
Release:	17
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://freenx.berlios.de/
Source0:	http://download.berlios.de/freenx/freenx-server-%{version}.tar.gz
Source1:	freenx-nxserver.logrotate
Patch0:		freenx-server-0.7.3-lp-fixes.patch
Patch1:		freenx-server-r104-fixes.patch
Patch2:		freenx-server-0.7.3-connection-fix.patch
Patch3:		freenx-server-0.7.3-authkeys2.patch
Patch4:		freenx-server-0.7.3-lxde_gnome_crash.patch
Requires:	expect
Requires:	netcat
Requires:	nxagent
Requires:	nxproxy
Requires:	openssh-server
Requires:	Xdialog
Requires:	xmessage
Requires:	xterm
Requires(pre,post,preun,postun):	rpm-helper
Requires(post):	expect

%description
NoMachine NX is the next-generation X compression and roundtrip
suppression scheme. It can operate remote X11 sessions over 56k
modem dialup links or anything better.

This package contains a free (GPL) implementation of the nxserver
component.

%files
%defattr(0644,root,root,0755)
%doc AUTHORS README.urpmi
%attr(0755,root,root) %{_bindir}/nxdialog
%attr(0755,root,root) %{_bindir}/nxkeygen
%attr(0755,root,root) %{_bindir}/nxloadconfig
%attr(0755,root,root) %{_bindir}/nxnode
%attr(0755,root,root) %{_bindir}/nxnode-login
%attr(0755,root,root) %{_bindir}/nxserver
%attr(0755,root,root) %{_bindir}/nxserver-helper
%attr(0755,root,root) %{_sbindir}/nxsetup
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0755,root,root) %{_initrddir}/freenx-server
%attr(755,nx,root) %dir %{_sysconfdir}/nxserver
%attr(755,nx,root) %dir %{_localstatedir}/lib/nxserver
%attr(755,nx,root) %dir %{_localstatedir}/lib/nxserver/db
%attr(700,nx,root) %dir %{_localstatedir}/lib/nxserver/db/closed
%attr(700,nx,root) %dir %{_localstatedir}/lib/nxserver/db/failed
%attr(700,nx,root) %dir %{_localstatedir}/lib/nxserver/db/running
%attr(755,nx,root) %dir %{_localstatedir}/lib/nxserver/nxhome
%attr(700,nx,root) %dir %{_localstatedir}/lib/nxserver/nxhome/.ssh
%attr(644,nx,root) %config(noreplace) %{_sysconfdir}/nxserver/node.conf
%attr(600,nx,root) %ghost %{_sysconfdir}/nxserver/passwords
%attr(600,nx,root) %ghost %{_sysconfdir}/nxserver/users.id_dsa
%attr(644,root,root) %ghost %{_sysconfdir}/nxserver/users.id_dsa.pub
%attr(600,nx,root) %ghost %{_sysconfdir}/nxserver/passwords.orig
%attr(600,nx,root) %ghost %{_localstatedir}/lib/nxserver/nxhome/.ssh/known_hosts
%attr(600,nx,root) %ghost %{_localstatedir}/lib/nxserver/nxhome/.ssh/authorized_keys
%attr(600,nx,root) %ghost %{_localstatedir}/lib/nxserver/nxhome/.ssh/client.id_dsa.key
%attr(600,nx,root) %ghost %{_localstatedir}/lib/nxserver/nxhome/.ssh/server.id_dsa.pub.key
# E: freenx non-root-user-log-file /var/log/nxserver.log nx
%attr(600,nx,root) %ghost %{_logdir}/nxserver.log

%pre
if [ $1 = 1 ]; then
        %_pre_useradd nx %{_localstatedir}/lib/nxserver/nxhome %{_bindir}/nxserver
fi

%postun
if [ $1 = 0 ]; then
        %_postun_userdel nx
fi

%post
%_post_service freenx-server

# make a link from %{_usr}/X11R6/lib/X11/fonts -> %{_datadir}/fonts if needed
[ ! -d %{_usr}/X11R6/lib/X11/fonts ] && %{__ln_s} %{_datadir}/fonts %{_usr}/X11R6/lib/X11/ 
if [ $1 = 1 ]; then
        %{_bindir}/ssh-keygen -f %{_sysconfdir}/nxserver/users.id_dsa -t dsa -N "" 2>&1 > /dev/null
        chown nx.root %{_sysconfdir}/nxserver/users.id_dsa 
        chmod 600 %{_sysconfdir}/nxserver/users.id_dsa

%if %{with NomachineKey}
        cat << EOF > %{_localstatedir}/lib/nxserver/nxhome/.ssh/authorized_keys
ssh-dss AAAAB3NzaC1kc3MAAACBAJe/0DNBePG9dYLWq7cJ0SqyRf1iiZN/IbzrmBvgPTZnBa5FT/0Lcj39sRYt1paAlhchwUmwwIiSZaON5JnJOZ6jKkjWIuJ9MdTGfdvtY1aLwDMpxUVoGwEaKWOyin02IPWYSkDQb6cceuG9NfPulS9iuytdx0zIzqvGqfvudtufAAAAFQCwosRXR2QA8OSgFWSO6+kGrRJKiwAAAIEAjgvVNAYWSrnFD+cghyJbyx60AAjKtxZ0r/Pn9k94Qt2rvQoMnGgt/zU0v/y4hzg+g3JNEmO1PdHh/wDPVOxlZ6Hb5F4IQnENaAZ9uTZiFGqhBO1c8Wwjiq/MFZy3jZaidarLJvVs8EeT4mZcWxwm7nIVD4lRU2wQ2lj4aTPcepMAAACANlgcCuA4wrC+3Cic9CFkqiwO/Rn1vk8dvGuEQqFJ6f6LVfPfRTfaQU7TGVLk2CzY4dasrwxJ1f6FsT8DHTNGnxELPKRuLstGrFY/PR7KeafeFZDf+fJ3mbX5nxrld3wi5titTnX+8s4IKv29HJguPvOK/SI7cjzA+SqNfD7qEo8= root@nettuno
EOF
%else
        %{_bindir}/ssh-keygen -q -t dsa -N '' -f %{_localstatedir}/lib/nxserver/nxhome/.ssh/local.id_dsa 2>&1 > /dev/null
        mv -f %{_localstatedir}/lib/nxserver/nxhome/.ssh/local.id_dsa %{_localstatedir}/lib/nxserver/nxhome/.ssh/client.id_dsa.key
        mv -f %{_localstatedir}/lib/nxserver/nxhome/.ssh/local.id_dsa.pub %{_localstatedir}/lib/nxserver/nxhome/.ssh/server.id_dsa.pub.key
        cat %{_localstatedir}/lib/nxserver/nxhome/.ssh/server.id_dsa.pub.key >  %{_localstatedir}/lib/nxserver/nxhome/.ssh/authorized_keys

%endif
        echo -n "127.0.0.1 " > %{_localstatedir}/lib/nxserver/nxhome/.ssh/known_hosts
        cat %{_sysconfdir}/ssh/ssh_host_rsa_key.pub >> %{_localstatedir}/lib/nxserver/nxhome/.ssh/known_hosts
        chmod 600 %{_localstatedir}/lib/nxserver/nxhome/.ssh/*
        chown nx.root %{_localstatedir}/lib/nxserver/nxhome/.ssh/*
        %create_ghostfile %{_sysconfdir}/nxserver/users.id_dsa.pub root root 644
        %create_ghostfile %{_sysconfdir}/nxserver/passwords.orig nx root 600
        %create_ghostfile %{_sysconfdir}/nxserver/passwords nx root 600
        %create_ghostfile %{_logdir}/nxserver.log nx root 600
        %{_bindir}/mkpasswd -l 32 | %{_bindir}/passwd --stdin nx 2>&1 > /dev/null
fi

%preun
%_preun_service freenx-server

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-server-%{version}
%patch0 -p1 -b .lp
%patch1 -p1 -b .fixes
%patch2 -p0 -b .connection-fix
%patch3 -p1 -b .authkeys2
%patch4 -p1 -b .lxde_gnome_crash

%build
perl -pi -e "s|/var/lib/nxserver/home|%{_localstatedir}/lib/nxserver/nxhome|" nxloadconfig
pushd nxserver-helper
%setup_compile_flags
%make
popd

# README.install.urpmi doesn't work yet.
cat << EOF > README.urpmi
After installing this package, an nx user is created (this is a
system user, do not try to log in as him), with a home located
at %{_localstatedir}/lib/nxserver/nxhome. His password is a random
32-character password.

%if %{with NomachineKey}
Using Nomachine ssh key, warning, this is a potential security risk.
%else
Your user must install the key located at: 
%{_localstatedir}/lib/nxserver/nxhome/.ssh/client.id_dsa.key
to log in.

For knx, put it in: %{_datadir}/knx/ with world-readable right.
For nomachine.com Nx client for windows put it in : C:\Program
Files\NX Client for Windows\share

You user will now be able to log in using their username
and password provided you have ssh logins enabled for them
%endif
EOF

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
install -m 755 {nxdialog,nxkeygen,nxloadconfig,nxnode,nxnode-login,nxserver,nxserver-helper/nxserver-helper} %{buildroot}%{_bindir}
install -m 755 nxsetup %{buildroot}%{_sbindir}

mkdir -p %{buildroot}%{_localstatedir}/lib/nxserver/nxhome/.ssh
mkdir -p %{buildroot}%{_localstatedir}/lib/nxserver/db/{closed,failed,running}
mkdir -p %{buildroot}%{_sysconfdir}/nxserver
mkdir -p %{buildroot}%{_logdir}
touch %{buildroot}%{_sysconfdir}/nxserver/{passwords,passwords.orig,users.id_dsa,users.id_dsa.pub}
touch %{buildroot}%{_localstatedir}/lib/nxserver/nxhome/.ssh/{server.id_dsa.pub.key,client.id_dsa.key,authorized_keys,known_hosts}
touch %{buildroot}%{_logdir}/nxserver.log
install node.conf.sample %{buildroot}%{_sysconfdir}/nxserver/node.conf
#echo 'ENABLE_1_5_0_BACKEND="1"' >> %{buildroot}%{_sysconfdir}/nxserver/node.conf
echo 'ENABLE_2_0_0_BACKEND="1"' >> %{buildroot}%{_sysconfdir}/nxserver/node.conf
echo 'ENABLE_ROOTLESS_MODE="1"' >> %{buildroot}%{_sysconfdir}/nxserver/node.conf
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cp -a %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# install init script
install -D -m 755 init.d/freenx-server %{buildroot}%{_initrddir}/freenx-server

# tell spec-helper to not remove passwords.orig
export DONT_CLEANUP=1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1637 |21cr|freeorion-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	oname FreeOrion

Summary:	Turn-based space empire and galactic conquest
Name:		freeorion
Version:	0.5
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://www.freeorion.org
Source0:	https://github.com/freeorion/freeorion/archive/refs/tags/v%{version}.tar.gz
Patch0:		freeorion-0.5-remove-linking-workaround-gigi.patch
Patch1:		freeorion-0.5-static.patch
Patch2:		freeorion-0.5-boost-headers-inclusion-order.patch
Patch3:		freeorion-0.5-link.patch
BuildRequires:	cmake >= 3.4
BuildRequires:	cppcheck
BuildRequires:	boost-devel >= 1.60
BuildRequires:	python-pycodestyle
BuildRequires:	pkgconfig(bullet)
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{version}

%description
FreeOrion is a free, open source, turn-based space empire and galactic conquest
(4X) computer game being designed and built by the FreeOrion project. FreeOrion
is inspired by the tradition of the Master of Orion games, but is not a clone
or remake of that series or any other game.

%files
%doc ChangeLog.md README.md
%{_bindir}/%{name}*
%{_datadir}/applications/org.%{name}.%{oname}.desktop
%{_datadir}/metainfo/org.%{name}.%{oname}.metainfo.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%package data
Summary:	FreeOrion game data files
License:	CC-BY-SA
Group:		Games/Strategy
BuildArch:	noarch

%description data
Data files for FreeOrion game.

%files data
%doc README.md
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Workaround cmake issue with generating source file
sed -i s,"\${FreeOrion_VERSION}",%{version},g util/Version.cpp.in
cp util/Version.cpp.in util/Version.cpp


%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
%ifarch %{x86_64} aarch64 %{e2k} %{riscv}
	-DLIB_SUFFIX=64 \
%endif
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DENABLE_TIFF_TEXTURES:BOOL=ON
%make VERBOSE=1


%install
# There is no way to tell cmake to install in %%{_gamesbindir}/%%{_gamesdatadir}:
# keep all the stuff where the installer put it: %%{_bindir} and %%{_datadir}
%makeinstall_std -C build

# We don't need static libraries
rm -rf %{buildroot}%{_libdir}/%{name}
rm -f %{buildroot}%{_libdir}/*.a
rmdir %{buildroot}%{_libdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1638 |21cr|freepbx-16.0.21.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%define 	rawname	framework

Name:		freepbx
Version:	16.0.21.3
Release:	2
Summary:	FreePBX Framework
Group:		Communications
License:	See the attached README file
Source0:	https://mirror.freepbx.org/modules/packages/%{rawname}/%{rawname}-%{version}.tgz
Source2:	amportal.conf
Source3:	freepbx.conf
Source4:	freepbx_chown.conf
Source5:	freepbx.service
Source100:	README.freepbx
Source101:	APACHE_MOD_PHP.freepbx
Source102:	APACHE_PHP_FPM.freepbx
Source103:	LIGHTTPD.freepbx
Source104:	INSTALL.freepbx
Source105:	CDR.freepbx
Source120:	freePBXAsterisk.te

# TODO prendere i .htconfig e metterli in file di sistema
Patch0:		freepbx-framework-16.0.10.50-installcommand.patch
Patch1:		freepbx-framework-16.0.10.43-installcommand_odbc.patch 
Patch2:		freepbx-framework-16.0.10.43-installcommand_no_amportal_conf.patch
Patch3:		freepbx-framework-16.0.10.43-installcommand_no_modules_install.patch
Patch4:		freepbx-framework-16.0.10.43-installcommand_skip_install.patch
Patch10:	freepbx-framework-16.0.10.50-installphp_cleanups.patch
Patch20:	freepbx-Console-force_nochown.patch
Patch21:	freepbx-framework-16.0.10.50-modulefunctions.patch
Patch22:	freepbx-framework-16.0.10.43-fwconsole_nochown.patch
# Ce ne sono altri di chown, e chgrp, e installazioni varie. intanto iniziamo
Patch23:	freepbx-framework-16.0.10.43-gqp-nochowns.patch
# Questa non la applichiamo, xche e' utile che le config in /etc/asterisk siano di asterisk, anche quando generate da fwconsole reload: altri il reload da web page non le puo' sovrascrivere
Patch24:	freepbx-framework-16.0.10.43-writeconfig-nochown.patch
Patch25:	freepbx-framework-16.0.10.43-fwconsole_nocron.patch
Patch26:	freepbx-framework-16.0.10.50-fwconsole_nosystem.patch
Patch27:	freepbx-framework-16.0.10.50-fwconsole_novalidate.patch
Patch28:	freepbx-framework-16.0.10.50-fwconsole_noupdatemanager.patch
Patch29:	freepbx-framework-16.0.10.50-reloadNoSymlinkNoCopy.patch
# We will then have to decide if it is really legitimate, that fwconsole stop stoppi *
Patch30:	freepbx-framework-16.0.10.50-fwconsole_start_stop_asterisk.patch
# Not used now
Patch31:	freepbx-framework-16.0.19-restart_no_asterisk.patch
Patch40:	freepbx-framework-16.0.10.43-install_path.patch
# This time I'm adding a chown. If I log something from cli, the file if it does not exist will belong to root, so apache will not be able to write it.
Patch41:	freepbx-framework-16.0.10.50-logger_chown.patch
# Analogous in /usr/share/freepbx/admin/assets/less/cache
Patch42:	freepbx-framework-16.0.10.43-less.dochown.patch
# Here I try to eliminate references to systemUpdates, BUT TODO: sooner or later, I would eliminate completely Builtin/SystemUpdates.php, Builtin/UpdateManager.php, Console/System.class.php, Console/Updatemanager.class.php
# To search quickly:
# grep 'System Updates\|canDoSystemUpdates\|auto_system_updates\|fetchAutomaticUpdate\|getsystemupdates\|System Upgrades' -rsl| grep -v i18n
Patch60:	freepbx-framework-16.0.10.43-noSystemUpdates.patch
# Delete the updates config from the OOBE (Out Of the Box something) screen, which is the initial setup. We don't even ask, so updates are banned
Patch61:	freepbx-framework-16.0.19-noUpdatesInOOBE.patch
# It removes some elements for updating packages from the web interface
Patch62:	freepbx-framework-16.0.10.43-ExternalPackageManagement.patch
# Don't do signature check
Patch80:	freepbx-framework-16.0.10.50-nosigcheck.patch
Patch81:	freepbx-framework-16.0.10.50-noGPG.patch
# Patch of generic functionality
Patch200:	freepbx-framework-16.0.19-FOPWEBROOT.patch

Requires:	php
Requires:	php-mysqli
Requires:	asterisk
Requires:	freepbx-core
Requires:	freepbx-dashboard
Requires:	freepbx-sipsettings
Requires:	freepbx-voicemail

Requires(pre):	user(asterisk)

Provides:	freepbx = %{version}-%{release}

BuildArch:	noarch

%description
The goal of FreePBX project is to bring together best-of-breed applications to produce a
standardized implementation of Asterisk complete with a Web-based administrative interface.
This module provides the framework code that is not otherwise housed in a module

%files
# TODO: put the license in place, in order to highlight how you license them. And put a license in this particular spec.
%doc LICENSE.original.FreePBX README README.original.FreePBX INSTALL APACHE_MOD_PHP APACHE_PHP_FPM LIGHTTPD CDR freePBXAsterisk.te
%defattr(0644,root,root,0755)

%attr(0664,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/asterisk/freepbx/*
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/freepbx.conf
%attr(0640,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/amportal.conf

%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/*

%attr(0755,root,root) %{_datadir}/asterisk/agi-bin/*
%attr(0755,root,root) %{_datadir}/asterisk/bin/*
#%attr(0644,asterisk,asterisk) %{_datadir}/asterisk/moh/*.wav
#%attr(0755,asterisk,asterisk) %dir %{_datadir}/asterisk/sounds/custom
%{_datadir}/%{name}
#%exclude %{_datadir}/%{name}/admin/modules/_cache
%dir %attr(0775,asterisk,asterisk) %{_datadir}/%{name}/admin/modules/_cache
#%exclude %{_datadir}/%{name}/admin/modules/framework
%dir %attr(0755,root,root) %{_datadir}/%{name}/admin/modules/framework
#%exclude %{_datadir}/%{name}/admin/assets/less/cache
%dir %attr(0755,asterisk,asterisk) %{_datadir}/%{name}/admin/assets/less/cache
%dir %attr(0755,asterisk,asterisk) %{_datadir}/%{name}/admin/assets/js
%attr(0755,root,root) %{_datadir}/%{name}/admin/modules/framework/install
%dir %attr(0775,asterisk,asterisk) /var/spool/asterisk/voicemail/device
%dir %attr(0766,asterisk,asterisk) /var/spool/asterisk/fax
%dir %attr(0775,asterisk,asterisk) /var/spool/asterisk/cache
#%dir %attr(0766,asterisk,asterisk) /var/spool/asterisk/monitor
%{_sbindir}/*
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

cat %{buildroot}%{_sysconfdir}/asterisk/freepbx/README

if [ $1 -ge 1 ]; then
# Case upgrade, I update the modules.
# Maybe the dependencies would have to be managed ...
# /usr/sbin/fwconsole ma list|grep 'Disabled.*Pending upgrade'|cut -f1 -d" "|while read mod; do /usr/share/freepbx/module_admin install $mod; done
# I leave it to the command line:
/usr/sbin/fwconsole ma list|grep -q 'Disabled.*Pending upgrade' && {
	echo "The following modules need updating:"
	echo
	/usr/sbin/fwconsole ma list|grep 'Disabled.*Pending upgrade'
	echo
	echo "Run /usr/sbin/fwconsole ma install <module>"
	echo "for each of the modules"
	} || :
fi

%preun
%systemd_preun %{name}.service
# We try, as far as possible, to leave a few crap around
find %{_datadir}/%{name}/admin/assets/less/cache \
     %{_datadir}/%{name}/admin/modules/_cache \
     /var/spool/asterisk/cache \
-mindepth 1 -maxdepth 1 -exec rm -rf '{}' ';'

%postun
%systemd_postun_with_restart %{name}.service


#--------------------------------------------------------------------------------
%prep
%setup -q -n %{rawname}
%patch0 -p1
%patch1 -p0
#%patch2 -p0
#%patch3 -p0
%patch4 -p0
%patch10 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p0
%patch23 -p1
#%patch24 -p1
%patch25 -p0
%patch26 -p0
%patch27 -p0
%patch28 -p0
%patch29 -p0
%patch30 -p0
%patch40 -p0
%patch41 -p0
%patch42 -p0
#%patch60 -p0
%patch61 -p1
%patch62 -p0
%patch80 -p0
%patch81 -p1
%patch200 -p1

# We check the possible presence of particularities to manage
for ddd in sbin sounds moh ; do
        [ -e amp_conf/$ddd ] && echo presente amp_conf/$ddd, va gestito && exit 1
done

# I don't feel like running gpg left and right, only to learn that I have changed the modules
%{__rm} module.sig

# Delete backup files
find . -name '*.orig' -exec rm '{}' ';'
find . -depth -name '.git*' -exec rm -rf '{}' ';'

# fix dir perms
find . -type d -exec chmod 755 '{}' ';'
find . -type f -exec chmod 644 '{}' ';'
#find . -type f -regex '.*\.\(php\|html\)$' -exec chmod 644 '{}' ';'

# I don't like this one so I take it off, and patience if we have some discomfort to manage. It reminds me of who used to chmod -R 777 / "to avoid problems".
%{__rm} amp_conf/htdocs/admin/libraries/Console/Chown.class.php
%{__rm} amp_conf/htdocs/admin/libraries/Console/System.class.php
%{__rm} amp_conf/htdocs/admin/libraries/Console/Validate.class.php
%{__rm} amp_conf/htdocs/admin/libraries/Console/Updatemanager.class.php
%{__rm} amp_conf/htdocs/admin/libraries/BMO/GPG.class.php

perl -pi -e 's|^astmoddir\b.*|astmoddir=/usr/lib64/asterisk/modules|; s|^astvarlibdir\b.*|astvarlibdir=/usr/share/asterisk\nastdbdir=/var/spool/asterisk\nastkeydir=/var/lib/asterisk\nastdatadir=/usr/share/asterisk|; s|^astagidir\b.*|astagidir=/usr/share/asterisk/agi-bin|; s|^astrundir\b.*|astrundir=/run/asterisk|;' installlib/files/asterisk.conf

perl -ni -e 'next if 1 .. m|^cat\b|; next if m|^EOF$|; print' hooks/logrotate
# Simple method to notice, failing when new hooks are introduced to handle
%{__mkdir} etclogrotate.d
%{__mv} hooks/logrotate etclogrotate.d/freepbx-fwJOB
# Note that there are references to at least upgrade-all-module in amp_conf/htdocs/admin/libraries/Api/Gql/Modules.php : that too must be appropriately trimmed
%{__rm} hooks/README.md  hooks/upgrade-all-module  hooks/yum-check-updates  hooks/yum-run-update  hooks/yum-update-system
# Simple method to notice, failing when new hooks are introduced to handle
rmdir hooks

# it's the mod' developer sake, if he is using a deprecated function. I regret it, but I see no reason to pollute the logs in normal working environment.
perl -pi -e '/Depreciated Function .* detected in .* on line / and s/LOG_WARNING/LOG_DEBUG/' amp_conf/htdocs/admin/libraries/modulefunctions.legacy.php amp_conf/htdocs/admin/libraries/BMO/Modules.class.php 

%{__mv} LICENSE LICENSE.original.FreePBX
%{__mv} README.md README.original.FreePBX
%{__install} -m0644 %{SOURCE100} ./README
%{__install} -m0644 %{SOURCE101} ./APACHE_MOD_PHP
%{__install} -m0644 %{SOURCE102} ./APACHE_PHP_FPM
%{__install} -m0644 %{SOURCE103} ./LIGHTTPD
%{__install} -m0644 %{SOURCE104} ./INSTALL
%{__install} -m0644 %{SOURCE105} ./CDR
%{__install} -m0644 %{SOURCE120} .

%install

# See installcommand.class.php, section // Copy amp_conf/
%{__install} -d %{buildroot}%{_sysconfdir}/asterisk/freepbx
%{__install} -m0664 amp_conf/astetc/* %{buildroot}%{_sysconfdir}/asterisk/freepbx
%{__install} -m0664 amp_conf/astetc/voicemail.conf.template %{buildroot}%{_sysconfdir}/asterisk/freepbx/voicemail.conf	# See installcommand.class.php, section // Copy /etc/asterisk/voicemail.conf.template to /etc/asterisk/voicemail.conf

%{__install} -d %{buildroot}%{_sysconfdir}/logrotate.d
%{__install} -m0644 etclogrotate.d/freepbx-fwJOB %{buildroot}%{_sysconfdir}/logrotate.d/

%{__install} -d %{buildroot}%{_datadir}/asterisk/bin
%{__install} -m0755 amp_conf/bin/* %{buildroot}%{_datadir}/asterisk/bin

%{__install} -d %{buildroot}%{_datadir}/%{name}
# TODO prendere i .htconfig da qui dentro e metterli in file di sistema
%{__cp} -aR amp_conf/htdocs/{.[a-z]*,*} %{buildroot}%{_datadir}/%{name}/

%{__install} -d %{buildroot}%{_datadir}/asterisk/agi-bin
%{__install} -m0755 amp_conf/agi-bin/* %{buildroot}%{_datadir}/asterisk/agi-bin

%{__install} -d %{buildroot}%{_datadir}/%{name}/admin/modules/%{rawname}
# See installcommand.class.php, $copyFrameworkFiles . Skip LICENSE and README.md since they go into %{doc}
%{__install} -m0664 install.php module.xml phpunit.xml %{buildroot}%{_datadir}/%{name}/admin/modules/%{rawname}

# Copy these too, since in our particular case, I think it will be needed
%{__cp} -aR install installlib upgrades %{buildroot}%{_datadir}/%{name}/admin/modules/%{rawname}

%{__install} -d %{buildroot}%{_sbindir} # See installcommand.class.php, section //Last minute symlinks
%{__ln_s} %{_datadir}/asterisk/bin/{amportal,fwconsole} %{buildroot}%{_sbindir}/

%{__install} -m0664 installlib/files/asterisk.conf %{buildroot}%{_sysconfdir}/asterisk/freepbx # See installcommand.class.php, section // Copy asterisk.conf
%{__install} -m0664 installlib/files/odbc.ini %{buildroot}%{_sysconfdir}/asterisk/freepbx/cdr_odbc.ini # See installcommand.class.php, where is define("ODBC_INI", ...
cat > %{buildroot}%{_sysconfdir}/asterisk/freepbx/README << EOF
NOTICE: Freepbx .conf placed to %{_sysconfdir}/asterick/freepbx
replace original asterick .conf files before use freepbx
EOF


%{__install} -d %{buildroot}/var/log/asterisk/%{name}

%{__install} -d %{buildroot}%{_datadir}/%{name}/admin/modules/_cache # See installcommand.class.php, section // Create additional dirs
%{__install} -d %{buildroot}%{_datadir}/%{name}/admin/modules/framework # Questo lo avevo gia creato sopra
%{__install} -d %{buildroot}%{_datadir}/%{name}/admin/assets/less/cache
%{__install} -d %{buildroot}/var/spool/asterisk/voicemail/device
%{__install} -d %{buildroot}/var/spool/asterisk/fax
%{__install} -d %{buildroot}/var/spool/asterisk/cache
#%{__install} -d %{buildroot}/var/spool/asterisk/monitor # e' in *

%{__install} -m0640 %{SOURCE2} %{buildroot}%{_sysconfdir}/
%{__install} -m0640 %{SOURCE3} %{buildroot}%{_sysconfdir}/

# install an init script for the service
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %SOURCE5 %{buildroot}%{_unitdir}/%{name}.service



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1639 |21cr|freepbx-core-16.0.65.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0
%define dont_clean_files 1

%define 	rawname	core

Name:		freepbx-%{rawname}
Version:	16.0.65.18
Release:	2
Summary:	FreePBX Core
Group:		Communications
License:	See Freepbx Readme
Source0:	https://mirror.freepbx.org/modules/packages/%{rawname}/%{rawname}-%{version}.tgz

# Patch that does practically nothing, removing an empty function. But I keep it to see if anything changes
Patch0:		freepbx-core.nochown.patch

Requires:	freepbx
Requires(pre):	user(asterisk)

Provides:	freepbx-%{rawname} = %{version}-%{release}

BuildArch:	noarch

%description
FreePBX Core module

%files
%doc README.md
%defattr(0644,root,root,0755)

%attr(0664,asterisk,asterisk) %config(noreplace) %{_sysconfdir}/asterisk/freepbx/*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/*

%attr(0755,root,root) %{_datadir}/asterisk/agi-bin/*
%attr(0644,root,root) %{_datadir}/freepbx/admin/images/*
%attr(0644,asterisk,asterisk) %{_datadir}/asterisk/sounds/en/*
%{_datadir}/freepbx/admin/assets/*
%{_datadir}/freepbx/admin/modules/%{rawname}
%dir %attr(0755,asterisk,asterisk) %{_datadir}/freepbx/admin/modules/%{rawname}/logs
%dir %attr(0755,asterisk,asterisk) %{_datadir}/freepbx/admin/modules/%{rawname}/node/logs
%dir %attr(0755,asterisk,asterisk) %{_datadir}/freepbx/admin/modules/%{rawname}/assets/less/cache
%dir %attr(0755,asterisk,asterisk) %{_datadir}/freepbx/admin/modules/%{rawname}/assets/less/*/cache

%preun
# We try, as far as possible, to leave a few crap around
for ddd in `find %{_datadir}/freepbx/admin/modules/%{rawname}/assets/less -maxdepth 2 -type d -name cache` ; do
	find $ddd -type f -exec rm -f '{}' ';'
done

#---------------------------------------------------------------------
%prep
%setup -q -n %{rawname}
%patch0 -p0

# We check the possible presence of particularities to manage
for ddd in bin sbin astetc moh ; do
	[ -e $ddd ] && echo present $ddd, must be managed && exit 1
done

# I don't feel like running gpg left and right, only to learn that I have changed the modules
%{__rm} module.sig

# Delete backup files
find . -name '*.orig' -exec rm '{}' ';'
find . -name '.git*' -exec rm -rf '{}' ';'

# fix dir perms
find . -type d -exec chmod 755 '{}' ';'
find . -type f -exec chmod 644 '{}' ';'
#find . -type f -regex '.*\.\(php\|html\)$' -exec chmod 644 '{}' ';'

perl -ni -e 'next if 1 .. m|^cat\b|; next if m|^EOF$|; print' hooks/logrotate
# Simple method to notice, failing when new hooks are introduced to handle
%{__mkdir} etclogrotate.d
%{__mv} hooks/logrotate etclogrotate.d/freepbx-core
rmdir hooks

%install
%{__install} -d %{buildroot}%{_sysconfdir}/asterisk/freepbx
%{__install} -m0664 etc/* %{buildroot}%{_sysconfdir}/asterisk/freepbx

%{__install} -d %{buildroot}%{_sysconfdir}/logrotate.d
%{__install} -m0664 etclogrotate.d/freepbx-core %{buildroot}%{_sysconfdir}/logrotate.d/

%{__install} -d %{buildroot}%{_datadir}/asterisk/agi-bin
%{__install} -m0755 agi-bin/* %{buildroot}%{_datadir}/asterisk/agi-bin

%{__install} -d %{buildroot}%{_datadir}/asterisk/sounds
%{__cp} -aR sounds/* %{buildroot}%{_datadir}/asterisk/sounds/

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/images
%{__install} -m0644 images/* %{buildroot}%{_datadir}/freepbx/admin/images

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/assets
%{__ln_s} ../modules/%{rawname}/assets %{buildroot}%{_datadir}/freepbx/admin/assets/%{rawname}

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}
%{__cp} -aR `ls | egrep -v '^(agi-bin|bin|etc|sounds|moh|images|LICENSE|README.md)'` %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}/logs
%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}/node/logs

find %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}/assets/less -maxdepth 1 -type d '!' -name cache -exec \
	%{__install} -d '{}'/cache ';'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1640 |21cr|freepbx-dashboard-16.0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%define 	rawname	dashboard

Name:		freepbx-%{rawname}
Version:	16.0.13
Release:	1
Summary:	System Dashboard
Group:		Communications
License:	See Freepbx Readme
Source0:	https://mirror.freepbx.org/modules/packages/%{rawname}/%{rawname}-%{version}.tgz
Patch0:		freepbx-dashboard.nochown.patch
Patch1:		freepbx-dashboard.nomailq.patch

Requires:	freepbx
Requires(pre):	user(asterisk)

Provides:	freepbx-%{rawname} = %{version}-%{release}

BuildArch:	noarch

%description
Provides a system information dashboard, showing information about Calls, CPU, Memory, Disks, Network, and processes.


%files
%doc README.md
%defattr(0644,root,root,0755)
%{_datadir}/freepbx/admin/assets/*
%{_datadir}/freepbx/admin/modules/%{rawname}
%attr(0755,root,root) %{_datadir}/freepbx/admin/modules/%{rawname}/scheduler.php
%attr(0755,root,root) %{_datadir}/freepbx/admin/modules/%{rawname}/netmon.php
%dir %attr(0755,asterisk,asterisk) %{_datadir}/freepbx/admin/modules/%{rawname}/assets/less/cache

%preun
find %{_datadir}/freepbx/admin/modules/%{rawname}/assets/less/cache -mindepth 1 -maxdepth 1 -exec rm -rf '{}' ';'

#-------------------------------------------------------------------------------
%prep
%setup -q -n %{rawname}
%patch0 -p0
# We'll see if we apply it, because dashboard does a lot of queries around, and it carries a lot of selinux policy exceptions, not just for mailq but for network, disks etc.
#%patch1 -p1

# We check the possible presence of particularities to manage
for ddd in agi-bin bin sbin etc astetc images sounds moh hooks ; do
	[ -e $ddd ] && echo present $ddd, must be managed && exit 1
done

# I don't feel like running gpg left and right, only to learn that I have changed the modules
%{__rm} module.sig

# Delete backup files
find . -name '*.orig' -exec rm '{}' ';'
find . -name '.git*' -exec rm -rf '{}' ';'

# fix dir perms
find . -type d -exec chmod 755 '{}' ';'
find . -type f -exec chmod 644 '{}' ';'
#find . -type f -regex '.*\.\(php\|html\)$' -exec chmod 644 '{}' ';'

%install
%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/assets
%{__ln_s} %{_datadir}/freepbx/admin/modules/%{rawname}/assets %{buildroot}%{_datadir}/freepbx/admin/assets/%{rawname}

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}
%{__cp} -aR `ls | egrep -v '^(agi-bin|bin|etc|sounds|moh|images|LICENSE|README.md)'` %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}/assets/less/cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1641 |21cr|freepbx-sipsettings-16.0.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%define 	rawname	sipsettings

Name:		freepbx-%{rawname}
Version:	16.0.22
Release:	1
Summary:	Asterisk SIP Settings
Group:		Communications
License:	See Freepbx Readme
Source0:	https://mirror.freepbx.org/modules/packages/%{rawname}/%{rawname}-%{version}.tgz
Patch0:		freepbx-sipsettings-noBackup.patch

Requires:	freepbx-core

Provides:	freepbx-%{rawname} = %{version}-%{release}

BuildArch:	noarch

%description
Use to configure Various Asterisk SIP and PJSIP Settings

%files
%doc README.md
%{_datadir}/freepbx/admin/assets/*
%{_datadir}/freepbx/admin/modules/%{rawname}

#--------------------------------------------------------------
%prep
%setup -q -n %{rawname}
%patch0 -p1

# We check the possible presence of particularities to manage
for ddd in agi-bin bin sbin etc astetc images sounds moh hooks ; do
	[ -e $ddd ] && echo present $ddd, must be managed && exit 1
done

# I don't feel like running gpg left and right, only to learn that I have changed the modules
%{__rm} module.sig

# Delete backup files
find . -name '*.orig' -exec rm '{}' ';'
find . -name '.git*' -exec rm -rf '{}' ';'

# fix dir perms
find . -type d -exec chmod 755 '{}' ';'
find . -type f -exec chmod 644 '{}' ';'
#find . -type f -regex '.*\.\(php\|html\)$' -exec chmod 644 '{}' ';'

%install
%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/assets
%{__ln_s} %{_datadir}/freepbx/admin/modules/%{rawname}/assets %{buildroot}%{_datadir}/freepbx/admin/assets/%{rawname}

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}
%{__cp} -aR `ls | egrep -v '^(agi-bin|bin|etc|sounds|moh|images|LICENSE|README.md)'` %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1642 |21cr|freepbx-voicemail-16.0.43-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%define		rawname	voicemail

Name:		freepbx-%{rawname}
Version:	16.0.43
Release:	1
Summary:	Voicemail
Group:		Communications
License:	See Freepbx Readme
Source0:	https://mirror.freepbx.org/modules/packages/%{rawname}/%{rawname}-%{version}.tgz
Patch0:		freepbx-voicemail-command_declaration.patch

Requires:	freepbx-core
Requires:	user(asterisk)

Provides:	freepbx-%{rawname} = %{version}-%{release}

BuildArch:	noarch

%description
This module allows you to configure Voicemail for a user or extension


%files
%doc README.md
%{_datadir}/freepbx/admin/assets/*
%{_datadir}/freepbx/admin/modules/%{rawname}
%dir %attr(0755,asterisk,asterisk) %{_datadir}/freepbx/admin/modules/%{rawname}/assets/less/cache
%dir %attr(0755,asterisk,asterisk) %{_datadir}/freepbx/admin/modules/%{rawname}/assets/ucp/less/cache

%preun
find %{_datadir}/freepbx/admin/modules/%{rawname}/assets/less/cache -mindepth 1 -maxdepth 1 -exec rm -rf '{}' ';'
find %{_datadir}/freepbx/admin/modules/%{rawname}/assets/ucp/less/cache -mindepth 1 -maxdepth 1 -exec rm -rf '{}' ';'

#-------------------------------------------------------------------
%prep
%setup -q -n %{rawname}
%patch0 -p0

# We check the possible presence of particularities to manage
for ddd in agi-bin bin sbin etc astetc images sounds moh hooks ; do
	[ -e $ddd ] && echo present $ddd, must be managed && exit 1
done

# I don't feel like running gpg left and right, only to learn that I have changed the modules
%{__rm} module.sig

# Delete backup files
find . -name '*.orig' -exec rm '{}' ';'
find . -name '.git*' -exec rm -rf '{}' ';'

# fix dir perms
find . -type d -exec chmod 755 '{}' ';'
find . -type f -exec chmod 644 '{}' ';'
#find . -type f -regex '.*\.\(php\|html\)$' -exec chmod 644 '{}' ';'

%install
%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/assets
%{__ln_s} %{_datadir}/freepbx/admin/modules/%{rawname}/assets %{buildroot}%{_datadir}/freepbx/admin/assets/%{rawname}

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}
%{__cp} -aR `ls | egrep -v '^(agi-bin|bin|etc|sounds|moh|images|LICENSE|README.md)'` %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}

%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}/assets/less/cache
%{__install} -d %{buildroot}%{_datadir}/freepbx/admin/modules/%{rawname}/assets/ucp/less/cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1643 |21cr|freeplane-1.9.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free and open source software application
Name:		freeplane
# Please, don't update to 1.6 until they fix SVG and PDF export!!!
Version:	1.9.11
Release:	1
License:	GPLv2
Group:		Office
Url:		http://www.freeplane.org
# Source0:	https://sourceforge.net/projects/freeplane/files/freeplane%20stable/%{name}_bin-%{version}.zip
Source0:	https://sourceforge.net/projects/freeplane/files/freeplane%20stable/archive/%{version}/freeplane_bin-%{version}.zip
Source1:	%{name}.desktop
Source2:	%{name}.xml
Source99:	%{name}.rpmlintrc
BuildRequires:	unzip
Requires:	java >= 1.7.0
BuildArch:	noarch

%description
Freeplane is free and open source software to support 
thinking, sharing information and getting things done at work, 
in school and at home. The core of the software consists of 
functions for mind mapping, also called concept mapping or information
mapping, and tools for using mapped information. Freeplane runs on 
any operating system on which a current version of Java is
installed and from USB.

%prep
%setup -q -n %{name}-%{version}

%build

%install
mkdir -p %{buildroot}/opt/%{name}

# Copy all files from archive into /opt/freeplane dir
cp -Rp * %{buildroot}/opt/%{name}/

# install resources
install -Dm644 %{SOURCE1} %{buildroot}/%{_datadir}/applications/%{name}.desktop
install -Dm644 freeplane.png %{buildroot}/%{_datadir}/pixmaps/%{name}.png
install -Dm644 freeplane.svg %{buildroot}/%{_datadir}/pixmaps/%{name}.svg
install -Dm644 %{SOURCE2} %{buildroot}/%{_datadir}/mime/packages/%{name}.xml

# Add antialiasing settings
echo -Dawt.useSystemAAFontSettings=on >> init.xargs

mkdir -p %{buildroot}/%{_bindir}
cd %{buildroot}/%{_bindir}
ln -snf ../../opt/%{name}/%{name}.sh %{name}

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/mime/packages/%{name}.xml
/opt/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1644 |21cr|freeplayer-20070531-0.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define aname vlc-fbx
%define bname fbx-playlist
%define longtitle Create Playlist for Freeplayer
%define title Freeplayer-playlist
%define playlist_version 1.1

Name:      freeplayer
Version:   20070531
Release:   0.8
Summary:   Freeplayer from french isp Free ADSL
License:   GPL
URL:       http://faq.free.fr/adsl/Decouvrir_les_services/Freebox_TV/Options_supplementaires/FreePlayer
Group:     Video
Source0:   ftp://ftp.free.fr/pub/%{name}/%{name}-linux-%{version}.tgz
Source1:   vlc-fbx.init
Source2:   vlc-fbx.sysconfig
Source3:  freeplayer-images.tar.bz2

Source10:  %{name}-16.png
Source11:  %{name}-32.png
Source12:  %{name}-48.png
Patch0:    freeplayer-fix-vlc-args.patch
BuildRequires: qt4-devel
Requires: vlc >= 0.8.4
Requires: freeplayer-mod
Requires: freeplayer-common

%description
Freeplayer from french isp Free ADSL


%package data
Group: 		Video
License: 	GPL
Summary: 	Freeplayer from french isp Free ADSL
Provides: freeplayer-mod
Provides: freeplayer-data = %{version}
Requires: freeplayer-common

%description data
Freeplayer from french isp Free ADSL default mod

%package common
Group: 		Video
License: 	GPL
Summary: 	Freeplayer from french isp Free ADSL
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description common
Freeplayer from french isp Free ADSL default mod

%prep
rm -rf %buildroot

%setup -n %{name} -q

tar xzf share/fbx-playlist-%{playlist_version}.tar.gz
/usr/bin/bzip2 -dc %{SOURCE3} | tar -xf -

%build
cd fbx-playlist-%{playlist_version}
/usr/lib/qt4/bin/qmake
#qmake is dropping quotes, restoring them
sed -i -e 's/VERSION="1.1"/VERSION=\\"1.1\\"/g' Makefile
sed -i -e 's///g' license.ui
make

%install
mkdir -p %buildroot/%_datadir/%{name}
mkdir -p %buildroot/%_bindir %buildroot/%_sysconfdir/{init.d,sysconfig}

install -m 755 %{SOURCE1} %buildroot/%_sysconfdir/init.d/vlc-fbx
install -m 644 %{SOURCE2} %buildroot/%_sysconfdir/sysconfig/vlc-fbx

cp -r share/http-fbx %buildroot/%_datadir/%{name}
install -m 755 bin/vlc-fbx.sh -D %buildroot/%_bindir/%{aname}
install -m 755 fbx-playlist-%{playlist_version}/fbx-playlist -D %buildroot/%_bindir/%{bname}
sed -i -e 's^%HTTP_PATH%^/usr/share/freeplayer/http-fbx/^g' %buildroot/%_bindir/%{aname}

#menus

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{title}
Comment=%{longtitle}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=QT;Video;Player;X-MandrivaLinux-Multimedia-Video;
EOF

install -m644 %{SOURCE10} -D %buildroot/%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D %buildroot/%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %buildroot/%{_liconsdir}/%{name}.png

%clean
rm -rf %buildroot

%preun common
%_preun_service vlc-fbx

%post common
%_post_service vlc-fbx

%if %mdkversion < 200900
%post 
%{update_menus}
%endif

%if %mdkversion < 200900
%postun 
%{clean_menus}
%endif

%files 
%defattr(-,root,root)
%doc README share/doc/*
%_bindir/*
%_iconsdir/*.png
%_liconsdir/*.png
%_miconsdir/*.png
%_datadir/applications/mandriva-%{name}.desktop

%files data
%defattr(-,root,root)
%_datadir/%{name}

%files common
%defattr(-,root,root)
%config(noreplace) %_sysconfdir/sysconfig/vlc-fbx
%_sysconfdir/init.d/vlc-fbx

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1645 |21cr|freeradius-client-1.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

%define url_ver %(echo %{version} | tr . _)

Summary:	FreeRADIUS Client Software
Name:		freeradius-client
Version:	1.1.8
Release:	1
License:	BSD-like
Group:		System/Servers
URL:		http://www.freeradius.org/
Source0:	https://github.com/FreeRADIUS/freeradius-client/archive/refs/tags/release_%{url_ver}.tar.gz?/%{name}-%{version}.tar.gz

%description
FreeRADIUS Client is a framework and library for writing RADIUS Clients which
additionally includes radlogin, a flexible RADIUS aware login replacement, a
command line program to send RADIUS accounting records and a utility to query
the status of a (Merit) RADIUS server.

%files
%doc BUGS COPYRIGHT README.rst README.radexample doc/ChangeLog doc/instop.html doc/login.example
%dir %{_sysconfdir}/radiusclient
%attr(0644,root,root) %{_sysconfdir}/radiusclient/dictionary
%attr(0644,root,root) %{_sysconfdir}/radiusclient/dictionary.*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/radiusclient/radiusclient.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/radiusclient/issue
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/radiusclient/port-id-map
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/radiusclient/servers
%attr(0755,root,root) %{_sbindir}/login.radius
%attr(0755,root,root) %{_sbindir}/radacct
%attr(0755,root,root) %{_sbindir}/radembedded
%attr(0755,root,root) %{_sbindir}/radexample
%attr(0755,root,root) %{_sbindir}/radiusclient
%attr(0755,root,root) %{_sbindir}/radlogin
%attr(0755,root,root) %{_sbindir}/radstatus

#-------------------------------------------------------------------------
%package -n %{libname}
Summary:	FreeRADIUS Client Software library
Group:		System/Libraries

%description -n %{libname}
FreeRADIUS Client is a framework and library for writing RADIUS Clients which
additionally includes radlogin, a flexible RADIUS aware login replacement, a
command line program to send RADIUS accounting records and a utility to query
the status of a (Merit) RADIUS server.

This package contains the shared library of FreeRADIUS Client

%files -n %{libname}
%attr(0755,root,root) %{_libdir}/lib*.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name} = %{version}-%{release}

%description -n %{develname}
FreeRADIUS Client is a framework and library for writing RADIUS Clients which
additionally includes radlogin, a flexible RADIUS aware login replacement, a
command line program to send RADIUS accounting records and a utility to query
the status of a (Merit) RADIUS server.

This package contains the header and static libraries files for
freeradius-client.

%files -n %{develname}
%attr(0644,root,root) %{_includedir}/*.h
%attr(0755,root,root) %{_libdir}/*.so

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-release_%{url_ver}

%build
rm missing
libtoolize --copy --force; aclocal; automake -ac; autoconf

%configure \
    --localstatedir=/var/lib \
    --enable-shadow \
    --with-secure-path

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1646 |21cr|freeswitch-1.10.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Module build settings
%define build_sng_isdn 0
%define build_sng_ss7 0
%define build_sng_tc 0
%define build_timerfd 0
%define build_mod_esl 0
%define build_mod_rayo 1
%define build_mod_ssml 1
%define build_mod_v8 0

%{?with_sang_tc:%define build_sng_tc 1 }
%{?with_sang_isdn:%define build_sng_isdn 1 }
%{?with_sang_ss7:%define build_sng_ss7 1 }
%{?with_timerfd:%define build_timerfd 1 }
%{?with_mod_esl:%define build_mod_esl 1 }
%{?with_mod_v8:%define build_mod_v8 1 }

%define nonparsedversion %{version}.-release

%define	PREFIX		%{_prefix}
%define EXECPREFIX	%{_exec_prefix}
%define BINDIR		%{_bindir}
%define SBINDIR		%{_sbindir}
%define LIBEXECDIR	%{_libexecdir}/%{name}
%define SYSCONFDIR	%{_sysconfdir}/%{name}
%define SHARESTATEDIR	%{_sharedstatedir}/%{name}
%define LOCALSTATEDIR	%{_localstatedir}/lib/%{name}
%define LIBDIR		%{_libdir}
%define INCLUDEDIR	%{_includedir}
%define _datarootdir	%{_datadir}
%define DATAROOTDIR	%{_datarootdir}
%define DATADIR		%{_datadir}
%define INFODIR		%{_infodir}
%define LOCALEDIR	%{_datarootdir}/locale
%define MANDIR		%{_mandir}
%define DOCDIR		%{_defaultdocdir}/%{name}
%define HTMLDIR		%{_defaultdocdir}/%{name}/html
%define DVIDIR		%{_defaultdocdir}/%{name}/dvi
%define PDFDIR		%{_defaultdocdir}/%{name}/pdf
%define PSDIR		%{_defaultdocdir}/%{name}/ps
%define LOGFILEDIR	/var/log/%{name}
%define MODINSTDIR	%{_libdir}/%{name}/mod
%define RUNDIR		/run/%{name}
%define DBDIR		%{LOCALSTATEDIR}/db
%define HTDOCSDIR	%{_datarootdir}/%{name}/htdocs
%define SOUNDSDIR	%{_datarootdir}/%{name}/sounds
%define GRAMMARDIR	%{_datarootdir}/%{name}/grammar
%define SCRIPTDIR	%{_datarootdir}/%{name}/scripts
%define RECORDINGSDIR	%{LOCALSTATEDIR}/recordings
%define PKGCONFIGDIR	%{_datarootdir}/%{name}/pkgconfig
%define HOMEDIR		%{LOCALSTATEDIR}

%define _disable_ld_no_undefined 1
%define __requires_exclude devel\\(libsofia-sip-ua.*\\)|^libsofia-sip-ua.*

Name:		freeswitch
Summary:	FreeSWITCH open source telephony platform
License:	MPL1.1
Group:		System/Servers
Version:	1.10.10
Release:	2
URL:		http://www.freeswitch.org/
Source0:	http://files.freeswitch.org/releases/%{name}/%{name}-%{nonparsedversion}.tar.xz
Source1:	http://files.freeswitch.org/downloads/libs/freeradius-client-1.1.7.tar.gz
Source2:	http://files.freeswitch.org/downloads/libs/communicator_semi_6000_20080321.tar.gz
Source3:	http://files.freeswitch.org/downloads/libs/pocketsphinx-0.8.tar.gz
Source4:	http://files.freeswitch.org/downloads/libs/sphinxbase-0.8.tar.gz
Source10:	freeswitch.service
Source20:	freeswitch.sysusers.conf
Source21:	freeswitch.rpmlintrc
Patch1:		freeswitch-libilbc-find.patch
Patch2:		freeswitch-mongo.patch
# https://github.com/signalwire/freeswitch/pull/1628
Patch3:		0001-mod_avmd-Fix-underlinking.patch
# Where is upstream of spinxbase?
Patch4:		0001-Fix-underlinked-libm.patch
# XXX Why is it required, why does `perl -MConfig -e 'print $$Config{libs}'` print nothing?
Patch5:		perl-libs-hack.diff
Patch6:		freeswitch-use-unpacked-tarballs.patch
# distutils deprecated in python >3.10
Patch7:		freeswitch-python3.11.patch
BuildRequires:	imagemagick-devel
BuildRequires:	liblzo-devel
BuildRequires:	curl-devel
BuildRequires:	openssl-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(x264)
BuildRequires:	sofia-sip-freeswitch-devel
BuildRequires:	pkgconfig(spandsp)
BuildRequires:	pcre-devel
#BuildRequires:	php
BuildRequires:	php-devel
BuildRequires:	gdbm-devel
BuildRequires:	db18-devel
BuildRequires:	swig
BuildRequires:	speex-devel
BuildRequires:	speexdsp-devel
BuildRequires:	sqlite-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpcap)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	yasm
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	libxml2-devel
BuildRequires:	pkgconfig(sndfile)
Requires:	sofia-sip-freeswitch
Requires:	pcre
Requires:	speex
Requires:	unixODBC
# autoinstall some pupular modules
Requires:	freeswitch-application-db
Requires:	freeswitch-application-conference
Requires:	freeswitch-application-curl

Requires(pre):  /bin/systemd-sysusers

#PreReq:       %insserv_prereq %fillup_prereq

#BuildRequires: gumbo-parser-devel

%description
FreeSWITCH is an open source telephony platform designed to facilitate the creation of voice 
and chat driven products scaling from a soft-phone up to a soft-switch.  It can be used as a 
simple switching engine, a media gateway or a media server to host IVR applications using 
simple scripts or XML to control the callflow. 

We support various communication technologies such as SIP, H.323 and GoogleTalk making 
it easy to interface with other open source PBX systems such as sipX, OpenPBX, Bayonne, YATE or Asterisk.

We also support both wide and narrow band codecs making it an ideal solution to bridge legacy 
devices to the future. The voice channels and the conference bridge module all can operate 
at 8, 16 or 32 kilohertz and can bridge channels of different rates.

FreeSWITCH runs on several operating systems including Windows, Max OS X, Linux, BSD and Solaris 
on both 32 and 64 bit platforms.

Our developers are heavily involved in open source and have donated code and other resources to 
other telephony projects including sipXecs, OpenSER, Asterisk, CodeWeaver and OpenPBX.


#-----------------------------------------------------------------------------------
%package devel
Summary:	Development package for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	sofia-sip-freeswitch-devel

%description devel
FreeSWITCH development files

%files devel
%{LIBDIR}/libfreeswitch.so
%{PKGCONFIGDIR}/*
%{INCLUDEDIR}/*.h
%{INCLUDEDIR}/test/*.h

######################################################################################################################
#				FreeSWITCH Application Modules
######################################################################################################################

%package application-abstraction
Summary:	FreeSWITCH mod_abstraction
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-abstraction
Provide an abstraction to FreeSWITCH API calls

%files application-abstraction
%{MODINSTDIR}/mod_abstraction.so*

#-----------------------------------------------------------------------------------

%package application-avmd
Summary:	FreeSWITCH voicemail detector
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-avmd
Provide an voicemail beep detector for FreeSWITCH

%files application-avmd
%{MODINSTDIR}/mod_avmd.so*

#-----------------------------------------------------------------------------------

%package application-blacklist
Summary:	FreeSWITCH blacklist module
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-blacklist
Provide black/white listing of various fields used for routing calls in 
FreeSWITCH

%files application-blacklist
%{MODINSTDIR}/mod_blacklist.so*

#-----------------------------------------------------------------------------------

%package application-callcenter
Summary:	FreeSWITCH mod_callcenter Call Queuing Application
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-callcenter
Provide Automated Call Distribution capabilities for FreeSWITCH

%files application-callcenter
%{MODINSTDIR}/mod_callcenter.so*

#-----------------------------------------------------------------------------------

%package application-cidlookup
Summary:	FreeSWITCH mod_cidlookup 
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-cidlookup
Provide FreeSWITCH access to third party CallerID Name Databases via HTTP

%files application-cidlookup
%{MODINSTDIR}/mod_cidlookup.so*

#-----------------------------------------------------------------------------------

%package application-conference
Summary:	FreeSWITCH mod_conference
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-conference
Provide FreeSWITCH Conference Bridge Services. 

%files application-conference
%{MODINSTDIR}/mod_conference.so*

#-----------------------------------------------------------------------------------

%package application-curl
Summary:	FreeSWITCH mod_curl
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-curl
Provide FreeSWITCH dialplan access to CURL

%files application-curl
%{MODINSTDIR}/mod_curl.so*

#-----------------------------------------------------------------------------------

%package application-db
Summary:	FreeSWITCH mod_db
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-db
mod_db implements an API and dialplan interface to a database backend for 
FreeSWITCH.  The database can either be in sqlite or ODBC.  It also provides 
support for group dialing and provides database backed limit interface. 

%files application-db
%{MODINSTDIR}/mod_db.so*

#-----------------------------------------------------------------------------------

%package application-directory
Summary:	FreeSWITCH mod_directory
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-directory
Provides FreeSWITCH mod_directory, a dial by name directory application.

%files application-directory
%{MODINSTDIR}/mod_directory.so*

#-----------------------------------------------------------------------------------

%package application-distributor
Summary:	FreeSWITCH mod_distributor
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-distributor
Provides FreeSWITCH mod_distributor, a simple round-robin style distribution
to call gateways.

%files application-distributor
%{MODINSTDIR}/mod_distributor.so*

#-----------------------------------------------------------------------------------

%package application-easyroute
Summary:	FreeSWITCH mod_easyroute
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-easyroute
Provides FreeSWITCH mod_easyroute, a simple, easy to use DB Backed DID routing 
Engine. Uses ODBC to connect to the DB of your choice.

%files application-easyroute
%{MODINSTDIR}/mod_easyroute.so*

#-----------------------------------------------------------------------------------

%package application-enum
Summary:	FreeSWITCH mod_enum
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	ldns-devel

%description application-enum
Provides FreeSWITCH mod_enum, a ENUM dialplan, with API and Dialplan extensions 
supporting ENUM lookups.

%files application-enum
%{MODINSTDIR}/mod_enum.so*

#-----------------------------------------------------------------------------------

%package application-esf
Summary:	FreeSWITCH mod_esf
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-esf
Provides FreeSWITCH mod_esf, Extra Sip Functionality such as Multicast Support

%files application-esf
%{MODINSTDIR}/mod_esf.so*

#-----------------------------------------------------------------------------------

%if %{build_mod_esl}
%package application-esl
Summary:	FreeSWITCH mod_esl
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-esl
Provides FreeSWITCH mod_esl, add api commands for remote ESL commands

%files application-esl
%{MODINSTDIR}/mod_esl.so*
%endif

#-----------------------------------------------------------------------------------

%package application-expr
Summary:	FreeSWITCH mod_expr
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-expr
Provides FreeSWITCH mod_expr, implements Brian Allen Vanderburg's ExprEval 
expression evaluation library for FreeSWITCH.

%files application-expr
%{MODINSTDIR}/mod_expr.so*

#-----------------------------------------------------------------------------------

%package application-fifo
Summary:	FreeSWITCH mod_fifo
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-fifo
Provides FreeSWITCH mod_fifo, a parking-like app which allows you to make 
custom call queues

%files application-fifo
%{MODINSTDIR}/mod_fifo.so*

#-----------------------------------------------------------------------------------

%package application-fsk
Summary:	FreeSWITCH mod_fsk
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-fsk
Provides FreeSWITCH mod_fsk, a module to send and receive information via 
Frequency-shift keying

%files application-fsk
%{MODINSTDIR}/mod_fsk.so*

#-----------------------------------------------------------------------------------

%package application-fsv
Summary:	FreeSWITCH mod_fsv
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-fsv
Provides FreeSWITCH mod_fsk, implements functions to record and play back video

%files application-fsv
%{MODINSTDIR}/mod_fsv.so*

#-----------------------------------------------------------------------------------

%package application-hash
Summary:	FreeSWITCH mod_hash
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-hash
Provides FreeSWITCH mod_hash, implements an API and application interface for 
manipulating a hash table. It also provides a limit backend. 

%files application-hash
%{MODINSTDIR}/mod_hash.so*

#-----------------------------------------------------------------------------------

%package application-httapi
Summary:	FreeSWITCH mod_httapi
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-httapi
Provides FreeSWITCH mod_httapi, provides an HTTP based Telephony API using a 
standard FreeSWITCH application interface as well as a cached http file format 
interface

%files application-httapi
%{MODINSTDIR}/mod_httapi.so*

#-----------------------------------------------------------------------------------

%package application-http-cache
Summary:	FreeSWITCH mod_http_cache
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description application-http-cache
Provides FreeSWITCH mod_http_cache, allows one to make a HTTP GET request to 
cache a document. The primary use case is to download and cache audio files 
from a web server. 

%files application-http-cache
%dir %attr(0750, freeswitch, daemon) %{_localstatedir}/cache/freeswitch
%{MODINSTDIR}/mod_http_cache.so*

#-----------------------------------------------------------------------------------

%package application-lcr
Summary:	FreeSWITCH mod_lcr
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-lcr
Provides FreeSWITCH mod_lcr, provide basic Least Cost Routing Services

%files application-lcr
%{MODINSTDIR}/mod_lcr.so*

#-----------------------------------------------------------------------------------

%package application-limit
Summary:	FreeSWITCH mod_limit
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-limit
Provides FreeSWITCH mod_limit, provide application to limit both concurrent and call per time period

%files application-limit
%{MODINSTDIR}/mod_limit.so*


#-----------------------------------------------------------------------------------

%package application-memcache
Summary:	FreeSWITCH mod_memcache
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	libmemcached-devel

%description application-memcache
Provides FreeSWITCH mod_memcache, implements an API interface to memcached which
is a "high-performance, distributed memory object caching system, generic in 
nature, but intended for use in speeding up dynamic web applications by 
alleviating database load." 

%files application-memcache
%{MODINSTDIR}/mod_memcache.so*

#-----------------------------------------------------------------------------------

%package application-mongo
Summary:	FreeSWITCH mod_mongo
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	mongo-c-driver-devel

%description application-mongo
Provides FreeSWITCH mod_mongo, which implements an API interface to mongodb.

%files application-mongo
%{MODINSTDIR}/mod_mongo.so*

#-----------------------------------------------------------------------------------

%package application-nibblebill
Summary:	FreeSWITCH mod_nibblebill
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-nibblebill
Provides FreeSWITCH mod_nibblebill, provides a credit/debit module for 
FreeSWITCH to allow real-time debiting of credit or cash from a database 
while calls are in progress.

%files application-nibblebill
%{MODINSTDIR}/mod_nibblebill.so*

#-----------------------------------------------------------------------------------

%package application-rad_auth
Summary:	FreeSWITCH mod_rad_auth
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-rad_auth
Provides FreeSWITCH mod_rad_auth, authentication via RADIUS protocol from FreeSWITCH dialplan

%files application-rad_auth
%{MODINSTDIR}/mod_rad_auth.so*

#-----------------------------------------------------------------------------------

%package application-redis
Summary:	FreeSWITCH mod_redis
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-redis
Provides FreeSWITCH mod_redis, access to the redis key value pair db system from
FreeSWITCH

%files application-redis
%{MODINSTDIR}/mod_redis.so*

#-----------------------------------------------------------------------------------

%package application-rss
Summary:	FreeSWITCH mod_rss
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-rss
Provides FreeSWITCH mod_rss, edisrse and read an XML based RSS feed, then read
the entries aloud via a TTS engine

%files application-rss
%{MODINSTDIR}/mod_rss.so*

#-----------------------------------------------------------------------------------

%package application-signalwire
Summary:	FreeSWITCH mod_signalwire
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(libks)
BuildRequires:	signalwire-client-c-devel

%description application-signalwire
Provides FreeSWITCH mod_signalwire

%files application-signalwire
%{MODINSTDIR}/mod_signalwire.so*

#-----------------------------------------------------------------------------------

%package application-sms
Summary:	FreeSWITCH mod_sms
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-sms
Provides FreeSWITCH mod_sms, provide a way to route messages in freeswitch, 
potentially allowing one to build a powerful chatting system like in XMPP using 
using SIP SIMPLE on SIP clients

%files application-sms
%{MODINSTDIR}/mod_sms.so*

#-----------------------------------------------------------------------------------

%package application-snapshot
Summary:	FreeSWITCH mod_snapshot
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-snapshot
Provides FreeSWITCH mod_snapshot, allows recording a sliding window of audio 
and taking snapshots to disk. 

%files application-snapshot
%{MODINSTDIR}/mod_snapshot.so*

#-----------------------------------------------------------------------------------

%package application-snom
Summary:	FreeSWITCH mod_snom
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-snom
Provides FreeSWITCH mod_snom, an application for controlling the functionality 
and appearance of the programmable softkeys on Snom phones

%files application-snom
%{MODINSTDIR}/mod_snom.so*

#-----------------------------------------------------------------------------------

%package application-soundtouch
Summary:	FreeSWITCH mod_soundtouch
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	soundtouch-devel >= 1.7.1

%description application-soundtouch
Provides FreeSWITCH mod_soundtouch, uses the soundtouch library, which can do
pitch shifting and other audio effects, so you can pipe the audio of a call
(or any other channel audio) through this module and achieve those effects. You
can specifically adjust pitch, rate, and tempo.

%files application-soundtouch
%{MODINSTDIR}/mod_soundtouch.so*

#-----------------------------------------------------------------------------------

%package application-spy
Summary:	FreeSWITCH mod_spy
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-spy
Provides FreeSWITCH mod_spy, implements userspy application which provides 
persistent eavesdrop on all channels bridged to a certain user

%files application-spy
%{MODINSTDIR}/mod_spy.so*

#-----------------------------------------------------------------------------------

%package application-stress
Summary:	FreeSWITCH mod_stress
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-stress
Provides FreeSWITCH mod_stress. mod_stress attempts to detect stress in a 
person's voice and generates FreeSWITCH events based on that data. 

%files application-stress
%{MODINSTDIR}/mod_stress.so*

#-----------------------------------------------------------------------------------

%package application-translate
Summary:	FreeSWITCH mod_translate
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-translate
Provide an number translation to FreeSWITCH API calls

%files application-translate
%{MODINSTDIR}/mod_translate.so*

#-----------------------------------------------------------------------------------

%package application-valet_parking
Summary:	FreeSWITCH mod_valet_parking
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-valet_parking
Provides FreeSWITCH mod_valet_parking. Provides 'Call Parking' in the switch
as opposed to on the phone and allows for a number of options to handle call
retrieval

%files application-valet_parking
%{MODINSTDIR}/mod_valet_parking.so*

#-----------------------------------------------------------------------------------

%package application-video_filter
Summary:	FreeSWITCH video filter bugs
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-video_filter
Provide a chromakey video filter media bug

%files application-video_filter
%{MODINSTDIR}/mod_video_filter.so*

#-----------------------------------------------------------------------------------

%package application-voicemail
Summary:	FreeSWITCH mod_voicemail
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-voicemail
Provides FreeSWITCH mod_voicemail. Implements Voicemail Application 

%files application-voicemail
%{MODINSTDIR}/mod_voicemail.so*

#-----------------------------------------------------------------------------------

%package application-voicemail-ivr
Summary:	FreeSWITCH mod_voicemail_ivr
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description application-voicemail-ivr
Provides FreeSWITCH mod_voicemail_ivr. Provides a custimizable audio navigation 
system for backend voicemail systems

%files application-voicemail-ivr
%{MODINSTDIR}/mod_voicemail_ivr.so*

######################################################################################################################
#				FreeSWITCH ASR TTS Modules
######################################################################################################################

%package asrtts-flite
Summary:	FreeSWITCH mod_flite
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	flite >= 2.0
BuildRequires:	flite-devel >= 2.0

%description asrtts-flite
Provides FreeSWITCH mod_flite, a interface to the flite text to speech engine

%files asrtts-flite
%{MODINSTDIR}/mod_flite.so*

#-----------------------------------------------------------------------------------

%package asrtts-pocketsphinx
Summary:	FreeSWITCH mod_pocketsphinx
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	bison

%description asrtts-pocketsphinx
Provides FreeSWITCH mod_pocketsphinx, a interface to the OpenSource 
Pocketsphinx speech recognition engine

%files asrtts-pocketsphinx
%{MODINSTDIR}/mod_pocketsphinx.so*

#-----------------------------------------------------------------------------------

%package asrtts-tts-commandline
Summary:	FreeSWITCH mod_tts_commandline
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description asrtts-tts-commandline
Provides FreeSWITCH mod_tts_commandline, Run a command line and play the 
output file.

%files asrtts-tts-commandline
%{MODINSTDIR}/mod_tts_commandline.so*

######################################################################################################################
#				FreeSWITCH Codec Modules
######################################################################################################################

%package codec-passthru-amr
Summary:	Pass-through AMR Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	codec-amr

%description codec-passthru-amr
Pass-through AMR Codec support for FreeSWITCH open source telephony platform

%files codec-passthru-amr
%{MODINSTDIR}/mod_amr.so*

#-----------------------------------------------------------------------------------

%package codec-passthru-amrwb
Summary:	Pass-through AMR WideBand Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	codec-amrwb

%description codec-passthru-amrwb
Pass-through AMR WideBand Codec support for FreeSWITCH open source telephony platform

%files codec-passthru-amrwb
%{MODINSTDIR}/mod_amrwb.so*

#-----------------------------------------------------------------------------------

%package codec-bv
Summary:	BroadVoice16 and BroadVoice32 WideBand Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	broadvoice-devel

%description codec-bv
BroadVoice16 and BroadVoice32 WideBand Codec support for FreeSWITCH open source telephony platform

%files codec-bv
%{MODINSTDIR}/mod_bv.so*

#-----------------------------------------------------------------------------------

%package codec-codec2
Summary:	Codec2 Narrow Band Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	codec2-devel

%description codec-codec2
CODEC2 narrow band codec support for FreeSWITCH open source telephony platform.
CODEC2 was created by the developers of Speex.

%files codec-codec2
%{MODINSTDIR}/mod_codec2.so*

#-----------------------------------------------------------------------------------

%package codec-passthru-g723_1
Summary:	Pass-through g723.1 Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	codec-g723_1

%description codec-passthru-g723_1
Pass-through g723.1 Codec support for FreeSWITCH open source telephony platform

%files codec-passthru-g723_1
%{MODINSTDIR}/mod_g723_1.so*

#-----------------------------------------------------------------------------------

%package codec-passthru-g729
Summary:	Pass-through g729 Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	codec-com-g729

%description codec-passthru-g729
Pass-through g729 Codec support for FreeSWITCH open source telephony platform

%files codec-passthru-g729
%{MODINSTDIR}/mod_g729.so*

#-----------------------------------------------------------------------------------

%package codec-h26x
Summary:	H.263/H.264 Video Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description codec-h26x
H.263/H.264 Video Codec support for FreeSWITCH open source telephony platform

%files codec-h26x
%{MODINSTDIR}/mod_h26x.so*

#-----------------------------------------------------------------------------------

%package codec-ilbc
Summary:	iLCB Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(ilbc)


%description codec-ilbc
iLBC Codec support for FreeSWITCH open source telephony platform

%files codec-ilbc
%{MODINSTDIR}/mod_ilbc.so*

#-----------------------------------------------------------------------------------

%package codec-isac
Summary:	iSAC Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description codec-isac
iSAC Codec support for FreeSWITCH open source telephony platform

%files codec-isac
%{MODINSTDIR}/mod_isac.so*

#-----------------------------------------------------------------------------------

#%%package codec-vpx
#Summary:	vp8 Codec support for FreeSWITCH open source telephony platform
#Group:		System/Libraries
#Requires:	%{name} = %{EVRD}

#%%description codec-vpx
#iSAC Codec support for FreeSWITCH open source telephony platform

#%%files codec-vpx
#%%{MODINSTDIR}/mod_vpx.so*

#-----------------------------------------------------------------------------------

%package codec-mp4v
Summary:	MP4V Video Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description codec-mp4v
MP4V Video Codec support for FreeSWITCH open source telephony platform

%files codec-mp4v
%{MODINSTDIR}/mod_mp4v.so*

#-----------------------------------------------------------------------------------

%package codec-opus
Summary:	Opus Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)
BuildRequires:	opus-devel >= 1.1
BuildRequires:	pkgconfig(libopusenc)

%description codec-opus
OPUS Codec support for FreeSWITCH open source telephony platform

%files codec-opus
%{MODINSTDIR}/mod_opus.so*
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/opus.conf.xml

#-----------------------------------------------------------------------------------

%if %{build_sng_tc}
%package sangoma-codec
Summary:	Sangoma D100 and D500 Codec Card Support
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	sng-tc-linux
BuildRequires:	sng-tc-linux

%description sangoma-codec
Sangoma D100 and D500 Codec Card Support

%files sangoma-codec
%{MODINSTDIR}/mod_sangoma_codec.so*
%endif

#-----------------------------------------------------------------------------------

%package codec-silk
Summary:	Silk Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	libsilk-devel

%description codec-silk
Silk Codec (from Skype) support for FreeSWITCH open source telephony platform

%files codec-silk
%{MODINSTDIR}/mod_silk.so*

#-----------------------------------------------------------------------------------

%package codec-siren
Summary:	Siren Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	g722_1-devel

%description codec-siren
Siren Codec support for FreeSWITCH open source telephony platform. Using 
mod_siren in a commercial product will require you to acquire a patent license
directly from Polycom(R) for your company. 
see http://www.polycom.com/usa/en/company/about_us/technology/siren_g7221/siren_g7221.html 
and http://www.polycom.com/usa/en/company/about_us/technology/siren14_g7221c/siren14_g7221c.html 
At the time of this packaging, Polycom does not charge for licensing.

%files codec-siren
%{MODINSTDIR}/mod_siren.so*

#-----------------------------------------------------------------------------------

%package codec-theora
Summary:	Theora Video Codec support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description codec-theora
Theora Video Codec support for FreeSWITCH open source telephony platform.

%files codec-theora
%{MODINSTDIR}/mod_theora.so*

######################################################################################################################
#				FreeSWITCH Database Modules
######################################################################################################################

%package database-mariadb
Summary:	MariaDB native support for FreeSWITCH
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	mariadb
BuildRequires:	mariadb-connector-c-devel

%description database-mariadb
MariaDB native support for FreeSWITCH.

%files database-mariadb
%{MODINSTDIR}/mod_mariadb.so*

#-----------------------------------------------------------------------------------

%package database-pgsql
Summary:	PostgreSQL native support for FreeSWITCH
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	postgresql-libs
BuildRequires:	postgresql-devel

%description database-pgsql
PostgreSQL native support for FreeSWITCH.

%files database-pgsql
%{MODINSTDIR}/mod_pgsql.so*

######################################################################################################################
#				FreeSWITCH Directory Modules
######################################################################################################################

#%package directory-ldap
#Summary:	LDAP Directory support for FreeSWITCH open source telephony platform
#Group:		System/Libraries
#Requires:	%{name} = %{EVRD}

#%description directory-ldap
#LDAP Directory support for FreeSWITCH open source telephony platform.

#%files directory-ldap
#%{MODINSTDIR}/mod_ldap.so*

######################################################################################################################
#				FreeSWITCH Endpoint Modules
######################################################################################################################

#%package endpoint-gsmopen
#Summary:	Generic GSM endpoint support for FreeSWITCH open source telephony platform
#Group:		System/Libraries
#Requires:	%{name} = %{EVRD}
#
#%description endpoint-gsmopen
#GSMopen is an endpoint (channel driver) that allows an SMS to be sent or 
#received from FreeSWITCH as well as incoming and outgoing GSM voice calls.
#SMS is handled via the standard CHAT API in FreeSWITCH.

#%files endpoint-gsmopen
#%{MODINSTDIR}/mod_gsmopen.so*

#-----------------------------------------------------------------------------------

#%package endpoint-h323
#Summary:	H.323 endpoint support for FreeSWITCH open source telephony platform
#Group:		System/Libraries
#Requires:	%{name} = %{EVRD}
#
#%description endpoint-h323
#H.323 endpoint support for FreeSWITCH open source telephony platform

#%files endpoint-h323
#%{MODINSTDIR}/mod_h323.so*

#-----------------------------------------------------------------------------------

#%package endpoint-khomp
#Summary:	khomp endpoint support for FreeSWITCH open source telephony platform
#Group:		System/Libraries
#Requires:	%{name} = %{EVRD}
#
#%description endpoint-khomp
#Khomp hardware endpoint support for FreeSWITCH open source telephony platform.

#%files endpoint-khomp
#%{MODINSTDIR}/mod_khomp.so*

#-----------------------------------------------------------------------------------

%package endpoint-portaudio
Summary:	PortAudio endpoint support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	alsa-lib
BuildRequires:	pkgconfig(alsa)
BuildRequires:	portaudio-devel

%description endpoint-portaudio
PortAudio endpoint support for FreeSWITCH open source telephony platform.

%files endpoint-portaudio
%{MODINSTDIR}/mod_portaudio.so*

#-----------------------------------------------------------------------------------

%package endpoint-rtmp
Summary:	RTPM Endpoint support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description endpoint-rtmp
RTMP Endpoint support for FreeSWITCH open source telephony platform. Allows FreeSWITCH
to be used from a RTMP client. See http://wiki.freeswitch.org/wiki/Mod_rtmp#Flex_Client
for the OpenSouce FreeSWITCH backed Client.

%files endpoint-rtmp
%{MODINSTDIR}/mod_rtmp.so*

#-----------------------------------------------------------------------------------

%package endpoint-skinny
Summary:	Skinny/SCCP endpoint support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description endpoint-skinny
SCCP/Skinny support for FreeSWITCH open source telephony platform.

%files endpoint-skinny
%{MODINSTDIR}/mod_skinny.so*

#-----------------------------------------------------------------------------------

%package endpoint-verto
Summary:	Verto endpoint support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description endpoint-verto
Verto protocol support for FreeSWITCH open source telephony platform.

%files endpoint-verto
%{MODINSTDIR}/mod_verto.so*

#-----------------------------------------------------------------------------------

%package endpoint-rtc
Summary:	Verto endpoint support for FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description endpoint-rtc
Verto protocol support for FreeSWITCH open source telephony platform.

%files endpoint-rtc
%{MODINSTDIR}/mod_rtc.so*

######################################################################################################################
#				FreeSWITCH Event Handler Modules
######################################################################################################################

%package event-cdr-mongodb
Summary:	MongoDB CDR Logger for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	mongo-c-driver-devel

%description event-cdr-mongodb
MongoDB CDR Logger for FreeSWITCH

%files event-cdr-mongodb
%{MODINSTDIR}/mod_cdr_mongodb.so*

#-----------------------------------------------------------------------------------

%package event-cdr-pg-csv
Summary:	PostgreSQL CDR Logger for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	postgresql-libs
BuildRequires:	postgresql-devel

%description event-cdr-pg-csv
PostgreSQL CDR Logger for FreeSWITCH.

%files event-cdr-pg-csv
%{MODINSTDIR}/mod_cdr_pg_csv.so*

#-----------------------------------------------------------------------------------

%package event-cdr-sqlite
Summary:	SQLite CDR Logger for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	 %{name} = %{EVRD}

%description event-cdr-sqlite
SQLite CDR Logger for FreeSWITCH.

%files event-cdr-sqlite
%{MODINSTDIR}/mod_cdr_sqlite.so*

#-----------------------------------------------------------------------------------

%package event-erlang-event
Summary:	Erlang Event Module for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	 %{name} = %{EVRD}
Requires:	erlang
BuildRequires:	erlang-devel
BuildRequires:	erlang-erl_interface

%description event-erlang-event
Erlang Event Module for FreeSWITCH.

%files event-erlang-event
%{MODINSTDIR}/mod_erlang_event.so*

#-----------------------------------------------------------------------------------

%package event-format-cdr
Summary:	JSON and XML Logger for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description event-format-cdr
JSON and XML Logger for the FreeSWITCH open source telephony platform

%files event-format-cdr
%{MODINSTDIR}/mod_format_cdr.so*

#-----------------------------------------------------------------------------------

%package kazoo
Summary:	Kazoo Module for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	erlang
BuildRequires:	erlang

%description kazoo
Kazoo Module for FreeSWITCH.

%files kazoo
%{MODINSTDIR}/mod_kazoo.so*

#-----------------------------------------------------------------------------------

%package event-multicast
Summary:	Multicast Event System for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description event-multicast
Multicast Event System for FreeSWITCH.

%files event-multicast
%{MODINSTDIR}/mod_event_multicast.so*

#-----------------------------------------------------------------------------------

#%package event-zmq
#Summary:	ZeroMQ Event System for the FreeSWITCH open source telephony platform
#Group:		System/Libraries
#Requires:	 %{name} = %{EVRD}
#
#%description event-zmq
#ZeroMQ Event System for FreeSWITCH.

#%files event-zmq
#%{MODINSTDIR}/mod_xmq.so*

#-----------------------------------------------------------------------------------

%package event-json-cdr
Summary:	JSON CDR Logger for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description event-json-cdr
JSON CDR Logger for FreeSWITCH.

%files event-json-cdr
%{MODINSTDIR}/mod_json_cdr.so*

#-----------------------------------------------------------------------------------

%package event-radius-cdr
Summary:	RADIUS Logger for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description event-radius-cdr
RADIUS Logger for the FreeSWITCH open source telephony platform

%files event-radius-cdr
%{MODINSTDIR}/mod_radius_cdr.so*

#-----------------------------------------------------------------------------------

%if %{build_mod_rayo}
%package event-rayo
Summary:	Rayo (XMPP 3PCC) server for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description event-rayo
Rayo 3PCC for FreeSWITCH.  http://rayo.org   http://xmpp.org/extensions/xep-0327.html
Rayo is an XMPP protocol extension for third-party control of telephone calls.

%files event-rayo 
%{MODINSTDIR}/mod_rayo.so*
%endif

#-----------------------------------------------------------------------------------

%package event-snmp
Summary:	SNMP stats reporter for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	net-snmp
BuildRequires:	net-snmp-devel

%description event-snmp
SNMP stats reporter for the FreeSWITCH open source telephony platform

%files event-snmp
%{MODINSTDIR}/mod_snmp.so*

######################################################################################################################
#				FreeSWITCH Logger Modules
######################################################################################################################

%package logger-graylog2
Summary:	GELF logger for Graylog2 and Logstash
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description logger-graylog2
GELF logger for Graylog2 and Logstash

%files logger-graylog2
%{MODINSTDIR}/mod_graylog2.so*

######################################################################################################################
#				FreeSWITCH Media Format Modules
######################################################################################################################

%package format-local-stream
Summary:	Local File Streamer for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description format-local-stream
Local File Streamer for FreeSWITCH. It streams files from a directory and 
multiple channels connected to the same stream will hear the same (looped) 
file playback .. similar to a shoutcast stream. Useful for Music-on-hold type 
scenarios. 

%files format-local-stream
%{MODINSTDIR}/mod_local_stream.so*

#-----------------------------------------------------------------------------------

%package format-native-file
Summary:	Native Media File support for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description format-native-file
The native file module is designed to make it easy to play sound files where no
transcoding is necessary. The default FreeSWITCH sound files are in wav format.
Generally, these require transcoding when being played to callers. However, if
a native format sound file is available then FreeSWITCH can use it. 

%files format-native-file
%{MODINSTDIR}/mod_native_file.so*

#-----------------------------------------------------------------------------------

%package format-portaudio-stream
Summary:	PortAudio Media Steam support for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
BuildRequires:	portaudio-devel

%description format-portaudio-stream
Portaudio Streaming interface Audio for FreeSWITCH

%files format-portaudio-stream
%{MODINSTDIR}/mod_portaudio_stream.so*

#-----------------------------------------------------------------------------------

%package format-shell-stream
Summary:	Implements Media Steaming from arbitrary shell commands for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description format-shell-stream
Mod shell stream is a FreeSWITCH module to allow you to stream audio from an 
arbitrary shell command. You could use it to read audio from a database, from 
a soundcard, etc. 

%files format-shell-stream
%{MODINSTDIR}/mod_shell_stream.so*

#-----------------------------------------------------------------------------------

%package format-mod-shout
Summary:	Implements Media Steaming from arbitrary shell commands for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	lame
BuildRequires:	libshout-devel >= 2.2.2
BuildRequires:	libmpg123-devel >= 1.20.1
BuildRequires:	lame-devel

%description format-mod-shout
Mod Shout is a FreeSWITCH module to allow you to stream audio from MP3s or a i
shoutcast stream.

%files format-mod-shout
%{MODINSTDIR}/mod_shout.so*

#-----------------------------------------------------------------------------------

%package format-opusfile
Summary:	Plays Opus encoded files
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}
BuildRequires:	opusfile-devel >= 0.5

%description format-opusfile
Mod Opusfile is a FreeSWITCH module to allow you to play Opus encoded files

%files format-opusfile
%{MODINSTDIR}/mod_opusfile.so*

#-----------------------------------------------------------------------------------

%if %{build_mod_ssml}
%package format-ssml
Summary:	Adds Speech Synthesis Markup Language (SSML) parser format for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description format-ssml
mod_ssml is a FreeSWITCH module that renders SSML into audio.  This module requires a text-to-speech module for speech synthesis.

%files format-ssml
%{MODINSTDIR}/mod_ssml.so*
%endif

#-----------------------------------------------------------------------------------

%package format-tone-stream
Summary:	Implements TGML Tone Generation for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description format-tone-stream
Implements TGML Tone Generation for the FreeSWITCH open source telephony platform

%files format-tone-stream
%{MODINSTDIR}/mod_tone_stream.so*

######################################################################################################################
#				FreeSWITCH Programming Language Modules
######################################################################################################################

%package lua
Summary:	Lua support for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)
BuildRequires:  lua-devel

%description	lua

%files lua
%{MODINSTDIR}/mod_lua*.so*
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/lua.conf.xml

#-----------------------------------------------------------------------------------

%package	perl
Summary:	Perl support for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)
Requires:	perl
BuildRequires:	perl-devel
BuildRequires:	perl-ExtUtils-Embed

%description	perl
%{summary}

%files perl
%{MODINSTDIR}/mod_perl*.so*
# XXX TODO: move from /usr/perl to a propper place!
%{_prefix}/perl/*
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/perl.conf.xml

#-----------------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python support for the FreeSWITCH open source telephony platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)
Requires:	python3
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
Provides:	%{name}-python = %{EVRD}

%description -n python3-%{name}

%files -n python3-%{name}
%{MODINSTDIR}/mod_python*.so*
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/python.conf.xml

#-----------------------------------------------------------------------------------

%if %{build_mod_v8}
%package v8
Summary:	JavaScript support for the FreeSWITCH open source telephony platform, using Google V8 JavaScript engine
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description v8

%files v8
%{MODINSTDIR}/mod_v8*.so*
%{LIBDIR}/libv8.so
%{LIBDIR}/libicui18n.so
%{LIBDIR}/libicuuc.so
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/v8.conf.xml
%endif

######################################################################################################################
#				FreeSWITCH Say Modules
######################################################################################################################

%package lang-en
Summary:	Provides english language dependent modules and speech config for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description lang-en
English language phrases module and directory structure for say module and voicemail.

%files lang-en
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/en
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/en/demo
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/en/vm
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/en/dir
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/en/ivr
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/en/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/en/demo/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/en/vm/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/en/dir/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/en/ivr/*.xml
%{MODINSTDIR}/mod_say_en.so*

#-----------------------------------------------------------------------------------

%package lang-ru
Summary:	Provides russian language dependent modules and speech config for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description lang-ru
Russian language phrases module and directory structure for say module and voicemail.

%files lang-ru
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/ru
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/ru/demo
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/ru/vm
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/ru/dir
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/ru/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/ru/demo/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/ru/vm/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/ru/dir/*.xml
%{MODINSTDIR}/mod_say_ru.so*

#-----------------------------------------------------------------------------------

%package lang-fr
Summary:	Provides french language dependend modules and speech config for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description lang-fr
French language phrases module and directory structure for say module and voicemail.

%files lang-fr
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/fr
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/fr/demo
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/fr/vm
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/fr/dir
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/fr/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/fr/demo/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/fr/vm/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/fr/dir/*.xml
%{MODINSTDIR}/mod_say_fr.so*

#-----------------------------------------------------------------------------------

%package lang-de
Summary:	Provides german language dependend modules and speech config for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description lang-de
German language phrases module and directory structure for say module and voicemail.

%files lang-de
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/de
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/de/demo
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/de/vm
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/de/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/de/demo/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/de/vm/*.xml
%{MODINSTDIR}/mod_say_de.so*

#-----------------------------------------------------------------------------------

%package lang-he
Summary:	Provides hebrew language dependend modules and speech config for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description lang-he
Hebrew language phrases module and directory structure for say module and voicemail.

%files lang-he
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/he/
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/he/demo
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/he/vm
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/he/dir
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/he/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/he/demo/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/he/vm/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/he/dir/*.xml
%{MODINSTDIR}/mod_say_he.so*

#-----------------------------------------------------------------------------------

%package lang-es
Summary:	Provides Spanish language dependend modules and speech config for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description lang-es
Spanish language phrases module and directory structure for say module and voicemail.

%files lang-es
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/es
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/es/demo
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/es/vm
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/es/dir
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/es/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/es/demo/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/es/vm/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/es/dir/*.xml
%{MODINSTDIR}/mod_say_es.so*

#-----------------------------------------------------------------------------------

%package lang-pt
Summary:	Provides Portuguese language dependend modules and speech config for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description lang-pt
Portuguese language phrases module and directory structure for say module and voicemail.

%files lang-pt
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/pt
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/pt/demo
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/pt/vm
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/pt/dir
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/pt/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/pt/demo/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/pt/vm/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/pt/dir/*.xml
%{MODINSTDIR}/mod_say_pt.so*

#-----------------------------------------------------------------------------------

%package lang-sv
Summary:	Provides Swedish language dependend modules and speech config for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires(pre):	user(freeswitch)

%description lang-sv
Swedish language phrases module and directory structure for say module and voicemail.

%files lang-sv
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/sv
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang/sv/vm
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/sv/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/lang/sv/vm/*.xml
%{MODINSTDIR}/mod_say_sv.so*

######################################################################################################################
#				FreeSWITCH Timer Modules
######################################################################################################################

%package timer-posix
Summary:	Provides posix timer for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description timer-posix
Provides posix timer for the FreeSWITCH Open Source telephone platform.

%files timer-posix
%{MODINSTDIR}/mod_posix_timer.so*

#-----------------------------------------------------------------------------------

%if %{build_timerfd}
%package timer-timerfd
Summary:	Provides Linux Timerfs based timer for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description timer-timerfd
Provides Linux Timerfs based timer for the FreeSWITCH Open Source telephone.
platform.

%files timer-timerfd
%{MODINSTDIR}/mod_timerfd.so*
%endif

######################################################################################################################
#				FreeSWITCH XML INT Modules
######################################################################################################################

%package xml-cdr
Summary:	Provides XML CDR interface for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description xml-cdr
Provides XML CDR interface for the FreeSWITCH Open Source telephone platform.

%files xml-cdr
%{MODINSTDIR}/mod_xml_cdr.so*

#-----------------------------------------------------------------------------------

%package xml-curl
Summary:	Provides XML Curl interface for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description xml-curl
Provides XML Curl interface for the FreeSWITCH Open Source telephone platform.
Pull dynamic XML configs for FreeSWITCH over HTTP.


%files xml-curl
%{MODINSTDIR}/mod_xml_curl.so*

#-----------------------------------------------------------------------------------

%package xml-rpc
Summary:	Provides XML-RPC interface for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description xml-rpc
Provides XML-RPC interface for the FreeSWITCH Open Source telephone platform.

######################################################################################################################
#			FreeSWITCH ESL language modules
######################################################################################################################

%package -n perl-ESL
Summary:	The Perl ESL module allows for native interaction with FreeSWITCH over the event socket interface
Group:		Development/Perl

%description -n perl-ESL
The Perl ESL module allows for native interaction with FreeSWITCH over the event socket interface.

%files -n perl-ESL
%defattr(644,root,root,755)
%{perl_archlib}/ESL.pm
%{perl_archlib}/ESL.so
%dir %{perl_archlib}/ESL
%{perl_archlib}/ESL/Dispatch.pm
%{perl_archlib}/ESL/IVR.pm

#-----------------------------------------------------------------------------------

%package -n python3-ESL
Summary:	The Python ESL module allows for native interaction with FreeSWITCH over the event socket interface
Group:		Development/Python
Requires:	python3
BuildRequires:	python3-devel
Provides:	python-ESL = %{EVRD}

%description	-n python3-ESL
The Python ESL module allows for native interaction with FreeSWITCH over the event socket interface.

%files -n python3-ESL
%{python3_sitelib}/freeswitch*
%{python3_sitelib}/__pycache__/freeswitch*
%{python3_sitearch}/ESL*
%{python3_sitearch}/_ESL*
%{python3_sitearch}/__pycache__/ESL*

######################################################################################################################
#				FreeSWITCH basic config module
######################################################################################################################

%package config-vanilla
Summary:	Basic vanilla config set for the FreeSWITCH Open Source telephone platform
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	freeswitch-application-abstraction
Requires:	freeswitch-application-avmd
Requires:	freeswitch-application-blacklist
Requires:	freeswitch-application-callcenter
Requires:	freeswitch-application-cidlookup
Requires:	freeswitch-application-conference
Requires:	freeswitch-application-curl
Requires:	freeswitch-application-db
Requires:	freeswitch-application-directory
Requires:	freeswitch-application-distributor
Requires:	freeswitch-application-easyroute
Requires:	freeswitch-application-enum
Requires:	freeswitch-application-esf
Requires:	freeswitch-application-expr
Requires:	freeswitch-application-fifo
Requires:	freeswitch-application-fsk
Requires:	freeswitch-application-fsv
Requires:	freeswitch-application-hash
Requires:	freeswitch-application-httapi
Requires:	freeswitch-application-http-cache
Requires:	freeswitch-application-lcr
Requires:	freeswitch-application-limit
Requires:	freeswitch-application-memcache
Requires:	freeswitch-application-nibblebill
Requires:	freeswitch-application-redis
Requires:	freeswitch-application-rss
Requires:	freeswitch-application-signalwire
Requires:	freeswitch-application-sms
Requires:	freeswitch-application-snapshot
Requires:	freeswitch-application-snom
Requires:	freeswitch-application-soundtouch
Requires:	freeswitch-application-spy
Requires:	freeswitch-application-stress
Requires:	freeswitch-application-valet_parking
Requires:	freeswitch-application-video_filter
Requires:	freeswitch-application-voicemail
Requires:	freeswitch-application-voicemail-ivr
Requires:	freeswitch-codec-passthru-amr
Requires:	freeswitch-codec-bv
Requires:	freeswitch-codec-passthru-g723_1
Requires:	freeswitch-codec-passthru-g729
Requires:	freeswitch-codec-h26x
Requires:	freeswitch-codec-ilbc
Requires:	freeswitch-codec-siren
Requires:	freeswitch-database-pgsql
Requires:	freeswitch-format-local-stream
Requires:	freeswitch-format-native-file
Requires:	freeswitch-format-portaudio-stream
Requires:	freeswitch-format-tone-stream
Requires:	freeswitch-lang-en

%description config-vanilla
Basic vanilla config set for the FreeSWITCH Open Source telephone platform.

#-----------------------------------------------------------------------------------

%prep
%setup -b0 -q -n %{name}-%{nonparsedversion}
# hack to avoid unpacking tarballs - we unpack them to patch before building
sed -i'' -e 's,GETLIB=@GETLIB@,GETLIB=/bin/true,' build/modmake.rules.in
tar -xf %{SOURCE1} -C libs
tar -xf %{SOURCE2} -C libs
tar -xf %{SOURCE3} -C libs
tar -xf %{SOURCE4} -C libs
cp %{SOURCE2} libs
%autopatch -p1

#Hotfix for redefined %_sysconfdir
sed -ie 's:confdir="${sysconfdir}/freeswitch":confdir="%{SYSCONFDIR}":' ./configure.ac

# build fail __DARWIN_NSIG undeclared
# https://github.com/signalwire/freeswitch/issues/1519
sed -i 's/#define NSIG __DARWIN_NSIG//' libs/apr/include/fspr_general.h

%build
%setup_compile_flags
#export CFLAGS="$CFLAGS -fstack-protector"
export QA_RPATHS=$[ 0x0001|0x0002 ]

######################################################################################################################
#
#				Here the modules that will be build get defined
#
######################################################################################################################
######################################################################################################################
#
#						Application Modules
#
######################################################################################################################
APPLICATION_MODULES_AC="applications/mod_abstraction applications/mod_avmd applications/mod_blacklist \
			applications/mod_callcenter  applications/mod_cidlookup \
			applications/mod_commands applications/mod_conference applications/mod_curl"
APPLICATION_MODULES_DE="applications/mod_db applications/mod_directory applications/mod_distributor \
			applications/mod_dptools applications/mod_easyroute applications/mod_enum applications/mod_esf \
			applications/mod_expr "

%if %{build_mod_esl}
APPLICATION_MODULES_DE+="applications/mod_esl"
%endif

APPLICATION_MODULES_FR="applications/mod_fifo applications/mod_fsk applications/mod_fsv applications/mod_hash \
			applications/mod_httapi applications/mod_http_cache applications/mod_lcr applications/mod_limit \
			applications/mod_memcache applications/mod_mongo applications/mod_nibblebill applications/mod_rad_auth \
			applications/mod_redis applications/mod_rss "

APPLICATION_MODULES_SZ="applications/mod_signalwire applications/mod_sms applications/mod_snapshot applications/mod_snom applications/mod_soundtouch \
			applications/mod_spandsp applications/mod_spy applications/mod_stress \
			applications/mod_valet_parking applications/mod_translate applications/mod_voicemail \
			applications/mod_voicemail_ivr applications/mod_video_filter"

APPLICATIONS_MODULES="$APPLICATION_MODULES_AC $APPLICATION_MODULES_DE $APPLICATION_MODULES_FR $APPLICATION_MODULES_SZ"

######################################################################################################################
#
#				Automatic Speech Recognition and Text To Speech Modules
#
######################################################################################################################
ASR_TTS_MODULES="asr_tts/mod_flite asr_tts/mod_pocketsphinx asr_tts/mod_tts_commandline"

######################################################################################################################
#
#						Codecs
#
######################################################################################################################
CODECS_MODULES="codecs/mod_amr codecs/mod_amrwb codecs/mod_bv codecs/mod_codec2 codecs/mod_g723_1 \
		codecs/mod_g729 codecs/mod_h26x codecs/mod_ilbc codecs/mod_isac codecs/mod_mp4v codecs/mod_opus codecs/mod_silk \
		codecs/mod_siren codecs/mod_theora"
#
%if %{build_sng_tc}
CODECS_MODULES+="codecs/mod_sangoma_codec"
%endif

######################################################################################################################
#
#					Database Modules
#
######################################################################################################################
DATABASES_MODULES="databases/mod_mariadb databases/mod_pgsql"

######################################################################################################################
#
#					Dialplan Modules
#
######################################################################################################################
DIALPLANS_MODULES="dialplans/mod_dialplan_directory dialplans/mod_dialplan_xml"
#DISABLED DIALPLANS dialplans/mod_dialplan_asterisk 
######################################################################################################################
#
#					Directory Modules
#
######################################################################################################################
DIRECTORIES_MODULES=""

######################################################################################################################
#
#						Endpoints
#
######################################################################################################################
ENDPOINTS_MODULES="endpoints/mod_loopback endpoints/mod_portaudio endpoints/mod_rtmp \
			endpoints/mod_skinny endpoints/mod_verto endpoints/mod_rtc endpoints/mod_sofia"

## DISABLED MODULES DUE TO BUILD ISSUES endpoints/mod_gsmopen endpoints/mod_h323 endpoints/mod_khomp 
 
######################################################################################################################
#
#						Event Handlers
#
######################################################################################################################
EVENT_HANDLERS_MODULES="event_handlers/mod_cdr_csv event_handlers/mod_cdr_pg_csv event_handlers/mod_cdr_sqlite \
			event_handlers/mod_cdr_mongodb event_handlers/mod_format_cdr event_handlers/mod_erlang_event event_handlers/mod_event_multicast \
			event_handlers/mod_event_socket event_handlers/mod_json_cdr event_handlers/mod_kazoo event_handlers/mod_radius_cdr \
			event_handlers/mod_snmp"
%if %{build_mod_rayo}
EVENT_HANDLERS_MODULES+=" event_handlers/mod_rayo"
%endif

#### BUILD ISSUES NET RESOLVED FOR RELEASE event_handlers/mod_event_zmq 
######################################################################################################################
#
#					File and Audio Format Handlers
#
######################################################################################################################
FORMATS_MODULES="formats/mod_local_stream formats/mod_native_file formats/mod_opusfile formats/mod_portaudio_stream \
                 formats/mod_shell_stream formats/mod_shout formats/mod_sndfile formats/mod_tone_stream"
%if %{build_mod_ssml}
FORMATS_MODULES+=" formats/mod_ssml"
%endif

######################################################################################################################
#
#						Embedded Languages
#
######################################################################################################################
LANGUAGES_MODULES="languages/mod_lua languages/mod_perl languages/mod_python3 "
%if %{build_mod_v8}
LANGUAGES_MODULES+="languages/mod_v8"
%endif

######################################################################################################################
#
#						Logging Modules
#
######################################################################################################################
LOGGERS_MODULES="loggers/mod_console loggers/mod_graylog2 loggers/mod_logfile loggers/mod_syslog"

######################################################################################################################
#
#						Phrase engine language modules
#
######################################################################################################################
SAY_MODULES="say/mod_say_de say/mod_say_en say/mod_say_es say/mod_say_pt say/mod_say_fr say/mod_say_he say/mod_say_ru say/mod_say_sv"

######################################################################################################################
#
#							Timers
#
######################################################################################################################
TIMERS_MODULES="timers/mod_posix_timer "
%if %{build_timerfd}
TIMERS_MODULES+="timers/mod_timerfd"
%endif

######################################################################################################################
#
#						XML Modules
#
######################################################################################################################
XML_INT_MODULES="xml_int/mod_xml_cdr xml_int/mod_xml_curl xml_int/mod_xml_rpc"

######################################################################################################################
#
#				Create one environment variable out of all the module defs
#
######################################################################################################################
MYMODULES="$APPLICATIONS_MODULES $CODECS_MODULES $DATABASES_MODULES $DIALPLANS_MODULES $DIRECTORIES_MODULES \
$ENDPOINTS_MODULES $ASR_TTS_MODULES $EVENT_HANDLERS_MODULES $FORMATS_MODULES $LANGUAGES_MODULES $LOGGERS_MODULES \
$SAY_MODULES $TIMERS_MODULES $XML_INT_MODULES"

######################################################################################################################
#
#					Create Modules build list and set variables
#
######################################################################################################################

export MODULES=$MYMODULES
test ! -f  modules.conf || rm -f modules.conf
touch modules.conf
for i in $MODULES; do echo $i >> modules.conf; done
export VERBOSE=yes
export DESTDIR=%{buildroot}/
export PKG_CONFIG_PATH=/usr/bin/pkg-config:$PKG_CONFIG_PATH
export ACLOCAL_FLAGS="-I /usr/share/aclocal"
export CFLAGS="$CFLAGS -Wno-error"
#export CFLAGS="-Wno-error"

######################################################################################################################
#
#				Bootstrap, Configure and Build the whole enchilada
#
######################################################################################################################

# tests are not buildable
sed -i'' -e '/test/d' libs/sphinxbase-*/Makefile.am
sed -i'' -e '/test\//d' libs/sphinxbase-*/configure.in

./rebootstrap.sh

( cd libs/pocketsphinx-* && ln -sf configure.ac configure.in && NOCONFIGURE=1 ./autogen.sh )
( cd libs/sphinxbase-* && ln -sf configure.ac configure.in && NOCONFIGURE=1 ./autogen.sh )
( cd libs/freeradius-client-* && autoreconf -if )

./configure -C \
--prefix=%{PREFIX} \
--exec-prefix=%{EXECPREFIX} \
--sysconfdir=%{SYSCONFDIR} \
--bindir=%{BINDIR} \
--sbindir=%{SBINDIR} \
--libexecdir=%{LIBEXECDIR} \
--sharedstatedir=%{SHARESTATEDIR} \
--localstatedir=%{_localstatedir} \
--libdir=%{LIBDIR} \
--includedir=%{INCLUDEDIR} \
--datadir=%{DATADIR} \
--infodir=%{INFODIR} \
--mandir=%{MANDIR} \
--with-logfiledir=%{LOGFILEDIR} \
--with-modinstdir=%{MODINSTDIR} \
--with-rundir=%{RUNDIR} \
--with-dbdir=%{DBDIR} \
--with-htdocsdir=%{HTDOCSDIR} \
--with-soundsdir=%{SOUNDSDIR} \
--enable-core-odbc-support \
--enable-core-libedit-support \
--with-grammardir=%{GRAMMARDIR} \
--with-scriptdir=%{SCRIPTDIR} \
--with-recordingsdir=%{RECORDINGSDIR} \
--with-pkgconfigdir=%{PKGCONFIGDIR} \
--with-odbc \
--with-erlang \
--with-openssl \
--enable-systemd \
--enable-zrtp

unset MODULES
make

cd libs/esl
make py3mod
make perlmod


######################################################################################################################
#
#				Install it and create some required dirs and links
#
######################################################################################################################
%install

make DESTDIR=%{buildroot} install

# Create a log dir
%{__mkdir} -p %{buildroot}%{_prefix}/log
%{__mkdir} -p %{buildroot}%{LOGFILEDIR}
%{__mkdir} -p %{buildroot}%{RUNDIR}
%{__mkdir} -p %{buildroot}%{_localstatedir}/cache/freeswitch

#install the esl stuff
cd libs/esl
%{__make} DESTDIR=%{buildroot} py3mod-install
%{__make} DESTDIR=%{buildroot} perlmod-install

cd ../..

# systemd
%{__install} -Dpm 0644 %{SOURCE10} %{buildroot}%{_unitdir}/freeswitch.service
%{__install} -Dpm 0644 build/freeswitch-tmpfiles.conf %{buildroot}%{_tmpfilesdir}/freeswitch.conf
# Add the sysconfiguration file
%{__install} -D -m 744 build/freeswitch.sysconfig %{buildroot}/etc/sysconfig/freeswitch
# Add monit file
%{__install} -D -m 644 build/freeswitch.monitrc %{buildroot}/etc/monit.d/freeswitch.monitrc
# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE20} %{buildroot}%{_sysusersdir}/freeswitch.conf
######################################################################################################################
#
#                               Remove files that are not wanted if they exist
#
######################################################################################################################

%if %{build_sng_ss7}
#do not delete a thing
%else
%{__rm} -f %{buildroot}/%{MODINSTDIR}/ftmod_sangoma_ss7*
%endif
%if %{build_sng_isdn}
#do not delete a thing
%else
%{__rm} -f %{buildroot}/%{MODINSTDIR}/ftmod_sangoma_isdn*
%endif

%if %{build_mod_v8}
#do not delete a thing
%else
%{__rm} -f %{buildroot}/%{SYSCONFDIR}/autoload_configs/v8.conf.xml
%endif


%pre
######################################################################################################################
#
#			Add a freeswitch user with group daemon that will own the whole enchilada
#
######################################################################################################################
%sysusers_create_package freeswitch %{SOURCE20}

%post
%tmpfiles_create freeswitch.conf
%systemd_post freeswitch.service

%preun
%systemd_preun freeswitch.service

%files
######################################################################################################################
#
#			What to install where ... first set default permissions
#
######################################################################################################################
%defattr(-,root,root)

######################################################################################################################
#
#							Directories
#
######################################################################################################################
#
#################################### Basic Directory Structure #######################################################
#
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}
%dir %attr(0750, freeswitch, daemon) %{LOCALSTATEDIR}
%dir %attr(0750, freeswitch, daemon) %{LOCALSTATEDIR}/images
%dir %attr(0750, freeswitch, daemon) %{DBDIR}
%dir %attr(0755, -, -) %{GRAMMARDIR}
%dir %attr(0755, -, -) %{HTDOCSDIR}
%dir %attr(0750, freeswitch, daemon) %{LOGFILEDIR}
%dir %attr(0750, freeswitch, daemon) %{RUNDIR}
%dir %attr(0755, -, -) %{SCRIPTDIR}
#
#################################### Config Directory Structure #######################################################
#
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/dialplan
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/dialplan/default
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/dialplan/public
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/dialplan/skinny-patterns
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/directory
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/directory/default
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/lang
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/sip_profiles
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/sip_profiles/external
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/sip_profiles/external-ipv6
%dir %attr(0750, freeswitch, daemon) %{SYSCONFDIR}/skinny_profiles
#
#################################### Grammar Directory Structure #####################################################
#
%dir %attr(0755, -, -) %{GRAMMARDIR}/model
%dir %attr(0755, -, -) %{GRAMMARDIR}/model/communicator

######################################################################################################################
#
#						Other Files
#
######################################################################################################################
%config(noreplace) %attr(0644,-,-) %{HTDOCSDIR}/*
%{_unitdir}/freeswitch.service
%{_tmpfilesdir}/freeswitch.conf
%config(noreplace) /etc/sysconfig/freeswitch
%dir %attr(0750,-,-) /etc/monit.d
%config(noreplace) %attr(0644,-,-) /etc/monit.d/freeswitch.monitrc
%{LOCALSTATEDIR}/images/*
%{_sysusersdir}/freeswitch.conf

######################################################################################################################
#
#						Binaries
#
######################################################################################################################
%attr(0755,-,-) %{_bindir}/*
%{LIBDIR}/libfreeswitch*.so.*
######################################################################################################################
#
#			Modules in Alphabetical Order, please keep them that way..
#
######################################################################################################################
%{MODINSTDIR}/mod_cdr_csv.so*
%{MODINSTDIR}/mod_console.so*
%{MODINSTDIR}/mod_commands.so*
%{MODINSTDIR}/mod_dialplan_directory.so* 
%{MODINSTDIR}/mod_dialplan_xml.so* 
%{MODINSTDIR}/mod_dptools.so*
%{MODINSTDIR}/mod_event_socket.so*
%{MODINSTDIR}/mod_logfile.so*
%{MODINSTDIR}/mod_loopback.so*
%{MODINSTDIR}/mod_native_file.so*
%{MODINSTDIR}/mod_sndfile.so*
%{MODINSTDIR}/mod_sofia.so*
%{MODINSTDIR}/mod_spandsp.so*
%{MODINSTDIR}/mod_syslog.so*
%{MODINSTDIR}/mod_tone_stream.so*
%{MODINSTDIR}/mod_xml_rpc.so* 


######################################################################################################################
#						Vanilla Config Files
######################################################################################################################
%files config-vanilla
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/*.tpl
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/*.ttml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/extensions.conf
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/mime.types
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/abstraction.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/acl.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/amr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/amrwb.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/alsa.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/amqp.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/av.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/avmd.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/blacklist.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/callcenter.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/cdr_csv.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/cdr_mongodb.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/cdr_pg_csv.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/cdr_sqlite.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/cepstral.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/cidlookup.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/conference.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/conference_layouts.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/console.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/curl.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/db.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/dialplan_directory.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/directory.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/distributor.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/easyroute.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/enum.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/erlang_event.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/event_multicast.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/event_socket.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/fax.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/fifo.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/format_cdr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/graylog2.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/hash.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/hiredis.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/httapi.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/http_cache.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/ivr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/java.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/kazoo.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/lcr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/local_stream.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/logfile.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/memcache.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/modules.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/mongo.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/msrp.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/nibblebill.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/opal.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/oreka.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/osp.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/pocketsphinx.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/portaudio.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/post_load_modules.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/pre_load_modules.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/presence_map.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/redis.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/rss.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/rtmp.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/sangoma_codec.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/shout.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/signalwire.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/skinny.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/smpp.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/sms_flowroute.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/sndfile.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/sofia.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/spandsp.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/switch.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/syslog.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/timezones.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/translate.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/tts_commandline.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/unicall.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/verto.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/voicemail.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/voicemail_ivr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/vpx.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/xml_cdr.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/xml_curl.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/xml_rpc.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/xml_scgi.conf.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/autoload_configs/zeroconf.conf.xml
######################################################################################################################
#						Chatplans
######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/chatplan/default.xml
######################################################################################################################
#						Dialplans
######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/dialplan/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/dialplan/default/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/dialplan/public/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/dialplan/skinny-patterns/*.xml
######################################################################################################################
#						Fonts
######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{_datadir}/freeswitch/fonts/*.ttf
%config(noreplace) %attr(0640, freeswitch, daemon) %{_datadir}/freeswitch/fonts/OFL.txt
%config(noreplace) %attr(0640, freeswitch, daemon) %{_datadir}/freeswitch/fonts/README.fonts
######################################################################################################################
#						User Directories
######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/directory/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/directory/default/*
######################################################################################################################
#							IVR Menus
######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/ivr_menus/*.xml
######################################################################################################################
#							Sip Profiles
######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/sip_profiles/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/sip_profiles/external/*.xml
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/sip_profiles/external-ipv6/*.xml
######################################################################################################################
#				Other Protocol Profiles (skinny)
######################################################################################################################
%config(noreplace) %attr(0640, freeswitch, daemon) %{SYSCONFDIR}/skinny_profiles/*.xml
######################################################################################################################
#						Grammar Files
######################################################################################################################
%config(noreplace) %attr(0644, -, -) %{GRAMMARDIR}/default.dic
%config(noreplace) %attr(0644, -, -) %{GRAMMARDIR}/model/communicator/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1647 |21cr|freeswitch-sounds-en-ca-june-1.0.51-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define SOUNDSDIR       %{_datarootdir}/freeswitch/sounds

Summary:	FreeSWITCH en-ca June prompts
Name:		freeswitch-sounds-en-ca-june
Version:	1.0.51
Release:	3
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
Source1:	http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
Source2:	http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
Source3:	http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch
BuildRequires:	sox

%description
FreeSWITCH 48kHz en-ca June prompts plus, during the installation,
it will also install locally generated 8KHz, 16KHz and 32KHz prompts

#-------------------------------------------------------------------
%package -n freeswitch-sounds-en-ca-june-8000
Summary:	FreeSWITCH 8kHz en-ca June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-ca-june-8000
FreeSWITCH 8kHz en-ca June prompts

%files -n freeswitch-sounds-en-ca-june-8000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/ca/june/*/8000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-ca-june-16000
Summary:	FreeSWITCH 16kHz en-ca June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-ca-june-16000
FreeSWITCH 16kHz en-ca June prompts

%files -n freeswitch-sounds-en-ca-june-16000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/ca/june/*/16000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-ca-june-32000
Summary:	FreeSWITCH 32kHz en-ca June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-ca-june-32000
FreeSWITCH 32kHz en-ca June prompts

%files -n freeswitch-sounds-en-ca-june-32000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/ca/june/*/32000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-ca-june-48000
Summary:	FreeSWITCH 48kHz en-ca June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Provides:	%{name} = %{EVRD}

%description -n freeswitch-sounds-en-ca-june-48000
FreeSWITCH 48kHz en-ca June prompts

%files -n freeswitch-sounds-en-ca-june-48000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/ca/june/*/48000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-ca-june-all
Summary:	FreeSWITCH en-ca June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Requires:	freeswitch-sounds-en-ca-june-8000 = %{version}
Requires:	freeswitch-sounds-en-ca-june-16000 = %{version}
Requires:	freeswitch-sounds-en-ca-june-32000 = %{version}
Requires:	freeswitch-sounds-en-ca-june-48000 = %{version}

%description -n freeswitch-sounds-en-ca-june-all
FreeSWITCH June prompts package that pulls in the 8KHz, 16KHz, 32KHz and 48KHz RPMs

%files -n freeswitch-sounds-en-ca-june-all
#-------------------------------------------------------------------

%prep
%setup -n en
%setup -T -D -b 0 -n en
%setup -T -D -b 1 -n en
%setup -T -D -b 2 -n en
%setup -T -D -b 3 -n en

%build
# nothing to do here

%install

# create the sounds directories
install -d -m 0750 %{buildroot}%{SOUNDSDIR}/en/ca/june

pushd ca/june
# first install the 48KHz sounds
cp -prv ./* %{buildroot}%{SOUNDSDIR}/en/ca/june
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1648 |21cr|freeswitch-sounds-en-us-allison-1.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define SOUNDSDIR       %{_datarootdir}/freeswitch/sounds

Summary:	FreeSWITCH en-us Allison prompts
Name:		freeswitch-sounds-en-us-allison
Version:	1.0.1
Release:	2
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
Source1:	http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
Source2:	http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
Source3:	http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch
BuildRequires:	sox

%description
FreeSWITCH 48kHz en-us Allison prompts plus, during the installation,
it will also install locally generated 8KHz, 16KHz and 32KHz prompts

#-------------------------------------------------------------------
%package -n freeswitch-sounds-en-us-allison-8000
Summary:	FreeSWITCH 8kHz en-us Allison prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-us-allison-8000
FreeSWITCH 8kHz en-us Allison prompts

%files -n freeswitch-sounds-en-us-allison-8000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/*/8000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-us-allison-16000
Summary:	FreeSWITCH 16kHz en-us Allison prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-us-allison-16000
FreeSWITCH 16kHz en-us Allison prompts

%files -n freeswitch-sounds-en-us-allison-16000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/*/16000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-us-allison-32000
Summary:	FreeSWITCH 32kHz en-us Allison prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-us-allison-32000
FreeSWITCH 32kHz en-us Allison prompts

%files -n freeswitch-sounds-en-us-allison-32000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/*/32000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-us-allison-48000
Summary:	FreeSWITCH 48kHz en-us Allison prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Provides:	%{name} = %{EVRD}

%description -n freeswitch-sounds-en-us-allison-48000
FreeSWITCH 48kHz en-us Allison prompts

%files -n freeswitch-sounds-en-us-allison-48000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/allison/*/48000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-us-allison-all
Summary:	FreeSWITCH en-us Allison prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Requires:	freeswitch-sounds-en-us-allison-8000 = %{version}
Requires:	freeswitch-sounds-en-us-allison-16000 = %{version}
Requires:	freeswitch-sounds-en-us-allison-32000 = %{version}
Requires:	freeswitch-sounds-en-us-allison-48000 = %{version}

%description -n freeswitch-sounds-en-us-allison-all
FreeSWITCH Allison prompts package that pulls in the 8KHz, 16KHz, 32KHz and 48KHz RPMs

%files -n freeswitch-sounds-en-us-allison-all
#-------------------------------------------------------------------

%prep
%setup -n en
%setup -T -D -b 0 -n en
%setup -T -D -b 1 -n en
%setup -T -D -b 2 -n en
%setup -T -D -b 3 -n en

%build
# nothing to do here

%install

# create the sounds directories
install -d -m 0750 %{buildroot}%{SOUNDSDIR}/en/us/allison

pushd us/allison
# first install the 48KHz sounds
cp -prv ./* %{buildroot}%{SOUNDSDIR}/en/us/allison
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1649 |21cr|freeswitch-sounds-en-us-callie-1.0.52-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define SOUNDSDIR       %{_datarootdir}/freeswitch/sounds

Summary:	FreeSWITCH en-us Callie prompts
Name:		freeswitch-sounds-en-us-callie
Version:	1.0.52
Release:	2
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
Source1:	http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
Source2:	http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
Source3:	http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch
BuildRequires:	sox

%description
FreeSWITCH 48kHz en-us Callie prompts plus, during the installation,
it will also install locally generated 8KHz, 16KHz and 32KHz prompts

#-------------------------------------------------------------------
%package -n freeswitch-sounds-en-us-callie-8000
Summary:	FreeSWITCH 8kHz en-us Callie prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-us-callie-8000
FreeSWITCH 8kHz en-us Callie prompts

%files -n freeswitch-sounds-en-us-callie-8000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/callie/*/8000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-us-callie-16000
Summary:	FreeSWITCH 16kHz en-us Callie prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-us-callie-16000
FreeSWITCH 16kHz en-us Callie prompts

%files -n freeswitch-sounds-en-us-callie-16000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/callie/*/16000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-us-callie-32000
Summary:	FreeSWITCH 32kHz en-us Callie prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-en-us-callie-32000
FreeSWITCH 32kHz en-us Callie prompts

%files -n freeswitch-sounds-en-us-callie-32000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/callie/*/32000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-us-callie-48000
Summary:	FreeSWITCH 48kHz en-us Callie prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Provides:	%{name} = %{EVRD}

%description -n freeswitch-sounds-en-us-callie-48000
FreeSWITCH 48kHz en-us Callie prompts

%files -n freeswitch-sounds-en-us-callie-48000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/en/us/callie/*/48000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-en-us-callie-all
Summary:	FreeSWITCH en-us Callie prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Requires:	freeswitch-sounds-en-us-callie-8000 = %{version}
Requires:	freeswitch-sounds-en-us-callie-16000 = %{version}
Requires:	freeswitch-sounds-en-us-callie-32000 = %{version}
Requires:	freeswitch-sounds-en-us-callie-48000 = %{version}

%description -n freeswitch-sounds-en-us-callie-all
FreeSWITCH Callie prompts package that pulls in the 8KHz, 16KHz, 32KHz and 48KHz RPMs

%files -n freeswitch-sounds-en-us-callie-all
#-------------------------------------------------------------------

%prep
%setup -n en
%setup -T -D -b 0 -n en
%setup -T -D -b 1 -n en
%setup -T -D -b 2 -n en
%setup -T -D -b 3 -n en

%build
# nothing to do here

%install

# create the sounds directories
install -d -m 0750 %{buildroot}%{SOUNDSDIR}/en/us/callie

pushd us/callie
# first install the 48KHz sounds
cp -prv ./* %{buildroot}%{SOUNDSDIR}/en/us/callie
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1650 |21cr|freeswitch-sounds-fr-ca-june-1.0.51-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define SOUNDSDIR       %{_datarootdir}/freeswitch/sounds

Summary:	FreeSWITCH fr-CA June prompts
Name:		freeswitch-sounds-fr-ca-june
Version:	1.0.51
Release:	1
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
Source1:	http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
Source2:	http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
Source3:	http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch
BuildRequires:	sox

%description
FreeSWITCH 48kHz fr CA June prompts plus, during the installation,
it will also install locally generated 8KHz, 16KHz and 32KHz prompts

#-------------------------------------------------------------------
%package -n freeswitch-sounds-fr-ca-june-8000
Summary:	FreeSWITCH 8kHz fr CA June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-fr-ca-june-8000
FreeSWITCH 8kHz fr CA June prompts

%files -n freeswitch-sounds-fr-ca-june-8000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/fr/ca/june/*/8000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-fr-ca-june-16000
Summary:	FreeSWITCH 16kHz fr CA June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-fr-ca-june-16000
FreeSWITCH 16kHz fr CA June prompts

%files -n freeswitch-sounds-fr-ca-june-16000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/fr/ca/june/*/16000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-fr-ca-june-32000
Summary:	FreeSWITCH 32kHz fr CA June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-fr-ca-june-32000
FreeSWITCH 32kHz fr CA June prompts

%files -n freeswitch-sounds-fr-ca-june-32000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/fr/ca/june/*/32000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-fr-ca-june-48000
Summary:	FreeSWITCH 48kHz fr CA June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Provides:	%{name} = %{EVRD}

%description -n freeswitch-sounds-fr-ca-june-48000
FreeSWITCH 48kHz fr CA June prompts

%files -n freeswitch-sounds-fr-ca-june-48000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/fr/ca/june/*/48000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-fr-ca-june-all
Summary:	FreeSWITCH fr CA June prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Requires:	freeswitch-sounds-fr-ca-june-8000 = %{version}
Requires:	freeswitch-sounds-fr-ca-june-16000 = %{version}
Requires:	freeswitch-sounds-fr-ca-june-32000 = %{version}
Requires:	freeswitch-sounds-fr-ca-june-48000 = %{version}

%description -n freeswitch-sounds-fr-ca-june-all
FreeSWITCH June prompts package that pulls in the 8KHz, 16KHz, 32KHz and 48KHz RPMs

%files -n freeswitch-sounds-fr-ca-june-all
#-------------------------------------------------------------------

%prep
%setup -n fr
%setup -T -D -b 0 -n fr
%setup -T -D -b 1 -n fr
%setup -T -D -b 2 -n fr
%setup -T -D -b 3 -n fr

%build
# nothing to do here

%install

# create the sounds directories
install -d -m 0750 %{buildroot}%{SOUNDSDIR}/fr/ca/june

pushd ca/june
# first install the 48KHz sounds
cp -prv ./* %{buildroot}%{SOUNDSDIR}/fr/ca/june
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1651 |21cr|freeswitch-sounds-music-1.0.52-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define SOUNDSDIR       %{_datarootdir}/freeswitch/sounds

Summary:	FreeSWITCH Music on Hold soundfiles
Name:		freeswitch-sounds-music
Version:	1.0.52
Release:	1
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
Source1:	http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
Source2:	http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
Source3:	http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch

%description
FreeSWITCH Music On Hold soundfiles package that installs the 8KHz, 16KHz,
32KHz and 48KHz RPMs

#-------------------------------------------------------------------
%package -n freeswitch-sounds-music-8000
Summary:	FreeSWITCH 8kHz Music On Hold soundfiles
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-music-8000
FreeSWITCH 8kHz Music On Hold soundfiles

%files -n freeswitch-sounds-music-8000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/music/8000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-music-16000
Summary:	FreeSWITCH 16kHz Music On Hold soundfiles
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-music-16000
FreeSWITCH 16kHz Music On Hold soundfiles

%files -n freeswitch-sounds-music-16000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/music/16000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-music-32000
Summary:	FreeSWITCH 32kHz Music On Hold soundfiles
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-music-32000
FreeSWITCH 32kHz Music On Hold soundfiles

%files -n freeswitch-sounds-music-32000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/music/32000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-music-48000
Summary:	FreeSWITCH 48kHz Music On Hold soundfiles
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Provides:	%{name} = %{EVRD}

%description -n freeswitch-sounds-music-48000
FreeSWITCH 48kHz Music On Hold soundfiles

%files -n freeswitch-sounds-music-48000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/music/48000/*.wav

#-------------------------------------------------------------------

%prep
%setup -n music
%setup -T -D -b 0 -n music
%setup -T -D -b 1 -n music
%setup -T -D -b 2 -n music
%setup -T -D -b 3 -n music

%build
# nothing to do here

%install

# create the sounds directories
install -d -m 0750 %{buildroot}%{SOUNDSDIR}/music/{8000,16000,32000,48000}

cp -prv ./{8000,16000,32000,48000} %{buildroot}%{SOUNDSDIR}/music


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1652 |21cr|freeswitch-sounds-pt-BR-karina-1.0.51-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define SOUNDSDIR       %{_datarootdir}/freeswitch/sounds

Summary:	FreeSWITCH pt-BR Karina prompts
Name:		freeswitch-sounds-pt-BR-karina
Version:	1.0.51
Release:	2
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
Source1:	http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
Source2:	http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
Source3:	http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch
BuildRequires:	sox

%description
FreeSWITCH 48kHz pt-BR Karina prompts plus, during the installation,
it will also install locally generated 8KHz, 16KHz and 32KHz prompts

#-------------------------------------------------------------------
%package -n freeswitch-sounds-pt-BR-karina-8000
Summary:	FreeSWITCH 8kHz pt-BR Karina prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-pt-BR-karina-8000
FreeSWITCH 8kHz pt-BR Karina prompts

%files -n freeswitch-sounds-pt-BR-karina-8000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/pt/BR/karina/*/8000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-pt-BR-karina-16000
Summary:	FreeSWITCH 16kHz pt-BR Karina prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-pt-BR-karina-16000
FreeSWITCH 16kHz pt-BR Karina prompts

%files -n freeswitch-sounds-pt-BR-karina-16000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/pt/BR/karina/*/16000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-pt-BR-karina-32000
Summary:	FreeSWITCH 32kHz pt-BR Karina prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-pt-BR-karina-32000
FreeSWITCH 32kHz pt-BR Karina prompts

%files -n freeswitch-sounds-pt-BR-karina-32000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/pt/BR/karina/*/32000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-pt-BR-karina-48000
Summary:	FreeSWITCH 48kHz pt-BR Karina prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Provides:	%{name} = %{EVRD}

%description -n freeswitch-sounds-pt-BR-karina-48000
FreeSWITCH 48kHz pt-BR Karina prompts

%files -n freeswitch-sounds-pt-BR-karina-48000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/pt/BR/karina/*/48000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-pt-BR-karina-all
Summary:	FreeSWITCH pt-BR Karina prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Requires:	freeswitch-sounds-pt-BR-karina-8000 = %{version}
Requires:	freeswitch-sounds-pt-BR-karina-16000 = %{version}
Requires:	freeswitch-sounds-pt-BR-karina-32000 = %{version}
Requires:	freeswitch-sounds-pt-BR-karina-48000 = %{version}

%description -n freeswitch-sounds-pt-BR-karina-all
FreeSWITCH Karina prompts package that pulls in the 8KHz, 16KHz, 32KHz and 48KHz RPMs

%files -n freeswitch-sounds-pt-BR-karina-all
#-------------------------------------------------------------------

%prep
%setup -n pt
%setup -T -D -b 0 -n pt
%setup -T -D -b 1 -n pt
%setup -T -D -b 2 -n pt
%setup -T -D -b 3 -n pt

%build
# nothing to do here

%install

# create the sounds directories
install -d -m 0750 %{buildroot}%{SOUNDSDIR}/pt/BR/karina

pushd BR/karina
# first install the 48KHz sounds
cp -prv ./* %{buildroot}%{SOUNDSDIR}/pt/BR/karina
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1653 |21cr|freeswitch-sounds-ru-RU-elena-1.0.51-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define SOUNDSDIR       %{_datarootdir}/freeswitch/sounds

Summary:	FreeSWITCH ru-RU Elena prompts
Name:		freeswitch-sounds-ru-RU-elena
Version:	1.0.51
Release:	2
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
Source1:	http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
Source2:	http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
Source3:	http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch
BuildRequires:	sox

%description
FreeSWITCH 48kHz ru-RU Elena prompts plus, during the installation,
it will also install locally generated 8KHz, 16KHz and 32KHz prompts

#-------------------------------------------------------------------
%package -n freeswitch-sounds-ru-RU-elena-8000
Summary:	FreeSWITCH 8kHz ru-RU Elena prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-ru-RU-elena-8000
FreeSWITCH 8kHz ru-RU Elena prompts

%files -n freeswitch-sounds-ru-RU-elena-8000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/ru/RU/elena/*/8000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-ru-RU-elena-16000
Summary:	FreeSWITCH 16kHz ru-RU Elena prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-ru-RU-elena-16000
FreeSWITCH 16kHz ru-RU Elena prompts

%files -n freeswitch-sounds-ru-RU-elena-16000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/ru/RU/elena/*/16000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-ru-RU-elena-32000
Summary:	FreeSWITCH 32kHz ru-RU Elena prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-ru-RU-elena-32000
FreeSWITCH 32kHz ru-RU Elena prompts

%files -n freeswitch-sounds-ru-RU-elena-32000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/ru/RU/elena/*/32000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-ru-RU-elena-48000
Summary:	FreeSWITCH 48kHz ru-RU Elena prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Provides:	%{name} = %{EVRD}

%description -n freeswitch-sounds-ru-RU-elena-48000
FreeSWITCH 48kHz ru-RU Elena prompts

%files -n freeswitch-sounds-ru-RU-elena-48000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/ru/RU/elena/*/48000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-ru-RU-elena-all
Summary:	FreeSWITCH ru-RU Elena prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Requires:	freeswitch-sounds-ru-RU-elena-8000 = %{version}
Requires:	freeswitch-sounds-ru-RU-elena-16000 = %{version}
Requires:	freeswitch-sounds-ru-RU-elena-32000 = %{version}
Requires:	freeswitch-sounds-ru-RU-elena-48000 = %{version}

%description -n freeswitch-sounds-ru-RU-elena-all
FreeSWITCH Elena prompts package that pulls in the 8KHz, 16KHz, 32KHz and 48KHz RPMs

%files -n freeswitch-sounds-ru-RU-elena-all
#-------------------------------------------------------------------

%prep
%setup -n ru
%setup -T -D -b 0 -n ru
%setup -T -D -b 1 -n ru
%setup -T -D -b 2 -n ru
%setup -T -D -b 3 -n ru

%build
# nothing to do here

%install

# create the sounds directories
install -d -m 0750 %{buildroot}%{SOUNDSDIR}/ru/RU/elena

pushd RU/elena
# first install the 48KHz sounds
cp -prv ./* %{buildroot}%{SOUNDSDIR}/ru/RU/elena
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1654 |21cr|freeswitch-sounds-sv-se-jakob-1.0.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define SOUNDSDIR       %{_datarootdir}/freeswitch/sounds

Summary:	FreeSWITCH sv-se Jakob prompts
Name:		freeswitch-sounds-sv-se-jakob
Version:	1.0.50
Release:	1
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	http://files.freeswitch.org/releases/sounds/%{name}-48000-%{version}.tar.gz
Source1:	http://files.freeswitch.org/releases/sounds/%{name}-32000-%{version}.tar.gz
Source2:	http://files.freeswitch.org/releases/sounds/%{name}-16000-%{version}.tar.gz
Source3:	http://files.freeswitch.org/releases/sounds/%{name}-8000-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch
BuildRequires:	sox

%description
FreeSWITCH 48kHz sv-se Jakob prompts plus, during the installation,
it will also install locally generated 8KHz, 16KHz and 32KHz prompts

#-------------------------------------------------------------------
%package -n freeswitch-sounds-sv-se-jakob-8000
Summary:	FreeSWITCH 8kHz sv-se Jakob prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-sv-se-jakob-8000
FreeSWITCH 8kHz sv-se Jakob prompts

%files -n freeswitch-sounds-sv-se-jakob-8000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/*/8000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-sv-se-jakob-16000
Summary:	FreeSWITCH 16kHz sv-se Jakob prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-sv-se-jakob-16000
FreeSWITCH 16kHz sv-se Jakob prompts

%files -n freeswitch-sounds-sv-se-jakob-16000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/*/16000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-sv-se-jakob-32000
Summary:	FreeSWITCH 32kHz sv-se Jakob prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch

%description -n freeswitch-sounds-sv-se-jakob-32000
FreeSWITCH 32kHz sv-se Jakob prompts

%files -n freeswitch-sounds-sv-se-jakob-32000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/*/32000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-sv-se-jakob-48000
Summary:	FreeSWITCH 48kHz sv-se Jakob prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Provides:	%{name} = %{EVRD}

%description -n freeswitch-sounds-sv-se-jakob-48000
FreeSWITCH 48kHz sv-se Jakob prompts

%files -n freeswitch-sounds-sv-se-jakob-48000
%attr(0640,freeswitch,daemon) %{SOUNDSDIR}/sv/se/jakob/*/48000/*.wav

#-------------------------------------------------------------------

%package -n freeswitch-sounds-sv-se-jakob-all
Summary:	FreeSWITCH sv-se Jakob prompts
Group:		Communications
BuildArch:	noarch
Requires:	freeswitch
Requires:	freeswitch-sounds-sv-se-jakob-8000 = %{version}
Requires:	freeswitch-sounds-sv-se-jakob-16000 = %{version}
Requires:	freeswitch-sounds-sv-se-jakob-32000 = %{version}
Requires:	freeswitch-sounds-sv-se-jakob-48000 = %{version}

%description -n freeswitch-sounds-sv-se-jakob-all
FreeSWITCH Jakob prompts package that pulls in the 8KHz, 16KHz, 32KHz and 48KHz RPMs

%files -n freeswitch-sounds-sv-se-jakob-all
#-------------------------------------------------------------------

%prep
%setup -n sv
%setup -T -D -b 0 -n sv
%setup -T -D -b 1 -n sv
%setup -T -D -b 2 -n sv
%setup -T -D -b 3 -n sv

%build
# nothing to do here

%install

# create the sounds directories
install -d -m 0750 %{buildroot}%{SOUNDSDIR}/sv/se/jakob

pushd se/jakob
# first install the 48KHz sounds
cp -prv ./* %{buildroot}%{SOUNDSDIR}/sv/se/jakob
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1655 |21cr|freesynd-0.7.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		freesynd
Version:	0.7.1
Release:	5
Summary:	Open-source engine for the classic DOS game Syndicate
Group:		Games/Strategy
License:	GPLv2
URL:		http://freesynd.sourceforge.net/
Source0:	http://sourceforge.net/projects/freesynd/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0:		freesynd-0.7-path.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(zlib)

%description
FreeSynd is a cross-platform, GPLed reimplementation of engine for the classic
Bullfrog game, Syndicate.

Syndicate is an isometric real-time tactical game created in 1993.

Gameplay involves ordering a four-person team of cyborg agents around cities
displayed in a fixed-view isometric style, in pursuit of mission goals such
as assassinating executives of a rival syndicate, rescuing captured allies,
"persuading" civilians and scientists to join the player's company or simply
killing all enemy agents.

As the player progresses through the game, they must manage the research and
development of new weaponry and cyborg upgrades. The player has only limited
funds, requiring taxation of the conquered territories while ensuring that
they are not so over-taxed that they revolt against the player.

WARNING!!! You need original game data to play this game. Copy all files from
data directory to: %{_gamesdatadir}/%{name}/data/

%prep
%setup -q
%patch0 -p1
# fix png rgb 
pushd  icon
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd


for N in 16 32 64 128; do convert icon/sword.png -resize ${N}x${N} $N.png; done

%build
%cmake -DCMAKE_BUILD_TYPE=release
%make

%install
%makeinstall_std -C build

install -D 16.png %{buildroot}%{_miconsdir}/%{name}.png
install -D 32.png %{buildroot}%{_liconsdir}/%{name}.png
install -D 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# menu-entry
mkdir -p  %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Syndicate (freesynd)
Comment=An isometric real-time tactical game
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;StrategyGame;
EOF

%files
%doc AUTHORS COPYING NEWS README
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1656 |21cr|freetuxtv-0.7.0-0.20210620.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gitdate	20210620

Summary:	TV player
Name:		freetuxtv
Version:	0.7.0
Release:	0.%{gitdate}.1
License:	GPLv2+
Group:		Video
Url:		https://github.com/freetuxtv/freetuxtv
#Source0:	https://github.com/freetuxtv/freetuxtv/releases/download/%%{name}-%%{version}/%%{name}-%%{version}.tar.gz
Source0:	%{name}-%{gitdate}.tar.xz
BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.26.0
BuildRequires:	pkgconfig(libcurl) >= 7.18
BuildRequires:	pkgconfig(libnotify) >= 0.4
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(sqlite3) >= 3.4
Requires:	vlc

%description
freetuxtv is a player for Television on Internet with french Free
or SFR (ex-Neuf) Internet service providers, and a lot of WebTV in
French languages in the world (Canada, Switzerland, Belgium, etc...).

%files -f %{name}.lang
%doc AUTHORS COPYING README README.md ChangeLog
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*x*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}


%build
./autogen.sh
%configure --with-gtk=3.0
%make


%install
%makeinstall_std

# We don't want .a files and we hane no devel package
rm -rf %{buildroot}%{_libdir}/*.a
rm -rf %{buildroot}%{_includedir}

# We pick docs with our macro
rm -rf %{buildroot}%{_datadir}/%{name}/doc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1657 |21cr|freetype-1.3.1-49
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 2
%define libname	%mklibname freetype %{major}
%define develname %mklibname -d freetype %{major}

Summary:	TrueType font rasterizer library
Name:		freetype
Version:	1.3.1
Release:	49
License:	BSD
Group:		System/Libraries
BuildRequires:	pkgconfig(sm) pkgconfig(x11) libice-devel
BuildRequires:	autoconf2.1 automake1.4
URL:		http://www.freetype.org
Source0:	freetype-%{version}.tar.bz2
# Patch from X-TT sources, to correctly support Dynalab TTF fonts
# very popular in Taiwan
Patch0:		freetype1.3-adw-nocheck.patch
# (gb) Disable byte-code interpreter
Patch2:		freetype-1.3.1-disable-bci.patch
# (nanar) fix gcc33 build, included in cvs version
Patch3:		freetype-1.3.1-gcc33.patch
# (abel) no need to include libintl
Patch4:		freetype-1.3.1-no-intl.patch
Patch5:		freetype-1.3.1-format_not_a_string_literal_and_no_format_arguments.diff

%description
The FreeType engine is a free and portable TrueType font rendering engine.
It has been developed to provide TT support to a great variety of
platforms and environments. Note that FreeType is a library, not a
stand-alone application, though some utility applications are included.

%package -n	%{libname}
Summary:	Shared libraries for a free and portable TrueType font rendering engine
Group:		System/Libraries
Obsoletes:	%{name} < %{version}-%{release}
Provides:	%{name} = %{version}-%{release}

%description -n	%{libname}
The FreeType engine is a free and portable TrueType font rendering engine.
It has been developed to provide TT support to a great variety of
platforms and environments. Note that FreeType is a library, not a
stand-alone application, though some utility applications are included.

%package -n	%{develname}
Summary:	Header files and static library for development with FreeType2
Group:		Development/C
Requires:	%{libname} >= %{version}-%{release}
Obsoletes:	%{name}-devel < %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package is only needed if you intend to develop or compile applications
which rely on the FreeType library. If you simply want to run existing
applications, you won't need this package.

%prep

%setup -q
%patch0 -p0 -b .adw
%patch2 -p1 -b .disable-bci
%patch3 -p0
%patch4 -p1 -b .no-intl
%patch5 -p0 -b .format_not_a_string_literal_and_no_format_arguments

cp -f /usr/share/automake-1.4/config.guess .
cp -f /usr/share/automake-1.4/config.sub .

autoconf-2.13

%build
%configure --disable-debug \
	--disable-static \
	--enable-shared \
	--with-locale-dir=%{_datadir}/locale
make

%install
rm -rf %{buildroot}

%makeinstall gnulocaledir=%{buildroot}%{_datadir}/locale

rm -f %{buildroot}%{_bindir}/ft*

%find_lang %{name}

%files -n %{libname} -f %{name}.lang
%doc README announce
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%doc docs
%{_includedir}/*
%{_libdir}/libttf.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1658 |21cr|freewheeling-0.6.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		freewheeling
Summary:	Live Audio Looper
Version:	0.6.6
Release:	3
License:	GPLv2+
Group:		Sound
Url:		https://github.com/free-wheeling/freewheeling/wiki
Source0:	https://github.com/free-wheeling/freewheeling/archive/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(vorbis)

%description
FreeWheeling is an audio tool for live looping. It provides a highly
configurable, fluid user interface for instrumentalists to capture loops in
real-time.

%files
%doc README NEWS AUTHORS
%license COPYING
%{_bindir}/fweelin
%{_datadir}/fweelin
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

# Fix perms
chmod -x AUTHORS COPYING NEWS README
chmod -x src/*.{cc,h}

%build
export CXXFLAGS="${optflags} -std=c++11"
%configure
%make

%install
%makeinstall_std

# Provide a Menu item
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Freewheeling
Comment=Live Looper
Exec=fweelin
Icon=sound_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;Audio;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1659 |21cr|freexl-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Library to extract valid data from within an Excel spreadsheet
Name:		freexl
Version:	1.0.6
Release:	1
License:	MPLv1.1 or GPLv2+ or LGPLv2.1+
Group:		System/Libraries
Url:		https://www.gaia-gis.it/fossil/freexl/index
Source0:	http://www.gaia-gis.it/gaia-sins/%{name}-%{version}.tar.gz
BuildRequires:	doxygen

%description
FreeXL is an open source library to extract valid data from within an Excel
(.xls) spreadsheet.
FreeXL design goals:
- to be simple and lightweight
- to be stable, robust and efficient
- to be easily and universally portable
- completely ignoring any GUI-related oddity.
Note that the final goal means that FreeXL ignores at all fonts, sizes and
alignments, and most formats. It ignores Pivot Table, Charts, Formulas, Visual
Basic macros and so on. FreeXL is structurally simple and quite light-weight.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to extract valid data from within an Excel spreadsheet

%description -n %{libname}
FreeXL is an open source library to extract valid data from within an Excel
(.xls) spreadsheet.
FreeXL design goals:
- to be simple and lightweight
- to be stable, robust and efficient
- to be easily and universally portable
- completely ignoring any GUI-related oddity.
Note that the final goal means that FreeXL ignores at all fonts, sizes and
alignments, and most formats. It ignores Pivot Table, Charts, Formulas, Visual
Basic macros and so on. FreeXL is structurally simple and quite light-weight.

%files -n %{libname}
%doc COPYING
%{_libdir}/libfreexl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library to extract valid data from within an Excel spreadsheet
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
FreeXL is an open source library to extract valid data from within an Excel
(.xls) spreadsheet.
This package contains development files for using %{name}.

%files -n %{devname}
%doc AUTHORS COPYING README
%doc examples html
%{_libdir}/libfreexl.so
%{_libdir}//pkgconfig/%{name}.pc
%{_includedir}/%{name}.h

#----------------------------------------------------------------------------

%prep
%setup -q


%build
# please keep it verbose. Sflo
autoreconf -vfi
%configure \
	--disable-static
%make

# Generate devel docs
doxygen -u
doxygen
rm -f html/installdox


%check
make check
# Clean up check leftovers
pushd examples
	make clean
	rm -rf .deps
popd


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1660 |21cr|freeze-2.5.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Freeze/melt/fcat compression utilities
Name:		freeze
Version:	2.5.0
Release:	10
Group:		Archiving/Compression
License:	Distributable
# No one agrees on the canonical download site, everyone uses the same version
Source:		http://www.ibiblio.org/pub/Linux/utils/compress/freeze-2.5.0.tar.gz
Patch0:		freeze-2.5.patch
Patch1:		freeze-2.5.0-printf.patch
Patch2:		freeze-2.5.0-deffile.patch

%description
Freeze is an old file compressor and decompressor that is not in common use
anymore, but can be useful if the need ever arises to dearchive files
compressed with it.

%prep

%setup -q
%patch0 -p1 -b .Makefile
%patch1 -p1 -b .printf
%patch2 -p1 -b .deffile

%build
chmod u+x configure
%configure
%make CFLAGS="%{optflags} -Dputc=putc"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

%makeinstall \
    MANDEST="%{buildroot}%{_mandir}/man1/"

### Fix symlinks properly
for bin in fcat melt unfreeze; do
    ln -sf freeze %{buildroot}%{_bindir}/$bin
    rm -f %{buildroot}%{_mandir}/man1/$bin.1
    ln -sf freeze.1.bz2 %{buildroot}%{_mandir}/man1/$bin.1.bz2
done

%clean
rm -rf %{buildroot}

%files
%defattr(0644, root, root, 0755)
%doc MANIFEST README
%attr(0755,root,root) %{_bindir}/*
%doc %{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1661 |21cr|frescobaldi-3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A LilyPond sheet music editor
Name:		frescobaldi
Version:	3.2
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.frescobaldi.org/
Source0:	https://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(python3) >= 3.3
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3-ly >= 0.9.6
BuildRequires:	python3-qt5-devel >= 5.9
BuildRequires:	qt5-devel >= 5.9
BuildRequires:	python3-qpageview
BuildArch:	noarch
#Requires:	tango-icon-theme
Requires:	poppler
Requires:	python3-cups
Requires:	python3-qt5
Requires:	python3-poppler-qt5
Requires:	python3-pygame
Requires:	python3-ly >= 0.9.6
Requires:	python3-qpageview
Suggests:	lilypond
Suggests:	portmidi >= 1:217

%description
Frescobaldi is a LilyPond sheet music editor. It aims to be powerful, yet
lightweight and easy to use.

%files
%doc ChangeLog COPYING README* THANKS TODO
%{_bindir}/%{name}
%{py3_puresitedir}/%{name}_app
%{py3_puresitedir}/%{name}-%{version}-py%{py3_ver}.egg-info
%{_datadir}/applications/org.%{name}.Frescobaldi.desktop
%{_datadir}/icons/hicolor/scalable/apps/org.%{name}.Frescobaldi.svg
%{_datadir}/metainfo/org.%{name}.Frescobaldi.metainfo.xml
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%py3_build
# Now needed, otherwise we end up without appdata, desktop file and translations
%make -C i18n
%make -C linux


%install
%py3_install

# Fix remaining shebangs...
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python3|' %{buildroot}%{py3_puresitedir}/%{name}_app/language_names/generate.py
sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/python3|' %{buildroot}%{py3_puresitedir}/%{name}_app/unicode_blocks.py
# ... and permissions
find %{buildroot}%{py3_puresitedir}/%{name}_app/ -name "*.py*" -exec chmod 644 {} \;
chmod +x %{buildroot}%{py3_puresitedir}/%{name}_app/language_names/generate.py
chmod +x %{buildroot}%{py3_puresitedir}/%{name}_app/unicode_blocks.py

# Fix .desktop file
desktop-file-edit	--add-category=X-Notation \
					%{buildroot}%{_datadir}/applications/org.%{name}.Frescobaldi.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1662 |21cr|freshplayerplugin-0.3.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ppapi2npapi compatibility layer
Name:		freshplayerplugin
Version:	0.3.11
Release:	3
License:	MIT
Group:		Networking/WWW
Url:		https://github.com/i-rinat/freshplayerplugin
Source0:	https://github.com/i-rinat/freshplayerplugin/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ragel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libconfig)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libevent_pthreads)
BuildRequires:	pkgconfig(liburiparser)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(soxr)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
# This is in Non-free: requiring it makes
# ABF tests to fail
Recommends:	chromium-browser-pepper-flash

%description
Ppapi2npapi compatibility layer.

%files
%doc COPYING LICENSE README.md
%doc data/*
%config(noreplace) %{_sysconfdir}/freshwrapper.conf
%{_libdir}/mozilla/plugins/*.so*


#----------------------------------------------------------------------------

%prep
%setup -q
#Correct search path...
sed -i -e "s;/opt/google/chrome/PepperFlash/libpepflashplayer.so;%{_libdir}/chromium-browser/PepperFlash/libpepflashplayer.so;" data/freshwrapper.conf.example
#... and really activate it
sed -i -e "s;#pepperflash_path;pepperflash_path;" data/freshwrapper.conf.example


%build
%global optflags %{optflags} -Wno-strict-aliasing -Wno-deprecated-declarations
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DWITH_GLES2="True"
	
%make -s


%install
install -Dm 755 build/libfreshwrapper-flashplayer.so %{buildroot}%{_libdir}/mozilla/plugins/libfreshwrapper-pepperflash.so
install -Dm 644 data/freshwrapper.conf.example %{buildroot}%{_sysconfdir}/freshwrapper.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1663 |21cr|fretsonfire-1.3.110-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Frets On Fire
Name:		fretsonfire
Version:	1.3.110
Release:	6
Group:		Games/Arcade
License:	GPLv2
URL:		http://fretsonfire.sourceforge.net/
Source:		FretsOnFire-%{version}.tar.gz
Patch0:		fretsonfire-1.3.110-credits_music.patch
Patch1:		fretsonfire-1.3.110-datapath.patch
Patch2:		fretsonfire-1.3.110-font-revert.patch
Patch3:		fretsonfire-1.3.110-fonts_lower_cpu.patch
Patch4:		fretsonfire-1.3.110-keep_sound_when_failed.patch
Patch5:		fretsonfire-1.3.110-typeerror.patch
Patch6:		fretsonfire-1.3.110-pillow.patch
BuildArch:	noarch
Requires:	python-numpy
Requires:	python-imaging
Requires:	python-opengl
Requires:	pygame

%description
Frets on Fire is a game of musical skill and fast fingers.
The aim of the game is to play guitar with the keyboard as
accurately as possible.

%prep
%setup -q -n Frets\ on\ Fire-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
chmod 644 copying.txt

%build
%make

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
mkdir -p %{buildroot}%{_gamesbindir}

install -D -m 0644 data/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
cp -r data %{buildroot}%{_gamesdatadir}/%{name}/
cp -r src %{buildroot}%{_gamesdatadir}/%{name}/

#Menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Frets On Fire
Comment=Game of Musical Skill and Fast Fingers
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

#Executable
cat > %{buildroot}%{_gamesbindir}/%{name}<<EOF
#!/bin/sh
cd /
cd %{_gamesdatadir}/%{name}/src
python ./FretsOnFire.py
EOF

chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc copying.txt readme.txt
%attr(755,root,root) %{_gamesbindir}/fretsonfire
%{_gamesdatadir}/fretsonfire
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1664 |21cr|fricas-1.3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		fricas
Version:	1.3.8
Release:	1
Summary:	FriCAS Computer Algebra System
License:	Modified BSD License
Group:		Sciences/Mathematics
Url:		http://fricas.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/fricas/fricas/%{version}/%{name}-%{version}-full.tar.bz2
Source1:	%name-16.png
Source2:	%name-32.png
Source3:	%name-48.png
Source4:	%name.desktop
Requires:	sbcl
Conflicts:	axiom
BuildRequires:	pkgconfig(xpm)
BuildRequires:	clisp
BuildRequires:	sbcl

%description
FriCAS is an advanced computer algebra system. Its capabilities range 
from calculus (integration and differentiation) to abstract algebra. 
It can plot functions and has integrated help system.
 
FriCAS a fork of Axiom project -- its starting point was wh-sandbox 
branch of the Axiom project.

%files
%{_bindir}/*
%{_datadir}/applications/%name.desktop
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_iconsdir}/*.png
%{_libdir}/%name/*
%doc README* FAQ CHA* Cha*

#-----------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}

%build

%configure --with-lisp=clisp
%make

%install
%define _strip_method no

%makeinstall_std
# icons
install -D -m644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

# menu items
install -D -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1665 |21cr|fricorder-0.7.40-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Video recorder for Freebox
Name:		fricorder
Version:	0.7.40
Release:	3
License:	GPLv2+
Group:		Video
Url:		https://code.google.com/archive/p/fricorder/
Source0:	https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/fricorder/%{name}_%{version}.tar.gz
Source10:	%{name}-16.png
Source11:	%{name}-32.png
Source12:	%{name}-48.png
Patch0:		%{name}-0.7.40-fixed-exe.patch
BuildArch:	noarch
Requires:	at
Requires:	gnome-python
Requires:	pygtk2.0
Requires:	pygtk2.0-libglade
Requires:	python >= 2.4
Requires:	python-pyxml
Requires:	vlc
Requires:	zenity

%description
Fricorder is a video recorder for Freebox from a french isp adsl.
It allows recording of video streams from a freebox, working in "multiseat"
mode, by using the vlc program.
Main features:
- Web (ie remote) and GTK interfaces
- a tv guide to ease the videos watching (in the form of a xmltv directory)
- it uses the OS features (ie the "at" program) to allow unattended launch
- it finds the video streams directly from the freebox (playlist.m3u).

%files
%doc COPYING README
%{_bindir}/%{name}
%{_datadir}/%{name}-%{version}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/rosa-%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch -p1 

# Fix perms
chmod 0644 README


%build
# Nothing to do


%install
# No automatic install
# 1. Prepare the needed dirs
mkdir -p %{buildroot}/%{_datadir}/%{name}-%{version}
mkdir -p %{buildroot}/%{_datadir}/%{name}-%{version}/lib/%{name}/%{name}
mkdir -p %{buildroot}/%{_datadir}/%{name}-%{version}/templates
mkdir -p %{buildroot}/%{_datadir}/%{name}-%{version}/tmp
mkdir -p %{buildroot}/%{_datadir}/doc/%{name}

# 2. install files
install -m755 data/fricorder_record.sh %{buildroot}/%{_datadir}/%{name}-%{version}
install -m644 data/fricorder.glade %{buildroot}/%{_datadir}/%{name}-%{version}
install -m644 data/nondegroupe.m3u %{buildroot}/%{_datadir}/%{name}-%{version}
install -m755 fricorder.py %{buildroot}/%{_datadir}/%{name}-%{version}
install -m644 __init__.py %{buildroot}/%{_datadir}/%{name}-%{version}/lib/%{name}
#install -m644 SimpleGladeApp.py %%{buildroot}/%%{_datadir}/%%{name}-%%{version}
#install -m755 fricorder-web.py %%{buildroot}/%%{_datadir}/%%{name}-%%{version}

for i in fricorder/*.pyc; do
  install -m644 $i %{buildroot}/%{_datadir}/%{name}-%{version}/lib/%{name}/%{name}
done

for i in fricorder/*.py; do
   install -m644 $i %{buildroot}/%{_datadir}/%{name}-%{version}/lib/%{name}/%{name}
done

for i in data/templates/*; do
  install -m644 $i %{buildroot}/%{_datadir}/%{name}-%{version}/templates
done

# 3. Prepare a little script to actually run the program from %%{_bindir}...
mkdir -p %{buildroot}/%{_bindir}/
cat <<EOF >%{buildroot}/%{_bindir}/%{name}
#!/bin/sh
PYTHONPATH=${PYTHONPATH=.}

PYTHONPATH=${PYTHONPATH}:%{_datadir}/%{name}-%{version}

exec python -u -O %{_datadir}/%{name}-%{version}/fricorder.py $*
EOF
#... and make it executable
chmod 755 %{buildroot}/%{_bindir}/%{name}

# 4. Provide a .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Fricorder
Comment=Video recorder for Freebox
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Video;Player;X-MandrivaLinux-Multimedia-Video;
EOF

# 5. Install more icons
install -m644 %{SOURCE10} -D %{buildroot}/%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D %{buildroot}/%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}/%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1666 |21cr|fritzing-625-1.gitf008f5.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global rtld_name org.fritzing.Fritzing

Name:           fritzing
Summary:        Electronic Design Automation software; from prototype to product
Group:          Sciences/Other
License:        GPLv3+
URL:            http://fritzing.org/

Version:	625

# The fritzing-app repo does not contain a tag for v0.9.10.
%global app_date 20220822
%global app_commit f008f55c7705b5535c4ee7ffc2318eb6c6f194be
%define commit_short %(echo %{app_commit} | head -c6)

# The fritzing-parts repository no longer uses git tags for marking releases.
# Upstream build scripts seem to just take the latest commit
# from fritzing-parts's "develop" branch.
#
# The app commit we're using is dated 2022-05-14.
# In the parts repo, the last commit made before that date is from 2022-05-10.
# Use the fritzing-parts repo as of said commit.
%global parts_date 20220510
%global parts_commit 4713511c894cb2894eae505b9307c6555afcc32c
%define parts_commit_short %(echo %{parts_commit} | head -c6)

Release:	1.git%{commit_short}.2

Source0:        https://github.com/%{name}/%{name}-app/archive/%{app_commit}/%{name}-app-%{app_commit}.tar.gz
Source1:        https://github.com/%{name}/%{name}-parts/archive/%{parts_commit}/%{name}-parts-%{parts_commit}.tar.gz

# Fedora-specific patch to disable internal auto-updating feature.
Patch0:         0000-disable-autoupdate.patch
# Use the system quazip library instead of the bundled one.
Patch1:         0001-unbundle-quazip.patch
# Remove references to example sketches that use twitter4j library
Patch2:         0002-remove-twitter4j.patch

BuildRequires:  pkgconfig(ngspice)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5SerialPort)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(quazip1-qt5)
BuildRequires:  pkgconfig(zlib)

BuildRequires:  boost-devel
BuildRequires:  desktop-file-utils
BuildRequires:  findutils
BuildRequires:  gcc-c++
BuildRequires:  appstream-util
BuildRequires:  make

Requires:       %{name}-parts = %{version}
Requires:       electronics-menu
Requires:       fonts-ttf-droid

%description
Fritzing is a free software tool to support designers, artists and
hobbyists to work creatively with interactive electronics.

%files
%doc README.md LICENSE.GPL2 LICENSE.GPL3 LICENSE.CC-BY-SA
%{_bindir}/Fritzing
%{_datadir}/applications/%{rtld_name}.desktop
%{_datadir}/mime/packages/fritzing.xml
%{_datadir}/pixmaps/fritzing.png
%{_metainfodir}/%{rtld_name}.appdata.xml
%{_mandir}/man?/*


#----------------------------------------------------------------------
%package parts
Version:	625
Release:	1.git%{parts_commit_short}.1
Summary:   Parts library for the Fritzing electronic design application
Group:     Sciences/Other
BuildArch: noarch

# The overall distribution is licensed as CC-BY-SA (see LICENSE.txt), but
# many individual SVG parts in the svg/ directory are licensed as GPL+;
# please see the fz:attr elements named "dist-license", "use-license", and
# "license-url" under the rdf:RDF section of each SVG document for details.
License:       CC-BY-SA and GPL+

%description parts
A library of part definitions for the Fritzing electronic design application,
containing both metadata and related graphics.

%files parts
%doc parts/README.md
%license parts/LICENSE.txt
%{_datadir}/%{name}

#----------------------------------------------------------------------

%prep
%setup -q -n %{name}-app-%{app_commit}

%setup -q -T -D -a 1 -n %{name}-app-%{app_commit}
mv %{name}-parts-%{parts_commit}/ parts/

# Remove some GitHub-specific files
rm -rf .github || true
rm -rf parts/.github || true

# We don't want the autoupdater.
%patch0 -p1 -b .disable-updates

# We use the unbundled version of quazip.
%patch1 -p1 -b .unbundle-quazip
rm -rf src/lib/quazip

# The TwitterSaurus examples use (a bundled) twitter4j library, whose license
# is incompatible with Fedora.
%patch2 -p1 -b .remove-twitter4j
rm -f sketches/core/Fritzing\ Creator\ Kit\ DE+EN/creator-kit-*/Fritzing/TwitterSaurus.fzz
rm -f sketches/core/Fritzing\ Creator\ Kit\ DE+EN/creator-kit-*/Processing/twitter4j-core-2.2.5.jar
rm -rf sketches/core/Fritzing\ Creator\ Kit\ DE+EN/creator-kit-*/Processing/TwitterSaurus*
rm -f sketches/core/obsolete/TwitterSaurus.fzz

# Remove a <url> entry which causes the appstream file to fail validation.
sed -e '/<url type="forum">/d' -i '%{rtld_name}.appdata.xml'



%build
%qmake_qt5
%make_build V=1

# Generate the parts database
./Fritzing -platform minimal -f ./parts -db ./parts/parts.db


%install
%make_install INSTALL_ROOT=%{buildroot}

# A few files in /usr/share/fritzing end up executable.
find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 644 '{}' ';'
find %{buildroot}%{_datadir}/%{name} -type d -exec chmod 755 '{}' ';'


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{rtld_name}.desktop
appstream-util validate-relax --nonet %{buildroot}/%{_metainfodir}/%{rtld_name}.appdata.xml

if [[ "$(find %{buildroot}%{_datadir}/%{name} -name 'TwitterSaurus*' -o -name 'twitter4j*' | wc -l)" -gt 0 ]]; then
  echo "Found TwitterSaurus / twitter4j files - these should NOT be included in the final package" >&2
  exit 1
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1667 |21cr|frodo-4.2-0.20030707.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define cvsdate %(echo %{release} |cut -d. -f 2)

Summary:       Free portable C64 emulator
Name:          frodo
Version:       4.2
Release:       0.20030707.4
Source0:       Frodo4-%{cvsdate}.tar.bz2
Source10:      Frodo.16.png
Source11:      Frodo.32.png
Source12:      Frodo.48.png
License:       GPLv2
Group:         Emulators
Url:           http://frodo.cebix.net/
BuildRequires: SDL-devel >= 1.2.0

%description
Frodo is a free, portable Commodore 64 emulator that runs on a variety
of platforms, with a focus on the exact reproduction of special graphical
effects possible on the C64.

Frodo comes in three flavours: The "normal" Frodo with a line-based
emulation, the improved line-based emulation "Frodo PC", and the
single-cycle emulation "Frodo SC" that is slower but far more compatible.

%prep
%setup -q -n Frodo4

%build
cd Src
%configure
%make

%install
rm -rf %{buildroot}
cd Src
%makeinstall_std

cd ..
mkdir -p %{buildroot}%{_datadir}/frodo/64prgs
rm -rf 64prgs/CVS
install -m644 64prgs/* %{buildroot}%{_datadir}/frodo/64prgs/

mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Frodo
Comment=C64 Emulator, Classic Line Mode
Exec=Frodo
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Emulators;
EOF

cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-pc.desktop << EOF
[Desktop Entry]
Name=FrodoPC
Comment=C64 Emulator, Improved Line Mode
Exec=Frodo
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Emulators;
EOF

cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-sc.desktop << EOF
[Desktop Entry]
Name=FrodoSC
Comment=C64 Emulator, Single-Cycle Mode
Exec=Frodo
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Emulators;
EOF

install -m644 %{SOURCE10} %{buildroot}%{_miconsdir}/frodo.png
install -m644 %{SOURCE11} %{buildroot}%{_iconsdir}/frodo.png
install -m644 %{SOURCE12} %{buildroot}%{_liconsdir}/frodo.png

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%{update_menus}

%postun
%{clean_menus}
%endif

%files
%defattr(-,root,root)
%doc COPYING CHANGES 
%doc Docs/*.html
%{_bindir}/Frodo
%{_bindir}/FrodoPC
%{_bindir}/FrodoSC
%{_bindir}/Frodo_GUI.tcl
"%{_datadir}/frodo/1541 ROM"
"%{_datadir}/frodo/Basic ROM"
"%{_datadir}/frodo/Char ROM"
"%{_datadir}/frodo/Kernal ROM"
%{_datadir}/frodo/64prgs
%{_miconsdir}/frodo.png
%{_iconsdir}/frodo.png
%{_liconsdir}/frodo.png
%{_datadir}/applications/mandriva-%{name}*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1668 |21cr|frodo-4.2-0.20030707.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define cvsdate %(echo %{release} |cut -d. -f 2)

Summary:	Free portable C64 emulator
Name:		frodo
Version:	4.2
Release:	0.20030707.5
License:	GPLv2
Group:		Emulators
Url:		http://frodo.cebix.net/
Source0:	Frodo4-%{cvsdate}.tar.bz2
Source10:	Frodo.16.png
Source11:	Frodo.32.png
Source12:	Frodo.48.png
Patch0:		Frodo-4.1b-gcc6.patch
BuildRequires:	SDL-devel >= 1.2.0

%description
Frodo is a free, portable Commodore 64 emulator that runs on a variety
of platforms, with a focus on the exact reproduction of special graphical
effects possible on the C64.

Frodo comes in three flavours: The "normal" Frodo with a line-based
emulation, the improved line-based emulation "Frodo PC", and the
single-cycle emulation "Frodo SC" that is slower but far more compatible.

%files
%doc COPYING CHANGES
%doc Docs/*.html
%{_bindir}/Frodo
%{_bindir}/FrodoPC
%{_bindir}/FrodoSC
%{_bindir}/Frodo_GUI.tcl
"%{_datadir}/frodo/1541 ROM"
"%{_datadir}/frodo/Basic ROM"
"%{_datadir}/frodo/Char ROM"
"%{_datadir}/frodo/Kernal ROM"
%{_datadir}/frodo/64prgs
%{_miconsdir}/frodo.png
%{_iconsdir}/frodo.png
%{_liconsdir}/frodo.png
%{_datadir}/applications/mandriva-%{name}*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n Frodo4
%patch0 -p1

%build
cd Src
%configure
%make

%install
cd Src
%makeinstall_std

cd ..
mkdir -p %{buildroot}%{_datadir}/frodo/64prgs
rm -rf 64prgs/CVS
install -m644 64prgs/* %{buildroot}%{_datadir}/frodo/64prgs/

mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Frodo
Comment=C64 Emulator, Classic Line Mode
Exec=Frodo
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Emulators;
EOF

cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-pc.desktop << EOF
[Desktop Entry]
Name=FrodoPC
Comment=C64 Emulator, Improved Line Mode
Exec=Frodo
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Emulators;
EOF

cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-sc.desktop << EOF
[Desktop Entry]
Name=FrodoSC
Comment=C64 Emulator, Single-Cycle Mode
Exec=Frodo
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Emulators;
EOF

install -m644 %{SOURCE10} %{buildroot}%{_miconsdir}/frodo.png
install -m644 %{SOURCE11} %{buildroot}%{_iconsdir}/frodo.png
install -m644 %{SOURCE12} %{buildroot}%{_liconsdir}/frodo.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1669 |21cr|frogr-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define gstapi 1.0

Summary:	Tool to Manage Flickr Accounts
Name:		frogr
Version:	1.7
Release:	1
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://live.gnome.org/Frogr
Source0:	http://ftp.gnome.org/pub/GNOME/sources/frogr/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Frogr is a small application for the GNOME desktop that allows users to
manage their accounts in the Flickr image hosting website. It supports
all the basic Flickr features, including uploading pictures, adding
descriptions, setting tags and managing sets and groups pools.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README THANKS
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.frogr.desktop
%{_datadir}/%{name}/
%{_datadir}/metainfo/org.gnome.frogr.appdata.xml
%{_iconsdir}/hicolor/*/apps/org.gnome.frogr.*
%{_iconsdir}/hicolor/*/apps/org.gnome.frogr-symbolic.*
%{_mandir}/man1/frogr.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1670 |21cr|fsarchiver-0.8.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Safe and flexible file-system backup/deployment tool
Name:		fsarchiver
Version:	0.8.6
Release:	2
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://www.fsarchiver.org
# See also: https://github.com/fdupoux/fsarchiver
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:	fsarchiver-0.8.6-implement-uuid=-for-vfat.patch
Patch1:	fsarchiver-0.8.6-update-btrfs-supported-features.patch
Patch2:	fsarchiver-0.8.6-do-not-error-on-deleted-files-with-A-option.patch
Patch3:	fsarchiver-0.8.6-fix-return-value-for-boolean-functions.patch
BuildRequires:	e2fsprogs
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(libattr)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)

%description
FSArchiver is a system tool that allows you to save the contents of a
file-system to a compressed archive file. The file-system can be restored on a
partition which has a different size and it can be restored on a different
file-system. Unlike tar/dar, FSArchiver also creates the file-system when it
extracts the data to partitions. Everything is checksummed in the archive in
order to protect the data. If the archive is corrupt, you just loose the
current file, not the whole archive.

%files
%doc README THANKS NEWS ChangeLog
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}*

#----------------------------------------------------------------------------_-

%prep
%setup -q
%apply_patches


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1671 |21cr|fsgrab-1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Get blocks from an (ext2) filesystem on Linux
Name:		fsgrab
Version:	1.2
Release:	3
License:	GPLv2+
Group:		File tools
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ext2fs)

%description
This program allows you to seek to a given point in a file or a block device
and write a given number of blocks out from that point, without reading the
intervening material. This is useful in attempting undeletion of
files. See the Ext2fs-Undeletion howto for details.

%files
%doc README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1672 |21cr|fskbsetting-0.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI Front-end for setxkbmap Command
Name:		fskbsetting
Version:	0.3.5
Release:	1
License:	GPLv3
Group:		System/X11
Url:		http://code.google.com/p/mandriva-lxde
Source0:	http://mandriva-lxde.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	gcc-c++
BuildRequires:	intltool
BuildRequires:	automake
BuildRequires:	wxgtku-devel

%description
fsKBSetting is GUI front-end for setxkbmap command.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README TRANSLATORS
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/doc/fskbsetting/COPYING
%{_datadir}/doc/fskbsetting/README_RU
%{_iconsdir}/hicolor/*/apps/fskbsetting.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf --force --install --symlink
%configure
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_datadir}/pixmaps
rm -rf %{buildroot}%{_prefix}/doc/%{name}

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1673 |21cr|fslint-2.46-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An utility to find and clean "lint" on a filesystem
Name:		fslint
Version:	2.46
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://www.pixelbeat.org/fslint/
Source0:	http://www.pixelbeat.org/fslint/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
Requires:	cpio
Requires:	pygtk2.0
Requires:	pygtk2.0-libglade
BuildArch:	noarch

%description
FSlint is a toolkit to find all redundant disk usage (duplicate files
for e.g.). It includes a GUI as well as a command line interface.

%files -f %{name}.lang
%doc doc/*
%{_mandir}/man1/fslint*
%{_bindir}/fslint-gui
%{_datadir}/%{name}
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/pixmaps/fslint_icon.png

#----------------------------------------------------------------------------

%prep
%setup -q
%__perl -pi -e 's|^liblocation=.*$|liblocation="%{_datadir}/%{name}" #RPM edit|' fslint-gui
%__perl -pi -e 's|^locale_base=.*$|locale_base=None #RPM edit|' fslint-gui

%build
# Not.

%install
install -Dpm 755 fslint-gui %{buildroot}%{_bindir}/fslint-gui
install -dm 755 %{buildroot}%{_datadir}/%{name}/%{name}/{fstool,supprt}
install -dm 755 %{buildroot}%{_datadir}/%{name}/%{name}/supprt/rmlint
install -dm 755 %{buildroot}%{_mandir}/man1
install -pm 644 fslint.glade fslint_icon.png %{buildroot}%{_datadir}/%{name}
install -dm 755 %{buildroot}%{_datadir}/pixmaps
ln -s %{_datadir}/%{name}/fslint_icon.png %{buildroot}%{_datadir}/pixmaps/
install -pm 755 fslint/{find*,fslint,zipdir} %{buildroot}%{_datadir}/%{name}/fslint
install -pm 755 fslint/fstool/* %{buildroot}%{_datadir}/%{name}/fslint/fstool
install -pm 644 fslint/supprt/fslver %{buildroot}%{_datadir}/%{name}/fslint/supprt
install -pm 755 fslint/supprt/get* %{buildroot}%{_datadir}/%{name}/fslint/supprt
install -pm 755 fslint/supprt/rmlint/* %{buildroot}%{_datadir}/%{name}/fslint/supprt/rmlint

cp -a man/* %{buildroot}%{_mandir}/man1/

make -C po DESTDIR=%{buildroot} LOCALEDIR=%{_datadir}/locale install

desktop-file-install \
	--vendor author \
	--dir %{buildroot}%{_datadir}/applications \
	--mode 644 \
	%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1674 |21cr|fsstress-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A filesystem stressing tool
Name: fsstress
Version: 1.0
Release: 12
Source0: %{name}-%{version}.tar.gz
License: GPL v2
Group: System/Kernel and hardware 
Url: http://cvs.sourceforge.net/viewcvs.py/ltp/ltp/testcases/kernel/fs/fsstress/


%description
fsstress is a filesystem stressing tool.


%prep
%setup -q

%build
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}/
cp fsstress $RPM_BUILD_ROOT%{_bindir}/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/fsstress

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1675 |21cr|fs-uae-3.1.66-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A software emulation of the Amiga system
Name:		fs-uae
Version:	3.1.66
Release:	2
License:	GPLv2+
Group:		Emulators
Url:		http://fs-uae.net
Source0:	http://fs-uae.net/files/FS-UAE/Stable/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	zip
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpeg2)
BuildRequires:	pkgconfig(libmpeg2convert)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)

%description
UAE is a software emulation of the Amiga system hardware, which enables you
to run most available Amiga software. Since it is a software emulation, no
extra or special hardware is needed. The Amiga hardware is emulated accurately
so that Amiga software is tricked into thinking it is running on the real
thing. Your computer's display, keyboard, hard disk and mouse assume the roles
of their emulated counterparts.
Note that to fully emulate the Amiga you need the Amiga KickStart ROM images,
which are copyrighted and, of course, not included here.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_bindir}/%{name}-device-helper
%{_docdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/mime/packages/%{name}.xml

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure \
	--with-glew	\
	--with-qt
%make

%install
%makeinstall_std

# We need this wrapper to fix bug with nVidia proprietary driver
# See https://github.com/FrodeSolheim/fs-uae/issues/31
# Fixed in 2.4.3
#mv %%{buildroot}%%{_bindir}/%%{name} %%{buildroot}%%{_bindir}/%%{name}-real
#cat > %%{buildroot}%%{_bindir}/%%{name} << EOF
#__GL_WRITE_TEXT_SECTION=0 %%{_bindir}/%%{name}-real "\$@"
#EOF
#chmod 0755 %%{buildroot}%%{_bindir}/%%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1676 |21cr|fsx-2009-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    fsx
%define version 1.3
%define release 9

Name:           %{name}
Version:	2009
Release:	1
Summary:	General filesystem exerciser
URL:		http://www.freebsd.org/cgi/cvsweb.cgi/src/tools/regression/fsx
License:	GPL
Group:		System/Kernel and hardware
Source0:	%{name}.c
Source1:	README
Buildroot:	 %{_tmppath}/%{name}-%{version}-root

%description
General filesystem exerciser

%build
%__cc %{optflags} -o %{name} %SOURCE0

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%_bindir
cp fsx $RPM_BUILD_ROOT%_bindir

install -d $RPM_BUILD_ROOT%_defaultdocdir/%{name}-%{version}
cp %SOURCE1 $RPM_BUILD_ROOT%_defaultdocdir/%{name}-%{version}

%files
%attr(755,root,root)
%_bindir/fsx
%_defaultdocdir/%{name}-%{version}

%clean
rm -rf $RPM_BUILD_ROOT

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1677 |21cr|fte-0.50-0.20040412.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define cvssnap 20040412

Summary:	FTE Text Editor (programmer oriented)
Name:		fte
Epoch:		1
Version:	0.50
Release:	0.%{cvssnap}.10
License:	GPLv2+
Group:		Editors
Url:		http://fte.sourceforge.net/
Source0:	http://fte.sourceforge.net/fte/%{name}-cvs-%{cvssnap}.tar.bz2
Patch0:		fte-20040412-rpmopt.patch
Patch1:		fte-slang2_compat.patch
Patch2:		fte-lib64.patch
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(x11)

%description
FTE is a Text Mode text editor for xterm sessions.  Color syntax highlighting
for C/C++, REXX, HTML, IPF, PERL, Ada, Pascal, TEX.  Multiple file/window
editing, Column blocks, configurable menus and keyboard bindings, mouse
support, undo/redo, regular expression search and replace, folding, background
compiler execution.

%files
%defattr(0755,root,root,0755)
%{_bindir}/*
%defattr(0644,root,root,0755)
%doc README COPYING Artistic CHANGES HISTORY TODO BUGS doc/*.html
%{_libdir}/fte
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%setup -q -n fte
%patch0 -p0 -b .rpmopt
%patch1 -p1 -b .slang2_compat
%if "%{_lib}" == "lib64"
%patch2 -p1 -b .lib64
%endif

%build
make PREFIX=%{_prefix}

%install
%makeinstall_std INSTALL_NONROOT=1 PREFIX=%{buildroot}%{_prefix}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=FTE Text Editor (programmer oriented)
Exec=%{name}
Icon=editors_section
Terminal=false
Type=Application
Categories=Utility;TextEditor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1678 |21cr|ftgl-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		2
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Summary:	Font rendering library for OpenGL applications
Name:		ftgl
Version:	2.4.0
Release:	1
License:	MIT
Group:		System/Libraries
URL:		https://github.com/frankheckenbach/ftgl
Source0:	https://github.com/frankheckenbach/ftgl/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		ftgl-2.4.0-ttf_font.patch
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	doxygen

%description
FTGL is a free, open source library to enable developers to use arbitrary
fonts in their OpenGL (www.opengl.org) applications.  Unlike other OpenGL
font libraries FTGL uses standard font file formats so doesn't need a
preprocessing step to convert the high quality font data into a lesser
quality, proprietary format.  FTGL uses the Freetype (www.freetype.org)
font library to open and 'decode' the fonts. It then takes that output
and stores it in a format most efficient for OpenGL rendering.

Rendering modes supported are:
     * Bit maps
     * Anti aliased pix maps
     * Texture maps
     * Outlines
     * Polygon meshes
     * Extruded polygon meshes

#--------------------------------------------------------------

%package -n	%{libname}
Summary:	OpenGL Interface of Freetype2
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Provides:	%{libname} = %{version}-%{release}

%description -n	%{libname}
FTGL is a free, open source library to enable developers to use arbitrary
fonts in their OpenGL (www.opengl.org) applications.  Unlike other OpenGL
font libraries FTGL uses standard font file formats so doesn't need a
preprocessing step to convert the high quality font data into a lesser
quality, proprietary format.  FTGL uses the Freetype (www.freetype.org)
font library to open and 'decode' the fonts. It then takes that output
and stores it in a format most efficient for OpenGL rendering.

Rendering modes supported are:
     * Bit maps
     * Anti aliased pix maps
     * Texture maps
     * Outlines
     * Polygon meshes
     * Extruded polygon meshes

%files -n %{libname}
%{_libdir}/libftgl.so.%{major}*

#--------------------------------------------------------------
%package -n	%{develname}
Summary:	Development related files of FTGL
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n	%{develname}
This package contains headers and static libraries of FTGL.
You need to install it if you want to develop or compile
any programs that make use of OpenGL interface of freetype
library.

%files -n %{develname}
%doc AUTHORS BUGS NEWS README TODO
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

#--------------------------------------------------------------

%prep
%autosetup -p1
find -type f -name '*.txt' -print0 | xargs -0 -r %__chmod 0644

%build
# do not use Cmake for build - its bugged
autoreconf -vfi
%configure
%make_build

%install
%make_install

# include doc ourselves, don't let software do it
rm -rf %{buildroot}%{_docdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1679 |21cr|ftnchek-3.3.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fortran 77 program checker
Name:		ftnchek
Version:	3.3.1
Release:	12
License:	MIT
Group:		Development/Other
Url:		http://www.dsm.fordham.edu/~ftnchek
Source0:	ftp://ftp.dsm.fordham.edu/pub/ftnchek/%{name}-%{version}.tar.bz2
# From Fedora package
Patch10:	ftnchek-3.3.1-bison26.patch
Patch11:	ftnchek-3.3.1-varfmt.patch
Buildrequires:	bison
Buildrequires:	groff
Buildrequires:	groff-for-man

%description
Ftnchek (short for Fortran checker) is designed to detect certain errors in a
Fortran program that a compiler usually does not.

Ftnchek is not primarily intended to detect syntax errors.
Its purpose is to assist the user in finding semantic errors.
Semantic errors are legal in the Fortran language but are wasteful or may
cause incorrect operation.

%files
%doc README PATCHES FAQ LICENSE dcl2inc.ps ftnchek.ps html
%attr (0755,root,root) %{_bindir}/*
%attr (0644,root,root) %{_mandir}/man1/*
%attr (0644,root,root) %{_datadir}/emacs/site-lisp/*
%{_libdir}/*.awk

#----------------------------------------------------------------------------

%prep
%setup -q
%patch10 -p1
%patch11 -p1
touch `find . -type f`

#Stop configure from overriding CFLAGS
sed -i -e 's/CFLAGS="-DUNIX.*"//' configure

%build
export CFLAGS="%{optflags} -DUNIX"
%configure
make || :
make
cd test
make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp
%makeinstall STRIP=true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1680 |21cr|ftplib-4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname ftp %{major}
%define devname %mklibname ftp -d

Summary:	FTP Library Routines
Name:		ftplib
Version:	4.0
Release:	5
License:	Artistic
Group:		System/Libraries
Url:		http://nbpfaus.net/~pfau/ftplib/
Source0:	http://www.nbpfaus.net/~pfau/ftplib/%{name}-%{version}.tar.gz

%description
This package implements a callable interface to FTP. The FTP
protocol is specified in RFC 959.

#----------------------------------------------------------------------------

%package -n qftp
Summary:	Command line driven ftp file transfer program
Group:		Networking/File transfer

%description -n qftp
qftp performs directories or file transfers using the ftp protocol
based on the command it was invoked with and command line arguments.

%files -n qftp
%doc README.qftp
%{_bindir}/ftp*
%{_bindir}/qftp

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of ftplib
Group:		System/Libraries

%description -n %{libname}
This package implements a callable interface to FTP. The FTP
protocol is specified in RFC 959.

This package contains the library needed to run programs dynamically
linked with ftplib.

%files -n %{libname}
%doc CHANGES README.ftplib-%{version} LICENSE
%{_libdir}/libftp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and static library for ftplib development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libftp-devel = %{EVRD}
Provides:	ftp-devel = %{EVRD}

%description -n %{devname}
This package implements a callable interface to FTP. The FTP
protocol is specified in RFC 959.

This package contains the headers and static library that
programmers will need to develop applications which will use
ftplib.

%files -n %{devname}
%doc CHANGES README.ftplib-%{version} LICENSE
%{_libdir}/*.so
%{_includedir}/%{name}.h

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i 's,/usr/local/bin,$(DESTDIR)%{_bindir},' src/Makefile
sed -i 's,/usr/local/lib,$(DESTDIR)%{_libdir},' src/Makefile
sed -i 's,/usr/local/include,$(DESTDIR)%{_includedir},' src/Makefile

%build
cd src
%make DEBUG="%{optflags}"

%install
cd src
install -d -m755 %{buildroot}%{_bindir}
install -d -m755 %{buildroot}%{_libdir}
install -d -m755 %{buildroot}%{_includedir}
%makeinstall_std

# unstripped-binary-or-object
chmod 0755 %{buildroot}%{_libdir}/libftp.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1681 |21cr|ftpproxy-1.2.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    ftpproxy
%define version 1.2.3
%define release 10
%define Summary Application level gateway for FTP

Summary:        %Summary
Name:           %name
Version:        %version
Release:        %release
License:        GPL
Group:          Networking/File transfer
URL:            http://www.ftpproxy.org/
Source0:        %name-%version.tar.bz2

%description
ftp.proxy is an application level gateway for FTP. It sits between a client and
a server forwarding command and data streams supporting a subset of the file
transfer protocol as described in RFC 959.

Beside this basic function which makes the program useful on firewall or
masqueraders it offers fixing the FTP server (e.g. for connections into a
protected LAN) and proxy authentication.

%prep
%setup -q

%build
%make

%install
rm -rf %buildroot

%__mkdir_p %{buildroot}%{_bindir}
%__cp src/ftp.proxy %{buildroot}%{_bindir}

%clean
rm -rf %buildroot

%files
%defattr(0755,root,root,0755)
%_bindir/*
%defattr(0644,root,root,0755)
%doc HISTORY INSTALL LICENSE doc/rfc2389.txt doc/rfc959.txt
%doc samples/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1682 |21cr|ftpsync-1.81-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ftpsync
Version:	1.81
Release:	4
Summary:	Tool to synchronize a remote FTP-served with a local directory
Source0:	http://www.linux-france.org/prj/ftpsync/dist/%{name}-%{version}.tgz
License:	GPLv2
Group:		Networking/File transfer
Url:		http://www.linux-france.org/prj/ftpsync/
BuildArch:	noarch

%description
The command ftpsync is a tool allowing incremental and recursive FTP
transfer from a local directory to a remote FTP-served directory.

We sometimes need to mirror a set of files on a remote ftp server. The
perfect tool (rsync) is not always available.

Developing a script invoking a standard FTP client software will cause
useless transfers (all files again and again even if they have not
changed), and taking sub-directories into account will not be easy.

ftpsync is the adequate tool because it reduces the amount of data
transferred by not transferring a given local file if the remote copy
has an newer date (so the copy is already done and up to date) and the
same size (transfer completely done). The difference between system
clocks is taken into account using the ftp protocol. ftpsync is
somewhat "like" the rsync command but it uses the FTP protocol and
only transfers local files to a remote FTP server. Moreover it
implements the missing 'recursive PUT' FTP command.

%prep
%setup -q

%build

%install
%__rm -rf %{buildroot}
%__mkdir_p %{buildroot}%{_bindir}
%__install -m 755 ftpsync %{buildroot}%{_bindir}/ftpsync

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README VERSION GPL INSTALL TODO ChangeLog CREDITS
%{_bindir}/ftpsync

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1683 |21cr|funcoeszz-21.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Handy bash functions called zz*
Name:		funcoeszz
Version:	21.1
Release:	1
License:	GPLv2+
Group:		Text tools
Url:		http://funcoeszz.net/
Source0:	http://funcoeszz.net/funcoeszz
Source1:	zzwrapper
Requires:	lynx
BuildArch:	noarch

%description
Handy bash functions called zz*, to deal with files, internet dictionary
queries, freshmeat, and others.

%files
%{_bindir}/funcoeszz
%{_bindir}/zz*

#----------------------------------------------------------------------------

%prep

%build

%install
install -d %{buildroot}%{_bindir}
install -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/funcoeszz
install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/zzwrapper
pushd %{buildroot}%{_bindir}
grep '^zz.*()' funcoeszz | sed 's,(),,g' | xargs -n1 ln -s zzwrapper
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1684 |21cr|funkload-1.17.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           funkload
Version:        1.17.1
Release:        2
Summary:        Functional and Load Web Tester
License:        GPL-2.0
Group:          Networking/Other
Url:            http://funkload.nuxeo.org/
Source:         https://github.com/nuxeo/FunkLoad/archive/%{version}/FunkLoad-%{version}.tar.gz
# pbleser: remove shebangs from non-executable scripts
Patch1:         funkload-remove_shebang.patch
Patch2:         d7f20bf3d59f0f6fe64868cd7ff7aa0512e35cb8.patch
Patch3:         FunkLoad-1.17.1-fix-invalid-string-interpretation.patch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

Recommends:     python3-docutils
Recommends:     python3-webunit
Recommends:     gnuplot
Recommends:     tcpwatch
BuildArch:      noarch

%description
FunkLoad is a functional and load Web tester whose main use cases are
functional testing of Web projects (and thus regression testing as well),
performance testing, load testing (such as volume testing or longevity
testing), and stress testing. It can also be used to write Web agents to script
any Web repetitive task, like checking whether a site is alive.

%prep
%setup -q -n FunkLoad-%{version}
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
sed -i '/ez_/d' setup.py
%py3_build

%install
python3 setup.py install \
    --prefix="%{_prefix}" \
    --root=%{buildroot}

rm -rf "%{buildroot}%{py3_puresitedir}/funkload/demo"

%files
%doc CHANGES.txt LICENSE.txt README.txt THANKS TODO.txt
%{py3_puresitedir}/funkload
%{py3_puresitedir}/funkload-%{version}-py%{py3_ver}.egg-info
%{_bindir}/fl-build-report
%{_bindir}/fl-credential-ctl
%{_bindir}/fl-install-demo
%{_bindir}/fl-monitor-ctl
%{_bindir}/fl-record
%{_bindir}/fl-run-bench
%{_bindir}/fl-run-test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1685 |21cr|fuse-emulator-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fuse

Summary:	Free Unix Spectrum Emulator
Name:		fuse-emulator
Version:	1.6.0
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://fuse-emulator.sourceforge.net/
Source0:	https://sourceforge.net/projects/fuse-emulator/files/fuse/%{version}/%{oname}-%{version}.tar.gz
Source1:	%{oname}-icons.tar.bz2
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libspectrum) >= 1.5
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(zlib)

%description
What Fuse does have:

* Working 16K/48K/128K/+2/+2A/+3 Speccy, Timex TC2048/TC2068 and
  Pentagon 128 emulation, running at true Speccy speed on any computer
  you're likely to try it on.
* Support for loading from .tzx files.
* Sound (on systems supporting the Open Sound System, SDL, or OpenBSD/
  Solaris's /dev/audio).
* Emulation of most of the common joysticks used on the Spectrum
  (including Kempston, Sinclair and Cursor joysticks).
* Emulation of some of the printers you could attach to a Spectrum.
* Support for the RZX input recording file format, including
  'competition mode'.
* Emulation of the Spectrum +3e, ZXATASP and ZXCF IDE interfaces.

%files
%defattr(0644,root,root,0755)
%doc README THANKS COPYING AUTHORS ChangeLog
%attr(0755,root,root) %{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{oname}.*
%{_mandir}/*/*
%{_datadir}/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%setup -q -T -D -a1 -n %{oname}-%{version}

%build
autoreconf -fi
%configure \
	--with-gtk \
	--disable-gtk3 \
	--with-roms-dir=%{_datadir}/%{oname}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat<<EOF>%{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Fuse
Comment=Free Unix Spectrum Emulator
Exec=%{_bindir}/%{oname}
Icon=%{oname}
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

install -D -m 644 %{oname}16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{oname}.png
install -D -m 644 %{oname}32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{oname}.png
install -D -m 644 %{oname}48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{oname}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1686 |21cr|fuse-emulator-utils-1.4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fuse-utils

Summary:	A few tools to deal with ZX Spectrum emulator files
Name:		fuse-emulator-utils
Version:	1.4.3
Release:	2
License:	GPLv2+
Group:		Emulators
Url:		http://fuse-emulator.sourceforge.net/
Source0:	https://sourceforge.net/projects/fuse-emulator/files/fuse-utils/%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libspectrum) >= %{version}
BuildRequires:	pkgconfig(zlib)
%rename fuse-utils

%description
The Fuse utilities are a few tools which may be of occasional use when
dealing with ZX Spectrum emulator files. They were originally
distributed with Fuse, the Free Unix Spectrum Emulator, but are now
independent of Fuse and can be used on their own.

The available utilities are:

* createhdf: create an empty .hdf IDE hard disk image.
* listbasic: list the BASIC in a snapshot or tape file.
* rzxcheck: verify the digital signature in an RZX file.
* rzxdump: list the contents of an RZX input recording file.
* rzxtool: add, extract or remove the embedded snapshot from an RZX file,
  or compress or uncompress the file.
* scl2trd: convert .scl disk images to .trd disk images.
* snap2tzx: convert snapshots to TZX tape images.
* snapconv: convert between snapshot formats.
* tapeconv: convert between .tzx and .tap files.
* tzxlist: list the contents of a TZX file.

%files
%doc README AUTHORS ChangeLog
%{_bindir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1687 |21cr|fuseftp-0.8-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FTP module for FUSE
Name:		fuseftp
Version:	0.8
Release:	14
License:	GPLv1 or Artistic
Group:		Development/Perl
Url:		https://github.com/marcust/fuseftp
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	perl-devel
Requires:	fuse
Requires:	perl-Cache
Buildarch:	noarch

%description
FTP module for FUSE.

%files
%doc README
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
perl Makefile.PL INSTALLDIRS=vendor

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1688 |21cr|fusesmb-0.8.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Browse your network neighbourhood as if it were on your own filesystem
Name:		fusesmb
Version:	0.8.7
Release:	7
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.ricardis.tudelft.nl/~vincent/fusesmb/
Source0:	http://www.ricardis.tudelft.nl/~vincent/fusesmb/download/%{name}-%{version}.tar.gz
Patch0:		fusesmb-0.8.7-fix-str-fmt.patch
Patch1:		fusesmb-0.8.7-smb4.patch
BuildRequires:	samba-client
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(smbclient)
Requires:	fuse
Requires:	samba-client

%description
With SMB for Fuse you can seamlessly browse your network neighbourhood
as if it were on your own filesystem.

It's basically smbmount with a twist. Instead of mounting one Samba share
at a time, you mount all workgroups, hosts and shares at once. Only when
you're accessing a share a connection is made to the remote computer. 

%files
%doc TODO AUTHORS README INSTALL ChangeLog COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}.cache
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.conf.5*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
CFLAGS="%{optflags} $(pkg-config --cflags smbclient)" %configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1689 |21cr|fuse-utils-1.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Fuse utilities are a few tools to deal with ZX Spectrum emulator files
Name:		fuse-utils
Version:	1.4.3
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://fuse-emulator.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
BuildRequires:	jpeg-devel
BuildRequires:	libspectrum-devel >= %{version}
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)

%description
The available utilities are:

* audio2tape: convert an audio file to tape format.
* createhdf: create an empty .hdf IDE hard disk image.
* fmfconv: converter tool for FMF movie files.
* listbasic: list the BASIC in a snapshot or tape file.
* profile2map: convert Fuse profiler output to Z80-style map format.
* raw2hdf: create a .hdf IDE hard disk image from another file.
* rzxcheck: verify the digital signature in an RZX file.
* rzxdump: list the contents of an RZX input recording file.
* rzxtool: add, extract or remove the embedded snapshot from an RZX file,
	or compress or uncompress the file.
* scl2trd: convert .scl disk images to .trd disk images.
* snap2tzx: convert snapshots to TZX tape images.
* snapconv: convert between snapshot formats.
* tape2pulses: dumps the pulse information from tape images to text files.
* tape2wav: convert a tape file to .wav audio format.
* tapeconv: convert between .tzx and .tap files.
* tzxlist: list the contents of a TZX, TAP, PZX or Warajevo TAP file.

%files
%doc README AUTHORS ChangeLog
%{_bindir}/audio2tape
%{_bindir}/createhdf
%{_bindir}/fmfconv
%{_bindir}/listbasic
%{_bindir}/profile2map
%{_bindir}/raw2hdf
%{_bindir}/rzxcheck
%{_bindir}/rzxdump
%{_bindir}/rzxtool
%{_bindir}/scl2trd
%{_bindir}/snap2tzx
%{_bindir}/snapconv
%{_bindir}/snapdump
%{_bindir}/tape2pulses
%{_bindir}/tape2wav
%{_bindir}/tapeconv
%{_bindir}/tzxlist
%{_mandir}/man1/audio2tape.1*
%{_mandir}/man1/createhdf.1*
%{_mandir}/man1/fmfconv.1*
%{_mandir}/man1/fuse-utils.1*
%{_mandir}/man1/listbasic.1*
%{_mandir}/man1/profile2map.1*
%{_mandir}/man1/raw2hdf.1*
%{_mandir}/man1/rzxcheck.1*
%{_mandir}/man1/rzxdump.1*
%{_mandir}/man1/rzxtool.1*
%{_mandir}/man1/scl2trd.1*
%{_mandir}/man1/snap2tzx.1*
%{_mandir}/man1/snapconv.1*
%{_mandir}/man1/snapdump.1*
%{_mandir}/man1/tape2pulses.1*
%{_mandir}/man1/tape2wav.1*
%{_mandir}/man1/tapeconv.1*
%{_mandir}/man1/tzxlist.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1690 |21cr|fusil-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Framework for fuzzing
Name: 		fusil
Version: 	1.5
Release: 	1
License: 	GPL
Group: 		Development/Other
URL: 		http://fusil.hachoir.org/trac
Source0: 	http://pypi.python.org/packages/source/f/%{name}/%{name}-%{version}.tar.gz
BuildArch: 	noarch
BuildRequires: 	python3-devel
Requires: 	python3-ptrace

%description
Fusil the fuzzer is a Python library used to write fuzzing programs.
It helps to start process with a prepared environment (limit memory,
environment variables, redirect stdout, etc.), start network client
or server, and create mangled files. Fusil has many probes to detect
program crash: watch process exit code, watch process stdout and
syslog for text patterns (eg. "segmentation fault"), watch session
duration, watch cpu usage (process and system load), etc.

%prep
%setup -q

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc AUTHORS COPYING INSTALL README README.windows.txt TODO
%{_bindir}/%{name}-*
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1691 |21cr|fusion-icon-0.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20100215

%if  %{git}
# git clone git://anongit.compiz-fusion.org/users/crdlb/fusion-icon
# git archive --format=tar --prefix=fusion-icon-$(date +%Y%m%d)/ master | bzip2 > ../fusion-icon-$(date +%Y%m%d).tar.bz2
%define distname %{name}-%{git}
%define rel 0.%{git}.5
%else
%define distname %{name}-%{version}
%define rel 1
%endif

Name:		fusion-icon
Version:	0.2.4
Release:	1
Summary:	Simple tray icon for compiz fusion
Group:		System/X11
License:	GPLv2
URL:		http://www.compiz-fusion.org/
Source:		%{distname}.tar.bz2
Patch0:		fusion-icon-20071127-icon32.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(python)
Requires:	python-compizconfig0.8
Requires:	pygtk2.0
Requires:	glxinfo
Requires:	xvinfo
BuildArch:	noarch

%description
fusion-icon is a simple tray icon for compiz fusion.

%prep
%setup -q -n %{distname}
%patch0 -p1 -b .icon32

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

desktop-file-install \
	--vendor="" \
	--remove-category="Compiz" \
	--add-category="Settings" \
	--add-category="DesktopSettings" \
	--add-category="X-MandrivaLinux-CrossDesktop" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%{_bindir}/%{name}
%{py_puresitedir}/FusionIcon
%{py_puresitedir}/*.egg-info
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1692 |21cr|fusioninventory-agent-2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
## Disabling debug package
## Can't build as noarch due to dmidecode requires
%global debug_package %{nil}


Name:        fusioninventory-agent
Summary:     FusionInventory agent
Group:       System/Servers
License:     GPLv2+
URL:         http://fusioninventory.org/

Version:     2.6
Release:     1
Source0:     https://github.com/fusioninventory/%{name}/releases/download/%{version}/FusionInventory-Agent-%{version}.tar.gz
Source1:     %{name}.cron
Source10:    %{name}.service

Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires: coreutils
BuildRequires: findutils
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl-interpreter
BuildRequires: perl(Config)
BuildRequires: perl(English)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Module::AutoInstall)
BuildRequires: perl(Module::Install::Include)
BuildRequires: perl(Module::Install::Makefile)
BuildRequires: perl(Module::Install::Metadata)
BuildRequires: perl(Module::Install::Scripts)
BuildRequires: perl(Module::Install::WriteAll)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: sed
BuildRequires: systemd

Requires:  perl-FusionInventory-Agent = %{version}-%{release}
Requires:  cronie
%ifarch %{ix86} x86_64
Requires:  dmidecode
%endif

# excluding internal requires and windows stuff
# excluding perl(setup) and windows stuff
%{?perl_default_filter}
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(setup\\)$
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Win32|setup\\)$

%description
FusionInventory Agent is an application designed to help a network
or system administrator to keep track of the hardware and software
configurations of computers that are installed on the network.

This agent can send information about the computer to a OCS Inventory NG
or GLPI server with the FusionInventory for GLPI plugin.

You can add additional packages for optional tasks:

* fusioninventory-agent-task-network
    Network Discovery and Inventory support
* fusioninventory-agent-inventory
    Local inventory support for FusionInventory
* fusioninventory-agent-task-deploy
    Software deployment support
* fusioninventory-agent-task-esx
    vCenter/ESX/ESXi remote inventory
* fusioninventory-agent-task-collect
    Custom information retrieval support
* fusioninventory-agent-task-wakeonlan
    Wake o lan task


%package -n perl-FusionInventory-Agent
Summary:        Libraries for Fusioninventory agent
Group:          System/Servers
BuildArch:      noarch
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires:       perl(LWP)
Requires:       perl(Net::CUPS)
Requires:       perl(Net::SSLeay)
Requires:       perl(Proc::Daemon)
Requires:       perl(Socket::GetAddrInfo)

%description -n perl-FusionInventory-Agent
Libraries for Fusioninventory agent.

%package task-esx
Summary:    FusionInventory plugin to inventory vCenter/ESX/ESXi
Group:      System/Servers
BuildArch:  noarch
Requires:   %{name} = %{version}-%{release}

%description task-esx
fusioninventory-agent-task-ESX ask the running service agent to inventory an 
VMWare vCenter/ESX/ESXi server through SOAP interface


%package task-network
Summary:    NetDiscovery and NetInventory task for FusionInventory
Group:          System/Servers
BuildArch:      noarch
Requires:       %{name} = %{version}-%{release}

%description task-network
fusioninventory-task-netdiscovery and fusioninventory-task-netinventory

%package task-deploy
Summary:    Software deployment support for FusionInventory agent
Group:      System/Servers
BuildArch:  noarch
Requires:   %{name} = %{version}-%{release}
Requires:   perl(Archive::Extract)

%description task-deploy
This package provides software deployment support for FusionInventory-agent

%package task-wakeonlan
Summary:    WakeOnLan task for FusionInventory
Group:      System/Servers
BuildArch:  noarch
Requires:   %{name} = %{version}-%{release}

%description task-wakeonlan
fusioninventory-task-wakeonlan

%package task-inventory
Summary:    Inventory task for FusionInventory
Group:      System/Servers
Requires:   %{name} = %{version}-%{release}
Requires:   perl(Net::CUPS)
Requires:   perl(Parse::EDID)

%description task-inventory
fusioninventory-task-inventory

%package task-collect
Summary:    Custom information retrieval support for FusionInventory agent
Group:      System/Servers
Requires:   %{name} = %{version}-%{release}

%description task-collect
This package provides custom information retrieval support for
FusionInventory agent

%package cron
Summary:    Cron for FusionInventory agent
Group:      System/Servers
Requires:   %{name} = %{version}-%{release}

%description cron
fusioninventory cron task

#-------------------------------------------------------
%prep
%setup -q -n FusionInventory-Agent-%{version}

# Remove bundled modules
rm -rf ./inc
sed -e '/^inc\//d' -i MANIFEST

sed \
    -e "s/logger = .*/logger = syslog/" \
    -e "s/logfacility = .*/logfacility = LOG_DAEMON/" \
    -e 's|#include "conf\.d/"|include "conf\.d/"|' \
    -i etc/agent.cfg

cat <<EOF | tee %{name}.conf
#
# Fusion Inventory Agent Configuration File
# used by hourly cron job to override the %{name}.cfg setup.
#
# /!\
# USING THIS FILE TO OVERRIDE SERVICE OPTIONS IS DEPRECATED!
# See %{_unitdir}/%{name}.service notice
#
# Add tools directory if needed (tw_cli, hpacucli, ipssend, ...)
PATH=/sbin:/bin:/usr/sbin:/usr/bin
# Global options (debug for verbose log)
OPTIONS="--debug "

# Mode, change to "cron" to activate
# - none (default on install) no activity
# - cron (inventory only) use the cron.hourly
OCSMODE[0]=none
# OCS Inventory or FusionInventory server URI
# OCSSERVER[0]=your.ocsserver.name
# OCSSERVER[0]=http://your.ocsserver.name/ocsinventory
# OCSSERVER[0]=http://your.glpiserveur.name/glpi/plugins/fusioninventory/
# corresponds with --local=%{_localstatedir}/lib/%{name}
# OCSSERVER[0]=local
# Wait before inventory (for cron mode)
OCSPAUSE[0]=120
# Administrative TAG (optional, must be filed before first inventory)
OCSTAG[0]=

EOF


%build
perl Makefile.PL \
     PREFIX=%{_prefix} \
     SYSCONFDIR=%{_sysconfdir}/fusioninventory \
     LOCALSTATEDIR=%{_localstatedir}/lib/%{name} \
     VERSION=%{version}-%{release}

make %{?_smp_mflags}


%install
make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'

%{_fixperms} %{buildroot}/*

mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/fusioninventory/conf.d
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d

install -m 644 -D  %{name}.conf  %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m 755 -Dp %{SOURCE1}    %{buildroot}%{_sysconfdir}/cron.hourly/%{name}
install -m 644 -D  %{SOURCE10}   %{buildroot}%{_unitdir}/%{name}.service


%check
#make test

%post
%systemd_post fusioninventory-agent.service


%preun
%systemd_preun fusioninventory-agent.service


%postun
%systemd_postun_with_restart fusioninventory-agent.service


%files
%dir %{_sysconfdir}/fusioninventory
%config(noreplace) %{_sysconfdir}/fusioninventory/agent.cfg
%config(noreplace) %{_sysconfdir}/fusioninventory/conf.d
%config(noreplace) %{_sysconfdir}/fusioninventory/inventory-server-plugin.cfg
%config(noreplace) %{_sysconfdir}/fusioninventory/server-test-plugin.cfg
%config(noreplace) %{_sysconfdir}/fusioninventory/ssl-server-plugin.cfg
%config(noreplace) %{_sysconfdir}/fusioninventory/proxy-server-plugin.cfg
%config(noreplace) %{_sysconfdir}/fusioninventory/proxy2-server-plugin.cfg

%{_unitdir}/%{name}.service
%dir %{_sysconfdir}/systemd/system/%{name}.service.d
%{_bindir}/fusioninventory-agent
%{_bindir}/fusioninventory-injector
%{_mandir}/man1/fusioninventory-agent*
%{_mandir}/man1/fusioninventory-injector*
%dir %{_localstatedir}/lib/%{name}
%dir %{_datadir}/fusioninventory
%dir %{_datadir}/fusioninventory/lib
%dir %{_datadir}/fusioninventory/lib/FusionInventory
%dir %{_datadir}/fusioninventory/lib/FusionInventory/Agent
%dir %{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task


%files -n perl-FusionInventory-Agent
%doc Changes LICENSE THANKS
#excluding sub-packages files
#%%exclude %%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/*
%{_datadir}/fusioninventory

%files task-esx
%{_bindir}/fusioninventory-esx
%{_mandir}/man1/fusioninventory-esx.1*
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/ESX.pm
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/SOAP

%files task-network
%{_bindir}/fusioninventory-netdiscovery
%{_bindir}/fusioninventory-netinventory
%{_mandir}/man1/fusioninventory-netdiscovery.1*
%{_mandir}/man1/fusioninventory-netinventory.1*
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/NetDiscovery.pm
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/NetInventory.pm

%files task-deploy
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Deploy.pm
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Deploy

%files task-wakeonlan
%{_bindir}/fusioninventory-wakeonlan
%{_mandir}/man1/fusioninventory-wakeonlan.1*
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/WakeOnLan.pm

%files task-inventory
%{_bindir}/fusioninventory-inventory
%{_bindir}/fusioninventory-remoteinventory
%{_mandir}/man1/fusioninventory-*inventory.1*
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Inventory.pm
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Inventory

%files task-collect
%{_datadir}/fusioninventory/lib/FusionInventory/Agent/Task/Collect.pm

%files cron
%{_sysconfdir}/cron.hourly/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1693 |21cr|fusionpbx-5.1.0-1.git31ae51.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 31ae516a4983a07670a51b98b4e969f661bc577f
%define commit_short %(echo %{commit} | head -c6)

%bcond_with nginx
%bcond_with postgresql

Summary:	FusionPBX - A full-featured domain based multi-tenant PBX
Name:		fusionpbx
Version:	5.1.0
Release:	1.git%{commit_short}.1
License:	MPL
Group:		Communications
URL:		http://www.freeswitch.org
Source0:	https://github.com/fusionpbx/fusionpbx/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	fusionpbx-configure.sh
Source2:	fusionpbx.sysusers.conf
Source3:	fusionpbx-apache.conf
Source4:	config.php
Source10:	%{name}.rpmlintrc
Requires:	php
Requires:	php-cli
Requires:	php-pdo
Requires:	php-fpm php-gd php-curl php-opcache php-imap
Requires:	freeswitch
Requires:	freeswitch-sounds-music
Requires:	freeswitch-application-db
%if %{with nginx}
Requires:	nginx
%else
Requires:	apache-base
Requires:	apache-mod_php
%endif
%if %{with postgresql}
Requires:	postgresql-server
Requires:	php-psql
Requires:	php-pdo-pgsql
Requires:	freeswitch-database-pgsql
%else
Requires:	mariadb-server
Requires:	php-mysql
Requires:	php-pdo_mysql
Requires:	freeswitch-database-mariadb
#Requires:	mariadb-connector-odbc
%endif
Requires:	freeswitch-xml-cdr
Requires(pre):	user(freeswitch)
Requires(post):	group(apache)
Recommends:	fail2ban
Recommends:	memcached
Recommends:	firewalld
BuildArch:	noarch

%description
FusionPBX - A full-featured domain based multi-tenant PBX and 
voice switch for FreeSwitch.

%files
%attr(0744,-,-) %{_bindir}/fusionpbx-configure.sh
%attr(-,freeswitch,daemon) %{_localstatedir}/www/fusionpbx
%attr(0640,freeswitch,daemon) %{_localstatedir}/cache/fusionpbx
%{_sysconfdir}/httpd/conf.d/fusionpbx.conf
%attr(-,freeswitch,daemon) %{_sysusersdir}/fusionpbx.conf
%attr(-,freeswitch,daemon) %dir %{_sysconfdir}/fusionpbx
%attr(0640,freeswitch,daemon) %{_sysconfdir}/fusionpbx/config.php

%post
%if %{without nginx}
# if apache use, add freeswitch to group apache to avoid problems with /var/lib/php/sessions directory
%sysusers_create %{name}.conf
%endif

#---------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}

%build
# nothing to do here

%install
mkdir -p %{buildroot}%{_localstatedir}/www/fusionpbx
cp -R . %{buildroot}%{_localstatedir}/www/fusionpbx

mkdir -p %{buildroot}%{_bindir}
cp %{SOURCE1} %{buildroot}%{_bindir}

#add cache dir
mkdir -p %{buildroot}%{_localstatedir}/cache/fusionpbx

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/fusionpbx.conf

# install apache template
install -d %{buildroot}%{_sysconfdir}/httpd/conf.d/
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/fusionpbx.conf

%if %{without postgresql}
# configure freeswitch to use mariadb
	sed -i 's/module="mod_pgsql"/module="mod_mariadb"/' %{buildroot}%{_localstatedir}/www/fusionpbx/app/switch/resources/conf/autoload_configs/pre_load_modules.conf.xml

#install config.php with configured mariadb connection for fusionpbx
install -d %{buildroot}%{_sysconfdir}/fusionpbx
install -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/fusionpbx/config.php
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1694 |21cr|fusionsound-1.6.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with ffmpeg

%define oname FusionSound

%define api 1.6
%define major 2
%define libname %mklibname %{name}-%{api}_ %{major}
%define devname %mklibname %{name} -d

%define dfbmoduledir %(pkg-config --variable=moduledir direct)

Summary:	An audio sub system
Name:		fusionsound
Version:	1.6.3
Release:	10
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.directfb.org
Source0:	http://www.directfb.org/downloads/Core/%{oname}-%{version}.tar.gz
Patch0:		FusionSound-1.6.2-ffmpeg1.0.patch
Patch1:		FusionSound-1.6.3-ffmpeg2.0.patch
Patch2:		FusionSound-1.6.3-ffmpeg2.4.patch
%if %{with ffmpeg}
BuildRequires:	ffmpeg-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(directfb)
BuildRequires:	pkgconfig(libcddb)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(vorbis)
Provides:	%{oname} = %{version}-%{release}

%description
FusionSound is a very powerful audio sub system in the
manner of DirectFB and a technical demonstration of Fusion.

FusionSound supports multiple applications using Fusion IPC.
It provides streams, static sound buffers and control over any
number of concurrent playbacks. Sample data is always stored
in shared memory, starting a playback simply adds an entry to
the playlist of the mixer thread in the master application.

%files
%doc AUTHORS ChangeLog TODO
%doc %{_datadir}/doc/%{name}/html/
%{_bindir}/fs*
%{_mandir}/*/%{name}*
%dir %{dfbmoduledir}/interfaces/IFusionSound
%{dfbmoduledir}/interfaces/IFusionSound/libifusionsound.*
%dir %{dfbmoduledir}/interfaces/IFusionSoundMusicProvider
%{dfbmoduledir}/interfaces/IFusionSoundMusicProvider/libifusionsoundmusicprovider_cdda.*
%if %{with ffmpeg}
%{dfbmoduledir}/interfaces/IFusionSoundMusicProvider/libifusionsoundmusicprovider_ffmpeg.*
%endif
%{dfbmoduledir}/interfaces/IFusionSoundMusicProvider/libifusionsoundmusicprovider_mad.*
%{dfbmoduledir}/interfaces/IFusionSoundMusicProvider/libifusionsoundmusicprovider_playlist.*
%{dfbmoduledir}/interfaces/IFusionSoundMusicProvider/libifusionsoundmusicprovider_vorbis.*
%{dfbmoduledir}/interfaces/IFusionSoundMusicProvider/libifusionsoundmusicprovider_wave.*
%dir %{dfbmoduledir}/snddrivers
%{dfbmoduledir}/snddrivers/libfusionsound_alsa.*
%{dfbmoduledir}/snddrivers/libfusionsound_oss.*
%{dfbmoduledir}/snddrivers/libfusionsound_wave.*
%{dfbmoduledir}/snddrivers/libfusionsound_dummy.*

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	An audio sub sytem
Obsoletes:	%{_lib}fusionsound2 < 1.6.3-3

%description -n %{libname}
FusionSound is a very powerful audio sub system in the
manner of DirectFB and a technical demonstration of Fusion. 

FusionSound supports multiple applications using Fusion IPC.
It provides streams, static sound buffers and control over any
number of concurrent playbacks. Sample data is always stored
in shared memory, starting a playback simply adds an entry to
the playlist of the mixer thread in the master application.

%files -n %{libname}
%doc ChangeLog
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Group:		Development/Other
Summary:	An audio sub system
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
FusionSound is a very powerful audio sub system in the
manner of DirectFB and a technical demonstration of Fusion.

FusionSound supports multiple applications using Fusion IPC.
It provides streams, static sound buffers and control over any
number of concurrent playbacks. Sample data is always stored
in shared memory, starting a playback simply adds an entry to
the playlist of the mixer thread in the master application.

%files -n %{devname}
%doc AUTHORS ChangeLog TODO
%{_libdir}/pkgconfig/fusionsound*.pc
%{_includedir}/fusionsound
%{_includedir}/fusionsound-internal
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
%configure \
%if %{with ffmpeg}
	--with-ffmpeg
%else
	--without-ffmpeg
%endif
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1695 |21cr|fuzzylite-6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

Summary:	A fuzzy logic control library in C++
Name:		fuzzylite
Version:	6.0
Release:	2
License:	LGPLv3+
Group:		System/Libraries
Url:		http://www.fuzzylite.com
Source0:	https://github.com/fuzzylite/fuzzylite/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
Fuzzylite is a free and open-source fuzzy logic control library programmed
in C++ for multiple platforms (Windows, Linux, Mac, iOS). Its goal is to
allow you to easily create fuzzy logic controllers in a few steps utilizing
object-oriented programming without requiring any third-party libraries.

%files
%doc AUTHOR COPYING README.md
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A fuzzy logic control library in C++
Group:		System/Libraries

%description -n %{libname}
Fuzzylite is a free and open-source fuzzy logic control library programmed
in C++ for multiple platforms (Windows, Linux, Mac, iOS). Its goal is to
allow you to easily create fuzzy logic controllers in a few steps utilizing
object-oriented programming without requiring any third-party libraries.


%files -n %{libname}
%{_libdir}/libfuzzylite.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%dir %{_includedir}/fl
%{_includedir}/fl/*
%{_libdir}/libfuzzylite.so
%{_libdir}/libfuzzylite*.a
%{_libdir}/pkgconfig/fuzzylite.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
pushd %{name}
%cmake \
	-DFL_CPP11:BOOL=ON \
	-DFL_BUILD_STATIC=ON \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DFL_USE_FLOAT=OFF
%make VERBOSE=1
popd

%install
%makeinstall_std -C %{name}/build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1696 |21cr|fvwm2-2.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# for fix lang files find
%define _duplicate_files_terminate_build 0

# These are bogus as they're all internal, nothing else can use 'em
# The perl-Gtk requires is also not really necessary
# Inspired by Fedora - AdamW 2008/08
%global __requires_exclude perl(\\(FvwmCommand\\)|\\(FVWM::|\\(General::)
%global __provides_exclude perl(\\(FvwmCommand\\)|\\(FVWM::|\\(General::)

Summary:	Highly configurable multiple virtual desktop window manager
Name:		fvwm2
Version:	2.7.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/FVWM based
Url:		http://www.fvwm.org/
Source0:	https://github.com/fvwmorg/fvwm/releases/download/%{version}/fvwm-%{version}.tar.gz
Source1:	fvwm.desktop
Patch1:		fvwm-0001-Change-html-viewer-to-xdg-open.patch
Patch2:		fvwm-0002-Use-mimeopen-instead-of-EDITOR.patch
# This patch will NEVER be included in the official FVWM and that's why:
#
# https://bugs.gentoo.org/show_bug.cgi?id=411811#c7
# https://github.com/ThomasAdam/fvwm/pull/4#issuecomment-5712410
#
# https://github.com/ThomasAdam/fvwm/issues/5
Patch4:		fvwm-0004-FvwmPager-be-more-careful-with-window-labels.patch

# Fedora-specific
Patch5:		fvwm-0005-Skip-install-data-hook-for-default-configs.patch
BuildRequires:	flex
BuildRequires:	xsltproc
BuildRequires:	libstroke-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)
Requires:	fvwm-icons
# for www-browser
Requires:	desktop-common-data
# for fvwm-bug
Requires:	sendmail-command
# for fvwm-menu-headlines
Requires:	xdg-utils
# for fvwm-menu-xlock
Requires:	xlockmore
# for auto-menu generation
Requires:	imagemagick
Requires:	python3-pyxdg
Requires:	xterm
Requires:	%{_bindir}/mimeopen
Requires:	xdg-compliance-menu

%description
Fvwm is a window manager for X11. It is designed to
minimize memory consumption, provide a 3D look to window frames,
and implement a virtual desktop.

%files -f fvwm.lang
%doc NEWS doc
%{_mandir}/man1/*
%{_bindir}/*
%{_libexecdir}/fvwm
%{_datadir}/fvwm
%{_datadir}/xsessions/fvwm.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n fvwm-%{version}

%build
%configure --enable-mandoc


%make

%install
%makeinstall_std

%find_lang fvwm
%find_lang FvwmScript
cat FvwmScript.lang >> fvwm.lang

# xsession
install -D -m0644 -p %{SOURCE1} \
    %{buildroot}%{_datadir}/xsessions/fvwm.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1697 |21cr|fvwm-icons-20070101-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FVWM icons
Name:		fvwm-icons
Version:	20070101
Release:	4
License:	GPLv2+
Group:		Graphical desktop/FVWM based
Url: 		http://www.fvwm.org/
Source0:	http://www.fvwm.org/generated/icon_download/fvwm_icons-%{version}.tar.bz2
Provides:	fvwm2-icons = %{EVRD}
BuildArch:	noarch

%description
The icons that used to be part of the fvwm source distribution are now
accessible separately.

%files
%{_iconsdir}/*.xpm
%{_miconsdir}/*.xpm

#----------------------------------------------------------------------------

%prep
%setup -qn fvwm_icons-%{version}

%build

%install
shopt -s extglob
install -d -m 755 %{buildroot}%{_iconsdir}
install -d -m 755 %{buildroot}%{_miconsdir}

for i in mini.*; do
    install -m 644 $i %{buildroot}%{_miconsdir}/${i#mini.}
done
for i in !(mini.*); do
    install -m 644 $i %{buildroot}%{_iconsdir}/${i}
done

# prevent conflicts
rm -f %{buildroot}%{_iconsdir}/xemacs.xpm
rm -f %{buildroot}%{_miconsdir}/xmag.xpm
# From twm
rm -f %{buildroot}%{_miconsdir}/twm.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1698 |21cr|fwlogwatch-1.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Firewall log analyzer, report generator and realtime response agent
Name:		fwlogwatch
Version:	1.2
Release:	16
License:	GPLv2+
Group:		Monitoring
Url:		http://fwlogwatch.inside-security.de/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.service
Source2:	%{name}.sysconfig
Patch0:		fwlogwatch-mdv_conf.diff
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	adns-devel
BuildRequires:	pkgconfig(zlib)
Requires(post,preun):	rpm-helper
Requires(post,preun,postun):	systemd-units

%description
fwlogwatch produces ipchains, netfilter/iptables, ipfilter, Cisco IOS and
Cisco PIX log summary reports in text and HTML form and has a lot of options
to find and display relevant patterns in connection attempts. With the data
found it can also generate customizable incident reports from a template and
send them to abuse contacts at offending sites or CERT coordination centers.
Finally, it can also run as daemon and report anomalies or start
countermeasures.

%files -f %{name}.lang
%doc AUTHORS COPYING CREDITS ChangeLog README
%doc contrib/fwlogsummary.cgi contrib/fwlogsummary_small.cgi
%doc contrib/fwlogwatch.php contrib/fwlw_notify contrib/fwlw_respond
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/fwlogwatch.config
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_sbindir}/fwlogwatch
%{_sbindir}/fwlw_notify
%{_sbindir}/fwlw_respond
%{_mandir}/man8/fwlogwatch.8*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .paths

chmod 644 contrib/fwlogsummary.cgi contrib/fwlogsummary_small.cgi

# fix encoding
sed -i -e "s|iso-8859-1|UTF-8|g" *.c

%build
%serverbuild

%make CFLAGS="$CFLAGS -DHAVE_ZLIB -DHAVE_GETTEXT -DHAVE_IPV6 -DHAVE_ADNS" LIBS="-L%{_libdir} -lcrypt -lz -ladns"

# fix encoding
pushd po

for i in de pt sv; do
    sed -i -e "s|ISO-8859-1|UTF-8|g" $i.po
    iconv --from-code=ISO-8859-1 --to-code=UTF-8 $i.po > $i.po.new; mv $i.po.new $i.po
done

for i in de ja pt sv zh_CN zh_TW; do
    msgfmt -v -o $i.mo $i.po
done

popd

%install
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8

install -D -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

install -m0755 fwlogwatch %{buildroot}%{_sbindir}
install -m0755 contrib/fwlw_notify %{buildroot}%{_sbindir}
install -m0755 contrib/fwlw_respond %{buildroot}%{_sbindir}
install -m0644 fwlogwatch.8 %{buildroot}%{_mandir}/man8
install -m0644 fwlogwatch.config %{buildroot}%{_sysconfdir}/

for i in de ja pt sv zh_CN zh_TW; do
    install -d %{buildroot}%{_datadir}/locale/${i}/LC_MESSAGES
    install -m0644 po/${i}.mo %{buildroot}%{_datadir}/locale/${i}/LC_MESSAGES/fwlogwatch.mo
done

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1699 |21cr|fwmon-1.1.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A linux netlink firewall monitor
Name:		fwmon
Version:	1.1.0
Release:	15
License:	GPLv2+
Group:		System/Servers
Url:		http://www.scaramanga.co.uk/fwmon/
Source0:	%{name}-%{version}.tar.bz2
# http://qa.mandriva.com/show_bug.cgi?id=36213
Patch0:		fwmon-1.1.0-mb.patch
Patch1:		fwmon-1.1.0-sfmt.patch
Buildrequires:	pcap-devel

%description
This program allows you to monitor ipchains/iptables output in realtime.
It  supports both logging to a file/stdout and/or to tcpdump format
capture logs. It also supports security features such as running
non-root, and chrooting itself.

%files
%defattr(0644,root,root)
%config(noreplace) %{_sysconfdir}/logrotate.d/fwmon
%defattr(0755,root,root)
%{_sbindir}/fwmon
%defattr(644,root,root,755)
%doc README README.2nd README.chroot COPYING
%doc initdb.sql
%{_mandir}/man8/*

%post
# Add the fwmon user
adduser -d /var/log/fwmon -s /bin/false -M fwmon 2>/dev/null || true

# Add the fwmon directory if it isnt already there
if [ ! -d /var/log/fwmon ]; then
	mkdir /var/log/fwmon
	chown fwmon.fwmon /var/log/fwmon
	chmod 700 /var/log/fwmon
fi

# Add a line to init
F_UID=`id -u fwmon`
F_GID=`id -g fwmon`
INITLINE="fw:2345:respawn:fwmon -sa -l /fwmon.log -t /fwmon.cap -u $F_UID -g $F_GID -c /var/log/fwmon"
echo "#$INITLINE" >> /etc/inittab

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .mb
%patch1 -p1

%build
%make CFLAGS="%{optflags} -fcommon -D_HAVE_LIBPCAP -I/usr/include/pcap"

%install
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8/
install -m 500 fwmon %{buildroot}%{_sbindir}/fwmon
install -m 644 fwmon.8 %{buildroot}%{_mandir}/man8/fwmon.8
install -m 644 logrotate.fwmon %{buildroot}%{_sysconfdir}/logrotate.d/fwmon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1700 |21cr|fwupd-1.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_ld_no_undefined 1

# Don't provide internal plugins
%global	__provides_exclude ^libfu_plugin_*\\.so$
%global	__noautoprovfiles 'libfu_plugin_*\\.so'

%define	major 2
%define	plugin_major 7
%define	libname %mklibname %{name} %{major}
%define	libplugin %mklibname %{name}plugin %{plugin_major}
%define	develname %mklibname %{name} -d

Summary:	Firmware update daemon
Name:		fwupd
Version:	1.9.5
Release:	1
License:	LGPLv2+
Group:		System/Configuration/Boot and Init
Url:		https://fwupd.org/
Source0:	https://github.com/fwupd/fwupd/releases/download/%{version}/%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	diffutils
BuildRequires:	fonts-ttf-google-noto-sans
BuildRequires:	gcab
BuildRequires:	gettext
BuildRequires:	git-core
BuildRequires:	gnu-efi
BuildRequires:	gnupg
BuildRequires:	gtk-doc
BuildRequires:	kernel-headers
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	pesign
BuildRequires:	protobuf-c
BuildRequires:	protobuf-compiler
BuildRequires:	python3-gi-docgen
%ifarch x86_64 aarch64
BuildRequires:	python3-gobject-cairo
BuildRequires:	python3-pillow
%endif
BuildRequires:	vala-tools
#BuildRequires:	valgrind
BuildRequires:	gpgme-devel
BuildRequires:	modemmanager-devel
BuildRequires:	tpm2-tss-devel
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(colord)
%ifarch aarch64
BuildRequires:	pkgconfig(efiboot)
%endif
%ifarch x86_64
BuildRequires:	pkgconfig(efivar)
BuildRequires:	pkgconfig(libsmbios_c)
%endif
BuildRequires:	pkgconfig(flashrom)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gusb)
BuildRequires:	pkgconfig(jcat)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libcbor)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(libgcab-1.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libprotobuf-c)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(mbim-glib)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(py3cairo)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(qmi-glib)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(umockdev-1.0)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(xmlb)
Requires:	bash-completion
Requires:	bubblewrap
Requires:	gsettings-desktop-schemas
Requires:	shared-mime-info
#Requires:	valgrind
# Optional stuff, but having it is really a good idea...
Recommends:	bluez
Recommends:	jq
Recommends:	modemmanager
Recommends:	udisks2
Requires:	%{libname} = %{EVRD}
%ifarch x86_64 aarch64
Requires:	%{libplugin} = %{EVRD}
%endif
ExclusiveArch:	x86_64 %{ix86} aarch64

%description
A simple daemon to allow session software to update device firmware on your
local machine.

%files -f %{name}.lang
%doc README.md
%license COPYING
%config(noreplace) %{_sysconfdir}/%{name}/fwupd.conf
%ifarch %{ix86} x86_64
%{_libexecdir}/%{name}/%{name}-detect-cet
/lib/modules-load.d/%{name}-msr.conf
%endif
%ifarch x86_64 aarch64
%{_sysconfdir}/grub.d/35_%{name}
%endif
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/%{name}/remotes.d/*.conf
%{_datadir}/bash-completion/completions/%{name}*
%{_datadir}/dbus-1/interfaces/org.freedesktop.%{name}.xml
%{_datadir}/dbus-1/system.d/org.freedesktop.%{name}.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.%{name}.service
%{_datadir}/metainfo/org.freedesktop.%{name}.metainfo.xml
%{_datadir}/%{name}/*
%{_datadir}/polkit-1/actions/org.freedesktop.%{name}.policy
%{_datadir}/polkit-1/rules.d/org.freedesktop.%{name}.rules
%dir %{_datadir}/%{name}
%dir %{_libexecdir}/%{name}
%dir %{_localstatedir}/lib/%{name}
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/remotes.d
%dir %{_sysconfdir}/pki/%{name}
%dir %{_sysconfdir}/pki/%{name}-metadata
%ghost %{_localstatedir}/lib/%{name}/gnupg
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_libdir}/girepository-1.0/*.typelib
%{_libdir}/%{name}-%{version}
%{_libexecdir}/%{name}/%{name}
%{_libexecdir}/%{name}/%{name}offline
/lib/systemd/system-shutdown/%{name}.shutdown
%{_mandir}/man1/*.1.*
%{_mandir}/man5/*.5.*
%{_mandir}/man8/*.8.*
%{_presetdir}/86-%{name}.preset
%{_sysconfdir}/pki/%{name}/*
%{_sysconfdir}/pki/%{name}-metadata/*
%{_udevrulesdir}/*.rules
%{_unitdir}/%{name}-offline-update.service
%{_unitdir}/%{name}-refresh.service
%{_unitdir}/%{name}-refresh.timer
%{_unitdir}/%{name}.service
%{_unitdir}/system-update.target.wants/

%post
%systemd_post %{name}.service

# change vendor-installed remotes to use the default keyring type
for fn in %{_sysconfdir}/%{name}/remotes.d/*.conf; do
	if grep -q "Keyring=gpg" "$fn"; then
		sed -i 's/Keyring=gpg/#Keyring=pkcs/g' "$fn";
	fi
done

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
Library for %{name}.

%files -n %{libname}
%license COPYING
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{libplugin}
Summary:	Library for %{name} plugins
Group:		System/Libraries

%description -n %{libplugin}
Library for %{name} plugins.

%ifarch x86_64 aarch64
%files -n %{libplugin}
%license COPYING
%{_datadir}/%{name}/uefi-capsule-ux.tar.xz
%endif

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
%ifarch x86_64 aarch64
Requires:	%{libplugin} = %{EVRD}
%endif

%description -n %{develname}
Development files for %{name}.

%files -n %{develname}
%license COPYING
%ifarch %{ix86} x86_64
%{_defaultdocdir}/%{name}/*.html
%endif
%{_defaultdocdir}/%{name}/lib%{name}
%{_defaultdocdir}/%{name}/lib%{name}plugin
%{_datadir}/gir-1.0/*.gir
%{_datadir}/vala/vapi/%{name}.*
%{_includedir}/%{name}-1
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%package tests
Summary: Data files for installed tests
Requires: %{name} = %{EVRD}

%description tests
Data files for installed tests.

%files tests
%config(noreplace) %{_sysconfdir}/%{name}/remotes.d/%{name}-tests.conf
%{_datadir}/installed-tests/%{name}
%dir %{_sysconfdir}/%{name}/remotes.d
%{_libexecdir}/installed-tests/%{name}/*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
%ifarch %{ix86} x86_64
	-Dplugin_msr=enabled		\
%else
	-Dplugin_msr=disabled		\
%endif
%ifarch x86_64
	-Dplugin_dell=enabled		\
	-Dplugin_synaptics_mst=enabled	\
%else
	-Dplugin_dell=disabled		\
	-Dplugin_synaptics_mst=disabled	\
%endif
%ifarch x86_64 aarch64
	-Defi_binary=false		\
	-Dplugin_gpio=enabled		\
	-Dplugin_tpm=enabled		\
	-Dplugin_uefi_capsule=enabled	\
	-Dplugin_uefi_pk=enabled	\
%else
	-Dplugin_gpio=disabled		\
	-Dplugin_tpm=disabled		\
	-Dplugin_uefi_capsule=disabled	\
	-Dplugin_uefi_pk=disabled	\
%endif
	-Dbash_completion=true	\
	-Dbluez=enabled		\
	-Dbuild="all"		\
	-Dcompat_cli=true	\
	-Dcurl=enabled		\
	-Ddocs=enabled		\
	-Dfish_completion=false	\
	-Dgudev=enabled		\
	-Dlzma=enabled		\
	-Dman=true		\
	-Dmetainfo=true		\
	-Dplugin_dummy=true	\
	-Dplugin_flashrom=enabled	\
	-Dplugin_modem_manager=enabled	\
	-Dplugin_powerd=disabled	\
	-Dsupported_build=enabled	\
	-Dtests=true		\
	-Dudevdir="/lib/udev"
%meson_build

%install
%meson_install

# Prepare %%{_localstatedir} stuff
install -d %{buildroot}%{_localstatedir}/lib/%{name}
mkdir -p --mode=0700 %{buildroot}%{_localstatedir}/lib/%{name}/gnupg

# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1757948
mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}

# Prepare and install a system .preset
install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-%{name}.preset << EOF
enable %{name}.service
EOF

# Needed?
rm -rf %{buildroot}%{_datadir}/fish
rm -rf %{buildroot}%{_docdir}/%{name}/builder
rm -f %{buildroot}%{_sysconfdir}/%{name}/bios-settings.d/README.md

rm -rf %{buildroot}%{_docdir}/lib%{name}
rm -rf %{buildroot}%{_docdir}/lib%{name}plugin

%find_lang %{name}

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1701 |21cr|fxload-2002_04_11-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	fxload
%define version	2002_04_11
%define release 19

Summary:	EZ-USB utility program
Name:		%name
Version:	%version
Release:	%release
Group:		System/Kernel and hardware
License:	GPL
URL:		http://linux-hotplug.sourceforge.net/
Source:		%{name}-%{version}.tar.bz2
Patch0:		fxload-2002_04_11-types.patch.bz2
# http://qa.mandriva.com/show_bug.cgi?id=36214
Patch1:		fxload-2002_04_11-usb_header.patch

%description
This package contains utilities for downloading firmware to EZ-USB devices.
EZ-USB devices use 8051-based microcontrollers that have been enhanced with
registers, buffers, and other device-side support for USB transactions.

It currently supports devices based on the Anchorchips EZ-USB, as well as the
Cypress EZ-USB FX (which is almost completely source compatible) and EZ-USB FX2
(which is not).  All of these support full speed (12 Mbit/sec) transfers.  The
FX2 also supports high speed (480 Mbit/s) transfers, introduced in USB 2.0.

This version of FXLOAD supports optional use of two-stage loading, where 
special device firmware is used to support writing into off-chip memory such
as RAM (when firmware neeeds more than about 8 KBytes of code and data) or,
for firmware development, I2C serial EEPROM.

%prep
%setup -q
%patch0 -p1 -b .types
%patch1 -p1 -b .usb_header

%build
%make

%install
rm -fr %{buildroot}
%makeinstall
mv %{buildroot}/usr/%{_datadir}/* %{buildroot}/%{_datadir}
mkdir -p %{buildroot}/sbin
mv %{buildroot}%{_sbindir}/%{name} %{buildroot}/sbin/%{name}

%clean
rm -fr %buildroot

%files
%defattr(-,root,root)
%doc COPYING README.txt
/sbin/fxload
%{_datadir}/usb
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1702 |21cr|fyre-1.0.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Explorer for iterated chaotic functions
Name:		fyre
Version:	1.0.1
Release:	15
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/davidt/Fyre
# No releases tagged
Source0:	%{name}-%{version}.tar.bz2
Patch0:		fyre-1.0.0-datadir.patch
Patch1:		fyre-1.0.1-format-strings.patch
BuildRequires:	desktop-file-utils
BuildRequires:	shared-mime-info
BuildRequires:	pkgconfig(gnet-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(OpenEXR)

%description
Fyre is a tool for producing computational artwork based on histograms of
iterated chaotic functions. At the moment, it implements the Peter de Jong map
in a fixed-function pipeline with an interactive GTK+ frontend and a command
line interface for easy and efficient rendering of high-resolution, high
quality images.

%files
%doc AUTHORS ChangeLog README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-%{name}-animation.png
%{_datadir}/mime/packages/%{name}.xml

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .datadir
%patch1 -p1


%build
autoreconf -vfi
%configure --enable-gnet --enable-openexr
%make


%install
%makeinstall_std

desktop-file-edit --remove-key="Encoding" %{buildroot}%{_datadir}/applications/%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1703 |21cr|g4music-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname com.github.neithern.g4music

Name:           g4music
Version:        1.7
Release:        1
Summary:        A small and simple sound and music player that is well integrated with GNOME
Group:          Sound
License:        GPLv3
Url:            https://gitlab.gnome.org/neithern/g4music
Source0:        https://gitlab.gnome.org/neithern/g4music/-/archive/v1.6.1/%{name}-v%{version}.tar.bz2
# repatch at each new version .sflo
# untill fixed pkg-config --cflags gio-unix-2.0
Patch0:         undeclared_dependency_gio-unix-2.0-rosa.patch

BuildRequires:  meson
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  desktop-file-utils
BuildRequires:  appstream-util
BuildRequires:  pkgconfig(gstreamer-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-audio-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-bad-audio-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-player-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-plugins-bad-1.0) >= 1.16
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0) >= 1.16
BuildRequires:  pkgconfig(gtk4) >= 4.6
BuildRequires:  pkgconfig(libadwaita-1) >= 1.1.1
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(tracker-sparql-3.0)
BuildRequires:  pkgconfig(vapigen)
BuildRequires:  gtk4-update-icon-cache
BuildRequires:  pkgconfig(gio-2.0)


%description
A fast, fluent, light weight music player written in GTK4,
with a beautiful, adaptive user interface, so named G4Music.
It is also focusing on high performance,
for those people who has huge number of songs.

Features

    Supports most music file types, samba and any other remote protocols (thanks to great GIO and GStreamer).
    Fast loading and parsing thousands of music files in very few seconds.
    Low memory usage for huge playlist with album covers, no thumbnail caches to store.
    Sorts by album/artist/title or shuffle, supports full-text searching.
    Supports embedded album art or external images as album cover, embedded can be exported.
    Gaussian blurred cover as window background, follows GNOME 42 light/dark mode.
    Supports drag-drop from GNOME Files, showing music in Files.
    Supports audio peaks visualizer.
    Supports gapless playback.
    Supports ReplayGain track mode.
    Supports pipewire audio sink.
    Supports MPRIS control.
    Only need less than 400KB to install it.


%files -f %{oname}.lang
%doc COPYING  *.md
%{_bindir}/%{name}
%{_datadir}/metainfo/*.xml
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/icons/*/*/*/*.svg

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{oname}





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1704 |21cr|g722_1-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0

%define libname %mklibname g722_1_ %{major}
%define devname %mklibname g722_1 -d


Name:		g722_1
Version:	0.2.0
Release:	1
Summary:	libg722_1 is a library for the ITU G.722.1 and Annex C wideband speech codecs
Group:		System/Libraries
License:	Polycom
URL:		http://www.soft-switch.org/libg722_1
Source:		http://www.soft-switch.org/downloads/codecs/g722_1-0.2.0.tar.gz
BuildRequires:	audiofile-devel

%description
libg722_1 is a library for the ITU G.722.1 and Annex C wideband speech codecs.

#--------------------------------------------------------------

%package -n %{libname}
Summary:	libg722_1 is a library for the ITU G.722.1 and Annex C wideband speech codecs
Group:		System/Libraries

%description -n %{libname}
libg722_1 is a library for the ITU G.722.1 and Annex C wideband speech codecs.

%files -n %{libname}
%{_libdir}/libg722_1.so.%{major}*

#--------------------------------------------------------------
%package -n %{devname}
Summary:	G.722.1 development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libg722_1 development files.

%files -n %{devname}
%doc ChangeLog AUTHORS COPYING NEWS README 
%{_includedir}/g722_1.h
%{_includedir}/g722_1
%{_libdir}/libg722_1.so
%{_libdir}/pkgconfig/g722_1.pc

#--------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure --disable-static
make

%install
make install DESTDIR=%{buildroot}
rm %{buildroot}%{_libdir}/libg722_1.la



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1705 |21cr|gadmin-dhcpd-0.5.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GTK+ administation tool for the ISC DHCPD server
Name:		gadmin-dhcpd
Version:	0.5.2
Release:	5
License:	GPLv3+
Group:		System/Configuration/Networking
Url:		http://www.gadmintools.org/
Source0:	http://mange.dynalias.org/linux/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}.pam
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	dhcp-server >= 3.0.1
Requires:	usermode-consoleonly
Provides:	gdhcpd = %{EVRD}

%description
Gadmin-Dhcpd is a fast and easy to use GTK+ administration tool for the
ISC DHCPD server.

%files -f %{name}.lang
%doc COPYING AUTHORS ChangeLog
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%{_bindir}/%{name}
%{_sbindir}/%{name}.real
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/%{name}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
# fix png rgb
pushd pixmaps
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd

%build
%configure

perl -pi -e 's|^#define DHCPD_BINARY .*|#define DHCPD_BINARY \"%{_sbindir}/dhcpd\"|g' config.h
perl -pi -e 's|^#define DHCPD_CONF .*|#define DHCPD_CONF \"%{_sysconfdir}/dhcpd.conf\"|g' config.h
perl -pi -e 's|^#define LEASE_FILE .*|#define LEASE_FILE \"%{_localstatedir}/lib/dhcp/dhcpd.leases\"|g' config.h

%make

%install
%makeinstall_std INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn`

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps

install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

# locales
%find_lang %{name}

# Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -geometry 48x48 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -geometry 32x32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -geometry 16x16 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
sed -i -e 's,%{name}.png,%{name},g' desktop/%{name}.desktop
sed -i -e 's,GADMIN-DHCPD,Gadmin-Dhcpd,g' desktop/%{name}.desktop
mv desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor="" \
    --remove-category="Application" \
    --add-category="Settings;Network;GTK;" \
    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Prepare usermode entry
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/gadmin-dhcpd %{buildroot}%{_sbindir}/gadmin-dhcpd.real
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/gadmin-dhcpd

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<_EOF_
USER=root
PROGRAM=%{_sbindir}/%{name}.real
SESSION=true
FALLBACK=false
_EOF_

rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1706 |21cr|gadmin-httpd-0.1.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# if I fix the string literal errors according to the wiki Problems
# page, it crashes on startup - AdamW 2009/01
%define Werror_cflags %nil

Summary:	Easy to use GTK+ frontend for the Apache HTTPD webserver
Name:		gadmin-httpd
Version:	0.1.4
Release:	6
License:	GPLv3+
Group:		System/Configuration/Networking
Url:		http://www.gadmintools.org/
Source0:	http://mange.dynalias.org/linux/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}.pam
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	apache-base
Requires:	usermode-consoleonly

%description
GAdmin-HTTPD is an easy to use GTK+ frontend for the Apache httpd webserver.

%files
%defattr(-,root,root,0755)
%doc COPYING AUTHORS ChangeLog
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%{_bindir}/%{name}
%{_sbindir}/%{name}.real
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/%{name}/*.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
# fix png rgb 
pushd pixmaps
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd

%build
%configure
%make

%install
%makeinstall_std
#INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn`

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps

install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

# Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -geometry 48x48 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -geometry 32x32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -geometry 16x16 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# Menu
mkdir -p %{buildroot}%{_datadir}/applications
sed -i -e 's,%{name}.png,%{name},g' desktop/%{name}.desktop
sed -i -e 's,GADMIN-HTTPD,Gadmin-HTTPD,g' desktop/%{name}.desktop
mv desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor="" \
    --remove-category="Application" \
    --add-category="Settings;Network;GTK;" \
    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Prepare usermode entry
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/%{name} %{buildroot}%{_sbindir}/%{name}.real
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<_EOF_
USER=root
PROGRAM=%{_sbindir}/%{name}.real
SESSION=true
FALLBACK=false
_EOF_

rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1707 |21cr|gadmin-openvpn-client-0.1.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# if I fix the string literal errors according to the wiki Problems
# page, it crashes on startup - AdamW 2009/01
%define Werror_cflags %nil

Summary:	A GTK+ administation tool for OpenVPN (client)
Name:		gadmin-openvpn-client
Version:	0.1.5
Release:	6
License:	GPLv3+
Group:		System/Configuration/Networking
URL:		http://www.gadmintools.org/
Source0:	http://mange.dynalias.org/linux/gadmin-openvpn/client/%{name}-%{version}.tar.gz
Source1:	%{name}.pam
BuildRequires:	gtk+2-devel
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
Requires:	openvpn
Requires:	usermode-consoleonly


%description
Gadmin-OpenVPN-client is a fast and easy to use GTK+ administration tool for
OpenVPN (client use).

%prep
%setup -q
# fix png rgb 
pushd pixmaps
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd

%build
%configure
%make

%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}/%{name}

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps

install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

## locales
%find_lang %{name}

# Mandriva Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -geometry 48x48 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/%{name}.png
convert -geometry 32x32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/%{name}.png
convert -geometry 16x16 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
sed -i -e 's,%{name}.png,%{name},g' desktop/%{name}.desktop
sed -i -e 's,GADMIN-OPENVPN-Client,Gadmin-OpenVPN-client,g' desktop/%{name}.desktop
mv desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor="" \
    --remove-category="Application" \
    --add-category="Settings;Network;GTK;" \
    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Prepare usermode entry
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/%{name} %{buildroot}%{_sbindir}/%{name}.real
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<_EOF_
USER=root
PROGRAM=%{_sbindir}/%{name}.real
SESSION=true
FALLBACK=false
_EOF_

rm -rf %{buildroot}%{_datadir}/doc/%{name}


%files -f %{name}.lang
%defattr(-,root,root,0755)
%doc COPYING AUTHORS ChangeLog
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%dir %{_sysconfdir}/%{name}
%{_bindir}/%{name}
%{_sbindir}/%{name}.real
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/%{name}/*.png
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1708 |21cr|gadmin-openvpn-server-0.1.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# if I fix the string literal errors according to the wiki Problems
# page, it crashes on startup - AdamW 2009/01
%define Werror_cflags %nil

Summary:	A GTK+ administation tool for OpenVPN (bridge)
Name:		gadmin-openvpn-server
Version:	0.1.5
Release:	6
License:	GPLv3+
Group:		System/Configuration/Networking
URL:		http://www.gadmintools.org/
Source0:	http://mange.dynalias.org/linux/gadmin-openvpn/server/%{name}-%{version}.tar.gz
Source1:	%{name}.pam
BuildRequires:	gtk+2-devel
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
Requires:	openvpn
Requires:	bridge-utils
Requires:	usermode-consoleonly

%description
Gadmin-OpenVPN-server is a fast and easy to use GTK+ administration tool for
the OpenVPN server in bridge mode. It allows generation of five signed
certificates and keys, including HMAC-Firewall and user authentications.
Bridge mode enables SAMBA browsing and printing across physically separated
networks and or full-blown road warrior client capabilities.

%prep
%setup -q
# fix png rgb 
pushd pixmaps
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd

%build
%configure
%make

%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}/%{name}

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps

install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

# Mandriva Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -geometry 48x48 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/%{name}.png
convert -geometry 32x32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/%{name}.png
convert -geometry 16x16 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
sed -i -e 's,%{name}.png,%{name},g' desktop/%{name}.desktop
sed -i -e 's,GADMIN-OPENVPN-Server,Gadmin-OpenVPN-server,g' desktop/%{name}.desktop
mv desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor="" \
    --remove-category="Application" \
    --add-category="Settings;Network;GTK;" \
    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Prepare usermode entry
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/%{name} %{buildroot}%{_sbindir}/%{name}.real
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<_EOF_
USER=root
PROGRAM=%{_sbindir}/%{name}.real
SESSION=true
FALLBACK=false
_EOF_

rm -rf %{buildroot}%{_datadir}/doc/%{name}

%files
%defattr(-,root,root,0755)
%doc COPYING AUTHORS ChangeLog
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%dir %{_sysconfdir}/%{name}
%{_bindir}/%{name}
%{_sbindir}/%{name}.real
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/%{name}/*.png
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1709 |21cr|gadmin-rsync-0.1.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
# if I fix the string literal errors according to the wiki Problems
# page, it crashes on startup - AdamW 2009/01
%define Werror_cflags %nil

Summary:	A GTK+ administation tool for rsync
Name:		gadmin-rsync
Version:	0.1.7
Release:	5
License:	GPLv3+
Group:		System/Configuration/Networking
URL:		http://www.gadmintools.org/
Source0:	http://mange.dynalias.org/linux/gadmin-rsync/%{name}-%{version}.tar.gz
Source1:	%{name}.pam
BuildRequires:	gtk+2-devel
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
Requires:	rsync
Requires:	usermode-consoleonly

%description
Gadmin-Rsync is a fast and easy to use GTK+ administration tool for rsync.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

install -d %{buildroot}%{_sysconfdir}/%{name}

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps

install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

# Mandriva Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -geometry 48x48 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/%{name}.png
convert -geometry 32x32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/%{name}.png
convert -geometry 16x16 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
sed -i -e 's,%{name}.png,%{name},g' desktop/%{name}.desktop
sed -i -e 's,GADMIN-RSYNC,Gadmin-Rsync,g' desktop/%{name}.desktop
mv desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor="" \
    --remove-category="Application" \
    --add-category="Settings;Network;GTK;" \
    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Prepare usermode entry
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/%{name} %{buildroot}%{_sbindir}/%{name}.real
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<_EOF_
USER=root
PROGRAM=%{_sbindir}/%{name}.real
SESSION=true
FALLBACK=false
_EOF_

rm -rf %{buildroot}%{_datadir}/doc/%{name}

%files
%defattr(-,root,root,0755)
%doc COPYING AUTHORS ChangeLog
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%dir %{_sysconfdir}/%{name}
%{_bindir}/%{name}
%{_sbindir}/%{name}.real
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/%{name}/*.png
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1710 |21cr|gadmin-samba-0.3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# if I fix the string literal errors according to the wiki Problems
# page, it crashes on startup - AdamW 2009/01
%define Werror_cflags %{nil}

Summary:	A GTK+ administation tool for the SAMBA server
Name:		gadmin-samba
Version:	0.3.0
Release:	7
License:	GPLv3+
Group:		System/Configuration/Networking
Url:		http://www.gadmintools.org/
Source0:	http://mange.dynalias.org/linux/gadmin-samba/%{name}-%{version}.tar.gz
Source1:	%{name}.pam
Patch0:		gadmin-samba-0.3.0-fix_netlogon_script.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	openssl
Requires:	samba-server
Requires:	usermode-consoleonly
Provides:	gsambad = %{EVRD}

%description
Gadmin-Samba is a fast and easy to use GTK+ administration tool for the
Samba server.

%files -f %{name}.lang
%defattr(-,root,root,0755)
%doc COPYING AUTHORS ChangeLog
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%dir %{_sysconfdir}/%{name}
%{_bindir}/*
%{_sbindir}/%{name}.real
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/%{name}/*.png
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/%{name}.png
%{_localstatedir}/lib/samba/netlogon/example.bat

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .fix_netlogon

# fix png rgb
pushd pixmaps
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd

%build
%configure

perl -pi -e 's|^#define SAMBA_USER .*|#define SAMBA_USER \"root\"|g' config.h

%make

%install
%makeinstall_std INSTALL_USER=`id -un` INSTALL_GROUP=`id -gn`

install -d %{buildroot}%{_sysconfdir}/%{name}

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps

install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

## locales
%find_lang %{name}

# Mandriva Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -geometry 48x48 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/%{name}.png
convert -geometry 32x32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/%{name}.png
convert -geometry 16x16 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
sed -i -e 's,%{name}.png,%{name},g' desktop/%{name}.desktop
sed -i -e 's,GADMIN-SAMBA,Gadmin-Samba,g' desktop/%{name}.desktop
install -m644 desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor="" \
    --remove-category="Application" \
    --add-category="Settings;Network;GTK;" \
    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Prepare usermode entry
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/%{name} %{buildroot}%{_sbindir}/%{name}.real
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}

# Scripts
install -d %{buildroot}%{_bindir}
install -m 755 scripts/example.bat %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<_EOF_
USER=root
PROGRAM=%{_sbindir}/%{name}.real
SESSION=true
FALLBACK=false
_EOF_

rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1711 |21cr|gadmin-squid-0.1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# if I fix the string literal errors according to the wiki Problems
# page, it crashes on startup - AdamW 2009/01
%define Werror_cflags %nil

Summary:	A GTK+ administation tool for the Squid proxy
Name:		gadmin-squid
Version:	0.1.3
Release:	6
License:	GPLv3+
Group:		System/Configuration/Networking
URL:		http://www.gadmintools.org/
Source0:	http://mange.dynalias.org/linux/gadmin-squid/%{name}-%{version}.tar.gz
Source1:	%{name}.pam
BuildRequires:	gtk+2-devel
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
Requires:	squid
Requires:	openssl
Requires:	usermode-consoleonly

%description
Gadmin-Samba is a fast and easy to use GTK+ administration tool for the
Samba server.

%prep
%setup -q

# fix png rgb 
pushd pixmaps
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd

%build
%configure
%make

%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}/%{name}

# pam auth
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/security/console.apps

install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m 644 etc/security/console.apps/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

# Mandriva Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -geometry 48x48 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/%{name}.png
convert -geometry 32x32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/%{name}.png
convert -geometry 16x16 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
sed -e 's,%{name}.png,%{name},g' \
	-e 's,GADMIN-SQUID,Gadmin-Squid,g'\
	desktop/%name.desktop > %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor="" \
    --remove-category="Application" \
    --add-category="Settings;Network;GTK;" \
    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Prepare usermode entry
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/%{name} %{buildroot}%{_sbindir}/%{name}.real
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<_EOF_
USER=root
PROGRAM=%{_sbindir}/%{name}.real
SESSION=true
FALLBACK=false
_EOF_

rm -rf %{buildroot}%{_datadir}/doc/%{name}

%files
%defattr(-,root,root,0755)
%doc COPYING AUTHORS ChangeLog
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%dir %{_sysconfdir}/%{name}
%{_bindir}/%{name}
%{_sbindir}/%{name}.real
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/%{name}/*.png
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1712 |21cr|gajim-1.3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global appid org.gajim.Gajim

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Jabber Client written in PyGTK
Name:		gajim
Version:	1.3.3
Release:	3
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		http://www.gajim.org
Source0:	http://gajim.org/downloads/%{url_ver}/gajim-%{version}.tar.gz
# Required if the release tarball is missing plugin_installer
Source1:	https://ftp.gajim.org/plugins_%{url_ver}_zip/plugin_installer.zip
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	intltool
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	appstream-util

Requires:	gtk3
Requires:	hicolor-icon-theme
## Optional, but not too big and not worth exploding the test matrix for
Requires:	python3-gi-cairo
Requires:	python3-gi
# For gajim-remote, desktop notifications, logind, NetworkManager, ...
Requires:	python3-dbus
# For downloading images via proxy or OAUTH2 authentication via proxy
Requires:	python3-pycurl
## Optional, roughly in the order listed in upstream README.md
# webp avatars
Recommends:	python3-pillow
# OpenPGP message encryption - Encrypting chat messages with OpenPGP keys
Recommends:	python3-gnupg
# Bonjour / Zeroconf - Serverless chatting with autodetected clients in a local network
Recommends:	python3-avahi
# Spell checker - Spellchecking of composed messages
Recommends:	gspell
Recommends:	libsecret
# Audio / Video - Ability to start audio and video chat
Recommends:	farstream
Recommends:	gstreamer1.0-plugins-base
# UPnP-IGD - Ability to request your router to forward port for file transfer
Recommends:	%{_lib}gupnp-igd1.0_4
# not needed? gajim now uses Gio.NetworkMonitor
Recommends:	networkmanager
# sharing location
Recommends:	geoclue2
# Desktop notifications (Gajim uses org.freedesktop.Notifications interface)
# XXX This just pulls in a random desktop environment implementing the notify interface
# (e.g. cinnamon). Even as a weak dependency this is useless.
#Recommends:	desktop-notification-daemon
# Automatic status - Ability to measure idle time, in order to set auto status (lib dlopened using ctypes)
# XXX what about wayland?
Recommends:	libXScrnSaver
# RST generator - Generate XHTML output from RST code
Recommends:	python3-docutils
# Play event sounds
Recommends:	/usr/bin/paplay

%description
Gajim is a jabber client written in PyGTK. The goal of Gajim's developers is
to provide a full featured and easy to use xmpp client for the GTK+
users. Gajim does not require GNOME to run, event-hough it exists with it
nicely. Gajim is released under the GNU General Public License

Features:
- Tabbed chat windows
- Groupchat support (with MUC protocol)
- Emoticons, URL grabber
- Systray icon
- TLS & GPG support
- Transport Registration support
- Service Discovery including Nodes
- Multiple accounts support

%files -f %{name}.lang
%license COPYING
%doc %{_mandir}/man1/%{name}.1*
%doc %{_mandir}/man1/%{name}-history-manager.1*
%doc %{_mandir}/man1/%{name}-remote.1*
%{_bindir}/%{name}
%{_bindir}/%{name}-history-manager
%{_bindir}/%{name}-remote
%{_datadir}/applications/%{appid}.desktop
%{_datadir}/metainfo/%{appid}.appdata.xml
%{_datadir}/icons/hicolor/scalable/apps/%{appid}.svg
%{_datadir}/icons/hicolor/scalable/apps/%{appid}-symbolic.svg

%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}*.egg-info

#----------------------------------------------------------------------------


%prep
%autosetup -p1 -n %{name}-%{name}-%{version}
# Manually put plugin_installer where it belongs
install -m 0755 -d gajim/data/plugins
unzip %{SOURCE1} -d gajim/data/plugins

%build
%py3_build

%install

%py3_install

desktop-file-validate %{buildroot}/%{_datadir}/applications/%{appid}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{appid}.appdata.xml

%find_lang %{name}
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1713 |21cr|galera-26.4.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f2,3)

Name:           galera
Version:        26.4.13
Release:        1
Summary:        Synchronous multi-master wsrep provider (replication engine)
Group:          System/Servers
License:        GPLv2
URL:            http://galeracluster.com/
Source0:        http://releases.galeracluster.com/galera-%{url_ver}/source/%{name}-4-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	asio
# Actually we only need ncat from here
Requires:       nmap

%description
Galera is a fast synchronous multi-master wsrep provider (replication engine)
for transactional databases and similar applications. For more information
about wsrep API see http://launchpad.net/wsrep. For a description of Galera
replication engine see http://www.codership.com.

%files
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/garb
%{_mandir}/man8/garb*
%{_docdir}/galera
%{_bindir}/garbd
%{_bindir}/garb-systemd
%{_unitdir}/garb.service
%{_libdir}/libgalera_smm.so

%post
%systemd_post garb.service

%preun
%systemd_preun garb.service

%postun
%systemd_postun_with_restart garb.service

#-------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-4-%{version}

# fix install lib
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' galera/src/CMakeLists.txt

%build
%cmake
%make

%install
%make_install -C build

# move files to right place
mv %{buildroot}%{_datadir}/garb-systemd %{buildroot}%{_bindir}/
chmod 755 %{buildroot}%{_bindir}/garb-systemd
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mv %{buildroot}%{_datadir}/garb.cnf %{buildroot}%{_sysconfdir}/sysconfig/garb
mkdir -p %{buildroot}%{_unitdir}/
mv %{buildroot}%{_datadir}/garb.service %{buildroot}%{_unitdir}/
mkdir -p %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_prefix}/doc/* %{buildroot}%{_docdir}/%{name}/
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1714 |21cr|gamazons-0.83-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A board game similar to chess and go combined
Name:		gamazons
Version:	0.83
Release:	16
License:	GPLv2
Group:		Games/Boards
URL:		http://www.yorgalily.org/gamazons/
Source:		http://www.yorgalily.org/gamazons/src/%{name}-%{version}.tar.gz
Patch0:		gamazons-0.83-fix-desktop-file.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libgnomeui-2.0)
# (tv) for /usr/bin/desktop-file-install:
BuildRequires:	desktop-file-utils

%description
Amazons is a game played on a 10x10 chess board. Each side has four pieces
(amazons) that move like chess queens (in a straight line in any direction).
Instead of capturing pieces like in chess, the game is determined based on
who moves last.

Each move consists of two parts. First an amazon moves to a new square and
then fires an arrow to another square (the arrow is fired in a straight
line in any direction from the square the amazon landed on). The square
the arrow lands on becomes a permenant block for the rest of the game.
No one can move over it, or fire an arrow over it. Every turn an amazon
must move and fire an arrow, so every turn there is one less square
available on the board. Try and block in your opponent or section off a
good chunk of the board for yourself.

%files -f %{name}.lang
%doc COPYING
%{_gamesbindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_iconsdir}/gnome-gamazons.png
%{_miconsdir}/gnome-gamazons.png
%{_liconsdir}/gnome-gamazons.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%global optflags %{optflags} -fcommon
%configure \
	--bindir=%{_gamesbindir}
%make

%install
%makeinstall_std


desktop-file-install --vendor="" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

mkdir -p %{buildroot}%{_iconsdir} \
	 %{buildroot}%{_miconsdir} \
	 %{buildroot}%{_liconsdir}
install -m 0644         pixmaps/gnome-gamazons.png %{buildroot}%{_liconsdir}/gnome-gamazons.png
convert -geometry 32x32 pixmaps/gnome-gamazons.png %{buildroot}%{_iconsdir}/gnome-gamazons.png
convert -geometry 16x16 pixmaps/gnome-gamazons.png %{buildroot}%{_miconsdir}/gnome-gamazons.png

# translation will come in future versions, find
# help files for now
%find_lang %{name} --with-gnome


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1715 |21cr|gambas3-3.19.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gambas

Name:		gambas3
Summary:	Complete IDE based on a BASIC interpreter with object extensions
Version:	3.19.5
Release:	1
License:	GPLv2+
Group:		Development/Basic
Url:		http://gambas.sourceforge.net
Source0:	https://gitlab.com/gambas/gambas/-/archive/%{version}/%{oname}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
# Break something
Patch0:		gambas-3.19.5-no-member-named.patch
BuildRequires:	bzip2-devel
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	xdg-utils
BuildRequires:	dumb-devel
BuildRequires:	gettext-devel
BuildRequires:	glibc-devel
BuildRequires:	gmp-devel
BuildRequires:	jpeg-devel
BuildRequires:	libstdc++-devel
BuildRequires:	libstdc++-static-devel
BuildRequires:	litehtml-devel
BuildRequires:	mysql-devel
BuildRequires:	SDL_sound-devel
BuildRequires:	sqlite3-devel
BuildRequires:	sqlite2-devel
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(alure)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gmime-3.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkglext-1.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(libcrypt)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libecpg)
BuildRequires:	pkgconfig(libexslt)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libv4lconvert)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-cpp)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xtst)

%description
Gambas is a free development environment based on a Basic interpreter
with object extensions, like Visual Basic(tm) (but it is NOT a clone!). 
With Gambas, you can quickly design your program GUI, access MySQL or
PostgreSQL databases, translate your program into many languages, 
create network applications easily, build RPMs of your apps 
automatically, and so on...

#------------------------------------------------------------------------

%package runtime
Summary:	The Gambas runtime
Group:		Development/Basic

%description runtime
This package includes the Gambas interpreter needed to run Gambas applications.

%files runtime
%doc README ChangeLog AUTHORS
%{_bindir}/gbx3
%{_bindir}/gbr3
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.component
%{_libdir}/%{name}/gb.debug.*
%{_libdir}/%{name}/gb.eval.component
%{_libdir}/%{name}/gb.eval.so*
%{_libdir}/%{name}/gb.draw.*
%{_libdir}/%{name}/gb.geom.*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.info
%{_datadir}/%{name}/info/gb.list
%{_datadir}/%{name}/info/gb.debug.*
%{_datadir}/%{name}/info/gb.eval.list
%{_datadir}/%{name}/info/gb.eval.info
%{_datadir}/%{name}/info/gb.geom.info
%{_datadir}/%{name}/info/gb.geom.list
%{_appdatadir}/gambas3.appdata.xml
%dir %{_datadir}/%{name}/template
%{_datadir}/%{name}/template/console
%{_mandir}/man1/gbr3.*
%{_mandir}/man1/gbx3.*

#-----------------------------------------------------------------------------

%package devel
Summary:	The Gambas development package
Group:		Development/Basic
%ifarch aarch64
Requires: gambas3-gb-form-stock = %{EVRD}
%endif

%description devel
This package includes all tools needed to compile Gambas projects
without having to install the complete development environment.

%files devel
%doc README ChangeLog
%{_bindir}/gbh3
%{_bindir}/gbh3.*
%{_bindir}/gbc3
%{_bindir}/gba3
%{_bindir}/gbi3
%{_mandir}/man1/gbc3.*
%{_mandir}/man1/gba3.*
%{_mandir}/man1/gbh3.*
%{_mandir}/man1/gbi3.*

#-----------------------------------------------------------------------------

%package script
Summary:	The Gambas scripter package
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-devel = %{EVRD}

%description script
This package includes the scripter program that allows to write script files
in Gambas.

%files script
%doc README ChangeLog
%{_bindir}/gbs3
%{_bindir}/gbs3.gambas
%{_bindir}/gbw3
%{_mandir}/man1/gbs3.*
%{_mandir}/man1/gbw3.*

#-----------------------------------------------------------------------------

%package ide
Summary:	The Gambas IDE
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-devel = %{EVRD}
Requires:	%{name}-gb-db = %{EVRD}
Requires:	%{name}-gb-db-form = %{EVRD}
Requires:	%{name}-gb-desktop = %{EVRD}
Requires:	%{name}-gb-eval-highlight = %{EVRD}
Requires:	%{name}-gb-form = %{EVRD}
Requires:	%{name}-gb-form-dialog = %{EVRD}
Requires:	%{name}-gb-form-mdi = %{EVRD}
Requires:	%{name}-gb-form-stock = %{EVRD}
Requires:	%{name}-gb-gui = %{EVRD}
Requires:	%{name}-gb-image = %{EVRD}
Requires:	%{name}-gb-image-effect = %{EVRD}
Requires:	%{name}-gb-settings = %{EVRD}
Requires:	%{name}-gb-clipper = %{EVRD}
Requires:	%{name}-gb-markdown = %{EVRD}
Requires:	%{name}-gb-util = %{EVRD}
Requires:	%{name}-gb-form-editor = %{EVRD}
Requires:	%{name}-gb-net = %{EVRD}
Requires:	%{name}-gb-net-curl = %{EVRD}
Requires:	%{name}-gb-form-editor = %{EVRD}
Requires:	%{name}-gb-util = %{EVRD}
Requires:	%{name}-gb-util-web = %{EVRD}
Requires:	%{name}-gb-form-terminal = %{EVRD}
Requires:	%{name}-gb-inotify = %{EVRD}
Requires:	%{name}-gb-term = %{version}
Requires:	%{name}-gb-web-feed = %{version}
Requires:	%{name}-gb-signal = %{EVRD}
Requires:	%{name}-gb-jit = %{EVRD}
Requires:	%{name}-gb-poppler = %{EVRD}
Requires:	%{name}-gb-pdf = %{EVRD}
Requires:	%{name}-gb-test = %{EVRD}
Requires:	%{name}-gb-web-gui = %{EVRD}
Requires:	%{name}-gb-hash = %{EVRD}

### TODO: switch to gambas3-qt5-wayland when needed.###
# We have qt5 and x11 as default.
Requires:	%{name}-gb-qt5 = %{EVRD}
Requires:	%{name}-gb-qt5-webkit = %{EVRD}
Requires:	%{name}-gb-qt5-opengl = %{EVRD}
Requires:	%{name}-gb-qt5-ext = %{EVRD}
Requires:	%{name}-gb-qt5-webview = %{EVRD}
Requires:	%{name}-gb-qt5-x11 = %{EVRD}
Requires:	%{name}-gb-form-print = %{EVRD}
Requires:	gettext
Requires:	rpm-build

%description ide
This package includes the complete Gambas Development Environment, with the
database manager, the help files, and all components.

%files ide
%doc README ChangeLog
%{_bindir}/%{name}
%{_bindir}/%{name}.gambas
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/*/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/template/graphical
%{_datadir}/%{name}/examples
%{_mandir}/man1/gambas3.*

#---------------------------------------------------------------------------

%package gb-args
Summary:	Gambas3 component package for args
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-args
Gambas3 component package for args.

%files gb-args
%doc README ChangeLog
%{_libdir}/%{name}/gb.args.*
%{_datadir}/%{name}/info/gb.args.*

#-----------------------------------------------------------------------------

%package gb-cairo
Summary:	The Gambas Cairo component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-cairo
This package contains the Gambas Cario components.

%files gb-cairo
%doc README ChangeLog
%{_libdir}/%{name}/gb.cairo.*
%{_datadir}/%{name}/info/gb.cairo.*

#-----------------------------------------------------------------------------

%package gb-chart
Summary:	The Gambas chart component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-chart
This package contains the Gambas Chart components.

%files gb-chart
%doc README ChangeLog
%{_libdir}/%{name}/gb.chart.*
%{_datadir}/%{name}/info/gb.chart.*

#---------------------------------------------------------------------------

%package gb-clipper
Summary:	The Gambas clipper component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-clipper
New component based on the Clipper library.

%files gb-clipper
%doc README ChangeLog
%{_libdir}/%{name}/gb.clipper.*
%{_datadir}/%{name}/info/gb.clipper.*

#-----------------------------------------------------------------------------

%package gb-complex
Summary:	The Gambas complex component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-complex
New component that implements a rudimentary management of complex numbers. 
This component is automatically loaded if a complex 
number constant is encountered and no loaded component 
can already handle complex numbers.

%files gb-complex
%doc README ChangeLog
%{_libdir}/%{name}/gb.complex*
%{_datadir}/%{name}/info/gb.complex*

#-----------------------------------------------------------------------------

%package gb-compress
Summary:	The Gambas compression component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-compress
This component allows you to compress/uncompress data or files with
the bzip2 and zip algorithms.

%files gb-compress
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.compress.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.compress.*

#-----------------------------------------------------------------------------

%package gb-crypt
Summary:	The Gambas cryptography component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-crypt
This component allows you to use cryptography in your projects.

%files gb-crypt
%doc README ChangeLog
%{_libdir}/%{name}/gb.crypt.*
%{_datadir}/%{name}/info/gb.crypt.*

#-----------------------------------------------------------------------------

%package gb-data
Summary:	The Gambas data component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-data
New component that adds new container data types to Gambas.

%files gb-data
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.data*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.data*

#-----------------------------------------------------------------------------

%package gb-db
Summary:	The Gambas database component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-db
This component allows you to access many databases management systems,
provided that you install the needed driver packages.

%files gb-db
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.db.so*
%{_libdir}/%{name}/gb.db.component
%{_libdir}/%{name}/gb.db.gambas
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.db.info
%{_datadir}/%{name}/info/gb.db.list

#-----------------------------------------------------------------------------

%package gb-db-form
Summary:	The Gambas db-form component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-db-form
This package contains the Gambas Database form components.

%files gb-db-form
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.db.form.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.db.form.*
%dir %{_datadir}/%{name}/control
%{_datadir}/%{name}/control/gb.db.form

#-----------------------------------------------------------------------------

%package gb-db-mysql
Summary:	The MySQL driver for the Gambas database component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-db = %{EVRD}

%description gb-db-mysql
This component allows you to access MySQL databases.

%files gb-db-mysql
%doc README ChangeLog
%{_libdir}/%{name}/gb.db.mysql.*
%{_datadir}/%{name}/info/gb.db.mysql.info
%{_datadir}/%{name}/info/gb.db.mysql.list

#-----------------------------------------------------------------------------

%package gb-db-odbc
Summary:	The ODBC driver for the Gambas database component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-db = %{EVRD}

%description gb-db-odbc
This component allows you to access ODBC databases.

%files gb-db-odbc
%doc README ChangeLog
%{_libdir}/%{name}/gb.db.odbc.*
%{_datadir}/%{name}/info/gb.db.odbc.info
%{_datadir}/%{name}/info/gb.db.odbc.list
%{_datadir}/%{name}//template/database

#-----------------------------------------------------------------------------

%package gb-db-postgresql
Summary:	The PostgreSQL driver for the Gambas database component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-db = %{EVRD}

%description gb-db-postgresql
This component allows you to access PostgreSQL databases.

%files gb-db-postgresql
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.db.postgresql.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.db.postgresql.info
%{_datadir}/%{name}/info/gb.db.postgresql.list

#-----------------------------------------------------------------------------

%package gb-db-sqlite2
Summary:	The SQLite 2 driver for the Gambas database component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-db = %{EVRD}

%description gb-db-sqlite2
This component allows you to access SQLite 2 databases.

%files gb-db-sqlite2
%doc README ChangeLog
%{_libdir}/%{name}/gb.db.sqlite2.*
%{_datadir}/%{name}/info/gb.db.sqlite2.info
%{_datadir}/%{name}/info/gb.db.sqlite2.list

#-----------------------------------------------------------------------------

%package gb-db-sqlite3
Summary:	The SQLite 3 driver for the Gambas database component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-db = %{EVRD}

%description gb-db-sqlite3
This component allows you to access SQLite 3 databases.

%files gb-db-sqlite3
%doc README ChangeLog
%{_libdir}/%{name}/gb.db.sqlite3.*
%{_datadir}/%{name}/info/gb.db.sqlite3.info
%{_datadir}/%{name}/info/gb.db.sqlite3.list

#-----------------------------------------------------------------------------

%package gb-dbus
Summary:	The Gambas dbus component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-dbus
This package contains the Gambas D-bus components.

%files gb-dbus
%doc README ChangeLog
%{_libdir}/%{name}/gb.dbus.*
%{_datadir}/%{name}/info/gb.dbus.*

#-----------------------------------------------------------------------------

%package gb-desktop
Summary:	The Gambas XDG component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-desktop
This component allows you to use desktop-agnostic routines based on 
the xdg-utils scripts of the Portland project.

%files gb-desktop
%doc README ChangeLog
%{_libdir}/%{name}/gb.desktop.*
%{_datadir}/%{name}/info/gb.desktop.*
%{_datadir}/%{name}/control/gb.desktop

#-----------------------------------------------------------------------------

%package gb-eval-highlight
Summary:	The Gambas eval-highlight component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-eval-highlight
This component implements the eval-highlight component.

%files gb-eval-highlight
%doc README ChangeLog
%{_libdir}/%{name}/gb.highlight.component
%{_libdir}/%{name}/gb.highlight.gambas
%{_libdir}/%{name}/gb.eval.highlight.*
%{_datadir}/%{name}/info/gb.eval.highlight.*
%{_datadir}/%{name}/info/gb.highlight.info
%{_datadir}/%{name}/info/gb.highlight.list

#-----------------------------------------------------------------------------

%package gb-form
Summary:	The Gambas dialog form component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-form
This component implements the form control.

%files gb-form
%doc README ChangeLog
%{_libdir}/%{name}/gb.form.component
%{_libdir}/%{name}/gb.form.gambas
%{_datadir}/%{name}/control/gb.form
%{_datadir}/%{name}/info/gb.form.info
%{_datadir}/%{name}/info/gb.form.list

#-----------------------------------------------------------------------------

%package gb-form-dialog
Summary:	The Gambas dialog form component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-form-dialog
This component implements the form-dialog control.

%files gb-form-dialog
%doc README ChangeLog
%{_libdir}/%{name}/gb.form.dialog.component
%{_libdir}/%{name}/gb.form.dialog.gambas
%{_datadir}/%{name}/info/gb.form.dialog.info
%{_datadir}/%{name}/info/gb.form.dialog.list

#-----------------------------------------------------------------------------

%package gb-form-editor
Summary:	Gambas3 component text editor
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-eval-highlight = %{EVRD}

%description gb-form-editor
This component provides the TextEditor control, 
which is a text editor with syntax highlighting support.

%files gb-form-editor
%doc README ChangeLog
%{_libdir}/%{name}/gb.form.editor.component
%{_libdir}/%{name}/gb.form.editor.gambas
%{_datadir}/%{name}/info/gb.form.editor.info
%{_datadir}/%{name}/info/gb.form.editor.list
%{_datadir}/%{name}/control/gb.form.editor/texteditor.png

#-----------------------------------------------------------------------------

%package gb-form-htmlview

Summary:	Gambas3 component htmlview
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	litehtml

%description gb-form-htmlview
This component provides lightweight HTML viewer component.

%files gb-form-htmlview
%doc README ChangeLog
%{_libdir}/%{name}/gb.form.htmlview.component
%{_libdir}/%{name}/gb.form.htmlview.gambas
%{_libdir}/%{name}/gb.form.htmlview.so
%{_libdir}/%{name}/gb.form.htmlview.so.*
%{_datadir}/%{name}/info/gb.form.htmlview.info
%{_datadir}/%{name}/info/gb.form.htmlview.list
%{_datadir}/%{name}/control/gb.form.htmlview/htmlview.png

#--------------------------------------------------------------------------

%package gb-form-mdi
Summary:	The Gambas mdi form component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-form-mdi
This component implements the form-mdi control.

%files gb-form-mdi
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.form.mdi.component
%{_libdir}/%{name}/gb.form.mdi.gambas
%dir %{_datadir}/%{name}/control
%{_datadir}/%{name}/control/gb.form.mdi
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.form.mdi.info
%{_datadir}/%{name}/info/gb.form.mdi.list

#-----------------------------------------------------------------------------

%package gb-form-print
Summary:	 The Gambas print form component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-form-print
This component implements the form-print control.

%files gb-form-print
%doc README ChangeLog
%{_libdir}/gambas3/gb.form.print.component
%{_libdir}/gambas3/gb.form.print.gambas
%{_datadir}/gambas3/info/gb.form.print.info
%{_datadir}/gambas3/info/gb.form.print.list

#-----------------------------------------------------------------------------

%package gb-form-stock
Summary:	The Gambas stock form component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-form-stock
This component implements the form-stock control.

%files gb-form-stock
%doc README ChangeLog
%{_libdir}/%{name}/gb.form.stock.component
%{_libdir}/%{name}/gb.form.stock.gambas
%{_datadir}/%{name}/info/gb.form.stock.info
%{_datadir}/%{name}/info/gb.form.stock.list

#---------------------------------------------------------------------------

%package gb-form-terminal
Summary:	Full-featured VT-100 terminal emulator control
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-form-terminal
This component provides a full-featured 
VT-100 terminal emulator control.

%files gb-form-terminal
%doc README ChangeLog
%{_libdir}/%{name}/gb.form.terminal.component
%{_libdir}/%{name}/gb.form.terminal.gambas
%{_datadir}/%{name}/info/gb.form.terminal.info
%{_datadir}/%{name}/info/gb.form.terminal.list
%{_datadir}/%{name}/control/gb.form.terminal/terminalview.png

#---------------------------------------------------------------------------

%package gb-gmp
Summary:	Gambas3 component package for gmp
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-gmp
New component based on the Gnu Multiple Precision Arithmetic 
Library that implements big integers and big rational numbers.

%files gb-gmp
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.gmp.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.gmp.*

#-----------------------------------------------------------------------------

%package gb-gtk
Summary:	Gambas3 component package for gtk
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-gtk
Gambas3 component package for gtk.

%files gb-gtk
%doc README ChangeLog
%{_libdir}/%{name}/gb.gtk.component
%{_libdir}/%{name}/gb.gtk.so*
%{_datadir}/%{name}/info/gb.gtk.info
%{_datadir}/%{name}/info/gb.gtk.list
%{_datadir}/%{name}/template/gtk2

#-----------------------------------------------------------------------------

%package gb-gtk3
Summary:	Gambas3 component package for gtk3
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-gtk3
Gambas3 component package for gtk3.

%files gb-gtk3
%doc README ChangeLog
%{_libdir}/%{name}/gb.gtk3.component
%{_libdir}/%{name}/gb.gtk3.so*
%{_datadir}/%{name}/info/gb.gtk3.info
%{_datadir}/%{name}/info/gb.gtk3.list
%{_datadir}/%{name}/template/gtk3

#-----------------------------------------------------------------------------

%package gb-gtk-opengl
Group:		Development/Basic
Summary: 	Gambas3 component package for gtk-opengl
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-gtk = %{EVRD}
Requires:	%{name}-gb-qt5 = %{EVRD}

%description gb-gtk-opengl
Gambas3 component package for gtk-opengl.

%files gb-gtk-opengl
%doc README ChangeLog
%{_libdir}/%{name}/gb.gtk.opengl.component
%{_libdir}/%{name}/gb.gtk.opengl.so*
%{_datadir}/%{name}/info/gb.gtk.opengl.info
%{_datadir}/%{name}/info/gb.gtk.opengl.list

#-----------------------------------------------------------------------------

%package gb-gtk3-wayland
Summary:	Gambas3 component package for gtk3
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-gtk3 = %{EVRD}
Requires:	%{name}-gb-qt5 = %{EVRD}

%description gb-gtk3-wayland
Gambas3 component package for gtk3, wayland.

%files gb-gtk3-wayland
%doc README ChangeLog
%{_libdir}/%{name}/gb.gtk3.wayland.component
%{_libdir}/%{name}/gb.gtk3.wayland.so*
%{_datadir}/%{name}/info/gb.gtk3.wayland.info
%{_datadir}/%{name}/info/gb.gtk3.wayland.list

#-----------------------------------------------------------------------------

%package gb-gtk3-webview
Summary:	Gambas3 component package for gtk3-webview
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-gtk3 = %{EVRD}

%description gb-gtk3-webview
Gambas3 component package for gtk3-webview.

%files gb-gtk3-webview
%doc README ChangeLog
%{_libdir}/%{name}/gb.gtk3.webview.component
%{_libdir}/%{name}/gb.gtk3.webview.so*
%{_datadir}/%{name}/info/gb.gtk3.webview.info
%{_datadir}/%{name}/info/gb.gtk3.webview.list

#-----------------------------------------------------------------------------

%package gb-gtk3-x11
Group:		Development/Basic
Summary: 	Gambas3 component package for gtk3-x11
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-gtk3 = %{EVRD}
Requires:	%{name}-gb-qt5 = %{EVRD}

%description gb-gtk3-x11
Gambas3 component package for gtk3-x11.

%files gb-gtk3-x11
%doc README ChangeLog
%{_libdir}/%{name}/gb.gtk3.x11.component
%{_libdir}/%{name}/gb.gtk3.x11.so*
%{_datadir}/%{name}/info/gb.gtk3.x11.info
%{_datadir}/%{name}/info/gb.gtk3.x11.list

#-----------------------------------------------------------------------------

%package gb-gtk3-opengl
Group:		Development/Basic
Summary: 	Gambas3 component package for gtk3-opengl
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-gtk3 = %{EVRD}
Requires:	%{name}-gb-qt5 = %{EVRD}

%description gb-gtk3-opengl
Gambas3 component package for gtk3-opengl.

%files gb-gtk3-opengl
%doc README ChangeLog
%{_libdir}/%{name}/gb.gtk3.opengl.component
%{_libdir}/%{name}/gb.gtk3.opengl.so*
%{_datadir}/%{name}/info/gb.gtk3.opengl.info
%{_datadir}/%{name}/info/gb.gtk3.opengl.list

#-----------------------------------------------------------------------------

%package gb-gsl
Summary:	The Gambas interface to the GNU Scientific Library 
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-gsl
This component provides an interface to the GNU Scientific Library.

%files gb-gsl
%doc README ChangeLog
%{_libdir}/%{name}/gb.gsl.*
%{_datadir}/%{name}/info/gb.gsl.*

#-----------------------------------------------------------------------------

%package gb-gui
Summary:	The Gambas GUI component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-gui
This is a component that just loads gb.qt if you are running KDE or
gb.gtk in the other cases.

%files gb-gui
%doc README ChangeLog
%{_libdir}/%{name}/gb.gui.*
%{_datadir}/%{name}/info/gb.gui.*

#---------------------------------------------------------------------------

%package gb-httpd
Summary:	Gambas3 component package for httpd
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-httpd
Gambas3 component package for httpd.

%files gb-httpd
%doc README ChangeLog
%{_libdir}/%{name}/gb.httpd.*
%{_datadir}/%{name}/info/gb.httpd.*

#-----------------------------------------------------------------------------

%package gb-image
Summary:	The Gambas image manipulation component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-image
This component allows you to apply various effects to images.

%files gb-image
%doc README ChangeLog
%{_libdir}/%{name}/gb.image.component
%{_libdir}/%{name}/gb.image.so*
%{_datadir}/%{name}/info/gb.image.info
%{_datadir}/%{name}/info/gb.image.list

#-----------------------------------------------------------------------------

%package gb-image-effect
Summary:	The Gambas image effect component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-image-effect
This component allows you to apply various effects to images.

%files gb-image-effect
%doc README ChangeLog
%{_libdir}/%{name}/gb.image.effect.*
%{_datadir}/%{name}/info/gb.image.effect.*

#-----------------------------------------------------------------------------

%package gb-image-imlib
Summary:	The Gambas image imlib component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-image-imlib
This component allows you to manipulate images with imlibs.

%files gb-image-imlib
%doc README ChangeLog
%{_libdir}/%{name}/gb.image.imlib.*
%{_datadir}/%{name}/info/gb.image.imlib.*

#-----------------------------------------------------------------------------

%package gb-image-io
Summary:	The Gambas image io component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-image-io
This component allows you to perform images input output operations.

%files gb-image-io
%doc README ChangeLog
%{_libdir}/%{name}/gb.image.io.*
%{_datadir}/%{name}/info/gb.image.io.*

#---------------------------------------------------------------------------

%package gb-inotify
Summary:	Gambas3 component package for inotify
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-inotify
Gambas3 component package for inotify.

%files gb-inotify
%doc README ChangeLog
%{_libdir}/%{name}/gb.inotify.component
%{_libdir}/%{name}/gb.inotify.so*
%{_datadir}/%{name}/info/gb.inotify.info
%{_datadir}/%{name}/info/gb.inotify.list

#-----------------------------------------------------------------------------

%package gb-jit
Summary: The Gambas JIT component
Group: Development/Basic
Requires: %{name}-runtime = %{version}

%description gb-jit
This component provides the jit compiler for gambas.

%files gb-jit
%doc README ChangeLog
%{_libdir}/%{name}/gb.jit.so*
%{_libdir}/%{name}/gb.jit.component
%{_libdir}/%{name}/gb.jit.gambas
%{_datadir}/%{name}/info/gb.jit.info
%{_datadir}/%{name}/info/gb.jit.list

#-----------------------------------------------------------------------------

%package gb-libxml
Summary:	The Gambas libxml component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-libxml
This component allows you to use xml.

%files gb-libxml
%doc README ChangeLog
%{_libdir}/%{name}/gb.libxml.so*
%{_libdir}/%{name}/gb.libxml.component
%{_datadir}/%{name}/info/gb.libxml.info
%{_datadir}/%{name}/info/gb.libxml.list

#---------------------------------------------------------------------------

%package gb-logging
Summary:	Gambas3 component package for logging
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-logging
Gambas3 component package for logging.

%files gb-logging
%doc README ChangeLog
%{_libdir}/%{name}/gb.logging.*
%{_datadir}/%{name}/info/gb.logging.*

#---------------------------------------------------------------------------

%package gb-map
Summary:	Gambas3 component package for map
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-map
Gambas3 component package for map.

%files gb-map
%doc README ChangeLog
%{_libdir}/%{name}/gb.map.component
%{_libdir}/%{name}/gb.map.gambas
%{_datadir}/%{name}/info/gb.map.*
%{_datadir}/%{name}/control/gb.map

#---------------------------------------------------------------------------

%package gb-markdown
Summary:	Gambas3 component package for markdown
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-markdown
Gambas3 component package for markdown.

%files gb-markdown
%doc README ChangeLog
%{_libdir}/%{name}/gb.markdown.component
%{_libdir}/%{name}/gb.markdown.gambas
%{_datadir}/%{name}/info/gb.markdown.info
%{_datadir}/%{name}/info/gb.markdown.list

#-----------------------------------------------------------------------------

%package gb-media
Summary:	The Gambas media component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-media
This package contains the Gambas media component.

%files gb-media
%doc README ChangeLog
%{_libdir}/%{name}/gb.media.*
%{_datadir}/%{name}/info/gb.media.*
%{_datadir}/%{name}/control/gb.media.form/mediaview.png

#---------------------------------------------------------------------------

%package gb-memcached
Summary:	Gambas3 component package for memcached
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-memcached
Gambas3 component package for memcached.

%files gb-memcached
%doc README ChangeLog
%{_libdir}/%{name}/gb.memcached.*
%{_datadir}/%{name}/info/gb.memcached.*

#-----------------------------------------------------------------------------

%package gb-mime
Summary:	The Gambas mime component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-mime
New component that allows to encode and decode MIME messages.

%files gb-mime
%doc README ChangeLog
%{_libdir}/gambas3/gb.mime.component
%{_libdir}/gambas3/gb.mime.so
%{_libdir}/gambas3/gb.mime.so.0
%{_libdir}/gambas3/gb.mime.so.0.0.0
%{_datadir}/gambas3/info/gb.mime.info
%{_datadir}/gambas3/info/gb.mime.list
%{_datadir}/mime/packages/application-x-gambas3.xml
%{_datadir}/mime/packages/application-x-gambasscript.xml

#-----------------------------------------------------------------------------

%package gb-mysql
Summary:	The Gambas mysql component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-mysql
This package contains the Gambas MySQL components.

%files gb-mysql
%doc README ChangeLog
%{_libdir}/%{name}/gb.mysql.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.mysql.*

#-----------------------------------------------------------------------------

%package gb-ncurses
Summary:	The Gambas ncurses component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-ncurses
This component allows you to use ncurses with gambas.

%files gb-ncurses
%doc README ChangeLog
%{_libdir}/%{name}/gb.ncurses.so*
%{_libdir}/%{name}/gb.ncurses.component
%{_datadir}/%{name}/info/gb.ncurses.info
%{_datadir}/%{name}/info/gb.ncurses.list

#---------------------------------------------------------------------------

%package gb-net
Summary:	The Gambas networking component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-net
This component allows you to use TCP/IP and UDP sockets, and to access
any serial ports.

%files gb-net
%doc README ChangeLog
%{_libdir}/%{name}/gb.net.so*
%{_libdir}/%{name}/gb.net.component
%{_datadir}/%{name}/info/gb.net.info
%{_datadir}/%{name}/info/gb.net.list
%{_datadir}/%{name}/control/gb.net/dnsclient.png
%{_datadir}/%{name}/control/gb.net/serialport.png
%{_datadir}/%{name}/control/gb.net/serversocket.png
%{_datadir}/%{name}/control/gb.net/socket.png
%{_datadir}/%{name}/control/gb.net/udpsocket.png

#-----------------------------------------------------------------------------

%package gb-net-curl
Summary:	The Gambas advanced networking component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-net = %{EVRD}

%description gb-net-curl
This component allows your programs to easily become FTP or HTTP clients.

%files gb-net-curl
%doc README ChangeLog
%{_libdir}/%{name}/gb.net.curl.so*
%{_libdir}/%{name}/gb.net.curl.component
%{_libdir}/%{name}/gb.net.curl.gambas
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/control/gb.net.curl/dictclient.png
%{_datadir}/%{name}/control/gb.net.curl/ftpclient.png
%{_datadir}/%{name}/control/gb.net.curl/httpclient.png
%{_datadir}/%{name}/info/gb.net.curl.info
%{_datadir}/%{name}/info/gb.net.curl.list

#----------------------------------------------------------------------------

%package gb-net-pop3
Summary:	Gambas3 component package for net-pop3
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-mime = %{EVRD}

%description gb-net-pop3
New component that implements a POP3 client.

%files gb-net-pop3
%doc README ChangeLog
%{_libdir}/%{name}/gb.net.pop3.*
%{_datadir}/%{name}/info/gb.net.pop3.*
%{_datadir}/%{name}/control/gb.net.pop3/pop3client.png

#-----------------------------------------------------------------------------

%package gb-poppler
Summary:	Gambas3 component package for poppler
Group: Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-poppler
Gambas3 component package for poppler.

%files gb-poppler
%doc README ChangeLog
%{_libdir}/%{name}/gb.poppler.component
%{_libdir}/%{name}/gb.poppler.so*
%{_datadir}/%{name}/info/gb.poppler.info
%{_datadir}/%{name}/info/gb.poppler.list

#-----------------------------------------------------------------------------

%package gb-net-smtp
Summary:	The Gambas SMTP component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-net = %{EVRD}

%description gb-net-smtp
This component allows you to send emails using the SMTP protocol.

%files gb-net-smtp
%doc README ChangeLog
%{_libdir}/%{name}/gb.net.smtp.*
%{_datadir}/%{name}/info/gb.net.smtp.*
%{_datadir}/%{name}/control/gb.net.smtp/smtpclient.png

#---------------------------------------------------------------------------

%package gb-openal
Summary:	Gambas3 component package for openal
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-openal
Component based on the OpenAL 3D audio library.

%files gb-openal
%doc README ChangeLog
%{_libdir}/%{name}/gb.openal.*
%{_datadir}/%{name}/info/gb.openal.*

#-----------------------------------------------------------------------------

%package gb-opengl
Summary:	The Gambas OpenGL component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-opengl
This component allows you to use the Mesa libraries to do 3D operations.

%files gb-opengl
%doc README ChangeLog
%{_libdir}/%{name}/gb.opengl.component
%{_libdir}/%{name}/gb.opengl.so*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.opengl.info
%{_datadir}/%{name}/info/gb.opengl.list

#-----------------------------------------------------------------------------

%package gb-opengl-glsl
Summary:	The Gambas opengl-glsl component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-opengl-glsl
This component allows you to use the Mesa libraries to do 3D operations.

%files gb-opengl-glsl
%doc README ChangeLog
%{_libdir}/%{name}/gb.opengl.glsl.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.opengl.glsl.*

#-----------------------------------------------------------------------------

%package gb-opengl-glu
Summary:	The Gambas opengl-glu component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-opengl-glu
This component allows you to use the Mesa libraries to do 3D operations.

%files gb-opengl-glu
%doc README ChangeLog
%{_libdir}/%{name}/gb.opengl.glu.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.opengl.glu.*

#---------------------------------------------------------------------------

%package gb-opengl-sge
Summary:	Gambas3 component package for opengl-sge
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-opengl = %{EVRD}

%description gb-opengl-sge
Component that implements a simple OpenGL game engine based on the MD2 format.

%files gb-opengl-sge
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.opengl.sge.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.opengl.sge.*

#---------------------------------------------------------------------------

%package gb-openssl
Summary:	Gambas3 component package for openssl
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-openssl
Component to wrap cryptographic functions of 
libcrypto from the OpenSSL project.

%files gb-openssl
%doc README ChangeLog
%{_libdir}/%{name}/gb.openssl.*
%{_datadir}/%{name}/info/gb.openssl.*

#-----------------------------------------------------------------------------

%package gb-option
Summary:	The Gambas command-line option component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-option
This component allows you to interpret command-line options.

%files gb-option
%doc README ChangeLog
%{_libdir}/%{name}/gb.option.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.option.*

#-----------------------------------------------------------------------------

%package gb-pcre
Summary:	The Gambas PCRE component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-pcre
This component allows you to use Perl compatible regular expressions
within Gambas code.

%files gb-pcre
%doc README ChangeLog
%{_libdir}/%{name}/gb.pcre.*
%{_datadir}/%{name}/info/gb.pcre.*

#-----------------------------------------------------------------------------

%package gb-pdf
Summary:	The Gambas PDF component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-pdf
This component allows you to manipulate pdf files with Gambas code.

%files gb-pdf
%doc README ChangeLog
%{_libdir}/%{name}/gb.pdf.*
%{_datadir}/%{name}/info/gb.pdf.*

#-----------------------------------------------------------------------------

%package gb-qt5
Summary:	The Gambas Qt GUI component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-qt5
This package includes the Gambas QT GUI component.

%files gb-qt5
%doc README ChangeLog
%{_libdir}/%{name}/gb.qt5.component
%{_libdir}/%{name}/gb.qt5.so*
%{_datadir}/%{name}/info/gb.qt5.info
%{_datadir}/%{name}/info/gb.qt5.list

#-----------------------------------------------------------------------------

%package gb-qt5-opengl
Summary:	The Gambas qt-opengl component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-qt5-opengl
This package contains the Gambas qt-opengl components.

%files gb-qt5-opengl
%doc README ChangeLog
%{_libdir}/%{name}/gb.qt5.opengl.*
%{_datadir}/%{name}/info/gb.qt5.opengl.*

#-----------------------------------------------------------------------------

%package gb-qt5-wayland
Summary:	The Gambas Qt GUI component for wayland
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-qt5 = %{EVRD}

%description gb-qt5-wayland
The Gambas Qt5 GUI component for wayland.

%files gb-qt5-wayland
%doc README ChangeLog
%{_libdir}/%{name}/gb.qt5.wayland.*
%{_datadir}/%{name}/info/gb.qt5.wayland.*

#-----------------------------------------------------------------------------

%package gb-qt5-webkit
Summary:	The Gambas qt-webkit component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-qt5-webkit
This package contains the Gambas qt-webkit components.

%files gb-qt5-webkit
%doc README ChangeLog
%{_libdir}/%{name}/gb.qt5.webkit.*
%{_datadir}/%{name}/info/gb.qt5.webkit.*
%{_datadir}/%{name}/control/gb.qt5.webkit/webview.png

#-----------------------------------------------------------------------------

%package gb-qt5-ext
Summary:	The Gambas qt-ext component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-qt5-ext
This package contains the Gambas qt-ext components.

%files gb-qt5-ext
%doc README ChangeLog
%{_libdir}/%{name}/gb.qt5.ext.*
%{_datadir}/%{name}/info/gb.qt5.ext.info
%{_datadir}/%{name}/info/gb.qt5.ext.list

#-----------------------------------------------------------------------------

%package gb-qt5-webview

Summary:	Gambas3 component package for qt5-webview
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-qt5 = %{EVRD}

%description gb-qt5-webview
Gambas3 component package for qt5-webview.

%files gb-qt5-webview
%doc README ChangeLog
%{_libdir}/%{name}/gb.qt5.webview.*
%{_datadir}/%{name}/info/gb.qt5.webview.*

#-----------------------------------------------------------------------------

%package gb-qt5-x11
Summary:	Gambas3 component package for qt5-x11
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-qt5 = %{EVRD}

%description gb-qt5-x11
Gambas3 component package for qt5-x11.

%files gb-qt5-x11
%doc README ChangeLog
%{_libdir}/%{name}/gb.qt5.x11.*
%{_datadir}/%{name}/info/gb.qt5.x11.*

#-----------------------------------------------------------------------------

%package gb-report
Summary:	The Gambas report component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-report
This package contains the Gambas Report components.

%files gb-report
%doc README ChangeLog
%{_libdir}/%{name}/gb.report.*
%{_datadir}/%{name}/info/gb.report.*
%{_datadir}/%{name}/control/gb.report

#-----------------------------------------------------------------------------

%package gb-report2
Summary:	Gambas3 component package for reporting
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-report2
gb.report2 is a new and better implementation of the reporting component.

%files gb-report2
%doc README ChangeLog
%{_libdir}/%{name}/gb.report2.component
%{_libdir}/%{name}/gb.report2.gambas
%{_datadir}/%{name}/control/gb.report2/*.png
%{_datadir}/%{name}/info/gb.report2.info
%{_datadir}/%{name}/info/gb.report2.list

#-----------------------------------------------------------------------------

%package gb-scanner
Summary:	Gambas3 component package for SANE
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-scanner
Is a new component based on SANE to help dealing with scanners.

%files gb-scanner
%doc README ChangeLog
%{_libdir}/%{name}/gb.scanner.component
%{_libdir}/%{name}/gb.scanner.gambas
%{_datadir}/%{name}/info/gb.scanner.info
%{_datadir}/%{name}/info/gb.scanner.list

#-----------------------------------------------------------------------------

%package gb-sdl
Summary:	The Gambas SDL component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-sdl
This component use the sound, image and TTF fonts parts of the SDL
library. It allows you to simultaneously play many sounds and music
stored in a file. If OpenGL drivers are installed it uses them to 
accelerate 2D and 3D drawing.

%files gb-sdl
%doc README ChangeLog
%{_libdir}/%{name}/gb.sdl.so
%{_libdir}/%{name}/gb.sdl.so.*
%{_libdir}/%{name}/gb.sdl.component
%{_datadir}/%{name}/info/gb.sdl.info
%{_datadir}/%{name}/info/gb.sdl.list
%{_datadir}/%{name}/template/sdl

#-----------------------------------------------------------------------------

%package gb-sdl2
Summary:	The Gambas SDL2 component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-sdl2
This component use the sound, image and TTF fonts parts of the SDL2
library. It allows you to simultaneously play many sounds and music
stored in a file. If OpenGL drivers are installed it uses them to 
accelerate 2D and 3D drawing.

%files gb-sdl2
%doc README ChangeLog
%{_libdir}/%{name}/gb.sdl2.so
%{_libdir}/%{name}/gb.sdl2.so.*
%{_libdir}/%{name}/gb.sdl2.component
%{_datadir}/%{name}/info/gb.sdl2.info
%{_datadir}/%{name}/info/gb.sdl2.list

#-----------------------------------------------------------------------------

%package gb-sdl-sound
Summary:	The Gambas SDL sound component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-sdl-sound
This component allows you to play sounds in Gambas. This component 
manages up to 32 sound tracks that can play sounds from memory, and
one music track that can play music from a file. Everything is mixed
in real time.

%files gb-sdl-sound
%doc README ChangeLog
%{_libdir}/%{name}/gb.sdl.sound.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.sdl.sound.*

#-----------------------------------------------------------------------------

%package gb-sdl2-sound
Summary:	The Gambas SDL sound component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-sdl2-sound
This component allows you to play sounds in Gambas. This component 
manages up to 32 sound tracks that can play sounds from memory, and
one music track that can play music from a file. Everything is mixed
in real time using SDL2.

%files gb-sdl2-sound
%doc README ChangeLog
%{_libdir}/%{name}/gb.sdl2.audio.component
%{_libdir}/%{name}/gb.sdl2.audio.so
%{_libdir}/%{name}/gb.sdl2.audio.so.0
%{_libdir}/%{name}/gb.sdl2.audio.so.0.0.0
%{_datadir}/%{name}/info/gb.sdl2.audio.info
%{_datadir}/%{name}/info/gb.sdl2.audio.list

#-----------------------------------------------------------------------------

%package gb-settings
Summary:	The Gambas settings component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-settings
This components allows you to deal with configuration files.

%files gb-settings
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.settings.*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.settings.*

#-----------------------------------------------------------------------------

%package gb-signal
Summary:	The Gambas signal component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-signal
This package contains the Gambas Signal components.

%files gb-signal
%doc README ChangeLog
%{_libdir}/%{name}/gb.signal.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.signal.*

#-----------------------------------------------------------------------------

%package gb-util
Summary:	Gambas3 component package for utility functions
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-util
Is a new component written in Gambas that 
provides utility functions to the interpreter.

%files gb-util
%doc README ChangeLog
%{_libdir}/%{name}/gb.util.component
%{_libdir}/%{name}/gb.util.gambas
%{_datadir}/%{name}/info/gb.util.info
%{_datadir}/%{name}/info/gb.util.list

#-----------------------------------------------------------------------------

%package gb-util-web
Summary:	Gambas3 component package for web applications
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-util-web
Is a new component written in Gambas that 
provides utility functions to web applications.

%files gb-util-web
%doc README ChangeLog
%{_libdir}/%{name}/gb.util.web.component
%{_libdir}/%{name}/gb.util.web.gambas
%{_datadir}/%{name}/control/gb.util.web/ccontainer.png
%{_datadir}/%{name}/control/gb.util.web/ccontrol.png
%{_datadir}/%{name}/info/gb.util.web.info
%{_datadir}/%{name}/info/gb.util.web.list

#-----------------------------------------------------------------------------

%package gb-v4l
Summary:	The Gambas Video4Linux component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-v4l
This components allows you to use the Video4Linux interface with
Gambas.

%files gb-v4l
%doc README ChangeLog
%{_libdir}/%{name}/gb.v4l.*
%{_datadir}/%{name}/info/gb.v4l.*

#-----------------------------------------------------------------------------

%package gb-vb
Summary:	The Gambas Visual Basic(tm) compatibility component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-vb
This component aims at including some functions that imitate the
behavior of Visual Basic(TM) functions. Use it only if you want to
port some VB projects.

%files gb-vb
%doc README ChangeLog
%{_libdir}/%{name}/gb.vb.*
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.vb.*

#-----------------------------------------------------------------------------

%package gb-web
Summary:	The Gambas CGI component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-web
This components allows you to make CGI web applications using Gambas, 
with an ASP-like interface.

%files gb-web
%doc README ChangeLog
%{_datadir}/%{name}/template/web
%{_libdir}/%{name}/gb.web.component
%{_libdir}/%{name}/gb.web.gambas
%{_datadir}/%{name}/info/gb.web.info
%{_datadir}/%{name}/info/gb.web.list

#------------------------------------------------------------------------------

%package gb-web-form
Summary:	Create GUI of your web application from the Gambas IDE
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-web-form
A new component that allows to make the GUI 
of your web application from the Gambas IDE. 
Almost everything is done on the server side. 
The user browser is mainly used as an enhanced 
graphical terminal running the less JavaScript as possible. 
Events and page refresh flow between the browser 
and the server through XML HTTP requests.

%files gb-web-form
%doc README ChangeLog
%{_libdir}/%{name}/gb.web.form.*
%{_datadir}/%{name}/info/gb.web.form.*
%{_datadir}/%{name}/control/gb.web.form
%{_datadir}/%{name}/template/webform

#-----------------------------------------------------------------------------

%package gb-xml
Summary:	The Gambas xml component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-xml
This component allows you to use xml.

%files gb-xml
%doc README ChangeLog
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gb.xml.gambas
%{_libdir}/%{name}/gb.xml.so*
%{_libdir}/%{name}/gb.xml.component
%dir %{_datadir}/%{name}/info
%{_datadir}/%{name}/info/gb.xml.info
%{_datadir}/%{name}/info/gb.xml.list

#-----------------------------------------------------------------------------

%package gb-xml-html
Summary:	The Gambas xml html component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-xml = %{EVRD}

%description gb-xml-html
This component allows you to use xml html.

%files gb-xml-html
%doc README ChangeLog
%{_libdir}/%{name}/gb.xml.html.so*
%{_libdir}/%{name}/gb.xml.html.component
%{_datadir}/%{name}/info/gb.xml.html.info
%{_datadir}/%{name}/info/gb.xml.html.list

#-----------------------------------------------------------------------------

%package gb-xml-rpc
Summary:	The Gambas xml-rpc component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-xml = %{EVRD}

%description gb-xml-rpc
This component allows you to use xml-rpc.

%files gb-xml-rpc
%doc README ChangeLog
%{_libdir}/%{name}/gb.xml.rpc*
%{_datadir}/%{name}/info/gb.xml.rpc.info
%{_datadir}/%{name}/info/gb.xml.rpc.list

#-----------------------------------------------------------------------------

%package gb-xml-xslt
Summary:	The Gambas xml-rpc component
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-xml = %{EVRD}

%description gb-xml-xslt
This component allows you to use xml-xslt.

%files gb-xml-xslt
%doc README ChangeLog
%{_libdir}/%{name}/gb.xml.xslt*
%{_datadir}/%{name}/info/gb.xml.xslt*

#-----------------------------------------------------------------------------

%package gb-web-feed
Summary:	The Gambas CGI web-feed component
Group:		Development/Basic
Requires:	%{name}-runtime = %{version}
Requires:	%{name}-gb-web = %{version}

%description gb-web-feed
This components allows you to make 
CGI web-feed applications using Gambas,
with an ASP-like interface.

%files gb-web-feed
%doc README ChangeLog
%{_libdir}/%{name}/gb.web.feed.component
%{_libdir}/%{name}/gb.web.feed.gambas
%{_datadir}/%{name}/info/gb.web.feed.info
%{_datadir}/%{name}/info/gb.web.feed.list

#-----------------------------------------------------------------------------

%package gb-term
Summary:	The Gambas Terminal component
Group:		Development/Basic
Requires:	%{name}-runtime = %{version}

%description gb-term
This component allows to manager terminals, 
with an API very close to the one 
provided by the operating system.

%files gb-term
%doc README ChangeLog
%{_libdir}/%{name}/gb.term.*
%{_datadir}/%{name}/info/gb.term.*
%{_datadir}/%{name}/control/gb.term.form/*

#-----------------------------------------------------------------------------

%package gb-test
Summary:	Gambas3 component package for unit tests
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-test
Gambas3 component package for unit tests.

%files gb-test
%doc README ChangeLog
%{_libdir}/%{name}/gb.test.*
%{_datadir}/%{name}/info/gb.test.info
%{_datadir}/%{name}/info/gb.test.list

#-----------------------------------------------------------------------------

%package gb-web-gui
Summary: 	Gambas3 component package for web-gui
Requires:	%{name}-runtime = %{EVRD}
Requires:	%{name}-gb-web = %{EVRD}

%description gb-web-gui
Gambas3 component package for web-gui.

%files gb-web-gui
%doc README ChangeLog
%{_libdir}/%{name}/gb.web.gui.component
%{_libdir}/%{name}/gb.web.gui.gambas
%{_datadir}/%{name}/info/gb.web.gui.info
%{_datadir}/%{name}/info/gb.web.gui.list
%{_datadir}/%{name}/control/gb.web.gui

#-----------------------------------------------------------------------------

%package gb-hash
Summary:	Gambas3 component package for MD5, SHA1, SHA256 and SHA512 hashing functions
Group:		Development/Basic
Requires:	%{name}-runtime = %{EVRD}

%description gb-hash
Gambas3 component package for MD5, SHA1, SHA256 and SHA512 hashing functions

%files gb-hash
%{_libdir}/%{name}/gb.hash.*
%{_datadir}/%{name}/info/gb.hash.info
%{_datadir}/%{name}/info/gb.hash.list

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# remove, not-working
rm -rf app/examples/Games/Invaders
rm -rf app/examples/Multimedia/MediaPlayer
# fix some linting
chmod -x main/gbx/gbx_local.h
chmod -x main/gbx/gbx_subr_file.c
chmod -x gb.qt4/src/CContainer.cpp
chmod -x main/lib/option/getoptions.*
chmod -x main/lib/option/main.c
chmod -x gb.xml/src/xslt/CXSLT.cpp
chmod -x gb.xml/src/xslt/CXSLT.h
chmod -x gb.xml/src/xslt/main.cpp
chmod -x main/lib/option/main.h

%build
./reconf-all
# gambas cannot deal with some of compile_flags from system libtool
# so vanilla build it is
./configure	\
	--datadir="%{_datadir}"		\
	--includedir="%{_includedir}"	\
	--libdir="%{_libdir}"		\
	--with-crypt-libraries=%{_libdir}

# drop rpath
for i in main; do
	sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' $i/libtool
	sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' $i/libtool
done

make

%install
export PATH=%{buildroot}%{_bindir}:$PATH
%makeinstall_std

# Get the SVN noise out of the main tree
find %{buildroot}%{_datadir}/%{name}/ -type d -name .svn -exec rm -rf {} 2>/dev/null ';' || :

# Mime types.
mkdir -p %{buildroot}%{_datadir}/mime/packages
install -m 0644 -p app/mime/application-x-gambasscript.xml %{buildroot}%{_datadir}/mime/packages
install -m 0644 -p main/mime/application-x-gambas3.xml %{buildroot}%{_datadir}/mime/packages

# exammples
mkdir -p %{buildroot}%{_datadir}/%{name}/examples
cp -R app/examples/ %{buildroot}%{_datadir}/%{name}
# remove old examples for qt4
rm -rd %{buildroot}%{_datadir}/%{name}/template/qt

# clean, should be done upstream
find %{buildroot} -name '*.la' -delete
rm -f %{buildroot}%{_libdir}/%{name}/gb.so %{buildroot}%{_libdir}/%{name}/gb.so.*

# menu entry && icons
install -D -m 644 app/desktop/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
install -D -m 644 app/src/%{name}/img/logo/logo-ide.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -m 644 app/desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

# fix appdata for >= 2016.1
mkdir -p %{buildroot}%{_appdatadir}
mv %{buildroot}%{_datadir}/appdata/gambas3.appdata.xml \
	%{buildroot}%{_appdatadir}/gambas3.appdata.xml
rm -fr %{buildroot}%{_datadir}/appdata
# moore linting
chmod -x %{buildroot}%{_appdatadir}/gambas3.appdata.xml
chmod -x %{buildroot}%{_libdir}/gambas3/gb.component

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1716 |21cr|gambatte-571-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define subver r571

Summary:	Game Boy Color emulator with Qt and SDL frontends
Name:		gambatte
Version:	571
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://sourceforge.net/projects/gambatte/
Source0:	https://sourceforge.net/projects/gambatte/files/gambatte/%{subver}/%{name}_src-%{subver}.tar.gz
Source1:	%{name}.png
BuildRequires:	fontconfig
BuildRequires:	imagemagick
BuildRequires:	scons
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xv)

%description
Gambatte is an accuracy-focused, open-source, cross-platform
Game Boy / Game Boy Color emulator written in C++. It is based on hundreds of
corner case hardware tests, as well as previous documentation and reverse
engineering efforts.

The core emulation code is contained in a separate library back-end
(libgambatte) written in platform-independent C++. There is currently a GUI
front-end (gambatte_qt) using Trolltech's Qt4 toolkit, and a simple 
command-line SDL front-end (gambatte_sdl).

%files
%doc README changelog COPYING
%{_bindir}/gambatte_*
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}_src-%{subver}

# fix png rgb 
find . %{SOURCE1} -exec convert {} -strip {} \;


%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
cd libgambatte
%scons
cd ../gambatte_qt
%qmake_qt4
%make
cd ../gambatte_sdl
%scons

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 gambatte_qt/bin/gambatte_qt %{buildroot}%{_bindir}
install -m 755 gambatte_sdl/gambatte_sdl %{buildroot}%{_bindir}

# install menu entries
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Gambatte
Comment=Game Boy Color Emulator
Exec=%{name}_qt
Icon=%{name}
Type=Application
Terminal=false
Categories=X-MandrivaLinux-MoreApplications-Emulators;Emulator;
EOF

#Icons
mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -c -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

mkdir -p %{buildroot}%{_miconsdir}
mkdir -p %{buildroot}%{_liconsdir}
mkdir -p %{buildroot}%{_iconsdir}

install -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 %{SOURCE1} %{buildroot}%{_liconsdir}/%{name}.png
convert %{buildroot}%{_miconsdir}/%{name}.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
convert %{buildroot}%{_iconsdir}/%{name}.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1717 |21cr|game24-1.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	24gameconsole

Summary:	A console application to play the 24 game
Name:		game24
Version:	1.0.1
Release:	3
License:	ASL 2.0 
Group:		Games/Cards 
Url:		https://github.com/benhengx/game24
Source0:	http://pypi.python.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
A console application to play the 24 Game.

%files
%doc LICENSE README.rst
%{_bindir}/%{oname} 
%{_datadir}/applications/%{name}.desktop
%{py2_puresitedir}/%{name}/*.py*
%{py2_puresitedir}/%{name}*.egg-info
#-----------------------------------------------------------

%prep
%setup -q

%build
%py2_build

%install
%py2_install

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=A console application to play the 24 game
Exec=%{oname} 
Icon=applications-cardgames
Type=Application
StartupNotify=false
Categories=Game;CardGame;
Terminal=true
EOF

chmod +x %{buildroot}%{py2_puresitedir}/%{name}/%{oname}.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1718 |21cr|gameandwatch-0.3-131.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn 131

Summary:	A generic engine for simulation of Game & Watch-like games
Name:		gameandwatch
Version:	0.3
Release:	%{svn}.2
License:	GPLv3+
Group:		Emulators
Url:		http://www.rangelreale.com/programming/game-watch-simulator
# fetched from svn
Source0:	%{name}-%{version}-%{svn}.tar.bz2
Patch0:		gameandwatch-0.3-131-type.patch
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(zziplib)

%description
This is a generic engine for simulation of Game & Watch games,
starting with ports of the Madrigal Game & Watch Simulators
(http://www.madrigaldesign.it/sim/).

It is designed to run anywhere SDL is available, withemphasis
in handheld machines.

Currently 6 games from VTECH are simulated:
- MONKEY
- PIRATE
- DEFENDO
- CONDOR
- PANCAKE
- ROLLER COASTER

%files
%doc doc/README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{svn}
%patch0 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

# menu-entry, overwrite the default one
mkdir -p  %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
[Desktop Entry]
Version=1.0
Name=Game & Watch Simulator
Comment=Game & Watch-like games simulator
Exec=gameandwatch %U
Icon=gameandwatch
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1719 |21cr|gamemode-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Optimize system performance for games on demand
Name:		gamemode
Version:	1.7
Release:	1
License:	BSD
Group:		Games/Other
Url:		https://github.com/FeralInteractive/gamemode
Source0:	https://github.com/FeralInteractive/gamemode/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1000:	%{name}.rpmlintrc
BuildRequires:	appstream
BuildRequires:	asciidoc
BuildRequires:	meson
BuildRequires:	python3-pkg-resources
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(inih)
BuildRequires:	pkgconfig(systemd)
Requires:	%{libname} = %{EVRD}

%description
GameMode is a daemon/lib combo for GNU/Linux that allows games to
request a set of optimizations be temporarily applied to the host OS.
GameMode was designed primarily as a stop-gap solution to problems
with the Intel and AMD CPU "powersave" or "ondemand" governors, but
is now able to launch custom user defined plugins, and is intended
to be expanded further, as there are a wealth of automation tasks
one might want to apply.

%files
%doc README.md
%license LICENSE.txt
%{_appdatadir}/io.github.feralinteractive.%{name}.metainfo.xml
%{_bindir}/%{name}*
%config(noreplace) %{_sysusersdir}/%{name}.conf
%{_datadir}/dbus-1/services/com.feralinteractive.GameMode.service
%{_datadir}/%{name}/%{name}.ini
%{_datadir}/polkit-1/actions/com.feralinteractive.GameMode.policy
%{_libexecdir}/cpugovctl
%{_libexecdir}/gpuclockctl
%{_mandir}/man1/*
%{_mandir}/man8/*
%{_userunitdir}/%{name}d.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gamemode library
Group:		System/Libraries

%description -n %{libname}
Gamemode library.

%files -n %{libname}
%{_libdir}/lib%{name}*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%{_includedir}/%{name}_client.h
%{_libdir}/lib%{name}*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Drop when fix systemd
sed -i "s!\(path_systemd_sysusers_dir =\) .*!\1 \x27%{_sysusersdir}\x27!" meson.build

%build
%meson
%meson_build

%check
%meson_test

%install
%meson_install

# clean .a
find %{buildroot} -type f -name "*.a" -exec rm -f {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1720 |21cr|gamescope-3.11.32-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Micro-compositor for video games on Wayland
Name:		gamescope
Version:	3.11.32
Release:	3
License:	BSD
Group:		Games/Other
Url:		https://github.com/Plagman/gamescope
Source0:	https://github.com/Plagman/gamescope/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	stb.pc
Patch0:		gamescope-3.11.32-use-system-wlroots-libliftoff-libraries.patch
BuildRequires:	glslang
BuildRequires:	meson
BuildRequires:	stb-devel
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libliftoff)
#BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wlroots)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xres)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xxf86vm)

%description
%{name} is the micro-compositor optimized for running video games on Wayland.

%files
%doc README.md
%license LICENSE
%{_bindir}/gamescope

#----------------------------------------------------------------------------

%prep
%autosetup -p1
mkdir -p pkgconfig
cp %{SOURCE1} pkgconfig
rmdir subprojects/libliftoff
rmdir subprojects/wlroots

%build
export PKG_CONFIG_PATH=pkgconfig
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1721 |21cr|gamin-0.1.10-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
# TODO: Split library package
%define libname %mklibname %{name}- 1 %{major}
%define devname %mklibname %{name}- 1 -d

Summary:	Library providing the FAM File Alteration Monitor API
Name:		gamin
Version:	0.1.10
Release:	18
License:	LGPLv2.1+
Group:		Monitoring
Url:		http://www.gnome.org/~veillard/gamin/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/gamin-%{version}.tar.bz2
Patch0:		gamin-0.1.10_G_CONST_RETURN.patch
# See http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=542361
Patch1:		gamin-fix-deadlock.patch
Patch2:		gamin-0.1.10-enabledepr.patch
Patch3:		python_check.patch
Patch4:		python_ld.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(python2)
Requires:	%{libname} = %{EVRD}

%description
This C library provides an API and ABI compatible file alteration
monitor mechanism compatible with FAM but not dependent on a system wide
daemon.

%files
%doc AUTHORS ChangeLog README Copyright TODO
%{_libexecdir}/gam_server

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic library for Gamin
Group:		System/Libraries

%description -n %{libname}
This C library provides an API and ABI compatible file alteration
monitor mechanism compatible with FAM but not dependent on a system wide
daemon.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc. to embed the Gamin library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	fam-devel = %{EVRD}
Obsoletes:	%{mklibname gamin- 1 0 -d} < 0.1.10-12

%description -n %{devname}
This C library provides an API and ABI compatible file alteration
monitor mechanism compatible with FAM but not dependent on a system wide
daemon.

%files -n %{devname}
%doc AUTHORS ChangeLog README Copyright TODO
%{_libdir}/lib*.so
%{_libdir}/libgamin_shared.a
%{_includedir}/fam.h
%{_libdir}/pkgconfig/gamin.pc

#----------------------------------------------------------------------------

%package -n python2-%{name}
%py2_migration_meta python2-%{name}
Summary:	Python bindings for the gamin library
Group:		Development/Python

%description -n python2-%{name}
This package contains a module that allow monitoring of files and directories
from the Python language based on the support of the gamin package.

%files -n python2-%{name}
%doc python/tests/*.py
%doc doc/python.html
%{python2_sitearch}/*gamin*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--enable-inotify \
	--with-python=%{__python2}

%make_build

%install
%make_install
rm -f %{python2_sitearch}/_gamin.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1722 |21cr|gammu-1.42.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Mobile phones tools for Unix (Linux) and Win32
Name:		gammu
Version:	1.42.0
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://www.gammu.org/
Source:		http://dl.cihar.com/gammu/releases/%{name}-%{version}.tar.bz2?/%{name}-%{version}.tar.bz2
Source1:	69-gammu-acl.rules
BuildRequires:	pkgconfig(bluez)
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	systemd-units
BuildRequires:	gettext-devel
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(dbi)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)

%description
Gammu can do such things with cellular phones as making data calls,
updating the address book, changing calendar and ToDo entries, sending and
receiving SMS messages, loading and getting ring tones and pictures (different
types of logos), synchronizing time, enabling NetMonitor, managing WAP
settings and bookmarks and much more. Functions depend on the phone model.

%files -f %{name}.lang
%doc ChangeLog COPYING INSTALL
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/gammurc
%{_sysconfdir}/udev/rules.d/*.rules
%{_sysconfdir}/bash_completion.d/gammu
%{_bindir}/gammu
# won't build on abf
#%%{_bindir}/gammu-detect
#
%{_bindir}/gammu-smsd
%{_bindir}/gammu-smsd-inject
%{_bindir}/gammu-smsd-monitor
%{_bindir}/jadmaker
%{_mandir}/man1/gammu-detect.*
%{_mandir}/man1/gammu-smsd-inject.*
%{_mandir}/man1/gammu-smsd-monitor.1.*
%{_mandir}/man1/gammu-smsd.*
%{_mandir}/man1/gammu.*
%{_mandir}/man1/jadmaker.*
%{_mandir}/man5/*
%{_mandir}/man7/*
%{_datadir}/%{name}
%{_unitdir}/gammu-smsd.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Mobile phones tools for Unix (Linux) and Win32 (libraries)
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
Gammu can do such things with cellular phones as making data calls,
updating the address book, changing calendar and ToDo entries, sending and
receiving SMS messages, loading and getting ring tones and pictures (different
types of logos), synchronizing time, enabling NetMonitor, managing WAP
settings and bookmarks and much more. Functions depend on the phone model.

%files -n %{libname}
%doc ChangeLog COPYING INSTALL
%{_libdir}/libGammu.so.%{major}*
%{_libdir}/libgsmsd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and pkgconfig file for Gammu development
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libgammu-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and pkgconfig file that programmers
will need to develop applications which will use libGammu.

%files -n %{devname}
%{_defaultdocdir}/gammu
%{_bindir}/gammu-config
%{_libdir}/*.so
%{_includedir}/gammu
%{_mandir}/man1/gammu-config.*
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake -DINSTALL_LIB_DIR=%{_lib}
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_sysconfdir}
sed -e 's|^port =.*$|port = /dev/ttyS0|' \
    -e 's|^connection =.*$|connection = dlr3|' \
    -e 's/$//' \
    < docs/config/gammurc > %{buildroot}%{_sysconfdir}/gammurc

mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/69-gammu-acl.rules

%find_lang %{name} lib%{name} %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1723 |21cr|gammy-0.9.64-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Adaptive screen brightness tool for Windows/Linux
Name:           gammy
Version:        0.9.64
Release:        2
License:        GPLv3+
Url:            https://getgammy.com/
Group:          Graphics
Source0:        https://github.com/Fushko/gammy/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:         MRB-QPalette-member.patch
Patch1:         gammy-headers.patch
BuildRequires:  mesa-common-devel
BuildRequires:  qt5-devel
BuildRequires:  qmake5

%description
is a GUI tool for adjusting pixel brightness 
automatically (or manually) and temperature 
(manual only for now).
It can dim the screen if its content is too bright,
or brighten it otherwise. This can help your eyes 
adjust when switching between dark and 
light windows, especially at night or in 
suboptimal lighting conditions.

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
#-------------------------------------------------
%prep
%autosetup -p1

%build
%qmake_qt5
%make

%install
%makeinstall_qt target.path=%{_bindir}

# rewrite desktop file with right Categories
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Adaptive screen brightness tool
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Graphics;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1724 |21cr|ganv-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	api 1
%define	major 1
%define	girmajor 1.0
%define	libname %mklibname %{name} %{api} %{major}
%define	girname %mklibname %{name}-gir %{girmajor}
%define	devname %mklibname %{name} %{api} -d

Summary:	Gtk2 widget for interactive "boxes and lines"
Name:		ganv
Version:	1.8.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/GNOME
Url:			http://drobilla.net/software/ganv/
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	gtk-doc
BuildRequires:	python2
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkmm-2.4) >= 2.10.0
BuildRequires:	pkgconfig(libgvc) >= 2.30

%description
Ganv is an interactive Gtk2 widget for interactive "boxes and lines" or
graph-like environments (e.g. modular synths or finite state machine diagrams).

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gtk2 widget for interactive "boxes and lines"
Group:		System/Libraries

%description -n %{libname}
Ganv is an interactive Gtk2 widget for interactive "boxes and lines" or
graph-like environments (e.g. modular synths or finite state machine diagrams).
This package contains the main library for %{name}.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README.md
%{_libdir}/libganv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{girname} < %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Ganv-%{girmajor}.typelib
%{_datadir}/gir-1.0/Ganv-%{girmajor}.gir

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{devname} < %{EVRD}

%description -n %{devname}
Ganv is an interactive Gtk2 widget for interactive "boxes and lines" or
graph-like environments (eg. modular synths or finite state machine diagrams).
This package contains development files for %{name}.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}-%{api}/*
%{_libdir}/libganv-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#-----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:		noarch

%description doc
Ganv is an interactive Gtk2 widget for interactive "boxes and lines" or
graph-like environments (e.g. modular synths or finite state machine diagrams).
This package contains development documentation for %{name}.

%files doc
%doc COPYING
#doc build/doc-html/*

#-----------------------------------------------------------------------------

%package tests
Summary:	Test programs for %{name}
Group:		Graphics
Requires:	%{libname} = %{EVRD}

%description tests
Ganv is an interactive Gtk2 widget for interactive "boxes and lines" or
graph-like environments (eg. modular synths or finite state machine diagrams).
This package contains program tests for %{name}.

%files tests
%doc COPYING
%{_bindir}/%{name}_*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%python2 ./waf configure \
	--docs \
	--gir \
	--prefix=%{_prefix} \
	--configdir=%{_sysconfdir} \
	--libdir=%{_libdir}
%python2 ./waf

# This give build errors
#./gtkdoc.sh


%install
%python2 ./waf install --destdir=%{buildroot}

# Place the .gir file in the right spot
mkdir -p %{buildroot}%{_datadir}/gir-1.0
mv %{buildroot}%{_libdir}/girepository-1.0/Ganv-%{girmajor}.gir %{buildroot}%{_datadir}/gir-1.0/

# Remove the installed docs 
rm -rf %{buildroot}%{_datadir}/doc/%{name}-0/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1725 |21cr|ganyremote-8.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	GTK front-end for anyRemote
Name:		ganyremote
Version:	8.1.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://anyremote.sourceforge.net/
Source0:	https://sourceforge.net/projects/anyremote/files/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch0:		0001-Port-to-Ayatana-AppIndicator.patch
Requires:	python3dist(pygobject)
Requires:	python3dist(pybluez)
Requires:	anyremote >= 6.7
Requires:	bluez
BuildArch:	noarch

%description
gAnyRemote package is GTK GUI front-end for anyRemote. It provides remote
control service on Linux through Bluetooth, InfraRed, Wi-Fi or TCP/IP
connection.

%files -f %{name}.lang
%doc NEWS README AUTHORS
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}*.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

# we'll cp our own doc files
rm -rf %{buildroot}%{_datadir}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1726 |21cr|gap-4.11.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%global gapdir %{_prefix}/lib/gap
%global icondir %{_datadir}/icons/hicolor
%global gapbits default%{__isa_bits}

%global gapcpu %{_build}
%global gaparch %{gapcpu}-%{gapbits}-kv7

# When bootstrapping a new architecture, there are no GAPDoc, gap-pkg-primgrp,
# gap-pkg-smallgrp, or gap-pkg-transgrp packages yet, but the gap binary
# refuses to run unless all four are present.  Therefore, build as follows:
# 1. Build this package in bootstrap mode.
# 2. Build GAPDoc.
# 3. Build gap-pkg-primgrp and gap-pkg-transgrp.
# 4. Build gap-pkg-autodoc in bootstrap mode.
# 5. Build gap-pkg-io
# 6. Build gap-pkg-autodoc in non-bootstrap mode.
# 7. Build gap-pkg-smallgrp.
# 8. Build this package in non-bootstrap mode.
%bcond_with bootstrap

Name:		gap
Version:	4.11.1
Release:	2
Summary:	Computational discrete algebra
License:	GPLv2+
Group:		Sciences/Mathematics
URL:		http://www.gap-system.org/
Source0:	https://github.com/gap-system/gap/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1:	gap-README.fedora
Source2:	update-gap-workspace
Source3:	gap.xml
Source4:	org.gap-system.gap.desktop
Source5:	org.gap-system.gap.metainfo.xml
Source6:	gap.1.in
Source7:	gac.1.in
Source8:	update-gap-workspace.1
Source9:	gap.vim
# Patch applied in bootstrap mode to break circular dependencies.
Patch0:		%{name}-bootstrap.patch
# This patch applies a change from Debian to allow help files to be in gzip
# compressed DVI files, and also adds support for viewing with xdg-open.
Patch1:		%{name}-help.patch
# Fix broken references in the reference manual's lab file
Patch2:		%{name}-ref.patch
# Fix paths in gac
Patch3:		%{name}-gac.patch

BuildRequires:	appstream
BuildRequires:	desktop-file-utils
BuildRequires:	ghostscript
BuildRequires:	gmp-devel
BuildRequires:	libtool
BuildRequires:	netpbm
BuildRequires:	parallel
BuildRequires:	perl-generators
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	procps
Requires:       %{libname} = %{EVRD}
Requires:       %{name}-core = %{EVRD}
Requires:       %{name}-online-help = %{EVRD}
# The gap binary executes gunzip
Requires:       gzip

%description
GAP is a system for computational discrete algebra, with particular
emphasis on Computational Group Theory.  GAP provides a programming
language, a library of thousands of functions implementing algebraic
algorithms written in the GAP language as well as large data libraries
of algebraic objects.  GAP is used in research and teaching for studying
groups and their representations, rings, vector spaces, algebras,
combinatorial structures, and more.

This is a metapackage that requires the standard GAP components.

%files
# No files in the metapackage

#-----------------------------------------------------------------
%package -n %{libname}
Summary:	GAP shared libraries
Group:		System/Libraries

%description -n %{libname}
This package contains the essential GAP libraries: lib and grp, as well as
the primitive, small, and transitive group databases.

%files -n %{libname}
%{_libdir}/libgap.so.%{major}*

#-----------------------------------------------------------------

%package core
Summary:	GAP core components
Requires:	%{libname} = %{EVRD}
%if %{without bootstrap}
Requires:       GAPDoc
%endif
# The gap binary executes gunzip
Requires:	gzip
Requires:	hicolor-icon-theme

%description core
This package contains the core GAP system.

%files core
%doc README.fedora
%dir %{gapdir}
%{_bindir}/gap
%{_bindir}/update-gap-workspace
%{gapdir}/sysinfo.gap*
%{gapdir}/pkg/
%{_mandir}/man1/gap.1*
%{_mandir}/man1/update-gap-workspace.1*
%{gapdir}/grp/
%{gapdir}/lib/
%{_datadir}/applications/org.gap-system.gap.desktop
%{_datadir}/mime/packages/gap.xml
%{icondir}/*/apps/gap.png
%{_datadir}/metainfo/org.gap-system.gap.metainfo.xml
%dir %{_localstatedir}/lib/%{name}/
%verify(user group mode) %{_localstatedir}/lib/%{name}/workspace.gz

#-----------------------------------------------------------------

%package online-help
Summary:	Online help for GAP
Requires:	%{name}-core = %{EVRD}
BuildArch:	noarch

%description online-help
This package contains the documentation in TeX format needed for GAP's
online help system.

%files online-help
%{gapdir}/doc/

#-----------------------------------------------------------------

%package -n %{devname}
Summary:	GAP compiler and development files
Group:		Development/Other
Requires:	%{name}-core = %{EVRD}
Requires:	%{name}-macros = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the GAP compiler (gac) and the header files necessary
for developing GAP programs.

%files -n %{devname}
%{_bindir}/gac
%{_includedir}/gap
%{_libdir}/libgap.so
%{gapdir}/bin/
%{gapdir}/gac
%{gapdir}/gap
%{gapdir}/gen
%{gapdir}/src
%{gapdir}/tst/
%{_mandir}/man1/gac.1*

#-----------------------------------------------------------------
%package macros
Summary:	GAP rpm macros
Group:		Development/Other
BuildArch:	noarch

%description macros
This package contains the GAP rpm macros for use in additional spec files.

%files macros
%config(noreplace) %{_rpmconfigdir}/macros.d/macros.gap

#-----------------------------------------------------------------

%package vim
Summary:	Edit GAP files with VIM
Requires:	%{name}-core = %{EVRD}, vim-enhanced
BuildArch:	noarch

%description vim
This package provides VIM add-on files to support editing GAP sources.
Both syntax highlighting and indentation are supported.

%files vim
%{gapdir}/etc/
%{_datadir}/vim/vimfiles/ftdetect/gap.vim
%{_datadir}/vim/vimfiles/indent/gap_indent.vim
%{_datadir}/vim/vimfiles/syntax/gap.vim


#-----------------------------------------------------------------

%prep
%setup -q
%if %{with bootstrap}
%patch0
%endif
%patch1
%patch2
%patch3

# Get the README
cp -p %{SOURCE1} README.fedora

%build
# -Wl,-z,now breaks use of RTLD_LAZY
# Even though the GAP kernel is single-threaded, it must be linked with pthreads
# or packages cannot successfully load and run multithreaded shared objects.
export LDFLAGS="-lpthread -Wl,-z,relro -Wl,--as-needed"
export CPPFLAGS='-DSYS_DEFAULT_PATHS="\"%{gapdir}\""'
export STRIP=%{_bindir}/true
%configure

# Get rid of undesirable hardcoded rpaths
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    -i libtool

%make_build V=1

# Rebuild the manuals from source
export GAP_DIR=$PWD
make manuals

# Remove build paths
sed -i "s|$PWD|%{gapdir}|g" sysinfo.gap bin/gap.sh gac doc/make_doc

# Don't link every package shared object with libpthread
sed -i "s/[[:blank:]]*-lpthread[[:blank:]]*//" sysinfo.gap

# Fix mangled paths in gap.sh
sed -i "s|^\(GAP_EXE=\).*|\1%{_bindir}|;/  GAP_EXE=/d" bin/gap.sh

# Create an RPM macro file for GAP packages
cat > macros.%{name} << EOF
%%_gap_version %{version}
%%_gap_dir %{gapdir}
%%_gap_arch %{gaparch}
EOF

%install
# Install the headers
mkdir -p %{buildroot}%{_includedir}/gap/hpc
cp -p src/*.h %{buildroot}%{_includedir}/gap
cp -p src/hpc/*.h %{buildroot}%{_includedir}/gap/hpc

# Install libgap
mkdir -p %{buildroot}%{_libdir}
libtool --mode=install %{_bindir}/install -c libgap.la %{buildroot}%{_libdir}
rm -f %{buildroot}%{_libdir}/*.la

# Install the binaries
mkdir -p %{buildroot}%{_bindir}
install -p -m755 gap %{buildroot}%{_bindir}
install -p -m755 gac %{buildroot}%{_bindir}
install -p -m755 %{SOURCE2} %{buildroot}%{_bindir}

# Install the data
mkdir -p %{buildroot}%{gapdir}/etc
cp -a grp lib tst %{buildroot}%{gapdir}
cp -p etc/convert.pl %{buildroot}%{gapdir}/etc
rm -f %{buildroot}%{gapdir}/tst/mockpkg/doc/.gitignore

# Install the arch-specific files
cp -a sysinfo.gap* %{buildroot}%{gapdir}

# Create the system workspace, initially empty
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
touch %{buildroot}%{_localstatedir}/lib/%{name}/workspace.gz

# Make a link to the headers so the GAP compiler can find them
ln -s %{_includedir}/gap %{buildroot}%{gapdir}/src

# Install config.h
mkdir -p %{buildroot}%{gapdir}/gen
cp -p gen/gap_version.c %{buildroot}%{gapdir}/gen
cp -p gen/config.h %{buildroot}%{_includedir}/gap
ln -s %{_includedir}/gap %{buildroot}%{gapdir}/gen/config.h

# Munge the header files
for fil in %{buildroot}%{_includedir}/gap/{*.h,hpc/*.h}; do
  sed -i.orig 's,^\(#[[:blank:]]*include[[:blank:]]*\)"\(.*\)",\1<gap/\2>,' $fil
  touch -r $fil.orig $fil
  rm -f $fil.orig
done

# Install the binaries
cp -a bin %{buildroot}%{gapdir}

# Fix symlinks to the binary and source directory
pushd %{buildroot}%{gapdir}/bin/%{gaparch}
rm -f gap gac src
ln -s %{_bindir}/gap gap
ln -s %{_bindir}/gac gac
ln -s %{_includedir}/gap src
cd ../..
ln -s %{_bindir}/gap gap
ln -s %{_bindir}/gac gac
popd

# Make an empty directory to hold the GAP packages
mkdir -p %{buildroot}%{gapdir}/pkg

# Install the documentation
cp -a doc %{buildroot}%{gapdir}
rm -f %{buildroot}%{gapdir}/doc/*.in
rm -f %{buildroot}%{gapdir}/doc/*/*.{aux,bbl,blg,brf,idx,ilg,ind,log,out,pnr}
chmod a+x %{buildroot}%{gapdir}/doc/manualindex

# Install the icon; the original is 1024x1024
bmptopnm cnf/cygwin/gapicon.bmp > gapicon.pnm
for size in 16 22 24 32 36 48 64 72 96 128 192 256 512; do
  mkdir -p %{buildroot}%{icondir}/${size}x${size}/apps
  pamscale -xsize=$size -ysize=$size gapicon.pnm | pnmtopng -compression=9 \
    > %{buildroot}%{icondir}/${size}x${size}/apps/%{name}.png
done

# Install the MIME type
mkdir -p %{buildroot}%{_datadir}/mime/packages
cp -p %{SOURCE3} %{buildroot}%{_datadir}/mime/packages

# Install the desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --mode=644 --dir=%{buildroot}%{_datadir}/applications \
  %{SOURCE4}

# Install the AppData file
mkdir -p %{buildroot}%{_metainfodir}
install -pm 644 %{SOURCE5} %{buildroot}%{_metainfodir}
appstreamcli validate --no-net \
  %{buildroot}%{_metainfodir}/org.gap-system.gap.metainfo.xml

# Install the RPM macro file
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
cp -p macros.%{name} %{buildroot}%{_rpmconfigdir}/macros.d

# Install the VIM support
mkdir -p %{buildroot}%{_datadir}/vim/vimfiles/indent
cp -p etc/vim/gap_indent.vim %{buildroot}%{_datadir}/vim/vimfiles/indent
mkdir -p %{buildroot}%{_datadir}/vim/vimfiles/syntax
cp -p etc/vim/gap.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax
mkdir -p %{buildroot}%{_datadir}/vim/vimfiles/ftdetect
cp -p %{SOURCE9} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect

# Install the man pages
mkdir -p %{buildroot}%{_mandir}/man1
sed "s|@VERSION@|%{version}|" %{SOURCE6} > %{buildroot}%{_mandir}/man1/gap.1
sed "s|@VERSION@|%{version}|" %{SOURCE7} > %{buildroot}%{_mandir}/man1/gac.1
cp -p %{SOURCE8} %{buildroot}%{_mandir}/man1

%post core
update-desktop-database %{_datadir}/applications &>/dev/null ||:
update-mime-database %{_datadir}/mime &>/dev/null ||:
touch --no-create %{icondir} >&/dev/null ||:

%posttrans
%{_bindir}/gtk-update-icon-cache %{icondir} >&/dev/null ||:
%{_bindir}/update-gap-workspace ||:

%postun core
update-desktop-database %{_datadir}/applications &>/dev/null ||:
update-mime-database %{_datadir}/mime &>/dev/null ||:
if [ $1 -eq 0 ] ; then
touch --no-create %{icondir} >&/dev/null ||:
%{_bindir}/gtk-update-icon-cache %{icondir} >&/dev/null ||:
fi

%check
sed -e "s|^GAP_DIR=.*|GAP_DIR=$PWD|" \
    -e "s|\$GAP_DIR/bin/\$GAP_PRG|$PWD/bin/\$GAP_PRG|" \
    -i bin/gap.sh 
sed -i "s|80 -r|& -l $PWD|" Makefile.rules
make testinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1727 |21cr|gap-character-tables-1.2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstreamver 1r2p1

Name:           gap-character-tables
Version:        %(echo %upstreamver | sed -r "s/r|p/./g")
Release:        5
Summary:        GAP Character Table Library
License:        GPLv2+
Group:          Sciences/Mathematics
URL:            http://www.math.rwth-aachen.de/~Thomas.Breuer/ctbllib/
Source0:        http://www.math.rwth-aachen.de/~Thomas.Breuer/ctbllib/ctbllib-%{upstreamver}.tar.gz
BuildArch:      noarch

BuildRequires:  gap-devel
Requires:       gap-table-of-marks
Provides:       gap-pkg-ctbllib = %{version}-%{release}

%description
This package provides the Character Table Library by Thomas Breuer.

%prep
%setup -q -n ctbllib

# Compress large tables
gzip --best data/*.tbl

%build
# Nothing to do

%install
mkdir -p %{buildroot}%{_gap_dir}/pkg/ctbllib
cp -a data doc gap4 tst *.g %{buildroot}%{_gap_dir}/pkg/ctbllib

%posttrans
    %{_bindir}/update-gap-workspace

%postun
    %{_bindir}/update-gap-workspace

%files
%doc README htm
%{_gap_dir}/pkg/ctbllib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1728 |21cr|gapcmon-0.8.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# spec taken from upstream - thanks. AdamW 2007/07

Summary:	Utility for monitoring the operation of UPSs controlled by apcupsd
Name:		gapcmon
Version:	0.8.9
Release:	6
License:	GPLv2+
Group:		Monitoring
Source0:	https://sourceforge.net/projects/gapcmon/files/gapcmon/0.8.9/%{name}-%{version}.tar.bz2
# Fixes up the .desktop file - it's too broken to use 
# desktop-file-install. AdamW 2007/07
Patch0:		gapcmon-0.8.5-desktop.patch
Patch1:		gapcmon-0.8.6-fix-str-fmt.patch
URL:		http://gapcmon.sourceforge.net/
BuildRequires:	imagemagick
BuildRequires:	gtk2-devel
BuildRequires:	pkgconfig(gconf-2.0)
Requires:	apcupsd

%description
gapcmon monitors and displays the status of UPSs under the management 
of apcupsd.

%files
%doc %{_docdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/pixmaps/*.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------
%prep
%setup -q
%patch0 -p1 -b .desktop
%patch1 -p0 -b .str

%build
export LDFLAGS="-lX11"
%configure --disable-maintainer-mode
%make

%install
%makeinstall_std

# fd.o icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m 644 %{buildroot}%{_datadir}/pixmaps/apcupsd.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{buildroot}%{_datadir}/pixmaps/apcupsd.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -scale 48 %{buildroot}%{_datadir}/pixmaps/apcupsd.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# clean doc dir
rm %{buildroot}%{_docdir}/%{name}/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1729 |21cr|GAPDoc-1.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		GAPDoc
Version:	1.6.4
Release:	1
Summary:	GAP documentation tool
Group:		Sciences/Mathematics
# The package is all GPLv2+ except for some of the mathml files
License:	GPLv2+ and MPLv1.1 and W3C
URL:		http://www.math.rwth-aachen.de/~Frank.Luebeck/%{name}/
Source0:	http://www.math.rwth-aachen.de/~Frank.Luebeck/%{name}/%{name}-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	gap-macros
Requires:	gap-core
Requires:	texlive
Provides:	gap-pkg-%{name} = %{EVRD}
Provides:	gapdoc = %{EVRD}

%description
This package describes a document format for writing GAP documentation.

The idea is to define a sufficiently abstract markup language for GAP
documentation which can be (relatively easily) converted into different
output formats.  We used XML to define such a language.

This package provides:
- Utilities to use the documentation which is written in GAPDoc format
  with the GAP help system.  If you don't want to write your own
  (package) documentation you can skip to the last point of this list.
- The description of a markup language for GAP documentation (which is
  defined using the XML standard).
- Three example documents using this language: The GAPDoc documentation
  itself, a short example which demonstrates all constructs defined in
  the GAPDoc language, and a very short example explained in the
  introduction of the main documentation.
- A mechanism for distributing documentation among several files,
  including source code files.
- GAP programs (written by the first named author) which produce from
  documentation written in the GAPDoc language several document formats:
  * text format with color markup for onscreen browsing.
  * LaTeX format and from this PDF- (and DVI)-versions with hyperlinks.
  * HTML (XHTML 1.0 strict) format for reading with a Web-browser (and
    many hooks for CSS layout).
- Utility GAP programs which are used for the above but can be of
  independent interest as well:
  * Unicode strings with translations to and from other encodings
  * further utilities for manipulating strings
  * tools for dealing with BibTeX data
  * another data format BibXMLext for bibliographical data including
    tools to manipulate/translate them
  * a tool ComposedDocument for composing documents which are
    distributed in many files

%prep
%setup -q

%build
# Remove unnecessary documentation clean scripts
rm -f 3k+1/clean doc/clean example/clean

%install
mkdir -p %{buildroot}%{_gap_dir}/pkg
cd ..
cp -a %{name}-%{version} %{buildroot}%{_gap_dir}/pkg
rm -f %{buildroot}%{_gap_dir}/pkg/%{name}-%{version}/{CHANGES,GPL,README}

%posttrans
    %{_bindir}/update-gap-workspace

%postun
    %{_bindir}/update-gap-workspace

%files
%doc CHANGES GPL README.md
%{_gap_dir}/pkg/%{name}-%{version}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1730 |21cr|gap-sonata-2.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gap-sonata
Version:        2.6
Release:        4
Summary:        GAP package for systems of nearrings
License:        GPLv2
Group:		Sciences/Mathematics
URL:            http://www.algebra.uni-linz.ac.at/Sonata/
Source0:        http://www.algebra.uni-linz.ac.at/Sonata/sonata-%{version}/sonata-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  gap-devel

Provides:       gap-pkg-sonata = %{version}-%{release}
Requires:       gap-core

%description
SONATA stands for "systems of nearrings and their applications".  It
provides methods for the construction and the analysis of finite
nearrings.  A left nearring is an algebra (N;+,*), where (N,+) is a (not
necessarily abelian) group, (N,*) is a semigroup, and x*(y+z) = x*y + x*z
holds for all x,y,z in N.

As a typical example of a nearring, we may consider the set of all
mappings from a group G into G, where the addition is the pointwise
addition of mappings in G, and the multiplication is composition of
functions.  If functions are written on the right of their arguments,
then the left distributive law holds, while the right distributive law
is not satisfied for non-trivial G.

The SONATA package provides methods for the construction and analysis of
finite nearrings.
1. Methods for constructing all endomorphisms and all fixed-point-free
   automorphisms of a given group.
2. Methods for constructing the following nearrings of functions on a
   group G:
   - the nearring of polynomial functions of G (in the sense of
     Lausch-Nöbauer);
   - the nearring of compatible functions of G;
   - distributively generated nearrings such as I(G), A(G), E(G);
   - centralizer nearrings. 
3. A library of all small nearrings (up to order 15) and all small
   nearrings with identity (up to order 31).
4. Functions to obtain solvable fixed-point-free automorphism groups on
   abelian groups, nearfields, planar nearrings, as well as designs from
   those.
5. Various functions to study the structure (size, ideals, N-groups, ...)
   of nearrings, to determine properties of nearring elements, and to
   decide whether two nearrings are isomorphic.
6. If the package XGAP is installed, the lattices of one- and two-sided
   ideals of a nearring can be studied interactively using a graphical
   representation. 

%prep
%setup -q -n sonata

# Fix file encodings
for f in PackageInfo.g README.sonata; do
  iconv -f iso8859-1 -t utf-8 -o ${f}.utf8 $f
  touch -r $f ${f}.utf8
  mv -f ${f}.utf8 $f
done

# Delete KDE Desktop files
find . -name .directory | xargs rm -f

# Delete documentation log files
find . -name \*.log | xargs rm -f

%build
# Compress large data files
gzip --best nr/*.nr nri/*.nr

%install
mkdir -p %{buildroot}%{_gap_dir}/pkg
cd ..
cp -a sonata %{buildroot}%{_gap_dir}/pkg
rm -f %{buildroot}%{_gap_dir}/pkg/sonata/README.sonata
rm -f %{buildroot}%{_gap_dir}/pkg/sonata/doc/{make_doc,convert.pl}

%post
    %{_bindir}/update-gap-workspace

%postun
    %{_bindir}/update-gap-workspace

%files
%doc README.sonata
%{_gap_dir}/pkg/sonata/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1731 |21cr|gap-table-of-marks-1.2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstreamver 1r2p2

Name:           gap-table-of-marks
Version:        %(echo %upstreamver | sed -r "s/r|p/./g")
Release:        7
Summary:        GAP Table of Marks package
Group:		Sciences/Mathematics
License:        GPLv2+
URL:            http://schmidt.nuigalway.ie/tomlib/
Source0:        http://schmidt.nuigalway.ie/tomlib/tomlib%{upstreamver}.tar.gz
BuildArch:      noarch

BuildRequires:  gap-devel
Requires:       gap-core
Provides:       gap-pkg-tomlib = %{version}-%{release}

%description
This package provides access to several hundred tables of marks of
almost simple groups and their maximal subgroups.

%prep
%setup -q -n tomlib

# Remove spurious executable bits
chmod a-x doc/tomlib.xml

# Compress large tables of marks
gzip --best data/*.tom

%build
# Nothing to do

%install
mkdir -p %{buildroot}%{_gap_dir}/pkg
cd ..
cp -a tomlib %{buildroot}%{_gap_dir}/pkg
rm -f %{buildroot}%{_gap_dir}/pkg/tomlib/README

%posttrans
    %{_bindir}/update-gap-workspace

%postun
    %{_bindir}/update-gap-workspace

%files
%doc README
%{_gap_dir}/pkg/tomlib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1732 |21cr|garcon-4.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -f 1,2 -d\.)

%define major 0
%define api 1
%define libname %mklibname %{name} %{api} %{major}
%define gtk3libname %mklibname %{name}-gtk3_ %{api} %{major}
%define devname %mklibname %{name} -d

%define _disable_rebuild_configure 1

Summary:	A freedesktop.org menu implementation
Name:		garcon
Version:	4.16.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	https://archive.xfce.org/src/xfce/garcon/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0) >= 4.11.0

%description
Garcon is an implementation of the freedesktop.org menu specification
replacing the former Xfce menu library libxfce4menu. It is based on
GLib/GIO only and aims at covering the entire specification except for
legacy menus.

%files -f %{name}.lang
%{_datadir}/desktop-directories/xfce-*.directory
%{_datadir}/icons/hicolor/32x32/apps/org.xfce.garcon.png
%config(noreplace) %{_sysconfdir}/xdg/menus/xfce-applications.menu

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A freedesktop.org menu implementation
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}
Conflicts:	%{_lib}garcon0 < 0.8.0
Obsoletes:	%{_lib}garcon0 < 0.8.0

%description -n %{libname}
Garcon is an implementation of the freedesktop.org menu specification
replacing the former Xfce menu library libxfce4menu. It is based on
GLib/GIO only and aims at covering the entire specification except for
legacy menus.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{gtk3libname}
Summary:	Common GTK3 library for Xfce's freedesktop.org menu implementation
Group:		System/Libraries
Obsoletes:      %{_lib}garcon-gtk2_1_0 < 0.8.0

%description -n %{gtk3libname}
Garcon is an implementation of the freedesktop.org menu specification
replacing the former Xfce menu library libxfce4menu. It is based on
GLib/GIO only and aims at covering the entire specification except for
legacy menus.

%files -n %{gtk3libname}
%{_libdir}/lib%{name}-gtk3-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{gtk3libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog HACKING NEWS README* STATUS TODO
%{_includedir}/%{name}*
%{_libdir}/*%{name}*.so
%{_libdir}/pkgconfig/%{name}-*.pc
%{_datadir}/gtk-doc/html/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1733 |21cr|garlic-1.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free molecular viewer and editor
Name:		garlic
Version:	1.6
Release:	10
License:	GPLv2+
Group:		Sciences/Chemistry
Url:		http://garlic.mefos.hr/sources
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-%{version}-doc.tar.bz2
Source2:	%{name}.1.bz2
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(x11)

%description
Garlic is a full-featured molecular viewer and editor. It is intended mainly
for biological macromolecules (proteins and DNA) in PDB format. It can also
render high-quality images for presentations or publishing.

%files
%doc README HISTORY BUGS *.script doc
%{_bindir}/*
%{_libdir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -a 1
mv garlic-%{version} doc
perl -pi -e "s/^CCOPT.*/CCOPT = %{optflags}/" Makefile
rm -rf doc/mouse/.xvpics/
perl -pi -e 's/usr\/X11R6\/lib/usr\/X11R6\/%{_lib}/g' Makefile

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 garlic %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/%{name}
install -m644 .garlicrc *.pdb %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_mandir}/man1
cp %SOURCE2 %{buildroot}%{_mandir}/man1

install -d %{buildroot}{%{_miconsdir},%{_liconsdir}}
convert -size 16x16 %{name}.xpm %{buildroot}%{_liconsdir}/%{name}.png
convert -size 32x32 %{name}.xpm %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 %{name}.xpm %{buildroot}%{_miconsdir}/%{name}.png

# menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=garlic
Categories=Science;Chemistry;
Name=Garlic
Icon=%{name}
Comment=3D Molecule Viewer
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1734 |21cr|garmindev-0.3.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname garmindev %{major}

Summary:	Drivers for communication with Garmin GPS devices
Name:		garmindev
Version:	0.3.4
Release:	5
Group:		System/Libraries
License:	GPLv2+
URL:		http://www.qlandkarte.org
Source0:	http://downloads.sourceforge.net/qlandkartegt/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	libusb-devel

%description
Drivers for communication with Garmin GPS devices used by QLandkarteGT.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Drivers for communication with Garmin GPS devices
Group:		System/Libraries
Provides:	%{name}(interface) = 1.18
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Drivers for communication with Garmin GPS devices used by QLandkarteGT.

%files -n %{libname}
%{_libdir}/qlandkartegt

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -fno-strict-aliasing -Wno-narrowing"
%cmake
%make VERBOSE=1

%install
cd build
%makeinstall_std

# fix perms on plugins
find %{buildroot}%{_libdir}/qlandkartegt -type f -exec chmod 0755 {} \;

# drop the development files
rm -rf %{buildroot}%{_includedir}/garmin
rm -rf %{buildroot}%{_libdir}/qlandkartegt/libgarmin*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1735 |21cr|gastman-1.0-0.RC1.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		beta 1

Summary:	GTK ASTerisk MANager
Name:		gastman
Epoch:		1
Version:	1.0
Release:	0.%{?beta:RC%{beta}}.5
Group:		System/Configuration/Networking
License:	GPLv2+
URL:		http://www.asterisk.org
Source0:	%{name}-%{version}%{?beta:-RC%{beta}}.tar.gz
Patch0:		gastman-20040803-mdk.diff
Patch1:		gastman-1.0-gold.patch
BuildRequires:	gtk+2-devel
BuildRequires:	imagemagick
BuildRequires:  db-devel
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
GTK ASTerisk MANager is a administration tool for asterisk.

%prep

%setup -q -n %{name}-%{version}%{?beta:-RC%{beta}}
%patch0 -p0
%patch1 -p0

%build

%make CC="gcc %{?ldflags}"

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_datadir}/%{name}/icons
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_liconsdir}

install -m0755 gastman %{buildroot}%{_sbindir}/
install -m0644 art/*.xpm %{buildroot}%{_datadir}/%{name}/icons/

# Mandriva Icons
convert -size 48x48 art/phone2.xpm %{buildroot}%{_liconsdir}/%{name}.png
convert -size 32x32 art/phone2.xpm %{buildroot}%{_iconsdir}/%{name}.png
convert -size 16x16 art/phone2.xpm %{buildroot}%{_miconsdir}/%{name}.png

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=%{_sbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Settings;Network;
EOF

%if %mdkversion < 200900
%post
%update_menus
%update_desktop_database
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%clean_desktop_database
%endif

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%{_sbindir}/*
%{_datadir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1736 |21cr|gav-0.9.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tver 0.7.3

Summary:	Arcade volleyball
Name:		gav
Version:	0.9.0
Release:	12
License:	GPLv2+
Group:		Games/Sports
Url:		http://gav.sourceforge.net/
Source0:	http://puzzle.dl.sourceforge.net/sourceforge/gav/%{name}-%{version}.tar.bz2
Source1:	%{name}-themes-%{tver}.tar.bz2
Source11:	%{name}16.png
Source12:	%{name}32.png
Source13:	%{name}48.png
Patch0:		gav-0.9.0-mdv-fix-gcc-4.3.patch
Patch1:		gav-0.9.0-no-strip.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_net)

%description
An SDL-based rendition of an old favorite CGA game featuring
two characters playing a volleyball-like game. This "revamped"
version is supposed to support theming, multiplayer games,
different input devices and networking (not yet).

This package contains all available themes as well.

%files
%doc README CHANGELOG
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -a1
%patch0 -p1 -b .gcc43
%patch1 -p1

%build
%make depend CXXFLAGS="%{optflags} `sdl-config --cflags` -I`pwd`/menu  -I`pwd`/automa  -I`pwd`/net -I`pwd`"
make CXXFLAGS="%{optflags} `sdl-config --cflags` -I`pwd`/menu  -I`pwd`/automa  -I`pwd`/net -I`pwd`"

%install
install -m755 %{name} -D %{buildroot}%{_gamesbindir}/%{name}
install -m755 -d %{buildroot}%{_gamesdatadir}/%{name}/themes
cp -r themes/* %{buildroot}%{_gamesdatadir}/%{name}/themes

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=2D Volleyball
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;SportsGame;
EOF

#icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1737 |21cr|gbase-0.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small numeric base converter
Name:		gbase
Version:	0.5
Release:	11
License:	Artistic
Group:		Sciences/Mathematics
Url:		http://www.hibernaculum.net/gbase/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		gbase-0.5-gtk2.patch
Patch1:		gbase-0.5-argc.patch
BuildRequires:	pkgconfig(gtk+-2.0)

%description
GBase is a GTK program designed to convert between the four common
bases used in programming (decimal, hexadecimal, octal and binary). It
converts numbers on-the-fly as they are typed in. It can also convert
numbers entered on the command line. It can correctly handle both
signed and unsigned 32-bit integers.

%files
%doc README TODO
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%make CC="%__cc %{optflags}"

%install
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1738 |21cr|gbirthday-0.6.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Birthday Reminder
Name:		gbirthday
Version:	0.6.8
Release:	4
License:	GPLv2
Group:		Office
Url:		http://sourceforge.net/projects/gbirthday/
Source0:	http://downloads.sourceforge.net/project/gbirthday/gbirthday/%{version}/%{name}-%{version}.tar.xz
Patch0:		gbirthday-0.6.8-py2.7.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(python2)
BuildArch:	noarch

%description
Birthday Reminder that can be used with several backend databases.

%files -f %{name}.lang
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*desktop
%{python2_sitelib}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1739 |21cr|gbsplay-0.0.93-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gameboy Music Player
Name:		gbsplay
Version:	0.0.93
Release:	3
License:	GPLv1+
Group:		Sound
Url:		https://github.com/mmitch/gbsplay
Source0:	https://github.com/mmitch/gbsplay/archive/%{name}-%{version}.tar.gz
BuildRequires:	splint
BuildRequires:	nas-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpulse)

%description
This is a Gameboy sound player.

%files -f %{name}.lang
%doc installed-docs/*
%{_bindir}/gbsinfo
%{_bindir}/gbsplay
%{_mandir}/man1/gbsinfo.1*
%{_mandir}/man1/gbsplay.1*
%{_mandir}/man5/gbsplayrc.5*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
./configure \
	--prefix=%{_prefix} \
	--localedir=%{_datadir}/locale
%make

%install
%makeinstall \
	man1dir=%{buildroot}%{_mandir}/man1 \
	man5dir=%{buildroot}%{_mandir}/man5 \
	docdir=installed-docs \
	localedir=%{buildroot}%{_datadir}/locale

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1740 |21cr|gcal-4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Program for calculating and printing calendars
Name:		gcal
Version:	4.1
Release:	1
License:	GPLv3+
Group:		Office
Url:		https://www.gnu.org/software/gcal/
Source0:	https://ftp.gnu.org/gnu/gcal/%{name}-%{version}.tar.xz
Patch0:		gcal-glibc-no-libio.patch
BuildRequires:	pkgconfig(ncurses)

%description
Gcal is a program for calculating and printing calendars. Gcal displays
hybrid and proleptic Julian and Gregorian calendar sheets, respectively
for one month, three months, or a whole year. It also displays eternal
holiday lists for many countries around the globe, and features a very
powerful creation of fixed date lists that can be used for reminding
purposes.

Gcal can calculate various astronomical data and times of the Sun and
the Moon for pleasure at any location, precisely enough for most civil
purposes. Gcal supports some other calendar systems, for example, the
Chinese and Japanese calendars, the Hebrew calendar, and the civil
Islamic calendar, too.

%files -f %{name}.lang
%doc doc/GREG-REFORM README BUGS LIMITATIONS TODO AUTHORS NEWS THANKS
%exclude %{_datadir}/doc/gcal/examples
%{_docdir}/%{name}/examples/
%{_docdir}/%{name}/misc/
%{_bindir}/*
%{_datadir}/gcal
%{_infodir}/gcal*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

sed -i -e "s,ThisGcal=.*,ThisGcal=@PACKAGE@,g" misc/*/*.in

%build
%configure --disable-rpath
%make

%install
%makeinstall_std

#examples
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -rf doc/en/examples %{buildroot}%{_docdir}/%{name}/

#misc files
cp -rf misc %{buildroot}%{_docdir}/%{name}/

#fix rights
chmod 644 %{buildroot}%{_docdir}/%{name}/misc/gcalltx/gcalltx.pl
chmod 755 %{buildroot}%{_docdir}/%{name}/misc/wloc/wlocdrv

for i in daily ddiff dst gcalltx moon mrms srss
do
  chmod 755 %{buildroot}%{_docdir}/%{name}/misc/$i/$i
done

#cleanup
rm -rf %{buildroot}%{_datadir}/%{name}/{CREDITS,README}
find %{buildroot} -name "Makefile*" -exec rm -rf {} \;
find %{buildroot}%{_docdir} -name "*.in" -exec rm -rf {} \;
find %{buildroot}%{_docdir} -name "*.bat" -exec rm -rf {} \;
find %{buildroot}%{_docdir} -name "*.texi" -exec rm -rf {} \;

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1741 |21cr|gcalctool-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	GNOME desktop calculator
Name:		gcalctool
Version:	6.6.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
URL:		http://calctool.sourceforge.net/
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gcalctool-compile-warnings.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	xsltproc
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
gcalctool is a desktop calculator.
It has Basic, Financial and Scientific modes. Internally it uses multiple
precision arithmetic to produce results to a high degree of accuracy.

%files -f %{name}.lang
%doc README NEWS AUTHORS 
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/org.gnome.gcalctool.gschema.xml
%{_mandir}/man1/*

#--------------------------------------------------------------------
%prep
%autosetup -p1

%build
%configure \
	--with-gtk=3.0

%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome
#for l in C bg ca cs de el es eu fi fr gl hu it ja ko lv oc pt_BR ru sl sv te zh_CN zh_HK zh_TW; do
#	echo "%%lang($l) %%{_datadir}/help/$l/%%{name}"
#done >> %{name}.lang


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1742 |21cr|gcdemu-3.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GTK+ based GUI for controlling CDEmu daemon
Name:		gcdemu
Version:	3.2.6
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://cdemu.sourceforge.net/
Source0:	http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.xz
Patch0:		gcdemu-3.2.5-fix-install.patch
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	pkgconfig(gconf-2.0)
# for cdemu daemon interface v3
Requires:	cdemu-daemon
Requires:	python3-gi
Requires:	typelib(Gtk) >= 3.0
Requires:	typelib(Notify) >= 0.7
BuildArch:	noarch

%description
gCDEmu is a Gtk+ based GUI for controlling CDEmu daemon. It is part of the
userspace-cdemu suite, a free, GPL CD/DVD-ROM device emulator for linux.

It provides a graphic interface that allows performing the key tasks related to
controlling the CDEmu daemon, such as loading and unloading devices, displaying
devices' status and retrieving/setting devices' debug masks.

In addition, it listens to signals emitted by CDEmu daemon and provides
notifications via libnotify.

%files -f %{name}.lang
%doc README AUTHORS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}*.svg
%{_datadir}/glib-2.0/schemas/net.sf.cdemu.gcdemu.gschema.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake -DPOST_INSTALL_HOOKS:BOOL=OFF
%make -s

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1743 |21cr|gcin-2.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}-im-client %{major}
%define devname %mklibname %{name}-im-client -d

Summary:	An input method server for traditional Chinese
Name:		gcin
Version:	2.9.0
Release:	5
License:	LGPLv2+
Group:		System/Internationalization
Url: 		http://hyperrate.com/dir.php?eid=67
Source0:	http://hyperrate.com/gcin-source/%{name}-%{version}.tar.xz
Patch3:		gcin-1.4.4-gcc44.patch
BuildRequires:	curl-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(anthy)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
Requires:	locales-zh
Recommends:	%{name}-gtk2 = %{EVRD}
Recommends:	%{name}-gtk3 = %{EVRD}
Recommends:	%{name}-qt5 = %{EVRD}
Conflicts:	%{_lib}gcin1 < 2.8.0-1

%description
gcin is a Chinese input method server for traditional Chinese.
It features a better GTK user interface.

%files
%doc AUTHORS COPYING Changelog.html README*
%{_bindir}/*
%{_datadir}/applications/gcin-tools.desktop
%{_datadir}/gcin
%{_iconsdir}/*
%{_libdir}/gcin/anthy-module.so
%{_libdir}/gcin/gcin1.so
%{_libdir}/gcin/gcin2.so
%{_libdir}/gcin/intcode-module.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gcin shared library
Group:		System/Internationalization
Obsoletes:	%{_lib}gcin1 < 2.8.0-1

%description -n %{libname}
gcin is a Chinese input method server for traditional Chinese.
It features a better GTK user interface.

%files -n %{libname}
%{_libdir}/gcin/libgcin-im-client.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_libdir}/gcin/libgcin-im-client.so

#----------------------------------------------------------------------------

%package gtk2
Summary:	Gtk2 immodule for gcin
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires(post,postun):	gtk+2.0

%description gtk2
This is the gtk2 immodule support for gcin.

%files gtk2
%{_libdir}/gtk-2.0/immodules/*.so

# install gtk IM module
%post gtk2
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%{_lib}

%postun gtk2
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%{_lib}

#----------------------------------------------------------------------------

%package gtk3
Summary:	Gtk3 immodule for gcin
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires(post,postun):	gtk+3.0

%description gtk3
This is the gtk3 immodule support for gcin.

%files gtk3
%{_libdir}/gtk-3.0/immodules/*.so

%post gtk3
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-3.0/gtk.immodules.%{_lib}

%postun gtk3
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-3.0/gtk.immodules.%{_lib}

#----------------------------------------------------------------------------

%package qt4
Summary:	Qt4 immodule for gcin
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}

%description qt4
This is the qt4 immodule support for gcin.

%files qt4
%{qt4plugins}/inputmethods/*.so

#----------------------------------------------------------------------------

%package qt5
Summary:	Qt5 immodule for gcin
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}

%description qt5
This is the qt5 immodule support for gcin.

%files qt5
%{_qt5_plugindir}/platforminputcontexts/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

chmod 644 AUTHORS COPYING Changelog.html README*

%build
%configure
make

%install
%makeinstall_std

rm -fr %{buildroot}%{_docdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1744 |21cr|gcl-2.6.13-0.pre124.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

# minor adptation of fedora package:
#	http://cvs.fedoraproject.org/viewvc/rpms/gcl/devel/
%define _disable_ld_as_needed		1
%define _disable_ld_no_undefined	1

%define with_selinux    0
%define with_xemacs     0

%define emacs_version 23.3
%define emacs_lispdir %{_datadir}/emacs/site-lisp

%if %{with_xemacs}
%define xemacs_version 21.4.22
%define xemacs_lispdir %{_datadir}/xemacs/site-packages/lisp
%endif

%define rel pre124

Summary:	GNU Common Lisp
Name:		gcl
Version:	2.6.13
Release:	0.%{rel}.1
License:	GPL+ and LGPLv2+
Group:		Development/Other
Url:		http://www.gnu.org/software/gcl/
# The source for this package was pulled from upstream's CVS repository.  Use
# the following commands to generate the tarball:
#   cvs -d:pserver:anonymous@cvs.savannah.gnu.org:/sources/gcl export \
#     -r Version_2_6_8pre -D 2010-11-16 -d gcl-2.6.8 gcl
#   tar cvf gcl-2.6.8.tar gcl-2.6.8
#   xz gcl-2.6.8.tar
Source0:	gcl-%{version}%{rel}.tar.gz
Source1:	gcl.el
# This is some info files that are needed for the DESCRIBE function to do
# something useful.  These files are present in CVS HEAD (i.e., the upcoming
# 2.7.0 release), but are missing in the 2.6 branch.
Source2:	%{name}-2.6.8-info.tar.xz
# This patch was last sent upstream on 29 Dec 2008.  It fixes a file descriptor
# leak, as well as combining 4 system calls into only 2 on an exec().
Patch0:		%{name}-2.6.13-fd-leak.patch
# This patch was last sent upstream on 29 Dec 2008.  It updates one source file
# from LaTeX 2.09 to LaTeX 2e, thereby eliminating LaTeX warnings about running
# in compatibility mode.
Patch1:		%{name}-2.6.11-latex.patch
# This patch was last sent upstream on 29 Dec 2008.  It adapts to texinfo 5.0.
Patch2:		%{name}-2.6.11-texinfo.patch
# This patch was last sent upstream on 29 Dec 2008.  It fixes a large number of
# compile- and run-time problems with the Emacs interface code.
Patch3:		%{name}-2.6.11-elisp.patch
# This patch was last sent upstream on 17 Jan 2009.  It adds support for
# compiling and running on an SELinux-enabled host.
Patch4:		%{name}-2.6.13-selinux.patch
# This is a Fedora-specific patch.  Do not delete C files produced from D files
# so they can be pulled into the debuginfo package.
Patch7:		%{name}-2.6.13-debuginfo.patch
# This patch was last sent upstream on 13 Oct 2009.  It fixes two bugs in the
# reading of PLT information.
Patch8:		%{name}-2.6.11-plt.patch
# This patch was last sent upstream on 13 Oct 2009.  It fixes several malformed
# function prototypes involving an ellipsis.
Patch9:		%{name}-2.6.11-ellipsis.patch
# This patch was last sent upstream on 29 Dec 2008.  It fixes a compilation
# error on newer GCC systems due to an include inside a function.  This affects
# the "unrandomize" sbrk() functionality, hence the name of the patch.
Patch13:	%{name}-2.6.13-unrandomize.patch
# Patch required to build in Rosa
Patch20:	%{name}-2.6.11-tcl8.6.patch

BuildRequires:	emacs-bin
BuildRequires:	emacs-el
%if %{with_selinux}
BuildRequires:	selinux-policy
%endif
BuildRequires:	texinfo
BuildRequires:	texlive-collection-langgerman
BuildRequires:	texlive-collection-latex
BuildRequires:	texlive-texinfo
BuildRequires:	texlive-hyphen-afrikaans
BuildRequires:	texlive-hyphen-ancientgreek
BuildRequires:	texlive-hyphen-armenian
BuildRequires:	texlive-hyphen-basque
BuildRequires:	texlive-hyphen-belarusian
BuildRequires:	texlive-hyphen-bulgarian
BuildRequires:	texlive-hyphen-catalan
BuildRequires:	texlive-hyphen-chinese
BuildRequires:	texlive-hyphen-churchslavonic
BuildRequires:	texlive-hyphen-coptic
BuildRequires:	texlive-hyphen-croatian
BuildRequires:	texlive-hyphen-czech
BuildRequires:	texlive-hyphen-danish
BuildRequires:	texlive-hyphen-dutch
BuildRequires:	texlive-hyphen-english
BuildRequires:	texlive-hyphen-esperanto
BuildRequires:	texlive-hyphen-estonian
BuildRequires:	texlive-hyphen-ethiopic
BuildRequires:	texlive-hyphen-finnish
BuildRequires:	texlive-hyphen-french
BuildRequires:	texlive-hyphen-friulan
BuildRequires:	texlive-hyphen-galician
BuildRequires:	texlive-hyphen-georgian
BuildRequires:	texlive-hyphen-german
BuildRequires:	texlive-hyphen-greek
BuildRequires:	texlive-hyphen-hungarian
BuildRequires:	texlive-hyphen-icelandic
BuildRequires:	texlive-hyphen-indic
BuildRequires:	texlive-collection-langother
BuildRequires:	texlive-collection-langeuropean
BuildRequires:	texlive-collection-langitalian
BuildRequires:	texlive-collection-langmongolian
BuildRequires:	texlive-collection-langgreek
BuildRequires:	texlive-collection-langcyrillic
BuildRequires:	texlive-collection-langindic
BuildRequires:	texlive-collection-langczechslovak
BuildRequires:	texlive-collection-langenglish
BuildRequires:	texlive-collection-langfrench
BuildRequires:	texlive-collection-langgerman
BuildRequires:	texlive-collection-langpolish
BuildRequires:	texlive-collection-langportuguese
BuildRequires:	texlive-collection-langspanish
BuildRequires:	texlive-scheme-small

BuildRequires:	x11-server-common
%if %{with_xemacs}
BuildRequires:	xemacs
BuildRequires:	xemacs-devel
%endif
BuildRequires:	binutils-devel
BuildRequires:	gmp-devel
BuildRequires:	readline-devel
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xext)
%if %{with_selinux}
Requires:	gcl-selinux
%endif

%description
GCL is a Common Lisp currently compliant with the ANSI standard.  Lisp
compilation produces native code through the intermediary of the
system's C compiler, from which GCL derives efficient performance and
facile portability. Currently uses TCL/Tk as GUI.

%files
%{_bindir}/gcl
%{_prefix}/lib/gcl*
%{_infodir}/*
%{_mandir}/man*/*
%doc COPYING* readme readme.xgcl RELEASE* ChangeLog* faq doc
%doc gcl*.jpg gcl.ico gcl.png
%doc html

#----------------------------------------------------------------------------

%package emacs
Summary:	Emacs mode for interacting with GCL
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	emacs >= %{emacs_version}
# Don't make subpackages noarch as our bs does not deal with this yet
#BuildArch:	noarch

%description emacs
Emacs mode for interacting with GCL.

%files emacs
%doc elisp/readme
%dir %{emacs_lispdir}/gcl
%{emacs_lispdir}/gcl/*.elc
%{emacs_lispdir}/site-start.d/*

#----------------------------------------------------------------------------

%package emacs-el
Summary:	Source for Emacs mode for interacting with GCL
Group:		Development/Other
Requires:	%{name}-emacs = %{EVRD}
#BuildArch:	noarch

%description emacs-el
Source Elisp code for Emacs mode for interacting with GCL.

%files emacs-el
%{emacs_lispdir}/gcl/*.el

#----------------------------------------------------------------------------

%if %{with_xemacs}
%package xemacs
Summary:	XEmacs mode for interacting with GCL
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	xemacs >= %{xemacs_version}
Requires:	xemacs-extras
#BuildArch:	noarch

%description xemacs
XEmacs mode for interacting with GCL.

%files xemacs
%doc elisp/readme
%dir %{xemacs_lispdir}/gcl
%{xemacs_lispdir}/gcl/*.elc
%{xemacs_lispdir}/site-start.d/*
%endif

#----------------------------------------------------------------------------

%if %{with_xemacs}
%package xemacs-el
Summary:	Source for XEmacs mode for interacting with GCL
Group:		Development/Other
Requires:	%{name}-xemacs = %{EVRD}
#BuildArch:	noarch

%description xemacs-el
Source Elisp code for XEmacs mode for interacting with GCL.

%files xemacs-el
%{xemacs_lispdir}/gcl/*.el
%endif

#----------------------------------------------------------------------------

%if %{with_selinux}
%package selinux
Summary:	SELinux policy for GCL images
Group:		Development/Other
Requires(post,postun):	policycoreutils

%description selinux
SELinux policy for GCL images. All programs that dump GCL images to be run on
SELinux-enabled hosts should Require this package, and give the image the type
gcl_exec_t.

%files selinux
%{_datadir}/selinux/packages/gcl

%post selinux
/usr/sbin/semodule -i %{_datadir}/selinux/packages/gcl/gcl.pp || :
/sbin/fixfiles -R gcl restore || :

%postun selinux
if [ $1 = 0 ]; then
    /usr/sbin/semodule -r gcl || :
fi

%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}%{rel}
%setup -q -n %{name}-%{version}%{rel} -T -D -a 2
%patch0 -p1
%patch1
%patch2
%patch3
%patch4 -p1
%patch7 -p1
%patch8
%patch9
%patch13 -p1

%patch20 -p1

# Don't insert line numbers into cmpinclude.h; the compiler gets confused
sed -i 's,$(CC) -E,& -P,' makefile

# Don't let the configure script add compiler flags we don't want
sed -i -e 's/fomit-frame-pointer/fno-strict-aliasing/' -e 's/-O3/-O2/g' configure

# Fix a path in the launch script
sed -i -e 's|/usr/lib/tk|%{_datadir}/tk|' debian/gcl.sh

# Get a version of texinfo.tex that works with the installed version of texinfo
cp -p %{_datadir}/texmf-dist/tex/texinfo/texinfo.tex info

# The archive is so full of spurious executable bits that we just remove them
# all here, then add back the ones that should exist
find . -type f -perm /0111 | xargs chmod a-x
chmod a+x add-defs add-defs1 config.guess config.sub configure install.sh
chmod a+x bin/info bin/info1 gcl-tk/gcltksrv.in gcl-tk/ngcltksrv mp/gcclab
chmod a+x o/egrep-def utils/replace xbin/*

%build
# -fstack-protector leads to segfaults because GCL uses its own conflicting
# stack protection scheme.
%define _ssp_cflags %{nil}
# SGC requires the frame pointer.
# Remove -fPIC as it is incompatible with gcl:
# https://lists.gnu.org/archive/html/gcl-devel/2013-07/msg00029.html
# Also, the sources expect gnu89 semantics
export CFLAGS="$(sed 's/ *-fPIC//' <<<"%{optflags}") -fno-omit-frame-pointer -std=gnu89"
export CXXFLAGS="$(sed 's/ *-fPIC//' <<<"%{optflags}") -fno-omit-frame-pointer"
%configure \
	--enable-readline \
	--enable-ansi \
	--enable-dynsysgmp \
	--enable-xgcl \
	--enable-tclconfig=%{_libdir} \
	--enable-tkconfig=%{_libdir}

make

# Build gcl.info, which is needed for DESCRIBE to work properly
make -C info gcl.info

# dwdoc needs one extra LaTeX run to resolve references
pushd xgcl-2
pdflatex dwdoc.tex
popd

%if %{with_selinux}
# Build the SELinux policy
pushd selinux
make -f %{_datadir}/selinux/devel/Makefile
popd
%endif

%install
%makeinstall_std

# Get rid of the parts that we don't want
rm -f %{buildroot}%{_infodir}/dir
rm -rf %{buildroot}%{_datadir}/doc
rm -rf %{buildroot}%{_datadir}/emacs
rm -rf %{buildroot}%{_prefix}/lib/gcl-*/info

# Install the man page
mkdir -p %{buildroot}%{_mandir}/man1
cp -pf man/man1/* %{buildroot}%{_mandir}/man1

# Install the HTML documentation
mkdir -p html
cp -pfr info/gcl-si info/gcl-tk html

# Install and compile the Emacs code
mkdir -p %{buildroot}%{emacs_lispdir}/gcl
cp -pfr elisp/* %{buildroot}%{emacs_lispdir}/gcl
rm -f %{buildroot}%{emacs_lispdir}/gcl/makefile
rm -f %{buildroot}%{emacs_lispdir}/gcl/readme
mkdir -p %{buildroot}%{emacs_lispdir}/site-start.d
sed -e "s|%LISP_DIR%|%{emacs_lispdir}|" %{SOURCE1} > %{buildroot}%{emacs_lispdir}/site-start.d/gcl.el
pushd %{buildroot}%{emacs_lispdir}/gcl
emacs -batch -no-site-file --eval "(push \"`pwd`\" load-path)" \
  -f batch-byte-compile *.el
popd

%if %{with_xemacs}
# Install and compile the XEmacs code
mkdir -p %{buildroot}%{xemacs_lispdir}/gcl
cp -fr elisp/* %{buildroot}%{xemacs_lispdir}/gcl
rm -f %{buildroot}%{xemacs_lispdir}/gcl/makefile
rm -f %{buildroot}%{xemacs_lispdir}/gcl/readme
mkdir -p %{buildroot}%{xemacs_lispdir}/site-start.d
sed -e "s|%LISP_DIR%|%{xemacs_lispdir}|" %{SOURCE1} > %{buildroot}%{xemacs_lispdir}/site-start.d/gcl.el
pushd %{buildroot}%{xemacs_lispdir}/gcl
xemacs -batch -no-site-file -eval "(push \"`pwd`\" load-path)" \
  -f batch-byte-compile *.el
popd
%endif

%if %{with_selinux}
# Save the policy file away for later installation
mkdir -p %{buildroot}%{_datadir}/selinux/packages/gcl
cp -p selinux/gcl.pp %{buildroot}%{_datadir}/selinux/packages/gcl
%endif

# The image has garbage strings containing RPM_BUILD_ROOT
export QA_SKIP_BUILD_ROOT=1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1745 |21cr|gcolor2-0.4-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:		gcolor2
Version:	0.4
Release:	22
Summary:	Simple color selector
Group:		Graphics
License:	GPLv2+
URL:		http://gcolor2.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/gcolor2/%{name}-%{version}.tar.bz2
Source1:	gcolor2-pofiles.tar.bz2

Patch1:		gcolor2-0.4-amd64.patch
Patch2:		gcolor2-i18n.patch

BuildRequires:	gtk2-devel
BuildRequires:	imagemagick perl(XML::Parser)
BuildRequires:	intltool

%description 
Gcolor2 is a GTK2 color selector to provide a quick and easy way to find
colors for whatever task is at hand. Colors can be saved and deleted as well.

%prep
%setup -q -a1
%patch1 -p1
%patch2 -p1

%build
echo "gcolor2.glade" >> po/POTFILES.in

autoreconf -fiv
intltoolize --force

%configure

#languages not detected
pushd po
sed -i s/"ALL_LINGUAS ="/"ALL_LINGUAS = `ls *.po | cut -d. -f1 | xargs`"/"" Makefile
popd

%make


%install
rm -rf %{buildroot}
%makeinstall


# Menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=%{_bindir}/%{name}
Icon=%{name}
Categories=GNOME;Graphics;GTK;Utility;
Name=Color Chooser
Name[ar]=منتقي الألوان
Name[bg]=Избор на цвят
Name[de]=Farbauswahl
Name[el]=Επιλογέας χρωμάτων
Name[en_GB]=Colour Chooser
Name[es]=Selector de colores
Name[et]=Värvivalija
Name[fi]=Värivalitsin
Name[fr]=Sélecteur de couleurs
Name[gl]=Selector de cores
Name[hu]=Színválasztó
Name[is]=Litaval
Name[it]=Selettore di colori
Name[ky]=Түс тандагыч
Name[nb]=Fargevelger
Name[nl]=Kleurenkiezer
Name[pl]=Wybór koloru
Name[pt]=Seletor de Cores
Name[pt_BR]=Seletor de cores
Name[ru]=Выбор цветов
Name[sl]=Izbirnik barv
Name[tr]=Renk Seçici
GenericName=Color Chooser
GenericName[ar]=منتقي الألوان
GenericName[bg]=Избор на цвят
GenericName[de]=Farbauswahl
GenericName[el]=Επιλογέας χρωμάτων
GenericName[en_GB]=Colour Chooser
GenericName[es]=Selector de colores
GenericName[et]=Värvivalija
GenericName[fi]=Värivalitsin
GenericName[fr]=Sélecteur de couleurs
GenericName[gl]=Selector de cores
GenericName[hu]=Színválasztó
GenericName[is]=Litaval
GenericName[it]=Selettore di colori in GTK2
GenericName[ky]=Түс тандагыч
GenericName[nb]=Fargevelger
GenericName[nl]=Kleurenkiezer
GenericName[pl]=Wybór koloru
GenericName[pt]=Seletor de Cores
GenericName[pt_BR]=Seletor de cores
GenericName[ru]=Выбор цветов
GenericName[sl]=Izbirnik barv
GenericName[tr]=Renk Seçici
Comment=GTK2 color chooser
Comment[ar]=منتقي ألوان GTK2
Comment[bg]=GTK2 Избор на цвят
Comment[de]=GTK2 Farbauswahl
Comment[el]=Επιλογέας χρωμάτων GTK2
Comment[en_GB]=GTK2 colour chooser
Comment[es]=Selector de colores en GTK2
Comment[et]=GTK2 värvivalija
Comment[fi]=Värivalitsin GTK2:lle
Comment[fr]=Sélecteur de couleurs GTK2
Comment[gl]=Selector de cores feito con GTK2
Comment[hu]=Színek kiválasztása (GTK2)
Comment[is]=GTK2 litaval
Comment[it]=Selettore di colori in GTK2
Comment[ky]=GTK2 түс тандагычы
Comment[nb]=En fargevelger for GTK2
Comment[nl]=Kleurenkiezer gebaseerd op GTK2
Comment[pl]=Wybór koloru w GTK2
Comment[pt]=Selecionador de cores GTK2
Comment[pt_BR]=Selecionador de cores GTK2
Comment[ru]=GTK2 выбор цветов
Comment[sl]=GTK+2 Izbirnik barv
Comment[tr]=GTK2 Renk Seçici
EOF

#icons
mkdir -p %{buildroot}/%_liconsdir
convert -size 48x48 pixmaps/icon.png %{buildroot}/%_liconsdir/%name.png
mkdir -p %{buildroot}/%_iconsdir
convert -size 32x32 pixmaps/icon.png %{buildroot}/%_iconsdir/%name.png
mkdir -p %{buildroot}/%_miconsdir
convert -size 16x16 pixmaps/icon.png %{buildroot}/%_miconsdir/%name.png

%find_lang %{name}

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/pixmaps/%{name}
%{_iconsdir}/%name.png
%{_liconsdir}/%name.png
%{_miconsdir}/%name.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1746 |21cr|gcolor3-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gcolor3
Version:        2.4.0
Release:        1
Summary:        A simple color chooser written in GTK3 (like gcolor2)
Group:          Graphics
License:        GPLv2+
URL:            https://www.hjdskes.nl/projects/gcolor3/

Source0:        https://gitlab.gnome.org/World/%{name}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
# Extracted from upstream merge request:
#   https://gitlab.gnome.org/World/gcolor3/-/merge_requests/151
Patch0:         gcolor3-2.4.0-libportal-0.5.patch

BuildRequires:  gcc
BuildRequires:  meson
BuildRequires:  gnome-common
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  intltool
BuildRequires:  desktop-file-utils
BuildRequires:  gettext
BuildRequires:  appstream-util
BuildRequires:  pkgconfig(appstream-glib)
BuildRequires:  make
BuildRequires:  pkgconfig(libportal-gtk3)
Requires:       hicolor-icon-theme

%description
Gcolor3 is a color selection dialog written in GTK+ 3. It is much alike Gcolor2,
but uses the newer GTK+ version to better integrate into your modern desktop.
It has the same feature set as Gcolor2, except that recent versions of Gcolor3
use an .ini style file to save colors (older versions use the same file as
Gcolor2).

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install

%find_lang gcolor3
desktop-file-validate %{buildroot}%{_datadir}/applications/nl.hjdskes.gcolor3.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/nl.hjdskes.gcolor3.appdata.xml

%files -f gcolor3.lang
%doc README.md
%license LICENSE
%{_bindir}/gcolor3
%{_datadir}/applications/nl.hjdskes.gcolor3.desktop
%{_datadir}/icons/hicolor/scalable/apps/nl.hjdskes.gcolor3.svg
%{_datadir}/icons/hicolor/symbolic/apps/nl.hjdskes.gcolor3-symbolic.svg
%{_metainfodir}/nl.hjdskes.gcolor3.appdata.xml
%{_mandir}/man1/gcolor3.1*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1747 |21cr|gcompris-3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	An educational game for children starting at 2
Name:		gcompris
Version:	3.3
Release:	2
Group:		Education
License:	GPLv2+
URL:		https://gcompris.net
Source0:	https://download.kde.org/stable/gcompris/qt/src/gcompris-qt-%{version}.tar.xz
# from https://gcompris.net/data2/
Source1:	gcompris-qt-voices-2.4.tar.xz
Source100:	gcompris.rpmlintrc
Patch0:		fix.russian.patch
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	ninja
BuildRequires:	pkgconfig(Qt5Charts)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QmlWorkerScript)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Sensors)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	qt5-linguist-tools
BuildRequires:	qml-box2d
BuildRequires:	xz
BuildRequires:	%{_lib}qt5quickparticles-devel

Requires:	%{name}-voices = %{EVRD}
Recommends:	tuxpaint
Requires:	qml-box2d
Requires:	gstreamer1.0-plugins-base
Provides:	gcompris-qt = %{EVRD}

%description
An educational game for children starting at 2.
More than 100 different activities are proposed:
* Click on the animals => learn the mouse/click usage
* Type the falling letters => learn the keyboard usage
* Falling Dices
* Falling words
* Basic algebra
* Time learning with an analog clock
* Puzzle game with famous paintings
* Drive Plane to catch clouds in increasing number
* Balance the scales
* And much more ...

The Game is included in the Main desktop menu in 'Games'.

You should install it only if you have children using this computer.

%files
%doc  README*
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/metainfo/*.xml
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/%{name}-qt

#-------------------------------------------------------------------
%package voices
Summary:	Voices pack for %{name}
Group:		Education
Requires:	%{name} = %{EVRD}
Provides:	gcompris-qt-voices = %{EVRD}
BuildArch:	noarch

%description voices
This is voices packages for %{name}. This a full bundle useful if
you don't want to use the automatic online feature.

This allow you to play %{name} activities in different languages.

%files voices
%dir %{_datadir}/%{name}-qt/data2
%{_datadir}/%{name}-qt/data2/voices-ogg/
%{_datadir}/%{name}-qt/data2/backgroundMusic/
#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-qt-%{version}

%build
%cmake -G Ninja \
    -DWITH_DOWNLOAD=OFF \
    -DCMAKE_SKIP_RPATH=ON \
    -DKDE_INSTALL_APPDIR=%{_datadir}/applications \
    -DKDE_INSTALL_METAINFO=%{_datadir}/metainfo

%ninja_build

%install
%ninja_install -C build

#install voices and music
cd %{buildroot}%{_datadir}/%{name}-qt
tar -xf %{SOURCE1}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1748 |21cr|gconf-editor-2.32.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An editor for the GConf configuration system
Name:		gconf-editor
Version:	2.32.0
Release:	10
#gw the COPYING is v3 but all comments say v2+
License:	GPLv2+
Group:		Graphical desktop/GNOME
URL:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	intltool
BuildRequires:	rarian
BuildRequires:	desktop-file-utils
BuildRequires:	libxslt-proc

%description
gconf-edit is an editor for the GConf configuration system

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

rm -rf %{buildroot}/var/lib/scrollkeeper

desktop-file-install --vendor="" \
  --remove-category="System" \
  --add-category="Settings" \
  --add-category="X-MandrivaLinux-System-Configuration-GNOME-Advanced" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name} --with-gnome

%preun
%preun_uninstall_gconf_schemas %{name}

%files -f %{name}.lang
%doc README AUTHORS NEWS
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/%{name}
%{_sysconfdir}/gconf/schemas/%{name}.schemas

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1749 |21cr|gconfmm2.6-2.28.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define api 2.6
%define pkgname gconfmm
%define libname %mklibname %{pkgname} %{api} %{major}
%define devname %mklibname %{pkgname} %{api} -d

Summary:	A C++ interface for GConf library
Name:		%{pkgname}%{api}
Version:	2.28.3
Release:	1
#gw lib is LGPL, tool is GPL
License:	LGPLv2.1+ and GPLv2+
Group:		System/Libraries
Url:		http://gtkmm.sourceforge.net/
Source0:	https://download.gnome.org/sources/gconfmm/2.28/%{pkgname}-%{version}.tar.xz
Patch0:		gconfmm-2.12.0-64bit-fixes.patch
Patch1:		gconfmm26-2.28.3-no-extern-c-glib-includes.patch
BuildRequires:	doxygen
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtkmm-2.4)

%description
This package provides a C++ interface for GConf, a configuration data
storage mechanism to ship with GNOME.  It is a subpackage of the
gnomemm project, which provides a C++ interface for GNOME libraries.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C++ interface for GConf library
Group:		System/Libraries

%description -n %{libname}
This package provides a C++ interface for GConf, a configuration data
storage mechanism to ship with GNOME.  It is a subpackage of the
gnomemm project, which provides a C++ interface for GNOME libraries.

%files -n %{libname}
%doc COPYING.LIB
%{_libdir}/libgconfmm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of GConf 2 C++ wrapper
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libgconfmm%{api}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and various development files needed,
when compiling or developing programs which want GConf 2 C++ wrapper.

%files -n %{devname}
%doc AUTHORS COPYING.LIB ChangeLog NEWS README
%doc %{_datadir}/doc/gconfmm-%{api}
%doc %{_datadir}/devhelp/books/gconfmm-%{api}
%{_includedir}/*
%{_libdir}/%{pkgname}-%{api}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.a
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{pkgname} library
Group:		Documentation

%description doc
This package provides API documentation of %{pkgname} library.

%files doc
%doc docs/reference/html

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgname}-%{version}

%build
autoreconf -f -i
NOCONFIGURE=yes gnome-autogen.sh
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure --enable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1750 |21cr|gconnman-0.5.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A GObject binding of the Connman D-Bus API
Name:		gconnman
Version:	0.5.0
Release:	10
License:	LGPL 2.1
Group:		System/Configuration/Networking
Url:		http://www.moblin.org
Source0:	http://git.moblin.org/cgit.cgi/%{name}/snapshot/%{name}-%{version}.tar.bz2
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	connman-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
A GObject binding of the Connman D-Bus API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gconnman library, GObject binding of the Connman D-Bus API
Group:		System/Libraries

%description -n %{libname}
Gconnman library, GObject binding of the Connman D-Bus API.

%files -n %{libname}
%doc README AUTHORS ChangeLog COPYING NEWS
%{_libdir}/libgconnman*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Gconnman development package
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Gconnman development package.

%files -n %{devname}
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libgconnman*.so

#----------------------------------------------------------------------------

%prep
%setup -q
perl -pi -e 's,^./configure.*,,' ./autogen.sh

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1751 |21cr|gcstar-1.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^perl\\(GC.*\\)|perl\\(Gtk2::.*\\)
%global __provides_exclude ^perl\\(GC.*\\)|perl\\(Gtk2::.*\\)

Name:        gcstar
Version:     1.7.1
Release:     4
Summary:     A collection manager
Summary(ru): Менеджер коллекций
License:     GPLv2+
Group:       Office

URL:     https://gna.org/projects/%{name}/
Source0: http://download.gna.org/%{name}/%{name}-%{version}.tar.gz
Source1: %{name}-%{version}-RU.genres
Source2: %{name}-%{version}-gcstar.1

Patch0:  %{name}-%{version}-lang.patch
Patch1:  %{name}-%{version}-install.patch
Patch2:  %{name}-%{version}-desktop.patch

BuildArch: noarch

BuildRequires: perl
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(Gtk2)
BuildRequires: perl(HTML::Parser)
BuildRequires: perl(HTTP::Cookies)
BuildRequires: perl(LWP)
BuildRequires: perl(POSIX)
BuildRequires: perl(Storable)
BuildRequires: perl(URI)
BuildRequires: perl(XML::LibXSLT)
BuildRequires: perl(XML::Parser)
BuildRequires: perl(XML::Simple)

Requires: perl
Requires: perl(Data::Dumper)
Requires: perl(Encode)
Requires: perl(Exporter)
Requires: perl(GD)
Requires: perl(GD::Graph)
Requires: perl(Gtk2)
Requires: perl(HTML::Parser)
Requires: perl(HTTP::Cookies)
Requires: perl(LWP)
Requires: perl(POSIX)
Requires: perl(Storable)
Requires: perl(URI)
Requires: perl(XML::LibXSLT)
Requires: perl(XML::Parser)
Requires: perl(XML::Simple)
Requires: perl-libwww-perl

Requires(post): desktop-file-utils
Requires(post): gtk-update-icon-cache
Requires(post): shared-mime-info

Requires(postun): desktop-file-utils
Requires(postun): gtk-update-icon-cache
Requires(postun): shared-mime-info

%description
GCstar is an application for managing your collections. It supports many
types of collections, including movies, books, games, comics, stamps, coins,
and many more. You can even create your own collection type for whatever
unique thing it is that you collect! Detailed information on each item can be
automatically retrieved from the internet and you can store additional data,
such as the location or who you've lent it to. You may also search and filter
your collections by many criteria.

%description -l ru
Управление коллекциями.
Поддерживается множество типов
коллекций: фильмов, книг, игр,
марок, монет, и т.п. Можно создать
свой тип коллекции каких-либо
уникальных предметов. Подробная
информация по каждому предмету может
быть автоматически извлечена из
интернета. Предусмотрен поиск и
фильтрация предметов коллекции по
различным критериям.


%files
%doc CHANGELOG README README.fr LICENSE
%{_bindir}/%{name}
%{_bindir}/%{name}-thumbnailer
%{_prefix}/lib/%{name}
%{_datadir}/applications/%{name}*
%{_datadir}/%{name}
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man1/%{name}*
%{_mandir}/ru/man1/%{name}*
%{_datadir}/mime/packages/%{name}.xml

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%apply_patches

%build

%install
perl install --prefix=%{buildroot}/usr --nomenu

install -D -m 0644 share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m 0755 share/applications/%{name}-thumbnailer %{buildroot}%{_bindir}/%{name}-thumbnailer
install -D -m 0644 share/applications/%{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml
install -D %SOURCE2 %{buildroot}%{_mandir}/ru/man1/%{name}.1
cp %SOURCE1 %{buildroot}%{_datadir}/%{name}/genres/RU.genres

mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir},%{_menudir}}
cp -a share/%{name}/icons/%{name}_48x48.png %{buildroot}%{_liconsdir}/%{name}.png
cp -a share/%{name}/icons/%{name}_32x32.png %{buildroot}%{_iconsdir}/%{name}.png
cp -a share/%{name}/icons/%{name}_16x16.png %{buildroot}%{_miconsdir}/%{name}.png

chmod 0755 %{buildroot}%{_datadir}/%{name}/xslt/applyXSLT.pl

%post
%_update_desktop_database_bin %{_datadir}/applications
%_update_icon_cache_bin       %{_iconsdir}/hicolor
%_update_mime_database_bin -n %{_datadir}/mime

%postun
if [ $1 = 0 ]; then
    %_update_desktop_database_bin %{_datadir}/applications
    %_update_icon_cache_bin       %{_iconsdir}/hicolor
    %_update_mime_database_bin    %{_datadir}/mime
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1752 |21cr|gcursor-0.061-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A little gtk program to change your Xcursor with animated preview
Name:		gcursor
Version:	0.061
Release:	9
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://qballcow.nl/?s=14
Source0:	%{name}-%{version}.tar.bz2
Patch1:		gcursor-0.061-desktopicon.patch.bz2
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
Requires:	cursor_themes

%description
A little gtk program to change youre Xcursor with anitmated preview.

This program only works with gnome 2.4 and up.
It sets a gconf key that is used by gnome's session manager.
You also need to log in gnome again to make the changes (hopefully
this will change in gnome).

%files -f %{name}.lang
%doc AUTHORS COPYING INSTALL TODO
%{_bindir}/gcursor
%{_datadir}/applications/gcursor.desktop
%{_datadir}/gcursor/gcursor.glade

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1753 |21cr|gdal-2.3.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%if %{_use_internal_dependency_generator}
%define __noautoreq 'devel\\(libogdi31.*|devel\\(libcfitsio.*|libgrass.*'
%endif

%define major 20
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

# Build gdal against libgrass. It is better to instead compile the new plugin
# which builds against grass itself (and thus has more features than the
# libgrass5 version)
# In fact, building with direct grass support will break gdal on every grass
# upgrade, see http://n2.nabble.com/qgis-%2B-grass-plugin-%3D-gdal-problem-tp2394932p2405146.html
%define build_libgrass 0
%{?with_libgrass: %define build_libgrass 1}

Summary:	The Geospatial Data Abstraction Library (GDAL)
Name:		gdal
Version:	2.3.2
Release:	3
License:	MIT
Group:		Sciences/Geosciences
Url:		http://www.gdal.org/
Source0:	ftp://ftp.remotesensing.org/pub/gdal/%{name}-%{version}.tar.xz
Patch0:         gdal-2.3.1-libname.patch
Patch1:         gdal-1.9.2-typecast.patch
Patch2:         gdal-2.3.1-external-g2clib.patch
Patch3:         gdal-2.3.1-libtool-install.patch
Patch4:         gdal-2.3.1-zlib.patch
# Java bindings not configured
#Patch5:        gdal-jni.patch
Patch6:         0001-Add-support-for-Poppler-0.69-fixes-1004.patch
# Replace with gdal-poppler-const.patch.orig if poppler is updated
Patch7:         gdal-poppler-const.patch
# For newer poppler, disabled for now
Patch8:         gdal-poppler-0.71.patch
Patch9:         gdal-poppler-0.72.patch
BuildRequires:	swig
BuildRequires:	doxygen
BuildRequires:	python-setuptools
BuildRequires:	geos-devel >= 2.2.3
BuildRequires:	giflib-devel
BuildRequires:	hdf5-devel
BuildRequires:	jpeg-devel
BuildRequires:	mariadb-devel
BuildRequires:	postgresql-devel >= 9.0
BuildRequires:	python-numpy-devel
BuildRequires:	unixODBC-devel
BuildRequires:  python3-numpy-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  g2clib-devel
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(geotiff)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(ogdi)
BuildRequires:	pkgconfig(proj) >= 4.4.7
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	pkgconfig(zlib)
%if %{build_libgrass}
BuildRequires:	grass
Requires:	grass >= 6.4.0
%endif

%description
The Geospatial Data Abstraction Library (GDAL) is a unifying
C/C++ API for accessing raster geospatial data, and currently
includes formats like GeoTIFF, Erdas Imagine, Arc/Info
Binary, CEOS, DTED, GXF, and SDTS. It is intended to provide
efficient access, suitable for use in viewer applications,
and also attempts to preserve coordinate systems and metadata.
Python, C, and C++ interfaces are available.

%files
%doc NEWS VERSION
%{_datadir}/gdal/
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_datadir}/bash-completion/completions/*
%exclude %{_bindir}/gdal-config
%exclude %{multiarch_bindir}/gdal-config

#----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	The Python bindings for the GDAL library
Group:		Sciences/Geosciences
Requires:	%{libname} = %{EVRD}

%description -n python-%{name}
The Python bindings for the GDAL library

%files -n python-%{name}
%{py_platsitedir}/*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	The Python3 bindings for the GDAL library
Group:		Sciences/Geosciences
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
The Python3 bindings for the GDAL library

%files -n python3-%{name}
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries required for the GDAL library
Group:		System/Libraries

%description -n %{libname}
Libraries required for the GDAL library

%files -n %{libname}
%{_libdir}/libgdal.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for using the GDAL library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for using the GDAL library

%files -n %{devname}
%{_bindir}/%{name}-config
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libgdal.so
%{_includedir}/*
%{multiarch_bindir}/gdal-config

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Development files for using the GDAL library
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
Development files for using the GDAL library

%files -n %{sdevname}
%{_libdir}/libgdal.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .libname

%patch1 -p0 -b .typecast


# Use external zlib header file
%patch4 -p1 -b .ext_zlib

%patch6 -p2 -b .poppler
%patch7 -p1 -b .poppler-const
%patch8 -p1 -b .poppler-0.71
#patch9 -p1 -b .poppler-0.72

# Fix mandir
sed -i "s|^mandir=.*|mandir='\${prefix}/share/man'|" configure.ac

# Fix Python samples to depend on correct interpreter
mkdir -p swig/python3/samples
pushd swig/python/samples
for f in `find . -name '*.py'`; do
  sed 's|^#!.\+python$|#!/usr/bin/python3|' $f > ../../python3/samples/$f
  chmod --reference=$f ../../python3/samples/$f
  sed -i 's|^#!.\+python$|#!/usr/bin/python2|' $f
done
popd

find . -name '*.h' -o -name '*.cpp' -executable -exec chmod a-x {} \;
find . -name '*.h' -o -name '*.cpp' -executable -exec chmod a+r {} \;

%build
autoreconf -vfi
%configure2_5x \
	CPPFLAGS=-D_XOPEN_SOURCE=700 \
        LIBS=-lgrib2c \
        --enable-static \
        --datadir=%{_datadir}/gdal \
        --includedir=%{_includedir}/gdal \
        --with-dods-root=no \
        --with-ogdi=%{_includedir}/ogdi \
        --with-cfitsio=yes \
        --with-geotiff=yes        \
        --with-libtiff=yes        \
        --with-libz=%{_prefix}      \
        --with-netcdf=%{_prefix}    \
        --with-hdf5=%{_prefix}      \
        --with-geos               \
        --with-jasper             \
        --with-libjson-c          \
        --with-openjpeg           \
        --with-png                \
        --with-gif                \
        --with-jpeg               \
        --with-odbc               \
        --with-sqlite3            \
        --with-mysql              \
        --with-curl               \
        --with-poppler            \
        --with-python             \
        --with-webp               \
        --without-php              \
        --with-xerces=%{_prefix}         \
        --with-xerces-lib='-lxerces-c' \
        --with-xerces-inc=%{_includedir} \
        --with-spatialite \
        %if %{build_libgrass}
        --with-grass=%{_libdir}/%{grass}   \
        %endif
        --with-threads            \
        --with-liblzma=yes        \
        --without-bsb

# make the build break if wms support is not enabled
if [ "$(cat config.log | grep FORMATS | grep wms)" = "" ]; then
    echo "No WMS support"
    exit 1
fi

perl -pi -e 's,PYTHON = no,PYTHON = /usr/bin/python,g' GDALmake.opt
make
make docs

# Make Python 3 module
pushd swig/python
%py3_build
popd

%install
# Install Python 3 module
# Must be done first so executables are Python 2.
pushd swig/python
%py3_install
popd

mkdir -p %{buildroot}%{python2_sitearch}
export PYTHONPATH="%{buildroot}%{python2_sitearch}"
export DESTDIR=%{buildroot}
unset PYTHONDONTWRITEBYTECODE
export INST_MAN=%{_mandir}

%make_install install-man

find %{buildroot} -name '*.la' -delete

mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
mv %{buildroot}/usr/etc/bash_completion.d/* %{buildroot}%{_datadir}/bash-completion/completions

%multiarch_binaries %{buildroot}%{_bindir}/gdal-config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1754 |21cr|gdis-0.89-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define debug_package %{nil}

Summary: 	A molecular and crystal model viewer 
Name: 		gdis
Version: 	0.89
Release: 	10
License: 	GPL
Group: 		Sciences/Chemistry
URL: 		http://gdis.sourceforge.net/
Source: 	%name-%version-source.tar.bz2
Source2:	%name-models.tar.bz2
BuildRequires: 	mesaglu-devel pkgconfig(glut) gtk2-devel gtkglext-devel
Requires: 	povray imagemagick openbabel grace

%description
gdis is a graphical program for displaying and manipulating 
molecular and crystal systems.

%prep
%setup -q -a 2
mv gdis/models .
rm -fr gdis
rm -fr models/CVS

%build
export LDFLAGS="-lm"
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}/%{_bindir}
make INSTALL=%{buildroot}/%{_bindir} install

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=A molecular and crystal model viewer
Exec=%{name} 
Icon=chemistry_section
Terminal=false
Type=Application
Categories=Science;Chemistry;
EOF

%files
%defattr (-,root,root,0755)
%doc README CHANGELOG TODO
%_bindir/*
%_datadir/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1755 |21cr|gdlmm-3.7.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)

%define api 3.0
%define major 2
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname -d %{name}

Summary:	C++ binding for the gdl library
Name:		gdlmm
Version:	3.7.3
Release:	13
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gdlmm
Source0:	https://download.gnome.org/sources/gdlmm/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(gdl-3.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	doxygen
BuildRequires:	xsltproc

%description
gdlmm is the C++ binding for the gdl library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ binding for the gdl library
Group:		System/Libraries

%description -n %{libname}
gdlmm is the C++ binding for the gdl library.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and include files for gdlmm
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
gdlmm development files.

%files -n %{devname}
%doc %{_datadir}/doc/gdlmm-%{api}/
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/%{name}-%{api}
%{_datadir}/devhelp/books/%{name}-%{api}

#----------------------------------------------------------------------------

%prep
%setup -q

sed -i '/convert_\(gtkmm\|gdl\)\.m4/d' codegen/m4/convert.m4

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1756 |21cr|gdm-settings-2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A settings app for Gnome Login Manager (GDM)
Name:		gdm-settings
Version:	2.1
Release:	2
License:	AGPLv3+
Group:		Graphical desktop/GNOME
Url:		https://github.com/realmazharhussain/gdm-settings
Source0:	https://github.com/realmazharhussain/gdm-settings/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# revert patch https://github.com/gdm-settings/gdm-settings/commit/9fac1496ffde3d27bc5e10cde1375055e700871d
Patch0:		gdm-settings-actionrow.patch
Patch1:		gdm-settings-python3.8.patch
BuildRequires:	appstream
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	meson
BuildRequires:	python3-blueprint-compiler
BuildRequires:	pkgconfig(blueprint-compiler)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
Requires:	gdm
Requires:	gettext
Requires:	libadwaita-common
Requires:	polkit
BuildArch:	noarch

%description
A tool for customizing GNOME Display Manager.

With User Login Manager you can:
* Import user/session settings (currently not working on Flatpak)
* Change Background/Wallpaper (Image/Color)
* Apply themes
* Font Settings 
* Top Bar Settings 
* Display settings 

%files -f %{name}.lang
%doc README.md
%license LICENSE
%{_appdatadir}/*.xml
%{_bindir}/gdm-settings
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/gdm-settings
%{_datadir}/glib-2.0/schemas/*
%{_iconsdir}/hicolor/*/*/*.svg
%{py3_puresitedir}/gdm_settings

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson --buildtype=release
%meson_build

%install
%meson_install
# remove use of /usr/bin/env
sed -i 's,^#!/usr/bin/env python3,#!/usr/bin/python3,g' %{buildroot}%{_bindir}/gdm-settings

%find_lang %{name}

%check
meson test -C noarch-rosa-linux-gnu --print-errorlogs
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1757 |21cr|gdome2-0.8.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 0
%define libname %mklibname gdome %{major}
%define devname %mklibname gdome -d

Summary:	A DOM level2 library for accessing XML files
Name:		gdome2
Version:	0.8.1
Release:	16
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gdome2.cs.unibo.it
Source0:	http://gdome2.cs.unibo.it/tarball/%{name}-%{version}.tar.gz
Patch0:		gdome2-0.8.1-gdome-config_lib64.diff
Patch1:		gdome2-0.8.1-fix-str-fmt.patch
Patch2:		gdome2-0.8.1-libxml2.patch
Patch3:		gdome2-0.8.1-no-glib1.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Libgdome is a DOM C library developed for the Gnome project. It's a DOM level2
implementation. Libgdome supports "Core", "XML", "Events" and "MutationEvents"
modules. It's based on libxml2.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A DOM level2 library for accessing XML files
Group:		System/Libraries

%description -n %{libname}
A fast, light and complete DOM level2 implementation based on libxml2.

%files -n %{libname}
%{_libdir}/libgdome.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	DOM level2 library for accessing XML files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and static libraries for
developing with libgdome.

%files -n %{devname}
%doc AUTHORS MAINTAINERS ChangeLog README COPYING COPYING.LIB
%{_bindir}/gdome-config
%{_datadir}/aclocal/gdome2.m4
%{_includedir}/*
%{_libdir}/pkgconfig/gdome2.pc
%{_libdir}/libgdome.so
%{_libdir}/*.sh
%{_mandir}/man1/gdome-config.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p1

%build
autoreconf -fi
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1758 |21cr|geany-themes-1.24-4.git0f29c7.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# upstream does not update git tags
%define commit 0f29c77e8c596900b9b8cf552498bdb317449cae
%define short_commit %(echo %{commit} | head -c 6)

Summary:	A collection of syntax highlighting color schemes for Geany
Name:		geany-themes
Version:	1.24
Release:	4.git%{short_commit}.1
Group:		Development/C
# Some of the color schemes are clearly stated as GPLv2+, some are BSD
License:	GPLv2+ and BSD
Url:		https://github.com/geany/geany-themes
Source0:	https://github.com/geany/geany-themes/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Requires:	geany >= 1.24
BuildArch:	noarch

%description
Geany-Themes is a set of syntax highlighting color schemes for the Geany IDE.
Simply install this package, restart Geany and find the themes in
View->Editor->Color Schemes.


%files
%license COPYING
%doc AUTHORS COPYING README.md
%{_datadir}/geany/colorschemes/*.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
# Nothing to build here. We just have to place some configuraton files into the
# proper directory..

%install
install -d %{buildroot}%{_datadir}/geany/colorschemes
install -pm 644 colorschemes/*.conf %{buildroot}%{_datadir}/geany/colorschemes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1759 |21cr|geary-40.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	A lightweight email program designed around conversations
Name:		geary
Version:	40.0
Release:	10
License:	LGPLv2+
Group:		Networking/Mail
Url:		https://download.gnome.org/sources/geary
Source0:	https://download.gnome.org/sources/geary/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		geary-40.0-libstemmer-include-path.patch
Patch1:		geary-40.0-unknown-type-name.patch
# From Fedora
Patch2:		9bd4c829.patch
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	valadoc
BuildRequires:	vala-tools
BuildRequires:	xml2po
BuildRequires:	libstemmer-devel
#BuildRequires:	libytnef-devel #Contrib
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(folks)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmime-3.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libunwind)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(unique-1.0)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
Requires:	hicolor-icon-theme
Requires:	%{_datadir}/glib-2.0/schemas/org.gnome.desktop.search-providers.gschema.xml
Requires:	%{_datadir}/glib-2.0/schemas/org.freedesktop.folks.gschema.xml

%description
Geary is a new email reader for GNOME designed to let you read your email
quickly and effortlessly. Its interface is based on conversations, so you
can easily read an entire discussion without having to click from message
to message.
Geary is still in early development and has limited features today, but
we're planning to add lightning-fast searching, multiple account support,
and much more. Eventually we'd like Geary to have an extensible plugin
architecture so that developers will be able to add all kinds of nifty
features in a modular way.

%files -f %{name}.lang
%license COPYING
%doc AUTHORS NEWS README.md THANKS
%{_appdatadir}/org.gnome.Geary.appdata.xml
%{_bindir}/%{name}
%{_datadir}/dbus-1/services/org.gnome.Geary.service
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Geary.gschema.xml
%{_iconsdir}/hicolor/*/*/*
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dvaladoc=enabled	\
	-Dtnef=disabled		\
	-Dprofile=release
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1760 |21cr|gedit-latex-46.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Plugin for ease the edition of latex documents in the Gedit
Name:		gedit-latex
Version:	46.2.2
Release:	1
License:	GPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/gedit-latex
Source0:	https://github.com/GNOME/gedit-latex/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(gedit)
BuildRequires:	pkgconfig(libpeas-1.0)

%description
Plugin that provides features to ease the edition of latex documents
in the Gedit text editor.

%files -f %{name}.lang
%doc README
%license COPYING
%{_datadir}/gedit/plugins/latex
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.plugins.latex.gschema.xml
%{_libdir}/gedit/plugins/latex
%{_libdir}/gedit/plugins/latex.plugin

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1761 |21cr|gedit-root-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gedit-root
Summary:	Lets you launch gedit as root from the menu
Version:	1.0
Release:	10
Source0:	gedit-root.console
Source1:	gedit-root.desktop
Source2:	gedit-root.pam
License:	GPLv2+
Group:		Editors
BuildArch:	noarch
Requires:	gedit
Requires:	usermode-consoleonly

%description
%{name} creates a command named %{name} which launches gedit with
root privileges (after authenticating via consolehelper), and adds a
menu launcher so you can launch gedit as root from the system menu.

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
install -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/%{name}
mkdir -p %{buildroot}%{_bindir}
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/gedit-root

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%{update_desktop_database}
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%{clean_desktop_database}
%endif

%files
%defattr(-, root, root)
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_sysconfdir}/security/console.apps/%{name}
%{_sysconfdir}/pam.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1762 |21cr|gedkeeper-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	        real_name GEDKeeper
%define		debug_package %{nil}

Name:		gedkeeper
Version:	3.2.1
Release:	1
Summary:	GEDKeeper - program for work with personal genealogical database
License:	GPLv3
Group:		Editors
Url:		https://github.com/Serg-Norseman/%{real_name}
Source0:        %{name}-%{version}.tar.xz
Source1:	nupkg_deps.tar.xz
Patch0:		executable-file-in-lib64.patch
BuildRequires:	dotnet >= 6.0
AutoReq:	0
Requires:	mono
Requires:	mono-data
Requires:	mono-winforms
Requires:	pkgconfig(mono)
Requires:	lua
Requires:	%mklibname sqlite3_0
ExcludeArch:	%{ix86} %{arm64}

%description
%{summary}.

%files
%license LICENSE
%doc *.md
%{_bindir}/gk_run.sh
%{_libdir}/%{name}
%{_datadir}/mime/*.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

%prep
%setup -q
%setup -q -T -D -a1

%patch0 -p1

find . -type f -iname "*.dll" -exec chmod -x {} \;

%build

dotnet build \
	--source ${PWD}/nupkg_deps \
	projects/GKv3/GEDKeeper3.sln -c Linux_Debug

%install

for F in locales plugins samples scripts;do
 find ${F} -type f -exec chmod -x '{}' \;
done

%{__install} -Dm 0755 deploy/gk_run.sh %{buildroot}%{_bindir}/gk_run.sh
%{__install} -d 0755 %{buildroot}%{_libdir}/%{name}
%{__install} -Dm 0644 deploy/application-x-%{name}.xml %{buildroot}%{_datadir}/mime/application-x-%{name}.xml
%{__install} -Dm 0644 deploy/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
%{__install} -Dm 0644 deploy/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

for D in bin locales plugins samples scripts;do
 %{__cp} -R ${D} %{buildroot}%{_libdir}/%{name}
done

## E: zero-length
rm -rf %{buildroot}%{_libdir}/%{name}/scripts/readme.txt




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1763 |21cr|geeqie-1.7.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	docname %{name}

Summary:	Graphics file browser utility
Name:		geeqie
Version:	1.7.3
Release:	4
License:	GPLv2+
Group:		Graphics
Url:		http://www.geeqie.org
Source0:	https://github.com/BestImageViewer/geeqie/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:	geeqie-1.7.3-remove-changelog-from-menu.patch
Patch1:	geeqie-1.7.3-dont-install-changelog.patch
Patch2:	geeqie-1.7.3-fix-recent-folder-list-max-size-ignored.patch
BuildRequires:	automake
BuildRequires:	doxygen
BuildRequires:	gettext
BuildRequires:	git
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	python3egg(lxml)
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(champlain-gtk-0.12)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(ddjvuapi) >= 3.5.27
BuildRequires:	pkgconfig(exiv2) >= 0.11
BuildRequires:	pkgconfig(glib-2.0) >= 2.52.0
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libarchive) >= 3.4.0
BuildRequires:	pkgconfig(libffmpegthumbnailer) >= 2.1.0
BuildRequires:	pkgconfig(libgps)
BuildRequires:	pkgconfig(libheif) >= 1.3.2
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libopenjp2) >= 2.3.0
BuildRequires:	pkgconfig(libraw) >= 0.20
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(lua) >= 5.3
BuildRequires:	pkgconfig(poppler-glib) >= 0.62

%description
Geeqie is a browser for graphics files. Offering single click viewing of your
graphics files. Includes thumbnail view, zoom and filtering features.
And external editor support.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README.md README.lirc TODO
%{_bindir}/%{name}
%{_bindir}/%{name}-*
%{_bindir}/geocode-parameters.awk
%{_bindir}/lensID
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/applications/*
%{_datadir}/%{name}/template.desktop
%{_datadir}/metainfo/org.%{name}.Geeqie.appdata.xml
%{_mandir}/man1/geeqie*
%{_datadir}/doc/%{name}/html/*

#-----------------------------------------------------------

%prep
%autosetup -p1


%build
./autogen.sh \
	--with-readmedir="%{_docdir}/%{docname}" \
	--prefix=/usr \
	--enable-lirc \
	--enable-gtk3

%make


%install
mkdir -p %{buildroot}%{_docdir}/%{name}/html
%makeinstall_std gq_bindir=%{_bindir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1764 |21cr|geis-2.2.17-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Gesture Engine Interface and Support Interface
Name:		geis
Version:	2.2.17
Release:	4
License:	GPLv3+
Group:		System/Libraries
Url:		https://launchpad.net/geis
Source0:	https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.xz
Patch0:		geis-2.2.17-gcc7.patch
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(frame)
BuildRequires:	pkgconfig(grail)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xorg-server)
Requires:	python3-gi

%description
GEIS is a library for applications and toolkit programmers which provides
a consistent platform independent interface for any system-wide input gesture
recognition mechanism.

%files
%doc README COPYING
%{_bindir}/geistest
%{_mandir}/man1/geis*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gesture Engine Interface and Support lLibrary package
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with geis.

%files -n %{libname}
%{_libdir}/libgeis.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Gesture Engine Interface and Support development package
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}geis1 < 2.2.16

%description -n %{devname}
This package provides headers files for geis development.

%files -n %{devname}
%{_datadir}/doc/geis/geisspec-1.0.asc
%{_datadir}/doc/geis/geisspec-docbook.xml
%{_includedir}/%{name}/geis.h
%{_includedir}/%{name}/geisimpl.h
%{_libdir}/libgeis.so
%{_libdir}/pkgconfig/libgeis.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	GEIS python bindings
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	python3-gi
Obsoletes:	python-%{name} < 2.2.16
Conflicts:	python-%{name} < 2.2.16

%description -n python3-%{name}
GEIS python bindings.

%files -n python3-%{name}
%{_bindir}/pygeis
%{python3_sitelib}/%{name}/
%{python3_sitearch}/_geis_bindings.so
%{_mandir}/man1/pygeis.1*

#----------------------------------------------------------------------------

%package -n %{name}view
Summary:	GEIS View
Requires:	python3-%{name} = %{EVRD}

%description -n %{name}view
GEIS View.

%files -n %{name}view
%{_bindir}/%{name}view
%{_datadir}/applications/geisview.desktop
%{_datadir}/geisview/*.ui
%{_datadir}/pixmaps/geisview32x32.xpm
%{python3_sitelib}/%{name}view/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
automake --add-missing
%configure --disable-static
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/doc/geis/Doxyfile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1765 |21cr|gelide-0.1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Emulators manager
Name:		gelide
Version:	0.1.5
Release:	7
License:	GPLv3+
Group:		Emulators
Url:		http://gelide.sourceforge.net/
Source0:	http://sourceforge.net/projects/%{name}/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0:		gelide-0.1.5-glib.patch
Patch1:		gelide-0.1.5-gcc4.7.patch
Patch2:		gelide-0.1.5-glibmm.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	rarian
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	gnome-icon-theme-legacy

%description
Gelide is a configurable frontend which let you manage any kind of emulated
system (PC, console, arcade, etc) letting you to catalog and launch any game
from any existing emulator under GNU/Linux. With Gelide, you can configure
any emulator with command line parameters support, without the need of
remember them every now and then.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README INSTALL COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*.xml
%{_datadir}/%{name}/pixmaps/*
%{_datadir}/%{name}/ui/*
%{_iconsdir}/hicolor/*
%{_mandir}/*/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .glib~
%patch1 -p1 -b .gcc47~
%patch2 -p1 -b .glibmm~

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make

%install
%makeinstall_std

desktop-file-install \
	--remove-key="Version" \
	--remove-key="Encoding" \
	--dir=%{buildroot}%{_datadir}/applications/ \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

rm -rf %{buildroot}/usr/doc

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1766 |21cr|gemdropx-0.9-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tetris meets Space Invaders
Name:		gemdropx
Version:	0.9
Release:	15
Source0:	ftp://ftp.sonic.net/pub/users/nbs/unix/x/gemdropx/gemdropx-%{version}.tar.bz2
License:	GPLv2+
Url:		http://newbreedsoftware.com/gemdropx
Group:		Games/Arcade
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	imagemagick
Patch0:		%{name}-0.9-fix-CFLAGS.patch

%description
Gem Drop X is a fast-paced puzzle game where it's your job to clear the screen
of gems before they squash you! (You're at the bottom, they're at the top, and
they keep coming!)

%prep
%setup -q
%patch0 -p1
chmod a+r -R .
rm -rf `find -type d -name .xvpics`

%build
%make CFLAGS="%{optflags}" DATA_PREFIX=%{_gamesdatadir}/%{name}/

%install
rm -rf $RPM_BUILD_ROOT
install -D %{name} $RPM_BUILD_ROOT%{_gamesbindir}/%{name}
install -d $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}
cp -a data/* $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}

%{__install} -d $RPM_BUILD_ROOT{%{_liconsdir},%{_miconsdir}}
convert data/images/gemdropx-icon.xpm -size 16x16 $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
convert data/images/gemdropx-icon.xpm -size 32x32 $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
convert data/images/gemdropx-icon.xpm -size 48x48 $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Gem Drop X
Comment=%{summary}
Exec=%_gamesbindir/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS.txt CHANGES.txt README.txt
%{_gamesdatadir}/%{name}
%{_datadir}/applications/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1767 |21cr|gemo-utilities-20070201-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	jarlibs	xalan-j2

Name:		gemo-utilities
Version:	20070201
Release:	14
Summary:	Gemo Utilities
License:	LGPL
Group:		Development/Java
Url:		http://forge.objectweb.org/projects/activexml/
# from cvs
Source0:	%{name}-%{version}.tar.lzma
BuildRequires:	lzma
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	ant
BuildRequires:	%{jarlibs}
Requires:	%{jarlibs}
BuildArch: noarch
BuildRequires:    locales-en

%description
Gemo Utilities

%prep
%setup -q
#make sure that we don't use precompiled java package if shipped
rm -rf lib

%build
export LC_ALL=en_US.ISO-8859-1
CLASSPATH=$(build-classpath %{jarlibs}) \
%{ant} dist -DDSTAMP=%{version}
%{jar} -i dist/%{name}-%{version}.jar

%install
install -d %{buildroot}%{_javadir}
install -m644 dist/%{name}-%{version}.jar -D %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1768 |21cr|gemrb-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dont_remove_rpath 1

%define libname %mklibname gemrb_core 0
%define devname	%mklibname -d gemrb_core

%global optflags %{optflags} -pthread

Summary:	Port of the original Infinity (Game) Engine
Name:		gemrb
Version:	0.9.1
Release:	1
Group:		Games/Adventure
License:	GPLv2+
Url:		http://gemrb.sourceforge.net/
Source0:	https://github.com/gemrb/gemrb/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		gemrb-0.9.1-sdl-header-path.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
Requires:	openal

%description
GemRB (Game Engine Made with pre-Rendered Background) is a portable
open-source implementation of Bioware's Infinity Engine.

It was written to support pseudo-3D role playing games based on the
Dungeons & Dragons ruleset (Baldur's Gate and Icewind Dale series,
Planescape: Torment).

This is not a game, but the engine. You need data installed somewhere, and
point gemrb the the relevant directory. More details and a list of
supported games can be found at
http://gemrb.sourceforge.net/wiki/doku.php?id=getting_started

%files
%doc AUTHORS NEWS README.md INSTALL
%license COPYING
%attr(755,root,root) %{_bindir}/gemrb
%{_bindir}/extend2da.py
%config(noreplace) %{_sysconfdir}/gemrb/GemRB.cfg
%{_datadir}/applications/gemrb.desktop
%{_datadir}/gemrb/*
%{_datadir}/metainfo/org.gemrb.gemrb.metainfo.xml
%{_datadir}/pixmaps/gemrb.png
%{_iconsdir}/hicolor/scalable/apps/gemrb.svg
%{_libdir}/%{name}/plugins/
%{_mandir}/man6/gemrb.6.*

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n	%{libname}
%{summary}.

%files -n %{libname}
%{_libdir}/gemrb/libgemrb_core.so.*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{devname}
This package includes the development files for %{name}.

%files -n %{devname}
%{_libdir}/gemrb/libgemrb_core.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
CXXFLAGS="%{optflags} -lm -lSDL2"
%cmake \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}	\
	-DLIB_DIR='%{_libdir}/gemrb'		\
	-DOPENGL_BACKEND=OpenGL			\
	-DSDL_BACKEND=SDL2
%make

%install
%makeinstall_std -C build
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/extend2da.py

rm -f %{buildroot}/etc/gemrb/GemRB.cfg.noinstall.sample

# remove zero-length files
find %{buildroot} -type f -empty -delete
mv %{buildroot}/etc/gemrb/GemRB.cfg.sample %{buildroot}/etc/gemrb/GemRB.cfg
chmod +x %{buildroot}%{_bindir}/extend2da.py
rm -rf %{buildroot}%{_datadir}/doc/gemrb/en/
rm -f %{buildroot}%{_defaultdocdir}/%{name}/COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1769 |21cr|genders-1.28.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define majorpp 2
%define libname %mklibname genders %{major}
%define libnamepp %mklibname gendersplusplus %{majorpp}
%define devname %mklibname genders -d

%define jdversion %(echo %{version}|cut -d. -f1,2)
%define oversion %(echo %{version}|tr '.' '-')

Summary:	Static cluster configuration database
Name:		genders
Version:	1.28.1
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://computing.llnl.gov/linux/genders.html
Source0:	https://github.com/chaos/genders/archive/%{name}-%{oversion}.tar.gz?/%{name}-%{name}-%{oversion}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-1.18-shebang.patch
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	perl-devel
BuildRequires:	stdc++-devel
BuildRequires:	pkgconfig(python3)

%description
Genders is a static cluster configuration database used for cluster
configuration management.  It is used by a variety of tools and scripts for
management of large clusters.  The genders database is typically replicated
on every node of the cluster. It describes the layout and configuration of
the cluster so that tools and scripts can sense the variations of cluster
nodes. By abstracting this information into a plain text file, it becomes
possible to change the configuration of a cluster by modifying only one file.

%files
%doc README NEWS ChangeLog DISCLAIMER DISCLAIMER.UC COPYING TUTORIAL
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Static cluster configuration database library
Group:		System/Libraries

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%{_libdir}/libgenders.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamepp}
Summary:	Static cluster configuration database C++ library
Group:		System/Libraries

%description -n %{libnamepp}
This package contains the C++ bindings for genders.

%files -n %{libnamepp}
%{_libdir}/libgendersplusplus.so.%{majorpp}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the genders library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamepp} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development genders library and its header files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%exclude %{_libdir}/libGendersjni.so
%{_mandir}/man3/genders*
%{_mandir}/man3/libgenders*

#----------------------------------------------------------------------------

%package compat
Summary:	Compatability library
Group:		System/Libraries

%description compat
Genders API that is compatible with earlier releases of genders

%files compat
%{_mandir}/man3/gendlib*
%dir %{_prefix}/lib/genders
%{_prefix}/lib/genders/*

#----------------------------------------------------------------------------

%package java
Summary:	Java libraries
Group:		Development/Java
BuildRequires:	java-devel

%description java
Genders API bindings for java.

%files java
%doc DISCLAIMER DISCLAIMER.UC COPYING
%{_libdir}/libGendersjni.so.*
%{_jnidir}/Genders.jar

#----------------------------------------------------------------------------

%package java-devel
Summary:	Java Development libraries
Group:		Development/Java
Requires:	%{name}-java = %{EVRD}

%description java-devel
Genders API bindings for java.

%files java-devel
%doc DISCLAIMER DISCLAIMER.UC COPYING
%{_libdir}/libGendersjni.so

#----------------------------------------------------------------------------

%package javadoc
Summary:	Java Documentation
Group:		Development/Java
BuildRequires:	java-devel

%description javadoc
Genders API Documentation for java.

%files javadoc
%doc DISCLAIMER DISCLAIMER.UC COPYING
%{_docdir}/%{name}-%{jdversion}-javadoc

#----------------------------------------------------------------------------

%package -n perl-Libgenders
Summary:	Genders interface
Group:		Development/Perl
Provides:	perl-Genders = %{EVRD}

%description -n perl-Libgenders
This package provides a perl interface for querying a genders file.

%files -n perl-Libgenders
%{perl_vendorarch}/Genders.pm
%{perl_vendorarch}/Libgenders.pm
%dir %{perl_vendorarch}/auto/Libgenders
%{perl_vendorarch}/auto/Libgenders/Libgenders.so
%{_mandir}/man3/Genders.3pm*
%{_mandir}/man3/Libgenders.3pm*

#----------------------------------------------------------------------------

%package -n python-libgenders
Summary:	Genders interface
Group:		Development/Python

%description -n python-libgenders
This package provides a python interface for querying a genders file.

%files -n python-libgenders
%{py3_platsitedir}/genders.py*
%{py3_platsitedir}/__pycache__
%{py3_platsitedir}/libgenders-*-py*.egg-info
%{py3_platsitedir}/libgenders*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{oversion}

%build
export CPPFLAGS='-I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -I../../../src/libgenders'
export LDFLAGS='-lpython%{py3_ver}'

%configure \
	--disable-static \
	--with-genders-file=%{_sysconfdir}/%{name} \
	--with-perl-extensions \
	--with-perl-vendor-arch \
	--with-python-extensions \
	--with-cplusplus-extensions \
	--with-extension-destdir=%{buildroot}

make LD_RUN_PATH=""

%install
install -d %{buildroot}%{_sysconfdir}
%makeinstall_std LD_RUN_PATH=""

install -m0644 genders.sample %{buildroot}%{_sysconfdir}/%{name}

mkdir -p %{buildroot}/%{_jnidir}
mv %{buildroot}%{_datadir}/java/Genders.jar %{buildroot}%{_jnidir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1770 |21cr|genius-1.0.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	A general purpose calculator and math tool
Name:		genius
Version:	1.0.27
Release:	1
License:	GPLv3+
Group:		Sciences/Mathematics
Url:		http://www.jirka.org/genius.html
Source0:	https://download.gnome.org/sources/genius/1.0/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	intltool
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(amtk-5)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(vte-2.91)
Requires:	ghostscript

%description
Genius is an advanced calculator and a mathematical programming language.
It handles multiple precision floating point numbers, infinite precision
integers, complex numbers and matrixes.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_datadir}/application-registry/*
%{_datadir}/mime/packages/*
%{_datadir}/mime-info/*
%{_iconsdir}/hicolor/*/apps/*
%{_libdir}/%{name}
%{_libexecdir}/genius-readline-helper-fifo

#-----------------------------------------------------------------------

%package devel
Summary:	Files to develop genius plugins
Requires:	%{name} = %{version}

%description devel
Genius is an advanced calculator and a mathematical programming language.
It handles multiple precision floating point numbers, infinite precision
integers, complex numbers and matrixes.

This package contains developmend files and not required for runnind genius.

%files devel
%{_includedir}/*

#-----------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--enable-mpfr \
	--disable-scrollkeeper \
	--disable-update-mimedb \
	--disable-static
%make

%install
%makeinstall_std

%{find_lang} %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1771 |21cr|genromfs-0.5.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for creating romfs filesystems
Name:		genromfs
Version:	0.5.2
Release:	14
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://romfs.sourceforge.net
Source0:	http://unc.dl.sourceforge.net/sourceforge/romfs/%{name}-%{version}.tar.gz

%description
Genromfs is a tool for creating romfs filesystems, which are
lightweight, read-only filesystems supported by the Linux
kernel.

%prep
%setup -q

%build
make CFLAGS="%{optflags} -DVERSION=\\\"%{version}\\\"" LDFLAGS="%{ldflags}"

%install
install -m0755 %{name} -D %{buildroot}%{_bindir}/%{name}
install -m0644 %{name}.8 -D %{buildroot}%{_mandir}/man8/%{name}.8

%files
%doc romfs.txt COPYING NEWS
%{_bindir}/*
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1772 |21cr|geogebra-3.2.47.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             geogebra
Summary:          Free mathematics software for learning and teaching
Version:          3.2.47.0
Release:          5
Group:            Sciences/Mathematics
Url:              http://www.geogebra.org
License:          GPLv2+ ; CC-BY-SAv3+ ; CC-BY-NC-SAv3+
Source:           geogebra-%{version}.tar.gz  
Source1:          %{name}.desktop
Requires:         java >= 1.5.0
Requires(post):   shared-mime-info
Requires(postun): shared-mime-info
BuildArch:        noarch

%description
This package provides GeoGebra.

GeoGebra is free and multi-platform dynamic mathematics software for all
levels of education that joins geometry, algebra, tables, graphing, statistics
and calculus in one easy-to-use package. It has received several educational
software awards in Europe and the USA.

Quick Facts:

- Graphics, algebra and tables are connected and fully dynamic
- Easy-to-use interface, yet many powerful features 
- Authoring tool to create interactive learning materials as web pages 
- Available in many languages for our millions of users around the world 
- Free and open source software



Authors:
--------
    Markus Hohenwarter (Austria & USA): Project leader since 2001
    Michael Borcherds (UK): Lead Developer since 2007
    Yves Kreis (Luxembourg): Developer since 2005

%prep
%setup -q -n geogebra-%{version}

%build
#

%install
%{__install} -d -m755 %{buildroot}%{_datadir}/%{name}
%{__install} -d -m755 %{buildroot}%{_datadir}/%{name}/unsigned
%{__install} -m644 *.jar %{buildroot}%{_datadir}/%{name}
%{__install} -m644 unsigned/*.jar %{buildroot}%{_datadir}/%{name}/unsigned
%{__install} -d -m755 %{buildroot}%{_datadir}/mime/packages
%{__install} -m644 geogebra.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml
%{__install} -d -m755 %{buildroot}%{_datadir}/applications
%{__install} -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
for SIZE in 16x16 22x22 32x32 48x48 64x64 128x128 256x256; do
%{__install} -d -m755 %{buildroot}%{_datadir}/icons/hicolor/$SIZE/apps
%{__install} -d -m755 %{buildroot}%{_datadir}/icons/hicolor/$SIZE/mimetypes
%{__install} -m644 icons/hicolor/$SIZE/apps/geogebra.png %{buildroot}%{_datadir}/icons/hicolor/$SIZE/apps
%{__install} -m644 icons/hicolor/$SIZE/mimetypes/application-vnd.geogebra.file.png %{buildroot}%{_datadir}/icons/hicolor/$SIZE/mimetypes
%{__install} -m644 icons/hicolor/$SIZE/mimetypes/application-vnd.geogebra.tool.png %{buildroot}%{_datadir}/icons/hicolor/$SIZE/mimetypes
done
%{__install} -d -m755 %{buildroot}%{_docdir}/%{name}
%{__install} -m644 license.txt %{buildroot}%{_docdir}/%{name}/COPYING
%{__install} -d -m755 %{buildroot}%{_bindir}

# startscript
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/bash
# simple script to start GeoGebra
func_usage()
{
cat << _USAGE
Usage: %{name} [Java-options] [GeoGebra-options] [FILE]

GeoGebra - Dynamic mathematics software

Java options:
  -Xms<size>                       Set initial Java heap size
  -Xmx<size>                       Set maximum Java heap size

GeoGebra options:
  --help                           Show this help message
  --language=<iso_code>            Set language using locale code, e.g. en, de_AT
  --showAlgebraInput=<boolean>     Show/hide algebra input field
  --showAlgebraWindow=<boolean>    Show/hide algebra window
  --showSpreadsheet=<boolean>      Show/hide spreadsheet
  --fontSize=<number>              Set default font size
  --showSplash=<boolean>           Enable/disable the splash screen
  --enableUndo=<boolean>           Enable/disable Undo
_USAGE
}
# prefer jre-sun, if exists
if [ -z "\$JAVACMD" ]; then
    if [ -e /etc/alternatives/jre_sun/bin/java ]; then
        JAVACMD=/etc/alternatives/jre_sun/bin/java
    else
        JAVACMD=java
    fi
fi
# check for option --help and pass memory options to Java, others to GeoGebra
for i in "\$@"; do
    case "\$i" in
    --help | --hel | --he | --h )
        func_usage; exit 0 ;;
    esac
    if [ \$(expr match "\$i" '.*-Xm') -ne 0 ]; then
        if [ -z "\$JAVA_OPTS" ]; then
            JAVA_OPTS="\$i"
        else
            JAVA_OPTS="\$JAVA_OPTS \$i"
        fi
        shift \$((1))
    else
        if [ \$(expr match "\$i" '.*--') -ne 0 ]; then
            if [ -z "\$GG_OPTS" ]; then
                GG_OPTS="\$i"
            else
                GG_OPTS="\$GG_OPTS \$i"
            fi
            shift \$((1))
        fi
    fi
done
# if memory not set, change to GeoGebra defaults
if [ \$(expr match "\$JAVA_OPTS" '.*-Xmx') -eq 0 ]; then
    JAVA_OPTS="\$JAVA_OPTS -Xmx512m"
fi
if [ \$(expr match "\$JAVA_OPTS" '.*-Xms') -eq 0 ]; then
    JAVA_OPTS="\$JAVA_OPTS -Xms32m"
fi
# run
exec \$JAVACMD \$JAVA_OPTS -jar %{_datadir}/%{name}/geogebra.jar \$GG_OPTS "\$@"
EOF
%{__chmod} 755 %{buildroot}%{_bindir}/%{name}

#%if 0%{?suse_version}
#%suse_update_desktop_file %{name}
#%else
#%if 0%{?fedora} || 0%{?rhel_version} || 0%{?centos_version}
#desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
#%endif
#%endif

%clean

%post
%if 0%{?mandriva_version}
%{update_menus}
%update_desktop_database
%update_mime_database
%update_icon_cache hicolor
%else
%{_bindir}/update-mime-database %{_datadir}/mime >/dev/null
%endif

%postun
%if 0%{?mandriva_version}
%{clean_menus}
%clean_desktop_database
%clean_mime_database
%update_icon_cache hicolor
%else
%{_bindir}/update-mime-database %{_datadir}/mime >/dev/null
%endif

%files
%defattr(-,root,root)
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/16x16
%dir %{_datadir}/icons/hicolor/22x22
%dir %{_datadir}/icons/hicolor/32x32
%dir %{_datadir}/icons/hicolor/48x48
%dir %{_datadir}/icons/hicolor/64x64
%dir %{_datadir}/icons/hicolor/128x128
%dir %{_datadir}/icons/hicolor/256x256
%dir %{_datadir}/icons/hicolor/16x16/apps
%dir %{_datadir}/icons/hicolor/16x16/mimetypes
%dir %{_datadir}/icons/hicolor/22x22/apps
%dir %{_datadir}/icons/hicolor/22x22/mimetypes
%dir %{_datadir}/icons/hicolor/32x32/apps
%dir %{_datadir}/icons/hicolor/32x32/mimetypes
%dir %{_datadir}/icons/hicolor/48x48/apps
%dir %{_datadir}/icons/hicolor/48x48/mimetypes
%dir %{_datadir}/icons/hicolor/64x64/apps
%dir %{_datadir}/icons/hicolor/64x64/mimetypes
%dir %{_datadir}/icons/hicolor/128x128/apps
%dir %{_datadir}/icons/hicolor/128x128/mimetypes
%dir %{_datadir}/icons/hicolor/256x256/apps
%dir %{_datadir}/icons/hicolor/256x256/mimetypes
%{_docdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/mime/packages/%{name}.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/*.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1773 |21cr|geoipgen-0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Country-to-IPs generator. Geographic IP generator for IPv4 networks
Name:		geoipgen
Version:	0.4
Release:	5
License:	BSD
Group:		Networking/Other
URL:		http://www.morningstarsecurity.com/research/geoipgen
Source0:	http://geoipgen.googlecode.com/files/%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires:	ruby
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
GeoIPgen is a country-to-IPs generator. It's a geographic IP generator for IPv4
networks that uses the MaxMind GeoLite Country database. Geoipgen is the first
published use of a geographic ip database in reverse to translate from
country-to-IPs instead of the usual use of IP-to-country.

%prep

%setup -q

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 geoipgen %{buildroot}%{_bindir}/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README INSTALL
%{_bindir}/geoipgen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1774 |21cr|geos-3.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	libname %mklibname %{name} %{version}
%define	major_c 1
%define	libname_c %mklibname %{name}_c %{major_c}
%define	devname %mklibname %{name} -d
%define	sdevname %mklibname %{name} -d -s

Summary:	GEOS (Geometry Engine, Open Source) topology library
Name:		geos
Version:	3.8.1
Release:	1
License:	LGPLv2+
Group:		Sciences/Geosciences
Url:		https://trac.osgeo.org/geos
Source0:	https://download.osgeo.org/geos/%{name}-%{version}.tar.bz2
BuildRequires:	boost-devel >= 1.32

%description
GEOS (Geometry Engine - Open Source) is a C++ port of the ​JTS Topology Suite.
It aims to contain the complete functionality of it in C++ and thus provides
topological operators and simple spatial constructs: points, lines, polygons
and collections.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for GEOS
Group:		System/Libraries

%description -n %{libname}
The GEOS library provides topological operators and simple spatial constructs:
points, lines, polygons, and collections.
This package contains the main C++ library (ABI changes at every release).

%files -n %{libname}
%doc COPYING
%{_libdir}/libgeos-%{version}.so

#-----------------------------------------------------------------------------

%package -n %{libname_c}
Summary:	Libraries for GEOS
Group:		System/Libraries

%description -n %{libname_c}
The GEOS library provides topological operators and simple spatial constructs:
points, lines, polygons, and collections.
This package contains the always stable C-interface library.

%files -n %{libname_c}
%doc COPYING
%{_libdir}/libgeos_c.so.%{major_c}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the GEOS topology library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_c} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{sdevname}
%rename		%{name}-static-devel

%description -n %{devname}
The GEOS library provides topological operators and simple spatial constructs:
points, lines, polygons, and collections.
This package contains the headers and the libraries needed to build against
%{name}.

%files -n %{devname}
%doc COPYING NEWS README.md
%{_bindir}/%{name}-config
%{_includedir}/*
%{_libdir}/*.so
%exclude %{_libdir}/libgeos-%{version}.so

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure --disable-static
%make


%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1775 |21cr|gerbera-1.12.1-2.git23974d.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 23974d2ce4a605d7119030767b7787ba348327bb
%define commit_short %(echo %{commit} | head -c6)

Summary:	UPnP AV MediaServer
Name:		gerbera
Version:	1.12.1
Release:	2.git%{commit_short}.2
License:	GPLv2+
Group:		Networking/Remote access
Url:		https://gerbera.io/
#Source0:	https://github.com/v00d00/gerbera/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source0:	https://github.com/gerbera/gerbera/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source1:	gerbera.logrotate
Source2:	80-gerbera.preset
Source3:	gerbera.service
Source4:	gerbera.conf
Source5:	gerbera-tmpfiles.conf
BuildRequires:	cmake
BuildRequires:	duktape-devel
BuildRequires:	fmt-devel
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(libebml)
BuildRequires:	pkgconfig(libmatroska)
BuildRequires:	pkgconfig(mariadb)
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(spdlog)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(systemd)
Recommends:	youtube-dl
Requires(pre):	/bin/systemd-sysusers

%description
UPnP AV MediaServer for Linux.

%files
%doc AUTHORS README.md ChangeLog.md
%{_sysconfdir}/logrotate.d/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_presetdir}/80-%{name}.preset
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service
%defattr(-,%{name},%{name})
%config(noreplace) %{_sysconfdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%ghost %dir /run/%{name}
%ghost %{_logdir}/%{name}

%pre
# Create a user
%_pre_useradd %{name} %{_sysconfdir}/%{name} /bin/false

%post
%systemd_post %{name}.service

# Create initial log file so that logrotate doesn't complain
if [ $1 = 1 ]; then
	%create_ghostfile %{_logdir}/%{name} %{name} %{name} 644
fi

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
install -D -m 0644 %{SOURCE2} %{buildroot}%{_presetdir}/80-%{name}.preset
install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/%{name}.conf

%makeinstall_std -C build

mkdir -p %{buildroot}%{_logdir}
touch %{buildroot}%{_logdir}/%{name}
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -D -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf

mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}/run/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1776 |21cr|gerbv-2.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%global	_disable_ld_no_undefined 1

%define	major		1
%define	libname		%mklibname %{name} %{major}
%define	develname	%mklibname -d %{name}

Summary:	Gerber file viewer
Name:		gerbv
Version:	2.7.0
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://gerbv.geda-project.org/
Source0:	https://downloads.sourceforge.net/gerbv/%{name}-%{version}.tar.gz
Patch0:	gerbv-2.7.0-fix-fmt-string-errors.patch
BuildRequires:	bison
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	gettext-devel
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo) >= 1.2.0
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.4.0
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(pango)
Recommends:		%{name}-examples = %{EVRD}

%description
Gerbv is a viewer for Gerber files. Gerber files are generated from PCB CAD
system and sent to PCB manufacturers as basis for the manufacturing process.

%files 
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%dir %{_datadir}/%{name}
#{_datadir}/%%{name}/doc
%{_datadir}/%{name}/%{name}_icon.ico
%{_datadir}/%{name}/scheme
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.geda-user.%{name}.gschema.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*


#-----------------------------------------------------------------------------

%package examples
Summary:	Gerber file examples for %{name}
Group:		Graphics
Requires:	%{name} = %{EVRD}

%description examples
Example files for %{name}.

%files examples
%doc COPYING
%{_datadir}/%{name}/example

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		Graphics

%description -n %{libname}
Libraries for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/libgerbv.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Graphics
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
Development files for %{name}.

%files -n %{develname}
%doc COPYING Structs.txt
%doc doc/eagle doc/PNG-print doc/html doc/*.txt
%doc doc/example-code
%{_libdir}/libgerbv.so
%{_libdir}/pkgconfig/libgerbv.pc
%{_includedir}/%{name}-%{version}/%{name}.h

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
NOCONFIGURE=1 ./autogen.sh
%configure	\
		--disable-static \
		--disable-rpath \
		--disable-update-desktop-database
%make


%install
%makeinstall_std

# Fix .desktop file
desktop-file-edit	--remove-key="Encoding" --add-category="Science" \
			%{buildroot}%{_datadir}/applications/%{name}.desktop

# Put example files in their correct place
cp -rf example %{buildroot}%{_datadir}/%{name}

# Drop unwanted locale
rm -rf %{buildroot}%{_datadir}/locale/ru

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1777 |21cr|geronimo-specs-1.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%define with_tests 0

%define bname       geronimo
%define section     free
%define sver_activation_1_0_2 1.2
%define sver_activation_1_1 1.0
%define sver_annotation_1_0 1.1.0
%define sver_corba_2_3 1.1
%define sver_corba_3_0 1.1
%define sver_ejb_3_0 1.0
%define sver_el_1_0 1.0
%define sver_interceptor_3_0 1.0
%define sver_j2ee_connector_1_5 1.1.1
%define sver_j2ee_deployment_1_1 1.1
%define sver_javaee_deployment_1_1MR3 1.0
%define sver_j2ee_jacc_1_0 1.1
%define sver_jacc_1_1 1.0
%define sver_j2ee_management_1_1 1.0
%define sver_javamail_1_4 1.1
%define sver_jaxr_1_0 1.1
%define sver_jaxrpc_1_1 1.1
%define sver_jms_1_1 1.1
%define sver_jpa_3_0 1.1.0
%define sver_jsp_2_0 1.1
%define sver_jsp_2_1 1.0
%define sver_jta_1_0_1B 1.1.1
%define sver_jta_1_1 1.1.0
%define sver_qname_1_1 1.1
%define sver_saaj_1_1 1.1
%define sver_stax_1_0 1.0
%define sver_ws_metadata_2_0 1.1.1
%define sver_commonj_1_1 1.0

Name:           geronimo-specs
Version:        1.2
Release:        17
Epoch:          0
Summary:        Geronimo J2EE server J2EE specifications
Url:            http://geronimo.apache.org
License:        Apache License
Group:          Development/Java
Source0:        %{name}-%{version}-src.tar.bz2

Source1:        %{name}-jpp-depmap.xml
Source1000:     geronimo-specs.build.xml
Source1001:     undot.py
Patch0:         geronimo-specs-1.2-pom_xml.patch
Patch1:         geronimo-specs-jta-1.0.1B-pom_xml.patch
Patch2:         geronimo-specs-j2ee-connector-1.5-pom_xml.patch
Patch3:         geronimo-specs-servlet-2.4-pom_xml.patch
Patch4:         geronimo-specs-j2ee-1.4-pom_xml.patch
Patch5:         geronimo-specs-corba-2.3-pom_xml.patch
BuildRequires:  jpackage-utils >= 1.7.2
BuildRequires:  java-1.8.0-openjdk-devel
BuildRequires:  ant
BuildRequires:  junit >= 3.8.1
BuildRequires:  xml-commons-jaxp-1.3-apis
BuildRequires:  xerces-j2
BuildRequires:  fdupes

Requires: geronimo-commonj-1.1-apis = %{version}-%{release}
Requires: geronimo-jaf-1.0.2-api = %{version}-%{release}
Requires: geronimo-jaf-1.1-api = %{version}-%{release}
Requires: geronimo-annotation-1.0-api = %{version}-%{release}
Requires: geronimo-corba-2.3-apis = %{version}-%{release}
Requires: geronimo-ejb-3.0-api = %{version}-%{release}
Requires: geronimo-el-1.0-api = %{version}-%{release}
Requires: geronimo-interceptor-3.0-api = %{version}-%{release}
Requires: geronimo-j2ee-1.4-apis = %{version}-%{release}
Requires: geronimo-j2ee-connector-1.5-api = %{version}-%{release}
Requires: geronimo-javaee-deployment-1.1-api = %{version}-%{release}
Requires: geronimo-javaee-deployment-1.1-api = %{version}-%{release}
Requires: geronimo-jacc-1.1-api = %{version}-%{release}
Requires: geronimo-j2ee-management-1.1-api = %{version}-%{release}
Requires: geronimo-javamail-1.4-api = %{version}-%{release}
Requires: geronimo-jaxrpc-1.1-api = %{version}-%{release}
Requires: geronimo-jms-1.1-api = %{version}-%{release}
Requires: geronimo-jpa-3.0-api = %{version}-%{release}
Requires: geronimo-jsp-2.0-api = %{version}-%{release}
Requires: geronimo-jsp-2.1-api = %{version}-%{release}
Requires: geronimo-jta-1.0.1B-api = %{version}-%{release}
Requires: geronimo-jta-1.1-api = %{version}-%{release}
Requires: geronimo-qname-1.1-api = %{version}-%{release}
Requires: geronimo-saaj-1.1-api = %{version}-%{release}
Requires: geronimo-stax-1.0-api = %{version}-%{release}
Requires: geronimo-ws-metadata-2.0-api = %{version}-%{release}

Obsoletes: geronimo-javamail-1.3.1-api < %{EVRD}
Obsoletes: geronimo-corba-1.0-apis < %{EVRD}
Obsoletes: geronimo-ejb-2.1-api < %{EVRD}
Obsoletes: geronimo-jacc-1.0-api < %{EVRD}
Obsoletes: geronimo-j2ee-management-1.0-api < %{EVRD}
Obsoletes: geronimo-jaxr-1.0-api < %{EVRD}
Obsoletes: geronimo-servlet-2.4-api < %{EVRD}
Obsoletes: geronimo-servlet-2.5-api < %{EVRD}

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch:    %{ix86}

%description
Geronimo is Apache's ASF-licensed J2EE server project.
These are the J2EE-Specifications
Note: You should use the sub packages for the Specifications
that you actually need.  The ones installed by the main package
are deprecated and will disappear in future releases.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%package -n geronimo-commonj-1.1-apis
Summary:        CommonJ APIs
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    commonj_1_1_apis = %{version}-%{release}
Provides:    commonj_apis = 0:1.1

%description -n geronimo-commonj-1.1-apis
CommonJ Spec

%package -n geronimo-jaf-1.0.2-api
Summary:        J2EE JAF v1.0.2 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jaf = 0:1.0.2
# TODO: drop asap
Provides:    jaf_1_0_2_api = %{version}-%{release}
Provides:    activation_1_0_2_api = %{version}-%{release}
Provides:    jaf_api = 0:1.0.2
Provides:    activation_api = 0:1.0.2
# Don't obsolete jaf, classpathx-jaf provides it
# Don't even obsolete it versioned, as sun-jaf is at 1.1
#Obsoletes:    jaf
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-jaf-1.0.2-api
Java Activation Framework 1.0.2


%package -n geronimo-jaf-1.1-api
Summary:        J2EE JAF v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jaf = 0:1.1
# TODO: drop asap
Provides:    jaf_1_1_api = %{version}-%{release}
Provides:    activation_1_1_api = %{version}-%{release}
Provides:    jaf_api = 0:1.1
Provides:    activation_api = 0:1.1
# Don't obsolete jaf, classpathx-jaf provides it
# Don't even obsolete it versioned, as sun-jaf is at 1.1
#Obsoletes:    jaf
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-jaf-1.1-api
Java Activation Framework 1.1


%package -n geronimo-annotation-1.0-api
Summary:        JEE Common Annotations v1.0
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    annotation_1_0_api = %{version}-%{release}
Provides:    annotation_api = 0:1.0
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-annotation-1.0-api
JEE Common Annotations v1.0

%package -n geronimo-corba-2.3-apis
Summary:        CORBA v2.3 APIs
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    corba_2_3_apis = %{version}-%{release}
Provides:    corba_apis = 0:2.3

%description -n geronimo-corba-2.3-apis
CORBA 2.3 Spec

%package -n geronimo-ejb-3.0-api
Summary:        J2EE EJB v3.0 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    ejb = 0:3.0
# TODO: drop asap
Provides:    ejb_3_0_api = %{version}-%{release}
Provides:    ejb_api = 0:3.0
#Obsoletes:   ejb
Requires:    annotation_1_0_api
Requires:    interceptor_3_0_api
Requires:    jta_1_1_api
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives
Obsoletes:   geronimo-specs-compat <= 0:1.0

%description -n geronimo-ejb-3.0-api
Enterprise JavaBeans Specification 3.0



%package -n geronimo-el-1.0-api
Summary:        Expression Language v1.0 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    el_1_0_api = %{version}-%{release}
Provides:    el_api = 0:1.0
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-el-1.0-api
Expression Language 1.0



%package -n geronimo-interceptor-3.0-api
Summary:        Interceptor v3.0 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    interceptor_3_0_api = %{version}-%{release}
Provides:    interceptor_api = 0:3.0
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-interceptor-3.0-api
Interceptor 3.0



%package -n geronimo-j2ee-1.4-apis
Summary:        J2EE v1.4 APIs
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-j2ee-1.4-apis
J2EE Specification (the complete set in one jar)


%package -n geronimo-j2ee-connector-1.5-api
Summary:        J2EE Connector v1.5 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    j2ee_connector_1_5_api = %{version}-%{release}
Provides:    j2ee_connector_api = 0:1.5
# drop the following asap
Provides:    j2ee-connector = 0:1.5
# Obsoletes:   j2ee-connector
Requires:    jta_1_0_1B_api
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives
Obsoletes:   geronimo-specs-compat <= 0:1.0

%description -n geronimo-j2ee-connector-1.5-api
J2EE Connector Architecture 1.5 Specification


%package -n geronimo-j2ee-deployment-1.1-api
Summary:        J2EE Deployment v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    j2ee_deployment_1_1_api = %{version}-%{release}
Provides:    j2ee_deployment_api = 0:1.1
# drop the following asap
Provides:    j2ee-deployment = 0:1.1
# Obsoletes:    j2ee-deployment
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives
Obsoletes:   geronimo-specs-compat <= 0:1.0

%description -n geronimo-j2ee-deployment-1.1-api
J2EE Application Deployment Specification

%package -n geronimo-javaee-deployment-1.1-api
Summary:        JEE Deployment v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    javaee_deployment_1_1_api = %{version}-%{release}
Provides:    javaee_deployment_api = 0:1.1
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-javaee-deployment-1.1-api
JEE Application Deployment Specification

%package -n geronimo-jacc-1.1-api
Summary:        J2EE JACC v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jacc_1_1_api = %{version}-%{release}
Provides:    jacc_api = 0:1.1
Requires:    servlet6
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-jacc-1.1-api
Java Authorization Contract for Containers v1.1 Specification

%package -n geronimo-j2ee-management-1.1-api
Summary:        J2EE Management v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    j2ee_management_1_1_api = %{version}-%{release}
Provides:    j2ee_management_api = 0:1.1
# drop the following asap
Provides:    j2ee-management = 0:1.1
#Obsoletes:   j2ee-management
Requires:    ejb_3_0_api
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-j2ee-management-1.1-api
J2EE Application Management Specification 1.1

%package -n geronimo-javamail-1.4-api
Summary:        J2EE JavaMail v1.4 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    javamail_1_4_api = %{version}-%{release}
Provides:    javamail_api = 0:1.4
Requires:    jaf_1_1_api
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives
# Do not provide javamail as this is just the API (is it?) and
# our 'javamail' alternative means the providers as well
# all in a single jar file called 'javamail.jar'
#Provides:    javamail = 0:1.4

%description -n geronimo-javamail-1.4-api
JavaMail API 1.4

%package -n geronimo-jaxrpc-1.1-api
Summary:        J2EE JAXRPC v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jaxrpc = 0:1.1
# TODO: drop asap
Provides:    jaxrpc_1_1_api = %{version}-%{release}
Provides:    jaxrpc_api = 0:1.1
Requires:    qname_1_1_api
Requires:    saaj_1_1_api
Requires:    servlet6
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-jaxrpc-1.1-api
Java API for XML-Based RPC (JAXRPC)


%package -n geronimo-jms-1.1-api
Summary:        J2EE JMS v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jms_1_1_api = %{version}-%{release}
Provides:    jms_api = 0:1.1
# drop the following asap
Provides:    jms = 0:1.1
# Obsoletes:    jms
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives
Obsoletes:   geronimo-specs-compat <= 0:1.0

%description -n geronimo-jms-1.1-api
JMS Specification


%package -n geronimo-jpa-3.0-api
Summary:        JPA v3.0 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jpa_3_0_api = %{version}-%{release}
Provides:    jpa_api = 0:3.0
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-jpa-3.0-api
JPA Specification

%package -n geronimo-jsp-2.0-api
Summary:        J2EE JSP v2.0 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jsp = 0:2.0
# TODO: drop asap
Provides:    jsp_2_0_api = %{version}-%{release}
Provides:    jsp_api = 0:2.0
Requires:    servlet6
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-jsp-2.0-api
JavaServer Pages Specification 2.0


%package -n geronimo-jsp-2.1-api
Summary:        JEE JSP v2.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jsp = 0:2.1
# TODO: drop asap
Provides:    jsp_2_1_api = %{version}-%{release}
Provides:    jsp_api = 0:2.1
Requires:    servlet6
Requires:    el_1_0_api
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-jsp-2.1-api
JavaServer Pages Specification 2.1


%package -n geronimo-jta-1.0.1B-api
Summary:        J2EE JTA v1.0.1B API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jta_1_0_1B_api = %{version}-%{release}
Provides:    jta_api = 0:1.0.1B
# drop the following asap
Provides:    jta = 0:1.0.1B
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives
Obsoletes:   geronimo-specs-compat <= 0:1.0

%description -n geronimo-jta-1.0.1B-api
Java Transaction API Specification 1.0.1B


%package -n geronimo-jta-1.1-api
Summary:        J2EE JTA v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    jta_1_1_api = %{version}-%{release}
Provides:    jta_api = 0:1.1
# drop the following asap
Provides:    jta = 0:1.1
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives
Obsoletes:   geronimo-specs-compat <= 0:1.0

%description -n geronimo-jta-1.1-api
Java Transaction API Specification 1.1


%package -n geronimo-qname-1.1-api
Summary:        Namespace v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    qname_1_1_api = %{version}-%{release}
Provides:    qname_api = 0:1.1
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-qname-1.1-api
javax.xml.namespace.QName API


%package -n geronimo-saaj-1.1-api
Summary:        J2EE SAAJ v1.1 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    saaj = 0:1.1
# TODO: drop asap
Provides:    saaj_1_1_api = %{version}-%{release}
Provides:    saaj_api = 0:1.1
Requires:    jaf_1_0_2_api
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-saaj-1.1-api
SOAP with Attachments API for Java (SAAJ)


%package -n geronimo-stax-1.0-api
Summary:        XML Stax v1.0 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    stax_1_0_api = %{version}-%{release}
Provides:    stax_api = 0:1.0
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-stax-1.0-api
XML STax v1.0 API



%package -n geronimo-ws-metadata-2.0-api
Summary:        Webservices Metadata v2.0 API
Group:          Development/Java
Requires:    %{name}-poms = %{version}-%{release}
Provides:    ws_metadata_2_0_api = %{version}-%{release}
Provides:    ws_metadata_api = 0:2.0
Requires(preun):  %{_sbindir}/update-alternatives
Requires(post):  %{_sbindir}/update-alternatives

%description -n geronimo-ws-metadata-2.0-api
Webservices Metadata v2.0 API


%package poms
Summary:        POM files for geronimo-specs
Group:          Development/Java
Requires(post):   jpackage-utils >= 1.7.3
Requires(postun): jpackage-utils >= 1.7.3

%description poms
The Project Object Model files for the geronimo-specs modules.



%prep
%setup -q -n %{name}-%{version}
chmod -R go=u-w *
mkdir etc
cp LICENSE.txt etc
mkdir external_repo
ln -s %{_javadir} external_repo/JPP
%patch0 -b .sav0
%patch1 -p0 -b .sav1
%patch2 -p0 -b .sav2
%patch3 -p0 -b .sav3
%patch4 -p0 -b .sav4
%patch5 -p0 -b .sav5
cp %{SOURCE1000} build.xml

%build

ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 \
    -Didlj=%{java_home}/bin/idlj


%install
%define _mavendepmapfragdir %{_sysconfdir}/maven/fragments
%define add_to_maven_depmap() \
install -dm 755 $RPM_BUILD_ROOT/%{_mavendepmapfragdir}\
cat >>$RPM_BUILD_ROOT/%{_mavendepmapfragdir}/%{name}<< EOF\
<dependency>\
    <maven>\
        <groupId>%1</groupId>\
        <artifactId>%2</artifactId>\
        <version>%3</version>\
    </maven>\
    <jpp>\
        <groupId>%4</groupId>\
        <artifactId>%5</artifactId>\
        <version>%3</version>\
    </jpp>\
</dependency>\
\
EOF\
%{nil}

# Directory for poms
install -d -m 0755 %{buildroot}%{_mavenpomdir}
# subpackage jars
install -d -m 755 %{buildroot}%{_javadir}
install -m 0644 \
  geronimo-activation_1.0.2_spec-1.2/target/geronimo-activation_1.0.2_spec-1.2.jar \
  %{buildroot}%{_javadir}/geronimo-jaf-1.0.2-api-%{sver_activation_1_0_2}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jaf-1.0.2-api-%{sver_activation_1_0_2}.jar \
         geronimo-jaf-1.0.2-api.jar
popd
touch %{buildroot}%{_javadir}/jaf.jar
touch %{buildroot}%{_javadir}/jaf_api.jar
touch %{buildroot}%{_javadir}/jaf_1_0_2_api.jar

install -m 0644 geronimo-activation_1.0.2_spec-1.2/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jaf-1.0.2-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-activation_1.0.2_spec %{sver_activation_1_0_2} JPP geronimo-jaf-1.0.2-api
install -m 0644 \
  geronimo-activation_1.1_spec-1.0/target/geronimo-activation_1.1_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-jaf-1.1-api-%{sver_activation_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jaf-1.1-api-%{sver_activation_1_1}.jar \
         geronimo-jaf-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/jaf.jar
touch %{buildroot}%{_javadir}/jaf_api.jar
touch %{buildroot}%{_javadir}/jaf_1_1_api.jar
install -m 0644 geronimo-activation_1.1_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jaf-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-activation_1.1_spec %{sver_activation_1_1} JPP geronimo-jaf-1.1-api
install -m 0644 \
  geronimo-annotation_1.0_spec-1.1.0/target/geronimo-annotation_1.0_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-annotation-1.0-api-%{sver_annotation_1_0}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-annotation-1.0-api-%{sver_annotation_1_0}.jar \
         geronimo-annotation-1.0-api.jar
popd
touch %{buildroot}%{_javadir}/annotation_api.jar
touch %{buildroot}%{_javadir}/annotation_1_0_api.jar
install -m 0644 geronimo-annotation_1.0_spec-1.1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-annotation-1.0-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-annotation_1.0_spec %{sver_annotation_1_0} JPP geronimo-annotation-1.0-api
install -m 0644 \
  geronimo-spec-corba-2.3/target/geronimo-corba_2.3_spec-null.jar \
  %{buildroot}%{_javadir}/geronimo-corba-2.3-apis-%{sver_corba_2_3}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-corba-2.3-apis-%{sver_corba_2_3}.jar \
         geronimo-corba-2.3-apis.jar
popd
touch %{buildroot}%{_javadir}/corba_apis.jar
touch %{buildroot}%{_javadir}/corba_2_3_apis.jar
install -m 0644 geronimo-spec-corba-2.3/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-corba-2.3-apis.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-corba_2.3_spec %{sver_corba_2_3} JPP geronimo-corba-2.3-apis

install -m 0644 \
  geronimo-ejb_3.0_spec-1.0/target/geronimo-ejb_3.0_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-ejb-3.0-api-%{sver_ejb_3_0}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-ejb-3.0-api-%{sver_ejb_3_0}.jar \
         geronimo-ejb-3.0-api.jar
popd
touch %{buildroot}%{_javadir}/ejb.jar
touch %{buildroot}%{_javadir}/ejb_api.jar
touch %{buildroot}%{_javadir}/ejb_3_0_api.jar
install -m 0644 geronimo-ejb_3.0_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-ejb-3.0-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-ejb_3.0_spec %{sver_ejb_3_0} JPP geronimo-ejb-3.0-api
install -m 0644 \
  geronimo-el_1.0_spec-1.0/target/geronimo-el_1.0_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-el-1.0-api-%{sver_el_1_0}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-el-1.0-api-%{sver_el_1_0}.jar \
         geronimo-el-1.0-api.jar
popd
touch %{buildroot}%{_javadir}/el_api.jar
touch %{buildroot}%{_javadir}/el_1_0_api.jar
install -m 0644 geronimo-el_1.0_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-el-1.0-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-el_1.0_spec %{sver_el_1_0} JPP geronimo-el-1.0-api
install -m 0644 \
  geronimo-interceptor_3.0_spec-1.0/target/geronimo-interceptor_3.0_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-interceptor-3.0-api-%{sver_interceptor_3_0}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-interceptor-3.0-api-%{sver_interceptor_3_0}.jar \
         geronimo-interceptor-3.0-api.jar
popd
touch %{buildroot}%{_javadir}/interceptor_api.jar
touch %{buildroot}%{_javadir}/interceptor_3_0_api.jar
install -m 0644 geronimo-interceptor_3.0_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-interceptor-3.0-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-interceptor_3.0_spec %{sver_interceptor_3_0} JPP geronimo-interceptor-3.0-api
install -m 0644 \
  geronimo-j2ee-connector_1.5_spec-1.1.1/target/geronimo-j2ee-connector_1.5_spec-1.1.1.jar \
  %{buildroot}%{_javadir}/geronimo-j2ee-connector-1.5-api-%{sver_j2ee_connector_1_5}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-j2ee-connector-1.5-api-%{sver_j2ee_connector_1_5}.jar \
         geronimo-j2ee-connector-1.5-api.jar
popd
touch %{buildroot}%{_javadir}/j2ee-connector.jar
touch %{buildroot}%{_javadir}/j2ee_connector_api.jar
touch %{buildroot}%{_javadir}/j2ee_connector_1_5_api.jar
install -m 0644 geronimo-j2ee-connector_1.5_spec-1.1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-j2ee-connector-1.5-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-j2ee-connector_1.5_spec %{sver_j2ee_connector_1_5} JPP geronimo-j2ee-connector-1.5-api
install -m 0644 \
  geronimo-j2ee-deployment_1.1_spec-1.1/target/geronimo-j2ee-deployment_1.1_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-j2ee-deployment-1.1-api-%{sver_j2ee_deployment_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-j2ee-deployment-1.1-api-%{sver_j2ee_deployment_1_1}.jar \
         geronimo-j2ee-deployment-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/j2ee-deployment.jar
touch %{buildroot}%{_javadir}/j2ee_deployment_api.jar
touch %{buildroot}%{_javadir}/j2ee_deployment_1_1_api.jar
install -m 0644 geronimo-j2ee-deployment_1.1_spec-1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-j2ee-deployment-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-j2ee-deployment_1.1_spec %{sver_j2ee_deployment_1_1} JPP geronimo-j2ee-deployment-1.1-api
install -m 0644 \
  geronimo-javaee-deployment_1.1MR3_spec-1.0/target/geronimo-javaee-deployment_1.1MR3_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-javaee-deployment-1.1-api-%{sver_javaee_deployment_1_1MR3}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-javaee-deployment-1.1-api-%{sver_javaee_deployment_1_1MR3}.jar \
         geronimo-javaee-deployment-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/javaee_deployment_1_1MR3_api.jar
touch %{buildroot}%{_javadir}/javaee_deployment_api.jar
install -m 0644 geronimo-javaee-deployment_1.1MR3_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-javaee-deployment-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-javaee-deployment_1.1_spec %{sver_javaee_deployment_1_1MR3} JPP geronimo-javaee-deployment-1.1-api
install -m 0644 \
  geronimo-jacc_1.1_spec-1.0/target/geronimo-jacc_1.1_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-jacc-1.1-api-%{sver_jacc_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jacc-1.1-api-%{sver_jacc_1_1}.jar \
         geronimo-jacc-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/jacc_api.jar
touch %{buildroot}%{_javadir}/jacc_1_1_api.jar
install -m 0644 geronimo-jacc_1.1_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jacc-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-j2ee-jacc_1.1_spec %{sver_jacc_1_1} JPP geronimo-jacc-1.1-api
install -m 0644 \
  geronimo-j2ee-management_1.1_spec-1.0/target/geronimo-j2ee-management_1.1_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-j2ee-management-1.1-api-%{sver_j2ee_management_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-j2ee-management-1.1-api-%{sver_j2ee_management_1_1}.jar \
         geronimo-j2ee-management-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/j2ee-management.jar
touch %{buildroot}%{_javadir}/j2ee_management_api.jar
touch %{buildroot}%{_javadir}/j2ee_management_1_1_api.jar
install -m 0644 geronimo-j2ee-management_1.1_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-j2ee-management-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-j2ee-management_1.1_spec %{sver_j2ee_management_1_1} JPP geronimo-j2ee-management-1.1-api
install -m 0644 \
  geronimo-javamail_1.4_spec-1.1/target/geronimo-javamail_1.4_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-javamail-1.4-api-%{sver_javamail_1_4}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-javamail-1.4-api-%{sver_javamail_1_4}.jar \
         geronimo-javamail-1.4-api.jar
popd
touch %{buildroot}%{_javadir}/javamail_api.jar
touch %{buildroot}%{_javadir}/javamail_1_4_api.jar
install -m 0644 geronimo-javamail_1.4_spec-1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-javamail-1.4-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-javamail_1.4_spec %{sver_javamail_1_4} JPP geronimo-javamail-1.4-api
install -m 0644 \
  geronimo-jaxrpc_1.1_spec-1.1/target/geronimo-jaxrpc_1.1_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-jaxrpc-1.1-api-%{sver_jaxrpc_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jaxrpc-1.1-api-%{sver_jaxrpc_1_1}.jar \
         geronimo-jaxrpc-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/jaxrpc.jar
touch %{buildroot}%{_javadir}/jaxrpc_api.jar
touch %{buildroot}%{_javadir}/jaxrpc_1_1_api.jar
install -m 0644 geronimo-jaxrpc_1.1_spec-1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jaxrpc-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-jaxrpc_1.1_spec %{sver_jaxrpc_1_1} JPP geronimo-jaxrpc-1.1-api
install -m 0644 \
  geronimo-spec-j2ee/target/geronimo-j2ee_1.4_spec-1.2-jar-with-dependencies.jar \
  %{buildroot}%{_javadir}/geronimo-j2ee-1.4-apis-%{version}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-j2ee-1.4-apis-%{version}.jar \
         geronimo-j2ee-1.4-apis.jar
popd
install -m 0644 geronimo-spec-j2ee/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-j2ee-1.4-apis.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-j2ee_1.4_spec %{version} JPP geronimo-j2ee-1.4-apis
install -m 0644 \
  geronimo-jms_1.1_spec-1.1/target/geronimo-jms_1.1_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-jms-1.1-api-%{sver_jms_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jms-1.1-api-%{sver_jms_1_1}.jar \
         geronimo-jms-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/jms.jar
touch %{buildroot}%{_javadir}/jms_api.jar
touch %{buildroot}%{_javadir}/jms_1_1_api.jar
install -m 0644 geronimo-jms_1.1_spec-1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jms-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-jms_1.1_spec %{sver_jms_1_1} JPP geronimo-jms-1.1-api
install -m 0644 \
  geronimo-jpa_3.0_spec-1.1.0/target/geronimo-jpa_3.0_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-jpa-3.0-api-%{sver_jpa_3_0}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jpa-3.0-api-%{sver_jpa_3_0}.jar \
         geronimo-jpa-3.0-api.jar
popd
touch %{buildroot}%{_javadir}/jpa_api.jar
touch %{buildroot}%{_javadir}/jpa_3_0_api.jar
install -m 0644 geronimo-jpa_3.0_spec-1.1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jpa-3.0-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-jpa_3.0_spec %{sver_jpa_3_0} JPP geronimo-jpa-3.0-api
install -m 0644 \
  geronimo-jsp_2.0_spec-1.1/target/geronimo-jsp_2.0_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-jsp-2.0-api-%{sver_jsp_2_0}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jsp-2.0-api-%{sver_jsp_2_0}.jar \
         geronimo-jsp-2.0-api.jar
popd
touch %{buildroot}%{_javadir}/jsp.jar
touch %{buildroot}%{_javadir}/jsp_api.jar
touch %{buildroot}%{_javadir}/jsp_2_0_api.jar
install -m 0644 geronimo-jsp_2.0_spec-1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jsp-2.0-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-jsp_2.0_spec %{sver_jsp_2_0} JPP geronimo-jsp-2.0-api
install -m 0644 \
  geronimo-jsp_2.1_spec-1.0/target/geronimo-jsp_2.1_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-jsp-2.1-api-%{sver_jsp_2_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jsp-2.1-api-%{sver_jsp_2_1}.jar \
         geronimo-jsp-2.1-api.jar
popd
touch %{buildroot}%{_javadir}/jsp.jar
touch %{buildroot}%{_javadir}/jsp_api.jar
touch %{buildroot}%{_javadir}/jsp_2_1_api.jar
install -m 0644 geronimo-jsp_2.1_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jsp-2.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-jsp_2.1_spec %{sver_jsp_2_1} JPP geronimo-jsp-2.1-api
install -m 0644 \
  geronimo-jta_1.0.1B_spec-1.1.1/target/geronimo-jta_1.0.1B_spec-1.1.1.jar \
  %{buildroot}%{_javadir}/geronimo-jta-1.0.1B-api-%{sver_jta_1_0_1B}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jta-1.0.1B-api-%{sver_jta_1_0_1B}.jar \
         geronimo-jta-1.0.1B-api.jar
popd
touch %{buildroot}%{_javadir}/jta.jar
touch %{buildroot}%{_javadir}/jta_api.jar
touch %{buildroot}%{_javadir}/jta_1_0_1B_api.jar
install -m 0644 geronimo-jta_1.0.1B_spec-1.1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jta-1.0.1B-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-jta_1.0.1B_spec %{sver_jta_1_0_1B} JPP geronimo-jta-1.0.1B-api
install -m 0644 \
  geronimo-jta_1.1_spec-1.1.0/target/geronimo-jta_1.1_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-jta-1.1-api-%{sver_jta_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-jta-1.1-api-%{sver_jta_1_1}.jar \
         geronimo-jta-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/jta.jar
touch %{buildroot}%{_javadir}/jta_api.jar
touch %{buildroot}%{_javadir}/jta_1_1_api.jar
install -m 0644 geronimo-jta_1.1_spec-1.1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-jta-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-jta_1.1_spec %{sver_jta_1_1} JPP geronimo-jta-1.1-api
install -m 0644 \
  geronimo-qname_1.1_spec-1.1/target/geronimo-qname_1.1_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-qname-1.1-api-%{sver_qname_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-qname-1.1-api-%{sver_qname_1_1}.jar \
         geronimo-qname-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/qname_api.jar
touch %{buildroot}%{_javadir}/qname_1_1_api.jar
install -m 0644 geronimo-qname_1.1_spec-1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-qname-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-qname_1.1_spec %{sver_qname_1_1} JPP geronimo-qname-1.1-api
install -m 0644 \
  geronimo-saaj_1.1_spec-1.1/target/geronimo-saaj_1.1_spec-1.1.jar \
  %{buildroot}%{_javadir}/geronimo-saaj-1.1-api-%{sver_saaj_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-saaj-1.1-api-%{sver_saaj_1_1}.jar \
         geronimo-saaj-1.1-api.jar
popd
touch %{buildroot}%{_javadir}/saaj.jar
touch %{buildroot}%{_javadir}/saaj_api.jar
touch %{buildroot}%{_javadir}/saaj_1_1_api.jar
install -m 0644 geronimo-saaj_1.1_spec-1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-saaj-1.1-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-saaj_1.1_spec %{sver_saaj_1_1} JPP geronimo-saaj-1.1-api
install -m 0644 \
  geronimo-stax-api_1.0_spec-1.0/target/geronimo-stax-api_1.0_spec-1.0.jar \
  %{buildroot}%{_javadir}/geronimo-stax-1.0-api-%{sver_stax_1_0}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-stax-1.0-api-%{sver_stax_1_0}.jar \
         geronimo-stax-1.0-api.jar
popd
touch %{buildroot}%{_javadir}/stax_api.jar
touch %{buildroot}%{_javadir}/stax_1_0_api.jar
install -m 0644 geronimo-stax-api_1.0_spec-1.0/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-stax-1.0-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-stax_1.0_spec %{sver_stax_1_0} JPP geronimo-stax-1.0-api
install -m 0644 \
  geronimo-ws-metadata_2.0_spec-1.1.1/target/geronimo-ws-metadata_2.0_spec-1.1.1.jar \
  %{buildroot}%{_javadir}/geronimo-ws-metadata-2.0-api-%{sver_ws_metadata_2_0}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-ws-metadata-2.0-api-%{sver_ws_metadata_2_0}.jar \
         geronimo-ws-metadata-2.0-api.jar
popd
touch %{buildroot}%{_javadir}/ws_metadata_api.jar
touch %{buildroot}%{_javadir}/ws_metadata_2_0_api.jar
install -m 0644 geronimo-ws-metadata_2.0_spec-1.1.1/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-ws-metadata-2.0-api.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-ws-metadata_2.0_spec %{sver_ws_metadata_2_0} JPP geronimo-ws-metadata-2.0-api
install -m 0644 \
  geronimo-spec-commonj/target/geronimo-commonj_1.1_spec-null.jar \
  %{buildroot}%{_javadir}/geronimo-commonj-1.1-apis-%{sver_commonj_1_1}.jar
pushd %{buildroot}%{_javadir}
  ln -sf geronimo-commonj-1.1-apis-%{sver_commonj_1_1}.jar \
         geronimo-commonj-1.1-apis.jar
popd
touch %{buildroot}%{_javadir}/commonj_apis.jar
touch %{buildroot}%{_javadir}/commonj_1_1_apis.jar
install -m 0644 geronimo-spec-commonj/pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-commonj-1.1-apis.pom
%add_to_maven_depmap org.apache.geronimo.specs geronimo-commonj_1.1_spec %{sver_commonj_1_1} JPP geronimo-commonj-1.1-apis
# Add the parent geronimo-specs pom
cp pom.xml \
  %{buildroot}%{_mavenpomdir}/JPP-geronimo-specs.pom
%add_to_maven_depmap org.apache.geronimo.specs specs 1.1 JPP geronimo-specs
# main package jars
install -d -m 0755 %{buildroot}%{_javadir}/geronimo
pushd %{buildroot}%{_javadir}/geronimo
  ln -sf ../geronimo-commonj-1.1-apis-%{version}.jar spec-commonj-1.1-%{version}.jar
  ln -sf spec-commonj-1.1-%{version}.jar spec-commonj-1.1.jar
  ln -sf ../geronimo-jaf-1.0.2-api-%{version}.jar spec-jaf-1.0.2-%{version}.jar
  ln -sf spec-jaf-1.0.2-%{version}.jar spec-jaf-1.0.2.jar
  ln -sf ../geronimo-jaf-1.1-api-%{version}.jar spec-jaf-1.1-%{version}.jar
  ln -sf spec-jaf-1.1-%{version}.jar spec-jaf-1.1.jar
  ln -sf ../geronimo-annotation-1.0-api-%{version}.jar spec-annotation-1.0-%{version}.jar
  ln -sf spec-annotation-1.0-%{version}.jar spec-annotation-1.0.jar
  ln -sf ../geronimo-ejb-3.0-api-%{version}.jar spec-ejb-3.0-%{version}.jar
  ln -sf spec-ejb-3.0-%{version}.jar spec-ejb-3.0.jar
  ln -sf ../geronimo-el-1.0-api-%{version}.jar spec-el-1.0-%{version}.jar
  ln -sf spec-el-1.0-%{version}.jar spec-el-1.0.jar
  ln -sf ../geronimo-interceptor-3.0-api-%{version}.jar spec-interceptor-3.0-%{version}.jar
  ln -sf spec-interceptor-3.0-%{version}.jar spec-interceptor-3.0.jar
  ln -sf ../geronimo-j2ee-connector-1.5-api-%{version}.jar \
    spec-j2ee-connector-1.5-%{version}.jar
  ln -sf spec-j2ee-connector-1.5-%{version}.jar spec-j2ee-connector-1.5.jar
  ln -sf ../geronimo-j2ee-deployment-1.1-api-%{version}.jar \
    spec-j2ee-deployment-1.1-%{version}.jar
  ln -sf spec-j2ee-deployment-1.1-%{version}.jar spec-j2ee-deployment-1.1.jar
  ln -sf ../geronimo-javaee-deployment-1.1-api-%{version}.jar \
    spec-javaee-deployment-1.1-%{version}.jar
  ln -sf spec-javaee-deployment-1.1-%{version}.jar spec-javaee-deployment-1.1.jar
  ln -sf ../geronimo-jacc-1.1-api-%{version}.jar spec-jacc-1.1-%{version}.jar
  ln -sf spec-jacc-1.1-%{version}.jar spec-jacc-1.1.jar
  ln -sf spec-j2ee-management-1.0-%{version}.jar spec-j2ee-management-1.0.jar
  ln -sf ../geronimo-j2ee-management-1.1-api-%{version}.jar \
    spec-j2ee-management-1.1-%{version}.jar
  ln -sf spec-j2ee-management-1.1-%{version}.jar spec-j2ee-management-1.1.jar
  ln -sf ../geronimo-j2ee-1.4-apis-%{version}.jar spec-j2ee-1.4-%{version}.jar
  ln -sf spec-j2ee-1.4-%{version}.jar spec-j2ee-1.4.jar
  ln -sf ../geronimo-jms-1.1-api-%{version}.jar spec-jms-1.1-%{version}.jar
  ln -sf spec-jms-1.1-%{version}.jar spec-jms-1.1.jar
  ln -sf ../geronimo-jpa-3.0-api-%{version}.jar spec-jpa-3.0-%{version}.jar
  ln -sf spec-jpa-3.0-%{version}.jar spec-jpa-3.0.jar
  ln -sf ../geronimo-jsp-2.0-api-%{version}.jar spec-jsp-2.0-%{version}.jar
  ln -sf spec-jsp-2.0-%{version}.jar spec-jsp-2.0.jar
  ln -sf ../geronimo-jsp-2.1-api-%{version}.jar spec-jsp-2.1-%{version}.jar
  ln -sf spec-jsp-2.1-%{version}.jar spec-jsp-2.1.jar
  ln -sf ../geronimo-jta-1.0.1B-api-%{version}.jar spec-jta-1.0.1B-%{version}.jar
  ln -sf spec-jta-1.0.1B-%{version}.jar spec-jta-1.0.1B.jar
  ln -sf ../geronimo-jta-1.1-api-%{version}.jar spec-jta-1.1-%{version}.jar
  ln -sf spec-jta-1.1-%{version}.jar spec-jta-1.1.jar
  ln -sf ../geronimo-stax-1.0-api-%{version}.jar spec-stax-1.0-%{version}.jar
  ln -sf spec-stax-1.0-%{version}.jar spec-stax-1.0.jar
  ln -sf ../geronimo-ws-metadata-2.0-api-%{version}.jar spec-ws-metadata-2.0-%{version}.jar
  ln -sf spec-ws-metadata-2.0-%{version}.jar spec-ws-metadata-2.0.jar
popd
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jaf-1.0.2
    cp -pr geronimo-activation_1.0.2_spec-1.2/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jaf-1.0.2
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jaf-1.1
    cp -pr geronimo-activation_1.1_spec-1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jaf-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/annotation-1.0
    cp -pr geronimo-annotation_1.0_spec-1.1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/annotation-1.0
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/commonj-1.1
    cp -pr geronimo-spec-commonj/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/commonj-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/corba-2.3
    cp -pr geronimo-spec-corba-2.3/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/corba-2.3
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/ejb-3.0
    cp -pr geronimo-ejb_3.0_spec-1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/ejb-3.0
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/el-1.0
    cp -pr geronimo-el_1.0_spec-1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/el-1.0
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/interceptor-3.0
    cp -pr geronimo-interceptor_3.0_spec-1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/interceptor-3.0
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/j2ee-connector-1.5
    cp -pr geronimo-j2ee-connector_1.5_spec-1.1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/j2ee-connector-1.5
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/j2ee-deployment-1.1
    cp -pr geronimo-j2ee-deployment_1.1_spec-1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/j2ee-deployment-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/javaee-deployment-1.1
    cp -pr geronimo-javaee-deployment_1.1MR3_spec-1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/javaee-deployment-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/j2ee-management-1.1
    cp -pr geronimo-j2ee-management_1.1_spec-1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/j2ee-management-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/javamail-1.4
    cp -pr geronimo-javamail_1.4_spec-1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/javamail-1.4
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jaxrpc-1.1
    cp -pr geronimo-jaxrpc_1.1_spec-1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jaxrpc-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jms-1.1
    cp -pr geronimo-jms_1.1_spec-1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jms-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jpa-3.0
    cp -pr geronimo-jpa_3.0_spec-1.1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jpa-3.0
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jsp-2.0
    cp -pr geronimo-jsp_2.0_spec-1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jsp-2.0
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jsp-2.1
    cp -pr geronimo-jsp_2.1_spec-1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jsp-2.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jta-1.0.1B
    cp -pr geronimo-jta_1.0.1B_spec-1.1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jta-1.0.1B
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jta-1.1
    cp -pr geronimo-jta_1.1_spec-1.1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jta-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/qname-1.1
    cp -pr geronimo-qname_1.1_spec-1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/qname-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/saaj-1.1
    cp -pr geronimo-saaj_1.1_spec-1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/saaj-1.1
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/stax-1.0
    cp -pr geronimo-stax-api_1.0_spec-1.0/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/stax-1.0
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/ws-metadata-2.0
    cp -pr geronimo-ws-metadata_2.0_spec-1.1.1/target/site/apidocs/* \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/ws-metadata-2.0
install -d -m 755 \
       %{buildroot}%{_javadocdir}/%{name}-%{version}/jacc-1.1
    cp -pr geronimo-jacc_1.1_spec-1.0/target/site/apidocs/* \
         %{buildroot}%{_javadocdir}/%{name}-%{version}/jacc-1.1
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink
# documents
install -d -m 755 %{buildroot}%{_docdir}/%{name}-%{version}
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jaf-1.0.2
    cp -pr geronimo-activation_1.0.2_spec-1.2/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jaf-1.0.2
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jaf-1.1
    cp -pr geronimo-activation_1.1_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jaf-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/annotation-1.0
    cp -pr geronimo-annotation_1.0_spec-1.1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/annotation-1.0
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/commonj-1.1
    cp -pr geronimo-spec-commonj/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/commonj-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/corba-2.3
    cp -pr geronimo-spec-corba-2.3/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/corba-2.3
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/ejb-3.0
    cp -pr geronimo-ejb_3.0_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/ejb-3.0
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/el-1.0
    cp -pr geronimo-el_1.0_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/el-1.0
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/interceptor-3.0
    cp -pr geronimo-interceptor_3.0_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/interceptor-3.0
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/j2ee-connector-1.5
    cp -pr geronimo-j2ee-connector_1.5_spec-1.1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/j2ee-connector-1.5
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/j2ee-deployment-1.1
    cp -pr geronimo-j2ee-deployment_1.1_spec-1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/j2ee-deployment-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/javaee-deployment-1.1
    cp -pr geronimo-javaee-deployment_1.1MR3_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/javaee-deployment-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/j2ee-management-1.1
    cp -pr geronimo-j2ee-management_1.1_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/j2ee-management-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/javamail-1.4
    cp -pr geronimo-javamail_1.4_spec-1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/javamail-1.4
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jaxrpc-1.1
    cp -pr geronimo-jaxrpc_1.1_spec-1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jaxrpc-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jms-1.1
    cp -pr geronimo-jms_1.1_spec-1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jms-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jpa-3.0
    cp -pr geronimo-jpa_3.0_spec-1.1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jpa-3.0
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jsp-2.0
    cp -pr geronimo-jsp_2.0_spec-1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jsp-2.0
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jsp-2.1
    cp -pr geronimo-jsp_2.1_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jsp-2.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jta-1.0.1B
    cp -pr geronimo-jta_1.0.1B_spec-1.1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jta-1.0.1B
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jta-1.1
    cp -pr geronimo-jta_1.1_spec-1.1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jta-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/qname-1.1
    cp -pr geronimo-qname_1.1_spec-1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/qname-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/saaj-1.1
    cp -pr geronimo-saaj_1.1_spec-1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/saaj-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/stax-1.0
    cp -pr geronimo-stax-api_1.0_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/stax-1.0
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/ws-metadata-2.0
    cp -pr geronimo-ws-metadata_2.0_spec-1.1.1/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/ws-metadata-2.0
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/jacc-1.1
    cp -pr geronimo-jacc_1.1_spec-1.0/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/jacc-1.1
install -d -m 755 \
       %{buildroot}%{_docdir}/%{name}-%{version}/j2ee-1.4
    cp -pr geronimo-spec-j2ee/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}/j2ee-1.4
cp -pr etc/LICENSE.txt \
       %{buildroot}%{_docdir}/%{name}-%{version}
fdupes -s %{buildroot}/%{_javadocdir}/%{name}-%{version}


%post poms
%update_maven_depmap

%postun poms
%update_maven_depmap

%post -n geronimo-commonj-1.1-apis
%{_sbindir}/update-alternatives --install %{_javadir}/commonj_apis.jar commonj_apis %{_javadir}/geronimo-commonj-1.1-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/commonj_1_1_apis.jar commonj_1_1_apis %{_javadir}/geronimo-commonj-1.1-apis.jar 10100

%preun -n geronimo-commonj-1.1-apis
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove commonj_apis %{_javadir}/geronimo-commonj-1.1-apis.jar
    %{_sbindir}/update-alternatives --remove commonj_1_1_apis %{_javadir}/geronimo-commonj-1.1-apis.jar
fi

%post -n geronimo-jaf-1.0.2-api
%{_sbindir}/update-alternatives --install %{_javadir}/jaf.jar jaf %{_javadir}/geronimo-jaf-1.0.2-api.jar 10002
%{_sbindir}/update-alternatives --install %{_javadir}/jaf_api.jar jaf_api %{_javadir}/geronimo-jaf-1.0.2-api.jar 10002
%{_sbindir}/update-alternatives --install %{_javadir}/jaf_1_0_2_api.jar jaf_1_0_2_api %{_javadir}/geronimo-jaf-1.0.2-api.jar 10002

%preun -n geronimo-jaf-1.0.2-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jaf %{_javadir}/geronimo-jaf-1.0.2-api.jar
    %{_sbindir}/update-alternatives --remove jaf_api %{_javadir}/geronimo-jaf-1.0.2-api.jar
    %{_sbindir}/update-alternatives --remove jaf_1_0_2_api %{_javadir}/geronimo-jaf-1.0.2-api.jar
fi

%post -n geronimo-jaf-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/jaf.jar jaf %{_javadir}/geronimo-jaf-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jaf_api.jar jaf_api %{_javadir}/geronimo-jaf-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jaf_1_1_api.jar jaf_1_1_api %{_javadir}/geronimo-jaf-1.1-api.jar 10100

%preun -n geronimo-jaf-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jaf %{_javadir}/geronimo-jaf-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jaf_api %{_javadir}/geronimo-jaf-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jaf_1_1_api %{_javadir}/geronimo-jaf-1.1-api.jar
fi

%post -n geronimo-annotation-1.0-api
%{_sbindir}/update-alternatives --install %{_javadir}/annotation_api.jar annotation_api %{_javadir}/geronimo-annotation-1.0-api.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/annotation_1_0_api.jar annotation_1_0_api %{_javadir}/geronimo-annotation-1.0-api.jar 10000

%preun -n geronimo-annotation-1.0-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove annotation_api %{_javadir}/geronimo-annotation-1.0-api.jar
    %{_sbindir}/update-alternatives --remove annotation_1_0_api %{_javadir}/geronimo-annotation-1.0-api.jar
fi

%post -n geronimo-corba-2.3-apis
%{_sbindir}/update-alternatives --install %{_javadir}/corba_apis.jar corba_apis %{_javadir}/geronimo-corba-2.3-apis.jar 20300
%{_sbindir}/update-alternatives --install %{_javadir}/corba_2_3_apis.jar corba_2_3_apis %{_javadir}/geronimo-corba-2.3-apis.jar 20300

%preun -n geronimo-corba-2.3-apis
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove corba_apis %{_javadir}/geronimo-corba-2.3-apis.jar
    %{_sbindir}/update-alternatives --remove corba_2_3_apis %{_javadir}/geronimo-corba-2.3-apis.jar
fi

%post -n geronimo-ejb-3.0-api
%{_sbindir}/update-alternatives --install %{_javadir}/ejb.jar ejb %{_javadir}/geronimo-ejb-3.0-api.jar 30000
%{_sbindir}/update-alternatives --install %{_javadir}/ejb_api.jar ejb_api %{_javadir}/geronimo-ejb-3.0-api.jar 30000
%{_sbindir}/update-alternatives --install %{_javadir}/ejb_3_0_api.jar ejb_3_0_api %{_javadir}/geronimo-ejb-3.0-api.jar 30000

%preun -n geronimo-ejb-3.0-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove ejb %{_javadir}/geronimo-ejb-3.0-api.jar
    %{_sbindir}/update-alternatives --remove ejb_api %{_javadir}/geronimo-ejb-3.0-api.jar
    %{_sbindir}/update-alternatives --remove ejb_3_0_api %{_javadir}/geronimo-ejb-3.0-api.jar
fi

%post -n geronimo-el-1.0-api
%{_sbindir}/update-alternatives --install %{_javadir}/el_api.jar el_api %{_javadir}/geronimo-el-1.0-api.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/el_1_0_api.jar el_1_0_api %{_javadir}/geronimo-el-1.0-api.jar 10000

%preun -n geronimo-el-1.0-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove el_api %{_javadir}/geronimo-el-1.0-api.jar
    %{_sbindir}/update-alternatives --remove el_1_0_api %{_javadir}/geronimo-el-1.0-api.jar
fi

%post -n geronimo-interceptor-3.0-api
%{_sbindir}/update-alternatives --install %{_javadir}/interceptor_api.jar interceptor_api %{_javadir}/geronimo-interceptor-3.0-api.jar 30000
%{_sbindir}/update-alternatives --install %{_javadir}/interceptor_3_0_api.jar interceptor_3_0_api %{_javadir}/geronimo-interceptor-3.0-api.jar 30000

%preun -n geronimo-interceptor-3.0-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove interceptor_api %{_javadir}/geronimo-interceptor-3.0-api.jar
    %{_sbindir}/update-alternatives --remove interceptor_3_0_api %{_javadir}/geronimo-interceptor-3.0-api.jar
fi


%post -n geronimo-j2ee-connector-1.5-api
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee-connector.jar j2ee-connector %{_javadir}/geronimo-j2ee-connector-1.5-api.jar 10500
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_connector_api.jar j2ee_connector_api %{_javadir}/geronimo-j2ee-connector-1.5-api.jar 10500
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_connector_1_5_api.jar j2ee_connector_1_5_api %{_javadir}/geronimo-j2ee-connector-1.5-api.jar 10500

%preun -n geronimo-j2ee-connector-1.5-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove j2ee-connector %{_javadir}/geronimo-j2ee-connector-1.5-api.jar
    %{_sbindir}/update-alternatives --remove j2ee_connector_api %{_javadir}/geronimo-j2ee-connector-1.5-api.jar
    %{_sbindir}/update-alternatives --remove j2ee_connector_1_5_api %{_javadir}/geronimo-j2ee-connector-1.5-api.jar
fi

%post -n geronimo-j2ee-deployment-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee-deployment.jar j2ee-deployment %{_javadir}/geronimo-j2ee-deployment-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_deployment_api.jar j2ee_deployment_api %{_javadir}/geronimo-j2ee-deployment-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_deployment_1_1_api.jar j2ee_deployment_1_1_api %{_javadir}/geronimo-j2ee-deployment-1.1-api.jar 10100

%preun -n geronimo-j2ee-deployment-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove j2ee-deployment %{_javadir}/geronimo-j2ee-deployment-1.1-api.jar
    %{_sbindir}/update-alternatives --remove j2ee_deployment_api %{_javadir}/geronimo-j2ee-deployment-1.1-api.jar
    %{_sbindir}/update-alternatives --remove j2ee_deployment_1_1_api %{_javadir}/geronimo-j2ee-deployment-1.1-api.jar
fi

%post -n geronimo-javaee-deployment-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/javaee_deployment_api.jar javaee_deployment_api %{_javadir}/geronimo-javaee-deployment-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/javaee_deployment_1_1MR3_api.jar javaee_deployment_1_1MR3_api %{_javadir}/geronimo-javaee-deployment-1.1-api.jar 10100

%preun -n geronimo-javaee-deployment-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove javaee_deployment_api %{_javadir}/geronimo-javaee-deployment-1.1-api.jar
    %{_sbindir}/update-alternatives --remove javaee_deployment_1_1MR3_api %{_javadir}/geronimo-javaee-deployment-1.1-api.jar
fi


%post -n geronimo-jacc-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/jacc_api.jar jacc_api %{_javadir}/geronimo-jacc-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jacc_1_1_api.jar jacc_1_1_api %{_javadir}/geronimo-jacc-1.1-api.jar 10100

%preun -n geronimo-jacc-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jacc_api %{_javadir}/geronimo-jacc-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jacc_1_1_api %{_javadir}/geronimo-jacc-1.1-api.jar
fi


%post -n geronimo-j2ee-management-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee-management.jar j2ee-management %{_javadir}/geronimo-j2ee-management-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_management_api.jar j2ee_management_api %{_javadir}/geronimo-j2ee-management-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_management_1_1_api.jar j2ee_management_1_1_api %{_javadir}/geronimo-j2ee-management-1.1-api.jar 10100

%preun -n geronimo-j2ee-management-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove j2ee-management %{_javadir}/geronimo-j2ee-management-1.1-api.jar
    %{_sbindir}/update-alternatives --remove j2ee_management_api %{_javadir}/geronimo-j2ee-management-1.1-api.jar
    %{_sbindir}/update-alternatives --remove j2ee_management_1_1_api %{_javadir}/geronimo-j2ee-management-1.1-api.jar
fi


# Do not provide javamail as this is just the API (is it?) and
# our 'javamail' alternative means the providers as well
# all in a single jar file called 'javamail.jar'

%post -n geronimo-javamail-1.4-api
%{_sbindir}/update-alternatives --install %{_javadir}/javamail.jar javamail %{_javadir}/geronimo-javamail-1.4-api.jar 10400
%{_sbindir}/update-alternatives --install %{_javadir}/javamail_api.jar javamail_api %{_javadir}/geronimo-javamail-1.4-api.jar 10400
%{_sbindir}/update-alternatives --install %{_javadir}/javamail_1_4_api.jar javamail_1_4_api %{_javadir}/geronimo-javamail-1.4-api.jar 10400

%preun -n geronimo-javamail-1.4-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove javamail %{_javadir}/geronimo-javamail-1.4-api.jar
    %{_sbindir}/update-alternatives --remove javamail_api %{_javadir}/geronimo-javamail-1.4-api.jar
    %{_sbindir}/update-alternatives --remove javamail_1_4_api %{_javadir}/geronimo-javamail-1.4-api.jar
fi


%post -n geronimo-jaxrpc-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/jaxrpc.jar jaxrpc %{_javadir}/geronimo-jaxrpc-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jaxrpc_api.jar jaxrpc_api %{_javadir}/geronimo-jaxrpc-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jaxrpc_1_1_api.jar jaxrpc_1_1_api %{_javadir}/geronimo-jaxrpc-1.1-api.jar 10100

%preun -n geronimo-jaxrpc-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jaxrpc %{_javadir}/geronimo-jaxrpc-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jaxrpc_api %{_javadir}/geronimo-jaxrpc-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jaxrpc_1_1_api %{_javadir}/geronimo-jaxrpc-1.1-api.jar
fi


%post -n geronimo-jms-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/jms.jar jms %{_javadir}/geronimo-jms-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jms_api.jar jms_api %{_javadir}/geronimo-jms-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jms_1_1_api.jar jms_1_1_api %{_javadir}/geronimo-jms-1.1-api.jar 10100

%preun -n geronimo-jms-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jms %{_javadir}/geronimo-jms-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jms_api %{_javadir}/geronimo-jms-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jms_1_1_api %{_javadir}/geronimo-jms-1.1-api.jar
fi

%post -n geronimo-jpa-3.0-api
%{_sbindir}/update-alternatives --install %{_javadir}/jpa_api.jar jpa_api %{_javadir}/geronimo-jpa-3.0-api.jar 30000
%{_sbindir}/update-alternatives --install %{_javadir}/jpa_3_0_api.jar jpa_3_0_api %{_javadir}/geronimo-jpa-3.0-api.jar 30000

%preun -n geronimo-jpa-3.0-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jpa_api %{_javadir}/geronimo-jpa-3.0-api.jar
    %{_sbindir}/update-alternatives --remove jpa_3_0_api %{_javadir}/geronimo-jpa-3.0-api.jar
fi

%post -n geronimo-jsp-2.0-api
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp %{_javadir}/geronimo-jsp-2.0-api.jar 20000
%{_sbindir}/update-alternatives --install %{_javadir}/jsp_api.jar jsp_api %{_javadir}/geronimo-jsp-2.0-api.jar 20000
%{_sbindir}/update-alternatives --install %{_javadir}/jsp_2_0_api.jar jsp_2_0_api %{_javadir}/geronimo-jsp-2.0-api.jar 20000

%preun -n geronimo-jsp-2.0-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jsp %{_javadir}/geronimo-jsp-2.0-api.jar
    %{_sbindir}/update-alternatives --remove jsp_api %{_javadir}/geronimo-jsp-2.0-api.jar
    %{_sbindir}/update-alternatives --remove jsp_2_0_api %{_javadir}/geronimo-jsp-2.0-api.jar
fi

%post -n geronimo-jsp-2.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp %{_javadir}/geronimo-jsp-2.1-api.jar 20100
%{_sbindir}/update-alternatives --install %{_javadir}/jsp_api.jar jsp_api %{_javadir}/geronimo-jsp-2.1-api.jar 20100
%{_sbindir}/update-alternatives --install %{_javadir}/jsp_2_1_api.jar jsp_2_1_api %{_javadir}/geronimo-jsp-2.1-api.jar 20100

%preun -n geronimo-jsp-2.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jsp %{_javadir}/geronimo-jsp-2.1-api.jar
    %{_sbindir}/update-alternatives --remove jsp_api %{_javadir}/geronimo-jsp-2.1-api.jar
    %{_sbindir}/update-alternatives --remove jsp_2_1_api %{_javadir}/geronimo-jsp-2.1-api.jar
fi


%post -n geronimo-jta-1.0.1B-api
%{_sbindir}/update-alternatives --install %{_javadir}/jta.jar jta %{_javadir}/geronimo-jta-1.0.1B-api.jar 10001
%{_sbindir}/update-alternatives --install %{_javadir}/jta_api.jar jta_api %{_javadir}/geronimo-jta-1.0.1B-api.jar 10001
%{_sbindir}/update-alternatives --install %{_javadir}/jta_1_0_1B_api.jar jta_1_0_1B_api %{_javadir}/geronimo-jta-1.0.1B-api.jar 10001

%preun -n geronimo-jta-1.0.1B-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jta %{_javadir}/geronimo-jta-1.0.1B-api.jar
    %{_sbindir}/update-alternatives --remove jta_api %{_javadir}/geronimo-jta-1.0.1B-api.jar
    %{_sbindir}/update-alternatives --remove jta_1_0_1B_api %{_javadir}/geronimo-jta-1.0.1B-api.jar
fi


%post -n geronimo-jta-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/jta.jar jta %{_javadir}/geronimo-jta-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jta_api.jar jta_api %{_javadir}/geronimo-jta-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jta_1_1_api.jar jta_1_1_api %{_javadir}/geronimo-jta-1.1-api.jar 10100

%preun -n geronimo-jta-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jta %{_javadir}/geronimo-jta-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jta_api %{_javadir}/geronimo-jta-1.1-api.jar
    %{_sbindir}/update-alternatives --remove jta_1_1_api %{_javadir}/geronimo-jta-1.1-api.jar
fi

%post -n geronimo-qname-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/qname_api.jar qname_api %{_javadir}/geronimo-qname-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/qname_1_1_api.jar qname_1_1_api %{_javadir}/geronimo-qname-1.1-api.jar 10100

%postun -n geronimo-qname-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove qname_api %{_javadir}/geronimo-qname-1.1-api.jar
    %{_sbindir}/update-alternatives --remove qname_1_1_api %{_javadir}/geronimo-qname-1.1-api.jar
fi

%post -n geronimo-saaj-1.1-api
%{_sbindir}/update-alternatives --install %{_javadir}/saaj.jar saaj %{_javadir}/geronimo-saaj-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/saaj_api.jar saaj_api %{_javadir}/geronimo-saaj-1.1-api.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/saaj_1_1_api.jar saaj_1_1_api %{_javadir}/geronimo-saaj-1.1-api.jar 10100

%preun -n geronimo-saaj-1.1-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove saaj %{_javadir}/geronimo-saaj-1.1-api.jar
    %{_sbindir}/update-alternatives --remove saaj_api %{_javadir}/geronimo-saaj-1.1-api.jar
    %{_sbindir}/update-alternatives --remove saaj_1_1_api %{_javadir}/geronimo-saaj-1.1-api.jar
fi

%post -n geronimo-stax-1.0-api
%{_sbindir}/update-alternatives --install %{_javadir}/stax_api.jar stax_api %{_javadir}/geronimo-stax-1.0-api.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/stax_1_0_api.jar stax_1_0_api %{_javadir}/geronimo-stax-1.0-api.jar 10000

%preun -n geronimo-stax-1.0-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove stax_api %{_javadir}/geronimo-stax-1.0-api.jar
    %{_sbindir}/update-alternatives --remove stax_1_0_api %{_javadir}/geronimo-stax-1.0-api.jar
fi

%post -n geronimo-ws-metadata-2.0-api
%{_sbindir}/update-alternatives --install %{_javadir}/ws_metadata_api.jar ws_metadata_api %{_javadir}/geronimo-ws-metadata-2.0-api.jar 20000
%{_sbindir}/update-alternatives --install %{_javadir}/ws_metadata_2_0_api.jar ws_metadata_2_0_api %{_javadir}/geronimo-ws-metadata-2.0-api.jar 20000

%preun -n geronimo-ws-metadata-2.0-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove ws_metadata_api %{_javadir}/geronimo-ws-metadata-2.0-api.jar
    %{_sbindir}/update-alternatives --remove ws_metadata_2_0_api %{_javadir}/geronimo-ws-metadata-2.0-api.jar
fi

%post -n geronimo-j2ee-1.4-apis
%{_sbindir}/update-alternatives --install %{_javadir}/jaf_api.jar jaf_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10002
%{_sbindir}/update-alternatives --install %{_javadir}/jaf_1_0_2_api.jar jaf_1_0_2_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10002
%{_sbindir}/update-alternatives --install %{_javadir}/commonj_apis.jar commonj_apis %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/commonj_1_1_apis.jar commonj_1_1_apis %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/corba_apis.jar corba_apis %{_javadir}/geronimo-j2ee-1.4-apis.jar 20300
%{_sbindir}/update-alternatives --install %{_javadir}/corba_2_3_apis.jar corba_2_3_apis %{_javadir}/geronimo-j2ee-1.4-apis.jar 20300
%{_sbindir}/update-alternatives --install %{_javadir}/ejb_api.jar ejb_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 20100
%{_sbindir}/update-alternatives --install %{_javadir}/ejb_2_1_api.jar ejb_2_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 20100
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee-connector.jar j2ee-connector %{_javadir}/geronimo-j2ee-1.4-apis.jar 10500
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_connector_api.jar j2ee_connector_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10500
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_connector_1_5_api.jar j2ee_1_5_connector_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10500
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_deployment_api.jar j2ee_deployment_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_deployment_1_1_api.jar j2ee_deployment_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_management_api.jar j2ee_management_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/j2ee_management_1_0_api.jar j2ee_management_1_0_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/jacc_api.jar jacc_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/jacc_1_0_api.jar jacc_1_0_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/javamail_api.jar javamail_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10301
%{_sbindir}/update-alternatives --install %{_javadir}/javamail_1_3_1_api.jar javamail_1_3_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10301
%{_sbindir}/update-alternatives --install %{_javadir}/jaxr_api.jar jaxr_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/jaxr_1_0_api.jar jaxr_1_0_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10000
%{_sbindir}/update-alternatives --install %{_javadir}/jaxrpc_api.jar jaxrpc_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jaxrpc_1_1_api.jar jaxrpc_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jms_api.jar jms_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jms_1_1_api.jar jms_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jsp_api.jar jsp_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jsp_2_0_api.jar jsp_2_0_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/jta_api.jar jta_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10001
%{_sbindir}/update-alternatives --install %{_javadir}/jta_1_0_1B_api.jar jta_1_0_1B_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10001
%{_sbindir}/update-alternatives --install %{_javadir}/qname_api.jar qname_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/qname_1_1_api.jar qname_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/saaj_api.jar saaj_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100
%{_sbindir}/update-alternatives --install %{_javadir}/saaj_1_1_api.jar saaj_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar 10100

%preun -n geronimo-j2ee-1.4-apis
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jaf_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jaf_1_0_2_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove commonj_apis %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove commonj_1_1_apis %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove corba_apis %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove corba_2_3_apis %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove ejb_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove ejb_2_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove j2ee-connector %{_javadir}/geronimo-j2ee-connector-1.5-api.jar
    %{_sbindir}/update-alternatives --remove j2ee_connector_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove j2ee_connector_1_5_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove j2ee_deployment_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove j2ee_deployment_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove j2ee_management_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove j2ee_management_1_0_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jacc_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jacc_1_0_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove javamail_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove javamail_1_3_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jaxr_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jaxr_1_0_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jaxrpc_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jaxrpc_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jms_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jms_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jsp_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jsp_2_0_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jta_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove jta_1_0_1B_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove qname_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove qname_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove saaj_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
    %{_sbindir}/update-alternatives --remove saaj_1_1_api %{_javadir}/geronimo-j2ee-1.4-apis.jar
fi

%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/LICENSE.txt
%dir %{_javadir}/geronimo
%{_javadir}/geronimo/*

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/*

%files poms
%defattr(0644,root,root,0755)
%config %{_mavendepmapfragdir}/*
%{_mavenpomdir}/*

%files -n geronimo-commonj-1.1-apis
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-commonj-1.1-apis*.jar
%ghost %{_javadir}/commonj_1_1_apis.jar
%ghost %{_javadir}/commonj_apis.jar
%doc %{_docdir}/%{name}-%{version}/commonj-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/commonj-1.1
%dir %{_docdir}/%{name}-%{version}

%files -n geronimo-jaf-1.0.2-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jaf-1.0.2-api*.jar
%doc %{_docdir}/%{name}-%{version}/jaf-1.0.2/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jaf-1.0.2
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jaf.jar
%ghost %{_javadir}/jaf_api.jar
%ghost %{_javadir}/jaf_1_0_2_api.jar

%files -n geronimo-jaf-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jaf-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/jaf-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jaf-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jaf.jar
%ghost %{_javadir}/jaf_api.jar
%ghost %{_javadir}/jaf_1_1_api.jar

%files -n geronimo-annotation-1.0-api
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/annotation-1.0/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/annotation-1.0
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/annotation_api.jar
%ghost %{_javadir}/annotation_1_0_api.jar
%{_javadir}/geronimo-annotation-1.0-api*.jar

%files -n geronimo-corba-2.3-apis
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-corba-2.3-apis*.jar
%doc %{_docdir}/%{name}-%{version}/corba-2.3/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/corba-2.3
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/corba_apis.jar
%ghost %{_javadir}/corba_2_3_apis.jar


%files -n geronimo-ejb-3.0-api
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/ejb-3.0/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/ejb-3.0
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/ejb.jar
%ghost %{_javadir}/ejb_api.jar
%ghost %{_javadir}/ejb_3_0_api.jar
%{_javadir}/geronimo-ejb-3.0-api*.jar

%files -n geronimo-el-1.0-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-el-1.0-api*.jar
%doc %{_docdir}/%{name}-%{version}/el-1.0/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/el-1.0
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/el_api.jar
%ghost %{_javadir}/el_1_0_api.jar

%files -n geronimo-interceptor-3.0-api
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/interceptor-3.0/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/interceptor-3.0
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/interceptor_api.jar
%ghost %{_javadir}/interceptor_3_0_api.jar
%{_javadir}/geronimo-interceptor-3.0-api*.jar

%files -n geronimo-j2ee-1.4-apis
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-j2ee-1.4-apis*.jar
%doc %{_docdir}/%{name}-%{version}/j2ee-1.4/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/j2ee-1.4
%dir %{_docdir}/%{name}-%{version}

%files -n geronimo-j2ee-connector-1.5-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-j2ee-connector-1.5-api*.jar
%doc %{_docdir}/%{name}-%{version}/j2ee-connector-1.5/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/j2ee-connector-1.5
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/j2ee-connector.jar
%ghost %{_javadir}/j2ee_connector_api.jar
%ghost %{_javadir}/j2ee_connector_1_5_api.jar

%files -n geronimo-j2ee-deployment-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-j2ee-deployment-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/j2ee-deployment-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/j2ee-deployment-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/j2ee-deployment.jar
%ghost %{_javadir}/j2ee_deployment_api.jar
%ghost %{_javadir}/j2ee_deployment_1_1_api.jar

%files -n geronimo-javaee-deployment-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-javaee-deployment-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/javaee-deployment-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/javaee-deployment-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/javaee_deployment_api.jar
%ghost %{_javadir}/javaee_deployment_1_1MR3_api.jar

%files -n geronimo-jacc-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jacc-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/jacc-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jacc-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jacc_api.jar
%ghost %{_javadir}/jacc_1_1_api.jar

%files -n geronimo-j2ee-management-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-j2ee-management-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/j2ee-management-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/j2ee-management-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/j2ee-management.jar
%ghost %{_javadir}/j2ee_management_api.jar
%ghost %{_javadir}/j2ee_management_1_1_api.jar

%files -n geronimo-javamail-1.4-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-javamail-1.4-api*.jar
%doc %{_docdir}/%{name}-%{version}/javamail-1.4/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/javamail-1.4
%dir %{_docdir}/%{name}-%{version}
# Do not provide it as this is just the API (is it?) and
# our 'javamail' alternative means the providers as well
# all in a single jar file called 'javamail.jar'
%ghost %{_javadir}/javamail_api.jar
%ghost %{_javadir}/javamail_1_4_api.jar

%files -n geronimo-jaxrpc-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jaxrpc-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/jaxrpc-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jaxrpc-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jaxrpc.jar
%ghost %{_javadir}/jaxrpc_api.jar
%ghost %{_javadir}/jaxrpc_1_1_api.jar

%files -n geronimo-jms-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jms-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/jms-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jms-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jms.jar
%ghost %{_javadir}/jms_api.jar
%ghost %{_javadir}/jms_1_1_api.jar

%files -n geronimo-jpa-3.0-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jpa-3.0-api*.jar
%doc %{_docdir}/%{name}-%{version}/jpa-3.0/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jpa-3.0
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jpa_api.jar
%ghost %{_javadir}/jpa_3_0_api.jar

%files -n geronimo-jsp-2.0-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jsp-2.0-api*.jar
%doc %{_docdir}/%{name}-%{version}/jsp-2.0/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jsp-2.0
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jsp.jar
%ghost %{_javadir}/jsp_api.jar
%ghost %{_javadir}/jsp_2_0_api.jar

%files -n geronimo-jsp-2.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jsp-2.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/jsp-2.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jsp-2.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jsp.jar
%ghost %{_javadir}/jsp_api.jar
%ghost %{_javadir}/jsp_2_1_api.jar

%files -n geronimo-jta-1.0.1B-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jta-1.0.1B-api*.jar
%doc %{_docdir}/%{name}-%{version}/jta-1.0.1B/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jta-1.0.1B
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jta.jar
%ghost %{_javadir}/jta_api.jar
%ghost %{_javadir}/jta_1_0_1B_api.jar

%files -n geronimo-jta-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-jta-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/jta-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/jta-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/jta.jar
%ghost %{_javadir}/jta_api.jar
%ghost %{_javadir}/jta_1_1_api.jar

%files -n geronimo-qname-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-qname-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/qname-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/qname-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/qname_api.jar
%ghost %{_javadir}/qname_1_1_api.jar

%files -n geronimo-saaj-1.1-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-saaj-1.1-api*.jar
%doc %{_docdir}/%{name}-%{version}/saaj-1.1/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/saaj-1.1
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/saaj.jar
%ghost %{_javadir}/saaj_api.jar
%ghost %{_javadir}/saaj_1_1_api.jar

%files -n geronimo-stax-1.0-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-stax-1.0-api*.jar
%doc %{_docdir}/%{name}-%{version}/stax-1.0/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/stax-1.0
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/stax_api.jar
%ghost %{_javadir}/stax_1_0_api.jar

%files -n geronimo-ws-metadata-2.0-api
%defattr(0644,root,root,0755)
%{_javadir}/geronimo-ws-metadata-2.0-api*.jar
%doc %{_docdir}/%{name}-%{version}/ws-metadata-2.0/LICENSE.txt
%dir %{_docdir}/%{name}-%{version}/ws-metadata-2.0
%dir %{_docdir}/%{name}-%{version}
%ghost %{_javadir}/ws_metadata_api.jar
%ghost %{_javadir}/ws_metadata_2_0_api.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1778 |21cr|getcourse-video-downloader-0-4.git3dbb4b.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 3dbb4b8d548eb647c6fad96e16df1edbf8ccc814
%define commit_short %(echo %{commit} | head -c6)

Summary:	Simple script to download videos from GetCourse.ru
Name:		getcourse-video-downloader
Version:	0
Release:	4.git%{commit_short}.2
License:	GPLv3
Group:		Networking/WWW
Url:		https://github.com/mikhailnov/getcourse-video-downloader
Source0:	https://github.com/mikhailnov/getcourse-video-downloader/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Requires: bash
Requires: curl
Requires: grep

%description
Simple script to download videos from GetCourse.ru
See README.md for instructions.

%files
%doc README.md data
%{_bindir}/getcourse-video-downloader

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
install -m0755 getcourse-video-downloader.sh %{buildroot}%{_bindir}/getcourse-video-downloader

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1779 |21cr|getdata-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tests_enabled 0


Name:           getdata
Version:        0.11.0
Release:        1
Summary:        Library for reading and writing dirfile data
Group:          System/Libraries
License:        GPLv2+
URL:            http://getdata.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz

BuildRequires:  gcc-c++
BuildRequires:  gcc-gfortran
BuildRequires:  libltdl-devel
BuildRequires:  bzip2-devel
BuildRequires:  zlib-devel
BuildRequires:  xz-devel
BuildRequires:  zziplib-devel
BuildRequires:  flac-devel
#slim not avail in repo
#%%ifarch %{ix86} x86_64
#slim is only available on ix86 and x86_64
#BuildRequires:     slimdata-devel
#%%endif

%description
The GetData Project is the reference implementation of the Dirfile Standards,
a filesystem-based database format for time-ordered binary data. The Dirfile
database format is designed to provide a fast, simple format for storing and
reading data.

%files
%doc README NEWS COPYING AUTHORS TODO ChangeLog
%{_bindir}/dirfile2ascii
%{_bindir}/checkdirfile
%dir %{_libdir}/getdata
%{_libdir}/getdata/libgetdataflac-0.11.0.so
%{_libdir}/getdata/libgetdatazzip-0.11.0.so
%{_mandir}/man5/*
%{_mandir}/man1/*

#------------------------------------------------------------------
%define major 8
%define libname %mklibname %{name} %{major}

%package -n %{libname}
Summary:	getdata shared library
Group:		System/Libraries

%description -n %{libname}
getdata shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#-------------------------------------------------------------------------
%define getdatapp_major 7
%define libgetdatapp %mklibname %{name}++ %{getdatapp_major}

%package -n %{libgetdatapp}
Summary:	getdata shared library
Group:		System/Libraries

%description -n %{libgetdatapp}
getdata shared library.

%files -n %{libgetdatapp}
%{_libdir}/libgetdata++.so.%{getdatapp_major}*

#-------------------------------------------------------------------------
%define devname %mklibname %{name} -d

%package -n %{devname}
Summary: Headers required when building programs against getdata
Group:    Development/Other
Provides: %{name}-devel = %{EVRD}
Requires: %{name} = %{EVRD}
Requires: %{libname} = %{EVRD}
Requires: %{libgetdatapp} = %{EVRD}
Requires: pkgconfig
Requires: gcc-gfortran%{_isa}

%description -n %{devname}
Headers required when building a program against the GetData library.
Includes C++ and FORTRAN (77 & 95) bindings. 

%files -n %{devname}
%doc doc/README.cxx doc/README.f77 doc/unclean_database_recovery.txt
%{_libdir}/libgetdata.so
%{_libdir}/libf*getdata.so
%{_libdir}/libgetdata++.so
%{_includedir}/*
%{_mandir}/man3/*
%{_libdir}/pkgconfig/getdata.pc
%{_fmoddir}/getdata.mod
%{_libdir}/getdata/libgetdataflac.so
%{_libdir}/getdata/libgetdatazzip.so

#-------------------------------------------------------------------------
%define f95getdata_major 7
%define f95getdata %mklibname f95getdata %{f95getdata_major}

%package -n %{f95getdata}
Summary:	getdata bindings for fortran
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{f95getdata}
The GetData library for fortran programs.

%files -n %{f95getdata}
%{_libdir}/libf95getdata.so.%{f95getdata_major}*
%{_libdir}/libfgetdata.so.6*

#-------------------------------------------------------------------------
%define getdatagzip_major 0
%define getdatagzip %mklibname getdatagzip %{getdatagzip_major}

%package -n %{getdatagzip}
Summary:	Enables getdata read ability of gzip compressed dirfiles
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{getdatagzip}
Enables getdata to read dirfiles that are encoded (compressed) with gzip.
Fields must be fully compressed with gzip, not actively being written to.
Does not yet allow writing of gzip encoded dirfiles.

%files -n %{getdatagzip}
%{_libdir}/getdata/libgetdatagzip.so
%{_libdir}/getdata/libgetdatagzip-%{version}.so

#-------------------------------------------------------------------------
%define getdatabzip2_major 0
%define getdatabzip2 %mklibname getdatabzip2 %{getdatabzip2_major}

%package -n %{getdatabzip2}
Summary:	Enables getdata read ability of bzip2 compressed dirfiles
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{getdatabzip2}
Enables getdata to read dirfiles that are encoded (compressed) with bzip2.
Fields must be fully compressed with bzip2, not actively being written to.
Does not yet allow writing of bzip2 encoded dirfiles.

%files -n %{getdatabzip2}
%{_libdir}/getdata/libgetdatabzip2.so
%{_libdir}/getdata/libgetdatabzip2-%{version}.so

#-------------------------------------------------------------------------
#slim not avail in repo

#%%ifarch %{ix86} x86_64
#%%package slim
#Summary: Enables getdata read ability of slim compressed dirfiles
#Group:          System/Libraries
#Requires: %{name} = %{version}-%{release}

#%%description slim
#Enables getdata to read dirfiles that are encoded (compressed) with slimdata.

#%%files slim
#%%{_libdir}/getdata/libgetdataslim.so
#%%{_libdir}/getdata/libgetdataslim-0.11.0.so

#%%endif

#-------------------------------------------------------------------------
%define getdatalzma_major 0
%define getdatalzma %mklibname getdatalzma %{getdatalzma_major}

%package -n %{getdatalzma}
Summary:	Enables getdata read ability of lzma compressed dirfiles
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{getdatalzma}
Enables getdata to read dirfiles that are encoded (compressed) with lzma.

%files -n %{getdatalzma}
%{_libdir}/getdata/libgetdatalzma.so
%{_libdir}/getdata/libgetdatalzma-%{version}.so

#-------------------------------------------------------------------------

%prep
%setup -q

%build
# FIXME: FFLAGS/FCFLAGS are not being honored; looking into it with upstream.
export FCFLAGS="$FCFLAGS -fallow-argument-mismatch"
%configure --disable-static --enable-modules --disable-perl --disable-python

# removing rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%if %{tests_enabled}
%check
LD_LIBRARY_PATH="%{buildroot}/%{_libdir}:%{buildroot}/%{_libdir}/getdata" make check
%endif

%install
mkdir -p %{buildroot}
make DESTDIR=%{buildroot} SUID_ROOT="" install
# Remove .la files.  
rm -f %{buildroot}/%{_libdir}/lib*.la
rm -f %{buildroot}/%{_libdir}/getdata/lib*.la
# Remove simple docs, as we install them ourselves (along with others)
rm -f %{buildroot}/%{_datadir}/doc/%{name}/*
# Place fortran module in the correct location
mkdir -p %{buildroot}/%{_fmoddir}
mv %{buildroot}/%{_includedir}/getdata.mod  %{buildroot}/%{_fmoddir}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1780 |21cr|getmail-6.18.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname %{name}6

Summary:	IMAP and POP3 mail retriever with reliable Maildir delivery
Name:		getmail
Version:	6.18.10
Release:	1
License:	GPLv2
Group:		Networking/Mail
Url:		https://github.com/getmail6/getmail6
Source0:	https://github.com/%{oname}/%{oname}/archive/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
getmail is intended as a simple replacement for fetchmail for those people who
do not need its various and sundry configuration options, complexities, and
bugs.  It retrieves mail from one or more IMAP or POP3 servers for one or more
email accounts, and reliably delivers into a mbox or Maildir specified on a
per-account basis.  Retrieval of mail using SSL is supported for both
protocols.

%files
%license docs/COPYING
%doc docs/BUGS docs/CHANGELOG docs/THANKS
%doc docs/*.txt docs/*.html docs/*.css
%doc docs/getmailrc-examples
%{_bindir}/%{name}*
%{_mandir}/man1/%{name}*
%{python3_sitelib}/getmailcore/
%{python3_sitelib}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

#handle docs in files section
rm -rf %{buildroot}%{_docdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1781 |21cr|get-skypeforlinux-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname skypeforlinux

Summary:	Download and install Skype
Name:		get-%{oname}
Version:	0.2
Release:	1
Epoch:		1
License:	Proprietary
Group:		Networking/Instant messaging
Url:		http://www.skype.com
Recommends:	gnome-keyring
Requires(pre):	wget
Requires(pre):	squashfs-tools
Provides:	skype = %{EVRD}
ExclusiveArch:	x86_64

%description
This is an installer for Skype.
This package does not contain any program files as the Skype license does
not allow distribution. By installing this package you will download and
install Skype from skype.com.
You must accept the Skype EULA before using it.
Please be patient, this is ~100-150 MB download and may take some time.
Removing this package will uninstall Skype from your system.

%files
%dir %{_datadir}/kservices5
%dir %{_datadir}/kservices5/ServiceMenus

%pre
mkdir -p /opt/microsoft/skype
pushd /opt/microsoft/skype
echo "Download skype snap"
	wget --force-clobber --timeout=30 --tries=3 https://api.snapcraft.io/api/v1/snaps/download/QRDEfjn4WJYnm0FzDKwqqRZZI77awQEV_375.snap
popd
[ -d /opt/microsoft/skype ] || exit 1

%posttrans
echo "Install skype"
pushd /opt/microsoft/skype
	unsquashfs -d ./out QRDEfjn4WJYnm0FzDKwqqRZZI77awQEV_375.snap
	sed -i 's|${SNAP}/meta/gui/skypeforlinux.png|%{oname}|' out/meta/gui/%{oname}*.desktop
	cp -f out/meta/gui/%{oname}*.desktop %{_datadir}/applications
	cp -rf out/usr/share/%{oname} %{_datadir}
	ln -s ../share/%{oname}/%{oname} %{_bindir}/skype
	cp -rf out/usr/share/doc/%{oname} %{_defaultdocdir}
	for i in 16 32 256 512 1024; do
		mkdir -p %{_iconsdir}/hicolor/${i}x${i}/apps/
		cp -f out/usr/share/icons/hicolor/${i}x${i}/apps/%{oname}.png %{_iconsdir}/hicolor/${i}x${i}/apps/
	done
	mkdir -p %{_datadir}/kservices5/ServiceMenus/
	cp -f out/usr/share/kservices5/ServiceMenus/%{oname}.desktop %{_datadir}/kservices5/ServiceMenus/
	mkdir -p %{_datadir}/pixmaps
	cp -f out/usr/share/pixmaps/%{oname}.png %{_datadir}/pixmaps
popd
rm -rf /opt/microsoft/skype
rmdir /opt/microsoft >&/dev/null

%postun
rm -f %{_bindir}/%{oname}
rm -f %{_datadir}/applications/%{oname}*.desktop
rm -rf %{_datadir}/%{oname}
rm -rf %{_defaultdocdir}/%{oname}
for i in 16 32 256 512 1024; do
	rm -f %{_iconsdir}/hicolor/${i}x${i}/apps/%{oname}.png
done
rm -f %{_datadir}/kservices5/ServiceMenus/%{oname}.desktop
rm -f %{_datadir}/pixmaps/%{oname}.png 

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/kservices5/ServiceMenus

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1782 |21cr|gettext-lint-0.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gettext linting tools
Name:		gettext-lint
Version:	0.4
Release:	10
License:	GPL
Group:		Development/Tools
Url:		http://gettext-lint.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		gettext-lint-0.4-check_formats.patch
Patch1:		gettext-lint-0.4-python2.patch
BuildRequires:	pkgconfig(python2)
Requires:	gettext
BuildArch:	noarch

%description
The gettext lint tools are a collection of tools for checking the validity,
consistency and spelling of PO and POT files.
An experimental glossary building tool is also included.

%files
%doc README NEWS AUTHORS
%{_bindir}/POFileChecker
%{_bindir}/POFileClean
%{_bindir}/POFileConsistency
%{_bindir}/POFileEquiv
%{_bindir}/POFileFill
%{_bindir}/POFileGlossary
%{_bindir}/POFileSpell
%{_bindir}/POFileStatus
%{_mandir}/man1/POFileChecker.1*
%{_mandir}/man1/POFileClean.1*
%{_mandir}/man1/POFileConsistency.1*
%{_mandir}/man1/POFileEquiv.1*
%{_mandir}/man1/POFileFill.1*
%{_mandir}/man1/POFileGlossary.1*
%{_mandir}/man1/POFileSpell.1*
%{_mandir}/man1/POFileStatus.1*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
aclocal
autoconf
automake -a -c
export PYTHON=%{__python2}
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1783 |21cr|gexec-0.3.6-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sdevname %mklibname %{name} -d -s

Summary:	Scalable cluster remote execution
Name:		gexec
Version:	0.3.6
Release:	15
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://www.cs.berkeley.edu/~bnc/gexec/
Source0:	%{name}-%{version}.tar.bz2
Source1:	gexecd
Source2:	gexec.README
Source3:	gexec
Patch0:		gexec-Makefile.in.patch
BuildRequires:	authd-devel
BuildRequires:	libe-devel >= 0.2.1
BuildRequires:	pkgconfig(openssl)
Requires:	authd >= 0.2
Requires:	tftp
Requires:	xinetd

%description
GEXEC is a scalable cluster remote execution system which provides 
fast, RSA authenticated remote execution of parallel and distributed 
jobs. It provides transparent forwarding of stdin, stdout, stderr, and 
signals to and from remote processes, provides local environment 
propagation, and is designed to be robust and to scale to systems over 
1000 nodes.

%files
%doc INSTALL ChangeLog AUTHORS README
%config(noreplace) %{_sysconfdir}/xinetd.d/gexecd
%{_bindir}/gexec
%{_bindir}/gexec_wrap
%{_sbindir}/gexecd

%post
CHECK_PORT=`grep -w 2875 /etc/services`
if [ -z "$CHECK_PORT" ]; then
cat >> /etc/services << EOF
# Port needed by gexecd"
gexec	2875/tcp       # Caltech gexec
EOF
fi

if [ -f /var/run/xinetd.pid ]; then
	echo "Restarting xinetd service"
	service xinetd restart
fi

%postun
if [ -f /var/run/xinetd.pid ]; then
	echo "Restarting xinetd service"
	service xinetd restart
fi

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Gexec scalable cluster remote execution devel package
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
gexec development package.

%files -n %{sdevname}
%doc INSTALL AUTHORS ChangeLog README
%{_includedir}/gexec_lib.h
%{_libdir}/libgexec.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .patch

%build
%configure \
	--prefix=%{buildroot}%{_prefix}
#	--enable-ganglia

make

%install
myname=`id -un`
mygroup=`id -gn`
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}

%makeinstall INSTALL_USER=$myname INSTALL_GROUP=$mygroup

mv %{buildroot}%{_bindir}/gexec %{buildroot}%{_bindir}/gexec_wrap
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/gexecd
install -m 644 %{SOURCE2} %{buildroot}%{_defaultdocdir}/%{name}/README
install -m 755 %{SOURCE3} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1784 |21cr|gexif-0.5-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical tool to access EXIF information in JPEG files
Name:		gexif
Version:	0.5
Release:	30
License:	LGPLv2+
Group:		Graphics
Url:		http://sourceforge.net/projects/libexif
Source0:	http://belnet.dl.sourceforge.net/sourceforge/libexif/%{name}-%{version}.tar.bz2
# Bug #23536
Patch0:		gexif-0.5-warning_non_fatal.patch

BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libexif-gtk)
BuildRequires:	pkgconfig(popt)

%description
Most digital cameras produce EXIF files, which are JPEG files with extra tags
that contain information about the image. The EXIF library allows you to parse
an EXIF file and read the data from those tags.

This package contains a graphical frontend for the EXIF library.

%files -f %{name}.lang
%doc AUTHORS ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Make gexif compile with GTK 2.4.x or newer
perl -n -i -e '/^\s*-DGTK_DISABLE_DEPRECATED\b.*$/ || print $_' gexif/Makefile*

%build
%configure
%make

%install
%makeinstall_std

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Gexif
Comment=Access EXIF information from pictures
Comment[ru]=Доступ к EXIF-информации изображений
Exec=%{_bindir}/%{name}
Icon=graphics_section
Terminal=false
Type=Application
Categories=Graphics;GTK;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1785 |21cr|gf2x-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Library for multiplying polynomials over the binary field
Name:		gf2x
Version:	1.3.0
Release:	1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://gforge.inria.fr/projects/gf2x/
Source0:	https://gitlab.inria.fr/gf2x/gf2x/uploads/c46b1047ba841c20d1225ae73ad6e4cd/gf2x-%{version}.tar.gz
BuildRequires:	gmp-devel

%description
gf2x is a library for multiplying polynomials over the binary field.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for multiplying polynomials over the binary field
Group:		System/Libraries

%description -n %{libname}
Library for multiplying polynomials over the binary field.
This package contains the gf2x runtime library.

%files -n %{libname}
%{_libdir}/libgf2x.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Library for multiplying polynomials over the binary field.
This package contains the gf2x development files.

%files -n %{devname}
%{_includedir}/*.h
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/libgf2x.so
%{_libdir}/pkgconfig/gf2x.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
%ifarch %{ix86}
	--disable-sse2 \
%endif
	--disable-pclmul \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1786 |21cr|gforth-0.7.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNU Forth
Name:		gforth
Version:	0.7.3
Release:	3
License:	GPLv3+

Group:		Development/Other
Url:		http://www.jwdt.com/~paysan/gforth.html
Source0:	http://www.complang.tuwien.ac.at/forth/gforth/%{name}-%{version}.tar.gz
Source16:	gnu-forth.16.png
Source32:	gnu-forth.32.png
Source48:	gnu-forth.48.png
Source100:	%{name}.rpmlintrc
Patch1:		gforth-0.7.0-shebang.patch
# s390 build fix from Debian (http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=544827)
Patch2:		gforth-0.7.0-compile-fix.patch
Patch3:		gforth-libtool-build.patch

BuildRequires:	emacs
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(libffi)

%description
Gforth is a fast and portable implementation of the ANS Forth language.

%files
%doc README README.vmgen NEWS NEWS.vmgen AUTHORS BUGS
%{_bindir}/*
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/emacs/site-lisp/gforth.el
%{_datadir}/emacs/site-lisp/gforth.elc
%{_includedir}/%{name}/%{version}/*.h
%{_mandir}/man1/*
%{_infodir}/*
%{_iconsdir}/*
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

iconv -f latin1 -t utf8 AUTHORS > AUTHORS.new
mv -f AUTHORS.new AUTHORS

%build
CFLAGS="${RPM_OPT_FLAGS} `pkg-config libffi --cflags`" %configure
make libdir=%{_libdir}

%install
install -d %{buildroot}/usr/share/emacs/site-lisp

%makeinstall_std

# icon section
install -D %{SOURCE16} %{buildroot}%{_miconsdir}/gnu-forth.png
install -D %{SOURCE32} %{buildroot}%{_iconsdir}/gnu-forth.png
install -D %{SOURCE48} %{buildroot}%{_liconsdir}/gnu-forth.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=GNU Forth
Exec=%{name}
Icon=gnu-forth
Terminal=false
Type=Application
Categories=Development;Building;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1787 |21cr|gftp-2.0.19-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gftp
Summary:	Multithreaded FTP client for X Windows
Version:	2.0.19
Release:	10
Epoch:		1
License:	GPL
Group:		Networking/File transfer
URL:		http://www.gftp.org/
Requires:	gtk+2 
BuildRequires:	gtk+2-devel
BuildRequires:	readline-devel
BuildRequires:	ncurses-devel
BuildRequires:	openssl-devel

Source0:	http://www.gftp.org/%{name}-%{version}.tar.gz
Source1:	%{name}.icons.tar.bz2
Patch0:		%{name}-2.0.19-datetime-fixedsort.patch
Patch1:		%{name}-2.0.18-bookmarks.patch
Patch6:     gftp-2.0.19-fix-desktop-file.patch
patch7:     gftp-2.0.19-fix-crash.patch

%description
gFTP is a multithreaded FTP client for X Window written using Gtk. It features
simultaneous downloads, resuming of interrupted file transfers, file transfer
queues, downloading of entire directories, ftp proxy support, remote directory
caching, passive and non-passive file transfers, drag-n-drop, bookmarks menu,
stop button, and many more features.


%prep
%setup -q -a 1
%patch1 -p1 -b .bookmarks
%patch6 -p0
%patch7 -p0

%build
%configure
%make

%install
%makeinstall_std

# locale files
%find_lang %{name}

%clean

%files -f %{name}.lang
%doc ABOUT-NLS THANKS COPYING ChangeLog README TODO
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1788 |21cr|gftp-2.9.1b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multithreaded FTP client
Name:		gftp
Epoch:		1
Version:	2.9.1b
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://www.gftp.org/
Source0:	https://github.com/masneyb/gftp/releases/download/%{version}/gftp-%{version}.tar.xz
Patch0:		gftp-datetime-fixedsort.patch
Patch1:		gftp-fix-desktop-file.patch
BuildRequires:	gettext-devel
BuildRequires:	gtk+2-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)

%description
gFTP is a multithreaded FTP client written using Gtk. It features
simultaneous downloads, resuming of interrupted file transfers, file transfer
queues, downloading of entire directories, ftp proxy support, remote directory
caching, passive and non-passive file transfers, drag-n-drop, bookmarks menu,
stop button, and many more features.

%files -f %{name}.lang
%license LICENSE
%doc AUTHORS ChangeLog README.md TODO docs/USERS-GUIDE
%{_bindir}/gftp*
%{_datadir}/gftp/
%{_datadir}/applications/gftp.desktop
%{_datadir}/icons/hicolor/*/apps/gftp.{png,svg}
%{_mandir}/man1/gftp.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

#make autoreconf happy
mkdir -p autoconf-m4

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

# handled in files section
rm -rf %{buildroot}%{_docdir}/%{name}/LICENSE

# locale files
%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1789 |21cr|ggobi-2.1.11-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define _disable_ld_no_undefined 1

%global __provides_exclude plugin.so(.*)

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Interactive and dynamic graphics
Name:		ggobi
Version:	2.1.11
Release:	5
License:	Common Public License
Group:		Graphics
Url:		http://www.ggobi.org
Source0:	http://www.ggobi.org/downloads/%{name}-%{version}.tar.bz2
Source1:	ggobi.desktop
Patch0:		ggobi-2.1.9-underlink.patch
Patch1:		ggobi-2.1.9-format.patch
BuildRequires:	desktop-file-utils
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
GGobi is an open source visualization program for exploring high-dimensional
data. It provides highly dynamic and interactive graphics such as tours,
as well as familiar graphics such as the scatterplot, barchart and parallel
coordinates plots. Plots are interactive and linked with brushing and
identification.

GGobi is fully documented in the GGobi book:
"Interactive and Dynamic Graphics for Data Analysis".

%files
%doc ABOUT-NLS AUTHORS ChangeLog COPYING CPLicense.txt INSTALL README
%doc %{_datadir}/doc/ggobi/XML.pdf
%doc %{_datadir}/doc/ggobi/manual.pdf
%{_bindir}/ggobi
%{_datadir}/pixmaps/ggobi.png
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_sysconfdir}/xdg/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 2.1.11

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GGobi development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 2.1.11
Obsoletes:	%{name}-devel < 2.1.11

%description -n %{devname}
GGobi development files.

%files -n %{devname}
%{_includedir}/ggobi
%{_libdir}/*.so
%{_libdir}/pkgconfig/ggobi.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--with-all-plugins \
	--disable-rpath

%install
%makeinstall_std
make ggobirc
mkdir -p %{buildroot}%{_datadir}/pixmaps

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{SOURCE1}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1790 |21cr|ggz-gnome-client-0.0.14.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	libggz_version %{version}
%define	ggz_client_libs_version %{version}

Name:		ggz-gnome-client
Summary:	GGZ Client for Gnome Desktop
Version:	0.0.14.1
Release:	11
License:	GPLv2+
Group:		Games/Other
Url:		http://ggzgamingzone.org/
Source0:	http://download.sf.net/ggz/%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	ggz-client-libs-devel = %{ggz_client_libs_version}
BuildRequires:	libggz-devel = %{libggz_version}
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(libgnome-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
Requires:	libggz = %{libggz_version}
Requires:	ggz-client-libs = %{ggz_client_libs_version}
Requires:	ggz-game-modules = %{version}

%description
The official GGZ Gaming Zone client for Gnome Desktop.

%files
%doc AUTHORS COPYING ChangeLog NEWS README README.GGZ
%{_sysconfdir}/gconf/schemas/ggz-gnome.schemas
%{_gamesbindir}/ggz-gnome
%{_gamesbindir}/motd_editor
%{_datadir}/applications/*
%{_datadir}/ggz/ggz-gnome/*
%{_datadir}/locale/*
%{_mandir}/man?/*


#-----------------------------------------------------------------------------

%prep
%setup -q


%build
export LDFLAGS="-lX11"
%configure \
	--bindir=%{_gamesbindir} \
	--datadir="\${prefix}/share" \
	--with-libggz-libraries=%{_libdir} \
	--with-ggzcore-libraries=%{_libdir} \
	--with-ggzmod-libraries=%{_libdir}

%make


%install
%makeinstall_std

  
%preun
%preun_uninstall_gconf_schemas ggz-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1791 |21cr|ggz-gtk-client-0.0.14.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname -d %{name}

%define libggz_version %{version}

%define ggz_client_libs_version %{version}

Name:		ggz-gtk-client
Summary:	GGZ Client with GTK+ user interface
Version:	0.0.14.1
Release:	17
License:	GPL
Group:		Games/Other
URL:		http://ggzgamingzone.org/

# http://download.sf.net/ggz/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ggz-gtk-client-0.0.14.1-linkage_fix.diff
Patch1:		ggz-gtk-client-0.0.14.1-l10n.patch

BuildRequires:	desktop-file-utils
BuildRequires:	libggz-devel = %{libggz_version}
BuildRequires:	ggz-client-libs-devel = %{ggz_client_libs_version}
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xft)
Requires:	ggz-client-libs = %{ggz_client_libs_version}
Recommends:	ggz-game-modules = %{version}

%description
The official GGZ Gaming Zone client with GTK+ user interface.

%package -n	%{libname}
Summary:	GGZ Library client with GTK+ user interface
Group:		Games/Other

%description -n	%{libname}
The official GGZ Gaming Zone client with GTK+ user interface.

%package -n	%{develname}
Summary:	Development files for GGZ Gaming Zone client with GTK+ user interface
Group:		Development/Other
Requires:	%{libname} = %{version}
Provides: 	%{name}-devel = %{version}

%description -n	%{develname}
The GGZ client libraries are necessary for running and/or developing
GGZ Gaming Zone clients and games.

This package contains headers and other development files used for
building GGZ Gaming Zone GTK2+ client.

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
autoreconf -fis
%configure \
	--disable-static \
	--bindir=%{_gamesbindir} \
	--datadir="\${prefix}/share" \
	--with-libggz-libraries=%{_libdir} \
	--with-ggzcore-libraries=%{_libdir} \
	--with-ggzmod-libraries=%{_libdir} \

%make

%install
%makeinstall_std


desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-key="Encoding" \
  --add-category="GTK;Game" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang ggz-gtk

%files -f ggz-gtk.lang
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO README.GGZ QuickStart.GGZ
%{_gamesbindir}/ggz-gtk
%{_datadir}/applications/*
%{_datadir}/ggz/ggz-gtk-client/*
%{_datadir}/ggz/help/*
%{_mandir}/man?/*

%files -n %{libname}
%{_libdir}/libggz-gtk.so.%{major}*

%files -n %{develname}
%doc COPYING ChangeLog
%{_includedir}/*
%{_libdir}/lib*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1792 |21cr|ggz-sdl-games-0.0.14.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libggz_version %{version}
%define ggz_client_libs_version %{version}

# list of game description files
%define games_list ttt3d geekgame

Name:		ggz-sdl-games
Summary:	GGZ Games in SDL user interface
Version:	0.0.14.1
Release:	10
License:	GPLv2+
Group:		Games/Other
Url:		http://www.ggzgamingzone.org/
Source0:	http://prdownload.sourceforge.net/ggz/%{name}-%{version}.tar.bz2
BuildRequires:	libggz-devel = %{libggz_version}
BuildRequires:	ggz-client-libs-devel = %{ggz_client_libs_version}
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
Requires:	libggz = %{libggz_version}
Requires:	ggz-client-libs = %{ggz_client_libs_version}
Requires:	libggz = %{libggz_version}
Provides:	ggz-game-modules = %{version}

%description
The complete set of GGZ Gaming Zone games in SDL user interface.
Includes all of the following:

TicTacToe 3D:   OpenGL client compatible to other TicTacToe clients
The Geek Game:  Calculate numbers in all directions and wrap around edges

%files
%doc AUTHORS COPYING ChangeLog NEWS README README.GGZ QuickStart.GGZ
%{_libdir}/ggz/*
%{_datadir}/ggz/geekgame
%{_datadir}/ggz/ggz-config/*
%{_datadir}/ggz/ttt3d

%post
# Run ggz-config vs. all installed games
if [ -f %{_sysconfdir}/ggz.modules -a -x %{_bindir}/ggz-config ]; then
  for i in %{games_list}; do
    ggz-config --install --modfile=%{_datadir}/ggz/ggz-config/sdl-$i.dsc --force
  done
fi

%preun
# Run ggz-config to uninstall all the games
if [ $1 = 0 ]; then
  if [ -f %{_sysconfdir}/ggz.modules -a -x %{_bindir}/ggz-config ]; then
    for i in %{games_list}; do
      ggz-config --remove --modfile=%{_datadir}/ggz/ggz-config/sdl-$i.dsc
    done
  fi
fi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export LDFLAGS="-lggz -lX11"
%configure \
	--with-libggz-libraries=%{_libdir} \
	--with-ggzmod-libraries=%{_libdir} \
	--with-ggzcore-libraries=%{_libdir}
%make

%install
# Create a ggz.modules file so we can make install easily
mkdir -p %{buildroot}%{_sysconfdir}
echo "[Games]" > %{buildroot}%{_sysconfdir}/ggz.modules

%makeinstall_std

rm %{buildroot}%{_sysconfdir}/ggz.modules
rmdir %{buildroot}%{_sysconfdir}

# Get a copy of all of our .dsc files
mkdir -p %{buildroot}%{_datadir}/ggz/ggz-config
for i in %{games_list}; do
  install -m 0644 $i/module.dsc %{buildroot}%{_datadir}/ggz/ggz-config/sdl-$i.dsc
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1793 |21cr|ggz-txt-client-0.0.14.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libggz_version %{version}
%define ggz_client_libs_version %{version}

%define games_list tttxt

Name:		ggz-txt-client
Version:	0.0.14.1
Release:	10
Summary:	GGZ Text Mode Client
License:	GPL
Group:		Games/Other
URL:		http://ggzgamingzone.org/
Source0:	http://ftp.ggzgamingzone.org/pub/ggz/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	libggz-devel = %{libggz_version}
BuildRequires:	ggz-client-libs-devel = %{ggz_client_libs_version}
BuildRequires:	readline-devel
BuildRequires:	ncurses-devel
Requires:	libggz = %{libggz_version}
Requires:	ggz-client-libs = %{ggz_client_libs_version}

%description
The official GGZ Gaming Zone client for text mode, suitable for
environment where no graphical desktop is available.

It also includes the following text mode GGZ game(s):
    TicTacToe

%prep
%setup -q

%build
%configure  \
    --bindir=%{_gamesbindir} \
    --with-libggz-libraries=%{_libdir} \
    --with-ggzmod-libraries=%{_libdir} \
    --with-ggzcore-libraries=%{_libdir}
%make

%install
%makeinstall_std

rm %{buildroot}%{_sysconfdir}/ggz.modules
rmdir %{buildroot}%{_sysconfdir}

# Get a copy of all of our .dsc files
mkdir -p %{buildroot}%{_datadir}/ggz/ggz-config
for i in %games_list; do
  install -m 0644 $i/module.dsc %{buildroot}%{_datadir}/ggz/ggz-config/txt-$i.dsc
done

cat > README.mdv <<EOF
Notes:

Currently GGZ text client document is almost non-existant. You have to
look at the source to understand how to use it. Here are a few simple
instructions (though I still can't launch any playable game yet):

1. In command line, type

	ggz-txt ggz://username:password@live.ggzgamingzone.org

   You should substitute username and password appropriately, as what
   you would do when launching URI that requires username and password.
   No trailing slash!

2. Inside client, type '/help' for help message. Good luck :-)
EOF

%find_lang ggz-txt

%clean

%post
# Run ggz-config vs. all installed games
if [ -f %{_sysconfdir}/ggz.modules ]; then
  for i in %games_list; do
    ggz-config --install --modfile=%{_datadir}/ggz/ggz-config/txt-$i.dsc --force
  done
fi

%preun
# Run ggz-config to uninstall all the games
if [ "$1" = "0" ]; then
  if [ -f %{_sysconfdir}/ggz.modules ]; then
    for i in %games_list; do
      ggz-config --remove --modfile=%{_datadir}/ggz/ggz-config/txt-$i.dsc
    done
  fi
fi

%files -f ggz-txt.lang
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README README.GGZ README.mdv 
%doc TODO QuickStart.GGZ
%{_gamesbindir}/ggz-txt
%{_mandir}/man?/*
%{_libdir}/ggz/*
%{_datadir}/ggz/ggz-config/*.dsc
%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1794 |21cr|ghbackup-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		ghbackup
Version:	0.4
Release:	2
Summary:	Backup of GitHub repositories
Group:		Archiving/Backup
License:	GPLv3
URL:		https://github.com/AKotov-dev/GHBackup
Source0:	https://github.com/AKotov-dev/GHBackup/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	ghbackup.png
Source3:	ghbackup.desktop
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	curl
Requires:	git
Requires:	tar
Requires:	gzip
Requires:	gtk2

%description
Backup of GitHub repositories

%files
%doc ../README.md
%license ../LICENSE
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
#----------------------------------------------------------------------
%prep
%setup -n GHBackup-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp %{name} %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1795 |21cr|ghc-8.10.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# ghc does not output dwarf format so debuginfo is not useful
%define debug_package %{nil}
%bcond_with bootstrap


Summary:	Glasgow Haskell Compilation system
Name:		ghc
Version:	8.10.7
Release:	4
License:	BSD
Group:		Development/Other
Url:		http://haskell.org/ghc/
Source0:	https://downloads.haskell.org/~ghc/%{version}/ghc-%{version}-src.tar.xz
Source10:	https://downloads.haskell.org/~ghc/%{version}/ghc-%{version}-aarch64-deb10-linux.tar.xz
Source11:	https://downloads.haskell.org/~ghc/%{version}/ghc-%{version}-x86_64-deb10-linux.tar.xz
Source12:	https://downloads.haskell.org/~ghc/%{version}/ghc-%{version}-i386-deb9-linux.tar.xz
Source3:	ghc-doc-index.cron
Source4:	ghc-doc-index
Source5:	libraries-versions.sh
Source100:	ghc.rpmlintrc
# absolute haddock path (was for html/libraries -> libraries)
#Patch1:  ghc-gen_contents_index-haddock-path.patch
# (fedora) add libffi include dir to ghc wrapper for archs using gcc/llc
Patch2:		ghc-wrapper-libffi-include.patch
# Debian patch
Patch23:	ghc-8.4.4-Cabal-install-PATH-warning.patch
Patch24:	buildpath-abi-stability.patch
%if !%{with bootstrap}
BuildRequires:	ghc-rpm-macros
BuildRequires:	ghc-devel
%endif
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
BuildRequires:	perl
BuildRequires:	pkgconfig(numa)
BuildRequires:	python3
BuildRequires:	%{_lib}tinfo6
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	readline-devel
BuildRequires:	gmp-devel
BuildRequires:	llvm-devel
BuildRequires:	pkgconfig(libffi)

# ghci does not start if gmp-devel is not installed
Requires:	gmp-devel

# ghc base providers
Provides:	ghc-ghci = %{version}
Provides:	haddock = %{EVRD}
#for compat with Fedora
Provides:	ghc-compiler = %{version}

# use "./libraries-versions.sh" to check versions
# change also Provides in prof pkg
Provides:	ghc-array = 0.5.4.0
Provides:	ghc-base = 4.14.3.0
Provides:	ghc-binary = 0.8.8.0
Provides:	ghc-bytestring = 0.10.12.0
Provides:	ghc-containers = 0.6.5.1
Provides:	ghc-deepseq = 1.4.4.0
Provides:	ghc-directory = 1.3.6.0
Provides:	ghc-exceptions = 0.10.4
Provides:	ghc-filepath = 1.4.2.1
Provides:	ghc-ghc-boot = 8.10.7
Provides:	ghc-ghc-boot-th = 8.10.7
Provides:	ghc-ghc-compact = 0.1.0.0
Provides:	ghc-ghc-heap = 8.10.7
Provides:	ghc-ghc-prim = 0.6.1
Provides:	ghc-haskeline = 0.8.2
Provides:	ghc-hpc = 0.6.1.0
Provides:	ghc-integer-gmp = 1.0.3.0
Provides:	ghc-libiserv = 8.10.7
Provides:	ghc-mtl = 2.2.2
Provides:	ghc-parsec = 3.1.14.0
Provides:	ghc-pretty = 1.1.3.6
Provides:	ghc-process = 1.6.13.2
Provides:	ghc-stm = 2.5.0.1
Provides:	ghc-template-haskell = 2.16.0.0
Provides:	ghc-terminfo = 0.4.1.4
Provides:	ghc-text = 1.2.4.1
Provides:	ghc-time = 1.9.3
Provides:	ghc-transformers = 0.5.6.2
Provides:	ghc-unix = 2.7.2.2
Provides:	ghc-xhtml = 3000.2.2.1
Provides:	haskell-cabal = 3.2.1.0
Provides:	ghc-cabal = 3.2.1.0

%description
GHC is a state-of-the-art programming suite for Haskell, a purely
functional programming language.  It includes an optimizing compiler
generating good code for a variety of platforms, together with an
interactive system for convenient, quick development.  The
distribution includes space and time profiling facilities, a large
collection of libraries, and support for various language
extensions, including concurrency, exceptions, and foreign language
interfaces (C, C++, etc).


%files -f rpm-noprof-lib-files
%{_bindir}/*
%dir %{_libdir}/ghc-%{version}
# ugly but ...
%dir %{_libdir}/ghc-%{version}/Cabal-*
%dir %{_libdir}/ghc-%{version}/array-*
%dir %{_libdir}/ghc-%{version}/base-*
%dir %{_libdir}/ghc-%{version}/bin
%dir %{_libdir}/ghc-%{version}/binary-*
%dir %{_libdir}/ghc-%{version}/bytestring-*
%dir %{_libdir}/ghc-%{version}/containers-*
%dir %{_libdir}/ghc-%{version}/deepseq-*
%dir %{_libdir}/ghc-%{version}/directory-*
%dir %{_libdir}/ghc-%{version}/filepath-*
%dir %{_libdir}/ghc-%{version}/ghc-%{version}
%dir %{_libdir}/ghc-%{version}/ghc-boot-%{version}
%dir %{_libdir}/ghc-%{version}/ghc-boot-th-%{version}
%dir %{_libdir}/ghc-%{version}/ghc-prim-*
%dir %{_libdir}/ghc-%{version}/ghci-%{version}
%dir %{_libdir}/ghc-%{version}/haskeline-*
%dir %{_libdir}/ghc-%{version}/hpc-*
%dir %{_libdir}/ghc-%{version}/html
%dir %{_libdir}/ghc-%{version}/html/Classic.theme
%dir %{_libdir}/ghc-%{version}/integer-gmp-*
%dir %{_libdir}/ghc-%{version}/latex
%dir %{_libdir}/ghc-%{version}/mtl-*
%dir %{_libdir}/ghc-%{version}/package.conf.d
%dir %{_libdir}/ghc-%{version}/pretty-*
%dir %{_libdir}/ghc-%{version}/process-*
%dir %{_libdir}/ghc-%{version}/rts
%dir %{_libdir}/ghc-%{version}/stm-*
%dir %{_libdir}/ghc-%{version}/template-haskell-*
%dir %{_libdir}/ghc-%{version}/terminfo-*
%dir %{_libdir}/ghc-%{version}/text-*
%dir %{_libdir}/ghc-%{version}/time-*
%dir %{_libdir}/ghc-%{version}/transformers-*
%dir %{_libdir}/ghc-%{version}/unix-*
%dir %{_libdir}/ghc-%{version}/xhtml-*
#
%exclude %{_docdir}/ghc-%{version}/*
%{_datadir}/bash-completion/completions/ghc
%{_sysconfdir}/cron.hourly/ghc-doc-index
%{_datadir}/haskell-deps

%post
/usr/bin/ghc-pkg recache

%preun
# update pkg cache after install libs
%transfiletriggerin -- %{_libdir}/ghc-%{version}/package.conf.d
/usr/bin/ghc-pkg recache || :

%transfiletriggerpostun -- %{_libdir}/ghc-%{version}/package.conf.d
/usr/bin/ghc-pkg recache || :
#-------------------------------------------------------------------------
%package doc
Summary:	Documentation for the Glasgow Haskell Compiler
Group:		Documentation
Requires:	%{name} = %{version}
Provides:	ghc-filesystem = %{EVRD}

%description doc
Documentation for the Glasgow Haskell Compiler

%files doc
%doc %{_docdir}/ghc-%{version}/
#-------------------------------------------------------------------------
%package -n ghc-prof
Summary:	Profiling libraries for GHC
Group:		Development/Other
Requires:	%{name} = %{version}
# ghc base providers
Provides:	ghc-ghci-prof = %{version}

Provides:	ghc-array-prof = 0.5.4.0
Provides:	ghc-base-prof = 4.14.3.0
Provides:	ghc-binary-prof = 0.8.8.0
Provides:	ghc-bytestring-prof = 0.10.12.0
Provides:	ghc-containers-prof = 0.6.5.1
Provides:	ghc-deepseq-prof = 1.4.4.0
Provides:	ghc-directory-prof = 1.3.6.0
Provides:	ghc-exceptions-prof = 0.10.4
Provides:	ghc-filepath-prof = 1.4.2.1
Provides:	ghc-ghc-boot-prof = 8.10.7
Provides:	ghc-ghc-boot-th-prof = 8.10.7
Provides:	ghc-ghc-compact-prof = 0.1.0.0
Provides:	ghc-ghc-heap-prof = 8.10.7
Provides:	ghc-ghc-prim-prof = 0.6.1
Provides:	ghc-haskeline-prof = 0.8.2
Provides:	ghc-hpc-prof = 0.6.1.0
Provides:	ghc-integer-gmp-prof = 1.0.3.0
Provides:	ghc-libiserv-prof = 8.10.7
Provides:	ghc-mtl-prof = 2.2.2
Provides:	ghc-parsec-prof = 3.1.14.0
Provides:	ghc-pretty-prof = 1.1.3.6
Provides:	ghc-process-prof = 1.6.13.2
Provides:	ghc-stm-prof = 2.5.0.1
Provides:	ghc-template-haskell-prof = 2.16.0.0
Provides:	ghc-terminfo-prof = 0.4.1.4
Provides:	ghc-text-prof = 1.2.4.1
Provides:	ghc-time-prof = 1.9.3
Provides:	ghc-transformers-prof = 0.5.6.2
Provides:	ghc-unix-prof = 2.7.2.2
Provides:	ghc-xhtml-prof = 3000.2.2.1
Provides:	haskell-cabal-prof = 3.2.1.0
Provides:	ghc-cabal-prof = 3.2.1.0
Provides:	ghc-cabal-install-prof = 3.2.1.0
Provides:	ghc-cabal-testsuite-prof = 3.2.1.0

%description -n ghc-prof
Profiling libraries for Glorious Glasgow Haskell Compilation System
(GHC).  They should be installed when GHC's profiling subsystem is
needed.

%files prof -f rpm-prof-lib-files

#----------------------------------------------------------------------------

%package devel
Summary:	GHC development libraries
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(libffi)
Requires:	pkgconfig(numa)
Requires:	llvm

%description devel
This is a meta-package for all the development library packages in GHC
except the ghc library, which is installed by the toplevel ghc metapackage.

%files devel -f rpm-devel-files

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%if %{with bootstrap}
# ARM64
%ifarch aarch64
tar -xf %{SOURCE10}
%endif
# x86_64
%ifarch %{x86_64}
tar -xf %{SOURCE11}
%endif
# x86_32
%ifarch %{ix86}
tar -xf %{SOURCE12}
%endif
pushd ghc-8.10.7
./configure  --prefix=/tmp/
make install
popd
%endif

rm -rf libffi-tarballs

%build
%if %{with bootstrap}
export PATH=$PATH:/tmp/bin/
%endif
./configure \
   --prefix=%{_prefix} \
   --exec-prefix=%{_exec_prefix} \
   --bindir=%{_bindir} \
   --sbindir=%{_sbindir} \
   --sysconfdir=%{_sysconfdir} \
   --datadir=%{_datadir} \
   --includedir=%{_includedir} \
   --libdir=%{_libdir} \
   --libexecdir=%{_libexecdir} \
   --localstatedir=%{_localstatedir} \
   --sharedstatedir=%{_sharedstatedir} \
   --mandir=%{_mandir} \
   --infodir=%{_infodir} --with-system-libffi

# make ffi.h findable
ln -s `pkg-config --variable=includedir libffi`/ffi.h includes/ffi.h
ln -s `pkg-config --variable=includedir libffi`/ffitarget.h includes/ffitarget.h

# Full build with max optimisation and everything enabled
cat > mk/build.mk << EOF
1iBuildFlavour = perf
BUILD_DOCBOOK_PS = NO
BUILD_DOCBOOK_PDF = NO
EOF

export LANG=en_US.utf8
%make_build


%install
export LANG=en_US.utf8
%make_install

# generate the file list for lib/ _excluding_ all files needed for profiling
# only
#
# * generating file lists in a BUILD_ROOT spec is a bit tricky: the file list
#   has to contain complete paths, _but_ without the BUILD_ROOT, we also do
#   _not_ want have directory names in the list; furthermore, we have to make
#   sure that any leading / is removed from % {_prefix}/lib, as find has to
#   interpret the argument as a relative path; however, we have to include the
#   leading / again in the final file list (otherwise, rpm complains)
# * isn't there an easier way to do all this?
#
dir=`pwd`
cd %{buildroot}
libdir=`echo %{_libdir} | sed 's|^/||'`
find $libdir ! -type d ! -name '*.p_hi' ! -name '*_p.a' ! -name 'libffi.so*' ! -name '*.a' ! -name '*.h' -print | sed 's|^|/|' > $dir/rpm-noprof-lib-files
find $libdir ! -type d -name '*.p_hi' -print | sed 's|^|/|' > $dir/rpm-prof-lib-files
find $libdir ! -type d \( -name '*.a' -or -name '*.h' \) -print | sed 's|^|/|' > $dir/rpm-devel-files
cd $dir


install -Dm644 utils/completion/ghc.bash \
    %{buildroot}%{_datadir}/bash-completion/completions/ghc

mkdir -p %{buildroot}%{_localstatedir}/lib/ghc
install -p --mode=0755 %{SOURCE4} %{buildroot}%{_bindir}/ghc-doc-index

mkdir -p %{buildroot}%{_sysconfdir}/cron.hourly
install -p --mode=0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/cron.hourly/ghc-doc-index
cd libraries
sh gen_contents_index --intree --verbose
cd ..

pushd %{buildroot}%{_bindir}
chmod 0755 *
popd

pushd %{buildroot}%{_libdir}/ghc-%{version}/bin
chmod 0755 *
popd

install -d -m755 %{buildroot}%{_datadir}/haskell-deps/{register,unregister}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1796 |21cr|ghc-aeson-2.1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name aeson
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        2.1.1.0
Release:        2
Summary:        Fast JSON parsing and encoding
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-attoparsec-prof
BuildRequires:  ghc-base-compat-batteries-prof
BuildRequires:  ghc-data-fix-prof
BuildRequires:  ghc-dlist-prof
# ghc-generically not needed if ghc newer 8.10
BuildRequires:  ghc-generically-prof
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-primitive-prof
BuildRequires:  ghc-scientific-prof
BuildRequires:  ghc-strict-prof
BuildRequires:  ghc-semialign-prof
BuildRequires:  ghc-tagged-prof
BuildRequires:  ghc-th-abstraction-prof
BuildRequires:  ghc-these-prof
BuildRequires:  ghc-time-compat-prof
BuildRequires:  ghc-text-short-prof
BuildRequires:  ghc-unordered-containers-prof
BuildRequires:  ghc-QuickCheck-prof
BuildRequires:  ghc-uuid-types-prof
BuildRequires:  ghc-vector-prof
BuildRequires:  ghc-witherable-prof

%description
A JSON parsing and encoding library optimized for ease of use and
high performance.  Aeson was the father of Jason in Greek mythology.

%files -f %{name}.files
%license LICENSE

#-------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{EVRD}
Provides:       %{name}-static%{?_isa} = %{EVRD}
%if %{defined ghc_version}
Requires:       ghc-compiler = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{EVRD}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc README.markdown changelog.md

#-------------------------------------------------------------------

# build haddock fail
%if %{without haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#-------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{EVRD}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#-------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build_without_haddock


%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1797 |21cr|ghc-assoc-1.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name assoc
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        1.0.2
Release:        3
Summary:        Swap and assoc: Symmetric and Semigroupy Bifunctors
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-bifunctors-prof
BuildRequires:  ghc-tagged-prof
BuildRequires:  ghc-rpm-macros

%description
Provides generalizations of 'swap :: (a,b) -> (b,a)' and
'assoc :: ((a,b),c) -> (a,(b,c))' to Bifunctor's supporting similar operations
(e.g. Either, These).

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc-compiler = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc CHANGELOG.md

#----------------------------------------------------------------------
%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch
Requires:       ghc-filesystem

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------
%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1798 |21cr|ghc-async-2.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name async
%global pkgver %{pkg_name}-%{version}

Summary:	Provides a higher-level interface for Haskell
Name:		ghc-%{pkg_name}
Version:	2.2.4
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		https://hackage.haskell.org/package/%{pkg_name}
Source0:	https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Patch0:		async-requirements.patch
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-hashable-prof
BuildRequires:	ghc-rpm-macros

%description
This package provides a higher-level interface over threads, 
in which an Async a is a concurrent thread that 
will eventually deliver a value of type a. 
The package provides ways to create Async computations, 
wait for their results, and cancel them.
Using Async is safer than using threads in two ways:
 *When waiting for a thread to return a result, 
    if the thread dies with an exception then the caller 
    must either re-throw the exception (wait) 
    or handle it (waitCatch); the exception cannot be ignored.
 *The API makes it possible to build a tree of threads 
    that are automatically killed when their parent dies (see withAsync).

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1799 |21cr|ghc-attoparsec-0.14.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name attoparsec
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.14.4
Release:        1
Summary:        Fast combinator parsing for bytestrings and text
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  dos2unix
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-scientific-prof
BuildRequires:  ghc-rpm-macros

%description
A fast parser combinator library, aimed particularly at dealing efficiently
with network protocols and complicated text/binary file formats.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc-compiler = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc README.markdown changelog.md examples

#----------------------------------------------------------------------
# haddock build fail
%if %{without haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch
Requires:       ghc-filesystem

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------
%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build_without_haddock


%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1800 |21cr|ghc-base16-bytestring-1.0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name base16-bytestring
%global pkgver %{pkg_name}-%{version}

Summary:	Fast base16 (hex) for Haskell
Name:		ghc-%{pkg_name}
Version:	1.0.2.0
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros

%description
Fast base16 (hex) encoding and decoding for ByteStrings.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1801 |21cr|ghc-base64-bytestring-1.2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name base64-bytestring
%global pkgver %{pkg_name}-%{version}

Summary:	Base64 encoding and decoding for Haskell
Name:		ghc-%{pkg_name}
Version:	1.2.1.0
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
Fast base64 encoding and decoding for ByteStrings.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1802 |21cr|ghc-base-compat-0.12.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name base-compat
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.12.2
Release:        2
Summary:        A compatibility layer for base
Group:          Development/Haskell
License:        MIT
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  dos2unix
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
Provides functions available in later versions of 'base' to a wider range of
compilers, without requiring you to use CPP pragmas in your code. See the
README for what is covered. Also see the changelog for recent changes.

Note that 'base-compat' does not add any orphan instances. There is a separate
package 'base-orphans' for that.


%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1803 |21cr|ghc-base-compat-batteries-0.12.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name base-compat-batteries
%global pkgver %{pkg_name}-%{version}

%bcond_with tests

Name:           ghc-%{pkg_name}
Version:        0.12.2
Release:        1
Summary:        Base-compat with extra batteries
Group:          Development/Haskell
License:        MIT
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-OneTuple-prof
BuildRequires:  ghc-contravariant-prof
BuildRequires:  ghc-base-compat-prof
BuildRequires:  ghc-rpm-macros
%if %{with tests}
BuildRequires:  ghc-QuickCheck-devel
BuildRequires:  ghc-hspec-devel
BuildRequires:  ghc-hspec-discover-devel
%endif

%description
Provides functions available in later versions of 'base' to a wider range of
compilers, without requiring you to use CPP pragmas in your code.
the suffix '.Repl.Batteries', which are distinct from anything in

depends on compatibility packages (such as 'semigroups') to offer a wider
support window than 'base-compat', which has no dependencies. Most of the

See
'<https://github.com/haskell-compat/base-compat/blob/master/base-compat/README.markdown#dependencies
here>' for a more comprehensive list of differences between 'base-compat' and
'base-compat-batteries'.


%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}


%build
%ghc_lib_build


%install
%ghc_lib_install


%check
%if %{with tests}
%cabal_test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1804 |21cr|ghc-base-orphans-0.8.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name base-orphans
%global pkgver %{pkg_name}-%{version}

Summary:	Defines orphan instances for Haskell
Name:		ghc-%{pkg_name}
Version:	0.8.7
Release:	1
License:	MIT
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
Defines orphan instances that mimic instances 
available in later versions of base to a wider 
(older) range of compilers. base-orphans does 
not export anything except the orphan instances 
themselves and complements base-compat. 
See the README for what instances are covered: 
https://github.com/haskell-compat/base-orphans#readme. 
See also the what is not covered section.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1805 |21cr|ghc-bifunctors-5.5.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name bifunctors
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        5.5.14
Release:        2
Summary:        Bifunctors
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  dos2unix
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-base-orphans-prof
BuildRequires:  ghc-comonad-prof
BuildRequires:  ghc-tagged-prof
BuildRequires:  ghc-th-abstraction-prof

%description
Haskell 98 bifunctors, bifoldables and bitraversables.



%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1806 |21cr|ghc-comonad-5.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name comonad
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        5.0.8
Release:        1
Summary:        Categorical dual of monads
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  dos2unix
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-tagged-prof
BuildRequires:  ghc-indexed-traversable-prof
BuildRequires:  ghc-transformers-compat-prof
BuildRequires:  ghc-distributive-prof
BuildRequires:  ghc-rpm-macros

%description
This package provides comonads, the categorical dual of monads.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc-compiler = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc CHANGELOG.markdown README.markdown examples

#----------------------------------------------------------------------
%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch
Requires:       ghc-filesystem

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------
%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1807 |21cr|ghc-contravariant-1.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name contravariant
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        1.5.5
Release:        1
Summary:        Contravariant functors
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-StateVar-prof

%description
Contravariant functors.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1808 |21cr|ghc-cryptohash-sha256-0.11.102.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name cryptohash-sha256
%global pkgver %{pkg_name}-%{version}

Summary:	Pure API to the SHA-256 hash algorithm for Haskell
Name:		ghc-%{pkg_name}
Version:	0.11.102.1
Release:	3
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros

%description
A practical incremental and one-pass, 
pure API to the SHA-256 hash algorithm 
(including HMAC support) with performance 
close to the fastest implementations 
available in other languages.
The implementation is made in C with 
a haskell FFI wrapper that hides the C implementation.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1809 |21cr|ghc-data-fix-0.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name data-fix
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.3.2
Release:        1
Summary:        Fixpoint data types
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-hashable-prof

%description
Fixpoint types and recursion schemes. If you define your AST as fixpoint type,
you get fold and unfold operations for free.

Thanks for contribution to: Matej Kollar, Herbert Valerio Riedel.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build


%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1810 |21cr|ghc-Diff-0.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name Diff
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.4.1
Release:        2
Summary:        O(ND) diff algorithm in Haskell
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
Implementation of the standard diff algorithm, and utilities for pretty
printing.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1811 |21cr|ghc-distributive-0.6.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name distributive
%global pkgver %{pkg_name}-%{version}

%bcond_with tests

Name:           ghc-%{pkg_name}
Version:        0.6.2.1
Release:        1
Summary:        Distributive functors -- Dual to Traversable
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  dos2unix
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-base-orphans-prof
BuildRequires:  ghc-tagged-prof
%if %{with tests}
BuildRequires:  ghc-generic-deriving-devel
BuildRequires:  ghc-hspec-devel
BuildRequires:  ghc-hspec-discover-devel
%endif
# End cabal-rpm deps

%description
Distributive functors -- Dual to 'Traversable'.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc-compiler = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc CHANGELOG.markdown README.markdown

#----------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch
Requires:       ghc-filesystem

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#----------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
dos2unix -k -n %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install

%check
%if %{with tests}
%cabal_test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1812 |21cr|ghc-dlist-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name dlist
%global pkgver %{pkg_name}-%{version}

Summary:	Haskell differences lists
Name:		ghc-%{pkg_name}
Version:	1.0
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Source1:	ghc-dlist.rpmlintrc
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros
BuildRequires:	ghc-QuickCheck-prof

%description
Differences lists: a list-like type supporting O(1) append.
This is particularly useful for efficient logging and pretty
printing, (e.g. with the Writer monad), where list append
quickly becomes too expensive.


%files -f %{name}.files
%license license.md

#------------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc readme.md changelog.md

#------------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license license.md

%endif

#------------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}

%build
%ghc_lib_build


%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1813 |21cr|ghc-echo-0.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name echo
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.1.4
Release:        1
Summary:        A cross-platform, cross-console way to handle echoing terminal input
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz

BuildRequires:  ghc-devel
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-prof
BuildRequires:  ghc-process-prof

%description
The 'base' library exposes the 'hGetEcho' and 'hSetEcho' functions for querying
and setting echo status, but unfortunately, neither function works with MinTTY
consoles on Windows. This is a serious issue, since 'hGetEcho' and 'hSetEcho'
are often used to disable input echoing when a program prompts for a password,
so many programs will reveal your password as you type it on MinTTY!

This library provides an alternative interface which works with both MinTTY and
other consoles. An example is included which demonstrates how one might prompt
for a password using this library. To build it, make sure to configure with the
'-fexample' flag.


%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}


%build
%ghc_lib_build


%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1814 |21cr|ghc-ed25519-0.0.5.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name ed25519
%global pkgver %{pkg_name}-%{version}

Summary:	Ed25519 public-key signature system for Haskell
Name:		ghc-%{pkg_name}
Version:	0.0.5.0
Release:	4
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Source1:	https://hackage.haskell.org/package/ed25519-0.0.5.0/ed25519.cabal
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros

%description
This package provides a simple, fast, 
self-contained copy of the Ed25519 public-key 
signature system with a clean interface. 
It also includes support for detached signatures, 
and thorough documentation on the 
design and implementation, including usage guidelines.

%files -f %{name}.files
%license LICENSE*

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE*

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}
cp -f %{SOURCE1} ./

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1815 |21cr|ghc-edit-distance-0.2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name edit-distance
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.2.2.1
Release:        1
Summary:        Levenshtein and restricted Damerau-Levenshtein edit distances
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-random-prof
BuildRequires:  ghc-rpm-macros

%description
Optimized edit distances for fuzzy matching, including Levenshtein and
restricted Damerau-Levenshtein algorithms.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1816 |21cr|ghc-fgl-5.8.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name fgl
%global pkgver %{pkg_name}-%{version}

# needs older QuickCheck
%bcond_with tests

Name:           ghc-%{pkg_name}
Version:        5.8.0.0
Release:        1
Summary:        Martin Erwig's Functional Graph Library
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
%if %{with tests}
BuildRequires:  ghc-QuickCheck-devel
BuildRequires:  ghc-hspec-devel
%endif

%description
An inductive representation of manipulating graph data structures.

Original website can be found at
<http://web.engr.oregonstate.edu/~erwig/fgl/haskell>.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}


%build
%ghc_lib_build


%install
%ghc_lib_install


%check
%if %{with tests}
%cabal_test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1817 |21cr|ghc-generically-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Delete from repo after update ghc to 8.10 and newer!

%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name generically
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.1
Release:        1
Summary:        This is a compatibility package as Generically and Generically1
Group:          Development/Haskell
License:        BSD-3-Clause
URL:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
This is a compatibility package as Generically and Generically1 newtypes 
are available since base-4.17 in GHC.Generics.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1818 |21cr|ghc-hackage-security-0.6.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name hackage-security
%global pkgver %{pkg_name}-%{version}

Summary:	The hackage security library for Haskell
Name:		ghc-%{pkg_name}
Version:	0.6.2.3
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Patch0:		hackage-security-0.6.2.3-no-Cabal-syntax.patch
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros
BuildRequires:	ghc-base16-bytestring-prof >= 0.1.1.6
BuildRequires:	ghc-base64-bytestring-prof >= 1.0.0.1
BuildRequires:	ghc-cryptohash-sha256-prof >= 0.11.100.1
BuildRequires:	ghc-lukko-prof >= 0.0.5.0
BuildRequires:	ghc-ed25519-prof >= 0.0.5.0
BuildRequires:	ghc-tar-prof >= 0.5.0.3
BuildRequires:	ghc-zlib-prof >= 0.6.1.1
BuildRequires:	ghc-old-locale-prof >= 1.0.0.7
BuildRequires:	ghc-network-uri-prof >= 2.6.1.0
BuildRequires:	ghc-network-prof >= 2.6.3.1
BuildRequires:	pkgconfig(zlib)

%description
The hackage security library provides both
server and client utilities for securing the 
Hackage package server (http://hackage.haskell.org/). 
It is based on The Update Framework 
(http://theupdateframework.com/), a set of 
recommendations developed by security researchers 
at various universities in the US as well as 
developers on the Tor project (https://www.torproject.org/).

The current implementation supports only index signing,
thereby enabling untrusted mirrors. 
It does not yet provide facilities for 
author package signing.

The library has two main entry points: 
Hackage.Security.Client is the main entry 
point for clients (the typical example being cabal), 
and Hackage.Security.Server is the main entry 
point for servers (the typical example being hackage-server).

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1819 |21cr|ghc-hashable-1.4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name hashable
%global pkgver %{pkg_name}-%{version}

Summary:	Defines a class Hashable for Haskell
Name:		ghc-%{pkg_name}
Version:	1.4.1.0
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros
BuildRequires:	ghc-integer-simple-prof
BuildRequires:	ghc-base-orphans-prof

%description
This package defines a class, Hashable, 
for types that can be converted to a hash value. 
This class exists for the benefit of 
hashing-based data structures. 
The package provides instances for basic 
types and a way to combine hash values.

%files -f %{name}.files
%license LICENSE

#------------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc README.md CHANGES.md

#------------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#------------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}

%build
%ghc_lib_build


%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1820 |21cr|ghc-HTTP-4000.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name HTTP
%global pkgver %{pkg_name}-%{version}

Summary:	A library for client-side HTTP for Haskell
Name:		ghc-%{pkg_name}
Version:	4000.4.1
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros
BuildRequires:	ghc-network-prof
BuildRequires:	ghc-network-uri-prof

%description
The HTTP package supports client-side web programming in Haskell. It lets you
set up HTTP connections, transmitting requests and processing the responses
coming back, all from within the comforts of Haskell. It's dependent on the
network package to operate, but other than that, the implementation is all
written in Haskell.

A basic API for issuing single HTTP requests + receiving responses is provided.
On top of that, a session-level abstraction is also on offer  (the
@BrowserAction@ monad); it taking care of handling the management of persistent
connections, proxies, state (cookies) and authentication credentials required
to handle multi-step interactions with a web server.

The representation of the bytes flowing across is extensible via the use of a
type class, letting you pick the representation of requests and responses that
best fits your use.  Some pre-packaged, common instances are provided for you
(@ByteString@, @String@.)

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1821 |21cr|ghc-indexed-traversable-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name indexed-traversable
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.1.2
Release:        1
Summary:        FunctorWithIndex, FoldableWithIndex, TraversableWithIndex
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
This package provides three useful generalizations:

'class Functor f => FunctorWithIndex i f | f -> i' (imap)

'class Foldable f => FoldableWithIndex i f | f -> i' (ifoldMap)

'class (FunctorWithIndex i t, FoldableWithIndex i t, Traversable t) =>
TraversableWithIndex i t | t -> i' (itraverse)

This package contains instances for types in GHC boot libraries.
For some additional instances see indexed-traversable-instances.

The keys package provides similar functionality,
but uses (associated) 'TypeFamilies' instead of 'FunctionalDependencies'.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1822 |21cr|ghc-indexed-traversable-instances-0.1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name indexed-traversable-instances
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.1.1.1
Release:        1
Summary:        More instances of FunctorWithIndex, FoldableWithIndex, TraversableWithIndex
Group:          Development/Haskell
License:        BSD-2-Clause
URL:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-OneTuple-prof
BuildRequires:  ghc-indexed-traversable-prof
BuildRequires:  ghc-tagged-prof
BuildRequires:  ghc-unordered-containers-prof
BuildRequires:  ghc-vector-prof

%description
This package provides extra instances for type-classes in the
[indexed-traversable](https://hackage.haskell.org/package/indexed-traversable)
package.

The intention is to keep this package minimal; it provides instances that
formely existed in 'lens' or 'optics-extra'. We recommend putting other
instances directly into their defining packages. The 'indexed-traversable'
package is light, having only GHC boot libraries as its dependencies.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1823 |21cr|ghc-integer-logarithms-1.0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name integer-logarithms
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        1.0.3.1
Release:        2
Summary:        Integer logarithms
Group:          Development/Haskell
License:        MIT
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
"Math.NumberTheory.Logarithms" and "Math.NumberTheory.Powers.Integer" from the
arithmoi package.

Also provides "GHC.Integer.Logarithms.Compat" and
"Math.NumberTheory.Power.Natural" modules, as well as some additional functions
in migrated modules.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1824 |21cr|ghc-integer-simple-0.1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name integer-simple
%global pkgver %{pkg_name}-%{version}

Summary:	Contains an simple Integer library
Name:		ghc-%{pkg_name}
Version:	0.1.1.1
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros

%description
This package contains an simple Integer library.

%files -f %{name}.files
%license LICENSE

#------------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#------------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#------------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}

%build
%ghc_lib_build


%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1825 |21cr|ghc-lukko-0.1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name lukko
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.1.1.3
Release:        1
Summary:        File locking
Group:          Development/Haskell
License:        GPLv2+ and BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
This package provides access to platform dependent file locking APIs:

*
<https://www.gnu.org/software/libc/manual/html_node/Open-File-Description-Locks.html
Open file descriptor locking> on Linux ("Lukko.OFD") * BSD-style 'flock(2)'
locks on UNIX platforms ("Lukko.FLock") * Windows locking via
<https://docs.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-lockfilee
LockFileEx> ("Lukko.Windows") * No-op locking, which throws exceptions
("Lukko.NoOp") * "Lukko" module exports the best option for the target platform
with uniform API.

There are alternative file locking packages:

* "GHC.IO.Handle.Lock" in 'base >= 4.10' is good enough for most use cases.
However, uses only 'Handle's so these locks cannot be used for intra-process
locking. (You should use e.g. 'MVar' in addition).

* <https://hackage.haskell.org/package/filelock filelock> doesn't support OFD
locking.

/Lukko/ means lock in Finnish.

Submodules "Lukko.OFD", "Lukko.Windows" etc are available based on following
conditions.

' if os(windows) cpp-options: -DHAS_WINDOWS_LOCK

elif (os(linux) && flag(ofd-locking)) cpp-options: -DHAS_OFD_LOCKING
cpp-options: -DHAS_FLOCK

elif !(os(solaris) || os(aix)) cpp-options: -DHAS_FLOCK '

"Lukko.FLock" is available on not (Windows or Solaris or AIX).
"Lukko.NoOp" is always available.


%files -f %{name}.files
%license LICENSE*

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE*

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1826 |21cr|ghc-network-3.1.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name network
%global pkgver %{pkg_name}-%{version}

Summary:	Low-level networking interface for Haskell
Name:		ghc-%{pkg_name}
Version:	3.1.2.7
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros

%description
Low-level networking interface.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1827 |21cr|ghc-network-uri-2.6.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name network-uri
%global pkgver %{pkg_name}-%{version}

Summary:	URI manipulation interface for Haskell
Name:		ghc-%{pkg_name}
Version:	2.6.3.0
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-network-prof
BuildRequires:	ghc-rpm-macros

%description
This package provides an URI manipulation interface.
In network-2.6 the Network.URI module was split off 
from the network package into this package.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1828 |21cr|ghc-old-locale-1.0.0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name old-locale
%global pkgver %{pkg_name}-%{version}

Summary:	Locale date and time formats for Haskell
Name:		ghc-%{pkg_name}
Version:	1.0.0.7
Release:	4
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Source1:	https://hackage.haskell.org/package/old-locale-1.0.0.7/old-locale.cabal
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros

%description
This package provides the ability to adapt 
to locale conventions such as date and time formats.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -f %{SOURCE1} ./

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1829 |21cr|ghc-OneTuple-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name OneTuple
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.3.1
Release:        2
Summary:        Singleton Tuple
Group:          Development/Haskell
License:        BSD-3-Clause
URL:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/revision/3.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-base-orphans-prof
BuildRequires:  ghc-rpm-macros

%description
This package is a compatibility package for a singleton data type

> data Solo a = Solo a

Note: it's not a 'newtype'

'Solo' is available in 'base-4.16' (GHC-9.2).

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1830 |21cr|ghc-primitive-0.7.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name primitive
%global pkgver %{pkg_name}-%{version}

Summary:	Primitive memory-related operations for Haskell
Name:		ghc-%{pkg_name}
Version:	0.7.4.0
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
This package provides various primitive memory-related operations.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1831 |21cr|ghc-QuickCheck-2.14.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name QuickCheck
%global pkgver %{pkg_name}-%{version}

# circular dep via base-compat-batteries
%bcond_with tests

Name:           ghc-%{pkg_name}
Version:        2.14.2
Release:        2
Summary:        Automatic testing of Haskell programs
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-rpm-macros-extra
BuildRequires:  ghc-Diff
BuildRequires:  ghc-prof
BuildRequires:  ghc-random-prof
BuildRequires:  ghc-splitmix-prof
%if %{with tests}
BuildRequires:  ghc-process-devel
%endif

%description
QuickCheck is a library for random testing of program properties. The
programmer provides a specification of the program, in the form of properties
which functions should satisfy, and QuickCheck then tests that the properties
hold in a large number of randomly generated cases. Specifications are
expressed in Haskell, using combinators provided by QuickCheck.
QuickCheck provides combinators to define properties, observe the distribution
of test data, and define test data generators.

%files -f %{name}.files
%license LICENSE

#------------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc README changelog examples

#------------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#------------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}

%build
%ghc_lib_build


%install
%ghc_lib_install


%check
%if %{with tests}
%cabal_test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1832 |21cr|ghc-random-1.2.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name random
%global pkgver %{pkg_name}-%{version}

%global splitmix splitmix-0.1.0.4
%global subpkgs %{splitmix}

# testsuite missing deps: tasty-expected-failure tasty-smallcheck


Name:           ghc-%{pkg_name}
Version:        1.2.1.1
# can only be reset when all subpkgs bumped
Release:        2
Summary:        Pseudo-random number generation
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{splitmix}/%{splitmix}.tar.gz
Source2:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  dos2unix
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros-extra

%description
This package provides basic pseudo-random number generation, including the
ability to split random number generators.

== "System.Random": pure pseudo-random number interface

In pure code, use 'System.Random.uniform' and 'System.Random.uniformR' from
"System.Random" to generate pseudo-random numbers with a pure pseudo-random
number generator like 'System.Random.StdGen'.

As an example, here is how you can simulate rolls of a six-sided die using
'System.Random.uniformR':

>>> let roll = uniformR (1, 6) :: RandomGen g => g -> (Word, g) >>> let rolls =
unfoldr (Just . roll) :: RandomGen g => g -> [Word] >>> let pureGen = mkStdGen
42 >>> take 10 (rolls pureGen) :: [Word] [1,1,3,2,4,5,3,4,6,2]

See "System.Random" for more details.

== "System.Random.Stateful": monadic pseudo-random number interface

In monadic code, use 'System.Random.Stateful.uniformM' and
'System.Random.Stateful.uniformRM' from "System.Random.Stateful" to generate
pseudo-random numbers with a monadic pseudo-random number generator, or using a
monadic adapter.

As an example, here is how you can simulate rolls of a six-sided die using
'System.Random.Stateful.uniformRM':

>>> let rollM = uniformRM (1, 6) :: StatefulGen g m => g -> m Word >>> let
pureGen = mkStdGen 42 >>> runStateGen_ pureGen (replicateM 10 . rollM) ::
[Word] [1,1,3,2,4,5,3,4,6,2]

The monadic adapter 'System.Random.Stateful.runGenState_' is used here to lift
the pure pseudo-random number generator 'pureGen' into the
'System.Random.Stateful.StatefulGen' context.

The monadic interface can also be used with existing monadic pseudo-random
number generators. In this example, we use the one provided in the
<https://hackage.haskell.org/package/mwc-random mwc-random> package:

>>> import System.Random.MWC as MWC >>> let rollM = uniformRM (1, 6) ::
StatefulGen g m => g -> m Word >>> monadicGen <- MWC.create >>> replicateM 10
(rollM monadicGen) :: IO [Word] [2,3,6,6,4,4,3,1,5,4]

See "System.Random.Stateful" for more details.

%files -f %{name}.files
%license LICENSE

#--------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc CHANGELOG.md README.md

#--------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#--------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#--------------------------------------------------------------------

%global main_version %{version}

%if %{defined ghclibdir}
%ghc_lib_subpackage %{splitmix}
%endif

%global version %{main_version}


%prep
%setup -q -n %{pkgver} -a1
dos2unix -k -n %{SOURCE2} %{pkg_name}.cabal


%build
%ghc_libs_build %{subpkgs}
%ghc_lib_build


%install
%ghc_libs_install %{subpkgs}
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1833 |21cr|ghc-regex-base-0.94.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name regex-base
%global pkgver %{pkg_name}-%{version}

Summary:	Replaces/Enhances Text.Regex
Name:		ghc-%{pkg_name}
Version:	0.94.0.2
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros

%description
Interface API for regex-posix, pcre, parsec, tdfa, dfa.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        %{summary}
Provides:       %{name}-static = %{EVRD}
Provides:       %{name}-static%{?_isa} = %{EVRD}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{EVRD}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{EVRD}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1834 |21cr|ghc-regex-tdfa-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name regex-tdfa
%global pkgver %{pkg_name}-%{version}

Summary:	DFA regex engine for Haskell
Group:		Development/Haskell
Name:		ghc-%{pkg_name}
Version:	1.3.2
Release:	1
License:	BSD
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-regex-base-prof
BuildRequires:	ghc-rpm-macros


%description
%{summary}.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        %{summary}
Provides:       %{name}-static = %{EVRD}
Provides:       %{name}-static%{?_isa} = %{EVRD}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{EVRD}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{EVRD}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1835 |21cr|ghc-resolv-0.1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name resolv
%global pkgver %{pkg_name}-%{version}

%bcond_with tests

Name:           ghc-%{pkg_name}
Version:        0.1.2.0
Release:        1
Summary:        Domain Name Service (DNS) lookup via the libresolv standard library routines
Group:          Development/Haskell
License:        GPLv2.0+
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal

BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-base16-bytestring-prof
%if %{with tests}
BuildRequires:  ghc-directory-devel
BuildRequires:  ghc-filepath-devel
BuildRequires:  ghc-tasty-devel
BuildRequires:  ghc-tasty-hunit-devel
%endif

%description
This package implements an API for accessing the [Domain Name Service
(DNS)](https://tools.ietf.org/html/rfc1035) resolver service via the standard
'libresolv' system library (whose API is often available directly via the
standard 'libc' C library) on Unix systems.

%files -f %{name}.files
%license LICENSE*

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE*

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal
cabal-tweak-dep-ver tasty '^>=1.3.1' '>=1.3.1'


%build
%ghc_lib_build


%install
%ghc_lib_install


%check
%if %{with tests}
%cabal_test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1836 |21cr|ghc-rpm-macros-2.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define macros_dir %{_rpmconfigdir}/macros.d

Name:           ghc-rpm-macros
Version:        2.4.4
Release:        2
Summary:        RPM macros for building packages for GHC
License:        GPLv3+
Group:          System/Configuration/Packaging
Url:            https://src.fedoraproject.org/rpms/ghc-rpm-macros/
# Currently source is only in git but tarballs could be made if it helps
Source0:        macros.ghc
Source1:        COPYING
Source2:        AUTHORS
Source3:        ghc-deps.sh
Source4:        cabal-tweak-dep-ver
Source5:        cabal-tweak-flag
Source6:        macros.ghc-extra
Source7:        ghc.attr
Source8:        ghc-pkg-wrapper
Source9:        macros.ghc-os
Source10:       Setup.hs
Source11:       cabal-tweak-drop-dep
Source12:       cabal-tweak-remove-upperbound
Source100:      ghc-rpm-macros.rpmlintrc
Requires:       rpm-build

# for ghc_version
Requires:       ghc
Requires:       chrpath

BuildArch:      noarch

%description
A set of macros for building GHC packages following the Haskell Guidelines
of the Fedora Haskell SIG.  ghc needs to be installed in order to make use of
these macros.

%files
%license COPYING
%doc AUTHORS
%{macros_dir}/macros.ghc
%{macros_dir}/macros.ghc-os
%{_prefix}/lib/rpm/fileattrs/ghc.attr
%{_prefix}/lib/rpm/ghc-deps.sh
%{_prefix}/lib/rpm/ghc-pkg-wrapper
%{_bindir}/cabal-tweak-dep-ver
%{_bindir}/cabal-tweak-drop-dep
%{_bindir}/cabal-tweak-flag
%{_bindir}/cabal-tweak-remove-upperbound
%{_datadir}/%{name}/Setup.hs

#--------------------------------------------------------------------------------
%package extra
Summary:        Extra RPM macros for building Haskell library subpackages
Requires:       %{name} = %{EVRD}

%description extra
Extra macros used for subpackaging of Haskell libraries,
for example in ghc and haskell-platform.

%files extra
%{macros_dir}/macros.ghc-extra
#-----------------------------------------------------------------------------------
# ideally packages should be obsoleted by some relevant package
# this is a last resort when there is no such appropriate package
%package -n ghc-obsoletes
Summary:        Dummy package to obsolete deprecated Haskell packages
# these 3 no longer build with ghc-7.8 (F22)
Obsoletes:      ghc-ForSyDe < 3.1.2, ghc-ForSyDe-devel < 3.1.2
Obsoletes:      ghc-parameterized-data < 0.1.6
Obsoletes:      ghc-parameterized-data-devel < 0.1.6
Obsoletes:      ghc-type-level < 0.2.5, ghc-type-level-devel < 0.2.5
Obsoletes:      leksah < 0.14, ghc-leksah < 0.14, ghc-leksah-devel < 0.14
# dropped from HP 2014.2 (F22)
Obsoletes:      ghc-cgi < 3001.1.8,  ghc-cgi-devel < 3001.1.8
# for f24
Obsoletes:      ghc-citeproc-hs < 0.3.10-3, ghc-citeproc-hs-devel < 0.3.10-3
Obsoletes:      ghc-hakyll < 4.5.4.0-6, ghc-hakyll-devel < 4.5.4.0-6
Obsoletes:      ghc-leksah-server < 0.14.3.1-4, ghc-leksah-server-devel < 0.14.3.1-4
# for f25
Obsoletes:      ghc-cmdtheline <= 0.2.3, ghc-cmdtheline-devel <= 0.2.3
Obsoletes:      ghc-concrete-typerep <= 0.1.0.2, ghc-concrete-typerep-devel <= 0.1.0.2
Obsoletes:      ghc-glade <= 0.12.5.0, ghc-glade-devel <= 0.12.5.0
Obsoletes:      bluetile <= 0.6, bluetile-core <= 0.6
Obsoletes:      ghc-lambdabot-utils <= 4.2.2, ghc-lambdabot-utils-devel <= 4.2.2
Obsoletes:      haddock <= 2.14.3, ghc-haddock <= 2.14.3, ghc-haddock-devel <= 2.14.3
Obsoletes:      ghc-monad-unify <= 0.2.2, ghc-monad-unify-devel <= 0.2.2
Obsoletes:      Agda <= 2.4.2.2, ghc-Agda <= 2.4.2.2, ghc-Agda-devel <= 2.4.2.2

%description -n ghc-obsoletes
Meta package for obsoleting deprecated Haskell packages.

This package can safely be removed.
%files -n ghc-obsoletes
#-------------------------------------------------------------------------------------
%prep
%setup -c -T
cp %{SOURCE1} %{SOURCE2} .


%build
echo no build stage needed

%install
install -p -D -m 0644 %{SOURCE0} %{buildroot}%{macros_dir}/macros.ghc
install -p -D -m 0644 %{SOURCE6} %{buildroot}%{macros_dir}/macros.ghc-extra
install -p -D -m 0644 %{SOURCE9} %{buildroot}%{macros_dir}/macros.ghc-os

install -p -D -m 0755 %{SOURCE3} %{buildroot}%{_prefix}/lib/rpm/ghc-deps.sh

install -p -D -m 0644 %{SOURCE7} %{buildroot}%{_prefix}/lib/rpm/fileattrs/ghc.attr

install -p -D -m 0644 %{SOURCE10} %{buildroot}%{_datadir}/%{name}/Setup.hs

install -p -D -m 0755 %{SOURCE4} %{buildroot}%{_bindir}/cabal-tweak-dep-ver
install -p -D -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/cabal-tweak-flag
install -p -D -m 0755 %{SOURCE11} %{buildroot}%{_bindir}/cabal-tweak-drop-dep
install -p -D -m 0755 %{SOURCE12} %{buildroot}%{_bindir}/cabal-tweak-remove-upperbound
install -p -D -m 0755 %{SOURCE8} %{buildroot}%{_prefix}/lib/rpm/ghc-pkg-wrapper

mkdir -p %{buildroot}%{_docdir}/ghc/html/libraries

%if 0%{?rhel} && 0%{?rhel} < 7
cat >> %{buildroot}%{_prefix}/lib/rpm/ghc-deps.sh <<EOF

echo \$files | tr [:blank:] '\n' | %{_rpmconfigdir}/rpmdeps --requires
EOF
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1837 |21cr|ghc-scientific-0.3.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name scientific
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.3.7.0
Release:        1
Summary:        Numbers represented using scientific notation
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-integer-logarithms-prof
BuildRequires:  ghc-primitive-prof

%description
'Data.Scientific' provides a space efficient and arbitrary precision scientific
number type.

A 'Scientific' number is represented with coefficient 'c' and
base10Exponent 'e' and corresponds to the 'Fractional' number:
'fromInteger c * 10 ^^ e'

The main application of 'Scientific' is to be used as the target of parsing
arbitrary precision numbers coming from an untrusted source.


%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1838 |21cr|ghc-semialign-1.2.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name semialign
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        1.2.0.1
Release:        2
Summary:        Align and Zip type-classes from the common Semialign ancestor
Group:          Development/Haskell
License:        BSD-3-Clause
URL:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}-%{version}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/revision/1.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-containers-prof
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-indexed-traversable-prof
BuildRequires:  ghc-indexed-traversable-instances-prof
BuildRequires:  ghc-semigroupoids-prof
BuildRequires:  ghc-tagged-prof
BuildRequires:  ghc-these-prof
BuildRequires:  ghc-unordered-containers-prof
BuildRequires:  ghc-vector-prof

%description
The major use of 'These' of this is provided by the 'align' member of
'Semialign' class, representing a generalized notion of "zipping with padding"
that combines structures without truncating to the size of the smaller input.

It turns out that 'zip' operation fits well the 'Semialign' class, forming
lattice-like structure.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1839 |21cr|ghc-semigroupoids-5.3.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name semigroupoids
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        5.3.7
Release:        3
Summary:        Semigroupoids: Category sans id
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-base-orphans-prof
BuildRequires:  ghc-bifunctors-prof
BuildRequires:  ghc-comonad-prof
BuildRequires:  ghc-containers-prof
BuildRequires:  ghc-contravariant-prof
BuildRequires:  ghc-distributive-prof
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-tagged-prof
BuildRequires:  ghc-transformers-prof
BuildRequires:  ghc-transformers-compat-prof
BuildRequires:  ghc-unordered-containers-prof

%description
Provides a wide array of (semi)groupoids and operations for working with them.

A 'Semigroupoid' is a 'Category' without the requirement of identity arrows for
every object in the category.

A 'Category' is any 'Semigroupoid' for which the Yoneda lemma holds.

When working with comonads you often have the '<*>' portion of an
'Applicative', but not the 'pure'. This was captured in Uustalu and Vene's
"Essence of Dataflow Programming" in the form of the 'ComonadZip' class in the
days before 'Applicative'. Apply provides a weaker invariant, but for the
comonads used for data flow programming (found in the streams package), this
invariant is preserved. Applicative function composition forms a semigroupoid.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1840 |21cr|ghc-semigroups-0.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name semigroups
%global pkgver %{pkg_name}-%{version}

Summary:	Associative binary operation for Haskell
Name:		ghc-%{pkg_name}
Version:	0.20
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
%{summary}.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1841 |21cr|ghc-shellcheck-0.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name shellcheck
%global pkgver %{pkg_name}-%{version}

Name:		ghc-shellcheck
Version:	0.9.0
Release:	3
Summary:	Static analysis tool for shell scripts
Group:		Development/Other
URL:		https://www.shellcheck.net
Source0:	https://github.com/koalaman/shellcheck/archive/v%{version}/%{pkg_name}-%{version}.tar.gz
License:	GPLv3
BuildRequires:	ghc-devel
BuildRequires:	ghc-rpm-macros
BuildRequires:	ghc-aeson-prof
BuildRequires:	ghc-Diff-prof
BuildRequires:	ghc-fgl-prof
BuildRequires:	ghc-regex-tdfa-prof
BuildRequires:	ghc-QuickCheck-prof
Provides:	shellcheck = %{EVRD}
# haskell not available on other arch in Rosa
ExclusiveArch:	%{ix86} %{x86_64} aarch64

%description
ShellCheck - A shell script static analysis tool

%files
%license LICENSE
%doc README.md %{pkg_name}.1.md
%{_bindir}/%{pkg_name}

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel
%{_libdir}/ghc-*/ShellCheck-%{version}
%{_libdir}/libHS*.so

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_bin_build

%install
%ghc_bin_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1842 |21cr|ghc-StateVar-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name StateVar
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        1.2.2
Release:        1
Summary:        State variables
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
This package contains state variables, which are references in the IO monad,
like IORefs or parts of the OpenGL state.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1843 |21cr|ghc-strict-0.4.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name strict
%global pkgver %{pkg_name}-%{version}

Summary:	Strict data types and String IO for Haskell
Name:		ghc-%{pkg_name}
Version:	0.4.0.1
Release:	3
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Patch0:		strict-dependensy.patch
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-these-prof
BuildRequires:  ghc-rpm-macros

%description
This package provides strict versions of some standard Haskell data types
(pairs, Maybe and Either). It also contains strict IO operations.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1844 |21cr|ghc-tagged-0.8.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name tagged
%global pkgver %{pkg_name}-%{version}

Summary:	98 phantom types to avoid dummy arguments for Haskell
Name:		ghc-%{pkg_name}
Version:	0.8.6.1
Release:	2
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
%{summary}.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1845 |21cr|ghc-tar-0.5.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name tar
%global pkgver %{pkg_name}-%{version}

Summary:	Reading, writing and manipulating ".tar" archive files for Haskell
Name:		ghc-%{pkg_name}
Version:	0.5.1.1
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
Source1:	https://hackage.haskell.org/package/tar-0.5.1.1/tar.cabal
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros

%description
This library is for working with "tar" archive files. It can read and write a
range of common variations of archive format including V7, USTAR, POSIX and GNU
formats. It provides support for packing and unpacking portable archives. This
makes it suitable for distribution but not backup because details like file
ownership and exact permissions are not preserved.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

cp -f %{SOURCE1} ./

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1846 |21cr|ghc-text-short-0.1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name text-short
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.1.5
Release:        2
Summary:        Memory-efficient representation of Unicode text strings
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-hashable-prof

%description
This package provides the 'ShortText' type which is suitable for keeping many
short strings in memory. This is similiar to how 'ShortByteString' relates to
'ByteString'.

The main difference between 'Text' and 'ShortText' is that 'ShortText' uses
UTF-8 instead of UTF-16 internally and also doesn't support zero-copy slicing
(thereby saving 2 words). Consequently, the memory footprint of a (boxed)
'ShortText' value is 4 words (2 words when unboxed) plus the length of the
UTF-8 encoded payload.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1847 |21cr|ghc-th-abstraction-0.4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name th-abstraction
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.4.5.0
Release:        1
Summary:        Nicer interface for reified information about data types
Group:          Development/Haskell
License:        ISC
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
This package normalizes variations in the interface for inspecting datatype
information via Template Haskell so that packages and support a single, easier
to use informational datatype while supporting many versions of Template
Haskell.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc-compiler = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc ChangeLog.md README.md

#----------------------------------------------------------------------
%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch
Requires:       ghc-filesystem

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------
%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}


%build
%ghc_lib_build


%install
%ghc_lib_install


%check
%if %{with tests}
%cabal_test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1848 |21cr|ghc-these-1.1.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name these
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        1.1.1.1
Release:        3
Summary:        An either-or-both data type
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal

BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-assoc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-hashable-prof

%description
This package provides a data type 'These a b' which can hold a value of either
type or values of each type. This is usually thought of as an "inclusive or"
type (contrasting 'Either a b' as "exclusive or") or as an "outer join" type
(contrasting '(a, b)' as "inner join").

' data These a b = This a | That b | These a b '

Since version 1, this package was split into parts:

* <https://hackage.haskell.org/package/semialign semialign> For 'Align' and
'Zip' type-classes.

* <https://hackage.haskell.org/package/semialign-indexed semialign-indexed> For
'SemialignWithIndex' class, providing 'ialignWith' and 'izipWith'.

* <https://hackage.haskell.org/package/these-lens these-lens> For lens
combinators.

* <http://hackage.haskell.org/package/monad-chronicle monad-chronicle> For
transformers variant of 'These'.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc-compiler = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files
%doc CHANGELOG.md

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch
Requires:       ghc-filesystem

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files

%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1849 |21cr|ghc-time-compat-1.9.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name time-compat
%global pkgver %{pkg_name}-%{version}

# tasty hanging
%bcond_with tests

Name:           ghc-%{pkg_name}
Version:        1.9.6.1
Release:        1
Summary:        Compatibility package for time
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-base-orphans-prof
BuildRequires:  ghc-hashable-prof
%if %{with tests}
BuildRequires:  ghc-HUnit-devel
BuildRequires:  ghc-QuickCheck-devel
BuildRequires:  ghc-base-compat-devel
BuildRequires:  ghc-tagged-devel
BuildRequires:  ghc-tasty-devel
BuildRequires:  ghc-tasty-hunit-devel
BuildRequires:  ghc-tasty-quickcheck-devel
%endif

%description
This packages tries to compat as much of 'time' features as possible.


%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install


%check
%if %{with tests}
%cabal_test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1850 |21cr|ghc-transformers-compat-0.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name transformers-compat
%global pkgver %{pkg_name}-%{version}

Summary:	Backported versions of transformers for Haskell
Name:		ghc-%{pkg_name}
Version:	0.7.2
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
%{summary}.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1851 |21cr|ghc-unordered-containers-0.2.19.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name unordered-containers
%global pkgver %{pkg_name}-%{version}

Summary:	Efficient hashing-based container types for Haskell
Name:		ghc-%{pkg_name}
Version:	0.2.19.1
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-hashable-prof


%description
%{summary}.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1852 |21cr|ghc-uuid-types-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name uuid-types
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        1.0.5
Release:        1
Summary:        Type definitions for Universally Unique Identifiers
Group:          Development/Haskell
License:        BSD
Url:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-random-prof

%description
This library contains type definitions for Universally Unique Identifiers and
basic conversion functions. See https://en.wikipedia.org/wiki/UUID for the
general idea.


%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------
%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal


%build
%ghc_lib_build


%install
%ghc_lib_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1853 |21cr|ghc-vector-0.13.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name vector
%global pkgver %{pkg_name}-%{version}

Summary:	Efficient Arrays for Haskell
Name:		ghc-%{pkg_name}
Version:	0.13.0.0
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-vector-stream-prof
BuildRequires:  ghc-primitive-prof
BuildRequires:  ghc-rpm-macros


%description
An efficient implementation of Int-indexed arrays (both mutable
and immutable), with a powerful loop optimisation framework.

It is structured as follows:

["Data.Vector"] Boxed vectors of arbitrary types.

["Data.Vector.Unboxed"] Unboxed vectors with an adaptive
representation based on data type families.

["Data.Vector.Storable"] Unboxed vectors of 'Storable' types.

["Data.Vector.Primitive"] Unboxed vectors of primitive types as
defined by the @primitive@ package. "Data.Vector.Unboxed" is more
flexible at no performance cost.

["Data.Vector.Generic"] Generic interface to the vector types.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

# haddock build fail
%if %{without haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}


%build
%ghc_lib_build_without_haddock

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1854 |21cr|ghc-vector-stream-0.1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name vector-stream
%global pkgver %{pkg_name}-%{version}

Summary:	Simple yet powerful monadic streams
Name:		ghc-%{pkg_name}
Version:	0.1.0.0
Release:	1
License:	BSD
Group:		Development/Haskell
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros

%description
Simple yet powerful monadic streams that are used as a backbone for vector 
package fusion functionality.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1855 |21cr|ghc-witherable-0.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name witherable
%global pkgver %{pkg_name}-%{version}

Name:           ghc-%{pkg_name}
Version:        0.4.2
Release:        2
Summary:        Filterable traversable
Group:          Development/Haskell
License:        BSD-3-Clause
URL:            https://hackage.haskell.org/package/%{pkg_name}
Source0:        https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkgver}.tar.gz
Source1:        https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/2.cabal#/%{pkgver}.cabal
BuildRequires:  ghc-devel
BuildRequires:  ghc-prof
BuildRequires:  ghc-rpm-macros
BuildRequires:  ghc-base-orphans-prof
BuildRequires:  ghc-containers-prof
BuildRequires:  ghc-hashable-prof
BuildRequires:  ghc-indexed-traversable-prof
BuildRequires:  ghc-indexed-traversable-instances-prof
BuildRequires:  ghc-unordered-containers-prof
BuildRequires:  ghc-vector-prof

%description
A stronger variant of `traverse` which can remove elements and generalised
mapMaybe, catMaybes, filter.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}
cp -bp %{SOURCE1} %{pkg_name}.cabal

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1856 |21cr|ghc-zlib-0.6.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global debug_package %{nil}

%global pkg_name zlib
%global pkgver %{pkg_name}-%{version}

Summary:	Compression and decompression in the gzip and zlib formats for Haskell
Name:		ghc-%{pkg_name}
Version:	0.6.3.0
Release:	2
Group:		Development/Haskell
License:	BSD
Url:		http://hackage.haskell.org/package/%{pkg_name}
Source0:	http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
BuildRequires:	ghc-devel
BuildRequires:	ghc-prof
BuildRequires:	ghc-rpm-macros
BuildRequires:	pkgconfig(zlib)

%description
This package provides a pure interface for compressing and decompressing
streams of data represented as lazy 'ByteString's. It uses the zlib C library
so it has high performance. It supports the "zlib", "gzip" and "raw"
compression formats.

It provides a convenient high level API suitable for most tasks and for the few
cases where more control is needed it provides access to the full zlib feature
set.

%files -f %{name}.files
%license LICENSE

#----------------------------------------------------------------------
%package devel
Summary:        Haskell %{pkg_name} library development files
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires:       ghc = %{ghc_version}
%endif
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       pkgconfig(zlib)

%description devel
This package provides the Haskell %{pkg_name} library development files.

%files devel -f %{name}-devel.files

#----------------------------------------------------------------------

%if %{with haddock}
%package doc
Summary:        Haskell %{pkg_name} library documentation
BuildArch:      noarch

%description doc
This package provides the Haskell %{pkg_name} library documentation.

%files doc -f %{name}-doc.files
%license LICENSE

%endif

#----------------------------------------------------------------------

%if %{with ghc_prof}
%package prof
Summary:        Haskell %{pkg_name} profiling library
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Supplements:    (%{name}-devel and ghc-prof)

%description prof
This package provides the Haskell %{pkg_name} profiling library.

%files prof -f %{name}-prof.files
%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pkgver}

%build
%ghc_lib_build

%install
%ghc_lib_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1857 |21cr|ghostess-20210101-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ghostess
Summary:        Simple DSSI host with GUI capability
Version:	20210101
Release:	1

Source:         http://smbolton.com/linux/%{name}-%{version}.tar.bz2
URL:            http://smbolton.com/linux.html
License:        GPLv2
Group:          Sound

BuildRequires:  pkgconfig(jack)
BuildRequires:  pkgconfig(dssi)
BuildRequires:  pkgconfig(liblo)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  ladspa-devel

%description
Ghostess is a simple DSSI host with support for the plugin graphical
user interfaces. It can host several plugins, which can be attributed
to a dedicated MIDI channel. Refer to the README file for a brief
introduction and a usage example.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README COPYING AUTHORS
%{_bindir}/%{name}
%{_bindir}/%{name}_universal_gui
%{_mandir}/man1/ghostess.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1858 |21cr|ghostwriter-2.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Name:		ghostwriter
Version:	2.1.6
Release:	1
License:	GPLv3+ and CC-BY and CC-BY-SA and MPLv1.1 and BSD and LGPLv3 and MIT and ISC
Summary:	Cross-platform, aesthetic, distraction-free Markdown editor
Group:		Text tools
URL:		https://github.com/KDE/ghostwriter
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	cmake(Qt5Concurrent)
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5DBus)
BuildRequires:	cmake(Qt5Gui)
BuildRequires:	cmake(Qt5Help)
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	cmake(Qt5Network)
BuildRequires:	cmake(Qt5Svg)
BuildRequires:	cmake(Qt5WebEngine)
BuildRequires:	cmake(Qt5WebEngineWidgets)
BuildRequires:	cmake(Qt5X11Extras)
BuildRequires:	cmake(Qt5Xml)
BuildRequires:	cmake(Qt5XmlPatterns)

BuildRequires:	desktop-file-utils
BuildRequires:	hunspell-devel
BuildRequires:	appstream-util

Provides:	bundled(cmark-gfm) = 0.29.0.gfm.3
Provides:	bundled(fontawesome-fonts) = 5.10.2
Provides:	undled(nodejs-mathjax-full) = 3.1.2
Provides:	bundled(nodejs-react) = 17.0.1
Provides:	bundled(QtAwesome) = 5

Requires:	hicolor-icon-theme

Recommends:	cmark%{?_isa}
# Not provided in repo?
#Recommends:	multimarkdown%{?_isa}
#Recommends:	pandoc%{?_isa}

%description
Ghostwriter is a text editor for Markdown, which is a plain text markup
format created by John Gruber. For more information about Markdown, please
visit John Gruber’s website at http://www.daringfireball.net.

Ghostwriter provides a relaxing, distraction-free writing environment,
whether your masterpiece be that next blog post, your school paper,
or your novel.

%prep
%autosetup -n %{name}-%{version} -p1
rm -rf 3rdparty/hunspell

%build
%qmake_qt5 PREFIX=%{_prefix}

%make_build

%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%install
%make_install INSTALL_ROOT=%{buildroot}

%find_lang %{name} --with-qt

%files -f %{name}.lang
%doc CHANGELOG.md CONTRIBUTING.md CREDITS.md README.md
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%dir %{_datadir}/ghostwriter
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_metainfodir}/%{name}.appdata.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1859 |21cr|gif89encoder-0.90-0.b.2.0.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Java class library for encoding GIF's
Name:		gif89encoder
Version:	0.90
Release:	0.b.2.0.10
License:	BSD
Group:		Development/Java
Url:		http://jmge.net/java/gifenc/
Source0:	http://jmge.net/java/gifenc/Gif89Encoder090b.zip
BuildRequires:	ant
BuildRequires:	java-rpmbuild
ExclusiveArch:	%{x86_64} aarch64

%description
This Java class library for encoding GIF's is likely to be of
utility to many other programmers. It covers more of the extended
GIF89a feature set, including animation and embedded textual
comments, than any other free Java GIF encoder.

%files
%defattr(0644,root,root,0755)
%doc readme.txt
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar

#----------------------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description javadoc
Javadoc for %{name}.

%files javadoc
%defattr(0644,root,root,0755)
%dir %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}-%{version}/*
%{_javadocdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -c
rm -f lib/classes.jar
perl -pi -e 's/\r$//g' readme.txt

%build
mkdir -p build/lib
mkdir -p build/javadocs

pushd src

%javac `find . -name "*.java"`
%jar cfm ../build/lib/%{name}.jar /dev/null `find . -name "*.class"`
%javadoc -Xdoclint:none -d ../build/javadocs `find . -name "*.java"`

popd

%install
# jars
mkdir -p %{buildroot}%{_javadir}
install -p -m 644 build/lib/%{name}.jar \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
ln -s ${jar} ${jar/-%{version}/}; done)

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
(cd %{buildroot}%{_javadocdir} && ln -s %{name}-%{version} %{name})


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1860 |21cr|giflib4-4.2.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname gif %{major}
%define libungif %mklibname ungif %{major}
%define devname %mklibname gif -d

Summary:	Compatibility library for applications using an older version of giflib
Name:		giflib4
Version:	4.2.3
Release:	10
License:	BSD
Group:		System/Libraries
Url:		http://giflib.sourceforge.net/
Source0:	http://switch.dl.sourceforge.net/project/giflib/giflib-4.x/giflib-%{version}.tar.bz2
Patch1:		giflib-4.1.6-fix-link.patch
Patch2:		giflib-4.2.1-automake-1.13.patch
Patch3:		giflib-4.2.3-CVE-2016-3977.patch
BuildRequires:	xmlto
BuildRequires:	docbook-dtd412-xml
BuildRequires:	pkgconfig(x11)

%description
giflib is a library for reading and writing gif images. It is API and
ABI compatible with libungif which was in wide use while the LZW
compression algorithm was patented.

This package provides an older version of giflib for compatibility.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for reading and writing gif images (old version)
Group:		System/Libraries

%description -n %{libname}
giflib is a library for reading and writing gif images. It is API and
ABI compatible with libungif which was in wide use while the LZW
compression algorithm was patented.

This package provides an older version of giflib for compatibility.

%files -n %{libname}
%{_libdir}/libgif.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libungif}
Summary:	Library for reading and writing gif images (old version)
Group:		System/Libraries
Conflicts:	%{_lib}gif4 < 4.1.6-12

%description -n %{libungif}
giflib is a library for reading and writing gif images. It is API and
ABI compatible with libungif which was in wide use while the LZW
compression algorithm was patented.

This package provides an older version of giflib for compatibility.

%files -n %{libungif}
%{_libdir}/libungif.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q -n giflib-%{version}
%patch1 -p0
%patch2 -p1 -b .am13~
%patch3 -p1
autoreconf -fi

%build
%configure \
	--disable-static

%make
# Handling of libungif compatibility
MAJOR=`echo '%{version}' | sed -e 's/\([0-9]\+\)\..*/\1/'`
%__cc %{ldflags} %{optflags} -shared -Wl,-soname,libungif.so.$MAJOR -Llib/.libs -lgif -o libungif.so.%{version}

%install
%makeinstall_std

# Handling of libungif compatibility
install -p -m 755 libungif.so.%{version} %{buildroot}%{_libdir}
ln -sf libungif.so.%{version} %{buildroot}%{_libdir}/libungif.so.4
ln -sf libungif.so.4 %{buildroot}%{_libdir}/libungif.so

# Remove anything but the library - people should get the tools and development
# files from giflib 5.x
rm -rf %{buildroot}%{_bindir} %{buildroot}%{_includedir} %{buildroot}%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1861 |21cr|gift-0.11.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lname	giFT
%define major	0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:        Internet File Transfer
Name:           gift
Version:        0.11.8.1
Release:        5
License:        GPL
Group:          Networking/File transfer
URL:            http://gift.sf.net/
Source0:        %{name}-%{version}.tar.bz2
Patch0:		gift-0.11.8.1-gcc4.patch
Patch1:		gift-sformatfix.patch
BuildRequires:	libtool-devel
BuildRequires:	imagemagick-devel
BuildRequires:	magic-devel
BuildRequires:	libvorbis-devel

%description
This packages containt the giFT daemon. giFT is the filesharing tool for
linux.

%package -n %{libname}
Summary:	Shared libraries for a %{name}
Group:          System/Libraries

%description -n %{libname}
Shared libraries for %{name}.

%package -n %{devname}
Summary:	Header files and static library for development with %{name}
Requires: 	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel
Group: 		Development/C
Obsoletes:	%{_lib}gift0-devel < 0.11.8.1-2

%description -n %{devname}
Header files and static library for development with %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--enable-libmagic \
	--enable-perl \
	--with-Magick=%{_prefix}
%make

%install
rm -rf %{buildroot}
%makeinstall_std
pushd %{buildroot}%{_bindir}
ln -sf giftd giFT
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README INSTALL NEWS TODO
%{_bindir}/*
%{_datadir}/%{lname}/*
%{_mandir}/*/*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1862 |21cr|giFTcurs-0.6.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cursed frontend to the giFT daemon
Name:		giFTcurs
Version:	0.6.2
Release:	13
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.nongnu.org/giftcurs/
Source0:	http://download.savannah.gnu.org/releases/giftcurs/%{name}-%{version}.tar.gz
Source1:	%{name}-icon-16.png
Source2:	%{name}-icon-32.png
Source3:	%{name}-icon-48.png
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(ncursesw)
Recommends:	gift
# It doesn't not require giFT to run 'cause it can connect to another
# host

%description
The giFTcurs software is a cursed frontend to the giFT daemon and has been
described as "seriously slick". It won't work that well without giFT, which
you should have already.

%files -f %{name}.lang
%doc README COPYING NEWS AUTHORS ChangeLog TODO ABOUT-NLS
%{_bindir}/giFTcurs
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man1/giFTcurs.1*
%{_mandir}/man5/giFTcurs.conf.5*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --with-ncursesw
%make

%install
%makeinstall_std

%find_lang %{name}

# menu
install %{SOURCE1} -D -m 644 %{buildroot}%{_miconsdir}/%{name}.png
install %{SOURCE2} -D -m 644 %{buildroot}%{_iconsdir}/%{name}.png
install %{SOURCE3} -D -m 644 %{buildroot}%{_liconsdir}/%{name}.png

# Creation of the menu item

mkdir -p %{buildroot}%{_datadir}/applications/

cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/giFTcurs
Categories=P2P;Network;FileTransfer;ConsoleOnly;
Name=GiFTcurs
Comment=Cursed frontend for the giFT peer2peer software
Icon=%{name}
Terminal=true
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1863 |21cr|gift-openft-0.2.1.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        OpenFT plugin for giFT
Name:           gift-openft
Version:        0.2.1.6
Release:        6
License:        GPL
Group:          Networking/File transfer
URL:            http://gift.sf.net/
Source0:        http://download.sourceforge.net/gift/%{name}-%{version}.tar.bz2
Requires:	gift
BuildRequires:	db-devel
BuildRequires:	gift-devel
BuildRequires:	zlib-devel
BuildRequires:	magic-devel

%description
This is the OpenFT plugin for giFT.

%prep
%setup -q
perl -pi -e 's,\${prefix}/lib,%{_libdir},' m4/gift-prefix.m4 configure*

%build
%configure 
%make

%install
%{__rm} -rf %{buildroot}
%makeinstall_std

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog COPYING README INSTALL NEWS TODO
%{_datadir}/*
%{_libdir}/giFT/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1864 |21cr|gigedit-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 5
%define	libname %mklibname %{name} %{major}
%define	develname %mklibname %{name} -d

Name:		gigedit
Summary:	Instrument editor for gig files
Version:	1.2.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://www.linuxsampler.org/
Source0:	http://download.linuxsampler.org/packages/%{name}-%{version}.tar.bz2
Patch0:		gigedit-pango.patch
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(cairomm-1.0)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(gig) >= 4.1.0
BuildRequires:	pkgconfig(linuxsampler) >= 2.1.0
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(sndfile) >= 1.0.11
Requires:	%{name}-plugins

%description
An instrument editor for gig files.

%files -f %{name}.lang
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/*.png
%doc %{_docdir}/%{name}/*.css
%doc %{_docdir}/%{name}/*.html
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/status_attached.xpm
%{_datadir}/%{name}/status_detached.xpm

#--------------------------------------------------------------------

%package -n     %{libname}
Group:		System/Libraries
Summary:	Libraries for %{name}
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Librairies from %{name}.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/%{name}/libgigedit.so.%{major}*

#--------------------------------------------------------------------

%package -n     %{develname}
Group:		Development/Other
Summary:	Development libraries for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
Development libraries from %{name}.

%files -n %{develname}
%doc AUTHORS COPYING
%{_libdir}/%{name}/libgigedit.so

#--------------------------------------------------------------------

%package plugins
Group:		Sound
Summary:	Gigedit plugin for LinuxSampler
Requires:	linuxsampler
Requires:	%{name} = %{version}-%{release}

%description plugins
Gigedit plugin for LinuxSampler. This plugin is required when using the Edit
button in QSampler.

%files plugins
%doc AUTHORS COPYING
%{_libdir}/linuxsampler/plugins/*.so

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

# Fix perms
find . -name "*.c" -o -name "*.h"|xargs chmod 0644


%build
export CXXFLAGS="%{optflags} -std=gnu++11"
export LDFLAGS="-lpthread"
%configure --disable-static

#add --tag=CXX for build on aarch64
sed -i 's/(AM_V_lt) $(AM_LIBTOOL/(AM_V_lt) --tag=CXX $(AM_LIBTOOL/' src/gigedit/Makefile

%make


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1865 |21cr|giggle-0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define libgit %mklibname %{name}-git %{major}
%define devname %mklibname -d %{name}

Summary:	Gtk frontend for git
Name:		giggle
Version:	0.7
Release:	6
License:	GPLv2+
Group:		Development/Other
Url:		https://wiki.gnome.org/giggle
Source0:	https://download.gnome.org/sources/%name/%{name}-%{version}.tar.xz
Patch0:		giggle-0.7-gtksourceview-3.8.patch
Patch1:		giggle-0.7-gettext-usage.patch
BuildRequires:	git-core
BuildRequires:	gnome-common
BuildRequires:	intltool >= 0.40.0
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	xsltproc
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(gdk-3.0) >= 3.3.12
BuildRequires:	pkgconfig(gdk-pixbuf-2.0) >= 2.22
BuildRequires:	pkgconfig(gio-2.0) >= 2.30
BuildRequires:	pkgconfig(glib-2.0) >= 2.30
BuildRequires:	pkgconfig(gthread-2.0) >= 2.30
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.3.12
BuildRequires:	pkgconfig(gtksourceview-3.0) >= 3.8
BuildRequires:	pkgconfig(libebook-1.2) >= 3.2
#BuildRequires:	pkgconfig(vte-2.90) >= 0.28
Requires:	git-core

%description
Giggle is a graphical frontend for the git directory tracker.

%files -f %{name}.lang
%doc AUTHORS README NEWS ChangeLog
%{_bindir}/*
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%dir %{_libdir}/%{name}/plugins/%{version}
%{_libdir}/%{name}/plugins/%{version}/libpersonal-details*
#{_libdir}/%{name}/plugins/%{version}/libterminal-view*
%{_libdir}/%{name}/plugins/%{version}/*.xml
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for Giggle
Group:		System/Libraries

%description -n %{libname}
Giggle is a graphical frontend for the git directory tracker.

%files -n %{libname}
%{_libdir}/libgiggle.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgit}
Summary:	Shared libraries for Giggle
Group:		System/Libraries
Conflicts:	%{_lib}giggle0 < 0.7

%description -n %{libgit}
Giggle is a graphical frontend for the git directory tracker.

%files -n %{libgit}
%{_libdir}/libgiggle-git.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Giggle
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libgit} = %{EVRD}

%description -n %{devname}
Giggle is a graphical frontend for the git directory tracker.

%files -n %{devname}
%{_libdir}/libgiggle.so
%{_libdir}/libgiggle-git.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%global optflags %{optflags} -fcommon
NOCONFIGURE=yes gnome-autogen.sh
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1866 |21cr|gimagereader-3.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A front-end to tesseract OCR
Name:		gimagereader
Version:	3.4.1
Release:	5
License:	GPLv3+
Group:		Graphics
Url:		https://github.com/manisandro/gImageReader
Source0:	https://github.com/manisandro/gImageReader/releases/download/v%{version}/gimagereader-%{version}.tar.xz
Patch0:		gimagereader-3.4.1-drop-packagekit-use.patch
Patch1:		gimagereader-3.4.1-hard-ru-translate.patch
Patch2:		gimagereader-3.4.1-po-ru-translate.patch
Patch3:		gimagereader-3.4.1-dic-path.patch
Patch4:		gimagereader-3.4.1-default-settings.patch
Patch5:		gimagereader-3.4.1-upstream-200423.patch
# for podofo-0.10.x
Patch6:		gimagereader-podofo-gtk.patch
Patch7:		gimagereader-podofo-qt.patch
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	fontconfig
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	python3
BuildRequires:	python3-gobject-introspection
BuildRequires:	qt5-linguist-tools
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(cairomm-1.0)
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gdkmm-3.0)
BuildRequires:	pkgconfig(gtksourceviewmm-4.0)
BuildRequires:	pkgconfig(gtkspellmm-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpodofo)
#BuildRequires:	pkgconfig(libxml++-3.0) we have 5.0 in repo
BuildRequires:	pkgconfig(libxml++-2.6)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(ompi)
BuildRequires:	pkgconfig(pangomm-1.4)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(QtSpell-qt5)
BuildRequires:	pkgconfig(quazip)
BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	pkgconfig(tesseract)
BuildRequires:	pkgconfig(uuid)

%description
A simple front-end to tesseract. Features include:
 - Automatic page layout detection.
 - User can manually define and adjust recognition regions.
 - Import images from disk, scanning devices, clipboard and screenshots.
 - Supports multi-page PDF documents.
 - Recognized text displayed directly next to the image.
 - Editing of output text, including search/replace and removing line breaks.
 - Spellchecking for output text (if corresponding dictionary installed).

#----------------------------------------------------------------------------

%package common
Summary:	Common files for %{name}
Requires:	tesseract
Recommends:	myspell-en_US
Recommends:	myspell-ru_RU
Recommends:	tesseract-eng
Recommends:	tesseract-rus
BuildArch:	noarch

%description common
Common files for %{name}.

%files common -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_defaultdocdir}/%{name}-common/manual.html
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_iconsdir}/hicolor/128x128/apps/%{name}.png
%{_iconsdir}/hicolor/256x256/apps/%{name}.png
%lang(cs) %{_defaultdocdir}/%{name}-common/manual-cs.html
%lang(ru) %{_defaultdocdir}/%{name}-common/manual-ru.html

#----------------------------------------------------------------------------

%package gtk
Summary:	A Gtk+3 front-end to tesseract OCR
Requires:	%{name}-common = %{EVRD}
Requires:	hicolor-icon-theme

%description gtk
A simple front-end to tesseract. Features include:
 - Automatic page layout detection.
 - User can manually define and adjust recognition regions.
 - Import images from disk, scanning devices, clipboard and screenshots.
 - Supports multi-page PDF documents.
 - Recognized text displayed directly next to the image.
 - Editing of output text, including search/replace and removing line breaks.
 - Spellchecking for output text (if corresponding dictionary installed).
This package contains the Gtk+3 front-end.

%files gtk
%doc AUTHORS NEWS README.md
%license COPYING
%{_appdatadir}/%{name}-gtk.appdata.xml
%{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}-gtk.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml

#----------------------------------------------------------------------------

%package qt5
Summary:	A Qt5 front-end to tesseract OCR
Requires:	%{name}-common = %{EVRD}
Requires:	hicolor-icon-theme

%description qt5
A simple front-end to tesseract. Features include:
 - Automatic page layout detection.
 - User can manually define and adjust recognition regions.
 - Import images from disk, scanning devices, clipboard and screenshots.
 - Supports multi-page PDF documents.
 - Recognized text displayed directly next to the image.
 - Editing of output text, including search/replace and removing line breaks.
 - Spellchecking for output text (if corresponding dictionary installed).
This package contains the Qt5 front-end.

%files qt5
%doc AUTHORS NEWS README.md
%license COPYING
%{_appdatadir}/%{name}-qt5.appdata.xml
%{_bindir}/%{name}-qt5
%{_datadir}/applications/%{name}-qt5.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build

%cmake \
	-DINTERFACE_TYPE=gtk \
	-DENABLE_VERSIONCHECK=0 \
	-DMANUAL_DIR="%{_defaultdocdir}/%{name}-common"
%make
cd ..
mv build build_gtk

%cmake \
	-DINTERFACE_TYPE=qt5 \
	-DENABLE_VERSIONCHECK=0 \
	-DMANUAL_DIR="%{_defaultdocdir}/%{name}-common"
%make
cd ..
mv build build_qt5


%install
mv build_gtk build
%makeinstall_std -C build
mv build build_gtk

mv build_qt5 build
%makeinstall_std -C build
mv build build_qt5

%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-gtk.desktop
%{_bindir}/desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}-qt5.desktop
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}-gtk.appdata.xml
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{name}-qt5.appdata.xml

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1867 |21cr|gimp2-freetype-0.6-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname gimp-freetype

Summary:	A GIMP font renderer based on the freetype library
Name:		gimp2-freetype
Version:	0.6
Release:	15
License:	GPLv2+
Group:		Graphics
Url:		http://freetype.gimp.org/
Source0:	%{pkgname}-%{version}.tar.bz2
#gw for the broken intltool scripts:
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp

%description
The goal of gimp-freetype project is to get superb font support into
The GIMP. As a first step, a plug-in for GIMP based on the freetype2
library is developed. Later it might become a tool or a pluggable
module.

%files -f gimp20-freetype.lang
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/gimp/*/plug-ins/*
%{_datadir}/gimp-freetype

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{version}

%build
export LDFLAGS="-lm"
%configure
%make

%install
%makeinstall_std

%find_lang gimp20-freetype

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1868 |21cr|gimp2-gap-2.6.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname gimp-gap

Summary:	GAP (GIMP Animation Package), a video plug-in for GIMP
Name:		gimp2-gap
Version:	2.6.0
Release:	12
License:	GPLv2+
Group:		Graphics
Url:		http://gimp.org
Source0:	ftp://ftp.gimp.org/pub/gimp/plug-ins/v2.6/gap/%{pkgname}-%{version}.tar.bz2
Patch2:		gimp-gap-2.6.0-libmpeg3-format-strings.patch
Patch3:		gimp-gap-2.6.0-format-strings.patch
Patch4:		gimp-gap-2.6.0-fix-linking.patch
BuildRequires:	glib-gettextize
BuildRequires:	intltool >= 0.17
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp
Requires:	wavplay

%description
The GIMP has some plug-ins supporting animation features based on
layers, with each layer of the image being considered as one frame of
the animation.

GAP is a collection of plug-ins that extend the GIMP's animation
capabilities by supporting the creation of more complex animations. It
was part of the GIMP from 1.1.4 to the 1.2 series, but was split
afterwards.

Additional Informations about the GAP can be found in the GimpUserManual
Chapter Advanced Animation.

%files -f gimp20-gap.lang
%doc AUTHORS ChangeLog* README
%{_libdir}/gimp/2.0/plug-ins/*
%{_libdir}/gimp-gap-2.0
%{_datadir}/gimp/2.0/scripts/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{version}
pushd extern_libs/
tar xzf libmpeg3.tar.gz
%patch2 -p0
popd
%patch3 -p1 -b .format-strings
%patch4 -p1

find . -name "Makefile*" -o -name "*.m4" |xargs sed -i -e 's,configure.in,configure.ac,g'

%build
%define _disable_ld_no_undefined 1
%configure
make LIBS="-lm -pthread"

%install
%makeinstall \
	libexecdir=%{buildroot}%{_libdir}/gimp/2.0/plug-ins \
	scriptdatadir=%{buildroot}%{_datadir}/gimp/2.0/scripts
#gw the makefile is broken, move the file by hand
mkdir -p %{buildroot}%{_libdir}/gimp-gap-2.0
mv %{buildroot}%{_libdir}/gimp/2.0/plug-ins/audioconvert_to_wav.sh %{buildroot}%{_libdir}/gimp-gap-2.0
rm -f %{buildroot}%{_datadir}/gimp/2.0/scripts/*.a

%find_lang gimp20-gap

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1869 |21cr|gimp-data-extras-2.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GNU Image Manipulation Program
Name:		gimp-data-extras
Version:	2.0.2
Release:	6
License:	GPL
Group:		Graphics
Url:		http://www.gimp.org/
Source0:	ftp://ftp.gimp.org/pub/gimp/extras/gimp-data-extras-%{version}.tar.bz2
BuildRequires:	gimp-devel
Requires:	gimp
BuildArch:	noarch

%description
Patterns, gradients etc. for gimp. This package isn't required, but contains
lots of goodies for gimp.

%files
%defattr(-,root,root,755)
%doc README NEWS
%{_datadir}/gimp/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall GIMP_DATA_DIR=%{buildroot}%{_datadir}/gimp/2.0


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1870 |21cr|gimp-lqr-plugin-0.7.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define gettext_name gimp20-lqr-plugin

Summary:	Content-aware image resize plug-in for GIMP
Name:		gimp-lqr-plugin
Version:	0.7.2
Release:	2
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/carlobaldassi/gimp-lqr-plugin
# Check for dolbanutost when update
Source0:	https://github.com/carlobaldassi/gimp-lqr-plugin/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(lqr-1)
Requires:	gimp

%description
This package is a plug-in for GIMP 2.4. It implements the algorithm
described in the paper "Seam Carving for Content-Aware Image Resizing"
by Shai Avidan and Ariel Shamir, which can be found at
http://www.faculty.idc.ac.il/arik/imret.pdf

%files -f %{gettext_name}.lang
%doc AUTHORS ChangeLog NEWS README TODO
%{_datadir}/gimp/2.0/scripts/batch-gimp-lqr.scm
%{_datadir}/%{name}
%{_libdir}/gimp/2.0/plug-ins/%{name}
%{_libdir}/gimp/2.0/plug-ins/plug_in_lqr_iter

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{gettext_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1871 |21cr|gimp-perl-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Allows GIMP extensions/plug-ins/load & save handlers in Perl
Name:		gimp-perl
Version:	2.3
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://gitlab.gnome.org/GNOME/gimp-perl
Source0:	https://cpan.metacpan.org/authors/id/S/SJ/SJBURGES/Gimp-%{version}.tar.gz
Patch1:		Gimp-2.2-fix-str-fmt.patch
Patch2:		Gimp-2.2-linkage.patch
Patch3:		fix-detect-gimp-2.10.patch
Patch4:		fix-PDL-detection.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Alien::Gimp)
BuildRequires:	perl(Cairo)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(ExtUtils::PkgConfig)
BuildRequires:	perl(Glib::Install::Files)
BuildRequires:	perl(Gtk2)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(IO::All)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Web::Scraper)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
Allows GIMP extensions/plug-ins/load & save handlers in Perl.

%files
%doc AUTHORS ChangeLog Changes MAINTAINERS META.json META.yml NEWS README TODO UI examples
%license COPYING
%{_bindir}/*
%{_libdir}/gimp/2.0/plug-ins/*
%{_mandir}/*/*
%{perl_vendorarch}/*

#------------------------------------------------------------------

%prep
%autosetup -p0 -n Gimp-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
mkdir -p %{buildroot}%{_libdir}/gimp/2.0/plug-ins
make DESTDIR=%{buildroot} pure_vendor_install
install -m 755 examples/* %{buildroot}%{_libdir}/gimp/2.0/plug-ins/
perl -pi -e "s^/opt/bin/perl^%{_bindir}/perl^" %{buildroot}%{_libdir}/gimp/2.0/plug-ins/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1872 |21cr|gimp-plugin-animstack-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_name animstack.scm

Name:		gimp-plugin-animstack
Version:	0.5
Release:	3
Url:		http://registry.gimp.org/node/26501
Source0:	http://registry.gimp.org/files/%{_name}
Source1:	README
Summary:	A collection of tools to simplify creating animations in GIMP
License:	BSD
Group:		Graphics

BuildArch:	noarch

Requires:	gimp >= 2.8.0

Provides:	animstack-gimp = %{version}-%{release}

%description
AnimStack is a collection of tools to simplify creating animations in GIMP.
It makes heavy use of Layer Groups, introduced in GIMP 2.8.

This script also includes my Flatten Layer Groups script.

The typical work flow goes like this:

  * create frames for your animation
  * add foreground and/or background layer(s).
  * tag them with appropriate AnimStack tags by putting them in square brackets 
    anywhere in the layer's name
  * Select Filters -> Animation -> Process AnimStack tags
  * the script adds foreground and background to each untagged frame

%install
mkdir -p %{buildroot}
cp %{S:1} .
install -D -m644 %{S:0} %{buildroot}%{_datadir}/gimp/2.0/scripts/%{_name}

%files
%doc README
%{_datadir}/gimp/2.0/scripts/%{_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1873 |21cr|gimp-plugin-astronomy-0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define moname %{name}
%define plugindir %{_libdir}/gimp/2.0/plug-ins
%define scriptdir %{_datadir}/gimp/2.0/scripts

Summary:	Astronomy plugins for the GIMP graphic editor
Name:		gimp-plugin-astronomy
Version:	0.10
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://hennigbuam.de/georg/gimp.html
Source0:	http://www.hennigbuam.de/georg/downloads/%{name}-%{version}.tar.bz2
#fix docdir to standard location (/usr/share/doc/gimp-plugin-astronomy)
Patch0:		gimp-plugin-astronomy-0.8_docdir.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	gimp

%description
Gimp Astronomy is a set of plug-ins for the Gimp graphic editor
intended for astronomical image processing. They support various basic
and more advanced tasks such as aligning and stacking images with
arithmetic, geometric, median, or sigma mean, removing dark frames and
dividing by a flat field. Some plug-gins are designed for creating
synthetic stars distribution or synthetic galaxy images.

%files -f %{moname}.lang
%doc README AUTHORS
%doc %{_datadir}/doc/gimp-plugin-astronomy/documentation.pdf
%doc %{_datadir}/doc/gimp-plugin-astronomy/documentation.tex
%{scriptdir}/*.scm
%{plugindir}/astronomy-*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
#export LIBS="-lm"
%configure \
    CPPFLAGS=-D_XOPEN_SOURCE=700
%make

%install
%makeinstall_std INSTALLDIR="%{buildroot}/%{plugindir}" \
      LOCALEDIR="%{buildroot}/%{_datadir}/locale"

%find_lang %{moname}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1874 |21cr|gimp-plugin-beautify-0.5.3-1.gita6ae72.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname beautify-gimp2.9
%define commit a6ae727581ceb69945137f92157e730498332ab8
%define commit_short %(echo %{commit} | head -c6)

Summary:	GIMP plug-ins for quickly and easily beautify photos
Name:		gimp-plugin-beautify
Version:	0.5.3
Release:	1.git%{commit_short}.1
License:	GPLv3.0+
Group:		Graphics
Url:		https://github.com/elfringham/beautify-gimp2.9
Source0:	https://github.com/elfringham/beautify-gimp2.9/archive/%{commit}.tar.gz?/%{oname}-%{commit}.tar.gz
BuildRequires:	pkgconfig(gimp-2.0)

%description
GIMP Beautify is a set of GIMP plug-ins for quickly and easily beautify photos.

%files
%doc README.md
%{_libdir}/gimp/2.0/plug-ins/beautify
%{_libdir}/gimp/2.0/plug-ins/border
%{_libdir}/gimp/2.0/plug-ins/simple-border
%{_libdir}/gimp/2.0/plug-ins/skin-whitening

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{commit}

%build
%make

%install
mkdir -p %{buildroot}%{_libdir}/gimp/2.0/plug-ins
cp beautify border simple-border skin-whitening %{buildroot}%{_libdir}/gimp/2.0/plug-ins

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1875 |21cr|gimp-plugin-bgmask-0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_name bgmask.scm

Name:		gimp-plugin-bgmask
Version:	0.1
Release:	3
Url:		http://registry.gimp.org/node/27601
Source0:	http://registry.gimp.org/files/%{_name}
Summary:	A useful script to extract, to mask and to average
License:	BSD
Group:		Graphics

BuildArch:	noarch

Requires:	gimp >= 2.8.0

Provides:	bgmask-gimp = %{version}-%{release}

%description
This script adds three tools under Script-Fu - BgMask: 
 * Extract background...
 * Mask against background..."
 * Average linked layers...

%install
mkdir -p %{buildroot}
install -D -m644 %{S:0} %{buildroot}%{_datadir}/gimp/2.0/scripts/%{_name}

%files
%{_datadir}/gimp/2.0/scripts/%{_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1876 |21cr|gimp-plugin-bimp-2.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _name bimp

Summary:	Batch Image Manipulation Plugin
Name:		gimp-plugin-bimp
Version:	2.6
Release:	3
License:	GPLv2+
Group:		Graphics
Url:		http://www.alessandrofrancesconi.it/projects/bimp/
Source:		https://github.com/alessandrofrancesconi/gimp-plugin-bimp/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		gimp-plugin-bimp-debug.patch
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp
Provides:	%{_name} = %{EVRD}

%description
Use BIMP to apply a set of GIMP manipulations to groups of images.
It provides an easy to use interface and a lot of functions! 
It's written in C using the latest GTK directives.
The plugin is in beta release and it's tested to work on GIMP
starting from 2.6 version.

%files
%license LICENSE
%{_libdir}/gimp/2.0/plug-ins/%{_name}

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make

%install
install -D -m755 bin/%{_name} %{buildroot}%{_libdir}/gimp/2.0/plug-ins/%{_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1877 |21cr|gimp-plugin-dbp-1.1.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fversion %(echo %{version}|sed s/\\\\\./-/g)
%define oname dbp

Summary:	David's Batch Processor for The GIMP
Name:		gimp-plugin-dbp
Version:	1.1.9
Release:	7
License:	GPLv2+
Group:		Graphics
Url:		http://members.ozemail.com.au/~hodsond/dbp.html
Source0:	http://www.ozemail.com.au/~hodsond/%{oname}Src-%{fversion}.tgz
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp
Provides:	gimp-dbp = %{EVRD}

%description
DBP (David's Batch Processor) is a simple batch processing plugin for
the Gimp - it allows the user to automatically perform operations
(such as resize) on a collection of image files. Its main advantage is
that the user does not have to learn a scripting language. Like the
Gimp itself, DBP relies on a graphical interface. The user creates a
list of images, and sets up the processing required for each
image. The results of the current settings can be displayed. Once the
required sequence of operations has been set up, DBP performs the same
processing on each image in turn. The images can be colour corrected,
resized, cropped, and sharpened, then renamed and saved to a different
file in a specified image format. All the steps (except loading and
saving the image!) are optional; so the simplest use of DBP is just to
convert a number of image files from one format to another.

Note that DBP is intended for RGB, not indexed images. Trying to
process an indexed image will probably just cause an error, and DBP
will halt. Also, DBP will not overwrite the original image (in fact,
it should not overwrite any file) - images must at least be either
renamed (possibly by changing the image format) or moved to a
different directory.

%files
%doc %{oname}.html *.png
%{_libdir}/gimp/2.0/plug-ins/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%make \
	CPPFLAGS="%{optflags}" \
	NODEPS=""

%install
install -D -m 755 %{oname} %{buildroot}%{_libdir}/gimp/2.0/plug-ins/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1878 |21cr|gimp-plugin-normalmap-1.2.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Generate normalmap from image with GIMP
Name:		gimp-plugin-normalmap
Version:	1.2.3
Release:	3
Group:		Graphics
License:	GPLv2
Url:		https://github.com/hhirsch/gimp-normalmap
Source0:	https://github.com/hhirsch/gimp-normalmap/archive/release-%{version}.tar.gz?/gimp-normalmap-release-%{version}.tar.xz
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkglext-1.0)

%description
This is a plugin for GIMP version 2.4.x. It allows you to convert
images into RGB normal maps for use in per-pixel lighting applications.
The goal is to completely clone NVIDIA's photoshop plugin, with a few
new useful features.

%files 
%doc README
%license COPYING
%{_libdir}/gimp/2.0/plug-ins/normalmap

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n gimp-normalmap-release-%{version}

%build
%make LDFLAGS="-Wl,--copy-dt-needed-entries"

%install
install -d %{buildroot}%{_libdir}/gimp/2.0/plug-ins
install -D -m 755 normalmap %{buildroot}%{_libdir}/gimp/2.0/plug-ins/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1879 |21cr|gimp-plugin-saveforweb-0.29.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: gimp-plugin-saveforweb
Version: 0.29.3
Release: 2
Summary: Save for web plug-in for GIMP
Group: Graphics
License: GPLv2+
URL: http://registry.gimp.org/node/33
Source0: http://registry.gimp.org/files/gimp-save-for-web-%{version}.tar.bz2
Patch0000: gimp-plugin-saveforweb-fsf.patch
Patch0001: 0001-Changed-all-Save-entries-to-Export-moved-the-menu-item-to-the-Export-subgroup.patch
Patch0002: 0002-Updated-Russian-translation-to-match-the-introduced-changes.patch
Patch0003: 0003-Allow-still-larger-images.patch

BuildRequires: gimp-devel >= 2.4.0
BuildRequires: pkgconfig
BuildRequires: intltool
BuildRequires: gettext

Requires: gimp >= 2.4

%description
Save for Web allows to find compromise between minimal file size
and acceptable quality of image quickly. While adjusting various
settings, you may explore how image quality and file size change.
Options to reduce file size of an image include setting compression
quality, number or colors, resizing, cropping, Exif information
removal, etc.

%prep
%setup -q -n gimp-save-for-web-%{version}
%autopatch -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang gimp20-save-for-web

%files -f gimp20-save-for-web.lang
%doc AUTHORS ChangeLog NEWS README
%doc COPYING
%{_libdir}/gimp/2.0/plug-ins/webexport
%{_datadir}/gimp-save-for-web

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1880 |21cr|gimp-plugin-separate-0.5.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname separate+
%define oname gimp20-separate

Summary:	CYMK plugins for the GIMP graphic editor
Name:		gimp-plugin-separate
Version:	0.5.9
Release:	2
License:	GPLv2+
Group:		Graphics
Url:		http://cue.yellowmagic.info/softwares/separate-plus/index.html
Source0:	http://sourceforge.jp/projects/separate-plus/downloads/47873/%{srcname}-%{version}-alpha3.zip
Source1:	gimp-plugin-separate.metainfo.xml
Patch0:		separate+-0.5.9-lcms2.patch
Patch1:		separate+-0.5.9-no-strip.patch
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libtiff-4)
Requires:	gimp

%description
Separate+ is a project and plug-ins package aimed mainly for
complementing color management functionality of GIMP and for assisting
publication (Web, printing etc.) activities by utilizing open source
software. This package includes three plug-ins: a plug-in for RGB to
CMYK conversion, saving and soft-proofing; a plug-in for RGB to RGB
conversion and profile management, and finally a plug-in for importing
CMYK TIFF files.

%files -f %{oname}.lang
%doc README README_ICC_COLORSPACE
%{_appdatadir}/%{name}.metainfo.xml
%{_libdir}/gimp/2.0/plug-ins/separate
%{_libdir}/gimp/2.0/plug-ins/separate_import
%{_libdir}/gimp/2.0/plug-ins/icc_colorspace

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%make \
	CM="-DENABLE_COLOR_MANAGEMENT %{optflags}" \
	LDFLAGS="%{ldflags}" \
	TIFF_LIB="-ltiff" \
	JPEG_LIB="-ljpeg -lm"

%install
%makeinstall_std \
	INSTALLDIR="%{buildroot}%{_libdir}/gimp/2.0/plug-ins" \
	LOCALEDIR="%{buildroot}%{_localedir}"

install -m 644 %{SOURCE1} -D %{buildroot}%{_appdatadir}/%{name}.metainfo.xml

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1881 |21cr|gimp-plugin-wavelet-decompose-0.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname wavelet-decompose

Summary:	Gimp plugin to decomposes a layer into layers of wavelet scales
Name:		gimp-plugin-%{sname}
Version:	0.1.2
Release:	6
License:	GPLv2+
Group:		Graphics
Url:		http://registry.gimp.org/node/11742
Source0:	http://registry.gimp.org/files/%{sname}-%{version}.tar.gz
Patch0:		wavelet-decompose-0.1.2-optflags.patch
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp

%description
This plugin losslessly decomposes a layer of an image into layers of wavelet
scales. This means that you can edit the image on different detail scales.
The trivial recomposition of the image can be done by GIMP's layer modes so
you can see the results of your modifications instantly.

Among the applications are:
 - retouching
 - noise reduction
 - enhancing global contrast

%files -f gimp20-%{sname}-plug-in.lang
%doc COPYING AUTHORS ChangeLog THANKS README TRANSLATIONS
%{_libdir}/gimp/2.0/plug-ins/%{sname}

#----------------------------------------------------------------------------

%prep
%setup -qn %{sname}-%{version}
%patch0 -p1
sed -i s,"install -v","install -D -v",g po/Makefile

%build
%make OPT_FLAGS="%{optflags}"

%install
make -C po install LOCALEDIR=%{buildroot}%{_datadir}/locale
install -Dm 755 src/%{sname} %{buildroot}%{_libdir}/gimp/2.0/plug-ins/%{sname}

%find_lang gimp20-%{sname}-plug-in

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1882 |21cr|gimp-plugin-wavelet-denoise-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	sname wavelet-denoise

Summary:	The wavelet denoise Gimp plugin is a tool to reduce noise
Name:		gimp-plugin-%{sname}
Version:	0.4
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/mrossini-ethz/gimp-wavelet-denoise
Source0:	https://github.com/mrossini-ethz/gimp-wavelet-denoise/archive/v%{version}.tar.gz?/gimp-%{sname}-%{version}.tar.gz
Patch0:		gimp-wavelet-denoise-0.4-flags.patch
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp

%description
The wavelet denoise plugin is a tool to reduce noise in each channel of an
image separately. The default colour space to do denoising is YCbCr which has
the advantage that chroma noise can be reduced without affecting image details.
Denoising in CIELAB (L*a*b*) or RGB is available as an option. The user
interface allows colour mode and preview channel selection. The denoising
threshold can be set for each colour channel independently.

%files -f gimp20-%{sname}-plug-in.lang
%doc AUTHORS ChangeLog THANKS README TRANSLATIONS
%license COPYING
%{_libdir}/gimp/2.0/plug-ins/%{sname}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gimp-%{sname}-%{version}
sed -i s,"install -v","install -D -v",g po/Makefile
sed -i s,"(LIBS)","(LIBS) -lm",g src/Makefile
sed -i s,"*.c","*.c -lm",g src/Makefile

%build
%setup_compile_flags
%make

%install
make -C po install LOCALEDIR=%{buildroot}%{_datadir}/locale
install -Dm 755 src/%{sname} %{buildroot}%{_libdir}/gimp/2.0/plug-ins/%{sname}

%find_lang gimp20-%{sname}-plug-in

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1883 |21cr|gimp-plugin-wavelet-sharpen-0.1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define sname wavelet-sharpen

Summary:	Gimp plugin to sharpen image by increasing contrast in high frequency space
Name:		gimp-plugin-%{sname}
Version:	0.1.2
Release:	7
License:	GPLv2+
Group:		Graphics
Url:		http://registry.gimp.org/node/9836
Source0:	http://registry.gimp.org/files/%{sname}-%{version}.tar.gz
Patch0:		wavelet-sharpen-0.1.2-optflags.patch
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp

%description
The wavelet sharpen plugin enhances apparent sharpness of an image by
increasing contrast in high frequency space. The amount of unsharpness
of the original image can be taken into account by adjusting the sharpening
radius. As an option you can choose to sharpen the luminance (YCbCr)
channel of the image only.

%files -f gimp20-%{sname}-plug-in.lang
%doc AUTHORS ChangeLog THANKS README TRANSLATIONS
%license COPYING
%{_libdir}/gimp/2.0/plug-ins/%{sname}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{sname}-%{version}
sed -i s,"install -v","install -D -v",g po/Makefile

%build
%make

%install
make -C po install LOCALEDIR=%{buildroot}%{_datadir}/locale
install -Dm 755 src/%{sname} %{buildroot}%{_libdir}/gimp/2.0/plug-ins/%{sname}

%find_lang gimp20-%{sname}-plug-in

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1884 |21cr|gimp-resynthesizer-2.0.3-1.gitc44500.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit c44500b86e298433c32b0a4b05caf63b8811f959
%define commit_short %(echo %{commit} | head -c6)

Summary:	Gimp plug-in for texture synthesis
Name:		gimp-resynthesizer
Version:	2.0.3
Release:	1.git%{commit_short}.2
License:	GPLv2+
Group:		Graphics
Url:		http://logarithmic.net/pfh/resynthesizer
#Source0:	https://github.com/bootchk/resynthesizer/archive/%%{commit}.tar.gz?/%%{name}-%%{commit}.tar.gz
# switch to fork without python2
Source0:	https://github.com/itr-tert/gimp-resynthesizer-scm/archive/%{commit}.zip?/%{name}-%{commit}.zip
Patch0:		resynthesizer-2.0.3-fix-linking.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp
Provides:	gimp2-resynthesizer = %{EVRD}

%description
Resynthesizer is a Gimp plug-in for texture synthesis. Given a sample of a
texture, it can create more of that texture. This has uses including:
- Creating more of a texture (including creation of tileable textures)
- Removing objects from images (great for touching up photos)
- Creating themed images (by transfering a texture from one image to another)

%files
%doc README.md COPYING
%{_libdir}/gimp/*/plug-ins/*
%{_datadir}/resynthesizer
%{_datadir}/gimp/2.0/scripts/resynthesizer-scm

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gimp-resynthesizer-scm-%{commit}

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

#find_lang resynthesizer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1885 |21cr|gimp-saveforweb-plugin-0.29.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: gimp-saveforweb-plugin
Version: 0.29.3
Release: 2
Summary: Save for web plug-in for GIMP
Group: Graphics
License: GPLv2+
URL: http://registry.gimp.org/node/33
Source0: http://registry.gimp.org/files/gimp-save-for-web-%{version}.tar.bz2
Patch0000: gimp-saveforweb-plugin-fsf.patch
Patch0001: 0001-Changed-all-Save-entries-to-Export-moved-the-menu-item-to-the-Export-subgroup.patch
Patch0002: 0002-Updated-Russian-translation-to-match-the-introduced-changes.patch
Patch0003: 0003-Allow-still-larger-images.patch

BuildRequires: gimp-devel >= 2.4.0
BuildRequires: pkgconfig
BuildRequires: intltool
BuildRequires: gettext

Requires: gimp >= 2.4

%description
Save for Web allows to find compromise between minimal file size
and acceptable quality of image quickly. While adjusting various
settings, you may explore how image quality and file size change.
Options to reduce file size of an image include setting compression
quality, number or colors, resizing, cropping, Exif information
removal, etc.

%prep
%setup -q -n gimp-save-for-web-%{version}
%autopatch -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang gimp20-save-for-web

%files -f gimp20-save-for-web.lang
%doc AUTHORS ChangeLog NEWS README
%doc COPYING
%{_libdir}/gimp/2.0/plug-ins/webexport
%{_datadir}/gimp-save-for-web

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1886 |21cr|gimp-scripts-40-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gimp_ver 2.8

Name:		gimp-scripts
Summary:	Collection of script-FUs for GIMP
Version:	40
Release:	6
License:	GPLv2+ and GPLv3+
Group:		Graphics
URL:		http://www.gimphelp.org
Source0:	http://www.gimphelp.org/DL/gimp_scripts-%{gimp_ver}.tar.bz2
BuildArch:	noarch
Requires:	gimp >= %{gimp_ver}

%description
Script-FUs working with gimp 2.8.

%prep
%setup -q -n gimp_scripts-%{gimp_ver}

%build

%install
install -d %{buildroot}%{_datadir}/gimp/2.0/scripts/
install -d %{buildroot}%{_datadir}/gimp/2.0/gimpressionist/
install -m 644 *.scm %{buildroot}%{_datadir}/gimp/2.0/scripts/
cp -ar Presets %{buildroot}%{_datadir}/gimp/2.0/gimpressionist/Presets

%files
%{_datadir}/gimp/2.0/scripts/*
%{_datadir}/gimp/2.0/gimpressionist/Presets/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1887 |21cr|ginac-1.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname ginac %{major}
%define devname %mklibname ginac -d
%define sdevname %mklibname ginac -d -s

Summary:	C++ class library for symbolic calculations
Name:		ginac
Version:	1.8.4
Release:	1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://www.ginac.de/
Source0:	https://www.ginac.de/ginac-%{version}.tar.bz2
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	transfig
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(cln)
BuildRequires:	pkgconfig(ncurses)
Provides:	GiNaC = %{EVRD}

%description
GiNaC is Not a Cocktail.

GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra
System)") is an open framework for symbolic computation within the
C++ programming language.

%files
%doc AUTHORS NEWS README
%{_bindir}/ginsh
%{_bindir}/viewgar
%{_mandir}/man1/ginsh.1*
%{_mandir}/man1/viewgar.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ class library for symbolic calculations
Group:		Sciences/Mathematics

%description -n %{libname}
GiNaC is Not a Cocktail.

GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra
System)") is an open framework for symbolic computation within the
C++ programming language.

This package provides the core GiNaC libraries.

%files -n %{libname}
%{_libdir}/libginac.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes and more for developing GiNaC applications
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
GiNaC is Not a Cocktail.

GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra
System)") is an open framework for symbolic computation within the
C++ programming language.

This is the libraries, include files and other resources you can use
for developing GiNaC applications.

%files -n %{devname}
%doc ChangeLog
%{_libexecdir}/ginac-excompiler
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_infodir}/*.info*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for developing GiNaC applications
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	ginac-static-devel = %{EVRD}

%description -n %{sdevname}
GiNaC is Not a Cocktail.

GiNaC (which stands for "GiNaC is Not a CAS (Computer Algebra
System)") is an open framework for symbolic computation within the
C++ programming language.

This is the static libraries which you can use
for developing GiNaC applications.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-rpath \
	--enable-static
%make

%install
%makeinstall_std

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1888 |21cr|ginxi-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		ginxi
Version:	1.5
Release:	1
Summary:	GINXI - Simple GUI for INXI
Group:		System/Configuration/Hardware
License:	GPLv3
URL:		https://github.com/AKotov-dev/ginxi
Source0:	https://github.com/AKotov-dev/ginxi/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	ginxi
Source2:	ginxi.png
Source3:	ginxi.desktop
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	inxi
Requires:	gtk2


%description
GINXI - simple GUI for INXI
inxi is a full featured CLI system information tool. It is available in most Linux distribution repositories,
and does its best to support the BSDs. http://smxi.org/docs/inxi.htm

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt locale/lclstrconsts.ru.po -o locale/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/locale

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp -r png %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp locale/*.mo %{buildroot}%{_datadir}/%{name}/locale/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1889 |21cr|girara-0.3.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name}-gtk3_ %{major}
%define devname %mklibname %{name}-gtk3 -d

Name:		girara
Version:	0.3.7
Release:	1
Summary:	Simple user interface library
Group:		Development/Other
License:	zlib
URL:		http://pwmt.org/projects/girara
Source0:	http://pwmt.org/projects/girara/download/girara-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)

%description
Girara is a library that implements a user interface that focuses on simplicity
and minimalism.

#-------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Simple user interface library
Group:		System/Libraries
Recommends:	%{name}-i18n >= %{EVRD}

%description -n %{libname}
Girara is a library that implements a user interface that focuses on simplicity
and minimalism.

%files -n %{libname}
%{_libdir}/libgirara-gtk3.so.%{major}
%{_libdir}/libgirara-gtk3.so.%{major}.*

#-------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{_lib}%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%license LICENSE
%doc AUTHORS README.md
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/girara-gtk3.pc
%{_libdir}/libgirara-gtk3.so

#-------------------------------------------------------------------------------

%package i18n
Summary:	Internationalization and locale data for %{name}
Group:		System/Libraries
BuildArch:	noarch

%description i18n
Internationalization and locale data for %{name}

%files i18n -f lib%{name}-gtk3-%{major}.lang

#-------------------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
	-Dnotify=enabled
%meson_build

%install
%meson_install

# fcami - I wish upstream used a consistent naming scheme
%find_lang lib%{name}-gtk3-%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1890 |21cr|girl-10.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Internet Radio Locator program
Name:		girl
Version:	10.0.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://girl.software/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/girl/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gstreamer-player-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(libgnome-2.0)
BuildRequires:	pkgconfig(libgnomecanvas-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	streamripper >= 1.64.6
Requires:	totem >= 3.10.1

%description
GIRL is a GNOME Internet Radio Locator program that allows the user
to easily find and record live radio programs on radio broadcasters
on the Internet.

GIRL is developed on the GNOME platform and it requires at least
one audio player such as Totem to be installed for playback and
streamripper for recording.

Enjoy Internet Radio.

%files -f %{name}.lang
%doc AUTHORS COPYING LETTER NEWS README TODO YP-DIRS
%{_bindir}/girl
%{_datadir}/girl/
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/girl.desktop
%{_datadir}/icons/*/*/apps/girl*.*
%{_mandir}/man1/girl.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fcommon
%configure \
	--with-recording \
	--disable-silent-rules

%make

%install
%makeinstall_std

%find_lang %{name} --with-man --with-gnome --all-name

appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/girl.appdata.xml
desktop-file-validate %{buildroot}/%{_datadir}/applications/girl.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1891 |21cr|gis-weather-0.8.4.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Customizable weather widget
Name:		gis-weather
Version:	0.8.4.17
Release:	1
License:	GPLv3
Group:		Accessibility
Url:		http://sourceforge.net/projects/gis-weather
Source:		https://github.com/RingOV/gis-weather/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	gis-weather
Source2:	gis-weather.desktop
BuildRequires:	dos2unix
BuildRequires:	python3
Requires:	python3-gi
Requires:	python3-gi-cairo
Requires:	typelib(AppIndicator3)
Requires:	typelib(PangoFT2)
BuildArch:	noarch

%description
Customizable weather widget.
Features
  * View weather for several days
  * Detailed weather forecast for today and tomorrow
  * Fast switching between cities
  * Select the background and theme weather icons
  * "Compass" with the wind direction, with adjustable angle of rotation
  * Highlighting the high wind
  * Support weather services:
    * Gismeteo.com
    * AccuWeather.com
  * Support SVG and widget scale
  * Indicator to panel
  * Presets

%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}

#--------------------------------------------------------

%prep
%setup -q

%build
dos2unix ./dialogs/settings_dialog.py

%install
install -Dm 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
install -Dm 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -dm 0755 %{buildroot}%{_datadir}/%{name}
echo rpm > %{buildroot}%{_datadir}/%{name}/package
cp -a {dialogs,gis-weather.py,icon.png,i18n,services,themes,utils} %{buildroot}%{_datadir}/%{name}/
grep -rl '^#!' %{buildroot}%{_datadir}/%{name}/ | xargs chmod 0755

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1892 |21cr|git2cl-2.0-0.0.git8373c9f
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Converts git logs to GNU style ChangeLog format
Name: git2cl
Version: 2.0
Release: 0.0.git8373c9f
Group: Development/Other
License: GPLv2+
URL: http://josefsson.org/git2cl/
# Source is generated from a git tag. This
# shows an example of producing a tar ball from
# the  2.0 tag.
# git clone http://repo.or.cz/r/git2cl.git 
# cd git2cl
# git archive --prefix=git2cl-2.0/  git2cl-2.0 | gzip -c > git2cl-2.0.tar.gz
# And finally to get git hash for use in the release.
# git checkout git2cl-2.0
Source0: git2cl-2.0.tar.gz
BuildArch: noarch
Requires: git

%description
A quick tool to convert git logs to GNU ChangeLog format.

The tool invokes git log internally unless you pipe a log to it. 

%prep

%setup -q

%build
# Nothing to build.

%install
install -d %{buildroot}%{_bindir}
install -m0755 git2cl %{buildroot}%{_bindir}/git2cl

%files
%doc README COPYING
%{_bindir}/git2cl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1893 |21cr|git-archive-all-1.23.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python script wrapper for git-archive
Name:		git-archive-all
Version:	1.23.1
Release:	1
License:	MIT
Group:		Development/Tools
Url:		https://github.com/Kentzo/git-archive-all
Source0:	https://github.com/Kentzo/git-archive-all/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
This is a python script wrapper for git-archive, allowing to process also the
submodules. It Supports for any level of submodules tree. It creates an
archive from the current tree state by using:
"git ls-files --cached --full-name --no-empty-directory".
Files from submodules are extracted using the same command.

%files
%doc README.rst
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q
sed -i 's@^#! /usr/bin/env python$@#! /usr/bin/env python3@' git_archive_all.py


%build
# Nothing to do


%install
%makeinstall_std prefix=%{buildroot}%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1894 |21cr|git-cola-3.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical user interface for Git
Name:		git-cola
Version:	3.11.0
Release:	1
License:	GPLv2
Group:		Development/Tools
Url:		https://git-cola.github.io
Source0:	https://github.com/git-cola/git-cola/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  dos2unix
BuildRequires:  git-core
BuildRequires:  python3
BuildRequires:  python3-sphinx
BuildRequires:  python3-devel
BuildRequires:  python3-pyinotify
BuildRequires:  python3-qt5
BuildArch:      noarch
Requires:       git-core
Requires:       python3-qt5
Recommends:     gitk
Recommends:     python3-Send2Trash
Recommends:     python3-pyinotify

%description
Git Cola is a sleek and powerful graphical user interface for Git.

%files -f %{name}.lang
%{_bindir}/cola
%{_bindir}/git-cola
%{_bindir}/git-dag
%{_bindir}/git-cola-sequence-editor
%dir %{_datadir}/git-cola
%{_datadir}/git-cola/*
%{_datadir}/applications/git-cola.desktop
%{_datadir}/applications/git-dag.desktop
%{_datadir}/applications/git-cola-folder-handler.desktop
%{_datadir}/icons/hicolor/scalable/apps/git-cola.svg
%dir %{_datadir}/doc/git-cola
%{_datadir}/doc/git-cola/*
%{_mandir}/man1/*.*
%{_datadir}/metainfo/git-cola.appdata.xml
%{_datadir}/metainfo/git-dag.appdata.xml
%dir %{python3_sitelib}/cola
%{python3_sitelib}/cola/*
%{python3_sitelib}/git_cola*

%prep
%setup -q

%build
dos2unix qtpy/py3compat.py

%install
%make_install prefix=%{_prefix} DESTDIR=%{buildroot} PYLINT=pylint3 PYTHON=python3 PIP=pip3
make install-man prefix=%{_prefix} DESTDIR=%{buildroot}  PYLINT=pylint3 PYTHON=python3 PIP=pip3

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1895 |21cr|gitea-1.16.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Self-hosted git service
Name:    gitea
Version: 1.16.8
Release: 4
License: MIT
Group:   Development/Other
Url:     https://gitea.io
Source0: https://github.com/go-gitea/gitea/releases/download/v%{version}/gitea-src-%{version}.tar.gz
Source1: gitea.sysusers.conf
Source2: gitea.service
Source3: gitea.service.d.conf
Patch2: ALT_config.patch
Patch3: disable-strip.patch
BuildRequires: golang
BuildRequires: pam-devel
Requires: git-core
Requires(pre): /bin/systemd-sysusers

%description
The goal of this project is to make the easiest, fastest, and most painless way
of setting up a self-hosted Git service. It is similar to GitHub, Bitbucket,
and Gitlab. Gitea is a fork of Gogs.

%pre
%sysusers_create_package gitea %{SOURCE1}

%post
%systemd_post gitea.service

%preun
%systemd_preun gitea.service

%files
%license LICENSE
%doc *.md
%{_bindir}/gitea
%dir %attr(0770,gitea,gitea) /var/lib/gitea
%dir %attr(0770,gitea,gitea) /var/log/gitea
%dir %{_sysconfdir}/gitea
%config(noreplace) %attr(0660,root,gitea) %{_sysconfdir}/gitea/app.ini
%dir %{_sysconfdir}/systemd/system/gitea.service.d
%config(noreplace) %{_sysconfdir}/systemd/system/gitea.service.d/port.conf
%{_unitdir}/gitea.service
%{_sysusersdir}/gitea.conf
%{_mandir}/man1/*
%{_datadir}/doc/gitea/default-app.ini

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -c

%build
export BUILDDIR="$PWD/.gopath"
export IMPORT_PATH="code.gitea.io/gitea"
export GOPATH="$BUILDDIR:%{gopath}"

TAGS="bindata sqlite sqlite_unlock_notify pam" \
GITEA_VERSION=%{version} \
%make all

%install
mkdir -p %{buildroot}/var/lib/%{name}
mkdir -p %{buildroot}/var/log/%{name}
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0644 %{SOURCE2} %{buildroot}%{_unitdir}/gitea.service
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/gitea.service.d
install -Dm 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/systemd/system/gitea.service.d/port.conf
install -Dm 0660 custom/conf/app.example.ini %{buildroot}%{_sysconfdir}/%{name}/app.ini

# install docs
mkdir -p %{buildroot}%{_mandir}/man1
./gitea docs --man > %{buildroot}%{_mandir}/man1/gitea.1
mkdir -p %{buildroot}%_docdir/%{name}
install -Dm 0644 custom/conf/app.example.ini %{buildroot}%_docdir/%{name}/default-app.ini

# sysusers config
mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/gitea.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1896 |21cr|git-extras-4.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		git-extras
Version:	4.4.0
Release:	1
Summary:	Little git extras
Group:		Development/Tools

License:	MIT
URL:		https://github.com/tj/%{name}
Source0:	https://github.com/tj/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

BuildArch:	noarch
Requires:	bash-completion git

%description
%{name} adds the following extra-commands to git:

alias, archive-file, bug, changelog, commits-since, contrib, count,
create-branch, delete-branch, delete-submodule, delete-tag, effort,
extras, feature, fresh-branch, gh-pages, graft, ignore, info,
local-commits, obliterate, promote, refactor, release, repl, setup,
squash, summary, touch, undo

For more information about the extra-commands, see the included
README.md, HTML, mark-down or man-pages.


%prep
%setup -q
# scripts already use bash
# remove `/usr/bin/env` from hashbang
sed -i -e "s/\/usr\/bin\/.*sh/\/bin\/bash/g" \
	bin/*

%build


%install
%makeinstall_std PREFIX=%{_prefix} SYSCONFDIR=%{_sysconfdir}
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d \
	 html md
install -pm 0644 man/*.html html
install -pm 0644 man/*.md md


%files
%config(noreplace) %{_sysconfdir}/bash_completion.d
%doc AUTHORS Commands.md History.md Readme.md html/ md/
%doc LICENSE
%{_bindir}/*
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1897 |21cr|gitflow-0.4.2.20120723git53e9c76-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash %(echo %{version} |rev |cut -c1-7 |rev)

Name:       gitflow
Version:    0.4.2.20120723git53e9c76
Release:    3
Summary:    Extensions providing operations for V. Driessen's branching model
Group:      Development/Other
License:    BSD and MIT
URL:        https://github.com/nvie/gitflow
# You can get this tarball by cloning the repository from github and checking
# out revision %%{githash}
Source0:    gitflow-%{version}.tar.gz
# The bash completion stuff is MIT licensed, while the rest is BSD
Source1:    https://raw2.github.com/bobthecow/git-flow-completion/master/git-flow-completion.bash
# There is no upstream ticket for this patch, but instead just hardcodes the
# directory we're installing to for Fedora.
Patch0:     gitflow-Appropriate-GITFLOW_DIR.patch
BuildArch:  noarch

Requires:       shflags
Requires:       git

%description
A collection of Git extensions to provide high-level repository operations
for Vincent Driessen's [branching model](http://nvie.com/git-model "original
blog post").

For the best introduction to get started with `git flow`, please read Jeff
Kreeftmeijer's blog post:

  http://jeffkreeftmeijer.com/2010/why-arent-you-using-git-flow/

Or have a look at one of these screen casts:

* [A short introduction to git-flow]
  (http://vimeo.com/16018419) (by Mark Derricutt)
* [On the path with git-flow]
  (http://codesherpas.com/screencasts/on_the_path_gitflow.mov) (by Dave Bock)

%prep
%setup -q -n %{name}
%patch0 -p1 -b .gitflowdir

%build
# This section is empty because this package ccontains shell scripts
# to be sourced: there's nothing to build

%install
mkdir -p %{buildroot}/%{_bindir}
install -v -m 0755 git-flow %{buildroot}/%{_bindir}

mkdir -p %{buildroot}/%{_datadir}/%{name}
install -v -m 0644 git-flow-init %{buildroot}/%{_datadir}/%{name}
install -v -m 0644 git-flow-feature %{buildroot}/%{_datadir}/%{name}
install -v -m 0644 git-flow-hotfix %{buildroot}/%{_datadir}/%{name}
install -v -m 0644 git-flow-release %{buildroot}/%{_datadir}/%{name}
install -v -m 0644 git-flow-support %{buildroot}/%{_datadir}/%{name}
install -v -m 0644 git-flow-version %{buildroot}/%{_datadir}/%{name}
install -v -m 0644 gitflow-common %{buildroot}/%{_datadir}/%{name}

ln -s %{_datadir}/shflags/shflags %{buildroot}/%{_datadir}/%{name}/gitflow-shFlags

mkdir -p %{buildroot}/%{_sysconfdir}/bash_completion.d/
install -v -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/bash_completion.d

%files
%doc README.mdown LICENSE AUTHORS Changes.mdown
%{_bindir}/git-flow*
%{_datadir}/%{name}
%{_sysconfdir}/bash_completion.d/git-flow-completion.bash

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1898 |21cr|gitg-41-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude libgitg-1.0()|libgitg-ext-1.0

%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api	1.0
%define major	0
%define gmajor	1.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{gmajor}
%define libext %mklibname %{name}-ext %{api} %{major}
%define girext %mklibname %{name}-ext %{gmajor}
%define devname %mklibname %{name} -d

Summary:	GTK+ graphical interface for the git revision control system
Name:		gitg
Version:	41
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gitg
Source0:	https://download.gnome.org/sources/gitg/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gitg-41-meson-positional-arguments.patch
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	valadoc
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(gtkspell3-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libdazzle-1.0)
BuildRequires:	pkgconfig(libgit2-glib-1.0)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
Requires:	git
Requires:	%{libname} = %{EVRD}
Requires:	%{libext} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girext} = %{EVRD}

%description
gitg is a GitX clone for GNOME/gtk+. It aims at being a small, fast and
convenient tool to visualize git history and actions that benefit from a
graphical presentation.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README.md
%{_appdatadir}/org.gnome.%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/glade/catalogs/%{name}-glade.xml
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_iconsdir}/hicolor/*/apps/org.gnome.%{name}*
%{_libdir}/%{name}/plugins/*
%{_mandir}/man1/%{name}.1*
%{py3_puresitedir}/gi/overrides/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library parts of %{name}
Group:		System/Libraries

%description -n %{libname}
gitg is a GitX clone for GNOME/gtk+. It aims at being a small, fast and
convenient tool to visualize git history and actions that benefit from a
graphical presentation.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libext}
Summary:	Shared library parts of %{name}
Group:		System/Libraries

%description -n %{libext}
gitg is a GitX clone for GNOME/gtk+. It aims at being a small, fast and
convenient tool to visualize git history and actions that benefit from a
graphical presentation.

%files -n %{libext}
%doc COPYING
%{_libdir}/lib%{name}-ext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Gitg-%{gmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{girext}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libext} = %{EVRD}

%description -n %{girext}
GObject Introspection interface description for %{name}.

%files -n %{girext}
%doc COPYING
%{_libdir}/girepository-1.0/GitgExt-%{gmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library parts of %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libext} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girext} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
gitg is a GitX clone for GNOME/gtk+. It aims at being a small, fast and
convenient tool to visualize git history and actions that benefit from a
graphical presentation.

%files -n %{devname}
%doc COPYING
%{_includedir}/lib%{name}*-%{api}
%{_libdir}/lib%{name}*-%{api}.so
%{_libdir}/pkgconfig/lib%{name}*-%{api}.pc
%{_datadir}/gir-%{gmajor}/Gitg*-%{gmajor}.gir
%{_datadir}/vala/vapi/lib%{name}*-%{api}.vapi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Ddocs=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1899 |21cr|git-info-bar-1.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		git-info-bar
Version: 	1.2.0
Release: 	4
Summary: 	Shell plugin displaying various git attributes
License:	GPLv2
Group: 		Development/Other
Url: 		https://github.com/comwt/git-info-bar
Source0: 	https://github.com/downloads/comwt/git-info-bar/git-info-bar-%{version}.tar.gz
BuildArch:  noarch

%description
git-info-bar is a shell plugin that endeavors to provide a fast and pronounced
(highly visible) view of various git attributes when you are under the umbrella
of a git repository.  Its main feature, the 'info bar' (information bar),
displays the following:

- current branch (in 'red' if on master)
- current cksum (in 'red' if there are uncommitted changes and
  displays an 'uncommitted changes' message in the message area)
- stash count in the message area if you have stashes

The info bar is only displayed when you are in a git repository's path.

%prep
%setup -q

%build

%install
install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
install -m 644 source/git-info-bar/plugin.perl \
    %{buildroot}%{_sysconfdir}/profile.d/93git-info-bar.sh

%files
%doc README source/git-info-bar/License
%{_sysconfdir}/profile.d/93git-info-bar.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1900 |21cr|gitolite-3.6.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gl_datadir %{_datadir}/%{name}

Name:           gitolite
Summary:        Git hosting tool
Version:	3.6.12
Release:	1
License:        GPLv2
Group:          Development/Other
URL:            http://sitaramc.github.com/gitolite/
Source:         https://github.com/sitaramc/gitolite/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch

%description
Gitolite allows you to setup git hosting on a central server, with
fine-grained access control and many more powerful features.

%prep
%setup -q

%build

%install
install -d %{buildroot}%{gl_datadir}
cp -a src/* %{buildroot}%{gl_datadir}

install -D -m755 check-g2-compat %{buildroot}%{_bindir}/check-g2-compat
install -D -m755 convert-gitosis-conf %{buildroot}%{_bindir}/convert-gitosis-conf
ln -s %{gl_datadir}/gitolite %{buildroot}%{_bindir}/gitolite

%files
%doc CHANGELOG COPYING README.markdown
%{_bindir}/gitolite
%{_bindir}/check-g2-compat
%{_bindir}/convert-gitosis-conf
%{gl_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1901 |21cr|git-review-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A git helper for integration with Gerrit
Name:		git-review
Version:	2.3.1
Release:	1
License:	ASL 2.0
Group:		Development/Tools
Url:		https://github.com/openstack-infra/git-review
# Source from Fedora package
Source0:	https://pypi.python.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
Source1:	git-review.conf
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pbr
BuildRequires:	python3-setuptools
Requires:	git
BuildArch:	noarch

%description
An extension for source control system git that creates and manages review
requests in the patch management system Gerrit. It replaces the rfc.sh script.

%files
%doc AUTHORS LICENSE README.rst
%{_bindir}/git-review
%{_mandir}/man1/git-review.1*
%{python3_sitelib}/git_review/
%{python3_sitelib}/git_review-%{version}-*.egg-info/
%dir %{_sysconfdir}/git-review/
%config(noreplace) %{_sysconfdir}/git-review/git-review.conf

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build
sed -i 's/\r//' LICENSE

%install
%py3_install

install -d %{buildroot}/%{_sysconfdir}/git-review/
install -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/git-review/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1902 |21cr|gitslave-2.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	gitslave creates a group of related repositories
Name:		gitslave
Version:	2.0.2
Release:	2
License:	LGPL 2.1
Group:		Development/Other
Url:		http://gitslave.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/gitslave/%{name}-%{version}.tar.gz
BuildRequires:	perl-Pod-Html
Requires:	git
BuildArch:	noarch

%description
gitslave creates a group of related repositories—a superproject repository 
and a number of slave repositories—all of which are concurrently developed 
on and on which all git operations should normally operate; so when you 
branch, each repository in the project is branched in turn.

%files
%{_bindir}/gits
%{_mandir}/man1/*

#--------------------------------------------------------------------
%prep
%setup -q

%build
sed -i 's#/usr/local#/usr#g' Makefile
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1903 |21cr|gittyup-1.4.0-0.git52bf8b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 52bf8bebe2c2e38b435ce2bed269574b5cf47153
%define commit_short %(echo %{commit} | head -c6)

Summary:	Gittyup is a graphical Git client designed to help you understand and manage your source code history
Name:		gittyup
Version:	1.4.0
Release:	0.git%{commit_short}.1
License:	MIT
Group:		Development/Tools
Url:		https://github.com/Murmele/Gittyup
# clone git, git submodule update --init --recursive --depth 1
# and archive directory
Source0:	gittyup-%{commit}.tar.gz
BuildRequires:  cmake
BuildRequires:  ninja
BuildRequires:  cmark
BuildRequires:  cmark-devel
BuildRequires:	pkgconfig(openssl)
# upstream use patched version libgit2, may be in next version use system libgit2
#BuildRequires:	pkgconfig(libgit2)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	qt5-linguist-tools
BuildRequires:	git-devel
BuildRequires:	qt5-devel
BuildRequires:	lua-devel

%description
Gittyup is a graphical Git client designed to help you understand 
and manage your source code history.

%files
%license %{_datadir}/licenses/Gittyup
%{_bindir}/%{name}
%{_bindir}/indexer
%{_bindir}/relauncher
%{_datadir}/Gittyup
%{_datadir}/applications/gittyup.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/locale/Gittyup
#------------------------------------------------------------------

%prep
%autosetup -p1 -n Gittyup

%build
%cmake -G Ninja -W no-dev \
	-DCMAKE_BUILD_TYPE=Release \
	-DBUILD_SHARED_LIBS=OFF \
	-DDEBUG_OUTPUT=OFF \
	-DENABLE_UPDATE_OVER_GUI=OFF \
	-DUSE_SYSTEM_OPENSSL=ON \
	-DUSE_SYSTEM_LIBGIT2=OFF \
	-DUSE_SYSTEM_LIBSSH2=ON \
	-DUSE_SYSTEM_GIT=ON \
	-DUSE_SYSTEM_QT=ON \
	-DUSE_SYSTEM_LUA=ON \
	-DUSE_SYSTEM_HUNSPELL=ON \
	-DUSE_SYSTEM_CMARK=ON \
	-DENABLE_TESTS=OFF

%ninja_build

%install
%ninja_install -C build

# drop bundled libgit2 parts
rm -r %{buildroot}%{_includedir}
rm -r %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1904 |21cr|givaro-4.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 9
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ library for arithmetic and algebraic computations
Name:		givaro
Version:	4.2.0
Release:	1
License:	CeCILL-B
Group:		Sciences/Mathematics
URL:		https://casys.gricad-pages.univ-grenoble-alpes.fr/givaro
Source0:	https://github.com/linbox-team/givaro/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch1:		givaro-underlink.patch
BuildRequires:	doxygen
BuildRequires:	texlive
BuildRequires:	gmpxx-devel

%description
Givaro is a C++ library for arithmetic and algebraic computations.
Its main features are implementations of the basic arithmetic of many
mathematical entities: Primes fields, Extensions Fields, Finite Fields,
Finite Rings, Polynomials, Algebraic numbers, Arbitrary precision
integers and rationals (C++ wrappers over gmp) It also provides
data-structures and templated classes for the manipulation of basic
algebraic objects, such as vectors, matrices (dense, sparse, structured),
univariate polynomials (and therefore recursive multivariate).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Givaro shared library
Group:		System/Libraries

%description -n %{libname}
This package contains the givaro shared libraries.

%files -n %{libname}
%doc COPYRIGHT Licence_CeCILL-B_V1-en.txt Licence_CeCILL-B_V1-fr.txt
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Givaro development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	gmpxx-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the givaro development files.


%files -n %{devname}
%doc docs/givaro-html docs/givaro-dev-html examples
%{_bindir}/%{name}-config
%{_includedir}/recint
%{_includedir}/%{name}/
%{_includedir}/gmp++/
%{_datadir}/%{name}/
%{_includedir}/%{name}-config.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/givaro.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix file encodings
for i in Licence_CeCILL-B_V1-fr.txt Licence_CeCILL-B_V1-en.txt;
do
	iconv -f  iso8859-1 -t utf-8 $i > $i.new && \
	touch -r $i $i.new && \
	mv $i.new $i
done

%build
%configure \
	--enable-shared \
	--disable-static \
	--enable-doc \
	--docdir=%{_docdir}/%{name}-devel-%{version}

# Fix an unused direct library dependency
sed -i 's/-lm -lgcc_s/-lgcc_s/' libtool

%make

# We don't want these files with the doxygen-generated files
rm -f docs/givaro-html/{AUTHORS,COPYING,INSTALL}

%install
# Documentation installation is hopelessly broken
sed -i 's/^SUBDIRS =.*/SUBDIRS = src macros tests/' Makefile

%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1905 |21cr|giws-2.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generate C++ class wrappers to call Java methods/objects
Name:		giws
Version:	2.0.2
Release:	4
License:	CeCILL
Group:		Development/Python
Url:		http://www.scilab.org/giws/
Source0:	https://github.com/opencollab/giws/archive/%{version}.tar.gz
BuildRequires:	pkgconfig(python2)
BuildArch:	noarch

%description
Giws is basically doing the same stuff as SWIG but the opposite.
Calling Java from C/C++ can be tricky: JNI calls are complicated 
especially when dealing with non primivite types or arrays, 
performance issues must be kept in mind all the time, 
the code can be redundant (checking exceptions, checking returns
of operations...).
Giws hides this complexity through a C++ class which wraps the
Java class.

%files
%doc AUTHORS BUGS README LICENSE CHANGELOG
%{_bindir}/*
%{python2_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -q
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE

%build
%py2_build

%install
%py2_install

pushd %{buildroot}%{python2_sitelib}
find . -type f -name "*.py" -exec chmod +x {} \;
chmod -x classRepresentation/__init__.py datatypes/__init__.py
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1906 |21cr|gjay-0.3.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Automated music manager for DJ applications
Name:		gjay
Version:	0.3.2
Release:	6
License:	GPLv2+
Group:		Sound
Url:		http://gjay.sourceforge.net/
Source0:	%{name}-%{version}.tar.gz
Patch0:		gjay-0.3.2-sfmt.patch
BuildRequires:	pkgconfig(audclient) >= 3.5
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libmpdclient)
BuildRequires:	pkgconfig(vorbis)
Requires:	audacious
Requires:	mp3info
Requires:	mpg321
Requires:	vorbis-tools
# Doesn't get autogenerated as the app doesn't link against it but
# dlopens it: it's not strictly required, so make it a suggests
Recommends:	%{_lib}flac8
Recommends:	%{_lib}mpdclient2
Recommends:	%{_lib}vorbis0
Recommends:	%{_lib}vorbisfile3

%description
GJay (Gtk+ DJ) generates playlists across a collection of music (ogg, mp3,
wav) such that each song sounds good following the previous song. It is ideal
for home users who want a non-random way to wander large collections or for
DJs planning a set list. You can generate playlists from within the
application, or run GJay as a standalone command-line utility.

%files
%doc README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

#menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=GJay
Comment=DJ Collection Manager
Exec=%{_bindir}/%{name}
Icon=sound_section
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;X-MandrivaLinux-CrossDesktop;Audio;Player;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1907 |21cr|gjots2-3.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A hierarchical note jotter - organize your ideas, notes, facts in a tree
Name:		gjots2
Version:	3.1.9
Release:	1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		http://bhepple.freeshell.org/gjots
Source0:	https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tgz
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(python3)
Requires:	python3-gobject
BuildArch:	noarch

%description
gjots2 ("gee-jots" or, if you prefer, "gyachts"!) is a way to marshal
and organize your text notes in a convenient, hierarchical way. For
example, use it for all your notes on Unix, personal bits and pieces,
recipes and even PINs and passwords (encrypted with ccrypt(1), gpg(1)
or openssl(1)).

You can also use it to "mind-map" your compositions - write down all
your thoughts and then start to organize them into a tree. By
manipulating the tree you can easily reorder your thoughts and
structure them appropriately.

%files -f gjots2.lang
%license COPYING
%doc AUTHORS ChangeLog README doc/gjots2.gjots
%doc %lang(en_US) doc/gjots2.en_US.gjots
%doc %lang(fr) doc/gjots2.fr.gjots
%doc %lang(nb) doc/gjots2.nb.gjots
%doc %lang(no) doc/gjots2.no.gjots
%doc %lang(ru) doc/gjots2.ru.gjots
%doc %lang(es) doc/gjots2.es.gjots
%{_bindir}/gjots2
%{_bindir}/gjots2org
%{_bindir}/org2gjots
%{_bindir}/gjots2html*
%{_bindir}/gjots2docbook
%{_bindir}/docbook2gjots
%{_bindir}/gjots2emacs
%{_bindir}/gjots2lpr
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%{_datadir}/%{name}/
%{_datadir}/pixmaps/gjots2.png
%{_datadir}/metainfo/gjots2.metainfo.xml
%{_datadir}/applications/*gjots2.desktop
%{_datadir}/glib-2.0/schemas/org.gtk.gjots2.gschema.xml
%{_mandir}/man1/%{name}*
%{_mandir}/man1/docbook2gjots*

#----------------------------------------------------------------------------

%prep
%setup -q

# Convert to utf-8
for file in doc/man/man1/*.1; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%py3_build

%install
%py3_install

rm -rf %{buildroot}%{_datadir}/doc/gjots2-%{version}/

for file in $(find po/ -name gjots2.mo | sed 's|po/||') ; do
  install -Dpm0644 po/$file %{buildroot}%{_datadir}/locale/$file
done

%find_lang %{name}

desktop-file-install \
        --dir %{buildroot}%{_datadir}/applications              \
        --remove-category Application                           \
        %{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1908 |21cr|gkermit-1.00-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion 100

Summary:	Transfer files with the Kermit protocol
Name:		gkermit
Version:	1.00
Release:	14
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://www.columbia.edu/kermit/gkermit.html
Source0:	ftp://kermit.columbia.edu/kermit/archives/gku%{oversion}.tar.bz2
Patch0:		gkermit-missing-errno-include.patch

%description
gkermit is a GPL'd implementation of the Kermit protocol, developed by
Columbia University.  Kermit is often used to transfer files over serial
connections as well as through networks.  This version is quite minimal;
support for non-Kermit protocols may be found in ckermit, which is not,
unfortunately, Free Software. See the gkermit webpage for more information.

gkermit is a command line, non-interactive client.

%files
%doc ANNOUNCE COPYING README
%{_bindir}/gkermit
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make CC="%__cc %{optflags}"

bzip2 -f gkermit.nr

%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
install -m 0755 gkermit %{buildroot}%{_bindir}/gkermit
install -m 0644 gkermit.nr.bz2 %{buildroot}%{_mandir}/man1/gkermit.1.bz2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1909 |21cr|gkii-0.4.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	gkII

Summary:	Mandelbrot and Julia set image generator
Name:		gkii
Version:	0.4.7
Release:	7
License:	GPL
Group:		Graphics
Url:		http://www.jwm-art.net/gkII/
Source0:	http://www.jwm-art.net/gkII/%{oname}-%{version}.tar.bz2
Patch0:		gkII-0.4.7-Makefile.patch
Patch1:		gkII-0.4.7-libpng15.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpng)

%description 
It features unlimited image size, anti-aliasing, Mandelbrot/Julia mangling, 
autolayers with ramped bailout/perturbation, and controllable colour palette 
randomization, striping, scaling, and interpolation.

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1

%build
%setup_compile_flags
pushd src
%make
popd

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}/gallery

install src/gkII %{buildroot}%{_bindir}/%{name}
install gallery/* %{buildroot}%{_datadir}/%{name}/gallery

%files
%defattr(644,root,root,755)
%doc BUGS CHANGES KEYS LICENSE README TODO
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}/gallery

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1910 |21cr|gkrellm-2.3.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multiple stacked system monitors
Name:		gkrellm
Version:	2.3.11
Release:	1
License:	GPLv3+
Group:		Monitoring
Url:		http://gkrellm.net
Source0:	http://members.dslextreme.com/users/billw/gkrellm/%{name}-%{version}.tar.bz2
Source1:	gkrellm-themes.tar.bz2
Source2:	gkrellmd.service
Source3:	gkrellm-pt.po
Source4:	gkrellm-tmpfiles.conf
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libntlm)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sm)
Requires(post):	systemd

%description
GKrellM charts SMP CPU, load, Disk, and all active net interfaces
automatically. An on/off button and online timer for the PPP interface
is provided. Monitors for memory and swap usage, file system, internet
connections, APM laptop battery, mbox style mailboxes, and cpu temps.
Also includes an uptime monitor, a hostname label, and a clock/calendar.
Additional features are:

  * Autoscaling grid lines with configurable grid line resolution.
  * LED indicators for the net interfaces.
  * A gui popup for configuration of chart sizes and resolutions.

%files -f %{name}.lang
%doc COPYRIGHT Changelog INSTALL README *.html
%{_bindir}/gkrellm
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/gkrellm.png
%{_liconsdir}/gkrellm.png
%{_miconsdir}/gkrellm.png
%{_mandir}/man1/gkrellm.1*
%{_libdir}/gkrellm2
%{_datadir}/gkrellm2
%{_tmpfilesdir}/%{name}.conf
%ghost %dir %attr(1777,root,root) %{_localstatedir}/lock/gkrellm

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf

#----------------------------------------------------------------------------

%package server
Summary:	Server component for gkrellm
Group:		Monitoring
Requires(post,preun,postun):	rpm-helper

%description server
The server component allows you to monitor a server remotely from
a client running gkrellm, without installing gkrellm on the server.

%files server
%config(noreplace) %{_sysconfdir}/gkrellmd.conf
%{_unitdir}/gkrellmd.service
%{_bindir}/gkrellmd
%{_mandir}/man1/gkrellmd.1*

%post server
%systemd_post %{name}d.service

%preun server
%systemd_preun %{name}d.service

%postun server
%systemd_postun_with_restart %{name}d.service

#----------------------------------------------------------------------------

%package devel
Summary:	Include files for gkrellm
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
gkrellm header files for gkrellm development and plugin support.

%files devel
%doc *.html
%{_includedir}/gkrellm2/
%{_libdir}/pkgconfig/gkrellm.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -q -D -T -a1
cp -a %{S:3} po/pt.po
for i in `find -type d -name .xvpics`
    do rm -rf $i
done
# make it lib64 aware
perl -pi -e "/PLUGINS_DIR/ and s|/lib/|/%{_lib}/|g" ./src/gkrellm.h ./server/gkrellmd.h
perl -pi -e "s|/lib/|/%{_lib}/|" Makefile

%build
%make INSTALLROOT=%{_prefix} \
      INCLUDEDIR=%{_includedir} \
      CFLAGS="%{optflags}" \
      LDFLAGS="$(pkg-config --libs gmodule-2.0) %{ldflags}" \
      LOCALEDIR=%{_datadir}/locale

#      LIBS="-lgtk-x11-2.0 -lgdk-x11-2.0 -lglib-2.0 -lgmodule-2.0"

%install
mkdir -p %{buildroot}%{_bindir}
make install \
    INSTALLROOT=%{buildroot}%{_prefix} \
    INSTALLDIR=%{buildroot}%{_bindir} \
    INCLUDEDIR=%{buildroot}%{_includedir} \
    MANDIR=%{buildroot}%{_mandir}/man1 \
    LOCALEDIR=%{buildroot}%{_datadir}/locale \
    STRIP=""

mkdir -p %{buildroot}%{_libdir}/%{name}2/plugins

mkdir -p %{buildroot}{%{_iconsdir},%{_liconsdir},%{_miconsdir}}
convert src/icon.xpm -geometry 48x48 %{buildroot}%{_liconsdir}/%{name}.png
convert src/icon.xpm -geometry 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert src/icon.xpm -geometry 16x16 %{buildroot}%{_miconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/%{name}2/themes
cp -av gkrellm-themes/* %{buildroot}%{_datadir}/%{name}2/themes

install -d -m 755 %{buildroot}%{_datadir}/applications
cat >  %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Gkrellm
Name[ru]=Gkrellm
Comment=A GTK-based monitoring app
Comment[ru]=Программа мониторинга ресурсов компьютера
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;System;Monitor;
EOF

install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 server/gkrellmd.conf %{buildroot}%{_sysconfdir}

install -d -m 755 %{buildroot}%{_unitdir}
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/gkrellmd.service

install -d -m 755 %{buildroot}%{_tmpfilesdir}
install -m 644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf


%find_lang %{name}

# lock dir
install -d -m 755 %{buildroot}%{_localstatedir}/lock/gkrellm
chmod 1777 %{buildroot}%{_localstatedir}/lock/gkrellm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1911 |21cr|gkrellm-plugins-2.3.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define gkrellweather_version	2.0.8
%define seti_version		0.7.0b
%define gkrellStock_version	0.5.1
%define gkrellShoot_version	0.4.4
%define snmp_version		1.1
%define gkrellmitime_version	1.0
%define volume_version		2.1.13
%define mailwatch_version	2.4.3
%define gkrellmss_version	2.6
%define gkrellmwireless_version	2.0.3
%define radio_version		2.0.4
%define gkrellkam_version	2.0.0
%define fmonitor_version	2.0.4
%define reminder_version	2.0.0
%define gkrellmoon_version	0.6
%define gkleds_version		0.8.0
%define gkrellmbgchg2_version	0.1.11
%define gkrellsun_version	1.0.0
%define hddtemp_version		0.2-beta
%define timers_version		1.3
%define gkrelltop_version	2.2.13
%define gkrellmlaunch_version 0.5
%define cpufreq_version		0.6.1

Name:		gkrellm-plugins
Summary:	Plugins for gkrellm
Version:	2.3.11
Release:	2
License:	GPL
Group:		Monitoring
URL:		http://gkrellm.net
Source2:	gkrellm-volume-%{volume_version}.tar.gz
Source3:	gkrellm-mailwatch-%{mailwatch_version}.tar.gz
Source4:	gkrellmitime-%{gkrellmitime_version}.tar.bz2
Source5:	gkrellstock-%{gkrellStock_version}.tar.bz2
Patch5:		gkrellstock-0.5.1.path.patch.bz2
Source6:	http://prdownloads.sourceforge.net/gkrellshoot/gkrellshoot-%{gkrellShoot_version}.tar.gz
Source7:	http://members.dslextreme.com/~billw/gkrellmss/gkrellmss-%{gkrellmss_version}.tar.gz
Source8:	gkrellmwireless-%{gkrellmwireless_version}.tar.bz2
Source9:	gkrellm-radio-%{radio_version}.tar.bz2
Source10:	gkrellkam_%{gkrellkam_version}.tar.bz2
Source11:	gkrellweather-%{gkrellweather_version}.tgz
Patch4:		gkrellweather-2.0.8-fix-path.patch
Source12:	gkrellm-fmonitor-%{fmonitor_version}.tgz
Source13:	gkrellm-reminder-%{reminder_version}.tar.bz2
Source14:	gkrellmoon-%{gkrellmoon_version}.tar.bz2
Source15:	gkrellm_snmp-%{snmp_version}.tar.gz
Source16:	gkleds-%{gkleds_version}.tar.bz2
Source17:	http://www.bender-suhl.de/stefan/comp/sources/gkrellmbgchg2-%{gkrellmbgchg2_version}.tar.gz
Source18:	http://sourceforge.net/projects/gkrellsun/files/gkrellsun%20gkrellm-2.2/1.0.0/gkrellsun-%{gkrellsun_version}.tar.gz
Source20:	seti-%{seti_version}.tar.bz2
Patch2:		seti-%{seti_version}-gkrellm2.patch.bz2
Source21:	gkrellm-hddtemp-%{hddtemp_version}.tar.bz2
Source22:	gkrellm_timers-%{timers_version}.tar.bz2
Source23:	http://sourceforge.net/projects/gkrelltop/files/gkrelltop/2.2.13/gkrelltop_%{gkrelltop_version}.orig.tar.gz
Source24:	gkrellmlaunch-%{gkrellmlaunch_version}.tar.bz2 
Source25:	gkrellm2-cpufreq-%{cpufreq_version}.tar.gz

Requires:	gkrellm = %{version}
BuildRequires:	gkrellm-devel = %{version}
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	libmcrypt-devel
BuildRequires:	pkgconfig(esound)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  cpupower-devel

%description
This package contains some plugins for gkrellm.  Included are the following
plugins:

  * volume, controls mixer
  * mailwatch, watches individual mailboxes for new mail
  * gkrellmitime, displays internet time
  * gkrellmss, sound scope
  * gkrellmwireless, monitors the link quality of a wirless LAN card
  * gkrellm-radio, radio tuner interface
  * gkrellweather, checks and reports weather conditions
  * fmonitor, displays contents of files
  * reminder, a cron-lick scheduler
  * gkleds, plugin which monitors CapsLock, NumLock, ScrollLock
  * gkrellmbgchg, Change your background on a schedule
  * gkrellsun, Sunrise and Sunset display
  * gkx86info, Calculates Mhz/Ghz of processor
  * gkrellmoon, shows the phases of the moon
  * seti, displays information about your seti progress
  * gkrellm-hddtemp, displays temperatures of hard disks
  * gkrellmlaunch, allows one click access to programs

%package snmp
Summary:	SNMP plugin for %{name}
Group:		Monitoring
Requires:	gkrellm = %{version}
BuildRequires:	net-snmp-devel

%description snmp
gkrellm_snmp, SNMP monitor.

%package stock
Summary:	Stock plugin for %{name}
Group:		Monitoring
Requires:	gkrellm = %{version}

%description stock
gkrellStock, a stock monitor.

%package shoot
Summary:	Shoot plugin for %{name}
Group:		Monitoring
Requires:	gkrellm = %{version}
Requires:	imagemagick

%description shoot
gkrellShoot, a screen locker and screen capture krell.

%package kam
Summary:	Kam plugin for %{name}
Group:		Monitoring
Requires:	gkrellm = %{version}
Requires:	wget

%description kam
gkrellkam, monitor static images such as webcams.

%prep
%setup -T -c -n %{name}
#%setup -q -T -D -c -a 1 -n %{name}
%setup -q -T -D -c -a 2 -n %{name}
%setup -q -T -D -c -a 3 -n %{name}
%setup -q -T -D -c -a 4 -n %{name}
%setup -q -T -D -c -a 5 -n %{name}
%setup -q -T -D -c -a 6 -n %{name}
%setup -q -T -D -c -a 7 -n %{name}
%setup -q -T -D -c -a 8 -n %{name}
%setup -q -T -D -c -a 9 -n %{name}
%setup -q -T -D -c -a 10 -n %{name}
%setup -q -T -D -c -a 11 -n %{name}
%setup -q -T -D -c -a 12 -n %{name}
%setup -q -T -D -c -a 13 -n %{name}
%setup -q -T -D -c -a 14 -n %{name}
%setup -q -T -D -c -a 15 -n %{name}
%setup -q -T -D -c -a 16 -n %{name}
%setup -q -T -D -c -a 17 -n %{name}
%setup -q -T -D -c -a 18 -n %{name}
%setup -q -T -D -c -a 20 -n %{name}
%setup -q -T -D -c -a 21 -n %{name}
%setup -q -T -D -c -a 22 -n %{name}
%setup -q -T -D -c -a 23 -n %{name}
%setup -q -T -D -c -a 24 -n %{name}
%setup -q -T -D -c -a 25 -n %{name}

(cd seti-%{seti_version}
%patch2 -p1 -b .gtk2
)
(cd gkrellweather-%{gkrellweather_version}
%patch4 -p1 -b .path
)
(cd gkrellStock-%{gkrellStock_version}
%patch5 -p0 -b .path
)

sed -i 's/-Wl /-Wl,/' gkrellmitime-%{gkrellmitime_version}/Makefile
sed -i 's/-Wl//' gkrellm-radio/Makefile
sed -i 's/-Wl//' gkrellkam-%{gkrellkam_version}/Makefile
sed -i 's/-Wl//' seti-%{seti_version}/Makefile
sed -i 's/-Wl//' gkrellm-hddtemp-%{hddtemp_version}/Makefile
sed -i 's/-W1//' gkrellmlaunch-%{gkrellmlaunch_version}/Makefile
sed -i 's/lcpufreq/lcpupower/' gkrellm2-cpufreq-%{cpufreq_version}/Makefile

%build
%global optflags %{optflags} -fcommon
(cd gkrellm-volume
make CFLAGS="%{optflags}"
)
(cd gkrellm-mailwatch
make CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd gkrellmitime-%{gkrellmitime_version}
make CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd gkrellStock-%{gkrellStock_version}
make CFLAGS="%{optflags}"
)
(cd gkrellShoot-%{gkrellShoot_version}
make CFLAGS="%{optflags}"
)
(cd gkrellmss-%{gkrellmss_version}
make CFLAGS="%{optflags}"
)
(cd gkrellmwireless
make CFLAGS="%{optflags}"
)
(cd gkrellm-radio
make WITH_LIRC=1
)
(cd gkrellkam-%{gkrellkam_version}
make CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd gkleds-%{gkleds_version}
%ifarch x86_64
make X11_LIB="-L/usr/X11R6/lib64 -lX11 -lXtst" CFLAGS="%{optflags} -fPIC"
%else
make CFLAGS="%{optflags}"
%endif
)
(cd gkrellmbgchg2-%{gkrellmbgchg2_version}
make CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd gkrellm-fmonitor-%{fmonitor_version}
make CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd gkrellmoon-%{gkrellmoon_version}
make CFLAGS="%{optflags}"
)
(cd gkrellm-reminder-%{reminder_version}
make CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd gkrellm_snmp-%{snmp_version}
make CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd gkrellsun-%{gkrellsun_version}/src20
make CFLAGS="%{optflags}"
)
(cd gkrellweather-%{gkrellweather_version}
make PREFIX=%{_prefix} CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd seti-%{seti_version}
make CFLAGS="%{optflags} -fPIC `pkg-config gtk+-2.0 --cflags`"
)
(cd gkrellm-hddtemp-%{hddtemp_version}
make gkrellm2 CFLAGS="%{optflags} -fPIC"
)
(cd gkrellm_timers-%{timers_version}
make CFLAGS="%{optflags}"
)
( cd gkrelltop-%{gkrelltop_version}.orig
make clean
make CFLAGS="%{optflags}"
)
( cd gkrellmlaunch-%{gkrellmlaunch_version}
make CFLAGS="%{optflags}"
)
(cd gkrellm2-cpufreq-%{cpufreq_version}
make CFLAGS="%{optflags}"
)

%install
mkdir -p %{buildroot}%{_libdir}/gkrellm2/plugins
mkdir -p %{buildroot}%{_datadir}/gkrellm2/scripts
install -c -s -m 755 gkrellm-volume/volume.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellm-mailwatch/mailwatch.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellmitime-%{gkrellmitime_version}/gkrellm_itime.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellStock-%{gkrellStock_version}/gkrellstock.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -m 755 gkrellStock-%{gkrellStock_version}/GetQuote2 %{buildroot}%{_datadir}/gkrellm2/scripts
install -c -s -m 755 gkrellShoot-%{gkrellShoot_version}/gkrellshoot.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellmss-%{gkrellmss_version}/src/gkrellmss.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellmwireless/wireless.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellm-radio/radio.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellkam-%{gkrellkam_version}/gkrellkam2.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellweather-%{gkrellweather_version}/gkrellweather.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -m 755 gkrellweather-%{gkrellweather_version}/GrabWeather %{buildroot}%{_datadir}/gkrellm2/scripts
install -c -s -m 755 gkrellm-fmonitor-%{fmonitor_version}/fmonitor.so  %{buildroot}%{_libdir}/gkrellm2/plugins
#install -c -s -m 755 gkrellm-fmonitor-%{fmonitor_version}/sensors.tcl %{buildroot}%{_bindir}
install -c -s -m 755 gkrellm-reminder-%{reminder_version}/reminder.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellm_snmp-%{snmp_version}/gkrellm_snmp.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkleds-%{gkleds_version}/gkleds.so  %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellmbgchg2-%{gkrellmbgchg2_version}/gkrellmbgchg.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellsun-%{gkrellsun_version}/src20/gkrellsun.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellmoon-%{gkrellmoon_version}/gkrellmoon.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 seti-%{seti_version}/seti.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellm-hddtemp-%{hddtemp_version}/gkrellm-hddtemp.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellm_timers-%{timers_version}/gkrellm_timers.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrelltop-%{gkrelltop_version}.orig/gkrelltop{,d}.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellmlaunch-%{gkrellmlaunch_version}/gkrellmlaunch.so %{buildroot}%{_libdir}/gkrellm2/plugins
install -c -s -m 755 gkrellm2-cpufreq-%{cpufreq_version}/cpufreq.so %{buildroot}%{_libdir}/gkrellm2/plugins

# setup various docs
mkdir -p doc/gkleds
cp gkleds-%{gkleds_version}/{COPYING,Changelog,License,README,TODO,Themes} doc/gkleds
mkdir -p doc/gkrellm-fmonitor
cp gkrellm-fmonitor-%{fmonitor_version}/README doc/gkrellm-fmonitor
mkdir -p doc/gkrellm-hddtemp
cp gkrellm-hddtemp-%{hddtemp_version}/{COPYING,README} doc/gkrellm-hddtemp
mkdir -p doc/gkrellm-mailwatch
cp gkrellm-mailwatch/{Changelog,README} doc/gkrellm-mailwatch
mkdir -p doc/gkrellm-radio
cp gkrellm-radio/{CHANGES,README,lirc.example} doc/gkrellm-radio
mkdir -p doc/gkrellm-reminder
cp gkrellm-reminder-%{reminder_version}/{COPYING,ChangeLog,INSTALL,README} doc/gkrellm-reminder
mkdir -p doc/gkrellm-volume
cp gkrellm-volume/{COPYRIGHT,Changelog,README,THEMING} doc/gkrellm-volume
mkdir -p doc/timers
cp gkrellm_timers-%{timers_version}/{ChangeLog,README,TODO} doc/timers
mkdir -p doc/gkrellmbgchg2
cp gkrellmbgchg2-%{gkrellmbgchg2_version}/{ChangeLog,README,TODO} doc/gkrellmbgchg2
mkdir -p doc/gkrellmitime
cp gkrellmitime-%{gkrellmitime_version}/{COPYING,ChangeLog,README} doc/gkrellmitime
mkdir -p doc/gkrellmlaunch
cp gkrellmlaunch-%{gkrellmlaunch_version}/{CHANGELOG,COPYING,LICENSE,README} doc/gkrellmlaunch
mkdir -p doc/gkrellmoon
cp gkrellmoon-%{gkrellmoon_version}/{AUTHORS,COPYING,ChangeLog,INSTALL,NEWS,README} doc/gkrellmoon
mkdir -p doc/gkrellmss
cp gkrellmss-%{gkrellmss_version}/{COPYRIGHT,Changelog,INSTALL,README,Themes} doc/gkrellmss
mkdir -p doc/gkrellmwireless
cp gkrellmwireless/{Changelog,README} doc/gkrellmwireless
mkdir -p doc/gkrellsun
cp gkrellsun-%{gkrellsun_version}/{AUTHORS,COPYING,INSTALL,README} doc/gkrellsun
mkdir -p doc/gkrelltop
cp gkrelltop-%{gkrelltop_version}.orig/README doc/gkrelltop
mkdir -p doc/gkrellweather
cp gkrellweather-%{gkrellweather_version}/{COPYING,ChangeLog,README} doc/gkrellweather
mkdir -p doc/seti
cp seti-%{seti_version}/{AUTHORS,BUGS,COPYING,ChangeLog,INSTALL,INSTALL.gtk2,LICENSE,NEWS,README,README-pcpu,TODO} doc/seti
mkdir -p doc/cpufreq
cp gkrellm2-cpufreq-%{cpufreq_version}/{ChangeLog,LICENSE,README} doc/cpufreq

# fix some perms
chmod 644 doc/gkrellmoon/*
chmod 644 doc/gkleds/*
chmod 644 doc/gkrelltop/*

%files 
%doc doc/*
%{_libdir}/gkrellm2/plugins/*
%exclude %{_libdir}/gkrellm2/plugins/gkrellm_snmp.so
%exclude %{_libdir}/gkrellm2/plugins/gkrellstock.so
%exclude %{_libdir}/gkrellm2/plugins/gkrellshoot.so
%exclude %{_libdir}/gkrellm2/plugins/gkrellkam2.so
%{_datadir}/gkrellm2/scripts/GrabWeather

%files snmp
%defattr(-,root,root)
%doc gkrellm_snmp-%{snmp_version}/ChangeLog
%doc gkrellm_snmp-%{snmp_version}/FAQ
%doc gkrellm_snmp-%{snmp_version}/README
%doc gkrellm_snmp-%{snmp_version}/TODO
%{_libdir}/gkrellm2/plugins/gkrellm_snmp.so

%files stock
%defattr(-,root,root)
%doc gkrellStock-%{gkrellStock_version}/COPYING
%doc gkrellStock-%{gkrellStock_version}/ChangeLog
%doc gkrellStock-%{gkrellStock_version}/README
%{_libdir}/gkrellm2/plugins/gkrellstock.so
%{_datadir}/gkrellm2/scripts/GetQuote2

%files shoot
%defattr(-,root,root)
%doc gkrellShoot-%{gkrellShoot_version}/ChangeLog
%doc gkrellShoot-%{gkrellShoot_version}/README
%{_libdir}/gkrellm2/plugins/gkrellshoot.so

%files kam
%defattr(-,root,root)
%doc gkrellkam-%{gkrellkam_version}/README
%doc gkrellkam-%{gkrellkam_version}/COPYING
%doc gkrellkam-%{gkrellkam_version}/Changelog
%doc gkrellkam-%{gkrellkam_version}/INSTALL
%doc gkrellkam-%{gkrellkam_version}/Release
%doc gkrellkam-%{gkrellkam_version}/Todo
%doc gkrellkam-%{gkrellkam_version}/example.list
%{_libdir}/gkrellm2/plugins/gkrellkam2.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1912 |21cr|gkrellm-themes-20190620-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gkrellm-themes
Version:	20190620
Release:	1
Summary:	Themes for the GKrellM
License:	GPL
Group:		Monitoring
URL:		http://www.muhri.net
Source:		http://www.muhri.net/gkrellm/GKrellM-Skins.tar.bz2
Requires:	gkrellm >= 0.9.0
BuildArch:	noarch

%description
This package contains some nice themes for the GKrellM monitoring utility.

%prep
%setup -q -n GKrellM-skins
rm -f Aqua.gkrellm.tgz
rm -f Azteker2k.gkrellm.tar.gz
rm -f BloeStolen.tar.gz
rm -f brushedmetalnew.tar.gz
rm -f Cyroid.tar.gz
rm -f E-Tech_XSlate_GKrellM.tar.gz
rm -f E17.gkrellm.tar.gz
rm -f Eazel.gkrellm.tar.gz
rm -f Plastique.tar.gz
rm -f ShinyMetal2.tar.gz
rm -f TaoMetal.tar.gz
rm -f blueHeart_gkrellm.tar.gz
rm -f brushed.tar.gz
rm -f indiglow_blue-gkrellm.tar.gz
rm -f minE-Gkrellm.tar.gz
for file in *.tar.gz *.tgz; do
	tar xvzf $file;
	rm -f $file
done
# remove hidden files or directories
find . -mindepth 1 -name '.*' | xargs rm -rf
# remove empty files or directories
find . -empty | xargs rm -rf
# remove CVS files
find . -type d -name CVS | xargs rm -rf
# fix perms
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

%build

%install
mkdir -p %{buildroot}%{_datadir}/gkrellm2/themes
cp -av * %{buildroot}%{_datadir}/gkrellm2/themes

%clean

%files
%{_datadir}/gkrellm2/themes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1913 |21cr|gksu-2.0.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}
%define _disable_rebuild_configure 1

Summary:	GTK+ frontend to the su and sudo programs
Name:		gksu
Version:	2.0.2
Release:	17
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://www.nongnu.org/gksu/
Source0:	http://people.debian.org/~kov/gksu/gksu/%{name}-%{version}.tar.bz2
Patch0:		gksu-2.0.2-use-xvt-for-terminal.patch
Patch1:		gksu-2.0.2-fix-nautilus-link.patch
Patch2:		gksu-2.0.2-fixglibinclude.patch
Patch3:		02_format_security.patch
Patch4:		gksu-2.0.2-ru.patch
BuildRequires:	pkgconfig(libgksu2)
BuildRequires:	intltool

%description
gksu is a Gtk+ frontend to /bin/su. It supports login shells and preserving
environment when acting as a su frontend. It is useful to menu items or
other graphical programs that need to ask a user's password to run another
program as another user.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/*
%{_datadir}/pixmaps/*.png
%{_datadir}/%{name}
%{_mandir}/man1/*.1.*

%post
if [ -e /etc/gksu.conf ]; then
   sh %{_datadir}/%{name}/gksu-migrate-conf.sh
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure --enable-nautilus-extension=no
%make

%install
%makeinstall_std

#we don't need .desktop file
rm -rf %{buildroot}%{_datadir}/applications

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1914 |21cr|gl-117-1.3.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Action flight simulator
Name:		gl-117
Version:	1.3.2
Release:	10
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.heptargon.de/
Source0:	http://prdownloads.sourceforge.net/gl-117/%{name}-%{version}-src.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)

%description
GL-117 is an action flight simulator for Linux/Unix and MSWindows.
Enter the Eagle Squadron and succeed in several challenging missions
leading though different landscapes. Five predefined levels of video
quality and an amount of viewing ranges let you perfectly adjust the
game to the performance of your system. Joystick, mouse,
sound effects, music...

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README FAQ
%{_mandir}/man6/%{name}.6*
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%defattr(755,root,root,755)
%{_gamesbindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-src

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

install -d %{buildroot}%{_datadir}/applications
cat <<EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=GL-117
Comment=Action flight simulator
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

install -m644 doc/%{name}.6 -D %{buildroot}%{_mandir}/man6/%{name}.6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1915 |21cr|glabels-3.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define api 3.0
%define major 8
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

%define bmajor 0
%define blibname %mklibname glbarcode %{api} %{bmajor}
%define bdevname %mklibname glbarcode -d

%define _appdatadir %{_datadir}/appdata

Summary:	GNOME program to create labels and business cards
Name:		glabels
Version:	3.4.1
Release:	2
License:	GPLv2+
Group:		Office
Url:		http://glabels.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/3.4/%{name}-%{version}.tar.xz
Source0100:	glabels.rpmlintrc
Patch0:		glabels-3.4.1-gcc10.patch
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libiec16022)
BuildRequires:	pkgconfig(libqrencode)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	gnome-doc-utils
BuildRequires:	gtk-doc
BuildRequires:	zint-devel
BuildRequires:	gettext-devel
BuildRequires:	itstool
Recommends:	%{blibname} = %{EVRD}


%description
Glabels is stand-alone program for creating labels and business cards
for GNOME.

%files -f %{name}-%{api}.lang
%doc README AUTHORS
%{_bindir}/*
%{_datadir}/%{name}-%{api}
%{_datadir}/lib%{name}-%{api}
%{_datadir}/applications/*
%{_datadir}/mime/packages/*
%{_datadir}/icons/hicolor/*/mimetypes/*glabels*
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/*
%{_datadir}/gtk-doc/html/lib%{name}-%{api}
%{_datadir}/gtk-doc/html/libglbarcode-%{api}
%{_appdatadir}/*.appdata.xml
%{_datadir}/glib-2.0/schemas/org.gnome.glabels-3.gschema.xml

#---------------------------------------------------------
%package -n %{libname}
Summary:	GNOME program to create labels and business cards
Group:		System/Libraries

%description -n %{libname}
Glabels is stand-alone program for creating labels and business cards
for GNOME. Libraries.

%files -n %{libname}
%doc README AUTHORS
%{_libdir}/libglabels-%{api}.so.%{major}*

#---------------------------------------------------------
%package -n %{devname}
Summary:	Glabels devel files
Group:		Development/Other
Requires: %{libname} = %{EVRD}
Provides: libglabels-devel


%description -n %{devname}
Glabels is stand-alone program for creating labels and business cards
for GNOME. Devel files.

%files -n %{devname}
%doc README AUTHORS
%{_libdir}/libglabels-%{api}.so
%dir %{_includedir}/libglabels-%{api}
%{_includedir}/libglabels-%{api}/*
%{_libdir}/pkgconfig/libglabels-%{api}.pc
#---------------------------------------------------------
# barcode
#---------------------------------------------------------
%package -n %{blibname}
Summary:	Barcode support libraries for %{name}
Group:		System/Libraries

%description -n %{blibname}
This package contains the shared libraries for barcode support for %{name}.

%files -n %{blibname}
%doc README AUTHORS
%{_libdir}/libglbarcode-%{api}.so.%{bmajor}*

#---------------------------------------------------------
%package -n %{bdevname}
Summary:	Development files and headers for %{name} barcodes
Group:		Development/Other
Requires:	%{blibname} = %{EVRD}
Provides:	glbarcode-devel = %{EVRD}

%description -n %{bdevname}
This package contains the development files and headers for %{name} barcodes.

%files -n %{bdevname}
%doc README AUTHORS
%{_libdir}/libglbarcode-%{api}.so
%{_includedir}/libglbarcode-%{api}
%{_libdir}/pkgconfig/libglbarcode-%{api}.pc

#---------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--with-libebook \
	--disable-static \
	--disable-schemas-compile

%make

%install
%makeinstall_std

perl -p -i -e 's/%{name}-%{api}.png/%{name}-%{api}/g' \
	%{buildroot}%{_datadir}/applications/*.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name}-%{api} --with-gnome


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1916 |21cr|glaxnimate-0.5.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname qt6colorwidgets %{major}
%define devname %mklibname qt6colorwidgets -d

Summary:	A simple vector graphics animation program
Name:		glaxnimate
Version:	0.5.3
Release:	2
License:	GPLv2
Group:		Graphics
Url:		https://gitlab.com/mattbas/glaxnimate
# git clone https://gitlab.com/mattbas/glaxnimate
# cd %%{name}
# git checkout %%{version}
# git submodule update --init --recursive
# git-archive-all --prefix=%%{name}-%%{version} ../%%{name}-%%{version}.tar.xz
Source0:	%{name}-%{version}.tar.xz
Source2:	yandex-browser.svg
Patch0:		glaxnimate-0.5.3-qt6.patch
BuildRequires:	cmake
BuildRequires:	qt6-linguist-tools
BuildRequires:	potrace-devel
BuildRequires:	cmake(Qt6)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6GuiTools)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6Tools)
BuildRequires:	cmake(Qt6UiTools)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(vulkan)

%description
A simple vector graphics animation program.

%files
%doc AUTHORS.md README.md
%license LICENSES/*.txt
%{_appdatadir}/org.mattbas.Glaxnimate.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.mattbas.Glaxnimate.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_iconsdir}/hicolor/*/apps/org.mattbas.Glaxnimate.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Color dialog library
Group:		System/Libraries

%description -n %{libname}
Color dialog library that is more user-friendly than the default QColorDialog.

%files -n %{libname}
%{_libdir}/libQtColorWidgets.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{libname}.

%files -n %{devname}
%{_includedir}/QtColorWidgets
%{_libdir}/cmake/QtColorWidgets
%{_libdir}/libQtColorWidgets.so
%{_libdir}/pkgconfig/QtColorWidgets.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# update yandex-browser icon
rm ./data/icons/breeze-icons/icons/apps/48/yandex-browser.svg
cp %{SOURCE2} ./data/icons/breeze-icons/icons/apps/48/

%build
%cmake
%make

cp -rf ../data/translations share/glaxnimate/glaxnimate
pushd share/glaxnimate/glaxnimate/translations
%{_libdir}/qt6/bin/lrelease *.ts
popd

pushd ../external/Qt-Color-Widgets
%cmake
%make
popd

%install
%makeinstall_std -C build

pushd external/Qt-Color-Widgets
%makeinstall_std -C build
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1917 |21cr|glc-0.5.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libcapture %mklibname %{name}-capture %{major}
%define libcore %mklibname %{name}-core %{major}
%define libexport %mklibname %{name}-export %{major}
%define libhook %mklibname %{name}-hook %{major}
%define libplay %mklibname %{name}-play %{major}
%define devname %mklibname %{name} -d

Summary:	ALSA and OpenGL video capture tool
Name:		glc
Version:	0.5.8
Release:	7
License:	MIT
Group:		Video
Url:		https://github.com/nullkey/glc
Source0:	https://nodeload.github.com/nullkey/glc/tarball/master/%{name}-%{version}.tar.bz2
Patch0:		glc-0.5.8-alsa-capture-stop.patch
Patch1:		glc-0.5.8-linkage.patch
BuildRequires:	cmake
BuildRequires:	libelfhacks-devel
BuildRequires:	libpacketstream-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xorg-server)
# Due to libelfhacks limitations
ExclusiveArch:	%{ix86} %{x86_64}

%description
glc is an ALSA and OpenGL video capture tool that you can use to record
the output from opengl applications.

%files -n %{name}
%{_bindir}/glc*

#----------------------------------------------------------------------------

%package -n %{libcapture}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}glc < 0.5.8-2

%description -n %{libcapture}
This project provides a client library for %{name}.

%files -n %{libcapture}
%{_libdir}/lib%{name}-capture.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcore}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}glc < 0.5.8-2
Obsoletes:	%{_lib}glc < 0.5.8-2

%description -n %{libcore}
This project provides a client library for %{name}.

%files -n %{libcore}
%{_libdir}/lib%{name}-core.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libexport}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}glc < 0.5.8-2

%description -n %{libexport}
This project provides a client library for %{name}.

%files -n %{libexport}
%{_libdir}/lib%{name}-export.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libhook}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}glc < 0.5.8-2

%description -n %{libhook}
This project provides a client library for %{name}.

%files -n %{libhook}
%{_libdir}/lib%{name}-hook.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libplay}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}glc < 0.5.8-2

%description -n %{libplay}
This project provides a client library for %{name}.

%files -n %{libplay}
%{_libdir}/lib%{name}-play.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libcapture} = %{EVRD}
Requires:	%{libcore} = %{EVRD}
Requires:	%{libexport} = %{EVRD}
Requires:	%{libhook} = %{EVRD}
Conflicts:	%{_lib}glc < 0.5.8-2

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_libdir}/lib%{name}-*.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%cmake -DMLIBDIR=%{_lib}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1918 |21cr|glee-5.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0d1
%define libname %mklibname glee %major
%define libname_devel %mklibname -d glee

Name:          glee
Version:       5.4.0
Release:       5
Summary:       GL Easy Extension library
Group:         System/X11
License:       BSD
Url:           http://elf-stone.com/glee.php
Source0:       http://elf-stone.com/downloads/GLee/GLee-%{version}-src.tar.gz
# includedir point to /usr/include instead of /usr/include/GL (default location)
# from Debian
Source1:       glee-%{version}.pc
Patch0:        glee-5.4.0-Makefile_in.patch
Patch1:        glee-5.4.0-GLXContextID.patch
BuildRequires: pkgconfig(gl)

%description
GLee (GL Easy Extension library) is a 
free cross-platform extension 
loading library for OpenGL. It
provides seamless support for 
OpenGL functions up to version 
3.0 and 398 extensions.

Features:

 * Core functions up to OpenGL 3.0
 * 398 extensions
 * Lazy loading for extension functions, 
 so no initialisation code is required
 * Forced extension loading, 
 though the GLeeForceLink function.

%package -n %libname
Summary:          Library files for %{name}
Group:            System/X11
Provides:         %{name} = %{version}

%description -n %libname
GLee (GL Easy Extension library) is a free 
cross-platform extension loading library for OpenGL.

%files -n %libname
%doc extensionList.txt
%{_libdir}/lib%{name}.so.*
#--------------------------------------

%package -n %libname_devel
Group:         Development/C++
Summary:       Devel package for %{name}
Requires:      %libname = %{EVRD}
Provides:      %{name}-devel = %{version}

%description -n %libname_devel
GLee (GL Easy Extension library) is a free 
cross-platform extension loading library for OpenGL.

This package contains static libraries 
and header files need for development.

%files -n %libname_devel
%doc extensionList.txt
%{_includedir}/GLee.h
%{_libdir}/lib%{name}.a
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
#--------------------------------------------

%prep
%setup -q -c
%patch0 -p0
%patch1 -p1

# fix linting
chmod -x extensionList.txt
perl -i -pe 's/\r\n/\n/gs' extensionList.txt
find . -name "*.c" -o -name "*.h" |xargs chmod 0644

%build
%configure
%make

%install
%makeinstall_std

chmod 755 %{buildroot}%{_libdir}/*.so*

mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -pm 644 %SOURCE1 %{buildroot}%{_libdir}/pkgconfig/%{name}.pc





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1919 |21cr|glib-1.2.10-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api	1.2
%define major	0
%define libname		%mklibname %{name} %{api} %{major}
%define libgmodule	%mklibname gmodule %{api} %{major}
%define libgthread	%mklibname gthread %{api} %{major}
%define devname		%mklibname %{name} %{api} -d

Summary:	A library of handy utility functions
Name:		glib
Version:	1.2.10
Release:	33
License:	LGPLv2.1
Group:		System/Libraries
Url:		http://www.gtk.org
Source0:	ftp://ftp.gtk.org/pub/gtk/v%{api}/%{name}-%{version}.tar.gz
# (fc) 1.2.10-3mdk Suppress warnings about varargs macros for -pedantic (Rawhide)
Patch0:		glib-1.2.10-isowarning.patch
# (fc) 1.2.10-5mdk don't set -L/usr/lib in glib-config
Patch1:		glib-1.2.10-libdir.patch
# (fc) 1.2.10-12mdk fix build with gcc 3.4 (Fedora)
Patch2:		glib-1.2.10-gcc34.patch
# (fc) 1.2.10-13mdk fix underquoted m4 definitions
Patch3:		glib-1.2.10-underquoted.patch
# (gb) 1.2.10-14mdk build static glib library with PIC as pam modules need it
Patch4:		glib-1.2.10-pic.patch
# (gb) 1.2.10-17mdv use ancient libtool 1.4 with lib64 fixes
Patch5:		glib-1.2.10-libtool.patch
# (Anssi 05/2008) Fix underlinking
Patch6:		glib-1.2.10-underlinking.patch
Patch7:		glib-1.2.10-format_not_a_string_literal_and_no_format_arguments.diff
Patch8:		glib_divert.patch
Patch9:		glib-fix-automake.patch
Patch10:	glib-1.2.10-automake-1.13.patch
BuildRequires:	libtool

%description
Glib is a handy library of utility functions. This C
library is designed to solve some portability problems
and provide other useful functionality which most
programs require.

Glib is used by GDK, GTK+ and many applications.
You should install Glib because many of your applications
will depend on this library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for glib
Group:		System/Libraries
Provides:	glib = %{version}-%{release}
Conflicts:	%{_lib}glib1.2 < 1.2.10-27
Obsoletes:	%{_lib}glib1.2 < 1.2.10-27

%description -n %{libname}
This package contains a library needed to run programs dynamically
linked with the glib.

%files -n %{libname}
%{_libdir}/libglib-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgmodule}
Summary:	Main library for glib
Group:		System/Libraries
Conflicts:	%{_lib}glib1.2 < 1.2.10-27

%description -n %{libgmodule}
This package contains a library needed to run programs dynamically
linked with the glib.

%files -n %{libgmodule}
%{_libdir}/libgmodule-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgthread}
Summary:	Main library for glib
Group:		System/Libraries
Conflicts:	%{_lib}glib1.2 < 1.2.10-27

%description -n %{libgthread}
This package contains a library needed to run programs dynamically
linked with the glib.

%files -n %{libgthread}
%{_libdir}/libgthread-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GIMP Toolkit and GIMP Drawing Kit support library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libgmodule} = %{EVRD}
Requires:	%{libgthread} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}glib1.2-devel < 1.2.10-27
Obsoletes:	%{_lib}glib1.2-devel < 1.2.10-27

%description -n %{devname}
Static libraries and header files for the support library for the GIMP's X
libraries, which are available as public libraries.  GLIB includes generally
useful data structures.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README COPYING docs/*.html
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_libdir}/glib
%{_includedir}/*
%{_mandir}/man1/*
%{_datadir}/aclocal/*
%{_bindir}/*
%{_infodir}/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%global optflags %{optflags} -fgnu89-inline
aclocal
libtoolize --install --force
rm -f config.{guess,sub}
automake --foreign -a -c
autoconf

%configure --disable-static
%make

%install
%makeinstall_std

chmod +x %{buildroot}%{_libdir}/*.so.*

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1920 |21cr|glightoff-1.0.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Simple puzzle game, switch off all the lights on a 5x5 board
Name:		glightoff
Version:	1.0.0
Release:	12
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://glightoff.sourceforge.net/
Source:		http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		glightoff-1.0.0-fix-desktop-file.patch
BuildRequires:	imagemagick
BuildRequires:	pngcrush
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	librsvg

%description
GLightOff is a simple (but not so easy to solve!) puzzle game.
The goal is to switch off all the lights on the 5x5 board.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix broken png file
pngcrush -fix glightoff.png glightoff-fixed.png
mv -f glightoff-fixed.png glightoff.png

%build
%configure
%make

%install
%makeinstall_std

# install menu icons
for N in 16 32 48 64;
do
convert glightoff.png -resize ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1921 |21cr|glinuxsms-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# SPEC written by Julien Catalano with the great help of http://qa.mandrakesoft.com/twiki/bin/view/Main/RpmHowTo
%define name glinuxsms

%define version 0.1
%define release   10

%define title   Glinuxsms
%define longtitle Glinuxsms is a GNOME2 GUI/front-end for linuxsms 

Summary:        %longtitle
Name:           %name
Version:        %version
Release:        %release
License:        GPL
Group:          Communications
Url:		http://glinuxsms.sourceforge.net/

Source0:        %name-%version.tar.bz2
# Make 3 icons %name-{16,32,48}.png and then tar cjf %name-icons.tar.bz2 *png
Source1:        %name-icons.tar.bz2
Patch0:		glinuxsms-0.1-fix-str-fmt.patch

Buildrequires: pkgconfig(libgnomeui-2.0)
Requires: linuxsms

%description
 glinuxsms is a GNOME2 GUI/front-end for linuxsms, an interesting
 tool to send SMS to cellphones all over the world. With glinuxsms
 you just write your message and click SEND, no need to get write
 the full command on a terminal. It uses linuxsms as a backend,
 and its configuration files as well. 

The main purpose for now is to keep it simple and light. 

Why should you use it?

 If you are a GNOME user, then you may SMS message your 
 contacts with a few clicks, no need to launch a xterm 
 to write the full commands. 

%prep
%setup -q
# unpack icons:
%setup -q -T -D -a1
%patch0 -p0

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
# icon
mkdir -p $RPM_BUILD_ROOT{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
install -D -m 644 %{name}-48.png $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
install -D -m 644 %{name}-32.png $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -D -m 644 %{name}-16.png $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png

# Menu
# Every entry must be changed according package specfications
# Pay attention to "section" "command" and "longtitle"
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/%{name}
Icon=%{name}
Categories=Network;
Name=%{title}
Comment=%{longtitle}
EOF

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING README INSTALL TODO AUTHORS
%_bindir/*
%{_datadir}/applications/mandriva-%name.desktop

%_miconsdir/%name.png
%_iconsdir/%name.png
%_liconsdir/%name.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1922 |21cr|glista-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	A simple TODO manager
Name:		glista
Version:	0.4
Release:	8
License:	GPLv3
Group:		Office
Url:		http://prematureoptimization.org/glista/
Source0:	http://glista.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Glista aims to be a very simple personal to-do list manager
that does what it's supposed to, and does not get in your way.

%files
%doc README ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fcommon
%configure

%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1923 |21cr|glitz-0.5.6-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define libglx %mklibname %{name}-glx %{major}
%define devname %mklibname %{name} -d

Summary:	OpenGL image compositing library
Name:		glitz
Version:	0.5.6
Release:	20
License:	BSD
Group:		System/Libraries
Url:		http://cairographics.org/
Source0:	http://cairographics.org/snapshots/%{name}-%{version}.tar.gz
Patch0:		glitz-0.4.0-libtool.patch
Patch1:		glitz-0.5.6-wformat.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(x11)

%description
Glitz is an OpenGL image compositing library. Glitz provides
Porter/Duff compositing of images and implicit mask generation for
geometric primitives including trapezoids, triangles, and rectangles.

The semantics of glitz are designed to precisely match the
specification of the X Render extension. Glitz does not only implement
X Render features like component alpha and image transformations, but
also support for additional features like convolution filters and color
gradients, which are not currently part of the X Render specification.

The performance and capabilities of glitz are much dependent on
graphics hardware. Glitz does not in any way handle software
fall-backs when graphics hardware is insufficient. However, glitz
will report if any requested operation cannot be carried out by
graphics hardware, hence making a higher level software layer
responsible for appropriate actions.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	OpenGL image compositing library
Group:		System/Libraries
Provides:	glitz = %{EVRD}

%description -n %{libname}
Glitz is an OpenGL image compositing library. Glitz provides
Porter/Duff compositing of images and implicit mask generation for
geometric primitives including trapezoids, triangles, and rectangles.

The semantics of glitz are designed to precisely match the
specification of the X Render extension. Glitz does not only implement
X Render features like component alpha and image transformations, but
also support for additional features like convolution filters and color
gradients, which are not currently part of the X Render specification.

The performance and capabilities of glitz are much dependent on
graphics hardware. Glitz does not in any way handle software
fall-backs when graphics hardware is insufficient. However, glitz
will report if any requested operation cannot be carried out by
graphics hardware, hence making a higher level software layer
responsible for appropriate actions.

%files -n %{libname}
%doc AUTHORS COPYING README NEWS TODO
%{_libdir}/libglitz.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libglx}
Summary:	OpenGL image compositing library
Group:		System/Libraries
Conflicts:	%{_lib}glitz1 < 0.5.6-13

%description -n %{libglx}
Glitz is an OpenGL image compositing library. Glitz provides
Porter/Duff compositing of images and implicit mask generation for
geometric primitives including trapezoids, triangles, and rectangles.

The semantics of glitz are designed to precisely match the
specification of the X Render extension. Glitz does not only implement
X Render features like component alpha and image transformations, but
also support for additional features like convolution filters and color
gradients, which are not currently part of the X Render specification.

The performance and capabilities of glitz are much dependent on
graphics hardware. Glitz does not in any way handle software
fall-backs when graphics hardware is insufficient. However, glitz
will report if any requested operation cannot be carried out by
graphics hardware, hence making a higher level software layer
responsible for appropriate actions.

%files -n %{libglx}
%doc AUTHORS COPYING README NEWS TODO
%{_libdir}/libglitz-glx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for glitz library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libglx} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}glitz-static-devel < 0.5.6-13

%description -n %{devname}
Development files for glitz library.

%files -n %{devname}
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .libtool
%patch1 -p1 -b .wformat

%build
%configure --disable-static
%make LDFLAGS+=-ldl

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1924 |21cr|gliv-1.9.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenGL image viewer
Name:		gliv
Version:	1.9.7
Release:	9
License:	GPL
Group:		Graphics
Url:		http://guichaz.free.fr/gliv/
Source:		http://guichaz.free.fr/gliv/files/%{name}-%{version}.tar.bz2
Patch0:		gliv-1.9.7-fix-link.patch
Patch1:		gliv-1.9.7-gettext.patch
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkglext-1.0)
BuildRequires:	pkgconfig(x11)
Requires:	imagemagick

%description
GLiv is an OpenGL image viewer. It performs image loading via Gdk-pixbuf
(which is bundled with GTK+-2.2) and rendering with OpenGL. The graphical
user interface uses GTK+ with GtkGLExt. If Gdk-pixbuf cannot load your image,
it uses ImageMagick to convert it to PNG. GLiv is very fast and smooth at
rotating, panning, and zooming if you have an OpenGL accelerated graphics
board.

%files -f %{name}.lang
%doc README COPYING THANKS
%{_bindir}/%{name}
%{_datadir}/pixmaps/gliv.png
%{_mandir}/man1/*
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
export LDFLAGS="-lm"
autoreconf -fi
%configure
%make

%install
%makeinstall

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1925 |21cr|global-5.7.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		global
Version:	5.7.5
Release:	7
Summary:	GNU GLOBAL source code tag system for all hackers
Source0:	http://tamacom.com/global/%{name}-%{version}.tar.gz
Patch0:		global-5.7.5-fix-str-fmt.patch
License:	GPLv3
Group:		Development/Other
Url:		http://www.gnu.org/software/global/

%description
GNU GLOBAL is a source code tag system that works the same way across
diverse environments. It supports C, C++, Yacc, Java, PHP4 and assembler
source code.

Sample quick usage:
$ tar -zxf foo-0.3.4.tar.gz && cd foo-0.3.4
$ gtags && htags -a -s -n
$ www-browser ./HTML/files.html

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std
install -d %{buildroot}%{_datadir}/emacs/site-lisp
mv %{buildroot}%{_datadir}/gtags/gtags.el %{buildroot}%{_datadir}/emacs/site-lisp/
install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat <<EOF >%{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el
(autoload 'gtags-mode "gtags" "GNU GLOBAL tags mode." t) ;;;'
EOF

pushd %{buildroot}%{_datadir}/gtags/
rm -f AUTHORS BOKIN_MODEL BOKIN_MODEL_FAQ COPYING ChangeLog DONORS \
      FAQ INSTALL LICENSE NEWS README THANKS gtags.conf
popd
# at least Lynx can work with *.html.gz, not with .ghtml
sed -e 's/gzipped_suffix=ghtml/gzipped_suffix=html.gz/' <gtags.conf >%{buildroot}%{_sysconfdir}/gtags.conf

%files
%doc AUTHORS BOKIN_MODEL BOKIN_MODEL_FAQ COPYING ChangeLog DONORS FAQ
%doc INSTALL LICENSE NEWS README THANKS gtags.conf
%{_bindir}/global
%{_bindir}/gozilla
%{_bindir}/gtags
%{_bindir}/gtags-cscope
%{_bindir}/gtags-parser
%{_bindir}/htags
%{_mandir}/man1/global.1.*
%{_mandir}/man1/gozilla.1.*
%{_mandir}/man1/gtags-cscope.1.*
%{_mandir}/man1/gtags-parser.1.*
%{_mandir}/man1/gtags.1.*
%{_mandir}/man1/htags.1.*
%{_infodir}/global.info.*
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
%config(noreplace) %{_sysconfdir}/gtags.conf
%{_datadir}/emacs/site-lisp/gtags.el
%dir %{_datadir}/gtags
%{_datadir}/gtags/bless.sh.tmpl
%{_datadir}/gtags/global.cgi.tmpl
%{_datadir}/gtags/ghtml.cgi.tmpl
%{_datadir}/gtags/globash.rc
%{_datadir}/gtags/gtags.pl
%{_datadir}/gtags/gtags.vim
%{_datadir}/gtags/icons/*
%{_datadir}/gtags/style.css

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1926 |21cr|globulation2-0.9.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname glob2
%define url_ver %(echo %{version}|cut -d. -f1,2,3)

Summary:	A state of the art Real Time Strategy (RTS) game
Name:		globulation2
Version:	0.9.4.4
Release:	1
Epoch:		1
License:	GPLv3
Group:		Games/Strategy
Url:		https://www.globulation2.org/
Source0:	https://download.savannah.nongnu.org/releases/%{oname}/%{url_ver}/%{oname}-%{version}.tar.gz
Source2:	http://goldeneye.sked.ch/~smagnena/sans.ttf
Patch0:		glob2-0.9.4.1-gcc44.patch
Patch1:		glob2-0.9.4.4-link.patch
Patch2:		glob2-0.9.4.4-games.h.patch
Patch3:		glob2-iostream.patch
Patch4:		glob2-0.9.4.4-gcc7.patch
Patch5:		glob2-0.9.4.4-scons-3.0.3.patch
Patch6:		glob2-py3-scons.patch
Patch7:		patch-boost-1.69.patch
BuildRequires:	scons
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(vorbis)

%description
Glob2 is a state of the art Real Time Strategy (RTS) game. It is free
software released under the terms of the GNU General Public License.

Globulation in a whole is an on-going project to create an innovative
high quality gameplay by minimizing micro-management and assigning
automatically the tasks to the units. The player just has to order
the number of units he wants for a selected task and the units will
do their best to satisfy your requirements.

Glob2 can be played by a single player, through your Local Area
Network (LAN), or through Internet thanks to Ysagoon Online Game (YOG),
a meta-server. It also features a scripting language for versatile
gameplay and an integrated map editor.

%files
%doc README
%attr(755,root,root) %{_gamesbindir}/%{oname}
%{_datadir}/%{oname}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p0

chmod -x {src/*.h,src/*.cpp,libgag/include/*.h,gnupg/*,libgag/src/*.cpp,scripts/*,data/*.txt,campaigns/*,COPYING,README}

%build
# data should be installed into datadir rather than gamesdatadir,
# otherwise it cannot find them :(
%scons \
	--portaudio=true \
	BINDIR="%{_gamesbindir}" \
	INSTALLDIR="%{_datadir}" \
	CXXFLAGS="%{optflags}" \
	LINKFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}%{_datadir}/%{oname}/{data/fonts,data/gfx/cursor,data/gui,data/icons,data/zik,maps,scripts,campaigns}
cp -r {data,campaigns,scripts,maps} %{buildroot}%{_datadir}/%{oname}/

mkdir -p %{buildroot}%{_gamesbindir}
install -m755 src/glob2 %{buildroot}%{_gamesbindir}/

find %{buildroot} -name SConscript -exec rm -f {} \;

#(tpg) not needed
rm -fr %{buildroot}%{_datadir}/%{oname}/data/%{oname}.desktop

for f in 128x128 16x16 24x24 32x32 48x48 64x64; do
mkdir -p %{buildroot}%{_iconsdir}/hicolor/$f/apps
mv %{buildroot}%{_datadir}/%{oname}/data/icons/glob2-icon-$f.png %{buildroot}%{_iconsdir}/hicolor/$f/apps/%{name}.png
done
rm -rf %{buildroot}%{_datadir}/%{oname}/data/icons

install %{SOURCE2} %{buildroot}%{_datadir}/%{oname}/data/fonts

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Globulation2
Comment=A state of the art Real Time Strategy (RTS) game
Exec=%{_gamesbindir}/%{oname}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;StrategyGame;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1927 |21cr|glog-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libglog %mklibname glog %major
%define libglog_devel %mklibname glog -d

Name:		glog
Version:	0.6.0
Release:	1
Summary:	Logging library for C++
Group:		Development/C++
License:	BSD
URL:		https://github.com/google/glog
Source0:	https://github.com/google/glog/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(gflags)

%description
The glog library implements application-level logging. This library provides
logging APIs based on C++-style streams and various helper macros.

#------------------------------------------------------------------------------

%package -n %{libglog}

Summary:	Logging library for C++
Group:		Development/C++
Provides:	%{name} = %{EVRD}

%description -n %{libglog}
The glog library implements application-level logging. This library provides
logging APIs based on C++-style streams and various helper macros.

%files -n %{libglog}
%{_libdir}/libglog.so.%{major}
%{_libdir}/libglog.so.%{version}

#------------------------------------------------------------------------------#

%package -n %{libglog_devel}

Summary:	Development files for %{libglog}
Group:		Development/C++
Requires:	%{libglog} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{libglog_devel}
Development files for %{libglog}

%files -n %{libglog_devel}
%doc README.* AUTHORS
%{_libdir}/libglog.so
%{_libdir}/pkgconfig/libglog.pc
%{_libdir}/cmake/glog
%{_includedir}/glog

#------------------------------------------------------------------------------#

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1928 |21cr|gloox-1.0.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 18
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	C++ Jabber/XMPP library
Name:		gloox
Version:	1.0.24
Release:	1
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://camaya.net/gloox/
Source0:	http://camaya.net/download/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(iksemel)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
gloox is a C++ Jabber/XMPP library which takes care of the
low-level protocol stuff. Additionally, it offers high-level
interfaces for interaction with an XMPP server. It is released
under the GNU GPL. Commercial licenses are available.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
gloox is a C++ Jabber/XMPP library which takes care of the
low-level protocol stuff. Additionally, it offers high-level
interfaces for interaction with an XMPP server. It is released
under the GNU GPL. Commercial licenses are available.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libgloox.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_bindir}/gloox-config
%{_includedir}/gloox/
%{_libdir}/libgloox.so
%{_libdir}/pkgconfig/gloox.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library for %{name}
Group:		Development/C++
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static library for %{name}.

%files -n %{sdevname}
%{_libdir}/libgloox.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# 11/11/2009 fix underlinking
export PTHREAD_LIBS="-lpthread"
%configure \
	--enable-static \
	--without-tests

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1929 |21cr|glossaries-irish-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		glossaries-irish
Version:	20160624
Release:	1
Summary:	Irish language module for glossaries package
Group:		Publishing
URL:		https://ctan.org/pkg/glossaries-irish
License:	LPPL1.3
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-irish.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-irish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Irish language module for glossariesr package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1930 |21cr|glpeces-5.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname peces
%define _appdatadir %{_datadir}/appdata

Name:		glpeces
Summary:	Tangram game
License:	GPLv2
Version:	5.2
Release:	4
Group:		Games/Puzzles
URL:		http://pecesjocdetangr.sourceforge.net/
# https://sourceforge.net/projects/pecesjocdetangr/files/version%205.2%20%28February%2C%202016%29/
Source0:	glpeces-5.2.tar.gz
Source1:	%{name}.desktop
BuildRequires:  cmake >= 2.8.10.2
BuildRequires:  pkgconfig(Qt5Core) >= 5.6
BuildRequires:  pkgconfig(Qt5Script) >= 5.6
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.6
BuildRequires:  pkgconfig(Qt5Gui) >= 5.6
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.6
BuildRequires:	qmake5
BuildRequires:	imagemagick
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils

%description
Tangaram game using Qt5.


%files
%doc copying readme changelog
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_gamesdatadir}/%{name}
%{_mandir}/man6/glpeces.6.*
#--------------------------------------

%prep
%setup -q

%build
%cmake_qt5
%make


%install
%makeinstall_std -C build
# fixed menu entry
desktop-file-install %{SOURCE1} \
  --dir=%{buildroot}%{_datadir}/applications 
  
# appdata  
mkdir -p %{buildroot}%{_appdatadir}
cp -pr menu/%{name}.appdata.xml \
  %{buildroot}%{_appdatadir}/%{name}.appdata.xml

# icons
for N in 16 32 48 64;
  do
   convert images/glpeces-64x64.png -scale ${N}x${N} $N.png;
   install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done  

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1931 |21cr|glpi-10.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	doc_version	0.85
%global __requires_exclude pear\\(.*\\.php\\)|/usr/bin/php

Name:		glpi
Version:	10.0.7
Release:	1
Epoch:		1
Summary:	A web based park management
License:	GPLv2+
Group:		Monitoring
Url:		http://www.glpi-project.org/
Source0:	https://github.com/glpi-project/glpi/releases/download/%{version}/%{name}-%{version}.tgz
Source1:	https://forge.glpi-project.org/attachments/download/1901/glpidoc-%{doc_version}-en-partial.pdf
Source100:	%{name}.rpmlintrc
Requires:	apache-mod_php
Requires:	mariadb-server >= 10.0
Requires:	php-cli >= 5.6
Requires:	php-dom
Requires:	php-fileinfo
Requires:	php-gd
Requires:	php-iconv
Requires:	php-imap
Requires:	php-json
Requires:	php-ldap
Requires:	php-mysqli
Requires:	php-mbstring
Requires:	php-openssl
Requires:	php-session
Requires:	php-simplexml
# The Zenf* stuff is needed for the app cache:
# see (french) https://glpi-user-documentation.readthedocs.io/fr/latest/advanced/cache.html
Requires:	php-ZendFramework2-Cache
Requires:	php-ZendFramework2-I18n
Requires:	php-ZendFramework2-Loader
Requires:	php-ZendFramework2-EventManager
Requires:	php-ZendFramework2-ServiceManager
Requires:	php-ZendFramework2-Stdlib
Requires:	php-ZendFramework2-Version
Requires:	php-zlib
Requires:	php-xml
Requires:	php-xmlrpc
Recommends:	php-pear-CAS
Recommends:	php-phpmailer
BuildArch:  noarch

%description
GLPI is web based database application allowing to managed computers and
peripherals park. Its goal is to help technicians about maintenance
expiration, stock flow and license counting.

%files
%doc apirest.md CHANGELOG.md LICENSE README.md SUPPORT.md
%doc glpidoc-%{doc_version}-en-partial.pdf
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/cron.d/%{name}
%dir %attr(-,apache,apache) %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_datadir}/%{name}
%attr(-,apache,apache) %{_localstatedir}/lib/%{name}
%attr(-,apache,apache) %{_localstatedir}/log/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
install -m 644 %{SOURCE1} .


%build
# Nothing to do


%install
# Install app files in /usr/share
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 644 *.php %{buildroot}%{_datadir}/%{name}
for i in ajax config css css_compiled front inc install lib locales pics plugins sound vendor ; do
	cp -ar $i %{buildroot}%{_datadir}/%{name}
done

# Install app files in /etc
install -d -m 755 %{buildroot}%{_sysconfdir}/glpi
#install -m 644 config/*.php %%{buildroot}%%{_sysconfdir}/glpi
pushd %{buildroot}%{_datadir}/%{name}
	ln -sf ../../..%{_sysconfdir}/glpi config
popd

# Install license file
install -m 644 LICENSE %{buildroot}%{_datadir}/%{name}

# Remove unwanted stuff
find %{buildroot}%{_datadir}/%{name} -name .htaccess | xargs rm -f
pushd %{buildroot}%{_datadir}/%{name}/lib/
	rm -rf phpcas
	rm -rf phpmailer
	rm -rf cache_lite
	rm -rf Zend
popd


# Install config files
cat > %{buildroot}%{_sysconfdir}/glpi/config_path.php <<EOF
<?php
//for packaging defaults

define("GLPI_CONFIG_DIR",	"%{_sysconfdir}/glpi");

define("GLPI_DOC_DIR",		"%{_localstatedir}/lib/%{name}");
define("GLPI_CACHE_DIR",	"%{_localstatedir}/lib/%{name}/_cache/");
define("GLPI_CRON_DIR",		"%{_localstatedir}/lib/%{name}/_cron");
define("GLPI_DUMP_DIR",		"%{_localstatedir}/lib/%{name}/_dumps");
define("GLPI_GRAPH_DIR",	"%{_localstatedir}/lib/%{name}/_graphs");
define("GLPI_LOCK_DIR",		"%{_localstatedir}/lib/%{name}/_lock/");
define("GLPI_PICTURE_DIR",	"%{_localstatedir}/lib/%{name}/_pictures");
define("GLPI_PLUGIN_DOC_DIR",	"%{_localstatedir}/lib/%{name}/_plugins");
define("GLPI_RSS_DIR",		"%{_localstatedir}/lib/%{name}/_rss");
define("GLPI_SESSION_DIR",	"%{_localstatedir}/lib/%{name}/_sessions");
define("GLPI_TMP_DIR",		"%{_localstatedir}/lib/%{name}/_tmp");
define("GLPI_UPLOAD_DIR",	"%{_localstatedir}/lib/%{name}/_uploads");

define("GLPI_LOG_DIR",		"%{_localstatedir}/log/%{name}");

define('GLPI_CACHE_LITE_DIR',	'Cache');
define('GLPI_PHPMAILER_DIR',	'PHPMailer');
define('GLPI_PHPCAS',			'CAS.php');
define('GLPI_ZEND_PATH',		'/usr/share/php/Zend');
?>
EOF

install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
Alias /%{name} %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Require all granted
    Options -FollowSymLinks
    # recommanded value
    php_value memory_limit 64M
</Directory>

<Directory %{_datadir}/%{name}/install>
    # 15" should be enough for migration in most case
    php_value max_execution_time 900
    php_value memory_limit 128M
</Directory>

<Directory %{_datadir}/%{name}/files>
    Require all denied
</Directory>

<Directory %{_datadir}/%{name}/inc>
    Require all denied
</Directory>

<Directory %{_datadir}/%{name}/locales>
    Require all denied
</Directory>

<Directory %{_datadir}/%{name}/mysql>
    Require all denied
</Directory>

<Directory %{_datadir}/%{name}/scripts>
    Require all denied
</Directory>
EOF

# Create the needed directories
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_cache
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_cron
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_dumps
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_graphs
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_lock
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_pictures
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_plugins
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_rss
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_sessions
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_tmp
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/_uploads
install -d -m 755 %{buildroot}%{_localstatedir}/log/%{name}

# Create logrotate config file
install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
/var/log/glpi/*.log {
    notifempty
    missingok
    create 644 apache apache
}
EOF

# Create cron file to run the app unattended
install -d -m 755 %{buildroot}%{_sysconfdir}/cron.d
cat > %{buildroot}%{_sysconfdir}/cron.d/%{name} <<EOF
# Run cron from to execute task even when no user connected
*/4 * * * * apache %{_bindir}/php %{_datadir}/%{name}/front/cron.php
EOF

# Fix perms
find %{buildroot}%{_datadir}/%{name} -name *.scss | xargs chmod -x
find %{buildroot}%{_datadir}/%{name} -name *.svg | xargs chmod -x
find %{buildroot}%{_datadir}/%{name} -name *.css | xargs chmod -x
find %{buildroot}%{_datadir}/%{name} -name *.class.php | xargs chmod -x

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1932 |21cr|glpi-plugin-archires-2.7.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Network reporting plugin
Name:		glpi-plugin-archires
Version:	2.7.0
Release:	5
License:	GPL
Group:		Monitoring
Url:		https://forge.glpi-project.org/projects/archires
Source0:	https://forge.glpi-project.org/attachments/download/2297/glpi-archires-%{version}.tar.gz
Source1:	pack.mg_dvl.tar.bz2
Requires:	graphviz
BuildArch:	noarch

%description
This plugin allow you to generate automatically a graphical representation of
the network architecture.

%prep

%setup -q -n archires
%setup -q -T -D -a 1 -n archires

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%install

install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/archires
cp -ap * %{buildroot}%{_datadir}/glpi/plugins/archires

%files
%{_datadir}/glpi/plugins/archires

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1933 |21cr|glpi-plugin-datainjection-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SNMP agent plugin
Name:		glpi-plugin-datainjection
Version:	2.3.1
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		https://forge.glpi-project.org/projects/show/datainjection
Source0:	https://forge.glpi-project.org/attachments/download/1719/glpi-datainjection-%{version}.tar.gz
Provides:	glpi-data-injection = %{EVRD}
BuildArch:	noarch

%description
This plugin allows data import into GLPI using CSV files
It allows to create models of injection for a future re-use. It's been created
in order to :
- Import datas coming from others asset management softwares
- Inject electronic delivery forms
Datas to be imported using the plugains are :
- Inventory datas (except softwares and licenses)
- Management datas (contract, contact, supplier)
- Configuration datas (user, group, entity)

%files
%doc docs/*
%{_datadir}/glpi/plugins/datainjection


#----------------------------------------------------------------------------

%prep
%setup -q -n datainjection

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%install
install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/datainjection
cp -ap * %{buildroot}%{_datadir}/glpi/plugins/datainjection
rm -rf %{buildroot}%{_datadir}/glpi/plugins/datainjection/docs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1934 |21cr|glpi-plugin-fusioninventory-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	fusioninventory communication server
Name:		glpi-plugin-fusioninventory
Version:	3.0
Release:	1
Epoch:		1
License:	GPLv3+
Group:		Monitoring
Url:		https://fusioninventory.org
Source0:	https://github.com/fusioninventory/fusioninventory-for-glpi/releases/download/glpi9.5%2B%{version}/fusioninventory-9.5+%{version}.tar.bz2
BuildArch:	noarch

%description
This plugin enables you to manage fusioninventory agents from GLPI.

%files
%doc docs
%{_datadir}/glpi/plugins/fusioninventory

#----------------------------------------------------------------------------

%prep
%setup -q -n fusioninventory

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/fusioninventory
cp -rp * %{buildroot}%{_datadir}/glpi/plugins/fusioninventory

rm -rf %{buildroot}%{_datadir}/glpi/plugins/fusioninventory/.github
rm -rf %{buildroot}%{_datadir}/glpi/plugins/fusioninventory/docs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1935 |21cr|glpi-plugin-genericobject-2.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Add new inventory objects
Name:		glpi-plugin-genericobject
Version:	2.3.2
Release:	5
License:	GPL
Group:		Monitoring
Url:		https://forge.glpi-project.org/projects/show/genericobject/
Source0:	https://forge.glpi-project.org/attachments/download/1822/glpi-genericobject-%{version}.tar.gz
BuildArch:	noarch

%description
This plugin allows you to add new inventory types without programmation. It
manages :
- Type creation
- Available fields
- Framework integration (Helpdesk, loans, templates, etc.)
- Integration with the file injection plugin

%prep

%setup -q -n genericobject

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%install

install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/genericobject
cp -ap * %{buildroot}%{_datadir}/glpi/plugins/genericobject
rm -rf %{buildroot}%{_datadir}/glpi/plugins/genericobject/docs
rm -f %{buildroot}%{_datadir}/glpi/plugins/genericobject/LICENSE
rm -f %{buildroot}%{_datadir}/glpi/plugins/genericobject/README

%files
%doc docs/* LICENSE README
%{_datadir}/glpi/plugins/genericobject

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1936 |21cr|glpi-plugin-manufacturersimports-1.7.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Financials informations from manufacturers web site plugin
Name:		glpi-plugin-manufacturersimports
Version:	1.7.0
Release:	5
License:	GPL
Group:		Monitoring
Url:		https://forge.glpi-project.org/projects/show/manufacturersimports
Source0:	https://forge.glpi-project.org/attachments/download/2018/glpi-manufacturersimports-%{version}.tar.gz
BuildArch:	noarch

%description
This plugin allows you to inject financials informations from manufacturers web
site files in GLPI.

%prep

%setup -q -n manufacturersimports

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%install

install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/manufacturersimports
cp -ap * %{buildroot}%{_datadir}/glpi/plugins/manufacturersimports
rm -f %{buildroot}%{_datadir}/glpi/plugins/manufacturersimports/prerequis.txt

%files
%doc prerequis.txt
%{_datadir}/glpi/plugins/manufacturersimports

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1937 |21cr|glpi-plugin-massocsimport-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GLPI Plugin for OCS Massive import
Name:		glpi-plugin-massocsimport
Version:	1.6.1
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		https://forge.glpi-project.org/projects/show/massocsimport
Source0:	https://forge.glpi-project.org/attachments/download/1211/glpi-massocsimport-%{version}.tar.gz
Requires:	cronie
Requires:	glpi >= 0.80
Provides:	glpi-massocsimport = %{EVRD}
BuildArch:	noarch

%description
Plugin which allow OCS continuous synchronization and massive importation.

The extension Config panel is provided to handle the synchronization options.

%files
%config(noreplace) %{_sysconfdir}/cron.d/%{name}
%{_datadir}/glpi/plugins/massocsimport

#----------------------------------------------------------------------------

%prep
%setup -q -n massocsimport

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%build
# empty build

cat >cron <<EOF
# GLPI mass_ocs_import extension.
# Must be enabled from the Control panel.
*/5 * * * * apache %{_datadir}/glpi/plugins/massocsimport/scripts/ocsng_fullsync.sh
EOF

%install
install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/massocsimport
cp -rp * %{buildroot}%{_datadir}/glpi/plugins/massocsimport/

chmod 755 %{buildroot}%{_datadir}/glpi/plugins/massocsimport/scripts/ocsng_fullsync.sh

install -d %{buildroot}%{_sysconfdir}/cron.d
install -m0644 cron %{buildroot}%{_sysconfdir}/cron.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1938 |21cr|glpi-plugin-racks-1.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SNMP agent plugin
Name:		glpi-plugin-racks
Version:	1.5.0
Release:	5
License:	GPL
Group:		Monitoring
URL:		https://forge.glpi-project.org/projects/show/racks
Source0:	https://forge.glpi-project.org/attachments/download/1936/glpi-racks-%{version}.tar.gz
BuildArch:	noarch

%description
This plugin allows you to create bays. Manage the placement of your materials
in your bays. And so know the space and its power consumption and heat
dissipation.

%prep

%setup -q -n racks

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%install

install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/racks
cp -ap * %{buildroot}%{_datadir}/glpi/plugins/racks

%files
%{_datadir}/glpi/plugins/racks

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1939 |21cr|glpi-plugin-reports-1.14.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SNMP agent plugin
Name:		glpi-plugin-reports
Version:	1.14.1
Release:	5
License:	GPL
Group:		Monitoring
Url:		https://forge.glpi-project.org/projects/reports
Source0:	https://forge.glpi-project.org/attachments/download/2332/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
This plugin enables additional reports.

Main features :
* It also plugin allow you to add new reports in a simply way (one PHP script
  for the report and one for the translation).
* It handle the right for each new report
* It provides some new reports (as sample)


This plugin allows you to create bays. Manage the placement of your materials
in your bays. And so know the space and its power consumption and heat
dissipation.

%prep

%setup -q -n reports

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%install

install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/reports
cp -ap * %{buildroot}%{_datadir}/glpi/plugins/reports

%files
%{_datadir}/glpi/plugins/reports

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1940 |21cr|glpi-plugin-webservices-2.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Web Services plugin
Name:		glpi-plugin-webservices
Version:	2.0.0
Release:	5
License:	GPL
Group:		Monitoring
URL:		https://forge.glpi-project.org/projects/webservices
Source0:	https://forge.glpi-project.org/attachments/download/2299/glpi-webservices-%{version}.tar.gz
Requires:	php-soap
Requires:	php-xmlrpc
BuildArch:	noarch

%description
This plugin provides a server for Web Services which allow an external
application to check and control GLPI.

%prep

%setup -q -n webservices

find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%install

install -d -m 755 %{buildroot}%{_datadir}/glpi/plugins/webservices
cp -ap * %{buildroot}%{_datadir}/glpi/plugins/webservices

%files
%{_datadir}/glpi/plugins/webservices

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1941 |21cr|glpi-tracker_agent-1.5.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __requires_exclude ^perl\\(communications_serveur\\)|^perl\\(device.*\\)|^perl\\(errors\\)|^perl\\(functions\\)|^perl\\(tracker.*\\)

Name:		glpi-tracker_agent
Version:	1.5.3
Release:	5
Summary:	SNMP agent plugin
Group:		Monitoring
License:	GPL
Url:		http://forge.indepnet.net/projects/tracker
Source0:	https://forge.indepnet.net/attachments/download/510/%{name}-%{version}.tar.gz
Patch0:		agent_tracker-1.5.3-fhs.patch
BuildArch:	noarch

%description
This plugin enables you get informations for networking devices by SNMP.

%prep
%autosetup -p1 -n agent_tracker

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_sbindir}
install -m 755 tracker_agent.pl %{buildroot}%{_sbindir}

install -d -m 755 %{buildroot}%{_datadir}/tracker_agent
cp -r inc %{buildroot}%{_datadir}/tracker_agent
cp -r tools %{buildroot}%{_datadir}/tracker_agent

install -d -m 755 %{buildroot}%{_localstatedir}/log/tracker_agent

install -d -m 755 %{buildroot}%{_sysconfdir}
cat > %{buildroot}%{_sysconfdir}/tracker_agent.conf <<EOF
server=http://192.168.0.1/glpi/plugins/tracker/front/plugin_tracker.agents.diag.php
id=1
key=WdcgsRftXkBoohQUmcboKC7gGM2NeL
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sbindir}/tracker_agent.pl
%{_datadir}/tracker_agent
%{_localstatedir}/log/tracker_agent
%config(noreplace) %{_sysconfdir}/tracker_agent.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1942 |21cr|gltron-0.70-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gltron, a 3d lightcycle game using OpenGL
Name:		gltron
Version:	0.70
Release:	17
License:	GPLv2+
Group:		Games/Arcade
Url:		http://gltron.sourceforge.net
Source:		gltron-%{version}.tar.bz2
Source1:	gltron-xpm.tar.bz2
Patch0:		gltron-0.70-gcc4.patch
Patch1:		gltron-0.70-sys-cflags.patch
Patch2:		gltron-0.70-link.patch
Patch3:		gltron-0.70-link2.patch
Patch4:		gltron-0.70-link3.patch
BuildRequires:	SDL_sound-devel
BuildRequires:	smpeg-devel
BuildRequires:	stdc++-static-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)

%description
A very nice Tron game using OpenGL.

%files
%doc ChangeLog README
%{_gamesbindir}/gltron
%dir %{_gamesdatadir}/gltron/
%{_gamesdatadir}/gltron/art
%{_gamesdatadir}/gltron/data
%{_gamesdatadir}/gltron/music
%{_gamesdatadir}/gltron/scripts
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/gltron.png
%{_iconsdir}/gltron.png
%{_liconsdir}/gltron.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .gcc4
%patch1 -p0 -b .cflags
%patch2 -p0 -b .link
%patch3 -p0 -b .link2
%patch4 -p1 -b .link3

%build
touch AUTHORS NEWS
autoreconf -fi
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir} \
	--disable-warn \
	--disable-sdltest
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_miconsdir}
mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}%{_liconsdir}
tar xfj %{SOURCE1}
install -m0644 gltron-16.png %{buildroot}%{_miconsdir}/gltron.png
install -m0644 gltron-32.png %{buildroot}%{_iconsdir}/gltron.png
install -m0644 gltron-48.png %{buildroot}%{_liconsdir}/gltron.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Gltron
Comment=3d lightcycle game
Exec=%{_gamesbindir}/gltron
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1943 |21cr|glui-2.36-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define	major	2

%define libname		%mklibname %{name} %{major}
%define libnamedev 	%mklibname %{name} %{major} -d

Summary:	GL User Interface Library
Name:		glui
Version:	2.36
Release:	8
Group:		System/Libraries
License:	LGPL
URL:		http://glui.sourceforge.net/
Source:		%{name}-%{version}.tar.bz2
#patch sent upstream by Kharec
Patch:		glui-2.36-fix-cpp-examples.patch
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(xmu)


%description
GLUI is a GLUT-based C++ user interface library which provides
controls such as buttons, checkboxes, radio buttons, and spinners
to OpenGL applications. It is window-system independent, relying
on GLUT to handle all system-dependent issues, such as window and
mouse management.

%package -n %{libnamedev}
Summary:	GLUI User Interface Library Development Files
Group:		System/Libraries
Provides:	%{name}-devel = %{EVRD}


%description -n %{libnamedev}
GLUI is a GLUT-based C++ user interface library which provides
controls such as buttons, checkboxes, radio buttons, and spinners
to OpenGL applications. It is window-system independent, relying
on GLUT to handle all system-dependent issues, such as window and
mouse management.
This package includes the header files and static library.

%package -n %{name}-demos
Summary:	GLUI Demos
Group:		Graphics

%description -n %{name}-demos
GLUI is a GLUT-based C++ user interface library which provides
controls such as buttons, checkboxes, radio buttons, and spinners
to OpenGL applications. It is window-system independent, relying
on GLUT to handle all system-dependent issues, such as window and
mouse management.
This package includes some binaries statically built with GLUI.
Their source code is in %{_datadir}/%{name}-demos.

%prep
%setup -q 
%patch -p0

%build
mkdir lib
mkdir bin
cd src/
make GLUT_LIB_LOCATION=%{_libdir} GLUT_INC_LOCATION=%{_includedir}/GL CFLAGS="%{optflags}" CC=g++

for i in 1 2 3 4 5; do mv bin/example$i bin/GLUI-example$i; done

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}/GL
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_datadir}/%{name}-demos
cp src/lib/*.a %{buildroot}%{_libdir}
cp src/include/GL/*.h %{buildroot}%{_includedir}/GL
cp src/bin/* %{buildroot}%{_bindir}
cp src/example/example*.cpp %{buildroot}%{_datadir}/%{name}-demos

%files -n %{libnamedev}
%doc src/doc/*
%{_includedir}/GL
%{_libdir}/*.a

%files -n %{name}-demos
%{_datadir}/%{name}-demos/example*.cpp
%{_bindir}/example6
%{_bindir}/ppm2array
%{_bindir}/GLUI-example1
%{_bindir}/GLUI-example2
%{_bindir}/GLUI-example3
%{_bindir}/GLUI-example4
%{_bindir}/GLUI-example5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1944 |21cr|glusterfs-7.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _sharedstatedir %{_var}/lib

%define major 0
%define libname %mklibname glusterfs %{major}
%define devname %mklibname glusterfs -d

%define libgfchangelog %mklibname gfchangelog %{major}
%define libgfrpc %mklibname gfrpc %{major}
%define libgfxdr %mklibname gfxdr %{major}

%define libnameapi %mklibname gfapi %{major}
%define devnameapi %mklibname gfapi -d

%define url_ver %(echo %{version}|cut -d. -f1)
# (cg) Temporary hack to make it build
#%%define _disable_ld_no_undefined 1

Summary:	GlusterFS network/cluster filesystem
Name:		glusterfs
Version:	7.8
Release:	1
License:	GPLv3+
Group:		Networking/Other
Url: 		http://www.gluster.org/docs/index.php/GlusterFS
Source0:	http://download.gluster.org/pub/gluster/glusterfs/%{url_ver}/%{version}/%{name}-%{version}.tar.gz
Source1:	glusterfsd.service
Source2:	glusterfsd.sysconfig
Source3:	glusterfsd.logrotate
Source4:	glusterfs.logrotate
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	acl-devel
BuildRequires:	pkgconfig(libibverbs)
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(liburcu-bp)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
Provides:	%{name}-common = %{EVRD}
Provides:	%{name}-core = %{EVRD}

%description
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package includes the glusterfs binary, the glusterfsd daemon and the
gluster command line, libglusterfs and glusterfs translator modules common to
both GlusterFS server and client framework.

%files
%doc ChangeLog COPYING-GPLV2 COPYING-LGPLV3 INSTALL README.md THANKS
%config(noreplace) %{_sysconfdir}/sysconfig/glusterfsd
%{_libexecdir}/glusterfs/*
# server-side, etc., xlators in other RPMs
%exclude %{_libexecdir}/glusterfs/%{version}/xlator/mount/api.so
%exclude %{_libexecdir}/glusterfs/%{version}/xlator/mount/fuse.so
%exclude %{_libexecdir}/glusterfs/python/syncdaemon/*
%exclude %{_libexecdir}/glusterfs/gsyncd
%exclude %{_libexecdir}/glusterfs/gverify.sh
%exclude %{_libexecdir}/glusterfs/peer_add_secret_pub
%exclude %{_libexecdir}/glusterfs/peer_gsec_create

%{_sbindir}/glusterfs*
%{_sbindir}/gf_attach
%{_sbindir}/gluster-setgfid2path
%{_mandir}/man8/*gluster*.8*
%exclude %{_mandir}/man8/gluster.8*
%exclude %{_mandir}/man8/mount.glusterfs.8*
%dir %{_localstatedir}/log/glusterfs

%dir %{_sharedstatedir}/glusterd
%{_datadir}/glusterfs/scripts/post-upgrade-script-for-quota.sh
%{_datadir}/glusterfs/scripts/pre-upgrade-script-for-quota.sh

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GlusterFS network/cluster filesystem library
Group:		System/Libraries

%description -n %{libname}
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

Please visit http://www.gluster.org/docs/index.php/GlusterFS for more info.

This package includes the libglusterfs and glusterfs translator modules common
to both GlusterFS server and client framework.

%files -n %{libname}
%{_libdir}/libglusterfs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgfchangelog}
Summary:	GlusterFS network/cluster filesystem library
Group:		System/Libraries

%description -n %{libgfchangelog}
Package with library libgfchangelog.so.%{major}.

%files -n %{libgfchangelog}
%{_libdir}/libgfchangelog.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgfrpc}
Summary:	GlusterFS network/cluster filesystem library
Group:		System/Libraries

%description -n %{libgfrpc}
Package with library libgfrpc.so.%{major}.

%files -n %{libgfrpc}
%{_libdir}/libgfrpc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgfxdr}
Summary:	GlusterFS network/cluster filesystem library
Group:		System/Libraries

%description -n %{libgfxdr}
Package with library libgfxdr.so.%{major}.

%files -n %{libgfxdr}
%{_libdir}/libgfxdr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the GlusterFS library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libgfchangelog} = %{EVRD}
Requires:	%{libgfrpc} = %{EVRD}
Requires:	%{libgfxdr} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}api-devel < 7.0

%description -n %{devname}
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

This package provides the development libraries and include files.

%files -n %{devname}
%{_includedir}/glusterfs
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%exclude %{_includedir}/glusterfs/api/*
%exclude %{_libdir}/pkgconfig/glusterfs-api.pc
%exclude %{_libdir}/libgfapi.so

#----------------------------------------------------------------------------

%package -n %{libnameapi}
Summary:	Gluster filesystem api shared library
Group:		System/Libraries
Conflicts:	%{_lib}api0 < 7.0
Obsoletes:	%{_lib}api0 < 7.0

%description -n %{libnameapi}
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides the api shared library.

%files -n %{libnameapi}
%{_libdir}/libgfapi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devnameapi}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libnameapi} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Conflicts:	%{_lib}api-devel < 7.0
Obsoletes:	%{_lib}api-devel < 7.0

%description -n %{devnameapi}
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides the api include files.

%files -n %{devnameapi}
%{_libdir}/pkgconfig/glusterfs-api.pc
%{_libdir}/libgfapi.so
%{_includedir}/glusterfs/api/*

#----------------------------------------------------------------------------

%package regression-tests
Summary:	Development Tools
Group:		File tools
Requires:	%{name} = %{EVRD}
Requires:	%{name}-fuse = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires:	attr
Requires:	dbench
Requires:	gcc
Requires:	git
Requires:	lvm2
Requires:	nfs-utils
Requires:	python3
Requires:	util-linux-ng
Requires:	xfsprogs
Requires:	perl(App::Prove)
Requires:	perl(Test::Harness)

%description regression-tests
The Gluster Test Framework, is a suite of scripts used for
regression testing of Gluster.

%files regression-tests
%{_datadir}/glusterfs/*
%exclude %{_datadir}/glusterfs/scripts/get-gfid.sh
%exclude %{_datadir}/glusterfs/scripts/slave-upgrade.sh
%exclude %{_datadir}/glusterfs/scripts/gsync-upgrade.sh
%exclude %{_datadir}/glusterfs/scripts/generate-gfid-file.sh
%exclude %{_datadir}/glusterfs/scripts/gsync-sync-gfid
%exclude %{_datadir}/glusterfs/scripts/post-upgrade-script-for-quota.sh
%exclude %{_datadir}/glusterfs/scripts/pre-upgrade-script-for-quota.sh

#----------------------------------------------------------------------------

%package cli
Summary:	GlusterFS CLI
Group:		File tools

%description cli
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides the GlusterFS CLI application and its man page

%files cli
%{_sbindir}/gluster
%{_mandir}/man8/gluster.8*

#----------------------------------------------------------------------------

%package client
Summary:	GlusterFS client
Group:		Networking/Other
Requires:	%{name}-common = %{EVRD}
Requires(post):	rpm-helper

%description	client
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

This package is the client needed to mount a GlusterFS fs.

%files client
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/glusterfs
%{_sbindir}/mount.glusterfs
%{_bindir}/fusermount-glusterfs
%attr(0644,root,root) %ghost %config(noreplace) %{_logdir}/glusterfs/glusterfs.log
%{_mandir}/man8/mount.glusterfs.8*

%post client
%create_ghostfile %{_logdir}/glusterfs/glusterfs.log root root 0644

#----------------------------------------------------------------------------

%package fuse
Summary:	GlusterFS fuse client
Group:		Networking/Other
Requires:	%{name} = %{EVRD}

%description fuse
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides support to FUSE based clients.

%files fuse
%{_libdir}/glusterfs/%{version}/xlator/mount/fuse*

#----------------------------------------------------------------------------

%package server
Summary:	GlusterFS server
Group:		Networking/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-client = %{EVRD}
Requires(post,preun):	rpm-helper
Requires(post):	sed

%description server
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

This package is the server.

%files server
%doc extras/clear_xattrs.sh
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/glusterfsd
%attr(0644,root,root) %ghost %config(noreplace) %{_logdir}/glusterfs/glusterfsd.log
%config(noreplace) %{_sysconfdir}/sysconfig/glusterd
%config(noreplace) %{_sysconfdir}/glusterfs
# binaries
%{_bindir}/glusterfind
%{_sbindir}/glusterd
%{_sbindir}/glfsheal
%{_unitdir}/%{name}d.service
%{_prefix}/lib/ocf/resource.d/glusterfs
%ghost %attr(0644,-,-) %config(noreplace) %{_sharedstatedir}/glusterd/glusterd.info
%ghost %attr(0600,-,-) %{_sharedstatedir}/glusterd/options
# This is really ugly, but I have no idea how to mark these directories in
# any other way. They should belong to the glusterfs-server package, but
# don't exist after installation. They are generated on the first start...
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/disabled-quota-root-xattr-heal.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/S10selinux-label-brick.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/S13create-subdir-mounts.sh
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre/S28Quota-enable-root-xattr-heal.sh
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/post
%{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post/S30samba-set.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post/S32gluster_enable_shared_storage.sh
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/pre
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S29CTDBsetup.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S30samba-start.sh
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/pre
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/post
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre/S30samba-stop.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre/S29CTDB-teardown.sh

%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/vols
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/peers
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/groups
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/virt
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs
#v.7.6 files
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/db-workload
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/distributed-virt
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/gluster-block
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/metadata-cache
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/nl-cache
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/samba
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post/S10selinux-label-brick.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre/S10selinux-del-fcontext.sh

# snap_scheduler
%{_sbindir}/conf.py
%{_sbindir}/gcron.py
%{_sbindir}/snap_scheduler.py

%post server
%create_ghostfile %{_logdir}/glusterfs/glusterfsd.log root root 0644
%_post_service %{name}d
if [ -e /etc/glusterfs/glusterfs-server.vol ]; then 
echo "Updating /etc/sysconfig/glusterfsd to point to old /etc/glusterfs/glusterfs-server.vol file"
sed -i 's|GLUSTERFSD_CONFIG_FILE="/etc/glusterfs/glusterfsd.vol"|GLUSTERFSD_CONFIG_FILE="/etc/glusterfs/glusterfs-server.vol"|g' /etc/sysconfig/glusterfsd
#   mv -n /etc/glusterfs/glusterfs-server.vol /etc/glusterfs/glusterfsd.vol
fi

%preun server
%_preun_service glusterfsd

#----------------------------------------------------------------------------

%package api
Summary:	Clustered file-system api library
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{libnameapi} = %{EVRD}
# we provide the Python package/namespace 'gluster'
Provides:	python3-gluster = %{EVRD}

%description api
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides the glusterfs libgfapi library.

%files api
# libgfapi files
%{_libdir}/glusterfs/%{version}/xlator/mount/api*

#----------------------------------------------------------------------------

%package extra-xlators
Summary:	Extra Gluster filesystem Translators
Group:		File tools
# We need -api rpm for its __init__.py in Python3 site-packages area
Requires:	python3-gluster = %{EVRD}
Requires:	%{name}-api = %{EVRD}

%description extra-xlators
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides extra filesystem Translators,
for GlusterFS.

%files extra-xlators
#v.7.6 xlator files
%{_libdir}/glusterfs/%{version}/xlator/cluster/
%{_libdir}/glusterfs/%{version}/xlator/debug/
%{_libdir}/glusterfs/%{version}/xlator/mgmt/
%{_libdir}/glusterfs/%{version}/xlator/storage/
%{_libdir}/glusterfs/%{version}/xlator/system/
%{_libdir}/glusterfs/%{version}/xlator/protocol/
%{_libdir}/glusterfs/%{version}/xlator/playground/
%{_libdir}/glusterfs/%{version}/xlator/performance/
%{_libdir}/glusterfs/%{version}/xlator/meta.so
%{_libdir}/glusterfs/%{version}/xlator/features/access-control.so
%{_libdir}/glusterfs/%{version}/xlator/features/arbiter.so
%{_libdir}/glusterfs/%{version}/xlator/features/barrier.so
%{_libdir}/glusterfs/%{version}/xlator/features/bit-rot.so
%{_libdir}/glusterfs/%{version}/xlator/features/bitrot-stub.so
%{_libdir}/glusterfs/%{version}/xlator/features/cdc.so
%{_libdir}/glusterfs/%{version}/xlator/features/changelog.so
%{_libdir}/glusterfs/%{version}/xlator/features/cloudsync.so
%{_libdir}/glusterfs/%{version}/xlator/features/gfid-access.so
%{_libdir}/glusterfs/%{version}/xlator/features/index.so
%{_libdir}/glusterfs/%{version}/xlator/features/leases.so
%{_libdir}/glusterfs/%{version}/xlator/features/locks.so
%{_libdir}/glusterfs/%{version}/xlator/features/marker.so
%{_libdir}/glusterfs/%{version}/xlator/features/namespace.so
%{_libdir}/glusterfs/%{version}/xlator/features/posix-locks.so
%{_libdir}/glusterfs/%{version}/xlator/features/quiesce.so
%{_libdir}/glusterfs/%{version}/xlator/features/quota.so
%{_libdir}/glusterfs/%{version}/xlator/features/quotad.so
%{_libdir}/glusterfs/%{version}/xlator/features/read-only.so
%{_libdir}/glusterfs/%{version}/xlator/features/sdfs.so
%{_libdir}/glusterfs/%{version}/xlator/features/selinux.so
%{_libdir}/glusterfs/%{version}/xlator/features/shard.so
%{_libdir}/glusterfs/%{version}/xlator/features/snapview-client.so
%{_libdir}/glusterfs/%{version}/xlator/features/snapview-server.so
%{_libdir}/glusterfs/%{version}/xlator/features/thin-arbiter.so
%{_libdir}/glusterfs/%{version}/xlator/features/trash.so
%{_libdir}/glusterfs/%{version}/xlator/features/upcall.so
%{_libdir}/glusterfs/%{version}/xlator/features/utime.so
%{_libdir}/glusterfs/%{version}/xlator/features/worm.so
%{_libdir}/glusterfs/%{version}/auth/addr.so
%{_libdir}/glusterfs/%{version}/auth/login.so
%{_libdir}/glusterfs/%{version}/rpc-transport/socket.so
#----------------------------------------------------------------------------
%package cloudsync-plugins
Summary:	Cloudsync Plugins
Group:		Networking/Other
BuildRequires:	curl-devel

%description cloudsync-plugins
GlusterFS is a distributed file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides cloudsync plugins for archival feature.

%files cloudsync-plugins
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/cloudsync-plugins
%{_libdir}/glusterfs/%{version}%{?prereltag}/cloudsync-plugins/cloudsyncs3.so
%{_libdir}/glusterfs/%{version}%{?prereltag}/cloudsync-plugins/cloudsynccvlt.so

#-----------------------------------------------------------------------------
%package geo-replication
Summary:	GlusterFS Geo-replication
Group:		Networking/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-client = %{EVRD}
Requires:	python3-prettytable
Requires:	python3-gluster = %{EVRD}


%description geo-replication
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

This package provides support to geo-replication.

%files geo-replication
%config(noreplace) %{_sysconfdir}/logrotate.d/glusterfs-georep
%{_libexecdir}/glusterfs/gsyncd
%{_libexecdir}/glusterfs/python/syncdaemon/*
%{_libexecdir}/glusterfs/gverify.sh
%{_libexecdir}/glusterfs/peer_add_secret_pub
%{_libexecdir}/glusterfs/peer_gsec_create
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/geo-replication
%dir %{_sharedstatedir}/glusterd/hooks
%dir %{_sharedstatedir}/glusterd/hooks/1
%dir %{_sharedstatedir}/glusterd/hooks/1/gsync-create
%dir %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post/S56glusterd-geo-rep-create-post.sh
%{_datadir}/glusterfs/scripts/get-gfid.sh
%{_datadir}/glusterfs/scripts/slave-upgrade.sh
%{_datadir}/glusterfs/scripts/gsync-upgrade.sh
%{_datadir}/glusterfs/scripts/generate-gfid-file.sh
%{_datadir}/glusterfs/scripts/gsync-sync-gfid
%ghost %attr(0644,-,-) %{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
%{_sbindir}/gfind_missing_files
%{_sbindir}/gluster-georep-sshkey
%{_sbindir}/gluster-mountbroker

%post geo-replication
#restart glusterd.
if [ $1 -ge 1 ]; then
   systemctl try-restart %1.service 
fi

#----------------------------------------------------------------------------

%package -n python3-gluster
Summary:	GlusterFS python library
Obsoletes:	python-gluster < 3.10

%description -n python3-gluster
GlusterFS is a distributed file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package contains the python modules of GlusterFS and own gluster
namespace.

%files -n python3-gluster
# introducing glusterfs module in site packages.
# so that all other gluster submodules can reside in the same namespace.
%dir %{python3_sitelib}/gluster
     %{python3_sitelib}/gluster/__init__.*
     %{python3_sitelib}/gluster/__pycache__
     %{python3_sitelib}/gluster/cliutils
#-----------------------------------------------------------------------------
%prep
%autosetup -p1-n %{name}-%{version}
cp %{SOURCE2} glusterfsd.sysconfig
cp %{SOURCE3} glusterfsd.logrotate
cp %{SOURCE4} glusterfs.logrotate

%build
./autogen.sh
%serverbuild
%configure \
	--disable-static \
	--disable-syslog \
	--disable-events

# fix hardening and remove rpath in shlibs
#sed -i 's| \\\$compiler_flags |&\\\$LDFLAGS |' libtool
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|' libtool
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|' libtool

#make LIBS="-ltirpc -ldl -lcrypto -pthread"
%make

%install
%makeinstall_std
# This is a config option but seems not working 
mv %{buildroot}/sbin/* %{buildroot}%{_sbindir}

install -D -p -m 0644 extras/glusterd-sysconfig \
    %{buildroot}%{_sysconfdir}/sysconfig/glusterd


# Remove installed docs, the ones we want are included by %%doc, in
# /usr/share/doc/glusterfs or /usr/share/doc/glusterfs-x.y.z depending
# on the distribution
rm -rf %{buildroot}%{_docdir}/glusterfs/*

head -50 ChangeLog > ChangeLog.head && mv ChangeLog.head ChangeLog
cat << EOM >> ChangeLog

More commit messages for this ChangeLog can be found at
https://forge.gluster.org/glusterfs-core/glusterfs/commits/v%{version}
EOM

# Create working directory
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd

# Update configuration file to /var/lib working directory
sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sharedstatedir}/glusterd|g' \
    %{buildroot}%{_sysconfdir}/glusterfs/glusterd.vol

install -D -p -m 0644 extras/glusterfs-logrotate \
    %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs

# geo-rep ghosts
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
install -D -p -m 0644 extras/glusterfs-georep-logrotate \
    %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs-georep


install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}d.service
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/logrotate.d

### we use journal, let's remove outdated rsyslog files
rm -f %{buildroot}extras/gluster-rsyslog-*.conf
rm -f %{buildroot}extras/gluster-rsyslog-*.conf

### remove source provided glusterd.service, we have our own
rm -f %{buildroot}%{_unitdir}/glusterd.service


install -m0644 glusterfsd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/glusterfsd
install -m0644 glusterfsd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/glusterfsd
install -m0644 glusterfs.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs


# the rest of the ghosts
#touch %{buildroot}%{_sharedstatedir}/glusterd/glusterd.info
touch %{buildroot}%{_sharedstatedir}/glusterd/options
subdirs=(add-brick create copy-file delete gsync-create remove-brick reset set start stop)
for dir in ${subdirs[@]}; do
    mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/"$dir"/{pre,post}
done

touch %{buildroot}/%{_logdir}/glusterfs/glusterfs.log
touch %{buildroot}/%{_logdir}/glusterfs/glusterfsd.log

find ./tests ./run-tests.sh -type f | cpio -pd %{buildroot}%{_prefix}/share/glusterfs

rm -f %{buildroot}%{_prefix}/share/glusterfs/tests/basic/rpm.t
rm -rf %{buildroot}/etc/init.d

# sample xlators not generally used or usable
rm -rf %{buildroot}%{_libdir}/glusterfs/%{version}/xlator/encryption/rot-13*
rm -rf %{buildroot}%{_libdir}/glusterfs/%{version}/xlator/features/mac-compat*
rm -rf %{buildroot}%{_libdir}/glusterfs/%{version}/xlator/testing/performance/symlink-cache*
rm -rf %{buildroot}%{_libdir}/glusterfs/%{version}/rpc-transport/rdma*

mkdir -m0755 %{buildroot}%{_sharedstatedir}/glusterd/glustershd
mkdir -m0755 %{buildroot}%{_sharedstatedir}/glusterd/vols
mkdir -m0755 %{buildroot}%{_sharedstatedir}/glusterd/peers
mkdir -m0755 %{buildroot}%{_sharedstatedir}/glusterd/nfs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1945 |21cr|glw-8.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xt / Motif OpenGL widgets
Name:		glw
Version:	8.0.0
Release:	5
License:	MIT
Group:		System/Libraries
Url:		http://www.mesa3d.org
Source0:	ftp://ftp.freedesktop.org/pub/mesa/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)

%description
Mesa libGLw runtime library.

#----------------------------------------------------------------------------

%define major 1
%define libname %mklibname GLw %{major}

%package -n %{libname}
Summary:	Xt / Motif OpenGL widgets
Group:		System/Libraries

%description -n %{libname}
Mesa libGLw runtime library.

%files -n %{libname}
%doc README
%{_libdir}/libGLw.so.%{major}*

#----------------------------------------------------------------------------

%define devname %mklibname GLw -d

%package -n %{devname}
Summary:	Mesa libGLw development package
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Mesa libGLw development package.

%files -n %{devname}
%{_libdir}/libGLw.so
%{_includedir}/GL/GLwDrawA.h
%{_includedir}/GL/GLwDrawAP.h
%{_includedir}/GL/GLwMDrawA.h
%{_includedir}/GL/GLwMDrawAP.h
%{_libdir}/pkgconfig/glw.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-motif \
	--disable-static

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1946 |21cr|glyr-1.0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		1
%define	libname		%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

Summary:	Search engine for Music related Metadata
Name:		glyr
Version:	1.0.10
Release:	1
License:	GPLv3+
Group:		System/Libraries
Url:		https://github.com/sahib/glyr
Source0:	https://github.com/downloads/sahib/%{name}/%{name}-%{version}.tar.gz
# Remove __DATE and __TIME__ that causes the package to rebuild when not needed
Patch0:		glyr-1.0.10-date-n-time.patch
Patch1:		glyr-1.0.5-flags.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(glib-2.0) >= 2.10
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(sqlite3)

%description
Glyr CLI tool.
The sort of metadata glyr is searching (and downloading) is usually the data
you see in your musicplayer. And indeed, originally it was written to serve as
internally library for a musicplayer, but has been extended to work as a
standalone program which is able to download:
* cover art;
* lyrics;
* bandphotos;
* artist biography;
* album reviews;
* tracklists of an album;
* a list of albums from a specific artist;
* tags, either related to artist, album or title relations, for example
  links to wikipedia;
* similar artists;
* similar songs.

%files
%doc AUTHORS CHANGELOG COPYING README.textile
%{_bindir}/glyrc

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Search engine for Music related Metadata
Group:		System/Libraries

%description -n %{libname}
Glyr shared library.
The sort of metadata glyr is searching (and downloading) is usually the data
you see in your musicplayer. And indeed, originally it was written to serve as
internally library for a musicplayer, but has been extended to work as a
standalone program which is able to download:
* cover art;
* lyrics;
* bandphotos;
* artist biography;
* album reviews;
* tracklists of an album;
* a list of albums from a specific artist;
* tags, either related to artist, album or title relations, for example
  links to wikipedia;
* similar artists;
* similar songs.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Search engine for Music related Metadata
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Glyr development files.
The sort of metadata glyr is searching (and downloading) is usually the data
you see in your musicplayer. And indeed, originally it was written to serve as
internally library for a musicplayer, but has been extended to work as a
standalone program which is able to download:
* cover art;
* lyrics;
* bandphotos;
* artist biography;
* album reviews;
* tracklists of an album;
* a list of albums from a specific artist;
* tags, either related to artist, album or title relations, for example
  links to wikipedia;
* similar artists;
* similar songs.

%files -n %{devname}
%doc COPYING
# No doc files here
#doc src/examples
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1947 |21cr|gmameui-0.2.12-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A sdlmame front-end
Name:		gmameui
Version:	0.2.12
Release:	9
License:	GPLv3+
Group:		Emulators
Url:		http://gmameui.sourceforge.net/
Source0:	%{name}-%{version}.tar.gz
Patch0:		gmamaui-0.2.12_glibc.patch
Patch1:		gmameui-0.2.12-glib-2.40.patch
Patch2:		gmameui-0.2.12-fcommon.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	scrollkeeper
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnome-2.0)
BuildRequires:	pkgconfig(vte)

%description
GMAMEUI is a fork of the defunct GXMame project.

It contains a number of enhancements over GXMame:
 - support for SDLMame,
 - support for more recent versions of MAME,
 - support for the recent features introduced to MAME (the last version
   supported by GXMame was 0.95),
 - migration to Glade for UI, allowing easier maintenance,
 - a substantial number of bug fixes and UI improvements over GXMame.

%files -f %{name}.lang
%doc ChangeLog AUTHORS BUGS COPYING NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
%global optflags %{optflags} -fcommon
%configure
%make

%install
%makeinstall_std

desktop-file-install --vendor="" \
  --remove-category="ArcadeGame" \
  --add-category="Emulator" \
  --add-category="X-MandrivaLinux-MoreApplications-Emulators" \
  --dir %{buildroot}%{_datadir}/applications/ \
  %{buildroot}%{_datadir}/applications/*

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1948 |21cr|gmaptool-08220-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We only have a statically linked binary wo sources
%define debug_package %{nil}

Name:		gmaptool
Version:	08220
Release:	1
Summary:	Program for splitting and merging maps in Garmin format
Group:		Communications
License:	Creative Commons Attribution-ShareAlike
URL:		http://www.gmaptool.eu/en/content/linux-version
# Only statically linked binary is available from site
Source0:	http://www.gmaptool.eu/sites/default/files/lgmt08220.zip

%description
Main functions of GMapTool:

* Merging maps in img format.
* Splitting files in img format into mapset, maps, subfiles of maps.
* Installation of mapset for use with programs Mapsource, BaseCamp, HomePort.
* Editing of map properties - map type, priority, transparency, name, creations
  date.
* Map modifications - changing of labels case, removing national characters,
  replacing TYP files.
* Map corrections - changing of map and mapset ID.

%prep
%setup -qc
chmod 644 *txt

%build

%install
install -Dp -m755 gmt %{buildroot}%{_bindir}/gmt

%files
%doc *txt
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1949 |21cr|gmemusage-0.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Graphics memory usage meter
Name: 		gmemusage
Version: 	0.2
Release: 	17
Source: 	%{name}-%{version}.tar.bz2
Url: 		http://reality.sgi.com/raju/software/
License: 	GPL
Group: 		Monitoring
Buildrequires:	pkgconfig(x11)

%description
This tool displays the bar graph describing a memory usage of processes
on the Linux box. Uses /proc filesystem.

%prep
%setup

%build
%make OPTIM="%optflags" LIBX11DIR=-L%{_libdir} LDFLAGS="%build_ldflags"

%install
rm -fr %buildroot
install -D -m 755 gmemusage $RPM_BUILD_ROOT%{_bindir}/%{name}
install -D -m 644 gmemusage.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/gmemusage
Name=Gmemusage
Comment=Memory usage
Icon=monitoring_section
Categories=System;Monitor;
EOF
 
%if %mdkversion < 200900
%post
%{update_menus}
%endif
 
%if %mdkversion < 200900
%postun          
%{clean_menus}
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1950 |21cr|gmetadom-0.2.6-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname gmetadom_gdome_cpp_smart %{major}
%define devname %mklibname gmetadom_gdome_cpp_smart -d

%define _disable_ld_as_needed 1

Summary:	C++ Wrapper for GDOME
Name:		gmetadom
Version:	0.2.6
Release:	16
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gmetadom.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Patch1:		gmetadom-0.2.6-fix-missing-header.patch
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(gdome2)

%description
GMetaDOM is a collection of libraries, each library providing a
DOM implementation. Each DOM implementation is generated
automatically by means of XSLT stylesheets.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CPP Libraries for gdome2
Group:		System/Libraries

%description -n %{libname}
GMetaDOM is a collection of libraries, each library providing a
DOM implementation. Each DOM implementation is generated
automatically by means of XSLT stylesheets.

%files -n %{libname}
%{_libdir}/libgmetadom_gdome_cpp_smart.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for gdome2
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel  = %{EVRD}

%description -n %{devname}
GMetaDOM is a collection of libraries, each library providing a
DOM implementation. Each DOM implementation is generated
automatically by means of XSLT stylesheets.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog HISTORY INSTALL LICENSE
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib*.so

#----------------------------------------------------------------------------

%package -n ocaml-%{name}
Summary:	Ocaml bindings for %{name}
Group:		Development/Other

%description -n ocaml-%{name}
GMetaDOM is a collection of libraries, each library providing a
DOM implementation. Each DOM implementation is generated
automatically by means of XSLT stylesheets.

This are the Ocaml bindings of GMetaDOM.

%files -n ocaml-%{name}
%{_libdir}/ocaml/gdome2
%{_libdir}/ocaml/stublibs/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
#gw we have to disable libtoolize, as the ocaml path doesn't build otherwise
%define __libtoolize true
%configure \
	--enable-static \
	--with-ocaml-lib-prefix=%{_libdir}/ocaml

%install
%makeinstall_std

# static lib needed for internal test
rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1951 |21cr|gmic-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_lto 1

%define	major 3
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname -d %{name}

%define	cmajor 3
%define	clibname %mklibname cgmic %{cmajor}

%define	cdevname %mklibname -d cgmic

%define	ver_nodot %(echo %{version}|tr -d .)

Summary:	A script language (G'MIC) dedicated to image processing
Name:		gmic
Version:	3.3.2
Release:	1
Group:		Graphics
# CeCILL version 2.0
License:	CeCILL
Url:		http://gmic.eu
Source0:	https://gmic.eu/files/source/gmic_%{version}.tar.gz
Source1:	https://github.com/c-koi/gmic-qt/archive/v.%{version}/gmic-qt-v.%{version}.tar.gz
Source2:	https://github.com/c-koi/zart/archive/master/zart-20231127.tar.xz
Source3:	https://github.com/GreycLab/gmic-community/archive/refs/tags/gmic-%{version}.tar.gz?/gmic-community-gmic-%{version}.tar.gz
Source4:	https://github.com/dtschump/CImg/archive/v.%{version}/CImg-v.%{version}.tar.gz
# Rename https://gmic.eu/gmic_stdlib.h to avoid troubles when updating
Source5:	gmic_stdlib-%{version}.h
Source6:	https://gmic.eu/gmic_stdlib_community%{ver_nodot}.h
Source100:	%{name}.rpmlintrc
BuildRequires:	kernel-headers
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	ffmpeg-devel
%ifarch %{ix86} %{armx}
BuildRequires:	gomp-devel
%endif
BuildRequires:	libatomic-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

# gmic Makefiles are rather broken and will prefer
# /usr/include/gmic.h over the local gmic.h
BuildConflicts: %{name}-devel

%description
G'MIC defines a complete image processing framework, and thus 
can manage generic image data as other image-related tools. 
Anyway, the specific features described below make it a bit particular:
* It internally works with lists of images. 
 Image manipulations and interactions can be done 
 either grouped or focused on specific items.
* It can process a wide variety of image types, 
 including multi-spectral (arbitray number of channels)
 and 3d volumetric images, as well as image sequences, 
 or 3d vector objects. 
 Images with different pixel types are supported, 
 allowing to process flawlessly images with 8bits or 
 16bits integers per channel, as well as float-valued datasets.
* It provides small but efficient visualization modules 
 dedicated to the exploration/viewing of 2d/3d multi-spectral images, 
 3d vector objects (elevation map, isocurves, isosurfaces,...), 
 or 1d graph plots.
* It proposes commands to handle custom interactive windows 
 where events can be managed easily by the user.
* It is highly extensible through the importation of custom command 
 files which add new commands that become understood by the 
 language interpreter.
* Most of the functionalities can be used inside GIMP 
 via the provided plug-in, allowing end-users to integrate 
 any G'MIC-based pipeline directly in a nice GUI, 
 without coding efforts.
* It is based on the latest development versions of the CImg Library, 
 a well established C++ template image processing toolkit, 
 developed by the same team of developers.

%files
%doc README
%license COPYING
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/man/man1/%{name}.1*
%{_datadir}/man/fr/man1/%{name}.1*

#------------------------------------------------------

%package -n gimp-plugin-%{name}
Summary:	gmic plugin for gimp
Group:		Graphics
Requires:	gimp
Provides:	%{name}-gimp = %{EVRD}
Obsoletes:	%{name}-gimp < 1.5.1.5-1
Conflicts:	%{name} < 1.5.1.5-1

%description -n gimp-plugin-%{name}
G'MIC has been made available as an easy-to-use plug-in for GIMP.
It extends this retouching software capabilities by offering a large number of
pre-defined image filters and effects.
Of course, the plug-in is highly customizable and it is possible to add your
own custom G'MIC-written filters in it.

%files -n gimp-plugin-%{name}
%{_libdir}/gimp/2.0/plug-ins/%{name}_cluts.gmz
%{_libdir}/gimp/2.0/plug-ins/%{name}_fonts.gmz
%{_libdir}/gimp/2.0/plug-ins/%{name}_gimp_qt
%{_libdir}/gimp/2.0/plug-ins/%{name}_denoise_cnn.gmz

#------------------------------------------------------

%package qt
Summary:	Qt frontend for applying g'mic filters
Group:		Graphics

%description qt
Qt frontend for applying g'mic filters

%files qt
%{_bindir}/%{name}_qt
%{_datadir}/applications/%{name}_qt.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}_qt.*

#------------------------------------------------------

%package zart
Summary:	Application for applying live effects to Webcam images
Group:		Graphics

%description zart
Application for applying live effects to Webcam images

%files zart
%{_bindir}/zart
%{_datadir}/applications/zart.desktop
%{_datadir}/icons/hicolor/*/apps/zart.*

#------------------------------------------------------

%package -n %{libname}
Summary:	Library for gmic
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{name} < 1.5.1.5-1

%description -n %{libname}
This package contains the library needed to run programs
dynamically linked with gmic.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------

%package -n %{devname}
Summary:	Header file for gmic
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Obsoletes:	%{name}-gimp-devel < 1.5.1.5-1
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 1.5.1.5-1

%description -n %{devname}
This package contains the development file for gmic.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so

#------------------------------------------------------

%package -n %{clibname}
Summary:	C Library for gmic
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{clibname}
This package contains the library needed to run programs
dynamically linked with gmic's C bindings

%files -n %{clibname}
%{_libdir}/libc%{name}.so.%{cmajor}*

#------------------------------------------------------

%package -n %{cdevname}
Summary:	Header file for gmic C bindings
Group:		Development/C
Requires:	%{clibname} = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{cdevname}
This package contains the development file for gmic C bindings.

%files -n %{cdevname}
%{_includedir}/%{name}_libc.h
%{_libdir}/libc%{name}.so

#------------------------------------------------------

%prep
%setup -qn %{name}-%{version} -a2 -a3 -a4
pushd ..
	rm -rf %{name}-qt* zart* %{name}-community* CImg*
popd
mv zart-* zart
mv %{name}-community-* ../%{name}-community
mv CImg-* ../CImg
ln -s ../%{name}-community ../CImg .

%build
#Build fail on i686 on Clang8
# error: undefined reference to '__atomic_load'
%ifarch %{ix86}
export CC=gcc
export CXX=g++
%endif
%setup_compile_flags

# (tpg) use OMP form llvm
sed -i -e "s/-lgomp/-fopenmp/g" src/Makefile

pushd src
	# And pass compiler flags while linking (vital for -flto)
	sed -i 's|-Wl,-soname|$(CFLAGS) -Wl,-soname|' Makefile
	cp %{SOURCE5} ./gmic_stdlib.h
	cp %{SOURCE6} ./gmic_stdlib_community.h

# BUG? threaded build failed, use -j1
%ifarch %{ix86} %{armx}
	%make LIB=%{_lib} WGET=false OPT_CFLAGS="%{optflags}" NOSTRIP=1 lib -j1
	%make LIB=%{_lib} WGET=false OPT_CFLAGS="%{optflags}" NOSTRIP=1 libc -j1
	%make LIB=%{_lib} WGET=false OPT_CFLAGS="%{optflags}" NOSTRIP=1 cli -j1
	%make LIB=%{_lib} WGET=false QMAKE=qmake-qt5 OPT_CFLAGS="%{optflags}" zart
	%make LIB=%{_lib} WGET=false QMAKE=qmake-qt5 OPT_CFLAGS="%{optflags}" QT_GMIC_PATH="$(pwd)" %{name}_qt -j1
	%make LIB=%{_lib} WGET=false QMAKE=qmake-qt5 OPT_CFLAGS="%{optflags}" QT_GMIC_PATH="$(pwd)" gimp -j1
%endif

%ifnarch %{ix86} %{armx}
	%make LIB=%{_lib} WGET=false CC=%{__cc} CXX=%{__cxx} OPT_CFLAGS="%{optflags}" NOSTRIP=1 lib -j1
	%make LIB=%{_lib} WGET=false CC=%{__cc} CXX=%{__cxx} OPT_CFLAGS="%{optflags}" NOSTRIP=1 libc -j1
	%make LIB=%{_lib} WGET=false CC=%{__cc} CXX=%{__cxx} OPT_CFLAGS="%{optflags}" NOSTRIP=1 cli -j1
	%make LIB=%{_lib} WGET=false QMAKE=qmake-qt5 CC=%{__cc} CXX=%{__cxx} OPT_CFLAGS="%{optflags}" zart -j1
	%make LIB=%{_lib} WGET=false QMAKE=qmake-qt5 CC=%{__cc} CXX=%{__cxx} OPT_CFLAGS="%{optflags}" QT_GMIC_PATH="$(pwd)" %{name}_qt -j1
	%make LIB=%{_lib} WGET=false QMAKE=qmake-qt5 CC=%{__cc} CXX=%{__cxx} OPT_CFLAGS="%{optflags}" QT_GMIC_PATH="$(pwd)" gimp -j1
%endif
popd


%install
pushd src
    %makeinstall_std LIB=%{_lib}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1952 |21cr|gmime2.2-2.2.27-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define _gtkdocdir	%{_datadir}/gtk-doc/html
%{expand:%%define _aclocaldir %(aclocal --print-ac-dir 2>/dev/null)}

%define api	2.0
%define	major	2
%define libname %mklibname gmime %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	The libGMIME library
Name:		gmime2.2
Version:	2.2.27
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		http://spruce.sourceforge.net/gmime
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/gmime/%{url_ver}/gmime-%{version}.tar.bz2
Patch0:		gmime-2.2.23-format-strings.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(zlib)

%description
This library allows you to manipulate MIME messages.

%package -n %{name}-utils
Summary:	Utilities using the libGMIME library
Group:		File tools
Conflicts:	gmime-utils

%description -n %{name}-utils
This package contains gmime-uudecode and gmime-uuencode and will 
allow you to manipulate MIME messages. These utilities can also be
used instead of uudecode and uuencode from the sharutils package. 

%package -n %{libname}
Summary:	The libGMIME library
Group:		System/Libraries

%description -n %{libname}
This library allows you to manipulate MIME messages.

%package -n %{devname}
Summary:	Development library and header files for the lib%{name} library
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
This package contains the lib%{name} development library and its header files.

%prep

%setup -qn gmime-%{version}
%apply_patches

%build
%configure \
	--disable-static \
	--with-html-dir=%{_gtkdocdir} \
	--disable-mono

#gw parallel build broken in 2.1.15
# (tpg) mono stuff doesn't like parallel build, this solves it
%(echo %make CFLAGS='-UG_DISABLE_DEPRECATED' |perl -pe 's/-j\d+/-j1/g')

%check
make check

%install
%makeinstall_std

# these are provided by sharutils, gotta rename them...
mv %{buildroot}%{_bindir}/uudecode %{buildroot}%{_bindir}/gmime-uudecode
mv %{buildroot}%{_bindir}/uuencode %{buildroot}%{_bindir}/gmime-uuencode

# cleanup
rm -f %{buildroot}%{_libdir}/gmimeConf.sh


%files -n %{name}-utils
%{_bindir}/gmime-uudecode
%{_bindir}/gmime-uuencode

%files -n %{libname}
%{_libdir}/libgmime-%{api}.so.%{major}*

%files -n %{devname}
%doc AUTHORS ChangeLog PORTING README TODO
%{_bindir}/gmime-config
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/gmime-2.0.pc
%{_includedir}/*
%doc %{_gtkdocdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1953 |21cr|gmorgan-0.79-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MIDI auto-accompaniment generator
Name:		gmorgan
Version:	0.79
Release:	4
License:	GPLv2+
Group:		Sound
Url:		https://gmorgan.sourceforge.net
Source0:	https://sourceforge.net/projects/%{name}/files/%{name}-%{version}.tar.gz
Patch0:		gmorgan-0.79-libfltk.patch
Patch1:		gmorgan-0.79-gettext.patch
Patch2:		gmorgan-0.79-install.patch
Patch3:		gmorgan-0.79-fix-chord-table-detection.patch
BuildRequires:	help2man
BuildRequires:	fltk-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(pixman-1)

%description
GMorgan is a modern MIDI organ with full auto-accompaniment. It uses
soundfonts and the ALSA sequencer for emulate a Rhythm Station.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%doc doc/%{name}*.pdf
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_mandir}/man1/gmorgan.1*
%{_sysconfdir}/modules-load.d/%{name}.conf

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

rm -fr %{buildroot}/%{_docdir}
chmod 644 AUTHORS ChangeLog README

# To load snd_seq on-demand
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
echo "snd_seq" > %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

# Menu item
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=sound_section
Name=GMorgan
Comment=MIDI Auto-Accompaniment
Categories=Audio;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1954 |21cr|gmpc-11.8.16-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gtk2 frontend for the mpd
Name:		gmpc
Version:	11.8.16
Release:	6
License:	GPLv2+
Group:		Sound
URL:		http://gmpc.wikia.com/
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
Patch0:		gmpc-11.8.16-link.patch
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(glib-2.0) >= 2.16
BuildRequires: pkgconfig(gmodule-2.0) >= 2.4
BuildRequires: pkgconfig(gobject-2.0) >= 2.4
BuildRequires: pkgconfig(gthread-2.0)
BuildRequires: pkgconfig(gtk+-2.0) >= 2.18
BuildRequires: pkgconfig(libmpd) >= 0.20.95
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(unique-1.0)
BuildRequires: pkgconfig(x11)
BuildRequires: libsm-devel
BuildRequires: libice-devel
BuildRequires: desktop-file-utils
BuildRequires: intltool
BuildRequires: gob2
BuildRequires: vala

%description
GMPC is a frontend for the mpd (Music Player Daemon). 
It's focused on being fast and easy to use, while making 
optimal use of all the functions in mpd.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_iconsdir}/*/*/*/*
%{_mandir}/man1/%{name}*

#-----------------------------------------------------
%package devel
Summary:        GMPC development files
Group:          Development/Other
Provides:       %{name}-devel = %{EVRD}
Requires:       %{name} = %{EVRD}

%description devel
GMPC development files.

%files devel
%dir %{_includedir}/gmpc
%{_includedir}/gmpc/*.h
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

desktop-file-install \
  --remove-category="Application" \
  --add-category="GTK" \
  --add-category="Audio" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1955 |21cr|gmpc-avahi-11.8.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An avahi plugin for gmpc
Name:		gmpc-avahi
Version:	11.8.16
Release:	3
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl//gmpc-plugins-avahi
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	gettext
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(gmpc) >= 0.15.98
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.4
BuildRequires:	pkgconfig(libmpd) >= 0.15.98
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	gmpc >= 0.15.98

%description
An avahi plugin for gmpc.

%files
%doc COPYING
%{_libdir}/gmpc/plugins/avahiplugin.so

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1956 |21cr|gmpc-extraplaylist-0.20.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An extra playlist plugin for gmpc
Name:		gmpc-extraplaylist
Version:	0.20.0
Release:	5
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl/
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	libmpd-devel >= 0.15.98
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.4
BuildRequires:	gmpc-devel >= 0.19.2
BuildRequires:	intltool
Requires:	gmpc

%description
An extra playlist plugin for gmpc.

%prep
%setup -q
#patch0 -p0

%build
%configure
%make

%install
%makeinstall_std

%files
%{_libdir}/gmpc/plugins/libextraplaylist.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1957 |21cr|gmpc-lastfm-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Last.FM artist art provider plugin for gmpc
Name:		gmpc-lastfm
Version:	0.20.0
Release:	6
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl//gmpc-plugins-lastfm
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/gmpc-last-fm-%{version}.tar.gz
BuildRequires:	libmpd-devel >= 0.15.98
BuildRequires:	libxml2-devel 
BuildRequires:	gtk+2-devel >= 2.8
BuildRequires:	gmpc-devel >= 0.16.2
BuildRequires:	intltool
Requires:	gmpc

%description
The last.fm plugin can fetch artist images, from last.fm.
This plugin doesn't scrobble your music, use a dedicated 
client like mpdscribble for this.

%prep
%setup -qn gmpc-last-fm-%{version}

%build
%configure
%make

%install
%makeinstall_std

%find_lang %name

%files -f %name.lang
%defattr(-,root,root)
%{_libdir}/gmpc/plugins/lastfmplugin.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1958 |21cr|gmpc-libnotify-11.8.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A libnotify plugin for gmpc
Name:		gmpc-libnotify
Version:	11.8.16
Release:	3
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl/
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
#Patch0:	gmpc-libnotify-0.20.0-libnotify-0.7.patch
BuildRequires:	pkgconfig(libmpd) >= 0.14.99
BuildRequires:	pkgconfig(libnotify) >= 0.7.0
BuildRequires:	pkgconfig(gmpc) >= 0.15.4.102
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.8
BuildRequires:	pkgconfig(glib-2.0) >= 2.10
BuildRequires:	intltool >= 0.21
BuildRequires:	gettext
Requires:	gmpc >= 0.15.4.102

%description
A libnotify plugin for gmpc.

%files
%doc COPYING
%{_libdir}/gmpc/plugins/libnotifyplugin.so

#-----------------------------------------------------------------------------

%prep
%setup -q
#patch0 -p0


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1959 |21cr|gmpc-lyrics-11.8.16-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lyrics provider plugin for gmpc
Name:		gmpc-lyrics
Version:	11.8.16
Release:	4
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl//gmpc-plugins-lyrics-provider
Source0:	http://download.sarine.nl/Programs/gmpc/11.8.16/%{name}-%{version}.tar.gz
BuildRequires:	libmpd-devel >= 0.14.99
BuildRequires:	libxml2-devel
BuildRequires:	gmpc-devel >= 0.15.4.102
BuildRequires:	gtk+2-devel >= 2.8
BuildRequires:	curl-devel
BuildRequires:	intltool
Requires:	gmpc

%description
A lyrics provider plugin for gmpc.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%defattr(-,root,root)
%{_libdir}/gmpc/plugins/lyricsplugin.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1960 |21cr|gmpc-magnatune-11.8.16-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A magnatune browser plugin for gmpc
Name:		gmpc-magnatune
Version:	11.8.16
Release:	8
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl//gmpc-plugins-magnatune
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gmpc)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libmpd)
BuildRequires:	pkgconfig(sqlite3)
Requires:	gmpc

%description
The magnatune plugin provides an interface to the www.magnatune.com website.
The plugin allows you to browse, and preview available albums. (It uses the
128kbit mp3 version).The magnatune plugin provides a double function, it
also uses the data from the magnatune website to fetch cover art.

%files
%dir %{_datadir}/gmpc/plugins/magnatune
%{_libdir}/gmpc/plugins/magnatuneplugin.so
%{_datadir}/gmpc/plugins/magnatune/magnatune.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1961 |21cr|gmpc-mdcover-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A directory artist/song provider plugin for gmpc
Name:		gmpc-mdcover
Version:	0.20.0
Release:	6
License:	GPLv2+
Group:		Sound
# URLs are dead: use stored sources
Url:		http://gmpc.wikia.com/wiki/GMPC_PLUGIN_MDCOVER
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	libmpd-devel >= 0.15.98
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.8
BuildRequires:	gmpc-devel >= 0.15.98
BuildRequires:	intltool
Requires:	gmpc

%description
This gmpc plugin fetches cover art, artist art,album and artist information
from the file system. 

%files -f %{name}.lang
%{_libdir}/gmpc/plugins/mdcaplugin.so

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1962 |21cr|gmpc-mserver-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A microhttpd server plugin for gmpc
Name:		gmpc-mserver
Version:	0.20.0
Release:	6
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl/
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gmpc)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libmicrohttpd)
BuildRequires:	pkgconfig(libmpd)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(taglib)
Requires:	gmpc

%description
A microhttpd server plugin for gmpc.

%files
%{_libdir}/gmpc/plugins/gmpcmserverplugin.so
%{_datadir}/gmpc/plugins/gmpc-mserver/gmpc-mserver.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1963 |21cr|gmpc-osd-0.18.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A xosd on screen display plugin for gmpc
Name:		gmpc-osd
Version:	0.18.0
Release:	5
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl//xosd-on-screen-display
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	libmpd-devel >= 0.15.98
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.4
BuildRequires:	xosd-devel
BuildRequires:	gmpc-devel >= 0.15.98
Requires:	gmpc

%description
A xosd on screen display plugin for gmpc.

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

%files
%{_libdir}/gmpc/plugins/osdplugin.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1964 |21cr|gmpc-qosd-0.15.5.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A qosd on screen display plugin for gmpc
Name:		gmpc-qosd
Version:	0.15.5.0
Release:	8
License:	GPLv2+
Group:		Sound
# URLs are dead: use http://repo.or.cz/w/gmpc-qosd.git and stored sources
Url:		http://repo.or.cz/w/gmpc-qosd.git
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	libmpd-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	gmpc-devel
Requires:	gmpc

%description
A qosd on screen display plugin for gmpc.

%files
%{_datadir}/gmpc/plugins/qosdplugin.so

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1965 |21cr|gmpc-random-playlist-0.15.5.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A random playlist plugin for gmpc
Name:		gmpc-random-playlist
Version:	0.15.5.0
Release:	9
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl/
Source0:	http://download.sarine.nl/download/gmpc-0.15.5/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libmpd)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	libglade2.0-devel
BuildRequires:	gmpc-devel
Requires:	gmpc

%description
A random playlist plugin for gmpc.

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

%files
%defattr(-,root,root)
%{_datadir}/gmpc/plugins/librandomplaylist.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1966 |21cr|gmpc-shout-0.20.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A shout plugin for gmpc
Name:		gmpc-shout
Version:	0.20.0
Release:	5
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl/
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	libmpd-devel >= 0.15.98
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.8
BuildRequires:	gmpc-devel >= 0.15.98
BuildRequires:	intltool
Requires:	gmpc

%description
A shout plugin for gmpc.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %name

%files -f %name.lang
%{_libdir}/gmpc/plugins/shoutplugin.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1967 |21cr|gmpc-stopbutton-0.15.5.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A stop button plugin for gmpc
Name:		gmpc-stopbutton
Version:	0.15.5.0
Release:	9
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl//gmpc-plugins-stopbutton
Source0:	http://download.sarine.nl/download/gmpc-0.15.5/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libmpd)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	libglade2.0-devel
BuildRequires:	gmpc-devel
Requires:	gmpc

%description
This is the simplest plugin of the lot, it adds a stop 
button to the controls in the main window. It's an easy 
solution to keep everybody happy.

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

%files
%defattr(-,root,root)
%{_datadir}/gmpc/plugins/libstopbutton.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1968 |21cr|gmpc-wikipedia-11.8.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A wikipedia plugin for gmpc
Name:		gmpc-wikipedia
Version:	11.8.16
Release:	3
License:	GPLv2+
Group:		Sound
Url:		http://www.sarine.nl/
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libmpd) >= 0.14.99
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.4
BuildRequires:	pkgconfig(gmpc) >= 0.15.4.102
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(webkit-1.0)
BuildRequires:	intltool >= 0.21
BuildRequires:	gettext
Requires:	gmpc

%description
A wikipedia plugin for gmpc.

%files
%doc COPYING
%{_libdir}/gmpc/plugins/wikiplugin.so
%{_datadir}/gmpc/plugins/wikipedia/wikipedia.png

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1969 |21cr|gmrun-0.9.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gmrun
Version:	0.9.2
Release:	5
Summary:	Lightweight "Run program" dialog box with search history and tab completion
Group:		Graphical desktop/Other
License:	GPL+
URL:		http://sourceforge.net/projects/gmrun
Source0:	http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
Patch0:		gmrun-gmrunrc.patch
Patch1:		gmrun-0.9.2-gcc43.patch
Patch2:		gmrun-0.9.2-mousewheel.patch
Patch3:		gmrun-0.9.2-mga.patch

BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(gtk+-2.0)

Requires:	xterm
Requires:	man
Requires:	info
Requires:	xdg-utils

%description
A simple GTK program which provides a "run program" window.
It features a bash-like TAB completion, Ctrl-R/Ctrl-S for
searching through the history and URL handlers for any 
user defined prefix.


%prep
%setup -q
%patch0 -p1 -b .gmrunrc
%patch1 -p1 -b .gcc43
%patch2 -p1 -b .mousewheel
%patch3 -p1 -b .mga_support

%build
%configure
%make


%install
%makeinstall_std

%files
%defattr(-,root,root)
%doc ChangeLog AUTHORS COPYING README NEWS
%{_datadir}/gmrun/
%{_bindir}/gmrun

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1970 |21cr|gmsh-4.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automatic 3D finite element grid generator
Name:		gmsh
Version:	4.13.1
Release:	1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://www.geuz.org/gmsh/
Source0:	http://www.geuz.org/gmsh/src/%{name}-%{version}-source.tgz
Patch0:		gmsh-4.11.1-fix_install_path.patch
Patch1:		gmsh-incompatible-pointer.patch
Patch2:		gmsh_unbundle_gl2ps.patch
BuildRequires:	atlas-devel
BuildRequires:	cmake
BuildRequires:	gcc-gfortran
BuildRequires:	gl2ps-devel
BuildRequires:	fltk-devel
BuildRequires:	opencascade
BuildRequires:	hdf5-devel
BuildRequires:	imagemagick
BuildRequires:	metis-devel
BuildRequires:	gmp-devel
BuildRequires:	gomp-devel
BuildRequires:	jpeg-devel
BuildRequires:	opencascade-devel
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)
# There's no more devel package
Obsoletes:	%{name}-devel < 2.8.4

%description
Gmsh is an automatic 3D finite element grid generator with a built-in CAD
engine and post-processor. Its design goal is to provide a simple meshing tool
for academic problems with parametric input and advanced visualization
capabilities.

Gmsh is built around four modules: geometry, mesh, solver and post-processing.
The specification of any input to these modules is done either interactively
using the graphical user interface or in ASCII text files using Gmsh's own
scripting language.

%files
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{python3_sitearch}/onelab.py
%{python3_sitearch}/__pycache__/onelab.*
%exclude %{_docdir}/%{name}/demos
%exclude %{_docdir}/%{name}/tutorial
%exclude %{_docdir}/%{name}/examples

#----------------------------------------------------------------------------

%package demos
Summary:	Tutorial and demo files for Gmsh
Group:		Sciences/Mathematics
# known to have issues in mandriva build system
BuildArch:	noarch

%description demos
Gmsh is an automatic 3D finite element grid generator with a built-in CAD
engine and post-processor. Its design goal is to provide a simple meshing tool
for academic problems with parametric input and advanced visualization
capabilities.

Gmsh is built around four modules: geometry, mesh, solver and post-processing.
The specification of any input to these modules is done either interactively
using the graphical user interface or in ASCII text files using Gmsh's own
scripting language.

This package contains tutorial and demo files for Gmsh.

%files demos
%{_docdir}/%{name}/tutorials
%{_docdir}/%{name}/examples
%{_docdir}/%{name}/*.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-source

%build
%cmake -Wno-dev \
	-DENABLE_METIS=ON \
	-DENABLE_SYSTEM_CONTRIB=ON
%make

%install
%makeinstall_std -C build

# .deskop
install -dm 0755 %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Version=1.0
Name=Gmsh
GenericName=Mesh Generator
Comment=A 3D finite element mesh generator
Exec=gmsh
Icon=gmsh
Type=Application
Terminal=false
Categories=Science;Engineering;
EOF

# icon
for d in 16 32 48 64 72 128 256 512
do
    install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/
    convert -scale ${d}x${d} utils/icons/%{name}.png \
	%{buildroot}%{_iconsdir}/hicolor/${d}x${d}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1971 |21cr|gmt-6.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gmtversion %{version}

%define gmthome %{_datadir}/gmt
%define gmtconf %{_sysconfdir}/gmt
%define gmtdoc %{_docdir}/gmt

%define major 6
%define libname %mklibname %{name} %{major}
%define libpostscriptlight %mklibname postscriptlight %{major}
%define devname %mklibname %{name} -d

# Do not generate provides for plugins
%global __provides_exclude_from ^%{_libdir}/gmt/.*\\.so$

%global completion_dir %(pkg-config --variable=completionsdir bash-completion)
%if "%{completion_dir}" == ""
%global completion_dir "/etc/bash_completion.d"
%endif

Summary:	Scientific graphic tool with maps
Name:		gmt
Version:	6.4.0
Release:	1
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		http://gmt.soest.hawaii.edu/
Source0:	https://www.earthbyte.org/webdav/gmt_mirror/gmt/gmt-%{version}-src.tar.xz
Patch0:		6044.patch
BuildRequires:	cmake
BuildRequires:	dcw-gmt
BuildRequires:	ninja
BuildRequires:	less
BuildRequires:	gshhg-gmt-nc4
BuildRequires:	glib2-devel
BuildRequires:	gdal-devel
BuildRequires:	geos-devel
BuildRequires:	graphicsmagick
BuildRequires:	pcre-devel
BuildRequires:	netcdf-devel
BuildRequires:	flexiblas-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)
BuildRequires:	/usr/bin/sphinx-build
BuildRequires:	ghostscript
Requires:	dcw-gmt
Requires:	gdal
Requires:	graphicsmagick
Requires:	less
Requires:	gshhg-gmt-nc4

%description
GMT is a free, open source collection of ~60 UNIX tools that allow users to
manipulate (x,y) and (x,y,z) data sets (including filtering, trend fitting,
gridding, projecting, etc.) and produce Encapsulated PostScript File (EPS)
illustrations ranging from simple x-y plots through contour maps to
artificially illuminated surfaces and 3-D perspective views in black and white,
gray tone, hachure patterns, and 24-bit color. GMT supports 25 common map
projections plus linear, log, and power scaling, and comes with support data
such as coastlines, rivers, and political boundaries.

GMT is developed and maintained by Paul Wessel and Walter H. F. Smith.

GMT is partly supported by the National Science Foundation.

%files
%{_bindir}/*
%config(noreplace) %{gmtconf}/mgg/gmtfile_paths
%config(noreplace) %{gmtconf}/mgd77/mgd77_paths.txt
%{gmthome}
%{_sysconfdir}/bash_completion.d/gmt_completion.bash
%{_mandir}/man1/*
%{_libdir}/gmt

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library from GMT
Group:		System/Libraries

%description -n %{libname}
This package contains library from GMT.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpostscriptlight}
Summary:	Library from GMT
Group:		System/Libraries

%description -n %{libpostscriptlight}
This package contains library from GMT.

%files -n %{libpostscriptlight}
%{_libdir}/libpostscriptlight.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library from GMT
Group:		Development/Other
Requires:	%{libname} = %{gmtversion}-%{release}
Requires:	%{libpostscriptlight} = %{gmtversion}-%{release}
Provides:	lib%{name}-devel = %{gmtversion}-%{release}
Provides:	%{name}-devel = %{gmtversion}-%{release}

%description -n %{devname}
GMT is a free, open source collection of mapping tools and cartography
GMT supports 25 common map projections plus linear, log, and power scaling,
and comes with support data such as coastlines, rivers, 
and political boundaries. This is High resolution data version.

This package contains development files from gmt.

%files -n %{devname}
%{_includedir}/gmt
%{_libdir}/*.so

#----------------------------------------------------------------------------
%package        doc
Summary:        Documentation for %{name}
Requires:       %{name} = %{EVRD}
Provides:       gmt-doc = %{EVRD}
Provides:       %{name}-examples = %{EVRD}
BuildArch:      noarch

%description    doc
The %{name}-doc package provides the documentation for the GMT (Generic
Mapping Tools) package.

%files doc
%{gmtdoc}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-DGSHHG_ROOT=%{_datadir}/gshhg-gmt-nc4 \
	-DGMT_INSTALL_MODULE_LINKS=off \
	-DGMT_INSTALL_TRADITIONAL_FOLDERNAMES=off \
	-DLICENSE_RESTRICTED=LGPL \
	-DGMT_ENABLE_OPENMP=ON \
	-DGMT_USE_THREADS=ON \
	-DGMT_EXCLUDE_BLAS=ON \
	-DGMT_EXCLUDE_LAPACK=ON \
	-DBLAS_LIBRARY=-lflexiblas \
	-DLAPACK_LIBRARY=-lflexiblas \
	-DBASH_COMPLETION_DIR=%{completion_dir} \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

#Setup configuration files
mkdir -p %{buildroot}%{gmtconf}/{mgg,dbase,mgd77}
pushd %{buildroot}%{gmthome}/
# put conf files in %{gmtconf} and do links in %{gmthome}
for file in mgg/gmtfile_paths mgd77/mgd77_paths.txt; do
  mv $file %{buildroot}%{gmtconf}/$file
  ln -s ../../../../../%{gmtconf}/$file %{buildroot}%{gmthome}/$file
done
popd

# Configure coastline data location
mkdir -p %{buildroot}%{gmthome}/coast
echo %{_datadir}/gshhg-gmt-nc4 > %{buildroot}%{gmthome}/coast/coastline.conf

# Don't ship .bat files
find %{buildroot} -name \*.bat -delete

# move man file to right place
mv %{buildroot}%{gmtdoc}/man %{buildroot}%{_datadir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1972 |21cr|gmtp-1.3.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Simple MTP Client
Name:		gmtp
Version:	1.3.11
Release:	2
License:	BSD
Group:		Sound
Url:		http://gmtp.sourceforge.net/
Source0:	http://download.sourceforge.net/gmtp/%{name}-%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(giomm-2.4)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libmtp) >= 1.1.6
BuildRequires:	pkgconfig(vorbisfile)

%description
Supports MTP devices including those with multiple storage devices (typically
mobile phones). Supports Drag'n'Drop interface for upload/download of files.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.gmtp.gschema.xml
%{_datadir}/pixmaps/gmtpicon.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fcommon
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1973 |21cr|gmudix-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gmudix 
Version:	1.0
Release:	5
Summary:	GTK mud client
Source0:	%{name}-%{version}.tar.bz2
Patch0: 	%{name}-fix-str-fmt.diff
Patch1:		%{name}-fix-linking-problem.diff
URL:		http://dw.nl.eu.org/mudix.html
Group:		Games/Other
License:	GPLv2+
BuildRequires:	gtk+2-devel

%description
gMudix is a GTK mud client that supports ANSI colours.
Some of the features are aliases, macros, paths,
tab completion, timers and triggers.

%prep
%setup -q
%patch0 -p1 -b .str-fmt
%patch1 -p0

%build
aclocal
autoconf
automake -a
%configure \
	--bindir=%{_gamesbindir}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=other_amusement
Categories=Game;RolePlaying;
Name=gMudix
Comment=GTK mud client
EOF

%files 
%doc TODO README AUTHORS ChangeLog
%{_gamesbindir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1974 |21cr|gmysqlcc-0.3.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} %(mysql_config --cflags || : )

Name: 	 	gmysqlcc
Summary: 	Graphically controls MySQL databases
Version: 	0.3.0
Release: 	13
Source:		http://ftp.thepozer.org/gmysqlcc/%{name}-%{version}.tar.gz
URL:		http://gmysqlcc.thepozer.net/
License:	GPL+
Group:		Databases
BuildRequires:	pkgconfig 
BuildRequires:	imagemagick 
BuildRequires:	gtk2-devel 
BuildRequires:	bison
BuildRequires:  mysql-client 
BuildRequires:  mysql-devel
BuildRequires:	desktop-file-utils

%description
With gmysqlcc, you can :
    * manage your server list
    * execute all SQL queries you want
    * dump queries, tables, databases and servers

%prep
%setup -q

%build
%configure
%make
										
%install
%makeinstall_std
rm -fr $RPM_BUILD_ROOT/usr/doc/%name

# icons

install -m 644 -D data/%{name}-16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m 644 -D data/%{name}-32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 644 -D data/%{name}-48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m 644 -D data/%{name}-64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png

# menu

perl -pi -e 's,gmysqlcc-32.png,%{name},g' %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --vendor="" \
  --remove-key="Encoding" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*


%find_lang %name

%files -f %{name}.lang
%defattr(-,root,root)
%doc ABOUT-NLS AUTHORS NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}-*.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1975 |21cr|gmyth-0.7.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	MythTV remote access libraries
Name:		gmyth
Version:	0.7.1
Release:	12
# COPYING file states GPL but all source indicates LGPL.
# http://sourceforge.net/tracker/index.php?func=detail&aid=1790620&group_id=177106&atid=879914
License:	LGPLv2+
Group:		System/Libraries
URL:		http://gmyth.sf.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		gmyth-0.7.1-linkage.patch
Patch1:		gmyth-0.7.1-curlheader.patch
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)

%description
A library and utilities used by applications to access content provided by the
MythTV set-top box framework, such as Live TV broadcasts, TV recordings, or
TV listings.

%package -n %{libname}
Summary:	Library files for MythTV remote access
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}

%description -n %{libname}
The GMyth library.

%package -n %{devname}
Summary:	Development libraries/headers for MythTV remote access
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
Development libraries and headers for the GMyth library.

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files
%doc AUTHORS
%{_bindir}/*

%files -n %{libname}
%{_libdir}/libgmyth.so.%{major}*

%files -n %{devname}
%{_includedir}/gmyth
%{_libdir}/libgmyth.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1976 |21cr|gnaural-20220401-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	GnauralJava

Summary:	A multi-platform programmable binaural-beat synthesizer
Name:		gnaural
# Found with "strings *.class|grep version" on the files in the .jar
Version:	20220401
Release:	1
Group:		Sound
License:	GPLv2+
Url:		http://gnaural.sourceforge.net/
Source0:	https://sourceforge.net/projects/gnaural/files/Gnaural/%{oname}.jar
# Little skeletal script to run the jar from the console and
# from our .desktop file
# TODO: Provide some error handling (eg. file not found)
Source1:	%{name}.sh
# Borrowed from older sources and adapted
Source2:	%{name}.desktop
Source3:	%{name}.png
BuildRequires:	desktop-file-utils
BuildRequires:	java-rpmbuild
BuildArch:	noarch
Requires:	hicolor-icon-theme
Requires:	java-1.8.0-openjdk >= 1.8.0.131
Requires:	jpackage-utils

%description
Gnaural is a multi-platform programmable binaural-beat synthesizer,
implementing the principle described in the October 1973 Scientific American
article "Auditory Beats in the Brain" by Gerald Oster. The theme of the
article is that the processing of binaural beats involves different neural
pathways than conventional hearing. It for the creation of binaural beat
tracks specifying different frequencies and exporting tracks into different
audio formats. Gnaural runnings can also be linked over the internet, allowing
synchronous sessions between many users.
Since 2016, Gnaural has been moved to a Java version, in order to eliminate
problems of platform compatibility.
You can download many customized sound files that can be loaded in Gnaural from
here: "https://sourceforge.net/projects/gnaural/files/Presets/" .

%files
%{_bindir}/%{name}
%{_javadir}/%{oname}.jar
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
# Pre-built jar archive: nothing to do


%build
# Pre-built jar archive: nothing to do


%install
# Install the main .jar file
mkdir -p %{buildroot}%{_javadir}/
install -D -m 0644 %{SOURCE0} %{buildroot}%{_javadir}/%{oname}.jar

# Install the icon file
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps/
install -m 0644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/

# Install the launch script and the .desktop file
mkdir -p %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_datadir}/applications/
install -D -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1977 |21cr|gnet2-2.0.8-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_version 2.0
%define major 0
%define libname %mklibname gnet-%{api_version}_ %{major}
%define devname %mklibname gnet-%{api_version} -d

Summary:	A network library
Name:		gnet2
Version:	2.0.8
Release:	18
License:	LGPL
Group:		System/Libraries
Url:		http://www.gnetlibrary.org
Source0:	gnet-%{version}.tar.bz2
Patch0:		gnet-2.0.8-examples.patch
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(glib-2.0)

%description
Gnet is a simple network library.  It is writen in C, object-oriented,
and built upon glib.  It is intended to be small, fast, easy-to-use,
and easy to port.  The interface is similar to the interface for
Java's network library.

Features:
  * TCP 'client' sockets
  * TCP 'server' sockets
  * Non-blocking TCP sockets
  * UDP
  * IP Multicast
  * Internet address abstraction

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libgnet, a network library
Group:		System/Libraries
Provides:	lib%{name} = %{version}-%{release}

%description -n %{libname}
Gnet is a simple network library.  It is writen in C, object-oriented,
and built upon glib.  It is intended to be small, fast, easy-to-use,
and easy to port.  The interface is similar to the interface for
Java's network library.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for the Gnet library
Group:		Development/C
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	libgnet-%{api_version}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
Gnet is a simple network library.  It is writen in C, object-oriented,
and built upon glib.
This package allows you to develop applications that use the Gnet
library.

%files -n %{devname}
%doc README COPYING ChangeLog NEWS TODO AUTHORS INSTALL HACKING doc/html
%{_includedir}/gnet-2.0
%{_datadir}/aclocal/*
%{_libdir}/gnet-2.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n gnet-%{version}
%patch0 -p1
chmod 755 doc/html

%build
autoreconf -fi
export CFLAGS="%{optflags} -fPIC"
%configure --disable-static

%make

%install
%makeinstall_std

#remove unpackaged files
rm -rf %{buildroot}%{_datadir}/doc/libgnet%{api_version}-dev
rm -fr %{buildroot}%{_datadir}/gtk-doc/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1978 |21cr|gngb-20060309-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta %(echo %{version} |cut -d. -f2)

Summary:	Color Gameboy emulator
Name:		gngb
Version:	20060309
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://m.peponas.free.fr/gngb/
Source0:	http://m.peponas.free.fr/gngb/download/%{name}-%{beta}.tar.bz2
Patch0:		gngb-20060309-gcc5.patch
# From Debian
Patch1:		FTBFS_with_gcc-3.4_conflicting_types.patch
Patch2:		gcc7.patch
Patch3:		gcc10.patch
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(zlib)
ExclusiveArch:	%{x86_64} aarch64

%description
Gngb is a Color Gameboy emulator for Linux written in C with the SDL.
It support most of Gameboy and Color Gameboy games.

%files
%doc AUTHORS COPYING ChangeLog README TODO sample_gngbrc
%attr(0755,root,games) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{beta}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1979 |21cr|gngeo-0.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neo Geo Emulator
Name:		gngeo
Version:	0.8
Release:	6
License:	GPLv2+
Group:		Emulators
Url:		http://m.peponas.free.fr/gngeo/
Source0:	http://m.peponas.free.fr/gngeo/download/%{name}-%{version}.tar.bz2
Patch0:		gngeo-mkstate.patch
Patch1:		gngeo-0.8-cflags.patch
Patch2:		gngeo-0.8-concurrentMake.patch
Patch3:		gngeo-0.8-execstacks.patch
BuildRequires:	nasm
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(zlib)

%description
GnGeo is a NeoGeo emulator for Linux (and maybe some other UNIX).
It needs NeoGeo Bios and roms that you must of course own to play with.

%files
%doc AUTHORS COPYING NEWS README sample_gngeorc
%attr(0755,root,games) %{_bindir}/%{name}
%dir %attr(0755,root,games) %{_datadir}/%{name}
%{_mandir}/man1/gngeo.1*
%{_datadir}/%{name}/gngeo_data.zip

#----------------------------------------------------------------------------

%prep
%autosetup -p0

%build
autoreconf -fi
%global optflags %{optflags} -std=gnu89 -fcommon
%configure \
	--disable-i386asm

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1980 |21cr|gnofract4d-4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gnofract 4D: Superior Fractal Software
Name:		gnofract4d
Version:	4.3
Release:	1
License:	BSD
Group:		Graphics
Url:		https://github.com/fract4d/gnofract4d
Source0:	https://github.com/fract4d/gnofract4d/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
Patch0:	gnofract4d-4.3-fix-desktop-file.patch
Patch1:	gnofract4d-4.3-fix-python3-shebangs.patch
BuildRequires:	python3
BuildRequires:	python3egg(pycairo)
BuildRequires:	python3egg(pygobject)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.18
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(python3) >= 3.6
Requires:	ffmpeg
Requires:	python3egg(pycairo)
Requires:	python3egg(pygobject)

%description
Gnofract 4D is a free, open source program which allows anyone to create
beautiful images called fractals. The images are automatically created by the
computer based on mathematical principles. These include the Mandelbrot and
Julia sets and many more. You don't need to do any math: you can explore a
universe of images just using a mouse.

%files
%doc LICENSE README.md
%doc docs help manual
%{_bindir}/%{name}
%{_datadir}/%{name}
%{py3_platsitedir}/fract4d
%{py3_platsitedir}/fract4d_compiler
%{py3_platsitedir}/fract4dgui
%{py3_platsitedir}/%{name}-%{version}-py%{py3_ver}.egg-info
%{_datadir}/mime/packages/%{name}-mime.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
%py3_build


%install
%py3_install

# Fix permissions
chmod +x %{buildroot}%{py3_platsitedir}/fract4d/{__init__,animation,createdocs,fractal,gradient}.py
chmod +x %{buildroot}%{py3_platsitedir}/fract4dgui/{browser,DlgAdvOpt,gtkfractal,__init__}.py
chmod +x %{buildroot}%{py3_platsitedir}/fract4d_compiler/{__init__,canon,codegen,fc,fractlexer,fractparser,fsymbol,preprocessor,translate}.py

# Install man page
mkdir -p %{buildroot}%{_mandir}/man1/
install -m 0644 doc/%{name}.1 %{buildroot}%{_mandir}/man1/

# Duplicate docs
rm -rf %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1981 |21cr|gnomad2-2.9.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	A Nomad Jukebox manager
Name:		gnomad2
Version:	2.9.6
Release:	6
License:	GPLv2+
Group:		Sound
Url:		https://gnomad2.sourceforge.net/
Source0:	%{name}-%{version}.tar.gz
Patch0:		gnomad2-2.9.6-fix-string-format.patch
Patch1:		gnomad2-2.9.6-switch-to-gtk3.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	imagemagick
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libnjb)
BuildRequires:	pkgconfig(taglib)

%description
Gnomad 2 is a GUI built on top of GTK, libid3tag and libnjb that makes it
possible to transfer tracks and files from/to a Creative Nomad Jukebox
(all brands). It is designed much like an ordinary graphical FTP program.

%files -f %{name}.lang
%doc AUTHORS NEWS ChangeLog README TODO
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/application-registry/%{name}.applications
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}-logo.png
%{_miconsdir}/%{name}-logo.png
%{_iconsdir}/%{name}-logo.png
%{_liconsdir}/%{name}-logo.png

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
%configure
%make


%install
%makeinstall_std

install -d %{buildroot}{%{_miconsdir},%{_liconsdir},%{_menudir}}
convert -size 16x16 %{name}-logo.png %{buildroot}%{_miconsdir}/%{name}-logo.png
convert -size 32x32 %{name}-logo.png %{buildroot}%{_iconsdir}/%{name}-logo.png
convert -size 48x48 %{name}-logo.png %{buildroot}%{_liconsdir}/%{name}-logo.png


desktop-file-edit --add-category="Audio" %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1982 |21cr|gnome-2048-3.38.2-0.git302bdd.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 302bdd6f62adfa5ab955d1c31af48ccc1fb4c413
%define commit_short %(echo %{commit} | head -c6)

Summary:	A 2048-like game for GNOME
Name:		gnome-2048
Version:	3.38.2
Release:	0.git%{commit_short}.1
License:	GPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/gnome-2048
Source0:	https://github.com/GNOME/gnome-2048/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	appstream-util
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgnome-games-support-1)

%description
A 2048-like game for GNOME.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_appdatadir}/org.gnome.TwentyFortyEight.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.TwentyFortyEight.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.TwentyFortyEight.gschema.xml
%{_iconsdir}/hicolor/*/apps/org.gnome.TwentyFortyEight*.svg
%{_mandir}/man6/gnome-2048.6.xz

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1983 |21cr|gnome-alsamixer-0.9.7-0.20170408
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Now on git, so pick up more updates (gvm 2017/09)
%define	git		1
%define	gitdate	20170408
%if %{git}
%define release %mkrel 0.%{gitdate}
%else
%define release 7
%endif
%define schemas %{name}

Name:		gnome-alsamixer
Summary:	ALSA mixer (volume control) for GNOME
Version:	0.9.7
Release:	%{release}
License:	GPLv2+
Group:		Sound 
Url:		https://github.com/GNOME/gnome-alsamixer
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
%else
Source0:	%{name}-%{version}.tar.bz2
%endif
Source11:	%{name}-16.png
Source12:	%{name}-32.png
Source13:	%{name}-48.png
Source100:	%{name}.rpmlintrc
# All the below patches are now merged in the sources
Patch0:		gnome-alsamixer-0.9.6-deprecation.patch
# From ALT Linux: introduce the gconf schema, which is missing 
# upstream, and correct the paths to it - AdamW 2007/06
Patch1:		change_gconf-keys_path.diff
Patch2:		gnome-alsamixer.schemas.diff
%if %{git}
BuildRequires:	autoconf >= 2.53
BuildRequires:	automake >= 1.15
BuildRequires:	intltool >= 0.25
%else
BuildRequires:	automake1.4
%endif
BuildRequires:	desktop-file-utils
BuildRequires:	GConf2
BuildRequires:	gettext
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.6
BuildRequires:	pkgconfig(libgnomeui-2.0)

%description
A sound mixer (volume control) for ALSA, for the GNOME desktop environment.

%files -f %{name}.lang
%doc COPYING ChangeLog AUTHORS
%{_bindir}/%{name}
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%if %{git}
%{_datadir}/applications/%{name}.desktop
%else
%{_datadir}/applications/rosa-%{name}.desktop
%endif
%{_datadir}/pixmaps/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%preun
%preun_uninstall_gconf_schemas %{schemas}

#-----------------------------------------------------------------------------

%prep
%if %{git}
%setup -q -n %{name}-%{gitdate}
%else
%setup -q
%patch0 -p1 -b .deprecated
%patch1 -p1 -b .gconf_keys
%patch2 -p1 -b .schema
%endif


%build
%if %{git}
./autogen.sh
%configure
%make
%else
automake-1.4
export CPPFLAGS=-I%{_includedir}/alsa
%configure --disable-schemas-install
%make LIBS="-lm"
%endif


%install
%makeinstall_std

%if %{git}
# Fix the provided .desktop file
desktop-file-edit	--remove-key="Encoding" --remove-key="_Name" --remove-key="_Comment"\
					--set-name="%{name}" --set-comment="GNOME ALSA mixer (volume control)" \
					--remove-category="Application" \
					--add-category="Mixer" --add-category="GTK" --add-category="Audio" \
					%{buildroot}%{_datadir}/applications/%{name}.desktop
%else
# Menu entry, needed only for older releases: recent git now have it
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=GNOME ALSA mixer
Comment=GNOME ALSA mixer (volume control)
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Audio;Mixer;GTK;GNOME;
EOF
%endif

# Our icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png


%{find_lang} %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1984 |21cr|gnome-bluetooth3-3.34.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define oname gnome-bluetooth

%define major 13
%define gir_maj 1.0
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{gir_maj}
%define devname %mklibname %{name} -d

Summary:	GNOME Bluetooth Subsystem
Name:		%{oname}3
Version:	3.34.5
Release:	1
Epoch:		1
#gw lib is LGPL, main app is GPL
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-bluetooth
Source0:	https://download.gnome.org/sources/gnome-bluetooth/%{url_ver}/%{oname}-%{version}.tar.xz
Source1:	61-gnome-bluetooth-rfkill.rules
Source2:	gnome-bluetooth_ru.tar.gz
Patch0:		fix-build-with-new-meson-versions.patch
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libudev)
Requires:	bluez
Conflicts:	gnome-bluetooth > 1:3.34.5

%description
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.

%files -f %{oname}2.lang
%doc README.md AUTHORS
%{_bindir}/*
%{_datadir}/applications/bluetooth-sendto.desktop
%{_datadir}/%{oname}
%{_iconsdir}/hicolor/*/*/bluetooth*
%{_mandir}/man1/*
%{_udevrulesdir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNOME bluetooth library
Group:		System/Libraries
Conflicts:	%{mklibname gnome-bluetooth 13} > 1:3.34.5

%description -n %{libname}
Library from GNOME-Bluetooth.

%files -n %{libname}
%{_libdir}/lib%{oname}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{mklibname gnome-bluetooth-gir 3.0} > 1:3.34.5

%description -n %{girname}
GObject Introspection interface for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GnomeBluetooth-%{gir_maj}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files from %{name}
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{mklibname gnome-bluetooth -d} > 1:3.34.5

%description -n %{devname}
Development libraries and header files from %{name}.

%files -n %{devname}
%{_datadir}/gtk-doc/html/%{oname}
%{_includedir}/%{oname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/GnomeBluetooth-%{gir_maj}.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

pushd po
tar -xvzf %{SOURCE2}
popd

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{oname}2 --all-name --with-gnome

mkdir -p %{buildroot}%{_udevrulesdir}
install -m644 %{SOURCE1} %{buildroot}%{_udevrulesdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1985 |21cr|gnome-browser-extension-12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Browser extension that provides integration with GNOME Shell
Name:		gnome-browser-extension
Version:	12
Release:	1
License:	GPLv3
Group:		Development/Other
Url:		https://gitlab.gnome.org/GNOME/gnome-browser-extension
Source0:	https://github.com/GNOME/gnome-browser-extension/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	meson
BuildRequires:	p7zip
BuildRequires:	python3dist(polib)

%description
This repository contains the browser extension that provides integration
with GNOME Shell and the corresponding extensions repository at
https://extensions.gnome.org/.

#------------------------------------------------------------------

%package chrome
Summary:	%{name} for Chrome
Group:		Development/Other

%description chrome
%{name} for Chrome.

%files chrome
%doc README.md
%license LICENSE
%{_libdir}/chromium-browser

#------------------------------------------------------------------

%package firefox
Summary:	%{name} for Firefox
Group:		Development/Other

%description firefox
%{name} for Firefox.

%files firefox
%doc README.md
%license LICENSE
%{_datadir}/mozilla/extensions/gnome-browser-extension.zip

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions
mkdir -p %{buildroot}%{_libdir}/chromium-browser
cp *-rosa-linux-gnu/extension-firefox.zip %{buildroot}%{_datadir}/mozilla/extensions/gnome-browser-extension.zip
cp *-rosa-linux-gnu/extension-chrome.zip %{buildroot}%{_libdir}/chromium-browser/gnome-browser-extension.zip

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1986 |21cr|gnome-chemistry-utils-0.14.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.14
%define major 0
%define libname %mklibname gcu %{api} %{major}
%define libgchempaint %mklibname gchempaint %{api} %{major}
%define libgcrystal %mklibname gcrystal %{api} %{major}

Summary:	Backend for Gnome chemistry applications
Name:		gnome-chemistry-utils
Version:	0.14.17
Release:	2
License:	LGPLv2+
Group:		Sciences/Chemistry
Url:		http://www.nongnu.org/gchemutils/
Source0:	http://download.savannah.nongnu.org/releases/gchemutils/%{api}/%{name}-%{version}.tar.xz
# debian
Patch11:	gnome-chemistry-utils-0.14.17-deb-gnumeric-ftbfs.patch
Patch12:	gnome-chemistry-utils-0.14.17-deb-openbabel-v3.patch
Patch13:	gnome-chemistry-utils-0.14.17-deb-use-yelp.patch
Patch14:	gnome-chemistry-utils-0.14.17-deb-remove-gnome-common.patch
Patch15:	gnome-chemistry-utils-0.14.17-deb-gdk-use-x11-backend.patch
Patch16:	gnome-chemistry-utils-0.14.17-deb-gchempaint-merge-molecules-fix.patch
BuildRequires:	autoconf-archive
BuildRequires:	bodr
BuildRequires:	chemical-mime-data
BuildRequires:	chrpath
BuildRequires:	gtk-doc
BuildRequires:	itstool
BuildRequires:	intltool
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(lasem-0.4)
BuildRequires:	pkgconfig(libgoffice-0.10) >= 0.10.12
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(openbabel-3)
BuildRequires:	yelp-tools
# Also can be built with gnumeric but we don't do it for now
Provides:	gcu = %{EVRD}
Provides:	gchemutils = %{EVRD}
Obsoletes:	gcu < %{EVRD}
Obsoletes:	gchemutils < %{EVRD}
# fwang: the main package comes meta package since 0.10
Requires:	gchem3d = %{EVRD}
Requires:	gchemcalc = %{EVRD}
Requires:	gchempaint = %{EVRD}
Requires:	gchemtable = %{EVRD}
Requires:	gcrystal = %{EVRD}
Requires:	gspectrum = %{EVRD}

%description
The Gnome Chemistry Utils provide C++ classes and GTK2 widgets related to
chemistry. They are currently used in Gnome Crystal (gcrystal) and Gnome
Chemistry Paint (gchempaint).

%files
%doc README ChangeLog NEWS AUTHORS

#--------------------------------------------------------------------

%package common
Summary:	Common files shared by different components of %{name}
Group:		Sciences/Chemistry
Conflicts:	%{name} < %{version}
Requires:	chemical-mime-data
Requires:	bodr

%description common
The Gnome Chemistry Utils provide C++ classes and GTK2 widgets related to
chemistry.  They are currently used in Gnome Crystal (gcrystal) and Gnome
Chemistry Paint (gchempaint).

This package contains the common files ahred by different components of
%{name}.

%preun common
%preun_uninstall_gconf_schemas gchemutils

%files common -f gchemutils-%{api}.lang
%{_datadir}/glib-2.0/schemas/org.gnome.gchemutils.gschema.xml
%dir %{_libdir}/gchemutils
%dir %{_libdir}/gchemutils/%{api}
%dir %{_libdir}/gchemutils/%{api}/plugins
%{_libdir}/gchemutils/%{api}/plugins/cdx
%{_libdir}/gchemutils/%{api}/plugins/cdxml
%{_libdir}/gchemutils/%{api}/plugins/cif
%{_libdir}/gchemutils/%{api}/plugins/cml
%{_libdir}/gchemutils/%{api}/plugins/nuts
%dir %{_datadir}/gchemutils
%dir %{_datadir}/gchemutils/%{api}
%{_datadir}/gchemutils/%{api}/*.xml
%dir %{_datadir}/gchemutils/%{api}/pixmaps
%dir %{_datadir}/gchemutils/%{api}/ui
%{_datadir}/gchemutils/%{api}/ui/libgcu
%{_datadir}/mime/packages/*.xml
%{_libexecdir}/babelserver

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Main libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
The Gnome Chemistry Utils provide C++ classes and GTK2 widgets related to
chemistry. They are currently used in Gnome Crystal (gcrystal) and Gnome
Chemistry Paint (gchempaint).

This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libgcu-%{api}.so.%{major}*
%{_libdir}/libgcugtk-%{api}.so.%{major}*

#--------------------------------------------------------------------

%package -n %{libgchempaint}
Summary:	Libraries for gchempaint
Group:		System/Libraries

%description -n %{libgchempaint}
The Gnome Chemistry Utils provide C++ classes and GTK2 widgets related to
chemistry. They are currently used in Gnome Crystal (gcrystal) and Gnome
Chemistry Paint (gchempaint).

This package contains the library needed to run programs dynamically
linked with gchempaint.

%files -n %{libgchempaint}
%{_libdir}/libgcp-%{api}.so.%{major}*
%{_libdir}/libgccv-%{api}.so.%{major}*

#--------------------------------------------------------------------

%package -n %{libgcrystal}
Summary:	Libraries for gchempaint
Group:		System/Libraries

%description -n %{libgcrystal}
The Gnome Chemistry Utils provide C++ classes and GTK2 widgets related to
chemistry. They are currently used in Gnome Crystal (gcrystal) and Gnome
Chemistry Paint (gchempaint).

This package contains the library needed to run programs dynamically
linked with gcrystal.

%files -n %{libgcrystal}
%{_libdir}/libgcrystal-%{api}.so.%{major}*

#--------------------------------------------------------------------

%package -n gchempaint
Summary:	GNOME 2D chemical structure drawing tool
Group:		Sciences/Chemistry
Requires:	%{name}-common = %{EVRD}
Recommends:	%{name}-goffice = %{EVRD}
Conflicts:	%{name}-common < 0.10.1-2

%description -n gchempaint
GChemPaint is a 2D chemical structures editor for the Gnome-2 desktop.
GChemPaint is a multi-document application and will be a bonobo server so
that some chemistry could be embedded in Gnome applications such as
Gnumeric and Abiword.

%preun -n gchempaint
%preun_uninstall_gconf_schemas gchempaint gchempaint-arrows

%files -n gchempaint
%{_datadir}/glib-2.0/schemas/org.gnome.gchemutils.paint.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.gchemutils.paint.plugins.arrows.gschema.xml
%{_bindir}/gchempaint*
%{_libdir}/gchemutils/%{api}/plugins/paint
%{_datadir}/applications/gchempaint*.desktop
%{_datadir}/gchemutils/%{api}/paint
%{_datadir}/gchemutils/%{api}/pixmaps/gchempaint_logo.*
%{_datadir}/gchemutils/%{api}/ui/paint
%{_datadir}/help/C/gchempaint-%{api}
%{_iconsdir}/hicolor/*/apps/gchempaint.*
%{_iconsdir}/hicolor/*/mimetypes/application-x-gchempaint.*
%{_mandir}/man1/gchempaint*
%{_datadir}/appdata/gchempaint*
#--------------------------------------------------------------------

%package -n gchem3d
Summary:	Molecules Viewer
Group:		Sciences/Chemistry
Requires:	%{name}-common = %{EVRD}
Conflicts:	%{name} < %{version}

%description -n gchem3d
GChem3Viewer is a 3D molecular structure viewer.

%files -n gchem3d
%{_bindir}/gchem3d*
%{_datadir}/applications/gchem3d*.desktop
%{_datadir}/help/C/gchem3d-%{api}
%{_iconsdir}/hicolor/*/apps/gchem3d.*
%{_mandir}/man1/gchem3d*
%{_datadir}/appdata/gchem3d*

#--------------------------------------------------------------------

%package -n gchemcalc
Summary:	Chemical calculator
Group:		Sciences/Chemistry
Requires:	%{name}-common = %{EVRD}
Conflicts:	%{name} < %{version}

%description -n gchemcalc
GChemCalc is a Chemical calculator.

%files -n gchemcalc
%{_bindir}/gchemcalc*
%{_datadir}/applications/gchemcalc*.desktop
%{_datadir}/gchemutils/%{api}/ui/calc
%{_datadir}/help/C/gchemcalc-%{api}
%{_iconsdir}/hicolor/*/apps/gchemcalc.*
%{_mandir}/man1/gchemcalc*
%{_datadir}/appdata/gchemcalc*

#--------------------------------------------------------------------

%package -n gchemtable
Summary:	Periodic table
Group:		Sciences/Chemistry
Requires:	%{name}-common = %{EVRD}
Conflicts:	%{name} < %{version}

%description -n gchemtable
GChemTable is a periodic table of the elements application.

%files -n gchemtable
%{_bindir}/gchemtable*
%{_datadir}/applications/gchemtable*.desktop
%{_datadir}/help/C/gchemtable-%{api}
%{_datadir}/gchemutils/%{api}/ui/table
%{_iconsdir}/hicolor/*/apps/gchemtable.*
%{_mandir}/man1/gchemtable*
%{_datadir}/appdata/gchemtable*

#--------------------------------------------------------------------

%package -n gcrystal
Summary:	Crystal structure viewer
Group:		Sciences/Chemistry
Requires:	%{name}-common = %{EVRD}
Conflicts:	%{name} < %{version}

%description -n gcrystal
GCrystal is a Crystal structure viewer.

%preun -n gcrystal
%preun_uninstall_gconf_schemas gcrystal

%files -n gcrystal
%{_datadir}/glib-2.0/schemas/org.gnome.gchemutils.crystal.gschema.xml
%{_bindir}/gcrystal*
%{_datadir}/gchemutils/%{api}/pixmaps/gcrystal_logo.png
%{_datadir}/gchemutils/%{api}/ui/crystal
%{_datadir}/applications/gcrystal*.desktop
%{_datadir}/help/C/gcrystal-%{api}
%{_iconsdir}/hicolor/*/apps/gcrystal.*
%{_iconsdir}/hicolor/*/mimetypes/application-x-gcrystal.*
%{_mandir}/man1/gcrystal*
%{_datadir}/appdata/gcrystal*

#--------------------------------------------------------------------

%package -n gspectrum
Summary:	Spectrum viewer
Group:		Sciences/Chemistry
Requires:	%{name}-common = %{EVRD}
Conflicts:	%{name} < %{version}

%description -n gspectrum
GSpectrum is a Spectrum viewer.

%files -n gspectrum
%{_bindir}/gspectrum*
%{_datadir}/applications/gspectrum*.desktop
%{_datadir}/help/C/gspectrum-%{api}
%{_iconsdir}/hicolor/*/apps/gspectrum.*
%{_mandir}/man1/gspectrum*
%{_datadir}/appdata/gspectrum*

#--------------------------------------------------------------------

%package goffice
Summary:	GOffice plugin for gchemutils
Group:		Sciences/Chemistry
Requires:	gchempaint = %{EVRD}
Requires:	goffice

%description goffice
GOffice plugin for gchemutils.

%files goffice
%{_libdir}/goffice/*/plugins/gchemutils

#--------------------------------------------------------------------

%package	devel
Summary:	Development related files of %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libgchempaint} = %{EVRD}
Requires:	%{libgcrystal} = %{EVRD}
Provides:	gcu-devel = %{EVRD}
Provides:	gchemutils-devel = %{EVRD}
Provides:	gchempaint-devel = %{EVRD}
Obsoletes:	%{_lib}gcu-devel < %{version}
Obsoletes:	gchempaint-devel < %{version}

%description	devel
The Gnome Chemistry Utils provide C++ classes and GTK2 widgets related to
chemistry.  They are currently used in Gnome Crystal (gcrystal) and Gnome
Chemistry Paint (gchempaint).

This package includes the header files and static libraries necessary for
developing chemistry related programs using %{name}.

%files devel
%doc docs/reference
%{_libdir}/*.so

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%define Werror_cflags %{nil}
export CXXFLAGS="%{optflags} -fpermissive -std=c++14"
%configure \
	--enable-static=no --disable-update-databases \
	--disable-mozilla-plugin --disable-schemas-install \
	--disable-scrollkeeper --without-kde-mime-dir
%make

%install
%makeinstall_std HTMLDIR=`pwd`/reference/html

#kill intrusive docs
rm -rf %{buildroot}%{_docdir}/gchemutils

#kill rpaths
chrpath --delete  %{buildroot}%{_bindir}/*
chrpath --delete  %{buildroot}%{_libdir}/goffice/*/plugins/gchemutils/gchemutils.so
chrpath --delete  %{buildroot}%{_libdir}/*.so.*

%find_lang gchemutils-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1987 |21cr|gnome-color-chooser-0.2.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Customize the appearance of the GNOME desktop
Name:		gnome-color-chooser
Version:	0.2.5
Release:	6
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		http://sourceforge.net/projects/gnomecc
Source0:	%{name}-%{version}.tar.bz2
Patch0:		gnome-color-chooser-0.2.5-desktop-entry.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(libgnomeuimm-2.6)

%description
An application for customizing the appearance of the GNOME(/GTK+) desktop.
Features: change colors and sizes of GTK widgets, colorize desktop
icons, configure your gtk engines and let your current theme be
drawn by whatever gtk engine you want, etc.

%files -f %{name}.lang
%doc README THANKS NEWS AUTHORS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/glade/%{name}.glade
%{_datadir}/%{name}/profiles/compact.xml
%{_datadir}/%{name}/%{name}.xml
%{_datadir}/man/man1/%{name}.1*
%{_datadir}/pixmaps/%{name}.svg

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1988 |21cr|gnome-color-manager-3.36.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Color management tools for GNOME
Name:		gnome-color-manager
Version:	3.36.0
Release:	12
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-color-manager
Source0:	https://download.gnome.org/sources/gnome-color-manager/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	docbook-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(colord-gtk)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(mx-1.0)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)
Requires:	colord
Requires:	shared-color-profiles

%description
gnome-color-manager is a session framework that makes it easy to manage,
install and generate color profiles in the GNOME desktop.

%files -f %{name}.lang
%doc AUTHORS README
%{_bindir}/gcm-*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/icons/hicolor/scalable/*/*.svg
%{_datadir}/man/man1/*
%{_appdatadir}/org.gnome.ColorProfileViewer.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1989 |21cr|gnome-commander-1.12.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	A Gnome filemanager similar to the Norton Commander(TM)
Name:		gnome-commander
Version:	1.12.2
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://gcmd.github.io
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/1.4/%{name}-%{version}.tar.xz
Patch0:		gnome-commander-1.12.2-no-werror.patch
BuildRequires:	desktop-file-utils
BuildRequires:	flex
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxslt-proc
BuildRequires:	shared-mime-info
BuildRequires:	libchm-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(unique-1.0)
Requires:	gnome-vfs2

%description
Gnome Commander is a filemanager that just like the classical Norton
commander (TM) lets you do everything with the keyboard. It can
perform all standard file operations and some extra features like ftp
support.

%files -f %{name}.lang
%doc README TODO COPYING ChangeLog
%{_appdatadir}/gnome-commander.appdata.xml
%{_bindir}/gnome-commander
%{_bindir}/gcmd-block
%{_libdir}/gnome-commander/
%{_datadir}/pixmaps/*
%{_datadir}/applications/gnome-commander.desktop
%{_datadir}/glib-2.0/schemas/*.xml
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure \
	--disable-scrollkeeper \
	--disable-schemas-compile \
	--disable-shared
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

rm -f %{buildroot}%{_libdir}/gnome-commander/*.a
rm -f %{buildroot}%{_libdir}/gnome-commander/plugins/*.a

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="X-MandrivaLinux-System-FileTools" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1990 |21cr|gnome-desktop-2.32.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_version 2
%define lib_major   17
%define libname %mklibname %{name}-%{api_version}_ %{lib_major}
%define develname %mklibname -d %{name}-%{api_version}

Summary:	Package containing code shared among gnome-panel, gnome-session, nautilus, etc
Name:		gnome-desktop
Version:	2.32.1
Release:	15
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
URL:		http://www.gnome.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/gnome-desktop/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(python2)
BuildRequires:	libxslt-proc
BuildRequires:	intltool >= 0.40.0
BuildRequires:	ldetect-lst

Provides:	%{name}-%{api_version} = %{version}-%{release}
Requires:	ldetect-lst >= 0.1.282
%rename %{name}-common

%description
This package contains some data files and other shared components of the
GNOME user environment.

%files -f %{name}-2.0.lang
%doc AUTHORS COPYING ChangeLog NEWS README
%{_datadir}/pixmaps/*

#----------------------------------------------------------------------
%package -n %{libname}
Summary:	%{summary}
Group:		System/Libraries

%description -n %{libname}
This package contains an internal library
(libgnomedesktop) used to implement some portions of the GNOME
desktop.

%files -n %{libname}
%{_libdir}/libgnome-desktop-%{api_version}.so.%{lib_major}*

#----------------------------------------------------------------------

%package -n %{develname}
Summary:	Development libraries, include files for gnome-desktop
Group:		Development/GNOME and GTK+
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-%{api_version}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{mklibname -d gnome-desktop-2_ 2} < 2.32.1-8

%description -n %{develname}
Development libraries, include files for internal library libgnomedesktop.

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%doc %{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
export PYTHON=%{__python2}
%configure \
	--disable-static \
	--with-gnome-distributor="%{vendor}" \
	--disable-gnome-about \
	--disable-scrollkeeper \
	--disable-desktop-docs \
	--with-pnp-ids-path=%{_datadir}/misc/pnp.ids

%make LIBS=-lm

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

%find_lang %{name}-2.0

for d in `ls -1 %{buildroot}%{_datadir}/gnome/help/`; do
  %find_lang $d --with-gnome
  cat $d.lang >> %{name}-2.0.lang
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1991 |21cr|gnome-desktop-testing-2021.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Basic runner for installed tests
Name:		gnome-desktop-testing
Version:	2021.1
Release:	1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/gnome-desktop-testing
Source0:	https://github.com/GNOME/gnome-desktop-testing/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gio-unix-2.0)

%description
basic runner for installed tests.

%files
%doc README.md
%license COPYING
%{_bindir}/ginsttest-runner
%{_bindir}/gnome-desktop-testing-runner
%{_mandir}/man1/ginsttest-runner.1*
%{_mandir}/man1/gnome-desktop-testing-runner.1*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1992 |21cr|gnome-devel-docs-3.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Developer Documentation
Name:		gnome-devel-docs
Version:	3.26.0
Release:	2
License:	GFDL
Group:		Documentation
Url:		http://developer.gnome.org/
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gnome-doc-utils
BuildRequires:	itstool
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildArch:	noarch

%description
This package contains the GNOME Handbook, the GNOME Documentation Style Guide
and an Overview of the GNOME Platform.

%files -f %{name}.lang
%doc NEWS README AUTHORS

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1993 |21cr|gnome-dvb-daemon-0.2.91-0.20210828.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gitdate 20210828

Summary:	DVB Daemon for GNOME
Name:		gnome-dvb-daemon
Version:	0.2.91
Release:	0.%{gitdate}.1
License:	GPLv3+
Group:		Video
Url:		https://gitlab.gnome.org/Archive/gnome-dvb-daemon
Source0:	%{name}-%{version}-%{gitdate}.tar.xz
BuildRequires:	gnome-common
BuildRequires:	gstreamer1.0-plugins-bad
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	gstreamer1.0-tools
BuildRequires:	intltool
BuildRequires:	python3-dbus
BuildRequires:	python3-gi
BuildRequires:	vala >= 0.26
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0) >= 2.32.0
BuildRequires:	pkgconfig(grilo-0.3)
BuildRequires:	pkgconfig(gstreamer-1.0) >= 1.4.0
BuildRequires:	pkgconfig(gstreamer-mpegts-1.0)
BuildRequires:	pkgconfig(gstreamer-rtsp-server-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(pygobject-3.0) >= 3.2.1
BuildRequires:	pkgconfig(python3) >= 3.2
BuildRequires:	pkgconfig(sqlite3) >= 3.4
BuildRequires:	python3-gstreamer1.0
Requires:	dvb-apps
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-bad
Requires:	python3-gstreamer1.0
Requires:	python3-dbus

%description
DVB Daemon is a daemon written in Vala to setup your DVB devices,
record TV shows and browse EPG. It can be controlled via its D-Bus interface.

%files -f %{name}.lang
%{_bindir}/gnome-dvb-*
%{py3_puresitedir}/gnomedvb
%{_datadir}/dbus-1/services/*.service
%{_datadir}/applications/gnome-dvb-*.desktop
%{_iconsdir}/hicolor/*x*/apps/gnome-dvb-*.png
%{_iconsdir}/hicolor/scalable/apps/gnome-dvb-*.svg
%{_libdir}/grilo-0.3/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{gitdate}


%build
export PYTHON="%{_bindir}/python3"
./autogen.sh
%configure --enable-grilo-plugin
%make


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1994 |21cr|gnome-icon-theme-extras-3.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: GNOME default extra icons
Name: gnome-icon-theme-extras
Version: 3.12.0
Release: 4
License: CC-BY-SA
Group: Graphical desktop/GNOME
URL: http://www.gnome.org/
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/3.12/%{name}-%{version}.tar.xz
BuildRequires: icon-naming-utils >= 0.8.1
BuildRequires: git-core
#BuildRequires: inkscape
BuildArch: noarch
Requires: gnome-icon-theme
Requires(post): gtk+2.0
Requires(postun): gtk+2.0

%description
GNOME default extra icons

%prep
%setup -q

%build

./configure --prefix=%_prefix --enable-icon-mapping

%make

%install
%makeinstall_std

%files
%doc README COPYING NEWS AUTHORS
%{_datadir}/icons/gnome/*x*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1995 |21cr|gnome-initial-setup-43.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Bootstrapping your OS
Name:		gnome-initial-setup
Version:	43.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-initial-setup
Source0:	https://download.gnome.org/sources/gnome-initial-setup/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-initial-setup-40.2_ru.tar.gz
Patch0:		gnome-initial-setup-43.2-sysusersdir-path.patch
Patch1:		gnome-initial-setup-43.2-undefined-reference.patch
BuildRequires:	dconf
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(accountsservice)
BuildRequires:	pkgconfig(cheese)
BuildRequires:	pkgconfig(cheese-gtk)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gdm)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-4)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(goa-backend-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gweather4)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libgeoclue-2.0)
BuildRequires:	pkgconfig(packagekit-glib2)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(pwquality)
BuildRequires:	pkgconfig(rest-1.0)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(webkitgtk-6.0)
# gnome-initial-setup is being run by gdm
Requires:	gdm
Requires:	libgnomekbd-common
Requires(pre):	shadow-utils
Requires(post,preun,postun):	systemd-units
Provides:	user(gnome-initial-setup)

%description
GNOME Initial Setup is an alternative to firstboot, providing
a good setup experience to welcome you to your system, and walks
you through configuring it. It is integrated with gdm.

%files -f %{name}.lang
%doc README.md
%license COPYING
%config(noreplace) %{_sysusersdir}/%{name}.conf
%config(noreplace) %{_userunitdir}/gnome-session@%{name}.target.d/session.conf
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnome-session/sessions/%{name}.session
%{_datadir}/gnome-shell/modes/initial-setup.json
%{_datadir}/polkit-1/rules.d/20-%{name}.rules
%{_libexecdir}/%{name}
%{_libexecdir}/%{name}-copy-worker
%{_libexecdir}/%{name}-goa-helper
%{_sysconfdir}/xdg/autostart/%{name}-copy-worker.desktop
%{_sysconfdir}/xdg/autostart/%{name}-first-login.desktop
%{_userunitdir}/gnome-*.service
%{_userunitdir}/gnome-session.target.wants/gnome-*.service

%pre
useradd -rM -d /run/%{name}/ -s /sbin/nologin %{name} &>/dev/null || :

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

# Desktop file does not (and probably will not) ever validate, as it uses
# an absolute path /tmp/-style trigger to determine whether to autostart.
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/*.desktop

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1996 |21cr|gnome-internet-radio-locator-12.7.0-0.git50fc7e.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 50fc7edf61961fc3f24bcb0276fc68cebdb76068
%define commit_short %(echo %{commit} | head -c6)

Summary:	Easily locate and listen to Free Internet Radio stations
Name:		gnome-internet-radio-locator
Version:	12.7.0
Release:	0.git%{commit_short}.1
License:	GPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/gnome-internet-radio-locator
Source0:	https://github.com/GNOME/gnome-internet-radio-locator/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:		gnome-internet-radio-locator-geocode-glib-2.0.patch
Patch1:		gnome-internet-radio-locator-org.gnome.Radio.xsl.patch
BuildRequires:	glib-gettextize
BuildRequires:	intltool
BuildRequires:  itstool
BuildRequires:	pkgconfig(champlain-gtk-0.12)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-player-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pangoft2)

%description
Easily locate and listen to Free Internet Radio stations by broadcasters on
the Internet with the help of map and text search.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/%{name}
%{_bindir}/org.gnome.Radio
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*x*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
CFLAGS="%{optflags} -Wno-int-conversion"
autoreconf -fi
%configure --with-recording
%make

%install
%make_install

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1997 |21cr|gnome-js-common-0.1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.1
%define minor 2

Summary:	Common JavaScript modules for GNOME
Name:		gnome-js-common
Version:	%{major}.%{minor}
Release:	9
Epoch:		1
License:	GPLv3
Group:		Development/Other
Url:		http://www.gnome.org
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{major}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildArch:	noarch

%description
gnome-js-common is a module holding tests and JavaScript code useful
or common to both Seed and gjs.

%prep
%setup -q

%build
%configure --prefix=%{_prefix} --datadir=%{_datadir} --libdir=%{_datadir}
%make

%install
%makeinstall_std gnome_js_commondocdir=%{_datadir}/doc/%{name}

%check
make check

%files
%doc %{_datadir}/doc/%{name}
%{_datadir}/gnome-js
%{_datadir}/pkgconfig/gnome-js-common.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1998 |21cr|gnome-kra-ora-thumbnailer-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Thumbnailer for Krita and MyPaint images
Name:		gnome-kra-ora-thumbnailer
Version:	1.4
Release:	1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/gnome-kra-ora-thumbnailer
Source0:	https://github.com/GNOME/gnome-kra-ora-thumbnailer/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
Buildrequires:	pkgconfig(libarchive)

%description
Thumbnailer for Krita and MyPaint images.

%files
%doc AUTHORS NEWS README
%license COPYING
%{_bindir}/gnome-kra-thumbnailer
%{_bindir}/gnome-openraster-thumbnailer
%{_datadir}/thumbnailers

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
sed -i "/GNOME_COMPILE_WARNINGS/d" configure.ac
autoreconf -fi
%configure
%make

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 1999 |21cr|gnome-latex-3.41.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f1,2)

Summary:	Integrated LaTeX Environment for the GNOME desktop
Name:		gnome-latex
Version:	3.41.2
Release:	3
License:	GPLv3+
Group:		Publishing
Url:		https://download.gnome.org/sources/gnome-latex
Source0:	https://download.gnome.org/sources/gnome-latex/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	appstream-util
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	vala
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(tepl-6)
Requires:	gsettings-desktop-schemas
Obsoletes:	latexila < 3.38.0

%description
GNOME LaTeX was previously named LaTeXila. The application has been renamed in
December 2017.
GNOME LaTeX is an Integrated LaTeX Environment for GNOME. The main features are:
  * Configurable buttons to compile, convert and view a document in one click
  * LaTeX commands auto-completion
  * Symbol tables (Greek letters, arrows, ...)
  * File browser integrated
  * Template managing
  * Menus with the most commonly used LaTeX commands
  * Easy projects management

%files -f %{name}.lang
%doc AUTHORS COPYING README NEWS HACKING
%{_bindir}/*
%{_datadir}/%{name}/
%{_datadir}/metainfo/org.gnome.%{name}.appdata.xml
%{_datadir}/applications/org.gnome.%{name}.desktop
%{_datadir}/dbus-1/services/org.gnome.%{name}.service
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_datadir}/gtk-doc/html/%{name}/*
%{_iconsdir}/*/*/*/*
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2000 |21cr|gnome-maps-41.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	A map application for GNOME
Name:		gnome-maps
Version:	41.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-maps
Source0:	https://download.gnome.org/sources/gnome-maps/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-maps-40.2_ru.tar.gz
BuildRequires:	appstream-util
BuildRequires:	gjs
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(folks)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(geocode-glib-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(rest-0.7)
Requires:	geoclue2
Requires:	gjs
Requires:	typelib(Champlain)
Requires:	typelib(GeocodeGlib)
Requires:	typelib(Geoclue)
Requires:	typelib(GtkChamplain)
Requires:	typelib(GFBGraph)
Requires:	typelib(Memphis)

%description
%{name} is a map application for GNOME.

%files -f %{name}.lang
%doc NEWS README
%{_appdatadir}/org.gnome.Maps.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.gnome.Maps.service
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/%{name}
%{_iconsdir}/*/*/apps/*
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2001 |21cr|gnome-media-3.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNOME media programs
Name:		gnome-media
Version:	3.4.0
Release:	6
License:	GPLv2+ and GFDL+
Group:		Graphical desktop/GNOME
URL:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
Patch0:		gnome-media-remove-old-code.patch
BuildRequires: desktop-file-utils
BuildRequires: gnome-doc-utils-devel
BuildRequires: intltool >= 0.35
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gnome-keybindings)
BuildRequires: pkgconfig(gstreamer-0.10)
BuildRequires: pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libcanberra-gtk3)
BuildRequires: pkgconfig(libgnome-media-profiles-3.0)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libxml-2.0)

Requires:   gstreamer0.10-plugins-good
Requires:   gstreamer0.10-plugins-base
Recommends:   gstreamer0.10-flac
Recommends:   gstreamer0.10-speex
Requires(post,preun):	GConf2

%description
This package contains a few media utilities for the GNOME desktop,
including a sound recorder and an audio mixer.

%prep
%setup -q 
%apply_patches

%build
%configure \
	--disable-static \
	--disable-scrollkeeper

%make

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'

desktop-file-install --vendor="" \
	--add-category="DesktopSettings" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/gstreamer-properties.desktop

desktop-file-install --vendor="" \
	--add-category="X-MandrivaLinux-CrossDesktop" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/gnome-sound-recorder.desktop

%find_lang %{name}-2.0 --with-gnome --all-name

%files -f  %{name}-2.0.lang
%doc AUTHORS NEWS README
%{_sysconfdir}/gconf/schemas/gnome-sound-recorder.schemas
%{_bindir}/*
%{_datadir}/applications/gnome-sound-recorder.desktop
%{_datadir}/applications/gstreamer-properties.desktop
%{_datadir}/gnome-media
%{_datadir}/gnome-sound-recorder
%{_datadir}/gstreamer-properties
%{_datadir}/icons/hicolor/*/*/*.*
%dir %{_datadir}/sounds/
%dir %{_datadir}/sounds/gnome/
%{_datadir}/sounds/gnome/default/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2002 |21cr|gnome-mud-0.11.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A mudclient for the GNOME platform
Name:		gnome-mud
Version:	0.11.2
Release:	10
License:	GPLv2+
Group:		Games/Adventure
URL:		http://live.gnome.org/GnomeMud
Source0:	http://fr2.rpmfind.net/linux/gnome.org/sources/gnome-mud/0.11/%{name}-%{version}.tar.gz
Buildrequires:	vte-devel
BuildRequires:	pkgconfig(gstreamer-0.10)
BuildRequires:	intltool pkgconfig(gnet-2.0) pkgconfig(libpcre)
BuildRequires:	pkgconfig(gconf-2.0) pkgconfig(gnome-doc-utils)
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:	desktop-file-utils

%description
GNOME-Mud is a mudclient for the GNOME platform. Features include:

  * ANSI
  * Aliases
  * Triggers
  * Variables
  * Profiles
  * Multiple connections
  * Python scripting
  * C modules
  * and much much more... 

%prep
%setup -q

%build
%configure --disable-schemas-install --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

mv %{buildroot}%{_gamesdatadir}/applications %{buildroot}%{_datadir}/
mv %{buildroot}%{_gamesdatadir}/icons %{buildroot}%{_datadir}/

desktop-file-install --vendor='' \
	--dir=%{buildroot}%{_datadir}/applications \
	--add-category='GTK;AdventureGame' \
	%{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name} --with-gnome


%preun
%preun_uninstall_gconf_schemas gnome-mud

%files -f %{name}.lang
%doc AUTHORS COPYING README INSTALL ROADMAP
%config(noreplace) %{_sysconfdir}/gconf/schemas/gnome-mud.schemas
%{_gamesbindir}/gnome-mud
%{_datadir}/applications/gnome-mud.desktop
%{_iconsdir}/*/*/*/*
%{_gamesdatadir}/%{name}
%{_mandir}/man6/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2003 |21cr|gnome-multi-writer-3.35.90-0.git086eac.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 086eacfa98e4dc40bef82acb6d55a4abf504fd45
%define commit_short %(echo %{commit} | head -c6)

Summary:	Used to write an ISO file to multiple USB devices at once
Name:		gnome-multi-writer
Version:	3.35.90
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/gnome-multi-writer
Source0:	https://github.com/GNOME/gnome-multi-writer/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gusb)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(udisks2)

%description
Used to write an ISO file to multiple USB devices at once.
Supported drive sizes are between 1GB and 32GB.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_appdatadir}/org.gnome.MultiWriter.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.MultiWriter.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.MultiWriter.gschema.xml
%{_datadir}/polkit-1/actions/org.gnome.MultiWriter.policy
%{_iconsdir}/hicolor/*x*/apps/org.gnome.MultiWriter.png
%{_libexecdir}/%{name}-probe

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2004 |21cr|gnome-nettool-3.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	Network information tool for GNOME
Name:		gnome-nettool
Version:	3.8.1
Release:	4
License:	GPLv2+ and GFDL
Group:		Graphical desktop/GNOME
Url:		http://projects.gnome.org/gnome-network/
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(gtk+-3.0) >= 2.90.4
BuildRequires:	pkgconfig(gio-2.0) >= 2.25.10
BuildRequires:	pkgconfig(gmodule-export-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(libgtop-2.0)

Requires:	whois
Requires:	traceroute

%description
GNOME Nettool is a frontend to various networking commandline
tools, like ping, netstat, ifconfig, whois, traceroute, finger.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/pixmaps/*.xpm
%{_datadir}/%{name}/pixmaps/*.png
%{_datadir}/%{name}/ui/%{name}.ui
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-nettool.gschema.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-scrollkeeper \
	--disable-schemas-compile \
	--disable-static
%make

%install
%makeinstall_std

desktop-file-install \
	--vendor "" \
	--delete-original \
	--dir %{buildroot}%{_datadir}/applications \
	--remove-category Network \
	--add-category GNOME \
	--add-category System \
	--add-category Utility \
		%{buildroot}%{_datadir}/applications/gnome-nettool.desktop

%find_lang %{name} --with-gnome


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2005 |21cr|gnome-network-displays-0.90.5-0.git589d97.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 589d979f33b4873f9e5a5234e505566b420efdfe
%define commit_short %(echo %commit | head -c 6)

Summary:	Miracast streaming GUI
Name:		gnome-network-displays
Version:	0.90.5
Release:	0.git%{commit_short}.1
License:	GPL-3.0
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/gnome-network-displays
Source0:	https://gitlab.gnome.org/GNOME/gnome-network-displays/-/archive/%{commit}/gnome-network-displays-%{commit}.tar.gz
# https://gitlab.gnome.org/GNOME/gnome-network-displays/-/merge_requests/162
Patch0001:	0001-Add-Russian-localization.patch
Patch0002:	0002-Localize-application-name.patch

BuildRequires: gettext-devel
BuildRequires: meson
BuildRequires: gcc
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnm)
BuildRequires: pkgconfig(libpulse-mainloop-glib)
BuildRequires: pkgconfig(gstreamer-rtsp-server-1.0)
BuildRequires: firewalld-filesystem
# owns /usr/lib/firewalld
Requires: firewalld-filesystem

%description
Miracast streaming GUI.
Choose a wireless display and stream your desktop to it.

%files -f %{name}.lang
%license COPYING
%doc README.md
%{_bindir}/gnome-network-displays
%{_datadir}/applications/org.gnome.NetworkDisplays.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.NetworkDisplays.gschema.xml
%{_datadir}/icons/hicolor/scalable/apps/org.gnome.NetworkDisplays.svg
%{_datadir}/icons/hicolor/symbolic/apps/org.gnome.NetworkDisplays-symbolic.svg
%{_metainfodir}/org.gnome.NetworkDisplays.appdata.xml
%{_prefix}/lib/firewalld/zones/P2P-WiFi-Display.xml

%post
%firewalld_reload

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%meson
%meson_build

%install
%meson_install
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2006 |21cr|gnome-nibbles-3.38.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Nibbles game
Name:		gnome-nibbles
Version:	3.38.2
Release:	10
License:	GPLv2+ and GFDL
Group:		Games/Arcade
Url:		https://download.gnome.org/sources/gnome-nibbles
Source0:	https://download.gnome.org/sources/gnome-nibbles/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-nibbles-3.38.2-drop-not-allowed.patch
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgnome-games-support-1)
BuildRequires:	pkgconfig(librsvg-2.0)

%description
Pilot a worm around a maze trying to collect diamonds and at the same time
avoiding the walls and yourself. With each diamond your worm grows longer and
navigation becomes more and more difficult. Playable by up to four people.

%files -f %{name}.lang
%doc COPYING
%{_appdatadir}/org.gnome.Nibbles.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Nibbles.desktop
%{_datadir}/dbus-1/services/org.gnome.Nibbles.service
%{_datadir}/glib-2.0/schemas/org.gnome.Nibbles.gschema.xml
%{_datadir}/%{name}
%{_iconsdir}/*/*/apps/*
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2007 |21cr|gnome-packagekit-3.16.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	A PackageKit client for the GNOME desktop
Name:		gnome-packagekit
Version:	3.16.0
Release:	6
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		http://www.packagekit.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/gnome-packagekit/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	docbook-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(packagekit-glib2)
BuildRequires:	pkgconfig(unique-1.0)
BuildRequires:	pkgconfig(upower-glib)
Requires:	%{name}-common = %{EVRD}
Conflicts:	%{name}-common < 3.14.0

%description
This package contains PackageKit client programs designed for the GNOME
desktop.

%files
%{_bindir}/gpk-application
%{_bindir}/gpk-log
%{_bindir}/gpk-prefs
%{_bindir}/gpk-update-*
%{_datadir}/appdata/gpk*.xml
%{_datadir}/applications/gpk-application.desktop
%{_datadir}/applications/gpk-prefs.desktop
%{_datadir}/applications/gpk-update-viewer.desktop
%{_datadir}/gnome-packagekit/gpk-application.ui
%{_datadir}/gnome-packagekit/gpk-prefs.ui
%{_datadir}/gnome-packagekit/gpk-update-viewer.ui
%{_datadir}/gnome-packagekit/gpk-log.ui
%{_mandir}/man1/gpk-application*
%{_mandir}/man1/gpk-prefs*
%{_mandir}/man1/gpk-update*
%{_mandir}/man1/gpk-log*
%{_datadir}/applications/gpk-log.desktop

#----------------------------------------------------------------------------

%package common
Summary:	Common files and services for GNOME PackageKit
Group:		System/Configuration/Packaging
Requires:	packagekit
Provides:	packagekit-gui

%description common
Common files and services used by GNOME PackageKit. This packages provides
D-Bus service for packages installation.

%files common -f %{name}.lang
%{_datadir}/applications/gpk-install-*.desktop
%{_datadir}/GConf/gsettings/org.gnome.packagekit.gschema.migrate
%{_datadir}/glib-2.0/schemas/org.gnome.packagekit.gschema.xml
%dir %{_datadir}/gnome-packagekit
%{_datadir}/gnome-packagekit/gpk-client.ui
%{_datadir}/gnome-packagekit/gpk-error.ui
%{_datadir}/gnome-packagekit/gpk-eula.ui
%{_datadir}/gnome-packagekit/gpk-signature.ui
%{_datadir}/gnome-packagekit/icons
%{_iconsdir}/hicolor/*/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--disable-scrollkeeper

%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2008 |21cr|gnome-paint-0.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	Werror_cflags %nil

Name:		gnome-paint
Version:	0.4.0
Release:	4
Summary:	Easy to use paint program
Group:		Graphics
License:	GPLv3+
Url:		https://launchpad.net/gnome-paint
Source0:	http://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz
Patch0:		%{name}.packaging.patch
#debian patches
Patch1:		debian-612470-handle-urls.patch
Patch2:		lp-757607-crash-in-toolbar.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	hicolor-icon-theme

%description
gnome-paint is a simple, easy to use paint program.

%files -f %{name}.lang
%doc COPYING ChangeLog README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/16x16/apps/gp.png

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Remove icon extensions and fix categories in .desktop file
sed -i 's|Icon=gp.png|Icon=gp|g' data/desktop/%{name}.desktop.in.in
sed -i 's|RasterGraphics;|2DGraphics;RasterGraphics;|g' data/desktop/%{name}.desktop.in.in


%build
autoreconf -vfi
%configure
%make LIBS="-lm"


%install 
make install DESTDIR=%{buildroot}

# Remove docs, use rpmbuild instead
rm -rf %{buildroot}/%{_prefix}/doc

# Remove unnecessary includedir files
rm -rf %{buildroot}/%{_includedir}

%find_lang %{name} --all-name


%post
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
update-desktop-database &> /dev/null || :

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
update-desktop-database &> /dev/null || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2009 |21cr|gnome-panel2-2.32.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

%define req_libwnck_version 2.19.5
%define req_libglade_version 2.5.0
%define req_gconf2_version 2.31.6
%define req_gnomeui_version 2.5.4
%define req_gtk_version 2.19.7
%define req_glib_version 2.15.5
%define req_gnomedesktop_version 2.11.1

%define api_version 2
%define api2 3
%define lib_major   0
%define libname %mklibname panel-applet- %{api_version} %{lib_major}
%define libname2 %mklibname panel-applet- %{api2} %{lib_major}
%define devname %mklibname panel-applet- %{api_version} -d

%define in_process_applets 0
%define oname gnome-panel

Summary:	The core programs for the GNOME GUI desktop environment
Name:		gnome-panel2
Version:	2.32.1
Release:	17
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{oname}/%{oname}-%{version}.tar.bz2
Source1:	mandriva-panel.png

# (fc) 2.0.1-2mdk  use xlock instead of xscreensaver to lock root desktop
Patch0:		gnome-panel-2.27.91-rootlock.patch
# (fc) 2.0.1-2mdk  Mandriva customization
Patch1:		gnome-panel-mdvcustomizations.patch
Patch2:		gnome-panel-2.32.1-fix-linking.patch
# (fc) 2.19.6-2mdv use beagle or tracker (if available) as search tool by default (Fedora)
Patch16:	gnome-panel-2.27.91-search.patch
# (fc) 2.28.0-3mdv ensure net_applet role is network
Patch19:	gnome-panel-2.29.92-netapplet.patch
# (fc) allow more bookmarks before switching to submenus
Patch20:	bookmarks-submenu.patch
# (fc) add about-mandriva menu entry if available
Patch21:	gnome-panel-2.28.0-about-mandriva.patch
# (fc) add padding for icons on panel (GNOME bug #343436) (Fedora)
Patch22:	gnome-panel-2.30.0-panel-padding.patch
# (fc) add padding for icons in notification area (GNOME bug #583273)
Patch23:	gnome-panel-2.31.6-icon-padding.patch
Patch24:	gnome-panel-2.32.1-includedir.patch
BuildRequires:	libxslt-proc
BuildRequires:	rarian
BuildRequires:	gettext-devel
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	pkgconfig(gconf-2.0) >= %{req_gconf2_version}
BuildRequires:	pkgconfig(glib-2.0) >= %{req_glib_version}
BuildRequires:	pkgconfig(gnome-desktop-2.0) >= %{req_gnomedesktop_version}
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= %{req_gtk_version}
BuildRequires:	pkgconfig(gweather)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcanberra-gtk)
BuildRequires:	pkgconfig(libglade-2.0) >= %{req_libglade_version}
BuildRequires:	pkgconfig(libgnome-menu)
BuildRequires:	pkgconfig(libgnomeui-2.0) >= %{req_gnomeui_version}
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libwnck-1.0) >= %{req_libwnck_version}
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(xres)
Requires(post,postun):	scrollkeeper
Requires:	gnome-desktop
Requires:	gnome-session
Requires:	polkit-agent
Requires:	GConf2 >= %{req_gconf2_version}
Requires:	glib2 >= %{req_glib_version}
Requires:	gnome-menus2
Requires:	alacarte

# for screen locking and search function in panel
#Requires:	gnome-utils
Requires:	gnome-screensaver
Requires:	desktop-common-data
#(patch0)
Requires:	xlockmore

%description
GNOME (GNU Network Object Model Environment) is a user-friendly
set of applications and desktop tools to be used in conjunction with a
window manager for the X Window System.  GNOME is similar in purpose and
scope to CDE and KDE, but GNOME is based completely on free
software. 

The GNOME panel packages provides the gnome panel, menus and some
basic applets for the panel.

%files -f %{oname}-2.0.lang
%doc AUTHORS COPYING NEWS README
%{_sysconfdir}/gconf/schemas/clock.schemas
%{_sysconfdir}/gconf/schemas/fish.schemas
%{_sysconfdir}/gconf/schemas/panel-compatibility.schemas
%{_sysconfdir}/gconf/schemas/panel-general.schemas
%{_sysconfdir}/gconf/schemas/panel-global.schemas
%{_sysconfdir}/gconf/schemas/panel-object.schemas
%{_sysconfdir}/gconf/schemas/panel-toplevel.schemas
%{_sysconfdir}/gconf/schemas/window-list.schemas
%{_sysconfdir}/gconf/schemas/workspace-switcher.schemas
%{_sysconfdir}/gconf/schemas/notification_area_applet.schemas
%{_sysconfdir}/gconf/schemas/panel-default-setup.entries

%{_bindir}/*
%{_libexecdir}/gnome-panel-add
%if %{in_process_applets}
%dir %{_libexecdir}/gnome-panel
%dir %{_libexecdir}/gnome-panel/*.so
%else
%{_libexecdir}/clock-applet
%{_libexecdir}/fish-applet
%{_libexecdir}/notification-area-applet
%{_libexecdir}/wnck-applet
%{_datadir}/dbus-1/services/org.gnome.panel.applet.ClockAppletFactory.service
%{_datadir}/dbus-1/services/org.gnome.panel.applet.FishAppletFactory.service
%{_datadir}/dbus-1/services/org.gnome.panel.applet.NotificationAreaAppletFactory.service
%{_datadir}/dbus-1/services/org.gnome.panel.applet.WnckletFactory.service
%endif
%{_libdir}/gnome-panel/modules
%{_mandir}/man1/*
%{_datadir}/applications/*.desktop
%dir %{_datadir}/gnome
%dir %{_datadir}/gnome/help
%{_datadir}/gnome-panel
%{_datadir}/gnome-2.0/ui/*
%{_datadir}/idl/*
%{_datadir}/icons/hicolor/*/apps/*

%post
%update_scrollkeeper 
export GCONF_CONFIG_SOURCE=`gconftool-2 --get-default-source`
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --recursive-unset /apps/panel > /dev/null 2> /dev/null
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --recursive-unset /schemas/apps/panel > /dev/null 2> /dev/null

%post_install_gconf_schemas %{schemas}
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load %{_sysconfdir}/gconf/schemas/panel-default-setup.entries > /dev/null
gconftool-2 --direct --config-source=$GCONF_CONFIG_SOURCE --load %{_sysconfdir}/gconf/schemas/panel-default-setup.entries /apps/panel > /dev/null

%update_icon_cache hicolor

%preun
%preun_uninstall_gconf_schemas %{schemas}

%postun
%clean_scrollkeeper
%clean_icon_cache hicolor


#---------------------------------------------------------------------
%package -n	%{libname}
Summary:	%{summary}
Group:		System/Libraries

%description -n	%{libname}
Panel libraries for running GNOME panels.

%files -n %{libname}
%{_libdir}/libpanel-applet-%{api_version}.so.%{lib_major}*

#---------------------------------------------------------------------

%package -n	%{libname2}
Summary:	%{summary}
Group:		System/Libraries
Provides:	libpanel-applet-%{api2} = %{version}-%{release}

%description -n	%{libname2}
Panel libraries for running GNOME panels.

%files -n %{libname2}
%{_libdir}/libpanel-applet-%{api2}.so.%{lib_major}*
%{_libdir}/girepository-1.0/PanelApplet-3.0.typelib

#---------------------------------------------------------------------

%package -n	%{devname}
Summary:	Static libraries, include files for GNOME panel
Group:		Development/GNOME and GTK+
Provides:	libpanel-applet-%{api_version}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}
Requires:	%{libname2} = %{version}-%{release}
Obsoletes:	%{mklibname -d panel-applet- 2 0} < 2.32.1-6

%description -n	%{devname}
Panel libraries and header files for creating GNOME panels.

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/libpanel*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/PanelApplet-3.0.gir

#---------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

#needed by patch2,patch23
autoreconf

%build
%configure --disable-eds --disable-scrollkeeper \
--disable-static \
%if %{in_process_applets}
--with-in-process-applets=all
%endif

make LIBS="-lgmodule-2.0"

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/gnome-panel/pixmaps-
#remove old files
rm -rf %{buildroot}%{_datadir}/omf/gnome-panel

%find_lang %{oname}-2.0 --with-gnome --all-name

#remove unpackaged files
rm -rf %{buildroot}%{_datadir}/gnome-panelrc %{buildroot}%{_localstatedir}/lib/scrollkeeper


%define schemas clock fish panel-compatibility panel-general panel-global panel-object panel-toplevel window-list workspace-switcher notification_area_applet

#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_libexecdir}/gnome-panel-add

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2010 |21cr|gnome-pie-0.7.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Gnome-Pie
Summary:	Circular application launcher for Linux
Name:		gnome-pie
Version:	0.7.3
Release:	2
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://github.com/Simmesimme/Gnome-Pie
Source0:	https://github.com/Schneegans/Gnome-Pie/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	appindicator3-vala
BuildRequires:	cmake
BuildRequires:	pkgconfig(appindicator-0.1)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libbamf3)
BuildRequires:	pkgconfig(libgnome-menu-3.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(xtst)

%description
Gnome-Pie is a circular application launcher for Linux.
It is made of several pies, each consisting of multiple slices.
The user presses a key stroke which opens the desired pie.
By activating one of its slices, applications may be launched,
key presses may be simulated or files can be opened.

%files
%doc AUTHORS README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/scalable/apps/%{name}-symbolic.svg
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_localedir}/zanata.xml
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2011 |21cr|gnome-ppp-0.3.23-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Gnome 2 front-end to wvdial
Name:		gnome-ppp
Version:	0.3.23
Release:	9
License:	GPL
Group:		System/Configuration/Networking
Url:		http://www.gnome-ppp.org/
Source0:	http://www.gnome-ppp.org/download/0.3/%{name}-%{version}.tar.bz2
Source1:	gnome-ppp.png
Source2:	gnome-ppp-16.png
Source3:	gnome-ppp-32.png
BuildRequires:	desktop-file-utils
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
Requires:	wvdial >= 1.54

%description
Gnome 2 front-end to wvDial, a modem/ISDN dial-up software.

%files -f %{name}.lang
%doc ChangeLog COPYING INSTALL
%{_bindir}/gnome-ppp
%{_datadir}/applications/gnome-ppp.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/glade/*
%{_datadir}/pixmaps/apps/%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/*.png
%{_datadir}/%{name}/gnome_ppp*.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fcommon
%configure
%make LIBS="-lX11"

%install
%makeinstall_std
mkdir %{buildroot}/%{_datadir}/pixmaps
cp -r %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/ %{buildroot}/%{_datadir}/pixmaps/
#mv %{buildroot}/%{_datadir}/doc/%{name}-%{version} %{buildroot}/%{_datadir}/doc/%{name}
rm -rf %{buildroot}/%{_datadir}/doc/%{name}

%find_lang %{name} --with-gnome

# menu

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="GNOME" \
	--add-category="Settings;Network" \
	--add-category="X-MandrivaLinux-System-Configuration-Networking" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# icon
mkdir -p %{buildroot}%{_liconsdir}
mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}%{_miconsdir}
install -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE2} %{buildroot}%{_liconsdir}/%{name}.png
install -m 644 %{SOURCE3} %{buildroot}%{_iconsdir}/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2012 |21cr|gnome-screensaver-3.6.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gnome-screensaver
Summary:	GNOME Screensaver
Version:	3.6.1
Release:	19
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-screensaver
Source0:	https://download.gnome.org/sources/gnome-screensaver/3.6/%{name}-%{version}.tar.xz
Patch0:		gnome-screensaver-3.6.1-libsystemd.patch
Patch1:		gnome-screensaver-3.6.1-many-arguments-function.patch
# From Fedora
Patch8:		gnome-screensaver-2.20.0-selinux-permit.patch
Patch101:	0001-Avoid-SEGV-in-gs_fade_reset.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	pam-devel
BuildRequires:  gnome-common
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libgnomekbdui)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xxf86misc)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xtst)
Requires:	xsltproc
Requires:	dbus-x11

%description
gnome-screensaver is a screen saver and locker that aims to have
simple, sane, secure defaults and be well integrated with the desktop.
It is designed to support:

* the ability to lock down configuration settings
* translation into other languages
* user switching

%files -f %{name}.lang
%doc README AUTHORS
%{_sysconfdir}/pam.d/gnome-screensaver
%{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_bindir}/*
%{_libexecdir}/gnome-screensaver-dialog
%{_mandir}/man1/gnome-screensaver*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-more-warnings \
	--with-mit-ext=no \
	--enable-systemd
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2013 |21cr|gnome-shell-extensions-screenpen-launch-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	ScreenPen Launch  - Gnome Extension
Name:		gnome-shell-extensions-screenpen-launch
Group:		Graphical desktop/GNOME
Version:	1.0.1
Release:	7
Epoch:		1
License:	GPLv3+
Url:		https://github.com/belonesox/screenpen-launch-gnome-shell-extension
Source0:	https://github.com/belonesox/screenpen-launch-gnome-shell-extension/archive/v%{version}.tar.gz
Requires:	gnome-shell
Requires:	screenpen

%description
ScreenPen Launch  — Gnome Extension for launching ScreenPen.
Used for on-screen drawing.

%files
%{_datadir}/gnome-shell/extensions/*

#----------------------------------------------------------------------------

%prep
%setup -qn screenpen-launch-gnome-shell-extension-%{version}
%apply_patches

%build

%install
mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/
cp -r .  %{buildroot}%{_datadir}/gnome-shell/extensions/screenpen-launch-gnome-shell-extension@belonesox.github.com 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2014 |21cr|gnome-software-42.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define major 18

%global __provides_exclude_from ^%{_libdir}/%{name}/plugins-%{major}/.*\\.so.*$

Summary:	A software center for GNOME
Name:		gnome-software
Version:	42.4
Release:	1
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		https://download.gnome.org/sources/gnome-software
Source0:	https://download.gnome.org/sources/gnome-software/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	pkgconfig(appstream)
BuildRequires:	pkgconfig(flatpak)
BuildRequires:	pkgconfig(fwupd)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libdnf)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(ostree-1)
BuildRequires:	pkgconfig(packagekit-glib2)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(sysprof-capture-4)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(xmlb)

%description
%{name} is an application that makes it easy to add, remove
and update software in the GNOME desktop.

%files -f %{name}.lang
%doc AUTHORS README.md
%license COPYING
%{_appdatadir}/org.gnome.Software.appdata.xml
%{_appdatadir}/org.gnome.Software.Plugin.Flatpak.metainfo.xml
%{_appdatadir}/org.gnome.Software.Plugin.Fwupd.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}-local-file.desktop
%{_datadir}/applications/org.gnome.Software.desktop
%{_datadir}/dbus-1/services/org.freedesktop.PackageKit.service
%{_datadir}/dbus-1/services/org.gnome.Software.service
%{_datadir}/glib-2.0/schemas/org.gnome.software.gschema.xml
%{_datadir}/gnome-shell/search-providers/org.gnome.Software-search-provider.ini
%{_datadir}/swcatalog/xml/org.gnome.Software.Featured.xml
%{_datadir}/swcatalog/xml/org.gnome.Software.Popular.xml
%dir %{_datadir}/swcatalog
%dir %{_datadir}/swcatalog/xml
%dir %{_libdir}/%{name}/plugins-%{major}
%{_iconsdir}/hicolor/*/apps/org.gnome.Software.svg
%{_iconsdir}/hicolor/scalable/actions/app-remove-symbolic.svg
%{_iconsdir}/hicolor/scalable/status/software-installed-symbolic.svg
%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Software-symbolic.svg
%{_libdir}/%{name}/libgnomesoftware.so.%{major}
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_appstream.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_dummy.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_fedora-langpacks.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_fedora-pkgdb-collections.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_flatpak.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_fwupd.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_generic-updates.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_hardcoded-blocklist.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_icons.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_modalias.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_os-release.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_packagekit.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_provenance-license.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_provenance.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_repos.so
%{_libdir}/%{name}/plugins-%{major}/libgs_plugin_rewrite-resource.so
%{_libexecdir}/%{name}-cmd
%{_libexecdir}/%{name}-restarter
%{_mandir}/man1/%{name}.1*
%{_sysconfdir}/xdg/autostart/org.gnome.Software.desktop

#----------------------------------------------------------------------------

%package devel
Summary:	Headers for building external %{name} plugins
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
These development files are for building %{name} plugins outside
the source tree. Most users do not need this subpackage installed.

%files devel
%{_datadir}/gtk-doc/html/%{name}/
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/%{name}/libgnomesoftware.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
	-Dmalcontent=false	\
	-Dsoup2=true
%meson_build

%install
%meson_install

rm -f %{buildroot}%{_libdir}/%{name}/plugins-%{major}/*dpkg.so

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2015 |21cr|gnome-system-log-3.9.90-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

Name:		gnome-system-log
Version:	3.9.90
Release:	14
Summary:	GNOME System log utility
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-system-log
Source0:	https://download.gnome.org/sources/gnome-system-log/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(glib-2.0) >= 2.31.0
BuildRequires:	pkgconfig(gtk+-3.0)
#BuildRequires:	pkgconfig(libcanberra-gtk3)
Requires:	usermode-consoleonly

%description
Gnome System log utility.

%files -f %{name}.lang
%doc NEWS
%{_bindir}/*
%{_sbindir}/%{name}
%{_sysconfdir}/pam.d/gnome-system-log
%{_sysconfdir}/security/console.apps/gnome-system-log
%{_datadir}/GConf/gsettings/logview.convert
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-log.gschema.xml
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1.*
%{_datadir}/icons/*/*/apps/*

#--------------------------------------------------------------------
%prep
%setup -q

%build
%configure \
	--disable-rpath \
	--disable-schemas-compile
%make

%install
%makeinstall_std

#handle docs with files section
#rm -rf %{buildroot}%{_defaultdocdir}

# make gnome-system-log use consolehelper until it starts using polkit
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
cat <<EOF > %{buildroot}%{_sysconfdir}/pam.d/gnome-system-log
#%%PAM-1.0
auth		include		system-auth
account		include		system-auth
session		include		system-auth
EOF

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat <<EOF > %{buildroot}%{_sysconfdir}/security/console.apps/gnome-system-log
USER=root
PROGRAM=/usr/sbin/gnome-system-log
SESSION=true
FALLBACK=true
EOF

mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/gnome-system-log %{buildroot}%{_sbindir}
ln -s /usr/bin/consolehelper %{buildroot}%{_bindir}/gnome-system-log

# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p %{buildroot}%{_datadir}/appdata
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> -->
<!--
BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=730871
SentUpstream: 2014-09-18
-->
<application>
  <id type="desktop">gnome-system-log.desktop</id>
  <metadata_license>CC0-1.0</metadata_license>
  <summary>View system logs</summary>
  <description>
    <p>
      System Logs is an application for viewing the system logs on your 
      computer.
      It provides a graphical viewer for the logs that one would
      typically view in a terminal, such as the boot.log or the system
      messages.
    </p>
  </description>
  <url type="homepage">https://git.gnome.org/browse/gnome-system-log/</url>
  <screenshots>
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-system-log/a.png</screenshot>
  </screenshots>
</application>
EOF

desktop-file-validate %{buildroot}%{_datadir}/applications/gnome-system-log.desktop

%find_lang %{name} --with-gnome


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2016 |21cr|gnome-themes-2.32.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gtkbinaryver %(if $([ -x %{_bindir}/pkg-config ] && pkg-config --exists gtk+-2.0); then pkg-config --variable=gtk_binary_version gtk+-2.0; else echo 0; fi)
%define clearlooks 0.6.2
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Themes for GNOME
Name:		gnome-themes
Version:	2.32.1
Release:	10
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		http://www.gnome.org
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/gnome-themes/%{url_ver}/%{name}-%{version}.tar.bz2
Source1:	http://prdownloads.sourceforge.net/clearlooks/clearlooks-%{clearlooks}.tar.bz2
# gw remove warnings about unsupported options
Patch0:		clearlooks-0.6.2-clearlooks-gtkrc-options.patch
Patch1:		clearlooks-automake-1.13.patch
BuildArch:	noarch

BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk-engines-2)
BuildRequires:	pkgconfig(icon-naming-utils)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
Requires:	gnome-icon-theme
Requires:	gtk-engines2 >= 2.15.3

%description
This packages contains Themes for GNOME, such as :
- Clearlooks
- High Contrast
- Low Contrast

%prep
%setup -q -a 1
%apply_patches

%build
%configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-all-themes
pushd clearlooks-%{clearlooks}
autoreconf -fi
./configure --prefix=%{_prefix} --libdir=%{_libdir}
popd

%make

%install
pushd clearlooks-%{clearlooks}/themes
%makeinstall_std
popd
%makeinstall_std GTK_BINARY_VERSION=%{gtkbinaryver}
#remove unpackaged files (not needed, since l10n is already in generated files)
rm -rf %{buildroot}%{_datadir}/locale 
# this is in gtk-engines2
rm -rf %{buildroot}%{_datadir}/themes/Clearlooks/gtk-2.0

for dir in %{buildroot}%{_iconsdir}/*; do
 touch $dir/icon-theme.cache
done

%post
%update_icon_cache Clearlooks
%update_icon_cache HighContrastInverse
%update_icon_cache LargePrint
%update_icon_cache Mist
%update_icon_cache Crux
%update_icon_cache HighContrastLargePrint
%update_icon_cache HighContrastLargePrintInverse 
%update_icon_cache HighContrast
%update_icon_cache HighContrast-SVG

%postun
%clean_icon_cache Clearlooks
%clean_icon_cache HighContrastInverse
%clean_icon_cache LargePrint
%clean_icon_cache Mist
%clean_icon_cache Crux
%clean_icon_cache HighContrastLargePrint
%clean_icon_cache HighContrastLargePrintInverse 
%clean_icon_cache HighContrast
%clean_icon_cache HighContrast-SVG

%files
%doc README NEWS AUTHORS 
%{_datadir}/themes/*
%{_iconsdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2017 |21cr|gnome-tiles-1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Desktop Background Images for GNOME
Name: gnome-tiles
Version: 1
Release: 16
License: LGPL
Group: Graphical desktop/GNOME
Source: gnome-tiles-1.tar.bz2
BuildArchitectures: noarch
URL: http://www.gnome.org/

%description
If you use GNOME you can use these images to spruce up your background.
Of course, you can you use it for with another Window Manager.

%prep

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/backgrounds/gnome-tiles
cd $RPM_BUILD_ROOT%{_datadir}/pixmaps/backgrounds 
bzcat %{SOURCE0}|tar xf -

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_datadir}/pixmaps/backgrounds/gnome-tiles

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2018 |21cr|gnome-vfs2-2.24.4-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%define pkgname gnome-vfs
%define api 2
%define major 0
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

%define _disable_ld_no_undefined 1

Summary:	GNOME virtual file-system libraries
Name:		%{pkgname}%{api}
Version:	2.24.4
Release:	19
License:	GPLv2+ and LGPLv2.1+
Group:		Graphical desktop/GNOME
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
Patch0:		gnome-vfs-2.24.4-docbook-dtd45.patch
# (gw) 2.6.0-1mdk set default web browser
Patch5:		gnome-vfs-2.8.2-webclient.patch
# (fc) 2.8.2-1mdk handle about: url (Fedora)
Patch8:		gnome-vfs-2.7.90-schema_about_for_upstream.patch
# (fc) 2.8.3-5mdk support pamconsole mount option (Fedora)
Patch10:	gnome-vfs-2.24.1-console-mount-opt.patch
# (fc) 2.17.91-2mdv replace references to gnomemeeting with ekiga
Patch11:	gnome-vfs-2.17.91-fixh323.patch
# (fc) 2.17.91-3mdv allow OnlyShowIn=KDE .desktop to be used when running under KDE (Mdv bug #26999)
Patch12:	gnome-vfs-2.17.91-onlyshow.patch
# (fc) 2.18.0.1-2mdv fix crash when fstab is being edited (Ubuntu) (GNOME bug #300547)
Patch13:	gnome-vfs-2.20.0-fstab-edit-crash.patch
# (fc) 2.18.0.1-2mdv fix uuid and label mount point duplication (initial idea from Ubuntu bug #57701) (Mdv bug #32792)
Patch14:	gnome-vfs-2.20.0-uuid-label-mount.patch
# (fc) 2.18.0.1-2mdv resolve mount point fstab symlinks (Ubuntu)
Patch15:	gnome-vfs-2.20.0-resolve-fstab-symlinks.patch
# (fc) 2.24.2-3mdv add default media player schema (GNOME bug #435653) (Fedora)
Patch16:	gnome-vfs-2.24.2-default-media-application-schema.patch
# (fc) 2.24.2-3mdv ensure mailto evolution command is a mailer (RH bug #197868) (Fedora)
Patch17:	gnome-vfs-2.15.91-mailto-command.patch
# (fc) 2.24.2-3mdv fix dbus error (Fedora bug #486286) (Fedora)
Patch18:	gnome-vfs-2.24.xx-utf8-mounts.patch
# (fc) CVE-2009-2473 gnome-vfs2 embedded neon: billion laughs DoS attacck (Fedora)
Patch19:	gnome-vfs-2.24.3-CVE-2009-2473.patch
Patch20:	gnome-vfs-2.24.4-openssl11.patch

BuildRequires:	docbook-dtd45-xml
BuildRequires:	gawk
BuildRequires:	GConf2
BuildRequires:	gnome-mime-data
#BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	avahi-common-devel
BuildRequires:	acl-devel
BuildRequires:	bzip2-devel
BuildRequires:	fam-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0) >= 1.1.1
BuildRequires:	pkgconfig(glib-2.0) >= 2.9.3
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	perl-XML-Parser
Requires:	%{libname} = %{EVRD}
Requires:	dbus-x11
Requires:	shared-mime-info
# needed for www-browser
Requires:	desktop-common-data
Requires:	gnome-mime-data >= 2.0.0
Requires(post,preun):	GConf2 >= 1.1.1
Conflicts:	%{_lib}gnome-vfs2_0 < 2.24.4-5

%description
The GNOME Virtual File System provides an abstraction to common file
system operations like reading, writing and copying files, listing
directories and so on.  It is similar in spirit to the Midnight
Commander's VFS (as it uses a similar URI scheme) but it is designed
from the ground up to be extensible and to be usable from any
application.

%files -n %{name} -f %{pkgname}-2.0.lang
%doc AUTHORS NEWS README
%config(noreplace) %{_sysconfdir}/%{pkgname}-*
%config(noreplace) %{_sysconfdir}/gconf/schemas/*
%{_bindir}/*
%{_datadir}/dbus-1/services/*.service
%dir %{_libdir}/%{pkgname}-2.0
%dir %{_libdir}/%{pkgname}-2.0/modules
%{_libdir}/%{pkgname}-2.0/modules/*.so
%{_libexecdir}/gnome-vfs-daemon

%define schemas desktop_default_applications desktop_gnome_url_handlers system_dns_sd system_http_proxy system_smb

%preun
%preun_uninstall_gconf_schemas %{schemas}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNOME virtual file-system shared library
Group:		System/Libraries

%description -n %{libname}
The GNOME Virtual File System provides an abstraction to common file
system operations like reading, writing and copying files, listing
directories and so on.

This package contains the main GNOME VFS libraries, which is required
by the basic GNOME 2 system.

%files -n %{libname}
%{_libdir}/libgnomevfs-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for gnome-vfs
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The GNOME Virtual File System provides an abstraction to common file
system operations like reading, writing and copying files, listing
directories and so on.

This package includes libraries and header files for developing
GNOME VFS applications.

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/gnome-vfs*2.0/*
%{_libdir}/*.so
%{_libdir}/%{pkgname}-*/include
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}
%apply_patches

# this is a hack for glib2.0 >= 2.31.0
sed -i -e 's/-DG_DISABLE_DEPRECATED//g' \
	./daemon/Makefile.* \
	./libgnomevfs/Makefile.*

%build
%configure \
	--enable-gtk-doc=no \
%if %{with selinux}
	--enable-selinux \
%else
	--disable-selinux \
%endif
	--disable-hal \
	--disable-static

%make

%install
%makeinstall_std

# we ship our own files in drakconf and drakwizard
rm -f %{buildroot}%{_sysconfdir}/gnome-vfs-2.0/vfolders/{system,server}-settings.vfolder-info

# don't package these
rm -f %{buildroot}%{_libdir}/%{pkgname}-*/modules/*a
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%find_lang %{pkgname}-2.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2019 |21cr|gnome-web-photo-0.10.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Generate full images and thumbnails from web pages
Name:		gnome-web-photo
Version:	0.10.6
Release:	4
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		http://ftp.gnome.org/pub/gnome/sources/gnome-web-photo/
Source0:	http://ftp.gnome.org/pub/gnome/sources/gnome-web-photo/%{version}/gnome-web-photo-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(webkitgtk-3.0)

%description
GNOME Web Photographer is a tool to generate full-size image files and
thumbnails from HTML files and web pages.

%files -f %{name}.lang
%{_bindir}/gnome-web-photo
%{_bindir}/gnome-web-print
%{_bindir}/gnome-web-thumbnail
%{_datadir}/gnome-web-photo
%{_datadir}/thumbnailers/gnome-web-photo.thumbnailer

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-gtk=3.0

%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2020 |21cr|gnonlin-1.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gstapi	1.0

Summary: 	GStreamer extension library for non-linear editing
Name: 		gnonlin
Version: 	1.4.0
Release:	4
Group: 		System/Libraries
License: 	LGPLv2+
Url:		http://gnonlin.sf.net/
Source0:	http://gstreamer.freedesktop.org/src/gnonlin/gnonlin-%{version}.tar.xz

BuildRequires: pkgconfig(gstreamer-app-%{gstapi})
BuildRequires: pkgconfig(gstreamer-%{gstapi})	

Requires: 	gstreamer%{gstapi}-plugins-base 

%description
Gnonlin is a library built on top of GStreamer (http://gstreamer.net)
which provides support for writing non-linear audio and video editing
applications. It introduces the concept of a timeline.

%prep
%setup -q

%build
%configure \
	--disable-static 

%make

%install
%makeinstall_std


%files
%doc AUTHORS COPYING.LIB README
%{_libdir}/gstreamer-%{gstapi}/libgnl.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2021 |21cr|gnormalize-0.63-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A ripper, an encoder and an audio converter
Name:		gnormalize
Version:	0.63
Release:	8
Group:		Sound
License:	GPLv2+
Url:			http://gnormalize.sourceforge.net
Source0:	https://prdownloads.sourceforge.net/gnormalize/%{name}-%{version}.tar.gz
# The sources provide a lzma-compressed man page: unpack it and use it as our source
Source1:	%{name}.1
BuildArch:	noarch
Requires:	cdparanoia
Requires:	faac
Requires:	faad2
Requires:	gtk2 >= 2.6.0
Requires:	lame
Requires:	mac
Requires:	mppenc
Requires:	normalize
Requires:	perl-Audio-CD
Requires:	perl-CDDB_get
Requires:	perl-MP3-Info
Requires:	vorbis-tools

%description
This is a front end to normalize, a ripper, an encoder and an audio converter.
It uses gtk2-perl. It decodes the MP3/MPC/OGG/APE/FLAC file to WAV, then
normalizes the WAV to a targeted volume level and re-encodes it.
It can also rip, encode, convert audio format between MP3, MPC, OGG, APE and
FLAC, change the encoding and ID3 tag properties of final normalized files.

%files
%doc README
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------


%prep
%setup -q


%build
#Nothing to do


%install
# The provided makefile won't work: go manually

# Create the needed dirs
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}/animations
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}%{_miconsdir}
mkdir -p %{buildroot}%{_liconsdir}
mkdir -p %{buildroot}%{_mandir}/man1

# Install the main script
install -D -m0755 %{name} %{buildroot}%{_bindir}

# Install man page
install -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1

# Install animated gif images
install -m 0644 animations/*.gif %{buildroot}%{_datadir}/%{name}/animations

# Install icons
install -Dm 0644 icons/gnormalize-48.png %{buildroot}%{_liconsdir}/%{name}.png
install -Dm 0644 icons/gnormalize-32.png %{buildroot}%{_miconsdir}/%{name}.png
install -Dm 0644 icons/gnormalize-16.png %{buildroot}%{_iconsdir}/%{name}.png

# Add menu entry
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Gnormalize
Comment=Frontend to normalize, a ripper, encoder and audio converter
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;Audio;AudioVideoEditing;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2022 |21cr|gnote-42.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api %(echo %{version}|cut -d. -f1)
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Note-taking application
Name:		gnote
Version:	42.1
Release:	1
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnote
Source0:	https://download.gnome.org/sources/gnote/%{api}/%{name}-%{version}.tar.xz
Source100:	gnote.rpmlintrc
Patch0:		gnote-3.38.1-include-undefined-null.patch
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(glibmm-2.68)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(gtkspell3-3.0)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(uuid)

%description
Gnote is a desktop note-taking application which is simple and easy to use.
It lets you organize your notes intelligently by allowing you to easily link
ideas together with Wiki style interconnects. It is a port of Tomboy to C++ 
and consumes fewer resources.

%files -f %{name}.lang
%doc README TODO NEWS AUTHORS
%license COPYING
%{_appdatadir}/org.gnome.Gnote.appdata.xml
%{_bindir}/gnote
%{_datadir}/applications/org.gnome.Gnote.desktop
%{_datadir}/dbus-1/services/org.gnome.Gnote.service
%{_datadir}/glib-2.0/schemas/org.gnome.gnote.gschema.xml
%{_datadir}/gnome-shell/search-providers/org.gnome.Gnote.search-provider.ini
%{_datadir}/gnote/
%{_iconsdir}/hicolor/*/apps/org.gnome.Gnote.*
%{_libdir}/gnote/
%{_mandir}/man1/gnote.1*

#---------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.


%files -n %{libname}
%doc README TODO NEWS AUTHORS
%license COPYING
%{_libdir}/libgnote-%{api}.so.%{major}*

#---------------------------------------------------------

%package -n %{devname}
Summary:	Development library for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development library for %{name}.

%files -n %{devname}
%doc README TODO NEWS AUTHORS
%license COPYING
%{_libdir}/*.so

#---------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2023 |21cr|gns3-2.2.34-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical network simulator that allows simulation of complex networks
Name:		gns3
Version:	2.2.34
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://www.gns3.net/
Source0:	https://github.com/GNS3/gns3-gui/archive/v%{version}.tar.gz
Source1:	%{name}.png
Source2:	%{name}.xml
Source3:	%{name}.desktop
Patch0:		gns3-requires.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pip
BuildRequires:	python3-setuptools
BuildRequires:	python3-qt5-devel
Requires:	dynagen
Requires:	gns3-server
Requires:	gns3-server = %{version}
Requires:	python3-configobj
Requires:	python3-paramiko >= 1.15.1
Requires:	python3-qt5
Requires:	python3-raven >= 5.2.0
Requires:	python3-requests >= 2.4.3
Requires:	python3-rsa >= 3.1.4
Requires:	python3-setuptools
Requires:	python3-sip
Requires:	python3-sip-api(%{sip_api_major}) = %{sip_api}
BuildArch:	noarch
%rename gns3-gui

%description
GNS3 is a graphical network simulator that allows simulation of complex
networks.

To allow complete simulations, GNS3 is strongly linked with :

    * Dynamips, the core program that allows Cisco IOS emulation.
    * Dynagen, a text-based front-end for Dynamips.
    * Pemu, a Cisco PIX firewall emulator based on Qemu.

GNS3 is an excellent complementary tool to real labs for Cisco network
engineers, administrators and people wanting to pass certifications such as
CCNA, CCNP, CCIP or CCIE.

It can also be used to experiment features of Cisco IOS or to check
configurations that need to be deployed later on real routers.

%files
%doc AUTHORS CHANGELOG
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/48x48/mimetypes/
%{_datadir}/mime/packages/*
%{_datadir}/pixmaps/%{name}*
%{python3_sitelib}/*
%{_datadir}/icons/hicolor/*/apps/gns3.png
%{_datadir}/icons/hicolor/scalable/apps/gns3.svg
%{_datadir}/icons/hicolor/scalable/mimetypes/*.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-gui-%{version}

%build
%py3_build

%install
%py3_install
chmod +x %{buildroot}/%{python3_sitelib}/%{name}/main.py
find %{buildroot}/%{python3_sitelib}/%{name} -name "*.ui" -exec chmod -x {} \;

mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}/%{_datadir}/mime/packages
mkdir -p %{buildroot}/%{_datadir}/applications
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
install -m 0644 %{SOURCE2} %{buildroot}/%{_datadir}/mime/packages/
install -m 0644 %{SOURCE3} %{buildroot}/%{_datadir}/applications/

rm -rf %{buildroot}/%{python3_sitelib}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2024 |21cr|gns3-server-2.2.34-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global __requires_exclude /gns3/bin/busybox|/tmp/gns3/bin/sh

Summary:	GNS3 is a graphical network simulator
Name:		gns3-server
Version:	2.2.34
Release:	1
License:	GPL
Url:		http://www.gns3.net
Group:		Emulators
Source0:	https://github.com/GNS3/gns3-server/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		gns3-server-requires.patch
BuildRequires:	python3-devel >= 3.3
BuildRequires:	python3-netifaces
BuildRequires:	python3-pip
BuildRequires:	python3-setuptools
Requires:	cpulimit
Requires:	dynamips >= 0.2.11
Requires:	iouyap
Requires:	python3-jinja2 >= 2.7.3
Requires:	python3-aiohttp
Requires:	python3-jsonschema >= 3.2.0
Requires:	python3-netifaces
Requires:	qemu
Requires:	vpcs >= 0.5b1
Requires:	wireshark
Requires:	ubridge
Recommends:	virtualbox

%description
The GNS3 server manages emulators such as Dynamips, VirtualBox or Qemu/KVM.
Clients like the GNS3 GUI controls the server using a JSON-RPC 
API over Websockets.

You will need the new GNS3 GUI (gns3-gui repository) to control the server.

%files
%defattr(-, root, root, 0755)
%doc AUTHORS LICENSE README.rst
%{_bindir}/gns3server
%{_bindir}/gns3vmnet
%{_bindir}/gns3loopback
%{python3_sitelib}/*

#------------------------------------------------------------------------
%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install
chmod +x %{buildroot}/%{python3_sitelib}/gns3server/main.py
rm -rf %{buildroot}/%{python3_sitelib}/tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2025 |21cr|gnubeep-1.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Produce sound trough the speaker
Name: gnubeep
Version: 1.4
Release: 11
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: System/Kernel and hardware
Url: http://www.nettwerked.co.uk/code/gnubeep/index.html
ExclusiveArch: x86_64 %{ix86}

%description
gnubeep is a simple program written in C to generate `beeps`
by programming the system's internal PIT (programmable interrupt
timer) directly via the I/O ports. I have so many times needed to
generate custom tones in shell scripts and programs, and when '\a'
doesn't suffice, this can be a problem which requires overcoming.
For this reason, I decided to write gnubeep.
 
One of the prime reasons I saw fit to release this piece of software
was to serve as an example of how to program the PIT for sound in Linux. 

%prep
%setup -q

%build

gcc $RPM_OPT_FLAGS -o gnubeep gnubeep.c

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot%_bindir
mkdir -p %buildroot%_mandir/man1
install -m 755 gnubeep %buildroot%_bindir/gnubeep

install -m 644 %name.1 %buildroot%_mandir/man1/%name.1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc BUGS INSTALL LICENSE README
%_bindir/gnubeep
%_mandir/man1/%name.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2026 |21cr|gnubg-1.05.000-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	A backgammon game and analyser
Name:		gnubg
Version:	1.05.000
Release:	5
Epoch:		1
License:	GPLv3+
Group:		Games/Boards
Url:		http://www.gnubg.org
Source0:	http://files.gnubg.org/media/sources/gnubg-release-%{version}-sources.tar.gz
Source1:	gnubg.desktop
BuildRequires:	desktop-file-utils
BuildRequires:	freetype-devel
BuildRequires:	gmp-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdkglext-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcanberra-gtk)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(pango)
#BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(sqlite3)
Requires:	fonts-ttf-dejavu
#Requires:	python-mysql

%description
GNU Backgammon is software for playing and analysing backgammon
positions, games and matches. It's based on a neural network. Although it
already plays at a very high level, it's still work in progress. You may
play GNU Backgammon using the command line or a graphical interface.

%files -f %{name}.lang
%doc AUTHORS README COPYING ChangeLog
%doc doc/images doc/gnubg/*.html
%{_bindir}/bearoffdump
%{_bindir}/gnubg
%{_bindir}/makebearoff
%{_bindir}/makehyper
%{_bindir}/makeweights
%{_infodir}/gnubg.info*
%dir %{_datadir}/gnubg
%{_datadir}/gnubg/met
%{_datadir}/gnubg/boards.xml
%{_datadir}/gnubg/gnubg_os0.bd
%{_datadir}/gnubg/gnubg.weights
%{_datadir}/gnubg/pixmaps
%{_datadir}/gnubg/sounds
%{_datadir}/gnubg/textures.txt
%{_datadir}/gnubg/textures
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnubg/fonts/
%{_datadir}/gnubg/gnubg.gtkrc
%{_datadir}/gnubg/gnubg.wd
%{_datadir}/gnubg/scripts/
%{_datadir}/gnubg/flags/
%{_datadir}/gnubg/gnubg.sql
%{_datadir}/gnubg/gnubg_ts0.bd
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
SIMD=no
%ifarch x86_64
  # SSE2 instructions should be safe to use on all x86_64 CPUs 
  SIMD=sse2
%endif
%configure \
	--without-python \
	--enable-simd=$SIMD
%make

%install
%makeinstall
install -Dpm 644 gnubg.weights %{buildroot}%{_datadir}/gnubg/gnubg.weights
cp -rp textures* %{buildroot}%{_datadir}/gnubg/
rm -f %{buildroot}%{_datadir}/gnubg/textures/Makefile{,.in,.am}
install -Dpm 644 doc/gnubg.info %{buildroot}%{_infodir}/gnubg.info
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
%find_lang %{name}

# don't use the bundled fonts
rm -f %{buildroot}%{_datadir}/gnubg/fonts/*.ttf
rm -f %{buildroot}%{_datadir}/gnubg/fonts/COPYRIGHT.TXT.gz
ln -s ../../fonts/TTF/dejavu/DejaVuSans.ttf %{buildroot}%{_datadir}/gnubg/fonts/Vera.ttf
ln -s ../../fonts/TTF/dejavu/DejaVuSans-Bold.ttf %{buildroot}%{_datadir}/gnubg/fonts/VeraBd.ttf 
ln -s ../../fonts/TTF/dejavu/DejaVuSerif-Bold.ttf %{buildroot}%{_datadir}/gnubg/fonts/VeraSeBd.ttf 


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2027 |21cr|gnubiff-2.2.17-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define title GNUbiff

Summary:	Mail notification program
Name:		gnubiff
Version:	2.2.17
Release:	3
License:	GPLv3+
Group:		Networking/Mail
Url:		http://gnubiff.sf.net/
Source0:	http://prdownloads.sourceforge.net/gnubiff/%{name}-%{version}.tar.gz
Patch0:		gnubiff-2.2.15-linkage.patch
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(popt)
Requires:	sox
Obsoletes:	%{name}-applet < 2.2.17

%description
%{name} is a mail notification program that periodically checks for mail
and displays headers and/or content when new mail has arrived. It relies
on the GNOME and GTK libraries but can be compiled and used with or
without GNOME support. Supported protocols are pop3, apop, imap4, mh,
qmail, mailfile and SSL. Furthermore, gnubiff is fully configurable with
a lot of options like polltime, poptime, sounds, mail reader, mailbox
title, etc.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README THANKS
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_mandir}/man1/*
%{_infodir}/*
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
intltoolize --force
%configure \
	--disable-rpath \
	--disable-gnome
%make

%install
%makeinstall_std

# icons
mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
install -m 644 -D       art/gnubiff.png %{buildroot}%{_liconsdir}/%{name}.png
convert -geometry 32x32 art/gnubiff.png %{buildroot}%{_iconsdir}/%{name}.png
convert -geometry 16x16 art/gnubiff.png %{buildroot}%{_miconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2028 |21cr|gnubik-2.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphics puzzle similar to Rubik's cube
Name:		gnubik
Version:	2.4.3
Release:	1
License:	GPLv3+
Group:		Games/Puzzles
Url:		http://www.gnu.org/software/gnubik/
Source0:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Patch0:		guile-2.2.patch
BuildRequires:	gtkglext-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(guile-2.2)

%description
GNUbik is a GNU package.  It is a 3D interactive graphics 
puzzle. It renders an image of a magic cube 
(similar to a rubik cube) and you attempt to solve it.

%files -f %{name}.lang
%{_bindir}/*
%{_datadir}/%{name}
%{_infodir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
autoreconf -fi
%configure --with-widget-set=gtk
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache

# Replace defalt desktop file
rm %{buildroot}%{_datadir}/applications/%{name}.desktop

install -d -m 755 %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/%{name} 
Icon=puzzle_section 
Comment=Puzzle game similar to Rubik's cube 
Comment[ru]=Головоломка, похожая на кубик Рубика 
Categories=Game;LogicGame;
Name=Gnubik
Name[ru]=Gnubik
EOF

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2029 |21cr|gnucap-20210107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define filever 2006-08-30

Summary:	A general purpose circuit simulator
Name:		gnucap
Version:	20210107
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://www.geda.seul.org/tools/gnucap/index.html
Source0:	%{name}-%{filever}.tar.bz2
Source10:	%{name}.rpmlintrc
Patch0:		gnucap-2006-08-30-fix-build.patch
Patch1:		gnucap-2006-08-30-no-termcap.patch
Patch2:		gnucap-0.35-gcc6.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncursesw)

%description
GNUCAP is a general purpose circuit simulator. It performs nonlinear dc and
transient analyses, Fourier analysis, and ac analysis linearized at an
operating point. It is fully interactive and command driven. It can also be
run in batch mode or as a server. The output is produced as it simulates.
Spice compatible models for the MOSFET (level 1,2,3) and diode are included
in this release.

%files
%doc COPYING
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{filever}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_mandir}/man1/
cp doc/gnucap.1 %{buildroot}/%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2030 |21cr|gnu.getopt-1.0.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	section		free

Summary:        Java getopt implementation
Name:		gnu.getopt
Version:	1.0.14
Release:	5
License:        LGPLv2
Group:          Development/Java
Url:            http://www.urbanophile.com/arenn/hacking/download.html
Source0:        ftp://ftp.urbanophile.com/pub/arenn/software/sources/java-getopt-%{version}.tar.gz
BuildRequires:  ant
Buildarch:      noarch
BuildRequires:  java-devel >= 0:1.4.2
BuildRequires:	java-rpmbuild >= 0:1.5
Provides:       gnu-getopt = %{EVRD}

%description
The GNU Java getopt classes support short and long argument parsing in
a manner 100% compatible with the version of GNU getopt in glibc 2.0.6
with a mostly compatible programmer's interface as well. Note that this
is a port, not a new implementation. I am currently unaware of any bugs
in this software, but there certainly could be some lying about. I would
appreciate bug reports as well as hearing about positive experiences.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
# Aaron, where did you put my build script :-) ?
mv gnu/getopt/buildx.xml build.xml

%build
%ant jar javadoc

%install
# jars
mkdir -p %{buildroot}%{_javadir}
install -m 644 build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -s ${jar} ${jar/-%{version}/}; done)
# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a build/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ "$1" = "0" ]; then
    rm -f %{_javadocdir}/%{name}
fi

%files
%doc gnu/getopt/COPYING.LIB gnu/getopt/README
%{_javadir}/*

%files javadoc
%{_javadocdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2031 |21cr|gnuit-4.9.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of GNU Interactive Tools
Name: 		gnuit
Version:	4.9.5
Release:	7
License:	GPLv3+
Group:		File tools
Url:		http://www.gnu.org/software/gnuit/
Source0:	http://ftp.gnu.org/gnu/gnuit/%{name}-%{version}.tar.gz
Patch1:		0001-Fix-string-format-errors.patch
Patch2:		0002-Fix-linking.patch
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	tetex
BuildRequires:	texinfo
BuildRequires:	texi2html
Conflicts:	git

%description
gnuit (GNU Interactive Tools) provides an extensible file
system browser, an ASCII/hexadecimal file viewer, a process viewer/killer
and other related utilities and shell scripts.  gnuit can be used to increase
the speed and efficiency of copying and moving files and directories,
invoking editors, compressing and uncompressing files, creating and expanding
archives, compiling programs, sending mail and more. gnuit uses standard
ANSI color sequences, if they are available.

You should install the gnuit package if you are interested in using its file
management capabilities.

%files
%doc ChangeLog LSM NEWS PLATFORMS PROBLEMS README INSTALL doc/gnuit.html
%{_bindir}/*
%{_bindir}/.gitaction
%{_mandir}/man1/*
%{_infodir}/*
%{_datadir}/gnuit

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

# Force rebuild of info file
pushd doc
makeinfo gnuit.texinfo
popd

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2032 |21cr|gnuitar-0.3.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gnuitar
Summary:	Real-time guitar effects
Version:	0.3.2
Release:	13
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}48.png
Source2:	%{name}32.png
Source3:	%{name}16.png
URL:		http://sourceforge.net/projects/gnuitar/files/
License:	GPLv2+
Group:		Sound
BuildRequires:	gtk2-devel

%description
This is a program for real-time sound effect processing. Probably could be
used not only for guitar. It has GTK interface and uses OSS sound driver.

Includes effects:
	o wah-wah
	o sustain
	o two flavours of distortion
	o reverberator, echo, delay
	o tremolo
	o vibrato
	o chorus/flanger
	o phasor
	o noise gate

%prep
%setup -q

%build
%configure --with-gtk2
%make
										
%install
rm -rf %{buildroot}
%makeinstall

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=%{_bindir}/pasuspender %{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=GTK;AudioVideo;Audio;AudioVideoEditing;
EOF

#icons
mkdir -p %{buildroot}/%_liconsdir
cp %SOURCE1  %{buildroot}/%_liconsdir/%name.png
mkdir -p %{buildroot}/%_iconsdir
cp %SOURCE2  %{buildroot}/%_iconsdir/%name.png
mkdir -p %{buildroot}/%_miconsdir
cp %SOURCE3  %{buildroot}/%_miconsdir/%name.png

# house cleaning
rm -rf %{buildroot}%{_datadir}/doc
rm -rf %{buildroot}%{_datadir}/%name/win32

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%update_menus
%endif
		
%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-,root,root)
%doc README AUTHORS ChangeLog COPYING docs/*.html FAQ NEWS TODO
%attr(4755,root,root) %{_bindir}/%name
%{_datadir}/applications/mandriva-%{name}.desktop
%defattr(0644,root,root,755)
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2033 |21cr|gnump3d-3.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^perl\\(gnump3d::.*

Name:		        gnump3d
Version:	        3.0
Release:	        14
License:	        GPL
Group:		        System/Servers
Summary:	        Streaming server for MP3's
URL:		        http://www.gnu.org/software/gnump3d/
Source0:	        http://savannah.gnu.org/download/gnump3d/%{name}-%{version}.tar.bz2
Source1:	        gnump3d.service
Patch0:             gnump3d-3.0-use-constant-libdir.patch
Requires(post):     rpm-helper
Requires(preun):    rpm-helper
Requires(pre):      rpm-helper
Requires(preun):    rpm-helper
BuildArch:	        noarch

%description
GNUMP3d is a streaming server for MP3's, OGG vorbis, and other
streamable audio files, it is designed to be: 
 
* Small, stable, self-contained, and secure.
* Simple to install, configure, and use.
* Portable across different varieties of Unix.

%prep
%setup -q
%patch0 -p 1 

chmod 644 lib/gnump3d/mp4info.pm

%install

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 etc/gnump3d.conf %{buildroot}%{_sysconfdir}/%{name}
install -m 644 etc/*.types %{buildroot}%{_sysconfdir}/%{name}

install -d %{buildroot}%{_bindir}
install -m 755 bin/gnump3d2 %{buildroot}%{_bindir}/gnump3d
install -m 755 bin/gnump3d-top %{buildroot}%{_bindir}
install -m 755 bin/gnump3d-index %{buildroot}%{_bindir}

install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 man/gnump3d-top.1 %{buildroot}%{_mandir}/man1
install -m 644 man/gnump3d-index.1 %{buildroot}%{_mandir}/man1
install -m 644 man/gnump3d.1 %{buildroot}%{_mandir}/man1
install -m 644 man/gnump3d.conf.1 %{buildroot}%{_mandir}/man1

install -d -m 755 %{buildroot}%{_datadir}/%{name}/themes
cp -R templates/* %{buildroot}%{_datadir}/%{name}/themes

install -d -m 755 %{buildroot}%{_datadir}/%{name}/lib
cp -R lib/* %{buildroot}%{_datadir}/%{name}/lib

install -d -m 755 %{buildroot}%{_unitdir}
install -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
/var/log/gnump3d/access.log {
    missingok
    notifempty
    nocompress
    postrotate
    /bin/kill -HUP `cat /var/run/gnump3d.pid 2> /dev/null` 2> /dev/null || true
    endscript
}
EOF

install -d -m 755 %{buildroot}/var/log/gnump3d
install -d -m 755 %{buildroot}/var/cache/gnump3d
install -d -m 755 %{buildroot}/var/cache/gnump3d/serving

# fix locations...
perl -pi \
	-e 's|^theme_directory = .*|theme_directory = %{_datadir}/%{name}/themes|;' \
	-e 's|^plugin_directory = .*|plugin_directory = %{_datadir}/%{name}/lib/gnump3d/plugins|;' \
	-e 's|nobody|gnump3d|;' \
	%{buildroot}%{_sysconfdir}/%{name}/gnump3d.conf

%pre
%_pre_useradd gnump3d /var/cache/gnump3d /bin/false

%post
%systemd_post %{name}.service

if [ $1 = 1 ]; then
  # create various files
  %create_ghostfile /var/cache/gnump3d/song.tags gnump3d gnump3d 640
  %create_ghostfile /var/log/gnump3d/access.log gnump3d gnump3d 640
  %create_ghostfile /var/log/gnump3d/error.log gnump3d gnump3d 640
fi

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel gnump3d
%systemd_postun_with_restart %{name}.service

%clean

%files
%doc AUTHORS DOWNSAMPLING README SUPPORT COPYING INSTALL TODO ChangeLog
%dir %{_sysconfdir}/%{name}
%attr(0755,root,root) %{_unitdir}/gnump3d*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/gnump3d
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/gnump3d
%dir %attr(-,gnump3d,gnump3d) /var/log/gnump3d
%dir %attr(-,gnump3d,gnump3d) /var/cache/gnump3d
%dir %attr(-,gnump3d,gnump3d) /var/cache/gnump3d/serving

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2034 |21cr|gnunet-0.17.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gnunetuser gnunetd
%define gnunethome /var/lib/gnunet

%define major 0
%define arm_major 2
%define ats_major 4
%define datastore_major 1
%define fragmentation_major 2
%define fs_major 2
%define regex_major 3
%define regexblock_major 1
%define testing_major 1
%define transport_major 2
%define util_major 15
%define cadet_major 7
%define dht_major 4
%define identity_major 1
%define natnew_major 2
%define pq_major 2
%define statistics_major 2
%define nss_gns_major 2
%define nss_gns4_major 2
%define nss_gns6_major 2
%define libname %mklibname %{name} %{major}
%define libarm %mklibname %{name}arm %{arm_major}
%define libats %mklibname %{name}ats %{ats_major}
%define libdatastore %mklibname %{name}datastore %{datastore_major}
%define libfragmentation %mklibname %{name}fragmentation %{fragmentation_major}
%define libfs %mklibname %{name}fs %{fs_major}
%define libregex %mklibname %{name}regex %{regex_major}
%define libregexblock %mklibname %{name}regexblock %{regexblock_major}
%define libtesting %mklibname %{name}testing %{testing_major}
%define libtransport %mklibname %{name}transport %{transport_major}
%define libutil %mklibname %{name}util %{util_major}
%define libcadet %mklibname %{name}cadet %{cadet_major}
%define libdht %mklibname %{name}dht %{dht_major}
%define libidentity %mklibname %{name}identity %{identity_major}
%define libnatnew %mklibname %{name}natnew %{natnew_major}
%define libpq %mklibname %{name}pq %{pq_major}
%define libstatistics %mklibname %{name}statistics %{statistics_major}
%define libnss_gns %mklibname nss_gns_ %{nss_gns_major}
%define libnss_gns4 %mklibname nss_gns4_ %{nss_gns4_major}
%define libnss_gns6 %mklibname nss_gns6_ %{nss_gns6_major}
%define devname %mklibname -d %{name}

Summary:	Secure and anonymous peer-to-peer file sharingil
Name:		gnunet
Version:	0.17.5
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://gnunet.org/
Source0:	http://ftpmirror.gnu.org/gnunet/gnunet-%{version}.tar.gz
Source10:	gnunet.sysusers.conf
BuildRequires:	gettext-devel
BuildRequires:	gmp-devel
BuildRequires:	iptables-legacy
BuildRequires:	iproute2
BuildRequires:	libltdl-devel
BuildRequires:	mandoc
BuildRequires:	miniupnpc
BuildRequires:	mysql-devel
BuildRequires:	python3egg(sphinx)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libextractor)
BuildRequires:	pkgconfig(libgcrypt) >= 1.6.0
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libmicrohttpd)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	postgresql-devel
BuildRequires:	procps-ng
BuildRequires:	zbar-devel
Requires(pre):	/bin/systemd-sysusers
Recommends:	mysql-client

%description
GNUnet is a framework for secure peer-to-peer networking that does not
use any centralized or otherwise trusted services. A first service
implemented on top of the networking layer allows anonymous censorship-
resistant file-sharing. GNUnet uses a simple, excess-based economic
model to allocate resources. Peers in GNUnet monitor each others behavior
with respect to resource usage; peers that contribute to the network
are rewarded with better service.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%attr(0700, gnunet, gnunet) %dir /var/lib/gnunet
%config %{_sysconfdir}/gnunet.d
%{_bindir}/*
%{_libdir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/gnunet-uri.desktop
%{_mandir}/man1/%{name}-*
%{_mandir}/man5/%{name}.conf.5*
%{_mandir}/man1/gnunet.1*
%{_sysusersdir}/gnunet.conf
%{_tmpfilesdir}/gnunet.conf
%{_unitdir}/gnunet.service
%{_userunitdir}/gnunet.service

%pre
%sysusers_create_package gnunet %{SOURCE10}

%post
%systemd_post %{name}.service
%tmpfiles_create gnunet.conf

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for GNUnet
Group:		System/Libraries

%description -n %{libname}
Libraries for GNUnet.

%files -n %{libname}
%{_libdir}/lib%{name}*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libarm}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libarm}
Library for GNUnet.

%files -n %{libarm}
%{_libdir}/lib%{name}arm.so.%{arm_major}*

#----------------------------------------------------------------------------

%package -n %{libats}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libats}
Library for GNUnet.

%files -n %{libats}
%{_libdir}/lib%{name}ats.so.%{ats_major}*

#----------------------------------------------------------------------------

%package -n %{libdatastore}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libdatastore}
Library for GNUnet.

%files -n %{libdatastore}
%{_libdir}/lib%{name}datastore.so.%{datastore_major}*

#----------------------------------------------------------------------------

%package -n %{libfragmentation}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libfragmentation}
Library for GNUnet.

%files -n %{libfragmentation}
%{_libdir}/lib%{name}fragmentation.so.%{fragmentation_major}*

#----------------------------------------------------------------------------

%package -n %{libfs}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libfs}
Library for GNUnet.

%files -n %{libfs}
%{_libdir}/lib%{name}fs.so.%{fs_major}*

#----------------------------------------------------------------------------

%package -n %{libregex}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libregex}
Library for GNUnet.

%files -n %{libregex}
%{_libdir}/lib%{name}regex.so.%{regex_major}*

#----------------------------------------------------------------------------

%package -n %{libregexblock}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libregexblock}
Library for GNUnet.

%files -n %{libregexblock}
%{_libdir}/lib%{name}regexblock.so.%{regexblock_major}*

#----------------------------------------------------------------------------

%package -n %{libtesting}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libtesting}
Library for GNUnet.

%files -n %{libtesting}
%{_libdir}/lib%{name}testing.so.%{testing_major}*

#----------------------------------------------------------------------------

%package -n %{libtransport}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libtransport}
Library for GNUnet.

%files -n %{libtransport}
%{_libdir}/lib%{name}transport.so.%{transport_major}*

#----------------------------------------------------------------------------

%package -n %{libutil}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libutil}
Library for GNUnet.

%files -n %{libutil}
%{_libdir}/lib%{name}util.so.%{util_major}*

#----------------------------------------------------------------------------

%package -n %{libcadet}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libcadet}
Library for GNUnet.

%files -n %{libcadet}
%{_libdir}/lib%{name}cadet.so.%{cadet_major}*

#----------------------------------------------------------------------------
%package -n %{libdht}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libdht}
Library for GNUnet.

%files -n %{libdht}
%{_libdir}/lib%{name}dht.so.%{dht_major}*

#----------------------------------------------------------------------------
%package -n %{libidentity}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libidentity}
Library for GNUnet.

%files -n %{libidentity}
%{_libdir}/lib%{name}identity.so.%{identity_major}*

#----------------------------------------------------------------------------

%package -n %{libnatnew}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libnatnew}
Library for GNUnet.

%files -n %{libnatnew}
%{_libdir}/lib%{name}natnew.so.%{natnew_major}*

#----------------------------------------------------------------------------
%package -n %{libpq}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libpq}
Library for GNUnet.

%files -n %{libpq}
%{_libdir}/lib%{name}pq.so.%{pq_major}*

#----------------------------------------------------------------------------
%package -n %{libstatistics}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libstatistics}
Library for GNUnet.

%files -n %{libstatistics}
%{_libdir}/lib%{name}statistics.so.%{statistics_major}*

#----------------------------------------------------------------------------
%package -n %{libnss_gns}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libnss_gns}
Library for GNUnet.

%files -n %{libnss_gns}
%{_libdir}/libnss_gns.so.%{nss_gns_major}*

#----------------------------------------------------------------------------
%package -n %{libnss_gns4}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libnss_gns4}
Library for GNUnet.

%files -n %{libnss_gns4}
%{_libdir}/libnss_gns4.so.%{nss_gns4_major}*

#----------------------------------------------------------------------------
%package -n %{libnss_gns6}
Summary:	Library for GNUnet
Group:		System/Libraries

%description -n %{libnss_gns6}
Library for GNUnet.

%files -n %{libnss_gns6}
%{_libdir}/libnss_gns6.so.%{nss_gns6_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libarm} = %{EVRD}
Requires:	%{libats} = %{EVRD}
Requires:	%{libdatastore} = %{EVRD}
Requires:	%{libfragmentation} = %{EVRD}
Requires:	%{libfs} = %{EVRD}
Requires:	%{libregex} = %{EVRD}
Requires:	%{libregexblock} = %{EVRD}
Requires:	%{libtesting} = %{EVRD}
Requires:	%{libtransport} = %{EVRD}
Requires:	%{libutil} = %{EVRD}
Requires:	%{libcadet} = %{EVRD}
Requires:	%{libdht} = %{EVRD}
Requires:	%{libidentity} = %{EVRD}
Requires:	%{libnatnew} = %{EVRD}
Requires:	%{libpq} = %{EVRD}
Requires:	%{libstatistics} = %{EVRD}
Requires:	%{libnss_gns} = %{EVRD}
Requires:	%{libnss_gns4} = %{EVRD}
Requires:	%{libnss_gns6} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{libname}.

%files -n %{devname}
%doc %{_docdir}/gnunet
%{_libdir}/lib%{name}*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_datadir}/aclocal/gnunet.m4

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

#cleanup
rm %{buildroot}%{_libdir}/*.la

mkdir -p %{buildroot}%{gnunethome}
mkdir -p %{buildroot}%{_sysconfdir}
ln -s %{_datadir}/%{name}/config.d %{buildroot}%{_sysconfdir}/gnunet.d

#install sysuser config
install -d %{buildroot}/%{_sysusersdir}/
install -m0644 %{SOURCE10} %{buildroot}/%{_sysusersdir}/gnunet.conf

#install tmpfiles config
install -d %{buildroot}/%{_tmpfilesdir}/
install -m0644 contrib/services/systemd/tmpfiles-gnunet.conf %{buildroot}/%{_tmpfilesdir}/gnunet.conf

#install systemd service
install -d %{buildroot}%{_userunitdir}/
install -d %{buildroot}%{_unitdir}/
install -m0644 contrib/services/systemd/gnunet.service %{buildroot}%{_unitdir}/gnunet.service
install -m0644 contrib/services/systemd/gnunet-user.service %{buildroot}%{_userunitdir}/gnunet.service

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2035 |21cr|gnunet-gtk-0.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GNUnet GTK user interface
Name:		gnunet-gtk
Version:	0.16.0
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://gnunet.org/
Source0:	http://ftpmirror.gnu.org/gnunet/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(gnunetcore) >= %{version}
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libqrencode)
BuildRequires:	pkgconfig(unique-3.0)
Requires:	gnunet

%description
This is the GNUnet GTK user interface. GNUnet is a framework for secure
peer-to-peer networking that does not use any centralized or otherwise
trusted services.

%files -f %{name}.lang
%doc README AUTHORS ABOUT-NLS ChangeLog
%{_bindir}/gnunet-*
%{_mandir}/man1/gnunet-*.1.*
%dir %{_datadir}/gnunet
%{_datadir}/gnunet/*
%{_datadir}/gnunet-gtk
%{_datadir}/applications/gnunet-*.desktop
%{_libdir}/gnunet/libgnunet_plugin_gtk_*.so
%{_iconsdir}/hicolor/*/apps/gnunet-*.*
%{_iconsdir}/hicolor/*/status/gnunet-*.*

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNUnet GTK library
Group:		System/Libraries

%description -n %{libname}
This is the GNUnet GTK user interface. GNUnet is a framework for secure
peer-to-peer networking that does not use any centralized or otherwise
trusted services.

This package contains lib%{name} shared library.

%files -n %{libname}
%{_libdir}/libgnunetgtk.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	GNUnet GTK development files
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 0.10.0
Conflicts:	%{name}-devel < 0.10.0

%description -n %{devname}
This is the GNUnet GTK user interface. GNUnet is a framework for secure
peer-to-peer networking that does not use any centralized or otherwise
trusted services.

This package contains files required for development only.

%files -n %{devname}
%doc README AUTHORS ABOUT-NLS ChangeLog
%{_includedir}/%{name}/*.h
%{_libdir}/libgnunetgtk.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2036 |21cr|gnupod-0.99.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gnupod		
Summary:	Command-line tools for the iPod

Version:	0.99.8
Release:	7
Source:		ftp://ftp.gnu.org/gnu/gnupod/%{name}-%{version}.tgz
URL:		http://www.gnu.org/software/gnupod/
License:	GPLv3+
Group:		Communications
BuildRequires:	perl-MP3-Info perl-Unicode-String
BuildRequires:	perl-XML-Parser
BuildRequires:	perl-libwww-perl
BuildRequires:	perl-Digest-SHA1
BuildRequires:	perl-TimeDate
Requires:	perl-MP3-Info perl-Unicode-String
Requires:	perl-XML-Parser
BuildArch:	noarch
Provides:	gnupod-tools
%description
gnuPod is a collection of tools which allow you to use your iPod under Linux.
HFS+ and FAT32 formatted iPods are supported.

%prep
%setup -q

%build
%{__perl} -pi -e 's/test \$PERL/test "\$PERL"/' configure
export PERL="%{__perl} -I%{buildroot}%{perl_vendorlib}"
%configure

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{perl_vendorlib}
mkdir -p %{buildroot}/%{_infodir}
%makeinstall
cp doc/%{name}.info %{buildroot}/%{_infodir}

%clean



%files
%doc CHANGES doc/*
%{_bindir}/*
%{_mandir}/man1/*
%{perl_vendorlib}/*
%{_infodir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2037 |21cr|gnuradio-3.10.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Non-versioned provides
%global __provides_exclude cmake(.*)
%global __requires_exclude cmake()

%define major		3

%define libanalog	%mklibname %{name}-analog %{major}
%define devanalog	%mklibname %{name}-analog -d
%define libaudio	%mklibname %{name}-audio %{major}
%define devaudio	%mklibname %{name}-audio -d
%define libblocks	%mklibname %{name}-blocks %{major}
%define devblocks	%mklibname %{name}-blocks -d
%define libchannels	%mklibname %{name}-channels %{major}
%define devchannels	%mklibname %{name}-channels -d
%define libdigital	%mklibname %{name}-digital %{major}
%define devdigital	%mklibname %{name}-digital -d
%define libdtv		%mklibname %{name}-dtv %{major}
%define devdtv		%mklibname %{name}-dtv -d
%define libfec		%mklibname %{name}-fec %{major}
%define devfec		%mklibname %{name}-fec -d
%define libfft		%mklibname %{name}-fft %{major}
%define devfft		%mklibname %{name}-fft -d
%define libfilter	%mklibname %{name}-filter %{major}
%define devfilter	%mklibname %{name}-filter -d
%define libqtgui	%mklibname %{name}-qtgui %{major}
%define devqtgui	%mklibname %{name}-qtgui -d
%define libpmt		%mklibname %{name}-pmt %{major}
%define devpmt		%mklibname %{name}-pmt -d
%define libruntime	%mklibname %{name}-runtime %{major}
%define devruntime	%mklibname %{name}-runtime -d
%define libtrellis	%mklibname %{name}-trellis %{major}
%define devtrellis	%mklibname %{name}-trellis -d
%define libuhd		%mklibname %{name}-uhd %{major}
%define devuhd		%mklibname %{name}-uhd -d
%define libvideo_sdl	%mklibname %{name}-video-sdl %{major}
%define devvideo_sdl	%mklibname %{name}-video-sdl -d
%define libvocoder	%mklibname %{name}-vocoder %{major}
%define devvocoder	%mklibname %{name}-vocoder -d
%define libwavelet	%mklibname %{name}-wavelet %{major}
%define devwavelet	%mklibname %{name}-wavelet -d
%define libiio		%mklibname %{name}-iio %{major}
%define deviio		%mklibname %{name}-iio -d
%define libnetwork	%mklibname %{name}-network %{major}
%define devnetwork	%mklibname %{name}-network -d
%define libpdu		%mklibname %{name}-pdu %{major}
%define devpdu		%mklibname %{name}-pdu -d
%define libsoapy	%mklibname %{name}-soapy %{major}
%define devsoapy	%mklibname %{name}-soapy -d
%define libzeromq	%mklibname %{name}-zeromq %{major}
%define devzeromq	%mklibname %{name}-zeromq -d

Summary:	Software defined radio framework
Name:		gnuradio
Version:	3.10.9.2
Release:	2
License:	GPLv3+
Group:		Communications
Url:		https://www.gnuradio.org
Source0:	https://github.com/gnuradio/gnuradio/archive/v%{version}/%{name}-%{version}.tar.gz
# Create tarball from git with:
# $ ./make-tarball gnuradio http://gnuradio.org/git/gnuradio.git
# See note in make-tarball script
Source1:	make-tarball
Source10:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ghostscript
BuildRequires:	graphviz
BuildRequires:	libtool
BuildRequires:	xdg-utils
BuildRequires:	xmlto
BuildRequires:	boost-devel
BuildRequires:	gmp-devel
BuildRequires:	gmpxx-devel
%ifnarch %{ix86} %{e2k}
BuildRequires:	thrift-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(libiio)
BuildRequires:	pkgconfig(libzmq)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(Qt5Qwt6)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SoapySDR)
BuildRequires:	pkgconfig(spdlog)
BuildRequires:	pkgconfig(volk)
BuildRequires:	pkgconfig(uhd)
BuildRequires:	python3-numpy
BuildRequires:	python3-click
BuildRequires:	python3-click-plugins
BuildRequires:	python3-gobject3-devel
BuildRequires:	python3-jsonschema
BuildRequires:	python3-mako
BuildRequires:	python3-pybind11
BuildRequires:	python3-pygccxml
BuildRequires:	python3-pyqtgraph
BuildRequires:	python3-PyYAML
BuildRequires:	python3-scipy
BuildRequires:	python3egg(pyqt5)
#for build docs
BuildRequires:	texlive-metafont.bin
BuildRequires:	texlive-latex

Requires(pre):	shadow-utils

Requires:	%{name}-companion = %{EVRD}
Requires:	%{name}-configs = %{EVRD}
Requires:	%{name}-doc = %{EVRD}
Requires:	%{name}-examples = %{EVRD}
Requires:	%{name}-utils = %{EVRD}
Requires:	%{libanalog} = %{EVRD}
Requires:	%{libaudio} = %{EVRD}
Requires:	%{libblocks} = %{EVRD}
Requires:	%{libchannels} = %{EVRD}
Requires:	%{libdigital} = %{EVRD}
Requires:	%{libdtv} = %{EVRD}
Requires:	%{libfec} = %{EVRD}
Requires:	%{libfft} = %{EVRD}
Requires:	%{libfilter} = %{EVRD}
Requires:	%{libpmt} = %{EVRD}
Requires:	%{libqtgui} = %{EVRD}
Requires:	%{libruntime} = %{EVRD}
Requires:	%{libtrellis} = %{EVRD}
Requires:	%{libuhd} = %{EVRD}
Requires:	%{libvideo_sdl} = %{EVRD}
Requires:	%{libvocoder} = %{EVRD}
Requires:	%{libwavelet} = %{EVRD}
Requires:	%{libiio} = %{EVRD}
Requires:	%{libnetwork} = %{EVRD}
Requires:	%{libpdu} = %{EVRD}
Requires:	%{libsoapy} = %{EVRD}
Requires:	%{libzeromq} = %{EVRD}

Requires:	python3-%{name}-analog = %{EVRD}
Requires:	python3-%{name}-audio = %{EVRD}
Requires:	python3-%{name}-blocks = %{EVRD}
Requires:	python3-%{name}-channels = %{EVRD}
Requires:	python3-%{name}-digital = %{EVRD}
Requires:	python3-%{name}-dtv = %{EVRD}
Requires:	python3-%{name}-fec = %{EVRD}
Requires:	python3-%{name}-fft = %{EVRD}
Requires:	python3-%{name}-filter = %{EVRD}
Requires:	python3-%{name}-iio = %{EVRD}
Requires:	python3-%{name}-modtool = %{EVRD}
Requires:	python3-%{name}-network = %{EVRD}
Requires:	python3-%{name}-pdu = %{EVRD}
Requires:	python3-%{name}-pmt = %{EVRD}
Requires:	python3-%{name}-qtgui = %{EVRD}
Requires:	python3-%{name}-runtime = %{EVRD}
Requires:	python3-%{name}-soapy = %{EVRD}
Requires:	python3-%{name}-trellis = %{EVRD}
Requires:	python3-%{name}-uhd = %{EVRD}
Requires:	python3-%{name}-video-sdl = %{EVRD}
Requires:	python3-%{name}-vocoder = %{EVRD}
Requires:	python3-%{name}-wavelet = %{EVRD}
Requires:	python3-%{name}-zeromq = %{EVRD}
# Requires volk which fails to build for e2k
ExcludeArch:	%{e2k}

%description
GNU Radio is a collection of software that when combined with minimal
hardware, allows the construction of radios where the actual wave forms
transmitted and received are defined by software. What this means is
that it turns the digital modulation schemes used in today's high
performance wireless devices into software problems.
This is a virtual package that installs the entire GNU Radio software set.

%files

#----------------------------------------------------------------------------

%package companion
Summary:	The GNU Radio Companion
Group:		Communications
Requires:	python3-%{name}-pmt = %{EVRD}
Requires:	python3-%{name}-runtime = %{EVRD}
Requires:	python3-mako
Requires:	python3-cairo
Recommends:	%{name}-examples = %{EVRD}
Suggests:	%{name}-utils = %{EVRD}

%description companion
GRC is a graphical flowgraph editor for the GNU Software Radio.

%files companion
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/grc.conf
%{_bindir}/%{name}-companion
%{_datadir}/applications/%{name}-grc.desktop
%{_datadir}/metainfo/org.gnuradio.grc.metainfo.xml
%{_datadir}/mime/packages/gnuradio-grc.xml
%{_iconsdir}/hicolor/*/apps/%{name}-grc.png
%{_datadir}/%{name}/grc
%{_mandir}/man1/gnuradio-companion.1*
%{python3_sitearch}/%{name}/grc

#----------------------------------------------------------------------------

%package configs
Summary:	GNU Radio configs
Group:		Communications

%description configs
This package provides GNU Radio configs.

%files configs
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/gr-audio.conf
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/gr-audio-*.conf
#config(noreplace) %%{_sysconfdir}/%{name}/conf.d/gr_log_default.conf
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/gr-qtgui.conf
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/modtool.conf
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/%{name}-runtime.conf
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/00-grc-docs.conf

#----------------------------------------------------------------------------

%package doc
Summary:	Software Defined Radio
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains the documentation for the GNU Radio software
defined radio system.

%files doc
%doc README.md
%doc %{_docdir}/*
%license COPYING

#----------------------------------------------------------------------------

%package examples
Summary:	GNU Radio Example Programs
Group:		Communications

%description examples
This package provides examples of GNU Radio usage using Python.

%files examples
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/grc

#----------------------------------------------------------------------------

%package utils
Summary:	GNU Radio Utilities
Group:		Communications
Requires:	python3-scipy

%description utils
This package provides commonly used utilities for GNU Radio.

%files utils
%{python3_sitearch}/%{name}/plot_psd_base.*
%{python3_sitearch}/%{name}/plot_data.*
%{python3_sitearch}/%{name}/pyqt_plot.*
%{python3_sitearch}/%{name}/__pycache__/plot_psd_base.*
%{python3_sitearch}/%{name}/__pycache__/plot_data.*
%{python3_sitearch}/%{name}/__pycache__/pyqt_plot.*
%{_bindir}/%{name}-config-info

## Where do these live?
%{_bindir}/gr_filter_design
%{_bindir}/gr_plot
%{_bindir}/gr_plot_*
%{_bindir}/uhd_*
%{_bindir}/gr_read_file_metadata
%{_bindir}/grcc
%{_bindir}/gr_modtool
%{_bindir}/gr-ctrlport-monitor
%{_bindir}/gr-perf-monitorx
%{_bindir}/polar_channel_construction
%{_libdir}/cmake/%{name}

%{_mandir}/man1/dial_tone.1*
%{_mandir}/man1/display_qt.1*
%{_mandir}/man1/gnuradio-config-info.1*
%{_mandir}/man1/gr-ctrlport-monitor.1*
%{_mandir}/man1/gr-perf-monitorx.1*
%{_mandir}/man1/gr_filter_design.1*
%{_mandir}/man1/gr_modtool.1*
%{_mandir}/man1/gr_plot_const.1*
%{_mandir}/man1/gr_plot_fft.1*
%{_mandir}/man1/gr_plot_iq.1*
%{_mandir}/man1/gr_plot_psd.1*
%{_mandir}/man1/gr_plot_qt.1*
%{_mandir}/man1/gr_plot_time.1*
%{_mandir}/man1/gr_read_file_metadata.1*
%{_mandir}/man1/grcc.1*
%{_mandir}/man1/polar_channel_construction.1*
%{_mandir}/man1/tags_demo.1*
%{_mandir}/man1/uhd_fft.1*
%{_mandir}/man1/uhd_rx_cfile.1*
%{_mandir}/man1/uhd_rx_nogui.1*
%{_mandir}/man1/uhd_siggen.1*
%{_mandir}/man1/uhd_siggen_gui.1*

#----------------------------------------------------------------------------

%package -n %{libanalog}
Summary:	GNU Radio analog
Group:		System/Libraries

%description -n %{libanalog}
GNU Radio analog module.

%files -n %{libanalog}
%{_libdir}/lib%{name}-analog*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devanalog}
Summary:	GNU Radio analog development files
Group:		System/Libraries
Requires:	%{libanalog} = %{EVRD}

%description -n %{devanalog}
This package contains header files needed by developers.

%files -n %{devanalog}
%{_includedir}/%{name}/analog/*.h
%{_libdir}/lib%{name}-analog*.so
%{_libdir}/pkgconfig/%{name}-analog.pc

#----------------------------------------------------------------------------

%package -n %{libaudio}
Summary:	GNU Radio audio interfaces
Group:		System/Libraries
Requires:	%{name}-configs

%description -n %{libaudio}
This package includes all of the supported audio interfaces.

%files -n %{libaudio}
%{_libdir}/lib%{name}-audio*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devaudio}
Summary:	GNU Radio audio interfaces - devel files
Group:		Development/Other
Requires:	%{libaudio} = %{EVRD}
Requires:	%{devruntime} = %{EVRD}

%description -n %{devaudio}
This package contains header files needed by developers.

%files -n %{devaudio}
%{_includedir}/%{name}/audio/*.h
%{_libdir}/pkgconfig/%{name}-audio.pc
%{_libdir}/lib%{name}-audio*.so

#----------------------------------------------------------------------------

%package -n %{libblocks}
Summary:	GNU Radio blocks
Group:		System/Libraries

%description -n %{libblocks}
GNU Radio blocks module.

%files -n %{libblocks}
%{_libdir}/lib%{name}-blocks*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devblocks}
Summary:	GNU Radio blocks development files
Group:		System/Libraries
Requires:	%{libblocks} = %{EVRD}

%description -n %{devblocks}
This package contains header files needed by developers.

%files -n %{devblocks}
%{_includedir}/%{name}/blocks/*.h
%{_libdir}/lib%{name}-blocks*.so
%{_libdir}/pkgconfig/%{name}-blocks.pc

#----------------------------------------------------------------------------

%package -n %{libchannels}
Summary:	GNU Radio channels
Group:		System/Libraries

%description -n %{libchannels}
GNU Radio channels module.

%files -n %{libchannels}
%{_libdir}/lib%{name}-channels*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devchannels}
Summary:	GNU Radio channels development files
Group:		System/Libraries
Requires:	%{libchannels} = %{EVRD}

%description -n %{devchannels}
This package contains header files needed by developers.

%files -n %{devchannels}
%{_includedir}/%{name}/channels/*.h
%{_libdir}/lib%{name}-channels*.so
%{_libdir}/pkgconfig/%{name}-channels.pc

#----------------------------------------------------------------------------

%package -n %{libdigital}
Summary:	GNU Radio digital modulation blocks
Group:		System/Libraries

%description -n %{libdigital}
This is the gr-digital package.
It contains all of the digital modulation blocks, utilities, and examples.

%files -n %{libdigital}
%{_libdir}/lib%{name}-digital*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devdigital}
Summary:	GNU Radio digital modulation blocks development files
Group:		Development/Other
Requires:	%{libdigital} = %{EVRD}

%description -n %{devdigital}
This package contains header files needed by developers.

%files -n %{devdigital}
%{_includedir}/%{name}/digital/*.h
%{_libdir}/pkgconfig/%{name}-digital.pc
%{_libdir}/lib%{name}-digital*.so

#----------------------------------------------------------------------------

%package -n %{libdtv}
Summary:	GNU Radio DTV library files
Group:		System/Libraries

%description -n %{libdtv}
GNU Radio DTV library files.

%files -n %{libdtv}
%{_libdir}/lib%{name}-dtv*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devdtv}
Summary:	GNU Radio DTV development files
Group:		System/Libraries
Requires:	%{libdtv} = %{EVRD}

%description -n %{devdtv}
This package contains header files needed by developers.

%files -n %{devdtv}
%{_includedir}/%{name}/dtv/*.h
%{_libdir}/pkgconfig/%{name}-dtv.pc
%{_libdir}/lib%{name}-dtv*.so

#----------------------------------------------------------------------------

%package -n %{libfec}
Summary:	GNU Radio fec
Group:		System/Libraries

%description -n %{libfec}
GNU Radio fec module.

%files -n %{libfec}
%{_libdir}/lib%{name}-fec*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devfec}
Summary:	GNU Radio fec development files
Group:		System/Libraries
Requires:	%{libfec} = %{EVRD}

%description -n %{devfec}
This package contains header files needed by developers.

%files -n %{devfec}
%{_includedir}/%{name}/fec/*.h
%{_libdir}/lib%{name}-fec*.so
%{_libdir}/pkgconfig/%{name}-fec.pc

#----------------------------------------------------------------------------

%package -n %{libfft}
Summary:	GNU Radio FFT mofule
Group:		System/Libraries

%description -n %{libfft}
GNU Radio FFT module.

%files -n %{libfft}
%{_libdir}/lib%{name}-fft*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devfft}
Summary:	GNU Radio FFT development files
Group:		System/Libraries
Requires:	%{libfft} = %{EVRD}

%description -n %{devfft}
This package contains header files needed by developers.

%files -n %{devfft}
%{_includedir}/%{name}/fft/*.h
%{_libdir}/lib%{name}-fft*.so
%{_libdir}/pkgconfig/%{name}-fft.pc

#----------------------------------------------------------------------------

%package -n %{libfilter}
Summary:	GNU Radio filters
Group:		System/Libraries

%description -n %{libfilter}
GNU Radio filter module.

%files -n %{libfilter}
%{_libdir}/lib%{name}-filter*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devfilter}
Summary:	GNU Radio filter development files
Group:		System/Libraries
Requires:	%{libfilter} = %{EVRD}

%description -n %{devfilter}
This package contains header files needed by developers.

%files -n %{devfilter}
%{_includedir}/%{name}/filter/*.h
%{_libdir}/lib%{name}-filter*.so
%{_libdir}/pkgconfig/%{name}-filter.pc

#----------------------------------------------------------------------------

%package -n %{libiio}
Summary:	GNU Radio iio
Group:		System/Libraries

%description -n %{libiio}
This is the GNU Radio iio package.
It is the interface to the iio library.

%files -n %{libiio}
%{_libdir}/lib%{name}-iio*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deviio}
Summary:	GNU Radio iio development files
Group:		Development/Other
Requires:	%{libiio} = %{EVRD}

%description -n %{deviio}
This package contains header files needed by developers.

%files -n %{deviio}
%{_includedir}/%{name}/iio/*.h
%{_libdir}/pkgconfig/%{name}-iio.pc
%{_libdir}/lib%{name}-iio*.so

#----------------------------------------------------------------------------

%package -n %{libnetwork}
Summary:	GNU Radio network
Group:		System/Libraries

%description -n %{libnetwork}
This is the GNU Radio network package.
It is the interface to the network library.

%files -n %{libnetwork}
%{_libdir}/lib%{name}-network*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devnetwork}
Summary:	GNU Radio network development files
Group:		Development/Other
Requires:	%{libnetwork} = %{EVRD}

%description -n %{devnetwork}
This package contains header files needed by developers.

%files -n %{devnetwork}
%{_includedir}/%{name}/network/*.h
%{_libdir}/pkgconfig/%{name}-network.pc
%{_libdir}/lib%{name}-network*.so

#----------------------------------------------------------------------------

%package -n %{libpdu}
Summary:	GNU Radio pdu
Group:		System/Libraries

%description -n %{libpdu}
This is the GNU Radio pdu package.
It is the interface to the pdu library.

%files -n %{libpdu}
%{_libdir}/lib%{name}-pdu*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devpdu}
Summary:	GNU Radio pdu development files
Group:		Development/Other
Requires:	%{libpdu} = %{EVRD}

%description -n %{devpdu}
This package contains header files needed by developers.

%files -n %{devpdu}
%{_includedir}/%{name}/pdu/*.h
%{_libdir}/pkgconfig/%{name}-pdu.pc
%{_libdir}/lib%{name}-pdu*.so

#----------------------------------------------------------------------------

%package -n %{libpmt}
Summary:	GNU Radio pmt
Group:		System/Libraries

%description -n %{libpmt}
GNU Radio pmt module.

%files -n %{libpmt}
%{_libdir}/lib%{name}-pmt*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devpmt}
Summary:	GNU Radio pmt development files
Group:		System/Libraries
Requires:	%{libpmt} = %{EVRD}

%description -n %{devpmt}
This package contains header files needed by developers.

%files -n %{devpmt}
%{_libdir}/lib%{name}-pmt*.so
%{_includedir}/pmt/*.h

#----------------------------------------------------------------------------

%package -n %{libqtgui}
Summary:	GNU Radio C++ blocks for QT-based GUI applications
Group:		System/Libraries
Requires:	%{name}-configs

%description -n %{libqtgui}
This package contains the C++ library for using GNU Radio inside
QT-based GUI applications.

%files -n %{libqtgui}
%{_libdir}/lib%{name}-qtgui*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devqtgui}
Summary:	GNU Radio C++ blocks for QT-based GUI applications
Group:		Development/Other
Requires:	%{libqtgui} = %{EVRD}

%description -n %{devqtgui}
This package contains the C++ library for using GNU Radio inside
QT-based GUI applications.
This package contains header files needed by developers.

%files -n %{devqtgui}
%{_includedir}/%{name}/qtgui/*.h
%{_libdir}/pkgconfig/%{name}-qtgui.pc
%{_libdir}/lib%{name}-qtgui*.so

#----------------------------------------------------------------------------

%package -n %{libruntime}
Summary:	The GNU Radio Runtime Library
Group:		System/Libraries

%description -n %{libruntime}
This package contains the GNU Radio runtime libraries.

%files -n %{libruntime}
%{_libdir}/lib%{name}-runtime*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devruntime}
Summary:	The GNU Radio runtime devel files
Group:		Development/Other
Requires:	%{libruntime} = %{EVRD}

%description -n %{devruntime}
This package contains header files needed by developers.

%files -n %{devruntime}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/messages/*.h
%{_includedir}/%{name}/thread/*.h
%{_libdir}/pkgconfig/%{name}-runtime.pc
%{_libdir}/lib%{name}-runtime*.so

#----------------------------------------------------------------------------

%package -n %{libsoapy}
Summary:	GNU Radio soapy
Group:		System/Libraries

%description -n %{libsoapy}
This is the GNU Radio soapy package.
It is the interface to the soapy library.

%files -n %{libsoapy}
%{_libdir}/lib%{name}-soapy*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devsoapy}
Summary:	GNU Radio soapy development files
Group:		Development/Other
Requires:	%{libsoapy} = %{EVRD}

%description -n %{devsoapy}
This package contains header files needed by developers.

%files -n %{devsoapy}
%{_includedir}/%{name}/soapy/*.h
%{_libdir}/pkgconfig/%{name}-soapy.pc
%{_libdir}/lib%{name}-soapy*.so

#----------------------------------------------------------------------------

%package -n %{libtrellis}
Summary:	GNU Radio C++ block implementing trellis-coded modulation
Group:		System/Libraries

%description -n %{libtrellis}
This package provides an implementation of tellis-coded modulation
for GNU Radio.

%files -n %{libtrellis}
%{_libdir}/lib%{name}-trellis*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devtrellis}
Summary:	GNU Radio C++ block implementing trellis-coded modulation
Group:		Development/Other
Requires:	%{libtrellis} = %{EVRD}

%description -n %{devtrellis}
This package contains header files needed by developers.

%files -n %{devtrellis}
%{_includedir}/%{name}/trellis/*.h
%{_libdir}/pkgconfig/%{name}-trellis.pc
%{_libdir}/lib%{name}-trellis*.so

#----------------------------------------------------------------------------

%package -n %{libuhd}
Summary:	GNU Radio UHD
Group:		System/Libraries

%description -n %{libuhd}
This is the GNU Radio UHD package.
It is the interface to the UHD library to connect to and send and receive data
between the Ettus Research, LLC product line.

%files -n %{libuhd}
%{_libdir}/lib%{name}-uhd*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devuhd}
Summary:	GNU Radio UHD development files
Group:		Development/Other
Requires:	%{libuhd} = %{EVRD}
Requires:	%{devruntime} = %{EVRD}

%description -n %{devuhd}
This package contains header files needed by developers.

%files -n %{devuhd}
%{_includedir}/%{name}/uhd/*.h
%{_libdir}/pkgconfig/%{name}-uhd.pc
%{_libdir}/lib%{name}-uhd*.so

#----------------------------------------------------------------------------

%package -n %{libvideo_sdl}
Summary:	GNU Radio C++ block implementing video-sdl-coded modulation
Group:		System/Libraries

%description -n %{libvideo_sdl}
This package provides an interface to the SDL rendering library
for GNU Radio.

%files -n %{libvideo_sdl}
%{_libdir}/lib%{name}-video-sdl*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devvideo_sdl}
Summary:	GNU Radio C++ block implementing video-sdl-coded modulation
Group:		Development/Other
Requires:	%{libvideo_sdl} = %{EVRD}

%description -n %{devvideo_sdl}
This package provides an interface to the SDL rendering library
for GNU Radio.

This package contains header files needed by developers.

%files -n %{devvideo_sdl}
%{_includedir}/%{name}/video_sdl/*.h
%{_libdir}/pkgconfig/%{name}-video-sdl.pc
%{_libdir}/lib%{name}-video-sdl*.so

#----------------------------------------------------------------------------

%package -n %{libvocoder}
Summary:	GNU Radio C++ vocoder blocks
Group:		System/Libraries

%description -n %{libvocoder}
This is the gr-vocoder package.
It contains all available vocoders in GNU Radio.

%files -n %{libvocoder}
%{_libdir}/lib%{name}-vocoder*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devvocoder}
Summary:	GNU Radio vocoder devel files
Group:		Development/Other
Requires:	%{libvocoder} = %{EVRD}

%description -n %{devvocoder}
This package contains header files needed by developers.

%files -n %{devvocoder}
%{_includedir}/%{name}/vocoder/*.h
%{_libdir}/pkgconfig/%{name}-vocoder.pc
%{_libdir}/lib%{name}-vocoder*.so

#----------------------------------------------------------------------------

%package -n %{libwavelet}
Summary:	GNU Radio Wavelet
Group:		System/Libraries

%description -n %{libwavelet}
GNU Radio Wavelet module.

%files -n %{libwavelet}
%{_libdir}/lib%{name}-wavelet*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devwavelet}
Summary:	GNU Radio Wavelet development files
Group:		System/Libraries
Requires:	%{libwavelet} = %{EVRD}

%description -n %{devwavelet}
This package contains header files needed by developers.

%files -n %{devwavelet}
%{_includedir}/%{name}/wavelet/*.h
%{_libdir}/lib%{name}-wavelet*.so
%{_libdir}/pkgconfig/%{name}-wavelet.pc

#----------------------------------------------------------------------------

%package -n %{libzeromq}
Summary:	GNU Radio zeromq
Group:		System/Libraries

%description -n %{libzeromq}
This is the GNU Radio zeromq package.
It is the interface to the zeromq library.

%files -n %{libzeromq}
%{_libdir}/lib%{name}-zeromq*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devzeromq}
Summary:	GNU Radio zeromq development files
Group:		Development/Other
Requires:	%{libzeromq} = %{EVRD}

%description -n %{devzeromq}
This package contains header files needed by developers.

%files -n %{devzeromq}
%{_includedir}/%{name}/zeromq/*.h
%{_libdir}/pkgconfig/%{name}-zeromq.pc
%{_libdir}/lib%{name}-zeromq*.so

#----------------------------------------------------------------------------

%package -n python3-%{name}-analog
Summary:	GNU Radio analog python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-analog < 3.10.8.0-2
Obsoletes:	python-%{name}-analog < 3.10.8.0-2

%description -n python3-%{name}-analog
GNU Radio analog python module.

%files -n python3-%{name}-analog
%{python3_sitearch}/%{name}/analog

#----------------------------------------------------------------------------

%package -n python3-%{name}-audio
Summary:	GNU Radio Python Audio Driver
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Requires:	%{name}-configs
Conflicts:	python-%{name}-audio < 3.10.8.0-2
Obsoletes:	python-%{name}-audio < 3.10.8.0-2

%description -n python3-%{name}-audio
This package provides the Python interface to the GNU Radio driver for the
audio system.

%files -n python3-%{name}-audio
%{python3_sitearch}/%{name}/audio/*

#----------------------------------------------------------------------------

%package -n python3-%{name}-blocks
Summary:	GNU Radio blocks python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-blocks < 3.10.8.0-2
Obsoletes:	python-%{name}-blocks < 3.10.8.0-2

%description -n python3-%{name}-blocks
GNU Radio blocks python module.

%files -n python3-%{name}-blocks
%{python3_sitearch}/%{name}/blocks

#----------------------------------------------------------------------------

%package -n python3-%{name}-channels
Summary:	GNU Radio channels python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-channels < 3.10.8.0-2
Obsoletes:	python-%{name}-channels < 3.10.8.0-2

%description -n python3-%{name}-channels
GNU Radio channels python module.

%files -n python3-%{name}-channels
%{python3_sitearch}/%{name}/channels

#----------------------------------------------------------------------------

%package -n python3-%{name}-digital
Summary:	Python bindings for GNU Radio Digital
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-digital < 3.10.8.0-2
Obsoletes:	python-%{name}-digital < 3.10.8.0-2

%description -n python3-%{name}-digital
This package contains Python bindings for GNU Radio Digital.

%files -n python3-%{name}-digital
%{python3_sitearch}/%{name}/digital/*

#----------------------------------------------------------------------------

%package -n python3-%{name}-dtv
Summary:	Python bindings for GNU Radio DTV
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Requires:	python3-numpy
Conflicts:	python-%{name}-dtv < 3.10.8.0-2
Obsoletes:	python-%{name}-dtv < 3.10.8.0-2

%description -n python3-%{name}-dtv
This package contains Python bindings for GNU Radio DTV.

%files -n python3-%{name}-dtv
%{python3_sitearch}/%{name}/dtv/*

#----------------------------------------------------------------------------

%package -n python3-%{name}-fec
Summary:	GNU Radio fec python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-fec < 3.10.8.0-2
Obsoletes:	python-%{name}-fec < 3.10.8.0-2

%description -n python3-%{name}-fec
GNU Radio fec python module.

%files -n python3-%{name}-fec
%{python3_sitearch}/%{name}/fec

#----------------------------------------------------------------------------

%package -n python3-%{name}-fft
Summary:	GNU Radio fft python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-fft < 3.10.8.0-2
Obsoletes:	python-%{name}-fft < 3.10.8.0-2

%description -n python3-%{name}-fft
GNU Radio fft python module.

%files -n python3-%{name}-fft
%{python3_sitearch}/%{name}/fft
%{python3_sitearch}/%{name}/plot_fft_base.*
%{python3_sitearch}/%{name}/__pycache__/plot_fft_base.*

#----------------------------------------------------------------------------

%package -n python3-%{name}-filter
Summary:	GNU Radio filter python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-filter < 3.10.8.0-2
Obsoletes:	python-%{name}-filter < 3.10.8.0-2

%description -n python3-%{name}-filter
GNU Radio filter python module.

%files -n python3-%{name}-filter
%{python3_sitearch}/%{name}/filter
%{python3_sitearch}/%{name}/pyqt_filter.*
%{python3_sitearch}/%{name}/__pycache__/pyqt_filter.*

#----------------------------------------------------------------------------

%package -n python3-%{name}-iio
Summary:	Python bindings for GNU Radio iio driver
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-iio < 3.10.8.0-2
Obsoletes:	python-%{name}-iio < 3.10.8.0-2

%description -n python3-%{name}-iio
This package provides the Python interface to the GNU Radio iio driver
and daughterboard drivers.

%files -n python3-%{name}-iio
%{python3_sitearch}/%{name}/iio

#----------------------------------------------------------------------------

%package -n python3-%{name}-modtool
Summary:	GNU Radio modtool python module
Group:		Development/Python
Requires:	%{name}-configs
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-modtool < 3.10.8.0-2
Obsoletes:	python-%{name}-modtool < 3.10.8.0-2

%description -n python3-%{name}-modtool
GNU Radio modtool python module.

%files -n python3-%{name}-modtool
%{python3_sitearch}/%{name}/modtool

#----------------------------------------------------------------------------

%package -n python3-%{name}-network
Summary:	Python bindings for GNU Radio network driver
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-network < 3.10.8.0-2
Obsoletes:	python-%{name}-network < 3.10.8.0-2

%description -n python3-%{name}-network
This package provides the Python interface to the GNU Radio network driver
and daughterboard drivers.

%files -n python3-%{name}-network
%{python3_sitearch}/%{name}/network

#----------------------------------------------------------------------------

%package -n python3-%{name}-pdu
Summary:	Python bindings for GNU Radio pdu driver
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-pdu < 3.10.8.0-2
Obsoletes:	python-%{name}-pdu < 3.10.8.0-2

%description -n python3-%{name}-pdu
This package provides the Python interface to the GNU Radio pdu driver
and daughterboard drivers.

%files -n python3-%{name}-pdu
%{python3_sitearch}/%{name}/pdu

#----------------------------------------------------------------------------

%package -n python3-%{name}-pmt
Summary:	GNU Radio pmt python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Requires:	python3-numpy
Conflicts:	python-%{name}-pmt < 3.10.8.0-2
Obsoletes:	python-%{name}-pmt < 3.10.8.0-2

%description -n python3-%{name}-pmt
GNU Radio pmt python module.

%files -n python3-%{name}-pmt
%{python3_sitearch}/pmt/*

#----------------------------------------------------------------------------

%package -n python3-%{name}-qtgui
Summary:	GNU Radio Graphical Interface Routines based on Qt
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-qtgui < 3.10.8.0-2
Obsoletes:	python-%{name}-qtgui < 3.10.8.0-2

%description -n python3-%{name}-qtgui
This package provides the Python wrappers around the GNU Radio Qt GUI
C++ blocks.

%files -n python3-%{name}-qtgui
%{python3_sitearch}/%{name}/qtgui

#----------------------------------------------------------------------------

%package -n python3-%{name}-runtime
Summary:	Python bindings for GNU Radio runtime library
Group:		Development/Python
Requires:	python3-numpy
Requires:	python3-scipy
Requires:	%{name}-configs
Conflicts:	python-%{name}-runtime < 3.10.8.0-2
Obsoletes:	python-%{name}-runtime < 3.10.8.0-2

%description -n python3-%{name}-runtime
This package provides the modules that enable one to use gnuradio from
Python scripts.

%files -n python3-%{name}-runtime
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/conf.d
%dir %{python3_sitearch}/%{name}
%{python3_sitearch}/%{name}/bindtool
%{python3_sitearch}/%{name}/blocktool
%{python3_sitearch}/%{name}/ctrlport
%{python3_sitearch}/%{name}/gr
%{python3_sitearch}/%{name}/__init__.*
%{python3_sitearch}/%{name}/eng_notation.*
%{python3_sitearch}/%{name}/eng_option.*
%{python3_sitearch}/%{name}/gr_unittest.*
%{python3_sitearch}/%{name}/eng_arg.*
%{python3_sitearch}/%{name}/__pycache__/__init__.*
%{python3_sitearch}/%{name}/__pycache__/eng_notation.*
%{python3_sitearch}/%{name}/__pycache__/eng_option.*
%{python3_sitearch}/%{name}/__pycache__/gr_unittest.*
%{python3_sitearch}/%{name}/__pycache__/eng_arg.*

#----------------------------------------------------------------------------

%package -n python3-%{name}-soapy
Summary:	Python bindings for GNU Radio soapy driver
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-soapy < 3.10.8.0-2
Obsoletes:	python-%{name}-soapy < 3.10.8.0-2

%description -n python3-%{name}-soapy
This package provides the Python interface to the GNU Radio soapy driver
and daughterboard drivers.

%files -n python3-%{name}-soapy
%{python3_sitearch}/%{name}/soapy

#----------------------------------------------------------------------------

%package -n python3-%{name}-trellis
Summary:	GNU Radio Trellis-Coded Modulation library python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-trellis < 3.10.8.0-2
Obsoletes:	python-%{name}-trellis < 3.10.8.0-2

%description -n python3-%{name}-trellis
This package provides an implementation of trellis-coded modulation for
GNU Radio (python module).

%files -n python3-%{name}-trellis
%{python3_sitearch}/%{name}/trellis/*

#----------------------------------------------------------------------------

%package -n python3-%{name}-uhd
Summary:	Python bindings for GNU Radio uhd driver
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-uhd < 3.10.8.0-2
Obsoletes:	python-%{name}-uhd < 3.10.8.0-2

%description -n python3-%{name}-uhd
This package provides the Python interface to the GNU Radio uhd driver
and daughterboard drivers.

%files -n python3-%{name}-uhd
%{python3_sitearch}/%{name}/uhd

#----------------------------------------------------------------------------

%package -n python3-%{name}-video-sdl
Summary:	GNU Radio SDL Interface Library python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-video-sdl < 3.10.8.0-2
Obsoletes:	python-%{name}-video-sdl < 3.10.8.0-2

%description -n python3-%{name}-video-sdl
This package provides an interface to the SDL rendering library for GNU Radio.

%files -n python3-%{name}-video-sdl
%{python3_sitearch}/%{name}/video_sdl/*

#----------------------------------------------------------------------------

%package -n python3-%{name}-vocoder
Summary:	Python bindings for GNU Radio vocoder
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-vocoder < 3.10.8.0-2
Obsoletes:	python-%{name}-vocoder < 3.10.8.0-2

%description -n python3-%{name}-vocoder
This package contains Python bindings for GNU Radio ATSC decoding.

%files -n python3-%{name}-vocoder
%{python3_sitearch}/%{name}/vocoder/*

#----------------------------------------------------------------------------

%package -n python3-%{name}-wavelet
Summary:	GNU Radio wavelet python module
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-wavelet < 3.10.8.0-2
Obsoletes:	python-%{name}-wavelet < 3.10.8.0-2

%description -n python3-%{name}-wavelet
GNU Radio wavelet python module.

%files -n python3-%{name}-wavelet
%{python3_sitearch}/%{name}/wavelet

#----------------------------------------------------------------------------

%package -n python3-%{name}-zeromq
Summary:	Python bindings for GNU Radio zeromq driver
Group:		Development/Python
Requires:	python3-%{name}-runtime = %{EVRD}
Conflicts:	python-%{name}-zeromq < 3.10.8.0-2
Obsoletes:	python-%{name}-zeromq < 3.10.8.0-2

%description -n python3-%{name}-zeromq
This package provides the Python interface to the GNU Radio zeromq driver
and daughterboard drivers.

%files -n python3-%{name}-zeromq
%{python3_sitearch}/%{name}/zeromq

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DENABLE_PYTHON=ON

%make

%install
%makeinstall_std -C build

# manual install icons and desktop files, it's not install on make install stage :(
install -d %{buildroot}%{_datadir}/applications
install -d %{buildroot}%{_datadir}/metainfo
install -d %{buildroot}%{_datadir}/mime/packages
install -d %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
install -d %{buildroot}%{_datadir}/icons/hicolor/24x24/apps
install -d %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
install -d %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
install -d %{buildroot}%{_datadir}/icons/hicolor/64x64/apps
install -d %{buildroot}%{_datadir}/icons/hicolor/128x128/apps

install -m0644 ./grc/scripts/freedesktop/gnuradio-grc.desktop %{buildroot}%{_datadir}/applications/gnuradio-grc.desktop
install -m0644 ./grc/scripts/freedesktop/org.gnuradio.grc.metainfo.xml %{buildroot}%{_datadir}/metainfo/org.gnuradio.grc.metainfo.xml
install -m0644 ./grc/scripts/freedesktop/gnuradio-grc.xml %{buildroot}%{_datadir}/mime/packages/gnuradio-grc.xml

install -m0644 ./grc/scripts/freedesktop/grc-icon-16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gnuradio-grc.png
install -m0644 ./grc/scripts/freedesktop/grc-icon-24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/gnuradio-grc.png
install -m0644 ./grc/scripts/freedesktop/grc-icon-32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gnuradio-grc.png
install -m0644 ./grc/scripts/freedesktop/grc-icon-48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gnuradio-grc.png
install -m0644 ./grc/scripts/freedesktop/grc-icon-64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/gnuradio-grc.png
install -m0644 ./grc/scripts/freedesktop/grc-icon-128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/gnuradio-grc.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2038 |21cr|gnurobbo-0.66-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Logic game ported from ATARI XE/XL
Name:		gnurobbo
Version:	0.66
Release:	7
License:	GPLv2+
Group:		Games/Arcade
Url:		http://gnurobbo.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/gnurobbo/%{name}-%{version}-source.tar.gz
Source10:	%{name}.16.png.bz2
Source11:	%{name}.32.png.bz2
Source12:	%{name}.48.png.bz2
Patch0:		gnurobbo-0.66.libm.patch
Patch1:		gnurobbo-0.66-hardening.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)

%description
GNU Robbo is very addictive logic game. You must help little robot to get out
of unfriendly planet, collecting parts of emergency capsule.

%files
%doc README ChangeLog AUTHORS COPYING LICENSE-sound LICENSE-ttf NEWS
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%global optflags %{optflags} -fcommon
%setup_compile_flags
%make PACKAGE_DATA_DIR=%{_datadir}/%{name}

%install
%makeinstall \
	BINDIR=%{buildroot}%{_bindir} \
	PACKAGE_DATA_DIR=%{buildroot}%{_datadir}/%{name} \
	DOCDIR=%{buildroot}%{_docdir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=GNU Robbo
Comment=%{summary}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

mkdir -p %{buildroot}%{_miconsdir}
mkdir -p %{buildroot}%{_liconsdir}
bzcat %{SOURCE10} > %{buildroot}%{_miconsdir}/%{name}.png
bzcat %{SOURCE11} > %{buildroot}%{_iconsdir}/%{name}.png
bzcat %{SOURCE12} > %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2039 |21cr|gnusim8085-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical Intel 8085 simulator, assembler and debugger
Name:		gnusim8085
Version:	1.4.1
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://gnusim8085.srid.ca/
Source0:	https://github.com/GNUSim8085/GNUSim8085/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-3.0)

%description
GNUSim8085 is a graphical simulator plus assembler with debugger for
the Intel 8085 microprocessor.  It is written using GNOME libs.  It
can also run on several window managers.

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS ChangeLog NEWS README.md TODO asm-guide.txt examples/
%license COPYING
%{_mandir}/man1/%{name}.1*
%{_bindir}/gnusim8085
%{_metainfodir}/gnusim8085.appdata.xml
%{_datadir}/applications/GNUSim8085.desktop
%{_datadir}/gnusim8085/
%{_datadir}/pixmaps/gnusim8085/
%{_datadir}/icons/hicolor/scalable/apps/gnusim8085.svg

#----------------------------------------------------------------------------

%prep
%setup -qn GNUSim8085-%{version}

%build
autoreconf -fi
%configure
%make

%install
mkdir -p %{buildroot}%{_datadir}/pixmaps/%{name}
%makeinstall_std

desktop-file-install --vendor='' \
	--dir %{buildroot}%{_datadir}/applications \
	--add-category='GTK;GNOME;Development;Debugger' \
	%{buildroot}%{_datadir}/applications/GNUSim8085.desktop

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2040 |21cr|gnustep-DisplayCalibrator-0.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		gnustep-DisplayCalibrator
Version:	0.7
Release:	3
Summary:	Gamma calibration for GNUstep
License:	Free
Group:		Graphical desktop/Other
Url:		http://packages.ubuntu.com/ru/lucid/displaycalibrator.app
Source0:	%{name}-%{version}.tar
Source1:	DisplayCalibrator.desktop
BuildRequires: gcc-objc
BuildRequires: gnustep-make
BuildRequires: gnustep-gui-devel
BuildRequires: gmp-devel
BuildRequires: pkgconfig(gnutls)
BuildRequires: libgcrypt-devel
BuildRequires: libxslt-devel
BuildRequires: pkgconfig(libffi)
BuildRequires: icu-devel
BuildRequires: zlib-devel

%description
DisplayCalibrator is a GNUstep application to calibrate the gamma of
your display.

%files
%doc readme
%{_bindir}/*
%{_libdir}/GNUstep
%{_datadir}/pixmaps/*.png
%{_datadir}/applications/*.desktop

#------------------------------------------------------------------
%prep
%setup

mkdir -p DisplayCalibrator.app/Resources
cp %{SOURCE1} DisplayCalibrator.app/Resources/

%build
. %_datadir/GNUstep/Makefiles/GNUstep.sh

%make_build \
	messages=yes \
	debug=yes \
	strip=no \
	shared=yes
 
%install
. %{_datadir}/GNUstep/Makefiles/GNUstep.sh

%makeinstall_std GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

install -d %{buildroot}%{_datadir}/applications
install -d %{buildroot}%{_datadir}/pixmaps
install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
install -m0644 DisplayCalibrator.app/Resources/gammascrew.png %{buildroot}%{_datadir}/pixmaps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2041 |21cr|gnutu-2.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Student's Schedule
Name:		gnutu
Version:	2.5
Release:	9
License:	GPLv2+
Group:		Education
Url:		http://www.gnutu.devnull.pl/
Source0:	http://gnutu.devnull.pl/download.php?id=sources/gnutu-%{version}.tar.gz
Patch0:		%{name}-desktop.patch
BuildRequires:	gtk-sharp2
BuildRequires:	glade-sharp2
BuildRequires:	pkgconfig(mono)

%description
GNUTU (Student's Schedule) is designed for students from primary and secondary
schools - using it, you can note various information (like marks, tests' dates
and important school events). It also can create various statistics, search
for all entered data, calculate your average; it can also serve as a diary and
many, many more...

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog COPYING README
%attr(755,root,root) %{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%{_datadir}/applications/gnutu.desktop
%{_datadir}/pixmaps/gnutu.ico
%{_datadir}/pixmaps/gnutu.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .%{name}-desktop.patch

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2042 |21cr|goaccess-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define debug_package %{nil}

Name:           goaccess
Version:        1.3
Release:        1
Summary:        Real-time web log analyzer and interactive viewer
License:        GPLv2+
Group:		    Networking/WWW
URL:            http://goaccess.io/
Source0:        http://tar.goaccess.io/goaccess-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  geoip-devel
BuildRequires:  ncurses-devel

%description
GoAccess is a real-time web log analyzer and interactive viewer that runs in a
terminal in *nix systems. It provides fast and valuable HTTP statistics for
system administrators that require a visual server report on the fly.

Features:
GoAccess parses the specified web log file and outputs the data to terminal.

* General statistics, bandwidth, etc.
* Time taken to serve the request (useful to track pages that are slowing down.
your site).
* Metrics for cumulative, average and slowest running requests.
* Top visitors.
* Requested files & static files.
* 404 or Not Found.
* Hosts, Reverse DNS, IP Location.
* Operating Systems.
* Browsers and Spiders.
* Referring Sites & URLs.
* Keyphrases.
* Geo Location - Continent/Country/City.
* Visitors Time Distribution.
* HTTP Status Codes.
* Ability to output JSON and CSV.
* Tailor GoAccess to suit your own color taste/schemes.
* Support for large datasets + data persistence.
* Support for IPv6.
* Output statistics to HTML. 
and more...

GoAccess allows any custom log format string. Predefined options include, but
not limited to:

* Amazon CloudFront (Download Distribution).
* AWS Elastic Load Balancing.
* Apache/Nginx Common/Combined + VHosts.
* Google Cloud Storage.
* W3C format (IIS).

%prep
%setup -q
# Prevent flags being overridden again and again.
#sed -i 's|-pthread|$CFLAGS \0|' configure.ac
#sed -i '/-pthread/d' configure.ac

%build
#autoreconf -fiv
%configure --enable-debug --enable-geoip --enable-utf8
%make

%install
%makeinstall
%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog README TODO COPYING
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2043 |21cr|goatattack-0.4.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -Wstrict-aliasing=0 -std=c++14

Summary:	Fast-paced multiplayer pixel art shooter game
Name:		goatattack
Version:	0.4.5
Release:	3
License:	GPLv3+
Group:		Games/Arcade
Url:		http://www.goatattack.net
Source0:	https://github.com/goatattack/goatattack/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(freetype2)
Requires:	%{name}-data >= %{EVRD}

%description
Goat Attack is a multiplayer 2D platformer pixel art shooter game for Linux,
OS X and Windows. You can play it in a local network or over the Internet.
This project is splitted three subprojects. the game itself, its map editor
and a master server. six gameplay modes are supported. deathmatch, team
deathmatch, capture the flag, speed race, catch the coin and goat of the hill.

%files
%doc AUTHORS ChangeLog README.md server_*.conf
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-mapeditor
%{_gamesbindir}/%{name}-server
%{_appdatadir}/%{name}.appdata.xml
%{_appdatadir}/%{name}-mapeditor.appdata.xml
%{_datadir}/applications/%{name}*.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}*.svg
%{_mandir}/man6/%{name}*.6*

#---------------------------------------------------------------------------

%package data
Summary:	Data files for the game Goat Attack
License:	CC-BY-SA
BuildArch:	noarch

%description data
This package contains arch-independent data files (graphics, sounds, music,
levels) for the multiplayer game Goat Attack.

%files data
%doc AUTHORS ChangeLog
%{_gamesdatadir}/%{name}/

#---------------------------------------------------------------------------

%prep
%setup -q

%build
export CPPFLAGS="%{optflags} -I/usr/include/freetype2"
autoreconf -vfi
cd ..
rm -rf build-dedicated
mkdir build-dedicated
cd %{name}-%{version}
cp -a . ../build-dedicated

%configure \
  --bindir=%{_gamesbindir} \
  --datadir=%{_gamesdatadir} \
  --enable-map-editor

%make

pushd ../build-dedicated
%configure \
  --bindir=%{_gamesbindir} \
  --datadir=%{_gamesdatadir} \
  --enable-dedicated-server
%make
popd

%install
%makeinstall_std

install -m755 ../build-dedicated/src/Server/%{name}-server \
  %{buildroot}%{_gamesbindir}/%{name}-server
install -m755 ../build-dedicated/src/Server/man/%{name}-server.6 \
  %{buildroot}%{_mandir}/man6/%{name}-server.6


# appdata
mkdir -p %{buildroot}%{_appdatadir}
mv %{buildroot}%{_datadir}/appdata/goatattack.appdata.xml \
  %{buildroot}%{_appdatadir}/goatattack.appdata.xml
mv %{buildroot}%{_datadir}/appdata/goatattack-mapeditor.appdata.xml \
  %{buildroot}%{_appdatadir}/goatattack-mapeditor.appdata.xml  
rm -fr  %{buildroot}%{_datadir}/appdata

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2044 |21cr|gob2-2.0.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GTK+ Object Builder
Name:		gob2
Version:	2.0.20
Release:	1
License:	GPLv2+
Group:		Development/GNOME and GTK+
Source:		http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
URL:		http://www.5z.com/jirka/linux.html#gob
BuildRequires:	flex
BuildRequires:	glib2-devel

%description
GOB2 is a simple preprocessor for making GTK+ objects.  It makes objects
from a single file which has inline C code so that you don't have to edit
the generated files.  Syntax is somewhat inspired by java and yacc.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README AUTHORS NEWS TODO ChangeLog
%doc examples
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/aclocal/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2045 |21cr|godot2-2.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# remove when push in contrib
%define debug_package	%{nil}
%define _enable_debug_packages %{nil}

%define oname godot
%global __provides_exclude godot
%bcond_without  server

%define status stable
%define uversion %{version}-%{status}

%ifarch %{ix86} 
%define arch 32
%else
%define arch 64
%endif

Name:           godot2
Version:        2.1.6
Release:        1
Summary:        Multi-platform 2D and 3D game engine with a feature rich editor
Group:          Development/Tools
License:        MIT
Url:            https://godotengine.org
Source0:        https://github.com/godotengine/godot/archive/%{uversion}/%{oname}-%{uversion}.tar.gz
Source1:        https://github.com/godotengine/godot-demo-projects/archive/2.1.4-stable.tar.gz
BuildRequires:  clang
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libwebp)
BuildRequires:  pkgconfig(ogg)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(opus)
BuildRequires:  pkgconfig(opusfile)
BuildRequires:  pkgconfig(theora)
BuildRequires:  pkgconfig(udev)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(vorbisfile)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  scons

Recommends:    %{name}-demos
Provides:	godot2

%description
Godot is an advanced, feature packed, multi-platform 2D and 3D game engine.
It provides a huge set of common tools, so you can just focus on making
your game without reinventing the wheel.

Godot is completely free and open source under the very permissive MIT
license. No strings attached, no royalties, nothing. Your game is yours,
down to the last line of engine code.

%files
%doc LICENSE.txt README.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------

%package        demos
Summary:        Demo projects to learn how to use Godot Engine
BuildArch:      noarch

%description    demos
This package contains the official demo projects to help new users to learn
the features of the game engine.

%files          demos
%doc godot-demo-projects-2.1.4-stable/*.md
%{_datadir}/%{name}/demos/

#----------------------------------------------------------------------

%if %{with server}
%package        server
Summary:        Godot headless binary for servers
Group:          Games/Other

%description    server
This package contains the headless binary for the Godot game engine,
particularly suited for running dedicated servers.

%files          server
%doc *.md
%{_bindir}/%{name}-server
%endif

#----------------------------------------------------------------------

%package        runner
Summary:        Shared binary to play games developed with the Godot engine
Group:          Games/Other

%description    runner
This package contains a godot-runner binary for the Linux X11 platform,
which can be used to run any game developed with the Godot engine simply
by pointing to the location of the game's data package.

%files          runner
%doc LICENSE.txt README.md
%{_bindir}/%{name}-runner

#----------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{uversion} -a 1
chmod -x scene/main/node.cpp

%build
# Needs to be in %%build so that system_libs stays in scope
system_libs=""
for lib in freetype glew libogg libpng libtheora libvorbis libwebp openssl opus zlib; do
    system_libs+="builtin_"$lib"=no "
    rm -rf thirdparty/$lib
done
%define _scons %scons use_llvm=yes $system_libs

export BUILD_REVISION="RosaLinuxRo"

# Build graphical editor (tools)
%_scons p=x11 tools=yes target=release_debug

# Build game runner (without tools)
%_scons p=x11 tools=no target=release

%if %{with server}
# Build headless version of the editor
%_scons p=server tools=yes target=release_debug
%endif

%install
install -d %{buildroot}%{_bindir}
install -m0755 bin/%{oname}.x11.opt.tools.%{arch}.llvm %{buildroot}%{_bindir}/%{name}
install -m0755 bin/%{oname}.x11.opt.%{arch}.llvm %{buildroot}%{_bindir}/%{name}-runner
%if %{with server}
install -m0755 bin/%{oname}_server.server.opt.tools.%{arch} %{buildroot}%{_bindir}/%{name}-server
%endif

install -d %{buildroot}%{_datadir}/%{name}
cp -a godot-demo-projects-2.1.4-stable %{buildroot}%{_datadir}/%{name}/demos

install -D -m644 icon.svg \
    %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Godot Engine
GenericName=Libre game engine
Comment=Multi-platform 2D and 3D game engine with a feature rich editor
Exec=%{name} -pm
Icon=%{oname}
Terminal=false
Type=Application
Categories=Development;IDE;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2046 |21cr|godot-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%bcond_without server

%define status stable
%define uversion %{version}-%{status}

%define dversion 3.3-2d4d233

%ifarch %{ix86}
%define arch 32
%else
%define arch 64
%endif

Summary:	Multi-platform 2D and 3D game engine with a feature rich editor
Name:		godot
Version:	3.3.2
Release:	1
License:	MIT
Group:		Games/Other
Url:		https://godotengine.org
Source0:	https://github.com/godotengine/godot/archive/%{uversion}/%{name}-%{uversion}.tar.gz
Source1:	https://github.com/godotengine/godot-demo-projects/archive/%{dversion}.tar.gz?/godot-demo-projects-%{dversion}.tar.gz
Patch0:		0001-Linux-Fix-embree-unbundling-on-aarch64.patch
BuildRequires:	scons
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpcre2-32)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
Recommends:	%{name}-demos

%description
Godot is an advanced, feature packed, multi-platform 2D and 3D game engine.
It provides a huge set of common tools, so you can just focus on making
your game without reinventing the wheel.

Godot is completely free and open source under the very permissive MIT
license. No strings attached, no royalties, nothing. Your game is yours,
down to the last line of engine code.

%files
%doc LICENSE.txt README.md
%{_appdatadir}/*.appdata.xml
%{_datadir}/mime/application/*.xml
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_mandir}/man6/godot.6*
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/zsh/site-functions/_%{name}
%{_datadir}/bash-completion/completions/%{name}

#----------------------------------------------------------------------

%package demos
Summary:	Demo projects to learn how to use Godot Engine
Group:		Games/Other
BuildArch:	noarch

%description demos
This package contains the official demo projects to help new users to learn
the features of the game engine.

%files demos
%doc godot-demo-projects-%{dversion}/*.md
%{_datadir}/%{name}/demos/

#----------------------------------------------------------------------

%if %{with server}
%package server
Summary:	Godot headless binary for servers
Group:		Games/Other

%description server
This package contains the headless binary for the Godot game engine,
particularly suited for running dedicated servers.

%files server
%doc *.md
%{_bindir}/%{name}-server
%{_bindir}/%{name}-headless
%endif

#----------------------------------------------------------------------

%package runner
Summary:	Shared binary to play games developed with the Godot engine
Group:		Games/Other

%description runner
This package contains a godot-runner binary for the Linux X11 platform,
which can be used to run any game developed with the Godot engine simply
by pointing to the location of the game's data package.

%files runner
%doc LICENSE.txt README.md
%{_bindir}/%{name}-runner

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{uversion} -a 1

# Windows-specific
rm -rf thirdparty/rtaudio

%build
# Needs to be in %%build so that system_libs stays in scope
# We don't unbundle enet and minizip as they have necessary custom changes
# We don't unbundle bullet yet as it needs a version newer than 2.87 (current stable)
# We don't unbundle zstd yet as it's using experimental APIs available only with static linking
to_unbundle="freetype libogg libpng libtheora libvorbis libvpx libwebp openssl opus pcre2 zlib"

%ifnarch x86_64
%define disable_modules module_denoise_enabled=no
%endif

system_libs=""
for lib in $to_unbundle; do
    system_libs+="builtin_"$lib"=no "
    rm -rf thirdparty/$lib
done
%define _scons %scons CCFLAGS="%{optflags}" LINKFLAGS="%{ldflags}" $system_libs %{?disable_modules}

export BUILD_REVISION="RosaLinuxRo"

# Build graphical editor (tools)
%_scons p=x11 tools=yes target=release_debug

# Build game runner (without tools)
%_scons p=x11 tools=no target=release

%if %{with server}
# Build headless version of the editor
%_scons p=server tools=yes target=release_debug
%_scons p=server tools=no target=release
%endif

%install
install -d %{buildroot}%{_bindir}
install -m0755 bin/%{name}.x11.opt.tools.%{arch} %{buildroot}%{_bindir}/%{name}
install -m0755 bin/%{name}.x11.opt.%{arch} %{buildroot}%{_bindir}/%{name}-runner
%if %{with server}
install -m0755 bin/%{name}_server.x11.opt.tools.%{arch} %{buildroot}%{_bindir}/%{name}-headless
install -m0755 bin/%{name}_server.x11.opt.%{arch} %{buildroot}%{_bindir}/%{name}-server
%endif

install -d %{buildroot}%{_datadir}/%{name}
cp -a godot-demo-projects-%{dversion} %{buildroot}%{_datadir}/%{name}/demos

install -D -m644 icon.svg \
    %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
install -D -m644 misc/dist/linux/org.godotengine.Godot.desktop \
    %{buildroot}%{_datadir}/applications/org.godotengine.Godot.desktop
install -D -m644 misc/dist/linux/org.godotengine.Godot.appdata.xml \
    %{buildroot}%{_appdatadir}/org.godotengine.Godot.appdata.xml
install -D -m644 misc/dist/linux/org.godotengine.Godot.xml \
    %{buildroot}%{_datadir}/mime/application/org.godotengine.Godot.xml
install -D -m644 misc/dist/linux/%{name}.6 \
    %{buildroot}%{_mandir}/man6/%{name}.6
install -D -m644 misc/dist/shell/%{name}.bash-completion \
    %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -D -m644 misc/dist/shell/_%{name}.zsh-completion \
    %{buildroot}%{_datadir}/zsh/site-functions/_%{name}

# delete hidden files
find %{buildroot}%{_datadir}/godot/demos -name "[.]*" -exec rm -f {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2047 |21cr|go-for-it-1.6.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Go-For-It

Summary:	A stylish to-do list with built-in productivity timer
Name:		go-for-it
Version:	1.6.5
Release:	2
License:	GPLv3
Group:		Office
Url:		http://manuel-kehl.de/projects/go-for-it/
Source0:	https://github.com/mank319/Go-For-It/archive/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(vapigen)

%description
Is a simple and stylish productivity app, 
featuring a to-do list, merged with a 
timer that keeps your focus on the current task. 

%files -f %{name}.lang
%doc AUTHORS COPYING README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/style/*.css
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/actions/*.svg
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_appdatadir}/%{name}.appdata.xml

#---------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}

%build
%cmake \
	-DAPP_SYSTEM_NAME:STRING="go-for-it"
%make

%install
%makeinstall_std -C build

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2048 |21cr|gogglesmm-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Goggles Music Manager
Name:		gogglesmm
Version:	1.2.4
Release:	1
Group:		Sound
License:	GPLv3+
Url:		https://github.com/gogglesmm/gogglesmm
Source0:	https://github.com/gogglesmm/gogglesmm/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake >= 3.4
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fox17) >= 1.7.74
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3) >= 3.6.19
BuildRequires:	pkgconfig(taglib) >= 1.9.0
BuildRequires:	pkgconfig(taglib-extras)
BuildRequires:	pkgconfig(zlib)
# Output support
BuildRequires:	pkgconfig(alsa) >= 1.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse) >= 0.9.21
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(x11)
# Input support
BuildRequires:	cdda-devel
BuildRequires:	libmp4v2-devel
BuildRequires:	pkgconfig(smbclient)
# Codec support
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(faad2)
BuildRequires:	pkgconfig(flac) >= 1.2
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjpeg1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(mad) >= 0.15
BuildRequires:	pkgconfig(ogg) >= 1.0
BuildRequires:	pkgconfig(opus) >= 1.0
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(vorbis) >= 1.2
BuildRequires:	pkgconfig(wavpack)

%description
Goggles Music Manager is a music collection manager and player that 
automatically categorizes your music files based on genre, artist, album and
song. It supports gapless playback and features easy tag editing.

%files -f %{name}.lang
%doc README ChangeLog AUTHORS COPYING
%{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libgap_*.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

cp ./cfox/lib/icons.cpp ./src/

%build
# Using the provided libfox sources causes the build to fail
%cmake	-DCMAKE_INSTALL_LIBDIR="%{_libdir}" \
		-DCMAKE_BUILD_TYPE="Release" \
		-DWITH_CFOX=OFF
%make


%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2049 |21cr|gogs-0.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Based on:
# https://cgit.freebsd.org/ports/tree/devel/gogs/Makefile
# https://github.com/void-linux/void-packages/blob/master/srcpkgs/gogs/template
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=gogs

# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=off
%global goipath gogs.io/gogs
%global forgeurl https://github.com/gogs/gogs
%global gobuildflags %{gobuildflags} -tags "pam cert"

Summary:	Self-hosted git service
Name:		gogs
Version:	0.13.2
Release:	1
License:	MIT
Group:		Development/Other
Url:		https://gogs.io
Source0:	https://github.com/gogs/gogs/archive/refs/tags/v%{version}.tar.gz?/gogs-%{version}.tar.gz
Patch1:		rosa-gogs-config.diff
# go mod vendor, created with ./upd.sh
Source1:	gogs-%{version}-go-mod-vendor.tar.xz
Source2:	gogs.sysusers.conf
Source3:	gogs.service
Source4:	service.d-ports
Source5:	service.d-ssh
BuildRequires:	golang
BuildRequires:	pam-devel
Requires:	git-core
# see Source5
Recommends:	openssh-server
%if %{mdvver} >= 202310
Requires(pre):	%{_bindir}/systemd-sysusers
%else
Requires(pre):	/bin/systemd-sysusers
%endif
# shell of user gogs, not /sbin/nologin for git via ssh
Requires:	%{_bindir}/bash
%gometa

%description
The goal of this project is to make the easiest, fastest, and most painless way
of setting up a self-hosted Git service. It is similar to GitHub, Bitbucket and Gitlab.

%pre
%sysusers_create_package gogs %{SOURCE2}

%post
%systemd_post gogs.service

%preun
%systemd_preun gogs.service

%files
%license LICENSE
%doc *.md
%{_bindir}/gogs
%dir %attr(0750,gogs,gogs) /var/lib/gogs
%dir %attr(0750,gogs,gogs) /var/log/gogs
%dir %{_sysconfdir}/gogs
%config(noreplace) %attr(0660,root,gogs) %{_sysconfdir}/gogs/app.ini
%dir %{_sysconfdir}/systemd/system/gogs.service.d
%config(noreplace) %{_sysconfdir}/systemd/system/gogs.service.d/port.conf
%config(noreplace) %{_sysconfdir}/systemd/system/gogs.service.d/ssh.conf
%{_unitdir}/gogs.service
%{_sysusersdir}/gogs.conf
%{_datadir}/doc/gogs/default-app.ini

#-----------------------------------------------------------------------------

%prep
%goprep
%autopatch -p1

%build
( cd .. && tar -xf %{SOURCE1} )
mv vendor src
export GOPATH="$PWD:$GOPATH"
%gobuild -o %{gobuilddir}/bin/gogs gogs.go

%install
install -Dm 0755 %{gobuilddir}/bin/gogs %{buildroot}%{_bindir}/gogs
mkdir -p %{buildroot}/var/lib/%{name}
mkdir -p %{buildroot}/var/log/%{name}
install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/gogs.service
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/gogs.service.d
install -Dm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/systemd/system/gogs.service.d/port.conf
install -Dm 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/systemd/system/gogs.service.d/ssh.conf
install -Dm 0660 conf/app.ini %{buildroot}%{_sysconfdir}/%{name}/app.ini
install -Dm 0644 conf/app.ini %{buildroot}%{_datadir}/doc/%{name}/default-app.ini

# sysusers config
mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/gogs.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2050 |21cr|goldendict-1.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define rev rc2.11

Summary:	A feature-rich dictionary lookup program
Name:		goldendict
Version:	1.5.0
Release:	2
Epoch:		1
Group:		Office
License:	GPLv3+
Url:		http://goldendict.org

Source0:	https://github.com/goldendict/goldendict/releases/tag/1.5.0/%{name}-%{version}.tar.gz
BuildRequires:	bzip2-devel
BuildRequires:	desktop-file-utils
BuildRequires:	eb-devel
BuildRequires:	git
BuildRequires:	liblzo-devel
BuildRequires:	libtiff-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libva)
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	libva-utils
BuildRequires:	%{_lib}ao-devel
BuildRequires:	%{_lib}zstd-devel

%description
Goldendict is a feature-rich dictionary lookup program.
The latest release has the following features:
Use of WebKit for an accurate articles' representation;
Support of multiple dictionary file formats;
Support MediaWiki-based sites to perform search;
Scan popup functionality.

%files
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/locale/
%{_bindir}/%{name}
%{_datadir}/applications/org.goldendict.GoldenDict.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/help
%{_datadir}/%{name}/locale/*.qm
%{_appdatadir}/org.goldendict.GoldenDict.metainfo.xml

#----------------------------------------------

%prep
%setup -q

%build
%qmake_qt5 PREFIX=%{_prefix} CONFIG+=no_ffmpeg_player %{name}.pro
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

%ifarch %{riscv}
mkdir -p %{buildroot}%{_datadir}/%{name}/locale
cp -f locale/*.qm %{buildroot}%{_datadir}/%{name}/locale/
%endif

rm -rf %{buildroot}%{_datadir}/app-install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2051 |21cr|gonvert-0.2.39-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gonvert
Version:	0.2.39
Release:	1
Summary:        Units conversion utility
Group:          Sciences/Mathematics
License:        GPLv2
URL:            http://unihedron.com/projects/gonvert
Source0:        http://unihedron.com/projects/gonvert/downloads/%{name}-%{version}.tar.gz
BuildRequires:  desktop-file-utils
Requires:       python
Requires:       pygtk2.0-libglade
BuildArch:      noarch

%description
gonvert is a conversion utility that allows conversion between many units
like CGS, Ancient, Imperial with many categories like length, mass, numbers,
etc. All units converted values shown at once as you type. Easy to add/change
your own units. Written in Python, pygtk, libglade.


%prep
%setup -q

# remove execute bits from doc files
chmod -x doc/*

# fix encoding on THANKS and TODO files
pushd doc >/dev/null
iconv -f iso8859-1 -t utf-8 THANKS > THANKS.conv && mv -f THANKS.conv THANKS
iconv -f iso8859-1 -t utf-8 TODO > TODO.conv && mv -f TODO.conv TODO
popd >/dev/null


%build
# there's nothing that needs built

%install
make DESTDIR=%{buildroot} prefix=%{_prefix} install
rm -rf %{buildroot}%{_docdir}/%{name}
desktop-file-install --dir %{buildroot}/%{_datadir}/applications %{name}.desktop
rm -rf %{buildroot}/%{_datadir}/gnome/apps/Utilities/gonvert.desktop

%files
%doc doc/CHANGELOG doc/FAQ doc/README doc/THANKS doc/TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/gonvert*.png
%{_datadir}/appdata/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2052 |21cr|goobox-3.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CD player and ripper for GNOME
Name:		goobox
Version:	3.5.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/GNOME/goobox
# Pick up a master snapshot at 2018/12/16 because release tarballs
# for stable 3.4.3 have broken autotools stuff
Source0:	https://github.com/GNOME/goobox/archive/%{name}-master.zip
BuildRequires:	intltool >= 0.35.0
BuildRequires:	itstool 
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	coverart-devel
BuildRequires:	pkgconfig(glib-2.0) >= 2.36
BuildRequires:	pkgconfig(gstreamer-1.0) >= 1.0.0
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.10.0
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libbrasero-media3)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(libmusicbrainz5) >= 5.0.0
BuildRequires:	pkgconfig(libnotify) >= 0.4.3
BuildRequires:	pkgconfig(sm)
Requires:	gstreamer1.0-plugins-good

%description
Goobox is a CD player and ripper that always knows just what to do.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_bindir}/%{name}
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/applications/org.gnome.Goobox.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*.*
%{_datadir}/metainfo/org.gnome.Goobox.appdata.xml

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-master


%build
%meson
%meson_build


%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2053 |21cr|goocanvas-1.0.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname goocanvas %{major}
%define develname %mklibname -d goocanvas

Name:		goocanvas
Version:	1.0.0
Release:	12
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		Development/GNOME and GTK+
License:	LGPL+
URL:		http://sourceforge.net/projects/goocanvas
Source:		http://ftp.gnome.org/pub/GNOME/sources/goocanvas/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	gnome-doc-utils
BuildRequires:	intltool

%description
GooCanvas is a new canvas widget for GTK+ that uses the cairo 2D library for 
drawing. It has a model/view split, and uses interfaces for canvas items and 
views, so you can easily turn any application object into canvas items.

%package -n %{libname}
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		System/Libraries
Requires:	%{name}-i18n >= %{version}
Provides:	lib%{name} = %{version}-%{release}

%description -n %{libname}
This package contains the shared library for goocanvas.

%package i18n
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		System/Internationalization

%description i18n
This package contains the translations for goocanvas.

%package -n %{develname}
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the development libraries, include files 
and documentation.

%prep
%setup -q

%build
%configure --disable-static
%make LIBS=-lm

%install
%makeinstall_std

%find_lang %{name}

%files -n %{libname}
%doc README COPYING AUTHORS
%{_libdir}/libgoocanvas.so.%{major}*

%files i18n -f %{name}.lang

%files -n %{develname}
%doc %{_datadir}/gtk-doc/html/%{name}
%{_includedir}/%{name}-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2054 |21cr|goocanvas2-2.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define oname goocanvas

%define major 9
%define api 2.0
%define gmajor 2.0
%define libname %mklibname %{oname} %{api} %{major}
%define devname %mklibname %{oname} %{api} -d
%define girname %mklibname %{oname}-gir %{gmajor}

%define url_ver %(echo %version | cut -d. -f1,2)

Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Name:		goocanvas2
Version:	2.0.4
Release:	1
License:	LGPLv2.1+
Group:		Development/GNOME and GTK+
Url:		http://sourceforge.net/projects/goocanvas
Source0:	http://download.gnome.org/sources/%{oname}/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
GooCanvas is a new canvas widget for GTK+ that uses the cairo 2D library for
drawing. It has a model/view split, and uses interfaces for canvas items and
views, so you can easily turn any application object into canvas items.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		System/Libraries
Requires:	%{name}-i18n >= %{EVRD}

%description -n %{libname}
This package contains the shared library for goocanvas.

%files -n %{libname}
%doc README COPYING AUTHORS
%{_libdir}/lib%{oname}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GooCanvas-%{gmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development libraries, include files 
and documentation.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/goocanvas2
%{_includedir}/%{oname}-%{api}
%{_libdir}/lib%{oname}-%{api}.so
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/GooCanvas-%{gmajor}.gir

#----------------------------------------------------------------------------

%package i18n
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		System/Internationalization

%description i18n
This package contains the translations for goocanvas.

%files i18n -f goocanvas2.lang

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%configure \
	--enable-introspection=yes \
	--disable-static
%make LIBS=-lm

%install
%makeinstall_std

%find_lang goocanvas2


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2055 |21cr|goocanvasmm-1.90.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %version | cut -d. -f1,2)

%define api 2.0
%define major 6
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ wrappers for goocanvas
Name:		goocanvasmm
Version:	1.90.11
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gtkmm.org
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		goocanvasmm-goocanvas3.patch
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(goocanvas-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)

%description
C++ wrappers for goocanvas.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ wrappers for goocanvas
Group:		System/Libraries

%description -n %{libname}
C++ wrappers for goocanvas.

%files -n %{libname}
%{_libdir}/libgoocanvasmm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
C++ wrappers for goocanvas.

This package contains all necessary files to compile or develop
programs/libraries that use %{name}.

%files -n %{devname}
%doc %{_datadir}/devhelp/books/%{name}-%{api}
%doc %{_datadir}/doc/%{name}-%{api}
%{_includedir}/%{name}-%{api}
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/%{name}-%{api}/include

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2056 |21cr|google-croscore-fonts-1.23.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname google-croscore
%global fontconf62 62-%{fontname}
%global fontconf30 30-0-%{fontname}

%global common_desc \
This package contains a collections of fonts that offers improved on-screen \
readability characteristics and the pan-European WGL character set and solves \
the needs of developers looking for width-compatible fonts to address document \
portability across platforms.


Name:           %{fontname}-fonts
Version:        1.23.0
Release:        4
Summary:        The width-compatible fonts for improved on-screen readability

Group:          System/Fonts/True type
License:        ASL 2.0
#URL:            
Source0:        http://gsdview.appspot.com/chromeos-localmirror/distfiles/croscorefonts-%{version}.tar.gz
Source1:        62-%{fontname}-arimo-fontconfig.conf
Source2:        62-%{fontname}-cousine-fontconfig.conf
Source3:        62-%{fontname}-tinos-fontconfig.conf
Source4:        30-0-%{fontname}-arimo-fontconfig.conf
Source5:        30-0-%{fontname}-cousine-fontconfig.conf
Source6:        30-0-%{fontname}-tinos-fontconfig.conf
Source7:        62-%{fontname}-symbolneu-fontconfig.conf

# Upstream has not provided license text in this 1.23.0 release
# Add ASL2.0 license text in LICENSE-2.0.txt file
Source8:        LICENSE-2.0.txt

BuildArch:      noarch
BuildRequires:  fontpackages-devel

%description
%common_desc


%package common
Summary:        Common files of %{name}
Requires:       fontpackages-filesystem

%description common
This package consists of files used by other %{name} packages.

# Repeat for every font family
%package -n %{fontname}-arimo-fonts
Summary:       The croscore Arimo family fonts 
Requires:       %{name}-common = %{version}-%{release}

%description -n %{fontname}-arimo-fonts
%common_desc
Arimo was designed by Steve Matteson as an innovative, refreshing sans serif
design that is metrically compatible with Arial. Arimo offers improved 
on-screen readability characteristics and the pan-European WGL character set 
and solves the needs of developers looking for width-compatible fonts to 
address document portability across platforms.

%_font_pkg -n arimo -f *-%{fontname}-arimo.conf Arimo*.ttf

%package -n %{fontname}-cousine-fonts
Summary:       The croscore Cousine family fonts
Requires:       %{name}-common = %{version}-%{release}

%description -n %{fontname}-cousine-fonts
%common_desc
Cousine was designed by Steve Matteson as an innovative, refreshing sans serif
design that is metrically compatible with Courier New. Cousine offers improved
on-screen readability characteristics and the pan-European WGL character set
and solves the needs of developers looking for width-compatible fonts to 
address document portability across platforms.

%_font_pkg -n cousine -f *-%{fontname}-cousine.conf  Cousine*.ttf

%package -n %{fontname}-tinos-fonts
Summary:       The croscore Tinos family fonts
Requires:       %{name}-common = %{version}-%{release}

%description -n %{fontname}-tinos-fonts
%common_desc
Tinos was designed by Steve Matteson as an innovative, refreshing serif design
that is metrically compatible with Times New Roman. Tinos offers improved
on-screen readability characteristics and the pan-European WGL character set
and solves the needs of developers looking for width-compatible fonts to
address document portability across platforms.

%_font_pkg -n tinos -f *-%{fontname}-tinos.conf Tinos*.ttf

%package -n %{fontname}-symbolneu-fonts
Summary:       The croscore Symbol Neu family fonts
Requires:       %{name}-common = %{version}-%{release}

%description -n %{fontname}-symbolneu-fonts
%common_desc
Symbol Neu is a metrically compatible font to Symbol.

%_font_pkg -n symbolneu -f *-%{fontname}-symbolneu.conf SymbolNeu.ttf

%prep
%setup -q -n croscorefonts-%{version}
cp -p %{SOURCE8} .

%build


%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                   %{buildroot}%{_fontconfig_confdir}

# Repeat for every font family
install -m 0644 -p %{SOURCE1} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf62}-arimo.conf
install -m 0644 -p %{SOURCE2} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf62}-cousine.conf
install -m 0644 -p %{SOURCE3} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf62}-tinos.conf
install -m 0644 -p %{SOURCE4} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-arimo.conf
install -m 0644 -p %{SOURCE5} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-cousine.conf
install -m 0644 -p %{SOURCE6} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-tinos.conf
install -m 0644 -p %{SOURCE7} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf62}-symbolneu.conf

for fconf in %{fontconf62}-arimo.conf %{fontconf30}-arimo.conf \
             %{fontconf62}-cousine.conf %{fontconf30}-cousine.conf \
             %{fontconf62}-tinos.conf %{fontconf30}-tinos.conf \
       %{fontconf62}-symbolneu.conf; do
  ln -s %{_fontconfig_templatedir}/$fconf \
        %{buildroot}%{_fontconfig_confdir}/$fconf
done


%files common
%doc LICENSE-2.0.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2057 |21cr|google-noto-fonts-20171024-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define hyear 2017
%define hmonth 10
%define hday 24
%define src_name NotoFonts

%define _ttfontsdir %{_datadir}/fonts/TTF/

Summary:	Noto Font Families
Name:		google-noto-fonts
Version:	%{hyear}%{hmonth}%{hday}
Release:	3
License:	OFL
Group:		System/Fonts/True type
Url:		https://github.com/googlei18n/noto-fonts
Source0:	https://noto-website-2.storage.googleapis.com/pkgs/Noto-hinted.zip
Source1:	https://noto-website-2.storage.googleapis.com/pkgs/NotoSansCJK.ttc.zip
Source2:	generate-specfile.sh
Source3:	59-noto-sans-cjk.conf
Source4:	emoji_fonts.tar.gz
Source10:	google-noto-fonts.rpmlintrc
BuildRequires:	fontpackages-devel
BuildRequires:	unzip
BuildArch:	noarch

%description
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages.

#------------------------------------------------------------------------

%package doc
Summary: Noto Font Families License
Group: System/Fonts/True type

%description doc
License for Google's Noto fonts.

%files doc
%doc LICENSE*.txt

#------------------------------------------------------------------------

%package -n noto-coloremoji-fonts
Summary:	Noto Color Emoji Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-coloremoji < %{EVRD}
Provides:	noto-coloremoji

%description -n noto-coloremoji-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
ColorEmoji font, hinted.

%files -n noto-coloremoji-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoColorEmoji*.?tf

#------------------------------------------------------------------------

%package -n noto-emoji-fonts
Summary:	Noto Emoji Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-emoji < %{EVRD}
Provides:	noto-emoji

%description -n noto-emoji-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Emoji font, hinted.

%files -n noto-emoji-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoEmoji-*.?tf

#------------------------------------------------------------------------

%package -n noto-kufiarabic-fonts
Summary:	Noto Kufi Arabic Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-kufiarabic < %{EVRD}
Provides:	noto-kufiarabic

%description -n noto-kufiarabic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
KufiArabic font, hinted.

%files -n noto-kufiarabic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoKufiArabic-*.?tf

#------------------------------------------------------------------------

%package -n noto-mono-fonts
Summary:	Noto Mono Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-mono < %{EVRD}
Provides:	noto-mono

%description -n noto-mono-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
 Mono font, hinted.

%files -n noto-mono-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoMono-*.?tf

#------------------------------------------------------------------------

%package -n noto-naskharabic-fonts
Summary:	Noto Naskh Arabic Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-naskharabic < %{EVRD}
Provides:	noto-naskharabic

%description -n noto-naskharabic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
NaskhArabic font, hinted.

%files -n noto-naskharabic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoNaskhArabic-*.?tf

#------------------------------------------------------------------------

%package -n noto-naskharabic-ui-fonts
Summary:	Noto Naskh Arabic Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-naskharabic-ui < %{EVRD}
Provides:	noto-naskharabic-ui

%description -n noto-naskharabic-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
NaskhArabic font, hinted.

%files -n noto-naskharabic-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoNaskhArabicUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-nastaliqurdu-fonts
Summary:	Noto Nastaliq Urdu Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-nastaliqurdu < %{EVRD}
Provides:	noto-nastaliqurdu

%description -n noto-nastaliqurdu-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
NastaliqUrdu font, hinted.

%files -n noto-nastaliqurdu-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoNastaliqUrdu-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-fonts
Summary:	Noto Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans < %{EVRD}
Provides:	noto-sans

%description -n noto-sans-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
 Sans Serif font, hinted.

%files -n noto-sans-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSans-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-adlam-fonts
Summary:	Noto Adlam Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-adlam < %{EVRD}
Provides:	noto-sans-adlam

%description -n noto-sans-adlam-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Adlam Sans Serif font, hinted.

%files -n noto-sans-adlam-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansAdlam-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-adlamunjoined-fonts
Summary:	Noto Adlam Unjoined Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-adlamunjoined < %{EVRD}
Provides:	noto-sans-adlamunjoined

%description -n noto-sans-adlamunjoined-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
AdlamUnjoined Sans Serif font, hinted.

%files -n noto-sans-adlamunjoined-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansAdlamUnjoined-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-anatolianhieroglyphs-fonts
Summary:	Noto Anatolian Hieroglyphs Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-anatolianhieroglyphs < %{EVRD}
Provides:	noto-sans-anatolianhieroglyphs

%description -n noto-sans-anatolianhieroglyphs-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
AnatolianHieroglyphs Sans Serif font, hinted.

%files -n noto-sans-anatolianhieroglyphs-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansAnatolianHieroglyphs-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-arabic-fonts
Summary:	Noto Arabic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-arabic < %{EVRD}
Provides:	noto-sans-arabic

%description -n noto-sans-arabic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Arabic Sans Serif font, hinted.

%files -n noto-sans-arabic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansArabic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-arabic-ui-fonts
Summary:	Noto Arabic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-arabic-ui < %{EVRD}
Provides:	noto-sans-arabic-ui

%description -n noto-sans-arabic-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Arabic Sans Serif font, hinted.

%files -n noto-sans-arabic-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansArabicUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-armenian-fonts
Summary:	Noto Armenian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-armenian < %{EVRD}
Provides:	noto-sans-armenian

%description -n noto-sans-armenian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Armenian Sans Serif font, hinted.

%files -n noto-sans-armenian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansArmenian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-avestan-fonts
Summary:	Noto Avestan Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-avestan < %{EVRD}
Provides:	noto-sans-avestan

%description -n noto-sans-avestan-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Avestan Sans Serif font, hinted.

%files -n noto-sans-avestan-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansAvestan-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-balinese-fonts
Summary:	Noto Balinese Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-balinese < %{EVRD}
Provides:	noto-sans-balinese

%description -n noto-sans-balinese-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Balinese Sans Serif font, hinted.

%files -n noto-sans-balinese-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansBalinese-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-bamum-fonts
Summary:	Noto Bamum Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-bamum < %{EVRD}
Provides:	noto-sans-bamum

%description -n noto-sans-bamum-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Bamum Sans Serif font, hinted.

%files -n noto-sans-bamum-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansBamum-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-batak-fonts
Summary:	Noto Batak Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-batak < %{EVRD}
Provides:	noto-sans-batak

%description -n noto-sans-batak-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Batak Sans Serif font, hinted.

%files -n noto-sans-batak-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansBatak-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-bengali-fonts
Summary:	Noto Bengali Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-bengali < %{EVRD}
Provides:	noto-sans-bengali

%description -n noto-sans-bengali-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Bengali Sans Serif font, hinted.

%files -n noto-sans-bengali-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansBengali-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-bengali-ui-fonts
Summary:	Noto Bengali Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-bengali-ui < %{EVRD}
Provides:	noto-sans-bengali-ui

%description -n noto-sans-bengali-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Bengali Sans Serif font, hinted.

%files -n noto-sans-bengali-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansBengaliUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-brahmi-fonts
Summary:	Noto Brahmi Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-brahmi < %{EVRD}
Provides:	noto-sans-brahmi

%description -n noto-sans-brahmi-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Brahmi Sans Serif font, hinted.

%files -n noto-sans-brahmi-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansBrahmi-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-buginese-fonts
Summary:	Noto Buginese Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-buginese < %{EVRD}
Provides:	noto-sans-buginese

%description -n noto-sans-buginese-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Buginese Sans Serif font, hinted.

%files -n noto-sans-buginese-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansBuginese-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-buhid-fonts
Summary:	Noto Buhid Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-buhid < %{EVRD}
Provides:	noto-sans-buhid

%description -n noto-sans-buhid-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Buhid Sans Serif font, hinted.

%files -n noto-sans-buhid-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansBuhid-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-canadianaboriginal-fonts
Summary:	Noto Canadian Aboriginal Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-canadianaboriginal < %{EVRD}
Provides:	noto-sans-canadianaboriginal

%description -n noto-sans-canadianaboriginal-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
CanadianAboriginal Sans Serif font, hinted.

%files -n noto-sans-canadianaboriginal-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansCanadianAboriginal-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-carian-fonts
Summary:	Noto Carian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-carian < %{EVRD}
Provides:	noto-sans-carian

%description -n noto-sans-carian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Carian Sans Serif font, hinted.

%files -n noto-sans-carian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansCarian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-chakma-fonts
Summary:	Noto Chakma Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-chakma < %{EVRD}
Provides:	noto-sans-chakma

%description -n noto-sans-chakma-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Chakma Sans Serif font, hinted.

%files -n noto-sans-chakma-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansChakma-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-cham-fonts
Summary:	Noto Cham Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-cham < %{EVRD}
Provides:	noto-sans-cham

%description -n noto-sans-cham-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Cham Sans Serif font, hinted.

%files -n noto-sans-cham-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansCham-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-cherokee-fonts
Summary:	Noto Cherokee Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-cherokee < %{EVRD}
Provides:	noto-sans-cherokee

%description -n noto-sans-cherokee-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Cherokee Sans Serif font, hinted.

%files -n noto-sans-cherokee-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansCherokee-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-cjk-fonts
Summary:	Noto CJK Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-cjk < %{EVRD}
Provides:	noto-sans-cjk
Obsoletes:	noto-sans-cjkjp < %{EVRD}
Provides:	noto-sans-cjkjp
Obsoletes:	noto-sans-cjkjp-fonts < %{EVRD}
Provides:	noto-sans-cjkjp-fonts
Obsoletes:	noto-sans-cjkkr < %{EVRD}
Provides:	noto-sans-cjkkr
Obsoletes:	noto-sans-cjkkr-fonts < %{EVRD}
Provides:	noto-sans-cjkkr-fonts
Obsoletes:	noto-sans-cjksc < %{EVRD}
Provides:	noto-sans-cjksc
Obsoletes:	noto-sans-cjksc-fonts < %{EVRD}
Provides:	noto-sans-cjksc-fonts
Obsoletes:	noto-sans-cjktc < %{EVRD}
Provides:	noto-sans-cjktc
Obsoletes:	noto-sans-cjktc-fonts < %{EVRD}
Provides:	noto-sans-cjktc-fonts
Provides:	scalable-font-zh-CN
Provides:	scalable-font-zh-SG
Provides:	scalable-font-zh-TW
Provides:	scalable-font-zh-HK
Provides:	scalable-font-zh-MO
Provides:	scalable-font-ja
Provides:	scalable-font-ko
Provides:	locale(zh_CN;zh_SG;zh_TW;zh_HK;zh_MO)

%description -n noto-sans-cjk-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
CJK Sans Serif font, hinted.

%files -n noto-sans-cjk-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansCJK*.*
%{_fontconfig_templatedir}/59*.conf
%config(noreplace) %{_fontconfig_confdir}/59*.conf

#------------------------------------------------------------------------

%package -n noto-sans-coptic-fonts
Summary:	Noto Coptic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-coptic < %{EVRD}
Provides:	noto-sans-coptic

%description -n noto-sans-coptic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Coptic Sans Serif font, hinted.

%files -n noto-sans-coptic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansCoptic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-cuneiform-fonts
Summary:	Noto Cuneiform Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-cuneiform < %{EVRD}
Provides:	noto-sans-cuneiform

%description -n noto-sans-cuneiform-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Cuneiform Sans Serif font, hinted.

%files -n noto-sans-cuneiform-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansCuneiform-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-cypriot-fonts
Summary:	Noto Cypriot Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-cypriot < %{EVRD}
Provides:	noto-sans-cypriot

%description -n noto-sans-cypriot-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Cypriot Sans Serif font, hinted.

%files -n noto-sans-cypriot-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansCypriot-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-deseret-fonts
Summary:	Noto Deseret Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-deseret < %{EVRD}
Provides:	noto-sans-deseret

%description -n noto-sans-deseret-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Deseret Sans Serif font, hinted.

%files -n noto-sans-deseret-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansDeseret-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-devanagari-fonts
Summary:	Noto Devanagari Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-devanagari < %{EVRD}
Provides:	noto-sans-devanagari

%description -n noto-sans-devanagari-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Devanagari Sans Serif font, hinted.

%files -n noto-sans-devanagari-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansDevanagari-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-devanagari-ui-fonts
Summary:	Noto Devanagari Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-devanagari-ui < %{EVRD}
Provides:	noto-sans-devanagari-ui

%description -n noto-sans-devanagari-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Devanagari Sans Serif font, hinted.

%files -n noto-sans-devanagari-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansDevanagariUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-display-fonts
Summary:	Noto Display Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-display < %{EVRD}
Provides:	noto-sans-display

%description -n noto-sans-display-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Display Sans Serif font, hinted.

%files -n noto-sans-display-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansDisplay-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-egyptianhieroglyphs-fonts
Summary:	Noto Egyptian Hieroglyphs Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-egyptianhieroglyphs < %{EVRD}
Provides:	noto-sans-egyptianhieroglyphs

%description -n noto-sans-egyptianhieroglyphs-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
EgyptianHieroglyphs Sans Serif font, hinted.

%files -n noto-sans-egyptianhieroglyphs-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansEgyptianHieroglyphs-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-ethiopic-fonts
Summary:	Noto Ethiopic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-ethiopic < %{EVRD}
Provides:	noto-sans-ethiopic

%description -n noto-sans-ethiopic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Ethiopic Sans Serif font, hinted.

%files -n noto-sans-ethiopic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansEthiopic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-georgian-fonts
Summary:	Noto Georgian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-georgian < %{EVRD}
Provides:	noto-sans-georgian

%description -n noto-sans-georgian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Georgian Sans Serif font, hinted.

%files -n noto-sans-georgian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansGeorgian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-glagolitic-fonts
Summary:	Noto Glagolitic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-glagolitic < %{EVRD}
Provides:	noto-sans-glagolitic

%description -n noto-sans-glagolitic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Glagolitic Sans Serif font, hinted.

%files -n noto-sans-glagolitic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansGlagolitic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-gothic-fonts
Summary:	Noto Gothic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-gothic < %{EVRD}
Provides:	noto-sans-gothic

%description -n noto-sans-gothic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Gothic Sans Serif font, hinted.

%files -n noto-sans-gothic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansGothic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-gujarati-fonts
Summary:	Noto Gujarati Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-gujarati < %{EVRD}
Provides:	noto-sans-gujarati

%description -n noto-sans-gujarati-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Gujarati Sans Serif font, hinted.

%files -n noto-sans-gujarati-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansGujarati-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-gujarati-ui-fonts
Summary:	Noto Gujarati Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-gujarati-ui < %{EVRD}
Provides:	noto-sans-gujarati-ui

%description -n noto-sans-gujarati-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Gujarati Sans Serif font, hinted.

%files -n noto-sans-gujarati-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansGujaratiUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-gurmukhi-fonts
Summary:	Noto Gurmukhi Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-gurmukhi < %{EVRD}
Provides:	noto-sans-gurmukhi

%description -n noto-sans-gurmukhi-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Gurmukhi Sans Serif font, hinted.

%files -n noto-sans-gurmukhi-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansGurmukhi-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-gurmukhi-ui-fonts
Summary:	Noto Gurmukhi Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-gurmukhi-ui < %{EVRD}
Provides:	noto-sans-gurmukhi-ui

%description -n noto-sans-gurmukhi-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Gurmukhi Sans Serif font, hinted.

%files -n noto-sans-gurmukhi-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansGurmukhiUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-hanunoo-fonts
Summary:	Noto Hanunoo Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-hanunoo < %{EVRD}
Provides:	noto-sans-hanunoo

%description -n noto-sans-hanunoo-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Hanunoo Sans Serif font, hinted.

%files -n noto-sans-hanunoo-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansHanunoo-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-hebrew-fonts
Summary:	Noto Hebrew Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-hebrew < %{EVRD}
Provides:	noto-sans-hebrew

%description -n noto-sans-hebrew-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Hebrew Sans Serif font, hinted.

%files -n noto-sans-hebrew-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansHebrew-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-imperialaramaic-fonts
Summary:	Noto Imperial Aramaic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-imperialaramaic < %{EVRD}
Provides:	noto-sans-imperialaramaic

%description -n noto-sans-imperialaramaic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
ImperialAramaic Sans Serif font, hinted.

%files -n noto-sans-imperialaramaic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansImperialAramaic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-inscriptionalpahlavi-fonts
Summary:	Noto Inscriptional Pahlavi Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-inscriptionalpahlavi < %{EVRD}
Provides:	noto-sans-inscriptionalpahlavi

%description -n noto-sans-inscriptionalpahlavi-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
InscriptionalPahlavi Sans Serif font, hinted.

%files -n noto-sans-inscriptionalpahlavi-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansInscriptionalPahlavi-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-inscriptionalparthian-fonts
Summary:	Noto Inscriptional Parthian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-inscriptionalparthian < %{EVRD}
Provides:	noto-sans-inscriptionalparthian

%description -n noto-sans-inscriptionalparthian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
InscriptionalParthian Sans Serif font, hinted.

%files -n noto-sans-inscriptionalparthian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansInscriptionalParthian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-javanese-fonts
Summary:	Noto Javanese Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-javanese < %{EVRD}
Provides:	noto-sans-javanese

%description -n noto-sans-javanese-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Javanese Sans Serif font, hinted.

%files -n noto-sans-javanese-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansJavanese-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-kaithi-fonts
Summary:	Noto Kaithi Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-kaithi < %{EVRD}
Provides:	noto-sans-kaithi

%description -n noto-sans-kaithi-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Kaithi Sans Serif font, hinted.

%files -n noto-sans-kaithi-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansKaithi-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-kannada-fonts
Summary:	Noto Kannada Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-kannada < %{EVRD}
Provides:	noto-sans-kannada

%description -n noto-sans-kannada-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Kannada Sans Serif font, hinted.

%files -n noto-sans-kannada-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansKannada-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-kannada-ui-fonts
Summary:	Noto Kannada Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-kannada-ui < %{EVRD}
Provides:	noto-sans-kannada-ui

%description -n noto-sans-kannada-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Kannada Sans Serif font, hinted.

%files -n noto-sans-kannada-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansKannadaUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-kayahli-fonts
Summary:	Noto Kayah Li Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-kayahli < %{EVRD}
Provides:	noto-sans-kayahli

%description -n noto-sans-kayahli-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
KayahLi Sans Serif font, hinted.

%files -n noto-sans-kayahli-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansKayahLi-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-kharoshthi-fonts
Summary:	Noto Kharoshthi Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-kharoshthi < %{EVRD}
Provides:	noto-sans-kharoshthi

%description -n noto-sans-kharoshthi-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Kharoshthi Sans Serif font, hinted.

%files -n noto-sans-kharoshthi-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansKharoshthi-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-khmer-fonts
Summary:	Noto Khmer Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-khmer < %{EVRD}
Provides:	noto-sans-khmer

%description -n noto-sans-khmer-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Khmer Sans Serif font, hinted.

%files -n noto-sans-khmer-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansKhmer-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-khmer-ui-fonts
Summary:	Noto Khmer Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-khmer-ui < %{EVRD}
Provides:	noto-sans-khmer-ui

%description -n noto-sans-khmer-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Khmer Sans Serif font, hinted.

%files -n noto-sans-khmer-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansKhmerUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-lao-fonts
Summary:	Noto Lao Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-lao < %{EVRD}
Provides:	noto-sans-lao

%description -n noto-sans-lao-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Lao Sans Serif font, hinted.

%files -n noto-sans-lao-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansLao-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-lao-ui-fonts
Summary:	Noto Lao Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-lao-ui < %{EVRD}
Provides:	noto-sans-lao-ui

%description -n noto-sans-lao-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Lao Sans Serif font, hinted.

%files -n noto-sans-lao-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansLaoUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-lepcha-fonts
Summary:	Noto Lepcha Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-lepcha < %{EVRD}
Provides:	noto-sans-lepcha

%description -n noto-sans-lepcha-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Lepcha Sans Serif font, hinted.

%files -n noto-sans-lepcha-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansLepcha-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-limbu-fonts
Summary:	Noto Limbu Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-limbu < %{EVRD}
Provides:	noto-sans-limbu

%description -n noto-sans-limbu-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Limbu Sans Serif font, hinted.

%files -n noto-sans-limbu-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansLimbu-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-linearb-fonts
Summary:	Noto Linear B Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-linearb < %{EVRD}
Provides:	noto-sans-linearb

%description -n noto-sans-linearb-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
LinearB Sans Serif font, hinted.

%files -n noto-sans-linearb-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansLinearB-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-lisu-fonts
Summary:	Noto Lisu Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-lisu < %{EVRD}
Provides:	noto-sans-lisu

%description -n noto-sans-lisu-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Lisu Sans Serif font, hinted.

%files -n noto-sans-lisu-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansLisu-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-lycian-fonts
Summary:	Noto Lycian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-lycian < %{EVRD}
Provides:	noto-sans-lycian

%description -n noto-sans-lycian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Lycian Sans Serif font, hinted.

%files -n noto-sans-lycian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansLycian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-lydian-fonts
Summary:	Noto Lydian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-lydian < %{EVRD}
Provides:	noto-sans-lydian

%description -n noto-sans-lydian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Lydian Sans Serif font, hinted.

%files -n noto-sans-lydian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansLydian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-malayalam-fonts
Summary:	Noto Malayalam Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-malayalam < %{EVRD}
Provides:	noto-sans-malayalam

%description -n noto-sans-malayalam-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Malayalam Sans Serif font, hinted.

%files -n noto-sans-malayalam-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMalayalam-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-malayalam-ui-fonts
Summary:	Noto Malayalam Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-malayalam-ui < %{EVRD}
Provides:	noto-sans-malayalam-ui

%description -n noto-sans-malayalam-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Malayalam Sans Serif font, hinted.

%files -n noto-sans-malayalam-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMalayalamUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-mandaic-fonts
Summary:	Noto Mandaic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-mandaic < %{EVRD}
Provides:	noto-sans-mandaic

%description -n noto-sans-mandaic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Mandaic Sans Serif font, hinted.

%files -n noto-sans-mandaic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMandaic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-meeteimayek-fonts
Summary:	Noto Meetei Mayek Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-meeteimayek < %{EVRD}
Provides:	noto-sans-meeteimayek

%description -n noto-sans-meeteimayek-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
MeeteiMayek Sans Serif font, hinted.

%files -n noto-sans-meeteimayek-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMeeteiMayek-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-mongolian-fonts
Summary:	Noto Mongolian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-mongolian < %{EVRD}
Provides:	noto-sans-mongolian

%description -n noto-sans-mongolian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Mongolian Sans Serif font, hinted.

%files -n noto-sans-mongolian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMongolian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-mono-fonts
Summary:	Noto Monospace Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-mono < %{EVRD}
Provides:	noto-sans-mono

%description -n noto-sans-mono-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
 Monospace Sans Serif font, hinted.

%files -n noto-sans-mono-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMono-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-mono-cjk-fonts
Summary:	Noto CJK Monospace Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-mono-cjk < %{EVRD}
Provides:	noto-sans-mono-cjk
Obsoletes:	noto-sans-mono-cjkjp < %{EVRD}
Provides:	noto-sans-mono-cjkjp
Obsoletes:	noto-sans-mono-cjkjp-fonts < %{EVRD}
Provides:	noto-sans-mono-cjkjp-fonts
Obsoletes:	noto-sans-mono-cjkkr < %{EVRD}
Provides:	noto-sans-mono-cjkkr
Obsoletes:	noto-sans-mono-cjkkr-fonts < %{EVRD}
Provides:	noto-sans-mono-cjkkr-fonts
Obsoletes:	noto-sans-mono-cjksc < %{EVRD}
Provides:	noto-sans-mono-cjksc
Obsoletes:	noto-sans-mono-cjksc-fonts < %{EVRD}
Provides:	noto-sans-mono-cjksc-fonts
Obsoletes:	noto-sans-mono-cjktc < %{EVRD}
Provides:	noto-sans-mono-cjktc
Obsoletes:	noto-sans-mono-cjktc-fonts < %{EVRD}
Provides:	noto-sans-mono-cjktc-fonts
Provides:	scalable-font-zh-CN
Provides:	scalable-font-zh-SG
Provides:	scalable-font-zh-TW
Provides:	scalable-font-zh-HK
Provides:	scalable-font-zh-MO
Provides:	scalable-font-ja
Provides:	scalable-font-ko
Provides:	scalable-font-zh-CN
Provides:	scalable-font-zh-SG
Provides:	scalable-font-zh-TW
Provides:	scalable-font-zh-HK
Provides:	scalable-font-zh-MO
Provides:	scalable-font-ja
Provides:	scalable-font-ko
Provides:	locale(zh_CN;zh_SG;zh_TW;zh_HK;zh_MO)

%description -n noto-sans-mono-cjk-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
CJK Monospace Sans Serif font, hinted.

%files -n noto-sans-mono-cjk-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMonoCJK*.*

#------------------------------------------------------------------------

%package -n noto-sans-myanmar-fonts
Summary:	Noto Myanmar Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-myanmar < %{EVRD}
Provides:	noto-sans-myanmar

%description -n noto-sans-myanmar-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Myanmar Sans Serif font, hinted.

%files -n noto-sans-myanmar-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMyanmar-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-myanmar-ui-fonts
Summary:	Noto Myanmar Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-myanmar-ui < %{EVRD}
Provides:	noto-sans-myanmar-ui

%description -n noto-sans-myanmar-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Myanmar Sans Serif font, hinted.

%files -n noto-sans-myanmar-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansMyanmarUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-newtailue-fonts
Summary:	Noto New TaiLue Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-newtailue < %{EVRD}
Provides:	noto-sans-newtailue

%description -n noto-sans-newtailue-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
NewTaiLue Sans Serif font, hinted.

%files -n noto-sans-newtailue-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansNewTaiLue-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-nko-fonts
Summary:	Noto NKo Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-nko < %{EVRD}
Provides:	noto-sans-nko

%description -n noto-sans-nko-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
NKo Sans Serif font, hinted.

%files -n noto-sans-nko-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansNKo-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-ogham-fonts
Summary:	Noto Ogham Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-ogham < %{EVRD}
Provides:	noto-sans-ogham

%description -n noto-sans-ogham-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Ogham Sans Serif font, hinted.

%files -n noto-sans-ogham-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOgham-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-olchiki-fonts
Summary:	Noto Ol Chiki Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-olchiki < %{EVRD}
Provides:	noto-sans-olchiki

%description -n noto-sans-olchiki-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
OlChiki Sans Serif font, hinted.

%files -n noto-sans-olchiki-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOlChiki-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-olditalic-fonts
Summary:	Noto Old Italic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-olditalic < %{EVRD}
Provides:	noto-sans-olditalic

%description -n noto-sans-olditalic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
OldItalic Sans Serif font, hinted.

%files -n noto-sans-olditalic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOldItalic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-oldpersian-fonts
Summary:	Noto Old Persian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-oldpersian < %{EVRD}
Provides:	noto-sans-oldpersian

%description -n noto-sans-oldpersian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
OldPersian Sans Serif font, hinted.

%files -n noto-sans-oldpersian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOldPersian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-oldsoutharabian-fonts
Summary:	Noto Old SouthArabian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-oldsoutharabian < %{EVRD}
Provides:	noto-sans-oldsoutharabian

%description -n noto-sans-oldsoutharabian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
OldSouthArabian Sans Serif font, hinted.

%files -n noto-sans-oldsoutharabian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOldSouthArabian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-oldturkic-fonts
Summary:	Noto Old Turkic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-oldturkic < %{EVRD}
Provides:	noto-sans-oldturkic

%description -n noto-sans-oldturkic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
OldTurkic Sans Serif font, hinted.

%files -n noto-sans-oldturkic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOldTurkic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-oriya-fonts
Summary:	Noto Oriya Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-oriya < %{EVRD}
Provides:	noto-sans-oriya

%description -n noto-sans-oriya-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Oriya Sans Serif font, hinted.

%files -n noto-sans-oriya-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOriya-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-oriya-ui-fonts
Summary:	Noto Oriya Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-oriya-ui < %{EVRD}
Provides:	noto-sans-oriya-ui

%description -n noto-sans-oriya-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Oriya Sans Serif font, hinted.

%files -n noto-sans-oriya-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOriyaUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-osage-fonts
Summary:	Noto Osage Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-osage < %{EVRD}
Provides:	noto-sans-osage

%description -n noto-sans-osage-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Osage Sans Serif font, hinted.

%files -n noto-sans-osage-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOsage-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-osmanya-fonts
Summary:	Noto Osmanya Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-osmanya < %{EVRD}
Provides:	noto-sans-osmanya

%description -n noto-sans-osmanya-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Osmanya Sans Serif font, hinted.

%files -n noto-sans-osmanya-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansOsmanya-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-phagspa-fonts
Summary:	Noto Phags Pa Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-phagspa < %{EVRD}
Provides:	noto-sans-phagspa

%description -n noto-sans-phagspa-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
PhagsPa Sans Serif font, hinted.

%files -n noto-sans-phagspa-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansPhagsPa-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-phoenician-fonts
Summary:	Noto Phoenician Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-phoenician < %{EVRD}
Provides:	noto-sans-phoenician

%description -n noto-sans-phoenician-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Phoenician Sans Serif font, hinted.

%files -n noto-sans-phoenician-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansPhoenician-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-rejang-fonts
Summary:	Noto Rejang Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-rejang < %{EVRD}
Provides:	noto-sans-rejang

%description -n noto-sans-rejang-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Rejang Sans Serif font, hinted.

%files -n noto-sans-rejang-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansRejang-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-runic-fonts
Summary:	Noto Runic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-runic < %{EVRD}
Provides:	noto-sans-runic

%description -n noto-sans-runic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Runic Sans Serif font, hinted.

%files -n noto-sans-runic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansRunic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-samaritan-fonts
Summary:	Noto Samaritan Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-samaritan < %{EVRD}
Provides:	noto-sans-samaritan

%description -n noto-sans-samaritan-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Samaritan Sans Serif font, hinted.

%files -n noto-sans-samaritan-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSamaritan-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-saurashtra-fonts
Summary:	Noto Saurashtra Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-saurashtra < %{EVRD}
Provides:	noto-sans-saurashtra

%description -n noto-sans-saurashtra-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Saurashtra Sans Serif font, hinted.

%files -n noto-sans-saurashtra-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSaurashtra-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-shavian-fonts
Summary:	Noto Shavian Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-shavian < %{EVRD}
Provides:	noto-sans-shavian

%description -n noto-sans-shavian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Shavian Sans Serif font, hinted.

%files -n noto-sans-shavian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansShavian-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-sinhala-fonts
Summary:	Noto Sinhala Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-sinhala < %{EVRD}
Provides:	noto-sans-sinhala

%description -n noto-sans-sinhala-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Sinhala Sans Serif font, hinted.

%files -n noto-sans-sinhala-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSinhala-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-sinhala-ui-fonts
Summary:	Noto Sinhala Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-sinhala-ui < %{EVRD}
Provides:	noto-sans-sinhala-ui

%description -n noto-sans-sinhala-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Sinhala Sans Serif font, hinted.

%files -n noto-sans-sinhala-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSinhalaUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-sundanese-fonts
Summary:	Noto Sundanese Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-sundanese < %{EVRD}
Provides:	noto-sans-sundanese

%description -n noto-sans-sundanese-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Sundanese Sans Serif font, hinted.

%files -n noto-sans-sundanese-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSundanese-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-sylotinagri-fonts
Summary:	Noto Syloti Nagri Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-sylotinagri < %{EVRD}
Provides:	noto-sans-sylotinagri

%description -n noto-sans-sylotinagri-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
SylotiNagri Sans Serif font, hinted.

%files -n noto-sans-sylotinagri-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSylotiNagri-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-symbols-fonts
Summary:	Noto Symbols Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-symbols < %{EVRD}
Provides:	noto-sans-symbols

%description -n noto-sans-symbols-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Symbols Sans Serif font, hinted.

%files -n noto-sans-symbols-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSymbols-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-symbols2-fonts
Summary:	Noto Symbols2 Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-symbols2 < %{EVRD}
Provides:	noto-sans-symbols2

%description -n noto-sans-symbols2-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Symbols2 Sans Serif font, hinted.

%files -n noto-sans-symbols2-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSymbols2-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-syriaceastern-fonts
Summary:	Noto Syriac Eastern Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-syriaceastern < %{EVRD}
Provides:	noto-sans-syriaceastern

%description -n noto-sans-syriaceastern-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
SyriacEastern Sans Serif font, hinted.

%files -n noto-sans-syriaceastern-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSyriacEastern-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-syriacestrangela-fonts
Summary:	Noto Syriac Estrangela Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-syriacestrangela < %{EVRD}
Provides:	noto-sans-syriacestrangela

%description -n noto-sans-syriacestrangela-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
SyriacEstrangela Sans Serif font, hinted.

%files -n noto-sans-syriacestrangela-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSyriacEstrangela-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-syriacwestern-fonts
Summary:	Noto Syriac Western Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-syriacwestern < %{EVRD}
Provides:	noto-sans-syriacwestern

%description -n noto-sans-syriacwestern-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
SyriacWestern Sans Serif font, hinted.

%files -n noto-sans-syriacwestern-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansSyriacWestern-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-tagalog-fonts
Summary:	Noto Tagalog Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-tagalog < %{EVRD}
Provides:	noto-sans-tagalog

%description -n noto-sans-tagalog-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Tagalog Sans Serif font, hinted.

%files -n noto-sans-tagalog-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTagalog-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-tagbanwa-fonts
Summary:	Noto Tagbanwa Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-tagbanwa < %{EVRD}
Provides:	noto-sans-tagbanwa

%description -n noto-sans-tagbanwa-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Tagbanwa Sans Serif font, hinted.

%files -n noto-sans-tagbanwa-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTagbanwa-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-taile-fonts
Summary:	Noto Tai Le Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-taile < %{EVRD}
Provides:	noto-sans-taile

%description -n noto-sans-taile-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
TaiLe Sans Serif font, hinted.

%files -n noto-sans-taile-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTaiLe-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-taitham-fonts
Summary:	Noto Tai Tham Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-taitham < %{EVRD}
Provides:	noto-sans-taitham

%description -n noto-sans-taitham-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
TaiTham Sans Serif font, hinted.

%files -n noto-sans-taitham-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTaiTham-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-taiviet-fonts
Summary:	Noto Tai Viet Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-taiviet < %{EVRD}
Provides:	noto-sans-taiviet

%description -n noto-sans-taiviet-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
TaiViet Sans Serif font, hinted.

%files -n noto-sans-taiviet-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTaiViet-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-tamil-fonts
Summary:	Noto Tamil Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-tamil < %{EVRD}
Provides:	noto-sans-tamil

%description -n noto-sans-tamil-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Tamil Sans Serif font, hinted.

%files -n noto-sans-tamil-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTamil-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-tamil-ui-fonts
Summary:	Noto Tamil Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-tamil-ui < %{EVRD}
Provides:	noto-sans-tamil-ui

%description -n noto-sans-tamil-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Tamil Sans Serif font, hinted.

%files -n noto-sans-tamil-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTamilUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-telugu-fonts
Summary:	Noto Telugu Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-telugu < %{EVRD}
Provides:	noto-sans-telugu

%description -n noto-sans-telugu-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Telugu Sans Serif font, hinted.

%files -n noto-sans-telugu-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTelugu-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-telugu-ui-fonts
Summary:	Noto Telugu Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-telugu-ui < %{EVRD}
Provides:	noto-sans-telugu-ui

%description -n noto-sans-telugu-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Telugu Sans Serif font, hinted.

%files -n noto-sans-telugu-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTeluguUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-thaana-fonts
Summary:	Noto Thaana Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-thaana < %{EVRD}
Provides:	noto-sans-thaana

%description -n noto-sans-thaana-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Thaana Sans Serif font, hinted.

%files -n noto-sans-thaana-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansThaana-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-thai-fonts
Summary:	Noto Thai Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-thai < %{EVRD}
Provides:	noto-sans-thai

%description -n noto-sans-thai-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Thai Sans Serif font, hinted.

%files -n noto-sans-thai-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansThai-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-thai-ui-fonts
Summary:	Noto Thai Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-thai-ui < %{EVRD}
Provides:	noto-sans-thai-ui

%description -n noto-sans-thai-ui-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Thai Sans Serif font, hinted.

%files -n noto-sans-thai-ui-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansThaiUI-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-tibetan-fonts
Summary:	Noto Tibetan Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-tibetan < %{EVRD}
Provides:	noto-sans-tibetan

%description -n noto-sans-tibetan-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Tibetan Sans Serif font, hinted.

%files -n noto-sans-tibetan-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTibetan-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-tifinagh-fonts
Summary:	Noto Tifinagh Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-tifinagh < %{EVRD}
Provides:	noto-sans-tifinagh

%description -n noto-sans-tifinagh-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Tifinagh Sans Serif font, hinted.

%files -n noto-sans-tifinagh-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansTifinagh-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-ugaritic-fonts
Summary:	Noto Ugaritic Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-ugaritic < %{EVRD}
Provides:	noto-sans-ugaritic

%description -n noto-sans-ugaritic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Ugaritic Sans Serif font, hinted.

%files -n noto-sans-ugaritic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansUgaritic-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-vai-fonts
Summary:	Noto Vai Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-vai < %{EVRD}
Provides:	noto-sans-vai

%description -n noto-sans-vai-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Vai Sans Serif font, hinted.

%files -n noto-sans-vai-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansVai-*.?tf

#------------------------------------------------------------------------

%package -n noto-sans-yi-fonts
Summary:	Noto Yi Sans Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-sans-yi < %{EVRD}
Provides:	noto-sans-yi

%description -n noto-sans-yi-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Yi Sans Serif font, hinted.

%files -n noto-sans-yi-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSansYi-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-fonts
Summary:	Noto Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif < %{EVRD}
Provides:	noto-serif

%description -n noto-serif-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
 Serif font, hinted.

%files -n noto-serif-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerif-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-armenian-fonts
Summary:	Noto Armenian Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-armenian < %{EVRD}
Provides:	noto-serif-armenian

%description -n noto-serif-armenian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Armenian Serif font, hinted.

%files -n noto-serif-armenian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifArmenian-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-bengali-fonts
Summary:	Noto Bengali Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-bengali < %{EVRD}
Provides:	noto-serif-bengali

%description -n noto-serif-bengali-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Bengali Serif font, hinted.

%files -n noto-serif-bengali-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifBengali-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-cjk-fonts
Summary:	Noto CJK Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-cjk < %{EVRD}
Provides:	noto-serif-cjk
Obsoletes:	noto-serif-cjkjp < %{EVRD}
Provides:	noto-serif-cjkjp
Obsoletes:	noto-serif-cjkjp-fonts < %{EVRD}
Provides:	noto-serif-cjkjp-fonts
Obsoletes:	noto-serif-cjkkr < %{EVRD}
Provides:	noto-serif-cjkkr
Obsoletes:	noto-serif-cjkkr-fonts < %{EVRD}
Provides:	noto-serif-cjkkr-fonts
Obsoletes:	noto-serif-cjksc < %{EVRD}
Provides:	noto-serif-cjksc
Obsoletes:	noto-serif-cjksc-fonts < %{EVRD}
Provides:	noto-serif-cjksc-fonts
Obsoletes:	noto-serif-cjktc < %{EVRD}
Provides:	noto-serif-cjktc
Obsoletes:	noto-serif-cjktc-fonts < %{EVRD}
Provides:	noto-serif-cjktc-fonts
Provides:	scalable-font-zh-CN
Provides:	scalable-font-zh-SG
Provides:	scalable-font-zh-TW
Provides:	scalable-font-zh-HK
Provides:	scalable-font-zh-MO
Provides:	scalable-font-ja
Provides:	scalable-font-ko
Provides:	scalable-font-zh-CN
Provides:	scalable-font-zh-SG
Provides:	scalable-font-zh-TW
Provides:	scalable-font-zh-HK
Provides:	scalable-font-zh-MO
Provides:	scalable-font-ja
Provides:	scalable-font-ko
Provides:	scalable-font-zh-CN
Provides:	scalable-font-zh-SG
Provides:	scalable-font-zh-TW
Provides:	scalable-font-zh-HK
Provides:	scalable-font-zh-MO
Provides:	scalable-font-ja
Provides:	scalable-font-ko
Provides:	locale(zh_CN;zh_SG;zh_TW;zh_HK;zh_MO)

%description -n noto-serif-cjk-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
CJK Serif font, hinted.

%files -n noto-serif-cjk-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifCJK*.*

#------------------------------------------------------------------------

%package -n noto-serif-devanagari-fonts
Summary:	Noto Devanagari Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-devanagari < %{EVRD}
Provides:	noto-serif-devanagari

%description -n noto-serif-devanagari-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Devanagari Serif font, hinted.

%files -n noto-serif-devanagari-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifDevanagari-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-display-fonts
Summary:	Noto Display Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-display < %{EVRD}
Provides:	noto-serif-display

%description -n noto-serif-display-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Display Serif font, hinted.

%files -n noto-serif-display-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifDisplay-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-ethiopic-fonts
Summary:	Noto Ethiopic Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-ethiopic < %{EVRD}
Provides:	noto-serif-ethiopic

%description -n noto-serif-ethiopic-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Ethiopic Serif font, hinted.

%files -n noto-serif-ethiopic-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifEthiopic-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-georgian-fonts
Summary:	Noto Georgian Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-georgian < %{EVRD}
Provides:	noto-serif-georgian

%description -n noto-serif-georgian-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Georgian Serif font, hinted.

%files -n noto-serif-georgian-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifGeorgian-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-gujarati-fonts
Summary:	Noto Gujarati Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-gujarati < %{EVRD}
Provides:	noto-serif-gujarati

%description -n noto-serif-gujarati-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Gujarati Serif font, hinted.

%files -n noto-serif-gujarati-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifGujarati-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-hebrew-fonts
Summary:	Noto Hebrew Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-hebrew < %{EVRD}
Provides:	noto-serif-hebrew

%description -n noto-serif-hebrew-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Hebrew Serif font, hinted.

%files -n noto-serif-hebrew-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifHebrew-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-kannada-fonts
Summary:	Noto Kannada Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-kannada < %{EVRD}
Provides:	noto-serif-kannada

%description -n noto-serif-kannada-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Kannada Serif font, hinted.

%files -n noto-serif-kannada-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifKannada-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-khmer-fonts
Summary:	Noto Khmer Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-khmer < %{EVRD}
Provides:	noto-serif-khmer

%description -n noto-serif-khmer-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Khmer Serif font, hinted.

%files -n noto-serif-khmer-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifKhmer-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-lao-fonts
Summary:	Noto Lao Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-lao < %{EVRD}
Provides:	noto-serif-lao

%description -n noto-serif-lao-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Lao Serif font, hinted.

%files -n noto-serif-lao-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifLao-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-malayalam-fonts
Summary:	Noto Malayalam Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-malayalam < %{EVRD}
Provides:	noto-serif-malayalam

%description -n noto-serif-malayalam-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Malayalam Serif font, hinted.

%files -n noto-serif-malayalam-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifMalayalam-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-myanmar-fonts
Summary:	Noto Myanmar Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-myanmar < %{EVRD}
Provides:	noto-serif-myanmar

%description -n noto-serif-myanmar-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Myanmar Serif font, hinted.

%files -n noto-serif-myanmar-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifMyanmar-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-sinhala-fonts
Summary:	Noto Sinhala Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-sinhala < %{EVRD}
Provides:	noto-serif-sinhala

%description -n noto-serif-sinhala-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Sinhala Serif font, hinted.

%files -n noto-serif-sinhala-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifSinhala-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-tamil-fonts
Summary:	Noto Tamil Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-tamil < %{EVRD}
Provides:	noto-serif-tamil

%description -n noto-serif-tamil-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Tamil Serif font, hinted.

%files -n noto-serif-tamil-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifTamil-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-telugu-fonts
Summary:	Noto Telugu Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-telugu < %{EVRD}
Provides:	noto-serif-telugu

%description -n noto-serif-telugu-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Telugu Serif font, hinted.

%files -n noto-serif-telugu-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifTelugu-*.?tf

#------------------------------------------------------------------------

%package -n noto-serif-thai-fonts
Summary:	Noto Thai Serif Font
Group:		System/Fonts/True type
Recommends:	google-noto-fonts-doc
Obsoletes:	noto-serif-thai < %{EVRD}
Provides:	noto-serif-thai

%description -n noto-serif-thai-fonts
Noto's design goal is to achieve visual harmonization (e.g., compatible
heights and stroke thicknesses) across languages. This package contains
Thai Serif font, hinted.

%files -n noto-serif-thai-fonts
%dir %{_ttfontsdir}
%{_ttfontsdir}/NotoSerifThai-*.?tf

#------------------------------------------------------------------------

%prep
%setup -q -c -n %{name}-%{version}
unzip -o %{S:1}
tar -xvzf %{SOURCE4}

%build

%install
install -m 0755 -d %{buildroot}%{_ttfontsdir}
install -m 0644 -p *.?tf %{buildroot}%{_ttfontsdir}
install -m 0644 -p *.ttc %{buildroot}%{_ttfontsdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
	%{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{SOURCE3} \
	%{buildroot}%{_fontconfig_templatedir}/59-noto-sans-cjk-fontconfig.conf

ln -s %{_fontconfig_templatedir}/59-noto-sans-cjk-fontconfig.conf \
	%{buildroot}%{_fontconfig_confdir}/59-noto-sans-cjk-fontconfig.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2058 |21cr|google-roboto-fonts-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname google-roboto
%global fontconf 64-%{fontname}
%global fontsrcdir Roboto_v%{version}

Name:       google-roboto-fonts
Version:    1.2
Release:    1
Summary:    Google Roboto fonts
Group:      System/Fonts/True type 
# Only the metainfo.xml files are CC0
License:    ASL 2.0 and CC0
URL:        https://www.google.com/fonts/specimen/Roboto
Source0:    http://developer.android.com/downloads/design/roboto-%{version}.zip
Source1:    %{fontconf}-condensed-fontconfig.conf
Source2:    %{fontconf}-fontconfig.conf
Source3:    %{fontname}-condensed.metainfo.xml
Source4:    %{fontname}.metainfo.xml
BuildArch:  noarch

BuildRequires: dos2unix
BuildRequires: fontpackages-devel

%description
Roboto is a sans-serif typeface family introduced with Android Ice Cream
Sandwich operating system. Google describes the font as "modern, yet
approachable" and "emotional".

%package -n %{fontname}-condensed-fonts
Summary:    Google Roboto condensed fonts

%description -n %{fontname}-condensed-fonts
Google Roboto condensed fonts.

%prep
%setup -qn %{fontsrcdir}
dos2unix */LICENSE.txt

%build

%install
# install fonts
install -d %{buildroot}%{_fontdir}
install -m 0644 -p Roboto/*.ttf %{buildroot}%{_fontdir}
install -m 0644 -p RobotoCondensed/*.ttf %{buildroot}%{_fontdir}

# install fontconfig files
install -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-condensed.conf
install -m 0644 %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}.conf
for fconf in %{fontconf} %{fontconf}-condensed; do
  ln -s %{_fontconfig_templatedir}/$fconf.conf %{buildroot}%{_fontconfig_confdir}/$fconf.conf
done

# install appdata
install -d %{buildroot}%{_datadir}/appdata
install -m 0644 %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/appdata

%_font_pkg -f %{fontconf}.conf Roboto-*.ttf
%doc Roboto/LICENSE.txt
%{_datadir}/appdata/%{fontname}.metainfo.xml

%_font_pkg -n condensed -f %{fontconf}-condensed.conf RobotoCondensed-*.ttf
%doc RobotoCondensed/LICENSE.txt
%{_datadir}/appdata/%{fontname}-condensed.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2059 |21cr|goollie-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname GoOllie
%define	debug_package %{nil}

Summary:	Arcage game about Ollie the Oligocheata, a worm on a mission
Name:		goollie
Version:	1.3
Release:	7
License:	GPLv3 and CC-BY-SA
Group:		Games/Arcade
Url:		http://tweeler.com/index.php?PAGE=goollie_linux
# http://www.tweeler.com/GoOllie_1.3_src.tar.gz
Source0:	%{oname}-%{version}.tar.bz2
Source1:	%{oname}.png
Patch0:		%{oname}.patch
BuildRequires:	cmake
# Cmake tests for this
BuildRequires:	imagemagick
BuildRequires:	libtuxcap-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(GraphicsMagick++)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)

%description
Ollie the Oligocheata is a worm on a mission: he is on a mission to bring
mouse controlled platforming fun to everyone! A free Linux game with
beautifully rendered scenes and animations. The latest in innovative mouse
controlled platform gaming featuring a unique fusion of platform and match
three gaming mechanics.
Two gameplay modes:
- Story Mode with over 60 individual levels each with different objectives
- Fast and furious action game with unlimited re-playability.

%files
%doc COPYING README other_licenses/
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0

sed -i -e "s|SetAppResourceFolder.*|SetAppResourceFolder(\"%{_datadir}/%{name}\");|g" src/main.cpp
chmod go+r other_licenses/*


%build
# Ugly hack for Imagemagick -> GraphicsMagick change
INCLUDE=`pkg-config --cflags-only-I GraphicsMagick++|cut -c 3-`
LINKCXX=`pkg-config --libs-only-l GraphicsMagick++|sed -e 's/.*\(GraphicsMagick++[^[:space:]]*\) .*/\1/'`
LINKC=`pkg-config --libs-only-l GraphicsMagick|sed -e 's/.*\(GraphicsMagick[^[:space:]]*\) .*/\1/'`
# The last line above returns "-lGraphicsMagick" instead of "GraphicsMagick":
# workaround by using directly the library name.
# BTW, the above hack is useless really : we can directly put all the needed stuff below
# in the command line because we know where the GraphicsMagick devel files are...
cmake \
	-D IMAGEMAGICKLIB_INCLUDE_DIR=${INCLUDE} \
	-D IMAGEMAGICKLIB_CXX_LIBRARY=%{_libdir}/lib${LINKCXX}.so \
	-D IMAGEMAGICKLIB_C_LIBRARY=%{_libdir}/libGraphicsMagick.so \
	-D CMAKE_INSTALL_PREFIX=%{_prefix} CMakeLists.txt
%make

%install
install -D -m 0755 %{oname} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a data/* %{buildroot}%{_datadir}/%{name}
cp -a src/*.py %{buildroot}%{_datadir}/%{name}
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=GoOllie
Comment=Ollie the Oligocheata, a worm on a mission
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2060 |21cr|gosa-2.5.14-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define apacheuser apache 
%define apachegroup apache 
%define oleversion 0.0.0

Summary: 	Web Based LDAP Administration Program 
Name:		gosa
Version: 	2.5.14
Release:	14
License: 	GPL
Group: 		System/Configuration/Other
URL: 		http://gosa.gonicus.de
Source: 	ftp://oss.GONICUS.de/pub/gosa/beta/%{name}-%{version}.tar.bz2
Source1:	gosa.conf.mdv
Source2:	README.urpmi
# http://www.bettina-attack.de/jonny/view.php/projects/php_ole/
Source3:	php_ole-%{oleversion}.tar.bz2
Requires:	apache-mod_php
Requires:   apache-mod_socache_shmcb
Requires:	php-ldap
Requires:	php-imap
Requires:	php-mbstring
Requires:	php-mysql
Requires:	php-xml 
Requires:	php-gd
Requires:	php-snmp
Requires:	php-iconv
Requires:	fping
Requires:	imagemagick
Requires:	smbldap-tools
BuildArch: 	noarch

%description
GOsa is a combination of system-administrator and end-user web
interface, designed to handle LDAP based setups.
Provided is access to posix, shadow, samba, proxy, fax, and kerberos
accounts. It is able to manage the postfix/cyrus server combination
and can write user adapted sieve scripts.

Access GOsa at http://localhost/gosa/

%package schema
Group: 		System/Configuration/Other
Summary:        Schema Definitions for the GOSA package
Requires:	openldap-servers openldap-clients

%description schema
Contains the Schema definition files for the GOSA admin package.

%prep
%setup -q -a 3
find . -depth -name CVS -type d | xargs rm -rf
cp %{SOURCE2} .

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}

# (sb) seems broken - bad path to includes
sed -i 's|Excel/||g' include/php_writeexcel/class.excel.php
# (sb) copy the missing includes from SOURCE3 and rename docs
cp php_ole-%{oleversion}/*.php include/php_writeexcel
for i in README HOMEPAGE LICENSE; do \
  mv php_ole-%{oleversion}/$i $i.php_ole; \
done

DIRS="ihtml plugins html include locale"
for i in $DIRS; do \
  cp -ua $i %{buildroot}%{_datadir}/%{name}/$i ; \
done

# (sb) make rpmlint happier
find doc -type f | xargs chmod -x

# (sb) error during setup if this isn't found
mkdir -p %{buildroot}%{_datadir}/%{name}/contrib
cp -a contrib/gosa.conf %{buildroot}%{_datadir}/%{name}/contrib

# (sb) used by smarty compile
mkdir -p %{buildroot}/var/spool/gosa

# Copy default config
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
install -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
mkdir -p %{buildroot}%{_webappconfdir}

cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
Alias /gosa %{_datadir}/%{name}/html

<Directory %{_datadir}/%{name}/html>
    Require host 127.0.0.1
    ErrorDocument 403 "Access denied per %{_webappconfdir}/%{name}.conf"
</Directory>
EOF

mkdir -p %{buildroot}%{_datadir}/openldap/schema/%{name}
mv contrib/openldap/*.schema %{buildroot}%{_datadir}/openldap/schema/%{name}

cat > %{buildroot}%{_datadir}/openldap/schema/%{name}/%{name}-core.schema <<EOF
include %{_datadir}/openldap/schema/%{name}/goconfig.schema
include %{_datadir}/openldap/schema/%{name}/gofax.schema
include %{_datadir}/openldap/schema/%{name}/gofon.schema
include %{_datadir}/openldap/schema/%{name}/gosystem.schema
include %{_datadir}/openldap/schema/%{name}/goserver.schema
include %{_datadir}/openldap/schema/%{name}/goto.schema
include %{_datadir}/openldap/schema/%{name}/gosa+samba3.schema
include %{_datadir}/openldap/schema/%{name}/pureftpd.schema
EOF

cat > %{buildroot}%{_datadir}/openldap/schema/%{name}/example.ldif <<EOF
# Organization for Example Corporation
# load this ldif before gosa.ldif (for an empty opendap db)
dn: dc=example,dc=com
objectClass: dcObject
objectClass: organization
dc: example
o: Example Corporation
description: The Example Corporation

# Organizational Role for Directory Manager
dn: cn=Manager,dc=example,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager

# groups
dn: ou=Group,dc=example,dc=com
objectClass: organizationalUnit
ou: Group
description: Groups

# users
#dn: ou=People,dc=example,dc=com
#objectClass: organizationalUnit
#ou: People
#description: Users
EOF

cat > %{buildroot}%{_datadir}/openldap/schema/%{name}/%{name}.ldif <<EOF
# Sample GOsa ldif
# username "admin", password "tester", group "administrators"

# groups - may not be needed, in an fresh install I found I needed it
dn: ou=groups,dc=example,dc=com
objectClass: organizationalUnit
ou: groups
description: Groups

# users - may not be needed, in a fresh install I found I needed it
dn: ou=people,dc=example,dc=com
objectClass: organizationalUnit
ou: people
description: Users

dn: cn=admin,ou=people,dc=example,dc=com
objectClass: person
objectClass: organizationalPerson
objectClass: inetOrgPerson
objectClass: gosaAccount
uid: admin
cn: admin
givenName: admin
sn: GOsa main administrator
sambaLMPassword: 10974C6EFC0AEE1917306D272A9441BB
sambaNTPassword: 38F3951141D0F71A039CFA9D1EC06378
userPassword:: dGVzdGVy

dn: cn=administrators,ou=groups,dc=example,dc=com
objectClass: gosaObject
objectClass: posixGroup
gosaSubtreeACL: :all
cn: administrators
gidNumber: 999
memberUid: admin
EOF

# (sb) rpmlint
chmod +x contrib/scripts/*.pl


%post schema
grep -q "^include %{_datadir}/openldap/schema/%{name}/%{name}-core.schema" %{_sysconfdir}/openldap/schema/local.schema || echo "include %{_datadir}/openldap/schema/%{name}/%{name}-core.schema" >> /etc/openldap/schema/local.schema
if [ -f /var/lock/subsys/ldap ]; then
    /etc/rc.d/init.d/ldap restart 1>&2;
fi


%postun schema
sed -i "s|^include %{_datadir}/openldap/schema/%{name}/%{name}-core.schema||" %{_sysconfdir}/openldap/schema/local.schema
if [ "$1" = "0" ]; then
    if [ -f /var/lock/subsys/ldap ]; then
        /etc/rc.d/init.d/ldap restart 1>&2
    fi
fi

%clean

%files
%doc AUTHORS README README.urpmi
%doc Changelog COPYING INSTALL FAQ doc/* 
#%doc contrib/altlinux contrib/fix_config.sh 
#%doc contrib/mysql contrib/opensides contrib/patches 
%doc contrib/scripts contrib/vacation_example.txt
%doc *.php_ole

%config(noreplace) %{_webappconfdir}/%{name}.conf
%attr(0750, %{apacheuser}, %{apachegroup}) %dir /var/spool/%{name}
%{_datadir}/%{name}
%dir %{_sysconfdir}/%{name}
%attr(0640, root, %{apachegroup}) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf

%files schema
%doc COPYING AUTHORS README README.urpmi
%doc contrib/demo.ldif contrib/openldap/slapd.conf
%dir %{_datadir}/openldap/schema/%{name}
%{_datadir}/openldap/schema/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2061 |21cr|gource-0.54-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Software version control visualization tool
Name:		gource
Version:	0.54
Release:	1
License:	GPLv3+
Group:		Monitoring
Url:		http://gource.io
Source0:	https://github.com/acaudwell/Gource/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	boost-devel
BuildRequires:	glm-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(tinyxml)
BuildRequires:	pkgconfig(x11)

%description
Software projects are displayed by Gource as an animated tree with the root
directory of the project at its center. Directories appear as branches with
files as leaves. Developers can be seen working on the tree at the times they
contributed to the project.

%files
%doc README.md THANKS ChangeLog
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------

%prep
%autosetup -p1

%build
%configure --with-tinyxml
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2062 |21cr|gournal-0.5.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	gournal
Summary: 	GNOME hardwriting notepad
Version: 	0.5.1
Release: 	12
Source:		http://www.adebenham.com/debian/%{name}_%{version}-1.tar.gz
URL:		http://www.adebenham.com/gournal/
License:	GPL
Group:		Office
BuildArch:	noarch
BuildRequires:  imagemagick

%description
Gournal is a note-taking application written for usage on Tablet-PCs.  It's
designed for usage with a stylus, not a mouse or keyboard.  It does not have
handwriting recognition but can be used in co-ordination with xstroke to
accept text.  The pages are saved as gzipped SVG files (not totally standard
yet but working on it).

Gournal looks/works just like a physical notebook with multiple pages.
Gournal has the following tools:
    * Fine/Normal/Medium/Think Pens
    * Eraser
    * Highliter
    * Typed Text
    * Time-stamp
    * Zoom
    * Infinite undo/redo
    * Delete entire strokes
    * Networkable pages
    * <Insert Images>
    * <Load a file as the background> 

%prep
%setup -q -n %{name}

%install
mkdir -p %{buildroot}/%{_bindir}
cp %{name} %{buildroot}/%{_bindir}/
mkdir -p %{buildroot}/%{_datadir}/%{name}
cp *.glade pixmaps/*.png %{buildroot}/%{_datadir}/%{name}

#menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=Office;
Icon=%{name}
Name=Gournal
Comment=Handwriting notepad
Categories=Office/Accessories
EOF

#icons
mkdir -p %{buildroot}/%{_liconsdir}
convert -size 48x48 pixmaps/pencil.png %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert -size 32x32 pixmaps/pencil.png %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 pixmaps/pencil.png %{buildroot}/%{_miconsdir}/%{name}.png

%clean

%files
%doc CHANGES README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2063 |21cr|goverlay-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI to help manage Linux overlays
Name:		goverlay
Version:	0.9
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		https://github.com/benjamimgois/goverlay
Source0:	https://github.com/benjamimgois/goverlay/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# From Fedora
Patch0:		goverlay-enable-debuginfo-generation.patch
BuildRequires:	lazarus
BuildRequires:	qt5pas-devel
BuildRequires:	pkgconfig(libglvnd)
Requires:	hicolor-icon-theme
Requires:	mangohud
Requires:	qt5pas
Recommends:	mesa-demos
Recommends:	vkbasalt

%description
GOverlay is an open source project aimed to create a Graphical UI to manage
Vulkan/OpenGL overlays. It is still in early development, so it lacks a lot of
features.

This project was only possible thanks to the other maintainers and
contributors that have done the hard work. I am just a Network Engineer that
really likes Linux and Gaming.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_libexecdir}/%{name}
%{_mandir}/man1/*.1*
%{_metainfodir}/*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make

%install
%makeinstall_std prefix=/usr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2064 |21cr|goverlay-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI to help manage Linux overlays
Name:		goverlay
Version:	1.1.1
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		https://github.com/benjamimgois/goverlay
Source0:	https://github.com/benjamimgois/goverlay/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# From Fedora
Patch0:		goverlay-enable-debuginfo-generation.patch
BuildRequires:	lazarus
BuildRequires:	qt6pas-devel
BuildRequires:	pkgconfig(libglvnd)
Requires:	hicolor-icon-theme
Requires:	mangohud
Requires:	qt6pas
Recommends:	mesa-demos
Recommends:	vkbasalt

%description
GOverlay is an open source project aimed to create a Graphical UI to manage
Vulkan/OpenGL overlays. It is still in early development, so it lacks a lot of
features.

This project was only possible thanks to the other maintainers and
contributors that have done the hard work. I am just a Network Engineer that
really likes Linux and Gaming.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_libexecdir}/%{name}
%{_mandir}/man1/*.1*
%{_metainfodir}/*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make

%install
%makeinstall_std prefix=/usr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2065 |21cr|gp-0.26-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define name gp
%define version 0.26
%define release 10

Summary: A set of basic utilities for manipulating DNA / RNA / protein sequences
Name: %name
Version: %version
Release: %release
License: GPL
Group: Sciences/Chemistry
URL: http://www.bioinformatics.org/genpak
Source: %name-%version.tar.bz2

%description
This is a set of small programs for biologists working with sequence data. The
programs are written as a sort of `biological' extension to the standard Unix
tools (sed, awk, grep and the whole myriad of little, useful tools). They 
accept standard input and can spawn the data to standard output, so you can 
place them in a pipe as any other Unix command or use them in a cgi script.  
All programs are written in ANSI C, and are supposed to 1) aid manipulate 
large data sets in intensive batch processing, and 2) faciliate production of 
cgi-based local web servers providing some basic functions. 

%prep
%setup -q

%build
make CFLAGS="$RPM_OPT_FLAGS"

%install
mkdir -p $RPM_BUILD_ROOT/%_bindir
mkdir -p $RPM_BUILD_ROOT/%_datadir
mkdir -p $RPM_BUILD_ROOT/%_mandir/man1
mkdir -p $RPM_BUILD_ROOT/%_docdir
make TREE=$RPM_BUILD_ROOT/usr DATADIR=$RPM_BUILD_ROOT/%_datadir MANDIR=$RPM_BUILD_ROOT/%_mandir install

%clean
rm -fr $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc README.TXT LICENSE.TXT CHANGES.TXT html
%_bindir/gp*
%_mandir/man1/*
%_datadir/genpak

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2066 |21cr|gpa-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GNU Privacy Assistant
Name:		gpa
Version:	0.10.0
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://wald.intevation.org/projects/gpa/
Source0:	ftp://ftp.gnupg.org/gcrypt/gpa/%{name}-%{version}.tar.bz2
BuildRequires:	gnupg
BuildRequires:	gettext-devel
BuildRequires:	gpgme-devel >= 1.5
BuildRequires:	libassuan-devel
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	gnupg

%description
The GNU Privacy Assistant is a graphical user interface for the
GNU Privacy Guard (GnuPG). GnuPG is a system that provides you with
privacy by encrypting emails or other documents and with
authentication of received files by signature management.

Install this package if you want to have an easy interface for GnuPG.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README THANKS TODO
%{_bindir}/*
%{_datadir}/gpa
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/gpa.1.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-rpath
%make

%install
%makeinstall_std

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/gpa
Icon=%{name}
Name=GNU Privacy Assistant
Comment=Graphical User Interface for GnuPG
Categories=GTK;System;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2067 |21cr|gpac-2.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 11
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	MPEG-4 multimedia framework
Name:		gpac
Version:	2.0.0
Release:	3
License:	LGPLv2+
Group:		Video
Url:		https://gpac.wp.imt.fr/
Source0:	https://github.com/gpac/gpac/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		110_all_implicitdecls.patch
Patch1:		gpac-0.7.1-link.patch
BuildRequires:	chrpath
BuildRequires:	doxygen
BuildRequires:	git
BuildRequires:	imagemagick
BuildRequires:	kernel-headers
BuildRequires:	a52dec-devel >= 0.7.4
BuildRequires:	ffmpeg-devel
BuildRequires:	libamrnb-devel
BuildRequires:	libamrwb-devel
BuildRequires:	libfaad2-devel >= 2.0
BuildRequires:	wxgtku3.1-devel
BuildRequires:	xvid-devel >= 1.0
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(directfb)
BuildRequires:	pkgconfig(freetype2) >= 2.1.4
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libnghttp2)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng) >= 1.2.33
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mad) >= 0.15.1
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(theora) >= 1.0
BuildRequires:	pkgconfig(vorbis) >= 1.1
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmlrpc)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(zlib)

%description
GPAC is a multimedia framework based on the MPEG-4 Systems standard developed
from scratch in ANSI C. The original development goal is to provide a clean
(a.k.a. readable by as many people as possible), small and flexible
alternative to the MPEG-4 Systems reference software.
The natural evolution has been the integration of recent multimedia standards
(SVG/SMIL, VRML, X3D, SWF, 3GPP(2) tools, etc) into a single framework. VRML97
and a good amount of the X3D standard have already been integrated into GPAC,
as well as some SVG support and experimental Macromedia Flash support.

%files
%doc Changelog COPYING README.md
%{_bindir}/%{name}
%{_bindir}/MP4*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/gm_*.so
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/*.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GPAC shared library
Group:		System/Libraries

%description -n %{libname}
GPAC is a multimedia framework based on the MPEG-4 Systems standard developed
from scratch in ANSI C. This package provides the GPAC shared library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libgpac.so.%{major}
%{_libdir}/libgpac.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and library for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for %{name}.

%files -n %{devname}
%doc Changelog COPYING README.md
%doc share/doc/html-libgpac/*
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/*
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libgpac.so
%{_libdir}/libgpac_static.a

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

sed -i -e 's/Wall/w/g' `find -name Makefile`

iconv -f iso8859-1 -t utf-8 Changelog > Changelog.conv && mv -f Changelog.conv Changelog
chmod -x modules/directfb_out/directfb_out.{c,h}


%build
# This is not a standard configure from autotools: i.e.
# it spams the terminal with all the errors from the compile tests
# and you need to pass %%{_lib} instead of %%{_libdir}, otherwise all
# the library stuff will ends up in "/usr/usr/%%{_lib}"

# FIXME: both amr builds are broken ATM
%setup_compile_flags
./configure --prefix="%{_prefix}" --libdir="%{_lib}" --mandir="%{_mandir}"\
	--extra-cflags="%{optflags}" --extra-ldflags="%{ldflags}"\
	--enable-pic \
	--enable-depth \
	--use-js=no \
	--use-ffmpeg=system \
%ifarch aarch64
	--use-mad=no \
%endif
	--use-ogg=system \
	--use-openjpeg=system \
	--use-theora=system \
	--use-vorbis=system \
	--disable-amr-nb \
	--disable-amr-wb \
	--enable-jack \
	--enable-joystick \
	--enable-pulseaudio

%make

# Make dev docs
%make doc


%install
mkdir -p %{buildroot}%{_libdir}/pkgconfig
# The "install" implied in our macro installs only the programs;
# to have also the libraries we need to add "install-lib"
%makeinstall_std install-lib

# Add more icons
for size in 512 256 64 48 32 16; do
	install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
	convert share/res/%{name}_highres.png -resize ${size} %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

# Drop rpath here since configure won't let us to avoit it
chrpath -d %{buildroot}%{_bindir}/%{name}
chrpath -d %{buildroot}%{_bindir}/MP4*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2068 |21cr|gpaint-2-0.3.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple, easy-to-use paint program
Name:		gpaint-2
Version:	0.3.3
Release:	11
License:	GPLv2+
Group:		Graphics
Source0:	http://www.gnu.org/software/gpaint/downloading/%{name}-%{version}.tar.gz
Url:		http://www.gnu.org/software/gpaint/
Patch0:		gpaint-2-0.3.3-fix-drawing-fnt.patch
Patch1:		gpaint-2-0.3.3-remove-entry-menu.h.patch
Patch2:		gpaint-2-0.3.3-fix-crash-on-font-selection.patch
Patch3:		gpaint-2-0.3.3-fix-crash-on-saving-in-unsupported-format.patch
Patch4:		gpaint-2-0.3.3-fix-not-printable-string.patch
Patch5:		gpaint-2-0.3.3-fix-color-selection.patch
BuildRequires:	pkgconfig(libglade-2.0)

%description
GNU Paint. A simple, easy-to-use paint program for GNOME. This is a port of
xpaint that takes advantages of features unique to the GNOME environment.

%files -f %{name}.lang
%doc AUTHORS COPYING  NEWS README THANKS
%{_bindir}/%{name}
%{_datadir}/gpaint/glade/gpaint.glade
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
%configure
%make LIBS="-lm"

%install
%makeinstall_std
%find_lang %{name}

#mdk menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Gpaint
Comment=Paint program
Exec=%{_bindir}/%{name}
Icon=graphics_section
Terminal=false
Type=Application
Categories=Graphics;
MimeType=image/gif;image/jpeg;image/png;image/bmp;image/x-eps;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2069 |21cr|gpass-0.5.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name gpass
%define version 0.5.1
%define release 12

Name:          %name
Summary:       A password manager for the GNOME desktop
Version:       %version
Release:       %release
License:       GPL
Group:         Databases
Source0:        http://projects.netlab.jp/gpass/release/%{name}-%{version}.tar.bz2
Patch0: gpass-0.5.1-fix-str-fmt.patch
Patch1: gpass-0.5.1-link.patch
Patch2:	gpass-0.5.1-glibh.patch
BuildRequires: libmhash-devel
BuildRequires: pkgconfig(libglade-2.0) 
BuildRequires: libmcrypt-devel
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(libgnomeui-2.0)
BuildRequires: perl(XML::Parser)

%description
The GNOME Password Manager - GPass for short - is a simple application,
written for the GNOME 2 desktop, that lets you manage a collection of
passwords. The password collection is stored in an encrypted file,
protected by a master-password.

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p2 -b .glibh

%build
%configure
%make 

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall_std
unset GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL
%find_lang %name

%files -f %{name}.lang
%doc AUTHORS COPYING INSTALL README NEWS TODO
%{_bindir}/*
%{_datadir}/gpass/*
%{_datadir}/applications/%{name}.desktop
%{_sysconfdir}/gconf/schemas/gpass.schemas
%{_mandir}/man1/gpass*
%{_datadir}/pixmaps/gpass-icon.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2070 |21cr|gperiodic-2.0.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gperiodic
Summary:	A graphical application for browsing the periodic table
Version:	2.0.10
Release:	8
Source0:	http://www.frantz.fi/software/%{name}-%{version}.tar.bz2
URL:		http://www.frantz.fi/software/gperiodic.php
Group:		Sciences/Chemistry
License:	GPL
BuildRequires:	gtk2-devel imagemagick
#BuildRequires:	

%description
Gperiodic displays a periodic table of the elements, allowing you to
browse through the elements, and view detailed information about each
element.

%prep
%setup -q
sed -i -e "s|-DGTK_DISABLE_DEPRECATED|%{optflags} %{ldflags}|" Makefile

%build
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

# Icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/16x16/apps/
convert -geometry 16x16 gperiodic.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps/
convert -geometry 32x32 gperiodic.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps/
convert -geometry 48x48 gperiodic.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%find_lang %{name}

%if %mdkversion < 200900
%post
%{update_menus}
%{update_icon_cache} hicolor
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%{clean_icon_cache} hicolor
%endif

%clean 
rm -rf $RPM_BUILD_ROOT 

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2071 |21cr|gphpedit-0.9.98-0.RC1.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	gphpedit
Summary: 	GNOME PHP/HTML/CSS development environment	
Version: 	0.9.98
Release: 	0.RC1.2
Source0:		http://www.gphpedit.org/sites/default/files/%{name}-%{version}RC1.tar.gz
Patch0:		gphpedit-0.9.91-fix-crash.patch
Patch1:		gphpedit-0.9.91-fix-desktop-entry.patch
Patch2:		gphpedit-0.9.91-fix-str-fmt.patch
URL:		http://www.gphpedit.org/
License:	GPLv2+
Group:		Editors
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(webkit-1.0)
BuildRequires:	intltool

%description
GPHPEdit is a GNOME2 editor that is dedicated to editing PHP files and other
supporting files, like HTML/CSS. It has support for drop-down function lists,
hints showing parameters, and syntax highlighting.

%prep
%setup -qn anoopjohn-gphpedit-fe8a12c
%if 0
%patch0 -p1
%patch1 -p0
%patch2 -p0
%endif

%build
export LIBS=" -lgmodule-2.0"
autoreconf -fi
%configure
perl -p -i -e 's|-Os|%optflags||g' `find -name makefile`
make
										
%install
%makeinstall_std

%find_lang %name

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS TODO README
%{_bindir}/%name
%{_datadir}/applications/*
%{_datadir}/%name
%{_datadir}/pixmaps/*
%{_iconsdir}/hicolor/*/apps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2072 |21cr|gpicview-0.2.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Simple and Fast Image Viewer for X
Name:		gpicview
Version:	0.2.5
Release:	3
License:	GPLv2+
Group:		Graphics
URL:		http://www.lxde.org
Source0:	https://sourceforge.net/projects/lxde/files/GPicView%20%28image%20Viewer%29/0.2.x/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	jpeg-devel
BuildRequires:	desktop-file-utils
BuildRequires:	intltool >= 0.40.0

%description
GPicView is a simple and fast image viewer for X.
It features:
. Extremely lightweight and fast with low memory usage
. Very suitable for default image viewer of desktop system
. Simple and intuitive interface
. Minimal lib dependency: Only pure GTK+ is used
. Desktop independent: Doesn't require any specific desktop environment

%prep
%setup -q

%build
%configure
%make LIBS="-ljpeg -lm"

%install
%makeinstall_std

%find_lang %{name}

desktop-file-install --vendor='' \
	--dir=%{buildroot}%{_datadir}/applications \
	--remove-category='Application' \
	--remove-category='Core' \
	--remove-category='Utility' \
	--remove-category='Photography' \
	--remove-category='RasterGraphics' \
	%{buildroot}%{_datadir}/applications/*.desktop

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2073 |21cr|gpodder-3.11.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gpodder
Version:        3.11.4
Release:        1
Summary:        Podcast receiver/catcher written in Python
Group:          Networking/News
License:        GPLv3+ and LGPLv2+
URL:            http://gpodder.org
Source0:        https://github.com/gpodder/gpodder/archive/%{version}/gpodder-%{version}.tar.gz
# Rename the appdata file to comply with Fedora Packaging Guidelines
Patch0:         rename-appdata.patch
Patch1:         disable-auto-update-check.patch
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-feedparser
BuildRequires:  desktop-file-utils
BuildRequires:  gettext
BuildRequires:  intltool
BuildRequires:  help2man
BuildRequires:  make
BuildRequires:  appstream-util
#Requires:       python-gpod, python-eyed3 #re-enable once Python 3 support exists.
Requires:       python3-gobject
Requires:       python3-dbus
Requires:       python3-podcastparser
Requires:       python3-pillow
Requires:       python3-mygpoclient
Requires:       hicolor-icon-theme
Requires:       yt-dlp
%description
gPodder is a Podcast receiver/catcher written in Python, using GTK. 
It manages podcast feeds for you and automatically downloads all 
podcasts from as many feeds as you like.
It also optionally supports syncing with ipods.

%prep
%autosetup -p1 -n %{name}-%{version}

#drop examples for now
rm -rf share/gpodder/examples

%build
make messages

%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml

%install
make install DESTDIR=%{buildroot}

desktop-file-install --delete-original          \
  --dir %{buildroot}%{_datadir}/applications                 \
  --remove-key Miniicon --add-category Application              \
  --remove-category FileTransfer --remove-category News         \
  --remove-category Network                                     \
  %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

%files -f %{name}.lang
%doc COPYING README.md
%{_bindir}/%{name}
%{_bindir}/gpo
%{_bindir}/%{name}-migrate2tres
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man1/*
%{_metainfodir}/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gpodder.service
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2074 |21cr|gpppoem-0.1.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Monitor your pppoe connection
Name:		gpppoem
Version:	0.1.1
Release:	12
License:	GPLv2+
Group:		Monitoring
Url:		http://footprints.altervista.org/index.php
Source0:	http://footprints.altervista.org/archivio/%{name}/%{name}-%{version}.tar.bz2
Source10:	gpppoem-16.png
Source11:	gpppoem-32.png
Source12:	gpppoem-48.png
BuildRequires:	pkgconfig(libgnome-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)

%description
Monitor your pppoe connection. It can also monitor your eth0 connection.

%files
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/pixmaps/%{name}/gppp.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-0.1

find . -name "Makefile*" -o -name "*.m4" -o -name "configure*" |xargs sed -i -e 's,configure.in,configure.ac,g'

%build
export LIBS="-lX11"
autoreconf -vif
%configure

%install
%makeinstall_std prefix=%{buildroot}%{_prefix}

mkdir -p %{buildroot}/{%{_iconsdir},%{_liconsdir},%{_miconsdir}}
cp %{SOURCE10} %{buildroot}%{_miconsdir}/%{name}.png
cp %{SOURCE11} %{buildroot}%{_iconsdir}/%{name}.png
cp %{SOURCE12} %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Gpppoem
Comment=Pppoe monitor
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;X-MandrivaLinux-System-Monitoring;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2075 |21cr|gpredict-1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast and accurate real-time satellite tracking
Name:		gpredict
Version:	1.3
Release:	4
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		http://gpredict.oz9aec.net
Source0:	http://download.sourceforge.net/gpredict/%{name}-%{version}.tar.gz
Patch0:		gpredict-1.3-fix-desktop-file.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(goocanvas)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcurl)

%description
Gpredict includes the following features:
  * Tracking an infinite number of satellites only limited by the
    physical memory and processing power of the computer.
  * Display the tracking data in lists, maps, polar plots and any
    combination of these.
  * You can have many modules open at the same either in a
    notebook or in their own windows. The module can also run in
    full-screen mode.
  * You can use many ground stations. Ground station coordinates
    can either be entered manually or you can get some appriximate values
    from a list with more than 2000 predefined locations worldwide.
  * Predict upcoming passes for satellites, including passes where a
    satellite may be visible and communication windows
  * Very detailed information about both the real time data and the
    predicted passes.
  * Gpredict can run in real-time, simulated real-time (fast forward and
    backward), and manual time control.
  * Doppler tuning of radios via Hamlib rigctld.
  * Antenna rotator control via Hamlib rotctld.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}-icon.png
%{_mandir}/man1/gpredict.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2076 |21cr|gprename-20220226-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion 20140325

Summary:	A GTK2 batch renamer for files and directories
Name:		gprename
Version:	20220226
Release:	1
License:	GPLv3+
Group:		File tools
Url:		http://gprename.sourceforge.net/
Source0:	http://kent.dl.sourceforge.net/project/gprename/gprename/%{oversion}/gprename-%{oversion}.tar.bz2
Patch0:		desktop_icon.patch
BuildArch:	noarch

%description
GPRename is a complete GTK2/perl batch renamer for files and directories.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oversion}
%patch0 -p0

%build

%install
make \
     PREFIX=%{_prefix} \
     DESTDIR=%{buildroot}%{_prefix} \
     install

rm -f %{buildroot}%{_datadir}/applications/gprename-nautilus-actions.xml

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2077 |21cr|gpsbabel-1.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        GPSBabel converts GPS data from one format to another
Name:           gpsbabel
Version:        1.8.0
Release:        2
License:        GPLv2+
Group:          Geography
URL:            http://www.gpsbabel.org
# Source:               http://prdownloads.sourceforge.net/%%{name}/%%{name}-%%{version}.tar.gz
# Needs to be downloaded from the http://www.gpsbabel.org/ URL.
Source:         GPSBabel-%{version}.tar.gz
Source2:        %{name}.png
# Fedora patches:
# No automatic phone home by default (RHBZ 668865)
Patch2:        0002-No-solicitation.patch
BuildRequires:  cmake
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(shapelib)
#BuildRequires:  pkgconfig(minizip)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(Qt5SerialPort)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5WebEngine)
BuildRequires:  pkgconfig(Qt5WebEngineWidgets)
BuildRequires:  pkgconfig(Qt5WebChannel)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  qt5-tools

%description
GPSBabel converts waypoints, tracks, and routes from one format to another,
whether that format is a common mapping format like Delorme, Streets and
Trips, or even a serial upload or download to a GPS unit such as those from
Garmin and Magellan. By flatting the Tower of Babel that the authors of
various programs for manipulating GPS data have imposed upon us, it returns
to us the ability to freely move our own waypoint data between the programs
and hardware we choose to use.

%files
%doc README*
%license COPYING
%{_bindir}/%{name}

#---------------------------------------------------------
%package gui
Summary:        Qt GUI interface for GPSBabel
Group:          Geography
License:        GPLv2+
Requires:       %{name} = %{version}-%{release}

%description gui
Qt GUI interface for GPSBabel

%files gui -f %{name}.lang
%doc gui/{AUTHORS,README*,TODO}
%license gui/COPYING*
%{_bindir}/gpsbabelfe
%{_datadir}/gpsbabel
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/256x256/apps/*

#---------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
  -DGPSBABEL_WITH_ZLIB=pkgconfig \
  -DGPS_BABEL_WITH_SHAPE_LIB=pkgconfig \
  -DGPSBABEL_WITH_SHAPELIB=pkgconfig

%make

%install
# make install rule not defined, manual install files
install -m 0755 -d %{buildroot}%{_bindir}/
install -m 0755 -p build/gpsbabel %{buildroot}%{_bindir}/

install -m 0755 -d %{buildroot}%{_bindir}/
install -m 0755 -p build/gui/GPSBabelFE/gpsbabelfe %{buildroot}%{_bindir}/

install -m 0755 -d %{buildroot}%{_qt5_translationsdir}/
install -m 0644 -p gui/gpsbabelfe_*.qm     %{buildroot}%{_qt5_translationsdir}/

install -m 0755 -d %{buildroot}%{_qt5_translationsdir}/
install -m 0644 -p gui/coretool/gpsbabel_*.qm %{buildroot}%{_qt5_translationsdir}/

install -m 0755 -d %{buildroot}%{_datadir}/gpsbabel
install -m 0644 -p gui/gmapbase.html %{buildroot}%{_datadir}/gpsbabel

desktop-file-install \
        --dir %{buildroot}/%{_datadir}/applications \
        gui/gpsbabel.desktop

install -m 0755 -d            %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
install -m 0644 -p %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/

%find_lang %{name} --with-qt --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2078 |21cr|gpscorrelate-1.6.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GPS photo tagging application
Name:		gpscorrelate
Version:	1.6.1
Release:	10
License:	GPLv2+
Group:		Graphics
Url:		http://freefoote.dview.net/linux_gpscorr.html
Source0:	http://freefoote.dview.net/linux/%{name}-%{version}.tar.gz
Patch0:		gpscorrelate-1.6.1-makefile.diff
Patch1:		gpscorrelate-1.6.1-exiv2-0.27.1.patch
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
This program correlates digital camera photos with GPS data in GPX format.

%files
%doc RELEASES COPYING README doc
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%make LDFLAGS="%{ldflags}" CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_bindir}
install -m 755 gpscorrelate gpscorrelate-gui %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2079 |21cr|gpsim-0.31.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A software simulator for Microchip PIC microcontrollers
Name:		gpsim
Version:	0.31.0
Epoch:		1
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://gpsim.sourceforge.net/
Source0:	%{name}-%{version}.tar.gz
Patch0:		gpsim-eXdbm-linking.patch
BuildRequires:	flex
BuildRequires:	gputils
BuildRequires:	glibc-static-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(popt)

%description
gpsim is a full-featured software simulator for Microchip PIC microcontrollers
distributed under the GNU General Public License.

gpsim has been designed to be as accurate as possible. Accuracy includes the
entire PIC - from the core to the I/O pins and including ALL of the internal
peripherals. Thus it's possible to create stimuli and tie them to the I/O pins
and test the PIC the same PIC the same way you would in the real world.

%files
%doc README
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libgpsim.

%files -n %{libname}
%{_libdir}/lib%{name}*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use libgpsim
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libgpsim.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%define _disable_ld_no_undefined 1
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2080 |21cr|gpsman-6.4.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This spec is based on Fedora, Debian and MIB work

Name:		gpsman
Version:	6.4.4.2
Release:	1
Summary:	A GPS manager
Group:		Communications
License:	GPLv3+
URL:		http://www.ncc.up.pt/gpsman/wGPSMan_4.html
Source0:	https://downloads.sourceforge.net/project/gpsman/distrib/gpsman-%{version}.tgz
#man files for the utils, stolen from debian
Source1:	mou2gmn.1
Source2:	mb2gmn.1
Source3:	gpsman.desktop
Source4:	gpsman-icon.png
#fix location of files in executable
Patch0:		gpsman-sourcedir.patch
BuildArch:	noarch
BuildRequires:	desktop-file-utils
Requires:	tk
Requires:	tkimg

%description
GPS Manager (GPSMan) is a graphical manager of GPS data that makes possible
the preparation, inspection and edition of GPS data in a friendly environment.

GPSMan supports communication and real-time logging with both Garmin and
Lowrance receivers and accepts real-time logging information in NMEA 0183
from any GPS receiver.

%prep
%setup -q
%patch0 -p1

#make sure all files are utf-8
recode()
{
  iconv -f "$2" -t utf-8 < "$1" > "${1}_"
  mv -f "${1}_" "$1"
}
for f in `find manual/html -name *.html`
 do recode $f iso-8859-15
done
recode manual/html/info/WPs.txt iso-8859-15

%build
#no build needed

%install
%__rm -rf %{buildroot}
#manual install
%__install -D -m 0755 gpsman.tcl %{buildroot}%{_bindir}/gpsman
%__install -Dd gmsrc %{buildroot}%{_datadir}/gpsman
for f in `find gmsrc/ -type f -maxdepth 1`
 do %__install -D -m 0644 $f %{buildroot}%{_datadir}/gpsman/`echo $f | cut -d '/' -f2`
done
%__install -Dd gmsrc/gmicons %{buildroot}%{_datadir}/gpsman/gmicons
for f in `find gmsrc/gmicons/ -type f -name *.gif`
 do %__install -D -m 0644 $f %{buildroot}%{_datadir}/gpsman/gmicons/`echo $f | cut -d '/' -f3`
done
%__install -D -m 0644 man/man1/gpsman.1 %{buildroot}%{_mandir}/man1/gpsman.1
#utils
%__install -D -m 0755 util/mb2gmn.tcl %{buildroot}%{_bindir}/mb2gmn
%__install -D -m 0755 util/mou2gmn.tcl %{buildroot}%{_bindir}/mou2gmn
#man files
%__install -D -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/mb2gmn.1
%__install -D -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/mou2gmn.1
# desktop file and icon
%__mkdir_p %{buildroot}%{_datadir}/pixmaps/
install -m 644 %{SOURCE4} \
  %{buildroot}%{_datadir}/pixmaps/
desktop-file-install --vendor="" \
  --dir=%{buildroot}%{_datadir}/applications \
  %{SOURCE3}

%clean
%__rm -rf %{buildroot}

%files
%doc LICENSE manual/GPSMandoc.pdf manual/html
%{_bindir}/*
%{_datadir}/gpsman
%{_mandir}/man?/*
%attr(0644,root,root) %{_datadir}/applications/%{name}.desktop
%attr(0644,root,root) %{_datadir}/pixmaps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2081 |21cr|gputils-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A collection of tools for the Microchip (TM) PIC microcontrollers
Name:		gputils
Version:	1.5.2
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://gputils.sourceforge.net/
Source0:	http://downloads.sourceforge.net/gputils/%{name}-%{version}.tar.gz

%description
GPUTILS is a collection of tools for the Microchip (TM) PIC microcontrollers.
It includes gpasm, gplink, and gplib.

%files
%doc README
%{_datadir}/%{name}
%{_mandir}/man1/*.1*
%lang(fr) %{_mandir}/fr/man1/*
%{_bindir}/*
%{_docdir}/%{name}-%{version}/html

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2082 |21cr|gq-1.3.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GTK-based LDAP client
Name:		gq
Version:	1.3.4
Release:	9
License:	GPL
Group:		Databases
Url:		http://biot.com/gq/
Source0:	http://prdownloads.sourceforge.net/gqclient/%{name}-%{version}.tar.gz
Source11:	gq16.png
Source12:	gq32.png
Source13:	gq48.png
Patch1:		gq-1.3.4-mdv-fix-str-fmt.patch
Patch2:		gq-1.3.4-kerberos.patch
Patch3:		gq-1.3.4-configure.patch
Patch4:		gq-1.3.4-glibc.patch
Patch5:		gq-1.3.4-gcc.patch
Patch6:		gq-1.3.4-error.patch
Patch7:		gq-1.3.4-openssl11.patch
BuildRequires:	intltool
BuildRequires:	rarian
BuildRequires:	gettext-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libgsasl)
BuildRequires:  pkgconfig(libxml-2.0)
#BuildRequires:	glib-devel
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)

%description
GQ is GTK+ LDAP client and browser utility. It can be used for searching a
LDAP directory as well as browsing it using a tree view.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README* TODO 
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/pixmaps/gq
%{_iconsdir}/hicolor/16x16/apps/*
%{_datadir}/mime/packages/gq-ldif.xml
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
#{_datadir}/omf/gq-manual/gq-manual-C.omf
#lang(de) %%{_datadir}/omf/gq-manual/gq-manual-de.omf

#-----------------------------------------------------------------------------

%prep 
%setup -q
%patch1 -p1 -b .strfmt
%patch2 -p1 -b .kerberos
%patch3 -p0 -b .configure
%patch4 -p1 -b .glibc
%patch5 -p1 -b .gcc
%patch6 -p1 -b .error
%patch7 -p1 -b .openssl11

%build
%global optflags %{optflags} -fcommon
#export CFLAGS="%%{optflags} -DLDAP_DEPRECATED"
export LIBS="-lcrypto -L%{_libdir}"
%configure \
    --with-default-codeset=UTF-8 \
    --enable-cache \
    --with-kerberos-prefix=%{_prefix} \
    --enable-browser-dnd \
    --disable-update-mimedb
%make


%install
%makeinstall_std

#(peroyvind): replace menu with our own as it's more complete and valid ;)
rm -f %{buildroot}%{_datadir}/applications/gq.desktop
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=GQ
Comment=%{Summary}
Comment[ru]=Графический клиент LDAP
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=GTK;Network;System;
EOF


install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

# Macro for locales
%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2083 |21cr|gqemoo-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		gqemoo
Version:	2.4
Release:	1
Summary:	Simple gui for qemoo (bash qemu wrapper)
Group:		Emulators
License:	GPLv3
URL:		https://github.com/AKotov-dev/gqemoo
Source0:	%{URL}/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
BuildRequires:	/usr/bin/msgfmt
Requires:	qemoo
Requires:	polkit
Requires:	/usr/bin/remote-viewer

%description
Simple gui for qemoo (bash qemu wrapper)

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.png
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/%{name}.mo

#----------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all  *.lpi

#translate additional messages
msgfmt languages/gqemoo.ru.po -o languages/gqemoo.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{icons,applications}
mkdir -p %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/
mkdir -p %{buildroot}%{_bindir}

install -m 755  %{name} %{buildroot}%{_bindir}/%{name}
install -m 644  ico/%{name}.png  %{buildroot}%{_datadir}/icons/%{name}.png
install -m 644  ./all/%{_datadir}/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m 644  languages/%{name}.ru.mo  %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/%{name}.mo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2084 |21cr|gqrx-2.17.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gqrx
Version:        2.17.5
Release:        1
Summary:        Software defined radio receiver powered by GNU Radio and Qt
Group:          Communications
License:        GPLv3+ and GPLv2+ and BSD
URL:            https://gqrx.dk/
Source0:        https://github.com/gqrx-sdr/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  cmake(funcube)
BuildRequires:  desktop-file-utils
BuildRequires:  git
BuildRequires:  %{_lib}gnuradio-pmt-devel
BuildRequires:  gnuradio-utils
BuildRequires:  pkgconfig(gmp)
BuildRequires:  pkgconfig(gmpxx)
BuildRequires:  pkgconfig(gnuradio-analog)
BuildRequires:  pkgconfig(gnuradio-audio)
BuildRequires:  pkgconfig(gnuradio-blocks)
BuildRequires:  pkgconfig(gnuradio-digital)
BuildRequires:  pkgconfig(gnuradio-fft)
BuildRequires:  pkgconfig(gnuradio-filter)
BuildRequires:  pkgconfig(gnuradio-iqbalance)
BuildRequires:  pkgconfig(gnuradio-network)
BuildRequires:  pkgconfig(gnuradio-osmosdr)
BuildRequires:  pkgconfig(gnuradio-runtime)
BuildRequires:  pkgconfig(libairspy)
BuildRequires:  pkgconfig(libbladeRF)
BuildRequires:  pkgconfig(libhackrf)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(librtlsdr)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  python3-gnuradio-runtime
BuildRequires:  python3-numpy-devel

%description
Gqrx is a software defined radio receiver powered by the GNU Radio SDR
framework and the Qt graphical toolkit.

%files
%doc README.md
%{_bindir}/*
%{_datadir}/applications/dk.%{name}.%{name}.desktop
%{_datadir}/metainfo/dk.gqrx.gqrx.appdata.xml
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#---------------------------------------------------------
%prep
%autosetup -p1

%build
%cmake

%make_build

%install
%make_install -C build

# desktop-file
desktop-file-install \
    --remove-category='Network' \
    --remove-category='Accessories' \
    --add-category='AudioVideo' \
    --add-category='Audio' \
    --add-category='X-Mageia-CrossDesktop' \
    --dir=%{buildroot}%{_datadir}/applications \
      dk.%{name}.%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2085 |21cr|grace-5.1.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NOTE: this is needed to avoid broken macro format in 
# T1lib/type1/objects.c
# T1lib/type1/type1.c (presumably others)
# since IfTrace0 macro does not include the format string
# Upstream is warned
# All other formats are fixed in the patched files (sent upstream also)

%define Werror_cflags %nil

Summary:	Numerical Data Processing and Visualization Tool (Grace)
Name:		grace
Version:	5.1.25
Release:	2
License:	GPLv2+
Group:		Sciences/Other
Url:		http://plasma-gate.weizmann.ac.il/Grace/
Source0:	ftp://plasma-gate.weizmann.ac.il/pub/grace/src/grace5/%{name}-%{version}.tar.gz
Source1:	grace-icons.tar.bz2
Patch0:		svgdrv_stringliteral.patch
Patch1:		utils_stringliteral.patch
Patch2:		do_not_strip_binaries.patch
BuildRequires:	jpeg-devel
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)
Requires:	webclient
Requires:	xterm

# NOTE: This can be rebuilt with pdflib-devel installed if you want to enable pdf
# support. Keep in mind that pdflib is not free (Aladdin FPL).

%description
Grace is a Motif/Lesstif application for two-dimensional data
visualization. Grace can transform the data using free equations, FFT,
cross- and auto-correlation, differences, integrals, histograms, and
much more. The generated figures are of high quality.  Grace is a very
convenient tool for data inspection, data transformation, and for
making figures for publications.

%files
%doc CHANGES COPYRIGHT DEVELOPERS LICENSE README ChangeLog doc/*.html doc/*.png
%{_mandir}/man1/*
%{_libdir}/grace
%{_bindir}/grace
%{_bindir}/gracebat
%{_bindir}/xmgrace
%{_bindir}/convcal
%{_bindir}/fdf2fit
%if %{mdvver} < 201410
%{_bindir}/grconvert
%endif
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/grace.png

#----------------------------------------------------------------------------

%package devel
Summary:	Library and header files for Grace-linked apps development
Group:		Development/Other
Requires:	grace = %{EVRD}

%description devel
This package includes header and library files needed to
develop programs which will use grace as a subprocess.
This feature is currently (%{name}-%{version}) available for
C and Fortran77 languages.

%files devel
%{_includedir}/grace_np.h
%{_libdir}/libgrace_np.a

#----------------------------------------------------------------------------

%prep
%setup -a 1 -q
%patch0 -p 1
%patch1
%patch2 -p 1

%build
%configure \
	--enable-grace-home=%{_libdir}/grace \
	--with-helpviewer="xdg-open %s"  \
	--with-x \
	--x-includes=%{_libdir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall GRACE_HOME=%{buildroot}/%{_libdir}/grace

#fixup binaries
mkdir %{buildroot}%{_bindir}
mv %{buildroot}%{_libdir}/grace/bin/* %{buildroot}%{_bindir}
rm -fr %{buildroot}%{_libdir}/grace/bin
ln -s %{_bindir}/xmgrace %{buildroot}%{_bindir}/grace

#fixup devel files
mv %{buildroot}%{_libdir}/grace/lib/* %{buildroot}%{_libdir}
rm -fr %{buildroot}%{_libdir}/grace/lib
mkdir %{buildroot}%{_includedir}
mv %{buildroot}%{_libdir}/grace/include/* %{buildroot}%{_includedir}
rm -fr %{buildroot}%{_libdir}/grace/include

#fixup documentation
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_libdir}/grace/doc/*.1 %{buildroot}%{_mandir}/man1
rm -fr %{buildroot}%{_libdir}/grace/doc
ln -s %{_docdir}/%{name} %{buildroot}%{_libdir}/grace/doc

install -d %{buildroot}%{_datadir}/applications
cat <<EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Grace
Comment=Graphical visualization of scientific data
Exec=xmgrace
Icon=grace
Type=Application
Categories=Science;Education;2DGraphics;
EOF

# icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
pushd grace-icons
cp grace16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/grace.png
cp grace32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/grace.png
cp grace48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/grace.png
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2086 |21cr|grail-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	Gesture Recognition And Instantiation Library
Name:		grail
Version:	3.1.1
Release:	1
License:	GPLv3+
Group:		Development/Other
Url:		https://launchpad.net/grail
Source0:	https://launchpad.net/grail/trunk/%{version}/+download/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(evemu)
BuildRequires:	pkgconfig(frame)
BuildRequires:	pkgconfig(frame-x11)
BuildRequires:	pkgconfig(inputproto)
BuildRequires:	pkgconfig(mtdev)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)

%description
Grail consists of an interface and tools for handling gesture recognition and
gesture instantiation.

When a multitouch gesture is performed on a device, the recognizer emits one
or several possible gestures. Once the context of the gesture is known, i.e.,
in what window the touches land and what gestures the clients of that window
listen to, the instantiator delivers the matching set of gestures.

The library handles tentative gestures, i.e., buffering of events for several
alternative gestures until a match is confirmed.

%files
%doc README COPYING
%{_bindir}/grail*
%{_mandir}/man1/grail*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GRAIL shared library package
Group:		System/Libraries
Conflicts:	%{_lib}grail5 < 3.1.0
Obsoletes:	%{_lib}grail5 < 3.1.0

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with grail.

%files -n %{libname}
%{_libdir}/libgrail.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Gesture Recognition And Instantiation Library Development Package
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}grail5 < 3.1.0

%description -n %{devname}
This package provides headers files for grail development.

%files -n %{devname}
%{_includedir}/oif/grail.h
%{_libdir}/libgrail.so
%{_libdir}/pkgconfig/grail.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
sed -i 's/-Werror//g' configure.ac
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2087 |21cr|gramps-5.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Genealogical Research and Analysis Management Programming System
Name:		gramps
Version:	5.1.4
Release:	2
License:	GPLv2+
Group:		Sciences/Other
Url:		http://www.gramps-project.org
Source0:	https://github.com/gramps-project/gramps/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source11:	%{name}-48.png
Source12:	%{name}-32.png
Source13:	%{name}-16.png
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	python3
Requires:	shared-mime-info
Requires:	python3-icu
Requires:	python3-gi
Requires:	python3-gi-cairo
Requires:	python3-bsddb3
Requires:	xdg-utils
Requires:	typelib(GExiv2)
Requires:	typelib(Gdk)
Requires:	typelib(GdkPixbuf)
Requires:	typelib(GLib)
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(Pango)
Requires:	typelib(PangoCairo)
Requires:	typelib(PangoFT2)
Requires:	typelib(WebKit2)
Recommends:	fonts-ttf-freefont
Recommends:	gtkspell3
Recommends:	typelib(Goocanvas) = 2.0
#Suggest it for geography functionality
Recommends:	typelib(OsmGpsMap)
BuildArch:	noarch

%description
gramps (Genealogical Research and Analysis Management Programming
System) is a GNOME based genealogy program supporting a Python
based plugin system.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/mime-info/%{name}.*
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/%{name}
%{_defaultdocdir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_iconsdir}/hicolor/*/mimetypes/application-x-*.*
%{_mandir}/man1/%{name}.1*
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
python3 setup.py build

%install
python3 setup.py install --root %{buildroot}
# fix it:
perl -pi -e "s@%{buildroot}@@" %{buildroot}/%{py3_puresitedir}/gramps/gen/utils/resource-path
rm -fr %{buildroot}/var

#menu
perl -pi -e 's,%{name}.png,%{name},g' %{buildroot}%{_datadir}/applications/*
desktop-file-install --vendor="" \
	--remove-category="Application" \
	--remove-category="Genealogy" \
	--add-category="Science" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

#icons
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

%find_lang %{name} --with-gnome --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2088 |21cr|grandorgue-3.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	libname %mklibname %{name} %{version}
%define	oname GrandOrgue

Summary:	Virtual Pipe Organ Software
Name:		grandorgue
Version:	3.13.1
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/GrandOrgue/grandorgue
Source0:	https://github.com/GrandOrgue/grandorgue/archive/%{version}-1.tar.gz?/%{name}-%{version}-1.tar.gz
Patch0:		grandorgue-3.11.0-0-header-path.patch
# yaml-cpp-config.cmake from yaml-cpp package seems to return empty
# YAML_CPP_LIBRARIES, causing the linking to fail: add lyaml-cpp explicitly
Patch1:		grandorgue-3.12.1-1-fix-yaml_cpp-linking.patch
BuildRequires:	cmake
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-style-xsl-ns
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	po4a
BuildRequires:	xsltproc
BuildRequires:	libzita-convolver-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fftw3f)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(rtaudio)
BuildRequires:	pkgconfig(rtmidi)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(yaml-cpp)
BuildRequires:	pkgconfig(zlib)
Recommends:		%{name}-demo = %{EVRD}

%description
GrandOrgue is a virtual pipe organ sample player application supporting a HW1 compatible file format.

%files -f %{oname}.lang
%doc CHANGELOG.md README.md
%license LICENSE
%{_bindir}/%{oname}*
%{_datadir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_appdatadir}/%{oname}.appdata.xml
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/%{oname}.png
%{_mandir}/man1/%{oname}*.1*

#----------------------------------------------------------------------------

%package demo
Summary:	Sample files for %{name}
Group:		Sound
BuildArch:	noarch

%description demo
Sample files for %{name}.

%files demo
%{_datadir}/%{oname}/packages/*.orgue

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
Library for %{name}.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{oname}*.so.%{version}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-1


%build
# Yaml-cpp detection is rather broken...
%cmake	\
	-DDOC_INSTALL_DIR=%{_docdir}	\
	-DLIBINSTDIR=%{_lib}		\
	-Dyaml-cpp_DIR="%{_libdir}/cmake/yaml-cpp" \
	-DYAML_CPP_INCLUDE_DIRS="%{_includedir}/yaml-cpp" \
	-DYAML_CPP_LIBRARIES="%{_libdir}" \
	-DUSE_INTERNAL_PORTAUDIO=OFF	\
	-DUSE_INTERNAL_RTAUDIO=OFF	\
	-DUSE_INTERNAL_ZITACONVOLVER=OFF
%make


%install
%makeinstall_std -C build

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2089 |21cr|grandr-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: grandr
Version: 0.1
Release: 11
Summary: Interface to RandR extension
Group: System/X11
URL:    http://www.x.org/
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
# These are all upstream patches since the 0.1 release:
Patch0: grandr-upstream-01-fix-segfault-at-startup.patch
Patch1: grandr-upstream-02-license-was-gpl-not-mit.patch
Patch2: grandr-upstream-03-fix-typo-output.patch
Patch3: grandr-upstream-04-exit-when-window-is-closed.patch
Patch4: grandr-upstream-05-fix-typo-screen.patch
# This was taken from Debian, should fix #54985
# http://git.debian.org/?p=pkg-xorg/app/grandr.git
Patch5: grandr-debian-01-fix-segfault-when-click-monitor.patch
# This one is from Mandriva (read its header for a description of the problem)
Patch6: grandr-mandriva-synchronize-before-and-after-apply.patch

License: MIT

BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(xorg-macros)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gconf-2.0)

%description
grandr is used to set the screen size, orientation and/or reflection using the
RandR extension.

%prep
%setup -q -n %{name}-%{version}
%apply_patches

%build
export LIBS="-lX11 -lgthread-2.0"
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%defattr(-,root,root)
%{_bindir}/grandr
#%{_mandir}/man1/grandr.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2090 |21cr|granite-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define girmajor 1.0
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{girmajor}
%define devname %mklibname %{name} -d

Summary:	Extension of GTK+ libraries
Name:		granite
Version:	6.2.0
Release:	1
License:	GPLv3+
Group:		System/Libraries
Url:		https://github.com/elementary/granite
Source0:	https://github.com/elementary/granite/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Granite is an extension of GTK+. Among other things, it provides the
commonly-used widgets such as modeswitchers, welcome screens, AppMenus,
search bars, and more found in elementary apps.

%files -f %{name}.lang
%doc COPYING *.md
%{_datadir}/metainfo/granite.appdata.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Extension of GTK+ libraries (libraries)
Group:		Development/GNOME and GTK+
Requires:	%{name}

%description -n %{libname}
Granite is an extension of GTK+. Among other things, it provides the
commonly-used widgets such as modeswitchers, welcome screens, AppMenus,
search bars, and more found in elementary apps.

This package contains the shared library.

%files -n %{libname}
%{_libdir}/libgranite.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection data for the granite library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{name}-gir < 0.4.0.1
Obsoletes:	%{name}-gir < 0.4.0.1

%description -n %{girname}
GObject introspection data for the granite library.

%files -n %{girname}
%{_libdir}/girepository-1.0/Granite-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Extension of GTK+ libraries (development files)
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Granite is an extension of GTK+. Among other things, it provides the
commonly-used widgets such as modeswitchers, welcome screens, AppMenus,
search bars, and more found in elementary apps.

This package contains header files.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/granite
%{_datadir}/gir-1.0/*gir
%{_libdir}/pkgconfig/granite.pc

#----------------------------------------------------------------------------

%package vala
Summary:	Vala language bindings for the granite library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description vala
This package provides Vala language bindings for the granite library.

%files vala
%{_datadir}/vala/vapi/granite.deps
%{_datadir}/vala/vapi/granite.vapi

#----------------------------------------------------------------------------

%package demo
Summary:	Extension of GTK+ libraries (demo binary)
Group:		Development/GNOME and GTK+

%description demo
Granite is an extension of GTK+. Among other things, it provides the
commonly-used widgets such as modeswitchers, welcome screens, AppMenus,
search bars, and more found in elementary apps.

This package contains a small demo application to show Granite Widgets.

%files demo
%{_bindir}/*
%{_datadir}/applications/io.elementary.granite.demo.desktop
%{_datadir}/icons/hicolor/*/*/*.svg

#----------------------------------------------------------------------------

%prep
%setup -q

# fix gir library dependency
sed -i "s|@PLAINNAME@|libgranite.so.%{major}|" lib/meson.build

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2091 |21cr|grantlee-0.3.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with apidox

Summary:	Qt string template engine based on the Django template system
Name:		grantlee
Version:	0.3.0
Release:	10
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.gitorious.org/grantlee/pages/Home
Source0:	http://downloads.%{name}.org/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	kde4-macros
BuildRequires:	qt4-devel
%if %{with apidocs}
BuildRequires:	doxygen
%endif

%description
Grantlee is a plugin based String Template system written using the Qt
framework. The goals of the project are to make it easier for application
developers to separate the structure of documents from the data they
contain, opening the door for theming.

The syntax is intended to follow the syntax of the Django template
system, and the design of Django is reused in Grantlee. Django is covered
by a BSD style license.

Part of the design of both is that application developers can extend the
syntax by implementing their own tags and filters. For details of how to
do that, see the API documentation.

For template authors, different applications using Grantlee will present
the same interface and core syntax for creating new themes. For details
of how to write templates, see the documentation.

%files
%doc AUTHORS CHANGELOG COPYING.LIB README GOALS
%{_libdir}/%{name}/?.?

#--------------------------------------------------------------------

%define grantlee_gui_major 0
%define libgrantlee_gui %mklibname grantlee_gui %{grantlee_gui_major}

%package -n %{libgrantlee_gui}
Summary:	Library files for %{name}
Group:		System/Libraries

%description  -n %{libgrantlee_gui}
Libraries for %{name}.

%files -n %{libgrantlee_gui}
%{_libdir}/libgrantlee_gui.so.%{grantlee_gui_major}*

#--------------------------------------------------------------------

%define grantlee_core_major 0
%define libgrantlee_core %mklibname grantlee_core %{grantlee_core_major}

%package -n %{libgrantlee_core}
Summary:	Library files for %{name}
Group:		System/Libraries

%description  -n %{libgrantlee_core}
Libraries for %{name}.

%files -n %{libgrantlee_core}
%{_libdir}/libgrantlee_core.so.%{grantlee_core_major}*

#--------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libgrantlee_gui} = %{EVRD}
Requires:	%{libgrantlee_core} = %{EVRD}

%description devel
Libraries and header files to develop applications that use %{name}.

%files devel
%{_libdir}/cmake/%{name}
%{_includedir}/%{name}
%{_includedir}/%{name}_core.h
%{_includedir}/%{name}_templates.h
%{_libdir}/lib%{name}*.so

#--------------------------------------------------------------------

%if %{with apidox}
%package apidocs
Group:		Development/Documentation
Summary:	Grantlee API documentation

%description apidocs
This package includes the Grantlee API documentation in HTML format for easy
browsing.

%files apidocs
%doc %{_docdir}/HTML/en/grantlee-apidocs
%endif
#--------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4

%make
%if %{with apidox}
make docs
%endif

%install
%makeinstall_std -C build

%if %{with apidox}
mkdir -p %{buildroot}%{_docdir}/HTML/en/grantlee-apidocs
cp -prf build/apidocs/html/* %{buildroot}%{_docdir}/HTML/en/%{name}-apidocs
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2092 |21cr|graph35-0.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		graph35
Version:	0.1.4
Release:	1
Summary:	Draw keys and screen items of several Casio calculators
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/graphics/graph35
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graph35.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graph35.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graph35.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This package defines commands to draw the Casio Graph 35 /
fx-9750GII calculator (and other models). It can draw the whole
calculator, or parts of it (individual keys, part of the
screen, etc.). It was written to typeset documents instructing
students how to use their calculator.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/graph35
%doc %{_texmfdistdir}/doc/latex/graph35
#- source
%doc %{_texmfdistdir}/source/latex/graph35

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2093 |21cr|graphlcd-base-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname graphlcd

%define drivers_major 2
%define graphics_major 2
%define skin_major 2
%define drivers_libname %mklibname glcddrivers %{drivers_major}
%define graphics_libname %mklibname glcdgraphics %{graphics_major}
%define skin_libname %mklibname glcdskin %{skin_major}
%define devname %mklibname %{shortname} -d

Summary:	GraphLCD drivers and tools
Name:		graphlcd-base
Version:	2.0.3
Release:	1
License:	GPL
Group:		System/Kernel and hardware
Url:		https://github.com/M-Reimer/graphlcd-base
Source0:	%{url}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)

%description
The GraphLCD base is a project to support graphical LC displays. It is
mainly used by the graphlcd plugin for the Video Disc Recorder to
display its information.

#----------------------------------------------------------------------------

%package -n %{drivers_libname}
Summary:	GraphLCD shared driver library
Group:		System/Libraries
Provides:	libglcddrivers = %{EVRD}
Conflicts:	%{_lib}graphlcd1
# While the library doesn't use graphlcd-config directly, it is
# useless without the linked program using it.
# (Anssi) FIXME: What? If the above is true then this is bogus.
Requires:	%{shortname}-common >= %{version}

%description -n %{drivers_libname}
The GraphLCD base is a project to support graphical LC displays. It is
mainly used by the graphlcd plugin for the Video Disc Recorder to
display its information.

This package contains the driver library needed to run programs
dynamically linked with GraphLCD.

%files -n %{drivers_libname}
%doc README
%{_libdir}/libglcddrivers.so.%{drivers_major}*

#----------------------------------------------------------------------------

%package -n %{graphics_libname}
Summary:	GraphLCD shared graphics library
Group:		System/Libraries
Provides:	libglcdgraphics = %{EVRD}
Conflicts:	%{_lib}graphlcd1
# While the library doesn't use graphlcd-config directly, it is
# useless without the linked program using it.
# (Anssi) FIXME: See previous fixme.
Requires:	%{shortname}-common >= %{version}

%description -n %{graphics_libname}
The GraphLCD base is a project to support graphical LC displays. It is
mainly used by the graphlcd plugin for the Video Disc Recorder to
display its information.

This package contains the graphics library needed to run programs
dynamically linked with GraphLCD.

%files -n %{graphics_libname}
%doc README
%{_libdir}/libglcdgraphics.so.%{graphics_major}*

#----------------------------------------------------------------------------

%package -n %{skin_libname}
Summary:	GraphLCD shared skin library
Group:		System/Libraries
Provides:	libglcdskin = %{EVRD}
# While the library doesn't use graphlcd-config directly, it is
# useless without the linked program using it.
# (Anssi) FIXME: See previous fixme.
Requires:	%{shortname}-common >= %{version}

%description -n %{skin_libname}
The GraphLCD base is a project to support graphical LC displays. It is
mainly used by the graphlcd plugin for the Video Disc Recorder to
display its information.

This package contains the skin library needed to run programs
dynamically linked with GraphLCD.

%files -n %{skin_libname}
%doc README
%{_libdir}/libglcdskin.so.%{skin_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for graphlcd
Group:		Development/C++
Requires:	%{drivers_libname} = %{EVRD}
Requires:	%{graphics_libname} = %{EVRD}
Requires:	%{skin_libname} = %{EVRD}
Provides:	glcddrivers-devel = %{EVRD}
Provides:	glcdgraphics-devel = %{EVRD}
Provides:	glcdskin-devel = %{EVRD}
Provides:	graphlcd-devel = %{EVRD}

%description -n %{devname}
The GraphLCD base is a project to support graphical LC displays. It is
mainly used by the graphlcd plugin for the Video Disc Recorder to
display its information.

This package contains the headers that programmers will need to
develop applications which will use graphlcd-base.

%files -n %{devname}
%doc README
%{_includedir}/glcddrivers
%{_includedir}/glcdgraphics
%{_includedir}/glcdskin
%{_libdir}/libglcddrivers.so
%{_libdir}/libglcdgraphics.so
%{_libdir}/libglcdskin.so

#----------------------------------------------------------------------------

%package -n %{shortname}-common
Summary:	GraphLCD configuration file and documentation
Group:		System/Kernel and hardware

%description -n %{shortname}-common
The GraphLCD base is a project to support graphical LC displays. It is
mainly used by the graphlcd plugin for the Video Disc Recorder to
display its information.

This package contains the GraphLCD configuration file and GraphLCD
documentation.

%files -n %{shortname}-common
%doc README HISTORY docs
%config(noreplace) %{_sysconfdir}/graphlcd.conf
%{_udevrulesdir}/*-%{name}.rules

#----------------------------------------------------------------------------

%package -n %{shortname}-tools
Summary:	GraphLCD tools
Group:		System/Kernel and hardware

%description -n %{shortname}-tools
The GraphLCD base is a project to support graphical LC displays. It is
mainly used by the graphlcd plugin for the Video Disc Recorder to
display its information.

This package contains tools to use with GraphLCD.

%files -n %{shortname}-tools
%doc README docs/README.*
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
# don't strip nor chmod to root
perl -pi -e 's,-o root -g root -s,,' $(find -name Makefile)

## Optimization flags in 'Make.config' file
sed -i \
	-e 's|PREFIX ?= /usr/local|PREFIX ?= %{_prefix}|' \
	-e 's|LIBDIR ?= $(PREFIX)/lib|LIBDIR ?= %{_libdir}|' \
	-e 's|UDEVRULESDIR ?= /etc/udev/rules.d|UDEVRULESDIR ?= %{_udevrulesdir}|' \
	Make.config

%build
%make

%install
%makeinstall_std

install -d -m755 %{buildroot}%{_sysconfdir}
install -m644 graphlcd.conf %{buildroot}%{_sysconfdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2094 |21cr|grass-8.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define grassfix 82

%if %{_use_internal_dependency_generator}
%global __requires_exclude (.*)\\.so$|(.*)\\.so\\(\\)\\(64bit\\)$
%global __provides_exclude (.*)\\.so$|(.*)\\.so\\(\\)\\(64bit\\)$
%endif

Summary:	Geographic Resources Analysis Support System
Name:		grass
Version:	8.2.1
Release:	1
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		http://grass.osgeo.org/
Source:		https://github.com/OSGeo/grass/archive/%{version}.tar.gz?/grass-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	blas-devel
BuildRequires:	bzip2-devel
BuildRequires:	gomp-devel
BuildRequires:	gcc-gfortran
BuildRequires:	flex
BuildRequires:	lzma
BuildRequires:	swig
BuildRequires:	gd-devel >= 2.0
BuildRequires:	gdal-devel
BuildRequires:	gdbm-devel
BuildRequires:	jpeg-devel
BuildRequires:	lesstif-devel
BuildRequires:	lapack-devel
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRequires:	proj proj-devel
BuildRequires:	python3-numpy-devel
BuildRequires:	readline-devel
BuildRequires:	tcl tcl-devel
BuildRequires:	tiff-devel
BuildRequires:	tirpc-devel
BuildRequires:	tk tk-devel
BuildRequires:	unixODBC-devel
BuildRequires:	wxgtku3.1-devel

BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(zlib)

# disabled ffmpeg support for now, since it has to be fixed upstream
BuildRequires:	ffmpeg-devel

Requires:	xterm
Requires:	tk
Requires:	tcl

%description
GRASS (Geographic Resources Analysis Support System) is an open source, Free
Software Geographical Information System (GIS) with raster, topological vector,
image processing, and graphics production functionality that operates on
various platforms through a graphical user interface and shell in X-Window.

%files
%{_bindir}/*
%{_sysconfdir}/ld.so.conf.d/*
%{_datadir}/applications/*.desktop
%{_datadir}/doc/%{name}
%{_iconsdir}/*/*/*/*
%{_libdir}/grass%{grassfix}/bin
%{_libdir}/grass%{grassfix}/demolocation
%{_libdir}/grass%{grassfix}/docs
%{_libdir}/grass%{grassfix}/driver
%{_libdir}/grass%{grassfix}/gui
%{_libdir}/grass%{grassfix}/etc
%{_libdir}/grass%{grassfix}/fonts
%{_libdir}/grass%{grassfix}/include
%{_libdir}/grass%{grassfix}/lib
%{_libdir}/grass%{grassfix}/locale
%{_libdir}/grass%{grassfix}/scripts
%{_libdir}/grass%{grassfix}/share
%{_libdir}/grass%{grassfix}/utils
%{_libdir}/grass%{grassfix}/INSTALL.md
%{_libdir}/grass%{grassfix}/grass.tmp
%attr(1777,root,root) %{_libdir}/grass%{grassfix}/locks

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# autoreconf -fi
%define __cputoolize true
%define Werror_cflags %nil
%configure --host=%{_host} \
	--with-postgres \
	--with-postgres-includes=%{_includedir}/ \
	--with-freetype \
	--with-freetype-includes=%{_includedir}/freetype2 \
	--with-cairo \
	--with-opengl-libs=%{_libdir} \
	--with-gdal  \
	--with-geos \
	--with-mysql --with-mysql-includes=%{_includedir}/mysql \
	--with-odbc \
	--enable-largefile \
	--with-sqlite \
	--with-cxx \
	--with-proj-share=%{_datadir}/proj \
	--with-nls \
	--with-readline \
	--with-openmp \
	--with-pthread \
	--with-blas \
	--with-bzlib \
	--with-lapack

%make

%install
mkdir -p %{buildroot}%{_bindir}
#%makeinstall_std INST_DIR=%{_libdir}/grass%{grassfix}
# Actions in make install that don't take into account packaging in a place different to running:
sed -e 's|gisbase = "/.*|gisbase = "%{_libdir}/grass%{grassfix}"|' \
 bin.%{_target_platform}/grass > %{buildroot}/%{_bindir}/grass%{grassfix}
chmod a+x %{buildroot}/usr/bin/grass%{grassfix}

mkdir -p %{buildroot}/%{_libdir}/grass%{grassfix}
cp -a dist.%{_target_platform}/* %{buildroot}/%{_libdir}/grass%{grassfix}

# Add makefiles to includes:
cp -a include/Make %{buildroot}/%{_libdir}/grass%{grassfix}/include/

mkdir -p %{buildroot}%{_datadir}/applications
mv %{buildroot}%{_libdir}/grass%{grassfix}/share/applications/grass.desktop %{buildroot}%{_datadir}/applications/

mkdir %{buildroot}/%{_libdir}/grass%{grassfix}/locks/

mkdir -p %{buildroot}%{_iconsdir}/hicolor
mv %{buildroot}%{_libdir}/grass%{grassfix}/share/icons/hicolor %{buildroot}%{_iconsdir}

mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/grass.conf << EOF
%{_libdir}/grass%{grassfix}/lib
EOF

mkdir -p %{buildroot}%{_datadir}/doc/%{name}/
for i in AUTHORS CITING COPYING CHANGES REQUIREMENTS.html GPL.TXT contributors.csv contributors_extra.csv translators.csv translation_status.json
do 
  mv %{buildroot}%{_libdir}/grass%{grassfix}/$i %{buildroot}%{_datadir}/doc/%{name}/
done
rm -f %{buildroot}%{_libdir}/grass%{grassfix}/INSTALL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2095 |21cr|graveman-0.3.12-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Too many string format errors to enable optflags, just disable debug
%define debug_package %{nil}

%define realver %{version}-5

Summary:	Simple frontend for CD creation
Name:		graveman
Version:	0.3.12
Release:	18
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		http://graveman.tuxfamily.org/index-e.php
Source0:	http://graveman.tuxfamily.org/sources/%{name}-%{realver}.tar.bz2
Patch0:		graveman-0.3.12-5-cdrkit.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	perl-XML-Parser
BuildRequires:	mng-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(vorbis)
Requires:	cdrdao
Requires:	cdrkit
Requires:	cdrkit-genisoimage
Requires:	dvd+rw-tools
Requires:	sox

%description
Another frontend for cdrecord, mkisofs, readcd and sox!
With graveman you can burn audio cds (wav, ogg, mp3), data cds,
and duplicate cds.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS THANKS README*
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/%{name}/
%{_datadir}/pixmaps/*
%{_mandir}/man1/*
%{_mandir}/fr/man1/*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{realver}
%patch0 -p1 -b .cdrkit

%build
%configure
%make

%install
mkdir -p %{buildroot}%{_mandir}/man1
cp man/%{name}.man %{buildroot}%{_mandir}/man1/%{name}.1
mkdir -p %{buildroot}%{_mandir}/fr/man1
cp man/%{name}.fr.man %{buildroot}%{_mandir}/fr/man1/%{name}.1
perl -p -i -e 's/install\:/none\:/g' man/Makefile
%makeinstall_std

#menu
desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="X-MandrivaLinux-System-Archiving-CDBurning" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

#icons
mkdir -p %{buildroot}%{_liconsdir}
convert -size 48x48 pixmaps/graver.png %{buildroot}%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}
convert -size 32x32 pixmaps/graver.png %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_miconsdir}
convert -size 16x16 pixmaps/graver.png %{buildroot}%{_miconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2096 |21cr|gravityhatesyou-1.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define distsuffix mrb
%define oname  Gravity-Hates-You
Summary:        Gravity game made in Godot engine
Name:           gravityhatesyou
Version:        1.0.2
Release:        3
Group:          Games/Arcade
License:        MIT
Url:            https://github.com/TeddyDD/Gravity-Hates-You
Source0:        https://github.com/TeddyDD/Gravity-Hates-You/archive/master.zip
BuildRequires:  imagemagick
Requires:       godot2-runner
Conflicts:      godot-runner
BuildArch:      noarch

%description
%{summary}.

%files
%doc README.md LICENSE.md 
%{_gamesdatadir}/%{name}
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------
%prep
%setup -qn %{oname}-master


%build

%install
# data
install -dm755 %{buildroot}%{_gamesdatadir}/%{name}
find . -type f -name "*.png" -exec convert {} -strip {} \;
cp -R -t %{buildroot}%{_gamesdatadir}/%{name} *

# wrapper
install -dm755 %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
godot2-runner -path "%{_gamesdatadir}/%{name}" $@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{name}

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size icon.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

#menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{oname}
GenericName=%{oname}
Comment=%{oname}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2097 |21cr|grc-1.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generic Colouriser
Name:		grc
Version:	1.13
Release:	1
License:	GPLv2+
Group:		Text tools
Url:		http://kassiopeia.juls.savba.sk/~garabik/software/grc.html
Source0:	https://github.com/garabik/grc/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	python3
BuildArch:	noarch

%description
Generic Colouriser is yet another colouriser for beautifying
your logfiles or output of commands.

%files
%doc CHANGES CREDITS README* Regexp.txt TODO
%{_bindir}/%{name}
%{_bindir}/%{name}at
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/conf.*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_mandir}/man1/%{name}*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# fix symlinked doc file
rm -f CHANGES
cp debian/changelog CHANGES

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name}{,at} %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 644 colourfiles/conf.* %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 %{name}.conf %{buildroot}%{_sysconfdir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 %{name}{,at}.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2098 |21cr|grdesktop-0.23-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GTK 2 frontend for rdesktop
Name:		grdesktop
Version:	0.23
Release:	15
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://www.nongnu.org/grdesktop/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		grdesktop-0.23-desktopentry.patch
Patch1:		grdesktop-0.23-format-strings.patch
BuildRequires:	GConf2
BuildRequires:	imagemagick
BuildRequires:	scrollkeeper
BuildRequires:	pkgconfig(libgnomeui-2.0)
Requires:	rdesktop

%description
grdesktop is a frontend, written in C using the GTK+ 2 toolkit, for
the remote desktop client (rdesktop).
It can save several connections (including their options), and browse
the network for available terminal servers.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README TODO
%{_sysconfdir}/gconf/schemas/grdesktop.schemas
%{_bindir}/grdesktop
%{_mandir}/man1/grdesktop.1*
%{_datadir}/application-registry/grdesktop.applications
%{_datadir}/applications/grdesktop.desktop
%{_datadir}/mime-info/grdesktop.keys
%{_datadir}/mime-info/grdesktop.mime
%{_datadir}/pixmaps/grdesktop/
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .desktopentry
%patch1 -p1

%build
%global optflags %{optflags} -fcommon
%configure \
	--with-keymap-path=%{_datadir}/rdesktop/keymaps
%make

%install
%makeinstall_std

mv %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/@GETTEXT_PACKAGE@.mo %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/grdesktop.mo
mv %{buildroot}%{_datadir}/locale/es/LC_MESSAGES/@GETTEXT_PACKAGE@.mo %{buildroot}%{_datadir}/locale/es/LC_MESSAGES/grdesktop.mo
mv %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/@GETTEXT_PACKAGE@.mo %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/grdesktop.mo

mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}%{_liconsdir}
mkdir -p %{buildroot}%{_miconsdir}

ln -s %{_datadir}/pixmaps/%{name}/icon.png %{buildroot}%{_liconsdir}/%{name}.png
convert -scale 32x32 pixmaps/icon.png %{buildroot}%{_iconsdir}/%{name}.png
convert -scale 16x16 pixmaps/icon.png %{buildroot}%{_miconsdir}/%{name}.png

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2099 |21cr|greed-4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The board puzzle game of Greed
Name:		greed
Version:	4.2
Release:	1
License:	BSD
Group:		Games/Puzzles
Url:		http://www.catb.org/~esr/greed/
Source:		http://www.catb.org/~esr/greed/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)

%description
The strategy game of Greed. Try to eat as much as possible of the board
before munching yourself into a corner.

%files
%doc README NEWS COPYING greed.xml greed-logo.png
%{_mandir}/man6/%{name}.6*
%{_bindir}/%{name}

#-----------------------------------------
%prep
%setup -q

%build
%setup_compile_flags
make

%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm644 %{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2100 |21cr|greensql-console-0.5.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude pear(/usr/share/smarty/Smarty.class.php)

%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	Manages a GreenSQL Database Firewall
Name:		greensql-console
Version:	0.5.0
Release:	8
License:	GPLv2+
Group:		System/Servers
Url:		http://www.greensql.net/
Source0:	http://www.greensql.net/public/releases/%{name}-%{version}.tar.gz
Patch0:		greensql-console-mdv_conf.diff
BuildRequires:	apache-base >= 2.0.54
Requires:	apache-mod_php php-mysql
Requires:	apache-mod_socache_shmcb
Requires:	php-smarty2
Requires(post,preun):	rpm-helper
Recommends:	greensql-fw
Recommends:	mysql
BuildArch:	noarch

%description
The greensql-console package is web management tool used to manage GreenSQL
Database Firewall.

%files
%defattr(0644,root,root,0755)
%doc license.txt readme.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf
%attr(0700,apache,apache) %dir %{_sysconfdir}/%{name}
%attr(0640,apache,apache) %config(noreplace) %{_sysconfdir}/%{name}/config.php
%{_var}/www/%{name}
%attr(0700,apache,apache) %dir /var/lib/%{name}
%attr(0700,apache,apache) %dir /var/lib/%{name}/smarty
%attr(0700,apache,apache) %dir /var/lib/%{name}/smarty/templates_c

%post
%_post_webapp

%postun
%_postun_webapp

#----------------------------------------------------------------------------

%prep
%setup -q -n green-%{version}
%patch0 -p1

%build

%install
install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}/var/www/%{name}
install -d %{buildroot}/var/lib/%{name}/smarty/templates_c

cp -aRf * %{buildroot}/var/www/%{name}/

mv %{buildroot}/var/www/%{name}/config.php %{buildroot}%{_sysconfdir}/%{name}/config.php

cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf << EOF

Alias /%{name} /var/www/%{name}

<Directory /var/www/%{name}>
    Require host 127.0.0.1
    ErrorDocument 403 "Access denied per %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf"
</Directory>
EOF

# cleanup
rm -rf %{buildroot}/var/www/%{name}/configs
rm -rf %{buildroot}/var/www/%{name}/libs
rm -rf %{buildroot}/var/www/%{name}/templates_c

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2101 |21cr|gretl-2022b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define api 1.0
%define major 42
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	A tool for econometric analysis
Name:		gretl
Version:	2022b
Release:	1
License:	GPLv3+ and BSD and MIT
Group:		Sciences/Mathematics
Url:		http://gretl.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
#Licensing of plugins used in gretl
Source1:	gretl_plugins.txt
BuildRequires:	desktop-file-utils
BuildRequires:	fonts-ttf-bitstream-vera
BuildRequires:	fonts-ttf-freefont
BuildRequires:	gnuplot
BuildRequires:	R-base
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	readline-devel
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(flexiblas)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtksourceview-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(ncurses)
Requires:	fonts-ttf-bitstream-vera
Requires:	fonts-ttf-freefont
Requires:	gnuplot
Requires:	R-base

%description
A cross-platform software package for econometric analysis,
written in the C programming language.

%files -f %{name}.lang
%doc ChangeLog CompatLog README gretl_plugins.txt
%{_bindir}/gretl*
%{_libdir}/gretl-gtk3/
%{_datadir}/%{name}/
%{_mandir}/man1/*
%{_datadir}/appdata/gretl.appdata.xml
%{_datadir}/applications/gretl.desktop
%{_datadir}/applications/gretl_edit.desktop
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/mime/packages/gretl.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		Development/C

%description -n %{libname}
This package contains the shared library files for %{name}.

%files -n %{libname}
%{_libdir}/libgretl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_libdir}/pkgconfig/gretl.pc
%{_libdir}/libgretl-%{api}.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# fix flite detection
# FIXME: edit macros/flite.m4 and fix failing autoreconf
sed -i -e 's:register_cmu_us_kal:register_cmu_us_kal16:' configure

sed -i -e 's:-lblas:-lflexiblas:' -e 's:-llapack:-lflexiblas:' configure

# fix include path
sed -i -e 's:includedir=${prefix}/include:includedir=${prefix}/include/gretl:' gretl.pc.in

# plugins licensing notes
install -pm644 %{SOURCE1} .

%build
%configure \
	--disable-static \
	--disable-rpath \
	--with-libR \
	--with-odbc \
	--with-audio \
	--enable-build-editor \
	--includedir=%{_includedir}/%{name}
%make

%install
%make_install DESTDIR=%{buildroot}

%make_install -C xdg

chmod 0644 %{buildroot}%{_datadir}/%{name}/data/misc/galton.gdt

%find_lang %{name}

# clean
rm -rf %{buildroot}/%{_libdir}/libgretl*.la
rm -rf %{buildroot}/%{_libdir}/gretl-gtk2/*.la
rm -rf %{buildroot}/%{_datadir}/%{name}/doc
rm -rf %{buildroot}/debug/usr/bin/*.debug


desktop-file-install \
--remove-category="Application;Science;Econometrics" \
--add-category="Education;Science;Math;Economy;"  \
--dir=%{buildroot}%{_datadir}/applications     \
%{buildroot}/%{_datadir}/applications/gretl.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2102 |21cr|greybird-3.23.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Greybird theme
Name:		greybird
License:	GPLv2+ or CC-BY-SA
Group:		Graphics
Version:	3.23.3
Release:	1
URL:		http://shimmerproject.org/project/greybird/ 
Source0:	https://github.com/shimmerproject/Greybird/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# upstream name
Provides:	Greybird = %{EVRD}
Recommends: 	greybird-theme-gtk2
Recommends: 	greybird-theme-gtk3
Recommends: 	greybird-theme-gtk4
Recommends: 	greybird-theme-gnome-shell
Recommends: 	greybird-theme-metacity
Recommends: 	greybird-theme-plank
Recommends: 	greybird-theme-xfce4-notifyd
Recommends: 	greybird-theme-xfwm4
Recommends: 	greybird-theme-openbox
BuildRequires:	%{_bindir}/glib-compile-resources
BuildRequires:	%{_bindir}/sassc
BuildRequires:	librsvg
BuildRequires:	meson
BuildArch:	noarch

%description
Greybird is a theme for GTK2/3 and xfwm4/metacity started out on the basis of
Bluebird, but aims at reworking the intense blue tone to a more neutral
grey-ish look that will be more pleasant to look at in everyday use.

This meta-package installs all possible Greybird themes.

%files
%license LICENSE.GPL LICENSE.CC
#------------------------------------------------------------------------------

%package theme-common
Summary:        Common files for Greybird themes
Group:          Graphics

%description theme-common
Common files for Greybird themes

%files theme-common
%dir %{_datadir}/themes/Greybird*
%{_datadir}/themes/Greybird*/index.theme
#------------------------------------------------------------------------------

%package theme-gtk2
Summary:        Greybird GTK+2 themes
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}
Requires:       murrine

%description theme-gtk2
Greybird GTK+2 theme

%files theme-gtk2
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/*/gtk-2.0

#------------------------------------------------------------------------------

%package theme-gtk3
Summary:        Greybird GTK+3 themes
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-gtk3
Greybird GTK+3 theme

%files theme-gtk3
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/*/gtk-3.0

#------------------------------------------------------------------------------

%package theme-gtk4
Summary:        Greybird GTK+4 themes
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-gtk4
Greybird GTK+4 theme

%files theme-gtk4
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/*/gtk-4.0

#------------------------------------------------------------------------------

%package theme-metacity
Summary:        Greybird Metacity themes
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-metacity
Themes for Metacity as part of the Greybird theme.

%files theme-metacity
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/Greybird/metacity-1/
%{_datadir}/themes/Greybird-dark/metacity-1/
#------------------------------------------------------------------------------

%package theme-openbox
Summary:        Greybird Openbox themes
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-openbox
Themes for Openbox as part of the Greybird theme.

%files theme-openbox
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/Greybird/openbox-3/
%{_datadir}/themes/Greybird-dark/openbox-3/
#------------------------------------------------------------------------------

%package theme-gnome-shell
Summary:        Greybird GNOME shell themes
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-gnome-shell
Themes for GNOME shell as part of the Greybird theme.

%files theme-gnome-shell
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/Greybird*/gnome-shell
#------------------------------------------------------------------------------

%package theme-xfwm4
Summary:        Greybird Xfwm4 themes
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-xfwm4
Themes for Xfwm4 as part of the Greybird theme.

%files theme-xfwm4
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/Greybird*/xfwm4*
#------------------------------------------------------------------------------

%package theme-xfce4-notifyd
Summary:        Greybird Xfce4 notifyd theme
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-xfce4-notifyd
Themes for Xfce4 notifyd as part of the Greybird theme.

%files theme-xfce4-notifyd
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/Greybird*/xfce-notify*
#------------------------------------------------------------------------------

%package theme-plank
Summary:        Greybird plank themes
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-plank
Themes for Plank as part of the Greybird theme.

%files theme-plank
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/Greybird/plank/
%{_datadir}/themes/Greybird-dark/plank/
#------------------------------------------------------------------------------

%package theme-emerald
Summary:        Greybird Emerald theme
Group:          Graphics
Requires:       greybird-theme-common = %{EVRD}

%description theme-emerald
Themes for Emerald as part of the Greybird theme.

%files theme-emerald
%license LICENSE.GPL LICENSE.CC
%{_datadir}/themes/Greybird*/Greybird*.emerald
#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n Greybird-%{version}

%build
%meson

%install
%meson_install

# Remove Unity stuff, Unity is dead and is not packaged in ROSA
# (but Emerald can be used with Compiz which can be used with another DE,
# so not deleting Emerald theme)
find %{buildroot} -type d -name 'unity' -print | xargs rm -fr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2103 |21cr|grfcodec-6.0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A suite of programs to modify Transport Tycoon Deluxe's GRF files
Name:		grfcodec
Version:	6.0.6
Release:	2
License:	GPLv2+
Group:		Development/Other
Url:		http://www.ttdpatch.net/grfcodec/
Source0:	http://gb.binaries.openttd.org/binaries/extra/%{name}/%{version}/%{name}-%{version}-source.tar.xz
Patch0:		0001-Fix-5-Do-not-use-uint-for-command-id-6.patch
Patch1:		grfcodec-6.0.6-git-data-ambiguous.patch
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(libpng)
Obsoletes:	nforenum < 5.0.0
Provides:	nforenum = %{EVRD}

%description
A suite of programs to modify Transport Tycoon Deluxe's GRF files.

%files
%doc bundle/docs/*.txt
%{_bindir}/*
%{_mandir}/man1/gr*
%{_mandir}/man1/nforenum.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

#build time options
cat << EOF >> Makefile.local
V=1
CXXFLAGS=%{optflags} -std=c++11
LDOPT=%{ldflags}
STRIP=true
DO_NOT_INSTALL_LICENSE=1
DO_NOT_INSTALL_DOCS=1
DO_NOT_INSTALL_CHANGELOG=1
prefix=%{_prefix}
EOF

%build
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2104 |21cr|gr-funcube-3.10.0-1.rc3.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define rcv    rc3

Name:          gr-funcube
Summary:       GNURadio support for FUNcube Dongle Pro and FUNcube Dongle Pro+
URL:           https://github.com/dl1ksv/gr-funcube
Group:         Communications
Version:       3.10.0
Release:       1.%{rcv}.1
License:       GPLv3
Source0:       %{url}/archive/v%{version}%{?rcv:-%{rcv}}/%{name}-%{version}%{?rcv:.%{rcv}}.tar.gz
Source1:       10-funcube.rules

BuildRequires: boost-devel
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: pkgconfig(gmp)
# Needed for gnuradio .cmake files:
BuildRequires: gnuradio-utils
BuildRequires: graphviz
BuildRequires: hidapi-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(sndfile)
BuildRequires: pkgconfig(libunwind)
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: pkgconfig(log4cpp)
BuildRequires: pkgconfig(orc-0.4)
BuildRequires: pkgconfig(gmpxx)
BuildRequires: pkgconfig(gnuradio-audio)
BuildRequires: pkgconfig(gnuradio-blocks)
BuildRequires: pkgconfig(gnuradio-runtime)
BuildRequires: pkgconfig(jack)
BuildRequires: portaudio-devel
BuildRequires: pybind11-devel
BuildRequires: python3-devel
BuildRequires: python3-numpy-devel

# For tests only
BuildRequires: python3-gnuradio-pmt
BuildRequires: python3-gnuradio-runtime

Requires:      %{libname} = %{EVRD}

Obsoletes:     gr-fcdproplus < 3.9
Obsoletes:     gr-fcdproplus-debuginfo < 3.9
Obsoletes:     gr-fcdproplus-debugsource < 3.9
Obsoletes:     gr-fcdproplus-doc < 3.9
Obsoletes:     %{_lib}gr-fcdproplus-devel < 3.9
Obsoletes:     %{_lib}gr-fcdproplus0 < 3.9
Obsoletes:     %{_lib}gr-fcdproplus0-debuginfo < 3.9

%description
GNURadio support for FUNcube Dongle Pro and FUNcube Dongle Pro+.

%files
%license COPYING
%doc README.md
%{python3_sitearch}/funcube
%{_datadir}/gnuradio/grc/blocks/*
%{_udevrulesdir}/10-funcube.rules

#------------------------------------------------------
%package -n %{libname}
Summary:          Library files for gr-funcube
Group:            Communications
Requires:         %{name} = %{EVRD}

%description -n %{libname}
Library files for gr-funcube.

%files -n %{libname}
%{_libdir}/*.so.%{major}{,.*}

#------------------------------------------------------

%package -n %{devname}
Summary:       Development files for gr-funcube
Group:         Development/Other
Requires:      %{libname} = %{EVRD}
Provides:      %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for gr-funcube.

%files -n %{devname}
%{_includedir}/funcube/
%{_libdir}/*.so
%{_libdir}/cmake/funcube/

#------------------------------------------------------

%package doc
Summary:      Documentation files for gr-funcube
Group:        Documentation
BuildArch:    noarch

%description doc
Documentation files for gr-funcube.

%files doc
%doc %{_docdir}/%{name}/html
%doc %{_docdir}/%{name}/xml

#------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}%{?rcv:.%{rcv}}

%build
%cmake \
       -DENABLE_DOXYGEN=on \
       -DGR_PKG_DOC_DIR=%{_docdir}/%{name}

%make_build

%install
%make_install -C build

# udev rule
install -Dpm 0644 %{S:1} %{buildroot}%{_udevrulesdir}/10-funcube.rules

%pre
##TODO maybe
# sharing group with the rtl-sdr package not to introduce new group
# todo: consolidate also with the uhd package (usrp group) to have one generic
# group e.g. 'sdr' for this class of devices
#getent group rtlsdr >/dev/null || \
#%%{_sbindir}/groupadd -r rtlsdr >/dev/null 2>&1
#exit 0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2105 |21cr|grhino-0.16.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		grhino
Version:	0.16.1
Release:	4
Summary:	An Othello/Reversi chess with strong AI
License:	GPLv2+
Group:		Games/Boards
URL:		http://rhino.sourceforge.net/
Source:		http://downloads.sourceforge.net/rhino/%{name}-%{version}.tar.gz
Patch0:		grhino-0.16.0-gcc43.patch
Patch1:		grhino-0.16.0-mdv-fix-str-fmt.patch
BuildRequires:	pkgconfig(libgnomeui-2.0)

%description
GRhino, or Rhino its former name, is an Othello/Reversi game on Linux
and other UNIX-like systems. What distinguish GRhino from most other
Othello games is that GRhino will be targeted for experienced Othello
players. Strong AI is the main focus and the ultimate target strength
of the AI is that it should be able to beat the best human player at
the highest difficulty level.

%prep
%setup -q
%patch0 -p0
%patch1 -p1 -b .strfmt

%build
%configure --bindir=%{_gamesbindir}
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std

%__mkdir_p %{buildroot}%{_datadir}/applications/
%__cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Comment=Othello/Reversi chess with strong AI
Categories=BoardGame;Game;GTK;GNOME;
Name=GRhino
EOF

%find_lang %{name} --with-gnome --all-name

%clean
%__rm -rf %{buildroot}

%files -f %{name}.lang
%doc README
%{_gamesbindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}-%{version}
%{_datadir}/pixmaps/*.png
%if %{mdvver} < 201200
%{_datadir}/omf/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2106 |21cr|grim-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		grim
Version:	1.4.0
Release:	2
Summary:	Wayland compositor image grabber
License:	MIT
Group:		Graphical desktop/Other
URL:		https://github.com/emersion/grim
Source0:	https://github.com/emersion/grim/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	scdoc
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-protocols) >= 1.14

%description
This tool can grab images from a Wayland compositor.

%prep
%autosetup -p1

%build
export CFLAGS=`echo %{optflags} -Wno-format -Wno-error=format-security`
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man?/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2107 |21cr|grin-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A grep-like program for searching directories full of source code
Name:		grin
Version:	1.3.0
Release:	1
License:	BSD
Group:		Text tools
Url:		http://pypi.python.org/pypi/grin/
Source0:	http://pypi.python.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Grin is a tool for searching through directories full of source code. Although
similar to grep, it has a number of unique features:

* Recurse directories by default.
* Do not go into directories with specified names.
* Do not search files with specified extensions.
* Be able to show context lines before and after matched lines.
* Python regex syntax.
* Unless suppressed via a command line option, display the filename regardless
  of the number of files.
* Accept a file (or stdin) with a list of newline-separated filenames.
* Grep through gzipped text files.
* Be useful as a library to build custom tools quickly.

%files
%doc README.rst
%{_bindir}/%{name}*
%{python3_sitelib}/%{name}*
%{python3_sitelib}/__pycache__/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2108 |21cr|grip-4.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	build_id3 1
%{?_with_id3: %{expand: %%global build_id3 1}}
%{?_without_id3: %{expand: %%global build_id3 0}}

Summary:	A CD player and ripper/MP3-encoder front-end
Name:		grip
Version:	4.2.4
Release:	1
Epoch:		1
License:	GPLv2+ and LGPLv2+
Group:		Sound
Url:			https://sourceforge.net/projects/grip/
Source0:	http://prdownloads.sourceforge.net/grip/%{name}-%{version}.tar.gz
Patch0:		grip-4.2.3-fix-blind-write.patch
BuildRequires:	gettext >= 0.19.4
BuildRequires:	imagemagick
BuildRequires:	cdda-devel
%if %{build_id3}
BuildRequires:	id3lib-devel >= 3.8.3
%endif
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcurl)
Requires:	vorbis-tools

%description
This is a GTK+-based CD player and ripper. It has the ripping capabilities of
cdparanoia built in, but can also use external rippers (such as cdda2wav).
It also provides an automated front-end for various encoders, letting you take
a disc and transform it easily straight into Vorbis, FLAC or MP3 format (MP3
only with a separate MP3 encoder). The CDDB protocol is supported for
retrieving track information from disc database servers.
Grip works with DigitalDJ to provide a unified "computerized" version of your
music collection.

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS CREDITS README ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/apps/solid/actions/%{name}-audiocd.desktop
%{_datadir}/solid/actions/%{name}-audiocd.desktop
%{_datadir}/gnome/help/%{name}/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/griptray.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}.1*


#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
autoreconf -vfi
%configure \
%if %{build_id3}
	--enable-id3
%else
	--disable-id3
%endif
%make


%install
%makeinstall_std


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2109 |21cr|gr-iqbal-0.39.0-1.20210328.0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major     3
%define libname   %mklibname %{name} %{major}
%define devname   %mklibname %{name} -d
%define gitdat       20210328

Name:             gr-iqbal
Summary:          GNURadio block for suppressing IQ imbalance
Version:          0.39.0
Release:          1.%{gitdat}.0
License:          GPLv3+
Group:            Communications
Url:              https://git.osmocom.org/gr-iqbal/
Source0:          https://github.com/osmocom/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:           gr-iqbal-0.38.1-mga-include_boost_bind_headers.patch

BuildRequires:    cmake
BuildRequires:    gmp-devel
BuildRequires:    gmpxx-devel
BuildRequires:    pkgconfig(gnuradio-runtime)
BuildRequires:    pkgconfig(libosmodsp)
BuildRequires:    pkgconfig(fftw3)
BuildRequires:    pkgconfig(volk)
BuildRequires:    pybind11-devel
BuildRequires:    python3-gnuradio-runtime
BuildRequires:    python3-numpy-devel
BuildRequires:    gnuradio-utils
BuildRequires:    boost-devel
BuildRequires:    doxygen
BuildRequires:    graphviz

%description
This GNURadio block can suppress IQ imbalance in the RX path of
quadrature receivers.

%files
%doc AUTHORS
%{python3_sitearch}/*
%{_datadir}/gnuradio/grc/blocks/*

#-----------------------------------------------------
%package -n %{libname}
Summary:          Library files for gr-iqbal
Group:            Communications

%description -n %{libname}
Library files for gr-iqbal.

%files -n %{libname}
%{_libdir}/*.so.%{major}{,.*}

#-----------------------------------------------------

%package -n %{devname}
Summary:          Development files for gr-iqbal
Group:            Development/Other
Requires:         %{name} = %{EVRD}
Provides:         %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for gr-iqbal.

%files -n %{devname}
%{_includedir}/gnuradio/iqbalance/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libgnuradio-iqbalance.so
%{_libdir}/cmake/gnuradio/*

#-----------------------------------------------------

%package doc
Summary:          Documentation files for gr-iqbal
Group:            Documentation
BuildArch:        noarch

%description doc
Documentation files for gr-iqbalance.

%files doc
%doc %{_docdir}/%{name}ance/html/*
%doc %{_docdir}/%{name}ance/xml/*
%{_datadir}/applications/%{name}-doc.desktop

#-----------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%cmake -DENABLE_DOXYGEN=on

%make_build

%install
%make_install -C build

# .desktop for Documentation package
cat > %{name}-doc.desktop << EOF
[Desktop Entry]
Version=1.0
Name=Gr-iqbalance Documentation
GenericName=Gr-iqbalance Documentation
Exec=xdg-open /usr/share/doc/%{name}/html/index.html
Icon=
Terminal=false
Type=Application
Categories=System;Documentation;X-Mageia-CrossDesktop;
EOF

desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications %{name}-doc.desktop

# Create pkgconfig .pc file
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat <<EOF > %{buildroot}%{_libdir}/pkgconfig/gnuradio-iqbalance.pc
prefix=%{_usr}
exec_prefix=\${prefix}
libdir=\${exec_prefix}/%{_lib}
includedir=\${prefix}/include

Name: gnuradio-iqbalance
Description: gnuradio I/Q balancing
URL: https://git.osmocom.org/gr-iqbal/
Version: %{version}
Requires: gnuradio-runtime
Libs: -L\${libdir} -lgnuradio-iqbalance
Cflags: -I\${includedir}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2110 |21cr|grisbi-2.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		grisbi
Summary:	Personal finance manager
Version:	2.0.5
Release:	1
Group:		Office
License:	GPLv2+
Url:		http://www.grisbi.org/
Source0:	https://downloads.sourceforge.net/project/grisbi/grisbi%20stable/2.0.x/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	imagemagick
BuildRequires:	intltool >= 0.40.0
BuildRequires:	gettext-devel
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(gtk+-3.0) >= 2.18.0
BuildRequires:	pkgconfig(libgoffice-0.10)
BuildRequires:	pkgconfig(libofx) >= 0.7
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl) >= 0.9.7

%description
Grisbi helps you to manage your personal finance with Linux.

%files -f %{name}.lang
%doc %{_docdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/mime-info/%{name}.*
%{_datadir}/glib-2.0/schemas/org.gtk.grisbi.gschema.xml
%{_datadir}/pixmaps/grisbi
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_iconsdir}/hicolor/scalable/mimetypes/application-x-grisbi.svg
#-----------------------------------------------------------------------------


%prep
%setup -qn %{name}-%{version}


%build
%configure
%make


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2111 |21cr|grits-0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Virtual Globe library that handles coordinates and the OpenGL viewport
Name:		grits
Version:	0.8
Release:	5
License:	GPLv3+
Group:		System/Libraries
Url:		http://lug.rose-hulman.edu/code/projects/grits
Source0:	http://lug.rose-hulman.edu/proj/grits/%{name}-%{version}.tar.gz
Patch0:		grits-0.8-automake.patch
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)

%description
libgis is a Virtual Globe library that handles coordinates and the OpenGL
viewport. Also provides some generic functionality and a plugin API. It is
used by AWeather.

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Virtual Globe library that handles coordinates and the OpenGL viewport
Group:		System/Libraries

%description -n %{libname}
libname is a Virtual Globe library that handles coordinates and the OpenGL
viewport. Also provides some generic functionality and a plugin API. It is
used by AWeather.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/grits%{major}/*.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the Virtual Globe library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libname is a Virtual Globe library that handles coordinates and the OpenGL
viewport. Also provides some generic functionality and a plugin API. It is
used by AWeather.

This package contains files needed only for development.

%files -n %{devname}
%doc ChangeLog README TODO
%{_libdir}/lib%{name}.so
%{_includedir}/*
%{_libdir}/pkgconfig/grits.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for the Virtual Globe library
Group:		Books/Computer books

%description doc
libname is a Virtual Globe library that handles coordinates and the OpenGL
viewport. Also provides some generic functionality and a plugin API. It is
used by AWeather.

This package contains API documentation.

%files doc
%doc %{_datadir}/gtk-doc/html/grits/

#----------------------------------------------------------------------------

%package demo
Summary:	Demo program for the Virtual Globe library
Group:		Sciences/Geosciences

%description demo
libname is a Virtual Globe library that handles coordinates and the OpenGL
viewport. Also provides some generic functionality and a plugin API. It is
used by AWeather.

This package contains demo program using %{libname}

%files demo
%doc ChangeLog README TODO
%{_bindir}/grits-demo
%{_mandir}/man1/grits-demo.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--enable-shared=yes \
	--enable-static=no
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_docdir}/%{devname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2112 |21cr|grive2-0.5.2-0.git.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	commit 6901fbb169eaae51acb61778760ba2ac019675ae

Summary:	Google Drive client
Name:		grive2
Version:	0.5.2
Release:	0.git.1
Group:		Networking/File transfer
License:	GPLv2+
Url:		http://yourcmc.ru/wiki/Grive2
Source0:	https://github.com/vitalif/grive2/archive/%{commit}.zip
Source1:	Grive2-First-Run-howto.txt
BuildRequires:	binutils-devel
BuildRequires:	boost-devel >= 1.40.0
BuildRequires:	cmake
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(yajl)
BuildRequires:	pkgconfig(zlib)

%description
The purpose of this project is to provide an independent open source
implementation of Google Drive client for GNU/Linux. It uses Google Drive REST
API to talk to Google Drive service.

%files
%doc README.md COPYING Grive2-First-Run-howto.txt
%{_bindir}/grive
%{_mandir}/man1/*
%{_userunitdir}/grive-changes@.service
%{_userunitdir}/grive-timer@.service
%{_userunitdir}/grive-timer@.timer
%{_userunitdir}/grive@.service
%{_libexecdir}/grive/grive-sync.sh

%posttrans
cat %{_defaultdocdir}/%{name}/Grive2-First-Run-howto.txt

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{commit}

install -m 0644 %{SOURCE1} .


%build
%cmake
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2113 |21cr|grok-0.260.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    App-Grok
%define appli_name       grok
%define upstream_version 0.26

Name:       %{appli_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    A Pod 6 backend for grok

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/App/%{appli_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(IO::Interactive)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Perl6::Doc)
BuildRequires: perl(Perl6::Perldoc)
BuildRequires: perl(Perl6::Perldoc::To::Ansi)
BuildRequires: perl(Perl::Critic)
BuildRequires: perl(Pod::Perldoc::ToPod)
BuildRequires: perl(Pod::Text::Ansi)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Pod::Xhtml)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Script)
BuildRequires: perl-devel

BuildArch: noarch

%description
This class provides the main functionality needed by grok. It has some
methods you can use if you need to hook into grok.

%prep
%setup -q -n %{appli_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2114 |21cr|gromacs-5.0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Molecular dynamics package (non-mpi version)
Name:		gromacs
Version:	5.0.7
Release:	4
License:	GPL
Group:		Sciences/Chemistry
Url:		http://www.gromacs.org
Source0:	ftp://ftp.gromacs.org/pub/gromacs/%{name}-%{version}.tar.gz
Buildrequires:	cmake
Buildrequires:	fftw-devel
BuildRequires:	libxml2-devel
Requires:	fftw >= 3.0.1

%description
GROMACS is a versatile and extremely well optimized package
to perform molecular dynamics computer simulations and
subsequent trajectory analysis. It is developed for
biomolecules like proteins, but the extremely high
performance means it is used also in several other field
like polymer chemistry and solid state physics. This
version has the dynamic libs and executables; to hack new
utility programs you also need the headers and static
libs in gromacs-dev. Linux kernel 2.4 or later is STRONGLY
recommended on Pentium III and later processors since
GROMACS then can use assembly loops with SSE instructions.
You can also perform parallel simulations if you install
gromacs-lammpi.

%files
%doc AUTHORS COPYING README
%{_bindir}/*
%{_mandir}/man*/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for GROMACS
Group:		System/Libraries
Conflicts:	%{name} < 5.0.7-4

%description -n %{libname}
Shared library for GROMACS.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries for GROMACS
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains header files, static libraries,
and a program example for the GROMACS molecular
dynamics software. You need it if you want to write your
own analysis programs.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
perl -pi -e "s|CMAKE_INSTALL_PREFIX}/lib|CMAKE_INSTALL_PREFIX}/%{_lib}|" CMakeLists.txt
perl -pi -e "s|set\(GMXLIB lib|set\(GMXLIB %{_lib}|" CMakeLists.txt
find . -type f -exec chmod a+r {} \;

%build
%cmake
# OK, this is ugly, but working ...
perl -pi -e "s/-lm/-lm -pthread/" src/gmxlib/CMakeFiles/gmx.dir/link.txt
%make

%install
%makeinstall_std -C build
sed -i 's#/usr//usr#/usr#' %{buildroot}%{_libdir}/pkgconfig/libgromacs.pc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2115 |21cr|gromit-20041213-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define cvs 20041213

Summary:	Paint annotations on top of the X screen
Name:		gromit
Version:	20041213
Release:	1
License:	GPLv2+
Group:		System/X11
Url:		http://www.home.unix-ag.org/simon/gromit/
Source0:	http://www.home.unix-ag.org/simon/gromit/%{name}-%{cvs}.tar.gz
#gw work around for bug with lines filling all the screen
Patch0:		gromit-20041213-no-history.patch
Patch1:		gromit-20041213-fix-linking.patch
BuildRequires:	pkgconfig(gtk+-2.0)

%description
Gromit (GRaphics Over MIscellaneous Things) is a small tool to make
annotations on the screen.

It is useful for recording presentations with xvidcap.

%files
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{cvs}
%apply_patches

%build
%make

%install
install -m 755 -D %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2116 |21cr|grooveoff-0.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Grooveshark client
Name:		grooveoff
Version:	0.2.0
Release:	3
License:	GPLv3+
Group:		Sound
Url:		http://qt-apps.org/content/show.php/GrooveOff?content=158258
Source0:	http://qt-apps.org/CONTENT/content-files/158258-%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QJson)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(taglib)

%description
GrooveOff is an unofficial client for grooveshark.com.

Using it, it is possible to search grooveshark.com's huge database (thanks
to its public API) for artists, songs and albums and save them on disk for
offline playing. GrooveOff provides some easy to use filters based on artists
and albums. Also included is a minimal player for previewing and listening
to songs, so one will be able to decide whether to keep or reject them.
The application is based on the Qt toolkit, but should feel native in all
desktop environments.

%files
%doc README.md ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/apps/%{name}
%{_datadir}/apps/%{name}/*
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt4

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2117 |21cr|gr-osmosdr-0.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major     0
%define libname   %mklibname %{name} %{major}
%define devname   %mklibname %{name} -d

%global __provides_exclude_from %{python_sitearch}/osmosdr/.*\\.so$

Name:             gr-osmosdr
Summary:          Common software API for various radio hardware
Version:          0.2.4
Release:          1
License:          GPLv3+
Group:            Communications
URL:              https://github.com/osmocom/gr-osmosdr/releases

Source0:          https://github.com/osmocom/gr-osmosdr/archive/refs/tags/v%{version}/gr-osmosdr-%{version}.tar.gz
# https://osmocom.org/issues/5445
# https://osmocom.org/issues/5031
# Patch based on:
# https://github.com/dl1ksv/gr-osmosdr/commit/7d450ca7f20bcbf018a90662febcd9c5618372c2.patch
#Patch0:           gr-osmosdr-0.2.3-gr-funcube.patch
# https://osmocom.org/issues/5144
Patch1:           gr-osmosdr-0.2.3-airspy-multi-dev.patch

BuildRequires:    boost-devel
BuildRequires:    cmake
BuildRequires:    cmake(funcube)
BuildRequires:    doxygen
BuildRequires:    gcc-c++
BuildRequires:    gnuradio-utils
BuildRequires:    graphviz
BuildRequires:    pkgconfig(gmp)
BuildRequires:    pkgconfig(gmpxx)
BuildRequires:    pkgconfig(gnuradio-analog)
BuildRequires:    pkgconfig(gnuradio-digital)
BuildRequires:    pkgconfig(gnuradio-blocks)
BuildRequires:    pkgconfig(gnuradio-iqbalance)
BuildRequires:    pkgconfig(gnuradio-uhd)
BuildRequires:    pkgconfig(gnuradio-runtime)
BuildRequires:    pkgconfig(libairspy)
BuildRequires:    pkgconfig(libbladeRF)
BuildRequires:    pkgconfig(libhackrf)
BuildRequires:    pkgconfig(libmirisdr)
BuildRequires:    pkgconfig(python3)
BuildRequires:    pkgconfig(SoapySDR)
BuildRequires:    pkgconfig(uhd)
BuildRequires:    python3-gnuradio-runtime
BuildRequires:    python3-numpy-devel
BuildRequires:    python3-mako
BuildRequires:    pybind11-devel
BuildRequires:    rtl-sdr-devel

%description
Primarily gr-osmosdr supports the OsmoSDR hardware, but it also
offers a wrapper functionality for FunCube Dongle,  Ettus UHD
and rtl-sdr devices. By using gr-osmosdr source you can take
advantage of a common software api in your application(s)
independent of the underlying radio hardware.

%files
%exclude %{_docdir}/%{name}/html
%exclude %{_docdir}/%{name}/xml
%doc AUTHORS COPYING
%{_bindir}/*
%{python3_sitearch}/*
%{_datadir}/gnuradio/grc/blocks/*

#-------------------------------------------------------
%package -n %{libname}
Summary:          Library files for gr-osmosdr
Group:            Communications
Requires:         %{name} = %{EVRD}

%description -n %{libname}
Library files for gr-osmosdr.

%files -n %{libname}
%{_libdir}/*.so.%{major}{,.*}

#-------------------------------------------------------

%package -n %{devname}
Summary:          Development files for gr-osmosdr
Group:            Development/Other
Requires:         %{libname} = %{EVRD}
Provides:         %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for gr-osmosdr.

%files -n %{devname}
%{_includedir}/osmosdr
%{_libdir}/*.so
%{_libdir}/cmake/osmosdr/*
%{_libdir}/pkgconfig/*.pc

#-------------------------------------------------------

%package doc
Summary:          Documentation files for gr-osmosdr
Group:            Documentation
BuildArch:        noarch

%description doc
Documentation files for gr-osmosdr.

%files doc
%doc %{_docdir}/%{name}/html
%doc %{_docdir}/%{name}/xml
%{_datadir}/applications/%{name}-doc.desktop

#-------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DENABLE_DOXYGEN=on -DGR_PKG_DOC_DIR=%{_docdir}/%{name}
%make_build

%install
%make_install -C build

cat > %{name}-doc.desktop << EOF
[Desktop Entry]
Version=1.0
Name=Gr-OsmoSDR Documentation
GenericName=Gr-OsmoSDR Documentation
Exec=xdg-open /usr/share/doc/%{name}/html/index.html
Icon=
Terminal=false
Type=Application
Categories=System;Documentation;X-Mageia-CrossDesktop;
EOF

desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications %{name}-doc.desktop

# Create pkgconfig .pc file
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat <<EOF > %{buildroot}%{_libdir}/pkgconfig/gnuradio-osmosdr.pc
prefix=%{_usr}
exec_prefix=\${prefix}
libdir=\${exec_prefix}/%{_lib}
includedir=\${prefix}/include

Name: gnuradio-osmosdr
Description: GNU Radio block for various radio hardware
URL: https://sdr.osmocom.org/trac/wiki/GrOsmoSDR
Version: %{version}
Requires: gnuradio-runtime gnuradio-blocks
Requires.private:
Conflicts:
Cflags: -I\${includedir} -I/usr/include
Libs: -L\${libdir} -lgnuradio-osmosdr
Libs.private: -L\${libdir}
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2118 |21cr|groupoffice-6.1.105-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude /usr/bin/php

Summary:	Enterprise CRM and groupware tool
Name:		groupoffice
Version:	6.1.105
Release:	3
License:	Mixed, see LICENSE.TXT
Group:		Office
Url:		https://www.group-office.com/
Source0:	https://sourceforge.net/projects/group-office/files/6.1/%{name}-com-%{version}.tar.gz
BuildArch:	noarch
Requires:	apache-mod_php
Requires:	php-calendar
Requires:	php-cli
Requires:	php-pdo_mysql
Requires:	php-pspell
Requires:	tnef

%description
Group-Office is an enterprise CRM and groupware tool.
Share projects, calendars, files and e-mail online with co-workers and clients.
Easy to use and fully customizable.

%files
/var/www/html/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-com-%{version}

%build

%install
mkdir -p %{buildroot}/var/www/html/%{name}
cp -r * %{buildroot}/var/www/html/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2119 |21cr|group-service-1.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Dbus Group management CLI tool
Name:		group-service
Version:	1.3.0
Release:	2
License:	GPLv3+
Group:		System/Configuration/Other
Url:		https://github.com/zhuyaliang/group-service
Source0:	https://github.com/zhuyaliang/group-service/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.bz2
Patch0:		add-translation-file.patch
Patch1:		group-service-1.3.0-meson.patch
BuildRequires:	meson
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(polkit-gobject-1)

%description
Dbus Group management CLI tool.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_sysconfdir}/dbus-1/system.d/org.group.admin.conf
%{_libexecdir}/group-admin-daemon
%{_datadir}/dbus-1/interfaces/org.group.admin.list.xml
%{_datadir}/dbus-1/interfaces/org.group.admin.xml
%{_datadir}/dbus-1/system-services/org.group.admin.service
%{_datadir}/polkit-1/actions/org.group.admin.policy
%{_unitdir}/group-admin-daemon.service

%post
%systemd_post group-admin-daemon.service

%preun
%systemd_preun group-admin-daemon.service

%postun
%systemd_postun group-admin-daemon.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for group-service
Group:		System/Libraries

%description -n %{libname}
The package contains libraries for %{name}.

%files -n %{libname}
%{_libdir}/libgroup-service.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Support for developing back-ends for group-service
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files needed for
group-service back-ends development.

%files -n %{devname}
%{_includedir}/group-service-1.0/
%{_libdir}/libgroup-service.so
%{_libdir}/pkgconfig/group-service.pc

#------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

msgfmt po/ru.po -o po/%{name}.gmo

%build
%meson
%meson_build


%install
%meson_install

mkdir -p %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES
cp -fr po/%{name}.gmo %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/%{name}.mo

%find_lang %{name}  --with-gnome --all-name


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2120 |21cr|grpn-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	RPN calculator for X built using the GIMP Toolkit
Name:		grpn
Version:	1.4.0
Release:	2
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://lashwhip.com/grpn.html
Source0:	http://www.getreu.net/public/downloads/software/grpn/%{version}/%{name}_%{version}-1.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)

%description
GRPN is a RPN calculator for the X Window system built using the GIMP
Toolkit (GTK). GRPN works with real numbers, complex numbers,
matrices, and complex matrices.  Numbers can be displayed in 4
different radix modes, and complex numbers can be displayed in either
Cartesian or polar form.

%files
%doc CHANGES LICENSE README
%{_bindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn src

%build
%make

%install
%makeinstall_std \
	PREFIX=%{_prefix} \
	MANDIR=%{_mandir}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/%{name}
Name=Grpn
Comment=A RPN calculator
Icon=mathematics_section
Categories=Science;Math;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2121 |21cr|grsync-1.2.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:		grsync
Version:	1.2.6
Release:	4
Summary:	A GTK GUI for rsync
License:	GPLv2
Group:		File tools
URL:		http://www.opbyte.it/grsync/
Source0:	https://sourceforge.net/projects/grsync/files/%{name}-%{version}.tar.gz
#Patch1:		ru_RU.po.patch
BuildRequires:	pkgconfig
BuildRequires:	gtk+2-devel
BuildRequires:	perl-XML-Parser
BuildRequires:	desktop-file-utils
BuildRequires:	dos2unix
BuildRequires:	intltool
BuildRequires:	imagemagick
Requires:	rsync

%description
Grsync is a GUI for rsync, the command line directory
synchronization tool. While it can work with remote
hosts, its focus is to synchronize local directories.

%prep
%setup -q
#pushd po
#%patch1 -p0
#popd

%build
perl -p -i -e 's/grsync.png/grsync/g' configure
%configure --disable-unity
%make

%install
%makeinstall_std

# Generate and install icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{64x64,32x32,16x16,128x128,48x48,22x22}/apps
convert -scale 64 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
convert -scale 48 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 22 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/22x22/apps/%{name}.png
convert -scale 16 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m644 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/

# Desktop file
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="Filesystem" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name}

# Fix EOLs
dos2unix NEWS AUTHORS README

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/mime/packages/grsync.xml
%{_datadir}/icons/hicolor/48x48/mimetypes/application-x-grsync-session.png
%{_datadir}/pixmaps/grsync-busy.png
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2122 |21cr|grub2recovery-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Recovery grub2
Summary(ru_RU.UTF-8):	Восстановление загрузчика GRUB2
Name:		grub2recovery
Version:	1
Release:	1
License:	GPLv3
Group:		System/Base
Url:		https://gitflic.ru/project/don_venchenzo/grub2recovery
Source0:	https://gitflic.ru/project/don_venchenzo/grub2recovery/blob/raw?file=SOURCE%2Fgrub2recovery.tar.gz&inline=false&commit=bf8797ead0e6f16331ae11b8ea81eadd38b77096

%description
recovery grub2

%description -l ru_RU.UTF-8
Восстановление загрузчик GRUB2

%files
%{_bindir}/%{name}.sh
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.svg

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}
# remove prebuild file
rm -f %{name}

%install
install -Dm0755 .%{_bindir}/%{name}.sh %{buildroot}%{_bindir}/%{name}.sh
install -Dm0644 .%{_datadir}/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm0644 .%{_iconsdir}/hicolor/48x48/apps/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2123 |21cr|grutatxt-2.0.16-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	Grutatxt

Name:           grutatxt
Summary:        Text to HTML converter

Version:        2.0.16
Release:	5
Source0:        http://triptico.com/download/%{oname}-%{version}.tar.gz
URL:            http://www.triptico.com/software/grutatxt.html
Group:          Text tools
License:        GPLv2
BuildArch:	noarch
Provides:	%{oname} = %{EVRD}
buildrequires:	perl-devel

%description
Grutatxt is a plain text to HTML (and other formats) converter.
It successfully converts subtle text markup to lists, bold, italics, 
tables and headings to their corresponding HTML, troff, man page or 
LaTeX markup without having to write unreadable source text files. 
Grutatxt is a Perl module and a command line utility, 
and is the main text renderer in the Gruta CMS.

%prep 
%setup -q -n %{oname}-%{version}

%build 
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
install -p -m644 %{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1

%files 
%doc AUTHORS Changelog.1 README RELEASE_NOTES TODO
%doc doc/grutatxt_apache_handlers.txt doc/grutatxt_markup.txt
%{_bindir}/%{name}
%{_bindir}/pod2%{name}
%{perl_vendorlib}/%{oname}.pm
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2124 |21cr|gscan2pdf-2.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Glib\\) >= 1\.210$

# Gtk3::Entry is not provided by perl-Gtk3
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Gtk3::Entry\\)


Summary:	Produces multipage PDFs from a scan
Name:		gscan2pdf
Version:	2.13.2
Release:	1
License:	GPLv3
Group:		Publishing
URL:		http://gscan2pdf.sourceforge.net
Source0:	https://sourceforge.net/projects/gscan2pdf/files/gscan2pdf/%{version}/%{name}-%{version}.tar.xz
Patch0:		gscan2pdf-2.12.2-Symlink-gscan2pdf.svg-files.patch
# https://sourceforge.net/p/gscan2pdf/bugs/233/
Patch1:		gscan2pdf-2.9.0-Do-not-warn-about-missing-pdftk.patch
BuildArch:	noarch
BuildRequires:	imagemagick
BuildRequires:	perl-devel
# pod2html in Makefile.PL
BuildRequires:	perl-Pod-Html
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	desktop-file-utils
# libtiff-tools (/usr/bin/tiff2ps) or poppler-utils for PostScript support
BuildRequires:	libtiff-progs
BuildRequires:	perl(Archive::Tar)
BuildRequires:	perl(Config::General) >= 2.40
BuildRequires:	perl(Data::UUID)
BuildRequires:	perl(Date::Calc)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Filesys::Df)
BuildRequires:	perl(Glib) >= 1.220
BuildRequires:	perl(Glib::Object::Introspection)
BuildRequires:	perl(Glib::Object::Subclass)
BuildRequires:	perl(GooCanvas2)
BuildRequires:	perl(Gtk3) >= 0.028
# Gtk3::Entry is not provided by perl-Gtk3
BuildRequires:	perl(Gtk3::ImageView)
BuildRequires:	perl(Gtk3::ImageView::Tool::Dragger)
BuildRequires:	perl(Gtk3::ImageView::Tool::Selector)
BuildRequires:	perl(Gtk3::ImageView::Tool::SelectorDragger)
BuildRequires:	perl(Gtk3::SimpleList)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::TokeParser)
BuildRequires:	perl(Image::Magick)
BuildRequires:	perl(Image::Sane)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(IPC::System::Simple)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Locale::gettext) >= 1.05
BuildRequires:	perl(Locale::Language)
BuildRequires:	perl(Log::Log4perl)
BuildRequires:	perl(PDF::Builder) >= 3.022
BuildRequires:	perl(Proc::Killfam)
BuildRequires:	perl(Set::IntSpan) >= 1.10
BuildRequires:	perl(Sub::Override)
BuildRequires:	perl(Time::Piece)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(utf8)
# Optional run-time:
# djvulibre for djvused program
BuildRequires:	djvulibre
BuildRequires:	poppler
BuildRequires:	unpaper
Requires:	libtiff-progs
Requires:	imagemagick
Requires:	sane-frontends
Requires:	unpaper
Requires:	xdg-utils
Requires:	djvulibre
Requires:	gocr
Requires:	typelib(GooCanvas) = 2.0
Requires:	perl-Gtk3
Requires:	perl-JSON-PP
Requires:	perl(GooCanvas2)
Requires:	perl-Locale-gettext
Requires:	perl-PDF-API2
Requires:	perl-Image-Magick
Requires:	perl-forks >= 0.33
Requires:	perl-reaper
Requires:	perl-Set-IntSpan
Requires:	perl(PDF::Builder) >= 3.022
Requires:	tesseract
Recommends:	(tesseract-rus if locales-ru)
Recommends:	tesseract-eng
Suggests:	cuneiform-linux
# used in task-scanning
Provides:	scanner-gui

%description
A GUI to ease the process of producing a multipage PDF from a scan.

Scanning is handled with SANE via scanimage. PDF conversion is done by
PDF::API2. TIFF export is handled by libtiff (faster and smaller memory
footprint for multipage files).

%files -f %{name}.lang
%doc History LICENCE COPYING
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_datadir}/pixmaps/*.svg
%{_datadir}/help/C/gscan2pdf/documentation.html
%{_datadir}/metainfo/net.sourceforge.gscan2pdf.appdata.xml

# Do not call gtk-update-icon-cache because it's needed only for updating icon
# themata in %%{_datadir}/icon/*. This package installs icon into
# %%{_datadir}/pixmaps/gscan2pdf.svg. Pixmaps seems not to be subject of icon
# themata.
%post
touch --no-create %{_datadir}/pixmaps || :

%postun
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/pixmaps || :
fi
#---------------------------------------------------------------------
%prep
%autosetup -p1

# Symlink identical files
rm scanners/FujitsuS510.Lineart
ln -s FujitsuS510 scanners/FujitsuS510.Lineart
rm scanners/snapscanS510.Color
ln -s snapscanS510 scanners/snapscanS510.Color


%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 SHAREDIR=%{_datadir}
%make_build

%install
%make_install
find %{buildroot} -name perllocal.pod | xargs rm -f
find %{buildroot} -name .packlist | xargs rm -f
%{_fixperms} %{buildroot}

desktop-file-install --delete-original \
  --dir=%{buildroot}/%{_datadir}/applications         \
  %{buildroot}/%{_datadir}/applications/net.sourceforge.gscan2pdf.desktop

#russian translation not work (clear windows without menu)
#remove translation ru and use english
rm -r %{buildroot}%{_datadir}/locale/ru

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2125 |21cr|gscanbus-0.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to scan IEEE1394 (firewire/i.link) bus
Name:		gscanbus
Version:	0.8
Release:	3
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://sourceforge.net/projects/gscanbus.berlios/
Source0:	http://downloads.sourceforge.net/project/gscanbus.berlios/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libraw1394)

%description
gscanbus is a little bus scanning, testing and topology visualizing tool
for the Linux IEEE1394 subsystem, with some AV/C support, especially for
controlling Camcorders and VCRs. It is intended as a debugging tool for
IEEE1394 development, but can also be used to simply check your IEEE1394
setup on Linux.

%files
%doc README
%config(noreplace) %{_sysconfdir}/*
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2126 |21cr|gset-compiz-0.3.4-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A compiz configuration tool
Name:		gset-compiz
Version:	0.3.4
Release:	15
License:	GPLv2+
Group:		System/X11
Url:		http://www.compiz.net/
Source0:	http://3v1n0.tuxfamily.org/src/%{name}-%{version}.tar.bz2
Patch0:		gset-compiz-lib_path.patch
Patch1:		gset-compiz-0.3.4-root.patch
Patch2:		gset-compiz-0.3.4-keys.patch
Patch3:		gset-compiz-automake1.10.diff
Patch4:		gset-compiz-0.3.4-about_close.patch
Patch5:		gset-compiz-0.3.4-iValue.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(libglade-2.0)

%description
gset-compiz is a GTK tool to configure compiz.

%files
%doc README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/gset.glade
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
#% patch0 -p1 -b .lib_path
%patch1 -p1 -b .root
%patch2 -p1 -b .keys
%patch3 -p0 -b .automake1.10
%patch4 -p1 -b .about_close
%patch5 -p1 -b .iValue
perl -pi -e 's/\.png$//' data/%{name}.desktop
chmod go+r src/gset.c

%build
export LIBS="-l X11"
autoreconf -fi
%configure
%make

%install
%makeinstall
rm -f %{buildroot}%{_datadir}/%{name}/README

desktop-file-install \
	--vendor="" \
	--remove-category="Application" \
	--add-category="X-MandrivaLinux-System-Configuration-Other" \
	--dir %{buildroot}%{_datadir}/applications \
	 %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2127 |21cr|gsetroot-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gtk-based front-end for Esetroot
Name:		gsetroot
Version:	1.1
Release:	4
Source0:	http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		http://gsetroot.sf.net
BuildRequires:	gtk2-devel
Requires:	eterm

%description
Use it to configure root window under a Window Manager like FluxBox,
Enlightenment, WindowMaker, NextStep, BlackBox..

%prep
%setup -q

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

rm -rf %{buildroot}/usr/doc/* 

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS README ChangeLog
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2128 |21cr|gsettings-qt-0.2-1.gitce56e.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit ce56e46b67c11276ec5f44b6a3a1c3f5a46aafed
%define commit_short %(echo %{commit} | head -c5)

Summary:	Qml bindings for GSettings
Name:		gsettings-qt	
Version:	0.2
Release:	1.git%{commit_short}.2
License:	LGPLv3+
Group:		Graphical desktop/Other
# https://packages.debian.org/sid/libgsettings-qt-dev
Url:		https://gitlab.com/ubports/core/gsettings-qt
Source0:	https://gitlab.com/ubports/core/gsettings-qt/-/archive/%{commit}/gsettings-qt-%{commit}.tar.gz
BuildRequires:  qmake5
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5QuickTest)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(glib-2.0)

%description
Qml bindings for GSettings.

#------------------------------------------------------------------
%define major 1
%define libname %mklibname %name %{major}

%package -n %libname
Summary:		Qml bindings for GSettings
Group:			System/Libraries

%description -n %libname
Qml bindings for GSettings.

%files -n %libname
%doc COPYING
%{_libdir}/libgsettings-qt.so.%{major}*
%_qt5_prefix/qml/GSettings.1.0
%_qt5_prefix/tests

#-------------------------------------------------------------------
%define devname %mklibname %name -d

%package -n %devname
Summary:        Development package for %name
Group:			System/Libraries
Requires:       %libname = %{EVRD}
Provides:		gsettings-qt-devel = %{EVRD}

%description -n %devname
Header files and libraries for %name.

%files -n %devname
%_qt5_includedir/QGSettings
%{_libdir}/libgsettings-qt.so
%{_libdir}/pkgconfig/gsettings-qt.pc

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n gsettings-qt-%{commit}

%build
%qmake_qt5 PREFIX=%{_prefix}
%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2129 |21cr|gsh-1.0.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		gsh
Version: 	1.0.2
Release:	14 
Summary: 	Run commands on other hosts through ssh
License: 	GPL
Group: 		Networking/Remote access
Url:		http://outflux.net/unix/software/gsh/
Source0: 	%{name}-%{version}.tar.bz2
buildrequires:	perl-devel
Requires:	openssh, openssh-clients, perl 
Prefix:		%{_prefix}
buildArch:	noarch

%description 
Run commands on other hosts through ssh

%prep
%setup -n %{name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/etc

cat > $RPM_BUILD_ROOT/etc/ghosts <<EOF
# Macros
#mdkprod=mdk82
# Machines
# Name		Group		Hardware	OS
#n1		prod		intel		linux
EOF

%files
%defattr (-,root,root)
%doc LICENSE MANIFEST README TODO
%attr(755,root,root) %{_bindir}/gsh
%attr(755,root,root) %{_bindir}/ghosts
%attr(755,root,root) %{perl_vendorlib}/*
%{_mandir}/man1/*
%config(noreplace) /etc/ghosts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2130 |21cr|gshhg-gmt-nc4-2.3.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gshhg-gmt-nc4
Version:        2.3.7
Release:        1
Summary:        Global Self-consistent Hierarchical High-resolution Geography (GSHHG)
Group:          Sciences/Geosciences
License:        LGPLv3+
URL:            https://github.com/GenericMappingTools/gshhg-gmt
# seems to be derived at least from 2 Public Domain datasets, 
# CIA World DataBank II and World Vector Shoreline (already in fedora),
# then modified.
Source0:        https://github.com/GenericMappingTools/gshhg-gmt/releases/download/%{version}/gshhg-gmt-%{version}.tar.gz
BuildArch:      noarch
Provides:       GMT-coastlines = %{version}-%{release}
Provides:       gshhg-gmt = %{version}-%{release}


%description
GSHHG is a high-resolution shoreline data set amalgamated from two databases:
Global Self-consistent Hierarchical High-resolution Shorelines (GSHHS) and
CIA World Data Bank II (WDBII).  GSHHG contains vector descriptions at five
different resolutions of land outlines, lakes, rivers, and political
boundaries.  This data for use by GMT, the Generic Mapping Tools.

This package contains the crude, low, and intermediate resolution data.
Install the -all, -full, or -high sub-packages to get full, high, or all of
the resolution data respectively.

%files
%doc COPYING.LESSERv3 COPYINGv3 LICENSE.TXT README.TXT
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*_[cil].nc

#---------------------------------------------------------------
%package        full
Summary:        GSHHG - full resolution
Requires:       %{name}
Provides:       GMT-coastlines-full = %{version}-%{release}
Provides:       gshhg-gmt-full = %{version}-%{release}

%description    full
%{summary}.

%files full
%{_datadir}/%{name}/*_f.nc

#---------------------------------------------------------------

%package        high
Summary:        GSHHG - high resolution
Requires:       %{name}
Provides:       GMT-coastlines-high = %{version}-%{release}
Provides:       gshhg-gmt-high = %{version}-%{release}

%description    high
%{summary}.

%files high
%{_datadir}/%{name}/*_h.nc

#---------------------------------------------------------------

%package        all
Summary:        GSHHG - all resolutions
Requires:       %{name}
Requires:       %{name}-full
Requires:       %{name}-high
Provides:       GMT-coastlines-all = %{version}-%{release}
Provides:       gshhg-gmt-all = %{version}-%{release}

%description    all
%{summary}.

#---------------------------------------------------------------

%prep
%setup -q -n gshhg-gmt-%{version} 

%install
mkdir -p %{buildroot}/%{_datadir}/%{name}
cp -a *.nc %{buildroot}/%{_datadir}/%{name}







@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2131 |21cr|gshutdown-0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced shut down utility
Name:		gshutdown
Version:	0.2
Release:	6
License:	GPLv2+
Group:		System/Configuration/Boot and Init
Url:		https://github.com/Asher256/gshutdown
Source0:	http://gshutdown.tuxfamily.org/release/%{name}-%{version}.tar.gz
Patch0:		gshutdown-0.2.libnotify-api.patch
Patch2:		gshutdown-0.2-glib.patch
Patch3:		gshutdown-0.2-format-security.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libnotify)

%description
GShutdown is an advanced shutdown utility which allows you to schedule
the shutdown or the restart of your computer, or logout your actual session.
Can be use under Gnome, Xfce and KDE.

%files -f %{name}.lang
%doc COPYING AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}*
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

sed -i -e '/AM_BINRELOC/d' configure.ac


%build
%configure
%make LIBS="-lXau -lX11"

%install
%makeinstall_std INSTALL="install -p"

desktop-file-install					\
	--vendor ""					\
	--dir %{buildroot}/%{_datadir}/applications	\
	--mode 0644					\
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2132 |21cr|gsimplecal-2.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gsimplecal
Version:	2.4.1
Release:	1
License:        BSD-3-Clause
Summary:        Lightweight gui calendar applet
Group:          Graphical desktop/Other
URL:            https://github.com/dmedvinsky/gsimplecal
Source:         https://github.com/dmedvinsky/gsimplecal/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(gtk+-3.0)

%description
Gsimplecal is a lightweight calendar application written in C++ using GTK2.

%files
%{_bindir}/%{name}
%{_mandir}/man*/*
%doc ChangeLog README COPYING AUTHORS

#-----------------------------------------------------
%prep
%setup -q

%build
./autogen.sh
%configure
%make

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2133 |21cr|gslist-0.8.10d-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gslist is a command-line game servers browser and heartbeats sender
Name:		gslist
Version:	0.8.10d
Release:	6
Group:		Networking/Other
License:	GPL
URL:		http://aluigi.altervista.org/papers.htm#gslist
Source0:	%{name}.zip
patch0:		gslist-0.8.10d.fixmake.patch
buildrequires:	pkgconfig(geoip)
buildrequires:	mysql-devel

%description
Gslist is a command-line game servers browser and heartbeats sender,
it supports an incredible amount of games and moreover a lot of
options making it simple and complete at the same time.
It can run a specific application for each gameserver,
can request informations, lets you to filter the servers list
(for country, gamename, port, number of players...) and more.

%prep
%setup -c %{name}
%patch0 -p1 -b .fixmake

%build
make clean
%make CFLAGS="$RPM_OPT_FLAGS"

%install
%makeinstall_std PREFIX=%{buildroot}%{_prefix}

%files
%defattr(-,root,root)
%doc gslist.txt
%{_bindir}/%{name}
%{_bindir}/%{name}sql

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2134 |21cr|gsmartcontrol-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GSmartControl - Hard Disk Health Inspection Tool
Name:		gsmartcontrol
Version:	1.1.4
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://gsmartcontrol.berlios.de
Source0:	https://github.com/ashaduri/gsmartcontrol/releases/download/v%{version}/gsmartcontrol-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libpcrecpp)
Requires:	smartmontools
Requires:	usermode-consoleonly

%description
GUI for smartctl, which is a tool for querying and controlling SMART
(Self-Monitoring, Analysis, and Reporting Technology) data in hard disk
drives. It allows you to inspect the drive's SMART data to determine
its health, as well as run various tests on it.

%files
%doc %{_datadir}/doc/%{name}
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/*
%{_sbindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/*
%{_datadir}/pixmaps/*
%{_datadir}/polkit-1/actions/org.gsmartcontrol.policy
%{_mandir}/man1/%{name}-root.1*
%{_mandir}/man1/%{name}.1*
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e "s/Exec=.*gsmartcontrol-root\"/Exec=gsmartcontrol/" data/gsmartcontrol.desktop.in

%build
%configure
%make

%install
%makeinstall_std

# dirty fix mugged from rawhide
rm %{buildroot}%{_bindir}/%{name}-root
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/pam.d
cat <<EOF >%{buildroot}%{_sysconfdir}/pam.d/%{name}
#%%PAM-1.0
auth		include		config-util
account		include		config-util
session		include		config-util
EOF

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat <<EOF >%{buildroot}%{_sysconfdir}/security/console.apps/%{name}
USER=root
PROGRAM=/usr/sbin/gsmartcontrol
SESSION=true
EOF
# end

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2135 |21cr|gsmd-0-0.20070701.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	svnrel	20070701
%define	release %mkrel 0.%{svnrel}.3

%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname	%mklibname -d %{name}

Summary:	GSM daemon for OpenMoko
Name:		gsmd
Version:	0
Release:	%{release}
License:	GPLv2+
Group:		System/Servers
Url:		http://www.openmoko.org/
Source0:	%{name}-%{svnrel}.tar.lzma
BuildRequires:	lzma
BuildRequires:	glib-gettextize

%description
GSM daemon for OpenMoko.

%files
%doc ChangeLog COPYING
%{_bindir}/libgsmd-tool
%{_sbindir}/gsmd

#-----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	GSM libraries for OpenMoko
Group:		System/Libraries
License:	LGPLv2.1
Provides:	%{name} = %{EVRD}

%description -n	%{libname}
GSM libraries for OpenMoko.

%files -n %{libname}
%doc ChangeLog COPYING.library
%{_libdir}/*.so.*
%dir %{_libdir}/gsmd
%{_libdir}/gsmd/*.so.*

#-----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
License:	LGPLv2.1
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n	%{devname}
Development files for %{name}.

%files -n %{devname}
%doc ChangeLog COPYING.library
%dir %{_includedir}/libgsmd
%{_includedir}/libgsmd/*.h
%dir %{_includedir}/gsmd
%{_includedir}/gsmd/*.h
%{_libdir}/*.so
%{_libdir}/gsmd/*.so
%{_libdir}/pkgconfig/*.pc

#-----------------------------------------------------------------------------

%prep
%setup -qn gsm


%build
autoreconf -vfi
glib-gettextize --force --copy
%configure --disable-static
%make


%install
%makeinstall_std
rm -f %{buildroot}%{_libdir}/{,gsmd/}*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2136 |21cr|gsnmp-0.3.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An SNMP library implementation based on glib and gnet
Name:		gsnmp
Version:	0.3.0
Release:	16
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.ibr.cs.tu-bs.de/projects/scli/
Source0:	ftp://ftp.ibr.cs.tu-bs.de/local/gsnmp/%{name}-%{version}.tar.bz2
Patch0:		gsnmp-linkage_fix.diff
# (fc) 0.3.0-2mdv fix m4 warning
Patch1:		gsnmp-0.3.0-fix-underquoted-warning.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnet-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)

%description
GNET-SNMP is an SNMP library implementation based on glib and gnet. This
library has been developed as part of the scli package (an SNMP command line
interface). Some examples demonstrating the API can be found in the examples
directory. Some examples use stub files generated by the smidump MIB compiler,
which is part of the libsmi package.

%files
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/gsnmp-get
%{_mandir}/man1/gsnmp-get.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library of functions for the snmp protocol
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libgsnmp.

%files -n %{libname}
%{_libdir}/libgsnmp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for the snmp protocol
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(glib-2.0)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries
necessary for developing programs using libgsnmp.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libgsnmp.a
%{_libdir}/libgsnmp.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/%{name}.m4

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1 -b .fix_underquoted

%build
autoreconf -fis
%configure --enable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2137 |21cr|gsplus-0.14-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	Modern cross-platform Apple IIgs emulator
Name:		gsplus
Version:	0.14
Release:	3
License:	GPLv2+
Group:		Emulators
Url:		http://apple2.gs/plus
Source0:	https://github.com/digarok/gsplus/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	re2c
BuildRequires:	pcap-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(xext)

%description
This is an Apple IIgs emulator. It's an open-source project based on the KEGS
and GSPort emulators. It supports fullscreen, joysticks and audio through the 
SDL2 library.
The use it you need to provide the ROM file and disk images and a config file 
(there is a sample in the %{name} data directory).

%files
%doc LICENSE.txt README.md
%doc doc/gsplusmanual.pdf
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -q 

%build
# See Developer-QucikStart-Linux.txt
cd src
ln -s vars_x86linux_sdl2 vars
%make

%install
# There is no automated install; go manually:
# 1. Create needed dirs
mkdir -pm 0755 %{buildroot}%{_bindir}
mkdir -pm 0755 %{buildroot}%{_datadir}/%{name}
for i in 16 32 64 128 256 512; do
	mkdir -pm 0755 %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/
done
# 2. Install the binary
install -m 0755 -t %{buildroot}%{_bindir}/ %{name}
# 3. Provide a menu entry for it
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Name=%{name}
Comment=%{summary}
Exec=%{name} %f
Icon=%{name}
Categories=Game;X-MandrivaLinux-MoreApplications-Emulators;
EOF
# 4. Install the sample config file
install -m 0644 -t %{buildroot}%{_datadir}/%{name}/ src/config.txt
# 5. Install the icons
for i in 16 32 64 128 256 512; do
	install -m 0644 assets/gsp_icon_${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2138 |21cr|gsql-0.2.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Integrated database development tool for GNOME
Name:		gsql
Version:	0.2.2
Release:	13
License:	GPLv2+
Group:		Development/Databases
Url:		http://gsql.org
Source0:	http://gsql.googlecode.com/files/gsql-%{version}.tar.bz2
Patch1:		gsql-0.2.2-mysql_cursor-format-not-string-literal-and-no-format.patch
Patch2:		gsql-0.2.2-DESTDIR-duplicate.patch
Patch3:		gsql-0.2.2-libnotify0.7.patch
BuildRequires:	desktop-file-utils
BuildRequires:	GConf2
BuildRequires:	gettext
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtksourceview-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnome-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(vte)
Recommends:	%{name}-engine-mysql
Recommends:	%{name}-engine-postgresql

%description
The mission of GSQL opensource project is to supply database developers with an
universal tool platform tailored against market leading DBMS by providing:
    * native DBMS access (not via ODBC layer)
    * databased objects organised into a tree
    * intuitive and easy database objects handling
    * syntax highlighting
    * query plan builder
    * query constructor
    * query result export (in XML, CSV, HTML)
    * debugger (depending on RDBMS)
    * query planner control (depending on RDBMS)
    * database administration functions
    * database system monitoring
    * GNOME integration (via gconf and gnome-keyring).

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_bindir}/%{name}
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/engines/
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/glade/
%{_datadir}/%{name}/glade/%{name}_dialogs.glade
%dir %{_datadir}/%{name}/ui/
%{_datadir}/%{name}/ui/*.ui
%dir %{_datadir}/pixmaps/%{name}/
%{_datadir}/pixmaps/%{name}/*.png
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 0.2.2-8

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.2.2-8
Obsoletes:	%{name}-devel < 0.2.2-8

%description -n %{devname}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc AUTHORS COPYING README
%{_libdir}/*.so
%{_libdir}/pkgconfig/lib%{name}.pc
%{_includedir}/lib%{name}/

#----------------------------------------------------------------------------

%package plugins
Summary:	Additional plugins for %{name}
Group:		Development/Databases
Requires:	%{name} = %{EVRD}

%description plugins
Additional plugins for %{name}:
* Terminal - opens a terminal session with parameters (such as login,
             password etc) taken from the active session
* Exporter - exports query results to a CVS file. So far only fetched
             records could be exported
* Runner   - periodically executes SQL queries.

%files plugins
%doc AUTHORS COPYING README
%{_libdir}/%{name}/plugins/
%{_sysconfdir}/gconf/schemas/%{name}-plugins.schemas
%{_datadir}/pixmaps/%{name}/plugins/
%{_datadir}/%{name}/ui/plugins/
%{_datadir}/%{name}/glade/plugins/

#----------------------------------------------------------------------------

%package engine-mysql
Summary:	MySQL engine for %{name}
Group:		Development/Databases
Requires:	%{name} = %{EVRD}

%description engine-mysql
MySQL engine for GSQL.

%files engine-mysql
%doc AUTHORS COPYING README
%{_libdir}/%{name}/engines/lib%{name}engine_mysql.so*
%{_sysconfdir}/gconf/schemas/%{name}-engine-mysql.schemas
%{_datadir}/%{name}/ui/mysql/
%{_datadir}/%{name}/glade/mysql/
%{_datadir}/pixmaps/%{name}/mysql/

#----------------------------------------------------------------------------

%package engine-postgresql
Summary:	PostgreSQL engine for %{name}
Group:		Development/Databases
Requires:	%{name} = %{EVRD}

%description engine-postgresql
PostgreSQL engine for GSQL.

%files engine-postgresql
%doc AUTHORS COPYING README
%{_libdir}/%{name}/engines/lib%{name}engine_pgsql.so*
%{_datadir}/%{name}/ui/postgresql/
%{_datadir}/%{name}/glade/postgresql/
%{_datadir}/pixmaps/%{name}/postgresql/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p0
%patch2 -p1 -b .dest
%patch3 -p0 -b .notify

%build
%configure \
	--disable-schemas-install \
	--disable-static \
	--without-oracle \
	--with-mysql=%{_prefix} \
	--with-mysql-lib=%{_prefix} \
	--with-mysql-include=%{_prefix} \
	--with-pgsql-lib=%{_prefix} \
	--with-pgsql-include=%{_prefix}

%make


%install
%makeinstall DESTDIR=%{buildroot}

%find_lang %{name}

# remove improperly placed docs
rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2139 |21cr|gssntlmssp-0.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GSSAPI NTLMSSP Mechanism
Name:		gssntlmssp
Version:	0.9.0
Release:	2
License:	LGPLv3+
Group:		System/Libraries
Url:		https://github.com/gssapi/gss-ntlmssp
Source0:	https://github.com/gssapi/gss-ntlmssp/archive/v%{version}.tar.gz?/%{name}-v%{version}.tar.gz
#BuildRequires:	docbook-dtds
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	doxygen
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(wbclient)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	libunistring-devel
BuildConflicts:	docbook-dtd30-sgml

%description
A GSSAPI Mechanism that implements NTLMSSP.

%files -f %{name}.lang
%doc README.md COPYING doc/*
%config(noreplace) %{_sysconfdir}/gss/mech.d/ntlmssp.conf
%{_mandir}/man8/gssntlmssp.8*
%{_libdir}/%{name}/%{name}.so

#------------------------------------------------------------------

%package devel
Summary:	Development header for GSSAPI NTLMSSP
Group:		Development/C

%description devel
Adds a header file with definition for custom GSSAPI extensions for NTLMSSP.

%files devel
%doc README.md COPYING
%{_includedir}/gssapi/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n gss-ntlmssp-%{version}

%build
mkdir -p m4
autoreconf -fi
%configure --disable-static

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/gss/mech.d
install -m 644 examples/mech.ntlmssp %{buildroot}%{_sysconfdir}/gss/mech.d/ntlmssp.conf
# Clenaup
rm -rf %{buildroot}%{_docdir}/%{name}

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2140 |21cr|gst123-0.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line audio player based on GStreamer
Name:		gst123
Version:	0.3.5
Release:	1
License:	LGPLv2+
Group:		Sound
Url:		http://space.twc.de/~stefan/gst123.php
Source0:	http://space.twc.de/~stefan/%{name}/%{name}-%{version}.tar.bz2
Patch0:		gst123-0.3.5-fix-ncurses-detection.patch
Patch1:		gst123-0.3.4-changelog.patch
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncurses) >= 5
BuildRequires:	pkgconfig(x11)

%description
The program gst123 is designed to be a more flexible command line player in
the spirit of ogg123 and mpg123, based on gstreamer. It plays all file formats
gstreamer understands, so if you have a music collection which contains
different file formats, like flac, ogg and mp3, you can use gst123 to play all
your music files.

%files
%doc AUTHORS ChangeLog NEWS TODO
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2141 |21cr|gstm-1.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	A front-end to ssh tunneling
Name:		gstm
Version:	1.2
Release:	15
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://gstm.sourceforge.net
Source0:	http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(libgnomeui-2.0)
Requires:	openssh-clients

%description
gSTM, short for Gnome SSH Tunnel Manager, is a graphical front-end for 
managing ssh tunneled portredirects.

%files
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*

#----------------------------------------------------------------------------

%package -n gaskpass
Summary:	A Gnome X11 passphrase dialog for OpenSSH
Group:		Networking/Remote access

%description -n gaskpass
A Gnome X11 passphrase dialog for OpenSSH.

%files -n gaskpass
%{_bindir}/gaskpass

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fcommon
export LIBS="-lX11 -lxml2"
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2142 |21cr|gstreamer0.10-0.10.36-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	gstreamer
%define	vname	%{oname}10

%define major	0
%define api	0.10
%define libname			%mklibname %{name}_ %{major}
%define libgstbase		%mklibname gstbase%{api}_ %{major}
%define libgstcheck		%mklibname gstcheck%{api}_ %{major}
%define libgstcontroller	%mklibname gstcontroller%{api}_ %{major}
%define libgstdataprocol	%mklibname gstdataprocol%{api}_ %{major}
%define libgstnet		%mklibname gstnet%{api}_ %{major}
%define girname			%mklibname gst-gir %{api}
%define devname			%mklibname %{name} -d

%bcond_with	docs

Summary:	GStreamer Streaming-media framework runtime
Name:		gstreamer%{api}
Version:	0.10.36
Release:	14
License:	LGPLv2.1+
Group:		Sound
Url:		http://gstreamer.freedesktop.org/
Source0: 	ftp://ftp.gnome.org/pub/GNOME/sources/gstreamer/%{api}/%{oname}-%{version}.tar.xz
Patch0:		gstreamer-inspect-rpm-format.patch
Patch1:		gstreamer-0.10.36-bison-3.0.patch
Patch2:		gstreamer0.10-disable-volatile.patch
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	flex
%ifarch %{ix86}
BuildRequires:	nasm
%endif
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(popt)
%ifnarch %{arm} %{mips}
BuildRequires:	pkgconfig(valgrind)
%endif
%if %{with docs}
BuildRequires:	gtk-doc >= 0.7
BuildRequires:	transfig
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-dtd412-xml
BuildRequires:	ghostscript
BuildRequires:	python-pyxml
%endif

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.

#----------------------------------------------------------------------------

%package tools
Summary:	GStreamer Streaming-media framework runtime
Group:		Sound
Provides:	%{vname}-tools = %{EVRD}
%rename		gstreamer

%description tools
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.

%files tools -f %{oname}-%{api}.lang
%doc AUTHORS COPYING README NEWS
%dir %{_var}/cache/%{oname}-%{api}
%{_bindir}/gst-feedback-%{api}
%{_bindir}/gst-inspect-%{api}
%{_bindir}/gst-launch-%{api}
%{_bindir}/gst-typefind-%{api}
%{_bindir}/gst-xmlinspect-%{api}
%{_bindir}/gst-xmllaunch-%{api}
%dir %{_libdir}/%{oname}-%{api}
%{_libexecdir}/%{oname}-%{api}/gst-plugin-scanner
%{_libdir}/%{oname}-%{api}/libgstcoreelements.so
%{_libdir}/%{oname}-%{api}/libgstcoreindexers.so
%{_mandir}/man1/gst-feedback-%{api}.1*
%{_mandir}/man1/gst-inspect-%{api}.1*
%{_mandir}/man1/gst-launch-%{api}.1*
%{_mandir}/man1/gst-typefind-%{api}.1*
%{_mandir}/man1/gst-xmlinspect-%{api}.1*
%{_mandir}/man1/gst-xmllaunch-%{api}.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for GStreamer streaming-media framework
Group:		System/Libraries
Requires:	%{name}-tools >= %{EVRD}
Provides:	libgstreamer%{api} = %{EVRD}
Obsoletes:	%{_lib}gstreamer0.10_0.10 < 0.10.36-10

%description -n %{libname}
This package contains the library for %{name}.

%files -n %{libname}
%{_libdir}/libgstreamer-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstbase}
Summary:	Library for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstbase}
This package contains the library for %{name}base.

%files -n %{libgstbase}
%{_libdir}/libgstbase-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstcheck}
Summary:	Library for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstcheck}
This package contains the library for %{name}check.

%files -n %{libgstcheck}
%{_libdir}/libgstcheck-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstcontroller}
Summary:	Library for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstcontroller}
This package contains the library for %{name}controller.

%files -n %{libgstcontroller}
%{_libdir}/libgstcontroller-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstdataprocol}
Summary:	Library for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstdataprocol}
This package contains the library for %{name}dataprocol.

%files -n %{libgstdataprocol}
%{_libdir}/libgstdataprotocol-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstnet}
Summary:	Library for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstnet}
This package contains the library for %{name}net.

%files -n %{libgstnet}
%{_libdir}/libgstnet-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface libraries for %{name}
Group:		System/Libraries
Conflicts:	gir-repository < 0.6.5-3

%description -n %{girname}
GObject Introspection interface libraries for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gst-%{api}.typelib
%{_libdir}/girepository-1.0/GstBase-%{api}.typelib
%{_libdir}/girepository-1.0/GstCheck-%{api}.typelib
%{_libdir}/girepository-1.0/GstController-%{api}.typelib
%{_libdir}/girepository-1.0/GstNet-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libgstbase} = %{EVRD}
Requires:	%{libgstcheck} = %{EVRD}
Requires:	%{libgstcontroller} = %{EVRD}
Requires:	%{libgstdataprocol} = %{EVRD}
Requires:	%{libgstnet} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	libgstreamer-devel = %{EVRD}
Provides:	gstreamer%{api}-devel = %{EVRD}
Conflicts:	gir-repository < 0.6.5-3

%description -n %{devname}
This package contains the libraries and includes files necessary to develop
applications and plugins for GStreamer.

%files -n %{devname}
%doc ChangeLog
%if %{with docs}
%doc %{_datadir}/doc/%{oname}-%{api}
%endif
%dir %{_includedir}/%{oname}-%{api}
%dir %{_includedir}/%{oname}-%{api}/gst
%{_includedir}/%{oname}-%{api}/gst/*.h
%dir %{_includedir}/%{oname}-%{api}/gst/base/
%{_includedir}/%{oname}-%{api}/gst/base/*.h
%{_includedir}/%{oname}-%{api}/gst/check/
%dir %{_includedir}/%{oname}-%{api}/gst/controller/
%{_includedir}/%{oname}-%{api}/gst/controller/*.h
%dir %{_includedir}/%{oname}-%{api}/gst/dataprotocol/
%{_includedir}/%{oname}-%{api}/gst/dataprotocol/*.h
%{_includedir}/%{oname}-%{api}/gst/net/
%{_libdir}/libgstbase-%{api}.so
%{_libdir}/libgstcheck-%{api}.so
%{_libdir}/libgstdataprotocol-%{api}.so
%{_libdir}/libgstreamer-%{api}.so
%{_libdir}/libgstnet-%{api}.so
%{_libdir}/libgstcontroller-%{api}.so
%{_libdir}/pkgconfig/gstreamer-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-base-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-check-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-dataprotocol-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-net-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-controller-%{api}.pc
%{_datadir}/aclocal/gst-element-check-%{api}.m4
%{_datadir}/gtk-doc/html/%{oname}-%{api}/
%{_datadir}/gtk-doc/html/%{oname}-libs-%{api}/
%{_datadir}/gtk-doc/html/%{oname}-plugins-%{api}
%{_datadir}/gir-1.0/Gst-%{api}.gir
%{_datadir}/gir-1.0/GstBase-%{api}.gir
%{_datadir}/gir-1.0/GstCheck-%{api}.gir
%{_datadir}/gir-1.0/GstController-%{api}.gir
%{_datadir}/gir-1.0/GstNet-%{api}.gir

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches

%build
%configure \
	--disable-static \
	--enable-debug \
	--disable-dependency-tracking \
	--with-package-name='%{distribution} %{name} package' \
	--with-package-origin='%{disturl}' \
	--disable-tests \
	--disable-examples \
	--disable-rpath \
%if %{with docs}
	--enable-docbook \
	--enable-gtk-doc \
%else
	--disable-docbook \
	--disable-gtk-doc \
%endif
%ifarch %{mips}
	--disable-valgrind \
%endif
	--with-html-dir=%{_datadir}/gtk-doc/html

%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_var}/cache/%{oname}-%{api}
#clean the files we don't want to install 
rm -f %{buildroot}%{_bindir}/gst-feedback
rm -f %{buildroot}%{_bindir}/gst-inspect
rm -f %{buildroot}%{_bindir}/gst-launch
rm -f %{buildroot}%{_bindir}/gst-md5sum
rm -f %{buildroot}%{_bindir}/gst-typefind
rm -f %{buildroot}%{_bindir}/gst-xmlinspect
rm -f %{buildroot}%{_bindir}/gst-xmllaunch

%find_lang %{oname}-%{api}

#gw really remove rpath for rpmlint
chrpath -d %{buildroot}{%{_bindir}/gst-{inspect,launch,typefind,xmlinspect,xmllaunch}-0.10,%{_libdir}/{*.so,%{oname}-%{api}/*.so}}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2143 |21cr|gstreamer0.10-decoders-1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Default GStreamer 0.10 decoders
Name:		gstreamer0.10-decoders
Version:	1
Release:	13
License:	GPLv2+ # spec file
Group:		Video
BuildArch:	noarch

# Please provide URL to sample which does not work without the
# package and works correctly with it, if adding new packages here.

# We want audio as well:
Requires:	%{name}-audio

# AC-3 decoder (popular multichannel audio codec), used usually
# only in videos:
# http://samples.mplayerhq.hu/A-codecs/AC3/liba52_altivec.avi
Recommends:	gstreamer0.10-a52dec

# MPEG-1/2 video decoder:
# http://samples.mplayerhq.hu/MPEG1/zelda%20first%20commercial.mpeg
Recommends:	gstreamer0.10-mpeg

# DTS multichannel audio decoder, used usually only in videos:
# http://samples.mplayerhq.hu/A-codecs/DTS/dtsac3audiosample.avi
Recommends:	gstreamer0.10-dts

# DV file support:
# http://samples.mplayerhq.hu/DV-raw/voxnews.dv
Recommends:	gstreamer0.10-dv

%description
Virtual package which installs the GStreamer 0.10 input plugins that
cover most of the usage cases.

This package can be suggested or required by software that uses
GStreamer to open media files, such as video players.

%package audio
Summary:	Default GStreamer 0.10 audio decoders
Group:		Sound

# Core plugins required for operation:
Requires:	gstreamer0.10-plugins-base

# HTTP protocol support:
# http://samples.mplayerhq.hu/A-codecs/GSM/countdown.wmv
Recommends:	gstreamer0.10-neon

# MMS protocol support:
# Used for live broadcasts, for example freely-viewable NASA TV.
# mms://63.250.197.124/bcenc202056?StreamID=51410198&pl_auth=2e83b652202abf941f7793
# bda887d1f5&ht=30&pl_b=00D90C088654FA550A41CFEAA7477AC791&CG_ID=1369080&Segment=149773
Recommends:	gstreamer0.10-mms

# GSM audio decoder:
# http://samples.mplayerhq.hu/A-codecs/GSM/countdown.wmv
Recommends:	gstreamer0.10-gsm

# AAC audio decoder (most commonly used in .mp4 files):
# http://samples.mplayerhq.hu/A-codecs/AAC/ct_nero-heaac.mp4
Recommends:	gstreamer0.10-faad

# Contains important plugins such as AVI demuxer:
Recommends:	gstreamer0.10-plugins-good

# Contains, for example, an MP3 decoder:
# http://samples.mplayerhq.hu/FLV/flash8/mrandmrssmith_320x176_200.flv
Recommends:	gstreamer0.10-plugins-ugly

# Contains, for example, NUV demuxer, used in MythTV recordings:
# http://samples.mplayerhq.hu/nuv/mythtvexample.nuv
# CD Audio
Recommends:	gstreamer0.10-plugins-bad

# Lots of decoders, for example for Flash video and MPEG-2 TS (eg. DVB):
# http://samples.mplayerhq.hu/FLV/flash8/mrandmrssmith_320x176_200.flv
# http://samples.mplayerhq.hu/MPEG-VOB/transport/dishtest.ts
Recommends:	gstreamer0.10-ffmpeg

# FLAC audio decoder (popular lossless codec):
# Note that the below sample plays without working seeking even
# without this package.
# http://samples.mplayerhq.hu/flac/dilvie_-_the_dragonfly.flac
Recommends:	gstreamer0.10-flac

# Musepack audio decoder:
# http://samples.mplayerhq.hu/A-codecs/musepack/06%20-%20Kalifornia.mpc
Recommends:	gstreamer0.10-musepack


%description audio
Virtual package which installs the GStreamer 0.10 input plugins that
cover most of the audio-only usage cases. For playing videos see
%{name}.

This package can be suggested or required by software that uses
GStreamer to open audio files.

%files
%files audio

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2144 |21cr|gstreamer0.10-espeak-0.3.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NOTE: This is the last release supporting gstreamer 0.10;
#       from 0.4.0 it will be packaged as gstreamer1.0-espeak

Name:		gstreamer0.10-espeak
Version:	0.3.5
Release:	5
Summary:	Simple gstreamer plugin to use espeak by way of sound source
License:	LGPLv2+
Group:		Sound
Url:		http://sugarlabs.org/go/DevelopmentTeam/gst-plugins-espeak
Source0:	http://download.sugarlabs.org/sources/honey/gst-plugins-espeak/gst-plugins-espeak-%{version}.tar.gz
BuildRequires:	libespeak-devel
BuildRequires:	pkgconfig(gstreamer-0.10)
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)
Requires:	espeak
Requires:	gstreamer0.10-plugins-base
Requires:	gstreamer0.10-plugins-good
Requires:	gstreamer

%description
Simple gstreamer plugin to use espeak by way of sound source. It was developed
to simplify espeak usage in Sugar Speak activity. This package only supports
gstreamer0.10; for gstreamer 1.0 please install gstreamer1.0-espeak.

%files
%doc AUTHORS COPYING NEWS README
%{_libdir}/gstreamer*/*

#-----------------------------------------------------------------------------

%prep
%setup -qn gst-plugins-espeak-%{version}


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2145 |21cr|gstreamer0.10-ffmpeg-0.10.13-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bname gstreamer0.10
%define oname gst-ffmpeg

# _with = default off, _without = default on
%bcond_with external_ffmpeg

# (Anssi 01/2008) External ffmpeg disabled because of issues:
# with FLV file with totem:
# ** ERROR:(gstffmpegdec.c:731):gst_ffmpegdec_get_buffer: code should not be reached
# with VDR stream as per manual pipeline in http://bugzilla.gnome.org/show_bug.cgi?id=506902 :
# (gst-launch-0.10:23590): GStreamer-CRITICAL **: gst_value_set_fraction: assertion `denominator != 0' failed
# No playback in either case.

Summary:	Gstreamer plugin for the ffmpeg codec
Name:		%{bname}-ffmpeg
Version:	0.10.13
Release:	12
License:	GPLv2+
Group:		Video
URL:		http://www.gstreamer.net
Source0:	http://gstreamer.freedesktop.org/src/gst-ffmpeg/%{oname}-%{version}.tar.bz2
# (Anssi 01/2008) Enable mpegts demuxer as well, for now.
# If either
# https://core.fluendo.com/gstreamer/trac/ticket/88 or
# http://bugzilla.gnome.org/show_bug.cgi?id=347342
# will be fixed, we should probably remove this patch and package the
# "native" non-ffmpeg MPL-licensed fluendo-mpegdemux, which is apparently
# highly preferred to ffmpeg plugin by upstream.
Patch0:		gst-ffmpeg-enable-mpegts.patch
Patch1:		gst-ffmpeg-fix-format-strings.patch
Patch2:		gst-ffmpeg-0.10.13-gcc-4.7-1.patch
Patch3:		gst-ffmpeg-0.10-include.patch

%ifnarch %{arm} %{mips}
BuildRequires:	valgrind
%endif
BuildRequires:	bzip2-devel
%if %{with external_ffmpeg}
BuildRequires:	ffmpeg-devel
%endif
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:	pkgconfig(orc-0.4)
BuildRequires:	yasm

%description
Video codec plugin for GStreamer based on the ffmpeg libraries.

%files
%doc README NEWS TODO ChangeLog AUTHORS
%{_libdir}/gstreamer-0.10/libgstffmpeg.so
%{_libdir}/gstreamer-0.10/libgstffmpegscale.so
%{_libdir}/gstreamer-0.10/libgstpostproc.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%define _disable_ld_no_undefined 1
# gst-ffmpeg mp3 decoder has issues (eg no seeking support), disable it since
# gst-plugins-bad and gst-fluendo both ship better mp3 decoders
%configure \
  --with-package-name='%{distribution} %{name} package' \
  --with-package-origin='%{disturl}' \
  --with-ffmpeg-extra-configure='--disable-decoder=mp3 --disable-decoder=mp3on4 --disable-decoder=mp3adu --disable-demuxer=mp3 --disable-demuxer=asf' \
%if %{with external_ffmpeg}
	--with-system-ffmpeg
%endif

%make

%install
%makeinstall_std
rm -f %{buildroot}%{_libdir}/gstreamer*/*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2146 |21cr|gstreamer0.10-moodbar-0.1.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         gst_major_ver   0.10
%define         gstlibdir       %{_libdir}/gstreamer-%{gst_major_ver}

# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

Summary:	Moodbar plugin for gstreamer
Name:		gstreamer%{gst_major_ver}-moodbar
Version:	0.1.2
Release:	15
License:	GPL v2
Group:		System/Libraries
Source:		moodbar-%{version}.tar.bz2
URL:		http://amarok.kde.org/wiki/Moodbar
BuildRequires:	fftw3-devel
BuildRequires:	libgstreamer-devel >= %{gst_major_ver}
Requires:	gstreamer%{gst_major_ver}-plugins-base >= %{gst_major_ver}
Requires:	gstreamer%{gst_major_ver}-plugins-good >= %{gst_major_ver}
Provides:	moodbar = %{version}-%{release}

%description
The Moodbar is an algorithm for creating a colorful visual
representation of the contents of an audio file, giving an idea of its
"mood" (this is a rather fanciful term for the simple analysis it
actually does). The Moodbar was invented by Gavin Wood and Simon
O'Keefe for inclusion in the Amarok music player.

This package contains a GStreamer plugin with elements that are used
in the moodbar analysis, and an application that actually does the
analysis.

%prep
%setup -q -n moodbar-%{version}

%build
%configure \
	--disable-static
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

rm -f $RPM_BUILD_ROOT%{gstlibdir}/libmoodbar.la

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README TODO
%attr(755,root,root) %{_bindir}/moodbar
%attr(755,root,root) %{gstlibdir}/libmoodbar.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2147 |21cr|gstreamer0.10-pitfdll-0.9.1.1-0.20080215.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pitfdll
%define majorminor 0.10
%define cvs 20080215

Name: 		gstreamer0.10-%{oname}
Version: 	0.9.1.1
Release:	%mkrel -c %{cvs} 4
Summary:	GStreamer DLL loader plugin
Group: 		Video
License: 	GPLv2+
URL:		http://ronald.bitfreak.net/pitfdll/
Source:		http://prdownloads.sourceforge.net/%{oname}/%{oname}-%{cvs}.tar.bz2
# http://sourceforge.net/tracker/index.php?func=detail&aid=1697883&group_id=137113&atid=737825
Patch1:		pitfdll-20080215-autoconf.patch
BuildRequires:	libgstreamer-plugins-base-devel
ExclusiveArch:	%{ix86}
Requires:	win32-codecs

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related. Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This plugin contains a DLL loader to provide media playback for proprietary
formats. The 32 Bit Windows DLL files must be placed in /usr/lib/codecs, just
install the win32-codecs package.

This package is in restricted as you need the proprietary DLLs.

%prep
%setup -q -n %{oname}
%patch1
./autogen.sh

%build
%configure --with-dlldir=%{_libdir}/codecs
%make

%install
%__rm -rf %{buildroot}

%makeinstall_std
%__rm -f %{buildroot}%{_libdir}/gstreamer-%{majorminor}/*.la

%clean
%__rm -rf %{buildroot}

%files
%doc AUTHORS README
%{_libdir}/gstreamer-%{majorminor}/libpitfdll.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2148 |21cr|gstreamer0.10-plugins-bad-0.10.23-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define build_experimental 0
%define build_dirac 1
%define build_gme 1
%define build_celt 1

%define build_amrwb 1
%define build_voaac 1
%define build_faac 1
%define build_faad 1
%define build_xvid 1
%define build_dts 1

%define oname	gst-plugins-bad
%define bname	gstreamer%{api}
%define api	0.10
%define major	23
%define libgstbasevideo		%mklibname gstbasevideo %{api} %{major}
%define libgstbasecamerabinsrc	%mklibname gstbasecamerabinsrc %{api} %{major}
%define libgstcodecparsers	%mklibname gstcodecparsers %{api} %{major}
%define libgstphotography	%mklibname gstphotography %{api} %{major}
%define libgstsignalprocessor	%mklibname gstsignalprocessor %{api} %{major}
%define libgstvdp 		%mklibname gstvdp %{api} %{major}
%define devname 		%mklibname %{oname} -d %{api}

Summary:	GStreamer Streaming-media framework plug-ins
Name:		%{bname}-plugins-bad
Version:	0.10.23
Release:	16
License:	LGPLv2+ and GPLv2+
Group:		Sound
Url:		http://gstreamer.freedesktop.org/
Source0:	http://gstreamer.freedesktop.org/src/gst-plugins-bad/%{oname}-%{version}.tar.bz2
Patch0:		gst-plugins-bad-0.10.7-wildmidi-timidity.cfg.patch
Patch1:		gst-plugins-bad-0.10.23-h264.patch
# With new directfb we get macro expanded to
#  __attribute__((__attribute__((no_instrument_function))))
# See http://permalink.gmane.org/gmane.comp.graphics.directfb.devel/3679
Patch2:		gst-plugins-bad-0.10.23-attribute.patch
Patch3:		gst-plugins-bad-0.10.23-neon-0.30.patch
Patch4:		gst-plugins-bad-0.10.23-drop-vpx-compat-defs.patch
Patch5:		gst-plugins-bad-0.10.23-fix-libmodplug-include.patch
Patch6:		gst-plugins-bad-0.10.23-wildmidi-0.4.patch
Patch7:		gst-plugins-bad-0.10.23-vmncdec-sanity-check.patch
Patch8:		gst-plugins-bad-0.10-include.patch
Patch9:		gst-plugins-bad-0.10-c++.patch

# gw: fix for bug #36437 (paths to realplayer codecs)
# prefer codecs from the RealPlayer package in restricted
Patch10:	gst-plugins-bad-0.10.6-real-codecs-path.patch

BuildRequires:	fonts-ttf-dejavu
#gw for checks
BuildRequires:	gstreamer%{api}-plugins-good
BuildRequires:	bzip2-devel
#gw for autoreconf
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api}) >= 0.10.33
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libcdaudio)
BuildRequires:	pkgconfig(libmimic)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(orc-0.4)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sndfile)
%ifarch %{ix86}
BuildRequires:	nasm => 0.90
BuildRequires:	valgrind
%endif
Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink
Provides:	%{bname}-fluendo-mpegdemux
Requires:	%{bname}-voip >= %{version}-%{release}
Conflicts:	%{bname}-farsight <= 1:0.12.10

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This package contains a set of plug-ins that aren't up to par compared
to the rest. They might be close to being good quality, but they're
missing something - be it a good code review, some documentation, a
set of tests, a real live maintainer, or some actual wide use. If the
blanks are filled in they might be upgraded to become part of either
gstreamer-plugins-good or gstreamer-plugins-ugly, depending on the
other factors. If the plug-ins break, you can't complain - instead,
you can fix the problem and send us a patch, or bribe someone into
fixing them for you.  New contributors can start here for things to
work on.

%files -f %{oname}-%{api}.lang
%doc AUTHORS COPYING README NEWS
%{_datadir}/glib-2.0/schemas/org.freedesktop.gstreamer-0.10.default-elements.gschema.xml
%{_libdir}/gstreamer-%{api}/libgstadpcmdec.so
%{_libdir}/gstreamer-%{api}/libgstadpcmenc.so
%{_libdir}/gstreamer-%{api}/libgstaiff.so
%{_libdir}/gstreamer-%{api}/libgstasfmux.so
%{_libdir}/gstreamer-%{api}/libgstautoconvert.so
%{_libdir}/gstreamer-%{api}/libgstaudiovisualizers.so
%{_libdir}/gstreamer-%{api}/libgstbayer.so
%{_libdir}/gstreamer-%{api}/libgstcamerabin.so
%{_libdir}/gstreamer-%{api}/libgstcamerabin2.so
%{_libdir}/gstreamer-%{api}/libgstcoloreffects.so
%{_libdir}/gstreamer-%{api}/libgstcolorspace.so
%{_libdir}/gstreamer-%{api}/libgstdccp.so
%{_libdir}/gstreamer-%{api}/libgstdataurisrc.so
%{_libdir}/gstreamer-%{api}/libgstdebugutilsbad.so
%{_libdir}/gstreamer-%{api}/libgstdvb.so
%{_libdir}/gstreamer-%{api}/libgstdvbsuboverlay.so
%{_libdir}/gstreamer-%{api}/libgstdvdspu.so
%{_libdir}/gstreamer-%{api}/libgstfaceoverlay.so
%{_libdir}/gstreamer-%{api}/libgstfbdevsink.so
%{_libdir}/gstreamer-%{api}/libgstfestival.so
%{_libdir}/gstreamer-%{api}/libgstfrei0r.so
%{_libdir}/gstreamer-%{api}/libgstfreeverb.so
%{_libdir}/gstreamer-%{api}/libgstgaudieffects.so
%{_libdir}/gstreamer-%{api}/libgstgeometrictransform.so
%{_libdir}/gstreamer-%{api}/libgstgsettingselements.so
%{_libdir}/gstreamer-%{api}/libgsthdvparse.so
%{_libdir}/gstreamer-%{api}/libgstid3tag.so
%{_libdir}/gstreamer-%{api}/libgstinter.so
%{_libdir}/gstreamer-%{api}/libgstinterlace.so
%{_libdir}/gstreamer-%{api}/libgstivfparse.so
%{_libdir}/gstreamer-%{api}/libgstjpegformat.so
%{_libdir}/gstreamer-%{api}/libgstlegacyresample.so
%{_libdir}/gstreamer-%{api}/libgstmpegdemux.so
%{_libdir}/gstreamer-%{api}/libgstmpegpsmux.so
%{_libdir}/gstreamer-%{api}/libgstmpegtsmux.so
%{_libdir}/gstreamer-%{api}/libgstmpegvideoparse.so
%{_libdir}/gstreamer-%{api}/libgstmve.so
%{_libdir}/gstreamer-%{api}/libgstmimic.so
%{_libdir}/gstreamer-%{api}/libgstmxf.so
%{_libdir}/gstreamer-%{api}/libgstopenal.so
# New version of opencv is not supported yet,
# uncomment when the plugin is built again
#{_libdir}/gstreamer-%{api}/libgstopencv.so
%{_libdir}/gstreamer-%{api}/libgstopus.so
%{_libdir}/gstreamer-%{api}/libgstpcapparse.so
%{_libdir}/gstreamer-%{api}/libgstpnm.so
%{_libdir}/gstreamer-%{api}/libgstrawparse.so
%ifnarch %{armx}
%{_libdir}/gstreamer-%{api}/libgstreal.so
%endif
%{_libdir}/gstreamer-%{api}/libgstremovesilence.so
%{_libdir}/gstreamer-%{api}/libgstscaletempoplugin.so
%{_libdir}/gstreamer-%{api}/libgstsdpelem.so
%{_libdir}/gstreamer-%{api}/libgstsegmentclip.so
%{_libdir}/gstreamer-%{api}/libgstshm.so
%{_libdir}/gstreamer-%{api}/libgstsiren.so
%{_libdir}/gstreamer-%{api}/libgstsmooth.so
%{_libdir}/gstreamer-%{api}/libgstsndfile.so
%{_libdir}/gstreamer-%{api}/libgststereo.so
%{_libdir}/gstreamer-%{api}/libgstsubenc.so
%{_libdir}/gstreamer-%{api}/libgstvcdsrc.so
%{_libdir}/gstreamer-%{api}/libgstvideomaxrate.so
%{_libdir}/gstreamer-%{api}/libgstvideomeasure.so
%{_libdir}/gstreamer-%{api}/libgstvideosignal.so
%{_libdir}/gstreamer-%{api}/libgstvmnc.so
%{_libdir}/gstreamer-%{api}/libgstbz2.so
%{_libdir}/gstreamer-%{api}/libgstcdaudio.so
%{_libdir}/gstreamer-%{api}/libgstcdxaparse.so
%{_libdir}/gstreamer-%{api}/libgstdecklink.so
%{_libdir}/gstreamer-%{api}/libgstfieldanalysis.so
%{_libdir}/gstreamer-%{api}/libgstfragmented.so
%{_libdir}/gstreamer-%{api}/libgstlinsys.so
%{_libdir}/gstreamer-%{api}/libgstmpegtsdemux.so
%{_libdir}/gstreamer-%{api}/libgstpatchdetect.so
%{_libdir}/gstreamer-%{api}/libgstsdi.so
%{_libdir}/gstreamer-%{api}/libgstvideofiltersbad.so
%{_libdir}/gstreamer-%{api}/libgstvideoparsersbad.so
%{_libdir}/gstreamer-%{api}/libgstfreeze.so
%{_libdir}/gstreamer-%{api}/libgsth264parse.so
%{_libdir}/gstreamer-%{api}/libgstmodplug.so
%{_libdir}/gstreamer-%{api}/libgstnsf.so
%{_libdir}/gstreamer-%{api}/libgstnuvdemux.so
%{_libdir}/gstreamer-%{api}/libgstrfbsrc.so
%{_libdir}/gstreamer-%{api}/libgstsdl.so
%{_libdir}/gstreamer-%{api}/libgstspeed.so
#%%{_libdir}/gstreamer-%{api}/libgsttrm.so
%{_libdir}/gstreamer-%{api}/libgsttta.so
%{_libdir}/gstreamer-%{api}/libgsty4mdec.so

#----------------------------------------------------------------------------

%package -n %{libgstbasevideo}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstbasevideo}
This package contains a shared library for %{name}.

%files -n %{libgstbasevideo}
%{_libdir}/libgstbasevideo-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstbasecamerabinsrc}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries
Conflicts:	%{_lib}gstbasevideo0.10_23 < 0.10.23-5

%description -n %{libgstbasecamerabinsrc}
This package contains a shared library for %{name}.

%files -n %{libgstbasecamerabinsrc}
%{_libdir}/libgstbasecamerabinsrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstcodecparsers}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries
Conflicts:	%{_lib}gstphotography0.10_23 < 0.10.23-5

%description -n %{libgstcodecparsers}
This package contains a shared library for %{name}.

%files -n  %{libgstcodecparsers}
%{_libdir}/libgstcodecparsers-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstphotography}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstphotography}
This package contains a shared library for %{name}.

%files -n %{libgstphotography}
%{_libdir}/libgstphotography-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstsignalprocessor}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries
Conflicts:	%{_lib}gstphotography0.10_23 < 0.10.23-5

%description -n %{libgstsignalprocessor}
This package contains a shared library for %{name}.

%files -n %{libgstsignalprocessor}
%{_libdir}/libgstsignalprocessor-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgstvdp}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstvdp}
This package contains a shared library for %{name}.

%files -n %{libgstvdp}
%{_libdir}/libgstvdp-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libgstbasevideo} = %{version}-%{release}
Requires:	%{libgstbasecamerabinsrc} = %{version}-%{release}
Requires:	%{libgstcodecparsers} = %{version}-%{release}
Requires:	%{libgstphotography} = %{version}-%{release}
Requires:	%{libgstsignalprocessor} = %{version}-%{release}
Requires:	%{libgstvdp} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}gstphotography-devel < 0.10.23-5
Obsoletes:	%{_lib}gstbasevideo-devel < 0.10.23-5
Conflicts:	%{_lib}gstbasevideo-devel < 0.10.23-5

%description -n %{devname}
This package contains the libraries and includes files necessary to develop
applications and plugins for GStreamer.

%files -n %{devname}
%{_libdir}/libgstbasevideo-%{api}.so
%{_libdir}/libgstbasecamerabinsrc-%{api}.so
%{_libdir}/libgstcodecparsers-%{api}.so
%{_libdir}/libgstphotography-%{api}.so
%{_libdir}/libgstsignalprocessor-%{api}.so
%{_libdir}/libgstvdp-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/basecamerabinsrc/*.h
%{_includedir}/gstreamer-%{api}/gst/codecparsers
%{_includedir}/gstreamer-%{api}/gst/interfaces/photography*
%{_includedir}/gstreamer-%{api}/gst/signalprocessor/gstsignalprocessor.h
%{_includedir}/gstreamer-%{api}/gst/vdpau/
%{_includedir}/gstreamer-%{api}/gst/video/
%{_libdir}/pkgconfig/gstreamer-plugins-bad-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-codecparsers-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-basevideo-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{bname}-curl
Summary:	GStreamer Curl plugin
Group:		Networking/Other
BuildRequires:	pkgconfig(libcurl)

%description -n %{bname}-curl
This is a HTTP plugin for GStreamer based on the curl library.

%files -n %{bname}-curl
%{_libdir}/gstreamer-%{api}/libgstcurl.so

#----------------------------------------------------------------------------

%package -n %{bname}-dc1394
Summary:	GStreamer DC1394 plugin
Group:		System/Libraries
BuildRequires:	pkgconfig(libdc1394-2)

%description -n %{bname}-dc1394
This is a IEEE 1394 (Firewire) support plugin for GStreamer.

%files -n %{bname}-dc1394
%{_libdir}/gstreamer-%{api}/libgstdc1394.so

#----------------------------------------------------------------------------

%package -n %{bname}-ofa
Summary:	GStreamer OFA plugin
Group:		Sound
BuildRequires:	pkgconfig(libofa)

%description -n %{bname}-ofa
This is a metadata support plugin for GStreamer based on the Open
Fingerprint Architecture library.

%files -n %{bname}-ofa
%{_libdir}/gstreamer-%{api}/libgstofa.so

#----------------------------------------------------------------------------

%package -n %{bname}-wildmidi
Summary:	GStreamer wildmidi plugin
Group:		Sound
BuildRequires:	wildmidi-devel
Requires:	timidity-instruments

%description -n %{bname}-wildmidi
This is a MIDI plugin for GStreamer based on the wildmidi library.

%files -n %{bname}-wildmidi
%{_libdir}/gstreamer-%{api}/libgstwildmidi.so

#----------------------------------------------------------------------------

%package -n %{bname}-mpeg2enc
Summary:	GStreamer mjpegtools plug-in
Group:		Video
BuildRequires:	pkgconfig(mjpegtools)

%description -n %{bname}-mpeg2enc
mjpegtools-based encoding and decoding plug-in.

%files -n %{bname}-mpeg2enc
%{_libdir}/gstreamer-%{api}/libgstmpeg2enc.so
%{_libdir}/gstreamer-%{api}/libgstmplex.so

#----------------------------------------------------------------------------

%if %{build_gme}
%package -n %{bname}-gme
Summary:	GStreamer Game Music plug-in
Group:		Sound
BuildRequires:	libgme-devel

%description -n %{bname}-gme
Game Music decoding plug-in.

%files -n %{bname}-gme
%{_libdir}/gstreamer-%{api}/libgstgme.so
%endif

#----------------------------------------------------------------------------

%if %{build_dirac}
%package -n %{bname}-dirac
Summary:	GStreamer dirac plug-in
Group:		Video
BuildRequires:	pkgconfig(dirac)

%description -n %{bname}-dirac
Dirac encoding and decoding plug-in.

%files -n %{bname}-dirac
%{_libdir}/gstreamer-%{api}/libgstdirac.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-schroedinger
Summary:	GStreamer dirac plug-in based on Schroedinger
Group:		Video
BuildRequires:	pkgconfig(schroedinger-1.0)
Epoch:		1

%description -n %{bname}-schroedinger
Dirac encoding and decoding plug-in based on Schroedinger.

%files -n %{bname}-schroedinger
%{_libdir}/gstreamer-%{api}/libgstschro.so

#----------------------------------------------------------------------------

%package -n %{bname}-vp8
Summary:	GStreamer VP8 plug-in
Group:		Video
BuildRequires:	pkgconfig(vpx)

%description -n %{bname}-vp8
VP8 encoding and decoding plug-in.

%files -n %{bname}-vp8
%{_libdir}/gstreamer-%{api}/libgstvp8.so
%{_libdir}/gstreamer-%{api}/libgstrtpvp8.so

#----------------------------------------------------------------------------

### LADSPA ###
%package -n %{bname}-ladspa
Summary:	Gstreamer wrapper for LADSPA plug-ins
Group:		Sound
Requires:	ladspa
BuildRequires:	ladspa-devel

%description -n %{bname}-ladspa
Plug-in which wraps LADSPA plug-ins for use by GStreamer applications.
We suggest you also get the cmt package of ladspa plug-ins
and steve harris's swh-plugins package.

%files -n %{bname}-ladspa
%{_libdir}/gstreamer-%{api}/libgstladspa.so

#----------------------------------------------------------------------------

%if %{build_dts}
%package -n %{bname}-dts
Summary:	GStreamer plug-ins for DTS audio playback
Group:		Sound
BuildRequires:	pkgconfig(libdts)

%description -n %{bname}-dts
Plug-ins for decoding DTS audio.

%files -n %{bname}-dts
%{_libdir}/gstreamer-%{api}/libgstdtsdec.so
%endif

#----------------------------------------------------------------------------

%if %{build_xvid}
%package -n %{bname}-xvid
Summary:	GStreamer plug-ins for XVID video encoding and decoding
Group:		Video
BuildRequires:	xvid-devel >= 1.1

%description -n %{bname}-xvid
Plug-ins for encoding and decoding XVID video.

This package is in restricted as it violates some patents.

%files -n %{bname}-xvid
%{_libdir}/gstreamer-%{api}/libgstxvid.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-musepack
Summary:	GStreamer plug-in Musepack playback
Group:		Sound
BuildRequires:	libmpcdec-devel

%description -n %{bname}-musepack
This plugin for GStreamer can play audio files which are encoded with
Andree Buschmann's encoder Musepack. These files have the filename
postfixes mpc, mp+ or mpp.

%files -n %{bname}-musepack
%{_libdir}/gstreamer-%{api}/libgstmusepack.so

#----------------------------------------------------------------------------

%package -n %{bname}-mms
Summary:	GStreamer plug-in for mms streams
Group:		System/Libraries
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(libmms)

%description -n %{bname}-mms
Plug-in supporting the mms protocol based on the libmms library.

%files -n %{bname}-mms
%{_libdir}/gstreamer-%{api}/libgstmms.so

#----------------------------------------------------------------------------

%package -n %{bname}-rtmp
Summary:	GStreamer plug-in for rtmp streams
Group:		System/Libraries
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(librtmp)

%description -n %{bname}-rtmp
Plug-in supporting the rtmp protocol based on the librtmp library.

%files -n %{bname}-rtmp
%{_libdir}/gstreamer-%{api}/libgstrtmp.so

#----------------------------------------------------------------------------

%package -n %{bname}-directfb
Summary:	GStreamer plug-in for DirectFB output
Group:		Video
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(directfb)

%description -n %{bname}-directfb
Plug-in supporting the video output to DirectFB.

%files -n %{bname}-directfb
%{_libdir}/gstreamer-%{api}/libgstdfbvideosink.so

#----------------------------------------------------------------------------

%package -n %{bname}-soundtouch
Summary:	GStreamer plug-in for SoundTouch support
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(soundtouch)

%description -n %{bname}-soundtouch
Plug-in supporting the SoundTouch audio manipulation support.

%files -n %{bname}-soundtouch
%{_libdir}/gstreamer-%{api}/libgstsoundtouch.so

#----------------------------------------------------------------------------

%package -n %{bname}-kate
Summary:	GStreamer Karaoke and text plugin
Group:		Video
BuildRequires:	pkgconfig(tiger)

%description -n %{bname}-kate
This is a Karaoke and text plugin for GStreamer based on libkate and libtiger.

%files -n %{bname}-kate
%{_libdir}/gstreamer-%{api}/libgstkate.so

#----------------------------------------------------------------------------

%package -n %{bname}-libass
Summary:	GStreamer subtitles plugin
Group:		Video
BuildRequires:	pkgconfig(libass)

%description -n %{bname}-libass
This is a subtitle plugin for GStreamer based on libass.

%files -n %{bname}-libass
%{_libdir}/gstreamer-%{api}/libgstassrender.so

#----------------------------------------------------------------------------

%package -n %{bname}-resindvd
Summary:	GStreamer DVD menu plugin
Group:		Video
BuildRequires:	pkgconfig(dvdnav)

%description -n %{bname}-resindvd
This is a DVD playback plugin for GStreamer with menu support.

%files -n %{bname}-resindvd
%{_libdir}/gstreamer-%{api}/libresindvd.so

#----------------------------------------------------------------------------

%package -n %{bname}-voip
Summary:	GStreamer voip plugins
Group:		Sound

%description -n %{bname}-voip
This is a collection of VoIP plugins for GStreamer.

%files -n %{bname}-voip
%{_libdir}/gstreamer-%{api}/libgstrtpmux.so
%{_libdir}/gstreamer-%{api}/libgstliveadder.so
%{_libdir}/gstreamer-%{api}/libgstdtmf.so

#----------------------------------------------------------------------------

%package -n %{bname}-cog
Summary:	GStreamer COG plugin
Group:		Video
BuildRequires:	pkgconfig(orc-0.4)

%description -n %{bname}-cog
This is a signal processing plugin for GStreamer based on Orc.

%files -n %{bname}-cog
%{_libdir}/gstreamer-%{api}/libgstcog.so

#----------------------------------------------------------------------------

%package -n %{bname}-vdpau
Summary:	GStreamer plug-in for playback using VDPAU
Group:		Video
BuildRequires:	vdpau-devel

%description -n %{bname}-vdpau
This plug-in adds video playback support to GStreamer based on VDPAU 
(Video Decode and Presentation API for Unix).

%files -n %{bname}-vdpau
%{_libdir}/gstreamer-%{api}/libgstvdpau.so

#----------------------------------------------------------------------------

%if %{build_faad}
%package -n %{bname}-faad
Summary:	GStreamer plug-in for AAC audio playback
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	libfaad2-devel => 2.0

%description -n %{bname}-faad
Plug-ins for playing AAC audio

This package is in restricted as it violates some patents.

%files -n %{bname}-faad
%{_libdir}/gstreamer-%{api}/libgstfaad.so
%endif

#----------------------------------------------------------------------------

%if %{build_faac}
%package -n %{bname}-faac
Summary:	GStreamer plug-ins for AAC audio encoding
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	libfaac-devel

%description -n %{bname}-faac
Plug-ins for encoding AAC audio

This package is in restricted as it violates some patents.

%files -n %{bname}-faac
%{_libdir}/gstreamer-%{api}/libgstfaac.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-gsm
Summary:	GStreamer plugin for GSM lossy audio format
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	gsm-devel >= 1.0.10

%description -n %{bname}-gsm
Output plugin for GStreamer to convert to GSM lossy audio format.

%files -n %{bname}-gsm
%{_libdir}/gstreamer-%{api}/libgstgsm.so

#----------------------------------------------------------------------------

%package -n %{bname}-neon
Summary:	GStreamer HTTP plugin based on libneon
Group:		System/Libraries
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(neon)

%description -n %{bname}-neon
Plug-in for HTTP access based on libneon.

%files -n %{bname}-neon
%{_libdir}/gstreamer-%{api}/libgstneonhttpsrc.so

#----------------------------------------------------------------------------

%package -n %{bname}-nas
Summary:	Gstreamer output plugin for the NAS sound server
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	nas-devel

%description -n %{bname}-nas
Output plugin for GStreamer for use with the nas sound server.

%files -n %{bname}-nas
%{_libdir}/gstreamer-%{api}/libgstnassink.so

#----------------------------------------------------------------------------

%if %{build_amrwb}
%package -n %{bname}-amrwb
Summary:	GStreamer plug-in for AMR-WB support
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(vo-amrwbenc)

%description -n %{bname}-amrwb
Plug-in for decoding AMR-WB under GStreamer.

This package is in restricted as it violates some patents.

%files -n %{bname}-amrwb
%{_datadir}/gstreamer-%{api}/presets/GstVoAmrwbEnc.prs
%{_libdir}/gstreamer-%{api}/libgstvoamrwbenc.so
%endif

#----------------------------------------------------------------------------

%if %{build_voaac}
%package -n %{bname}-vo-aac
Summary:	GStreamer plug-in for VisualOn AAC encoding
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(vo-aacenc)

%description -n %{bname}-vo-aac
Plug-in for encoding AAC under GStreamer based on VisualOn AAC library.

This package is in restricted as it violates some patents.

%files -n %{bname}-vo-aac
%{_libdir}/gstreamer-%{api}/libgstvoaacenc.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-jp2k
Summary:	GStreamer plug-in for JPEG2000 support
Group:		Graphics
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(jasper)

%description -n %{bname}-jp2k
Plug-in for JPEG2000 support under GStreamer.

%files -n %{bname}-jp2k
%{_libdir}/gstreamer-%{api}/libgstjp2k.so
%{_libdir}/gstreamer-%{api}/libgstjp2kdecimator.so

#----------------------------------------------------------------------------

%if %{build_celt}
%package -n %{bname}-celt
Summary:	GStreamer plug-in for CELT support
Group:		Video
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(celt)

%description -n %{bname}-celt
Plug-in for CELT support under GStreamer.

%files -n %{bname}-celt
%{_libdir}/gstreamer-%{api}/libgstcelt.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-rsvg
Summary:	GStreamer plug-in for SVG support
Group:		Graphics
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(librsvg-2.0)

%description -n %{bname}-rsvg
Plug-in for SVG support under GStreamer.

%files -n %{bname}-rsvg
%{_libdir}/gstreamer-%{api}/libgstrsvg.so

#----------------------------------------------------------------------------

%package doc
Group:		Books/Computer books
Summary:	GStreamer application library

%description doc
This is the documentation of %{name}.

%files doc
%doc docs/plugins/html
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches

#rebuild configure for check C++ on arm, see patch9
%ifarch %{armx}
%config_update
%endif


%build
#work around broken mjpegtools headers including config.h:
export CPPFLAGS="-I."
%configure \
	--disable-static \
	--disable-apexsink \
	--disable-dependency-tracking \
	--with-package-name='%{distribution} %{name} package' \
	--with-package-origin='%{disturl}' \
%if ! %{build_celt}
	--disable-celt \
%endif
%if ! %{build_faac}
	--disable-faac \
%endif
%if ! %{build_faad}
	--disable-faad \
%endif
%if ! %{build_dirac}
	--disable-dirac \
%endif
%if %{build_experimental}
	--enable-experimental
%endif

%make

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

%find_lang %{oname}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2149 |21cr|gstreamer0.10-plugins-base-0.10.36-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.10
%define majorminor 0.10

%define bname gstreamer%{majorminor}

%define libname %mklibname gstreamer-plugins-base %{major}
%define gstver 0.10.36
%define build_libvisual 1

Summary:	GStreamer Streaming-media framework plug-ins
Name:		%{bname}-plugins-base
Version:	0.10.36
Release:	13
License:	LGPLv2+
Group:		Sound
Url:		http://gstreamer.freedesktop.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/gst-plugins-base/0.10/gst-plugins-base-%{version}.tar.xz
Patch0:		align.patch
#fix playing ogg track after mp3 track in Amarok (bko#302652, mga#10762)
Patch1:		audiodecoder-don-t-discard-timestamps-when-consecuti.patch
Patch2:		gst-plugins-base-0.10.36-gcc-4.9.patch
Patch3:		gst-plugins-base-0.10-include.patch
Patch4:		gst-plugins-base-1-intrinsics.patch
BuildRequires:	gtk-doc
#gw we need some fonts for the tests
BuildRequires:	fonts-ttf-dejavu
%ifarch %{ix86}
BuildRequires:	nasm => 0.90
%endif
BuildRequires:	valgrind
#gw qt example
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-0.10) >= %{gstver}
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(orc-0.4)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xv)
Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink
Provides:	%{bname}-alsa = %{EVRD}
Obsoletes:	%{bname}-alsa < %{EVRD}
Provides:	%{bname}-plugins = %{EVRD}
Obsoletes:	%{bname}-plugins < %{EVRD}
Provides:	%{bname}-vorbis = %{EVRD}
Obsoletes:	%{bname}-vorbis < %{EVRD}
Provides:	%{bname}-x11 = %{EVRD}
Obsoletes:	%{bname}-x11 < %{EVRD}
Provides:	%{bname}-plugin-libs = %{EVRD}
Obsoletes:	%{bname}-plugin-libs < %{EVRD}
Recommends:	gst-install-plugins-helper
Conflicts:	%{bname}-plugins-bad < 0.10.10
Requires:	glib-networking

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This package contains a set of reference plugins, base classes for other
plugins, and helper libraries:
 * device plugins: x(v)imagesink, alsa, v4lsrc, cdparanoia
 * containers: ogg
 * codecs: vorbis, theora
 * text: textoverlay, subparse
 * sources: audiotestsrc, videotestsrc, gnomevfssrc
 * network: tcp
 * typefind
 * audio processing: audioconvert, adder, audiorate, audioscale, volume
 * visualisation: libvisual
 * video processing: ffmpegcolorspace
 * aggregate elements: decodebin, playbin

%files -f gst-plugins-base-%{majorminor}.lang
%doc AUTHORS COPYING README NEWS
%{_bindir}/gst-discoverer-%{majorminor}
%{_bindir}/gst-visualise-%{majorminor}
%{_datadir}/gst-plugins-base/license-translations.dict
%{_mandir}/man1/gst-visualise-%{majorminor}.1*
%{_libdir}/gstreamer-%{majorminor}/libgstffmpegcolorspace.so
# non-core plugins without external dependencies
%{_libdir}/gstreamer-%{majorminor}/libgstapp.so
%{_libdir}/gstreamer-%{majorminor}/libgstaudioconvert.so
%{_libdir}/gstreamer-%{majorminor}/libgstaudiorate.so
%{_libdir}/gstreamer-%{majorminor}/libgstaudioresample.so
%{_libdir}/gstreamer-%{majorminor}/libgstaudiotestsrc.so
%{_libdir}/gstreamer-%{majorminor}/libgstdecodebin.so
%{_libdir}/gstreamer-%{majorminor}/libgstdecodebin2.so
%{_libdir}/gstreamer-%{majorminor}/libgstencodebin.so
%{_libdir}/gstreamer-%{majorminor}/libgstgdp.so
%{_libdir}/gstreamer-%{majorminor}/libgstgio.so
%{_libdir}/gstreamer-%{majorminor}/libgstpango.so
%{_libdir}/gstreamer-%{majorminor}/libgstplaybin.so
%{_libdir}/gstreamer-%{majorminor}/libgstsubparse.so
%{_libdir}/gstreamer-%{majorminor}/libgsttcp.so
%{_libdir}/gstreamer-%{majorminor}/libgstvolume.so
%{_libdir}/gstreamer-%{majorminor}/libgstadder.so
%{_libdir}/gstreamer-%{majorminor}/libgsttypefindfunctions.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideotestsrc.so
%{_libdir}/gstreamer-%{majorminor}/libgsttheora.so
%{_libdir}/gstreamer-%{majorminor}/libgstogg.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideorate.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideoscale.so
%{_libdir}/gstreamer-%{majorminor}/libgstvorbis.so
%{_libdir}/gstreamer-%{majorminor}/libgstximagesink.so
%{_libdir}/gstreamer-%{majorminor}/libgstxvimagesink.so
%{_libdir}/gstreamer-%{majorminor}/libgstalsa.so

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	GStreamer plugin libraries

%description -n %{libname}
This package contain the basic audio and video playback library and
the interfaces library.

%files -n %{libname}
%{_libdir}/libgstaudio-%{majorminor}.so.0*
%{_libdir}/libgstapp-%{majorminor}.so.0*
%{_libdir}/libgstcdda-%{majorminor}.so.0*
%{_libdir}/libgstfft-%{majorminor}.so.0*
%{_libdir}/libgstinterfaces-%{majorminor}.so.0*
%{_libdir}/libgstnetbuffer-%{majorminor}.so.0*
%{_libdir}/libgstpbutils-%{majorminor}.so.0*
%{_libdir}/libgstriff-%{majorminor}.so.0*
%{_libdir}/libgstrtp-%{majorminor}.so.0*
%{_libdir}/libgstrtsp-%{majorminor}.so.0*
%{_libdir}/libgsttag-%{majorminor}.so.0*
%{_libdir}/libgstsdp-%{majorminor}.so.0*
%{_libdir}/libgstvideo-%{majorminor}.so.0*
%{_libdir}/girepository-1.0/GstApp-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstAudio-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstFft-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstInterfaces-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstNetbuffer-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstPbutils-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstRiff-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstRtp-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstRtsp-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstSdp-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstTag-%{majorminor}.typelib
%{_libdir}/girepository-1.0/GstVideo-%{majorminor}.typelib

#----------------------------------------------------------------------------

%package -n %{libname}-devel
Summary:	GStreamer Plugin Library Headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# gw is required at build time for make check
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(gstreamer-0.10) >= %{gstver}
Provides:	libgstreamer-plugins-base-devel = %{EVRD}
Provides:	libgstreamer%{majorminor}-plugins-base-devel = %{EVRD}

%description -n %{libname}-devel
GStreamer support libraries header files.

%files -n %{libname}-devel
%doc docs/plugins/html
%{_includedir}/gstreamer-%{majorminor}/gst/app/
%{_includedir}/gstreamer-%{majorminor}/gst/audio
%{_includedir}/gstreamer-%{majorminor}/gst/cdda/
%{_includedir}/gstreamer-%{majorminor}/gst/fft
%{_includedir}/gstreamer-%{majorminor}/gst/interfaces
%{_includedir}/gstreamer-%{majorminor}/gst/netbuffer
%{_includedir}/gstreamer-%{majorminor}/gst/pbutils
%{_includedir}/gstreamer-%{majorminor}/gst/riff
%{_includedir}/gstreamer-%{majorminor}/gst/rtsp
%{_includedir}/gstreamer-%{majorminor}/gst/sdp
%{_includedir}/gstreamer-%{majorminor}/gst/tag/
%{_includedir}/gstreamer-%{majorminor}/gst/video/
%{_includedir}/gstreamer-%{majorminor}/gst/floatcast/
%{_includedir}/gstreamer-%{majorminor}/gst/rtp
%{_libdir}/pkgconfig/gstreamer-app-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-audio-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-cdda-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-fft-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-floatcast-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-interfaces-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-netbuffer-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-pbutils-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-plugins-base-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-riff-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-rtp-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-rtsp-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-sdp-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-tag-%{majorminor}.pc
%{_libdir}/pkgconfig/gstreamer-video-%{majorminor}.pc
%{_libdir}/libgstaudio-%{majorminor}.so
%{_libdir}/libgstapp-%{majorminor}.so
%{_libdir}/libgstcdda-%{majorminor}.so
%{_libdir}/libgstfft-%{majorminor}.so
%{_libdir}/libgstinterfaces-%{majorminor}.so
%{_libdir}/libgstnetbuffer-%{majorminor}.so
%{_libdir}/libgstpbutils-%{majorminor}.so
%{_libdir}/libgstriff-%{majorminor}.so
%{_libdir}/libgstrtp-%{majorminor}.so
%{_libdir}/libgstrtsp-%{majorminor}.so
%{_libdir}/libgsttag-%{majorminor}.so
%{_libdir}/libgstsdp-%{majorminor}.so
%{_libdir}/libgstvideo-%{majorminor}.so
%{_datadir}/gtk-doc/html/*
%{_datadir}/gir-1.0/GstApp-%{majorminor}.gir
%{_datadir}/gir-1.0/GstAudio-%{majorminor}.gir
%{_datadir}/gir-1.0/GstFft-%{majorminor}.gir
%{_datadir}/gir-1.0/GstInterfaces-%{majorminor}.gir
%{_datadir}/gir-1.0/GstNetbuffer-%{majorminor}.gir
%{_datadir}/gir-1.0/GstPbutils-%{majorminor}.gir
%{_datadir}/gir-1.0/GstRiff-%{majorminor}.gir
%{_datadir}/gir-1.0/GstRtp-%{majorminor}.gir
%{_datadir}/gir-1.0/GstRtsp-%{majorminor}.gir
%{_datadir}/gir-1.0/GstSdp-%{majorminor}.gir
%{_datadir}/gir-1.0/GstTag-%{majorminor}.gir
%{_datadir}/gir-1.0/GstVideo-%{majorminor}.gir

#----------------------------------------------------------------------------

### GNOME VFS 2 ###
%package -n %{bname}-gnomevfs
Summary:	GStreamer plug-ins for GNOME VFS input and output
Group:		System/Libraries
Requires:	gnome-vfs2 > 1.9.4.00
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(gnome-vfs-2.0)

%description -n %{bname}-gnomevfs
Plug-Ins for reading and writing through GNOME VFS.

%files -n %{bname}-gnomevfs
%{_libdir}/gstreamer-%{majorminor}/libgstgnomevfs.so

#----------------------------------------------------------------------------

### CDPARANOIA ###
%package -n %{bname}-cdparanoia
Summary:	Gstreamer plugin for CD audio input using CDParanoia IV
Group:		Sound
Requires:	%{name} = %{EVRD}
BuildRequires:	libcdda-devel

%description -n %{bname}-cdparanoia
Plugin for ripping audio tracks using cdparanoia under GStreamer

%files -n %{bname}-cdparanoia
%{_libdir}/gstreamer-%{majorminor}/libgstcdparanoia.so

#----------------------------------------------------------------------------

%if %{build_libvisual}
%package -n %{bname}-libvisual
Summary:	GStreamer visualisations plug-in based on libvisual
Group:		Video
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(libvisual-0.4)

%description -n %{bname}-libvisual
This plugin makes visualisations based on libvisual available for
GStreamer applications.

%files -n %{bname}-libvisual
%{_libdir}/gstreamer-%{majorminor}/libgstlibvisual.so
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gst-plugins-base-%{version}

#revert patch
%ifarch %{armx}
%patch4 -p1 -R
%endif

%build
%configure \
	--disable-dependency-tracking \
	--enable-experimental \
	--with-package-name='%{distribution} %{name} package' \
	--with-package-origin='%{disturl}' \
	--enable-libvisual
%make

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

%find_lang gst-plugins-base-%{majorminor}

# Clean out files that should not be part of the rpm.
# This is the recommended way of dealing with it for RH8
rm -f %{buildroot}%{_libdir}/gstreamer-%{majorminor}/*.la
rm -f %{buildroot}%{_libdir}/gstreamer-%{majorminor}/*.a
rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2150 |21cr|gstreamer0.10-plugins-gl-0.10.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.10
%define major 1
%define libname %mklibname gstgl %{api} %{major}
%define devname %mklibname gstgl %{api} -d

%define bname gstreamer%{api}
%define oname gst-plugins-gl

Summary:	Streamer OpenGL Plug-ins
Name:		%{bname}-plugins-gl
Version:	0.10.3
Release:	4
License:	LGPLv2+
Group:		Sound
Url:		http://gstreamer.freedesktop.org/
Source0:	http://gstreamer.freedesktop.org/src/%{oname}/%{oname}-%{version}.tar.bz2
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(clutter-1.0) >= 1.8
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10) >= 0.10.35
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(liboil-0.3)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libvisual-0.4)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(xcomposite)

%description
This module contains integration libraries and plug-ins for using OpenGL
within GStreamer pipelines. This module contains elements for, among others:
* output: glimagesink
* adapters: glupload, gldownload
* video processing: gldeinterlace, glcolorscale
* GL effects: glfiltersobel, glfilterblur, gleffects, others
* sources: gltestsrc.

%files -f %{oname}-%{api}.lang
%doc ChangeLog COPYING RE* NEWS
%{_libdir}/gstreamer-%{api}/libgstopengl.so
%{_libdir}/gstreamer-%{api}/libgstlibvisualgl.so

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libname}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.
This package contains the libraries.

%files -n %{libname}
%doc COPYING
%{_libdir}/libgstgl-%{api}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libgstgl-devel = %{EVRD}

%description -n %{devname}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new   
plugins.
This package contains the libraries and includes files necessary to develop
applications and plugins for GStreamer.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/libgstgl-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/gl/
%{_libdir}/pkgconfig/gstreamer-gl-%{api}.pc
%{_datadir}/gtk-doc/html/gst-plugins-gl-libs-%{api}
%{_datadir}/gtk-doc/html/gst-plugins-gl-plugins-%{api}

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%configure \
	--disable-static \
	--disable-rpath \
	--disable-gtk-doc

%make

%install
%makeinstall_std

%find_lang %{oname}-%{api}

# Clean out files that should not be part of the rpm
rm -f %{buildroot}%{_libdir}/gstreamer-%{api}/*.a
rm -f %{buildroot}%{_libdir}/*.a

%check
cd tests/check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2151 |21cr|gstreamer0.10-plugins-good-0.10.31-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	gst-plugins-good
%define api	0.10
%define bname	gstreamer%{api}
%bcond_with esd

%define schemas gstreamer-0.10

Summary:	GStreamer Streaming-media framework plug-ins
Name:		%{bname}-plugins-good
Version:	0.10.31
Release:	16
License:	LGPLv2+
Group:		Sound
URL:		http://gstreamer.freedesktop.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/gst-plugins-good/%{api}/%{oname}-%{version}.tar.xz
# See https://bugzilla.gnome.org/show_bug.cgi?id=681491
Patch0:		gst-plugins-good-0.10.31-linux3.6.patch
# See https://bugs.gentoo.org/show_bug.cgi?id=468618
Patch1:		gst-plugins-v4l2-0.10.31-linux-headers-3.9.patch
Patch2:		gst-plugins-good-0.10-include.patch
Patch3:		gst-plugins-good-0.10-c++.patch

BuildRequires:	GConf2
BuildRequires:	gstreamer%{api}-plugins-base
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	libaa-devel
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api})
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libv4l1)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(orc-0.4)
BuildRequires:	pkgconfig(shout)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
%ifarch %{ix86}
BuildRequires:	nasm => 0.90
BuildRequires:	valgrind
%endif

Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink
# gw this is the default http source:
Recommends:	%{bname}-soup
# some plugins moved from bad to good with release 0.10.23
Conflicts:	gstreamer0.10-plugins-bad < 0.10.19

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This package contains a set of plug-ins that are considered to have
good quality code, correct functionality, the preferred license (LGPL
for the plug-in code, LGPL or LGPL-compatible for the supporting
library). People writing elements should base their code on these
elements.

%files -f %{oname}-%{api}.lang
%doc AUTHORS COPYING README NEWS
%{_sysconfdir}/gconf/schemas/gstreamer-%{api}.schemas
%{_libdir}/gstreamer-%{api}/libgstalaw.so
%{_libdir}/gstreamer-%{api}/libgstannodex.so
%{_libdir}/gstreamer-%{api}/libgstalpha.so
%{_libdir}/gstreamer-%{api}/libgstalphacolor.so
%{_libdir}/gstreamer-%{api}/libgstapetag.so
%{_libdir}/gstreamer-%{api}/libgstaudiofx.so
%{_libdir}/gstreamer-%{api}/libgstaudioparsers.so
%{_libdir}/gstreamer-%{api}/libgstauparse.so
%{_libdir}/gstreamer-%{api}/libgstautodetect.so
%{_libdir}/gstreamer-%{api}/libgstavi.so
%{_libdir}/gstreamer-%{api}/libgstcairo.so
%{_libdir}/gstreamer-%{api}/libgstcutter.so
%{_libdir}/gstreamer-%{api}/libgstdebug.so
%{_libdir}/gstreamer-%{api}/libgstdeinterlace.so
%{_libdir}/gstreamer-%{api}/libgstefence.so
%{_libdir}/gstreamer-%{api}/libgsteffectv.so
%{_libdir}/gstreamer-%{api}/libgstflv.so
%{_libdir}/gstreamer-%{api}/libgstequalizer.so
%{_libdir}/gstreamer-%{api}/libgstflxdec.so
%{_libdir}/gstreamer-%{api}/libgstgconfelements.so
%{_libdir}/gstreamer-%{api}/libgstgdkpixbuf.so
%{_libdir}/gstreamer-%{api}/libgstgoom.so
%{_libdir}/gstreamer-%{api}/libgstgoom2k1.so
%{_libdir}/gstreamer-%{api}/libgsticydemux.so
%{_libdir}/gstreamer-%{api}/libgstid3demux.so
%{_libdir}/gstreamer-%{api}/libgstimagefreeze.so
%{_libdir}/gstreamer-%{api}/libgstinterleave.so
%{_libdir}/gstreamer-%{api}/libgstisomp4.so
%{_libdir}/gstreamer-%{api}/libgstjpeg.so
%{_libdir}/gstreamer-%{api}/libgstlevel.so
%{_libdir}/gstreamer-%{api}/libgstmatroska.so
%{_libdir}/gstreamer-%{api}/libgstmonoscope.so
%{_libdir}/gstreamer-%{api}/libgstmulaw.so
%{_libdir}/gstreamer-%{api}/libgstmultifile.so
%{_libdir}/gstreamer-%{api}/libgstmultipart.so
%{_libdir}/gstreamer-%{api}/libgstnavigationtest.so
%{_libdir}/gstreamer-%{api}/libgstossaudio.so
%{_libdir}/gstreamer-%{api}/libgstoss4audio.so
%{_libdir}/gstreamer-%{api}/libgstpng.so
%{_libdir}/gstreamer-%{api}/libgstreplaygain.so
%{_libdir}/gstreamer-%{api}/libgstrtp.so
%{_libdir}/gstreamer-%{api}/libgstrtpmanager.so
%{_libdir}/gstreamer-%{api}/libgstrtsp.so
%{_libdir}/gstreamer-%{api}/libgstshapewipe.so
%{_libdir}/gstreamer-%{api}/libgstshout2.so
%{_libdir}/gstreamer-%{api}/libgstsmpte.so
%{_libdir}/gstreamer-%{api}/libgstspectrum.so
%{_libdir}/gstreamer-%{api}/libgsttaglib.so
%{_libdir}/gstreamer-%{api}/libgstudp.so
%{_libdir}/gstreamer-%{api}/libgstvideo4linux2.so
%{_libdir}/gstreamer-%{api}/libgstvideobox.so
%{_libdir}/gstreamer-%{api}/libgstvideocrop.so
%{_libdir}/gstreamer-%{api}/libgstvideofilter.so
%{_libdir}/gstreamer-%{api}/libgstvideomixer.so
%{_libdir}/gstreamer-%{api}/libgstwavenc.so
%{_libdir}/gstreamer-%{api}/libgstwavparse.so
%{_libdir}/gstreamer-%{api}/libgstximagesrc.so
%{_libdir}/gstreamer-%{api}/libgsty4menc.so
%dir %{_datadir}/gstreamer-%{api}/
%dir %{_datadir}/gstreamer-%{api}/presets
%{_datadir}/gstreamer-%{api}/presets/*

#----------------------------------------------------------------------------

%package -n %{bname}-jack
Summary:	GStreamer plug-in for the Jack Sound Server
Group:		Sound
BuildRequires:	pkgconfig(jack)
Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink

%description -n %{bname}-jack
Plug-in for the JACK professional sound server.

%files -n %{bname}-jack
%{_libdir}/gstreamer-%{api}/libgstjack.so

#----------------------------------------------------------------------------

%package -n %{bname}-soup
Summary:	GStreamer HTTP plugin based on libsoup
Group:		System/Libraries
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(libsoup-2.4)

%description -n %{bname}-soup
Plug-in for HTTP access based on libsoup.

%files -n %{bname}-soup
%{_libdir}/gstreamer-%{api}/libgstsouphttpsrc.so

#----------------------------------------------------------------------------

%package -n %{bname}-pulse
Summary:	Pulseaudio plugin for GStreamer
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(libpulse)

%description -n %{bname}-pulse
This is a GStreamer audio output plugin using the Pulseaudio sound server.

%files -n %{bname}-pulse
%{_libdir}/gstreamer-%{api}/libgstpulse.so

#----------------------------------------------------------------------------

### LIBDV ###
%package -n %{bname}-dv
Summary:	GStreamer DV plug-in
Group:		Video
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(libdv)

%description -n %{bname}-dv
Plug-in for digital video support using libdv.

%files -n %{bname}-dv
%{_libdir}/gstreamer-%{api}/libgstdv.so

#----------------------------------------------------------------------------

%package -n %{bname}-speex
Summary:	Gstreamer plugin for encoding and decoding Ogg Speex audio files
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(speex)

%description -n %{bname}-speex
Plug-Ins for creating and playing Ogg Speex audio files.

%files -n %{bname}-speex
%{_libdir}/gstreamer-%{api}/libgstspeex.so

#----------------------------------------------------------------------------

### RAW1394 ###
%package -n %{bname}-raw1394
Summary:	GStreamer raw1394 Firewire plug-in
Group:		System/Libraries
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(libavc1394)
BuildRequires:	pkgconfig(libraw1394)
BuildRequires:	pkgconfig(libiec61883)

%description -n %{bname}-raw1394
Plug-in for digital video support using raw1394.

%files -n %{bname}-raw1394
%{_libdir}/gstreamer-%{api}/libgst1394.so

#----------------------------------------------------------------------------

### FLAC ###
%package -n %{bname}-flac
Summary:	GStreamer plug-in for FLAC lossless audio
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(flac)

%description -n %{bname}-flac
Plug-in for the free FLAC lossless audio format.

%files -n %{bname}-flac
%{_libdir}/gstreamer-%{api}/libgstflac.so

#----------------------------------------------------------------------------

%if %{with esd}
### ESD ###
%package -n %{bname}-esound
Summary:	Gstreamer plugin for ESD sound output
Group:		Sound
Obsoletes:	%{bname}-esd < %{version}-%{release}
Provides:	%{bname}-esd = %{version}-%{release}
Requires:	esound >= 0.2.8
BuildRequires:	pkgconfig(esound)
Requires:	%{bname}-plugins
Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink

%description -n %{bname}-esound
Output plugin for GStreamer for use with the esound package

%files -n %{bname}-esound
%{_libdir}/gstreamer-%{api}/libgstesd.so
%endif

#----------------------------------------------------------------------------

### AALIB ###
%package -n %{bname}-aalib
Summary:	Gstreamer plugin for Ascii-art output
Group:		Video
BuildRequires:	aalib-devel >= 1.3
Requires:	%{bname}-plugins

%description -n %{bname}-aalib
Plugin for viewing movies in Ascii-art using aalib library.

%files -n %{bname}-aalib
%{_libdir}/gstreamer-%{api}/libgstaasink.so

#----------------------------------------------------------------------------

%package -n %{bname}-caca
Summary:	Gstreamer plugin for Ascii-art output
Group:		Video
BuildRequires:	pkgconfig(caca)
Requires:	%{bname}-plugins

%description -n %{bname}-caca
Plugin for viewing movies in Ascii-art using caca library.

%files -n %{bname}-caca
%{_libdir}/gstreamer-%{api}/libgstcacasink.so

#----------------------------------------------------------------------------

%package -n %{bname}-wavpack
Summary:	Gstreamer plugin for encoding and decoding WavPack audio files
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(wavpack)

%description -n %{bname}-wavpack
Plug-Ins for creating and playing WavPack audio files.

%files -n %{bname}-wavpack
%{_libdir}/gstreamer-%{api}/libgstwavpack.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches

#rebuild configure for check C++ on arm, see patch3
%ifarch %{armx}
%config_update
%endif

%build
%configure  \
	--with-package-name='%{distribution} %{name} package' \
	--with-package-origin='%{disturl}' \
	--disable-dependency-tracking \
	--enable-experimental \
	--disable-hal
%make

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std GETTEXT_PACKAGE=%{oname}-%{api}
%find_lang %{oname}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2152 |21cr|gstreamer0.10-plugins-ugly-0.10.19-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.10
%define majorminor 0.10
%define bname gstreamer0.10
%define build_experimental 0
%{?_with_experimental: %{expand: %%global build_experimental 1}}

%define build_lame 1
%define build_x264 1
%define build_amrnb 1
%define build_amrwbdec 1

Summary:	GStreamer Streaming-media framework plug-ins
Name:		%{bname}-plugins-ugly
Version:	0.10.19
Release:	9
License:	LGPLv2+
Group:		Sound
Url:		http://gstreamer.freedesktop.org/
Source:		http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-%{version}.tar.xz
Patch0:		gstreamer-plugins-ugly-0.10.17-amr-linking.patch
Patch1:		gst-plugins-ugly-0.10.19-opencore.patch
Patch2:		gst-plugins-ugly-0.10-include.patch
# mugged from arch
Patch3:		gstreamer-plugins-ugly-0.10.19-cdio-0.90.patch
Patch4:		gst-plugins-ugly-0.10-c++.patch

%ifnarch %{mips} %{arm}
BuildRequires:	valgrind
%endif
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(id3tag)
%ifnarch %{armx}
BuildRequires:	pkgconfig(mad)
%endif
BuildRequires:	pkgconfig(orc-0.4) >= 0.4.5
Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This package contains a set of plug-ins that have good quality and
correct functionality, but distributing them might pose problems. The
license on either the plug-ins or the supporting libraries might not
be how the GStreamer authors like. The code might be widely known to
present patent problems.


%files -f gst-plugins-ugly-%{majorminor}.lang
%doc AUTHORS COPYING README NEWS
%{_libdir}/gstreamer-%{majorminor}/libgstasf.so
%{_libdir}/gstreamer-%{majorminor}/libgstdvdlpcmdec.so
%{_libdir}/gstreamer-%{majorminor}/libgstdvdread.so
%{_libdir}/gstreamer-%{majorminor}/libgstdvdsub.so
%{_libdir}/gstreamer-%{majorminor}/libgstiec958.so
%ifnarch %{armx}
%{_libdir}/gstreamer-%{majorminor}/libgstmad.so
%endif
%{_libdir}/gstreamer-%{majorminor}/libgstmpegaudioparse.so
%{_libdir}/gstreamer-%{majorminor}/libgstmpegstream.so
%{_libdir}/gstreamer-%{majorminor}/libgstrmdemux.so
%if %{build_experimental}
%{_libdir}/gstreamer-%{majorminor}/libgstsynaesthesia.so
%endif

#----------------------------------------------------------------------------

%if %{build_lame}
### LAME ###
%package -n %{bname}-lame
Summary:	GStreamer plug-in for encoding mp3 songs using lame
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	liblame-devel >= 3.89

%description -n %{bname}-lame
Plug-in for encoding mp3 with lame under GStreamer.

This package is in restricted as it violates some patents.

%files -n %{bname}-lame
%{_libdir}/gstreamer-%{majorminor}/libgstlame.so
%endif

#----------------------------------------------------------------------------

%if %{build_x264}
%package -n %{bname}-x264
Summary:	GStreamer plug-in for H264/AVC video encoding
Group:		Video
BuildRequires:	pkgconfig(x264)

%description -n %{bname}-x264
Plug-in for encoding H264/AVC video.

This package is in restricted as it violates some patents.

%files -n %{bname}-x264
%{_libdir}/gstreamer-%{majorminor}/libgstx264.so
%{_datadir}/gstreamer-%{majorminor}/presets/GstX264Enc.prs
%endif

#----------------------------------------------------------------------------

%if %{build_amrnb}
%package -n %{bname}-amrnb
Summary:	GStreamer plug-in for AMR-NB support
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(opencore-amrnb)

%description -n %{bname}-amrnb
Plug-in for decoding AMR-NB under GStreamer.

This package is in restricted as it violates some patents.

%files -n %{bname}-amrnb
%{_libdir}/gstreamer-%{majorminor}/libgstamrnb.so
%{_datadir}/gstreamer-%{majorminor}/presets/GstAmrnbEnc.prs
%endif

#----------------------------------------------------------------------------

%if %{build_amrwbdec}
%package -n %{bname}-amrwbdec
Summary:	GStreamer plug-in for AMR-WB decoding support
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(opencore-amrwb)

%description -n %{bname}-amrwbdec
Plug-in for decoding AMR-Wb under GStreamer.

This package is in restricted as it violates some patents.

%files -n %{bname}-amrwbdec
%{_libdir}/gstreamer-%{majorminor}/libgstamrwbdec.so
%endif

#----------------------------------------------------------------------------

### SIDPLAY ###
%package -n %{bname}-sid
Summary:	GStreamer Sid C64 music plugin
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	sidplay-devel => 1.36.0

%description -n %{bname}-sid
Plugin for playback of C64 SID format music files

%files -n %{bname}-sid
%{_libdir}/gstreamer-%{majorminor}/libgstsid.so

#----------------------------------------------------------------------------

### A52DEC ###
%package -n %{bname}-a52dec
Summary:	GStreamer VOB decoder plugin
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	a52dec-devel

%description -n %{bname}-a52dec
Plugin for decoding of VOB files

%files -n %{bname}-a52dec
%{_libdir}/gstreamer-%{majorminor}/libgsta52dec.so

#----------------------------------------------------------------------------

%package -n %{bname}-mpeg
Summary:	GStreamer plug-ins for MPEG video playback and encoding
Group:		Video
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(libmpeg2)

%description -n %{bname}-mpeg
Plug-ins for playing and encoding MPEG video.

%files -n %{bname}-mpeg
%{_libdir}/gstreamer-%{majorminor}/libgstmpeg2dec.so

#----------------------------------------------------------------------------

%package -n %{bname}-cdio
Summary:	GStreamer plug-in for audio CD playback
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(libcdio)
Conflicts:	%{bname}-plugins-good < 0.10.10

%description -n %{bname}-cdio
Plug-in for audio CD playback.

%files -n %{bname}-cdio
%{_libdir}/gstreamer-%{majorminor}/libgstcdio.so

#----------------------------------------------------------------------------

%package -n %{bname}-twolame
Summary:	GStreamer plug-in for MP2 encoding support
Group:		Sound
Requires:	%{bname}-plugins
BuildRequires:	pkgconfig(twolame)

%description -n %{bname}-twolame
Plug-in for encoding MP2 under GStreamer.

%files -n %{bname}-twolame
%{_libdir}/gstreamer-%{majorminor}/libgsttwolame.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gst-plugins-ugly-%{version}

autoconf

%build
%configure \
	--disable-dependency-tracking \
	--with-package-name='%{distribution} %{name} package' \
	--with-package-origin='%{disturl}' \
%if !%{build_lame}
	--disable-lame \
%endif
%if %{build_experimental}
	--enable-experimental
%endif

%make

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

%find_lang gst-plugins-ugly-%{majorminor}

rm -f %{buildroot}%{_libdir}/gstreamer-%{majorminor}/*.a
rm -f %{buildroot}%{_libdir}/*.a

%check
cd tests/check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2153 |21cr|gstreamer1.0-espeak-0.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Make a new package and keep the old one until gstreamer 0.10 fades out
%define	oldanme	gstreamer0.10-espeak

Name:		gstreamer1.0-espeak
Version:	0.5.0
Release:	2
Summary:	Simple gstreamer plugin to use espeak by way of sound source
License:	LGPLv2+
Group:		Sound
Url:		http://sugarlabs.org/go/DevelopmentTeam/gst-plugins-espeak
Source0:	http://download.sugarlabs.org/sources/honey/gst-plugins-espeak/gst-plugins-espeak-%{version}.tar.gz
Patch0:		gst-espeak-0.5.0-upgrade-example-to-gst-1.0.patch
Patch1:		gst-espeak-0.5.0-fix-event-misordering.patch
Patch2:		gst-espeak-0.5.0-stop-using-export_symbol_regex.patch
BuildRequires:	pkgconfig(espeak-ng)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
Requires:	espeak
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good

%description
Simple gstreamer plugin to use espeak by way of sound source. It was developed
to simplify espeak usage in Sugar Speak activity. This package only supports
gstreamer1.0: for gstreamer0.10 please use %{oldanme}.

%files
%doc AUTHORS COPYING NEWS README
%{_libdir}/gstreamer-1.0/*.so

#-----------------------------------------------------------------------------

%prep
%setup -qn gst-plugins-espeak-%{version}
%apply_patches


%build
# Needed by P2
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2154 |21cr|gstreamer1.0-plugins-entrans-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api 1.0

Summary:	Gstreamer video codec plugin based on libav
Name:		gstreamer%{api}-plugins-entrans
Version:	1.4.2
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://gentrans.sourceforge.net/
Source0:	http://downloads.sourceforge.net/gentrans/gst-entrans-%{version}.tar.xz
BuildRequires:	libtool
BuildRequires:	gtk-doc
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gstreamer-%{api}) >= %{version}
BuildRequires:	pkgconfig(gstreamer-base-%{api}) >= %{version}
BuildRequires:	pkgconfig(gstreamer-check-%{api}) >= %{version}
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api}) >= %{version}

%description
Video codec plugin for GStreamer, based on the libav libraries.

%files
%doc AUTHORS COPYING
%{_bindir}/entrans*
%{_bindir}/enplayer-%{api}
%{_libdir}/gstreamer-%{api}/libgstentransalsa.so
%{_libdir}/gstreamer-%{api}/libgstentransavidemux.so
%{_libdir}/gstreamer-%{api}/libgstentransentrans.so
%{_libdir}/gstreamer-%{api}/libgstentransmencoder.so
%{_libdir}/gstreamer-%{api}/libgstentranstranscode.so
%{_libdir}/gstreamer-%{api}/libgstentransvirtualdub.so
%{_libdir}/gstreamer-%{api}/libgstentransyuv4mpeg.so

#----------------------------------------------------------------------------

%prep
%setup -qn gst-entrans-%{version}


%build
autoreconf -vfi
%configure \
	--enable-debug \
	--disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2155 |21cr|gstreamermm-1.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ wrapper for GStreamer 1.x library
Name:		gstreamermm
Version:	1.10.0
Release:	3
License:	LGPLv2+
Group:		Sound
Url:		https://wiki.gnome.org/Projects/gstreamermm
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
Patch0:		gstreamermm-volatile.patch
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(cairomm-1.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(mm-common-util)
BuildRequires:	pkgconfig(pangomm-1.4)
BuildRequires:	pkgconfig(sigc++-2.0)

%description
GStreamermm is a C++ wrapper library for the multimedia library GStreamer 1.0
(http://gstreamer.freedesktop.org). It is designed to allow C++ development
of applications that work with multi-media.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ wrapper for GStreamer library
Group:		System/Libraries

%description -n %{libname}
GStreamermm is a C++ wrapper library for the multimedia library GStreamer 1.0
(http://gstreamer.freedesktop.org). It is designed to allow C++ development
of applications that work with multi-media.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libgstreamermm-%{api}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files needed for developing gstreamermm
applications.

%files -n %{devname}
%doc ChangeLog COPYING
%{_datadir}/devhelp/books/%{name}-%{api}
%doc %{_datadir}/doc/%{name}-%{api}
%{_includedir}/gstreamermm-%{api}
%{_libdir}/*.so
%{_libdir}/%{name}-%{api}
%{_libdir}/pkgconfig/*.pc

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
export GST_INSPECT=%{_bindir}/gst-inspect-1.0
%configure \
	--enable-shared \
	--disable-dependency-tracking
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2156 |21cr|gstreamer-plugin-fc-0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: gstreamer-plugin-fc
Summary: Future Composer plugin for GStreamer
Version: 0.2
Release: 6
License: GPLv2+
Group: Sound
URL: http://xmms-fc.sourceforge.net/
Source:	http://prdownloads.sourceforge.net/xmms-fc/%{name}-%{version}.tar.bz2
BuildRequires: gstreamer0.10-devel
BuildRequires: libfc14audiodecoder-devel
Requires: xmms

%description
This is an input plugin for GStreamer which can play back Future Composer
music files from AMIGA.

%package -n gstreamer0.10-fc
Summary: Future Composer plugin for GStreamer
Group: Sound

%description -n gstreamer0.10-fc
This is an input plugin for GStreamer which can play back Future Composer
music files from AMIGA.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
rm -f %buildroot%{_libdir}/*/*.la

%clean
rm -rf $RPM_BUILD_ROOT

%files -n gstreamer0.10-fc
%defattr(-,root,root)
%doc README ChangeLog
%{_libdir}/gstreamer-0.10/libgstfcdec.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2157 |21cr|gsutil-3.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility to save, restore and reboot Grandstream Budgetone phones
Name:		gsutil
Version:	3.0
Release:	8
License:	GPL
Group:		System/Servers
URL:		http://www.pkts.ca/gsutil.shtml
Source:		http://www.pkts.ca/%{name}-%{version}.tar.bz2
BuildArch:	noarch

%description
A utility to dump and restore the configuration of the Grandstream Budgetone
VOIP telephone, up to and including version 1.0.6.7 of the firmware.

%prep

%setup -q

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 gsutil %{buildroot}%{_bindir}/gsutil

%clean
rm -r %{buildroot}

%files 
%defattr(0644,root,root,0755)
%doc README Changelog gxp2000.template.txt
%attr(0755,root,root) %{_bindir}/gsutil

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2158 |21cr|gsynaptics-0.9.14-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for Synaptics touchpad driver
Name:		gsynaptics
Version:	0.9.14
Release:	11
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://gsynaptics.sourceforge.jp/
Source0:	http://globalbase.dl.sourceforge.jp/gsynaptics/28322/%{name}-%{version}.tar.gz
# non-corrupted icon from CVS
Source1:	http://cvs.sourceforge.jp/cgi-bin/viewcvs.cgi/*checkout*/gsynaptics/gsynaptics/data/touchpad.png
Patch0:		gsynaptics-0.9.14-do-not-set-zero.patch
Patch1:		gsynaptics-0.9.14-dot-fixes.patch
Patch2:		gsynaptics-0.9.14-fix-desktop-file.patch
Patch3:		gsynaptics-0.9.14-fix-docbook.patch
Patch4:		gsynaptics-0.9.14-build-filename.patch
Patch5:		gsynaptics-0.9.14-format-security.patch
# (cg) Some patches from fedora
Patch100:	gsynaptics-0.9.14-fix-tap-statecheck.patch
Patch101:	gsynaptics-0.9.14-enable-tapping.patch
Patch102:	gsynaptics-0.9.14-dont-reset-taptime.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	perl(XML::Parser)

%description
GSynaptics is a setting tool for Synaptics touchpad driver.

%files -f %{name}.lang
%defattr(-,root,root)
%doc README TODO
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnome/autostart/%{name}-init.desktop
%doc %{_datadir}/gnome/help/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*.1*
%{_datadir}/pixmaps/touchpad.png

#----------------------------------------------------------------------------

%prep
%setup -q
cp -f %{SOURCE1} data
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%patch100 -p1
%patch101 -p1
%patch102 -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2159 |21cr|gtetrinet-0.7.11-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	TetriNET game client for Linux
Name:		gtetrinet
Version:	0.7.11
Release:	11
License:	GPLv2+
Group:		Games/Arcade
Source:		ftp://ftp.gnome.org/pub/gnome/sources/%{name}/0.7/%{name}-%{version}.tar.bz2
URL:		http://gtetrinet.sourceforge.net/
Patch0:     gtetrinet-0.7.11-fix_default_server.diff
Patch1:     gtetrinet-0.7.11-fix_format_error.diff 
Buildrequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:  perl-XML-Parser
BuildRequires:	imagemagick
Requires(post):		GConf2 >= 2.3.3
Requires(preun):		GConf2 >= 2.3.3

%description
GTetrinet is a client program for the popular TetriNET game, a multiplayer
tetris game that is played over the internet. It is written in GTK.
(If you don't know what TetriNET is, check out tetrinet.org)

Its features include:
  * Fully network compatible with Tetrinet v1.13 for Win95/98/NT
  * Theme support with sound
  * Spectator support on Tetrinet-X servers with the qirc patch by Drslum.


%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
%configure --enable-detach --enable-ipv6
%make

%install
rm -fr $RPM_BUILD_ROOT
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

# icon
mkdir -p $RPM_BUILD_ROOT%{_iconsdir} \
	 $RPM_BUILD_ROOT%{_liconsdir} \
	 $RPM_BUILD_ROOT%{_miconsdir}
convert -geometry 48x48 gtetrinet.png $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png
convert -geometry 32x32 gtetrinet.png $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
convert -geometry 16x16 gtetrinet.png $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png

# menu
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=GTetrinet
Comment=TetriNET game client for Linux
Exec=%_gamesbindir/gtetrinet
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

%find_lang %{name}

%if %mdkversion < 200900
%post
%{update_menus}
%post_install_gconf_schemas gtetrinet
%endif

%preun
%preun_uninstall_gconf_schemas gtetrinet

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_gamesbindir}/*
%{_datadir}/gtetrinet
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*
%{_mandir}/man?/*
%{_sysconfdir}/gconf/schemas/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2160 |21cr|gthumb-3.12.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define _disable_ld_no_undefined 1

Summary:	An image viewer and browser for GNOME
Name:		gthumb
Version:	3.12.6
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://download.gnome.org/sources/gthumb
Source0:	https://download.gnome.org/sources/gthumb/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	appstream
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libbrasero-burn3)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenraw-0.1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsoup-gnome-2.4)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	yelp-tools
Requires:	gsettings-desktop-schemas

%description
gThumb lets you browse your hard disk, showing you thumbnails of image files.
It also lets you view single files (including GIF animations), add comments to
images, organize images in catalogs, print images, view slideshows, set your
desktop background, and more.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/gthumb
%{_datadir}/icons/hicolor/*/apps/*
%{_libdir}/%{name}/extensions/*.extension
%{_libdir}/%{name}/extensions/*.so
%{_libexecdir}/%{name}/video-thumbnailer
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package devel
Summary:	Header files for building %{name} extensions
Group:		Development/C

%description devel
gThumb lets you browse your hard disk, showing you thumbnails of image files.
It also lets you view single files (including GIF animations), add comments to
images, organize images in catalogs, print images, view slideshows, set your
desktop background, and more.

%files devel
%license COPYING
%{_datadir}/aclocal/gthumb.m4
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dlibchamplain=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2161 |21cr|gtimelog-0.11.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Gtk+ time tracking application
Name:		gtimelog
Version:	0.11.3
Release:	1
License:	GPLv2
Group:		Office
Url:		https://gtimelog.org/
Source0:	https://github.com/gtimelog/gtimelog/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-gi
BuildArch:	noarch

%description
GTimeLog is a small Gtk+ app for keeping track of your time. It's main goal
is to be as unintrusive as possible.

%files
%doc CHANGES.rst CONTRIBUTING.rst gtimelog.rst README.rst TODO.rst
%doc src/gtimelog/CONTRIBUTORS.rst
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_datadir}/applications

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
		%{name}.desktop

#icon
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps/
cp src/%{name}/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2162 |21cr|gtk+-1.2.10-67
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs for X
Name:		gtk+
Version:	1.2.10
Release:	67
License:	LGPL
Group:		System/Libraries
Url:		http://www.gtk.org
Source0:	ftp://ftp.gimp.org/pub/gtk/v1.2/gtk+-%{version}.tar.bz2
Source1:	gtk+-1.2.10-vi.po.bz2
# (fc) 1.2.10-2mdk ximian patch changing drawing when no shadow is set for menubar
Patch2:		gtkmenubar-noborder.patch
# (pablo) better gtkrc definitions
Patch3:		gtk+-1.2.10-gtkrc_files.patch
# (fc) 1.2.10-8mdk GNOME CVS patch correcting bad focus (seen in Evolution and gnomecc)
Patch4:		gtk+-1.2.10-focus.patch
# (pablo) load locale based gtkrc (GNOME CVS)
Patch5:		gtk+-1.2.10-rclocale.patch
# (fc) 1.2.10-10mdk fix alignement warning on ia64 (Rawhide)
Patch6:		gtk+-1.2.10-alignment.patch
# (fc) 1.2.10-10mdk Improve exposure compression (GNOME CVS)
Patch7:		gtk+-1.2.10-expose.patch
# (fc) 1.2.10-10mdk Don't screw up CTEXT encoding for UTF-8 (Rawhide)
Patch8:		gtk+-1.2.10-ctext.patch
# (fc) 1.2.10-10mdk Accept KP_Enter as a synonym for Return everywhere (Rawhide)
Patch9:		gtk+-1.2.10-kpenter.patch
# (fc) 1.2.10-10mdk Allow theme switching to work properly when no windows are realized (Rawhide)
Patch10:	gtk+-1.2.10-themeswitch.patch
# (fc) 1.2.10-10mdk Fix crash when switching themes (Rawhide)
Patch11:	gtk+-1.2.10-pixmapref.patch
# (fc) 1.2.10-10mdk Fix computation of width of missing characters (Rawhide)
Patch12:	gtk+-1.2.10-missingchar.patch
# (fc) 1.2.10-20mdk set _NET_WM_PID on gdkwindow (GNOME CVS)
Patch15:	gtk+-1.2.10-netwmpid.patch
# (fc) 1.2.10-22mdk fix Fix check of wrong variable on gtklabel (GNOME CVS)
Patch16:	gtk+-1.2.10-labelvariable.patch
# (fc) 1.2.10-22mdk fix GtkCombo occasionally segfaults after content is changed and list shown (GNOME CVS) Bugzilla 58024
Patch17:	gtk+-1.2.10-gtklist.patch
# (fc) 1.2.10-22mdk option menu doesn't appear centered when applied a border (GNOME CVS) Bugzilla 54585
Patch18:	gtk+-1.2.10-border.patch
# (fc) 1.2.10-22mdk DnD code doesn't notice new windows (GNOME CVS) Bugzilla 56349
Patch19:	gtk+-1.2.10-dndnewwindow.patch
# (fc) 1.2.10-26mdk don't set -L/usr/lib in gtk-config
Patch20:	gtk+-1.2.10-libdir.patch
# (fc) 1.2.10-27mdk Fix file selection delete-dir when changing directory problem
# also, fix memory corruption problem when changing directories. (Rawhide)
Patch21:	gtk+-1.2.10-deletedir.patch 
# fc) 1.2.10-27mdk Improve warning for missing fonts (Rawhide)
Patch22:	gtk+-1.2.10-fontwarning.patch
# (fc) 1.2.10-27mdk Allow themes to make scrollbar trough always repaint (rawhide)
Patch23:	gtk+-1.2.10-troughpaint.patch
# (fc) 1.2.10-28mdk Fix a crash that can happen in some apps when the current
# locale is not supported by XLib. (rawhide)
Patch24:	gtk+-1.2.10-localecrash.patch
# (fc) 1.2.10-29mdk fix loop and crash in file selector when / is not readable (bug #90)
Patch25:	gtk+-1.2.10-fileselectorfallback.patch
# (fc) 1.2.10-30mdk change default colors to match GTK2 2.2 colors
Patch26:	gtk+-1.2.10-defaultcolor.patch
Patch27:	gtk+-1.2.10-fix-underquoted-calls.patch
# (fc) 1.2.10-45mdv ugly hack to skip argb visuals
Patch28:	gtk+-1.2.10-argb.patch
# (from fedora)
Patch29:	gtk+-1.2.10-gtkgdkdep.patch

BuildRequires:	autoconf2.1
BuildRequires:	automake1.4
BuildRequires:	libtool
BuildRequires:	pkgconfig(glib)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)

%description
The gtk+ package contains the GIMP ToolKit (GTK+), a library for creating
graphical user interfaces for the X Window System.  GTK+ was originally
written for the GIMP (GNU Image Manipulation Program) image processing
program, but is now used by several other programs as well. This is GTK+ 
1.2, a legacy version. The current version is GTK+ 2.

#----------------------------------------------------------------------------

%package common
Summary:	Common data for gtk+ library
Group:		System/Libraries
Conflicts:	%{libname} < 1.2.10-56

%description common
Common data for gtk+ library.

%files common -f %{name}.lang
%{_datadir}/themes
%dir %{_sysconfdir}/gtk
%config(noreplace) %{_sysconfdir}/gtk/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for gtk+
Group:		System/Libraries
Provides:	gtk+ = %{EVRD}
Requires:	%{name}-common >= %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with gtk+.

%files -n %{libname}
%{_libdir}/lib*.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for GTK+ (GIMP ToolKit) applications
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-common >= %{EVRD}
Provides:	gtk-devel = %{EVRD}
Provides:	gtk+-devel = %{EVRD}
Provides:	libgtk+-devel = %{EVRD}
Provides:	gtk+%{major}-devel = %{EVRD}

%description -n %{devname}
The libgtk+1.2-devel package contains the static libraries and header files
needed for developing GTK+ (GIMP ToolKit) applications. The %{devname}
package contains GDK (the General Drawing Kit, which simplifies the interface
for writing GTK+ widgets and using GTK+ widgets in applications), and GTK+
(the widget set). Install %{devname} if you need to develop GTK+ 
applications. This is GTK+ 1.2, a legacy version. The current version is
GTK+ 2.

%files -n %{devname}
%doc docs/*.txt AUTHORS ChangeLog NEWS* README* TODO docs/html
%{_libdir}/lib*.so
%{_mandir}/man1/*
%{_infodir}/g?k.info*
%{_includedir}/*
%{_datadir}/aclocal/*
%{_bindir}/gtk-config
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch2 -p1 -b .noshadow
%patch3 -p1 -b .gtkrc
%patch4 -p1 -b .focus
%patch5 -p1 -b .rclocale
%patch6 -p1 -b .ia64
%patch7 -p1 -b .expose
%patch8 -p1 -b .ctext
%patch9 -p1 -b .kpenter
%patch10 -p1 -b .themeswitch
%patch11 -p1 -b .pixmapref
%patch12 -p1 -b .missingchar
%patch15 -p1 -b .netwmpid
%patch16 -p1 -b .labelvariable
%patch17 -p1 -b .gtklist
%patch18 -p1 -b .border
%patch19 -p1 -b .dndnewwindow
%patch20 -p1 -b .libdir
%patch21 -p1 -b .deletedir
%patch22 -p1 -b .fontwarning
%patch23 -p1 -b .troughpaint
%patch24 -p1 -b .localecrash
%patch25 -p1 -b .fileselectorfallback
%patch26 -p1 -b .defaultcolor
%patch27 -p1 -b .underquoted
%patch28 -p1 -b .argb
%patch29 -p1 -b .gdkdep

# vi.po is not encoded in utf-8
bzcat %{SOURCE1} > po/vi.po

libtoolize --install --force
# needed by patch 3, 29
# it doesn't work with 2.5. I tested. -AdamW 2007/07
autoreconf-2.13 -f -i

%build
%define Werror_cflags %{nil}
%global optflags %{optflags} -fgnu89-inline
%configure \
	--with-xinput=xfree \
	--with-native-locale
%make LIBTOOL=%{_bindir}/libtool

%install
%makeinstall_std LIBTOOL=%{_bindir}/libtool

# create a default theme file
cat << EOF > %{buildroot}%{_sysconfdir}/gtk/gtkrc
include "/usr/share/themes/Galaxy/gtk/gtkrc"
EOF

%find_lang %{name}

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2163 |21cr|gtkam-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GPhoto2 GTK+ frontend
Name:		gtkam
Version:	1.0
Release:	3
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/gphoto/gtkam
Source0:	https://downloads.sourceforge.net/gphoto/%{name}-%{version}.tar.bz2
# file in the tarball is corrupt: replaced from upstream SVN. Drop
# with any release after 0.1.14. -AdamW 2007/07
Patch0:		gtkam-omf-install.patch
Patch1:		gtkam_wformat.patch
BuildRequires:	autoconf
BuildRequires:	gnome-common
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	scrollkeeper
BuildRequires:	gettext-devel
BuildRequires:	libexif-gtk-devel
BuildRequires:	pkgconfig(bonobo-activation-2.0)
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(libbonobo-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(popt)
Requires:	gphoto2
Requires(post,postun):	scrollkeeper

%description
GTKam is a fine interface for a wide variety of digital cameras.

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS ChangeLog INSTALL NEWS README TODO
%license COPYING
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/dynamic/launchers/camera/%{name}.desktop
%{_datadir}/applications/*
%{_datadir}/images/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}-camera.png
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_mandir}/*/%{name}*

%post
update-alternatives --install %{_sysconfdir}/dynamic/launchers/camera/kde.desktop camera.kde.dynamic %{_sysconfdir}/dynamic/launchers/camera/%{name}.desktop 50
update-alternatives --install %{_sysconfdir}/dynamic/launchers/camera/gnome.desktop camera.gnome.dynamic %{_sysconfdir}/dynamic/launchers/camera/%{name}.desktop 50

%postun
if [ $1 = 0 ]; then
	update-alternatives --remove camera.kde.dynamic %{_sysconfdir}/dynamic/launchers/camera/%{name}.desktop
	update-alternatives --remove camera.gnome.dynamic %{_sysconfdir}/dynamic/launchers/camera/%{name}.desktop
fi

#------------------------------------------------------------------

%package gimp-plugin
Summary:	GIMP-plug-in for digital camera access through GPhoto2
Group:		Graphics
Requires:	%{name} = %{EVRD} 
Requires:	gimp

%description gimp-plugin
GIMP-plug-in for direct digital camera access through GPhoto2.

%files gimp-plugin
%{_libdir}/gimp/*/plug-ins/%{name}-gimp

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make WARN_CFLAGS=""

%install
%makeinstall_std

%find_lang %{name} --with-gnome

# icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
cp %{buildroot}%{_datadir}/pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 %{buildroot}%{_datadir}/pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{buildroot}%{_datadir}/pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# menu stuff
mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Name=GTKam
Comment=Access digital cameras (via GPhoto2)
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
Categories=GTK;Graphics;Photography;
EOF

rm -rf %{buildroot}%{_docdir}/%{name}
rm -rf %{buildroot}/%{_datadir}/applications/gtkam.desktop

mkdir -p %{buildroot}%{_sysconfdir}/dynamic/launchers/camera
cat > %{buildroot}%{_sysconfdir}/dynamic/launchers/camera/%{name}.desktop << EOF
[Desktop Entry]
Name=GTKam
Comment=GNU Digital Camera Program
TryExec=%{_bindir}/gtkam
Exec=%{_bindir}/gtkam
Terminal=false
Icon=gtkam
Type=Application
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2164 |21cr|gtkatlantic-0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Monopoly-like game client
Name:		gtkatlantic
Version:	0.6.3
Release:	1
License:	GPLv2+
Group:		Games/Boards
URL:		http://gtkatlantic.gradator.net/
Source:		http://gtkatlantic.gradator.net/downloads/v0.6/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	png-devel
BuildRequires:	libxml2-devel

%description
monopd is a dedicated game server daemon for playing Monopoly-like board
games. Clients connect to the server and communicate using short commands
and XML messages.

%prep
%setup -q

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=strategy_section
Comment=Play Monopoly
Categories=Game;BoardGame;
Name=GtkAtlantic
EOF

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_gamesdatadir}/applications/gtkatlantic.desktop
%{_gamesdatadir}/icons/hicolor/*/apps/gtkatlantic.*
%{_gamesdatadir}/pixmaps/gtkatlantic.xpm
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2165 |21cr|gtkcairo-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} %{major} -d

Summary:	Gtk widget wrapper for Cairo surfaces
Name:		gtkcairo
Version:	0.3
Release:	10
License:	LGPL
Group:		System/Libraries
Url:		http://cairographics.org/GtkCairo
Source0:	http://cairographics.org/snapshots/%{name}-%{version}.tar.bz2
Patch0:		gtkcairo-0.3-cairo.patch
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
GtkCairo is a library that provides a new widget to be used in your
GTK+ program: a Cairo surface.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cairo - multi-platform 2D graphics library
Group:		System/Libraries
Provides:	gtkcairo = %{EVRD}

%description -n %{libname}
GtkCairo is a library that provides a new widget to be used in your
GTK+ program: a Cairo surface.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README NEWS
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Cairo library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for GtkCairo library.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .cairo

%build
export CFLAGS="%{optflags} -I`pwd`/%{name}"
%configure
%make

%install
%makeinstall


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2166 |21cr|gtk-chtheme-0.3.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gtk-chtheme
Version:	0.3.1
Release:	11
Summary:	Utility to preview and change GTK 2 themes
Source0:		%{name}-%{version}.tar.bz2
Source1:	gtk.png
Patch1:		gtk-chtheme-0.3.1-fix-build-with-gtk.patch
Patch2:		gtk-chtheme-0.3.1-dont-strip-binary-too-early.patch
Patch3:		gtk-chtheme-0.3.1-replace_deprecated_GtkFunction.patch
Patch4:		gtk-chtheme-0.3.1-fix_linking.patch
URL:		http://plasmasturm.org/programs/gtk-chtheme/
Group:		Graphical desktop/GNOME
License:	GPLv2
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	imagemagick

%description
Gtk-chtheme allows you to change the Gtk+ 2.0 theme when not using GNOME.

%prep
%setup -q
%patch1 -p1 -b .gtk
%patch2 -p1 -b .strip
%patch3 -p0 -b .GtkFunction
%patch4 -p0 -b .linking

%build
%setup_compile_flags
%make PREFIX=%{_prefix} LDFLAGS="%{ldflags}"

%install
%makeinstall_std

# menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Change GTK-2.0 theme
Exec=%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=GTK;Utility;DesktopSettings;
EOF

# icons
cp %{SOURCE1} %{name}.png
mkdir -p %{buildroot}/%{_liconsdir}
convert %{name}.png -resize 48x48 %{buildroot}/%_liconsdir/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert %{name}.png -resize 32x32 %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert %{name}.png -resize 16x16 %{buildroot}/%{_miconsdir}/%{name}.png

# FDo icons
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/64x64/apps
convert %{name}.png -resize 64x64 %{buildroot}/%{_iconsdir}/hicolor/64x64/apps/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/48x48/apps
convert %{name}.png -resize 48x48 %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/32x32/apps
convert %{name}.png -resize 32x32 %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/16x16/apps
convert %{name}.png -resize 16x16 %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png

%files
%defattr(-,root,root)
%doc ChangeLog COPYING
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2167 |21cr|gtk-css-engine-0.3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name}

%define gtkbinaryver %(if $([ -x %{_bindir}/pkg-config ] && pkg-config --exists gtk+-2.0); then pkg-config --variable=gtk_binary_version gtk+-2.0; else echo 0; fi)

Summary: CSS engine for Gtk 2.x
Name:    gtk-css-engine
Version: 0.3.1
Release: 5
URL: http://bzr-playground.gnome.org/~robsta/gtk-css-engine/
Source0: http://ftp.gnome.org/pub/GNOME/sources/%name/%{name}-%{version}.tar.bz2
License: LGPLv2+
Group: 	 Graphical desktop/GNOME
Requires: %{libname} = %{version}
BuildRequires: pkgconfig(gtk+-2.0) >= 2.12
BuildRequires: librsvg-devel >= 2.16
BuildRequires: libccss-devel >= 0.5.0
BuildRequires: libccss >= 0.5.0

%description
This is a GTK theme engine that is configured with Cascading Style
Sheets instead of gtkrc files.

%package -n %{libname}
Summary: Library files for %{name}
Group: System/Libraries

%description -n %{libname}
Library files for %{name}.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%defattr(-,root,root)
%doc README NEWS AUTHORS
%{_sysconfdir}/gtk-css-engine/user-agent.css
%{_datadir}/themes/*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/*.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2168 |21cr|gtkd-3.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname GtkD

%define api 3
%define major 0
%define libgstreamerd %mklibname gstreamerd %{api} %{major}
%define libgtkd %mklibname gtkd %{api} %{major}
%define libgtkdsv %mklibname gtkdsv %{api} %{major}
%define libpeasd %mklibname peasd %{api} %{major}
%define libvted %mklibname vted %{api} %{major}
%define devname %mklibname gtkd -d

Summary:	GtkD is a D binding and OO wrapper of GTK+
Name:		gtkd
Version:	3.10.0
Release:	3
License:	LGPLv2+
Group:		Development/GNOME and GTK+
Url:		http://gtkd.org/
Source0:	https://gtkd.org/Downloads/sources/%{oname}-%{version}.zip
Patch0:		gtkd-3.5.1-no-ldconfig.patch
# gtksourceview-4.8 provides pkgconfig(gtksourceview-4)
Patch1:		gtkd-gtksourceview4.patch
BuildRequires:	ldc
BuildRequires:	phobos2-ldc-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(vte-2.91)
# Explicit require since gtkd use dlopen internally so rpm can't detect this.
%define dlopenreq() %([ -e %{_libdir}/lib%{1}.so ] && rpm -qf --qf '%%{name}' $(readlink -f %{_libdir}/lib%{1}.so) 2>/dev/null || echo %{name})
Requires:	%dlopenreq atk-1.0
Requires:	%dlopenreq cairo
Requires:	%dlopenreq curl
Requires:	%dlopenreq gdk_pixbuf-2.0
Requires:	%dlopenreq GL
Requires:	%dlopenreq GLU
Requires:	%dlopenreq gstreamer-1.0
Requires:	%dlopenreq gtk-3
Requires:	%dlopenreq gtksourceview-4
Requires:	%dlopenreq peas-1.0
Requires:	%dlopenreq peas-gtk-1.0
Requires:	%dlopenreq pango-1.0
Requires:	%dlopenreq vte-2.91
# ldc not builded on i686, e2k and riscv
ExcludeArch:	%{ix86} %{e2k} %{riscv}
#BuildRequires:	libLLVM-12.so()(64bit)

%description
GtkD is a D binding and OO wrapper of GTK+ and is released on the LGPL license.

%files

#----------------------------------------------------------------------------

%package -n %{libgstreamerd}
Summary:	Shared library for D bindings of GTK+
Group:		System/Libraries
Requires:	%{name}

%description -n %{libgstreamerd}
Shared library for D bindings of GTK+.

%files -n %{libgstreamerd}
%{_libdir}/libgstreamerd-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgtkd}
Summary:	Shared library for D bindings of GTK+
Group:		System/Libraries
Requires:	%{name}

%description -n %{libgtkd}
Shared library for D bindings of GTK+.

%files -n %{libgtkd}
%{_libdir}/libgtkd-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpeasd}
Summary:	Shared library for D bindings of GTK+
Group:		System/Libraries
Requires:	%{name}

%description -n %{libpeasd}
Shared library for D bindings of GTK+.

%files -n %{libpeasd}
%{_libdir}/libpeasd-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgtkdsv}
Summary:	Shared library for D bindings of GTK+
Group:		System/Libraries
Requires:	%{name}

%description -n %{libgtkdsv}
Shared library for D bindings of GTK+.

%files -n %{libgtkdsv}
%{_libdir}/libgtkdsv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libvted}
Summary:	Shared library for D bindings of GTK+
Group:		System/Libraries
Requires:	%{name}

%description -n %{libvted}
Shared library for D bindings of GTK+.

%files -n %{libvted}
%{_libdir}/libvted-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for D bindings of GTK+
Group:		Development/GNOME and GTK+
Requires:	%{libgstreamerd} = %{EVRD}
Requires:	%{libgtkdsv} = %{EVRD}
Requires:	%{libgtkd} = %{EVRD}
Requires:	%{libpeasd} = %{EVRD}
Requires:	%{libvted} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on Baloo.

%files -n %{devname}
%{_includedir}/d/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------


%prep
%autosetup -p1 -c

%build
%make \
	prefix=%{_prefix} \
	datadir=%{_libdir} \
	libdir=%{_lib} \
	shared-gstreamer \
	shared-libs \
	shared-vte

%install

%make \
	DESTDIR=%{buildroot} \
	prefix=%{_prefix} \
	datadir=%{_libdir} \
	libdir=%{_lib} \
	install-shared \
	install-headers \
	install-shared-gstreamer \
	install-headers-gstreamer \
	install-shared-vte \
	install-headers-vte

# Create missing directory
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp *.pc %{buildroot}%{_libdir}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2169 |21cr|gtkdatabox-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	A Gtk+-Widget for Fast Data Display
Name:		gtkdatabox
Version:	1.0.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.eudoxos.net/gtk/gtkdatabox/
Source0:	https://downloads.sourceforge.net/project/gtkdatabox/gtkdatabox-1/gtkdatabox-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	gtk-doc

%description
GtkDatabox is a widget for the Gtk+-library designed to display large
amounts of numerical data fast and easy. One or more data sets of
thousands of data points (X and Y coordinate) may be displayed and
updated in split seconds. The widget is therfore used in many scientific
and private projects that need to show quickly changing data "live".

GtkDatabox offers the ability to zoom into and out of the data and to
navigate through your data by scrolling. In addition to rulers and
a simple coordinate cross, GtkDatabox now also allows you to add one
(or even more) configurable grids like on an oscilloscope.

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	A Gtk+-Widget for Fast Data Display
Group:		System/Libraries

%description -n	%{libname}
GtkDatabox is a widget for the Gtk+-library designed to display large
amounts of numerical data fast and easy.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*
#--------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
This package contains all necessary files to compile or develop
programs/libraries that use %{name}.

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/%{name}-1

#--------------------------------------------------------------------
%prep
%autosetup -p1

%build
%configure --disable-static LIBS="-lm"
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2170 |21cr|gtkdialog-0.8.5a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	GUI creation tool for shells and arbitrary interpreters
Name:		gtkdialog
Version:	0.8.5a
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		https://github.com/puppylinux-woof-CE/gtkdialog
Source0:	https://github.com/puppylinux-woof-CE/gtkdialog/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		gtkdialog-disable-doc.patch
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)

Requires:	%{name}-icons = %{EVRD}
Provides:	gtkdialog-gtk3 = %{EVRD}

%description
The gtkdialog is uses an XML like simple language as a GUI description
language to produce dialog boxes. The program can be used with shells
and arbitrary interpreters. Example programs included for BASH and AWK.

%files
%{_bindir}/%{name}

#--------------------------------------------------------------------------

%package gtk2
Summary:	GTK2 GUI creation tool for shells and arbitrary interpreters
Group:		Development/Tools
Requires:	%{name}-icons = %{EVRD}

%description gtk2
The gtkdialog is uses an XML like simple language as a GUI description
language to produce dialog boxes. The program can be used with shells
and arbitrary interpreters. Example programs included for BASH and AWK.

%files gtk2
%{_bindir}/%{name}-gtk2

#--------------------------------------------------------------------------

%package icons
Summary:	GUI creation tool for shells and arbitrary interpreters
Group:		Development/Tools

%description icons
The gtkdialog is uses an XML like simple language as a GUI description
language to produce dialog boxes. The program can be used with shells
and arbitrary interpreters. Example programs included for BASH and AWK.

%files icons
%doc AUTHORS NEWS TODO ChangeLog examples
%{_iconsdir}/hicolor/*/apps/%{name}.png

#--------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}
sed -i 's|usr/local|usr|' examples/miscellaneous/standalone_file

./autogen.sh

mkdir -p ../gtk3
cp -rd ./* ../gtk3

%build
# gtk2
%configure --disable-gtk3 --with-gtkapi=2.0
%make

# gtk3
pushd ../gtk3
%configure --enable-gtk3 --with-gtkapi=3.0
%make
popd

%install
# gtk2
%makeinstall_std UPDATE_ICON_CACHE=true
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-gtk2

# gtk3
pushd ../gtk3
%makeinstall_std UPDATE_ICON_CACHE=true
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2171 |21cr|gtkdive-0.71-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Buehlmann ZH-L16 model diving simulation
Name:		gtkdive
Version:	0.71
Release:	11
License:	GPL
Group:		Sciences/Other
Url:		http://mattzz.dyndns.org/twiki/bin/view/Projects/GtkDive
Source0:	http://mattzz.dyndns.org/twiki/pub/Projects/GtkDive/%{name}-%{version}.tar.bz2
Source1:	%{name}-16.png.bz2
Source2:	%{name}-32.png.bz2
Source3:	%{name}-48.png.bz2
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
This program was written to learn about the Buehlmann ZH-L16 model that deals
with accumulation of inert gas in body tissues. Currently it compiles for
GNU/Linux.

Do not use this to plan any dive!

%files
%doc AUTHORS COPYING INSTALL ChangeLog README
%{_bindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
bzcat %{SOURCE1} > %{name}-16.png
bzcat %{SOURCE2} > %{name}-32.png
bzcat %{SOURCE3} > %{name}-48.png

%build
%configure LIBS="-lm"
%make

%install
%makeinstall

# icons
install -D -m 644 %{name}-48.png %{buildroot}%{_liconsdir}/%{name}.png 
install -D -m 644 %{name}-32.png %{buildroot}%{_iconsdir}/%{name}.png 
install -D -m 644 %{name}-16.png %{buildroot}%{_miconsdir}/%{name}.png 

# menu entry

install -d -m 755 %{buildroot}%{_datadir}/applications
cat >  %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=GtkDive
Comment=Buehlmann ZH-L16 model diving simulation
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=GTK;Science;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2172 |21cr|gtk-equinox-engine-1.50-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	equinox-gtk-engine

%define libname %mklibname %{name}

%define gtkbinaryver %(if $([ -x %{_bindir}/pkg-config ] && pkg-config --exists gtk+-2.0); then pkg-config --variable=gtk_binary_version gtk+-2.0; else echo 0; fi)

Summary:	Equinox engine for Gtk 2.x
Name:		gtk-equinox-engine
Version:	1.50
Release:	4
Source0:	%{tarname}.tar.gz
Source1:	equinox-themes.tar.gz
patch1:		equinox-gtk-engine-1.50.glibh.patch
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.gnome-look.org
Requires:	%{libname} = %{version}
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.12

%description
A heavily modified version of the beautiful Aurora engine.

%package -n %{libname}
Summary:    Library files for %{name}
Group:	    System/Libraries
Provides:   %{libname} = %{version}
Requires:   gtk+2.0

%description -n %{libname}
Library files for %{name}.

%prep
%setup -q -n equinox-1.50
%apply_patches
chmod u-x src/*

%build
%configure --enable-animation
%make

%install
%makeinstall
%__mkdir -p %{buildroot}%{_datadir}/themes
%__tar zfx %SOURCE1 -C %{buildroot}%{_datadir}/themes

# Fix bug 56215:
#sed -i 's/\(^.*odd_row_color.*\)/\#\1/' %{buildroot}%{_datadir}/themes/Aurora*/gtk-2.0/gtkrc

%files
%defattr(644,root,root,755)
%doc README COPYING ChangeLog AUTHORS
%{_datadir}/themes/*

%files -n %{libname}
%defattr(755,root,root,755)
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/*.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2173 |21cr|gtk-frdp-3.37.1-0.git6cfdc8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6cfdc840159bb349310c3b81cd2df949f1522760
%define commit_short %(echo %{commit} | head -c6)

%define major 0
%define api 0.2
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d
%define girname %mklibname %{name}-gir %{api}

Summary:	This library provides a widget to view RDP sessions
Name:		gtk-frdp
Version:	3.37.1
Release:	0.git%{commit_short}.1
License:	LGPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/gtk-frdp
Source0:	https://github.com/GNOME/gtk-frdp/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:		gtk-frdp-soname.patch
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(freerdp2)
BuildRequires:	pkgconfig(fuse3)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
This library provides a widget to view RDP sessions.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkFrdp-%{api}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%license COPYING
%{_datadir}/gir-1.0/GtkFrdp-%{api}.gir
%{_datadir}/vala/vapi/%{name}-%{api}.deps
%{_datadir}/vala/vapi/%{name}-%{api}.vapi
%{_includedir}/%{name}
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2174 |21cr|gtkglarea2-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api	2.0
%define	major	1
%define	fname	gtkglarea
%define	libname	%mklibname gtkgl %{api} %{major}
%define	devname	%mklibname gtkgl -d
%define	bogus	%mklibname %{fname} 2.0

Summary:	OpenGL widget for GTK+ GUI toolkit
Name:		gtkglarea2
Version:	2.1.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.mono-project.com/GtkGLArea
Source0:	https://download.gnome.org/sources/gtkglarea/2.1/gtkglarea-%{version}.tar.xz
Patch0:		gtkglarea-2.0.0-wformat.patch
PAtch1:		gtkglarea-2.0.1-link.patch
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	mesaglu-devel

%description
Just as GTK+ is build on top of GDK, GtkGLArea is built on top of gdkgl which
is basically wrapper around GLX functions. The widget itself is very similar
to GtkDrawinigArea widget and adds only three extra functions.

Lower level gdkgl functions make it easy to render on any widget that has
OpenGL capable visual, rendering to off-screen pixmaps is also supported.

%package -n	%{libname}
Summary:	OpenGL widget for GTK+ GUI toolkit
Group:		System/Libraries
%rename		%{_lib}gtkglarea1
%rename		bogus

%description -n %{libname}
Just as GTK+ is build on top of GDK, GtkGLArea is built on top of gdkgl which
is basically wrapper around GLX functions. The widget itself is very similar
to GtkDrawinigArea widget and adds only three extra functions.

Lower level gdkgl functions make it easy to render on any widget that has
OpenGL capable visual, rendering to off-screen pixmaps is also supported.

%package -n	%{devname}
Summary:	Includes and static libs
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{_lib}gtkglarea1-devel

%description -n	%{devname}
Libraries and includes files you can use for GtkGLArea development

%prep
%setup -qn %{fname}-%{version}
%apply_patches
autoreconf -fi

%build
%configure \
	--disable-static
%make

%install
%makeinstall

%files -n %{libname}
%{_libdir}/libgtkgl-%{api}.so.%{major}*

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog README
%doc docs/*.txt
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/gtkgl-2.0.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2175 |21cr|gtkglext-1.2.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 1.0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	OpenGL extension to GTK 2.0 or later
Name:		gtkglext
Version:	1.2.0
Release:	21
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gtkglext.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/gtkglext/%{name}-%{version}.tar.bz2
Patch0:		gtkglext-support-pango.diff
Patch1:		gtkglext-1.2.0-newer-gtk.patch
# Fix 'index' redeclared as different kind of symbol
Patch2:		gtkglext-1.2.0-fix-redeclared.patch
BuildRequires:	chrpath
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangox)

%description
GtkGLExt is an OpenGL extension to GTK 2.0 or later.
GtkGLExt provides the GDK objects to support OpenGL rendering in GTK,
and GtkWidget API add-ons to make GTK+ widgets OpenGL-capable.
As opposed to Jane Loff's GtkGLArea , it does not provide any OpenGL widget,
but an interface to use OpenGL on *ANY* GTK+ widget.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	OpenGL extension to GTK 2.0 or later
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Obsoletes:	%{_lib}gtkglext-1.0_0 < %{EVRD}

%description -n %{libname}
GtkGLExt is an OpenGL extension to GTK 2.0 or later.
GtkGLExt provides the GDK objects to support OpenGL rendering in GTK,
and GtkWidget API add-ons to make GTK+ widgets OpenGL-capable.
As opposed to Jane Loff's GtkGLArea , it does not provide any OpenGL widget,
but an interface to use OpenGL on *ANY* GTK+ widget.

%files -n %{libname}
%{_libdir}/libgdkglext-x11-%{api}.so.%{major}*
%{_libdir}/libgtkglext-x11-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	OpenGL extension to GTK 2.0 or later
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-%{api}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}gtkglext-1.0_0-devel < 1.2.0-15

%description -n %{devname}
Libraries and includes files you can use for GtkGLExt development.

%files -n %{devname}
%doc AUTHORS ChangeLog TODO README
%doc %{_datadir}/gtk-doc/html/gtkglext
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/*
%{_libdir}/%{name}*
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1 -b .gtk
%patch2 -p1 -b .redeclared

%build
autoreconf -fi
%configure --enable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2176 |21cr|gtkglextmm-1.2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	api	1.2
%define	gdkname	%mklibname gdkglextmm-x11_ %{api} %{major}
%define	gtkname	%mklibname gtkglextmm-x11_ %{api} %{major}
%define	devname	%mklibname gtkglextmm-x11_ %{api} -d

Summary:	Libraries for the gtkglextmm package
Name:		gtkglextmm
Version:	1.2.0
Release:	10
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.k-3d.org/gtkglext/Main_Page
Source0:	http://downloads.sourceforge.net/gtkglext/%{name}-%{version}.tar.bz2
Patch0:		gtkglextmm-1.2.0-aclocal.patch
Patch1:		gtkglextmm-1.2.0-gtk2.20.patch
Patch2:		gtkglextmm-1.2.0-gtk2.36.patch
Patch3:		gtkglextmm-1.2.0-gtk2.37.patch
BuildRequires:	doxygen
BuildRequires:	recode
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(gtkglext-1.0)

%description
Library and data files for the gtkglextmm package.

#----------------------------------------------------------------------------

%package -n %{gdkname}
Summary:	Dynamic libraries from gtkglextmmO
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Conflicts:	%{_lib}gtkglextmm0 < 1.2.0-5

%description -n %{gdkname}
Dynamic libraries from gtkglextmm.

%files -n %{gdkname}
%{_libdir}/libgdkglextmm-x11-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{gtkname}
Summary:	Dynamic libraries from gtkglextmmO
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Conflicts:	%{_lib}gtkglextmm0 < 1.2.0-5
Obsoletes:	%{_lib}gtkglextmm0 < 1.2.0-5

%description -n %{gtkname}
Dynamic libraries from gtkglextmm.

%files -n %{gtkname}
%{_libdir}/libgtkglextmm-x11-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from gtkglextmm
Group:		Development/C
Requires:	%{gtkname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}gtkglextmm-devel < 1.2.0-5
Obsoletes:	%{_lib}gtkglextmm-devel < 1.2.0-5

%description -n %{devname}
Libraries and includes files for developing programs based on gtkglextmm.

%files -n %{devname}
%doc AUTHORS ChangeLog README
%doc %{_docdir}/gtkglextmm-1.2
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%{_libdir}/libgdkglextmm-x11-%{api}.so
%{_libdir}/libgtkglextmm-x11-%{api}.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/gtkglextmm-1.2

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
recode l1..u8 AUTHORS README

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static
%make

%install
%makeinstall_std

#rpmlint reports an empty file
rm -f %{buildroot}%{_libdir}/gtkglextmm-1.2/proc/m4/convert_gtkglext.m4

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2177 |21cr|gtk-gnutella-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI based Gnutella Client
Name:		gtk-gnutella
Version:	1.2.2
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://gtk-gnutella.sourceforge.net
Source0:	https://sourceforge.net/projects/gtk-gnutella/files/gtk-gnutella-%{version}.tar.xz
BuildRequires:	byacc
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	groff
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Gtk-Gnutella is a GUI based Gnutella p2p servent. It's a fully featured
servent designed to share any type of file.  Gtk-gnutella implements
compressed gnutella net connections, ultrapeer and leaf nodes and uses
Passive/Active Remote Queueing (PARQ), and other modern gnutella network
features.

%files  -f %{name}.lang
%doc README TODO AUTHORS LICENSE GEO_LICENSE doc/other/shell.txt
%{_bindir}/*
%{_mandir}/*/*
%{_datadir}/gtk-gnutella/
%{_datadir}/applications/*
%{_datadir}/appdata/*
%{_datadir}/pixmaps/*
%{_datadir}/icons/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./Configure -O -Dprefix=%{_prefix} -Dbindir=%{_bindir} \
        -Dglibpth="/%{_lib} %{_libdir}" \
        -Dprivlib=%{_datadir}/%{name} -Dsysman=%{_mandir}/man1 \
        -Dccflags="%{optflags}" -Dcc="%{__cc}" -Dyacc="byacc" \
        -Dgtkversion=2 \
        -Dofficial=true -ders
make


%install
make install INSTALL_PREFIX=%{buildroot}
make install.man INSTALL_PREFIX=%{buildroot}

rm -f %{buildroot}%{_datadir}/pixmaps/*.svg
install -D -m 644 extra_files/gtk-gnutella.16.png \
        %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gtk-gnutella.png
install -D -m 644 extra_files/gtk-gnutella.32.png \
        %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gtk-gnutella.png
install -D -m 644 extra_files/gtk-gnutella.png \
        %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gtk-gnutella.png
install -D -m 644 extra_files/gtk-gnutella.svg \
        %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/gtk-gnutella.svg

desktop-file-install --delete-original \
        --dir %{buildroot}%{_datadir}/applications \
        %{buildroot}%{_datadir}/applications/*

chmod 0755 %{buildroot}%{_bindir}/*

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2178 |21cr|gtkguitune-0.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux program for tuning guitars
Name:		gtkguitune
Version:	0.8
Release:	9
License:	GPLv2+
Group:		Sound
# The URLs below are an archive made from the original site in 2009
Url:		http://www.geocities.com/harpin_floh/kguitune_page.html
Source0:	http://www.geocities.com/harpin_floh/mysoft/%{name}-gtk2-%{version}.tar.gz
BuildRequires:	pkgconfig(gtkmm-2.4)

%description
Guitune is a linux program for tuning guitars and other instruments by using
the method of Schmitt-triggering, i.e. counting the number of triggerings
between two trigger levels in a certain amount of time. Why not use FFT like
many other tuning devices? Well because other tuning devices are not as fast
as mine!! With FFT you need many samples to archieve the accuracy needed for
tuning instruments. You often get times of around 1 second between two
measurements and the computer is quite busy in this second calculating the
FFT. Using Schmitt-triggering you get a measurement every 10th of a second or
even less (depending on the sample frequency you use). Most of the time the
computer only waits for the samples.
The Trigger levels are adjustable. For a pure sine-wave the trigger levels
could be zero. But for a wave wth overtones like the one in the figure above
you need a non-zero triggerlevel. It is preadjusted to a level of 60% of the
current maximum which should be able to deal with most instruments.

%files
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/scalable/apps/guitune_logo.svg
%{_datadir}/applications/rosa-%{name}.desktop


#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}


%build
make clean
export CXX="g++ -std=gnu++11"
%configure
%make

%install
%makeinstall_std

# Provide a menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Comment=Tune your Guitar
Name=%{name}
TryExec=%{name}
Exec=%{name}
Icon=%{name}_logo
Categories=GTK;AudioVideo;Audio;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2179 |21cr|gtkhash-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GTK+ utility for computing message digests or checksums
Name:		gtkhash
Version:	1.4
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://gtkhash.sourceforge.net/
# https://github.com/tristanheaven/gtkhash/archive/%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	mhash-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgcrypt)

%description
GtkHash is a GTK+ utility for computing message digests or checksums. Currently
supported hash functions include
* MD2, MD4 and MD5
* SHA1, SHA224, SHA256, SHA384 and SHA512,
* RIPEMD128, RIPEMD160, RIPEMD256 and RIPEMD320
* TIGER128, TIGER160 and TIGER192
* HAVAL128-3, HAVAL160-3, HAVAL192-3, HAVAL224-3 and HAVAL256-3
* SNEFRU128 and SNEFRU256
* ADLER32, CRC32, GOST and WHIRLPOOL

This package contains the GTK+3 version of the program.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS
%{_bindir}/%{name}
%{_datadir}/applications/org.gtkhash.gtkhash.desktop
%{_datadir}/glib-2.0/schemas/org.gtkhash.gschema.xml
%{_datadir}/metainfo/org.gtkhash.gtkhash.appdata.xml
%{_iconsdir}/hicolor/*/apps/org.gtkhash.gtkhash.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-gtk=3.0 \
	--enable-linux-crypto \
	--enable-gcrypt \
	--enable-glib-checksums \
	--enable-mhash \
	--disable-blake2 \
	--disable-thunar \
	--disable-nautilus \
	--disable-schemas-compile

%make V=1

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2180 |21cr|gtkhotkey-0.2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1

%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Name:		gtkhotkey
Version:	0.2.1
Release:	5
Summary:	Platform Independent Hotkey Handling for GTK+ Applications
License:	LGPLv3+
Group:		System/Libraries
Url:		http://launchpad.net/gtkhotkey/
Source0:		%{name}-%{version}.tar.bz2
Patch0:		gtkhotkey-glib-2.31.patch
Patch1:		gtkhotkey-0.2.1-linkage.patch
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
GtkHotkey is simple library offering a platform independent way for GTK+
applications to manage and bind desktop-wide hotkeys.

%package -n %{libname}
Summary:	Platform Independent Hotkey Handling for GTK+ Applications
Group:		System/Libraries

%description -n %{libname}
GtkHotkey is simple library offering a platform independent way for GTK+
applications to manage and bind desktop-wide hotkeys.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	pkgconfig(glib-2.0)
Requires:	pkgconfig(gtk+-2.0)
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
GtkHotkey is simple library offering a platform independent way for GTK+
applications to manage and bind desktop-wide hotkeys.  This package contains
all necessary include files and libraries needed to develop applications that
require these.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_prefix}/doc

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libgtkhotkey.so.%{major}*

%files -n %{develname}
%{_datadir}/gtk-doc/html/gtkhotkey
%{_includedir}/gtkhotkey-1.0/
%{_libdir}/libgtkhotkey.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2181 |21cr|gtk-iptables-0.5.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GTK-based frontend for iptables
Name:		gtk-iptables
Version:	0.5.1
Release:	7
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://gtk-iptables.sourceforge.net
Source0:	%{name}-%{version}.tar.bz2
Patch0:		gtk-iptables-0.5.1.printf.patch
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	gksu
Requires:	userspace-ipfilter

%description
Gtk-IPTables is a GTK-based frontend for iptables written in C. You can
create rules for all chains for Filter, NAT, and Mangle tables.

%files
%doc README COPYING
%{_bindir}/gtkiptables
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .printf

%build
%configure
%make

%install
%makeinstall_std

#menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=gksu gtkiptables
Icon=networking_configuration_section
Name=GTK-IPTables
Comment=IPTables Rules Configuration
Categories=Network;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2182 |21cr|gtklp-1.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GTK front-end for CUPS
Name:		gtklp
Version:	1.3.4
Release:	1
License:	GPLv2+
Group:		System/Configuration/Printing
Source0:	http://prdownloads.sourceforge.net/gtklp/%{name}-%{version}.src.tar.gz
Url:		http://gtklp.sourceforge.net/
Source1:	gtklp-icon48.png
Source2:	gtklp-icon32.png
Source3:	gtklp-icon16.png
Patch0:		gtklp-1.3.4-autoconf.patch
Patch1:		gtklp-1.3.4-mdv-fix-str-fmt.patch
Patch2:		gtklp-1.3.4-gcc10.patch
BuildRequires:	cups-common
BuildRequires:	cups-devel
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	cups

%description
A GTK front-end for CUPS.

%files -f %{name}.lang
%doc AUTHORS BUGS ChangeLog COPYING NEWS README TODO USAGE
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_miconsdir}/*.png
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1 -b .strfmt
%patch2 -p1

sed -e '/DEF_BROWSER_CMD/{s:netscape:firefox:}' \
	-e '/DEF_HELP_HOME/{s:631/sum.html#STANDARD_OPTIONS:631/help/:}' \
	-i include/defaults.h

chmod 644 gtklpq/*.c
chmod 644 man/*.1

%build
%global optflags %{optflags} -fcommon
autoreconf -fi
%configure --enable-forte
%make

%install
mkdir -p %{buildroot}/%{_datadir}/applications/
install -d %{buildroot}%{_liconsdir}
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}

%makeinstall_std

# menu entry
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Name=GTK CUPS
Comment=GTK Frontend for CUPS
Exec=%{_bindir}/gtklp
Icon=gtklp
Categories=HardwareSettings;Settings;GTK;
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/gtklpq.desktop
[Desktop Entry]
Type=Application
Name=GTK Printer Queue
Comment=GTK Frontend to GTKlp CUPS Queue
Exec=%{_bindir}/gtklpq
Icon=gtklp
Categories=HardwareSettings;Settings;GTK;
EOF

# menu icon
install -m0644 %{SOURCE1} %{buildroot}%{_liconsdir}/%{name}.png
install -m0644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -m0644 %{SOURCE3} %{buildroot}%{_miconsdir}/%{name}.png

# locales
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2183 |21cr|gtkmathview-0.8.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ rendering engine for MathML documents
Name:		gtkmathview
Version:	0.8.0
Release:	13
License:	GPLv3+
Group:		Networking/WWW
Url:		http://www.cs.unibo.it/helm/mml-widget/
Source0:	http://helm.cs.unibo.it/mml-widget/sources/%{name}-%{version}.tar.gz
Source1:	gtkmathview.html.tar.bz2
Patch0:		gtkmathview-0.8.0-cond-t1.patch
Patch1:		gtkmathview-0.8.0-gcc43.patch
Patch2:		gtkmathview-0.8.0-gcc44.patch
Patch3:		gtkmathview-0.8.0-fix-link.patch
Patch4:		gtkmathview-0.8.0-no-static.patch
Patch5:		gtkmathview-0.8.0-gcc47.patch
Patch6:		gtkmathview-0.8.0-gcc7.patch
Patch7:		gtkmathview-gcc-fixes-git3918e8.patch
BuildRequires:	xsltproc
BuildRequires:	t1lib-devel
BuildRequires:	popt-devel
#BuildRequires:	pkgconfig(gdome2-cpp-smart)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	fonts-ttf-latex

%description
GtkMathView is a GTK Widget for rendering MathML documents.

%files
%doc AUTHORS BUGS COPYING ChangeLog HISTORY INSTALL LICENSE NEWS README TODO
%doc %{_docdir}/%{name}/gtkmathview.html
%config(noreplace) %{_sysconfdir}/gtkmathview/gtkmathview.conf.xml
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for gtkmathview
Group:		System/Libraries

%description -n %{libname}
GtkMathView is a GTK Widget for rendering MathML documents.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for gtkmathview
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
GtkMathView is a GTK Widget for rendering MathML documents.

%files -n %{devname}
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p0
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
# AM_BINRELOC missing, just ignore
echo 'AC_DEFUN([AM_BINRELOC], [])' > acinclude.m4

%build
autoreconf -fi
%configure \
	--disable-static

make

##Add updated html reference manual##
mkdir DATA.TMP
cd DATA.TMP
tar xjf %{SOURCE1}
cd ..

%install
%makeinstall_std
mkdir -p %{buildroot}/%{_docdir}/%{name}
cp -r DATA.TMP/%{name}.html %{buildroot}/%{_docdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2184 |21cr|gtkmm2.4-documentation-2.24.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname gtkmm-documentation
%define api 2.4

Summary:	GTKmm reference manual and examples
Name:		gtkmm%{api}-documentation
Version:	2.24.1
Release:	6
License:	GPLv2+ and GFDL
Group:		Books/Other
Url:		http://gtkmm.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libglademm-2.4)
Requires:	gtkmm2.4-doc
BuildArch:	noarch

%description
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for gtkmm. You can readily read
this documentation with devhelp, a documentation reader.

%files -f gtkmm-tutorial.lang
%doc %{_datadir}/doc/gtkmm-%{api}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{version}

%build
./configure --prefix=%{_prefix}
make

%install
%makeinstall_std

%find_lang gtkmm-tutorial --with-gnome || touch gtkmm-tutorial.lang

#gw already in gtkmm2.4-doc
rm -rf %{buildroot}%{_datadir}/doc/gtkmm-%{api}/docs/{FAQ,images}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2185 |21cr|gtkmm3.0-documentation-3.4.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname	gtkmm-documentation
%define api	3.0

Summary:	GTKmm reference manual and examples
Name:		gtkmm%{api}-documentation
Version:	3.4.1
Release:	4
License:	GPLv2+ and GFDL
Group:		Books/Other
URL:		http://gtkmm.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.xz
BuildArch: noarch
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtkmm-3.0)
Requires:	gtkmm3.0-doc

%description
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm3 wraps GTK+ 3.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for gtkmm. You can readily read
this documentation with devhelp, a documentation reader.

%prep
%setup -qn %{pkgname}-%{version}

%build
%configure \
	--build=%{_build}

%make

%install
%makeinstall_std

%find_lang gtkmm-tutorial --with-gnome

%files -f gtkmm-tutorial.lang
%doc %{_datadir}/doc/gtkmm-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2186 |21cr|gtkmm-documentation-4.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Documentation for gtkmm, a C++ API for GTK
Name:		gtkmm-documentation
Version:	4.10.1
Release:	1
License:	GPLv2
Group:		Documentation
Url:		https://gitlab.gnome.org/GNOME/gtkmm-documentation
Source0:	https://github.com/GNOME/gtkmm-documentation/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		gtkmm-documentation-4.10.1-nonet.patch
BuildRequires:	dblatex
BuildRequires:	fop
BuildRequires:	gettext
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(giomm-2.68)
BuildRequires:	pkgconfig(gtkmm-4.0)
BuildArch:	noarch

%description
Documentation for gtkmm, a C++ API for GTK.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_defaultdocdir}/gtkmm-4.0

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2187 |21cr|gtk-nodoka-engine-0.7.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gtk2version %(pkg-config gtk+-2.0 --modversion 2> /dev/null)
%define nogtk2 %(pkg-config gtk+-2.0 --modversion &> /dev/null; echo $?)

Name:           gtk-nodoka-engine
Version:        0.7.5
Release:        5
Summary:        The Nodoka GTK Theme Engine
Group:          Graphical desktop/GNOME
License:        GPLv2
URL:            http://fedoraproject.org/wiki/Artwork/NodokaTheme
Source0:        https://fedorahosted.org/released/nodoka/%{name}-%{version}.tar.gz
BuildRequires:  gtk2-devel >= 2.18
%if 0%{?nogtk2}
Requires:       gtk2
%else
Requires:       gtk2 >= %{?gtk2version}
%endif
Provides:       gtk2-nodoka-engine = %{version}-%{release}
Recommends:       gtk-nodoka-engine-extras

%description
Nodoka is a Murrine engine based gtk2 theme engine. The package is shipped with
a default Nodoka theme featuring the engine.

%package extras
Summary:   Extra themes for Nodoka Gtk2 theme engine
Group:     Graphical desktop/GNOME
Requires:  %{name} >= 0.6.90.1
Provides:  gtk2-nodoka-engine-extras = %{version}-%{release}
BuildArch: noarch

%description extras
This package contains extra themes for the Nodoka Gtk2 theme engine.

%prep
%setup -q

%build
%configure --with-gtk=2.0
%make

%install
rm -rf %{buildroot}
%makeinstall_std

#remove .la files
find %{buildroot} -name *.la | xargs rm -f

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING CREDITS NEWS README TODO
%{_libdir}/gtk-2.0/2.10.0/engines/libnodoka.so
%{_datadir}/themes/Nodoka

%files extras
%defattr(-,root,root,-)
%doc COPYING
%{_datadir}/themes/Nodoka-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2188 |21cr|gtkparasite-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define githash bfd9f37bd8219f576ddd5a062e2581c108e23a93
%define shorthash %(echo "%githash" | cut -c -7)

Summary:	A GUI debugging tool for GTK+ applications
Name:		gtkparasite
Version:	0.1.0
Release:	1
License:	MIT
Group:		Development/Tools
Url:		http://chipx86.github.io/gtkparasite/
# http://github.com/chipx86/gtkparasite/tarball/master/%{githash}
Source0:	chipx86-gtkparasite-%{shorthash}.tar.gz
# for gnome-autogen.sh:
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-3.0)

%description
Parasite is a debugging and development tool that runs inside your GTK+
application's process. It can inspect your application, giving you detailed
information on your UI, such as the hierarchy, X window IDs, widget properties,
and more. You can modify properties on the fly in order to experiment with the
look of your UI.

But you can go further than that. You can actually modify your application
logic while the program is running! Parasite includes an embedded Python shell
that lets you write new code that directly interacts with your application's
UI, regardless of the language the application is written in. Create new
dialogs, attach temporary signal handlers to buttons, test out new logic, and
gather additional debug information.

If you've used Firebug, it's sort of like that, but for GTK+ applications. 

Usage:
$ GTK_MODULES=gtkparasite <appname>

%files
%doc COPYING
%{_libdir}/gtk-3.0/modules/libgtkparasite.so

#----------------------------------------------------------------------------

%prep
%setup -qn chipx86-gtkparasite-%{shorthash}

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

rm %{buildroot}%{_libdir}/gtk-3.0/modules/*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2189 |21cr|gtkpasman-0.12.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GTK passwords manager for system and network administrators
Name:		gtkpasman
Version:	0.12.1
Release:	5
License:	GPLv2+
Group:		File tools
Url:		http://gtkpasman.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/gtkpasman/%{name}-sources/%{version}/%{name}-%{version}.tar.xz
# Translations make ABF hang :-/
Patch0:		gtkpasman-0.12.1-no-locale.patch
Patch1:		gtkpasman-0.12.1-deprecated.patch
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	gnupg

%description
It is a graphical interface to manage the usage of passwords related to servers
or services, grouped by customers (plateforms, etc.) The purpose is to provide
system and network administrators a convenient tool to manage a passwords
knowledge base related to customers, servers, services...

It can help to retrieve passwords, or even connect to servers (ssh, telnet,
FTP...). Passwords will be kept in a gnupg crypted file. The structure of the
file is predefined, but very easy to edit and maintain. The gtk application
can switch between a discreet applet and a full list of containers.

%files
%doc README NEWS AUTHORS
%{_bindir}/gtkpasman
%{_datadir}/applications/gtkpasman.desktop
%{_datadir}/glib-2.0/schemas/gtkpasman.gschema.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2190 |21cr|gtk-sharp3-2.99.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gtk-sharp
%define monodir %{_prefix}/lib/mono

Summary:	C# language binding for the gtk+ 3.0 toolkit
Name:		gtk-sharp3
Version:	2.99.3
Release:	6
License:	LGPLv2+
Group:		Development/C#
Url:		http://gtk-sharp.sourceforge.net/
Source0:	https://download.gnome.org/sources/gtk-sharp/2.99/%{oname}-%{version}.tar.xz
Patch0:		gtk-sharp-2.99.3-mcs.patch
Patch1:		gtk-sharp3-2.99.3-gui-thread-check.patch
Patch2:		gtk-sharp3-2.99.3-gtkrange.patch
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(mono)
BuildRequires:	pkgconfig(pango)
BuildRequires:	monodoc

%description
Gtk-sharp is a C# language binding for the gtk+ 3.0 toolkit.

%files
%{monodir}/gac/gdk-sharp
%{monodir}/gac/gtk-dotnet
%{monodir}/gac/gtk-sharp
%{monodir}/gtk-sharp-3.0/gdk-sharp.dll
%{monodir}/gtk-sharp-3.0/gtk-dotnet.dll
%{monodir}/gtk-sharp-3.0/gtk-sharp.dll
%{_libdir}/libgtksharpglue-3.so
%{_libdir}/pkgconfig/gdk-sharp-3.0.pc
%{_libdir}/pkgconfig/gtk-dotnet-3.0.pc
%{_libdir}/pkgconfig/gtk-sharp-3.0.pc
%{_libdir}/libmono-profiler-gui-thread-check.so*

#-------------------------------------------------------------------------------------

%package devel
Summary:	C# code generation tools for %{name}
Group:		Development/C#
Requires:	%{name} = %{EVRD}

%description devel
This contains the code generation tools of gtk-sharp. It is needed for building
C# wrappers for GObject APIs.

%files devel
%{_bindir}/gapi3-codegen
%{_bindir}/gapi3-fixup
%{_bindir}/gapi3-parser
%{_prefix}/lib/gapi-3.0/gapi-fixup.exe
%{_prefix}/lib/gapi-3.0/gapi-parser.exe
%{_prefix}/lib/gapi-3.0/gapi2xml.pl
%{_prefix}/lib/gapi-3.0/gapi_codegen.exe
%{_prefix}/lib/gapi-3.0/gapi_pp.pl
%{_libdir}/pkgconfig/gapi-3.0.pc
%{_datadir}/gapi-3.0/atk-api.xml
%{_datadir}/gapi-3.0/gdk-api.xml
%{_datadir}/gapi-3.0/gio-api.xml
%{_datadir}/gapi-3.0/glib-api.xml
%{_datadir}/gapi-3.0/gtk-api.xml
%{_datadir}/gapi-3.0/pango-api.xml
%{_datadir}/gapi-3.0/gapi.xsd

#-------------------------------------------------------------------------------------

%package -n glib-sharp3
Summary:	C# binding for glib
Group:		Development/C#

%description -n glib-sharp3
Glib-sharp is a C# language binding for glib.

%files -n glib-sharp3
%{monodir}/gac/gio-sharp
%{monodir}/gac/glib-sharp
%{monodir}/gtk-sharp-3.0/gio-sharp.dll
%{monodir}/gtk-sharp-3.0/glib-sharp.dll
%{_libdir}/libgiosharpglue-3.so
%{_libdir}/pkgconfig/gio-sharp-3.0.pc
%{_libdir}/pkgconfig/glib-sharp-3.0.pc

#-------------------------------------------------------------------------------------

%package -n atk-sharp3
Summary:	C# binding for atk
Group:		Development/C#

%description -n atk-sharp3
Atk-sharp is a C# language binding for atk.

%files -n atk-sharp3
%{monodir}/gac/atk-sharp
%{monodir}/gtk-sharp-3.0/atk-sharp.dll
%{_libdir}/libatksharpglue-3.so

#-------------------------------------------------------------------------------------

%package -n cairo-sharp3
Summary:	C# binding for cairo
Group:		Development/C#

%description -n cairo-sharp3
Cairo-sharp is a C# language binding for cairo.

%files -n cairo-sharp3
%{monodir}/gac/cairo-sharp
%{monodir}/gtk-sharp-3.0/cairo-sharp.dll

#-------------------------------------------------------------------------------------

%package -n pango-sharp3
Summary:	C# binding for pango
Group:		Development/C#

%description -n pango-sharp3
Pango-sharp is a C# language binding for pango.

%files -n pango-sharp3
%{monodir}/gac/pango-sharp
%{monodir}/gtk-sharp-3.0/pango-sharp.dll
%{_libdir}/libpangosharpglue-3.so

#-------------------------------------------------------------------------------------

%package doc
Summary:	Documentation for gtk-sharp
Group:		Development/C#
BuildArch:	noarch
Requires(post,postun):	monodoc-core

%description doc
Gtk-sharp is a C# language binding for the  gtk+ toolkit.
This package provides documentation for gtk-sharp. 

%files doc
%{_prefix}/lib/monodoc/sources/gtk-sharp-3-docs.source
%{_prefix}/lib/monodoc/sources/gtk-sharp-3-docs.tree
%{_prefix}/lib/monodoc/sources/gtk-sharp-3-docs.zip

%post doc
%{_bindir}/monodoc --make-index > /dev/null

%postun doc
if [ "$1" = "0" -a -x %{_bindir}/monodoc ]; then %{_bindir}/monodoc --make-index > /dev/null
fi

#-------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2191 |21cr|gtkshots-0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		sname	gtkShots

Name:		gtkshots
Version:	0.1
Release:	4
Summary:	An utility to capture screenshots continuously
Group:		Graphics
License:	GPLv2+
URL:		http://gtkshots.sourceforge.net
Source:		http://sourceforge.net/projects/gtkshots/files/%{name}/%{version}/%{sname}-%{version}.tar.gz
BuildRequires:	imagemagick
Requires:	pygtk2
Buildarch:	noarch

%description
GTKShots is a python/GTK application to capture screenshots continuosly.
It is a hand tool to automatically save the screenshots in a (un)specified
period of time, with the possibility to schedule it and to choose options
for each screenshot to be saved, such as the size, the parent folder and
the time interval between them.

GTKShots could be used for a lot of different aims, for instance to create
presentations, to monitor desktop activity, or for any other scope that
needs a screenshots sequence.

GTKShots is actually a GUI frontend to pyshots, my command-line python
script to do the same job. Thus, if you need to work on the terminal
sessions, you could take advantage of this.

%prep
%setup -q -n %{sname}-%{version}

%build
for N in 16 32 64 128; do convert %{name}.svg -resize ${N}x${N} $N.png; done

%install
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/bash

pushd %{_datadir}/%{name}
python ./gtkshots.py \$@
popd
EOF

chmod 0755 %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 0644 gtkshots.glade %{buildroot}%{_datadir}/%{name}/
install -m 0755 gtkshots.py %{buildroot}%{_datadir}/%{name}/
install -m 0755 pyshots.py %{buildroot}%{_datadir}/%{name}/

install -D 16.png %{buildroot}%{_miconsdir}/%{name}.png
install -D 32.png %{buildroot}%{_liconsdir}/%{name}.png
install -D 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=gtkShots
Comment=An utility to capture screenshots continuously
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Graphics;
EOF

%files
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2192 |21cr|gtksourceviewmm-3.21.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)

%define api 3.0
%define major 0
%define libname %mklibname gtksourceviewmm %{api} %{major}
%define devname %mklibname gtksourceviewmm %{api} -d

Summary:	Source code viewing library
Name:		gtksourceviewmm
Version:	3.21.3
Release:	13
License:	LGPLv2+
Group:		Editors
Url:		https://download.gnome.org/sources/gtksourceviewmm
Source0:	https://download.gnome.org/sources/gtksourceviewmm/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(gtksourceview-3.0)

%description
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

This package contains the C++ language bindings for GtkSourceview.

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Source code viewing library
Group:		System/Libraries

%description -n %{libname}
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

This package contains the C++ language bindings for GtkSourceview.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libgtksourceviewmm-%{api}.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for GtkSourceView
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
GtkSourceView development files.

This package contains the C++ language bindings for GtkSourceview.

%files -n %{devname}
%doc %{_datadir}/doc/gtksourceviewmm-%{api}/
%{_datadir}/devhelp/books/gtksourceviewmm-%{api}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/gtksourceviewmm*

#--------------------------------------------------------------------

%prep
%setup -q

sed -i '/convert_\(gtkmm\|gtksourceview\)\.m4/d' codegen/m4/convert.m4

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2193 |21cr|gtkterm-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Serial port terminal
Name:		gtkterm
Version:	1.1.1
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://fedorahosted.org/gtkterm/
Source0:	http://fedorahosted.org/released/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	meson
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(vte-2.91)

%description
Gtkterm is a simple GTK+ terminal used to communicate with a serial port.
It is has fewer features than minicom, but is designed to be as easy to
use as possible.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2194 |21cr|gtk-theme-config-1.2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		gtk-theme-config
Version:	1.2.2
Release:	3
Summary:	Configure GTK theme colors
Group:		Graphical desktop/Xfce
License:	GPLv3
URL:		https://launchpad.net/gtk-theme-config
Source0:	https://launchpad.net/gtk-theme-config/1.2/1.2.2/+download/gtk-theme-config-1.2.2.tar.bz2
BuildRequires:	gcc
BuildRequires:	vala
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
Requires:	gsettings-desktop-schemas
Requires:	pkgconfig(gconf-2.0)
Requires:	gdk-pixbuf2.0

%description
This little tool allows anyone to change some basic elements of a GTK theme
easily (both GTK2 and GTK3) with a simple interface.

%prep
%setup -q

%build
make

%install
make install DESTDIR=%{buildroot}

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/gtk-theme-config.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2195 |21cr|gtk-theme-greybird-3.22.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name     Greybird

Summary:	%{theme_name} theme
Name:		gtk-theme-greybird
Version:	3.22.5
Release:	1
License:	GPLv2+ or CC-BY-SA
Group:		Graphics
URL:		http://shimmerproject.org/project/greybird/ 
Source0:	https://github.com/shimmerproject/%{theme_name}/archive/v%{version}.tar.gz
BuildArch:	noarch
Requires:	gtk2-theme-greybird
Requires:	gtk3-theme-greybird
Requires:	metacity-theme-greybird
Requires:	xfwm4-theme-greybird
Requires:	xfce4-notifyd-theme-greybird

%description
Greybird is a theme for GTK2/3 and xfwm4/metacity started out on the basis of
Bluebird, but aims at reworking the intense blue tone to a more neutral
grey-ish look that will be more pleasant to look at in everyday use.

%files
%doc LICENSE.GPL LICENSE.CC

#----------------------------------------------------------------------------

%package -n gtk2-theme-greybird
Summary:	A Clean Minimalistic Theme for GNOME, XFCE, GTK+ 2 and 3 -- GTK+ 2 Support
Requires:	murrine

%description -n gtk2-theme-greybird
This package provides the GTK+ 2 support of Greybird.

%files -n gtk2-theme-greybird
%doc LICENSE.GPL LICENSE.CC
%dir %{_datadir}/themes/Greybird/
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package -n gtk3-theme-greybird
Summary:	A Clean Minimalistic Theme for GNOME, XFCE, GTK+ 2 and 3 -- GTK+ 3 Support
Requires:	gtk-unico-engine

%description -n gtk3-theme-greybird
This package provides the GTK+ 3 support of Greybird.

%files -n gtk3-theme-greybird
%doc LICENSE.GPL LICENSE.CC
%dir %{_datadir}/themes/Greybird/
%{_datadir}/themes/%{theme_name}/gtk-3.0/


#----------------------------------------------------------------------------

%package -n metacity-theme-greybird
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	metacity

%description -n metacity-theme-greybird
Themes for Metacity as part of the %{theme_name} theme.

%files -n metacity-theme-greybird
%doc LICENSE.GPL LICENSE.CC
%dir %{_datadir}/themes/Greybird/
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%package -n xfwm4-theme-greybird
Summary:	%{theme_name} Xfwm4 themes
Requires:	xfwm4

%description -n xfwm4-theme-greybird
Themes for Xfwm4 as part of the %{theme_name} theme.

%files -n xfwm4-theme-greybird
%doc LICENSE.GPL LICENSE.CC
%dir %{_datadir}/themes/Greybird/
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%package -n xfce4-notifyd-theme-greybird
Summary:	%{theme_name} Xfce4 notifyd theme
Requires:	xfce4-notifyd

%description -n xfce4-notifyd-theme-greybird
Themes for Xfce4 notifyd as part of the %{theme_name} theme..

%files -n xfce4-notifyd-theme-greybird
%doc LICENSE.GPL LICENSE.CC
%dir %{_datadir}/themes/Greybird/
%{_datadir}/themes/%{theme_name}/xfce-notify-4.0/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}-%{version}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {gtk-2.0,gtk-3.0,metacity-1,xfwm4,xfce-notify-4.0} %{buildroot}%{_datadir}/themes/%{theme_name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2196 |21cr|gtk-theme-switch-2.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Switch GTK themes on the fly
Name:		gtk-theme-switch
Version:	2.1.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://gna.org/projects/gtk-theme-switch/
Source0:	http://download.gna.org/gtk-theme-switch/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)

%description
Tiny GTK app to let you switch GTK2 themes on the fly.

%files
%{_bindir}/gtk-theme-switch2
%{_mandir}/man1/gtk-theme-switch2.1*
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup

%build
%make CFLAGS="%{optflags}"

%install
make install \
	PREFIX=%{buildroot}%{_prefix}

mkdir -p %{buildroot}%{_mandir}/man1/
mv %{buildroot}%{_prefix}/man/gtk-theme-switch2.1 %{buildroot}%{_mandir}/man1/

# menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=gtk-theme-switch2
Icon=other_configuration
Categories=Settings;
Name=GTK Theme Switch
Comment=Change GTK2 Theme
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2197 |21cr|gtkwave-3.3.121-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Electronic Waveform Viewer
Name:		gtkwave
Version:	3.3.121
Release:	1
License:	GPLv2+
Group:		Sciences/Other
Url:		http://gtkwave.sourceforge.net/
Source0:	http://gtkwave.sourceforge.net/%{name}-gtk3-%{version}.tar.gz
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
BuildRequires:	flex
BuildRequires:	gperf
BuildRequires:	bzip2-devel
BuildRequires:	judy-devel
BuildRequires:	lzma-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk+-unix-print-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)

%description
GTKWave is a fully featured GTK+ based wave viewer for Unix and Win32 
which reads LXT, LXT2, VZT, and GHW files as well as standard Verilog 
VCD/EVCD files and allows their viewing. 

%files
%doc *.TXT doc examples
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_iconsdir}/gnome/*/*
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/gtkwave-gtk3/
%{_datadir}/mime/packages/*
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/*.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-gtk3-%{version}

%build
%configure \
	--enable-gtk3 \
	--enable-judy \
	--disable-mime-update \
	--enable-struct-pack \
	--disable-tcl
%make

%install
%makeinstall_std

# icons
install -D -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=GTKWave
Comment=Electronic Waveform Viewer
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Engineering;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2198 |21cr|gtk-xfce-engine-3.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define gtkbinaryver %(if $([ -x %{_bindir}/pkg-config ] && pkg-config --exists gtk+-2.0); then pkg-config --variable=gtk_binary_version gtk+-2.0; else echo 0; fi)
%define url_ver %(echo %{version} | cut -c 1-3)

Summary:	Additional themes for Xfce desktop environment
Name:		gtk-xfce-engine
Version:	3.2.0
Release:	4
License:	GPLv3
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/gtk-xfce-engine/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
Conflicts:	gtk-engines2 < 2.18.1-2

%description
A default Xfce GTK+ themes.

%files
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libxfce.so
%{_datadir}/themes/Xfce*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static

%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2199 |21cr|gts-0.7.6-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 5
%define	api 0.7
%define	libname %mklibname %{name} %{api} %{major}
%define	devname %mklibname %{name} -d

Summary:	3D modeling, animation, and rendering system
Name:		gts
Version:	0.7.6
Release:	16
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gts.sourceforge.net/
Source0:	https://prdownloads.sourceforge.net/gts/%{name}-%{version}.tar.bz2
Patch0:		gts-0.7.6-fix-underlinking.patch
Patch1:		gts-0.7.6-netpbm.patch
%ifarch x86_64
BuildRequires:	chrpath
%endif
BuildRequires:	multiarch-utils
BuildRequires:	netpbm-devel
BuildRequires:	pkgconfig(glib-2.0) >= 2.4.0

%description
This is the GTS library. GTS stands for the GNU Triangulated Surface Library.
It includes a number of useful functions to deal with triangulated surfaces
including, but not limited to, multi-resolution models, Delaunay and
Constrained Delaunay triangulations, set operations on surfaces (intersection,
union etc ...), bounding-boxes trees for efficient collision and intersection
detection, triangle strips generation for fast rendering.

%files
%doc AUTHORS README
%{_bindir}/gts2dxf
%{_bindir}/gts2oogl
%{_bindir}/gts2stl
%{_bindir}/gtscheck
%{_bindir}/stl2gts
%{_bindir}/transform
%{_bindir}/gtscompare
%{_bindir}/gtstemplate
%{_bindir}/delaunay
%{_bindir}/happrox

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/libgts-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 0.7.6-12

%description -n %{devname}
Development headers and libraries for %{name}.

%files -n %{devname}
%doc COPYING doc/html/*
%{multiarch_bindir}/%{name}-config
%{_bindir}/%{name}-config
%{_includedir}/%{name}.h
%{_includedir}/%{name}config.h
%{_libdir}/libgts.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/%{name}.m4

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0

sed -i -e "s|AM_CONFIG_HEADER|AC_CONFIG_HEADERS|g" ./configure.in


%build
autoreconf -vfi
%configure  --disable-static
%make


%install
%makeinstall_std

%ifarch x86_64
chrpath -d %{buildroot}%{_bindir}/delaunay
chrpath -d %{buildroot}%{_bindir}/gts2dxf
chrpath -d %{buildroot}%{_bindir}/gts2oogl
chrpath -d %{buildroot}%{_bindir}/gts2stl
chrpath -d %{buildroot}%{_bindir}/gtscheck
chrpath -d %{buildroot}%{_bindir}/gtscompare
chrpath -d %{buildroot}%{_bindir}/happrox
chrpath -d %{buildroot}%{_bindir}/stl2gts
chrpath -d %{buildroot}%{_bindir}/transform
%endif

%multiarch_binaries %{buildroot}%{_bindir}/gts-config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2200 |21cr|gtypist-2.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Universal typing tutor
Name:		gtypist
Version:	2.9.5
Release:	1
License:	GPLv3+
Group:		Text tools
Url: 		http://www.gnu.org/software/gtypist/gtypist.html
Source0: 	ftp://ftp.gnu.org/gnu/gtypist/%{name}-%{version}.tar.xz
Buildrequires:	bison
Buildrequires:	byacc
Buildrequires:	emacs
Buildrequires:	pkgconfig(ncurses)
Provides:	typist = %{EVRD}

%description
GNU Typist (also called gtypist) is a universal typing tutor. You can
learn correct typing and improve your skills by practicing its exercises
on a regular basis.

%files -f %{name}.lang
%defattr(-,root,root,755)
%doc ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README THANKS TODO QUESTIONS
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/%{name}/
%{_infodir}/%{name}.info*
%{_infodir}/%{name}.*.info*
%{_datadir}/emacs/site-lisp/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2201 |21cr|guake-3.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A drop-down terminal for Gnome Desktop Environment
Name:		guake
Version:	3.9.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://guake.org
Source0:	https://github.com/Guake/guake/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	guake-3.9.0_ru.tar.gz
Patch0:		guake-resize.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(pbr)
BuildRequires:	python3egg(wheel)
BuildRequires:	pkgconfig(python3)
BuildRequires:	gettext
BuildRequires:	gnome-common
BuildRequires:	desktop-file-utils
BuildArch:      noarch

Requires:       python3 >= 3.5
Requires:       python3-cairo
Requires:       python3-dbus
Requires:       python3-gobject
Requires:       python3-gi-cairo
Requires:       python3-pyxdg
Requires:       python3egg(pbr)
Requires:       libwnck3
Requires:       libnotify
Requires:       vte291 >= 0.42
Requires:       %{_lib}vte-gir2.91
Requires:       %{_lib}keybinder-gir3.0
Requires:       typelib(Wnck)

%description
Guake is a drop-down terminal for Gnome Desktop Environment, so you just
need to press a key to invoke him, and press again to hide.

%files -f %{name}.lang
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}*.desktop
%{_datadir}/pixmaps/%{name}.png
%{python3_sitelib}/%{name}
%{python3_sitelib}/*.egg-info
%{_datadir}/metainfo/guake.desktop.metainfo.xml
%{_datadir}/glib-2.0/schemas/org.guake.gschema.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

# downgrade required setuptools version
sed -i "s@57.5.0@57.4.0@" setup.cfg

%build
%make PREFIX=%{_prefix}

%install
# exporting SETUPTOOLS_SCM_PRETEND_VERSION
# https://github.com/Guake/guake/issues/2070 
%make_install SETUPTOOLS_SCM_PRETEND_VERSION=3.9.0 PREFIX=%{_prefix}

find %{buildroot} -name "gschemas.compiled" -delete

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2202 |21cr|guetzli-1.0.1-2.git214f2b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 214f2bb42abf5a577c079d00add5d6cc470620d3
%define commit_short %(echo %{commit} | head -c6)

%define pname butteraugli

Summary:	It is an effective JPEG encoder
Name:		guetzli
Version:	1.0.1
Release:	2.git%{commit_short}.1
License:	ASL 2.0
Group:		Graphical desktop/Other
Url:		https://github.com/google/guetzli
Source0:	https://github.com/google/guetzli/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libjpeg)

%description
Guetzli is a JPEG encoder that aims for excellent compression density at high
visual quality. Guetzli-generated images are typically 20-30% smaller than
images of equivalent quality generated by libjpeg. Guetzli generates only
sequential (nonprogressive) JPEGs due to faster decompression speeds
they offer.

%files
%license LICENSE
%doc README.md tools/guetzli-compare.py
%{_bindir}/%{name}

#------------------------------------------------------------------

%package -n	%{pname}
Summary:	A tool for measuring perceived differences between images
Group:		Graphical desktop/Other

%description -n %{pname}
Butteraugli is a project that estimates the psychovisual similarity of two
images. It gives a score for the images that is reliable in the domain
of barely noticeable differences. Butteraugli not only gives a scalar score,
but also computes a spatial map of the level of differences.

%files -n %{pname}
%license LICENSE
%{_bindir}/%{pname}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%setup_compile_flags
%make
pushd third_party/%{pname}/%{pname}
%make
popd

%install
install -d %{buildroot}%{_bindir}
install -m755 bin/Release/%{name} %{buildroot}%{_bindir}/
install -m755 third_party/%{pname}/%{pname}/%{pname} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2203 |21cr|gufw-24.04-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gufw
Version:        24.04
Release:        1
Summary:        Uncomplicated Firewall
License:        GPL-3.0
Group:          System/Configuration/Other
URL:            http://gufw.org/
Source0:        https://github.com/costales/gufw/archive/%{version}.tar.gz?/gufw-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  autoconf
BuildRequires:  intltool
BuildRequires:  python3-devel
BuildRequires:  python3-distutils-extra
BuildRequires:  python3-netifaces
BuildRequires:  python3-gi
#BuildRequires:  python3-configparser
Requires:       ufw

%description
An easy, intuitive, way to manage your Linux firewall. It supports common
tasks such as allowing or blocking pre-configured, common p2p, or individual
ports port(s), and many others!

%files -f %{name}.lang
%doc COPYING.GPL3 README.md
%{_sysconfdir}/gufw
%{_bindir}/gufw
%{_bindir}/gufw-pkexec
%{python3_sitelib}/gufw*
%{_datadir}/applications/gufw.desktop
%{_datadir}/gufw
%{_datadir}/icons/hicolor/*/apps/gufw.*
%{_mandir}/man8/gufw.8.*
%{_datadir}/polkit-1/actions/com.ubuntu.pkexec.gufw.policy

#-------------------------------------------------------------------------
%prep
%setup -q
sed -i 's|/usr/share/gufw|%{python3_sitelib}|' bin/gufw-pkexec

%build

%install
%__python3 setup.py install --prefix=%{_prefix} --root %{buildroot}

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2204 |21cr|guichan-0.8.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   1
%define api     0.8.1
%define libname %mklibname %{name} %{api} %{major}
%define develname %mklibname %{name} -d
%define staticdevelname %mklibname %{name} -d -s

Name:		guichan
Version:	0.8.2
Release:	9
Summary:	Portable C++ GUI library for games using Allegro, SDL and OpenGL

Group:		System/Libraries
License:	BSD
URL:		http://guichan.sourceforge.net
Source0:	http://guichan.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		guichan-0.8.2-mdv-fix-linkage.patch

BuildRequires:  allegro-devel
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(gl)
BuildRequires:	nas-devel

%description
Guichan is a small, efficient C++ GUI library designed for games. It comes
with a standard set of widgets and can use several different objects for 
displaying graphics and grabbing user input.

#---------------------------------------

%package -n %{libname}
Summary:        Shared library for %{name}
Group:          System/Libraries
Provides:       %{name} = %{version}-%{release}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_libdir}/lib%{name}*-%{api}.so.*
#-----------------------------------------

%package -n %{develname}
Summary:        Headers for developing programs that will use %{name}
Group:          Development/C++
Requires:       %{libname} = %{version}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{develname}
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_includedir}/*
%{_libdir}/lib%{name}*.so
%{_libdir}/pkgconfig/*.pc

#-----------------------------------------

%package -n %{staticdevelname}
Summary:        Static libraries for programs which will use %{name}
Group:          Development/C++
Requires:       %{develname} = %{version}
Provides:       %{name}-static-devel = %{version}-%{release}

%description -n %{staticdevelname}
This package contains the static libraries necessary for developing
programs which will use %{name}.

%files -n %{staticdevelname}
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_libdir}/*.a
#-----------------------------------------


%prep
%setup -q
%patch0 -p1 -b .linkage

for file in AUTHORS ChangeLog COPYING NEWS README TODO ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done


%build
autoreconf -fiv
%configure  --enable-sdl \
            --enable-sdlimage \
            --enable-opengl \
            --enable-allegro \
            --enable-static
%make

%install
%makeinstall_std



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2205 |21cr|guile-lib-0.2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Library of useful guile modules
Name:		guile-lib
Version:	0.2.1
Release:	5
License:	GPLv3
Group:		Development/Other
URL:		http://savannah.nongnu.org/projects/guile-lib
Source:		http://download.savannah.gnu.org/releases/guile-lib/%{name}-%{version}.tar.gz
BuildRequires:	texinfo
BuildRequires:	guile-devel
Requires:	guile >= 1.6
BuildArch:	noarch

%description
A set of various-purpose library modules for Guile. Covered areas include:

  * Unit testing framework ala JUnit
  * Logging system
  * String routines (wrapping, completion, soundex algorithm)
  * OS process chains (think "shell pipes in scheme")
  * ANSI escape sequence text coloring
  * SRFI-35 (conditions)

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std



%files
%doc {AUTHORS,ChangeLog,NEWS,README}
%{_infodir}/*.info*
%{_datadir}/guile/site/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2206 |21cr|guitarix2-0.44.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	ladspadir %{_libdir}/ladspa
%define	lv2dir %{_libdir}/lv2

%define	major 0
%define	libgxw %mklibname gxw %{major}
%define	libgxwmm %mklibname gxwmm %{major}

Summary:	Guitar effect processor for JACK
Name:		guitarix2
Version:	0.44.1
Release:	2
License:	GPLv2+
Group:		Sound
Url:		http://guitarix.sourceforge.net/
Source0:	https://prdownloads.sourceforge.net/guitarix/%{name}-%{version}.tar.xz
Patch0:		guitarix2-0.42.1-fix-eigen3-includes.patch
BuildRequires:	desktop-file-utils
BuildRequires:	eigen3
#BuildRequires:	faust
BuildRequires:	gettext
BuildRequires:	gperf
BuildRequires:	intltool
BuildRequires:	sassc
BuildRequires:	waf
BuildRequires:	boost-devel >= 1.42
BuildRequires:	gettext-devel
BuildRequires:	ladspa-devel
BuildRequires:	libzita-convolver-devel >= 4.0.0
BuildRequires:	libzita-resampler-devel
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(avahi-gobject)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(jack) >= 1.9.2
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(lilv-0)
BuildRequires:	pkgconfig(lrdf)
BuildRequires:	pkgconfig(lv2) >= 1.2.0
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(sndfile) >= 1.0.17
BuildRequires:	pkgconfig(webkit-1.0)
BuildRequires:	pkgconfig(x11)
Requires:	%{name}-plugins-ladspa = %{EVRD}
Provides:	guitarix = %{EVRD}
ExclusiveArch:	x86_64 aarch64
%rename		%{_lib}gxw-devel

%description
Guitarix is a simple Linux Rock Guitar Amplifier for the Jack Audio
Connektion Kit with one input and two outputs. Designed to get nice
thrash/metal/rock/blues guitar sounds. There are controls for bass,
middle, treble, gain (in/out), compressor, preamp, tube's, drive,
overdrive, over-sample, anti-alias, fuzz, balance, distortion, freeverb,
impulse response, vibrato, chorus, delay , cry-baby(wah) and echo.

%files -f guitarix.lang
%doc COPYING README
%{_bindir}/guitarix
%{_datadir}/pixmaps/*.png
%{_datadir}/gx_head/skins/*
%{_datadir}/gx_head/sounds/*
%{_datadir}/gx_head/builder/*
%{_datadir}/gx_head/factorysettings/*
%{_datadir}/applications/guitarix.desktop
%{_metainfodir}/org.guitarix.guitarix.metainfo.xml
%{_datadir}/fonts/truetype/robotocondensed/*

#----------------------------------------------------------------------------

%package plugins-ladspa
Summary:	LADSPA plugins coming with guitarix2
# Ladspa/distortion.cpp and ladspa/guitarix-ladspa.cpp are BSD;
# the rest of ladspa/* is GPLv2+
License:	GPLv2+ and BSD
Group:		Sound
Requires:	ladspa

%description plugins-ladspa
Guitarix is a simple Linux Rock Guitar Amplifier for the Jack Audio
Connektion Kit. This package includes the LADSPA plugins for the amp,
which can be used with other LADSPA hosts as well.

%files plugins-ladspa
%doc COPYING
%dir %{ladspadir}
%{ladspadir}/*.so
%{_datadir}/ladspa/rdf/*.rdf

#----------------------------------------------------------------------------

%package plugins-lv2
Summary:	LV2 plugins coming with guitarix2
License:	GPLv2+
Group:		Sound
Requires:	lv2

%description plugins-lv2
Guitarix is a simple Linux Rock Guitar Amplifier for the Jack Audio
Connektion Kit. This package includes the LV2 plugins for the amp,
which can be used with LV2 hosts.

%files plugins-lv2
%doc COPYING
%dir %{_libdir}/lv2
%{_libdir}/lv2/gx*.lv2/

#----------------------------------------------------------------------------

%package -n %{libgxw}
Summary:	Libraries required for guitarix LV2 plugins
Group:		Sound
Conflicts:	%{_lib}gxw1 < 0.28.1-2
Obsoletes:	%{_lib}gxw1 < 0.28.1-2

%description -n %{libgxw}
Libraries required for guitarix LV2 plugins.

%files -n %{libgxw}
%doc COPYING
%{_libdir}/libgxw.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgxwmm}
Summary:	Libraries required for guitarix LV2 plugins
Group:		Sound
Conflicts:	%{_lib}gxw1 < 0.28.1-2
Obsoletes:	%{_lib}gxw1 < 0.28.1-2

%description -n %{libgxwmm}
Libraries required for guitarix LV2 plugins.

%files -n %{libgxwmm}
%doc COPYING
%{_libdir}/libgxwmm.so.%{major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n guitarix-%{version}


%build
./waf configure \
	--shared-lib \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--no-faust \
	--ladspa \
	--new-ladspa \
	--ladspadir=%{ladspadir} \
	--mod-lv2 \
	--lv2dir=%{lv2dir} \
	--install-roboto-font \
	--no-font-cache-update \
%ifarch aarch64
	--disable-sse \
%endif
	--no-desktop-update

./waf build


%install
./waf install --destdir=%{buildroot}

desktop-file-install \
	--remove-category="X-Jack;" \
	--remove-category="Midi;" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

# These are not needed, we don't have header files to make a devel package
rm -f %{buildroot}%{_libdir}/libgxw.so
rm -f %{buildroot}%{_libdir}/libgxwmm.so

# Fix perms
chmod 0644 %{buildroot}%{_datadir}/fonts/truetype/robotocondensed/*


%find_lang guitarix

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2207 |21cr|guitarix-webui-0.37.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	WebUI for Guitarix
Name:		guitarix-webui
Version:	0.37.3
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/guitarix/
Source0:	https://sourceforge.net/projects/guitarix/files/guitarix/%{name}-%{version}.tar.bz2
BuildArch:	noarch
Requires:	python3-websockify
Requires:	guitarix >= 0.34.0
ExclusiveArch:	x86_64 aarch64

%description
WebUI for Guitarix.

%files
%doc README-dist.txt
%{_bindir}/%{name}
%{_datadir}/%{name}

#-----------------------------------------------------------------------------

%prep 
%setup -q


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -r webui %{buildroot}%{_datadir}/%{name}

# Provide a wrapper script
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh
echo Check if guitarix is running...
pidof guitarix
if [[ $? != 0 ]]; then
	echo Starting guitarix...
	guitarix --rpcport=7000 >/dev/null 2>&1 &
else
	echo guitarix is already running, make sure that it is launched with '--rpcport=7000'
fi

websockify --web=%{_datadir}/%{name}/webui '*':8000 localhost:7000 > /var/log/%{name}.log 2>&1 &
xdg-open http://localhost:8000
EOF

chmod 755 %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2208 |21cr|gummi-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gummi
Version:	0.8.3
Release:	1
Summary:	A simple LaTeX editor
Group:		Publishing
License:	MIT
URL:		https://github.com/alexandervdm/gummi
Source0:	https://github.com/alexandervdm/gummi/releases/download/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	gtksourceview3-devel
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	gtkspell3-devel
BuildRequires:	intltool
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(synctex)

Requires:	texlive-latex

%description
Gummi is a LaTeX editor written in the C programming language using the
GTK+ interface toolkit. It was designed with simplicity and the novice
user in mind, but also offers features that speak to the more advanced user.

%files -f %{name}.lang
%doc AUTHORS ChangeLog
%license COPYING
%{_mandir}/man*/*.1*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/
%{_libdir}/%{name}/

#-----------------------------------------------
%prep
%autosetup

%build
%configure
%make_build

%install
%make_install
%find_lang %{name}
desktop-file-install                                 \
    --remove-key="Version"                           \
    --add-category="Publishing;"                     \
    --dir=%{buildroot}%{_datadir}/applications       \
    %{buildroot}%{_datadir}/applications/%{name}.desktop



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2209 |21cr|gupnp-tools-0.10.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	A collection of dev tools utilizing GUPnP and GTK+
Name:		gupnp-tools
Version:	0.10.3
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		https://download.gnome.org/sources/gupnp-tools
Source0:	https://download.gnome.org/sources/gupnp-tools/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gnome-icon-theme)
BuildRequires:	pkgconfig(gssdp-1.2)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(gupnp-1.2)
BuildRequires:	pkgconfig(gupnp-av-1.0)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
GUPnP is an object-oriented open source framework for creating UPnP
devices and control points, written in C using GObject and libsoup.
The GUPnP API is intended to be easy to use, efficient and flexible.

GUPnP-tools is a collection of developer tools utilizing GUPnP and GTK+.
It features a universal control point application as well as a sample
DimmableLight v1.0 implementation.

%files -f %{name}.lang
%doc AUTHORS README.md
%license COPYING
%{_bindir}/gssdp-discover
%{_bindir}/gupnp-*
%{_datadir}/applications/gupnp-*.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -Wno-error=format-security"
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2210 |21cr|gurlchecker-0.13.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Web page link validation program
Name:		gurlchecker
Version:	0.13.1
Release:	7
License:	GPLv2+
Group:		Networking/WWW
URL:		http://www.nongnu.org/gurlchecker/
Source0:	http://labs.libre-entreprise.org/frs/download.php/857/%{name}-%{version}.tar.gz
Patch0:		gurlchecker-0.13-tidydir.patch
Patch1:		gurlchecker-0.12-fix-str-fmt.patch
Patch2:		gurlchecker-0.13.1-gnutls.patch
Patch3:		gurlchecker-tidybuffio.patch
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	docbook-utils
#BuildRequires:	gtk-doc
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	openjade
BuildRequires:	perl(XML::Parser)
BuildRequires:	tidy-devel
BuildRequires:	pkgconfig(gnet-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libcroco-0.6)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(sqlite3)

%description
gURLChecker is a graphical web link checker. It can work on a whole
site, a single local page or a browser bookmarks file.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_mandir}/man1/*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-gtk-doc
%make

%install
%makeinstall_std

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

#icons
mkdir -p %{buildroot}%{_iconsdir} \
	 %{buildroot}%{_liconsdir} \
	 %{buildroot}%{_miconsdir}
convert -geometry 48x48 ui/%{name}_icon.png %{buildroot}%{_liconsdir}/%{name}.png
convert -geometry 32x32 ui/%{name}_icon.png %{buildroot}%{_iconsdir}/%{name}.png
convert -geometry 16x16 ui/%{name}_icon.png %{buildroot}%{_miconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2211 |21cr|guvcview-2.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	oldapi 2.0
%define	api 2.1
%define	libname %mklibname %{name} %{api} %{major}
%define	devname %mklibname %{name} -d

# FIXME: Even with the latest release it fails to build when both qt4 and qt5 devel
# are installed, because the build ends up using the qt4 moc with the qt5 sources.
# Since the upstream ticket #36 was closed, we need a way to force the use of the moc from qt5
%bcond_with qt5

Summary:	GTK+ UVC Viewer and Capturer
Name:		guvcview
Version:	2.0.8
Release:	1
Group:		Video
License:	GPLv3+
Url:		http://guvcview.sourceforge.net/
Source0:	http://sourceforge.net/projects/guvcview/files/source/%{name}-src-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	intltool
# Also for libgviewencoder
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(libpng)
# For libgviewaudio
BuildRequires:	pkgconfig(libpulse)
# For libgviewv4l2core
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(portaudio-2.0)
%if %{with qt5}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif
BuildRequires:	pkgconfig(sdl2)
# For libgviewrenderer
BuildRequires:	pkgconfig(x264)

%description
A simple interface for capturing and viewing video from devices supported by
the Linux UVC driver, although it should also work with any v4l2 compatible
device.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README.md
%license COPYING
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Core libraries needed by %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the core libraries for %{name}.

%files -n %{libname}
%doc README.md
%license COPYING
%{_libdir}/libgviewaudio-%{oldapi}.so.%{major}*
%{_libdir}/libgviewencoder-%{api}.so.%{major}*
%{_libdir}/libgviewrender-%{api}.so.%{major}*
%{_libdir}/libgviewv4l2core-%{api}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name} core libraries
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
%rename	%{_lib}guvcview1.1-devel

%description -n %{devname}
This package contains the development files for %{name} core libraries.

%files -n %{devname}
%license COPYING
%{_includedir}/%{name}-2/*/*.h
%{_libdir}/libgviewaudio.so
%{_libdir}/libgviewencoder.so
%{_libdir}/libgviewrender.so
%{_libdir}/libgviewv4l2core.so
%{_libdir}/pkgconfig/*.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-src-%{version}

# Fix perms
chmod -x includes/gview.h
chmod -x {ChangeLog,configure.ac}

%build
autoreconf -vfi
# We need a way to force the use of the moc from qt5
# if both qt4 and qt5 devel files are installed
%if %{with qt5}
export MOC=moc-qt5
%endif
%configure \
	--disable-debian-menu \
%if %{with qt5}
	--enable-qt5 \
%endif
	--disable-static
%make

%install
%makeinstall_std

desktop-file-edit \
	--add-category="X-AudioVideoCapture" \
	--set-icon="%{name}" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

# Move the provided icon in its place and provide more sizes
rm -rf %{buildroot}%{_datadir}/pixmaps
for size in 128 64 48 32 16; do
	install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
	convert data/icons/%{name}.png -resize ${size} %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

# Useless and rpmlint complains about it
rm -f %{buildroot}%{_docdir}/%{name}/{INSTALL,COPYING}

%find_lang %{name} gview_v4l2core %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2212 |21cr|gvolwheel-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:		gvolwheel
Version:	1.0
Release:	4
Summary:	Lightweight application to control the audio volume
License:	GPLv3+
Group:		Sound
Source:		http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
URL:		http://gvolwheel.sourceforge.net/
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	intltool

%description
GVolWheel is application which lets you control the volume easily
through a tray icon you can scroll on. Easily integrate with minimal
desktops (Openbox,IceWM,XFCE etc).

%prep
%setup -q

%build
%configure
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std

# remove installed doc, instead use %doc for it
%__rm -rf %{buildroot}%{_usr}/doc

# autostart
%__mkdir_p %{buildroot}%{_sysconfdir}/xdg/autostart
%__cat > %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop << EOF
[Desktop Entry]
Name=GVolWheel
Comment=Lightweight audio volume control application
Comment[ru]=Регулятор громкости
Exec=gvolwheel
Terminal=false
Type=Application
StartupNotify=false
EOF

%find_lang %{name}

%clean
%__rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc COPYING ChangeLog INSTALL README
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}
%{_sysconfdir}/xdg/autostart/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2213 |21cr|gwc-0.22_05-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

%define oversion 0.22
%define mversion 01
%define gwc_version %{oversion}-%{mversion}
# With version 0.22 the program changed name:
# see Changelog file for the reasons of such change
%define	oname	gtk-wave-cleaner

Summary:	Audio restoration application
Name:		gwc
Version:	0.22_05
Release:	1
License:	GPL
Group:		Sound
Url:		http://gwc.sourceforge.net/
Source0:	http://downloads.sourceforge.net/gwc/%{oname}-%{gwc_version}.tar.gz
Patch0:		%{name}-0.22.01-fix-makefiles.patch
Patch1:		%{name}-0.22.01-fix-desktop-file.patch
BuildRequires:	gtk-update-icon-cache
BuildRequires:	pkgconfig(alsa) => 0.9
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(glib-2.0) >= 2.30
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.16
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(sndfile) >= 1.0.2
BuildRequires:	pkgconfig(vorbis)

%description
GTK Wave Cleaner (GWC), is a tool for cleaning up noisey audio files, in
preparation for burning to CD's.  The typical application is to record the
audio from vinyl LP's, 45's, 78's, etc, to a hard disk as a 16bit, stereo,
44.1khz wave formated file, and then use GWC to apply denoising and declicking
algorithms.

%files
%doc README COPYING Changelog TODO
%doc gtk-wave-cleaner.html gtkrc-example.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{oname}.png
%{_iconsdir}/hicolor/scalable/apps/%{oname}.svg

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{gwc_version}
%apply_patches


%build
%global optflags %{optflags} -fcommon
autoreconf -vfi
%configure \
	--enable-static \
	--enable-ogg \
	--enable-mp3 \
	--enable-pa
make

%install
%makeinstall_std

# Fix .desktop filename
mv %{buildroot}%{_datadir}/applications/%{oname}.desktop \
%{buildroot}%{_datadir}/applications/%{name}.desktop

# Remove useless icon-cache
rm -f %{buildroot}%{_iconsdir}/hicolor/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2214 |21cr|gwe-0.15.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	System utility designed to provide information of NVIDIA card
Name:		gwe
Version:	0.15.5
Release:	3
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		https://gitlab.com/leinardi/gwe
Source0:	https://gitlab.com/leinardi/gwe/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(python3)
Requires:	dbus-common
Requires:	hicolor-icon-theme
Requires:	python3-gi
Requires:	python3-gi-cairo
Requires:	python3-gobject
Requires:	python3-matplotlib-gtk3
Requires:	python3dist(injector)
Requires:	python3dist(peewee)
Requires:	python3dist(py3nvml)
Requires:	python3dist(python-xlib)
Requires:	python3dist(pyxdg)
Requires:	python3dist(requests)
Requires:	python3dist(rx)
BuildArch:	noarch

%description
GWE is a GTK system utility designed to provide information, control the fans
and overclock your NVIDIA video card and graphics processor

%files
%doc CHANGELOG.md README.md RELEASING.md
%license COPYING.txt
%{_appdatadir}/*.xml
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/*/*.png
%{_iconsdir}/hicolor/symbolic/*/*.svg
%{python3_sitelib}/%{name}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2215 |21cr|gweled-0.9.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clone of Bejeweled, align 3 crystals in a row to make them disappear
Name:		gweled
Version:	0.9.1
Release:	8
License:	GPLv2+
Group:		Games/Puzzles
Url:		https://launchpad.net/gweled
Source0:	http://launchpad.net/gweled/trunk/%{version}/+download/%{name}-%{version}.tar.gz
#open without mode will cause a build error
Patch0:		gweled-0.9.1-fix-open.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(librsvg-2.0) 

%description
Gweled is a Gnome version of a popular PalmOS/Windows/Java game called
"Bejeweled" or "Diamond Mine". The aim of the game is to make
alignment of 3 or more gems, both vertically or horizontally by
swapping adjacent gems. The game ends when there are no possible moves
left.

%files -f %{name}.lang
%doc NEWS AUTHORS
%attr(2555, root, games) %{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/sounds/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%attr(664, games, games) %{_localstatedir}/games/%{name}.*.scores

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="-export-dynamic"
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2216 |21cr|gwget-1.0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with epiphany

Summary:	GUI Download manager using wget
Name:		gwget
Version:	1.0.4
Release:	8
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://gwget.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
Patch0:		gwget-1.0.2-format-strings.patch
Patch1:		gwget-1.0.4-glib.patch
Patch2:		gwget-0.99-fix-dbus-name.patch
Patch3:		gwget-1.00-linkage.patch
Patch4:		gwget-1.0.4-epiphany-230.patch
BuildRequires:	GConf2
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
%if %{with epiphany}
BuildRequires:	pkgconfig(epiphany-3.4)
%else
Obsoletes:	epiphany-gwget < %{EVRD}
%endif
Requires:	wget

%description
Gwget is a download manager for GNOME 2. It uses wget as a backend.
Currently, very basic wget options are available, supporting multiple
downloads, drag&drop and display the errors from wget process.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/*
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_datadir}/dbus-1/services/*.service
%{_datadir}/gwget/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

#---------------------------------------------------------------------------

%if %{with epiphany}
%package -n epiphany-gwget
Summary:	Epiphany extension, using gwget as downloader
Group: 		Networking/File transfer
Requires:	gwget = %{version}
Requires:	epiphany

%description -n epiphany-gwget
Gwget is a download manager for GNOME 2. It uses wget as a backend.
Currently, very basic wget options are available, supporting multiple
downloads, drag&drop and display the errors from wget process.

This package contains an extension for epiphany, the GNOME web browser,
which allows the browser to use gwget as an external file downloader.

%files -n epiphany-gwget
%doc COPYING
%{_libdir}/epiphany/*/extensions/*
%endif

#---------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .format
%patch1 -p1 -b .glib
%patch2 -p1
%patch3 -p1
%patch4 -p0 -b .ep

%build
%global optflags %{optflags} -fcommon
autoreconf -fi
%configure \
	--disable-static
%make

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall_std

install -D -m 0644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 0644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m 0644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# remove files not bundled
rm -rf %{buildroot}%{_prefix}/doc/ %{buildroot}%{_includedir}

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2217 |21cr|gwine-0.10.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(Gwine::.*\\)

Summary:	A Gnome application to manage your wine cellar
Name:		gwine
Version:	0.10.3
Release:	15
License:	GPLv2+
Group:		Databases
Url:		http://home.gna.org/gwine/index
Source0:	http://download.gna.org/gwine/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	GConf2
BuildRequires:	imagemagick
BuildRequires:	scrollkeeper
BuildRequires:	shared-mime-info
BuildRequires:	perl-Gnome2
BuildRequires:	perl-Gnome2-GConf
BuildRequires:	perl-Gtk2-GladeXML
BuildRequires:	perl-Locale-gettext
BuildRequires:	perl-devel
Requires:	perl-Gnome2
Requires:	perl-Gnome2-GConf
Requires:	perl-Gtk2-GladeXML
Requires:	perl-Locale-gettext
BuildArch:	noarch

%description
Gwine is a Gnome application to manage your wine cellar.

%files -f %{name}.lang
%{_bindir}/%{name}
%{perl_vendorlib}/*
%{_mandir}/*/*
%{_datadir}/%{name}
%{_datadir}/omf/%{name}
%{_datadir}/gnome/help/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix} XDG_DATA_DIRS=%{buildroot}%{_datadir}

perl -pi -e 's,%{name}.png,%{name},g' %{buildroot}%{_datadir}/applications/*

rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="Accessories" \
  --add-category="Database;Office" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

mkdir -p %{buildroot}%{_liconsdir} %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
convert -geometry 48x48 pixmaps/%{name}.png %{buildroot}%{_liconsdir}/%{name}.png
convert -geometry 32x32 pixmaps/%{name}.png %{buildroot}%{_iconsdir}/%{name}.png
convert -geometry 16x16 pixmaps/%{name}.png %{buildroot}%{_miconsdir}/%{name}.png

%find_lang %{name}

rm -rf %{buildroot}%{_localestatedir}/lib/scrollkeeper
rm -rf %{buildroot}%{_datadir}/mime

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2218 |21cr|g-wrap-1.9.15-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define modules_major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A tool for creating Scheme interfaces to C libraries
Name:		g-wrap
Version:	1.9.15
Release:	5
Epoch:		1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnucash.org
Source0:	http://download.savannah.gnu.org/releases/g-wrap/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	texinfo
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	guile22-devel
BuildRequires:	pkgconfig(libffi)
Requires:	guile22
Conflicts:	guile-lib

%description
g-wrap is a tool for creating Scheme interfaces to C libraries.  At
the moment it is most heavily focused on providing access to C
libraries from guile, but it also supports RScheme.

%files
%doc AUTHORS ChangeLog INSTALL NEWS README THANKS
%{_datadir}/guile/site/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for g-wrap
Group:		System/Libraries

%description -n %{libname}
g-wrap is a tool for specifying types, functions, and constants to
import into a Scheme interpreter, and for generating code (in C) to
interface these to the Guile and RScheme interpreters in particular.

%files -n %{libname}
%{_libdir}/*.so.%{major}*
%{_libdir}/%{name}/modules/*.so.%{modules_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries needed for g-wrap development
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
g-wrap is a tool for creating Scheme interfaces to C libraries.  At
the moment it is most heavily focused on providing access to C
libraries from guile, but it also supports RScheme.

You can provide access to a given C API by creating a specification
file describing the interface you want published at the Scheme level.
g-wrap will handle generating all the lower level library interface
code so that the C library shows up as a set of Scheme functions.

You should install this package if you need to compile programs that
need to use g-wrap C<->Scheme functionality

%files -n %{devname}
%{_bindir}/*
%{_includedir}/g-wrap-wct.h
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/%{name}/modules/*.so
%{_infodir}/%{name}*
%{_datadir}/aclocal/%{name}.m4
%{_libdir}/pkgconfig/g-wrap-2.0-guile.pc

#----------------------------------------------------------------------------

%prep
%setup -q

touch config.rpath
aclocal -I m4
autoconf
automake --add-missing

%build
# --disable-Werror required for gcc-4.3 & g-wrap-1.9.11:
# core-runtime.c:55: warning: ignoring return value of 'vasprintf', declared with attribute warn_unused_result
%configure \
	--disable-static \
	--disable-Werror
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2219 |21cr|gwyddion-2.62-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# glibc-2.36 fix
%global Werror_cflags %{nil}
%global optflags %{optflags} -Wno-error=format-security

%define major 0
%define api 2
%define libname %mklibname %{name} %{api} %{major}
%define libgwyapp %mklibname gwyapp %{api} %{major}
%define libgwydgets %mklibname gwydgets %{api} %{major}
%define libgwydraw %mklibname gwydraw %{api} %{major}
%define libgwymodule %mklibname gwymodule %{api} %{major}
%define libgwyprocess %mklibname gwyprocess %{api} %{major}
%define devname %mklibname %{name} %{api} -d

Summary:	An SPM data visualization and analysis tool
Name:		gwyddion
Version:	2.62
Release:	1
License:	GPLv2+
Group:		Sciences/Other
Url:		http://gwyddion.net/
Source0:	http://sourceforge.net/projects/gwyddion/files/gwyddion/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	ruby
BuildRequires:	bzip2-devel
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkglext-1.0)
BuildRequires:	pkgconfig(gtksourceview-2.0)
BuildRequires:	pkgconfig(IlmBase)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(unique-1.0)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(zlib)

%description
Gwyddion is a modular SPM (Scanning Probe Microsopy) data visualization and
analysis tool written with Gtk+.

It can be used for all most frequently used data processing operations
including: leveling, false color plotting, shading, filtering, denoising, data
editing, integral transforms, grain analysis, profile extraction, fractal
analysis, and many more.  The program is primarily focused on SPM data analysis
(e.g. data obtained from AFM, STM, NSOM, and similar microscopes).  However, it
can also be used for analysis of SEM (Scanning Electron Microscopy) data or any
other 2D data.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_bindir}/%{name}-thumbnailer
%doc %{_docdir}/%{name}
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-thumbnailer.1*
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_libdir}/%{name}/modules/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/net.gwyddion.Gwyddion.appdata.xml
%{_datadir}/mime/packages/gwyddion.xml
%{_datadir}/thumbnailers/gwyddion.thumbnailer

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for Gwyddion
Group:		System/Libraries

%description -n %{libname}
Shared library for Gwyddion and its modules.

%files -n %{libname}
%{_libdir}/lib%{name}%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgwyapp}
Summary:	Shared library for Gwyddion
Group:		System/Libraries
Conflicts:	%{_lib}gwyddion2_0 < 2.34

%description -n %{libgwyapp}
Shared library for Gwyddion and its modules.

%files -n %{libgwyapp}
%{_libdir}/libgwyapp%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgwydgets}
Summary:	Shared library for Gwyddion
Group:		System/Libraries
Conflicts:	%{_lib}gwyddion2_0 < 2.34

%description -n %{libgwydgets}
Shared library for Gwyddion and its modules.

%files -n %{libgwydgets}
%{_libdir}/libgwydgets%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgwydraw}
Summary:	Shared library for Gwyddion
Group:		System/Libraries
Conflicts:	%{_lib}gwyddion2_0 < 2.34

%description -n %{libgwydraw}
Shared library for Gwyddion and its modules.

%files -n %{libgwydraw}
%{_libdir}/libgwydraw%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgwymodule}
Summary:	Shared library for Gwyddion
Group:		System/Libraries
Conflicts:	%{_lib}gwyddion2_0 < 2.34

%description -n %{libgwymodule}
Shared library for Gwyddion and its modules.

%files -n %{libgwymodule}
%{_libdir}/libgwymodule%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgwyprocess}
Summary:	Shared library for Gwyddion
Group:		System/Libraries
Conflicts:	%{_lib}gwyddion2_0 < 2.34

%description -n %{libgwyprocess}
Shared library for Gwyddion and its modules.

%files -n %{libgwyprocess}
%{_libdir}/libgwyprocess%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers, libraries and tools for Gwyddion module development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libgwyapp} = %{EVRD}
Requires:	%{libgwydgets} = %{EVRD}
Requires:	%{libgwydraw} = %{EVRD}
Requires:	%{libgwymodule} = %{EVRD}
Requires:	%{libgwyprocess} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 2.34
Conflicts:	%{name}-devel < 2.34

%description -n %{devname}
Header files, libraries and tools for Gwyddion module and plug-in development.
This package also contains the API docmentation and sample plug-ins in various
programming languages.

%files -n %{devname}
%doc devel-docs/CODING-STANDARDS
%doc data/%{name}.vim
%{_includedir}/%{name}/
%{_datadir}/gtk-doc/html/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/gwyddion.pc
%{_libdir}/%{name}/include/gwyconfig.h
# Plug-ins and plug-in devel stuff
%{_libdir}/%{name}/perl/
%{_libdir}/%{name}/python/
%{_libdir}/%{name}/ruby/

#----------------------------------------------------------------------------

%package thumbnailer-kde4
Summary:	KDE4 gwyddion thumbnailer module
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description thumbnailer-kde4
Gwyddion-thumbnailer based KDE thumbnail creator extension module for SPM
files.

%files thumbnailer-kde4
%{_libdir}/kde4/gwythumbcreator.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--without-pascal \
	--disable-rpath \
	--with-kde4-thumbnailer \
	--with-fftw3 \
	--with-gl \
	--enable-library-bloat
%make

%install
%makeinstall_std

%find_lang %{name}

# Perl, Python, and Ruby modules are private, remove the Perl man page.
rm %{buildroot}%{_mandir}/man3/Gwyddion::dump.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2220 |21cr|gxemul-0.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Instruction-level machine emulator
Name:		gxemul
Version:	0.6.2
Release:	1
License:	BSD
Group:		Emulators
Url:		http://gavare.se/gxemul/
Source0:	http://gavare.se/gxemul/src/%{name}-%{version}.tar.gz
Patch0:		gxemul-0.6.0.cstdlib.patch
BuildRequires:	pkgconfig(x11)

%description
GXemul is an experimental instruction-level machine emulator. Several
emulation modes are available. In some modes, processors and
surrounding hardware components are emulated well enough to let
unmodified operating systems (e.g. NetBSD) run as if they were running
on a real machine.

Currently supported processors include ARM, MIPS, PowerPC, and SuperH.

%files
%doc LICENSE HISTORY README doc/* demos/
%{_bindir}/gxemul
%{_mandir}/man1/gxemul.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .cstdlib

%build
# inlining should help for this kind of emulation project
export CFLAGS="%{optflags} -finline-functions -O3"
export CXXFLAGS="%{optflags} -finline-functions -O3"
./configure
%make

%install
install -m755 gxemul -D %{buildroot}%{_bindir}/gxemul
install -m644 man/gxemul.1 -D %{buildroot}%{_mandir}/man1/gxemul.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2221 |21cr|gxine-0.5.910-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	with_gtk3	0

Summary:	GTK+ frontend for the Xine multimedia player
Name:		gxine
Version:	0.5.910
Release:	2
License:	GPLv2+
Group:		Video
Url:		http://xine.sf.net
Source0:	http://prdownloads.sourceforge.net/xine/%{name}-%{version}.tar.xz
# Workaround for a bug in 0.5.909 build process:
# the MimeType keyword got a spurious newline after 
# "x-content/video-svcd;", making the .desktop validation pass to fail.
# So use a manually corrected file
Source1:	%{name}.desktop
Patch0:		gxine-no-gnome-mime-registration.patch
Patch1:		gxine-0.5.909-non-separate-toolbar.patch
# some multilib issues
Patch3:		gxine-0.5.907-lirc.patch
BuildRequires:	gettext
BuildRequires:	xine-plugins
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0) >= 2.32.0
%if %{with_gtk3}
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.0.0
%else
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.18
%endif
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libxine) >= 1.1.8
BuildRequires:	pkgconfig(mozjs185)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(pango) >= 1.12.0
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xtst)
Requires:	xine-plugins

%description
This is a graphical frontend for Xine, based on the GTK+ toolkit.

%files -f %{name}.lang
%doc README ChangeLog AUTHORS
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/%{name}
%{_bindir}/%{name}_client
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%{_datadir}/%{name}/
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}_client.1*
%lang(de) %{_mandir}/de/man1/%{name}*
%lang(es) %{_mandir}/es/man1/%{name}*

#----------------------------------------------------------------------------

%package mozilla
Summary:	Xine video player plugin for Mozilla
Group:		Video
Requires:	%{name} = %{EVRD}

%description mozilla
This is a video player plugin for Mozilla and compatible web browsers based
on the Xine engine.

%files mozilla
%doc COPYING
%{_libdir}/mozilla/plugins/gxineplugin.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%global optflags %{optflags} -fcommon
autoreconf -vif
%configure \
	--disable-static \
%if %{with_gtk3}
	--with-gtk3 \
%endif
	--with-dbus \
	--with-logo-format=image \
	--with-gudev \
	--with-browser-plugin \
	--disable-integration-wizard \
	--enable-watchdog \
	--disable-own-playlist-parsers \
	--disable-deprecated
%make


%install
%makeinstall_std

# Workaround the spurious newline in the MimeType key of the provided .desktop file
rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/

# Move mozilla plugin in the right place
mkdir -p %{buildroot}%{_libdir}/mozilla/plugins
mv %{buildroot}%{_libdir}/gxine/gxineplugin.so %{buildroot}%{_libdir}/mozilla/plugins

%find_lang %{name} %{name}.theme %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2222 |21cr|gxkb-0.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		gxkb
Version:	0.9.4
Release:	1
Summary:	X11 keyboard indicator and switcher
Group:		System/X11
License: GPLv2+
URL:		https://github.com/zen-tools/gxkb
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	by.png
Source2:	ru.png
Patch0:		gxkb-restore-flags.patch
BuildRequires:	automake
BuildRequires:	desktop-file-utils

BuildRequires:	pkgconfig(glib-2.0) >= 2.16.0
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libxklavier) >= 5.0

%description
gxkb is a tiny indicator applet which allows to quickly switch between
different keyboard layouts in X. A flag corresponding to the country of the
active layout is shown in the indicator area. The applet is written in C and
uses GTK+ library and therefore does not depend on any GNOME components.

%files
%doc README.md
%doc %{_docdir}/gxkb/AUTHORS
%doc %{_docdir}/gxkb/CREDITS
%doc %{_docdir}/gxkb/NEWS
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.xpm
%{_licensedir}/%{name}/
%{_mandir}/man1/*.1*

#-----------------------------------------------------------------------
%prep
%autosetup -p1

cp %{SOURCE1} data/flags/
cp %{SOURCE2} data/flags/

%build
./autogen.sh
%configure \
    --enable-appindicator=no
%make_build


%install
%make_install

# Move license file in proper location
mkdir -p %{buildroot}%{_licensedir}/%{name}/
mv %{buildroot}%{_docdir}/%{name}/COPYING %{buildroot}%{_licensedir}/%{name}/


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2223 |21cr|gxmessage-2.12.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An xmessage substitute for gtk-2.0
Name:		gxmessage
Version:	2.12.4
Release:	5
License:	GPLv3+
URL:		http://homepages.ihug.co.nz/~trmusson
Group:		Development/GNOME and GTK+
Source:		http://homepages.ihug.co.nz/~trmusson/stuff/%name-%version.tar.gz
BuildRequires:	gtk+2-devel
BuildRequires:	intltool

%description
To quote from the xmessage manual page, xmessage is a program to
"display a message or query in a window." It returns an exit code based
on the user's response. gxmessage is a gtk-2.0 based clone of xmessage.


%prep
%setup -q


%build
%configure
%make

%install
%__rm -rf %buildroot
%makeinstall_std
%find_lang %name

%clean
%__rm -rf %buildroot

%files -f %name.lang
%defattr (0755,root,root,0755)
%_bindir/%name
%defattr (0644,root,root,0755)
%doc AUTHORS ChangeLog README
%_mandir/man1/%name.1*
%{_infodir}/gxmessage.info*
%{_iconsdir}/hicolor/*/apps/gxmessage.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2224 |21cr|gxneur-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	X Neural Switcher - GTK2 interface
Name:		gxneur
Version:	0.20.0
Release:	1
Epoch:		2
License:	GPLv2+
Group:		System/X11
Url:		http://www.xneur.ru
Source0:	%{name}_%{version}.orig.tar.gz
Patch1:		01-gconf.patch
Patch2:		02-gconf.patch
Patch3:		03-glib-deprecated.patch
Patch4:		04-no-werror.patch
# cmake build evail on version 0.21.0, uncomment after update to 0.21.0
#BuildRequires:	cmake
#BuildRequires:	extra-cmake-modules
BuildRequires:	gettext-devel
BuildRequires:	intltool
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(xneur)
Requires:	xneur

%description
X Neural Switcher (http://www.xneur.ru).
Automatical switcher of keyboard layout (GTK2 frontend).

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS
%{_bindir}/*
%{_iconsdir}/*
%{_datadir}/%{name}/*
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/com.gxneur.settings.gschema.xml
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
#%%cmake -DCMAKE_BUILD_TYPE=Release -DAPPINDICATOR=OFF -DGCONF=ON
#%%cmake

autoreconf -vfi
%configure --without-appindicator
%make

%install
%makeinstall_std

#mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas
#cp data/com.gxneur.settings.gschema.xml %{buildroot}%{_datadir}/glib-2.0/schemas

#small_hack
mkdir -p %{buildroot}%{_datadir}/%{name}/pixmaps/
pushd pixmaps
  for i in hicolor_apps_48x48_gxneur-*; do cp -f $i ${i/hicolor_apps_48x48_gxneur-/}; done
popd
cp -f pixmaps/ru.png %{buildroot}%{_datadir}/%{name}/pixmaps/ru\(winkeys\).png

install -dm 755 %{buildroot}%{_datadir}/applications
cat > %{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=GXNeur
GenericName=X Neural Switcher
GenericName[ru]=Переключатель раскладок клавиатуры
Comment=Automatic keyboard layout switcher
Comment[ru]=Автоматический переключатель раскладок клавиатуры
Icon=%{_datadir}/%{name}/pixmaps/gxneur.png
Exec=gxneur --keyboard-properties="/usr/bin/kcmshell4 kcm_keyboard || /usr/bin/gnome-control-center"
Terminal=false
Type=Application
Categories=GTK;GNOME;Application;Utility;
StartupNotify=false
EOF
echo %{buildroot}%{_datadir}/applications/
install -m 0644 %{name}.desktop \
%{buildroot}%{_datadir}/applications/%{name}.desktop

#dirty hack for resolve conflict with hicolor-icon-theme
rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2225 |21cr|gxtuner-3.0-0.2a855b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 2a855b0b7cdbefda82aea65bf0474812312f7106
%define commit_short %(echo %{commit} | head -c6)

Name:		gxtuner
Summary:	A simple guitar and bass tuner for jack
Version:	3.0
Release:	0.%{commit_short}.1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/brummer10/gxtuner
Source0:	https://github.com/brummer10/gxtuner/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	libzita-resampler-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(jack)


%description
A simple (linux) guitar and bass tuner for jack with full jack session
managment support.
It uses a equal-tempered scale based on A4 = 440 Hz. The A4 reference pitch
can be adjusted at command line and/or runtime in a half tone range from
415Hz to 467Hz.
It uses also a default threshold level at 0.001; threshold can be adjusted at
command line and/or runtime in a range of 0.001 <-> 0.5

%files
%doc README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{commit}


%build
%setup_compile_flags
LDFLAGS="-lX11" make


%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_datadir}/applications %{buildroot}%{_iconsdir}
make PREFIX=%{buildroot}%{_prefix} PIXMAPS_DIR=%{buildroot}%{_iconsdir} install

chmod -x %{buildroot}%{_datadir}/applications/%{name}.desktop
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2226 |21cr|gzdoom-4.12.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude libdiscord-rpc.*|libminiz.so.*

Summary:	Enhanced Doom engine
Name:		gzdoom
Version:	4.12.2
Release:	1
License:	GPLv3+
Group:		Games/Arcade
Url:		http://gzdoom.drdteam.org
Source0:	https://github.com/coelckers/gzdoom/archive/g%{version}.tar.gz?/%{name}-g%{version}.tar.gz
# From http://forum.zdoom.org/viewtopic.php?f=4&t=33119
Source1:	gzdoom.png
Patch0:		gzdoom-g4.10.0-sse2.patch
Patch1:		gzdoom-4.5.0-data-path.patch
Patch2:		gzdoom-nullptr.patch
BuildRequires:	clang
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	nasm
BuildRequires:	patchelf
BuildRequires:	spirv-headers
BuildRequires:	bzip2-devel
#BuildRequires:	fmod4-devel # non-free
BuildRequires:	glslang-devel
BuildRequires:	gomp-devel
BuildRequires:	stdc++-devel
BuildRequires:	miniz-devel
BuildRequires:	zmusic-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgme)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(xcursor)
Requires:	fluidsynth
Requires:	kdialog
# FIXME: now require libminiz.so not libminiz.so.0.3
Requires:	miniz-devel
# i686 build fail, may be need use c++11, we use c++17 for build
ExcludeArch:	%{ix86}

%description
GZDoom is a Doom source port based on ZDoom. It features an OpenGL renderer
and lots of new features, among them:
- 3D floors.
- Dynamic lights.
- Quake2/Unreal style skyboxes.
- True color texture support.
- Model support.
Warning! Make sure to place WAD files into %{_datadir}/doom/.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_defaultdocdir}/%{name}/*.txt
%{_defaultdocdir}/%{name}/console.*
%{_defaultdocdir}/%{name}/licenses/*.txt
%{_defaultdocdir}/%{name}/licenses/*.TXT
%{_gamesdatadir}/doom/fm_banks/*
%{_gamesdatadir}/doom/soundfonts/%{name}.sf2
%{_libdir}/gzdoom/libdiscord-rpc.so
%{_datadir}/doom/brightmaps.pk3
%{_datadir}/doom/%{name}.pk3
%{_datadir}/doom/lights.pk3
%{_datadir}/doom/game_support.pk3
%{_datadir}/doom/game_widescreen_gfx.pk3
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-g%{version}

# Fix perms
find . -name "*cpp" -o -name "*.h" | xargs chmod 0644

%build
# We need RelWithDebInfo otherwise we get an empty debug package
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo	\
	-DINSTALL_PK3_PATH="%{_datadir}/doom/"	\
	-DSEND_ANON_STATS=OFF
%make

%install
%makeinstall_std -C build

# Install a menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=GZDoom
Comment=Enhanced Doom engine
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# Massage and install more icons
for N in 16 32 48 64 128 256;
do
	convert %{SOURCE1} -scale ${N}x${N} $N.png;
	install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# install needed libdiscord-rpc
install -D -m0755 build/libraries/discordrpc/src/libdiscord-rpc.so %{buildroot}%{_libdir}/gzdoom/libdiscord-rpc.so
# and change rpath
patchelf --set-rpath '$ORIGIN/../%{_lib}/gzdoom' %{buildroot}%{_bindir}/*
patchelf --set-rpath '$ORIGIN' %{buildroot}%{_libdir}/gzdoom/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2227 |21cr|gzrt-0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The gzip Recovery Toolkit
Name:		gzrt
Version:	0.8
Release:	5
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://www.urbanophile.com/arenn/hacking/gzrt/gzrt.html
Source0:	http://www.urbanophile.com/arenn/hacking/gzrt/%{name}-%{version}.tar.gz
Patch0:		gzrt-0.8-optflags.patch
BuildRequires:	pkgconfig(zlib)

%description
The gzip Recovery Toolkit attempts to automate the recovery of data
from corrupted gzip files (including tarballs) through a program called
gzrecover.

%files
%doc ChangeLog README
%{_bindir}/gzrecover
%{_mandir}/man1/gzrecover.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%setup_compile_flags
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
cp -p gzrecover %{buildroot}%{_bindir}
cp -p gzrecover.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2228 |21cr|h264enc-10.4.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		h264enc
Version:	10.4.7
Release:	4
Summary:	An interactive menu-driven frontend for mencoder
Group:		Video
License:	GPLv2+
Url:		http://h264enc.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/h264enc/h264enc/%{name}-%{version}.tar.gz
BuildRequires:	gzip
Requires:	aften
Requires:	bc
Requires:	dcaenc
Requires:	findutils
Requires:	flac
Requires:	gawk
Requires:	lsdvd
Requires:	mailx
Requires:	mencoder
Requires:	mkvtoolnix
Requires:	mplayer
Requires:	nano
Requires:	ogmtools
Requires:	opus-tools
Requires:	pv
Requires:	vorbis-tools
# Actually these are required packages, but are placed in Restricted
Recommends:	faac
Recommends:	x264
### TODO: push gpac from MRB in plf ###
Recommends:	gpac
BuildArch:	noarch

%description
An advanced and powerful interactive menu-driven shell script written for the
GNU/Linux operating system which can help you to encode a DVD, a video file, a
directory with video files or a (S)VCD to the H.264/MPEG-4 Part 10/AVC video
format using the MEncoder encoder from the MPlayer project and the libx264
library. It supports muxing the final encode from AVI to Matroska, from AVI to
OGM, from AVI to TS and from AVI to the MP4 container.

%files
%doc ./installed-docs/*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

##############################################################################

%prep
%setup -q
sed -i -e "s|^PREFIX=.*$||" \
  -e "s|^DOCDIR=.*$|DOCDIR=./installed-docs|" \
  -e 's|^MANDIR=.*$|MANDIR=$PREFIX/share/man/man1|' \
  ./install

sed -i -e "s|\r$||" matrices/eqm_avc_hr_matrix
sed -i -e "s|/usr/local|%{_prefix}|" doc/README.matrices


%build
echo "I'm a shell script"


%install
PREFIX="%{buildroot}%{_prefix}" ./install
rm ./installed-docs/uninstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2229 |21cr|hackrf-2021.03.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
#define devstat %%mklibname %%{name} -d -s

Name:           hackrf
Version:	2021.03.1
Release:	1
Summary:        A project to produce a low cost open source software radio platform
Group:          Communications
License:        GPLv2
# https://github.com/mossmann/hackrf/wiki
URL:            https://github.com/mossmann/%{name}/wiki
Source0:        https://github.com/mossmann/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz

BuildRequires:  cmake
BuildRequires:  pkgconfig(libusb)
BuildRequires:  systemd
BuildRequires:  pkgconfig(fftw3)

%description
Hardware designs and software for HackRF, a project to produce a low cost, open
source software radio platform.

%package -n %{libname}
Summary:        Library files for %{name}
Requires:       %{name} = %{version}-%{release}

%package -n %{devname}
Summary:        Development files for %{name}
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%package doc
Requires:       %{name} = %{version}-%{release}
Summary:        Supplemental documentation for HackRF
BuildArch:      noarch

%if %{defined devstat}
%package -n %{devstat}
Summary:        Static libraries for libhackrf
Requires:       %{name}-devel = %{version}-%{release}
Provides:       %{name}-static-devel = %{version}-%{release}

%description -n %{devstat}
Static libraries for libhackrf.

%files -n %{devstat}
%{_libdir}/libhackrf.a
%endif

%description -n %{devname}
Files needed to develop software against libhackrf.

%description -n %{libname}
hackrf library files.

%description doc
Supplemental documentation for HackRF. For more information, visit the wiki at
https://github.com/mossmann/hackrf/wiki

%prep
%setup -q

# Fix "plugdev" nonsense
sed -i -e 's/GROUP="plugdev"/ENV{ID_SOFTWARE_RADIO}="1"/g' host/libhackrf/53-hackrf.rules

%build
pushd host
%cmake \
    -DINSTALL_UDEV_RULES=on \
    -DUDEV_RULES_PATH=%{_udevrulesdir}
%make_build
popd

%install
%make_install -C host/build

%if ! %{defined devstat}
rm -f %{buildroot}%{_libdir}/libhackrf.a
%endif

%files
%doc TRADEMARK Readme.md
%{_bindir}/hackrf_*
%{_udevrulesdir}/53-hackrf.rules

%files -n %{libname}
%{_libdir}/libhackrf.so.%{major}{,.*}

%files -n %{devname}
%{_includedir}/libhackrf/hackrf.h
%{_libdir}/pkgconfig/libhackrf.pc
%{_libdir}/libhackrf.so

%files doc
%doc doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2230 |21cr|hackwhite_dune-0.31-0.beta556.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta 556

Summary:	A graphical VRML97 editor and animation tool (beta version)
Name:		hackwhite_dune
Version:	0.31
Release:	0.beta%{beta}.2
License:	GPLv2+
Group:		Graphics
Url:		http://vrml.cip.ica.uni-stuttgart.de/dune/
Source0:	http://vrml.cip.ica.uni-stuttgart.de/dune/white_dune-%{version}beta%{beta}.tar.gz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	jpeg-devel
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)
Conflicts:	white_dune

%description
The dune program is a graphical VRML97 editor and animation tool.
VRML97 (Virtual Reality Modelling Language) is the ISO standard for
displaying 3D data over the web. It has support for animation, realtime
interaction and multimedia (image, movie, sound). VRML97 can be written
by popular programs like maya, catia, 3D Studio MAX, cinema4D and others.
Dune can read VRML97 files, display and let the user change the
scenegraph/fields. Some documentation how to use dune is included.
Beside some support for the VRML200x style nurbs node, dune has only a few
3D Modelling features. For artistic work, the usage of a static 3D modeller
with VRML97 export features is recommended. Examples for free/lowcost static
3D modellers available under Linux are sced, ppmodeler or ac3d.
Dune can load and store x3d (next generation VRML xml format) files,
if configured to work with the nist.gov x3d translators.
Advanced features of dune like the usage of 3Drevelator shutterglases with
the commercial Linux XIG X11 Server (DX/platium) require recompilation of
the source package.

%files
%doc docs
%{_bindir}/dune
%{_mandir}/man1/*
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n white_dune-%{version}beta%{beta}

%build
%configure

rm Makefile
cd src && make RPM_OPT_FLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

install -m 755 bin/dune %{buildroot}/%{_bindir}/dune
install -m 644 man/dune.1 %{buildroot}%{_mandir}/man1/dune.1

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=A graphical VRML97 editor and animation tool
Exec=%{_bindir}/dune
Icon=graphics_section
Terminal=false
Type=Application
Categories=Graphics;3DGraphics;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2231 |21cr|halibut-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	TeX-like software manual tool
Name:		halibut
Version:	1.2
Release:	1
License:	MIT
Group:		Text tools
Url:		http://www.chiark.greenend.org.uk/~sgtatham/halibut.html
Source0:	http://www.chiark.greenend.org.uk/~sgtatham/%{name}/%{name}-%{version}.tar.gz

%description
Halibut is yet another text formatting system, intended primarily for
writing software documentation. It accepts a single source format and
outputs a variety of formats, planned to include text, HTML, Texinfo,
Windows Help, Windows HTMLHelp, PostScript and PDF. It has comprehensive
indexing and cross-referencing support, and generates hyperlinks within
output documents wherever possible.

%files
%doc LICENCE html
%{_bindir}/halibut
%{_mandir}/man1/*.1*

#---------------------------------------------------------------------

%package	-n vim-halibut
Summary:	Syntax file for the halibut manual tool
Group:		Editors
Requires:	vim-common
BuildArch:	noarch

%description -n vim-halibut
This package provides vim syntax support for Halibut input files (*.but).

%files -n vim-halibut
%doc LICENCE
%{_datadir}/vim/syntax/*.vim

#---------------------------------------------------------------------

%prep
%setup -q

%build
sed -i 's/CFLAGS += -g/CFLAGS += /g' Makefile
export CFLAGS="%{optflags}"
make VERSION="%{version}"
%make -C doc

%install
%makeinstall INSTALL="install -Dp"
install -d  html
install -pm 0644 doc/*.html html
install -d %{buildroot}%{_datadir}/vim/syntax
install -pm 0644 misc/halibut.vim %{buildroot}%{_datadir}/vim/syntax

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2232 |21cr|haltsys-0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	Tool to halt LTSP terminals
Name:		haltsys
Version:	0.2
Release:	9
License:	GPL
Group:		System/Libraries
URL:		http://www.ltsp.org
Source0:	http://www.ltsp.org/tarballs/%{name}-%{version}.tar.bz2
BuildRequires:	dietlibc-devel

%description
This program is used in LTSP to halt the terminals.

%prep

%setup -q -n %{name}

%build

diet gcc -Os -o %{name} %{name}.c

%install
rm -rf %{buildroot}

install -d %{buildroot}/sbin
install -m0755 haltsys %{buildroot}/sbin/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%attr(0755,root,root) /sbin/haltsys

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2233 |21cr|hamlib-4.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define major_cxx 4
%define libname_cxx %mklibname %{name}++ %{major_cxx}
%define devname_cxx %mklibname %{name}++ -d

%define libname_tcl %mklibname hamlibtcl1.0 -d
%define libname_lua %mklibname hamliblua1.0 -d

Summary:	Control radio transceivers and receivers
Name:		hamlib
Version:	4.5.5
Release:	1
License:	LGPLv2+
Group:		Communications
Url:		http://www.hamlib.org
Source0:	https://github.com/Hamlib/Hamlib/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0:		hamlib-aarch64.patch
BuildRequires:	doxygen
BuildRequires:	swig
BuildRequires:	gd-devel
BuildRequires:	readline-devel
BuildRequires:	lua-devel
BuildRequires:	perl-devel
BuildRequires:	libnova-devel
BuildRequires:	pkgconfig(libindi)
BuildRequires:	indi-devel-static
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	perl(ExtUtils::MakeMaker)

%description
Hamlib provides a standardized programming interface that applications
can use to send the appropriate commands to a radio.

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities to support the hamlib radio control library
Group:		Communications

%description utils
Hamlib provides a standardized programming interface that applications
can use to send the appropriate commands to a radio.

This package provides a command-line utility to test the hamlib library and
to control transceivers if you're short of anything more sophisticated. 

%files utils
%doc AUTHORS ChangeLog
%{_mandir}/man1/*
%{_mandir}/man7/hamlib-primer.7.xz
%{_mandir}/man7/hamlib-utilities.7.xz
%{_mandir}/man7/hamlib.7.xz
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Run-time library to control radio transceivers and receivers
Group:		Communications
Recommends:	%{name}-plugins
%rename		%{name}

%description -n %{libname}
Hamlib provides a standardized programming interface that applications
can use to send the appropriate commands to a radio.

%files -n %{libname}
%doc AUTHORS ChangeLog PLAN README THANKS
%{_libdir}/libhamlib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library to control radio transcievers and receivers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Hamlib provides a standardized programming interface that applications
can use to send the appropriate commands to a radio.

This package provides the development files and headers.

%files -n %{devname}
%doc %{_docdir}/hamlib
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/rig.h
%{_includedir}/%{name}/riglist.h
%{_includedir}/%{name}/rig_dll.h
%{_includedir}/%{name}/rotator.h
%{_includedir}/%{name}/rotlist.h
%{_includedir}/%{name}/ampclass.h
%{_includedir}/%{name}/amplifier.h
%{_includedir}/%{name}/amplist.h
%{_includedir}/%{name}/config.h
%{_datadir}/aclocal/hamlib.m4
%{_libdir}/pkgconfig/hamlib.pc
%{_libdir}/libhamlib.so

#----------------------------------------------------------------------------

%package -n %{libname_cxx}
Summary:	Hamlib radio control library C++ binding
Group:		Communications

%description -n %{libname_cxx}
Hamlib provides a standardized programming interface that applications
can use to send the appropriate commands to a radio.

This package contains Hamlib radio control library C++ language binding.

%files -n %{libname_cxx}
%doc AUTHORS ChangeLog
%{_libdir}/libhamlib++.so.%{major_cxx}*

#----------------------------------------------------------------------------

%package -n %{devname_cxx}
Summary:	Hamlib radio control library C++ binding development headers and libraries
Group:		Development/C++
Requires:	%{libname_cxx} = %{EVRD}
Provides:	%{name}++-devel = %{EVRD}

%description -n %{devname_cxx}
Hamlib provides a standardized programming interface that applications
can use to send the appropriate commands to a radio.

This package contains Hamlib radio control library C++ binding development
headers and libraries for building C++ applications with Hamlib.

%files -n %{devname_cxx}
%doc README.developer
%{_libdir}/libhamlib++.so
%{_includedir}/%{name}/rigclass.h
%{_includedir}/%{name}/rotclass.h

#----------------------------------------------------------------------------

%package -n perl-%{name}
Summary:	Hamlib radio control library Perl binding
Group:		Development/Perl

%description -n perl-%{name}
Hamlib PERL Language bindings to allow radio control from PERL scripts.

%files -n perl-%{name}
%doc COPYING.LIB
%{perl_archlib}/Hamlib.pm
%{perl_archlib}/auto/Hamlib/Hamlib.so

#----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	Hamlib radio control library Python binding
Group:		Development/Python

%description -n python-%{name}
Hamlib Python Language bindings to allow radio control from Python scripts.

%files -n python-%{name}
%doc COPYING.LIB
%{python3_sitearch}/*.py*
%{python3_sitearch}/_Hamlib.so
%{python3_sitearch}/__pycache__

#----------------------------------------------------------------------------

%package -n %{libname_tcl}
Summary:	Hamlib radio control library TCL binding
Group:		System/Libraries
Provides:	%{name}-tcl-devel = %{version}-%{release}

%description -n %{libname_tcl}
Hamlib TCL Language bindings to allow radio control from TCL scripts.

%files -n %{libname_tcl}
%doc COPYING.LIB
%{tcl_sitearch}/Hamlib/hamlibtcl*.so

#----------------------------------------------------------------------------

%package -n %{libname_lua}
Summary:	Hamlib radio control library lua binding
Group:		System/Libraries
Provides:	%{name}-lua-devel = %{version}-%{release}

%description -n %{libname_lua}
Hamlib lua Language bindings to allow radio control from TCL scripts.

%files -n %{libname_lua}
%doc COPYING.LIB
%{_libdir}/lua/*/Hamliblua.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure \
        --with-ldtl-include=%{_includedir} \
        --with-ldtl-lib=%{_libdir} \
        --disable-static \
        --with-xml-binding \
        --with-tcl-binding \
        --with-lua-binding \
        --with-perl-binding \
        --with-python-binding

# broken paralel build for libs, drivers, and programs
make

%install
%makeinstall_std

find %{buildroot} -type f -name Hamlib.so -exec chmod 0755 {} ';'
find %{buildroot} -type f -name pkgIndex.tcl -exec rm -f {} ';'
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name Hamlib.bs -exec rm -f {} ';'
find %{buildroot} -type f -name perltest.pl -exec rm -f {} ';'

%if "%{_lib}" == "lib64"
#move lua plugin to right plase
mv %{buildroot}%{_prefix}/lib/lua %{buildroot}%{_libdir}
rm -d %{buildroot}%{_prefix}/lib
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2234 |21cr|handbrake-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_enable_debug_packages %{nil}
%global	debug_package %{nil}

%define _empty_manifest_terminate_build 0

%define _disable_lto 1

%define	gstapi 1.0
%define	oname HandBrake

Summary:	Open-source video transcoder
Name:		handbrake
Version:	1.6.1
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://handbrake.fr/
Source0:	https://github.com/HandBrake/HandBrake/releases/download/%{version}/%{oname}-%{version}-source.tar.bz2
# Handbrake switch from libav to ffmpeg, so replace it.
# Use non-system ffmpeg, bc support more restricted features than provided by omv.
Source1:	ffmpeg-5.1.2.tar.bz2
Source2:	libbluray-1.3.4.tar.bz2
Source3:	libdvdnav-6.1.1.tar.bz2
Source4:	libdvdread-6.1.3.tar.bz2
Source6:	x265_3.5.tar.gz
Source8:  	AMF-1.4.24.tar.gz
Source9:  	SVT-AV1-v1.4.1.tar.gz
Source10:  	fdk-aac-2.0.2.tar.gz
Source11:  	dav1d-1.0.0.tar.bz2
Source12:  	zimg-3.0.4.tar.gz
Source13:  	oneVPL-2023.1.0.tar.gz
Source14:  	nv-codec-headers-11.0.10.1.tar.gz
Source15:  	x265-snapshot-20221130-12747.tar.gz
Source20:	handbrake-1.6.1_ru.tar.gz
BuildRequires:	cmake >= 3.16.3
BuildRequires:	meson >= 0.47.0
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	iso-codes
BuildRequires:	libtool
BuildRequires:	nasm >= 2.13.0
BuildRequires:	python3
BuildRequires:	svn
BuildRequires:	valgrind
BuildRequires:	yasm
%ifnarch %{armx}
BuildRequires:	ffnvcodec-headers
%endif
BuildRequires:	bzip2-devel
BuildRequires:	geoclue-devel
BuildRequires:	liblame-devel
BuildRequires:	numa-devel
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(dav1d)
BuildRequires:	pkgconfig(dvdnav)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(fdk-aac)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{gstapi})
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.16
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libbluray) >= 1.0
BuildRequires:	pkgconfig(libgtkhtml-4.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libturbojpeg)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libva-drm)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(SvtAv1Enc)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(webkit-1.0)
BuildRequires:	pkgconfig(x264)
BuildRequires:	pkgconfig(x265)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(zimg)
%ifnarch %{armx} %{riscv} %{e2k}
BuildRequires:  pkgconfig(libmfx)
%endif
%ifnarch %{armx} %{riscv} %{ix86} %{e2k}
BuildRequires:  pkgconfig(igdgmm)
BuildRequires:  pkgconfig(vpl)
%endif
Recommends:	typelib(AppIndicator3)
Recommends:	gstreamer%{gstapi}-libav
Recommends:	gstreamer%{gstapi}-plugins-base
Recommends:	gstreamer%{gstapi}-plugins-good
Recommends:	gstreamer%{gstapi}-plugins-bad
Recommends:	gstreamer%{gstapi}-plugins-ugly
Recommends:	gstreamer%{gstapi}-pulse

%description
HandBrake is an open-source, GPL-licensed, multi-platform, multi-threaded
video transcoder, available for MacOS X, Linux and Windows. It takes videos
you already have and makes new ones that work on your mobile phone, tablet,
TV media player, game console, computer, or web browser: nearly anything that
supports modern video formats.

%files -f ghb.lang
%doc COPYING
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/scalable/apps/hb-icon.svg
%{_datadir}/icons/hicolor/scalable/apps/fr.%{name}.ghb.svg
%{_datadir}/metainfo/fr.%{name}.ghb.metainfo.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

find . -name "Makefile*" -o -name "*.m4" |xargs sed -i -e 's,configure.in,configure.ac,g'
mkdir download
cp -t download %{SOURCE1}
cp -t download %{SOURCE2}
cp -t download %{SOURCE3}
cp -t download %{SOURCE4}
cp -t download %{SOURCE6}
cp -t download %{SOURCE8}
cp -t download %{SOURCE9}
cp -t download %{SOURCE10}
cp -t download %{SOURCE11}
cp -t download %{SOURCE12}
cp -t download %{SOURCE13}
cp -t download %{SOURCE14}
cp -t download %{SOURCE15}

# Install Russian translation files
pushd gtk/po
	tar -xvzf %{SOURCE20}
popd

%build
# VCE is AMD specific, QSV is Intel specific. Neither will work
# on ARM or RISC-V.
./configure \
	--prefix=%{_prefix} \
	--launch \
	--launch-jobs=0 \
	--disable-gtk-update-checks \
%ifarch %{armx} %{riscv} %{ix86} %{e2k}
	--disable-nvenc \
%endif
%ifarch %{riscv} %{ix86} %{e2k}
	--disable-x265 \
%endif
%ifarch %{x86_64}
	--enable-vce \
	--enable-qsv \
%else
	--disable-vce \
	--disable-qsv \
%endif
	--enable-fdk-aac

pushd gtk
	autoreconf -vfi
popd
cd build && make


%install
%makeinstall_std -C build

# Install command line program
install -m 0755 build/HandBrakeCLI %{buildroot}%{_bindir}/HandBrakeCLI
pushd %{buildroot}%{_bindir}
	ln -s ./HandBrakeCLI ./%{name}
popd

# Fix .desktop file
desktop-file-install --vendor="" \
	--add-category="X-MandrivaLinux-Multimedia-Video" \
	--add-category="X-MandrivaLinux-CrossDesktop" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

rm -rf %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache

%find_lang ghb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2235 |21cr|hardening-check-2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Check binaries for security hardening features
Name:		hardening-check
Version:	2.5
Url:		https://abf.io/soft/hardening-check
Release:	4
Source0:	%{name}-%{version}.tar.xz
License:	GPLv2
Group:		System/Configuration/Packaging
BuildRequires:	perl
BuildRequires:	make
BuildArch:	noarch

%description
Examine a given set of ELF binaries and check for several security
hardening features, failing if they are not all found.

%prep
%setup -q

%build
%make

%install
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1,%{_datadir}}
install -m 755 build-tree/hardening-check %{buildroot}%{_bindir}
install -m 755 build-tree/hardening-check.1 %{buildroot}%{_mandir}/man1

%files
%doc AUTHORS
%{_bindir}/*
%{_mandir}/*/*.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2236 |21cr|hardinfo-0.6.0-0.git6ecebb.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6ecebbdc0f6dd0f69a6531950abf22b2ac011a54
%define commit_short %(echo %{commit} | head -c6)

Summary:	A system profiler for Linux
Name:		hardinfo
Version:	0.6.0
Release:	0.git%{commit_short}.3
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://hardinfo.berlios.de
Source0:	https://github.com/lpereira/hardinfo/archive/%{commit}.zip?/%{name}-%{commit}.zip
Patch0:		00-fix-cmake.patch
Patch1:		01-fix-impldecl.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	pciutils
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	usbutils
BuildRequires:	pkgconfig(zlib)
Requires:	hwdata
Requires:	pciutils
Requires:	usbutils

%description
HardInfo is a system profiler for Linux systems.
It can display information about the hardware, software, and perform
simple benchmarks.

%files -f %{name}.lang
%{_bindir}/hardinfo
%{_libdir}/%{name}/modules/*so
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/hardinfo.1*
%{_iconsdir}/hicolor/48x48/apps/hardinfo.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake -DHARDINFO_GTK3=on \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-DCMAKE_BUILD_TYPE=Release \
	-DHARDINFO_NOSYNC=1

%make

%install
%makeinstall_std -C build

desktop-file-install \
	--vendor="" \
	--remove-category="Application" \
	--add-category="Settings" \
	--add-category="HardwareSettings" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2237 |21cr|harmonySEQ-0.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package	 %{nil}

Summary:	A MIDI sequencing application helpful for music composers and live artists
Name:		harmonySEQ
Version:	0.17
Release:	1
License:	GPLv3+
Group:		Sound
Url:			https://harmonyseq.wordpress.com
Source0:	https://github.com/rafalcieslak/harmonySEQ/archive/v%{version}/harmonySEQ-%{version}.tar.gz
Patch0:		harmonyseq-0.17-missing-include.patch
Patch1:		harmonyseq-0.17-pr-8-metadata-improvements.patch
Patch2:		harmonyseq-0.17-fix-desktop-file.patch
BuildRequires:	cmake >= 3.10
BuildRequires:	gettext
BuildRequires:	shared-mime-info
BuildRequires:	boost-devel >= 1.67.0
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(liblo)

%description
harmonySEQ is a MIDI sequencer for Linux. Basically, it does what any
sequencer does – it playbacks a sequence of notes. However, it is slightly
different from most of the popular software sequencers.

#-f %%{name}.lang
%files
%doc CHANGELOG.md LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/org.cielak.harmonyseq.desktop
%{_datadir}/%{name}
%{_datadir}/metainfo/org.cielak.harmonyseq.metainfo.xml
%{_datadir}/mime/packages/harmonyseq-mime.xml
%{_mandir}/man1/%{name}.*
%{_iconsdir}/hicolor/*/apps/harmonyseq.*
%{_iconsdir}/gnome/*/mimetypes/*
%{_sysconfdir}/modules-load.d/%{name}.conf

# Useless: now we have the automated module load at program start
#post
#modprobe snd_seq

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1


%build
%cmake ..
%make


%install
%makeinstall_std -C build

# The icons for app and mimetypes end up in the wrong spot:
# put them where they need to be
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_iconsdir}/gnome/scalable/mimetypes
install -m 0644 pixmaps/scalable/apps/harmonyseq.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
install -m 0644 pixmaps/scalable/mimetypes/*.svg %{buildroot}%{_iconsdir}/gnome/scalable/mimetypes/

for size in 192 48 32; do
	install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
	install -d %{buildroot}%{_iconsdir}/gnome/${size}x${size}/mimetypes
	install -m 0644 pixmaps/${size}x${size}/apps/harmonyseq.png %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/
	install -m 0644 pixmaps/${size}x${size}/mimetypes/*.png %{buildroot}%{_iconsdir}/gnome/${size}x${size}/mimetypes/
done

mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
echo "snd_seq" > %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

# Translations were temporarily disabled
#find_lang %%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2238 |21cr|harris-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A strategy game based around the actions of RAF Bomber Command during WW2
Name:		harris
Version:	0.4.1
Release:	1
License:	GPLv3+
Group:		Games/Strategy
Url:		https://github.com/ec429/harris
Source0:	https://github.com/ec429/harris/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:		harris-0.4.1-mga-nowerror.patch
Patch1:		harris-0.4.1-mga-python3.patch
BuildRequires:	imagemagick
BuildRequires:	libtool
BuildRequires:	atg-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_ttf)

%description
Harris is a strategy game based around the actions of RAF Bomber Command
in the Second World War. In Harris, you take on the role of the
Commander-in-Chief of Bomber Command, tasked with launching bombing raids
against Nazi Germany. It is your responsibility to take the war to the enemy
and destroy their capacity and will to wage war.

%files
%doc HOWTOPLAY README STRATEGY
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/32x32/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
2to3 --write --nobackups --no-diffs .
sed -i -e '1s/python2/python3/' *py stats/*py
%patch0 -p1
%patch1 -p1

%build
%set_build_flags
%make_build PREFIX=%{_prefix}

%install
%make_install PREFIX=%{_prefix}
mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps
convert art/icon.bmp %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Harris
Comment=Second World War strategy game
Exec=%{_gamesbindir}/harris
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;StrategyGame;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2239 |21cr|haruna-0.12.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A powerful video player for plasma
Name:		haruna
Version:	0.12.3
Release:	1
License:	LGPLv2+
Group:		Video
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/haruna/haruna-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	breeze-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavdevice)
BuildRequires:	pkgconfig(libavfilter)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libpostproc)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(mpv)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)

%description
A powerful media player for plasma.

%files -f %{name}.lang
%doc README.md
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_iconsdir}/hicolor/*/apps/haruna.svg
%{_iconsdir}/hicolor/*/apps/haruna.png
%{_datadir}/metainfo/org.kde.haruna.metainfo.xml

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} %{name}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2240 |21cr|harvid-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	HTTP server to extract, cache and serve still images from movie files
Name:		harvid
Version:	0.8.3
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://github.com/x42/harvid
Source0:	https://github.com/x42/harvid/archive/%{name}-%{version}.tar.gz
Patch0:		harvid-0.8.3-abstract-ffmpeg-compatibility.patch
Patch1:		harvid-0.8.3-add-missing-include.patch
Patch2:		harvid-0.8.3-build-with-newer-ffmpeg.patch
Patch3:		harvid-0.8.3-fix-libjpeg-detection.patch
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
Requires:	ffmpeg

%description
Harvid is a HTTP server to efficiently extract, cache and serve still images
from movie files. It provides for frame-accurate decoding and is main use-case
is to act as back-end and second level cache for rendering the videotimeline in
Ardour. Harvid uses ffmpeg/libav and supports a wide variety of video codecs
and formats.

%files
%doc README.md ChangeLog COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%setup_compile_flags
make


%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2241 |21cr|hasciicam-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:      Renders video input as ascii
Name:         hasciicam
Version:      1.3
Release:      1
Group:        Video
License:      GPLv2+
Url:          http://ascii.dyne.org/
# https://github.com/jaromil/HasciiCam
Source0:      https://files.dyne.org/%{name}/%{name}_%{version}.tar.gz
BuildRequires:   libaa-devel  
BuildRequires:   pkgconfig(libv4lconvert)
BuildRequires:   imagemagick
BuildRequires:   desktop-file-utils

%description
Hasciicam makes it possible to have live ascii video on the web. It
captures video from a tv card and renders it into ascii, formatting
the output into an html page with a refresh tag or in a live ascii
window or in a simple text file as well, giving the possiblity to
anybody that has a bttv card. a linux box and a cheap modem line to
show a live asciivideo feed that can be browsable without any need for
plugin, java etc.

%files
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/*.desktop
#-----------------------------------------------------

%prep
%setup -qn %{name}_%{version}

%build
%configure --prefix=%{_prefix} --mandir=%{_mandir}
%make

%install
%makeinstall_std

rm -fr %{buildroot}%{_iconsdir}
rm -fr %{buildroot}%{_datadir}/menu

for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size doc/views/images/jaromil-hascii-sm.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

desktop-file-edit --set-icon=%{name} \
  %{buildroot}%{_datadir}/applications/%{name}.desktop

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2242 |21cr|hashalot-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Binary hash generator
Name:		hashalot
Version:	0.3
Release:	10
License:	GPLv2+
Group:		System/Base
Url:		http://www.paranoiacs.org/~sluskyb/hacks/hashalot
Source0:	%{name}-%{version}.tar.bz2

%description
This program will read a passphrase from standard input and print a binary
(not printable) hhash to standard output.  The output is suitable for use as
an encryption key.

%files
%doc AUTHORS COPYING INSTALL NEWS README
%{_sbindir}/hashalot
%{_sbindir}/rmd160
%{_sbindir}/sha256
%{_sbindir}/sha384
%{_sbindir}/sha512
%{_mandir}/man1/hashalot*

#----------------------------------------------------------------------------

%prep
%setup -q
chmod 644 AUTHORS COPYING INSTALL NEWS README
chmod 644 *.c *.h

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2243 |21cr|hashcash-1.22-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hashcash anti-spam / denial-of-service counter-measure tool
Name:		hashcash
Version:	1.22
Release:	10
License:	CPL or choice of public domain/BSD/LGPL/GPL
Group:		Networking/Mail
URL:		http://www.hashcash.org/
Source:		http://www.hashcash.org/source/%{name}-%{version}.tgz
BuildRequires:	openssl-static-devel >= 0.9.8

%description
Hashcash is a denial-of-service counter measure tool.  It's main current use
is to help hashcash users avoid losing email due to content based and
blacklist based anti-spam systems.

The hashcash tool allows you to create hashcash stamp to attach to emails
you send, and to verify hashcash stamp attached to emails you receive. 
Email senders attach hashcash stamps with the X-Hashcash: header.  Vendors
and authors of anti-spam tools are encouraged to exempt mail sent with
hashcash from their blacklists and content based filtering rules.

A hashcash stamp constitutes a proof-of-work which takes a parameterizable
amount of work to compute for the sender.  The recipient can verify received
stamps efficiently. This package also includes a sha1 implementation which
behaves somewhat like md5sum, but with SHA1.

%prep
%setup -q

%build
sed -i -e 's|/usr/lib|%{_libdir}|' Makefile
make COPT="%{optflags}" "PACKAGER=RPM" gnu-openssl

%install
install -d %{buildroot}/%{_bindir}/
install -d %{buildroot}/%{_mandir}
install -d %{buildroot}/%{_mandir}/man1
install -d %{buildroot}/%{_docdir}/
install -d %{buildroot}/%{_docdir}/%{name}-%{version}

install -m 755 hashcash %{buildroot}/%{_bindir}/
install -m 755 sha1 %{buildroot}/%{_bindir}/
install -m 644 hashcash.1 %{buildroot}/%{_mandir}/man1
install -m 644 sha1-hashcash.1 %{buildroot}/%{_mandir}/man1
install -m 644 README LICENSE CHANGELOG %{buildroot}/%{_docdir}/%{name}-%{version}/

%clean

%files
%{_bindir}/*
%{_mandir}/*/*
%{_docdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2244 |21cr|hashcat-6.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
Name:           hashcat
Version:	6.2.6
Release:	1
Summary:        CPU-based password recovery utility
License:        MIT
Group:          Networking/Other
Url:            https://hashcat.net/
Source:         https://hashcat.net/files/%{name}-%{version}.tar.gz
BuildRequires:  gmp-devel
BuildRequires:  pkgconfig(OpenCL)
Recommends:       hashcat-utils

%description
Hashcat is an advanced CPU-based password recovery utility,
supporting seven unique modes of testing for over 100 optimized
hashing algorithms.


%files
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/doc/%{name}

#-------------------------------------------

%prep
%autosetup -p1

%build
%set_build_flags
%make_build PREFIX=%{_prefix}

%install
%make_install PREFIX=%{_prefix}
find %{buildroot}%{_datadir}/%{name}/* -type f -exec chmod 644 {} \;
find %{buildroot}%{_docdir}/%{name} -type f -exec chmod 644 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2245 |21cr|hashcat-utils-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           hashcat-utils
Version:        1.9
Release:        1
Summary:        Set of small utilities that are useful in advanced password cracking
License:        MIT
Group:          Networking/Other
Url:            https://github.com/hashcat/hashcat-utils
Source:         https://github.com/hashcat/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires:  perl
Recommends:       hashcat

%description
Hashcat is an advanced CPU-based password recovery utility,
supporting seven unique modes of testing for over 100 optimized
hashing algorithms.


%files
%doc CHANGES LICENSE *.md
%{_bindir}/*
#-------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make -C src

%install
for bin in src/*.bin; do
      install -Dm 755 ${bin} "%{buildroot}%{_bindir}/$(basename ${bin} .bin)"
done
for script in src/*.pl; do
      install -Dm 755 ${script} "%{buildroot}%{_bindir}/$(basename ${script} .pl)"
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2246 |21cr|hatari-2.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An Atari ST emulator
Name:		hatari
Version:	2.4.1
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://hatari.tuxfamily.org
Source0:	https://download.tuxfamily.org/hatari/%{version}/%{name}-%{version}.tar.bz2
Patch0:		hatari-2.4.1-static.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	portmidi-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)

%description
Hatari is an Atari ST and STE emulator.
The Atari ST was a 16/32 bit computer system which was first released by
Atari in 1985. Using the Motorola 68000 CPU, it was a very popular computer
having quite a lot of CPU power at that time. Unlike many other Atari ST
emulators which try to give you a good environment for running GEM
applications, Hatari tries to emulate the hardware of a ST as close as
possible so that it is able to run most of the old ST games and demos.

%files -f %{name}.lang
%doc readme.txt doc/changelog.txt doc/fr/clavier-exemple.txt
%doc tools/hmsa/readme-hmsa.txt
%{_bindir}/atari-convert-dir
%{_bindir}/atari-hd-image
%{_bindir}/gst2ascii
%{_bindir}/hmsa
%{_bindir}/%{name}*
%{_bindir}/zip2st
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/%{name}
%{_defaultdocdir}/%{name}/*.css
%{_defaultdocdir}/%{name}/*.js
%{_defaultdocdir}/%{name}/*.html
%{_defaultdocdir}/%{name}/*.txt
%{_defaultdocdir}/%{name}/hconsole
%{_defaultdocdir}/%{name}/images
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_iconsdir}/hicolor/*/mimetypes/application-vnd.fastcopy-disk-image.*
%{_iconsdir}/hicolor/*/mimetypes/application-vnd.msa-disk-image.*
%{_iconsdir}/hicolor/*/mimetypes/application-x-st-disk-image.*
%{_iconsdir}/hicolor/*/mimetypes/application-x-stx-disk-image.*
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

# fr man pages
install -d -m 755 %{buildroot}/%{_mandir}/fr/man1
install -m 644 doc/fr/%{name}.1 %{buildroot}/%{_mandir}/fr/man1/

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2247 |21cr|hawk-2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Web-Album generator
Name:		hawk
Version:	2.1
Release:	5
License:	CeCILL
Group:		Graphics
Url:		http://tableaux.levier.org/download.html
Source0:	http://tableaux.levier.org/package/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libpcre)

%description
Yet another Web-Album generator. Highlights:

  * automatic rotation of portrait images thanks to information
    put by digital camera in .jpg file (EXIF)
  * immediate display of images (preloading in browser)
  * keep position of "next/previous" hyperlinks in browser
    between images
  * full video support (including thumbnailing)
  * clever use of the whole space of a typical browser window
    (the need to scroll portrait images is stupid)
  * themability
  * sub-albums support
  * remember your preferred size of thumbnails accross sub-albums
  * multi-processor support to speed up thumbnails generation
  * smooth integration of panoramic images in thumbnails pages
  * multi-languages web-album navigation (navigation links are
    automatically shown in user's language)
  * a GUI to input captions, rotate, reorder and remove
    images FAST (extensive use of keyboard shortcuts)
  * another GUI to classify photos and videos in a powerful manner

%files
%doc LICENSE
%{_bindir}/hawk
%{_mandir}/man1/hawk.1*

#----------------------------------------------------------------------------

%prep
%setup -q
chmod go+r *

%build
%make CFLAGS="%{optflags}"

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1

install -m 755 hawk %{buildroot}%{_bindir}
install -m 644 hawk.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2248 |21cr|hawknl-1.68-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.6

%define libname	%mklibname %{name} %major
%define develname %mklibname -d %{name}

Name:		hawknl
Version:	1.68
Release:	9
URL:		http://www.hawksoft.com/hawknl/
Summary:	Hawk Network Library
Source:		HawkNL168src.zip
Patch0:		hawknl_makefile.patch
Patch1:		HawkNL1.68-debug.patch
License:	LGPLv2+
Group:		System/Libraries

%description
HawkNL is a free, open source, game oriented network API released under
the GNU Library General Public License (LGPL). HawkNL (NL) is a fairly
low level API, a wrapper over Berkeley/Unix Sockets and Winsock. But NL
also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros
to read and write data to packets with endian conversion, and support
for multiple network transports.

%package -n %{libname}
Summary:	Hawk Network Library
Group:		System/Libraries

%description -n %{libname}
HawkNL is a free, open source, game oriented network API released under
the GNU Library General Public License (LGPL). HawkNL (NL) is a fairly
low level API, a wrapper over Berkeley/Unix Sockets and Winsock. But NL
also provides other features including support for many OSs, groups of
sockets, socket statistics, high accuracy timer, CRC functions, macros
to read and write data to packets with endian conversion, and support
for multiple network transports.

%package -n %{develname}
Summary:	Hawk Network Library development files
Group:		System/Libraries
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
Developement files for %{libname}

%prep
%setup -q -n HawkNL%{version}
%patch0 -p1
%patch1 -p1

%build
%make -f makefile.linux
chmod -R go-w samples

%install
mkdir -p %{buildroot}%{_includedir} %{buildroot}%{_libdir}
cd src
%make -f makefile.linux INCDIR=%{buildroot}%{_includedir} LIBDIR=%{buildroot}%{_libdir} install
rm -f %{buildroot}%{_libdir}/*.a

%files -n %{libname}
%doc src/readme.txt src/NLchanges.txt
%{_libdir}/libNL.so.%{major}*
%{_libdir}/libNL.so.1
%{_libdir}/NL.so.%major

%files -n %{develname}
%doc samples
%{_includedir}/nl.h
%{_libdir}/NL.so
%{_libdir}/libNL.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2249 |21cr|hdapsd-20160215-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	HDAPS (Hard Disk Active Protection System) daemon
Name:		hdapsd
%define real_version 20090401
Version:	20160215
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware 
URL:		http://hdaps.sourceforge.net
Source0:	hdapsd-%{real_version}.tar.gz
Source1:	hdapsd.event
Source2:	hdapsd.sysconfig
Source3:	99-hdapsd.rules
Patch0:		hdaps-20090401-fix-str-fmt.patch

%description
hdapsd is a daemon that reads from the HDAPS (Hard Disk Active Protection
System) driver and protects the hard disk from sudden movements that may
harm it.

%prep
%setup -q -n %{name}-%{real_version}
%patch0 -p0

%build
%configure
%make

%install
%makeinstall

mkdir -p %{buildroot}%{_sysconfdir}/event.d/
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d/
cp -p %SOURCE1 %{buildroot}%{_sysconfdir}/event.d/hdapsd
cp -p %SOURCE2 %{buildroot}%{_sysconfdir}/sysconfig/hdapsd
cp -p %SOURCE3 %{buildroot}%{_sysconfdir}/udev/rules.d/
# remove docs installed by "make install", will be installed in proper dir by %doc
rm -rf %{buildroot}%{_defaultdocdir}/%{name}

%clean
rm -rf %{buildroot}


%files
%defattr(-,root,root,-)
%{_sbindir}/*
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
%config(noreplace) %{_sysconfdir}/event.d/hdapsd
%config(noreplace) %{_sysconfdir}/sysconfig/hdapsd
%{_mandir}/man8/hdapsd.8.*
%doc AUTHORS
%doc COPYING
%doc ChangeLog
%doc README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2250 |21cr|hda-verb-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to send commands (verbs) to HD-Audio codecs
Name:		hda-verb
Version:	0.4
Release:	1
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/misc/
Source0:	ftp://ftp.kernel.org/pub/linux/kernel/people/tiwai/misc/hda-verb-%{version}.tar.gz
Patch0:		hda-verb-0.4-aarch64.patch
BuildRequires:	gcc
BuildRequires:	make

%description
hda-verb is a tiny program that allows you to access the HD-audio
codecs directly, allowing you to send commands (verbs) to them. For
hda-verb to work you must be running a linux kernel with
CONFIG_SND_HDA_HWDEP option enabled.

%files
%doc ChangeLog README
%{_sbindir}/hda-verb

#----------------------------------------------------------------------------

%prep
%setup -q
%ifarch aarch64
%patch0 -p1
%endif

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_sbindir}
install -m 755 hda-verb %{buildroot}%{_sbindir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2251 |21cr|HDF-4.2.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hdf

Summary:	Hierarchical Data Format Library
Name:		HDF
Version:	4.2.15
Release:	2
License:	BSD
Group:		Development/C
Url:		http://www.hdfgroup.org/
Source0:	https://support.hdfgroup.org/ftp/HDF/releases/HDF%{version}/src/%{oname}-%{version}.tar.bz2
Patch0:		hdf-4.2.15-maxavailfiles.patch
Patch1:		hdf-tirpc.patch
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	gcc-gfortran
BuildRequires:	groff
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(zlib)
Provides:	HDF-devel = %{EVRD}
ExcludeArch:	%{armx}


%description
HDF is a multi-object file format that facilitates the transfer of various
types of scientific data between machines and operating systems.
HDF allows self-definitions of data content and easy extensibility for
future enhancements or compatibility with other standard formats.
HDF includes Fortran and C calling interfaces, and utilities to
prepare raw image of data files or for use with other NCSA software.

The HDF library contains interfaces for storing and retrieving compressed or
uncompressed 8-bit and 24=bit raster images with palettes,
n-Dimensional scientific datasets and binary tables. AN interface is also
included that allows arbitrary grouping of other HDF objects.

%files
%doc COPYING README.txt
%{_libdir}/libdf.*a
%{_libdir}/libmfhdf.*a
%{_libdir}/libhdf4.settings
%{_includedir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%package util
Summary:	HDF utilities and test data files
Group:		Graphics
Requires:	%{name} = %{EVRD}

%description util
This package contains utilities for HDF data manipulation and
test data files.

%files util
%dir %{_datadir}/hdf
%dir %{_datadir}/hdf/samples
%{_datadir}/hdf4_examples
%{_bindir}/*
%attr(644,root,root) %{_datadir}/hdf/samples/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
autoreconf -fi

# Make it lib64 aware
find . -name Makefile.in | \
  xargs perl -pi -e "s,^(libdir|LIBDIR)\s+=.+,\1 = \\\$(prefix)/%{_lib},"

export F77=gfortran
export FC=gfortran

# Build with PIC in case static library is built into a DSO afterwards
%ifarch ia64 x86_64
export CFLAGS="%{optflags} -ansi -D_BSD_SOURCE -DPC -DPIC -fPIC"
export CXXFLAGS=$CFLAGS
export FFLAGS="%{optflags} -fallow-argument-mismatch"
%else
export CFLAGS="%{optflags} -ansi -D_BSD_SOURCE -DPC"
export CXXFLAGS=$CFLAGS
export FFLAGS="%{optflags} -fallow-argument-mismatch"
%endif

%configure \
	--prefix=%{_prefix} \
	--enable-production
%make LIBS="-lz -ljpeg -ltirpc"

mkdir -p samples
cp -a hdf/util/testfiles/* samples

%install
%makeinstall_std
# remove files already provided by other packages (libjpeg, netcdf, zlib)
rm -f %{buildroot}%{_includedir}/{jconfig.h,jerror.h,jmorecfg.h,jpeglib.h} \
    %{buildroot}%{_includedir}/{zconf.h,zlib.h} \
    %{buildroot}%{_bindir}/{ncdump,ncgen} \
    %{buildroot}%{_includedir}/netcdf.{h,inc,f90} \
    %{buildroot}%{_mandir}/man1/ncgen.1 \
    %{buildroot}%{_mandir}/man1/ncdump.1
mv -f %{buildroot}%{_bindir}/vmake %{buildroot}%{_bindir}/vmake-hdf
mkdir -p %{buildroot}%{_datadir}/hdf
cp -aR samples %{buildroot}%{_datadir}/hdf/

# remove unpackaged files
rm -f %{buildroot}%{_mandir}/man1/nc{gen,dump}.1*
rm -rf %{buildroot}%{_prefix}/examples/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2252 |21cr|hdhomerun-20220822-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		4
%define	libname		%mklibname %{name} %{major}
%define	develname	%mklibname %{name} -d

Name:		hdhomerun
Version:	20220822
Release:	1
Summary:	Silicon Dust HDHomeRun configuration utility
Group:		System/Kernel and hardware
# The library and the cli program are LGPLv2+, while the GUI is GPLv3
License:	LGPLv2+ and GPLv3
Url:		http://www.silicondust.com/
Source0:	http://download.silicondust.com/hdhomerun/lib%{name}_%{version}.tgz
Source1:	http://download.silicondust.com/hdhomerun/%{name}_config_gui_%{version}.tgz
Source2:	%{name}_config_gui.desktop
Patch0:		%{name}-20200521-add-soname.patch
Patch1:		%{name}-20200521-upstream-changelog.patch
BuildRequires:	desktop-file-utils
BuildRequires:	libicns-utils
BuildRequires:	pkgconfig(gtk+-2.0)

%description
The configuration and firmware upgrade utility for Silicon Dust's
networked HDTV dual-tuner HDHomeRun device.

%files
%doc libhdhomerun/README.md README.firmware
%doc libhdhomerun/LICENSE hdhomerun_config_gui/COPYING
%{_bindir}/%{name}_config
%{_bindir}/%{name}_config_gui
%{_datadir}/applications/%{name}_config_gui.desktop
%{_iconsdir}/hicolor/*/apps/hdhr.png

#------------------------------------------------

%package -n	%{libname}
Summary:	Silicon Dust HDHomeRun configuration utility
Group:		System/Libraries

%description -n	%{libname}
The library needed by the configuration and firmware upgrade utility for
Silicon Dust's HDHomeRun device.

%files -n %{libname}
%doc libhdhomerun/LICENSE
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for lib%{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
Header files for development with lib%{name}.

%files -n %{develname}
%doc libhdhomerun/ChangeLog libhdhomerun/LICENSE
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/lib%{name}.so

#------------------------------------------------

%prep
%setup -q -c -a 1
%apply_patches

# Convert README file to utf8
pushd libhdhomerun
	/usr/bin/iconv -f iso-8859-1 -t utf-8 --output README.new README.md && mv README.new README.md
popd

%build
pushd %{name}_config_gui
	%configure
	%make
popd

# Prepare advice to user about firmware downloading
cat << __EOF__ > README.firmware
The HDHomeRun Firmwares are not redistributable, but the latest versions of
both the US ATSC and European DVB-T firmwares can always be obtained from
the Silicon Dust web site:
https://www.silicondust.com/support/linux/

__EOF__

# Prepare icons
pushd %{name}_config_gui/OSX
	icns2png -x hdhr.icns
popd


%install
%makeinstall_std -C %{name}_config_gui

# Install devel files
mkdir -p %{buildroot}%{_includedir}/%{name}
install -m 0644 libhdhomerun/*.h %{buildroot}%{_includedir}/%{name}/

# Install our .desktop file...
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
# ... and icons
for size in 16x16 32x32 128x128 256x256 512x512
do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${size}/apps
	install -m 0644 %{name}_config_gui/OSX/hdhr_${size}x32.png %{buildroot}%{_iconsdir}/hicolor/${size}/apps/hdhr.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2253 |21cr|hdrecover-0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to encourage hard disks to reallocate bad sectors
Name:		hdrecover
Version:	0.5
Release:	4
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://sourceforge.net/projects/hdrecover/?source=directory
Source0:	http://sourceforge.net/projects/%{name}/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	gawk

%description
Tool to encourage hard disks to reallocate bad sectors allowing
data recovery and possible continued use of the hard disk.

%files
%doc AUTHORS ChangeLog COPYING NEWS README INSTALL
%{_bindir}/hdrecover

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2254 |21cr|heimdall-2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	prerel %{nil}
%define	udev_rules_dir /lib/udev/rules.d
%define	oname Heimdall

Summary:	Flash firmware (aka ROMs) onto Samsung Galaxy S devices
Name:		heimdall
Version:	2.0.2
%if "%{prerel}" != ""
Release:	0.%{prerel}.1
%else
Release:	1
%endif
License:	MIT
Group:		Development/Other
Url:		https://glassechidna.com.au/heimdall/
# Source can also be generated from https://github.com/BenjaminDobell/Heimdall using:
# git clone git://github.com/Benjamin-Dobell/Heimdall.git
# git archive --format tar --prefix heimdall-1.4.2/ v1.4.2 | xz > heimdall-1.4.2.tar.xz
%if "%{prerel}"
Source0:	%{name}-%{version}%{prerel}.tar.xz
%else
# Newer and more updated repository: https://git.sr.ht/~grimler/Heimdall/
#Source0:	https://github.com/Benjamin-Dobell/Heimdall/archive/%%{oname}-v%%{version}.tar.bz2
Source0:		https://git.sr.ht/~grimler/Heimdall/archive/%{oname}-v%{version}.tar.gz
%endif
Patch1:		heimdall-2.0.2-Odin4-protocol-support.patch
Patch2:		heimdall-1.4.2-add-icon-and-desktop-file.patch
BuildRequires:	cmake >= 3.0
BuildRequires:	dos2unix
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)

%description
Heimdall is a cross-platform open-source utility to flash firmware (aka ROMs)
onto Samsung Galaxy mobile devices.

%files
%doc README.md LICENSE
%{_bindir}/%{name}
%{udev_rules_dir}/60-%{name}.rules

%post
udevadm control --reload

%postun
udevadm control --reload

#-----------------------------------------------------------------------------

%package frontend
Summary:	Qt5 based front-end for %{name}
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description frontend
Heimdall is a cross-platform open-source utility to flash firmware (aka ROMs)
onto Samsung Galaxy mobile devices. This package provides a Qt5 based
front-end for %{name}.

%files frontend
%doc README.md LICENSE
%{_bindir}/%{name}-frontend
%{_datadir}/applications/%{name}-frontend.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}-frontend.svg

#-----------------------------------------------------------------------------

%prep
%if "%{prerel}"
%setup -q
%else
%setup -qn %{oname}-v%{version}
%endif
%patch1 -p1
%patch2 -p1

# Fix EOLs
dos2unix Linux/README


%build
%cmake
%make


%install
%makeinstall_std -C build

# Use the udev rule provided in the sources
mkdir -p %{buildroot}%{udev_rules_dir}/
install -m 0644 %{name}/60-%{name}.rules %{buildroot}%{udev_rules_dir}/

# Install the provided .desktop and icon files
mkdir -p %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
install -m 0644 %{name}-frontend.desktop %{buildroot}%{_datadir}/applications/%{name}-frontend.desktop
install -m 0644 %{name}-frontend.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}-frontend.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2255 |21cr|hepmc-2.06.09-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# hepevt symbol should be defined externally (?)
%define _disable_ld_no_undefined 1

%define major 4
%define libname %mklibname %{name} %{major}
%define libnamefio %mklibname %{name}fio %{major}
%define devname %mklibname %{name} -d

Summary:	C++ Event Record for Monte Carlo Generators
Name:		hepmc
Version:	2.06.09
Release:	3
License:	GPLv2+
Group:		Sciences/Physics
Url:		https://savannah.cern.ch/projects/hepmc/
Source0:	http://lcgapp.cern.ch/project/simu/HepMC/download/HepMC-%{version}.tar.gz
# From Fedora package
Patch0:		HepMC-epsilon.patch
Patch1:		HepMC-examples-hwaend.patch
Patch2:		HepMC-examples-makefile.patch
Patch3:		HepMC-fix-typo-hierachy-hierarchy.patch
Patch4:		HepMC-linking.patch
Patch5:		HepMC-no-hexfloat.patch

%description
The HepMC package is an object oriented event record written in C++ for
High Energy Physics Monte Carlo Generators. Many extensions from HEPEVT,
the Fortran HEP standard, are supported: the number of entries is unlimited,
spin density matrices can be stored with each vertex, flow patterns
(such as color) can be stored and traced, integers representing random
number generator states can be stored, and an arbitrary number of event
weights can be included. Particles and vertices are kept separate in a
graph structure, physically similar to a physics event. The added
information supports the modularisation of event generators. The package
has been kept as simple as possible with minimal internal/external
dependencies. Event information is accessed by means of iterators supplied
with the package.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ Event Record for Monte Carlo Generators
Group:		System/Libraries
# libhepmc3 had wrong library major
Conflicts:	%{_lib}hepmc3 < 2.06.09
Obsoletes:	%{_lib}hepmc3 < 2.06.09

%description -n %{libname}
The HepMC package is an object oriented event record written in C++ for
High Energy Physics Monte Carlo Generators. Many extensions from HEPEVT,
the Fortran HEP standard, are supported: the number of entries is unlimited,
spin density matrices can be stored with each vertex, flow patterns
(such as color) can be stored and traced, integers representing random
number generator states can be stored, and an arbitrary number of event
weights can be included. Particles and vertices are kept separate in a
graph structure, physically similar to a physics event. The added
information supports the modularisation of event generators. The package
has been kept as simple as possible with minimal internal/external
dependencies. Event information is accessed by means of iterators supplied
with the package.

%files -n %{libname}
%{_libdir}/libHepMC.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamefio}
Summary:	C++ Event Record for Monte Carlo Generators
Group:		System/Libraries
# libhepmc3 had wrong library major
Conflicts:	%{_lib}hepmc3 < 2.06.09

%description -n %{libnamefio}
The HepMC package is an object oriented event record written in C++ for
High Energy Physics Monte Carlo Generators. Many extensions from HEPEVT,
the Fortran HEP standard, are supported: the number of entries is unlimited,
spin density matrices can be stored with each vertex, flow patterns
(such as color) can be stored and traced, integers representing random
number generator states can be stored, and an arbitrary number of event
weights can be included. Particles and vertices are kept separate in a
graph structure, physically similar to a physics event. The added
information supports the modularisation of event generators. The package
has been kept as simple as possible with minimal internal/external
dependencies. Event information is accessed by means of iterators supplied
with the package.

%files -n %{libnamefio}
%{_libdir}/libHepMCfio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	HepMC development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamefio} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
HepMC development files.

%files -n %{devname}
%doc %{_docdir}/%{name}/
%{_libdir}/lib*.so
%{_includedir}/HepMC/

#----------------------------------------------------------------------------

%prep
%setup -qn HepMC-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
autoreconf -ifs

# momentum = MEV or GEV - must select one
# length = MM or CM - must select one
# default values just using the first of the two reported available options
%configure \
	--with-momentum=MEV \
	--with-length=MM \
	--enable-shared \
	--disable-static

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_docdir}/%{name}
mv -f %{buildroot}%{_datadir}/HepMC/doc/* %{buildroot}%{_docdir}/%{name}
mv -f %{buildroot}%{_datadir}/HepMC/examples %{buildroot}%{_docdir}/%{name}/examples
rmdir %{buildroot}%{_datadir}/HepMC/doc
rmdir %{buildroot}%{_datadir}/HepMC

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2256 |21cr|herbstluftwm-0.9.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A manual tiling window manager
Summary(ru_RU.UTF-8):	Оконный менеджер с ручным разбиением на плитки
Name:		herbstluftwm
Version:	0.9.5
Release:	3
License:	BSD
Group:		Graphical desktop/Other
Url:		http://herbstluftwm.org
Source0:	http://herbstluftwm.org/tarballs/%{name}-%{version}.tar.gz
Source1:	herbstluftwm.png
Source2:	BREADME
Source3:	ZREADME
Source4:	FREADME
Source5:	herbstluftwm.desktop
Source6:	autostart
Source7:	panel.sh
Patch0:	%{name}-gcc11.patch
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	cmake
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
# Все это используется в дефолтном конфиге, но для запуска - не обязательно.
# Для установки фона в дефолтном конфиге
Recommends:	xsetroot
# Для автодетекта мониторов в дефолтном конфиге (принудительно)
Recommends:	xrandr
# Dmenu
Recommends:	dwm-tools
# Панель в дефолтном конфиге
Recommends:	dzen2
# Для панели dzen2, вместо fixed используем terminus
Recommends:	terminus-font
# Укажем терминал явно, но recommends.
# Нам же нужен терминал.
# Не обязательно этот.
Recommends:	xterm

%description
Herbstluftwm is a manual tiling window manager for X11 using Xlib and Glib.
Its main features can be described with:

	- The layout is based on splitting frames into subframes which can be split
again or can be filled with windows;
	- Tags (or workspaces or virtual desktops or …) can be added/removed at
runtime. Each tag contains an own layout exactly one tag is viewed on each
monitor. The tags are monitor independent;
	- It is configured at runtime via ipc calls from herbstclient. So the
configuration file is just a script which is run on startup.

%description -l ru_RU.UTF-8
Herbstluftwm - это оконный менеджер с ручным разбиением на плитки для X11, использующий Xlib и Glib.
Его основные функции можно описать с помощью:

	- Макет основан на разделении фреймов на подфреймы, которые могут быть разделены
снова или могут быть заполнены окнами;
	- Теги (или рабочие области, или виртуальные рабочие столы, или ...) могут быть добавлены / удалены во
время выполнения. Каждый тег содержит собственный макет, на каждом мониторе просматривается ровно один тег.
Теги не зависят от монитора;
	- Он настраивается во время выполнения с помощью ipc-вызовов из herbstclient. Таким
образом, файл конфигурации - это просто скрипт, который запускается при запуске.

%files
%doc NEWS
%{_defaultdocdir}/%{name}/hlwm-doc.json
%{_defaultdocdir}/%{name}/html/
%license LICENSE
%{_bindir}/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/xsessions/%{name}.desktop
%{_mandir}/man1/*
%{_mandir}/man7/*
%{_sysconfdir}/xdg/%{name}

#------------------------------------------------------------------

%package examples
Summary:	Herbstluftwm examples scripts files
Summary(ru_RU.UTF-8):	Файлы скриптов с примерами для Herbstluftwm
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description examples
This package provides examples bash scripts for %{name}.

%description examples -l ru_RU.UTF-8
Этот пакет предоставляет примеры bash скриптов для %{name}.

%files examples
%doc %{_datadir}/doc/%{name}/examples/

#------------------------------------------------------------------

%package bash
Summary:	Herbstluftwm bash completion support
Summary(ru_RU.UTF-8):	Herbstluftwm поддержка bash completion
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description bash
This package provides bash completion script of %{name}.

%description bash -l ru_RU.UTF-8
Этот пакет предоставляет скрипт bash completion для %{name}.

%files	bash
%doc %{_datadir}/doc/%{name}-bash/BREADME
%{_datadir}/bash-completion/completions/herbstclient

#------------------------------------------------------------------

%package zsh
Summary:	Herbstluftwm zsh completion support
Summary(ru_RU.UTF-8):	Herbstluftwm поддержка zsh completion
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}
Requires:	zsh
BuildArch:	noarch

%description	zsh
This package provides zsh completion script of %{name}.

%description	zsh -l ru_RU.UTF-8
Этот пакет предоставляет скрипт zsh completion для %{name}.

%files	zsh
%doc %{_datadir}/doc/%{name}-zsh/ZREADME
%{_datadir}/zsh/site-functions/_herbstclient

#------------------------------------------------------------------

%package fish
Summary:	Herbstluftwm fish completion support
Summary(ru_RU.UTF-8):	Herbstluftwm поддержка fish completion
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}
Requires:	fish
BuildArch:	noarch

%description	fish
This package provides fish completion script of %{name}.

%description	fish -l ru_RU.UTF-8
Этот пакет предоставляет скрипт fish completion для %{name}.

%files	fish
%doc %{_datadir}/doc/%{name}-fish/FREADME
%{_datadir}/fish/vendor_completions.d/herbstclient.fish

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake

%install
%makeinstall_std -C build

# Создаем каталог для иконки сессии
mkdir -p %{buildroot}%{_datadir}/pixmaps
# Удаляем оригинальный .desktop
rm -f %{buildroot}%{_datadir}/xsessions/%{name}.desktop
# Устанавливаем 'исправленный' .desktop
install -pm 644 %{SOURCE5} %{buildroot}%{_datadir}/xsessions/%{name}.desktop
# Удаляем оригинальные конфиги
rm -f %{buildroot}%{_sysconfdir}/xdg/%{name}/autostart
rm -f %{buildroot}%{_sysconfdir}/xdg/%{name}/panel.sh
# Устанавливаем 'исправленные' конфиги
# Мод клавиша Alt исправлена на Super. Я художник ....
# Добавлены клавиши вызова dmenu (Mod+d)
# Изменен дефолтный зеленый бг на синий.
# Включен detect_monitors
install -pm 755 %{SOURCE6} %{buildroot}%{_sysconfdir}/xdg/%{name}/autostart
# Устанавливаем 'исправленные' конфиги
# Исправлен шрифт дефолтного конфига dzen2
install -pm 755 %{SOURCE7} %{buildroot}%{_sysconfdir}/xdg/%{name}/panel.sh
# Создаем каталоги для заглушек файлов документации пакетов автодополнений
mkdir -p %{buildroot}%{_datadir}/doc/%{name}-bash
mkdir -p %{buildroot}%{_datadir}/doc/%{name}-zsh
mkdir -p %{buildroot}%{_datadir}/doc/%{name}-fish

# Копируем иконку с сайта herbstluftwm
install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
# Устанавливаем файлы-заглушки с простеньким описанием пакетов автодополнений
install -pm 644 %{SOURCE2} %{buildroot}%{_datadir}/doc/%{name}-bash/BREADME
install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/doc/%{name}-zsh/ZREADME
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/doc/%{name}-fish/FREADME

# Изменение заголовков файлов на соответствующие
for f in "%{buildroot}%{_datadir}/doc/%{name}/examples/*.sh"
do
	sed -i -e "s|#!/usr/bin/env bash|#!/usr/bin/bash|" $f
done

for f in "%{buildroot}%{_sysconfdir}/xdg/%{name}/*"
do
	sed -i -e "s|#!/usr/bin/env bash|#!/usr/bin/bash|" $f
done

# Удаляем лишнее
rm -f %{buildroot}%{_datadir}/doc/%{name}/{INSTALL,NEWS,LICENSE}

# Делаем скрипты examples не исполняемыми
chmod -x %{buildroot}%{_datadir}/doc/%{name}/examples/*.sh


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2257 |21cr|hermes-1.3.3-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname hermes %{major}
%define devname %mklibname hermes -d

Summary:	Hermes pixel format conversion library
Name:		hermes
Version:	1.3.3
Release:	18
License:	LGPLv2+
Group:		System/Libraries
Url:		http://clanlib.org/hermes/
Source0:	http://dark.x.dtu.dk/~mbn/clanlib/download/Hermes-%{version}.tar.bz2

%description
HERMES is a library designed to convert a source buffer with a specified pixel
format to a destination buffer with possibly a different format at the maximum
possible speed.

On x86 and MMX architectures, handwritten assembler routines take over
the job and do it lightning fast.

On top of that, HERMES provides fast surface clearing, stretching and some
dithering. Supported platforms are basically all that have an ANSI C compiler
as there is no platform specific code but those are supported: DOS, Win32
(Visual C), Linux, FreeBSD (IRIX, Solaris are on hold at the moment), some BeOS
support.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc AUTHORS COPYING INSTALL.DOS INSTALL.unix TODO TODO.conversion
%{_libdir}/libHermes.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}hermes1-devel < 1.3.3-15
Obsoletes:	%{_lib}hermes1-devel < 1.3.3-15

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc docs/api/*.htm
%{_includedir}/*
%{_libdir}/libHermes.so

#----------------------------------------------------------------------------

%prep
%setup -qn Hermes-%{version}

%build
%configure \
	--disable-x86asm \
	--disable-static
make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2258 |21cr|heroes-0.21-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define dataversion 1.5

Summary:	Game like Nibbles but different
Name:		heroes
Version:	0.21
Release:	16
License:	GPLv2+
Group:		Games/Arcade
Url:		http://heroes.sourceforge.net/
Source0:	http://download.sourceforge.net/heroes/%{name}-%{version}.tar.bz2
Source1:	http://download.sourceforge.net/heroes/%{name}-data-%{dataversion}.tar.bz2
Source2:	http://download.sourceforge.net/heroes/%{name}-sound-tracks-1.0.tar.bz2
Source3:	http://download.sourceforge.net/heroes/%{name}-sound-effects-1.0.tar.bz2
Source5:	%{name}-16.png
Source6:	%{name}-32.png
Source7:	%{name}-48.png
Patch0:		heroes-0.21-debian-fixes.patch.bz2
Patch1:		heroes-0.21-fix-build-gcc4.patch.bz2
Patch2:		heroes-0.21-gcc10.patch
BuildRequires:	bison
BuildRequires:	gettext
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)

%description
Heroes is similar to the "Tron" and "Nibbles" games of yore, but includes
many graphical improvements and new game features.  In it, you must
maneuver a small vehicle around a world and collect powerups while avoiding
obstacles, your opponents' trails, and even your own trail. Several modes
of play are available, including "get-all-the-bonuses", deathmatch, and
"squish-the-pedestrians".

Screenshots:
http://heroes.sourceforge.net/screenshots.html

%files -f %{name}.lang
%doc AUTHORS ChangeLog INSTALL NEWS README THANKS TODO
%{_gamesdatadir}/%{name}
%{_mandir}/man6/%{name}*
%{_gamesbindir}/%{name}*
%{_datadir}/applications/*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_infodir}/%{name}.info*

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -q -D -T -a 1
%setup -q -D -T -a 2
%setup -q -D -T -a 3
%patch0 -p1
%patch1 -p1
%patch2 -p1

cat << EOF > rosa-%{name}.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Heroes
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir} \
	--disable-debug \
	--without-ggi --without-gii \
	--with-sdl
%make LDFLAGS="-lm -lpthread"
    (cd %{name}-data-%{dataversion}
     %configure --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}
     %make
    )
for i in sound-effects sound-tracks; do
    (
    cd %{name}-$i-1.0
    %configure --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}
    %make
    )
done

%install
%makeinstall_std bindir=%{_gamesbindir} datadir=%{_gamesdatadir}
    (cd %{name}-data-%{dataversion}
     %makeinstall_std bindir=%{_gamesbindir} datadir=%{_gamesdatadir}
    )
for i in sound-effects sound-tracks; do
    (
    cd %{name}-$i-1.0
    %makeinstall_std bindir=%{_gamesbindir} datadir=%{_gamesdatadir}
    )
done

mv %{buildroot}%{_gamesdatadir}/locale/ %{buildroot}%{_datadir}/

install -D -m644 rosa-%{name}.desktop %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
install -m644 %{SOURCE6} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE5} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE7} -D %{buildroot}%{_liconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2259 |21cr|hevea-2.36-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	A fast LaTeX to HTML translator
Name:		hevea
Version:	2.36
Release:	1
License:	QPL
Group:		Publishing
Url:		http://hevea.inria.fr
Source0:	http://hevea.inria.fr/distri/%{name}-%{version}.tar.gz
Source1:	http://para.inria.fr/~maranget/hevea/distri/hevea-%{version}-manual.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	ocaml >= 3.12
BuildRequires:	ocaml-ocamlbuild
Requires:	texlive-kpathsea.bin
Requires(post,postun):	texlive-kpathsea.bin

%description
HEVEA is a LaTeX to HTML translator.  The input language is a fairly
complete subset of LaTeX2e (old LaTeX style is also accepted) and
the output language is HTML that is (hopefully) correct with respect
to version 4.0 (transitional).

This package is a binary installation of the hevea system.
This software includes the Objective Caml run-time system, which is
copyright 1995--1999 INRIA.

%files
%doc %{name}-%{version}-manual/*
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/texmf-dist/tex/latex/%{name}.sty
%{_datadir}/texmf-dist/tex/latex/mathjax.sty

%post
%{_bindir}/mktexlsr

%postun
%{_bindir}/mktexlsr

#----------------------------------------------------------------------------

%prep
%setup -q -a1

%build
rm -f config.sh
make \
        PREFIX=%{_prefix} \
        LIBDIR=%{_datadir}/%{name} \
        LATEXLIBDIR=%{_datadir}/texmf-dist/tex/latex

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/texmf-dist/tex/latex/%{name}
make install \
        DESTDIR=%{buildroot} \
        PREFIX=%{_prefix} \
        LIBDIR=%{_datadir}/%{name} \
        LATEXLIBDIR=%{_datadir}/texmf-dist/tex/latex

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2260 |21cr|hex-a-hop-1.2.0-20150814.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot 20150814
%define rel     1

%define _appdatadir %{_datadir}/appdata

Name:           hex-a-hop
Version:        1.2.0
Release:        %{snapshot}.%{rel}
Summary:        Puzzle game based on hexagonal tiles
Group:          Games/Puzzles
License:        GPLv2+
URL:            http://hexahop.sourceforge.net/
# Obtaining the source:
# git clone git://git.code.sf.net/p/hexahop/code hexahop-code
Source0:        %{name}-%{version}-git%{snapshot}.tar.gz

BuildRequires:  gettext-devel
BuildRequires:  imagemagick
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(SDL_Pango)
BuildRequires:  pkgconfig(SDL_ttf)
BuildRequires:  desktop-file-utils

%description
Hex-a-Hop is a hexagonal tile-based puzzle game with one simple goal:
destroy all green tiles! There are infinite undos and no time limits --
you just have to find a way to destroy all the green tiles and step on
a safe tile at the end.

%prep
%setup -qn hexahop-code
perl -pi -e "s|;KidsGame||" data/hex-a-hop.desktop

%build
autoreconf -vfi
%configure --bindir=%{_gamesbindir} \
               --datadir=%{_gamesdatadir}
%make

%install
rm -fr %{buildroot}
%makeinstall_std

for size in 48 96 128 192; do
  mkdir -p %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
  convert data/hex-a-hop.png -resize ${size} \
      %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done
mkdir -p %{buildroot}%{_iconsdir}/hicolor/16x16/apps
install -m644 data/hex-a-hop-16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

desktop-file-validate %{buildroot}%{_datadir}/applications/*

%find_lang %{name}


%clean
rm -fr %{buildroot}

%files -f %{name}.lang
%doc COPYING NEWS README data/hints.html
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2261 |21cr|hexalate-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		hexalate
Summary:	Color matching game
License:	GPLv3
Version:	1.2.0
Release:	2
Group:		Games/Puzzles
Url:		http://gottcode.org/hexalate
Source:		http://gottcode.org/hexalate/download/?os=source/%{name}-%{version}-src.tar.bz2
BuildRequires:	pkgconfig(Qt5Core) >= 5.6
BuildRequires:	pkgconfig(Qt5Widgets) >= 5.6
BuildRequires:	pkgconfig(Qt5Script) >= 5.6
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Multimedia) >= 5.6
BuildRequires:	qmake5
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util

%description
The goal of the game is to rotate and
position the circles so that each touching line matches in color. You
rotate circles by right clicking, and you move circles by dragging them.
The game stores the positions and rotations of the circles across runs.


%files -f %{name}.lang
%doc README COPYING CREDITS ChangeLog
%{_gamesbindir}/%{name}
%{_datadir}/applications/*.desktop
%{_appdatadir}/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6.*
#--------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%qmake_qt5 PREFIX=%{_prefix} BINDIR=games
%make


%install
%makeinstall_qt PREFIX=%{_prefix} BINDIR=games

%{find_lang} %{name} --with-qt



%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2262 |21cr|hexamine-0.2.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hexagonal Minesweeper
Name:		hexamine
Version:	0.2.1
Release:	9
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://sourceforge.net/projects/hexamine
Source0:	http://prdownloads.sourceforge.net/hexamine/%{name}-%{version}.tar.bz2
Source1:	%{name}.6
BuildRequires:	imagemagick
Requires:	pygame
BuildArch:	noarch

%description
A puzzle game, based on Minesweeper idea.

It introduces hexagonal grid, 3 different mine powers and extended
neighborhood information. All the above allows to present non trivial
but mostly solvable game situations even for most experienced player.

You can configure the game using system wide or user configuration file.

%files
%doc ABOUT README
%attr(0755,root,games) %{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

find . -type f -name "*.png" -exec convert {} -strip {} \;

perl -pi -e "s#./skins#%{_gamesdatadir}/%{name}/skins#g" hexamine.py
convert -size 16x16 skins/basic/hextile_flag_4.png %{name}-16.png
convert -size 32x32 skins/basic/hextile_flag_4.png %{name}-32.png
convert -size 48x48 skins/basic/hextile_flag_4.png %{name}-48.png

%build

%install
install -d -m 755 %{buildroot}%{_gamesbindir}
install -m 755 %{name}.py %{buildroot}%{_gamesbindir}/%{name}
install -d -m 755 %{buildroot}%{_gamesdatadir}/%{name}/skins/basic/
install -m 644 skins/basic/* %{buildroot}%{_gamesdatadir}/%{name}/skins/basic/
install -d -m 755 %{buildroot}/%{_sysconfdir}
install -m 644 %{name}.conf %{buildroot}/%{_sysconfdir}

#icons
install -d -m 755 %{buildroot}/%{_miconsdir}
install -m 644 %{name}-16.png %{buildroot}/%{_miconsdir}/%{name}.png
install -d -m 755 %{buildroot}/%{_iconsdir}
install -m 644 %{name}-32.png %{buildroot}/%{_iconsdir}/%{name}.png
install -d -m 755 %{buildroot}/%{_liconsdir}
install -m 644 %{name}-48.png %{buildroot}/%{_liconsdir}/%{name}.png

#xdg menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Hexamine
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

#man page
install -d -m 755 %{buildroot}/%{_mandir}/man6
install -m 644 %{SOURCE1} %{buildroot}/%{_mandir}/man6/%{name}.6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2263 |21cr|hexcalc-1.11-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A decimal, hexadecimal, octal and binary calculator
Name:		hexcalc
Version:	1.11
Release:	25
License:	GPL-like
Group:		Sciences/Mathematics
Source0:	ftp://ftp.x.org/R5contrib/hexcalc.tar.bz2
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
BuildRequires:	imake
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
Hexcalc is a simple multi-radix calculator for programmers. The calculator
operates in four modes (decimal, hexadecimal, octal and binary).

%files
%{_bindir}/hexcalc
%{_mandir}/*/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
xmkmf
%make CCOPTIONS="%{optflags}" EXTRA_LDOPTIONS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -c hexcalc %{buildroot}%{_bindir}
install -c hexcalc.man %{buildroot}%{_mandir}/man1/hexcalc.1x

# Menu stuff
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_liconsdir}

install -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Hexcalc
Comment=Hexadecimal calculator
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Science;Math;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2264 |21cr|hexglass-1.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		hexglass
Version:	1.2.1
Release:	4
Summary:	Block falling puzzle game based on a hexagonal grid 
Group:		Games/Puzzles
License:	GPLv3+
URL:		http://code.google.com/p/hexglass
Source0:	http://hexglass.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
# Let the application search for locale files in
# /usr/share/hexglass/translations/
Patch0:		hexglass-1.2.1-locale-path.patch
BuildRequires:	qt4-devel

%description
HexGlass is a Tetris-like puzzle game. Ten different types of blocks
continuously fall from above and you must arrange them to make horizontal
rows of hexagonal bricks. Completing any row causes those hexagonal blocks
to disappear and the rest above move downwards. The blocks above gradually
fall faster and the game is over when the screen fills up and blocks can
no longer fall from the top.

%prep
%setup -q
%patch0 -p1

%build
%qmake_qt4 hexglass.pro
%make

%install
%__rm -rf %{buildroot}
%__install -D hexglass %{buildroot}%{_bindir}/hexglass
%__install -d %{buildroot}%{_datadir}/%{name}/translations
%__install -m 644 -p translations/*.qm %{buildroot}%{_datadir}/%{name}/translations
%__install -D -m 644 -p resources/about_icon.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

# menu-entry
%__mkdir_p  %{buildroot}%{_datadir}/applications
%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=HexGlass
Comment=Tetris-like puzzle game based on a hexagonal grid
Comment[de]=Tetris-ähnliches Puzzlespiel auf einem sechseckigen Raster
Exec=hexglass
Icon=hexglass
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

%clean
%__rm -rf %{buildroot}

%files
%doc CHANGES COPYING README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2265 |21cr|hexter-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Yamaha DX7 modeling DSSI plugin
Name:		hexter
Version:	1.1.1
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://smbolton.com/hexter.html
Source:		https://github.com/smbolton/hexter/releases/download/version_1.1.1/%{name}-%{version}.tar.bz2
BuildRequires:	ladspa-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi) >= 0.4
BuildRequires:	pkgconfig(gtk+-2.0) 
BuildRequires:	pkgconfig(liblo) >= 0.23
BuildRequires:	pkgconfig(ncurses)
# For a basic dssi host
Requires:	dssi

%description
hexter is a software synthesizer that models the sound generation of a Yamaha
DX7 synthesizer. It can easily load most DX7 patch bank files, accept patch
editing commands via MIDI sys-ex messages (ALSA systems only), and recreate
the sound of the DX7 with greater accuracy than any previous open-source
emulation (that the author is aware of....).
It operates as a plugin for the Disposable Soft Synth Interface (DSSI).
DSSI is a plugin API for software instruments (soft synths) with user
interfaces, permitting them to be hosted in-process by audio applications.

%files
%doc ChangeLog COPYING AUTHORS README.rst TODO
%{_libdir}/dssi/%{name}.so
%dir %{_libdir}/dssi/%{name}
%{_libdir}/dssi/%{name}/%{name}_gtk
%{_libdir}/dssi/%{name}/%{name}_text
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.dx7

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
#alias libtoolize=true
%configure --with-gtk2 --with-textui
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2266 |21cr|hexxagon-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Othello clone (GTK version)
Name:		hexxagon
Version:	1.0.2
Release:	5
License:	GPLv2+
Group:		Games/Boards
Url:		http://nesqi.se/hexxagon/
Source0:	http://nesqi.se/download/%{name}-%{version}.tar.bz2
Source11:	%{name}-48.png
Source12:	%{name}-32.png
Source13:	%{name}-16.png
Patch0:		hexxagon-1.0-fix-build.patch
Patch1:		hexxagon-1.0.2-glibc-2.31.patch
BuildRequires:	pkgconfig(gtkmm-2.4)

%description
Hexxagon is a clone of Hexxagon, an adaptation of
the Othello board game written for DOS.

%files
%doc README
%{_gamesbindir}/%{name}
%{_datadir}/applications/rosa-%{name}*.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .fix-build
%patch1 -p1

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make

%install
%makeinstall bindir=%{buildroot}%{_gamesbindir}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Game;BoardGame;
Name=Hexxagon
Comment=Othello clone
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_liconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2267 |21cr|hfsplusutils-1.0.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 0
%define libname %mklibname hfsp %{major}

Summary:	User-space HFS+ utilities
Name:		hfsplusutils
Version:	1.0.4
Release:	16
License:	GPLv2+
Group:		File tools
Url:		http://penguinppc.org/files/users/hasi/
Source0:	hfsplus_%{version}.src.tar.bz2
Patch0:		hfsplus-1.0.4-debian_jumbo_patch.diff
Patch1:		hfsplus-1.0.4-automake-fix.patch
Patch2:		hfsplus-1.0.4-duplicatedefs.patch
BuildRequires:	automake1.8

%description
A portable, free implementation of routines for accessing HFS+ volumes.
Currently only reading is supported.

%files
%doc doc/bugs.html doc/faq.html doc/hfsp.html doc/libhfsp.html doc/man/hfsp.sgml
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	User-space HFS+ library
Group:		System/Libraries
Conflicts:	%{_lib}hfsplusutils0 < 1.0.4-13
Obsoletes:	%{_lib}hfsplusutils0 < 1.0.4-13
Obsoletes:	%{_lib}hfsplusutils0-devel < 1.0.4-13

%description -n %{libname}
A portable, free implementation of routines for accessing HFS+ volumes.
Currently only reading is supported.

%files -n %{libname}
%{_libdir}/libhfsp.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q -n hfsplus-%{version}
%patch0 -p1
%patch1 -p1 -b .automake-fix
%patch2 -p1

%build
libtoolize --copy --force
aclocal-1.8
autoheader
automake-1.8 -c -a -f
autoconf
%configure

%make CFLAGS="%{optflags}"

%install
%makeinstall

# There are no headers anyway
rm -rf %{buildroot}%{_libdir}/*.so
rm -rf %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2268 |21cr|hfsutils-3.2.6-37
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for reading and writing Macintosh HFS volumes
Name:		hfsutils
Version:	3.2.6
Release:	37
License:	GPLv2+
Group:		File tools
Url:		http://www.mars.org/home/rob/proj/hfs/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		hfsutils-3.2.6_errno.patch
Patch1:		hfsutils-3.2.6-lib64.patch
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(tk)

%description
A portable, free implementation of routines for accessing HFS volumes.
Provides this through several command-line programs, a tk-based front end
for browsing and copying files, and a Tcl package and interface for
scriptable access to volumes.

%files
%doc BLURB CHANGES COPYING COPYRIGHT CREDITS INSTALL README TODO
%{_bindir}/h*
%{_mandir}/man1/h*

#----------------------------------------------------------------------------

%package	devel
Summary:	C library for reading and writing Macintosh HFS volumes
Group:		Development/C
Conflicts:	cdrecord-devel

%description	devel
A portable, free implementation of routines for accessing HFS volumes via a
C library for low-level access to volumes.

%files devel
%{_libdir}/*.a
%{_includedir}/*

#----------------------------------------------------------------------------

%package xhfs
Summary:	A graphical interface for manipulating HFS volumes
Group:		File tools
Requires:	hfsutils

%description xhfs
Xhfs presents a graphical front-end for browsing and copying files on
HFS-formatted volumes.

%files xhfs
%{_bindir}/xhfs
%{_mandir}/man1/xhfs.*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
find . -name Makefile.in |xargs sed -i -e 's,configure.in,configure.ac,g'
autoreconf -vi

%build
export CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DUSE_INTERP_RESULT"
%configure \
	--with-tcl \
	--with-tk \
	--enable-devlibs \
	--with-lib=%{_lib}

%make

%install
# (Dadou) Needed...
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}

# (Dadou) Don't use macros here
make install BINDEST=%{buildroot}%{_prefix}/bin MANDEST=%{buildroot}%{_mandir} LIBDEST=%{buildroot}%{_libdir} INCDEST=%{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2269 |21cr|hg-git-0.10.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mercurial plugin for communicating with Git servers
Name:		hg-git
Version:	0.10.4
Release:	1
License:	GPLv2
Group:		Development/Other
Url:		http://hg-git.github.com/
Source0:	http://pypi.python.org/packages/source/h/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-dulwich
BuildRequires:	python3-setuptools
Requires:	mercurial
Requires:	python3-dulwich
BuildArch:	noarch

%description
This is the Hg-Git plugin for Mercurial, adding the ability to push to
and pull from a Git server repository from Mercurial. This means you
can collaborate on Git based projects from Mercurial, or use a Git
server as a collaboration point for a team with developers using both
Git and Mercurial.

%files
%config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/hg-git.rc
%{python3_sitelib}/hggit/
%{python3_sitelib}/hg_git*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install
cat <<EOF > hg-git.rc
[extensions]
hgext.bookmarks =
hggit = %{python3_sitelib}/hggit
EOF

install -m 755 -d %{buildroot}%{_sysconfdir}/mercurial/hgrc.d
install -m 644 hg-git.rc %{buildroot}%{_sysconfdir}/mercurial/hgrc.d/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2270 |21cr|hiawatha-10.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An advanced and secure webserver for Unix
Name:		hiawatha
Version:	10.8.1
Release:	1
License:	GPLv2
Group:		System/Servers
Url:		http://www.hiawatha-webserver.org/
Source0:	http://www.hiawatha-webserver.org/files/%{name}-%{version}.tar.gz
Source1:	hiawatha.service
Source2:	hiawatha.tmpfiles
BuildRequires:	libxslt-devel
BuildRequires:	pkcs11-helper-devel
BuildRequires:	polarssl-devel
BuildRequires:	cmake >= 2.8.4
Requires(preun):rpm-helper
Requires(post):	rpm-helper
Provides:	webserver


%description
Hiawatha is an advanced and secure webserver for Unix. It has been written 
with 'being secure' as its main goal. This resulted in a webserver which 
has for example DoS protection, connection control and traffic throttling. 
It has of course also thoroughly been checked and tested for buffer overflows

%prep
%setup -q
rm -rf polarssl

%build
%cmake -DENABLE_MONITOR:BOOL=ON \
        -DCMAKE_SKIP_RPATH:BOOL=OFF \
        -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=var \
	-DCMAKE_INSTALL_PREFIX:PATH="" \
        -DCMAKE_INSTALL_BINDIR:PATH=%{_bindir} \
	-DCMAKE_INSTALL_SBINDIR:PATH=%{_sbindir} \
        -DCMAKE_INSTALL_MANDIR:PATH=%{_mandir} \
	-DLOG_DIR="%{_localstatedir}/log/hiawatha" \
        -DPID_DIR="%{_localstatedir}/run" \
	-DWORK_DIR="%{_localstatedir}/lib/hiawatha" \
        -DENABLE_CACHE=On \
	-DENABLE_IPV6=On \
        -DENABLE_RPROXY=On \
	-DENABLE_SSL=On \
        -DENABLE_TOMAHAWK=On \
	-DENABLE_TOOLKIT=On \
        -DENABLE_XSLT=On \
	-DENABLE_ZLIB_SUPPORT=On \
        -DUSE_SYSTEM_POLARSSL=On

%make

%install
pushd build
%makeinstall_std
install -d -m 755 %{buildroot}/var/log/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -D -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/hiawatha.service

#logrotate..

cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
%{_logdir}/%{name}/*.log {
    size=10M
    rotate 5
    weekly
    missingok
    notifempty
    postrotate
    service %{name} reload
    endscript
}
EOF


#run as apache  user
sed "s/#ServerId = www-data/ServerId = apache/" -i %{buildroot}%{_sysconfdir}/hiawatha/hiawatha.conf

popd

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%attr(4755,root,root) %{_sbindir}/cgi-wrapper
%attr(0755,root,root) %{_bindir}/ssi-cgi
%attr(0755,root,root) %{_sbindir}/wigwam
%attr(0755,root,root) %{_sbindir}/%{name}

%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/*
%{_mandir}/*/*.*
%{_sysconfdir}/logrotate.d/%{name}
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%{_libdir}/hiawatha/*
%{_localstatedir}/www/%{name}/index.html
%dir %attr(-,apache,apache) %{_localstatedir}/log/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2271 |21cr|hibernate-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		hibernate
Version:	2.0
Release:	6
License:	GPL
Summary:	Software suspend 2 hibernate script
Group:		System/Base
URL:		http://www.tuxonice.net/
Source:		http://www.tuxonice.net/downloads/all/%{name}-script-%{version}.tar.gz
Patch0:		hibernate-extra_pages_allowance.patch
BuildArch:	noarch

%description
hibernate is a shell script that handles the process of getting ready
to suspend to disk and to resume from disk. It requires the Software
Suspend 2 patches available at http://www.tuxonice.net/,
which are also included in the kernel-tmb package.

After installing you will want to run 'hibernate -h' to see available
options and modify your /etc/hibernate/hibernate.conf to set them.

%prep
%setup -q -n %{name}-script-%{version}

%patch0 -p1

%install
rm -rf %{buildroot}
export BASE_DIR=%{buildroot}
export PREFIX=%{_prefix}
export MAN_DIR=$BASE_DIR/%{_mandir}
sh install.sh

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGELOG COPYING README SCRIPTLET-API
%{_datadir}/%{name}
%{_mandir}/*/*
%{_sbindir}/hibernate
%config(noreplace) %{_sysconfdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2272 |21cr|hid-device-dump-9.04.04-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: hid device dump tool
Name: hid-device-dump
Version: 9.04.04
Release: 5
Source0: %{name}-%{version}.zip
License: GPLv3+
Group: System/X11
Url: http://sourceforge.net/projects/hidtouchsuite/

%description
Tool to dump packets from hid devices.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/hidDeviceDump

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2273 |21cr|higgins-0.15.3180-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################################################
# SpecFile: higgins.spec
# For git do:
# git clone  https://github.com/kokoko3k/higgins.git
######################################################

Summary:	Gambas3 apps launcher
Name:		higgins
Version:	0.15.3180
Release:	1
License:	GPLv3
Group:		Development/Basic
Url:		https://github.com/kokoko3k/higgins
# using my git this time
#Source0:	https://github.com/kokoko3k/higgins/archive/%{version}.tar.gz
Source0:	https://github.com/abfonly/higgins/archive/refs/tags/%{name}-0.15.3180.tar.gz

BuildRequires:	gambas3-devel >= 3.18.0
BuildRequires:	gambas3-runtime >= 3.18.0
BuildRequires:	gambas3-gb-args >= 3.18.0
BuildRequires:	gambas3-gb-image >= 3.18.0
BuildRequires:	gambas3-gb-qt5 >= 3.18.0
BuildRequires:	gambas3-gb-form >= 3.18.0
BuildRequires:	gambas3-gb-dbus >= 3.18.0
BuildRequires:	gambas3-gb-desktop >= 3.18.0
BuildRequires:	gambas3-gb-settings >= 3.18.0
BuildRequires:	gambas3-gb-gui >= 3.18.0
BuildRequires:	gambas3-gb-image >= 3.18.0
BuildRequires:	gambas3-gb-image-effect >= 3.18.0
BuildRequires:	gambas3-gb-net >= 3.18.0
BuildRequires:	gambas3-gb-util >= 3.18.0
BuildRequires:	gambas3-gb-web >= 3.18.0
BuildRequires:	gambas3-gb-inotify >= 3.18.0
BuildRequires:	imagemagick
BuildRequires:	xbindkeys
BuildRequires:	desktop-file-utils

Requires:	gambas3-runtime >= 3.18.0
Requires:	gambas3-gb-args >= 3.18.0
Requires:	gambas3-gb-qt5 >= 3.18.0
Requires:	gambas3-gb-form >= 3.18.0
Requires:	gambas3-gb-form-stock >= 3.18.0
Requires:	gambas3-gb-dbus >= 3.18.0
Requires:	gambas3-gb-desktop >= 3.18.0
Requires:	gambas3-gb-settings >= 3.18.0
Requires:	gambas3-gb-gui >= 3.18.0
Requires:	gambas3-gb-image >= 3.18.0
Requires:	gambas3-gb-image-effect >= 3.18.0
Requires:	gambas3-gb-net >= 3.18.0
Requires:	gambas3-gb-util >= 3.18.0
Requires:	gambas3-gb-web >= 3.18.0
Requires:	gambas3-gb-util-web >= 3.18.0
Requires:	gambas3-gb-inotify >= 3.18.0
Requires:	gambas3-gb-inotify >= 3.18.0
Requires:	xbindkeys
Requires:	schedtool

BuildArch:	noarch

AutoReqProv:	no

%description
Application launcher starts applications and search for things.
* Evaluate expressions (calculator) 
* Find recently opened document
* Find desktop applications
* Find executables
* Find local bookmarks
* Lists the content of folders
* Find files by indexing user-specified folders
* Support external plugins; 
    take a look to External_plugin_locate.sh for an example.

%files
%doc README.* LICENSE.*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}/
%{_appdatadir}/higgins.appdata.xml

#-------------------------------------------------------
%prep
%setup -q

%build
gbc3 -e -a -g -t -f public-module -f public-control || gbc3 -e -a -g -t -p -m
gba3

%install
# binary
mkdir -p %{buildroot}%{_bindir}
install -m755 %{name}-%{version}.gambas %{buildroot}%{_bindir}/%{name}
# data
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -pr backgrounds/ %{buildroot}%{_datadir}/%{name}

# menu entry
install -D -m644 higgins.desktop %{buildroot}%{_datadir}/applications/higgins.desktop

# appdata
install -D -m644 higgins.appdata.xml %{buildroot}%{_appdatadir}/higgins.appdata.xml

# Icon
for size in 256 48 32 16; do
  install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
  convert appicon.png -resize ${size} %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2274 |21cr|highmoon-1.2.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		highmoon
Version:	1.2.4
Release:	7
Summary:	Artillery/Worms-like Game in Open Space
Source0:	http://highmoon.gerdsmeier.net/%{name}-%{version}.tar.gz
Patch1:		highmoon-1.2.3-mdkconf.patch.bz2
URL:		http://highmoon.gerdsmeier.net/
Group:		Games/Arcade
License:	GPLv2
BuildRequires:	SDL-devel SDL_image-devel imagemagick

%description
HighMoon is an Artillery/Worms-like duel game in which two spaceships fight
each other in open space. All shots are deflected by the gravitation of
planets and moons, so be careful not to destroy your own UFO.

%prep
%setup -q -n HighMoon
%patch1 -b .mdkconf
find -type f| xargs chmod 644

%build
%make OPTFLAGS="$RPM_OPT_FLAGS -O3" \
	INSTALLPATH="%{_gamesdatadir}/%{name}" \
	INSTALLBIN="%{_gamesbindir}"

%install
rm -rf $RPM_BUILD_ROOT
make	INSTALLPATH="$RPM_BUILD_ROOT%{_gamesdatadir}/%{name}" \
	INSTALLBIN="$RPM_BUILD_ROOT%{_gamesbindir}" \
	install

cat<<EOF > $RPM_BUILD_ROOT%{_gamesbindir}/highmoon
#!/bin/sh
cd %{_gamesdatadir}/%{name}
./ufo \$@
EOF
chmod 755 $RPM_BUILD_ROOT%{_gamesbindir}/highmoon

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
Name=HighMoon
Comment=%{Summary}
EOF

install -d $RPM_BUILD_ROOT{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert -size 16x16 icon.png $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
convert -size 32x32 icon.png $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
convert -size 48x48 icon.png $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc AUTHORS NEWS README
%defattr(-,root,root)
%{_gamesbindir}/highmoon
%dir %{_gamesdatadir}/highmoon
%dir %{_gamesdatadir}/highmoon/gfx
%{_gamesdatadir}/highmoon/gfx/*
%dir %{_gamesdatadir}/highmoon/snd
%{_gamesdatadir}/highmoon/snd/*
%{_gamesdatadir}/highmoon/ufo
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2275 |21cr|hinetradio-1.0-0.beta6.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	betaversion beta6

Name:		hinetradio
Summary:	Tray applet to listen Hinet radio
Version:	1.0
Release:	%mkrel -c %{betaversion} 4
License:	GPLv2+
Group:		Sound
# URLs are dead: use stored sources
Url:		http://fd.idv.tw/hinetradio
Source0:	%{name}-%{version}-%{betaversion}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(gstreamer-0.10)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	gstreamer0.10-ffmpeg
Requires:	gstreamer0.10-mms

%description
Tray applet to listen Hinet radio.

%files
%doc ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{betaversion}


%build
%configure LIBS="-lX11"
%make


%install
%makeinstall_std

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="TrayIcon" \
	--add-only-show-in="KDE" \
	--add-only-show-in="GNOME" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2276 |21cr|hiredis-0.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname hiredis %{major}
%define devname %mklibname hiredis -d

Summary:	A minimalistic C client library for Redis
Name:		hiredis
Version:	0.10.1
Release:	5
License:	BSD
Group:		System/Libraries
Url:		https://github.com/antirez/hiredis
Source0:	antirez-%{name}-v%{version}-28-gd5d8843.tar.gz
Patch0:		hiredis-0.10.1-major.patch

%description
Hiredis is a minimalistic C client library for the Redis database.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A minimalistic C client library for Redis
Group:		System/Libraries

%description -n %{libname}
Hiredis is a minimalistic C client library for the Redis database.

%files -n %{libname}
%doc COPYING
%{_libdir}/libhiredis.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for hiredis C development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries to develop applications
using a Redis database.

%files -n %{devname}
%doc README.md
%{_includedir}/%{name}
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn antirez-%{name}-d5d8843
%patch0 -p1

%build
%make \
	OPTIMIZATION="%{optflags}" \
	LDFLAGS="%{ldflags}"

%install
make install \
	PREFIX=%{buildroot}%{_prefix} \
	INSTALL_LIBRARY_PATH=%{buildroot}%{_libdir}

rm -f `find %{buildroot} -name *.*a`

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2277 |21cr|hmmer-3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Profile HMMs for protein sequence analysis
Name:		hmmer
Version:	3.0
Release:	7
License:	GPLv3+
Group:		Sciences/Biology
Url:		http://hmmer.janelia.org
Source0:	ftp://selab.janelia.org/pub/software/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch1:		%{name}-3.0.makefile.patch
Patch2:		hmmer-3.0-getopts.patch
BuildRequires:	openmpi
BuildRequires:	pkgconfig(ompi)
ExclusiveArch:	%{ix86} %{x86_64}

%description
Profile hidden Markov models (profile HMMs) can be used to do sensitive
database searching using statistical descriptions of a sequence family's
consensus. HMMER is a freely distributable implementation of profile HMM
software for protein sequence analysis.

%files
%doc README INSTALL LICENSE RELEASE-NOTES Userguide.pdf
%doc documentation tutorial
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1
%patch2 -p1

%build
%configure --enable-mpi
%make

%install
%makeinstall_std

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2278 |21cr|homebank-5.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free easy personal accounting for all
Name:		homebank
Version:	5.7
Release:	1
License:	GPLv2+
Group:		Office
Url:		http://homebank.free.fr
Source0:	http://homebank.free.fr/public/%{name}-%{version}.tar.gz
Patch0:		desktop.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libofx)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
HomeBank is the free software you have always wanted to manage your personal
accounts at home. The main concept is to be light, simple and very easy to use.
It brings you many features that allows you to analyze your finances in a
detailed way instantly and dynamically with powerful report tools based on
filtering and graphical charts.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README doc/TODO
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/applications/*%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}/*
%{_datadir}/mime-info/%{name}.*
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/application-registry/%{name}.applications

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2279 |21cr|horgand-1.14-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

Name:		horgand
Summary:	FM organ synthesizer
Version:	1.14
Release:	12
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/horgand.berlios/
Source0:	https://sourceforge.net/projects/horgand.berlios/files/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-1.14-adopt-fltk.patch
BuildRequires:	alsa-utils
BuildRequires:	fltk-devel 
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrender)

%description
Horgand is a jack capable organ client with presets and some effects
incorporated. Horgand generates the sound in real time like a FM synthesizer.
You can change the frequency of all the drawars and add some special effects.

%files
%doc AUTHORS ChangeLog README COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/rosa-%{name}.desktop
/etc/modules-load.d/%{name}.conf

#-----------------------------------------------------------------------------


%prep
%setup -q
%patch0 -p0


%build
export LDFLAGS="-lX11 -lpthread"
%configure
perl -p -i -e "s|-O6|%{optflags}||g" Makefile
%make


%install
mkdir -p %{buildroot}/%{_bindir}
%makeinstall_std PREFIX=%{_prefix}
rm -fr %{buildroot}/%{_docdir}/%{name}

mkdir -p %{buildroot}/etc/modules-load.d
echo "snd_seq" > %{buildroot}/etc/modules-load.d/%{name}.conf

# Menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Horgand
Comment=%{summary}
Exec=%{name}
Icon=sound_section
Terminal=false
Type=Application
Categories=AudioVideo;Sequencer;
EOF

%post
modprobe snd_seq

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2280 |21cr|host2cat-1.02-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define webserver_cgibindir	%{_var}/www/cgi-bin/
%define _initdir	/etc/rc.d/init.d
%define _cachedir	/var/cache

Summary:	Custom DNS resolver
Name:		host2cat
Version:	1.02
Release:	6
License:	BSD
Group:		System/Servers
Url:		www.netpolice.ru
Source0:	%{name}-%{version}.tar.gz
Source1:	%{name}.init
Source2:	%{name}.sysconfig
Source3:	squid.conf
Source4:	SQLite_migration_1.0.2_to_1.1.sql
Patch0:		%{name}-filterdb.patch
# Automatically added by buildreq on Fri Apr 10 2009
BuildRequires:	libadns-devel
BuildRequires:	memcache-devel
# for findreq
BuildRequires:	perl-DBI
BuildRequires:	perl-Net-DNS perl-CGI
BuildRequires:	pkgconfig(zlib)
# for cgi-bin dir
Requires:	apache-base
Requires:	apache-conf >= 2.0
Requires:	apache-mod_perl
Requires:	perl-DBD-SQLite
Requires:	memcached
Requires:	netpolice-filter
Requires:	squid-conf-%{name}
Requires:	squid >= 3.0

%description
DNS resolver for web content filtering with web interface.

%package -n squid-conf-%{name}
Summary:	adapted squid config
Group:		System/Servers

%description -n squid-conf-%{name}
This package contains squid config adapted for %{name}.

%prep
%setup -q
%patch0 -p1

%build
aclocal --force
autoconf --force
autoheader --force
automake --add-missing --force-missing --foreign
%configure
%make

%install
mkdir -p %{buildroot}/{%{_cachedir}/%{name},%{webserver_cgibindir},%{_libexecdir}/%{name}}
mkdir -p %{buildroot}/%{_var}/lib/netpolice
mkdir -p %{buildroot}/%{_var}/lib/netpolice/squid

install -m0755 -D %{name} %{buildroot}/%{_sbindir}/%{name}
install -m0755 -D %{SOURCE1} %{buildroot}/%{_initdir}/%{name}
install -m0644 -D %{SOURCE2} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
install -m0644 -D %{SOURCE3} %{buildroot}/etc/squid/squid.conf.sample
install -m0644 -D %{SOURCE4} %{buildroot}/var/cache/%{name}/SQLite_migration_1.0.2_to_1.1.sql

install -m0755 contrib/get_file.pl %{buildroot}/%{webserver_cgibindir}/get_file.pl
install -m0644 scripts/config.ph %{buildroot}/%{webserver_cgibindir}/config.ph
install -m0755 scripts/*.cgi %{buildroot}/%{webserver_cgibindir}/
install -m0755 scripts/*.pl %{buildroot}/%{_libexecdir}/%{name}/
install -m0644 scripts/*.schema %{buildroot}/%{_libexecdir}/%{name}/
install -m0644 scripts/custom_roles scripts/generic_roles scripts/users %{buildroot}/%{_libexecdir}/%{name}/

touch %{buildroot}%{_cachedir}/%{name}/filter.db

mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf/{extra-start.d,extra-available,mods-start.d}
cat << EOF > %{buildroot}/%{_sysconfdir}/httpd/conf/extra-start.d/030-host2cat.conf
host2cat=yes
EOF

cat << EOF > %{buildroot}/%{_sysconfdir}/httpd/conf/extra-available/host2cat.conf
<IfModule alias_module>
	ScriptAlias /cgi-bin/ "/var/www/cgi-bin/"
</IfModule>
EOF

cat << EOF > %{buildroot}/%{_sysconfdir}/httpd/conf/mods-start.d/030-host2cat.conf
alias=yes
cgi=yes
EOF

%post
%_post_service %{name}
#/usr/sbin/a2chkconfig &> /dev/null ||:
/sbin/service httpd condreload ||:
INITDB=%{_libexecdir}/%{name}/init_filter_db.pl
[ -x $INITDB ] && $INITDB -d %{_libexecdir}/%{name}/ dbi:SQLite:dbname=%{_cachedir}/%{name}/filter.db ||:
mkdir -p /var/lib/netpolice/squid
touch /var/lib/netpolice/squid/passwd
usr/sbin/htpasswd -b /var/lib/netpolice/squid/passwd netpolice netpolice

%preun
%_preun_service %{name}


%files
%{_initdir}/%{name}
%{_sysconfdir}/sysconfig/%{name}
%{_sysconfdir}/httpd/conf/extra-start.d/030-host2cat.conf
%{_sysconfdir}/httpd/conf/extra-available/host2cat.conf
%{_sysconfdir}/httpd/conf/mods-start.d/030-host2cat.conf
%{_sbindir}/%{name}
%{webserver_cgibindir}/get_file.pl
%{_libexecdir}/%{name}
%config(noreplace) %{webserver_cgibindir}/config.ph
%{webserver_cgibindir}/*.cgi
%dir %attr(711,apache,root) %{_cachedir}/%{name}
%config(noreplace )%attr(644,apache,root) %{_cachedir}/%{name}/filter.db
/var/cache/%{name}/SQLite_migration_1.0.2_to_1.1.sql

%files -n squid-conf-%{name}
%config(noreplace) /etc/squid/squid.conf.sample

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2281 |21cr|hotkeys-0.5.7.1-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program to use the special keys on internet/multimedia keyboards
Name:		hotkeys
Version:	0.5.7.1
Release:	25
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://alioth.debian.org/projects/%{name}/
Source0:	http://alioth.debian.org/projects/%{name}/%{name}_%{version}.tar.bz2
Source1:	vaio.def.bz2
Source2:	FCSAmilo.def.bz2
Source3:	samsungx30.def.bz2
Source4:	precision.def.bz2
Source5:	dellinspiron.def.bz2
Source6:	samsungx10.def.bz2
Source10:	%{name}.sysconfig
Source11:	%{name}.xinit
Patch1:		hotkeys-0.5.7.1_mutefix.patch
Patch2:		hotkeys-0.5.7.1-db5.patch
Patch3:		hotkeys-0.5.7.1-gcc43.diff
Patch4:		hotkeys-0.5.7.1-includedir.patch
BuildRequires:	db-devel >= 5.2.0
BuildRequires:	gettext-devel
BuildRequires:	xosd-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xmu)

%description
The HotKeys daemon listens for the "special" hotkeys that you won't
normally use on your Internet/Multimedia keyboards. The buttons perform
their intended behaviors, such as volume up and down, mute the speaker,
or launch applications. It has On-screen display (OSD) to show the
volume, program that's being started, etc. It features an XML-based
keycode configuration file format, which makes it possible to define the
hotkeys to launch any programs you want.

%files
%doc AUTHORS BUGS COPYING INSTALL TODO def/sample.xml README.mdk
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_sysconfdir}/X11/xinit.d/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p0
%patch2 -p1
%patch3 -p0
%patch4 -p0

%build
autoreconf -fi
%configure --with-xosd
%make
# CC="gcc -I%{_includedir}/libxml2 -I%{_includedir}/libxml2/libxml"
cat > README.mdk <<EOF
Adding a new keyboard
----------------------
If you have a keyboard not supported by this package, you can create 
your own file, by using xev, and writing the xml config files based 
on the examples provided.

Then, you can send them to the author, Anthony Wong <ypwong@ypwong.org>, 
in order to have them included in the tarball. I will also take 
contribution, send them to <misc@mandriva.org>, or fill a bugreport
on qa.mandriva.com ( i prefer bug report as i may forget mail ).

Keyboard for owner of Samsung X10
----------------------------------
For people owning a Samsung X10, the provided keymap requires 2 commands
to activate all keys. Place a script in /etc/X11/xinit.d/ that contains :

#!/bin/bash
setkeycodes 0x74 122
setkeycodes 0x75 123

and use the samsungX10.def file.
See http://www.samsungpc.com/products/x10_x10plus/x10.htm if your are not sure this is
yours.
EOF

echo "WebBrowser=www-browser">> src/%{name}.conf
echo "Shell=xvt">> src/%{name}.conf

%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 src/%{name}.conf %{buildroot}/%{_sysconfdir}
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

install -d %{buildroot}%{_sysconfdir}/X11/xinit.d/
install -m 755 %{SOURCE11} %{buildroot}%{_sysconfdir}/X11/xinit.d/%{name}

bzcat %{SOURCE1} > %{buildroot}/%{_datadir}/%{name}/vaio.def
bzcat %{SOURCE2} > %{buildroot}/%{_datadir}/%{name}/FCSAmilo.def
bzcat %{SOURCE3} > %{buildroot}/%{_datadir}/%{name}/samsungx30.def
bzcat %{SOURCE4} > %{buildroot}/%{_datadir}/%{name}/precision.def
bzcat %{SOURCE5} > %{buildroot}/%{_datadir}/%{name}/dellinspiron.def
bzcat %{SOURCE6} > %{buildroot}/%{_datadir}/%{name}/samsungX10.def

chmod 644 AUTHORS BUGS COPYING INSTALL TODO def/sample.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2282 |21cr|hotshots-2.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname HotShots

Summary:	Screen-shot and Annotation Tool
Name:		hotshots
Version:	2.2.0
Release:	3
License:	GPLv2+
Group:		Graphics
Url:		http://thehive.xbee.net/index.php?module=pages&func=display&pageid=31
Source0:	http://garr.dl.sourceforge.net/project/hotshots/%{version}/%{oname}-%{version}-src.zip
Patch0:		HotShots-2.2.0-desktop.patch
BuildRequires:	imagemagick
BuildRequires:	libqxt-devel
BuildRequires:	qt4-devel
BuildRequires:	desktop-file-utils
BuildRequires:	cmake
BuildRequires:	pkgconfig(xfixes)

%description
HotShots is an application for capturing screens and saving them in
a variety of image formats as well as adding annotations and graphical
data (arrows, lines, texts, ...).

%files -f %{name}.lang
%doc *.txt
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_mandir}/man1/*
%{_datadir}/mime/packages/hotshots.xml
%{_datadir}/%{name}/*.txt

#----------------------------------------------------------------------------

%prep
%setup -qn HotShots-%{version}-src
%patch0 -p1

%if %{mdvver} >= 201410
# fix png rgb
pushd res
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd
%endif

%build
cd build
%cmake
%make

%install
%makeinstall_std -C build/build


# icons
rm -f %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -Dm 0644 res/%{name}.png \
    %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
for size in 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_datadir}/icons/hicolor/${size}/apps
    convert -strip -resize ${size} res/%{name}.png \
        %{buildroot}%{_datadir}/icons/hicolor/${size}/apps/%{name}.png
done

%find_lang %{name} --with-qt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2283 |21cr|hping2-2.0.0-0.rc3.15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define beta rc3

Summary:	TCP/IP packet assembler/analyzer
Name:		hping2
Version:	2.0.0
Release:	%mkrel 0.%{beta}.15
License:	GPL
Group:		Monitoring
URL:		http://www.hping.org/
Source0:	http://www.hping.org/hping%{version}-%{beta}.tar.gz
Patch0:		30_bytesex.diff
Patch1:		hping2.0.0-rc3-hz-250.patch
Patch2:		hping2-LDFLAGS.diff

%description
hping is a command-line oriented TCP/IP packet assembler/analyzer. The
interface is very similar to the ping(8) unix command, with many extensions.
It supports TCP, UDP, ICMP and RAW-IP protocols. A scripting language is under
developing.

%prep

%setup -q -n %{name}-%{beta}
%patch0 -p1 -b .endian
%patch1 -p1 -b .hz250
%patch2 -p0 -b .LDFLAGS

%build
%configure
%make CCOPT="%{optflags}" LDFLAGS="%{ldflags}"

%install
rm -rf %{buildroot}

install -d 755 %{buildroot}%{_sbindir}
install -d 755 %{buildroot}%{_mandir}/man8
install -m 755 hping2 %{buildroot}%{_sbindir}
install -m 644 docs/hping2.8 %{buildroot}%{_mandir}/man8
cd %{buildroot}%{_sbindir} && ln -s hping2 hping

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc BUGS CHANGES COPYING INSTALL KNOWN-BUGS TODO
%{_sbindir}/*
%{_mandir}/man8/hping2.8.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2284 |21cr|hpt-1.4.0-0.rc5.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define fver	1.4
%define pre	rc5

Summary:	Highly Portable FTN Message Tosser
Name:		hpt
Version:	1.4.0
Release:	0.%{pre}.3
License:	GPLv2+
Group:		Networking/Other
Url:		http://sourceforge.net/projects/husky/
Source0:	http://downloads.sourceforge.net/husky/%{name}-%{fver}-%{pre}.tar.gz
Patch0:		hpt-20021015-main.patch
Patch1:		hpt-20021015-doc.patch
Patch2:		hpt-1.4-rc5.huskymak.patch
Patch3:		hpt-1.4-rc5.printf.patch
BuildRequires:	huskybse
BuildRequires:	smapi-devel
BuildRequires:	fidoconf-devel
BuildRequires:	texinfo
Requires:	fidoconf

%description
HPT is a Fidonet message tosser and packer with areafix.

Features of HPT:
 tossing packets of 2, 2.0 & 2+ types
 supporting of Msg, Squish and Jam message bases
 posting to net & echo areas
 areafix (on the fly, from command line, limit for areas...)
 autocreate on the fly
 forward requests
 pause and autopause for links
 linking of net & echo areas
 carbon copy
 groups & levels for personal and public access to echo areas
 powerful dupe checker
 link defaults

%files
%doc BUG-REPORTING BUGS COPYING CREDITS ChangeLog HISTORY INSTALL README TODO UPGRADE VERSION filter.pl config misc
%doc doc/{bugreport.rus,bugreport.txt,faqfmt.pl,hpt-FAQ.russian,perlwin32.rus,perlwin32.txt}
%attr(755,root,root) %{_bindir}/*
#{_infodir}/%{name}.info.*
%{_mandir}/*/*
%dir %{_sysconfdir}/husky
%config(noreplace) %{_sysconfdir}/husky/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
#% patch0 -p1
#% patch1 -p1
%patch2 -p1 -b .huskymak
%patch3 -p1 -b .printf

%build
%make OPTCFLAGS=" -c -fPIC %{optflags}"

%install
install -d %{buildroot}%{_bindir}
make BINDIR=%{buildroot}%{_bindir} MANDIR=%{buildroot}%{_mandir} install
#make INFODIR=%{buildroot}%{_infodir} -C doc install
#rm -rf %{buildroot}%{_infodir}/dir
install -d %{buildroot}%{_sysconfdir}/husky
install -m 644 config/{config,path,links,areas,packer} %{buildroot}%{_sysconfdir}/husky


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2285 |21cr|hstr-2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Suggest box like shell history completion
Name:		hstr
Version:	2.5
Release:	1
License:	ASL 2.0
Group:		Terminals
Url:		http://me.mindforger.com/projects/hh.html
Source0:	https://github.com/dvorka/hstr/archive/%{version}/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	readline-devel

%description
A command line utility that brings improved shell command completion
from the history. It aims to make completion easier and faster than Ctrl-r.

%files
%doc Changelog LICENSE README.md
%{_bindir}/hh
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/hstr
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------

%prep
%setup -q
autoreconf -fi

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2286 |21cr|ht-2.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	HT editor
Name:		ht
Version:	2.1.0
Release:	4
License:	GPLv2+
Group:		Editors
Url:		http://hte.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ht-2.1.0-sfmt.patch
Patch1:		ht-2.1.0-signed-char.patch
Patch2:		ht-2.1.0-uint-abs.patch
Patch3:		ht-2.1.0-gcc10.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	nasm
BuildRequires:	liblzo-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)

%description
This program is a file viewer, editor and analyzer for text, binary, and
(especially) executable files.

%files
%doc README COPYING
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
autoreconf -fi
%configure \
	--enable-release
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2287 |21cr|ht2html-2.0-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The www.python.org Web site generator
Name:		ht2html
Version:	2.0
Release:	24
License:	Public Domain
Group:		Development/Python
Url:		http://ht2html.sourceforge.net/
Source0:	http://osdn.dl.sourceforge.net/ht2html/%{name}-%{version}.tar.bz2
Source1:	%{name}.sh
BuildRequires:	pkgconfig(python)
BuildArch:	noarch

%description
The www.python.org Web site generator.

%files
%defattr(0644,root,root,0755)
%doc README doc/*.{html,png}
%{_datadir}/%{name}
%attr(0755,root,root) %{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 755 calcroot.py %{buildroot}%{_datadir}/%{name}
install -m 755 ht2html.py %{buildroot}%{_datadir}/%{name}
install -m 644 BAWGenerator.py %{buildroot}%{_datadir}/%{name}
install -m 644 Banner.py %{buildroot}%{_datadir}/%{name}
install -m 644 HTParser.py %{buildroot}%{_datadir}/%{name}
install -m 644 IPC8Generator.py %{buildroot}%{_datadir}/%{name}
install -m 644 JPyGenerator.py %{buildroot}%{_datadir}/%{name}
install -m 644 JPyLocalGenerator.py %{buildroot}%{_datadir}/%{name}
install -m 644 LinkFixer.py %{buildroot}%{_datadir}/%{name}
install -m 644 PDOGenerator.py %{buildroot}%{_datadir}/%{name}
install -m 644 SelfGenerator.py %{buildroot}%{_datadir}/%{name}
install -m 644 Sidebar.py %{buildroot}%{_datadir}/%{name}
install -m 644 Skeleton.py %{buildroot}%{_datadir}/%{name}
install -m 644 StandardGenerator.py %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2288 |21cr|html401-dtds-4.01-19991224.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Note to self: like is with the HTML 2.0 and 3.2 DTDs, HTML 4.0 and 4.01
# have the same public id to their ENTITIES files.  They are not exactly the
# same in 4.0 and 4.01, but the changes are in comments only, so no need
# use a hardcoded system id.  Well, until something installs another, and
# incompatible set of entities using the same public id anyway...

%define date    19991224
%define subrel  1

Name:           html401-dtds
Version:        4.01
Release:        %{date}.5
Summary:        HTML 4.01 document type definitions
Group:          Networking/WWW

# W3C Software License for DTDs etc:
# http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620#DTD
License:        W3C
URL:            http://www.w3.org/TR/1999/REC-html401-%{date}/
# Source0 generated with Source99, see comments in the script
Source0:        %{name}-%{date}.tar.bz2
Source99:       %{name}-prepare-tarball.sh
Patch0:         %{name}-catalog.patch

BuildArch:      noarch
Requires:       sgml-common
Requires(post): /usr/bin/install-catalog
Requires(preun): /usr/bin/install-catalog

%description
This package provides the three HTML 4.01 DTDs (strict, frameset, and
transitional).  The DTDs are required for processing HTML 4.01
document instances using SGML tools such as OpenSP, OpenJade, or
SGMLSpm.


%prep
%setup -q -n %{name}
%autopatch -p1


%build


%install

install -dm 755 %{buildroot}%{_datadir}/sgml/html/4.01
install -pm 644 *.dtd *.cat *.ent *.decl \
    %{buildroot}%{_datadir}/sgml/html/4.01

install -dm 755 %{buildroot}%{_sysconfdir}/sgml
cd %{buildroot}%{_sysconfdir}/sgml
touch %{name}-%{version}-%{release}.soc
ln -s %{name}-%{version}-%{release}.soc %{name}.soc
cd -


%post
/usr/bin/install-catalog --add \
  %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc \
  %{_datadir}/sgml/html/4.01/HTML4.cat >/dev/null

%preun
/usr/bin/install-catalog --remove \
  %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc \
  %{_datadir}/sgml/html/4.01/HTML4.cat >/dev/null || :


%files
%ghost %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc
%{_sysconfdir}/sgml/%{name}.soc
%{_datadir}/sgml/html/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2289 |21cr|htmlcxx-0.87-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define css_major 0
%define css_minor 0
%define major 3
%define minor 1

%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	htmlcxx is a simple non-validating css1 and html parser for C++
Name:		htmlcxx
Version:	0.87
Release:	1
License:	LGPLv2
Group:		Development/Other
Url:		http://htmlcxx.sourceforge.net/
Source0:	https://sourceforge.net/projects/htmlcxx/files/htmlcxx/%{version}/%{name}-%{version}.tar.gz
Patch0:		htmlcxx-0.86-linking.patch
Patch1:		htmlcxx-0.87-c++17.patch
BuildRequires:	chrpath

%description
htmlcxx is a simple non-validating css1 and html parser for C++.
Although there are several other html parsers available, htmlcxx has some
characteristics that make it unique: - STL like navigation of DOM tree,
using excelent's tree.hh library from Kasper Peeters.

- It is possible to reproduce exactly, character by character, the original
  document from the parse tree
- Bundled css parser
- Optional parsing of attributes
- C++ code that looks like C++ (not so true anymore)
- Offsets of tags/elements in the original document are stored in the nodes
  of the DOM tree

%files
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/htmlcxx/css/default.css

#---------------------------------------------------------------------

%package -n %{libname}
Summary:	These are the main libraries
Group:		System/Libraries

%description -n %{libname}
The main libraries

%files -n %{libname}
%doc COPYING
%{_libdir}/libhtmlcxx.so.%{major}
%{_libdir}/libhtmlcxx.so.%{major}.*
%{_libdir}/libcss_parser.so.%{css_major}*
%{_libdir}/libcss_parser_pp.so.%{css_major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}/html/
%{_includedir}/htmlcxx/css/parser.h
%{_includedir}/htmlcxx/css/parser_pp.h
%{_libdir}/libhtmlcxx.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libcss_parser.so
%{_libdir}/libcss_parser_pp.so

#---------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -vfi
%configure \
	--enable-shared \
	--disable-static \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir}

%make

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2290 |21cr|htpdate-1.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	HTTP based time synchronization tool
Name:		htpdate
Version:	1.1.0
Release:	3
License:	GPL
Group:		System/Servers
URL:		http://www.clevervest.com/htp/
Source0:	http://www.clevervest.com/htp/archive/c/%{name}-%{version}.tar.xz
Source1:	htpdate.service
Source2:	htpdate.sysconfig
Source3:	%{name}.tmpfiles

%description
The HTTP Time Protocol (HTP) is used to synchronize a computer's time
with web servers as reference time source. Htpdate will synchronize your
computer's time by extracting timestamps from HTTP headers found
in web servers responses. Htpdate can be used as a daemon, to keep your
computer synchronized.
Accuracy of htpdate is usually better than 0.5 seconds (even better with
multiple servers). If this is not good enough for you, try the ntpd package.

Install the htp package if you need tools for keeping your system's
time synchronized via the HTP protocol. Htpdate works also through
proxy servers.

%prep

%setup -q -n %{name}-%{version}

cp %{SOURCE1} %{name}.service
cp %{SOURCE2} %{name}.sysconfig

%build

%make CFLAGS="%{optflags}"

%install

# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/sysconfig

install -m0755 %{name} %{buildroot}%{_sbindir}/%{name}
install -m0644 %{name}.8 %{buildroot}%{_mandir}/%{name}.8
install -m0644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -m0644 %{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
sed "s:sysconfig:%{_sysconfdir}/sysconfig:" -i %{buildroot}%{_unitdir}/%{name}.service
install -D -m 644 %{SOURCE3} %{buildroot}%{_prefix}/lib/tmpfiles.d/htpdate.conf

%post
%tmpfiles_create htpdate
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%clean

%files
%doc README Changelog
%attr(0644,root,root) %{_unitdir}/%{name}.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0644,root,root) %{_mandir}/%{name}.8*
%{_prefix}/lib/tmpfiles.d/*.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2291 |21cr|httperf-0.9.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Popular web server benchmark
Name:		httperf
Version:	0.9.0
Release:	11
License:	GPLv2
Group:		System/Base
Url:		http://www.hpl.hp.com/research/linux/httperf
Source0:	http://httperf.googlecode.com/files/httperf-%{version}.tar.gz
# from debian: fix build with openssl 1.1
Patch0:		40_ssl1.1.0.patch
BuildRequires:	pkgconfig(openssl)

%description
httperf is a popular web server benchmark tool for measuring web server
performance. It provides a flexible facility for generating various HTTP
workloads and for measuring server performance. The focus of httperf is
not on implementing one particular benchmark but on providing a robust,
high-performance tool that  facilitates the construction of both micro-
and macro-level benchmarks.

%files
%doc README NEWS ChangeLog AUTHORS TODO
%attr(0755,root,root) %{_bindir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2292 |21cr|httping-2.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A "ping"-like tool for HTTP requests
Name:		httping
Version:	2.5
Release:	3
Group:		System/Base
License:	GPLv2+ 
URL:		http://www.vanheusden.com/httping/
Source0:	http://www.vanheusden.com/httping/httping-%{version}.tar.gz
BuildRequires:	openssl-devel
BuildRequires:	zlib-devel

%description
httping is a "ping"-like tool for HTTP requests. Give it a URL and it will show
how long it takes to connect, send a request, and retrieve the reply (only the
headers). It can be used for monitoring or statistical purposes (measuring
latency).

%prep

%setup -q

%build
%setup_compile_flags

%make OFLAGS="-D_GNU_SOURCE"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 httping %{buildroot}%{_bindir}/httping
install -m0644 httping.1 %{buildroot}%{_mandir}/man1/httping.1

%files
%doc readme.txt license.txt license.OpenSSL
%{_bindir}/httping
%{_mandir}/man1/httping.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2293 |21cr|http_ping-20050629-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	HTTP latency measuring utility
Name:		http_ping
Version:	20050629
Release:	6
Group:		System/Base
License:	BSD
URL:		http://www.acme.com/software/http_ping/
Source0:	http://www.acme.com/software/http_ping/%{name}_29jun2005.tar.gz
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig

%description
http_ping runs an HTTP fetch every few seconds, timing how long it takes.

%prep

%setup -q -n %{name}
f=http_ping.1 ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f

%build
%serverbuild

%make \
    CFLAGS="$CFLAGS -DUSE_SSL $(pkg-config openssl --cflags)" \
    LDFLAGS="$(pkg-config openssl --libs)"

%install

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 http_ping %{buildroot}%{_bindir}/http_ping
install -m0644 http_ping.1 %{buildroot}%{_mandir}/man1/http_ping.1

%files
%defattr(-,root,root,-)
%doc README
%{_bindir}/http_ping
%{_mandir}/man1/http_ping.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2294 |21cr|httptunnel-3.3-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Creates bidirectional virtual data connections tunneled through HTTP
Name:		httptunnel
Version:	3.3
Release:	20
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.nocrew.org/software/httptunnel.html
Source0:	ftp://ftp.nocrew.org/pub/nocrew/unix/%{name}-%{version}.tar.bz2
Source1:	hts.xinetd
Source2:	hts.init
Source3:	hts.sysconfig
Source4:	httptunnel-tmpfiles.conf
Requires:	xinetd
Requires(pre,post,preun,postun):	rpm-helper

%description
httptunnel creates a bidirectional virtual data path tunneled in HTTP
requests. The HTTP requests can be sent via an HTTP proxy if so desired.
This can be useful for users behind restrictive firewalls. If WWW access
is allowed through a HTTP proxy, it's possible to use httptunnel and, say,
telnet or PPP to connect to a computer outside the firewall.

%files
%doc AUTHORS COPYING ChangeLog DISCLAIMER FAQ HACKING NEWS README TODO
%config(noreplace) %{_sysconfdir}/xinetd.d/hts-xinetd
%config(noreplace) %{_sysconfdir}/sysconfig/hts
%{_initrddir}/hts
%{_tmpfilesdir}/%{name}.conf
%ghost %attr(0755,httptunnel,httptunnel) %{_var}/run/%{name}
%{_bindir}/*
%{_mandir}/man1/*

%pre
%_pre_useradd %{name} %{_var}/run/%{name} /bin/false

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service hts

%preun
%_preun_service hts

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

install -m 0644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/xinetd.d/hts-xinetd
install -m 0755 %{SOURCE2} -D %{buildroot}%{_initrddir}/hts
install -m 0644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/sysconfig/hts
install -m 0644 %{SOURCE4} -D %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -d -m 0755 %{buildroot}%{_var}/run/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2295 |21cr|httrack-3.49.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 2
%define libname %mklibname httrack %{major}
%define libhtsjava %mklibname htsjava %{major}
%define devname %mklibname httrack -d

Summary:	A free (libre/open source) and easy-to-use off-line browser utility
Name:		httrack
Version:	3.49.2
Release:	2
License:	GPLv3+
Group:		Networking/WWW
Url:		http://www.httrack.com
Source0:	http://download.httrack.com/%{name}-%{version}.tar.gz
Patch0:		httrack-3.42-utf-8.patch
BuildRequires:	chrpath
BuildRequires:	desktop-file-utils
BuildRequires:	dos2unix
BuildRequires:	imagemagick
BuildRequires:	perl
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Requires:	openssl
Requires:	xdg-utils

%description
HTTrack is a free (open source) and easy-to-use off-line browser utility.
Download a World Wide Web site from the Internet to a local directory.
Builds recursively all directories. Getting HTML, images, and other files from
the server. HTTrack arranges the original site's relative link-structure.
Simply open a page of the "mirrored" website in your browser: you can browse
the site from link to link, as if you were viewing it on-line.
It can update an existing mirrored site, and resume interrupted downloads.
It is fully configurable, and has an integrated help system.

%files
%doc templates AUTHORS README license.txt history.txt greetings.txt
%doc %{_datadir}/doc/%{name}/*.html
%doc %{_datadir}/doc/%{name}/div/*
%doc %{_datadir}/doc/%{name}/images/*
%doc %{_datadir}/doc/%{name}/img/*
%doc %{_datadir}/doc/%{name}/server/*
%{_bindir}/htsserver
%{_bindir}/httrack
%{_bindir}/webhttrack
%{_bindir}/proxytrack
%config (noreplace) /etc/httrack.conf
%{_mandir}/man1/htsserver.*
%{_mandir}/man1/httrack.*
%{_mandir}/man1/webhttrack.*
%{_mandir}/man1/proxytrack.*
%{_datadir}/applications/WebHTTrack.desktop
#{_datadir}/pixmaps/httrack.xpm
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.def
%{_datadir}/%{name}/html
%{_datadir}/%{name}/lang
%{_datadir}/%{name}/lang.indexes
%{_iconsdir}/hicolor/*/apps/*
%{_libdir}/%{name}/*.so.*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Httrack shared library
Group:		System/Libraries
Conflicts:	%{name} < 3.45.3-1

%description -n %{libname}
Shared library for httrack.

%files -n %{libname}
%doc AUTHORS README license.txt
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{libhtsjava}
Summary:	Httrack shared library
Group:		System/Libraries
Conflicts:	%{_lib}httrack2 < 3.48.21

%description -n %{libhtsjava}
Shared library for httrack.

%files -n %{libhtsjava}
%doc AUTHORS README license.txt
%{_libdir}/libhtsjava.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for httrack
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libhtsjava} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libhttrack-devel = %{EVRD}
Conflicts:	%{name}-devel < 3.48.21
Obsoletes:	%{name}-devel < 3.48.21

%description -n %{devname}
Development files for httrack.

%files -n %{devname}
%doc AUTHORS README license.txt
%{_libdir}/lib%{name}.so
%{_libdir}/libhtsjava.so
%{_libdir}/%{name}/*.so
%{_includedir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .utf8

# Suppress rpmlint errors
chmod 644 AUTHORS
dos2unix ./AUTHORS
dos2unix ./README
dos2unix ./greetings.txt
dos2unix ./history.txt
dos2unix ./html/step3.html
dos2unix ./%{name}-doc.html
dos2unix ./license.txt
dos2unix ./templates/*.html

iconv --from-code ISO8859-1 --to-code UTF-8 ./greetings.txt \
  --output greetings.utf-8 && mv greetings.utf-8 ./greetings.txt
iconv --from-code ISO8859-1 --to-code UTF-8 ./history.txt \
  --output history.utf-8 && mv history.utf-8 ./history.txt
iconv --from-code ISO8859-1 --to-code UTF-8 ./html/contact.html \
  --output contact.utf-8 && mv contact.utf-8 ./html/contact.html

%build
%configure \
	--disable-static

%install
%makeinstall_std

mkdir -p %{buildroot}/etc

cat > %{buildroot}/etc/httrack.conf <<"EOF"
# HTTrack Website Copier Settings
# See httrack --help for more information

# Examples: (to uncomment)

# set proxy proxy.myisp.com:8080
# retries=2
# set max-size 10000000
# set max-time 36000
# set user-agent Mouzilla/17.0 (compatible; HTTrack; I)
#
# There are MUCH more options.. try 'httrack --quiet --help | more'

# Deny and allow for links
# this will be used by default for all mirrors
allow *.gif
allow *.png
deny ad.doubleclick.net/*

# Path and other options
# '~' in the *begining* means 'home dir'
# '#' at the *end* means "projectname" (that is, the first URL given)
# Example: '~/websites/#' will create /home/smith/websites/www.foo.com
# folder when launching 'httrack www.foo.com'
set path ~/websites/#
EOF

chmod 644 %{buildroot}/etc/httrack.conf

# Move libtest and templates from /usr/share/httrack to RPM_BUILD_DIR.
# To be later listed against %%doc.
rm -rf ./libtest ./templates
mv %{buildroot}%{_datadir}/%{name}/libtest .
mv %{buildroot}%{_datadir}/%{name}/templates .

# We need to have a copy of html in /usr/share/httrack.
# The other is to be listed against %%doc.
rm -rf ./html
cp -pr %{buildroot}%{_datadir}/%{name}/html .

# icon
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{48x48,32x32,16x16}/apps
convert %{buildroot}%{_datadir}/pixmaps/httrack48x48.xpm %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert %{buildroot}%{_datadir}/pixmaps/httrack32x32.xpm %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert %{buildroot}%{_datadir}/pixmaps/httrack16x16.xpm %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

rm -rf %{buildroot}%{_datadir}/pixmaps

# This just opens a web browser on ~/websites, which is empty by
# default, so this is a bit useless
rm -f %{buildroot}%{_datadir}/applications/WebHTTrack-Websites.desktop

desktop-file-install --vendor ""  \
	--remove-key Encoding \
	--remove-category="Application" \
	--remove-key Terminal \
	--remove-key MultipleArgs \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# fix icon and shorten name
sed -i	-e 's!^Icon=.*$!Icon=httrack!' \
	-e 's!WebHTTrack Website Copier!HTTrack Website Copier!' \
	%{buildroot}%{_datadir}/applications/*

# Remove rpaths.
chrpath --delete %{buildroot}%{_bindir}/htsserver
chrpath --delete %{buildroot}%{_bindir}/%{name}
chrpath --delete %{buildroot}%{_libdir}/libhtsjava.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2296 |21cr|httraqt-1.4.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  debug_package %{nil}

Summary:	HTTraQt is the clone from WinHTTrack
Name:		httraqt
Version:	1.4.9
Release:	2
License:	GPLv3+
Group:		Networking/WWW
Url:		http://httraqt.sourceforge.net/
Source0:	https://sourceforge.net/projects/httraqt/%{name}-%{version}.tar.gz
Patch0:		10_reproducible_build.patch
Patch1:		httraqt-russian.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	httrack-devel
Requires:	openssl

%description
HTTraQt is the clone from WinHTTrack, software for downloading of 
internet sites or/and content of their: multimedia files, documents, 
images, etc.

%files
%{_bindir}/httraqt
%{_datadir}/applications/httraqt.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/help/*
%{_datadir}/%{name}/lang/*
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1
%patch1 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2297 |21cr|huaweicalc-0-0.git91911f.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 91911fe277b85ce60085c5b0e36e1f60bc555441
%define commit_short %(echo %{commit} | head -c6)

Summary:	Huawei modem unlock code calculator
Name:		huaweicalc	
Version:	0
Release:	0.git%{commit_short}.1
License:	GPLv3
Group:		Monitoring
Url:		https://github.com/forth32/huaweicalc
Source0:	https://github.com/forth32/huaweicalc/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)

%description
Huawei modem unlock code calculator

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#---------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%qmake_qt5
%make

%install
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0644 icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=HuaweiCalc
Comment=%{summary}
Comment[ru]=Калькулятор кодов разблокировки модемов Huawei
Exec=%{name}
Icon=%{name}
Categories=Qt;Utility;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2298 |21cr|hugin-2022.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Panorama Tools GUI
Name:		hugin
Version:	2022.0.0
Release:	2
License:	GPLv2+
Group:		Graphics
Url:		https://hugin.sourceforge.net
Source0:	https://downloads.sourceforge.net/project/hugin/hugin/hugin-%{url_ver}/hugin-%{version}.tar.bz2
Source1:	hugin-2020.0.0_ru.tar.gz
Patch0:		enable_icons.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
BuildRequires:	perl-Image-ExifTool
BuildRequires:	swig >= 2.0.4
BuildRequires:	tclap
BuildRequires:	zip
BuildRequires:	boost-devel >= 1.47.0
BuildRequires:	vigra-devel >= 1.9.0
BuildRequires:	wxgtku3.0-devel
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(exiv2) >= 0.12
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(lensfun)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpano13) >= 2.9.19
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(zlib)
Requires:	enblend >= 3.2
Requires:	libpano13-tools >= 2.9.19
Requires:	perl-Image-ExifTool >= 9.0.9

%description
Hugin can be used to stitch multiple images together. The resulting image can
span 360 degrees. Another common use is the creation of very high resolution
pictures by combining multiple images.

%files -f %{name}.lang
%doc AUTHORS INSTALL_cmake README TODO doc/nona.txt doc/fulla.html src/hugin1/hugin/xrc/data/help_en_EN/LICENCE.manual
%{_bindir}/*
%{_libdir}/%{name}/lib*.so.*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/*.appdata.xml
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/
%{_iconsdir}/hicolor/48x48/mimetypes/application-x-ptoptimizer-script.png
%{_mandir}/man1/*.1.*
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Fix error: non-readable in debug package, we get 1000+ errors from rpmlint
find . -type f -exec chmod 644 {} \;

# Install our translations
pushd src/translations
	tar -xvzf %{SOURCE1}
popd


%build
%define	Werror_cflags %{nil}
%cmake \
	-DCMAKE_SKIP_RPATH:BOOL=OFF \
	-DBUILD_HSI=ON \
	-DENABLE_LAPACK=ON \
	-Wno-dev
%make


%install
%makeinstall_std -C build


# Menu icons - Really needed?
convert -scale 32x32 src/hugin1/hugin/xrc/data/%{name}.png %{buildroot}%{_iconsdir}/%{name}.png

# Fix .desktop files
desktop-file-edit	--add-category="Photography" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

desktop-file-edit	--add-category="Photography" \
	%{buildroot}%{_datadir}/applications/calibrate_lens_gui.desktop

desktop-file-edit	--add-category="Photography" \
	%{buildroot}%{_datadir}/applications/PTBatcherGUI.desktop

desktop-file-edit	--add-category="Photography" \
	--remove-key="Version" \
	%{buildroot}%{_datadir}/applications/pto_gen.desktop


%find_lang %{name} nona_gui %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2299 |21cr|hugo-2.12-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Hu-Go! - TurboGrafx 16/PC-Engine Emulator
Name:		hugo
Version:	2.12
Release:	16
License:	GPLv2+
Group:		Emulators
Url:		http://www.zeograd.com/
Source0:	http://www.zeograd.com/download/%{name}-%{version}.tar.gz
Source1:	%{name}-48.png
Patch0:		hugo-2.12-gcc4.patch
Patch1:		hugo-2.12-x86_64fix.patch
Patch2:		hugo-2.12-x86_64-fixes-backport.patch
Patch3:		hugo-2.12-sfmt.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
Hu-Go! is a TurboGrafx 16/PC-Engine Emulator. There is some public domain roms
you play with. The other games need that you own the original card or CD.

%files
%doc AUTHORS NEWS README
%attr(0755,root,games) %{_gamesbindir}/%{name}
%{_gamesbindir}/hugod
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_iconsdir}/*.png
%{_mandir}/man6/%{name}*.6*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%global optflags %{optflags} -fgnu89-inline
%configure
%make

%install
%makeinstall bindir=%{buildroot}/%{_gamesbindir}

install -d -m 755 %{buildroot}%{_mandir}/man6/
install -m 644 %{name}*.6 %{buildroot}%{_mandir}/man6/

install -D -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat<<EOF>%{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Hugo
Comment=Hu-Go!
Exec=%{_gamesbindir}/hugo
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2300 |21cr|hunt-1.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Connection intruder
Name:		hunt
Version:	1.5
Release:	13
License:	GPLv2+
Group:		Networking/Other
Url:		http://lin.fsid.cvut.cz/~kra/index.html#HUNT
Source0:	ftp://ftp.gncz.cz/pub/linux/hunt/%{name}-%{version}.tar.bz2
Patch0:		hunt-1.5-arridx.patch
Patch1:		hunt-1.5-cleanup.patch
Patch2:		hunt-1.5-signness.patch
Patch3:		hunt-1.5-listlen.patch
Patch4:		hunt-1.5-badcmp.patch
Patch5:		hunt-1.5-datatypes.patch
Patch6:		hunt-1.5-format-security.patch

%description
Hunt is a program for intruding into a connection, watching it and
resetting it.

%files
%doc README* INSTALL CHANGES TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .arridx
%patch1 -p1 -b .cleanup
%patch2 -p1 -b .signness
%patch3 -p1 -b .listlen
%patch4 -p1 -b .badcmp
%patch5 -p1 -b .datatypes
%patch6 -p1 -b .format-security

%build
%make \
	CC='%__cc -std=gnu89' \
	CFLAGS="%{optflags} -D_REENTRANT" \
	LDFLAGS="%{optflags} -D_REENTRANT"
cd tpserv
%make \
	CC='%__cc -std=gnu89' \
	CFLAGS="%{optflags} -D_REENTRANT" \
	LDFLAGS="%{optflags} -D_REENTRANT"

%install
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_bindir}

install man/hunt.1 %{buildroot}%{_mandir}/man1
install hunt %{buildroot}%{_bindir}
install tpserv/tpserv %{buildroot}%{_bindir}
install tpsetup/transproxy %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2301 |21cr|hupnp-1.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname herqq

%define major 1
%define api 2.7
%define libname %mklibname hupnp %{major}
%define libqtsolution %mklibname QtSolutions_SOAP %{api} %{major}
%define devname %mklibname hupnp -d

Summary:	Qt4-based software library for building UPnP devices and control points
Name:		hupnp
Version:	1.0.0
Release:	10
License:	LGPLv3+
Group:		System/Libraries
Url:		http://www.herqq.org
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{srcname}-%{version}.zip
Patch0:		herqq-1.0.0-c++11.patch
BuildRequires:	qt4-devel

%description
Herqq UPnP (HUPnP) is a software library for building UPnP devices and control
points conforming to the UPnP Device Architecture version 1.1. It is designed
to be simple to use and robust in operation. It is built using C++ and the Qt
Framework following many of the design principles and programming practices
used in the Qt Framework. It integrates into Qt-based software smoothly and
enables truly rapid UPnP development.

%files

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
Software library for building UPnP devices and control points.

%files -n %{libname}
%{_libdir}/libHUpnp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtsolution}
Summary:	Library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}libqtsolution1 < 1.0.0-5
Obsoletes:	%{_lib}libqtsolution1 < 1.0.0-5

%description -n %{libqtsolution}
Library for %{name}.

%files -n %{libqtsolution}
%{_libdir}/libQtSolutions_SOAP-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libqtsolution} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.0.0-5
Obsoletes:	%{name}-devel < 1.0.0-5

%description -n %{devname}
Libraries and header files to develop applications that use %{name}.

%files -n %{devname}
%{_includedir}/HUpnpCore/
%{_libdir}/libQtSolutions_SOAP-2.7.so
%{_libdir}/libHUpnp.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{srcname}-%{version}
%patch0 -p1

%build
%qmake_qt4 %{srcname}.pro

%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}/usr/include/HUpnpCore
pushd hupnp/bin
mv lib* %{buildroot}%{_libdir}
popd
pushd hupnp/deploy/include/HUpnpCore/
mv * %{buildroot}/usr/include/HUpnpCore/
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2302 |21cr|huskybse-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Common files for all packages of the Husky-project
Name:		huskybse
Version:	1.0.0
Release:	11
License:	GPL
Group:		File tools
Source:		%{name}-%{version}.tar.bz2
URL:		http://sourceforge.net/projects/husky/
Buildarch:	noarch

%description
This package contains some files common to all packages of the Husky-software.
Only needed if you want to compile the Husky-software yourself.

%prep
%setup -q -n %name

%build

perl -pi -e 's!^PREFIX=.*!PREFIX=%_prefix!' huskymak.cfg
perl -pi -e 's!^MANDIR=.*!MANDIR=%_mandir!' huskymak.cfg
perl -pi -e 's!^CFGDIR=.*!CFGDIR=%_sysconfdir/%name!' huskymak.cfg
perl -pi -e 's!^OPTCFLAGS=.*!OPTCFLAGS=-c -s %optflags!' huskymak.cfg

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_datadir}/husky
install -m 644 huskymak.cfg $RPM_BUILD_ROOT%{_datadir}/husky

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc bugreport.rus bugreport.txt ChangeLog DEPENDENCIES huskymak.cfg huskymak.cfg.bsd huskymak.cfg.debian huskymak.cfg.sun INSTALL README README.Makefiles develop-docs new
%dir %{_datadir}/husky/
%{_datadir}/husky/huskymak.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2303 |21cr|hydra-9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define oname thc-hydra

Summary:	Network logon cracker
Name:		hydra
Version:	9.2
Release:	1
License:	AGPLv3
Group:		Monitoring
Url:		https://www.thc.org/thc-hydra
Source0:	https://github.com/vanhauser-thc/thc-hydra/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		hydra-path.patch
BuildRequires:	imagemagick
BuildRequires:	ncpfs-devel
BuildRequires:	pkgconfig(apr-1)
BuildRequires:	pkgconfig(apr-util-1)
BuildRequires:	pkgconfig(fbclient)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libpgtypes)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libsvn_client)
BuildRequires:	pkgconfig(mariadb)
BuildRequires:	pkgconfig(ncurses)

%description
A very fast network logon cracker which support many different services.

%files
%doc CHANGES INSTALL LICENSE* README.md
%{_bindir}/hydra
%{_bindir}/dpl4hydra.sh
%{_bindir}/hydra-wizard.sh
%{_bindir}/pw-inspector
%dir %{_datadir}/hydra
%{_datadir}/hydra/dpl4hydra_full.csv
%{_datadir}/hydra/dpl4hydra_local.csv
%{_mandir}/man1/hydra.1.*
%{_mandir}/man1/pw-inspector.1.*

#----------------------------------------------------------------------------

%package gui
Summary:	GUI for %{name}
Requires:	%{name} = %{EVRD}

%description gui
GUI for %{name}.

%files gui
%{_bindir}/xhydra
%{_datadir}/applications/hydra.desktop
%{_iconsdir}/hicolor/*/apps/hydra.png
%{_mandir}/man1/xhydra.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}
chmod 644 LICENSE

%build
%configure \
	--prefix=%{_prefix} \
	--fhs

%make


%install
%makeinstall_std

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Hydra
Comment=Network logon cracker
Exec=%{_bindir}/xhydra
Icon=%{name}
Terminal=false
Type=Application
Categories=Network;System;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert xhydra.jpg -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2304 |21cr|hydrogen-1.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Hydrogen

%define	major		%{version}
%define	libname	%mklibname %{name}-core %{major}
%define	devname	%mklibname %{name}-core -d

# portmidi devel package does not conform to our rules, so
# enabling portmidi support makes hydrogen devel package to fail install tests
# because of lib[64]portmidi-devel not being found:
# disable the autoreq machinery for it and require it explicitly
%global __requires_exclude devel\\(libportmidi.*\\)|devel\\(libportmidi\\)|devel\\(liblash.*\\)

Summary:	An advanced Drum Machine
Name:		hydrogen
Version:	1.1.1
Release:	5
License:	GPLv2+
Group:		Sound
Url:			http://www.hydrogen-music.org
Source0:	https://github.com/hydrogen-music/hydrogen/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0:		hydrogen-1.1.1-use-ladish-instead-of-lash.patch
BuildRequires:	cmake >= 2.8.11
BuildRequires:	doxygen
BuildRequires:	rubberband
BuildRequires:	texlive-epstopdf
BuildRequires:	qt5-linguist-tools
BuildRequires:	alsa-oss-devel
BuildRequires:	ladspa-devel
BuildRequires:	libtar-devel
BuildRequires:	portmidi-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(flac++)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblash)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(lrdf)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(sndfile) >= 1.0.17
# ATM rubberband2 support is experimental,
# but hydrogen can detect the binary and use it properly at runtime
#BuildRequires:	pkgconfig(rubberband)
Requires:	rubberband

%description
Hydrogen is an advanced drum machine for GNU/Linux. Its main goal is to bring
professional yet simple and intuitive pattern-based drum programming.

%files
%doc AUTHORS ChangeLog COPYING README.txt
%doc data/new_tutorial/*
%{_bindir}/%{name}
%{_bindir}/h2cli
%{_bindir}/h2player
%{_datadir}/applications/org.hydrogenmusic.%{oname}.desktop
%{_datadir}/appdata/org.hydrogenmusic.%{oname}.appdata.xml
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/??x??/apps/org.hydrogenmusic.%{oname}.png
%{_iconsdir}/hicolor/scalable/apps/org.hydrogenmusic.%{oname}.svg
%{_mandir}/man1/%{name}.1*

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed by %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/libhydrogen-core-%{major}.so

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	portmidi-devel
Requires:	portmidi-devel
Requires:	ladish-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files needed for developing applications which use
%{name}.

%files -n %{devname}
%doc build/html/*
%{_includedir}/%{name}
%{_libdir}/libhydrogen-core.so

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake  \
	-DWANT_DEBUG=OFF \
	-DWANT_CPPUNIT=OFF \
	-DWANT_RUBBERBAND=OFF \
	-DWANT_LASH=ON \
	-DWANT_LIBTAR=ON \
	-DWANT_LRDF=ON \
	-DWANT_PORTAUDIO=ON \
	-DWANT_PORTMIDI=ON
%make
# Build also the devel docs, since we have a devel package
doxygen -u
doxygen Doxyfile


%install
%makeinstall_std -C build

# Provide a devel symlink to the main library
pushd %{buildroot}%{_libdir}
	ln -s libhydrogen-core-%{major}.so libhydrogen-core.so
popd

# Install more icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{64x64,48x48,32x32,24x24,16x16}/apps
cp data/img/gray/icon64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/org.hydrogenmusic.%{oname}.png
cp data/img/gray/icon48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/org.hydrogenmusic.%{oname}.png
cp data/img/gray/icon32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/org.hydrogenmusic.%{oname}.png
cp data/img/gray/icon24.png %{buildroot}%{_iconsdir}/hicolor/24x24/apps/org.hydrogenmusic.%{oname}.png
cp data/img/gray/icon16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/org.hydrogenmusic.%{oname}.png

# Remove useless directory: we take the tutorial with our macro
rm -rf %{buildroot}%{_datadir}/%{name}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2305 |21cr|hydrogen-drumkits-0.9.3.20070703-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Extra drum kits for the Hydrogen drum machine
Name:		hydrogen-drumkits
Version:	0.9.3.20070703
Release:	9
License:	GPLv2+
Group:		Sound
Url:		http://www.hydrogen-music.org
Source0:	http://ftp.de.debian.org/debian/pool/main/h/hydrogen-drumkits/%{name}_%{version}.orig.tar.gz
Source1:	Makefile.hydrogen-drumkits
BuildArch:	noarch

%description
Hydrogen is an advanced drum machine for GNU/Linux. It's main goal is to bring
professional yet simple and intuitive pattern-based drum programming.

%files
%{_datadir}/hydrogen/data/drumkits/*
%{_datadir}/hydrogen/data/demo_songs/*

#----------------------------------------------------------------------------

%prep
%setup -q
install -m 644 %{SOURCE1} ./Makefile
perl -pi -e 's,KITS_DIR=.*,KITS_DIR=%{buildroot}%{_datadir}/hydrogen/data/drumkits,g' ./Makefile
perl -pi -e 's,SONG_DIR=.*,SONG_DIR=%{buildroot}%{_datadir}/hydrogen/data/demo_songs,g' ./Makefile

%build

%install
make unpack
chmod 0755 %{buildroot}%{_datadir}/hydrogen/data/drumkits/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2306 |21cr|hylafax-7.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 7
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

%define	faxspool %{_var}/spool/fax

Summary:	Sophisticated enterprise strength fax package
Name:		hylafax
Version:	7.0.2
Release:	2
Epoch:		1
License:	LGPL-style
Group:		Communications
Url:		http://hylafax.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/hylafax/%{name}-%{version}.tar.gz
Source1:	hylafax-v4.1-cron_entries.tar.bz2
Source2:	hylafax-v4.1-defaults.tar.bz2
Source3:	hylafax-v4.1-dialrules_extras.tar.bz2
Source6:	hylafax-v4.1-logrotate
Source7:	hylafax-v4.1.1-init
Source8:	hylafax-v4.1.1-hyla.conf
Source9:	hylafax_hfaxd_systemd.service
Source10:	hylafax_faxq_systemd.service
Source11:	hylafax_faxgetty_systemd.service
Source12:	hylafax_sysconfig
Source13:	hylafax-hfaxd-tmpfiles.conf
Source14:	hylafax-faxq-tmpfiles.conf
Source100:	hylafax.rpmlintrc
Patch1:		hylafax-7.0.2-ghostscript-fonts-location.patch
Patch2:		hylafax-7.0.2-add-libversion.patch
Patch3:		hylafax-7.0.2-add-soname.patch
Patch4:		hylafax-7.0.2-deps.patch
Patch5:		hylafax-7.0.2-fix-mailfax-scripts.patch
BuildRequires:	ghostscript
BuildRequires:	libtiff-progs
BuildRequires:	mgetty
BuildRequires:	mgetty-voice
BuildRequires:	sendmail-command
BuildRequires:	sharutils
BuildRequires:	jbig-devel
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Requires:	gawk
Requires:	ghostscript
Requires:	libtiff-progs
Requires:	MailTransportAgent
Requires:	mgetty-voice
Requires:	uucp
Conflicts:	mgetty-sendfax
%rename	hylafax-mailgateway

%description
HylaFAX(tm) is a sophisticated enterprise-strength fax package for class 1 and
2 fax modems on unix systems. It provides spooling services and numerous
supporting fax management tools. The fax clients may reside on machines
different from the server and client implementations exist for a number of
platforms including windows.
You need this package if you are going to install hylafax-client and/or hylafax
server. Most users want mgetty-voice to be installed too.

%files
%doc CHANGES CONTRIBUTORS COPYRIGHT README TODO
%{_sbindir}/faxsetup
%{_sbindir}/faxsetup.linux
%attr(-,uucp,uucp) %dir %{faxspool}
%attr(-,uucp,uucp) %dir %{faxspool}/archive
%attr(-,uucp,uucp) %dir %{faxspool}/bin
%attr(-,uucp,uucp) %dir %{faxspool}/client
%attr(-,uucp,uucp) %dir %{faxspool}/config
%attr(-,uucp,uucp) %dir %{faxspool}/dev
%attr(-,uucp,uucp) %dir %{faxspool}/docq
%attr(-,uucp,uucp) %dir %{faxspool}/doneq
%attr(-,uucp,uucp) %dir %{faxspool}/etc
%attr(-,uucp,uucp) %dir %{faxspool}/info
%attr(-,uucp,uucp) %dir %{faxspool}/log
%attr(-,uucp,uucp) %dir %{faxspool}/pollq
%attr(-,uucp,uucp) %dir %{faxspool}/recvq
%attr(-,uucp,uucp) %dir %{faxspool}/sendq
%attr(-,uucp,uucp) %dir %{faxspool}/status
%attr(-,uucp,uucp) %dir %{faxspool}/tmp
#attr(-,uucp,uucp) %%{faxspool}/FIFO*
%attr(-,root,root) %{faxspool}/COPYRIGHT

#----------------------------------------------------------------------------

%package server
Summary:	The files for the HylaFAX(tm) fax server
Group:		Communications
Requires:	%{name}
Requires:	%{name}-client
Requires(post,preun):	rpm-helper
Requires(post,preun):	systemd

%description server
HylaFAX(tm) is a sophisticated enterprise-strength fax package for class 1 and
2 fax modems on unix systems. It provides spooling services and numerous
supporting fax management tools. The fax clients may reside on machines
different from the server and client implementations exist for a number of
platforms including windows.
This is the server portion of HylaFAX.

%files server
%doc README.urpmi
# TODO: Remove old sysvinit stuff
#attr(0755,root,root) %%{_initrddir}/%%{name}-server
%attr(0644,root,root) %{_unitdir}/%{name}-faxgetty@.service
%attr(0644,root,root) %{_unitdir}/%{name}-hfaxd.service
%attr(0644,root,root) %{_unitdir}/%{name}-faxq.service
%attr(0644,root,root) %{_tmpfilesdir}/%{name}-hfaxd.conf
%attr(0644,root,root) %{_tmpfilesdir}/%{name}-faxq.conf
%attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
%attr(0755,root,root) %{_sysconfdir}/cron.daily/%{name}
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-server
%{_sbindir}/faxlock
%attr(-,uucp,uucp) %config(noreplace) %{faxspool}/etc/xferfaxlog
%attr(-,uucp,uucp) %config(noreplace) %{faxspool}/etc/hosts.hfaxd
%attr(-,uucp,uucp) %config(noreplace) %{faxspool}/etc/LiberationSans-25.pcf
%attr(-,uucp,uucp) %config(noreplace) %{faxspool}/etc/lutRS18.pcf
#attr(-,uucp,uucp) %%config(noreplace) %%{faxspool}/etc/dpsprinter.ps
%attr(-,uucp,uucp) %config(noreplace) %{faxspool}/etc/cover.templ
%attr(-,uucp,uucp) %config(noreplace) %{faxspool}/etc/dialrules*
#
%{faxspool}/bin/*
%{faxspool}/config/*
%{_sbindir}/hfaxd
%{_sbindir}/%{name}
%{_sbindir}/faxdeluser
%{_sbindir}/faxadduser
%{_sbindir}/choptest
%{_sbindir}/cqtest
%{_sbindir}/dialtest
%{_sbindir}/faxabort
%{_sbindir}/faxaddmodem
%{_sbindir}/faxanswer
%{_sbindir}/faxconfig
%{_sbindir}/faxcron
%{_sbindir}/faxfetch
%{_sbindir}/faxgetty
%{_sbindir}/faxinfo
%{_sbindir}/faxmodem
%{_sbindir}/faxmsg
%{_sbindir}/faxq
%{_sbindir}/faxqclean
%{_sbindir}/faxquit
%{_sbindir}/faxsend
%{_sbindir}/faxstate
%{_sbindir}/faxwatch
%{_sbindir}/lockname
%{_sbindir}/ondelay
%{_sbindir}/pagesend
%{_sbindir}/probemodem
%{_sbindir}/recvstats
%{_sbindir}/tagtest
%{_sbindir}/tiffcheck
%{_sbindir}/tsitest
%{_sbindir}/typetest
%{_sbindir}/xferfaxstats
%{_datadir}/fax/faxmail.ps
%{_datadir}/fax/hfaxd.conf
%{_mandir}/man5/*
%{_mandir}/man8/*

%post server
%tmpfiles_create %{name}-hfaxd
%tmpfiles_create %{name}-faxq
%_post_service %{name}-hfaxd.service
%_post_service %{name}-faxq.service

# TODO: Remove old sysvinit stuff
#_post_service %%{name}-server
# Adding faxgetty entry to %%{_sysconfdir}/inittab
#logger adding FaxGetty entry to %%{_sysconfdir}/inittab
#cat %%{_sysconfdir}/inittab | grep -i "faxgetty entry" || \
#echo -e "# FaxGetty Entry\n#t0:23:respawn:%%{_sbindir}/faxgetty ttyS0" >> %%{_sysconfdir}/inittab
#
#echo "Please run \"%%{_sbindir}/faxsetup -server\" to configure your fax server"

%preun server
%_preun_service %{name}-hfaxd.service
%_preun_service %{name}-faxq.service

# TODO: Remove old sysvinit stuff
#_preun_service %%{name}-server

#----------------------------------------------------------------------------

%package client
Summary:	The files for the HylaFAX(tm) fax client
Group:		Communications
Requires:	%{name}
Requires(post):	%{name}

%description client
HylaFAX(tm) is a sophisticated enterprise-strength fax package for class 1 and
2 fax modems on unix systems. It provides spooling services and numerous
supporting fax management tools. The fax clients may reside on machines
different from the server and client implementations exist for a number of
platforms including windows.
This is the client portion of HylaFAX.

%files client
%doc COPYRIGHT
%doc faxmail/README
%{_bindir}/sendfax
%{_bindir}/sendpage
%{_bindir}/faxstat
%{_bindir}/faxalter
%{_bindir}/faxcover
%{_bindir}/faxmail
%{_bindir}/faxrm
%{_bindir}/mailfax.sh-postfix
%{_bindir}/mailfax.sh-qmail
%{_bindir}/mailfax.sh-sendmail
%{_bindir}/mailfax.sh-smail
%{_sbindir}/textfmt
%{_sbindir}/edit-faxcover
%{_datadir}/fax/pagesizes
%{_datadir}/fax/faxcover.ps
%{_datadir}/fax/typerules
%config(noreplace) %{_datadir}/fax/hyla.conf
%dir %{_datadir}/fax/faxmail
%dir %{_datadir}/fax/faxmail/application
%dir %{_datadir}/fax/faxmail/image
%{_datadir}/fax/faxmail/application/binary
%{_datadir}/fax/faxmail/application/octet-stream
%{_datadir}/fax/faxmail/application/pdf
%{_datadir}/fax/faxmail/image/tiff
%{_mandir}/man1/*

%post client
%{_sbindir}/faxsetup -client

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Hylafax libraries
Group:		System/Libraries

%description -n %{libname}
HylaFAX(tm) is a sophisticated enterprise-strength fax package for class 1 and
2 fax modems on unix systems. It provides spooling services and numerous
supporting fax management tools. The fax clients may reside on machines
different from the server and client implementations exist for a number of
platforms including windows.
This is the shared librairies of HylaFAX.

%files -n %{libname}
%doc COPYRIGHT
%{_libdir}/libfaxserver.so.%{major}*
%{_libdir}/libfaxutil.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Hylafax Development libraries
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
HylaFAX(tm) is a sophisticated enterprise-strength fax package for class 1 and
2 fax modems on unix systems. It provides spooling services and numerous
supporting fax management tools. The fax clients may reside on machines
different from the server and client implementations exist for a number of
platforms including windows.
This is the development librairies for HylaFAX.

%files -n %{devname}
%doc COPYRIGHT
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -a 2 -a 3
%apply_patches

# Fix lib path
perl -pi -e "s|/usr/local/lib|%{_libdir}|g" configure

cp %{SOURCE6} %{name}-server.logrotate
# TODO: Remove old sysvinit stuff
#cp %%{SOURCE7} %%{name}-server.init
cp %{SOURCE8} hyla.conf


%build
%serverbuild
# It does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

# - Can't use the configure macro because does not understand --prefix
# - A patch makes configure not to ask for a confirmation. An alternative would
#   be to use --quiet, but this way all the configure output would be hidden
export STRIP="/bin/true"
export LDFLAGS="%{ldflags}"
./configure \
	--target=%{_target_platform} \
	--with-DIR_BIN=%{_bindir} \
	--with-DIR_SBIN=%{_sbindir} \
	--with-DIR_LIB=%{_libdir} \
	--with-DIR_LIBEXEC=%{_sbindir} \
	--with-DIR_LIBDATA=%{_datadir}/fax \
	--with-DIR_LOCKS=%{_var}/lock \
	--with-LIBDIR=%{_libdir} \
	--with-TIFFBIN=%{_bindir} \
	--with-DIR_MAN=%{_mandir} \
	--with-PATH_GSRIP=%{_bindir}/gs \
	--with-DBLIBINC=%{_includedir} \
	--with-TIFFINC=-L%{_includedir} \
	--with-LIBTIFF="-ltiff -ljpeg -lz -lm" \
	--with-DIR_SPOOL=%{faxspool} \
	--with-AFM=no \
	--with-AWK=%{_bindir}/gawk \
	--with-PATH_VGETTY=/sbin/vgetty \
	--with-PATH_GETTY=/sbin/mgetty \
	--with-PAGESIZE=A4 \
	--with-PATH_DPSRIP=%{faxspool}/bin/ps2fax \
	--with-PATH_IMPRIP=%{_datadir}/fax/psrip \
	--with-SYSVINIT=%{_initrddir}/%{name} \
	--with-INTERACTIVE=no

# CFLAGS is set up by the HylaFAX configure script; setting it up here the
# standard way would break things. Since OPTIMIZER is included in CFLAGS
# by the HylaFAX configure system, it's used here in place of CFLAGS
#make CFLAGS="$RPM_OPT_FLAGS"
# (gvm) ATM using -j > 1 makes the build fail...
%make -j1 OPTIMIZER="$CFLAGS %{ldflags}" LDFLAGS="\${LDOPTS} \${LDLIBS} %{ldflags}"


%install
# Create needed dirs
install -d -m 755 %{buildroot}%{_sysconfdir}/{logrotate.d,cron.hourly,cron.daily,sysconfig}
install -d -m 755 %{buildroot}%{_unitdir}
install -d -m 755 %{buildroot}%{_tmpfilesdir}
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_sbindir}
install -d -m 755 %{buildroot}%{_libdir}
install -d -m 755 %{buildroot}%{_datadir}/fax
install -d -m 755 %{buildroot}%{faxspool}/{etc,config/defaults,bin}
install -d -m 755 %{buildroot}%{_mandir}/{man1,man5,man8}

# Install binaries and man pages
# FAXUSER, FAXGROUP, SYSUSER and SYSGROUP are set to the current user to
# avoid warnings about chown/chgrp if the user building the SRPM is not root;
# they are set to the correct values with the RPM attr macro
%makeinstall -e \
	FAXUSER=`id -u` \
	FAXGROUP=`id -g` \
	SYSUSER=`id -u` \
	SYSGROUP=`id -g` \
	BIN=%{buildroot}%{_bindir} \
	SBIN=%{buildroot}%{_sbindir} \
	LIBDIR=%{buildroot}%{_libdir} \
	LIBDATA=%{buildroot}%{_datadir}/fax \
	LIBEXEC=%{buildroot}%{_sbindir} \
	SPOOL=%{buildroot}%{faxspool} \
	MAN=%{buildroot}%{_mandir} \
	INSTALL_ROOT=%{buildroot}

# Some hacks
perl -pi -e 's!/usr/etc/inetd.conf!/etc/inetd.conf!g' %{buildroot}%{_sbindir}/faxsetup
perl -pi -e 's!/usr/lib/aliases!/etc/aliases!g' %{buildroot}%{_sbindir}/faxsetup

# Starting from 4.1.6, port/install.sh won't chown/chmod anymore if the current
# user is not root; instead a file root.sh is created with chown/chmod inside.
# If you build the rpm as normal user (not root) you will get an rpm with all the
# permissions messed up and starting hylafax will give various weird errors.
# The following line will fix that by running the provided script.
[ -f root.sh ] && sh root.sh

# Install systemd support
install -m 644 %{SOURCE9} %{buildroot}%{_unitdir}/%{name}-hfaxd.service
install -m 644 %{SOURCE10} %{buildroot}%{_unitdir}/%{name}-faxq.service
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}-faxgetty@.service
# TODO: Remove old sysvinit stuff
#install -m0755 %%{name}-server.init %%{buildroot}%%{_initrddir}/%%{name}-server
install -m 644 %{SOURCE12} %{buildroot}%{_tmpfilesdir}/%{name}-hfaxd.conf
install -m 644 %{SOURCE13} %{buildroot}%{_tmpfilesdir}/%{name}-faxq.conf

# Install sysconfig file
install -p -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

# Install cron files - These entries seem fine
install -m 755 %{name}_daily.cron  %{buildroot}%{_sysconfdir}/cron.daily/%{name}
install -m 755 %{name}_hourly.cron %{buildroot}%{_sysconfdir}/cron.hourly/%{name}

# Install logrotate file
install -m0644 %{name}-server.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server

# Defaults - Disabling this: the defaults are ancient
#install -m 644 defaults/* %%{buildroot}%%{faxspool}/config/defaults/

# Hyla.conf - Need a new default - this one just sets fine mode
# leaving it since it doesn't hurt
install -m0644 hyla.conf %{buildroot}%{_datadir}/fax/hyla.conf

# Install dialrules extras - Darren says the dialrules haven't changed
install -m 644 dialrules_extras/dialrules* %{buildroot}%{faxspool}/etc

# Install the mailfax stuff
install -m0755 faxmail/mailfax.sh-postfix %{buildroot}%{_bindir}/
install -m0755 faxmail/mailfax.sh-qmail %{buildroot}%{_bindir}/
install -m0755 faxmail/mailfax.sh-sendmail %{buildroot}%{_bindir}/
install -m0755 faxmail/mailfax.sh-smail %{buildroot}%{_bindir}/

ln -s ps2fax.gs %{buildroot}%{faxspool}/bin/ps2fax

# Drop useless stuff
rm -f %{buildroot}%{_sbindir}/{faxsetup.irix,faxsetup.bsdi}
rm -f %{buildroot}%{faxspool}/bin/{ps2fax.imp,ps2fax.dps}
rm -f %{buildroot}%{faxspool}/etc/dpsprinter.ps

# Fix perms
chmod +x %{buildroot}{%{_sbindir}/*,/var/spool/fax/bin/*}
chmod -x %{buildroot}%{faxspool}/bin/*.ps

# Provide advice to user about the need of doing setup
cat > README.urpmi << EOF
#########################################################
#			HylaFAX installation complete!              #
#                                                       #
#		You should now run /usr/sbin/faxsetup to        #
#		create or update HylaFAX configuration          #
#		before you can begin using the software.        #
#                                                       #
#########################################################
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2307 |21cr|hyperfine-1.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         debug_package %{nil}

Name:           hyperfine
Version:        1.18.0
Release:        1
Summary:        Command-line benchmarking tool
Group:          Development/Other
License:        Apache-2.0 OR MIT
URL:            https://github.com/sharkdp/%{name}
Source0:        https://github.com/sharkdp/hyperfine/archive/refs/tags/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        hyperfine-vendor-1.18.0.tar.xz
Source10:       upd.sh
BuildRequires:  cargo
BuildRequires:  rust
BuildRequires:  zstd

%description
A command-line tool which runs benchmarks of other programs passed as arguments.
It includes:
  * Statistical analysis across multiple runs
  * Support for arbitrary shell commands
  * Constant feedback about the benchmark progress and current estimates
  * Warmup runs can be executed before the actual benchmark
  * Cache-clearing commands can be set up before each timing run
  * Statistical outlier detection to detect interference from other programs and caching effects
  * Export results to various formats: CSV, JSON, Markdown, AsciiDoc
  * Parameterized benchmarks (e.g. vary the number of threads)

%package bash-completion
Summary:        Bash Completion for %{name}
Requires:       bash-completion
Supplements:    (%{name} and bash-completion)
BuildArch:      noarch

%description bash-completion
The official bash completion script for %{name}.

%package fish-completion
Summary:        Fish Completion for %{name}
Supplements:    (%{name} and fish)
BuildArch:      noarch

%description fish-completion
The official fish completion script for %{name}.

%package zsh-completion
Summary:        ZSH Completion for %{name}
Supplements:    (%{name} and zsh)
BuildArch:      noarch

%description zsh-completion
The official zsh completion script for %{name}.

%prep
%setup -q -a1

mkdir -p .cargo
cat > .cargo/config.toml << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline %{?_smp_mflags}
mkdir -p completions
cp -v target/release/build/%{name}-*/out/%{name}.bash completions/
cp -v target/release/build/%{name}-*/out/%{name}.fish completions/
cp -v target/release/build/%{name}-*/out/_%{name}     completions/

%install
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions
install -Dm644 completions/%{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -Dm644 completions/%{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
install -Dm644 completions/_%{name}     %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
install -Dm644 doc/%{name}.1                                   %{buildroot}%{_mandir}/man1/%{name}.1

%files
%license LICENSE-APACHE LICENSE-MIT
%doc README.md CHANGELOG.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

%files bash-completion
%{_datadir}/bash-completion

%files fish-completion
%{_datadir}/fish

%files zsh-completion
%{_datadir}/zsh


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2308 |21cr|hypnotix-2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	IPTV streaming application with support for live TV, movies and series
Name:		hypnotix
Version:	2.9
Release:	1
License:	GPLv3
Group:		Video
Url:		https://github.com/linuxmint/hypnotix
Source0:	https://github.com/linuxmint/hypnotix/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	%{_lib}mpv1
Requires:	python3-xapps
Requires:	python3dist(imdbpy)
Requires:	python3dist(pygobject)
Requires:	python3dist(setproctitle)
Requires:	python3dist(unidecode)
Requires:	typelib(XApp)

%description
IPTV streaming application with support for live TV, movies and series.

%files -f %{name}.lang
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.x.%{name}.gschema.xml
%{_datadir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_prefix}/lib/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i "/hypnotix.py/i env |grep -q wayland && export GDK_BACKEND=x11" usr/bin/hypnotix

%build
%make

%install
cp -r usr %{buildroot}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2309 |21cr|i2pd-2.51.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define		build_timestamp %(date +"%Y%m%d")

Name:		i2pd
Version:	2.51.0
Release:	1
Summary:	I2P router
License:	BSD
URL:		http://i2pd.website
Group:		Networking/Other
Source0:	https://github.com/PurpleI2P/i2pd/archive/%{version}/%{name}-%{version}.tar.gz
Source10:	i2pd.sysusers.conf
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	systemd
BuildRequires:	boost-devel
BuildRequires:	miniupnpc-devel
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(openssl)
Requires(pre):	/bin/systemd-sysusers

%description
load-balanced unspoofable packet switching network - C++ port
I2P is an anonymizing network, offering a simple layer that identity-sensitive
applications can use to securely communicate. All data is wrapped with several
layers of encryption, and the network is both distributed and dynamic, with no
trusted parties.
This package contains the port of the I2P router to C++. Unless willing
to test and report problems, you should install the 'i2p' package instead.

%files
%doc README.md LICENSE
%{_sbindir}/%{name}
%{_sysconfdir}/%{name}/*
%{_sysconfdir}/logrotate.d/%{name}
%{_datadir}/%{name}/certificates
%{_sharedstatedir}/%{name}/certificates
%{_mandir}/man1/*
%{_unitdir}/i2pd.service
%dir %attr(0700,i2pd,i2pd) %{_sharedstatedir}/i2pd
%{_sysusersdir}/i2pd.conf

%pre
%sysusers_create_package i2pd %{SOURCE10}

%post
%systemd_post i2pd.service

%preun
%systemd_preun i2pd.service

%postun
%systemd_postun_with_restart i2pd.service

#------------------------------------------------------------------------
%prep
%setup -q

%build
pushd build
cmake -DCMAKE_BUILD_TYPE=Release \
	-DWITH_LIBRARY=OFF \
	-DWITH_UPNP=ON \
	-DWITH_HARDENING=ON \
	-DWITH_MESHNET=ON \
	-DWITH_I2LUA=ON \
	-DWITH_WEBSOCKETS=OFF \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	.

%make
popd

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}/tunnels.conf.d
install -d %{buildroot}%{_sysconfdir}/%{name}/certificates
install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sharedstatedir}/%{name}
install -d %{buildroot}%{_mandir}/man1/

pushd build
chrpath -d i2pd
install -Dm0755 %{name} %{buildroot}%{_sbindir}
popd

install -Dm0644 contrib/%{name}.conf %{buildroot}%{_sysconfdir}/%{name}/
install -Dm0644 contrib/tunnels.conf %{buildroot}%{_sysconfdir}/%{name}/
install -Dm0644 contrib/subscriptions.txt %{buildroot}%{_sysconfdir}/%{name}/
install -Dm0644 contrib/%{name}.service %{buildroot}%{_unitdir}
install -Dm0644 contrib/%{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -Dm0644 debian/i2pd.1 %{buildroot}%{_mandir}/man1/
cp -r contrib/certificates/ %{buildroot}%{_datadir}/%{name}/certificates
cp -r contrib/tunnels.d/ %{buildroot}%{_sysconfdir}/%{name}/tunnels.conf.d
ln -s %{_datadir}/%{name}/certificates %{buildroot}%{_sharedstatedir}/%{name}/certificates

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/i2pd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2310 |21cr|i2pd-qt-2.45.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1
%global debug_package %{nil}

Name:		i2pd-qt
Version:	2.45.1
Release:	1
Summary:	A GUI for i2pd
URL:		https://github.com/PurpleI2P
Source0:	%{url}/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	%{url}/i2pd/archive/%{version}/i2pd-%{version}.tar.gz
License:	BSD
Group:		Networking/Other
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	atomic-devel
BuildRequires:	openssl-devel
BuildRequires:	boost-devel
BuildRequires:	miniupnpc-devel
BuildRequires:	chrpath
BuildRequires:	upx
Provides:	i2pd_qt = %{EVRD}

%description
A GUI for i2pd

%files
%doc README.md LICENSE
%{_bindir}/i2pd_qt
%{_datadir}/applications/website.i2pd.i2pd.desktop
%{_datadir}/appdata/website.i2pd.i2pd.appdata.xml
%{_iconsdir}/hicolor/*/apps/website.i2pd.i2pd.png

#---------------------------------------------------------------
%prep
%setup -q
tar -xf %{SOURCE1}
cp -a i2pd-*/* src/i2pd

%build
%qmake_qt5
%make

# compress
upx i2pd_qt

%install
install -Dm0755 i2pd_qt %{buildroot}%{_bindir}/i2pd_qt
install -Dm0644 contrib/website.i2pd.i2pd.desktop %{buildroot}%{_datadir}/applications/website.i2pd.i2pd.desktop
install -Dm0644 contrib/website.i2pd.i2pd.appdata.xml %{buildroot}%{_datadir}/appdata/website.i2pd.i2pd.appdata.xml

# install icons
pushd contrib/icons
for i in $(ls --indicator-style=none); do
install -Dm0644 "$i"/apps/website.i2pd.i2pd.png %{buildroot}%{_iconsdir}/hicolor/"$i"/apps/website.i2pd.i2pd.png
done
popd



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2311 |21cr|i3lock-2.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Simple X display locker like slock
Name:		i3lock
Version:	2.13
Release:	1
License:	MIT
Group:		Graphical desktop/Other
Url:		http://i3wm.org/i3lock/
Source0:	http://i3wm.org/%{name}/%{name}-%{version}.tar.bz2
Patch0:		i3lock-libev.patch
BuildRequires:	cairo-devel
BuildRequires:	pam-devel
BuildRequires:	libev-devel
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-xrm)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	xcb-util-keysyms-devel
BuildRequires:	xcb-util-image-devel
BuildRequires:	xcb-util-devel

%description
i3lock improves slock by making it fork() and therefore combinable with
commands to suspend your computer. Additionally, instead of turning off your
screen via DPMS and/or displaying a black screen, i3lock displays a white
screen so you can see if your computer failed to resume from suspend or if
your screen is just locked. Also, when entering a wrong password, i3lock does
not call XBell(). This is important because i3lock/slock think you’ve entered
a password when resuming from suspend, at least sometimes.

%files
%doc CHANGELOG LICENSE
%{_bindir}/%{name}
%{_sysconfdir}/pam.d/%{name}
%{_mandir}/man1/i3lock.1*

#-------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2312 |21cr|i3status-2.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        I3 Status Bar
Name:           i3status
Version:        2.14
Release:        1
License:        MIT
Group:          Graphical desktop/Other
Source0:        http://i3wm.org/i3status/%{name}-%{version}.tar.xz
Url:            http://i3wm.org/i3status/
BuildRequires:	meson
BuildRequires:	pkgconfig(libconfuse)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(yajl)
BuildRequires:	pkgconfig(libnl-genl-3.0)
BuildRequires:	libiw-devel
BuildRequires:	asciidoc
BuildRequires:	xmlto

%description
i3status is a small program for filling dzen2 or wmii’s status bar

%files
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}
%{_mandir}/man*/%{name}*

#------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2313 |21cr|i3term-3-20221025
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev	23443c4
%define gitdate 20221025

# To update  and rebuild spec please run: 
# cat ./i3term.spec |sed -e '/^###/!d' -e 's/^###[[:space:]]*//' > ./spec.updater ; bash ./spec.updater

### #!/bin/bash
### git clone https://betcher_@abf.io/soft/i3term.git
### pushd ./i3term
### hash="$(git log -1 --format='%h')" 
### date="$(git log -1 --format='%cd' --date=short | tr -d -)"
### rm -rf .git
### tar czf  ../i3term-${date}-git${hash}.tar.gz  ../i3term
### popd
### sed -i '/^.define/s/gitdate.*/gitdate '"$date"'/' ./i3term.spec
### sed -i '/^.define/s/gitrev.*/gitrev	'"$hash"'/' ./i3term.spec
### sed -i 's/^Release.*/Release:	'"$date"'/' ./i3term.spec


Summary:	Kiosk mode based on i3-wm
Name:		i3term
Version:	3
Release:	20221025
License:	GPLv2+
Group:		System/Base
Url:		https://betcher_@abf.io/soft/i3term.git
Source0:	%{name}-%{gitdate}-git%{gitrev}.tar.gz

Requires:	i3-wm-mini
Requires:	polybar
Requires:	zenity
Requires:	typelib(WebKit) = 3.0
Requires:	typelib(Gtk) = 3.0

Recommends:	barium_utils

Buildarch:	noarch

%description
Kiosk mode based on i3-wm

%prep
%setup -qn %{name}

%build

%install
mkdir -p  %{buildroot}%{_bindir}/ %{buildroot}%{_datadir}/rosa-rw/ %{buildroot}/%{_sysconfdir}/%{name}/
mkdir -p %{buildroot}/%{_prefix}/lib/rosa-rw/rc.desktop/deonly %{buildroot}/%{_prefix}/lib/rosa-rw/rc.desktop/%{name}

install -m 644  config  %{buildroot}/%{_sysconfdir}/%{name}/

install -m 755 exclusiveapp %{buildroot}/%{_prefix}/lib/rosa-rw/rc.desktop/deonly/
install -m 755 i3_notification-daemon %{buildroot}/%{_prefix}/lib/rosa-rw/rc.desktop/deonly/

ln -s %{_prefix}/lib/rosa-rw/rc.desktop/deonly/exclusiveapp  %{buildroot}/%{_prefix}/lib/rosa-rw/rc.desktop/%{name}/exclusiveapp
ln -s %{_prefix}/lib/rosa-rw/rc.desktop/deonly/i3_notification-daemon  %{buildroot}/%{_prefix}/lib/rosa-rw/rc.desktop/%{name}/i3_notification-daemon

cp -fr %{name} %{buildroot}%{_datadir}/rosa-rw/
ln -sf %{_datadir}/rosa-rw/%{name}/i3  %{buildroot}%{_bindir}/%{name}


%files
%{_bindir}/%{name}
%{_sysconfdir}/%{name}/config
%{_datadir}/rosa-rw/%{name}/*
%{_prefix}/lib/rosa-rw/rc.desktop/deonly/*
%{_prefix}/lib/rosa-rw/rc.desktop/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2314 |21cr|i3-wm-4.22-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname i3

Summary:	Tiling window manager
Name:		i3-wm
Version:	4.22
Release:	2
License:	BSD
Group:		System/X11
Url:		https://i3wm.org
Source0:	https://i3wm.org/downloads/i3-%{version}.tar.xz
Source1:	i3-logo.svg
Source2:	i3.png
BuildRequires:	meson
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libev)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-cursor)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcb-xrm)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(yajl)
BuildRequires:	perl(ExtUtils::MakeMaker)
Recommends:	dmenu
Recommends:	i3-doc
Requires:	%{name}-mini = %{EVRD}
Requires:	i3lock
Requires:	i3status
Requires:	rxvt-unicode
Requires:	x11-apps
Conflicts:	i3-gaps
Provides:	i3

%description
i3 is a tiling window manager, completely written from scratch.

Key features of i3 are correct handling multi-monitor, horizontal and
vertical columns (table abstraction) in tiling. It also provides
hooks/callbacks for other programs to integrate and it is UTF-8
clean. i3 uses xcb for asynchronous communication with X11, and has
several measures to be very fast.

Please be aware that i3 is primarily targeted at advanced users and
developers.

#--------------------------------------------------------------------------

%files
%doc LICENSE RELEASE-NOTES-%{version}
%dir %{_sysconfdir}/%{oname}/
%config(noreplace) %{_sysconfdir}/%{oname}/config
%config(noreplace) %{_sysconfdir}/%{oname}/config.keycodes
%{_datadir}/xsessions/%{oname}.desktop
%{_datadir}/xsessions/%{oname}-with-shmlog.desktop
%{_mandir}/man*/%{oname}*
%{_datadir}/pixmaps/%{oname}-logo.svg
%{_datadir}/applications/%{oname}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------
%package mini
Summary:	Separate package with i3 binary file

%description mini
Separate package with i3 executable file without configs, desktop files, etc.
Needed for i3term (barium kiosk mode)

%files mini
%{_bindir}/%{oname}*

#----------------------------------------------------------------------------

%package doc
Summary:	i3 window manager documentation
Group:		System/X11
BuildArch:	noarch

%description doc
Asciidoc and doxygen documentations for i3.

%files doc
%doc docs/*.{html,png}

#----------------------------------------------------------------------------

%package devel

Summary:	Devel files for i3-gaps
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Conflicts:	i3-gaps-dev
Provides:	i3-devel

%description devel
This pacakage contains devel files for i3-gaps, mainly header files

%files devel
%{_includedir}/%{oname}/*

#----------------------------------------------------------------------------


%prep
%setup -qn %{oname}-%{version}

# i3-fix-libev.h
grep '<ev.h>' -PRIl . | xargs sed -i 's!<ev.h>!<libev/ev.h>!g'

%build
%meson
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -Dpm0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

rm -rf %{buildroot}%{_datadir}/doc/i3

# install menu icons
for N in 16 32 48 64 128;
do
convert %{SOURCE2} -scale ${N}x${N}! $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2315 |21cr|i8kutils-1.40-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Version: 	1.40
Summary: 	Dell laptop SMM BIOS support
Name: 		i8kutils
Release: 	6
License: 	GPLv2+
Group: 		Monitoring
Source: 	http://ftp.debian.org/debian/pool/main/i/i8kutils/%{name}_%{version}.tar.gz
URL: 		http://people.debian.org/~dz/i8k/
Recommends:	i8kmon

%description
This package contains a user-space programs for accessing the SMM BIOS
of Dell Inspiron and Latitude laptops. The SMM BIOS is used on many recent
laptops to implement APM functionalities and to access custom hardware,
for example cooling fans and volume buttons.

Also provided is a cool and useful plugin for gkrellm.
Note that you need the "Dell Laptop" option compiled into your kernel
(included in the main kernel tree since 2.4.14-pre8)

%package -n i8kmon
Summary: 	Dell laptop SMM BIOS monitoring tool
Group: 		Monitoring
Requires:	tcl
Requires:	tk
Conflicts:	i8kutils < 1.33-2

%description -n i8kmon
This package contains a monitoring tool for accessing the SMM BIOS
of Dell Inspiron and Latitude laptops.

%prep
%setup -q 

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
%makeinstall_std

%clean

%files
%defattr (-,root,root)
%doc README.*
%{_bindir}/i8kbuttons
%{_bindir}/i8kctl
%{_bindir}/i8kfan

%files -n i8kmon
%defattr (-,root,root)
%{_bindir}/i8kmon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2316 |21cr|ia_ora-gnome-1.0.24-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# SOURCE IS STORED IN SVN (soft/theme/ia_ora-gnome), 
# DO NOT PATCH IT

%define libname %{_lib}ia_ora-gnome

Summary:        Ia Ora Mandriva GNOME theme
Name:           ia_ora-gnome
Version:        1.0.24
Release:        9
License:        GPL
Group: Graphical desktop/GNOME
URL:            http://www.mandrivalinux.com/
BuildRequires:  gtk+2-devel
Source0:        %{name}-%{version}.tar.bz2
Requires: gnome-icon-theme
Requires: ia_ora-gnome-gtk2-engine

%description
Mandriva Ia Ora GNOME theme

%package -n %{libname}
Summary: GTK2 engine for Ia Ora theme
Group: System/Libraries
Provides: ia_ora-gnome-gtk2-engine

%description -n %{libname}
GTK2 engine for Ia Ora theme
 
%prep
%setup -q 

%build

%configure

%make

%install
rm -rf $RPM_BUILD_ROOT

%makeinstall_std

#remove unpackaged files 
rm -f $RPM_BUILD_ROOT%{_libdir}/gtk-2.0/*/engines/*.la 

mkdir -p $RPM_BUILD_ROOT%{_datadir}/themes/Ia\ Ora\ Free $RPM_BUILD_ROOT%{_datadir}/themes/Ia\ Ora\ One

%clean
rm -rf $RPM_BUILD_ROOT

%pre
if [ -d %{_datadir}/themes/Ia\ Ora\ Free -a ! -L %{_datadir}/themes/Ia\ Ora\ Free ]; then 
 /bin/rm -rf %{_datadir}/themes/Ia\ Ora\ Free/* || /bin/true
fi

if [ -d %{_datadir}/themes/Ia\ Ora\ One -a ! -L %{_datadir}/themes/Ia\ Ora\ One ]; then 
 /bin/rm -rf %{_datadir}/themes/Ia\ Ora\ One/* || bin/true
fi

%posttrans
# create compatibility symlinks
ln -f -s ../Ia\ Ora\ Smooth/metacity-1 $RPM_BUILD_ROOT%{_datadir}/themes/Ia\ Ora\ One/metacity-1
ln -f -s ../Ia\ Ora\ Smooth/gtk-2.0 $RPM_BUILD_ROOT%{_datadir}/themes/Ia\ Ora\ One/gtk-2.0
ln -f -s ../Ia\ Ora\ Arctic/metacity-1 $RPM_BUILD_ROOT%{_datadir}/themes/Ia\ Ora\ Free/metacity-1
ln -f -s ../Ia\ Ora\ Arctic/gtk-2.0 $RPM_BUILD_ROOT%{_datadir}/themes/Ia\ Ora\ Free/gtk-2.0

%preun 
if [ "$1" = "0" ]; then
 /bin/rm -f %{_datadir}/themes/Ia\ Ora\ Free/* %{_datadir}/themes/Ia\ Ora\ One/*   || /bin/true
fi


%files 
%defattr(-,root,root,-)
%doc README 
%{_datadir}/themes/*

%files -n %{libname}
%defattr(-,root,root,-)
%{_libdir}/gtk-2.0/*/engines/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2317 |21cr|ia_ora-xfce-1.0.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ia Ora Mandriva Xfce theme
Name:		ia_ora-xfce
Version:	1.0.2
Release:	11
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://www.mandrivalinux.com/
Source0:	%{name}-%{version}.tar.bz2
Requires:	ia_ora-gnome-gtk2-engine
Requires:	ia_ora-gnome

%description
This is the Mandriva Ia Ora theme for the Xfce desktop environment.

%prep
%setup -q


%install
rm -rf %{buildroot}
export datadir=%{_datadir}

%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README ChangeLog
%{_datadir}/themes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2318 |21cr|iat-0.1.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Iso9660 Analyzer Tool
Name:		iat
Version:	0.1.7
Release:	6
License:	GPLv2+
Group:		File tools
Url:		http://iat.berlios.de/
Source0:	iat-%{version}.tar.bz2

%description
iat (Iso9660 Analyzer Tool) is a tool for detecting the structure of many
types of CD-ROM image file formats, such as BIN, MDF, PDI, CDI, NRG, and B5I,
and converting them into ISO-9660.

%files
%{_bindir}/%{name}
%doc %{_mandir}/man1/%{name}
%{_docdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}/%{name}
mkdir -p %{buildroot}/%{_mandir}/man1/%{name}

cp src/%{name} %{buildroot}%{_bindir}
cp ChangeLog AUTHORS COPYING INSTALL NEWS README %{buildroot}%{_docdir}/%{name}
install -c -m 644 man/iat.1 %{buildroot}/%{_mandir}/man1/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2319 |21cr|iax-0.2.3-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname iax %{major}
%define devname %mklibname iax -d

Summary:	IAX (Inter Asterisk eXchange) Library
Name:		iax
Version:	0.2.3
Release:	20
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.asterisk.org/
Source0:	libiax2-0.2.3-20060212.tar.bz2
Patch0:		libiax2.diff
Patch1:		libiax2-fix-str-fmt.patch
Patch2:		libiax2-install.patch

%description
Inter Asterisk eXchange, lovingly called IAX (pronounced: eeks),
is the protocol used by the Asterisk PBX system for
inter-asterisk-communication. Other applications may use libiax to
communicate with each other and other asterisk servers. IAX is a
high performance, feature rich protocol unrelated to SIP or H.323.

Its single-socket design allows it to interoperate with NAT and
PAT masquerade firewalls.  It supports internationalization,
remote dialplans, and voice, HTML, image, DTMF, and video content.

For more information see http://www.gnophone.com

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	IAX (Inter Asterisk eXchange) Library
Group:		System/Libraries

%description -n %{libname}
Inter Asterisk eXchange, lovingly called IAX (pronounced: eeks),
is the protocol used by the Asterisk PBX system for
inter-asterisk-communication. Other applications may use libiax to
communicate with each other and other asterisk servers. IAX is a
high performance, feature rich protocol unrelated to SIP or H.323.

Its single-socket design allows it to interoperate with NAT and
PAT masquerade firewalls.  It supports internationalization,
remote dialplans, and voice, HTML, image, DTMF, and video content.

For more information see http://www.gnophone.com

%files -n %{libname}
%doc ChangeLog NEWS README
%{_libdir}/libiax.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	IAX (Inter Asterisk eXchange) Development Package
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Inter Asterisk eXchange, lovingly called IAX (pronounced: eeks),
is the protocol used by the Asterisk PBX system for
inter-asterisk-communication. Other applications may use libiax to
communicate with each other and other asterisk servers. IAX is a
high performance, feature rich protocol unrelated to SIP or H.323.

Its single-socket design allows it to interoperate with NAT and
PAT masquerade firewalls.  It supports internationalization,
remote dialplans, and voice, HTML, image, DTMF, and video content.

For more information see http://www.gnophone.com

This package contains all of the development files that you will
need in order to compile IAX applications.

%files -n %{devname}
%{_bindir}/iax-config
%{_includedir}/iax
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n libiax2
%patch0 -p1
%patch1 -p0
%patch2 -p0

# no debug...
find -type f -name "Makefile.am" | xargs perl -pi -e "s|-DDEBUG_SUPPORT||g"

%build
autoreconf -fi
%configure \
	--disable-extreme-debug
%make

%install
%makeinstall_std

# install _all_ headers...
install -m0644 src/*.h %{buildroot}%{_includedir}/iax/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2320 |21cr|iaxclient-2.1-0.beta3.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define	snap	0
%define	beta	3
%define	rel	5

%if %beta
%define release		%mkrel 0.beta%{beta}.%{rel}
%define distname	%{name}-%{version}beta%{beta}.tar.gz
%define fname		%{name}-%{version}beta%{beta}
%else
%define release		%mkrel %{rel}
%define distname	%{name}-%{version}.tar.gz
%define fname		%{name}-%{version}
%endif

%define major		1
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Summary:	Library to implement the IAX protocol
Name:		iaxclient
Version:	2.1
Release:	%{release}
License:	LGPLv2+
Group:		System/Libraries
URL:		http://iaxclient.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{distname}
Patch0:		iaxclient-1.0-20050410-headers.diff
# Fix header location and linkage for ffmpeg - AdamW 2008/12
Patch1:		iaxclient-2.1-ffmpeg.patch
# Fix some string literal errors - AdamW 2008/12
Patch2:		iaxclient-2.1-literal.patch
# From upstream SVN: make tkphone build - AdamW 2008/12
Patch3:		iaxclient-2.1-tkphone.patch
# Make the dumb thing run - AdamW 2008/12
Patch4:		iaxclient-2.1-tkiaxphone.patch
# Fedora patches
Patch100:	iaxclient-2.1beta3-wxGTK28.patch
Patch102:	iaxclient-2.1beta3-tcl-includedir.patch
Patch103:	iaxclient-2.1beta3-tcl-libdir.patch
Patch104:	iaxclient-2.1beta3-tcl-nodoc.patch
Patch105:	iaxclient-2.1beta3-theora-detection.patch

BuildRequires:	imagemagick
BuildRequires:	gd-devel
BuildRequires:	gsm-devel
BuildRequires:	iax-devel
BuildRequires:	libilbc-devel
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	portaudio-devel
BuildRequires:	portmixer-devel
BuildRequires:	wxgtku-devel
BuildRequires:	x11-server-xvfb
BuildRequires:	liboggz-devel
BuildRequires:	libvidcap-devel
BuildRequires:	libtheora-devel
# Memory barriers are not defined for aarch64, see logs
ExclusiveArch:	%{ix86} %{x86_64}

%description
Although asterisk supports other IP protocols (including SIP, and
with patches, H.323), IAX's simple, lightweight nature gives it
several advantages, particularly in that it can operate easily
through NAT and packet firewalls, and it is easily extensible and
simple to understand.

%package -n %{libname}
Summary:	Library to implement the IAX protocol
Group:		System/Libraries

%description -n %{libname}
Although asterisk supports other IP protocols (including SIP, and
with patches, H.323), IAX's simple, lightweight nature gives it
several advantages, particularly in that it can operate easily
through NAT and packet firewalls, and it is easily extensible and
simple to understand. 

%package -n %{develname}
Summary:	IAXClient Library development files
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
Although asterisk supports other IP protocols (including SIP, and
with patches, H.323), IAX's simple, lightweight nature gives it
several advantages, particularly in that it can operate easily
through NAT and packet firewalls, and it is easily extensible and
simple to understand. 

This package contains the development library and its header
files for the IAXClient Library.

%package utils
Summary:	IAX utilities
Group:		Communications

%description utils
IAX utilities:

 o iax2slin - Originate an IAX2 call, and send the audio from this
   call to stdout
 o testcall, testcall-jb: make a single test call with IAXCLIENT.
   IAX Support for talking to Asterisk and other Gnophone clients

%package -n tkiaxphone
Summary:	Simple IAX phone client
Group:		Communications
Requires:	tk

%description -n tkiaxphone
Simple IAX phone client

EXPERIMENTAL

%package -n iaxcomm
Summary:	IaxComm, a portable IAX2 protocol telephony client
Group:		Communications
URL:		http://iaxclient.sourceforge.net/iaxcomm/

%description -n iaxcomm
iaxComm is an Open Source softphone for the Asterisk PBX.

EXPERIMENTAL

%prep
%setup -q -n %{fname}
%patch0 -p1 -b .headers
%patch1 -p1 -b .ffmpeg
%patch2 -p1 -b .literal
%patch3 -p1 -b .tkphone
%patch4 -p1

%patch100 -p1 -b .wxGTK28
%patch102 -p1 -b .includedir
%patch103 -p1 -b .libdir
%patch104 -p1 -b .nodoc
%patch105 -p1 -b .theoradetect

%build
autoreconf -fis
export RPM_OPT_FLAGS="%{optflags} -fPIC"
%configure --with-gsm-includes=%{_includedir}/gsm \
		--with-wx-config=%{_bindir}/wx-config-unicode \
		--enable-clients="iaxcomm stresstest testcall tkphone vtestcall"
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_bindir}/tkiaxphone

cat > %{buildroot}%{_bindir}/tkiaxphone << EOF
#!/bin/sh
%{_libdir}/iaxclient/tkphone/tkiaxphone
EOF

ln -s %{_libdir}/iaxclient/tkphone/iaxcli %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert simpleclient/iaxcomm/rc/logo.xpm -geometry 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/iaxcomm.png
convert simpleclient/iaxcomm/rc/logo.xpm -geometry 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/tkiaxphone.png
convert simpleclient/iaxcomm/rc/logo.xpm -geometry 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/iaxcomm.png
convert simpleclient/iaxcomm/rc/logo.xpm -geometry 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/tkiaxphone.png
convert simpleclient/iaxcomm/rc/logo.xpm -geometry 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/iaxcomm.png
convert simpleclient/iaxcomm/rc/logo.xpm -geometry 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/tkiaxphone.png

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-iaxcomm.desktop << EOF
[Desktop Entry]
Name=iaxComm
Comment=Portable IAX2 protocol telephony client
Exec=%{_bindir}/iaxcomm
Icon=iaxcomm
Terminal=false
Type=Application
Categories=Network;Telephony;
EOF

cat > %{buildroot}%{_datadir}/applications/mandriva-tkiaxphone.desktop << EOF
[Desktop Entry]
Name=TkIaxPhone
Comment=Simple IAX phone client
Exec=%{_bindir}/tkiaxphone
Icon=iaxcomm
Terminal=false
Type=Application
Categories=Network;Telephony;
EOF

%files -n %{libname}
%doc README
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_includedir}/iaxclient.h
%{_libdir}/pkgconfig/iaxclient.pc
%{_libdir}/*.so

%files utils
%{_bindir}/stresstest
%{_bindir}/testcall
%{_bindir}/vtestcall

%files -n tkiaxphone
%doc simpleclient/tkphone/License simpleclient/tkphone/README
%{_libdir}/iaxclient
%attr(0755,root,root) %{_bindir}/tkiaxphone
%{_bindir}/iaxcli
%{_iconsdir}/hicolor/*/apps/tkiaxphone.png
%{_datadir}/applications/mandriva-tkiaxphone.desktop

%files -n iaxcomm
%doc simpleclient/iaxcomm/QUICKSTART simpleclient/iaxcomm/README
%{_bindir}/iaxcomm
%{_datadir}/iaxcomm
%{_iconsdir}/hicolor/*/apps/iaxcomm.png
%{_datadir}/applications/mandriva-iaxcomm.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2321 |21cr|iaxmodem-1.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil
%define _disable_ld_no_undefined 1

Summary:	Software modem for interfacing Asterisk and Hylafax via IAX2
Name:		iaxmodem
Version:	1.3.3
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		https://sourceforge.net/projects/iaxmodem
Source0:	http://prdownloads.sourceforge.net/iaxmodem/iaxmodem-%{version}.tar.gz
Source1:	iaxmodem.logrotate
Source2:	ttyIAX0
BuildRequires:	pkgconfig(libtiff-4)

%description
IAXmodem is a software modem written in C that uses an IAX channel
(commonly provided by an Asterisk PBX system) instead of a traditional
phone line and uses a DSP library instead of DSP hardware chipsets.

To accomplish this, then, IAXmodem interfaces an IAX library known as
libiax2 with a DSP library known as spandsp, and then IAXmodem interfaces
the DSP library with a tty device node for interfacing with modem
applications.

%files
%doc CHANGES FAQ README TODO
%attr(750,asterisk,asterisk) %{_sbindir}/*
%attr(0644,root,root) %{_mandir}/man1/*
%config /etc/logrotate.d/*
%config(noreplace) /etc/iaxmodem

%post
echo ""
echo "Recommend add the following line in the /etc/inittab file:"
echo "---------------------------------------------"
echo "iax1:2345:respawn:/usr/sbin/iaxmodem ttyIAX0"
echo "mo1:2345:respawn:/usr/sbin/faxgetty ttyIAX0"
echo "---------------------------------------------"
echo "Then run : '/sbin/init q' to reload the inittab settings"

#----------------------------------------------------------------------------

%prep
%setup -q

%build
pushd lib/libiax2
autoreconf -fi
%configure --disable-shared
%make
popd

pushd lib/spandsp
autoreconf -fi
%configure --disable-shared
%make
popd

# set the variables
MODEMVER=iaxmodem-%{version}
DSPVER="spandsp-0.0.5"
IAXVER="libiax2-0.2.3"

# build a static version of iaxmodem
gcc %{optflags} -Wall -g -DMODEMVER=\"$MODEMVER\" -DDSPVER=\"$DSPVER\" -DIAXVER=\"$IAXVER\" -DSTATICLIBS -D_GNU_SOURCE -std=c99 -Ilib/libiax2/src -Ilib/spandsp/src -c -o iaxmodem.o iaxmodem.c
gcc -lm -lutil -ltiff -o iaxmodem iaxmodem.o lib/spandsp/src/.libs/libspandsp.a lib/libiax2/src/.libs/libiax.a

%install
mkdir -p %{buildroot}/etc/logrotate.d %{buildroot}/etc/iaxmodem %{buildroot}%{_sbindir} %{buildroot}%{_mandir}/man1
install -m 644 %{SOURCE1} %{buildroot}/etc/logrotate.d/iaxmodem
install -m 644 %{SOURCE2} %{buildroot}/etc/iaxmodem/
install -m 755 iaxmodem %{buildroot}%{_sbindir}/iaxmodem
install -m 644 iaxmodem.1 %{buildroot}%{_mandir}/man1/iaxmodem.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2322 |21cr|iaxping-0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IAX ping tool
Name:		iaxping
Version:	0
Release:	9
License:	BSD
Group:		Monitoring
URL:		http://www.loudhush.ro/tools/
Source0:	http://www.loudhush.ro/opencms/opencms/loudhush/tools/iaxping.c.bz2

%description
Tool to ping an IAX target (checks network connectivity). hacked from the perl
ping tool availble on http://www.voip-info.org/wiki-IAX

%prep

%setup -q -c -T

bzcat %{SOURCE0} > %{name}.c

%build

gcc %{optflags} -o %{name} %{name}.c

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}

install -m0755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root,)
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2323 |21cr|ibackup-2.27-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Automated backups (even remote) of machine configurations
Name: 		ibackup
Version: 	2.27
Release: 	11
License: 	GPL
Group:		Archiving/Backup
Source:		%{name}-%{version}.tar.bz2
Patch0:		%{name}-2.27-make-rpm.patch
URL:		http://www.linuks.mine.nu/ibackup/
BuildArch:	noarch

%description
This software simplifies the task of backing up the system
configuration files (those under /etc) for UNIX systems
(Solaris, *BSD, Linux). You can run the program from any directory
and it will by default save the (maybe compressed) tarball to /root.
.
It is possible to encrypt the tarball, to upload the tarball to some
other host and run the backup automated in a cronjob.
       
%prep
%setup -q
%patch0 -p1

%build

%install
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}

make DESTDIR=%{buildroot} MANDIR=%{buildroot}%{_mandir} install
make DESTDIR=%{buildroot} install-config

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && rm -rf  %{buildroot}

%files
%defattr(-, root, root)
%doc COPYING changelog *.html *.png *.jpg
%{_bindir}/ibackup
%{_bindir}/sysconf
%config(noreplace) /etc/ibackup.conf
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2324 |21cr|ibm-acpi-0.11-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	IBM ThinkPad ACPI Extras configuration scripts
Name:		ibm-acpi
Version:	0.11
Release:	9
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
License:	GPL
Group:		System/Kernel and hardware
Url:		http://ibm-acpi.sourceforge.net/
# laptop_mode
Requires: laptop-mode-tools
%ifnarch %{armx}
# idectl
Requires: tpctl
%endif


%description
This package contains configuration scripts to support ACPI Extras for
the IBM ThinkPad laptops.
It aims to support various features of these laptops which are
accessible through the ACPI framework but not otherwise supported by
the generic Linux ACPI drivers.

%files
%defattr(-,root,root)
%doc README CHANGES
%{_sysconfdir}/acpi/actions/*
%{_sysconfdir}/acpi/events/*

#------------------------------------------------------------------------
%prep
%setup -q
find config/etc/acpi/actions/ -type f -exec sed -i -e 's,/usr/local/sbin/idectl,/usr/sbin/idectl,' {} \;
sed -i -e 's,action=.*,action=/usr/sbin/pmsuspend2,' config/etc/acpi/events/hibernate
chmod a+r README CHANGES

%build

%install
install -d %{buildroot}/%{_sysconfdir}
cp -a config/%{_sysconfdir}/acpi %{buildroot}/%{_sysconfdir}

# handled by laptop-mode-tools
rm -f %{buildroot}/%{_sysconfdir}/acpi/events/ac
rm -f %{buildroot}/%{_sysconfdir}/acpi/actions/battery.sh
# handled by suspend-scripts
rm -f %{buildroot}/%{_sysconfdir}/acpi/events/sleep



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2325 |21cr|ibus-chewing-1.4.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ibus - Chinese chewing engine
Name:		ibus-chewing
Version:	1.4.14
Release:	5
License:	GPLv2+
Group:		System/Internationalization
Url:		https://github.com/definite/ibus-chewing
Source0:	https://github.com/definite/ibus-chewing/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	https://fedorahosted.org/releases/c/m/cmake-fedora/cmake-fedora-modules-only-latest.tar.gz
Patch0:		ibus-chewing-1.4.14-format-security.patch
BuildRequires:	cmake
BuildRequires:	GConf2
BuildRequires:	gettext
BuildRequires:	gob2
BuildRequires:	pkgconfig(chewing)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
Requires:	ibus >= 1.3.0
Requires:	libchewing-data
Requires(post,preun):	GConf2

%description
ibus - Chinese chewing engine.

%files -f %{name}.lang
%{_libexecdir}/ibus-*
%{_datadir}/%{name}
%{_datadir}/ibus/component/*.xml
%{_datadir}/applications/ibus-setup-chewing.desktop
%{_datadir}/glib-2.0/schemas/org.freedesktop.IBus.Chewing.gschema.xml

%preun
%preun_uninstall_gconf_schemas %{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version} -a1
%apply_patches

%build
%setup_compile_flags
cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DLIBEXEC_DIR="%{_libexecdir}" -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir}
%make
%make translations

%install
%makeinstall_std

rm -fr %{buildroot}%{_datadir}/doc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2326 |21cr|ibus-handwrite-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hand write recognition/input using ibus IM engine
Name:		ibus-handwrite
Version:	3.0.0
Release:	1
License:	GPLv2+
Group:		System/Internationalization
Url:		https://github.com/microcai/ibus-handwrite
Source0:	https://github.com/microcai/ibus-handwrite/releases/download/3.0/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gdkglext-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(zinnia)
Requires:	ibus

%description
IBus handwrite project.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_libexecdir}/ibus-engine-handwrite
%dir %{_datadir}/ibus-handwrite
%dir %{_datadir}/ibus-handwrite/data
%{_datadir}/ibus-handwrite/icons

#----------------------------------------------------------------------------

%package zh
Summary:	ibus-handwrite Chinese engine
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires(post,preun):	GConf2

%description zh
ibus-handwrite Chinese engine.

%files zh
%{_datadir}/ibus-handwrite/data/table.txt
%{_datadir}/ibus/component/handwrite-zh.xml

#----------------------------------------------------------------------------

%package ja
Summary:	ibus-handwrite Japanese engine
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires(post,preun):	GConf2

%description ja
ibus-handwrite Japanese engine.

%files ja
%{_datadir}/ibus/component/handwrite-jp.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export LDFLAGS="-lm"
%configure \
	--enable-zinnia \
	--with-zinnia-tomoe=%{_datadir}/zinnia/model/tomoe/
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2327 |21cr|ibus-hangul-1.5.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ibus - Korean Hangul engine
Name:		ibus-hangul
Version:	1.5.0
Release:	3
Group:		System/Internationalization
License:	GPLv2+
Url:		http://code.google.com/p/ibus/
Source0:	http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(libhangul) >= 0.1.0
Requires:	ibus

%description
ibus - Korean Hangul engine.

%files -f %{name}.lang
%{_bindir}/*
%{_libexecdir}/ibus-engine-hangul
%{_libexecdir}/ibus-setup-hangul
%{_datadir}/%{name}
%{_iconsdir}/*/*/*
%{_datadir}/ibus/component/*.xml
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2328 |21cr|ibus-m17n-1.4.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ibus - m17n engine
Name:		ibus-m17n
Version:	1.4.6
Release:	2
License:	GPLv2+
Group:		System/Internationalization
Url:		https://github.com/ibus/ibus-m17n
Source0:	https://github.com/ibus/ibus-m17n/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	m17n-db
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(m17n-core)
Requires:	ibus
Requires:	m17n-lib
Requires(post,preun):	GConf2

%description
ibus - M17N engine.

%files -f %{name}.lang
%{_libexecdir}/ibus-*
%{_datadir}/%{name}
%{_datadir}/ibus/component/*.xml
%{_datadir}/applications/ibus-setup-m17n.desktop
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.engine.m17n.gschema.xml
%{_datadir}/metainfo/m17n.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --with-gtk=3.0
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2329 |21cr|ibus-pinyin-1.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ibus - Chinese Pinyin engine
Name:		ibus-pinyin
Version:	1.5.0
Release:	5
License:	GPLv2+
Group:		System/Internationalization
Url:		http://code.google.com/p/ibus/
Source0:	http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		ibus-pinyin-support-set-content-type-method.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(ibus-1.0) >= 1.3.99
BuildRequires:	pkgconfig(pyzy-1.0) >= 0.0.8
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	sqlite3-tools
Requires:	ibus >= 1.3.99
Obsoletes:	ibus-pinyin-open-phrase < 1.5.0

%description
ibus - Chinese Pinyin engine.

%files -f %{name}.lang
%{_libexecdir}/ibus-engine-pinyin
%{_libexecdir}/ibus-setup-pinyin
%{_datadir}/%{name}
%{_datadir}/ibus/component/*.xml
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-lua-extension
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2330 |21cr|ibus-qt4-1.3.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname ibus-qt %{major}
%define devname %mklibname ibus-qt -d

Summary:	ibus qt4 input method plugin
Name:		ibus-qt4
Version:	1.3.3
Release:	6
License:	GPLv2+
Group:		System/Internationalization
Url:		http://code.google.com/p/ibus/
Source0:	http://ibus.googlecode.com/files/ibus-qt-%{version}-Source.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	icu-devel
BuildRequires:	qt4-devel >= 4.4
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(ibus-1.0)
Requires:	ibus >= 1.3.0

%description
IBus is a next generation input framework. This package contains qt4 input
method plugin.

%files
%doc AUTHORS README
%{qt4plugins}/inputmethods/libqtim-ibus.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for ibus-qt
Group:		System/Libraries
Conflicts:	%{name} < 1.3.2

%description -n %{libname}
Shared library for ibus-qt.

%files -n %{libname}
%{_libdir}/libibus-qt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for ibus-qt
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Conflicts:	%{name}-devel < 1.3.2
Obsoletes:	%{name}-devel < 1.3.2
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for ibus-qt.

%files -n %{devname}
%{_includedir}/ibus-qt
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n ibus-qt-%{version}-Source

%build
%cmake_qt4 -DLIBDIR="%{_libdir}"
%make

%install
%makeinstall_std -C build

rm -fr %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2331 |21cr|ibus-sunpinyin-2.0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A statistical language model based Chinese input method
Name:		ibus-sunpinyin
Version:	2.0.3
Release:	7
License:	LGPLv2+
Group:		System/Internationalization
Url:		http://code.google.com/p/sunpinyin
Source0:	http://sunpinyin.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		ibus-sunpinyin-2.0.3-ibus-1.4.patch
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(sunpinyin-2.0) >= %{version}
Requires:	ibus

%description
SunPinyin is a statistical language model based Chinese input method,
which was firstly developed by Sun Beijing Globalization team, and
opensource'd to community with opensolaris project, with LGPLv2 and
CDDL dual-licenses.

SunPinyin had been ported to various input method platforms and
operating systems. The 2.0 release currently supports iBus, XIM, and
Mac OS X.

%files -f %{name}.lang
%{_datadir}/%{name}
%{_datadir}/ibus/component/sunpinyin.xml
%{_libexecdir}/ibus-engine-sunpinyin
%{_libexecdir}/ibus-setup-sunpinyin

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%cmake -DLIBEXEC_DIR=%{_libexecdir}
%make

%install
%makeinstall_std -C build

%find_lang %name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2332 |21cr|ibus-table-1.9.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We cannot make this package noarch but there are no binary files here
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	ibus - table-based engine
Name:		ibus-table
Version:	1.9.16
Release:	1
Group:		System/Internationalization
License:	GPLv2+
Url:		http://code.google.com/p/ibus/
Source0:	http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	gettext-devel
BuildRequires:	docbook-utils
BuildRequires:	docbook2x
BuildRequires:	pkgconfig(gobject-introspection-1.0)
Requires:	ibus
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	ibus-table-compose < 1.5.0
Obsoletes:	ibus-table-latex < 1.5.0

%description
ibus - table-based engine.

%files -f %{name}.lang
%{_bindir}/ibus-table-createdb
%{_libexecdir}/ibus-setup-table
%{_libexecdir}/ibus-engine-table
%{_libdir}/pkgconfig/ibus-table.pc
%{_datadir}/applications/ibus-setup-table.desktop
%{_datadir}/ibus-table
%{_datadir}/ibus/component/*.xml
%{_datadir}/appdata/%{name}.appdata.xml
%{_mandir}/man1/ibus-*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#sh autogen.sh
%configure
%make

%install
%makeinstall_std NO_INDEX=1

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2333 |21cr|ibus-table-chinese-1.4.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ibus-chinese - table-based engine
Name:		ibus-table-chinese
Epoch:		1
Version:	1.4.6
Release:	4
License:	GPLv3+
Group:		System/Internationalization
Url:		http://code.google.com/p/ibus/
Source0:	http://ibus.googlecode.com/files/%{name}-%{version}-Source.tar.gz
Source1:	https://fedorahosted.org/releases/c/m/cmake-fedora/cmake-fedora-modules-only-latest.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(ibus-table)
BuildArch:	noarch

%description
ibus-table-chinese provide the following input method tables for IBus-Table.

#----------------------------------------------------------------------------

%package -n ibus-table-array30
Summary:	ibus-array30 - table-based engine
Group:		System/Internationalization
Requires:	ibus-table

%description -n ibus-table-array30
Array30 input method on IBus Table under IBus framework.

%files -n ibus-table-array30
%{_datadir}/ibus-table/icons/array30-big.png
%{_datadir}/ibus-table/icons/array30.png
%{_datadir}/ibus-table/tables/array30-big.db
%{_datadir}/ibus-table/tables/array30.db

#----------------------------------------------------------------------------

%package -n ibus-table-cangjie
Summary:	ibus-cangjie - table-based engine
Group:		System/Internationalization
Requires:	ibus-table

%description -n ibus-table-cangjie
CangJie input methods on IBus Table under IBus framework.

%files -n ibus-table-cangjie
%{_datadir}/ibus-table/icons/cangjie-big.png
%{_datadir}/ibus-table/icons/cangjie3.svg
%{_datadir}/ibus-table/icons/cangjie5.svg
%{_datadir}/ibus-table/icons/easy-big.png
%{_datadir}/ibus-table/icons/quick-classic.png
%{_datadir}/ibus-table/icons/quick3.png
%{_datadir}/ibus-table/icons/quick5.png
%{_datadir}/ibus-table/icons/scj6.svg
%{_datadir}/ibus-table/tables/cangjie-big.db
%{_datadir}/ibus-table/tables/cangjie3.db
%{_datadir}/ibus-table/tables/cangjie5.db
%{_datadir}/ibus-table/tables/easy-big.db
%{_datadir}/ibus-table/tables/quick-classic.db
%{_datadir}/ibus-table/tables/quick3.db
%{_datadir}/ibus-table/tables/quick5.db
%{_datadir}/ibus-table/tables/scj6.db

#----------------------------------------------------------------------------

%package -n ibus-table-cantonese
Summary:	ibus-cantonese - table-based engine
Group:		System/Internationalization
Requires:	ibus-table

%description -n ibus-table-cantonese
Cantonese input method on IBus Table under IBus framework.

%files -n ibus-table-cantonese
%{_datadir}/ibus-table/icons/cantonese.png
%{_datadir}/ibus-table/icons/cantonhk.png
%{_datadir}/ibus-table/icons/jyutping.png
%{_datadir}/ibus-table/tables/cantonese.db
%{_datadir}/ibus-table/tables/cantonhk.db
%{_datadir}/ibus-table/tables/jyutping.db

#----------------------------------------------------------------------------

%package -n ibus-table-erbi
Summary:	ibus-erbi - table-based engine
Group:		System/Internationalization
Requires:	ibus-table

%description -n ibus-table-erbi
ErBi input method on IBus Table under IBus framework.

%files -n ibus-table-erbi
%{_datadir}/ibus-table/icons/erbi*
%{_datadir}/ibus-table/tables/erbi*.db

#----------------------------------------------------------------------------

%package -n ibus-table-stroke5
Summary:	ibus-stroke5 - table-based engine
Group:		System/Internationalization
Requires:	ibus-table

%description -n ibus-table-stroke5
Stroke5 input method on IBus Table under IBus framework.

%files -n ibus-table-stroke5
%{_datadir}/ibus-table/icons/stroke5*
%{_datadir}/ibus-table/tables/stroke5*.db

#----------------------------------------------------------------------------

%package -n ibus-table-wu
Summary:	ibus-wu - table-based engine
Group:		System/Internationalization
Requires:	ibus-table

%description -n ibus-table-wu
Wu input method on IBus Table under IBus framework.

%files -n ibus-table-wu
%{_datadir}/ibus-table/icons/wu.png
%{_datadir}/ibus-table/tables/wu.db

#----------------------------------------------------------------------------

%package -n ibus-table-wubi
Summary:	ibus-wubi - table-based engine
Group:		System/Internationalization
Requires:	ibus-table

%description -n ibus-table-wubi
Wubi86 input method on IBus Table under IBus framework.

%files -n ibus-table-wubi
%{_datadir}/ibus-table/icons/wubi*86.svg
%{_datadir}/ibus-table/tables/wubi*86.db

#----------------------------------------------------------------------------

%package -n ibus-table-yong
Summary:	ibus-yong - table-based engine
Group:		System/Internationalization
Requires:	ibus-table

%description -n ibus-table-yong
Yong input method on IBus Table under IBus framework.

%files -n ibus-table-yong
%{_datadir}/ibus-table/icons/yong*
%{_datadir}/ibus-table/tables/yong*.db

#---------------------------------------------------------------------------0

%prep
%setup -q -n %{name}-%{version}-Source -a1

%build
cmake . -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} -DDATA_DIR:PATH=%{_datadir}
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2334 |21cr|ibus-table-extraphrase-1.3.9.20110826-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Chinese extra phrases for ibus-table based IME
Name:		ibus-table-extraphrase
Version:	1.3.9.20110826
Release:	6
License:	GPLv2+
Group:		System/Internationalization
Url:		http://code.google.com/p/ibus/
Source0:	http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
Patch0:		ibus-table-extraphrase-0.1.2.20090102-noarch.patch
BuildRequires:	pkgconfig(python2)
BuildRequires:	ibus-table-devel
Requires:	ibus-table
BuildArch:	noarch

%description
This package provide Chinese extra phrases for ibus-table based IME,
such as ibus-table-zhengma, ibus-table-wubi, ibus-table-cangjie5,
ibus-table-erbi and etc.

This package will also provide a script, called ibus-table-extraphrase,
to print the path of extra_phrase.txt.bz2, which can be used when using
ibus-table-createdb to generate IME database.

%files
%{_datadir}/ibus-table/data/extra_phrase.txt
%{_datadir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2335 |21cr|ibus-table-others-1.3.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ibus-table-others - table-based engine
Name:		ibus-table-others
Version:	1.3.9
Release:	1
License:	GPLv2+
Group:		System/Internationalization
Url:		http://code.google.com/p/ibus/
Source0:	http://ibus.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(ibus-table)
BuildRequires:	pkgconfig(python3)
Requires:	ibus-table
BuildArch:	noarch

%description
Provides the following input methods on IBus-Table on IBus framework:

    * CNS11643
    * Emoji
    * IPA-X-SAMPA
    * RussianTraditional
    * Yawerty

%files
%{_datadir}/ibus-table/icons/cns11643.png
%{_datadir}/ibus-table/icons/ibus-emoji.svg
%{_datadir}/ibus-table/icons/ipa-x-sampa.svg
%{_datadir}/ibus-table/icons/hu-old-hungarian-rovas.svg
%{_datadir}/ibus-table/icons/mathwriter.png
%{_datadir}/ibus-table/icons/rusle.png
%{_datadir}/ibus-table/icons/rustrad.png
%{_datadir}/ibus-table/icons/yawerty.png
%{_datadir}/ibus-table/tables/cns11643.db
%{_datadir}/ibus-table/tables/emoji-table.db
%{_datadir}/ibus-table/tables/ipa-x-sampa.db
%{_datadir}/ibus-table/tables/rusle.db
%{_datadir}/ibus-table/tables/rustrad.db
%{_datadir}/ibus-table/tables/yawerty.db
%{_datadir}/ibus-table/tables/hu-old-hungarian-rovas.db
%{_datadir}/ibus-table/tables/mathwriter-ibus.db

#----------------------------------------------------------------------------

%package -n ibus-table-th
Summary:	Thai language support via ibus-table
Group:		System/Internationalization
Requires:	ibus-table
Requires:	locales-th
Requires(post,preun):	GConf2

%description -n ibus-table-th
Thai input method on IBus Table under IBus framework.

%files -n ibus-table-th
%{_datadir}/ibus-table/icons/thai.png
%{_datadir}/ibus-table/tables/thai.db

#----------------------------------------------------------------------------

%package -n ibus-table-vi
Summary:	Vietnamese language support via ibus-table
Group:		System/Internationalization
Requires:	ibus-table
Requires(post,preun):	GConf2
Requires:	locales-vi

%description -n ibus-table-vi
Vietnamese input method on IBus Table under IBus framework.

%files -n ibus-table-vi
%{_datadir}/ibus-table/icons/viqr.png
%{_datadir}/ibus-table/tables/viqr.db

#----------------------------------------------------------------------------

%package -n ibus-table-translit
Summary:	ibus-translit - table-based engine
Group:		System/Internationalization
Requires:	ibus-table
Requires(post,preun):	GConf2

%description -n ibus-table-translit
Translit input method on IBus Table under IBus framework.

%files -n ibus-table-translit
%{_datadir}/ibus-table/icons/translit-ua.svg
%{_datadir}/ibus-table/icons/translit.svg
%{_datadir}/ibus-table/tables/translit-ua.db
%{_datadir}/ibus-table/tables/translit.db

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-compose --disable-latex
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2336 |21cr|icclib-2.14-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major	2
%define libname %mklibname icc %{major}
%define devname %mklibname icc -d

Summary:	ICC profile I/O library
Name:		icclib
Version:	2.14
Release:	4
Group:		Graphics
License:	GPLv3
Url:		http://www.argyllcms.com/
Source0:	http://www.argyllcms.com/icclib_V%{version}.zip
# (fc) 2.1-0.beta.1mdv change build system to use autotools (Debian)
Patch0:		icclib-2.1-autotools.patch

%description
The icclib is a set of routines which implement the reading and
writing of color profile files that conform to the International
Color Consortium (ICC) Profile Format Specification, Version 3.4.

%package -n %{libname}
Summary:        Libraries for icclib
Group:          System/Libraries

%description -n %{libname}
The icclib is a set of routines which implement the reading and
writing of color profile files that conform to the International
Color Consortium (ICC) Profile Format Specification, Version 3.4.

%package -n %{devname}
Summary:        Development libraries, header files for icclib
Group:          Development/GNOME and GTK+
Requires:       %{libname} = %{version}
Provides:	icclib-devel = %{version}-%{release}

%description -n %{devname}
The icclib is a set of routines which implement the reading and
writing of color profile files that conform to the International
Color Consortium (ICC) Profile Format Specification, Version 3.4.

%prep
%setup -qc
%apply_patches

#needed by patch0
autoreconf -i

%build
%configure \
	--disable-static

%make

%check
make check

%install
%makeinstall_std

%files 
%{_bindir}/*

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%doc log.txt Readme.txt todo.txt
%{_libdir}/*.so
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2337 |21cr|icebreaker-1.9.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An addictive action-puzzle game involving bouncing penguins
Name:		icebreaker
Version:	1.9.8
Release:	1
Epoch:		1
License:	GPL
Group:		Games/Arcade

Source: 	http://www.mattdm.org/icebreaker/1.9.x/%{name}-%{version}.tgz
Source2: 	%{name}-png.tar.bz2
Patch0:		icebreaker-1.9.7-fix-str-fmt.patch

URL:		http://www.mattdm.org/icebreaker/
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel

%description
IceBreaker is an action-puzzle game in which you must capture penguins
from an Antarctic iceberg so they can be shipped to Finland, where
they are essential to a secret plot for world domination. To earn the
highest Geek Cred, trap them in the smallest space in the shortest
time while losing the fewest lives. IceBreaker was inspired by (but
isn't an exact clone of) Jezzball by Dima Pavlovsky.

%prep
%setup -q -a2
%patch0 -p0

%build
%make OPTIMIZE="%{optflags} %{ldflags}" prefix=%{_prefix} highscoredir=%{_localstatedir}/lib/games datadir=%{_gamesdatadir}

%install
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
mkdir -p %{buildroot}%{_localstatedir}/lib/games
install -m 644 *.wav *.bmp %{buildroot}%{_gamesdatadir}/%{name}
install -m 755 icebreaker -D %{buildroot}%{_gamesbindir}/%{name}
touch %{buildroot}%{_localstatedir}/lib/games/%{name}.scores

install -m 0644 %{name}-16.png -D %{buildroot}%{_miconsdir}/%{name}.png
install -m 0644 %{name}-16.png -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m 0644 %{name}-32.png -D %{buildroot}%{_iconsdir}/%{name}.png
install -m 0644 %{name}-32.png -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 0644 %{name}-48.png -D %{buildroot}%{_liconsdir}/%{name}.png
install -m 0644 %{name}-48.png -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=IceBreaker
Comment=Action-puzzle game involving bouncing penguins
Comment[ru]=Игра-головоломка с пингвинами
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%post
%create_ghostfile %{_localstatedir}/lib/games/%{name}.scores games games 644

%files
%doc README TODO LICENSE ChangeLog
%attr(2755,root,games) %{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%attr(664,games,games) %ghost %{_localstatedir}/lib/games/%{name}.scores
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2338 |21cr|icecast-2.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Streaming Media Server
Name:		icecast
Version:	2.4.4
Release:	1
Epoch:		2
Group:		System/Servers
License:	GPLv2+
Url:		http://www.icecast.org
Source0:	http://downloads.us.xiph.org/releases/icecast/%{name}-%{version}.tar.gz
Source1:	status3.xsl
Source2:	icecast.service
Source3:	icecast.logrotate
Source4:	icecast.xml
Source5:	%{name}-tmpfiles.conf
Patch0:		%{name}.conf.patch
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
Requires(pre,postun):	rpm-helper
Requires(post,preun,postun):	systemd
Provides:	streaming-server

%description
Icecast is an Internet based broadcasting system based on the Mpeg Layer III
streaming technology.  It was originally inspired by Nullsoft's Shoutcast
and also mp3serv by Scott Manley.  The icecast project was started for several
reasons: a) all broadcasting systems were pretty much closed source,
non-free software implementations, b) Shoutcast doesn't allow you to run your
own directory servers, or support them, and c) we thought it would be a
lot of fun.

%files
%doc AUTHORS COPYING HACKING README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%attr(-,icecast,icecast) %{_var}/log/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.xml
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/icecast.service

%pre
%_pre_useradd %{name} %{_datadir}/%{name} /bin/false

%post
%tmpfile_screate %{name}
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}
%systemd_postun %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .orig
find -name "*.html" -or -name "*.jpg" -or -name "*.css" | xargs chmod 644


%build
%configure \
	--with-curl \
	--with-openssl \
	--with-ogg \
	--with-theora \
	--with-speex
%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/icecast/doc
rm -rf %{buildroot}%{_docdir}/icecast
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/icecast/web/status3.xsl
install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/icecast
install -D -m 640 %{SOURCE4} %{buildroot}%{_sysconfdir}/icecast.xml
mkdir -p %{buildroot}%{_localstatedir}/log/icecast

# to hold pid file ( need to be writable by icecast )
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2339 |21cr|icecream-1.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define icecreamdir %{_libexecdir}/icecc

%define major 0
%define libname %mklibname icecc %{major}
%define devname %mklibname icecc -d

Summary:	Distributed p2p based compile system
Name:		icecream
Version:	1.0.1
Release:	5
Epoch:		3
License:	GPLv2+
Group:		Development/C
Url:		http://en.opensuse.org/Icecream
Source0:	ftp://ftp.suse.com/pub/projects/icecream/icecc-%{version}.tar.bz2
Source1:	icecream.service
Source2:	icecream-scheduler.service
Source3:	sysconfig.icecream
Source4:	icecream.sh
Source5:	icecream.csh
Source7:	logrotate.icecream
Source8:	logrotate.icecream-scheduler
Source9:	iceccd-wrapper
Source10:	icecc-scheduler-wrapper
Patch0:		icecream-0.9.7-fix-build.patch
Patch1:		harbour-3.2.0-mga-minilzo-2.8.patch
Requires(post,preun):	rpm-helper

BuildRequires:	systemd
Requires(pre):	shadow-utils
Requires(post,preun,postun):	systemd

%description
Icecream is a distributed compile system. It allows parallel compiling by
distributing the compile jobs to several nodes of a compile network running the
icecc daemon. The icecc scheduler routes the jobs and provides status and
statistics information to the icecc monitor. Each compile node can accept one
or more compile jobs depending on the number of processors and the settings of
the daemon. Link jobs and other jobs which cannot be distributed are executed
locally on the node where the compilation is started.

%files
%{_libexecdir}/icecc/icecc-create-env
%{_libexecdir}/icecc/compilerwrapper
%{_bindir}/create-env
%{_sbindir}/iceccd
%{_bindir}/icecc
%{_bindir}/icerun
%{icecreamdir}/bin/*cc
%{icecreamdir}/bin/*g++
%{icecreamdir}/bin/*c++
%{_unitdir}/icecream.service
%{_mandir}/man1/icecc.1*
%{_mandir}/man1/iceccd.1*
%{_mandir}/man7/icecream.7*
%{_prefix}/libexec/icecc/iceccd-wrapper
%config(noreplace) %{_sysconfdir}/sysconfig/icecream
%{_sysconfdir}/profile.d/*
%config(noreplace) %{_sysconfdir}/logrotate.d/icecream
%defattr(0644,root,root,1777)
%dir /var/cache/icecream

%post
%systemd_post icecream.service

%preun
%systemd_preun icecream.service

%postun
%systemd_postun_with_restart icecream.service

#-------------------------------------------------------------------------------

%package scheduler
Summary:	Icecream scheduler
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires(post,preun):	rpm-helper

%description scheduler
%{name} scheduler.

%files scheduler
%{_sbindir}/icecc-scheduler
%{_unitdir}/icecream-scheduler.service
%{_prefix}/libexec/icecc/icecc-scheduler-wrapper
%config(noreplace) %{_sysconfdir}/logrotate.d/icecream-scheduler
%{_mandir}/man1/icecc-scheduler.1*

%post scheduler
%systemd_post icecream-scheduler.service

%preun scheduler
%systemd_preun icecream-scheduler.service

%postun scheduler
%systemd_postun_with_restart icecream-scheduler.service

#-------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Icecream shared library
Group:		System/Libraries

%description -n %{libname}
Icecream shared library.

%files -n %{libname}
%{_libdir}/libicecc.so.%{major}*

#-------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Icecream development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 3:1.0.0
Obsoletes:	%{name}-devel < 3:1.0.0

%description -n %{devname}
Icecream development files.

%files -n %{devname}
%{_libdir}/libicecc.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#---------------------------------------------------------------------------------

%prep
%setup -q -n icecc-%{version}
%patch0 -p1 -b .fix-build
pushd minilzo
%patch1 -p5 -b .lzo
popd

%build
%configure \
	--disable-static \
	--enable-shared
%make

%install
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/profile.d
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_prefix}/libexec/icecc
install -d %{buildroot}/var/cache/icecream
install -d %{buildroot}%{_unitdir}

%makeinstall_std

install -m 755 %{SOURCE1}  %{buildroot}%{_unitdir}/icecream.service
install -m 755 %{SOURCE2}  %{buildroot}%{_unitdir}/icecream-scheduler.service
install -m 644 %{SOURCE3}  %{buildroot}%{_sysconfdir}/sysconfig/icecream
# nb: prefixing icecream.sh by "80" so that it is sourced after 20colorgcc.sh
install -m 644 %{SOURCE4}  %{buildroot}%{_sysconfdir}/profile.d/80icecream.sh
install -m 644 %{SOURCE5}  %{buildroot}%{_sysconfdir}/profile.d/80icecream.csh
install -m 644 %{SOURCE7}  %{buildroot}%{_sysconfdir}/logrotate.d/icecream
install -m 644 %{SOURCE8}  %{buildroot}%{_sysconfdir}/logrotate.d/icecream-scheduler
install -m 755 %{SOURCE9}  %{buildroot}/usr/libexec/icecc/iceccd-wrapper
install -m 755 %{SOURCE10} %{buildroot}/usr/libexec/icecc/icecc-scheduler-wrapper

# Fix profile locations
sed -i "s,@DEFINEDBYRPMSPEC@,%{icecreamdir},g" %{buildroot}%{_sysconfdir}/profile.d/*

cat << EOF > %{buildroot}%{_bindir}/create-env
#!/bin/bash
GCC="%{_bindir}/gcc"
GCPP="%{_bindir}/g++"

if [ ! -z $1 ]; then
   GCC=\$1
fi

if [ ! -z \$2 ]; then
   GCPP=\$2
fi

%{icecreamdir}/icecc-create-env \$GCC \$GCPP
EOF

find %{buildroot} -name *.a -o -name *.la | xargs rm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2340 |21cr|icecream-monitor-3.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI Monitor for icecream distributed compiled system
Name:		icecream-monitor
Version:	3.0.1
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://en.opensuse.org/Icecream
Source0:	https://github.com/icecc/icemon/archive/icemon-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	docbook2x
BuildRequires:	doxygen
BuildRequires:	pkgconfig(icecc)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	icemon = %{EVRD}
Obsoletes:	icemon < 1.0-2

%description
GUI Monitor for icecream distributed compiled system

%files
%doc COPYING README.md
%{_bindir}/icemon
%{_iconsdir}/*/*/*/icemon.*
%{_datadir}/applications/icemon.desktop
%{_mandir}/man1/icemon.*

#-----------------------------------------------------------------

%prep
%setup -qn icemon-%{version}

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2341 |21cr|icedtea-web-1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define _enable_debug_packages %{nil}

%define javaver 1.8.0
%define priority 18000

%ifarch %{ix86}
%define archinstall i386
%endif
%ifarch x86_64
%define archinstall amd64
%endif

%define javadir %{_jvmdir}/java-openjdk
%define jredir %{_jvmdir}/jre-openjdk
%define javaplugin libjavaplugin.so
%ifarch x86_64
%define javaplugin libjavaplugin.so.%{_arch}
%endif

%define binsuffix .itweb

Summary:	Additional Java components for OpenJDK
Name:		icedtea-web
Version:	1.8
Release:	2
Group:		Networking/WWW
License:	LGPLv2+ and GPLv2 with exceptions
Url:		http://icedtea.classpath.org/wiki/IcedTea-Web
Source0:	http://icedtea.classpath.org/download/source/%{name}-%{version}.tar.gz
# make with command: 'cargo vendor' in unpacked crate dir and tar.gz vendor directory
Source1:	vendor.tar.gz
Source2:	config.toml
BuildRequires:	desktop-file-utils
BuildRequires:	cargo
BuildRequires:	rustc
BuildRequires:	zip
BuildRequires:	java-%{javaver}-openjdk-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
#BuildRequires:	pkgconfig(mozilla-plugin)
BuildRequires:	pkgconfig(zlib)
Requires:	java-%{javaver}-openjdk
Requires(post,postun):	update-alternatives
# Standard JPackage plugin provides
Provides:	java-plugin = %{javaver}

%description
The IcedTea-Web project provides a Java web browser plugin, an implementation
of Java Web Start (originally based on the Netx project) and a settings tool to
manage deployment settings for the aforementioned plugin and Web Start
implementations.

%files
%doc NEWS README COPYING
%{_sysconfdir}/bash_completion.d/*
%{_bindir}/*
#%%{_libdir}/IcedTeaPlugin.so
%{_datadir}/applications/*
%{_datadir}/icedtea-web
%{_datadir}/pixmaps/*
%{_mandir}/man1/*
%{_mandir}/??/*
# Post-script fails if this directory doesn't exist, so package it
%dir %{_libdir}/mozilla/plugins/

%post
if [ $1 -gt 1 ]; then
update-alternatives --remove %{javaplugin} \
	%{jre6dir}/lib/%{archinstall}/IcedTeaPlugin.so 2>/dev/null || :
fi

%posttrans
update-alternatives \
	--install %{_libdir}/mozilla/plugins/libjavaplugin.so %{javaplugin} \
	%{_libdir}/IcedTeaPlugin.so %{priority} \
	--slave %{_bindir}/javaws javaws %{_prefix}/bin/javaws%{binsuffix} \
	--slave %{_mandir}/man1/javaws.1.xz javaws.1.xz \
	%{_mandir}/man1/javaws-itweb.1.xz
exit 0

%postun
if [ $1 -eq 0 ]; then
	update-alternatives --remove %{javaplugin} %{_libdir}/IcedTeaPlugin.so
fi
exit 0

#----------------------------------------------------------------------------

%package javadoc
Summary:	API documentation for IcedTea-Web
Requires:	jpackage-utils
BuildArch:	noarch

%description javadoc
This package contains Javadocs for the IcedTea-Web project.

%files javadoc
%{_javadocdir}/%{name}
%doc COPYING

#----------------------------------------------------------------------------

%prep
%setup -q

pushd rust-launcher
tar -xf %{SOURCE1}
mkdir .cargo
cp %{SOURCE2} .cargo
popd

# ugly hack to make it work on 2009.0/mes5 (pcpa)
#sed -e 's|AC_CANONICAL_HOST||;' -i configure.*
autoreconf -fi

%build
%configure \
	--with-pkgversion=%{vendor}-%{release}-%{_arch} \
	--docdir=%{_javadocdir}/%{name} \
	--with-jdk-home=%{javadir} \
	--with-jre-home=%{jredir} \
	--program-suffix=%{binsuffix} \
	--with-itw-libs=BOTH \
	--disable-native-plugin

%make CXXFLAGS="%{optflags}"

%install
%makeinstall_std
# Move javaws man page to a more specific name
mv %{buildroot}%{_mandir}/man1/javaws.1 %{buildroot}%{_mandir}/man1/javaws-itweb.1

# Install desktop files.
install -d -m755 %{buildroot}%{_datadir}/{applications,pixmaps}
cp javaws.png %{buildroot}%{_datadir}/pixmaps
desktop-file-install --vendor ''\
	--dir %{buildroot}%{_datadir}/applications javaws.desktop
desktop-file-install --vendor ''\
	--dir %{buildroot}%{_datadir}/applications itweb-settings.desktop

mkdir -p %{buildroot}%{_libdir}/mozilla/plugins/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2342 |21cr|ices-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ices
Version:	2.0.3
Release:	1
Summary:	Source streaming for Icecast
Group:		System/Servers
License:	GPL
URL:		http://www.icecast.org/
Source0:	http://downloads.us.xiph.org/releases/ices/%{name}-%{version}.tar.bz2
Source1:	%{name}.service
Source2:	%{name}.logrotate
Source10:	ices.sysusers.conf
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(shout)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig
Requires(pre):	/bin/systemd-sysusers
Requires(preun): rpm-helper
Requires(post):	rpm-helper
Requires(postun): rpm-helper

%description
IceS is a source client for a streaming server. The purpose of this client is
to provide an audio stream to a streaming server such that one or more
listeners can access the stream. With this layout, this source client can be
situated remotely from the icecast server.

The primary example of a streaming server used is Icecast 2, although others
could be used if certain conditions are met.

#------------------------------------------------------------------------------
%prep
%setup -q
perl -pi -e 's|<background>0</background>|<background>1</background>|' conf/*.xml

%build
%configure
%make

%install
mkdir -p %{buildroot}%{_bindir}
cp -a src/%{name} %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_sysconfdir}
cp -a conf/ices-playlist.xml %{buildroot}%{_sysconfdir}/%{name}.conf

mkdir -p %{buildroot}%{_unitdir}
cp -a %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cp -a %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

mkdir -p %{buildroot}%{_var}/log/%{name}
/bin/touch %{buildroot}%{_var}/log/%{name}/ices.log

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/ices.conf

%pre
%sysusers_create_package ices %{SOURCE10}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}
%systemd_postun_with_restart %{name}.service

%files
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING README* doc/*.html doc/*.css conf/*.xml
%attr(0755,root,root) %{_bindir}/%{name}
%config(noreplace) %attr(0640,root,ices) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0755,root,root) %config(noreplace) %{_unitdir}/%{name}.service
%dir %{_logdir}/%{name}
%attr(0644,ices,ices) %{_logdir}/%{name}/ices.log
%{_sysusersdir}/ices.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2343 |21cr|icmpdn-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ICMP host name utilities
Name:		icmpdn
Version:	0.4
Release:	8
License:	GPLv2+
Group:		System/Servers
Url:		http://www.dolda2000.com/~fredrik/icmp-dn/
Source0:	http://www.dolda2000.com/~fredrik/icmp-dn/%{name}-%{version}.tar.gz
Source1:	icmpdnd.service
Source2:	icmpdnd.sysconfig
Source100:	%{name}.rpmlintrc
Requires(post,preun): rpm-helper
Requires(post,preun,postun): systemd-units

%description
Since the Linux kernel does not support the ICMP host name facilities as
described in RFC 1788, I wrote a simple implementation in user-space. It
comprises three parts: 
 o icmpdnd - The ICMP Domain Name daemon, which listens to ICMP
   domain name requests and replies to them.
 o idnlookup - A user utility to query a host for its host name
   over ICMP. Like ping and all other utilities that use ICMP, it
   needs to be installed SUID root.
 o libnss_icmp.so.2 - A glibc NSS module, which uses idnlookup to
   perform queries for the gethostbyaddr function.
The NSS module caches all requests (including failures) and honors the TTL
value sent by the responding host. It uses a configuration file called
/etc/nss-icmp.conf, which controls different aspects of its operation.

%files
%doc AUTHORS COPYING ChangeLog README
%{_unitdir}/icmpdnd.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/icmpdnd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/nss-icmp.conf
%attr(0755,root,root) /%{_lib}/libnss_icmp.so*
%attr(0755,root,root) /sbin/icmpdnd
%attr(4755,root,root) /bin/idnlookup
%{_mandir}/man*/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
rm -f configure
export CPPFLAGS="-D_GNU_SOURCE"
autoreconf -vfi
%configure \
    --libdir=/%{_lib} \
    --sbindir=/sbin \
    --bindir=/bin

%make


%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}/sysconfig

install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/icmpdnd.service
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/icmpdnd

# cleanup
rm -rf %{buildroot}%{_sysconfdir}/init.d
rm -f %{buildroot}/%{_lib}/libnss_icmp.la


%post
%systemd_post %{name}d.service

%preun
%systemd_preun %{name}d.service

%postun
%systemd_postun_with_restart %{name}d.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2344 |21cr|icon-slicer-0.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NOTE: Please do not edit this file, it was auto generated by jhconvert
#       See http://wiki.sugarlabs.org/go/Deployment_Team/jhconvert for details

Name:		icon-slicer
Version:	0.3
Release:	8
Summary:	Utility for icon theme generation
License:	MIT
Group:		Development/Other
Url:		http://www.freedesktop.org/software/icon-slicer/

Source:		http://www.freedesktop.org/software/icon-slicer/releases/icon-slicer-0.3.tar.gz

Patch:		icon-slicer-0.3-sugar-297.patch

BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(popt)

%description
Utility for generating icon themes and libXcursor cursor themes.

%prep
%setup -q -n icon-slicer-0.3
%patch -p1

%build
%define __libtoolize true
%configure
make

%install
%makeinstall_std

%files 
%{_bindir}/%{name}
%doc AUTHORS ChangeLog README TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2345 |21cr|id3-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Last release was in Dec 2015, but in the devel tree
# there are commits as recent as Oct 2021.
# Let's pick up a devel snapshot...
%define	git		1
%define	gitdate	20211019

Summary:	Command line ID3 tagger
# WARNING: this package *is not* the one provided by Ubuntu/Debian
# with 1.1.2 version number; this can be found in https://devel.ringlet.net/audio/id3/,
# while the present one is in https://github.com/squell/id3.
# *** Please don't use automated script for package updates *** because they confuses
# the two sources!
Name:		id3
%if %{git}
Epoch:	1
Version:	1.1.2
Release:	1
%else
Epoch:	1
Version:	1.1.2
Release:	1
%endif
License:	BSD
Group:		Sound
Url:			https://squell.github.io/id3/
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
# WARNING: The program version is hardcoded in main.cpp
# and this one changes only at official release time.
# Remake the patch below when needed to bump %%{version} for newer git snapshot
Patch0:		id3-master-bump-version.patch
%else
Source0:	https://github.com/squell/id3/releases/download/%{version}/%{name}-%{version}.tar.gz
%endif

%description
This mass tagger is a tool for manipulating id3 and id3v2 tags in multiple
files. It can generate tag fields from the filename and other variables,
and/or rename files, using an intuitive syntax. It currently supports the
old-style tags (ID3 v1.1), Lyrics3 tags (Lyrics3 v2.0), and the more
complicated ID3v2 (ID3 v2.2.0, v2.3.0, v2.4.0) format. This also means use is
pretty much limited to audio files which use these formats, e.g, MPEG-1 Layer
III.

%files
%doc README CHANGES COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/bash-completion/completions/%{name}

#-----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{name}-%{gitdate}
%apply_patches
%else
%setup -q
%endif

# Fix perms
chmod 0644 CHANGES COPYING README 
chmod 0644 *.h *.cpp *.c


%build
export CXXFLAGS="%{optflags}"
%make


%install
%makeinstall bash_completion

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2346 |21cr|id3ed-1.10.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Edit id3v1 description tags in mpeg3 files
Name:		id3ed
Version:	1.10.4
Release:	12
License:	GPLv2+
Group:		Sound
Url:		http://code.fluffytapeworm.com/projects/%{name}
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	readline-devel

%description
id3ed edits the "id3" tag for mpeg layer3 files. The mpeg3 specification does
not provide any method for storing song information, however the id3 tag has
become a standard method for doing this, and most mp3 players can read the
tag. It will not cause any errors in players that do not support it.
The tag is 128 bytes long and is located at the end of the file.

%files
%doc COPYING Changelog README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
install -m755 id3ed -D %{buildroot}%{_bindir}/%{name}
install -m755 id3ed.1 -D %{buildroot}%{_mandir}/man1/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2347 |21cr|id3tool-1.2a-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Id3tool: program for manipulating mp3 ID3 Tags
Name:		id3tool
Version:	1.2a
Release:	8
License:	BSD
Group:		Sound
Url:		http://nekohako.xware.cx/id3tool/
Source0:	http://nekohako.xware.cx/id3tool/%{name}-%{version}.tar.bz2

%description
A program for manipulating mp3 ID3 Tags.

%files
%doc CHANGELOG COPYING README* 
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
autoreconf -vfi
%configure
%make 


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2348 |21cr|id3v2-0.1.12-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A command line id3v2 tag editor
Name:		id3v2
Version:	0.1.12
Release:	8
License:	GPLv2+
Group:		Sound
Url:		http://id3v2.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/id3v2/%{name}-%{version}.tar.bz2
BuildRequires:	libid3-devel

%description
id3v2 is a command line id3v2 tag editor. You can add/modifiy/delete
id3v2 tags and convert id3v1 tags to id3v2 tags.

%files
%doc README
%{_bindir}/id3v2
%{_mandir}/man1/id3v2.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make clean
%make

%install
install -m755 id3v2 -D %{buildroot}%{_bindir}/id3v2
install -m644 id3v2.1 -D %{buildroot}%{_mandir}/man1/id3v2.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2349 |21cr|idesk-0.7.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Version: 	0.7.5
Summary: 	Plops icons on your root window
Name: 		idesk
Release: 	9
License: 	BSD
Group: 		Graphical desktop/Other
Source0: 	%{name}-%{version}.tar.bz2
Patch0:		idesk-0.7.5-fix-fork.patch
Patch1:		idesk-0.7.5-invert-glowing.patch
Patch2:		idesk-0.7.5-restart-on-SIGHUP.patch
patch3:		idesk-0.7.5.cstdlib.patch
URL: 		http://idesk.sourceforge.net/
Buildrequires:	imlib2-devel pkgconfig(gtk+-2.0)
Buildrequires:  libart_lgpl-devel startup-notification-devel
Buildrequires:	pkgconfig(xft)

%description
iDesk gives users of minimal wm's (fluxbox, pekwm, windowmaker...) icons on
their desktop. The icon graphics are either from a png or svg (vector) file
and support some eyecandy effects like transparency. Each icon can be
configured to run one or more shell commands and the actions which run
those commands are completely configurable.
In a nutshell if you want icons on your desktop and you don't have or don't
want KDE or gnome doing it, you can use idesk.

%prep

%setup -q
%{__perl} -pi.orig -e 's|/usr/local/share|%_datadir|g;' examples/default.lnk
%patch0 -p1 -b .fork
%patch1 -p1 -b .glow
%patch2 -p1 -b .HUP
%patch3 -p1 -b .cstdlib

%build
%configure --enable-libsn
%make

%install
%makeinstall

%files
%doc README AUTHORS ChangeLog COPYING NEWS TODO
%{_bindir}/*
%{_datadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2350 |21cr|ide-smart-1.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A system utility for monitoring a SMART capable hard-disk
Name:		ide-smart
Version:	1.4
Release:	13
License:	GPLv2+
Group:		Monitoring
Url:		http://lightside.eresmas.com/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ide-smart-1.4-typofix.patch.bz2
Patch1:		ide-smart-1.4-no-strip.patch

%description
The ide-smart program enable to monitor a SMART capable hard-disk.
The SMART protocol define several items. When one of these items is under
a certain level, this means that the disk is about to break.

%files
%{_sbindir}/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
make clean
make CFLAGS="%{optflags}"

%install
perl -pi -e "s!/man/!/share/man/!g" Makefile
%makeinstall INSTALL_PREFIX=%{buildroot}%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2351 |21cr|idle3-tools-0.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:           idle3-tools
Version:        0.9.1
Release:        4
Summary:        Utility for WD Hard Drives

Group:          System/Kernel and hardware
License:        GPLv3
URL:            http://sourceforge.net/projects/idle3-tools/
Source0:        http://download.sourceforge.net/idle3-tools/%{name}-%{version}.tgz
Patch0:         idle3-tools-0.9.1-Makefile.patch

%description
This linux/unix utility can be used to remove or set the infamous idle3 
timer found on recent Western Digital Hard Disk Drives.

%prep
%setup -q
%patch0 -p0 -b .Makefile

%build
%make

%install
%makeinstall_std

%files
%defattr(-,root,root,-)
%doc COPYING
%{_sbindir}/idle3ctl
%{_mandir}/man8/idle3ctl.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2352 |21cr|ido-12.10.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 3-0.1
%define major 0

%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Provides extra GTK+ menu items
Name:		ido
Version:	12.10.2
Release:	6
License:	LGPLv3+
Group:		System/Libraries
Url:		http://launchpad.net/ido
Source0:	https://launchpad.net/ido/12.10/%{version}/+download/%{name}-%{version}.tar.gz
Patch0:		ido-12.10.2-no-werror.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
This library provdes extra gtk menu items for display in system indicators.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	IDO provides extra GTK+ menu items
Group:		System/Libraries
Obsoletes:	%{_lib}ido0 < 12.10.2

%description -n %{libname}
This library provdes extra gtk menu items for display in system indicators.

This package provides the shared libraries to be used by applications.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	IDO provides extra GTK+ menu items
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package provides the development files to build applications.

%files -n %{devname}
%dir %{_includedir}/libido%{api}
%{_includedir}/libido%{api}/libido/
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi

%configure \
	--disable-static \
	--enable-gtk-doc

%make V=1

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2353 |21cr|idutils-4.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Language-independent identifier database tool
Name:		idutils
Version:	4.6
Release:	7
License:	GPLv2+
Group:		Development/C
Url:		http://www.gnu.org/software/idutils/
Source0:	http://ftpmirror.gnu.org/idutils/%{name}-%{version}.tar.xz
Patch0:		idutils-4.6-glibc-2.16.patch
Patch1:		idutils-4.6-glibc-2.28.patch
BuildRequires:	emacs
BuildRequires:	gettext

%description
This is the GNU idutils package.

It provides simple, fast, high-capacity, language-independent
identifier database tools.  Actually, the term `identifier' is too
limiting--`mkid' stores tokens, be they program identifiers of any
form, literal numbers, or words of human-readable text.  Database
queries can be issued from the command-line, or from within emacs,
serving as an augmented tags facility.

`mkid' was originally written by Greg McGary <gkm@gnu.ai.mit.edu>
and posted to comp.sources.unix in September 1987.  It was then
maintained and enhanced by a loose knit group of programmers on the
Internet led by Tom Horsley <Tom.Horsley@mail.hcsc.com>.  Tom released
`mkid2' on comp.sources.unix in March, 1991.  Greg McGary resumed
maintenance until 2000.

%files -f %{name}.lang
%doc README COPYING AUTHORS ABOUT-NLS NEWS THANKS TODO 
%{_datadir}/%{name}/INSTALL
%{_bindir}/*
%{_infodir}/*
%{_datadir}/emacs/site-lisp/*
%{_datadir}/id-lang.map
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}
install -d %{buildroot}%{_datadir}/%{name}
install -m 644 INSTALL %{buildroot}%{_datadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2354 |21cr|iec16022-0.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO: shared lib calls exit

%define major	0
%define libname	%mklibname %{name}_ %{major}
%define devname	%mklibname %{name} -d

Name:           iec16022
Version:        0.2.4
Release:        2
Summary:        Generate ISO/IEC 16022 2D barcodes
Group:          Graphics
License:        GPLv2+
URL:            http://www.datenfreihafen.org/projects/iec16022.html
Source0:        http://www.datenfreihafen.org/~stefan/iec16022/%{name}-%{version}.tar.gz
Patch0:         %{name}-%{version}-test-suite-fix.patch

BuildRequires:  popt-devel
BuildRequires:	zlib-devel

%description
iec16022 is a program for producing ISO/IEC 16022 2D barcodes, also
known as Data Matrix.  These barcodes are defined in the ISO/IEC 16022
standard.

%package -n %{libname}
Summary:	ISO/IEC 16022 libraries
Group:		System/Libraries

%description -n %{libname}
Shared libraries for %{name}.

%package -n %{devname}
Summary:	ISO/IEC 16022 development files
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description  -n %{devname}
Development files for %{name}.

%prep
%setup -q
%patch0 -p1 -b .orig

%build
%configure --disable-static
%make

%install
rm -rf %{buildroot}
%makeinstall_std

#we don't want these
rm -f %{buildroot}%{_libdir}/libiec16022.la

%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%make -C test check

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/iec16022
%{_mandir}/man1/iec16022.1*

%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS ChangeLog README TODO
%{_libdir}/libiec16022.so.%{major}*

%files -n %{devname}
%defattr(-,root,root)
%{_includedir}/iec16022/
%{_libdir}/libiec16022.so
%{_libdir}/pkgconfig/libiec16022.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2355 |21cr|ifd-egate-0.05-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PC/SC drivers for USB egate smart cart readers
Name:		ifd-egate
Version:	0.05
Release:	7
License:	BSD or LGPLv2+
Group:		System/Libraries
Url:		http://secure.netroedge.com/~phil/egate/
Source0:	http://secure.netroedge.com/~phil/egate/%{name}-%{version}.tar.bz2
Patch0:		%{name}-Makefile.patch
Patch1:		%{name}-egatec.patch
Patch2:		%{name}-responsecode.patch
BuildRequires:	pcsc-lite-devel
BuildRequires:	pkgconfig(libusb)
Requires:	pcsc-lite

%description
This library provides a PC/SC IFD handler implementation for the USB
egate smart card readers.  This package is needed to communicate with
the egate smartcard readers through the PC/SC Lite resource manager
(pcscd).

%files
%doc ChangeLog COPYRIGHT LICENSE PROTOCOL README
%{_libdir}/pcsc/drivers/ifd-egate.bundle/Contents

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p0

%build
%make

%install
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
mkdir -p %{buildroot}%{_libdir}/pcsc/drivers/ifd-egate.bundle/Contents/Linux
install -m 644 Info.plist %{buildroot}%{_libdir}/pcsc/drivers/ifd-egate.bundle/Contents
install -m 755 libifd_egate.so  %{buildroot}%{_libdir}/pcsc/drivers/ifd-egate.bundle/Contents/Linux


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2356 |21cr|ifd-gempc-1.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Gemplus 410 and 430 Smartcard reader driver
Name:		ifd-gempc
Version:	1.0.8
Release:	1
License:	GPL/BSD
Group:		System/Libraries
Url:		http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/index.html
Source0:	http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/ifd-gempc-%{version}.tar.gz
Source1:	http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/ifd-gempc-%{version}.tar.gz.asc
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(libusb)

%description
This package provides a PCSC-lite driver for Gemplus 410 and 430
smartcard readers.

#----------------------------------------------------------------------------

%package -n ifd-gempc410
Summary:	Gemplus 410 smartcard reader driver
Group:		System/Libraries
Requires(post,postun):	pcsc-lite
Requires:	pcsc-lite

%description -n ifd-gempc410
This package provides a PCSC-lite driver for the following
serial Gemplus smartcard readers:
 * GemPC410
 * GemPC412
 * GemPC413-SL
 * GemPC415

%files -n ifd-gempc410
%doc README README.410
%config(noreplace) %{_sysconfdir}/reader.conf.d/*.conf
%{_libdir}/pcsc/drivers/serial/*

%post -n ifd-gempc410
%{_sbindir}/update-reader.conf

%postun -n ifd-gempc410
if [ "$1" = "0" ]; then
	%{_sbindir}/update-reader.conf
fi

#----------------------------------------------------------------------------

%package -n ifd-gempc430
Summary:	Gemplus 430 smartcard reader driver
Group:		System/Libraries
Requires:	pcsc-lite

%description -n ifd-gempc430
This package provides a PCSC-lite driver for the following usb
Gemplus smartcard readers:
 * GemPC430
 * GemPC432
 * GemPC435

%files -n ifd-gempc430
%doc README README.430
%{_libdir}/pcsc/drivers/ifd-GemPC430.bundle

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/reader.conf.d
cat > %{buildroot}%{_sysconfdir}/reader.conf.d/gempc410.conf <<_EOF
FRIENDLYNAME      "GemPC410"
DEVICENAME        /dev/ttyS0
LIBPATH           %{_libdir}/pcsc/drivers/serial/libGemPC410.so.%{version}
CHANNELID         1
_EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2357 |21cr|ifled-0.6-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Flash kbd LEDs to indicate network interface traffic
Name:		ifled
Version:	0.6
Release:	17
License:	GPLv2+
Group:		Monitoring
Url:		http://www.sudac.org/~napolium/linux/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-%{version}-extra.tar.bz2
Patch0:		ifled-0.6.printf.patch
Conflicts:	ifled-nl
Requires(post,preun):	rpm-helper

%description
InterfaceLED is a program that uses the keybord LEDs to indicated various
things about a specified interface. For example if a network card is sending
or receiveing data.

%files
%defattr(-,root,root,755)
%doc ChangeLog README %{name}-%{version}-extra/README.init-script
%{_bindir}/ifled
%{_initrddir}/ifled
%config(noreplace) %{_sysconfdir}/sysconfig/ifled

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -T -b 0
%setup -T -D -a 1
%patch0 -p1 -b .printf

%build
make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install ifled %{buildroot}%{_bindir}
cp %{name}-%{version}-extra/ifled_init_script %{buildroot}%{_initrddir}/ifled
cp %{name}-%{version}-extra/ifled_sysconfig %{buildroot}%{_sysconfdir}/sysconfig/ifled


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2358 |21cr|ifstat-1.1-1.2.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# $Id: ifstat.spec 7982 2009-11-03 03:41:01Z dag $
# Authority: dag
# Upstream: Gaël Roualland <gael,roualland$iname,com>

%define _enable_debug_packages %{nil}
%define __debug_package %{nil}
%define debug_package %{nil}

Summary: Interface statistics
Name: ifstat
Version: 1.1
Release: 1.2.4
License: GPLv2
Group: Monitoring
URL: http://gael.roualland.free.fr/ifstat/
Packager: Sergey A. Sokolov <sokol@mtik.ru>
Vendor: Dag Apt Repository, http://dag.wieers.com/apt/
Source: http://gael.roualland.free.fr/ifstat/ifstat-%{version}.tar.gz

BuildRequires: net-snmp-devel

%description
ifstat(1) is a little tool to report interface activity like vmstat/iostat do.
In addition, ifstat can poll remote hosts through SNMP if you have the ucd-snmp
library. It will also be used for localhost if no other known method works (You
need to have snmpd running for this though).

%prep
%setup -q -n %{name}-%{version}

%build
%configure \
	--enable-optim
make

%install
rm -rf %{buildroot}
%makeinstall

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
%doc COPYING HISTORY README TODO
%doc %{_mandir}/man1/ifstat.1*
%{_bindir}/ifstat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2359 |21cr|iftop-1.0-pre4.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%global LDFLAGS %{ldflags} -ltinfo

%define uprel pre4

Name: iftop 
Summary: Command line tool that displays bandwidth usage on an interface
Version: 1.0
Release: %{uprel}.2
Source0: http://www.ex-parrot.com/~pdw/iftop/download/%{name}-%{version}%{uprel}.tar.gz
URL: http://www.ex-parrot.com/~pdw/iftop/ 
Group: Monitoring 
License: GPLv2+
BuildRequires: pcap-devel 
BuildRequires: pkgconfig(ncurses) 
BuildRequires: texinfo

%description
iftop does for network usage what top(1) does for CPU usage. It listens to
network traffic on a named interface and displays a table of current bandwidth
usage by pairs of hosts. Handy for answering the question "why is our ADSL link
so slow?".

%prep
%setup -qn %{name}-%{version}%{uprel}


%build
%configure
%make

%install
%makeinstall_std


%files
%doc README COPYING TODO INSTALL
%{_sbindir}/iftop
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2360 |21cr|ifuse-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mount Apple iPhone and iPod touch devices
Name:		ifuse
Version:	1.1.4
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.libimobiledevice.org/
Source0:	https://github.com/libimobiledevice/ifuse/releases/download/%{version}/ifuse-%{version}.tar.bz2
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libimobiledevice-1.0)

%files
%doc AUTHORS COPYING README.md
%{_bindir}/%{name}
%{_mandir}/man1/ifuse.1.*

#----------------------------------------------------------------------------

%description
A fuse filesystem for mounting iPhone and iPod touch devices.

%prep
%autosetup -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2361 |21cr|igal2-2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	igal

Name:		igal2
Version:	2.1
Release:	5
License:	GPLv2+
Group:		Text tools
URL:		http://igal.trexler.at/
Source0:	http://igal.trexler.at/%{name}-%{version}.tar.gz
Patch0:		igal2.patch
Patch1:		igal2-2.0-fix-destdir-and-fhs-paths.patch
Summary:	Easy and flexible online Image GALlery generator
BuildArch:	noarch

%rename		%{oname}

Requires:	perl
Requires:	imagemagick

%description
Igal2 is a quick, easy and flexible program meant to help you place your
digital images online. It generates a pretty good-looking set of HTML
slides even with its default settings -- which can otherwise be easily
changed with a good number of command-line options or by altering igal2's
HTML and CSS template files.


%prep
%setup -q
%patch0 -p1
%patch1 -p1 -b .fhs~

%install
%makeinstall_std
rm -f %{buildroot}%{_datadir}/%{name}/{README,ChangeLog,COPYING}
install -m 755 utilities/igal2-recursive.sh %{buildroot}%{_bindir}

%files
%doc ChangeLog
%{_bindir}/%{oname}
%{_bindir}/%{name}
%{_bindir}/%{name}.sh
%{_bindir}/%{name}-recursive.sh
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2362 |21cr|igmpproxy-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: igmpproxy
Version: 0.1
Release: 7
License: GPL
Group: System/Servers
Summary: Simple mulitcast router for Linux that only uses the IGMP protocol

Source0: http://sourceforge.net/projects/igmpproxy/igmpproxy-%{version}.tar.gz
Source1: igmpproxy.service

BuildRequires: gcc

%description
igmpproxy is a simple multicast router for Linux that only uses the IGMP
protocol.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall
rm -rf %{buildroot}%{_libdir}
rm -rf %{buildroot}/usr/src
install -D -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%doc AUTHORS README NEWS
%{_sbindir}/%{name}
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_unitdir}/%{name}*
%config(noreplace) %{_sysconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2363 |21cr|igt-gpu-tools-1.27-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#global gitcommit cffa5fffe9acddf49565b4caeeb5e3355ff2ea44
#global gitdate 20220508
#global gitrev .git%(c=%{gitcommit}; echo ${c:0:7})

%define libmajor 0
%define i915_perf_major 1
%define libname %mklibname igt %{libmajor}
%define libi915_perf %mklibname i915_perf %{i915_perf_major}
%define devname %mklibname %{name} -d

Name:           igt-gpu-tools
Version:        1.27
Release:        2
Summary:        Test suite and tools for DRM drivers
Group:          System/X11
License:        MIT
URL:            https://gitlab.freedesktop.org/drm/igt-gpu-tools

%if 0%{?gitdate}
Source0:        igt-gpu-tools-%{gitdate}.tar.bz2
%else
Source0:        https://www.x.org/releases/individual/app/igt-gpu-tools-%{version}.tar.xz
%endif
Source1:        make-git-snapshot.sh

%global provobs_version 2.99.917-42.20180618
Provides:       xorg-x11-drv-intel-devel = %{provobs_version}
Provides:       intel-gpu-tools = %{provobs_version}
Obsoletes:      xorg-x11-drv-intel-devel < %{provobs_version}
Obsoletes:      intel-gpu-tools < %{provobs_version}

BuildRequires:  meson >= 0.51.0
BuildRequires:  gcc
BuildRequires:  flex bison
BuildRequires:  pkgconfig(libdrm) >= 2.4.82
BuildRequires:  pkgconfig(pciaccess) >= 0.10
BuildRequires:  pkgconfig(libkmod)
BuildRequires:  pkgconfig(libprocps)
BuildRequires:  pkgconfig(libdw)
BuildRequires:  pkgconfig(pixman-1)
BuildRequires:  pkgconfig(valgrind)
BuildRequires:  pkgconfig(cairo) > 1.12.0
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gsl)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(xmlrpc)
BuildRequires:  pkgconfig(xmlrpc_util)
BuildRequires:  pkgconfig(xmlrpc_client)
BuildRequires:  pkgconfig(json-c)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(liboping)
BuildRequires:  kernel-headers
BuildRequires:  pkgconfig(gtk-doc)
BuildRequires:  python3-docutils

# libunwind 1.4.0+ supports s390x
%if 0%{?rhel}
%ifnarch s390x
BuildRequires:  pkgconfig(libunwind)
%endif
%else
BuildRequires:  pkgconfig(libunwind) >= 1.4.0
%endif
Provides:       intel-gpu-tools = %{EVRD}

%description
igt-gpu-tools (formerly known as intel-gpu-tools) is the standard for writing
test cases for DRM drivers. It also includes a handful of useful tools for
various drivers, such as Intel's GPU tools for i915.

%files
%license COPYING
%ifarch %{ix86} x86_64
%{_bindir}/intel-gen4asm
%{_bindir}/intel-gen4disasm
%endif
%{_bindir}/intel_dump_decode
%{_bindir}/intel_error_decode
%{_bindir}/intel_framebuffer_dump
%{_bindir}/intel_perf_counters
%{_libexecdir}/igt-gpu-tools/*
%{_datadir}/igt-gpu-tools/*
%{_bindir}/code_cov_capture
%{_bindir}/code_cov_gather_on_build
%{_bindir}/code_cov_gather_on_test
%{_bindir}/code_cov_gen_report
%{_bindir}/code_cov_parse_info
%{_bindir}/dpcd_reg
%{_bindir}/igt_*
%{_bindir}/i915-perf-*
%{_bindir}/intel_audio_dump
%{_bindir}/intel_backlight
%{_bindir}/intel_bios_dumper
%{_bindir}/intel_display_crc
%{_bindir}/intel_display_poller
%{_bindir}/intel_dp_compliance
%{_bindir}/intel_firmware_decode
%{_bindir}/intel_forcewaked
%{_bindir}/intel_gem_info
%{_bindir}/intel_gpu_abrt
%{_bindir}/intel_gpu_frequency
%{_bindir}/intel_gpu_time
%{_bindir}/intel_gpu_top
%{_bindir}/intel_gtt
%{_bindir}/intel_guc_logger
%{_bindir}/intel_gvtg_test
%{_bindir}/intel_infoframes
%{_bindir}/intel_l3_parity
%{_bindir}/intel_lid
%{_bindir}/intel_opregion_decode
%{_bindir}/intel_panel_fitter
%{_bindir}/intel_pm_rpm
%{_bindir}/intel_reg
%{_bindir}/intel_reg_checker
%{_bindir}/intel_residency
%{_bindir}/intel_stepping
%{_bindir}/intel_vbt_decode
%{_bindir}/intel_watermark
%{_bindir}/amd_hdmi_compliance
%{_bindir}/msm_dp_compliance
%{_bindir}/lsgpu
%{_mandir}/man1/intel_*.1*

#----------------------------------------------------------------
%package docs
Summary:	Documentation for igt-gpu-tools
Group:		Documentation

%description docs
gtk-doc generated documentation package for igt-gpu-tools.

%files docs
%license COPYING
%{_datadir}/gtk-doc/html/igt-gpu-tools/*

#----------------------------------------------------------------
%package -n %{libname}
Summary:	igt shared library
Group:		System/Libraries

%description -n %{libname}
igt shared library.

%files -n %{libname}
%{_libdir}/libigt.so.%{libmajor}*

#------------------------------------------------------------------
%package -n %{libi915_perf}
Summary:	i915_perf shared library
Group:		System/Libraries

%description -n %{libi915_perf}
i915_perf shared library.

%files -n %{libi915_perf}
%{_libdir}/libi915_perf.so.%{i915_perf_major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for igt-gpu-tools
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libi915_perf} = %{EVRD}

%description -n %{devname}
Development files for compiling against certain tools provided by
igt-gpu-tools, such as i915-perf.

%files -n %{devname}
%license COPYING
%{_includedir}/i915-perf/*
%{_libdir}/pkgconfig/i915-perf.pc
%{_libdir}/libi915_perf.so

#----------------------------------------------------------------

%prep
%autosetup -p1

%build
%if 0%{?rhel}

%ifnarch s390x
%global with_libunwind enabled
%else
%global with_libunwind disabled
%endif

%else

%global with_libunwind enabled

%endif

# gcc-11 issues a false positive for accesses to hdmi_vsdb in
# cea_vsdb_get_hdmi_default
CFLAGS="%{build_cflags} -Wno-array-bounds"

# Some explanations here
# - We don't build overlay yet due to Fedora not shipping /usr/bin/leg, but we
#   probably don't care about that anyway
# - We specify -Db_ndebug=false because upstream has explicitly stated that
#   anything else is officially unsupported
# - Attempting to resolve all of the symbols within IGT at executable start
#   causes some of igt's symbols to be resolved in the wrong order, resulting in
#   certain runtime function resolvers (e.g. __attribute__((ifunc))) attempting
#   to call functions which have not been resolved yet - causing everything to
#   segfault. Because of this, we specify "-Dc_link_args=-z lazy" to force lazy
#   symbol resolution.
%meson \
        -Db_ndebug=false \
        -Dc_link_args="-z lazy" \
        -Doverlay=disabled \
        -Dlibunwind=%{with_libunwind}
%meson_build

%install
%meson_install

%ifarch %{ix86} x86_64
rm %{buildroot}/%{_libdir}/pkgconfig/intel-gen4asm.pc
%endif

# Remove the unversioned libigt symlinks
rm %{buildroot}/%{_libdir}/libigt.so

%check
# The timeout multiplier here is required due to certain tests timing out on
# koji builders that are under heavy load.
# Hmmm meson from Rosa not recognized option --timeout-multiplier
#meson_test --timeout-multiplier 16

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2364 |21cr|ii-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Minimalist FIFO and filesystem-based IRC client
Name:		ii
Version:	2.0
Release:	1
Group:		Networking/Other
Url:		http://tools.suckless.org/ii
License:	MIT
Source0:	http://dl.suckless.org/tools/%{name}-%{version}.tar.gz

%description
ii is a minimalist FIFO and filesystem-based IRC client. It creates an
irc directory tree with server, channel and nick name directories. In
every directory a FIFO in file and a normal out file is created.

The in file is used to communicate with the servers and the out files
contain the server messages. For every channel and every nick name there
are related in and out files created. This allows IRC communication from
command line and adheres to the Unix philosophy. example

Join a channel as follows: $ echo "/j #wmii" > in and ii creates a
new #wmii (channel) directory with in and out files.

It consists of <= 500 lines of code and is the big brother of sic (simple
irc client).

%files
%doc README FAQ LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------

%prep
%setup -q

%build
%make

%install
make PREFIX=%{buildroot}%{_prefix} install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2365 |21cr|iksemel-1.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	XML  parser library designed for Jabber applications
Name:		iksemel
Version:	1.4
Release:	8
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://iksemel.googlecode.com/
Source0:	http://iksemel.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		iksemel-1.3-gnutls-2.8.patch
Patch1:		iksemel-1.4-gnutls-3.4.patch
BuildRequires:	libtool
BuildRequires:	pkgconfig(gnutls)

%description
iksemel is an XML (eXtensible Markup Language) parser library designed for
Jabber applications. It is coded in ANSI C for POSIX compatible environments,
thus highly portable.

%files
%doc AUTHORS COPYING ChangeLog HACKING NEWS README TODO
%{_bindir}/*
%{_infodir}/%{name}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
iksemel is an XML (eXtensible Markup Language) parser library designed for
Jabber applications. It is coded in ANSI C for POSIX compatible environments,
thus highly portable.

This package contains the shared %{name} library.

%files -n %{libname}
%{_libdir}/libiksemel.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
iksemel is an XML (eXtensible Markup Language) parser library designed for
Jabber applications. It is coded in ANSI C for POSIX compatible environments,
thus highly portable.

This package contains the development library and its header files
for the %{name} library.

%files -n %{devname}
%{_includedir}/iksemel.h
%{_libdir}/libiksemel.so
%{_libdir}/pkgconfig/iksemel.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static  %{name} development library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
iksemel is an XML (eXtensible Markup Language) parser library designed for
Jabber applications. It is coded in ANSI C for POSIX compatible environments,
thus highly portable.

This package contains the static %{name} library.

%files -n %{sdevname}
%{_libdir}/libiksemel.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure --enable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2366 |21cr|ilbc_freeswitch-0.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname %mklibname ilbc_freeswitch %{major}
%define libnamedev %mklibname ilbc_freeswitch -d
%define debug_package %nil

Summary:	Internet Low Bitrate Codec (iLBC) library, special for Freeswitch
Name:		ilbc_freeswitch
Version:	0.0.4
Release:	1
License:	BSD-style
Group:		System/Libraries
URL:		http://www.soft-switch.org/voipcodecs
Source0:	https://www.soft-switch.org/downloads/voipcodecs/ilbc-%{version}.tar.gz
Source1:	ilbc.pc
BuildRequires:	audiofile-devel
BuildRequires:	doxygen

%description
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust
voice communication over IP. The codec is designed for narrow band speech and
results in a payload bit rate of 13.33 kbit/s with an encoding frame length of
30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables
graceful speech quality degradation in the case of lost frames, which occurs in
connection with lost or delayed IP packets.

#-------------------------------------------------------------------------
%package -n	%{libname}
Summary:	Internet Low Bitrate Codec (iLBC) library
Group:		System/Libraries

%description -n	%{libname}
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust
voice communication over IP. The codec is designed for narrow band speech and
results in a payload bit rate of 13.33 kbit/s with an encoding frame length of
30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables
graceful speech quality degradation in the case of lost frames, which occurs in
connection with lost or delayed IP packets.

%files -n %{libname}
%doc COPYING
%{_libdir}/libilbc.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{libnamedev}
Summary:	Development and header files for the iLBC library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description -n %{libnamedev}
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust
voice communication over IP. The codec is designed for narrow band speech and
results in a payload bit rate of 13.33 kbit/s with an encoding frame length of
30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables
graceful speech quality degradation in the case of lost frames, which occurs in
connection with lost or delayed IP packets.

%files -n %{libnamedev}
%doc doc/api
%{_includedir}/*
%{_libdir}/libilbc.so
%{_libdir}/pkgconfig/ilbc.pc

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n ilbc-%{version}

%build
%configure \
	--enable-doc
%make

%install
%makeinstall_std

rm %{buildroot}%{_libdir}/*.la

#prepare .pc file
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/ilbc.pc
sed -i 's|@version@|%{version}|' %{buildroot}%{_libdir}/pkgconfig/ilbc.pc
sed -i 's|@libdir@|%{_libdir}|' %{buildroot}%{_libdir}/pkgconfig/ilbc.pc
sed -i 's|@includedir@|%{_includedir}|' %{buildroot}%{_libdir}/pkgconfig/ilbc.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2367 |21cr|image-analyzer-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	An application that displays tree structure of disc image
Name:		image-analyzer
Version:	3.2.0
Release:	1
Group:		File tools
License:	GPLv2+
Url:		http://cdemu.sourceforge.net
Source0:	http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libmirage) >= %{version}
Requires:	gnuplot

%description
Image Analyzer is a simple Gtk+ application that displays tree structure
of disc image created by libMirage.

It is mostly intended as a demonstration of libMirage API use, although it
can be also used to verify that an image is correctly handled by libMirage.

%files -f %{name}.lang
%doc README COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/image-analyzer.svg

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake -DPOST_INSTALL_HOOKS:BOOL=OFF
%make -s

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2368 |21cr|imagej-1.48e-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           imagej
Version:        1.48e
Release:        3
Summary:        Image Processing and Analysis in Java

Group:          Sciences/Computer science
License:        Public Domain
URL:            http://rsbweb.nih.gov/ij/index.html
Source0:        http://rsbweb.nih.gov/ij/download/src/ij148e-src.zip
Source1:        %{name}.desktop
Source2:        http://rsbweb.nih.gov/ij/macros/macros.zip
Source3:        http://rsb.info.nih.gov/ij/download/linux/unix-script.txt
Source4:        imagej.png

# don't copy .class files 
Patch0:         %{name}-%{version}-patch0.patch
# modify imagej.sh for fedora compatibility
Patch1:         %{name}-%{version}-patch1.patch
BuildArch:      noarch

BuildRequires:  ant
BuildRequires:  desktop-file-utils
BuildRequires:	java-rpmbuild

# java-devel not java for plugins build
Requires:       java >= 1.6.0

%description
ImageJ is a public domain Java image processing program. It can display,
edit, analyze a wide variety of image data, including image sequences. Imagej
can be used for quantitative analysis of engineering and scientific image data.

%package        javadoc
Summary:        Javadocs for %{name}
Group:          Documentation
BuildArch:      noarch
Requires:       %{name} = %{version}-%{release}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -c -n "%{name}-%{version}" 
# patch build.xml
%patch0 -p0 -b .patch0
# unzip macros.zip
unzip -qq -u %{SOURCE2} 
# erase binary and useless files 
rm -rf macros/.FBC*
rm macros/build.xml
rm -rf __MACOSX
#get and patch unix-script.txt
cp %{SOURCE3} ./imagej.sh
%patch1 -p1 -b .patch1

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

%build
cd source
%ant build javadocs
cd ..

%install
# install jar
mkdir -p %{buildroot}%{_javadir}
cp -p source/ij.jar   \
%{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

# install javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp api  \
%{buildroot}%{_javadocdir}/%{name}

# install icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp -p %{SOURCE4} %{buildroot}%{_datadir}/pixmaps

# install data files
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -p source/build/about.jpg %{buildroot}%{_datadir}/%{name}/about.jpg
cp -p source/build/IJ_Props.txt %{buildroot}%{_datadir}/%{name}/IJ_Props.txt

#install macros
chmod 644 macros/About\ Startup\ Macros 
find ./macros -name \*.txt -type f -exec chmod 644 {} \;
find ./macros -type d -exec chmod 755 {} \;
cp -rp macros %{buildroot}%{_datadir}/%{name}

#install luts
mkdir %{buildroot}%{_datadir}/%{name}/luts 

# install script
mkdir -p %{buildroot}%{_bindir}
chmod +x imagej.sh
cp -p imagej.sh %{buildroot}%{_bindir}/%{name}

# directory for plugins
mkdir -p %{buildroot}%{_datadir}/%{name}/plugins
cp source/plugins/JavaScriptEvaluator.source %{buildroot}%{_datadir}/%{name}/plugins/JavaScriptEvaluator.java

# desktop file
desktop-file-install --vendor=""                     \
       --dir=%{buildroot}%{_datadir}/applications/   \
       %{SOURCE1}

%files
%{_javadir}/*
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_bindir}/%{name}
%doc source/aREADME.txt source/release-notes.html source/applet.html

%files javadoc
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2369 |21cr|image-sieve-0.5.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		crates_ver %{version}

Summary:      GUI for ImageSieve written in rust
Name:         image-sieve
Version:      0.5.8
Release:      1
Group:        Graphics
License:      GPLv3
Url:          https://github.com/Futsch1/image-sieve
Source0:      https://github.com/Futsch1/image-sieve/archive/refs/tags/%{name}-%{version}.tar.gz
# generated with cargo-vendor
Source1:        %{name}-crates-%{crates_ver}.tar.xz


BuildRequires:     pkgconfig(ncurses)
BuildRequires:     pkgconfig(fontconfig)
BuildRequires:     pkgconfig(xcb)
BuildRequires:     pkgconfig(gdk-3.0)
BuildRequires:     pkgconfig(libavcodec)
BuildRequires:     llvm-devel
BuildRequires:     pkgconfig(openssl)
BuildRequires:     imagemagick
BuildRequires:     rust >= 1.63.0
BuildRequires:     cargo-vendor >= 1.63.0

Requires:     cargo-vendor >= 1.63.0
Requires:     rust >= 1.63.0
Requires:     ffmpeg
Requires:     llvm

%description
ImageSieve is a GUI based tool to assist in sorting
images based on taken date and similarity,
categorize them according to their
creation date and archive them in a target folder.

%files
%doc *.md LICENSE
%{_bindir}/image_sieve
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
#-----------------------------------------------------

%prep
%setup -q -a1

%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"

cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF


%build
export CARGO_HOME="$(pwd)/.cargo"
RUSTFLAGS=-g cargo build --all-targets --offline --frozen

%install
cargo install --no-track --debug --root=%{buildroot}%{_prefix} --path .

#icons
for size in 256 48 32 16; do
  install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
  convert snap/gui/ImageSieve.png -resize ${size} %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

#menu entry
# the desktop provided in snap/ it's a mess.
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF

[Desktop Entry]
Type=Application
Name=%{name}
GenericName=%{name}
Comment=Sort out images and archive them in a target folder
Exec=image_sieve %f
Icon=%{name}
Categories=Graphics;Photography;
Keywords=image;sort;sieve;similarity;
StartupNotify=false
Terminal=false

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2370 |21cr|imagination-3.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple DVD slide show maker
Name:		imagination
Version:	3.6
Release:	2
Group:		Video
License:	GPLv2+
Url:		http://imagination.sourceforge.net/
Source0:	https://sourceforge.net/projects/imagination/files/%{name}/%{name}-%{version}.tar.gz
Source1:	imagination-3.6_ru.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-xsl
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(sox)
Requires:	sox
Requires:	ffmpeg

%description
Imagination is a lightweight and simple DVD slide show maker written in C
language and built with the GTK+2 toolkit.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%package doc
Summary:	Development documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains the development documentation for %{name}.

%files doc
%{_defaultdocdir}/%{name}/html

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2371 |21cr|imapfilter-2.6.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mail filtering utility
Name:		imapfilter
Version:	2.6.15
Release:	1
License:	MIT
Group:		Networking/Mail
Url:		https://github.com/lefcha/imapfilter/
Source0:	https://github.com/lefcha/imapfilter/archive/v%{version}.tar.gz
Patch0:		imapfilter-makefile-fix.patch
Patch1:		01_adjust-cafile-path.patch
BuildRequires:	pcre-devel
BuildRequires:	lua-devel
BuildRequires:	pkgconfig(openssl)

%description
IMAPFilter is a mail filtering utility. It connects to remote mail servers
using the Internet Message Access Protocol (IMAP). Based on the user defined
filters it checks messages residing on a remote IMAP mailbox and processes
them in various ways.

One can execute imapfilter before:
  * fetching of mail locally
  * accessing a mailbox using one of the available Mail User Agents (MUA)
  * browsing a mailbox via the Web
...in order to "clear" a mailbox and avoid downloading/seeing some specific
mails, copy and/or move messages between folders, etc.

%files
%defattr(0755,root,root,0755)
%{_bindir}/*
%defattr(0644,root,root,0755)
%doc LICENSE NEWS README
%{_mandir}/*/*
%{_datadir}/imapfilter

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
CFLAGS="%{optflags}" %make

%install
%makeinstall_std \
	BINDIR=%{_bindir}\
	SHAREDIR=%{_datadir}/imapfilter\
	MANDIR=%{_mandir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2372 |21cr|imapsync-2.140-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IMAP synchronisation, sync, copy or migration tool
Name:		imapsync
Version:	2.140
Release:	1
License:	WTFPL
Group:		Networking/Mail
URL:		http://ks.lamiral.info/imapsync/
Source0:	http://www.linux-france.org/prj/imapsync/dist/%{name}-%{version}.tgz
Requires:	perl(Date::Manip)
Requires:	perl(Term::ReadKey)
Recommends:	perl(IO::Socket::SSL)
Recommends:	perl(Digest::HMAC_MD5)
BuildArch:	noarch

%description
imapsync is a tool for facilitating incremental recursive IMAP transfers from
one mailbox to another. It is useful for mailbox migration, and reduces the
amount of data transferred by only copying messages that are not present on
both servers. Read, unread, and deleted flags are preserved, and the process
can be stopped and resumed. The original messages can optionally be deleted
after a successful transfer.

%prep
%setup -q

%build
pod2man %{name} > %{name}.1

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 %{name} %{buildroot}%{_bindir}/
install -m0644 %{name}.1 %{buildroot}%{_mandir}/man1/

%files
%doc CREDITS ChangeLog FAQ README TODO
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0644,root,root) %{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2373 |21cr|im-chooser-1.7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname imchooseui %{major}

Name:		im-chooser
Version:	1.7.4
Release:	1
Summary:	Desktop Input Method configuration tool
Group:		System/Internationalization
License:	GPLv2+ and LGPLv2+
URL:		https://pagure.io/im-chooser
Source0:	https://releases.pagure.org/im-chooser/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
Patch0:		im-chooser-hide-desktop-in-gnome.patch
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(imsettings)
BuildRequires:	libxfce4util-devel
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	gettext

Obsoletes:	im-chooser-gnome3 < 1.4.2-2
Provides:	im-chooser-gnome3 = %{version}-%{release}
Requires:	%{name}-common = %{version}-%{release}

%description
im-chooser is a GUI configuration tool to choose the Input Method
to be used or disable Input Method usage on the desktop.

%files
%{_bindir}/im-chooser
%{_datadir}/applications/im-chooser.desktop
%{_mandir}/man1/im-chooser.1*

#-----------------------------------------------------------------
%package	common
Summary:	Common files for im-chooser subpackages
Group:		System/Internationalization
Requires:	%{libname} = %{EVRD}
Requires:	imsettings >= 1.3.0
Obsoletes:	im-chooser < 1.5.0.1
## https://fedorahosted.org/fpc/ticket/174
Provides:	bundled(egglib)

%description	common
im-chooser is a GUI configuration tool to choose the Input Method
to be used or disable Input Method usage on the desktop.

This package contains the common libraries/files to be used in
im-chooser subpackages.

%files	common -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README
%{_datadir}/icons/hicolor/*/apps/im-chooser.png
%dir %{_datadir}/imchooseui
%{_datadir}/imchooseui/imchoose.ui

%post	common
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun	common
if [ $1 -eq 0 ] ; then
    touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans common
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

#-----------------------------------------------------------------

%package -n %{libname}
Summary:	im-chooser shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libimchooseui.so.%{major}*

#-----------------------------------------------------------------

%package	xfce
Summary:	XFCE settings panel for im-chooser
Group:		System/Internationalization
Requires:	%{name}-common = %{version}-%{release}
Obsoletes:	im-chooser < 1.5.0.1

%description	xfce
im-chooser is a GUI configuration tool to choose the Input Method
to be used or disable Input Method usage on the desktop.

This package contains the XFCE settings panel for im-chooser.

%files	xfce
%{_bindir}/xfce4-im-chooser
%{_datadir}/applications/xfce4-im-chooser.desktop

#-----------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="-lICE"
%configure
%make

%install
%makeinstall_std INSTALL="/usr/bin/install -p"

desktop-file-install \
	--add-category=X-GNOME-PersonalSettings			\
	--delete-original					\
	--dir=%{buildroot}%{_datadir}/applications		\
	%{buildroot}%{_datadir}/applications/im-chooser.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/xfce4-im-chooser.desktop

rm -rf %{buildroot}%{_libdir}/libimchooseui.{so,la,a}

# disable panel so far
rm -rf %{buildroot}%{_libdir}/control-center-1/panels/libim-chooser.so
rm -rf %{buildroot}%{_datadir}/applications/im-chooser-panel.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2374 |21cr|imhangul-3.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hangul input module for GTK+ 3.x
Name:		imhangul
Version:	3.1.1
Release:	5
License:	GPLv2+
Group:		System/Internationalization
Url:		http://code.google.com/p/imhangul/
Source0:	http://imhangul.googlecode.com/files/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libhangul)
Requires:	locales-ko

%description
Hangul input module for GTK+ 3.x

%files -f im-hangul-3.0.lang
%doc AUTHORS COPYING ChangeLog NEWS README gtkrc
%{_libdir}/gtk-3.0/immodules/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --with-gtk-im-module-dir=%{_libdir}/gtk-3.0/immodules/
%make

%install
%makeinstall_std

%find_lang im-hangul-3.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2375 |21cr|iml-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude devel\\(libcblas(.*)|libcblas\\.so\\.(.*)
%else
%define _requires_exceptions devel(libcblas|libcblas\\.so\\
%endif

%define major 0
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d

Summary:	IML - Integer Matrix Library
Name:		iml
Version:	1.0.5
Release:	1
Group:		Sciences/Mathematics
License:	BSD-like
URL:		http://www.cs.uwaterloo.ca/~astorjoh/iml.html
Source:		http://www.cs.uwaterloo.ca/~astorjoh/iml-%{version}.tar.bz2

BuildRequires:	gmp-devel
BuildRequires:	pkgconfig(flexiblas)

%description
IML is a free library of C source code which implements algorithms for
computing exact solutions to dense systems of linear equations over the
integers. IML is designed to be used with the ATLAS/BLAS library and
GMP bignum library.

#-----------------------------------------------------------------------
%package -n %{libname}
Group:		Development/C
Summary:	IML - Integer Matrix Library library
Provides:	libname%{name}-devel = %{version}-%{release}

%description -n %{libname}
IML - Integer Matrix Library library.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#-----------------------------------------------------------------------
%package -n %{devname}
Group:		Development/C
Summary:	IML - Integer Matrix Library development files
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
IML- Integer Matrix Library development files.

%files -n %{devname}
%doc doc/liblink
%doc doc/libroutines
%doc examples
%{_includedir}/%{name}.h
%{_libdir}/*.so

#-----------------------------------------------------------------------
%prep
%autosetup -p1

awk  '/Copyright notice/ {n=1}; n && /\*\// {n=0}; n' src/iml.h |
  sed -r 's/^ \* ?//' > LICENSE
rm -v cblas.h

%build
%configure \
  --disable-static \
  --enable-shared \
  --with-cblas="$(pkgconf --libs flexiblas)" \
  --with-cblas-include="$(pkgconf --cflags flexiblas | sed -r 's/^-I//')" \
  --with-cblas-lib=%{_libdir}/

# Get rid of undesirable hardcoded rpaths; work around libtool reordering
# -Wl,--as-needed after all the libraries.
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    -e 's|CC=.g..|& -Wl,--as-needed|' \
    -i libtool

%make

%install
%makeinstall_std

# Remove libtool library file
find '%{buildroot}' -type f -name '*.la' -print -delete
# This contains the files “liblink” and “libroutines”, which are actually
# documentation and should be installed in a documentation directory.
rm -vrf '%{buildroot}%{_datadir}/iml'


%check
#LD_LIBRARY_PATH="${PWD}/src/.libs" make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2376 |21cr|imlib-1.9.15-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major 1
%define libname %mklibname %{name} %{lib_major}
%define devname %mklibname %{name} -d
%define gdk_libname %mklibname gdkimlib %{lib_major}
%define gdk_devname %mklibname gdkimlib -d

Summary:	An image loading and rendering library
Name:		imlib
Version:	1.9.15
Release:	26
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.enlightenment.org/Libraries/Imlib/	
Source0:	ftp://ftp.gnome.org/pub/GNOME/stable/sources/imlib/1.9/%{name}-%{version}.tar.bz2
Source1:	imlib-pofiles.tar.bz2
Patch0:		imlib-1.9-m4.patch
Patch1:		imlib-1.9.11-i18n.patch
Patch2:		imlib-1.9.10-path.patch
Patch3:		imlib-1.9.15-no-locincpth.patch
Patch5:		imlib-1.9.13-secfixes.patch
Patch6:		imlib-1.9.14-fix-underquoted-calls.patch
Patch7:		imlib-1.9.15-max-24bpp.diff
Patch8:		imlib-1.9.15-link.patch
Patch9:		imlib-1.9.15-libpng15.diff
Patch10:	imlib-1.9.15-giflib51.patch
BuildRequires:	chrpath
BuildRequires:	gettext
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gtk+)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Provides:	Imlib = %{EVRD}

# Comment to Source1 :
# I don't understand why official imlib dropped i18n support ?! all
# hooks are there though, only the po/ directory has been deleted

%description
Imlib is a display depth independent image loading and rendering library.
Imlib is designed to simplify and speed up the process of loading images
and obtaining X Window System drawables.  Imlib provides many simple
manipulation routines which can be used for common operations.  

Install imlib if you need an image loading and rendering library.
You may also want to install the imlib-cfgeditor package, which will help
you configure Imlib.

%files
%doc README AUTHORS ChangeLog
%config(noreplace) %{_sysconfdir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc README
%{_libdir}/libImlib.so.%{lib_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Includes and other files to develop %{name} applications
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	imlib-devel = %{EVRD}

%description -n %{devname}
The header files, static libraries and documentation needed for
developing Imlib applications.  Imlib is an image loading and rendering
library.

Install the imlib-devel package if you want to develop Imlib applications.
You'll also need to install the imlib and imlib_cfgeditor packages.

%files -n %{devname}
%doc doc/*.gif doc/*.html README AUTHORS ChangeLog
%{_bindir}/imlib-config
%{_mandir}/man1/imlib-config*
# note, the blank line above is needed due to some borked rpm5 macro
%{_includedir}/Imlib*
%{_datadir}/aclocal/*
%{_libdir}/libImlib.so
%{_libdir}/pkgconfig/imlib.pc

#----------------------------------------------------------------------------

%package -n %{gdk_libname}
Summary:	GDK version of the imlib library
Group:		System/Libraries
Requires:	%{name}

%description -n %{gdk_libname}
This package contains the library needed to run programs dynamically
linked with the gdk version of %{name}.

%files -n %{gdk_libname}
%{_libdir}/libgdk_imlib.so.%{lib_major}*

#----------------------------------------------------------------------------

%package -n %{gdk_devname}
Summary:	Includes and other files to develop %{name} applications
Group:		Development/GNOME and GTK+
Requires:	%{gdk_libname} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	libgdk%{name}-devel = %{EVRD}
Provides:	gdkimlib-devel = %{EVRD}

%description -n %{gdk_devname}
The header files, static libraries and documentation needed for
developing gdk_imlib applications.  gdk_imlib is an image loading and rendering
library.

%files -n %{gdk_devname}
%{_includedir}/gdk_*
%{_libdir}/pkgconfig/imlibgdk.pc
%{_libdir}/libgdk_imlib.so

#----------------------------------------------------------------------------

%package cfgeditor
Summary:	A configuration editor for the Imlib library
Group:		System/Libraries
Requires:	%{name}

%description cfgeditor
The imlib-cfgeditor package contains the imlib_config program, which you
can use to configure the Imlib image loading and rendering library.
Imlib_config can be used to control how Imlib uses color and handles
gamma corrections, etc.

If you're installing the imlib package, you should also install
imlib_cfgeditor.

%files cfgeditor -f %{name}.lang
%doc README
%{_bindir}/imlib_config
%{_mandir}/man1/imlib_config*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .m4ver
%patch1 -p1 -b .i18n
%patch2 -p1 -b .path
%patch3 -p1 -b .no-locincpth
%patch5 -p1 -b .can-2004-1025_1026
%patch6 -p1 -b .underquoted
%patch7 -p0
%patch8 -p1 -b .link
%patch9 -p1 -b .libpng15
%patch10 -p1 -b .giflib51

%build
%global optflags %{optflags} -fgnu89-inline
autoreconf -fi
%configure \
	--disable-gtktest \
	--disable-static
%make

%install
%makeinstall_std

# some hand dealing for locale
tar jxvf %{SOURCE1}
for i in po/*.po ; do
  mkdir -p %{buildroot}%{_datadir}/locale/`basename $i .po`/LC_MESSAGES
  msgfmt -v -o %{buildroot}%{_datadir}/locale/`basename $i .po`/LC_MESSAGES/imlib.mo $i
done

# (sb) rpmlint
chrpath -d %{buildroot}%{_bindir}/imlib_config
chrpath -d %{buildroot}%{_libdir}/*.so*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2377 |21cr|imsettings-1.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 5
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Name:		imsettings
Version:	1.8.3
Release:	1
Summary:	Delivery framework for general Input Method configuration
Group:		System/Internationalization
License:	LGPLv2+
URL:		https://tagoh.bitbucket.org/%{name}/
Source0:	https://bitbucket.org/tagoh/%{name}/downloads/%{name}-%{version}.tar.bz2
## Fedora specific: run IM for certain languages only
Patch0:		%{name}-constraint-of-language.patch
## Fedora specific: Disable XIM support
Patch1:		%{name}-disable-xim.patch
## Fedora specific: Enable xcompose for certain languages
Patch2:		%{name}-xinput-xcompose.patch
## Fedora specific: Force enable the IM management on imsettings for Cinnamon
Patch3:		%{name}-force-enable-for-cinnamon.patch
Patch4:		%{name}-fix-configure.patch
BuildRequires:	autoconf-archive
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	gettext
BuildRequires:	glib2 >= 2.32.0
BuildRequires:	gobject-introspection-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(x11)
BuildRequires:	xfconf-devel

Requires:	xinit
Requires:	%{libname} = %{version}-%{release}
Requires:	%{name}-desktop-module = %{version}-%{release}
Requires(post):	dbus update-alternatives
Requires(postun): dbus update-alternatives
Recommends:	%{name}-gsettings

%description
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains the core DBus services and some utilities.

%files	-f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %{_libdir}/imsettings
%{_bindir}/imsettings-info
%{_bindir}/imsettings-list
%{_bindir}/imsettings-reload
%{_bindir}/imsettings-switch
%{_libexecdir}/imsettings-check
%{_libexecdir}/imsettings-daemon
%{_libexecdir}/xinputinfo.sh
%{_libexecdir}/imsettings-functions
%{_libexecdir}/imsettings-target-checker.sh
%{_datadir}/dbus-1/services/*.service
%{_datadir}/pixmaps/*.png
%{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh
%{_sysconfdir}/X11/xinit/xinput.d
%{_sysconfdir}/xdg/autostart/imsettings-start.desktop
%{_mandir}/man1/imsettings-*.1*

%post
alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/none.conf 10
alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xcompose.conf 20
alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xim.conf 30
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || :

%postun
if [ "$1" = 0 ]; then
	alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/none.conf
	alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xcompose.conf
	alternatives --remove xinputrc %{_sysconfdir}/X11/xinit/xinput.d/xim.conf
	dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig > /dev/null 2>&1 || :
fi

#---------------------------------------------------------
%package	-n %{libname}
Summary:	Libraries for imsettings
Group:		Development/Other

%description	-n %{libname}
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains the shared library for imsettings.

%files	-n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/libimsettings.so.%{major}*
%{_libdir}/imsettings/libimsettings-systemd-gtk.so

#---------------------------------------------------------

%package	-n %{develname}
Summary:	Development files for imsettings
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Requires:	pkgconfig
Requires:	glib2-devel >= 2.32.0

%description	-n %{develname}
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains the development files to make any
applications with imsettings.

%files	-n %{develname}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_includedir}/imsettings
%{_libdir}/libimsettings.so
%{_libdir}/pkgconfig/imsettings.pc
%{_libdir}/girepository-*/IMSettings-*.typelib
%{_datadir}/gir-*/IMSettings-*.gir
%{_datadir}/gtk-doc/html/imsettings

#---------------------------------------------------------

%package	gsettings
Summary:	GSettings support on imsettings
Group:		System/Internationalization
Requires:	%{name} = %{version}-%{release}
Requires:	dconf
Provides:	imsettings-desktop-module = %{version}-%{release}
Provides:	%{name}-gnome = %{version}-%{release}
Obsoletes:	%{name}-gnome < 1.5.1-3

%description	gsettings
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains a module to get this working on
GNOME and Cinnamon which requires GSettings in their
own XSETTINGS daemons.

%files	gsettings
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/imsettings/libimsettings-gsettings.so
%{_libdir}/imsettings/libimsettings-systemd-gtk.so

#---------------------------------------------------------

%package	qt
Summary:	Qt support on imsettings
Group:		System/Internationalization
Requires:	%{name} = %{version}-%{release}
Requires:	im-chooser
Provides:	imsettings-desktop-module = %{version}-%{release}

%description	qt
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains a module to get this working on Qt
applications.

%files	qt
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/imsettings/libimsettings-qt.so
%{_libdir}/imsettings/libimsettings-systemd-qt.so

#---------------------------------------------------------

%package	xfce
Summary:	Xfce support on imsettings
Group:		System/Internationalization
Requires:	%{name} = %{version}-%{release}
Requires:	im-chooser-xfce
Requires:	xfce4-settings
Provides:	imsettings-desktop-module = %{version}-%{release}

%description	xfce
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains a module to get this working on Xfce.  

%files	xfce
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/imsettings/libimsettings-xfce.so

#---------------------------------------------------------

%package	lxde
Summary:	LXDE support on imsettings
Group:		System/Internationalization
Requires:	%{name} = %{version}-%{release}
#Requires:	lxde-settings-daemon
Requires:	lxsession
Requires:	im-chooser
Provides:	imsettings-desktop-module = %{version}-%{release}

%description	lxde
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains a module to get this working on LXDE.

%files	lxde
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/imsettings/libimsettings-lxde.so

#---------------------------------------------------------

%package	mate
Summary:	MATE support on imsettings
Group:		System/Internationalization
Requires:	%{name} = %{version}-%{release}
# need to keep more deps for similar reason to https://bugzilla.redhat.com/show_bug.cgi?id=693809
Requires:	mate-settings-daemon >= 1.5.0
Requires:	mate-session-manager
Requires:	im-chooser
Provides:	imsettings-desktop-module = %{version}-%{release}

%description	mate
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains a module to get this working on MATE.

%files	mate
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/imsettings/libimsettings-mate-gsettings.so

#---------------------------------------------------------

%if 0
%package	cinnamon
Summary:	Cinnamon support on imsettings
Group:		System/Internationalization
Requires:	%{name} = %{version}-%{release}
# need to keep more deps for similar reason to https://bugzilla.redhat.com/show_bug.cgi?id=693809
Requires:	cinnamon
Requires:	cinnamon-session
Requires:	im-chooser
Provides:	imsettings-desktop-module = %{version}-%{release}

%description	cinnamon
IMSettings is a framework that delivers Input Method
settings and applies the changes so they take effect
immediately without any need to restart applications
or the desktop.

This package contains a module to get this working on Cinnamon.

#%files cinnamon
#%doc AUTHORS COPYING ChangeLog NEWS README
#%{_libdir}/imsettings/libimsettings-cinnamon-gsettings.so
%endif

#---------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -f
%configure	\
	--with-xinputsh=50-xinput.sh \
	--disable-static \
	--disable-schemas-install

%make


%install
make install DESTDIR=%{buildroot} INSTALL="/usr/bin/install -p"

# change the file attributes
chmod 0755 %{buildroot}%{_libexecdir}/imsettings-target-checker.sh
chmod 0755 %{buildroot}%{_libexecdir}/xinputinfo.sh
chmod 0755 %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/50-xinput.sh

# clean up the unnecessary files
rm -f %{buildroot}%{_libdir}/imsettings/libimsettings-{gconf,mateconf}.so
rm -f %{buildroot}%{_libdir}/imsettings/libimsettings-cinnamon-gsettings.so

desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/imsettings-start.desktop

%find_lang %{name}


#%%check
## Disable it because it requires DBus session
# make check



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2378 |21cr|imspector-0.10-0.20160827.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap 20160827

Name:	    imspector
Version:	0.10
Release:	0.%{snap}.1
Summary:	Multiple IM transparent proxy
License:	GPLv2+
Group:		Networking/Other
URL:		http://www.imspector.org/
Source0:	http://www.imspector.org/downloads/snapshots/%{name}-%{snap}.tar.gz
Source1:	imspector.sysconfig
Source2:	imspector.service
Patch0:		imspector-make.patch
Patch1:		imspector-main.patch
Patch2:		imspector-conf.patch
Patch3:		multiple-lines.patch
Patch4:		imspector-0.9-openssl-1.0.patch
Patch5:		imspector-0.9-link.patch
BuildRequires:	openssl-devel >= 0.9.7
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRequires:	sqlite3-devel
Requires:	webserver
Requires:	openssl
# actually, only if webserver is apache, but there is no syntax for such aa condition
Requires:	apache-mod_socache_shmcb
Requires(post):	rpm-helper

%description
IMSpector is an Instant Messenger proxy with monitoring, blocking and
content-filtering capabilities. Currently it supports MSN, Jabber/XMPP, AIM,
ICQ, Yahoo, IRC and Gadu-Gadu to different degrees. MSN is the principle
protocol, as it is the most popular these days, at least in the UK where I'm
based. The supported platforms are at present Linux and BSD when using the pf
firewall, but porting to other UNIXs should be trivial. It is able to log to
plain files, as well as several types of SQL database including MySQL, SQLite
and PostreSQL.

%files
%defattr(0755,root,root)
%doc COPYING INSTALL README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/imspector
%attr(0755,root,root) %{_unitdir}/imspector*
%dir %{_sysconfdir}/imspector
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/imspector/acl.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/imspector/badwords.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/imspector/imspector.conf
%{_sbindir}/imspector
%dir %{_libdir}/imspector
%{_libdir}/imspector/aclfilterplugin.so
%{_libdir}/imspector/badwordsfilterplugin.so
%{_libdir}/imspector/catsloggingplugin.so
%{_libdir}/imspector/censordfilterplugin.so
%{_libdir}/imspector/debugloggingplugin.so
%{_libdir}/imspector/fileloggingplugin.so
%{_libdir}/imspector/ggprotocolplugin.so
%{_libdir}/imspector/httpsprotocolplugin.so
%{_libdir}/imspector/icqprotocolplugin.so
%{_libdir}/imspector/ircprotocolplugin.so
%{_libdir}/imspector/jabberprotocolplugin.so
%{_libdir}/imspector/miscfilterplugin.so
%{_libdir}/imspector/msnprotocolplugin.so
%{_libdir}/imspector/yahooprotocolplugin.so
%{_libdir}/libimspector.so
%{_var}/www/cgi-bin/imspector.cgi
%attr(-,imspector,imspector) %{_var}/lib/imspector
%attr(-,imspector,imspector) %{_var}/log/imspector
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/imspector.conf

#-----------------------------------------------------------------------------

%package mysql
Summary:	Imspector MySQL log support
Group:		Networking/Other
Requires:	%{name}

%description mysql
This package gives imspector mysql logging capabilities.

%files mysql
%{_libdir}/imspector/mysqlloggingplugin.so

#-----------------------------------------------------------------------------

%package postgresql
Summary:	Imspector PostgreSQL log support
Group:		Networking/Other
Requires:	%{name}

%description postgresql
This package gives imspector postgresql logging capabilities.

%files postgresql
%{_libdir}/imspector/postgresqlloggingplugin.so

#-----------------------------------------------------------------------------

%package sqlite
Summary:	Imspector MySQL log support
Group:		Networking/Other
Requires:	%{name}

%description sqlite
This package gives imspector sqlite logging and auto-messeging capabilities.

%files sqlite
%{_libdir}/imspector/sqliteloggingplugin.so
%{_libdir}/imspector/dbresponderplugin.so

#-----------------------------------------------------------------------------

%prep

%setup -q -n imspector
%patch0 -p0 -b .make
%patch1 -p0 -b .notusr
%patch2 -p0 -b .config
%patch3 -p1 -b .multiple_lines_at_config
%patch4 -p0 -b .ssl
%patch5 -p0 -b .link

cat imspector.conf|sed -r 's|/usr/lib|%{_libdir}|' >  imspector.conf.1
rm -f imspector.conf
mv imspector.conf.1 imspector.conf

%build
%make CXX="g++ %{optflags} %build_ldflags" LIBS="-lcrypto -ldl"
%make mysqlloggingplugin.so CXX="g++ %{optflags}"
%make postgresqlloggingplugin.so CXX="g++ %{optflags}"
%make sqliteloggingplugin.so  CXX="g++ %{optflags}"
%make dbresponderplugin.so CXX="g++ %{optflags}"

%install

%makeinstall
install -d %{buildroot}%{_var}/www/cgi-bin
mv contrib/imspector.cgi %{buildroot}%{_var}/www/cgi-bin/

%{__mkdir_p}  %{buildroot}%{_var}/log/imspector
%{__mkdir_p}  %{buildroot}%{_var}/lib/imspector

# provide a simple apache config
%{__mkdir_p} %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/
cat > %{buildroot}/etc/httpd/conf/webapps.d/imspector.conf << EOF
<Location /cgi-bin/imspector.cgi>
    Require all granted
</Location>
EOF

%{__mkdir_p} %{buildroot}%{_unitdir}
%{__mkdir_p} %{buildroot}%{_sysconfdir}/sysconfig
install -m0755 %{SOURCE2} %{buildroot}%{_unitdir}/imspector.service
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/imspector

%preun
%systemd_preun %{name}.service

%pre
%_pre_useradd imspector %{_var}/lib/imspector /bin/false

%postun
%_postun_userdel imspector
%_postun_groupdel imspector
%systemd_postun_with_restart %{name}.service

%post
%_create_ssl_certificate imspector
%systemd_post %{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2379 |21cr|IMSProg-1.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		IMSProg
Version:	1.4.4
%global rel %{nil}
Release:	1
Summary:	I2C, SPI and MicroWire EEPROM/Flash chip programmer for CH341a devices
Summary(ru_RU.UTF-8): I2C, SPI and MicroWire EEPROM/Flash программатор для CH341a устройств
License:	GPL-3.0-or-later
Group:		Development/Tools

Url:		https://github.com/bigbigmdm/IMSProg
Source:		https://github.com/bigbigmdm/IMSProg/archive/refs/tags/v%{version}%{rel}.tar.gz?/%{name}-%{version}%{rel}.tar.gz
Patch:		IMSProg-1.1.10.patch

BuildRequires: cmake
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: qt5-linguist-tools
BuildRequires: pkgconfig(libusb-1.0)

%description
IMSProg - Linux IMSProg - I2C, SPI and MicroWire EEPROM/Flash chip programmer
for CH341a devices. The IMSProm is a free I2C EEPROM programmer tool for
CH341A device based on QhexEdit2 and modify SNANDer programmer.

This is a GUI program used widget QhexEditor. For setting the SPI chip
parameters you can use the Detect button for reading chip parameters
(JEDEC information reading) or manually setting it. The I2C and MicroWire
EEPROM only manually selected.

The chip database format is clone with EZP2019, EZP2020, EZP2023, Minpro I,
XP866+ programmers. You can edit the database use the EZP Chip data Editor.

%description -l ru_RU.UTF-8
IMSProg - Linux IMSProg - I2C, SPI and MicroWire EEPROM/Flash программатор
для CH341a устройств. IMSProm является бесплатной утилитой для
использования CH341A устройств в качестве программатора микросхем. Основана на
QhexEdit2 и модифицированном программаторе SNANDer.

Графический интерфейс программы использует виджеты QhexEditor. Для настройки
параметров чипа SPI вы можете использовать кнопку «Поиск» для чтения параметров
чипа (считывание информации JEDEC) или настроить его вручную. I2C и MicroWire
EEPROM выбираются только вручную.

Формат базы данных чипов клонируется программаторами EZP2019, EZP2020, EZP2023,
Minpro I, XP866+. Вы можете редактировать базу данных с помощью редактора данных
EZP Chip.

%prep
%autosetup -p1 -n %{name}-%{version}%{rel}

# update translations
lrelease-qt5 IMSProg_editor/language/*.ts
lrelease-qt5 IMSProg_programmer/language/*.ts

%build
pushd IMSProg_editor
%cmake
%make_build
popd

pushd IMSProg_programmer
%cmake
%make_build
popd

%install
pushd IMSProg_editor
%make_install -C build
popd

pushd IMSProg_programmer
%make_install -C build
popd

# rename README
cp IMSProg_editor/README.md IMSProg_editor.md
cp IMSProg_programmer/README.md IMSProg_programmer.md

%files
%doc README.md IMSProg_editor.md IMSProg_programmer.md
%doc %{_docdir}/imsprog/html/index.html
%{_bindir}/%{name}
%{_bindir}/%{name}_editor
%{_bindir}/IMSProg_database_update
%{_datadir}/imsprog
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}_editor.desktop
%{_datadir}/applications/IMSProg_database_update.desktop
%{_udevrulesdir}/71-CH341.rules
%{_mandir}/man1/IMSProg.1.xz
%{_mandir}/man1/IMSProg_database_update.1*
%{_mandir}/man1/IMSProg_editor.1*
%{_datadir}/pixmaps/IMSProg64.png
%{_datadir}/pixmaps/IMSProg_database_update.png
%{_datadir}/pixmaps/chipEdit64.png
%{_datadir}/metainfo/io.github.bigbigmdm.imsprog.metainfo.xml
%{_datadir}/metainfo/io.github.bigbigmdm.imsprog_database_update.metainfo.xml
%{_datadir}/metainfo/io.github.bigbigmdm.imsprog_editor.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2380 |21cr|inadyn-2.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary: A client to update host entries on DynDNS like services
Name:    inadyn
Version:	2.9.1
Release:	1
License: GPL
Group:   System/Configuration/Networking
URL:     http://inadyn.ina-tech.net/
Source0: http://inadyn.ina-tech.net/inadyn.v1.96.2.zip
Source1: inadyn.conf
Source2: inadyn.service
Requires(preun):rpm-helper
Requires(post): rpm-helper

%description
INADYN is a dynamic DNS client. That is, it maintains the IP address of a
host name. It periodically checks whether the IP address stored by the DNS
server is the real current address of the machine that is running INADYN.

%prep
%setup -q -n inadyn

%build
make clean
make

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_mandir}/{man8,man5}

install -m 0755 -p bin/linux/inadyn %{buildroot}%{_sbindir}/
install -m 0644 -p man/inadyn.8 %{buildroot}%{_mandir}/man8/
install -m 0644 -p man/inadyn.conf.5 %{buildroot}%{_mandir}/man5/
install -m 0600 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/
install -m 0755 -p %{SOURCE2} %{buildroot}%{_unitdir}/inadyn.service

%clean

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%doc readme.html
%{_sbindir}/inadyn
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/inadyn.conf
%{_unitdir}/inadyn*
%defattr(-,root,man)
%{_mandir}/man5/inadyn.conf.*
%{_mandir}/man8/inadyn.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2381 |21cr|incron-0.5.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Inotify cron system
Name:		incron
Version:	0.5.12
Release:	2
License:	GPLv2+
Group:		System/Servers
Url:		https://github.com/ar-/incron
Source0:	https://github.com/ar-/incron/archive/%{version}.tar.gz
Source1:	incrond.service
Patch0:		incron-0.5.10-gcc.patch
Requires(post,preun,postun):	systemd

%description
This program is an "inotify cron" system. It consists of a daemon and a table
manipulator. You can use it a similar way as the regular cron. The difference
is that the inotify cron handles filesystem events rather than time periods.

%files
%doc COPYING CHANGELOG README TODO LICENSE-GPL
%attr(4755,root,root) %{_bindir}/incrontab
%{_sbindir}/incrond
%{_unitdir}/incrond.service
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_mandir}/man1/incrontab.1*
%{_mandir}/man5/incrontab.5*
%{_mandir}/man5/incron.conf.5*
%{_mandir}/man8/incrond.8*
%dir %{_localstatedir}/spool/%{name}
%dir %{_sysconfdir}/%{name}.d

%post
%systemd_post incrond.service

%preun
%systemd_preun incrond.service

%postun
%systemd_postun_with_restart incrond.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .gcc

%build
%make \
	CXXFLAGS="%{optflags} -std=c++14" \
	LDFLAGS="%{ldflags}"

%install
#install files manually since source Makefile tries to do it as root
install -D -p incrond %{buildroot}%{_sbindir}/incrond
install -D -p -m 4755 incrontab %{buildroot}%{_bindir}/incrontab
install -d %{buildroot}%{_localstatedir}/spool/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}.d
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/incrond.service
install -D -p -m 0644 incron.conf.example %{buildroot}%{_sysconfdir}/%{name}.conf

# install manpages
make install-man MANPATH="%{buildroot}%{_mandir}" INSTALL="install -D -p"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2382 |21cr|indextools-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		indextools
Version:	1.5.1
Release:	1
Summary:	Producing multiple indices
Group:		Publishing
URL:		https://www.ctan.org/pkg/indextools
License:	The LATEX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/indextools.tar.xz  
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/indextools.source.tar.xz 
Source2:    	http://mirrors.ctan.org/systems/texlive/tlnet/archive/indextools.doc.tar.xz 
BuildArch:	noarch
BuildRequires:	texlive-tlpkg

Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package enables the user to produce and typeset one or more indices simultaneously.

The package is known to work in LATEX documents processed with pdfLATEX, XELATEX and LuaLATEX. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/indextools/indextools.sty
%doc %{_texmfdistdir}/doc/latex/indextools/README
%doc %{_texmfdistdir}/doc/latex/indextools/makefile
%doc %{_texmfdistdir}/doc/latex/indextools/latexmkrc
%doc %{_texmfdistdir}/doc/latex/indextools/issue5.pdf
%doc %{_texmfdistdir}/doc/latex/indextools/indextools.pdf
%doc %{_texmfdistdir}/source/latex/indextools/indextools.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build
%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2383 |21cr|indicator-application-12.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Displays application menu's on panel
Name:		indicator-application
Version:	12.10.0
Release:	6
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		http://launchpad.net/indicator-application
Source0:	%{name}-%{version}.tar.gz
Patch0:		indicator-application-12.10.0-glib-deprecated.patch
Patch1:		indicator-application-12.10.0-no-werror.patch
BuildRequires:	pkgconfig(appindicator3-0.1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dbusmenu-gtk3-0.4)
BuildRequires:	pkgconfig(indicator3-0.4)
BuildRequires:	pkgconfig(json-glib-1.0)

%description
This package provides a library and an indicator to take the menus from
applications and displays them on the panel bar.

%files
%doc AUTHORS COPYING
%{_libexecdir}/indicator-application-service
%{_libdir}/indicators3/
%{_datadir}/dbus-1/services/*.service
%{_datadir}/indicator-application/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2384 |21cr|i-nex-7.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname I-Nex
%define git 20191118

Summary:	System information tool
Name:		i-nex
Version:	7.6.1
Release:	1
License:	LGPLv3+
Group:		System/Configuration/Hardware
Url:		https://launchpad.net/i-nex
# git snapshot from https://github.com/i-nex/I-Nex
Source0:	%{oname}-%{git}.tar.bz2
Patch0:		i-nex-install.patch
# From Arch
Patch1:		Adapt-for-new-libcpuid-structure.patch
Patch2:		Fix-error-if-proc-mtrr-doesn-t-exist.patch
Patch3:		Fix-libcpuid-SOVERSION.patch
Patch4:		Fix-for-gambas-compiler-change.patch
# Just to make sure we have all these in repositories
BuildRequires:	gambas3-gb-desktop
BuildRequires:	gambas3-gb-form
BuildRequires:	gambas3-gb-form-dialog
BuildRequires:	gambas3-gb-gtk3
BuildRequires:	gambas3-gb-gui
BuildRequires:	gambas3-gb-image
BuildRequires:	gambas3-gb-jit
BuildRequires:	gambas3-gb-qt5
BuildRequires:	gambas3-gb-settings
BuildRequires:	imagemagick
BuildRequires:	gambas3-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcpuid)
BuildRequires:	pkgconfig(libprocps)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	gambas3-gb-desktop
Requires:	gambas3-gb-form
Requires:	gambas3-gb-form-dialog
Requires:	gambas3-gb-gtk3
Requires:	gambas3-gb-gui
Requires:	gambas3-gb-image
Requires:	gambas3-gb-jit
Requires:	gambas3-gb-qt5
Requires:	gambas3-gb-qt5-x11
Requires:	gambas3-gb-settings
Requires:	gambas3-runtime
Requires:	%{_lib}cpuid15
Requires:	pastebinit

%description
An application that gathers information for hardware components available
on your system and displays it using an user interface similar to the popular
Windows tool CPU-Z.

%files
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-library.desktop
%{_datadir}/pixmaps/%{name}*.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
/lib/udev/rules.d/i2c_smbus.rules
%{_mandir}/man1/%{name}*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{git}

# fix png rgb 
pushd %{oname}/%{name}/logo
find . -type f -name "*.png" -exec convert {} -strip {} \;
popd

%build
pushd %{oname}
autoreconf -fi
%configure
popd
%make \
	STATIC=false \
	CFLAGS="%{optflags}"

%install
%makeinstall_std

# install menu entries
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Version=1.0
Name=I-Nex
Comment=I-Nex, a system information tool
Exec=i-nex
Icon=i-nex
Terminal=false
Type=Application
StartupNotify=true
Categories=System;Utility;
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}-library.desktop << EOF
[Desktop Entry]
Version=1.0
Name=I-Nex Library
Comment=I-Nex System Library Information
Exec=%{name} --library
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=System;Utility;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert %{oname}/%{name}/logo/i-nex.0.4.x.png -resize ${N}x${N} $N.png;
install -D -m 0644 16.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# not needed
rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2385 |21cr|ini4j-0.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Prevent brp-java-repack-jars from being run.
%global __jar_repack %{nil}

%global servlet_jar %{_javadir}/servlet.jar

Name:           ini4j
Version:        0.5.1
Release:        3
Summary:        Java API for handling files in Windows .ini format

Group:          Development/Java
License:        ASL 2.0
URL:            http://www.ini4j.org/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}-src.zip
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:        %{name}-%{version}-build.xml
Patch5:         %{name}-encoding.patch
# build with java8. technically, this is an api change
Patch8:         %{name}-java8-compat.patch

BuildArch:      noarch

# See http://ini4j.sourceforge.net/dependencies.html
BuildRequires:  jpackage-utils
BuildRequires:  ant
BuildRequires:  java-devel >= 1.6.0
BuildRequires:  servlet6
BuildRequires:  java-rpmbuild >= 0:1.5.32

Requires:       jpackage-utils
Requires:       java >= 1.6.0
Requires:       servlet6

%description
The [ini4j] is a simple Java API for handling configuration files in Windows 
.ini format. Additionally, the library includes Java Preferences API 
implementation based on the .ini file.

%package javadoc
Summary:        Javadocs for %{name}
Group:          Development/Java
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%prep

%setup -q
%patch5 -p1
%patch8 -p1

cp -a %{SOURCE1} ./LICENSE-2.0.txt
cp -a %{SOURCE2} ./build.xml

find . -type f \( -iname "*.jar" -o -iname "*.class" \) | xargs -t %{__rm} -f

# remove test sources
%{__rm} -rf src/test
# remove site sources
%{__rm} -rf src/site

%build

%ant -Dbuild.servlet.jar=%{servlet_jar}  build javadoc

%install

# JAR
%{__mkdir_p} %{buildroot}%{_javadir}
cp -p dist/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && %{__ln_s} %{name}-%{version}.jar %{name}.jar)

# Javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}
cp -rp build/doc/api/* %{buildroot}%{_javadocdir}/%{name}

%files
%{_javadir}/*
%doc LICENSE-2.0.txt src/main/java/org/ini4j/package.html

%files javadoc
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2386 |21cr|iniparser-3.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C library for parsing "INI-style" files
Name:		iniparser
Version:	3.1
Release:	4
License:	MIT
Group:		System/Libraries
Url:		http://ndevilla.free.fr/iniparser/
Source0:	http://ndevilla.free.fr/iniparser/%{name}-%{version}.tar.gz
Patch0:		iniparser-3.1-makefile.patch

%description
iniParser is an ANSI C library to parse "INI-style" files, often used to
hold application configuration information.


%package -n %{libname}
Summary:	C library for parsing "INI-style" files
Group:		System/Libraries

%description -n %{libname}
iniParser is an ANSI C library to parse "INI-style" files, often used to
hold application configuration information.

%package -n %{devname}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -q -n %{name}
%patch0 -p1

%build
%setup_compile_flags
%make libiniparser.so

%install
# iniParser doesn't have a 'make install' of its own :(
install -d %{buildroot}%{_includedir} %{buildroot}%{_libdir}
install -m 644 -t %{buildroot}%{_includedir}/ src/dictionary.h src/iniparser.h
install -m 755 -t %{buildroot}%{_libdir}/ libiniparser.so.0
ln -s libiniparser.so.0 %{buildroot}%{_libdir}/libiniparser.so

%files -n %{libname}
%{_libdir}/libiniparser.so.%{major}*

%files -n %{devname}
%doc README LICENSE
%{_libdir}/libiniparser.so
%{_includedir}/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2387 |21cr|ink-0.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to determine the ink levels of HP and Epson inkjets
Name:		ink
Version:	0.5.3
Release:	1
License:	GPLv3
Group:		Publishing
Url:		http://ink.sourceforge.net/
Source0:	http://download.sourceforge.net/sourceforge/ink/%{name}-%{version}.tar.gz
BuildRequires:	libinklevel-devel >= 0.8.0
Requires:	user(lp)

%description
ink is a command line tool for checking the ink level of your printer on
a system which runs Linux. It supports printers attached via parallel
port or usb.

Most current HP inkjets and several Epson inkjets are supported.

Note that ink only works when the printer is not printing and when the
printer port is not occupied by HPOJ.

%files
%doc COPYING README
# This should run SGID sys, so that it can access the printer device files
# when started by a normal user
%attr(2755,lp,sys) %{_bindir}/*
%{_mandir}/man1/ink.1.*

#-----------------------------------------------------------------------
%prep
%setup -q

%build
%configure
%make CFLAGS="%{optflags}"

%install
# Remove explicit setting of ownerships from the Makefile
perl -p -i -e 's/-o root -g root//' Makefile

%makeinstall_std PREFIX=%{_prefix}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2388 |21cr|inn-2.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define innmajor 9
%define major 3
%define libname %mklibname %{name} %{innmajor}
%define libinnhist %mklibname innhist %{major}
%define libinnstorage %mklibname innstorage %{major}
%define devname %mklibname %{name} -d

%global _disable_ld_no_undefined 1
%global _hardened_build 1

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(bigint.pl\\)|perl\\(ftp.pl\\)
%else
%define _requires_exceptions perl(bigint.pl)\\|perl(ftp.pl)
%endif

#on abf build tests fail, local build tests OK
%bcond_with tests

Summary:	The InterNetNews system, an Usenet news server
Group:		System/Servers
Name:		inn
Version:	2.7.1
Release:	1
#see LICENSE file for details
License:	GPLv2+ and BSD and MIT and Public Domain
URL:		https://www.eyrie.org/~eagle/software/inn/
Source0:	https://downloads.isc.org/isc/inn/inn-%{version}.tar.gz
Source2:	inn-default-distributions
Source10:	http://www.eyrie.org/~eagle/faqs/inn.html
Source20:	innd.service
Source21:	innd-expire.service
Source22:	innd-expire.timer
Source23:	innd-nntpsend.service
Source24:	innd-nntpsend.timer
Source25:	innd-rnews.service
Source26:	innd-rnews.timer
Source30:	inn.rsyslog
Patch1:		inn-2.7.0-rh.patch
BuildRequires:	autoconf
BuildRequires:	byacc
BuildRequires:	cyrus-sasl-devel
BuildRequires:	ext2fs-devel
BuildRequires:	flex
BuildRequires:	gdbm-devel
BuildRequires:	krb5-devel
BuildRequires:	db-devel
BuildRequires:	openssl-devel
BuildRequires:	pam-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	perl(GD)
BuildRequires:	perl(MIME::Parser)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	python3-devel
BuildRequires:	wget
BuildRequires:	zlib-devel
BuildRequires:	make
%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends: perl(GD)
Recommends: uucp
%endif
Requires: bash >= 2.0
Requires: coreutils
Requires: grep
Requires: perl
Requires: sed
Requires: wget
Requires(pre):  /bin/systemd-sysusers
Requires(post): inews

# XXX white out bogus perl requirement for now
Provides: perl(::usr/lib/innshellvars.pl) = %{version}-%{release}


%description
INN (InterNetNews) is a complete system for serving Usenet news and/or
private newsfeeds. INN includes innd, an NNTP (NetNews Transfer Protocol)
server, and nnrpd, a news server that handles connections from news
readers.

Install the inn package if you need a complete system for posting,
injecting, relaying and serving Usenet news. You may also need to
install inn-devel, if you are going to use a separate program which
interfaces to INN, like newsgate or tin.

%files
%license doc/GPL
%license LICENSE
%doc NEWS README* HACKING CONTRIBUTORS INSTALL FAQ.html
%doc doc/config-design doc/history-innfeed doc/sample-control
%doc doc/config-semantics doc/external-auth TODO doc/hook-python doc/config-syntax
%doc doc/hook-perl doc/history
%doc samples
%{_unitdir}/innd.service
%{_unitdir}/innd-expire.service
%{_unitdir}/innd-expire.timer
%{_unitdir}/innd-nntpsend.service
%{_unitdir}/innd-nntpsend.timer
%{_unitdir}/innd-rnews.service
%{_unitdir}/innd-rnews.timer
%{_presetdir}/80-inn.preset
%dir %{_sysconfdir}/rsyslog.d
%{_sysconfdir}/rsyslog.d/inn.conf
%{_mandir}/man1/c*.1.*
%{_mandir}/man1/f*.1.*
%{_mandir}/man1/g*.1.*
%{_mandir}/man1/inn*.1.*
%{_mandir}/man1/n*.1.*
%{_mandir}/man1/p*.1.*
%{_mandir}/man1/r*.1.*
%{_mandir}/man1/s*.1.*
%{_mandir}/man3/INN::Config.3pm*
%{_mandir}/man3/INN::Utils::Shlock.3pm*
%{_mandir}/man3/libinn_uwildmat.3*
%{_mandir}/man[58]/*
%defattr(-,news,news,-)
# tmpfile.d files
%{_tmpfilesdir}/inn.conf
# /etc/news config files
%dir %{_sysconfdir}/news
%config(noreplace) %{_sysconfdir}/news/send-uucp.cf
%config(noreplace) %{_sysconfdir}/news/actsync.cfg
%config(noreplace) %{_sysconfdir}/news/motd.innd.sample
%config(noreplace) %{_sysconfdir}/news/motd.nnrpd.sample
%config(noreplace) %{_sysconfdir}/news/expire.ctl
%config(noreplace) %{_sysconfdir}/news/actsync.ign
%config(noreplace) %{_sysconfdir}/news/innreport.conf
%config(noreplace) %{_sysconfdir}/news/distrib.pats
%config(noreplace) %{_sysconfdir}/news/buffindexed.conf
%config(noreplace) %{_sysconfdir}/news/innwatch.ctl
%config(noreplace) %{_sysconfdir}/news/nntpsend.ctl
%config(noreplace) %{_sysconfdir}/news/innfeed.conf
%config(noreplace) %{_sysconfdir}/news/nnrpd.track
%config(noreplace) %{_sysconfdir}/news/control.ctl.local
%config(noreplace) %{_sysconfdir}/news/storage.conf
%config(noreplace) %{_sysconfdir}/news/moderators
%config(noreplace) %{_sysconfdir}/news/news2mail.cf
%config(noreplace) %{_sysconfdir}/news/cycbuff.conf
%config(noreplace) %{_sysconfdir}/news/subscriptions
%config(noreplace) %{_sysconfdir}/news/control.ctl
%config(noreplace) %{_sysconfdir}/news/localgroups
%config(noreplace) %{_sysconfdir}/news/.profile
%config(noreplace) %{_sysconfdir}/news/nocem.ctl
%config(noreplace) %{_sysconfdir}/news/incoming.conf
%config(noreplace) %{_sysconfdir}/news/inn-radius.conf
%config(noreplace) %{_sysconfdir}/news/ovdb.conf
%config(noreplace) %{_sysconfdir}/news/newsfeeds
%config(noreplace) %{_sysconfdir}/news/readers.conf
%config(noreplace) %{_sysconfdir}/news/distributions
%config(noreplace) %{_sysconfdir}/news/inn-secrets.conf
%config(noreplace) %{_sysconfdir}/news/ovsqlite.conf

%dir %{_sharedstatedir}/news
%config(noreplace) %{_sharedstatedir}/news/active.times
%config(noreplace) %{_sharedstatedir}/news/distributions
%config(noreplace) %{_sharedstatedir}/news/newsgroups
%config(noreplace) %{_sharedstatedir}/news/active
%config(noreplace) %{_sharedstatedir}/news/subscriptions
%config(noreplace) %{_sharedstatedir}/news/history

%config(noreplace) %{_sysconfdir}/news/innshellvars.pl.local
%config(noreplace) %{_sysconfdir}/news/innshellvars.local
%config(noreplace) %{_sysconfdir}/news/innshellvars.tcl.local

%{_bindir}/rnews

%defattr(0755,root,news,0755)
%dir %{_libexecdir}/news
%{_libexecdir}/news/controlbatch
%attr(4510,root,news) %{_libexecdir}/news/innbind
%{_libexecdir}/news/docheckgroups
%{_libexecdir}/news/imapfeed
%{_libexecdir}/news/actmerge
%{_libexecdir}/news/ovdb_server
%{_libexecdir}/news/ninpaths
%{_libexecdir}/news/mod-active
%{_libexecdir}/news/news2mail
%{_libexecdir}/news/innconfval
%{_libexecdir}/news/shlock
%{_libexecdir}/news/nnrpd
%{_libexecdir}/news/controlchan
%{_libexecdir}/news/procbatch
%{_libexecdir}/news/expire
%{_libexecdir}/news/convdate
%{_libexecdir}/news/pullnews
%{_libexecdir}/news/archive
%{_libexecdir}/news/cnfsstat
%{_libexecdir}/news/grephistory
%{_libexecdir}/news/send-ihave
%{_libexecdir}/news/tinyleaf
%{_libexecdir}/news/cvtbatch
%{_libexecdir}/news/expirerm
%{_libexecdir}/news/rc.news
%{_libexecdir}/news/gencancel
%{_libexecdir}/news/innreport-display.conf
%{_libexecdir}/news/ovsqlite-server
%{_libexecdir}/news/ovsqlite-util
%attr(4550,uucp,news) %{_libexecdir}/news/rnews
%{_libexecdir}/news/innxmit
%{_libexecdir}/news/actsyncd
%{_libexecdir}/news/shrinkfile
%{_libexecdir}/news/makedbz
%{_libexecdir}/news/actsync
%{_libexecdir}/news/pgpverify
%{_libexecdir}/news/inndf
%{_libexecdir}/news/scanlogs
%{_libexecdir}/news/simpleftp
%{_libexecdir}/news/ovdb_init
%{_libexecdir}/news/ctlinnd
%{_libexecdir}/news/innstat
%{_libexecdir}/news/send-uucp
%{_libexecdir}/news/buffchan
%{_libexecdir}/news/perl-nocem
%{_libexecdir}/news/scanspool
%{_libexecdir}/news/expireover
%{_libexecdir}/news/batcher
%{_libexecdir}/news/fastrm
%{_libexecdir}/news/innmail
%{_libexecdir}/news/innxbatch
%{_libexecdir}/news/buffindexed_d
%{_libexecdir}/news/nntpget
%{_libexecdir}/news/cnfsheadconf
%{_libexecdir}/news/ovdb_stat
%{_libexecdir}/news/prunehistory
%{_libexecdir}/news/innreport
%attr(0644,root,news) %{_libexecdir}/news/innreport_inn.pm
%{_libexecdir}/news/getlist
%{_libexecdir}/news/innd
%{_libexecdir}/news/innupgrade
%{_libexecdir}/news/news.daily
%{_libexecdir}/news/sm
%{_libexecdir}/news/innwatch
%{_libexecdir}/news/inncheck
%{_libexecdir}/news/writelog
%{_libexecdir}/news/tdx-util
%{_libexecdir}/news/tally.control
%{_libexecdir}/news/overchan
%{_libexecdir}/news/sendinpaths
%{_libexecdir}/news/makehistory
%{_libexecdir}/news/nntpsend
%{_libexecdir}/news/mailpost
%{_libexecdir}/news/innfeed
%{_libexecdir}/news/ovdb_monitor
%{_libexecdir}/news/sendxbatches

%define filterdir %{_libexecdir}/news/filter
%dir %{filterdir}
%{filterdir}/__pycache__
%{filterdir}/filter_nnrpd.pl
%{filterdir}/nnrpd_access.pl
%{filterdir}/startup_innd.pl
%{filterdir}/nnrpd_auth.py*
%{filterdir}/nnrpd_access.py*
%{filterdir}/nnrpd_auth.pl
%{filterdir}/INN.py*
%{filterdir}/nnrpd.py*
%{filterdir}/filter_innd.py*
%{filterdir}/nnrpd_dynamic.py*

%define authdir %{_libexecdir}/news/auth
%dir %{authdir}

%define passwddir %{authdir}/passwd
%dir %{passwddir}
%{passwddir}/auth_krb5
%{passwddir}/ckpasswd
%{passwddir}/radius

%define resolvdir %{authdir}/resolv
%dir %{resolvdir}
%{resolvdir}/domain
%{resolvdir}/ident

%define controldir %{_libexecdir}/news/control
%dir %{controldir}
%{controldir}/ihave.pl
%{controldir}/sendme.pl
%{controldir}/checkgroups.pl
%{controldir}/newgroup.pl
%{controldir}/rmgroup.pl

%define rnewsdir %{_libexecdir}/news/rnews.libexec
%dir %{rnewsdir}
%{rnewsdir}/encode
%{rnewsdir}/gunbatch
%{rnewsdir}/decode
%{rnewsdir}/bunbatch
%{rnewsdir}/c7unbatch

%{_libexecdir}/news/innshellvars.pl
%{_libexecdir}/news/innshellvars
%{_libexecdir}/news/innshellvars.tcl

%attr(0775,root,news) %dir %{_sharedstatedir}/news/http
%{_sharedstatedir}/news/http/innreport.css

%dir %{perl_vendorlib}/INN
%{perl_vendorlib}/INN/Config.pm
%{perl_vendorlib}/INN/Utils/Shlock.pm

%defattr(-,news,news,-)
%dir /var/spool/news
%dir /var/spool/news/archive
%dir /var/spool/news/articles
%attr(0775,news,news) %dir /var/spool/news/incoming
%attr(0775,news,news) %dir /var/spool/news/incoming/bad
%dir /var/spool/news/innfeed
%dir /var/spool/news/outgoing
%dir /var/spool/news/overview
%dir /var/log/news/OLD
%dir %{_sharedstatedir}/news/tmp
%ghost %dir /run/news

%pre
getent group news >/dev/null || groupadd -g 13 -r news
getent passwd news >/dev/null || \
useradd -r -u 9 -g news -d /etc/news  \
-c "News server user" news
getent group uucp >/dev/null || groupadd -g 14 -r uucp
if ! getent passwd uucp >/dev/null ; then
  if ! getent passwd 10 >/dev/null ; then
     useradd -r -u 10 -g uucp -d /var/spool/uucp  -c "Uucp user" uucp
  else
     useradd -r -g uucp -d /var/spool/uucp  -c "Uucp user" uucp
  fi
fi
exit 0

%post
su -m news -c '/usr/libexec/news/makedbz -i -o'

umask 002
touch /var/log/news/news.notice /var/log/news/news.crit /var/log/news/news.err
chown -R news:news /var/log/news*

%systemd_post %{inn_units_with_restart} %{inn_units}

%ldconfig_scriptlets libs

%preun
%systemd_preun %{inn_units_with_restart} %{inn_units}

if [ $1 = 0 ]; then
    if [ -f /var/lib/news/history.dir ]; then
       rm -f /var/lib/news/history.*
    fi
fi

%postun
%systemd_postun_with_restart %{inn_units}
%systemd_postun %{inn_units}


#--------------------------------------------------------------------
%package -n %{devname}
Summary:	The INN (InterNetNews) library
Group:		System/Servers
Requires:	inn = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libinnhist} = %{EVRD}
Requires:	%{libinnstorage} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The inn-devel package contains the INN (InterNetNews) library, which
several programs that interface with INN need in order to work (for
example, newsgate and tin).

If you are installing a program which must interface with the INN news
system, you should install inn-devel.

%files -n %{devname}
%{_includedir}/inn
%{_libdir}/lib*.so
%{_mandir}/man3/*
%exclude %{_mandir}/man3/INN::Config.3pm*
%exclude %{_mandir}/man3/INN::Utils::Shlock.3pm*
%exclude %{_mandir}/man3/libinn_uwildmat.3*

#--------------------------------------------------------------------

%package -n inews
Summary:	Sends Usenet articles to a local news server for distribution
Group:		System/Servers

%description -n inews
The inews program is used by some news programs (for example, inn and
trn) to post Usenet news articles to local news servers.  Inews reads
an article from a file or standard input, adds headers, performs some
consistency checks and then sends the article to the local news server
specified in the inn.conf file.

Install inews if you need a program for posting Usenet articles to
local news servers.

%files -n inews
%config(noreplace) %attr(-,news,news) %{_sysconfdir}/news/inn.conf
%config(noreplace) %attr(-,news,news) %{_sysconfdir}/news/passwd.nntp
%{_bindir}/inews
%attr(0755,root,root) %{_libexecdir}/news/inews
%{_mandir}/man1/inews*

%pre -n inews
getent group news >/dev/null || groupadd -g 13 -r news
getent passwd news >/dev/null || \
useradd -r -u 9 -g news -d /etc/news  \
-c "News server user" news
exit 0

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries provided by INN
Group:		System/Servers

%description -n %{libname}
This package contains dynamic libraries provided by INN project

%files -n %{libname}
%{_libdir}/libinn.so.%{innmajor}*

#--------------------------------------------------------------------

%package -n %{libinnhist}
Summary:	Libraries provided by INN
Group:		System/Servers

%description -n %{libinnhist}
This package contains dynamic libraries provided by INN project

%files -n %{libinnhist}
%{_libdir}/libinnhist.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libinnstorage}
Summary:	Libraries provided by INN
Group:		System/Servers

%description -n %{libinnstorage}
This package contains dynamic libraries provided by INN project

%files -n %{libinnstorage}
%{_libdir}/libinnstorage.so.%{major}*

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n inn-%{version}

%build
%configure \
  --disable-static \
  --enable-largefiles \
  --enable-reduced-depends \
  --enable-shared \
  --enable-uucp-rnews \
  --bindir=%{_libexecdir}/news \
  --exec-prefix=%{_libexecdir}/news \
  --sysconfdir=%{_sysconfdir}/news \
  --with-db-dir=%{_sharedstatedir}/news \
  --with-http-dir=%{_sharedstatedir}/news/http \
  --with-libperl-dir=%{perl_vendorlib} \
  --with-log-dir=/var/log/news \
  --with-openssl \
  --with-perl \
  --with-pic \
  --with-python \
  --with-run-dir=/run/news \
  --with-sasl \
  --with-sendmail=/usr/sbin/sendmail \
  --with-spool-dir=/var/spool/news \
  --with-tmp-dir=%{_sharedstatedir}/news/tmp \
  --with-news-group=news \
  --with-news-master=news \
  --with-news-user=news \

# Don't hardcode rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make_build

%install
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_sharedstatedir}/news/http
make install DESTDIR=%{buildroot}

# -- Install man pages needed by suck et al.
mkdir -p %{buildroot}%{_includedir}/inn

for f in system.h libinn.h storage.h options.h dbz.h
do
    install -p -m 0644 ./include/inn/$f %{buildroot}%{_includedir}/inn
done

touch     %{buildroot}%{_sharedstatedir}/news/subscriptions
chmod 644 %{buildroot}%{_sharedstatedir}/news/subscriptions

install -m 644 %{SOURCE2} %{buildroot}%{_sharedstatedir}/news/distributions

mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE20} %{buildroot}%{_unitdir}

install -p -m 0644 %{SOURCE21} %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE22} %{buildroot}%{_unitdir}

install -p -m 0644 %{SOURCE23} %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE24} %{buildroot}%{_unitdir}

install -p -m 0644 %{SOURCE25} %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE26} %{buildroot}%{_unitdir}

cp -p %{SOURCE10} FAQ.html

touch %{buildroot}%{_sharedstatedir}/news/history
#LD_LIBRARY_PATH=%{buildroot}/usr/lib $RPM_BUILD_ROOT/usr/bin/makedbz -i \
# -f %{buildroot}/var/lib/news/history
#chmod 644 %{buildroot}/var/lib/news/*

cat > %{buildroot}%{_sysconfdir}/news/.profile <<EOF
PATH=/bin:%{_bindir}:%{_libexecdir}/news
export PATH
EOF

#Fix perms in sample directory to avoid bogus dependencies
find samples -name "*.in" -exec chmod a-x {} \;

# we get this from cleanfeed
rm -f %{buildroot}%{_libexecdir}/news/filter/filter_innd.pl

mkdir -p %{buildroot}%{_bindir}
ln -sf %{_libexecdir}/news/inews %{buildroot}%{_bindir}/inews
ln -sf %{_libexecdir}/news/rnews %{buildroot}%{_bindir}/rnews

# Remove unwanted files
rm -rf %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_libdir}/*.a

# Documentation is installed via rpm %%doc directive
rm -rf %{buildroot}/usr/doc/

# Use tmpfiles.d to create /run/news
install -d %{buildroot}%{_tmpfilesdir}
cat <<EOF >%{buildroot}%{_tmpfilesdir}/inn.conf
D /run/news 0755 news news -
EOF
install -d -m 0755 %{buildroot}/run/news

install -d %{buildroot}%{_presetdir}
cat <<EOF >%{buildroot}%{_presetdir}/80-inn.preset
enable innd-expire.timer
enable innd-nntpsend.timer
enable innd-rnews.timer
EOF

install -dm755 %{buildroot}%{_sysconfdir}/rsyslog.d
install -pm644 %{S:30} %{buildroot}%{_sysconfdir}/rsyslog.d/inn.conf

%check
%if %{with tests}
LD_LIBRARY_PATH=%{buildroot}%{_libdir} make -C tests test

%global inn_units_with_restart innd.service innd-expire.timer innd-nntpsend.timer innd-rnews.timer
%global inn_units innd-expire.service innd-nntpsend.service innd-rnews.service
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2389 |21cr|innoextract-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           innoextract
Version:	1.9
Release:	1
License:        zlib
Summary:        A tool to unpack installers created by Inno Setup
Url:            http://constexpr.org/innoextract/
Group:          Archiving/Compression
Source:         http://constexpr.org/innoextract/files/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  boost-devel
BuildRequires:  pkgconfig(liblzma)

%description
Inno Setup is a tool to create installers for Microsoft Windows
applications. innoextract allows to extract such installers under
non-windows systems without running the actual installer using wine.

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

%files
%doc README.md CHANGELOG VERSION LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2390 |21cr|input-utils-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define cvsrev 20061008

Summary:	Linux input utilities
Name:		input-utils
Version:	1.3
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://linuxconsole.sourceforge.net/
# From cvs ruby/utils
Source0:	%{name}-%{cvsrev}.tar.bz2
Source1:	jscal.1
Source2:	jstest.1
Patch0:		joystick-1.2.15-dont-exit-when-wrong-version.patch
BuildRequires:	pkgconfig(sdl)
Provides:	joystick = %{EVRD}

%description
Userspace utilities for input devices:
- evtest: test event device
- ffcfstress: stress test constant force
- ffmvforce: test constant force with SDL window
- ffset: set force feedback options
- fftest: test force feedback
- inputattach: attach a serial line to an input device
- jscal: calibrate joystick
- jstest: test joystick device

%files
%{_bindir}/*
%{_mandir}/man1/jscal.1*
%{_mandir}/man1/jstest.1*

#----------------------------------------------------------------------------

%prep
%setup -q -n utils
%patch0 -p0 -b .version

cp %{SOURCE1} %{SOURCE2} .

%build
%make CFLAGS="%{optflags}"

%install
install -d -m755 %{buildroot}%{_bindir}
install -m755 evtest inputattach jstest jscal fftest ffmvforce ffset \
	ffcfstress %{buildroot}%{_bindir}

install -d -m755 %{buildroot}%{_mandir}/man1
install -m644 jscal.1 jstest.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2391 |21cr|instaloader-4.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: instaloader
Summary: Downloader from Instagram
Group: Networking/Other
License: MIT
Version:	4.9.5
Release:	1
Url: https://instaloader.github.io/
Source0: https://github.com/instaloader/instaloader/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1: no-git.patch
BuildRequires: python3
BuildRequires: python3-sphinx
BuildArch: noarch
Requires: python3

%description
Instaloader is an utility for downloading from instagram.com. Instaloader:
- downloads public and private profiles, hashtags, user stories, feeds and saved media,
- downloads comments, geotags and captions of each post,
- automatically detects profile name changes and renames the target directory accordingly,
- allows fine-grained customization of filters and where to store downloaded media,
- automatically resumes previously-interrupted download iterations.

%prep
%autosetup -p1
sed -i docs/conf.py -e 's,@VERSION@,%{version}-%{release},g' -e "s,@DATE@,$(date +"%d.%m.%Y"),g"

%build
%py3_build

( cd docs
  #make html
  make man
)

%install
%py3_install
mkdir -p %{buildroot}%{_mandir}/man1
install -m0644 docs/_build/man/instaloader.1 %{buildroot}%{_mandir}/man1/instaloader.1

%files
%license LICENSE
%doc README.rst
%{_bindir}/instaloader
%{_mandir}/man1/instaloader.1*
%{python3_sitelib}/instaloader-%{version}-py*.egg-info
%{python3_sitelib}/instaloader


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2392 |21cr|instead-1.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		instead
Version:	1.9.0
Release:	4
Summary:	Simply text adventures/visual novels engine and game
License:	GPLv2
Group:		Games/Adventure
URL:		http://instead.googlecode.com
Source0:	http://instead.googlecode.com/files/%{name}_%{version}.tar.gz
Patch0:		instead-desktop.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(zlib)
Requires:	instead-launcher

%description
Simply text adventures/visual novels engine and game.

It was designed to interpret games that are the mix of visual novels,
text quests and classical 90'ss quests.

%prep
%setup -q
%patch0 -p1

%build
%setup_compile_flags
echo 2 | ./configure.sh
%make PREFIX=/usr

%install
%makeinstall_std PREFIX=/usr

%files
%doc doc/*
%{_bindir}/*
%{_datadir}/%{name}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_mandir}/*/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2393 |21cr|instead-launcher-0.6.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		instead-launcher
Version:	0.6.1
Release:	5
Summary:	Games download helper for Instead
Group:		Games/Adventure
License:	GPLv2
URL:		http://instead.googlecode.com
Source0:	http://instead-launcher.googlecode.com/files/%{name}_%{version}.tar.gz
# Fix default interpretator path
Patch0:		instead-default-interpretator-path-fix.patch
Patch1:		instead-launcher-desktop.patch
BuildRequires:	qt4-devel
Requires:	instead

%description
This is a games download helper for Instead game engine.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%qmake_qt4 \
	PREFIX=/usr \
	QMAKE_CXXFLAGS_RELEASE= 
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2394 |21cr|intel-mediasdk-23.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major              1
%define mfxlibname         %mklibname mfx %{major}
%define mfxdevelname       %mklibname mfx -d

%define mfxtracerlibname   %mklibname mfxtracer %{major}
%define mfxtracerdevelname %mklibname mfxtracer -d

%define mfxhw64libname     %mklibname mfxhw64 %{major}
%define mfxhw64develname   %mklibname mfxhw64 -d

Summary:        Hardware-accelerated video processing on Intel integrated GPUs Library
Name:           intel-mediasdk
Version:        23.2.2
Release:        1
Group:          System/Kernel and hardware
License:        MIT
URL:            https://github.com/Intel-Media-SDK/MediaSDK
Source0:        https://github.com/Intel-Media-SDK/MediaSDK/archive/refs/tags/intel-mediasdk-%{version}.tar.gz
# from Fedora
Patch1:			intel-mediasdk-gcc13.patch
BuildRequires:  cmake
BuildRequires:  pkgconfig(gmock)
BuildRequires:  pkgconfig(igdgmm)
BuildRequires:  pkgconfig(libdrm_intel)
BuildRequires:  pkgconfig(pciaccess)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(ocl-icd)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(libva)
ExclusiveArch:	%{x86_64}

%description
Intel Media SDK provides a plain C API to access hardware-accelerated video
decode, encode and filtering on Intel Gen graphics hardware platforms.
Implementation written in C++ 11 with parts in C-for-Media (CM).

Supported video encoders: HEVC, AVC, MPEG-2, JPEG, VP9 Supported video decoders:
HEVC, AVC, VP8, VP9, MPEG-2, VC1, JPEG Supported video pre-processing filters:
Color Conversion, Deinterlace, Denoise, Resize, Rotate, Composition

%package -n     %{mfxlibname}
Summary:        Hardware-accelerated video processing on Intel integrated GPUs Library
Group:          System/Libraries
Provides:       %{name}  = %{EVRD}

%description -n %{mfxlibname}
This package contains the library needed to run programs dynamically
linked with mfx library.

%files -n %{mfxlibname}
%{_libdir}/libmfx.so.%{major}*

#------------------------------------------------------------------------------------------

%package -n     %{mfxdevelname}
Summary:        SDK for hardware-accelerated video processing on Intel integrated GPUs
Group:          Development/C++
Requires:       %{mfxlibname}  = %{EVRD}
Provides:       %{name}-devel  = %{EVRD}

%description -n %{mfxdevelname}
This package contains the headers that programmers will need to develop
applications which will use mfx library.

%files -n %{mfxdevelname}
%dir %{_includedir}/mfx
%{_includedir}/mfx/mfx*.h
%{_libdir}/libmfx.so
%{_libdir}/pkgconfig/libmfx.pc
%{_libdir}/pkgconfig/mfx.pc

#------------------------------------------------------------------------------------------

%package -n     %{mfxtracerlibname}
Summary:        Tracer for hardware-accelerated video processing on Intel integrated GPUs Library
Group:          System/Libraries
Provides:       %{name}  = %{EVRD}

%description -n %{mfxtracerlibname}
This package contains the tracer for the mfx.

%files -n %{mfxtracerlibname}
%{_bindir}/mfx-tracer-config
%{_libdir}/libmfx-tracer.so.%{major}*

#------------------------------------------------------------------------------------------

%package -n     %{mfxtracerdevelname}
Summary:        Tracer for hardware-accelerated video processing on Intel integrated GPUs
Group:          Development/C++
Requires:       %{mfxtracerlibname}  = %{EVRD}
Provides:       %{name}-devel  = %{EVRD}

%description -n %{mfxtracerdevelname}
This package contains the tracer that programmers will need to develop
applications which will use mfx library.

%files -n %{mfxtracerdevelname}
%{_libdir}/libmfx-tracer.so

#------------------------------------------------------------------------------------------

%package -n     %{mfxhw64libname}
Summary:        Hardware-accelerated video processing on Intel integrated GPUs Library
Group:          System/Libraries
Provides:       %{name}  = %{EVRD}

%description -n %{mfxhw64libname}
This package contains the library needed to run programs dynamically
linked with mfxhw64 library.

%files -n %{mfxhw64libname}
%ifarch %{x86_64}
%{_libdir}/libmfxhw64.so.%{major}*
%{_libdir}/mfx/libmfx_*_hw64.so
%endif
%ifarch %{ix86}
%{_libdir}/libmfxhw32.so.%{major}*
%{_libdir}/mfx/libmfx_*_hw32.so
%endif
%{_datadir}/mfx/plugins.cfg

#------------------------------------------------------------------------------------------

%package -n     %{mfxhw64develname}
Summary:        SDK for hardware-accelerated video processing on Intel integrated GPUs
Group:          Development/C++
Requires:       %{mfxhw64libname}  = %{EVRD}
Provides:       %{name}-devel  = %{EVRD}

%description -n %{mfxhw64develname}
This package contains the headers that programmers will need to develop
applications which will use mfxhw64 library.
 
%files -n %{mfxhw64develname}
%ifarch %{x86_64}
%{_libdir}/libmfxhw64.so
%{_libdir}/pkgconfig/libmfxhw64.pc
%endif
%ifarch %{ix86}
%{_libdir}/libmfxhw32.so
%{_libdir}/pkgconfig/libmfxhw32.pc
%endif

#------------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n MediaSDK-intel-mediasdk-%{version}

%build
%cmake \
    -DBUILD_DISPATCHER=ON \
    -DBUILD_SAMPLES=OFF \
    -DBUILD_TESTS=ON \
    -DBUILD_TOOLS=OFF \
    -DENABLE_OPENCL=ON \
    -DENABLE_WAYLAND=ON \
    -DENABLE_X11=ON \
    -DENABLE_X11_DRI3=ON \
    -DUSE_SYSTEM_GTEST=ON \
    -DCMAKE_BUILD_TYPE=Release

%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2395 |21cr|interchar-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		interchar
Version:	0.2
Release:	1
Summary:	Managing character class schemes in XETEX
Group:		Publishing
URL:		https://ctan.org/pkg/interchar
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/interchar.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/interchar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package manages character class schemes of XETEX. 
Using this package, you may switch among different character class schemes. 
Migration commands are provided for make packages 
using this mechanism compatible with each others.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/interchar
%doc %{_texmfdistdir}/doc/xelatex/interchar
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2396 |21cr|invada-studio-plugins-lv2-1.2.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	ladspadir %{_libdir}/ladspa

Summary:	Studio LV2 plugins with GUI
Name:		invada-studio-plugins-lv2
Version:	1.2.0
Release:	12
License:	GPLv2+
Group:		Sound
# URL dead
Url:		http://www.invadarecords.com/Downloads.php?ID=00000264
Source:		http://launchpad.net/invada-studio/lv2/1.2/+download/%{name}_%{version}-nopkg.tgz
Patch0:		invada-studio-1.2.0-update-turtle.patch
Patch1:		invada-studio-1.2.0-fix-wrong-graph-in-compressor-GUI.patch
BuildRequires:	lv2-devel
BuildRequires:	slv2-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)

%description
This package provides a kit of LV2 plugins for sound studio usage developed by
Invada Records under GPLv2 license. It contains delay, distortion, dynamics,
low- and high-pass filter, phaser, early-reflection reverb, input amp, meter
and test-tone plugins.

%files
%doc README COPYING
%{_libdir}/lv2/invada.lv2/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Replace /usr/local/lib/lv2 directory by appropriate lv2 directory
perl -pi -e 's/\/local\/lib/\/%{_lib}/g' Makefile


%build
%setup_compile_flags
%make


%install
%make install-sys DESTDIR=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2397 |21cr|inventory-0.65-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple GTK2 inventory program using MySQL
Name:		inventory
Version:	0.65
Release:	16
License:	GPL
Group:		Databases
Url:		http://qballsinventory.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Source1: 	%{name}48.png
Source2: 	%{name}32.png
Source3: 	%{name}16.png
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	mysql-devel

%description
Inventory is a gtk+-2 inventory program that uses a mysql database as backend.
Inventory can't do anything fancy, complicated or complex (like linked tables),
instead it tries to be flexible, multi-purpose and fast while remaining easy to
use.  Features include:

    * Mysql Backend.
    * User defined amount of columns in a table.
    * Every column can be either a string, integer or boolean.
    * Everything can be changed at any time. f.e. amount off column, column
      name, column type, category name, etc
    * Direct editing off data in the table, or in a pop-up window.
    * Export to html or comma seperated file.
    * Import from comma seperated file with preview.
    * User feedback, the program tries to give as much feedback as needed.
    * Responsive, changes are directly applyed in the gui, and synced with
      mysql.
    * When an error has occured, it gives the user the oppertunity to correct
      it.
    * Lots More

%files
%doc README
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
%configure
%make

%install
%makeinstall

#menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=%{name}
Name=Inventory
Comment=Simple Inventory Program
Categories=Database;Office;
EOF

#icons
mkdir -p %{buildroot}%{_liconsdir}
cat %{SOURCE1} > %{buildroot}%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}
cat %{SOURCE2} > %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_miconsdir}
cat %{SOURCE3} > %{buildroot}%{_miconsdir}/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2398 |21cr|invertapple-1.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Puzzle game about inverting apple colors
Name:		invertapple
Version:	1.1.1
Release:	3
Group:		Games/Puzzles
License:	GPLv3+
Url:		https://dansoft.krasnokamensk.ru/more.html?id=1015
Source0:	https://bitbucket.org/admsasha/invertapple/downloads/%{name}-%{version}.tar.gz
BuildRequires:  qt5-linguist-tools
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)

%description
Puzzle game in which you need to turn all red apples on the playing
field to green.

%files
%doc README* CONTRIBUTORS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%qmake_qt5
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2399 |21cr|inxi-3.3.21.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oversion 3.3.21-1

Summary:	Command line system information script for console and IRC
Name:		inxi
Version:	3.3.21.1
Release:	1
License:	GPLv3+
Group:		System/Configuration/Other
Url:		http://smxi.org/docs/inxi.htm
Source0:	https://github.com/smxi/inxi/archive/%{oversion}.tar.gz?/%{name}-%{oversion}.tar.gz

BuildRequires:	gzip
Requires:	glxinfo
Recommends:	coreutils
Recommends:	gawk
Recommends:	ipmitool
Recommends:	freeipmi-fish
Recommends:	lm_sensors
Recommends:	hddtemp
Recommends:	pciutils
Recommends:	procps
Recommends:	sed
Recommends:	tree
Recommends:	usbutils
Recommends:	xprop
Recommends:	xrandr
Recommends:	wmctrl
Recommends:	perl(Cpanel::JSON::XS)
Recommends:	perl(JSON::XS)
Recommends:	perl(XML::Dumper)
BuildArch:	noarch
	
%description
This is a command line system information script built for console and IRC. It
is also used for forum technical support, as a debugging tool, to quickly
ascertain user system configuration and hardware. It shows system hardware,
CPU, drivers, Xorg, Desktop, kernel, GCC version, processes, RAM usage and a
wide variety of other useful information.

%files
%doc %{name}.changelog README.* LICENSE.*
%{_bindir}/%{name}
%{_mandir}/man?/%{name}*

#-----------------------------------------------------------------------------

%package 	konversation
Summary:	Plugin for konversation
Group:		System/Configuration/Other
# Konversation switched to kf5.
BuildRequires:	kde5-macros
Requires:	konversation >= 1.7.4
Requires:	%{name} = %{EVRD}

%description 	konversation
Plugin to allow %{name} to be easily used in konversation.


%files konversation
%doc %{name}.changelog
%{_kde5_datadir}/konversation/scripts/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oversion}
chmod -x %{name}.changelog


%build
# Nothing here


%install
# Install binary script
install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}

# Install man page
install -m644 %{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1

# Install konversation-plugin
mkdir -p %{buildroot}%{_kde5_datadir}/konversation/scripts
pushd %{buildroot}%{_kde5_datadir}/konversation/scripts
	ln -s %{_bindir}/%{name} %{name}
popd

%post
# Since readme.urpmi won't work in dnf
# and I don't know how to merge this in dnf
# her is a crappy workaround.Symbianflo.
echo "
#############################
# run "inxi --recommends"    #
# to obtain a full featured #
# inxi                      #
#############################
"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2400 |21cr|iodine-0.7.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           iodine
Version:        0.7.0
Release:        3
Summary:        Tunnel IP over DNS NULL request
Group:          Networking/Other
License:        BSD
URL:            http://code.kryo.se/iodine/
Source0:        http://code.kryo.se/iodine/%{name}-%{version}.tar.gz
Source1:        iodine.service
Source2:        iodine.conf
Source3:        iodined.service
Source4:        iodined.conf
BuildRequires: zlib-devel

%description
odine lets you tunnel IPv4 data through a DNS server. This can be usable in 
different situations where internet access is firewalled, but DNS queries 
are allowed.

The bandwidth is asymmetrical with limited upstream and up to 1 Mbit/s 
downstream.

Compared to other DNS tunnel implementations, iodine offers:

 * Higher performance
    iodine uses the NULL type that allows the downstream data to be sent 
    without encoding. Each DNS reply can contain over a kilobyte of compressed 
    payload data.
 * Portability
    iodine runs on many different UNIX-like systems as well as on Win32. 
    Tunnels can be set up between two hosts no matter their endianness or 
    operating system.
 * Security
    iodine uses challenge-response login secured by MD5 hash. It also 
    filters out any packets not coming from the IP used when logging in.
 * Less setup
    iodine handles setting IP number on interfaces automatically, and up 
    to 16 users can share one server at the same time. Packet size is 
    automatically probed for maximum downstream throughput. 


%package	client
Summary:	Iodine client (Tunnel IP over DNS)
Group:		Networking/Other
Requires:   %{name}-common

%description	client
iodine lets you tunnel IPv4 data through a DNS server. This can be usable in 
different situations where internet access is firewalled, but DNS queries 
are allowed. 

This package contains the client part.

%package	server
Summary:	Iodine server (Tunnel IP over DNS)
Group:		Networking/Other
Requires:   %{name}-common

%description	server
iodine lets you tunnel IPv4 data through a DNS server. This can be usable in 
different situations where internet access is firewalled, but DNS queries 
are allowed. 


This package contains the server part.

%package	common
Summary:	Iodine common part (Tunnel IP over DNS)
Group:		Networking/Other

%description    common
iodine lets you tunnel IPv4 data through a DNS server. This can be usable in 
different situations where internet access is firewalled, but DNS queries 
are allowed. 


This package contains some script shared between server and client.


%prep
%setup -qn %{name}-%{version}

%build
%make prefix=%{_prefix}

%install
%makeinstall
mkdir -p %{buildroot}/%{_unitdir}/service
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig/
install -m 0755 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service
install -m 0755 %{SOURCE2} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
install -m 0755 %{SOURCE3} %{buildroot}/%{_unitdir}/%{name}d.service
install -m 0755 %{SOURCE4} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}d

# this is a hack so we can bypass ifplugd that try to run dhcp on the 
# newly created interface
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts
echo -e '#!/bin/bash\nexit 0\n' > %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifup-dns

%pre server
%_pre_useradd %{name}d /var/empty /sbin/nologin

%post server
%systemd_post %{name}d.service

%preun server
%systemd_preun %{name}d.service

%postun server
%_postun_userdel %{name}d
%systemd_postun_with_restart %{name}d.service


%pre client
%_pre_useradd %{name} /var/empty /sbin/nologin

%post client
%systemd_post %{name}.service

%preun client
%systemd_preun %{name}.service

%postun client
%_postun_userdel %{name}
%systemd_postun_with_restart %{name}.service

%files common
%config(noreplace) %attr(0755,root,root) %{_sysconfdir}/sysconfig/network-scripts/ifup-dns

%files server
%doc README 
%{_sbindir}/%{name}d
%{_unitdir}/%{name}d.service
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}d

%files client
%doc README 
%{_sbindir}/%{name}
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_mandir}/man8/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2401 |21cr|iogen-3.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define subversion p0

Summary:	A stress tool to produce heavily fragmented I/O operations
Name:		iogen
Version:	3.1
Release:	9
License:	BSD
Group:		System/Kernel and hardware
Url:		http://www.peereboom.us/iogen/
Source0:	%{name}_%{version}%{subversion}.tar.bz2
Patch0:		iogen_3.1p0-optflags.patch
Patch1:		iogen_3.1p0-sfmt.patch
BuildRequires:	groff-for-man

%description
Iogen is an I/O generator.

It forks child processes that each run a mix of reads and writes.
The idea is to generate heavily fragmented files to make the hardware suffer
as much as possible. This tool has been used to test filesystems, drivers,
firmware, and hardware devices.

It is by no means meant as a performance measuring tool since it tries to 
recreate the worst case scenario I/O.

%files
%{_bindir}/iogen
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}_%{version}%{subversion}
%patch0 -p1
%patch1 -p1

%build
%setup_compile_flags
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man8
install -m 755 iogen %{buildroot}%{_bindir}/iogen
install -m 644 iogen.cat8 %{buildroot}%{_mandir}/man8/iogen.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2402 |21cr|io_lib-1.13.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname staden-read %{major}
%define devname %mklibname %{name} -d

Summary:	General purpose trace file library
Name:		io_lib
Version:	1.13.7
Release:	7
License:	GPLv2+
Group:		Development/C
Url:		http://staden.sourceforge.net/
Source0:	http://sourceforge.net/projects/staden/files/io_lib/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(zlib)

%description
Io_lib is a library of file reading and writing code to provide a general
purpose trace file (and Experiment File) reading interface. The programmer
simply calls the (eg) read_reading to create a "Read" C structure with the
data loaded into memory.

%files
%doc CHANGES COPYRIGHT README
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}io_lib1 < 1.13.7-5
Obsoletes:	%{_lib}io_lib1 < 1.13.7-5

%description -n %{libname}
This package contains the library needed to run %{name}.

%files -n %{libname}
%{_libdir}/libstaden-read.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries, include files and other resources you can use to develop
%{name} applications.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libstaden-read.so
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2403 |21cr|ioquake3-1.36.20220321-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 6d74896557d8c193a9f19bc6845a47e9d0f77db2
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global commit_date 20220321
%global gitrel .%{commit_date}.git%{shortcommit}

# Increase when packaging a newer snapshot
%define mainrel	12
%define date	20211211
# Increase when rebuilding the same snapshot
%define snaprel 2

Summary:	Quake 3 Arena engine (ioquake3 version)
Name:		ioquake3
Version:	1.36.%{commit_date}
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		https://github.com/ioquake/ioq3
Source0:	https://github.com/ioquake/ioq3/archive/%{commit}/%{name}-%{commit}.tar.gz
# Snapshot from git repository: https://github.com/ioquake/ioq3
# - Strip thirdparty code:
# rm -rf code/{AL,jpeg-8c,libcurl-*,libogg-*,libspeex,libvorbis-*,opus-*,opusfile-*,SDL2,zlib}
# - Strip nonfree code (lcc) and binaries:
# rm -rf code/libs code/tools/lcc
Source1:	ioquake3-demo.sh
Source2:	ioquake3.autodlrc
Source4:	ioquake3.png
Source5:	ioquake3-update.sh
Source6:	ioquake3-update.autodlrc
%ifarch %{ix86} x86_64
BuildRequires:	nasm
%endif
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)

# for quake3-update
Requires:	autodownloader

%description
This package contains the enhanced opensource ioquake3 version of the Quake 3
Arena engine. This engine can be used to play a number of games based on this
engine, below is an (incomplete list):

* OpenArena, Free, Open Source Quake3 like game, recommended!
(packagename: openarena)

* Urban Terror, gratis, but not Open Source FPS best be described as a
Hollywood tactical shooter, a downloader and installer including an
application menu entry is available in the urbanterror package.

* World of Padman, gratis, but not Open Source Comic FPS, a downloader and
installer including an application menu entry is available in the
worldofpadman package.

* Smokin' Guns, gratis, but not Open Source FPS, a semi-realistic simulation of
the "Old West's" great atmosphere, a downloader and installer including an
application menu entry is available in the smokinguns package.

* Quake3 Arena, the original! A downloader and installer for the gratis, but
not Open Source demo, including an application menu entry is available in
the quake3-demo package.

If you own a copy of quake 3, you will need to copy pak0.pk3 from the
original CD-ROM and your q3key to /usr/share/quake3/baseq3 or ~/.q3a/baseq3.
Also copy the pak?.pk3 files from the original 1.32 Quake 3 Arena point
release there if you have them available or run quake3-update to download
them for you.

%files
%doc md4-readme.txt opengl2-readme.md README.md voip-readme.txt
%doc COPYING.txt id-readme.txt
%{_bindir}/ioq3ded
%{_bindir}/%{name}
%{_bindir}/%{name}-update
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/%{name}-update.autodlrc
%{_iconsdir}/hicolor/32x32/apps/quake3.png
%{_iconsdir}/hicolor/scalable/apps/quake3.svg
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/baseq3/
%{_libexecdir}/%{name}/missionpack/
%{_libexecdir}/%{name}/renderer_opengl*.so

#----------------------------------------------------------------------------

%package demo
Summary:	Quake 3 Arena tournament 3D shooter game demo installer
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
Requires:	opengl-games-utils
BuildArch:	noarch

%description demo
Quake 3 Arena tournament 3D shooter game demo installer. The Quake3 engine is
Open Source and as such is available as part of Mageia. The original Quake3
data files however are not Open Source and thus are not available as part of
Mageia. There is a gratis, but not Open Source demo available on the internet.

This package installs an application menu entry for playing the Quake3 Arena
demo. The first time you click this menu entry, it will offer to download and
install the Quake 3 demo datafiles for you.

%files demo
%{_bindir}/%{name}-demo
%{_datadir}/%{name}/%{name}.autodlrc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n ioq3-%{commit}

%build
%make \
	BUILD_CLIENT_SMP=1	\
	BUILD_GAME_QVM=0	\
	BUILD_GAME_SO=1		\
	DEFAULT_BASEDIR=%{_libexecdir}/%{name}	\
	GENERATE_DEPENDENCIES=0	\
	OPTIMIZE="%{optflags}"	\
	USE_CODEC_OPUS=1	\
	USE_CODEC_VORBIS=1	\
	USE_CURL=1		\
	USE_CURL_DLOPEN=0	\
	USE_INTERNAL_LIBS=0	\
	USE_LOCAL_HEADERS=0	\
	USE_OPENAL=1		\
	USE_OPENAL_DLOPEN=0	\
	VERSION="\\\"%{version} (git %{date}) [%{_vendor} %{release}]\\\""

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_libexecdir}/%{name}/{baseq3,missionpack}

# ioquake3 binaries
pushd build/release-linux-*
install -m 755 %{name}.* %{buildroot}%{_bindir}/%{name}
install -m 755 ioq3ded.* %{buildroot}%{_bindir}/ioq3ded

install -m 755 renderer_opengl*.so %{buildroot}%{_libexecdir}/%{name}/
install -m 755 baseq3/*.so %{buildroot}%{_libexecdir}/%{name}/baseq3/
install -m 755 missionpack/*.so %{buildroot}%{_libexecdir}/%{name}/missionpack/
popd

# script to download the demo
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/ioquake3-demo
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/

# script to install the latest patch
install -m 755 %{SOURCE5} %{buildroot}%{_bindir}/ioquake3-update
install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/%{name}/

# desktop file and icons
install -D -m 644 misc/setup/%{name}.desktop \
	%{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m 644 misc/quake3.svg \
	%{buildroot}%{_iconsdir}/hicolor/scalable/apps/quake3.svg
install -D -m 644 misc/quake3.png \
	%{buildroot}%{_iconsdir}/hicolor/32x32/apps/quake3.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2404 |21cr|iotop-0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Display I/O usage of processes in a top like UI
Name:		iotop
Version:	0.6
Release:	5
License:	GPLv2+
Group:		Monitoring
Url:		http://guichaz.free.fr/iotop/
Source0:	http://guichaz.free.fr/iotop/files/%{name}-%{version}.tar.bz2
# Patches from Fedora
# rhbz#1035503
Patch0:		iotop-0.6-noendcurses.patch
Patch1:		iotop-0.6-python3.patch
# Fix build error with Python 3 caused by itervalues() in setup.py
# http://repo.or.cz/iotop.git/commit/99c8d7cedce81f17b851954d94bfa73787300599
Patch2:		iotop-python3build.patch
# sent upstream, iotop <= 0.6, rhbz#1285088
Patch3:		iotop-0.3.2-batchprintutf8.patch
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
iotop is a Python program with a top like UI used to show of behalf of
which process is the I/O going on. It requires a Linux kernel 2.6.20+
with TASK_IO_ACCOUNTING enabled.

%files
%license COPYING
%doc NEWS THANKS README ChangeLog
%{_bindir}/%{name}
%{_mandir}/man8/iotop.8*
%{python3_sitelib}/iotop
%{python3_sitelib}/iotop*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install
# Let's move executable from sbin to bin
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/iotop %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2405 |21cr|iouyap-0.97-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _libexecdir /usr/libexec

Summary:	Bridge IOU to TAP, UDP and Ethernet
Name:		iouyap
Version:	0.97
Release:	3
License:	GPL
Group:		Emulators
Url:		https://github.com/GNS3/iouyap
Source0:	https://github.com/GNS3/iouyap/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		%{name}-0.97_buff_overflow.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gcc
BuildRequires:	glibc-devel
BuildRequires:	iniparser-devel
Requires(pre):	shadow-utils

%description
Bridge IOU to TAP, UDP and Ethernet, mainly used by gns3server

In order to use iouyap as non-root user, the user needs to be member
of the iouyap group!

%prep
%setup -q
%patch0 -p1

%build
bison --yacc -dv netmap_parse.y
flex netmap_scan.l
gcc -I -Wall -fPIE %{optflags} *.c -o %{name} -liniparser -lpthread -pie

%install
mkdir -p %{buildroot}/%{_libexecdir}
mkdir -p %{buildroot}/%{_bindir}
mv %{name} %{buildroot}/%{_libexecdir}
ln -sf %{_libexecdir}/%{name} %{buildroot}/%{_bindir}/%{name}

%pre
%{_sbindir}/groupadd -r iouyap 2> /dev/null || :

%files
%doc LICENSE
%attr(0750,root,iouyap) %{_libexecdir}/%{name}
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2406 |21cr|iozone3-465-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Filesystem characterization & benchmark tool
Name:		iozone3
Version:	465
Release:	3
License:	Public Domain
Group:		Monitoring
URL:		http://www.iozone.org/
Source0:	http://www.iozone.org/src/current/%{name}_%{version}.tar
Obsoletes:	iozone < %{version}
Provides:	iozone

%description
This program allows one to characterize the filesystem performance
of vendors platform. It supports single stream, throughput, 
pthreads, async I/O and much more.

%prep
%setup -qn %{name}_%{version}

%build
cd src/current
%make linux CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
cd $RPM_BUILD_DIR/%{name}_%{version}/src/current/
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 iozone %{buildroot}%{_bindir}
install -m 755 gnu3d.dem %{buildroot}%{_bindir}
install -m 755 gengnuplot.sh %{buildroot}%{_bindir}
install -m 755 fileop %{buildroot}%{_bindir}
install -m 755 Generate_Graphs %{buildroot}%{_bindir}

cd $RPM_BUILD_DIR/%{name}_%{version}/docs
install -m 755 -d %{buildroot}%{_mandir}/man1
install -m 644 iozone.1 %{buildroot}%{_mandir}/man1

%clean

%files
%defattr (-,root,root)
%doc docs/*.gz src/current/Gnuplot.txt docs/*.pdf docs/*.doc
%defattr (-,root,root)
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2407 |21cr|ip2location-4.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname %mklibname ip2location %{major}
%define develname %mklibname ip2location -d

Summary:	IP2Location C Library
Name:		ip2location
Version:	4.0.2
Release:	4
Group:		System/Libraries
License:	GPLv2
URL:		http://www.ip2location.com/
Source0:	http://www.ip2location.com/download/C-IP2Location-%{version}.tar.gz
Patch0:		C-IP2Location-4.0.2-soname.diff

%description
IP2Location is a C library that enables the user to find the country, region,
city, coordinates, zip code, time zone, ISP, domain name, connection type,
area code and weather that any IP address or hostname originates from. It has
been optimized for speed and memory utilization. Developers can use the API to
query all IP2Location™ binary databases for applications written in C or
supporting static/dynamic library.

%package -n	%{libname}
Summary:	IP2Location C Library
Group:          System/Libraries

%description -n	%{libname}
IP2Location is a C library that enables the user to find the country, region,
city, coordinates, zip code, time zone, ISP, domain name, connection type,
area code and weather that any IP address or hostname originates from. It has
been optimized for speed and memory utilization. Developers can use the API to
query all IP2Location™ binary databases for applications written in C or
supporting static/dynamic library.

%package -n	%{develname}
Summary:	Static library and header files for the ip2location library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
IP2Location is a C library that enables the user to find the country, region,
city, coordinates, zip code, time zone, ISP, domain name, connection type,
area code and weather that any IP address or hostname originates from. It has
been optimized for speed and memory utilization. Developers can use the API to
query all IP2Location™ binary databases for applications written in C or
supporting static/dynamic library.

This package contains the development files for the ip2location library.

%prep

%setup -q -n C-IP2Location-%{version}
%patch0 -p0 -b .soname

chmod 644 AUTHORS ChangeLog IP2LOCATION_PRODUCTS_CATALOG.PDF LICENSE.TXT README

%build
autoreconf -fi

%configure
%make

%check
make check

%install
rm -rf %{buildroot}

%makeinstall_std

# cleanup
rm -f %{buildroot}%{_libdir}/*.*a

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig

%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS ChangeLog IP2LOCATION_PRODUCTS_CATALOG.PDF LICENSE.TXT README
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2408 |21cr|ipa-4.8.9-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#--------------------------------------------------------
# Distro-specific default value is defined in branding-configs package
#%%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

#temporary disable selinux for test builds
%bcond_with selinux
%if %{with selinux}
%define selinuxtype targeted
%define modulename ipa
%endif
#--------------------------------------------------------

# conflicts with pki-base
%define __requires_exclude python3egg\\(dogtag-pki\\)

%define _sclientbindir %{_libdir}/ipa-sclient

#--------------------------------------------------------
#no longer supports i686 platform, build only client
%ifarch %{ix86}
%bcond_with server
%else
%bcond_without server
%endif

%if %{with server}
	%define enable_server_option --enable-server
%else
	%define enable_server_option --disable-server
%endif

#---------------------------------------------------------

Summary:	The Identity, Policy and Audit system
Name:		ipa
Version:	4.8.9
Release:	8
Group:		System/Base
License:	GPLv3+
Url:		http://www.freeipa.org/
Source0:	https://releases.pagure.org/freeipa/freeipa-%{version}.tar.gz
Source1:	kdcproxy.sysusers.conf
Source2:	ipaapi.sysusers.conf

Patch0100:	ipa-sslserver-token.patch
Patch0102:	allow-client-force-reinstall.patch
#for use old pki-10.8 revert this patch https://pagure.io/freeipa/c/9ded9e2573a00c388533f2a09365c499a4e2961e
Patch0103:	ipa-4.8.9-pki10_8.patch

# RHEL
Patch1002:	1002-4.8.0-Remove-csrgen.patch

# ROSA patches
Patch2001:	0001-Custom-autofs-dir-on-ROSA.patch
Patch2002:	0001-Initial-ROSA-platform-support.patch

BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(xmlrpc)
BuildRequires:	pkgconfig(popt)
BuildRequires:	libtool
BuildRequires:	gettext
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	systemd
BuildRequires:	pkgconfig(libsystemd)
# systemd-tmpfiles which is executed from make install requires apache user
BuildRequires:	apache-base
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(ini_config)
#cyrus-sasl-devel
BuildRequires:	pkgconfig(libsasl2)
# RHEL spec file only: START
BuildRequires:	diffstat
# RHEL spec file only: END
%if %{with server}
BuildRequires:	java-1.8.0-openjdk-devel

# 1.3.3.9: DS_Sleep (https://fedorahosted.org/389/ticket/48005)
# 389-ds-base-devel 1.4.1.1 conflicts with svrcore-devel
BuildRequires:	pkgconfig(dirsrv)
#BuildRequires:	svrcore-devel
BuildRequires:	samba-devel >= 4.7.0
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(tevent)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(sss_idmap)
BuildRequires:	pkgconfig(sss_certmap)
# 1.15.3: sss_nss_getlistbycert (https://pagure.io/SSSD/sssd/issue/3050)
# 1.16.0-3: sss_nss_getpwnam_timeout (https://pagure.io/SSSD/sssd/issue/2478)
# provided in both RHEL 7.5 and Fedora 27+ as of 1.16.0-3
BuildRequires:	pkgconfig(sss_nss_idmap)
BuildRequires:	nodejs
BuildRequires:	rhino
BuildRequires:	jsl
BuildRequires:	pkgconfig(libverto)
BuildRequires:	libunistring-devel
BuildRequires:	python3egg(lesscpy)
BuildRequires:	python3egg(pylint)
BuildRequires:	python3egg(rjsmin)
%endif
# without server

#
# Build dependencies for makeapi/makeaci
# makeapi/makeaci is using Python 3
#
BuildRequires:	python3egg(python-ldap)
BuildRequires:	python3egg(python-nss)
BuildRequires:	python3egg(netaddr)
BuildRequires:	python3egg(pyasn1)
BuildRequires:	python3egg(pyasn1-modules)
BuildRequires:	python3egg(dnspython)
BuildRequires:	python3egg(six)
# python-libsss_nss_idmap
BuildRequires:	python3egg(sssdconfig)
BuildRequires:	python3egg(cffi)

#
# Build dependencies for unit tests
#
%if %{with server}
BuildRequires:	pkgconfig(cmocka)
# Required by ipa_kdb_tests
#{_libdir}/krb5/plugins/kdb/db2.so
BuildRequires:	krb5
%endif 
# with server

#
# Build dependencies for SELinux policy
# 3.14.6-9 includes fix for https://github.com/fedora-selinux/selinux-policy/pull/333
%if %{with selinux}
BuildRequires:  selinux-policy-devel >= 3.14.6-9
%endif

%description
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).

#----------------------------------------------------------------------------

%if %{with server}

%package server
Summary:	The IPA authentication server
Group:		System/Base
Requires:	%{name}-sclient = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3-ipaserver = %{EVRD}
Requires:	python3egg(python-ldap)
#1.3.7.9-1: https://bugzilla.redhat.com/show_bug.cgi?id=1459946
#	https://bugzilla.redhat.com/show_bug.cgi?id=1511462
#	https://bugzilla.redhat.com/show_bug.cgi?id=1514033
Requires:	389-ds-base
Requires:	389-ds-base-legacy-tools
Requires:	openldap-clients
Requires:	%{_lib}nspr4
Requires:	%{_lib}nss3
Requires(post): krb5-server
Requires:	krb5-pkinit-openssl
# cyrus-sasl-gssapi
Requires:	sasl-plug-gssapi
Requires:	apache-base
Requires:	python3egg(gssapi)
Requires:	python3-systemd
Requires:	apache-mod_proxy
Requires:	apache-mod_wsgi
Requires:	apache-mod_auth_gssapi
Requires:	apache-mod_authn_core
Requires:	apache-mod_access_compat
Requires:	apache-mod_proxy_ajp
Requires:	apache-mod_slotmem_shm
Requires:	apache-mod_userdir
Requires:	apache-mod_dav
# 1.0.14-7: https://pagure.io/mod_nss/issue/45
Requires:	apache-mod_ssl
Requires:	apache-mod_session
# 0.9.9: https://github.com/adelton/mod_lookup_identity/pull/3
Requires:	apache-mod_lookup_identity
Requires:	apache-mod_session_cookie

Requires:	acl
Requires:	systemd-units
Requires(pre):	shadow-utils
Requires(pre):	systemd-units
Requires(pre):	user(apache)
Requires(pre):	%{name}-server-common = %{EVRD}
Requires(post):	systemd-units
###Requires:	selinux-policy >= 3.13.1-224 rhel
###Requires(post):	selinux-policy-base >= 3.13.1-224 rhel
Requires:	slapi-nis
# Required because of: https://bugzilla.redhat.com/show_bug.cgi?id=1475238
# related pki-core update: https://bugzilla.redhat.com/show_bug.cgi?id=1305993
Requires:	pki-ca
Requires:	pki-kra
Requires(preun): python3
Requires(preun): systemd-units
Requires(postun): python3
Requires(postun): systemd-units
Requires:	policycoreutils
Requires:	tar
Requires(pre):	certmonger
# 1.3.7.9-1: https://bugzilla.redhat.com/show_bug.cgi?id=1459946
#	https://bugzilla.redhat.com/show_bug.cgi?id=1511462
#	https://bugzilla.redhat.com/show_bug.cgi?id=1514033
Requires(pre):	389-ds-base
Requires:	fonts-ttf-fontawesome < 5.0
Requires:	bind-dyndb-ldap
Requires:	ipa-server-dns
# open-sans-fonts
Requires:	fonts-ttf-opensans
Requires:	openssl
Requires:	softhsm
Requires:	p11-kit
Requires:	gzip
Requires:	oddjob
# 0.7.0-2: https://pagure.io/gssproxy/pull-request/172
Requires:	gssproxy
# 1.15.2: FindByNameAndCertificate (https://pagure.io/SSSD/sssd/issue/3050)
#sssd-dbus with libexec
Requires:	sssd

# Requires from CentOS
Requires:	bind-pkcs11
Requires:	bind-pkcs11-utils
Requires:	cal10n
# version 4.8 not use ntpd, use chrony
Requires:	chrony
## javamail
Requires:	classpathx-mail
Requires:	dom4j
Requires:	geronimo-jms
Requires:	geronimo-jta
Requires:	glassfish-jaxb 
Requires:	httpcomponents-client
Requires:	httpcomponents-core
Requires:	jackson
#Requires:	jboss-annotations-1.2-api
Requires:	joda-convert
Requires:	joda-time
Requires:	jsr-311
Requires:	objectweb-asm
Requires:	opendnssec
Requires:	perl-DB_File
Requires:	perl-Package-Constants
Requires:	scannotation

# Requires from path
Requires:	apache-commons-daemon
#Requires:	jboss-web
#Requires:	jboss-jaxrs-2.0-api
Requires:	pki-symkey

Provides:	freeipa-server = %{EVRD}

%description server
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are installing an IPA server, you need to install this package.

%files server
%doc COPYING README.md Contributors.txt
%{_sbindir}/ipa-backup
%{_sbindir}/ipa-restore
%{_sbindir}/ipa-ca-install
%{_sbindir}/ipa-kra-install
%{_sbindir}/ipa-server-install
%{_sbindir}/ipa-replica-conncheck
%{_sbindir}/ipa-replica-install
%{_sbindir}/ipa-replica-manage
%{_sbindir}/ipa-csreplica-manage
%{_sbindir}/ipa-server-certinstall
%{_sbindir}/ipa-server-upgrade
%{_sbindir}/ipa-ldap-updater
%{_sbindir}/ipa-otptoken-import
%{_sbindir}/ipa-compat-manage
%{_sbindir}/ipa-nis-manage
%{_sbindir}/ipa-managed-entries
%{_sbindir}/ipactl
%{_sbindir}/ipa-advise
%{_sbindir}/ipa-cacert-manage
%{_sbindir}/ipa-winsync-migrate
%{_sbindir}/ipa-pkinit-manage
%{_sbindir}/ipa-crlgen-manage
%{_sbindir}/ipa-cert-fix
%{_libexecdir}/certmonger/dogtag-ipa-ca-renew-agent-submit
%{_libexecdir}/certmonger/ipa-server-guard
%dir %{_libexecdir}/ipa
%{_libexecdir}/ipa/ipa-custodia
%{_libexecdir}/ipa/ipa-custodia-check
%{_libexecdir}/ipa/ipa-httpd-kdcproxy
%{_libexecdir}/ipa/ipa-httpd-pwdreader
%{_libexecdir}/ipa/ipa-pki-retrieve-key
%{_libexecdir}/ipa/ipa-pki-wait-running
%{_libexecdir}/ipa/ipa-otpd
%{_libexecdir}/ipa/ipa-print-pac
%dir %{_libexecdir}/ipa/custodia
%attr(0755,root,root) %{_libexecdir}/ipa/custodia/ipa-custodia-dmldap
%attr(0755,root,root) %{_libexecdir}/ipa/custodia/ipa-custodia-pki-tomcat
%attr(0755,root,root) %{_libexecdir}/ipa/custodia/ipa-custodia-pki-tomcat-wrapped
%attr(0755,root,root) %{_libexecdir}/ipa/custodia/ipa-custodia-ra-agent
%dir %{_libexecdir}/ipa/oddjob
%attr(0755,root,root) %{_libexecdir}/ipa/oddjob/org.freeipa.server.conncheck
%attr(0755,root,root) %{_libexecdir}/ipa/oddjob/org.freeipa.server.trust-enable-agent
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freeipa.server.conf
%config(noreplace) %{_sysconfdir}/oddjobd.conf.d/ipa-server.conf
%dir %{_libexecdir}/ipa/certmonger
%attr(755,root,root) %{_libexecdir}/ipa/certmonger/*

# NOTE: systemd specific section
%attr(644,root,root) %{_unitdir}/ipa.service
%attr(644,root,root) %{_unitdir}/ipa-otpd.socket
%attr(644,root,root) %{_unitdir}/ipa-otpd@.service
# END
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_pwd_extop.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_enrollment_extop.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_winsync.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_repl_version.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_uuid.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_modrdn.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_lockout.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_cldap.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_dns.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_range_check.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_otp_counter.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_otp_lasttoken.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libtopology.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_sidgen.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_sidgen_task.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_extdom_extop.so
%attr(755,root,root) %{_libdir}/krb5/plugins/kdb/ipadb.so
%{_sysusersdir}/kdcproxy.conf
%{_sysusersdir}/ipaapi.conf
%{_mandir}/man1/ipa-replica-conncheck.1*
%{_mandir}/man1/ipa-replica-install.1*
%{_mandir}/man1/ipa-replica-manage.1*
%{_mandir}/man1/ipa-csreplica-manage.1*
%{_mandir}/man1/ipa-server-certinstall.1*
%{_mandir}/man1/ipa-server-install.1*
%{_mandir}/man1/ipa-server-upgrade.1*
%{_mandir}/man1/ipa-ca-install.1*
%{_mandir}/man1/ipa-kra-install.1*
%{_mandir}/man1/ipa-compat-manage.1*
%{_mandir}/man1/ipa-nis-manage.1*
%{_mandir}/man1/ipa-managed-entries.1*
%{_mandir}/man1/ipa-ldap-updater.1*
%{_mandir}/man8/ipactl.8*
%{_mandir}/man1/ipa-backup.1*
%{_mandir}/man1/ipa-restore.1*
%{_mandir}/man1/ipa-advise.1*
%{_mandir}/man1/ipa-otptoken-import.1*
%{_mandir}/man1/ipa-cacert-manage.1*
%{_mandir}/man1/ipa-winsync-migrate.1*
%{_mandir}/man1/ipa-pkinit-manage.1*
%{_mandir}/man1/ipa-cert-fix.1*
%{_mandir}/man1/ipa-crlgen-manage.1*

%pre server
# Stop ipa_kpasswd if it exists before upgrading so we don't have a
# zombie process when we're done.
if [ -e /usr/sbin/ipa_kpasswd ]; then
# NOTE: systemd specific section
	/bin/systemctl stop ipa_kpasswd.service >/dev/null 2>&1 || :
# END
fi

# create users and groups
%sysusers_create_package kdcproxy %{SOURCE1}
%sysusers_create_package ipaapi %{SOURCE2}


%post server
# NOTE: systemd specific section
	/bin/systemctl --system daemon-reload 2>&1 || :
# END
if [ $1 -gt 1 ] ; then
	/bin/systemctl condrestart certmonger.service 2>&1 || :
fi
/bin/systemctl reload-or-try-restart dbus
/bin/systemctl reload-or-try-restart oddjobd

#sysusers_create mockbuild.conf
%tmpfiles_create ipa.conf

%posttrans server
# don't execute upgrade and restart of IPA when server is not installed
%__python3 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1

if [ $? -eq 0 ]; then
	# Restart IPA processes. This must be also run in postrans so that plugins
	# and software is in consistent state
	# NOTE: systemd specific section

	/bin/systemctl is-enabled ipa.service >/dev/null 2>&1
	if [ $? -eq 0 ]; then
		/bin/systemctl restart ipa.service >/dev/null
	fi
fi
# END

%preun server
if [ $1 = 0 ]; then
# NOTE: systemd specific section
	/bin/systemctl --quiet stop ipa.service || :
	/bin/systemctl --quiet disable ipa.service || :
	/bin/systemctl reload-or-try-restart dbus
	/bin/systemctl reload-or-try-restart oddjobd
# END
fi

#----------------------------------------------------------------------------

%package -n python3-ipaserver
Summary:	Python libraries used by IPA server
Group:		Development/Python
BuildArch:	noarch
Requires:	%{name}-server-common = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3-ipaclient = %{EVRD}
Requires:	python3egg(custodia)
Requires:	python3egg(python-ldap)
Requires:	python3egg(lxml)
Requires:	python3egg(lib389)
# Bump because of #1457942 certauth: use canonical principal for lookups
Requires:	python3egg(gssapi)
Requires:	python3egg(sssdconfig)
Requires:	python3egg(pyasn1)
Requires:	python3egg(dbus-python)
Requires:	python3egg(dnspython)
Requires:	python3egg(kdcproxy)
# rpm-libs (2)
Requires:	python3egg(rpm-vercmp)

# pki-base-python3 (alias for pki-base)
Requires:	pki-base
# python3-augeas >= 0.5 supports replace method
Requires:	python3egg(python-augeas)
Provides:	python3-ipaserver = %{EVRD}

%description -n python3-ipaserver
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are installing an IPA server, you need to install this package.

%files -n python3-ipaserver
%doc COPYING README.md Contributors.txt
%{python3_sitelib}/ipaserver
%{python3_sitelib}/ipaserver-*.egg-info

#----------------------------------------------------------------------------

%package server-common
Summary:	Common files used by IPA server
Group:		System/Base
BuildArch:	noarch
Requires:	%{name}-sclient-common = %{EVRD}
Requires:	apache-base
Requires:	systemd-units
Requires:	custodia
Provides:	freeipa-server-common = %{EVRD}

%description server-common
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are installing an IPA server, you need to install this package.

%files server-common
%doc COPYING README.md Contributors.txt
%ghost %dir %{_sharedstatedir}/kdcproxy
%dir %attr(0755,root,root) %{_sysconfdir}/ipa/kdcproxy
%config(noreplace) %{_sysconfdir}/ipa/kdcproxy/kdcproxy.conf
# NOTE: systemd specific section
%{_tmpfilesdir}/ipa.conf
%attr(644,root,root) %{_unitdir}/ipa-custodia.service
%ghost %attr(644,root,root) %{_sysconfdir}/systemd/system/httpd.d/ipa.conf
# END
%dir %{_datadir}/ipa
%{_datadir}/ipa/wsgi.py*
%{_datadir}/ipa/kdcproxy.wsgi
%{_datadir}/ipa/ipaca*.ini
# RHEL spec file only: START: Package copy-schema-to-ca.py
%{_datadir}/ipa/copy-schema-to-ca.py*
# RHEL spec file only: END: Package copy-schema-to-ca.py
%{_datadir}/ipa/*.ldif
%{_datadir}/ipa/*.uldif
%{_datadir}/ipa/*.template
%dir %{_datadir}/ipa/__pycache__
%{_datadir}/ipa/__pycache__/*
%dir %{_datadir}/ipa/advise
%dir %{_datadir}/ipa/advise/legacy
%{_datadir}/ipa/advise/legacy/*.template
%dir %{_datadir}/ipa/profiles
%{_datadir}/ipa/profiles/README
%{_datadir}/ipa/profiles/*.cfg
%dir %{_datadir}/ipa/html
%{_datadir}/ipa/html/ssbrowser.html
%{_datadir}/ipa/html/unauthorized.html
%dir %{_datadir}/ipa/migration
%{_datadir}/ipa/migration/index.html
%{_datadir}/ipa/migration/migration.py*
%dir %{_datadir}/ipa/migration/__pycache__
%{_datadir}/ipa/migration/__pycache__/*
%dir %{_datadir}/ipa/ui
%{_datadir}/ipa/ui/index.html
%{_datadir}/ipa/ui/reset_password.html
%{_datadir}/ipa/ui/sync_otp.html
%{_datadir}/ipa/ui/*.ico
%{_datadir}/ipa/ui/*.css
%dir %{_datadir}/ipa/ui/css
%{_datadir}/ipa/ui/css/*.css
%dir %{_datadir}/ipa/ui/js
%dir %{_datadir}/ipa/ui/js/dojo
%{_datadir}/ipa/ui/js/dojo/dojo.js
%dir %{_datadir}/ipa/ui/js/libs
%{_datadir}/ipa/ui/js/libs/*.js
%dir %{_datadir}/ipa/ui/js/freeipa
%{_datadir}/ipa/ui/js/freeipa/app.js
%{_datadir}/ipa/ui/js/freeipa/core.js
%dir %{_datadir}/ipa/ui/js/plugins
%dir %{_datadir}/ipa/ui/images
%{_datadir}/ipa/ui/images/*.jpg
%{_datadir}/ipa/ui/images/*.png
%dir %{_datadir}/ipa/wsgi
%{_datadir}/ipa/wsgi/plugins.py*
%dir %{_datadir}/ipa/wsgi/__pycache__
 %{_datadir}/ipa/wsgi/__pycache__/*
%dir %{_sysconfdir}/ipa
%dir %{_sysconfdir}/ipa/html
%config(noreplace) %{_sysconfdir}/ipa/html/ssbrowser.html
%config(noreplace) %{_sysconfdir}/ipa/html/unauthorized.html
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa-kdc-proxy.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa-pki-proxy.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/kdcproxy/ipa-kdc-proxy.conf
%ghost %attr(0644,root,apache) %{_datadir}/ipa/html/ca.crt
%ghost %attr(0644,root,apache) %{_datadir}/ipa/html/krb.con
%ghost %attr(0644,root,apache) %{_datadir}/ipa/html/krb5.ini
%ghost %attr(0644,root,apache) %{_datadir}/ipa/html/krbrealm.con
%dir %{_datadir}/ipa/updates/
%{_datadir}/ipa/updates/*
%dir %{_localstatedir}/lib/ipa
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/backup
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/gssproxy
%attr(711,root,root) %dir %{_localstatedir}/lib/ipa/sysrestore
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/sysupgrade
%attr(755,root,root) %dir %{_localstatedir}/lib/ipa/pki-ca
%attr(755,root,root) %dir %{_localstatedir}/lib/ipa/certs
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/private
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/passwds
%ghost %attr(755,root,pkiuser) %{_localstatedir}/lib/ipa/pki-ca/publish
%ghost %attr(770,named,named) %{_localstatedir}/named/dyndb-ldap/ipa
%dir %attr(0700,root,root) %{_sysconfdir}/ipa/custodia
%dir %{_datadir}/ipa/schema.d
%attr(0644,root,root) %{_datadir}/ipa/schema.d/README
%attr(0644,root,root) %{_datadir}/ipa/gssapi.login
%{_datadir}/ipa/ipakrb5.aug

#----------------------------------------------------------------------------

%package server-dns
Summary:	IPA integrated DNS server with support for automatic DNSSEC signing
Group:		System/Base
BuildArch:	noarch
Requires:	%{name}-server = %{EVRD}
# bumped because of https://bugzilla.redhat.com/show_bug.cgi?id=1469480
###Requires:	bind-dyndb-ldap >= 11.1-4
Requires:	bind
Requires:	bind-utils
Requires:	opendnssec

Provides:	freeipa-server-dns = %{EVRD}

# upgrade path from monolithic -server to -server + -server-dns
Obsoletes:	%{name}-server <= 4.2.0-2

%description server-dns
IPA integrated DNS server with support for automatic DNSSEC signing.
Integrated DNS server is BIND 9. OpenDNSSEC provides key management.

%files server-dns
%doc COPYING README.md Contributors.txt
%config(noreplace) %{_sysconfdir}/sysconfig/ipa-dnskeysyncd
%config(noreplace) %{_sysconfdir}/sysconfig/ipa-ods-exporter
%dir %attr(0755,root,root) %{_sysconfdir}/ipa/dnssec
%{_libexecdir}/ipa/ipa-dnskeysyncd
%{_libexecdir}/ipa/ipa-dnskeysync-replica
%{_libexecdir}/ipa/ipa-ods-exporter
%{_sbindir}/ipa-dns-install
%{_mandir}/man1/ipa-dns-install.1*
%attr(644,root,root) %{_unitdir}/ipa-dnskeysyncd.service
%attr(644,root,root) %{_unitdir}/ipa-ods-exporter.socket
%attr(644,root,root) %{_unitdir}/ipa-ods-exporter.service

#----------------------------------------------------------------------------

%package server-trust-ad
Summary:	Virtual package to install packages required for Active Directory trusts
Group:		System/Base
Requires:	%{name}-server = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	samba-python3
Requires:	samba
Requires:	samba-winbind
Requires(post): python3
Requires:	%{_lib}sss_idmap0
# python3-libsss_nss_idmap
Requires:	python3egg(sssdconfig)
# We use alternatives to divert winbind_krb5_locator.so plugin to libkrb5
# on the installes where server-trust-ad subpackage is installed because
# IPA AD trusts cannot be used at the same time with the locator plugin
# since Winbindd will be configured in a different mode
Requires(post):	update-alternatives
Requires(postun): update-alternatives
Requires(preun): update-alternatives

Provides:	freeipa-server-trust-ad = %{EVRD}

%description server-trust-ad
Cross-realm trusts with Active Directory in IPA require working Samba 4
installation. This package is provided for convenience to install all required
dependencies at once.

%files server-trust-ad
%doc COPYING README.md Contributors.txt
%{_sbindir}/ipa-adtrust-install
%{_datadir}/ipa/smb.conf.empty
%attr(755,root,root) %{_libdir}/samba/pdb/ipasam.so
%{_mandir}/man1/ipa-adtrust-install.1*
%ghost %{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
%{_sysconfdir}/dbus-1/system.d/oddjob-ipa-trust.conf
%{_sysconfdir}/oddjobd.conf.d/oddjobd-ipa-trust.conf
%attr(755,root,root) %{_libexecdir}/ipa/oddjob/com.redhat.idm.trust-fetch-domains

%postun server-trust-ad
if [ "$1" -ge "1" ]; then
	if [ "`readlink %{_sysconfdir}/alternatives/winbind_krb5_locator.so`" == "/dev/null" ]; then
		%{_sbindir}/alternatives --set winbind_krb5_locator.so /dev/null
	fi
fi

%post server-trust-ad
%{_sbindir}/update-alternatives --install %{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so \
	winbind_krb5_locator.so /dev/null 90
/bin/systemctl reload-or-try-restart dbus
/bin/systemctl reload-or-try-restart oddjobd

%posttrans server-trust-ad
%__python3 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1
if [ $? -eq 0 ]; then
# NOTE: systemd specific section
	/bin/systemctl try-restart httpd.service >/dev/null 2>&1 || :
# END
fi

%preun server-trust-ad
if [ $1 -eq 0 ]; then
	%{_sbindir}/update-alternatives --remove winbind_krb5_locator.so /dev/null
	/bin/systemctl reload-or-try-restart dbus
	/bin/systemctl reload-or-try-restart oddjobd
fi

%endif
# with server

#----------------------------------------------------------------------------

%package sclient
Summary:	IPA authentication for use on clients
Group:		System/Base
Requires:	%{name}-sclient-common = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3egg(gssapi)
Requires:	python3-ipaclient = %{EVRD}
Requires:	python3egg(python-ldap)
Requires:	python3egg(python-augeas)
# cyrus-sasl-gssapi
Requires:	sasl-plug-gssapi
Requires:	chrony
Requires:	krb5-workstation
Requires:	authconfig
Requires:	curl
# NIS domain name config: /usr/lib/systemd/system/*-domainname.service
Requires:	initscripts
Requires:	xmlrpc-c
Requires:	sssd
Requires:	python3egg(sssdconfig)
Requires:	certmonger
Requires:	nss
Requires:	bind-utils
Requires:	oddjob-mkhomedir
# libsss_autofs
Requires:	sssd-client
Requires:	autofs
Requires:	libnfsidmap
# libnfsidmap (2)
Requires:	nfs-utils
Requires(post):	policycoreutils
Requires(post):	update-alternatives
Requires(postun): update-alternatives

Provides:	freeipa-client = %{EVRD}

Provides:	freeipa-admintools = %{EVRD}

Obsoletes:	%{name}-admintools < 4.4.1
Provides:	%{name}-admintools = %{EVRD}

%description sclient
This package provides command-line tools to rule
FreeIPA server.
It can also be used for FreeIPA client, but we
recommend to user ipa-clientN (e.g. ipa-client47)
packages for FreeIPA clients.

%files sclient
%doc COPYING README.md Contributors.txt
%{_sclientbindir}/ipa-client-install
%{_sclientbindir}/ipa-client-automount
%{_sclientbindir}/ipa-certupdate
%{_sclientbindir}/ipa-getkeytab
%{_sclientbindir}/ipa-rmkeytab
%{_sclientbindir}/ipa-join
%{_sclientbindir}/ipa
%config %{_sysconfdir}/bash_completion.d
%config %{_sysconfdir}/sysconfig/certmonger
%{_mandir}/man1/ipa.1*
%{_mandir}/man1/ipa-getkeytab.1*
%{_mandir}/man1/ipa-rmkeytab.1*
%{_mandir}/man1/ipa-client-install.1*
%{_mandir}/man1/ipa-client-automount.1*
%{_mandir}/man1/ipa-certupdate.1*
%{_mandir}/man1/ipa-join.1*

%post sclient

### update-alternatives
# Alternatives between IPA client built from the same source as IPA server
# and a standalone ipa-clientN (e.g. ipa-client47).
# Keep this script the same in both specs.

%if %{with server}
priority=10
%else
# +maj to make a higher version have higher priority
priority="$(echo 12+%{maj} | bc)"
%endif

for i in \
	ipa-client-install ipa-client-automount ipa-certupdate \
	ipa-getkeytab ipa-rmkeytab ipa-join
do
	update-alternatives --install \
		"/usr/sbin/$i" \
		"$i" \
		"%{_sclientbindir}/$i" \
		"$priority"
done

update-alternatives --install \
	"/usr/bin/ipa" \
	"ipa" \
	"%{_sclientbindir}/ipa" \
	"$priority"

### /update-alternatives

if [ $1 -gt 1 ] ; then
	# Has the client been configured?
	restore=0
	test -f '/var/lib/ipa-client/sysrestore/sysrestore.index' && restore=$(wc -l '/var/lib/ipa-client/sysrestore/sysrestore.index' | awk '{print $1}')

	if [ -f '/etc/sssd/sssd.conf' -a $restore -ge 2 ]; then
		if ! grep -E -q '/var/lib/sss/pubconf/krb5.include.d/' /etc/krb5.conf 2>/dev/null ; then
		echo "includedir /var/lib/sss/pubconf/krb5.include.d/" > /etc/krb5.conf.ipanew
		cat /etc/krb5.conf >> /etc/krb5.conf.ipanew
			mv -Z /etc/krb5.conf.ipanew /etc/krb5.conf
		fi
	fi

	if [ $restore -ge 2 ]; then
		if grep -E -q '\s*pkinit_anchors = FILE:/etc/ipa/ca.crt$' /etc/krb5.conf 2>/dev/null; then
			sed -E 's|(\s*)pkinit_anchors = FILE:/etc/ipa/ca.crt$|\1pkinit_anchors = FILE:/var/lib/ipa-client/pki/kdc-ca-bundle.pem\n\1pkinit_pool = FILE:/var/lib/ipa-client/pki/ca-bundle.pem|' /etc/krb5.conf >/etc/krb5.conf.ipanew
			mv -Z /etc/krb5.conf.ipanew /etc/krb5.conf
			cp /etc/ipa/ca.crt /var/lib/ipa-client/pki/kdc-ca-bundle.pem
			cp /etc/ipa/ca.crt /var/lib/ipa-client/pki/ca-bundle.pem
		fi
	fi

	if [ $restore -ge 2 ]; then
		%__python3 -c 'from ipaclient.install.client import update_ipa_nssdb; update_ipa_nssdb()' >/var/log/ipaupgrade.log 2>&1
	fi
fi

%postun sclient
[ $1 = 0 ] || exit 0
for i in \
	ipa-client-install ipa-client-automount ipa-certupdate \
	ipa-getkeytab ipa-rmkeytab ipa-join ipa
do
	update-alternatives --remove \
		"$i" \
		"%{_sclientbindir}/$i" \
done

%triggerin sclient -- openssh-server
# Has the client been configured?
restore=0
test -f '/var/lib/ipa-client/sysrestore/sysrestore.index' && restore=$(wc -l '/var/lib/ipa-client/sysrestore/sysrestore.index' | awk '{print $1}')

if [ -f '/etc/ssh/sshd_config' -a $restore -ge 2 ]; then
	if grep -E -q '^(AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys|PubKeyAgent /usr/bin/sss_ssh_authorizedkeys %u)$' /etc/ssh/sshd_config 2>/dev/null; then
		sed -r '
			/^(AuthorizedKeysCommand(User|RunAs)|PubKeyAgentRunAs)[ \t]/ d
		' /etc/ssh/sshd_config >/etc/ssh/sshd_config.ipanew

		if /usr/sbin/sshd -t -f /dev/null -o 'AuthorizedKeysCommand=/usr/bin/sss_ssh_authorizedkeys' -o 'AuthorizedKeysCommandUser=nobody' 2>/dev/null; then
			sed -ri '
				s/^PubKeyAgent (.+) %u$/AuthorizedKeysCommand \1/
				s/^AuthorizedKeysCommand .*$/\0\nAuthorizedKeysCommandUser nobody/
			' /etc/ssh/sshd_config.ipanew
		elif /usr/sbin/sshd -t -f /dev/null -o 'AuthorizedKeysCommand=/usr/bin/sss_ssh_authorizedkeys' -o 'AuthorizedKeysCommandRunAs=nobody' 2>/dev/null; then
			sed -ri '
				s/^PubKeyAgent (.+) %u$/AuthorizedKeysCommand \1/
				s/^AuthorizedKeysCommand .*$/\0\nAuthorizedKeysCommandRunAs nobody/
			' /etc/ssh/sshd_config.ipanew
		elif /usr/sbin/sshd -t -f /dev/null -o 'PubKeyAgent=/usr/bin/sss_ssh_authorizedkeys %u' -o 'PubKeyAgentRunAs=nobody' 2>/dev/null; then
			sed -ri '
				s/^AuthorizedKeysCommand (.+)$/PubKeyAgent \1 %u/
				s/^PubKeyAgent .*$/\0\nPubKeyAgentRunAs nobody/
			' /etc/ssh/sshd_config.ipanew
		fi

		mv -Z /etc/ssh/sshd_config.ipanew /etc/ssh/sshd_config
		chmod 600 /etc/ssh/sshd_config

		/bin/systemctl condrestart sshd.service 2>&1 || :
	fi
fi

#----------------------------------------------------------------------------

%package -n python3-ipaclient
Summary:	Python libraries used by IPA client
Group:		Development/Python
BuildArch:	noarch
Requires:	%{name}-sclient-common = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3-ipalib = %{EVRD}
Requires:	python3egg(dnspython)
Requires:	python3egg(rpm-vercmp)
Provides:	python3-ipaclient = %{EVRD}
# RHEL spec file only: DELETED: Remove csrgen

%description -n python3-ipaclient
Python module for FreeIPA server admin tools.

%files -n python3-ipaclient
%doc COPYING README.md Contributors.txt
%dir %{python3_sitelib}/ipaclient
%{python3_sitelib}/ipaclient/*.py*
%dir %{python3_sitelib}/ipaclient/install
%{python3_sitelib}/ipaclient/install/*.py*
%dir %{python3_sitelib}/ipaclient/plugins
%{python3_sitelib}/ipaclient/plugins/*.py*
%dir %{python3_sitelib}/ipaclient/remote_plugins
%{python3_sitelib}/ipaclient/remote_plugins/*.py*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_*
%{python3_sitelib}/ipaclient/remote_plugins/2_*/*.py*
%dir %{python3_sitelib}/ipaclient/__pycache__
%{python3_sitelib}/ipaclient/__pycache__/*
%dir %{python3_sitelib}/ipaclient/install/__pycache__
%{python3_sitelib}/ipaclient/install/__pycache__/*
%dir %{python3_sitelib}/ipaclient/plugins/__pycache__
%{python3_sitelib}/ipaclient/plugins/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_114/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/2_114/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_156/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/2_156/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_164/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/2_164/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_49/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/2_49/__pycache__/*


# RHEL spec file only: DELETED: Remove csrgen
#%%{python3_sitelib}/ipaclient/csrgen
%{python3_sitelib}/ipaclient-*.egg-info

#----------------------------------------------------------------------------

%package sclient-common
Summary:	Common files used by IPA client
Group:		System/Base
BuildArch:	noarch

Provides:	freeipa-client-common = %{EVRD}

%description sclient-common
Common files for FreeIPA server admin tools.

%files sclient-common
%doc COPYING README.md Contributors.txt
%dir %attr(0755,root,root) %{_sysconfdir}/ipa/
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/default.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/ca.crt
%dir %attr(0755,root,root) %{_sysconfdir}/ipa/nssdb
# old dbm format
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/cert8.db
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/key3.db
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/secmod.db
# new sql format
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/cert9.db
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/key4.db
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/pkcs11.txt
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/pwdfile.txt
%ghost %config(noreplace) %{_sysconfdir}/pki/ca-trust/source/ipa.p11-kit
%dir %{_localstatedir}/lib/ipa-client
%dir %{_localstatedir}/lib/ipa-client/pki
%dir %{_localstatedir}/lib/ipa-client/sysrestore
%{_mandir}/man5/default.conf.5*
%{_datadir}/ipa/client/freeipa.template
%{_datadir}/ipa/client/sshd_ipa.conf.template

#----------------------------------------------------------------------------

%package python3-compat
Summary:	Compatiblity package for Python libraries used by IPA
Group:		Development/Python
BuildArch:	noarch
Obsoletes:	%{name}-python < 4.2.91
Provides:	%{name}-python = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3-ipalib = %{EVRD}

Provides:	freeipa-python3-compat = %{EVRD}

Obsoletes:	freeipa-python < 4.2.91
Provides:	freeipa-python3 = %{EVRD}

%description python3-compat
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
This is a compatibility package to accommodate %{name}-python split into
python3-ipalib and %{name}-common. Packages still depending on
%{name}-python should be fixed to depend on python3-ipaclient or
%{name}-common instead.

%files python3-compat
%doc COPYING README.md Contributors.txt

#----------------------------------------------------------------------------

%package -n python3-ipalib
Summary:	Python libraries used by IPA
Group:		Development/Python
BuildArch:	noarch
Conflicts:	%{name}-python < 4.2.91
Requires:	%{name}-common = %{EVRD}
# Bump because of #1457942 certauth: use canonical principal for lookups
Requires:	python3egg(gssapi)
Requires:	gnupg
Requires:	keyutils
Requires:	python3
Requires:	python3egg(python-nss)
Requires:	python3egg(cryptography)
Requires:	python3egg(netaddr)
# python3-libipa_hbac
Requires:	python3egg(sssdconfig)
Requires:	python3egg(qrcode)
Requires:	python3egg(pyasn1)
Requires:	python3egg(pyasn1-modules)
Requires:	python3egg(python-dateutil)
Requires:	python3egg(python-yubico)
# python-sss-murmur
Requires:	python3egg(sssdconfig)
Requires:	python3egg(dbus-python)
Requires:	python3egg(setuptools)
Requires:	python3egg(six)
Requires:	python3egg(jwcrypto)
Requires:	python3egg(cffi)
Requires:	python3egg(python-ldap)
Requires:	python3egg(requests)
Requires:	python3egg(dnspython)
Requires:	python3egg(netifaces)
Requires:	python3egg(pyusb)

Provides:	python3-ipalib = %{EVRD}
Provides:	python3-ipapython = %{EVRD}
Provides:	python3-ipaplatform = %{EVRD}

%description -n python3-ipalib
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are using IPA, you need to install this package.

%files -n python3-ipalib
%doc COPYING README.md Contributors.txt
%dir %{python3_sitelib}/ipapython
%{python3_sitelib}/ipapython/*.py*
%dir %{python3_sitelib}/ipapython/install
%{python3_sitelib}/ipapython/install/*.py*
%dir %{python3_sitelib}/ipalib
%{python3_sitelib}/ipalib/*.py*
%dir %{python3_sitelib}/ipalib/install
%{python3_sitelib}/ipalib/install/*.py*
%dir %{python3_sitelib}/ipaplatform
%{python3_sitelib}/ipaplatform/*
%{python3_sitelib}/ipapython-*.egg-info
%{python3_sitelib}/ipalib-*.egg-info
%{python3_sitelib}/ipaplatform-*.egg-info
#%%{python3_sitelib}/ipaplatform-*-nspkg.pth
%dir %{python3_sitelib}/ipalib/__pycache__
%{python3_sitelib}/ipalib/__pycache__/*
%dir %{python3_sitelib}/ipalib/install/__pycache__
%{python3_sitelib}/ipalib/install/__pycache__/*
%dir %{python3_sitelib}/ipapython/__pycache__
%{python3_sitelib}/ipapython/__pycache__/*
%dir %{python3_sitelib}/ipapython/install/__pycache__
%{python3_sitelib}/ipapython/install/__pycache__/*

#----------------------------------------------------------------------------

%package common
Summary:	Common files used by IPA
Group:		Development/Python
BuildArch:	noarch
Conflicts:	%{name}-python < 4.2.91

Provides:	freeipa-common = %{EVRD}

%if %{with selinux}
# This ensures that the *-selinux package and all it’s dependencies are not
# pulled into containers and other systems that do not use SELinux. The
# policy defines types and file contexts for client and server.
Requires:       (%{name}-selinux if selinux-policy-%{selinuxtype})
%endif

%description common
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are using IPA, you need to install this package.

%files common -f %{name}.lang
%doc COPYING README.md Contributors.txt

#----------------------------------------------------------------------------
%if %{with selinux}
# SELinux subpackage
%package selinux
Summary:	FreeIPA SELinux policy
Group:		Development/Python
BuildArch:	noarch
Requires:	selinux-policy-%{selinuxtype}
Requires(post):	selinux-policy-%{selinuxtype}

%description selinux
Custom SELinux policy module for FreeIPA

%files selinux
%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.*
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}

# SELinux contexts are saved so that only affected files can be
# relabeled after the policy module installation
%pre selinux
%selinux_relabel_pre -s %{selinuxtype}

%post selinux
semodule -d ipa_custodia &> /dev/null || true;
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2

%postun selinux
if [ $1 -eq 0 ]; then
    %selinux_modules_uninstall -s %{selinuxtype} %{modulename}
    semodule -e ipa_custodia &> /dev/null || true;
fi

%posttrans selinux
%selinux_relabel_post -s %{selinuxtype}

# with selinux
%endif

#----------------------------------------------------------------------------
%if %{with server}
%package client-epn
Summary:	Tool to configure Expiring Passworld Notification in IPA
Group:		System/Base
Requires:	%{name}-sclient = %{EVRD}

%description client-epn
EPN provides command-line options to display the list of affected users.
This provides data introspection and helps understand how many emails
would be sent for a given day, or a given date range.
The command-line options can also be used by a monitoring system to alert
whenever a number of emails over the SMTP quota would be sent.

%files client-epn
%doc COPYING README.md Contributors.txt
%dir %{_sysconfdir}/ipa/epn
%{_sysconfdir}/ipa/epn.conf
%{_sysconfdir}/ipa/epn/expire_msg.template
%{_unitdir}/ipa-epn.service
%{_unitdir}/ipa-epn.timer
%{_sbindir}/ipa-epn
%{_mandir}/man1/ipa-epn.1*
%{_mandir}/man5/epn.conf.5*
%endif
#----------------------------------------------------------------------------
%package client-samba
Summary: Tools to configure Samba on IPA client
Group: System/Base
Requires: %{name}-sclient = %{EVRD}
Requires: samba-python3
Requires: samba-client
Requires: samba-winbind
Requires: samba-common
Requires: samba
Requires: sssd-winbind-idmap
Requires: tdb-utils
Requires: cifs-utils

%description client-samba
This package provides command-line tools to deploy Samba domain member
on the machine enrolled into a FreeIPA environment

%files client-samba
%doc README.md Contributors.txt
%license COPYING
%{_sbindir}/ipa-client-samba
%{_mandir}/man1/ipa-client-samba.1*

#------------------------------------------------------------------------------
%prep
%setup -qn freeipa-%{version}

# RHEL spec file only: START
# Update timestamps on the files touched by a patch, to avoid non-equal
# .pyc/.pyo files across the multilib peers within a build, where "Level"
# is the patch prefix option (e.g. -p1)
# Taken from specfile for sssd and python3-simplejson
UpdateTimestamps() {
Level=$1
PatchFile=$2

# Locate the affected files:
for f in $(diffstat $Level -l $PatchFile); do
	# Set the files to have the same timestamp as that of the patch:
	touch -c -r $PatchFile $f
done
}
for p in %patches ; do
	%__patch -p1 -i $p
	UpdateTimestamps -p1 $p
done
# RHEL spec file only: END

# ROSA's autofs is historically patched to use /etc/autofs/ directory
# Patch 0001-Custom-autofs-dir-on-ROSA.patch changes it in other places,
# here in po/ let's use sed because manual verification of the result after sed is
# not as important as in the code, and it easifies maintainance of this patch.
find ./po -type f | xargs sed -i 's,/etc/auto,/etc/autofs/auto,g'

cp -v /etc/os-release ipatests/test_ipaplatform/data/os-release-rosa

#Rosa old distrib not have nis-domainname.service
#change it to fedora-domainname.service
%if %{mdvver} < 201910
sed -i 's|nis-domainname|fedora-domainname|' ipaplatform/redhat/services.py
%endif


%build
%serverbuild
# RHEL spec file only: START
autoreconf -i -f
# RHEL spec file only: END
# UI compilation segfaulted on some arches when the stack was lower (#1040576)
export JAVA_STACK_SIZE="8m"

export CFLAGS="%{optflags} $CFLAGS"
export LDFLAGS="%{ldflags} $LDFLAGS"

#may be not needed, see configure params
export IPA_VENDOR_VERSION_SUFFIX=-%{release}
export SUPPORTED_PLATFORM=rosa

# PATH is workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1005235
export PATH="/usr/bin:/usr/sbin:$PATH"

export PYTHON=%{__python3}
# Workaround: make sure all shebangs are pointing to Python 3
# This should be solved properly using setuptools
# and this hack should be removed.
find \
	! -name '*.pyc' -a \
	! -name '*.pyo' -a \
	-type f -exec grep -qsm1 '^#!.*\bpython' {} \; \
	-exec sed -i -e '1 s|^#!.*\bpython[^ ]*|#!%__python3|' {} \;

%configure \
	--with-vendor-suffix=-%{release} \
	%{enable_server_option} \
	--without-ipatests \
	--with-ipaplatform=rosa

%if %{with server}
%make LIBS="$LIBS -L%{_libdir}/dirsrv -lslapd -lpthread -lkrb5 -lnspr4 -lplc4 -lnss3 -lldap"
%else
%make
%endif

%check
%make check VERBOSE=yes LIBDIR=%{_libdir}

%install
# Please put as much logic as possible into make install. It allows:
# - easier porting to other distributions
# - rapid devel & install cycle using make install
# (instead of full RPM build and installation each time)
#
# All files and directories created by spec install should be marked as ghost.
# (These are typically configuration files created by IPA installer.)
# All other artifacts should be created by make install.
#
# Exception to this rule are test programs which where want to install
# Python2/3 versions at the same time so we need to rename them. Yuck.
%__make python_install DESTDIR=%{buildroot} INSTALL="%{__install} -p"

%makeinstall_std

# remove files which are useful only for make uninstall
find %{buildroot} -wholename '*/site-packages/*/install_files.txt' -exec rm {} \;

%find_lang %{name}

%if %{with server}
# So we can own our Apache configuration
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa.conf
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-kdc-proxy.conf
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-pki-proxy.conf
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf
/bin/touch %{buildroot}%{_datadir}/ipa/html/ca.crt
/bin/touch %{buildroot}%{_datadir}/ipa/html/krb.con
/bin/touch %{buildroot}%{_datadir}/ipa/html/krb5.ini
/bin/touch %{buildroot}%{_datadir}/ipa/html/krbrealm.con

mkdir -p %{buildroot}%{_libdir}/krb5/plugins/libkrb5
touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so

# RHEL spec file only: START: Package copy-schema-to-ca.py
cp contrib/copy-schema-to-ca-RHEL6.py %{buildroot}%{_datadir}/ipa/copy-schema-to-ca.py
# RHEL spec file only: END: Package copy-schema-to-ca.py

mkdir -p %{buildroot}%{_sysconfdir}/cron.d

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/kdcproxy.conf
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/ipaapi.conf

chmod +x %{buildroot}%{python3_sitelib}/ipaserver/dnssec/localhsm.py
chmod +x %{buildroot}%{python3_sitelib}/ipaserver/dnssec/odsmgr.py
chmod +x %{buildroot}%{python3_sitelib}/ipaserver/install/ipa_kra_install.py

mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/httpd.d
touch %{buildroot}%{_sysconfdir}/systemd/system/httpd.d/ipa.conf

mkdir -p %{buildroot}%{_sysconfdir}/ipa/kdcproxy
touch %{buildroot}%{_sysconfdir}/ipa/kdcproxy/ipa-kdc-proxy.conf

mkdir -p %{buildroot}%{_localstatedir}/named/dyndb-ldap
touch %{buildroot}%{_localstatedir}/named/dyndb-ldap/ipa

mkdir -p %{buildroot}%{_localstatedir}/lib/ipa/pki-ca
touch %{buildroot}%{_localstatedir}/lib/ipa/pki-ca/publish

%endif
# with server

touch %{buildroot}%{_sysconfdir}/ipa/default.conf
touch %{buildroot}%{_sysconfdir}/ipa/ca.crt

%if %{without server}
# Remove ipa-epn parts as we don't have ipa-epn systemd integration generated
# for client-only build
rm %{buildroot}/%{_unitdir}/ipa-epn.service
rm %{buildroot}/%{_unitdir}/ipa-epn.timer
rm %{buildroot}/%{_sbindir}/ipa-epn
rm %{buildroot}/%{_mandir}/man1/ipa-epn.1*
rm %{buildroot}/%{_mandir}/man5/epn.conf.5*
rm %{buildroot}/%{_sysconfdir}/ipa/epn/expire_msg.template
rm %{buildroot}/%{_sysconfdir}/ipa/epn.conf
%endif

mkdir -p %{buildroot}%{_sharedstatedir}/kdcproxy
mkdir -p %{buildroot}%{_sysconfdir}/ipa/nssdb
mkdir -p %{buildroot}%{_sysconfdir}/pki/ca-trust/source
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/cert8.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/key3.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/secmod.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/cert9.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/key4.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/pkcs11.txt
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/pwdfile.txt
touch %{buildroot}%{_sysconfdir}/pki/ca-trust/source/ipa.p11-kit

#mkdir -p %%{buildroot}%%{_sysconfdir}/profile.d/
#echo "# Force usage of IPA server's IPA client if a standalone ipa-clientN is installed" >> \
#	%{buildroot}%{_sysconfdir}/profile.d/90_0_ipa-server.sh
#echo "export IPA_SERVER_CLIENT_PRIORITY=1" >> %{buildroot}%{_sysconfdir}/profile.d/90_0_ipa-server.sh

mkdir -p %{buildroot}%{_sclientbindir}
for i in \
	ipa-client-install ipa-client-automount ipa-certupdate \
	ipa-getkeytab ipa-rmkeytab ipa-join
do
	mv %{buildroot}%{_sbindir}/$i %{buildroot}%{_sclientbindir}/
done
mv -v %{buildroot}%{_bindir}/ipa %{buildroot}%{_sclientbindir}/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2409 |21cr|ipaudit-1.0rc9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ipaudit
Version:        1.0rc9
Release:        4
Epoch:          0
Summary:        Network Package Audit and Capture
License:        GPLv2
Group:          Networking/Other
URL:            http://%{name}.sourceforge.net/
Source0:        http://superb-east.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  libpcap-devel

%description
A neat packet logging program and auditor. Provides dump capability
and various  levels of logging.


%prep
%setup -q  -n %{name}-%{version}

%build
%configure
%make

%install
%{__rm} -rf %{buildroot}
%makeinstall

%clean
%{__rm} -rf %{buildroot}

%files 
%defattr(0644,root,root,0755)
%doc AUTHORS ChangeLog COPYING INSTALL README
%attr(0755,root,root) %{_bindir}/total
%attr(0755,root,root) %{_sbindir}/ipaudit
%attr(0755,root,root) %{_sbindir}/ipstrings
%{_mandir}/man8/ipaudit.8.*
%{_mandir}/man8/ipstrings.8.*
%{_mandir}/man1/total.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2410 |21cr|ipcalc-0.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IP network address calculator
Name:		ipcalc
Version:	0.2.5
Release:	1
Group:		System/Base
License:	GPLv2+
URL:		https://gitlab.com/ipcalc/ipcalc
Source0:	https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}//%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(popt)
Conflicts:	initscripts < 9.64

%description
ipcalc provides a simple way to calculate IP information for a host
or network. Depending on the options specified, it may be used to provide
IP network information in human readable format, in a format suitable for
parsing in scripts, generate random private addresses, resolve an IP address,
or check the validity of an address.

%prep
%autosetup -p1

%build
%setup_compile_flags
%make_build LIBPATH=%{_libdir} USE_GEOIP="yes"

%install
mkdir -p %{buildroot}/bin
install -p -m 755 ipcalc %{buildroot}/bin/
mkdir -p -m 755 %{buildroot}%{_mandir}/man1
install -p -m 644 ipcalc.1 %{buildroot}%{_mandir}/man1

%files
%doc README.md
/bin/ipcalc
%{_mandir}/man1/ipcalc.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2411 |21cr|iperf-3.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname iperf %major
%define develname %mklibname iperf -d

Name:		iperf
Version:	3.15
Release:	1
License:	BSD
Group:		Networking/Other
Summary:	A TCP, UDP, and SCTP network bandwidth measurement tool
URL:		https://github.com/esnet/iperf
Source:		https://github.com/esnet/%{name}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz

%description
iperf is a tool for active measurements of the maximum achievable bandwidth 
on IP networks. It supports tuning of various parameters related to timing, 
protocols, and buffers. For each test it reports the bandwidth, loss, and 
other parameters.

%package	-n %{libname}
Group:		System/Libraries
Summary:	Libraries for %{name}
Requires:	%{name} >= %{EVRD}

%description	-n %{libname}
iperf is a tool for active measurements of the maximum achievable bandwidth
on IP networks. It supports tuning of various parameters related to timing,
protocols, and buffers. For each test it reports the bandwidth, loss, and
other parameters.

%package	-n %{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{version}-%{release}

%description	-n %{develname}
This package contains libraries and header files for
developing applications that use %{name}.


%prep
%autosetup -p1

%build
./bootstrap.sh
%configure --enable-static=no
%make


%install
%makeinstall_std

%files
%doc RELNOTES.md LICENSE README.md
%{_bindir}/iperf3
%{_mandir}/man1/%{name}3.1.*

%files -n %{libname}
%{_libdir}/libiperf.so.%{major}*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/libiperf.3.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2412 |21cr|ipflood-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IP Flood Detector
Name:		ipflood
Version:	1.0
Release:	10
License:	GPL
Group:		System/Servers
URL:		http://www.adotout.com/
Source0:	http://www.adotout.com/ip_flood_detector.tar.gz
Source1:	%{name}.service
Source2:	%{name}.sysconfig
BuildRequires:	libpcap-devel

%description
IP Flood Detector is a derivative of an earlier project, DNS Flood Detector. It
provides managers with an audit trail of TCP, UDP, and ICMP packet floods
directed at Internet-facing servers. When packet rates exceed a specified
threshold, IP Flood Detector will syslog the offending IP address, along with
the associated protocol and traffic volume.

%prep

%setup -q -n ip_flood_detector

cp %{SOURCE1} %{name}.service
cp %{SOURCE2} %{name}.sysconfig

%build
%serverbuild

gcc $CFLAGS -D_BSD_SOURCE -lpcap -lpthread -lm -o ip_flood_detector ip_flood_detector.c

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/sysconfig

install -m0755 ip_flood_detector %{buildroot}%{_sbindir}/
install -m0644 %{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -m0644 %{name}.sysconfig %{buildroot}/%{_sysconfdir}/sysconfig/ip_flood_detector

sed "s:sysconfig:%{_sysconfdir}/sysconfig:" -i %{buildroot}%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%clean

%files
%doc README LICENSE
%config(noreplace) %{_sysconfdir}/sysconfig/ip_flood_detector
%attr(0644,root,root) %{_unitdir}/%{name}.service
%attr(0755,root,root) %{_sbindir}/ip_flood_detector

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2413 |21cr|ipkungfu-0.6.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Iptables-based Linux firewall
Name:		ipkungfu
Version:	0.6.1
Release:	12
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://www.linuxkungfu.org/
Source:		http://linuxkungfu.org/ipkungfu/%{name}-%{version}.tar.bz2
Source1:	%{name}.init.bz2
BuildRequires:	iptables
BuildRequires:	iptables-devel
BuildRequires:	kmod-compat
Requires:	userspace-ipfilter
Requires(post,preun):	rpm-helper
BuildArch:	noarch

%description
IPKungFu is an iptables-based Linux firewall. It aims to simplify 
the configuration of Internet connection sharing, port forwarding, 
and packet filtering.

%files
%doc ChangeLog FAQ README
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8.*
%{_initrddir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}

%post
%_post_service %{name}
if [ $1 -ne "1" ] ; then
	if [ ! -f  %{_sysconfdir}/sysconfig/%{name} ];
	then
		echo "IPKF_CONFIGURATED=yes" >> %{_sysconfdir}/sysconfig/%{name}
	else
		! grep -q "IPKF_CONFIGURATED" %{_sysconfdir}/sysconfig/%{name} && echo "IPKF_CONFIGURATED=yes" >> %{_sysconfdir}/sysconfig/%{name}
	fi
fi

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
# Create our directories
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/

# install the files
bzcat %{SOURCE1} > %{buildroot}%{_initrddir}/%{name}
for file in files/conf/*.conf; do
	install $file %{buildroot}%{_sysconfdir}/%{name}/
done
install %{name} %{buildroot}%{_sbindir}
install man/%{name}.8 %{buildroot}%{_mandir}/man8/

cat << EOF > %{buildroot}%{_sysconfdir}/sysconfig/%{name}
# this version of ipkungfu need to be configurated before
# it run, and, in order to not block people who install
# this rpm with a unconfigurated firewall, it will not run
# until you uncomment this line
#
# This was made to remind you to force you to configure
# ipkungfu before running it, in order to not break your internet
# connection.
#
# The configuration is in /etc/ipkungfu/
# and the doc in /usr/share/doc/ipkungfu*
#
#IPKF_CONFIGURATED=yes
EOF

# Fix perms
chmod +x %{buildroot}%{_initrddir}/%{name}
chmod a-x %{buildroot}%{_sysconfdir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2414 |21cr|iplist-0.29-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	List based packet handler
Name:		iplist
Version:	0.29
Release:	7
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://iplist.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		iplist-0.28-fix-init.patch
Patch1:		iplist-0.29-unsigned_char.patch
Patch2:		iplist-0.29-linking.patch
Patch3:		iplist-0.29-cstdlib.patch
BuildRequires:	pkgconfig(libnetfilter_queue)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(zlib)
Requires:	java >= 1.6
Requires:	usermode-consoleonly
Requires:	wget
Requires(post,preun):	rpm-helper
Provides:	ipblock = %{EVRD}

%description
iplist is a list based packet handler which uses the netfilter netlink-queue
library (kernel 2.6.14 or later). It filters by IP-address and is optimized
for thousands of IP-address ranges.

%files
%doc debian/copyright changelog THANKS
%config(noreplace) %{_sysconfdir}/ipblock.conf
%config(noreplace) %{_sysconfdir}/ipblock.lists
%config(noreplace) %{_sysconfdir}/pam.d/ipblock
%config(noreplace) %{_sysconfdir}/security/console.apps/ipblock
%config(noreplace) %{_sysconfdir}/cron.daily/ipblock
%{_initrddir}/ipblock
%{_sbindir}/iplist
%{_sbindir}/ipblock
%{_bindir}/ipblock
%{_mandir}/man8/iplist.8*
%{_mandir}/man8/ipblock.8*
%{_var}/cache/iplist
%{_datadir}/java/ipblockUI.jar
%{_datadir}/applications/ipblock.desktop
%{_datadir}/icons/ipblock.png

%post
%_post_service ipblock

%preun
%_preun_service ipblock

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p1 -b .cstdlib

# fix compiler flags
sed -i -e 's|-O2|%{optflags}|' Makefile

%build
%make LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/cron.daily/
mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps/
mkdir -p %{buildroot}%{_initrddir}/
mkdir -p %{buildroot}%{_datadir}/java/
mkdir -p %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/icons/
mkdir -p %{buildroot}%{_mandir}/man8/
mkdir -p %{buildroot}%{_var}/cache/iplist/

ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/ipblock

install -p -m 644 ipblock.conf \
	%{buildroot}%{_sysconfdir}/ipblock.conf
install -p -m 644 ipblock.lists \
	%{buildroot}%{_sysconfdir}/ipblock.lists
install -p -m 644 fedora/ipblock.pam \
	%{buildroot}%{_sysconfdir}/pam.d/ipblock
install -p -m 644 fedora/ipblock.security \
	%{buildroot}%{_sysconfdir}/security/console.apps/ipblock
install -p -m 755 fedora/ipblock.init \
	%{buildroot}%{_initrddir}/ipblock
install -p -m 755 debian/ipblock.cron.daily \
	%{buildroot}%{_sysconfdir}/cron.daily/ipblock
install -p -m 644 fedora/ipblock.desktop \
	%{buildroot}%{_datadir}/applications/ipblock.desktop
install -p -m 644 ipblock.png \
	%{buildroot}%{_datadir}/icons/ipblock.png

install -p -m 644 iplist.8 %{buildroot}%{_mandir}/man8/
install -p -m 644 ipblock.8 %{buildroot}%{_mandir}/man8/
install -p -m 644 allow.p2p %{buildroot}%{_var}/cache/iplist/

%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2415 |21cr|iplog-2.2.3-32
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Logs TCP, UDP, and ICMP connections to syslog
Name:		iplog
Version:	2.2.3
Release:	32
License:	GPL
Group:		Monitoring
URL:		http://ojnk.sourceforge.net
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.service
Source2:	%{name}.conf
Patch0:		%{name}-2.2.3-gcc-3.3.patch
BuildRequires:	pcap-devel

%description
iplog is a TCP/IP traffic logger. Currently, it is capable of logging TCP, UDP
and ICMP traffic. Adding support for other protocols should be relatively easy.
iplog contains a built-in packet filter, allowing for logging or excluding
packets that fit a given set of criteria.

%prep

%setup -q
%apply_patches

%build
%configure
%make

%install
%makeinstall

install -m0644 %{SOURCE1} -D %{buildroot}%{_unitdir}/%{name}.service
install -m0644 %{SOURCE2} -D %{buildroot}/%{_sysconfdir}/%{name}.conf

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%doc AUTHORS COPYING README TODO NEWS
%attr(0644,root,root) %{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_sbindir}/*
%{_mandir}/man5/*
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2416 |21cr|ippl-1.99.5-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Logs TCP, ICMP and UDP connections
Name:		ippl
Version:	1.99.5
Release:	18
License:	GPL
Group:		Monitoring
URL:		http://www.via.ecp.fr/~hugo/ippl/
Source0:	http://pltplp.net/ippl/archive/dev/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.log
Patch0:		%{name}-log.patch
Patch1:		ippl-1.99.5.printf.patch
Patch2:		ippl-1.99.5.nostrip.patch
Requires(pre): 	chkconfig
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
Buildrequires:	libpcap-devel
Buildrequires:	byacc
Buildrequires:	flex

%description
ippl is a configurable IP protocols logger. It currently logs incoming ICMP
messages, TCP connections and UDP datagrams. It is configured with
Apache-like rules and has a built-in DNS cache. It is aimed to replace
iplogger.

%prep

%setup -q

%patch0 -p0 -b .log
%patch1 -p1 -b .printf
%patch2 -p1 -b .nostrip

%build
%configure --with-user=nobody
%make

%install
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}/var
install -d %{buildroot}/var/log
install -d %{buildroot}/var/log/ippl

make ROOT=%{buildroot} install

touch %{buildroot}/var/log/ippl/all.log

install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/ippl

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%doc BUGS CREDITS HISTORY INSTALL LICENSE README TODO
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/ippl.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/ippl
# %dir /var/log/ippl
%config /var/log/ippl/all.log
%{_mandir}/man5/ippl.conf.*
%{_mandir}/man8/ippl.*
%{_sbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2417 |21cr|ipqalc-1.5.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ipqalc
Version:	1.5.3
Release:	2
Summary:	Small utility for IP address calculations
Group:		Networking/Other
License:	GPL
URL:		https://bitbucket.org/admsasha/ipqalc/
Source0:	https://bitbucket.org/admsasha/ipqalc/downloads/%{name}-%{version}.tar.gz

BuildRequires:	qt5-linguist-tools
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets) 

%description
Small utility for IP address calculations including broadcast
and network addresses as well as Cisco wildcard mask.

%prep
%setup -q

%build
%qmake_qt5
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2418 |21cr|iprange-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		iprange
Version:	1.0.4
Release:	1
Url:		http://firehol.org
License:	GPLv2+
Group:		Networking/Other
Summary:	Manage IP ranges utility
Source0:	https://github.com/firehol/iprange/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

%description
iprange - manage IP ranges.

%prep
%setup -q

# hack against gitignored iprange.spec.in
sed "s|.*iprange.spec||" ./configure.ac Makefile.am

%build
autoreconf -vfi
%configure --disable-man
%make_build

%install
%makeinstall_std

%files
%{_bindir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2419 |21cr|ipscan-3.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Angry IP network scanner
Name:		ipscan
Version:	3.9.1
Release:	1
License:	GPLv2
Group:		Networking/Other
Url:		https://github.com/angryip/ipscan
Source0:	https://github.com/angryip/ipscan/releases/download/%{version}/%{name}-linux64-%{version}.jar
Source1:	%{name}.svg
Recommends:	java-17-headless
ExclusiveArch:	%{x86_64}

%description
Angry IP Scanner is an IP address scanner tool.
It is used for scanning of IP addresses with the goal of finding alive hosts
and gathering interesting information about each of them.
It is very extensible, allowing it to be used for very wide range of purposes,
with the primary goal of being useful to network administrators.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_libdir}/%{name}/%{name}-linux64-%{version}.jar

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
cp -f %{SOURCE0} %{buildroot}%{_libdir}/%{name}
cp -f %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/scalable/apps

cat > %{buildroot}%{_bindir}/%{name} << 'EOF'
#!/bin/sh
java=$JAVA_HOME/bin/java
[ ! -e $java ] && java=java
$java --add-opens java.base/java.net=ALL-UNNAMED -jar %{_libdir}/%{name}/%{name}-linux64-%{version}.jar "$@"
[ $? != 0 ] && notify-send "You need Java/OpenJDK 11+ to run %{name}"
EOF
chmod +x %{buildroot}%{_bindir}/%{name}

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=Angry IP scanner
Comment=Fast and friendly network scanner
Comment[ru]=Быстрый и удобный сетевой сканер
Exec=%{name}
Icon=%{name}
Path=%{_libdir}/%{name}
NoDisplay=false
StartupNotify=true
Terminal=false
Categories=System;Network;Monitor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2420 |21cr|ip-sentinel-0.12-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A network ip guardian
Name:		ip-sentinel
Version:	0.12
Release:	10
License:	GPLv2
Group:		Networking/Other
Url:		https://www.nongnu.org/ip-sentinel/
Source0:	https://savannah.nongnu.org/download/ip-sentinel/%{name}-%{version}.tar.bz2
Patch0:		ip-sentinel-0.12-lsb.patch
Patch1:		ip-sentinel-configure.patch
Patch2:		ip-sentinel-0.12-pidfile.patch
Patch3:		ip-sentinel-0.12-glibc.patch
Requires(pre,post,preun,postun):	rpm-helper

%description
This program tries to prevent unauthorized usage of IPs within
the local Ethernet broadcastdomain by giving an answer to
ARP-requests. After receiving such a faked reply, the requesting
party stores the told MAC in its ARP-table and will send future
packets to this MAC. Because this MAC is invalid, the host with
the invalid IP can not be reached.

Features
- non-root execution in a chroot jail
- freely customizable IPs (netmasks, negations, ranges)

%files
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}*
%dir %{_localstatedir}/lib/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_initrddir}/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%ghost %{_var}/log/%{name}.out
%ghost %{_var}/log/%{name}.err

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/true

%post
touch %{_var}/log/%{name}.out
touch %{_var}/log/%{name}.err
%_post_service %{name}

%postun
%_postun_userdel %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

# Config
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_initrddir}

perl -pi -e 's/^# chkconfig:.*/# chkconfig: 345 95 05/' contrib/ip-sentinel.init
cp contrib/ip-sentinel.init %{buildroot}%{_initrddir}/%{name}
cat > %{buildroot}%{_sysconfdir}/sysconfig/%{name} <<EOF
IPS_USER=ip-sentinel
IPS_GROUP=ip-sentinel
# IPS_CHROOT=%_localstatedir/lib/%name
# IPS_IPFILE=ips.cfg
# IPS_LOGFILE=/var/log/ip-sentinel.out
# IPS_ERRFILE=/var/log/ip-sentinel.err
# IPS_OPTIONS=
# IPS_DEVICE=eth0

## Assign to yes if running a dietlibc-compiled version of ip-sentinel
## on a system using remote NSS for passwd-lookups (e.g. LDAP, NIS).
##
## When using a group which is not the effective group of the user,
## you will have to assign the numeric gid of this group to GROUP.
# IPS_NEEDS_NUMERIC_UID=
EOF

cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} << EOF
/var/log/%{name}.err /var/log/%{name}.out {
    missingok
    notifempty
    postrotate
        /bin/kill -HUP `/bin/cat /var/run/%{name}.pid`
    endscript
}
EOF

# Data
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
mkdir -p %{buildroot}%{_var}/log
touch %{buildroot}%{_var}/log/%{name}.out
touch %{buildroot}%{_var}/log/%{name}.err


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2421 |21cr|ipsvd-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Internet protocol service daemons
Name:		ipsvd
Version:	1.0.0
Release:	11
License:	BSD
Group:		System/Servers
Url:		http://smarden.org/ipsvd/
Source0:	http://smarden.org/ipsvd/%{name}-%{version}.tar.gz

%description
ipsvd is a set of internet protocol service daemons for Unix. It currently
includes a TCP/IP service daemon, and a UDP/IP service daemon.

An internet protocol service (ipsv) daemon waits for incoming connections on a
local socket; for new connections, it conditionally runs an arbitrary program
with standard input reading from the socket, and standard output writing to the
socket (if connected), to handle the connection. Standard error is used for
logging.

ipsv daemons can be told to read and follow pre-defined instructions on how to
handle incoming connections; based on the client's IP address or hostname, they
can run different programs, set a different environment, deny a connection, or
set a per host concurrency limit.

On Linux the network connection optionally can be encrypted using SSLv3.

Normally the ipsv daemons are run by a supervisor process, such as runsv from
the runit package, or supervise from the daemontools package.

ipsvd can be used to run services normally run by inetd, xinetd, or tcpserver.

%files
%doc %{name}-%{version}/package/CHANGES
%doc %{name}-%{version}/package/README
%doc %{name}-%{version}/doc/*.html
%attr(0755,root,root) /sbin/ipsvd-cdb
%attr(0755,root,root) /sbin/tcpsvd
%attr(0755,root,root) /sbin/udpsvd
%attr(0644,root,root) %{_mandir}/man5/ipsvd-instruct.5*
%attr(0644,root,root) %{_mandir}/man7/ipsvd.7*
%attr(0644,root,root) %{_mandir}/man8/ipsvd-cdb.8*
%attr(0644,root,root) %{_mandir}/man8/tcpsvd.8*
%attr(0644,root,root) %{_mandir}/man8/udpsvd.8*

#----------------------------------------------------------------------------

%prep
%setup -q -n net

%build
pushd %{name}-%{version}/src
    make
    make check
popd

%install
install -d %{buildroot}/sbin/
install -d %{buildroot}%{_mandir}/man{5,7,8}

pushd %{name}-%{version}
    for i in ipsvd-cdb tcpsvd udpsvd; do
	install -m0755 src/$i %{buildroot}/sbin/
    done
popd

install -m0644 %{name}-%{version}/man/*.5 %{buildroot}%{_mandir}/man5/
install -m0644 %{name}-%{version}/man/*.7 %{buildroot}%{_mandir}/man7/
install -m0644 %{name}-%{version}/man/*.8 %{buildroot}%{_mandir}/man8/
rm -f %{buildroot}%{_mandir}/man8/sslio.8*
rm -f %{buildroot}%{_mandir}/man8/sslsvd.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2422 |21cr|iptstate-2.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Display IP Tables state table information in a "top"-like interface
Name:		iptstate
Version:	2.2.7
Release:	1
Group:		Monitoring
License:	zlib/libpng License
URL:		http://www.phildev.net/iptstate/
Source0:	https://github.com/jaymzh/iptstate/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	ncurses-devel
BuildRequires:	gpm-devel
BuildRequires:	netfilter_conntrack-devel >= 0.0.50

%description
IP Tables State (iptstate) was originally written to impliment the "state top"
feature of IP Filter. "State top" displays the states held by your stateful
firewall in a "top"-like manner.

Since IP Tables doesn't have a built in way to easily display this information
even once, an option was added to just display the state table once and exit.

%prep
%setup -q

%build
%serverbuild
%make CXXFLAGS="$CFLAGS -Wall"

%install
%makeinstall PREFIX=%{buildroot}%{_prefix}

%files
%doc README.md BUGS Changelog LICENSE CONTRIB WISHLIST
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2423 |21cr|ipxping-0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The ipxping utility
Name:		ipxping
Version:	0.0
Release:	7
License:	Public Domain
Group:		Networking/Other
URL:		ftp://ftp.metalab.unc.edu/pub/Linux/system/Network/
Source0:	ftp://sunsite.unc.edu/pub/Linux/system/Network/%{name}-%{version}.tar.gz
Patch0:		ipxping-kernel-2.2.patch
Requires:	ipxutils

%description
This is Linux version of IPXPING wich was originally written for SUN machine
using the /dev/nit interface, by Stephen Clover <cloverst@kai.ee.cit.ac.nz>
and Justin Hoon <hoonju@kai.ee.cit.ac.nz>.

%prep

%setup -q -n %{name}
%patch0 -p0

%build
gcc %{optflags} -o ipxping ipxping-linux.c

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install ipxping %{buildroot}%{_bindir}
install ipxping.1 %{buildroot}%{_mandir}/man1

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc README*
%attr(0755,root,root) %{_bindir}/ipxping
%{_mandir}/man1/ipxping.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2424 |21cr|ipython-7.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An interactive computing environment for Python 
Name:		ipython
Version:	7.2.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://ipython.org
Source0:	https://github.com/ipython/ipython/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-simplegeneric
BuildRequires:	python3-pygments
BuildRequires:	python3-sphinx
BuildRequires:	python3-jinja2
BuildRequires:	python3-pexpect
BuildRequires:	python3-pyzmq
BuildRequires:	python3-tornado
Requires:	python3-pexpect
Requires:	python3-mglob
Requires:	python3-simplegeneric
Requires:	python3-traitlets
Requires:	python3-backcall
Requires:	python3-prompt_toolkit
Requires:	python3-decorator
Requires:	python3-ipython_genutils
Requires:	python3-backports.shutil_get_terminal_size
Requires:	python3-pickleshare
Requires:	python3-prompt_toolkit
Suggests:	python3-pygments
Suggests:	python3-sip
Suggests:	python3-qt4
Suggests:	python3-mpi4py
Suggests:	python3-tornado
Suggests:	python3-jinja2
Suggests:	python3-matplotlib
Suggests:	python3-pyzmq
%rename 	python3-ipython

%description
IPython provides a replacement for the interactive Python interpreter with
extra functionality.

Main features:
 * Comprehensive object introspection.
 * Input history, persistent across sessions.
 * Caching of output results during a session with automatically generated\
   references.
 * Readline based name completion.
 * Extensible system of 'magic' commands for controlling the environment and
   performing many tasks related either to IPython or the operating system.
 * Configuration system with easy switching between different setups (simpler
   than changing $PYTHONSTARTUP environment variables every time).
 * Session logging and reloading.
 * Extensible syntax processing for special purpose situations.
 * Access to the system shell with user-extensible alias system.
 * Easily embeddable in other Python programs.
 * Integrated access to the pdb debugger and the Python profiler.

%files
%{_bindir}/ipython
%{_bindir}/iptest
%{_bindir}/ipython3
%{_bindir}/iptest3
%{_mandir}/man1/*
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn ipython-%{version}
# delete bundling libs
pushd IPython/external

# use decorators of numpy
rm decorators/_decorators.py

popd

# Get rid of library shebangs
find . -type f -name "*.py" -exec sed -i '/#!\/usr\/bin\/env/d' {} \;

%build
%__python3 setup.py build

%install
%__python3 setup.py install -O1 --skip-build --root %{buildroot}
for f in %{buildroot}%{_mandir}/man1/*.1; do mv ${f} ${f%.1}3.1; done

chmod 644 %{buildroot}%{_mandir}/man1/*.1*
find %{buildroot} -name .buildinfo -exec rm -f {} \;
find %{buildroot} -name .git_commit_info.ini -exec rm -rf {} \;


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2425 |21cr|ircclient-qt-0.3.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A cross-platform IRC client library written with Qt 4
Name:		ircclient-qt
Version:	0.3.2
Release:	15
License:	GPLv2+
Group:		Networking/Other
Url:		http://bitbucket.org/jpnurmi/libircclient-qt/wiki/Home
Source0:	http://bitbucket.org/jpnurmi/libircclient-qt/downloads/libircclient-qt-src-%{version}.tar.gz
Patch0:		libircclient-qt-configure.diff
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(icu-i18n)

%description
IRCclient-qt is a fully Qt-based library to create IRC clients.

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for ircclient-qt
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
IRCclient-qt is a fully Qt-based library to create IRC clients.

%files -n %{libname}
%doc doc/*
%{_libdir}/libircclient-qt.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for the ircclient-qt library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package includes the header files you will need to compile applications
for %{name}.

%files -n %{devname}
%doc examples/*
%{qt4include}/ircclient-qt/*
%{_libdir}/libircclient-qt.so
%{qt4dir}/mkspecs/features/libircclient-qt.prf

#--------------------------------------------------------------------

%prep
%setup -q -n libircclient-qt-%{version}
%patch0 -p1 -b .fake_configure
chmod +x configure

%build
%configure
%qmake_qt4 -config release

%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2426 |21cr|ircd-2.11.1-p1.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define patchlevel 1
%if %patchlevel
  %define distname irc%{version}p%{patchlevel}
%else
  %define distname %{name}%{version}
%endif

Name:		ircd
Summary:	IRC server from ftp.irc.org
Version:	2.11.1
Release:	p1.2
License:	GPL
Group:		Networking/IRC
URl: 		http://www.irc.org/
Source0:	ftp://ftp.irc.org/irc/server/%{distname}.tar.bz2
Source1:	ircd.init
Source2:	README.urpmi
Source3:	ircd_crypter
BuildRequires:	zlib-devel
Requires(pre):	rpm-helper
Requires(post):	rpm-helper

%description
ircd is the server (daemon) program for the Internet Relay Chat Program. The 
ircd is a server in that its function is to "serve" the client program irc(1) 
with messages and commands. All commands and user messages are passed directly 
to the ircd for processing and relaying to other ircd sites.

%prep
%setup -q -n %{distname}

%build
%configure \
	--localstatedir=/var/run \
	--sysconfdir=%{_sysconfdir}/ircd
%make -C `support/config.guess` server

%install
rm -rf $RPM_BUILD_ROOT
%make install -C `support/config.guess` \
	server_bin_dir=$RPM_BUILD_ROOT%{_sbindir} \
	conf_man_dir=$RPM_BUILD_ROOT%{_mandir}/man5 \
	server_man_dir=$RPM_BUILD_ROOT%{_mandir}/man8 \
	ircd_conf_dir=$RPM_BUILD_ROOT%{_sysconfdir}/%{name} \
	ircd_var_dir=$RPM_BUILD_ROOT/var/run \
	ircd_log_dir=$RPM_BUILD_ROOT/var/log \
	install-server

install -m 711 %{SOURCE3} $RPM_BUILD_ROOT%{_sbindir}/ircd-crypter

install -d $RPM_BUILD_ROOT%{_initrddir}
install -m 750 %{SOURCE1} $RPM_BUILD_ROOT%{_initrddir}/%{name}

install -m 644 %{SOURCE1} doc/README.update.urpmi

%post
%_post_service %{name}
touch /var/log/auth
touch /var/log/opers
touch /var/log/rejects
touch /var/log/users
# update /etc/ircd/ircd.m4
DOMAIN=`egrep '^domain' /etc/resolv.conf | \
	sed -e 's/^domain[     ]*\([^   ]*\).*/\1/'`
HOST=`hostname | sed -e 's/\([a-zA-Z0-9\-]*\).*/\1/'`
sed "s/define(HOSTNAME,.*)/define(HOSTNAME,$HOST)/g" /etc/ircd/ircd.m4 >/etc/ircd/ircd.m4.new
sed "s/define(DOMAIN,.*)/define(DOMAIN,$DOMAIN)/g" /etc/ircd/ircd.m4.new >/etc/ircd/ircd.m4
rm -f /etc/ircd/ircd.m4.new


%preun
%_preun_service %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc/2.* doc/Authors doc/BUGS doc/ChangeLog doc/Etiquette doc/INSTALL.*
%doc doc/LICENSE doc/README doc/RELEASE* doc/SERVICE* doc/alt-irc-faq
%doc doc/iauth-internals.txt doc/m4macros
%doc doc/Juped doc/Nets doc/ISO-3166-1
%doc doc/README.update.urpmi
%{_sbindir}/*
%{_mandir}/man8/ircd.8.*
%{_mandir}/man8/iauth.8.*
%{_mandir}/man8/ircdwatch.8.*
%{_mandir}/man5/iauth.conf.5.*
%config(noreplace) %{_sysconfdir}/ircd/ircd.m4
%config(noreplace) %{_sysconfdir}/ircd/ircd.motd
%config(noreplace) %{_sysconfdir}/ircd/iauth.conf
%config(noreplace) %{_sysconfdir}/ircd/iauth.conf.example
%config(noreplace) %{_sysconfdir}/ircd/ircd.conf.example
%{_initrddir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2427 |21cr|irda-utils-0.9.18-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities for infrared communication between devices
Name:		irda-utils
Version:	0.9.18
Release:	19
License:	GPLv2+
Group:		System/Servers
Url:		http://irda.sourceforge.net/
Source0:	http://download.sourceforge.net/irda/%{name}-%{version}.tar.gz
Patch0:		irda-utils-0.9.18-chkconfig-pinit-i18n-rh2.patch
Patch2:		irda-utils-0.9.14-typo.patch
Patch4:		irda-utils-0.9.17-rootonly.patch
Patch5:		irda-utils-0.9.15-rh1.patch
Patch7:		irda-utils-0.9.16-tekram-ppc-buildfix.patch
Patch8:		irda-utils-0.9.18-fix-build.patch
Patch12:	irda-utils-0.9.16-io.patch
Patch13:	irda-utils-0.9.18-fix-install.patch
Patch14:	irda-utils-0.9.18-reorder-build.patch
Patch15:	irda-utils-0.9.18-noinline.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpci)
Requires(post,preun):	rpm-helper
ExclusiveArch:	%{ix86} x86_64

%description
IrDA(TM) (Infrared Data Association) is an industry standard for
wireless, infrared communication between devices. IrDA speeds range
from 9600 bps to 4 Mbps, and IrDA can be used by many modern devices
including laptops, LAN adapters, PDAs, printers, and mobile phones.

The Linux-IrDA project is a GPL'd implementation, written from
scratch, of the IrDA protocols. Supported IrDA protocols include
IrLAP, IrLMP, IrIAP, IrTTP, IrLPT, IrLAN, IrCOMM and IrOBEX.

The irda-utils package contains a collection of programs that enable
the use of IrDA protocols. Most IrDA features are implemented in the
kernel, so IrDA support must be enabled in the kernel before any IrDA
tools or programs can be used. Some configuration outside the kernel
is required, however, and some IrDA features, like IrOBEX, are
actually implemented outside the kernel.

%files
%doc README
%doc irattach/README.irattach
%doc irdadump/README.irdadump
%doc irdaping/README.irdaping
%doc tekram/README.tekram
%doc smcinit/README*
%{_sbindir}/irattach
%{_sbindir}/irdaping
%{_sbindir}/dongle_attach
%ifnarch ppc %{sunsparc} %{mips}
%{_sbindir}/findchip
%{_sbindir}/smcinit
%{_sbindir}/tosh1800-smcinit
%{_sbindir}/tosh2450-smcinit
%endif
%{_sbindir}/irdadump
%{_bindir}/irpsion5
%{_bindir}/irkbd
%{_sbindir}/irnetd
%{_initrddir}/irda
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/irda
#%config(noreplace) %{_sysconfdir}/sysconfig/network-scripts/ifcfg-irlan0
%{_mandir}/man?/*

%post
%_post_service irda

%preun
%_preun_service irda

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .irda.rc-fixes
%patch2 -p1 -b .typo
%patch4 -p1 -b .rootonly
%patch5 -p1 -b .rh1
%patch7 -p1 -b .tekram-ppc-buildfix
%patch8 -p1 -b .fix-build
%patch12 -p1 -b .io
%patch13 -p1 -b .fix-install
%patch14 -p1 -b .reorder
%patch15 -p1
# use gnu89 inline semantics
sed -i 's/CFLAGS=/CFLAGS=-fgnu89-inline /' */Makefile
# undeclared (first use in this function)
sed -i -e "s/SIOCGSTAMP/SIOCGARP/g" irdadump/irdadump.c

%build
%global optflags %{optflags} -std=gnu89
%serverbuild
%make all V=1

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_initrddir}

%makeinstall_std \
	ROOT="%{buildroot}" \
	MANDIR="%{buildroot}%{_mandir}"

for dir in irattach irdadump irdaping tekram; do
    cp $dir/README $dir/README.$dir
done
mv smcinit/README.Peri smcinit/README.tosh1800-smcinit
mv smcinit/README smcinit/README.smcinit
mv smcinit/README.Tom smcinit/README.Tom.scminit
mv smcinit/README.Rob smcinit/README.Rob.smcinit
mv smcinit/RobMiller-irda.html smcinit/README.Rob.smcinit.html

rm -f %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifcfg-irlan0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2428 |21cr|iredmail-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# iredmail has a config file named "core" which would be removed by clean_files
%define dont_clean_files 1

Name:		iredmail
Summary:	Free, Open Source Email Server Solution
Version:	0.9.3
Release:	1
Group:		System/Servers
License:	GPLv2
Url:		http://www.iredmail.org/
Source0:	https://bitbucket.org/zhb/iredmail/downloads/iRedMail-%{version}.tar.bz2
BuildArch:	noarch

%description
iRedMail is a zero cost, fully fledged, full-featured mail server solution.
All used packages are free and open source, provided by the Linux/BSD
distribution venders you trust.

%prep
%setup -qn iRedMail-%{version}

%build

%install
install -d %{buildroot}%{_datadir}/%{name}
cp -a * %{buildroot}%{_datadir}/%{name}
cat > %{name} <<EOF
#!/bin/bash
cd %{_datadir}/%{name}
exec bash iRedMail.sh
EOF
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}

# Dirty hack for iredmail to recognize our system
%post
echo 'RedHat 7' >> /etc/redhat-release

%postun
if [ "$1" = "0" ]; then
  # Uninstall
  sed -i '/RedHat 7/d' /etc/redhat-release
fi

%files
%{_bindir}/%{name}
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2429 |21cr|irrlamb-1.0.3r653-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define version 1.0.3r653

Summary:	3D physics game
Name:		irrlamb
Version:	%{version}
Release:	1
License:	GPLv3+
Group:		Games/Arcade
Url:		https://github.com/jazztickets/irrlamb
Source0:	https://codeload.github.com/jazztickets/irrlamb/%{name}-%{version}-src.tar.gz
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	vorbis-tools
BuildRequires:	audiere-devel
BuildRequires:	boost-devel
BuildRequires:	irrlicht-devel >= 1.8.4
BuildRequires:	pkgconfig(bullet)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(lua) >= 5.2
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	desktop-file-utils

%description
irrlamb is a 3D game that probably involves a lot of physics and
frustrating gameplay.

%files
%doc %{_docdir}/%{name}/
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/irrlamb.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i "s|\r||g" src/tinyxml2/tinyxml2.{cpp,h}
chmod -x src/tinyxml2/tinyxml2.{cpp,h}

%build
%cmake
%make

%install
%makeinstall_std -C build
desktop-file-edit --remove-category=PuzzleGame \
    --add-category=ArcadeGame \
    %{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_gamesbindir}
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_gamesbindir}/
rm -fr %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2430 |21cr|irrlicht-1.8.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major %(echo %{version} |cut -d. -f1)
%define	minor %(echo %{version} |cut -d. -f2)

%define	libname %mklibname %{name} %{major}
%define	develname %mklibname %{name} -d
%define	staticname %mklibname %{name} -d -s

%define	irrxmlmajor 1
%define	irrxml %mklibname IrrXML %{major}
%define	devirrxml %mklibname IrrXML -d


# (dm) donno wtf it hangs
%define	dont_check_elf_files 1

%bcond_with static

Summary:	The Irrlicht Engine SDK
Name:		irrlicht
Version:	1.8.4
Release:	2
License:	zlib/libpng License
Group:		Graphics
Url:		http://irrlicht.sourceforge.net/
Source0:	http://downloads.sourceforge.net/irrlicht/%{name}-%{version}.zip
Source100:	%{name}.rpmlintrc
# Various fixes, optflags, system libraries/headers
# http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=24076&highlight=
Patch0:		irrlicht-1.8-optflags.patch
# Get the code compiling
Patch1:		irrlicht-1.8-glext.patch
# Use system libaesgm
Patch2:		irrlicht18-libaesgm.patch
# Use improved fastatof from assimp
# Upstream applied a modified version of most of this.
# Patch3:	irrlicht18-fastatof-improvements-typefixes.patch
# Make libIrrXML.so
Patch4:		irrlicht-1.8-irrXML-shared-library.patch
# Fix issue with definition of LOCALE_DECIMAL_POINTS
Patch5:		irrlicht-1.8-fix-locale-decimal-points.patch
# Fix build with Mesa 10
Patch6:		irrlicht-1.8.1-mesa10.patch
# Use RPM_LD_FLAGS
Patch7:		irrlicht-1.8.4-ldflags.patch
# sysctl.h was removed from glibc in f33.
# it is only actually used on OSX, so we just conditionalize the include to match the call
Patch8:		irrlicht-1.8.4-no-sysctl-on-linux.patch
Patch9:		irrlicht-1.7.1-GUIEditor-makefile.patch
Patch10:	irrlicht-1.8-debian-link-against-needed-libs.patch
Patch11:	irrlicht-tool-link.patch
BuildRequires:	imagemagick
BuildRequires:	glibc-devel
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	libaesgm-devel
Requires:	%{name}-media = %{version}

%description
The Irrlicht Engine is an open source high performance realtime 3D engine
written and usable in C++ and also available for .NET languages. It is
completely cross-platform, using D3D, OpenGL and its own software renderer,
and has all of the state-of-the-art features which can be found in commercial
3d engines.

We've got a huge active community, and there are lots of projects in
development that use the engine. You can find enhancements for Irrlicht all
over the web, like alternative terrain renderers, portal renderers, exporters,
world layers, tutorials, editors, language bindings for java, perl, ruby,
basic, python, lua, and so on. And best of all: It's completely free.

%files
%doc changes.txt
%doc examples/09.Meshviewer/tutorial.html
%{_bindir}/irrlicht-GUIEditor
%{_bindir}/irrlicht-FontTool
%{_bindir}/irrlicht-Meshviewer
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for Irrlicht 3D engine
Group:		System/Libraries

%description -n %{libname}
Shared libraries for Irrlicht 3D engine.

%files -n %{libname}
%doc changes.txt
%{_libdir}/libIrrlicht.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for Irrlicht 3D engine
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{develname}
Development files for Irrlicht 3D engine.

%files -n %{develname}
%doc changes.txt
%dir %{_includedir}/irrlicht
%{_includedir}/irrlicht/*.h
%exclude %{_includedir}/%{name}/fast_atof.h
%exclude %{_includedir}/%{name}/heapsort.h
%exclude %{_includedir}/%{name}/irrArray.h
%exclude %{_includedir}/%{name}/irrString.h
%exclude %{_includedir}/%{name}/irrTypes.h
%exclude %{_includedir}/%{name}/irrXML.h
%{_libdir}/libIrrlicht.so

#-----------------------------------------------------------------------------

%package -n %{irrxml}
Summary:	Simple and fast XML parser for C++
Group:		System/Libraries
Provides:	irrXML18 = %{EVRD}

%description -n %{irrxml}
irrXML is a simple and fast open source xml parser for C++.

%files -n %{irrxml}
%doc readme.txt
%{_libdir}/libIrrXML.so.%{irrxmlmajor}*

#-----------------------------------------------------------------------------

%package -n %{devirrxml}
Summary:	Development headers and libraries for irrXML
Group:		Development/C++
Requires:	%{irrxml} = %{EVRD}
Provides:	irrXML18-devel = %{EVRD}
Provides:	irrXML-devel = %{EVRD}

%description -n %{devirrxml}
Development headers and libraries for irrXML.

%files -n %{devirrxml}
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/fast_atof.h
%{_includedir}/%{name}/heapsort.h
%{_includedir}/%{name}/irrArray.h
%{_includedir}/%{name}/irrString.h
%{_includedir}/%{name}/irrTypes.h
%{_includedir}/%{name}/irrXML.h
%{_libdir}/libIrrXML.so

#-----------------------------------------------------------------------------


%if %{with static}
%package -n %{staticname}
Summary:	Static files for Irrlicht 3D engine
Group:		Development/C++
Requires:	%{develname}  = %{EVRD}

%description -n %{staticname}
Static files for Irrlicht 3D engine.

%files -n %{staticname}
%doc changes.txt
%{_libdir}/lib*.a
%endif

#-----------------------------------------------------------------------------

%package examples
Summary:	Demos and examples for the Irrlicht 3D engine
Group:		Graphics
Requires:	%{libname} = %{version}

%description examples
Demos and examples for the Irrlicht 3D engine.

%files examples
%dir %{_docdir}/Irrlicht-examples
%{_docdir}/Irrlicht-examples/*
%exclude %{_bindir}/irrlicht-GUIEditor
%exclude %{_bindir}/irrlicht-FontTool
%exclude %{_bindir}/irrlicht-Meshviewer
%{_bindir}/irrlicht-*

#-----------------------------------------------------------------------------

%package media
Summary:	Media files for Irrlicht 3D engine
Group:		Graphics
Requires:	%{name} = %{version}

%description media
Media files needed by Irrlicht tools and demos.

%files media
%doc changes.txt
%dir %{_datadir}/irrlicht
%{_datadir}/irrlicht/*

#-----------------------------------------------------------------------------

%package doc
Summary:	User documentation for the Irrlicht 3D engine
Group:		Graphics
Requires:	%{libname} = %{version}

%description doc
User documentation for the Irrlicht 3D engine.

%files doc
%doc changes.txt
%doc doc/html doc/aesGladman.txt doc/irrlicht-license.txt doc/readme.txt
%doc doc/upgrade-guide.txt

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# really not needed :)
rm -r examples/14.Win32Window
rm -r source/Irrlicht/MacOSX
# (tpg) use system wide libs, see patch2
rm -rf source/Irrlicht/jpeglib source/Irrlicht/zlib source/Irrlicht/libpng source/Irrlicht/bzip2 
#source/Irrlicht/lzma source/Irrlicht/aesGladman
#find source/Irrlicht -name '*.cpp' | xargs sed -i -e 's|zlib/zlib.h|zlib.h|g' -e 's|libpng/png.h|png.h|g' -e 's|jpeglib/jerror.h|jerror.h|g' -e 's|jpeglib/jpeglib.h|jpeglib.h|g'
#find source/Irrlicht -name '*.h'   | xargs sed -i -e 's|jpeglib/jpeglib.h|jpeglib.h|g' -e 's|libpng/png.h|png.h|g' -e 's|jpeglib/jerror.h|jerror.h|g'

# needs irrKlang
rm -r examples/Demo
sed -i -e 's|Demo||g' examples/buildAllExamples.sh

# media path
sed -i -e 's|../../media/|%{_datadir}/irrlicht/|g' tools/GUIEditor/main.cpp
find ./examples -name *.cpp | xargs sed -i -e 's|../../media/|%{_datadir}/irrlicht/|g'

# (tpg) clean this mess
for i in include/*.h doc/upgrade-guide.txt source/Irrlicht/*.cpp source/Irrlicht/*.h source/Irrlicht/Makefile; do
	sed -i 's/\r//' $i
	chmod -x $i
	touch -r changes.txt $i
done

# Upstream forgot to increment VERSION_RELEASE to 1 in 1.8.1
sed -i 's|VERSION_RELEASE = 0|VERSION_RELEASE = 1|g' source/Irrlicht/Makefile

sed -i 's/\r//' readme.txt
iconv -o readme.txt.iso88591 -f iso88591 -t utf8 readme.txt
mv readme.txt.iso88591 readme.txt

# https://bugzilla.redhat.com/show_bug.cgi?id=1035757
sed -i -e '/_IRR_MATERIAL_MAX_TEXTURES_/s/4/8/' include/IrrCompileConfig.h

%build
%setup_compile_flags
export LIBDIR="%{_libdir}"
export PREFIX="%{_prefix}"
export INCLUDEDIR="%{_includedir}"

%if %{with static}
# build static library
%make -C source/Irrlicht \
    CFLAGS="%{optflags}" \
    CXXFLAGS="%{optflags}" \
    LDFLAGS="%{ldflags}"

# clean it
%make -C source/Irrlicht clean
%endif

# build shared library
%make -C source/Irrlicht sharedlib NDEBUG=1 \
%ifnarch ix86
    CFLAGS="%{optflags} -fPIC" \
    CXXFLAGS="%{optflags} -fPIC"
%else
    CFLAGS="%{optflags}" \
    CXXFLAGS="%{optflags}"
%endif

# create necessary links to avoid linker-error for tools/examples
pushd lib/Linux
ln -s libIrrlicht.so.%{version} libIrrlicht.so.%{major}.%{minor}
ln -s libIrrlicht.so.%{major}.%{minor} libIrrlicht.so
ln -s libIrrXML.so.%{version} libIrrXML.so.1
ln -s libIrrlicht.so.%{version} libIrrlicht.so.1
popd

# build tools
pushd tools
cd GUIEditor
%make CFLAGS="%{optflags}" CXXFLAGS="%{optflags} -ffast-math"
cd ../IrrFontTool/newFontTool
%make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
popd

# build examples
pushd examples
sh buildAllExamples.sh
popd


%install
mkdir -p %{buildroot}%{_libdir}

%if %{with static}
install -m 644 lib/Linux/libIrrlicht.a %{buildroot}%{_libdir}
%endif

make -C source/Irrlicht INSTALL_DIR=%{buildroot}%{_libdir} install

pushd %{buildroot}%{_libdir}
ln -s libIrrlicht.so.%{irrlicht_version} libIrrlicht.so.1
ln -s libIrrXML.so.%{irrlicht_version} libIrrXML.so.1
popd

# includes
mkdir -p %{buildroot}%{_includedir}/irrlicht
cp -f include/*.h %{buildroot}%{_includedir}/irrlicht

# tools
install -dm 755 %{buildroot}%{_bindir}
install -m 755 bin/Linux/GUIEditor %{buildroot}%{_bindir}/irrlicht-GUIEditor
install -m 755 bin/Linux/FontTool %{buildroot}%{_bindir}/irrlicht-FontTool

# examples
ex_list=`ls -1 bin/Linux/??.*`
for i in $ex_list; do
	FE=`echo $i | awk 'BEGIN { FS="." }{ print $2 }'`
	    install -m 755 $i %{buildroot}%{_bindir}/irrlicht-$FE
done

# examples-docs
pushd examples
install -dm 755 %{buildroot}%{_docdir}/Irrlicht-examples

ex_dir=`find . -name tutorial.html`
for i in $ex_dir; do
	dir_name=`dirname $i`
	install -dm 755 %{buildroot}%{_docdir}/Irrlicht-examples/$dir_name
	install -m 644 $i %{buildroot}%{_docdir}/Irrlicht-examples/$dir_name
done
rm -r %{buildroot}%{_docdir}/Irrlicht-examples/09.Meshviewer
popd

# media
mkdir -p %{buildroot}%{_datadir}/irrlicht
install -m 644 media/* %{buildroot}%{_datadir}/irrlicht

# icons
install -dm 755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert examples/09.Meshviewer/icon.ico -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/irrlicht-Meshviewer.png
convert bin/Win32-VisualStudio/irrlicht.ico -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/irrlicht.png

convert examples/09.Meshviewer/icon.ico -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/irrlicht-Meshviewer.png
convert bin/Win32-VisualStudio/irrlicht.ico -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/irrlicht.png

convert examples/09.Meshviewer/icon.ico -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/irrlicht-Meshviewer.png
convert bin/Win32-VisualStudio/irrlicht.ico -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/irrlicht.png

# menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/irrlicht-GUIEditor.desktop << EOF
[Desktop Entry]
Name=Irrlicht GUI Editor
Comment=Irrlicht GUI Editor
Exec=irrlicht-GUIEditor
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=3DGraphics;GTK;
EOF

cat > %{buildroot}%{_datadir}/applications/irrlicht-FontTool.desktop << EOF
[Desktop Entry]
Name=Irrlicht Font Tool
Comment=Irrlicht Font Tool
Exec=irrlicht-FontTool
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=3DGraphics;GTK;
EOF

cat > %{buildroot}%{_datadir}/applications/irrlicht-Meshviewer.desktop << EOF
[Desktop Entry]
Name=Irrlicht Mesh Viewer
Comment=Irrlicht Mesh Viewer
Exec=irrlicht-Meshviewer
Icon=irrlicht-Meshviewer
Terminal=true
Type=Application
StartupNotify=true
Categories=3DGraphics;GTK;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2431 |21cr|irrlichtmt-1.9.0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname irrlicht
%define	oversion %(echo %{version} |rev |sed "s/\\./tm/" |rev)

%define	major 1

%define	libname %mklibname %{name} %{major}
%define	develname %mklibname %{name} -d
%define	staticname %mklibname %{name} -d -s

Summary:	The Irrlicht Engine SDK (minetest version)
Name:		irrlichtmt
Version:	1.9.0.10
Release:	1
License:	zlib/libpng License
Group:		Graphics
Url:		https://github.com/minetest/irrlicht
Source0:	https://github.com/minetest/irrlicht/archive/%{oversion}.tar.gz?/%{oname}-%{oversion}.tar.gz
Source100:	irrlichtmt.rpmlintrc
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	imagemagick
BuildRequires:	bzip2-devel
BuildRequires:	glibc-devel
BuildRequires:	libaesgm-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)

%description
The Irrlicht Engine is an open source high performance realtime 3D engine
written and usable in C++ and also available for .NET languages. It is
completely cross-platform, using D3D, OpenGL and its own software renderer,
and has all of the state-of-the-art features which can be found in commercial
3d engines.

We've got a huge active community, and there are lots of projects in
development that use the engine. You can find enhancements for Irrlicht all
over the web, like alternative terrain renderers, portal renderers, exporters,
world layers, tutorials, editors, language bindings for java, perl, ruby,
basic, python, lua, and so on. And best of all: It's completely free.

It's minetest version.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for Irrlicht 3D engine (minetest version)
Group:		System/Libraries

%description -n %{libname}
Shared libraries for Irrlicht 3D engine (minetest version).

%files -n %{libname}
%{_libdir}/libIrrlichtMt.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for Irrlicht 3D engine (minetest version)
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{develname}
Development files for Irrlicht 3D engine (minetest version).

%files -n %{develname}
%doc README.md
%{_includedir}/%{name}
%{_libdir}/libIrrlichtMt.so
%{_libdir}/cmake/IrrlichtMt

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{oversion}

chmod -x include/mt_opengl.h
chmod -x source/Irrlicht/mt_opengl_loader.cpp
# https://bugzilla.redhat.com/show_bug.cgi?id=1035757
sed -i "/_IRR_MATERIAL_MAX_TEXTURES_/ s/4/8/" include/IrrCompileConfig.h

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2432 |21cr|irssistats-0.75-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	This tool generates HTML IRC stats based on irssi logs
Name:		irssistats
Version:	0.75
Release:	8
License:	GPLv2+
Group:		Networking/IRC
Url:		http://royale.zerezo.com/irssistats/
Source0:	http://royale.zerezo.com/%{name}/%{name}-%{version}.tar.gz

%description
irssistats is a tool that make HTML stats from irssi logfiles.
The statistics generated display many useful and funny informations
about the channel.

%files
%doc COPYING README
%{_bindir}/irssistats
%{_mandir}/man1/*
%{_datadir}/%{name}
%{_datadir}/doc/%{name}/irssistats.sgml
%{_datadir}/doc/%{name}/sample.configfile
%{_datadir}/doc/%{name}/sample.nickfile

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
make install PRE=%{buildroot}%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2433 |21cr|irssi-xmpp-0.54-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	An irssi Module to Connect to the Jabber Network
Name:		irssi-xmpp
Version:	0.54
Release:	1
License:	GPLv2+
Group:		Networking/IRC
Url:		http://cybione.org/~irssi-xmpp/
Source0:	https://github.com/cdidier/irssi-xmpp/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		gtimeval-build-fix.patch
BuildRequires:	pkgconfig(loudmouth-1.0)
BuildRequires:	irssi-devel >= 0.8.13
Requires:	irssi >= 0.8.13

%description
irssi-xmpp is a irssi plugin to connect to the jabber network.

%files
%license COPYING 
%doc NEWS TODO docs/*
%{_libdir}/irssi/modules/libfe_xmpp.so
%{_libdir}/irssi/modules/libxmpp_core.so
%{_libdir}/irssi/modules/libtext_xmpp.so
%{_datadir}/irssi/help/presence
%{_datadir}/irssi/help/roster
%{_datadir}/irssi/help/xmppconnect
%{_datadir}/irssi/help/xmppserver

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%setup_compile_flags
export IRSSI_INCLUDE="%{_includedir}/irssi" PREFIX=%{_prefix} IRSSI_LIB=%{_libdir}/irssi
%make

%install
export IRSSI_INCLUDE="%{_includedir}/irssi" PREFIX=%{_prefix} IRSSI_LIB=%{_libdir}/irssi
%makeinstall_std

rm -fr %{buildroot}%{_datadir}/doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2434 |21cr|isap-server-1.6-1.git936701.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 936701554aa3cf25a9f92de59f79bc783fbd58ca
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8): Серверная часть системы судейства соревнований по Тхэквондо
Summary:	Server part for system Taekwondo WT competitions
Name:		isap-server
Version:	1.6
Release:	1.git%{commit_short}.1
License:	GPL
Group:		Networking/Other
Url:		https://hub.mos.ru/isap/isap-server
Vendor:		ISAP
Source0:	https://hub.mos.ru/isap/isap-server/-/archive/%{commit}/%{name}-%{commit}.tar.gz

BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: qt5-linguist-tools
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Sql)
BuildRequires: pkgconfig(Qt5TextToSpeech)
BuildRequires: pkgconfig(Qt5Qml)

Requires: mariadb
Requires: mariadb-client
Requires: %{_lib}qt5sql5%{_isa}
Requires: %{_lib}qt5sql5-mysql%{_isa}
Requires: %{_lib}qt5texttospeech5%{_isa}


%description
%summary.

%description -l ru_RU.UTF-8
Программное обеспечение сервера для сбора оценок, отображения, ранжирования на соревнованиях по Тхэквондо WT

Настройка после установки:

sudo isap-server-config
и ответить y на вопрос изменения пароля root

Пульт для телефона на Android устанаваливается из Rustore:
https://apps.rustore.ru/app/ru.poomsae.isap_android

%files
%{_bindir}/%{name}
%{_sbindir}/isap-server-config
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#------------------------------------------------------------------

%prep
%setup -n %{name}-%{commit}

%build
%qmake_qt5 *.pro
%make_build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps

install -p -m755 %{name} %{buildroot}%{_bindir}
install -p -m755 config/isap-server-config.sh %{buildroot}%{_sbindir}/isap-server-config
install -p -m644 config/apulti.sql %{buildroot}%{_datadir}/%{name}
install -m644 config/%{name}.desktop %{buildroot}%{_datadir}/applications
install -m644 config/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2435 |21cr|isdn-light-0.8-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Networking with the isdn subsystem, light version
Name:		isdn-light
Version:	0.8
Release:	30
License:	GPL
Group:		System/Kernel and hardware
URL:		http://cvs.mandriva.com
Source:		%{name}-%{version}.tar.bz2
BuildArch:	noarch
Requires:	isdn4k-utils
Conflicts:	isdn4net
ExcludeArch:	aarch64

%description
This package provides the minimal scripts to do networking with isdn4linux.
It is simple, clean and tiny. Ideal for small configuration.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
%makeinstall
rm -f %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifcfg-ippp0

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%dir %{_sysconfdir}/isdn/
%config(noreplace) %{_sysconfdir}/isdn/isdnctrl.conf
%config(noreplace) %{_sysconfdir}/isdn/isdn1B.conf
%config(noreplace) %{_sysconfdir}/isdn/isdn2B.conf
%config(noreplace) %{_sysconfdir}/ppp/ioptions
%config(noreplace) %{_sysconfdir}/ppp/ioptions1B
%config(noreplace) %{_sysconfdir}/ppp/ioptions2B
%config(noreplace) %{_sysconfdir}/sysconfig/network-scripts/ifup-ippp
%config(noreplace) %{_sysconfdir}/sysconfig/network-scripts/ifdown-ippp
%doc README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2436 |21cr|isight-firmware-tools-1.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags   %{nil}


Summary:	Firmware extraction tools for Apple Built-in iSight camera
Name:		isight-firmware-tools
Version:	1.6
Release:	5
License:	GPLv2+
Group:		System/Base
URL:		http://launchpad.net/isight-firmware-tools/
Source0:	http://launchpad.net/isight-firmware-tools/main/1.6/+download/%{name}-%{version}.tar.gz
Patch0:		isight-firmware-tools-ift-load-path.patch
Requires:	udev
BuildRequires:	gettext
BuildRequires:	glib2-devel
BuildRequires:	libgcrypt-devel
BuildRequires:	libusb-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	intltool

%description
iSight Firmware Tools provide tools to manipulate firmware for Built-in iSight
cameras found on Apple machines since iMac G5 (November 2005).

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_infodir}/dir

# Use doc instead.
rm -rf %{buildroot}%{_docdir}/%{name}

%find_lang %{name}

%files -f %{name}.lang
%config %{_sysconfdir}/udev/rules.d/isight.rules
%doc AUTHORS
%doc ChangeLog
%doc COPYING
%doc HOWTO
%doc NEWS
%doc README
%{_bindir}/ift-export
%{_bindir}/ift-extract
%{_infodir}/ift-export.info.*
%{_infodir}/ift-extract.info.*
%{_mandir}/man1/ift-export.1.*
%{_mandir}/man1/ift-extract.1.*
/lib/udev/ift-load

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2437 |21cr|isoimagewriter-0.8-0.20230122.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20230122
%define gitcommit 3e0c923f3608177812a71a7802bd15d91b8aa97f

Summary:	Program to write hybrid ISO files onto USB disks
Name:		isoimagewriter
Version:	0.8
Release:	0.%{git}.3
License:	GPLv3+
Group:		File tools
Url:		https://invent.kde.org/utilities/isoimagewriter
# git clone https://invent.kde.org/utilities/isoimagewriter.git
# git archive --format=tar.gz -o ../isoimagewriter-0.8-$(date +%Y%m%d).tar.gz --prefix=isoimagewriter-master-%gitcommit/ master
Source0:	https://invent.kde.org/utilities/isoimagewriter/-/archive/%{gitcommit}/isoimagewriter-%{gitcommit}.tar.gz?/%{name}-%{version}-%{git}.tar.gz
Source10:	%{name}.pot
Source11:	%{name}.po
Patch0:		isoimagewriter-i18n.patch
BuildRequires:	ninja
BuildRequires:	cmake(ECM)
BuildRequires:	cmake(KF5I18n)
BuildRequires:	cmake(KF5CoreAddons)
BuildRequires:	cmake(KF5WidgetsAddons)
BuildRequires:	cmake(KF5IconThemes)
BuildRequires:	cmake(KF5Archive)
BuildRequires:	cmake(KF5Crash)
BuildRequires:	cmake(KF5Auth)
BuildRequires:	cmake(KF5Solid)
BuildRequires:	cmake(Gpgmepp)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kauth

%description
ISO Image Writer is a tool to write a .iso file to a USB disk.

%prep
%autosetup -n %{name}-%{gitcommit} -p1

# update ru translation
cp -f %{SOURCE11} po/ru/

%build
%cmake -DROSA_BRANDING=ON
%make_build

%install
%make_install -C build

%find_lang isoimagewriter

%files -f isoimagewriter.lang
%dir %{_datadir}/%{name}
%{_bindir}/%{name}
%{_kde5_libexecdir}/kauth/%{name}_helper
%{_datadir}/applications/org.kde.isoimagewriter.desktop
%{_datadir}/dbus-1/system-services/org.kde.isoimagewriter.service
%{_datadir}/dbus-1/system.d/org.kde.isoimagewriter.conf
%{_datadir}/%{name}/*.gpg
%{_datadir}/metainfo/org.kde.isoimagewriter.appdata.xml
%{_datadir}/polkit-1/actions/org.kde.isoimagewriter.policy
%{_datadir}/imagewriter/logo-rosa.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2438 |21cr|isomaster-1.3.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An easy to use GUI CD image editor
Name:		isomaster
Version:	1.3.16
Release:	1
Source0:	http://littlesvr.ca/isomaster/releases/%{name}-%{version}.tar.bz2
Patch0:		isomaster-1.3.13-iniparser.patch
License:	GPLv2
Group:		Archiving/Cd burning
URL:		http://littlesvr.ca/isomaster/
BuildRequires:	gtk+2-devel
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	iniparser-devel

%description
ISO Master allows to extract files from an ISO, add files to an ISO,
and create bootable ISOs - all in a graphical user interface.
It can open ISO, NRG, and some MDF files but can only save as ISO.

%prep
%setup -q
%apply_patches

# use system iniparser
sed -i -e 's,#\(USE_SYSTEM_INIPARSER\),\1,' Makefile

# fix prefix
sed -i -e 's,\(PREFIX .*\)/usr/local,\1%{_prefix},' Makefile

# more verbose build
sed -i -e 's,@\($(CC)\),\1,g' Makefile

# don't rebuid at install time
sed -i -e 's/^install:\s*all/install:/' Makefile

%build
%setup_compile_flags
%make

%install
%makeinstall_std

%find_lang %{name}

perl -pi -e 's,/usr/share/%{name}/icons/isomaster.png,%{name},g' %{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{48x48,32x32,16x16}/apps
convert -scale 48 icons/isomaster.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png 
convert -scale 32 icons/isomaster.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 icons/isomaster.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

%files -f %{name}.lang
%doc *.TXT
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2439 |21cr|istodo-1.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Organizer for students
Name:		istodo
Version:	1.3.0
Release:	5
License:	GPLv3+
Group:		Education
Url:		http://istodo.ru/
# Repack from http://dev.istodo.ru/istodo-desktop/get/v%{version}.tar.bz2
Source0:	%{name}-%{version}.tar.bz2
Patch0:		istodo-1.3.0-no-iOS.patch
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	qt5-database-plugin-sqlite

%description
iStodo is an organizer for students with scheduling and planning features.

%files
%doc linux_deploy_1.0/source_amd64/license.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%qmake_qt5
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 desktop/iStodo %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
install -m 0644 linux_deploy_1.0/source_amd64/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
sed -i s,"Version=.*","Version=1.0", %{buildroot}%{_datadir}/applications/%{name}.desktop

# Install icons of various sizes.
for s in 256 128 64 48 32 ; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
    cp linux_deploy_1.0/source_amd64/icons/${s}x${s}/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2440 |21cr|isync-1.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to synchronize IMAP mailboxes with local maildir folders
Name:		isync
Version:	1.4.4
Release:	1
License:	GPLv2
Group:		Networking/Mail
Url:		http://isync.sf.net/
Source0:	https://sourceforge.net/projects/isync/files/isync/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(openssl)

%description
isync is a command line utility which synchronizes mailboxes; currently Maildir
and IMAP4 mailboxes are supported. New messages, message deletions and flag
changes can be propagated both ways. It is useful for working in disconnected
mode, such as on a laptop or with a non-permanent internet collection (dIMAP).

%files
%doc AUTHORS COPYING NEWS README TODO ChangeLog src/mbsyncrc.sample
%attr(0755,root,root) %{_bindir}/mbsync
%attr(0755,root,root) %{_bindir}/mdconvert
%attr(0755,root,root) %{_bindir}/mbsync-get-cert
%attr(0644,root,root) %{_mandir}/man1/mbsync.1*
%attr(0644,root,root) %{_mandir}/man1/mdconvert.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/doc/isync


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2441 |21cr|itcl-4.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh)}
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}

%define major       4
%define libname     %mklibname %{name} %{major}
%define devname     %mklibname %{name} -d
%define sdevname    %mklibname -d -s %{name} %{major}

Name:           itcl
Version:	4.2.2
Release:	1
Summary:        Object oriented extensions to Tcl and Tk
Group:          Development/Other
License:        TCL
URL:            http://sourceforge.net/projects/incrtcl/files
Source0:        https://sourceforge.net/projects/incrtcl/files/%5Bincr%20Tcl_Tk%5D-4-source/itcl%20%{version}/%{name}%{version}.tar.gz
BuildRequires:  pkgconfig(tcl)
Requires:       %{libname} = %{EVRD}

%description
[incr Tcl] is Tcl extension that provides object-oriented features that are
missing from the Tcl language.

%files
%doc license.terms
%dir %{tcl_sitearch}
%{tcl_sitearch}/%{name}%{version}/*.tcl
%{_mandir}/mann/*

#-------------------------------------------------------------

%package -n %{libname}
Summary:    Library for linking against itcl
Group:      System/Libraries
Requires:   %{name} = %{EVRD}

%description -n %{libname}
%{summary}.

%files -n %{libname}
%{tcl_sitearch}/%{name}%{version}/lib%{name}%{version}.so*

#-----------------------------------------------------------------

%package -n %{devname}
Summary:    Development headers for linking against itcl
Group:      Development/Other
Requires:   %{libname} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}
Provides:   lib%{name}-devel = %{EVRD}

%description -n %{devname}
%{summary}.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so
%{tcl_sitearch}/%{name}%{version}/itclConfig.sh

#-----------------------------------------------------------------

%package -n %{sdevname}
Summary:    Static library for linking against itclstub
Group:      Development/Other
Requires:   %{libname} = %{EVRD}
Provides:   %{name}-static-devel = %{EVRD}
Provides:   lib%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
%{summary}.

%files -n %{sdevname}
%{tcl_sitearch}/%{name}%{version}/*.a

#-----------------------------------------------------------------

%prep
%setup -q -n %{name}%{version}

%build
autoreconf -fi
%configure  \
        --disable-rpath \
        --enable-symbols \
        --libdir=%{tcl_sitearch} \
        --datadir=%{_libdir}/tcl%{tcl_version}}
%make 

%install
%makeinstall_std

chmod 755 %{buildroot}%{tcl_sitearch}/%{name}%{version}/lib%{name}%{version}.so

pushd %{buildroot}%{_libdir}
%__ln_s %{tcl_sitearch}/%{name}%{version}/lib%{name}%{version}.so
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2442 |21cr|iTest-1.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Testing system
Name: iTest
Version: 1.4.1
Release: 5
License: GPL
Group: Education
URL: http://itest.sourceforge.net/
Source: %{name}-%{version}-src.tar.gz
Patch0:	 itest-1.4-qt4.7.diff

BuildRequires: qt4-common qt4-devel

%description
iTest is a client-server appplication for creation and running tests and exams.

%prep
%setup -qn %{name}-%{version}-src -q
%patch0 -p1

%build
cd iTestServer
%qmake_qt4 -config release
%qt4bin/lrelease iTestServer.pro
cd ..
cd iTestClient
%qmake_qt4 -config release
%qt4bin/lrelease iTestClient.pro
cd ..
%qmake_qt4 -config release
make

%install
rm -rf %{buildroot}

install -m 755 -d %{buildroot}%{_bindir}
install -m 755 bin/iTestClient $RPM_BUILD_ROOT%{_bindir}
install -m 755 bin/iTestServer $RPM_BUILD_ROOT%{_bindir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 644 *.png $RPM_BUILD_ROOT%{_iconsdir}

%makeinstall

install -dm 755 %{buildroot}%{_datadir}/applications
cat > itest.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
GenericName=iTests & iExams
GenericName[ru]=Экзаменатор iTest
Comment=iTest -  Tests & Exams Program by Qt4
Comment[ru]=Мощная программа для проведения тестов
Exec=%{_bindir}/iTestServer
Icon=%{_iconsdir}/itdb.png
MimeType=application/x-edu;application/x-edugallery
Name=iTestServer
DocPath=
Path=%{_bindir}
Terminal=false
Type=Application
X-DCOP-ServiceType=Multi
Categories=Qt;KDE;Education;Teaching;X-MandrivaLinux-MoreApplications-Education-Other;
EOF
install -m 0644 itest.desktop \
%{buildroot}%{_datadir}/applications/itest.desktop

install -dm 755 %{buildroot}%{_datadir}/applications
cat > itestwri.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
GenericName=iTests & iExams client
GenericName[ru]=Клиент для экзаменатора iTest
Comment=iTest -  Tests & Exams client by Qt4
Comment[ru]=Клиент для проведения тестов iTest
Exec=%{_bindir}/iTestClient
Icon=%{_iconsdir}/itos.png
MimeType=application/x-edu;application/x-edugallery
Name=iTestClient
DocPath=
Path=%{_bindir}
Terminal=false
Type=Application
X-DCOP-ServiceType=Multi
Categories=Qt;KDE;Education;Teaching;X-MandrivaLinux-MoreApplications-Education-Other;
EOF
install -m 0644 itestwri.desktop \
%{buildroot}%{_datadir}/applications/itestwri.desktop

%clean
rm -rf %{buildroot}

%files
%defattr(-,root, root)
%{_bindir}/iTestClient
%{_bindir}/iTestServer
%{_iconsdir}/itcl.png
%{_iconsdir}/itdb.png
%{_iconsdir}/itest.png
%{_iconsdir}/itestwri.png
%{_iconsdir}/itos.png
%{_datadir}/applications/itest.desktop
%{_datadir}/applications/itestwri.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2443 |21cr|ivtv-utils-1.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for the iTVC15/16 and CX23415/16 driver
Name:		ivtv-utils
Version:	1.4.1
Release:	5
License:	GPLv2
Group:		System/Kernel and hardware
Source0:	http://dl.ivtvdriver.org/ivtv/archive/1.4.x/%{name}-%{version}.tar.gz
Patch0:		ivtv-1.4.0-fix-string-format.patch
URL:		http://ivtvdriver.org/
Recommends:	ivtv-firmware
Conflicts:	v4l-utils <= 0.7.91-3mdv2010.1
Obsoletes:	ivtv < 1.2.0
Provides:	ivtv = %{version}-%{release}

%description
The primary goal of the IvyTV Project is to create a kernel driver for
the iTVC15 family of MPEG codecs. The iTVC15 family includes the
iTVC15 (CX24315) and iTVC16 (CX24316). These chips are commonly found
on Hauppauge's WinTV PVR-250 and PVR-350 TV capture cards.

The driver has made it into the kernel so this package only contains
some userland tools for ivtv.

%prep
%setup -q
%patch0 -p0
perl -pi -e's@CFLAGS = -D_GNU_SOURCE .*@CFLAGS = -D_GNU_SOURCE -D__user= %{optflags}@' utils/Makefile

%build
make -C utils

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/ivtv/
make -C utils DESTDIR=%{buildroot} BINDIR=%{_bindir} install

install -p utils/*.pl %{buildroot}%{_datadir}/ivtv/
ln -s ivtv-radio %{buildroot}%{_bindir}/radio-ivtv

rm -f %{buildroot}%{_includedir}/linux/ivtv.h %{buildroot}%{_includedir}/linux/ivtvfb.h

# already provided by v4l-utils with a more uptodate copy
rm -f %{buildroot}%{_bindir}/v4l2-ctl

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc doc/*
%{_bindir}/*
%{_datadir}/ivtv

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2444 |21cr|iwatch-0.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           iwatch
Summary:        iWatch is a realtime filesystem monitoring program
Version:        0.2.2
Release:        4
License:        GPLv2
Group:          Monitoring
Requires:       perl-Linux-Inotify2 perl-Event perl-Mail-Sendmail perl-XML-LibXML perl-XML-SimpleObject-LibXML
Url:            http://iwatch.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/iwatch/%{name}/%{version}/%{name}-%{version}.tgz
BuildArch:      noarch

%description
iWatch monitor the filesystem's integrity in realtime and will send
alarm immediately to the system administrator when there is any changes
in the monitored filesystem. iWatch is written in Perl and based on
inotify, a file change notification system, a kernel feature that
allows applications to request the monitoring of a set of files against
a list of events.

Currently it can:

- run in command line mode as well as in daemon mode

- using an easy xml configuration file

- can watch directory recursively and watch new created directory

- can have a list of exceptions

- can use regex to compare the file/directory name

- can execute command if an event occures

- send email

- syslog

- print time stamp

%prep
%setup -q -n %{name}

%build

%install
install -d %buildroot/etc
install -p iwatch.xml %buildroot/etc/iwatch.xml
install -p iwatch.dtd %buildroot/etc/iwatch.dtd
install -d %buildroot/usr/bin
install -p iwatch %buildroot/usr/bin/iwatch

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README iwatch.xml.example
%{_sysconfdir}/iwatch.xml
%{_sysconfdir}/iwatch.dtd
%{_bindir}/iwatch

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2445 |21cr|iwidgets-4.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Widget Extension for Tcl/Tk
Name:		iwidgets
Version:	4.1
Release:	6
License:	MIT
Group:		System/Libraries
Url:		http://chiselapp.com/user/rene/repository/iwidgets/index
Source0:	%{name}41.tgz
BuildRequires:	tcl-devel
# We don't have tcl itk, our itk is "The Insight Toolkit"
# Requires:	itk
BuildArch:	noarch

%description
[incr Widgets] is an object-oriented mega-widget set that extends
Tcl/Tk and is based on [incr Tcl] and [incr Tk].  This set of
mega-widgets delivers many new, general purpose widgets like option
menus, comboboxes, selection boxes, and various dialogs whose
counterparts are found in Motif and Windows. Since [incr Widgets] is
based on the [incr Tk] extension, the Tk framework of configuration
options, widget commands, and default bindings is maintained.  In other
words, each [incr Widgets] mega-widget seamlessly blends with the
standard Tk widgets. They look, act, and feel like Tk widgets. In
addition, all [incr Widgets] mega-widgets are object oriented and may
themselves be extended, using either inheritance or composition.

%files
%doc license.terms README
%{tcl_sitelib}/%{name}%{version}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}%{version}
sed -i -e "s/itk 4/Itk/" library/pkgIndex.tcl

%build

%install
mkdir -p %{buildroot}%{tcl_sitelib}
cp -a library %{buildroot}%{tcl_sitelib}/%{name}%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2446 |21cr|iwscanner-0.2.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Spec is based on Alberto Altieri's work in MIB

Name:		iwscanner
Version:	0.2.4
Release:	5
Summary:	Wireless scanner based on iwtools
URL:		http://kuthulu.com/iwscanner/index.php
License:	LGPLv2+
Group:		Networking/Other
Source:		http://kuthulu.com/iwscanner/%{name}-%{version}.tgz
Source1:	kuthulu-%{name}.desktop
BuildArch:	noarch
Requires:	pygtk2.0
Requires:	wireless-tools
# for kdesu
Requires:	kdebase4-runtime
Requires:	pygtk2.0-libglade

%description
A simple NetStumbler like wireless scanner based on iwtools.

%prep
%setup -q

%build

%install
%__rm -rf %{buildroot}

# wrapper script
%__mkdir_p %{buildroot}%{_bindir}
%__cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/bash

kdesu /usr/share/iwscanner/iwscanner.py
EOF
%__chmod 755 %{buildroot}%{_bindir}/%{name}

%__mkdir_p %{buildroot}%{_datadir}/applications
%__install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop

# datafiles
%__mkdir_p %{buildroot}%{_datadir}/%{name}
%__cp * %{buildroot}%{_datadir}/%{name}/

%clean
%__rm -rf %{buildroot}

%files
%doc README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2447 |21cr|ja2-stracciatella-0.20.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined %{nil}

Summary:	Jagged Alliance 2 Stracciatella
Name:		ja2-stracciatella
Version:	0.20.0
Release:	2
License:	MIT
Group:		Games/Other
Url:		http://ja2-stracciatella.github.io/
Source0:	https://github.com/ja2-stracciatella/ja2-stracciatella/archive/v%{version}.tar.gz
# how to obtain it
# cd rust && cargo vendor
# tar -cjvf vendor.tar.xz .
Source1:	vendor.tar.xz
# bundled libs
Source3:	https://www.lua.org/ftp/lua-5.3.6.tar.gz
Source4:	https://github.com/ThePhD/sol2/archive/v3.2.2.zip
Source5:	https://github.com/zrax/string_theory/archive/3.1.tar.gz
# https://github.com/mackron/miniaudio/commit/4d813cfe23c28db165cce6785419fee9d2399766
Source6:	https://github.com/mackron/miniaudio/archive/4dfe7c4c31df46e78d9a1cc0d2d6f1aef5a5d58c.zip
Source7:	https://github.com/Neargye/magic_enum/archive/v0.7.3.zip
# patched for gcc13
Source8:	st_string.h
BuildRequires:	cargo
BuildRequires:	cmake
BuildRequires:	rust
BuildRequires:	rust-std-static
BuildRequires:	fltk-devel
BuildRequires:	stdc++-static-devel
BuildRequires:	pkgconfig(sdl2)

%description
The goal of the project was to make Jagged Alliance 2 available on a wide
range of platforms, improve its stability, fix bugs and provide a stable
platform for mod development.

Edit the ~/.ja2/ja2.ini and set parameter data_dir to point on the
directory where the original game was installed.

If you installed not English version of the original game, but one of the
localized varieties, you need to start the game with the appropriate
parameter, e.g. ja2 -resversion ITALIAN.

%files
%doc *.txt *.md
%{_bindir}/ja2*
%{_datadir}/ja2
%{_mandir}/man6/ja2.6.*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.svg

#---------------------------------------------------------

%prep
%setup -q

tar -xf %{SOURCE1}
rm -rf dependencies/lib-gtest
rm -rf dependencies/lib-boost
rm -rf dependencies/lib-SDL*
#rm -rf dependencies/lib-lua

# lua
mkdir -p build/dependencies/lib-lua/getter/get-lua-prefix/src/
cp %{SOURCE3} build/dependencies/lib-lua/getter/get-lua-prefix/src/
# sol2
mkdir -p build/dependencies/lib-sol2/getter/get-sol2-prefix/src/
cp %{SOURCE4} build/dependencies/lib-sol2/getter/get-sol2-prefix/src/
# string_theory
mkdir -p build/dependencies/lib-string_theory/builder/string_theory-prefix/src/
cp %{SOURCE5} build/dependencies/lib-string_theory/builder/string_theory-prefix/src/
# miniaudio
mkdir -p build/dependencies/lib-miniaudio/getter/get-miniaudio-prefix/src/
cp %{SOURCE6} build/dependencies/lib-miniaudio/getter/get-miniaudio-prefix/src/
mkdir -p build/dependencies/lib-magic_enum/getter/get-magic_enum-prefix/src/
cp %{SOURCE7} build/dependencies/lib-magic_enum/getter/get-magic_enum-prefix/src/


mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'
[source."https://github.com/selaux/android-ndk-rs"]
git = "https://github.com/selaux/android-ndk-rs"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = './vendor'
EOF

%build
export CARGO_HOME=`pwd`/cargo-home/

%cmake \
    -DWITH_UNITTESTS=OFF \
    -DLOCAL_GTEST_LIB=OFF \
    -DBUILD_SHARED_LIBS:BOOL=OFF \
    -DEXTRA_DATA_DIR=%{_datadir}/ja2 \
    -DOPENGL_GL_PREFERENCE=GLVND

# patched file copy to unpacked dependensy string_teory
cp -f %{SOURCE8} ./lib-string_theory/include/string_theory/

%make_build OPTFLAGS="%{optflags}"

%install
%make_install -C build

find %{buildroot} -size 0 -delete
chmod 0755 %{buildroot}%{_bindir}/ja2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2448 |21cr|jackasyn-0.13-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		0 
%define	libname		%mklibname %{name} %{major}
%define	develname	%mklibname %{name} -d

# Somehow debug package ends up being empty: avoid rpmlint error
%global	debug_package	%{nil}

Name:		jackasyn
Summary:	Asynchronous capabilities for Jack audio daemon
Version:	0.13
Release:	9
License:	GPLv2+
Group:		Sound
# URLs dead: use stored sources
Url:		http://gige.xdv.org/soft/libjackasyn
Source0:	lib%{name}-%{version}.tar.gz
Patch0:		jackasyn-0.13-fix-multiple-def-error.patch
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(samplerate)
Requires:	jack

%description
This is a library that allows to access the jack audio server in asynchronous
mode. The jacklaunch command launches an application by preloading
libjackasyn. This makes applications that are written for the OSS API working
with the JACK audio server.

%files
%doc README AUTHORS CHANGELOG TODO WORKING
%{_bindir}/jacklaunch
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
This is a library that allows to access the jack audio server in
asynchronous mode. It can be used for several purposes:
1) Make an application that uses the OSS audio API run with the jack
	server via the LD_PRELOAD system.
2) You have an application that is written for asynchronous mode,
	probably for several platforms and can't afford a rewrite of the whole
	system to fit jackit callback architecture.
3) You want to port an application in a fast and easy way and do not care
	for tight synchronisation and performance. 

%files -n %{libname}
%doc README
%{_libdir}/libjackasyn.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Header files and static libraries for %{name}
Group: 		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}

%description -n %{develname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{develname}
%doc README
%{_includedir}/libjackoss.h
%{_libdir}/libjackasyn.so
#{_libdir}/libjackasyn.a

#-----------------------------------------------------------------------------

%prep
%setup -qn lib%{name}-%{version}
%patch0 -p1

%build
%configure
# Parallel build doesn't work - AdamW 2008/08
make


%install
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_includedir}
mkdir -p %{buildroot}/%{_mandir}/man1

install -m 644 libjackoss.h %{buildroot}/%{_includedir}

#install -m 644 libjackasyn.a %%{buildroot}/%%{_libdir}
install -m 755 libjackasyn.so.%{version} %{buildroot}/%{_libdir}
ln -s libjackasyn.so.%{version} %{buildroot}/%{_libdir}/libjackasyn.so.0
ln -s libjackasyn.so.%{version} %{buildroot}/%{_libdir}/libjackasyn.so

install -m 755 jacklaunch %{buildroot}/%{_bindir}
install -m 0644 jacklaunch.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2449 |21cr|jackbeat-0.7.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drum machine styled audio sequencer
Name:		jackbeat
Version:	0.7.6
Release:	6
License:	GPLv2+
Group:		Sound
Url:		https://bitbucket.org/olivierg/jackbeat/wiki/Home
Source0:	http://bitbucket.org/olivierg/%{name}/downloads/%{name}-%{version}.tar.gz
Patch0:		%{name}-0.7.3-mdv-fix-str-fmt.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)

%description
Jackbeat is an audio sequencer with the following features:
    * drummachine-like interface for fast and easy edition;
    * realtime operation : while playing, the pattern can be edited and
      resized, the bpm rate modified, and new samples loaded;
    * virtually unlimited number of tracks and beats;
    * easy to use and yet powerful : just JACK it into jack-rack and you
      can apply LADSPA effect plugins on a per track basis, perform
      mastering with jackeq , etc...
    * loads and saves .jab files, Jackbeat's binary file format.

%files
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .strfmt


%build
autoreconf -vfi
LDFLAGS="-lgmodule-2.0" %configure
%make


%install
%makeinstall_std

# Provide menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=JackBeat
Comment=%{summary}
Exec=%{name}
Icon=sound_section
Terminal=false
Type=Application
Categories=AudioVideo;Sequencer;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2450 |21cr|jack_capture-0.9.73-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Simple JACK audiofile recorder-encoder
Name:		jack_capture
Version:	0.9.73
Release:	2
License:	GPLv2+
Group:		Sound
URL:		http://archive.notam02.no/arkiv/src/
Source0:	http://archive.notam02.no/arkiv/src/%{name}-%{version}.tar.gz
BuildRequires:	meterbridge
BuildRequires:	gtk2-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sndfile)

Requires:	meterbridge

%description
Small audio file recorder with on-the-fly encoding capabilities for the JACK
Audio Connection Kit. Jack_capture comes with two control GUIs, one of which
is deliberately simple. Supported save file formats are wav (with 4GB limit
bypass), ogg, flac, wav, wavex, au, aiff and raw.

%files
%doc README
%{_bindir}/jack_capture
%{_bindir}/jack_capture_gui2
%{_datadir}/applications/jack_capture_gui2.desktop

#-----------------------------------------------------------------------------

%prep
%setup -q
perl -pi -e 's/usr\/local/usr/g' Makefile
#perl -pi -e 's/-march=native//g' Makefile


%build
%make
# We have to build the legacy gui program at our own risk
make jack_capture_gui2


%install
%makeinstall_std
install jack_capture_gui2 %{buildroot}%{_bindir}/

# Provide a menu entry for the GUI
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/jack_capture_gui2.desktop << EOF
[Desktop Entry]
Name=Jack_capture GUI
Comment=Simple JACK audiofile recorder-encoder
Exec=jack_capture_gui2
Icon=sound_section
Categories=AudioVideo;Audio;
Terminal=false
Type=Application
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2451 |21cr|jackeq-0.5.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	oname	jackEQ

Name:		jackeq
Summary:	Live EQ console for JACK audio applications
Version:	0.5.9
Release:	4
License:	GPLv2+
Group:		Sound
Url:		http://djcj.org/%{name}/
Source0:	http://djcj.org/%{name}/code/%{oname}-%{version}.tar.bz2
Patch0:		%{name}-0.5.9-fix-format-string.patch
BuildRequires:	gettext
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.0
Requires:	swh-plugins >= 0.4.2.20030819

%description
jackEQ is a tool for routing and manipulating audio from/to multiple
input/output sources. It runs in the JACK Audio Connection Kit, and uses
LADSPA for its backend DSP work, specifically the DJ EQ swh plugin created
by Steve Harris, one of jackEQ's main authors.
jackEQ is intended to provide an accessible method for tweaking the treble,
mid and bass of any JACK aware applications output. Designed specifically for
live performance, it is modelled on varous DJ mixing consoles which the main
author has used.

%files
%doc AUTHORS README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------


%prep
%setup -qn %{oname}-%{version}
%apply_patches

# Fix perms
chmod 0644 AUTHORS README TODO
find src -name "*.h" -a -type f|xargs chmod 0644
find src -name "*.c" -a -type f|xargs chmod 0644



%build
export LIBS="-lm -lpthread -ljack -lxml2 -ldl"
%configure 
%make


%install
%makeinstall_std

# menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=JackEQ
Comment=%{summary}
Exec=%{name}
Icon=sound_section
Terminal=false
Type=Application
Categories=AudioVideo;Audio;Mixer;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2452 |21cr|jacksum-1.7.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           jacksum
Version:        1.7.0
Release:        14
Epoch:          0
Summary:        Software for computing and verifying checksums, CRC's, and message digests
License:        GPL
URL:            http://www.jonelo.de/java/jacksum/
Group:          Development/Java
#Vendor:         JPackage Project
#Distribution:   JPackage
Source0:        http://osdn.dl.sourceforge.net/jacksum/jacksum-1.7.0.zip
Source1:        %{name}
Patch0:         %{name}-javadoc.patch
BuildRequires:  ant
BuildRequires:  java-rpmbuild >= 0:1.5
BuildArch:      noarch

%description
Jacksum is a free and platform independent software for computing and 
verifying checksums, CRC's, and message digests (known as hash values 
and fingerprints). "Jacksum" is a synthetic word made of JAva and 
ChecKSUM.

Jacksum supports 46 popular algorithms (Adler32, BSD sum, POSIX cksum, 
Bzip2's CRC, CRC-8, CRC-16, CRC-24, CRC-32 (FCS-32), CRC-64, ELF-32, 
eMule/eDonkey, FCS-16, GOST R 34.11-94, HAS-160, HAVAL (3/4/5 passes, 
128/160/192/224/256 bits), MD2, MD4, MD5, MPEG-2's CRC-32, RIPEMD-128, 
RIPEMD-160, RIPEMD-256, RIPEMD-320, SHA-0, SHA-1, SHA-224, SHA-256, 
SHA-384, SHA-512, Tiger-128, Tiger-160, Tiger, Tiger2, Unix System V 
sum, sum8, sum16, sum24, sum32, Whirlpool-0, Whirlpool-1, Whirlpool and 
xor8).

Jacksum supports the "Rocksoft (tm) Model CRC Algorithm", it can 
calculate customized CRC algorithms and it supports the combination of 
multiple algorithms.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
perl -pi -e 's/\r$//g' history.txt license.txt readme_de.txt readme.txt docs/*
pushd source
%{_bindir}/unzip -qq %{name}-src.zip
popd
%patch0 -p1
perl -pi -e 's|<javadoc|<javadoc source="1.4"|g' build.xml

%build
pushd source
%{ant} jar #javadoc
popd

%install

# bin
mkdir -p %{buildroot}%{_bindir}
cp -a %{SOURCE1} %{buildroot}%{_bindir}/%{name}

# jars
mkdir -p %{buildroot}%{_javadir}
cp -a source/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -s ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
#%{__cp} -a source/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%files
%defattr(0644,root,root,0755)
%doc history.txt license.txt readme_de.txt readme.txt docs/*
%attr(0755,root,root) %{_bindir}/%{name}
%{_javadir}/%{name}*.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}
%doc %{_javadocdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2453 |21cr|jag-0.3.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An arcade-puzzle 2D game to break all of the target blocks
Name:		jag
Version:	0.3.8
Release:	4
License:	GPLv3+
Group:		Games/Puzzles
Url:		https://gitlab.com/coringao/jag
Source0:	https://gitlab.com/coringao/jag/-/archive/0.3.7/jag-%{version}.tar.bz2
Source1:	jag.appdata.xml
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
Requires:	%{name}-data = %{version}

%description
JAG is a free and opensource arcade-puzzle 2D game.

The aim of JAG is to break all of the target pieces on each level, and to do
this before the time runs out. Keep doing this until you have beaten the last
level and won the game. 


%files
%doc CHANGELOG README.md
%license LICENSE
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/pixmaps/jag.png

#----------------------------------------------------------------------------

%package editor
Summary:	Level Editor for the JAG game
Requires:	%{name} = %{EVRD}
Provides:	jag-level-editor = %{version}
Obsoletes:	jag-level-editor < %{version}

%description editor
The aim of JAG is to break all of the target pieces on each level,
and to do this before the time runs out. Keep doing this until you
have beaten the last level and won the game.

This package contains the level editor for JAG.


%files editor
%doc CHANGELOG README.md LICENSE
%{_gamesbindir}/jag-editor
%{_datadir}/applications/jag-editor.desktop
%{_datadir}/pixmaps/jag-editor.png

#----------------------------------------------------------------------------

%package data
Summary:	Data files for the JAG game
Requires:	%{name} = %{EVRD}
Suggests:	%{name}-editor = %{EVRD}
BuildArch:	noarch

%description data
The aim of JAG is to break all of the target pieces on each level,
and to do this before the time runs out. Keep doing this until you
have beaten the last level and won the game.

Data files (bonus, help, lang, levels, schemes, sounds, tools) for JAG.

%files data
%doc CHANGELOG README.md
%license LICENSE
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/data/
%{_gamesdatadir}/%{name}/editor/

#----------------------------------------------------------------------------

%prep
%setup -q 

%build
%qmake_qt5
pushd src/editor
%qmake_qt5
popd

%make 
pushd src/editor
%make
popd

%install
%makeinstall_qt
pushd src/editor
%makeinstall_qt
popd

# desktop
install -Dm 0644 src/jag.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

# icons
install -Dm 0644 src/images/jag.png %{buildroot}%{_datadir}/pixmaps/jag.png
install -Dm 0644 src/editor/jag-editor.png %{buildroot}%{_datadir}/pixmaps/jag-editor.png

# appdata
install -Dm 0644 %{SOURCE1} %{buildroot}%{_appdatadir}/%{name}.appdata.xml

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}-editor.desktop <<EOF
[Desktop Entry]
Name=%{name}-editor
GenericName=Arcade-puzzle 2D game
Comment=%{summary}
Exec=%{name}-editor
Icon=%{name}.png
Type=Application
StartupNotify=false
Categories=Game;LogicGame;
Terminal=false
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2454 |21cr|jailkit-2.19-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities to limit user accounts to specific files using chroot()
Name:		jailkit
Version:	2.19
Release:	4
License:	GPLv2+
Group:		System/Base
Url:		http://olivier.sessink.nl/jailkit/
Source0:	http://olivier.sessink.nl/jailkit/jailkit-%{version}.tar.bz2
# Don't try to modify system shells file
Patch0:		jailkit-2.19-shells.patch
BuildRequires:	pkgconfig(python2)

%description
Jailkit is a set of utilities to limit user accounts to specific files
using chroot() and or specific commands. Setting up a chroot shell,
a shell limited to some specific command, or a daemon inside a chroot
jail is a lot easier using these utilities.

Jailkit has been in use for a while on CVS servers (in a chroot and
limited to cvs), sftp/scp servers (both in a chroot and limited to
sftp/scp as well as not in a chroot but only limited to sftp/scp),
and also on general servers with accounts where the shell accounts
are in a chroot.

%files
%doc README.txt COPYRIGHT
%attr(4755,root,root) %{_bindir}/jk_uchroot
%attr(4755,root,root) %{_sbindir}/jk_chrootsh
%{_sbindir}/jk_addjailuser
%{_sbindir}/jk_check
%{_sbindir}/jk_chrootlaunch
%{_sbindir}/jk_cp
%{_sbindir}/jk_init
%{_sbindir}/jk_jailuser
%{_sbindir}/jk_list
%{_sbindir}/jk_lsh
%{_sbindir}/jk_socketd
%{_sbindir}/jk_update
%{_datadir}/jailkit/
%{_initrddir}/jailkit
%{_mandir}/man8/*
%config(noreplace) %{_sysconfdir}/jailkit

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
export PYTHONINTERPRETER=%{__python2}
%configure
%make

%install
%makeinstall_std \
	iniprefix="%{_sysconfdir}/jailkit/" \
	prefix="%{_prefix}"

rm -f %{buildroot}%{_datadir}/jailkit/*.pyc

install -Dp -m0755 extra/jailkit.centos %{buildroot}%{_initrddir}/jailkit

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2455 |21cr|jakarta-commons-jexl-1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname commons-jexl

Summary:        Java Expression Language
Name:		jakarta-%{oname}
Version:	1.1
Release:	5
Group:		Development/Java
License:	Apache Software License
URL:		http://jakarta.apache.org/commons/jexl/
Source0:	http://www.apache.net.pl/commons/jexl/source/%{oname}-%{version}-src.tar.gz
BuildRequires:	jpackage-utils >= 0:1.5
BuildRequires:	ant >= 0:1.6
BuildRequires:	ant-junit >= 0:1.6
BuildRequires:	junit
BuildRequires:	apache-commons-logging
BuildRequires:	java-rpmbuild
Requires:	apache-commons-logging
BuildArch:	noarch

%description
Jexl is an expression language engine designed for easy embedding in 
applications and frameworks. It implements an extended version of the 
Expression Language of the JSTL.

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description javadoc
%{summary}.


%prep
%setup -q -n %{oname}-%{version}-src

%build
export JAVA_HOME="%{java_home}"
export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=$(build-classpath apache-commons-logging-api apache-commons-logging )
CLASSPATH=target/classes:target/test-classes:$CLASSPATH
%ant -Dbuild.sysclasspath=only test dist


%install
rm -rf %{buildroot}
install -Dpm 644 dist/%{oname}-%{version}.jar \
  %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
ln -s %{name}-%{version}.jar \
  %{buildroot}%{_javadir}/%{oname}-%{version}.jar
ln -s %{oname}-%{version}.jar \
  %{buildroot}%{_javadir}/%{oname}.jar
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink


%clean
rm -rf %{buildroot}

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%files
%defattr(-,root,root)
%doc LICENSE.txt
%{_javadir}/*.jar

%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2456 |21cr|jakarta-commons-launcher-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name       launcher
%define short_name      commons-%{base_name}
%define section         free

Name:           jakarta-%{short_name}
Version:        1.1
Release:        7
Epoch:          0
Summary:        Cross-platform Java application launcher
License:        Apache License
Group:          Development/Java
URL:            http://jakarta.apache.org/commons/launcher/
Source0:        http://archive.apache.org/dist/jakarta/commons/launcher/source/%{short_name}-%{version}-src.tar.gz
Buildarch:      noarch
BuildRequires:  ant
BuildRequires:  java-rpmbuild >= 0:1.5.30

%description
Commons-launcher eliminates the need for a batch or shell script to 
launch a Java class. Some situations where elimination of a batch or 
shell script may be desirable are:

* You want to avoid having to determining where certain application 
  paths are e.g. your application's home directory, etc. Determining this 
  dynamically in a Windows batch scripts is very tricky on some versions 
  of Windows or when softlinks are used on Unix platforms.
* You want to avoid having to handle native file and path separators or 
  native path quoting issues.
* You need to enforce certain system properties e.g. java.endorsed.dirs 
  when running with JDK 1.4.
* You want to allow users to pass in custom JVM arguments or system 
  properties without having to parse and reorder arguments in your script. 
  This can be tricky and/or messy in batch and shell scripts.
* You want to bootstrap system properties from a configuration file 
  instead hard-coding them in your batch and shell scripts.
* You want to provide localized error messages which is very tricky to 
  do in batch and shell scripts.


%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
BuildRequires:  java-javadoc

%description    javadoc
Javadoc for %{name}.


%prep
%setup -q -n %{short_name}


%build
mkdir lib
%ant \
  -Dbuild.sysclasspath=only \
  -Dfinal.name=%{short_name} \
  -Dj2se.javadoc=%{_javadocdir}/java \
  -Dsrcdir=. \
  jar javadoc


%install

# jars
mkdir -p %{buildroot}%{_javadir}
cp -p dist/bin/%{short_name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|jakarta-||g"`; done)
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

# fix end-of-line
perl -pi -e 's/\r$//g' *.txt

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}


%files
%defattr(0644,root,root,0755)
%doc LICENSE.txt
%{_javadir}/*

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2457 |21cr|jakarta-commons-primitives-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define section free
%define shortname commons-primitives

Name:           jakarta-%{shortname}
Version:        1.0
Release:        6
Epoch:          0
Summary:        Jakarta Commons Primitives Component

License:        Apache Software License
Group:          Development/Java
URL:            http://jakarta.apache.org/commons/primitives/
Source0:        http://archive.apache.org/dist/jakarta/commons/primitives/source/commons-primitives-1.0-src.tar.gz
Patch0:         %{name}-crosslink.patch

BuildArch:      noarch
BuildRequires:  java-devel
BuildRequires:  java-rpmbuild >= 0:1.5
#BuildRequires:  java-javadoc
BuildRequires:  ant
BuildRequires:  junit
Provides:       %{shortname} = %{epoch}:%{version}-%{release}

%description
Apache Jakarta Commons Primitives provides a collection of types and
utilities optimized for working with Java primitives (boolean, byte,
char, double, float, int, long, short). Generally, the
Commons-Primitives classes are smaller, faster and easier to work with
than their purely Object based alternatives.

%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description    javadoc
Javadoc for %{name}.


%prep
%setup -q -n %{shortname}-%{version}
%patch0 -p0


%build
# No unit tests yet, would require commons-collections snapshot.
%{ant} \
  -Dfinal.name=%{name}-%{version} \
  -Dj2se.apidoc=%{_javadocdir}/java \
  jar javadoc


%install
install -Dpm 644 target/%{name}-%{version}.jar \
  %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
ln -s %{name}-%{version}.jar \
  %{buildroot}%{_javadir}/%{shortname}-%{version}.jar
ln -s %{shortname}-%{version}.jar %{buildroot}%{_javadir}/%{shortname}.jar
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pR target/docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%files
%defattr(0644,root,root,0755)
%doc LICENSE.txt
%{_javadir}/*.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2458 |21cr|jam-2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A nice replacement for make
Name:		jam
Version:	2.6
Release:	1
License:	MIT
Group:		Development/Tools
Url:		http://www.perforce.com/jam/jam.html
Source0:	https://swarm.workshop.perforce.com/downloads/guest/perforce_software/jam/jam-2.6.tar
BuildRequires:	bison

%description
Jam is a nice replacement for make (and the mess called Automake) providing
a good facility for writing sane compile scripts.

%files
%{_bindir}/jam
%doc README RELNOTES Jam*.html Porting

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags}"
make CFLAGS="%{optflags}"


%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 jam0 %{buildroot}%{_bindir}/jam

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2459 |21cr|jama-1.0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		jama
Summary:	A Java Matrix Package
Version:	1.0.3
Release:	10
Source:		http://math.nist.gov/javanumerics/jama/Jama-%{version}.tar.gz
License:	Public Domain
URL:		http://math.nist.gov/javanumerics/jama/
Group:		Development/Java
BuildArch:	noarch
BuildRequires:	java-devel
BuildRequires:	ant
BuildRequires:	jpackage-utils
BuildRequires:	java-rpmbuild
%description
JAMA is a basic linear algebra package for Java. It provides user-level
classes for constructing and manipulating real, dense matrices. It is
meant to provide sufficient functionality for routine problems, packaged
in a way that is natural and understandable to non-experts.

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java
%description javadoc
Javadoc for %{name}

%prep
%setup -q -c jama
find Jama -name '*.class' -exec rm -f {} \;

mkdir build

cat > build.xml <<EOF
<project name="Jama" basedir="." default="build-jar">
        <target name="build-jar">
                <javac srcdir="Jama" destdir="build" />
                <jar basedir="build" destfile="%{name}-%{version}.jar">
                        <fileset dir="build" includes="*/*.*"/>
                </jar>
        </target>
</project>
EOF

cat > LICENSE <<EOF
Downloaded from http://math.nist.gov/javanumerics/jama/Jama-%{version}.tar.gz
No license info in the archive, but we can read this on their website :

Copyright Notice  This software is a cooperative product of The
MathWorks and the National Institute of Standards and Technology (NIST)
which has been released to the public domain. Neither The MathWorks
nor NIST assumes any responsibility whatsoever for its use by other
parties, and makes no guarantees, expressed or implied, about its
quality, reliability, or any other characteristic.  
EOF

%build
%ant

%install
rm -Rf %{buildroot}
install -d %{buildroot}%{_javadir}
install -m 644 %{name}-%{version}.jar %{buildroot}%{_javadir}
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

install -d %{buildroot}%{_javadocdir}
cp -a Jama/doc %{buildroot}%{_javadocdir}/%{name}-%{version}


%files
%doc LICENSE Jama/ChangeLog Jama/examples/MagicSquareExample.java
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar

%files javadoc
%{_javadocdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2460 |21cr|jamesdsp-2.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	oname JDSP4Linux

Summary:	Open-source sound effects for Linux
Name:		jamesdsp
Version:	2.7.0
Release:	2
License:	GPLv3
Group:		Sound
Url:		https://github.com/Audio4Linux/JDSP4Linux
# git clone https://github.com/Audio4Linux/JDSP4Linux
# cd JDSP4Linux
# git checkout %%{version}
# git submodule update --init --recursive
# git-archive-all --prefix=JDSP4Linux-%%{version} ../JDSP4Linux-%%{version}.tar.xz
Source0:	%{oname}-%{version}.tar.xz
Source1:	jamesdsp.png
Patch0:		JDSP4Linux-2.7.0-ts-ru-translate.patch
BuildRequires:	dos2unix
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	qmake5
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-audio-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Open-source sound effects for PipeWire and PulseAudio.

#----------------------------------------------------------------------------

%package pipewire
Summary:	JamesDSP for PipeWire
Group:		Sound
Requires:	%{name}-common = %{EVRD}
Requires:	pipewire

%description pipewire
Open-source sound effects for PipeWire.

%files pipewire
%doc README.md
%{_bindir}/%{name}-pipewire
%{_datadir}/applications/%{name}-pipewire.desktop

#----------------------------------------------------------------------------

%package pulseaudio
Summary:	JamesDSP for PulseAudio
Group:		Sound
Requires:	%{name}-common = %{EVRD}
Requires:	pulseaudio

%description pulseaudio
Open-source sound effects for PulseAudio.

%files pulseaudio
%doc README.md
%{_bindir}/%{name}-pulseaudio
%{_datadir}/applications/%{name}-pulseaudio.desktop

#----------------------------------------------------------------------------

%package common
Summary:	Common files for JamesDSP
Group:		Sound

%description common
Common files for JamesDSP.

%files common
%doc README.md
%license LICENSE
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

find -name "*.cpp" -o -name "*.h" |xargs chmod -x
find -name "*.hpp" |xargs chmod -x

dos2unix src/MainWindow.cpp src/subprojects/GraphicEQWidget/GraphicEQWidget/GraphicEQFilterGUI.ui

# We want both pipewire and pulseaudio support
cp -rf ../%{oname}-%{version} ../%{oname}-pulseaudio


%build
%qmake_qt5 CONFIG+=NO_CRASH_HANDLER
%make

pushd ../%{oname}-pulseaudio
	%qmake_qt5 CONFIG+=USE_PULSEAUDIO CONFIG+=NO_CRASH_HANDLER
	%make
popd


%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
cp src/%{name} %{buildroot}%{_bindir}/%{name}-pipewire
cp ../%{oname}-pulseaudio/src/%{name} %{buildroot}%{_bindir}/%{name}-pulseaudio
chmod +x %{buildroot}%{_bindir}/%{name}-*

# Provide a menu entry for the pipewire flavor
cat > %{buildroot}%{_datadir}/applications/%{name}-pipewire.desktop << EOF
[Desktop Entry]
Name=JamesDSP pipewire
Name[ru]=Эквалайзер pipewire
GenericName=Audio effect processor
GenericName[ru]=Процессор аудиоэффектов
Comment=JamesDSP for pipewire
Comment[ru]=JamesDSP для pipewire
Keywords=equalizer;audio;effect
Categories=AudioVideo;Audio;
Exec=%{name}-pipewire
Icon=%{name}.png
StartupNotify=false
Terminal=false
Type=Application
EOF

# Provide menu entry for the pulseaudio flavor
cp %{buildroot}%{_datadir}/applications/%{name}-{pipewire,pulseaudio}.desktop
sed -i "s/pipewire/pulseaudio/" %{buildroot}%{_datadir}/applications/%{name}-pulseaudio.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2461 |21cr|jami-client-qt-20220726-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6f1945af48bf39c0d6483befb9a46a617ef5b288

Name:          jami-client-qt
Version:	20220726
Release:	2
Summary:       Qt client for Jami
Group:         Communications
License:       GPLv3+
Vendor:        Savoir-faire Linux
URL:           https://jami.net/
Source:        https://git.jami.net/savoirfairelinux/jami-client-qt/-/archive/%{commit}/jami-client-qt-%{commit}.tar.gz

Provides:      jami
Provides:      jami-qt

BuildRequires: cmake
BuildRequires: jami-libclient-devel
BuildRequires: python3
BuildRequires: doxygen
BuildRequires: qt6-cmake
BuildRequires: qt6-qtdeclarative
BuildRequires: qt6-qtwebengine
BuildRequires: %{_lib}Qt6Quick-devel
BuildRequires: %{_lib}Qt6Qml-devel
BuildRequires: qt6-linguist-tools
BuildRequires: %{_lib}Qt6Multimedia-devel
BuildRequires: %{_lib}Qt6Network-devel
BuildRequires: qt6-qtnetworkauth-devel
BuildRequires: %{_lib}Qt6Svg-devel
BuildRequires: %{_lib}Qt6Positioning-devel
BuildRequires: %{_lib}Qt6Sql-devel
BuildRequires: %{_lib}Qt6Concurrent-devel
BuildRequires: %{_lib}Qt6Core5Compat-devel
BuildRequires: %{_lib}Qt6WebEngineCore-devel
BuildRequires: %{_lib}Qt6WebEngineQuick-devel
BuildRequires: %{_lib}Qt6WebChannel-devel
BuildRequires: %{_lib}Qt6WebEngineWidgets-devel
BuildRequires: pkgconfig(libnotify)
BuildRequires: pkgconfig(libnm)
BuildRequires: pkgconfig(vulkan)
BuildRequires: qrencode-devel

%description
This package contains the Qt desktop client of Jami. Jami is a free
software for universal communication which respects freedoms and
privacy of its users.

%files
%{_bindir}/jami
%{_bindir}/jami-qt
%{_datadir}/applications/jami-qt.desktop
%{_datadir}/jami-qt/jami-qt.desktop
%{_datadir}/icons/hicolor/scalable/apps/jami.svg
%{_datadir}/icons/hicolor/48x48/apps/jami.png
%{_datadir}/pixmaps/jami.xpm
%{_datadir}/metainfo/jami-qt.appdata.xml
%{_datadir}/ring/translations/*

#-----------------------------------------------------------------
%prep
%setup -n jami-client-qt-%{commit}

%build
%cmake

%make

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2462 |21cr|jami-daemon-20220722-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit a6e0119ce72cc793259998ac70a5de328467dc56

#check pjproject commit (version) in contrib/src/pjproject/package.json
%define pjcommit e1f389d0b905011e0cb62cbdf7a8b37fc1bcde1a

%define major 13
%define libname %mklibname jami %{major}
%define devname %mklibname jami -d

# exclude requires for bundled tarball
%define __requires_exclude pkgconfig\\(libpjproject\\)|pkgconfig\\(webrtc-audio-processing\\)

Name:          jami-daemon
Version:	20220722
Release:	1
Summary:       Daemon component of Jami
Group:         Communications
License:       GPLv3+
Vendor:        Savoir-faire Linux
URL:           https://jami.net/
Source0:       https://git.jami.net/savoirfairelinux/jami-daemon/-/archive/%{commit}/jami-daemon-%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# need patched version of pjproject
Source1:       https://github.com/savoirfairelinux/pjproject/archive/pjproject-%{pjcommit}.tar.gz
Source2:       https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/archive/v0.3.1/webrtc-audio-processing-v0.3.1.tar.gz

# Build dependencies
BuildRequires: meson
BuildRequires: gettext-devel
BuildRequires: which
BuildRequires: yasm

BuildRequires: ffmpeg-devel
BuildRequires: http-parser-devel
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-c++-1)
BuildRequires: pkgconfig(expat)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libgit2)
BuildRequires: pkgconfig(libpcre)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libsecp256k1)
BuildRequires: pkgconfig(libnm)
BuildRequires: pkgconfig(libupnp)
BuildRequires: pkgconfig(libva)
BuildRequires: pkgconfig(msgpack)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(opendht)
BuildRequires: pkgconfig(speex)
BuildRequires: pkgconfig(speexdsp)
#BuildRequires: pkgconfig(portaudio-2.0)
BuildRequires: pkgconfig(jsoncpp) >= 1.6.5
BuildRequires: pkgconfig(jack)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(yaml-cpp)
BuildRequires: pkgconfig(uuid)
BuildRequires: pkgconfig(vdpau)

%description
This package contains the daemon of Jami, a free software for
universal communication which respects the freedoms and privacy of its
users.

%files
%{_libexecdir}/jamid
%{_datadir}/jami/ringtones
%{_datadir}/dbus-1/services/*
%{_datadir}/dbus-1/interfaces/*
%{_datadir}/metainfo/net.jami.daemon.metainfo.xml
%doc %{_mandir}/man1/jamid*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Jami shared library
Group:		System/Libraries

%description -n %{libname}
Jami shared library.

%files -n %{libname}
%{_libdir}/libjami.so.%{major}*

#-----------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files of the Jami daemon
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files for using the Jami daemon as a library.

%files -n %{devname}
%{_includedir}/jami
%{_libdir}/libjami.so
%{_libdir}/pkgconfig/jami.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

cp %{SOURCE1} contrib/tarballs
cp %{SOURCE2} contrib/tarballs

%build
mkdir -p contrib/native
pushd contrib/native
../bootstrap --disable-downloads --no-checksums --disable-all --enable-pjproject --enable-webrtc-audio-processing
make DEPS_pjproject=
make DEPS_webrtc-audio-processing=
popd

%meson \
	-Daec=enabled \
	-Dportaudio=disabled \
	-Dinterfaces=library,dbus \
	-Dopensl=disabled \
	-D pkg_config_path="$(pwd)/contrib/$(cc -dumpmachine)/lib/pkgconfig"

%meson_build

%install
%meson_install

# move jamid to right place
mkdir -p %{buildroot}%{_libexecdir}
mv %{buildroot}%{_libdir}/jamid %{buildroot}%{_libexecdir}/

#

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2463 |21cr|jami-libclient-20220505-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define commit b45f5815d9588ab8ae592de42335ffe46459419f

Name:          jami-libclient
Version:	20220505
Release:	1
Summary:       Client library for Jami
Group:         System/Libraries
License:       GPLv3+
Vendor:        Savoir-faire Linux
URL:           https://jami.net/
Source0:       https://git.jami.net/savoirfairelinux/jami-libclient/-/archive/%{commit}/jami-libclient-%{commit}.tar.gz
Source10:      jami-libclient.rpmlintrc
Patch0:        jami-libclient-link.patch
Requires:      jami-daemon

BuildRequires: cmake
BuildRequires: qt6-cmake
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Sql)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6LinguistTools)
BuildRequires: pkgconfig(libnm)
BuildRequires: jami-daemon-devel
BuildRequires: pkgconfig(vulkan)

%description
This package contains the client library of Jami, a free software for
universal communication which respects freedoms and privacy of its
users.
#----------------------------------------------------------------
%package -n %{libname}
Summary:	Client library for Jami
Group:		System/Libraries

%description -n %{libname}
This package contains the client library of Jami, a free software for
universal communication which respects freedoms and privacy of its
users.

%files -n %{libname}
%{_libdir}/libringclient.so.%{major}*
%{_datadir}/libringclient

#----------------------------------------------------------------
%package -n %{devname}
Summary:	Development files of the Jami client library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libringclient-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and the unversioned shared
library for developing with the Jami client library.

%files -n %{devname}
%{_includedir}/libringclient
%{_libdir}/cmake/LibRingClient
%{_libdir}/libringclient.so

#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake  \
	-DENABLE_LIBWRAP=true \
	-DCMAKE_BUILD_TYPE=Release
%make

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2464 |21cr|jamin-0.95.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:		jamin
Summary:	Audio mastering from a mixed down multitrack source with JACK
Version:	0.95.0
Release:	16
License:	GPLv2+
Group:		Sound 
Source0:	%{name}-%{version}.tar.bz2
URL:		http://jamin.sourceforge.net/
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(jack)
BuildRequires:	fftw-devel
BuildRequires:	libxml2-devel
BuildRequires:	gtk2-devel
BuildRequires:	liblo-devel
Requires:	swh-plugins

%description
JAM is a tool for producing audio masters from a mixed down 
multitrack source. It runs in the JACK Audio Connection Kit, 
and uses LADSPA for its backend DSP work, specifically the 
swh plugins created by Steve Harris, JAM's main author.

Features:

 * Linear filters 
 * JACK i/o
 * 30band graphic EQ
 * 1023band graphic EQ
 * Spectrum analyser
 * 3band peak compressor
 * Lookahead brickwall limiter

Planned features (in rough order of difficulty):

 * Multiband stereo processing
 * Parametric EQ
 * Loudness maximiser
 * Presets and scenes

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog README TODO
%{_bindir}/jamin
%{_bindir}/jamin-scene
%{_libdir}/ladspa/jamincont_1912.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.svg
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.*
%{_datadir}/mime/packages/%{name}.xml

#--------------------------------------------------------------------

%prep
%setup -q

#fix plugindir
sed -i -e 's|^plugindir =.*|plugindir = $(libdir)/ladspa|' controller/Makefile.in

%build
export LDFLAGS="-ldl"
%configure
%make

%install
%makeinstall_std

# we don't want this
rm -rf %{buildroot}%{_libdir}/ladspa/*.la

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2465 |21cr|jarbundler-2.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define section free

Name:           jarbundler
Version:        2.3.1
Release:        3
Epoch:          0
Summary:        Mac OS X JarBundler ANT Task
License:        GPL
Group:          Development/Java
URL:            http://informagen.com/JarBundler/
Source0:        informagen.com/JarBundler/dist/jarbundler.tar.gz
BuildRequires:  ant
BuildArch:      noarch
BuildRequires:  java-rpmbuild

%description
How many times has this happened to you? You've written a little 
Java utility, or maybe even a more complex application, and you 
want to create Mac OS X application bundle for easy distribution.

You'd like to be able to do it automatically from your build 
process, but you're forced to go run the Apple Jar Bundler and 
tweak all the settings manually every time you build.

Well no more! JarBundler is a feature-rich Ant task which will 
create a Mac OS X application bundle from a list of Jar files and 
a main class name. You can add an Icon resource, set various Mac 
OS X native look-and-feel bells and whistles, and maintain your 
application bundles as part of your normal build and release 
cycle. It is free software licensed under the GNU General Public 
License.

This release is based on the earlier work of Seth Morabito.

%package javadoc
Summary:        Javadoc documentation for %{name}
Group:          Development/Java

%description javadoc
Javadoc documentation for %{name}.

%prep
%setup -q
%{_bindir}/find . -name '*.jar' | %{_bindir}/xargs -t rm

%build
export CLASSPATH=
export OPT_JAR_LIST=:
%{ant} jar javadocs

%install

mkdir -p %{buildroot}%{_javadir}
cp -a build/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%clean

%files
%defattr(0644,root,root,0755)
%doc *.TXT example
%{_javadir}/*.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2466 |21cr|jarowinkler-cpp-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Fast Jaro and Jaro Winkler distance
Name:		jarowinkler-cpp
Version:	1.0.0
Release:	1
License:	MIT
Group:		Development/C++
Url:		https://github.com/maxbachmann/jarowinkler-cpp
Source0:	https://github.com/maxbachmann/jarowinkler-cpp/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
Fast Jaro and Jaro Winkler distance.

%files
%doc README*
%license LICENSE
%{_includedir}/jaro_winkler
%{_libdir}/cmake/jaro_winkler
%{_libdir}/*.hpp

#----------------------------------------------------------------------------

%prep
%autosetup -p1 jaro_winkler-%{version}

%build
%cmake
%make

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2467 |21cr|java-api-compliance-checker-1.3.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	API compatibility checker for Java libraries
Name:		java-api-compliance-checker
Version:	1.3.5
Release:	4
Group:		Development/Other
License:	GPLv1+ or LGPLv2+
URL:		http://ispras.linuxbase.org/index.php/Java_API_Compliance_Checker
Source0:	https://github.com/lvc/japi-compliance-checker/archive/%{version}.tar.gz
Requires:	java-openjdk
BuildArch:	noarch

%description
A tool for checking backward compatibility of a Java library API.
It checks classes of old and new versions and analyzes changes
that may break compatibility: removed members, added abstract
methods, etc.

%prep

%setup -q -n japi-compliance-checker-%{version}
chmod 0644 LICENSE README

%build
# Nothing to build.

%install
mkdir -p %{buildroot}%{_prefix}
perl Makefile.pl -install --prefix=%{_prefix} --destdir=%{buildroot}

chmod 755 %{buildroot}%{_bindir}/*

%files
%doc LICENSE README doc/
%{_bindir}/japi-compliance-checker

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2468 |21cr|java_binfmt-1.0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           java_binfmt
Version:        1.0.3
Release:        10
Epoch:          0
Summary:        Java Binary Kernel Support for Linux
License:        GPL
Group:          Development/Java
URL:            http://developer.osdl.org/dev/robustmutexes/src/fusyn.hg/Documentation/java.txt
Source0:        %{name}-%{version}.tar.bz2
Patch0:		jarwrapper.patch
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description
With this package, you can directly execute Java applications and
applets. The binfmt_misc kernel module must be loaded.

%prep
%setup -q
%patch0 -p0

%build
%{__cc} -Wall %{optflags} -o javaclassname javaclassname.c

%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__cp} -a javaclassname %{buildroot}%{_bindir}/javaclassname
%{__cp} -a javawrapper %{buildroot}%{_bindir}/javawrapper
%{__cp} -a jarwrapper %{buildroot}%{_bindir}/jarwrapper
%{__cp} -a jarwrapper %{buildroot}%{_bindir}/appletviewerwrapper
%{__mkdir_p} %{buildroot}%{_initrddir}
%{__cp} -a java_binfmt.init %{buildroot}%{_initrddir}/%{name}

%clean
%{__rm} -rf %{buildroot}

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%defattr(0644,root,root,0755)
%doc java.txt
%attr(0755,root,root) %{_initrddir}/%{name}
%attr(0755,root,root) %{_bindir}/jarwrapper
%attr(0755,root,root) %{_bindir}/javaclassname
%attr(0755,root,root) %{_bindir}/javawrapper
%attr(0755,root,root) %{_bindir}/appletviewerwrapper

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2469 |21cr|javacc3-3.2-4.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define section free
%define _basename javacc

Name:           javacc3
Version:        3.2
Release:        4.6
Epoch:          0
Summary:        A parser/scanner generator for java
License:        BSD
Source0:	javacc-3.2-src.tar.gz
Source1:	javacc
Source2:	jjdoc
Source3:	jjtree
Patch0:		javacc3-source_1.4.patch
URL:            https://javacc.dev.java.net/
Group:          Development/Java
BuildArch:      noarch
Requires:	jpackage-utils >= 0:1.5
BuildRequires:	java-devel java-rpmbuild
BuildRequires:	ant, bash

%description 
Java Compiler Compiler (JavaCC) is the most popular parser generator for use
with Java applications. A parser generator is a tool that reads a grammar
specification and converts it to a Java program that can recognize matches to
the grammar. In addition to the parser generator itself, JavaCC provides other
standard capabilities related to parser generation such as tree building (via
a tool called JJTree included with JavaCC), actions, debugging, etc.

%package manual
Summary:        Manual for %{_basename}
Group:          Development/Java

%description manual
Manual for %{_basename}.

%package demo
Summary:        Examples for %{_basename}
Group:          Development/Java

%description demo
Examples for %{_basename}.

%prep
%setup -q -n %{_basename}-%{version}
%patch0 -p1
cp %{SOURCE1} javacc
cp %{SOURCE2} jjdoc
cp %{SOURCE3} jjtree
mv www/doc .

%build
ant \
  -Dversion=%{version} \
  jar

%install
rm -fr $RPM_BUILD_ROOT
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 bin/lib/%{_basename}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
install -d -m 755 $RPM_BUILD_ROOT/usr/bin
install -m 755 javacc jjdoc jjtree $RPM_BUILD_ROOT/usr/bin
install -d -m 755 $RPM_BUILD_ROOT/usr/share/%{name}
cp -pr examples $RPM_BUILD_ROOT/usr/share/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644,root,root,0755)
%{_javadir}/*.jar
%doc LICENSE README
%defattr(0755,root,root,0755)
%{_bindir}/*

%files manual
%defattr(0644,root,root,0755)
%doc doc/*

%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2470 |21cr|javanotes-5.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       javanotes
Version:    5.1
Release:    9
Summary:    Introduction to Programming Using Java, By David J. Eck

Group:      Development/Java
License:    CC-BY-SA
URL:        http://math.hws.edu/javanotes/
Source0:    http://math.hws.edu/eck/cs124/downloads/%{name}5.tar.bz2
BuildArch:  noarch

%description
The fifth edition of Introduction to Programming Using Java, a free, on-line
textbook on introductory programming, which uses Java as the language of
instruction. This book is directed mainly towards beginning programmers,
although it might also be useful for experienced programmers who want to learn
something about Java. It is certainly not meant to provide complete coverage of
the Java language.

The fifth edition covers Java 5.0 and can also be used with later versions of
Java. You will find many Java applets on the web pages that make up this book,
and many of those applets require Java 5.0 or higher to function. Earlier
editions, which covered earlier versions of Java, are still available; see the
preface for links.

This is the html version, start with index.html in the main directory.

%prep
%setup -q -n %{name}%{version}

%build
# empty but exists to keep rpmlint happy


%install
rm -rf $RPM_BUILD_ROOT
find -type d -exec install -m 755 -d $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{} ';'
find -type f -exec install -m 644 {} $RPM_BUILD_ROOT%{_docdir}/%{name}-%{version}/{} ';'

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc %{_docdir}/%{name}-%{version}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2471 |21cr|javassist-3.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Java Programming Assistant: bytecode manipulation
Name:           javassist
Version:        3.9.0
Release:        5
Epoch:          0
License:        MPL and LGPL
URL:            http://www.csg.is.titech.ac.jp/~chiba/javassist/
Group:          Development/Java
Source0:        javassist3.9.GA.zip
# cvs -d:pserver:anonymous@anoncvs.forge.jboss.com:/cvsroot/jboss export -r Javassist_3_5_CR1 javassist

Patch0:         javassist-buildfile-nosource1.4-nosrcjar.patch
BuildRequires:  java-rpmbuild >= 0:1.6
BuildRequires:  ant >= 0:1.6
BuildArch:      noarch
BuildRequires:  java-devel

%description
Javassist (Java Programming Assistant) makes Java
bytecode manipulation simple. It is a class library
for editing bytecodes in Java; it enables Java
programs to define a new class at runtime and to
modify a class file when the JVM loads it. Unlike
other similar bytecode editors, Javassist provides
two levels of API: source level and bytecode level.
If the users use the source-level API, they can edit
a class file without knowledge of the specifications
of the Java bytecode. The whole API is designed with
only the vocabulary of the Java language. You can even
specify inserted bytecode in the form of source text;
Javassist compiles it on the fly. On the other hand,
the bytecode-level API allows the users to directly
edit a class file as other editors.

%package demo
Summary:        Samples for %{name}
Group:          Development/Java
Requires:       javassist = 0:%{version}-%{release}

%description demo
%{summary}.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
%{summary}.

%package manual
Summary:        Tutorial for %{name}
Group:          Development/Java

%description manual
%{summary}.

%prep
%setup -q # -n %{name}-%{version}
%patch0 -p0
for j in $(find . -name "*.jar"); do
        mv $j $j.no
done
#remove the clas it needs com.sun.jdi to build
rm src/main/javassist/util/HotSwapper.java

%build
%{ant} dist

%install

# jars
mkdir -p %{buildroot}%{_javadir}
cp -p %{name}.jar \
  %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# demo
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}
cp -pr sample/* %{buildroot}%{_datadir}/%{name}-%{version}

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr html/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

# manual
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}/tutorial
cp -pr tutorial/* %{buildroot}%{_docdir}/%{name}-%{version}/tutorial
cp -p License.html %{buildroot}%{_docdir}/%{name}-%{version}

%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/License.html
%{_javadir}/*.jar


%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}-%{version}

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/tutorial

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2472 |21cr|jchkmail-2.2.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define Werror_cflags %{nil}

Summary:	A mail filtering software
Name:		jchkmail
Version:	2.2.1
Release:	9
License:	GPLv3+
Group:		System/Servers
Url:		http://www.j-chkmail.org/
Source0:	%{name}-%{version}.tgz
BuildRequires:	sendmail
BuildRequires:	milter-devel
BuildRequires:	pkgconfig(libxml-2.0)

%description
j-chkmail is a mail filtering software using sendmail milter API. j-chkmail is
compatible with UNIX based mailservers running sendmail or postfix.

The goal of j-chkmail is to be able to filter as much messages as possible, as
fast as possible and as well as possible. Originally, it's intended to be use
in large and heterogeneous communities such as university campus,
but not only.

%files
%doc README*
%config(noreplace) %{_sysconfdir}/mail/%{name}
%{_bindir}/*
%{_sbindir}/*
%{_sysconfdir}/init.d/*
%attr(-,jchkmail,jchkmail) %config(noreplace) %{_var}/lib/%{name}
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
# don't try action needing to be root
perl -pi -e 's:@(chown|chgrp):/bin/true:' \
    Makefile.am etc/Makefile.am \
    Makefile.in etc/Makefile.in

%build
aclocal
libtoolize --force
autoreconf -fi
%configure \
	--with-work-dir=%{_var}/lib/%{name} \
	--with-jgreyd-dir=%{_var}/lib/%{name}/jgreyd \
	--with-user=%{name} \
	--with-group=%{name}

make

%install
mkdir -p %{buildroot}%{_sysconfdir}/init.d

%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2473 |21cr|jcodings-1.0.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Java-based codings helper classes for Joni and JRuby
Name:		jcodings
Version:	1.0.18
Release:	3
License:	MIT
Group:		Development/Java
URL:		http://github.com/jruby/%{name}
Source0:	https://github.com/jruby/jcodings/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
BuildRequires:	ant
BuildRequires:	jpackage-utils
BuildRequires:	java-rpmbuild
BuildArch:	noarch

%description
Java-based codings helper classes for Joni and JRuby.


%prep
%setup -qn %{name}-%{name}-%{version}

%build
%ant build

%install
install -d -m 755 %{buildroot}%{_javadir}
install -p -m 644 target/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar

%files
%{_javadir}/%{name}.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2474 |21cr|jdupes-1.21.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global forgeurl https://github.com/jbruchon/jdupes


Name:           jdupes
Version:        1.21.0
Release:        1
Summary:        Duplicate file finder and an enhanced fork of 'fdupes'
Group:          File tools
License:        MIT
URL:            https://github.com/jbruchon/jdupes
Source0:        https://github.com/jbruchon/jdupes/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  make

%description
jdupes is a program for identifying and taking actions upon duplicate
files.

A WORD OF WARNING: jdupes IS NOT a drop-in compatible replacement for
fdupes! Do not blindly replace fdupes with jdupes in scripts and
expect everything to work the same way. Option availability and
meanings differ between the two programs. For example, the -I switch
in jdupes means "isolate" and blocks intra-argument matching, while in
fdupes it means "immediately delete files during scanning without
prompting the user."


%prep
%autosetup -p1

%build
%make_build ENABLE_DEDUPE=1 HARDEN=1 CFLAGS="%{optflags}" PREFIX="%{_prefix}" MAN_BASE_DIR="%{_mandir}"


%install
%make_install PREFIX="%{_prefix}" MAN_BASE_DIR="%{_mandir}"


%files
%license LICENSE
%doc CHANGES INSTALL README.md README.stupid_dupes
%{_bindir}/jdupes
%{_mandir}/man1/jdupes.1*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2475 |21cr|jed-0.99.19-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define sversion 0.99-19

Summary:	A fast, compact editor based on the slang screen library
Name:		jed
Version:	0.99.19
Release:	10
License:	GPLv2+
Group:		Editors
Url:		http://www.jedsoft.org/jed/
Source0:	ftp://space.mit.edu/pub/davis/jed/v0.99/jed-%{sversion}.tar.bz2
Patch0:		jed-0.99.19-fed-multilib-newauto.patch
# For ps
BuildRequires:	procps-ng
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
Requires:	%{name}-common = %{EVRD}
Requires:	slang-slsh

%description
Jed is a fast, compact editor based on the slang screen library. Jed
features include emulation of the Emacs, EDT, WordStar and Brief editors;
support for extensive customization with slang macros, colors,
keybindings, etc.; and a variety of programming modes with syntax
highlighting.

You should install jed if you've used it before and you like it, or if you
haven't used any text editors before and you're still deciding what you'd
like to use.  You'll also need to have slang installed.

%files
%{_bindir}/jed

#----------------------------------------------------------------------------

%package common
Summary:	Files needed by any Jed editor
Group:		Editors

%description common
The jed-common package contains files (such as .sl files) that are
needed by any jed binary in order to run.

%files common
%doc COPYRIGHT README changes.txt
%doc doc/txt/*
%{_infodir}/*
%{_mandir}/man1/jed*
%{_datadir}/jed

#----------------------------------------------------------------------------

%package xjed
Summary:	The X Window System version of the Jed text editor
Group:		Editors
Requires:	%{name}-common = %{EVRD}

%description xjed
Xjed is a version of the Jed text editor that will work with the X Window
System.

You should install xjed if you like Jed and you'd like to use it with X.
You'll also need to have the X Window System installed.

%files xjed
%{_bindir}/xjed

#----------------------------------------------------------------------------

%package -n rgrep
Summary:	A grep utility which can recursively descend through directories
Group:		Text tools

%description -n rgrep
The rgrep utility can recursively descend through directories as
it greps for the specified pattern.  Note that this ability does
take a toll on rgrep's performance, which is somewhat slow.  Rgrep
will also highlight the matching expression.

Install the rgrep package if you need a recursive grep which can
highlight the matching expression.

%files -n rgrep
%doc COPYRIGHT README changes.txt
%{_bindir}/rgrep
%{_mandir}/man1/rgrep.1*

#----------------------------------------------------------------------------

%prep
%setup -q -n jed-%{sversion}
%ifarch %{x86_64} aarch64
%patch0 -p1
%endif

cd autoconf
autoconf
mv configure ..
cd ..

%build
sed -i 's|cd ..;pwd|pwd|g' configure
export JED_ROOT="%{_datadir}/jed"
%configure
%make clean
%make all
%make rgrep
%make xjed

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_infodir}
mkdir -p %{buildroot}%{_datadir}/jed
mkdir -p %{buildroot}%{_mandir}/man1

cp -r lib %{buildroot}%{_datadir}/jed
cp -r info/jed* %{buildroot}%{_infodir}

cd src/objs
install -m 0755 jed %{buildroot}%{_bindir}
install -m 0755 xjed %{buildroot}%{_bindir}
install -m 0755 rgrep %{buildroot}%{_bindir}

JED_ROOT=%{buildroot}%{_datadir}/jed %{buildroot}%{_bindir}/jed -batch -n -l preparse.sl
# wait till jed finishes
while ps -C jed > /dev/null; do sleep 1; done

cd ../../doc/manual
install -m 644 jed.1 %{buildroot}%{_mandir}/man1
install -m 644 rgrep.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2476 |21cr|jemmy-2.3.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Prevent brp-java-repack-jars from being run.
%global __jar_repack %{nil}

# Install time macros
%global target_jar build/%{name}.jar
%global target_javadoc build/javadoc/*


Name:           jemmy
Version:        2.3.0.0
Release:        6
Summary:        Java UI testing library

Group:          Development/Java
License:        CDDL
URL:            https://jemmy.dev.java.net

# The source for this package was pulled from upstream's vcs.  Use the
# following commands to generate the tarball:
#
# svn export https://jemmy.dev.java.net/svn/jemmy/trunk/Jemmy2 jemmy-2.3.0.0 --username <username>
# tar -czvf jemmy-2.3.0.0.tar.gz jemmy-2.3.0.0
#
# where <username> is a name of the user registered here: https://www.dev.java.net/servlets/Join
Source0:        jemmy-2.3.0.0.tar.gz

BuildRequires:  ant >= 1.6.5
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  jpackage-utils
BuildRequires:  java-rpmbuild >= 0:1.5.32

Requires:       java >= 0:1.6.0
Requires:       jpackage-utils

BuildArch:      noarch

%description
Jemmy is a Java UI testing library. Jemmy represents the most natural way to 
test Java UI - perform the testing right from the Java code. Jemmy is a Java 
library which provides clear and straightforward API to access Java UI. Tests 
are then just java programs, which use the API. Having the tests in Java allows 
to use all the flexibility of high level language to capture test logic and 
also do any other operations needed to be done from test.

%package javadoc
Summary:        Javadocs for %{name}
Group:          Development/Java
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
find . -type f -name '*.jar' | xargs -t rm
echo "Please, visit https://jemmy.dev.java.net for more info about Jemmy." > README.txt

%build
%ant jar javadoc

%install
# jar
%__mkdir_p %{buildroot}%{_javadir}
%__cp -a %{target_jar} %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do \
%__ln_s ${jar} ${jar/-%{version}/}; done)

# javadoc
%__mkdir_p %{buildroot}%{_javadocdir}/%{name}
cp -pr %{target_javadoc}/* %{buildroot}%{_javadocdir}/%{name}

%files
%doc README.txt
%{_javadir}/*.jar

%files javadoc
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2477 |21cr|jetbrains-mono-fonts-2.304-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname JetBrainsMono

Summary:	A mono-space font family containing coding ligatures
Summary(ru_RU.UTF-8):	Семейство моноширинных шрифтов, содержащих кодирующие лигатуры
Name:		jetbrains-mono-fonts
Version:	2.304
Release:	1
License:	OFL
Group:		System/Fonts/True type
Url:		https://www.jetbrains.com/lp/mono
Source0:	https://github.com/JetBrains/JetBrainsMono/releases/download/v%{version}/%{oname}-%{version}.zip
BuildRequires:	fontpackages-devel
BuildRequires:	unzip
BuildArch:	noarch

%description
The JetBrains Mono project publishes developer-oriented font families.
Their forms are simple and free from unnecessary details. Rendered in small
sizes, the text looks crisper. The easier the forms, the faster the eye
perceives them and the less effort the brain needs to process them.
The shape of ovals approaches that of rectangular symbols. This makes the whole
pattern of the text more clear-сut. The outer sides of ovals ensure there are
no additional obstacles for your eyes as they scan the text vertically.
Characters remain standard in width, but the height of the lowercase is
maximized. This approach keeps code lines to the length that developers expect,
and it helps improve rendering since each letter occupies more pixels.
They use a 9° italic angle; this maintains the optimal contrast to minimize
distraction and eye strain. The usual angle is about 11°–12°.
The first font family published by the project, JetBrains Mono, includes coding
ligatures. They will enhance the rendering of source code but may be
problematic for other use cases.

%description -l ru_RU.UTF-8
Проект JetBrains Mono публикует семейства шрифтов, ориентированных на разработчиков.
Их формы просты и лишены ненужных деталей. При отображении в небольших
размерах текст выглядит более четким. Чем проще формы, тем быстрее
их воспринимает глаз и тем меньше усилий требуется мозгу для их обработки.
Форма овалов приближается к форме прямоугольных символов. Это делает весь
текст более четким. Внешние стороны овалов гарантируют
отсутствие дополнительных препятствий для ваших глаз при вертикальном просмотре текста.
Ширина символов остается стандартной, но высота строчных букв увеличена
увеличенный. Такой подход позволяет сохранить длину строк кода, ожидаемую разработчиками,
и помогает улучшить рендеринг, поскольку каждая буква занимает больше пикселей.
Они используют угол курсива 9°; это обеспечивает оптимальную контрастность, чтобы минимизировать
отвлекающие факторы и нагрузку на глаза. Обычный угол составляет около 11°-12°.
Первое семейство шрифтов, опубликованное проектом, JetBrains Mono, включает
в себя лигатуры для кодирования. Они улучшат визуализацию исходного кода, но могут быть
проблематичными для других вариантов использования.

%files
%doc AUTHORS.txt
%license OFL.txt
%{_datadir}/fonts/TTF/%{oname}

#------------------------------------------------------------------

%prep
%autosetup -p1 -c
chmod -x AUTHORS.txt

%build

%install
install -d %{buildroot}%{_datadir}/fonts/TTF/%{oname}
install -m0644 fonts/ttf/*.ttf %{buildroot}%{_datadir}/fonts/TTF/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2478 |21cr|jgmenu-4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __python %{__python3}

Name:           jgmenu
Version:        4.5.0
Release:        1
Summary:        Small X11 menu intended to be used with openbox and tint2
Summary(ru_RU.UTF-8):        Небольшое меню X11, предназначенное для использования с openbox и tint2
Group:          Graphical desktop/Other
License:        GPLv2
URL:            https://github.com/johanmalm/jgmenu/wiki
Source0:        https://github.com/johanmalm/jgmenu/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(librsvg-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libmenu-cache)
BuildRequires:  pkgconfig(xrandr)

%description
- jgmenu is a stand-alone, simple and contemporary-looking menu application for Linux and BSD.

%description -l ru_RU.UTF-8
jgmenu - это автономное, простое и современно выглядящее приложение меню для Linux и BSD.

%prep
%autosetup -p1

# Fix the path to Python 3
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" \
contrib/gtktheme/jgmenu-gtktheme.py \
contrib/mate-panel/mate-jgmenu.py \
contrib/pmenu/jgmenu-pmenu.py \
src/jgmenu-unity-hack.py

%build
%configure --with-gtktheme --with-lx
%make_build prefix=%{_prefix} libexecdir=%{_libdir}/%{name}

%install
%make_install prefix=%{_prefix} libexecdir=%{_libdir}/%{name}

%files
%doc README.md TODO.md
%{_bindir}/%{name}*
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/*
%{_mandir}/man7/*
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2479 |21cr|jgoodies-common-1.1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global shortname common

Name:           jgoodies-common
Version:        1.1.1
Release:        7
Summary:        Common library shared by JGoodies libraries and applications

Group:          Development/Java
License:        BSD
URL:            http://www.jgoodies.com/
Source0:        http://www.jgoodies.com/download/libraries/%{shortname}/%{name}-%(tr "." "_" <<<%{version}).zip

BuildRequires:  ant
BuildRequires:  java-devel
BuildRequires:  jpackage-utils
Requires:       java
Requires:       jpackage-utils
BuildArch:      noarch

%description
The JGoodies Common library provides convenience code for other JGoodies
libraries and applications.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

# Delete prebuild JARs
find -name "*.jar" -exec rm -f {} \;

# Remove DOS line endings
for file in LICENSE.txt RELEASE-NOTES.txt; do
  sed 's|\r||g' $file > $file.new && \
  touch -r $file $file.new && \
  mv $file.new $file
done


%build
ant \
  jar \
  javadoc


%install
install -Dpm 0644 build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}/
cp -a build/docs/api/* %{buildroot}%{_javadocdir}/%{name}/

%files
%doc LICENSE.txt README.html RELEASE-NOTES.txt
%{_javadir}/*.jar

%files javadoc
%{_javadocdir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2480 |21cr|jgraphx-3.6.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Java Graph Drawing Component
Name:		jgraphx
Version:	3.6.0.0
Epoch:		1
Release:	3
License:	BSD
Group:		Development/Java
URL:		http://www.jgraph.com/jgraph.html
Source0:	http://www.jgraph.com/downloads/jgraphx/archive/%{name}-%(echo %{version} |sed 's/\./_/g').zip
BuildRequires:	ant
BuildRequires:	java-devel >= 1.6
BuildRequires:	jpackage-utils
Requires:	java >= 1.4
Requires:	jpackage-utils
BuildArch:	noarch

%description
JGraphX is the a powerful, easy-to-use and feature-rich graph drawing
component for Java. It is a rewrite of JGraph, also known as JGraph 6.

%files
%{_javadir}/*
%doc license.txt

#--------------------------------------------------------------------

%package javadoc
Summary:	API Documentation for %{name}
Group:		Development/Java
Requires:	jpackage-utils
Requires:	%{name} = %{EVRD}

%description javadoc
JavaDoc documentation for %{name}

%files javadoc
%{_javadocdir}/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}
find -name '*.jar' -delete
rm -rf docs/api

%build
ant

%install

# Code
install -d %{buildroot}%{_javadir}
install -p -m644 lib/%{name}.jar \
        %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar \
        %{buildroot}%{_javadir}/%{name}.jar

# API documentation
install -d %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a docs/api/* %{buildroot}%{_javadocdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2481 |21cr|jhbuild-3.38.0-0.gitdb7b57.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit db7b57996dbf4f71282084ea74e581fe093118ff
%define commit_short %(echo %{commit} | head -c6)

Summary:	Tool designed to ease building collections of modules
Name:		jhbuild
Version:	3.38.0
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/jhbuild
Source0:	https://github.com/GNOME/jhbuild/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	gnome-common
BuildRequires:	meson
BuildRequires:	yelp-tools
BuildRequires:	gettext-devel
BuildArch:	noarch

%description
Tool designed to ease building collections of source packages,
called “modules”.

#------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Tool designed to ease building collections of modules
Group:		Graphical desktop/GNOME

%description -n python3-%{name}
Tool designed to ease building collections of source packages,
called “modules”.

%files -n python3-%{name} -f %{name}.lang
%doc README.rst
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{python3_sitelib}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
./autogen.sh
%configure --enable-gui
%make

%install
%make_install

%py3_shebang_fix %{buildroot}%{_bindir}/%{name}

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2482 |21cr|jhead-3.00-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line tools to read and edit EXIF extensions in JPEG files
Name:		jhead
Version:	3.00
Release:	3
License:	Public Domain
Group:		Graphics
Url:		http://www.sentex.net/~mwandel/jhead/
Source0:	http://www.sentex.net/~mwandel/jhead/%{name}-%{version}.tar.gz
Patch0:		jhead-2.97-ldflags.diff
Patch1:		jhead-3.00-CVE-2016-3822.patch
Patch2:		CVE-2018-6612.patch
# Without jpegtran the nicest features will not work
Requires:	libjpeg-progs

%description
Most digital cameras produce EXIF files, which are JPEG files with extra tags
that contain information about the image.

In contrary to the tools "exif" and "gexif" (and all other libexif-based tools
as "gphoto2") this tool gives a much easier readable summary of camera settings
(shutter speed in 1/x sec, focal length (also the 35-mm camera equivalent),
focal distance, ...), EXIF header manipulation as stripping off the thumbnail
and other info not needed, stripping off the complete header, applying
arbitrary conversion tools to the JPEG image and conserving the header,
renaming JPEG images with the capture date stored in the header, and even
turning the images upright when the camera has an orientation sensor (as Canon
Digital IXUS 400) ...

The tool is very compact, the executable has only a size of around 35 kb, the
whole package (with documentation) occupies 60 kb.

See %{_docdir}/jhead/usage.html for how to use this program.

%prep
%setup -q
%autopatch -p1

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 jhead %{buildroot}%{_bindir}
install -m0644 jhead.1 %{buildroot}%{_mandir}/man1

%files
%doc readme.txt usage.html changes.txt
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2483 |21cr|jigdo-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Jigsaw Download
Name:		jigdo
Version:	0.8.1
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://atterer.net/jigdo/
Source0:	http://atterer.net/jigdo/%{name}-%{version}.tar.xz
Patch0:		jigdo-0.8.1-fix-docs.patch
Source11:	%{name}-16.png
Source12:	%{name}-32.png
Source13:	%{name}-48.png
BuildRequires:	docbook-utils
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	mawk
BuildRequires:	bzip2-devel
BuildRequires:	db-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcurl)

%description
Jigsaw Download, or short jigdo, is an intelligent tool that can be used on the
pieces of any chopped-up big file to create a special "template" file which
makes reassembly of the file very easy for users who only have the pieces.

What makes jigdo special is that there are no restrictions on what
offsets/sizes the individual pieces have in the original big image. This makes
the program very well suited for distributing CD/DVD images (or large zip/tar
archives) because you can put the files on the CD on an FTP server - when jigdo
is presented the files along with the template you generated, it is able to
recreate the CD image.

%files -f %{name}.lang
%doc README doc/jigdo-file.* doc/TechDetails.txt
%{_bindir}/%{name}*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_mandir}/man1/%{name}*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoconf
%configure
make

%install
%makeinstall_std

mkdir %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Jigdo
Comment=%{Summary}
Exec=%{name} %U
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Network;FileTransfer;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2484 |21cr|jigl-2.0.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    jigl
%define version 2.0.1
%define release 9
%define Summary A perl script that generates a static html photo gallery

Summary:        %Summary
Name:           %name
Version:        %version
Release:        %release
License:        GPL
Group:          Graphics
URL:            http://xome.net/projects/jigl/
Source0:        %name-%version.tar.bz2
BuildArch:      noarch
Requires:       imagemagick jhead 

%description
jigl (pronounced jiggle) is a perl script that generates a static
html photo gallery from one or more directories of gif/jpg/png images.
It supports themes and is very customizable. It includes the ability to
display comments and EXIF info for each image in a simple clean layout.

%prep
%setup -q

%install
rm -rf %buildroot
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
cp jigl.pl $RPM_BUILD_ROOT/%{_bindir}/jigl

%clean
rm -rf %buildroot

%files
%defattr(0755,root,root,0755)
%_bindir/jigl
%defattr(0644,root,root,0755) 
%doc ChangeLog INSTALL Themes Todo UPGRADING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2485 |21cr|jimtcl-0.82-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %optflags -Wno-strict-aliasing

%define major 0
%define libname %mklibname %name %major
%define devname %mklibname %name -d

Name:           jimtcl
# Do not update!!!
# we use jimctl for build openocd, it's 0.12.0 not suuport jimctl-0.83, need currentScriptObj
Version:        0.82
Release:        2
Summary:        A small embeddable Tcl interpreter
License:        BSD
Group:          Development/Other
URL:            http://jim.tcl.tk
Source0:        https://github.com/msteveb/jimtcl/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  asciidoc
BuildRequires:  pkgconfig(openssl)

%description
Jim is an opensource small-footprint implementation of the Tcl programming 
language. It implements a large subset of Tcl and adds new features like 
references with garbage collection, closures, built-in Object Oriented 
Programming system, Functional Programming commands, first-class arrays and 
UTF-8 support.

%package  -n %{libname}
Summary:   Shared libraries of %{name}
Group:     Development/Other
Requires:  %{name} = %{version}

%description -n %{libname}
The lib%{name} package contains libraries and header files for
applications that use %{name}.

%package -n %{devname}
Summary:   Development files of %{name}
Group:     Development/Other
Requires:  %{libname} = %{version}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -qn %{name}-%{version}

rm -rf sqlite3

%build
#configure is not able to locate the needed binaries, so specify it manualy
export CC=gcc
export LD=ld
export AR=ar
export RANLIB=ranlib
export STRIP=strip

%configure --full --shared --disable-option-checking
%make

%check
# tests need some network connection
#make test

%install
%make_install
rm -rf %{buildroot}/%{_datadir}/doc/%{name}
rm -rf %{buildroot}/%{_libdir}/jim/tcltest.tcl

%files
%doc LICENSE AUTHORS README Tcl.html
%{_bindir}/jimsh
%{_bindir}/jimdb
%{_prefix}/docs/jim/Tcl.html
%{_libdir}/jim/README.extensions

%files -n %{libname}
%{_libdir}/libjim.so.%{major}*

%files -n %{devname}
%doc README.extensions README.metakit README.namespaces README.oo README.utf-8 STYLE
%{_includedir}/*
%{_bindir}/build-jim-ext
%{_libdir}/libjim.so
%{_libdir}/pkgconfig/jimtcl.pc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2486 |21cr|jiprof-1.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		jiprof
Version:	1.1.1
Release:	3
Summary:	Java Interactive Profiler
Group:		Development/Java
URL:		http://jiprof.sourceforge.net
Source:		http://downloads.sourceforge.net/project/jiprof/jip/%{version}/jip-src-%{version}.zip
License:	BSD
BuildRequires:	ant
BuildRequires:	objectweb-asm
BuildRequires:	jpackage-utils
BuildRequires:	junit
BuildRequires:	xerces-j2
BuildRequires:	java-rpmbuild
Requires:	jpackage-utils
Requires:	xerces-j2
BuildArch:	noarch

%description
JIP is a high performance, low overhead profiler that is written entirely in
Java. JIP gives the developer the ability to turn the profiler on and off while
the VM is running. You can also filter out classes and packages as well as
control the output.

%package	javadoc
Summary:	Javadoc for %{name}
Group:		Documentation

%description	javadoc
The Java Interactive Profiler.

This package contains javadoc for %{name}.

%package	manual
Summary:	Manual for %{name}
Group:		Documentation

%description	manual
The Java Interactive Profiler.

This package contains manual for %{name}.

%prep
%setup -q -c %{name}-%{version}

for j in $(find -name "*.jar"); do
   mv $j  $j.no
done

for file in src/com/mentorgen/tools/profile/instrument/PerfMethodAdapter.java \
	    src/org/objectweb/asm/jip/attrs/StackMapTableAttribute.java; do \
	    native2ascii -encoding UTF8 $file $file
done

%build
export CLASSPATH=$(build-classpath junit objectweb-asm/asm objectweb-asm/asm-commons xerces-j2):bin
%ant dist

%install
mkdir -p %{buildroot}%{_javadir}/%{name}

install -pm 644 client/client.jar %{buildroot}%{_javadir}/%{name}/client-%{version}.jar
install -pm 644 profile/profile.jar %{buildroot}%{_javadir}/%{name}/profile-%{version}.jar
install -pm 644 profile/jipViewer.jar %{buildroot}%{_javadir}/%{name}/jipViewer-%{version}.jar

(
  cd %{buildroot}%{_javadir}/%{name}
  for jar in *-%{version}*; do 
    ln -sf ${jar} ${jar/-%{version}/}
  done
)

mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s jiprof-%{version} %{buildroot}%{_javadocdir}/%{name}
rm -rf doc/javadoc

%files
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/client-%{version}.jar
%{_javadir}/%{name}/client.jar
%{_javadir}/%{name}/profile-%{version}.jar
%{_javadir}/%{name}/profile.jar
%{_javadir}/%{name}/jipViewer-%{version}.jar
%{_javadir}/%{name}/jipViewer.jar
%doc doc/license.txt

%files javadoc
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

%files manual
%doc doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2487 |21cr|jisp2-2.5.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define jisp_version 2.5.1

Name:           jisp2
Version:        2.5.1
Release:        8
Epoch:          0
Summary:        Java Indexed Serialization Package
License:        GPL-like
URL:            http://www.coyotegulch.com/products/jisp/
Group:          Development/Java
Source0:        jisp-%{version}-source.tar.gz
Patch0:         jisp2-2.5.1-makefile.patch
Patch1:         jisp2-2.5.1-java5-enum.patch
# jisp-3.0.0 won't work with jakarta-turbine-jcs
BuildRequires:  java-rpmbuild >= 0:1.7
Requires:  jpackage-utils >= 0:1.7
Provides:  hibernate_in_process_cache = %{epoch}:%{version}-%{release}
BuildArch:      noarch
BuildRequires:  java-devel

%description
Jisp uses B-Tree and hash indexes for keyed access to variable-length 
serialized objects stored in files. 

%package demo
Summary:        Demo for %{name}
Group:          Development/Java

%description demo
Demo for %{name}

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n jisp-%{version}
perl -pi -e 's/\r$//g' svfl.txt
%patch0 -p1
%patch1 -p1

%build
export CLASSPATH=
%make JAVAC_FLAGS=" -target 1.5 -source 1.5"
%make jars
%make docs 

%install

# jars
mkdir -p %{buildroot}%{_javadir}
cp -p jisp.jar \
  %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

# demo
mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}/lib
cp -a jisp-demo.jar %{buildroot}%{_datadir}/%{name}-%{version}/lib
# XXX: could thie be right?
cp -a *.java %{buildroot}%{_datadir}/%{name}-%{version}
cp -a *.txt %{buildroot}%{_datadir}/%{name}-%{version}

# hibernate_in_process_cache ghost symlink
ln -s %{_sysconfdir}/alternatives \
  %{buildroot}%{_javadir}/hibernate_in_process_cache.jar

%post
update-alternatives --install %{_javadir}/hibernate_in_process_cache.jar \
  hibernate_in_process_cache %{_javadir}/%{name}.jar 30

%preun
{
  [ $1 -eq 0 ] || exit 0
  update-alternatives --remove hibernate_in_process_cache %{_javadir}/%{name}.jar
} >/dev/null 2>&1 || :

%files
%defattr(0644,root,root,0755)
%doc svfl.txt
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%ghost %{_javadir}/hibernate_in_process_cache.jar

%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}-%{version}

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2488 |21cr|jitsi-2.11-1.5633.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define label 5633

Summary:	Jitsi - Open Source Video Calls and Chat
Name:		jitsi
Version:	2.11
Release:	1.%{label}.1
License:	LGPLv2+
Group:		Communications
URL:		https://www.jitsi.org
Source0:	https://github.com/jitsi/jitsi/archive/refs/tags/5633.tar.gz?/%{name}-%{label}.tar.gz
Source1:	%{name}.sh
Source2:	%{name}.desktop
AutoReqProv:	no
BuildRequires:	java-devel
BuildRequires:	ant
BuildRequires:	gzip
BuildRequires:	subversion
Requires:	java
ExcludeArch:	%{ix86}

%description
Jitsi is an audio/video Internet phone and instant messenger that
supports some of the most popular instant messaging and telephony protocols
such as SIP, Jabber, AIM/ICQ, MSN, Yahoo! Messenger, Bonjour, RSS and
counting. Jitsi is completely Open Source / Free Software, and is
freely available under the terms of the GNU Lesser General Public License.

%prep
%setup -q -n %{name}-%{label}

%build
ant -Dlabel=%{label} rebuild

%install

# create structure dir
mkdir -p -m 0755 %{buildroot}%{_bindir} \
	         %{buildroot}%{_datadir}/%{name} \
	         %{buildroot}%{_datadir}/%{name}/lib \
	         %{buildroot}%{_datadir}/%{name}/lib/bundle \
	         %{buildroot}%{_datadir}/%{name}/lib/native \
	         %{buildroot}%{_datadir}/%{name}/sc-bundles \
	         %{buildroot}%{_docdir}/%{name} \
	         %{buildroot}%{_mandir}/man1 \
	         %{buildroot}%{_datadir}/applications \
	         %{buildroot}%{_datadir}/pixmaps

# copy the documentation
install -Dm0644 resources/install/debian/jitsi.1.tmpl %{buildroot}%{_mandir}/man1/jitsi.1
sed -i -e "s/_PACKAGE_NAME_/jitsi/" %{buildroot}%{_mandir}/man1/%{name}.1
sed -i -e "s/_APP_NAME_/Jitsi/" %{buildroot}%{_mandir}/man1/%{name}.1
gzip %{buildroot}%{_mandir}/man1/%{name}.1

# copy the launcher script
install -Dm0755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
sed -i -e "s/_PACKAGE_NAME_/jitsi/" %{buildroot}%{_bindir}/%{name}

# no more libaoss
#sed -i -e "s@export LD_PRELOAD=/usr/lib/libaoss.so@export LD_PRELOAD=/usr/lib/libaoss.so.0@" $RPM_BUILD_ROOT/usr/bin/sip-communicator
#chmod a+x $RPM_BUILD_ROOT/usr/bin/jitsi

# copy the menu icons
install -Dm0644 resources/install/debian/%{name}-32.xpm %{buildroot}%{_datadir}/pixmaps/%{name}-32.xpm
install -Dm0644 resources/install/debian/%{name}-16.xpm %{buildroot}%{_datadir}/pixmaps/%{name}-16.xpm
install -Dm0644 resources/install/debian/%{name}.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg

# copy the menu entry
install -Dm0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
sed -i -e "s/_PACKAGE_NAME_/jitsi/" %{buildroot}%{_datadir}/applications/%{name}.desktop
sed -i -e "s/_APP_NAME_/Jitsi/"	%{buildroot}%{_datadir}/applications/%{name}.desktop

# copy the sc-bundles
install -Dm0644 sc-bundles/*.jar %{buildroot}%{_datadir}/%{name}/sc-bundles/
# remove all slicks
rm -rf %{buildroot}%{_datadir}/%{name}/sc-bundles/*-slick.jar
rm -rf %{buildroot}%{_datadir}/%{name}/sc-bundles/slick*.jar

# copy the os-specific sc-bundles
install -Dm0644 sc-bundles/os-specific/linux/*.jar %{buildroot}%{_datadir}/%{name}/sc-bundles/

# copy the lib jars
cp lib/*.jar %{buildroot}%{_datadir}/%{name}/lib/
cp lib/bundle/* %{buildroot}%{_datadir}/%{name}/lib/bundle/
rm %{buildroot}%{_datadir}/%{name}/lib/bundle/junit.jar
#cp lib/os-specific/linux/*.jar %{buildroot}%{_datadir}/%{name}/lib/

# copy the native libs
%ifarch i386 i586 i686
install -Dm0644 lib/native/linux/* %{buildroot}%{_datadir}/%{name}/lib/native/
%else
install -Dm0644 lib/native/linux-64/* %{buildroot}%{_datadir}/%{name}/lib/native/
%endif

# copy the resources
install -Dm0644 resources/install/logging.properties %{buildroot}%{_datadir}/%{name}/lib/
install -Dm0644 lib/felix.client.run.properties %{buildroot}%{_datadir}/%{name}/lib/

# Make felix deploy its bundles in ~/.felix/sip-communicator.bin
sed -i -e "s/felix.cache.profiledir=sip-communicator.bin/felix.cache.profile=sip-communicator.bin/" $RPM_BUILD_ROOT/usr/share/jitsi/lib/felix.client.run.properties
# fix shell script
sed -i -e "s/\/usr\/lib\/jni/\$LIBPATH\/native/" $RPM_BUILD_ROOT/usr/bin/jitsi
sed -i -e "s/\/usr\/share\/java\/jdic\.jar/\$LIBPATH\/jdic_stub\.jar:\$LIBPATH\/jdic-all\.jar/" $RPM_BUILD_ROOT/usr/bin/jitsi
sed -i -e "s/\/usr\/share\/java\/org\.apache\.felix\.framework\.jar/\$LIBPATH\/felix\.jar/" $RPM_BUILD_ROOT/usr/bin/jitsi
sed -i -e "s/\/usr\/share\/java\/org\.apache\.felix\.main\.jar://" $RPM_BUILD_ROOT/usr/bin/jitsi
sed -i -e "s/\/launchutils.jar//" $RPM_BUILD_ROOT/usr/bin/jitsi

%files
%defattr(-,root,root,-)
%{_bindir}/jitsi
#{_libdir}/jitsi
%{_datadir}/%{name}
%{_datadir}/applications/%{name}*
%{_datadir}/pixmaps/%{name}*
%doc %{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2489 |21cr|jlatexmath-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An implementation of LaTeX math mode wrote in Java

Name:		jlatexmath
Version:	1.0.3
Release:	5
License:	GPLv2+
Group:		Development/Java
URL:		http://forge.scilab.org
Source0:	http://forge.scilab.org/index.php/p/%{name}/downloads/get/%{name}-src-all-%{version}.zip
BuildRequires:	ant >= 0:1.6
BuildRequires:	fop
BuildRequires:	java-rpmbuild
BuildRequires:	jpackage-utils >= 0:1.6
BuildRequires:	xml-commons-apis
BuildRequires:	xml-commons-jaxp-1.3-apis
BuildRequires:	xmlgraphics-commons
Requires:	jpackage-utils
BuildArch:	noarch

%description
JLaTeXMath is an implementation of LaTeX math mode wrote in Java.

%prep
%setup -q -c -n %{name}

# remove all binary libs
find -type f -name "*.jar" -exec rm -rf {} \;

%build
export CLASSPATH=
export OPT_JAR_LIST=:
cd %{name}-%{version}
%ant minimal fop

%install

# jars
mkdir -p %{buildroot}%{_javadir}
cd %{name}-%{version}
cp -p dist/jlatexmath{,-fop,-minimal}-%{version}.jar %{buildroot}%{_javadir}
cp -p dist/jlm_*.jar %{buildroot}%{_javadir}
pushd  %{buildroot}%{_javadir} 
    #create symlink
    ln -s %{name}-%{version}.jar %{name}.jar
    ln -s %{name}-fop-%{version}.jar %{name}-fop.jar
    ln -s %{name}-minimal-%{version}.jar %{name}-minimal.jar
popd

%clean

%files
%{_javadir}/*.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2490 |21cr|jlayer-1.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		jlayer
Summary:	Ogg Vorbis sound engine
Version:	1.0.1
Release:	6
License:	LGPLv2+
Group:		Development/Java
URL:		http://sourceforge.net/projects/javalayer/
Source0:	http://www.javazoom.net/javalayer/sources/%{name}%{version}.tar.gz
BuildRequires:	ant
BuildRequires:	java-rpmbuild
BuildRequires:	java-devel >= 1.6.0
BuildArch:	noarch

%description
JLayer is a JAVA library that decodes, converts and plays MP3 files
in real-time. JLayer supports MPEG 1/2/2.5 Layer 1/2/3 audio format.

%files
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_javadir}/jl%{version}.jar
%{_javadir}/jl.jar

#--------------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description javadoc
Javadoc for %{name}.

%files javadoc
%{_javadocdir}/*

#--------------------------------------------------------------------

%prep
%setup -q -n JLayer%{version}

%build
%{ant} all

%install
install -dm 755 %{buildroot}%{_javadir}
install -m644 jl%{version}.jar %{buildroot}%{_javadir}/
ln -s jl%{version}.jar %{buildroot}%{_javadir}/jl.jar

# jars
ln -s jl%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s jl%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

# javadoc
install -d %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -r doc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2491 |21cr|jnettop-0.13.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Network traffic tracker
Name:		jnettop
Version:	0.13.0
Release:	14
License: 	GPLv2+
Group: 		Monitoring
Url:		http://jnettop.kubs.info/
Source0: 	http://jnettop.kubs.info/dist/%{name}-%{version}.tar.bz2
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(ncurses)

%description
Nettop is visualising active network traffic as top does with processes.
It displays active network streams sorted by bandwidth used. This is
often usable when you want to get a fast grip of what is going on on your
outbound router.

%files
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README .jnettop
%{_bindir}/jnettop
%{_prefix}/share/%{name}/*
%{_mandir}/man8/jnettop.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2492 |21cr|joe-4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil

Summary:	Summary An easy to use text editor, supporting syntax highlight and UTF-8
Name:		joe
Version:	4.6
Release:	1
License:	GPL+
Group:		Editors
Url:		http://joe-editor.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/joe-editor/JOE%20sources/%{name}-%{version}/%{name}-%{version}.tar.gz
# RPM SPEC mode, originally from Suse's joe
Source1:	spec.jsf
Patch1:		joe-3.7-term.patch
BuildRequires:	pkgconfig(ncurses)

%description
Joe is an easy to use, modeless text editor which would be very
appropriate for novices. Joe uses the same WordStar keybindings used
in Borland's development environment.

You should install joe if you've used it before and you liked it, or
if you're still deciding what text editor you'd like to use, or if you
have a fondness for WordStar. If you're just starting out, you should
probably install joe because it is very easy to use.

%files
%doc ChangeLog README.md docs/help-system.html NEWS.md
%doc docs/README.old docs/hacking.md docs/man.md
%{_bindir}/*
%dir %{_sysconfdir}/joe
%config(noreplace) %{_sysconfdir}/joe/*
%{_datadir}/%{name}/*
%{_mandir}/man1/*
%lang(ru) %{_mandir}/ru/man1/*
%{_datadir}/applications/*

#------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1 -b .TERM

# file-not-utf8
iconv -f koi8-r -t utf-8 ./man/ru/joe.1.in >./man/ru/joe.1.in.aux
touch -r ./man/ru/joe.1.in ./man/ru/joe.1.in.aux
mv ./man/ru/joe.1.in.aux ./man/ru/joe.1.in
iconv -f ISO_8859-1 -t UTF-8 ChangeLog > ChangeLog.tmp
touch -r ChangeLog ChangeLog.tmp
mv ChangeLog.tmp ChangeLog

%build
export CFLAGS="%{optflags} -DUSE_LOCALE"
%configure
%make

%install
%makeinstall

# XXX: hack to install the manpages, otherwise one goes over the other ...
# (trap for when this ugly thing is no more needed)
[ -d %{buildroot}/%{_mandir}/ru ] && exit 1
rm -rf %{buildroot}/%{_mandir}
pushd man && %makeinstall mandir=%{buildroot}/%{_mandir} && popd
pushd man/ru && %makeinstall mandir=%{buildroot}/%{_mandir}/ru && popd
for dir in %{buildroot}/%{_mandir} %{buildroot}/%{_mandir}/ru; do
	pushd $dir/man1
	for bin in jmacs jpico jstar rjoe; do
		ln -s joe.1 ${bin}.1
	done
	popd
done

cp -p %{SOURCE1} %{buildroot}%{_datadir}/joe/syntax/
rm -f %{buildroot}%{_datadir}/applications/*.desktop

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Joe
Comment=%{Summary}
Comment[ru]=Простой текстовый редактор с подсветкой синтаксиса
Exec=%{name} %f
Icon=editors_section
Terminal=true
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Editors;TextEditor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2493 |21cr|john-1.8.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	John the Ripper password cracker
Name:		john
Version:	1.8.0
Release:	7
License:	GPLv2+
Group:		Monitoring
Url:		http://www.openwall.com/john
Source0:	http://www.openwall.com/john/j/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(openssl)

%description
John the Ripper is a fast password cracker, currently available for many
flavors of Unix (11 are officially supported, not counting different
architectures), DOS, Win32, and BeOS. Its primary purpose is to detect
weak Unix passwords, but a number of other hash types are supported as
well.

%files
%doc doc/*
%config(noreplace) %{_sysconfdir}/john.conf
%{_bindir}/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
chmod 0644 doc/*

%build
TARGET=""
%ifarch %{ix86}
    %ifarch i686
    TARGET=linux-x86-mmx
    %else
    TARGET=linux-x86-any
    %endif
%else
    %ifarch x86_64
    TARGET=linux-x86-64
    %endif
%endif

if test -z "$TARGET"; then
    TARGET=generic
    export TARGET
    echo "Please add the right TARGET to the spec file"
fi

cd src
%make $TARGET CFLAGS="-c -Wall %{optflags} -DJOHN_SYSTEMWIDE=1" LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}%{_bindir} \
	%{buildroot}%{_datadir}/%{name} \
	%{buildroot}%{_sysconfdir}

install -m 755 run/{john,mailer} %{buildroot}%{_bindir}/
install -m 644 run/*.chr run/password.lst %{buildroot}%{_datadir}/%{name}/
install -m 644 run/john.conf %{buildroot}%{_sysconfdir}/

pushd %{buildroot}%{_bindir}
    ln -s john unafs
    ln -s john unique
    ln -s john unshadow
popd

pushd %{buildroot}%{_datadir}/%{name}
    ln -s %{_sysconfdir}/john.conf john.ini
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2494 |21cr|johnny-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI frontend to John the Ripper password cracker 
Name:		johnny
Version:	2.2
Release:	1
License:	LGPL-2.1
Group:		Monitoring
Url:		https://openwall.info/wiki/john/johnny
Source0:	https://github.com/openwall/johnny/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Johnny the open source cross-platform GUI frontend for John the Ripper, the
popular password cracker, written in C++ using the Qt framework.

%files
%{_bindir}/%{name}
%{_datadir}/applications/johnny.desktop
%{_datadir}/pixmaps/johnny.png

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%qmake_qt5
%make

%install
install -Dm 0755 johnny %{buildroot}/%{_bindir}/johnny

install -Dm 0644 resources/icons/johnny.png %{buildroot}/%{_datadir}/pixmaps/johnny.png

#Install our desktop file.
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Johnny
Comment=Gui for John the ripper
Exec=johnny
Icon=johnny
Terminal=false
Type=Application
StartupNotify=true
Categories=Monitoring;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2495 |21cr|joomla-1.5.20-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (oe) undefining these makes the build _real_ quick.
%undefine __find_provides
%undefine __find_requires

Summary:	Joomla Open Source (CMS)
Name:		joomla
Version:	1.5.20
Release:	6
License:	GPLv2+
Group:		System/Servers
URL:		http://www.joomla.org/
Source0:	Joomla_%{version}-Stable-Full_Package.tar.bz2
Source1:	joomla-16x16.png
Source2:	joomla-32x32.png
Source3:	joomla-48x48.png
Patch0:		joomla-htaccess.patch.bz2
Requires:	apache-mod_php
Requires:	php-mysql
Requires:	php-xml
Requires:	php-gd
Requires:	joomla-administrator
BuildArch:	noarch

%description
Joomla! is a Content Management System (CMS) created by the same award-winning
team that brought the Mambo CMS to its current state of stardom.

%package	administrator
Summary:	Administrative web interface for Joomla Open Source (CMS)
Group:		System/Servers
Requires:	%{name} = %{version}-%{release}

%description	administrator
Administrative web interface for Joomla Open Source (CMS)

%prep

%setup -q -c
%patch0

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

cp %{SOURCE1} .
cp %{SOURCE2} .
cp %{SOURCE3} .

%build

%install
install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_var}/www/%{name}
cp -aRf * %{buildroot}%{_var}/www/%{name}/

# provide an empty configuration.php file
touch %{buildroot}%{_var}/www/%{name}/configuration.php

# apache config
cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf << EOF

Alias /%{name} %{_var}/www/%{name}

<Directory %{_var}/www/%{name}>
    Require all granted
</Directory>

<Directory %{_var}/www/%{name}/installation>
    Require local
    ErrorDocument 403 "Access denied per %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf"
</Directory>

EOF

cat htaccess.txt >> %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf

cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}-administrator.conf << EOF

<Directory %{_var}/www/%{name}/administrator>
    Require local
    ErrorDocument 403 "Access denied per %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf"
</Directory>
EOF

cat > README.urpmi <<EOF
Once this package is installed, there are a few configuration items which need
to be performed before the application is usable.  First, you need to install
Mysql database and corresponding php modules:

# urpmi mysql php-mysql

Then, you need to establish a username and password to connect to your
MySQL database as, and make both MySQL and Joomla aware of this.
Let's start by creating the database and the username / password
inside MySQL first:

  # mysql
  mysql> create database joomla;
  Query OK, 1 row affected (0.00 sec)

  mysql> grant all privileges on joomla.* to joomla identified by 'joomla';
  Query OK, 0 rows affected (0.00 sec)

  mysql> flush privileges;
  Query OK, 0 rows affected (0.00 sec)

  mysql> exit
  Bye
  #

Under certain curcumstances, you may need to run variations of the "grant"
command:
mysql> grant all privileges on joomla.* to joomla@localhost identified by 'joomla';
   OR
mysql> grant all privileges on joomla.* to joomla@'%' identified by 'joomla';

This has created an empty database called 'joomla', created a user named
'joomla' with a password of 'joomla', and given the 'joomla' user total
permission over the 'joomla' database.  Obviously, you'll want to select a
different password, and you may want to choose different database and user
names depending on your installation.  The specific values you choose are
not constrained, they simply need to be consistent between the database and the
config file.

Once that's done and the database server and web server have been started, 
 in your favourite web browser, enter following URL :
http://localhost/joomla/  and 
follow the instructions given to you on the pages you see to set up the 
database tables. Then, when required, removed the directory 
%{_var}/www/joomla/installation/.
EOF

# Mandriva Icons
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_liconsdir}

install -m0644 joomla-16x16.png %{buildroot}%{_miconsdir}/%{name}.png
install -m0644 joomla-32x32.png %{buildroot}%{_iconsdir}/%{name}.png
install -m0644 joomla-48x48.png %{buildroot}%{_liconsdir}/%{name}.png

# install menu entry.

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Joomla Administrator
Comment=Administrative web interface for Joomla Open Source (CMS)
Exec=%{_bindir}/www-browser http://localhost/%{name}/administrator/
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Internet-WebEditors;Network;WebDevelopment;
EOF

# cleanup
rm -f %{buildroot}%{_var}/www/%{name}/htaccess.txt %{buildroot}%{_var}/www/%{name}/joomla-*.png

%files
%doc README.urpmi
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf
#exclude %{_var}/www/%{name}/administrator
%dir %{_var}/www/%{name}
%{_var}/www/%{name}/includes
%{_var}/www/%{name}/installation
%{_var}/www/%{name}/libraries
%{_var}/www/%{name}/logs
%{_var}/www/%{name}/plugins
%{_var}/www/%{name}/tmp
%{_var}/www/%{name}/xmlrpc
%{_var}/www/%{name}/CHANGELOG.php
%{_var}/www/%{name}/COPYRIGHT.php
%{_var}/www/%{name}/CREDITS.php
%{_var}/www/%{name}/INSTALL.php
%{_var}/www/%{name}/LICENSE.php
%{_var}/www/%{name}/LICENSES.php
%{_var}/www/%{name}/index*.php
%{_var}/www/%{name}/configuration.php-dist
%{_var}/www/%{name}/robots.txt
%defattr(0644,apache,root,0755)
%config(noreplace) %{_var}/www/%{name}/configuration.php
%{_var}/www/%{name}/cache
%{_var}/www/%{name}/components
%{_var}/www/%{name}/images
%{_var}/www/%{name}/language
%{_var}/www/%{name}/media
%{_var}/www/%{name}/modules
%{_var}/www/%{name}/templates

%files administrator
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}-administrator.conf
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*.desktop
%defattr(0644,apache,root,0755)
%{_var}/www/%{name}/administrator

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2496 |21cr|jorbis-0.0.17-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			jorbis
Summary:		JOrbis - Pure Java Ogg Vorbis Decoder
URL:			http://www.jcraft.com/jorbis/index.html
Group:			Development/Java
Version:		0.0.17
Release:		7
License:		LGPL
BuildRequires:	ant
BuildRequires:	jpackage-utils
BuildRequires:	java-rpmbuild >= 1.5
BuildRequires:	unzip
BuildRequires:	update-alternatives
BuildRequires:	xml-commons-apis
BuildRequires:	xml-commons-resolver
Requires:		java >= 1.5
BuildArch:		noarch
Source0:		%{name}-%{version}.zip

%description
JOrbis is a pure Java Ogg Vorbis decoder.
JOrbis accepts Ogg Vorbis bitstreams and decodes them to raw PCMs.

JOrbis is copyrighted by JCraft Inc. and is licensed through the
GNU Lesser General Public License.

Read the COPYING.LIB file for the complete license.

%package javadoc
Summary:	Javadoc for jorbis
Group:		Development/Java

%description javadoc
Javadoc for jorbis.

%package -n jorbis-player
Summary:	JOrbisPlayer - a ogg player using %{name}
Group:		Development/Java
Requires:	%{name} = %{version}

%description -n jorbis-player
JOrbisPlayer is a simple ogg-Player.

%package -n jorbis-comment
Summary:	JOrbisComment is a simple comment editor for Ogg Vorbis
Group:		Development/Java
Requires:	%{name} = %{version}

%description -n jorbis-comment
JOrbisComment is a simple comment editor for Ogg Vorbis.

This program is just provided here for setting an example, how to
use JOrbis for editing comments.

%prep
%setup -q -n %{name}-%{version}

%build
%javac \
	`find ./ -name '*.java'`
%jar cf jorbis.jar \
	com/jcraft/jogg/*.class \
	com/jcraft/jorbis/*.class
%jar cf JOrbisPlayer.jar \
	player/*.class
%jar cf JOrbisComment.jar \
	comment_editor/*.class

%javadoc \
	-d doc -public \
	`find ./ -name '*.java'`

%install
# jars
%__install -dm 755 %{buildroot}%{_javadir}
%__install -pm 644 jorbis.jar \
	%{buildroot}%{_javadir}/jorbis-%{version}.jar
%__install -pm 644 JOrbisPlayer.jar \
	%{buildroot}%{_javadir}/JOrbisPlayer-%{version}.jar
%__install -pm 644 JOrbisComment.jar \
	%{buildroot}%{_javadir}/JOrbisComment-%{version}.jar
pushd %{buildroot}%{_javadir}
	for jar in *-%{version}*; do
		ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
	done
popd

# javadoc
%__install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr doc/* \
	%{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%files
%defattr(-,root,root)
%doc COPYING.LIB ChangeLog README
%{_javadir}/%{name}*.jar

%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%files -n jorbis-player
%defattr(-,root,root)
%doc player/JOrbisPlayer.html
#%doc player/*.ogg player/playlist
%{_javadir}/JOrbisPlayer*.jar

%files -n jorbis-comment
%defattr(-,root,root)
%doc comment_editor/README
%{_javadir}/JOrbisComment*.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2497 |21cr|joshuto-0.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		crates_ver %{version}

Summary:      Ranger-like terminal file manager written in Rust
Name:         joshuto
Version:      0.9.5
Release:      1
Group:        File tools
License:      LGPLv3
Url:          https://github.com/kamiyaa/joshuto
Source0:      https://github.com/kamiyaa/joshuto/archive/refs/tags/%{name}-%{version}.tar.gz
# generated with cargo-vendor
Source1:        %{name}-crates-%{crates_ver}.tar.xz

BuildRequires:     pkgconfig(ncurses)
BuildRequires:     rust
BuildRequires:     cargo-vendor

Requires:     xdg-utils
Requires:     file

%description
Ranger-like terminal file manager written in Rust.

%files
%doc README.md LICENSE
%{_bindir}/%{name}

#-----------------------------------------------------

%prep
%autosetup -a1

%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"
cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source."https://github.com/magiclen/alphanumeric-sort"]
git = "https://github.com/magiclen/alphanumeric-sort"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF


%build
#export CARGO_HOME="$(pwd)/.cargo"
#RUSTFLAGS=-g cargo build --all-targets --offline --frozen

%install
export CARGO_HOME="$(pwd)/.cargo"
cargo install --no-track --debug --root=%{buildroot}%{_prefix} --path .





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2498 |21cr|journal-triggerd-0.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		journal-triggerd
Summary:	A daemon that runs in the background, listening to systemd's journal
Version:	0.2.1
Release:	1
License:	GPLv3
Group:		System/Kernel and hardware
Url:		http://jjacky.com/%{name}/
Source0:	http://jjacky.com/%{name}/%{name}-%{version}.tar.gz
Source1:	error.rule.example
Source2:	unit_failed.rule.example

BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	autogen
BuildRequires:	groff

Requires(pre):  rpm-helper

%description
A small daemon that runs in the background, listening to systemd's journal,
and will run "triggers" (i.e. execute a given command line) when certain
messages are added. 
You can define which messages to listen for and what to run when such messages
are added to the journal, by defining rules.

%prep
%setup -q 

%build
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/%{name}/html

mkdir -p %{buildroot}%{_sysconfdir}/journal-triggerd.rules
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/journal-triggerd.rules
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/journal-triggerd.rules

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%doc AUTHORS COPYING HISTORY README.md index.html
%{_bindir}/journal-triggerd
/usr/lib/systemd/system/journal-triggerd.service
%{_mandir}/man1/journal-triggerd.1.xz
%config(noreplace) %{_sysconfdir}/journal-triggerd.rules/*.example

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2499 |21cr|joy2key-1.6.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			joy2key
Version:		1.6.3
Release:		7

Summary:	Translate joystick events into keyboard events
License:	GPLv2
# keyboard emulator:
Group:		Emulators
URL:		http://sourceforge.net/projects/joy2key/
Source0:	http://downloads.sourceforge.net/joy2key/joy2key-%{version}.tar.bz2
# Uses xwininfo to find the window.
Requires:	xwininfo
BuildRequires:	pkgconfig(x11)

%description
Joy2key will translate your joystick movements into the equivalent
keystrokes. Joy2key works both in X and at the console, both raw and
terminal modes.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS README TODO joy2keyrc.sample
%{_bindir}/joy2key
%{_mandir}/man1/joy2key.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2500 |21cr|jpegoptim-1.4.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to optimize JPEG image files
Name:		jpegoptim
Version:	1.4.7
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://www.kokkonen.net/tjko/projects.html
Source0:	https://github.com/tjko/jpegoptim/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libjpeg)

%description
Provides lossless optimization (based on optimizing the Huffman tables) and
"lossy" optimization based on setting the maximum quality factor.

%files
%doc COPYRIGHT README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2501 |21cr|jpegpixi-1.1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line tool to fix bad pixels in digital photos
Name:		jpegpixi
Version:	1.1.1
Release:	9
License:	GPLv2+
Group:		Graphics
Url:		http://www.zero-based.org/software/jpegpixi/
Source0:	http://www.zero-based.org/software/jpegpixi/%{name}-%{version}.tar.bz2
BuildRequires:	jpeg-devel

%description
"Jpegpixi" is short for "JPEG pixel interpolator". The intent of the
program is to interpolate pixels in JFIF images (commonly referred to
as "JPEG images"). This is useful to correct images from a digital
camera with CCD defects. For example, if one pixel is always bright
green, this pixel can be interpolated away with jpegpixi.

Jpegpixi is unique in that it tries to preserve the quality of the
JFIF image as much as possible. Usual graphics programs decode JFIF
images when they are loaded, and re-encode them when they are saved,
which results in an overall loss of quality. Jpegpixi, on the other
hand, does not decode and re-encode the image, but manipulates the
encoded image data (known as the "DCT coefficients"). Therefore, the
blocks (typically 8x8, 8x16, or 16x16 pixel areas) which contain the
pixels to be interpolated are minimally disturbed, whereas other
blocks remain pixel-by-pixel identical to the original image.

Jpegpixi is a command line utility. It is Free Software, released
under the GNU General Public License.

Please read the manual page for detailed usage instructions ("man
jpegpixi"). For a usage example, please see the "Example" section on
the jpegpixi homepage at <http://jpegpixi.sourceforge.net/>.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README README.jpeglib
%{_bindir}/jpeghotp
%{_bindir}/jpegpixi
%{_mandir}/man1/jpeghotp.1*
%{_mandir}/man1/jpegpixi.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} jpeghotp %{name}.lang --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2502 |21cr|jreen-1.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}-qt5 %{major}
%define devname %mklibname %{name}-qt5 -d

Summary:	Qt XMPP library
Name:		jreen
Version:	1.3.0
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/euroelessar/jreen
Source0:	https://github.com/euroelessar/jreen/archive/v%{version}.tar.gz?/jreen-%{version}.tar.gz
BuildRequires:	cmake >= 2.8.0
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(qca2)
BuildRequires:	pkgconfig(libgsasl)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(zlib)

%description
Qt XMPP library.

#---------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt XMPP library
Group:		System/Libraries

%description -n %{libname}
Qt XMPP library.

%files -n %{libname}
%{_libdir}/libjreen-qt5.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/%{name}-qt5/
%{_libdir}/libjreen-qt5.so
%{_libdir}/pkgconfig/libjreen-qt5.pc

#---------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2503 |21cr|jrexx-1.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Automaton based regluar expression API for Java
Name:           jrexx
Version:        1.1.1
Release:        6
Epoch:          0
License:        LGPL
URL:            http://www.karneim.com/jrexx/
Group:          Development/Java
Source0:        jrexx-1.1.1-src.zip
Source1:        jrexx-build.xml
BuildRequires:  java-rpmbuild >= 0:1.5.32
BuildRequires:  ant >= 0:1.5.4
BuildRequires:  locales-en
BuildArch:      noarch
BuildRequires:  java-devel

%description
jrexx is a powerful easy-to-use regular expression 
API for textual pattern matching. Technically jrexx 
uses a minimized deterministic FSA (finite state 
automaton) and compiles the textual representation 
of the regular expression into such an automaton. 
Besides the usual pattern matching functionality, 
jrexx provides an introspection API for exploration 
of the automaton's structure by 'states' and 
'transitions'. Since the automaton is deterministic 
and minimized the pattern matching alogorithm is 
extremly fast (compared to the java regular 
expression API in JDK1.4) and works with huge 
patterns and input texts. Since FSA can be handled 
as sets, jrexx also offers all basic set operations 
for complement, union, intersection and difference, 
which is not provided by other regex implementations 
(as far as we know). 


%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
%{summary}.

%prep
%setup -T -c %{name}-%{version}
unzip -q %{SOURCE0}
cp %{SOURCE1} build.xml

%build
export LC_ALL=en_US.ISO-8859-1
%{ant} dist

%install
# jars
mkdir -p %{buildroot}%{_javadir}
cp -p output/dist/lib/%{name}-%{version}.jar \
  %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr output/dist/jdoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2504 |21cr|jrosetta-1.0.2-0.0.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	JRosetta provides a common base for graphical component
Name:		jrosetta
Version:	1.0.2
Release:	0.0.7
Group:		Development/Java
License:	GPLv2+
URL:		http://dev.artenum.com/projects/JRosetta
Source0:	jrosetta-%{version}-GPL.zip
BuildRequires:	java-rpmbuild
BuildRequires:	jpackage-utils >= 1.5
BuildRequires:	ant
Requires:	java >= 1.5
Requires:	jpackage-utils >= 1.5
BuildArch:	noarch

%description
JRosetta provides a common base for graphical component that could be used
to build a graphical console in Swing with the latest requirements, such as
command history, completion and so on for instance for scripting language
or command line.


%prep
%setup -q -n %{name}-%{version}-gpl

#wrong-file-end-of-line-encoding
cp -p CHANGE.txt CHANGE.txt.CRLF
sed -i -e 's/\r//' CHANGE.txt
touch -r CHANGE.txt.CRLF CHANGE.txt
rm CHANGE.txt.CRLF

%build
%ant make


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_javadir}

for j in jrosetta-API jrosetta-engine ; do
  install -pm 0644 dist/${j}.jar %{buildroot}%{_javadir}/${j}-%{version}.jar
  ln -fs ${j}-%{version}.jar %{buildroot}%{_javadir}/${j}.jar
done

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGE.txt COPYRIGHT LICENSE.txt
%{_javadir}/jrosetta*.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2505 |21cr|js-1.85-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _requires_exceptions devel(libnspr4\\|devel(libplc4\\|devel(libplds4

%define	major	1
%define	libname	%mklibname mozjs185_ %{major}
%define	devname	%mklibname mozjs185 -d

%define real_version 1.8.5

Summary:	SpiderMonkey, the Mozilla JavaScript engine
Name:		js
Epoch:		1
Version:	1.85
Release:	12
License:	MPL
Group:		Development/Other
Url:		http://www.mozilla.org/js/
Source0:	http://ftp.mozilla.org/pub/mozilla.org/js/%{name}185-1.0.0.tar.gz
# by default JS ships with libffi 3.0.10
# it's very old version
# that does not support an ARM64
Source1:	libffi-3.2.1.tar.gz
Source100:	js.rpmlintrc
Patch0:		js-1.8.5-fix-destdir.patch
Patch1:		js-1.8.5-gcc7.patch
Patch2:		js-1.8.5-asm.patch
Patch3:		spidermonkey-1.8.5-arm_respect_cflags-3.patch
Patch4:		js-64bitbigendian.patch
Patch5:		js185-libedit.patch
Patch6:		js-filter.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1178141 (http://hg.mozilla.org/mozilla-central/rev/a7b220e7425a)
Patch7:		js-1.8.5-array-recursion.patch
Patch8:		aarch64.patch
BuildRequires:	autoconf2.1
BuildRequires:	python2
BuildRequires:	nspr-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libedit)
# wtf?
BuildRequires:	zip

%description
The JavaScript engine compiles and executes scripts containing JavaScript
statements and functions. The engine handles memory allocation for the
objects needed to execute scripts, and it cleans up—garbage
collects—objects it no longer needs.

SpiderMonkey supports versions 1.0 through 1.8 of the JavaScript language.
JS 1.3 and later conform to the ECMAScript specification, ECMA 262-3.
Later versions also contain Mozilla extensions such as array comprehensions
and generators. SpiderMonkey also supports E4X (optionally).

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	JavaScript engine library
Group:		System/Libraries

%description -n %{libname}
The JavaScript engine compiles and executes scripts containing JavaScript
statements and functions. The engine handles memory allocation for the
objects needed to execute scripts, and it cleans up—garbage
collects—objects it no longer needs.

SpiderMonkey supports versions 1.0 through 1.8 of the JavaScript language.
JS 1.3 and later conform to the ECMAScript specification, ECMA 262-3.
Later versions also contain Mozilla extensions such as array comprehensions
and generators. SpiderMonkey also supports E4X (optionally).

%files -n %{libname}
%{_libdir}/libmozjs185.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The header files for %{libname}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libjs-devel = %{EVRD}
Provides:	mozjs-devel = %{EVRD}
Requires:	nspr-devel

%description -n %{devname}
These are the header files for development with SpiderMonkey.

%files -n %{devname}
%doc README.html
%dir %{_includedir}/js
%{_includedir}/js/*
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{real_version}/js/src
%patch0 -p3 -b .destdir~
%patch1 -p3 -b .gcc7~
%patch2 -p3 -b .asm~
%patch3 -p3 -b .respectcflags~
%patch4 -p3 -b .bigendian
%patch5 -p3 -b .libed
%patch6 -p2 -b .jsf
%patch7 -p3 -b .array-recursion
%patch8 -p3 -b .arm64

rm -rf ctypes/libffi/
tar -xf %{SOURCE1} -C ctypes
mv ctypes/libffi-3.2.1 ctypes/libffi/

%build
%global optflags %{optflags} -fpermissive
export PYTHON=%{__python2}
autoconf-2.13
%configure \
	--enable-readline \
	--enable-threadsafe \
	--enable-ctypes \
	--with-system-nspr \
	--disable-optimize
%make

%install
%makeinstall_std

chmod 644 %{buildroot}%{_includedir}/js/*

# install binary
install -m755 shell/js -D %{buildroot}%{_bindir}/js
install -m755 jscpucfg -D %{buildroot}%{_bindir}/jscpucfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2506 |21cr|json11-1.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname	%mklibname json11 %{major}
%define devname	%mklibname -d json11

Name:		json11
Version: 	1.0.0
Release:	2
Group:		Development/C
Summary:	A tiny JSON library for C++11
License:	MIT
URL:		https://github.com/dropbox/%{name}
Source0:	%{url}/archive/v%{version}.tar.gz

BuildRequires:	ninja
BuildRequires:	cmake

%description
Json11 is a tiny JSON library for C++11, providing JSON parsing
and serialization.

%package -n %{libname}
Summary: Lib files for %{name}

%description -n %{libname}
%{summary}.

%package -n %{devname}
Summary: Development files for %{name}
Requires: %{libname} = %{EVRD}

%description -n %{devname}
%{summary}.

%prep
%setup -q
mkdir -p %{_target_platform}
sed -i 's@lib/@%{_lib}/@g' CMakeLists.txt
sed -i 's@lib/@%{_lib}/@g' json11.pc.in
echo "set_property(TARGET json11 PROPERTY SOVERSION 0)" >> CMakeLists.txt

%build
%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DJSON11_BUILD_TESTS=ON \

%ninja_build

%check
pushd %{_target_platform}
    ctest --output-on-failure
popd

%install
%ninja_install -C build

%files -n %{libname}
%{_libdir}/lib%{name}.so.0

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}.hpp
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2507 |21cr|json-java-20220924-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define RealName JSON-java

Summary:	JavaScript Object Notation support in Java
Name:		json-java
Version:	20220924
Release:	1
License:	ASL 2.0
Group:		Development/Java
Url:		http://stleary.github.io/JSON-java/index.html
Source0:	https://github.com/stleary/JSON-java/archive/%{version}.tar.gz?/%{RealName}-%{version}.tar.gz
BuildRequires:	jpackage-utils
BuildRequires:	java-devel
BuildRequires:	maven-local
BuildRequires:	mvn(org.99soft:oss-parent:pom:)
BuildRequires:	mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:	mvn(org.apache.maven.plugins:maven-gpg-plugin)
BuildRequires:	mvn(org.mockito:mockito-core)
BuildRequires:	mvn(com.jayway.jsonpath:json-path)
BuildRequires:	mvn(org.slf4j:slf4j-api)
BuildRequires:	zip
BuildArch:	noarch
Obsoletes:	json = 20171018-1

%description
Java support for the JSON (JavaScript Object Notation) lightweight
data-interchange format.  It is based on a subset of the JavaScript
Programming Language, Standard ECMA-262 3rd Edition - December 1999.
JSON is a text format that is completely language independent but uses
conventions that are familiar to programmers of the C-family of
languages including C, C++, C#, Java, JavaScript, Perl, Python, and many
others.

%files -f .mfiles
%license LICENSE
%doc *.md

#-------------------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java
Requires:	jpackage-utils
Obsoletes:	json-javadoc = 20171018-1

%description javadoc
API docs for %{name}.

%files javadoc -f .mfiles-javadoc

#-------------------------------------------------------------------------

%prep
%setup -qn %{RealName}-%{version}

%pom_xpath_replace "pom:parent/pom:groupId" "<groupId>org.99soft</groupId>"
%pom_remove_plugin :nexus-staging-maven-plugin

%build
%mvn_build -f

%install
%mvn_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2508 |21cr|jspeex-0.9.7-0.0.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jspeex
Version:        0.9.7
Release:        0.0.7
Summary:        100% Java Speex encoder/decoder/converter library
License:        BSD
Url:            http://jspeex.sourceforge.net/
Group:          Development/Java
Source0:        %{name}-%{version}.tar.bz2
Patch:          %{name}-build.xml
BuildRequires:  ant
BuildRequires:  dos2unix
BuildRequires:  java-rpmbuild >= 1.5
BuildRequires:  jpackage-utils >= 1.5
BuildRequires:  junit
BuildRequires:  update-alternatives
BuildRequires:	xml-commons-apis
BuildRequires:	xml-commons-resolver
Requires:       java >= 1.5
BuildArch:      noarch

%description
JSpeex is a Java port of the Speex speech codec (Open Source/Free Software
patent-free audio compression format designed for speech).

It provides both the decoder and the encoder in pure Java, as well as a
JavaSound SPI.

%package javadoc
Summary:  Javadoc for %{name}
Group:    Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}
%patch

dos2unix  TODO License.txt README
%__chmod 644 TODO License.txt README

%build
%ant package javadoc

%install
# jar
%__install -dm 755 %{buildroot}%{_javadir}
%__install -m 644 dist/%{name}.jar \
	%{buildroot}%{_javadir}/%{name}-%{version}.jar
pushd %{buildroot}%{_javadir}
	for jar in *-%{version}*; do
		ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
	done
popd

# javadoc
%__install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr doc/javadoc/* \
	%{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} 

# startscripts
%__cat > %{name}_enc.sh << EOF
#!/bin/bash
%{java} -jar %{_javadir}/%{name}.jar JSpeexEnc "\$@"
EOF

%__cat > %{name}_dec.sh << EOF
#!/bin/bash
%{java} -jar %{_javadir}/%{name}.jar JSpeexDec "\$@"
EOF

%__install -dm 755 %{buildroot}%{_bindir}
%__install -m 755 %{name}_*.sh \
	%{buildroot}%{_bindir}

%clean
[ -d %{buildroot} -a "%{buildroot}" != "" ] && %__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc TODO License.txt README
%{_bindir}/*.sh
%{_javadir}/%{name}*.jar

%files javadoc
%defattr(-,root,root)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2509 |21cr|jthread-1.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

Summary:	Make use of threads easy on different platforms
Name:		jthread
Version:	1.3.3
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://research.edm.uhasselt.be/~jori/page/index.php?n=CS.Jthread
Source0:	http://research.edm.uhasselt.be/jori/jthread/%{name}-%{version}.tar.bz2
BuildRequires:	cmake

%description
The JThread package provides some classes to make use of threads easy
on different platforms. The classes are actually rather simple
wrappers around existing thread implementations.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Make use of threads easy on different platforms
Group:		System/Libraries
Obsoletes:	%{mklibname jthread 1.2.1} < %{EVRD}

%description -n %{libname}
The JThread package provides some classes to make use of threads easy
on different platforms. The classes are actually rather simple
wrappers around existing thread implementations.

%files -n %{libname}
%{_libdir}/libjthread.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Make use of threads easy on different platforms
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The JThread package provides some classes to make use of threads easy
on different platforms. The classes are actually rather simple
wrappers around existing thread implementations.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/jthread
%{_libdir}/cmake/JThread
%{_libdir}/pkgconfig/jthread.pc
%{_libdir}/libjthread.so
%{_libdir}/libjthread.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%define _ssp_cflags %{nil}

%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2510 |21cr|jumpnbump-1.55-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cute little Bunny Game ( with bloody gore details )
Name:		jumpnbump
Version:	1.55
Release:	9
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.jumpbump.mine.nu/
Source0:	http://www.jumpbump.mine.nu/port/%{name}-%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
Source2:	jumpnbump-1.41-man-pages.tar.bz2
Patch0:		jumpnbump-1.50-format_string.patch
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)

%description
Jump n bump is a game for almost the whole family. You are cute fluffy little
bunnies and hop on the other bunnies' heads, to make each others explode
with realistic bunny blood.

To play the game:
- Jiffy plays with the arrow keys
- Fizz plays with j, i, l
- Dott plays with a, w, d
- Mijji plays with 4, 8, 6

%files
%doc AUTHORS COPYING ChangeLog LINKS README TODO levelmaking/jumpnbump_levelmaking.htm levelmaking/*.gif
%{_gamesbindir}/*
%dir %{_datadir}/games/%{name}
%{_gamesdatadir}/%{name}/*
%{_mandir}/man6/%{name}.6*
%lang(fr) %{_mandir}/fr/man6/%{name}.6*
%{_datadir}/applications/*.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -a 2 -n %{name}-1.50
perl -pi -e 's!PREFIX\"/share/jumpnbump/jumpbump.dat!\"%{_gamesdatadir}/%{name}/jumpbump.dat!g' globals.h
%patch0 -p0

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

# french man page
install -D fr/jumpnbump.6 %{buildroot}%{_mandir}/fr/man6/jumpnbump.6

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Jump 'n Bump
Comment=Violent game with cute little bunnies
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

install -d %{buildroot}{%{_miconsdir},%{_liconsdir}}
tar -xOjf %{SOURCE1} icons/16x16.png > %{buildroot}%{_miconsdir}/%{name}.png
tar -xOjf %{SOURCE1} icons/32x32.png > %{buildroot}%{_iconsdir}/%{name}.png
tar -xOjf %{SOURCE1} icons/48x48.png > %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2511 |21cr|junit-addons-1.4-2.0.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define	section		free

Name:		junit-addons
Summary:	JUnitX helper classes for JUnit
Url:		http://sourceforge.net/projects/junit-addons/
Version:	1.4
Release:	2.0.6
Epoch:		0
License:	Apache Software License
Group:		Development/Java
BuildArch:	noarch
Source0:	%{name}-%{version}.zip
Source1:	%{name}-build.xml
BuildRequires:	ant
BuildRequires:	jakarta-commons-logging
BuildRequires:	jaxen
BuildRequires:	jdom
BuildRequires:	junit
BuildRequires:	xerces-j2
BuildRequires:	xml-commons-apis
BuildRequires:  java-rpmbuild
Requires:	ant
Requires:	jakarta-commons-logging
Requires:	jaxen
Requires:	jdom
Requires:	junit
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
JUnit-addons is a collection of helper classes for JUnit. 
This library can be used with both JUnit 3.7 and JUnit 3.8.x

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
chmod -R go=u-w *
jar xf src.jar
%remove_java_binaries
cp %{SOURCE1} build.xml

%build
%ant \
	-Dant.build.javac.source=1.4 \
	-Djdom.jar=$(build-classpath jdom) \
	-Djaxen.jar=$(build-classpath jaxen) \
	-Dsaxpath.jar=$(build-classpath jaxen) \
	-Dant.jar=$(build-classpath ant) \
	-Djunit.jar=$(build-classpath junit) \
	-Dxerces.jar=$(build-classpath xerces-j2) \
	-Dxml-apis.jar=$(build-classpath xml-commons-apis) \
	-Dcommons-logging.jar=$(build-classpath commons-logging) \
	-Dproject.name=junit-addons \
	-Dproject.version=1.4 \
	release

%install
rm -Rf $RPM_BUILD_ROOT
# jars
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-%{version}.jar
(cd $RPM_BUILD_ROOT%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# examples
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/examples
cp -pr src/example/* $RPM_BUILD_ROOT%{_datadir}/%{name}/examples

# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -pr api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc {LICENSE,README,WHATSNEW}
%{_javadir}/*
%{_datadir}/%{name}

%files javadoc
%defattr(-,root,root)
%{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}


%changelog
* Fri Dec 10 2010 Oden Eriksson <oeriksson@mandriva.com> 0:1.4-2.0.3mdv2011.0
+ Revision: 619864
- the mass rebuild of 2010.0 packages

* Fri Sep 04 2009 Thierry Vignaud <tv@mandriva.org> 0:1.4-2.0.2mdv2010.0
+ Revision: 429651
- rebuild

* Sun May 25 2008 Alexander Kurtakov <akurtakov@mandriva.org> 0:1.4-2.0.1mdv2009.0
+ Revision: 211270
- BR java-rpmbuild
- import junit-addons



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2512 |21cr|junkie-2.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GTK2 ftp client
Name:		junkie
Version:	2.8.1
Release:	1
License:	BSD
Group:		Development/Other 
Url:		https://github.com/rixed/junkie/
Source0:	https://github.com/rixed/junkie/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		junkie-2.8.1-upstream-03-02-2022.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(guile-2.2)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(libpcap)
BuildRequires:	pkgconfig(vorbis)

%description
junkie is a GTK 2 GUI FTP client with a raw FTP library and a 
configuration library. It currently supports pre-caching of FTP 
sites and basic upload and download functions. Support for 
hammering and FXP is in development.

%files
%{_bindir}/dump-transactions
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/guile/site/*/%{name}
%{_datadir}/guile/site/*/srfi
%{_defaultdocdir}/%{name}
%{_libdir}/guile/*/site-ccache/%{name}
%{_libdir}/%{name}
%{_sysconfdir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GTK2 ftp client junkie library
Group:		System/Libraries

%description -n %{libname}
GTK2 ftp client junkie library.

%files -n %{libname}
%{_libdir}/lib%{name}tools.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for junkie
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for junkie.

%files -n %{devname}
%{_libdir}/lib%{name}tools.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
#fix vulgarities
echo 'Joel Thomas loves Mandrake' > YoMomma
perl -p -i -e 's/\/YoMomma/\/Important Info/g' src/gui_menu.c
%make

%install
%makeinstall_std
rm -f %{buildroot}/%{_datadir}/%{name}/YoMamma

# menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=junkie
Icon=file_transfer_section
Categories=Network;FileTransfer;
Name=Junkie
Comment=GTK2 ftp client
EOF

# Drop unstripped-binary-or-object
chmod +x %{buildroot}%{_libdir}/guile/*/site-ccache/%{name}/{,netmatch/,www/}*.go
chmod +x %{buildroot}%{_datadir}/guile/site/*/srfi/*.go

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2513 |21cr|just-backup-btrfs-0.10.1-0.gitdcc8a1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit dcc8a1c256f9f292cc719f4ca71d8c67b1343efe
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Create and rotate BTRFS snapshots
Name:		just-backup-btrfs
Version:	0.10.1
Release:	0.git%{commit_short}.1
License:	MIT
Group:		Archiving/Backup
Url:		https://github.com/mikhailnov/just-backup-btrfs
Source0:	https://github.com/mikhailnov/just-backup-btrfs/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	php-cli
BuildArch:	noarch
Requires:	btrfs-progs
Requires:	php-cli
Requires:	php-sqlite3

%description
Script that does just that - creates backups using snapshot
of btrfs filesystem. Also it makes rotation of snapshots
by removing old ones and keeping as many snapshots as you want.

%files
%doc readme.md
%{_bindir}/just-backup-btrfs

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m0755 just-backup-btrfs %{buildroot}%{_bindir}

%check
# check syntax
php -l %{buildroot}%{_bindir}/just-backup-btrfs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2514 |21cr|jutil-1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jutil
Version:        1.4
Release:        5
Epoch:          0
Summary:        Parameterized collections library for Java
License:        GPL
Group:          Development/Java
URL:            http://cscott.net/Projects/JUtil
Source0:        http://cscott.net/Projects/JUtil/jutil-latest/%{name}-%{version}.tar.gz
BuildRequires:  ant
BuildRequires:  java-rpmbuild >= 0:1.6
BuildRequires:  java-devel
BuildArch:      noarch

%description
JUtil is a fully-parameterized (generic) collections library for
Java. It was originally part of the FLEX project.


%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
perl -pi -e 's|<javac|<javac source="1.5" nowarn="true"|g' build*.xml
%{_bindir}/find . -type f -name '*.jar' | xargs -t rm

%build
export CLASSPATH=
export OPT_JAR_LIST=:
%{ant} jar javadoc

%install
mkdir -p %{buildroot}%{_javadir}
cp -a %{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -s ${jar} ${jar/-%{version}/}; done)

mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr api/*  %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%files
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2515 |21cr|jwm-2.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		jwm
Summary:	Lightweight X11 Window Manager
Version:	2.4.6
Release:	1
License:	GPL
Group:		Graphical desktop/Other
URL:		https://github.com/joewing/jwm
Source:		https://github.com/joewing/jwm/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1:	%{name}.desktop
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xpm)

%description
JWM is a window manager for the X11 Window System. JWM is written in C and uses
only Xlib at a minimum. The following libraries can also be used if available:

* libXext for the shape extension
* libXext for the render extension
* libXmu for drawing rounded windows (shape extension also needed)
* libXinerama for Xinerama support
* libXpm for XPM backgrounds and icons
* libjpeg for JPEG backgrounds and icons
* libpng for PNG backgrounds and icons
* libxft for antialiased and true type fonts
* libfribidi for right-to-left language support

JWM supports MWM and Extended Window Manager Hints (EWMH).

%prep
%autosetup -p1

%build
#./autogen.sh
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/jwm
%dir %{_datadir}/jwm
%{_datadir}/jwm/*
%{_mandir}/*/*
/etc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2516 |21cr|k4dirstat-3.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		k4dirstat
Summary:	Ggraphical disk usage utility
Version:	3.1.4
Release:	2
License:	GPLv2
Group:		File tools
URL:		https://bitbucket.org/jeromerobert/k4dirstat/wiki/Home
Source0:	https://bitbucket.org/jeromerobert/k4dirstat/get/%{name}-%{version}.tar.gz
BuildRequires:  kde5-macros
BuildRequires:  kf5coreaddons-devel
BuildRequires:  kf5i18n-devel
BuildRequires:  kf5doctools-devel
BuildRequires:  kf5xmlgui-devel
BuildRequires:  kf5kio-devel
BuildRequires:  kf5jobwidgets-devel
BuildRequires:  kf5iconthemes-devel
BuildRequires:  qt5-tools
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig(zlib)


%description
KDirStat is a graphical disk usage utility, very much like the Unix "du"
command. In addition to that, it comes with some cleanup facilities to reclaim
disk space. 

%prep
%setup -q -n jeromerobert-k4dirstat-0fd87f361645

%build
%cmake_kde5
%make

%install
pushd build
%makeinstall_std
popd

%find_lang %{name} --with-html

%files -f %{name}.lang
%{_bindir}/k4dirstat
%{_kde5_applicationsdir}/k4dirstat.desktop
%{_kde5_datadir}/config.kcfg/k4dirstat.kcfg
%{_kde5_docdir}/HTML/en/k4dirstat/
%{_kde5_iconsdir}/hicolor/*/apps/k4dirstat.*
%{_kde5_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2517 |21cr|kaffeine-2.0.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Media Player for KDE
Name:		kaffeine
Version:	2.0.18
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kaffeine.kde.org
Source0:	https://download.kde.org/stable/kaffeine/%{name}-%{version}.tar.xz
Source1:	kaffeine-2.0.16_ru.tar.gz
BuildRequires:	dvb-apps-devel
BuildRequires:	extra-cmake-modules
BuildRequires:	kde5-macros
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libdvb-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	v4l-utils-devel
Requires:	vlc

%description
Kaffeine is a KDE Multi Engine Media Player.

%files -f %{name}.lang
%{_appdatadir}/org.kde.kaffeine.appdata.xml
%{_kde5_applicationsdir}/org.kde.kaffeine.desktop
%{_kde5_bindir}/kaffeine
%{_kde5_datadir}/kaffeine
%{_kde5_datadir}/profiles/kaffeine.profile.xml
%{_kde5_datadir}/solid/actions/*
%{_kde5_iconsdir}/*/*/*/*
%{_kde5_mandir}/man1/kaffeine.1*

#--------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5 \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DBUILD_TESTING=OFF
%make -s

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-man --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2518 |21cr|kakasi-2.3.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	KAKASI - kanji kana simple inverter
Name:		kakasi
Version:	2.3.6
Release:	3
License:	GPLv2+
Group:		System/Internationalization
Url:		http://kakasi.namazu.org/
Source0:	http://kakasi.namazu.org/stable/kakasi-%{version}.tar.xz

%description
KAKASI is the language processing filter to convert Kanji characters
to Hiragana, Katakana or Romaji(1) and may be helpful to read Japanese
documents. Word-splitting patch has merged from version 2.3.0.

%files
%doc AUTHORS ChangeLog COPYING NEWS README README-ja
%{_bindir}/kakasi
%{_bindir}/mkkanwa
%{_bindir}/atoc_conv
%{_bindir}/rdic_conv
%{_bindir}/wx2_conv
%{_mandir}/man1/kakasi.1*
%{_mandir}/man1/kakasi-config.1*
%{_mandir}/ja/man1/kakasi.1*
%{_datadir}/kakasi/itaijidict

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of KAKASI
Group:		System/Libraries
Conflicts:	%{name} < 2.3.6

%description -n %{libname}
Shared library of KAKASI.

%files -n %{libname}
%{_libdir}/libkakasi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header file and development library of KAKASI
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 2.3.6
Obsoletes:	%{name}-devel < 2.3.6

%description -n %{devname}
Header file and development library of KAKASI.

%files -n %{devname}
%{_bindir}/kakasi-config
%{_libdir}/libkakasi.so
%{_includedir}/libkakasi.h

#----------------------------------------------------------------------------

%package dict
Summary:	The base dictionary of KAKASI
Group:		System/Internationalization
Provides:	kakasidict = %{EVRD}

%description dict
The basic dictionary of KAKASI.

%files dict
%{_datadir}/kakasi/kanwadict

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/ja/man1
install -m 644 man/kakasi.1.ja %{buildroot}%{_mandir}/ja/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2519 |21cr|kalk-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Calculator for Plasma Mobile
Name:		kalk
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Feedback)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(mpfr)
BuildRequires:	pkgconfig(gmp)

%description
Calculator for Plasma Mobile.

%files -f kalk.lang
%{_kde5_bindir}/kalk
%{_kde5_applicationsdir}/org.kde.kalk.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.kalk.svg
%{_appdatadir}/org.kde.kalk.appdata.xml

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2520 |21cr|kalker-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define crates_ver %{version}

Summary:      Calculator that supports user-defined variables
Name:         kalker
Version:      2.0.0
Release:      1
Group:        Sciences/Mathematics
License:      MIT
Url:          https://github.com/PaddiM8/kalker
Source0:      https://github.com/PaddiM8/kalker/archive/refs/tags/v2.0.0.tar.gz/%{name}-%{version}.tar.gz
# generated with cargo-vendor
Source1:        %{name}-crates-%{crates_ver}.tar.xz

BuildRequires:     pkgconfig(ncurses)
BuildRequires:     rust
BuildRequires:     cargo-vendor


%description
Kalker (or "kalk") is a calculator program/website
that supports user-defined variables, functions,
derivation, and integration. It runs on Windows,
macOS, Linux, Android, and in web browsers
(with WebAssembly).

%files
%doc README.md LICENSE
%{_bindir}/%{name}

#-----------------------------------------------------

%prep
%autosetup -a1

%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"
cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source."https://gitlab.com/tspiteri/gmp-mpfr-sys.git"]
git = "https://gitlab.com/tspiteri/gmp-mpfr-sys.git"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF


%build
export CARGO_HOME="$(pwd)/.cargo"
RUSTFLAGS=-g cargo build --all-targets --offline --frozen

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 target/debug/%{name} %{buildroot}%{_bindir}/%{name}





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2521 |21cr|kamikaze-0.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tag	0_2

Name:		    kamikaze
Version:	    0.2
Release:	    16
Summary:	    An SCM query tool similar to Mozilla's tool, Bonsai
License:	    Apache License
Group:		    Networking/WWW
URL:		    http://kamikaze-qscm.tigris.org/
Source0:	    http://kamikaze-qscm.tigris.org/files/documents/2030/17053/%{name}.v%{tag}.tar.bz2
Patch0:		    %{name}-0.2.fhs.patch.bz2
Patch1:		    %{name}-0.2.fix-db-access.patch.bz2
Requires:	    mod_php
Requires:		apache-mod_socache_shmcb
BuildArch:	    noarch

%description
Kamikaze-qscm is a tool that allows developers and CM related personnel to
query the commits made to one or more source control repositories. It is very
similar to Mozilla's bonsai tool. Kamikaze-qscm currently works with
Subversion, but a modular approach is planned for other SCM systems.

Kamikaze for Subversion currently consists of a perl back-end hook for
inserting commit information into a MySQL database. (In the future, a modular
approach to data storage is planned - allowing the use of many different data
storage implementations. ) A PHP front-end is used to perform repository
queries and display results. (In the future a web service API (XML-RPC and/or
SOAP) will be provided to access the same information for incorporation into
other tools.) 

%prep
%setup -q -n %{name}
%patch0 -p 1
%patch1 -p 0

%build

%install
install -d -m 755 %{buildroot}%{_var}/www/%{name}
install -m 644 html/index.php %{buildroot}%{_var}/www/%{name}

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/%{name}/lib
install -d -m 755 %{buildroot}%{_datadir}/%{name}/db
install -d -m 755 %{buildroot}%{_datadir}/%{name}/hooks
install -m 644 html/query.php %{buildroot}%{_datadir}/%{name}/lib
install -m 644 db/{author,repository,resource,revision}.sql %{buildroot}%{_datadir}/%{name}/db
install -m 755 hooks/commit2db.pl %{buildroot}%{_datadir}/%{name}/hooks

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 html/config.inc %{buildroot}%{_sysconfdir}/%{name}/web.conf
install -m 644 hooks/config.inc %{buildroot}%{_sysconfdir}/%{name}/hook.conf

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# %{name} Apache configuration
Alias /%{name} %{_var}/www/%{name}

<Directory %{_var}/www/%{name}>
    Require all granted
</Directory>
EOF

cat > README.mdv <<EOF
Mandriva RPM specific notes

setup
-----
The setup used here differs from default one, to achieve better FHS compliance.
- the files accessibles from the web are in /var/www/kamikaze
- the files non accessibles from the web are in /usr/share/kamikaze
- the configuration file is /etc/kamikaze.conf

post-installation
-----------------
You have to create the MySQL database, and import all files from
/usr/share/kamikaze/db
EOF

%clean


%files
%doc *.txt README.mdv
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}
%{_var}/www/%{name}
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2522 |21cr|kanif-1.2.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	TakTuk wrapper for cluster management and administration
Name:		kanif
Version:	1.2.2
Release:	5
License:	GPLv2+
Group:		System/Cluster
Url:		http://taktuk.gforge.inria.fr/kanif/
Source0:	http://gforge.inria.fr/frs/download.php/3984/kanif-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
Requires:	taktuk

%description
kanif is a tool for cluster management and administration. It combines
main features of well known cluster management tools such as c3, pdsh
and dsh and mimics their syntax. For the effective cluster management
it relies on TakTuk, a tool for large scale remote execution deployment.

For simple parallel tasks that have to be executed on regular machines
such as clusters, TakTuk syntax is too complicated. The goal of kanif
is to provide an easier and familiar syntax to cluster administrators
while still taking advantage of TakTuk characteristics and features
(adaptivity, scalability, portability, autopropagation and informations
redirection).

%files
%doc install_doc/*
%{_bindir}/kaget
%{_bindir}/kanif
%{_bindir}/kaput
%{_bindir}/kash
%{_libdir}/pkgconfig/kanif.pc
%{_mandir}/man1/kaget.1.*
%{_mandir}/man1/kanif.1.*
%{_mandir}/man1/kaput.1.*
%{_mandir}/man1/kash.1.*
%{_mandir}/man5/kanif.conf.5.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
make

%install
%makeinstall_std

mkdir tmp_doc
mv %{buildroot}%{_datadir}/doc/%{name} install_doc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2523 |21cr|kanjipad-2.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Japanese handwriting recognition
Name:		kanjipad
Version:	2.0.0
Release:	3
License:	GPLv2+
Group:		System/Internationalization
Url:		http://www.gtk.org/~otaylor/kanjipad/index.html
Source0:	ftp://ftp.gtk.org:21/pub/users/otaylor/kanjipad/%{name}-%{version}.tar.bz2
Patch0:		kanjipad-2.0.0-deprecated.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
KanjiPad is a simple (but snazzy) program which does Japanese handwriting
recognition. It uses the GTK2 toolkit for a GUI and Todd David Rudicks's
algorithms from JavaDict for recognition.

%files
%doc README
%{_bindir}/kanjipad
%{_bindir}/kpengine
%dir %{_datadir}/kanjipad
%{_datadir}/kanjipad/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
make \
	PREFIX=%{_prefix} \
	OPTIMIZE="%{optflags}"

%install
%makeinstall_std \
	PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2524 |21cr|kaption-0.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE screen capture editor and annotator
Name:		kaption
Version:	0.1.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php/Kaption?content=139302
Source0:	http://kde-apps.org/CONTENT/content-files/139302-%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	kdelibs4-devel
Requires:	kdebase4-runtime

%description
Kaption is an app that sits in the systray, left clicking the icon you
can capture a screen region to draw arrows, boxes and text on it,
than you can save the result.

Kaption is a KDE utility similar to Jing or Skitch (not yet as powerful as
them ;)).

%files -f %{name}.lang
%doc AUTHORS CHANGELOG COPYING README TODO
%{_kde_applicationsdir}/%{name}.desktop
%{_kde_bindir}/%{name}
%{_kde_appsdir}/%{name}/
%{_kde_datadir}/config.kcfg/%{name}.kcfg

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

# remove shebang
sed -i '/^#!/d' %{buildroot}%{_kde_applicationsdir}/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2525 |21cr|kardsgt-0.7.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           kardsgt
Version:        0.7.1
Release:        7
Epoch:          0
Summary:        Card game suite
License:        GPLv3+
Group:          Games/Cards
URL:            http://kardsgt.nongnu.org/
Source0:        http://download.savannah.gnu.org/releases/kardsgt/kardsgt-%{version}.tar.gz
Source1:        http://download.savannah.gnu.org/releases/kardsgt/kardsgt-%{version}.tar.gz.sig
Source2:        kardsgt.desktop
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils
BuildRequires:  desktop-file-utils
BuildRequires:  imagemagick
BuildRequires:	qt4-devel
BuildRequires:	qt-assistant-adp-devel
Requires:	qt-assistant-adp

%description
KardsGT is a card game program that has many of your favorite card 
games. Each game comes with an exhaustive manual on how to play. In 
addition to the many wonderful games, we also have amazing characters 
to play against. Each character has their own history and sense of 
play, giving you a fun challenge as you spend your time.

%prep
%setup -q

%build
%qmake_qt4
make
make release

%install
%{__rm} -rf %{buildroot}
make install INSTALL_ROOT=%buildroot

# install release-build binary
rm -f %buildroot%_bindir/*
install -m0755 release/%name %buildroot%{_bindir}

%{__mkdir_p} %{buildroot}%{_datadir}/applications
%{_bindir}/desktop-file-install --vendor ""                         \
        --dir %{buildroot}%{_datadir}/applications                  \
        %{SOURCE2}

%{__mkdir_p} %{buildroot}%{_datadir}/pixmaps
%{_bindir}/convert -resize 32x32 src/images/kardsgt.png %{buildroot}%{_datadir}/pixmaps/kardsgt.png
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps
%{_bindir}/convert -resize 16x16 src/images/kardsgt.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/kardsgt.png
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/24x24/apps
%{_bindir}/convert -resize 24x24 src/images/kardsgt.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/kardsgt.png
%{__mkdir_p} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
%{_bindir}/convert -resize 32x32 src/images/kardsgt.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/kardsgt.png

%clean
%{__rm} -rf %{buildroot}

%if %mdkversion < 200900
%post
%{update_menus}
%{update_desktop_database}
%update_icon_cache hicolor
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%{clean_desktop_database}
%clean_icon_cache hicolor
%endif

%files
%defattr(0644,root,root,0755)
%doc ChangeLog README CREDITS src/NOTICE
%attr(0755,root,root) %{_bindir}/kardsgt
%{_datadir}/applications/kardsgt.desktop
%{_iconsdir}/*.png
%{_iconsdir}/hicolor/*/apps/kardsgt.png
%{_datadir}/kardsgt
%{_datadir}/pixmaps/kardsgt.png
%{_mandir}/man6/kardsgt.6*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2526 |21cr|kasts-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Podcast application for Plasma Mobile
Name:		kasts
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5syndication-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(taglib)

%description
Podcast application for Plasma Mobile.

%files -f kasts.lang
%{_kde5_bindir}/kasts
%{_kde5_applicationsdir}/org.kde.kasts.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/kasts.svg
%{_kde5_libdir}/libKastsSolidExtras.so
%{_kde5_libdir}/libKMediaSession.so
%{_kde5_qmldir}/org/kde/kasts
%{_appdatadir}/org.kde.kasts.appdata.xml
%{_kde5_qmldir}/org/kde/kmediasession/libkmediasession-qmlplugin.so
%{_kde5_qmldir}/org/kde/kmediasession/qmldir
%{_iconsdir}/hicolor/scalable/actions/media-playback-cloud.svg
%{_iconsdir}/hicolor/scalable/apps/kasts-tray-dark.svg
%{_iconsdir}/hicolor/scalable/apps/kasts-tray-light.svg

#---------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2527 |21cr|kasumi-2.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	A tool for managing Anthy's dictionary
Name:		kasumi
Version:	2.5
Release:	10
License:	GPLv2+
Group:		System/Internationalization
Url:		http://sourceforge.jp/projects/kasumi
Source0:	http://iij.dl.sourceforge.jp/kasumi/37311/%{name}-%{version}.tar.gz
Patch0:		kasumi-2.3-fix-desktop-file.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	anthy-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pango)
Requires:	anthy >= 6300

%description
A tool for managing Anthy's dictionary.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_datadir}/applications/kasumi.desktop
%{_datadir}/pixmaps/*.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/kasumi.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%global optflags %{optflags} -std=c++14
%configure
%make

%install
%makeinstall_std

# icons
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32}/apps
cp %{buildroot}/%{_datadir}/pixmaps/%{name}.png %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{buildroot}/%{_datadir}/pixmaps/%{name}.png %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png

%find_lang %{name}

# menu
desktop-file-install \
	--vendor="" \
	--dir %{buildroot}%{_datadir}/applications \
	--remove-category="Applications" \
	%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2528 |21cr|katoob-0.5.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Light weight multilingual text editor that uses gtk2
Name:		katoob
Version:	0.5.9.2
Release:	1
License:	GPLv2+
Group:		Editors
Url:		http://www.arabeyes.org/project.php?proj=Katoob
# http://belnet.dl.sourceforge.net/sourceforge/arabeyes/katoob-0.3.5.tar.gz
Source0:	https://github.com/fredmorcos/katoob/releases/download/%{version}/Katoob-%{version}.tar.xz
Patch0:		Katoob-0.5.9.2-desktop.patch
BuildRequires:	perl-XML-Parser
BuildRequires:	aspell-devel
BuildRequires:	bzip2-devel
BuildRequires:	cups-devel
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(gdkmm-2.4)
BuildRequires:	pkgconfig(gtksourceview-2.0)
BuildRequires:	pkgconfig(gtk+-unix-print-2.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(shared-mime-info)
Requires:	enchant

%description
Katoob is a light weight, multi lingual, BIDI-aware text editor. It sup-
ports opening and saving files in multiple encodings. The main support
was for Arabic language but more languages are currently supported.

%files -f %{name}.lang
%doc LICENSE README.md
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}/*
%{_mandir}/man1/%{name}.*
%lang(de) %{_mandir}/de/man1/*
%dir %{_datadir}/%{name}
%defattr( 0755, root, root, 755)
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn Katoob-%{version}
%patch0 -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2529 |21cr|kaudiocreator-1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CD ripper and audio encoder front-end for KDE
Name:		kaudiocreator
Version:	1.3
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://opendesktop.org/content/show.php/KAudioCreator?content=107645
Source0:	http://opendesktop.org/CONTENT/content-files/107645-%{name}-%{version}.tar.bz2
BuildRequires:	libkcddb-devel
BuildRequires:	libkcompactdisc-devel
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(taglib)
Requires:	kdebase4-runtime

%description
CD ripper and audio encoder front-end.

%files -f %{name}.lang
%doc Changelog COPYING TODO
%{_kde_bindir}/kaudiocreator
%{_kde_datadir}/applications/kde4/kaudiocreator.desktop
%{_kde_appsdir}/kaudiocreator
%{_kde_appsdir}/kconf_update/kaudiocreator-libkcddb.upd
%{_kde_appsdir}/kconf_update/kaudiocreator-meta.upd
%{_kde_appsdir}/kconf_update/upgrade-kaudiocreator-metadata.sh
%{_kde_datadir}/config.kcfg/kaudiocreator.kcfg
%{_kde_datadir}/config.kcfg/kaudiocreator_encoders.kcfg
%{_kde_iconsdir}/hicolor/*/apps/kaudiocreator.png
%{_kde_datadir}/kde4/services/ServiceMenus/audiocd_extract.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2530 |21cr|kazam-1.4.5-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A screencasting program created with design in mind
Name:		kazam
Version:	1.4.5
Release:	17
License:	GPLv3+
Group:		Video
Url:		https://launchpad.net/kazam
Source0:	https://launchpad.net/kazam/stable/%{version}/+download/%{name}-%{version}.tar.gz
# Force client-side decorations, they make sense here and work fine even in KDE
Patch0:		kazam-1.4.5-force-gtk-csd.patch
# Note: take a new version of this patch from Debian after updating Python to >=3.7
Patch1:         configparser_api_changes.patch
# https://bugzilla.altlinux.org/show_bug.cgi?id=35419#c0
Patch2:		kazam-1.4.5-setlocale.patch
Patch3:		fix-PyGIWarnings.patch
Patch4:		kazam-python-3.8.patch
BuildRequires:	intltool
BuildRequires:	python3-distutils-extra
Requires:	canberra-gtk3
Requires:	python3-cairo
Requires:	python3-dbus
Requires:	python3-gi
Requires:	python3-gi-cairo
Requires:	python3-pyxdg
Requires:	typelib(GObject)
Requires:	typelib(Gst)
Requires:	typelib(GstAudio)
Requires:	typelib(GstVideo)
Requires:	typelib(Gtk)
Requires:	typelib(Keybinder)
Requires:	typelib(Wnck)
Requires:   %{_lib}wnck3_0
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-ugly
Requires:	gstreamer1.0-pulse
Recommends:	gstreamer1.0-libav
# typelib()s are not noarch, avoid pulling i686 deps on x86_64 systems
#BuildArch:	noarch

%description
Kazam is a simple screen recording program that will capture the content of
your screen and record a video file that can be played by any video player
that supports VP8/WebM video format.

Optionally you can record sound from any sound input device that is supported
and visible by PulseAudio.

%files -f %{name}.lang
%license COPYING
%doc AUTHORS README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/gnome/*/*/%{name}*
%{_iconsdir}/hicolor/*/*/%{name}*
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}-py%{py3_ver}.egg-info

#--------------------------------------------------------------------

%prep
%autosetup -p1
sed -i s,"DISTRO='Ubuntu'","DISTRO='%{vendor}'",g kazam/version.py
sed -i s,"RELEASE='.*'","RELEASE='%{product_version}'",g kazam/version.py

%build
%py3_build
%__python3 setup.py build_i18n
%__python3 setup.py build_icons

%install
%py3_install

mkdir -p %{buildroot}%{_datadir}/applications/
cp build/share/applications/kazam.desktop %{buildroot}%{_datadir}/applications/

mkdir -p %{buildroot}%{_datadir}/locale
cp -r build/mo/* %{buildroot}%{_datadir}/locale

mkdir -p %{buildroot}%{_iconsdir}/hicolor/
cp -r data/icons/*x* %{buildroot}%{_iconsdir}/hicolor/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2531 |21cr|kbdd-0.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Simple daemon to make per window keyboard layout
Name:		kbdd
Version:	0.7.1
Release:	2
License:	GPLv2+
Group:		System/X11
Url:		https://github.com/qnikst/kbdd
Source0:	https://github.com/qnikst/kbdd/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)

%description
Simple daemon to make per window layout using XKB (X KeyBoard Extension).

%files
%license COPYING
%doc AUTHORS README.rst ChangeLog
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/dbus-1/interfaces/kbdd-service-interface.xml

#------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
autoreconf -if
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2532 |21cr|kbibtex-0.9.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define url_ver %(echo %{version}|cut -d. -f1,2,3)

Summary:	A BibTeX editor for KDE
Name:		kbibtex
Version:	0.9.3.2
Release:	1
License:	GPLv2+
Group:		Editors
Url:		http://home.gna.org/kbibtex/
Source0:	http://fr2.rpmfind.net/linux/KDE/stable/KBibTeX/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5WebEngine)
BuildRequires:  pkgconfig(Qt5WebEngineWidgets)
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5XmlPatterns)
BuildRequires:  kde5-macros
BuildRequires:  kf5i18n-devel
BuildRequires:  kf5xmlgui-devel
BuildRequires:  kf5kio-devel
BuildRequires:  kf5iconthemes-devel
BuildRequires:  kf5itemviews-devel
BuildRequires:  kf5completion-devel
BuildRequires:  kf5parts-devel
BuildRequires:  kf5coreaddons-devel
BuildRequires:  kf5service-devel
BuildRequires:  kf5wallet-devel
BuildRequires:  kf5crash-devel
BuildRequires:  kf5doctools-devel
BuildRequires:  kf5texteditor-devel
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig(poppler-qt5)
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  pkgconfig(icu-uc)
BuildRequires:  pkgconfig(qca2-qt5)
BuildRequires:  pkgconfig(qoauth-qt5)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(shared-mime-info)
Conflicts:      %{_lib}kbibtex-devel < 0.6-3

%description
KBibTeX is a BibTeX editor for KDE.

%files -f %{name}.lang
%doc README LICENSE
%{_kde5_applicationsdir}/*.desktop
%{_kde5_bindir}/*
%{_kde5_configdir}/kbibtexrc
%{_kde5_datadir}/mime/packages/*.xml
%{_kde5_docdir}/HTML/*
%{_kde5_iconsdir}/*/*/*/*
%{_kde5_services}/*.desktop
%{_datadir}/metainfo/*
%{_datadir}/%{name}
%{_datadir}/kxmlgui5/%{name}*
%{_qt5_plugindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for KBibTeX
Group:		System/Libraries

%description -n %{libname}
Shared library files for %{name}.

%files -n %{libname}
%doc README LICENSE
%{_kde5_libdir}/libkbibtex*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for KBibTeX
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc README LICENSE
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2533 |21cr|kblogger-1.0-0.alpha3.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define betaver alpha3

Name:		kblogger
Version:	1.0
Release:	%mkrel -c %betaver 2
License:	GPLv2+
Url:	        http://kblogger.pwsp.net/
Group:		Graphical desktop/KDE
Source0:	http://kblogger.pwsp.net/files/%name-%version-%betaver.tar.bz2
Summary:        Blogging application
BuildRequires:  kdelibs4-devel
BuildRequires:  kdepimlibs4-devel
Requires:       kdebase4-runtime
Obsoletes:      kde4-%name <= %version-%release

%description
KBlogger is a simple to use blogging application for the K Destkop
Environment. It integrates in KDE Kicker for easy and fast blogging.
The Interface is very minimalstic and tries to provide maximal
usability for your enjoymnet. Just push to the blog button and start
writing.
By now KBlogger supports two API's which are the MetaWeblog and the
Google Blogger.

%files
%defattr(-,root,root)
%{_kde_bindir}/kblogger
%{_kde_datadir}/applications/kde4/kblogger.desktop
%{_kde_appsdir}/kblogger/kbloggerui.rc
%{_kde_appsdir}/kblogger/pics/kbloggerWelcome.jpg
%{_kde_datadir}/config.kcfg/kblogger.kcfg
%{_kde_iconsdir}/*/*/*/*

#------------------------------------------------

%prep
%setup -q -n %name

%build
%cmake_kde4 
%make

%install
rm -rf %buildroot
%{makeinstall_std} -C build

%clean
rm -rf %buildroot

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2534 |21cr|kbtin-1.0.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A very heavily extended clone the TinTin++ MUD client
Name:		kbtin
Version:	1.0.19
Release:	1
License:	GPLv2+
Group:		Games/Other
Url:		http://kbtin.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(zlib)

%description
KBtin is a console-based MUD client, which means it is meant to be used as a
client to play MUDs (multiplayer text-based games : MUD stands for Multi-User
Dungeon). It is highly configurable and features everything a MUD client must
have, maybe more. It improves on the well known TinTin++ MUD client.

%files
%doc AUTHORS BUGS COPYING ChangeLog FAQ KEYPAD NEWS OLDNEWS
%{_mandir}/*/*
%{_bindir}/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2535 |21cr|kcheckers-0.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Kcheckers

Summary:	Kcheckers - Draughts game for KDE
Name:		kcheckers
Version:	0.8.1
Release:	5
BuildRequires:	qt4-devel
Source0:	http://downloads.sourceforge.net/qcheckers/%{name}-%{version}.tar.gz
Source2:	%{name}-48x48.png
Patch1:		kcheckers-0.8.1-fix-prefix.patch
Patch2:		kcheckers-0.8.1-no-doc.patch
Patch3:		kcheckers-0.8.1-fix-target.patch
Patch4:		kcheckers-0.8.1-fix-translations-path.patch
Group:		Games/Boards
License:	GPLv2+
URL:		http://sourceforge.net/projects/qcheckers

%description
Qt version of the classic boardgame "checkers".
This game is also known as "draughts".

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%qmake_qt4
%make

%install
rm -rf %{buildroot}
make install INSTALL_ROOT=%{buildroot}

#imenu and icons
mkdir -p %{buildroot}{%{_menudir},%{_miconsdir},%{_iconsdir},%{_liconsdir}}
install -m644 icons/logo.png %{buildroot}%{_miconsdir}/%{name}.png
install -m644 icons/biglogo.png %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE2} %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{oname}
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;BoardGame;X-MandrivaLinux-MoreApplications-Games-Boards;
EOF

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog README TODO
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2536 |21cr|kchmviewer-7.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE chm viewer
Name:		kchmviewer
Version:	7.5
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		http://www.ulduzsoft.com/linux/kchmviewer
Source:		https://sourceforge.net/projects/kchmviewer/files/kchmviewer/%{version}/%{name}-%{version}.tar.gz
Patch0:		kchmviewer-7.3-libx11.patch

BuildRequires:	pkgconfig(QtWebKit)
BuildRequires:	kdelibs4-devel
BuildRequires:	chmlib-devel
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libzip)

Requires:	okular

%description
KchmViewer is a chm (MS HTML help file format) viewer, written in C++. 
Unlike most existing CHM viewers for Unix, it uses Trolltech Qt widget 
library, and does not depend on KDE or Gnome. However, 
it may be compiled with full KDE support, including KDE widgets and KIO/KHTML.
The main advantage of KchmViewer is non-English language support. 
Unlike others, KchmViewer in most cases correctly detects help file encoding, 
correctly shows tables of context of Russian, Korean, Chinese and Japanese help
files, and correctly searches in non-English help files 
(search for MBCS languages - ja/ko/ch is still in progress).

%files -f %{name}.lang
%{_kde_bindir}/kchmviewer
%{_kde_datadir}/applications/kde4/kchmviewer.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_kde_libdir}/kde4/kio_msits.so
rm -f %{buildroot}%{_kde_datadir}/kde4/services/msits.protocol
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
install -m644 packages/%{name}.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/

for i in 16x16 32x32 48x48 64x64; do
    convert -scale $i packages/%{name}.png %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{name}.png
done

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2537 |21cr|kcm-wacomtablet-3.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wacomtablet

Summary:	Kontrol module for Wacom Graphictablets
Name:		kcm-wacomtablet
Version:	3.3.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/extragear/base/wacomtablet
# wget -c https://invent.kde.org/system/wacomtablet/-/archive/master/wacomtablet-master.tar.gz
Source0:	wacomtablet-master.tar.bz2
#Source0:	https://download.kde.org/stable/%{oname}/%{version}/%{oname}-%{version}.tar.xz
Source1:	wacomtablet-3.3.0_po.tar.gz
Patch0:		fix.build.ki18n.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(libwacom)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xorg-wacom)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xproto)

%description
This module implements a GUI for the Wacom Linux Drivers and extends it
with profile support to handle different button/pen layouts per profile.

%files -f %{name}.lang
%doc AUTHORS
%license COPYING*
%{_kde5_bindir}/kde_wacom_tabletfinder
%{_kde5_applicationsdir}/kde_wacom_tabletfinder.desktop
%{_kde5_services}/kcm_wacomtablet.desktop
%{_kde5_services}/plasma-dataengine-wacomtablet.desktop
%{_kde5_services}/plasma-applet-org.kde.plasma.wacomtablet.desktop
%{_kde5_notificationsdir}/wacomtablet.notifyrc
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.wacomtablet/
%{_kde5_datadir}/plasma/services/wacomtablet.operations
%{_kde5_datadir}/wacomtablet/
%{_kde5_plugindir}/kded/wacomtablet.so
%{_qt5_plugindir}/kcm_wacomtablet.so
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_wacomtablet.so
%{_datadir}/dbus-1/interfaces/org.kde.Wacom*.xml
%{_sysconfdir}/xdg/wacomtablet.*
%{_appdatadir}/org.kde.plasma.wacomtablet.appdata.xml
%{_appdatadir}/org.kde.wacomtablet.metainfo.xml
%{_kde5_docdir}/HTML/*/kcontrol/wacomtablet/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-master
%patch0 -p1

tar -xvzf %{SOURCE1}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2538 |21cr|kcoloredit-2.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Palette files editor
Name:		kcoloredit
Version:	2.0.0
Release:	9
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/
Source0:	%{name}-%{version}-kde4.4.0.tar.bz2
Patch0:		kcoloredit-2.0.0-linkage.patch
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel

%description
KColorEdit is a palette files editor.

It can be used for editing color palettes and for color choosing and naming.

%files -f %{name}.lang
%doc README AUTHORS
%{_kde_bindir}/*
%{_kde_applicationsdir}/*.desktop
%{_kde_appsdir}/%{name}
%{_kde_iconsdir}/*/*/*/*

#------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-kde4.4.0
%patch0 -p1

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2539 |21cr|kcoreaddons-5.83.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 module with classes for various routines
Name:		kcoreaddons
Version:	5.83.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	shared-mime-info
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	shared-mime-info

%description
KDE Frameworks 5 module with classes for various routines.

KCoreAddons provides classes built on top of QtCore to perform various tasks
such as manipulating mime types, autosaving files, creating backup files,
generating random sequences, performing text manipulations such as macro
replacement, accessing user information and many more.

%files
%{_kde5_bindir}/desktoptojson
%dir %{_kde5_datadir}/kf5/licenses/
%{_kde5_datadir}/kf5/licenses/*
%{_kde5_datadir}/mime/packages/kde5.xml
%{_kde5_datadir}/qlogging-categories5/kcoreaddons.categories
%{_kde5_datadir}/qlogging-categories5/kcoreaddons.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KCoreAddons translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KCoreAddons translations.

%files i18n -f %{name}.lang
%{_datadir}/locale/*/LC_MESSAGES/kde5_xml_mimetypes.qm

#----------------------------------------------------------------------------

%define kf5coreaddons_major 5
%define libkf5coreaddons %mklibname kf5coreaddons %{kf5coreaddons_major}

%package -n %{libkf5coreaddons}
Summary:	KDE Frameworks 5 KCoreAddons shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5coreaddons}
KDE Frameworks 5 KCoreAddons shared library.

%files -n %{libkf5coreaddons}
%{_kde5_libdir}/libKF5CoreAddons.so.%{kf5coreaddons_major}*

#----------------------------------------------------------------------------

%define devkf5coreaddons %mklibname kf5coreaddons -d

%package -n %{devkf5coreaddons}
Summary:	Development files for KDE Frameworks 5 KCoreAddons
Group:		Development/KDE and Qt
Requires:	%{libkf5coreaddons} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5coreaddons-devel = %{version}

%description -n %{devkf5coreaddons}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5coreaddons}
%{_kde5_includedir}/KF5/KCoreAddons
%{_kde5_includedir}/KF5/kcoreaddons_version.h
%{_kde5_libdir}/cmake/KF5CoreAddons
%{_kde5_libdir}/libKF5CoreAddons.so
%{_kde5_mkspecsdir}/*.pri
%{_libdir}/pkgconfig/KF5CoreAddons.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

# simple .pc file for generate Provides: pkgconfig(KF5CoreAddons)
# needed for some apps ex. kdb
install -d %{buildroot}%{_libdir}/pkgconfig
cat << EOF > %{buildroot}%{_libdir}/pkgconfig/KF5CoreAddons.pc
prefix=%{_prefix}
exec_prefix=\${prefix}
libdir=\${exec_prefix}/%{_lib}
includedir=\${prefix}/include


Name: %{oname}
Description: %{description}
Version:	5.83.0
Libs: -L\${libdir} -lKF5CoreAddons
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2540 |21cr|kdbg-3.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Graphical Debugger Interface for KDE5
Name:		kdbg
Version:	3.0.1
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.kdbg.org
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 3.3
BuildRequires:	extra-cmake-modules
BuildRequires:	gettext
BuildRequires:	python
BuildRequires:	kf5config-devel >= 5.2.0
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	gdb

%description
KDbg is a graphical user interface to gdb, the GNU debugger, based on the KDE
Framework 5. It provides an intuitive interface for setting breakpoints,
inspecting variables and stepping through code.

%files -f %{name}.lang
%doc COPYING README ReleaseNotes-%{version}
%{_sysconfdir}/xdg/kdbgrc
%{_kde5_applicationsdir}/%{name}.desktop
%{_kde5_bindir}/%{name}
%{_kde5_datadir}/%{name}/*
%{_kde5_xmlguidir}/%{name}/kdbgui.rc
%{_kde5_docdir}/HTML/*/%{name}/*.html
%{_kde5_iconsdir}/*/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake_kde5
%make


%install
%makeinstall_std -C build


%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2541 |21cr|kde4-kwin-dekorator-themes-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		kde4-kwin-dekorator-themes
Summary:	Themes for deKorator for KDE4
Version:	0.3
Release:	4
Group:		Graphical desktop/KDE
License:	GPL
Url:		http://www.kde-look.org/index.php?xcontentmode=21
# 23.04.2013
Source0:	all-themes-dekorator.tar.gz
BuildRequires:	kde4-macros
BuildArch:	noarch

%description
Themes for deKorator pack. Includes:
-Aero_Glass
-AlphaCube
-Area-51-Lte
-Area-51
-beo
-black-n-green
-Blended
-blue_sky
-Bushido-Yellow
-chunxiayu
-Clay
-clearLook1
-clearLook2
-clearLook3
-clearLook4
-ClearLooks2-Blue
-Default
-golden-wood-original
-golden-wood-thin
-Kde-max 0.2
-kore
-LinspireClear
-mapuna-blended
-matrix
-milknoir-0.3
-Mockup
-NuOrDER
-Orangio
-Phacile-blue
-Phacile-green
-Plastic
-S_Dark-0.1
-simple_deco
-The-Error
-Titan-5-Lt
-Vectorcell2b
-vista
-winclassic
-yet-another-deKorator

Get more themes at kde-look.org if you want.

%prep
# nothing

%build
# nothing

%install
mkdir -p %{buildroot}%{_kde_appsdir}/deKorator
pushd %{buildroot}%{_kde_appsdir}/deKorator
tar -xf %{SOURCE0}
rm -rf themes/Elementary
rm -rf themes/Kore
popd

%files
%defattr(644,root,root,755)
%{_kde_appsdir}/deKorator/themes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2542 |21cr|kde4-minimal-settings-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: kde4-minimal-settings
Version: 0.1
Release: 6

Group: Graphical desktop/KDE
Summary: Minimal KDE4 settings
Url: https://code.launchpad.net/kubuntu-low-fat-settings
License: GPLv3

BuildArch: noarch

Requires: gettext qmergeinifiles > 1.50

Source: %name.tar.gz
Source1: kubuntu-low-fat-settings.tar

BuildRequires: qmergeinifiles gettext kde4-macros

%description
This package allow to set minimal KDE4 settings to gain additional system
resources.


%prep
%setup -q -n %name -a1
# cleanup
rm -rf kubuntu-low-fat-settings/share/autostart/
rm -f kubuntu-low-fat-settings/share/config/kdeglobals
rm -f kubuntu-low-fat-settings/share/config/kwinrc

%build
# config
for conf in kubuntu-low-fat-settings/share/config/*
do
    outname=`basename $conf`
    qmergeinifiles --no-override share/config/$outname $conf
done
# autostart
#mkdir -p share/autostart
#for desktop in kubuntu-low-fat-settings/share/autostart/*.desktop
#do
#    outname=`basename $desktop`
#    qmergeinifiles --no-override share/autostart/$outname $conf
#    cp -ar $desktop share/autostart/$outname
#done

%install
mkdir -p %buildroot/%_kde_appsdir/%name/config
install -m 0644 share/config/* %buildroot/%_kde_appsdir/%name/config
mkdir -p %buildroot/%_kde_appsdir/%name/autostart/
install -m 0644 share/autostart/* %buildroot/%_kde_appsdir/%name/autostart
mkdir -p %buildroot/%_kde_bindir/
install -m 0755 bin/%name %buildroot/%_kde_bindir/
mkdir -p %buildroot/%_kde_applicationsdir/
install -m 0644 share/applications/*.desktop %buildroot/%_kde_applicationsdir/
# translations
find po/* -type d | \
while read d
do
    lang=`basename $d`
    mkdir -p %buildroot/%_datadir/locale/$lang/LC_MESSAGES
    msgfmt -o %buildroot/%_datadir/locale/$lang/LC_MESSAGES/%name.mo $d/%name.po
done

%find_lang %name

%files -f %name.lang
%_kde_bindir/%name
%_kde_appsdir/%name
%_kde_applicationsdir/*-setup.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2543 |21cr|kde4-style-crystal-2.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Crystal kwin decoration theme to KDE 4.x
Name:		kde4-style-crystal
Version:	2.2.1
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde-look.org/content/show.php/crystal?content=75140
Source0:	http://www.kde-look.org/CONTENT/content-files/75140-crystal-%{version}.tar.bz2
Patch0:		crystal-2.2.1-cmake35.patch
BuildRequires:	kdebase4-workspace-devel
%rename		kde4-kwin-style-crystal

%description
This is the port of the famous Crystal kwin decoration theme to KDE 4.x.
Main features:
* Choose the blending color of the buttons.
* You can define the title bar height and border size of the windows.
* Right click on minimize button toggles shade mode.
* Middle click on minimize button sends window to below.
* Double click on program symbol closes window.
* Support for button themes. Basic button theme is included, feel free
  to swamp me with cool themes.
* Can show a tool-tip of the caption
* If kdocker is installed (http://kdocker.sf.net), right click on close
  button will send the window to the system tray.

%files
%doc AUTHORS README.md COPYING
%{_kde_libdir}/kde4/kwin3_crystal.so
%{_kde_libdir}/kde4/kwin_crystal_config.so
%{_kde_appsdir}/kwin/crystal.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn crystal-%{version}
%patch0 -p1

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2544 |21cr|kde4-style-nitrogen-3.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	kde4-style-nitrogen
%define version	3.3.3
%define release	5
%define Summary	Window decoration

Summary:	%Summary
Name:		%name
Version:	%version
Release:	%release
Source0:	http://www.kde-look.org/CONTENT/content-files/99551-kde4-windeco-nitrogen-%{version}-Source.tar.gz
License:	GPLv2
Group:		Graphical desktop/KDE
URL:		http://www.kde-look.org/content/show.php/Nitrogen?content=99551
BuildRequires:	kdebase4-workspace-devel
Requires:	kdebase4-runtime

%description
The Nitrogen window decoration is a fork of the oxygen/ozone
decoration that allows notably to

- resize window borders,
- change buttons size,
- hide the horizontal separator.
- select different title bar blending and frame border size depending
on the window title or name, in order to have better integration of
GTK based windows in the decoration style.
- add a size-grip handle in the bottom-right corner of windows. This
is particularly useful when the no-border option is selected.

%files -f kwin_nitrogen.lang
%defattr(-,root,root)
%doc README INSTALL COPYING
%_kde_libdir/kde4/kwin3_nitrogen.so
%_kde_libdir/kde4/kwin_nitrogen_config.so
%_kde_appsdir/kwin/nitrogenclient.desktop

#--------------------------------------------------------------------

%prep
%setup -q -n kde4-windeco-nitrogen-%{version}-Source

%build
%cmake_kde4
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std -C build

%find_lang kwin_nitrogen

%clean
%__rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2545 |21cr|kde4-style-skulpture-0.2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname skulpture

Name:		kde4-style-%{shortname} 
Summary:	Skulpture Theme for KDE4
Version:	0.2.4
Release:	3
Source0:	http://www.kde-look.org/CONTENT/content-files/59031-%{shortname}-%{version}.tar.gz
Patch0:		skulpture-0.2.4-kdeplugin-cmake.patch
URL:		http://www.kde-look.org/content/show.php/Skulpture?content=59031
Group:		Graphical desktop/KDE
License:	GPL
BuildRequires:	kdelibs4-devel
BuildRequires:	kdebase4-workspace-devel

%description
Skulpture theme for KDE 4

%files 
%{_kde_libdir}/kde4/kstyle_skulpture_config.so
%{_kde_libdir}/kde4/kwin3_skulpture.so
%{_kde_libdir}/kde4/kwin_skulpture_config.so
%{_kde_appsdir}/color-schemes/
%{_kde_appsdir}/kstyle/themes/
%{_kde_appsdir}/kwin/
%{_kde_appsdir}/skulpture
%{_kde_plugindir}/styles/*

#--------------------------------------------------------------------------------

%prep
%setup -q -n %shortname-%{version}
%patch0 -p1
# %patch1 -p1 -b .kwin

%build
%cmake_kde4
%make

%install
pushd build
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2546 |21cr|kde4-style-steampunk-cursors-3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	"SteampunK Powered Linux" mouse cursors theme
Name:		kde4-style-steampunk-cursors
Version:	3.0
Release:	4
License:	Creative Commons Attribution-ShareAlike
Group:		Graphical desktop/KDE
Url:		http://kde-look.org/content/show.php?content=161001
Source0:	http://kde-look.org/CONTENT/content-files/161001-SteampunK.tar.gz
BuildArch:	noarch

%description
This package contains the "SteampunK Powered Linux" mouse cursors.

%files
%{_iconsdir}/SteampunK

#----------------------------------------------------------------------------

%prep
%setup -q -c
find . -type f | xargs chmod 0644
find . -type d | xargs chmod 0755

%build
# nothing

%install
mkdir -p %{buildroot}%{_iconsdir}

cp -r SteampunK %{buildroot}%{_iconsdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2547 |21cr|kde4-style-steampunk-wallpapers-3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	"SteampunK Powered Linux" wallpapers
Name:		kde4-style-steampunk-wallpapers
Version:	3.0
Release:	4
License:	Creative Commons Attribution-ShareAlike
Group:		Graphical desktop/KDE
Url:		http://kde-look.org/content/show.php?content=149320
Source0:	http://sites.google.com/site/binaryinspiration/download/SPL_Wlpr_Engine.tar.gz
Source1:	http://sites.google.com/site/binaryinspiration/download/SPL_Wlpr_Machine.tar.gz
Source2:	http://sites.google.com/site/binaryinspiration/download/SPL_Wlpr_Simple.tar.gz
BuildArch:	noarch

%description
This package contains the "SteampunK Powered Linux" wallpapers.

%files
%{_datadir}/wallpapers/SteampunK_Engine
%{_datadir}/wallpapers/SteampunK_Machine
%{_datadir}/wallpapers/SteampunK_Simple

#----------------------------------------------------------------------------

%prep
%setup -q -c -a1 -a2
find . -type f | xargs chmod 0644

%build
# nothing

%install
mkdir -p %{buildroot}%{_datadir}/wallpapers

cp -r SteampunK_{Engine,Machine,Simple} %{buildroot}%{_datadir}/wallpapers/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2548 |21cr|kde4-style-steampunk-yakuake-3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	"SteampunK Powered Linux" Yakuake theme
Name:		kde4-style-steampunk-yakuake
Version:	3.0
Release:	4
License:	Creative Commons Attribution-ShareAlike
Group:		Graphical desktop/KDE
Url:		http://kde-look.org/content/show.php?content=158529
Source0:	http://kde-look.org/CONTENT/content-files/158529-SteampunK.tar.gz
Requires:	yakuake
BuildRequires:	kde4-macros
BuildArch:	noarch

%description
This package contains the "SteampunK Powered Linux" theme for Yakuake.

%files
%{_kde_appsdir}/yakuake/skins/SteampunK

#----------------------------------------------------------------------------

%prep
%setup -q -c
find . -type f | xargs chmod 0644

%build
# nothing

%install
mkdir -p %{buildroot}%{_kde_appsdir}/yakuake/skins

cp -r SteampunK %{buildroot}%{_kde_appsdir}/yakuake/skins/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2549 |21cr|kdeadmin4-4.14.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	K Desktop Environment - Administrative Tools
Name:		kdeadmin4
Version:	4.14.3
Release:	6
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Recommends:	kcron
Recommends:	ksystemlog
Recommends:	kuser
BuildArch:	noarch

%description
The kdeadmin package contains packages that usually only a system
administrator might need:
- kcron (editor for the cron command scheduler)
- kuser (user manager)
- ksystemlog (system log viewer tool for KDE4)

%files

#------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2550 |21cr|kde-artwork-active-0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    kde-artwork-active
Summary: Additional artwork (themes, sound themes, icons,etc...) for  Plasma Active
Version: 0.2
Release: 4
Group:   Graphical desktop/KDE
License: LGPLv2
URL:     http://www.kde.org/
Source:  ftp://ftp.kde.org/pub/kde/stable/active/1.0/src/%{name}-%version.tar.bz2
BuildRequires: kdelibs4-devel

BuildArch: noarch


%description
Additional artwork (themes, sound themes, icons,etc...) for  Plasma Active

%files
%_kde_appsdir/ksplash/Themes/ActiveAir
%_kde_appsdir/kscreenlocker/main.qml
%_kde_appsdir/kscreenlocker/lockscreen-active.qml
%_kde_appsdir/kscreenlocker/unlock-normal.png
%_kde_appsdir/kscreenlocker/unlock-pressed.png
%_kde_appsdir/kscreenlocker/wallpaper.png
%_kde_datadir/wallpapers/*.*

#----------------------------------------------------------------------

%prep
%setup -q -n %{name}
%apply_patches

%build
%cmake_kde4
	
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2551 |21cr|kde-cdemu-manager-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kde_cdemu

Summary:	A simple KDE front-end for CDemu
Name:		kde-cdemu-manager
Version:	0.8.1
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php/KDE+CDEmu+Manager?content=99752
Source0:	https://sourceforge.net/projects/kde-cdemu-manager/files/%{oname}-%{version}.tar.zst
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	cdemu-client

%description
KDE CDemu Manager is a simple front-end for CDemu.

It provides a little manager window that gives you an overview of your virtual
drives and allows you to mount and unmount images.

It also includes a KDE service menu for mounting images directly from
Dolphin/Konqueror (which is what most people will want to use).

Images can be unmounted like any other media through Dolphin or the Device
Notifier widget.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/org.kde.kde_cdemu.desktop
%{_kde5_bindir}/kde_cdemu
%{_kde5_services}/ServiceMenus/kde_cdemu_mount.desktop
%{_datadir}/kde4/services/ServiceMenus/kde_cdemu_mount.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}
find . -name '*.cpp' -exec chmod 644 {} \;
find . -name '*.h' -exec chmod 644 {} \;

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Add KDE4 service menu
mkdir -p %{buildroot}%{_datadir}/kde4/services/ServiceMenus/
cp %{buildroot}%{_kde5_services}/ServiceMenus/kde_cdemu_mount.desktop \
    %{buildroot}%{_datadir}/kde4/services/ServiceMenus/kde_cdemu_mount.desktop

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2552 |21cr|kdeconnect-0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Connect KDE with your smartphone
Name:		kdeconnect
Version:	0.8
Release:	5
Epoch:      2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://albertvaka.wordpress.com/
Source0:	ftp://ftp.kde.org/pub/kde/unstable/%{name}/%{version}/src/%{name}-kde-%{version}.tar.xz
Source1:    kdeconnect4_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(libfakekey)
BuildRequires:	pkgconfig(QJson)
BuildRequires:	pkgconfig(xtst)
Requires:	libcore = %{version}
Requires:	libinterfaces = %{version}

%description
KDE Connect is a module to connect KDE with your smartphone.
You need to install KdeConnect.apk on your smartphone to make it work.

%files -f %{name}.lang
%{_bindir}/kdeconnect-cli
%{_kde_applicationsdir}/%{name}.desktop
%{_kde_appsdir}/%{name}/
%{_kde_appsdir}/plasma/plasmoids/%{name}
%{_kde_iconsdir}/hicolor/*/apps/%{name}.*
%{_kde_libdir}/kde4/kcm_kdeconnect.so
%{_kde_libdir}/kde4/kded_kdeconnect.so
%{_kde_libdir}/kde4/kdeconnect_battery.so
%{_kde_libdir}/kde4/kdeconnect_clipboard.so
%{_kde_libdir}/kde4/kdeconnect_mpriscontrol.so
%{_kde_libdir}/kde4/kdeconnect_notifications.so
%{_kde_libdir}/kde4/kdeconnect_pausemusic.so
%{_kde_libdir}/kde4/kdeconnect_pausemusic_config.so
%{_kde_libdir}/kde4/kdeconnect_ping.so
%{_kde_libdir}/kde4/kdeconnect_screensaver_inhibit.so
%{_kde_libdir}/kde4/kdeconnect_share.so
%{_kde_libdir}/kde4/kdeconnect_share_config.so
%{_kde_libdir}/kde4/kdeconnect_telephony.so
%{_kde_libdir}/kde4/imports/org/kde/kdeconnect
%{_kde_libdir}/kde4/libexec/kdeconnectd
%{_kde_libdir}/kde4/kdeconnect_mousepad.so
%{_kde_libdir}/kde4/kdeconnect_sftp.so
%{_kde_libdir}/kde4/kdeconnect_sftp_config.so
%{_kde_libdir}/kde4/kdeconnectfiletiemaction.so
%{_kde_libdir}/kde4/kio_kdeconnect.so
%{_kde_services}/kcm_kdeconnect.desktop
%{_kde_services}/kded/kdeconnect.desktop
%{_kde_services}/kdeconnect_battery.desktop
%{_kde_services}/kdeconnect_clipboard.desktop
%{_kde_services}/kdeconnect_mpriscontrol.desktop
%{_kde_services}/kdeconnect_notifications.desktop
%{_kde_services}/kdeconnect_pausemusic.desktop
%{_kde_services}/kdeconnect_pausemusic_config.desktop
%{_kde_services}/kdeconnect_ping.desktop
%{_kde_services}/kdeconnect_screensaver_inhibit.desktop
%{_kde_services}/kdeconnect_share.desktop
%{_kde_services}/kdeconnect_share_config.desktop
%{_kde_services}/kdeconnect_telephony.desktop
%{_kde_services}/plasma-kdeconnect.desktop
%{_kde_services}/kdeconnect.protocol
%{_kde_services}/kdeconnect_mousepad.desktop
%{_kde_services}/kdeconnect_sftp.desktop
%{_kde_services}/kdeconnect_sftp_config.desktop
%{_kde_services}/kdeconnectsendfile.desktop
%{_kde_servicetypes}/kdeconnect_plugin.desktop
%{_datadir}/dbus-1/services/org.kde.kdeconnect.service

#----------------------------------------------------------------------------

%define core_major 1
%define libcore %mklibname kdeconnectcore %{core_major}

%package -n %{libcore}
Summary:	Shared library for KDE Connect
Group:		System/Libraries
Provides:   libcore = %{version}

%description -n %{libcore}
Shared library for KDE Connect.

%files -n %{libcore}
%{_kde_libdir}/libkdeconnectcore.so.%{core_major}*

#----------------------------------------------------------------------------

%define interfaces_major 1
%define libinterfaces %mklibname kdeconnectinterfaces %{interfaces_major}

%package -n %{libinterfaces}
Summary:	Shared library for KDE Connect
Group:		System/Libraries
Provides:   libinterfaces = %{version}

%description -n %{libinterfaces}
Shared library for KDE Connect.

%files -n %{libinterfaces}
%{_kde_libdir}/libkdeconnectinterfaces.so.%{interfaces_major}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-kde-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

# Drop devel files for now because they are messed up
rm -f %{buildroot}%{_kde_libdir}/*.so
rm -rf %{buildroot}%{_kde_libdir}/cmake/
rm -rf %{buildroot}%{_kde_includedir}/
rm -rf %{buildroot}%{_datadir}/dbus-1/interfaces/*.xml

%find_lang kdeconnect-kcm kdeconnect-kded kdeconnect-plasmoid kdeconnect-kio plasma_applet_kdeconnect kdeconnect-plugins kdeconnect-filetiemaction kdeconnect-cli kdeconnect-core %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2553 |21cr|kdelibs4-4.14.38-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bootstrap 0
%{?_branch: %{expand: %%global bootstrap 1}}

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%define with_drkonqi 0
%{?_with_drkonqi: %{expand: %%global with_drkonqi 1}}

%define udisk_backend 1

# exclude libkactivities or not
%define no_libkactivities 1

%bcond_without nepomuk

Summary:	K Desktop Environment - Libraries
Name:		kdelibs4
Version:	4.14.38
Release:	6
Epoch:		5
License:	ARTISTIC BSD GPLv2+ LGPLv2+ QPLv1.0
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/Attic/applications/17.08.3/src/kdelibs-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
Patch1:		kdelibs-4.1.85-add-kde-menu.patch
Patch2:		kdelibs-4.5.80-usr-abrt-instead-of-drkonqi.patch
Patch3:		kdelibs-4.14.4-fix-cmakelist-to-use-pthread.patch
# Use /use/share/doc5/HTML as fallback for docs, handle KF5 docs this way
Patch4:		kdelibs-4.14.8-doc5.patch
# Add kdedbx45.dtd from KF5 to make sure khelpcenter can open KF5 docbooks
Patch5:		kdelibs-4.14.8-kf5-dtd.patch
# kdialog no longer accepts --caption option, use --title instead
Patch6:		kdelibs-4.14.37-kdialog.patch
# Battery reporting support for KDE Connect from
# http://albertvaka.wordpress.com/2013/08/05/introducing-kde-connect/
Patch10:	kdelibs-4.11.1-phonepower.patch
# Revert upsteam commit because it leads to incorrect icons on desktop
# For example, application shortcuts are displayed with x-desktop mimetype icon
Patch11:	kdelibs-4.11.2-delayed-icons.patch
# Revert upstream commit because it leads to ugly empty dialog popup when
# adding new empty panel or RocketBar
Patch12:	kdelibs-4.11.2-containment-config.patch
Patch13:	kdelibs-4.14.3-docbook-dtd45.patch
# Revert upstream commit until cmake files are properly fixed in upstream
Patch14:	kdelibs-4.14.13-cmake-keep-cmp0002.patch
Patch15:	kdelibs-4.14.18-strigi.patch
# Backport from upstream
Patch16:	kdelibs-4.14.37-dollar-sign-security-fix.patch
# Find exiv2 0.27+
Patch17:	kdelibs-4.14.37-patch-FindExiv2.patch
Patch100:	kdelibs-4.8.0-plasma.patch
Patch200:	kdelibs-4.8.1-add-extra-catalogs.patch
Patch203:	kdelibs-4.14.8-fileplaces.patch
Patch204:	kdelibs-4.8.1-kfile-knewfilemenu-removed-LinkToDevice.patch
Patch206:	kdelibs-4.8.3-kfile-klook.patch
Patch207:	kdelibs4-4.9.3-iconwidget-revert-commit-c6160d14.patch
Patch208:	kdelibs-4.9.3-kio-ftp.patch
# Don't use HEAD to get mimetype. Sometimes servers don't return mimetype
# with it for webdav. It's also wrong for directories - HEAD will return
# text/xml (since it's actually file listing in XML)
Patch209:	kdelibs-4.12.4-improve-mimetype-detection-for-webdav.patch
Patch210:	kdelibs-4.14.4-armlinking.patch
Patch211:	kdelibs-4.13.2-kdecmake.patch
Patch212:	kdelibs-4.14.38-openssl-1.1.patch
# Seems to be GCC 9+ bug
Patch213:	kdelibs-4.14.37-skip-broken-test.patch
Patch214:	kdelibs-4.14.38-qiodevice.patch
Patch215:	kdelibs-gcc11.patch
BuildRequires:	automoc
BuildRequires:	bison
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	flex
BuildRequires:	kde4-macros >= 4.1.71
BuildRequires:	libxml2-utils
BuildRequires:	rootcerts
BuildRequires:	shared-mime-info
BuildRequires:	xsltproc
BuildRequires:	acl-devel
BuildRequires:	aspell-devel
BuildRequires:	bzip2-devel
BuildRequires:	cups-devel >= 1.2
BuildRequires:	gdbm-devel
BuildRequires:	grantlee-devel
BuildRequires:	hspell-devel
BuildRequires:	krb5-devel
BuildRequires:	icu-devel
BuildRequires:	utempter-devel
BuildRequires:	pam-devel
BuildRequires:	pcre-devel
BuildRequires:	polkit-qt-1-devel >= 0.98.1
BuildRequires:	sasl-devel
BuildRequires:	tiff-devel
BuildRequires:	ungif-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(avahi-compat-libdns_sd)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(dbusmenu-qt)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libart-2.0)
BuildRequires:	pkgconfig(libattica)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libstreams) >= 0.6.3
BuildRequires:	pkgconfig(libxml-2.0) >= 2.4.11
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(OpenEXR) < 3.0.0
%if %{with nepomuk}
BuildRequires:	pkgconfig(soprano) > 2.7.57
%else
BuildConflicts:	pkgconfig(soprano)
%endif
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(qca2)
BuildRequires:	pkgconfig(shared-desktop-ontologies)
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtDBus)
BuildRequires:	pkgconfig(QtWebKit)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xpm)
%if %{udisk_backend}
BuildRequires:	pkgconfig(udev)
%endif
# Optional, but let's build support for what we can
BuildRequires:	hupnp-devel
# Support for m-p-i is included even if not found during build
#BuildRequires:	media-player-info

%description
Libraries for the K Desktop Environment.

#----------------------------------------------------------------------------

%define kde3support_major 4
%define libkde3support %mklibname kde3support %{kde3support_major}

%package -n %{libkde3support}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkde3support}
KDE 4 core library.

%files -n %{libkde3support}
%{_kde_libdir}/libkde3support.so.%{kde3support_major}*

#----------------------------------------------------------------------------

%define kdecore_major 5
%define libkdecore %mklibname kdecore %{kdecore_major}

%package -n %{libkdecore}
Summary:	KDE 4 core library
Group:		System/Libraries
Requires:	phonon-backend >= 4.2.0
Requires:	kde4-config-file
%if ! %{bootstrap}
Recommends:	kde-l10n
%endif
Requires:	kdelibs4-core = %{EVRD}

%description -n %{libkdecore}
KDE 4 core library.

%files -n %{libkdecore}
%{_kde_libdir}/libkdecore.so.%{kdecore_major}*

#----------------------------------------------------------------------------

%define kdefakes_major 5
%define libkdefakes %mklibname kdefakes %{kdefakes_major}

%package -n %{libkdefakes}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkdefakes}
KDE 4 core library.

%files -n %{libkdefakes}
%{_kde_libdir}/libkdefakes.so.%{kdefakes_major}*

#----------------------------------------------------------------------------

%define kdesu_major 5
%define libkdesu %mklibname kdesu %{kdesu_major}

%package -n %{libkdesu}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkdesu}
KDE 4 core library.

%files -n %{libkdesu}
%{_kde_libdir}/libkdesu.so.%{kdesu_major}*

#----------------------------------------------------------------------------

%define kdeui_major 5
%define libkdeui %mklibname kdeui %{kdeui_major}

%package -n %{libkdeui}
Summary:	KDE 4 core library
Group:		System/Libraries
Requires:	dbus-x11

%description -n %{libkdeui}
KDE 4 core library.

%files -n %{libkdeui}
%{_kde_libdir}/libkdeui.so.%{kdeui_major}*

#----------------------------------------------------------------------------

%define kdnssd_major 4
%define libkdnssd %mklibname kdnssd %{kdnssd_major}

%package -n %{libkdnssd}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkdnssd}
KDE 4 core library.

%files -n %{libkdnssd}
%{_kde_libdir}/libkdnssd.so.%{kdnssd_major}*

#----------------------------------------------------------------------------

%define kfile_major 4
%define libkfile %mklibname kfile %{kfile_major}

%package -n %{libkfile}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkfile}
KDE 4 core library.

%files -n %{libkfile}
%{_kde_libdir}/libkfile.so.%{kfile_major}*

#----------------------------------------------------------------------------

%define khtml_major 5
%define libkhtml %mklibname khtml %{khtml_major}

%package -n %{libkhtml}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkhtml}
KDE 4 core library.

%files -n %{libkhtml}
%{_kde_libdir}/libkhtml.so.%{khtml_major}*

#----------------------------------------------------------------------------

%define kimproxy_major 4
%define libkimproxy %mklibname kimproxy %{kimproxy_major}

%package -n %{libkimproxy}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkimproxy}
KDE 4 core library.

%files -n %{libkimproxy}
%{_kde_libdir}/libkimproxy.so.%{kimproxy_major}*

#----------------------------------------------------------------------------

%define kio_major 5
%define libkio %mklibname kio %{kio_major}

%package -n %{libkio}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkio}
KDE 4 core library.

%files -n %{libkio}
%{_kde_libdir}/libkio.so.%{kio_major}*

#----------------------------------------------------------------------------

%define kjsembed_major 4
%define libkjsembed %mklibname kjsembed %{kjsembed_major}

%package -n %{libkjsembed}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkjsembed}
KDE 4 core library.

%files -n %{libkjsembed}
%{_kde_libdir}/libkjsembed.so.%{kjsembed_major}*

#----------------------------------------------------------------------------

%define kjs_major 4
%define libkjs %mklibname kjs %{kjs_major}

%package -n %{libkjs}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkjs}
KDE 4 core library.

%files -n %{libkjs}
%{_kde_libdir}/libkjs.so.%{kjs_major}*

#----------------------------------------------------------------------------

%define kmediaplayer_major 4
%define libkmediaplayer %mklibname kmediaplayer %{kmediaplayer_major}

%package -n %{libkmediaplayer}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkmediaplayer}
KDE 4 core library.

%files -n %{libkmediaplayer}
%{_kde_libdir}/libkmediaplayer.so.%{kmediaplayer_major}*

#----------------------------------------------------------------------------

%define knewstuff2_major 4
%define libknewstuff2 %mklibname knewstuff2_ %{knewstuff2_major}

%package -n %{libknewstuff2}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libknewstuff2}
KDE 4 core library.

%files -n %{libknewstuff2}
%{_kde_libdir}/libknewstuff2.so.%{knewstuff2_major}*

#----------------------------------------------------------------------------

%define knotifyconfig_major 4
%define libknotifyconfig %mklibname knotifyconfig %{knotifyconfig_major}

%package -n %{libknotifyconfig}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libknotifyconfig}
KDE 4 core library.

%files -n %{libknotifyconfig}
%{_kde_libdir}/libknotifyconfig.so.%{knotifyconfig_major}*

#----------------------------------------------------------------------------

%define kntlm_major 4
%define libkntlm %mklibname kntlm %{kntlm_major}

%package -n %{libkntlm}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkntlm}
KDE 4 core library.

%files -n %{libkntlm}
%{_kde_libdir}/libkntlm.so.%{kntlm_major}*

#----------------------------------------------------------------------------

%define kparts_major 4
%define libkparts %mklibname kparts %{kparts_major}

%package -n %{libkparts}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkparts}
KDE 4 core library.

%files -n %{libkparts}
%{_kde_libdir}/libkparts.so.%{kparts_major}*

#----------------------------------------------------------------------------

%define krosscore_major 4
%define libkrosscore %mklibname krosscore %{krosscore_major}

%package -n %{libkrosscore}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkrosscore}
KDE 4 core library.

%files -n %{libkrosscore}
%{_kde_libdir}/libkrosscore.so.%{krosscore_major}*

#----------------------------------------------------------------------------

%define krossui_major 4
%define libkrossui %mklibname krossui %{krossui_major}

%package -n %{libkrossui}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkrossui}
KDE 4 core library.

%files -n %{libkrossui}
%{_kde_libdir}/libkrossui.so.%{krossui_major}*

#----------------------------------------------------------------------------

%define ktexteditor_major 4
%define libktexteditor %mklibname ktexteditor %{ktexteditor_major}

%package -n %{libktexteditor}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libktexteditor}
KDE 4 core library.

%files -n %{libktexteditor}
%{_kde_libdir}/libktexteditor.so.%{ktexteditor_major}*

#----------------------------------------------------------------------------

%define kunittest_major 4
%define libkunittest %mklibname kunittest %{kunittest_major}

%package -n %{libkunittest}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkunittest}
KDE 4 core library.

%files -n %{libkunittest}
%{_kde_libdir}/libkunittest.so.%{kunittest_major}*

#----------------------------------------------------------------------------

%define kutils_major 4
%define libkutils %mklibname kutils %{kutils_major}

%package -n %{libkutils}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkutils}
KDE 4 core library.

%files -n %{libkutils}
%{_kde_libdir}/libkutils.so.%{kutils_major}*

#----------------------------------------------------------------------------

%define solid_major 4
%define libsolid %mklibname solid %{solid_major}

%package -n %{libsolid}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libsolid}
KDE 4 core library.

%files -n %{libsolid}
%{_kde_libdir}/libsolid.so.%{solid_major}*

#----------------------------------------------------------------------------

%define threadweaver_major 4
%define libthreadweaver %mklibname threadweaver %{threadweaver_major}

%package -n %{libthreadweaver}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libthreadweaver}
KDE 4 core library.

%files -n %{libthreadweaver}
%{_kde_libdir}/libthreadweaver.so.%{threadweaver_major}*

#----------------------------------------------------------------------------

%define kpty_major 4
%define libkpty %mklibname kpty %{kpty_major}

%package -n %{libkpty}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkpty}
KDE 4 core library.

%files -n %{libkpty}
%{_kde_libdir}/libkpty.so.%{kpty_major}*

#----------------------------------------------------------------------------

%define kjsapi_major 4
%define libkjsapi %mklibname kjsapi %{kjsapi_major}

%package -n %{libkjsapi}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkjsapi}
KDE 4 core library.

%files -n %{libkjsapi}
%{_kde_libdir}/libkjsapi.so.%{kjsapi_major}*

#----------------------------------------------------------------------------

%define libplasma_major 3
%define libplasma %mklibname plasma %{libplasma_major}

%package -n %{libplasma}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libplasma}
KDE 4 core library.

%files -n %{libplasma}
%{_kde_libdir}/libplasma.so.%{libplasma_major}*

#----------------------------------------------------------------------------

%define libkunitconversion_major 4
%define libkunitconversion %mklibname kunitconversion %{libkunitconversion_major}

%package -n %{libkunitconversion}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libkunitconversion}
KDE 4 core library.

%files -n %{libkunitconversion}
%{_kde_libdir}/libkunitconversion.so.%{libkunitconversion_major}*

#----------------------------------------------------------------------------

%define libkdewebkit_major 5
%define libkdewebkit %mklibname kdewebkit %{libkdewebkit_major}

%package -n %{libkdewebkit}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libkdewebkit}
KDE 4 library.

%files -n %{libkdewebkit}
%{_kde_libdir}/libkdewebkit.so.%{libkdewebkit_major}*

#----------------------------------------------------------------------------

%define libknewstuff3_major 4
%define libknewstuff3 %mklibname knewstuff3_ %{libknewstuff3_major}

%package -n %{libknewstuff3}
Summary:	KDE 4 library
Group:		System/Libraries
Obsoletes:	%{_lib}knewstuff34 < %{EVRD}

%description -n %{libknewstuff3}
KDE 4 library.

%files -n %{libknewstuff3}
%{_kde_libdir}/libknewstuff3.so.%{libknewstuff3_major}*

#----------------------------------------------------------------------------

%define libkcmutils_major 4
%define libkcmutils %mklibname kcmutils %{libkcmutils_major}

%package -n %{libkcmutils}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libkcmutils}
KDE 4 library.

%files -n %{libkcmutils}
%{_kde_libdir}/libkcmutils.so.%{libkcmutils_major}*

#----------------------------------------------------------------------------

%define libkprintutils_major 4
%define libkprintutils %mklibname kprintutils %{libkprintutils_major}

%package -n %{libkprintutils}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libkprintutils}
KDE 4 library.

%files -n %{libkprintutils}
%{_kde_libdir}/libkprintutils.so.%{libkprintutils_major}*

#----------------------------------------------------------------------------

%define libkidletime_major 4
%define libkidletime %mklibname kidletime %{libkidletime_major}

%package -n %{libkidletime}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libkidletime}
KDE 4 library.

%files -n %{libkidletime}
%{_kde_libdir}/libkidletime.so.%{libkidletime_major}*

#----------------------------------------------------------------------------

%define libkemoticons_major 4
%define libkemoticons %mklibname kemoticons %{libkemoticons_major}

%package -n %{libkemoticons}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libkemoticons}
KDE 4 library.

%files -n %{libkemoticons}
%{_kde_libdir}/libkemoticons.so.%{libkemoticons_major}*

#----------------------------------------------------------------------------

%if %{with nepomuk}
%define nepomuk_major 4
%define libnepomuk %mklibname nepomuk %{nepomuk_major}

%package -n %{libnepomuk}
Summary:	KDE 4 core library
Group:		System/Libraries

%description -n %{libnepomuk}
KDE 4 core library.

%files -n %{libnepomuk}
%{_kde_libdir}/libnepomuk.so.%{nepomuk_major}*
%endif

#----------------------------------------------------------------------------

%if %{with nepomuk}
%define libnepomukquery_major 4
%define libnepomukquery %mklibname nepomukquery %{libnepomukquery_major}

%package -n %{libnepomukquery}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libnepomukquery}
KDE 4 library.

%files -n %{libnepomukquery}
%{_kde_libdir}/libnepomukquery.so.%{libnepomukquery_major}*
%endif

#----------------------------------------------------------------------------

%if %{with nepomuk}
%define libnepomukutils_major 4
%define libnepomukutils %mklibname nepomukutils %{libnepomukutils_major}

%package -n %{libnepomukutils}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libnepomukutils}
KDE 4 library.

%files -n %{libnepomukutils}
%{_kde_libdir}/libnepomukutils.so.%{libnepomukutils_major}*
%endif

#----------------------------------------------------------------------------

%if ! %{no_libkactivities}
%define libkactivities_major 6
%define libkactivities %mklibname kactivities %{libkactivities_major}

%package -n %{libkactivities}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libkactivities}
KDE 4 library.

%files -n %{libkactivities}
%{_kde_libdir}/libkactivities.so.%{libkactivities_major}*
%endif

#----------------------------------------------------------------------------

%define libkdeclarative_major 5
%define libkdeclarative %mklibname kdeclarative %{libkdeclarative_major}

%package -n %{libkdeclarative}
Summary:	KDE 4 library
Group:		System/Libraries

%description -n %{libkdeclarative}
KDE 4 library.

%files -n %{libkdeclarative}
%{_kde_libdir}/libkdeclarative.so.%{libkdeclarative_major}*

#----------------------------------------------------------------------------

%package devel
Summary:	Header files and documentation for compiling KDE applications
Group:		Development/KDE and Qt
Requires:	automoc
Requires:	kde4-macros
Requires:	qt4-qtdbus
Requires:	shared-mime-info
Requires:	xsltproc
# add requires on libxml2-utils, as when building most kde applications,
# it will call xmllint to validate the docbook files:
Requires:	libxml2-utils
Requires:	kdelibs4-core = %{EVRD}
Requires:	%{libkcmutils} = %{EVRD}
Requires:	%{libkde3support} = %{EVRD}
Requires:	%{libkdecore} = %{EVRD}
Requires:	%{libkdefakes} = %{EVRD}
Requires:	%{libkdesu} = %{EVRD}
Requires:	%{libkdeui} = %{EVRD}
Requires:	%{libkdewebkit} = %{EVRD}
Requires:	%{libkdnssd} = %{EVRD}
Requires:	%{libkemoticons} = %{EVRD}
Requires:	%{libkfile} = %{EVRD}
Requires:	%{libkhtml} = %{EVRD}
Requires:	%{libkidletime} = %{EVRD}
Requires:	%{libkimproxy} = %{EVRD}
Requires:	%{libkio} = %{EVRD}
Requires:	%{libkjsapi} = %{EVRD}
Requires:	%{libkjsembed} = %{EVRD}
Requires:	%{libkjs} = %{EVRD}
Requires:	%{libkmediaplayer} = %{EVRD}
Requires:	%{libknewstuff2} = %{EVRD}
Requires:	%{libknewstuff3} = %{EVRD}
Requires:	%{libknotifyconfig} = %{EVRD}
Requires:	%{libkntlm} = %{EVRD}
Requires:	%{libkparts} = %{EVRD}
Requires:	%{libkprintutils} = %{EVRD}
Requires:	%{libkpty} = %{EVRD}
Requires:	%{libkrosscore} = %{EVRD}
Requires:	%{libkrossui} = %{EVRD}
Requires:	%{libktexteditor} = %{EVRD}
Requires:	%{libkunitconversion} = %{EVRD}
Requires:	%{libkunittest} = %{EVRD}
Requires:	%{libkutils} = %{EVRD}
Requires:	%{libplasma} = %{EVRD}
Requires:	%{libsolid} = %{EVRD}
Requires:	%{libthreadweaver} = %{EVRD}
%if ! %{no_libkactivities}
Requires:	%{libkactivities} = %{EVRD}
%endif
Requires:	%{libkdeclarative} = %{EVRD}
%if %{with nepomuk}
Requires:	%{libnepomuk} = %{EVRD}
Requires:	%{libnepomukquery} = %{EVRD}
Requires:	%{libnepomukutils} = %{EVRD}
%endif
Conflicts:	%{name}-core < 5:4.7.80-4

%description devel
This package includes the header files you will need to compile applications 
for KDE. Also included is the KDE API documentation in HTML format for easy 
browsing.

%files devel
%{_datadir}/dbus-1/*/*
%{_kde_includedir}/*
%{_kde_appsdir}/cmake/modules/*
%{_kde_libdir}/libkdefakes.so
%{_kde_libdir}/libkdesu.so
%{_kde_libdir}/libkdnssd.so
%{_kde_libdir}/libkhtml.so
%{_kde_libdir}/libkimproxy.so
%{_kde_libdir}/libkjs.so
%{_kde_libdir}/libkjsembed.so
%{_kde_libdir}/libkmediaplayer.so
%{_kde_libdir}/libknewstuff2.so
%{_kde_libdir}/libknotifyconfig.so
%{_kde_libdir}/libkntlm.so
%{_kde_libdir}/libkparts.so
%{_kde_libdir}/libkrossui.so
%{_kde_libdir}/libktexteditor.so
%{_kde_libdir}/libkunittest.so
%{_kde_libdir}/libkutils.so
%{_kde_libdir}/libkde3support.so
%{_kde_libdir}/libkpty.so
%{_kde_libdir}/libkfile.so
%{_kde_libdir}/libsolid.so
%{_kde_libdir}/libkrosscore.so
%{_kde_libdir}/libkdecore.so
%{_kde_libdir}/libkdeui.so
%{_kde_libdir}/libkio.so
%{_kde_libdir}/libthreadweaver.so
%{_kde_libdir}/libkjsapi.so
%{_kde_libdir}/libplasma.so
%{_kde_libdir}/libkunitconversion.so
%{_kde_libdir}/libkdewebkit.so
%{_kde_libdir}/libknewstuff3.so
%{_kde_libdir}/libkprintutils.so
%{_kde_libdir}/libkidletime.so
%{_kde_libdir}/libkemoticons.so
%{_kde_libdir}/libkcmutils.so
%if ! %{no_libkactivities}
%{_kde_libdir}/libkactivities.so
%endif
%if %{with nepomuk}
%{_kde_libdir}/libnepomuk.so
%{_kde_libdir}/libnepomukquery.so
%{_kde_libdir}/libnepomukutils.so
%endif
%{_kde_libdir}/libkdeclarative.so
%{_kde_libdir}/kde4/plugins/designer
%{_kde_bindir}/checkXML
%{_kde_mandir}/man1/checkXML.1*
%{_kde_mandir}/man1/makekdewidgets.1*
%{_kde_mandir}/man1/kconfig_compiler.1*
%{_kde_bindir}/kconfig_compiler
%{_kde_bindir}/makekdewidgets
%{_libdir}/cmake/KDeclarative/*.cmake

#----------------------------------------------------------------------------

%package core
Summary:	KDE 4 system core files
Group:		Graphical desktop/KDE
Requires:	abrt
Requires:	docbook-dtd45-xml
Requires:	docbook-style-xsl
Requires:	rootcerts
Requires:	shared-desktop-ontologies
Requires:	shared-mime-info
Recommends:	enchant-dictionary
Recommends:	xdg-utils

%description core
KDE 4 system core files.

%files core
%{_kde_bindir}/kbuildsycoca4
%{_kde_bindir}/kcookiejar4
%{_kde_bindir}/kde4-config
%{_kde_bindir}/kded4
%{_kde_bindir}/kdeinit4
%{_kde_bindir}/kdeinit4_shutdown
%{_kde_bindir}/kdeinit4_wrapper
%{_kde_bindir}/kjs
%{_kde_bindir}/kjscmd
%{_kde_bindir}/kmailservice
%{_kde_bindir}/ktelnetservice
%{_kde_bindir}/kross
%{_kde_bindir}/kshell4
%{_kde_bindir}/kunittestmodrunner
%{_kde_bindir}/kwrapper4
%{_kde_bindir}/meinproc4
%{_kde_bindir}/meinproc4_simple
%{_kde_bindir}/preparetips
%if %{with nepomuk}
%{_kde_bindir}/nepomuk-rcgen
%{_kde_bindir}/kfilemetadatareader
%endif
%dir %{_kde_libdir}/kde4
%{_kde_libdir}/kde4/*.so
%dir %{_kde_libdir}/kde4/libexec
%{_kde_libdir}/kde4/libexec/filesharelist
%attr(4755,root,root) %{_kde_libdir}/kde4/libexec/fileshareset
%{_kde_libdir}/kde4/libexec/kauth-policy-gen
%{_kde_libdir}/kde4/libexec/kconf_update
%{_kde_libdir}/kde4/libexec/kdesu_stub
%{_kde_libdir}/kde4/libexec/kio_http_cache_cleaner
%{_kde_libdir}/kde4/libexec/kioslave
%{_kde_libdir}/kde4/libexec/klauncher
%attr(4755,root,root) %{_kde_libdir}/kde4/libexec/kpac_dhcp_helper
%{_kde_libdir}/kde4/libexec/ksendbugmail
%{_kde_libdir}/kde4/libexec/lnusertemp
%{_kde_libdir}/kde4/libexec/start_kdeinit
%{_kde_libdir}/kde4/libexec/start_kdeinit_wrapper
%dir %{_kde_libdir}/kde4/plugins
%{_kde_libdir}/kde4/plugins/imageformats
%{_kde_libdir}/kde4/plugins/kauth
%{_kde_libdir}/kde4/plugins/script
%{_kde_libdir}/libkdeinit4_*
%{_kde_datadir}/config
%{_kde_datadir}/mime/*
%{_kde_datadir}/kde4
%{_kde_applicationsdir}/kmailservice.desktop
%{_kde_applicationsdir}/ktelnetservice.desktop
%{_kde_appsdir}/proxyscout
%{_kde_appsdir}/LICENSES
%{_kde_appsdir}/kssl
%{_kde_appsdir}/ksgmltools2
%{_kde_appsdir}/knewstuff
%{_kde_appsdir}/kjava
%{_kde_appsdir}/khtml
%{_kde_appsdir}/kdewidgets
%{_kde_appsdir}/kdeui
%{_kde_appsdir}/kconf_update
%{_kde_appsdir}/kcm_componentchooser
%{_kde_appsdir}/kcharselect
%{_kde_docdir}/HTML/en/sonnet
%{_kde_docdir}/HTML/en/common/*
%{_kde_docdir}/HTML/en/kioslave/data
%{_kde_docdir}/HTML/en/kioslave/file
%{_kde_docdir}/HTML/en/kioslave/ftp
%{_kde_docdir}/HTML/en/kioslave/help
%{_kde_docdir}/HTML/en/kioslave/http
%{_kde_docdir}/HTML/en/kioslave/mailto
%{_kde_docdir}/HTML/en/kioslave/rlogin
%{_kde_docdir}/HTML/en/kioslave/telnet
%{_kde_docdir}/HTML/en/kioslave/webdav
%{_kde_mandir}/man1/kde4-config.1*
%{_kde_mandir}/man7/kdeoptions.7*
%{_kde_mandir}/man7/qtoptions.7*
%{_kde_mandir}/man8/kbuildsycoca4.8*
%{_kde_mandir}/man8/kcookiejar4.8*
%{_kde_mandir}/man8/kdeinit4.8*
%{_kde_mandir}/man8/meinproc4.8*
%{_kde_mandir}/man1/kjs.1.*
%{_kde_mandir}/man1/kjscmd.1.*
%{_kde_mandir}/man1/kross.1.*
%{_kde_mandir}/man1/preparetips.1.*
%{_kde_mandir}/man8/kded4.8.*
%{_kde_iconsdir}/hicolor/*/actions/presence_away.png
%{_kde_iconsdir}/hicolor/*/actions/presence_offline.png
%{_kde_iconsdir}/hicolor/*/actions/presence_online.png
%{_kde_iconsdir}/hicolor/*/actions/presence_unknown.png
%{_kde_datadir}/locale/all_languages
%{_sysconfdir}/dbus-1/system.d/org.kde.auth.conf
%{_kde_sysconfdir}/xdg/kde4/menus/applications.menu
%{_kde_appsdir}/kauth
%{_kde_appsdir}/plasma
%{_kde_datadir}/locale/en_US/entry.desktop

#----------------------------------------------------------------------------

%if %{compile_apidox}
%package apidoc
Summary:	Development documentation for %{name}
Group:		Development/KDE and Qt
Requires:	qt4-doc

%description apidoc
This packages contains all development documentation for kdelibs

%files apidoc
%{_docdir}/kde4/api/*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n kdelibs-%{version}

%patch1 -p0
%if ! %{with_drkonqi}
%patch2 -p0
%endif
%patch3 -p1
%patch4 -p1 -b .doc5~
%patch5 -p1 -b .kf5dtd~
%if %{mdvver} >= 201610
%patch6 -p1 -b .kdialog~
%endif
%patch10 -p1 -b .phonepower~
%patch11 -p1 -b .delayed~
%patch12 -p1 -R
%patch13 -p1 -b .dtd45~
%patch14 -p1 -b .cmp0002~
%if %{mdvver} >= 201610
%patch15 -p1 -b .strigi~
%endif
%patch16 -p1
%if %{mdvver} > 201610
%patch17 -p1
%endif
%patch100 -p1
%patch200 -p1
%patch203 -p1
%patch204 -p1
%patch206 -p1
%patch207 -p1
%patch208 -p1
%patch209 -p1
%patch210 -p1
%patch211 -p1
%if %{mdvver} >= 201910
%patch212 -p1
%endif
%patch213 -p1
%patch214 -p1
%patch215 -p1

%build
export CXXFLAGS="%{optflags} -Wno-narrowing"
%cmake_kde4 %{?no_libkactivities:-DBUILD_libkactivities:BOOL=OFF}

%if %{compile_apidox}
  cd ..
  doc/api/doxygen.sh --doxdatadir=${PWD}/doc/common .
%endif

%install
%makeinstall_std -C build

%if %{compile_apidox}
  mkdir -p %{buildroot}%{_docdir}/kde4/api
  cp -av kdelibs-%{version}-apidocs %{buildroot}%{_docdir}/kde4/api/kdelibs
%endif

rm -fr %{buildroot}%{_kde_appsdir}/kssl/ca-bundle.crt
ln -snf %{_sysconfdir}/pki/tls/certs/ca-bundle.crt %{buildroot}%{_kde_appsdir}/kssl/ca-bundle.crt

# From cmake file code that no longer works
#ln -s %{_kde_libdir}/kde4/libexec/fileshareset %{buildroot}%{_kde_libdir}/kde4/libexec/filesharelist


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2554 |21cr|kde-menu-new-odf-files-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Создание файлов ODF через меню KDE
Summary:	ODF files to KDE pop-up menu
Name:		kde-menu-new-odf-files
Version:	1.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://abf.io/import/kde-menu-new-odf-files
Vendor:		MOS
Source1:	document.odt
Source2:	documentodt.desktop
Source3:	presentation.odp
Source4:	presentationodp.desktop
Source5:	sheet.ods
Source6:	sheetods.desktop

BuildArch:	noarch

Conflicts:	kde5-menu-new-odf-files < 1.0
Obsoletes:	kde5-menu-new-odf-files < 1.0

%description
Adding elements to the KDE pop-up menu to create a document,
table and presentation in ODF format

%description -l ru_RU.UTF-8
Добавление пунктов меню в KDE для создания документа,
таблицы и презентации в формате ODF
(odt, ods, odp)

%files
%{_datadir}/templates/documentodt.desktop
%{_datadir}/templates/document.odt
%{_datadir}/templates/presentationodp.desktop
%{_datadir}/templates/presentation.odp
%{_datadir}/templates/sheetods.desktop
%{_datadir}/templates/sheet.ods

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%install
mkdir -p %{buildroot}%{_datadir}/templates
install -pm644 *.desktop %{buildroot}%{_datadir}/templates
install -pm644 *.od* %{buildroot}%{_datadir}/templates

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2555 |21cr|kde-menu-new-ooxml-files-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Создание файлов OOXML через меню KDE
Summary:	OOXML files to KDE pop-up menu
Name:		kde-menu-new-ooxml-files
Version:	1.0
Release:	2
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://abf.io/import/kde-menu-new-ooxml-files
Vendor:		MOS
Source1:	document.docx
Source2:	documentdocx.desktop
Source3:	presentation.pptx
Source4:	presentationpptx.desktop
Source5:	sheet.xlsx
Source6:	sheetxlsx.desktop

BuildArch:	noarch

Conflicts:	kde5-menu-new-ooxml-files < 1.0
Obsoletes:	kde5-menu-new-ooxml-files < 1.0

%description
Adding elements to the KDE pop-up menu to create a document,
table and presentation in OOXML format

%description -l ru_RU.UTF-8
Добавление пунктов меню в KDE для создания документа,
таблицы и презентации в формате OOXML
(docx, xlsx, pptx)

%files
%{_datadir}/templates/documentdocx.desktop
%{_datadir}/templates/document.docx
%{_datadir}/templates/presentationpptx.desktop
%{_datadir}/templates/presentation.pptx
%{_datadir}/templates/sheetxlsx.desktop
%{_datadir}/templates/sheet.xlsx

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%install
mkdir -p %{buildroot}%{_datadir}/templates
install -pm644 *.desktop %{buildroot}%{_datadir}/templates
install -pm644 *x %{buildroot}%{_datadir}/templates

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2556 |21cr|kde-menu-pdf-manager-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8):	Пункт меню в KDE для работы с PDF
Summary:	A menu item in KDE for working with PDF
Name:		kde-menu-pdf-manager
Version:	1.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://abf.io/import/kde-menu-pdf-manager
Source0:	LICENSE
Source1:	README.md
# Действия с PDF
Source10:	extract-images-from-pdf.desktop
Source11:	merge-pdf.desktop
Source12:	split-pdf.desktop
Source13:	pdf-pages-to-images.desktop
# Экспорт в PDF
Source20:	export-as-pdf.desktop
Source21:	convert-images-to-pdf.desktop
Requires:	/usr/bin/soffice
Requires:	/usr/bin/img2pdf
Requires:	poppler
Requires:	kdialog
BuildArch:	noarch

%description
%summary.

%description -l ru_RU.UTF-8
Пакет добавляет пункт к контекстному меню возможности работы c PDF файлами.
- Можно экспортировать в PDF документы.
- При экспорте картинок, если выбрано одно изображение, тогда автоматически
  предлагает название изображения с расширением .pdf. Иначе предлагает ввести
  название для PDF, в которую будет объединены несколько изображений.
- Извлечение из PDF изображений в jpg или png.
- Разбиение PDF на картинки jpg или png.
- Объединение нескольких PDF в один файл.
- Разбить PDF на страницы.

%files
%license LICENSE
%doc README.md
%{_datadir}/kio/servicemenus/*.desktop

#------------------------------------------------------------------

%prep
%autosetup -T -c
cp %sources .

%install
mkdir -p %{buildroot}%{_datadir}/kio/servicemenus
install -m755 *.desktop %{buildroot}%{_datadir}/kio/servicemenus

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2557 |21cr|kde-menu-print-file-0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8):	Пункт меню в KDE для печати файлов через LibreOffice
Summary:	Menu item in KDE for printing files via LibreOffice
Name:		kde-menu-print-file
Version:	0.1
Release:	3
License:	GPL
Group:		Graphical desktop/KDE
Url:		https://abf.io/import/kde-menu-print-file
Source0:	printFile.desktop
Requires:	/usr/bin/soffice
BuildArch:	noarch

%description
%summary.

%description -l ru_RU.UTF-8
Пакет добавляет пункт к контекстному меню файлов документов, чтобы распечатать документы не открывая их.

%files
%{_datadir}/kio/servicemenus/printFile.desktop

#------------------------------------------------------------------

%prep
%autosetup -T -c
cp %sources .

%install
mkdir -p %{buildroot}%{_datadir}/kio/servicemenus
install -m755 printFile.desktop %{buildroot}%{_datadir}/kio/servicemenus

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2558 |21cr|kdenetwork4-4.14.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	K Desktop Environment - Network Applications
Name:		kdenetwork4
Version:	4.14.3
Release:	6
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Recommends:	kdenetwork-filesharing
Recommends:	kdenetwork-strigi-analyzers
Recommends:	kdnssd
Recommends:	kget
Recommends:	kopete
Recommends:	kppp
Recommends:	krdc
Recommends:	krfb
Obsoletes:	kdenetwork4-devel < 3:4.11.0
BuildArch:	noarch

%description
Networking applications for the K Desktop Environment:
 - kdenetwork-filesharing: Samba filesharing dialog for KDE
 - kdenetwork-strigi-analyzers: KDE network strigi plugins
 - kdnssd: DNS-SD service discovery monitor
 - kget: Versatile and user-friendly download manager for KDE
 - kopete: KDE internet messenger
 - kppp: KDE tool to setup PPP (Point-to-Point Protocol) connections
 - krfb: Desktop Sharing server, allow others to access your desktop via VNC
 - krdc: a client for Desktop Sharing and other VNC servers

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2559 |21cr|kde-rootactions-servicemenu-2.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	rootactions-servicemenu

Summary:	Root actions for Dolphin context menu
Name:		kde-rootactions-servicemenu
Version:	2.9.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		http://www.kde-apps.org/content/show.php/?content=48411
Source0:	https://codeload.github.com/ds9-extras/rootactions-servicemenu/rootactions-servicemenu-master.zip
# adapt for kdesu in %{_libdir}/kde4/libexec/kdesu
Patch0:		rootactions-servicemenu-master-fix_kdesu.patch
BuildRequires:	kde5-macros
BuildArch:	noarch

%description
Root Actions servicemenu provides a convenient way to perform
several actions 'as root', from the right-click context menu in KDE
filemanager.

%files
%doc README changelog
%{_kde5_bindir}/rootactions-servicemenu.pl
%{_kde5_services}/ServiceMenus/10-rootactionsfolders.desktop
%{_kde5_services}/ServiceMenus/11-rootactionsfiles.desktop
%{_kde5_datadir}/polkit-1/action
%{_datadir}/kde4/services/ServiceMenus/10-rootactionsfolders.desktop
%{_datadir}/kde4/services/ServiceMenus/11-rootactionsfiles.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-master
%patch0 -p1

%build

%install
install -d -m755 %{buildroot}%{_bindir}
install -m755 usr/bin/rootactions-servicemenu.pl %{buildroot}%{_bindir}

install -d -m755 %{buildroot}%{_datadir}/kde4/services/ServiceMenus
install -m644 usr/share/kde4/services/ServiceMenus/* %{buildroot}%{_datadir}/kde4/services/ServiceMenus

install -d -m755 %{buildroot}%{_kde5_services}/ServiceMenus
install -m644 usr/share/kservices5/ServiceMenus/* %{buildroot}%{_kde5_services}/ServiceMenus

install -d -m755 %{buildroot}%{_kde5_datadir}/polkit-1/actions
install -m644 usr/share/polkit-1/actions/* %{buildroot}%{_kde5_datadir}/polkit-1/action

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2560 |21cr|kdesdk4-4.14.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	K Desktop Environment - Software Development Kit
Name:		kdesdk4
Version:	4.14.3
Release:	5
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Recommends:	cervisia
Recommends:	dolphin-plugins
Recommends:	lokalize
Recommends:	kapptemplate
Recommends:	kcachegrind
Recommends:	kde-dev-scripts
Recommends:	kde-dev-utils
Recommends:	kdesdk-kioslaves
Recommends:	kdesdk-strigi-analyzers
Recommends:	kdesdk-thumbnailers
Recommends:	kompare
Recommends:	okteta
Recommends:	poxml
Recommends:	umbrello
Obsoletes:	kdesdk4-core < 1:4.11.0
Obsoletes:	kdesdk4-devel < 1:4.11.0
BuildArch:	noarch

%description
Metapackage for Software Development Kit for the K Desktop Environment.

%files

#---------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2561 |21cr|kdetoys4-4.14.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	K Desktop Environment - Toys and Amusements
Name:		kdetoys4
Version:	4.14.3
Release:	5
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Recommends:	amor
Recommends:	kteatime
Recommends:	ktux
Obsoletes:	kdetoys4-devel < 1:4.11.0
BuildArch:	noarch

%description
Toys for the K Desktop Environment.

Software suggested by this metapackage:
	- amor: Amusing Misuse Of Resources put's comic figures above your windows
	- kteatime: system tray applet that makes sure your tea doesn't get too strong
	- ktux: Tux-in-a-Spaceship screen saver

%files

#-------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2562 |21cr|kdevmon-0.4.7-0.840945.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svnrel  %(echo %{release} |cut -d. -f 2)

Summary:	A utility for monitoring the throughput of one network device
Name:		kdevmon
Version:	0.4.7
Release:	0.840945.3
License:	GPLv2+
Group:		Monitoring
Source:		%{name}-r%{svnrel}.tar.bz2
URL: 		http://websvn.kde.org/trunk/playground/network/kdevmon/
BuildRequires:  kdelibs4-devel

%description
Kdevmon is a utility for KDE that monitors the throughput of a network
device. It docks in the systemtray and shows the current network traffic
as a diagram. There also is a resizable main window that provides a
larger traffic diagram and displays the current net speed in bits per
second. Middle-clicking on the dock window or on the main window offers
you an overview of the amount of incoming/outgoing bits and the current
and the maximum bit rate.

%prep
%setup -q -n %name

%build
%cmake_kde4
%make

%install
rm -fr %buildroot
%makeinstall_std -C build

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%files
%defattr (-,root,root)
%doc ChangeLog README TODO 
%_kde_bindir/kdevmon
%_kde_datadir/applications/kde4/kdevmon.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2563 |21cr|kdiskmark-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname KDiskMark

Name:		kdiskmark
Version:	3.1.2
Release:	1
Summary:	Disk benchmark tool
URL:		https://github.com/JonMagon/KDiskMark
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
# need for build. see git src/singleapplication for check needed version
Source1:	https://github.com/itay-grudev/SingleApplication/archive/f1e15081dc57a9c03f7f4f165677f18802e1437a.zip?/singleapplication.zip
License:	GPLv3
Group:		Development/Other
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	fio >= 3.1
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(polkit-qt5-1)
BuildRequires:	qt5-linguist-tools
Requires:       fio >= 3.1

%description
KDiskMark is an HDD and SSD benchmark tool with a very
friendly graphical user interface. KDiskMark with its
presets and powerful GUI calls Flexible I/O Tester and
handles the output to provide an easy to view and interpret
comprehensive benchmark result. The application is written
in C++ with Qt and doesn't have any KDE dependencies.

%files
%doc README.md LICENSE
%{_bindir}/%{name}
%{_libexecdir}/kdiskmark_helper
%{_datadir}/applications/kdiskmark.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_datadir}/dbus-1/system-services/dev.jonmagon.kdiskmark.helperinterface.service
%{_datadir}/dbus-1/system.d/dev.jonmagon.kdiskmark.helperinterface.conf
%{_datadir}/polkit-1/actions/dev.jonmagon.kdiskmark.helper.policy

#---------------------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version} -a1

cp -r SingleApplication*/* src/singleapplication/

%build
%cmake
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2564 |21cr|kdist-0.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _libexecdir /usr/libexec

Summary:	Tool for managing Mandriva kernel builds
Name:		kdist
Version:	0.0.4
Release:	4
License: 	GPL v2
Group: 		System/Configuration/Hardware
Source0:	%{name}-%{version}.tar.bz2
URL:		http://git.mandriva.com/projects/?p=users/fbui/kdist.git
BuildArch:	noarch

%description
Kdist is a tool for managing Mandriva kernel builds from a git repository.

%prep
%setup -q

%build

%install
%makeinstall_std prefix=/usr

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%attr(0755, root, root) %_bindir/kdist
%_libexecdir/kdist/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2565 |21cr|kdsingleapplication-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:           kdsingleapplication
Version:        1.1.0
Release:        1
Summary:        Helper class for single-instance policy applications
License:        MIT
Group:          System/Libraries
URL:            https://github.com/KDAB/KDSingleApplication
Source0:        https://github.com/KDAB/KDSingleApplication/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  qt6-cmake
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6Test)
BuildRequires:  cmake(Qt6Widgets)

%description
KDSingleApplication is a helper class for single-instance
policy applications.

#------------------------------------------------------
%package -n %{libname}
Summary:        Helper class for single-instance policy applications
Group:          System/Libraries

%description -n %{libname}
KDSingleApplication is a helper class for single-instance
policy applications.

%files -n %{libname}
%{_libdir}/libkdsingleapplication-qt6.so.%{major}{,.*}

#------------------------------------------------------

%package -n %{devname}
Summary:        Development files for libkdsingleapplication-qt6
Group:          Development/KDE and Qt
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{devname}
Development files for libkdsingleapplication-qt6.

%files -n %{devname}
%license LICENSES/*
%doc README.md
%{_includedir}/kdsingleapplication-qt6/
%{_libdir}/libkdsingleapplication-qt6.so
%{_libdir}/cmake/KDSingleApplication-qt6/
%{_qt6_mkspecsdir}/modules/qt_KDSingleApplication.pri

#------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
        -DKDSingleApplication_QT6:BOOL=ON \
        -DKDSingleApplication_TESTS:BOOL=OFF

%make_build

%install
%make_install -C build

# Packaged using %%license and %%doc
rm -r %{buildroot}%{_datadir}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2566 |21cr|keepalived-1.2.24-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name: keepalived
Version: 1.2.24
Release: 3
Summary: HA monitor built upon LVS, VRRP and services poller
License: GPL
Group: System/Cluster 
URL: http://www.keepalived.org/
Source0: http://www.keepalived.org/software/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(popt)
BuildRequires: kernel-devel

%description
The main goal of the keepalived project is to add a strong & robust keepalive
facility to the Linux Virtual Server project. This project is written in C with
multilayer TCP/IP stack checks. Keepalived implements a framework based on
three family checks : Layer3, Layer4 & Layer5/7. This framework gives the
daemon the ability to check the state of an LVS server pool. When one of the
servers of the LVS server pool is down, keepalived informs the linux kernel via
a setsockopt call to remove this server entry from the LVS topology. In
addition keepalived implements an independent VRRPv2 stack to handle director
failover. So in short keepalived is a userspace daemon for LVS cluster nodes
healthchecks and LVS directors failover.

%prep
%setup

%build
%configure
%make

%install
%makeinstall_std
# Remove "samples", as we include them in %%doc
rm -rf %{buildroot}%{_sysconfdir}/%{name}/samples/
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{buildroot}%{_usr}%{_unitdir}/keepalived.service %{buildroot}%{_unitdir}/keepalived.service
rm %{buildroot}%{_usr}%{_unitdir}/keepalived.service

%post
%_post_service %{name}

%preun 
%_preun_service %{name}

%files
%defattr(-, root, root, 0755)
%doc AUTHOR ChangeLog CONTRIBUTORS COPYING README TODO
%doc doc/keepalived.conf.SYNOPSIS doc/samples/
%dir %{_sysconfdir}/keepalived/
%attr(0600, root, root) %config(noreplace) %{_sysconfdir}/keepalived/keepalived.conf
%attr(0600, root, root) %config(noreplace) %{_sysconfdir}/sysconfig/keepalived
%{_sysconfdir}/rc.d/init.d/keepalived
%{_bindir}/genhash
%{_sbindir}/keepalived
%{_unitdir}/keepalived.service
%{_mandir}/man1/genhash.1*
%{_mandir}/man5/keepalived.conf.5*
%{_mandir}/man8/keepalived.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2567 |21cr|keepass-2.52-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ru_version 2.41

Summary:	Light-weight and easy-to-use password manager
Name:		keepass
Version:	2.52
Release:	1
Group:		File tools
License:	GPLv2
Url:		http://keepass.info/
Source0:	https://downloads.sourceforge.net/project/keepass/KeePass%202.x/%{version}/KeePass-%{version}.zip
Source1:	https://downloads.sourceforge.net/keepass/KeePass-%{ru_version}-Russian.zip
Source2:	plockb_16.png
Source3:	plockb_32.png
Source4:	plockb_48.png
Source5:	plockb_64.png
Source6:	plockb_128.png
Source7:	%{name}.desktop
Requires:	mono
Requires:	mono-winforms
BuildArch:	noarch

%description
Light-weight and easy-to-use password manager.

%files
%doc License.txt
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/%{name}

#--------------------------------------------------------------------

%prep
%setup -qc -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -r * %{buildroot}%{_datadir}/%{name}

# Create a launcher
mkdir -p %{buildroot}%{_bindir}
echo "#!/bin/sh" > %{buildroot}%{_bindir}/%{name}
echo "mono /usr/share/%{name}/KeePass.exe" >> %{buildroot}%{_bindir}/%{name}
chmod a+x %{buildroot}%{_bindir}/%{name}

# Install *.desktop file to datadir:
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE7} %{buildroot}%{_datadir}/applications/%{name}.desktop

# Install pixmaps:
for SIZE in 16 32 48 64 128; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${SIZE}x${SIZE}/apps
done
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -m644 %{SOURCE5} %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -m644 %{SOURCE6} %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png

mv Russian.lngx %{buildroot}%{_datadir}/%{name}/Languages/
rm -f %{buildroot}%{_datadir}/%{name}/Russian.lngx

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2568 |21cr|keepassx-0.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cross Platform Password Manager
Name:		keepassx
Version:	0.4.4
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://www.keepassx.org/
Source0:	http://downloads.sourceforge.net/keepassx/keepassx-%{version}.tar.gz
Patch0:		keepassx-0.4.3-fix-getpid-undef.patch
BuildRequires:	desktop-file-utils
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)
Provides:	keepass = %{EVRD}
Provides:	KeePassX = %{EVRD}

%description
KeePassX is a free/open-source password manager or safe which helps
you to manage your passwords in a secure way. You can put all your
passwords in one database, which is locked with one master key or a
key-disk. So you only have to remember one single master password or
insert the key-disk to unlock the whole database. The databases are
encrypted using the best and most secure encryption algorithms
currently known (AES and Twofish).

%files
%doc changelog
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/mimelnk/application/x-keepass.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%qmake_qt4 PREFIX=%{_prefix}
%make

%install
%makeinstall_qt

install -D -m 644 share/keepassx/icons/keepassx_large.png	%{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -D -m 644 share/keepassx/icons/keepassx.png		%{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m 644 share/keepassx/icons/keepassx_small.png	%{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# fix .desktop file
desktop-file-install \
		--add-category="System" \
		--remove-key="X-SuSE-translate" \
		--delete-original \
		--dir=%{buildroot}%{_datadir}/applications \
		%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2569 |21cr|keepassxc-2.7.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cross Platform Password Manager
Name:		keepassxc
Version:	2.7.9
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://www.keepassxc.org
Source0:		https://github.com/keepassxreboot/keepassxc/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:		upd.sh
Patch0:		keepassxc-2.7.1-fix-Comments-in-desktop-file.patch
BuildRequires:	%{_bindir}/asciidoctor
BuildRequires:	%{_bindir}/appstream-util
BuildRequires:	cmake >= 3.14.0
BuildRequires:	desktop-file-utils
BuildRequires:	gcc-c++
BuildRequires:	git
BuildRequires:	qt5-devel
BuildRequires:	libyubikey-devel
BuildRequires:	pkgconfig(botan-2) >= 2.11.0
BuildRequires:	pkgconfig(libargon2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libmicrohttpd)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(libqrencode)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	cmake(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Core) >= 5.12.0
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(quazip)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(ykpers-1)
BuildRequires:	pkgconfig(zlib)
Provides:		keepass = %{EVRD}

%description
KeePassXC is a community fork of KeePassX. It is an application for people
with extremely high demands on secure personal data management.
KeePassXC saves many different information e.g. user names, passwords, URLs,
attachments and comments in one single database. For a better management
user-defined titles and icons can be specified for each single entry.
Furthermore the entries are sorted in groups, which are customizable as well.
The integrated search function allows to search in a single group or the
complete database.
KeePassXC offers a little utility for secure password generation. The password
generator is very customizable, fast and easy to use. Especially someone who
generates passwords frequently will appreciate this feature.
The complete database is always encrypted either with AES (alias Rijndael) or
Twofish encryption algorithm using a 256 bit key. Therefore the saved
information can be considered as quite safe.

%files
%doc README.md
%license COPYING LICENSE*
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_bindir}/%{name}-proxy
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/org.%{name}.KeePassXC.appdata.xml
%{_datadir}/mimelnk/application/x-%{name}.desktop
%{_datadir}/mime/packages/*.xml
%{_iconsdir}/hicolor/*/*/*keepassxc*
%{_libdir}/%{name}
%{_mandir}/man1/%{name}-cli.1*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%cmake_qt5 \
    -DWITH_TESTS=OFF \
    -DWITH_XC_ALL=ON \
    -DWITH_XC_UPDATECHECK=OFF \
    -DCMAKE_BUILD_TYPE=Release \
    -DKEEPASSXC_BUILD_TYPE=Release
%make
 
 
%install
%makeinstall_std -C build


# (From Fedora) Associate to KDB* files
cat > x-%{name}.desktop << EOF
[Desktop Entry]
Comment=
Hidden=false
Icon=%{name}.png
MimeType=application/x-%{name}
Patterns=*.kdb;*.KDB;*.kdbx;*.KDBX*
Type=MimeType
EOF

install -D -m 644 -p x-%{name}.desktop %{buildroot}%{_datadir}/mimelnk/application/x-%{name}.desktop

desktop-file-install \
    --dir %{buildroot}%{_datadir}/applications \
    --delete-original \
    --add-mime-type application/x-%{name} \
    %{buildroot}%{_datadir}/applications/org.%{name}.KeePassXC.desktop


# Normalize name
mv -v %{buildroot}%{_datadir}/applications/org.%{name}.KeePassXC.desktop \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

#find_lang %%{name} --with-qt


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
# This one fails, but I cannot tell why...
#appstream-util validate-relax --nonet %%{buildroot}%%{_datadir}/metainfo/org.%%{name}.KeePassXC.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2570 |21cr|keeperrl-34-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

# Get them from git tag date
%define	uver alpha31.2
%define	date 20201012

Summary:	Dungeon simulator game with roguelike elements
Name:		keeperrl
# Ie: version 0.0.31, hotfix 2
Version:	34
Release:	2
License:	GPLv2+
Group:		Games/Adventure
Url:		https://keeperrl.com
Source0:	https://github.com/miki151/keeperrl/archive/%{uver}/%{name}-%{uver}.tar.gz
Source1:	%{name}-48.png
Source2:	%{name}-128.png
Source3:	%{name}-256.png
BuildRequires:	boost-devel
BuildRequires:	clang
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)

%description
KeeperRL is an opensource dungeon simulator game inspired by Dungeon Keeper
and Dwarf Fortress. You become an evil wizard seeking the ultimate knowledge
of destruction. You can control your minions, and explore and conquer the
world in a roguelike fashion. Combat is turn-based and very tactical. The
whole world is procedurally generated.
This is the ASCII version of %{name}. See keeperrl.com for information
about buying the version with nonfree music and graphical tiles.

%files
%license LICENSE
%{_datadir}/applications/rosa-%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{uver}

# Replace git-based version detection
cat << EOF > gen_version.sh
echo "#define BUILD_VERSION \"%{uver} (%{_vendor})\"" > version.h
echo "#define BUILD_DATE \"%{date}\"" >> version.h
EOF


%build
# Do not use cmake: when using it we cannot exclude the building
# of the Steam integration, but this requires Steam SDK and
# we don't have it. However, using directly the provided makefile
# force the use of clang.
%clang_gcc_wrapper
%make \
	DATA_DIR=%{_gamesdatadir}/%{name}	\
	ENABLE_LOCAL_USER_DIR=True	\
	NO_RPATH=True			\
	NO_STEAMWORKS=True		\
	OPT=ON				\
	RELEASE=True

%install
# In the provided makefile there are no means to install:
# go manually.
# Install the binary
install -D -m755 keeper %{buildroot}%{_gamesbindir}/%{name}

# Install game data
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a data_contrib data_free %{buildroot}%{_gamesdatadir}/%{name}/
install -m644 appconfig.txt %{buildroot}%{_gamesdatadir}/%{name}/appconfig.txt

# Add a menu entry
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=KeeperRL
GenericName=Dungeon simulator
Comment=Dungeon simulator game
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;RolePlaying;
EOF

# Install our icons
install -D -m644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -D -m644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
install -D -m644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2571 |21cr|keepnote-0.7.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:        keepnote
Version:     0.7.9
Release:     3
Summary:     Note-taking and organization application
Summary(ru): Записная книжка иерархической структуры
License:     GPLv2
Group:       Office

URL:     http://%{name}.org
Source0: http://%{name}.org/download-test/%{name}-%{version}.tar.gz
Source1: %{name}-%{version}-%{name}.mo
Source2: %{name}-%{version}-%{name}.1
# Add extensions from http://keepnote.org/extensions.shtml
Source3: %{name}-%{version}-extensions.tar.xz
# Add mime-info for KeepNote notebook
Source4: %{name}-%{version}-%{name}.xml
Patch0:  %{name}-%{version}-desktop.patch
Patch1:  %{name}-%{version}-lang-ru.patch
# Fix deprecated GtkDialog properties
Patch2:  %{name}-%{version}-keepnote.glade.patch

BuildArch: noarch

BuildRequires: python >= 2.5
BuildRequires: python-devel

Requires: python >= 2.5
Requires: pygtk2.0
Requires: pygtk2.0-libglade
Requires: sqlite-tools >= 3.5.0

Requires(post): desktop-file-utils
Requires(post): gtk-update-icon-cache
Requires(post): shared-mime-info

Requires(postun): desktop-file-utils
Requires(postun): gtk-update-icon-cache
Requires(postun): shared-mime-info

%description
KeepNote is an application to organize your notes. It's features include:
- rich text editing;
- fonts/colors;
- hyperlinks;
- inline images;
- hierarchical organization for notes;
- full text search;
- spell checking (via gtkspell);
- backup and restore;
- HTML export;

%description -l ru
Записная книжка иерархической структуры.
Возможности включают в себя поддержку:
- форматированного текста;
- шрифтов/цвета;
- ссылок;
- изображений;
- иерархической организации заметок;
- полнотекстового поиска;
- проверки орфографии (посредством gtkspell);
- резервного копирования и восстановления;
- экспорта в HTML.


%files
%{_bindir}/%{name}
%{py_puresitedir}/%{name}
%{py_puresitedir}/%{name}-%{version}-py%{py_ver}.egg-info
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/ru/man1/*.1.xz
%doc COPYING LICENSE README README.translations.txt

#----------------------------------------------------------------------------

%prep
%setup -q -a 3
%apply_patches

%build

%install
python2 setup.py install --root=%{buildroot}
# Fix path of translations
for DIR in de_DE es_ES fr_FR it_IT ja_JP pl_PL ru_RU sk_SK sv_SE tr_TR zh_CN; do
    mv -f %{buildroot}%{py_puresitedir}/%{name}/rc/locale/$DIR.UTF8 %{buildroot}%{py_puresitedir}/%{name}/rc/locale/$DIR.UTF-8
done
cp -af %SOURCE1 %{buildroot}%{py_puresitedir}/%{name}/rc/locale/ru_RU.UTF-8/LC_MESSAGES/%{name}.mo
# Add mime-info for KeepNote
install -D -m 0644 %SOURCE4 %{buildroot}%{_datadir}/mime/packages/%{name}.xml
# Add man page in Russian
install -D %SOURCE2 %{buildroot}%{_mandir}/ru/man1/%{name}.1
# Fix files permissions
chmod 0644 %{buildroot}%{py_puresitedir}/%{name}/extensions/pasteboard/__init__.py
chmod 0644 %{buildroot}%{py_puresitedir}/%{name}/extensions/pasteboard/info.xml
chmod 0755 %{buildroot}%{py_puresitedir}/%{name}/tarfile.py
# Remove unnecessary file
rm %{buildroot}%{py_puresitedir}/%{name}/rc/%{name}.glade.h

%post
%_update_desktop_database_bin %{_datadir}/applications
%_update_icon_cache_bin       %{_iconsdir}/hicolor
%_update_mime_database_bin -n %{_datadir}/mime

%postun
if [ $1 = 0 ]; then
    %_update_desktop_database_bin %{_datadir}/applications
    %_update_icon_cache_bin       %{_iconsdir}/hicolor
    %_update_mime_database_bin    %{_datadir}/mime
fi



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2572 |21cr|kencfs-2.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define  oname kencfs-plasma

Summary:	GUI frontend for encfs
Name:		kencfs
Version:	2.0.2
Release:	3
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.linux-apps.com/p/1170068/
Source0:	https://dl.opendesktop.org/api/files/download/id/1486310914/%{oname}-%{version}a.tar.gz
Source1:    kencfs_ru_RU.qm.tar.gz
Patch0:     kencfs-desktop.patch
BuildRequires:  kdelibs4-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:  kf5kdelibs4support-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5wallet-devel
Requires:	encfs
Requires:	fuse2

%description
KEncFS is a GUI frontend for encfs. With KEncFS you can easily create, mount,
umount and delete your encrypted filesystem.

Use of KEncFS is very simple: to create a new encrypted filesystem you must
create new or select two existent dirs, one directory to archive encrypted
files and another directory to mount on the encrypted filesystem with encfs
(a mountpoint). After this, you can select a conventional ID for your encrypted
filesystem and then a password.

With KEncFS you can also manage your encrypted filesystem. You can browse,
mount, umount, remove from list (not from disk) your encrypted filesystem,
in easy way.

%files
%{_bindir}/kencfs-plasma
%{_datadir}/applications/kencfs-plasma.desktop
%{_datadir}/doc/kencfs-plasma/README
%{_datadir}/doc/kencfs-plasma/preview2.png
%{_datadir}/doc/kencfs-plasma/preview3.png
%{_datadir}/icons/kencfs-plasma/kencfs-icon.png
%{_datadir}/icons/kencfs-plasma/kencfs-icon2.png
%{_datadir}/icons/kencfs-plasma/kencfs-icon3.png
%{_datadir}/kencfs-plasma/translations/kencfs_cs_CZ.qm
%{_datadir}/kencfs-plasma/translations/kencfs_it_IT.qm
%{_datadir}/kencfs-plasma/translations/kencfs_ro_RO.qm
%{_datadir}/kencfs-plasma/translations/kencfs_ru_RU.qm

#--------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}a
%patch0 -p1

# Russian locale
tar -xvzf %{SOURCE1}

%build
%qmake_qt5
%make

%install
%makeinstall_qt INSTALL_ROOT=%{buildroot}

sed 's|Name=KEncFS-Plasma|Name=KEncFS|' -i %{buildroot}%{_datadir}/applications/kencfs-plasma.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2573 |21cr|kepas-0.9.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Easy Publish and Share
Name:		kepas
Version: 	0.9.3
Release: 	6
Source0: 	http://kent.dl.sourceforge.net/sourceforge/kepas/%name-%version.tar.bz2
Patch0:		kepas-0.9.3-linking.patch
License: 	GPLv2+
Group: 		Networking/Other
Url: 		http://www.kde-apps.org/content/show.php?content=73968
BuildRequires: 	kdelibs4-devel


%description 
Kepas is a zeroconf KDE4 filetransfer tool. 
It discovers your local LAN for buddies (KDNSSD) and lets you transfer
files or klipper entries from a trayicon or via drag 'n drop with the
kepas plasmoid.

Current features: 

* Run Kepas as Plasmoid or Trayicon
* Zeroconf buddy discovery in your LAN (KDNSSD) 
* Filetransfer between buddies (kepas or giver)
* Filetransfer to kopete ICQ contacts 
* Filetransfer to kopete Jabber contacts
* Transfer of klipper entries 
* Activate received klipper entries 
* Drag 'n Drop Files on the kepas Plasmoid 
* Configure the destination folder and nickname
* Start a Public Folder (KPF)
* Monitor your Public Folders
* available Public Folders are shown on Buddy discovery

%files 
%doc AUTHORS 
%{_kde_bindir}/*
%{_kde_libdir}/*.so
%{_kde_appsdir}/plasma/plasma.notifyrc
%{_kde_appsdir}/%name
%{_kde_libdir}/kde4/plasma_applet_kepas.so
%{_kde_applicationsdir}/*.desktop
%{_kde_iconsdir}/*/*/*/*
%{_kde_services}/plasma-applet-kepas.desktop

#--------------------------------------------------------------------
%prep
%setup -q -n %name-%version
%patch0 -p1

%build
%cmake_kde4
%make

%install
%{makeinstall_std} -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2574 |21cr|kerneloops-0.12-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to automatically collect and submit kernel crash signatures
Name:		kerneloops
Version:	0.12
Release:	12
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.kerneloops.org
Source0:	http://www.kerneloops.org/download/%{name}-%{version}.tar.gz
###bor###Source1:	kerneloops.service
# (tpg) https://bugzilla.redhat.com/show_bug.cgi?id=479580
###bor###Patch0:	kerneloops-0.12-dbus-init.patch
Patch1:		kerneloops-0.12-format_not_a_string_literal_and_no_format_arguments.patch
Patch2:		kerneloops-0.12-makefile.patch
Patch3:		kerneloops-0.12-libnotify.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libnotify)
Requires(post,preun):	rpm-helper

%description
This package contains the tools to collect kernel crash signatures,
and to submit them to the kerneloops.org website where the kernel
crash signatures get collected and grouped for presentation to the
Linux kernel developers.

%files -f %{name}.lang
%doc Changelog
%config(noreplace) %{_sysconfdir}/kerneloops.conf
%{_initrddir}/%{name}
%{_sbindir}/%{name}
%{_bindir}/kerneloops-applet
%{_datadir}/kerneloops
###bor###%{_datadir}/dbus-1/system-services/*.service
%{_sysconfdir}/dbus-1/system.d/kerneloops.dbus
%{_sysconfdir}/xdg/autostart/kerneloops-applet.desktop
%{_mandir}/man8/kerneloops.8.*

%post
%_post_service kerneloops

%preun
%_preun_service kerneloops

#----------------------------------------------------------------------------

%prep
%setup -q
###bor###%%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p0

%build
%serverbuild_hardened
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall_std
mkdir -m 0755 -p %{buildroot}%{_initrddir}
install -p -m 0755 kerneloops.init %{buildroot}%{_initrddir}/%{name}

###bor###mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services
###bor###install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/dbus-1/system-services/org.kerneloops.submit.service

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2575 |21cr|kernel-source-linux-crypto-1-0.git36de1c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 36de1c8a2833aecb0d5fa0c5d141c272af102e3e
%define commit_short %(echo %{commit} | head -c6)

%define oname linux-crypto

Summary:	This is a set of Linux kernel modules implementing GOST cryptographic algorithms
Name:		kernel-source-linux-crypto
Version:	1
Release:	0.git%{commit_short}.1
# license for kernel modules only
License:	GPL
Group:		System/Kernel and hardware
Url:		https://github.com/GostCrypt/linux-crypto
Source0:	https://github.com/GostCrypt/%{oname}/archive/%{commit}.tar.gz?/%{oname}-%{commit}.tar.gz
BuildArch:	noarch

%description
This is a set of Linux kernel modules implementing GOST cryptographic algorithms:
GOST 28147 cipher (RFC 5830)
GOST 28147 "Imitovstavka" (MAC mode) (RFC 5830)
GOST R 34.11-94 digest (RFC 5831)
HMAC using GOST R 34.11-94 (RFC 4357)
GOST R 34.12-2015 ciphers (Magma and Kuznyechik) (RFC 7801)
CMAC using GOST R 34.12-2015 (as required by GOST R 34.13-2015)
GOST R 34.11-2012 digest is provided from external source, developed by Vitaly Chikunov.


%files
%dir %{_usrsrc}/%{oname}-%{version}-%{release}
%dir %{_usrsrc}/%{oname}-%{version}-%{release}/crypto
%{_usrsrc}/%{oname}-%{version}-%{release}/*.c
%{_usrsrc}/%{oname}-%{version}-%{release}/*.h
%{_usrsrc}/%{oname}-%{version}-%{release}/Makefile
%{_usrsrc}/%{oname}-%{version}-%{release}/crypto/*.h

#------------------------------------------------------------------
%package -n dkms-%{oname}
Summary:                %oname Kernel drivers as DKMS
Requires:               %{name} = %{EVRD}
Requires(post,preun):   dkms
Requires(post):         %{name} = %{EVRD}

%description -n dkms-%{oname}
dkms for %{name}


%files -n dkms-%{oname}
/usr/src/%{oname}-%{version}-%{release}/dkms.conf

%post -n dkms-%{oname}
set -x
dkms --rpm_safe_upgrade add -m %{oname} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m   %{oname} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{oname} -v %{version}-%{release} -k $kk || :
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{oname}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
set -x
rmmod %{oname} >/dev/null 2>&1 || :
dkms --rpm_safe_upgrade remove -m %{oname} -v %{version}-%{release} --all || :


#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{commit}

%install
mkdir -p %{buildroot}%{_usrsrc}/%{oname}-%{version}-%{release}/crypto
cat <<EOF > %{buildroot}%{_usrsrc}/%{oname}-%{version}-%{release}/dkms.conf
PACKAGE_NAME="%{oname}"
PACKAGE_VERSION="%{version}-%{release}"
CLEAN="make clean"
AUTOINSTALL="yes"
MAKE[0]="make -C \${kernel_source_dir} M=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build"
DEST_MODULE_LOCATION[0]=/kernel/crypto/%{oname}

BUILT_MODULE_NAME[0]="magma_generic"
BUILT_MODULE_LOCATION[0]="./"
DEST_MODULE_LOCATION[0]="/kernel/3rdparty/gost_crypt"

BUILT_MODULE_NAME[1]="kuznyechik_generic"
BUILT_MODULE_LOCATION[1]="./"
DEST_MODULE_LOCATION[1]="/kernel/3rdparty/gost_crypt"

BUILT_MODULE_NAME[2]="gosthash94_generic"
BUILT_MODULE_LOCATION[2]="./"
DEST_MODULE_LOCATION[2]="/kernel/3rdparty/gost_crypt"

BUILT_MODULE_NAME[3]="gost28147_generic"
BUILT_MODULE_LOCATION[3]="./"
DEST_MODULE_LOCATION[3]="/kernel/3rdparty/gost_crypt"

BUILT_MODULE_NAME[4]="gost-test"
BUILT_MODULE_LOCATION[4]="./"
DEST_MODULE_LOCATION[4]="/kernel/3rdparty/gost_crypt"

EOF

install -m644 ./{*.c,*.h,Makefile} %{buildroot}%{_usrsrc}/%{oname}-%{version}-%{release}
install -m644 ./crypto/*.h %{buildroot}%{_usrsrc}/%{oname}-%{version}-%{release}/crypto/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2576 |21cr|keurocalc-1.2.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A currency converter and calculator
Name:		keurocalc
Version:	1.2.3
Release:	3
Group:		Graphical desktop/KDE
License:	GPLv2+
Url:		http://opensource.bureau-cornavin.com/%{name}/index.html
Source0:	http://opensource.bureau-cornavin.com/%{name}/sources/%{name}-%{version}.tgz
BuildRequires:	kdelibs4-devel
BuildRequires:	desktop-file-utils

%description
KEuroCalc is a currency converter and calculator centered on the Euro. It can
convert from and to many currencies, either with a fixed conversion rate or a
variable conversion rate. It directly downloads the latest variable rates
through the Internet.


%package -n curconvd
Summary:	A daemon that acts as a currency conversion service over D-Bus
Group:		Graphical desktop/KDE
Requires:	%{name} = %{version}

%description -n curconvd
curconvd is a daemon that acts as a currency conversion service over D-Bus.


%prep
%setup -q


%build
%cmake_kde4
%make


%install
%makeinstall_std -C build

desktop-file-install --dir=%{buildroot}%{_kde_applicationsdir} \
	--add-category='Finance' \
	%{buildroot}%{_kde_applicationsdir}/%{name}.desktop

%find_lang %{name} --with-html


%files -f %{name}.lang
%doc README TODO
%{_kde_bindir}/%{name}
%{_kde_applicationsdir}/%{name}.desktop
%{_kde_appsdir}/%{name}
%{_kde_iconsdir}/hicolor/*/*/*


%files -n curconvd
%doc curconvd/API.txt
%{_kde_bindir}/curconvd
%{_kde_appsdir}/curconvd
%{_datadir}/locale/*/LC_MESSAGES/curconvd.mo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2577 |21cr|kexec-tools-2.0.20-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with eppic

%define makedumpfile_ver 1.6.6

Summary:	The kexec/kdump userspace component
Name:		kexec-tools
Version:	2.0.20
Release:	2
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://kernel.org/pub/linux/utils/kernel/kexec
Source0:	http://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
Source1:	kdumpctl
Source2:	kdump.sysconfig
Source3:	kdump.sysconfig.x86_64
Source4:	kdump.sysconfig.i386
Source5:	kdump.sysconfig.ppc64
Source7:	mkdumprd
Source8:	kdump.conf
Source9:	http://downloads.sourceforge.net/project/makedumpfile/makedumpfile/%{makedumpfile_ver}/makedumpfile-%{makedumpfile_ver}.tar.gz
Source10:	kexec-kdump-howto.txt
Source12:	mkdumprd.8
Source14:	98-kexec.rules
Source15:	kdump.conf.5
Source16:	kdump.service
%if %{with eppic}
Source19:	eppic_050615.tar.gz
%endif
Source20:	kdump-lib.sh
Source21:	kdump-in-cluster-environment.txt
Source22:	kdump-dep-generator.sh
Source24:	kdump-lib-initramfs.sh
Source26:	kdumpctl.8
Source27:	live-image-kdump-howto.txt

#######################################
# These are sources for mkdumpramfs
# Which is currently in development
#######################################
Source100:	dracut-kdump.sh
Source101:	dracut-module-setup.sh
Source102:	dracut-monitor_dd_progress
Source103:	dracut-kdump-error-handler.sh
Source104:	dracut-kdump-emergency.service
Source105:	dracut-kdump-error-handler.service
Source106:	dracut-kdump-capture.service
Source107:	dracut-kdump-emergency.target

# Patches for kexec-tools
Patch101:	kexec-tools-2.0.3-disable-kexec-test.patch
Patch102:	kexec-tools-2.0.20-fix-broken-multiboot2-buliding-for-i386.patch

# Patches for makedumpfile
Patch201:	kexec-tools-2.0.20-makedumpfile-Do-not-proceed-when-get_num_dumpable_cyclic-fails.patch
Patch202:	kexec-tools-2.0.20-makedumpfile-Increase-SECTION_MAP_LAST_BIT-to-4.patch

BuildRequires:	intltool
BuildRequires:	gettext
BuildRequires:	systemd-units
BuildRequires:	bzip2-devel
BuildRequires:	elfutils-devel
BuildRequires:	elfutils-static-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	ncurses-devel
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	liblzo-devel
BuildRequires:	snappy-devel
BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	libtool

Requires:	dracut >= 044
Requires:	ethtool
Requires(pre):	coreutils
Requires(pre):	sed
Requires(post,preun,postun):	systemd-units

%description
kexec-tools provides /sbin/kexec binary that facilitates a new
kernel to boot using the kernel's kexec feature either on a
normal or a panic reboot. This package contains the /sbin/kexec
binary and ancillary utilities that together form the userspace
component of the kernel's kexec feature.

%prep
%setup -q

mkdir -p -m755 kcp
tar -z -x -v -f %{SOURCE9}
%if %{with eppic}
tar -z -x -v -f %{SOURCE19}
%endif

%patch101 -p1
%patch102 -p1

pushd makedumpfile-%{makedumpfile_ver}
%patch201 -p2
%patch202 -p2
popd

%build

export CFLAGS=`echo %{optflags} -Wno-error=format-security`

autoreconf -fvi
%configure \
    --sbindir=/sbin

rm -f kexec-tools.spec.in
# setup the docs
cp %{SOURCE10} .
cp %{SOURCE21} .
cp %{SOURCE27} .

make
%ifarch %{ix86} x86_64 ia64 ppc64
%if %{with eppic}
make -C eppic/libeppic
%endif

make -C makedumpfile-%{makedumpfile_ver} LINKTYPE=dynamic USELZO=on USESNAPPY=on

%if %{with eppic}
make -C makedumpfile-%{makedumpfile_ver} LDFLAGS="-I../eppic/libeppic -L../eppic/libeppic" eppic_makedumpfile.so
%endif
%endif


%install
%makeinstall_std
mkdir -p -m755 %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p -m755 %{buildroot}%{_localstatedir}/crash
mkdir -p -m755 %{buildroot}%{_mandir}/man8/
mkdir -p -m755 %{buildroot}%{_mandir}/man5/
mkdir -p -m755 %{buildroot}%{_docdir}
mkdir -p -m755 %{buildroot}%{_datadir}/kdump
mkdir -p -m755 %{buildroot}%{_sysconfdir}/udev/rules.d
mkdir -p %{buildroot}%{_unitdir}
mkdir -p -m755 %{buildroot}%{_bindir}
mkdir -p -m755 %{buildroot}%{_libdir}
mkdir -p -m755 %{buildroot}%{_prefix}/lib/kdump
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/kdumpctl

%ifarch x86_64
%define SYSCONFIG %{SOURCE3}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE3}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE2}
%else

%ifarch %{ix86}
%define SYSCONFIG %{SOURCE4}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE4}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE2}
%else

%ifarch ppc64
%define SYSCONFIG %{SOURCE5}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE5}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE2}
%else
%endif
%endif
%endif

install -m 644 %{SYSCONFIG} %{buildroot}%{_sysconfdir}/sysconfig/kdump


install -m 755 %{SOURCE7} %{buildroot}/sbin/mkdumprd
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/kdump.conf
install -m 644 kexec/kexec.8 %{buildroot}%{_mandir}/man8/kexec.8
install -m 644 %{SOURCE12} %{buildroot}%{_mandir}/man8/mkdumprd.8
install -m 644 %{SOURCE26} %{buildroot}%{_mandir}/man8/kdumpctl.8
install -m 755 %{SOURCE20} %{buildroot}%{_prefix}/lib/kdump/kdump-lib.sh
install -m 755 %{SOURCE24} %{buildroot}%{_prefix}/lib/kdump/kdump-lib-initramfs.sh
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/udev/rules.d/98-kexec.rules
install -m 644 %{SOURCE15} %{buildroot}%{_mandir}/man5/kdump.conf.5
install -m 644 %{SOURCE16} %{buildroot}%{_unitdir}/kdump.service
install -m 755 -D %{SOURCE22} %{buildroot}%{_prefix}/lib/systemd/system-generators/kdump-dep-generator.sh

%ifarch %{ix86} x86_64 ia64 ppc64
install -m 755 makedumpfile-%{makedumpfile_ver}/makedumpfile %{buildroot}/sbin/makedumpfile
install -m 644 makedumpfile-%{makedumpfile_ver}/makedumpfile.8.gz %{buildroot}%{_mandir}/man8/makedumpfile.8.gz
install -m 644 makedumpfile-%{makedumpfile_ver}/makedumpfile.conf.5.gz %{buildroot}%{_mandir}/man5/makedumpfile.conf.5.gz
install -m 644 makedumpfile-%{makedumpfile_ver}/makedumpfile.conf %{buildroot}%{_sysconfdir}/makedumpfile.conf.sample

%if %{with eppic}
install -m 755 makedumpfile-%{makedumpfile_ver}/eppic_makedumpfile.so %{buildroot}%{_libdir}/eppic_makedumpfile.so
mkdir -p %{buildroot}/usr/share/makedumpfile/eppic_scripts/
install -m 644 makedumpfile-%{makedumpfile_ver}/eppic_scripts/* %{buildroot}/usr/share/makedumpfile/eppic_scripts/
%endif
%endif

%define remove_dracut_prefix() %(echo -n %1|sed 's/.*dracut-//g')

# deal with dracut modules
mkdir -p -m755 %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase
cp %{SOURCE100} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE100}}
cp %{SOURCE101} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE101}}
cp %{SOURCE102} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE102}}
cp %{SOURCE103} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE103}}
cp %{SOURCE104} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE104}}
cp %{SOURCE105} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE105}}
cp %{SOURCE106} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE106}}
cp %{SOURCE107} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE107}}
chmod 755 %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE100}}
chmod 755 %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE101}}


%define dracutlibdir %{_prefix}/lib/dracut
#and move the custom dracut modules to the dracut directory
mkdir -p %{buildroot}/%{dracutlibdir}/modules.d/
mv %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/* %{buildroot}/%{dracutlibdir}/modules.d/


%post
%systemd_post kdump.service

touch /etc/kdump.conf

# This portion of the script is temporary.  Its only here
# to fix up broken boxes that require special settings 
# in /etc/sysconfig/kdump.  It will be removed when 
# These systems are fixed.

if [ -d /proc/bus/mckinley ]
then
	# This is for HP zx1 machines
	# They require machvec=dig on the kernel command line
	sed -e's/\(^KDUMP_COMMANDLINE_APPEND.*\)\("$\)/\1 machvec=dig"/' \
	/etc/sysconfig/kdump > /etc/sysconfig/kdump.new
	mv /etc/sysconfig/kdump.new /etc/sysconfig/kdump
elif [ -d /proc/sgi_sn ]
then
	# This is for SGI SN boxes
	# They require the --noio option to kexec 
	# since they don't support legacy io
	sed -e's/\(^KEXEC_ARGS.*\)\("$\)/\1 --noio"/' \
	/etc/sysconfig/kdump > /etc/sysconfig/kdump.new
	mv /etc/sysconfig/kdump.new /etc/sysconfig/kdump
fi


%postun
%systemd_postun_with_restart kdump.service

%preun
%systemd_preun kdump.service


%files
/sbin/*
%{_bindir}/*
%{_datadir}/kdump
%{_prefix}/lib/kdump
%ifarch %{ix86} x86_64 ppc64
%{_sysconfdir}/makedumpfile.conf.sample
%endif
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/kdump
%config(noreplace,missingok) %{_sysconfdir}/kdump.conf
%config %{_sysconfdir}/udev/rules.d/*
%{dracutlibdir}/modules.d/*
%dir %{_localstatedir}/crash
%{_mandir}/man8/*
%{_mandir}/man5/*
%{_unitdir}/kdump.service
%{_prefix}/lib/systemd/system-generators/kdump-dep-generator.sh
%doc News
%doc COPYING
%doc TODO
%doc kexec-kdump-howto.txt
%doc kdump-in-cluster-environment.txt
%doc live-image-kdump-howto.txt
%ifarch %{ix86} x86_64 ppc64
%if %{with eppic}
%{_libdir}/eppic_makedumpfile.so
/usr/share/makedumpfile/eppic_scripts/
%endif
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2578 |21cr|kexis-0.2.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lossless WAV file compressor
Name:		kexis
Version:	0.2.2
Release:	5
License:	GPLv2+
Group:		Sound
URL:		http://sourceforge.net/projects/kexis/
Source:		http://etree.org/shnutils/shntool/support/formats/kxs/win32/%{version}/%{name}-%{version}-shntool.tar.gz

%description
Kexis is a lossless WAV file compressor. It encodes and decodes files in
kxs file format.

Kexis' main goal is to develop prediction and encoding schemes to minimize
compressed file size. Kexis strives to be the premier lossless sound encoder.

This version is patched with shntool patch.

%files
%doc COPYING README
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-shntool

%build
%make PROFILE_OPTS="%{optflags}"
mv GPL.txt COPYING
mv docs/README.txt README

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2579 |21cr|keybinder-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A library for registering global keyboard shortcuts
Name:		keybinder
Version:	0.3.0
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://kaizer.se/wiki/keybinder/
Source0:	http://kaizer.se/publicfiles/keybinder/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	python-devel
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(pygtk-2.0)
BuildRequires:	pkgconfig(pygobject-2.0)
BuildRequires:	pkgconfig(lua) < 5.2

%description
Keybinder is a library for registering global keyboard shortcuts.
Keybinder works with GTK-based applications using the X Window System.

The library contains:
- A C library, libkeybinder
- Lua bindings, lua-keybinder
- Python bindings, python-keybinder
- An examples directory with programs in C, Lua, Python and Vala.

%files
%doc NEWS AUTHORS README
%{_datadir}/gtk-doc/html/keybinder/annotation-glossary.html
%{_datadir}/gtk-doc/html/keybinder/api-index-full.html
%{_datadir}/gtk-doc/html/keybinder/ch01.html
%{_datadir}/gtk-doc/html/keybinder/deprecated-api-index.html
%{_datadir}/gtk-doc/html/keybinder/home.png
%{_datadir}/gtk-doc/html/keybinder/index.html
%{_datadir}/gtk-doc/html/keybinder/index.sgml
%{_datadir}/gtk-doc/html/keybinder/keybinder-keybinder.html
%{_datadir}/gtk-doc/html/keybinder/keybinder.devhelp2
%{_datadir}/gtk-doc/html/keybinder/left.png
%{_datadir}/gtk-doc/html/keybinder/object-tree.html
%{_datadir}/gtk-doc/html/keybinder/right.png
%{_datadir}/gtk-doc/html/keybinder/style.css
%{_datadir}/gtk-doc/html/keybinder/up.png

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc  NEWS AUTHORS README
%{_libdir}/libkeybinder.so.%{major}*


#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed when building
applications based on %{name}.

%files -n %{devname}
%doc NEWS AUTHORS README
%{_includedir}/keybinder.h
%{_libdir}/lua/*/keybinder.so
%{_libdir}/libkeybinder.so
%{_libdir}/pkgconfig/keybinder.pc

#----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	Python bindings for %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	pygtk2.0
Requires:	python-gobject

%description -n python-%{name}
This package contains python bindings for keybinder.

%files -n python-%{name}
%doc NEWS AUTHORS README
%{py_platsitedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static --enable-python
%make

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2580 |21cr|keyfuzz-0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	keyfuzz
Summary: 	Keycode translator for multimedia keyboards
Version: 	0.2
Release: 	9

Source:		%{name}-%{version}.tar.bz2
URL:		http://0pointer.de/lennart/projects/keyfuzz/
License:	GPL
Group:		System/Configuration/Hardware
BuildRequires:	imagemagick
BuildRequires:  lynx

%description
You may use keyfuzz to manipulate the scancode/keycode translation tables of
keyboard drivers supporting the Linux input layer API (as included in Linux
2.6). This is useful for fixing the translation tables of multimedia keyboards
or laptop keyboards with special keys. keyfuzz is not a daemon like Gnome acme
which reacts on special hotkeys but a tool to make non-standard keyboards
compatible with such daemons. keyfuzz should be run once at boot time, the
modifications it makes stay active after the tool quits until reboot. keyfuzz
does not interact directly with XFree86. However, newer releases of the latter
(4.1 and above) rely on the Linux input API, so they take advantage of the
fixed translation tables.

%prep
%setup -q

%build
%configure
%make
										
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README doc/*.html doc/*.css
%{_sbindir}/%name
%{_mandir}/man8/*
%{_sysconfdir}/init.d/*
%{_sysconfdir}/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2581 |21cr|keynote-2.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 0
%define libname %mklibname keynote %{major}
%define devname %mklibname keynote -d

Summary:	Decentralized Trust-Management system
Name:		keynote
Version:	2.3
Release:	11
License:	BSD
Group:		System/Libraries
Url:		http://www.cis.upenn.edu/~keynote/
Source0:	http://www.cis.upenn.edu/~keynote/Code/keynote-%{version}.tar.bz2
Patch0:		keynote_2.3-11.diff.bz2
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(openssl)

%description
The KeyNote architecture and language are useful as building blocks for the
trust management aspects of a variety of Internet protocols and services.

This package contains the keynote binary used to generate and verify
KeyNote assertions.

%files
%doc AUTHORS COPYING HOWTO.add.crypto LICENSE README TODO doc/rfc*.txt
%attr(0755,root,root) %{_bindir}/keynote
%{_mandir}/man1/*
%{_mandir}/man4/*
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Decentralized Trust-Management system, shared library
Group:		System/Libraries

%description -n %{libname}
The KeyNote architecture and language are useful as building blocks for the
trust management aspects of a variety of Internet protocols and services.

%files -n %{libname}
%{_libdir}/libkeynote.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Decentralized Trust-Management system, development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}keynote0-devel < 2.3-9
Obsoletes:	%{_lib}keynote0-devel < 2.3-9

%description -n %{devname}
The KeyNote architecture and language are useful as building blocks for the
trust management aspects of a variety of Internet protocols and services.

This Package contains all the files and documentation needed to use the
KeyNote library in own applications.

%files -n %{devname}
%{_libdir}/libkeynote.so
%{_includedir}/*.*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure

make CFLAGS="%{optflags} -Wall -fcommon"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2582 |21cr|keysmith-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	One-Time Password client for Plasma Mobile
Name:		keysmith
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	keysmith-22.0_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5Location)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	qxmpp-devel
BuildRequires:	perl-devel
BuildRequires:	%{_lib}ZXing-devel
BuildRequires:	pkgconfig(libsodium)

%description
One-Time Password client for Plasma Mobile.

%files -f %{name}.lang
%{_kde5_bindir}/keysmith
%{_kde5_applicationsdir}/org.kde.keysmith.desktop
%{_kde5_datadir}/icons/hicolor/*/*/*
%{_appdatadir}/org.kde.keysmith.appdata.xml

#----------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2583 |21cr|kfaenza-icon-theme-0.8.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Faenza-Cupertino icon theme for KDE
Name:		kfaenza-icon-theme
Version:	0.8.9
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		http://kde-look.org/content/show.php?content=143890
Source0:	http://ompldr.org/vYjR0NQ/%{name}-%{version}.tar.gz
# Inherits
Requires:	faenza-icon-theme
Requires(post,postun):	gtk+2
BuildArch:	noarch

%description
Contains icons for Faenza-Cupertino theme for KDE.

%files
%{_iconsdir}/KFaenza

%post
%update_icon_cache KFaenza

%postun
%clean_icon_cache KFaenza

#----------------------------------------------------------------------------

%prep
%setup -qn KFaenza
rm INSTALL
find . -name ".directory" -exec rm {} \;
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

%build

%install
mkdir -p %{buildroot}%{_iconsdir}/KFaenza
cp -r . %{buildroot}%{_iconsdir}/KFaenza
touch %{buildroot}%{_iconsdir}/KFaenza/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2584 |21cr|kfax-3.3.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A fax viewing program
Name:		kfax
Version: 	3.3.6
Release: 	10
Source0: 	http://fr2.rpmfind.net/linux/KDE/stable/4.0.4/src/extragear/%name-%version-kde4.3.1.tar.bz2
Patch0:		kfax-3.3.6-kde4.3.1-x11.patch
License: 	GPLv2+
Group: 		Graphics
Url: 		http://www.kde.org
BuildRequires: 	kdelibs4-devel
%if %mdkversion >= 200910
Obsoletes:	kdegraphics-kfax < 1:3.5.10-3
%endif
%if %mdkversion >= 200100
Obsoletes:  kdegraphics3-kfax < 1:3.5.10-5
%endif
Conflicts:	kde-l10n < 3.5.9-5

%description 
A program to display raw and tiffed fax images (g3, g3-2d, g4).

%files -f %name.lang
%doc COPYING ChangeLog README
%_kde_bindir/*
%_kde_datadir/applications/kde4/*.desktop
%_kde_appsdir/%name
%_kde_iconsdir/*/*/*/*

#--------------------------------------------------------------------

%prep
%setup -q -n %name-%version-kde4.3.1
%patch0 -p1

%build

%cmake_kde4
%make

%install
cd build
%{makeinstall_std}
cd -

%find_lang %name --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2585 |21cr|kflickr-20100817-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Permit to easily upload photos to your Flickr.com account
Name:		kflickr
Version:	20100817
Release:	4
Group:		Communications
License:	GPLv2+
URL:		http://kflickr.sourceforge.net/
Source0:        http://ovh.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
Patch0:		kflickr-20100817-drop-invalid-de.patch
BuildRequires:  kdelibs4-devel
Requires:	qt4-database-plugin-sqlite
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
KFlickr is a standalone KDE application that allows 
for easy upload of your favourite photos to your Flickr.com account

%prep
%setup -q
%patch0 -p0

%build
%cmake_kde4
%make

%install
rm -rf %{buildroot}

%makeinstall_std -C build

%find_lang %name

%clean
rm -rf %{buildroot}

%files -f %name.lang
%defattr(-,root,root,-)
%_kde_bindir/*
%_kde_applicationsdir/*.desktop
%_kde_appsdir/%name
%_kde_iconsdir/hicolor/*/apps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2586 |21cr|kfoldersync-3.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Folder synchronization and backup tool
Name:		kfoldersync
Version:	3.4.1
Release:	2
License:	GPLv3+
Group:		Archiving/Backup
Url:		https://www.linux-apps.com/p/1127677/
Source0:	https://dl.opendesktop.org/api/files/download/id/1485353737/%{name}-%{version}.tar.xz
Patch0:		kfoldersync-3.4.1-fr.patch
Patch1:		kfoldersync-3.4.1-ru.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Folder synchronization and backup tool for KDE.

%files -f %{name}.lang
%doc README.md COPYING*
%{_kde5_applicationsdir}/%{name}.desktop
%{_kde5_bindir}/%{name}
%{_kde5_iconsdir}/hicolor/*/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2587 |21cr|kgraphviewer-2.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A GraphViz dot graph viewer for KDE
Name:		kgraphviewer
Version:	2.2.0
Release:	3
License:	GPLv2+
Group:		Graphics
Url:		https://gna.org/projects/kgraphviewer
Source0:	ftp://ftp.kde.org/pub/kde/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	graphviz
BuildRequires:	boost-devel
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(libcgraph)
Requires:	graphviz

%description
KGraphViewer is user-friendly KDE application for viewing dot graphs
created for processing with GraphViz. Notable features provided include:

- loading of several graphs in tabs
- bird's-eye graph view
- zooming view
- simple printing
- context menu and toolbar for selecting layout algorithms
- session management

%files -f %{name}.lang
%{_kde_applicationsdir}/*.desktop
%{_kde_appsdir}/*
%{_kde_bindir}/*
%{_kde_datadir}/appdata/%{name}.appdata.xml
%{_kde_datadir}/appdata/%{name}.metainfo.xml
%{_kde_datadir}/config.kcfg/*.kcfg
%{_kde_iconsdir}/*/*/*/*.png
%{_kde_libdir}/kde4/*.so
%{_kde_services}/*.desktop

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
# Wrong major was used
Conflicts:	%{_lib}kgraphviewer3 < 2.2.0
Obsoletes:	%{_lib}kgraphviewer3 < 2.2.0

%description -n %{libname}
This package contains shared library for %{name}.

%files -n %{libname}
%{_kde_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 2.2.0
Obsoletes:	%{name}-devel < 2.2.0

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_kde_includedir}/%{name}
%{_kde_libdir}/libkgraphviewer.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

desktop-file-install --vendor='' \
	--dir %{buildroot}%{_kde_datadir}/applications/kde4/ \
	--remove-key='Encoding' \
	--remove-category='Application' \
	--add-category='Science;Education' \
	%{buildroot}%{_kde_datadir}/applications/kde4/kgraphviewer.desktop \
	%{buildroot}%{_kde_datadir}/applications/kde4/kgrapheditor.desktop

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2588 |21cr|kgtk-0.11.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname KGtk

Summary:	KGtk - Allow to use KDE's file dialogs when run under KDE for GTK apps
Name:		kgtk
Version:	0.11.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde-apps.org/content/show.php/KGtk+%28Use+KDE+Dialogs+in+Gtk+Apps%29?content=36077
Source0:	%{oname}-%{version}.tar.bz2
Source10:	%{name}.rpmlintrc
Patch0:		kgtk-0.11.0-fix-libdir.patch
Patch1:		kgtk-0.11.0-include.patch
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
This is a quick-and-dirty LD_PRELOAD hack that allows *some*
Gtk applications to use KDE's file dialogs when run under KDE.

%files -f kdialogd4.lang
%{_kde_bindir}/kgtk-wrapper
%{_kde_libdir}/kde4/libexec/kdialogd4
%{_kde_libdir}/kgtk/libkgtk2.so
%{_kde_libdir}/kgtk/libkgtk3.so

#--------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1
%patch1 -p0

%build
%cmake_kde4 -DKGTK_KDE4=true
%make

%install
%makeinstall_std -C build

%find_lang kdialogd4

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2589 |21cr|kicad-8.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define shortver %(echo %{version} | cut -d. -f-2)

%define ver2020 6.0.9

%define major 2.0.0
%define libkicad_3dsg %mklibname kicad_3dsg %{major}
%define libkigal %mklibname kigal %{version}
%define devname %mklibname %{name} -d

Summary:	EDA software suite for creation of schematic diagrams and PCBs
Name:		kicad
Version:	8.0.6
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Sciences/Computer science
Url:		https://www.kicad.org
Source0:	https://gitlab.com/kicad/code/kicad/-/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	https://gitlab.com/kicad/services/kicad-doc/-/archive/%{version}/%{name}-doc-%{version}.tar.gz
Source2:	https://gitlab.com/kicad/libraries/kicad-symbols/-/archive/%{version}/%{name}-symbols-%{version}.tar.gz
Source4:	https://gitlab.com/kicad/libraries/kicad-footprints/-/archive/%{version}/%{name}-footprints-%{version}.tar.gz
Source5:	https://gitlab.com/kicad/libraries/kicad-packages3D/-/archive/%{version}/%{name}-packages3D-%{version}.tar.gz
Source6:	https://gitlab.com/kicad/libraries/kicad-packages3D-source/-/archive/%{ver2020}/%{name}-packages3D-source-%{ver2020}.tar.gz
Source8:	https://gitlab.com/kicad/libraries/kicad-templates/-/archive/%{version}/%{name}-templates-%{version}.tar.gz
## Old modules, archived
# 3d-modules
Source9:	packages3D-4.0.7.tar.gz
Source10:	packages3D-source-4.0.7.tar.gz
# modules
Source11:	https://github.com/KiCad/Air_Coils_SML_NEOSID.pretty/archive/4.0.6.tar.gz?/Air_Coils_SML_NEOSID.pretty-4.0.6.tar.gz
Source12:	https://github.com/KiCad/Choke_Axial_ThroughHole.pretty/archive/4.0.6.tar.gz?/Choke_Axial_ThroughHole.pretty-4.0.6.tar.gz
Source13:	https://github.com/KiCad/Choke_Common-Mode_Wurth.pretty/archive/4.0.6.tar.gz?/Choke_Common-Mode_Wurth.pretty-4.0.6.tar.gz
Source14:	https://github.com/KiCad/Choke_Radial_ThroughHole.pretty/archive/4.0.6.tar.gz?/Choke_Radial_ThroughHole.pretty-4.0.6.tar.gz
Source15:	https://github.com/KiCad/Choke_SMD.pretty/archive/4.0.6.tar.gz?/Choke_SMD.pretty-4.0.6.tar.gz
Source16:	https://github.com/KiCad/Choke_Toroid_ThroughHole.pretty/archive/4.0.6.tar.gz?/Choke_Toroid_ThroughHole.pretty-4.0.6.tar.gz
Source17:	https://github.com/KiCad/Filters_HF_Coils_NEOSID.pretty/archive/4.0.6.tar.gz?/Filters_HF_Coils_NEOSID.pretty-4.0.6.tar.gz
Source18:	https://github.com/KiCad/Inductors_NEOSID.pretty/archive/4.0.6.tar.gz?/Inductors_NEOSID.pretty-4.0.6.tar.gz
Source19:	https://github.com/KiCad/Inductors.pretty/archive/4.0.6.tar.gz?/Inductors.pretty-4.0.6.tar.gz
Source20:	https://github.com/KiCad/Mechanical_Sockets.pretty/archive/4.0.6.tar.gz?/Mechanical_Sockets.pretty-4.0.6.tar.gz
Source21:	https://github.com/KiCad/NF-Transformers_ETAL.pretty/archive/4.0.6.tar.gz?/NF-Transformers_ETAL.pretty-4.0.6.tar.gz
Source22:	https://github.com/KiCad/Oddities.pretty/archive/4.0.6.tar.gz?/Oddities.pretty-4.0.6.tar.gz
Source23:	https://github.com/KiCad/Sockets_MOLEX_KK-System.pretty/archive/4.0.6.tar.gz?/Sockets_MOLEX_KK-System.pretty-4.0.6.tar.gz
Source24:	https://github.com/KiCad/Transformers_CHK.pretty/archive/4.0.6.tar.gz?/Transformers_CHK.pretty-4.0.6.tar.gz
Source25:	https://github.com/KiCad/Transformers_SMPS_ThroughHole.pretty/archive/4.0.6.tar.gz?/Transformers_SMPS_ThroughHole.pretty-4.0.6.tar.gz
Source26:	https://github.com/KiCad/Battery_Holders.pretty/archive/4.0.7.tar.gz?/Battery_Holders.pretty-4.0.7.tar.gz
Source27:	https://github.com/KiCad/Buttons_Switches_SMD.pretty/archive/4.0.7.tar.gz?/Buttons_Switches_SMD.pretty-4.0.7.tar.gz
Source28:	https://github.com/KiCad/Buttons_Switches_THT.pretty/archive/4.0.7.tar.gz?/Buttons_Switches_THT.pretty-4.0.7.tar.gz
Source29:	https://github.com/KiCad/Buzzers_Beepers.pretty/archive/4.0.7.tar.gz?/Buzzers_Beepers.pretty-4.0.7.tar.gz
Source30:	https://github.com/KiCad/Capacitors_SMD.pretty/archive/4.0.7.tar.gz?/Capacitors_SMD.pretty-4.0.7.tar.gz
Source31:	https://github.com/KiCad/Capacitors_Tantalum_SMD.pretty/archive/4.0.7.tar.gz?/Capacitors_Tantalum_SMD.pretty-4.0.7.tar.gz
Source32:	https://github.com/KiCad/Capacitors_THT.pretty/archive/4.0.7.tar.gz?/Capacitors_THT.pretty-4.0.7.tar.gz
Source33:	https://github.com/KiCad/Connectors_Card.pretty/archive/4.0.7.tar.gz?/Connectors_Card.pretty-4.0.7.tar.gz
Source34:	https://github.com/KiCad/Connectors_Harwin.pretty/archive/4.0.7.tar.gz?/Connectors_Harwin.pretty-4.0.7.tar.gz
Source35:	https://github.com/KiCad/Connectors_HDMI.pretty/archive/4.0.7.tar.gz?/Connectors_HDMI.pretty-4.0.7.tar.gz
Source36:	https://github.com/KiCad/Connectors_Hirose.pretty/archive/4.0.7.tar.gz?/Connectors_Hirose.pretty-4.0.7.tar.gz
Source37:	https://github.com/KiCad/Connectors_IEC_DIN.pretty/archive/4.0.7.tar.gz?/Connectors_IEC_DIN.pretty-4.0.7.tar.gz
Source38:	https://github.com/KiCad/Connectors_JAE.pretty/archive/4.0.7.tar.gz?/Connectors_JAE.pretty-4.0.7.tar.gz
Source39:	https://github.com/KiCad/Connectors_JST.pretty/archive/4.0.7.tar.gz?/Connectors_JST.pretty-4.0.7.tar.gz
Source40:	https://github.com/KiCad/Connectors_Mini-Universal.pretty/archive/4.0.7.tar.gz?/Connectors_Mini-Universal.pretty-4.0.7.tar.gz
Source41:	https://github.com/KiCad/Connectors_Molex.pretty/archive/4.0.7.tar.gz?/Connectors_Molex.pretty-4.0.7.tar.gz
Source42:	https://github.com/KiCad/Connectors_Multicomp.pretty/archive/4.0.7.tar.gz?/Connectors_Multicomp.pretty-4.0.7.tar.gz
Source43:	https://github.com/KiCad/Connectors_Phoenix.pretty/archive/4.0.7.tar.gz?/Connectors_Phoenix.pretty-4.0.7.tar.gz
Source44:	https://github.com/KiCad/Connectors_Samtec.pretty/archive/4.0.7.tar.gz?/Connectors_Samtec.pretty-4.0.7.tar.gz
Source45:	https://github.com/KiCad/Connectors_TE-Connectivity.pretty/archive/4.0.7.tar.gz?/Connectors_TE-Connectivity.pretty-4.0.7.tar.gz
Source46:	https://github.com/KiCad/Connectors_Terminal_Blocks.pretty/archive/4.0.7.tar.gz?/Connectors_Terminal_Blocks.pretty-4.0.7.tar.gz
Source47:	https://github.com/KiCad/Connectors_WAGO.pretty/archive/4.0.7.tar.gz?/Connectors_WAGO.pretty-4.0.7.tar.gz
Source48:	https://github.com/KiCad/Connectors.pretty/archive/4.0.7.tar.gz?/Connectors.pretty-4.0.7.tar.gz
Source49:	https://github.com/KiCad/Converters_DCDC_ACDC.pretty/archive/4.0.7.tar.gz?/Converters_DCDC_ACDC.pretty-4.0.7.tar.gz
Source50:	https://github.com/KiCad/Crystals.pretty/archive/4.0.7.tar.gz?/Crystals.pretty-4.0.7.tar.gz
Source51:	https://github.com/KiCad/Diodes_SMD.pretty/archive/4.0.7.tar.gz?/Diodes_SMD.pretty-4.0.7.tar.gz
Source52:	https://github.com/KiCad/Diodes_THT.pretty/archive/4.0.7.tar.gz?/Diodes_THT.pretty-4.0.7.tar.gz
Source53:	https://github.com/KiCad/Displays_7-Segment.pretty/archive/4.0.7.tar.gz?/Displays_7-Segment.pretty-4.0.7.tar.gz
Source54:	https://github.com/KiCad/Displays.pretty/archive/4.0.7.tar.gz?/Displays.pretty-4.0.7.tar.gz
Source55:	https://github.com/KiCad/Enclosures.pretty/archive/4.0.7.tar.gz?/Enclosures.pretty-4.0.7.tar.gz
Source56:	https://github.com/KiCad/EuroBoard_Outline.pretty/archive/4.0.7.tar.gz?/EuroBoard_Outline.pretty-4.0.7.tar.gz
Source57:	https://github.com/KiCad/Fiducials.pretty/archive/4.0.7.tar.gz?/Fiducials.pretty-4.0.7.tar.gz
Source58:	https://github.com/KiCad/Fuse_Holders_and_Fuses.pretty/archive/4.0.7.tar.gz?/Fuse_Holders_and_Fuses.pretty-4.0.7.tar.gz
Source59:	https://github.com/KiCad/Hall-Effect_Transducers_LEM.pretty/archive/4.0.7.tar.gz?/Hall-Effect_Transducers_LEM.pretty-4.0.7.tar.gz
Source60:	https://github.com/KiCad/Heatsinks.pretty/archive/4.0.7.tar.gz?/Heatsinks.pretty-4.0.7.tar.gz
Source61:	https://github.com/KiCad/Housings_BGA.pretty/archive/4.0.7.tar.gz?/Housings_BGA.pretty-4.0.7.tar.gz
Source62:	https://github.com/KiCad/Housings_CSP.pretty/archive/4.0.7.tar.gz?/Housings_CSP.pretty-4.0.7.tar.gz
Source63:	https://github.com/KiCad/Housings_DFN_QFN.pretty/archive/4.0.7.tar.gz?/Housings_DFN_QFN.pretty-4.0.7.tar.gz
Source64:	https://github.com/KiCad/Housings_DIP.pretty/archive/4.0.7.tar.gz?/Housings_DIP.pretty-4.0.7.tar.gz
Source65:	https://github.com/KiCad/Housings_LCC.pretty/archive/4.0.7.tar.gz?/Housings_LCC.pretty-4.0.7.tar.gz
Source66:	https://github.com/KiCad/Housings_LGA.pretty/archive/4.0.7.tar.gz?/Housings_LGA.pretty-4.0.7.tar.gz
Source67:	https://github.com/KiCad/Housings_PGA.pretty/archive/4.0.7.tar.gz?/Housings_PGA.pretty-4.0.7.tar.gz
Source68:	https://github.com/KiCad/Housings_QFP.pretty/archive/4.0.7.tar.gz?/Housings_QFP.pretty-4.0.7.tar.gz
Source69:	https://github.com/KiCad/Housings_SIP.pretty/archive/4.0.7.tar.gz?/Housings_SIP.pretty-4.0.7.tar.gz
Source70:	https://github.com/KiCad/Housings_SOIC.pretty/archive/4.0.7.tar.gz?/Housings_SOIC.pretty-4.0.7.tar.gz
Source71:	https://github.com/KiCad/Housings_SON.pretty/archive/4.0.7.tar.gz?/Housings_SON.pretty-4.0.7.tar.gz
Source72:	https://github.com/KiCad/Housings_SSOP.pretty/archive/4.0.7.tar.gz?/Housings_SSOP.pretty-4.0.7.tar.gz
Source73:	https://github.com/KiCad/Inductors_SMD.pretty/archive/4.0.7.tar.gz?/Inductors_SMD.pretty-4.0.7.tar.gz
Source74:	https://github.com/KiCad/Inductors_THT.pretty/archive/4.0.7.tar.gz?/Inductors_THT.pretty-4.0.7.tar.gz
Source75:	https://github.com/KiCad/IR-DirectFETs.pretty/archive/4.0.7.tar.gz?/IR-DirectFETs.pretty-4.0.7.tar.gz
Source76:	https://github.com/KiCad/LEDs.pretty/archive/4.0.7.tar.gz?/LEDs.pretty-4.0.7.tar.gz
Source77:	https://github.com/KiCad/Measurement_Points.pretty/archive/4.0.7.tar.gz?/Measurement_Points.pretty-4.0.7.tar.gz
Source78:	https://github.com/KiCad/Measurement_Scales.pretty/archive/4.0.7.tar.gz?/Measurement_Scales.pretty-4.0.7.tar.gz
Source79:	https://github.com/KiCad/Microwave.pretty/archive/4.0.7.tar.gz?/Microwave.pretty-4.0.7.tar.gz
Source80:	https://github.com/KiCad/Modules.pretty/archive/4.0.7.tar.gz?/Modules.pretty-4.0.7.tar.gz
Source81:	https://github.com/KiCad/Mounting_Holes.pretty/archive/4.0.7.tar.gz?/Mounting_Holes.pretty-4.0.7.tar.gz
Source82:	https://github.com/KiCad/Opto-Devices.pretty/archive/4.0.7.tar.gz?/Opto-Devices.pretty-4.0.7.tar.gz
Source83:	https://github.com/KiCad/Oscillators.pretty/archive/4.0.7.tar.gz?/Oscillators.pretty-4.0.7.tar.gz
Source84:	https://github.com/KiCad/PFF_PSF_PSS_Leadforms.pretty/archive/4.0.7.tar.gz?/PFF_PSF_PSS_Leadforms.pretty-4.0.7.tar.gz
Source85:	https://github.com/KiCad/Pin_Headers.pretty/archive/4.0.7.tar.gz?/Pin_Headers.pretty-4.0.7.tar.gz
Source86:	https://github.com/KiCad/Potentiometers.pretty/archive/4.0.7.tar.gz?/Potentiometers.pretty-4.0.7.tar.gz
Source87:	https://github.com/KiCad/Power_Integrations.pretty/archive/4.0.7.tar.gz?/Power_Integrations.pretty-4.0.7.tar.gz
Source88:	https://github.com/KiCad/Relays_SMD.pretty/archive/4.0.7.tar.gz?/Relays_SMD.pretty-4.0.7.tar.gz
Source89:	https://github.com/KiCad/Relays_THT.pretty/archive/4.0.7.tar.gz?/Relays_THT.pretty-4.0.7.tar.gz
Source90:	https://github.com/KiCad/Resistors_SMD.pretty/archive/4.0.7.tar.gz?/Resistors_SMD.pretty-4.0.7.tar.gz
Source91:	https://github.com/KiCad/Resistors_THT.pretty/archive/4.0.7.tar.gz?/Resistors_THT.pretty-4.0.7.tar.gz
Source92:	https://github.com/KiCad/Resistors_Universal.pretty/archive/4.0.7.tar.gz?/Resistors_Universal.pretty-4.0.7.tar.gz
Source93:	https://github.com/KiCad/RF_Antennas.pretty/archive/4.0.7.tar.gz?/RF_Antennas.pretty-4.0.7.tar.gz
Source94:	https://github.com/KiCad/RF_Modules.pretty/archive/4.0.7.tar.gz?/RF_Modules.pretty-4.0.7.tar.gz
Source95:	https://github.com/KiCad/Shielding_Cabinets.pretty/archive/4.0.7.tar.gz?/Shielding_Cabinets.pretty-4.0.7.tar.gz
Source96:	https://github.com/KiCad/SMD_Packages.pretty/archive/4.0.7.tar.gz?/SMD_Packages.pretty-4.0.7.tar.gz
Source97:	https://github.com/KiCad/Socket_Strips.pretty/archive/4.0.7.tar.gz?/Socket_Strips.pretty-4.0.7.tar.gz
Source98:	https://github.com/KiCad/Sockets.pretty/archive/4.0.7.tar.gz?/Sockets.pretty-4.0.7.tar.gz
Source99:	https://github.com/KiCad/Symbols.pretty/archive/4.0.7.tar.gz?/Symbols.pretty-4.0.7.tar.gz
Source100:	https://github.com/KiCad/TerminalBlocks_Phoenix.pretty/archive/4.0.7.tar.gz?/TerminalBlocks_Phoenix.pretty-4.0.7.tar.gz
Source101:	https://github.com/KiCad/TerminalBlocks_WAGO.pretty/archive/4.0.7.tar.gz?/TerminalBlocks_WAGO.pretty-4.0.7.tar.gz
Source102:	https://github.com/KiCad/TO_SOT_Packages_SMD.pretty/archive/4.0.7.tar.gz?/TO_SOT_Packages_SMD.pretty-4.0.7.tar.gz
Source103:	https://github.com/KiCad/TO_SOT_Packages_THT.pretty/archive/4.0.7.tar.gz?/TO_SOT_Packages_THT.pretty-4.0.7.tar.gz
Source104:	https://github.com/KiCad/Transformers_SMD.pretty/archive/4.0.7.tar.gz?/Transformers_SMD.pretty-4.0.7.tar.gz
Source105:	https://github.com/KiCad/Transformers_THT.pretty/archive/4.0.7.tar.gz?/Transformers_THT.pretty-4.0.7.tar.gz
Source106:	https://github.com/KiCad/Transistors_OldSowjetAera.pretty/archive/4.0.7.tar.gz?/Transistors_OldSowjetAera.pretty-4.0.7.tar.gz
Source107:	https://github.com/KiCad/Valves.pretty/archive/4.0.7.tar.gz?/Valves.pretty-4.0.7.tar.gz
Source108:	https://github.com/KiCad/Varistors.pretty/archive/4.0.7.tar.gz?/Varistors.pretty-4.0.7.tar.gz
Source109:	https://github.com/KiCad/Wire_Connections_Bridges.pretty/archive/4.0.7.tar.gz?/Wire_Connections_Bridges.pretty-4.0.7.tar.gz
Source110:	https://github.com/KiCad/Wire_Pads.pretty/archive/4.0.7.tar.gz?/Wire_Pads.pretty-4.0.7.tar.gz
# Need manually fix for files or syntax when update
Source200:	fp-lib-table-modules-nothing-%{version}
Source201:	fp-lib-table-modules-%{version}
Source202:	fp-lib-table-modules-all-%{version}
Source203:	fp-lib-table-modules-old-%{version}
# Help from previous version
Source300:	doc-nl-5.0.2.tar.xz
Patch0:		kicad-7.0.2-nostrip.patch
Patch1:		kicad-8.0.6-default-settings.patch
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	asciidoctor
BuildRequires:	cmake
BuildRequires:	dblatex
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	git
BuildRequires:	perl(Unicode::GCString)
BuildRequires:	po4a
BuildRequires:	python3-wxpython4-kicad
BuildRequires:	source-highlight
BuildRequires:	swig
BuildRequires:	boost-devel
BuildRequires:	glm-devel
BuildRequires:	opencascade-devel
BuildRequires:	wxgtku3.2-devel
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgit2)
BuildRequires:	pkgconfig(ngspice)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
Requires:	electronics-menu
Requires:	python3-wxpython4-kicad
Requires:	%{libkicad_3dsg} = %{EVRD}
Requires:	%{libkigal} = %{EVRD}
Requires:	%{_lib}tbbmalloc2
Requires:	%{_lib}wx_baseu3.2_0
Requires:	%{_lib}wx_baseu_net3.2_0
Requires:	%{_lib}wx_baseu_xml3.2_0
Requires:	%{_lib}wx_gtk3u_aui3.2_0
Requires:	%{_lib}wx_gtk3u_core3.2_0
Requires:	%{_lib}wx_gtk3u_gl3.2_0
Requires:	%{_lib}wx_gtk3u_html3.2_0
Requires:	%{_lib}wx_gtk3u_propgrid3.2_0
Requires:	%{_lib}wx_gtk3u_richtext3.2_0
Requires:	%{_lib}wx_gtk3u_stc3.2_0
Requires:	%{name}-doc = %{EVRD}
Recommends:	%{name}-doc-ru = %{EVRD}
Recommends:	%{name}-modules = %{EVRD}
Recommends:	%{name}-modules-packages3d = %{EVRD}

%description
KiCad is an EDA software to design electronic schematic
diagrams and printed circuit board artwork up to 16 layers.
KiCad is a set of four softwares and a project manager:
- KiCad: project manager
- Eeschema: schematic entry
- Pcbnew: board editor
- Cvpcb: footprint selector for components used in the circuit design
- Gerbview: GERBER viewer (photoplotter documents)

%files -f %{name}.lang
%doc AUTHORS.txt CONTRIBUTING.md README.md
%license LICENSE*
%{_appdatadir}/org.%{name}.%{name}.metainfo.xml
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*.*
%{_datadir}/icons/hicolor/*/mimetypes/application-x-*.*
%{_datadir}/mime/packages/%{name}-gerbers.xml
%{_datadir}/mime/packages/%{name}-%{name}.xml
%{_datadir}/%{name}/demos
%{_datadir}/%{name}/fp-lib-tables/fp-lib-table-modules-*
%{_datadir}/%{name}/plugins
%{_datadir}/%{name}/resources
%{_datadir}/%{name}/schemas
%{_datadir}/%{name}/scripting
%{_datadir}/%{name}/symbols
%{_datadir}/%{name}/template
%dir %{_datadir}/%{name}/3dmodels
%dir %{_datadir}/%{name}/fp-lib-tables
%dir %{_datadir}/%{name}/modules
%{_docdir}/%{name}/%{name}-footprints-*.md
%{_docdir}/%{name}/%{name}-symbols-*.md
%{_docdir}/%{name}/%{name}-templates-*.md
%{_libdir}/%{name}/plugins/3d/libs3d_plugin_*.so
%{py3_platsitedir}/pcbnew.*
%{py3_platsitedir}/_pcbnew.so
%{py3_platsitedir}/__pycache__

%posttrans
echo "

If you need it, install any of the packages:
kicad-modules
kicad-modules-old
kicad-modules-packages3d
kicad-modules-packages3d-old
and rename or delete the file
~/.config/kicad/%{shortver}/fp-lib-table

=== Russian ===

Если требуется, доустановите любой из пакетов:
kicad-modules
kicad-modules-old
kicad-modules-packages3d
kicad-modules-packages3d-old
и переименуйте или удалите файл
~/.config/kicad/%{shortver}/fp-lib-table

"

#----------------------------------------------------------------------------

%package -n %{libkicad_3dsg}
Summary:	KiCad’s scene graph library for 3D Plugins
Group:		System/Libraries

%description -n %{libkicad_3dsg}
It is KiCad’s scene graph library kicad_3dsg for 3D plugins.
All plugins which support model visualization must translate
the model data into a scene graph via this library.

%files -n %{libkicad_3dsg}
%{_libdir}/libkicad_3dsg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libkigal}
Summary:	KiCad’s OpenGL GAL shared library
Group:		System/Libraries

%description -n %{libkigal}
It is KiCad’s OpenGL GAL shared library.

%files -n %{libkigal}
%{_libdir}/libkigal.so.%{version}*
%{_libdir}/libkicommon.so.%{version}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	KiCad development files
Group:		Development/C++
Requires:	%{libkicad_3dsg} = %{EVRD}
Requires:	%{libkigal} = %{EVRD}

%description -n %{devname}
KiCad development files.

%files -n %{devname}
%{_libdir}/libkigal.so
%{_libdir}/libkicommon.so

#----------------------------------------------------------------------------

%package modules
Summary:	Pretty modules for KiCad
Group:		Sciences/Computer science
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description modules
All new *.pretty modules for KiCad.

%files modules
%doc AUTHORS.txt CONTRIBUTING.md README.md
%license LICENSE*
%{_datadir}/%{name}/footprints/Audio_Module.pretty
%{_datadir}/%{name}/footprints/Battery.pretty
%{_datadir}/%{name}/footprints/Button_Switch_Keyboard.pretty
%{_datadir}/%{name}/footprints/Button_Switch_SMD.pretty
%{_datadir}/%{name}/footprints/Button_Switch_THT.pretty
%{_datadir}/%{name}/footprints/Buzzer_Beeper.pretty
%{_datadir}/%{name}/footprints/Calibration_Scale.pretty
%{_datadir}/%{name}/footprints/Capacitor_SMD.pretty
%{_datadir}/%{name}/footprints/Capacitor_Tantalum_SMD.pretty
%{_datadir}/%{name}/footprints/Capacitor_THT.pretty
%{_datadir}/%{name}/footprints/Connector_AMASS.pretty
%{_datadir}/%{name}/footprints/Connector_Amphenol.pretty
%{_datadir}/%{name}/footprints/Connector_Audio.pretty
%{_datadir}/%{name}/footprints/Connector_BarrelJack.pretty
%{_datadir}/%{name}/footprints/Connector_Card.pretty
%{_datadir}/%{name}/footprints/Connector_Coaxial.pretty
%{_datadir}/%{name}/footprints/Connector_DIN.pretty
%{_datadir}/%{name}/footprints/Connector_Dsub.pretty
%{_datadir}/%{name}/footprints/Connector_FFC-FPC.pretty
%{_datadir}/%{name}/footprints/Connector_Harting.pretty
%{_datadir}/%{name}/footprints/Connector_Harwin.pretty
%{_datadir}/%{name}/footprints/Connector_Hirose.pretty
%{_datadir}/%{name}/footprints/Connector_IDC.pretty
%{_datadir}/%{name}/footprints/Connector_JAE.pretty
%{_datadir}/%{name}/footprints/Connector_JST.pretty
%{_datadir}/%{name}/footprints/Connector_Molex.pretty
%{_datadir}/%{name}/footprints/Connector_PCBEdge.pretty
%{_datadir}/%{name}/footprints/Connector_Phoenix_GMSTB.pretty
%{_datadir}/%{name}/footprints/Connector_Phoenix_MC_HighVoltage.pretty
%{_datadir}/%{name}/footprints/Connector_Phoenix_MC.pretty
%{_datadir}/%{name}/footprints/Connector_Phoenix_MSTB.pretty
%{_datadir}/%{name}/footprints/Connector_Phoenix_SPT.pretty
%{_datadir}/%{name}/footprints/Connector_PinHeader_1.00mm.pretty
%{_datadir}/%{name}/footprints/Connector_PinHeader_1.27mm.pretty
%{_datadir}/%{name}/footprints/Connector_PinHeader_2.00mm.pretty
%{_datadir}/%{name}/footprints/Connector_PinHeader_2.54mm.pretty
%{_datadir}/%{name}/footprints/Connector_Pin.pretty
%{_datadir}/%{name}/footprints/Connector_PinSocket_1.00mm.pretty
%{_datadir}/%{name}/footprints/Connector_PinSocket_1.27mm.pretty
%{_datadir}/%{name}/footprints/Connector_PinSocket_2.00mm.pretty
%{_datadir}/%{name}/footprints/Connector_PinSocket_2.54mm.pretty
%{_datadir}/%{name}/footprints/Connector.pretty
%{_datadir}/%{name}/footprints/Connector_RJ.pretty
%{_datadir}/%{name}/footprints/Connector_Samtec_HLE_SMD.pretty
%{_datadir}/%{name}/footprints/Connector_Samtec_HLE_THT.pretty
%{_datadir}/%{name}/footprints/Connector_Samtec_HPM_THT.pretty
%{_datadir}/%{name}/footprints/Connector_Samtec_HSEC8.pretty
%{_datadir}/%{name}/footprints/Connector_Samtec_MicroMate.pretty
%{_datadir}/%{name}/footprints/Connector_Samtec_MicroPower.pretty
%{_datadir}/%{name}/footprints/Connector_Samtec.pretty
%{_datadir}/%{name}/footprints/Connector_SATA_SAS.pretty
%{_datadir}/%{name}/footprints/Connector_Stocko.pretty
%{_datadir}/%{name}/footprints/Connector_TE-Connectivity.pretty
%{_datadir}/%{name}/footprints/Connector_USB.pretty
%{_datadir}/%{name}/footprints/Connector_Video.pretty
%{_datadir}/%{name}/footprints/Connector_Wago.pretty
%{_datadir}/%{name}/footprints/Connector_Wire.pretty
%{_datadir}/%{name}/footprints/Connector_Wuerth.pretty
%{_datadir}/%{name}/footprints/Converter_ACDC.pretty
%{_datadir}/%{name}/footprints/Converter_DCDC.pretty
%{_datadir}/%{name}/footprints/Crystal.pretty
%{_datadir}/%{name}/footprints/Diode_SMD.pretty
%{_datadir}/%{name}/footprints/Diode_THT.pretty
%{_datadir}/%{name}/footprints/Display_7Segment.pretty
%{_datadir}/%{name}/footprints/Display.pretty
%{_datadir}/%{name}/footprints/Ferrite_THT.pretty
%{_datadir}/%{name}/footprints/Fiducial.pretty
%{_datadir}/%{name}/footprints/Filter.pretty
%{_datadir}/%{name}/footprints/Fuse.pretty
%{_datadir}/%{name}/footprints/Heatsink.pretty
%{_datadir}/%{name}/footprints/Inductor_SMD.pretty
%{_datadir}/%{name}/footprints/Inductor_SMD_Wurth.pretty
%{_datadir}/%{name}/footprints/Inductor_THT.pretty
%{_datadir}/%{name}/footprints/Inductor_THT_Wurth.pretty
%{_datadir}/%{name}/footprints/Jumper.pretty
%{_datadir}/%{name}/footprints/LED_SMD.pretty
%{_datadir}/%{name}/footprints/LED_THT.pretty
%{_datadir}/%{name}/footprints/Module.pretty
%{_datadir}/%{name}/footprints/Motors.pretty
%{_datadir}/%{name}/footprints/MountingEquipment.pretty
%{_datadir}/%{name}/footprints/MountingHole.pretty
%{_datadir}/%{name}/footprints/Mounting_Wuerth.pretty
%{_datadir}/%{name}/footprints/NetTie.pretty
%{_datadir}/%{name}/footprints/OptoDevice.pretty
%{_datadir}/%{name}/footprints/Oscillator.pretty
%{_datadir}/%{name}/footprints/Package_BGA.pretty
%{_datadir}/%{name}/footprints/Package_CSP.pretty
%{_datadir}/%{name}/footprints/Package_DFN_QFN.pretty
%{_datadir}/%{name}/footprints/Package_DIP.pretty
%{_datadir}/%{name}/footprints/Package_DirectFET.pretty
%{_datadir}/%{name}/footprints/Package_LCC.pretty
%{_datadir}/%{name}/footprints/Package_LGA.pretty
%{_datadir}/%{name}/footprints/Package_QFP.pretty
%{_datadir}/%{name}/footprints/Package_SIP.pretty
%{_datadir}/%{name}/footprints/Package_SO_J-Lead.pretty
%{_datadir}/%{name}/footprints/Package_SON.pretty
%{_datadir}/%{name}/footprints/Package_SO.pretty
%{_datadir}/%{name}/footprints/Package_TO_SOT_SMD.pretty
%{_datadir}/%{name}/footprints/Package_TO_SOT_THT.pretty
%{_datadir}/%{name}/footprints/Potentiometer_SMD.pretty
%{_datadir}/%{name}/footprints/Potentiometer_THT.pretty
%{_datadir}/%{name}/footprints/Relay_SMD.pretty
%{_datadir}/%{name}/footprints/Relay_THT.pretty
%{_datadir}/%{name}/footprints/Resistor_SMD.pretty
%{_datadir}/%{name}/footprints/Resistor_THT.pretty
%{_datadir}/%{name}/footprints/RF_Antenna.pretty
%{_datadir}/%{name}/footprints/RF_Converter.pretty
%{_datadir}/%{name}/footprints/RF_GPS.pretty
%{_datadir}/%{name}/footprints/RF_GSM.pretty
%{_datadir}/%{name}/footprints/RF_Mini-Circuits.pretty
%{_datadir}/%{name}/footprints/RF_Module.pretty
%{_datadir}/%{name}/footprints/RF.pretty
%{_datadir}/%{name}/footprints/RF_Shielding.pretty
%{_datadir}/%{name}/footprints/RF_WiFi.pretty
%{_datadir}/%{name}/footprints/Rotary_Encoder.pretty
%{_datadir}/%{name}/footprints/Sensor_Audio.pretty
%{_datadir}/%{name}/footprints/Sensor_Current.pretty
%{_datadir}/%{name}/footprints/Sensor_Distance.pretty
%{_datadir}/%{name}/footprints/Sensor_Humidity.pretty
%{_datadir}/%{name}/footprints/Sensor_Motion.pretty
%{_datadir}/%{name}/footprints/Sensor_Pressure.pretty
%{_datadir}/%{name}/footprints/Sensor.pretty
%{_datadir}/%{name}/footprints/Sensor_Voltage.pretty
%{_datadir}/%{name}/footprints/Socket.pretty
%{_datadir}/%{name}/footprints/Symbol.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_4Ucon.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_Altech.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_CUI.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_Dinkle.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_MetzConnect.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_Philmore.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_Phoenix.pretty
%{_datadir}/%{name}/footprints/TerminalBlock.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_RND.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_TE-Connectivity.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_WAGO.pretty
%{_datadir}/%{name}/footprints/TerminalBlock_Wuerth.pretty
%{_datadir}/%{name}/footprints/TestPoint.pretty
%{_datadir}/%{name}/footprints/Transformer_SMD.pretty
%{_datadir}/%{name}/footprints/Transformer_THT.pretty
%{_datadir}/%{name}/footprints/Transistor_Power_Module.pretty
%{_datadir}/%{name}/footprints/Transistor_Power.pretty
%{_datadir}/%{name}/footprints/Valve.pretty
%{_datadir}/%{name}/footprints/Varistor.pretty

%posttrans modules
pushd %{_datadir}/%{name}/fp-lib-tables/
if [ -d %{_datadir}/%{name}/footprints/Battery_Holders.pretty ]; then
	cp -f fp-lib-table-modules-all-%{version} ../template/fp-lib-table
else
	cp -f fp-lib-table-modules-%{version} ../template/fp-lib-table
fi
popd

%postun modules
if ! [ -d %{_datadir}/%{name}/fp-lib-tables ]; then exit 0; fi
pushd %{_datadir}/%{name}/fp-lib-tables/
if [ -d %{_datadir}/%{name}/footprints/Battery_Holders.pretty ]; then
	cp -f fp-lib-table-modules-old-%{version} ../template/fp-lib-table
else
	cp -f fp-lib-table-modules-nothing-%{version} ../template/fp-lib-table
fi
popd

#----------------------------------------------------------------------------

%package modules-old
Summary:	Packages3d modules for KiCad
Group:		Sciences/Computer science
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description modules-old
Old *.pretty modules for KiCad.

%files modules-old
%doc AUTHORS.txt CONTRIBUTING.md README.md
%license LICENSE*
%{_datadir}/%{name}/footprints/Air_Coils_SML_NEOSID.pretty
%{_datadir}/%{name}/footprints/Battery_Holders.pretty
%{_datadir}/%{name}/footprints/Buttons_Switches_SMD.pretty
%{_datadir}/%{name}/footprints/Buttons_Switches_THT.pretty
%{_datadir}/%{name}/footprints/Buzzers_Beepers.pretty
%{_datadir}/%{name}/footprints/Capacitors_SMD.pretty
%{_datadir}/%{name}/footprints/Capacitors_Tantalum_SMD.pretty
%{_datadir}/%{name}/footprints/Capacitors_THT.pretty
%{_datadir}/%{name}/footprints/Choke_Axial_ThroughHole.pretty
%{_datadir}/%{name}/footprints/Choke_Common-Mode_Wurth.pretty
%{_datadir}/%{name}/footprints/Choke_Radial_ThroughHole.pretty
%{_datadir}/%{name}/footprints/Choke_SMD.pretty
%{_datadir}/%{name}/footprints/Choke_Toroid_ThroughHole.pretty
%{_datadir}/%{name}/footprints/Connectors.pretty
%{_datadir}/%{name}/footprints/Connectors_Card.pretty
%{_datadir}/%{name}/footprints/Connectors_Harwin.pretty
%{_datadir}/%{name}/footprints/Connectors_HDMI.pretty
%{_datadir}/%{name}/footprints/Connectors_Hirose.pretty
%{_datadir}/%{name}/footprints/Connectors_IEC_DIN.pretty
%{_datadir}/%{name}/footprints/Connectors_JAE.pretty
%{_datadir}/%{name}/footprints/Connectors_JST.pretty
%{_datadir}/%{name}/footprints/Connectors_Mini-Universal.pretty
%{_datadir}/%{name}/footprints/Connectors_Molex.pretty
%{_datadir}/%{name}/footprints/Connectors_Multicomp.pretty
%{_datadir}/%{name}/footprints/Connectors_Phoenix.pretty
%{_datadir}/%{name}/footprints/Connectors_Samtec.pretty
%{_datadir}/%{name}/footprints/Connectors_TE-Connectivity.pretty
%{_datadir}/%{name}/footprints/Connectors_Terminal_Blocks.pretty
%{_datadir}/%{name}/footprints/Connectors_WAGO.pretty
%{_datadir}/%{name}/footprints/Converters_DCDC_ACDC.pretty
%{_datadir}/%{name}/footprints/Crystals.pretty
%{_datadir}/%{name}/footprints/Diodes_SMD.pretty
%{_datadir}/%{name}/footprints/Diodes_THT.pretty
%{_datadir}/%{name}/footprints/Displays.pretty
%{_datadir}/%{name}/footprints/Displays_7-Segment.pretty
%{_datadir}/%{name}/footprints/Enclosures.pretty
%{_datadir}/%{name}/footprints/EuroBoard_Outline.pretty
%{_datadir}/%{name}/footprints/Fiducials.pretty
%{_datadir}/%{name}/footprints/Filters_HF_Coils_NEOSID.pretty
%{_datadir}/%{name}/footprints/Fuse_Holders_and_Fuses.pretty
%{_datadir}/%{name}/footprints/Hall-Effect_Transducers_LEM.pretty
%{_datadir}/%{name}/footprints/Heatsinks.pretty
%{_datadir}/%{name}/footprints/Housings_BGA.pretty
%{_datadir}/%{name}/footprints/Housings_CSP.pretty
%{_datadir}/%{name}/footprints/Housings_DFN_QFN.pretty
%{_datadir}/%{name}/footprints/Housings_DIP.pretty
%{_datadir}/%{name}/footprints/Housings_LCC.pretty
%{_datadir}/%{name}/footprints/Housings_LGA.pretty
%{_datadir}/%{name}/footprints/Housings_PGA.pretty
%{_datadir}/%{name}/footprints/Housings_QFP.pretty
%{_datadir}/%{name}/footprints/Housings_SIP.pretty
%{_datadir}/%{name}/footprints/Housings_SOIC.pretty
%{_datadir}/%{name}/footprints/Housings_SON.pretty
%{_datadir}/%{name}/footprints/Housings_SSOP.pretty
%{_datadir}/%{name}/footprints/Inductors.pretty
%{_datadir}/%{name}/footprints/Inductors_NEOSID.pretty
%{_datadir}/%{name}/footprints/Inductors_SMD.pretty
%{_datadir}/%{name}/footprints/Inductors_THT.pretty
%{_datadir}/%{name}/footprints/IR-DirectFETs.pretty
%{_datadir}/%{name}/footprints/LEDs.pretty
%{_datadir}/%{name}/footprints/Measurement_Points.pretty
%{_datadir}/%{name}/footprints/Measurement_Scales.pretty
%{_datadir}/%{name}/footprints/Mechanical_Sockets.pretty
%{_datadir}/%{name}/footprints/Microwave.pretty
%{_datadir}/%{name}/footprints/Modules.pretty
%{_datadir}/%{name}/footprints/Mounting_Holes.pretty
%{_datadir}/%{name}/footprints/NF-Transformers_ETAL.pretty
%{_datadir}/%{name}/footprints/Oddities.pretty
%{_datadir}/%{name}/footprints/Opto-Devices.pretty
%{_datadir}/%{name}/footprints/Oscillators.pretty
%{_datadir}/%{name}/footprints/PFF_PSF_PSS_Leadforms.pretty
%{_datadir}/%{name}/footprints/Pin_Headers.pretty
%{_datadir}/%{name}/footprints/Potentiometers.pretty
%{_datadir}/%{name}/footprints/Power_Integrations.pretty
%{_datadir}/%{name}/footprints/Relays_SMD.pretty
%{_datadir}/%{name}/footprints/Relays_THT.pretty
%{_datadir}/%{name}/footprints/Resistors_SMD.pretty
%{_datadir}/%{name}/footprints/Resistors_THT.pretty
%{_datadir}/%{name}/footprints/Resistors_Universal.pretty
%{_datadir}/%{name}/footprints/RF_Antennas.pretty
%{_datadir}/%{name}/footprints/RF_Modules.pretty
%{_datadir}/%{name}/footprints/Shielding_Cabinets.pretty
%{_datadir}/%{name}/footprints/SMD_Packages.pretty
%{_datadir}/%{name}/footprints/Sockets_MOLEX_KK-System.pretty
%{_datadir}/%{name}/footprints/Sockets.pretty
%{_datadir}/%{name}/footprints/Socket_Strips.pretty
%{_datadir}/%{name}/footprints/Symbols.pretty
%{_datadir}/%{name}/footprints/TerminalBlocks_Phoenix.pretty
%{_datadir}/%{name}/footprints/TerminalBlocks_WAGO.pretty
%{_datadir}/%{name}/footprints/TO_SOT_Packages_SMD.pretty
%{_datadir}/%{name}/footprints/TO_SOT_Packages_THT.pretty
%{_datadir}/%{name}/footprints/Transformers_CHK.pretty
%{_datadir}/%{name}/footprints/Transformers_SMD.pretty
%{_datadir}/%{name}/footprints/Transformers_SMPS_ThroughHole.pretty
%{_datadir}/%{name}/footprints/Transformers_THT.pretty
%{_datadir}/%{name}/footprints/Transistors_OldSowjetAera.pretty
%{_datadir}/%{name}/footprints/Valves.pretty
%{_datadir}/%{name}/footprints/Varistors.pretty
%{_datadir}/%{name}/footprints/Wire_Connections_Bridges.pretty
%{_datadir}/%{name}/footprints/Wire_Pads.pretty

%posttrans modules-old
pushd %{_datadir}/%{name}/fp-lib-tables/
if [ -d %{_datadir}/%{name}/footprints/Battery.pretty ]; then
	cp -f fp-lib-table-modules-all-%{version} ../template/fp-lib-table
else
	cp -f fp-lib-table-modules-old-%{version} ../template/fp-lib-table
fi
popd

%postun modules-old
if ! [ -d %{_datadir}/%{name}/fp-lib-tables ]; then exit 0; fi
pushd %{_datadir}/%{name}/fp-lib-tables/
if [ -d %{_datadir}/%{name}/footprints/Battery.pretty ]; then
	cp -f fp-lib-table-modules-%{version} ../template/fp-lib-table
else
	cp -f fp-lib-table-modules-nothing-%{version} ../template/fp-lib-table
fi
popd

#----------------------------------------------------------------------------

%package modules-packages3d
Summary:	Packages3d modules for KiCad
Group:		Sciences/Computer science
Recommends:	%{name} = %{EVRD}
BuildArch:	noarch

%description modules-packages3d
All new *.3dshapes modules for KiCad.

%files modules-packages3d
%doc %{name}-packages3D-%{version}/{CREDITS.md,README.md}
%license %{name}-packages3D-%{version}/LICENSE.md
%{_docdir}/%{name}-packages3D/source-LICENSE.md
%{_docdir}/%{name}-packages3D/source-README.md
%{_datadir}/%{name}/3dmodels/Battery.3dshapes
%{_datadir}/%{name}/3dmodels/Button_Switch_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Button_Switch_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Buzzer_Beeper.3dshapes
%{_datadir}/%{name}/3dmodels/Capacitor_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Capacitor_Tantalum_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Capacitor_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_AMASS.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Audio.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_BarrelJack.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Card.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Coaxial.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_DIN.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Dsub.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_FFC-FPC.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_HDMI.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_IDC.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_JST.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Molex.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Phoenix_GMSTB.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Phoenix_MC_HighVoltage.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Phoenix_MC.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Phoenix_MSTB.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Phoenix_SPT.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Pin.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_PinHeader_1.00mm.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_PinHeader_1.27mm.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_PinHeader_2.00mm.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_PinHeader_2.54mm.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_PinSocket_1.00mm.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_PinSocket_1.27mm.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_PinSocket_2.00mm.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_PinSocket_2.54mm.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_RJ.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Samtec.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Samtec_HPM_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_SATA_SAS.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Stocko.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_TE-Connectivity.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_USB.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Video.3dshapes
%{_datadir}/%{name}/3dmodels/Connector_Wuerth.3dshapes
%{_datadir}/%{name}/3dmodels/Connector.3dshapes
%{_datadir}/%{name}/3dmodels/Converter_ACDC.3dshapes
%{_datadir}/%{name}/3dmodels/Converter_DCDC.3dshapes
%{_datadir}/%{name}/3dmodels/Crystal.3dshapes
%{_datadir}/%{name}/3dmodels/Diode_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Diode_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Display_7Segment.3dshapes
%{_datadir}/%{name}/3dmodels/Display.3dshapes
%{_datadir}/%{name}/3dmodels/Ferrite_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Filter.3dshapes
%{_datadir}/%{name}/3dmodels/Fuse_Holders_and_Fuses.3dshapes
%{_datadir}/%{name}/3dmodels/Fuse.3dshapes
%{_datadir}/%{name}/3dmodels/Heatsink.3dshapes
%{_datadir}/%{name}/3dmodels/Inductor_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Inductor_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Inductor_SMD_Wurth.3dshapes
%{_datadir}/%{name}/3dmodels/Inductor_THT_Wurth.3dshapes
%{_datadir}/%{name}/3dmodels/LED_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/LED_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Module.3dshapes
%{_datadir}/%{name}/3dmodels/Mounting_Wuerth.3dshapes
%{_datadir}/%{name}/3dmodels/MountingEquipment.3dshapes
%{_datadir}/%{name}/3dmodels/MountingHole.3dshapes
%{_datadir}/%{name}/3dmodels/OptoDevice.3dshapes
%{_datadir}/%{name}/3dmodels/Oscillator.3dshapes
%{_datadir}/%{name}/3dmodels/Package_BGA.3dshapes
%{_datadir}/%{name}/3dmodels/Package_DFN_QFN.3dshapes
%{_datadir}/%{name}/3dmodels/Package_DIP.3dshapes
%{_datadir}/%{name}/3dmodels/Package_DirectFET.3dshapes
%{_datadir}/%{name}/3dmodels/Package_LGA.3dshapes
%{_datadir}/%{name}/3dmodels/Package_LCC.3dshapes
%{_datadir}/%{name}/3dmodels/Package_QFP.3dshapes
%{_datadir}/%{name}/3dmodels/Package_SIP.3dshapes
%{_datadir}/%{name}/3dmodels/Package_SO.3dshapes
%{_datadir}/%{name}/3dmodels/Package_SON.3dshapes
%{_datadir}/%{name}/3dmodels/Package_TO_SOT_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Package_TO_SOT_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Package_CSP.3dshapes
%{_datadir}/%{name}/3dmodels/Potentiometer_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Potentiometer_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Potentiometer.3dshapes
%{_datadir}/%{name}/3dmodels/Relay_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Relay_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Resistor_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Resistor_THT.3dshapes
%{_datadir}/%{name}/3dmodels/RF_Antenna.3dshapes
%{_datadir}/%{name}/3dmodels/RF_Converter.3dshapes
%{_datadir}/%{name}/3dmodels/RF_Module.3dshapes
%{_datadir}/%{name}/3dmodels/Sensor_Audio.3dshapes
%{_datadir}/%{name}/3dmodels/Sensor_Current.3dshapes
%{_datadir}/%{name}/3dmodels/Sensor_Voltage.3dshapes
%{_datadir}/%{name}/3dmodels/Sensor_Distance.3dshapes
%{_datadir}/%{name}/3dmodels/Sensor_Pressure.3dshapes
%{_datadir}/%{name}/3dmodels/Sensor.3dshapes
%{_datadir}/%{name}/3dmodels/Sensors.3dshapes
%{_datadir}/%{name}/3dmodels/Symbol.3dshapes
%{_datadir}/%{name}/3dmodels/TerminalBlock_Altech.3dshapes
%{_datadir}/%{name}/3dmodels/TerminalBlock_Phoenix.3dshapes
%{_datadir}/%{name}/3dmodels/TerminalBlock_Wuerth.3dshapes
%{_datadir}/%{name}/3dmodels/TestPoint.3dshapes
%{_datadir}/%{name}/3dmodels/Transformer_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Transformer_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Transistor_Power_Module.3dshapes
%{_datadir}/%{name}/3dmodels/Valve.3dshapes
%{_datadir}/%{name}/3dmodels/Varistor.3dshapes

#----------------------------------------------------------------------------

%package modules-packages3d-old
Summary:	Packages3d modules for KiCad
Group:		Sciences/Computer science
BuildArch:	noarch
Recommends:	%{name} = %{EVRD}

%description modules-packages3d-old
Old *.3dshapes modules for KiCad.

%files modules-packages3d-old
%doc packages3D-4.0.7/{CREDITS.md,README.md}
%license packages3D-4.0.7/LICENSE
%{_docdir}/%{name}-packages3D-old/CREDITS.md
%{_docdir}/%{name}-packages3D-old/LICENSE
%{_docdir}/%{name}-packages3D-old/README.md
%{_docdir}/%{name}-packages3D-old/source-LICENSE
%{_docdir}/%{name}-packages3D-old/source-README.md
%{_datadir}/%{name}/3dmodels/Buttons_Switches_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Capacitors_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Capacitors_Tantalum_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Capacitors_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Connectors_JST.3dshapes
%{_datadir}/%{name}/3dmodels/Connectors_Molex.3dshapes
%{_datadir}/%{name}/3dmodels/Connectors_Phoenix.3dshapes
%{_datadir}/%{name}/3dmodels/Connectors_USB.3dshapes
%{_datadir}/%{name}/3dmodels/Diodes_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/Diodes_ThroughHole.3dshapes
%{_datadir}/%{name}/3dmodels/Displays.3dshapes
%{_datadir}/%{name}/3dmodels/Displays_7-Segment.3dshapes
%{_datadir}/%{name}/3dmodels/Hall-Effect_Transducers_LEM.3dshapes
%{_datadir}/%{name}/3dmodels/Housings_BGA.3dshapes
%{_datadir}/%{name}/3dmodels/Housings_DFN_QFN.3dshapes
%{_datadir}/%{name}/3dmodels/Housings_DIP.3dshapes
%{_datadir}/%{name}/3dmodels/Housings_QFP.3dshapes
%{_datadir}/%{name}/3dmodels/Housings_SOIC.3dshapes
%{_datadir}/%{name}/3dmodels/Housings_SON.3dshapes
%{_datadir}/%{name}/3dmodels/Housings_SSOP.3dshapes
%{_datadir}/%{name}/3dmodels/Inductors_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/LEDs.3dshapes
%{_datadir}/%{name}/3dmodels/Opto-Devices.3dshapes
%{_datadir}/%{name}/3dmodels/Pin_Headers.3dshapes
%{_datadir}/%{name}/3dmodels/Resistors_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/TO_SOT_Packages_SMD.3dshapes
%{_datadir}/%{name}/3dmodels/TO_SOT_Packages_THT.3dshapes
%{_datadir}/%{name}/3dmodels/Valves.3dshapes

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for KiCad
Group:		Documentation
Obsoletes:	%{name}-doc-hu < %{EVRD}
Obsoletes:	%{name}-doc-pt < %{EVRD}
Provides:	%{name}-doc-hu = %{EVRD}
Provides:	%{name}-doc-pt = %{EVRD}
BuildArch:	noarch

%description doc
Documentation and tutorials for KiCad in English.

%files doc
%doc %{name}-doc-%{version}/{AUTHORS_README.adoc,CHEATSHEET.adoc,README.adoc}
%license %{name}-doc-%{version}/LICENSE.adoc
%{_docdir}/%{name}/help/en

#----------------------------------------------------------------------------

%package doc-ca
Summary:	Documentation for KiCad in Catalan
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-ca
BuildArch:	noarch

%description doc-ca
Documentation and tutorials for KiCad in Catalan.

%files doc-ca
%{_docdir}/%{name}/help/ca

#----------------------------------------------------------------------------

%package doc-de
Summary:	Documentation for KiCad in German
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-de
BuildArch:	noarch

%description doc-de
Documentation and tutorials for KiCad in German.

%files doc-de
%{_docdir}/%{name}/help/de

#----------------------------------------------------------------------------

%package doc-es
Summary:	Documentation for KiCad in Spanish
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-es
BuildArch:	noarch

%description doc-es
Documentation and tutorials for KiCad in Spanish.

%files doc-es
%{_docdir}/%{name}/help/es

#----------------------------------------------------------------------------

%package doc-fr
Summary:	Documentation for KiCad in French
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-fr
BuildArch:	noarch

%description doc-fr
Documentation and tutorials for KiCad in French.

%files doc-fr
%{_docdir}/%{name}/help/fr

#----------------------------------------------------------------------------

%package doc-id
Summary:	Documentation for KiCad in Indonesian
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-id
BuildArch:	noarch

%description doc-id
Documentation and tutorials for KiCad in Indonesian.

%files doc-id
%{_docdir}/%{name}/help/id

#----------------------------------------------------------------------------

%package doc-it
Summary:	Documentation for KiCad in Italian
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-it
BuildArch:	noarch

%description doc-it
Documentation and tutorials for KiCad in Italian.

%files doc-it
%{_docdir}/%{name}/help/it

#----------------------------------------------------------------------------

%package doc-ja
Summary:	Documentation for KiCad in Japanese
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-ja
BuildArch:	noarch

%description doc-ja
Documentation and tutorials for KiCad in Japanese.

%files doc-ja
%{_docdir}/%{name}/help/ja

#----------------------------------------------------------------------------

%package doc-nl
Summary:	Documentation for KiCad in Dutch
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-nl
BuildArch:	noarch

%description doc-nl
Documentation and tutorials for KiCad in Dutch.

%files doc-nl
%{_docdir}/%{name}/help/nl

#----------------------------------------------------------------------------

%package doc-pl
Summary:	Documentation for KiCad in Polish
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-pl
BuildArch:	noarch

%description doc-pl
Documentation and tutorials for KiCad in Polish

%files doc-pl
%{_docdir}/%{name}/help/pl

#----------------------------------------------------------------------------

%package doc-ru
Summary:	Documentation for KiCad in Russian
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-ru
BuildArch:	noarch

%description doc-ru
Documentation and tutorials for KiCad in Russian.

%files doc-ru
%{_docdir}/%{name}/help/ru

#----------------------------------------------------------------------------

%package doc-zh
Summary:	Documentation for KiCad in Chinese
Group:		Documentation
Requires:	%{name}-doc = %{EVRD}
Requires:	locales-zh
BuildArch:	noarch

%description doc-zh
Documentation and tutorials for KiCad in Chinese.

%files doc-zh
%{_docdir}/%{name}/help/zh

#----------------------------------------------------------------------------

%prep
%setup -q -a1 -a2 -a4 -a5 -a6 -a8 -a9 -a10
%apply_patches

%build
# Build symbols libraries
pushd %{name}-symbols-%{version}
%cmake
%make
popd

# Build kicad-doc
pushd %{name}-doc-%{version}
%cmake -DBUILD_FORMATS=html
%make
popd

# Build kicad-footprints
pushd %{name}-footprints-%{version}
%cmake
%make
popd

# Build kicad-packages3D
pushd %{name}-packages3D-%{version}
%cmake
%make
popd

# Build kicad-templates
pushd %{name}-templates-%{version}
%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix}
%make
popd

# Build kicad
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo	\
	-DKICAD_BUILD_I18N=ON			\
	-DKICAD_BUILD_QA_TESTS=OFF		\
	-DKICAD_I18N_UNIX_STRICT_PATH=ON	\
	-DKICAD_SCRIPTING=ON			\
	-DKICAD_SCRIPTING_ACTION_MENU=ON	\
	-DKICAD_SCRIPTING_MODULES=ON		\
	-DKICAD_SCRIPTING_PYTHON3=ON		\
	-DKICAD_SCRIPTING_WXPYTHON_PHOENIX=ON	\
	-DKICAD_SPICE=ON			\
	-DKICAD_USE_EGL=ON			\
	-DKICAD_VERSION_EXTRA=%{release}
%make VERBOSE=1

%install
%makeinstall_std -C build

for desktopfile in %{buildroot}%{_datadir}/applications/*.desktop ; do
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications	\
	--remove-category Development			\
	--delete-original				\
	${desktopfile}
done

mkdir -p %{buildroot}%{_docdir}/%{name}
# Install symbols libraries
pushd %{name}-symbols-%{version}
%makeinstall_std -C build
cp -f LICENSE.md %{buildroot}%{_docdir}/%{name}/%{name}-symbols-LICENSE.md
cp -f README.md %{buildroot}%{_docdir}/%{name}/%{name}-symbols-README.md
popd

# Install templates
pushd %{name}-templates-%{version}
%makeinstall_std -C build
cp -f LICENSE.md %{buildroot}%{_docdir}/%{name}/%{name}-templates-LICENSE.md
cp -f README.md %{buildroot}%{_docdir}/%{name}/%{name}-templates-README.md
popd

# Install footprints
pushd %{name}-footprints-%{version}
%makeinstall_std -C build
cp -f CONTRIBUTING.md %{buildroot}%{_docdir}/%{name}/%{name}-footprints-CONTRIBUTING.md
cp -f LICENSE.md %{buildroot}%{_docdir}/%{name}/%{name}-footprints-LICENSE.md
cp -f README.md %{buildroot}%{_docdir}/%{name}/%{name}-footprints-README.md
popd

# Install packages3D
pushd %{name}-packages3D-%{version}
%makeinstall_std -C build
popd

# Install old packages3D
pushd packages3D-4.0.7
cp -rf *.3dshapes %{buildroot}%{_datadir}/%{name}/3dmodels/
mkdir -p %{buildroot}%{_docdir}/%{name}-packages3D-old/
cp -f CREDITS.md LICENSE README.md %{buildroot}%{_docdir}/%{name}-packages3D-old/
popd

# Install packages3D-source
pushd %{name}-packages3D-source-%{ver2020}
cp -rf *.3dshapes %{buildroot}%{_datadir}/%{name}/3dmodels/
mkdir -p %{buildroot}%{_docdir}/%{name}-packages3D/
cp -f LICENSE.md %{buildroot}%{_docdir}/%{name}-packages3D/source-LICENSE.md
cp -f README.md %{buildroot}%{_docdir}/%{name}-packages3D/source-README.md
popd

# Install old packages3D-source
pushd packages3D-source-4.0.7
cp -rf *.3dshapes %{buildroot}%{_datadir}/%{name}/3dmodels/
cp -f LICENSE %{buildroot}%{_docdir}/%{name}-packages3D-old/source-LICENSE
cp -f README.md %{buildroot}%{_docdir}/%{name}-packages3D-old/source-README.md
popd

# Install kicad-doc
pushd %{name}-doc-%{version}
%makeinstall_std -C build
popd

# We don't have headers
rm -f %{buildroot}%{_libdir}/libkicad_3dsg.so

# Install old modules
mkdir -p %{buildroot}%{_datadir}/%{name}/modules
for S in %{sources}; do
	P=$(basename $S |sed -n 's/\.pretty-.*/.pretty/p')
	[ "$P" ] || continue
	mkdir -p %{buildroot}%{_datadir}/%{name}/footprints/$P
	tar xzf $S --strip-components=1 -C %{buildroot}%{_datadir}/%{name}/footprints/$P
done

# Fix invalid zero-sized pad pinned
sed -i "s/(size 0 0)/(size 1 1)/" %{buildroot}%{_datadir}/%{name}/footprints/Connectors_Samtec.pretty/MECF-*

find %{buildroot}%{_datadir}/%{name}/modules -type f -exec chmod 0644 {} \;
rm -rf %{buildroot}%{_datadir}/%{name}/footprints/*/{.gitattributes,.travis.yml}

cp -f %{SOURCE201} %{buildroot}%{_datadir}/%{name}/template/fp-lib-table
mkdir -p %{buildroot}%{_datadir}/%{name}/fp-lib-tables
ln -s ../fp-lib-tables %{buildroot}%{_datadir}/%{name}/template/fp-lib-tables
cp -f %{SOURCE200} %{SOURCE201} %{SOURCE202} %{SOURCE203} %{buildroot}%{_datadir}/%{name}/fp-lib-tables/

# the pcbnew kiface and the python module are actually the same file
if cmp --quiet %{buildroot}%{_bindir}/_pcbnew.kiface %{buildroot}%{py3_puresitedir}/_pcbnew.so; then
	ln -sf %{_bindir}/_pcbnew.kiface %{buildroot}%{py3_puresitedir}/_pcbnew.so
else
	chmod +x %{buildroot}%{_bindir}/_pcbnew.kiface
	chrpath --delete %{buildroot}%{_bindir}/_pcbnew.kiface
fi

# Deregression help for dutch
pushd %{buildroot}%{_docdir}/%{name}/help
tar -xf %{SOURCE300}
popd

chmod -x %{buildroot}%{_datadir}/%{name}/scripting/kicad_pyshell/*.py
chmod -x %{buildroot}%{_datadir}/%{name}/scripting/plugins/*.py
chmod -x %{buildroot}%{_datadir}/%{name}/footprints/Diodes_SMD.pretty/D_SC-80.kicad_mod
chmod -x %{buildroot}%{_datadir}/%{name}/3dmodels/*/*.step
chmod -x %{buildroot}%{_datadir}/%{name}/3dmodels/*/*.wrl

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2590 |21cr|kiconedit-4.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Icon Editor
Name:		kiconedit
Version: 	4.4.0
Release: 	4
Source0: 	http://fr2.rpmfind.net/linux/KDE/stable/%version/src/extragear/%name-%version.tar.bz2
License: 	GPLv2+
Group: 		Graphics
Url: 		http://www.kde.org
BuildRequires: 	kdelibs4-devel
%if %mdkversion < 200900
Obsoletes: 	kdegraphics-kiconedit < 1:3.5.10-3
Conflicts:	kde-l10n < 3.5.9-5
%endif
%if %mdkversion < 200100
Obsoletes:  kdegraphics3-kiconedit < 1:3.5.10-5
%endif

%description 
KDE Icon Editor.

%files -f %name.lang
%doc AUTHORS COPYING COPYING.DOC NEWS
%_kde_bindir/*
%_kde_datadir/applications/kde4/*.desktop
%_kde_appsdir/%name
%_kde_iconsdir/*/*/*/*

#--------------------------------------------------------------------

%prep
%setup -q
sed -i -e 's#<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4\.1\.2-Based Variant V1\.1//EN" "dtd/kdex\.dtd" \[#<!DOCTYPE book PUBLIC "-//KDE//DTD DocBook XML V4.2-Based Variant V1.1//EN" "dtd/kdex.dtd" [#g' doc-translations/*_kiconedit/*/index.docbook
    
%build
%cmake_kde4
%make

%install
cd build
%{makeinstall_std}
cd -

%find_lang %name --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2591 |21cr|kiki-1.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname   KiKi - The Sacrifice
Summary:        Re-implementation by using Godot Engine
Name:           kiki
Version:        1.0.1
Release:        2
Group:          Games/Arcade
License:        MIT
Url:            https://github.com/CSaratakij/jam-2016-remake
Source0:        https://github.com/CSaratakij/jam-2016-remake/archive/v1.0.1-hotfix.tar.gz
BuildRequires:  imagemagick
Requires:       godot2-runner
BuildArch:      noarch

%description
KiKi - The Sacrifice on Global Game Jam 2016 .

%files
%doc README.md LICENSE 
%{_gamesdatadir}/%{name}
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------
%prep
%setup -qn jam-2016-remake-1.0.1-hotfix


%build

%install
# data
install -dm755 %{buildroot}%{_gamesdatadir}/%{name}
find . -type f -name "*.png" -exec convert {} -strip {} \;
pushd src
cp -R -t %{buildroot}%{_gamesdatadir}/%{name} *
popd

# wrapper
install -dm755 %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
godot2-runner -path "%{_gamesdatadir}/%{name}" $@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{name}

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size src/icon.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

#menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{oname}
GenericName=%{oname}
Comment=%{oname}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2592 |21cr|kile-2.9.93-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Integrated LaTeX Environment for KDE5
Name:		kile
Version:	2.9.93
Release:	5
Epoch:		2
License:	GPLv2+
Group:		Publishing
Url:		http://kile.sourceforge.net/
Source0:	http://jaist.dl.sourceforge.net/sourceforge/kile/%{name}-%{version}.tar.bz2
Source1:	kile.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

BuildRequires:	kde5-macros
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	extra-cmake-modules

BuildRequires:  okular-devel
BuildRequires:  pkgconfig(poppler-qt5)
Requires:	plasma5-konsole
Requires:	okular
Requires:	texlive
Requires:	texlive-scheme-full

%description
Kile is an integrated LaTeX Environment for Plasma 5.

%files -f %{name}.lang
%defattr(-,root,root,0755)
%doc AUTHORS ChangeLog README* kile-remote-control.txt
%{_kde5_sysconfdir}/xdg/%{name}.categories
%{_kde5_bindir}/%{name}
%{_kde5_libdir}/libkdeinit5_kile.so
%{_kde5_datadir}/%{name}/
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_datadir}/metainfo/org.kde.%{name}.appdata.xml
%{_kde5_datadir}/kconf_update/%{name}*
%{_kde5_datadir}/config.kcfg/%{name}.kcfg
%{_kde5_datadir}/dbus-1/interfaces/net.sourceforge.%{name}.main.xml
%{_kde5_datadir}/mime/packages/%{name}.xml
%{_kde5_iconsdir}/*/*/*/*
%{_datadir}/doc5/HTML/*/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2593 |21cr|kim-0.9.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	kim4

Name:		kim
Version:	0.9.5
Release:	10
Summary:	Image menu for kde
License:	GPL
Group:		Graphical desktop/KDE
Source0:	%{oname}-%{version}.tar.gz
Patch0:		kim4-0.9.5-fix-icons-compressandresize-desktop-file.patch
Patch1:		kim4-0.9.5-fix-icons-converandrotate-desktop-file.patch
Patch2:		kim4-0.9.5-fix-icons-pulication-desktop-file.patch
URL:		http://bouveyron.free.fr/kim/
Requires:	kdebase4-runtime
Requires:       imagemagick 
BuildArch:	noarch
BuildRequires:	kde4-macros

%description
This is an image Kde servicemenu which allows to:
- compress images,
- resize images,
- convert images,
- rotate images,
- rename images,
- resize and send by mail images,
- and more other actions !
This servicemenu use ImageMagick.

%files
%defattr(-,root,root)
%{_kde_datadir}/apps/kim
%{_kde_datadir}/kde4/services/*
%attr(0755,root,root) %{_kde_bindir}/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{oname}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%build

%install 
rm -fr %{buildroot}
mkdir -p %{buildroot}%{_kde_datadir}/kde4/services/
mkdir -p %{buildroot}/%{_kde_bindir}

chmod 644 src/kim*.desktop
chmod 755 src/bin/kim*
cp src/kim*.desktop %{buildroot}%{_kde_datadir}/kde4/services/
cp src/bin/kim* %{buildroot}/%{_kde_bindir}

mkdir -p %{buildroot}/%{_kde_datadir}/apps/kim
cp COPYING %{buildroot}/%{_kde_datadir}/apps/kim/kim_about.txt
mkdir -p %{buildroot}/%{_kde_datadir}/apps/kim/slideshow/
cp src/slideshow/* %{buildroot}/%{_kde_datadir}/apps/kim/slideshow/
mkdir -p %{buildroot}/%{_kde_datadir}/apps/kim/gallery
cp src/gallery/* %{buildroot}/%{_kde_datadir}/apps/kim/gallery

perl -pi -e "s/\r\n/\n/"  work.css

%clean
rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2594 |21cr|kinescope-downloader-0-0.git6fff69.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6fff692626e3fcdacf6dd5186ac16b7549528e3d
%define commit_short %(echo %{commit} | head -c6)

Summary:	Script to download video from Kinescope
Name:		kinescope-downloader
Version:	0
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		Networking/Other
Url:		https://github.com/Prividen/kinescope-downloader
Source0:	https://github.com/Prividen/kinescope-downloader/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch
Requires:	ffmpeg
Requires:	python3dist(xmltodict)

%description
Script to download video from Kinescope
Usage:
kinescope-downloader <video-id> [video-name]

%files
%license LICENSE
%doc README.md
%{_bindir}/kinescope-downloader

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 kinescope-downloader.py %{buildroot}%{_bindir}/kinescope-downloader
sed -i'' -e '1s,#! /usr/bin/env python3,#!%{__python3},' %{buildroot}%{_bindir}/kinescope-downloader

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2595 |21cr|kio-giobridge-0-0.1349920.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn 1349920

Name:		kio-giobridge
Summary:	KIO-Giobridge is an optional adapter for KIO to use GIO/GVFS
Version:	0
Release:	0.%{svn}.2
Group:		Graphical desktop/KDE
# Unknown but let it be the same as for KDE libs
License:	GPLv2+
Url:		https://wiki.gnome.org/KioGioBridge
# http://websvn.kde.org/trunk/playground/ioslaves/kio-giobridge/
Source0:	%{name}-%{svn}.tar.bz2
# Qt and GTK have symbol conflicts
Patch0:		kio-giobridge-1349920-qtgtk.patch
Patch1:		kio-giobridge-1349920-encoding.patch
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)

%description
The purpose of KIO-Giobridge is to let all desktop applications and file
managers share the same network transparency layer for working with network
file systems like FTP, SFTP, SMB, WEBDAV,... Therefore KDE4, Gtk and 3rd
party applications can access the same file-server resources without logging in
twice or facing other inconsistencies. At the moment we have two incompatible
network transparency systems, running in the same desktop session for different
groups of applications. Also, with the existence of two frameworks, a lot of
3rd party applications were locked out, as they didn't want to decide for one
of them.

KIO-Giobridge is an optional adapter for KIO to use the new GIO/GVFS (the
successor of Gnome-VFS) to handle the protocols mentioned above.  GIO/GVFS has
been chosen, because it's pretty independent from desktop specific libraries,
daemons and toolkits and only depends on D-Bus and GLib. Another advantage of
GIO/GVFS is its "stateful" mount daemons: All the communication to a certain
share is handled by a single mount daemon process. The life-cycle of those
mount daemons is user-controllable (mount/unmount), similar to kernel or FUSE
mounts.

KIO-Giobridge can be enabled/disabled with the kio-giobridge-mgr utility.

%files
%{_kde_bindir}/gvfs-daemon-query
%{_kde_bindir}/kio-giobridge-mgr
%{_kde_bindir}/kiogiobridge-unmount-gvfs
%{_kde_libdir}/kde4/kded_giobridgeremotedirnotify.so
%{_kde_libdir}/kde4/kio_giobridge.so
%{_kde_appsdir}/kio-giobridge-protocols
%{_kde_services}/ServiceMenus/giobridge-remote-unmount.desktop
%{_kde_services}/kded/giobridgeremotedirnotify.desktop
%{_kde_datadir}/mime/packages/giobridge-remote-gvfs-mount.xml

#------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{svn}
%patch0 -p1
%patch1 -p1

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2596 |21cr|kio-gopher-0.1.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define kde_version     4.4.0

Summary: 	kio-gopher
Name: 		kio-gopher
Version: 	0.1.3
Release: 	8
Source:		kio_gopher-%{version}-kde%{kde_version}.tar.bz2
License: 	GPLv2+
Group: 		Graphical desktop/KDE
URL: 		http://kgopher.berlios.de/
BuildRequires:  kdelibs4-devel

%description
This adds support for the gopher protocol to konqueror.
It is still in development.
It has been tested to work with KDE 3.1 and up.
It has not been tested on other KDE versions.

Currently it supports most (if not all) of the gopher protocol.

Support for gopher+ protocol is planned.

Protocol Documentation:
 Gopher:
  http://www.faqs.org/rfcs/rfc1436.html
 Gopher+:
  http://iubio.bio.indiana.edu/soft/util/gopher/Gopher+-spec.text
 Gopher URL:
  http://www.cotse.com/CIE/RFC/1738/16.htm

%files
%defattr(-,root,root)
%doc README  FAQ
%{_kde_libdir}/kde4/*.so
%{_kde_services}/*
%{_kde_datadir}/locale/*/*/kio_gopher.mo

#--------------------------------------------------------------------

%prep
%setup -qn kio_gopher-%{version}-kde%{kde_version}

%build
%cmake_kde4
%make

%install
rm -rf %{buildroot}
%makeinstall_std -C build

%clean
rm -rf $RPM_BUILD_ROOT

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2597 |21cr|kio-locate-0.5.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Locate KIO slave for KDE4
Name:		kio-locate
Version:	0.5.3
Release:	5
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		http://kde-apps.org/content/show.php/kio-locate?content=120965
Source0:	http://kde-apps.org/CONTENT/content-files/120965-kio-locate-%{version}.tar.gz
Patch0:		kio-locate-0.5.3-gcc4.7.patch
BuildRequires:	kdelibs4-devel

%description
Locate KIO slave for KDE4.

%files -f kio_locate.lang
%{_kde_libdir}/kde4/*.so
%{_kde_docdir}/HTML/en/kioslave/locate/*
%{_kde_services}/*.protocol
%{_kde_services}/searchproviders/*.desktop
#--------------------------------------------------------------------

%prep
%setup -qn kio-locate-%{version}
%patch0 -p1

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang kio_locate

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2598 |21cr|kismet-2020.12.R3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion %(echo %{version}| tr . -)

Summary:	802.11b/g network sniffer and network dissector
Name:		kismet
Version:	2020.12.R3
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.kismetwireless.net
Source0:	http://www.kismetwireless.net/code/%{name}-%{oversion}.tar.xz
Patch0:		kismet-include.patch
Patch1:		kismet-install.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	wget
BuildRequires:	protobuf-c
BuildRequires:	python3-setuptools
BuildRequires:	gmp-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libgps)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libprotobuf-c)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libwebsockets)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(sqlite3)
Requires:	wget
Requires:	wireless-tools

%description
Kismet is an 802.11b/g network sniffer and network dissector. It is
capable of sniffing using most wireless cards, automatic network IP
block detection via UDP, ARP, and DHCP packets, Cisco equipment lists
via Cisco Discovery Protocol, weak cryptographic packet logging, and
Ethereal and tcpdump compatible packet dump files. It also includes
the ability to plot detected networks and estimated network ranges on
downloaded maps or user supplied image files.

%files
%doc CHANGELOG LICENSE README.md
%config(noreplace) %{_sysconfdir}/kismet.conf
%config(noreplace) %{_sysconfdir}/kismet_80211.conf
%config(noreplace) %{_sysconfdir}/kismet_alerts.conf
%config(noreplace) %{_sysconfdir}/kismet_filter.conf
%config(noreplace) %{_sysconfdir}/kismet_httpd.conf
%config(noreplace) %{_sysconfdir}/kismet_logging.conf
%config(noreplace) %{_sysconfdir}/kismet_memory.conf
%config(noreplace) %{_sysconfdir}/kismet_uav.conf
%{_bindir}/*
%{_datadir}/%{name}/
%{_libdir}/pkgconfig/kismet.pc
%{python3_sitelib}/Kismet*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oversion}
%patch0 -p0
%patch1 -p0

sed -i 's#\$(prefix)/lib/#%{_libdir}/#g' plugin-*/Makefile

%build
export LDFLAGS="-Wl,--as-needed"
%configure \
    CXXFLAGS="%{optflags} -D__STDC_FORMAT_MACROS"

%make

sed -i s/2019-08-GIT/%{version}/g packaging/kismet.pc

%install
%makeinstall_std INSTUSR="$(id -un)" INSTGRP="$(id -gn)" MANGRP="$(id -gn)"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2599 |21cr|kissfft-131.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define major	131
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Fast Fourier Transform library
Name:		kissfft
Version:	131.1.0
Release:	2
License:	BSD
Group:		System/Libraries
Url:		https://github.com/mborgerding/kissfft
Source0:	https://github.com/mborgerding/kissfft/archive/%{version}.tar.gz?/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	python3-devel
BuildRequires:	python3dist(numpy)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(libpng)

%description
A Fast Fourier Transform based up on the principle, "Keep It Simple, Stupid".
Kiss FFT is a very small, reasonably efficient, mixed radix FFT library that
can use either fixed or floating point data types.

%files
%{_bindir}/fastconv-*
%{_bindir}/fastconvr-*
%{_bindir}/fft-*
%{_bindir}/psdpng-*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast Fourier Transform library
Group:		System/Libraries

%description -n %{libname}
A Fast Fourier Transform based up on the principle, "Keep It Simple, Stupid".
Kiss FFT is a very small, reasonably efficient, mixed radix FFT library that
can use either fixed or floating point data types.

%files -n %{libname}
%{_libdir}/lib%{name}-*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Fast Fourier Transform library
Group:		Development/C++
Provides:	kiss-fft-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for Fast Fourier Transform library.

%files -n %{devname}
%doc CHANGELOG README.md
%license COPYING
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}/%{name}-*.cmake
%{_libdir}/lib%{name}-*.so
%{_libdir}/pkgconfig/%{name}-*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

pushd ..
for type in float double int16_t int32_t; do
cp -rf %{name}-%{version}{,-$type}
done
rm -rf %{name}-%{version}/*
mv -f %{name}-%{version}-* %{name}-%{version}/
popd

%build
for type in float double int16_t int32_t; do
pushd %{name}-%{version}-$type
%cmake -DKISSFFT_DATATYPE=$type
%make
popd
done

%install
for type in float double int16_t int32_t; do
pushd %{name}-%{version}-$type
%makeinstall_std -C build
popd
done

cp -f %{name}-%{version}-float/{CHANGELOG,COPYING,README.md} ./

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2600 |21cr|kitty-0.26.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _empty_manifest_terminate_build 0
%global __python %{__python3}

Name: kitty
Summary: Fast, featureful, GPU based terminal emulator
Version:	0.26.5
Release:	1
Group: System/X11
License: GPLv3
URL: https://github.com/kovidgoyal/kitty
Source0: https://github.com/kovidgoyal/kitty/releases/download/v%{version}/kitty-%{version}.tar.xz

BuildRequires:  python3-devel
BuildRequires:  python3-sphinx
BuildRequires:  python3dist(sphinx-copybutton)
#BuildRequires:  python3dist(sphinx-inline-tabs)
BuildRequires:  imagemagick-devel
BuildRequires:  librsync-devel
BuildRequires:  pkgconfig(gl)
BuildRequires:  fontconfig-devel
BuildRequires:  freetype-devel
BuildRequires:  pkgconfig(harfbuzz)
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(xi)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(libpng)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(libcanberra)

%description
Kitty supports modern terminal features like: graphics, unicode,
true-color, OpenType ligatures, mouse protocol, focus tracking, and
bracketed paste.

Kitty has a framework for "kittens", small terminal programs that can be used
to extend its functionality.

%package doc
Summary:        Documentation for the kitty terminal emulator
License:        GPLv3

%description doc
Documentation for the kitty terminal emulator

%prep
%autosetup -p1

%build
#export CC=%{__cc}
sed -i 's!-pedantic-errors -Werror!!g' setup.py
%{__python3} setup.py linux-package --debug --libdir-name %{_lib}

%install
install -d %{buildroot}/usr
cp -a linux-package/* %{buildroot}/usr

%files
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/kitty-open.desktop
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/kitty.svg
%{_datadir}/terminfo/x/xterm-kitty
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man5/kitty.conf.5.*

%files doc
%doc LICENSE *.md *.rst *.asciidoc
%{_docdir}/kitty/html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2601 |21cr|kiwix-desktop-2.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		kiwix-desktop
Version:	2.2.1
Release:	4
License:	GPLv3+
Summary:	Kiwix desktop application
Group:		Text tools
URL:		https://github.com/kiwix/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		kiwix-desktop-headers.patch
BuildRequires: aria2
BuildRequires: desktop-file-utils
BuildRequires: appstream-util
BuildRequires: pkgconfig(appstream-glib)
BuildRequires: pkgconfig(kiwix)
BuildRequires: mustache-devel
BuildRequires: pugixml-devel
BuildRequires: qt5-devel
BuildRequires: qt5-linguist
BuildRequires: qt5-qtbase-devel
BuildRequires: qt5-qtwebengine-devel
BuildRequires: %{_lib}qtsingleapplication-qt5-devel
BuildRequires: pkgconfig(libzim)

Requires: aria2%{?_isa}
Requires: hicolor-icon-theme
Requires: shared-mime-info

%description
The Kiwix-desktop is a view/manager of zim files for GNU/Linux
and Windows. You can download and view your zim files as you
which.

%files
%doc ChangeLog README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*.xml
%{_metainfodir}/*.appdata.xml

#------------------------------------------------------------
%prep
%autosetup -p1
sed -e "/static {/,+2d" -i %{name}.pro
rm -rf subprojects

%build
%qmake_qt5 PREFIX=%{_prefix} CONFIG+=qtsingleapplication

%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}

%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2602 |21cr|kiwix-tools-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		kiwix-tools
Version:	3.2.0
Release:	1
License:	GPLv3+
Summary:	Common code base for all Kiwix ports
Group:		Text tools
URL:		https://github.com/kiwix/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: pkgconfig(kiwix)
BuildRequires: pkgconfig(libmicrohttpd)
BuildRequires: meson
BuildRequires: ninja
BuildRequires: pugixml-devel
BuildRequires: zlib-devel

%description
The Kiwix tools is a collection of Kiwix related command line
tools.

%files
%doc AUTHORS Changelog README.md
%license COPYING
%{_bindir}/kiwix*
%{_mandir}/man1/kiwix*.1*
%{_mandir}/*/man1/kiwix*.1*

#-------------------------------------------------------------
%prep
%autosetup -p1

%build
%meson -Dwerror=false
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2603 |21cr|klatexformula-3.2.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3.2
%define libname %mklibname %{name} %major
%define develname %name-devel
%define _appdatadir %{_kde_datadir}/appdata

Summary:	Easily get an image from a LaTeX formula
Name:		klatexformula
Version:	3.2.11
Release:	3
Source0:	https://sourceforge.net/projects/%{name}/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0:		klatexformula-3.2.0-link.patch
License:	GPLv2+
Group:		Publishing
Url:		http://klatexformula.sourceforge.net/
BuildRequires:	kdelibs4-devel
BuildRequires:	help2man
BuildRequires:	doxygen

Requires:	ghostscript
Requires:	tetex-latex
Requires:	tetex-dvips
Requires:	%{libname} = %{EVRD}


%description
This application provides an easy-to-use graphical user interface
for generating images from LaTeX equations. These images can be
dragged and dropped or copied and pasted into external applications
(presentations, text documents, graphics...), or can be saved to
disk in a variety of formats (PNG, JPG, BMP, EPS, PDF, etc.). In
addition to the graphical user interface, a command-line interface
and a C++ library are provided to perform the same job.

%files
%{_defaultdocdir}/%{name}/
%{_kde_bindir}/*
%{_kde_iconsdir}/hicolor/*/apps/%{name}.png
%{_kde_datadir}/applications/%{name}.desktop
%{_kde_datadir}/%{name}
%{_kde_mandir}/man1/*
%{_kde_services}/*.desktop
%{_kde_appsdir}/ktexteditor_klf
%{_kde_datadir}/mime/packages/*.xml
%{_kde_datadir}/pixmaps/*.png
%{_appdatadir}/%{name}.appdata.xml
#------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for KLatexFormula
Group:		Publishing
Obsoletes:	%{_lib}klfbackend3 < %{EVRD}


%description -n %{libname}
This package contains shared libraries for KLatexFormula.

%files -n %{libname}
%doc README COPYING AUTHORS 
%{_kde_libdir}/*.so.%{major}
%{_kde_libdir}/kde4/*.so
#------------------------------------------------------

%package -n %{develname}
Summary:	Development files for KLatexFormula
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
This package contains development files for KLatexFormula.

%files -n %{develname}
%doc README COPYING AUTHORS 
%{_kde_includedir}/*
%{_kde_libdir}/*.so
#-----------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch0 -p0

%build
%cmake_kde4 -DKLF_LIBKLFBACKEND_STATIC=OFF \
  -DKLF_LIBKLFTOOLS_STATIC=OFF \
  -DKLF_LIBKLFAPP_STATIC=OFF \
  -DKLF_INSTALL_LIB_DIR=%{_kde_libdir}\
  -DKLF_INSTALL_APIDOC_DIR=%{_defaultdocdir}/%{name}
  
%make
%make doc

%install
%makeinstall_std -C build
# appdata
mkdir -p %{buildroot}%{_appdatadir}
cat > %{buildroot}%{_appdatadir}/%{name}.appdata.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<application>
  <id type="desktop">%{name}.desktop</id>
  <project_license>GPLv2+</project_license>
  <name>%{name}</name>
  <summary>Easily get an image from a LaTeX formula</summary>
  <description>
    <p>
      This application provides an easy-to-use graphical user interface
      for generating images from LaTeX equations. These images can be
      dragged and dropped or copied and pasted into external applications
      (presentations, text documents, graphics...), or can be saved to
      disk in a variety of formats (PNG, JPG, BMP, EPS, PDF, etc.). In
      addition to the graphical user interface, a command-line interface
      and a C++ library are provided to perform the same job.
    </p>
  </description>
  <screenshots>
    <screenshot type="default">http://klatexformula.sourceforge.net/screenshots/screenshot00s.jpg</screenshot>
    <screenshot>http://klatexformula.sourceforge.net/screenshots/screenshot02s.jpg</screenshot>
  </screenshots>
  <url type="homepage">http://klatexformula.sourceforge.net/</url>
  <updatecontact>philippe.faist_at_bluewin.ch</updatecontact>
</application>
EOF
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2604 |21cr|klavaro-3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Touch Typing Tutor
Name:		klavaro
Version:	3.14
Release:	1
License:	GPLv2+
Group:		Education
URL:		http://klavaro.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/klavaro/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	gtkdatabox-devel
BuildRequires:	curl-devel
BuildRequires:	intltool
Recommends:	wget

%description
Klavaro is just another free touch typing tutor program. It was developed
because the authors became frustrated with the other options, which relied
mostly on some few specific keyboards. Klavaro intends to be keyboard and
language independent, saving memory and time (and money).

%files -f %{name}.lang
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/*.1.*
%{_datadir}/metainfo/klavaro.appdata.xml

#------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-static=no
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2605 |21cr|kmetronome-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt5 based MIDI Metronome using ALSA Sequencer
Name:		kmetronome
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://kmetronome.sourceforge.io
Source0:	https://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	cmake >= 3.16
BuildRequires:	gzip-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa) >= 1.0.0
BuildRequires:	pkgconfig(drumstick-alsa) >= 2.9.0
BuildRequires:	pkgconfig(drumstick-rt) >= 2.9.0
BuildRequires:	pkgconfig(Qt5Core) >= 5.12
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	drumstick >= 2.9.0

%description
KMetronome is a MIDI metronome with Qt5 interface, based on the ALSA
sequencer. The intended audience is musicians and music students. Like solid,
real metronomes it is a tool to keep the rhythm while playing musical
instruments. It uses MIDI for sound generation instead of digital audio,
allowing low CPU usage, and very accurate timing thanks to the ALSA sequencer.

%files
%doc AUTHORS ChangeLog COPYING readme.md TODO
%{_bindir}/%{name}
%{_datadir}/%{name}/drums.ins
%{_datadir}/%{name}/samples.pat
%{_datadir}/%{name}/translations/*.qm
%{_datadir}/applications/net.sourceforge.%{name}.desktop
%{_datadir}/dbus-1/interfaces/net.sourceforge.%{name}.xml
%{_datadir}/dbus-1/services/net.sourceforge.%{name}.service
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/metainfo/net.sourceforge.%{name}.metainfo.xml
%{_datadir}/doc/%{name}/*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
# Building docs needs pandoc and we don't have it yet
%cmake_qt5 -DUSE_QT5=ON -DBUILD_DOCS=OFF
%make


%install
%makeinstall_std -C build

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat %{name}.svgz > %{name}.svg && rm -f %{name}.svgz
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2606 |21cr|kmid2-2.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kmid

%define major 1
%define libname %mklibname kmid %{major}
%define devname %mklibname kmid -d

Summary:	A MIDI/karaoke player for KDE
Name:		kmid2
Version:	2.4.0
Release:	6
Group:		Sound
# GPLv2+ for the code, CC-BY-SA for the examples
License:	GPLv2+ and CC-BY-SA
Url:		http://kmid2.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/kmid-%{version}.tar.bz2
# System drumstick is Qt5-based now, use internal copy instead
Source1:	drumstick-0.5.0-kmid2.tar.xz
Patch1:		kmid2-2.2.2-use-timidity-pulse.patch
BuildRequires:	desktop-file-utils
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(alsa)
BuildConflicts:	pkgconfig(drumstick-alsa) > 0.5
Requires:	drumstick >= 0.3.1
Requires:	TiMidity++

%description
KMid2 is a MIDI/karaoke file player, with configurable midi mapper, real
Session Management, drag & drop, customizable fonts, etc. It has a very
nice interface which let you easily follow the tune while changing the
color of the lyrics.

It supports output through external synthesizers, AWE, FM and GUS cards.
It also has a keyboard view to see the notes played by each instrument.

%files -f %{oname}.lang
%doc ChangeLog README TODO
%{_kde_bindir}/%{oname}
%{_kde_appsdir}/%{oname}
%{_kde_appsdir}/kmid_part/kmid_part.rc
%{_kde_applicationsdir}/%{oname}.desktop
%{_kde_datadir}/config.kcfg/%{oname}.kcfg
%{_kde_services}/*
%{_kde_servicetypes}/*
%{_kde_iconsdir}/hicolor/*/*/*
%{_kde_libdir}/kde4/*

#-------------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library package
Group:		System/Libraries

%description -n %{libname}
%{name} shared library package.

%files -n %{libname}
%{_libdir}/libkmidbackend.so.%{major}*

#-------------------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} developement files
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 2.4.0-4

%description -n %{devname}
This package contains header files needed when building applications based on
%{name}.

%files -n %{devname}
%{_includedir}/%{oname}
%{_libdir}/libkmidbackend.so
%{_datadir}/dbus-1/interfaces/org.kde.KMid.xml
%{_datadir}/dbus-1/interfaces/org.kde.KMidPart.xml

#-------------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version} -a1
# (ahmad) use timidity and pulseaudio by default (the latter is enabled in mdv installs)
%patch1 -p0

# Replace local copy of drumstick 0.4.1 with version 0.5.0
# It's needed because system version is Qt5-based now
rm -rf drumstick
mv -f drumstick-0.5.0-%{name} drumstick

%build
%cmake_kde4 \
	-DBUILD_SHARED_LIBS:BOOL=OFF

%make

%install
%makeinstall_std -C build

# fix the .desktop file
desktop-file-install \
	--vendor="" \
	--add-category="AudioVideo" \
	--add-category="Audio" \
	--remove-category="Music" \
	--dir %{buildroot}%{_kde_applicationsdir} \
	%{buildroot}%{_kde_applicationsdir}/%{oname}.desktop

%find_lang %{oname} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2607 |21cr|kmidimon-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	QT MIDI Monitor for ALSA Sequencer
Name:		kmidimon
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://kmidimon.sourceforge.io
Source0:	https://sourceforge.net/projects/kmidimon/files/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	cmake >= 3.16
BuildRequires:	desktop-file-utils
BuildRequires:	gettext-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa) >= 1.0.0
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(drumstick-alsa) >= 2.7.0
BuildRequires:	pkgconfig(libart-2.0)
BuildRequires:	pkgconfig(Qt5Core) >= 5.12
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)
Requires:	drumstick >= 2.7.0
Requires:	oxygen-icon-theme

%description
KMidimon is a MIDI monitor for the ALSA sequencer, based on the drumstick
library. It monitors events coming from a MIDI external port or application or
loaded from standard MIDI Files.

%files
%doc ChangeLog COPYING NEWS.md README.md TODO.md
%doc doc/en/index.html
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/net.sourceforge.%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/net.sourceforge.%{name}.metainfo.xml
%{_mandir}/man1/%{name}.1*
%{_mandir}/ja/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
# Building the docs needs pandoc and we don't have it yet
%cmake_qt5 -DUSE_QT5=ON  -DBUILD_DOCS=OFF
%make


%install
%makeinstall_std -C build

desktop-file-edit --add-category Application --remove-category Music \
					%{buildroot}%{_datadir}/applications/net.sourceforge.%{name}.desktop

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat %{name}.svgz > %{name}.svg && rm -f %{name}.svgz
)

# Drop what we take with our macros
rm -rf %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2608 |21cr|kmldonkey-2.0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		5
%define libname		%mklibname %{name} %{major}
%define devname		%mklibname %{name} -d

Summary:	A frontend for MLDonkey
Name:		kmldonkey
Version:	2.0.7
Release:	4
License:	GPL
Group:		Graphical desktop/KDE
URL:		http://extragear.kde.org/apps/kmldonkey/
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	kde4-macros
BuildRequires:	kdelibs4-devel
Requires:	mldonkey

%description
KMLDonkey is a frontend for MLDonkey, a powerful P2P file sharing tool,
designed for the KDE desktop.

%files
%{_kde_bindir}/kmldonkey
%{_kde_applicationsdir}/kmldonkey.desktop
%{_kde_appsdir}/kmldonkey/icons/hicolor/*/apps/*
%{_kde_appsdir}/kmldonkey/*rc
%{_kde_iconsdir}/hicolor/*/apps/*
%{_kde_services}/*-kmldonkey.desktop
%{_kde_libdir}/kde4/plasma_engine_kmldonkey.so
%{_kde_libdir}/kde4/plasma_applet_kmldonkey.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	KMLDonkey shared libraries
Group:		System/Libraries

%description -n %{libname}
Shared libraries needed by %{name}.

%files -n %{libname}
%{_kde_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
This package contains the libraries and header files needed to
develop programs which make use of %{name}.

%files -n %{devname}
%{_kde_includedir}/kmldonkey
%{_kde_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2609 |21cr|kmplayer-0.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#global gittag	a28ff10
%define	libname	%mklibname %{name}

Summary:	A multimedia mplayer/phonon front-end for KDE
Name:		kmplayer
Version:	0.12.0
Release:	4
License:	GPLv2+
Group:		Video
Url:		http://kmplayer.kde.org/
Source0:	http://download.kde.org/stable/kmplayer/0.12/%{name}-%{version}b.tar.bz2
Source1:	%{name}.rpmlintrc
Source2:	%{name}_po.tar.gz
Patch0:		%{name}-0.12.0b-fix-build-with-newer-qt.patch
#Patch1:	build-translations.patch
Patch2:		kmplayer-0.12.0b-aarch64.patch
Patch3:		upstream_Fix-build-with-Qt-5.9.patch
BuildRequires:	appstream
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	extra-cmake-modules
BuildRequires:	expat
BuildRequires:	gettext
BuildRequires:	python
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5mediaplayer-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5widgetsaddons-devel
# It searches also for xcb-util-cursor-devel (not provided yet)
BuildRequires:	xcb-devel
BuildRequires:	xcb-util-devel
BuildRequires:	xcb-util-image-devel
BuildRequires:	xcb-util-renderutil-devel
BuildRequires:	xcb-util-wm-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	%{libname} = %{EVRD}
Recommends:	mplayer
Obsoletes:	%{name}-npplayer < 0.12.0-3
%rename		kde4-%{name}

%description
KMPlayer can play all the audio/video supported by mplayer/phonon from local
file or URL, be embedded inside Konqueror and KHTML and play DVD's.

%files -f %{name}.lang
%doc ChangeLog README
%{_kde5_sysconfdir}/xdg/%{name}rc
%{_kde5_bindir}/%{name}
%{_kde5_bindir}/kphononplayer
%{_kde5_datadir}/%{name}/*
%{_kde5_docdir}/HTML/en/%{name}/*
%{_kde5_applicationsdir}/%{name}.desktop
%{_kde5_services}/%{name}_part.desktop
%{_kde5_xmlguidir}/%{name}/%{name}*.rc
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.*


#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Kmplayer libraries
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries needed by %{name}.

%files -n %{libname}
%doc AUTHORS ChangeLog README
%{_kde5_libdir}/*.so
%{_kde5_libdir}/qt5/plugins/*.so

#--------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}b
%patch0 -p1
#patch1 -p1
%patch2 -p1
%patch3 -p1

tar -xvzf %{SOURCE2}


%build
%cmake_kde5 \
	-DKMPLAYER_BUILT_WITH_EXPAT="ON" \
	-DKMPLAYER_BUILT_WITH_NPP="OFF"
%make


%install
%makeinstall_std -C build

# Fix .desktop files
desktop-file-install \
		--vendor="" \
		--remove-key="Encoding" \
		--remove-key="MimeType" \
		--dir %{buildroot}%{_kde5_services} %{buildroot}%{_kde5_services}/%{name}_part.desktop

# Fix wrong perms
chmod +x %{buildroot}%{_kde5_datadir}/%{name}/find-media.sh

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2610 |21cr|knemo-0.7.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The KDE Network Monitor
Name:		knemo
Version:	0.7.7
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php?content=12956
Source0:	http://kde-apps.org/CONTENT/content-files/12956-%{name}-%{version}.tar.xz
Source1:	knemo_ru.tar.gz
BuildRequires:	kdebase4-workspace-devel
BuildRequires:	kdelibs4-devel
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(libnl-3.0)
Requires:	qt4-database-plugin-sqlite
Requires:	wireless-tools

%description
KNemo offers a network monitor similar to the one found in Windows. 
For every network interface it displays an icon in the systray.

Features:
* support for ethernet (including wireless) and ppp connections
* the icon shows incoming/outgoing traffic
* hiding of icon when the interface is not available
* automatic detection of wireless extensions for ethernet interfaces
* left-clicking on an icon displays a status dialog with information
  about the selected interface (2nd click hides dialog)
* configuration via context menu or control center module
  (Internet & Network/Network Monitor)
* customizable tooltip for quick access to often needed information
* you can activate 2 custom entries for the context menu. They can
  have custom text and a command to run when selected. You can even
  select if the commands need root permissions or not.
* automatic detection of available interfaces (click on 'Default' in
  the configuration dialog and KNemo will look under /proc/net/dev for
  interfaces)
* KNemo uses more standard icon names which allows support from other
  icon themes.

Please make sure that in the settings the paths for 'ifconfig' and 'iwconfig'
are correct and that both programs are installed.

IMPORTANT: KNemo is not an executable but an KDED service. Therefore
it has to be started using Control Center/KDE Components/Service Manager.

%files -f %{name}.lang
%{_kde_bindir}/knemo
%{_kde_libdir}/kde4/kcm_knemo.so
%{_kde_applicationsdir}/knemo.desktop
%{_kde_appsdir}/knemo
%{_kde_appsdir}/kconf_update/*
%{_kde_datadir}/autostart/knemo.desktop
%{_kde_iconsdir}/hicolor/*/*/*
%{_kde_services}/kcm_knemo.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang %{name} kcm_knemo %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2611 |21cr|knightsgame-025-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           knightsgame
Version:        025
Release:        5
Summary:        Multiplayer dungeon bashing game
License:        GPLv3
Group:          Games/Arcade
Url:            http://www.knightsgame.org.uk
Source:         http://www.knightsgame.org.uk/files/knights_%{version}_src.tar.gz
Patch0:         %{name}-rosa-games.patch
PAtch1:         knightsgame-headers.patch
BuildRequires:  dos2unix
BuildRequires:  pkgconfig(sdl)
BuildRequires:  boost-devel
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(x11)
BuildRequires:  imagemagick


%description
Players must explore randomly generated dungeons
and compete to solve various quests.

%files
%{_defaultdocdir}/%{name}
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
#------------------------------------------------

%prep
%autosetup -p1 -n knights_%{version}_src
dos2unix *.txt
dos2unix docs/*.txt
dos2unix docs/third_party_licences/*.txt
pushd docs/third_party_licences
iconv -f ISO-8859-1 -t UTF-8 FTL.txt > out-FTL.txt
mv -f out-FTL.txt FTL.txt
popd

%build
%setup_compile_flags
%make ROOT=%{buildroot}

%install
%makeinstall ROOT=%{buildroot}

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=%{name} 
Comment=Multiplayer dungeon bashing game
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Game;ArcadeGame;
StartupNotify=true
EOF


# icon
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size knights_data/client/knights_icon_48.bmp \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2612 |21cr|knock-0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open connection through firewall on specified signal
Name:		knock
Version:	0.7
Release:	4
License:	GPLv2+
Group:		Networking/Other
URL:		http://www.zeroflux.org/projects/knock/
Source0:	http://www.zeroflux.org/proj/knock/files/%{name}-%{version}.tar.gz
Source1:	knockd.service
Source2:	knockd.logrotate
BuildRequires:	libpcap-devel

%description
knock is a server/client set that implements the idea known as port-
knocking. Port-knocking is a method of accessing a backdoor to your
firewall through a special sequence of port hits. This can be useful
for opening up temporary holes in a restrictive firewall for SSH
access or similar.

%files
%doc ChangeLog COPYING README.md TODO
%config(noreplace) %{_sysconfdir}/%{name}d.conf
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0644,root,root) %{_unitdir}/%{name}d.service
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}d
%{_bindir}/%{name}
%{_sbindir}/%{name}d
%{_mandir}/man1/*

%post
%systemd_post %{name}d

%preun
%systemd_preun %{name}d

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_unitdir}
install -m0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{name}d.service

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}d

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
cat > %{buildroot}%{_sysconfdir}/sysconfig/%{name} <<EOF
# Options to pass to %{name}d
OPTIONS=""
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2613 |21cr|knowlan-1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Knowlan is ARP protocol based Local Area Network IP and MAC Adress Extractor
Name:		knowlan
Version:	1.0
Release:	11
License:	GPLv2+
Group: 		Monitoring
Url: 		http://www.enderunix.org/knowlan/
Source0:	http://www.enderunix.org/knowlan/%{name}-%{version}-RELEASE.tar.bz2
BuildRequires:	libnet-devel
BuildRequires:	libpcap-devel

%description
Knowlan is ARP protocol based Local Area Network IP and MAC Adress Extractor.
Knowlan uses libpcap and libnet libraries for to be simple to handle and to
have a simple code for any interestor to deal with the code. To describe
knowlan overally, Knowlan, sends ARP REQUEST packets to the LAN, and at the
same time, It recieves ARP REPLY packets from the up machines. So, It prints
out IP and MAC addresses of online machines.

%files
%defattr(644,root,root,755)
%doc COPYING ChangeLog INSTALL README TODO
%attr(0755,root,root) %{_sbindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-RELEASE

chmod 644 COPYING ChangeLog INSTALL README TODO

%build
perl -pi -e "s|-Wall|%{optflags} -Wall|g" configure
perl -pi -e "s|\.a|\.so|g" configure
perl -pi -e "s|/lib\b|/%{_lib}|g" configure

./configure

%make

%install
install -d %{buildroot}%{_sbindir}
install -m0755 %{name} %{buildroot}%{_sbindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2614 |21cr|knutsetting-0.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI KDE4 setup UPS tool
Name:		knutsetting
Version:	0.2
Release:	13
License:	GPLv2+
Group:		Monitoring
Url:		https://sites.google.com/a/prynych.cz/knutclient
Source0:	%{name}-%{version}.tar.gz
Patch0:		distrolist.patch
Patch1:		desktop_file.patch
Patch2:		ups_conf.patch
Patch3:		l10n_ru.patch
Patch4:		dist_select.patch
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
Requires:	nut-server

%description
Knutsetting is a visual KDE tool for configuring NUT.

%files -f %{name}.lang
%doc ChangeLog README
%{_sysconfdir}/dbus-1/system.d/org.kde.kcontrol.knutsetting.conf
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.knutsetting.service
%{_datadir}/polkit-1/actions/org.kde.kcontrol.knutsetting.policy
%{_kde_appsdir}/knutsetting/dist.conf
%{_kde_appsdir}/knutsetting/modules.dtd
%{_kde_appsdir}/knutsetting/modules_def.xml
%{_kde_appsdir}/knutsetting/pics/kns_conn.png
%{_kde_appsdir}/knutsetting/pics/kns_error.png
%{_kde_appsdir}/knutsetting/pics/kns_main.png
%{_kde_appsdir}/knutsetting/pics/kns_mon.png
%{_kde_appsdir}/knutsetting/upses.dtd
%{_kde_appsdir}/knutsetting/upses_def.xml
%{_kde_libdir}/kde4/libexec/kcmknutsettinghelper
%{_kde_libdir}/kde4/kcm_knutsetting.so
%{_kde_iconsdir}/hicolor/16x16/apps/knutsetting.png
%{_kde_iconsdir}/hicolor/32x32/apps/knutsetting.png
%{_kde_iconsdir}/hicolor/48x48/apps/knutsetting.png
%{_kde_services}/knutsetting.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%cmake_kde4
make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2615 |21cr|kodi-pvr-iptvsimple-19.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	addon pvr.iptvsimple
%define	aname pvr-iptvsimple
%define	codename Matrix

Summary:	IPTV Live TV and Radio PVR client addon for Kodi (ex-XBMC)
Name:		kodi-%{aname}
Version:	19.0.3
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://github.com/kodi-pvr/%{addon}
Source0:	https://github.com/kodi-pvr/%{addon}/archive/refs/tags/%{version}-%{codename}.tar.gz?/%{addon}-%{version}-%{codename}.tar.gz
BuildRequires:	cmake
BuildRequires:	kodi-devel
BuildRequires:	rapidxml-devel
BuildRequires:	pkgconfig(libcec)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(p8-platform)
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(zlib)
Requires:	kodi

%description
IPTV Simple PVR Client support m3u playlists, streaming of Live TV for
multicast/unicast sources, listening to radio channels and EPG.

%files
%doc README.md
%{_libdir}/kodi/addons/%{addon}
%{_datadir}/kodi/addons/%{addon}

#----------------------------------------------------------------------------

%prep
%setup -qn %{addon}-%{version}-%{codename}
%apply_patches

%build
LDFLAGS="%{ldflags} -pthread"
%cmake -DCMAKE_PREFIX_PATH=%{_libdir}/kodi
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2616 |21cr|kodi-pvr-mythtv-19.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	addon pvr.mythtv
%define	aname pvr-mythtv
%define	codename Matrix

Summary:	MythTV PVR client addon for Kodi (ex-XBMC)
Name:		kodi-%{aname}
Version:	19.0.11
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://github.com/janbar/pvr.mythtv
Source0:	https://github.com/janbar/pvr.mythtv/archive/%{version}-%{codename}.tar.gz?/%{addon}-%{version}-%{codename}.tar.gz
BuildRequires:	cmake >= 3.5
BuildRequires:	kodi-devel
BuildRequires:	rapidxml-devel
BuildRequires:	pkgconfig(libcec)
BuildRequires:	pkgconfig(zlib)
Requires:	kodi >= 18

%description
MythTV PVR client addon for Kodi. It allows streaming of Live TV & Recordings,
istening to Radio channels, EPG and Timers.

%files
%doc README.md
%doc %{addon}/changelog.txt
%{_libdir}/kodi/addons/%{addon}
%{_datadir}/kodi/addons/%{addon}

#----------------------------------------------------------------------------

%prep
%setup -qn %{addon}-%{version}-%{codename}


%build
%cmake -DCMAKE_PREFIX_PATH=%{_libdir}/kodi
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2617 |21cr|kompas3d-wine-helper-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Скрипт настройки wine для установки Компас 3D
Summary:	Wine setup script for installing Compass 3D
Name:		kompas3d-wine-helper
Version:	1.1
Release:	4
License:	GPLv3
Group:		Emulators
Url:		https://abf.io/import/kompas3d-wine-helper
Vendor:		MOS
Source0:	install-kompas3d.sh
BuildArch:	noarch
ExclusiveArch:	x86_64

Requires:	kdialog
Requires:	(wine64-stable or wine64)
Recommends:	wine32-common
Recommends:	rosa-update-system
Recommends:	wine-recommends

%description
Step-by-step detailed script for setting up wine to install Compass 3D.
A script is run from the user who will use the 3D Compass.

Run setup and installation:
install-kompas3d file.msi

Run the setup, after which the dialog for selecting the file to install will open:
install-kompas3d

%description -l ru_RU.UTF-8
Пошаговый подробный скрипт для настройки wine, чтобы установить Компас 3D.
Запускается скрипт от пользователя, который будет использовать Компас 3D.

Запустить настройку и установку:
install-kompas3d файл.msi

Запустить настройку, после которой будет открыт диалог выбора файла для установки:
install-kompas3d

%files
%{_bindir}/install-kompas3d
%{_bindir}/kompas3d-wine-helper

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 install-kompas3d.sh %{buildroot}%{_bindir}/install-kompas3d
cd %{buildroot}%{_bindir}
ln -sf install-kompas3d kompas3d-wine-helper

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2618 |21cr|kongress-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Companion application for conference attendees
Name:		kongress
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel


%description
Companion application for conference attendees.

%files -f kongress.lang
%{_kde5_bindir}/kongress
%{_kde5_bindir}/kongressac
%{_kde5_applicationsdir}/org.kde.kongress.desktop
%{_kde5_notificationsdir}/kongressac.notifyrc
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.kongress.svg
%{_datadir}/dbus-1/services/org.kde.kongressac.service
%{_appdatadir}/org.kde.kongress.appdata.xml

#-------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name} --all-name


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2619 |21cr|konvertible-1.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		konvertible
Summary:	A simple KDE audio converter
Version:	1.0.1
Release:	5
License:	GPLv2+
Group:		Sound                                                            
Url:		https://www.linux-apps.com/p/1126575/
Source0:	https://dl.opendesktop.org/api/files/download/id/1466626743/116892-%{name}-%{version}.tar.bz2
BuildRequires:	kdelibs4-devel
BuildRequires:	kdepimlibs4-devel
Requires:	ffmpeg
Requires:	kdebase4-runtime
 
%description
The Konvertible is a program to convert audio files to other audio formats
using ffmpeg. It simplifies file conversion for ffmpeg users. You can add more
than one audio file and then click the convert button to transcode them one
after the other.

%files
%doc COPYING README TODO
%{_bindir}/%{name}
%{_datadir}/applications/kde4/%{name}.desktop
%{_datadir}/icons/*
%{_docdir}/HTML/en/%{name}/*.*
%{_docdir}/HTML/en/%{name}/common

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake_kde4
%make


%install
%{makeinstall_std} -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2620 |21cr|kooka-0.61-0.20130123.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Spec is based on openSUSE spec adopted for ROSA/Mandriva

%define git 20130123

Name:		kooka
Version:	0.61
Release:	0.%{git}.3
License:	LGPLv2+
Group:		Graphical desktop/KDE
Summary:	Scan and OCR suite for KDE
Url:		https://projects.kde.org/kooka
# From git
Source:		%{name}-%{version}.git%{git}.tar.bz2
Source1:	%{name}-lang.tar.bz2
# ROSA's translation update (29.01.2013)
Source2:	%{name}-ru.po
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(sane-backends)

%description
Kooka is an open source GNU/Linux scan program based on SANE and
KScan library.

Kooka helps you to handle the most important scan parameters, find the
correct image file format to save and manage your scanned images. It
offers support for different OCR modules. Libkscan, a autonomous part
of Kooka, provides a scan service for easy and consistent use to all
KDE applications.

Install ocrad or gocr if you wish to enable optical character recognition
in kooka.

This is the WIP KDE4 port.

%files -f %{name}.lang
%{_kde_applicationsdir}/kooka.desktop
%{_kde_appsdir}/kooka
%{_kde_bindir}/kooka
%{_kde_iconsdir}/hicolor/48x48/apps/kooka.png
%{_kde_services}/scanservice.desktop
%{_kde_docdir}/HTML/en/*

#----------------------------------------------------------------------

%define libkscan_major 3
%define libkscan_libname %mklibname libkscan %{libkscan_major}

%package -n %{libkscan_libname}
Summary:	KScan is a KDE scanner library
Requires:	libkscan_common >= %{version}

%description -n %{libkscan_libname}
KScan is a KDE scanner library.

%files -n %{libkscan_libname}
%{_kde_libdir}/liblibkscan.so.%{libkscan_major}*

#----------------------------------------------------------------------

%package -n libkscan_common
Summary:	Common files (languages etc) for KScan, a KDE scanner library

%description -n libkscan_common
Common files (languages etc) for KScan, a KDE scanner library.

%files -n libkscan_common -f libkscan.lang
%{_kde_appsdir}/libkscan

#----------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}.git%{git} -a 1
cat >> CMakeLists.txt << EOF
add_subdirectory( po )
EOF
# Overwrite with ROSA's translation
cp -f %{SOURCE2} po/ru/%{name}.po

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_kde_libdir}/liblibkscan.so

%find_lang kooka %{name}.lang
%find_lang libkscan libkscan.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2621 |21cr|koules-1.4-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Space action game for X11
Name:		koules
Version:	1.4
Release:	25
License:	GPLv2+
Group: 		Games/Arcade
Url:		http://www.ucw.cz/~hubicka/koules/English/distribution.html
Source0:	%{name}%{version}-src.tar.gz
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
Patch0:		debian-koules-1.4-17.patch
Patch1:		koules-1.4-gcc10.patch
BuildRequires:	imake
BuildRequires:	tk
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:  pkgconfig(xcb)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xext)
Requires:	soundwrapper
# this font is hardcoded in the code
Requires:	x11-font-schumacher-misc

%description
Koules is a simple fast-action arcade-style no-brainer balls game you have
never seen alike before! It has simple, classic, old-school fantastic 256
color graphics, a multiplayer mode for up to 5 players on the same keyboard,
or via network, full sound, and, of course, lots of wild fun!

%files
%doc ChangeLog ANNOUNCE BUGS Card Koules.FAQ Problems README TODO
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/*
%{_mandir}/*/*
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_miconsdir}/*.png
%{_libdir}/%{_gamesdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}%{version}
%patch0 -p1
%patch1 -p1
sed -i 's/mkdirhier/mkdir -p/g' Imakefile

%build
xmkmf
make Makefile
make Makefiles
if [ ! -s xkoules.man ]; then ln -sf xkoules.6 xkoules.man; fi
make \
	KOULESDIR=%{_gamesbindir} \
	SOUNDDIR=%{_libdir}/%{_gamesdir}/%{name} \
	MANDIR=%{_mandir}/man6 \
	CDEBUGFLAGS="%{optflags}" \
	CXXDEBUGFLAGS="%{optflags}"

%install
%makeinstall \
	KOULESDIR=%{buildroot}%{_gamesbindir} \
	SOUNDDIR=%{buildroot}%{_libdir}/%{_gamesdir}/%{name} \
	MANDIR=%{buildroot}/%{_mandir}/man6

mv %{buildroot}%{_gamesbindir}/xkoules %{buildroot}%{_gamesbindir}/xkoules.bin
cat <<EOF >%{buildroot}%{_gamesbindir}/xkoules
#!/bin/sh
exec soundwrapper %{_gamesbindir}/xkoules.bin
EOF
chmod a+x %{buildroot}%{_gamesbindir}/xkoules

install startkoules %{buildroot}%{_gamesbindir}/
install koules.tcl %{buildroot}%{_libdir}/%{_gamesdir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=XKoules
Comment=%{summary}
Exec=%{_gamesbindir}/xkoules
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# mdk icon
install -m644 %{SOURCE1} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE2} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE3} -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2622 |21cr|kpdftool-0.23.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GhostView and ImageMagick GUI for PDF/PS files
Name:		kpdftool
Version:	0.23.1
Release:	4
License:	GPLv3+
Group:		Text tools
URL:		http://www.kde-apps.org/content/show.php?content=33194
Source:		33194-kpdftool-%{version}.zip
BuildRequires:	qt4-devel
Recommends:	imagemagick
Recommends:	ghostscript
Recommends:	kword

%description
KPDFTool is a GUI interface for GhostView and ImageMagick
for performing basic and usefull operations with PDF and
PS (PostScript) files such as merge, extract pages and
protect the text into new files in a simple and practical way.

%prep
%setup -q

%build
%qmake_qt4
%make

%install
rm -rf %{buildroot}
install -d -m755 %{buildroot}%{_bindir}
install -m755 kpdftool %{buildroot}%{_bindir}

install -d -m755 %{buildroot}%{_iconsdir}
cp -r icons/hicolor %{buildroot}%{_iconsdir}/

install -d -m755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/kpdftool.desktop << EOF
[Desktop Entry]
Name=KPDFTool
Comment=Operate on PDF files
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Office;Publishing;KDE;Qt;
EOF

%clean
rm -rf %{buildroot}

%files
%doc README
%{_bindir}/kpdftool
%{_datadir}/applications/kpdftool.desktop
%{_iconsdir}/hicolor/*/apps/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2623 |21cr|kphotoalbum-5.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Image Database
Name:		kphotoalbum
Version:	5.5
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kphotoalbum.org
Source0:	http://download.kde.org/stable/kphotoalbum/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	jpeg-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kdcraw-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kipi-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Image database for KDE.

%files -f %{name}.lang
%{_kde5_applicationsdir}/*.desktop
%{_kde5_bindir}/kphotoalbum
%{_kde5_bindir}/kpa-backup.sh
%{_kde5_bindir}/open-raw.pl
%{_kde5_datadir}/kphotoalbum
%{_kde5_iconsdir}/hicolor/*/*/*
%{_kde5_sysconfdir}/xdg/kphotoalbumrc
%{_kde5_xmlguidir}/kphotoalbum/kphotoalbumui.rc
%{_appdatadir}/org.kde.kphotoalbum.appdata.xml

#------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2624 |21cr|kplayer-0.7.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MPlayer frontend for KDE
Name:		kplayer
Version:	0.7.2
Release:	4
License:	GPLv2+
Group:		Video
Url:		http://kplayer.sourceforge.net/
Source:		http://fr2.rpmfind.net/linux/KDE/stable/%name/%version/src/%name-%version.tar.xz
BuildRequires:	kdelibs4-devel
Requires:	mplayer

%description
KPlayer is a KDE media player based on MPlayer. With KPlayer 
you can easily play a wide variety of video and audio files 
and streams using a rich and friendly interface that
follows KDE standards.

Features include

    * video, audio and subtitle playback from file,
       URL, DVD, VCD, audio CD, TV, DVB, etc.,
       as well as KDE I/O Slaves;
    * volume, contrast, brightness, hue and saturation controls;
    * zooming, full screen and fixed aspect options;
    * status and progress display and seeking;
    * playlist;
    * message log;
    * configuration dialog;
    * file properties for setting file specific options.

KPlayer is available in Catalonian, Czech, Danish, English,
Finnish, French, German, Hungarian, Italian, Polish, Russian, 
Simplified Chinese and Spanish. 

%prep
%setup -q -n %name-%version

%build
%cmake_kde4
%make

%install
rm -rf %{buildroot}

%makeinstall_std -C build

# fix .desktop file
desktop-file-install \
	--vendor="" \
	--remove-key="Encoding" \
	--remove-mime-type="uri/mms;uri/mmst;uri/mmsu;uri/pnm;uri/rtsp;uri/rtspt;uri/rtspu" \
	--dir %{buildroot}%{_kde_applicationsdir} %{buildroot}%{_kde_applicationsdir}/%{name}.desktop

sed -i 's,kplayer.png,kplayer,g' %{buildroot}%{_kde_applicationsdir}/%{name}.desktop

%find_lang %{name} --with-html

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(644,root,root,755)
%attr(0755,root,root) %_kde_bindir/*
%_kde_appsdir/%name
%_kde_iconsdir/*/*/*/*
%_kde_libdir/kde4/*
%_kde_datadir/applications/kde4/*.desktop
%_kde_datadir/kde4/services/*.desktop
%_kde_datadir/kde4/services/ServiceMenus/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2625 |21cr|kpovmodeler-1.1.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A modeling and composition program
Name:		kpovmodeler
Version:	1.1.3
Release:	9
License:	GPLv2+
Group:		Graphics
Url:		http://www.kpovmodeler.org
Source0:	http://fr2.rpmfind.net/linux/KDE/stable/4.1.0/src/extragear/%{name}-%{version}-kde4.1.0.tar.bz2
Patch0:		kpovmodeler-1.1.3-kde4.1.0-cmake.patch
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)

%description
Program to enter scenes for the 3D rendering engine PovRay.

%files -f %{name}.lang
%{_kde_bindir}/%{name}
%{_kde_libdir}/kde4/*.so
%{_kde_datadir}/dbus-1/interfaces/org.kde.%{name}.xml
%{_kde_datadir}/applications/kde4/%{name}.desktop
%{_kde_appsdir}/%{name}/
%{_kde_iconsdir}/*/*/*/*.png

#--------------------------------------------------------------------

%define major 0
%define libname %mklibname lkpovmodeler %{major}

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 1.1.3-6

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_kde_libdir}/liblkpovmodeler.so.%{major}*

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-kde4.1.0
%patch0 -p1

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_kde_libdir}/*.so

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2626 |21cr|kprinter4-10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Print PostScript documents with KDE print dialog
Name:		kprinter4
Version:	10
Release:	4
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://github.com/credativ/kprinter4
Source0:	https://github.com/credativ/kprinter4/archive/%{name}-%{version}.tar.gz
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(libspectre)
Requires:	ghostscript
Requires:	poster
Requires:	psutils

%description
KPrinter4 is a simple stand-alone PostScript document printer modelled after
the KDE 4 print dialog. It can be used in place of /bin/lpr in order to better
control the print setup of non-KDE applications.

Main features:
- Printing PostScript documents with KDE 4 print dialog.
- Scaling and positioning of documents.
- Poster printing (backported from the known KDE 3 KPrinter tool).

%files -f %{name}.lang
%doc AUTHORS LICENCE README.md
%{_kde_bindir}/%{name}
%{_kde_applicationsdir}/%{name}.desktop
%{_kde_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2627 |21cr|kradio5-5.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

Summary:	Listen to the radio for plasma
Name:		kradio5
Version:	5.0.0
Release:	4
Epoch:		2
License:	LGPLv2+
Group:		Sound
Url:		http://kradio.sourceforge.net/
Source0:	kradio5-5.0.0-beta1.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	appstream-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	boost-devel
BuildRequires:	gettext-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5package-devel
BuildRequires:	%{_lib}lirc_client-devel
BuildRequires:	%{_lib}mms-devel
BuildRequires:	%{_lib}lame-devel
BuildRequires:	%{_lib}ogg-devel
BuildRequires:	%{_lib}v4l-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavresample)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x264)
Requires:	lirc

%description
Listen to the radio for plasma.

%files -f %{name}.lang
%{_datadir}/doc/kradio5/
%{_kde5_bindir}/%{name}
%{_kde5_bindir}/%{name}-convert-presets
%{_kde5_applicationsdir}/%{name}.desktop
%{_kde5_libdir}/kradio5/plugins/
%{_kde5_datadir}/kradio5/presets/
%{_kde5_datadir}/kradio5/default-dot-lircrc
%{_iconsdir}//hicolor/*/*/

#--------------------------------------------------------------------

%prep
%setup -qn kradio5-5.0.0-beta1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2628 |21cr|kradioripper-0.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ripping internet radios
Name:		kradioripper
Version:	0.6
Release:	6
License:	GPLv2+
Group:		Sound
Url:		http://kradioripper.sourceforge.net/
Source0:	http://downloads.sourceforge.net/kradioripper/%{name}-%{version}.tar.bz2
BuildRequires:	kdelibs4-devel
Requires:	streamripper >= 1.63

%description
KRadioRipper is a KDE4 program for ripping internet radios. It is based on
StreamRipper.

%files -f %{name}.lang
%doc NEWS
%{_kde_bindir}/*
%{_kde_applicationsdir}/*.desktop
%{_kde_appsdir}/%{name}/
%{_kde_datadir}/config.kcfg/*.kcfg

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}

find . -perm 600 -exec chmod 644 "{}" \;

%build
%cmake_kde4 -DWITHOUT_LIBPROXY=YES
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2629 |21cr|kraft-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE software to manage office documents in the office
Name:		kraft
Version:	1.1
Release:	1
License:	GPLv2+
Group:		Office
Url:		http://volle-kraft-voraus.de
Source0:	https://github.com/dragotin/kraft/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		kraft-remove-git-sha.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5contacteditor-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(libctemplate)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	python3-pypdf
Requires:	python3-reportlab
Requires:	sqlite3-tools

%description
Kraft is KDE software to help to create and manage office documents such
as offers and invoices in the small enterprise. It supports easy document
creation, templates with calculation, customer management through the KDE
addressbook, highly configurable PDF output and more.

See the website http://volle-kraft-voraus.de for more information.

%files -f %{name}.lang
%doc AUTHORS COPYING README.md Releasenotes.txt TODO
%{_kde5_bindir}/%{name}
%{_kde5_bindir}/findcontact
%{_kde5_applicationsdir}/*.desktop
%{_kde5_datadir}/%{name}
%{_kde5_datadir}/config.kcfg/databasesettings.kcfg
%{_kde5_datadir}/config.kcfg/kraftsettings.kcfg
%{_kde5_datadir}/kxmlgui5/kraft/katalogview.rc
%{_kde5_datadir}/kxmlgui5/kraft/kraftui.rc
%{_datadir}/metainfo/de.volle_kraft_voraus.kraft.appdata.xml
%{_kde5_iconsdir}/hicolor/scalable/apps/kraft.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}
chmod 755 %{buildroot}%{_kde5_datadir}/%{name}/tools/erml2pdf.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2630 |21cr|krank-8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oversion	07

Name:		krank
Version:	8
Release:	1
Summary:	Mouse magnet manipulation game with nifty graphics
Group:		Games/Puzzles
License:	Public Domain
URL:		http://krank.sourceforge.net/
Source:		%{name}-%{oversion}.tar.bz2
Source1:	%{name}.png
BuildRequires:	imagemagick
Requires:	pygame
Buildarch:	noarch

%description
A game of dexterity, being somewhere between Breakout and billiard, where
the aim of each level is to shove floating stones towards compatible static
stones. You control a short chain of stones with your mouse to achieve that.

%prep
%setup -q -n %{name}-%{oversion}
rm -r levels/images/.DS_Store

%build
rm src/*.pyc
sed -i '/KRANKPATH=/s@=.*@=%{_gamesdatadir}/%{name}@' %{name}
sed -i '/^python/i\
export APPDATA="$HOME/.krank"\
mkdir -p "$APPDATA"\
cd $KRANKPATH
' %{name}
for N in 16 32 64 128; do convert %{SOURCE1} -resize ${N}x${N} $N.png; done

%install
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
for D in fonts html levels sounds src; do cp -a $D %{buildroot}%{_gamesdatadir}/%{name}/; done
install -D %{name} %{buildroot}%{_gamesbindir}/%{name}
install -D 16.png %{buildroot}%{_miconsdir}/%{name}.png
install -D 32.png %{buildroot}%{_liconsdir}/%{name}.png
install -D 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# menu-entry
mkdir -p  %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Krank
Comment=Mouse magnet manipulation game
Exec=krank
Icon=krank
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

%files
%defattr(644,root,root,755)
%doc CHANGELOG.txt Info.plist README
%attr(755,root,root) %{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2631 |21cr|krb5-auth-dialog-3.26.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define build_heimdal 0
%{?_with_heimdal: %{expand: %%global build_heimdal 1}}

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Kerberos 5 authentication dialog
Name:		krb5-auth-dialog
Version:	3.26.1
Release:	1
License:	GPLv2+
Group:		System/Base
URL:		http://www.redhat.com/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz

BuildRequires: flex
BuildRequires: bison
BuildRequires: GConf2
BuildRequires: pkgconfig(gnome-doc-utils)
BuildRequires: intltool
BuildRequires: itstool
BuildRequires: cap-devel
BuildRequires: pam-devel
BuildRequires: pkgconfig(dbus-1)
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(gconf-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libnm)
BuildRequires: pkgconfig(libnotify)
%if %build_heimdal
BuildRequires: heimdal-devel
%else
BuildRequires: krb5-devel
%endif
Buildrequires: scrollkeeper

%description
This package contains a dialog that warns the user when their Kerberos
tickets are about to expire and lets them renew them.

%prep
%setup -q

%build
%configure \
	--enable-debug \
	--disable-static
%make

%install
%makeinstall_std
%find_lang %{name} --with-gnome

%files -f %{name}.lang
%doc README AUTHORS NEWS
%{_bindir}/krb5-auth-dialog
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/libka-plugin-afs.*
%{_libdir}/%{name}/plugins/libka-plugin-dummy.*
%{_libdir}/%{name}/plugins/libka-plugin-pam.*
%{_datadir}/icons/hicolor/*/status/*
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/xdg/autostart/krb5-auth-dialog.desktop
%{_datadir}/applications/krb5-auth-dialog.desktop
%{_datadir}/dbus-1/services/org.gnome.KrbAuthDialog.service
%{_libdir}/krb5-auth-dialog/plugins/libka-plugin-gnomelock.so
%{_datadir}/GConf/gsettings/org.gnome.KrbAuthDialog.convert
%{_datadir}/appdata/krb5-auth-dialog.appdata.xml
%{_datadir}/glib-2.0/schemas/org.gnome.KrbAuthDialog.gschema.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2632 |21cr|krecorder-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Video player for Plasma Mobile
Name:		krecorder
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kirigami-addons-devel

%description
Audio recorder for Plasma Mobile.

%files -f %{name}.lang
%{_kde5_bindir}/krecorder
%{_kde5_applicationsdir}/org.kde.krecorder.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.krecorder.svg
%{_appdatadir}/org.kde.krecorder.appdata.xml

#-------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2633 |21cr|krename-5.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A powerful batch renamer for KDE
Name:		krename
Version:	5.0.2
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.krename.net/
Source0:	http://download.kde.org/stable/krename/%{version}/src/%{name}-%{version}.tar.xz
Source1:	krename-5.0.1_ru.tar.gz
Patch0:		0001-Fix-build-with-exiv2-0.28.patch
Patch1:		krename-podofo.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5js-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	podofo-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Krename is a very powerful batch file renamer for KDE4 which can rename a list
of files based on a set of expressions. It can copy/move the files to another
directory or simply rename the input files.

Krename supports many conversion operations, including conversion of a filename
to lowercase or to uppercase, conversion of the first letter of every word to
uppercase, adding numbers to filenames, finding and replacing parts of the
filename, and many more. It can also change access and modification dates,
permissions, and file ownership.

%files -f %{name}.lang
%doc AUTHORS README.md
%{_kde5_bindir}/%{name}
%{_kde5_services}/ServiceMenus/*.desktop
%{_kde5_applicationsdir}/*.desktop
%{_kde5_iconsdir}/*/*/apps/*.*
%{_appdatadir}/org.kde.krename.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2634 |21cr|kroniax-1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sidescrolling skill-based game
Name:		kroniax
Version:	1.2
Release:	6
License:	MIT
Group:		Games/Arcade
Url:		http://www.indiedb.com/games/kroniax
# Git repo: https://github.com/AlexAUT/Kroniax
Source0:	%{name}-%{version}.tar.xz
Patch0:		kroniax-1.2-mga-datadir.patch
Patch1:		kroniax-1.2-fix-missing-include-cmath.patch
Patch2:		kroniax-1.2-linkage.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(sfml-all)

%description
Kroniax is a sidescroller skill-based game. The main goal is to steer
a ship through each level without touching the walls. Players have to
steer their ship up by pressing the spacebar to counteract gravity.

A map editor is included to create custom maps.

%files
%doc README.md
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake
%make

%install
install -D -m755 build/Kroniax %{buildroot}%{_gamesbindir}/%{name}

install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a data/* %{buildroot}%{_gamesdatadir}/%{name}

install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Kroniax
Comment=%{summary}
GenericName=Skill game
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Game;ActionGame;
EOF

install -D -m644 data/images/icon.png \
    %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2635 |21cr|kronometer-2.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Stopwatch application built for the KDE
Name:		kronometer
Version:	2.2.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.aelog.org/
Source0:	ftp://ftp.kde.org/pub/kde/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		kronometer-2.2.1-russian.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Kronometer is a stopwatch application built for the KDE Desktop Environment.
Kronometer’s main features are the following:
- Start/pause/resume stopwatch widget
- Lap recording
- Lap times sorting
- Reset stopwatch and lap times
- Time format settings
- Times saving and resuming
- Font and color customization
- Lap times export.

%files -f %{name}.lang
%doc COPYING README
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/org.kde.kronometer.desktop
%{_kde5_datadir}/config.kcfg/kronometer.kcfg
%{_kde5_iconsdir}/*/*/*/%{name}.*
%{_kde5_docdir}/HTML/*/kronometer/*
%{_kde5_mandir}/man1/kronometer.1*
%{_kde5_mandir}/*/man1/kronometer.1*
%{_appdatadir}/org.kde.kronometer.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2636 |21cr|krossword-0.18.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define kdeid 166281

Summary:	A crossword puzzle game and editor for KDE
Name:		krossword
Version:	0.18.2
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://bitbucket.org/krossword/krossword
Source0:	http://kde-apps.org/CONTENT/content-files/%{kdeid}-%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
BuildRequires:	kdegames4-devel

%description
Krossword is a crossword playing game and editor for KDE.

You can use it to create new crosswords. It can open and save *.puz-files
(AcrossLite) and it's own *.kwp-files (which are XML files). You can download
lots of crosswords from within the game. You can also print crosswords.

It's based on KrossWordPuzzle.

%files -f %{name}.lang
%doc README.md COPYING
%{_kde_applicationsdir}/%{name}.desktop
%{_kde_appsdir}/%{name}
%{_kde_bindir}/%{name}
%{_kde_configdir}/krossword.knsrc
%{_kde_datadir}/config.kcfg/krossword.kcfg
%{_kde_iconsdir}/hicolor/*/actions/*.png
%{_kde_iconsdir}/hicolor/*/apps/*.png
%{_kde_iconsdir}/hicolor/*/mimetypes/*.png
%{_kde_libdir}/kde4/crosswordthumbnail.so
%{_kde_services}/crosswordthumbnail.desktop
%{_datadir}/mime/packages/krossword.xml

#--------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build
%{find_lang} %{name} --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2637 |21cr|ksh-2020.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		ksh
Summary:	The Original ATT Korn Shell
Version:	2020.0.0
Release:	1
Group:		Shells
License:	EPL
URL:		http://www.kornshell.com/
Source0:	https://github.com/att/ast/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	kshcomp.conf
Source2:	kshrc.rhs
Source3:	dotkshrc

Patch1: ksh-2020.0.0-cve-2019-14868.patch

Provides: /bin/ksh

BuildRequires:  meson
# This package is require by test cases
# It should be enabled when we start running test cases in package builds
# BuildRequires:  glibc-langpack-zh
BuildRequires:  ed
Conflicts:      pdksh
Requires(post): grep, coreutils, systemd-units
Requires(postun): sed

Provides:       /bin/ksh
Provides:       /usr/bin/ksh

%description
KornShell is a shell programming language, which is upward compatible
with "sh" (the Bourne Shell).

%files 
%doc src/cmd/ksh93/COMPATIBILITY src/cmd/ksh93/RELEASE src/cmd/ksh93/TYPES 
# LICENSE file is missing, temporarily?
%{_bindir}/ksh93
%{_bindir}/shcomp93
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/skel/.kshrc
%config(noreplace) %{_sysconfdir}/kshrc
%config(noreplace) %{_sysconfdir}/binfmt.d/kshcomp.conf

%post
for s in /bin/ksh /usr/bin/ksh
do
  if [ ! -f /etc/shells ]; then
        echo "$s" > /etc/shells
  else
        if ! grep -q '^'"$s"'$' /etc/shells ; then
                echo "$s" >> /etc/shells
        fi
  fi
done

/bin/systemctl try-restart systemd-binfmt.service >/dev/null 2>&1 || :

# Suppress any error encountered while upgrading from ksh-20120801-250
%{_sbindir}/alternatives --install /bin/ksh ksh \
            /bin/ksh93 50 \
    --slave %{_mandir}/man1/ksh.1.gz ksh-man \
            %{_mandir}/man1/ksh93.1.gz \
    --slave /bin/shcomp shcomp93 \
            /bin/shcomp93 2>/dev/null

%preun
# Do not remove ksh from alternatives on upgrades
if [ $1 -eq 0 ]; then
    %{_sbindir}/alternatives --remove ksh /bin/ksh93
fi

%postun
for s in /bin/ksh /usr/bin/ksh
do
  if [ ! -f $s ]; then
	sed -i '\|^'"$s"'$|d' /etc/shells
  fi
done

# ksh-20120801-250 did not use alternatives, so while upgrading ensure that
# alternatives are set correctly
%triggerpostun -- ksh < 1:2020.0.0-0.1
%{_sbindir}/alternatives --auto ksh


#-----------------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{version} -p1

%build
%meson -Dbuild-api-tests=false
%meson_build

%install
%meson_install
# Allow switching between different ksh implementations (for e.g. mksh) through alternatives.
mv %{buildroot}/%{_bindir}/ksh %{buildroot}/%{_bindir}/ksh93
mv %{buildroot}/%{_bindir}/shcomp %{buildroot}/%{_bindir}/shcomp93
# http://mesonbuild.com/Release-notes-for-0-49-0.html#manpages-are-no-longer-compressed-implicitly
# meson 0.49 does not compress man pages
if [[ -e  %{buildroot}/%{_mandir}/man1/ksh.1.gz ]]
then
    mv %{buildroot}/%{_mandir}/man1/ksh.1.gz %{buildroot}/%{_mandir}/man1/ksh93.1.gz
else
    mv %{buildroot}/%{_mandir}/man1/ksh.1 %{buildroot}/%{_mandir}/man1/ksh93.1
fi

install -p -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/binfmt.d/kshcomp.conf
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/kshrc
install -p -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/skel/.kshrc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2638 |21cr|kshowmail-4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Show and delete mail on pop3 servers
Name:		kshowmail
Version:	4.1
Release:	5
License:	GPLv2+
Group:		Networking/Mail
Url:		http://sourceforge.net/projects/kshowmail
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	kdelibs4-devel
BuildRequires:	kdepimlibs4-devel

%description
KShowmail is a KDE utility to show headers or the complete mails on pop3
servers without transferring them to the local mail client. Unpleasant mails
can be deleted on the server. The information can be refreshed via timers.

%files -f %{name}.lang
%{_bindir}/kshowmail
%{_libdir}/kde4/kcm_kshowmailconfig*
%{_datadir}/applications/kde4/kshowmail.desktop
%{_datadir}/apps/kshowmail
%{_datadir}/icons/hicolor/*/apps/kshowmail.png
%{_datadir}/kde4/services/kshowmailconfig*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2639 |21cr|kshutdown-5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#########################
%define build_git 0
##########################
%define	oname		KShutdown

Name:		kshutdown
Version:	5.2
%if %{build_git}
%define	prerel		beta
Release:	%{prerel}3
%else
Release:	2
%endif
Summary:	Advanced shut down utility for KDE
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		http://kshutdown.sourceforge.net/
%if %{build_git}
Source0:	http://sourceforge.net/projects/%{name}/files/%{oname}/3.0%20Beta%207/%{name}-source-%{version}-%{prerel}.zip
%else
Source0:	http://sourceforge.net/projects/%{name}/files/%{oname}/%{version}/%{name}-source-%{version}.zip
%endif
Source1:    kshutdown-5.2-ru.tar.gz
Patch0:     kshutdown-desktop.patch
BuildRequires:	desktop-file-utils
BuildRequires:	extra-cmake-modules
BuildRequires:	kde5-macros
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets) 
BuildRequires:	pkgconfig(Qt5Xml)

%description
KShutDown is an advanced shut down utility for KDE.
Features:
- Shut Down (logout and halt the system)
- Reboot (logout and reboot the system)
- Lock Screen (lock the screen using a screen saver)
- Logout (end the session and logout the user)
- Extras (user commands)
- Wizard
- Time and delay options
- Command line support
- System tray
- Sounds
- Kiosk support
- And more...

%files -f %{name}.lang
%doc TODO ChangeLog README.html
%{_kde5_bindir}/%{name}
%{_kde5_notificationsdir}/%{name}.notifyrc
%{_kde5_applicationsdir}/%{name}.desktop
%{_kde5_iconsdir}/hicolor/*/*/%{name}.*

#------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5 -DKS_KF5=true
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2640 |21cr|ksi-3.9.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This file is provided by 'ksi' package
%global __requires_exclude /usr/bin/ksi

%define major 10
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Implementation of the Scheme programming language
Version:	3.9.0
Name:		ksi
Release:	7
License:	BSD
Group:		Development/Other
Url:		http://ksi.sourceforge.net/
Source0:	http://downloads.sourceforge.net/ksi/%{name}-%{version}.tar.gz
BuildRequires:	gc-devel
BuildRequires:	gmp-devel
BuildRequires:	readline-devel

%description
KSI Scheme is an implementation of the Scheme programming language written
in C.

It can be used as both a stand-alone interpreter and an extension library.
However, the documentation is in Russian.

%files
%doc README INSTALL TODO ChangeLog
%{_bindir}/*
%exclude %{_bindir}/ksi-config
%{_datadir}/ksi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Implementation of the Scheme programming language
Group:		System/Libraries
Conflicts:	%{_lib}ksi1 < 3.9.0-5
Obsoletes:	%{_lib}ksi1 < 3.9.0-5

%description -n %{libname}
KSI Scheme is an implementation of the Scheme programming language written
in C.

It can be used as both a stand-alone interpreter and an extension library.
However, the documentation is in Russian.

%files -n %{libname}
%{_libdir}/ksi/libksi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Implementation of the Scheme programming language
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
KSI Scheme is an implementation of the Scheme programming language written
in C.

It can be used as both a stand-alone interpreter and an extension library.
However, the documentation is in Russian.

%files -n %{devname}
%{_bindir}/ksi-config
%dir %{_includedir}/ksi
%{_includedir}/ksi/*
%{_libdir}/ksi/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2641 |21cr|ksnip-1.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Screenshot tool
Name:		ksnip
Version:	1.9.2
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		https://github.com/ksnip/ksnip
Source:		https://github.com/ksnip/ksnip/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	extra-cmake-modules
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Help)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb-xfixes)
BuildRequires:  kimageannotator-devel
BuildRequires:  kcolorpicker-devel

%description
Ksnip is a Qt based cross-platform screenshot tool that provides many
annotation features for your screenshots.

%files
%doc CHANGELOG.md README.md
%{_kde5_bindir}/%{name}
%{_kde5_datadir}/%{name}/
%{_kde5_datadir}/applications/org.ksnip.ksnip.desktop
%{_kde5_iconsdir}/hicolor/scalable/apps/ksnip.svg
%{_appdatadir}/org.ksnip.ksnip.appdata.xml

#----------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2642 |21cr|ksoprano-0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI for querying and manipulating RDF data
Name:		ksoprano
Version:	0.2
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php?content=116756
Source0:	116756-%{name}.tgz
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(shared-desktop-ontologies)
BuildRequires:	pkgconfig(soprano)

%description
KSoprano is a GUI for querying and manipulating RDF data.

%files
%{_kde_bindir}/ksoprano
%{_kde_appsdir}/ksoprano/ksopranoui.rc

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2643 |21cr|kst-2.0.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libkst2core %mklibname kst2core %{major}
%define libkst2math %mklibname kst2math %{major}
%define libkst2widgets %mklibname kst2widgets %{major}

Summary:	Program for looking at data streams
Name:		kst
Version:	2.0.8
Release:	6
License:	GPLv2+
Group:		Sciences/Other
Url:		http://kst.kde.org/
Source0:	http://downloads.sourceforge.net/kst/Kst-%{version}.tar.gz
# Fix calls to set_target_properties in KstMacros.cmake
# https://bugs.kde.org/show_bug.cgi?id=322286
Patch0:		kst-2.0.8-properties.patch
# patch from branch kst2.0.8
Patch1:		kst2.0.8-disable-last-value-option-in-ascii-reader-when-threa.patch
Patch2:		nest.patch
Patch3:		kst-gsl21.patch
Patch4:		kst-qreal.patch
Patch5:		kst-netcdf.patch
Patch6:		kst-qt5.patch
Patch7:		kst-netsdf-headers.patch
BuildRequires:	cmake
BuildRequires:	getdata-devel
BuildRequires:	hdf5-devel
BuildRequires:	qt5-devel
BuildRequires:	qt5-linguist
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(matio)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	netcdf-devel
BuildRequires:	pkgconfig(zlib)

%description
kst is a program for looking at data streams. It can plot:
 - x-y plots
 - power spectra
 - histograms
 - equations (including equations of data streams)
 - data in files which are being updated as data is being logged, in
   which case in can act as a plotter for a chart recorder
 - much more

Kst supports realtime viewing and manipulation of streaming data.

%files -f %{name}.lang
%{_bindir}/kst2
%{_mandir}/man1/kst2.1*
%dir %{_libdir}/kst2
%{_libdir}/kst2/plugins/*
%{_datadir}/applications/kst2.desktop
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%package -n %{libkst2core}
Summary:	Kst shared library
Group:		System/Libraries

%description -n %{libkst2core}
Kst shared library.

%files -n %{libkst2core}
%{_libdir}/libkst2core.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libkst2math}
Summary:	Kst shared library
Group:		System/Libraries

%description -n %{libkst2math}
Kst shared library.

%files -n %{libkst2math}
%{_libdir}/libkst2math.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libkst2widgets}
Summary:	Kst shared library
Group:		System/Libraries

%description -n %{libkst2widgets}
Kst shared library.

%files -n %{libkst2widgets}
%{_libdir}/libkst2widgets.so.%{major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Kst-%{version}

%build
%cmake \
	-Dkst_qt5=ON \
	-Dkst_install_prefix=%{_prefix} \
	-Dkst_install_libdir=%{_lib} \
	-Dkst_rpath=0 \
	-Dkst_release=1 \
	-Dkst_verbose=1 \
	-Wno-dev
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_libdir}/*.so  %{buildroot}%{_libdir}/*.a %{buildroot}%{_datadir}/applnk/*/* %{buildroot}%{_datadir}/mimelink/application/*.desktop

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2644 |21cr|kstart-4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		kstart
Version:	4.3
Release:	1
Summary: 	Kinit daemon that uses srvtabs or keytabs
License: 	GPL
Group: 		Networking/Other
URL: 		http://www.eyrie.org/~eagle/software/kstart/
Source0:	http://archives.eyrie.org/software/kerberos/%{name}-%{version}.tar.gz
Source1:	kstart.service
BuildRequires:	krb5-devel

%description
k4start, k5start, and krenew are modified versions of kinit which add support
for running as a daemon to maintain a ticket cache, running a command with
credentials from a keytab and maintaining a ticket cache until that command
completes, obtaining AFS tokens (via an external aklog) after obtaining
tickets, and creating an AFS PAG for a command. They are primarily useful in
conjunction with long-running jobs; for moving ticket handling code out of
servers, cron jobs, or daemons; and to obtain tickets and AFS tokens with a
single command. 

%prep
%setup -q

%build
%configure --disable-k4start
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_unitdir}
install -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/kstart.service
install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
cat > %{buildroot}%{_sysconfdir}/sysconfig/kstart <<'EOF'
# kstart service configuration file
USER=apache
PRINCIPAL=HTTP/$(hostname)
KEYTAB=/etc/krb5.keytab
PERIOD=10
OPTIONS=
EOF

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%doc README TODO
%{_bindir}/k5start
%{_bindir}/krenew
%{_mandir}/man1/k5start.1*
%{_mandir}/man1/krenew.1*
%{_unitdir}/kstart.service
%config(noreplace) %{_sysconfdir}/sysconfig/kstart

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2645 |21cr|ksuperkey-0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ksuperkey
Summary:	A service to an open application launcher in KDE with Super key
Version:	0.4
Release:	3
Group:		Graphical desktop/KDE
License:	GPLv3+
# And also https://github.com/hanschen/ksuperkey
Url:		https://github.com/hanschen/ksuperkey
Source:		https://github.com/hanschen/ksuperkey/archive/v0.4.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	kde4-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)

%description
KSuperKey allows you to open the application launcher in KDE Plasma Desktop
using the Super key (also known as the "Windows key"). If you hold down the
Super key it will still act as a modifier key, allowing you to use it for
other keyboard shortcuts.

KSuperKey is a small application that runs in the background as a daemon.
It was forked from xcape by Albin Olsson: https://github.com/alols/xcape

%files
%{_kde_bindir}/%{name}
%{_kde_autostart}/%{name}.desktop

#------------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall_std

# Autostart service code, from git (should be removed when 0.4 is released)
mkdir -p %{buildroot}%{_kde_autostart}
cat > %{buildroot}%{_kde_autostart}/%{name}.desktop << EOF
[Desktop Entry]
Exec=ksuperkey
X-DBUS-StartupType=none
Name=ksuperkey
Type=Service
X-KDE-StartupNotify=false
OnlyShowIn=KDE;
X-KDE-autostart-phase=2
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2646 |21cr|ktikz-0.13.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Program for creating diagrams with TikZ
Name:		ktikz
Version:	0.13.2
Release:	6
License:	GPLv3+
Group:		Graphics
Url:		http://www.hackenberger.at/ktikz/
Source0:	https://github.com/fhackenberger/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
# Use xdg-open instead of kwrite as defaut editor in qtikz
Patch0:         %{name}-0.12-default_editor.patch
# Fix PGF manual path
Patch1:         %{name}-0.13.2-pgfmanual.patch
BuildRequires:  cmake
BuildRequires:  kf5doctools-devel
BuildRequires:  kf5iconthemes-devel
BuildRequires:  kf5parts-devel
BuildRequires:  kf5texteditor-devel
BuildRequires:  kf5xmlgui-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  qt5-linguist-tools
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  desktop-file-utils
BuildRequires:  extra-cmake-modules
BuildRequires:  gcc-c++
BuildRequires:  gettext
BuildRequires:  kf5kdelibs4support-devel
BuildRequires:  appstream-glib-devel
BuildRequires:  pkgconfig(poppler)
BuildRequires:  pkgconfig(poppler-qt5)
BuildRequires:  qt5-tools
Requires:	poppler
Requires:	tetex-latex

%description
KtikZ is a small KDE application for creating diagrams with TikZ.

%files -f %{name}.lang
%doc Changelog LICENSE.* TODO examples/
%{_kde5_bindir}/%{name}
%{_qt5_plugindir}/*.so
%{_kde5_datadir}/applications/kde5/%{name}.desktop
%{_kde5_datadir}/config.kcfg/%{name}.kcfg
%{_kde5_datadir}/%{name}part/
%{_kde5_datadir}/kxmlgui5/%{name}/
%{_kde5_datadir}/kservices5/%{name}part.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/metainfo/%{name}.appdata.xml
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package -n qtikz
Summary:	Program for creating diagrams with TikZ
Group:		Graphics

%description -n qtikz
QtikZ is a small application for creating diagrams with TikZ.

%files -n qtikz
%doc Changelog LICENSE.* TODO examples/
%{_bindir}/qtikz
%{_datadir}/qtikz/*
%{_datadir}/applications/qtikz.desktop
%{_datadir}/mime/packages/qtikz.xml
%{_datadir}/metainfo/qtikz.appdata.xml
%{_mandir}/man1/qtikz.*
%{_iconsdir}/hicolor/*/apps/qtikz.*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
# Build qtikz
export PATH="$PATH:%{_qt5_bindir}"
%qmake_qt5
make

# Build ktikz
%cmake_kde5
%make

%install
# Install ktikz
make install/fast DESTDIR=%{buildroot} -C build
# Install qtikz
%makeinstall_std INSTALL_ROOT=%{buildroot}

# Delete qtikz locale files wrongly installed in ktikz directories
rm -r %{buildroot}%{_datadir}/%{name}/locale/

%find_lang %{name} --with-kde --with-html
%find_lang qtikz --with-qt

# Install AppData files
install -Dpm 0644 data/%{name}.appdata.xml %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
# Since no AppData file is provided for qtikz, create one from the ktikz one
sed \
    "s|ktikz\.desktop|qtikz.desktop|g; s|KtikZ|QtikZ|g" \
    data/%{name}.appdata.xml >%{buildroot}%{_datadir}/metainfo/qtikz.appdata.xml

# Remove useless license file in qtikz directories
rm %{buildroot}%{_datadir}/qtikz/LICENSE.GPL2

# Install QTikZ icon in /usr/share/icons/ and update desktop file for
# integration with appstream-data
install -Dpm 0644 app/icons/qtikz.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/qtikz.svg
for i in 22 128; do
    install -Dpm 0644 app/icons/qtikz-$i.png %{buildroot}%{_datadir}/icons/hicolor/${i}x$i/apps/qtikz.png
done
desktop-file-edit --set-icon=qtikz %{buildroot}%{_datadir}/applications/qtikz.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2647 |21cr|ktrip-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Public transport assistant for Plasma Mobile
Name:		ktrip
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	kf5auth-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	qqc2-desktop-style-devel


BuildRequires:	kpublictransport-devel

%description
Public transport assistant for Plasma Mobile.

%files -f %{name}.lang
%{_kde5_bindir}/ktrip
%{_kde5_applicationsdir}/org.kde.ktrip.desktop
%{_appdatadir}/org.kde.ktrip.appdata.xml
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.ktrip.svg

#----------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2648 |21cr|ktsuss-2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight and simple frontend for su command
Name:		ktsuss
Version:	2
Release:	4
License:	BSD
Group:		System/Base
Url:		http://code.google.com/p/%{name}
source0:	http://ktsuss.googlecode.com/files/%{name}-%{version}.tar.gz
patch0:		ktsuss-2.printf.patch
BuildRequires:	pkgconfig(gtk+-2.0)

%description
ktsuss stands for "keep the su simple, stupid", and as the 
name says, is a graphical version of su written in C and 
GTK+ 2.The idea of the project is to remain simple and bug 
free.

%prep
%setup -q %{name}-%{version}
%patch0 -p1 -b .printf

%build
%configure

%make

%install
%makeinstall_std

%files
%defattr(-,root,root)
%doc README Changelog
%attr(4755,root,root)%{_bindir}/ktsuss
%{_datadir}/pixmaps/ktsuss.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2649 |21cr|kubernetes-1.20.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug %nil
%define		debug_package %nil

Name:		kubernetes
Version:	1.20.4
Release:	1
Summary:	Production-Grade Container Scheduling and Management
Group:		Development/Other
License:	ASL 2.0
URL:		https://kubernetes.io
Source0:	https://github.com/kubernetes/kubernetes/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/kubernetes/release/master/packages/rpm/kubelet.service
Source2:	https://raw.githubusercontent.com/kubernetes/release/master/packages/rpm/10-kubeadm-post-1.11.conf
Source3:	https://raw.githubusercontent.com/kubernetes/release/master/packages/rpm/kubelet.env
Source10:	%{name}.rpmlintrc
BuildRequires:	go >= 1.15
BuildRequires:	git-core
#BuildRequires:	upx

%description
Kubernetes is an open source system for managing containerized
applications across multiple hosts; providing basic mechanisms
for deployment, maintenance, and scaling of applications.

#------------------------------------------------------------

%package -n kubectl
Summary:	Container Cluster Manager - Kubernetes client tools
Group:		Development/Other

%description -n kubectl
Command-line utility for interacting with a Kubernetes cluster

%files -n kubectl
%{_bindir}/kubectl

#------------------------------------------------------------

%package -n	kubeadm
Summary:	Command-line utility for administering a Kubernetes cluster
Group:		Development/Other
Requires:	kubelet >= 1.20.0
Requires:	kubectl >= 1.20.0
Requires:	cni-plugins >= 0.8.6
Requires:	cri-tools >= 1.20.0

%description -n	kubeadm
Command-line utility for deploying a Kubernetes cluster

%files -n	kubeadm
%{_bindir}/kubeadm

#------------------------------------------------------------

%package -n kubelet
Summary:	Container Cluster Manager - Kubernetes Node Agent
Group:		Development/Other
Requires:	conntrack-tools
Requires:	ebtables
Requires:	ethtool
Requires:	iproute
Requires:	iptables >= 1.4.21
Requires:	cni-plugins >= 0.8.6
Requires:	socat
Requires:	util-linux
Requires:	systemd

%description -n kubelet
The node agent of Kubernetes, the container cluster manager

%files -n kubelet
%{_bindir}/kubelet
%{_unitdir}/kubelet.service
%{_unitdir}/kubelet.service.d/10-kubeadm.conf
%{_sysconfdir}/kubernetes/manifests/
%{_sysconfdir}/sysconfig/kubelet

#------------------------------------------------------------

%package tools
Summary:	Kubernetes tools
Group:		Development/Other

%description tools
Kubernetes tools

%files tools
%{_bindir}/kube-*

#------------------------------------------------------------

%package docs
Summary:	Documentation for Kubernetes
Group:		Documentation

%description docs
Documentation for Kubernetes

%files docs
%doc docs/admin docs/user-guide docs/yaml README.md LICENSE
%{_mandir}/man1/*

#------------------------------------------------------------

%prep
%setup -q

%build
#create docs
hack/update-generated-docs.sh

make all GOLDFLAGS="-s -w"

#upx _output/bin/kubeadm
#upx _output/bin/kubelet
#upx _output/bin/kubectl
#upx _output/bin/*

%install

#make install
install -dm0755 %{buildroot}%{_bindir}
install -dm0755 %{buildroot}%{_unitdir}/kubelet.service.d/
install -dm0755 %{buildroot}%{_sysconfdir}/sysconfig
install -dm0755 %{buildroot}%{_sysconfdir}/kubernetes/manifests
install -dm0755 %{buildroot}%{_sysconfdir}/sysconfig/kubelet
install -dm0755 %{buildroot}%{_sysconfdir}/cni/net.d
install -dm0755 %{buildroot}%{_libexecdir}/modules-load.d
install -dm0755 %{buildroot}/usr/lib/sysctl.d
install -dm0755 %{buildroot}%{_mandir}/man1

# kubeadm
install -Dm0755 _output/bin/kubeadm %{buildroot}%{_bindir}/kubeadm

# kubelet
install -Dm0755 _output/bin/kubelet %{buildroot}%{_bindir}/kubelet
install -Dm0644 %{SOURCE1} %{buildroot}%{_unitdir}/kubelet.service
install -Dm0644 %{SOURCE2} %{buildroot}%{_unitdir}/kubelet.service.d/10-kubeadm.conf
install -Dm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/kubelet

# kubectl
install -Dm0755 _output/bin/kubectl %{buildroot}%{_bindir}/kubectl

# other bins
install -Dm0755 _output/bin/kube-* %{buildroot}%{_bindir}

# docs
install -Dm0644 docs/man/man1/* %{buildroot}%{_mandir}/man1

%files
%doc README.md LICENSE LICENSES

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2650 |21cr|kuickshow-0.10.2-1.gitae8da8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use git commit for support imlib2
%define commit ae8da8092545298517c26628ef72e42d8b5c2e30
%define commit_short %(echo %{commit} | head -c6)

Summary:	A very fast and comfortable imageviewer
Name:		kuickshow
Version:	0.10.2
Release:	1.git%{commit_short}.1
License:	GPLv2+
Group:		Graphics
Url:		http://www.kde.org
Source0:	https://invent.kde.org/graphics/kuickshow/-/archive/%{commit}/kuickshow-%{commit}.zip
Source10:	kuickshow.rpmlintrc
Patch0:		kuickshow-imlib2.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5X11Extras)
#BuildRequires:	imlib-devel
BuildRequires:	imlib2-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel

%description
KuickShow is a very fast and comfortable imageviewer.

%files -f %{name}.lang
%doc README AUTHORS
%doc %{_docdir}/HTML
%{_bindir}/%{name}
%attr(0644,root,root) %{_datadir}/applications/*.desktop
%{_libdir}/libkdeinit5_kuickshow.so
%{_iconsdir}/hicolor/*/apps/kuickshow.png
%{_datadir}/kuickshow
%{_datadir}/qlogging-categories5/kuickshow.categories

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

sed -i 's/3.28/3.21/' CMakeLists.txt

%build
%cmake -DUSE_IMLIB1=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2651 |21cr|kumir-all-2.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kumir2

Summary:	KUMIR education system
Name:		kumir-all
Version:	2.1.0
Release:	7
License:	GPLv2+
Group:		Education
Url:		http://www.niisi.ru/kumir/
Source0:	https://git.niisi.ru/kumir/kumir2/-/tree/master/%{oname}-%{version}.tar
Source10:	%{name}.rpmlintrc
Patch0:		kumir2-2.1.0-gcc13.patch
#patch from ALT
Patch1:		kumir2-alt-fix-LIB_BASENAME.patch
Patch2:		port-to-python3.patch
# https://github.com/a-a-maly/kumir2/pull/31
Patch3:		0001-fix-pult-copy.patch
#https://github.com/a-a-maly/kumir2/pull/32
Patch4:		fix-update-view-of-vodoley.patch
Patch5:		change-reverseColor-in-Robot-Edit.patch
Patch6:		fix-problem-with-keyboard-switch-language.patch
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sensors)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	boost-devel
BuildRequires:	git-core
BuildRequires:	qt5-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	python3

%description
Complete KUMIR education system.

%files
%{_bindir}/docbook2latex
%{_bindir}/kumir2-bc
%{_bindir}/kumir2-checkcourse
%{_bindir}/kumir2-classic
%{_bindir}/kumir2-courseeditor
%{_bindir}/kumir2-ide
%{_bindir}/kumir2-open
%{_bindir}/kumir2-run
%{_bindir}/kumir2-teacher
%{_bindir}/kumir2-xrun
%{_bindir}/pictomir2course
%{_libdir}/kumir2
%{_datadir}/applications/kumir2-classic.desktop
%{_datadir}/applications/kumir2-ide.desktop
%{_datadir}/applications/kumir2-teacher.desktop
%{_datadir}/kumir2
%{_datadir}/mime/packages/kumir2-mimetypes.xml
%{_datadir}/icons/hicolor/*/apps/*.{png,svg}
%{_datadir}/icons/hicolor/*/mimetypes/*.{png,svg}

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Kumir
Group:		Development/C++

%description devel
Development files for Kumir.

%files devel
%{_includedir}/kumir2-libs
%{_includedir}/kumir2
%{_libdir}/cmake/Kumir2

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

sed -i "s/^Categories=.*$/Categories=Education;Qt;ComputerScience;/" *.desktop
# Remove bundled boost
rm -rf src/3rdparty/boost*

%build
export PATH=%_qt5_bindir:$PATH
%cmake \
	-DUSE_QT=5 \
	-DLIB_BASENAME=%{_lib} \
	-DPROVIDED_VERSION_INFO=TRUE \
	-DGIT_HASH=4cba2673 \
	-DGIT_TIMESTAMP=20230427 \
	-DGIT_TAG=2.1.0-rc11 \
	-DGIT_BRANCH=master
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2652 |21cr|kupfer-321-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Smart, quick launcher
Name:		kupfer
Version:	321
Release:	1
License:	GPLv3+
Group:		System/X11
Url:		https://kupferlauncher.github.io
Source0:	https://github.com/kupferlauncher/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	waf
# autogenerate typelib() requires
BuildRequires:	gobject-introspection-devel
BuildRequires:	python3-docutils
BuildRequires:	python3-gi
BuildRequires:	python3-pyxdg
BuildRequires:	python3-dbus
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	pkgconfig(keybinder-3.0)
BuildRequires:	pkgconfig(libwnck-3.0)
Requires:	python3-cairo
Requires:	python3-gi
Requires:	python3-pyxdg
Requires:	python3-dbus
Recommends:	yelp
BuildArch:	noarch

%description
Kupfer is an interface for quick and convenient access to applications
and their documents.

The most typical use is to find a specific application and launch it.
Kupfer made easily extensible with plugins so that this quick-access
paradigm can be extended to many more objects than just applications.

%files -f %{name}.lang
%license COPYING
%doc README.rst Documentation/*
%doc %{_datadir}/help/*/%{name}
%{_bindir}/%{name}
%{_bindir}/%{name}-exec
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-exec.desktop
%{_datadir}/mime/packages/%{name}-mimetypes.xml
%{_datadir}/Thunar/sendto/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-exec.1*

#------------------------------------------------------------------

%prep
%setup -q
# rm bundled waf to be able to use system one
rm -fvr ./waf ./waflib

%build
%configure_python3_waf
%python3_waf

%install
%python3_waf_install
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2653 |21cr|kvantum-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Kvantum

Summary:	SVG-based theme engine for Qt5 and KDE
Name:		kvantum
Version:	1.0.5
Release:	1
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://github.com/tsujan/Kvantum
Source0:	https://github.com/tsujan/Kvantum/archive/V%{version}.tar.xz?/%{oname}-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
Requires:	%{name}-data = %{EVRD}
Requires:	hicolor-icon-theme



%description
Kvantum is an SVG-based theme engine for Qt5, KDE and LXQt, with an emphasis
on elegance, usability and practicality.

Kvantum has a default dark theme, which is inspired by the default theme of
Enlightenment. Creation of realistic themes like that for KDE was the first
reason to make Kvantum but it goes far beyond its default theme: you could
make themes with very different looks and feels for it, whether they be
photorealistic or cartoonish, 3D or flat, embellished or minimalistic, or
something in between, and Kvantum will let you control almost every aspect of
Qt widgets.

Kvantum also comes with extra themes that are installed as root with Qt5
installation and can be selected and activated by using Kvantum Manager.

%files
%doc %{oname}/{ChangeLog,NEWS,README.md,COPYING}
%{_bindir}/kvantummanager
%{_bindir}/kvantumpreview
%{_qt5_plugindir}/styles/libkvantum.so
%{_datadir}/applications/kvantummanager.desktop
%{_datadir}/icons/hicolor/scalable/apps/kvantum.svg

#----------------------------------------------------------------------------

%package data
Summary:	SVG-based theme engine for Qt5, KDE and LXQt
Group:		Graphical desktop/KDE
Requires:	%{name}
BuildArch:	noarch

%description data
Kvantum is an SVG-based theme engine for Qt5, KDE and LXQt, with an emphasis
on elegance, usability and practicality.

This package contains the data needed Kvantum.

%files data -f %{name}.lang
%doc %{oname}/{ChangeLog,NEWS,README.md,COPYING}
%{_datadir}/Kvantum/
%{_datadir}/applications/kvantummanager.desktop
%{_datadir}/color-schemes/Kv*.colors
%{_datadir}/icons/hicolor/scalable/apps/kvantum.svg
%{_datadir}/themes/Kv*/
%dir %{_datadir}/kvantumpreview
%dir %{_datadir}/kvantumpreview/translations
%dir %{_datadir}/kvantummanager
%dir %{_datadir}/kvantummanager/translations

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
pushd %{oname}
%cmake_qt5
%make


%install
%makeinstall_std -C %{oname}/build

# desktop-file-validate doesn't recognize LXQt
sed -i "s|LXQt|X-LXQt|" %{buildroot}%{_datadir}/applications/kvantummanager.desktop

%find_lang %{name} --all-name --with-qt

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/kvantummanager.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2654 |21cr|kvirc-5.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname KVIrc
%define branch_ver 5.0

%define major 5
%define libname %mklibname kvilib %{major}
%define devname %mklibname kvilib -d

Summary:	Qt IRC client
Name:		kvirc
Version:	5.0.0
Release:	2
License:	GPLv2+ with exceptions
Group:		Networking/IRC
Url:		http://www.kvirc.net
Source0:	https://github.com/kvirc/KVIrc/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		kvirc-headers.patch
BuildRequires:	cmake
BuildRequires:	cmake(ECM)
BuildRequires:	doxygen
BuildRequires:	qt5-macros
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(enchant-2)

%description
Qt-based IRC client with support for themes, transparency, encryption,
many extended IRC features, and scripting.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_libdir}/%{name}/%{branch_ver}/modules/
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/%{branch_ver}
%{_datadir}/%{name}/%{branch_ver}/audio
%{_datadir}/%{name}/%{branch_ver}/config
%{_datadir}/%{name}/%{branch_ver}/defscript
%{_datadir}/%{name}/%{branch_ver}/help
%{_datadir}/%{name}/%{branch_ver}/license
%dir %{_datadir}/%{name}/%{branch_ver}/locale
%{_datadir}/%{name}/%{branch_ver}/modules
%{_datadir}/%{name}/%{branch_ver}/msgcolors
%{_datadir}/%{name}/%{branch_ver}/pics
%{_datadir}/%{name}/%{branch_ver}/themes
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/*/*.png
%{_iconsdir}/hicolor/scalable/*/*.svgz
%{_mandir}/man1/*.1*
%lang(de) %{_mandir}/de/man1/*.1*
%lang(it) %{_mandir}/it/man1/*.1*
%lang(fr) %{_mandir}/fr/man1/*.1*
%lang(pt) %{_mandir}/pt/man1/*.1*
%lang(uk) %{_mandir}/uk/man1/*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for KVirc 5
Group:		System/Libraries

%description -n %{libname}
Shared library provided by KVirc 5.

%files -n %{libname}
%{_libdir}/libkvilib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for KVirc 5
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers for KVirc 5.

%files  -n %{devname}
%{_bindir}/%{name}-config
%{_libdir}/libkvilib.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# set right path to perl headers
sed -i 's|<EXTERN.h>|<%{_libdir}/perl5/CORE/EXTERN.h>|' src/modules/perlcore/libkviperlcore.cpp
sed -i 's|<perl.h>|<%{_libdir}/perl5/CORE/perl.h>|' src/modules/perlcore/libkviperlcore.cpp
sed -i 's|<XSUB.h>|<%{_libdir}/perl5/CORE/XSUB.h>|' src/modules/perlcore/libkviperlcore.cpp

%build
%cmake_qt5 \
    -DWANT_DCC_VIDEO=ON \
    -DWANT_OGG_THEORA=ON \
    -DWANT_KDE=ON \
    -DWANT_ENV_FLAGS=ON

%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64,128x128,scalable}/apps
for i in 16x16 32x32 48x48 64x64 128x128; do \
	cp data/icons/$i/*.png %{buildroot}%{_iconsdir}/hicolor/$i/apps; \
done
cp data/icons/scalable/*.svg* %{buildroot}%{_iconsdir}/hicolor/scalable/apps

rm -f %{name}.lang
find %{buildroot}%{_datadir}/%{name}/%{branch_ver}/locale -name "*.mo" |while read r; do
        LNG=`echo $r |sed -e 's,.*_,,g;s,\.mo,,'`
        echo "%lang($LNG) $r" |sed -e 's,%{buildroot},,' >>%{name}.lang
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2655 |21cr|kvkbd-0.7.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           kvkbd
Version:        0.7.2
Release:        4
Summary:        Virtual keyboard for KDE
Group:          Graphical desktop/KDE
License:        GPLv2+
URL:            http://kde-apps.org/content/show.php?content=56019
Source0:        http://www.kde-apps.org/CONTENT/content-files/56019-%{name}-%{version}.tar.gz
Patch0:         kvkbd-0.7.2-russian_translate.patch

BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xi)
BuildRequires:	kde4-macros

Requires:	kdebase4-runtime

%description
A nice virtual keyboard for KDE.
It has system tray and dock widget, resizeable, with numeric/cursor pad layer.
Dynamic detection of language selected. Auto font resize and button repeat.
CSS Color themes.

%prep
%setup -q
%patch0 -p1

%build
# BUG: this file is in wrong folder, will be fixed in a next version upstream
cp src/standart.* colors/

%cmake_kde4
%make

%install
%makeinstall_std -C build
%find_lang %{name} --with-html

%files -f %{name}.lang
%doc AUTHORS ChangeLog README README.md TODO
%{_bindir}/kvkbd
%{_kde_applicationsdir}/%{name}.desktop
%{_datadir}/apps/kvkbd/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2656 |21cr|kye-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Kye

Summary:        Logic puzzle game with arcade elements
Name:           kye
Version:        1.0
Release:        1
License:        GPLv2+
Group:          Games/Strategy
Url:            http://games.moria.org.uk/kye/
Source0:         http://games.moria.org.uk/kye/download/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        %{name}-edit.desktop
Source3:        %{name}-icon.png
Source4:        %{name}-edit-icon.png
BuildRequires:  pythonegg(setuptools)
BuildRequires:  desktop-file-utils
BuildRequires:  imagemagick
Requires:       pygtk2
Recommends:       %{name}-data

BuildArch:      noarch


%description
This is a clone of the original Kye game for Windows, 
by Colin Garbutt.
Kye is a puzzle game with arcade game elements. 
The game takes place
in a small playing area, where the player controls
Kye - a distinctive green blob. 
The player moves around and tries to collect
all of the diamonds. 
However, there are many other objects in the
game, which can obstruct, trap or kill the Kye.
Kye is one of those games like Chess, 
where a small number of different playing pieces,
obeying simple rules, combine to create a
game of enormous variety and complexity.

%files
%doc COPYING README
%{_bindir}/%{name}
%{_bindir}/%{name}-edit
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}-edit.png
%{py2_puresitedir}/%{name}
%{py2_puresitedir}/*.egg-info

#--------------------------------------------------------------
%prep
%setup -q

%build
%py2_build

%install
%py2_install
pushd %{buildroot}%{_bindir}
mv %{oname} %{name} 
mv %{oname}-edit %{name}-edit

# menu entry
for l in %{SOURCE1} %{SOURCE2} ; do
      desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
      $l
done


# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size %{SOURCE3} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png && \
    convert -strip -resize $size %{SOURCE4} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}-edit.png
 done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2657 |21cr|kylin-screenshot-1.0.0-1.gita6c48.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit a6c48ccd3fa54fb0fd64c736a0102edd865b7f2b
%define commit_short %(echo %{commit} | head -c5)

Summary:	Screenshoting tool from Kylin
Name:		kylin-screenshot
Version:	1.0.0
Release:	1.git%{commit_short}.3
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/UbuntuKylin/kylin-screenshot
Source0:	https://github.com/UbuntuKylin/kylin-screenshot/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:  qmake5
BuildRequires:  qt5-linguist-tools
BuildRequires:  qt5-devel
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  kf5windowsystem-devel
BuildRequires:  ffmpeg-devel
BuildRequires:  gsettings-qt-devel
BuildRequires:  pulseaudio-devel

# glib schema is required
Requires:	qt5-ukui-platformtheme

%description
Screenshoting tool from Kylin

%files -f Internationalization.lang
%license COPYING
%doc README.md CONTRIBUTING.md
%{_bindir}/kylin-screenshot
%{_datadir}/applications/kylin-screenshot.desktop
%{_datadir}/dbus-1/interfaces/org.dharkael.kylinscreenshot.xml
%{_datadir}/dbus-1/services/org.dharkael.kylinscreenshot.service
%{_datadir}/icons/hicolor/*/*/kylin-screenshot.png
%{_datadir}/glib-2.0/schemas/org.ukui.screenshot.gschema.xml
%{_datadir}/metainfo/kylinscreenshot.appdata.xml

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}
# /usr/local -> /usr
sed -i'' -e 's,^#CONFIG += packaging,CONFIG += packaging,' kylin-screenshot.pro

%build
%qmake_qt5
%make

%install
%makeinstall_qt

sed -i'' -e 's,/usr/local/bin,%{_bindir},g' %{buildroot}%{_datadir}/dbus-1/services/org.dharkael.kylinscreenshot.service

%find_lang Internationalization --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2658 |21cr|kyotocabinet-1.2.79-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 16
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define doctarget %{_defaultdocdir}/%{name}-%{version}

Summary:	A lightweight database library
Name:		kyotocabinet
Version:	1.2.79
Release:	1
License:	GPLv3+
Group:		Databases
Url:		http://fallabs.com/kyotocabinet/
Source0:	http://fallabs.com/kyotocabinet/pkg/%{name}-%{version}.tar.gz
BuildRequires:	libtool
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)

%description
Kyoto Cabinet is a library of routines for managing a database. The database is
a simple data file containing records, and each record is a pair of a key and a
value.  Every key and value is an array of bytes with variable length. Both
binary data and character strings can be used as a key or a value. There is
neither a concept of tables nor of data types.

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A lightweight database library
Group:		System/Libraries

%description -n %{libname}
Kyoto Cabinet is a library of routines for managing a database. The database is
a simple data file containing records, and each record is a pair of a key and a
value.  Every key and value is an array of bytes with variable length. Both
binary data and character strings can be used as a key or a value. There is
neither a concept of tables nor of data types.

%files -n %{libname}
%doc COPYING ChangeLog README
%{_libdir}/libkyotocabinet.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/libkyotocabinet.so
%{_libdir}/pkgconfig/kyotocabinet.pc

#----------------------------------------------------------------------------

%package api-doc
Summary:	Development documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description api-doc
The %{name}-api-doc package contains API documentation for developing
applications that use %{name}.

%files api-doc
%{doctarget}

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e 's/ -g0 -O2//' -e 's/ -O0//' configure*

%build
%configure \
	--disable-static \
	--disable-opt \
	--docdir=%{doctarget}

%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_libdir}/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2659 |21cr|l3afpad-0.8.18.1.11-0.git16f222.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Upstream has useful changes after the latest tag which was made long ago
%define commit 16f22222116b78b7f6a6fd83289937cdaabed624
%define commit_short %(echo %{commit} | head -c 6)

# autoreconf is enough
%define _disable_rebuild_configure 1

Summary:	Simple text editor forked from Leafpad, supports GTK+ 3.x
Name:		l3afpad	
Version:	0.8.18.1.11
Release:	0.git%{commit_short}.3
License:	GPLv2
Group:		Editors
Url:		https://github.com/stevenhoneyman/l3afpad
Source0:	https://github.com/stevenhoneyman/l3afpad/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# based on /usr/share/polkit-1/actions/org.xfce.mousepad.policy from mousepad
Source10:	ru.rosalinux.l3afpad.policy
Patch0:		fix.russian.patch
BuildRequires:	intltool
BuildRequires:	gettext
BuildRequires:	make
BuildRequires:	pkgconfig(gtk+-3.0)

%description
L3afpad is a simple GTK+ text editor that emphasizes simplicity. As development
focuses on keeping weight down to a minimum, only the most essential features
are implemented in the editor. L3afpad is simple to use, is easily compiled,
requires few libraries, and starts up quickly.

L3afpad differs from it's ancestor leafpad,
in that it uses GTK+3 (while leafpad uses GTK+2).

Features:
* Codeset option (Some OpenI18N registered)
* Auto codeset detection (UTF-8 and some codesets)
* Unlimitted Undo/Redo
* Auto/Multi-line Indent
* Display line numbers
* Drag and Drop
* Printing

%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/l3afpad
%{_datadir}/applications/l3afpad.desktop
%{_datadir}/icons/hicolor/*/apps/l3afpad.png
%{_datadir}/pixmaps/l3afpad.png
%{_datadir}/pixmaps/l3afpad.xpm
%{_datadir}/polkit-1/actions/ru.rosalinux.l3afpad.policy

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
install -m0644 %{SOURCE10} %{buildroot}%{_datadir}/polkit-1/actions

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2660 |21cr|la-capitaine-rosa-icon-theme-0.5.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname la-capitaine-rosa-icons-devel

Summary:	La Capitaine icons theme (ROSA fork)
Name:		la-capitaine-rosa-icon-theme
Version:	0.5.0
Release:	3
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://abf.io/uxteam/la-capitaine-rosa-icons-devel
Source0:	https://abf.io/uxteam/la-capitaine-rosa-icons-devel/archive/%{oname}-%{version}.tar.gz
BuildArch:	noarch

%description
La Capitaine is an icon pack inspired by MacOS and Google Material Design.
A beautiful hybrid between the two most popular design specifications to date.

This package provides ROSA's fork adopted for KDE needs.

%files
%dir %{_datadir}/icons/la-capitaine-rosa
%{_datadir}/icons/la-capitaine-rosa/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/icons/la-capitaine-rosa
cp -r ./* %{buildroot}%{_datadir}/icons/la-capitaine-rosa

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2661 |21cr|lact-0.5.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname LACT

%global debug_package %{nil}

Summary:	Linux AMDGPU Controller
Name:		lact
Version:	0.5.4
Release:	2
License:	MIT
Group:		Monitoring
Url:		https://github.com/ilya-zlobintsev/LACT
Source0:	https://github.com/ilya-zlobintsev/LACT/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
# unpack source and 'cargo vendor', pack vendor directory
Source1:	vendor.tar.gz
# cargo config for use vendor directory
Source2:	config
BuildRequires:	cargo
BuildRequires:	python3-gi
BuildRequires:	pkgconfig(blueprint-compiler)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(graphene-gobject-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(libdrm)
ExclusiveArch:	%{x86_64} aarch64
%rename LACT

%description
This application allows you to control your AMD GPU on a Linux system.
Current features:

Viewing information about the GPU
Power/thermals monitoring
Fan curve control
Overclocking (GPU/VRAM clockspeed, voltage)
Power states configuration

Tested GPU generations:

 Polaris (RX 500 series)
 Vega
 RDNA1 (RX 5000 series)
 RDNA2 (RX 6000 series)
 RDNA3 (RX 7000 series) - incomplete support
Check the full list of supported video cards here: https://github.com/ilya-zlobintsev/LACT

%files
%license LICENSE
%doc README.md
%{_bindir}/lact
%{_unitdir}/lactd.service
%{_datadir}/applications/io.github.lact-linux.desktop
%{_datadir}/pixmaps/io.github.lact-linux.png
%{_iconsdir}/hicolor/scalable/apps/io.github.lact-linux.svg
#------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}
tar xf %SOURCE1
mkdir -p cargo
cp %SOURCE2 cargo

%build
export CARGO_HOME=${PWD}/cargo
cargo build --release --offline

%install
DESTDIR=%{buildroot} PREFIX=%{_prefix} make install

mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}%{_prefix}%{_unitdir}/%{name}d.service %{buildroot}%{_unitdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2662 |21cr|ladspa-quitte-dsp-1.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# preamp is broken with gcc 11: drop it
%define	plugins clipper matched super-60 unmatched

Summary:	Guitar preamp plugins for ladspa
Name:		ladspa-quitte-dsp
Version:	1.0
Release:	9
License:	GPLv2+
Group:		Sound
Url:		http://quitte.de/dsp/
Source0:	clipper.tar.gz
Source1:	matched.tar.gz
Source2:	preamp.tar.gz
Source4:	super-60.tar.bz2
Source5:	unmatched.tar.gz
Patch0:		ladspa-quitte-dsp-1.0-cflags_fix.diff
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(sndfile)
Requires:	ladspa
Requires:	caps
Requires:	pvoc

%description
Digital guitar preamp plugins for ladspa, courtesy of quitte.de.
 super-60: a 'cheap' (in the computational sense) amp/cabinet emulation;
 unmatched: another 'cheap' amp/cabinet emulation;
 spiced 12AX7: analysis and a simple hard clipper.

%files
%doc matched/COPYING
%{_libdir}/ladspa/*

#-----------------------------------------------------------------------------

%prep
%setup -q -c %{name} -a1 -a2 -a4 -a5
%patch0 -p1


%build
export CFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} -fPIC -std=c++11"

for i in %{plugins}; do
	pushd ${i}*
	%make OPTS="$CXXFLAGS"
	popd
done


%install
install -d %{buildroot}%{_libdir}/ladspa

for i in %plugins; do
	pushd ${i}*
	%makeinstall_std \
	PREFIX=%{buildroot}%{_prefix} \
	DEST=%{buildroot}%{_libdir}/ladspa \
	PLUGDEST=%{buildroot}%{_libdir}/ladspa \
	UTILDEST=%{buildroot}%{_bindir} \
	MAN1DEST=%{buildroot}%{_mandir}/man1
	popd
done
chmod 755 %{buildroot}%{_libdir}/ladspa/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2663 |21cr|lanshare-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname LAN-Share


Summary:      Share files across the LAN
Name:         lanshare
Version:      1.2.1
Release:      1
Group:        Networking/File transfer
License:      GPLv3
Url:          https://github.com/abdularis/LAN-Share
Source0:      https://github.com/abdularis/LAN-Share/archive/%{version}.tar.gz
Source1:      %{name}.desktop

BuildRequires:  qmake5
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  qt5-devel 
BuildRequires:  desktop-file-utils

%description
LAN Share is a cross platform local area network 
file transfer application, built using Qt GUI framework.

%files
%doc README.* AUTHORS LICENSE
%{_bindir}/LANShare
%{_bindir}/lanshare
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png

#-----------------------------------------------

%prep
%setup -qn %{oname}-%{version}	
		
%build
cd src
%qmake_qt5
%make

%install
install -Dm755 src/LANShare %{buildroot}%{_bindir}/LANShare
pushd %{buildroot}%{_bindir}
ln -s LANShare lanshare
popd

mkdir -p %{buildroot}%{_datadir}/{applications,pixmaps}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
    %{SOURCE1}

cp -r packaging/linux/debian/lanshare-icon.png %{buildroot}%{_datadir}/pixmaps/lanshare-icon.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2664 |21cr|lapackpp-2022.05.00-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global __requires_exclude cmake()

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ API for the Basic Linear Algebra Subroutines
Name:		lapackpp
Version:	2022.05.00
Release:	3
License:	BSD
Group:		System/Libraries
Url:		https://github.com/icl-utk-edu/lapackpp
Source0:	https://github.com/icl-utk-edu/lapackpp/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		lapackpp-cmake-path.patch
Patch1:		lapackpp-versioning.patch
BuildRequires:	blaspp-devel
BuildRequires:	lapack-devel
BuildRequires:	cmake

%description
The Basic Linear Algebra Subprograms (BLAS) have been around for many decades and serve 
as the de facto standard for performance-portable and numerically robust implementation 
of essential linear algebra functionality. Originally, they were written in Fortran, 
and later furnished with a C API (CBLAS).

The objective of LAPACK++ is to provide a convenient, performance oriented API 
for development in the C++ language, that, for the most part, 
preserves established conventions, while, at the same time, takes advantages of 
modern C++ features, such as: namespaces, templates, exceptions, etc.

#------------------------------------------------------------------
%package -n %{libname}
Summary:	C++ API for the Basic Linear Algebra Subroutines
Group:		System/Libraries

%description -n %{libname}
The Basic Linear Algebra Subprograms (BLAS) have been around for many decades and serve 
as the de facto standard for performance-portable and numerically robust implementation 
of essential linear algebra functionality. Originally, they were written in Fortran, 
and later furnished with a C API (CBLAS).

The objective of LAPACK++ is to provide a convenient, performance oriented API 
for development in the C++ language, that, for the most part, 
preserves established conventions, while, at the same time, takes advantages of 
modern C++ features, such as: namespaces, templates, exceptions, etc.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:	lapackpp development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	cmake
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
lapackpp development files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/%{name}

#------------------------------------------------------------------
%prep
%autosetup -p1

%build
%cmake \
	-DBUILD_SHARED_LIBS=ON \
	-Dbuild_tests=OFF

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2665 |21cr|lasem-0.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.4

%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:           lasem
Version:        0.4.4
Release:        1
Summary:        MathML and SVG rendering library
License:        LGPL-2.1-or-later
Group:          System/Libraries
URL:            https://live.gnome.org/Lasem
Source:         http://download.gnome.org/sources/%{name}/%{api}/%{name}-%{version}.tar.xz
# PATCH-FIX-UPSTREAM lasem-cairo-avoid-integer-overflow.patch CVE-2013-7447 zaitor@opensuse.org -- cairo: Avoid integer overflow
Patch0:         lasem-cairo-avoid-integer-overflow.patch
BuildRequires:  bison
BuildRequires:  gobject-introspection >= 0.6.7
BuildRequires:  intltool >= 0.35.0
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(cairo) >= 1.2
BuildRequires:  pkgconfig(gdk-pixbuf-2.0) >= 2.16
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(pangocairo) >= 1.16.0

%description
Lasem is a library for rendering SVG and MathML, implementing a DOM like API.
It's based on GObject and uses Pango and Cairo for the rendering. Included in the package
is a simple application, lasemrender, which is able to convert a MathML, a Latex
math or an SVG file to either PNG, PDF or an SVG image.

%files -f %{name}-%{api}.lang
%license COPYING
%doc README
%{_bindir}/%{name}-render-%{api}
%{_mandir}/man1/%{name}-render-%{api}.1*

#------------------------------------------------------
%package -n %{libname}
Summary:        MathML and SVG rendering library
Group:          System/Libraries

%description -n %{libname}
Lasem is a library for rendering SVG and MathML, implementing a DOM like API.
It's based on GObject and uses Pango and Cairo for the rendering.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#------------------------------------------------------

%package -n %{devname}
Summary:        Development files for lasem, a MathML and SVG rendering library
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
Lasem is a library for rendering SVG and MathML, implementing a DOM like API.
It's based on GObject and uses Pango and Cairo for the rendering.

%files -n %{devname}
%{_includedir}/%{name}-%{api}/
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_datadir}/gtk-doc/html/%{name}-%{api}/

#------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
    --disable-static
%make

%install
%make_install

# Those files do not belong there... we package them using %%doc
rm -rf %{buildroot}%{_prefix}/doc
find %{buildroot} -type f -name "*.la" -delete -print
%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2666 |21cr|lasi-1.1.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine __cmake_in_source_build

%define major 2
%define libname %mklibname LASi %{major}
%define devname %mklibname LASi -d


Name:           lasi
Version:        1.1.3
Release:        8%{?dist}
Summary:        C++ library for creating Postscript documents
Group:          System/Libraries
License:        LGPLv2+
URL:            http://www.unifont.org/lasi/
Source0:        http://downloads.sourceforge.net/lasi/libLASi-%{version}.tar.gz
Patch0:         lasi-multilib.patch
Patch1:         lasi-disable-examples.patch
BuildRequires:  cmake >= 3.13.2
BuildRequires:  pango-devel
BuildRequires:  doxygen


%description
LASi is a library written by Larry Siden  that provides a C++ stream output
interface ( with operator << ) for creating Postscript documents that can
contain characters from any of the scripts and symbol blocks supported in
Unicode  and by Owen Taylor's Pango layout engine. The library accommodates
right-to-left scripts such as Arabic and Hebrew as easily as left-to-right
scripts. Indic and Indic-derived Complex Text Layout (CTL) scripts, such as
Devanagari, Thai, Lao, and Tibetan are supported to the extent provided by
Pango and by the OpenType fonts installed on your system. All of this is
provided without need for any special configuration or layout calculation on
the programmer's part.

Although the capability to produce Unicode-based multilingual Postscript
documents exists in large Open Source application framework libraries such as
GTK+, QT, and KDE, LASi was designed for projects which require the ability
to produce Postscript independent of any one application framework.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ library for creating Postscript documents
Group:		System/Libraries

%description -n %{libname}
%{summary}.

%files -n %{libname}
%{_libdir}/libLASi.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:        Development headers and libraries for %{name}
Group:          Development/Other
Provides:       %{name}-devel = %{EVRD}
Requires:       %{libname} = %{EVRD}
Requires:       pango-devel

%description  -n %{devname}
%{summary}.

%files -n %{devname}
%{_includedir}/LASi.h
%{_libdir}/libLASi.so
%{_libdir}/pkgconfig/lasi.pc

#------------------------------------------------------------------

%package        doc
Summary:        Documentation for %{name}
BuildArch:      noarch

%description    doc
%{summary}.

%files doc
%doc %{_docdir}/%{name}-%{version}/html/

#------------------------------------------------------------------

%prep
%autosetup -p1 -n libLASi-%{version}

# Change docdir
sed -i -e '/set(docdir/s| .*| %{_docdir}/%{name}-%{version}|' cmake/modules/instdirs.cmake


%build
export CFLAGS="$RPM_OPT_FLAGS"
export CXXFLAGS="$RPM_OPT_FLAGS -std=c++14"
export FFLAGS="$RPM_OPT_FLAGS"
%cmake -DUSE_RPATH=OFF -DCMAKE_INSTALL_LIBDIR=%{_libdir}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2667 |21cr|latencytop-0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Visualizer of system latencies
Name:		latencytop
Version:	0.5
Release:	5
License:	GPLv2+
Group:		Development/Tools
Url:		http://latencytop.org/
Source0:	http://latencytop.org/download/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncursesw)

%description
LatencyTOP is a Linux tool for software developers (both kernel and
userspace), aimed at identifying where system latency occurs, and
what kind of operation/action is causing the latency to happen. By
identifying this, developers can then change the code to avoid the
worst latency hiccups.

%files
%{_sbindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man8/latencytop.8*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -I%{_includedir}/ncursesw"
%make

%install
install -d -m755 %{buildroot}%{_sbindir}
%makeinstall_std
install -d -m755 %{buildroot}%{_mandir}/man8
install -m644 latencytop.8 %{buildroot}%{_mandir}/man8/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2668 |21cr|latex2rtf-2.3.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	LaTeX to RTF converter
Name:		latex2rtf
Version:	2.3.17
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://latex2rtf.sourceforge.net/
Source0:	https://sourceforge.net/projects/latex2rtf/files/latex2rtf-unix/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	texinfo
BuildRequires:	texlive-kpathsea.bin
BuildRequires:	texlive-texinfo
BuildRequires:	texlive-scheme-full
BuildRequires:	texlive-tex.bin
BuildRequires:	tetex-latex
BuildRequires:	texlive-cm-super
Requires:	tetex-latex
Requires:	tetex-dvips
Requires:	imagemagick

%description
LaTeX2rtf is a translator program which is intended to translate a
LaTeX document (precisely: the text and a limited subset of LaTeX
tags) into the RTF format which can be imported by several
textprocessors (including Microsoft Word for Windows and Word for
Macintosh).

%files
%doc ChangeLog Copyright doc/latex2rtf.pdf doc/latex2rtf.html doc/copying.txt doc/credits
%{_bindir}/latex2png
%{_bindir}/latex2rtf
%{_datadir}/latex2rtf/
%{_infodir}/latex2rtf.info.*
%{_mandir}/man1/latex2png.1.*
%{_mandir}/man1/latex2rtf.1.*

#---------------------------------------------------------------

%prep
%setup -q

chmod a-x cfg/*.cfg
find -name "*.o" -delete -print
find . -type f -exec chmod 644 {} \;
chmod 755 test/bracecheck
chmod 755 scripts/latex2png

for txtfile in ChangeLog Copyright; do
	iconv -f ASCII -t UTF-8 $txtfile >$txtfile.new && \
	touch -r $txtfile $txtfile.new && \
	mv $txtfile{.new,} 
done


%build
# no parallel build 
make PREFIX=/usr INFO_INSTALL=%{_infodir} \
	MAN_INSTALL=%{_mandir}/man1 \
	CFG_INSTALL=%{_sysconfdir}/%{name} \
	SUPPORT_INSTALL=%{_datadir}/doc/%{name} 

%install
make install DESTDIR=%{buildroot}%{_prefix}

install -d -m 755 %{buildroot}%{_infodir}
install -m 644 doc/%{name}.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2669 |21cr|latex-abntex-0.9-0.beta2.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define texdir %{_datadir}/texmf-dist

Summary:	LaTeX macros for writing documents following the ABNT norms
Name:		latex-abntex
Version:	0.9
Release:	0.beta2.5
License:	LPPL
Group:		Publishing
Url:		http://abntex.codigolivre.org.br
Source0:	abntex-%{version}-beta2.tar.gz
Patch0:		abntex-0.9-respect-prefix.patch
# BuildRequires:	tetex
# BuildRequires:	texlive-doublestroke
# This indicates that texlive-scheme-full is not comlete...
BuildRequires:	texlive-collection-fontsextra
BuildRequires:	texlive-hyph-utf8
BuildRequires:	texlive-scheme-full
BuildRequires:	texlive-scheme-tetex
BuildRequires:	texlive-hyphen-afrikaans
BuildRequires:	texlive-hyphen-ancientgreek
BuildRequires:	texlive-hyphen-armenian
BuildRequires:	texlive-hyphen-basque
BuildRequires:	texlive-hyphen-belarusian
BuildRequires:	texlive-hyphen-bulgarian
BuildRequires:	texlive-hyphen-catalan
BuildRequires:	texlive-hyphen-chinese
BuildRequires:	texlive-hyphen-churchslavonic
BuildRequires:	texlive-hyphen-coptic
BuildRequires:	texlive-hyphen-croatian
BuildRequires:	texlive-hyphen-czech
BuildRequires:	texlive-hyphen-danish
BuildRequires:	texlive-hyphen-dutch
BuildRequires:	texlive-hyphen-english
BuildRequires:	texlive-hyphen-esperanto
BuildRequires:	texlive-hyphen-estonian
BuildRequires:	texlive-hyphen-ethiopic
BuildRequires:	texlive-hyphen-finnish
BuildRequires:	texlive-hyphen-french
BuildRequires:	texlive-hyphen-friulan
BuildRequires:	texlive-hyphen-galician
BuildRequires:	texlive-hyphen-georgian
BuildRequires:	texlive-hyphen-german
BuildRequires:	texlive-hyphen-greek
BuildRequires:	texlive-hyphen-hungarian
BuildRequires:	texlive-hyphen-icelandic
BuildRequires:	texlive-hyphen-indic
BuildRequires:	texlive-hyphen-indonesian
BuildRequires:	texlive-hyphen-interlingua
BuildRequires:	texlive-hyphen-irish
BuildRequires:	texlive-hyphen-italian
BuildRequires:	texlive-hyphen-kurmanji
BuildRequires:	texlive-hyphen-latin
BuildRequires:	texlive-hyphen-latvian
BuildRequires:	texlive-hyphen-lithuanian
BuildRequires:	texlive-hyphen-mongolian
BuildRequires:	texlive-hyphen-norwegian
BuildRequires:	texlive-hyphen-occitan
BuildRequires:	texlive-hyphen-piedmontese
BuildRequires:	texlive-hyphen-polish
BuildRequires:	texlive-hyphen-portuguese
BuildRequires:	texlive-hyphen-romanian
BuildRequires:	texlive-hyphen-romansh
BuildRequires:	texlive-hyphen-russian
BuildRequires:	texlive-hyphen-sanskrit
BuildRequires:	texlive-hyphen-serbian
BuildRequires:	texlive-hyphen-slovak
BuildRequires:	texlive-hyphen-slovenian
BuildRequires:	texlive-hyphen-spanish
BuildRequires:	texlive-hyphen-swedish
BuildRequires:	texlive-thailatex
BuildRequires:	texlive-hyphen-turkish
BuildRequires:	texlive-hyphen-turkmen
BuildRequires:	texlive-hyphen-ukrainian
BuildRequires:	texlive-hyphen-uppersorbian
BuildRequires:	texlive-hyphen-welsh
Requires:	texlive-scheme-full
Requires:	texlive-scheme-tetex
BuildArch:	noarch

%description
With the abnTeX macros you will be able to write LaTeX documents which
conform to several norms from ABNT (Brazilian Association for Technical
Norms). In addition there are macros for writing automated lists of
abbreviations and symbols and a style for writing patent applications
for INPI. You can also use these style with LyX.

%files
%doc LEIAME LEIAME.linux LEIAME.make LEIAME.administracao
%doc compiled.docs/*.ps.gz
%{texdir}/bibtex/bib/abntex
%{texdir}/bibtex/bst/abntex
%{texdir}/doc/bibtex/abntex
%{texdir}/doc/latex/abntex
%{texdir}/makeindex/abntex
%{texdir}/tex/latex/abntex
%{_bindir}/geratss

%post
texhash

%postun
texhash

#----------------------------------------------------------------------------

%prep
%setup -n abntex-%{version}
%patch0 -p1 -b .respect-prefix

%build
make doc-ps

%install
install -m 755 -d %{buildroot}%{texdir}
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 -d %{buildroot}%{_docdir}
%makeinstall_std USRLOCAL=%{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2670 |21cr|latex-beamer-3.63-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname   beamer
%define rversion 3-24

Summary:	LaTeX class to produce presentations 
Name:		latex-beamer
Version:	3.63
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://bitbucket.org/rivanvx/beamer/wiki/Home
Source0:	http://bitbucket.org/rivanvx/beamer/get/version-%{rversion}.tar.bz2
BuildRequires:	ghostscript
BuildRequires:	texlive-latex
BuildRequires:	texlive-pgf
BuildRequires:	texlive-xcolor
Requires:	texlive-latex
Requires:	texlive-pgf
Requires:	texlive-xcolor
BuildArch:	noarch

%description
The beamer class is a LaTeX class that allows you to create a beamer
presentation. It can also be used to create slides. It behaves similarly
to other packages like Prosper, but has the advantage that it works
together directly with pdflatex, but also with dvips.

Once you have installed the beamer class, the basic steps to create a
beamer presentation are the following:

* Specify beamer as document class instead of article.
* Structure your LaTeX text using \section and \subsection commands.
* Place the text of the individual slides inside \frame commands.
* Run pdflatex on the text (or latex and dvips).

The beamer class has several useful features: You don't need any
external programs to use it other than pdflatex, but it works also with
dvips. You can easily and intuitively create sophisticated overlays.
Finally, you can easily change the whole slide theme or only parts of
it.

%files
%doc AUTHORS ChangeLog FILES INSTALL README TODO
%doc examples solutions
%{_datadir}/texmf/tex/latex/%{rname}

%post
[ -x %{_bindir}/texhash ] && %{_bindir}/env - %{_bindir}/texhash 2> /dev/null || :

%postun
[ -x %{_bindir}/texhash ] && %{_bindir}/env - %{_bindir}/texhash 2> /dev/null || :

#----------------------------------------------------------------------------

%prep
%setup -q -n rivanvx-beamer-cb16a617839f

%build
:

%install
mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/%{rname}
cp -a base %{buildroot}%{_datadir}/texmf/tex/latex/%{rname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2671 |21cr|latex-lettre-2.346-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude texhash
Name: 		latex-lettre
Version: 	2.346
Release: 	8
Summary: 	Letters and faxes in French
License: 	LPPL
Group: 		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lettre/
Source0: 	ftp://tug.ctan.org/pub/tex-archive/macros/latex/contrib/lettre.tar.bz2
Requires: 	texlive-latex texlive-collection-latex
BuildRequires:	texlive-latex texlive-collection-latex
Requires(post): texlive-kpathsea.bin
Requires(postun): texlive-kpathsea.bin
BuildArch:	noarch

%description
This package provides a latex class for letters and faxes in French.

%prep
%setup -q -n lettre

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/texmf/tex/latex/lettre
install -m 644 inputs/* %{buildroot}%{_datadir}/texmf/tex/latex/lettre

install -d -m 755 %{buildroot}%{_datadir}/texmf/doc/latex/lettre
install -m 644 doc/* %{buildroot}%{_datadir}/texmf/doc/latex/lettre

%post
%{_bindir}/texhash

%postun
%{_bindir}/texhash

%files
%doc ALIRE LICENSE lppl.txt README
%{_datadir}/texmf/tex/latex/lettre
%{_datadir}/texmf/doc/latex/lettre

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2672 |21cr|latex-mk-2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility simplifying latex document managment
Name:		latex-mk
Version:	2.1
Release:	5
License:	BSD
Group:		Publishing
Url:		http://latex-mk.sourceforge.net/
Source0:	http://switch.dl.sourceforge.net/project/latex-mk/latex-mk/%{name}-%{version}/%{name}-%{version}.tar.gz
#not build pdf and info files - already present
Patch0:		latex-mk-doc.patch
BuildRequires:	texinfo
Buildarch:	noarch

%description
LaTeX-Mk is a collection of makefile fragments and shell scripts
for simplifying the management of small to large sized LaTeX documents.

%files
%doc AUTHORS COPYING ChangeLog NEWS README TODO fedora-doc/*
%config %{_sysconfdir}/profile.d/latex-mk.sh
%config %{_sysconfdir}/profile.d/latex-mk.csh
%{_bindir}/ieee-copyout
%{_bindir}/latex-mk
%{_datadir}/latex-mk/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

mkdir fedora-doc
mv doc/latex-mk.* fedora-doc
mv %{buildroot}%{_datadir}/latex-mk/example fedora-doc
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
echo 'export LATEX_MK_DIR=%{_datadir}/latex-mk' > %{buildroot}%{_sysconfdir}/profile.d/latex-mk.sh
echo 'setenv LATEX_MK_DIR %{_datadir}/latex-mk' > %{buildroot}%{_sysconfdir}/profile.d/latex-mk.csh
rm -f %{buildroot}%{_infodir}/dir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2673 |21cr|latexmk-465-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcversion %(echo %{version} | sed -e 's/\\.//g')

Summary:	Perl script for automating LaTeX document compilation
Name:		latexmk
Version:	465
Release:	1
License:	GPLv2
Group:		Publishing
Url:		http://www.phys.psu.edu/~collins/software/latexmk-jcc/
Source0:	http://www.phys.psu.edu/~collins/software/latexmk-jcc/%{name}-%{srcversion}.zip
BuildArch:	noarch
Requires:	perl
Requires:	tetex-latex

%description
Latexmk completely automates the process of compiling a LaTeX
document.  Essentially, it is like a specialized relative of
the general make utility, but one which determines dependencies
automatically and has some other very useful features.  In its
basic mode of operation latexmk is given the name of the
primary source file for a document, and it issues the
appropriate sequence of commands to generate a .dvi, .ps, .pdf
and/or hardcopy version of the document.

%files
%doc CHANGES COPYING README latexmk.pdf latexmk.txt example_rcfiles
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*

#--------------------------------------------------------------

%prep
%setup -qn %{name}

%build

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -m 755 %{name}.pl %{buildroot}%{_bindir}/%{name}
install -m 755 %{name}.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2674 |21cr|latte-dock-0.10.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Latte is a dock for Plasma 5
Name:		latte-dock
Version:	0.10.9
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	http://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
Source1:	latte-dock-0.10.8_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5sysguard-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-randr)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(sm)
Requires:	plasma5-applet-latte
Requires:	plasma5-applet-latte-indicator
Requires:	plasma5-containment-latte
Requires:	plasma5-containment-lattecontextmenu
Requires:	plasma5-shell-latte
Obsoletes:	plasma5-applet-latte-separator < 0.9
Obsoletes:	plasma5-applet-latte-spacer < 0.9

%description
Latte is a dock based on plasma frameworks that provides an elegant and
intuitive experience for your tasks and plasmoids. It animates its contents by
using parabolic zoom effect and tries to be there only when it is needed.

%files -f %{name}.lang
%doc README.md
%license LICENSES/*.txt
%{_kde5_bindir}/latte-dock
%{_kde5_applicationsdir}/org.kde.latte-dock.desktop
%{_kde5_iconsdir}/hicolor/*/apps/latte-dock.*
%{_kde5_notificationsdir}/lattedock.notifyrc
%{_appdatadir}/org.kde.latte-dock.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.LatteDock.xml
%{_kde5_datadir}/knsrcfiles/latte-layouts.knsrc
%{_kde5_datadir}/knsrcfiles/latte-indicators.knsrc

#----------------------------------------------------------------------------

%define qmllatte %mklibname latte-qml

%package -n %{qmllatte}
Summary:	QML plugins for Plasma 5 Latte Dock
Group:		System/Libraries
Provides:	latte-qml = %{EVRD}

%description -n %{qmllatte}
QML plugins for Plasma 5 activity switcher.

%files -n %{qmllatte}
%dir %{_kde5_qmldir}/org/kde/latte/
%{_kde5_qmldir}/org/kde/latte/*

#----------------------------------------------------------------------------

%package -n plasma5-applet-latte
Summary:	Plasma 5 Latte Dock plasmoid
Group:		Graphical desktop/KDE
Requires:	latte-qml

%description -n plasma5-applet-latte
Plasma 5 Latte Dock plasmoid.

%files -n plasma5-applet-latte -f plasma_applet_org.kde.latte.plasmoid.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.latte.plasmoid/
%{_kde5_datadir}/plasma/plasmoids/org.kde.latte.plasmoid/*
%{_kde5_iconsdir}/breeze/applets/*/org.kde.latte.plasmoid.*
%{_kde5_services}/plasma-applet-org.kde.latte.plasmoid.desktop
%{_appdatadir}/org.kde.latte.plasmoid.appdata.xml

#----------------------------------------------------------------------------


%package -n plasma5-applet-latte-indicator
Summary:	Plasma 5 Latte Dock indicator plasmoid
Group:		Graphical desktop/KDE
Requires:	latte-qml

%description -n plasma5-applet-latte-indicator
Plasma 5 Latte Dock indicator plasmoid.

%files -n plasma5-applet-latte-indicator -f latte_indicator_org.kde.latte.default.lang
%dir %{_kde5_datadir}/latte/indicators/
%{_kde5_datadir}/latte/indicators/*
%{_kde5_servicetypes}/latte-indicator.desktop
%{_qt5_plugindir}/kpackage/packagestructure/latte_packagestructure_indicator.so

#----------------------------------------------------------------------------

%package -n plasma5-containment-latte
Summary:	Plasma 5 Latte Dock containment
Group:		Graphical desktop/KDE
Requires:	latte-qml

%description -n plasma5-containment-latte
Plasma 5 Latte Dock containment.

%files -n plasma5-containment-latte -f plasma_applet_org.kde.latte.containment.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.latte.containment/
%{_kde5_datadir}/plasma/plasmoids/org.kde.latte.containment/*
%{_kde5_services}/plasma-applet-org.kde.latte.containment.desktop

#----------------------------------------------------------------------------

%package -n plasma5-containment-lattecontextmenu
Summary:	Plasma 5 Latte Dock containment
Group:		Graphical desktop/KDE
Requires:	latte-qml

%description -n plasma5-containment-lattecontextmenu
Plasma 5 Latte Dock containment.

%files -n plasma5-containment-lattecontextmenu -f plasma_containmentactions_lattecontextmenu.lang
%{_qt5_plugindir}/plasma_containmentactions_lattecontextmenu.so
%{_kde5_services}/plasma-containmentactions-lattecontextmenu.desktop

#----------------------------------------------------------------------------

%package -n plasma5-shell-latte
Summary:	Plasma 5 Latte Dock shell
Group:		Graphical desktop/KDE
Requires:	latte-qml

%description -n plasma5-shell-latte
Plasma 5 Latte Dock shell.

%files -n plasma5-shell-latte -f latte_indicator_org.kde.latte.plasma.lang
%dir %{_kde5_datadir}/plasma/shells/org.kde.latte.shell/
%{_kde5_datadir}/plasma/shells/org.kde.latte.shell/*
%{_kde5_services}/plasma-shell-org.kde.latte.shell.desktop
%{_appdatadir}/org.kde.latte.shell.appdata.xml

#--------------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}
%find_lang latte_indicator_org.kde.latte.plasma
%find_lang plasma_applet_org.kde.latte.containment
%find_lang plasma_applet_org.kde.latte.plasmoid
%find_lang latte_indicator_org.kde.latte.default
%find_lang plasma_containmentactions_lattecontextmenu

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2675 |21cr|lavennin-20041119-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts written Finnish text to a readable form
Name:		lavennin
Version:	20041119
Release:	8
License:	LGPLv2.1
Group:		Sound
# URLs are dead: use stored sources
Url:		http://phon.joensuu.fi/suopuhe/
Source:		%{name}-%{version}.tgz
Patch0:		lavennin-paths.patch
BuildArch:	noarch
# Per Mandriva locale-specific package policy:
Requires:	locales-fi

%description
Lavennin converts numbers, abbreviations and other such non-readable strings
found in usual written Finnish text to a readable form. Therefore only the
grafem-fonem conversion is left for the speech synthesizer. It can also be
used to nativisate foreign-originated words.

%files
%doc man/*.shtml
%{_bindir}/%{name}
%{_datadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1

sed -i 's,@LAVENNINDATADIR@,\"%{_datadir}/%{name}\",' bin/lavennin


%build
# Pre-built files: nothing to do


%install
install -d -m755 %{buildroot}%{_bindir}
install -m755 bin/%{name} %{buildroot}%{_bindir}

install -d -m755 %{buildroot}%{_datadir}/%{name}
install -m644 data/*.txt %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2676 |21cr|lazarus-qt5-3.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname lazarus

Summary:	Lazarus Component Library and IDE for Freepascal
Name:		lazarus-qt5
Version:	3.6
Release:	3
# GNU Classpath style exception, see COPYING.modifiedLGPL
License:	GPLv2+ and MPLv1.1 and LGPLv2+ with exceptions
Group:		Development/Pascal
Url:		http://www.lazarus-ide.org/
Source0:	https://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20%{version}/%{oname}-%{version}-0.tar.gz
Source1:	lazarus-miscellaneousoptions
Source10:	lazarus-qt5.rpmlintrc
Patch0:		lazarus-2.2.0-makefile.patch
BuildRequires:	desktop-file-utils
BuildRequires:	fpc >= 3.2.0
BuildRequires:	fpc-src >= 3.2.0
BuildRequires:	gdb
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	qt5pas-devel
Requires:	lazbuild-qt5 = %{EVRD}
Requires:	gdb
Conflicts:	lazarus
Conflicts:	lazarus-qt6

%description
Lazarus is a free and opensource RAD tool for freepascal using the lazarus
component library - LCL, which is also included in this package.

%files
%doc COPYING* README.md
%{_bindir}/%{oname}-ide
%{_bindir}/startlazarus
%{_bindir}/%{oname}-miscellaneousoptions
%{_libdir}/%{oname}
%{_datadir}/pixmaps/%{oname}.png
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/mime/packages/%{oname}.xml
%{_mandir}/*/*
%exclude %{_libdir}/lazarus/lazbuild
%exclude %{_libdir}/lazarus/components
%exclude %{_libdir}/lazarus/lcl
%exclude %{_libdir}/lazarus/packager
%exclude %{_libdir}/lazarus/units
%exclude %{_libdir}/lazarus/ide/packages

%postun
if [ $1 = 0 ]
then
rm -rf %{_libdir}/%{oname}
fi

#----------------------------------------------------------------------------
%package -n lazbuild-qt5
Summary:	Package for build program without install Lazarus IDE
Group:		Development/Pascal
Requires:	binutils
Requires:	fpc >= 3.2.0
Requires:	fpc-src >= 3.2.0
Requires:	make
Requires:	pkgconfig(gdk-pixbuf-2.0)
Requires:	pkgconfig(glib-2.0)
Requires:	pkgconfig(gtk+-2.0)
Requires:	glibc-devel
Conflicts:	lazbuild
Conflicts:	lazbuild-qt6

%description -n lazbuild-qt5
Package for build program without install Lazarus IDE.

%files -n lazbuild-qt5
%dir %{_sysconfdir}/%{oname}
%config(noreplace) %{_sysconfdir}/%{oname}/environmentoptions.xml
%{_bindir}/lazbuild
%{_libdir}/lazarus/lazbuild
%{_libdir}/lazarus/components
%{_libdir}/lazarus/lcl
%{_libdir}/lazarus/packager
%{_libdir}/lazarus/units
%{_libdir}/lazarus/ide/packages

#----------------------------------------------------------------------------
%prep
%autosetup -p1 -n lazarus

%build
# Remove the files for building debian-repositories
rm -rf debian
pushd tools
	find install -depth -type d ! \( -path "install/linux/*" -o -path "install/linux" -o -path "install" \) -exec rm -rf '{}' \;
popd

export FPCDIR="%{_datadir}/fpcsrc/"

export LCL_PLATFORM=qt5
fpcmake -Tall

MAKEOPTS="-gl -gw -Fl/usr/%{_lib}"

make bigide OPT="$MAKEOPTS"
make tools OPT="$MAKEOPTS"
make lazbuild OPT="$MAKEOPTS"

make registration lcl bigidecomponents OPT='-gl -gw'
export LCL_PLATFORM=
strip %{oname}
strip startlazarus
strip lazbuild

%install
# Not using automated install: do it manually

# Prepare needed dirs
LAZARUSDIR=%{_libdir}/%{oname}
FPCDIR=%{_datadir}/fpcsrc/
mkdir -p %{buildroot}$LAZARUSDIR
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/mime/packages
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}/%{oname}

# Install binaries and units
cp -a ./* %{buildroot}$LAZARUSDIR/

# Install our script
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/

# Install icon and desktop integration stuff
install -m 0644 ./images/ide_icon48x48.png %{buildroot}%{_datadir}/pixmaps/%{oname}.png
install -m 0644 ./install/%{oname}.desktop %{buildroot}%{_datadir}/applications/%{oname}.desktop
install -m 0644 ./install/%{oname}-mime.xml $LazBuildDir%{buildroot}%{_datadir}/mime/packages/%{oname}.xml

# Install symlinks for the binaries
ln -sf $LAZARUSDIR/%{oname} %{buildroot}%{_bindir}/%{oname}-ide
ln -sf $LAZARUSDIR/startlazarus %{buildroot}%{_bindir}/startlazarus
ln -sf $LAZARUSDIR/lazbuild %{buildroot}%{_bindir}/lazbuild

# Install man pages
install -m 0644 ./install/man/man1/lazbuild.1 %{buildroot}%{_mandir}/man1/
install -m 0644 ./install/man/man1/%{oname}-ide.1 %{buildroot}%{_mandir}/man1/
install -m 0644 ./install/man/man1/startlazarus.1 %{buildroot}%{_mandir}/man1/


# Install and fix default options file
install -m 0644 ./tools/install/linux/environmentoptions.xml %{buildroot}%{_sysconfdir}/%{oname}/environmentoptions.xml
sed -i 's/\$(FPCVER)\///g' %{buildroot}%{_sysconfdir}/%{oname}/environmentoptions.xml
sed -i 's#__LAZARUSDIR__#'$LAZARUSDIR/'#g' %{buildroot}%{_sysconfdir}/%{oname}/environmentoptions.xml
sed -i 's#__FPCSRCDIR__#'$FPCDIR'#g' %{buildroot}%{_sysconfdir}/%{oname}/environmentoptions.xml

# Fix perms
chmod 755 %{buildroot}%{_libdir}/%{oname}/components/lazreport/tools/localize.sh
chmod 644 %{buildroot}%{_libdir}/%{oname}/lcl/interfaces/cocoa/*.pas

# Drop useless stuff
pushd %{buildroot}%{_libdir}/%{oname}
	rm -f *.txt
	rm -rf install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2677 |21cr|lazarus-qt6-3.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname lazarus

Summary:	Lazarus Component Library and IDE for Freepascal
Name:		lazarus-qt6
Version:	3.6
Release:	3
# GNU Classpath style exception, see COPYING.modifiedLGPL
License:	GPLv2+ and MPLv1.1 and LGPLv2+ with exceptions
Group:		Development/Pascal
Url:		http://www.lazarus-ide.org/
Source0:	https://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20%{version}/%{oname}-%{version}-0.tar.gz
Source1:	lazarus-miscellaneousoptions
Source10:	lazarus-qt6.rpmlintrc
Patch0:		lazarus-2.2.0-makefile.patch
BuildRequires:	desktop-file-utils
BuildRequires:	fpc >= 3.2.0
BuildRequires:	fpc-src >= 3.2.0
BuildRequires:	gdb
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	qt6pas-devel
Requires:	lazbuild-qt6 = %{EVRD}
Requires:	gdb
Conflicts:	lazarus
Conflicts:	lazarus-qt5

%description
Lazarus is a free and opensource RAD tool for freepascal using the lazarus
component library - LCL, which is also included in this package.

%files
%doc COPYING* README.md
%{_bindir}/%{oname}-ide
%{_bindir}/startlazarus
%{_bindir}/%{oname}-miscellaneousoptions
%{_libdir}/%{oname}
%{_datadir}/pixmaps/%{oname}.png
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/mime/packages/%{oname}.xml
%{_mandir}/*/*
%exclude %{_libdir}/lazarus/lazbuild
%exclude %{_libdir}/lazarus/components
%exclude %{_libdir}/lazarus/lcl
%exclude %{_libdir}/lazarus/packager
%exclude %{_libdir}/lazarus/units
%exclude %{_libdir}/lazarus/ide/packages

%postun
if [ $1 = 0 ]
then
rm -rf %{_libdir}/%{oname}
fi

#----------------------------------------------------------------------------
%package -n lazbuild-qt6
Summary:	Package for build program without install Lazarus IDE
Group:		Development/Pascal
Requires:	binutils
Requires:	fpc >= 3.2.0
Requires:	fpc-src >= 3.2.0
Requires:	make
Requires:	pkgconfig(gdk-pixbuf-2.0)
Requires:	pkgconfig(glib-2.0)
Requires:	pkgconfig(gtk+-2.0)
Requires:	glibc-devel
Conflicts:	lazbuild
Conflicts:	lazbuild-qt6

%description -n lazbuild-qt6
Package for build program without install Lazarus IDE.

%files -n lazbuild-qt6
%dir %{_sysconfdir}/%{oname}
%config(noreplace) %{_sysconfdir}/%{oname}/environmentoptions.xml
%{_bindir}/lazbuild
%{_libdir}/lazarus/lazbuild
%{_libdir}/lazarus/components
%{_libdir}/lazarus/lcl
%{_libdir}/lazarus/packager
%{_libdir}/lazarus/units
%{_libdir}/lazarus/ide/packages

#----------------------------------------------------------------------------
%prep
%autosetup -p1 -n lazarus

%build
# Remove the files for building debian-repositories
rm -rf debian
pushd tools
	find install -depth -type d ! \( -path "install/linux/*" -o -path "install/linux" -o -path "install" \) -exec rm -rf '{}' \;
popd

export FPCDIR="%{_datadir}/fpcsrc/"

export LCL_PLATFORM=qt6
fpcmake -Tall

MAKEOPTS="-gl -gw -Fl/usr/%{_lib}"

make bigide OPT="$MAKEOPTS"
make tools OPT="$MAKEOPTS"
make lazbuild OPT="$MAKEOPTS"

make registration lcl bigidecomponents OPT='-gl -gw'
export LCL_PLATFORM=
strip %{oname}
strip startlazarus
strip lazbuild

%install
# Not using automated install: do it manually

# Prepare needed dirs
LAZARUSDIR=%{_libdir}/%{oname}
FPCDIR=%{_datadir}/fpcsrc/
mkdir -p %{buildroot}$LAZARUSDIR
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/mime/packages
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}/%{oname}

# Install binaries and units
cp -a ./* %{buildroot}$LAZARUSDIR/

# Install our script
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/

# Install icon and desktop integration stuff
install -m 0644 ./images/ide_icon48x48.png %{buildroot}%{_datadir}/pixmaps/%{oname}.png
install -m 0644 ./install/%{oname}.desktop %{buildroot}%{_datadir}/applications/%{oname}.desktop
install -m 0644 ./install/%{oname}-mime.xml $LazBuildDir%{buildroot}%{_datadir}/mime/packages/%{oname}.xml

# Install symlinks for the binaries
ln -sf $LAZARUSDIR/%{oname} %{buildroot}%{_bindir}/%{oname}-ide
ln -sf $LAZARUSDIR/startlazarus %{buildroot}%{_bindir}/startlazarus
ln -sf $LAZARUSDIR/lazbuild %{buildroot}%{_bindir}/lazbuild

# Install man pages
install -m 0644 ./install/man/man1/lazbuild.1 %{buildroot}%{_mandir}/man1/
install -m 0644 ./install/man/man1/%{oname}-ide.1 %{buildroot}%{_mandir}/man1/
install -m 0644 ./install/man/man1/startlazarus.1 %{buildroot}%{_mandir}/man1/


# Install and fix default options file
install -m 0644 ./tools/install/linux/environmentoptions.xml %{buildroot}%{_sysconfdir}/%{oname}/environmentoptions.xml
sed -i 's/\$(FPCVER)\///g' %{buildroot}%{_sysconfdir}/%{oname}/environmentoptions.xml
sed -i 's#__LAZARUSDIR__#'$LAZARUSDIR/'#g' %{buildroot}%{_sysconfdir}/%{oname}/environmentoptions.xml
sed -i 's#__FPCSRCDIR__#'$FPCDIR'#g' %{buildroot}%{_sysconfdir}/%{oname}/environmentoptions.xml

# Fix perms
chmod 755 %{buildroot}%{_libdir}/%{oname}/components/lazreport/tools/localize.sh
chmod 644 %{buildroot}%{_libdir}/%{oname}/lcl/interfaces/cocoa/*.pas

# Drop useless stuff
pushd %{buildroot}%{_libdir}/%{oname}
	rm -f *.txt
	rm -rf install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2678 |21cr|lazygit-0.44.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple terminal UI for git commands
Name:		lazygit
Version:	0.44.1
Release:	1
License:	MIT
Group:		Development/Tools
URL:		https://github.com/jesseduffield/lazygit
Source0:	https://github.com/jesseduffield/lazygit/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	golang >= 1.22
BuildRequires:	go-rpm-macros
Requires:	git-core

%description
lazygit is a terminal UI for git commands that helps make common and complex
git operations easy and accessible without requiring expertise with the git
command line.

%files
%doc docs/*
%license LICENSE
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
go build %{gobuildflags}

%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}

%check
./%{name} --help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2679 |21cr|lazyjournal-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=off
# see Source0
%global goipath github.com/Lifailon/lazyjournal

Summary:	TUI for journalctl, logs in the file system, Docker and Podman containers
Name:		lazyjournal
Version:	0.2.0
Release:	1
License:	MIT
Group:		System/Servers
Url:		http://github.com/Lifailon/lazyjournal
Source0:	http://github.com/Lifailon/lazyjournal/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# unpack source and run 'go mod vendor' in source dir, tar.gz 'vendor' dir
# or use upd.sh
Source1:	%{name}-go-mod-vendor-%{version}.tar.gz
Source10:	upd.sh
BuildRequires:	golang

%gometa

%description
%{summary}.

%files
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%goprep

# prepare vendored modules
tar -xf %{SOURCE1}
cp -r ./vendor/* _build/src/

%build
%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/

%install
install -d %{buildroot}%{_bindir}
install -Dm0755 %{gobuilddir}/bin/%{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2680 |21cr|lbreakout2-2.6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define levelsets	20160512

# Getting at build time the latest levelset
%bcond_with	fetch_levels

Summary:	Breakout-style arcade game
Name:		lbreakout2
Version:	2.6.5
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		https://lgames.sourceforge.net/
Source0:	https://download.sourceforge.net/lgames/%{name}-%{version}.tar.gz
Source1:	https://pilotfiber.dl.sourceforge.net/project/lgames/add-ons/lbreakout2/%{name}-levelsets-%{levelsets}.tar.gz
Source5:	%{name}-16.png
Source6:	%{name}-32.png
Source7:	%{name}-48.png
BuildRequires:	texinfo
%if %{with fetch_levels}
BuildRequires:	wget
%endif
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)

%description
LBreakout is a classical Breakout game and this means (if you like Breakout;-)
it is a lot of fun to play!
If you never ever played such a game you can check out the manual for more
information, take a look at the screenshots and last but not least... play it!

%files -f %{name}.lang
%doc ChangeLog COPYING README TODO
%attr(2755, root, games) %{_gamesbindir}/%{name}
%attr(2755, root, games) %{_gamesbindir}/%{name}server
%config(noreplace) %attr(664, games, games) %{_localstatedir}/lib/games/*
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_iconsdir}/lbreakout48.gif

#-----------------------------------------------------------------------------

%prep
%setup -q

# Getting latest levelsets
%if %{with fetch_levels}
wget https://pilotfiber.dl.sourceforge.net/project/lgames/add-ons/lbreakout2/lbreakout2-levelsets-%{levelsets}.tar.gz
mv levelsets.tar.gz %{SOURCE1}
%endif


%build
%configure	--bindir=%{_gamesbindir} \
		--with-libiconv-prefix=%{_prefix} \
		--without-included-gettext \
		--with-libintl-prefix=%{_prefix} \
		--localstatedir=%{_localstatedir}/lib/games
%make


%install
install -d %{buildroot}%{_localstatedir}/lib/games
%makeinstall_std

# Install level files
tar -xf %{SOURCE1} -C %{buildroot}%{_datadir}/%{name}/levels


# Remove ugly default desktop file and use our own
rm -r %{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=LBreakout 2
Comment=Breakout-style arcade game
Comment[ru]=Аркадная игра в стиле Breakout
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# Install our icons
install -D -m644 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m644 %{SOURCE6} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m644 %{SOURCE7} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# Those docs are not wanted
rm -rf %{buildroot}%{_datadir}/doc/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2681 |21cr|lbreakouthd-1.0.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	addon_date 20160512

Summary:	Classic Breakout-Style Game
Name:		lbreakouthd
Version:	1.0.10
Release:	2
License:	GPLv3+
Group:		Games/Arcade
Url:		https://sourceforge.net/projects/lgames/
Source0:	https://downloads.sourceforge.net/project/lgames/%{name}/%{name}-%{version}.tar.gz
# Take addons from lbreakout2: levels and themes
Source1:	https://sourceforge.net/projects/lgames/files/add-ons/lbreakout2/lbreakout2-levelsets-%{addon_date}.tar.gz
Source2:	https://sourceforge.net/projects/lgames/files/add-ons/lbreakout2/lbreakout2-themes-%{addon_date}.tar.gz
Patch0:		lbreakouthd-1.0.9-drop-Wno_format.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gcc-c++
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)

%description
LBreakoutHD is a scalable 16:9 remake of LBreakout2, a Breakout-style arcade
game for Linux featuring a number of added graphical enhancements and effects.
You control a paddle at the bottom of the playing field and must destroy
bricks at the top by bouncing balls against them.

%files -f %{name}.lang
%doc Changelog README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%dir %{_localstatedir}/games/
%attr(664,games,games) %{_localstatedir}/games/%{name}.hscr

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-rpath	\
	--localstatedir=%{_localstatedir}/games
%make

%install
%makeinstall_std

# Install levels
tar -xf %{SOURCE1} -C %{buildroot}%{_datadir}/%{name}/levels

# Install thems
tar -xf %{SOURCE2} -C %{buildroot}%{_datadir}/%{name}/themes
chmod 0644 %{buildroot}%{_datadir}/%{name}/themes/*.zip

# Provide icons by converting the provided .gif
rm -f %{buildroot}%{_datadir}/icons/lbreakouthd256.gif
for N in 16 32 48 64 128 256;
do
	convert lbreakouthd256.gif -resize ${N}x${N} $N.png;
	install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# Fix icon in .desktop file
desktop-file-edit --set-icon="%{name}" %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2682 |21cr|lbunzip2-0.03-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A multi-threaded bunzip2 filter
Name:		lbunzip2
Version:	0.03
Release:	6
License:	GPLv2+
Group: 		Archiving/Compression
URL:		http://phptest11.atw.hu/
Source0:	lbunzip2.tar.gz
BuildRequires:	bzip2-devel

%description
A multi-threaded bunzip2 filter that doesn't depend on the lseek() system call
and so isn't restricted to regular files.

%prep

%setup -q -n %{name}

chmod 644 README

%build

%make CFLAGS="%{optflags} -D_XOPEN_SOURCE=500" LDFLAGS="-Wl,--as-needed -Wl,--no-undefined"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}

install -m0755 %{name} %{buildroot}%{_bindir}/

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2683 |21cr|lbzip2-2.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast, multi-threaded bzip2 utility
Name:		lbzip2
Version:	2.5
Release:	5
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://lbzip2.org
Source0:	http://archive.lbzip2.org/%{name}-%{version}.tar.gz
Patch0:		lbzip2-2.5-glibc2.28.patch
BuildRequires:	dash
BuildRequires:	sharutils
BuildRequires:	bzip2-devel >= 1.0.6

%description
lbzip2 is a multi-threaded implementation of bzip2, suited for serial and
parallel processing.  On a multi-core computer, lbzip2 is commonly the fastest
bzip2 decompressor for most bz2 files found on the internet (on dual-core
computers, the 7za utility from the p7zip package may prove more efficient).
It integrates nicely with GNU tar. Even on single-core computers, lbzip2 can
speed up archiving in combination with tar, because lbzip2 allows compression
to overlap with disk usage to a greater extent than bzip2 does.

%files
%doc ChangeLog README
%{_bindir}/%{name}
%{_bindir}/lbzcat
%{_bindir}/lbunzip2
%doc %{_mandir}/man1/%{name}.1*
%doc %{_mandir}/man1/lbzcat.1*
%doc %{_mandir}/man1/lbunzip2.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2684 |21cr|lcab-1.0-0.b12.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pre	%(echo %{release} |cut -d. -f 2)

Summary:	Command-line Cabinet file creation tool
Name:		lcab
Version:	1.0
Release:	0.b12.1
URL:		http://ohnopub.net/~ohnobinki/lcab/
Source0:	ftp://ohnopublishing.net/mirror/%{name}-%{version}%{pre}.tar.gz
License:	GPLv2+
Group:		Archiving/Compression

%description
Command-line tool for creating Cabinet (.cab) files. The created files
are not compressed.

%prep
%setup -q -n %{name}-%{version}%{pre}

%build
autoreconf -if
%configure

%install
%makeinstall_std

install -d -m755 %{buildroot}%{_mandir}/man1
install -m644 lcab.1 %{buildroot}%{_mandir}/man1

%files
%doc README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2685 |21cr|lcdtest-1.18-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to display LCD monitor test patterns
Name:		lcdtest
Version:	1.18
Release:	5
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		http://www.brouhaha.com/~eric/software/lcdtest/
Source0:	http://www.brouhaha.com/~eric/software/%{name}/download/%{name}-%{version}.tar.gz
Source1:	%{name}.png
Patch0:		lcdtest-1.18-font-path.patch
BuildRequires:	scons >= 1.2.0
BuildRequires:	imagemagick
BuildRequires:	netpbm
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_ttf)
Requires:	fonts-ttf-liberation

%description
lcdtest is a utility to display LCD monitor test patterns. It may be
useful for adjusting the pixel clock frequency and phase on LCD
monitors when using analog inputs, and for finding pixels that are
stuck on or off.

%files
%doc COPYING README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
scons CFLAGS="%{optflags}"

%install
scons CFLAGS="%{optflags}" \
	--buildroot=%{buildroot} \
	--bindir=%{_bindir} \
	--mandir=%{_mandir} \
	--datadir=%{_datadir} \
	install

# install menu icons
for N in 16 22 24 32 48 64 128 256;
do
convert %{SOURCE1} -resize ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2686 |21cr|lcov-1.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LTP GCOV extension code coverage tool
Name:		lcov
Version:	1.16
Release:	2
Group:		Development/Other
License:	GPLv2
URL:		http://ltp.sourceforge.net/coverage/lcov.php
Source:		https://github.com/linux-test-project/lcov/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires:	perl(JSON)

%description
LCOV is an extension of GCOV, a GNU tool which provides information
about what parts of a program are actually executed (i.e. "covered")
while running a particular test case. The extension consists of a set
of PERL scripts which build on the textual GCOV output to implement
HTML output and support for large projects.

%prep
%autosetup -p1

%build

%install
%makeinstall_std BIN_DIR=%{_bindir} MAN_DIR=%{_mandir} CFG_DIR=%{_sysconfdir}
chmod -x %{buildroot}%{_sysconfdir}/lcovrc

%files
%config(noreplace) %{_sysconfdir}/lcovrc
%{_bindir}/*
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2687 |21cr|lcrzo-4.17.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define so_version 4.17

%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Network library, for network administrators and network hackers
Name:		lcrzo
Version:	4.17.0
Release:	18
License:	LGPLv2+
Group:		Networking/Other
Url:		http://www.laurentconstantin.com/en/lcrzo/
Source0:	%{name}-%{version}-src.tar.bz2
Patch0:		lcrzo-4.17.0-genemake.patch
BuildRequires:	pcap-devel

%description
Lcrzo is a network library, for network administrators and network
hackers. Its objective is to easily create network programs. This library
provides network functionnalities for Ethernet, IP, UDP, TCP, ICMP, ARP
and RARP protocols. It supports spoofing, sniffing, client and server
creation. Furthermore, lcrzo contains high level functions dealing with
data storage and handling. Using all these functions, you can quickly
create a network test program.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Lcrzo is a network library, for network administrators and network
hackers. Its objective is to easily create network programs. This library
provides network functionnalities for Ethernet, IP, UDP, TCP, ICMP, ARP
and RARP protocols. It supports spoofing, sniffing, client and server
creation. Furthermore, lcrzo contains high level functions dealing with
data storage and handling. Using all these functions, you can quickly
create a network test program.

%files -n %{libname}
%doc README_EN.TXT
%{_libdir}/liblcrzo.so.%{major}
%{_libdir}/liblcrzo%{major}.so.%{so_version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Conflicts:	%{_lib}lcrzo4-devel < 4.17.0-17
Obsoletes:	%{_lib}lcrzo4-devel < 4.17.0-17

%description -n %{devname}
Lcrzo is a network library, for network administrators and network
hackers. Its objective is to easily create network programs. This library 
provides network functionnalities for Ethernet, IP, UDP, TCP, ICMP, ARP 
and RARP protocols. It supports spoofing, sniffing, client and server
creation. Furthermore, lcrzo contains high level functions dealing with
data storage and handling. Using all these functions, you can quickly
create a network test program.

%files -n %{devname}
%doc doc/*en.txt doc/changelog.txt doc/credits.txt doc/todo.txt INSTALLUNIX_EN.TXT
%{_bindir}/lcrzo-config
%{_libdir}/*.a
%{_libdir}/*.so
%{_includedir}/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-src
%patch0 -p0

%build
pushd src
    ./genemake
    %make GCCOPT="%{optflags} -Wall -ansi -fPIC" \
    GCCOPTL="%{optflags} -Wall -ansi -fPIC" \
    GCCOPTP="%{optflags} -Wall -ansi -fPIC" \
    liblcrzo.a

    #make a shared lib the hard way...
    rm -f lib%{name}*.so*
    gcc -Wl,-soname,lib%{name}.so.%{major} -shared -Wl,--as-needed -Wl,--no-undefined \
    %{optflags} -fPIC -o lib%{name}%{major}.so.%{so_version} *.o -L%{_libdir} -lpcap

popd

%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man3
install -d %{buildroot}%{_includedir}

install -m0755 src/lcrzo-config %{buildroot}%{_bindir}/lcrzo-config

# install the shared lib
install -m0755 src/lib%{name}%{major}.so.%{so_version} %{buildroot}%{_libdir}/
ln -snf lib%{name}%{major}.so.%{so_version} %{buildroot}%{_libdir}/lib%{name}%{major}.so
ln -snf lib%{name}%{major}.so.%{so_version} %{buildroot}%{_libdir}/lib%{name}.so

# install the static lib
install -m0755 src/liblcrzo.a %{buildroot}%{_libdir}/liblcrzo.a

# install headers
install -m0644 src/lcrzo*.h %{buildroot}%{_includedir}/

# install only english man pages
install -m0644 doc/man/*en.* %{buildroot}%{_mandir}/man3/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2688 |21cr|ldapscripts-2.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       ldapscripts
Version:	2.0.8
Release:	1
Summary:    LDAP Scripts
Group:      System/Servers
License:    GPL
URL:        http://contribs.martymac.com/
Source:     http://contribs.martymac.com/ldapscripts/%{name}-%{version}.tgz
Requires:   openldap-clients
Requires:   sharutils
Buildarch:  noarch

%description
LDAP Scripts written in bash which allow to create POSIX entries for users,
groups and machines in an LDAP directory.

They are similar to smbldap-tools but are written in sh instead of PERL and
only require OpenLDAP client commands (ldapadd, ldapdelete, ldapsearch,
ldapmodify, slappasswd).

%prep
%setup -q
sed -i.orig -e "s|^_RUNTIMEFILE=.*|_RUNTIMEFILE=\"%{_usr}/lib/%{name}/runtime\"|g" sbin/*
sed -i.orig -e "s|^_CONFIGFILE=.*|_CONFIGFILE=\"%{_sysconfdir}/%{name}/ldapscripts.conf\"|g" etc/* lib/*

%install
mkdir -p %{buildroot}%{_sbindir}
install -m 755 sbin/* %{buildroot}%{_sbindir}

mkdir -p %{buildroot}%{_sysconfdir}/%{name}
install -m 600 etc/* %{buildroot}%{_sysconfdir}/%{name}

mkdir -p %{buildroot}%{_usr}/lib/%{name}
install -m 600 lib/* %{buildroot}%{_usr}/lib/%{name}

mkdir -p %{buildroot}%{_mandir}
cp -a man/man* %{buildroot}%{_mandir}

%files
%doc README COPYING CHANGELOG 
%{_sbindir}/*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.passwd
%{_sysconfdir}/%{name}/*.template.sample
%{_usr}/lib/%{name}/runtime
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2689 |21cr|ldapvi-1.7-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		ldapvi
Version: 	1.7
Release: 	15
Summary: 	Performs an LDAP search and update results using a text editor
URL:		http://www.lichteblau.com/ldapvi.html
Source0: 	http://www.lichteblau.com/download/%{name}-%{version}.tar.gz
Patch:		ldapvi-makefile.in-destdir.patch
# (misc) patch to fix the naming conflict between function "getline" of stdio.h
# and private function getline in common.h, by renaming it
# comes from upstream : 256ced029c235687bfafdffd07be7d47bf7af39b
Patch1:     ldapvi-fix_naming_conflict.diff 
License: 	GPLv2+
Group: 		System/Configuration/Other
BuildRequires:	openldap-devel >= 2.2.0
BuildRequires:	glib2-devel
BuildRequires:	ncurses-devel
BuildRequires:	popt-devel
BuildRequires:	pkgconfig
BuildRequires:	readline-devel
BuildRequires:	libxslt-proc

%description 
ldapvi allows a user to perform an LDAP search and update results using 
a text editor

%prep
%setup -q
%patch -p1 -b .orig
%patch1 -p2 -b .conflict

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

xsltproc \
    %{buildroot}/%{_docdir}/%{name}/html.xsl \
    %{buildroot}/%{_docdir}/%{name}/manual.xml \
    > %{buildroot}/%{_docdir}/%{name}/manual.html

rm -f %{buildroot}/%{_docdir}/%{name}/html.xsl
rm -f %{buildroot}/%{_docdir}/%{name}/manual.xml
install -m 644 COPYING INSTALL NEWS %{buildroot}/%{_docdir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_docdir}/%{name}
%{_bindir}/%{name}
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2690 |21cr|ldc-1.31.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# https://build.opensuse.org/package/view_file/openSUSE:Factory/ldc/ldc.spec

%define major 101
%define libdruntime %mklibname druntime-ldc-shared %{major}
%define libdruntimed %mklibname druntime-ldc-debug-shared %{major}
%define devdruntime %mklibname druntime-ldc-shared -d
%define libphobos %mklibname phobos2-ldc-shared %{major}
%define libphobosd %mklibname phobos2-ldc-debug-shared %{major}
%define devphobos %mklibname phobos2-ldc-shared -d
%define libjit %mklibname ldc-jit %{major}
%define devjit %mklibname ldc-jit -d

# Do bootstrap, otherwise LDC will build
# against old installed .so instead of new built one
%bcond_with bootstrap
# jit disabled by upstream
# https://github.com/ldc-developers/ldc/issues/3747
%bcond_with jit

Summary:	The LLVM-based D compiler
Name:		ldc
Version:	1.31.0
Release:	3
License:	BSD
Group:		Development/Tools
Url:		https://github.com/ldc-developers/ldc
Source0:	https://github.com/ldc-developers/ldc/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
%if %{with bootstrap}
Source10:  https://github.com/ldc-developers/ldc/releases/download/v%{version}/ldc2-%{version}-linux-%{_arch}.tar.xz
%endif
%if %{without bootstrap}
BuildRequires:	ldc
%endif
BuildRequires:	llvm-devel
BuildRequires:	cmake
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(libconfig)
Requires:	%{devdruntime} = %{EVRD}
Requires:	%{devphobos} = %{EVRD}
%if %{with jit}
Requires:	%{devjit} = %{EVRD}
%endif
# no ldc provided on i686, bootstrap build fail with new llvm
# e2k and riscv not supported in upsream
ExcludeArch: %{ix86} %{e2k} %{riscv}

%description
The LLVM-based D compiler

%files
%doc LICENSE README.md
%{_bindir}/ldc2
%{_bindir}/ldc-build-runtime
%{_bindir}/ldmd2
%{_bindir}/ldc-profdata
%{_bindir}/ldc-prune-cache
%config(noreplace) %{_sysconfdir}/ldc2.conf
%{_datadir}/bash-completion/completions/ldc2

#----------------------------------------------------------------------------

%package -n %{libdruntime}
Summary:	Runtime library for D
Group:		System/Libraries

%description -n %{libdruntime}
Druntime is the minimum library required to support the D programming
language. It includes the system code required to support the garbage
collector, associative arrays, exception handling, array vector operations,
startup/shutdown, etc.

%files -n %{libdruntime}
%doc LICENSE README.md
%{_libdir}/libdruntime-ldc-shared.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdruntimed}
Summary:	Runtime library for D
Group:		System/Libraries

%description -n %{libdruntimed}
Druntime is the minimum library required to support the D programming
language. It includes the system code required to support the garbage
collector, associative arrays, exception handling, array vector operations,
startup/shutdown, etc.

%files -n %{libdruntimed}
%doc LICENSE README.md
%{_libdir}/libdruntime-ldc-debug-shared.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devdruntime}
Summary:	Support for developing D application
Group:		Development/Other
Requires:	%{libdruntime} = %{EVRD}
Requires:	%{libdruntimed} = %{EVRD}
Provides:	druntime-ldc-devel = %{EVRD}

%description -n %{devdruntime}
The druntime-devel package contains header files for developing D
applications that use druntime.

%files -n %{devdruntime}
%doc LICENSE README.md
%{_includedir}/d/core
%{_includedir}/d/ldc
%{_includedir}/d/object.d
%{_includedir}/d/__builtins.di
%{_includedir}/d/importc.h
%{_libdir}/libdruntime-ldc-shared.so
%{_libdir}/libdruntime-ldc-debug-shared.so
%{_libdir}/ldc_rt.dso.o

#----------------------------------------------------------------------------
%if %{with jit}
%package -n %{libjit}
Summary:	LDC JIT library
Group:		System/Libraries

%description -n %{libjit}
JIT library for the LDC compiler.

%files -n %{libjit}
%doc LICENSE README.md
%{_libdir}/libldc-jit.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devjit}
Summary:	Development files for LDC JIT library
Group:		Development/Other
Requires:	%{libjit} = %{EVRD}

%description -n %{devjit}
The %{name}-jit-devel package contains development files for the LDC JIT
library.

%files -n %{devjit}
%doc LICENSE README.md
%{_libdir}/libldc-jit-rt.a
%{_libdir}/libldc-jit.so
%endif
#----------------------------------------------------------------------------

%package -n %{libphobos}
Summary:	Standard Runtime Library
Group:		System/Libraries

%description -n %{libphobos}
Each module in Phobos conforms as much as possible to the following design
goals. These are goals rather than requirements because D is not a religion,
it's a programming language, and it recognizes that sometimes the goals are
contradictory and counterproductive in certain situations, and programmers have
jobs that need to get done

%files -n %{libphobos}
%doc LICENSE README.md
%{_libdir}/libphobos2-ldc-shared.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libphobosd}
Summary:	Standard Runtime Library
Group:		System/Libraries

%description -n %{libphobosd}
Each module in Phobos conforms as much as possible to the following design
goals. These are goals rather than requirements because D is not a religion,
it's a programming language, and it recognizes that sometimes the goals are
contradictory and counterproductive in certain situations, and programmers have
jobs that need to get done

%files -n %{libphobosd}
%doc LICENSE README.md
%{_libdir}/libphobos2-ldc-debug-shared.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devphobos}
Summary:	Support for developing D application
Group:		Development/Other
Requires:	%{libphobos} = %{EVRD}
Requires:	%{libphobosd} = %{EVRD}
Requires:	%{devdruntime} = %{EVRD}
Provides:	phobos2-ldc-devel = %{EVRD}

%description -n %{devphobos}
The phobos-devel package contains header files for developing D
applications that use phobos.

%files -n %{devphobos}
%doc LICENSE README.md
%{_includedir}/d/std
%{_includedir}/d/etc
%{_libdir}/libphobos2-ldc-shared.so
%{_libdir}/libphobos2-ldc-debug-shared.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-src
%if %{with bootstrap}
tar xf %{SOURCE10}
%endif

%build
%if %{with bootstrap}
%global optflags %{optflags} -fno-strict-aliasing
export PATH=$(pwd)/ldc2-%{version}-linux-%{_arch}/bin/:$PATH
%endif
%cmake \
	-DINCLUDE_INSTALL_DIR:PATH=%{_includedir}/d \
	-DCMAKE_CXX_FLAGS="-std=c++11"
%make_build -s

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2691 |21cr|ldetect2ltsp-1.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Utility to convert from Mandriva ldetect to LTSP format
Name:		ldetect2ltsp
Version:	1.0
Release:	9
License:	GPL
Group:		System/Servers
URL:		http://www.ltsp.org
Source0:	ldetect2ltsp

%description
This program will read in a device database of PCI Vendor/Device Ids and a
Video card database in the Mandriva ldetect-lst format, and will convert
them into the LTSP format, for use with pci_scan.

%files
%defattr(-,root,root)
%{_bindir}/%{name}

#---------------------------------------------------------------------

%prep
%setup -q -c -T
cp %{SOURCE0} %{name}

%build

%install
install -d  %{buildroot}%{_bindir}
install -m0755 %{name} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2692 |21cr|ldm-2.2.18-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LTSP Display Manager
Name:		ldm
Version:	2.2.18
Release:	4
License:	GPLv2+
Group:		System/X11
Url:		https://code.launchpad.net/~ltsp-upstream/ltsp/ldm-trunk
Source0:	http://ftp.de.debian.org/debian/pool/main/l/ldm/%{name}_%{version}.orig.tar.xz
Source2:	%{name}.tmpfiles
BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(iso-codes)
Requires:	openssh-clients

%description
LTSP Display Manager handles network logins for remote desktop sessions.

%files -f ldm.lang
%doc COPYING README
%{_bindir}/*
%{_sbindir}/ldm
%{_libdir}/ldm/
%{_libexecdir}/ldm/
%{_datadir}/ldm/
%{_datadir}/ltsp/screen.d/ldm
%{_mandir}/man1/ldm.1*
%{_tmpfilesdir}/%{name}.conf

#-----------------------------------------------------------

%package -n ldminfod
Summary:	LTSP client
Group:		System/X11
Requires:	openssh-server

%description -n ldminfod
Provides Linux Terminal Server capabilities to the LDM client.

%files -n ldminfod
%doc COPYING README
%{_sbindir}/ldminfod
%config(noreplace) %{_sysconfdir}/xinetd.d/ldminfod
%config(noreplace) %{_sysconfdir}/ltsp/ldm-global-dmrc

#-----------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
./configure --prefix=%{_prefix} \
        --exec-prefix=%{_prefix} \
        --bindir=%{_bindir} \
        --sbindir=%{_sbindir} \
        --sysconfdir=%{_sysconfdir} \
        --datadir=%{_datadir} \
        --includedir=%{_includedir} \
        --libdir=%{_libdir} \
        --libexecdir=%{_libexecdir} \
        --localstatedir=/var \
        --mandir=%{_mandir}
make

%install
%make DESTDIR=%{buildroot} install

%find_lang ldm
%find_lang ldmrc
%find_lang ltsp-cluster-info 
cat ltsp-cluster-info.lang ldmrc.lang >> ldm.lang

mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d/ %{buildroot}%{_sbindir}
install -m 0755 ldminfod/ldminfod %{buildroot}%{_sbindir}/ldminfod
install -m 0644 ldminfod/xinetd.d/ldminfod %{buildroot}%{_sysconfdir}/xinetd.d/ldminfod

rm -rf %{buildroot}%{_datadir}/ldm/themes/ltsp
rm -rf %{buildroot}%{_datadir}/ldm/*.a

mkdir -p %{buildroot}%{_sysconfdir}/ltsp
cat > %{buildroot}%{_sysconfdir}/ltsp/ldm-global-dmrc <<EOL
[Desktop]
#Session=gnome
#Session=kde
#Session=xfce4
#Session=sugar
#Language=ja_JP.utf8
#Language=en_US.utf8
EOL
chmod 644 %{buildroot}%{_sysconfdir}/ltsp/ldm-global-dmrc

install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_sbindir}/ldminfod


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2693 |21cr|ldns-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define develname %mklibname -d %{name}

%define build_python 1

Summary:	Lowlevel DNS(SEC) library with API
Name:		ldns
Version:	1.7.1
Release:	1
License:	BSD
Group:		System/Libraries
URL:		http://www.nlnetlabs.nl/ldns/
Source0:	http://www.nlnetlabs.nl/downloads/ldns/ldns-%{version}.tar.gz

BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	libtool
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	doxygen
%if %{build_python}
BuildRequires:	swig
BuildRequires:	pkgconfig(python3)
%endif

%description
ldns is a library with the aim to simplify DNS programing in C. All
lowlevel DNS/DNSSEC operations are supported. We also define a higher
level API which allows a programmer to (for instance) create or sign
packets.

#---------------------------------------------------

%package -n	%{name}-utils
Summary:	DNS(SEC) utility
Group:		Networking/Other
Requires:	%{libname} = %{EVRD}

%description -n	%{name}-utils
This package contains various utilities used to manage
and validate DNSSEC zones using ldns library. 

%files -n %{name}-utils
%doc README LICENSE
%{_bindir}/*
%exclude %{_bindir}/%{name}-config
%{_mandir}/man1/*

#---------------------------------------------------

%package -n	%{libname}
Summary:	Lowlevel DNS(SEC) library with API
Group:		System/Libraries

%description -n	%{libname}
ldns is a library with the aim to simplify DNS programing in C. All
lowlevel DNS/DNSSEC operations are supported. We also define a higher
level API which allows a programmer to (for instance) create or sign
packets.


%files -n %{libname}
%doc README LICENSE 
%{_libdir}/lib*so.%{major}*
#---------------------------------------------------

%package -n	%{develname}
Summary:	Development package that includes the ldns header files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
The devel package contains the ldns library and the include files

%files -n %{develname}
%doc docs/* Changelog README
%dir %{_includedir}/ldns
%{_includedir}/ldns/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*
%{_bindir}/%{name}-config
#---------------------------------------------------

%if %{build_python}
%global __provides_exclude '_ldns.so'

%package -n 	python3-%{name}
Summary:	Python extensions for ldns
Group:		Development/Python
%rename python-%{name}

%description -n python3-%{name}
Python extensions for ldns

%files -n python3-%{name}
%doc README LICENSE
%{py3_platsitedir}/*
%endif
#---------------------------------------------------

%prep
%setup -q

%build
export PYTHON=%{__python3}
%configure \
	--disable-rpath \
%if %{build_python}
        --with-pyldns \
%endif
	--disable-static \
	--with-examples \
	--with-drill \
	--disable-dane-verify
# Enable dane-verify once we have openssl1.1.0


%make

%install
mkdir -p %{buildroot}%{_libdir}/pkgconfig
%makeinstall_std

# cleanup and fix --short-circuit
rm -rf docs; mkdir -p docs
cp -rp doc docs/
rm -rf docs/doc/man
rm -f docs/doc/doxyparse.pl
rm -f docs/doc/ldns_manpages
rm -rf docs/doc/.svn

#we don't want these
find %{buildroot} -name "*.la" -exec rm -rf {} \;

%if %{build_python}
#remove executable bit
chmod a-x %{buildroot}%{py3_platsitedir}/*py
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2694 |21cr|leafpad-0.8.18.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	title	Leafpad

Summary:	Notepad clone
Name:		leafpad
Version:	0.8.18.1
Release:	9
License:	GPLv2+

Group:		Editors

URL:		http://tarot.freeshell.org/leafpad/
Source0:	http://download.savannah.gnu.org/releases/leafpad/%{name}-%{version}.tar.gz
Patch0:		leafpad-0.8.16-fix-str-fmt.patch
Patch1:		leafpad-0.8.17-fix-desktop.patch

BuildRequires:	gtk2-devel
BuildRequires:	intltool

%description
Leafpad is a simple GTK+ based text editor.
The user interface is similar to "notepad",
and it aims to be lighter than GEdit and
KWrite and to be as useful as them.

Following features are intended...

    * Minimum requirement
    * Minimal menu item
    * No toolbar
    * Single document interface (SDI)
    * Character coding auto detection

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
%configure
%make WARN_CFLAGS=""

%install
%makeinstall_std

%find_lang %{name} --with-gnome

%files -f %{name}.lang
%doc COPYING README
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/leafpad.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2695 |21cr|lecaviste-0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fileversion 0.5
%define title Le Caviste

Summary: Wine cellar managing application
Name: lecaviste
Version: 0.5
Release: 6
License: GPLv2
Group: Editors
Url: http://www.lecaviste.org
Source:  http://www.lecaviste.org/download/src/%{name}-%{fileversion}.tar.bz2

BuildRequires:	qt4-devel	>= 4.3

Requires: qt4-common >= 4.3
%if %mdkversion < 200901
Requires: qt4-database-plugin-sqlite-lib >= 4.3
%else
Requires: qt4-database-plugin-sqlite >= 4.3
%endif
			
%description
Wine cellar managing application

%prep
%setup -q -n %{name}

%build
%configure
%make

%install
rm -rf ${RPM_BUILD_ROOT}
%makeinstall

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Le Caviste
GenericName=Cellar Manager
GenericName[fr]=Gestionnaire de cave
Comment=Le Caviste - wine cellar manager
Exec=%{_bindir}/%{name} %f
Icon=%{name}
MapNotify=true
MimeType=application/x-lecaviste;
Terminal=false
Type=Application
StartupNotify=true
Categories=Qt;Utility;
EOF

mkdir -p %{buildroot}%{_datadir}/mimelnk/application
cat > %{buildroot}%{_datadir}/mimelnk/application/x-%{name}.desktop <<EOF
[Desktop Entry]
Type=MimeType
Encoding=UTF-8
MimeType=application/x-lecaviste
Icon=lecaviste-document
Patterns=*.cel;
Comment=Le Caviste File
Comment[fr]=Fichier Le Caviste
EOF

mkdir -p %{buildroot}/%{_iconsdir}
mkdir -p %{buildroot}/%{_miconsdir}
mkdir -p %{buildroot}/%{_liconsdir}
%__install %{_builddir}/%{name}/src/icons/lecaviste-16.png $RPM_BUILD_ROOT/%_miconsdir/%{name}.png
%__install %{_builddir}/%{name}/src/icons/lecaviste-32.png $RPM_BUILD_ROOT/%_iconsdir/%{name}.png
%__install %{_builddir}/%{name}/src/icons/lecaviste-document-32.png $RPM_BUILD_ROOT/%_iconsdir/%{name}-document.png
%__install %{_builddir}/%{name}/src/icons/lecaviste-48.png $RPM_BUILD_ROOT/%_liconsdir/%{name}.png

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}


%if %mdkversion < 200900
%post
%{update_menus}
%{update_desktop_database}
%update_icon_cache hicolor
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%{clean_desktop_database}
%clean_icon_cache hicolor
%endif

%files
%defattr(644,root,root,755)
%doc README TODO AUTHORS INSTALL LICENSE LICENSE-GPL NEWS
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mimelnk/application/x-%{name}.desktop
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_iconsdir}/%{name}-document.png
%{_miconsdir}/%name.png
%dir %{_datadir}/%{name}
%lang(fr) %{_datadir}/%{name}/%{name}_fr.qm
%lang(fr) %{_datadir}/%{name}/qt_fr.qm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2696 |21cr|leftwm-0.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define profile optimized

Summary:	Tiling window manager for Adventurers
Summary(ru_RU.UTF-8): Тайловый оконный менеджер для Авантюристов
Name:		leftwm
Version:	0.5.1
Release:	2
License:	MIT
Group:		Graphical desktop/Other
Url:		https://leftwm.org/
Source0:	https://github.com/leftwm/leftwm/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# cd %%{name}-%%{version}
# mkdir cargo-home
# cat >cargo-home/config <<EOF
# [source.crates-io]
# registry = 'https://github.com/rust-lang/crates.io-index'
# replace-with = 'vendored-sources'
# [source.vendored-sources]
# directory = './vendor'
# EOF
# export CARGO_HOME=$(pwd)/cargo-home
# cargo vendor
Source1:	vendor-%{name}-%{version}.tar.xz
# Удалить при обновлении, https://github.com/leftwm/leftwm/pull/1202
Patch0:		leftwm-0.5.1-i686.patch
# Cargo тянет за собой rust, нужный для сборки.
BuildRequires:	cargo
# Укажем явно (runtime, build)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
# Dmenu можно заменить на Rofi, но придется править темы, потому - recommends
Recommends:	dmenu
# С версии 0.3.0 встроен демон горячих клавиш, но можно использовать и свой - recommends
Recommends:	%{name}-lefthk-worker

%description
LeftWM is a tiling window manager written in Rust.
Examples of themes and useful information are located in the folder /usr/share/leftwm/themes
Themes may require additional packages: fem, picom/compton, lemonbar, xmobar, polybar, conky, dmenu.
 * LeftWM is not a compositor.
 * LeftWM is not a lock screen.
 * LeftWM is not a bar.

%description -l ru_RU.UTF-8
LeftWM - это тайловый оконный менеджер, написанный на Rust.
Примеры тем и полезная информация находятся в папке /usr/share/leftwm/themes
Темы могут требовать дополнительные пакеты: feh, picom/compton, lemonbar, xmobar, polybar, conky, dmenu.
 * LeftWM не содержит композитного менеджера.
 * LeftWM не содержит блокировщик экрана.
 * LeftWM не содержит панель.

#Конфиг генерится при первом запуске в папке у юзера
%files
%doc CHANGELOG.md README.md
%license LICENSE.md
%{_bindir}/%{name}
%{_bindir}/%{name}-*
%{_datadir}/%{name}/
%{_datadir}/xsessions/%{name}.desktop
%{_mandir}/man1/*.1*

#------------------------------------------------------------------

#Выделим пакет с демоном горячих клавиш. Можно использовать свой.
%package lefthk-worker
Summary:	LeftWM built-in since version 0.3.0, the hotkey daemon
Summary(ru_RU.UTF-8): Встроенный в LeftWM с версии 0.3.0 демон горячих клавиш
Requires:	%{name} = %{EVRD}

%description lefthk-worker
Built-in LeftWM with version 0.3.0 is a hotkey daemon (similar to sxhkd).
The package contains the lefthk-worker binary, you can use any other one instead.

%description lefthk-worker -l ru_RU.UTF-8
Встроенный в LeftWM с версии 0.3.0 демон горячих клавиш (аналог sxhkd).
Пакет содержит бинарник lefthk-worker, можно вместо него использовать любой другой.

#Лицензия, маны и конфиг в standalone версии, здесь их нет, но можно попробовать подложить
%files lefthk-worker
%{_bindir}/lefthk-worker

#------------------------------------------------------------------

%prep
%autosetup -p1 -a1

mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'
[source.vendored-sources]
directory = './vendor'
EOF

%build
export CARGO_HOME=$(pwd)/cargo-home/
cargo build --profile %{profile} --offline

%install
install -D -p -m 0644 %{name}.desktop -t %{buildroot}%{_datadir}/xsessions/
install -D -p -m 0644 %{name}/doc/%{name}.1 -t %{buildroot}%{_mandir}/man1/

install -D -p -m 0755 \
	%{_builddir}/%{name}-%{version}/target/%{profile}/%{name} \
	%{_builddir}/%{name}-%{version}/target/%{profile}/%{name}-check \
	%{_builddir}/%{name}-%{version}/target/%{profile}/%{name}-command \
	%{_builddir}/%{name}-%{version}/target/%{profile}/%{name}-state \
	%{_builddir}/%{name}-%{version}/target/%{profile}/%{name}-worker \
	%{_builddir}/%{name}-%{version}/target/%{profile}/lefthk-worker \
	-t %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a themes %{buildroot}%{_datadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2697 |21cr|legesmotus-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Name:           legesmotus
Version:        0.4.0
Release:        1
Summary:        Leges Motus is a 2D networked, team-based shooter set in zero gravity
License:        GPLv3+
Group:          Games/Adventure
Url:            http://legesmotus.endrift.com/index.php/Main_Page
Source0:        https://github.com/endrift/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(osmesa)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(SDL_ttf)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xkbcommon-x11)
BuildRequires:  desktop-file-utils
BuildRequires:  imagemagick

%description
Leges Motus is a networked, team-based, 
2D shooter set in zero-gravity. 
Using only the force from jumping off of walls 
and the recoil from their guns, 
players must travel across the 
arena to lower their opponent's gate.

Features:
    * Fun and strategic gameplay
    * Client/server architecture for networked play
    * Recoil when you fire your gun
    * Obstacles
    * Leader board
    * Radar
    * Chat
    * Multiple maps
    * Server browser
    * 4 official servers in California, Texas, and Rhode Island
    * Multi-platform-ness: runs on Linux/Unix, Windows, Mac OS X

%files
%doc README NEW_MAP_FORMAT COPYING COPYING-sprites Jura.ofl Jura.gpl3
%{_gamesbindir}/%{name}
%{_gamesbindir}/lmserver
%{_gamesbindir}/lmmetaserver
%{_gamesbindir}/lmscan
%{_gamesdatadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*
%{_mandir}/man6/lmserver.6*    
%{_mandir}/man6/lmscan.6*
#---------------------------------------------------------------------
    
%prep
%setup -q

%build
./configure --prefix=%{_prefix} \
  --datadir=%{_gamesdatadir}/%{name} \
  --bindir=%{_gamesbindir} \
  --mandir=%{_mandir} \
  --enable-metaserver \
  --enable-serverscanner 
  
# rename duplicate 
mv data/sprites/COPYING COPYING-sprites
mv data/maps/COPYING COPYING-maps
mv data/fonts/{*.gpl3,*.ofl} .

%make

%install
%make_install

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size data/sprites/blue_head256.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

# menu entry
desktop-file-edit --set-icon=%{name} \
  --set-key=Exec --set-value=%{name} \
  --remove-key=Version \
  %{buildroot}%{_datadir}/applications/%{name}.desktop


rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache \
  %{buildroot}%{_iconsdir}/hicolor/256x256/legesmotus.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2698 |21cr|legesmotus-0.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Leges Motus is a 2D networked, team-based shooter set in zero gravity
Name:		legesmotus
Version:	0.4.0
Release:	2
License:	GPLv3+
Group:		Games/Adventure
Url:		http://legesmotus.endrift.com/index.php/Main_Page
Source0:	https://github.com/endrift/%{name}/archive/%{name}-%{version}.tar.gz
Patch0:		legesmotus-0.4.0-lib64.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(osmesa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xkbcommon-x11)

%description
Leges Motus is a networked, team-based, 2D shooter set in zero-gravity.
Using only the force from jumping off of walls and the recoil from their guns,
players must travel across the arena to lower their opponent's gate.

Features:
    * Fun and strategic gameplay
    * Client/server architecture for networked play
    * Recoil when you fire your gun
    * Obstacles
    * Leader board
    * Radar
    * Chat
    * Multiple maps
    * Server browser
    * 4 official servers in California, Texas, and Rhode Island
    * Multi-platform-ness: runs on Linux/Unix, Windows, Mac OS X

%files
%doc README NEW_MAP_FORMAT COPYING COPYING-sprites Jura.ofl Jura.gpl3
%{_gamesbindir}/%{name}
%{_gamesbindir}/lmserver
%{_gamesbindir}/lmmetaserver
%{_gamesbindir}/lmscan
%{_gamesdatadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*
%{_mandir}/man6/lmserver.6*
%{_mandir}/man6/lmscan.6*

#---------------------------------------------------------------------

%prep
%setup -q
%ifarch %{x86_64} aarch64
%patch0 -p1
%endif

%build
./configure --prefix=%{_prefix} \
  --datadir=%{_gamesdatadir}/%{name} \
  --bindir=%{_gamesbindir} \
  --mandir=%{_mandir} \
  --enable-metaserver \
  --enable-serverscanner 
  
# rename duplicate 
mv data/sprites/COPYING COPYING-sprites
mv data/maps/COPYING COPYING-maps
mv data/fonts/{*.gpl3,*.ofl} .

%make

%install
%makeinstall_std

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size data/sprites/blue_head256.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

# menu entry
desktop-file-edit --set-icon=%{name} \
  --set-key=Exec --set-value=%{name} \
  --remove-key=Version \
  %{buildroot}%{_datadir}/applications/%{name}.desktop


rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache \
  %{buildroot}%{_iconsdir}/hicolor/256x256/legesmotus.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2699 |21cr|lego-mindstorms-udev-rules-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Правила udev для Lego NXT и EV3
Summary:	Udev rules for Lego NXT and EV3
Name:		lego-mindstorms-udev-rules
Version:	0.1
Release:	1
License:	GPLv3
Group:		System/Configuration/Hardware
Url:		https://abf.io/import/lego-mindstorms-udev-rules
Vendor:		MOS
Source0:	96-lego-mindstorms-udev.rules
BuildArch:	noarch

BuildRequires:	systemd-units
Requires:	udev
Supplements:	trik-studio

%description
Rules for udev to allow normal users access to work with lego mindstorms controllers

%description -l ru_RU.UTF-8
Правило udev для Lego NXT и EV3, дающее возможность работать с роботами через подходящую IDE (например, trik-studio)

%files
%{_udevrulesdir}/96-lego-mindstorms-udev.rules

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%install
mkdir -p %{buildroot}%{_udevrulesdir}
install -m644 96-lego-mindstorms-udev.rules %{buildroot}%{_udevrulesdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2700 |21cr|lemonpos-0.9.4-0.rc7.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		devversion	7

Name:		lemonpos
Version:	0.9.4
Release:	%mkrel -c rc%{devversion} 1
Summary:	Point of Sale software
License:	GPLv2+
Group:		Office
Url:		http://www.lemonpos.org
Source0:	http://sourceforge.net/projects/lemonpos/files/citronic/%{name}-%{version}-rc%{devversion}.tar.bz2
Source100:	lemonpos.rpmlintrc

BuildRequires:	kdelibs4-devel

Requires:	task-kde4-minimal
Requires:	mysql
Requires:	%{name}-squeeze = %{EVRD}

%description
Lemon Is an open source Point of Sale software for micro, 
small and medium businesses. 
Supports many POS terminals with a single database on a network, 
and has been tested with Star Micronics Thermal/Parallel 
printers and Datalogic bar code readers.

%files -f lemon.lang
%doc README.install.urpmi
%{_kde_bindir}/lemon
%{_kde_iconsdir}/hicolor/*/*/lemon*.png
%{_kde_datadir}/config.kcfg/lemon.kcfg
%{_kde_datadir}/config/lemonrc
%{_kde_appsdir}/lemon/*
%exclude %{_kde_appsdir}/lemon/lemon_mysql.sql
%{_kde_applicationsdir}/lemon.desktop
#----------------------------------------------

%package squeeze
Summary:	Administrative interface of %{name}
Requires:	task-kde4
Requires:	mysql

%description squeeze
Administrative interface of %{name}.
With squeeze you can manage your store and 
get valuable information in which base your 
decisions to improve your business.
You have to create the lemon database using 
this command as root:

%files -f squeezelemon.lang squeeze
%doc CHANGELOG COPYING NOTES README USING
%{_kde_bindir}/squeezelemon
%{_kde_iconsdir}/hicolor/*/*/squeeze*.png
%{_kde_appsdir}/squeezelemon/*
%{_kde_datadir}/config.kcfg/squeezelemon.kcfg
%{_kde_applicationsdir}/squeezelemon.desktop
%{_kde_appsdir}/lemon/lemon_mysql.sql
#----------------------------------------------

%prep
%setup -qn %{name}

# notification
cat > README.install.urpmi << EOF
You have to create the lemon database before running the application.
You can use this command as root:
cat %{_kde_appsdir}/lemon/lemon_mysql.sql | mysql -u root -p

EOF

# squeeze exe already exists (provided by squeeze package)
# patching source to substitute squeeze by squeezelemon
find . -type f -exec sed -i -e 's|squeeze|squeezelemon|g' {} \;
mv ./squeeze ./squeezelemon
find . -name "*squeeze*" -type f -print > _tmp_
for i in `cat _tmp_`;
do
	directory=`dirname $i`;
	filename=`basename $i`;
	nwfilename=${filename//squeeze/squeezelemon};
	mv $i "$directory/$nwfilename";
done

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications/kde4 \
	--add-category="Office" \
	%{buildroot}%{_datadir}/applications/kde4/lemon.desktop
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications/kde4 \
	--add-category="Office" \
	%{buildroot}%{_datadir}/applications/kde4/squeezelemon.desktop

%find_lang lemon
%find_lang squeezelemon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2701 |21cr|leocad-21.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CAD program to build virtual LEGO models
Name:		leocad
Version:	21.06
Release:	1
License:	GPLv2
Group:		Toys
Url:		http://www.leocad.org
Source0:	https://github.com/leozide/leocad/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	qt5-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(libpng)

Requires:	leocad-data

%description
LeoCAD is a CAD program that can be used to create virtual LEGO models.

It has an easy to use interface and currently features over 6000 different
pieces created by the LDraw community.

%prep
%autosetup -p1

# switch to UTF-8
for i in docs/*.txt; do
	mv $i $i.old
	iconv -f ISO-8859-1 -t UTF-8 -o $i $i.old
done

%build
%qmake_qt5 DISABLE_UPDATE_CHECK=1
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

#for data
mkdir -p %{buildroot}%{_datadir}/%{name}

#handle doc in files section
rm -rf %{buildroot}%{_docdir}

%files
%doc docs/*.txt
%{_bindir}/leocad
%{_datadir}/applications/leocad.desktop
%{_datadir}/icons/hicolor/*/mimetypes/application-vnd.leocad.*
%{_datadir}/icons/hicolor/*/apps/leocad.*
%dir %{_datadir}/%{name}/
%{_mandir}/man1/leocad.1*
%{_datadir}/mime/packages/leocad.xml
%{_datadir}/metainfo/leocad.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2702 |21cr|leocad-data-21.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define library_version 20.03

Name:		leocad-data
Summary:	Data files for leocad: bricks, textures and font
Version:	21.06
Release:	1
License:	Creative Commons Attribution
Url:		http://www.leocad.org
Source0:	https://github.com/leozide/leocad/releases/download/v%{version}/Library-%{library_version}.zip
Group:		Toys
BuildArch:	noarch

%description
Pieces, textures and font for LeoCAD.

%prep
%setup -q -c %{name}-%{version}

%build
#nothing

%install
install -d %{buildroot}%{_datadir}/leocad/
install -Dpm644 library.bin %{buildroot}%{_datadir}/leocad/

%files
%{_datadir}/leocad/library.bin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2703 |21cr|letterize-1.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generate pronounceable mnemonics from phone numbers
Name:		letterize
Version:	1.4
Release:	3
License:	GPLv2+
Group:		Text tools
URL:		http://www.catb.org/~esr/letterize/
Source0:	http://www.catb.org/~esr/letterize/%{name}-%{version}.tar.gz

%description
Generate all possible alphabetic mnemonics for a phone
number, then filter them for phonetic plausibility in
English.

%prep
%setup -q

%build
cc $RPM_OPT_FLAGS letterize.c -o letterize

%install
mkdir -p %buildroot/usr/bin
mkdir -p %buildroot/usr/share/man/man1/
cp %{name}  %buildroot/usr/bin
cp %{name}.1 %buildroot/usr/share/man/man1/

%files
%defattr(-,root,root)
%doc README COPYING
%{_mandir}/man1/%{name}.1*
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2704 |21cr|leveldb-1.17.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:           leveldb
Version:        1.17.0
Release:        6
Summary:        A fast and lightweight key/value database library by Google
Group:          Databases
License:        BSD
URL:            http://code.google.com/p/leveldb/
# Repacked from git tag on URL
Source0:        %{name}-%{version}.tar.xz
# Sent upstream - https://code.google.com/p/leveldb/issues/detail?id=101
Patch1:         leveldb-0001-Initial-commit-of-the-autotools-stuff.patch
# Temporary workaround for secondary arches
Patch2:         leveldb-1.16.0-oma-Add-memory-barrier-on-PowerPC.patch
# https://groups.google.com/d/topic/leveldb/SbVPvl4j4vU/discussion
Patch3:         leveldb-0003-bloom_test-failure-on-big-endian-archs.patch
# available in https://github.com/fusesource/leveldbjni/blob/leveldbjni-[LEVELDBJNI VERSION]/leveldb.patch
Patch4:         leveldb-0004-Allow-leveldbjni-build.patch
# https://github.com/fusesource/leveldbjni/issues/34
# https://code.google.com/p/leveldb/issues/detail?id=184
# Add DB::SuspendCompactions() and DB::ResumeCompactions() methods
Patch5:         leveldb-0005-Added-a-DB-SuspendCompations-and-DB-ResumeCompaction.patch
# Cherry-picked from Basho's fork
Patch6:         leveldb-0006-allow-Get-calls-to-avoid-copies-into-std-string.patch

BuildRequires:  snappy-devel
BuildRequires:  libtool

%description
LevelDB is a fast key-value storage library written at Google that provides an
ordered mapping from string keys to string values.

#----------------------------------------------------------------------------

%package -n     %{libname}
Summary:        %{summary}
Group:          System/Libraries

%description -n %{libname}
LevelDB is a fast key-value storage library written at Google that provides an
ordered mapping from string keys to string values.

%files -n       %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n     %{devname}
Summary:        Development files for LevelDB
Group:          System/Libraries
Requires:       %{libname} = %{version}-%{release}

%description -n %{devname}
LevelDB is a fast key-value storage library written at Google that provides an
ordered mapping from string keys to string values.

This package contains additional header files for development with LevelDB.

%files -n       %{devname}
%doc doc/ AUTHORS LICENSE README
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -ivf
%configure --disable-static --with-pic
%make_build LIBS="-lstdc++ -lm" OPT="%{optflags}"

%install
%make_install

%check
make check


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2705 |21cr|levmar-2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define minor 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		levmar
Version:	2.6
Release:	1
Summary:	Levenberg-Marquardt nonlinear least squares algorithm
URL:		http://www.ics.forth.gr/~lourakis/levmar/
Source0:	http://www.ics.forth.gr/~lourakis/levmar/levmar-%{version}.tgz
# Patch to fix compilation of the shared library and compile the demo program
# Sent to levmar author on 28-Jan-2010
Patch0:		levmar-shared.patch

License:	GPLv2+
Group:		Development/C

BuildRequires:	dos2unix
BuildRequires:	lapack-devel

%description
levmar is a native ANSI C implementation of the Levenberg-Marquardt
optimization algorithm.  Both unconstrained and constrained (under linear
equations, inequality and box constraints) Levenberg-Marquardt variants are
included.  The LM algorithm is an iterative technique that finds a local
minimum of a function that is expressed as the sum of squares of nonlinear
functions.  It has become a standard technique for nonlinear least-squares
problems and can be thought of as a combination of steepest descent and the
Gauss-Newton method.  When the current solution is far from the correct on,
the algorithm behaves like a steepest descent method: slow, but guaranteed
to converge.  When the current solution is close to the correct solution, it
becomes a Gauss-Newton method.

%package -n %{libname}
Summary:	Levenberg-Marquardt nonlinear least squares algorithm
Group:		Development/C

%description -n %{libname}
levmar is a native ANSI C implementation of the Levenberg-Marquardt
optimization algorithm.  Both unconstrained and constrained (under linear
equations, inequality and box constraints) Levenberg-Marquardt variants are
included.  The LM algorithm is an iterative technique that finds a local
minimum of a function that is expressed as the sum of squares of nonlinear
functions.  It has become a standard technique for nonlinear least-squares
problems and can be thought of as a combination of steepest descent and the
Gauss-Newton method.  When the current solution is far from the correct on,
the algorithm behaves like a steepest descent method: slow, but guaranteed
to converge.  When the current solution is close to the correct solution, it
becomes a Gauss-Newton method.

%package -n %{devname}
Summary:	Development files for levmar library, and demo program
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the levmar library, and demo program.

%prep
%setup -q
%patch -P 0 -p1 -b .shared
dos2unix -k README.txt

%build
mkdir sobj
make CFLAGS="%{optflags} -funroll-loops -fPIC" %{?_smp_mflags} -f Makefile.so

%install
install -D -p -m 755 sobj/liblevmar.so.%{major}.%{minor} %{buildroot}%{_libdir}/liblevmar.so.%{major}.%{minor}
install -D -p -m 644 levmar.h %{buildroot}%{_includedir}/levmar.h
install -D -p -m 755 lmdemo %{buildroot}%{_bindir}/lmdemo
ln -s liblevmar.so.%{major}.%{minor} %{buildroot}%{_libdir}/liblevmar.so.%{major}
ln -s liblevmar.so.%{major}.%{minor} %{buildroot}%{_libdir}/liblevmar.so

%files -n %{libname}
%doc README.txt LICENSE
%{_libdir}/liblevmar.so.%{major}.%{minor}
%{_libdir}/liblevmar.so.%{major}

%files -n %{devname}
%{_includedir}/levmar.h
%{_libdir}/liblevmar.so
%{_bindir}/lmdemo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2706 |21cr|lexed-4.7-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	%{version}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		lexed
Version:	4.7
Release:	13
Summary:	Lexicon analyser
Source:		https://gforge.inria.fr/frs/download.php/1489/%{name}-%{version}.tar.bz2
URL:		https://gforge.inria.fr/projects/lingwb/
License:	GPL
Group:		Sciences/Computer science
Requires:	%{libname} = %{version}-%{release}

%description
Lexed allows to search a dictionary entry from a string. The finished
automata-based algorithm is especially fast, and offers a good alternative to
hashes for large dictionnaries.

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{libname}-devel < 4.7-10

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files
%doc AUTHORS COPYING INSTALL NEWS README doc/*.html
%{_bindir}/%{name}
%{_mandir}/man1/*

%files -n %{libname}
%{_libdir}/liblexed-%{version}.so

%files -n %{devname}
%{_bindir}/%{name}-config
%{_includedir}/*
%{_libdir}/liblexed.so
%{_datadir}/aclocal/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2707 |21cr|lexmark2070-0.6-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lexmark 2070 Printer B/W driver
Name:		lexmark2070
Version:	0.6
Release:	23
License:	GPLv2+
Group:		System/Printing
Url:		http://www.kornblum.i-p.com/2070/Lexmark2070.old.html
Source0:	http://www.kornblum.i-p.com/2070/Lexmark2070.latest.tar.bz2
Patch0:		Lexmark2070-LDFLAGS.diff
BuildRequires:	netpbm-devel
Requires:	c2070

%description
This filter allows to print in B/W a Lexmark 2070 (windows GDI) printer.

%files
%doc README LICENSE
%attr(0755,root,root) %{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -c
%patch0 -p0

%build
make -f makefile CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
install -m0755 Lexmark2070 %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2708 |21cr|lft-3.91-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Alternative traceroute tool for network (reverse) engineers
Name:		lft
Version:	3.91
Release:	1
# http://pwhois.org/license.who
License:	VOSTROM Public License
Group:		Networking/Other
Url:		http://pwhois.org/lft/
Source0:	%{name}-%{version}.tar.gz
Patch0:		lft-3.91-fix_install.patch
BuildRequires:	libpcap-devel
Provides:	whob = %{version}-%{release}

%description
LFT, short for Layer Four Traceroute, is a sort of 'traceroute'
that often works much faster (than the commonly-used Van Jacobson
method) and goes through many configurations of packet-filter
based firewalls. More importantly, LFT implements numerous other
features including AS number lookups, loose source routing,
netblock name lookups, et al.

%files
%doc CHANGELOG README TODO README.suid
%attr(4755,root,root) %{_bindir}/lft
%{_bindir}/whob
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .fix_install

%build
%configure
%make

%install
%makeinstall_std

echo "lft is suid because it requires a access to a raw socket in order to send packet." > README.suid


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2709 |21cr|lgeneral-1.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	A Panzer General clone
Name:		lgeneral
Version:	1.4.4
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://lgames.sourceforge.net/index.php?project=LGeneral
Source0:	http://prdownloads.sourceforge.net/lgeneral/%{name}-%{version}.tar.gz
Source1:	http://prdownloads.sourceforge.net/lgeneral/pg-data.tar.gz
Patch0:		lgeneral-1.2-make-lgc-pg-buildroot-aware.patch
Patch1:		lgeneral-1.3.1-desktop.patch
Patch2:		lgeneral-1.4.4-mga-gettext.patch
Patch3:		lgeneral-1.4.3-redit.patch
BuildRequires:	x11-server-xvfb
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)

%description
LGeneral is a turn-based strategy engine heavily inspired by Panzer General.
You play single scenarios or whole campaigns turn by turn against a human
player or the AI. Entrenchment, rugged defense, defensive fire, surprise
contacts, surrender, unit supply, weather influence, reinforcements and other
implementations contribute to the tactical and strategic depth of the game.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README* TODO
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/lgeneral.*
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man[16]/*
%{_gamesbindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -a1
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
autoreconf -fi
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

mv %{buildroot}%{_gamesdatadir}/applications %{buildroot}%{_datadir}/
mv %{buildroot}%{_gamesdatadir}/icons %{buildroot}%{_datadir}/

%find_lang lgeneral pg %{name}.lang

# not created by make install with new automake but needed for lgc-pg
mkdir -p %{buildroot}%{_gamesdatadir}/lgeneral/gfx/flags
mkdir -p %{buildroot}%{_gamesdatadir}/lgeneral/gfx/terrain
mkdir -p %{buildroot}%{_gamesdatadir}/lgeneral/gfx/units
# install data files
xvfb-run lgc-pg/lgc-pg --separate-bridges -s pg-data -d %{buildroot}%{_gamesdatadir}/lgeneral

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2710 |21cr|lha-1.14i-27.20210701.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20210701

Summary:	An archiving and compression utility for LHarc format archives
Name:		lha
Epoch:		1
Version:	1.14i
Release:	27.%{git}.1
License:	Freeware-like
Group:		Archiving/Compression
Url:		https://github.com/jca02266/lha
Source0:	https://github.com/jca02266/lha/archive/master.zip
Source1:	http://packages.debian.org/changelogs/pool/non-free/l/lha/current/copyright

%description
LhA is an archiving and compression utility for LHarc format archive.
LhA is mostly used in the Amiga and in the DOS world, but can be used 
under Linux to extract files from .lha and .lzh archives. 

Install the LhA package if you need to extract files from .lha or .lzh
Amiga or DOS archives, or if you have to build LhA archives to
be read on the Amiga or DOS.

%files
%doc copyright
%{_bindir}/lha
%{_mandir}/man1/lha.1*
%lang(ja) %{_mandir}/ja/mann/lha.n*

#------------------------------------------------------------------

%prep
%setup -qn %{name}-master
cp %{SOURCE1} .

%build
autoreconf -is
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/ja/mann
install -m 644 man/lha.n %{buildroot}%{_mandir}/ja/mann/lha.n

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2711 |21cr|lhasa-0.3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Free LZH archive tool
Name:		lhasa
Version:	0.3.1
Release:	5
License:	ISC license
Group:		Archiving/Compression
Url:		http://fragglet.github.io/lhasa/
Source0:	https://github.com/fragglet/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1:	https://github.com/fragglet/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz.asc
Conflicts:	lha

%description
Lhasa is a library for parsing LHA (.lzh) archives and a free
replacement for the Unix LHA tool.

Currently it is only possible to read from (ie. decompress) archives;
generating (compressing) LHA archives may be an enhancement for future
versions. The aim is to be compatible with as many different variants
of the LHA file format as possible, including LArc (.lzs) and PMarc
(.pma).  A suite of archives generated from different tools is
included for regression testing. Type 'make check' to run the tests.

The command line tool aims to be interface-compatible with the
non-free Unix LHA tool (command line syntax and output), for backwards
compatibility with tools that expect particular output.

Lhasa is licensed under the ISC license, which is a simplified version
of the MIT/X11 license that is functionally identical.

%files
%{_bindir}/lha
%{_mandir}/man1/lha.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
Shared library used by %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{libname} library.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/liblhasa.pc
%{_includedir}/liblhasa-1.0/lha_decoder.h
%{_includedir}/liblhasa-1.0/lha_file_header.h
%{_includedir}/liblhasa-1.0/lha_input_stream.h
%{_includedir}/liblhasa-1.0/lha_reader.h
%{_includedir}/liblhasa-1.0/lhasa.h

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2712 |21cr|lib3ds-1.3.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 3
%define libname %mklibname 3ds %{api} %{major}
%define devname %mklibname 3ds -d

Summary:	The 3D Studio file format library
Name:		lib3ds
Version:	1.3.0
Release:	10
License:	GPLv2+
Group:		System/Libraries
Url:		http://lib3ds.sourceforge.net/
Source0:	http://downloads.sourceforge.net/lib3ds/%{name}-%{version}.zip
BuildRequires:	pkgconfig(glut)

%description
Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for handling
3DS files It's main goal is to simplify the creation of 3DS import and
export filters.

This project is not related in any form to Autodesk. The library is
based on unofficial information about the 3DS format found on the web.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The 3D Studio file format library
Group:		System/Libraries
Conflicts:	%{_lib}3ds3 < 1.3.0-8
Obsoletes:	%{_lib}3ds3 < 1.3.0-8

%description -n %{libname}
Lib3ds is a free alternative to Autodesk's 3DS File Toolkit for handling
3DS files It's main goal is to simplify the creation of 3DS import and
export filters.

This project is not related in any form to Autodesk. The library is
based on unofficial information about the 3DS format found on the web.

%files -n %{libname}
%doc AUTHORS ChangeLog README
%{_libdir}/lib3ds-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%{_libdir}/%{name}.so
%{_includedir}/%{name}
%{_datadir}/aclocal/%{name}.m4
%{_mandir}/man1/*
%defattr(755,root,root,755)
%{_bindir}/3dsdump
%{_bindir}/lib3ds-config

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fPIC"
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2713 |21cr|lib3mf-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_enable_debug_packages %{nil}
%global	debug_package %{nil}

%define	major 2
%define	libname %mklibname 3mf %{major}
%define	develname %mklibname 3mf -d

Summary:	C++ implementation of the 3D Manufacturing Format
Name:		lib3mf
Version:	2.2.0
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://3mf.io/
Source0:	https://github.com/3MFConsortium/lib3mf/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		lib3mf-2.1.1-fix-pkgconfig-file.patch
BuildRequires:	cmake
#BuildRequires:	python3-sphinx
# Not provided yet - needed for the docs
#BuildRequires:	python3-sphinx-tabs
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)

%description
A C++ implementation of the 3D Manufacturing Format file standard. It provides
3MF reading and writing capabilities, as well as conversion and validation
tools for input and output data. It runs on Windows, Linux and MacOS and
offers a clean and easy-to-use API in various programming languages to speed
up the development and keep integration costs at a minimum.
As 3MF shall become an universal 3D Printing standard, its quick adoption is
very important. This library shall lower all barriers of adoption to any
possible user, let it be software providers, hardware providers, service
providers or middleware tools.

#------------------------------------------------

%package -n	%{libname}
Summary:	Library implementing the 3D Manufacturing Format
Group:		System/Libraries

%description -n	%{libname}
A C++ implementation of the 3D Manufacturing Format file standard. It provides
3MF reading and writing capabilities, as well as conversion and validation
tools for input and output data.
This package contains the main library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	3mf-devel = %{EVRD}

%description -n	%{develname}
Header files and library for development with %{name}.

%files -n %{develname}
%doc CONTRIBUTING.md README.md
%{_includedir}/%{name}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%cmake \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-DCMAKE_INSTALL_INCLUDEDIR="include/%{name}" \
	-DUSE_INCLUDED_LIBZIP=OFF \
	-DUSE_INCLUDED_ZLIB=OFF \
	-DUSE_INCLUDED_GTEST=OFF \
	-DLIB3MF_TESTS=OFF
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2714 |21cr|libaacs-0.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		0
%define	libname		%mklibname aacs %{major}
%define	devname		%mklibname aacs -d

Summary:	Implementation of the AACS standard
Name:		libaacs
Version:	0.11.1
Release:	1
License:	LGPLv2+
Group:		Video
Url:		http://www.videolan.org
Source0:	ftp://ftp.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.bz2
#Patch0:	bison_2.6.patch
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	pkgconfig(libgcrypt) >= 1.6.0

%description
A library containing an implementation of the AACS standard.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Implementation of the AACS standard
Group:		Video

%description -n %{libname}
A library containing an implementation of the AACS standard.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Provides:	aacs-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc ChangeLog COPYING KEYDB.cfg
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc


#-----------------------------------------------------------------------------

%package -n aacs-util
Summary:	Utility for gathering info about a DVD
Group:		Video
Requires:	%{libname} = %{EVRD}

%description -n aacs-util
Command line utility for gathering info about a DVD, by using %{name}.

%files -n aacs-util
%doc COPYING
%{_bindir}/aacs_info

#-----------------------------------------------------------------------------

%prep
%setup -q
#patch0 -p1


%build
%configure
%make


%install
%makeinstall_std
rm %{buildroot}%{_libdir}/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2715 |21cr|libaal-1.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define api 1.0
%define libname %mklibname aal %{api} %{major}

%define major_min 0
%define libminimal %mklibname aal-minimal %{major_min}

%define devname %mklibname aal -d
%define sdevname %mklibname aal -d -s

Summary:	Library for Reiser4 filesystem
Name:		libaal
Version:	1.0.7
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/reiser4/files/reiser4-utils/libaal/
Source0:	http://sourceforge.net/projects/reiser4/files/reiser4-utils/libaal/%{name}-%{version}.tar.gz
Patch0:		libaal-1.0.7-rpmoptflags.patch
Patch1:		libaal-castint.patch
Patch2:		libaal-1.0.7-ldconfig.patch

%description
A library needed for Reiser4 filesystem utilities.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for Reiser4 filesystem
Group:		System/Libraries

%description -n %{libname}
A library needed for Reiser4 filesystem utilities.

%files -n %{libname}
# COPYING contains information other than GPL text
%doc AUTHORS BUGS COPYING CREDITS ChangeLog README THANKS TODO
/%{_lib}/libaal-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libminimal}
Summary:	%{name} library with miminal footprint
Group:		System/Libraries

%description -n %{libminimal}
%{name} library with miminal memory foorprint. This is useful when
you need to build grub with Reiser4 support.

%files -n %{libminimal}
/%{_lib}/libaal-minimal.so.%{major_min}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files for libaal library
Group:		Development/Kernel
Requires:	%{libname} = %{EVRD}
Requires:	%{libminimal} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.0.6
Obsoletes:	%{name}-devel < 1.0.6

%description -n %{devname}
Development related files for libaal library.

%files -n %{devname}
/%{_lib}/lib*.so
%{_includedir}/*
%{_datadir}/aclocal/*.m4

#----------------------------------------------------------------------------
%package -n %{sdevname}
Summary:	Static libaal library
Group:		Development/Kernel
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Conflicts:	%{name}-static-devel < 1.0.6
Obsoletes:	%{name}-static-devel < 1.0.6

%description -n %{sdevname}
The static libaal library.

%files -n %{sdevname}
/%{_lib}/lib*.a
#----------------------------------------------------------------------------
%prep
%autosetup -p1

%build
# be very pedantic
# needed for patch0
autoreconf -fi
%configure \
	--libdir=/%{_lib}\
	--libexecdir=/%{_lib}\
	--enable-static \
	%{?debug:--enable-debug}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2716 |21cr|libannodex-0.7.3-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 0
%define libname %mklibname annodex %{major}
%define devname %mklibname annodex -d

Summary:	Library for annotating and indexing networked media
Name:		libannodex
Version:	0.7.3
Release:	16
License:	BSD
Group:		System/Libraries
Url:		http://www.annodex.net/
Source0:	http://www.annodex.net/software/libannodex/download/%{name}-%{version}.tar.bz2
Patch0:		libannodex.man.patch
Patch1:		libannodex-0.7.3-gcc4.diff
Patch2:		libannodex-0.7.3-avoid-version.diff
Patch3:		libannodex-malloc_fix.diff
BuildRequires:	doxygen
BuildRequires:	docbook-utils
BuildRequires:	pkgconfig(cmml)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(oggz)
BuildRequires:	pkgconfig(sndfile)
Conflicts:	%{_lib}annodex1 < 0.7.3-10

%description
libannodex is a library to provide reading and writing of Annodex files and
streams.

%files
%doc AUTHORS ChangeLog COPYING README
%dir %{_libdir}/annodex/importers
%{_libdir}/annodex/importers/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for annotating and indexing networked media
Group:		System/Libraries
Requires:	%{name}
Conflicts:	%{_lib}annodex1 < 0.7.3-10
Obsoletes:	%{_lib}annodex1 < 0.7.3-10

%description -n %{libname}
libannodex is a library to provide reading and writing of Annodex files and
streams.

%files -n %{libname}
%{_libdir}/libannodex.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for development using libannodex
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libannodex is a library to provide reading and writing of Annodex files and
streams.

This package contains the header files and documentation needed for development
using libannodex.

%files -n %{devname}
%doc doc/libannodex/html/* TODO
%dir %{_includedir}/annodex
%{_includedir}/annodex/*.h
%{_libdir}/libannodex.so
%{_libdir}/pkgconfig/annodex.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Various tools using the annotating and indexing networked media library
Group:		File tools

%description tools
This package contains various tools using the annotating and indexing networked
media library.

%files tools
%{_bindir}/anx*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0

%build
rm -f configure
libtoolize --copy --force --ltdl; aclocal -I m4; autoconf; automake --add-missing

# *** No rule to make target '../../libltdl/libltdlc.so', needed by 'libannodex.la'
sed s,"libltdlc.so","libltdlc.la",g -i configure

%configure \
	--disable-static
make

%install
%makeinstall_std

# cleanup
rm -rf %{buildroot}%{_docdir}/libannodex

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2717 |21cr|libaosd-0.2.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname aosd %{major}
%define libtext %mklibname aosd-text %{major}
%define devname %mklibname aosd -d

Summary:	Advanced on-screen display library
Name:		libaosd
Version:	0.2.7
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/atheme-legacy/libaosd
Source0:	https://github.com/atheme-legacy/libaosd/archive/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xrender)

%description
Libaosd is an advanced on screen display library. It supports many modern
features like anti-aliased text and composited rendering via XComposite,
as well as support for rendering Cairo and Pango layouts.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Advanced on-screen display library
Group:		System/Libraries

%description -n %{libname}
Libaosd is an advanced on screen display library. It supports many modern
features like anti-aliased text and composited rendering via XComposite,
as well as support for rendering Cairo and Pango layouts.

%files -n %{libname}
%{_libdir}/libaosd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libtext}
Summary:	Advanced on-screen display library
Group:		System/Libraries

%description -n %{libtext}
Libaosd is an advanced on screen display library. It supports many modern
features like anti-aliased text and composited rendering via XComposite,
as well as support for rendering Cairo and Pango layouts.

%files -n %{libtext}
%{_libdir}/libaosd-text.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for advanced on-screen display library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libtext} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for advanced on-screen display library

%files -n %{devname}
%{_libdir}/libaosd.so
%{_libdir}/libaosd-text.so
%{_libdir}/pkgconfig/libaosd.pc
%{_libdir}/pkgconfig/libaosd-text.pc
%{_includedir}/libaosd/aosd.h
%{_includedir}/libaosd/aosd-text.h

#----------------------------------------------------------------------------

%package -n aosd_cat
Summary:	On-screen display tool
Group:		Graphical desktop/Other

%description -n aosd_cat
Aosd_cat is an advanced on-screen display tool based on libaosd. It can be
used for OSD-style notifications in shell scripts.

%files -n aosd_cat
%{_bindir}/aosd_cat
%{_mandir}/man1/aosd_cat.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2718 |21cr|libapparmor-2.3-1.1310.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname apparmor %{major}
%define libimmunix %mklibname immunix %{major}
%define devname %mklibname apparmor -d
%define svnrev 1310

Summary:	Main libraries for AppArmor
Name:		libapparmor
Version:	2.3
Release:	1.%{svnrev}.8
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://forge.novell.com/modules/xfmod/project/?apparmor
Source0:	libapparmor-%{version}-%{svnrev}.tar.gz
Patch0:		libapparmor-2.3-1310-makefile.patch
Buildrequires:	bison
Buildrequires:	flex
Buildrequires:	libtool
Buildrequires:	swig
Buildrequires:	perl-devel

%description
AppArmor is a security framework that proactively protects the operating system
and applications. This package contains the main library for AppArmor.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the AppArmor library.

%files -n %{libname}
%doc COPYING.LGPL AUTHORS
%{_libdir}/libapparmor.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libimmunix}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}apparmor1 < 2.3-1.1310.6

%description -n %{libimmunix}
This package contains the AppArmor library.

%files -n %{libimmunix}
%doc COPYING.LGPL AUTHORS
%{_libdir}/libimmunix.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libimmunix} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	apparmor-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc README
%{_includedir}/aalogparse/
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/sys/*.h
%{_mandir}/man2/aa_change_hat.2*

#----------------------------------------------------------------------------

%package -n perl-libapparmor
Summary:	AppArmor module for perl
Group:		Development/Perl
Requires:	%{libname} = %{EVRD}
Requires:	%{libimmunix} = %{EVRD}

%description -n perl-libapparmor
This package contains the AppArmor module for perl.

%files -n perl-libapparmor
%{perl_vendorarch}/auto/LibAppArmor
%{perl_vendorarch}/LibAppArmor.pm

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{svnrev}
%patch0 -p1
find . -name "Makefile*" -o -name "*.m4" -o -name "configure*" |xargs sed -i -e 's,configure.in,configure.ac,g'

%build
./autogen.sh
%serverbuild
%configure \
	--with-perl \
	--enable-static
%make CFLAGS="%{optflags}" TESTBUILDDIR=$(pwd)

%install
# lib
%makeinstall_std LIB=%{_lib} LIBDIR=%{_libdir}
# XXX - for some reason, on i586 builds this file is not copied
install -m 0644 swig/perl/LibAppArmor.pm %{buildroot}%{perl_vendorarch}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2719 |21cr|libapreq2-2.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define rversion 2.14
%define revision r376644

%define mod_name mod_apreq
%define mod_conf 76_%{mod_name}2.conf
%define mod_so %{mod_name}2.so

%define apache_version 2.2.0

%define major 3
%define libname %mklibname apreq2_ %{major}
%define devname %mklibname apreq -d

Summary:	Apache Request Library
Name:		libapreq2
Version:	%perl_convert_version %{rversion}
Release:	1
License:	Apache License
Group:		System/Libraries
Url:		http://httpd.apache.org/apreq/
#Source0:	libapreq2-%{rversion}-%{revision}.tar.bz2
Source0:	http://people.apache.org/~issac/libapreq2-%{rversion}.tar.gz
Source2:	76_mod_apreq2.conf
Source3:	libapreq2.pc.in
Patch0:		libapreq2-2.14-version_check_fix.diff
Patch1:		libapreq2-2.08-autoconf260.diff
Patch2:		libapreq2-2.09-pkgconfig.patch
Patch3:		libapreq2-2.13-libtool.patch
Patch4:		libapreq2-2.13-CVE-2019-12412.patch
BuildRequires:	chrpath
BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Tests)
BuildRequires:	perl(Apache::Test)
BuildRequires:	perl(Template)
BuildRequires:	perl(Tie::IxHash)
BuildRequires:	perl(ExtUtils::XSBuilder)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl-libwww-perl
BuildRequires:	apache-mod_perl-devel
BuildRequires:	apache-devel >= %{apache_version}
BuildRequires:	apache-source >= %{apache_version}
BuildRequires:	apache-mod_ssl >= %{apache_version}

%description
libapreq is a safe, standards-compliant, high-performance library used for
parsing HTTP cookies, query-strings and POST data. The original version
(libapreq-1.X) was designed by Lincoln Stein and Doug MacEachern. The perl
APIs Apache::Request and Apache::Cookie are the lightweight mod_perl analogs of
the CGI and CGI::Cookie perl modules.

This package contains the shared libraries for %{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Apache Request Library
Group: 		System/Libraries
Conflicts:	%{_lib}apreq2 < 2.130.0-10
Obsoletes:	%{_lib}apreq2 < 2.130.0-10

%description -n %{libname}
libapreq is a safe, standards-compliant, high-performance library used for
parsing HTTP cookies, query-strings and POST data. The original version
(libapreq-1.X) was designed by Lincoln Stein and Doug MacEachern. The perl
APIs Apache::Request and Apache::Cookie are the lightweight mod_perl analogs of
the CGI and CGI::Cookie perl modules.

This package contains the shared libraries for %{name}

%files -n %{libname}
%doc CHANGES INSTALL README
%{_libdir}/libapreq2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the Apache Request Library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libapreq-devel = %{EVRD}

%description -n %{devname}
libapreq is a safe, standards-compliant, high-performance library used for
parsing HTTP cookies, query-strings and POST data. The original version
(libapreq-1.X) was designed by Lincoln Stein and Doug MacEachern. The perl
APIs Apache::Request and Apache::Cookie are the lightweight mod_perl analogs of
the CGI and CGI::Cookie perl modules.

This package contains the development library and its header files.

%files -n %{devname}
%doc CHANGES INSTALL README
%{_bindir}/apreq*-config
%{_libdir}/libapreq*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/apreq*
%{_includedir}/apache/apreq*

#----------------------------------------------------------------------------

%package -n perl-libapreq2
Summary:	Apache Request Library Perl Glue
Group:		System/Servers
Requires:	apache-mod_perl
Requires:	apache-mod_apreq >= %{version}
Provides:	perl-libapreq

%description -n perl-libapreq2
libapreq is a safe, standards-compliant, high-performance library used for
parsing HTTP cookies, query-strings and POST data. The original version
(libapreq-1.X) was designed by Lincoln Stein and Doug MacEachern. The perl
APIs Apache::Request and Apache::Cookie are the lightweight mod_perl analogs of
the CGI and CGI::Cookie perl modules.

%files -n perl-libapreq2
%doc CHANGES INSTALL README
%{perl_vendorarch}/Apache2
%{perl_vendorarch}/APR
%{perl_vendorarch}/auto/APR
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n apache-%{mod_name}
Summary:	DSO module for the apache Web server
Group:		System/Servers
Requires:	apache-conf >= 2.2.0
Requires:	apache >= %{apache_version}
Requires:	perl-libapreq2 >= %{version}

%description -n apache-%{mod_name}
Mod_%{name} is a DSO module for the apache Web server.

%files -n apache-%{mod_name}
%doc CHANGES INSTALL README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache-extramodules/%{mod_so}

#----------------------------------------------------------------------------

%prep
%setup -q -n libapreq2-%{rversion}
%patch0 -p1
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch4 -p0

# got the idea why this wasn't working from debian, thanks guys!
# P0 combined with this hack fixes it all...
perl -pi -e "s|_APACHE2_REAL_VERSION_|%{apache_version}|g" build/version_check.pl

cp %{SOURCE2} %{mod_conf}
cp %{SOURCE3} .

%build
export WANT_AUTOCONF_2_5=1
export AUTOMAKE="automake"
export ACLOCAL="aclocal"

sh ./buildconf

%configure \
	--with-perl=%{_bindir}/perl \
	--enable-perl-glue \
	--with-mm-opts=INSTALLDIRS=vendor \
	--with-apache2-apxs=%{_bindir}/apxs \
	--with-apr-config=%{_bindir}/apr-1-config \
	--with-apu-config=%{_bindir}/apu-1-config

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

# move the module in place
mv %{buildroot}%{_libdir}/apache %{buildroot}%{_libdir}/apache-extramodules

# install module conf files for the "conf.d" dir loading structure
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/

# install one extra devel file
install -m0755 apreq*-config %{buildroot}%{_bindir}/

# nuke rpath
find %{buildroot}%{perl_vendorlib} -name "*.so" | xargs chrpath -d

# cleanup
rm -f %{buildroot}%{_libdir}/apache-extramodules/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2720 |21cr|libart_lgpl-2.3.21-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major 2

%define lib_name %mklibname art_lgpl %{lib_major}
%define develname %mklibname -d art_lgpl

Summary:	Library for high-performance 2D graphics
Name:		libart_lgpl
Version:	2.3.21
Release:	14
License:	LGPL
Group:		System/Libraries
URL:		http://www.levien.com/libart/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/libart_lgpl/%{name}-%{version}.tar.bz2

%description
This is the LGPL'd component of libart.  Libart is a library for 
high-performance 2D graphics. All functions needed for
running the Gnome canvas, and for printing support, will be going in
here. The GPL'd component will be getting various enhanced functions
for specific applications.

%package -n %{lib_name}
Summary:	%{summary}
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n %{lib_name}
This is the LGPL'd component of libart.  Libart is a library for 
high-performance 2D graphics. All functions needed for
running the Gnome canvas, and for printing support, will be going in
here. The GPL'd component will be getting various enhanced functions
for specific applications.

%package -n %{develname}
Summary:	%{summary}
Group:		Development/GNOME and GTK+
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname -d art_lgpl 2} < 2.3.21

%description -n %{develname}
This is the LGPL'd component of libart.  Libart is a library for 
high-performance 2D graphics. All functions needed for
running the Gnome canvas, and for printing support, will be going in
here. The GPL'd component will be getting various enhanced functions
for specific applications.

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%files -n %{lib_name}
%{_libdir}/libart_lgpl_2.so.%{lib_major}*

%files -n %{develname}
%{_bindir}/*-config
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2721 |21cr|libatg-3.0.0-alt1_1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   3
%define sname   atg
%define libname lib%{sname}%{major}
%define devname lib%{sname}-devel

Name:           libatg
Version:        3.0.0
Release:        alt1_1
Summary:        A Tiny GUI toolkit for SDL
Group:          System/Libraries
License:        GPLv3+
URL:            https://github.com/ec429/libatg
Source0:        https://github.com/ec429/libatg/archive/lv%{version}.tar.gz
# https://github.com/ec429/libatg/pull/5
Patch0:         0001-Makefile-Support-DESTDIR-and-overriding-LIBDIR.patch
Patch1:         0002-Makefile-Enforce-CC-tag-for-libtool.patch
Patch2:         0003-Makefile-Do-not-run-ldconfig-libtool-does-it-already.patch

Patch33:	atg-3.0.0-alt-link.patch

BuildRequires:  fonts-ttf-liberation
BuildRequires:  libtool
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_ttf)
Source44: import.info

%description
A Tiny GUI (atg) is a small, simple GUI library/toolkit for SDL, providing
things like buttons and clickables to allow you to concentrate on your
program logic. atg is loosely based on Spiffy's GUI, though genericised.

#----------------------------------------------------------------------------

%package -n     %{libname}
Summary:        A Tiny GUI toolkit for SDL
Group:          System/Libraries
Requires:       fonts-ttf-liberation

%description -n %{libname}
A Tiny GUI (atg) is a small, simple GUI library/toolkit for SDL, providing
things like buttons and clickables to allow you to concentrate on your
program logic. atg is loosely based on Spiffy's GUI, though genericised.

This package contains the shared libraries.

%files -n       %{libname}
%{_libdir}/lib%{sname}.so.%{major}*

#----------------------------------------------------------------------------

%package -n     %{devname}
Summary:        Development headers for A Tiny GUI
Group:          Development/C
Provides:       %{sname}-devel = %{version}-%{release}
Requires:       %{libname} = %{version}

%description -n %{devname}
A Tiny GUI (atg) is a small, simple GUI library/toolkit for SDL, providing
things like buttons and clickables to allow you to concentrate on your
program logic. atg is loosely based on Spiffy's GUI, though genericised.

This package contains the development headers.

%files -n       %{devname}
%{_includedir}/%{sname}*.h
%{_libdir}/lib%{sname}.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-lv%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch33 -p1

# we do not have make 4 :(
sed -i -e 's,MONOFONTPATH !=,MONOFONTPATH ?=', Makefile

%build

%make \
    MONOFONTPATH=`find /usr/share/fonts -name LiberationMono-Regular.ttf -print -quit` \
    PREFIX=%{_prefix} \
    LIBDIR=%{_libdir}

%install
%makeinstall_std \
    PREFIX=%{_prefix} \
    LIBDIR=%{_libdir}

find %{buildroot} -name "*.la" -delete
find %{buildroot} -name "*.a" -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2722 |21cr|libaudclient-3.5-0.rc2.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta rc2

%define major 2
%define libname %mklibname audclient %{major}
%define devname %mklibname audclient -d

Summary:	Client library to control audacious with D-Bus
Name:		libaudclient
Version:	3.5
Release:	0.%{beta}.3
Epoch:		5
License:	BSD
Group:		System/Libraries
Url:		http://audacious-media-player.org/
Source0:	http://distfiles.audacious-media-player.org/%{name}-%{version}-%{beta}.tar.bz2
Patch0:		%{name}-3.5-rc2-remove-SILENT.patch
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1) >= 0.88
BuildRequires:	pkgconfig(glib-2.0)

%description
A library to communicate with Audacious and remote control it, using D-Bus.

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Audacious D-Bus remote control library.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# Needed for the main include dir
Requires:	pkgconfig(audacious)

%description -n %{devname}
Development files for %{libname}.

%files -n %{devname}
%doc COPYING
%{_includedir}/audacious/audctrl.h
%{_includedir}/audacious/dbus.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/audclient.pc

#------------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{beta}
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2723 |21cr|libayatana-appindicator-0.5.93-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define api 0.1
%define major 1
%define libname %mklibname ayatana-appindicator3_ %{major}
%define girname %mklibname ayatana-appindicator3-gir %{api}
%define devname %mklibname ayatana-appindicator3 -d

%bcond_with mono

Summary:	Ayatana application indicators library
Name:		libayatana-appindicator
Version:	0.5.93
Release:	1
License:	LGPLv2 AND LGPLv3 AND GPLv3
Group:		System/Libraries
Url:		https://ayatanaindicators.github.io/
Source0:	https://github.com/AyatanaIndicators/libayatana-appindicator/archive/%{version}/%{name}-%{version}.tar.gz
Buildrequires:	cmake
BuildRequires:	mate-common
BuildRequires:	vala
BuildRequires:	pkgconfig(ayatana-indicator3-0.4)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dbusmenu-glib-0.4)
BuildRequires:	pkgconfig(dbusmenu-gtk3-0.4)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk-doc)
%if %{with mono}
BuildRequires:	pkgconfig(gapi-2.0)
BuildRequires:	pkgconfig(gtk-sharp-2.0)
BuildRequires:	pkgconfig(mono)
BuildRequires:	pkgconfig(nunit)
%endif

%description
A library to allow applications to add an icon into the
StatusNotifier-compatible notification area. If none are available,
it also provides an XEmbed-tray fallback.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Ayatana application indicators library for GTK+3
Group:		System/Libraries

%description -n %{libname}
A library to allow applications to add an icon into the
StatusNotifier-compatible notification area. If none are available,
it also provides an XEmbed-tray fallback.

This package contains the GTK+3 version of the library.

%files -n %{libname}
%{_libdir}/libayatana-appindicator3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for Ayatana Application Indicator3
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
This package contains the GObject Introspection interface description
for Ayatana Application Indicator3 and GTK+3.

%files -n %{girname}
%{_libdir}/girepository-1.0/AyatanaAppIndicator3-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}3 (GTK+3)
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Header files for development with %{name}3 (GTK+3).

%files -n %{devname}
%license COPYING*
%doc README.md
%{_includedir}/libayatana-appindicator3-%{api}/
%{_libdir}/libayatana-appindicator3.so
%{_libdir}/pkgconfig/ayatana-appindicator3-%{api}.pc
%{_datadir}/gir-1.0/AyatanaAppIndicator3-%{api}.gir
%{_datadir}/vala/vapi/ayatana-appindicator3-%{api}.*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for libayatana-appindicator3
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains the documentation for the Ayatana
appindicator3 libraries.

%files doc
%{_datadir}/gtk-doc/html/libayatana-appindicator3/

#----------------------------------------------------------------------------

%if %{with mono}
%package -n ayatana-appindicator-sharp
Summary:	Ayatana application indicators library for C#
Group:		Development/C#

%description -n ayatana-appindicator-sharp
This package provides the ayatana-appindicator-sharp assembly that
allows CLI (.NET) applications to take menus from applications and
place them in the panel.

This package provides assemblies to be used by applications.

%files -n ayatana-appindicator-sharp
%{_libdir}/ayatana-appindicator-sharp-%{api}/
%{_prefix}/lib/mono/ayatana-appindicator-sharp/
%{_prefix}/lib/mono/gac/ayatana-appindicator-sharp/
%{_prefix}/lib/mono/gac/policy.0.0.ayatana-appindicator-sharp/
%endif

#----------------------------------------------------------------------------

%if %{with mono}
%package -n ayatana-appindicator-sharp-devel
Summary:	Development files for ayatana-appindicator-sharp
Group:		Development/C#
Requires:	ayatana-appindicator-sharp = %{EVRD}

%description -n ayatana-appindicator-sharp-devel
This package contains the development files for the
ayatana-appindicator-sharp library.

%files -n ayatana-appindicator-sharp-devel
%{_libdir}/pkgconfig/ayatana-appindicator-sharp-%{api}.pc
%endif

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%if %{with mono}
export CSC=%{_bindir}/mcs
%endif

%cmake \
%if %{with mono}
	-DENABLE_BINDINGS_MONO=ON \
%else
	-DENABLE_BINDINGS_MONO=OFF \
%endif
	-DENABLE_GTKDOC=ON
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2724 |21cr|libayatana-indicator-0.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# XXX debugsourcefiles.list is empty, maybe cmake is misconfigured
# like https://github.com/AyatanaIndicators/ayatana-ido/issues/40
%define debug_package %{nil}

%define major 7
%define api 0.4
# 3 means GTK+3.0
%define libname %mklibname ayatana-indicator3 %{major}
%define devname %mklibname ayatana-indicator3-%{api} -d

Summary:	Ayatana Indicators Shared Library
Name:		libayatana-indicator
Version:	0.9.4
Release:	1
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/AyatanaIndicators/libayatana-indicator
Source0:	https://github.com/AyatanaIndicators/libayatana-indicator/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	rsync
BuildRequires:	%{_bindir}/glib-mkenums
BuildRequires:	%{_bindir}/strip
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libayatana-ido3-0.4)

%description
%{summary}

%files
%dir %{_libexecdir}/libayatana-indicator
%{_libexecdir}/libayatana-indicator/ayatana-indicator-loader3
%dir %{_datadir}/libayatana-indicator
%{_datadir}/libayatana-indicator/80indicator-debugging

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Ayatana Indicators Shared Library, GTK+3 version
Group:		System/Libraries

%description -n %{libname}
Ayatana Indicators Shared Library, GTK+3 version

%files -n %{libname}
%{_libdir}/libayatana-indicator3.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Ayatana Indicators Shared Library development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Ayatana Indicators Shared Library development files, GTK+3 version

%files -n %{devname}
%{_libdir}/libayatana-indicator3.so
%{_libdir}/pkgconfig/ayatana-indicator3-%{api}.pc
%{_includedir}/libayatana-indicator3-%{api}

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

# DEBUG: libayatana-indicator.x86_64: E: unstripped-binary-or-object (Badness: 50) /usr/libexec/libayatana-indicator/ayatana-indicator-loader3
# XXX How can it be not stripped...?
strip %{buildroot}%{_libexecdir}/libayatana-indicator/ayatana-indicator-loader3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2725 |21cr|libbnr-2.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname bnr %{major}
%define devname %mklibname bnr -d

Summary:	Bayesian Noise Reduction Library
Name:		libbnr
Version:	2.0.3
Release:	13
License:	GPLv2+
Group:		System/Libraries
Url:		http://bnr.nuclearelephant.com/
Source0:	http://dspam.nuclearelephant.com/sources/%{name}-%{version}.tar.bz2
BuildRequires:	libtool

%description
libbnr is an implementation of the Bayesian Noise Reduction (BNR)
algorithm. All samples of text contain some degree of noise (data
which is either intentionally or unintentionally irrelevant to
accurate statistical analysis of the sample where removal of the
data would result in a cleaner analysis). The Bayesian noise
reduction algorithm provides a means of cleaner machine learning
by providing more useful data, which ultimately leads to better
sample analysis. With the noisy data removed from the sample, what
is left is only data relevant to the classification. libbnr can be
linked in with your classifier and called using the standard C
interface.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Bayesian Noise Reduction Library
Group:		System/Libraries

%description -n %{libname}
libbnr is an implementation of the Bayesian Noise Reduction (BNR)
algorithm. All samples of text contain some degree of noise (data
which is either intentionally or unintentionally irrelevant to
accurate statistical analysis of the sample where removal of the
data would result in a cleaner analysis). The Bayesian noise
reduction algorithm provides a means of cleaner machine learning
by providing more useful data, which ultimately leads to better
sample analysis. With the noisy data removed from the sample, what
is left is only data relevant to the classification. libbnr can be
linked in with your classifier and called using the standard C
interface.

%files -n %{libname}
%doc README
%{_libdir}/libbnr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libbnr is an implementation of the Bayesian Noise Reduction (BNR)
algorithm. All samples of text contain some degree of noise (data
which is either intentionally or unintentionally irrelevant to
accurate statistical analysis of the sample where removal of the
data would result in a cleaner analysis). The Bayesian noise
reduction algorithm provides a means of cleaner machine learning
by providing more useful data, which ultimately leads to better
sample analysis. With the noisy data removed from the sample, what
is left is only data relevant to the classification. libbnr can be
linked in with your classifier and called using the standard C
interface.

This package contains development library and header files for the
%{name} library.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libbnr.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2726 |21cr|libbonobo-2.32.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with gtkdoc

%define api 2
%define major 0
%define acmajor 4
%define libname %mklibname bonobo %{api} %{major}
%define libactivation %mklibname bonobo-activation %{acmajor}
%define devname %mklibname bonobo -d

Summary:	Library for compound documents in GNOME
Name:		libbonobo
Version:	2.32.1
Release:	12
License:	GPLv2+ and LGPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	flex
%if %{with gtkdoc}
BuildRequires:	gtk-doc
%endif
BuildRequires:	intltool
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ORBit-2.0)
BuildRequires:	pkgconfig(ORBit-CosNaming-2.0)
BuildRequires:	pkgconfig(popt)

%description
Bonobo is a library that provides the necessary framework for GNOME
applications to deal with compound documents, i.e. those with a
spreadsheet and graphic embedded in a word-processing document.

This package contains various needed modules and files for bonobo 2
to operate.

%files -f %{name}-2.0.lang
%doc README NEWS AUTHORS
%config(noreplace) %{_sysconfdir}/bonobo-activation
%{_bindir}/*
%{_sbindir}/*
%{_libexecdir}/bonobo-activation-server
%dir %{_libdir}/bonobo
%dir %{_libdir}/bonobo/monikers
%dir %{_libdir}/bonobo/servers
%{_libdir}/bonobo/monikers/*.so
%{_libdir}/bonobo/servers/*
%{_libdir}/bonobo-2.0
%{_libdir}/orbit-2.0/*.so
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for compound documents in GNOME
Group:		System/Libraries

%description -n %{libname}
Bonobo is a library that provides the necessary framework for GNOME
applications to deal with compound documents, i.e. those with a
spreadsheet and graphic embedded in a word-processing document.

This package provides libraries to use Bonobo.

%files -n %{libname}
%{_libdir}/libbonobo-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libactivation}
Summary:	Library for compound documents in GNOME
Group:		System/Libraries
Conflicts:	%{_lib}bonobo2_0 < 2.32.1-11

%description -n %{libactivation}
Bonobo is a library that provides the necessary framework for GNOME
applications to deal with compound documents, i.e. those with a
spreadsheet and graphic embedded in a word-processing document.

This package provides libraries to use Bonobo.

%files -n %{libactivation}
%{_libdir}/libbonobo-activation.so.%{acmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files and sample code for Bonobo 2
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libactivation} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Bonobo is a library that provides the necessary framework for GNOME
applications to deal with compound documents, i.e. those with a
spreadsheet and graphic embedded in a word-processing document.

This package provides the necessary development libraries and include
files to allow you to develop programs using the Bonobo document model;
it includes demonstration executables and codes as well.

%files -n %{devname}
%doc changes.txt TODO ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/libbonobo*.so
%{_libdir}/pkgconfig/*
%{_datadir}/idl/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# this is a hack for glib2.0 >= 2.31.0
sed -i -e 's/-DG_DISABLE_DEPRECATED//g' \
    ./activation-server/Makefile.*

%build
%configure \
	--disable-static \
%if %{with gtkdoc}
	--enable-gtk-doc
%else
	--disable-gtk-doc
%endif

%make_build

%install
%make_install

%find_lang %{name}-2.0

rm -f %{buildroot}%{_libdir}/bonobo/servers/{empty,broken,plugin}.server

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2727 |21cr|libbonoboui-2.24.5-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with gtkdoc
%bcond_without xvfb

%define api 2
%define major 0
%define libname %mklibname bonoboui %{api} %{major}
%define devname %mklibname bonoboui -d

Summary:	Library for compound documents in GNOME
Name:		libbonoboui
Version:	2.24.5
Release:	15
License:	GPLv2+ and LGPLv2.1+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
%if %{with gtkdoc}
BuildRequires:	gtk-doc
%endif
BuildRequires:	intltool
BuildRequires:	pkgconfig(bonobo-activation-2.0)
BuildRequires:	pkgconfig(gdk-x11-2.0)
BuildRequires:	pkgconfig(libbonobo-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomecanvas-2.0)
BuildRequires:	pkgconfig(libgnome-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(popt)
BuildRequires:	perl-XML-Parser
%if %{with xvfb}
BuildRequires:	x11-server-xvfb
%endif
Requires:	%{libname} = %{EVRD}
# To make bonobo-browser work
Requires:	libbonobo

%description
Bonobo is a library that provides the necessary framework for GNOME
applications to deal with compound documents, i.e. those with a
spreadsheet and graphic embedded in a word-processing document.

This package contains various needed modules and files for bonobo 2
to operate.

%files -f %{name}-2.0.lang
%doc README NEWS changes.txt
%{_bindir}/*
%{_libdir}/bonobo/servers/*
%{_libdir}/bonobo-2.0
%{_libdir}/libglade/2.0/*.so
%{_datadir}/gnome-2.0
%{_datadir}/applications/bonobo-browser.desktop

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for compound documents in GNOME
Group:		System/Libraries
Provides:	%{name}%{api} = %{EVRD}

%description -n %{libname}
Bonobo is a library that provides the necessary framework for GNOME
applications to deal with compound documents, i.e. those with a
spreadsheet and graphic embedded in a word-processing document.

This package provides libraries to use Bonobo.

%files -n %{libname}
%{_libdir}/libbonoboui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files and sample code for Bonobo 2
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Bonobo is a library that provides the necessary framework for GNOME
applications to deal with compound documents, i.e. those with a
spreadsheet and graphic embedded in a word-processing document.

This package provides the necessary development libraries and include
files to allow you to develop programs using the Bonobo document model;
it includes demonstration executables and codes as well.

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/libbonobo*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
%if %{with gtkdoc}
	--enable-gtk-doc
%else
	--disable-gtk-doc
%endif

%make

%install
%makeinstall_std

%find_lang %{name}-2.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2728 |21cr|libbt-1.06-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname bt -d

Summary:	C-language Impementation of the BitTorrent core protocols
Name:		libbt
Version:	1.06
Release:	11
License:	GPL+ and LGPL+
Group:		Development/C++
Url:		http://libbt.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/libbt/libbt-%{version}.tar.gz
Patch0:		libbt-1.06-header.patch
Patch1:		libbt-1.06-fix-linking.patch
BuildRequires:	pkgconfig(libcurl)

%description
LibBT is a C reimplementation of the BitTorrent core protocols.  Our goal for
the project is to develop a low overhead library version of the protocols so
that BitTorrent transfers can easily be built in to any existing application.

The sample applications included with LibBT currently run in between 2Mb and
3.5Mb of memory (RSS), depending on the number of peers that are attached.

#----------------------------------------------------------------------------

%package utils
Summary:	C-language Impementation of the BitTorrent core protocols
Group:		Networking/File transfer

%description utils
LibBT is a C reimplementation of the BitTorrent core protocols.  Our goal for
the project is to develop a low overhead library version of the protocols so
that BitTorrent transfers can easily be built in to any existing application.

This contains the sample applications from LibBT, that currently run
in between 2Mb and 3.5Mb of memory (RSS), depending on the number of
peers that are attached.

%files utils
%doc CHANGELOG CREDITS README errorlist.txt
%{_bindir}/bt*
%{_mandir}/man1/bt*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	C-language Impementation of the BitTorrent core protocols
Group:		Development/C

%description -n %{devname}
LibBT is a C reimplementation of the BitTorrent core protocols.  Our goal for
the project is to develop a low overhead library version of the protocols so
that BitTorrent transfers can easily be built in to any existing application.

The sample applications included with LibBT currently run in between 2Mb and
3.5Mb of memory (RSS), depending on the number of peers that are attached.

%files -n %{devname}
%doc docs/*.txt
%{_libdir}/%{name}.a
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
install -Dd -m 0755 \
    %{buildroot}%{_bindir}/ \
    %{buildroot}%{_libdir}/ \
    %{buildroot}%{_includedir}/%{name} \
    %{buildroot}%{_mandir}/man1/

install -m 0755 src/{btcheck,btlist,btget} %{buildroot}%{_bindir}/

install -m 0644 src/%{name}.a %{buildroot}%{_libdir}/

install -m 0644 man/*.1 %{buildroot}%{_mandir}/man1/

install -m 0644 \
    include/{benc.h,bitset.h,bterror.h,btmessage.h,bts.h} \
    include/{context.h,peer.h,random.h,segmenter.h} \
    include/{strbuf.h,stream.h,types.h,util.h} \
    %{buildroot}%{_includedir}/%{name}

mv %{buildroot}%{_bindir}/btcheck %{buildroot}%{_bindir}/bt-check
mv %{buildroot}%{_mandir}/man1/btcheck.1 %{buildroot}%{_mandir}/man1/bt-check.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2729 |21cr|libcapseo-0.3.0-0.20081031.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname capseo %{major}
%define devname %mklibname capseo -d

# Tarfile created using git
# git clone git://gitorious.org/capseo/mainline.git libcapseo
# cd libcapseo
# git-archive --format=tar --prefix=libcapseo-%{capseo_version}/ %{git_version} | bzip2 > libcapseo-%{capseo_version}-%{gitdate}.tar.bz2

%define gitdate 20081031
%define git_version 431a293

Summary:	A realtime encoder/decoder library
Name:		libcapseo
Version:	0.3.0
Release:	0.%{gitdate}.7
License:	GPLv3+
Group:		System/Libraries
Url:		http://gitorious.org/projects/capseo/
# Specific snapshot no upstream release (yet)
Source0:	%{name}-%{version}-%{gitdate}.tar.bz2
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(theora)

%description
Capseo is a realtime video codec being used by libcaptury/captury
for encoding captured video frames in realtime. (think of FRAPS codec).

Applications using capseo currently are libcaptury for encoding
captured data, e.g. currently from third-party OpenGL applications
via captury, the OpenGL video capturing tool.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 0.3.0-0.20081031.7
Obsoletes:	%{name} < 0.3.0-0.20081031.7

%description -n %{libname}
This package contains shared library for %{name}.

%files -n %{libname}
%doc AUTHORS COPYING TODO
%{_libdir}/libcapseo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for development using %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Conflicts:	%{name}-devel < 0.3.0-0.20081031.7
Obsoletes:	%{name}-devel < 0.3.0-0.20081031.7
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/libcapseo.so
%{_libdir}/pkgconfig/capseo.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Encoding/Decoding tools for capseo
Group:		Sound

%description tools
Utilities for capseo.

%files tools
%{_bindir}/*

#--------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-theora \
	--disable-examples
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2730 |21cr|libcapsinetwork-0.3.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname capsinetwork %{major}
%define devname %mklibname capsinetwork -d

Summary:	Network library for easy development of C++ server daemons
Name:		libcapsinetwork
Version:	0.3.0
Release:	11
License:	LGPLv2+
Group:		System/Libraries
Url:		http://unixcode.org/libcapsinetwork/
Source0:	http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		libcapsinetwork-gcc43-includes.patch
Patch1:		libcapsinetwork-0.3.0-examples.patch

%description
%{name} is a network library for C++ server daemons aimed at easy
development of server daemons.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Network library for easy development of C++ server daemons
Group:		System/Libraries

%description -n %{libname}
%{name} is a network library for C++ server daemons aimed at easy
development of server daemons.

%files -n %{libname}
%doc COPYING.LIB README
%{_libdir}/libcapsinetwork.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} is a network library for C++ server daemons aimed at easy
development of server daemons.

You need to install this package if you want to develop or compile
any applications/libraries that needs %{name}.

%files -n %{devname}
%doc ChangeLog NEWS
%{_includedir}/*
%{_libdir}/libcapsinetwork.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .gcc43
%patch1 -p1

%build
libtoolize --force --copy
aclocal
autoheader
autoconf
automake -a -c
%configure --disable-static
# parallel build won't work
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2731 |21cr|libccss-0.5.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ccss

%define api 1
%define major 5
%define libname %mklibname ccss %{api} %{major}
%define libcairo %mklibname ccss-cairo %{api} %{major}
%define libgtk %mklibname ccss-gtk %{api} %{major}
%define devname %mklibname ccss -d

Summary:	A simple api for CSS Stylesheets
Name:		libccss
Version:	0.5.0
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		http://people.freedesktop.org/~robsta/ccss/
Source0:	http://people.freedesktop.org/~robsta/%{oname}/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcroco-0.6)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
Libccss offers a simple API to

    * Parse CSS stylesheets.
    * Query for style configurations on a user-provided document
      representation.
    * Draw query results onto cairo surfaces.

%files
%doc AUTHORS COPYING NEWS TODO
%{_bindir}/ccss-stylesheet-to-gtkrc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}ccss5 < 0.5.0-6
Obsoletes:	%{_lib}ccss5 < 0.5.0-6

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libccss-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcairo}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}ccss5 < 0.5.0-6

%description -n %{libcairo}
Shared library for %{name}.

%files -n %{libcairo}
%{_libdir}/libccss-cairo-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgtk}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}ccss5 < 0.5.0-6

%description -n %{libgtk}
Shared library for %{name}.

%files -n %{libgtk}
%{_libdir}/libccss-gtk-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcairo} = %{EVRD}
Requires:	%{libgtk} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	gtk-css-engine < 0.3.0

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%{_includedir}/ccss-1
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_datadir}/gtk-doc/html/ccss
%{_datadir}/gtk-doc/html/ccss-cairo
%{_datadir}/gtk-doc/html/ccss-gtk

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
export LIBS="-lgmodule-2.0"
%configure \
	--disable-examples

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2732 |21cr|libcdaudio-0.99.12-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname cdaudio %{major}
%define devname %mklibname cdaudio -d
%define _disable_rebuild_configure %nil

Summary:	A library for controlling CD-ROM devices
Name:		libcdaudio
Version:	0.99.12
Release:	22
Group:		Sound
License:	LGPLv2.1+
Url:		http://libcdaudio.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-config
Patch0:		%{name}-0.99.10.config.patch
Patch1:		%{name}-0.99-CAN-2005-0706.patch
Patch2:		%{name}-0.99.12-buffovfl.patch
Patch3:		libcdaudio-0.99.12-bug245649.patch

%description
libcdaudio is a library for controlling CD-ROM devices.

#----------------------------------------------------------------------------

%package common
Summary:	Data files for %{name}
Group:		Sound
Conflicts:	%{_lib}cdaudio1 < 0.99.12-17

%description common
Data files for %{name}.

%files common
%{_sysconfdir}/cdserver

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for controlling CD-ROM devices
Group:		System/Libraries
Requires:	%{name}-common >= %{EVRD}

%description -n %{libname}
libcdaudio is a library for controlling CD-ROM devices.

%files -n %{libname}
%doc README NEWS AUTHORS ChangeLog
%{_libdir}/libcdaudio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	cdaudio-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_bindir}/libcdaudio-config
%{_includedir}/*
%{_libdir}/lib*.so
%{_datadir}/aclocal/*
%{_libdir}/pkgconfig/libcdaudio.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p0

cp %{SOURCE1} cdserver

sed -i 's!AM_C_PROTOTYPES!dnl AM_C_PROTOTYPES!g' configure.ac Makefile.am

%build
%configure --disable-static
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 cdserver %{buildroot}%{_sysconfdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2733 |21cr|libchardet-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname chardet
%define	major 1
%define	libname %mklibname %{oname} %{major}
%define	devname %mklibname -d %{oname}

Summary:	Mozilla Universal Chardet library
Name:		libchardet
Version:	1.0.6
Release:	1
License:	MPLv1.1
Group:		System/Libraries
Url:		https://github.com/Joungkyun/libchardet
Source:		https://github.com/Joungkyun/libchardet/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	autoconf
BuildRequires:	automake >= 1.12
BuildRequires:	gcc-c++
BuildRequires:	libtool
BuildRequires:	pkgconfig

%description
Mozilla's Universal Charset Detector C/C++ API.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Mozilla Universal Chardet library
Group:		System/Libraries

%description -n %{libname}
Mozilla's Universal Charset Detector C/C++ API.

%files -n %{libname}
%doc Changelog LICENSE README.md
%{_libdir}/%{name}.so.*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of libchardet
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
The libchardet development package includes the header files,
libraries, development tools necessary for compiling and linking
application which will use libchardet.

%files -n %{devname}
%doc LICENSE
%{_bindir}/%{oname}-config
%{_includedir}/%{oname}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{oname}.pc
%{_mandir}/ko/man3/*
%{_mandir}/man3/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
sed -i 's/^\(AM_MAINTAINER\)/m4_ifdef([AM_PROG_AR], [AM_PROG_AR])\n\1/' configure.ac
sed -i '/^dist_doc/d' Makefile.am


%build
autoreconf -vfi
%configure
#--disable-static \
#			--includedir="%%{_includedir}"
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2734 |21cr|libclaw-1.7.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname claw 1
%define devname %mklibname claw -d

Summary:	C++ Library Absolutely Wonderful
Name:		libclaw
Version:	1.7.4
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libclaw.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/libclaw/libclaw/%{name}-%{version}.tar.gz
Patch0:		libclaw-1.7.4-libdir.patch
Patch1:		libclaw-1.7.4-git-declare-static-libs-as-static.diff
Patch2:		libclaw-1.6.1-nostrip.patch
Patch3:		libclaw-1.7.4-gcc62.patch
Patch4:		libclaw-1.7.4-gcc7.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)

%description
CLAW is a C++ Library Absolutely Wonderful providing useful classes 
from the simplest AVL binary search trees to the complex meta programming 
tools, including image manipulation, a generic alpha-beta algorithm, 
sockets implemented as std::stream and more.

%files -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for libclaw
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
CLAW is a C++ Library Absolutely Wonderful providing useful classes
from the simplest AVL binary search trees to the complex meta programming
tools, including image manipulation, a generic alpha-beta algorithm,
sockets implemented as std::stream and more.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for libclaw
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development headers and libraries
to allow you to build programs that use libclaw.

%files -n %{devname}
%doc ChangeLog build/doc/html
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/claw
%{_bindir}/claw-config
%{_datadir}/cmake/Modules/Findlibclaw.cmake
%{_datadir}/cmake/libclaw/libclaw-config-version.cmake

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .libdir~
%patch1 -p1 -b .static~
%patch2 -p1 -b .nostrip~
%patch3 -p1 -b .gcc62~
%patch4 -p1 -b .gcc7~

%build
%cmake
%make

%install
%makeinstall_std -C build

rm -fr %{buildroot}%{_datadir}/doc

mkdir -p %{buildroot}%{_datadir}/cmake/Modules
mv %{buildroot}%{_datadir}/cmake/libclaw/libclaw-config.cmake %{buildroot}%{_datadir}/cmake/Modules/Findlibclaw.cmake

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2735 |21cr|libcloudproviders-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname cloudproviders
%define	major 0
%define	api   0.3
%define	libname   %mklibname %{oname} %{major}
%define	girname   %mklibname %{oname}-gir %{version}
%define	develname %mklibname %{oname} -d

Summary:	Library for integration of cloud storage providers
Name:		libcloudproviders
Version:	0.3.1
Release:	1
Group:		System/Libraries
License:	LGPLv3+
Url:		https://gitlab.gnome.org/World/libcloudproviders
Source0:	https://download.gnome.org/sources/%{name}/%{api}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson >= 0.42.0
BuildRequires:	ninja
BuildRequires:	systemd
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(glib-2.0) >= 2.51.2
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
Cross desktop library for desktop integration of cloud storage providers and
sync tools. It provides a DBus API that allows cloud storage sync clients to
expose their services. Clients such as file managers and desktop environments
can then provide integrated access to the cloud providers services.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for integration of cloud storage providers
Group:		System/Libraries

%description -n %{libname}
This package contains the library files required for running services built
using %{name}.

%files -n %{libname}
%doc CHANGELOG LICENSE README.md
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for CloudProviders
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for CloudProviders.

%files -n %{girname}
%doc LICENSE
%{_libdir}/girepository-1.0/CloudProviders-%{api}.typelib

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{develname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{develname}
%doc CHANGELOG LICENSE README.md
%doc %{_datadir}/gtk-doc/html/%{name}/
%{_includedir}/%{oname}/
%{_libdir}/pkgconfig/%{oname}.pc
%{_libdir}/%{name}.so
%{_datadir}/gir-1.0/CloudProviders-%{api}.gir
%{_datadir}/vala/vapi/%{oname}.deps
%{_datadir}/vala/vapi/%{oname}.vapi

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%meson -Denable-gtk-doc=true
%meson_build


%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2736 |21cr|libcmml-0.9.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname cmml %{major}
%define devname %mklibname cmml -d

Summary:	Library for handling Continuous Media Markup Language
Name:		libcmml
Version:	0.9.4
Release:	8
License:	BSD
Group:		System/Libraries
Url:		http://www.annodex.net/
Source0:	http://www.annodex.net/software/libcmml/download/%{name}-%{version}.tar.gz
Patch0:		libcmml-malloc_fix.diff
BuildRequires:	autoconf2.5
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	pkgconfig(expat)

%description
Libcmml is a library which enables the handling of documents written in CMML
(Continuous Media Markup Language) for the Continuous Media Web (CMWeb).

It provides a very simple API for reading files marked up with the Continuous
Media Markup Language (CMML), and returns C structures containing this
information in a format which can be used by an Annodexer for creating
ANNODEX(tm) format documents (ANX).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for handling Continuous Media Markup Language
Group:		System/Libraries

%description -n %{libname}
Libcmml is a library which enables the handling of documents written in CMML
(Continuous Media Markup Language) for the Continuous Media Web (CMWeb).

It provides a very simple API for reading files marked up with the Continuous
Media Markup Language (CMML), and returns C structures containing this
information in a format which can be used by an Annodexer for creating
ANNODEX(tm) format documents (ANX).

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/libcmml.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for development using libcmml
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libcmml is a library which enables the handling of documents written in CMML
(Continuous Media Markup Language) for the Continuous Media Web (CMWeb).

It provides a very simple API for reading files marked up with the Continuous
Media Markup Language (CMML), and returns C structures containing this
information in a format which can be used by an Annodexer for creating
ANNODEX(tm) format documents (ANX).

This package contains the header files and documentation needed for development
using libcmml.

%files -n %{devname}
%doc doc/libcmml/html/* TODO
%{_includedir}/*
%{_libdir}/libcmml.so
%{_libdir}/pkgconfig/cmml.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Various tools using the Continuous Media Markup Language library
Group:		File tools

%description tools
Libcmml is a library which enables the handling of documents written in CMML
(Continuous Media Markup Language) for the Continuous Media Web (CMWeb).

This package contains various tools using the Continuous Media Markup Language
library.

%files tools
%{_bindir}/cmml*
%{_mandir}/man1/*
%{_mandir}/man6/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
autoreconf -fi -Im4
%configure --disable-static
%make

%install
%makeinstall_std

install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_mandir}/man6

install -m0644 doc/*.1 %{buildroot}%{_mandir}/man1/
install -m0644 doc/*.6 %{buildroot}%{_mandir}/man6/

# cleanup
rm -rf %{buildroot}%{_docdir}/libcmml

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2737 |21cr|libcommuni-3.7.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 3
%define	libcommuniqml %mklibname communi-qml
%define	libirccore %mklibname irccore %{major}
%define	libircmodel %mklibname ircmodel %{major}
%define	libircutil %mklibname ircutil %{major}
%define	devname %mklibname communi -d

Summary:	Cross-platform IRC client library written with Qt
Name:		libcommuni
Version:	3.7.0
Release:	4
License:	BSD
Group:		Networking/Instant messaging
Url:		http://communi.github.com
Source0:	https://github.com/communi/libcommuni/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Communi is a cross-platform IRC client library written with Qt. It provides a
set of tools for enabling IRC in Qt-based C++ and QML applications.

#----------------------------------------------------------------------------

%package -n %{libcommuniqml}
Summary:	Cross-platform IRC client library written with Qt
Group:		System/Libraries
Provides:	communi-qml = %{EVRD}

%description -n %{libcommuniqml}
Libraries for Communi, a cross-platform IRC client library written with Qt.
This package contains the QML files for using it.

%files -n %{libcommuniqml}
%{_qt5_libdir}/qt5/qml/Communi/*

#----------------------------------------------------------------------------

%package -n %{libirccore}
Summary:	Cross-platform IRC client library written with Qt
Group:		System/Libraries
Recommends:	%{libcommuniqml} = %{EVRD}
Conflicts:	%{_lib}communi3 < 3.4.0-5

%description -n %{libirccore}
Libraries for Communi, a cross-platform IRC client library written with Qt.

%files -n %{libirccore}
%{_libdir}/libIrcCore.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libircmodel}
Summary:	Cross-platform IRC client library written with Qt
Group:		System/Libraries
Conflicts:	%{_lib}communi3 < 3.4.0-5

%description -n %{libircmodel}
Libraries for Communi, a cross-platform IRC client library written with Qt.

%files -n %{libircmodel}
%{_libdir}/libIrcModel.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libircutil}
Summary:	Cross-platform IRC client library written with Qt
Group:		System/Libraries
Conflicts:	%{_lib}communi3 < 3.4.0-5

%description -n %{libircutil}
Libraries for Communi, a cross-platform IRC client library written with Qt.

%files -n %{libircutil}
%{_libdir}/libIrcUtil.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Cross-platform IRC client library written with Qt
Group:		Development/KDE and Qt
Requires:	%{libcommuniqml} = %{EVRD}
Requires:	%{libirccore} = %{EVRD}
Requires:	%{libircmodel} = %{EVRD}
Requires:	%{libircutil} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	communi-devel = %{EVRD}

%description -n %{devname}
Communi is a cross-platform IRC client library written with Qt. This package
contains the development files for using it.

%files -n %{devname}
%doc doc/html/*
%{_libdir}/libIrc*.so
%{_qt5_includedir}/Communi/*
%{_qt5_datadir}/mkspecs/features/communi-config.prf
%{_qt5_datadir}/mkspecs/features/communi.prf

#----------------------------------------------------------------------------

%prep
%setup -q


%build
./configure	-qmake %{_bindir}/qmake-qt5 -libdir %{_libdir} -headerdir %{_qt5_includedir}/Communi/ \
			-featuredir %{_qt5_datadir}/mkspecs/features/ -importdir %{_qt5_importdir}/Communi/ \
			-qmldir %{_libdir}/qt5/qml/ \
			-config verbose -config no_examples -config no_rpath -config icu
%qmake_qt5
%make
# Build dev docs
%make docs


%install
%makeinstall_qt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2738 |21cr|libcoverart-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname coverart %{major}
%define devname %mklibname coverart -d

Summary:	CoverArtArchive client library
Name:		libcoverart
Version:	1.0.0
Release:	5
License:	LGPLv2+
Group:		Sound
Url:		https://musicbrainz.org/doc/libcoverart
# This one is not the final release (see CMakeLists.txt file): use fake release from git head
#Source0:	https://github.com/metabrainz/libcoverart/releases/download/release-%%{version}/%%{name}-%%{version}.tar.gz
Source0:	%{name}-%{version}.tar.xz
Patch0:		0005-Fix-build-with-cmake-3.18.patch
Patch1:		libcoverart-1.0.0-use-https-for-URLs.patch
BuildRequires:	cmake >= 2.6
BuildRequires:	doxygen
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(neon) >= 0.25

%description
The Cover Art Archive Library, is a development library geared towards
developers who wish to add Cover Art capabilities to their applications. The
library supports Linux and Mac OS X. The data is mostly gathered from the
Cover Art Archive.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CoverArtArchive client library
Group:		System/Libraries

%description -n %{libname}
The Cover Art Archive Library, is a development library geared towards
developers who wish to add Cover Art capabilities to their applications.
This package contains the main libraries.

%files -n %{libname}
%doc COPYING.txt NEWS.txt README.md
%{_libdir}/%{name}.so.%{major}*
%{_libdir}/libcoverartcc.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	coverart-devel = %{EVRD}

%description -n %{devname}
The Cover Art Archive Library, is a development library geared towards
developers who wish to add Cover Art capabilities to their applications.
This package contains the development files for %{name}.

%files -n %{devname}
%doc COPYING.txt
%doc build/docs/*
%{_includedir}/coverart
%{_libdir}/%{name}.so
%{_libdir}/libcoverartcc.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/libcoverartcc.pc

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
%cmake
%make

# Prepare also dev docs, to pull in with %%doc macro
%make docs


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2739 |21cr|libcpuid-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 15
%define libname %mklibname cpuid %{major}
%define devname %mklibname cpuid -d

Summary:	Small C library for x86 CPU detection and feature extraction 
Name:		libcpuid
# Version extracted from configure.ac file
Version:	0.5.1
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://libcpuid.sourceforge.net
Source0:	https://github.com/anrieff/libcpuid/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	doxygen

%description
Small C library for x86 CPU detection and feature extraction.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools for x86 CPU detection and feature extraction
Group:		System/Configuration/Hardware

%description tools
Tools for x86 CPU detection and feature extraction.

%files tools
%{_bindir}/cpuid_tool

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Small C library for x86 CPU detection and feature extraction
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libcpuid.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2740 |21cr|libcryptui-3.12.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname	cryptui

%define major	0
%define gimajor	0.0
%define libname %mklibname %{sname} %{major}
%define girname %mklibname %{sname}-gir %{gimajor}
%define devname %mklibname -d %{sname}

Summary:	Interface components for OpenPGP
Name:		libcryptui
Version:	3.12.2
Release:	7
License:	LGPLv2+
Group:		Graphical desktop/GNOME
URL:		http://seahorse.sourceforge.net/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/libcryptui/3.12/%{name}-%{version}.tar.xz
Patch0:		libcryptui-gnupg.patch
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	gpgme-devel
BuildRequires:	gnupg2
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(sm)
Requires:	gnupg
Conflicts:	seahorse < 3.1.4

%description
libcryptui is a library used for prompting for PGP keys.

%files -f %{sname}.lang
%{_bindir}/seahorse-daemon
%{_datadir}/cryptui
%{_datadir}/dbus-1/services/*.service
%{_datadir}/GConf/gsettings/*.convert
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/pixmaps/cryptui
%{_mandir}/man1/*

#----------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Interface components for OpenPGP

%description -n %{libname}
libcryptui is a library used for prompting for PGP keys.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------
 
%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/CryptUI-%{gimajor}.typelib

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files required to develop with libcryptui
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires:	%{girname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
The libcryptui-devel package contains the header files and developer
documentation for the libcryptui library.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%doc %{_datadir}/gtk-doc/html/%{name}

#----------------------------------------------------------------------
%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--disable-dependency-tracking \
	--disable-update-mime-database \
	--disable-schemas-compile

%make

%install
%makeinstall_std

%find_lang %{sname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2741 |21cr|libcuckoo-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname cuckoo -d

Name:		libcuckoo
Version:	0.3.1
Release:	1
Source0:	https://github.com/efficient/libcuckoo/archive/refs/tags/v%{version}.tar.gz
Summary:	Hash table that allows multiple concurrent reader and writer threads
URL:		https://github.com/efficient/libcuckoo
License:	Apache-2.0
Group:		System/Libraries
BuildRequires:	cmake ninja
# This is a headers-only library
BuildArch: noarch

%description
libcuckoo provides a high-performance, compact hash table that allows multiple
concurrent reader and writer threads.

#-----------------------------------------------------------------

%package -n %{devname}
Summary: Hash table that allows multiple concurrent reader and writer threads
Group: Development/C
Provides:	name-devel = %{EVRD}

%description -n %{devname}
libcuckoo provides a high-performance, compact hash table that allows multiple
concurrent reader and writer threads.

%files -n %{devname}
%{_includedir}/*
%{_datadir}/cmake/*

#-----------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2742 |21cr|libdap-3.18.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 23
%define cmajor 6
%define smajor 7
%define libname %mklibname dap %{major}
%define libclient %mklibname dapclient %{cmajor}
%define libserver %mklibname dapserver %{smajor}
%define devname %mklibname dap -d

Summary:	C++ DAP2 library from OPeNDAP
Name:		libdap
Version:	3.18.1
Release:	5
# The deflate program is covered by the W3C licence
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.opendap.org/
Source0:	http://www.opendap.org/pub/source/libdap-%{version}.tar.gz
Patch0:		libdap-3.12.0-tirpc.patch
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uuid)

%description
The libdap++ library contains an implementation of DAP2. This package
contains the library, dap-config, getdap and deflate. The script dap-config
simplifies using the library in other projects. The getdap utility is a
simple command-line tool to read from DAP2 servers. It is built using the
library and demonstrates simple uses of it. The deflate utility is used by
the library when it returns compressed responses.

%files
%doc README NEWS COPYING COPYRIGHT_URI README.dodsrc COPYRIGHT_W3C
%{_bindir}/getdap
%{_bindir}/getdap4
%{_mandir}/man1/getdap.1*
%{_mandir}/man1/getdap4*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ DAP2 library from OPeNDAP
Group:		System/Libraries

%description -n %{libname}
C++ DAP2 library from OPeNDAP.

%files -n %{libname}
%defattr(-, root, root)
%{_libdir}/libdap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libclient}
Summary:	C++ DAP2 library from OPeNDAP
Group:		System/Libraries
Conflicts:	%{_lib}dap10 < 3.12.0

%description -n %{libclient}
C++ DAP2 library from OPeNDAP.

%files -n %{libclient}
%defattr(-, root, root)
%{_libdir}/libdapclient.so.%{cmajor}*

#----------------------------------------------------------------------------

%package -n %{libserver}
Summary:	C++ DAP2 library from OPeNDAP
Group:		System/Libraries
Conflicts:	%{_lib}dap10 < 3.12.0

%description -n %{libserver}
C++ DAP2 library from OPeNDAP.

%files -n %{libserver}
%defattr(-, root, root)
%{_libdir}/libdapserver.so.%{smajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development and header files from libdap
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libclient} = %{EVRD}
Requires:	%{libserver} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}dap-static-devel < 3.12.0

%description -n %{devname}
This package contains all the files needed to develop applications that
will use libdap.

%files -n %{devname}
%defattr(-, root, root)
%{_libdir}/libdap.so
%{_libdir}/libdapclient.so
%{_libdir}/libdapserver.so
%{_libdir}/pkgconfig/libdap*.pc
%{_bindir}/dap-config
%{_bindir}/dap-config-pkgconfig
%{_includedir}/libdap/
%{_datadir}/aclocal/*
%{_mandir}/man1/dap-config.1*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of the libdap library
Group:		Development/C
BuildArch:	noarch

%description doc
Documentation of the libdap library.

%files doc
%doc __mandriva_docs/html/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%global optflags %{optflags} -std=c++14
autoreconf -fiv
%configure \
	--disable-static
%make

%install
%makeinstall_std

%make docs

rm -rf __mandriva_docs
cp -a docs __mandriva_docs
# those .map and .md5 are of dubious use, remove them
rm -f __mandriva_docs/html/*.map __mandriva_docs/html/*.md5
# use the ChangeLog timestamp to have the same timestamps for the doc files
# for all archs
touch -r ChangeLog __mandriva_docs/html/*

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2743 |21cr|libdatachannel-0.20.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	soversion() %(echo "%1" | awk -F. '{print $1"."$2}')

Summary:	WebRTC network library featuring Data Channels, Media Transport, and WebSockets
Name:		libdatachannel
Version:	0.20.2
Release:	1
License:	MPLv2.0
Group:		System/Libraries
Url:		https://libdatachannel.org/
Source0:	https://github.com/paullouisageneau/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 3.7
BuildRequires:	nlohmann_json
BuildRequires:	plog
# We prefer libnice over libjuice
#BuildRequires:	libjuice-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libsrtp2)
BuildRequires:	pkgconfig(nettle)
BuildRequires:	pkgconfig(nice)
BuildRequires:	pkgconfig(usrsctp)

%description
This is a standalone implementation of WebRTC Data Channels, WebRTC Media
Transport, and WebSockets in C++17 with C bindings for POSIX platforms
(including GNU/Linux, Android, FreeBSD, Apple macOS and iOS) and Microsoft
Windows.

%files
%{_libdir}/%{name}.so.%{soversion %{version}}*

#-----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.

%files devel
%doc LICENSE README.md DOC.md
%{_includedir}/rtc/
%{_libdir}/cmake/LibDataChannel/
%{_libdir}/%{name}.so

#-----------------------------------------------------------------------------

%prep
%autosetup


%build
%cmake	-DPREFER_SYSTEM_LIB=ON \
		-DUSE_GNUTLS=ON \
		-DUSE_NICE=ON
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2744 |21cr|libde265-1.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0

%define libname %mklibname de265_ %{major}
%define devname %mklibname de265 -d

Summary:	Open h.265 video codec implementation
Name:		libde265
Version:	1.0.8
Release:	1
License:	LGPLv3+
Group:		Video
Url:		http://www.libde265.org
Source0:	https://github.com/strukturag/libde265/releases/download/v%{version}/%{name}-%{version}.tar.gz?/%{name}-%{version}.tar.gz

%description
Open h.265 video codec implementation.

This package is in Restricted repository as the video encoder may be covered
by software patents.

%files
%doc AUTHORS COPYING
%{_bindir}/acceleration_speed
%{_bindir}/bjoentegaard
%{_bindir}/block-rate-estim
%{_bindir}/enc265
%{_bindir}/gen-enc-table
%{_bindir}/rd-curves
%{_bindir}/yuv-distortion

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library from %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library from %{name}.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libde265.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files from %{name}.

%files -n %{devname}
%doc AUTHORS COPYING
%{_libdir}/libde265.so
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-dec265 \
	--disable-sherlock265 \
	--disable-static
%make

%install
%makeinstall_std

# Name is too common to keep
rm -f %{buildroot}%{_bindir}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2745 |21cr|libdigidoc-3.10.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname digidoc %{major}
%define devname %mklibname digidoc -d

Summary:	Library for handling digitally signed documents
Name:		libdigidoc
Version:	3.10.5
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/open-eid/libdigidoc
Source0:	https://github.com/open-eid/libdigidoc/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl)

%description
libDigiDoc is a library implementing a subset of the XAdES digital
signature standard on top of Estonian specific .ddoc container format.
It allows to create, sign, verify, and modify digidoc XML containers.

%files
%config(noreplace) %{_sysconfdir}/digidoc.conf
%doc README.md RELEASE-NOTES.md AUTHORS CONTRIBUTING.md LICENSE.LGPL
%{_bindir}/cdigidoc
%{_mandir}/man1/cdigidoc.1.*
%{_datadir}/%{name}/*.crt

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for handling digitally signed documents
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{libname}
%{_libdir}/libdigidoc.so.%{major}*
%{_libdir}/libdigidoc.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(libxml-2.0)
Requires:	pkgconfig(openssl)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for
developing applications that use %{libname}.

%files -n %{devname}
%doc doc/SK-CDD-PRG-GUIDE.pdf doc/SK-COM-PRG-GUIDE.pdf
%{_includedir}/libdigidoc/
%{_libdir}/pkgconfig/lib*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

#force set right version in cmake
sed -i 's/VERSION ${MAJOR_VER}.${MINOR_VER}.${RELEASE_VER}/VERSION %{version}/' libdigidoc/CMakeLists.txt
sed -i 's/${PROJECT_VERSION}.${BUILD_VER}/${PROJECT_VERSION}/' cmake/modules/VersionInfo.cmake


%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir}

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2746 |21cr|libdigidocpp-3.14.12-0.git.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname digidocpp %{major}
%define devname %mklibname digidocpp -d


Summary:	Library for creating and validating BDoc and DDoc containers
Name:		libdigidocpp
Version:	3.14.12
Release:	0.git.2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://www.id.ee/en/article/digidoc-libraries-c-library-libdigidocpp/
Source0:	https://github.com/open-eid/libdigidocpp/releases/download/v%{version}/libdigidocpp-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	boost-devel
BuildRequires:	python3-devel
BuildRequires:	vim-common
BuildRequires:	xml-security-c-devel
BuildRequires:	minizip-devel
BuildRequires:	swig
BuildRequires:	xsd-devel
BuildRequires:	xalan-c-devel

%description
libdigidocpp is a C++ library for reading, validating, and creating BDoc and
DDoc containers. These file formats are widespread in Estonia where they are
used for storing legally binding digital signatures.

%files
%dir %{_sysconfdir}/digidocpp/
%config %{_sysconfdir}/digidocpp/digidocpp.conf
%{_sysconfdir}/digidocpp/798.p12
%{_sysconfdir}/digidocpp/schema/
%{_bindir}/digidoc-*
%{_mandir}/man1/digidoc-tool.1.*
%{python3_sitelib}/__pycache__/digidoc.cpython-*.pyc
%{python3_sitelib}/_digidoc_python.so
%{python3_sitelib}/digidoc.py

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for creating and validating bdoc and ddoc containers
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
libdigidocpp is a C++ library for reading, validating, and creating BDoc and
DDoc containers. These file formats are widespread in Estonia where they are
used for storing legally binding digital signatures.

%files -n %{libname}
%{_libdir}/libdigidocpp.so.%{major}
%{_libdir}/libdigidocpp.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(libdigidoc)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/digidocpp/
%{_libdir}/pkgconfig/lib*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
export LDFLAGS="-lpython%{py3_ver}"
%cmake \
	-DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \
	-DCERTS_LOCATION="%{_datadir}/esteid/certs" \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2747 |21cr|libdisplay-info-0.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname display-info %{major}
%define devname %mklibname display-info -d

# Tests currently require exact revision of edid-decode
# https://gitlab.freedesktop.org/emersion/libdisplay-info/-/issues/35
%bcond_with     check

Name:           libdisplay-info
Version:        0.1.1
Release:        1
Summary:        EDID and DisplayID library
Group:          System/Libraries

# Main license: MIT
# test/data: CC-BY-4.0, MIT (see test/data/README.md).
License:        MIT
URL:            https://gitlab.freedesktop.org/emersion/libdisplay-info
Source0:        %{url}/-/releases/%{version}/downloads/%{name}-%{version}.tar.xz
BuildRequires:  gcc
BuildRequires:  gnupg2
BuildRequires:  meson >= 0.57
BuildRequires:  pkgconfig(hwdata)
%if %{with check}
BuildRequires:  edid-decode
%endif

%description
%{summary}.

#---------------------------------------------------------
%package -n %{libname}
Summary:        EDID and DisplayID library
Group:          System/Libraries

%description -n %{libname}
%{summary}.

%files -n %{libname}
%license LICENSE
%doc README.md
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{version}

#---------------------------------------------------------
%package        tools
Summary:        Command-line tools for %{name}
Requires:       %{libname} = %{EVRD}

%description    tools
%{summary}.

%files tools
%{_bindir}/di-edid-decode

#---------------------------------------------------------

%package -n %{devname}
Summary:        Development files for %{name}
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}
Provides:       display-info-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#---------------------------------------------------------

%prep
%autosetup -p1


%build
%meson
%meson_build


%install
%meson_install


%if %{with check}
%check
%meson_test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2748 |21cr|libdjconsole-0.1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname djconsole %{major}
%define devname %mklibname djconsole -d

Summary:	Libdjconsole - Support for hardware dj consoles
Name:		libdjconsole
Version:	0.1.3
Release:	10
License:	GPLv2+
Group:		System/Libraries
Url:		http://djplay.sourceforge.net/
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libusb)

%description
libdjconsole - Support for hardware dj consoles

%files
%dir %{_datadir}/libdjconsole
%{_datadir}/libdjconsole/*
%{_sysconfdir}/udev/rules.d/45-hpdjconsole.rules

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libdjconsole - Support for hardware dj consoles
Group:		System/Libraries

%description -n %{libname}
libdjconsole - Support for hardware dj consoles.

%files -n %{libname}
%{_libdir}/libdjconsole.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Libdjconsole
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
libdjconsole - Support for hardware dj consoles.

%files -n %{devname}
%{_libdir}/pkgconfig/*
%{_libdir}/*.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

sed -i -e 's|Libs: -L${libdir} -ldjconsole|Libs: -L${libdir} -ldjconsole -lstdc++ -lusb|g' \
	libdjconsole.pc.in

#gcc10 build fix
sed -i 's|\(hdev.\) < 0|\1 == NULL|' djconsole.cpp

%build
autoreconf -fi
%configure \
	--enable-static=no \
	--enable-threads

%make

%install
%makeinstall_std

# Fix pkgconfig file
sed -i "s,-ldjconsole,-ldjconsole -lusb,g" %{buildroot}%{_libdir}/pkgconfig/libdjconsole.pc
sed -i "s,^libdir=.*,libdir=%{_libdir},g" %{buildroot}%{_libdir}/pkgconfig/libdjconsole.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2749 |21cr|libdlna-0.2.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libname %mklibname dlna %{major}
%define devname %mklibname dlna -d

Summary:	Implementation of DLNA (Digital Living Network Alliance)
Name:		libdlna
Version:	0.2.4
Release:	7
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://libdlna.geexbox.org/
Source0:	http://libdlna.geexbox.org/releases/%{name}-%{version}.tar.bz2
Patch0:		libdlna-0.2.4-mga-ffmpeg-2.4.patch
Patch1:		libdlna-0.2.4-ffmpeg3.patch
BuildRequires:	ffmpeg-devel

%description
libdlna aims at being the reference open-source implementation of DLNA
(Digital Living Network Alliance) standards.

Its primary goal is to provide DLNA support to uShare, an embedded DLNA & 
UPnP A/V Media Server, but it will be used to build both DLNA servers
and players in the long term.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README 
%{_libdir}/libdlna.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%{_includedir}/dlna.h
%{_libdir}/libdlna.so
%{_libdir}/libdlna.a
%{_libdir}/pkgconfig/libdlna.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%setup_compile_flags
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--enable-static \
	--enable-shared
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2750 |21cr|libdnsres-0.1a-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname dnsres %{major}
%define devname %mklibname dnsres -d

Summary:	A non-blocking DNS resolver library
Name:		libdnsres
Version:	0.1a
Release:	12
License:	BSD
Group:		System/Libraries
Url:		http://www.monkey.org/~provos/libdnsres/
Source0:	http://www.monkey.org/~provos/%{name}-%{version}.tar.gz
Source1:	http://www.monkey.org/~provos/%{name}-%{version}.tar.gz.sig
BuildRequires:	pkgconfig(libevent)

%description
Libdnsres provides a non-blocking thread-safe interface for resolving DNS
names.  It is built on top of libevent and makes heavy use of the *BSD
resolver code.  This is essentially an ugly hack to get a non-blocking
DNS resolver for my own personal use.  That spells out to: use at your
own risk, I know that the code is ugly.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A non-blocking DNS resolver library
Group:		System/Libraries

%description -n %{libname}
Libdnsres provides a non-blocking thread-safe interface for resolving DNS
names.  It is built on top of libevent and makes heavy use of the *BSD
resolver code.  This is essentially an ugly hack to get a non-blocking
DNS resolver for my own personal use.  That spells out to: use at your
own risk, I know that the code is ugly.

%files -n %{libname}
%doc README LICENSE
%{_libdir}/libdnsres.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libdnsres library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libdnsres provides a non-blocking thread-safe interface for resolving DNS
names.  It is built on top of libevent and makes heavy use of the *BSD
resolver code.  This is essentially an ugly hack to get a non-blocking
DNS resolver for my own personal use.  That spells out to: use at your
own risk, I know that the code is ugly.

This package contains the static libdnsres library and its header files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libdnsres.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

make CFLAGS="%{optflags} -fPIC"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2751 |21cr|libdsk-1.5.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname dsk %{major}
%define devname %mklibname dsk -d

Summary:	A library for accessing floppy drives and disk images transparently
Name:		libdsk
Version:	1.5.19
Release:	1
License:	GPL
Group:		System/Libraries
Url:		http://www.seasip.info/Unix/LibDsk/
Source0:	http://www.seasip.info/Unix/LibDsk/%{name}-%{version}.tar.gz
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)

%description
LibDsk is a library intended to give transparent access to floppy drives and
to the "disc image files" used by emulators to represent floppy drives.

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for accessing floppy drives and disk images transparently
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
LibDsk is a library intended to give transparent access to floppy drives and
to the "disc image files" used by emulators to represent floppy drives.

Install the libdsk package if you need to manipulate DSK files. You should
also install the libdsk-progs package.

%files -n %{libname}
%doc ChangeLog doc/COPYING doc/README doc/TODO
%{_libdir}/lib*.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for programs which will use the libdsk library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and documentation necessary for
development of programs that will use the libdsk library to load and save
DSK format disc image files.

You should install this package if you need to develop programs which will
use the libdsk library functions for loading and saving DSK format disc
image files. You'll also need to install the libdsk package.

%files -n %{devname}
%doc doc/COPYING doc/cfi.html doc/libdsk.*
%{_libdir}/lib*.so
%{_includedir}/*.h

#---------------------------------------------------------------------------

%package progs
Summary:	Programs for manipulating DSK format disc image files
Group:		Emulators
Requires:	%{libname} = %{EVRD}

%description progs
The libdsk-progs package contains various programs for manipulating
DSK format disc image files.

Install this package if you need to manipulate DSK format disc image
files. You'll also need to install the libdsk package.

%files progs
%doc doc/COPYING
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*

#---------------------------------------------------------------------------

%prep
%setup -q

touch AUTHORS NEWS

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2752 |21cr|libdvb-0.5.5.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DVB mpegtools libdvb - based tools
Name:		libdvb
Version:	0.5.5.1
Release:	15
License:	GPLv2+
Group:		Video
# URL is dead
Url:		http://www.metzlerbros.org/dvb/
Source0:	%{name}-%{version}.tar.gz
Patch0:		%{name}-0.5.5.1-long.patch
Patch3:		%{name}-0.5.5.1-pkgconfig.patch
Patch4:		%{name}-maindvb.patch
Patch5:		%{name}-0.5.5.1-gcc43.patch
Provides:	dvb-mpegtools

%description
A library and tools for manipulation of various MPEG file formats and their
DVB variants.

%files
%doc README
%{_bindir}/*

#-----------------------------------------------------------------------------

%package	devel
Summary:	DVB mpegtools libdvb - developer files
Group:		Development/Other
Provides:	dvb-mpegtools-devel

%description	devel
Development files for libdvb.

%files devel
%{_libdir}/%{name}.a
%{_libdir}/libdvbci.a
%{_libdir}/libdvbmpegtools.a
%{_libdir}/pkgconfig/%{name}*.pc
%{_includedir}/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch3 -p1 -b .pkgconfig
%patch4
%patch5 -p1


%build
# no `configure` here..
# (anssi) no shared libraries provided; build static libs with -fPIC:
make PREFIX=%{_prefix} CFLAGS="%{optflags} -fPIC" CXX="g++ %{ldflags}" CC="gcc %{ldflags}"
make pkgconfig PREFIX=%{_prefix} LIBDIR=%{_libdir}

  
%install
# make install DESTDIR=%%{buildroot}
%__mkdir_p %{buildroot}%{_bindir}
make install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir}
make pkgconfig-install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir}

# prefix binaries with dvb_
for i in %{buildroot}%{_bindir}/* ; do 
  dir=`dirname $i` ; file=`basename $i` 
  case "$file" in
  dvb*) ;; 
  *)  mv $dir/$file $dir/dvb_$file ;;
  esac
done
# but keep aliases for ts* and pes*
for i in %{buildroot}%{_bindir}/dvb_ts* %{buildroot}%{_bindir}/dvb_pes* ; do
  dir=`dirname $i` ; file=`basename $i` 
  (cd $dir && ln -s $file `echo $file | sed -e 's/^dvb_//'`)
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2753 |21cr|libdxfrw-0.6.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname	%mklibname dxfrw %{major}
%define develname %mklibname dxfrw -d

Summary:	C++ library to read/write dxf files in binary and ascii form
Name:		libdxfrw
Version:	0.6.1
Release:	4
License:	GPLv2+
Group:		System/Libraries
URL:		http://sourceforge.net/projects/libdxfrw
Source0:	http://heanet.dl.sourceforge.net/project/%{name}/%{name}-%{version}.tar.bz2


%description
libdxfrw is a free C++ library to read and write DXF
files in both formats, ascii and binary form. It is licensed under
the terms of the GNU General Public License version 2
(or at you option any later version).
#-------------------------------------------------------

%package -n dwg2dxf
Summary:	Program to convert dwg/dxf to dxf (ascii and binary)
Group:		Graphics

%description -n dwg2dxf
This package contains the dwg2dxf tool to convert dwg/dxf files to
dxf (ascii and binary) file.

%files -n dwg2dxf
%doc AUTHORS NEWS README TODO
%{_bindir}/dwg2dxf

#-------------------------------------------------------
%package -n %{libname}
Summary:	A library of functions for manipulating DXF format files
Group:		System/Libraries

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with libdxfrw.

%files -n %{libname}
%doc AUTHORS NEWS README TODO
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{major}.*

#-------------------------------------------------------
%package -n %{develname}
Summary:	Development tools for programs to manipulate DXF files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
The libdxfrw-devel package contains the header files and libraries
necessary for developing programs using the libdxfrw library.

%files -n %{develname}
%doc AUTHORS NEWS README TODO
%{_includedir}/%{name}%{major}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}%{major}.pc

#-------------------------------------------------------
%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2754 |21cr|libdynamite-0.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname dynamite %major
%define develname	%mklibname -d dynamite

Name:		libdynamite
Summary:	SynCE: PKWARE decompressor
Version:	0.1.1
Release:	5
License:	MIT
Group:		System/Libraries
Source0:	http://downloads.sourceforge.net/synce/%{name}-%{version}.tar.gz
URL:		http://synce.sourceforge.net/
BuildRequires:	gettext-devel

%description
Dynamite is a tool and library for decompressing data compressed
with the PKWARE Data Compression Library.

%package -n dynamite
Group:		Archiving/Other
Summary:	SynCE: PKWARE decompressor

%description -n dynamite
Dynamite is a tool for decompressing data compressed with the PKWARE
Data Compression Library.

%package -n %{libname}
Group:		System/Libraries
Summary:	SynCE: PKWARE decompressor

%description -n %{libname}
Libdynamite is part of the SynCE project. This package contains shared
libraries.

%package -n	%{develname}
Group:		Development/C
Summary:	SynCE: PKWARE decompressor
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	dynamite-devel < %{version}-%{release}
Obsoletes:	%{mklibname dynamite 0 -d} < %{version}-%{release}

%description -n %{develname}
Libdynamite is part of the SynCE project. This package contains development
headers.

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

%files -n dynamite
%doc LICENSE
%{_bindir}/*
%{_mandir}/man1/*

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

%files -n %{develname}
%doc LICENSE
%{_libdir}/%{name}.so
%{_includedir}/%{name}.h
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2755 |21cr|libebur128-1.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname ebur128
%define	major	1

Summary:	A library that implements the EBU R 128 standard for loudness normalization
Name:		libebur128
Version:	1.2.6
Release:	1
License:	MIT
Group:		Sound
Url:			https://github.com/jiixyj/libebur128
Source0:	https://github.com/jiixyj/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 2.8.12
BuildRequires:	gcc

%description
A library that implements the EBU R 128 standard for loudness normalization.
It implements M, S and I modes, loudness range measurement (EBU - TECH 3342),
true peak scanning and all sample-rates by recalculation of the filter
coefficients.

%files 
%doc README.md COPYING
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package	devel
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{name} = %{EVRD}

%description	devel
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.

%files	devel
%doc README.md COPYING
%{_includedir}/%{oname}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2756 |21cr|libechonest-2.3.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define qt_ver	5
%define oname echonest%{qt_ver}
%define major 2.3
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	Qt library for communicating with The Echo Nest
Name:		libechonest
Version:	2.3.1
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		https://projects.kde.org/projects/playground/libs/libechonest/
Source0:	http://files.lfranchi.com/%{name}-%{version}.tar.bz2

BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(QJson)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)

%description
Qt library for communicating with The Echo Nest.
It currently supports almost all of the features of the Echo Nest API,
including all API functions.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	libechonest core library
Group:		System/Libraries

%description -n %{libname}
A C++/Qt library to access the APIs provided by The Echo Nest.

%files -n %{libname}
%{_libdir}/%{name}%{qt_ver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_includedir}/%{oname}/
%{_libdir}/%{name}%{qt_ver}.so
%{_libdir}/pkgconfig/%{name}%{qt_ver}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="-std=c++14 %{optflags}"
%cmake -DBUILD_WITH_QT4:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2757 |21cr|libe-devel-0.3.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libe
%define debug_package %{nil}

Summary:	C library contains various functions which deal with data structures
Name:		libe-devel
Version:	0.3.1
Release:	4
License:	GPLv2+
Group:		Development/Other
Url:		http://www.theether.org/libe/
Source0:	http://www.theether.org/libe/%{oname}-%{version}.tar.gz
Provides:	%{name}-%{version}
Provides:	libe-cluster
Conflicts:	libe0-devel

%description
libe is a C library which contains various functions which deal with 
data structures (hash tables, bitmasks, trees of IP addresses, etc.), 
networking, I/O, barriers, and other useful things. It is currently used 
in the implementation of authd (RSA authentication daemon), pcp (a 
parallel, pipelined file transfer system), and gexec (a fast, hierarchical 
cluster remote execution system).

%files
%doc AUTHORS ChangeLog COPYING
%{_bindir}/test_*
%{_includedir}/e
%{_libdir}/libe.a

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2758 |21cr|libelf-0.8.13-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname elf %{major}
%define devname %mklibname elf -d

Summary:	An ELF object file access library
Name:		libelf
Version:	0.8.13
Release:	9
License:	LGPLv2+
Group:		Development/C
Url:		http://www.mr511.de/software/english.html
Source0:	http://www.mr511.de/software/%{name}-%{version}.tar.gz

%description
libelf provides routines to access and manipulate ELF object files. It
is still not complete, but is required for a number of programs, such as
Eli (a state of the art compiler generation system), and Elk (the
Extension Language Kit - an implementation of the Scheme programming
language.)

#----------------------------------------------------------------------------

%package locales
Summary:	An ELF object file access library: locales
BuildArch:	noarch

%description locales
libelf provides routines to access and manipulate ELF object files. It
is still not complete, but is required for a number of programs, such as
Eli (a state of the art compiler generation system), and Elk (the
Extension Language Kit - an implementation of the Scheme programming
language.)

This package contains locales-only data.

%files locales
%lang(de) %{_localedir}/de/

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An ELF object file access library: development files
Group:		System/Libraries
Conflicts:	%{name} < 0.8.13-6
Obsoletes:	%{name} < 0.8.13-6
Recommends:	%{name}-locales

%description -n %{libname}
libelf provides routines to access and manipulate ELF object files. It
is still not complete, but is required for a number of programs, such as
Eli (a state of the art compiler generation system), and Elk (the
Extension Language Kit - an implementation of the Scheme programming
language.)

This shared library may be needed by pre-packaged programs. To compile
programs with this library, you will need to install the libelfg0-dev
package as well.

%files -n %{libname}
%{_libdir}/libelf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	An ELF object file access library: development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.8.13-6
Obsoletes:	%{name}-devel < 0.8.13-6
Conflicts:	elfutils-devel

%description -n %{devname}
libelf provides routines to access and manipulate ELF object files. It
is still not complete, but is required for a number of programs, such as
Eli (a state of the art compiler generation system), and Elk (the
Extension Language Kit - an implementation of the Scheme programming
language.)

This development library is only needed if you intend to compile, or
write, your own programs with this library. It holds the static linking
library (.a), and the required .so link to libelf0.so.0. To run programs
linked with this library, install the libelfg0 package. 

%files -n %{devname}
%{_libdir}/%{name}.so
%{_libdir}/%{name}.a
%{_includedir}/%{name}/
%{_includedir}/*.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2759 |21cr|libelfhacks-0.4.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname elfhacks %{major}
%define devname %mklibname elfhacks -d

Summary:	elfhacks application interface
Name:		libelfhacks
Version:	0.4.1
Release:	6
License:	MIT
Group:		System/Libraries
Url:		https://github.com/ienorand/elfhacks
Source0:	https://nodeload.github.com/ienorand/elfhacks/zipball/%{name}-%{version}.tar.bz2
BuildRequires:	cmake
ExclusiveArch:	%{ix86} %{x86_64}

%description
Various ELF run-time hacks.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 0.4.1-2
Obsoletes:	%{name} < 0.4.1-2

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libelfhacks.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 0.4.1-2

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libelfhacks.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake -DMLIBDIR=%{_libdir}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2760 |21cr|libeps-1.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname eps

%define major 0
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	EPS (Email Parsing System) library
Name:		libeps
Version:	1.5
Release:	10
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.inter7.com/
Source0:	http://www.inter7.com/eps/%{oname}-%{version}.tar.bz2
Patch0:		eps-1.5-shared.diff

%description
EPS (Email Parsing System) is intended to give people the ability
to write their own email processing tools. Whether you want to
process incoming and outgoing emails, or just analyze a message,
this package is intended to aid in that endeavor.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared EPS (Email Parsing System) library
Group:		System/Libraries

%description -n %{libname}
EPS (Email Parsing System) is intended to give people the ability
to write their own email processing tools. Whether you want to
process incoming and outgoing emails, or just analyze a message,
this package is intended to aid in that endeavor.

%files -n %{libname}
%doc doc/* mess ChangeLog TODO
%{_libdir}/libeps.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libeps library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}
Provides:	lib%{oname}-devel = %{EVRD}

%description -n %{devname}
EPS (Email Parsing System) is intended to give people the ability
to write their own email processing tools. Whether you want to
process incoming and outgoing emails, or just analyze a message,
this package is intended to aid in that endeavor.

This package contains the static libeps library and its header files
needed to compile applications such as stegdetect, etc.

%files -n %{devname}
%{_includedir}/eps
%{_libdir}/libeps.so
%{_libdir}/libeps.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p0

%build
make CFLAGS="%{optflags} -fPIC -DPIC"

%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}/eps

install -m0644 libeps.a %{buildroot}%{_libdir}/
install -m0755 libeps.so.%{major} %{buildroot}%{_libdir}/
ln -snf libeps.so.%{major} %{buildroot}%{_libdir}/libeps.so
install -m0644 *.h %{buildroot}%{_includedir}/eps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2761 |21cr|libetpan-1.9.4-3.git5c9eb.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5c9eb6b6ba64c4eb927d7a902317410181aacbba
%define commit_short %(echo %{commit} | head -c 5)

%define major 20
%define libname %mklibname etpan %{major}
%define devname %mklibname etpan -d

# autogen.sh is run
%define _disable_rebuild_configure 1

# Do not strip ELFs, RPM will do it!
%define strip_hack \
mkdir -p local_bin; \
ln -sf /bin/true local_bin/strip; \
export PATH="$PWD/local_bin:$PATH"

Summary:	Mail purpose library
Name:		libetpan
Version:	1.9.4
Release:	3.git%{commit_short}.1
Group:		System/Libraries
License:	BSD
URL:		http://www.etpan.org/libetpan.html
Source:		https://github.com/dinhviethoa/libetpan/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	db-devel
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(gpg-error)
BuildRequires:	libgcrypt-devel

%description
The purpose of this mail library is to provide a portable, efficient 
framework for different kinds of mail access. When using the drivers 
interface, the interface is the same for all kinds of mail access, 
remote and local mailboxes.

Network protocols supported:
o IMAP/NNTP/POP3/SMTP over TCP/IP and SSL/TCP/IP, already implemented.
o Local storage (mbox/MH/maildir), message / MIME parser

#-------------------------------------------------------

%package -n %{libname}
Summary:	Mail purpose library
Group:		System/Libraries

%description -n %{libname}
The purpose of this mail library is to provide a portable, efficient 
framework for different kinds of mail access. When using the drivers 
interface, the interface is the same for all kinds of mail access, 
remote and local mailboxes.

Network protocols supported:
o IMAP/NNTP/POP3/SMTP over TCP/IP and SSL/TCP/IP, already implemented.
o Local storage (mbox/MH/maildir), message / MIME parser

%files -n %{libname}
%doc README.md COPYRIGHT
%{_libdir}/libetpan.so.%{major}*

#-------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel  = %{EVRD}

%description -n %{devname}
This package contains the header files and static libraries for
developing with %{name}.


%files -n %{devname}
%doc ChangeLog NEWS
%doc doc/*
%{_includedir}/*
%{_libdir}/libetpan.so
%{_libdir}/pkgconfig/libetpan.pc

#-----------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog
%strip_hack
sed -i -e 's,-g0,%{debugcflags},g' configure.ac

%build
%strip_hack
NOCONFIGURE=1 ./autogen.sh
%configure \
	--without-openssl \
	--with-gnutls \
	--enable-ipv6 \
	--enable-optim

%make

%check
%strip_hack
make check

%install
%strip_hack
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2762 |21cr|libevent0.9-0.9-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libevent

%define api 0.9
%define major 0
%define libname %mklibname event %{api} %{major}
%define devname %mklibname event %{api} -d

Summary:	Abstract asynchronous event notification library
Name:		libevent%{api}
Version:	0.9
Release:	12
License:	BSD
Group:		System/Libraries
URL:		http://www.monkey.org/~provos/libevent/
Source0:	%{oname}-%{version}.tar.bz2

%description
The libevent API provides a mechanism to execute a callback function
when a specific event occurs on a file descriptor or after a timeout
has been reached. libevent is meant to replace the asynchronous event
loop found in event driven network servers. An application just needs
to call event_dispatch() and can then add or remove events dynamically
without having to change the event loop.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Abstract asynchronous event notification library
Group:		System/Libraries

%description -n %{libname}
The libevent API provides a mechanism to execute a callback function
when a specific event occurs on a file descriptor or after a timeout
has been reached. libevent is meant to replace the asynchronous event
loop found in event driven network servers. An application just needs
to call event_dispatch() and can then add or remove events dynamically
without having to change the event loop.

%files -n %{libname}
%{_libdir}/libevent%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libevent library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}event0.9_0-devel < 0.9-11
Obsoletes:	%{_lib}event0.9_0-devel < 0.9-11

%description -n %{devname}
The libevent API provides a mechanism to execute a callback function
when a specific event occurs on a file descriptor or after a timeout
has been reached. libevent is meant to replace the asynchronous event
loop found in event driven network servers. An application just needs
to call event_dispatch() and can then add or remove events dynamically
without having to change the event loop.

This package contains the static libevent library and its header files
needed to compile applications such as stegdetect, etc.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libevent%{api}.so
%{_libdir}/libevent%{api}.a
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"
%configure
%make libevent.a

gcc -Wl,-soname,libevent%{api}.so.%{major} -shared %{optflags} -fPIC \
    -Wl,--as-needed -Wl,--no-undefined -o libevent%{api}.so.%{major}.%{api} *.o

%install
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_mandir}/man3

install -m0755 libevent%{api}.so.%{major}.%{api} %{buildroot}%{_libdir}/
ln -s libevent%{api}.so.%{major}.%{api} %{buildroot}%{_libdir}/libevent%{api}.so.%{major}
ln -s libevent%{api}.so.%{major}.%{api} %{buildroot}%{_libdir}/libevent%{api}.so

install -m0644 libevent.a %{buildroot}%{_libdir}/libevent%{api}.a
install -m0644 event.h %{buildroot}%{_includedir}/libevent%{api}.h
install -m0644 event.3 %{buildroot}%{_mandir}/man3/libevent%{api}.3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2763 |21cr|libewf-20140608-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname ewf %{major}
%define devname %mklibname ewf -d

Summary:	Utils for use with the Expert Witness Compression Format (EWF)
Name:		libewf
Version:	20140608
Release:	5
License:	BSD
Group:		System/Libraries
Url:		http://libewf.sourceforge.net/
Source0:	https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/%{name}-%{version}.tar.gz
BuildRequires:	libtool
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
Libewf is a library for support of the Expert Witness Compression Format (EWF),
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
Libewf allows you to read and write media information within the EWF files.

This package contains utils for use with the Expert Witness Compression Format
(EWF).

%files
%{_bindir}/ewfacquire
%{_bindir}/ewfacquirestream
%{_bindir}/ewfexport
%{_bindir}/ewfinfo
%{_bindir}/ewfverify
%{_bindir}/ewfmount
%{_bindir}/ewfdebug
%{_bindir}/ewfrecover
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Expert Witness Compression Format (EWF) shared library
Group:		System/Libraries

%description -n %{libname}
Libewf is a library for support of the Expert Witness Compression Format (EWF),
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
Libewf allows you to read and write media information within the EWF files.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS
%{_libdir}/libewf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the libewf library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libewf is a library for support of the Expert Witness Compression Format (EWF),
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
Libewf allows you to read and write media information within the EWF files.

This package contains development files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libewf.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#export WANT_AUTOCONF_2_5=1
#rm -f configure
#libtoolize --copy --force; aclocal; autoconf --force; autoheader; automake

export CFLAGS="%{optflags} -std=gnu89 -fPIC"

%configure \
	--disable-static

%make

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2764 |21cr|libextractor-1.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define common_major 1
%define libname %mklibname extractor %{major}
%define libcommon %mklibname extractor_common %{common_major}
%define devname %mklibname extractor -d

Summary:	Library used to extract meta-data from files
Name:		libextractor
Version:	1.6
Release:	6
License:	BSD
Group:		System/Libraries
Url:		http://www.gnunet.org/libextractor/
Source0:	http://ftpmirror.gnu.org/libextractor/%{name}-%{version}.tar.gz
Patch0:		libextractor-1.3-rpm5.patch
Patch1:		7cc63b001ceaf81143795321379c835486d0c92e.patch
Patch2:		libextractor-1.8-exiv2-0.27.patch
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libmpeg2)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
libextractor is a library used to extract meta-data from files of arbitrary 
type. It is designed to use helper-libraries to perform the actual extraction, 
and to be trivially extendable by linking against external extractors for 
additional file types. The goal is to provide developers of file-sharing 
networks or WWW-indexing bots with a universal library to obtain simple 
keywords to match against queries. libextractor contains a shell-command 
"extract" that, similar to the well-known "file" command, can extract meta-data
from a file and print the results to stdout. Currently, it supports the formats
HTML, PDF, PS, MP3, OGG, JPEG, GIF, PNG, RPM, ZIP, Real, QT and ASF. Also, 
various additional MIME types are detected.

%files -f %{name}.lang
%{_bindir}/extract
%{_mandir}/man1/extract.1.*
%{_mandir}/man3/libextractor.3.*
%{_infodir}/libextractor.info.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libextractor library used to extract meta-data from files 
Group:		System/Libraries

%description -n %{libname}
libextractor is a library used to extract meta-data from files of arbitrary 
type. It is designed to use helper-libraries to perform the actual extraction, 
and to be trivially extendable by linking against external extractors for 
additional file types. The goal is to provide developers of file-sharing 
networks or WWW-indexing bots with a universal library to obtain simple 
keywords to match against queries. libextractor contains a shell-command 
"extract" that, similar to the well-known "file" command, can extract meta-data
from a file and print the results to stdout. Currently, it supports the formats
HTML, PDF, PS, MP3, OGG, JPEG, GIF, PNG, RPM, ZIP, Real, QT and ASF. Also, 
various additional MIME types are detected.

%files -n %{libname}
%doc ChangeLog NEWS COPYING README AUTHORS
%{_libdir}/%{name}.so.%{major}*
%{_libdir}/%{name}%{major}

#----------------------------------------------------------------------------

%package -n	%{libcommon}
Summary:	Libextractor library for common functions
Group:		System/Libraries

%description -n	%{libcommon}
Common function library of libextractor.

%files -n %{libcommon}
%doc ChangeLog NEWS COPYING README AUTHORS
%{_libdir}/%{name}_common.so.%{common_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libextractor library headers and development libraries
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libcommon} = %{EVRD}

%description -n %{devname}
Development files and headers for libextractor.

%files -n %{devname}
%doc ChangeLog NEWS COPYING README AUTHORS
%{_libdir}/%{name}.so
%{_libdir}/%{name}_common.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%if %{mdvver} < 202100
%patch0 -p1 -b .rpm5~
%endif
%patch1 -p1 -b .CVE-2017-17440~
%patch2 -p1

%build
autoreconf -fi
%configure \
	--disable-static \
	--disable-rpath \
	--enable-exiv2 \
	--disable-ffmpeg \
	--with-plugindirname=%{name}%{major}

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2765 |21cr|libfame-0.9.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.9
%define major 1
%define libname %mklibname fame %{api} %{major}
%define devname %mklibname fame -d

Summary:	Fast Assembly Mpeg Encoding library
Name:		libfame
Version:	0.9.1
Release:	15
License:	LGPLv2+
Group:		System/Libraries
Url:		http://fame.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/fame/%{name}-%{version}.tar.bz2
Patch:		libfame-0.9.1-gcc34-1.patch.bz2
Patch1:		libfame-0.9.1-64bit.diff
Patch2:		libfame-0.9.1-fix-underquoted-calls.patch

%description
FAME is a library for fast MPEG encoding.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast Assembly Mpeg Encoding library
Group:		System/Libraries

%description -n %{libname}
FAME is a library for fast MPEG encoding.

This package is in restricted as it may violate some patents.

%files -n %{libname}
%doc CHANGES COPYING README
%{_libdir}/libfame-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include to develop using FAME
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}

%description -n %{devname}
FAME is a library for fast MPEG encoding.

This is the libraries, include files and other resources you can use
to develop FAME applications.

This package is in restricted as it may violate some patents.

%files -n %{devname}
%{_bindir}/*-config
%{_libdir}/lib*.so
%{_includedir}/fame*.h
%{_datadir}/aclocal/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# delete m4 files for re-create it
rm *.m4

%build
aclocal
autoconf
automake -a -f --foreign
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2766 |21cr|libfc14audiodecoder-1.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		1
%define	libname		%mklibname fc14audiodecoder %{major}
%define	develname	%mklibname -d fc14audiodecoder

Summary:	Future Composer audio decoding library
Name:		libfc14audiodecoder
Version:	1.0.3
Release:	3
License:	GPLv2+
Group:		Sound
Url:		http://xmms-fc.sourceforge.net
Source0:	http://sourceforge.net/projects/xmms-fc/files/%{name}/%{name}-%{version}.tar.bz2

%description
Decode music files written on a Commodore Amiga using Future Composer.
This library provides a C API for an old audio decoder that has been used in
several plug-ins for versatile audio players like XMMS, BMP, Audacious and
GStreamer. It is based on unmaintained/stable code which used to be a `Future
Composer Reference Player for Linux'. Because of how the source code has been
imported into a CVS repository long since its last major modification,
the timestamps of the files in CVS and in released tarballs do not reflect
that the core of the decoder has not been changed for years. Except for
cosmetical adjustments, indentation, dropping of unused pieces, and partial
reorganization for OOP.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for decoding Future Composer music
Group:		System/Libraries

%description -n %{libname}
Decode music files written on a Commodore Amiga using Future Composer.
This library provides a C API for an old audio decoder that has been used in
several plug-ins for versatile audio players like XMMS, BMP, Audacious and
GStreamer. It is based on unmaintained/stable code which used to be a `Future
Composer Reference Player for Linux'. Because of how the source code has been
imported into a CVS repository long since its last major modification,
the timestamps of the files in CVS and in released tarballs do not reflect
that the core of the decoder has not been changed for years. Except for
cosmetical adjustments, indentation, dropping of unused pieces, and partial
reorganization for OOP.

%files -n %{libname}
%doc COPYING README
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
Decode music files written on a Commodore Amiga using Future Composer.
This library provides a C API for an old audio decoder that has been used in
several plug-ins for versatile audio players like XMMS, BMP, Audacious and
GStreamer. It is based on unmaintained/stable code which used to be a `Future
Composer Reference Player for Linux'. Because of how the source code has been
imported into a CVS repository long since its last major modification,
the timestamps of the files in CVS and in released tarballs do not reflect
that the core of the decoder has not been changed for years. Except for
cosmetical adjustments, indentation, dropping of unused pieces, and partial
reorganization for OOP.

%files -n %{develname}
%doc COPYING
%{_libdir}/%{name}.so
%{_includedir}/fc14audiodecoder.h

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2767 |21cr|libfishsound-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname fishsound %{major}
%define devname %mklibname fishsound -d

Summary:	Simple programming interface that wraps Xiph.Org audio codecs
Name:		libfishsound
Version:	1.0.0
Release:	7
License:	BSD-like
Group:		System/Libraries
Url:		http://www.annodex.net/software/libfishsound
Source0:	http://www.annodex.net/software/libfishsound/download/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisenc)

%description
FishSound (libfishsound) provides a simple programming interface for
decoding and encoding audio data using the Xiph.Org codecs Vorbis and
Speex. libfishsound is a wrapper around the existing codec libraries
and provides a consistent, higher-level programming interface. It
has been designed for use in a wide variety of applications; it has
no direct dependencies on Annodex or Ogg encapsulation, though it is
most commonly used in conjunction with liboggz to decode or encode Ogg
encapsulated Vorbis or Speex files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Simple programming interface that wraps Xiph.Org audio codecs
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
FishSound (libfishsound) provides a simple programming interface for
decoding and encoding audio data using the Xiph.Org codecs Vorbis and
Speex. libfishsound is a wrapper around the existing codec libraries
and provides a consistent, higher-level programming interface. It
has been designed for use in a wide variety of applications; it has
no direct dependencies on Annodex or Ogg encapsulation, though it is
most commonly used in conjunction with liboggz to decode or encode Ogg
encapsulated Vorbis or Speex files.

%files -n %{libname}
%doc NEWS README COPYING
%{_libdir}/libfishsound.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Simple programming interface that wraps Xiph.Org audio codecs
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
FishSound (libfishsound) provides a simple programming interface for
decoding and encoding audio data using the Xiph.Org codecs Vorbis and
Speex. libfishsound is a wrapper around the existing codec libraries
and provides a consistent, higher-level programming interface. It
has been designed for use in a wide variety of applications; it has
no direct dependencies on Annodex or Ogg encapsulation, though it is
most commonly used in conjunction with liboggz to decode or encode Ogg
encapsulated Vorbis or Speex files.

%files -n %{devname}
%doc AUTHORS ChangeLog COPYING NEWS README ./doc/docs
%{_libdir}/libfishsound.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std docdir=./docs/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2768 |21cr|libfm-qt-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define api_ver %{nil}
%define libname %mklibname fm-qt %{api_ver} %{major}
%define devname %mklibname fm-qt %{api_ver} -d

Summary:	PCManFM Qt backend library
Name:		libfm-qt
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/libfm-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	libfm-qt.0.14.1_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libfm)
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)

%description
PCManFM Qt backend library.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_datadir}/%{name}
%{_datadir}/mime/packages/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PCManFM Qt backend library
Group:		System/Libraries
Requires:	%{name}
Obsoletes:	%{_lib}fm-qt_3 < 0.13.1

%description -n %{libname}
PCManFM Qt backend library.

%files -n %{libname}
%doc README.md
%{_libdir}/libfm-qt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for PCManFM
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for PCManFM.

%files -n %{devname}
%doc README.md
%{_libdir}/libfm-qt.so
%{_includedir}/libfm-qt
%{_libdir}/pkgconfig/libfm-qt.pc
%{_datadir}/cmake/fm-qt

#----------------------------------------------------------------------------

%prep
%setup -q

pushd src/translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2769 |21cr|libformat-1.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname format %{major}
%define devname %mklibname format -d

Summary:	A library for HTML syntax highlighting of source code
Name:		libformat
Version:	1.5
Release:	10
License:	GPL
Group:		System/Libraries
Url:		http://daveb.net/format
Source0:	http://daveb.net/format/src/%{name}-%{version}.tar.bz2
Patch0:		libformat-1.5-fix-str-fmt.patch

%description
libformat is an adaptation of the mod_format Apache module to do syntax
highlighting of source code using HTML outside of Apache.  libformat is 
capable of syntax highlighting C, C++, Java, Python, Verilog and VHDL 
source code.

%files
%{_bindir}/srcformat
%{_datadir}/libformat

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for HTML syntax highlighting of source code
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
libformat is an adaptation of the mod_format Apache module to do syntax
highlighting of source code using HTML outside of Apache.  libformat is 
capable of syntax highlighting C, C++, Java, Python, Verilog and VHDL 
source code.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/libformat.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libformat is an adaptation of the mod_format Apache module to do syntax
highlighting of source code using HTML outside of Apache.  libformat is 
capable of syntax highlighting C, C++, Java, Python, Verilog and VHDL 
source code.

This package contains the static %{name} library and its header files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libformat.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2770 |21cr|libgap-4.8.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname gap %{major}
%define devname %mklibname gap -d

Summary:	C library version of the GAP kernel
Name:		libgap
Version:	4.8.3
Release:	3
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		https://bitbucket.org/vbraun/libgap
Source0:	https://bitbucket.org/vbraun/libgap/downloads/%{name}-%{version}.tar.gz
Patch0:		libgap-nogmp.patch
BuildRequires:	libtool
BuildRequires:	gap-libs
BuildRequires:	gap-devel

%description
LibGAP -- a C library version of the GAP kernel (http://www.gap-system.org)

LibGAP is essentially a fork of the upstream GAP kernel. It is developed
in its own repository at https://bitbucket.org/vbraun/libgap. This is
also where the spkg metadata is tracked.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C library version of the GAP kernel
Group:		System/Libraries
Conflicts:	%{_lib}libgap < 4.8.3
Obsoletes:	%{_lib}libgap < 4.8.3

%description -n %{libname}
LibGAP -- a C library version of the GAP kernel (http://www.gap-system.org)

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}libgap-devel < 4.8.3
Obsoletes:	%{_lib}libgap-devel < 4.8.3

%description -n %{devname}
This package contains the header files and development documentation
for %{name}.

%files -n %{devname}
%{_includedir}/gap
%{_libdir}/%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
# due to patching configure.ac in patch0
autoreconf -ifs

%build
export CFLAGS='%{optflags} -DSYS_DEFAULT_PATHS=\"%{_gap_dir}\"'
%configure \
	--enable-shared \
	--disable-static \
	--without-gmp
%make

%install
%make_install

%check
make check


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2771 |21cr|libgarmin-0.1-0.0.svn320.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname	%mklibname garmin %{major}
%define develname %mklibname -d garmin

%define snap svn320

Summary:	C library to parse and use Garmin image files
Name:		libgarmin
Version:	0.1
Release:	0.0.%{snap}.1
Group:		System/Libraries
License:	GPLv2
URL:		http://libgarmin.sourceforge.net/
Source0:	libgarmin-%{version}.tar.gz
Patch0:		libgarmin-shared.diff
Patch1:		libgarmin-0.1-automake-1.12.diff
BuildRequires:	autoconf 
BuildRequires:	automake 
BuildRequires:	libtool
BuildRequires:	subversion

%description
Libgarmin is a library used to parse IMG files from Garmin GPS devices.

%package	utils
Summary:	Various utlilities to manipulate Garmin image files
Group:          File tools

%description	utils
Libgarmin is a library used to parse IMG files from Garmin GPS devices.

This package contains various utlilities to manipulate Garmin image files.

%package -n	%{libname}
Summary:	C library to parse and use Garmin image files
Group:          System/Libraries

%description -n	%{libname}
Libgarmin is a library used to parse IMG files from Garmin GPS devices.

This package contains the shared %{name} library.

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{version}
Requires:	%{libname} = %{version}

%description -n	%{develname}
Libgarmin is a library used to parse IMG files from Garmin GPS devices.

This package contains libraries and header files for developing applications
that use %{name}.

%prep

%setup -q 
%autopatch -p1

%build
mkdir -p m4
autoreconf -fi

%configure \
    --disable-static

svn upgrade > /dev/null 2>&1 || :
%make

%install

%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.*a

%files utils
%{_bindir}/gar*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/garmintypes.txt

%files -n %{libname}
%doc AUTHORS COPYING README TODO
%{_libdir}/*.so.%{major}{,.*}

%files -n %{develname}
%{_datadir}/%{name}/doc/*
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2772 |21cr|libgbinder-1.1.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _empty_manifest_terminate_build 0


%define major 1
%define libname %mklibname gbinder %{major}
%define devname %mklibname -d gbinder

Name:           libgbinder
Version:        1.1.26
Release:        1
Group:          System/Libraries
Summary:        GLib-style interface to binder
License:        BSD-3-Clause
URL:            https://github.com/mer-hybris/libgbinder
Source0:        https://github.com/mer-hybris/libgbinder/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
Source1:        gbinder.conf
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libglibutil)

%description
GLib-style interface to binder (Android IPC mechanism)

%package -n %{libname}
Summary:        Library for %{name}
Provides:   libgbinder = %{EVRD}

%description -n %{libname}
Library for %{name}.

%package -n %{devname}
Summary:        Development library for %{name}
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
This package contains the development library for %{name}.

%prep
%autosetup

%build
%make_build \
 LIBDIR=%{_libdir} \
 KEEP_SYMBOLS=1 \
 release \
 pkgconfig

%install
%make_install \
 LIBDIR=%{_libdir} \
 DESTDIR=%{buildroot} \
 install-dev

install -Dm 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/gbinder.conf
mkdir %{buildroot}%{_sysconfdir}/gbinder.d

%files -n %{libname}
%doc AUTHORS README
%license LICENSE
%{_libdir}/%{name}.so.%{major}*
%dir %{_sysconfdir}/gbinder.d
%config(noreplace) %{_sysconfdir}/gbinder.conf

%files -n %{devname}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{name}.so
%dir %{_includedir}/gbinder
%{_includedir}/gbinder/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2773 |21cr|libgcal-0.9.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	libgcal
%define version	0.9.6
%define major	0
%define libname %mklibname gcal %{major}
%define develname %mklibname gcal -d


Name:		%name
Version:	%version
Release:	6
Summary:	Implements Google Data Protocol 2.0
License:	BSD
Group:		Communications
URL:		http://code.google.com/p/libgcal/
Source:		http://libgcal.googlecode.com/files/%name-%version.tar.bz2
BuildRequires:	cmake
BuildRequires:	curl-devel
BuildRequires:	libxml2-devel
BuildRequires:	check-devel

%description
Implements Google Data Protocol 2.0. 
It does allow communication with google calendar and contacts, 
implements already:
- authentication
- get all events/contacts
- atom stream parsing
- access to individual events/contacts
- add/delete/edit events/contacts
- query for updated events/contacts
- add/edit/delete contacts with photo
- download your contact's photos
- proxy is supported
- timezones
- use only xml to add/edit/delete entries
- great doxygen documentation 

#-------------------------------------------------------------------

%package -n	%{libname}
Summary:	Library implementing Google Data Protocol Data 2.0
Group:		System/Libraries
Obsoletes:	libgcal <= 0.9.3-1
Provides:	%{name} = %{version}-%{release}

%description -n	%{libname}
This library implements Google Data Protocol 2.0
It does allow communication with google calendar and contacts, 
implements already:
- authentication
- get all events/contacts
- atom stream parsing
- access to individual events/contacts
- add/delete/edit events/contacts
- query for updated events/contacts
- add/edit/delete contacts with photo
- download your contact's photos
- proxy is supported
- timezones
- use only xml to add/edit/delete entries
- great doxygen documentation 

%files -n	%{libname}
%defattr(-,root,root)
%{_libdir}/libgcal.so.%{major}*

#--------------------------------------------------------------------


%package -n	%{develname}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}
Obsoletes:	libgcal-devel <= 0.9.3-1
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n	%{develname}
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/libgcal.so
%{_libdir}/pkgconfig/libgcal.pc
%{_libdir}/LibGCal/cmake/LibGCalConfig.cmake

#--------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%__rm -rf %buildroot
%makeinstall_std -C build

%clean
%__rm -rf %buildroot

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2774 |21cr|libgdgeda-2.0.15-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define fname gdgeda

%define major 6
%define libname %mklibname %{fname} %{major}
%define devname %mklibname %{fname} -d

Summary:	Graphical libraries for the gEDA project
Name:		lib%{fname}
Version:	2.0.15
Release:	16
License:	LGPL
Group:		Sciences/Other
Url:		http://www.geda.seul.org
Source:		%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)

%description
Libgdgeda is a hack on libgd, which is a graphics library.  It allows your
code to quickly draw images complete with lines, arcs, text, multiple
colors, cut and paste from other images, and flood fills, and write out
the result as a .PNG file.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Graphical libraries for the gEDA project
Group:		Sciences/Other

%description -n %{libname}
Libgdgeda is a hack on libgd, which is a graphics library.  It allows your
code to quickly draw images complete with lines, arcs, text, multiple
colors, cut and paste from other images, and flood fills, and write out
the result as a .PNG file.

%files -n %{libname}
%{_libdir}/libgdgeda.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Graphical development libraries for the gEDA project
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libgdgeda header files that are needed for
development.
Libgdgeda is a hack on libgd, which is a graphics library. It allows your
code to quickly draw images complete with lines, arcs, text, multiple
colors, cut and paste from other images, and flood fills, and write out
the result as a .PNG file.

%files -n %{devname}
%{_bindir}/libgdgeda-config
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libgdgeda.so
%{_includedir}/gdgeda

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2775 |21cr|libgds-2.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This is packaged because it's needed when building Qt4 with iBase /
# Firebird support. See http://forum.mandriva.com/viewtopic.php?t=100963
# AdamW 2008/12

%define major		2.2.2
%define libname		%mklibname gds %{major}
%define develname	%mklibname gds -d

Summary:	A library of functions and generic data structures
Name:		libgds
Version:	2.2.2
Release:	%{mkrel 1}
# The website claims 'LGPL' but the tarball includes a copy of the GPL,
# no copy of the LGPL, and no info in any source file headers. I am
# mailing upstream for a clarification. - AdamW 2008/12
License:	GPL+
Group:		System/Libraries
Source0:	https://download.sourceforge.net/project/libgds/libgds-%{version}.tar.gz
URL:		http://libgds.info.ucl.ac.be/index.php
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-root
BuildRequires:	zlib-devel
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libxml-2.0)

%description
libGDS is a library of functions and generic data structures that is
used in various projects such as C-BGP. The library contains dynamic
arrays, hash tables, radix trees, Patricia trees, tokenizers, FIFO
queues, stacks, string management functions and memory management
functions.

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
libGDS is a library of functions and generic data structures that is
used in various projects such as C-BGP. The library contains dynamic
arrays, hash tables, radix trees, Patricia trees, tokenizers, FIFO
queues, stacks, string management functions and memory management
functions.

%package -n %{develname}
Summary:	Development headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
libGDS is a library of functions and generic data structures that is
used in various projects such as C-BGP. The library contains dynamic
arrays, hash tables, radix trees, Patricia trees, tokenizers, FIFO
queues, stacks, string management functions and memory management
functions. This package contains the development headers.

%prep
%setup -q

%build
%configure \
    --enable-static \
    --enable-xml
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/%{name}-%{major}.so

%files -n %{develname}
%defattr(-,root,root)
%doc AUTHORS
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/%{name}.*a
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2776 |21cr|libggigcp-1.0.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname ggigcp %{major}
%define devname %mklibname ggigcp -d
%define sdevname %mklibname ggigcp -d -s

Summary:	Extension to libggi for advanced color and palette handling
Name:		libggigcp
Version:	1.0.2
Release:	13
License:	Public Domain
Group:		System/Libraries
Url:		http://www.ggi-project.org/
Source0:	http://www.ggi-project.org/ftp/ggi/v2.2/%{name}-%{version}.src.tar.bz2
BuildRequires:	libggi-devel >= 2.2.2
BuildRequires:	chrpath

%description
It adds features for conversion between different color
spaces such as RGBA, YUV, HSV and CMYK and some manipulation
functions like brightness and color-blending.

%files
%doc README ChangeLog
%dir %{_libdir}/ggi/gcp
%dir %{_libdir}/ggi/gcp/default
%config(noreplace) %{_sysconfdir}/ggi/libggigcp.conf
%{_libdir}/ggi/gcp/default/*.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for libggigcp
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
Main library for libggigcp.

%files -n %{libname}
%{_libdir}/libggigcp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for libggigcp library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for libggigcp library.

%files -n %{devname}
%doc doc/*.txt doc/*.faq
%{_includedir}/ggi/*.h
%{_includedir}/ggi/internal/*.h
%{_libdir}/*.so
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static files for libggigcp library
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
Static files for libggigcp library.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export echo=echo

%configure --enable-static

%make

%install
export echo=echo

%makeinstall_std

%ifarch x86_64
chrpath -d %{buildroot}%{_libdir}/ggi/gcp/default/color_gcp.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2777 |21cr|libggimisc-2.2.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname ggimisc %{major}
%define devname %mklibname ggimisc -d
%define sdevname %mklibname ggimisc -d -s

Summary:	Extension to libggi for misc graphics target features
Name:		libggimisc
Version:	2.2.2
Release:	14
License:	Public Domain
Group:		System/Libraries
Url:		http://www.ggi-project.org/
Source0:	http://www.ggi-project.org/ftp/ggi/v2.2/%{name}-%{version}.src.tar.bz2
BuildRequires:	libggi-devel >= 2.2.2
BuildRequires:	chrpath

%description
LibGGIMisc is a place to put support for graphics target 
features which are not deserving their own special extensions. 
Right now this means basically some VGA adaptor features -
- getting and waiting for the raster position, using 
a hardware horizontal splitline feature, and loading/unloading font 
data from hardware text modes.

%files
%doc README ChangeLog TODO
%config(noreplace) %{_sysconfdir}/ggi/libggimisc.conf
%{_libdir}/ggi/ggimisc/display/*.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for libggimisc
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
Main library for libggimisc.

%files -n %{libname}
%{_libdir}/libggimisc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for libggimisc library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for libggimisc library.

%files -n %{devname}
%doc doc/*.txt
%{_includedir}/ggi/*.h
%{_includedir}/ggi/internal/*.h
%{_libdir}/libggimisc.so
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export echo=echo

%configure

%make

%install
export echo=echo

%makeinstall_std

%ifarch x86_64
chrpath -d %{buildroot}%{_libdir}/ggi/ggimisc/display/fbdev_ggimisc.so
chrpath -d %{buildroot}%{_libdir}/ggi/ggimisc/display/pseudo_stubs_ggimisc.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2778 |21cr|libglademm2.4-2.6.7-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define pkgname libglademm

%define major 1
%define api 2.4
%define libname %mklibname glademm %{api} %{major}
%define devname %mklibname glademm %{api} -d
%define libname_orig %mklibname glademm %{api}

Summary:	C++ interface of glade2 library
Name:		%{pkgname}%{api}
Version:	2.6.7
Release:	17
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gtkmm.sourceforge.net/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
Buildrequires:	doxygen
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libglade-2.0)

%description
This package provides a C++ interface for glade2.  It is a subpackage
of the gnomemm project.  The interface provides a convenient interface for C++
programmers to create glade2 objects.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface of glade2 library
Group:		System/Libraries
Provides:	%{libname_orig} = %{EVRD}
Provides:	%{pkgname} = %{EVRD}

%description -n %{libname}
This package provides a C++ interface for glade2.  It is a subpackage
of the gnomemm project.  The interface provides a convenient interface for C++
programmers to create glade2 objects.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog INSTALL
%{_libdir}/libglademm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files of %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(gtkmm-2.4)
Requires:	pkgconfig(libglade-2.0)
Provides:	%{name}-devel = %{EVRD}
Provides:	%{pkgname}-devel = %{EVRD}

%description -n %{devname}
This package provides headers and various development files needed for
compiling or developing applications that use Glade 2 C++ interface.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog INSTALL
%{_includedir}/*
%{_libdir}/%{pkgname}-%{api}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.a
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{pkgname} library
Group:		Documentation

%description doc
This package provides API documentation of %{pkgname} library, which
is part of gnomemm project that provides C++ interface for GNOME libraries.
The documents can be browsed via devhelp, an API documentation viewer.

%files doc
%{_docdir}/gnomemm-2.6/*
%{_datadir}/devhelp/books/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--enable-static
%make

### Build doc
pushd docs/reference
  perl -pi -e 's/^(HAVE_DOT.*=) YES/$1 NO/' Doxyfile
  make all
popd

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2779 |21cr|libglibutil-1.0.67-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _empty_manifest_terminate_build 0

%define major 1
%define libname %mklibname glibutil %{major}
%define devname %mklibname -d glibutil

Name:           libglibutil
Version:        1.0.67
Release:        1
Summary:        Library of glib utilities
Group:          System/Libraries
License:        BSD-3-Clause
URL:            https://github.com/sailfishos/libglibutil
Source:         https://github.com/sailfishos/libglibutil/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(glib-2.0)

%description
Library of glib utilities.

%package -n %{libname}
Summary:        Library of glib utilities
Provides:   %{name} = %{EVRD}

%description -n %{libname}
Library of glib utilities.

%package -n %{devname}
Summary:        Devel library for %{name}
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
Development files for %{name}

%prep
%autosetup -p1

%build
%make_build \
 LIBDIR=%{_libdir} \
 KEEP_SYMBOLS=1 \
 release \
 pkgconfig

%install
%make_install \
 LIBDIR=%{_libdir} \
 DESTDIR=%{buildroot} \
 install-dev


%files -n %{libname}
%license LICENSE
%doc README
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{name}.so
%dir %{_includedir}/gutil
%{_includedir}/gutil/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2780 |21cr|libgltf-0.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major 1
%global api 0.1
%define libname %mklibname gltf %{api} %{major}
%define devname %mklibname gltf -d

Summary:	A library for rendering glTF models
Name:		libgltf
Version:	0.1.0
Release:	5
License:	MPLv2.0
Group:		System/Libraries
Url:		https://wiki.documentfoundation.org/Development/libgltf
Source0:	http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	boost-devel
BuildRequires:	glm-devel
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(epoxy)

%description
%{name} is a library for rendering glTF models -- development glTF, the GL
Transmission Format, is the runtime asset format for the GL APIs: WebGL,
OpenGL ES, and OpenGL. glTF bridges the gap between formats used by modeling
tools and the GL APIs.

%{name} provides methods to load the OpenGL scene from glTF format and render
it into an existing OpenGL context. %{name} also allows to change the camera
position so the scene can be displayed from different points of view.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for rendering glTF models
Group:		System/Libraries

%description -n %{libname}
%{name} is a library for rendering glTF models -- development glTF, the GL
Transmission Format, is the runtime asset format for the GL APIs: WebGL,
OpenGL ES, and OpenGL. glTF bridges the gap between formats used by modeling
tools and the GL APIs.

%{name} provides methods to load the OpenGL scene from glTF format and render
it into an existing OpenGL context. %{name} also allows to change the camera
position so the scene can be displayed from different points of view.

%files -n %{libname}
%doc AUTHORS COPYING NEWS
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-silent-rules \
	--disable-static \
	--disable-werror
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2781 |21cr|libgnome2-2.32.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

%define api 2
%define major 0
%define pkgname libgnome
%define libname %mklibname gnome %{api} %{major}
%define devname %mklibname gnome %{api} -d

Summary:	GNOME libraries
Name:		%{pkgname}%{api}
Version:	2.32.1
Release:	18
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
# (fc) 1.116.0-2mdk use Mdk default background
Patch1:		libgnome-background.patch
# (fc) 2.2.0.1-2mdk Ia Ora as default theme
Patch4:		libgnome-defaulttheme.patch
# (fc) 2.19.1-2mdv mark gnome_program_init with sentinel (SUSE)
Patch6:		libgnome-sentinel.patch
# (fc) 2.19.1-2mdv fix va_list usage (SUSE)
Patch7:		libgnome-2.19.1-va_list.patch
# (fc) 2.19.1-2mdv enable sound server and events by default, remove almost default sound events
Patch8:		libgnome-2.19.1-sounds-default.patch
# (fc) 2.24.1-2mdv use www-browser as default browser
Patch9:		libgnome-2.24.1-www-browser.patch
# (fc) 2.28.0-2mdv put back icons in menu and buttons
Patch10:	libgnome-2.28.0-icons.patch
# md glib2.0 >= 2.31.0 g_thread_init
Patch11:	libgnome-2.32.1_g_thread_init.patch
# utf-8 headers in python
Patch12:	libgnome-2.32.1-utf8-header.patch
BuildRequires:	GConf2
BuildRequires:	gtk-doc
BuildRequires:	intltool >= 0.40.0
BuildRequires:	pkgconfig(gconf-2.0) >= 1.1.11
BuildRequires:	pkgconfig(glib-2.0) >= 2.8.0
BuildRequires:	pkgconfig(gmodule-2.0) >= 2.8.0
BuildRequires:	pkgconfig(gnome-vfs-2.0) >= 2.5.3
BuildRequires:	pkgconfig(gobject-2.0) >= 2.0.0
BuildRequires:	pkgconfig(libbonobo-2.0) >= 2.13.0
%if %{without bootstrap}
BuildRequires:	pkgconfig(libcanberra) >= 0
%endif
BuildRequires:	pkgconfig(popt)
Requires:	%{name}-schemas >= %{EVRD}
Requires:	%{libname} >= %{EVRD}
Provides:	libgnome = %{EVRD}

%description
Data files for the GNOME library such as translations.

%files -f %{pkgname}-2.0.lang
%doc NEWS
%config(noreplace) %{_sysconfdir}/sound/events/*
%{_bindir}/gnome-open
%{_libdir}/bonobo/monikers/*.so
%{_libdir}/bonobo/servers/*
%{_mandir}/man7/*
%{_datadir}/gnome-background-properties/gnome-default.xml
%{_datadir}/pixmaps/backgrounds/gnome/background-default.jpg

#----------------------------------------------------------------------------

%package schemas
Summary:	Default configuration for some GNOME software
Group:		%{group}
# needs gconftool-2
Requires:	GConf2
Conflicts:	%{name} < 2.30.0-2

%description schemas
Default configuration for GNOME software.

%files schemas
%{_sysconfdir}/gconf/schemas/desktop_gnome_*.schemas

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries for GNOME applications
Group:		%{group}

%description -n %{libname}
GNOME library contains extra API to let your GNOME applications shine.

%files -n %{libname}
%{_libdir}/libgnome-%{api}.so.%{major}*


%package -n %{devname}
Summary:	Development libraries, include files for GNOME
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development libraries, include files for GNOME.

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{version}
%apply_patches

# this is a hack for glib2.0 >= 2.31.0
sed -i -e 's/-DG_DISABLE_DEPRECATED//g' \
    ./libgnome/Makefile.*

%build
export LC_ALL=en_US.UTF-8

%configure \
	--disable-static \
	--disable-schemas-install \
%if %{with bootstrap}
	--enable-canberra=no \
%endif
	--enable-gtk-doc

%make

%install
%makeinstall_std

%find_lang %{pkgname}-2.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2782 |21cr|libgnomecanvas-2.30.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define api_version	2
%define lib_major	0
%define libname %mklibname gnomecanvas %{api_version} %{lib_major}
%define libnamedev %mklibname -d gnomecanvas %{api_version}

Summary:	GnomeCanvas widget
Name:		libgnomecanvas
Version:	2.30.3
Release:	12
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.gnome.org/

Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	bison
BuildRequires:	intltool
BuildRequires:	pkgconfig(gail) >= 1.9.0
BuildRequires:	pkgconfig(glib-2.0) >= 2.10.0
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.2.0
BuildRequires:	pkgconfig(libart-2.0) >= 2.3.8
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(pango) >= 1.0.1
BuildRequires:	pkgconfig(pangoft2) >= 1.0.1

%description
The GNOME canvas is an engine for structured graphics that offers a rich
imaging model, high performance rendering, and a powerful, high-level API.
It offers a choice of two rendering back-ends, one based on Xlib for
extremely fast display, and another based on Libart, a sophisticated,
antialiased, alpha-compositing engine. Applications have a choice between
the Xlib imaging model or a superset of the PostScript imaging model,
depending on the level of graphic sophistication required.

%package -n %{libname}
Summary:	%{summary}
Group:		%{group}
Provides:	%{name}%{api_version} = %{version}-%{release}

%description -n %{libname}
The GNOME canvas is an engine for structured graphics that offers a rich
imaging model, high performance rendering, and a powerful, high-level API.
It offers a choice of two rendering back-ends, one based on Xlib for
extremely fast display, and another based on Libart, a sophisticated,
antialiased, alpha-compositing engine. Applications have a choice between
the Xlib imaging model or a superset of the PostScript imaging model,
depending on the level of graphic sophistication required.

This package contains the main canvas library.

%package -n %{libnamedev}
Summary:	Development libraries and include files for GnomeCanvas widget
Group:		Development/GNOME and GTK+
Provides:	%{name}%{api_version}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}
Obsoletes:	%{mklibname -d gnomecanvas 2 0} < 2.30.3-5

%description -n %{libnamedev}
The GNOME canvas is an engine for structured graphics that offers a rich
imaging model, high performance rendering, and a powerful, high-level API.
It offers a choice of two rendering back-ends, one based on Xlib for
extremely fast display, and another based on Libart, a sophisticated,
antialiased, alpha-compositing engine. Applications have a choice between
the Xlib imaging model or a superset of the PostScript imaging model,
depending on the level of graphic sophistication required.

This package contains development library and header files for %{name}.

%prep
%setup -q

%build
%configure \
	--disable-static

%make LIBS=-lm

%install
%makeinstall_std

%find_lang %{name}-2.0

%files  -f %{name}-2.0.lang

%files -n %{libname}
%{_libdir}/libgnomecanvas-%{api_version}.so.%{lib_major}*

%files -n %{libnamedev}
%doc ChangeLog NEWS README AUTHORS
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2783 |21cr|libgnomecanvasmm2.6-2.26.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define pkgname libgnomecanvasmm

%define major 1
%define api 2.6
%define libname %mklibname gnomecanvasmm %{api} %{major}
%define devname %mklibname gnomecanvasmm %{api} -d

Summary:	A C++ interface for GNOME 2 canvas library
Name:		%{pkgname}%{api}
Version:	2.26.0
Release:	14
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gtkmm.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libgnomecanvas-2.0)

%description
This package provides a C++ interface for GNOME canvas library.  It is a
subpackage of the gnomemm project.  The interface provides a convenient
interface for C++ programmers to create GNOME GUIs with GTK+'s flexible
object-oriented framework.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C++ interface for GNOME 2 canvas library
Group:		System/Libraries
Provides:	%{pkgname} = %{EVRD}

%description -n %{libname}
This package provides a C++ interface for GNOME canvas library.  It is a
subpackage of the gnomemm project.  The interface provides a convenient
interface for C++ programmers to create GNOME GUIs with GTK+'s flexible
object-oriented framework.

%files -n %{libname}
%doc COPYING README
%{_libdir}/libgnomecanvasmm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of GNOME 2 canvas library
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{pkgname}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and various development files needed
for compiling or development of applications that wants C++ interface
of GNOME 2 canvas library.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog NEWS
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/%{pkgname}-%{api}
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{pkgname} library
Group:		Documentation

%description doc
This package provides API documentation of %{pkgname} library.

%files doc
%doc docs/reference/html

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{version}

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--enable-static
%make

### Build doc
pushd docs/reference
  perl -pi -e 's/^(HAVE_DOT.*=) YES$/$1 NO/' Doxyfile
  make all
popd

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2784 |21cr|libgnomecups-0.2.3-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 1
%define libname %mklibname gnomecups-%{api}_ %{major}
%define develname %mklibname gnomecups-%{api} -d

Summary:	GNOME library for CUPS integration
Name:		libgnomecups
Version:	0.2.3
Release:	16
License:	LGPL
Group:		System/Libraries
URL:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
# (fc) 0.2.2-4mdv fix cups callback for authentication (SUSE)
Patch1:		libgnomecups-0.2.2-callbackfix.patch
# (fc) 0.2.2-4mdv add dbus support (Fedora)
Patch3:		libgnomecups-0.2.3-dbus.patch
# (fc) 0.2.2-4mdv parse cups loptions (ubuntu)
Patch4:		libgnomecups-0.2.2-parse-dot-cups-loptions.patch
# (fc) 0.2.2-4mdv fix remote printer detection (ubuntu)
Patch5:		libgnomecups-0.2.2-fix-islocal.patch
# (fc) 0.2.2-4mdv don't warn on stderr for IPP_NOT_FOUND (ubuntu)
Patch6:		libgnomecups-0.2.2-ignore-ipp-not-found.patch
# (fc) 0.2.2-4mdv allow to change some cups printer attributes (ubuntu)
Patch7:		libgnomecups-0.2.2-replace-set-printer-attrs.patch
Patch8:		libgnomecups-0.2.3-fix-str-fmt.patch
# (cjw) fix glib includes
Patch9:		libgnomecups-0.2.3-glib.patch
Patch10:	libgnomecups-0.2.3-automake-1.13.patch
Patch11:	libgnomecups-0.2.3-cups-1.6.patch

BuildRequires:	cups-devel
BuildRequires:	cups-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	intltool
BuildRequires:	gnome-common

%description
GNOME library for CUPS integration

%package -n %{libname}
Summary:	GNOME library for CUPS integration
Group:		System/Libraries
Recommends:	%{name} = %{version}-%{release}

%description -n %{libname}
GNOME library for CUPS integration

%package -n %{develname}
Summary:	GNOME library for CUPS integration
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname gnomecups-1.0_ 1 -d} < 0.2.3-9

%description -n %{develname}
GNOME library for CUPS integration

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--with-dbus=yes

%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc ChangeLog NEWS AUTHORS

%files -n %{libname}
%{_libdir}/libgnomecups-%{api}.so.%{major}*

%files -n %{develname}
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2785 |21cr|libgnome-media-profiles-3.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 3.0
%define major 0
%define libname %mklibname gnome-media-profiles %{api} %{major}
%define devname %mklibname gnome-media-profiles -d

Summary:	GNOME Media Profiles library
Name:		libgnome-media-profiles
Version:	3.0.0
Release:	7
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		http://git.gnome.org/browse/libgnome-media-profiles
Source0:	http://download.gnome.org/sources/%{name}/3.0/%{name}-%{version}.tar.bz2
# upstream 	1451acdacb11fdc2eb23fce10a9affa844f9527c
Patch0:		libgnome-media-profiles-3.0.0_fix_format_string.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:	pkgconfig(gtk+-3.0)
Conflicts:	gnome-media < 2.91.2

%description
The GNOME Media Profiles library provides prebuilt GStreamer pipelines
for applications aiming to support different sound formats.

%files -f libgnome-media-profiles.lang
%doc COPYING README
%{_bindir}/gnome-audio-profiles-properties
%{_sysconfdir}/gconf/schemas/gnome-media-profiles.schemas
%{_datadir}/libgnome-media-profiles

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for the %{name}
Group:		System/Libraries

%description -n %{libname}
Library for the %{name}.

%files -n %{libname}
%{_libdir}/libgnome-media-profiles-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files
for developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--disable-schemas-install \
	--disable-scrollkeeper
%make

%install
%makeinstall_std

%find_lang libgnome-media-profiles gnome-audio-profiles --with-gnome libgnome-media-profiles.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2786 |21cr|libgnomemm2.6-2.30.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname libgnomemm

%define major 1
%define api 2.6
%define libname %mklibname gnomemm %{api} %{major}
%define devname %mklibname gnomemm %{api} -d
%define libname_orig %mklibname gnomemm %{api}

Summary:	A C++ wrapper for libgnome
Name:		%{pkgname}%{api}
Version:	2.30.0
Release:	14
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gtkmm.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libgnome-2.0)
BuildRequires:	pkgconfig(popt)

%description
The %{pkgname} library provides a C++ wrapper for libgnome library.
It is a subpackage of the gnomemm project, which provides C++ binding
of various GNOME libraries.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C++ wrapper for libgnome
Group:		System/Libraries
Provides:	%{libname_orig} = %{EVRD}

%description -n %{libname}
The %{pkgname} library provides a C++ wrapper for libgnome library.
It is a subpackage of the gnomemm project, which provides C++ binding
of various GNOME libraries.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libgnomemm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libgnome C++ wrapper
Group: 		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(gtkmm-2.4)
Requires:	pkgconfig(libgnome-2.0)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains all necessary files, including libraries and headers,
that C++ programmers will need to develop applications which use %{pkgname},
the C++ interface to libgnome library.

It is necessary when compiling applications which use %{pkgname} as well.

%files -n %{devname}
%doc COPYING ChangeLog NEWS docs/reference/html
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{pkgname}-%{api}

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2787 |21cr|libgnomeprint-2.18.8-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with gtkdoc

%define api 2-2
%define major 0
%define libname %mklibname gnomeprint %{api} %{major}
%define devname %mklibname gnomeprint%{api} -d

Summary:	GNOME print library
Name:		libgnomeprint
Version:	2.18.8
Release:	12
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.levien.com/gnome/print-arch.html
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
# debian
Patch0:		12_cups-transport.patch
Patch1:		libgnomeprint22-2.18.8-freetype.patch
# netbsd
Patch2:		libgnomeprint-2.18.8-bison3.patch

BuildRequires:	bison
BuildRequires:	flex
%if %{with gtkdoc}
BuildRequires:	gtk-doc
%endif
BuildRequires:	intltool
BuildRequires:	pkgconfig(libart-2.0)
BuildRequires:	pkgconfig(libbonobo-2.0)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(libgnomecups-1.0)

%description
This is an implementation of the Gnome Printing Architecture, as
described in:

   http://www.levien.com/gnome/print-arch.html

%files -f %{name}-2.2.lang
%doc README AUTHORS NEWS
%dir %{_libdir}/libgnomeprint
%dir %{_libdir}/libgnomeprint/%{version}
%dir %{_libdir}/libgnomeprint/%{version}/modules
%dir %{_libdir}/libgnomeprint/%{version}/modules/transports
%dir %{_libdir}/libgnomeprint/%{version}/modules/filters
%{_libdir}/libgnomeprint/%{version}/modules/*.so
%{_libdir}/libgnomeprint/%{version}/modules/transports/*.so
%{_libdir}/libgnomeprint/%{version}/modules/filters/*.so
%{_datadir}/libgnomeprint

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for GNOME print support
Group:		System/Libraries

%description -n %{libname}
Shared library for GNOME print support.

%files -n %{libname}
%{_libdir}/libgnomeprint-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files for GNOME print
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{mklibname -d gnomeprint2-2_ 0} < 2.18.8-4

%description -n %{devname}
Development libraries, include files for GNOME print.

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p0

%build
%configure \
	--disable-static \
%if %{with gtkdoc}
	--enable-gtk-doc
%else
	--disable-gtk-doc
%endif

%make

%install
%makeinstall_std

%find_lang %{name}-2.2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2788 |21cr|libgnomeprintui-2.18.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%bcond_with gtkdoc

%define api 2-2
%define major 0
%define libname %mklibname gnomeprintui %{api} %{major}
%define devname %mklibname gnomeprintui %{api} -d

Summary:	GNOME print library
Name:		libgnomeprintui
Version:	2.18.6
Release:	11
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.levien.com/gnome/print-arch.html
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
# (fc) 2.18.3-2mdv use system-config-printer, not gnome-cups-add
Patch0:		libgnomeprintui-2.18.3-system-config-printer.patch
BuildRequires:	gnome-icon-theme
%if %{with gtkdoc}
BuildRequires:	gtk-doc
%endif
BuildRequires:	intltool
BuildRequires:	pkgconfig(libgnomeprint-2.2)
BuildRequires:	pkgconfig(libgnomecanvas-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	gnome-icon-theme
Requires:	libgnomeprint
Recommends:	system-config-printer

%description
This is an implementation of the Gnome Printing Architecture, as
described in:

   http://www.levien.com/gnome/print-arch.html

%files -f %{name}-2.2.lang
%doc README AUTHORS NEWS
%{_datadir}/libgnomeprintui

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for GNOME print support
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This is an implementation of the Gnome Printing Architecture, as
described in:

   http://www.levien.com/gnome/print-arch.html

%files -n %{libname}
%{_libdir}/libgnomeprintui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files for GNOME print
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is an implementation of the Gnome Printing Architecture, as
described in:

   http://www.levien.com/gnome/print-arch.html

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
%if %{with gtkdoc}
	--enable-gtk-doc
%else
	--disable-gtk-doc
%endif
%make LIBS=-lm

%install
%makeinstall_std

%find_lang %{name}-2.2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2789 |21cr|libgnomesu-2.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname gnomesu %{major}
%define devname %mklibname gnomesu -d

Summary:	Library for accessing superuser privileges from GNOME
Name:		libgnomesu
Version:	2.0.6
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://members.chello.nl/~h.lai/libgnomesu/
Source0:	https://github.com/openSUSE/libgnomesu/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libgnomesu-0.9.5-pam_stack.patch
BuildRequires:	intltool
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)

%description
libgnomesu is a library for providing superuser privileges to GNOME
applications. It supports sudo, consolehelper, PAM and su.

%files -f %{name}-1.0.lang
%doc README.md ChangeLog NEWS TODO AUTHORS
%config(noreplace) %{_sysconfdir}/pam.d/gnomesu-pam
%{_bindir}/gnomesu
%attr(4111,root,root) %{_libexecdir}/%{name}/gnomesu-backend
%attr(4111,root,root) %{_libexecdir}/%{name}/gnomesu-pam-backend

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for accessing superuser privileges from GNOME
Group:		System/Libraries

%description -n %{libname}
libgnomesu is a library for providing superuser privileges to GNOME 
applications. It supports sudo, consolehelper, PAM and su.

%files -n %{libname}
%{_libdir}/libgnomesu.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library for accessing superuser privileges from GNOME
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libgnomesu is a library for providing superuser privileges to GNOME 
applications. It supports sudo, consolehelper, PAM and su.

%files -n %{devname}
%{_includedir}/libgnomesu-1.0/
%{_libdir}/pkgconfig/libgnomesu-1.0.pc
%{_libdir}/lib*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
mkdir -p m4
intltoolize -f
autoreconf -fi
export SUID_CFLAGS="-fPIE"
export SUID_LDFLAGS="-pie"
%configure \
	--docdir=%{_docdir}/%{name}		\
	--disable-silent-rules			\
	--libexecdir=%{_libexecdir}/%{name}	\
	--disable-setuid-error
%make

%install
%makeinstall_std

%find_lang %{name}-1.0

#gw fix perms for cpio
chmod 755 %{buildroot}%{_libexecdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2790 |21cr|libgnomeui2-2.24.5-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2
%define major 0
%define pkgname libgnomeui

%define libname %mklibname gnomeui %{api} %{major}
%define devname %mklibname gnomeui %{api} -d

Summary:	Main GNOME libraries
Name:		%{pkgname}%{api}
Version:	2.24.5
Release:	14
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
# (fc) 2.22.1-2mdv link with math library
Patch0:		libgnomeui-2.22.1-floor.patch
Patch1:		libgnomeui-2.24.5-utf8.patch
BuildRequires:	intltool
BuildRequires:	gnome-common
BuildRequires:	gtk-doc >= 0.9
BuildRequires:	pkgconfig(gconf-2.0) >= 1.1.11
BuildRequires:	pkgconfig(gdk-pixbuf-2.0) >= 2.12.0
BuildRequires:	pkgconfig(gio-2.0) >= 2.16.0
BuildRequires:	pkgconfig(glib-2.0) >= 2.16.0
BuildRequires:	pkgconfig(gnome-keyring-1) >= 0.4
BuildRequires:	pkgconfig(gnome-vfs-2.0) >= 2.7.3
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libbonoboui-2.0) >= 2.13.1
BuildRequires:	pkgconfig(libglade-2.0) >= 2.0.0
BuildRequires:	pkgconfig(libgnome-2.0) >= 2.13.7
BuildRequires:	pkgconfig(libgnomecanvas-2.0) >= 2.0.0
BuildRequires:	pkgconfig(libxml-2.0) >= 2.4.20
BuildRequires:	pkgconfig(pango) >= 1.1.2
BuildRequires:	pkgconfig(popt)
Requires:	gnome-icon-theme

%description
Data files for the GNOME UI library such as translations.

%files -f %{pkgname}-2.0.lang
%doc AUTHORS NEWS README
%{_libdir}/libglade/2.0/*.so
%{_datadir}/pixmaps/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNOME libraries
Group:		System/Libraries

%description -n %{libname}
GNOME library contains extra widgets to let your GNOME applications
really shine.

%files -n %{libname}
%{_libdir}/libgnomeui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files for GNOME
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development library, headers files and documentation needed in order
to develop applications using the GNOME library.

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}
%apply_patches

#needed by patch0
autoreconf -fi

%build
%configure \
	--disable-static \
	--enable-gtk-doc \
	--enable-compile-warnings=no

%make

%install
%makeinstall_std

%find_lang %{pkgname}-2.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2791 |21cr|libgnomeuimm2.6-2.28.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname libgnomeuimm
%define major 1
%define api 2.6
%define libname %mklibname gnomeuimm %{api} %{major}
%define devname %mklibname gnomeuimm %{api} -d
%define libname_orig %mklibname gnomeuimm %{api}

Summary:	A C++ wrapper for GNOME UI library
Name:		%{pkgname}%{api}
Version:	2.28.0
Release:	15
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gtkmm.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gconfmm-2.6)
BuildRequires:	pkgconfig(gnome-vfsmm-2.6)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libgnomecanvasmm-2.6)
BuildRequires:	pkgconfig(libgnomemm-2.6)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(popt)

%description
This library provides a C++ wrapper for GNOME UI library.
It is a subpackage of the gnomemm project, which provides C++ binding
of various GNOME libraries.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C++ wrapper for GNOME UI library
Group:		System/Libraries
Provides:	%{pkgname} = %{EVRD}
Provides:	%{libname_orig} = %{EVRD}

%description -n %{libname}
This library provides a C++ wrapper for GNOME UI library.
It is a subpackage of the gnomemm project, which provides C++ binding
of various GNOME libraries.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libgnomeuimm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libgnomeui C++ wrapper
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{pkgname}-devel = %{EVRD}

%description -n %{devname}
This package contains all necessary files, including libraries and headers,
that C++ programmers will need to develop applications which use
%{pkgname}, the C++ interface to libgnomeui.

It is necessary when compiling applications which use %{pkgname} as well.

%files -n %{devname}
%doc COPYING ChangeLog TODO
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{pkgname}-%{api}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{pkgname} library
Group:		Documentation

%description doc
This package provides API documentation of %{pkgname} library.

%files doc
%doc docs/reference/html

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static
%make

### Build doc
pushd docs/reference
  perl -pi -e 's/^(HAVE_DOT.*=) YES$/$1 NO/' Doxyfile
  make all
popd

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2792 |21cr|libgnt-2.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname gnt %{major}
%define devname %mklibname gnt -d

Summary:	GNT is an ncurses toolkit for creating text-mode graphical user interfaces
Name:		libgnt
Version:	2.14.0
Release:	1
License:	GPLv2
Group:		System/Libraries
Url:		https://bitbucket.org/pidgin/libgnt
Source0:	https://bitbucket.org/pidgin/libgnt/get/v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	gtk-doc

%description
GNT is an ncurses toolkit for creating text-mode graphical user 
interfaces in a fast and easy way. It is based on GLib and ncurses.

It was born out of the console-based UI, Finch, for the libpurple 
project, but has now been split into its own independent repository.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	GNT is an ncurses toolkit for creating text-mode graphical user interfaces
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
%rename %{_lib}finch0

%description -n %{libname}
foo shared library.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*
%{_libdir}/gnt/
#------------------------------------------------------------------

%package -n %{devname}
Summary:	GNT (libgnt) development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	gnt-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
foo development files.

%files -n %{devname}
%{_includedir}/gnt/
%{_libdir}/libgnt.so
%{_libdir}/pkgconfig/gnt.pc
%{_datadir}/gtk-doc/html/libgnt/

#------------------------------------------------------------------

%prep
%setup -q -c
mv pidgin-libgnt-* libgnt-%{version}

%build
cd libgnt-%{version}
%meson
%meson_build

%install
cd libgnt-%{version}
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2793 |21cr|libgooglepinyin-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname googlepinyin %{major}
%define devname %mklibname googlepinyin -d

Summary:	A fork from google pinyin on android
Name:		libgooglepinyin
Version:	0.1.2
Release:	1
License:	Apache-2.0
Group:		System/Internationalization
Url:		http://code.google.com/p/libgooglepinyin
Source:		https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pango)

%description
libgooglepinyin is an input method fork from google pinyin on android.

%files
%{_libdir}/googlepinyin/data/dict_pinyin.dat

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A fork from googlepinyin on android
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
libgooglepinyin is an input method fork from google pinyin on android

%files -n %{libname}
%{_libdir}/libgooglepinyin.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for googlepinyin library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for googlepinyin library.

%files -n %{devname}
%{_includedir}/googlepinyin
%{_libdir}/libgooglepinyin.so
%{_libdir}/pkgconfig/googlepinyin.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DCMAKE_SKIP_RPATH:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2794 |21cr|libgringotts-1.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname gringotts %{major}
%define devname %mklibname gringotts -d
%define staticdevname %mklibname gringotts -d -s

Name:		libgringotts
Version:	1.2.1
Release:	3
Summary:	A data encapsulation and encryption library
Group:		System/Libraries
License:	GPLv2+
Url:		http://gringotts.berlios.de/
Source0:	http://download.berlios.de/gringotts/%{name}-%{version}.tar.bz2

BuildRequires:	libmcrypt-devel
BuildRequires:	mhash-devel
BuildRequires:	zlib-devel
BuildRequires:	bzip2-devel
BuildRequires:	libtool-devel

%description
A small, easy-to-use, thread-safe C library originally developed for 
Gringotts; its purpose is to encapsulate data (generic: ASCII but 
also binary data) in an encrypted and compressed file. It uses strong
encryption algorithms, to ensure the data is as safe as possible, and
allows the user to have the complete control over all the algorithms 
used in the process. 

%package -n %{libname}
Summary:	A data encapsulation and encryption library
Group:		System/Libraries

%description -n %{libname}
A small, easy-to-use, thread-safe C library originally developed for
Gringotts; its purpose is to encapsulate data (generic: ASCII but
also binary data) in an encrypted and compressed file. It uses strong
encryption algorithms, to ensure the data is as safe as possible, and
allows the user to have the complete control over all the algorithms
used in the process.

%package -n %{devname}
Summary:	Development files for the libgringotts library
Group:		Development/C

Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides development files for the libgringotts library.

%package -n %{staticdevname}
Summary:	Static development files for the libgringotts library
Group:		Development/C

Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{staticdevname}
This package provides static development files for the libgringotts 
library.

%prep
%setup -q

%build
%configure --enable-static
%make

%install
rm -rf %{buildroot}
%makeinstall_std

# remove installed doc files
rm -rf %{buildroot}%{_defaultdocdir}/%{name}-%{version}

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README TODO docs/manual.htm
%{_libdir}/%{name}.so.*

%files -n %{devname}
%defattr(-,root,root)
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

%files -n %{staticdevname}
%defattr(-,root,root)
%{_libdir}/%{name}.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2795 |21cr|libgta-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 1
%define libname %mklibname gta %{major}
%define devname %mklibname gta -d

Summary:	Library that implements the Generic Tagged Arrays file format
Name:		libgta
Version:	1.2.1
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://marlam.de/gta/
Source0:	https://marlam.de/gta/releases/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)

%description
Libgta is a portable library that implements the GTA (Generic Tagged Arrays)
file format. It provides interfaces for C and C++.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library that implements the Generic Tagged Arrays file format
Group:		System/Libraries

%description -n %{libname}
Libgta is a portable library that implements the GTA (Generic Tagged Arrays)
file format. It provides interfaces for C and C++.

%files -n %{libname}
%doc COPYING AUTHORS README
%{_libdir}/libgta.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	gta-devel = %{EVRD}

%description -n %{devname}
Header files for development with %{name}.

%files -n %{devname}
%{_includedir}/gta/
%{_libdir}/libgta.so
%{_libdir}/pkgconfig/gta.pc

#----------------------------------------------------------------------------

%package doc
Summary:	API documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains HTML API documentation and
examples for %{name}.

%files doc
%doc doc/example*
%doc doc/reference

#----------------------------------------------------------------------------

%prep
%setup -q

# Preserve date for headers
# Sent to gta-list@nongnu.org
sed -i 's/-m 644/-pm 644/' configure

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

# Remove documentation; will install it with doc macro
rm -rf %{buildroot}%{_docdir}

%check
make check V=1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2796 |21cr|libgtkmusic-0.6-0.gitba0f3c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude libgtkmusic.*

%define commit ba0f3c78a5d8399132efc8091ee37dcaa51d95de
%define commit_short %(echo %{commit} | head -c6)

%define major 0
%define api 0.6
%define libname %mklibname gtkmusic %{major}
%define girname %mklibname gtkmusic-gir %{api}
%define devname %mklibname gtkmusic -d

Summary:	Gtk widgets for creating and interacting with musical instruments
Name:		libgtkmusic
Version:	0.6
Release:	0.git%{commit_short}.1
License:	GPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/libgtkmusic
Source0:	https://github.com/GNOME/libgtkmusic/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	git
BuildRequires:	glade
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	valadoc
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
This library aims to create a useful set of Gtk widgets for creating and
interacting with customized musical instruments.

%files
%doc README.md
%doc %{_datadir}/gtk-doc/html/gtkmusic
%license COPYING
%{_datadir}/glade/catalogs/gtkmusic-catalog.xml
%{_datadir}/glade/pixmaps/hicolor/*x*/actions/widget-gtkmusic-*.png

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries
Recommends:	%{name} = %{EVRD}

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkMusic-%{api}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	gtkmusic-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%{_datadir}/gir-1.0/GtkMusic-%{api}.gir
%{_datadir}/vala/vapi/gtkmusic-%{api}.vapi
%{_includedir}/gtkmusic-%{api}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/gtkmusic.pc

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}
sed -i "/gitversion/d" meson.build

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2797 |21cr|libgweather2-2.30.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libgweather
%define major 1
%define libname %mklibname gweather %{major}
%define develname %mklibname -d gweather %{major}
%define olddevelname %mklibname -d gnome-applets

Summary:	GNOME Weather applet library
Name:		libgweather2
Version:	2.30.3
Release:	14
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{oname}/%{oname}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	intltool
BuildRequires:	libxml2-utils
#gw libtool dep:
BuildRequires:	pkgconfig(dbus-glib-1)
Conflicts:	gnome-applets < 2.21.3
Conflicts:	%{oname}

%description
This is a library to provide Weather data to the GNOME panel applet.

%package -n %{libname}
Group:		System/Libraries
Summary:	GNOME Weather applet library

%description -n %{libname}
This is a library to provide Weather data to the GNOME panel applet.

%package -n %{develname}
Group:		Development/C
Summary:	GNOME Weather applet library
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{olddevelname} < 2.21.3

%description -n %{develname}
This is a library to provide Weather data to the GNOME panel applet.

%prep
%setup -q -n %{oname}-%{version}

%build
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{oname}
for xmlfile in %{buildroot}%{_datadir}/%{oname}/Locations.*.xml; do
echo "%lang($(basename $xmlfile|sed -e s/Locations.// -e s/.xml//)) $(echo $xmlfile | sed s!%{buildroot}!!)" >> %{oname}.lang
done

%preun
%preun_uninstall_gconf_schemas gweather


%files -f %{oname}.lang
%doc AUTHORS NEWS
%{_sysconfdir}/gconf/schemas/gweather.schemas
%dir %{_datadir}/%{oname}
%{_datadir}/%{oname}/locations.dtd
%{_datadir}/%{oname}/Locations.xml
%{_datadir}/icons/gnome/*/status/weather*

%files -n %{libname}
%{_libdir}/libgweather.so.%{major}*

%files -n %{develname}
%doc ChangeLog
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_datadir}/gtk-doc/html/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2798 |21cr|libhangul-0.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname hangul %{major}
%define devname %mklibname -d hangul

Summary:	A generalized and portable library for hangul
Name:		libhangul
Version:	0.1.0
Release:	7
License:	LGPLv2+
Group:		System/Internationalization
Url:		http://kldp.net/projects/hangul/
Source0:	http://kldp.net/frs/download.php/4618/%{name}-%{version}.tar.gz

%description
libhangul is a generalized and portable library for processing hangul.

%files -f %{name}.lang
%{_bindir}/hangul
%{_datadir}/libhangul

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Main libhangul library
Group:		System/Internationalization

%description -n %{libname}
libhangul is a generalized and portable library for processing hangul.

%files -n %{libname}
%{_libdir}/libhangul.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_includedir}/hangul-1.0/hangul.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/libhangul.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2799 |21cr|libheif-1.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname heif %{major}
%define devname %mklibname heif -d

Summary:	libheif is a ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
Name:		libheif
Version:	1.12.0
Release:	1
License:	LGPLv2 and GPLv2
Group:		System/Libraries
Url:		http://www.libheif.org
Source0:	https://github.com/strukturag/libheif/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(libde265)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x265)
Requires:	libde265

%description
libheif is an ISO/IEC 23008-12:2017 HEIF file format decoder and encoder.

HEIF is a new image file format employing HEVC (h.265) image coding for the
best compression ratios currently possible.

libheif makes use of libde265 for the actual image decoding and x265 for
encoding. Alternative codecs for, e.g., AVC and JPEG can be provided as
plugins.

%files
%doc README.md
%{_bindir}/*
%{_datadir}/mime/packages/avif.xml
%{_datadir}/mime/packages/heif.xml
%{_datadir}/thumbnailers/heif.thumbnailer
%{_libdir}/gdk-pixbuf-*/*/loaders/libpixbufloader-heif.so
%{_mandir}/man1/heif-*.1*

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
%{libname} contains the libraries for %{name}.

%files -n %{libname}
%doc README.md
%{_libdir}/%{name}.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc README.md
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

#-------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -Wstrict-aliasing=0
%configure --disable-static
%make

%install
%makeinstall_std
find %{buildroot} -name '*.*a' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2800 |21cr|libhoard-3.13-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname hoard %{major}
%define devname %mklibname hoard -d

Summary:	The Hoard Memory Allocator
Name:		libhoard
Version:	3.13
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.hoard.org/
Source0:	https://github.com/emeryberger/Hoard/releases/download/%{version}/hoard-release.tar.gz?/libhoard-%{version}.tar.gz
Patch0:		libhoard-3.13-versioning.patch

%description
The Hoard memory allocator is a fast, scalable, and memory-efficient memory
allocator for Linux, Solaris, Mac OS X, and Windows. Hoard is a drop-in
replacement for malloc that can dramatically improve application performance,
especially for multithreaded programs running on multiprocessors and multicore
CPUs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A fast, scalable, and memory-efficient memory allocator
Group:		System/Libraries

%description -n %{libname}
The Hoard memory allocator is a fast, scalable, and memory-efficient memory
allocator for Linux, Solaris, Mac OS X, and Windows. Hoard is a drop-in
replacement for malloc that can dramatically improve application performance,
especially for multithreaded programs running on multiprocessors and multicore
CPUs.

%files -n %{libname}
%doc doc NEWS README* THANKS
%{_libdir}/libhoard.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libhoard
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	hoard-devel = %{EVRD}

%description -n %{devname}
This package contains development files for libhoard.

%files -n %{devname}
%{_libdir}/libhoard.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Hoard

cp -pf src/GNUmakefile{,.orig}
perl -pi -e 's/-O3/%{optflags}/g' src/GNUmakefile

%build

%ifarch x86_64
%make_build -C src Linux-gcc-x86_64 CXX=g++
%endif

%ifarch %{ix86}
%make_build -C src Linux-gcc-x86 CXX=g++
%endif

%ifarch aarch64
%make_build -C src Linux-gcc-aarch64 CXX=g++
%endif

%install
install -d %{buildroot}%{_libdir}
install -m0755 src/libhoard.so.%{major} %{buildroot}%{_libdir}
ln -s libhoard.so.%{major} %{buildroot}%{_libdir}/libhoard.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2801 |21cr|libhome-0.10.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define pmajor 2
%define libname %mklibname home %{major}
%define libproxy %mklibname nss_home_proxy %{pmajor}
%define devname %mklibname home -d

Summary:	A library providing a getpwnam() emulation
Name:		libhome
Version:	0.10.2
Release:	14
License:	GPLv2+
Group:		System/Libraries
Url:		http://pll.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/pll//%{name}-%{version}.tar.gz
Patch0:		libhome-0.10.1-DESTDIR.diff
Patch1:		libhome-0.10.2-fix-link.patch
Patch2:		libhome-0.10.2-db5.patch
BuildRequires:	groff-for-man
BuildRequires:	libtool
BuildRequires:	db-devel
BuildRequires:	mysql-devel
BuildRequires:	openldap-devel
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(openssl)

%description
libhome is a library providing a getpwnam() emulation. It support MySQL,
Open LDAP 2 or system /etc/passwd frontend. It's intended to replace getpwnam
within a system daemons who needs user authentification or identification when
the users are listed on foreign servers.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library providing a getpwnam() emulation
Group:		System/Libraries

%description -n %{libname}
libhome is a library providing a getpwnam() emulation. It support MySQL,
Open LDAP 2 or system /etc/passwd frontend. It's intended to replace getpwnam
within a system daemons who needs user authentification or identification when
the users are listed on foreign servers.

%files -n %{libname}
%doc AUTHORS COPYING.LIB NEWS README
%{_libdir}/libhome.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libproxy}
Summary:	A library providing a getpwnam() emulation
Group:		System/Libraries
Conflicts:	%{_lib}home1 < 0.10.2-10

%description -n %{libproxy}
libhome is a library providing a getpwnam() emulation. It support MySQL,
Open LDAP 2 or system /etc/passwd frontend. It's intended to replace getpwnam
within a system daemons who needs user authentification or identification when
the users are listed on foreign servers.

%files -n %{libproxy}
%doc AUTHORS COPYING.LIB NEWS README
%{_libdir}/libnss_home_proxy.so.%{pmajor}*

#----------------------------------------------------------------------------

%package utils
Summary:	A library providing a getpwnam() emulation (utilities package)
Group:		System/Libraries

%description utils
libhome is a library providing a getpwnam() emulation. It support MySQL,
Open LDAP 2 or system /etc/passwd frontend. It's intended to replace getpwnam
within a system daemons who needs user authentification or identification when
the users are listed on foreign servers.

This package contains various utilities provided by libhome.

%files utils
%config(noreplace) %{_sysconfdir}/home.conf
%{_bindir}/home_finger
%{_bindir}/home_su
%{_sbindir}/home_proxy
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the libhome library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libproxy} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libhome is a library providing a getpwnam() emulation. It support MySQL),
Open LDAP 2 or system /etc/passwd frontend. It's intended to replace getpwnam
within a system daemons who needs user authentification or identification when
the users are listed on foreign servers.

This package contains the static libhome library and its header files.

%files -n %{devname}
%attr(0755,root,root) %{_bindir}/libhome.sh
%{_includedir}/home/
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type d -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%build
autoreconf
export CFLAGS="%{optflags} -DLDAP_DEPRECATED"
export CXXFLAGS="%{optflags} -DLDAP_DEPRECATED"
export LDFLAGS="%{ldflags} -lcrypt"

%configure \
	--with-conffile=%{_sysconfdir}/home.conf \
	--disable-static
%make

%install
install -d %{buildroot}%{_sysconfdir}

%makeinstall_std

install -m0640 home.conf %{buildroot}%{_sysconfdir}/home.conf

chmod 755 %{buildroot}%{_libdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2802 |21cr|libhttpseverywhere-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude libhttpseverywhere.*

%define major 0
%define api 0.8
%define libname %mklibname httpseverywhere %{api} %{major}
%define girname %mklibname httpseverywhere-gir %{api}
%define devname %mklibname httpseverywhere %{api} -d

Summary:	This library enables you to leverage HTTPSEverywhere
Name:		libhttpseverywhere
Version:	0.8.3
Release:	1
License:	LGPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/libhttpseverywhere
Source0:	https://github.com/GNOME/libhttpseverywhere/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libhttpseverywhere-0.8.3-meson.patch
Patch1:		libhttpseverywhere-0.8.3-vala.patch
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
This library enables you to leverage the power of HTTPSEverywhere to any
desktop-application you want.

%files
%doc README.md
%license LICENSE
%{_datadir}/%{name}

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries
Recommends:	%{name} = %{EVRD}

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Recommends:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/HTTPSEverywhere-%{api}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	httpseverywhere-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%doc README.md
%license LICENSE
%{_datadir}/vala/vapi/httpseverywhere-%{api}.deps
%{_datadir}/vala/vapi/httpseverywhere-%{api}.vapi
%{_includedir}/httpseverywhere-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/httpseverywhere-%{api}.pc

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2803 |21cr|libid3-1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define libname	%mklibname id3_ %{major}
%define develname %mklibname -d id3_ %{major}

Summary:	ID3 Parsing Library
Name:		libid3
Version:	1.2
Release:	9
Group:		System/Libraries
License:	BSD-like
URL:		http://www.tangent.org/
Source0:	http://download.tangent.org/%{name}-%{version}.tar.bz2
Patch0:		libid3-1.2-soversion.patch

%description
Library for parsing ID3 tags from files or sections of memory.

%package -n	%{libname}
Summary:	ID3 Parsing Library
Group:		System/Libraries
Obsoletes:	%{_lib}id3_0 < %{version}-%{release}

%description -n	%{libname}
Library for parsing ID3 tags from files or sections of memory.

%package -n	%{develname}
Summary:	Static library and header files for the ID3 Parsing Library
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Conflicts:	libid3_3.8-devel
Provides:	lib%{name}_%{major}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{_lib}id3_0-devel < %{version}-%{release}

%description -n	%{develname}
Library for parsing ID3 tags from files or sections of memory.

This package contains the static libid3 library and its header
files.

%package	tools
Summary:	Tools using the ID3 Parsing Library
Group:		Sound

%description	tools
This package contains various files using the ID3 Parsing Library.

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure  --disable-static
%make

# make the man pages
pod2man Docs/libID3.pod > libID3.3
pod2man Docs/tagpuller.pod > tagpuller.1

%install
install -d %{buildroot}%{_mandir}/man{1,3}

%makeinstall_std

install -m0755 tests/id3test %{buildroot}%{_bindir}/

install -m0644 libID3.3 %{buildroot}%{_mandir}/man3/
install -m0644 tagpuller.1 %{buildroot}%{_mandir}/man1/

%files -n %{libname}
%doc COPYING ChangeLog README TODO
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/*

%files tools
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2804 |21cr|libident-0.32-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname	%mklibname ident %{major}
%define develname %mklibname -d ident

Summary:	New LibIdent C library
Name:		libident
Version:	0.32
Release:	5
Group:		System/Libraries
License:	Public Domain
URL:		http://www.remlab.net/libident/
Source0:	http://www.remlab.net/files/libident/libident-%{version}.tar.bz2
Source1:	xinetd.identtest

%description
LibIdent is a small C library for interfacing with RFC 1413 Identification
protocol servers, which are used for identifying users. LibIdent supports both
IPv4 and IPv6 addresses transparently.

It is meant to be used by daemons to try to authenticate users using the Ident
protocol. For this to work, users need to have an Ident server running on the
system from which they are connected.

%package -n	%{libname}
Summary:	New LibIdent C library
Group:		System/Libraries

%description -n	%{libname}
LibIdent is a small C library for interfacing with RFC 1413 Identification
protocol servers, which are used for identifying users. LibIdent supports both
IPv4 and IPv6 addresses transparently.

It is meant to be used by daemons to try to authenticate users using the Ident
protocol. For this to work, users need to have an Ident server running on the
system from which they are connected.

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	ident-devel = %{version}-%{release}
Requires:	%{libname} >= %{version}-%{release}

%description -n	%{develname}
LibIdent is a small C library for interfacing with RFC 1413 Identification
protocol servers, which are used for identifying users. LibIdent supports both
IPv4 and IPv6 addresses transparently.

It is meant to be used by daemons to try to authenticate users using the Ident
protocol. For this to work, users need to have an Ident server running on the
system from which they are connected.

This package contains libraries and header files for developing applications
that use %{name}.

%package	tools
Summary:	A small daemon that can be used to test Ident servers
Group:		System/Servers

%description	tools
in.identtestd is a small daemon (to be started from inetd) that does an ident
lookup on you if you telnet into it. Can be used to verify that your Ident
server is working correctly.

%prep

%setup -q
for f in ident.3 README ChangeLog AUTHORS NEWS COPYING; do
	iconv -f ISO-8859-1 -t UTF-8 $f -o $f.new && mv $f.new $f
done

%build
autoreconf -fis
%serverbuild

# to prevent nasty ipv6 surprises
export CFLAGS="$CFLAGS -D_GNU_SOURCE"

%configure \
    --disable-static \
    --enable-testers

%make

%install
rm -rf %{buildroot}

%makeinstall_std

find %{buildroot} -name '*.la' -exec rm -f {} ';'
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/identtestd

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%post tools
if [ -x %{_sbindir}/xinetd ]; then
    /sbin/service xinetd condreload > /dev/null 2>&1 || :
fi

%postun tools
if [ $1 = 0 ]; then
    if [ -x %{_sbindir}/xinetd ]; then
	/sbin/service xinetd condreload > /dev/null 2>&1 || :
    fi
fi

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root,-)
%doc COPYING README AUTHORS ChangeLog NEWS
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/ident.3*

%files tools
%defattr(-,root,root,-)
%config(noreplace) %{_sysconfdir}/xinetd.d/identtestd
%{_sbindir}/in.identtestd
%{_mandir}/man8/in.identtestd.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2805 |21cr|libIDL-0.8.14-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_version	2
%define lib_major	0
%define lib_name	%mklibname IDL %{api_version} %{lib_major}
%define develname	%mklibname -d  IDL %{api_version}

Summary:	IDL parsing library
Name:		libIDL
Version:	0.8.14
Release:	14
URL:		http://orbit-resource.sf.net/
License:	LGPLv2+
Group:		System/Libraries
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2

BuildConflicts:	ORBit-devel < 0.5.10
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	pkgconfig(glib-2.0)

%description
libIDL is a small library for creating parse trees of CORBA v2.2
compliant Interface Definition Language (IDL) files, which is a
specification for defining interfaces which can be used between
different CORBA implementations.

%package -n %{lib_name}
Summary:	%{summary}
Group:		%{group}
Provides:	%{name} = %{version}-%{release}
Provides:	%{name}%{api_version} = %{version}-%{release}

%description -n %{lib_name}
libIDL is a small library for creating parse trees of CORBA v2.2
compliant Interface Definition Language (IDL) files, which is a
specification for defining interfaces which can be used between
different CORBA implementations.

%package -n %{develname}
Summary:	Header files and libraries needed for libIDL development
Group:		Development/C
Conflicts:	ORBit-devel < 0.5.10
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{name}%{api_version}-devel = %{version}-%{release}
Requires:	%{lib_name} = %{version}
Requires:	pkgconfig(glib-2.0)
Obsoletes:	%{mklibname -d  IDL 2 0} < 0.8.14-7

%description -n %{develname}
This package includes the header files and libraries needed for
developing or compiling programs using libIDL.

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%files -n %{lib_name}
%doc AUTHORS README NEWS BUGS ChangeLog
%{_libdir}/libIDL-%{api_version}.so.%{lib_major}*

%files -n %{develname}
%doc tstidl.c
%{_bindir}/libIDL-config-2
%{_includedir}/*
%{_infodir}/*.info*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2806 |21cr|libiio-0.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname iio %{major}
%define devname %mklibname -d iio

Name:          libiio
Version:       0.25
Release:       1
Summary:       Library for Industrial IO
License:       LGPLv2
URL:           https://analogdevicesinc.github.io/libiio/
Source0:       https://github.com/analogdevicesinc/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Patch0:        libiio-0.23-aarch64-build-workaround.patch
Group:         System/Libraries

BuildRequires: bison
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: flex
BuildRequires: pkgconfig(libserialport)
BuildRequires: libaio-devel
BuildRequires: pkgconfig(libusb)
BuildRequires: libxml2-devel
BuildRequires: graphviz
BuildRequires: pkgconfig(avahi-client)
BuildRequires: git-core
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildRequires: python3-sphinx_rtd_theme

%description
Library for interfacing with Linux IIO devices

libiio is used to interface to Linux Industrial Input/Output (IIO) Subsystem.
The Linux IIO subsystem is intended to provide support for devices that in some
sense are analog to digital or digital to analog converters (ADCs, DACs). This
includes, but is not limited to ADCs, Accelerometers, Gyros, IMUs, Capacitance
to Digital Converters (CDCs), Pressure Sensors, Color, Light and Proximity
Sensors, Temperature Sensors, Magnetometers, DACs, DDS (Direct Digital
Synthesis), PLLs (Phase Locked Loops), Variable/Programmable Gain Amplifiers
(VGA, PGA), and RF transceivers.

%package utils
Summary: Utilities for Industrial IO
Requires: %{libname} = %{EVRD}

%description utils
Utilities for accessing IIO using libiio

%package -n %{libname}
Summary: Development package for %{name}

%description -n %{libname}
Library for Industrial IO

%package -n %{devname}
Summary: Development package for %{name}
Requires: %{libname} = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%package doc
Summary: Development documentation for %{name}

%description doc
Documentation for development with %{name}.

%package -n python3-iio
Summary: Python3 bindings for Industrial IO (libiio)
Requires: %{libname} = %{EVRD}

%description -n python3-iio
Python 3 bindings for Industrial IO

%prep
%autosetup -p1
sed -i 's/${LIBIIO_VERSION_MAJOR}-doc//' CMakeLists.txt

%build
%cmake -DPYTHON_BINDINGS=on -DWITH_DOC=on .
%make_build

%install
%make_install -C build

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

%files utils
%license COPYING.txt
%{_udevrulesdir}/90-libiio.rules
%{_bindir}/iio_*
%{_sbindir}/iiod

%files -n %{devname}
%{_includedir}/iio.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{name}.so

%files doc
%doc %{_docdir}/%{name}

%files -n python3-iio
%{python3_sitelib}/__pycache__/iio*
%{python3_sitelib}/iio*
%{python3_sitelib}/pylibiio*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2807 |21cr|libilbc-3.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 3
%define libname %mklibname ilbc %{major}
%define libnamedev %mklibname ilbc -d
%define debug_package %nil

Summary:	Internet Low Bitrate Codec (iLBC) library
Name:		libilbc
Version:	3.0.4
Release:	2
License:	BSD-style
Group:		System/Libraries
URL:		https://github.com/dekkers/libilbc
Source0:	https://github.com/TimothyGu/libilbc/archive/v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	abseil-cpp-devel

%description
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust
voice communication over IP. The codec is designed for narrow band speech and
results in a payload bit rate of 13.33 kbit/s with an encoding frame length of
30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables
graceful speech quality degradation in the case of lost frames, which occurs in
connection with lost or delayed IP packets.

%package -n	%{libname}
Summary:	Internet Low Bitrate Codec (iLBC) library
Group:		System/Libraries

%description -n	%{libname}
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust
voice communication over IP. The codec is designed for narrow band speech and
results in a payload bit rate of 13.33 kbit/s with an encoding frame length of
30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables
graceful speech quality degradation in the case of lost frames, which occurs in
connection with lost or delayed IP packets.

%package -n %{libnamedev}
Summary:	Development and header files for the iLBC library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description -n %{libnamedev}
iLBC (internet Low Bitrate Codec) is a FREE speech codec suitable for robust
voice communication over IP. The codec is designed for narrow band speech and
results in a payload bit rate of 13.33 kbit/s with an encoding frame length of
30 ms and 15.20 kbps with an encoding length of 20 ms. The iLBC codec enables
graceful speech quality degradation in the case of lost frames, which occurs in
connection with lost or delayed IP packets.

%prep

%autosetup -p1
%if "%{_lib}" != "lib64"
# Let's not overreach ;)
sed -i -e 's,lib64,%{_lib},g' CMakeLists.txt
%endif

%build
%set_build_flags
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

rm -f %{buildroot}%{_libdir}/*.*a

%files -n %{libname}
%doc COPYING
%{_libdir}/libilbc.so.%{major}*

%files -n %{libnamedev}
%doc %{_docdir}/libilbc/*.md
%{_bindir}/ilbc_test
%{_includedir}/*.h
%{_libdir}/libilbc.so
%{_libdir}/pkgconfig/libilbc.pc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2808 |21cr|libimagequant-2.15.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname imagequant %{major}
%define devname %mklibname imagequant -d

Name:		libimagequant
Version:	2.15.1
Release:	1
Summary:	Palette quantization library
Group:		System/Libraries
License:	GPLv3+ and MIT
URL:		https://github.com/ImageOptim/libimagequant
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
# Fix shared library permissions
Patch0:		libimagequant_solibperm.patch
BuildRequires:	gomp-devel

%description
Small, portable C library for high-quality conversion of RGBA images to 8-bit
indexed-color (palette) images.

#---------------------------------------------------------------------
%package -n %{libname}
Summary:	Development files for %{name}
Group:		System/Libraries

%description -n %{libname}
Small, portable C library for high-quality conversion of RGBA images to 8-bit
indexed-color (palette) images.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#---------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc README.md CHANGELOG
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/imagequant.pc

#---------------------------------------------------------------------

%prep
%autosetup -p1


%build

%configure --with-openmp
%make


%install
%makeinstall_std

# Don't ship static library
rm -f %{buildroot}%{_libdir}/%{name}.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2809 |21cr|libime-1.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define	libname %mklibname ime %{major}
%define devname	%mklibname ime -d

Summary(ru_RU.UTF-8): Это библиотека для поддержки реализации стандартного метода ввода
Summary: This is a library to support generic input method implementation
Name:    libime  
Version: 1.1.5
Release: 1
License: LGPLv2+ and MIT and BSD
Group:   Development/C
URL:     https://github.com/fcitx/libime

Source:  https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}_dict.tar.xz

Patch1: 0001-Fix-soversion-cmake-1.1.3.patch 

BuildRequires: cmake
BuildRequires: extra-cmake-modules
BuildRequires: boost-devel
BuildRequires: fcitx5-devel

Requires: %{name}-data = %{EVRD}

%description
This is a library to support generic input method implementation.

%description -l ru_RU.UTF-8
Это библиотека для поддержки реализации стандартного метода ввода

%files
# metapackage

#------------------------------------------------------------------

%package data
Summary(ru_RU.UTF-8): Файлы данных для %{name}
Summary:   Data files of %{name}
Group: Development/C
BuildArch: noarch

%description data
This package provides shared data for %{name}.

%description -l ru_RU.UTF-8 data
Этот пакет предоставляет разделяемые ресурсы для %{name}.

%files data
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/zh_CN.lm
%{_libdir}/%{name}/zh_CN.lm.predict
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.dict

#------------------------------------------------------------------

%package -n %{libname}
Summary(ru_RU.UTF-8): Предоставляет библиотеки для поддержки реализации стандартного метода ввода 
Summary:  Provide libraries to support generic input method implementation

%description -n %{libname}
Provide libraries to support generic input method implementation

%description -l ru_RU.UTF-8 -n %{libname}
Предоставляет библиотеки для поддержки реализации
стандартного метода ввода 

%files -n %{libname}
%license LICENSES/LGPL-2.1-or-later.txt src/libime/core/kenlm/LICENSE
%doc README.md 
%{_libdir}/libIMECore.so.%{major}
%{_libdir}/libIMEPinyin.so.%{major}
%{_libdir}/libIMETable.so.%{major}
# upstream's soname and soversion dont match 
# libxxx.so.X* won't work
%{_libdir}/libIMECore.so.%{major}.*
%{_libdir}/libIMEPinyin.so.%{major}.*
%{_libdir}/libIMETable.so.%{major}.*

#------------------------------------------------------------------

%package -n %{devname}
Summary(ru_RU.UTF-8): Файлы разработчика для %{name}
Summary:  Development files for %{name}
Group: Development/C
Requires: %{name}-data = %{EVRD}
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}

%description -l ru_RU.UTF-8 -n %{devname}
Этот пакет предоставляет файлы разработчика для %{name}

%files -n %{devname}
%license LICENSES/LGPL-2.1-or-later.txt src/libime/core/kenlm/LICENSE
%doc README.md 
%{_libdir}/libIMECore.so
%{_libdir}/libIMEPinyin.so
%{_libdir}/libIMETable.so
%{_libdir}/cmake/LibIME*
%{_includedir}/LibIME/

#------------------------------------------------------------------

%package tools
Summary(ru_RU.UTF-8): Набор инструментов для libime
Summary: Toolkit for libime
Group:   Development/C

%description tools
This package provides toolkit for libime.

%description -l ru_RU.UTF-8 tools
Этот пакет предоставляет набор инструментов для libime.

%files tools
%license LICENSES/LGPL-2.1-or-later.txt src/libime/core/kenlm/LICENSE
%doc README.md 
%{_bindir}/%{name}_history
%{_bindir}/%{name}_pinyindict
%{_bindir}/%{name}_prediction
%{_bindir}/%{name}_slm_build_binary
%{_bindir}/%{name}_tabledict
%{_bindir}/%{name}_migrate_fcitx4_pinyin
%{_bindir}/%{name}_migrate_fcitx4_table

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DCMAKE_SKIP_RPATH=OFF
%make_build -j1

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2810 |21cr|libinklevel-0.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname inklevel %{major}
%define devname %mklibname inklevel -d

Summary:	Library to determine the ink levels of HP and Epson inkjets
Name:		libinklevel
Version:	0.9.5
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://libinklevel.sourceforge.net/
Source0:	http://download.sourceforge.net/sourceforge/libinklevel/libinklevel-%{version}.tar.gz
# aarch64 not have sys/ioctl.h
Patch1:		libinklevel-ioctl.patch
BuildRequires:	makedepend
BuildRequires:	ieee1284-devel
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
libinklevel is a library for checking the ink level of your printer on
a system which runs Linux. It supports printers attached via parallel
port or usb.

Most current HP inkjets and several Epson inkjets are supported.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to determine the ink levels of HP and Epson inkjets
Group:		System/Libraries

%description -n %{libname}
libinklevel is a library for checking the ink level of your printer on
a system which runs Linux. It supports printers attached via parallel
port or usb.

Most current HP inkjets and several Epson inkjets are supported.

%files -n %{libname}
%doc ChangeLog NEWS AUTHORS
%{_libdir}/libinklevel.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and links to compile against the "%{libname}" library
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains all files which one needs to compile programs using
the "%{libname}" library.

%files -n %{devname}
%{_libdir}/libinklevel.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%ifnarch aarch64
# aarch64 not have sys/ioctl.h
%patch1 -p1 -R
%endif

%build
autoreconf -fi
%configure
%make CFLAGS="%{optflags} -fPIC"

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.a
rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2811 |21cr|libinsane-1.0.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname insane %{major}
%define libgobject %mklibname insane_gobject %{major}
%define girname %mklibname insane-gir 1.0
%define devname %mklibname insane -d
%define devgobject %mklibname insane_gobject -d

Name:           libinsane
Version:        1.0.10
Release:        3
Summary:        Cross-platform access to image scanners
Group:          Graphics
License:        LGPL-3.0-or-later
URL:            https://doc.openpaper.work/libinsane/latest/
Source0:        https://gitlab.gnome.org/World/OpenPaperwork/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  gcc
BuildRequires:  pkgconfig(sane-backends)
BuildRequires:  doxygen
BuildRequires:  pkgconfig(cunit)
BuildRequires:  valgrind

%description
Libinsane is the library to access scanners on both Linux and Windows. It's
cross-platform, cross-programming languages, cross-scanners :-). It takes care
of all the quirks of all the platforms and scanners.
#------------------------------------------------------------------
%package -n %{libname}
Summary:	Cross-platform access to image scanners
Group:		System/Libraries

%description -n %{libname}
Libinsane is the library to access scanners on both Linux and Windows. It's
cross-platform, cross-programming languages, cross-scanners :-). It takes care
of all the quirks of all the platforms and scanners.

%files -n %{libname}
%{_libdir}/libinsane.so.%{major}*
#----------------------------------------------------
%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Libinsane-1.0.typelib
#----------------------------------------------------
%package -n %{devname}
Summary:	Development files for libinsane
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development libraries and header files for libinsane.

%files -n %{devname}
%doc doc
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------

%package -n %{libgobject}
Summary:	GObject access to image scanners
Group:		System/Libraries
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	gobject-introspection-devel
BuildRequires:	gtk-doc
Provides:	%{name}-gobject = %{EVRD}

%description -n %{libgobject}
Libinsane is the library to access scanners on both Linux and Windows. It's
cross-platform, cross-programming languages, cross-scanners :-). It takes care
of all the quirks of all the platforms and scanners.

This package provides GObject wrappers around the main library.

%files -n %{libgobject}
%{_libdir}/%{name}_gobject.so.%{major}*

#----------------------------------------------------

%package -n %{devgobject}
Summary:	Development files for libinsane-gobject
Group:		Graphics
Requires:	%{devname} = %{EVRD}
Requires:	%{libgobject} = %{EVRD}
Provides:	%{name}-gobject-devel = %{EVRD}

%description -n %{devgobject}
Development libraries and header files for libinsane-gobject.

%files -n %{devgobject}
%{_includedir}/%{name}-gobject
%{_libdir}/%{name}_gobject.so
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/Libinsane-1.0.gir
%{_datadir}/gtk-doc

#----------------------------------------------------

%package vala
Summary:	Vala bindings for libinsane
Group:		Graphics
BuildRequires:	vala
Requires:	%{name}-gobject-devel = %{EVRD}

%description vala
Vala bindings for libinsane.

%files vala
%{_datadir}/vala/vapi/%{name}.deps
%{_datadir}/vala/vapi/%{name}.vapi

#----------------------------------------------------
%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2812 |21cr|libint2-2.7.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We run out of memory on the ARM builders with LTO
%ifarch %{arm}
%define _lto_cflags %{nil}
%endif

# RPM macro directory
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)

# The source code the libint compiler generates is already very highly
# optimized.  Further optimization done by the compiler does not
# increase performance, but it just takes a *lot* longer to compile.
# We use -O2 for the compiler and -O1 for the library (these are given
# in configure). The common flags are
%global commonflags %(echo %{optflags} | sed "s|-O2||g")
%global optflags %commonflags -O1

# API version provided. Increment this whenever you change the configure time flags.
%global apiversion 0

%global _fmoddir %{_libdir}/gfortan/modules

Name:		libint2
Version:	2.7.2
Release:	3
Summary:	A library for efficient evaluation of electron repulsion integrals
Group:		System/Libraries
License:	GPLv2+
URL:		https://github.com/evaleev/libint

# Compiler sources
Source0:	https://github.com/evaleev/libint/archive/v%{version}.tar.gz
# The library sources, which are generated by the compiler. The
# compiler needs a rather recent C++11 compiler to build. Regardless
# of the C++ compiler used, the generated sources are
# identical. However, EPEL doesn't have a recent enough C++ compiler
# to be able to generate the sources. Also, if the sources are
# generated on the same run, debuginfo will turn up missing from the
# RPM (BZ #9619635). For this reason pregenerated sources are used. To
# generate the sources, run the generate-sources.sh script.
Source1:	libint-%{version}.tgz
# The programmers' manual is compiled from the LaTeX source by generate-sources.sh
Source2:	progman.pdf
# and the html documentation is extracted from the source code as well
Source3:	libint-%{version}-classdoc.tar.bz2
Source5:	generate-sources.sh
Patch0:		libint-versioning.patch

Provides:	libint2(api)%{?_isa} = %{apiversion}

BuildRequires:  cmake
BuildRequires:  ninja
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  gcc-gfortran
BuildRequires:  boost-devel
BuildRequires:  gmpxx-devel
BuildRequires:  mpfr-devel
BuildRequires:  python3-devel
BuildRequires:  eigen3-devel

%description
LIBINT computes the Coulomb and exchange integrals, which in electronic
structure theory are called electron repulsion integrals (ERIs). This is by
far the most common type of integrals in molecular structure theory.

LIBINT uses recursive schemes that originate in seminal Obara-Saika method and
Head-Gordon and Pople’s variation thereof. The idea of LIBINT is to optimize
computer implementation of such methods by implementing an optimizing compiler
to generate automatically highly-specialized code that runs well on
super-scalar architectures.

#-------------------------------------------------------
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%package -n %{libname}
Summary:	A library for efficient evaluation of electron repulsion integrals
Group:		System/Libraries

%description -n %{libname}
LIBINT computes the Coulomb and exchange integrals, which in electronic
structure theory are called electron repulsion integrals (ERIs). This is by
far the most common type of integrals in molecular structure theory.

LIBINT uses recursive schemes that originate in seminal Obara-Saika method and
Head-Gordon and Pople’s variation thereof. The idea of LIBINT is to optimize
computer implementation of such methods by implementing an optimizing compiler
to generate automatically highly-specialized code that runs well on
super-scalar architectures.

%files -n %{libname}
%doc LICENSE COPYING
%{_libdir}/libint*.so.%{major}*

#-------------------------------------------------------
%package doc
Summary:	Documentation for libint
Requires:	%{libname} = %{EVRD}

%description doc
This package contains a programmer's manual and doxygen documentation
for the classes.

%files doc
%doc doc/progman.pdf html

#-------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for libint
Requires:	%{libname} = %{EVRD}
# For dir ownership
Requires:	cmake
Requires:	boost-devel
Requires:	gmpxx-devel
Requires:	mpfr-devel
Requires:   eigen3-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development headers and libraries for libint.

%files -n %{devname}
%{macrosdir}/macros.libint2
%{_libdir}/cmake/libint2/
%{_includedir}/libint2/
%{_includedir}/libint2.h
%{_includedir}/libint2.hpp
%{_libdir}/*.so
%{_libdir}/pkgconfig/libint2.pc
%{_fmoddir}/libint_f.mod

#-------------------------------------------------------

%prep
%setup -q -T -b1 -n libint-%{version}

# Copy programmers manual and extract the html documentation
cp -p %{SOURCE2} doc
tar jxf %{SOURCE3}

%apply_patches

# fix install .pc
sed -i 's|lib/pkgconfig|%{_lib}/pkgconfig|' CMakeLists.txt

%build
%cmake \
	-DENABLE_FORTRAN=ON \
	-DENABLE_MPFR=ON \
	-DLIBINT2_INSTALL_LIBDIR=%{_libdir} \
	-DLIBINT2_INSTALL_CMAKEDIR=%{_libdir}/cmake/libint2 \
	-GNinja


%ninja_build

%install
%ninja_install -C build

find %{buildroot} -name *.la -delete
# Make sure libraries are executable (otherwise they are not stripped)
find %{buildroot} -name *.so.*.* -exec chmod 755 {} \;
# Get rid of the basis set files that ship with libint
find %{buildroot}%{_datadir}/libint -name \*.g94 -delete

# Create macro file
mkdir -p %{buildroot}%{macrosdir}
cat > %{buildroot}%{macrosdir}/macros.libint2 << EOF
# Current version of libint2 is
%_libint2_apiversion %{apiversion}
EOF

# Move module file to the correct location
mkdir -p %{buildroot}%{_fmoddir}
mv %{buildroot}%{_includedir}/libint_f.mod %{buildroot}%{_fmoddir}/

# fix install cmake files an

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2813 |21cr|libircclient-1.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define devname %mklibname -d -s ircclient

Summary:	C library to create IRC clients
Name:		libircclient
Version:	1.10
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.ulduzsoft.com/libircclient/
Source0:	http://downloads.sourceforge.net/libircclient/%{name}-%{version}.tar.gz
Patch0:		libircclient-1.5-include-rfc.patch
BuildRequires:	pkgconfig(openssl)

%description
libircclient is a small but powerful library that implements the client-server
IRC protocol. It is designed to be small, fast, portable and compatible to RFC
standards, and most IRC clients. libircclient features include:

 * Full multi-threading support.
 * Single threads handles all the IRC processing.
 * Support for single-threaded applications, and socket-based
   applications, which use select()
 * Synchronous and asynchronous interfaces.
 * CTCP support with optional build-in reply code.
 * Flexible DCC support, including both DCC chat, and DCC file transfer.
 * Can both initiate and react to initiated DCC.
 * Can accept or decline DCC sessions asynchronously.
 * Plain C interface and implementation (possible to use from C++ code,
   obviously)
 * Compatible with RFC 1459 and most IRC clients.
 * Good documentation and examples available.

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	C library to create IRC clients
Group:		Development/C
Provides:	%{name}-static-devel = %{EVRD}

%description -n	%{devname}
libircclient is a small but powerful library that implements the client-server
IRC protocol. It is designed to be small, fast, portable and compatible to RFC
standards, and most IRC clients. libircclient features include:

 * Full multi-threading support.
 * Single threads handles all the IRC processing.
 * Support for single-threaded applications, and socket-based
   applications, which use select()
 * Synchronous and asynchronous interfaces.
 * CTCP support with optional build-in reply code.
 * Flexible DCC support, including both DCC chat, and DCC file transfer.
 * Can both initiate and react to initiated DCC.
 * Can accept or decline DCC sessions asynchronously.
 * Plain C interface and implementation (possible to use from C++ code,
   obviously)
 * Compatible with RFC 1459 and most IRC clients.
 * Good documentation and examples available.

%files -n %{devname}
%doc LICENSE README Changelog THANKS
%{_libdir}/*.a
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .rfc

%build
%configure \
	--enable-openssl \
	--enable-ipv6
%make

%install
mkdir -p %{buildroot}%{_libdir}
cp src/%{name}.a %{buildroot}%{_libdir}/

mkdir -p %{buildroot}%{_includedir}
cp include/*.h %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2814 |21cr|libisoburn-1.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname isoburn %{major}
%define devname %mklibname isoburn -d

Summary:	Enables creation and expansion of ISO-9660 filesystems
Name:		libisoburn
Version:	1.5.4
Release:	1
Group:		System/Libraries
License:	GPLv2+
Url:		http://libburnia-project.org
Source0:	http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz
Source1:	http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz.sig
BuildRequires:	doxygen
BuildRequires:	acl-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libburn-1) >= %{version}
BuildRequires:	pkgconfig(libisofs-1) >= %{version}
BuildRequires:	pkgconfig(zlib)

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CD-ROM image access library - shared library
Group:		System/Libraries

%description -n %{libname}
Shared libraries of libisoburn for software using it.

%description
libisoburn is a frontend for libraries libburn and libisofs which
enables creation and expansion of ISO-9660 filesystems on all CD/DVD/BD
media supported by libburn.
This includes media like DVD+RW, which do not support multi-session management
on media level and even plain disk files or block devices.
The price for that is thorough specialization on data files
in ISO-9660 filesystem images. So libisoburn is not suitable for audio
(CD-DA) or any other CD layout which does not entirely consist
of ISO-9660 sessions.

%files -n %{libname}
%{_libdir}/%{name}*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	CD-ROM image access library - development headers
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Provides:	libisoburn-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The libisoburn-devel package contains libraries and header files for
developing applications that use libisoburn.

%files -n %{devname}
%doc AUTHORS COPYING COPYRIGHT README ChangeLog
%doc doc/html
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}*.pc

#----------------------------------------------------------------------------

%package -n xorriso-isoburn
Summary:	ISO-9660 and Rock Ridge image manipulation tool
Group:		Archiving/Cd burning
URL:		http://scdbackup.sourceforge.net/xorriso_eng.html
Requires:	%{libname} = %{EVRD}

%description -n xorriso-isoburn
Xorriso is a program which copies file objects from POSIX compliant
filesystems into Rock Ridge enhanced ISO-9660 filesystems and allows
session-wise manipulation of such filesystems. It can load management
information of existing ISO images and it writes the session results
to optical media or to filesystem objects. Vice versa xorriso is able
to copy file objects out of ISO-9660 filesystems.

Filesystem manipulation capabilities surpass those of mkisofs. Xorriso
is especially suitable for backups, because of its high fidelity of
file attribute recording and its incremental update sessions. Optical
supported media: CD-R, CD-RW, DVD-R, DVD-RW, DVD+R, DVD+R DL, DVD+RW,
DVD-RAM, BD-R and BD-RE.

%files -n xorriso-isoburn
%{_bindir}/osirrox
%{_bindir}/xorrecord
%{_bindir}/xorriso
%{_bindir}/xorrisofs
%{_bindir}/xorriso-tcltk
%{_bindir}/xorriso-dd-target
%{_mandir}/man1/xorr*.1*
%{_infodir}/xorr*.info*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
touch NEWS

autoreconf -fi

%configure --disable-static
%make LIBS='-lpthread -lreadline'
doxygen doc/doxygen.conf

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2815 |21cr|libjaylink-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 0
%define libname %mklibname jaylink %major
%define devname %mklibname jaylink -d

Summary:	Library for SEGGER J-Link and compatible devices
Name:		libjaylink
Version:	0.3.1
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		https://gitlab.zapb.de/libjaylink/libjaylink
Source0:	https://gitlab.zapb.de/%{name}/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libusb-1.0)

%description
Library libjaylink is a shared library written in C to access SEGGER J-Link
and compatible devices.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary: Shared library of %{name}
Group: System/Libraries

%description -n %{libname}
Shared library of jaylink.

%files -n %{libname}
%doc AUTHORS README.md NEWS
%license COPYING
%{_libdir}/%{name}.so.%{major}*
%{_udevrulesdir}/60_%{name}.rules

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc HACKING
%{_includedir}/%{name}/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

sed -i 's/MODE="664", GROUP="plugdev"/TAG+="uaccess"/g' contrib/99-libjaylink.rules

%build
autoreconf -fi
%configure \
	--disable-static	\
	--disable-werror	\
	CFLAGS=-fno-strict-aliasing
%make

%install
%makeinstall_std
mkdir -p %{buildroot}/%{_udevrulesdir}/
cp contrib/99-%{name}.rules %{buildroot}/%{_udevrulesdir}/60_%{name}.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2816 |21cr|libjcat-0.1.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	gmajor 1.0
%define	libname %mklibname jcat %{major}
%define	girname %mklibname jcat-gir %{gmajor}
%define	devname %mklibname -d jcat

Summary:	Library for reading Jcat files
Name:		libjcat
Version:	0.1.14
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/hughsie/libjcat
Source0:	https://github.com/hughsie/libjcat/releases/download/%{version}/%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	help2man
BuildRequires:	gettext
BuildRequires:	gnutls
BuildRequires:	gobject-introspection
BuildRequires:	gtk-doc
BuildRequires:	meson >= 0.49.2
BuildRequires:	ninja
BuildRequires:	python3
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0) >= 2.45.8
BuildRequires:	pkgconfig(gnutls) >= 3.6.0
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(gpgme)
BuildRequires:	pkgconfig(json-glib-1.0) >= 1.1.1
BuildRequires:	pkgconfig(hogweed)

%description
This library allows reading and writing gzip-compressed JSON catalog files,
which can be used to store GPG, PKCS-7 and SHA-256 checksums for each file.
This provides equivalent functionality to the catalog files supported in
Microsoft Windows.

#-----------------------------------------------------------------------------

%package -n jcat-tool
Summary:	Standalone detached signature utility
Group:	Development/Other

%description -n jcat-tool
Standalone detached signature utility.

%files -n jcat-tool
%doc README.md LICENSE
%{_bindir}/jcat-tool
%{_datadir}/man/man1/jcat-tool.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary: Library for reading Jcat files
Group: System/Libraries

%description -n %{libname}
This library allows reading and writing gzip-compressed JSON catalog files,
which can be used to store GPG, PKCS-7 and SHA-256 checksums for each file.
This provides equivalent functionality to the catalog files supported in
Microsoft Windows.

%files -n %{libname}
%doc LICENSE NEWS
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for jcat
Group:	System/Libraries
Requires: %{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for jcat.

%files -n %girname
%doc LICENSE
%{_libdir}/girepository-1.0/Jcat-%{gmajor}.typelib

#-----------------------------------------------------------------------------

%package -n %{devname}
Group: Development/C
Summary: Development package for %{name}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	jcat-devel = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %devname
%doc %{_datadir}/gtk-doc/html/%{name}
%{_datadir}/gir-1.0/Jcat-%{gmajor}.gir
%{_includedir}/%{name}-1/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/jcat.pc
%{_datadir}/vala/vapi/jcat.{deps,vapi}

#-----------------------------------------------------------------------------

%package tests
Summary: Files for jcat installed tests

%description tests
Executable and data files for jcat installed tests.

%files tests
%doc README.md
%dir %{_libexecdir}/installed-tests/%{name}
%{_libexecdir}/installed-tests/%{name}/jcat-self-test
%{_libexecdir}/installed-tests/%{name}/colorhug/
%{_libexecdir}/installed-tests/%{name}/pki/
%dir %{_datadir}/installed-tests/%{name}
%{_datadir}/installed-tests/%{name}/*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%meson \
    -Dgtkdoc=true \
    -Dtests=true

%meson_build


%install
%meson_install


%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2817 |21cr|libjson0-compat-0.9-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname json-c

%define major 0
%define libname %mklibname json %{major}

Summary:	JSON implementation in C (old version of library)
Name:		libjson0-compat
Version:	0.9
Release:	9
License:	MIT
Group:		System/Libraries
Url:		http://oss.metaparadigm.com/%{oname}
Source0:	http://oss.metaparadigm.com/%{oname}/json-c-%{version}.tar.gz

%description
JSON-C implements a reference counting object model that allows you to
easily construct JSON objects in C, output them as JSON formatted
strings and parse JSON formatted strings back into the C
representation of JSON objects.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	JSON implementation in C
Group:		System/Libraries

%description -n %{libname}
JSON-C implements a reference counting object model that allows you to
easily construct JSON objects in C, output them as JSON formatted
strings and parse JSON formatted strings back into the C
representation of JSON objects.

%files -n %{libname}
%{_libdir}/libjson.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%configure --disable-static
%make

%install
%makeinstall_std

# cleanup
rm -f %{buildroot}%{_libdir}/*.so
rm -rf %{buildroot}%{_includedir}/json
rm -f %{buildroot}%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2818 |21cr|libjsw-1.5.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname jsw %{major}
%define devname %mklibname jsw -d

Summary:	Joystick Wrapper library
Name:		libjsw
Version:	1.5.8
Release:	10
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://wolfsinger.com/~wolfpack/packages/
Source0:	http://wolfsinger.com/~wolfpack/packages/%{name}-%{version}.tar.bz2
Patch0:		libjsw-1.5.8-no-strip.patch
Patch1:		libjsw-1.5.8-soname.patch
Patch2:		libjsw-1.5.8-no-postinstall.patch

%description
The Joystick Wrapper library (libjsw) is designed to provide a uniform
API and user configuration for joysticks and other game controllers on
all platforms.

It features an integrated library level calibration system using
jscalibrator to provide a one time calibration for any program that
uses libjsw. libjsw also features several levels of advanced joystick
input error correction.

%package -n %{libname}
Summary:	Joystick Wrapper library
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with the Joystick Wrapper library.

The Joystick Wrapper library (libjsw) is designed to provide a uniform
API and user configuration for joysticks and other game controllers on
all platforms.

It features an integrated library level calibration system using
jscalibrator to provide a one time calibration for any program that
uses libjsw. libjsw also features several levels of advanced joystick
input error correction.

%package -n %{devname}
Summary:	Development tools for programs using the Joystick Wrapper library
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	jsw-devel = %{version}-%{release}

%description -n %{devname}
This package contains the header files and libraries needed for
developing programs using the Joystick Wrapper library.

The Joystick Wrapper library (libjsw) is designed to provide a uniform
API and user configuration for joysticks and other game controllers on
all platforms.

It features an integrated library level calibration system using
jscalibrator to provide a one time calibration for any program that
uses libjsw. libjsw also features several levels of advanced joystick
input error correction.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
perl -pi -e 's|#include <jsw.h>|#include "../include/jsw.h"|' js*/*.{c,h}

%build
pushd libjsw
    make CFLAGS="%{optflags} -fPIC" LIBS=-lstdc++
popd

%install
pushd libjsw
    make install \
	PREFIX=%{buildroot}%{_prefix} \
	JSW_MAN_DIR=%{buildroot}%{_mandir}/man3 \
	JSW_LIB_DIR=%{buildroot}%{_libdir} \
	MAN_DIR=%{buildroot}%{_mandir}/man1
popd

%files -n %{libname}
%{_libdir}/libjsw.so.%{major}*

%files -n %{devname}
%{_includedir}/jsw.h
%{_libdir}/libjsw.so
%{_mandir}/man3/*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2819 |21cr|libjwt-1.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define		libname	%mklibname jwt 0
%define		devname	%mklibname jwt -d

Summary:            JSON Web Token (C implementation)
Name:               libjwt
Version:            1.13.1
Release:            1
License:            MPLv2.0
Group:              System/Libraries
URL:                https://github.com/benmcollins/libjwt
Source0:            https://github.com/benmcollins/libjwt/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:      libtool
BuildRequires:      doxygen
BuildRequires:      pkgconfig(openssl) >= 0.9.8
BuildRequires:      pkgconfig(jansson)


%description
JSON Web Tokens are an open, industry standard RFC 7519 method for representing
claims securely between two parties. This package is a C library implementing
JWT functionality. It supports HS256/384/512, RS256/384/512 and ES256/384/512 
digest algorithms.

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	JSON Web Token (C implementation) development kit
Group:		System/Libraries

%description -n %{libname}
JSON Web Tokens are an open, industry standard RFC 7519 method for representing
claims securely between two parties. This package is a C library implementing
JWT functionality. It supports HS256/384/512, RS256/384/512 and ES256/384/512
digest algorithms.

%files -n %{libname}
%{_bindir}/*
%{_libdir}/*.so.%{major}*

#--------------------------------------------------------------------
%package -n %{devname}
Summary:	JSON Web Token (C implementation) development kit
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for the JWT C library.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

#--------------------------------------------------------------------

%package docs
Summary:	JSON Web Token (C implementation) development kit documentation
Group:		Documentation

%description docs
Development documentation files for the JWT C library.

%files docs
%doc doxygen-doc/html

#--------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -i
%configure
%make all doxygen-doc

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2820 |21cr|libkeyfinder-2.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	libkeyfinder is a small C++ library
Name:		libkeyfinder
Version:	2.2.6
Release:	1
License:	GPLv3
Group:		Sound
Url:		https://github.com/mixxxdj/
Source0:	https://github.com/mixxxdj/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  catch-devel


%description
Libkeyfinder is a small C++ library for estimating the musical key of digital audio. 
It is published under the GNU General Public License version 3 or later.
It was writter by Ibrahim Shaath who wrote it in 2011 as part of a master's thesis in computer science.
A GUI application to use it is available for macOS and Windows, however that is no longer maintained and does not build on contemporary Linux distributions.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	 Libkeyfinder shared library
Group:		System/Libraries

%description -n %{libname}
Libkeyfinder is a small C++ library for estimating the musical key of digital audio.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:	libkeyfinder development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libkeyfinder development files.

%files -n %{devname}
%{_includedir}/keyfinder/
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_libdir}/pkgconfig/*
#------------------------------------------------------------------

%prep
%setup -q


%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2821 |21cr|libkiwix-10.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 10
%define libname %mklibname kiwix %{major}
%define devname %mklibname kiwix -d

Name:		libkiwix
Version:	10.1.1
Release:	3
License:	GPLv3+
Summary:	Common code base for all Kiwix ports
Group:		System/Libraries
URL:		https://github.com/kiwix/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: aria2
BuildRequires: cmake
BuildRequires: gtest-devel
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(libmicrohttpd)
BuildRequires: meson
BuildRequires: xapian-devel
BuildRequires: mustache-devel
BuildRequires: pkgconfig(pugixml)
BuildRequires: pkgconfig(libzim)
BuildRequires: zlib-devel

Provides: kiwix-lib = %{EVRD}

%description
The Kiwix library provides the Kiwix software core. It contains
the code shared by all Kiwix ports.

%files
%doc AUTHORS ChangeLog README.md
%license COPYING
%{_bindir}/kiwix-compile-resources
%{_mandir}/man1/kiwix*.1*

#---------------------------------------------------------------------
%package -n %{libname}
Summary:	kiwix shared library
Group:		System/Libraries

%description -n %{libname}
kiwix shared library.

%files -n %{libname}
%{_libdir}/libkiwix.so.%{major}*
#---------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{summary}.

%files -n %{devname}
%{_includedir}/kiwix
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/kiwix.pc

#---------------------------------------------------------------------
%prep
%autosetup -p1

%build
%meson -Dwerror=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2822 |21cr|libks-1.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This version of libks needed for Freeswitch, not delete this project from repo

%global major 1
%define libname %mklibname ks %{major}
%define devname %mklibname ks -d

Name:		libks
Version:	1.8.2
Release:	1
Summary:	Foundational support for signalwire C products
Group:		System/Libraries
License:	GPL
URL:		https://github.com/signalwire/libks
Source0:	https://github.com/signalwire/libks/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libks-install.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(openssl)

%description
Foundational support for signalwire C products

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Foundational support for signalwire C products 
Group:		System/Libraries

%description -n %{libname}
Foundational support for signalwire C products.

%files -n %{libname}
%{_libdir}/libks.so.%{major}*

#---------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	libks-devel

%description devel
Development libraries and headers for libks.

%files devel
%doc %{_docdir}/libks/copyright
%{_includedir}/libks
%{_libdir}/pkgconfig/libks.pc
%{_libdir}/libks.so

#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
export LDFLAGS='%{ldflags} -ldl'
%cmake \
	-DKS_PLAT_LIN=true \
	-DCMAKE_OS_NAME=Centos \
	-G Ninja
%ninja_build

%install
cp copyright build

%ninja_install -C build

# fix libdir path in .pc file
sed -i 's:{prefix}/lib:{prefix}/%{_lib}:' %{buildroot}%{_libdir}/pkgconfig/libks.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2823 |21cr|liblarch-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Python 3 library to easily handle data structures
Name:		liblarch
Version:	3.2.0
Release:	1
License:	GPLv3+
Group:		Development/Python
Url:		https://github.com/getting-things-gnome/liblarch
Source0:	https://github.com/getting-things-gnome/liblarch/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch
Provides:	python3-liblarch = %{EVRD}
Provides:	python3-liblarch-gtk = %{EVRD}
Provides:	%{name}-gtk = %{EVRD}

%description
Liblarch is a Python 3 library built to easily handle data structures such as
lists, trees and directed acyclic graphs (tree where nodes can have multiple
parents). There's also a liblarch-gtk binding that will allow you to use your
data structures in Gtk.Treeview.

%files
%doc AUTHORS README.md LICENSE
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/%{name}_gtk
%{py3_puresitedir}/liblarch-%{version}-py%{py3_ver}.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2824 |21cr|liblettertree-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname lettertree %{major}

Name:		liblettertree
Version:	0.1
Release:	10
Summary:	A letter tree data structure
License:	LGPL
Group:		System/Libraries
Source0:	ftp://ftp.inria.fr/INRIA/Atoll/Guillaume.Rousse/%{name}-%{version}.tar.bz2

%description
This is a simple implementation of a lettertree, an efficient data structure
for storing and indexing string sharing a common prefix.

#-------------------------------------------------------------------------
%package -n	%libname
Summary:	A letter tree data structur
Group:		System/Libraries

%description -n	%libname
This is a simple implementation of a lettertree, an efficient data structure
for storing and indexing string sharing a common prefix.

#-------------------------------------------------------------------------

%package -n	%libname-devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%libname-devel
This package contains development files for %{name}.

#-------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files -n %libname
%doc AUTHORS ChangeLog INSTALL README
%{_libdir}/*.so.*

%files -n %libname-devel
%{_libdir}/*.so
%{_includedir}/lettertree.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2825 |21cr|libliftoff-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Lightweight KMS plane library
Name:		libliftoff
Version:	0.3.0
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://gitlab.freedesktop.org/emersion/libliftoff
Source0:	https://gitlab.freedesktop.org/emersion/libliftoff/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(libdrm)

%description
libliftoff eases the use of KMS planes from userspace without
standing in your way. Users create "virtual planes" called
layers, set KMS properties on them, and libliftoff will
allocate planes for these layers if possible.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lightweight KMS plane library
Group:		System/Libraries

%description -n %{libname}
libliftoff eases the use of KMS planes from userspace without
standing in your way. Users create "virtual planes" called
layers, set KMS properties on them, and libliftoff will
allocate planes for these layers if possible.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc README.md
%license LICENSE
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2826 |21cr|liblinebreak-20080321-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %version
%define libname	  %mklibname linebreak %{major}
%define develname %mklibname -d linebreak

Name: 		liblinebreak
Summary: 	Line breaking in a Unicode sequence
Version:	20080321
Release: 	8
License: 	GPL
Group:		System/Libraries
URL: 		http://vimgadgets.cvs.sourceforge.net/vimgadgets/common/tools/linebreak/
Source0: 	%{name}-%{version}.tar.gz

%description
Line breaking in a Unicode sequence. 
Designed to be used in a generic text renderer.

%package -n %{libname}
Summary: 	Line breaking in a Unicode sequence
Group:		System/Libraries

%description -n %{libname}
Line breaking in a Unicode sequence. 
Designed to be used in a generic text renderer.

%package -n %{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Provides:   linebreak-devel
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
Line breaking in a Unicode sequence. 
Designed to be used in a generic text renderer.

%prep
%setup -q

%build
%make  CC=%__cc CFLAGS="%{optflags} -fPIC" CFG=release
%__cc \
    -shared -Wl,-soname,liblinebreak.so.%{major} \
    -o liblinebreak.so.%{version} \
    ReleaseDir/*.o

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_libdir}
install -d -m 755 %{buildroot}%{_includedir}
install -m 755 liblinebreak.so.%{version} %{buildroot}%{_libdir}
install -m 644 ReleaseDir/liblinebreak.a %{buildroot}%{_libdir}
install -m 644 linebreak.h %{buildroot}%{_includedir}

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/liblinebreak.so.%{major}

%files -n %{develname}
%defattr(-,root,root)
%{_libdir}/liblinebreak.a
%{_includedir}/linebreak.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2827 |21cr|liblockfile-1.08-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	liblockfile
%define version	1.08

%define	major	1

%define	libname	%mklibname lockfile %major
%define	dlibname	%mklibname lockfile -d

Summary:	NFS-safe locking library
Name:		%{name}
Version:	%{version}
Release:	11
License:	GPL
Group:		System/Libraries
URL:		http://packages.qa.debian.org/liblockfile
Source0:	http://ftp.debian.org/debian/pool/main/libl/liblockfile/%{name}_%{version}.orig.tar.gz
Patch1:		liblockfile-1.08-fix-install-perms.patch

%description
Liblockfile is a shared library with NFS-safe locking functions.
It includes the command-line utility ``dotlockfile''.

%package -n	dotlockfile
Summary:	Mailbox locking tool
Group:		Networking/Mail

%description -n dotlockfile
Dotlockfile is a command line utility to safely create, test and
remove lockfiles. Lockfiles are created in an NFS-safe way. Dotlockfile
can can also be used to lock and unlock mailboxes even if the mailspool
directory is only writable by group mail.

%package -n	%libname
Summary:	NFS-safe locking library
Group:		System/Libraries

%description -n %libname
Liblockfile is a library that contains NFS-safe locking functions. It also
contains an implementation of the SVR4 maillock() functions.
The functions in liblockfile can lock and unlock mailboxes even if special
priviliges are needed by calling an external setgid-mail utility called
`dotlockfile'.

%package -n	%dlibname
Summary:	NFS-safe locking development library
Group:		Development/C
Provides:	lockfile-devel = %{version}-%{release}
Provides:	liblockfile-devel = %{version}-%{release}
Obsoletes:	%{_lib}lockfile1-devel < %{version}-%{release}
Requires:	%libname = %{version}-%{release}

%description -n	%dlibname
Liblockfile is a library that contains NFS-safe locking functions. It also
contains an implementation of the SVR4 maillock() functions.
This package contains header file and development libraries.

%prep 
%setup -q
%patch1 -p0 -b .perm

%build
%configure --enable-shared
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_includedir} \
	$RPM_BUILD_ROOT/%{_bindir} \
	$RPM_BUILD_ROOT/%{_libdir} \
	$RPM_BUILD_ROOT/%{_mandir}/man{1,3}
make install ROOT=$RPM_BUILD_ROOT
make install_static ROOT=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post -n %libname -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %libname -p /sbin/ldconfig
%endif

%files -n dotlockfile
%defattr(-,root,root,755)
%{_bindir}/dotlockfile
%{_mandir}/man1/dotlockfile.1*

%files -n %libname
%defattr(-,root,root,755)
%doc README liblockfile.lsm
%{_libdir}/liblockfile.so.%{major}
%{_libdir}/liblockfile.so.%{major}.*

%files -n %dlibname
%defattr(-,root,root,755)
%{_includedir}/lockfile.h
%{_includedir}/maillock.h
%{_libdir}/liblockfile.a
%{_libdir}/liblockfile.so
%{_mandir}/man3/lockfile_create.3*
%{_mandir}/man3/maillock.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2828 |21cr|liblscp-0.9.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	6
%define	libname %mklibname %{oname} %{major}
%define	develname %mklibname %{oname} -d
%define	old_libname %mklibname %{name} %{major}
%define	oname lscp

Name:		liblscp
Summary:	LinuxSampler Control Protocol (LSCP) wrapper library
Version:	0.9.6
Release:	1
Group:		Sound
License:	GPLv2+
Url:		https://www.linuxsampler.org/
Source0:	https://download.linuxsampler.org/packages/%{name}-%{version}.tar.gz
Patch0:	liblscp-0.9.6-fix-version.patch
BuildRequires:	cmake >= 3.13
BuildRequires:	doxygen

%description
LinuxSampler Control Protocol (LSCP) wrapper library.

#--------------------------------------------------------------------

%package -n	%{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Provides:		%{name} = %{EVRD}
%rename	%{old_libname}

%description -n %{libname} 
LinuxSampler Control Protocol (LSCP) wrapper library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/liblscp.so.%{major}*

#--------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development libraries for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}
Provides:		%{oname}-devel = %{EVRD}
%rename	%{old_libname}-devel
%rename	%{_lib}%{oname}5-devel

%description -n	%{develname}
Development libraries and header file for %{oname}. 

%files -n %{develname}
%doc ChangeLog LICENSE README
%doc build/doc/html/*
%dir %{_includedir}/%{oname}
%{_includedir}/%{oname}/*.h
%{_libdir}/liblscp.so
%{_libdir}/pkgconfig/%{oname}.pc

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix doxygen file
doxygen -u doc/%{name}.doxygen.in


%build
%cmake -DCMAKE_INSTALL_LIBDIR:PATH="/%{_lib}"
%make


%install
%makeinstall_std -C build

# Drop stuff we take with our macros
rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2829 |21cr|libm4ri-0.20200125-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot %(echo %{version} |cut -d. -f2)

%define major 0.0.20200125
%define libname %mklibname m4ri %{major}
%define devname %mklibname m4ri -d

Summary:	M4RI is a library for fast arithmetic with dense matrices over F2
Name:		libm4ri
Version:	0.20200125
Release:	12
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://m4ri.sagemath.org
Source0:	http://m4ri.sagemath.org/downloads/m4ri-%{snapshot}.tar.gz
# This patch will not be sent upstream, as it is Fedora-specific.
# Permanently disable SSE3 and SSSE3 detection.  Without this patch, the
# config file tends to be regenerated at inconvenient times.
Patch0:		m4ri-no-sse3.patch
BuildRequires:	doxygen
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(libpng)

%description
M4RI is a library for fast arithmetic with dense matrices over F2.
It was started by Gregory Bard, is maintained by Martin Albrecht.
Several people contributed to it (see below). The name M4RI comes
from the first implemented algorithm: The "Method of the Four Russians"
inversion algorithm published by Gregory Bard. This algorithm in turn
is named after the "Method of the Four Russians" multiplication algorithm
which is probably better referred to as Kronrod's method. M4RI is used by
the Sage mathematics software and the PolyBoRi library. M4RI is available
under the General Public License Version 2 or later (GPLv2+).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	M4RI runtime library
Group:		System/Libraries
Provides:	m4ri = %{EVRD}
Provides:	%{name} = %{EVRD}
Conflicts:	%{_lib}m4ri0 < 0.20120415-7
Obsoletes:	%{_lib}m4ri0 < 0.20120415-7

%description -n %{libname}
M4RI is a library for fast arithmetic with dense matrices over F2.
It was started by Gregory Bard, is maintained by Martin Albrecht.
Several people contributed to it (see below). The name M4RI comes
from the first implemented algorithm: The "Method of the Four Russians"
inversion algorithm published by Gregory Bard. This algorithm in turn
is named after the "Method of the Four Russians" multiplication algorithm
which is probably better referred to as Kronrod's method. M4RI is used by
the Sage mathematics software and the PolyBoRi library. M4RI is available
under the General Public License Version 2 or later (GPLv2+).

%files -n %{libname}
%doc COPYING
%{_libdir}/libm4ri-%{major}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	M4RI development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	m4ri-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
M4RI is a library for fast arithmetic with dense matrices over F2.
M4RI is used by the Sage mathematics software and the PolyBoRi library.

%files -n %{devname}
%{_includedir}/m4ri
%{_libdir}/libm4ri.so
%{_libdir}/pkgconfig/m4ri.pc

#----------------------------------------------------------------------------

%prep
	
%setup -qn m4ri-%{snapshot}
%patch0 -p0
	
 
	
# Fix the version number in the documentation, and generate only HTML
	
sed -i 's/20140914/%{version}/;/GENERATE_LATEX/s/YES/NO/' m4ri/Doxyfile
	
 
	
 
	
%build
	
%configure --enable-openmp \
%ifarch %{ix86} x86_64
  --enable-sse2
sed -e 's/^#undef HAVE_MMX/#define HAVE_MMX/' \
    -e 's/^#undef HAVE_SSE$/#define HAVE_SSE/' \
    -e 's/^#undef HAVE_SSE2/#define HAVE_SSE2/' \
    -i m4ri/config.h
	
sed -e 's/^\(#define __M4RI_HAVE_SSE2[[:blank:]]*\)0/\11/' \
    -e 's/^\(#define __M4RI_SIMD_CFLAGS[[:blank:]]*\).*/\1" -mmmx -msse -msse2"/' \
    -i m4ri/m4ri_config.h
	
sed -i 's/^SIMD_CFLAGS =.*/SIMD_CFLAGS = -mmmx -msse -msse2/' Makefile
%else
  --disable-sse2
%endif
	
 
	
# Die, rpath, die!  Also workaround libtool reordering -Wl,--as-needed after
# all the libraries
sed -e "s|\(hardcode_libdir_flag_spec=\)'.*|\1|" \
    -e "s|\(runpath_var=\)LD_RUN_PATH|\1|" \
    -e 's|CC="\(g..\)"|CC="\1 -Wl,--as-needed"|' \
    -i libtool
%make


%install
%makeinstall_std

%check
make check LD_LIBRARY_PATH=`pwd`/.libs
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2830 |21cr|libmatekbd-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 4
%define girmajor 1.0
%define libname %mklibname matekbd %{major}
%define girname %mklibname matekbd-gir %{girmajor}
%define devname %mklibname matekbd -d

Summary:	MATE keyboard libraries
Name:		libmatekbd
Version:	1.26.0
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libxklavier)

%description
Files used by MATE keyboard library.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_datadir}/glib-2.0/schemas/org.mate.peripherals-keyboard-xkb.gschema.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries for MATE applications
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
MATE keyboard shared library.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libmatekbd.so.%{major}*
%{_libdir}/libmatekbdui.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
A GObject based library for libmatekbd clients to use to interface with
Matekbd.

%files -n %{girname}
%doc AUTHORS COPYING README
%{_libdir}/girepository-1.0/Matekbd-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc AUTHORS COPYING README
%{_includedir}/*
%{_libdir}/pkgconfig/libmatekbd.pc
%{_libdir}/pkgconfig/libmatekbdui.pc
%{_libdir}/*.so
%{_datadir}/gir-1.0/Matekbd-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%setup -q

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--disable-schemas-compile \
	--with-x

%make LIBS='-lm -lgmodule-2.0'

%install

%makeinstall_std

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2831 |21cr|libmatekeyring-1.6.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname matekeyring
%define major 1
%define libname   %mklibname matekeyring %{major}
%define develname %mklibname -d matekeyring

Summary:        Framework for managing passwords and other secrets
Name:           libmatekeyring
Version:        1.6.0
Release:        6
License:        GPLv2+ and LGPLv2+
Source:         http://pub.mate-desktop.org/releases/%url_ver/%{name}-%{version}.tar.xz
URL:            http://mate-desktop.org
Group:          Networking/Remote access
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  mate-common
BuildRequires:  libgcrypt-devel
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  mate-common

Requires:       %{name}-i18n >= %{version}-%{release}

%description
matekeyring is a program that keep password and other secrets for
users. It is run as a damon in the session, similar to ssh-agent, and
other applications can locate it by an environment variable.

The program can manage several keyrings, each with its own master
password, and there is also a session keyring which is never stored to
disk, but forgotten when the session ends.

%package i18n
Group:     System/Libraries
Summary:   Localization data files for %{name}
BuildArch: noarch
%rename %{name}-lang

%description i18n
This package contains the translations for %{name}

%package -n %{libname}
Summary:   Library for integration with the gnome keyring system
Group:	   System/Libraries
Recommends:  %{name}-i18n >= %{version}

%description -n %{libname}
The library libmatekeyring is used by applications to integrate with
the gnome keyring system. However, at this point the library hasn't been
tested and used enought to consider the API to be publically
exposed. Therefore use of libmatekeyring is at the moment limited to
internal use in the gnome desktop. However, we hope that the
matekeyring API will turn out useful and good, so that later it
can be made public for any application to use.

%package -n %{develname}
Summary:        Development files for libmate-keyring
License:        LGPLv2+
Group:          Development/C
Requires:       %{libname} = %{version}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
The libmatekeyring-devel package contains the libraries and
header files needed to develop applications that use libmate-keyring.


%prep
%setup -q
NOCONFIGURE=1 ./autogen.sh

%build
%configure \
 --enable-gtk-doc-html  \
 --disable-static
 
%make

%install
%makeinstall_std

%find_lang %{name}

%files i18n -f %name.lang

%files -n %{libname}
%{_libdir}/lib*.so.*

%files -n %{develname}
%doc AUTHORS NEWS README COPYING
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_datadir}/gtk-doc/html/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2832 |21cr|libmatemixer-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define libname %mklibname matemixer %{major}
%define devname %mklibname matemixer -d

Summary:	Mixer library for MATE desktop
Name:		libmatemixer
Version:	1.26.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	mate-common
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpulse)
Conflicts:	%{_lib}matemixer0 < 1.16.0-3

%description
libmatemixer is a mixer library for MATE desktop.
It provides an abstract API allowing access to mixer functionality
available in the PulseAudio and ALSA sound systems.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_libdir}/libmatemixer/libmatemixer-alsa.so
%{_libdir}/libmatemixer/libmatemixer-null.so
%{_libdir}/libmatemixer/libmatemixer-pulse.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Mixer library for MATE desktop
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
libmatemixer is a mixer library for MATE desktop.
It provides an abstract API allowing access to mixer functionality
available in the PulseAudio and ALSA sound systems.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libmatemixer.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for libmatemixer
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains header files necessary for developing
programs based on libmatemixer.

%files -n %{devname}
%doc AUTHORS COPYING NEWS README
%{_includedir}/mate-mixer/
%{_libdir}/pkgconfig/*
%{_libdir}/*.so
%{_datadir}/gtk-doc/html/libmatemixer/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-pulseaudio \
	--enable-alsa \
	--enable-gtk-doc

#drop unneeded direct library deps with --as-needed
# libtool doesn't make this easy, so we do it the hard way
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0 /g' libtool

%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2833 |21cr|libmath++-0.0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname math++ %{major}
%define devname %mklibname math++ -d

Summary:	C++ Math Type Library
Name:		libmath++
Version:	0.0.4
Release:	7
License:	LGPLv2+
Group:		System/Libraries
# 16 Jun 2009 / incubusss
# upstream source no more available, suing the 0.0.4 tarball downloaded
# from Debian repository renamed to %{name}-%{version} and bz2 compressed
# http://ftp.de.debian.org/debian/pool/main/libm/libmath++/libmath++_0.0.4.orig.tar.gz
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	doxygen

%description
%{name} is a template based math library, written in C++,
for symbolic and numeric calculus applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ Math Type Library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
%{name} is a template based math library, written in C++,
for symbolic and numeric calculus applications.

%files -n %{libname}
%doc COPYING README
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} is a template based math library, written in C++,
for symbolic and numeric calculus applications.

You need to install this package if you want to develop or compile
any applications/libraries that needs %{name}.

%files -n %{devname}
%doc doc/user-api
%{_includedir}/*
%{_libdir}/lib*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -f -i
%configure
%make
make api-doc

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2834 |21cr|libmcrypt-2.5.8-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname mcrypt %{major}
%define devname %mklibname mcrypt -d

Summary:	Thread-safe data encryption library
Name:		libmcrypt
Version:	2.5.8
Release:	24
License:	LGPLv2+
Group:		System/Libraries
Url:		http://mcrypt.sourceforge.net/
Source0:	http://downloads.sourceforge.net/mcrypt/%{name}-%{version}.tar.gz
Patch0:		libmcrypt-2.5.8-automake-1.13.patch
Patch1:		libmcrypt-2.5.8-no-libltdl.patch
BuildRequires:	libtool
BuildRequires:	libtool-devel

%description
Libmcrypt is a thread-safe library providing a uniform interface
to access several block and stream encryption algorithms.

     Some algorithms which are supported:
SERPENT, RIJNDAEL, 3DES, GOST, SAFER+, CAST-256, RC2, XTEA, 3WAY,
TWOFISH, BLOWFISH, ARCFOUR, WAKE and more. 

%files
%{_libdir}/%{name}/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Thread-safe data encryption library
Group:		System/Libraries
Requires:	%{name} >= %{version}-%{release}

%description -n %{libname}
Libmcrypt is a thread-safe library providing a uniform interface
to access several block and stream encryption algorithms.

     Some algorithms which are supported:
SERPENT, RIJNDAEL, 3DES, GOST, SAFER+, CAST-256, RC2, XTEA, 3WAY,
TWOFISH, BLOWFISH, ARCFOUR, WAKE and more. 

%files -n %{libname}
%{_libdir}/libmcrypt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for developing apps with libmcrypt
Group:		Development/C
Requires:	%{libname} >= %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the header files and libraries needed to
develop programs that use the libmcrypt library.
Install it if you want to develop such applications.

%files -n %{devname}
%doc AUTHORS COPYING.LIB ChangeLog INSTALL KNOWN-BUGS NEWS README THANKS TODO doc/README.* doc/*.c
%{_bindir}/libmcrypt-config
%{_libdir}/lib*.so
%{_includedir}/mcrypt.h
%dir %{_includedir}/mutils
%{_includedir}/mutils/mcrypt.h
%{_datadir}/aclocal/*.m4
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
rm -rf libltdl
libtoolize --copy --force --install --ltdl
cp `aclocal --print-ac-dir`/libtool.m4 .
aclocal
autoconf
automake --foreign -acf
%ifarch aarch64
export CFLAGS="%{optflags} -fsigned-char"
%endif
%configure \
	--enable-dynamic-loading \
	--disable-static \
	--enable-shared \
	--disable-ltdl-install

%make_build

%check
%ifarch %{x86_64} %{ix86}
make check
%endif

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2835 |21cr|libmemcache-1.4.0-0.rc2.10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname memcache %{major}
%define devname %mklibname memcache -d

Summary:	A high performance C API for memcached
Name:		libmemcache
Version:	1.4.0
Release:	0.rc2.10
Group:		System/Libraries
License:	BSD-like
URL:		http://people.freebsd.org/~seanc/libmemcache/
Source0:	http://people.freebsd.org/~seanc/libmemcache/%{name}-%{version}.rc2.tar.bz2
Patch0:		libmemcache-1.4.0.rc2_gnusource.patch
Patch1:		libmemcache-1.4.0.rc2_gcc43_inline.patch
Patch2:		libmemcache-1.4.0.rc2_preserve_cflags.patch
BuildRequires:	autoconf2.5
BuildRequires:	libtool

%description
libmemcache is the C API for memcached(8), a high-performance,
distributed memory object caching system. 

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A high performance C API library for memcached
Group:		System/Libraries

%description -n %{libname}
libmemcache is the C API for memcached(8), a high-performance,
distributed memory object caching system.

%files -n %{libname}
%doc COPYING ChangeLog INSTALL
%{_libdir}/libmemcache.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libmemcache library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	memcache-devel = %{EVRD}

%description -n %{devname}
libmemcache is the C API for memcached(8), a high-performance,
distributed memory object caching system.

This package contains the static libmemcache library and its
header files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libmemcache.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}.rc2
%patch0
%patch1
%patch2

%build
touch NEWS README AUTHORS
autoreconf -fis
export STRIP="/bin/true"

%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2836 |21cr|libmilter-workers-8.14.3_1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define realversion %(echo %{version} |tr _ -)

%define version %(echo %{realversion} | sed 's/-/_/g')
%define sdevdname %mklibname milter -d -s

Summary:	Libmilter and a pool of threads
Name:		libmilter-workers
Version:	8.14.3_1
Release:	7
License:	Sendmail
Group:		Development/C
Url:		http://j-chkmail.ensmp.fr/
Source0:	http://j-chkmail.ensmp.fr/libmilter/%{name}-%{realversion}.tgz
Source1:	http://j-chkmail.ensmp.fr/libmilter/README

%description
Under original libmilter each connection generates one thread
on the filter. These threads remain alive during the connection
lifetime. So, one connection equals one thread.

For huge servers, handling many simultaneous connections (say, a 
hundred and more), this may be an issue.

Most of the time, these threads are idle waiting for sendmail
commands (which come from remote clients). Tests at some domains
shows that this hold for more than 95 % of the time.

This libmilter version creates a fixed number of threads (workers)
and distribute tasks when it receives commands from sendmail.

#----------------------------------------------------------------------------

%package -n %{sdevdname}
Summary:	Libmilter and a pool of threads
Group:		Development/C
Provides:	milter-devel = %{EVRD}

%description -n %{sdevdname}
Under original libmilter each connection generates one thread
on the filter. These threads remain alive during the connection
lifetime. So, one connection equals one thread.

For huge servers, handling many simultaneous connections (say, a
hundred and more), this may be an issue.

Most of the time, these threads are idle waiting for sendmail
commands (which come from remote clients). Tests at some domains
shows that this hold for more than 95 % of the time.

This libmilter version creates a fixed number of threads (workers)
and distribute tasks when it receives commands from sendmail.

%files -n %{sdevdname}
%doc README
%{_includedir}/libmilter/*.h
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{realversion}
cp -f %{SOURCE1} ./

perl -pi -e "s/-O2/%{optflags}/" devtools/OS/Linux

%build
%make

%install
mkdir -p %{buildroot}%{_includedir}/libmilter/
cp include/libmilter/*.h %{buildroot}%{_includedir}/libmilter/

mkdir -p %{buildroot}%{_libdir}
cp obj.`uname -s`.`uname -r`.`uname -m`/libmilter/libmilter.a %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2837 |21cr|libmimedir-0.5.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname mimedir %{major}
%define devname %mklibname mimedir -d

Summary:	MIME Directory Profile library
Name:		libmimedir
Version:	0.5.1
Release:	9
License:	BSD
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libmimedir/
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	flex

%description
This library parses MIME Directory Profile which is defined in RFC 2425.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MIME Directory Profile library
Group:		System/Libraries

%description -n %{libname}
This library parses MIME Directory Profile which is defined in RFC 2425.

%files -n %{libname}
%doc COPYING ChangeLog README
%{_libdir}/libmimedir.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and headers for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This library parses MIME Directory Profile which is defined in RFC 2425.

%files -n %{devname}
%doc COPYING ChangeLog README
%{_includedir}/*
%{_libdir}/libmimedir.so
%{_libdir}/libmimedir.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
perl -pi -e 's/444/644/g' Makefile.in

%build
export CFLAGS="%{optflags} -fPIC"
%configure
# %make doesn't work
make

%install
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
%makeinstall

find %{buildroot} -name *.so* -exec chmod 755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2838 |21cr|libmirage-3.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 11
%define api_version 3.2
%define gir_major 3.2
%define libname %mklibname mirage %{major}
%define devname %mklibname mirage -d
%define girname %mklibname mirage-gir %{gir_major}

Summary:	CD-ROM image access library
Name:		libmirage
Version:	3.2.0
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://cdemu.sourceforge.net
Source0:	http://downloads.sourceforge.net/cdemu/%{name}-%{version}.tar.bz2
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	cmake
BuildRequires:	bzip2-devel
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(zlib)

%description
The aim of libMirage is to provide uniform access to the data stored in
different image formats, by creating a representation of disc stored in image
file, which is based on GObjects. There are various objects that represent
different parts of the disc; disc, session, track, sector, etc. In addition to
providing access to data provided by the image file, libMirage is also capable
of generating some of the data that might not be present in image file. For
instance, ISO image provides only user data from sector, without sync pattern,
header, ECC/EDC codes or subchannel. When this missing data is requested,
libMirage will transparently generate it.

%files -f %{name}.lang
%doc AUTHORS COPYING README

#----------------------------------------------------------------------------

%package common
Summary:	CD-ROM image access library - common files
Group:		System/Libraries

%description common
Image access plugins for libMirage.

%files common
%doc AUTHORS COPYING README
%{_datadir}/mime/packages/libmirage-*.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CD-ROM image access library - shared library
Group:		System/Libraries
Requires:	%{name}-common >= %{EVRD}

%description -n %{libname}
Shared libraries of libMirage for software using it.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/%{name}-%{api_version}
%{_libdir}/libmirage.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	CD-ROM image access library - development headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Development headers for developing software using libMirage.

The aim of libMirage is to provide uniform access to the data stored in
different image formats, by creating a representation of disc stored in image
file, which is based on GObjects. There are various objects that represent
different parts of the disc; disc, session, track, sector, etc. In addition to
providing access to data provided by the image file, libMirage is also capable
of generating some of the data that might not be present in image file. For
instance, ISO image provides only user data from sector, without sync pattern,
header, ECC/EDC codes or subchannel. When this missing data is requested,
libMirage will transparently generate it.

%files -n %{devname}
%doc AUTHORS COPYING README
%{_includedir}/libmirage-%{gir_major}
%{_libdir}/libmirage.so
%{_libdir}/pkgconfig/libmirage.pc
%{_datadir}/gir-1.0/Mirage-%{gir_major}.gir
%{_datadir}/gtk-doc/html/libmirage

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc AUTHORS COPYING README
%{_libdir}/girepository-1.0/Mirage-%{gir_major}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake -DPOST_INSTALL_HOOKS:BOOL=OFF
%make -s

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2839 |21cr|libmirisdr-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname mirisdr %{major}
%define devname %mklibname -d mirisdr

Name:           libmirisdr
Version:        2.0.0
Release:        1
Summary:        Support programs for MRi2500
License:        GPL-2.0
Group:          Communications
Url:            https://github.com/f4exb/libmirisdr-4
Source0:        https://github.com/f4exb/libmirisdr-4/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(udev)

%description
Programs that controls Mirics MRi2500 based DVB dongle in raw mode, so
it can be used as a SDR receiver.

%files
%{_bindir}/miri_fm
%{_bindir}/miri_sdr
%{_udevrulesdir}/10-mirisdr.rules

#---------------------------------------------------------------------
%package -n %{libname}
Summary:        Libs libmirisdr
Group:          System/Libraries

%description -n %{libname}
Support programs for MRi2500

%files -n %{libname}
%{_libdir}/libmirisdr.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for libmirisdr
Group:          System/Libraries
Requires:       %{libname} = %{EVRD}

%description -n	%{devname}
Library headers and other development files for mirisdr driver.

%files -n %{devname}
%doc COPYING README.md
%{_libdir}/libmirisdr.so
%{_includedir}/mirisdr.h
%{_includedir}/mirisdr_export.h
%{_libdir}/pkgconfig/libmirisdr.pc

#---------------------------------------------------------------------

%prep
%setup -qn %{name}-4-%{version}
sed -i 's!.x-xxx-xunknown!!g' cmake/Modules/Version.cmake

%build
%cmake
%make_build

%install
%make_install -C build
rm %{buildroot}%{_libdir}/libmirisdr.a

#install udev rules
install -D -p -m 0644 mirisdr.rules %{buildroot}%{_udevrulesdir}/10-mirisdr.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2840 |21cr|libmp3splt-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	mp3splt
%define	major	0
%define	libname		%mklibname %{oname} %{major}
%define	develname	%mklibname -d %{oname}

%define	without_docs	1

Summary:	Library to split MP3 and Ogg Files
Name:		libmp3splt
Version:	0.9.3
Release:	1
Url:			http://mp3splt.sourceforge.net
Group:		System/Libraries
License:	GPLv2+
#Source0:	http://prdownloads.sourceforge.net/%%{oname}/%%{name}-%%{version}.tar.gz
# Pick master HEAD from https://github.com/mp3splt/mp3splt and extract the libmp3splt directory,
# then recompress it
Source0:		%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	gettext >= 0.13.1
%if !%{without_docs}
BuildRequires:	doxygen
BuildRequires:	graphviz
%endif
BuildRequires:	gettext-devel
BuildRequires:	glibc-devel
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(flac) >= 1.2.1
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libpcre) >= 1.0
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
The mp3Splt project provides utilities to split mp3 and ogg files, by
selecting a begin and an end time position, without decoding. It is very
useful to split large mp3/ogg into smaller files, or to split entire albums to
obtain original tracks. To split an album, the split points and filenames can
be selected manually or automatically from CDDB (Internet or a local file), or
from .cue files.

It supports automatic silence detection, which can be used to adjust cddb/cue
split points. It is also possible to extract tracks from Mp3Wrap or AlbumWrap
files in a few seconds.

The mp3splt project is divided in 3 parts: libmp3splt, mp3splt and
mp3splt-gtk.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to split MP3 and Ogg Files
Group:		System/Libraries

%description -n %{libname}
Library to split mp3 and ogg files selecting a begin and an end time position,
without decoding. It's very useful to split large mp3/ogg to make smaller
files or to split entire albums to obtain original tracks.

%files -n %{libname} -f libmp3splt0.lang
%doc AUTHORS ChangeLog README
%{_libdir}/%{name}.so.%{major}*
%dir %{_libdir}/libmp3splt0
%{_libdir}/libmp3splt0/libsplt_*.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains development files for the mp3splt project.

%files -n %{develname}
%doc AUTHORS ChangeLog README
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/libmp3splt0/libsplt_*.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
./autogen.sh
%configure \
%if %{without_docs}
	--disable-doxygen_doc \
%endif
	--disable-rpath --disable-static
%make


%install
%makeinstall_std

%find_lang libmp3splt0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2841 |21cr|libmpd-11.8.17-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname mpd %{major}
%define devname %mklibname mpd -d

Summary:	Music Player Daemon Library
Name:		libmpd
Version:	11.8.17
Release:	7
License:	GPLv2+
Group:		System/Libraries
#http://sarine.nl/libmpd
Url:		http://mpd.wikia.com/wiki/ClientLib:libmpd
Source0:	http://download.sarine.nl/Programs/gmpc/%{version}/%{name}-%{version}.tar.gz
Patch0:		libmpd-11.8.17-fix-strndup-build-failure.patch
Patch1:		libmpd-11.8.17-remove-strndup.patch
BuildRequires:	pkgconfig(glib-2.0)

%description
Libmpd is an a library to easily connect to a mpd server. It wraps around
libmpdclient and provides a higher level api.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Music Player Daemon Library
Group:		System/Libraries

%description -n %{libname}
Libmpd is an a library to easily connect to a mpd server. It wraps around
libmpdclient and provides a higher level api.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for developing programs with libmpd
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 11.8.17-4

%description -n %{devname}
libmpd-devel is a sub-package which contains header files and libraries
for developing program with libmpd.

%files -n %{devname}
%doc ChangeLog COPYING README
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}-1.0

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2842 |21cr|libmpdclient-2.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	2
%define	libname		%mklibname mpdclient %{major}
%define	develname	%mklibname -d mpdclient

Summary:	API library for interfacing MPD in the C, C++ & Objective C languages
Name:		libmpdclient
Version:	2.22
Release:	1
Group:		System/Libraries
License:	BSD
Url:			https://www.musicpd.org
Source0:	https://www.musicpd.org/download/%{name}/2/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson >= 0.56.0
BuildRequires:	ninja

%description
A stable, documented, asynchronous API library for interfacing MPD in the C, 
C++ & Objective C languages.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	API library for interfacing MPD in the C, C++ & Objective C languages
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
A stable, documented, asynchronous API library for interfacing MPD in the C, 
C++ & Objective C languages.
This package contains the main library.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Devel headers for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
Devel headers for %{name}.

%files -n %{develname}
%doc AUTHORS NEWS README.rst
%{_datadir}/doc/*
%dir %{_includedir}/mpd/
%{_includedir}/mpd/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%meson -Ddocumentation="true"
%meson_build


%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2843 |21cr|libmsntp-1.6a-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname msntp %{major}
%define devname %mklibname msntp -d

Summary:	Full-featured, compact, portable SNTP library
Name:		libmsntp
Version:	1.6a
Release:	13
License:	GPLv2+
Group:		System/Libraries
Url:		http://snarfed.org/space/libmsntp
Source0:	http://ryan.barrett.name/%{name}-%{version}.tar.bz2
Patch0:		libmsntp-1.6a-shared.diff

%description
libmsntp is a full-featured, compact, portable SNTP library.

libmsntp provides SNTP client and server functionality in a shared
library with a simple API. SNTP (RFC 2030) is a simplified version
of NTP, which allows precise synchronization of system clocks over
a best-effort network.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Full-featured, compact, portable SNTP library
Group:		System/Libraries

%description -n %{libname}
libmsntp is a full-featured, compact, portable SNTP library.

libmsntp provides SNTP client and server functionality in a shared
library with a simple API. SNTP (RFC 2030) is a simplified version
of NTP, which allows precise synchronization of system clocks over
a best-effort network.

%files -n %{libname}
%doc Copyright.msntp LICENSE README*
%{_libdir}/libmsntp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libmsntp library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}msntp1-devel < 1.6a-12
Obsoletes:	%{_lib}msntp1-devel < 1.6a-12

%description -n %{devname}
libmsntp is a full-featured, compact, portable SNTP library.

libmsntp provides SNTP client and server functionality in a shared
library with a simple API. SNTP (RFC 2030) is a simplified version
of NTP, which allows precise synchronization of system clocks over
a best-effort network.

This package contains the static libevent library and its header files
needed to compile applications such as stegdetect, etc.

%files -n %{devname}
%doc example.c
%{_includedir}/*
%{_libdir}/libmsntp.so
%{_libdir}/libmsntp.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%make \
    CFLAGS="%{optflags} -fPIC -DPIC" \
    shared static

%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}

install -m0755 libmsntp.so.%{major} %{buildroot}%{_libdir}/
install -m0644 libmsntp.a %{buildroot}%{_libdir}/
ln -s libmsntp.so.%{major} %{buildroot}%{_libdir}/libmsntp.so
install -m0644 libmsntp.h %{buildroot}%{_includedir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2844 |21cr|libmusclecard-1.3.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname musclecard %{major}
%define devname %mklibname musclecard -d

Summary:	Muscle PCSC Framework for Linux libraries
Name:		libmusclecard
Version:	1.3.6
Release:	8
License:	GPL
Group:		System/Libraries
Url:		http://pcsclite.alioth.debian.org/
Source0:	https://alioth.debian.org/download.php/1478/libmusclecard-%{version}.tar.bz2
Source1:	https://alioth.debian.org/download.php/1479/libmusclecard-%{version}.tar.bz2.asc
Patch0:		libmusclecard-1.3.6-pcsclite-1.6.patch
# actually, it needs 1.2.9-beta7 or higher, but I don't want
# to play with rpm e-v-r comparisons with a "beta" string in them
BuildRequires:	libpcsclite-devel >= 1.3.0

%description
The purpose of PCSC Lite is to provide a Windows(R) SCard interface in a
very small form factor for communicating to smartcards and readers.
PCSC Lite uses the same winscard api as used under Windows(R).

The %{name}-devel package contains the header files and libraries
needed for compiling PCSC Lite programs. If you want to develop PCSC Lite-aware
programs, you'll need to install this package.

This package was tested to work with A.E.T. Europe B.V. SafeSign. This
package is suported by A.E.T. Europe B.V. when used in combination with
SafeSign.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Muscle PCSC Framework for Linux libraries
Group:		System/Libraries
# up to version 1.3.0, libpcsclite had libmusclecard files
Conflicts:	pcsc-lite < 1.3.0
Provides:	libmusclecard = %{EVRD}

%description -n %{libname}
The purpose of PCSC Lite is to provide a Windows(R) SCard interface in a
very small form factor for communicating to smartcards and readers.
PCSC Lite uses the same winscard api as used under Windows(R).

The %{name}-devel package contains the header files and libraries
needed for compiling PCSC Lite programs. If you want to develop PCSC Lite-aware
programs, you'll need to install this package.

This package was tested to work with A.E.T. Europe B.V. SafeSign. This
package is suported by A.E.T. Europe B.V. when used in combination with
SafeSign.

%files -n %{libname}
%{_libdir}/libmusclecard.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files used for libmusclecard development
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains files used for libmusclecard development.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog
%doc ChangeLog.svn doc/*.pdf
%{_includedir}/PCSC/*
%{_libdir}/libmusclecard.so
%{_libdir}/pkgconfig/libmusclecard.pc
%{_sbindir}/bundleTool
%{_mandir}/man8/bundleTool.8*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
autoreconf -fi
%configure --enable-muscledropdir=%{_libdir}/pcsc/services
%make

%install
%makeinstall_std

# this file is included in %%doc
rm -rf %{buildroot}%{_prefix}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2845 |21cr|libmusicxml-3.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	3
%define	libname	%mklibname musicxml %{major}
%define	devname	%mklibname musicxml -d
%define	oname	libmusicxml2

Summary:	A toolbox to support the MusicXML format
Name:		libmusicxml
Version:	3.18
Release:	1
License:	LGPLv2.1+ and MusicXML Public License v3.0
Group:		Publishing
Url:		http://www.musicxml.com/
Source0:	https://github.com/grame-cncm/libmusicxml/archive/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-3.0.0-fix-Doxyfile.patch
BuildRequires:	cmake
BuildRequires:	doxygen

%description
MusicXML is a standard open format for exchanging digital sheet music. It was
designed from the ground up for sharing sheet music files between applications
and for archiving sheet music files for use in the future.
This package provides a complete toolbox to allow MusicXML support.

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library and XML files for MusicXML support 
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
MusicXML is a standard open format for exchanging digital sheet music.
This package contains the binary library and XML files needed to provide
MusicXML support.

%files -n %{libname}
%doc license.txt readme.md
#doc doc/introductionToMusicXML/IntroductionToMusicXML.pdf
%{_libdir}/%{oname}.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:		Development files for %{libname}
Group:			Development/C++
Requires:		%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
MusicXML is a standard open format for exchanging digital sheet music.
This package contains the development files needed to provide MusicXML
support.

%files -n %{devname}
%doc license.txt doc/html/*
%{_includedir}/%{name}/*.h
%{_libdir}/%{oname}.so
%{_datadir}/%{name}/schema/3.1/*

#------------------------------------------------------------------------------

%package tools
Summary:	Development files for %{libname}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-dtd = %{EVRD}
%rename		%{name}-examples

%description tools
MusicXML is a standard open format for exchanging digital sheet music.
This package contains sample programs and tools built with %{libname}.

%files tools
%doc license.txt
%doc doc/userSGuideToXml2ly/userSGuideToXml2ly.pdf
%{_bindir}/*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/misc
%dir %{_datadir}/%{name}/samples
%dir %{_datadir}/%{name}/xml2guido
%{_datadir}/%{name}/misc/*
%{_datadir}/%{name}/samples/*
%{_datadir}/%{name}/xml2guido/*.xml

#------------------------------------------------------------------------------

%package dtd
Summary:		Development files for %{libname}
Group:			Publishing
Requires:		%{libname} = %{EVRD}
Provides:		%{name}-dtd = %{EVRD}

%description dtd
MusicXML is a standard open format for exchanging digital sheet music.
This package contains the XML files needed to provide MusicXML support.

%files dtd
%doc dtds/3.1/README.md
%{_datadir}/%{name}/dtds/2.0
%{_datadir}/%{name}/dtds/3.0
%{_datadir}/%{name}/dtds/3.1

#------------------------------------------------------------------------------


%prep
%setup -qn %{name}-%{version}
%patch0 -p1

# Fix perms
find src/ -name "*.h" -o -name "*.cpp" | xargs chmod 0644


%build
cd build
%cmake	\
		-DCMAKE_CONFIGURATION_TYPES="Release" \
		-DLIBRARY_OUTPUT_PATH="%{_libdir}"

# HACK: Fix hardcoded library installation place in cmake_install.cmake
# because changing "LIBRARY_OUTPUT_PATH" in CMakeLists.txt file does not have any effect
sed -i 's|"${CMAKE_INSTALL_PREFIX}/lib"|"${CMAKE_INSTALL_PREFIX}/%{_lib}"|g' cmake_install.cmake
%make

# Make docs
pushd ../../doc
	doxygen -u
	doxygen Doxyfile
popd


%install
%makeinstall_std -C build/build

# Manually install various useful stuff:
# 1. Other example tools (xml2midi, xmlclone...)
mkdir -p %{buildroot}%{_bindir}
mv build/bin/xml2midi %{buildroot}%{_bindir}/
cp build/bin/{xmlclone,xmlfactory,xmliter} %{buildroot}%{_bindir}/
cp build/bin/{countnotes,partsummary,RandomMusic} %{buildroot}%{_bindir}/

# 2. Dtd files for MusicXML
mkdir -p %{buildroot}%{_datadir}/%{name}/dtds/{2.0,3.0,3.1}
cp dtds/2.0/* %{buildroot}%{_datadir}/%{name}/dtds/2.0
cp dtds/3.0/* %{buildroot}%{_datadir}/%{name}/dtds/3.0
cp -a dtds/3.1/* %{buildroot}%{_datadir}/%{name}/dtds/3.1

# 3. Sample & test files
mkdir -p %{buildroot}%{_datadir}/%{name}/samples/{musicxml,scores}
mkdir -p %{buildroot}%{_datadir}/%{name}/misc
mkdir -p %{buildroot}%{_datadir}/%{name}/xml2guido
cp files/misc/* %{buildroot}%{_datadir}/%{name}/misc/
cp -a files/samples/musicxml/* %{buildroot}%{_datadir}/%{name}/samples/musicxml/
#cp files/samples/scores/*.{gif,pdf} %%{buildroot}%%{_datadir}/%%{name}/samples/scores/
cp files/xml2guido/* %{buildroot}%{_datadir}/%{name}/xml2guido

# Drop unwanted stuff
rm -f %{buildroot}%{_prefix}/CHANGELOG.txt
rm -f %{buildroot}%{_prefix}/README.html
rm -f %{buildroot}%{_datadir}/%{name}/doc/*
rmdir %{buildroot}%{_datadir}/%{name}/doc/
rm -f %{buildroot}%{_libdir}/*.a

# Fix perms
chmod -x %{buildroot}%{_datadir}/%{name}/dtds/3.1/schema/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2846 |21cr|libmxp-0.2.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname mxp %{major}
%define devname %mklibname mxp -d

Summary:	Library that parses MXP stream
Name:		libmxp
Version:	0.2.4
Release:	6
License:	LGPLv2+
Group:		Development/C++
Url:		http://www.kmuddy.com
Source0:	http://www.kmuddy.com/libmxp/files/%{name}-%{version}.tar.gz
Patch0:		libmxp-0.2.4-optflags.patch
BuildRequires:	cmake

%description
Library that parses MXP stream.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for MXP
Group:		System/Libraries

%description -n %{libname}
This package contains library files of libmxp.

%files -n %{libname}
%{_libdir}/libmxp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MXP devellopment files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains files need to build applications using libmxp.

%files -n %{devname}
%doc ChangeLog README* NEWS
%{_libdir}/libmxp.so
%{_includedir}/libmxp/libmxp.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2847 |21cr|libnatpmp-20150609-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname natpmp %{major}
%define develname %mklibname -d natpmp
%global __strip /bin/true

Summary:     Direct concurrent to the UPnP IGD specification
Name:        libnatpmp
Version:     20150609
Release:     1
License:     LGPLv2+
Group:       System/Libraries
Url:         http://miniupnp.free.fr/
Source:      http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz
Requires:    %{libname} = %{EVRD}
Provides:    natpmp = %{EVRD}

%description
libnatpmp is an attempt to make a portable and fully compliant
implementation of the protocol for the client side. It is based on non
blocking sockets and all calls of the API are asynchronous. It is
therefore very easy to integrate the NAT-PMP code to any event driven code.

%files
%{_bindir}/*
#----------------------------------------------------

%package -n %{libname}
Summary: Direct concurrent to the UPnP IGD specification
Group: System/Libraries


%description -n %{libname}
libnatpmp is an attempt to make a portable and fully compliant
implementation of the protocol for the client side. It is based on non
blocking sockets and all calls of the API are asynchronous. It is
therefore very easy to integrate the NAT-PMP code to any event driven code.

%files -n %{libname}
%{_libdir}/*.so.%{major}
#----------------------------------------------------

%package -n %{develname}
Summary: Header files, libraries and development documentation for libnatpmp
Group: Development/C
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
Provides: natpmp-devel = %{EVRD}

%description -n %{develname} 
This package contains the header files and development documentation for
libnatpmp. If you like to develop programs using miniupnpc, you will need
to install libnatpmp-devel.

%files -n %{develname}
%{_libdir}/*.so
%{_includedir}/*.h

#----------------------------------------------------

%prep
%setup -q

%build

%make \
	LDFLAGS="%ldflags" \
	CFLAGS="-fPIC -Wall -DENABLE_STRNATPMPERR %{optflags}" \
	EXTRA_LD="%{?__global_ldflags}"

%install
%makeinstall_std \
	INSTALLPREFIX=%{buildroot}%{_prefix} \
	INSTALLDIRLIB=%{buildroot}%{_libdir} \
	INSTALLDIRINC="%{buildroot}%{_includedir}" \
	INSTALLDIRBIN="%{buildroot}%{_bindir}"

chmod 0755 %{buildroot}%{_libdir}/libnatpmp.so.1

rm -f %{buildroot}%{_libdir}/*.a


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2848 |21cr|libnbd-1.20.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude_from ^%{python3_sitearch}/lib.*\\.so

%define url_ver %(echo %{version}| cut -d. -f-2)

%define major 0
%define libname %mklibname nbd %{major}
%define devname %mklibname nbd -d

Summary:	NBD client library in userspace
Name:		libnbd
Version:	1.20.3
Release:	2
License:	LGPLv2.0+
Group:		System/Libraries
Url:		https://gitlab.com/nbdkit/libnbd
Source0:	https://download.libguestfs.org/libnbd/%{url_ver}-stable/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib-devel
BuildRequires:	perl(Pod::Man)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(fuse3)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(liburing)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
ExclusiveArch:	x86_64

%description
NBD — Network Block Device — is a protocol for accessing Block Devices
(hard disks and disk-like things) over a Network.
 
This is the NBD client library in userspace, a simple library for
writing NBD clients.
 
The key features are:
 * Synchronous and asynchronous APIs, both for ease of use and for
 writing non-blocking, multithreaded clients.
 * High performance.
 * Minimal dependencies for the basic library.
 * Well-documented, stable API.
 * Bindings in several programming languages.

#------------------------------------------------------------------

%package utils
Summary:	Utils for NBD client library in userspace
Group:		Development/Other

%description utils
NBD — Network Block Device — is a protocol for accessing Block Devices
(hard disks and disk-like things) over a Network.
 
This is the NBD client library in userspace, a simple library for
writing NBD clients.
 
The key features are:
 * Synchronous and asynchronous APIs, both for ease of use and for
 writing non-blocking, multithreaded clients.
 * High performance.
 * Minimal dependencies for the basic library.
 * Well-documented, stable API.
 * Bindings in several programming languages.

%files utils
%doc README.md
%license COPYING.LIB
%{_datadir}/bash-completion/completions/nbdcopy
%{_datadir}/bash-completion/completions/nbddump
%{_datadir}/bash-completion/completions/nbdinfo
%{_bindir}/nbdcopy
%{_bindir}/nbddump
%{_bindir}/nbdinfo
%{_mandir}/man1/nbdcopy.1*
%{_mandir}/man1/nbddump.1*
%{_mandir}/man1/nbdinfo.1*

#------------------------------------------------------------------

%package -n ocaml-%{name}
Summary:	OCaml language bindings for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n ocaml-%{name}
This package contains OCaml language bindings for %{name}.
 
%files -n ocaml-%{name}
%dir %{_libdir}/ocaml/nbd
%{_libdir}/ocaml/nbd/*.cma
%{_libdir}/ocaml/nbd/*.cmi
%{_libdir}/ocaml/nbd/META
%{_libdir}/ocaml/stublibs/dllmlnbd.so
%{_libdir}/ocaml/stublibs/dllmlnbd.so.owner

#------------------------------------------------------------------

%package -n %{libname}
Summary:	NBD client library in userspace
Group:		System/Libraries

%description -n %{libname}
NBD client library in userspace.
 
%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n ocaml-%{name}-devel
Summary:	OCaml language development package for %{name}
Group:		System/Libraries
Requires:	ocaml-%{name} = %{EVRD}

%description -n ocaml-%{name}-devel
This package contains OCaml language development package for %{name}.
Install this if you want to compile OCaml software which uses %{name}.
 
%files -n ocaml-%{name}-devel
%doc ocaml/examples/*.ml
%license ocaml/examples/LICENSE-FOR-EXAMPLES
%{_libdir}/ocaml/nbd/*.cmxa
%{_libdir}/ocaml/nbd/*.cmx
%{_libdir}/ocaml/nbd/*.a
%{_libdir}/ocaml/nbd/*.mli
%{_mandir}/man3/libnbd-ocaml.3*
%{_mandir}/man3/NBD.3*
%{_mandir}/man3/NBD.*.3*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains development headers for %{name}.

%files -n %{devname}
%doc examples/*.c
%license examples/LICENSE-FOR-EXAMPLES
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man1/%{name}-release-notes-1.*.1*
%{_mandir}/man3/%{name}.3*
%{_mandir}/man3/%{name}-security.3*
%{_mandir}/man3/nbd_*.3*

#------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 bindings for %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
It contains Python 3 bindings for %{name}.

%files -n python3-%{name}
%doc README.md
%license COPYING.LIB
%{_bindir}/nbdsh
%{_datadir}/bash-completion/completions/nbdsh
%{_mandir}/man1/nbdsh.1*
%{python3_sitearch}/%{name}mod*.so
%{python3_sitearch}/nbd.py
%{python3_sitearch}/nbdsh.py
%{python3_sitearch}/__pycache__/nbd*.py*

#------------------------------------------------------------------

%package -n nbdfuse
Summary:	FUSE support for %{name}
Group:		System/Libraries
Recommends:	fuse

%description -n nbdfuse
This package contains FUSE support for %{name}.

%files -n nbdfuse
%doc README.md
%license COPYING.LIB
%{_bindir}/nbdfuse
%{_datadir}/bash-completion/completions/nbdfuse
%{_mandir}/man1/nbdfuse.1*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
LDFLAGS=$(echo %{ldflags} |sed "s/-Wl,--no-undefined//")
autoreconf -fi
%configure
%make

%install
%make_install

rm -f %{buildroot}%{_mandir}/man3/libnbd-golang.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2849 |21cr|libndpi-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%define _disable_ld_no_undefined 1

%define major 4
%define libname %mklibname ndpi %{major}
%define develname %mklibname ndpi -d
%define static %mklibname ndpi -s -d


Summary:	Open source deep packet inspection
Name:		libndpi
Version:	4.4
Release:	1
License:	LGPLv3
Group:		System/Libraries
URL:		http://www.ntop.org/products/ndpi/
Source0:	https://github.com/ntop/nDPI/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	json-c-devel
BuildRequires:	pcap-devel

%description
nDPI is a ntop-maintained superset of the popular OpenDPI library. Released
under the GPL license, its goal is to extend the original library by adding
new protocols that are otherwise available only on the paid version of OpenDPI.
In addition to Unix platforms, we also support Windows, in order to provide
you a cross-platform DPI experience. Furthermore, we have modified nDPI do be
more suitable for traffic monitoring applications, by disabling specific
features that slow down the DPI engine while being them un-necessary for
network traffic monitoring.

nDPI is used by both ntop and nProbe for adding application-layer detection of
protocols, regardless of the port being used. This means that it is possible
to both detect known protocols on non-standard ports (e.g. detect http non
ports other than 80), and also the opposite (e.g. detect Skype traffic on port
80). This is because nowadays the concept of port=application no longer holds.

%files
%{_bindir}/ndpiReader
%{_datadir}/ndpi/


#---------------------------------------------------------------------------
%package -n %{static}
Summary:	Open source deep packet inspection static library
Group:		Development/Other
Provides:	ndpi-static-devel = %{EVRD}
Provides:	%{name}-static-devel

%description -n %{static}
nDPI is a ntop-maintained superset of the popular OpenDPI library. Released
under the GPL license, its goal is to extend the original library by adding
new protocols that are otherwise available only on the paid version of OpenDPI.
In addition to Unix platforms, we also support Windows, in order to provide
you a cross-platform DPI experience. Furthermore, we have modified nDPI do be
more suitable for traffic monitoring applications, by disabling specific
features that slow down the DPI engine while being them un-necessary for
network traffic monitoring.

nDPI is used by both ntop and nProbe for adding application-layer detection of
protocols, regardless of the port being used. This means that it is possible
to both detect known protocols on non-standard ports (e.g. detect http non
ports other than 80), and also the opposite (e.g. detect Skype traffic on port
80). This is because nowadays the concept of port=application no longer holds.

This package provides the static %{name} library.

%files -n %{static}
%{_libdir}/*.*a

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Open source deep packet inspection library
Group:		System/Libraries

%description -n %{libname}
nDPI is a ntop-maintained superset of the popular OpenDPI library. Released
under the GPL license, its goal is to extend the original library by adding
new protocols that are otherwise available only on the paid version of OpenDPI.
In addition to Unix platforms, we also support Windows, in order to provide
you a cross-platform DPI experience. Furthermore, we have modified nDPI do be
more suitable for traffic monitoring applications, by disabling specific
features that slow down the DPI engine while being them un-necessary for
network traffic monitoring.

nDPI is used by both ntop and nProbe for adding application-layer detection of
protocols, regardless of the port being used. This means that it is possible
to both detect known protocols on non-standard ports (e.g. detect http non
ports other than 80), and also the opposite (e.g. detect Skype traffic on port
80). This is because nowadays the concept of port=application no longer holds.

This package provides the shared %{name} library.

%files -n %{libname}
%doc README* COPYING
%{_libdir}/*.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{develname}
Summary:	Header files and libraries for developing applications for nDPI
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
nDPI is a ntop-maintained superset of the popular OpenDPI library. Released
under the GPL license, its goal is to extend the original library by adding
new protocols that are otherwise available only on the paid version of OpenDPI.
In addition to Unix platforms, we also support Windows, in order to provide
you a cross-platform DPI experience. Furthermore, we have modified nDPI do be
more suitable for traffic monitoring applications, by disabling specific
features that slow down the DPI engine while being them un-necessary for
network traffic monitoring.

nDPI is used by both ntop and nProbe for adding application-layer detection of
protocols, regardless of the port being used. This means that it is possible
to both detect known protocols on non-standard ports (e.g. detect http non
ports other than 80), and also the opposite (e.g. detect Skype traffic on port
80). This is because nowadays the concept of port=application no longer holds.


These are the header files and libraries for developing applications for %{name}.

%files -n %{develname}
%doc README* CHANGELOG.md
%{_includedir}/ndpi/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n nDPI-%{version}

sed -i src/lib/Makefile.in -e "s|^prefix *= .*|prefix = %{_prefix}|" -e "s|^libdir *= .*|libdir = %{_libdir}|"

%build
export LIBS="-lpthread"
export DESTDIR=%{buildroot}
aclocal
autoreconf -vfi
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--enable-shared \
	--enable-static

%make_build

%install
%make_install DESTDIR=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2850 |21cr|libnetfilter_log-1.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname netfilter_log %{major}
%define libnamedevel %mklibname netfilter_log -d

Summary:	Netfilter userspace packet logging library
Name:		libnetfilter_log
Version:	1.0.1
Release:	6
Group:		System/Libraries
License:	GPL
URL:		http://www.netfilter.org/projects/libnetfilter_log/index.html
Source0:	http://www.netfilter.org/projects/libnetfilter_log/files/libnetfilter_log-%{version}.tar.bz2
Source1:	http://www.netfilter.org/projects/libnetfilter_log/files/libnetfilter_log-%{version}.tar.bz2.sig
Patch0:		libnetfilter_log-1.0.1-linkage_fix.diff
BuildRequires:	pkgconfig(libnfnetlink) >= 0.0.41
BuildRequires:	autoconf automake libtool

%description
libnetfilter_log is a userspace library providing interface to packets that
have been logged by the kernel packet filter. It is is part of a system that
deprecates the old syslog/dmesg based packet logging. This library has been
previously known as libnfnetlink_log.

%package -n %{libname}
Summary:	Netfilter userspace packet logging library
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Provides:	netfilter_log = %{version}-%{release}

%description -n %{libname}
libnetfilter_log is a userspace library providing interface to packets that
have been logged by the kernel packet filter. It is is part of a system that
deprecates the old syslog/dmesg based packet logging. This library has been
previously known as libnfnetlink_log.

%package -n %{libnamedevel}
Summary:        Development files for %{name}
Group:          System/Libraries
Provides:	netfilter_log-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{libnamedevel}
This package contains the development files for %{name}.

%prep
%setup -q
%patch0 -p0

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.la

%files -n %{libname}
%doc COPYING
%{_libdir}/*.so.%{major}*

%files -n %{libnamedevel}
%{_includedir}/libnetfilter_log
%{_libdir}/*.so
%{_libdir}/pkgconfig/libnetfilter_log.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2851 |21cr|libnids-1.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname nids %{major}
%define devname %mklibname nids -d

Summary:	Library that provides functions of Network Intrusion Detection System 
Name:		libnids
Version:	1.26
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://libnids.sourceforge.net/
Source0:	https://github.com/MITRECND/libnids/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libnids-1.18-libnet_config.diff
Patch1:		libnids-1.19-x86-pic.diff
Patch2:		libnids-1.24-inline.patch
BuildRequires:	libpcap-devel
BuildRequires:	libnet-devel
BuildRequires:	pkgconfig(glib-2.0)

%description
Libnids is an implementation of an E-component of Network Intrusion Detection
System. It emulates the IP stack of Linux 2.0.x. Libnids offers IP
defragmentation, TCP stream assembly and TCP port scan detection.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A shared Library that provides functions of Network Intrusion Detection System
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Libnids is a library that provides a functionality of one of NIDS (Network
Intrusion Detection System) components, namely E-component. It means that
libnids code watches all local network traffic, cooks received datagrams a bit
(quite a bit ;)), and provides convenient information on them to analyzing
modules of NIDS.

%files -n %{libname}
%doc CHANGES README CREDITS MISC
%{_libdir}/libnids.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libnids is a library that provides a functionality of one of NIDS (Network
Intrusion Detection System) components, namely E-component. It means that
libnids code watches all local network traffic, cooks received datagrams a bit
(quite a bit ;)), and provides convenient information on them to analyzing
modules of NIDS.

This package contains the static library and header files for %{name}.

%files -n %{devname}
%doc CHANGES README CREDITS MISC doc/*
%{_libdir}/libnids.a
%{_libdir}/libnids.so
%{_includedir}/nids.h
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1

# fix soname
perl -pi -e "s|^LIBSHARED.*|LIBSHARED = libnids.so.%{major}|g" src/Makefile.in

%build
libtoolize --copy --force; aclocal; autoconf

export CFLAGS="%{optflags} -fPIC"

%configure \
    --enable-shared \
    --enable-static

%make shared static

%install
%makeinstall

mv %{buildroot}%{_libdir}/libnids.so.%{major} \
    %{buildroot}%{_libdir}/libnids.so.%{major}.0

ln -snf libnids.so.%{major}.0 %{buildroot}%{_libdir}/libnids.so.%{major}
ln -snf libnids.so.%{major} %{buildroot}%{_libdir}/libnids.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2852 |21cr|libnotifymm-0.7.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define api 1.0
%define major 7
%define libname %mklibname notifymm %{api} %{major}
%define devname %mklibname notifymm %{api} -d

Summary:	C++ interface for libnotify
Name:		libnotifymm
Version:	0.7.0
Release:	5
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.gnome.org
Source:		http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libnotify)

%description
Libnotifymm provides a C++ interface to the libnotify library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for libnotify
Group:		System/Libraries
Provides:	%{name}%{api} = %{EVRD}

%description -n %{libname}
Libnotifymm provides a C++ interface to the libnotify library.

This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc COPYING README
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/*.so
%{_libdir}/%{name}-%{api}
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-documentation
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2853 |21cr|libnvme-1.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define nvme %mklibname nvme %{major}
%define nvme_mi %mklibname nvme-mi %{major}
%define devname %mklibname nvme -d

# meson build with python3 fail with undefined reference, 
#need add link with libpython3.so
%bcond_with python

Summary:	Linux-native nvme device management library
Name:		libnvme
Version:	1.6
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/linux-nvme/libnvme
Source0:	https://github.com/linux-nvme/libnvme/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	gcc gcc-c++
%if %{with python}
BuildRequires:	swig
BuildRequires:	pkgconfig(python3)
%endif
BuildRequires:	meson
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(uuid)

%description
Provides type definitions for NVMe specification structures,
enumerations, and bit fields, helper functions to construct,
dispatch, and decode commands and payloads, and utilities to connect,
scan, and manage nvme devices on a Linux system.

#------------------------------------------------------------------

%package -n %{nvme}
Summary:	Linux-native nvme device management library
Group:		System/Libraries

%description -n %{nvme}
Provides type definitions for NVMe specification structures,
enumerations, and bit fields, helper functions to construct,
dispatch, and decode commands and payloads, and utilities to connect,
scan, and manage nvme devices on a Linux system.

%files -n %{nvme}
%{_libdir}/libnvme.so.%{major}*

#------------------------------------------------------------------

%package -n %{nvme_mi}
Summary:	Linux-native nvme device management library
Group:		System/Libraries

%description -n %{nvme_mi}
Provides type definitions for NVMe specification structures,
enumerations, and bit fields, helper functions to construct,
dispatch, and decode commands and payloads, and utilities to connect,
scan, and manage nvme devices on a Linux system.

%files -n %{nvme_mi}
%{_libdir}/libnvme-mi.so.%{major}*

#-------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{nvme} = %{EVRD}
Requires:	%{nvme_mi} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides header files to include and libraries to link with
for Linux-native nvme device management.

%files -n %{devname}
%license COPYING ccan/licenses/*
%dir %{_includedir}/nvme
%{_includedir}/libnvme.h
%{_includedir}/libnvme-mi.h
%{_includedir}/nvme/*.h
%{_libdir}/libnvme-mi.so
%{_libdir}/libnvme.so
%{_libdir}/pkgconfig/*.pc

#-------------------------------------------------------------

%package doc
Summary:	Reference manual for libnvme
Group:		Documentation
BuildRequires:	perl
BuildRequires:	python3-sphinx
BuildRequires:	python3-sphinx_rtd_theme
BuildArch:	noarch

%description doc
This package contains the reference manual for %{name}.

%files doc
%doc %{_docdir}/%{name}
%{_mandir}/man2/*.2*

#-------------------------------------------------------------

%if %{with python}
%package -n python3-libnvme
Summary:	Python3 bindings for libnvme
Requires:	%{nvme} = %{EVRD}
Provides:	python3-nvme = %{EVRD}

%description -n python3-libnvme
This package contains Python bindings for libnvme.

%files -n python3-libnvme
%dir %{python3_sitearch}/libnvme
%{python3_sitearch}/libnvme/*
%endif

#-------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
	-Ddocs=all			\
	-Ddocs-build=true		\
	-Dhtmldir=%{_docdir}/%{name}	\
%if %{with python}
	-Dpython=enabled	\
%else
	-Dpython=disabled	\
%endif
	%{nil}
%meson_build

%install
%meson_install
install -pm 644 README.md %{buildroot}%{_pkgdocdir}
install -pm 644 doc/config-schema.json %{buildroot}%{_docdir}/libnvme
mv %{buildroot}%{_docdir}/libnvme/nvme/html %{buildroot}%{_docdir}/libnvme/html
rm -rf %{buildroot}%{_docdir}/libnvme/nvme
mv %{buildroot}/usr/*.rst %{buildroot}%{_docdir}/libnvme

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2854 |21cr|libnxml-0.18.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname nxml %{major}
%define devname %mklibname nxml -d

Summary:	A C library for parsing, writing and creating XML 1.0 and 1.1 files or streams
Name:		libnxml
Version:	0.18.3
Release:	11
License:	LGPLv2+
Group:		System/Libraries
Url:		http://autistici.org/bakunin/codes.php
Source0:	http://www.autistici.org/bakunin/libnxml/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openssl)

%description
nXML is a C library for parsing, writing and creating XML 1.0 and
1.1 files or streams. It supports utf-8, utf-16be and utf-16le,
ucs-4 (1234, 4321, 2143, 2312).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C library for parsing, writing and creating XML 1.0 and 1.1 files or streams
Group:		System/Libraries

%description -n %{libname}
nXML is a C library for parsing, writing and creating XML 1.0 and
1.1 files or streams. It supports utf-8, utf-16be and utf-16le,
ucs-4 (1234, 4321, 2143, 2312).

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/libnxml.so.%{major}
%{_libdir}/libnxml.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
nXML is a C library for parsing, writing and creating XML 1.0 and
1.1 files or streams. It supports utf-8, utf-16be and utf-16le,
ucs-4 (1234, 4321, 2143, 2312).

This package contains the static %{name} library and its header
files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/nxml.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2855 |21cr|libofa-0.9.3-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ofa %{major}
%define devname %mklibname ofa -d

Summary:	Open Fingerprint Architecture library
Name:		libofa
Version:	0.9.3
Release:	23
License:	GPLv2+
Group:		System/Libraries
URL:		http://code.google.com/p/musicip-libofa/
Source0:	http://musicip-libofa.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		libofa-build-fix.patch
Patch1:		libofa-gcc43.diff
Patch2:		libofa-0.9.3-pkgconfig-drop-expat.patch
Patch3:		libofa-0.9.3-curl.patch
Patch4:		libofa-0.9.3-fedora-gcc47.patch
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(libcurl)

%description
Currently, MusicDNS and the Open Fingerprint Architecture are being used to:

	* identify duplicate tracks, even when the metadata is different, MusicIP
	  identifies the master recording.
	* fix metadata
	* find out more about tracks by connecting to MusicBrainz- the worlds
	  largest music metabase community

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Open Fingerprint Architecture library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n	%{libname}
Currently, MusicDNS and the Open Fingerprint Architecture are being used to:

	* identify duplicate tracks, even when the metadata is different, MusicIP
	  identifies the master recording.
	* fix metadata
	* find out more about tracks by connecting to MusicBrainz- the worlds
	  largest music metabase community

%files -n %{libname}
%doc AUTHORS README COPYING
%{_libdir}/libofa.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Files needed for developing applications which use libofa
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n	%{devname}
The %{name}-devel package includes the header files and .so libraries
necessary for developing libofa enabled tagging applications.

If you are going to develop libofa enabled tagging applications you should
install this package.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/pkgconfig/libofa.pc
%{_libdir}/libofa.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2856 |21cr|liboil-0.3.17-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define apiver 0.3
%define major 0
%define libname %mklibname oil %{apiver} %{major}
%define devname %mklibname oil -d


Summary:	Optimized functions for multimedia calculations
Name:		liboil
Version:	0.3.17
Release:	10
License:	BSD
Group:		System/Libraries
Url:		http://liboil.freedesktop.org
Source0:	http://liboil.freedesktop.org/download/%{name}-%{version}.tar.gz
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(glib-2.0)

%description
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to
floating-poing numbers or multiplying and summing an array of N
numbers. Clearly such functions are candidates for significant
optimization using various techniques, especially by using extended
instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Optimized functions for multimedia calculations
Group:		System/Libraries

%description -n %{libname}
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to
floating-poing numbers or multiplying and summing an array of N
numbers. Clearly such functions are candidates for significant
optimization using various techniques, especially by using extended
instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/liboil-%{apiver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Optimized functions for multimedia calculations
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	oil-devel = %{EVRD}

%description -n %{devname}
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to
floating-poing numbers or multiplying and summing an array of N
numbers. Clearly such functions are candidates for significant
optimization using various techniques, especially by using extended
instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).

%files -n %{devname}
%doc AUTHORS COPYING
%{_includedir}/liboil*
%{_libdir}/liboil*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/liboil


#----------------------------------------------------------------------------

%package tools
Summary:	Optimized functions for multimedia calculations
Group:		System/Libraries

%description tools
Liboil is a library of simple functions that are optimized for various
CPUs. These functions are generally loops implementing simple
algorithms, such as converting an array of N integers to
floating-poing numbers or multiplying and summing an array of N
numbers. Clearly such functions are candidates for significant
optimization using various techniques, especially by using extended
instructions provided by modern CPUs (Altivec, MMX, SSE, etc.).

This contains the binaries that are bundled with %{name}.

%files tools
%doc AUTHORS COPYING
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2857 |21cr|libol-0.3.18-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ol %{major}
%define devname %mklibname ol -d

Summary:	Nonblocking I/O and OO library
Name:		libol
Version:	0.3.18
Release:	10
License:	GPL
Group:		System/Libraries
Url:		http://www.balabit.hu/downloads/libol/0.3/
Source0:	http://www.balabit.hu/downloads/libol/0.3/%{name}-%{version}.tar.bz2

%description
Nonblocking I/O and OO library. It is needed to build syslog-ng,
the new generation syslog.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Nonblocking I/O and OO library. This package contains the libraries
Group:		System/Libraries

%description -n %{libname}
Nonblocking I/O and OO library. It is needed to build syslog-ng,
the new generation syslog.

%files -n %{libname}
%{_libdir}/libol.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Nonblocking I/O and OO library. Devel files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Nonblockin I/O and OO library. It is needed to build syslog-ng,
the new generation syslog.

%files -n %{devname}
%{_bindir}/*
%{_includedir}/libol/
%{_libdir}/libol.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall
rm -f %{buildroot}%{_bindir}/make_class


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2858 |21cr|liboobs-3.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname oobs-1_ %{major}
%define devname %mklibname oobs-1 -d

Summary:	System configuration backend library
Name:		liboobs
Version:	3.0.0
Release:	5
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/liboobs/%(echo %{version} |cut -d. -f1-2)/%{name}-%{version}.tar.bz2
Patch0:		liboobs-2.22.2-format-strings.patch
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(system-tools-backends-2.0)

%description
Liboobs is a wrapping library to the System Tools Backends, it will
provide easy to access GObjects to system configuration details, like
users, groups and network interfaces, it will handle sessions with the
backend and data consistency too.

It is used by LXQt.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	System configuration backend shared library
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/liboobs-1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files of the system configuration backend library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc AUTHORS NEWS README ChangeLog
%{_datadir}/gtk-doc/html/liboobs
%{_includedir}/liboobs-1.0/
%{_libdir}/liboobs-1.so
%{_libdir}/pkgconfig/liboobs-1.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-gtk-doc

%make LIBS='-lgobject-2.0 -lglib-2.0'

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2859 |21cr|libopenmpt-0.7.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname openmpt %{major}
%define	devname	%mklibname openmpt -d

Summary:	A C/C++ library to decode tracker music module (MOD) files
Name:		libopenmpt
Version:	0.7.7
Release:	1
License:	BSD
Group:		Sound
Url:		https://lib.openmpt.org/libopenmpt/
Source0:	https://lib.openmpt.org/files/libopenmpt/src/%{name}-%{version}+release.autotools.tar.gz
# Need to be rediffed at every version update
Patch0:		libopenmpt-0.7.7-drop-release.autotools-from-package-version.patch
BuildRequires:	gcc-c++
BuildRequires:	chrpath
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(flac) >= 1.3.0
BuildRequires:	pkgconfig(libmpg123) >= 1.14.0
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(portaudiocpp)
BuildRequires:	pkgconfig(sdl2) >= 2.0.4
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)

%description
This is a cross-platform C++ and C library to decode tracked music files into
a raw PCM audio stream. It is based on the player code of the OpenMPT project
(Open ModPlug Tracker). In order to avoid code base fragmentation, the library
is developed in the same source code repository as OpenMPT.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary: A C/C++ library to decode tracker music module (MOD) files
Group:	System/Libraries

%description -n %{libname}
A cross-platform C++ and C library to decode tracked music files into a raw
PCM audio stream. This package contains the actual library.

%files -n %{libname}
%doc LICENSE README.md
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n openmpt123
Summary: Command-line tracker music player based on %{libname}
Group:	Sound

%description -n openmpt123
This is a cross-platform command-line or terminal based player for tracker
music (MOD) module files. It uses %{libname}.

%files -n openmpt123
%doc LICENSE
%{_bindir}/openmpt123
%{_mandir}/man1/openmpt123.1*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary: Development files for the libopenmpt library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	openmpt-devel = %{EVRD}

%description -n %{devname}
Files needed when building software using %{libname}.

%files -n %{devname}
%doc LICENSE examples
%doc doxygen-doc/html
%{_includedir}/%{name}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}+release.autotools

sed -i 's/\r$//' LICENSE

# Drop useless hidden file
rm -f examples/.clang-format


%build
%configure	--disable-static \
			--with-sdl2 \
			--enable-doxygen-dot \
			--enable-doxygen-man
%make

# Build docs
doxygen -u Doxyfile
doxygen Doxyfile


%install
%makeinstall_std

chrpath --delete %{buildroot}%{_bindir}/openmpt123

# We pick up docs with our macro
rm -rf %{buildroot}%{_docdir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2860 |21cr|libopenrazer-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname openrazer %{major}
%define devname %mklibname openrazer -d

Summary:	Qt wrapper around the D-Bus API from OpenRazer
Name:		libopenrazer
Version:	0.2.0
Release:	1
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		https://github.com/z3ntu/libopenrazer
Source0:	https://github.com/z3ntu/libopenrazer/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	qt5-linguist
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Qt wrapper around the D-Bus API from OpenRazer.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development libraries and header files for %{name}
Group:		System/Libraries

%description -n %{libname}
Qt wrapper around the D-Bus API from OpenRazer.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Qt wrapper around the D-Bus API from OpenRazer.

%files -n %{devname}
%{_includedir}/%{name}*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2861 |21cr|libopenshot-0.2.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 21
%define libname %mklibname openshot %{major}
%define devname %mklibname openshot -d
%global _disable_ld_no_undefined 1

Summary:	Library for creating and editing videos
Name:		libopenshot
Version:	0.2.7
Release:	2
License:	LGPLv3+
Group:		System/Libraries
Url:		http://www.openshot.org
Source0:	https://github.com/OpenShot/libopenshot/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	swig >= 2.0
BuildRequires:	ffmpeg-devel
BuildRequires:	gomp-devel
BuildRequires:	openshot-audio-devel >= 0.2.0
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(ImageMagick) >= 7.0
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(libzmq)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	python3egg(setuptools)

%description
OpenShot Library (libopenshot) is an open-source project dedicated to
delivering high quality video editing, animation, and playback solutions to
the world. For more information visit <http://www.openshot.org/>.

#----------------------------------------------------

%package -n %{libname}
Summary:	OpenShot Library
Group:		System/Libraries

%description -n %{libname}
OpenShot Library (libopenshot) is an open-source project dedicated to
delivering high quality video editing, animation, and playback solutions to
the world. For more information visit <http://www.openshot.org/>.
This package contains library files for %{name}.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libopenshot.so.%{version}
%{_libdir}/libopenshot.so.%{major}

#----------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	openshot-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc AUTHORS COPYING
%{_includedir}/%{name}/
%{_libdir}/libopenshot.so

#----------------------------------------------------

%package python3
Summary:	Python 3 bindings for %{name}
Group:		Development/Python
Requires:	python3
Provides:	python3-openshot = %{EVRD}
# forced egg info provided
Provides:	python3egg(openshot) = %{EVRD}


%description python3
The python3-%{name} package contains python 3 bindings for
applications that use %{name}.

%files python3
%doc AUTHORS COPYING
%{py3_platsitedir }/*

#----------------------------------------------------

%package ruby
Summary:	Ruby bindings for %{name}
Group:		Development/Ruby
Requires:	ruby

%description ruby
Ruby bindings for applications that use %{name}.

%files ruby
%doc AUTHORS COPYING
%{ruby_vendorarchdir}/*

#----------------------------------------------------

%prep
%autosetup -p1


%build 
export CXXFLAGS="%{optflags} -Wl,--as-needed %{ldflags}"
%cmake -DDISABLE_BUNDLED_JSONCPP=ON
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2862 |21cr|libopenshot-audio-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname openshot-audio %{major}
%define devname %mklibname openshot-audio -d

Summary:	OpenShot Audio Library
Name:		libopenshot-audio
Version:	0.2.2
Release:	1
License:	GPLv3+
# The package contains audio stuff, but it is used only by openshot
Group:		Video
Url:		http://www.openshot.org
Source0:	https://github.com/OpenShot/libopenshot-audio/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	cmake
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)

%description
OpenShot Audio Library.

%files
%doc AUTHORS COPYING
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	OpenShot Audio Library
Group:		System/Libraries

%description -n %{libname}
OpenShot Audio Library.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development and header files for the OpenShot Audio Library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	openshot-audio-devel = %{EVRD}

%description -n %{devname}
Development and header files for the OpenShot Audio Library.

%files -n %{devname}
%doc AUTHORS COPYING
%{_libdir}/%{name}.so
%{_includedir}/%{name}/
%{_libdir}/cmake/OpenShotAudio/*.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="-ldl"

# 32 bit 
%ifarch %{ix86}
%cmake -DCMAKE_C_FLAGS="%{optflags} -msse4.1" \
	-DCMAKE_CXX_FLAGS="%{optflags} -msse4.1" \
	-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed" 
%else
%cmake
%endif

%make -s

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2863 |21cr|libopensi-1.0-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Library for OpenSi
Name:		libopensi
Version:	1.0
Release:	23
Source0:	http://download.gna.org/opensi/%{name}/%{name}-%{version}.tgz
License:	MPL
Group:		System/Libraries
Url:		http://opensi.org/
BuildRequires:	firefox-devel
Requires:	firefox

%description
Library for OpenSi.

%prep
%setup -q -n %{name}

%build

%install
# Jar for the translation
mkdir -p %{buildroot}%{firefox_mozillapath}/chrome/
cp -r `pwd`  %{buildroot}%{firefox_mozillapath}/chrome/
# installed-chrome.txt addition
mkdir -p %{buildroot}%{firefox_mozillapath}/chrome/rc.d/
cat << EOF > %{buildroot}%{firefox_mozillapath}/chrome/rc.d/10_%{name}.txt
content,install,url,resource:/chrome/libopensi/content/libopensi/
EOF

%files
%{firefox_mozillapath}/chrome/libopensi
%{firefox_mozillapath}/chrome/rc.d/*.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2864 |21cr|libopensync-0.22-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If you are thinking of upgrading opensync to 0.3x, please be
# prepared to justify yourself to those who actually use it. i.e.,
# you are going to need to prove that it's a) better, b) works, and
# c) won't eat anyone's data, or else be prepared to lose some major
# appendages. - AdamW 2008/03

%define major 0
%define libname %mklibname opensync %{major}
%define devname %mklibname opensync -d

%define with_python 0
%{?_without_python: %{expand: %%global _with_python 0}}

Summary:	Multi-platform PIM synchronization framework
Name:		libopensync
Epoch:		1
Version:	0.22
Release:	29
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.opensync.org/
Source0:	http://www.opensync.org/download/releases/%{version}/%{name}-%{version}.tar.bz2
Patch0:		libopensync-python-lib-check-lib64.patch
Patch1:		libopensync-linkage_fix.diff
Patch2:		libopensync-python-fix.patch
Patch3:		libopensync-swig-fix.patch
Patch4:		libopensync-0.22-unusedvar.patch
Patch5:		libopensync-swig-fix2.patch

BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(python2)

%description
OpenSync is a synchronization framework that is platform and distribution
independent. It consists of several plugins that can be used to connect to
devices, a powerful sync-engine and the framework itself.  The synchronization
framework is kept very flexible and is capable of synchronizing any type of
data, including contacts, calendar, tasks, notes and files.

%files
%{_bindir}/*
%{_libdir}/opensync
%{_libexecdir}/osplugin

#--------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#-------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#-------------------------------------------------------------

%if %{with_python}
%package python
Summary:	Python bindings for %{name}
Group:		Development/Python
BuildRequires:	swig
BuildRequires:	pkgconfig(python)

%description python
Python bindings for %{name}.

%files python
%{py2_platsitedir}/*
%endif

#-------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
autoreconf -fi
export CFLAGS="%{optflags} -Wno-error"
%configure \
	--disable-static \
%if %{with_python}
	--enable-python \
	--with-python=%{__python2} \
%endif
	--disable-debug \
	--enable-engine \
	--enable-tools

%make pythondir=%{py2_platsitedir}

%install
%makeinstall_std pythondir=%{py2_platsitedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2865 |21cr|libopensync-plugin-google-calendar-0.22.1-0.3218.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn 3218

Summary:	OpenSync plugin for Google Calendar
Name:		libopensync-plugin-google-calendar
Version:	0.22.1
Epoch:		1
Release:	0.%{svn}.6
License:	GPLv2+
Group:		Office
Url:		http://www.opensync.org
# For SVN:
# svn co http://svn.opensync.org/branches/branch-0.2X/plugins/google-calendar libopensync-plugin-google-calendar
Source0:	http://www.opensync.org/download/releases/%{name}-%{svn}.tar.lzma
BuildRequires:	pkgconfig(opensync-1.0) < 0.30
BuildRequires:	python-httplib2
Requires:	python-httplib2
Requires:	python
Requires:	libopensync >= %{epoch}:0.22

%description
This plugin allows applications using OpenSync to synchronise with Google
Calendar.

%files
%doc README
%{_libdir}/opensync/plugins/*
%{_datadir}/opensync/defaults/*
%{_libdir}/opensync/google-cal-helper

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
autoreconf -i
# google-cal-helper is installed to libexecdir, we don't want it just
# in /usr/lib... - AdamW 2008/03
%configure --libexecdir=%{_libdir}/opensync
%make

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2866 |21cr|liboping-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname %mklibname oping %{major}
%define devname %mklibname oping -d

Summary:	Library to generate ICMP echo requests
Name:		liboping
Version:	1.10.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
URL:		http://noping.cc
Source0:	http://noping.cc/files/%{name}-%{version}.tar.bz2
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	perl-devel
BuildRequires:	ncurses-devel

%description
liboping is a C library to generate ICMP echo requests, better known as "ping
packets". It is intended for use in network monitoring applications or
applications that would otherwise need to fork ping(1) frequently. Included is
a sample application, called oping, which demonstrates the library's abilities.
It is like ping, ping6, and fping rolled into one. 

#-----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Library to generate ICMP echo requests
Group:          System/Libraries

%description -n	%{libname}
liboping is a C library to generate ICMP echo requests, better known as "ping
packets". It is intended for use in network monitoring applications or
applications that would otherwise need to fork ping(1) frequently. Included is
a sample application, called oping, which demonstrates the library's abilities.
It is like ping, ping6, and fping rolled into one. 

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/lib*.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Static library and header files for the liboping library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	oping-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
liboping is a C library to generate ICMP echo requests, better known as "ping
packets". It is intended for use in network monitoring applications or
applications that would otherwise need to fork ping(1) frequently. Included is
a sample application, called oping, which demonstrates the library's abilities.
It is like ping, ping6, and fping rolled into one. 

This package contains header files for the liboping library.

%files -n %{devname}
%attr(0755,root,root) %{_libdir}/*so
%attr(0644,root,root) %{_includedir}/*.h
%attr(0644,root,root) %{_mandir}/man3/*
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%package -n	oping
Summary:	The oping utility demonstrates the liboping library's abilities
Group:		Networking/Other

%description -n	oping
The oping utility demonstrates the liboping library's abilities. It is like
ping, ping6, and fping rolled into one. 

%files -n oping
%{_bindir}/oping
%{_bindir}/noping
%{_mandir}/man8/*

#-----------------------------------------------------------------------------

%package perl
Group:          Networking/IRC
Summary:        %{name} perl plugin
Requires:       %libname = %{EVRD}

%description perl
This package allow %{name} to use perl scripts

%files perl
%{perl_vendorarch}/*

#-----------------------------------------------------------------------------

%prep

%setup -q
sed -i 's/-Werror//g' src/Makefile.*
sed -i 's|/usr/local||g' bindings/perl/Makefile.PL

%build
%configure --disable-static
%make -C src
%make -C bindings perl/Makefile
cd bindings/perl
%{__perl} Makefile.PL INSTALLDIRS=vendor TOP_BUILDDIR=..
%make


%install
%makeinstall_std

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2867 |21cr|liborigin-20101029-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname origin2_ %{major}
%define devname %mklibname origin -d

Summary:	Library for reading OriginLab OPJ project files
Name:		liborigin
Version:	20101029
Release:	6
License:	GPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/%{name}/
Source0:	http://belnet.dl.sourceforge.net/sourceforge/liborigin/%{name}2-%{version}.tar.gz
BuildRequires:	boost-devel
BuildRequires:	qt4-devel

%description
A library for reading OriginLab OPJ project files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries
Conflicts:	%{_lib}origin1 < 20101029-2
Obsoletes:	%{_lib}origin1 < 20101029-2

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/liborigin2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	origin-devel = %{EVRD}

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}.

%files -n %{devname}
%doc COPYING README FORMAT
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/*.hh
%{_libdir}/%{name}2.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}2-%{version}

chmod 0644 *.cpp *.h

%build
%qmake_qt4
%make

%install
#install headers, *.hpp is not needed (or is it ??)
mkdir -p %{buildroot}%{_includedir}/%{name}
rm -f *.hpp
for n in *.h* ; do
    install -m 644 $n %{buildroot}%{_includedir}/%{name}
done

# install libs, preserving links
mkdir -p %{buildroot}%{_libdir}
for n in liborigin2.so* ; do
    cp -d $n %{buildroot}%{_libdir}
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2868 |21cr|libosmo-dsp-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libname %mklibname osmodsp %{major}
%define devname %mklibname osmodsp -d
%define uname   Osmo-DSP

Name:             libosmo-dsp
Summary:          A library with SDR DSP primitives
Version:          0.4.0
Release:          1
License:          GPLv2+
Group:            Communications
URL:              http://cgit.osmocom.org/libosmo-dsp/
# git clone git://git.osmocom.org/libosmo-dsp && cd libosmo-dsp
# git checkout %%{version} && cd ..
# tar --exclude='.git' -cjf libosmo-dsp-%%{version}.tar.bz2 libosmo-dsp/
Source0:          %{name}-%{version}.tar.bz2

BuildRequires:    autoconf
BuildRequires:    automake
BuildRequires:    libtool
BuildRequires:    pkgconfig(fftw3)
BuildRequires:    doxygen
BuildRequires:    graphviz

%description
A library with SDR DSP primitives.

%package -n %{libname}
Summary:          A library with SDR DSP primitives
Group:            Communications
Obsoletes:        %{_lib}libosmo-dsp0 < 0.3-3

%description -n %{libname}
Library files for libosmo-dsp.

%package -n %{devname}
Summary:          Development files for libosmo-dsp
Group:            Development/Other
Requires:         %{libname} = %{version}-%{release}
Provides:         %{name}-devel = %{version}-%{release}
Provides:         osmo-dsp-devel = %{version}-%{release}
Obsoletes:        %{_lib}libosmo-dsp-devel < 0.3-3

%description -n %{devname}
Development files for libosmo-dsp.

%package doc
Summary:          Documentation for osmo-dsp
Group:            Documentation
BuildArch:        noarch

%description doc
HTML documentation for osmo-dsp.

%prep
%setup -q -n %{name}

%build
autoreconf -fi
%configure --disable-static

%make_build LDFLAGS="${LDFLAGS} -lm"

%install
%make_install

# remove libtool
find %{buildroot} -name '*.la' -delete

# fix docs location
mkdir -p %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_datadir}/doc/libosmodsp %{buildroot}%{_docdir}/%{name}/html

cat > %{name}-doc.desktop << EOF
[Desktop Entry]
Version=1.0
Name=%{uname} Documentation
GenericName=%{uname} Documentation
Exec=xdg-open /usr/share/doc/%{name}/html/index.html
Icon=
Terminal=false
Type=Application
Categories=System;Documentation;X-Mageia-CrossDesktop;
EOF

desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications %{name}-doc.desktop

%files -n %{libname}
%doc AUTHORS
%{_libdir}/*.so.%{major}{,.*}

%files -n %{devname}
%{_includedir}/osmocom
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

%files doc
%dir %{_docdir}/%{name}/html
%{_docdir}/%{name}/html/*
%{_datadir}/applications/%{name}-doc.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2869 |21cr|libowfat-0.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

%define major 0
%define libname %mklibname owfat %{major}
%define devname %mklibname owfat -d

Summary:	Reimplement libdjb under GPL
Name:		libowfat
Version:	0.33
Release:	1
License:	GPLv2+
Group:		Development/C
Url:		http://www.fefe.de/libowfat/
Source0:	http://www.fefe.de/%{name}/%{name}-%{version}.tar.xz
Patch1:		libowfat-0.33-debug.patch
Patch2:		libowfat-0.33-shared.patch
Patch3:		libowfat-0.30-gcc10.patch
Patch4:		libowfat-0.33-multiple-definitions.patch
BuildRequires:	dietlibc-devel >= 0.33
ExclusiveArch:	%{ix86} %{x86_64}

%description
libowfat is a library of general purpose APIs extracted from Dan
Bernstein's software, reimplemented and covered by the GNU General
Public License Version 2 (no later versions).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libowfat shared libraries
Group:		System/Servers

%description -n %{libname}
This package contains libowfat shared libraries.

%files -n %{libname}
%doc CHANGES README
%{_libdir}/libowfat.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and static lib for libowfat development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 0.29
Conflicts:	%{name}-devel < 0.29

%description -n %{devname}
Install this package if you want do compile applications using the
libowfat library.

%files -n %{devname}
%{_libdir}/libowfat.so
%{_includedir}/%{name}/*.h
%{_libdir}/dietlibc/lib/libowfat.a
%{_libdir}/dietlibc/include/%{name}/*.h
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q

cp GNUmakefile GNUmakefile.static
%apply_patches

%build
make -f GNUmakefile \
	DIET=''

%install
make -f GNUmakefile \
	DIET='' \
	prefix=%{buildroot}%{_prefix} \
	MAN3DIR=%{buildroot}%{_mandir}/man3 \
	LIBDIR=%{buildroot}%{_libdir} \
	install

make -f GNUmakefile clean
rm -f Makefile
cp -f GNUmakefile.static GNUmakefile

make -f GNUmakefile \
	prefix="%{_libdir}/dietlibc" \
	DIET="%{_bindir}/diet -Os"

install -d %{buildroot}%{_libdir}/dietlibc
make -f GNUmakefile \
	prefix="%{buildroot}%{_libdir}/dietlibc" \
	LIBDIR="%{buildroot}%{_libdir}/dietlibc/lib" \
	DIET="%{_bindir}/diet -Os" \
	MAN3DIR="%{buildroot}%{_mandir}/man3" \
	install

chmod 0755 %{buildroot}%{_libdir}/libowfat.so.%{version}
ln -s libowfat.so.%{version} %{buildroot}%{_libdir}/libowfat.so.%{major}
ln -s libowfat.so.%{version} %{buildroot}%{_libdir}/libowfat.so

# fix conflicting file (from openssl-devel)
mv %{buildroot}%{_mandir}/man3/buffer.3 \
	%{buildroot}%{_mandir}/man3/buffer-libowfat.3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2870 |21cr|libpacketstream-0.1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname packetstream %{major}
%define devname %mklibname packetstream -d

Summary:	Interface of the packetstream thread-safe ring buffer
Name:		libpacketstream
Version:	0.1.4
Release:	5
License:	MIT
Group:		System/Libraries
Url:		https://github.com/ienorand/packetstream
Source0:	https://nodeload.github.com/ienorand/packetstream/tarball/%{name}-%{version}.tar.bz2
BuildRequires:	cmake

%description
Interface of the 'packetstream' thread-safe ring buffer.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Conflicts:	%{name} < 0.1.4-2
Obsoletes:	%{name} < 0.1.4-2

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libpacketstream.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 0.1.4-2

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}

%files -n %{devname}
%{_libdir}/libpacketstream.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
rm -fr debian

%build
%cmake -DMLIBDIR=%{_lib}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2871 |21cr|libpam-pwdfile-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{mdvver} >= 202310
%define pamdir %{_libdir}/security
%else
%define pamdir /%{_lib}/security
%endif

Summary:	PAM module to login by PIN or password from file
Name:		libpam-pwdfile
Version:	2.0
Release:	2
License:	GPL
Group:		System/Libraries
Url:		https://git.tiwe.de/libpam-pwdfile.git/
Source0:	https://git.tiwe.de/libpam-pwdfile.git/snapshot/libpam-pwdfile-%{version}.tar.gz
BuildRequires:	pkgconfig(libxcrypt)
BuildRequires:	pam-devel

%description
PAM module to login by PIN or password from file

#------------------------------------------------------------------

%package -n pam_pwdfile
Summary:	PAM module to login by PIN or password from file
Summary(ru_RU.UTF-8):	PAM-модуль для аутентификации по пин-коду или паролю из файла

%description -n pam_pwdfile
PAM module to login by PIN or password from file

%description -n pam_pwdfile -l ru_RU.UTF-8
PAM-модуль для аутентификации по пин-коду или паролю из файла

%files -n pam_pwdfile
%{pamdir}/pam_pwdfile.so

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
%make_build

%install
%make_install PAM_LIB_DIR=%{pamdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2872 |21cr|libpcd-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	2
%define libname %mklibname pcd %{major}

Summary:	Library for decoding PhotoCD images
Name:		libpcd
Version:	1.0.1
Release:	10
License:	GPL
Group:		Graphics
URL:		http://linux.bytesex.org/fbida/libpcd.html
Source:		http://dl.bytesex.org/releases/%{name}/%{name}_%{version}.tar.bz2
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
%{name} is a tiny library for decoding PhotoCD images. It used to come
bundled with xpcd, but software maintainer decided to release the library
separately after declaring xpcd obsolete.


%package	-n %{libname}
Summary:	Library for decoding PhotoCD images
Group:		Graphics
Provides:	%{name} = %{version}-%{release}

%description	-n %{libname}
%{name} is a tiny library for decoding PhotoCD images. It used to come
bundled with xpcd, but software maintainer decided to release the library
separately after declaring xpcd obsolete.

%package	-n %{libname}-devel
Summary:	Development related files of %{name}
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}

%description	-n %{libname}-devel
%{name} is a tiny library for decoding PhotoCD images. It used to come
bundled with xpcd, but software maintainer decided to release the library
separately after declaring xpcd obsolete.

This package contains all files you need to compile applications/libraries
that has Photo CD image support.

%prep
%setup -q

%build
export CFLAGS="%optflags"
%make

%install
rm -rf %{buildroot}
%makeinstall

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%doc README
%{_libdir}/lib*.so.*

%files -n %{libname}-devel
%defattr(-,root,root)
%doc pcd.css pcd.html
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/lib*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2873 |21cr|libperseus-sdr-0.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define perseussdr_group perseususb
%define major 0
%define libname %mklibname perseus-sdr %{major}
%define devname %mklibname -d perseus-sdr

Name:           libperseus-sdr
Version:        0.8.2
Release:        1%{?dist}
Summary:        Perseus Software Defined Radio Control Library
License:        GPL-3.0-only
Group:          Communications
URL:            https://github.com/Microtelecom/libperseus-sdr
#Git-Clone:     https://github.com/Microtelecom/libperseus-sdr.git
Source:         https://github.com/Microtelecom/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  git-core
BuildRequires:  vim-common
BuildRequires:  libtool
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(udev)
BuildRequires:  gomp-devel
Requires:       udev

%description
Perseus Software Defined Radio Control Library.

%package -n	%{libname}
Summary:        Perseus Software Defined Radio Control Library
Group:          System/Libraries


%description -n	%{libname}
Libraries for applications that want to
make use of libperseus-sdr.

%package -n	%{devname}
Summary:        Development files for libperseus-sdr
Group:          System/Libraries
Requires:       %{libname} = %{EVRD}

%description -n	%{devname}
Libraries and header files for developing applications that want to
make use of libperseus-sdr.

%package tools
Summary:        Tools for Perseus SDR
Group:          Communications

%description tools
Tools for Perseus SDR devices.

%package doc
Summary:        Documentation for Perseus SDR

%description doc
Documentation for Perseus SDR

%prep
%autosetup -p1

sed -i 's!UNKNOWNx!%{version}!g' build-aux/git-version-gen
#
%build
# Do not optimize for current cpu
sed -i "s|-march=native||g" configure.ac
autoreconf -iv
%configure
%make_build

%install
%make_install
find %{buildroot} -type f \( -name '*.a' -o -name '*.la' \) -delete -print
install -Dm0644 95-perseus.rules %{buildroot}%{_udevrulesdir}/95-perseus.rules
cp %{_builddir}/%{name}-%{version}/*.h %{buildroot}/%{_includedir}
rm %{buildroot}/%{_bindir}/*

%pre tools
getent group %{perseussdr_group} >/dev/null || groupadd -r %{perseussdr_group}

%files -n %{libname}
%{_libdir}/libperseus-sdr.so.%{major}*

%files tools
%{_udevrulesdir}/95-perseus.rules

%files -n %{devname}
%license COPYING.LESSER
%{_libdir}/pkgconfig/libperseus-sdr.pc
%{_libdir}/libperseus-sdr.so
%{_includedir}/perseus-sdr.h
%{_includedir}/perseus-in.h
%{_includedir}/perseusfx2.h
%{_includedir}/config.h
%{_includedir}/fpga_data.h

%files doc
%doc AUTHORS README.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2874 |21cr|libpng12-1.2.59-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname_orig libpng
%define major 0
%define libname %mklibname png %{major}

%define oldmajor 3
%define oldlib %mklibname png %{oldmajor}

Summary:	A library of functions for manipulating PNG image format files
Name:		libpng12
Version:	1.2.59
Release:	2
Epoch:		2
License:	zlib
Group:		System/Libraries
Url:		http://www.libpng.org/pub/png/libpng.html
Source0:	http://prdownloads.sourceforge.net/libpng/libpng-%{version}.tar.xz
Source1:	libpng12.rpmlintrc
# (tpg) APNG support http://littlesvr.ca/apng/
# (tpg) http://hp.vector.co.jp/authors/VA013651/freeSoftware/apng.html
# (tpg) http://sourceforge.net/projects/libpng-apng/ <- use this one
Patch0:		libpng-%{version}-apng.patch.gz
Patch1:		libpng-1.2.36-pngconf-setjmp.patch
Patch2:		libpng-1.2.44-CVE-2008-6218.diff
Patch4:		libpng12-CVE-2013-6954.patch
Patch5:		libpng-1.2.50-CVE-2013-7353.patch
Patch6:		libpng-1.2.50-CVE-2013-7354.patch
Patch7:		CVE-2018-13785.patch
BuildRequires:	pkgconfig(zlib)

%description
The libpng package contains a library of functions for creating and
manipulating PNG (Portable Network Graphics) image format files.  PNG is
a bit-mapped graphics format similar to the GIF format.  PNG was created to
replace the GIF format, since GIF uses a patented data compression
algorithm.

Libpng should be installed if you need to manipulate PNG format image
files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library of functions for manipulating PNG image format files
Group:		System/Libraries
Conflicts:	%{oldlib} < 2:1.2.46-5
# Canon proprietary driver requires libpng, so provide it
Provides:	libpng = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libpng.

%files -n %{libname}
%{_libdir}/libpng12.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{oldlib}
Summary:	A library of functions for manipulating PNG image format files
Group:		System/Libraries

%description -n %{oldlib}
This package contains the library needed to run programs dynamically
linked with really old versions of libpng.

%files -n %{oldlib}
%{_libdir}/libpng.so.%{oldmajor}*

#----------------------------------------------------------------------------

%prep
%setup -q -n libpng-%{version}
%patch0 -p1 -b .apng
%patch1 -p0 -b .pngconf-setjmp
%patch2 -p0 -b .CVE-2008-6218
%patch4 -p1 -b .CVE-2013-6954
%patch5 -p0 -b .CVE-2013-7353
%patch6 -p0 -b .CVE-2013-7354
%patch7 -p1 -b .CVE-2018-13785

%build
export CONFIGURE_TOP=`pwd`

mkdir -p shared
pushd shared
CFLAGS="%{optflags} -funroll-loops" \
%configure \
	--with-pic \
	--disable-static
%make
popd

%install
%makeinstall_std -C shared

rm -rf %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_libdir}/*.so
rm -rf %{buildroot}%{_libdir}/*.la
rm -rf %{buildroot}%{_libdir}/pkgconfig
rm -rf %{buildroot}%{_datadir}

%check
make -C shared check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2875 |21cr|libpng15-compat-1.5.17-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libpng

%define major 15
%define libname %mklibname png %{major}

Summary:	A library of functions for manipulating PNG image format files
Name:		libpng15-compat
Version:	1.5.17
Release:	7
Epoch:		2
License:	zlib
Group:		System/Libraries
URL:		http://www.libpng.org/pub/png/libpng.html
Source0:	http://prdownloads.sourceforge.net/libpng/files/%{oname}-%{version}.tar.xz
# (tpg) APNG support http://littlesvr.ca/apng/
# (tpg) http://hp.vector.co.jp/authors/VA013651/freeSoftware/apng.html
# (tpg) http://sourceforge.net/projects/libpng-apng/ <- use this one
Patch0:		http://downloads.sourceforge.net/libpng-apng/files/libpng-devel/%{version}/%{oname}-%{version}-apng.patch.gz
Patch2:		libpng-1.5.4-fix-cmake-files-libpath.patch
Patch3:		libpng-1.5.17-fix-libdir-pkgconfig-lib64-conflict.diff
BuildRequires:	cmake
BuildRequires:	pkgconfig(zlib)

%description
The libpng package contains a library of functions for creating and
manipulating PNG (Portable Network Graphics) image format files.  PNG is
a bit-mapped graphics format similar to the GIF format.  PNG was created to
replace the GIF format, since GIF uses a patented data compression
algorithm.

Libpng should be installed if you need to manipulate PNG format image
files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library of functions for manipulating PNG image format files
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libpng.

%files -n %{libname}
%{_libdir}/libpng%{major}.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1 -b .apng
%patch2 -p0 -b .fix-cmake-files-libpath
%patch3 -p1 -b .lib64~

%build
export CFLAGS="%{optflags} -O3 -funroll-loops"

%cmake \
  -DPNG_SHARED:BOOL=ON \
  -DPNG_STATIC:BOOL=OFF
%make

%install
%makeinstall_std -C build

# Drop devel files
rm -rf %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_libdir}/pkgconfig
rm -rf %{buildroot}%{_libdir}/*.so
rm -rf %{buildroot}%{_libdir}/libpng/
rm -rf %{buildroot}%{_mandir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2876 |21cr|libppd-0.10-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname ppd %{major}
%define devname %mklibname ppd -d

Summary:	Library for handling PPD (PostScript Printer Description) files
Name:		libppd
Version:	0.10
Release:	20
License:	GPLv2+
Group:		Publishing
Url:		http://sourceforge.net/projects/lpr/
Source0:	http://sourceforge.net/projects/lpr/libppd-0.10.tar.bz2
Patch0:		libppd_0.10-7.2.diff.gz
BuildRequires:	pkgconfig(glib-2.0)

%description
libppd is a library for handling PPD (PostScript Printer Description)
files, its functions parse the files, list printer options and choices
described in the files to set up GUIs for printing, and it inserts
PostScript commands into PostScript files so that the option settings
of the user are applied to the PostScript print job.

#----------------------------------------------------------------------------

%package -n ppdfilt
Summary:	Sets options according to a PPD file in a PostScript file
Group:		Publishing

%description -n ppdfilt
ppdfilt is a filter which takes PostScript as input, inserts
PostScripy code according to a PPD file and user-supplied option
settings, and puts out the result. Sending a so prepared PostScript
file to the printer to which the PPD file belongs, the printer does
the job with the options as set by the user.

%files -n ppdfilt
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/postscript

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for handling PPD (PostScript Printer Description) files
Group:		Publishing

%description -n %{libname}
libppd is a library for handling PPD (PostScript Printer Description)
files, its functions parse the files, list printer options and choices
described in the files to set up GUIs for printing, and it inserts
PostScript commands into PostScript files so that the option settings
of the user are applied to the PostScript print job.

%files -n %{libname}
%{_libdir}/libppd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and links to compile against the "%{libname}" library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains all files which one needs to compile programs using
the "%{libname}" library.

%files -n %{devname}
%doc AUTHORS ChangeLog TODO
%{_includedir}/*.h
%{_libdir}/*.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure \
	--disable-static \
	--with-glib=2
# Parallel build is not safe: tested by AdamW 2007/07
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2877 |21cr|libpq++-4.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname pq++ %{major}
%define devname %mklibname pq++ -d

Summary:	C++ interface for PostgreSQL
Name:		libpq++
Version:	4.0
Release:	20
License:	BSD
Group:		System/Libraries
Url:		http://gborg.postgresql.org/project/libpqpp/projdisplay.php
Source0:	%{name}-%{version}.tar.bz2
Patch0:		libpq++-4.0-Makefile.patch
Patch1:		libpq++-4.0-gcc43.patch
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(openssl)

%description
This is the C++ interface that has shipped as part of PostgreSQL
until v7.2.3.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for PostgreSQL
Group:		System/Libraries

%description -n %{libname}
This is the C++ interface that has shipped as part of PostgreSQL
until v7.2.3.

%files -n %{libname}
%doc CHANGES README
%{_libdir}/lib*.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	pq++-devel = %{EVRD}
Provides:	libpq++-devel = %{EVRD}

%description -n %{devname}
This is the C++ interface that has shipped as part of PostgreSQL
until v7.2.3.

This package contains the %{name} library and its header files
needed to compile applications such as PowerDNS, etc.

%files -n %{devname}
%doc docs/*
%{_includedir}/pgsql/*.h
%{_includedir}/pgsql/libpq++/*.h
%{_libdir}/lib*.so
%{_libdir}/lib*.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

%build
%serverbuild

%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} %{ldflags} -fPIC"

%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}/pgsql/libpq++

install -m644 libpq++.h %{buildroot}%{_includedir}/pgsql/
install -m644 pgconnection.h %{buildroot}%{_includedir}/pgsql/libpq++/
install -m644 pgdatabase.h %{buildroot}%{_includedir}/pgsql/libpq++/
install -m644 pgtransdb.h %{buildroot}%{_includedir}/pgsql/libpq++/
install -m644 pgcursordb.h %{buildroot}%{_includedir}/pgsql/libpq++/
install -m644 pglobject.h %{buildroot}%{_includedir}/pgsql/libpq++/

install -m755 libpq++.so.%{major}.0 %{buildroot}%{_libdir}/
install -m755 libpq++.a %{buildroot}%{_libdir}/
ln -s libpq++.so.%{major}.0 %{buildroot}%{_libdir}/libpq++.so.%{major}
ln -s libpq++.so.%{major}.0 %{buildroot}%{_libdir}/libpq++.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2878 |21cr|libpri-1.4.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define beta beta3
%define major 1
%define libname %mklibname pri %{major}
%define develname %mklibname pri -d

Summary:	An implementation of Primate and Basic Rate ISDN
Name:		libpri
Version:	1.4.15
Release:	%{?beta:0.0.%{beta}.}1
License:	GPL
Group:		System/Libraries
URL:		http://www.asterisk.org/
Source0:	http://downloads.asterisk.org/pub/telephony/libpri/%{name}-%{version}%{?beta:-%{beta}}.tar.gz
Patch0:		libpri-mdv_conf.diff
BuildRequires:	dahdi-devel
BuildRequires:	zapata-devel

%description
libpri is a C implementation of the Primary Rate ISDN specification. It was
based on the Bellcore specification SR-NWT-002343 for National ISDN. As of May
12, 2001, it has been tested work with NI-2, Nortel DMS-100, and Lucent 5E
Custom protocols on switches from Nortel and Lucent.

%package -n	%{libname}
Summary:	An implementation of Primate and Basic Rate ISDN
Group:          System/Libraries

%description -n	%{libname}
libpri is a C implementation of the Primary Rate ISDN specification. It was
based on the Bellcore specification SR-NWT-002343 for National ISDN. As of May
12, 2001, it has been tested work with NI-2, Nortel DMS-100, and Lucent 5E
Custom protocols on switches from Nortel and Lucent.

%package -n	%{develname}
Summary:	Development libraries and headers for %{name}
Group:		Development/C
Provides:	pri-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n	%{develname}
libpri is an implementation of the Primary Rate ISDN specification (based on
the ITU and Bellcore specifications). It supports Lucent 4e and 5e, Nortel
DMS-100, and National ISDN switchtypes.

This package contains all of the development files that you will need in order
to compile %{name} applications.

%package	utils
Summary:	Various tools for %{name} diagnostics
Group:		System/Libraries

%description	utils
Various tools for %{name} diagnostics

%prep

%setup -q -n %{name}-%{version}%{?beta:-%{beta}}

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type d -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;
		
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%patch0 -p0

# lib64 fix
find -name "Makefile" | xargs perl -pi -e 's|\$\(INSTALL_BASE\)/lib|\$\(INSTALL_BASE\)/%{_lib}|g'

%build

%make RPM_OPT_FLAGS="%{optflags} -fPIC -DPIC -D_REENTRANT"
%make RPM_OPT_FLAGS="%{optflags} -fPIC -DPIC -D_REENTRANT" pridump pritest

%install
install -d %{buildroot}%{_sbindir}

make \
    INSTALL_PREFIX="%{buildroot}" \
    install

install -m0755 pridump %{buildroot}%{_sbindir}/
install -m0755 pritest %{buildroot}%{_sbindir}/

%files utils
%{_sbindir}/pridump
%{_sbindir}/pritest

%files -n %{libname}
%doc ChangeLog README TODO
%{_libdir}/lib*.so.%{major}*

%files -n %{develname}
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2879 |21cr|libptytty-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define libname	%mklibname ptytty %{major}
%define devname	%mklibname ptytty -d

Name:    libptytty
Version: 2.0
Release: 1
Summary: OS independent and secure pty/tty and utmp/wtmp/lastlog handling
License: GPLv2+
Group:   System/Libraries
URL:     http://software.schmorp.de/
Source0: http://dist.schmorp.de/%{name}/%{name}-%{version}.tar.gz

BuildRequires: cmake
BuildRequires: gnupg2
#BuildRequires: git
BuildRequires: ninja

%global desc \
libptytty is a small library that offers pseudo-tty management in an \
OS-independent way.  It also offers session database support (utmp and \
optional wtmp/lastlog updates for login shells) and supports fork'ing after \
startup and dropping privileges in the calling process.  Libptytty is \
written in C++, but it also offers a C-only API. \
%{nil}

%description %{desc}

%package -n %{libname}
Summary: OS independent and secure pty/tty and utmp/wtmp/lastlog handling
Provides: %{name} = %{version}-%{release}

%description -n %{libname}
%{desc}

%package -n %{devname}
Summary: Development headers for libptytty
Group: Development/Other
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %{devname}
%{desc}

%prep
%autosetup -p1

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

%files -n %{libname}
%license COPYING
%{_libdir}/libptytty.so.%{major}{,.*}

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libptytty.so
%{_libdir}/pkgconfig/libptytty.pc
%{_mandir}/man3/*
%doc Changes
%doc README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2880 |21cr|libqb0-0.14.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define version	0.14.4
%define release	4
%define develname %mklibname -d qb
%define name	%mklibname qb %major

Name:           %name
Version:        %version
Release:        %release
Summary:        An IPC library for high performance servers
Group:          System/Libraries
License:        LGPLv2+
URL:            https://github.com/asalkeld/libqb/wiki
Source0:        https://fedorahosted.org/releases/q/u/quarterback/libqb-%{version}.tar.gz

BuildRequires:  autoconf automake libtool doxygen procps check-devel

%description
%{name} provides high performance client server reusable features.
Initially these are IPC and poll.


%package 	devel
Group:		Development/C
Summary:	Development files for libqb
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{name} = %{version}

%description 	devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}

%files devel
%doc README.markdown
%{_includedir}/qb/
%{_libdir}/libqb.so
%{_libdir}/pkgconfig/libqb.pc
%{_mandir}/man3/qb*3*
%{_mandir}/man8/qb*8*
%{_sbindir}/qb-blackbox

%prep
%setup -q -n libqb-%{version}

%build
./autogen.sh
%configure --disable-static 
%make

%install
#make install DESTDIR=%{buildroot}
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
rm -rf %{buildroot}/%{_docdir}/*

%files
%doc COPYING
%{_libdir}/libqb.so.*

%changelog
* Thu Feb 09 2012 Anton Kirilenko <anton.kirilenko@rosalab.ru> 0.10.0-0
+ Revision: 772333
- new upstream version

* Wed Jan 11 2012 Anton Kirilenko <anton.kirilenko@rosalab.ru> 0.8.1-1.14
+ Revision: 759702
- New upstream release: updated to 0.8.1

* Wed Dec 14 2011 Anton Kirilenko <anton.kirilenko@rosalab.ru> 0.7.0-1.13
+ Revision: 741160
- Initial package
- Created package structure for libqb.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2881 |21cr|libqb-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An IPC library for high performance servers
Name:		libqb
Version:	1.0.5
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/asalkeld/libqb/wiki
Source0:	https://fedorahosted.org/releases/q/u/quarterback/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	procps
BuildRequires:	pkgconfig(check)

%description
%{libname} provides high performance client server reusable features.
Initially these are IPC and poll.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	An IPC library for high performance servers
Group:		System/Libraries

%description -n %{libname}
%{libname} provides high performance client server reusable features.
Initially these are IPC and poll.

%files -n %{libname}
%doc COPYING README.markdown
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libqb
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}qb0-devel < 1.0.5
Obsoletes:	%{_lib}qb0-devel < 1.0.5

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{libname}

%files -n %{devname}
%doc COPYING README.markdown
%{_includedir}/qb/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/qb*3*
%{_mandir}/man8/qb*8*
%{_sbindir}/qb-blackbox

#------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2882 |21cr|libqtbamf-0.2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname qtbamf %{major}
%define devname %mklibname qtbamf -d
%define qmlname %mklibname qtbamf-qml

Summary:	Qt binding and QML plugin for bamf
Name:		libqtbamf
Version:	0.2.2
Release:	7
License:	LGPLv3+ and GPLv3+
Group:		System/Libraries
Url:		http://launchpad.net/bamf-qt
Source0:	%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM - libqtbamf-cmake-libdir-fix.patch nmarques@opensuse.org -- Fixes $LIBDIR for file installation, upstreamed (lp#784262)
Patch0:		libqtbamf-cmake-libdir-fix.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtDeclarative)

%description
Qt binding and QML plugin for the bamf dbus daemon semi-automatically
generated with qdbusxml2cpp and matching the GObject library structure.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt binding and for bamf - shared libraries
Group:		System/Libraries
Requires:	%{qmlname}

%description -n %{libname}
Qt binding and for the bamf dbus daemon semi-automatically generated with
qdbusxml2cpp and matching the GObject library structure.

%files -n %{libname}
%doc COPYING-GPL3 COPYING-LGPL3 README
%{_libdir}/libQtBamf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Qt binding and QML plugin for bamf - development files
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Qt binding and QML plugin for the bamf dbus daemon semi-automatically
generated with qdbusxml2cpp and matching the GObject library structure.

%files -n %{devname}
%{_includedir}/QtBamf/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libqtbamf.pc

#----------------------------------------------------------------------------

%package -n %{qmlname}
Summary:	QML plugin for bamf
Group:		System/Libraries
Conflicts:	%{_lib}qtbamf1 < 0.2.2-4

%description -n %{qmlname}
QML plugin for the bamf dbus daemon semi-automatically generated with
qdbusxml2cpp and matching the GObject library structure.

%files -n %{qmlname}
%{_libdir}/qt4/plugins/imports/bamf/

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
export BUILD_GLOBAL=true
%cmake \
	-Dlibdir=%{_libdir} \

%make

%install
# .pc file hack
sed -i 's/libdir=\${exec_prefix}\/lib/libdir=\${exec_prefix}\/%{_lib}/g' libqtbamf.pc
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2883 |21cr|libqtgconf-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname qtgconf %{major}
%define devname %mklibname qtgconf -d

Summary:	Qt binding and QML plugin for GConf
Name:		libqtgconf
Version:	0.1
Release:	6
License:	LGPLv2+
Url:		http://launchpad.net/gconf-qt
Group:		System/Libraries
Source0:	%{name}-%{version}.tar.bz2
# PATCH-FIX-OPENSUSE - libqtgconf-cmake-libdir-fix.patch nmarques@opensuse.org -- not again...
Patch0:		%{name}-cmake-libdir-fix.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtDeclarative)

%description
Simple Qt binding and QML plugin for GConf, written as a thin wrapper on top
of libgq-gconf (see http://maemo.org/packages/view/libgq-gconf0/).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt binding and QML plugin for GConf - shared libraries
Group:		System/Libraries

%description -n %{libname}
Simple Qt binding and QML plugin for GConf, written as a thin wrapper on top
of libgq-gconf (see http://maemo.org/packages/view/libgq-gconf0/).

%files -n %{libname}
%doc COPYING README
%{_libdir}/libQtGConf.so.%{major}*
%{_libdir}/qt4/plugins/imports/

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Qt binding and QML plugin for GConf - development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Simple Qt binding and QML plugin for GConf, written as a thin wrapper on top
of libgq-gconf (see http://maemo.org/packages/view/libgq-gconf0/).

%files -n %{devname}
%{_includedir}/QtGConf/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libqtgconf.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
export BUILD_GLOBAL=true
%cmake \
	-Dlibdir=%{_libdir} \

%make

%install
pushd build
# .pc file hack
sed -i 's/libdir=\${exec_prefix}\/lib/libdir=\${exec_prefix}\/%{_lib}/g' ../libqtgconf.pc
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2884 |21cr|libqtshadowsocks-2.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libQtShadowsocks

%define major 2
%define libname %mklibname QtShadowsocks %{major}
%define develname %mklibname -d QtShadowsocks %{major}

%define debug_package %{nil}

Name:		libqtshadowsocks
Version:	2.1.0
Release:	3
License:	LGPLv3+
Summary:	A Shadowsocks library written in C++/Qt5
Url:		https://github.com/librehat/%{oname}
Group:		Networking/Other
Source:		https://github.com/shadowsocks/%{oname}/archive/v%{version}.tar.gz
Patch0:		libqtshadowsocks2-botan2-header.patch
BuildRequires:	gcc-c++
BuildRequires:	qt5-devel
BuildRequires:	cmake
BuildRequires:	pkgconfig(botan-2)

%description
A lightweight and ultra-fast shadowsocks client and/or server written in C++
with Qt 5.

%package -n shadowsocks-libqss
Summary:	A Shadowsocks client and/or server written in C++/Qt5

%description -n shadowsocks-libqss
A lightweight and ultra-fast shadowsocks client and/or server written in C++
with Qt 5.

%package -n %{libname}
Summary:	A Shadowsocks library written in C++/Qt5
Group:		System/Libraries

%description -n %{libname}
libQtShadowsocks is a lightweight library for shadowsocks.

It is written in C++ using Qt5 frameworks. Therefore, the
major purpose of this project is to provide a
developer-friendly shadowsocks library, mainly for Qt
applications, i.e. shadowsocks-qt5.

The client utilises this library. You can check the code
to see how to use libQtShadowsocks in your project.
client can also be used as both Shadowsocks local client
and Shadowsocks server.

%package -n %{develname}
Summary:	Development headers for libQtShadowsocks
Group:		Development/C++ 
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
This package provides development headers for libQtShadowsocks.

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake ..
%make

%install
%makeinstall_std -C build

%files -n shadowsocks-libqss
%doc README.md
%{_bindir}/shadowsocks-libqss

%files -n %{libname}
%{_libdir}/libQtShadowsocks.so.%{major}*
%doc LICENSE README.md

%files -n %{develname}
%doc README.md
%{_includedir}/QtShadowsocks
%{_libdir}/libQtShadowsocks.so
%{_libdir}/pkgconfig/QtShadowsocks.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2885 |21cr|libqtxdg-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname Qt5Xdg %{major}
%define devname %mklibname Qt5Xdg -d
%define libiconname %mklibname Qt5XdgIconLoader %{major}
%define deviconname %mklibname Qt5XdgIconLoader -d
%define oldlibname %mklibname qtxdg %{major}
%define olddevname %mklibname qtxdg -d

Summary:	Library providing freedesktop.org specs implementations for Qt
Name:		libqtxdg
Version:	3.4.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/libqtxdg/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch100:	libqtxdg-3.3.0-use-xvt.patch
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	magic-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Library providing freedesktop.org specs implementations for Qt.

%files
%doc AUTHORS CHANGELOG COPYING Digia-Qt-LGPL-Exception-1.1 README.md
%{_bindir}/qtxdg-desktop-file-start
%{_bindir}/qtxdg-iconfinder
%{_bindir}/qtxdg-mat
%{_qt5_plugindir}/iconengines/libQt5XdgIconPlugin.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing freedesktop.org specs implementations for Qt
Group:		System/Libraries
Obsoletes:	%{_lib}Qt5Xdg2 < 3.0
%rename		%{oldlibname}

%description -n %{libname}
Library providing freedesktop.org specs implementations for Qt.

%files -n %{libname}
%doc COPYING
%{_libdir}/libQt5Xdg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{olddevname}

%description -n %{devname}
Development files (Headers etc.) for %{name}, a library providing
freedesktop.org specs implementations for Qt.

%files -n %{devname}
%doc COPYING
%{_includedir}/qt5xdg/
%{_libdir}/libQt5Xdg.so
%{_libdir}/pkgconfig/Qt5Xdg.pc
%{_datadir}/cmake/qt5xdg

#----------------------------------------------------------------------------

%package -n %{libiconname}
Summary:	Qt5XdgIconLoader library
Group:		System/Libraries
Obsoletes:	%{_lib}Qt5XdgIconLoader2 < 3.0

%description -n %{libiconname}
Qt5XdgIconLoader library.

%files -n %{libiconname}
%doc COPYING
%{_libdir}/libQt5XdgIconLoader.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deviconname}
Summary:	Development files for Qt5XdgIconLoader library
Group:		Development/C
Requires:	%{libiconname} = %{EVRD}

%description -n %{deviconname}
Development files (Headers etc.) for  Qt5XdgIconLoader library.

%files -n %{deviconname}
%doc COPYING
%{_includedir}/qt5xdgiconloader
%{_libdir}/libQt5XdgIconLoader.so
%{_libdir}/pkgconfig/Qt5XdgIconLoader.pc
%{_datadir}/cmake/qt5xdgiconloader

#----------------------------------------------------------------------------

%prep
%setup -q
%patch100 -p1

%build
%cmake \
	-DBUILD_TESTS=ON \
	-DBUILD_DEV_UTILS=ON
%make

%install
%makeinstall_std -C build

# Fix up the pkgconfig file...
sed -i -e 's,\${prefix}/%{_libdir},\${prefix}/%{_lib},g' "%{buildroot}"%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2886 |21cr|libqwt5-5.2.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname qwt
%define major 5

%define libname %mklibname qwt %{major}
%define libnamedev %mklibname qwt5 -d

Name:		libqwt5
Version:	5.2.2
Release:	12
Summary:	2D plotting widget extension to the Qt GUI
License:	Qwt License 1.0
Group:		System/Libraries
Url:		http://sourceforge.net/projects/qwt
Source:		http://freefr.dl.sourceforge.net/sourceforge/qwt/%realname-%{version}.tar.bz2
Patch0:		qwt-5.2.2-qwtconfig-installbase.patch
BuildRequires:	qt4-devel

%description
Qwt is an extension to the Qt GUI library from Troll Tech AS.
The Qwt library contains widgets and components which are
primarily useful for technical and scientifical purposes.
It includes a 2-D plotting widget, different kinds of sliders,
and much more.

#------------------------------------------------------------------------------

%if "%{_lib}" != "lib"
%package -n %{libname}
Summary: 2D plotting widget extension to the Qt GUI
Group: System/Libraries

%description -n %{libname}
Qwt is an extension to the Qt GUI library from Troll Tech AS.
The Qwt library contains widgets and components which are
primarily useful for technical and scientifical purposes.
It includes a 2-D plotting widget, different kinds of sliders,
and much more.

This package provides the runtime library.
%endif

%files -n %{libname}
%doc CHANGES COPYING README
%{_qt_libdir}/libqwt.so.%{major}*

#------------------------------------------------------------------------------


%package -n %{libnamedev}
Summary: Development tools for programs which uses Qwt Widget set
Group: System/Libraries
Requires: %{libname} = %{version}
Provides: libqwt5-devel = %{version}-%{release}
Provides: qwt5-devel =  %{version}-%{release}
Conflicts: libqwt-devel >= 6.0.1

%description -n %{libnamedev}
The libqwt-devel package contains the header files and static libraries
necessary for developing programs using the Qwt Widget set

If you want to develop programs which will use this set of widgets,
you should install this package. You need also to install the libqwt package.

%files -n %{libnamedev}
%doc COPYING 
%doc examples
%docdir %{_qt_docdir}/html/
%{_qt_docdir}/html/qwt/
%{_qt_includedir}/*
%{_qt_libdir}/*.so
%{_mandir}/man3/*

#------------------------------------------------------------------------------

%prep
%setup -q -n %{realname}-%{version}
%apply_patches


%build
%qmake_qt4 CONFIG+=QwtSVGItem CONFIG+=install-qt
%make

%install
make install INSTALL_ROOT=%{buildroot}
#libqwt_designer_plugin.so conflicts with libqwt6
rm %{buildroot}/%{_qt_plugindir}/designer/libqwt_designer_plugin.so

mkdir -p %{buildroot}%{_mandir}/man3/
install doc/man/man3/* %{buildroot}%{_mandir}/man3/

mv %{buildroot}/%{_qt_docdir}/html/html %{buildroot}/%{_qt_docdir}/html/qwt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2887 |21cr|libqwt-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname qwt
%define major 6
%define libname %mklibname %{realname} %{major}
%define devname %mklibname %{realname} -d

%define lib5name %mklibname %{realname} 5

%define debug_package %{nil}

Summary:	2D plotting widget extension to the Qt GUI
Name:		libqwt
Version:	6.2.0
Release:	1
License:	Qwt License 1.0
Group:		System/Libraries
Url:		http://sourceforge.net/projects/qwt
Source0:	http://freefr.dl.sourceforge.net/sourceforge/qwt/%{realname}-%{version}.tar.bz2
Patch1:		qwt-6.2.0-no-doc.patch
Patch2:		qwt-6.2.0-qt-version.patch
Patch3:		qwt-6.1.5-qt_install_paths.patch
BuildRequires:	qt4-devel

%description
Qwt is an extension to the Qt GUI library from Troll Tech AS.
The Qwt library contains widgets and components which are
primarily useful for technical and scientifical purposes.
It includes a 2-D plotting widget, different kinds of sliders,
and much more.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	2D plotting widget extension to the Qt GUI
Group:		System/Libraries

%description -n %{libname}
The libqwt-devel package contains the header files and static libraries
necessary for developing programs using the Qwt Widget set

If you want to develop programs which will use this set of widgets,
you should install this package. You need also to install the libqwt package.

%files -n %{libname}
%doc COPYING README
%{_libdir}/libqwt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which uses Qwt Widget set
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	qt4-devel
Provides:	libqwt-devel = %{EVRD}
Provides:	qwt-devel = %{EVRD}
Conflicts:	%{lib5name}

%description -n %{devname}
The libqwt-devel package contains the header files and static libraries
necessary for developing programs using the Qwt Widget set

If you want to develop programs which will use this set of widgets,
you should install this package. You need also to install the libqwt package.

%files -n %{devname}
%doc doc/html
%{qt4include}/*
%{qt4lib}/*.so
%{qt4plugins}/designer/*.so
%{_prefix}/lib/qt4/mkspecs/features
%{_libdir}/pkgconfig/qwt.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{realname}-%{version}

sed -i -e 's|{QWT_INSTALL_PREFIX}/lib|{QWT_INSTALL_PREFIX}/%{_lib}|' qwtconfig.pri
sed -i -e 's|{QWT_INSTALL_PREFIX}/plugins/designer|{QWT_INSTALL_PREFIX}/%{_lib}/qt4/plugins/designer|' qwtconfig.pri

%build
%qmake_qt4 QT_INSTALL_PREFIX=%{_prefix} QWT_CONFIG+=QwtPkgConfig CONFIG+=nostrip
make

%install
make install INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2888 |21cr|libqwtplot3d-0.2.7-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fakename qwtplot3d

%define major 0
%define libname %mklibname %{fakename} %{major}
%define devname %mklibname %{fakename}  -d

Summary:	3D plotting widget extension to the Qt GUI
Name:		libqwtplot3d
Version:	0.2.7
Release:	11
License:	zlib
Group:		System/Libraries
Url:		http://qwtplot3d.sourceforge.net/
Source0:	http://puzzle.dl.sourceforge.net/sourceforge/qwtplot3d/qwtplot3d-%{version}.tar.bz2
Patch0:		qwtplot3d-0.2.7-headers.patch
Patch1:		qwtplot3d-0.2.7-linkage.patch
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(zlib)

%description
QwtPlot3D is a feature-rich Qt/OpenGL-based C++ programming library.
It provides essentially a bunch of 3D-widgets for programmers.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	3D plotting widget extension to the Qt GUI
Group:		System/Libraries

%description -n %{libname}
QwtPlot3D is a feature-rich Qt/OpenGL-based C++ programming library.
It provides essentially a bunch of 3D-widgets for programmers.

%files -n %{libname}
%{_libdir}/libqwtplot3d.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which uses QwtPlot3D Widget set
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
QwtPlot3D is a feature-rich Qt/OpenGL-based C++ programming library.
It provides essentially a bunch of 3D-widgets for programmers.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n qwtplot3d
%patch0 -p1
%patch1 -p1

%build
%qmake_qt4
%make

%install
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_libdir}

for n in include/*.h ; do
    install -m 0644 $n %{buildroot}%{_includedir}
done

# install, preserving links
chmod 0755 lib/libqwtplot3d.so*
for n in lib/libqwtplot3d.so* ; do
    cp -d $n %{buildroot}%{_libdir}
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2889 |21cr|libqwt-qt5-6.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qwt
%define major 6
%define libname %mklibname %{oname}-qt5_ %{major}
%define devname %mklibname %{oname}-qt5 -d

Summary:	2D plotting widget extension to the Qt GUI
Name:		libqwt-qt5
Version:	6.2.0
Release:	3
License:	Qwt License 1.0
Group:		System/Libraries
Url:		http://sourceforge.net/projects/qwt
Source0:	http://freefr.dl.sourceforge.net/sourceforge/qwt/%{oname}-%{version}.tar.bz2
Patch1:		qwt-6.2.0-no-doc.patch
Patch2:		qwt-6.2.0-qt-version.patch
Patch3:		qwt-6.1.5-qt_install_paths.patch
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Qwt is an extension to the Qt GUI library from Troll Tech AS.
The Qwt library contains widgets and components which are
primarily useful for technical and scientifical purposes.
It includes a 2-D plotting widget, different kinds of sliders,
and much more.

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-libqwt
Summary:	Qt5 Designer plugin for 2D plotting widget extension
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-libqwt
Qt5 Designer plugin for 2D plotting widget extension.

%files -n qt5-designer-plugin-libqwt
%{_qt5_plugindir}/designer/libqwt_designer_plugin.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	2D plotting widget extension to the Qt GUI
Group:		System/Libraries

%description -n %{libname}
Qwt is an extension to the Qt GUI library from Troll Tech AS.
The Qwt library contains widgets and components which are
primarily useful for technical and scientifical purposes.
It includes a 2-D plotting widget, different kinds of sliders,
and much more.

%files -n %{libname}
%doc CHANGES-* COPYING README
%{_libdir}/libqwt-qt5.so.%{major}*
%exclude %{_libdir}/libqwt.so*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which uses Qwt Widget set
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	qwt-qt5-devel = %{EVRD}
Conflicts:	qwt-devel
Conflicts:	qwt5-devel

%description -n %{devname}
The libqwt-devel package contains the header files and static libraries
necessary for developing programs using the Qwt Widget set

If you want to develop programs which will use this set of widgets,
you should install this package. You need also to install the libqwt package.

%files -n %{devname}
%doc doc/html/
%{_qt5_includedir}/qwt
%{_libdir}/libqwt-qt5.so
%{_qt5_prefix}/mkspecs/features/*
%{_qt5_libdir}/pkgconfig/Qt5Qwt6.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

sed -i -e 's|{QWT_INSTALL_PREFIX}/lib|{QWT_INSTALL_PREFIX}/%{_lib}|' qwtconfig.pri
sed -i -e 's|{QWT_INSTALL_PREFIX}/plugins/designer|{QWT_INSTALL_PREFIX}/%{_lib}/qt5/plugins/designer|' qwtconfig.pri

%build
%qmake_qt5 QT_INSTALL_PREFIX=%{_prefix} QWT_CONFIG+=QwtPkgConfig CONFIG+=nostrip

%make

%install
%makeinstall_qt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2890 |21cr|libqxt-0.6.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################################################
# SpecFile: libqxt.spec 
# Generato: http://www.mandrivausers.ro/
# MRB-Falticska Florin
######################################################

%define lib_major       0
%define pkgname         libqxt 
%define lib_name        %mklibname qxt  %{lib_major}
%define develname       %mklibname -d qxt
#define  distsuffix	mrb
#define debug_package   %{nil}

Summary:	Qt extension library
Name:		%{pkgname}
Version:	0.6.2
Release:	4
License:	LGPLv2
Group:		System/Libraries
Url:		http://www.libqxt.org/
Source0:	http://bitbucket.org/libqxt/libqxt/get/v%{version}.tar.bz2
Source1:	html.tar.gz
Patch0:		libqxt-linking.patch
Patch1:		libqxt-header-fix.patch
Patch2:		libqxt-gcc6.patch
BuildRequires:	pkgconfig(avahi-compat-libdns_sd)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	db52-devel
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	qt4-devel


%description
LibQxt, an extension library for Qt, provides a suite of cross-platform
utility classes to add functionality not readily available in the Qt toolkit.

%package -n %{lib_name}
Summary:    Qt extension library
Group:      System/Libraries

%description -n %{lib_name}
LibQxt, an extension library for Qt, provides a suite of cross-platform
utility classes to add functionality not readily available in the Qt toolkit.

%files -n %{lib_name}
%doc AUTHORS CHANGES *.txt LICENSE README
%{_qt_libdir}/libQxt*.so.?*

################################

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:       %{lib_name} = %{version}-%{release}
Requires:	pkgconfig(avahi-compat-libdns_sd)
Requires:	pkgconfig(avahi-client)
Requires:	db52-devel
Requires:	qt4-devel
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains libraries and header files for developing applications
that use LibQxt.

%files -n %{develname}
%doc html/
%{_qt_libdir}/libQxt*.so
%{_includedir}/Qxt*/*
%{_qt_plugindir}/designer/libQxtDesignerPlugins.so
%{_qt_datadir}/mkspecs/features/qxt*.prf
##############################

%prep
%setup -q -n %{name}-%{name}-v%{version} -a 1
%patch0 -p1 -b .linking
%patch1 -p1 -b .includes
%patch2 -p1

# we use berkley 5
perl -pi -e "s|#if DB_VERSION_MAJOR < 5|#if DB_VERSION_MAJOR > 5|"  config.tests/db/main.cpp

#TODO: dirty fix zeroconf should be patched.
perl -pi -e "s|<dns_sd.h>|<avahi-compat-libdns_sd/dns_sd.h>|" config.tests/zeroconf/zeroconf.cpp
perl -pi -e "s|<dns_sd.h>|<avahi-compat-libdns_sd/dns_sd.h>|" \
  src/zeroconf/{qxtdiscoverableservice,qxtservicebrowser}_p.h
perl -pi -e "s|<dns_sd.h>|<avahi-compat-libdns_sd/dns_sd.h>|" src/zeroconf/qxtdiscoverableservicename.cpp
# fix rpath
sed -i '/RPATH/d' src/qxtlibs.pri

%build
./configure -verbose \
	    -qmake-bin qmake \
	    -prefix %{_prefix} \
	    -libdir %{_libdir} \
	    -docdir %{_docdir}
	    
%make 


%install
make install INSTALL_ROOT=$RPM_BUILD_ROOT

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2891 |21cr|libratbag-0.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname lur %{major}
%define devname %mklibname lur -d

Summary:	Programmable input device library
Name:		libratbag
Version:	0.17
Release:	1
License:	MIT
Group:		System/Configuration/Hardware
Url:		https://github.com/libratbag/libratbag
Source0:	https://github.com/libratbag/libratbag/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	swig
BuildRequires:	valgrind
BuildRequires:	python3dist(sphinx)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pkgconfig(libunistring)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)

%description
Libratbag is a library that allows to configure programmable
mice.

#------------------------------------------------------------------

%package -n ratbagd
Summary:	DBus daemon to access programmable input devices
Group:		System/Configuration/Hardware
Requires:	python3-gobject
Requires:	python3dist(evdev)

%description -n ratbagd
The ratbagd package contains a dbus daemon to access and configure
programmable input devices, primarily gaming mice.

%files -n ratbagd
%doc README.md
%license COPYING
%{_bindir}/lur-command
%{_bindir}/ratbagctl
%{_bindir}/ratbagd
%{_datadir}/dbus-1/system.d/org.freedesktop.ratbag1.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.ratbag1.service
%{_datadir}/%{name}/*.device
%dir %{_datadir}/%{name}
%{_mandir}/man1/lur-command.1*
%{_mandir}/man1/ratbagctl.1*
%{_mandir}/man8/ratbagd.8*
%{_unitdir}/ratbagd.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Logitech Unifying Receiver library
Group:		System/Libraries

%description -n %{libname}
The liblur package contains libraries and tools to access and
configure the Logitech Unifying Receivers. The functionality
are mainly listing, pairing and un-pairing Logitech devices
attached to a receiver.

%files -n %{libname}
%{_libdir}/liblur.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for liblur
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The liblur-devel package contains libraries and header files for
developing applications that use liblur.

%files -n %{devname}
%doc README.md
%license COPYING
%{_includedir}/liblur.h
%{_libdir}/liblur.so
%{_libdir}/pkgconfig/liblur.pc

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Ddocumentation=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2892 |21cr|librdkafka-1.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname rdkafka %{major}
%define devname %mklibname rdkafka -d

Name:		librdkafka
Version:	1.4.4
Release:	1
Summary:	The Apache Kafka C library
Group:		System/Libraries
License:	BSD
URL:		https://github.com/edenhill/librdkafka
Source0:	https://github.com/edenhill/librdkafka/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:	python3
BuildRequires:  pkgconfig(openssl)
BuildRequires:  cyrus-sasl-devel
BuildRequires:  pkgconfig(liblz4)
BuildRequires:  pkgconfig(libzstd)

%description
Librdkafka is a C/C++ library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
It was designed with message delivery reliability and high performance in mind,
current figures exceed 800000 messages/second for the producer and 3 million
messages/second for the consumer.

%files
%defattr(644,root,root)
%doc README.md CONFIGURATION.md
%doc  %{_docdir}/librdkafka/INTRODUCTION.md
%doc  %{_docdir}/librdkafka/LICENSE
%doc  %{_docdir}/librdkafka/LICENSES.txt
%doc  %{_docdir}/librdkafka/STATISTICS.md

#-----------------------------------------------------------------------------
%package -n %{libname}
Summary:	The Apache Kafka C library (Development Environment)
Group:		System/Libraries

%description -n %{libname}
librdkafka is a C/C++ library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
This package contains headers and libraries required to build applications
using librdkafka.

%files -n %{libname}
%{_libdir}/librdkafka.so.%{major}
%{_libdir}/librdkafka++.so.%{major}

#-----------------------------------------------------------------------------
%package -n %{devname}
Summary:	The Apache Kafka C library (Development Environment)
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
librdkafka is a C/C++ library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
This package contains headers and libraries required to build applications
using librdkafka.

%files -n %{devname}
%dir %{_includedir}/librdkafka
%attr(0644,root,root) %{_includedir}/librdkafka/*
%attr(0755,root,root) %{_libdir}/librdkafka.so
%attr(0755,root,root) %{_libdir}/librdkafka++.so
%{_libdir}/pkgconfig/rdkafka.pc
%{_libdir}/pkgconfig/rdkafka++.pc

#----------------------------------------------------------------------------
%prep
%autosetup -p1

%build
#its use 'mklove' configure script, --disable-static not recognized
./configure \
	--disable-silent-rules \
	--disable-dependency-tracking \
	--program-prefix= \
	--prefix=%{_prefix} \
	--exec-prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--sbindir=%{_sbindir} \
	--sysconfdir=%{_sysconfdir} \
	--datadir=%{_datadir} \
	--includedir=%{_includedir} \
	--libdir=%{_libdir} \
	--libexecdir=%{_libexecdir} \
	--localstatedir=%{_localstatedir} \
	--sharedstatedir=%{_sharedstatedir} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--enable-lz4 \
	--enable-ssl \
	--enable-sasl \
	--enable-shared \
	--enable-zstd

%make_build

%check
make check

%install
%make_install

#remove static lib
find %{buildroot} -name '*.a' -delete -print
rm -f %{buildroot}%{_libdir}/pkgconfig/rdkafka-static.pc
rm -f %{buildroot}%{_libdir}/pkgconfig/rdkafka++-static.pc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2893 |21cr|librdmacm-1.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname rdmacm %{major}
%define devname %mklibname -d rdmacm
%define static %mklibname -s rdmacm

Name:		librdmacm
Version:	1.1.0
Release:	3
Summary:	Userspace RDMA Connection Manager
Group:		Development/Other
License:	GPL/BSD
Url:		http://www.openfabrics.org/
Source0:	https://github.com/ofiwg/librdmacm/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	libibverbs-devel
BuildRequires:	autoconf

%description 
librdmacm provides a userspace RDMA Communication Managment API.

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

%package -n %{devname}
Summary:	Development files for the librdmacm library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	rdmacm-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the librdmacm library.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/lib*.so
%{_libdir}/rsocket/lib*.so
%{_includedir}/*
%{_mandir}/man3/*
%{_mandir}/man7/*

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

%package -n %{libname}
Summary:	Userspace RDMA Connection Manager
Group:		System/Libraries

%description -n %{libname}
librdmacm provides a userspace RDMA Communication Managment API.

%files -n %{libname}
%{_libdir}/librdmacm*.so.*
%{_libdir}/rsocket/librspreload.so.*

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

%package utils
Summary: Examples for the librdmacm library
Group: Development/Other

%description utils
Example test programs for the librdmacm library.

%files utils
%{_bindir}/*
%{_mandir}/man1/*

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

%package -n %{static}
Summary:	Static version of the librdmacm library
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static = %{EVRD}
Provides:	rdmacm-static-devel = %{EVRD}

%description -n %{static}
Static version of the librdmacm library.

%files -n %{static}
%{_libdir}/*.a
%{_libdir}/rsocket/*.a

#~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

%prep
%setup -q 

%build
export LDFLAGS="-lpthread"
autoreconf -fiv
%configure \
	--enable-static
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2894 |21cr|librecad-2.2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname LibreCAD

Summary:	Computer-aided design (CAD) system
Name:		librecad
Version:	2.2.0.2
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphics
Url:		http://www.librecad.org
Source0:	https://github.com/LibreCAD/LibreCAD/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch1:		LibreCAD-2.2.0.2-install.patch
Patch2:		librecad-2.0.8-plugindir.patch
BuildRequires:	boost-devel
BuildRequires:	qt5-assistant
BuildRequires:	qt5-linguist
BuildRequires:	muparser-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(muparser)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
Requires:	%{name}-data
Recommends:	%{name}-plugins

%description
LibreCAD is an application for computer aided design (CAD) in two
dimensions (2D). With LibreCAD you can create technical drawings
such as plans for buildings, interiors, mechanical parts or schemas
and diagrams.

%files
%{_bindir}/%{name}
%{_bindir}/ttf2lff
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package data
Summary:	Platform-independant files for %{name}
Group:		Graphics
Requires:	%{name}
BuildArch:	noarch

%description data
Contains the platform-independent files for LibreCAD, including
fonts, patterns, translations.

%files data
%{_datadir}/%{name}/fonts
%{_datadir}/%{name}/library
%{_datadir}/%{name}/patterns
%{_datadir}/%{name}/qm
%dir %{_datadir}/%{name}

#----------------------------------------------------------------------------

%package plugins
Summary:	Plugins libraries files for %{name}
Group:		Graphics
Requires:	%{name}

%description plugins
Contains the plugins files for LibreCAD.

%files plugins
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/plugins

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}
sed -i 's|##LIBDIR##|%{_libdir}|g' librecad/src/lib/engine/rs_system.cpp

%build
%qmake_qt5
%make

%install
export BUILDDIR="%{buildroot}%{_datadir}/%{name}"
sh scripts/postprocess-unix.sh

mkdir -p %{buildroot}%{_libdir}/%{name}/plugins
mv unix/resources/plugins/* %{buildroot}%{_libdir}/%{name}/plugins/
install -Dpm 755 unix/%{name} %{buildroot}%{_bindir}/%{name}
install -Dpm 755 unix/ttf2lff %{buildroot}%{_bindir}/ttf2lff
install -Dpm 644 desktop/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dpm 644 librecad/res/main/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -Dpm 644 desktop/%{name}.sharedmimeinfo %{buildroot}%{_datadir}/mime/packages/%{name}.xml
install -Dpm 644 desktop/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2895 |21cr|libredblack-1.3-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname redblack %{major}
%define devname %mklibname redblack -d

Summary:	Library for handling red-black tree searching algorithm
Name:		libredblack
Version:	1.3
Release:	16
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libredblack.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		libredblack-typo.diff

%description
This implements the redblack balanced tree algorithm.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for handling red-black tree searching algorithm
Group:		System/Libraries

%description -n %{libname}
This implements the redblack balanced tree algorithm.

%files -n %{libname}
%doc AUTHORS ChangeLog README
%{_libdir}/libredblack.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
To develop programs based upon the libredblack library, the system needs to 
have these header and object files available for creating the executables.

%files -n %{devname}
%doc example*.c
%{_libdir}/*.so
%{_includedir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_datadir}/libredblack

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%configure \
	--disable-static \
	--with-rbgen=no
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2896 |21cr|librep-0.92.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 16
%define libname %mklibname rep %{major}
%define devname %mklibname rep -d

Summary:	An embeddable LISP environment
Name:		librep
Version:	0.92.7
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://librep.sourceforge.net/
Source0:	http://download.tuxfamily.org/librep/%{name}_%{version}.tar.bz2
BuildRequires:	texinfo
BuildRequires:	gdbm-devel
BuildRequires:	gmp-devel
BuildRequires:	gpm-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(ncurses)
Provides:	%{_bindir}/rep

%description
This is a lightweight LISP environment for UNIX. It contains a LISP
interpreter, byte-code compiler and virtual machine. Applications may use the
LISP interpreter as an extension language, or it may be used for standalone
scripts.

Originally inspired by Emacs Lisp, the language dialect combines many of the
elisp features while trying to remove some of the main deficiencies, with
features from Common Lisp and Scheme.

%files
%doc ChangeLog COPYING INSTALL NEWS README TODO
%{_bindir}/rep
%{_bindir}/rep-remote
%{_libdir}/rep/
%{_infodir}/librep*
%{_datadir}/emacs/site-lisp/*.el
%{_datadir}/rep
%{_mandir}/man1/rep-remote.1*
%{_mandir}/man1/rep.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries used by librep
Group:		System/Libraries

%description -n %{libname}
Libraries used by librep.

%files -n %{libname}
%{_libdir}/librep.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Librep include files and link libraries
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Link libraries and C header files for librep development.

%files -n %{devname}
%{_bindir}/rep-xgettext
%{_bindir}/repdoc
%{_mandir}/man1/rep-xgettext.1*
%{_mandir}/man1/repdoc.1*
%{_libdir}/librep.so
%{_includedir}/*
%{_libdir}/pkgconfig/librep.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}_%{version}
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--with-readline
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2897 |21cr|libretro-20200629-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Debug depends on system CFLAGS but various cores use their own
# It's quite a pain to patch every core for CFLAGS and maintain patches
# And debug is not really needed here anyway
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	An interface for emulator and game ports
Name:		libretro
Version:	20200629
Release:	2
# Actually, various for each core but mostly GPLv2
License:	GPL
Group:		Emulators
Url:		http://www.libretro.com
# fetched via libretro-fetch.sh from git and re-packed
Source0:	%{name}-%{version}.tar.xz
# Disable inlining for VBA Next to fix build
Patch0:		libretro-20170303-vba-next-inline.patch
# Disable SSE2 Mupen64Plus to fix segfault
#Patch1:	libretro-20170303-mupen64plus-segfault.patch
BuildRequires:	nasm
# /usr/bin/xxd is needed for libretro-fuse build
BuildRequires:	vim-common
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libpcap)
BuildRequires:	libstdc++-devel
Recommends:	retroarch
Recommends:	%{name}-4do
Recommends:	%{name}-81
Recommends:	%{name}-bluemsx
Recommends:	%{name}-bnes
Recommends:	%{name}-bsnes-accuracy
Recommends:	%{name}-bsnes-balanced
Recommends:	%{name}-bsnes-performance
Recommends:	%{name}-bsnes-mercury-accuracy
Recommends:	%{name}-bsnes-mercury-balanced
Recommends:	%{name}-bsnes-mercury-performance
Recommends:	%{name}-desmume
Recommends:	%{name}-desmume2015
Recommends:	%{name}-dosbox
Recommends:	%{name}-emux-chip8
Recommends:	%{name}-emux-gb
Recommends:	%{name}-emux-nes
Recommends:	%{name}-emux-sms
Recommends:	%{name}-fba
Recommends:	%{name}-fceumm
Recommends:	%{name}-fmsx
Recommends:	%{name}-fuse
Recommends:	%{name}-gambatte
Recommends:	%{name}-genesis-plus-gx
Recommends:	%{name}-gpsp
Recommends:	%{name}-handy
Recommends:	%{name}-hatari
Recommends:	%{name}-mame2014
Recommends:	%{name}-mednafen-gba
Recommends:	%{name}-mednafen-lynx
Recommends:	%{name}-mednafen-ngp
Recommends:	%{name}-mednafen-pcfx
Recommends:	%{name}-mednafen-psx
Recommends:	%{name}-mednafen-snes
Recommends:	%{name}-mednafen-supergrafx
Recommends:	%{name}-mednafen-vb
Recommends:	%{name}-mednafen-wswan
Recommends:	%{name}-meteor
Recommends:	%{name}-mgba
Recommends:	%{name}-mupen64plus
Recommends:	%{name}-nestopia
Recommends:	%{name}-nxengine
Recommends:	%{name}-o2em
Recommends:	%{name}-pcsx-rearmed
Recommends:	%{name}-picodrive
Recommends:	%{name}-ppsspp
Recommends:	%{name}-prboom
Recommends:	%{name}-prosystem
Recommends:	%{name}-quicknes
Recommends:	%{name}-scummvm
Recommends:	%{name}-snes9x
Recommends:	%{name}-snes9x2005
Recommends:	%{name}-snes9x2010
Recommends:	%{name}-stella
Recommends:	%{name}-tgbdual
Recommends:	%{name}-tyrquake
Recommends:	%{name}-vba-next
Recommends:	%{name}-vbam
Recommends:	%{name}-vecx
Recommends:	%{name}-virtualjaguar
Recommends:	%{name}-yabause
#not have aarch64 may be arm64-v8?
ExcludeArch:	aarch64

%description
For each emulator 'core', RetroArch makes use of a library API that we like
to call 'libretro'.

Think of libretro as an interface for emulator and game ports. You can make
a libretro port once and expect the same code to run on all the platforms
that RetroArch supports. It's designed with simplicity and ease of use in
mind so that the porter can worry about the port at hand instead of having
to wrestle with an obfuscatory API.

The purpose of the project is to help ease the work of the emulator/game
porter by giving him an API that allows him to target multiple platforms
at once without having to redo any code. He doesn't have to worry about
writing input/video/audio drivers - all of that is supplied to him by
RetroArch. All he has to do is to have the emulator port hook into the
libretro API and that's it - we take care of the rest.

%files

#----------------------------------------------------------------------------

%package 81
Summary:	81 core for libretro (ZX81)
Provides:	libretro-core = %{EVRD}

%description 81
81 core for libretro. It only emulates the Sinclair ZX81 with 16Kb RAM for now.
Other machines will be added as time permits.

%files 81
%{_libdir}/%{name}/81_libretro.info
%{_libdir}/%{name}/81_libretro.so

#----------------------------------------------------------------------------

%package bluemsx
Summary:	blueMSX core for libretro (MSX)
Provides:	libretro-core = %{EVRD}

%description bluemsx
blueMSX core for libretro. It's used to run MSX games.

This core requires the two folders named Machines/ and Databases/ from
standalone blueMSX copied inside your frontend's system directory. You
can get these from the official Windows standalone version of blueMSX
( http://www.bluemsx.com/ ) or any other binary package.

%files bluemsx
%{_libdir}/%{name}/bluemsx_libretro.info
%{_libdir}/%{name}/bluemsx_libretro.so

#----------------------------------------------------------------------------

%package bnes
Summary:	bNES core for libretro (NES)
Provides:	libretro-core = %{EVRD}

%description bnes
bNES core for libretro. It's used to run Nintendo games.

%files bnes
%{_libdir}/%{name}/bnes_libretro.info
%{_libdir}/%{name}/bnes_libretro.so

#----------------------------------------------------------------------------

%package desmume
Summary:	Desmume core for libretro (NDS)
Provides:	libretro-core = %{EVRD}

%description desmume
Desmume core for libretro. It's used to run Nintendo DS games.

%files desmume
%{_libdir}/%{name}/desmume_libretro.info
%{_libdir}/%{name}/desmume_libretro.so

#----------------------------------------------------------------------------

%package desmume2015
Summary:	Desmume core for libretro (NDS)
Provides:	libretro-core = %{EVRD}

%description desmume2015
Desmume core for libretro. It's used to run Nintendo DS games.

%files desmume2015
%{_libdir}/%{name}/desmume2015_libretro.info
%{_libdir}/%{name}/desmume2015_libretro.so

#----------------------------------------------------------------------------

%package emux-chip8
Summary:	Emux CHIP-8 core for libretro (CHIP-8)
Provides:	libretro-core = %{EVRD}

%description emux-chip8
Emux CHIP-8 core for libretro. It's used to run CHIP-8 games.

CHIP-8 is an interpreted programming language, developed by Joseph Weisbecker.
It was initially used on the COSMAC VIP and Telmac 1800 8-bit microcomputers
in the mid-1970s. CHIP-8 programs are run on a CHIP-8 virtual machine. It was
made to allow video games to be more easily programmed for said computers.

%files emux-chip8
%{_libdir}/%{name}/emux_chip8_libretro.info
%{_libdir}/%{name}/emux_chip8_libretro.so

#----------------------------------------------------------------------------

%package emux-gb
Summary:	Emux GB core for libretro (GBC)
Provides:	libretro-core = %{EVRD}

%description emux-gb
Emux GB core for libretro. It's used to run Game Boy and Game Boy Color games.

%files emux-gb
%{_libdir}/%{name}/emux_gb_libretro.info
%{_libdir}/%{name}/emux_gb_libretro.so

#----------------------------------------------------------------------------

%package emux-nes
Summary:	Emux NES core for libretro (NES)
Provides:	libretro-core = %{EVRD}

%description emux-nes
Emux NES core for libretro. It's used to run Nintendo games.

%files emux-nes
%{_libdir}/%{name}/emux_nes_libretro.info
%{_libdir}/%{name}/emux_nes_libretro.so

#----------------------------------------------------------------------------

%package emux-sms
Summary:	Emux SMS core for libretro (SMS)
Provides:	libretro-core = %{EVRD}

%description emux-sms
Emux SMS core for libretro. It's used to run Sega Master System games.

%files emux-sms
%{_libdir}/%{name}/emux_sms_libretro.info
%{_libdir}/%{name}/emux_sms_libretro.so

#----------------------------------------------------------------------------

%package fbneo
Summary:	Final Burn core for libretro (arcade)
Provides:	libretro-core = %{EVRD}

%description fbneo
Final Burn  core for libretro. It's used to run arcade games.

It should be able to load:
- Capcom CPS-1 and CPS-2
- SNK Neo-Geo
- Toaplan
- Cave hardware
- and various games on miscellaneous hardware

%files fbneo
%{_libdir}/%{name}/fbneo_libretro.info
%{_libdir}/%{name}/fbneo_libretro.so

#----------------------------------------------------------------------------

%package fceumm
Summary:	FCE Ultra mappers modified core for libretro (NES)
Provides:	libretro-core = %{EVRD}

%description fceumm
FCE Ultra mappers modified core for libretro. It's used to run Nintendo games.

%files fceumm
%{_libdir}/%{name}/fceumm_libretro.info
%{_libdir}/%{name}/fceumm_libretro.so

#----------------------------------------------------------------------------

%package fmsx
Summary:	fMSX core for libretro (MSX)
Provides:	libretro-core = %{EVRD}

%description fmsx
fMSX core for libretro. It's used to run MSX games.

%files fmsx
%{_libdir}/%{name}/fmsx_libretro.info
%{_libdir}/%{name}/fmsx_libretro.so

#----------------------------------------------------------------------------

%package fuse
Summary:	Fuse core for libretro (ZX Spectrum)
Provides:	libretro-core = %{EVRD}

%description fuse
Fuse core for libretro. It's used to run ZX Spectrum games.

%files fuse
%{_libdir}/%{name}/fuse_libretro.info
%{_libdir}/%{name}/fuse_libretro.so

#----------------------------------------------------------------------------

%package gambatte
Summary:	Gambatte core for libretro (GBC)
Provides:	libretro-core = %{EVRD}

%description gambatte
Gambatte core for libretro. It's used to run Game Boy Color games.

%files gambatte
%{_libdir}/%{name}/gambatte_libretro.info
%{_libdir}/%{name}/gambatte_libretro.so

#----------------------------------------------------------------------------

%package genesis-plus-gx
Summary:	Genesis Plus GX core for libretro (SMD etc)
Provides:	libretro-core = %{EVRD}

%description genesis-plus-gx
Genesis Plus GX core for libretro. It should be able to load:
- Genesis/Mega Drive
- Sega/Mega CD
- Master System
- Game Gear & SG-1000

%files genesis-plus-gx
%{_libdir}/%{name}/genesis_plus_gx_libretro.info
%{_libdir}/%{name}/genesis_plus_gx_libretro.so

#----------------------------------------------------------------------------

%package gpsp
Summary:	gpSP core for libretro (GBA)
Provides:	libretro-core = %{EVRD}

%description gpsp
gpSP core for libretro. It's used to run Game Boy Advance games.

It requires GBA BIOS (gba_bios.bin) so place it in your RetroArch/libretro
"System Directory" folder.

%files gpsp
%{_libdir}/%{name}/gpsp_libretro.info
%{_libdir}/%{name}/gpsp_libretro.so

#----------------------------------------------------------------------------

%package handy
Summary:	Handy core for libretro (LNX)
Provides:	libretro-core = %{EVRD}

%description handy
Handy core for libretro. It's used to run Atari Lynx games.

%files handy
%{_libdir}/%{name}/handy_libretro.info
%{_libdir}/%{name}/handy_libretro.so

#----------------------------------------------------------------------------

%package hatari
Summary:	Hatari core for libretro (Atari ST)
Provides:	libretro-core = %{EVRD}

%description hatari
Hatari core for libretro. It's used to run Atari ST/STE/TT/Falcon games.

%files hatari
%{_libdir}/%{name}/hatari_libretro.info
%{_libdir}/%{name}/hatari_libretro.so

#----------------------------------------------------------------------------

%package mednafen-gba
Summary:	Mednafen Game Boy Advance core for libretro (GBA)
Provides:	libretro-core = %{EVRD}

%description mednafen-gba
Mednafen GBA core for libretro. It's used to run Game Boy Advance games.

%files mednafen-gba
%{_libdir}/%{name}/mednafen_gba_libretro.info
%{_libdir}/%{name}/mednafen_gba_libretro.so

#----------------------------------------------------------------------------

%package mednafen-lynx
Summary:	Mednafen Lynx core for libretro (LNX)
Provides:	libretro-core = %{EVRD}

%description mednafen-lynx
Mednafen Lynx core for libretro. It's used to run Atari Lynx games.

%files mednafen-lynx
%{_libdir}/%{name}/mednafen_lynx_libretro.info
%{_libdir}/%{name}/mednafen_lynx_libretro.so

#----------------------------------------------------------------------------

%package mednafen-ngp
Summary:	Mednafen Neo Geo Pocket core for libretro (NGP)
Provides:	libretro-core = %{EVRD}

%description mednafen-ngp
Mednafen NGP core for libretro. It's used to run Neo Geo Pocket games.

%files mednafen-ngp
%{_libdir}/%{name}/mednafen_ngp_libretro.info
%{_libdir}/%{name}/mednafen_ngp_libretro.so

#----------------------------------------------------------------------------

%package mednafen-pce
Summary:	Mednafen PC Engine core for libretro (PCE)
Provides:	libretro-core = %{EVRD}

%description mednafen-pce
Mednafen PCE core for libretro. It's used to run PC Engine/TurboGrafx-16 games.

TG-CD emulation requires the CD BIOS image, named as syscard3.pce.
This BIOS image is to be placed into the Mednafen base directory ~/.mednafen/.
Then, you will have to indicate to Mednafen where the syscard3.pce file is
located. To do this, edit the ~/.mednafen/mednafen.cfg file:

;Path to the ROM BIOS

pce.cdbios /path/to/file/syscard3.pce

%files mednafen-pce
%{_libdir}/%{name}/mednafen_pce_fast_libretro.info
%{_libdir}/%{name}/mednafen_pce_fast_libretro.so

#----------------------------------------------------------------------------

%package mednafen-pcfx
Summary:	Mednafen PC-FX core for libretro (PC-FX)
Provides:	libretro-core = %{EVRD}

%description mednafen-pcfx
Mednafen PC-FX core for libretro. It's used to run PC-FX games.

%files mednafen-pcfx
%{_libdir}/%{name}/mednafen_pcfx_libretro.info
%{_libdir}/%{name}/mednafen_pcfx_libretro.so

#----------------------------------------------------------------------------

%package mednafen-snes
Summary:	Mednafen Super Nintendo core for libretro (SNES)
Provides:	libretro-core = %{EVRD}

%description mednafen-snes
Mednafen SNES core for libretro. It's used to run Super Nintendo games.

%files mednafen-snes
%{_libdir}/%{name}/mednafen_snes_libretro.info
%{_libdir}/%{name}/mednafen_snes_libretro.so

#----------------------------------------------------------------------------

%package mednafen-supergrafx
Summary:	Mednafen SuperGrafx core for libretro (PCE)
Provides:	libretro-core = %{EVRD}

%description mednafen-supergrafx
Mednafen SuperGrafx core for libretro. It's used to run PC Engine SuperGrafx
games.

%files mednafen-supergrafx
%{_libdir}/%{name}/mednafen_supergrafx_libretro.info
%{_libdir}/%{name}/mednafen_supergrafx_libretro.so

#----------------------------------------------------------------------------

%package mednafen-vb
Summary:	Mednafen Virtual Boy core for libretro
Provides:	libretro-core = %{EVRD}

%description mednafen-vb
Mednafen VB core for libretro. It's used to run Nintendo Virtual Boy games.

%files mednafen-vb
%{_libdir}/%{name}/mednafen_vb_libretro.info
%{_libdir}/%{name}/mednafen_vb_libretro.so

#----------------------------------------------------------------------------

%package mednafen-wswan
Summary:	Mednafen WonderSwan core for libretro
Provides:	libretro-core = %{EVRD}

%description mednafen-wswan
Mednafen WSwan core for libretro. It's used to run Bandai WonderSwan games.

%files mednafen-wswan
%{_libdir}/%{name}/mednafen_wswan_libretro.info
%{_libdir}/%{name}/mednafen_wswan_libretro.so

#----------------------------------------------------------------------------

%package meteor
Summary:	Meteor core for libretro (GBA)
Provides:	libretro-core = %{EVRD}

%description meteor
Meteor core for libretro. It's used to run Game Boy Advance games.

%files meteor
%{_libdir}/%{name}/meteor_libretro.info
%{_libdir}/%{name}/meteor_libretro.so

#----------------------------------------------------------------------------

%package mgba
Summary:	mGBA core for libretro (GBA)
Provides:	libretro-core = %{EVRD}

%description mgba
mGBA core for libretro. It's used to run Game Boy Advance games.

%files mgba
%{_libdir}/%{name}/mgba_libretro.info
%{_libdir}/%{name}/mgba_libretro.so

#----------------------------------------------------------------------------

%package nestopia
Summary:	Nestopia core for libretro (NES)
Provides:	libretro-core = %{EVRD}

%description nestopia
Nestopia core for libretro. It's used to run Nintendo games.

%files nestopia
%{_libdir}/%{name}/nestopia_libretro.info
%{_libdir}/%{name}/nestopia_libretro.so

#----------------------------------------------------------------------------

%package nxengine
Summary:	NXEngine core for libretro (Cave Story)
Provides:	libretro-core = %{EVRD}

%description nxengine
NXEngine core for libretro. It's used to run Cave Story (Doukutsu Monogatari).

%files nxengine
%{_libdir}/%{name}/nxengine_libretro.info
%{_libdir}/%{name}/nxengine_libretro.so

#----------------------------------------------------------------------------

%package o2em
Summary:	O2EM core for libretro (Odyssey 2)
Provides:	libretro-core = %{EVRD}

%description o2em
O2EM core for libretro. It's used to run Magnavox Odyssey 2 & Videopac+ games.

Place "o2rom.bin" in your RetroArch/libretro "System Directory" folder.

%files o2em
%{_libdir}/%{name}/o2em_libretro.info
%{_libdir}/%{name}/o2em_libretro.so

#----------------------------------------------------------------------------

%package pcsx-rearmed
Summary:	PCSX-ReARMed core for libretro (PSX)
Provides:	libretro-core = %{EVRD}

%description pcsx-rearmed
PCSX-ReARMed core for libretro. It's used to run Sony Playstation 1 games.

%files pcsx-rearmed
%{_libdir}/%{name}/pcsx_rearmed_libretro.info
%{_libdir}/%{name}/pcsx_rearmed_libretro.so

#----------------------------------------------------------------------------

%package picodrive
Summary:	Picodrive core for libretro (SMD etc)
Provides:	libretro-core = %{EVRD}

%description picodrive
Picodrive core for libretro. It should be able to load:
- Genesis/Mega Drive
- Sega/Mega CD
- Master System
- 32X
- Pico

%files picodrive
%{_libdir}/%{name}/picodrive_libretro.info
%{_libdir}/%{name}/picodrive_libretro.so

#----------------------------------------------------------------------------

%package prboom
Summary:	PrBoom core for libretro (Doom)
Provides:	libretro-core = %{EVRD}

%description prboom
PrBoom core for libretro. It's used to run early Doom games.

PrBoom is a game engine - it provides a program to play Doom levels, but
it doesn't include any levels itself. More importantly, you need all the
sounds, sprites, and other graphics that make up the Doom environment.
So to play PrBoom, you need one of the main Doom date files from id
Software - either doom.wad, doom2.wad, tnt.wad or plutonia.wad from one
of the commercial Doom games, or the shareware doom1.wad. This file
is called the IWAD.

PrBoom also supports playing Doom add-on levels, called "PWADs", which
are small extra .wad files which just contain extra levels or other
resources. PWADs are ONLY ADD-ONS, you still need the original IWAD
that they are designed to work with. In practice, most PWADs on the
Internet require doom2.wad (although some work with doom.wad).

%files prboom
%{_libdir}/%{name}/prboom_libretro.info
%{_libdir}/%{name}/prboom_libretro.so

#----------------------------------------------------------------------------

%package prosystem
Summary:	ProSystem core for libretro (Atari 7800)
Provides:	libretro-core = %{EVRD}

%description prosystem
ProSystem core for libretro. It's used to run Atari 7800 ProSystem games.

Place "ProSystem.dat" (required) and "7800 BIOS (U).rom" (optional) in your
RetroArch/libretro "System Directory" folder.

Or just set "System Directory" to %{_libdir}/%{name}/prosystem/

%files prosystem
%{_libdir}/%{name}/prosystem_libretro.info
%{_libdir}/%{name}/prosystem_libretro.so
%dir %attr(0777,root,root) %{_libdir}/%{name}/prosystem

#----------------------------------------------------------------------------

%package quicknes
Summary:	QuickNES core for libretro (NES)
Provides:	libretro-core = %{EVRD}

%description quicknes
QuickNES core for libretro. It's used to run Nintendo games.

%files quicknes
%{_libdir}/%{name}/quicknes_libretro.info
%{_libdir}/%{name}/quicknes_libretro.so

#----------------------------------------------------------------------------

%package scummvm
Summary:	ScummVM core for libretro (DOS etc)
Provides:	libretro-core = %{EVRD}

%description scummvm
ScummVM core for libretro. It's used to run various games,
mostly classic DOS point-and-click adventures.

%files scummvm
%{_libdir}/%{name}/scummvm_libretro.info
%{_libdir}/%{name}/scummvm_libretro.so

#----------------------------------------------------------------------------

%package snes9x
Summary:	SNES9x core for libretro (SNES)
Provides:	libretro-core = %{EVRD}

%description snes9x
SNES9x core for libretro. It's used to run Super Nintendo games.

%files snes9x
%{_libdir}/%{name}/snes9x_libretro.info
%{_libdir}/%{name}/snes9x_libretro.so

#----------------------------------------------------------------------------

%package snes9x2005
Summary:	SNES9x 2005 (ex-CATSFC) core for libretro (SNES)
Provides:	libretro-core = %{EVRD}
Provides:	%{name}-catsfc = %{EVRD}
Obsoletes:	%{name}-catsfc < 20170303

%description snes9x2005
SNES9x 2005 core for libretro. It's used to run Super Nintendo games.

Based on:
* Snes9x 1.43, by the Snes9x team (with research by the ZSNES folks, anomie,
  zsKnight, etc.)
* NDSSFC 1.06, by the Supercard team (porting to the MIPS processor)
* BAGSFC, by BassAceGold (improving over NDSSFC)
* CATSFC, by ShadauxCat and Nebuleon (improving over BAGSFC)

%files snes9x2005
%{_libdir}/%{name}/snes9x2005_libretro.info
%{_libdir}/%{name}/snes9x2005_libretro.so

#----------------------------------------------------------------------------

%package snes9x2010
Summary:	SNES9x 2010 (ex-SNES9x Next) core for libretro (SNES)
Provides:	libretro-core = %{EVRD}
Provides:	%{name}-snes9x-next = %{EVRD}
Obsoletes:	%{name}-snes9x-next < 20170303

%description snes9x2010
SNES9x 2010 core for libretro. It's used to run Super Nintendo games.

SNES9x 2010 is an optimized port/rewrite of SNES9x 1.52+ to libretro.

%files snes9x2010
%{_libdir}/%{name}/snes9x2010_libretro.info
%{_libdir}/%{name}/snes9x2010_libretro.so

#----------------------------------------------------------------------------

%package stella
Summary:	Stella core for libretro (Atari 2600)
Provides:	libretro-core = %{EVRD}

%description stella
Stella core for libretro. It's used to run Atari 2600 games.

%files stella
%{_libdir}/%{name}/stella_libretro.info
%{_libdir}/%{name}/stella_libretro.so

#----------------------------------------------------------------------------

%package tgbdual
Summary:	TGB Dual core for libretro (GBC)
Provides:	libretro-core = %{EVRD}

%description tgbdual
TGB Dual core for libretro. It's used to run Game Boy and Game Boy Color games.

%files tgbdual
%{_libdir}/%{name}/tgbdual_libretro.info
%{_libdir}/%{name}/tgbdual_libretro.so

#----------------------------------------------------------------------------

%package tyrquake
Summary:	Tyr-Quake core for libretro (Quake)
Provides:	libretro-core = %{EVRD}

%description tyrquake
Tyr-Quake core for libretro. It's used to run Quake 1 and QuakeWorld.

%files tyrquake
%{_libdir}/%{name}/tyrquake_libretro.info
%{_libdir}/%{name}/tyrquake_libretro.so

#----------------------------------------------------------------------------

%package vba-next
Summary:	VBA Next core for libretro (GBA)
Provides:	libretro-core = %{EVRD}

%description vba-next
VBA Next core for libretro. It's used to run Game Boy Advance games.

VBA Next is an optimized port of VBA-M to libretro.

%files vba-next
%{_libdir}/%{name}/vba_next_libretro.info
%{_libdir}/%{name}/vba_next_libretro.so

#----------------------------------------------------------------------------

%package vbam
Summary:	VBA-M core for libretro (GBA)
Provides:	libretro-core = %{EVRD}

%description vbam
VBA-M core for libretro. It's used to run Game Boy Advance games.

%files vbam
%{_libdir}/%{name}/vbam_libretro.info
%{_libdir}/%{name}/vbam_libretro.so

#----------------------------------------------------------------------------

%package vecx
Summary:	VECX core for libretro (Vectrex)
Provides:	libretro-core = %{EVRD}

%description vecx
VECX core for libretro. It's used to run Vectrex games.

The original Vectrex games are freely available for non-commercial use.

%files vecx
%{_libdir}/%{name}/vecx_libretro.info
%{_libdir}/%{name}/vecx_libretro.so

#----------------------------------------------------------------------------

%package virtualjaguar
Summary:	Virtual Jaguar core for libretro (JAG)
Provides:	libretro-core = %{EVRD}

%description virtualjaguar
Virtual Jaguar core for libretro. It's used to run Atari Jaguar games.

%files virtualjaguar
%{_libdir}/%{name}/virtualjaguar_libretro.info
%{_libdir}/%{name}/virtualjaguar_libretro.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Remove these after fetching to make tarball smaller
# Not ready yet
# rm -rf libretro-blastem
# rm -rf libretro-cap32
# rm -rf libretro-fsuae
# rm -rf libretro-mame
# rm -rf libretro-mame2000
# rm -rf libretro-mame2003
# rm -rf libretro-mame2010
# rm -rf libretro-mame2015
# rm -rf libretro-mednafen_saturn
# rm -rf libretro-melonds
# rm -rf libretro-parallel_n64
# rm -rf libretro-pcem
# rm -rf libretro-puae
# rm -rf libretro-reicast
# rm -rf libretro-rustation
# rm -rf libretro-tempgba
# Just not needed
# rm -rf libretro-bsnes_cplusplus98
# rm -rf libretro-2048
# rm -rf libretro-3dengine
# rm -rf libretro-craft
# rm -rf libretro-dinothawr
# rm -rf libretro-easyrpg
# rm -rf libretro-fbalpha2012
# rm -rf libretro-fbalpha2012_cps1
# rm -rf libretro-fbalpha2012_cps2
# rm -rf libretro-fbalpha2012_neogeo
# rm -rf libretro-ffmpeg
# rm -rf libretro-gme
# rm -rf libretro-gw
# rm -rf libretro-lutro
# rm -rf libretro-pascal_pong
# rm -rf libretro-stonesoup
# rm -rf libretro-video_processor
# ARM version
# rm -rf libretro-pcsx1
# rm -rf libretro-psp1
# Then cleanup libretro-ppsspp from bundled libraries for Windows, Android etc

%ifarch %{ix86}
cp libretro-emux/libretro/Makefile.linux_x86 libretro-emux/libretro/Makefile
%else
cp libretro-emux/libretro/Makefile.linux_x86_64 libretro-emux/libretro/Makefile
%endif

%build
./libretro-build.sh

# Manually build stuff that fails due to build script errors
pushd libretro-emux/libretro/
%make MACHINE=chip8 SOEXT=.so
%make MACHINE=gb SOEXT=.so
%make MACHINE=nes SOEXT=.so
%make MACHINE=sms SOEXT=.so
cp emux_chip8_libretro.so ../../dist/unix/
cp emux_gb_libretro.so ../../dist/unix/
cp emux_nes_libretro.so ../../dist/unix/
cp emux_sms_libretro.so ../../dist/unix/
popd

%install
mkdir -p %{buildroot}%{_libdir}/%{name}
./libretro-install.sh %{buildroot}%{_libdir}/%{name}

# ProSystem system files path
mkdir -p %{buildroot}%{_libdir}/%{name}/prosystem/

# PPSSPP system files
# ppsspp build fail, restore after fix build
#mkdir -p %{buildroot}%{_libdir}/%{name}/PPSSPP/
#cp -ar libretro-ppsspp/assets/* %{buildroot}%{_libdir}/%{name}/PPSSPP/


# Remove installed info files that we don't use yet
rm -f %{buildroot}%{_libdir}/%{name}/00_example_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/2048_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/3dengine_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/advanced_tests_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/atari800_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/beetle_psx_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/blastem_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/bsnes_cplusplus98_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/cap32_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/craft_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/cruzes_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/dinothawr_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/dolphin_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/dolphin_launcher_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/easyrpg_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/fbalpha2012_cps1_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/fbalpha2012_cps2_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/fbalpha2012_cps3_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/fbalpha2012_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/fbalpha2012_neogeo_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/ffmpeg_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/fsuae_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/gme_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/gw_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/imageviewer_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/imame4all_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/lutro_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame2000_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame2003_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame2003_midway_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame2010_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame2016_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mednafen_psx_hw_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mednafen_saturn_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/melonds_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mess*_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mrboom_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mupen64plus_gles3_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/parallel_n64*_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/pascal_pong_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/pcem_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/pcsx_rearmed_interpreter_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/pcsx_rearmed_libretro_neon.info
rm -f %{buildroot}%{_libdir}/%{name}/pcsx1_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/pokemini_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/psp1_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/puae_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/reicast*_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/remotejoy_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/rustation_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/snes9x2002_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/snes9x2005_plus_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/stonesoup_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/tempgba_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/test*_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/ume_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/ume2014_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/uzem_libretro.info
# from 2020
rm -f %{buildroot}%{_libdir}/%{name}/mu_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mu_libretro.so

rm -f %{buildroot}%{_libdir}/%{name}/opera_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/opera_libretro.so

rm -f %{buildroot}%{_libdir}/%{name}/bk_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/boom3_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/boom3_xp_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/cannonball_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/chailove_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/citra2018_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/citra_canary_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/citra_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/crocods_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/daphne_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/directxbox_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/dosbox_core_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/dosbox_pure_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/dosbox_svn_ce_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/dosbox_svn_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/duckstation_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/ecwolf_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/fixgb_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/fixnes_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/flycast_gles2_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/flycast_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/freechaf_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/freeintv_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/freej2me_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/frodo_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/gearboy_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/gearcoleco_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/gearsystem_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/genesis_plus_gx_wide_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/gong_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/hbmame_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/higan_sfc_balanced_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/higan_sfc_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/ishiiruka_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/kronos_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/lowresnx_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame2003_plus_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame2009_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mame2015_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mamearcade_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mednafen_pce_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mednafen_supafaust_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mesen-s_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mesen_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/moonlight_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mpv_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mupen64plus_next_develop_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mupen64plus_next_gles2_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mupen64plus_next_gles3_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mupen64plus_next_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/nekop2_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/neocd_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/np2kai_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/oberon_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/openlara_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/opentyrian_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/pcsx2_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/play_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/pocketcdg_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/potator_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/px68k_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/quasi88_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/race_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/redbook_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/reminiscence_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/retro8_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/retrodream_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/sameboy_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/sameduck_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/simcp_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/smsplus_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/squirreljme_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/stella2014_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/swanstation_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/theodore_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/thepowdertoy_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/tic80_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/uae4arm_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/ume2015_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vemulator_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_x128_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_x64_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_x64sc_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_xcbm2_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_xcbm5x0_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_xpet_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_xplus4_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_xscpu64_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vice_xvic_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vitaquake2-rogue_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vitaquake2-xatrix_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vitaquake2-zaero_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vitaquake2_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vitaquake3_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/vitavoyager_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/x1_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/x64sdl_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/xrick_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/yabasanshiro_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/4do_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/bsnes_mercury_accuracy_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/bsnes_mercury_balanced_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/bsnes_mercury_performance_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/dosbox_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/mednafen_psx_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/ppsspp_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/yabause_libretro.info
rm -f %{buildroot}%{_libdir}/%{name}/bsnes*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2898 |21cr|librime-1.11.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define	libname %mklibname rime %{major}
%define devname	%mklibname %{name} -d

%global ldflags %{ldflags} -lboost_regex

Summary(ru_RU.UTF-8): Библиотека движка метода ввода Rime
Summary: Rime Input Method Engine Library
Name:    librime
Version: 1.11.0
Release: 2
License: GPLv3
Group:   System/Internationalization
URL:     https://rime.im/

Source0: https://github.com/rime/librime/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires: cmake(boost_regex)
BuildRequires: pkgconfig(libglog)
BuildRequires: pkgconfig(gtest)
BuildRequires: pkgconfig(yaml-cpp)
BuildRequires: pkgconfig(leveldb)
BuildRequires: pkgconfig(marisa)
BuildRequires: pkgconfig(opencc)

%description
Rime Input Method Engine Library:
Support for shape-based and phonetic-based input methods,
including those for Chinese dialects.
A selected dictionary in Traditional Chinese,
powered by opencc for Simplified Chinese output.

%description -l ru_RU.UTF-8
Библиотека движка метода ввода Rime:
Поддержка методов ввода, основанных на форме и фонетике,
в том числе для китайских диалектов.
Избранный словарь традиционного китайского языка,
с поддержкой opencc для вывода упрощенного китайского.

#------------------------------------------------------------------

%package -n %{libname}
Summary(ru_RU.UTF-8): Разделяемая библиотека для %name 
Summary: Shared library for the %name
Group:   System/Libraries

%description -n %{libname}
Rime Input Method Engine Library:
Support for shape-based and phonetic-based input methods,
including those for Chinese dialects.
A selected dictionary in Traditional Chinese,
powered by opencc for Simplified Chinese output.
This package contains the shared library.

%description -l ru_RU.UTF-8 -n %{libname}
Библиотека движка метода ввода Rime:
Поддержка методов ввода, основанных на форме и фонетике,
в том числе для китайских диалектов.
Избранный словарь традиционного китайского языка,
с поддержкой opencc для вывода упрощенного китайского.
Этот пакет содержит разделяемую библиотеку.

%files -n %{libname}
%doc README.md LICENSE
%_libdir/librime.so.%{major}
%_libdir/librime.so.%{major}.*

#------------------------------------------------------------------

%package -n %{devname}
Summary(ru_RU.UTF-8): Файлы разработчика для библиотеки %{name}
Summary:  Development files for %{name}
Group:    Development/C
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%description -l ru_RU.UTF-8 -n %{devname}
Пакет %{name}-devel содержит библиотеки и заголовочные файлы
для разработки приложений, использующих %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/rime.pc
%dir %{_datadir}/cmake/rime
%{_datadir}/cmake/rime/RimeConfig.cmake

#------------------------------------------------------------------

%package tools
Summary(ru_RU.UTF-8): Инструментарий для %{name}
Summary:  Tools for %{name}
Group:    Development/C
Requires: %{libname} = %{EVRD}

%description tools
The %{name}-tools package contains tools for %{name}.

%description -l ru_RU.UTF-8 tools
Пакет %{name}-tools содержит инструментарий для %{name}.

%files tools
%{_bindir}/rime_deployer
%{_bindir}/rime_dict_manager
%{_bindir}/rime_patch
%{_bindir}/rime_table_decompiler

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DCMAKE_BUILD_TYPE=Release
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2899 |21cr|librist-0.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname rist %{major}
%define devname %mklibname rist -d

Summary:	A library implementing the RIST protocol
Name:		librist
Version:	0.2.7
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://code.videolan.org/rist/librist
Source0:	https://code.videolan.org/rist/librist/-/archive/v%{version}/librist-v%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	mbedtls-devel
BuildRequires:	pkgconfig(libcjson)

%description
A library implementing the RIST protocol.
This code was written to comply with the Video Services Forum (VSF)
Technical Recommendations TR-06-1 and TR-06-2.
The protocol goes by the codename "RIST".

#------------------------------------------------------------------

%package tools
Summary:	librist tools
Group:		Video
Provides:	%{name}-utils = %{EVRD}

%description tools
Utilities for working with the RIST protocol.

%files tools
%license COPYING
%{_bindir}/rist2rist
%{_bindir}/ristreceiver
%{_bindir}/ristsender
%{_bindir}/ristsrppasswd

#------------------------------------------------------------------

%package -n %{libname}
Summary:	librist shared library
Group:		System/Libraries

%description -n %{libname}
A library implementing the RIST protocol.
This code was written to comply with the Video Services Forum (VSF)
Technical Recommendations TR-06-1 and TR-06-2.
The protocol goes by the codename "RIST".

%files -n %{libname}
%license COPYING
%{_libdir}/librist.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	librist development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
librist development files.

%files -n %{devname}
%license COPYING
%{_includedir}/librist
%{_libdir}/librist.so
%{_libdir}/pkgconfig/librist.pc

#------------------------------------------------------------------

%prep
%autosetup -p1 -n librist-v%{version}

%build
%meson \
	-Dfallback_builtin=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2900 |21cr|libroadnav-0.20-0.0.alpha.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname roadnav %{major}
%define devname %mklibname roadnav -d

Summary:	A GPS mapping data library
Name:		libroadnav
Version:	0.20
Release:	0.0.alpha.4
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://roadnav.sourceforge.net/
Source0:	http://roadnav.sourceforge.net/prerel/%{name}-%{version}alpha.tar.gz
Patch0:		libroadnav-0.20alpha-shared.diff
BuildRequires:	libtool
BuildRequires:	wxgtku2.8-devel

%description
LibRoadnav is a library that makes mapping data easily accessible to
developers. It can automatically download mapping data from a variety of free
online sources, process that data, and make street maps of any place in the
United States available to developers and their applications. It can also
produce turn by turn directions from one place in the US to another.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A GPS mapping data library
Group:		System/Libraries

%description -n %{libname}
LibRoadnav is a library that makes mapping data easily accessible to
developers. It can automatically download mapping data from a variety of free
online sources, process that data, and make street maps of any place in the
United States available to developers and their applications. It can also
produce turn by turn directions from one place in the US to another.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libroadnav library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
LibRoadnav is a library that makes mapping data easily accessible to 
developers. It can automatically download mapping data from a variety of free
online sources, process that data, and make street maps of any place in the
United States available to developers and their applications. It can also
produce turn by turn directions from one place in the US to another.

This package contains the static libroadnav library and its header files needed
to compile applications such as roadnav, etc.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}alpha
%patch0 -p1

find . -name "Makefile*" -o -name "*.m4" -o -name "configure*" |xargs sed -i -e 's,configure.in,configure.ac,g'

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

# cleanup
rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2901 |21cr|librpcsecgss-0.19-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname rpcsecgss %{major}
%define devname %mklibname rpcsecgss -d

%bcond_with crosscompile

Summary:	Allows secure rpc communication using the rpcsec_gss protocol
Name:		librpcsecgss
Version:	0.19
Release:	18
License:	BSD-like
Group:		System/Libraries
Url:		http://www.citi.umich.edu/projects/nfsv4/linux/
Source0:	http://www.citi.umich.edu/projects/nfsv4/linux/%{name}/%{name}-%{version}.tar.gz
Patch0:		librpcsecgss-0.19-libtirpc.patch
BuildRequires:	pkgconfig(libgssglue)
BuildRequires:	pkgconfig(libtirpc)

%description
Allows secure rpc communication using the rpcsec_gss protocol
librpcsecgss allows secure rpc communication using the rpcsec_gss
protocol.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Allows secure rpc communication using the rpcsec_gss protocol
Group:		System/Libraries

%description -n %{libname}
Allows secure rpc communication using the rpcsec_gss protocol
librpcsecgss allows secure rpc communication using the rpcsec_gss
protocol.

%files -n %{libname}
%{_libdir}/librpcsecgss.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the librpcsecgss library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	rpcsecgss-devel = %{EVRD}

%description -n %{devname}
This package contains the development librpcsecgss library and its
header files.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_includedir}/rpcsecgss
%{_libdir}/*.so
%{_libdir}/pkgconfig/librpcsecgss.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%if %{with crosscompile}
export ac_cv_func_malloc_0_nonnull=yes
%endif
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2902 |21cr|librra-0.14-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname rra

%define major 0
%define libname %mklibname %{shortname} %{major}
%define devname %mklibname %{shortname} -d

Summary:	SynCE: Communication application
Name:		librra
Version:	0.14
Release:	11
License:	MIT
Group:		System/Libraries
Url:		http://synce.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/synce/%{name}-%{version}.tar.gz
Patch0:		librra-0.14-libsynce.patch
BuildRequires:	python-pyrex
BuildRequires:	gettext-devel
BuildRequires:	libmimedir-devel
BuildRequires:	pkgconfig(libsynce)
BuildRequires:	pkgconfig(python)

%description
%{name} is part of the SynCE project.

%files
%doc README TODO
%{_bindir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	SynCE: Communication application
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
%{name} is part of the SynCE project.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/rra
%{_libdir}/pkgconfig/librra.pc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	SynCE: Communication application
Group:		System/Libraries

%description -n %{libname}
%{name} is part of the SynCE project.

%files -n %{libname}
%{_libdir}/librra.so.%{major}*

#----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	SynCE: Communication application
Group:		System/Libraries

%description -n python-%{name}
%{name} is part of the SynCE project.

%files -n python-%{name}
%{py_platsitedir}/pyrra.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
perl -pi -e 's/-Werror//' lib/Makefile.in

%build
autoreconf -fi
%configure \
	--disable-static \
	--with-libsynce=%{_prefix} \
	--includedir=%{_includedir}/rra
%make_build includedir=%{buildroot}%{_includedir}/rra

%install
%makeinstall includedir=%{buildroot}%{_includedir}/rra


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2903 |21cr|librtfcomp-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		librtfcomp
Version:	1.3
Release:	1

%define 	major 0
%define		libname	%mklibname rtfcomp %major

Summary:	Library to read and write compressed RTF files
License:	GPL
Group:		System/Libraries
URL:		http://synce.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/synce/SynCE/librtfcomp/%{name}-%{version}.tar.gz

%description
Can decompress and recompress compressed RTF and convert from 
UTF8 to RTF for use in things like the AirSync protocols.

%package -n	%{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n	%{libname}
Can decompress and recompress compressed RTF and convert from 
UTF8 to RTF for use in things like the AirSync protocols

%package -n	%{libname}-devel
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{libname}-devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%prep
%setup -q

%build
%configure --program-prefix=rtfcomp- \
	       --disable-static
%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{major}.*

%files -n %{libname}-devel
%{_includedir}/rtfcomp/*.h
%{_libdir}/%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2904 |21cr|librttopo-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:           librttopo
Version:        1.1.0
Release:        1
Summary:        Create and manage SQL/MM topologies
Group:          System/Libraries
License:        GPLv2+
URL:            https://git.osgeo.org/gitea/rttopo/librttopo
Source0:        https://git.osgeo.org/gitea/rttopo/librttopo/archive/%{name}-%{version}.tar.gz

BuildRequires:  geos-devel

%description
The RT Topology Library exposes an API to create and manage standard
(ISO 13249 aka SQL/MM) topologies using user-provided data stores.
#-------------------------------------------------------------------
%package -n %{libname}
Summary:	Create and manage SQL/MM topologies
Group:		System/Libraries

%description -n %{libname}
The RT Topology Library exposes an API to create and manage standard
(ISO 13249 aka SQL/MM) topologies using user-provided data stores.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#-------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc CREDITS NEWS.md README.md TODO
%license COPYING
%{_includedir}/%{name}.h
%{_includedir}/%{name}_geom.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/rttopo.pc

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}


%build
autoreconf -ifv
%configure --disable-static
%make_build


%install
%make_install
find %{buildroot} -name '*.la' -exec rm -f {} ';'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2905 |21cr|libserialport-0.1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname serialport %{major}
%define devname %mklibname -d serialport

Name:           libserialport
Version:        0.1.1
Release:        10%{?dist}
Summary:        Library for accessing serial ports
License:        LGPLv3+
Group:          System/Libraries
URL:            http://sigrok.org/wiki/%{name}
Source0:        http://sigrok.org/download/source/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  doxygen
BuildRequires:  graphviz

Provides: bundled(jquery) = 1.7.1

%description
libserialport is a minimal library written in C that is intended to take care
of the OS-specific details when writing software that uses serial ports.

By writing your serial code to use libserialport, you enable it to work
transparently on any platform supported by the library.

The operations that are supported are:

- Port enumeration (obtaining a list of serial ports on the system).
- Opening and closing ports.
- Setting port parameters (baud rate, parity, etc).
- Reading, writing and flushing data.
- Obtaining error information.

%package  -n	%{libname}
Summary:        Development files for %{name}
Group:          System/Libraries

%description -n	%{libname}
Library for accessing serial ports

%package  -n	%{devname}
Summary:        Development files for %{name}
Requires:       %{libname} = %{EVRD}
Group:          System/Libraries

%description -n	%{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package        doc
Summary:        API documentation for %{name}
BuildArch:      noarch

%description    doc
The %{name}-doc package contains documentation for developing software
with %{name}.


%prep
%setup -q

%build
%configure --disable-static
V=1 make %{?_smp_mflags}

# This builds documentation for the -doc package
make %{?_smp_mflags} doc


%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'


%files -n %{libname}
%{_libdir}/%{name}.so.0*

%files -n %{devname}
%doc COPYING README
%{_includedir}/%{name}.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{name}.so

%files doc
%doc doxy/html-api/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2906 |21cr|libsexymm-0.1.9-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 2
%define libname %mklibname sexymm %{major}
%define devname %mklibname sexymm -d

Summary:	Collection of widgets for gtkmm
Name:		libsexymm
Version:	0.1.9
Release:	12
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.chipx86.com/wiki/Libsexy
Source0:	http://releases.chipx86.com/libsexy/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gdkmm-2.4)
BuildRequires:	pkgconfig(libsexy)

%description
This is a collection of widgets for gtkmm.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Collection of widgets for gtkmm
Group:		System/Libraries

%description -n %{libname}
This is a collection of widgets for gtkmm.

%files -n %{libname}
%{_libdir}/libsexymm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Collection of widgets for gtkmm
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}sexymm2-devel < 0.1.9-9
Obsoletes:	%{_lib}sexymm2-devel < 0.1.9-9

%description -n %{devname}
This is a collection of widgets for gtkmm.

%files -n %{devname}
%doc ChangeLog AUTHORS NEWS
%{_includedir}/*
%{_libdir}/libsexymm.so
%{_libdir}/%{name}
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2907 |21cr|libshairport-1.2.1.20121215-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	1
%define	libname	%mklibname shairport %{major}
%define	devname	%mklibname shairport -d

%define	snap	20120111
%define	rel	2

Summary:	Apple RAOP server library
Name:		libshairport
Version:	1.2.1.20121215
Release:	1
License:	MIT
Group:		System/Libraries
URL:		https://github.com/amejia1/libshairport
# git archive --prefix libshairport-20120111/ master | xz > libshairport-20120111.tar.xz
Source:		%{name}-%{snap}.tar.xz
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(ao)

%description
This library emulates an AirPort Express for the purpose of streaming
music from iTunes and compatible iPods. It implements a server for the
Apple RAOP protocol.

ShairPort does not support AirPlay v2 (video and photo streaming).

%package -n %{libname}
Summary:	Shared library of libshairport
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
libshairport is an Apple RAOP server library.

This package contains the library needed to run programs dynamically
linked with libshairport.

%package -n %{devname}
Summary:	Headers for libshairport development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# we are not actually linking against it (just using the headers), so this
# doesn't get added automatically:
Requires:	pkgconfig(ao)
Provides:	shairport-devel = %{EVRD}

%description -n %{devname}
libshairport is an Apple RAOP server library.

This package contains the headers that are needed to compile
applications that use libshairport.

%prep
%setup -q -n %{name}-%{snap}

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%doc README
%{_libdir}/*.so
%dir %{_includedir}/shairport
%{_includedir}/shairport/*.h
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2908 |21cr|libshell-0.4.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A library of shell functions
Name:		libshell
Version:	0.4.9
Release:	1
License:	GPL
Group:		Development/Other
Url:		https://github.com/legionus/libshell.git
Source0:	https://github.com/legionus/libshell/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	libshell.rpmlintrc
BuildArch:	noarch
BuildRequires:	help2man
BuildRequires:	md2man
BuildRequires:	scdoc

%description
This package contains common functions for shell projects
to increase code reuse.

%files
/bin/*
%exclude /bin/shell-lib
%{_mandir}/man3/*
%{_datadir}/%{name}
%doc COPYING

#------------------------------------------------------------

%package single
Summary:	A library of shell functions (single file)
Group:		Development/Other

%description single
This package contains common functions for shell projects
to increase code reuse as single file.

%files single
/bin/shell-lib

#------------------------------------------------------------

%package -n cgrep
Summary:	Simple program output colorifer
Group:		Text tools

%description -n cgrep
This package contains simple wrapper to colorize output from any programs.

%files -n cgrep
%{_bindir}/cgrep*
%{_mandir}/man1/*

#------------------------------------------------------------

%prep
%setup -q

sed -i -e 's,^#!/bin/ash,#!/bin/sh,' \
	utils/cgrep.in

%build
%make

%install
%makeinstall_std
%make DESTDIR=%{buildroot} install-single

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2909 |21cr|libsigc++1.2-1.2.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname libsigc++

%define api 1.2
%define major 5
%define libname %mklibname sigc++ %{api} %{major}
%define devname %mklibname sigc++ %{api} -d

Summary:	The Typesafe Signal Framework for C++
Name:		%{pkgname}%{api}
Version:	1.2.7
Release:	9
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://libsigc.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/libsigc++/%{pkgname}-%{version}.tar.bz2

%description
Callback system for use in widget libraries, abstract interfaces, and
general programming.

This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. Originally part
of the Gtk-- widget set, %{pkgname} is now a separate library to provide for
more general use. It is the most complete library of its kind with the
ablity to connect an abstract callback to a class method, function, or
function object. It contains adaptor classes for connection of dissimilar
callbacks and has an ease of use unmatched by other C++ callback
libraries.

Package gtkmm, which is a c++ binding to the famous gtk+ library, uses
%{pkgname}.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Typesafe Signal Framework for C++
Group:		System/Libraries

%description -n %{libname}
Callback system for use in widget libraries, abstract interfaces, and
general programming.

This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. Originally part
of the Gtk-- widget set, %{pkgname} is now a separate library to provide for
more general use. It is the most complete library of its kind with the
ablity to connect an abstract callback to a class method, function, or
function object. It contains adaptor classes for connection of dissimilar
callbacks and has an ease of use unmatched by other C++ callback
libraries.

Package gtkmm, which is a c++ binding to the famous gtk+ library, uses
%{pkgname}.

%files -n %{libname}
%doc AUTHORS COPYING.LIB FEATURES NEWS README
%{_libdir}/libsigc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for the Typesafe Signal Framework for C++
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}sigc++1.2_5-devel < 1.2.7-5
Obsoletes:	%{_lib}sigc++1.2_5-devel < 1.2.7-5

%description -n %{devname}
This package contains the headers and static libraries of %{pkgname},
which are needed when developing or compiling applications which use
%{pkgname}.

%files -n %{devname}
%doc ChangeLog TODO IDEAS doc/[[:lower:]]*
%{_includedir}/*
%{_libdir}/libsigc-%{api}.so
%{_libdir}/pkgconfig/*
%{_libdir}/sigc++-%{api}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{version}

%build
%configure --disable-static
%make

%install
%makeinstall_std

rm -rf doc/tests
mkdir doc/tests
cp tests/*.cc tests/README tests/Makefile doc/tests/

rm -rf doc/examples
mkdir doc/examples
cp examples/*.cc examples/Makefile doc/examples/

# remove files not bundled
rm -f doc/manual/README

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2910 |21cr|libsignal-protocol-c-2.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		2
%define libname		%mklibname signal-protocol-c %{major}
%define develname	%mklibname signal-protocol-c -d

Name:		libsignal-protocol-c
Version:	2.3.3
Release:	1
Summary:	Signal Protocol C library
Group:		System/Libraries
License:	GPLv3
URL:		https://github.com/signalapp/libsignal-protocol-c
Source0:	https://github.com/signalapp/libsignal-protocol-c/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/signalapp/libsignal-protocol-c/pull/128
Patch1:		0001-remove-bundled-version-of-protobuf-c-and-link-to-sys.patch
Patch2:		0002-protobuf-add-syntax-proto2-directive-for-compat-with.patch
Patch3:		0003-re-gen-protobuf-.c-and-.h-with-protobuf-c-1.3.1.patch
Patch4:		0004-add-lprotobuf-c-to-pkg-config-s-Libs-line.patch
BuildRequires:	cmake
BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libprotobuf-c)

%description
This is a ratcheting forward secrecy protocol that works in synchronous
and asynchronous messaging environments.

#------------------------------------------------

%package -n	%{libname}
Summary:	Signal Protocol C library
Group:		System/Libraries

%description -n	%{libname}
This is a ratcheting forward secrecy protocol that works in synchronous
and asynchronous messaging environments.

%files -n %{libname}
%license LICENSE
%doc README.md
%{_libdir}/%{name}.so.%{major}{,.*}

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	signal-protocol-c-devel = %{EVRD}

%description -n	%{develname}
Header files for development with %{name}.

%files -n %{develname}
%{_includedir}/signal/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%make_install -C build

%check
ctest -V %{?_smp_mflags}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2911 |21cr|libsilk-1.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0

%define libname %mklibname SKP_SILK_SDK %{major}
%define devname %mklibname SKP_SILK_SDK -d
%define devnamestatic %mklibname SKP_SILK_SDK -d -s


Name:		libsilk
Version:	1.0.8
Release:	1
Summary:	libsilk is a library for the silk codec
Group:		System/Libraries
License:	Skype BSD-like
URL:		http://stash.freeswitch.org
Source:		libsilk-1.0.8.tar.gz

%description
libsilk is a library for the silk codec

%files
%doc ChangeLog AUTHORS COPYING NEWS README
%{_bindir}/Decoder
%{_bindir}/Encoder
%{_bindir}/signalCompare

#-------------------------------------------------------

%package -n %{libname}
Summary:	libsilk is a library for the silk codec
Group:		System/Libraries

%description -n %{libname}
libsilk is a library for the silk codec

%files -n %{libname}
%{_libdir}/libSKP_SILK_SDK.so.%{major}*

#-------------------------------------------------------

%package -n %{devname}
Summary:	silk development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
silk development files.

%files -n %{devname}
%{_includedir}/silk
%{_libdir}/libSKP_SILK_SDK.so
%{_libdir}/pkgconfig/silk.pc

#-------------------------------------------------------

%package -n %{devnamestatic}
Summary:	silk development files (static library)
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{devnamestatic}
silk development files.

%files -n %{devnamestatic}
%{_libdir}/libSKP_SILK_SDK.a

#-------------------------------------------------------

%prep
%setup -q

%build
./bootstrap.sh
%configure --enable-static
%make

%install
%make_install
rm %{buildroot}%{_libdir}/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2912 |21cr|libsmf-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 		0
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname -d %{name}

Name:		libsmf
Version:	1.3
Release:	2
Summary:	Library for handling SMF ("*.mid") files
Group:		System/Libraries
License:	BSD
Source:		libsmf-1.3.tar.xz
URL:		http://sourceforge.net/projects/libsmf/files/libsmf/
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: readline-devel

%description
LibSMF is a BSD-licensed C library for handling SMF ("*.mid") files.
It transparently handles conversions between time and pulses, tempo
map handling etc. The only dependencies are C compiler and glib. Full
API documentation and examples are included.

%package -n %{libname}
Summary:	Library for handling SMF ("*.mid") files
Group:		System/Libraries

%description -n %{libname}
LibSMF is a BSD-licensed C library for handling SMF ("*.mid") files.
It transparently handles conversions between time and pulses, tempo
map handling etc. The only dependencies are C compiler and glib. Full
API documentation and examples are included.


%package -n %{develname}
Summary:	Development headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
LibSMF is a BSD-licensed C library for handling SMF ("*.mid") files.
It transparently handles conversions between time and pulses, tempo
map handling etc. The only dependencies are C compiler and glib. Full
API documentation and examples are included.

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files
%{_bindir}/smfsh
%{_mandir}/man1/smfsh.1*

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/smf.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2913 |21cr|libsnet-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 0
%define libname %mklibname snet %{major}
%define libnamep %mklibname snet_p %{major}
%define devname %mklibname snet -d

%bcond_with profiled

Summary:	The libsnet library
Name:		libsnet
Version:	1.0.0
Release:	5
Epoch:		1
License:	BSD
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libsnet
Source0:	%{name}-%{version}.tar.gz
Patch0:		libsnet-makefile_fixes.diff
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
The libsnet library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The libsnet library
Group:		System/Libraries

%description -n %{libname}
The libsnet library.

%files -n %{libname}
%{_libdir}/libsnet.so.%{major}*

#----------------------------------------------------------------------------

%if %{with profiled}
%package -n %{libnamep}
Summary:	The libsnet library
Group:		System/Libraries
Conflicts:	%{_lib}sname0 < 1:1.0.0

%description -n %{libnamep}
The libsnet library.

%files -n %{libnamep}
%{_libdir}/libsnet_p.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libsnet library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
%if %{with profiled}
Requires:	%{libnamep} = %{EVRD}
%endif
Provides:	snet-devel = %{EVRD}
Provides:	libsnet-devel = %{EVRD}

%description -n	%{devname}
This package contains the static libsnet library and its header
files needed to compile applications such as radmind, nefu, etc.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

# lib64 fixes
perl -pi -e "s|/lib\b|/%{_lib}|g" *

%build
export OPTOPTS="%{optflags} -fPIC"
export LIBS="-lcrypto -lssl -lsasl2 -lz"

%configure \
%if %{without profiled}
	--enable-profiled=no \
%endif
	--enable-shared \
	--disable-static \
	--with-zlib=%{_prefix} \
	--with-ssl=%{_prefix} \
	--with-sasl=%{_prefix}

%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2914 |21cr|libsoundtouch4c-0.5-0.b1.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta b1
%define	major 0
%define libname %mklibname soundtouch4c %{major}
%define devname %mklibname soundtouch4c -d

Summary:	A wrapper for soundtouch so you can use it in C programs
Name:		libsoundtouch4c
Version:	0.5
Release:	0.%{beta}.3
License:	GPL
Group:		System/Libraries
Url:		http://lobstertech.com/2006/aug/23/soundtouch4c/
Source0:	http://lobstertech.com/media/file/libsoundtouch4c/soundtouch4c-%{version}b.tar.gz
BuildRequires:	pkgconfig(soundtouch) >= 1.3.1
BuildRequires:	libtool

%description
A wrapper for soundtouch so you can use it in C programs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A wrapper for soundtouch so you can use it in C programs
Group:		System/Libraries

%description -n %{libname}
A wrapper for soundtouch so you can use it in C programs.

This package contains the shared libraries for libsoundtouch4c.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/*.so.%{major}
%{_libdir}/*.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package with static libs and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	soundtouch4c-devel = %{EVRD}

%description -n %{devname}
Static libraries and header files for libsoundtouch4c.

%files -n %{devname}
%{_bindir}/soundtouch4c-demo
%{_datadir}/aclocal/*.m4
%{_mandir}/man7/*.7.*
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n soundtouch4c-%{version}b

%build
%configure \
	--enable-shared
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2915 |21cr|libspatialite-5.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname spatialite %{major}
%define develname %mklibname -d spatialite

Name:		libspatialite
Version:	5.0.1
Release:	1
Summary:	SpatiaLite extension enables SQLite to support spatial data 
Group:		System/Libraries
License:	MPL
URL:		https://www.gaia-gis.it/fossil/libspatialite/index
Source0:	http://www.gaia-gis.it/gaia-sins/%{name}-%{version}.tar.gz
BuildRequires:	sqlite3-devel
BuildRequires:	freexl-devel
BuildRequires:	geos-devel
BuildRequires:	librttopo-devel
BuildRequires:	minizip-devel
BuildRequires:	proj-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)

%description
Core package.

#-------------------------------------------------------------------------------------

%package -n	%{libname}
Summary:	SpatiaLite extension enables SQLite to support spatial data
Group:		System/Libraries

%description -n	%{libname}
The SpatiaLite extension enables SQLite to support spatial data too [aka
GEOMETRY], in a way conformant to OpenGis specifications supports standard
WKT and WKB formats:
- implements SQL spatial functions such as AsText(), GeomFromText(), Area(),
PointN() and alike
- the complete set of OpenGis functions is supported via GEOS, this
comprehending sophisticated spatial analysis functions such as Overlaps(),
Touches(), Union(), Buffer() ..
- supports full Spatial metadata along the OpenGis specifications
- supports importing and exporting from / to shapefiles
- supports coordinate reprojection via PROJ.4 and EPSG geodetic parameters
 dataset
- supports locale charsets via GNU libiconv
- implements a true Spatial Index based on the SQLite's RTree extension

%files -n %{libname}
%{_libdir}/libspatialite.so.%{major}*
%{_libdir}/mod_spatialite.so.%{major}*

#-------------------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Devel files for spatialite library
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	spatialite-devel =  %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n	%{develname}
Devel files for spatialite library

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#-------------------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --enable-static=no
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2916 |21cr|libspectrum-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 9
%define libname %mklibname spectrum %{major}
%define devname %mklibname spectrum -d

Summary:	Library to work with ZX Spectrum emulator files
Name:		libspectrum
Version:	1.5.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://fuse-emulator.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/fuse-emulator/%{name}-%{version}.tar.gz
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(zlib)

%description
libspectrum is a fairly simple library designed to make the handling
of various ZX Spectrum emulator-related file formats easy.  So far it
handles:

* Snapshots: .z80, .szx, .sna (all read/write), .zxs, .sp., .snp and
  +D snapshots (read only).
* Tape images: .tzx, .tap (read/write) and Warajevo .tap (read only).
* Input recordings: .rzx (read/write).
* Timex cartridges: .dck (read only).
* IDE hard disk images: .hdf (read/write).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to work with ZX Spectrum emulator files
Group:		System/Libraries

%description -n %{libname}
libspectrum is a library which is designed to make the input and
output of ZX Spectrum emulator files slightly easier than it would be
otherwise. It should hopefully compile and run on Unix-based systems,
Win32 and Mac OS X.

Currently supported are:

* Snapshots: .z80, .szx, .sna (all read/write), .zxs, .sp., .snp and
  +D snapshots (read only).
* Tape images: .tzx, .tap (read/write) and Warajevo .tap (read only).
* Input recordings: .rzx (read/write).
* Timex cartridges: .dck (read only).
* IDE hard disk images: .hdf (read/write).

This package provides the libraries to handle ZX Spectrum emulator files.

%files -n %{libname}
%doc COPYING README doc/libspectrum.txt
%{_libdir}/libspectrum.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for programs which will use the libspectrum library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with libspectrum.

%files -n %{devname}
%doc COPYING README doc/libspectrum.txt
%{_libdir}/libspectrum.so
%{_libdir}/pkgconfig/libspectrum.pc
%{_includedir}/%{name}.h
%{_mandir}/man3/%{name}.3*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2917 |21cr|libspf2-1.2.10-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	2
%define	libname	%mklibname spf %{major}

Summary:	Implementation of the SPF specification
Name:		libspf2
Version:	1.2.10
Release:	11
License:	BSD
Group:		System/Libraries
Url:		http://www.libspf2.org/
Source0:	http://www.libspf2.org/spf/%{name}-%{version}.tar.gz
Patch0:		%{name}-1.2.10-fix-build-with-gcc5.patch

%description
libspf2 is an implementation of the SPF (Sender Policy Framework)
specification as found at:
http://www.ietf.org/internet-drafts/draft-mengwong-spf-00.txt
SPF allows email systems to check SPF DNS records and make sure that an email
is authorized by the administrator of the domain name that it is coming from.
This prevents email forgery, commonly used by spammers, scammers, and email
viruses/worms. A lot of effort has been put into making it secure by design,
and a great deal of effort has been put into the regression tests.

%if "%{_lib}" == "lib"
%files
%doc README LICENSES TODO
%{_libdir}/lib*.so.%{major}*
%endif

#-----------------------------------------------------------------------------

%if "%{_lib}" != "lib"
%package -n	%{libname}
Summary:	Implementation of the SPF specification
Group:		System/Libraries

%description -n	%{libname}
libspf2 is an implementation of the SPF (Sender Policy Framework)
specification as found at:
http://www.ietf.org/internet-drafts/draft-mengwong-spf-00.txt
SPF allows email systems to check SPF DNS records and make sure that an email
is authorized by the administrator of the domain name that it is coming from.
This prevents email forgery, commonly used by spammers, scammers, and email
viruses/worms. A lot of effort has been put into making it secure by design,
and a great deal of effort has been put into the regression tests.

%files -n %{libname}
%doc README LICENSES TODO
%{_libdir}/lib*.so.%{major}*
%endif

#-----------------------------------------------------------------------------

%package -n	%{libname}-devel
Summary:	Development tools needed to build programs that use libspf2
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{libname}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{libname}-devel
The libspf2-devel package contains the header files and static libraries
necessary for developing programs using the libspf2 (Sender Policy Framework)
library. If you want to develop programs that will look up and process SPF
records, you should install libspf2-devel. You also need to install the libspf2
package.

%files -n %{libname}-devel
%doc LICENSES
%{_libdir}/*.a
%{_libdir}/*.so
%{_includedir}/spf2

#-----------------------------------------------------------------------------

%package -n	spf2-utils
Summary:	Programs for making SPF queries using libspf2
Group:		System/Servers

%description -n	spf2-utils
Programs for making SPF queries and checking their results using libspf2.

%files -n spf2-utils
%doc LICENSES
%{_bindir}/spfd2
%{_bindir}/spfquery2
%{_bindir}/spftest2
%{_bindir}/spf_example2

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
# The configure script checks for the existence of __ns_get16 and uses the
# system-supplied version if found, otherwise one from src/libreplace.
# However, this function is marked GLIBC_PRIVATE in recent versions of glibc
# and shouldn't be called even if the configure script finds it. So we make
# sure that the configure script always uses the version in src/libreplace.
# This prevents us getting an unresolvable dependency in the built RPM.
cat > config.cache << EOF
ac_cv_func___ns_get16=no
EOF

%configure \
	--enable-static \
	--cache-file=config.cache
%make


%install
%makeinstall_std

# Install all headers
install -m0644 src/include/*.h %{buildroot}%{_includedir}/spf2/

# These binaries are needed by the tests above
rm -f %{buildroot}%{_bindir}/*_static

# Rename the binaries to prevent file conflicts
cd  %{buildroot}%{_bindir}
    for f in *; do mv ${f} ${f}2; done
cd -

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2918 |21cr|libspnav-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname spnav

%define major 0
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	library to access 3D-input-devices
Name:		libspnav
Version:	1.0
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://spacenav.sourceforge.net/
Source0:	http://download.sourceforge.net/spacenav/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(x11)

%description
The libspnav library is provided as a replacement of the magellan library. It
provides a cleaner, and more orthogonal interface. libspnav supports both the
original X11 protocol for communicating with the driver, and the new
alternative non-X protocol. Programs that choose to use the X11 protocol, are
automatically compatible with either the free spacenavd driver or the official
3dxserv, as if they were using the magellan SDK.

Also, libspnav provides a magellan API wrapper on top of the new API. So, any
applications that were using the magellan library, can switch to libspnav
without any changes. And programmers that are familliar with the magellan API
can continue using it with a free library without the restrictions of the
official SDK.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to access 3D-input-devices
Group:		System/Libraries

%description -n %{libname}
The libspnav library is provided as a replacement of the magellan library. It
provides a cleaner, and more orthogonal interface. libspnav supports both the
original X11 protocol for communicating with the driver, and the new
alternative non-X protocol. Programs that choose to use the X11 protocol, are
automatically compatible with either the free spacenavd driver or the official
3dxserv, as if they were using the magellan SDK.

Also, libspnav provides a magellan API wrapper on top of the new API. So, any
applications that were using the magellan library, can switch to libspnav
without any changes. And programmers that are familliar with the magellan API
can continue using it with a free library without the restrictions of the
official SDK.

%files -n %{libname}
%{_libdir}/libspnav.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
libspnav - library to access 3D-input-devices.

This package contains development files.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so
%{_datadir}/pkgconfig/spnav.pc
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
sed -i "s/libdir=lib/libdir=%{_lib}/g" configure

%configure \
	--disable-static

sed -i "s/CFLAGS =/CFLAGS +=/g" Makefile
sed -i "s/-Wl,--no-undefined//g" Makefile
%make

%install
%makeinstall_std

chmod 755 %{buildroot}%{_libdir}/*.so.*
chmod 644 %{buildroot}%{_includedir}/*.h

# Remove static library
rm -f %{buildroot}%{_libdir}/%{name}.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2919 |21cr|libspopc-0.7.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname spopc %{major}
%define devname %mklibname spopc -d

Summary:	POP3 client library
Name:		libspopc
Version:	0.7.8
Release:	6
License:	LGPLv2+
Group:		System/Libraries
Url:		http://brouits.free.fr/libspopc/
Source0:	http://brouits.free.fr/libspopc/releases/%{name}-%{version}.tar.gz
Patch0:		libspopc-shared.diff
BuildRequires:	pkgconfig(openssl)

%description
'libspopc' is a simple-to-use POP3 client library. It provides an easy and
quick way to host a POP3 client within a program to C developers without
exposing them to socket programming. However, the socket layer is also
accessible. libspopc allows mail programs to connect to many POP accounts and
manage email. It implements the client side of RFC 1939. The email client can
download email headers before downloading the entire message. 

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	POP3 client library
Group:		System/Libraries

%description -n %{libname}
'libspopc' is a simple-to-use POP3 client library. It provides an easy and
quick way to host a POP3 client within a program to C developers without
exposing them to socket programming. However, the socket layer is also
accessible. libspopc allows mail programs to connect to many POP accounts and
manage email. It implements the client side of RFC 1939. The email client can
download email headers before downloading the entire message.

%files -n %{libname}
%doc AUTHORS ChangeLog README doc/*.txt doc/*.html
%{_libdir}/libspopc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	spopc-devel = %{EVRD}

%description -n %{devname}
'libspopc' is a simple-to-use POP3 client library. It provides an easy and
quick way to host a POP3 client within a program to C developers without
exposing them to socket programming. However, the socket layer is also
accessible. libspopc allows mail programs to connect to many POP accounts and
manage email. It implements the client side of RFC 1939. The email client can
download email headers before downloading the entire message.

This package contains the development library and header files for %{name}

%files -n %{devname}
%doc README.examples examples
%{_includedir}/*
%{_libdir}/libspopc.so
%{_libdir}/libspopc.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p0

# fix attribs
chmod 644 AUTHORS ChangeLog doc/README* README* doc/*.txt doc/*.html examples/*

%build
make

%install
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_libdir}

install -m0755 libspopc.so.%{version} %{buildroot}%{_libdir}/
ln -snf libspopc.so.%{version} %{buildroot}%{_libdir}/libspopc.so.0.7
ln -snf libspopc.so.%{version} %{buildroot}%{_libdir}/libspopc.so.0
ln -snf libspopc.so.%{version} %{buildroot}%{_libdir}/libspopc.so

install -m0755 libspopc.a %{buildroot}%{_libdir}/
install -m0644 libspopc.h %{buildroot}%{_includedir}/

cp doc/README README.examples

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2920 |21cr|libsrcinst-2.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname srcinst

%define major 0
%define libname %mklibname %{shortname} %{major}
%define devname %mklibname %{shortname} -d

Summary:	Basic library used by sourceinstall
Name:		libsrcinst
Version:	2.5
Release:	9
License:	GPLv3+
Group:		System/Libraries
Url:		http://www.gnu.org/software/sourceinstall
Source0:	ftp://ftp.gnu.org/gnu/sourceinstall/%{name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:	info-install

%description
Libsrcinst is the basic library used by the sourceinstall application.
Sourceinstall provides a way to centralize source installation.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Basic library used by sourceinstall
Group:		System/Libraries

%description -n %{libname}
Libsrcinst is the basic library used by the sourceinstall application.
Sourceinstall provides a way to centralize source installation.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for the sourceinstall library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Libsrcinst is the basic library used by the sourceinstall application.
Sourceinstall provides a way to centralize source installation.

%files -n %{devname} -f %{name}.lang
%doc AUTHORS README.API TODO
%{_includedir}/%{shortname}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
PATH=$PATH:/sbin %configure --disable-static
%make

%install
PATH=$PATH:/sbin %makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2921 |21cr|libsrs2-1.0.18-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 0
%define libname %mklibname srs2_ %{major}
%define devname %mklibname srs2 -d

Summary:	SRS email address rewriting engine
Name:		libsrs2
Version:	1.0.18
Release:	13
License:	BSD
Group:		System/Libraries
Url:		http://www.libsrs2.org/
Source0:	http://www.libsrs2.org/srs/%{name}-%{version}.tar.bz2
BuildRequires:	autoconf2.5
BuildRequires:	libtool

%description
libsrs2 is the next generation SRS library. SPF verifies that the
Sender address of a mail matches (according to some policy) the
client IP address which submits the mail. When a mail is forwarded,
the sender address must be rewritten to comply with SPF policy. The
Sender Rewriting Scheme, or SRS, provides a standard for this
rewriting which is not vulnerable to attacks by spammers.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	SRS email address rewriting engine
Group:		System/Libraries
Conflicts:	%{_lib}srs_2 < 1.0.18-11
Obsoletes:	%{_lib}srs_2 < 1.0.18-11

%description -n %{libname}
libsrs2 is the next generation SRS library. SPF verifies that the
Sender address of a mail matches (according to some policy) the
client IP address which submits the mail. When a mail is forwarded,
the sender address must be rewritten to comply with SPF policy. The
Sender Rewriting Scheme, or SRS, provides a standard for this
rewriting which is not vulnerable to attacks by spammers.

%files -n %{libname}
%doc README NEWS AUTHORS
%{_libdir}/libsrs2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools needed to build programs that use libsrs2
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libsrs-devel = %{EVRD}
Conflicts:	%{_lib}srs-devel < 1.0.18-11
Obsoletes:	%{_lib}srs-devel < 1.0.18-11

%description -n %{devname}
libsrs2 is the next generation SRS library. SPF verifies that the
Sender address of a mail matches (according to some policy) the
client IP address which submits the mail. When a mail is forwarded,
the sender address must be rewritten to comply with SPF policy. The
Sender Rewriting Scheme, or SRS, provides a standard for this
rewriting which is not vulnerable to attacks by spammers.

This package contains development files needed to compile softwares
against the SRS library.

%files -n %{devname}
%{_libdir}/libsrs2.a
%{_libdir}/libsrs2.so
%{_includedir}/*.h

#----------------------------------------------------------------------------

%package -n srs
Summary:	Command line interface to libsrs2
Group:		System/Servers

%description -n srs
Command line interface to libsrs2.

%files -n srs
%{_bindir}/srs
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

make

%install
%makeinstall_std

install -d %{buildroot}%{_mandir}/man1
install -m0644 debian/srs.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2922 |21cr|libsrs_alt-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname srs_alt %{major}
%define devname %mklibname srs_alt -d

Summary:	A C implementation of SRS
Name:		libsrs_alt
Version:	1.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://srs.mirtol.com/
Source0:	https://opsec.eu/src/srs/%{name}-%{version}.tar.bz2
BuildRequires:	libtool

%description
libsrs_alt is a C implementation of SRS (Sender Rewriting Scheme)

Features:

 o No external library requirements (from 0.4)
 o Quick and easy to use library interface
 o Support for database callback with SRS0
 o srs command line tool and srs daemon
 o All non-critical errors reported using function return value
 o Support for Exim (including database lookup) (See latest exiscan patch)
 o SRS Compliant
 o Automake/autoconf package

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C implementation of SRS
Group:		System/Libraries

%description -n %{libname}
libsrs_alt is a C implementation of SRS (Sender Rewriting Scheme)

Features:

 o No external library requirements (from 0.4)
 o Quick and easy to use library interface
 o Support for database callback with SRS0
 o srs command line tool and srs daemon
 o All non-critical errors reported using function return value
 o Support for Exim (including database lookup) (See latest exiscan patch)
 o SRS Compliant
 o Automake/autoconf package

%files -n %{libname}
%doc ChangeLog
%{_libdir}/libsrs_alt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools needed to build programs that use the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	srs_alt-devel = %{EVRD}

%description -n %{devname}
libsrs_alt is a C implementation of SRS (Sender Rewriting Scheme)

This package contains development files needed to compile softwares
against the libsrs_alt library.

%files -n %{devname}
%{_libdir}/libsrs_alt.so
%{_includedir}/*.h

#----------------------------------------------------------------------------

%package utils
Summary:	Command line interface to %{name}
Group:		System/Servers

%description utils
Command line interface to %{name}.

%files utils
%{_bindir}/srs_alt

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-static

make

%install
%makeinstall_std

mv %{buildroot}%{_bindir}/srs %{buildroot}%{_bindir}/srs_alt

rm -f %{buildroot}%{_libdir}/libsrs_alt.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2923 |21cr|libsrtp-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define libname	%mklibname srtp %{major}
%define develname %mklibname -d srtp
%define _disable_rebuild_configure 1

Summary:	Secure Real-time Transport Protocol (SRTP)
Name:		libsrtp
Version:	1.6.0
Release:	1
License:	GPL
Group:		System/Libraries
URL:		https://github.com/cisco/libsrtp/
Source0:	https://github.com/cisco/libsrtp/archive/v1.6.0.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	autoconf automake libtool

%description
SRTP is a security profile for RTP that adds confidentiality, message
authentication, and replay protection to that protocol. It is specified
in RFC 3711.

%package -n	%{libname}
Summary:	Secure Real-time Transport Protocol (SRTP) library
Group:          System/Libraries

%description -n	%{libname}
SRTP is a security profile for RTP that adds confidentiality, message 
authentication, and replay protection to that protocol. It is specified 
in RFC 3711.

%package -n	%{develname}
Summary:	Development files for the SRTP library
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	srtp-devel = %{version}-%{release}

%description -n	%{develname}
SRTP is a security profile for RTP that adds confidentiality, message
authentication, and replay protection to that protocol. It is specified 
in RFC 3711.

This package contains the development files for the Secure Real-time Transport
Protocol (SRTP) library

%prep

%setup -q
%apply_patches

%build

%configure \
	--enable-syslog \
	--enable-generic-aesicm

%make libsrtp.so.%{major}

%install
%makeinstall_std

%files -n %{libname}
%doc CHANGES README
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%doc CHANGES README
%{_includedir}/srtp/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libsrtp.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2924 |21cr|libss7-2.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define libname %mklibname ss7 _%{major}
%define develname %mklibname ss7 -d

Summary:	Provides SS7 protocol services to applications
Name:		libss7
Version:	2.0.0
Release:	3
License:	GPL
Group:		System/Libraries
URL:		http://www.asterisk.org/
Source0:	http://ftp.digium.com/pub/libss7/%{name}-%{version}.tar.gz

%description
libss7 is a userspace library that is used for providing SS7 protocol services
to applications.  It has a working MTP2, MTP3, and ISUP for ITU and ANSI style
SS7, however it was written in a manner that will easily allow support for
other various national specific variants in the future.  For a working
reference implementation, see the various link test programs, as well as the
Asterisk Open Source PBX.

%package -n	%{libname}
Summary:	Provides SS7 protocol services to applications
Group:          System/Libraries

%description -n	%{libname}
libss7 is a userspace library that is used for providing SS7 protocol services
to applications.  It has a working MTP2, MTP3, and ISUP for ITU and ANSI style
SS7, however it was written in a manner that will easily allow support for
other various national specific variants in the future.  For a working
reference implementation, see the various link test programs, as well as the
Asterisk Open Source PBX.

%package -n	%{develname}
Summary:	Development libraries and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	ss7-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
libss7 is a userspace library that is used for providing SS7 protocol services
to applications.  It has a working MTP2, MTP3, and ISUP for ITU and ANSI style
SS7, however it was written in a manner that will easily allow support for
other various national specific variants in the future.  For a working
reference implementation, see the various link test programs, as well as the
Asterisk Open Source PBX.

This package contains all of the development files that you will need in order
to compile %{name} applications.

%prep

%setup -q

# lib64 fix
find -name "Makefile" | xargs perl -pi -e 's|\$\(INSTALL_BASE\)/lib|\$\(INSTALL_BASE\)/%{_lib}|g'

%build

%make CFLAGS="%{optflags} -fPIC -DPIC -D_REENTRANT"

%install
make \
    INSTALL_PREFIX="%{buildroot}" \
    install

# cleanup
rm -f %{buildroot}%{_libdir}/*.a

%files -n %{libname}
%doc ChangeLog README NEWS*
%{_libdir}/lib*.so.%{major}*

%files -n %{develname}
%{_includedir}/*.h
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2925 |21cr|libstroke-0.5.1-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stroke

%define major 0
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	Stroke interface library
Name:		libstroke
Version:	0.5.1
Release:	26
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.etla.net/libstroke/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		libstroke-0.5.1-fix-underquoted-calls.patch
Patch1:		libstroke-linkage_fix.diff
Patch2:		libstroke-0.5.1-no_gtk1.patch
Patch3:		libstroke-0.5.1-dup-defination.patch
Patch4:		libstroke-0.5.1-drop-unused-comments.patch
BuildRequires:	pkgconfig(x11)

%description
LibStroke is a stroke interface library. Strokes are motions
of the mouse that can be interpreted by a program as a command.  Strokes
are used extensively in CAD programs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Stroke interface shared library
Group:		System/Libraries

%description -n %{libname}
LibStroke is a stroke interface library. Strokes are motions
of the mouse that can be interpreted by a program as a command.  Strokes
are used extensively in CAD programs.

%files -n %{libname}
%doc README AUTHORS COPYRIGHT NEWS
%{_libdir}/libstroke.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for libStroke
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
LibStroke is a stroke interface library. Strokes are motions
of the mouse that can be interpreted by a program as a command.  Strokes
are used extensively in CAD programs.

%files -n %{devname}
%doc INSTALL TODO
%{_datadir}/aclocal/*
%{_libdir}/libstroke.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .underquoted
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p0

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2926 |21cr|libsysactivity-0.6.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 1
%define libname %mklibname sysactivity %{major}
%define devname %mklibname sysactivity -d

Summary:	Library for retrieving statistics of the system activity
Name:		libsysactivity
Version:	0.6.5
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libsysactivity/
Source0:	http://downloads.sourceforge.net/project/%{name}/0.6.x/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen

%description
A lightweight library that retrieves statistics of the system's activity in a
portable and thread safe way. In each OS that it supports it offers the same
API for retrieving the activity of: hard disks, CPUs, memory, processes and
network interfaces.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for the %{name} package
Group:		System/Libraries

%description -n %{libname}
Libraries for %{name}.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*
%{_libdir}/%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc CHANGELOG COPYING
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/cmake/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2927 |21cr|libsysstat-0.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 0
%define libname %mklibname sysstat-qt %{api} %{major}
%define devname %mklibname sysstat-qt %{api} -d

Summary:	System status library for LXQt
Name:		libsysstat
Version:	0.4.2
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://lxqt.org/
Source0:	https://downloads.lxqt.org/libsysstat/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	pkgconfig(Qt5Core)

%description
System status library for LXQt.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	System status library for LXQt
Group:		System/Libraries

%description -n %{libname}
System status library for LXQt.

%files -n %{libname}
%doc AUTHORS CHANGELOG COPYING README.md
%{_libdir}/libsysstat-qt5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%doc README.md
%{_includedir}/*
%{_libdir}/libsysstat-qt5.so
%{_libdir}/pkgconfig/sysstat-qt5.pc
%{_datadir}/cmake/sysstat-qt5

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

# Drop double slash from pc files
sed -i 's#//usr#/usr#' %{buildroot}%{_libdir}/pkgconfig/*pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2928 |21cr|libtaginfo-0.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname taginfo %{major}
%define devname %mklibname taginfo -d

%define major_c 0
%define libname_c %mklibname taginfo_c %{major_c}

Summary:	A library for reading media metadata (tags)
Name:		libtaginfo
Version:	0.2.1
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://bitbucket.org/shuerhaaken/libtaginfo
Source0:	https://bitbucket.org/shuerhaaken/libtaginfo/downloads/libtaginfo-%{version}.tar.gz

BuildRequires:	pkgconfig(taglib_c)

%description
TagInfo is a convenience wrapper for taglib with C and vala bindings.

Features are reading/writing fields like: Artist, Album, Title, Genre,
AlbumArtist, Comments, Disk number, Compilation flag, User labels,
Embedded Images, Lyrics, Audio properties (length, bitrate,
samplerate, channels ...), ...

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Taginfo shared library
Group:		System/Libraries

%description -n %{libname}
Taginfo shared library.

%files -n %{libname}
%doc COPYING AUTHORS NEWS README TODO
%{_libdir}/libtaginfo.so.%{major}*

#------------------------------------------------------------------

%package -n %{libname_c}
Summary:	Taginfo_c shared library
Group:		System/Libraries

%description -n %{libname_c}
%{libname_c} shared library.

%files -n %{libname_c}
%{_libdir}/libtaginfo_c.so.%{major_c}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Taginfo development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_c} = %{EVRD}

%description -n %{devname}
Taginfo development files.

%files -n %{devname}
%doc examples
%{_includedir}/*
%{_libdir}/*.so
%dir %{_libdir}/libtaginfo
%{_libdir}/libtaginfo/include
%{_libdir}/pkgconfig/libtaginfo*.pc
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/libtaginfo_c.vapi

#------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2929 |21cr|libtermkey-0.22-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname termkey %{major}
%define develname %mklibname termkey -d
# if you disable unibillium it will lead to neovim segfaults
%bcond_without unibilium

Name: libtermkey
Version:	0.22
Release:	3
Summary: Library for easy processing of keyboard entry
# the licensing breakdown is described in detail in the LICENSE file
License: MIT and BSD and ISC
Group: Development/C
URL: http://www.leonerd.org.uk/code/libtermkey/
Source0: http://www.leonerd.org.uk/code/libtermkey/%{name}-%{version}.tar.gz
BuildRequires:	ncurses-devel
%if %{with unibilium}
BuildRequires:	pkgconfig(unibilium)
%endif
BuildRequires:	libtool

%description
This library allows easy processing of keyboard entry from terminal-based
programs. It handles all the necessary logic to recognize special keys, UTF-8
combining, and so on, with a simple interface.

%package -n %{libname}
Summary: Library for easy processing of keyboard entry
Group: System/Libraries

%description -n %{libname}
This library allows easy processing of keyboard entry from terminal-based
programs. It handles all the necessary logic to recognize special keys, UTF-8
combining, and so on, with a simple interface.

%package -n %{develname}
Summary: Development libraries for libtermkey
Group: Development/C
Requires: %{libname} = %{version}-%{release}

%description -n %{develname}
Development libraries for libtermkey.

%prep
%setup -q
sed -e '/^all:/s:$(DEMOS)::' -i Makefile

%build
%set_build_flags
%make_build PREFIX=%{_prefix} LIBDIR=%{_libdir}

%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}

%check
# Tests are currently disabled because some require network access
# Working with upstream to split these out
#./run-tests
#./run-benchmarks

%files -n %{libname}
%{_libdir}/libtermkey.so.%{major}
%{_libdir}/libtermkey.so.%{major}.*

%files -n %{develname}
%{_libdir}/libtermkey.so
%{_libdir}/pkgconfig/termkey.pc
%{_includedir}/termkey*.h
%{_mandir}/man?/termkey*.?*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2930 |21cr|libtgvoip-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 2.2
%define libname %mklibname tgvoip %{major}
%define develname %mklibname -d tgvoip

Name:		libtgvoip
Version:	2.2
Release:	1
Summary:	VoIP library for Telegram clients
Source0:	%{url}/archive/%{version}.tar.gz
Patch0:		fix_gyp.patch
License:	Public Domain
Group:		Networking/Instant messaging
Url:		https://github.com/grishka/%{name}
BuildRequires:	libalsa-devel
BuildRequires:	openssl-devel
BuildRequires:	opus-devel
BuildRequires:	pulseaudio-devel
BuildRequires:	cmake
BuildRequires:	make
BuildRequires:	gyp

%description
%{summary}

#--------------------------------------------------------

%package        -n %{libname}
Summary:        VoIP library for Telegram clients
Group:          System/Libraries

%description    -n %{libname}
VoIP library for Telegram clients

%files    -n %{libname}
%doc UNLICENSE
%{_libdir}/*.so*

#--------------------------------------------------------

%package        -n %{develname}
Summary:        VoIP library for Telegram clients
Group:          System/Libraries

%description    -n %{develname}
This package provides headers files for development.

%files    -n %{develname}
%doc UNLICENSE
%{_includedir}/%{name}

#--------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
export VERSION="%{version}"
gyp --format=cmake --depth=. --generator-output=. -Goutput_dir=out -Gconfig=Release %{name}.gyp

cd out/Release
cmake .
%make
cd ../..

%install
mkdir --parents %{buildroot}%{_libdir}
install --mode 0755 -p out/Release/lib.target/%{name}.so.%{version} %{buildroot}%{_libdir}
ln --symbolic %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so.2

mkdir --parents "%{buildroot}%{_includedir}/%{name}/audio"
find . -maxdepth 1 -type f -name "*.h" -exec install --mode 0644 --preserve-timestamps '{}' %{buildroot}%{_includedir}/%{name} \;
find audio -maxdepth 1 -type f -name "*.h" -exec install --mode 0644 --preserve-timestamps '{}' %{buildroot}%{_includedir}/%{name}/audio \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2931 |21cr|libthreadar-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1000
%define	libname %mklibname threadar %{major}
%define	devname %mklibname threadar -d

Summary:	Library for manipulating threads
Name:		libthreadar
Version:	1.4.0
Release:	1
License:	LGPLv3+
Group:		Development/C++
# See also: http://libthreadar.sourceforge.net/
Url:	fhttps://github.com/Edrusb/libthreadar
Source0:	https://sourceforge.net/projects/libthreadar/files/%{version}/%{name}-%{version}.tar.gz
# Examples don't link properly
Patch0:	libthreadar-1.4.0-drop-example-building.patch
BuildRequires:	doxygen >= 1.3.0
BuildRequires:	gettext
BuildRequires:	groff-base

%description
This library provides C++ classes for manipulating threads and propagating
back exceptions from thread to parent thread when the parent calls the join()
method. The code has been extracted from dar and libdar, but it can be used
independently of them. It has not the pretention to replace boost or any other
library or C++ standard managing threads from C++ code. It is rather to be
seen as a more convenient and simple way to use thread withing C++ code.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The %{name} main shared library
Group:		System/Libraries

%description -n %{libname}
The %{name} main shared library.

%files -n %{libname}
%doc ChangeLog COPYING README
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc ChangeLog COPYING README
%doc doc/html/*
%{_includedir}/%{name}/%{name}_config.h
%{_includedir}/%{name}/*.hpp
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%configure --disable-static
%make


%install
%makeinstall_std

# Drop docs that we pick up with our macros
rm -rf %{buildroot}%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2932 |21cr|libticables2-1.3.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname ticables2 %{major}
%define devname %mklibname ticables2 -d

Summary:	Library for handling TI link cables
Name:		libticables2
Version:	1.3.5
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/tilp
Source0:	http://downloads.sourceforge.net/project/tilp/tilp2-linux/tilp2-1.18/%{name}-%{version}.tar.bz2
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libusb-1.0)
Requires:	udev >= 154

%description
Library for handling TI link cables

#----------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the files necessary to develop applications using the
%{name} library.

%files -n %{libname}
%{_libdir}/libticables2.so.%{major}*
/lib/udev/rules.d/69-libticables.rules

#----------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files necessary to develop applications using the
%{name} library.

%files -n %{devname}
%{_includedir}/tilp2
%{_libdir}/libticables2.so
%{_libdir}/pkgconfig/ticables2.pc
%{_datadir}/locale/fr/LC_MESSAGES/%{name}.mo

#----------------------------------------------------------------

%prep
%setup -q
autoreconf -i -f

%build
%configure \
	--enable-libusb10
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/lib/udev/rules.d
cat >%{buildroot}/lib/udev/rules.d/69-libticables.rules <<EOF
# This file was installed by the libticables2 Fedora package.

ACTION!="add", GOTO="libticables_end"

# serial device (assume TI calculator)
KERNEL=="ttyS[0-3]", TAG+="udev-acl"
# parallel device (assume TI calculator)
SUBSYSTEM=="ppdev", TAG+="udev-acl"
# SilverLink
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e001", TAG+="udev-acl"
# TI-84+ DirectLink
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e003", TAG+="udev-acl"
# TI-89 Titanium DirectLink
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e004", TAG+="udev-acl"
# TI-84+ SE DirectLink
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e008", TAG+="udev-acl"
# TI-Nspire DirectLink
SUBSYSTEM=="usb", ATTR{idVendor}=="0451", ATTR{idProduct}=="e012", TAG+="udev-acl"

LABEL="libticables_end"
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2933 |21cr|libticalcs-1.1.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libticalcs2

%define api 2
%define major 12
%define libname %mklibname ticalcs %{api} %{major}
%define devname %mklibname -d ticalcs

Summary:	Library to handle the different TI calculators
Name:		libticalcs
Version:	1.1.9
Release:	4
Epoch:		1
License:	LGPLv2+
Group:		Communications
URL:		http://tilp.sourceforge.net/
Source:		http://prdownloads.sourceforge.net/tilp/%{oname}-%{version}.tar.bz2
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(ticables2)
BuildRequires:	pkgconfig(tifiles2)

%description
The TiCalcs library is a part of the TiLP project and constitutes with
the other libraries a complete framework for developping and/or linking
TI files oriented applications.

It is a library which brings about all the functions needed to communicate
with a Texas Instruments graphing calculator (or hand-held), without
worrying about packet oriented protocol, the file management and some
other stuffs. Currently, it does not support some education devices
(such as CBL/CBR and others).

It supports all currently available calculators and their associated file
formats:
- TI8x calculators: TI73, 82, 83, TI83+, 85 and 86 (with 2 sub-classes:
  TI73/83+ and 85/86).
- TI9x calculators: TI89, 92, 92+ and V200PLT.

%files -f %{oname}.lang

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to handle different TI calculators
Group:		System/Libraries

%description -n %{libname}
The TiCalcs library is a part of the TiLP project and constitutes with
the other libraries a complete framework for developping and/or linking
TI files oriented applications.

It is a library which brings about all the functions needed to communicate
with a Texas Instruments graphing calculator (or hand-held), without
worrying about packet oriented protocol, the file management and some
other stuffs. Currently, it does not support some education devices
(such as CBL/CBR and others).

It supports all currently available calculators and their associated file
formats:
- TI8x calculators: TI73, 82, 83, TI83+, 85 and 86 (with 2 sub-classes:
  TI73/83+ and 85/86).
- TI9x calculators: TI89, 92, 92+ and V200PLT.

%files -n %{libname}
%doc COPYING
%{_libdir}/*.so.%{major}*

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains headers and other necessary files to develop 
or compile applications that use %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog README
%{_includedir}/tilp2/*
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/ticalcs2.pc

#-----------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
autoreconf -fi
%configure \
	--enable-static=yes
%make

%install
%makeinstall_std gnulocaledir=%{buildroot}%{_datadir}/locale

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2934 |21cr|libticonv-1.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname ticonv %{major}
%define devname %mklibname ticonv -d

Summary:	Communicate with TI calculators
Name:		libticonv
Version:	1.1.5
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://lpg.ticalc.org/prj_tilp
Source0:	https://sourceforge.net/projects/tilp/files/tilp2-linux/tilp2-1.18/%{name}-%{version}.tar.bz2
Patch0:		libticonv-foreign_package.patch
BuildRequires:	dos2unix
BuildRequires:	pkgconfig(glib-2.0)

%description
Communicate with TI calculators.

#----------------------------------------------------------------

%package -n %{libname}
Summary:	Communicate with TI calculators
Group:		System/Libraries

%description -n %{libname}
Communicate with TI calculators.

%files -n %{libname}
%doc ChangeLog AUTHORS README LOGO
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for libticalcs library
Group:		Development/C
Provides:	ticonv-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the header files and static libraries needed to
develop applications with libticalcs.

%files -n %{devname}
%{_includedir}/tilp2
%{_libdir}/*.so
%{_libdir}/pkgconfig/ticonv.pc

#----------------------------------------------------------------

%prep
%setup -q 
for i in ChangeLog AUTHORS README LOGO; do
    dos2unix $i
    iconv -f iso-8859-1 -t UTF-8 -o xxx $i && mv xxx $i
done

%build
autoreconf -fi
%configure \
	--enable-iconv
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2935 |21cr|libtifiles2-1.1.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 10
%define libname %mklibname tifiles2_ %{major}
%define devname %mklibname tifiles2 -d

Summary:	Library for handling TI link cables
Name:		libtifiles2
Version:	1.1.7
Release:	5
License:	GPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/tilp
Source0:	http://downloads.sourceforge.net/project/tilp/tilp2-linux/tilp2-1.18/%{name}-%{version}.tar.bz2
BuildRequires:	libtool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(ticonv) =< 1.1.5
Requires:	udev >= 154

%description
Library for handling TI link cables.

#--------------------------------------------------------------------------

%package  -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}tifiles210 < 1.1.7-2
Obsoletes:	%{_lib}tifiles210 < 1.1.7-2

%description -n %{libname}
This package contains the files necessary to develop applications using the
%{name} library.

%files -n %{libname}
%{_libdir}/libtifiles2.so.%{major}*

#--------------------------------------------------------------------------

%package  -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files necessary to develop applications using the
%{name} library.

%files -n %{devname}
%{_includedir}/tilp2
%{_libdir}/libtifiles2.so
%{_libdir}/pkgconfig/tifiles2.pc
%{_datadir}/locale/fr/LC_MESSAGES/*.mo

#--------------------------------------------------------------------------

%prep
%setup -q
autoreconf -i -f

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2936 |21cr|libtlen-20041113-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define libname	%mklibname tlen %major
%define develname	%mklibname -d tlen 
%define		_snapshot	20060309

Summary:	Tlen.pl client library
Name:		libtlen
Version:	20041113
Release:	1
License:	GPLv2+
Group:		System/Libraries
Source0:	http://dl.sourceforge.net/sourceforge/tleenx/%{name}-%{_snapshot}.tar.gz
URL:		http://libtlen.sourceforge.net/
BuildRequires:	libstdc++-devel

%description 
libtlen is a library providing an API for client programs which want
to use Tlen.pl.

%package -n %libname
Summary:	Development library for libtlen
Group:		Development/C
Obsoletes:	%{name} < %{version}-%{release}

%description -n %libname
libtlen is a library providing an API for client programs which want
to use Tlen.pl.

%package -n %develname
Summary:	Development library for libtlen
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	libtlen-devel = %{version}-%{release}

%description -n %develname
This package is required to develop programs that use Tlen.pl
protocol.

%prep
%setup -q -n %{name}-%{_snapshot}

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%if %mdkversion < 200900
%post -n %libname -p /sbin/ldconfig
%endif
%if %mdkversion < 200900
%postun -n %libname -p /sbin/ldconfig
%endif

%files -n %libname
%defattr(644,root,root,755)
%doc docs/AUTHORS docs/TODO
%attr(755,root,root) %{_libdir}/libtlen.so.%{major}*

%files -n %develname
%defattr(644,root,root,755)
%doc docs/*.html
%{_includedir}/*
%{_libdir}/libtlen.so
%{_libdir}/libtlen.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2937 |21cr|libtorrent-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 22
%define libname %mklibname torrent %{major}
%define devname %mklibname torrent -d

Summary:	BitTorrent library written in C++ for *nix
Name:		libtorrent
Version:	0.14.0
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://rakshasa.github.io/rtorrent/
Source0:	https://github.com/rakshasa/rtorrent/releases/download/v0.10.0/libtorrent-%{version}.tar.gz
BuildRequires:	cppunit-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(sigc++-2.0)

%description
LibTorrent is a BitTorrent library written in C++ for *nix. It is designed to
avoid redundant copying and storing of data that other clients and libraries
suffer from. Licensed under the GPL.

Basic features have been implemented and a ncurses client is included. Sloppy
and biased test runs have shown that transferring a 200 MB file with libTorrent
uses 1/4 of the CPU time that the official BitTorrent client requires.

The library and client are under heavy development. They are stable enough to
handle any torrents I throw at them these days.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	BitTorrent library written in C++ for *nix
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
LibTorrent is a BitTorrent library written in C++ for *nix. It is designed to
avoid redundant copying and storing of data that other clients and libraries
suffer from. Licensed under the GPL.

Basic features have been implemented and a ncurses client is included. Sloppy
and biased test runs have shown that transferring a 200 MB file with libTorrent
uses 1/4 of the CPU time that the official BitTorrent client requires.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libtorrent.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	BitTorrent library written in C++ for *nix
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
LibTorrent is a BitTorrent library written in C++ for *nix. It is designed to
avoid redundant copying and storing of data that other clients and libraries
suffer from. Licensed under the GPL.

Basic features have been implemented and a ncurses client is included. Sloppy
and biased test runs have shown that transferring a 200 MB file with libTorrent
uses 1/4 of the CPU time that the official BitTorrent client requires.

%files -n %{devname}
%doc AUTHORS COPYING README
%{_libdir}/libtorrent.so
%{_includedir}/torrent/
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%global optflags %{optflags} -fno-strict-aliasing
%configure \
	--with-posix-fallocate
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2938 |21cr|libtree-ldd-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		libtree-ldd
Version:	3.1.1
Release:	1
Summary:	Like ldd but as a tree
Group:		Development/Other

License:	MIT
URL:		https://github.com/haampie/libtree
Source0:	%{url}/archive/v%{version}/libtree-%{version}.tar.gz
Patch0:		libtree-ldd-c99.patch

BuildRequires:	gcc
BuildRequires:	make

%description
A tool that:
- turns ldd into a tree
- explains why shared libraries are found and why not

%prep
%autosetup -p1 -n libtree-%{version}

%build
%setup_compile_flags
%make_build

%install
%make_install PREFIX="%{_prefix}"

%check
%ifarch %{ix86} aarch64 s390x
# tests/05_32_bits fail after https://fedoraproject.org/wiki/Changes/glibc32_Build_Adjustments
rm -rf tests/05_32_bits
%endif
%make_build check

%files
%{_mandir}/man1/libtree.1*
%{_bindir}/libtree
%doc README.md
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2939 |21cr|libtubo-4.7.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tubo
%define major 0
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	Interprocess communication used by xffm
Name:		libtubo
Version:	4.7.6
Release:	7
License:	GPLv2+
Group:		System/Libraries
Url:		http://xffm.sf.net
Source0:	http://downloads.sourceforge.net/project/xffm/libtubo/%{oname}-%{version}.tar.gz
Patch0:		tubo-4.7.6-rosa-linkage.patch
Patch1:		tubo-4.7.6-rosa-no_rpath.patch
BuildRequires:	autoconf2.5
BuildRequires:	automake1.9
BuildRequires:	glib-gettextize
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	xfce-dev-tools
BuildRequires:	pkgconfig(glib-2.0)

%description
The Libtubo library is small and simple function set to enable a process 
to run any other process in the background and communicate via 
the stdout, stderr and stdin file descriptors.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library of functions for interprocess communication
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libtubo.

%files -n %{libname}
%doc AUTHORS COPYING* ChangeLog NEWS* README*
%{_libdir}/libtubo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for interprocess communication
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	tubo-devel = %{EVRD}

%description -n %{devname}
The libtubo-devel package contains the header files and libraries
necessary for developing programs using libtubo.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/%{name}
%{_includedir}/tubo.h
%{_libdir}/libtubo.so
%{_libdir}/pkgconfig/%{oname}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1

%build
aclocal -I /usr/share/xfce4/dev-tools/m4macros -I ./m4
autoreconf -fi
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2940 |21cr|libtuxcap-1.4.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 4.0
%define	libname %mklibname tuxcap %{major}
%define	devname %mklibname tuxcap -d

Summary:	Port of the PopCap Games Framework used for 2D game development
Name:		libtuxcap
Version:	1.4.0
Release:	8
License:	BSD
Group:		System/Libraries
Url:		http://sourceforge.net/projects/tuxcap/
Source:		%{name}-%{version}.tar.gz
Patch0:		libtuxcap-1.4.0-includes.patch
Patch1:		libtuxcap-1.4.0-libdir.patch
Patch2:		libtuxcap-1.4.0-graphicsmagick.patch
Patch3:		fix-gcc-6.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(GraphicsMagick)
# Need python2
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(x11)

%description
The TuxCap Games Framework is a GNU/Linux and Mac OSX port of the PopCap
Games Framework used for 2D game development. It comes with PyCap Python
bindings, a fast 2D physics engine, a particle engine, widgets and many
documented examples.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Port of the PopCap Games Framework used for 2D game development
Group:		System/Libraries

%description -n %{libname}
The TuxCap Games Framework is a GNU/Linux and Mac OSX port of the PopCap
Games Framework used for 2D game development. It comes with PyCap Python
bindings, a fast 2D physics engine, a particle engine, widgets and many
documented examples.

%files -n %{libname}
%doc COPYRIGHT
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers for TuxCap Games Framework

%files -n %{devname}
%doc AUTHORS CHANGELOG COPYRIGHT README TODO doc/*
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i '/pythondemo1/d' tuxcap/CMakeLists.txt


%build
# When both python2 and python3 are installed on the build machine
# cmake by default picks up the latter: force the use of python2
# because libtuxcap use methods removed in python3 >= 3.2
%cmake	.. \
		-DPYTHON_INCLUDE_DIR="%{_includedir}/python2.7" \
		-DPYTHON_LIBRARY="%{_libdir}/libpython2.7.so"
%make


%install
%makeinstall_std -C build

rm -fr %{buildroot}%{_libdir}/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2941 |21cr|libtxc_dxtn-1.0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname txc-dxtn
%define devname %mklibname txc-dxtn -d

Summary:	S3 Texture Compression (S3TC) sextension for Mesa
Name:		libtxc_dxtn
Version:	1.0.1
Epoch:		1
Release:	8
License:	BSD
Group:		System/Libraries
Url:		http://cgit.freedesktop.org/~mareko/libtxc_dxtn/
Source0:	http://cgit.freedesktop.org/~mareko/libtxc_dxtn/snapshot/libtxc_dxtn-%{version}.tar.bz2
BuildRequires:	pkgconfig(gl)

%description
An open source implementation of the S3 Texture Compression (S3TC)
for use with the open source OpenGL implementation Mesa.

This provides the GLX extension GL_EXT_texture_compression_s3tc.

This package is in restricted because S3TC is covered by software
patents.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	S3 Texture Compression (S3TC) sextension for Mesa
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
An open source implementation of the  S3 Texture Compression (S3TC)
for use with the open source OpenGL implementation Mesa.

This provides the GLX extension GL_EXT_texture_compression_s3tc.

This package is in restricted because S3TC is covered by software
patents.

%files -n %{libname}
%{_libdir}/%{name}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	S3 Texture Compression (S3TC) sextension for Mesa
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
An open source implementation of the S3 Texture Compression (S3TC)
for use with the open source OpenGL implementation Mesa.

This provides the GLX extension GL_EXT_texture_compression_s3tc.

This package is in restricted because S3TC is covered by software
patents.

%files -n %{devname}
%doc Changelog
%{_includedir}/txc_dxtn.h

#----------------------------------------------------------------------------

%prep
%setup -q

%build
[[ -f configure ]] || ./autogen.sh
%setup_compile_flags
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2942 |21cr|libucil-0.9.10-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major	2
%define lib_name	%mklibname ucil %{lib_major}
%define develname	%mklibname -d ucil

Summary: Library to render text and graphic overlays onto video images
Name: libucil
Version: 0.9.10
Release: 9
Source0: http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz
Patch0: libucil-0.9.8-bz627890.patch
Patch1: libucil-0.9.10-leaks.patch
Patch2: libucil-0.9.10-warnings.patch
License: GPLv2+
Group: System/Libraries
Url: http://www.unicap-imaging.org/
BuildRequires: intltool
BuildRequires: gtk-doc
BuildRequires: libunicap-devel
BuildRequires: glib2-devel
BuildRequires: pango-devel
BuildRequires: pkgconfig(pangoft2)
BuildRequires: pkgconfig(alsa)
BuildRequires: libgstreamer-plugins-base-devel
BuildRequires: libtheora-devel
BuildRequires: libogg-devel
BuildRequires: libvorbis-devel
BuildRequires: libpng-devel

%description
Unicap provides a uniform interface to video capture devices. It allows
applications to use any supported video capture device via a single API.
The related ucil library provides easy to use functions to render text
and graphic overlays onto video images.

%package -n %{lib_name}
Summary:	Dynamic libraries for libucil
Group:		System/Libraries
Conflicts:	%{_lib}unicap2 < 0.9.12

%description -n %{lib_name}
Unicap provides a uniform interface to video capture devices. It allows
applications to use any supported video capture device via a single API.
The related ucil library provides easy to use functions to render text
and graphic overlays onto video images.

%package -n %{develname}
Summary:	Development libraries, include files for Ucil
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{lib_name} = %{version}
Conflicts:	%{_lib}unicap-devel < 0.9.12

%description -n %{develname}
The package includes header files and libraries necessary
for developing programs which use the ucil library. It contains the API
documentation of the library, too.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%configure --disable-static --disable-rpath
%make

%install
rm -rf %{buildroot}

%makeinstall_std

#%find_lang %{name}

%clean
rm -rf %{buildroot}

%files -n %{lib_name}
%defattr(-,root,root)
%{_libdir}/*.so.%{lib_major}*

%files -n %{develname}
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/libucil
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2943 |21cr|libunibreak-5_0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fver %(echo %{version} |tr . _)

%define major 5
%define libname %mklibname unibreak %{major}
%define devname %mklibname unibreak -d

Summary:	A Unicode line-breaking library
Name:		libunibreak
Version:	5_0
Release:	1
License:	zlib
Group:		System/Libraries
Url:		https://github.com/adah1972/libunibreak
Source0:	https://github.com/adah1972/libunibreak/archive/refs/tags/%{name}_%{fver}.tar.gz?/%{name}-%{name}_%{fver}.tar.gz

%description
Libunibreak is an implementation of the line breaking and word
breaking algorithms as described in Unicode Standard Annex 14 and
Unicode Standard Annex 29. It is designed to be used in a generic text
renderer.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A Unicode line-breaking library
Group:		System/Libraries

%description -n %{libname}
Libunibreak is an implementation of the line breaking and word
breaking algorithms as described in Unicode Standard Annex 14 and
Unicode Standard Annex 29. It is designed to be used in a generic text
renderer.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{libname}.

%files -n %{devname}
%doc AUTHORS NEWS README.md
%license LICENCE
%{_includedir}/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}_%{fver}

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2944 |21cr|libunicap-0.9.12-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major	2
%define lib_name	%mklibname unicap %{lib_major}
%define develname	%mklibname -d unicap


Summary: Library to access different kinds of ( video ) capture devices 
Name: libunicap
Version: 0.9.12
Release: 10
Source0: http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz
# importt pactches from FC33
Patch0:		libunicap-0.9.12-includes.patch
Patch1:		libunicap-0.9.12-memerrs.patch
Patch2:		libunicap-0.9.12-arraycmp.patch
Patch3:		libunicap-0.9.12-warnings.patch
Patch4:		libunicap-bz641623.patch
Patch5:		libunicap-bz642118.patch
Patch6:		libunicap-0.9.12-videodev.patch
Patch7:		libunicap-0.9.12-datadirname.patch
Patch8:		libunicap-0.9.12-gcc10.patch
License:    GPLv2+
Group:      System/Libraries
Url:        http://www.unicap-imaging.org/
BuildRequires:  pkgconfig(libraw1394)
BuildRequires:  intltool
BuildRequires:  gtk-doc
BuildRequires:  intltool
BuildRequires:  perl, 
BuildRequires:  perl(XML::Parser)
BuildRequires:  gettext
BuildRequires:	glib2-devel 
BuildRequires:	libv4l-devel 
BuildRequires:	libtool, 
BuildRequires:	automake, 
BuildRequires:	autoconf
BuildRequires:	systemd



Conflicts: %{_lib}unicap2 < 0.9.12

%description
unicap is a library to access different kinds of ( video ) capture devices. 

%files -f unicap.lang
%defattr(-,root,root)
%{_sysconfdir}/udev/rules.d/*
%{_libdir}/unicap%{lib_major}
#----------------------------------------------------------
%package -n %{lib_name}
Summary:	Dynamic libraries for Unicap
Group:		System/Libraries
Requires:	%{name} = %{version}

%description -n %{lib_name}
unicap is a library to access different kinds of ( video ) capture devices. 

%files -n %{lib_name}
%defattr(-,root,root)
%{_libdir}/*.so.%{lib_major}*

#----------------------------------------------------------

%package -n %{develname}
Summary:	Static libraries, include files for Unicap
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{lib_name} = %{version}
Obsoletes:	%{lib_name}-devel < %{version}
Obsoletes:	%{name}-devel < %{version}

%description -n %{develname}
Static library and headers file
needed in order to develop applications using unicap.

%files -n %{develname}
%defattr(-,root,root)
%doc %{_datadir}/gtk-doc/html/libunicap
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so
#----------------------------------------------------------
%prep
%setup -q
%patch0 -p1 -b .includes
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

# rpath
libtoolize --force

# fixes for gtk-doc 
sed -i -e '/^DOC_SOURCE_DIR/s/--source-dir=//g' doc/libunicap/Makefile.am
gtkdocize --copy
autoreconf --force --install

%build
export CFLAGS="%{optflags} -lpthread"
%configure --disable-rpath --enable-gtk-doc --enable-libv4l
%make

%install
%makeinstall_std

#remove unpackaged files
rm -f %{buildroot}%{_libdir}/unicap%{lib_major}/{backends,cpi}/*.{la,a} 

# Use ATTRS rather SYSFS for udev where appropriate
sed -e 's/\(SYSFS\|ATTRS\)/ATTRS/g' -i %{buildroot}%{_sysconfdir}/udev/rules.d/50-euvccam.rules
touch -c -r {data,%{buildroot}%{_sysconfdir}/udev/rules.d}/50-euvccam.rules


%find_lang unicap

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2945 |21cr|libunicapgtk-0.9.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major	2
%define lib_name	%mklibname unicapgtk %{lib_major}
%define develname	%mklibname -d unicapgtk

Summary:	Library to build graphical widgets for the unicap library
Name:		libunicapgtk
Version:	0.9.8
Release:	10
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.unicap-imaging.org/
Source0:	http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz
Patch0:		libunicapgtk-0.9.8-link.patch
Patch1:		libunicapgtk-bz532289.patch
Patch2:		libunicapgtk-0.9.8-destroycb.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libunicap)
BuildRequires:	pkgconfig(libucil)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xv)
BuildRequires:	gtk-doc
BuildRequires:	intltool

%description
Unicap provides a uniform interface to video capture devices. It allows
applications to use any supported video capture device via a single API.
Building applications with a graphical user interface is made especially
easy with the unicapGTK widget set.

%package -n %{lib_name}
Summary:	Dynamic libraries for Unicapgtk
Group:		System/Libraries
Requires:	%{name} >= %{version}-%{release}
Conflicts:	%{_lib}unicap2 < 0.9.12

%description -n %{lib_name}
Unicap provides a uniform interface to video capture devices. It allows
applications to use any supported video capture device via a single API.
Building applications with a graphical user interface is made especially
easy with the unicapGTK widget set.

%package -n %{develname}
Summary:	Static libraries, include files for Unicapgtk
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{lib_name} = %{version}-%{release}
Conflicts:	%{_lib}unicap-devel < 0.9.12

%description -n %{develname}
Static library and headers file
needed in order to develop applications using unicap.

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
%configure --disable-static
%make LIBS="-pthread"

%install
%makeinstall_std

%find_lang unicapgtk

%files -f unicapgtk.lang

%files -n %{lib_name}
%{_libdir}/*.so.%{lib_major}*

%files -n %{develname}
%doc %{_datadir}/gtk-doc/html/libunicapgtk
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2946 |21cr|libunique-1.1.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 1.0
%define libname %mklibname unique %{api} %{major}
%define girname %mklibname unique-gir %{api}
%define devname %mklibname unique -d

Summary:	Library for creating single instance applications
Name:		libunique
Version:	1.1.6
Release:	13
License:	LGPLv2+
Group:		System/Libraries
Url:		http://live.gnome.org/LibUnique
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%name/%{name}-%{version}.tar.bz2
Patch0:		unique-1.0.6-fix-str-fmt.patch
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
Unique is a library for creating single instance applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for creating single instance applications
Group:		System/Libraries
Conflicts:	%{_lib}unique0 < 1.1.6-9
Obsoletes:	%{_lib}unique0 < 1.1.6-9

%description -n %{libname}
Unique is a library for creating single instance applications.

%files -n %{libname}
%{_libdir}/libunique-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	gir-repository < 0.6.5-3
Conflicts:	%{_lib}unique0 < 1.1.6-9

%description -n %{girname}
GObject Introspection files for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Unique-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for development with %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	unique-devel = %{EVRD}
Conflicts:	gir-repository < 0.6.5-3

%description -n %{devname}
Unique is a library for creating single instance applications.

%files -n %{devname}
%doc AUTHORS
%docdir %{_datadir}/gtk-doc/html/unique
%doc %{_datadir}/gtk-doc/html/unique/*
%{_libdir}/libunique-%{api}.so
%{_libdir}/pkgconfig/unique-%{api}.pc
%{_includedir}/unique-%{api}
%{_datadir}/gir-1.0/Unique-%{api}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

# this is a hack for glib2.0 >= 2.31.0
sed -i -e 's/-DG_DISABLE_DEPRECATED//g' \
	./unique/Makefile.*

%build
%configure \
	--disable-static \
	--enable-maintainer-flags=no

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2947 |21cr|libunique3-3.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define major 		0
%define api 3.0
%define oname libunique
%define libname		%mklibname unique %api %major
%define develname	%mklibname unique -d %api

Summary: 	Library for creating single instance applications
Name: 		libunique3
Version: 	3.0.2
Release:	6
URL: 		http://live.gnome.org/LibUnique
License: 	LGPLv2+
Group: 		System/Libraries
Source0: 	http://ftp.gnome.org/pub/GNOME/sources/%oname/%{oname}-%{version}.tar.xz
BuildRequires:	dbus-glib-devel >= 0.70
BuildRequires:	gtk+3-devel >= 2.90.0
BuildRequires:	glib2-devel >= 2.12.0
BuildRequires:	pkgconfig(x11)
BuildRequires:	gobject-introspection-devel
BuildRequires:	gtk-doc

%description
Unique is a library for creating single instance applications.

%package -n	%{libname}
Group:		System/Libraries
Summary:	Library for creating single instance applications
Conflicts: gir-repository < 0.6.5-3

%description -n %{libname}
Unique is a library for creating single instance applications.

%package -n %{develname}
Group:		Development/C
Summary:	Header files for development with %oname
Provides:	unique-%api-devel = %version-%release
Requires:	%{libname} = %{version}
Conflicts: gir-repository < 0.6.5-3

%description -n %{develname}
Unique is a library for creating single instance applications.

%prep
%setup -q -n %oname-%version

%build
%configure
%make

%install
rm -rf %{buildroot}

%makeinstall_std

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libunique-%api.so.%{major}*
%{_libdir}/girepository-1.0/Unique-%{api}.typelib

%files -n %{develname}
%doc AUTHORS
%defattr(-,root,root)
%{_libdir}/libunique-%api.so
%{_libdir}/pkgconfig/unique-%api.pc
%{_includedir}/unique-%api
%{_datadir}/gir-1.0/Unique-%api.gir
%{_datadir}/gtk-doc/html/unique-3.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2948 |21cr|libusb3380-0.0.0+git.20190126-1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit c83d1e93eb3a5b8b6a9db41c2613b206f344f825
%define major 0
%define libname %mklibname usb3380 %{major}
%define devname %mklibname -d usb3380

Name:           libusb3380
Version:        0.0.0+git.20190126
Release:        1.1
Summary:        USB3380 abstraction layer for libusb
License:        LGPL-2.1-only
Group:          System/Libraries
URL:            http://xtrx.io
#Git-Clone:     https://github.com/xtrx-sdr/libusb3380.git
Source0:	https://github.com/xtrx-sdr/libusb3380/archive/%{commit}.zip
Patch0:         libusb3380-cmake-fix-compiler-setup.patch
BuildRequires:  cmake
BuildRequires:  git-core
BuildRequires:  pkgconfig(libusb-1.0)

%description
USB3380 abstraction layer for libusb.

%package -n %{libname}
Summary:        USB3380 abstraction layer for libusb
Group:          System/Libraries

%description -n %{libname}
USB3380 abstraction layer for libusb.

%package -n	%{devname}
Summary:        Development files for libusb3380
Group:          System/Libraries
Requires:       %{libname} = %{EVRD}
Requires:       pkgconfig(libusb-1.0)

%description -n	%{devname}
USB3380 abstraction layer for libusb.

This subpackage contains libraries and header files for developing
applications that want to make use of libusb3380.

%prep
%setup -q -n %{name}-%{commit}
%autopatch -p1

%build
export CFLAGS="%{optflags} -pthread"
%cmake
%make_build LIBS="-pthread"

%install
%make_install -C build

%files -n %{libname}
%{_libdir}/libusb3380.so.%{major}*

%files -n %{devname}
%license LICENSE
%doc README.md
%{_includedir}/libusb3380.h
%{_libdir}/libusb3380.so
%{_libdir}/pkgconfig/libusb3380.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2949 |21cr|libusb-wine-0-0.git644b03.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 644b03a1e1c69e1b6deb1e12e5c8c6813741561e
%define commit_short %(echo %{commit} | head -c6)

%define major 0
%define libname %mklibname usb-wine %{major}
%define devname %mklibname usb-wine -d

Summary:	Wine dll libusb-win32
Name:		libusb-wine
Version:	0
Release:	0.git%{commit_short}.2
License:	LGPLv2+
Group:		Emulators
Url:		https://github.com/stanson-ch/libusb-wine
Source0:	https://github.com/stanson-ch/libusb-wine/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:		libusb-wine-Makefile.patch
BuildRequires:	%{_lib}wine-devel

%description
This Wine DLL allows to run such Windows applications
under Wine using native Linux USB stack.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Wine dll libusb-win32
Group:		Development/Python

%description -n %{libname}
This Wine DLL allows to run such Windows applications
under Wine using native Linux USB stack.

%files -n %{libname}
%doc AUTHORS README.md
%license COPYING
%ifarch x86_64
%{_libdir}/wine/x86_64-unix/libusb%{major}.dll.so
%{_libdir}/wine/x86_64-windows/libusb%{major}.dll
%else
%{_libdir}/wine/i386-unix/libusb%{major}.dll.so
%{_libdir}/wine/i386-windows/libusb%{major}.dll
%endif

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development file for wine dll libusb-win32
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development file for libusb-wine.

%files -n %{devname}
%doc AUTHORS README.md
%license COPYING
%ifarch x86_64
%{_libdir}/wine/x86_64-unix/libusb%{major}.def
%else
%{_libdir}/wine/i386-unix/libusb%{major}.def
%endif

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%ifarch x86_64
mv -f src/Makefile.x64 src/Makefile
%endif
%make	\
	-C src	\
	-I%{_includedir}/wine/windows

%install
%ifarch x86_64
mkdir -p %{buildroot}%{_libdir}/wine/x86_64-unix
mkdir -p %{buildroot}%{_libdir}/wine/x86_64-windows
%else
mkdir -p %{buildroot}%{_libdir}/wine/i386-unix
mkdir -p %{buildroot}%{_libdir}/wine/i386-windows
%endif
%makeinstall_std -C src

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2950 |21cr|libvformat-1.13-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname vformat %{major}
%define devname %mklibname vformat -d

Summary:	Library to read and write vcard files
Name:		libvformat
Version:	1.13
Release:	12
License:	GPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/vformat/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		libvformat-1.13-debian.diff
Patch1:		libvformat-1.13-fix-str-fmt.patch

%description
Library to read and write vcard files

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/libvformat.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}vformat0-devel < 1.13-10
Obsoletes:	%{_lib}vformat0-devel < 1.13-10

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libvformat.so
%{_libdir}/libvformat.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}.orig
%patch0 -p1
%patch1 -p0

%build
%configure \
	--enable-static
%make

%install
# since we currently don't have c2man
perl -p -i -e 's|install-data-hook|||g' doc/Makefile
%makeinstall_std

rm -fr %{buildroot}%{_bindir}/vformat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2951 |21cr|libvidcap-0.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname vidcap %{major}
%define devname %mklibname vidcap -d

Summary:	Video capture library
Name:		libvidcap
Version:	0.2.1
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/%{name}
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz

%description
libvidcap is a cross-platform library for capturing video from webcams
and other video capture devices.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Video capture library
Group:		System/Libraries

%description -n %{libname}
libvidcap is a cross-platform library for capturing video from webcams
and other video capture devices.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libvidcap is a cross-platform library for capturing video from webcams
and other video capture devices. 

%files -n %{devname}
%{_includedir}/vidcap
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# or else it doesn't link right against libpthread...
export PTHREAD_LIBS="-lpthread"
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2952 |21cr|libvisual-plugins-0.4.0-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Visualisation plugins for applications based on libvisual
Name:		libvisual-plugins
Version:	0.4.0
Release:	23
License:	LGPLv2+
Group:		System/Libraries
Url:		http://localhost.nl/~synap/libvisual-wiki/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		libvisual-plugins-buffer-overflow.patch
#https://qa.mandriva.com/show_bug.cgi?id=49801
Patch1:		60_no-const-vispluginfo-in-nastyfft.patch
Patch2:		libvisual-plugins-0.4.0-link.patch
Patch3:		libvisual-plugins-0.4.0-fix-some-gcc-warnings.patch
Patch4:		libvisual-plugins-0.4.0-gcc5.patch
Patch5:		50_fix_po.patch
Patch6:		010_disable-gforce-dfsg.patch
BuildRequires:	bison
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libvisual-0.4)
Provides:	libvisual-nebulus = %{EVRD}
Provides:	libvisual-gforce = %{EVRD}

%description
Libvisual is a library that acts as a middle layer between
applications that want audio visualisation and audio visualisation
plugins.

This package contains the libvisual example plugins.

%files -f %{name}-0.4.lang
%doc README AUTHORS ChangeLog NEWS
%{_libdir}/libvisual*
%{_datadir}/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p0
%patch3 -p1
#patch4 -p1
%patch5 -p1
%patch6 -p1

%build
#% global optflags %{optflags} -std=c++14
autoreconf -fi
%configure \
	--disable-gstreamer-plugin \
	--disable-corona
%make

%install
%makeinstall_std

%find_lang %{name}-0.4

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2953 |21cr|libvmime-0.9.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname vmime

%define major 1
%define libname %mklibname vmime %{major}
%define devname %mklibname vmime -d

Summary:	A powerful C++ class library for working with MIME/Internet messages
Name:		libvmime
Version:	0.9.2
Release:	9
License:	GPLv2+
Group:		System/Libraries
Url:		https://www.vmime.org/
Source0:	https://github.com/kisli/vmime/archive/%{oname}-%{version}.tar.gz
Patch0:		libvmime-extern-C.patch
Patch1:		vmime-0.9.2-icu-specific.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	sendmail
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libgsasl)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
VMime is a powerful C++ class library for parsing, generating or
editing Internet RFC-[2]822 and MIME messages. VMime is designed
to provide a fast and an easy way to manipulate Internet mail
messages.

It also includes support for using messaging protocols (POP3, IMAP,
SMTP and maildir) with a lot of features supported: listing folders,
downloading and adding messages to folders, extracting parts from
message, getting and setting message flags and a lot more.

This package contains an old and deprecated version of libvmime.
You need it only if the software you are using hasn't been updated
to work with the newer version and the newer API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library associated with ncpfs
Group:		System/Libraries

%description -n %{libname}
VMime is a powerful C++ class library for parsing, generating or
editing Internet RFC-[2]822 and MIME messages. VMime is designed
to provide a fast and an easy way to manipulate Internet mail
messages.

It also includes support for using messaging protocols (POP3, IMAP,
SMTP and maildir) with a lot of features supported: listing folders,
downloading and adding messages to folders, extracting parts from
message, getting and setting message flags and a lot more.

This package contains an old and deprecated version of libvmime.
You need it only if the software you are using hasn't been updated
to work with the newer version and the newer API.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the libvmime library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libvmime package includes header files and libraries necessary
for developing programs which use the libvmime C++ class library.

This package contains an old and deprecated version of libvmime.
You need it only if the software you are using hasn't been updated
to work with the newer version and the newer API.

%files -n %{devname}
%{_libdir}/%{name}.so
%{_includedir}/vmime/
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DVMIME_BUILD_SAMPLES=OFF
%make

%install
%makeinstall_std -C build

# Remove the static library and libtool .la file
rm -f %{buildroot}%{_libdir}/%{name}.a

# Remove the documentation dir, as %doc will pick it up
rm -rf %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2954 |21cr|libvpx2-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This version of libvpx needed for Freeswitch, not delete this project from repo

%global major    3
%define libname %mklibname vpx2_ %{major}
%define devname %mklibname vpx2_ -d

Name:		libvpx2
Version:	2.0.0
Release:	2
Summary:	VP8 Video Codec SDK
Group:		System/Libraries
License:	BSD
URL:			http://www.webmproject.org/tools/vp8-sdk/
Source0:	http://webm.googlecode.com/files/%{name}-%{version}.tar.gz
%ifarch %{ix86} x86_64
BuildRequires:		nasm
%endif
#BuildRequires:		doxygen, php-cli
#Provides:		libvpx

%description
libvpx2 provides the VP8 SDK, which allows you to integrate your applications 
with the VP8 video codec, a high quality, royalty free, open source codec 
deployed on millions of computers and devices worldwide. 

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	VP8 Video Codec SDK
Group:		System/Libraries

%description -n %{libname}
libvpx provides the VP8 SDK, which allows you to integrate your applications
with the VP9 video codec, a high quality, royalty free, open source codec
deployed on millions of computers and devices worldwide.

%files -n %{libname}
%{_libdir}/libvpx2.so.%{major}*

#---------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	libvpx2-devel

%description devel
Development libraries and headers for developing software against 
libvpx2.

%files devel
%doc AUTHORS CHANGELOG LICENSE README
%{_includedir}/vpx2
%{_libdir}/pkgconfig/vpx2.pc
%{_libdir}/libvpx2.a
%{_libdir}/libvpx2.so

#---------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%ifarch %{ix86}
%global vpxtarget x86-linux-gcc
%else
%ifarch	x86_64
%global	vpxtarget x86_64-linux-gcc
%else
%global vpxtarget generic-gnu
%endif
%endif
%setup_compile_flags


./configure --target=%{vpxtarget} \
	    --enable-pic \
	    --disable-install-srcs \
	    --enable-shared \
	    --enable-static \
	    --prefix=%{_prefix} \
	    --libdir=%{_libdir}

# Hack our optflags in.
sed -i "s|-O3|%{optflags}|g" libs-%{vpxtarget}.mk
sed -i "s|-O3|%{optflags}|g" examples-%{vpxtarget}.mk
sed -i "s|-O3|%{optflags}|g" docs-%{vpxtarget}.mk

# stupid config
perl -pi -e "s|/usr/local|%{_prefix}|g" config.mk

make %{?_smp_mflags} verbose=true target=libs

%install

# install headers
mkdir -p %{buildroot}/%{_includedir}/vpx2
cp -p  vpx/*.h %{buildroot}/%{_includedir}/vpx2

# install libs
mkdir -p %{buildroot}/%{_libdir}
cp -a libvpx2.so* %{buildroot}/%{_libdir}
cp -a libvpx2.a %{buildroot}/%{_libdir}

# install .pc
sed -i 's:{includedir}:{includedir}/vpx2:' vpx.pc
mkdir -p %{buildroot}/%{_libdir}/pkgconfig
cp -p  vpx.pc %{buildroot}/%{_libdir}/pkgconfig/vpx2.pc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2955 |21cr|libvterm-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define libname	%mklibname vterm %{major}
%define devname	%mklibname vterm -d

Name:		libvterm
Version:	0.3.1
Release:	1
Summary:	An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator
Group:		System/Libraries
License:	MIT
URL:		http://www.leonerd.org.uk/code/libvterm/
Source0:	http://www.leonerd.org.uk/code/libvterm/libvterm-%{version}.tar.gz
BuildRequires:	libtool

%description
An abstract C99 library which implements a VT220 or xterm-like
terminal emulator. It does not use any particular graphics toolkit or
output system. Instead, it invokes callback function pointers that
its embedding program should provide it to draw on its behalf.

#---------------------------------------------------------------------------
%package -n %{libname}
Summary:	An abstract library implementation of a VT220/xterm/ECMA-48 terminal emulator
Group:		System/Libraries

%description -n %{libname}
An abstract C99 library which implements a VT220 or xterm-like
terminal emulator. It does not use any particular graphics toolkit or
output system. Instead, it invokes callback function pointers that
its embedding program should provide it to draw on its behalf.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files needed for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	vterm-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{summary}.

%files -n %{devname}
%doc LICENSE
%{_libdir}/%{name}.so
%{_includedir}/vterm*.h
%{_libdir}/pkgconfig/vterm.pc

#---------------------------------------------------------------------------

%package tools
Summary:	Tools for %{name}
Group:		System/Libraries

%description tools
%{summary}.

%files tools
%{_bindir}/unterm
%{_bindir}/vterm-ctrl
%{_bindir}/vterm-dump

#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
%make PREFIX=%{_prefix} LIBDIR=%{_libdir}

%install
%makeinstall_std PREFIX=%{_prefix} LIBDIR=%{_libdir}

#we don't want these
find %{buildroot} \( -name "*.la" -o -name "*.a" \) -delete

%check
make test CFLAGS="%{optflags}"




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2956 |21cr|libwbxml-0.11.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname wbxml2_ %{major}
%define devname %mklibname wbxml -d

Summary:	WBXML parser and compiler library
Name:		libwbxml
Version:	0.11.6
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libwbxml.opensync.org
Source0:	http://downloads.sourceforge.net/project/libwbxml/libwbxml/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(zlib)
Requires:	expat

%description
The WBXML Library (libwbxml) contains a library and its associated tools to
parse, encode and handle WBXML documents. The WBXML format is a binary
representation of XML, defined by the Wap Forum, and used to reduce bandwidth
in mobile communications.

%files
%doc ChangeLog
%{_bindir}/wbxml2xml
%{_bindir}/xml2wbxml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for parsing WAP Binary XML
Group:		System/Libraries
Conflicts:	%{_lib}wbxml1 < 0.11.3
Obsoletes:	%{_lib}wbxml1 < 0.11.3

%description -n %{libname}
The WBXML Library (libwbxml) contains a library and its associated tools to
parse, encode and handle WBXML documents. The WBXML format is a binary
representation of XML, defined by the Wap Forum, and used to reduce bandwidth
in mobile communications.

This package contains just the library for use by other applications.

%files -n %{libname}
%{_libdir}/libwbxml2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library for developing applications that parse WAP Binary XML
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	wbxml-devel = %{EVRD}

%description -n %{devname}
The WBXML Library (libwbxml) contains a library and its associated tools to
parse, encode and handle WBXML documents. The WBXML format is a binary
representation of XML, defined by the Wap Forum, and used to reduce bandwidth
in mobile communications.

This package contains the headers and other development files required to
compile applications that need to parse WBXML.

%files -n %{devname}
%doc README References TODO
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libwbxml2.pc
%{_docdir}/libwbxml
%{_datadir}/cmake/Modules/FindLibWbxml2.cmake

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2957 |21cr|libwcat-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname wcat %{major}
%define devname %mklibname wcat -d

Summary:	Library for the watchcat software watchdog
Name:		libwcat
Version:	1.1
Release:	7
License:	LGPLv2+
Group:		System/Libraries
Url:		http://oss.digirati.com.br/watchcatd/
Source0:	http://oss.digirati.com.br/watchcatd/%{name}-%{version}.tar.gz
Patch0:		libwcat-ldflags.diff
Patch1:		libwcat-socket_location_fix.diff

%description
libwcat is an API to watchcatd, a software watchdog that uses an
approach not as drastic as the usual watchdog solutions. It tries
to kill the locked process only.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for the watchcat software watchdog
Group:		System/Libraries

%description -n %{libname}
libwcat is an API to watchcatd, a software watchdog that uses an
approach not as drastic as the usual watchdog solutions. It tries
to kill the locked process only.

%files -n %{libname}
%{_libdir}/libwcat.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the watchcat library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libwcat is an API to watchcatd, a software watchdog that uses an
approach not as drastic as the usual watchdog solutions. It tries
to kill the locked process only.

This package contains the static libwcat library and its header files
needed to compile applications that use libwcat.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libwcat.so
%{_libdir}/libwcat.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
export CFLAGS="%{optflags} -fPIC"

%make

%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}

install -m755 %{name}.so.%{major}.%{version} %{buildroot}%{_libdir}/
install -m644 %{name}.a %{buildroot}%{_libdir}/
install -m644 watchcat.h %{buildroot}%{_includedir}/

ln -s %{name}.so.%{major}.%{version} %{buildroot}%{_libdir}/%{name}.so
ln -s %{name}.so.%{major}.%{version} %{buildroot}%{_libdir}/%{name}.so.%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2958 |21cr|libwebcam-0.2.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A library for user-space configuration of the uvcvideo driver
Name:		libwebcam
Version:	0.2.4
Release:	5
Group:		System/Kernel and hardware
License:	GPLv3+
Url:		http://sourceforge.net/p/libwebcam/wiki/Home/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.gz
Patch0:		libwebcam-silence-uvcdynctrl.patch
Patch1:		libwebcam-src-0.2.3-v4l2-check.patch
BuildRequires:	cmake
BuildRequires:	gengetopt
BuildRequires:	pkgconfig(libxml-2.0)

%description
Libwebcam provides a user-space library for interaction with the uvcvideo
kernel driver. One could use this library to manipulate settings for one
or many UVC-type webcams found attached on a single computer.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for user-space configuration of the uvcvideo driver
Group:		System/Libraries

%description -n %{libname}
Libwebcam provides a user-space library for interaction with the uvcvideo
kernel driver. One could use this library to manipulate settings for one
or many UVC-type webcams found attached on a single computer.

%files -n %{libname}
%doc libwebcam/README libwebcam/COPYING.LESSER
%{_libdir}/libwebcam.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and headers for libwebcam
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development libraries and headers for libwebcam.

%files -n %{devname}
%{_includedir}/webcam.h
%{_libdir}/libwebcam.so
%{_libdir}/pkgconfig/libwebcam.pc

#----------------------------------------------------------------------------

%package -n uvcdynctrl
Summary:	Command line interface to libwebcam
Group:		System/Kernel and hardware
Requires:	uvcdynctrl-data = %{EVRD}

%description -n uvcdynctrl
Uvcdynctrl is a command line interface for manipulating settings in
UVC-type webcams. It uses the libwebcam library for webcam access.

%files -n uvcdynctrl
%doc uvcdynctrl/README uvcdynctrl/COPYING
%{_bindir}/uvcdynctrl*
/lib/udev/uvcdynctrl
/lib/udev/rules.d/80-uvcdynctrl.rules
%{_mandir}/man1/uvcdynctrl*.1*

#----------------------------------------------------------------------------

%package -n uvcdynctrl-data
Summary:	XML control file for the uvcdynctrl package
Group:		System/Kernel and hardware
Requires:	uvcdynctrl = %{EVRD}
BuildArch:	noarch

%description -n uvcdynctrl-data
XML control file for the uvcdynctrl package.

%files -n uvcdynctrl-data
%{_datadir}/uvcdynctrl

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-src-%{version}
%patch0 -p1
%patch1 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build
rm %{buildroot}%{_libdir}/libwebcam.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2959 |21cr|libxdiff-0.23-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname xdiff %{major}
%define develname %mklibname xdiff -d

Summary:	Create diffs/patches for text/binary files
Name:		libxdiff
Version:	0.23
Release:	4
License:	LGPL
Group:		System/Libraries
URL:		http://www.xmailserver.org/xdiff-lib.html
Source0:	http://www.xmailserver.org/libxdiff-%{version}.tar.gz
Patch0:		am-fixes.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool

%description
The LibXDiff library implements basic and yet complete functionalities
to create file differences/patches to both binary and text files. It
uses memory files as file abstraction to achieve both performance and
portability. For binary files, it implements (with some modification)
the algorithm described in "File System Support for Delta Compression"
by Joshua P. MacDonald. For text files, it follows directives described
in "An O(ND) Difference Algorithm and Its Variations" by Eugene W.
Myers. Memory files used by the library are basically a collection of
buffers that store the file content.

%package -n	%{libname}
Summary:	Shared libxdiff library
Group:		System/Libraries

%description -n	%{libname}
The LibXDiff library implements basic and yet complete functionalities
to create file differences/patches to both binary and text files. It
uses memory files as file abstraction to achieve both performance and
portability. For binary files, it implements (with some modification)
the algorithm described in "File System Support for Delta Compression"
by Joshua P. MacDonald. For text files, it follows directives described
in "An O(ND) Difference Algorithm and Its Variations" by Eugene W.
Myers. Memory files used by the library are basically a collection of
buffers that store the file content

%package -n	%{develname}
Summary:	Header files for libxdiff library
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
The LibXDiff library implements basic and yet complete functionalities
to create file differences/patches to both binary and text files. It
uses memory files as file abstraction to achieve both performance and
portability. For binary files, it implements (with some modification)
the algorithm described in "File System Support for Delta Compression"
by Joshua P. MacDonald. For text files, it follows directives described
in "An O(ND) Difference Algorithm and Its Variations" by Eugene W.
Myers. Memory files used by the library are basically a collection of
buffers that store the file content

Header files for libxdiff library.

%prep
%autosetup -p1

%build
%serverbuild
autoreconf -fis

%configure \
    --with-pic \
    --disable-rpath

%make

%install
%makeinstall_std

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog
%{_libdir}/*.so.*

%files -n %{develname}
%{_includedir}/*.h
%{_libdir}/*.so
%{_mandir}/man3/xdiff.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2960 |21cr|libxfce4ui-4.16.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

%define major 0

%define gmajor 2.0
%define girname	%mklibname xfce4ui-gir %{gmajor}
%define api3 2
%define apikbd3 3
%define libname3 %mklibname xfce4ui %{api3} %{major}
%define libnamekbd3 %mklibname xfce4kbd-private %{apikbd3} %{major}
%define devname3 %mklibname xfce4ui %{api3} -d

%define _disable_rebuild_configure 1

Summary:	Various Xfce widgets for Xfce desktop environment
Name:		libxfce4ui
Version:	4.16.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/libxfce4ui/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:  gtk-doc
BuildRequires:	intltool
BuildRequires:	xfce4-dev-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(sm)
BuildRequires:	vala-tools

%description
Various Xfce widgets for Xfce desktop environment.

#----------------------------------------------------------------------------

%package -n %{libname3}
Summary:	GTK3 GUI libraries for Xfce
Group:		Graphical desktop/Xfce
Requires:	%{name}-common = %{EVRD}
Conflicts:      %{_lib}xfce4ui1_0
Obsoletes:      %{_lib}xfce4ui1_0 < 4.16.1


%description -n %{libname3}
GTK3 GUI libraries for Xfce desktop environment.

%files -n %{libname3}
%{_libdir}/libxfce4ui-%{api3}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamekbd3}
Summary:	GTK3 GUI libraries for Xfce
Group:		Graphical desktop/Xfce
Conflicts:      %{_lib}xfce4kbd-private2_0
Obsoletes:      %{_lib}xfce4kbd-private2_0 < 4.16.1

%description -n %{libnamekbd3}
GTK3 GUI libraries for Xfce desktop environment.

%files -n %{libnamekbd3}
%{_libdir}/libxfce4kbd-private-%{apikbd3}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname3}
Summary:	Development files and headers for the %{name} library using GTK3
Group:		Development/Other
Requires:	%{libname3} = %{EVRD}
Requires:	%{libnamekbd3} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	xfce4ui2-devel = %{EVRD}
Conflicts:	%{_lib}xfce4ui-devel
Obsoletes:      %{_lib}xfce4ui-devel < 4.16.1

%description -n %{devname3}
Development files and headers for the %{name} library using GTK3.

%files -n %{devname3}
%doc %{_datadir}/gtk-doc/html
%{_libdir}/pkgconfig/libxfce4kbd-private-%{apikbd3}.pc
%{_libdir}/pkgconfig/libxfce4ui-%{api3}.pc
%{_libdir}/%{name}-%{api3}.so
%{_libdir}/libxfce4kbd-private-%{apikbd3}.so
%{_includedir}/xfce4/%{name}-%{api3}/
%{_includedir}/xfce4/libxfce4kbd-private-%{apikbd3}/
%{_datadir}/gir-1.0/Libxfce4ui-%{gmajor}.gir
%{_datadir}/vala/vapi/libxfce4ui-2.deps
%{_datadir}/vala/vapi/libxfce4ui-2.vapi

#----------------------------------------------------------------------------

%package glade
Summary:	Glade3 (GTK+2) modules for %{name}
Group:		Graphical desktop/Xfce
Requires:	glade

%description glade
This package provides a catalog for Glade3 (GTK+2) which allows the use of the
provided Xfce widgets in Glade3.

%files glade
%{_libdir}/glade/modules/*%{name}glade*.so
%{_datadir}/glade/catalogs/*%{name}*.xml
%{_datadir}/glade/pixmaps/hicolor/*/*/*%{name}*.png

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname3} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Libxfce4ui-%{gmajor}.typelib

#----------------------------------------------------------------------------

%package common
Summary:	Common files for %{name}
Group:		Graphical desktop/Xfce

%description common
This package contains common files for %{name}.

%files common -f %{name}.lang
%{_bindir}/xfce4-about
%{_datadir}/applications/xfce4-about.desktop
%{_iconsdir}/hicolor/*
%config(noreplace) %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-keyboard-shortcuts.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure2_5x \
	--disable-static \
	--enable-startup-notification \
	--enable-introspection \
	--enable-gladeui2 \
	--enable-vala=yes \
	--with-vendor-info=%{vendor} \
        --enable-gtk-doc

%make -s

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2961 |21cr|libxfce4util-4.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	url_ver %(echo %{version} | cut -d. -f1,2)
%define	api 1.0
%define	major 7
%define	libname %mklibname xfce4util %{major}
%define	devname %mklibname xfce4util -d
%define	girname %mklibname xfce4util-gir %{api}
%define _disable_rebuild_configure 1

Summary:	Utility library for the Xfce desktop environment
Name:		libxfce4util
Version:	4.16.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/libxfce4util/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	gtk-doc
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	xfce4-dev-tools >= 4.11.0
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
Basic utility non-GUI functions for Xfce desktop environment.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Utility library for the Xfce desktop environment
Group:		Graphical desktop/Xfce
Requires:	xdg-user-dirs
Requires:	%{name}-common


%description -n %{libname}
Utility library for the Xfce desktop environment.

%files -n %{libname}
%doc AUTHORS ChangeLog TODO
%{_libdir}/libxfce4util.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for the %{name} library
Group:		Development/Other
Requires:	xfce4-dev-tools >= 4.9.0
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}


%description -n %{devname}
Libraries and header files for the %{name} library.

%files -n %{devname}
%doc AUTHORS ChangeLog TODO
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/libxfce4util-%{api}.pc
%dir %{_includedir}/xfce4
%{_includedir}/xfce4/%{name}
%{_datadir}/gtk-doc/html/*
%{_datadir}/gir-1.0/Libxfce4util-%{api}.gir
%{_datadir}/vala/vapi/libxfce4util-1.0.vapi

#----------------------------------------------------------------------------

%package common
Summary:	Common files for Xfce utility library
Group:		Graphical desktop/Xfce
BuildArch:	noarch

%description common
Common files for %{name}.

%files common -f %{name}.lang
%doc AUTHORS ChangeLog TODO

#----------------------------------------------------------------------------

%package -n xfce-kiosk
Summary:	Kiosk support for the Xfce desktop environment
Group:		Graphical desktop/Xfce

%description -n xfce-kiosk
Kiosk support for the Xfce desktop environment.

%files -n xfce-kiosk
%doc AUTHORS ChangeLog TODO
%{_sbindir}/xfce4-kiosk-query

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc AUTHORS ChangeLog TODO
%{_libdir}/girepository-1.0/Libxfce4util-%{api}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-introspection=yes \
	--enable-vala=yes
%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2962 |21cr|libxfcegui4-4.10.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define major 4
%define libname %mklibname xfcegui4_ %{major}
%define devname %mklibname xfcegui4 -d

Summary:	Various GTK+ widgets for Xfce desktop environment
Name:		libxfcegui4
Version:	4.10.0
Release:	9
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/libxfcegui4/%{url_ver}/%{name}-%{version}.tar.bz2
#(tpg) http://bugzilla.xfce.org/show_bug.cgi?id=3614
Patch0:		%{name}-4.4.2-extension-strip.patch
Patch1:		libxfcegui4-4.10.0-no-xfce_setenv.patch
BuildRequires:	gtk-doc
BuildRequires:	xfce4-dev-tools >= 4.10.0
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(gladeui-1.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfconf-0) >= 4.10.0
Conflicts:	%{_lib}xfcegui4_4 < 4.10.0-5

%description
Various GTK+ widgets for Xfce desktop environment.

%files
%{_libdir}/libglade/2.0/libxfce4.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gui libraries for Xfce
Group:		Graphical desktop/Xfce
Provides:	libxfcegui4-plugins = %{EVRD}
Requires:	librsvg2
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-common >= %{EVRD}

%description -n %{libname}
Gui libraries for Xfce desktop environment.

%files -n %{libname}
%{_libdir}/libxfcegui4.so.%{major}*

#----------------------------------------------------------------------------

%package common
Summary:	Translations for %{name}
Group:		Graphical desktop/Xfce
BuildArch:	noarch

%description common
This package contains common files for %{name}.

%files common -f %{name}.lang
%{_iconsdir}/hicolor/*/apps/xfce*

#----------------------------------------------------------------------------

%package glade
Summary:	Glade modules for %{name}
Group:		Graphical desktop/Xfce
Requires:	glade3

%description glade
This package provides a catalog for Glade which allows the use of the
provided Xfce widgets in Glade.

%files glade
%{_libdir}/glade3/modules/libgladexfce4.so
%{_datadir}/glade3/catalogs/xfce4.xml
%{_datadir}/glade3/catalogs/xfce4.xml.in
%{_datadir}/glade3/pixmaps/hicolor/*/actions/*.png

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for the %{name} library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	xfce4-dev-tools
Requires:	pkgconfig(gladeui-1.0)
Requires:	pkgconfig(libglade-2.0)
Provides:	%{name}-devel = %{EVRD}
Provides:	libxfce4gui-devel = %{EVRD}

%description -n %{devname}
Libraries and header files for the %{name} library.

%files -n %{devname}
%doc AUTHORS ChangeLog README NEWS
%doc %{_datadir}/gtk-doc/html/libxfcegui4/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/xfce4/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .icons
%patch1 -p0 -b .setenv

%build
%configure \
	--disable-static \
	--enable-startup-notification \
	--enable-gladeui

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2963 |21cr|libxmi-1.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname xmi %{major}
%define devname %mklibname xmi -d

Summary:	Libxmi for library rasterizing 2-D vector graphics
Name:		libxmi
Version:	1.2
Release:	12
License:	GPL
Group:		System/Libraries
Url:		http://www.gnu.org/software/libxmi/
Source0:	ftp://ftp.gnu.org/pub/gnu/libxmi/%{name}-%{version}.tar.bz2

%description
GNU libxmi is a C/C++ function library for rasterizing 2-D vector 
graphics. It can draw 2-D graphical primitives, including wide 
polygonal lines and circular and elliptical arcs, into a 
user-supplied matrix of pixels. Sophisticated line styles, such 
as multicolored dashing patterns, can be specified. There is also 
support for filling and texturing polygons.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libxmi for library rasterizing 2-D vector graphics
Group:		Development/Other

%description -n %{libname}
GNU libxmi is a C/C++ function library for rasterizing 2-D vector 
graphics. It can draw 2-D graphical primitives, including wide 
polygonal lines and circular and elliptical arcs, into a 
user-supplied matrix of pixels. Sophisticated line styles, such 
as multicolored dashing patterns, can be specified. There is also 
support for filling and texturing polygons.

%files -n %{libname}
%{_libdir}/libxmi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libxmi for library rasterizing 2-D vector graphics
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libxmi devel files.

%files -n %{devname}
%{_libdir}/libxmi.so
%{_includedir}/*.h
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure

%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2964 |21cr|libxmlrow-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xmlrow %{major}
%define devname %mklibname xmlrow -d

Summary:	The libxmlrow C library
Name:		libxmlrow
Version:	0.2
Release:	10
License:	BSD
Group:		System/Libraries
Url:		http://tangent.org/
Source0:	http://download.tangent.org/%{name}-%{version}.tar.gz
Patch0:		libxmlrow-configure.patch
BuildRequires:	pkgconfig(libxml-2.0)

%description
The libxmlrow C library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A memcached C library
Group:		System/Libraries

%description -n %{libname}
The libxmlrow C shared library.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/libxmlrow.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libxmlrow library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	xmlrow-devel = %{EVRD}

%description -n %{devname}
The libxmlrow C library.

This package contains the static libxmlrow library and its header files.

%files -n %{devname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2965 |21cr|libxpresent-1.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     rname libXpresent
%define     debug_package %{nil}
%define     major 1
%define     libname %mklibname xpresent %{major}
%define     devname %mklibname xpresent -d

Summary:	Xlib-compatible API for the Present extension
Name:		libxpresent
Version:	1.0.0
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://www.x.org
Source0:	http://xorg.freedesktop.org/archive/individual/lib/%{rname}-%{version}.tar.bz2

BuildRequires: libtool
BuildRequires: gettext
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(presentproto)
BuildRequires: pkgconfig(xextproto)
BuildRequires: pkgconfig(x11)
BuildRequires: x11-util-macros
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrandr)


%description
This package contains header files and 
documentation for the Present extension.  
Library and server implementations are separate.

%package -n %{libname}
Summary:        Development files for %{name}
Group:		    Development/X11
Provides:       %{name} = %{EVRD}

%description    -n %{libname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libXpresent.so.1
%{_libdir}/libXpresent.so.1.0.0

#################################################################

%package        -n %{devname}
Summary:        Development files for %{name}
Group:		    Development/X11
Requires:       %{libname} = %{EVRD}
Provides:	    libxpresent-devel = %{EVRD}

%description    -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/X11/extensions/Xpresent.h
%{_libdir}/libXpresent.so
%{_libdir}/pkgconfig/xpresent.pc
%{_mandir}/man3/*.3*

#------------------------------------------------------------------

%prep
%setup -qn %{rname}-%{version}

%build
%configure \
 --disable-static 
%make

%install
%make DESTDIR=%{buildroot} install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2966 |21cr|libxprintapputil-1.0.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xprintapputil %{major}
%define devname %mklibname -d xprintapputil

Summary:	The XprintAppUtil library
Name:		libxprintapputil
Version:	1.0.1
Release:	17
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXprintAppUtil-%{version}.tar.bz2
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xprintutil)

%description
The XprintAppUtil library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The XprintAppUtil library
Group:		Development/X11

%description -n %{libname}
The XprintAppUtil Library.

%files -n %{libname}
%{_libdir}/libXprintAppUtil.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{_lib}xprintapputil-static-devel < 1.0.1-13

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libXprintAppUtil.so
%{_libdir}/pkgconfig/xprintapputil.pc
%{_includedir}/X11/XprintAppUtil/xpapputil.h

#----------------------------------------------------------------------------

%prep
%setup -q -n libXprintAppUtil-%{version}

%build
%configure\
	--disable-static \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2967 |21cr|libxprintutil-1.0.1-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xprintutil %{major}
%define devname %mklibname xprintutil -d
%define sdevname %mklibname xprintutil -d -s

Summary:	The XprintUtil library
Name:		libxprintutil
Version:	1.0.1
Release:	24
License:	MIT
Group:		System/Libraries
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXprintUtil-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xt)

%description
The XprintUtil library.

#-----------------------------------------------------------

%package -n %{libname}
Summary:	The XprintUtil shared library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
The XprintUtil shared library.

%files -n %{libname}
%{_libdir}/libXprintUtil.so.%{major}*

#-----------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(x11)
Requires:	pkgconfig(xt)
Requires:	pkgconfig(xproto)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libXprintUtil.so
%{_libdir}/pkgconfig/xprintutil.pc
%{_includedir}/X11/XprintUtil/xprintutil.h

#-----------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development files for %{name}
Group:		Development/X11
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static development files for %{name}.

%files -n %{sdevname}
%{_libdir}/libXprintUtil.*a

#-----------------------------------------------------------

%prep
%setup -qn libXprintUtil-%{version}

%build
%configure \
	--enable-static \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2968 |21cr|libxtrxll-0.0.0+git.20201202-1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 1b6eddfbedc700efb6f7e3c3594e43ac6ff29ea4
%define xtrx_group xtrx
%define sover   0
%define libname libxtrxll%{sover}
%define major 0
%define libname %mklibname xtrxll %{major}
%define devname %mklibname -d xtrxll

Name:           libxtrxll
Version:        0.0.0+git.20201202
Release:        1.1
Summary:        XTRX Low-level API library
License:        LGPL-2.1-only
Group:          System/Libraries
URL:            http://xtrx.io
#Git-Clone:     https://github.com/xtrx-sdr/libxtrxll.git
Source0:	https://github.com/xtrx-sdr/libxtrxll/archive/%{commit}.zip
Patch0:         libxtrxll-fix-udev-permissions.patch
BuildRequires:  cmake
BuildRequires:  git-core
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(libusb3380)

%description
Low level XTRX hardware abstraction library.

%package -n %{libname}
Summary:        XTRX Low-level API library
Group:          System/Libraries
Requires:       xtrx-usb-udev

%description -n %{libname}
Low level XTRX hardware abstraction library.

%package -n	%{devname}
Summary:        XTRX Low-level API library - devel
Group:          System/Libraries
Requires:       %{libname} = %{EVRD}

%description -n	%{devname}
Low level XTRX hardware abstraction library.

This subpackage contains libraries and header files for developing
applications that want to make use of libxtrxll.

%package -n xtrxll-tools
Summary:        Low level tools for XTRX
Group:          Communications
Requires:	%{libname} = %{EVRD}

%description -n xtrxll-tools
Low level tools for XTRX SDR devices.

%package -n xtrx-usb-udev
Summary:        Udev rules for XTRX USB devices
Group:          Communications
Provides:       xtrx-udev = %{version}
Obsoletes:      xtrx-udev < %{version}
BuildArch:      noarch

%description -n xtrx-usb-udev
Udev rules for XTRX USB devices.

%prep
%setup -q -n %{name}-%{commit}

%build
export CFLAGS="%{optflags} -lusb-1.0"
%cmake \
%ifarch %{ix86} %{x86_64}
    -DFORCE_ARCH=x86_64 \
%endif
%ifarch %{arm} aarch64
    -DFORCE_ARCH=arm \
%endif
    -DENABLE_PCIE=ON \
    -DENABLE_USB3380=ON \
    -DINSTALL_UDEV_RULES=ON \
    -DUDEV_RULES_PATH=%{_udevrulesdir}
%make_build

%install
%make_install -C build
install -d %{buildroot}/%{_bindir}
mv %{buildroot}%{_libdir}/xtrxll/test_xtrxflash %{buildroot}/%{_bindir}
mv %{buildroot}%{_libdir}/xtrxll/test_xtrxll %{buildroot}/%{_bindir}

%post   -n %{libname} -p /sbin/ldconfig
%postun -n %{libname} -p /sbin/ldconfig
%pre -n xtrx-usb-udev
getent group %{xtrx_group} >/dev/null || groupadd -r %{xtrx_group}

%files -n xtrx-usb-udev
%{_udevrulesdir}/50-xtrx.rules

%files -n %{libname}
%{_libdir}/libxtrxll.so.%{major}*

%files -n %{devname}
%license LICENSE
%doc README.md
%{_includedir}/xtrxll_*.h
%{_libdir}/libxtrxll.so
%{_libdir}/pkgconfig/libxtrxll.pc

%files -n xtrxll-tools
%{_bindir}/test_xtrxflash
%{_bindir}/test_xtrxll

%files -n xtrx-usb-udev
%{_udevrulesdir}/50-xtrx-usb3380.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2969 |21cr|libyui-3.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname yui %{major}
%define develname %mklibname -d yui

Name:		libyui
Version:	3.3.3
Release:	2
Summary:	User interface abstraction layer
Group:		System/Libraries
License:	LGPLv2+
URL:		https://github.com/libyui/libyui
Source0:	https://github.com/libyui/libyui/archive/v%{version}.tar.gz
# Based on https://github.com/libyui/libyui/commit/b1f593cd99fd33cc3f0cf9b4f5151f672b68d96e
Patch0:		libyui-3.3.3-fix_gcc8.patch

BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	doxygen
BuildRequires:	texlive
BuildRequires:	ghostscript
BuildRequires:	boost-devel
BuildRequires:	libtool


%description
libYUI is a library written entirely in C++ to provide an abstraction layer
for Qt, GTK and ncurses UI frameworks. This means that a single code in YUI
can be used to produce outputs using any of the 3 UI frameworks listed above.
This library was (and still is) used to create the YaST2 User Interface. 

#----------------------------------------------------------

%package -n %{libname}
Summary:	%{summary}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Obsoletes:	%{name} < 2.21.1-2
Conflicts:	%{name} < 2.21.1-2

%description -n %{libname}
This package contains the library needed to run programs
dynamically linked with libyui.

%files -n %{libname}
%dir %{_libdir}/yui
%dir %{_datadir}/libyui
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------

%package -n %{develname}
Summary:	libYUI, YaST2 User Interface Engine - header files
Group:		Development/C++
Requires:	%{name} >= %{version}
Requires:	boost-devel
Provides:	%{name}-devel = %{EVRD}
Provides:	yui-devel = %{EVRD}
Obsoletes:	%{name}-devel < 2.21.1-2
Conflicts:	%{name}-devel < 2.21.1-2

%description -n %{develname}
This is the development package for libyui user interface engine
that provides the abstraction from graphical user interfaces (Qt, Gtk)
and text based user interfaces (ncurses).

%files -n %{develname}
%dir %{_docdir}/libyui%{major}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/yui
%{_libdir}/cmake/libyui
%{_datadir}/libyui/buildtools
%doc %{_docdir}/libyui%{major}/examples

#----------------------------------------------------------

%prep
%autosetup -p1

%build
./bootstrap.sh
%cmake \
	-DYPREFIX=%{_prefix}   \
	-DDOC_DIR=%{_docdir}   \
	-DLIB_DIR=%{_lib}      \
	-DSKIP_LATEX=yes       \
	-DENABLE_WERROR:BOOL=no \
	-DCMAKE_BUILD_TYPE=RELWITHDEBINFO \
	-G Ninja

%ninja_build
%ninja_build docs

%install
%ninja_install -C build
install -m0755 -d %{buildroot}/%{_libdir}/yui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2970 |21cr|libzia-4.37-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%global __requires_exclude pkgconfig\\(bfd\\)

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Platform abstraction layer for the tucnak package
Name:		libzia
Version:	4.37
Release:	2
License:	GPLv2
Group:		System/Libraries
Url:		http://tucnak.nagano.cz/
Source:		http://tucnak.nagano.cz/%{name}-%{version}.tar.gz
# This is to fulfill Fedora requirement - it marks the interface with
# version number 0. Upstream uses --release versioning in libtool.
# They do not support linking between different versions of tucnak and
# libzia, i.e. tucnak-4.18 needs to be linked to libzia-4.18.
Patch0:		libzia-4.26-soname-fix.patch
Patch1:		libzia-4.35-ftdi-path.patch
BuildRequires:	libtool
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libftdi1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)

%description
Platform abstraction layer for the tucnak package.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libzia-%{version}.so.%{major}*

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libzia
Group:		Development/Other
Requires:	binutils-devel
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(gtk+-3.0)
Requires:	pkgconfig(libftdi1)
Requires:	pkgconfig(sdl2)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for libzia

%files -n %{devname}
%license COPYING
%doc AUTHORS
%{_bindir}/zia-config
%{_includedir}/libzia
%{_libdir}/libzia.so
%{_libdir}/pkgconfig/libzia.pc

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%make_install

# drop .la
rm -f %{buildroot}%{_libdir}/libzia.la

# drop unneeded files
rm -f %{buildroot}%{_datadir}/libzia/doc/*
rm -f %{buildroot}%{_datadir}/libzia/settings
rm -f %{buildroot}%{_prefix}/lib/libzia/*
rmdir %{buildroot}%{_datadir}/libzia/doc/ %{buildroot}%{_datadir}/libzia %{buildroot}%{_prefix}/lib/libzia

#remove requires for bfd from .pc file
sed -i 's/ bfd//' %{buildroot}%{_libdir}/pkgconfig/libzia.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2971 |21cr|libzita-convolver-4.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name_base	zita-convolver
%define	major	4
%define	lib_name	%mklibname %name_base %{major}
%define	lib_name_devel	%mklibname %name_base -d

Name:		libzita-convolver
Summary:	Audio convolution engine library
Version:	4.0.3
Release:	1
License:	GPLv3+
Group:		Sound
Url:		http://kokkinizita.linuxaudio.org/linuxaudio/
Source0:	http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name_base}-%{version}.tar.bz2
Patch0:		libzita-convolver-aarch64.patch
BuildRequires:	pkgconfig(fftw3)

%description
Convolution engine library for use with jconvolver and guitarix2. Jconvolver
is a Convolution Engine for JACK using FFT-based partitioned convolution with
multiple partition sizes. It is mainly used to create realistic acoustic
environments for sounds sent to its input. Jconvolver uses a configurable
smallest partition size at the start of the impulse response, and longer
ones further on. This it allows long impulse responses along with minimal or
even zero delay at a reasonable CPU load.

#-----------------------------------------------------------------------------

%package -n %{lib_name}
Summary:	Audio convolution engine library
Group:		System/Libraries

%description -n %{lib_name}
Convolution engine library for use with jconvolver and guitarix2.
This package contains the main library.

%files -n %{lib_name}
%doc AUTHORS COPYING
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{lib_name_devel}
Summary:	The %{name} development files
Group:		Development/C++
Requires:	%{lib_name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{lib_name_devel}
Development files needed to build applications against %{name}.

%files -n %{lib_name_devel}
%doc AUTHORS COPYING README
%{_libdir}/%{name}.so
%{_includedir}/*.h

#-------------------------------------------------------------------------


%prep
%autosetup -p1 -n %{name_base}-%{version}
cd source
perl -pi -e 's/PREFIX =/#PREFIX =/g' Makefile
perl -pi -e 's/CPPFLAGS \+=/#CPPFLAGS \+=/g' Makefile
perl -pi -e 's/ldconfig//g' Makefile
perl -pi -e 's/-march=native//g' Makefile


%build
cd source

%ifarch %{armx}
CPPFLAGS="%{optflags} -fPIC -ffast-math" make
%else
CPPFLAGS="%{optflags} -fPIC -mmmx -msse -mfpmath=sse -ffast-math" make
%endif

%install
cd source
PREFIX=%{buildroot}%{_prefix} make install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2972 |21cr|libzita-resampler-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname zita-resampler
%define	major 1
%define	libname %mklibname %{oname} %{major}
%define	devname %mklibname %{oname} -d

Summary:	Fast, high-quality sample rate conversion library
Name:		libzita-resampler
Version:	1.8.0
Release:	1
License:	GPLv3+
Group:		Sound
Url:		http://kokkinizita.linuxaudio.org/linuxaudio/zita-resampler/resampler.html
Source0:	http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{oname}-%{version}.tar.bz2
Patch0:		libzita-resampler-1.8.0-fix-internal-headers-inclusion.patch
BuildRequires:	pkgconfig(sndfile)

%description
zita-resampler is a C++ library for resampling audio signals. It is designed
to be used within a real-time processing context, to be fast, and to provide
high-quality sample rate conversion.
The library operates on signals represented in single-precision floating point
format. For multichannel operation both the input and output signals are
assumed to be stored as interleaved samples. The API allows a trade-off
between quality and CPU load. For the latter a range of approximately 1:6 is
available. Even at the highest quality setting zita-resampler will be faster
than most similar libraries, e.g. libsamplerate.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast, high-quality sample rate conversion library
Group:		System/Libraries

%description -n %{libname}
zita-resampler is a C++ library for resampling audio signals. It is designed
to be used within a real-time processing context, to be fast, and to provide
high-quality sample rate conversion.
The library operates on signals represented in single-precision floating point
format. For multichannel operation both the input and output signals are
assumed to be stored as interleaved samples.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package  -n %{devname}
Summary:	Development libraries and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development libraries
for %{name}.

%files -n %{devname}
%doc docs/*
%{_libdir}/%{name}.so
%{_includedir}/%{oname}/*.h

#----------------------------------------------------------------------------

%package -n %{oname}
Summary:	The zresample and zretune executables coming with %{name}
Group:		Sound

%description -n %{oname}
zita-resampler is a C++ library for resampling audio signals. It is designed
to be used within a real-time processing context, to be fast, and to provide
high-quality sample rate conversion.
This package provides the zresample and zretune executables.

%files -n %{oname}
%doc COPYING
%{_bindir}/zresample
%{_bindir}/zretune
%{_mandir}/man1/zresample.*
%{_mandir}/man1/zretune.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

# To make sure to have the correct flags:
sed -i 's|ldconfig||' source/Makefile
sed -i 's|-march=native|%{optflags}|' source/Makefile
sed -i 's|-march=native|%{optflags}|' apps/Makefile

%ifarch %{armx}
sed -i 's|-DENABLE_SSE2||' source/Makefile
%endif

%build
export LDFLAGS="-L../source"
make -C source
# In order to build apps, we need to create the symlink
# Note that this is ordinarily done at "make install" stage
ln -sf libzita-resampler.so.%{version} source/libzita-resampler.so
make -C apps


%install
make PREFIX=%{buildroot}%{_prefix} LIBDIR=%{buildroot}%{_libdir} -C source install
make PREFIX=%{buildroot}%{_prefix} BINDIR=%{buildroot}%{_bindir} MANDIR=%{buildroot}%{_mandir}/man1 -C apps install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2973 |21cr|libzrtpcpp-4.6.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname zrtpcpp %{major}
%define devname %mklibname zrtpcpp -d

Summary:	A ccrtp extension for zrtp/Zfone support
Name:		libzrtpcpp
Version:	4.6.4
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.gnu.org/software/commoncpp/commoncpp.html
Source0:	ftp://ftp.gnu.org/gnu/ccrtp/libzrtpcpp-%{version}.tar.gz
Patch0:		libzrtpcpp-4.4.0-no-warning.patch
Patch1:		libzrtpcpp-4.6.4_deprecated.patch
BuildRequires:	cmake
BuildRequires:	stdc++-devel
BuildRequires:	pkgconfig(libccrtp)
BuildRequires:	pkgconfig(libgcrypt)

%description
This library is a GPL licensed extension to the GNU RTP Stack, ccrtp, that
offers compatibility with Phil Zimmermann's zrtp/Zfone voice encryption, and
which can be directly embedded into telephony applications.  The current
release is based on a beta draft of the zrtp spec.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Abstract asynchronous event notification library
Group:		System/Libraries

%description -n %{libname}
This library is a GPL licensed extension to the GNU RTP Stack, ccrtp, that
offers compatibility with Phil Zimmermann's zrtp/Zfone voice encryption, and
which can be directly embedded into telephony applications. The current
release is based on a beta draft of the zrtp spec.

%files -n %{libname}
%{_libdir}/libzrtpcpp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the libzrtpcpp library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the header files, link libraries, and documentation for
building applications that use libzrtpcpp.

%files -n %{devname}
%doc AUTHORS COPYING
%dir %{_includedir}/libzrtpcpp
%dir %{_includedir}/libzrtpcpp/common
%{_includedir}/libzrtpcpp/*.h
%{_includedir}/libzrtpcpp/common/osSpecifics.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn ZRTPCPP-%{version}
%patch0 -p1
%patch1 -p1

%build
%cmake \
	-DCCRTP:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2974 |21cr|licq-1.8.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ICQ clone written in C++
Name:		licq
Version:	1.8.2
Release:	6
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://www.licq.org/
Source0:	http://ovh.dl.sourceforge.net/licq/%{name}-%{version}.tar.bz2
Patch0:		licq-1.8.2-gcc6.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	boost-devel
#BuildRequires:	cdk-devel
BuildRequires:	gpgme-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(gloox)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(xscrnsaver)
Requires:	licq-frontend = %{EVRD}
Requires:	licq-protocol = %{EVRD}
Requires:	sox
# Seems to be dropped
Obsoletes:	licq-console < 1.8.2

%description
Licq supports different interfaces and functions via
plugins. Currently there are plugins for both the X Windowing System
and the console.

This version of licq has SSL support for those plugins that support it.

%files -f %{name}.lang
%doc doc/ upgrade/ README*
%{_bindir}/licq
%{_bindir}/licq-ssl
%dir %{_datadir}/licq
%{_datadir}/licq/translations
%{_datadir}/licq/utilities
%{_datadir}/licq/sounds

#----------------------------------------------------------------------------

%package qt4
Summary:	Qt4 plugin for Licq
Group:		Networking/Instant messaging
Provides:	licq-frontend = %{EVRD}
Requires:	%{name} = %{EVRD}

%description qt4
This package contains the base files for Licq (the Licq daemon) and
the Qt plugin, which is written using the Qt widget set. Currently
this GUI plugin has most of the ICQ functions implemented.

This starts the Qt plugin by default, so to run other plugins, you
will have to issue the command "licq -p <plugin>" once. To get back
the Qt plugin, you will have to run once "licq -p qt-gui".
Alternatively you may be able to do it in a plugin dialog box
if your plugin supports this feature.

%files qt4
%{_libdir}/licq/licq_qt4-gui.so
%{_datadir}/licq/qt4-gui
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%package icq
Summary:	ICQ Licq plugin
Group:		Networking/Instant messaging
Provides:	licq-protocol = %{EVRD}
Requires:	%{name} = %{EVRD}

%description icq
ICQ plugin for Licq.

%files icq
%doc plugins/icq/README
%{_libdir}/licq/protocol_icq.so

#----------------------------------------------------------------------------

%package jabber
Summary:	Jabber Licq plugin
Group:		Networking/Instant messaging
Provides:	licq-protocol = %{EVRD}
Requires:	%{name} = %{EVRD}

%description jabber
ICQ plugin for Licq.

%files jabber
%doc plugins/jabber/README plugins/jabber/COPYING
%{_libdir}/licq/protocol_jabber.so

#----------------------------------------------------------------------------

%package rms
Summary:	Remote management service Licq plugin
Group:		Networking/Instant messaging
Requires:	%{name} = %{EVRD}

%description rms
RMS stands for the Remote Management Service. It is a plugin for Licq
which enables you to "telnet" to your Licq box to perform various
tasks. Security is implemented through basic username and password
authentication.

%files rms
%doc plugins/rms*/COPYING plugins/rms*/README
%{_libdir}/licq/licq*rms*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Licq
Group:		Development/C

%description devel
This is the header files that you will need in order to compile Licq plugins.

%files devel
%{_datadir}/cmake/Modules/*.cmake
%{_includedir}/licq

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake \
	-DBUILD_TESTS=OFF \
	-DUSE_OPENSSL:BOOL=OFF
make
cd ..

cmakeopts="-DCMAKE_MODULE_PATH=%{_builddir}/%{name}-%{version}/cmake -DLicq_DIR=%{_builddir}/%{name}-%{version}/build/cmake"

# Qt4 gui
pushd plugins/qt4-gui
%cmake $cmakeopts
%make
popd

# Remote management service
pushd plugins/rms
%cmake $cmakeopts
%make
popd

# ICQ
pushd plugins/icq
%cmake $cmakeopts
%make
popd

# Jabber
pushd plugins/jabber
%cmake $cmakeopts
%make
popd

%install
%makeinstall_std -C build
%makeinstall_std -C plugins/qt4-gui/build
%makeinstall_std -C plugins/rms/build
%makeinstall_std -C plugins/icq/build
%makeinstall_std -C plugins/jabber/build

ln -sf licq %{buildroot}%{_bindir}/licq-ssl

# Fix cmake modules location
mkdir -p %{buildroot}%{_datadir}/cmake/Modules
mv %{buildroot}%{_datadir}/%{name}/cmake/*.cmake %{buildroot}%{_datadir}/cmake/Modules/
rm -rf %{buildroot}%{_datadir}/%{name}/cmake

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2975 |21cr|lifelines-3.0.62-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	A terminal based genealogy program
Name:		lifelines
Version:	3.0.62
Release:	12
License:	MIT
Group:		Databases
Url:		http://lifelines.sourceforge.net/
Source:		http://prdownloads.sourceforge.net/lifelines/%{name}-%{version}.tar.bz2
Patch0:		lifelines-3.0.62-format-strings.patch
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	openjade
BuildRequires:	bison

%description
This program allows the tracking of genealogical information. The lifelines
reports are the power of the system.

%files -f %{name}.lang
%doc README* ChangeLog NEWS AUTHORS LICENSE docs/*.txt docs/*.pdf docs/*.html
%{_mandir}/man1/*
%{_bindir}/btedit
%{_bindir}/llines
%{_bindir}/llexec
%{_bindir}/dbverify
%{_datadir}/%{name}


#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
find . -type d -perm 0700 -exec chmod 0755 '{}' \;
find . -type f -perm 0700 -exec chmod 0644 '{}' \;
chmod 0755 ./configure

%build
%configure

%make

%install
%makeinstall_std 
install -d -m 755 %{buildroot}%{_datadir}/%{name}/reports
install -m 644 reports/CREDIT reports/README reports/boc.gif reports/*.ll reports/tree.* reports/index.html reports/ll.png  reports/st/*.ll %{buildroot}%{_datadir}/%{name}/reports  

install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 docs/llines.1 %{buildroot}%{_mandir}/man1/llines.1

rm -rf %{buildroot}%{_datadir}/doc/lifelines 
rm -f %{buildroot}%{_libdir}/libarch.a

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2976 |21cr|lifeograph-1.3.0-0.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _appdatadir %{_datadir}/appdata

Name:       lifeograph
Version:    1.3.0
Release:    0.3
Summary:    A diary program
Group:	    Office
License:    GPLv3+
URL:        http://%{name}.wikidot.com/start
Source0:    https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.rc1.tar.gz

BuildRequires:  pkgconfig(gdkmm-3.0)
BuildRequires:  pkgconfig(enchant)
BuildRequires:  pkgconfig(libgcrypt)
BuildRequires:  intltool
BuildRequires:  desktop-file-utils
BuildRequires:  cmake

Requires:       hicolor-icon-theme

%description
Lifeograph is a diary program to take personal notes on life. It has all
essential functionality expected in a diary program and strives to have
a clean and streamlined user interface.


%prep
%setup -qn %{name}-%{version}.rc1

%build
%cmake 
%make


%install
%makeinstall_std -C build

desktop-file-install build/%{name}.desktop \
  --dir=%{buildroot}%{_datadir}/applications 

mkdir -p %{buildroot}%{_mandir}/man1/
cp -p %{name}.1 %{buildroot}%{_mandir}/man1/


%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_datadir}/pixmaps/%{name}.png
%{_appdatadir}/%{name}.appdata.xml
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2977 |21cr|liferea-1.13.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _appdatadir %{_datadir}/appdata

Summary:	A News Aggregator For RSS/RDF Feeds For GTK/GNOME
Name:		liferea
Version:	1.13.6
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/News
URL:		http://liferea.sf.net/
Source:		https://github.com/lwindolf/liferea/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(indicate-0.7)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
# Without dconf, liferea can't save its settings
Requires:	dconf
Requires:	gsettings-desktop-schemas
Requires:	python3-gi

%description
Liferea (abbreviation of Linux Feed Reader) is a news aggregator for
RSS/RDF feeds which also supports CDF channels, Atom/Echo/PIE feeds
and OCS or OPML directories. It is a simple FeedReader clone for Unix.

%files -f %{name}.lang
%doc AUTHORS ChangeLog
%license COPYING
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/net.sourceforge.%{name}.service
%{_datadir}/GConf/gsettings/%{name}.convert
%{_datadir}/glib-2.0/schemas/net.sf.%{name}.gschema.xml
%{_datadir}/metainfo/net.sourceforge.%{name}.appdata.xml
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/net.sourceforge.%{name}*.*
%{_libdir}/%{name}/girepository-1.0/Liferea-3.0.typelib
%{_libdir}/%{name}/plugins/*
%{_libdir}/%{name}/web-extension/lib%{name}webextension.so
%{_mandir}/man1/*

#-----------------------------------------------------------------------------------------

%prep
%setup -q

# utf-8 convert
iconv -f iso8859-1 -t utf-8 man/pl/%{name}.1 > man/pl/%{name}.1.conv && \
mv -f man/pl/%{name}.1.conv man/pl/%{name}.1

# Add RosaLab feed
sed -i -e 's@^\(.*http://planet\.gnome\.org.*\)$@\1\n\t\t\t\t<outline text="RosaLab News" htmlUrl="http://rosalab.ru/blogs/" \
  xmlUrl="http://www.rosalab.ru/blogs.rss" />@' opml/*.opml

%build
%configure
%make

%install
%makeinstall_std
install -p -D -m 644 %{name}.convert \
  %{buildroot}%{_datadir}/GConf/gsettings/%{name}.convert


desktop-file-install \
  --add-category="GTK;GNOME" \
  --remove-category="Feed" \
  --set-key="Version" \
  --set-value="1.0" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name}

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/net.sourceforge.%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2978 |21cr|lightdm-gtk-greeter-2.0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Light Display Manager (GTK+ greeter)
Name:		lightdm-gtk-greeter
Version:	2.0.8
Release:	4
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		http://www.freedesktop.org/wiki/Software/LightDM
Source0:	https://github.com/Xubuntu/lightdm-gtk-greeter/archive/refs/tags/%{name}-%{version}.tar.gz
Source1:	60-lightdm-gtk-greeter.conf
Patch1: 	Removed-layot-and-lang-from-panel-added-keyboard.patch
Patch2:		Russian-translation2.patch
%ifnarch %{e2k}
BuildRequires:	pkgconfig(exo-2)
%else
BuildRequires:	xfce4-dev-tools
%endif
BuildRequires:	pkgconfig(gmodule-export-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 0.9.5
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(liblightdm-gobject-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	gtk-doc
BuildRequires:	intltool >= 0.35.0
BuildRequires:	gettext-devel
BuildRequires:	autoconf
BuildRequires:	automake
# For autoreconf
BuildRequires:	gnome-common
Provides:	lightdm-greeter
Requires:	lightdm
# For logo:
Requires:	desktop-common-data
# For icons in top right corner
Requires:	gnome-icon-theme
# For icons in HighContrast mode
Requires:	gnome-themes-standard

#For LXDE
Recommends:	rosa-flat-icons
Recommends:	rosa-lxde-flat
# without onboard package will not work item in menu
# lighdm will work as usual
Recommends:	onboard
%description
A LightDM greeter that uses the GTK+ toolkit.

%files -f %{name}.lang
%doc NEWS README*
%{_defaultdocdir}/lightdm-gtk-greeter/sample-lightdm-gtk-greeter.css
%config(noreplace) %{_sysconfdir}/lightdm/lightdm-gtk-greeter.conf
%{_sbindir}/lightdm-gtk-greeter
%{_datadir}/xgreeters/*.desktop
%{_datadir}/icons/hicolor/scalable/places/*badge-symbolic.svg
%{_datadir}/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
autoreconf -vfi
%configure \
	--disable-static
%make

%install
%makeinstall_std

install -m644 -p -D %{SOURCE1} \
	%{buildroot}%{_datadir}/lightdm/lightdm.conf.d/60-lightdm-gtk-greeter.conf


%find_lang %{name}

%pre
%{_sbindir}/update-alternatives \
	--remove lightdm-greeter \
    %{_datadir}/xgreeters/lightdm-gtk-greeter.desktop 2> /dev/null ||:
    


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2979 |21cr|lightdm-gtk-greeter-settings-1.2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Settings-dialog for lightdm-gtk-greeter
Name:		lightdm-gtk-greeter-settings
Version:	1.2.2
Release:	3
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://launchpad.net/lightdm-gtk-greeter-settings
Source0:	https://launchpad.net/lightdm-gtk-greeter-settings/1.2/%{version}/+download/%{name}-%{version}.tar.gz
Patch0:		lightdm-gtk-greeter-settings-1.2.0-fix-reload-icon.patch
Patch1:		lightdm-gtk-greeter-settings-pkexec.diff
Patch2:		add_translation-1.2.2.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-distutils-extra
BuildRequires:	python3-gi
Requires:	python3-gi
BuildArch:	noarch

%description
Small dialog to make it easier for users to modify the settings of
lightdm-gtk-greeter.

%files -f %{name}.lang
%doc NEWS README COPYING
%attr(0755,root,root) %{python3_sitelib}/lightdm_gtk_greeter_settings/*
%{python3_sitelib}/lightdm_gtk_greeter_settings-%{version}-py%{python3_version}.egg-info
%{_bindir}/%{name}*
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%__python3 setup.py build

%install
%__python3 setup.py install --root %{buildroot}

rm -rf %{buildroot}%{_datadir}/polkit-1

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2980 |21cr|lightlang-0.8.6-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

Summary:	Dictionary Shell on Qt4
Name:		lightlang
Version:	0.8.6
Release:	14
License:	GPL
Group:		Office
Url:		http://lightlang.org.ru
Source0:	lightlang-%{version}-rev990.tar.bz2
Patch0:		lightlang-force-python2.patch
BuildRequires:	mplayer
BuildRequires:	python2-devel
BuildRequires:	python2-qt4
BuildRequires:	python2-sip4-qt4
BuildRequires:	python2-xlib
BuildRequires:	qt4-common
BuildRequires:	sox
BuildRequires:	xterm
Requires:	python2
Requires:	lightlang-dict
Requires:	python2-qt4
Requires:	python2-sip4-qt4
Requires:	python2-xlib
Requires:	qt4-common
Requires:	sox

%description
LightLang is a small and powerfull dictionary shell,
writed on qt4 and has a many dictionary (ru-en and en-ru).

%files
%{_bindir}/sl
%{_bindir}/xsl
%{_bindir}/llrepo
%{_bindir}/lightlang
%{_libdir}/xsl
%{_libdir}/llrepo
%{_datadir}/applications/xsl.desktop
%{_datadir}/sl
%{_datadir}/xsl
%{_iconsdir}/hicolor/*/apps/*.png
%doc %{_docdir}/lightlang
%doc %{_mandir}/man1/*
%doc %{_mandir}/ru/man1/*

#----------------------------------------------------------------------------

%package devel
Summary:	Devel package for LightLang
Group:		Office
Requires:	%{name} = %{EVRD}

%description devel
Devel package for LightLang.

%files devel
%{_libdir}/pkgconfig/lightlang.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export PYTHON_PROG=%{__python2}
%configure --with-audio-player=mplayer --with-python-xlib-flag=yes
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2981 |21cr|lightlang-dict-0.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Dictionary for LightLang
Name: lightlang-dict
Version:	0.0.2
Release:	2
License: GPL2+
Group: Office
URL: http://code.google.com/p/lightlang/
Source: %{name}-%{version}.tar.bz2
BuildArch: noarch

Requires: lightlang

%description
Dictionary for LightLang

%prep
%setup -q

%install
%{__rm} -rf %{buildroot}
mkdir -p %{buildroot}/%{_datadir}/sl/dicts
cp ./* %{buildroot}/%{_datadir}/sl/dicts

%build

%clean
%{__rm} -rf %{buildroot}


%files
%defattr(-, root, root, 0755)
%{_datadir}/sl/dicts/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2982 |21cr|lightlang-sounds-0.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sounds for LightLang Dictionary
Name:		lightlang-sounds
Version:	0.0.1
Release:	5
License:	GPLv2+
Group:		Office
Url:		http://lightlang.org.ru
Source0:	%{name}-%{version}.tar.bz2
Requires:	lightlang
BuildArch:	noarch

%description
Sounds for LightLang Dictionary.

%files
%{_datadir}/sl/sounds/en/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/sl
mkdir %{buildroot}%{_datadir}/sl/sounds/
mkdir %{buildroot}%{_datadir}/sl/sounds/en
cp -r ./en/* %{buildroot}%{_datadir}/sl/sounds/en

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2983 |21cr|lightmediascanner-0.4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Lightweight media scanner
Name:		lightmediascanner
Version:	0.4.5.0
Release:	1
License:	LGPL
Group:		System/Libraries
Url:		http://lms.garage.maemo.org/
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vorbis)
Conflicts:	%{_lib}lightmediascanner0 < 0.4.5.0

%description
Lightweight media scanner meant to be used in not-so-powerful
devices, like embedded systems or old machines. Provides an optimized
way to recursively scan directories, handling the parser in a child
process, avoiding breaks of the main process when parsers break.
One can opt to use the single process version, but be aware that
if something bad happens during parsing, your application will suffer. 

%files
%{_libdir}/%{name}/plugins/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This package contains the dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary: 	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make LIBS="-logg"

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2984 |21cr|lightning-2.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Portable just-in-time compiler library
Name:		lightning
Version:	2.1.3
Release:	1
License:	LGPLv3+
Group:		Development/Other
Url:		http://www.gnu.org/software/lightning/
Source0:	ftp://ftp.gnu.org/gnu/lightning/%{name}-%{version}.tar.gz
BuildRequires:	texinfo
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(zlib)

%description
GNU lightning is a library that generates assembly language code at run-time;
it is very fast, making it ideal for Just-In-Time compilers, and it abstracts
over the target CPU, as it exposes to the clients a standardized RISC
instruction set inspired by the MIPS and SPARC chips.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library the GNU lightning
Group:		System/Libraries
Conflicts:	%{name} < 2.0.3
Obsoletes:	%{name} < 2.0.3

%description -n %{libname}
Shared library the GNU lightning.

%files -n %{libname}
%doc AUTHORS COPYING COPYING.LESSER NEWS README THANKS
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the GNU lightning
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 2.0.3

%description -n %{devname}
The libraries, header files and documentation for using GNU lightning.

%files -n %{devname}
%doc ChangeLog COPYING.DOC
%{_includedir}/%{name}.h
%{_includedir}/%{name}
%{_infodir}/%{name}.info*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lightning.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-gnu-ld \
	--disable-static
%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2985 |21cr|lighttable-0.8.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The next generation code editor
Name:		lighttable
Version:	0.8.1
Release:	2
License:	See credits.html
Group:		Development/Other
Url:		http://lighttable.com/
Requires:	nodejs
BuildRequires:	udev-devel
BuildRequires:	tar
BuildRequires:	gzip
AutoReqProv:	no
ExclusiveArch:	%{ix86} %{x86_64}

# Though LightTable is Open Source, currently we just repack deb packages from upstream
Source0:	https://d35ac8ww5dfjyg.cloudfront.net/playground/bins/%{version}/LightTableLinux.tar.gz
Source1:	https://d35ac8ww5dfjyg.cloudfront.net/playground/bins/%{version}/LightTableLinux64.tar.gz
Source2:	%{name}.desktop
Source3:	lticon16.png
Source4:	lticon22.png
Source5:	lticon32.png
Source6:	lticon48.png
Source7:	lticon64.png
Source8:	lticon128.png
Source9:	lticon256.png

%description
The next generation code editor

%files
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*

%post
[[ -e /%{_lib}/libudev.so.0 ]] || ln -s /%{_lib}/libudev.so.1 libudev.so.0

#----------------------------------------------------------------------------

%prep
%setup -qcT
%ifarch %{x86_64}
tar xzf %{SOURCE1}
%endif

%ifarch %{ix86}
tar xzf %{SOURCE0}
%endif

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -r * %{buildroot}%{_datadir}/%{name}/

for s in 16 22 32 48 64 128 256; do
  mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
done

install -m 0644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m 0644 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/22x22/apps/%{name}.png
install -m 0644 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 0644 %{SOURCE7} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m 0644 %{SOURCE6} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -m 0644 %{SOURCE8} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
install -m 0644 %{SOURCE9} %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications/
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_bindir}

cat > %{buildroot}%{_bindir}/lighttable <<EOF
#!/bin/sh

pushd %{_datadir}/%{name}/LightTable
./LightTable
popd

EOF

chmod a+x %{buildroot}%{_bindir}/lighttable

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2986 |21cr|lighttpd-1.4.67-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Following modules bring no additionnal dependencies
# Other ones go into separate packages
%define base_modules mod_access.so,mod_accesslog.so,mod_alias.so,mod_cgi.so,mod_dirlisting.so,mod_evhost.so,mod_expire.so,mod_extforward.so,mod_fastcgi.so,mod_indexfile.so,mod_openssl.so,mod_proxy.so,mod_redirect.so,mod_rewrite.so,mod_rrdtool.so,mod_scgi.so,mod_secdownload.so,mod_setenv.so,mod_simple_vhost.so,mod_sockproxy.so,mod_vhostdb.so,mod_wstunnel.so,mod_ssi.so,mod_staticfile.so,mod_status.so,mod_userdir.so,mod_usertrack.so,mod_evasive.so

Summary:	A fast webserver with minimal memory-footprint
Name:		lighttpd
Version:	1.4.67
Release:	1
License:	BSD
Group:		System/Servers
Url:		http://lighttpd.net/
Source0:	http://download.lighttpd.net/lighttpd/releases-1.4.x/%{name}-%{version}.tar.xz
Source2:	lighttpd.service
Source3:	php.d-lighttpd.ini
Patch0:		lighttpd-defaultroot.patch
Patch2:		lighttpd-1.4.41-ssi-index-page-fix.patch
BuildRequires:	attr-devel
BuildRequires:	bzip2-devel
BuildRequires:	gdbm-devel
BuildRequires:	mysql-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libmemcached)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua) > 5.2
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
Requires:	/var/www
Recommends:	logrotate
Requires(pre):	user(apache)
Requires(pre):	group(apache)
Provides:	webserver

%description
Security, speed, compliance, and flexibility--all of these describe LightTPD
which is rapidly redefining efficiency of a web server; as it is designed and
optimized for high performance environments. With a small memory
footprint compared to other web-servers, effective management of the
cpu-load, and advanced feature set (FastCGI, CGI, Auth,
Output-Compression, URL-Rewriting and many more) LightTPD is the
perfect solution for every server that is suffering load problems.

This packages contains the server and base modules :
%(for mod in $(echo %base_modules | tr ',' '\n'); do echo ${mod%%.so}; done)

%files -f base.list
%doc doc/config/lighttpd.conf README NEWS COPYING AUTHORS
%{_unitdir}/lighttpd.service
%dir %{_sysconfdir}/lighttpd/
%dir %{_sysconfdir}/lighttpd/conf.d/
%config(noreplace) %{_sysconfdir}/lighttpd/*.conf
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/*.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/php.d/lighttpd.ini
%attr(0755,apache,apache) %{_logdir}/lighttpd
%{_mandir}/*/*
%{_sbindir}/*

%post
# Fix rights on logs after upgrade, else the server can not start
if [ $1 -gt 1 ]; then
	if grep '^server.username = "apache"' %{_sysconfdir}/lighttpd/lighttpd.conf >/dev/null; then
		if [ `stat -c %U /var/log/lighttpd/` != "apache" ]; then
			chown -R apache /var/log/lighttpd/
		fi
	fi
fi

%systemd_post %{name}.service

#----------------------------------------------------------------------------

%package mod_auth
Summary:	Authentification module for %{name}
Group:		System/Servers
Requires:	%{name}
Requires:	%{name}-mod_authn_file = %{EVRD}

%description mod_auth
lighttpd supportes both authentication method described by RFC 2617:

 - basic
 - digest

Depending on the method lighttpd provides various way to store the credentials
used for the authentication.

for basic auth:
 - plain
 - htpasswd
 - htdigest
 - ldap

for digest auth:
 - plain
 - htdigest

%files mod_auth -f mod_auth
%{_libdir}/%{name}/mod_auth.so

#----------------------------------------------------------------------------

%package mod_authn_file
Summary:	Authentication module for lighttpd that uses files
Group:		System/Servers
Requires:	%{name}

%description mod_authn_file
Authentication module for lighttpd that uses files.

%files mod_authn_file
%doc AUTHORS README
%{_libdir}/%{name}/mod_authn_file.so

#----------------------------------------------------------------------------

%package mod_authn_ldap
Summary:	Authentication module for lighttpd that uses a LDAP
Group:		System/Servers
Requires:	%{name}

%description mod_authn_ldap
Authentication module for lighttpd that uses a LDAP.

%files mod_authn_ldap
%doc AUTHORS README
%{_libdir}/%{name}/mod_authn_ldap.so
%{_libdir}/%{name}/mod_vhostdb_ldap.so
#----------------------------------------------------------------------------

%if 0
%package mod_authn_gssapi
Summary:	Authentication module for lighttpd that uses GSSAPI (Kerberos)
Group:		System/Servers
Requires:	%{name}

%description mod_authn_gssapi
Authentication module for lighttpd that uses GSSAPI (Kerberos)

%files mod_authn_gssapi
%doc AUTHORS README
%{_libdir}/%{name}/mod_authn_gssapi.so
%endif

#----------------------------------------------------------------------------

%package mod_ajp13
Summary:	Apache JServ Protocol version 1.3 (AJP13) gateway
Group:		System/Servers
Requires:	%{name}

%description mod_ajp13
mod_ajp13 is a gateway implementing Apache JServ Protocol version 1.3 (AJP13).

%files mod_ajp13
%{_libdir}/%{name}/mod_ajp13.so

#----------------------------------------------------------------------------
%package mod_deflate
Summary:	Output Compression module for %{name}
Group:		System/Servers
Requires:	%{name}

%description mod_deflate
Output compression reduces the network load and can improve the
overall throughput of the webserver.

mod_deflate differs from mod_compress in that mod_deflate can compress
any output from lighttpd static or dynamic. mod_deflate does not support
caching compressed output like mod_compress.

%files mod_deflate
%doc AUTHORS README
%{_libdir}/%{name}/mod_deflate.so
#%%{_sysconfdir}/cron.daily/lighttpd-mod_compress-clean
#%%dir %attr(0750,apache,apache) /var/cache/%{name}/compress

#----------------------------------------------------------------------------

%package mod_vhostdb_mysql
Summary:	MySQL-based vhosting module for %{name}
Group:		System/Servers
Requires:	%{name}

%description mod_vhostdb_mysql
With MySQL-based vhosting you can store the path to a given
host's document root in a MySQL database.

%files mod_vhostdb_mysql
%{_libdir}/%{name}/mod_vhostdb_mysql.so

#----------------------------------------------------------------------------

%package mod_webdav
Summary:	WebDAV module for %{name}
Group:		System/Servers
Requires:	%{name}

%description mod_webdav
The WebDAV module for %{name} is a very minimalistic implementation of RFC
2518.

%files mod_webdav -f mod_webdav
%{_libdir}/%{name}/mod_webdav.so

#----------------------------------------------------------------------------

%package mod_magnet
Summary:	Module to control the request handling in %{name}
Group:		System/Servers
Requires:	%{name}

%description mod_magnet
mod_magnet can attract a request in several stages in the request-handling.

* either at the same level as mod_rewrite, before any parsing of the URL is
  done
* or at a later stage, when the doc-root is known and the physical-path is
  already setup

Keep in mind that the magnet is executed in the core of lighty. EVERY long-
running operation is blocking ALL connections in the server. You are warned.
For time-consuming or blocking scripts use mod_fastcgi and friends.

%files mod_magnet -f mod_magnet
%{_libdir}/%{name}/mod_magnet.so

#----------------------------------------------------------------------------

%package mod_uploadprogress
Summary:	Upload progress tracking module for %{name}
Group:		System/Servers
Requires:	%{name}

%description mod_uploadprogress
Upload progress tracking module for %{name}.

%files mod_uploadprogress
%doc AUTHORS README
%{_libdir}/%{name}/mod_uploadprogress.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--libdir=%{_libdir}/%{name}/ \
	--with-attr \
	--with-bzip2 \
	--with-fam \
	--with-ldap \
	--with-lua \
	--with-mysql \
	--with-openssl \
	--with-pcre \
	--with-webdav-props

%make

%install
%makeinstall_std

install -Dm 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service

install -Dm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/php.d/lighttpd.ini

install -d -m 755 %{buildroot}%{_sysconfdir}/lighttpd
install -d -m 755 %{buildroot}%{_sysconfdir}/lighttpd/conf.d
install -m 644 doc/config/*.conf %{buildroot}%{_sysconfdir}/lighttpd
install -m 644 doc/config/conf.d/*.conf %{buildroot}%{_sysconfdir}/lighttpd/conf.d

install -d -m 750 %{buildroot}%{_var}/lib/lighttpd/sockets

sed -i \
	-e 's!^server.username\s*=.*$!server.username = "apache"!;' \
	-e 's!^server.groupname\s*=.*$!server.groupname = "apache"!;' \
	-e 's!^var.server_root\s*=.*$!var.server_root = "%{_var}/www"!;' \
	-e 's!^server.document-root\s*=.*$!server.document-root = "%{_var}/www/html"!;' \
	-e 's!^server.errorlog\s*=.*$!server.errorlog = "%{_logdir}/lighttpd/error.log"!;' \
	%{buildroot}%{_sysconfdir}/lighttpd/lighttpd.conf

sed -i \
	-e 's!^accesslog.filename.*$!accesslog.filename = "%{_logdir}/lighttpd/access.log"!' \
	%{buildroot}%{_sysconfdir}/lighttpd/conf.d/access_log.conf

sed -i \
	-e '/cgi.fix_pathinfo/d' \
	%{buildroot}%{_sysconfdir}/lighttpd/conf.d/fastcgi.conf

sed -i \
	-e 's!\(.*\"bin-path\"\).*php5.*!\1 => \"/usr/bin/php-fcgi",!g' \
	%{buildroot}%{_sysconfdir}/lighttpd/conf.d/fastcgi.conf

cat >lighttpd-mod_compress-clean <<EOF
#!/bin/bash
[[ -f %{_sysconfdir}/sysconfig/lighttpd ]] && . %{_sysconfdir}/sysconfig/lighttpd
find /var/cache/%{name}/compress -type f -mtime +\${LIGHTTPD_COMPRESS_CACHE_DAYS:-10} -delete
EOF

#mod_compress split with mod_deflate (see NEWS) need test, may be need cron and dir for mod_deflate?
#install -D -m 755 lighttpd-mod_compress-clean %{buildroot}%{_sysconfdir}/cron.daily/lighttpd-mod_compress-clean
#mkdir -p %{buildroot}/var/cache/%{name}/compress

mkdir -p %{buildroot}%{_logdir}/lighttpd

install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
%{_logdir}/%{name}/*.log {
    size=20M
    rotate 5
    weekly
    missingok
    notifempty
    postrotate
        service %{name} reload
    endscript
}
EOF

echo %{_libdir}/%{name}/{%{base_modules}} | tr ' ' '\n' > base.list
for i in doc/outdated/*.txt
do
	mod=`cat "$i" | tr -d '\\r' | sed -n "s/^Module:.*\\(mod_.*\\)$/\\1/p"`
	if [ -z "$mod" ]
	then
		echo  "%doc $i" >> base.list
	else
		if echo "%{base_modules}" | grep "$mod" > /dev/null
		then
			echo "%doc $i" >> base.list
		else
			echo "%doc $i" >> "$mod"
		fi
	fi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2987 |21cr|lightyears-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname 20kly

Name:		lightyears
Version:	1.5.0
Release:	1
Group:		Games/Puzzles
License:	GPLv2
Summary:	Manage a steam supply network
Url:		http://www.jwhitham.org/20kly
Source0:	https://github.com/20kly/20kly/archive/refs/tags/v%{version}/%{oname}-%{version}.tar.gz
Patch0: 	lightyears-rosagames.patch
BuildRequires:	imagemagick
BuildRequires:	python3
Requires:	pygame
BuildArch:	noarch

%description
20,000 Light Years Into Space is a steampunk-themed strategy game where
you have to manage a steam supply network. It is written in Python and
runs on Windows and Linux. It was first released in 2006, and won second
prize in the Pyweek game programming competition.

%files
%doc *.txt manual.pdf
%{_gamesdatadir}/%{name}
%{_gamesbindir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
#----------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p0


%build
python3 -m compileall lib20k

%install
# game data
export DATADIR="%{buildroot}/%{_gamesdatadir}/%{name}/"
# install code
install -D -d -m 755 "$DATADIR/code"
touch "$DATADIR/code/__init__.py"
cp -Ra lib20k "$DATADIR/"

# data
install -D -d -m 755 "$DATADIR/data"
install -D -m 644 data/* "$DATADIR/data"

# game binary
install -D -m 755 %{name} %{buildroot}%{_gamesbindir}/%{name}

# icons 
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size -background transparent -gravity Center data/city1_png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Comment=%{summary}
Name=20,000 Light Years Into Space
GenericName=Simple strategy game
Type=Application
Exec=%{name}
Icon=%{name}
Terminal=false
Categories=Game;StrategyGame;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2988 |21cr|lilypond-2.23.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#global	__requires_exclude guile1.8

Summary:	A typesetting system for music notation
Name:		lilypond
Version:	2.23.3
Release:	1
Group:		Publishing
License:	GPLv3+
Group:		Publishing
Url:		http://www.lilypond.org
Source0:	https://lilypond.org/download/sources/v2.23/%{name}-%{version}.tar.gz
Patch0:		lilypond-2.21.2-gcc44-relocate.patch
BuildRequires:	bison >= 2.0
BuildRequires:	dblatex
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	ghostscript >= 8.60
BuildRequires:	imagemagick
BuildRequires:	mftrace >= 1.1.19
BuildRequires:	netpbm
BuildRequires:	rsync
BuildRequires:	t1utils
BuildRequires:	texi2html
BuildRequires:	texinfo >= 4.11
BuildRequires:	texlive
BuildRequires:	texlive-epsf
BuildRequires:	texlive-metafont.bin
BuildRequires:	texlive-metapost.bin
BuildRequires:	texlive-metapost
BuildRequires:	texlive-tex-gyre
BuildRequires:	texlive-xetex
BuildRequires:	texlive-texmf-fonts
BuildRequires:	texlive-collection-langcyrillic
BuildRequires:	tidy
BuildRequires:	zip
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fontconfig) >= 2.4.0
BuildRequires:	pkgconfig(glib-2.0) >= 2.38
BuildRequires:	pkgconfig(guile-2.2) >= 2.0
BuildRequires:	pkgconfig(pango) >= 1.12.0
BuildRequires:	pkgconfig(pangoft2) >= 1.38.0
BuildRequires:	pkgconfig(python3) >= 2.4.0
Requires:	ghostscript >= 8.15
Requires:	guile >= 2.0
Requires:	lilypond-emmentaler-fonts = %{EVRD}
Requires:	lilypond-texgyre-fonts = %{EVRD}
%rename	lilypond-fonts

%description
LilyPond is an automated music engraving system. It formats music
beautifully and automatically, and has a friendly syntax for its input
files.

%files -f %{name}.lang
%doc AUTHORS.txt COPYING DEDICATION HACKING INSTALL.txt
%doc NEWS.txt README.md ROADMAP VERSION
%{_bindir}/*
#%%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/emacs/site-lisp
%{_datadir}/vim/*/*
%{_infodir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

# These fonts replace the Century schoolbook L ones
%package texgyre-fonts
Summary:	Tex Gyre fonts for %{EVRD}
Requires:	lilypond-fonts-common = %{EVRD}
BuildArch:	noarch

%description texgyre-fonts
LilyPond is an automated music engraving system. It formats music
beautifully and automatically, and has a friendly syntax for its input
files.
These are the Tex Gyre fonts needed by %{name}.

%files texgyre-fonts
%doc COPYING
%{_datadir}/fonts/OTF/texgyre*.otf

#-----------------------------------------------------------------------------

%package emmentaler-fonts
Summary:	Lilypond emmentaler fonts
Requires:	lilypond-fonts-common = %{EVRD}
BuildArch:	noarch

%description emmentaler-fonts 
LilyPond is an automated music engraving system. It formats music
beautifully and automatically, and has a friendly syntax for its input
files.
These are the emmentaler fonts included in the package.

%files emmentaler-fonts
%doc COPYING
%{_datadir}/fonts/OTF/emmentaler-*.otf

#-----------------------------------------------------------------------------

%package fonts-common
Summary:	Lilypond fonts common dir
%rename	lilypond-aybabtu-fonts
%rename	lilypond-centuryschl-fonts
%rename	lilypond-century-schoolbook-l-fonts
%rename	lilypond-feta-fonts
%rename	lilypond-feta-alphabet-fonts
%rename	lilypond-feta-braces-fonts
%rename	lilypond-parmesan-fonts

BuildArch:	noarch

%description fonts-common
LilyPond is an automated music engraving system. It formats music
beautifully and automatically, and has a friendly syntax for its input
files.
This package contains the directory common to all lilypond fonts.

%files fonts-common
%doc COPYING
%dir %{_datadir}/fonts/OTF

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
#./autogen.sh --noconfigure
%configure	--disable-checking \
		--with-texgyre-dir="%{_datadir}/texmf-dist/fonts/opentype/public/tex-gyre/"

%make all

%install
%makeinstall_std package_infodir=%{_infodir} vimdir=%{_datadir}/vim

# Symlink lilypond-init.el in emacs' site-start.d directory
pushd %{buildroot}%{_datadir}/emacs/site-lisp
	mkdir site-start.d
	ln -s ../%{name}-init.el site-start.d
popd

# Change encoding to UTF8
pushd %{buildroot}%{_infodir}
	iconv -f iso-8859-1 -t utf-8 music-glossary.info > music-glossary.info.utf8
	mv music-glossary.info.utf8 music-glossary.info
	sed -e s,lilypond/,, -i *.info
popd

# Drop unused dir
rm -f %{buildroot}%{_infodir}/dir

# We would like to have all the provided .otf font files in %%{_datadir}/fonts/OTF
mkdir -p %{buildroot}%{_datadir}/fonts/OTF
mv %{buildroot}%{_datadir}/%{name}/%{version}/fonts/otf/*.otf %{buildroot}%{_datadir}/fonts/OTF/
rmdir %{buildroot}%{_datadir}/%{name}/%{version}/fonts/otf
ln -s %{_datadir}/fonts/OTF %{buildroot}%{_datadir}/%{name}/%{version}/fonts/otf

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/%{version}/python/langdefs.py
#chmod +x %%{buildroot}%%{_libdir}/%%{name}/%%{version}/python/midi.so

%find_lang %{name}

#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{lilypond-book,lilysong,midi2ly,lilymidi,abc2ly,etf2ly,musicxml2ly,convert-ly}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2989 |21cr|limecv-0.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           limecv
Version:        0.1.8
Release:        1
Summary:        A (Xe/Lua)LaTeX document class for curriculum vitae
Group:          Publishing
URL:            http://www.ctan.org/tex-archive/macros/latex/contrib/limecv
License:        LPPL1.3c
Source0:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/limecv.tar.xz
Source1:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/limecv.doc.tar.xz
Source2:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/limecv.source.tar.xz
BuildArch:      noarch
BuildRequires:  texlive-tlpkg
Requires(pre):  texlive-tlpkg
Requires(post): texlive-kpathsea

%description
limecv is a (Xe/Lua)LaTeX document class to write curriculum
vitae. It is designed with the following design rules: simple,
elegant and clean. To this end, it offers several environments
and macros for convenience.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2990 |21cr|LimeSuite-22.09.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 22
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:		LimeSuite
Version:	22.09.0
Release:	1
Summary:	Collection of software supporting LMS7-based hardware
License:	Apache-2.0
Group:		Sciences/Other
URL:		https://myriadrf.org/projects/lime-suite/
#Git-Clone:	https://github.com/myriadrf/LimeSuite.git
Source0:	https://github.com/myriadrf/LimeSuite/archive/v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	gnuplot
BuildRequires:	wxgtku3.0-devel
BuildRequires:	pkgconfig(SoapySDR)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(glu)

%description
Lime Suite is a collection of software supporting several hardware
platforms including the LimeSDR, drivers for the LMS7002M transceiver
RFIC, and other tools for developing with LMS7-based hardware. Lime
Suite enables many SDR applications, such as GQRX for example, to
work with supported hardware through the bundled SoapySDR support
module.

%files
%license COPYING
%{_bindir}/LimeUtil
%{_bindir}/LimeSuiteGUI
%{_bindir}/LimeQuickTest
%dir %{_datadir}/Lime
%{_datadir}/Lime/Desktop
%{_udevrulesdir}/64-limesuite.rules

#------------------------------------------------------------------
%package -n %{libname}
Summary:	Library for Lime Suite
Group:		System/Libraries

%description -n %{libname}
Lime Suite is a collection of software supporting several hardware
platforms and other tools for developing with LMS7-based hardware.

%files -n %{libname}
%{_libdir}/libLimeSuite.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libLimeSuite
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
Libraries and header files for developing applications that want to make
use of libLimeSuite.

%files -n %{devname}
%{_libdir}/libLimeSuite.so
%{_includedir}/lime
%{_libdir}/pkgconfig/LimeSuite.pc
%{_libdir}/cmake/LimeSuite/

#------------------------------------------------------------------

%package -n soapysdr-module-lms7
Summary:	SoapySDR LMS7 support module
Group:		Sciences/Other

%description -n soapysdr-module-lms7
Soapy LMS7 - LimeSDR device support for Soapy SDR.
A Soapy module that supports LimeSDR devices within the Soapy API.

%files -n soapysdr-module-lms7
%dir %{_libdir}/SoapySDR
%dir %{_libdir}/SoapySDR/modules0.8
%{_libdir}/SoapySDR/modules0.8/libLMS7Support.so

#------------------------------------------------------------------

%package doc
Summary:	Documentation for LimeSuite
Group:		Documentation

%description doc
Documentation for LimeSuite

%files doc
%doc Changelog.txt README.md

#------------------------------------------------------------------

%prep
%autosetup

# HACK: set udev permissions to 666
sed -i 's|MODE="660"|MODE="666"|g' udev-rules/64-limesuite.rules

%build
export CC=gcc
export CXX=g++
%cmake \
  -DBUILD_SHARED_LIBS=ON \
  -DCMAKE_AUTOSET_INSTALL_RPATH=FALSE \
  -DUDEV_RULES_PATH=%{_udevrulesdir} \
%ifarch %{x86_64}
  -DENABLE_SIMD_FLAGS="SSE3" \
%else
  -DENABLE_SIMD_FLAGS="none" \
%endif
  -DLIME_SUITE_EXTVER=release
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2991 |21cr|lincity-ng-2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lincity - A City Simulation Game
Name:		lincity-ng
Version:	2.9
Release:	1
License:	GPLv2+
Group:		Games/Other
Url:		http://lincity-ng.berlios.de/
Source0:	http://freefr.dl.sourceforge.net/project/lincity-ng.berlios/lincity-ng-%{version}.beta.tar.bz2
BuildRequires:	imagemagick
BuildRequires:	jam
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(zlib)
Provides:	lincity = %{EVRD}

%description
Lincity is a city simulation game. Build your city up from a primitive village
to an advanced civilization. Build a sustainable economy, or build rockets to
escape from a pollution ridden and resource starved planet.

LinCity-NG is a polished and improved version of the classic LinCity game with
a new iso-3D graphics engine, with a completely redone and modern GUI.

%files
%doc COPYING* README RELNOTES TODO
%{_gamesbindir}/*
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_gamesdatadir}/%{name}
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}.beta

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir} \
	--with-gzip \
	--with-svga \
	--with-x \
	--disable-rpath
jam %{_smp_mflags}

%install
DESTDIR=%{buildroot} jam install
mkdir -p %{buildroot}%{_miconsdir}
convert -size 48x48 data/%{name}.png %{buildroot}%{_miconsdir}/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}
convert -size 32x32 data/%{name}.png %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_liconsdir}
convert -size 16x16 data/%{name}.png %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
mv %{buildroot}%{_gamesdatadir}/applications/* %{buildroot}%{_datadir}/applications

mkdir -p %{buildroot}%{_datadir}/pixmaps
mv %{buildroot}%{_gamesdatadir}/pixmaps/* %{buildroot}%{_datadir}/pixmaps

rm -fr %{buildroot}%{_gamesdatadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2992 |21cr|linesrv-2.1.21-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Line Control Server
Name:		linesrv
Version:	2.1.21
Release:	14
# debian/copyright in the source suggests GPLv2 specifically applies
License:	GPLv2+
Group:		Networking/Other
Url:		http://linecontrol.sourceforge.net
Source0:	%{name}-%{version}.src.tar.bz2
Source1:	linesrv.init.bz2
Source2:	linesrv.conf.bz2
Source3:	linesrv-scripts.tar.bz2
Source4:	linesrv.conf.documentation.bz2
Patch0:		linesrv-2.1.21-debian-syslog_header.patch
Patch1:		linesrv-2.1.21-str-fmt.patch
# isdn.h now in include/config and its empty file
Patch2:		linesrv-remove-isdn.patch
Requires(pre):	rpm-helper
BuildRequires:	pam-devel
BuildRequires:	mysql-devel

%description
The line control system will allow authorized LAN users to manipulate
the network interface (usually a modem) that gives the Internet
access on a Linux box without having to use telnet. It's based on
a client/server approach so any TCP/IP enabled system should be able
to take advantage of this server, if a client is written for it.
Currently; Linux, Windows, NetBSD, and any system with a Java
implementation or Web Browser have clients.

Note: Please make changes to /etc/lineserv.conf.

%files
%config(noreplace) %{_sysconfdir}/pam.d/*
%config(noreplace) %{_initrddir}/%{name}
%{_sbindir}/%{name}
%{_libdir}/%{name}
%{_localstatedir}/log/%{name}
%doc AUTHORS server/INSTALL server/COPYING server/NEWS server/README
%doc server/LICENSE INSTALL.lclog linesrv.conf.documentation
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package web
Summary:	Line Control Server - Web Status
Group:		Networking/Other
Requires:	webserver
Requires:	linesrv

%description web
The line control system will allow authorized LAN users to manipulate
the network interface (usually a modem) that gives the Internet
access on a Linux box without having to use telnet. It's based on
a client/server approach so any TCP/IP enabled system should be able
to take advantage of this server, if a client is written for it.
Currently; Linux, Windows, NetBSD, and any system with a Java
implementation or Web Browser have clients.

This package provides web-based status report of the line.

%files web
%{_localstatedir}/www/html/lclog/
%attr(4750,root,apache) %{_localstatedir}/www/cgi-bin/*
%dir %{_localstatedir}/lib/%{name}
%attr(640,root,apache) %{_localstatedir}/lib/%{name}/htmlstatus
%doc htmlstatus/README

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%(echo %{version}|cut -f1-2 -d.) -a3
%patch0 -p1 -b .header
%patch1 -p0 -b .str
%patch2 -p1

cp %{SOURCE4} .
bunzip2 `basename %{SOURCE4}`

%build
%configure --enable-ignore-isdn
%make

%install
mkdir -p %{buildroot}{%{_sbindir},%{_bindir}}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
mkdir -p %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_localstatedir}/www/cgi-bin/
install -m 755 server/%{name} %{buildroot}%{_sbindir}/
install -m 755 lclog/lclog %{buildroot}%{_localstatedir}/www/cgi-bin/
install -m 4755 htmlstatus/htmlstatus %{buildroot}%{_localstatedir}/www/cgi-bin/
bzcat %{SOURCE1} > %{buildroot}%{_initrddir}/%{name}
chmod 755 %{buildroot}/%{_initrddir}/%{name}
install -m664 server/config/pam.d/l*  %{buildroot}/%{_sysconfdir}/pam.d/

bzcat %{SOURCE2} > %{buildroot}%{_sysconfdir}/%{name}.conf
install -d -m755 %{buildroot}%{_sysconfdir}/%{name}
install -m644 server/config/complete_syntax/addr_book %{buildroot}%{_sysconfdir}/%{name}
install -m644 server/config/complete_syntax/tarif.conf %{buildroot}%{_sysconfdir}/%{name}

# scripts
install -m755 scripts/*  %{buildroot}%{_libdir}/%{name}

#web stuff
install -d %{buildroot}%{_localstatedir}/www/html/lclog
install lclog/html/* %{buildroot}%{_localstatedir}/www/html/lclog/
install -d %{buildroot}%{_localstatedir}/lib/%{name}
mknod %{buildroot}%{_localstatedir}/lib/%{name}/htmlstatus p

#logs:
install -d %{buildroot}%{_localstatedir}/log/%{name}

#fix docs:
cp htmlstatus/README README.htmlstatus 
cp lclog/INSTALL INSTALL.lclog

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2993 |21cr|lingot-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname lingot %{major}
%define	devname	%mklibname -d lingot

Summary:	A musical instrument tuner
Name:		lingot
Version:	1.1.1
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://www.nongnu.org/lingot/
Source0:	https://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	intltool >= 0.23
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.10
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libpulse-simple)
Conflicts:	%{name} <= 0.9.1

%description
LINGOT is a musical instrument tuner. It's accurate, easy to use, and highly
configurable. Originally conceived to tune electric guitars, it can now be
used to tune other instruments.
It looks like an analogue tuner, with a gauge indicating the relative shift to
a certain note, found automatically as the closest note to the estimated
frequency.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README README.config
%{_bindir}/%{name}
%{_datadir}/applications/org.nongnu.%{name}.desktop
%{_datadir}/metainfo/org.nongnu.%{name}.appdata.xml
%{_iconsdir}/hicolor/scalable/apps/org.nongnu.%{name}.svg
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library used by %{name}
Group:		System/Libraries

%description  -n %{libname}
LINGOT is a musical instrument tuner. It's accurate, easy to use, and highly
configurable. Originally conceived to tune electric guitars, it can now be
used to tune other instruments.
This package contains the main library used by %{name}.

%files    -n %{libname}
%doc COPYING
%{_libdir}/liblingot.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/C

%description  -n %{devname}
LINGOT is a musical instrument tuner. It's accurate, easy to use, and highly
configurable. Originally conceived to tune electric guitars, it can now be
used to tune other instruments.
This package contains the files needed to build against %{libname}.

%files    -n %{devname}
%doc COPYING
%{_includedir}/%{name}/lingot-*.h
%{_libdir}/liblingot.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure	--with-alsa \
				--with-fftw \
				--with-jack \
				--with-pulseaudio
%make


%install
%makeinstall_std

# Drop docs: we pick them with our macro
rm -rf %{buildroot}%{_docdir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2994 |21cr|linkchecker-10.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Check HTML documents for broken links
Name:		linkchecker
Version:	10.1.0
Release:	1
License:	GPLv2+
Group:		Networking/WWW
Url:		https://github.com/linkchecker/linkchecker
Source0:	https://github.com/linkchecker/linkchecker/releases/download/v%{version}/LinkChecker-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
 Features:
  o recursive checking
  o multithreaded
  o output can be colored or normal text, HTML, SQL, CSV or a sitemap
    graph in GML or XML
  o HTTP/1.1, FTP, mailto:, nntp:, news:, Gopher, Telnet and local 
    file links are supported
  o restrict link checking with regular expression filters for URLs
  o proxy support
  o give username/password for HTTP and FTP authorization
  o robots.txt exclusion protocol support 
  o i18n support
  o command line interface
  o (Fast)CGI web interface (requires HTTP server)

%files
%config(noreplace) %{_sysconfdir}/*
%{_bindir}/*
%{python3_sitelib}/*
%{_datadir}/%{name}
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n LinkChecker-%{version}

%build
%py3_build

%install
%py3_install

install -d %{buildroot}%{_sysconfdir}
mv %{buildroot}%{_datadir}/linkchecker/linkcheckerrc %{buildroot}%{_sysconfdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2995 |21cr|link-grammar-4.8.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	A syntactic parser of English
Name:		link-grammar
Version:	4.8.5
Release:	6
Group:		Office
License:	BSD-like
Url:		http://www.link.cs.cmu.edu/link/
Source0:	http://www.abisource.com/downloads/link-grammar/%{version}/%{name}-%{version}.tar.gz

%description
The Link Grammar Parser is a syntactic parser of English, based
on link grammar, an original theory of English syntax. Given a
sentence, the system assigns to it a syntactic structure, which
consists of a set of labeled links connecting pairs of words.
The parser also produces a "constituent" representation of a
sentence (showing noun phrases, verb phrases, etc.).

%files
%doc LICENSE README
%{_bindir}/*
%{_datadir}/link-grammar/*
%{_mandir}/man1/link-parser.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A syntactic parser of English
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Support files necessary to compile applications with link-grammar
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and header files necessary to compile applications using
link-grammar.

%files -n %{devname}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/link-grammar.pc
%{_includedir}/link-grammar/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2996 |21cr|links-2.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lynx-like text WWW browser
Name:		links
Version:	2.16
Release:	1
License:	GPLv2+
Group:		Networking/WWW
Url:		http://links.twibright.com/
Source0:	http://links.twibright.com/download/%{name}-%{version}.tar.bz2
Source4:	%{name}.cfg
Patch1:		%{name}-2.16-no-weird-unhx-ing-of-command-line-args.patch
Patch2:		%{name}-2.16-cookies-save.patch
Patch3:		%{name}-2.16-current-color-by-default-and-vt100-frames.patch
Patch4:		%{name}-2.16-fix-for-newer-automake.patch
Patch5:		%{name}-2.16-fix-segfault-on-loading-cookies.patch
Patch6:		%{name}-2.16-64bit-fixes.patch
Patch7:		%{name}-2.16-dont-have-two-assocations-with-same-label-otherwise-one-cant-override-shared-config.patch
Patch8:		%{name}-2.16-CVE-2006-5925-disable-SMB.patch
Patch9:		%{name}-2.16-better-cert-verification.patch

BuildRequires:	bzip2-devel
BuildRequires:	gomp-devel
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(directfb) >= 0.9.17
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Provides:	webclient
Requires:	%{name}-common = %{EVRD}

%description
Links is a text based WWW browser, at first look similar to Lynx, but
somehow different:
- renders tables and frames
- displays colors as specified in current HTML page
- uses drop-down menu (like in Midnight Commander)
- can download files in background
- partially handle Javascript.

%files
%doc AUTHORS ChangeLog README SITES
%{_bindir}/%{name}-text

%post
update-alternatives --install /usr/bin/%{name} %{name} /usr/bin/%{name}-text 10

%postun
if [ "$1" = "0" ]; then
  update-alternatives --remove %{name} /usr/bin/%{name}-text
fi

%triggerpostun -- links
if [ ! -e /usr/bin/%{name} ]; then
  update-alternatives --auto %{name}
fi

#----------------------------------------------------------------------------

%package graphic
Summary:	Lynx-like text/X11 WWW browser
Group:		Networking/WWW
Requires:	%{name}-common = %{EVRD}
Provides:	webclient
Requires:	indexhtml

%description graphic
Links is a text/X11 based WWW browser, at first look similar to Lynx, but
somehow different:
- renders tables and frames
- displays colors as specified in current HTML page
- uses drop-down menu (like in Midnight Commander)
- can download files in background
- partially handle Javascript.

%files graphic
%doc AUTHORS ChangeLog README SITES
%{_bindir}/%{name}-graphic
%{_datadir}/applications/*

%post graphic
update-alternatives --install /usr/bin/%{name} %{name} /usr/bin/%{name}-graphic 20

%postun graphic
if [ "$1" = "0" ]; then
  update-alternatives --remove %{name} /usr/bin/%{name}-graphic
fi

%triggerpostun graphic -- links
if [ ! -e /usr/bin/%{name} ]; then
  update-alternatives --auto %{name}
fi

#----------------------------------------------------------------------------

%package common
Summary:	Lynx-like text/X11 WWW browser
Group:		Networking/WWW
Requires:	%{name}-common = %{EVRD}

%description common
Common files for links and links-graphic.

%files common
%doc AUTHORS ChangeLog README SITES
%config(noreplace) /etc/%{name}.cfg
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Convert to utf-8
for file in AUTHORS ChangeLog; do
	iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
	touch -r $file $file.new && \
	mv $file.new $file
done


%build
autoreconf -fiv
%configure
%make

cp -f %{name} %{name}-text

make clean
%configure --enable-graphics
%make

cp -f %{name} %{name}-graphic


%install
%makeinstall_std

# Remove newly built binary...
rm -f %{buildroot}%{_bindir}/%{name}
# ... and install our ones
install %{name}-graphic %{name}-text %{buildroot}%{_bindir}

# Install config file
install -D -m 644 %{SOURCE4} %{buildroot}/etc/%{name}.cfg

# Provide a .desktop file for the links-graphic binary
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Links
Comment=Lynx-like text/graphic Web browser
Exec=/usr/bin/links-graphic /usr/share/branding-configs/fresh/index.html
Icon=web_browser_section
Terminal=false
Type=Application
Categories=Network;WebBrowser;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2997 |21cr|linksysmon-1.1.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for monitoring Linksys BEFSR41 and BEFSR11 firewalls

Name:		linksysmon
Version:	1.1.4
Release:	9
License:	GPL or Artistic
Group:		System/Servers
URL:		http://woogie.net/projects/linksysmon/
Source0:	http://woogie.net/projects/linksysmon/attachment/wiki/WikiStart/%{name}-%{version}.tar.bz2
Source1:	linksysmon.init.bz2
Source2:	linksysmon.sysconfig.bz2
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires:	perl-devel
Requires:	net-snmp
Requires:	net-snmp-utils
Requires:	net-snmp-trapd
BuildArch:	noarch

%description
linksysmon is a tool for monitoring Linksys BEFSR41 and BEFSR11
firewalls under Linux and other Unix-like operating systems (I
specify Linux because that is what I used to develop it, and the
only one I know for sure works). It accepts log mesages from the
Linksys, and logs the messages to /var/log/linksys.log. It handles
the standard activity logs, as well as the "secret" extended
logging, and can handle logs from multiple firewalls. When using
extended logging, it can detect external IP address changes (if
you are using either DHCP or PPPOE) and can call an external
program to process the change.

%prep

%setup -q -n %{name}-%{version}

bzcat %{SOURCE1} > linksysmon.init
bzcat %{SOURCE2} > linksysmon.sysconfig

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor


%make
make test

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/cron.daily
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sbindir}

%makeinstall_std

install -m0755 linksysmon.init %{buildroot}%{_initrddir}/linksysmon
install -m0644 linksysmon.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/linksysmon

install -m0644 etc/linksysmon.conf %{buildroot}%{_sysconfdir}/linksysmon.conf
install -m0755 etc/cron.daily/linksysmon-report %{buildroot}%{_sysconfdir}/cron.daily/linksysmon-report

install -m0755 usr/sbin/linksysmon %{buildroot}%{_sbindir}/
install -m0755 usr/sbin/linksysmon-ez-ipupdate %{buildroot}%{_sbindir}/
install -m0755 usr/sbin/linksysmon-ipchange %{buildroot}%{_sbindir}/
install -m0755 usr/sbin/linksysmon-report %{buildroot}%{_sbindir}/
install -m0755 usr/sbin/linksysmon-watch %{buildroot}%{_sbindir}/

# install log rotation stuff
cat > %{buildroot}%{_sysconfdir}/logrotate.d/linksysmon << EOF
/var/log/linksys.log {
    missingok
    postrotate
	%{_initrddir}/linksysmon restart > /dev/null || /bin/true
    endscript
}
EOF

%post
%_post_service linksysmon

%preun
%_preun_service linksysmon

%clean 
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%doc BUGS CHANGELOG COPYING INSTALL README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/linksysmon.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/linksysmon
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/linksysmon
%attr(0755,root,root) %{_sysconfdir}/cron.daily/linksysmon-report
%attr(0755,root,root) %{_initrddir}/linksysmon
%attr(0755,root,root) %{_sbindir}/*
%attr(0644,root,root) %{perl_vendorlib}/linksysmon.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2998 |21cr|linssid-3.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical wireless scanner
Name:		linssid
Version:	3.6
Release:	6
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://sourceforge.net/projects/linssid/
Source0:	http://sourceforge.net/projects/linssid/files/LinSSID_%{version}/%{name}_%{version}.orig.tar.gz
Source1:	linssid_ru.qm
Patch0:		linssid-qwt620.patch
Patch1:		linssid-3.6-translate.patch
# For rsvg-convert
BuildRequires:	librsvg
BuildRequires:	boost-devel
BuildRequires:	qwt-qt5-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	usermode-consoleonly

%description
LinSSID is a graphical program that displays locally receivable 802.11
wireless attach points and ad hoc networks.

A table is displayed with various parameters such as MAC address, channel,
and signal strength. Graphs are also displayed with signal strength by
channel and signal strength over time.

LinSSID is graphically and functionally similar to inSSIDer (for Microsoft
Windows) and Wifi Analyzer (for Android).

LinSSID can be used to measure the local perfomance or to search for an
interference free channel to be set in a wireless router (access point).
The wireless established link won't be affected by these operations because
LinSSID needn't set the monitor mode in network interface.

%files
%{_bindir}/%{name}
%{_bindir}/linssid-pkexec
%{_sbindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/*.svg
%{_datadir}/polkit-1/actions/com.warsev.pkexec.linssid.policy
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i 's|/usr/include/qwt|%{_qt5_includedir}/qwt|' linssid-app/linssid-app.pro
sed -i 's|/usr/lib|%{_libdir}|' linssid-app/linssid-app.pro

%build
%qmake_qt5
%make

%install
make install INSTALL_ROOT=%{buildroot} STRIP=true

cat > %{name}.pam <<EOF
#%PAM-1.0
auth            include         config-util
account         include         config-util
session         include         config-util
EOF

cat > %{name}.console <<EOF
USER=root
UGROUPS=wheel
PROGRAM=%{_sbindir}/%{name}
SESSION=true
EOF

# consolehelper and userhelper
ln -s consolehelper %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
install -m 644 %{name}.console %{buildroot}%{_sysconfdir}/security/console.apps/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}/lang
cp %{SOURCE1} %{buildroot}%{_datadir}/%{name}/lang

# Install menu entry, overwrite the one that comes with sources (incomplete)
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=LinSSID
Comment=Graphical wireless scanner
Name[ru]=LinSSID
Comment[ru]=Графический сканер беспроводных сетей
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=System;Monitor;
EOF

# Install menu icons
for N in 16 32 48 64 128;
do
    rsvg-convert linssid-app/%{name}.svg -o ${N}.png -w ${N} -h ${N};
    install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done
install -D -m 0644 linssid-app/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 2999 |21cr|linthesia-0.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linthesia is a fork of the Windows/Mac game called Synthesia
Name:		linthesia
Version:	0.4.2
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/linthesia/linthesia
Source0:	%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gdkglextmm-x11-1.2)
BuildRequires:	pkgconfig(gconfmm-2.6)

%description
Linthesia is a fork of the Windows/Mac game called Synthesia.
It is a game of playing music using a MIDI keyboard (or your PC keyboard),
following a .mid file.

%files
%{_bindir}/*
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -ivf
%configure

%make

%install
%makeinstall_std

desktop-file-install \
  --dir %{buildroot}%{_datadir}/applications \
  %{SOURCE1}

install -d %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
install -m 644 -p extra/%{name}.xpm %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3000 |21cr|linux-audit-user-run-apps-0-1.gitb5de1a.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit b5de1a807372666d5bd2b0a30af3a68f1e214f52
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Audit which graphical user applications were started and closed by user (LAURA)
Name:		linux-audit-user-run-apps
Version:	0
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/mikhailnov/linux-audit-user-run-apps
Source0:	https://github.com/mikhailnov/linux-audit-user-run-apps/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Requires:	audit
Requires:	bash
Requires:	grep
Requires:	procps
Provides:	laura = %{EVRD}
Provides:	LAURA = %{EVRD}
BuildArch:	noarch

%description
Audit which graphical user applications were started and closed
by user (LAURA).

%files
%license LICENSE
%doc README.md
%{_bindir}/laura-started-de
%{_sbindir}/laura-load-audit
%{_unitdir}/laura.path
%{_unitdir}/laura.service
%{_sysconfdir}/xdg/autostart/laura.desktop

%post
%systemd_post laura.path

%preun
%systemd_preun laura.path

#----------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
%makeinstall_std SYSTEMDUNITDIR=%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3001 |21cr|linuxdcpp-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A DC++ port for Linux
Name:		linuxdcpp
Version:	1.1.0
Release:	2
License:	GPLv2
Group:		Networking/File transfer
Url:		https://launchpad.net/linuxdcpp/
Source0:	https://launchpad.net/linuxdcpp/1.1/%{version}/+download/linuxdcpp-%{version}.tar.bz2
Patch0:		gcc6.patch
Patch1:		linuxdcpp-1.1.0-openssl11.patch
Patch2:		linuxdcpp-1.1.0-scons3.patch
Patch3:		gcc10.patch
BuildRequires:	gettext
BuildRequires:	scons
BuildRequires:	boost-devel
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(glib-2.0) >= 2.4
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.6
BuildRequires:	pkgconfig(libglade-2.0) >= 2.4
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Provides:	linuxdc++ = %{version}

%description
LinuxDC++ is a project to port the DC++ Direct Connect client for
Linux.

%files -f %{name}.lang
%doc *.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
sed -i -e '/^#/!s/\<filter\>/filt/g' SConstruct
2to3 --write --nobackups --no-diffs SConstruct

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
%scons PREFIX="%{_prefix}"

%install
scons PREFIX="%{_prefix}" FAKE_ROOT="%{buildroot}" release=1 install

rm -v %{buildroot}%{_datadir}/doc/linuxdcpp/*

install -d -m755 %{buildroot}%{_datadir}/applications

install -d -m755 %{buildroot}%{_miconsdir}
install -d -m755 %{buildroot}%{_iconsdir}
install -d -m755 %{buildroot}%{_liconsdir}

%find_lang %{name} --all-name


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3002 |21cr|linuxdeployqt-6-0.d091b.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit d091be1aef7bee247a763537cd23b9a3a24b373c
%define commit_short %(echo %commit | head -c 5)

Name: linuxdeployqt
Summary: Tool to make a bundle from application for AppImage
Group: Development/C
Version: 6
Release: 0.%{commit_short}.2
License: GPLv3 or LGPLv3
Url: https://github.com/probonopd/linuxdeployqt
Source0: https://github.com/probonopd/linuxdeployqt/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:	no-fail-with-system-glibc.patch
BuildRequires: qt5-devel
BuildRequires: qt5-macros
Requires: patchelf

%description
This Linux Deployment Tool, linuxdeployqt, takes an application
as input and makes it self-contained by copying in the resources
that the application uses (like libraries, graphics, and plugins)
into a bundle. The resulting bundle can be distributed as an AppDir or
as an AppImage to users, or can be put into cross-distribution packages

%prep
%setup -q -n %{name}-%{commit}
%autopatch -p1

%build
%qmake_qt5
%make

%install
mkdir -p %buildroot/%_bindir
install -m 0755 bin/linuxdeployqt %buildroot/%_bindir/%name

%files
%_bindir/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3003 |21cr|linux_logo-6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ASCII Tux (Linux Penguin)
Name:		linux_logo
Version:	6.0
Release:	1
License:	GPLv2
Group:		System/Configuration/Boot and Init
Url:		http://www.deater.net/weave/vmwprod/linux_logo/
Source0:	http://www.deater.net/weave/vmwprod/linux_logo/%{name}-%{version}.tar.gz

%description
This package contains an ASCII Linux-Penguin.

%files -f %{name}.lang
%doc BUGS CHANGES README TODO
%doc LINUX_LOGO.FAQ USAGE README.CUSTOM_LOGOS
%{_bindir}/linux_logo
%{_mandir}/man1/linux_logo.1*

#----------------------------------------------------------------------------

%prep
%setup -q

echo "./logos/classic-no_periods_or_chars.logo" > logo_config
echo "./logos/banner.logo" >> logo_config
find -exec chmod go+r {} +

%build
./configure --prefix=%{_prefix}
%make_build CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
make install PREFIX=%{buildroot}%{_prefix}

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3004 |21cr|linux_pcnfsd2-1.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RPC Server That Supports ONC Clients
Name:		linux_pcnfsd2
Version:	1.6
Release:	4
License:	zlib
Group:		System/Servers
Url:		https://build.opensuse.org/package/show/openSUSE:Leap:42.1/linux_pcnfsd2
Source0:	linux_pcnfsd2.tar.gz
Source1:	pcnfsd.service
Patch0:		linux_pcnfsd2.patch
Patch1:		linux_pcnfsd2-format-security.patch
Patch2:		linux_pcnfsd2-tirpc.patch
Patch3:		linux_pcnfsd2-spooldir.patch
BuildRequires:	pkgconfig(libtirpc)
Requires:	net-tools
Requires(post,preun):	systemd

%description
RPC server that supports ONC clients on PC (DOS, OS/2, Macintosh, and
other) systems.

%files
%doc README
%{_sbindir}/clnt.pcnfsd
%{_sbindir}/rpc.pcnfsd
%{_mandir}/man8/pcnfsd.8*
%{_unitdir}/pcnfsd.service

%post
%systemd_post pcnfsd.service

%preun
%systemd_preun pcnfsd.service

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p0
%patch1 -p1 -b .FMT
%patch2 -p1
%patch3 -p1

%build
%setup_compile_flags
%make \
	-f Makefile.linux

%install
mkdir -p %{buildroot}%{_sbindir}
install -m 755 linux/clnt.pcnfsd %{buildroot}%{_sbindir}/
install -m 755 linux/rpc.pcnfsd %{buildroot}%{_sbindir}/

mkdir -p %{buildroot}%{_mandir}/man8
install -m 644 pcnfsd.8c %{buildroot}%{_mandir}/man8/pcnfsd.8

mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/pcnfsd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3005 |21cr|linuxsms-0.77-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name	linuxsms
%define version	0.77
%define release	 10


%define summary	Cool script to send SMS

Summary:	%summary
Name:		%name
Version:	%version
Release:	%release
Source0:	%name-%version.tar.bz2
Source1:	%name-icons.tar.bz2
Source2:	xlinuxsms.pl.bz2
Patch0:		%name-makefile.patch.bz2
Patch1:		linuxsms-0.77-pady.patch.bz2
License:	GPL
Group:		Communications
URL:		http://linuxsms.sourceforge.net
Buildarch:	noarch

%description
Linuxsms is a cool script in Perl for send short messages to gsm phones
(aka: sms 8-)) written by z0mbie.
Also includes a small Perl script with a GUI for linuxsms.

%prep
%setup -q
%setup -q -T -D -a1
%patch0 -p1 -b .linuxsms-makefile.patch
bzcat %{SOURCE2} > xlinuxsms.pl
%patch1 -p1

%build

%install
%makeinstall

# install icons
%__install -D -m 644 %{name}48.png %buildroot/%_liconsdir/%name.png
%__install -D -m 644 %{name}32.png %buildroot/%_iconsdir/%name.png
%__install -D -m 644 %{name}16.png %buildroot/%_miconsdir/%name.png

# menu
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%name.desktop
[Desktop Entry]
Type=Application
Exec=%_bindir/xlinuxsms.pl
Icon=%name
Categories=Network;
Name=LinuxSMS
Comment=%summary
EOF

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%update_menus
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0755,root,bin)
%{_bindir}/linuxsms
%{_bindir}/xlinuxsms.pl
%defattr(-,root,root,0755)
%doc BUGS CHANGES COPYING README README.ES TODO
%{_mandir}/man1/linuxsms.1*
%{_datadir}/applications/mandriva-*.desktop
%{_miconsdir}/*
%{_iconsdir}/*.png
%{_liconsdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3006 |21cr|linux-steam-integration-0.7.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Helper for enabling better Steam integration
Name:		linux-steam-integration
Version:	0.7.2
Release:	2
License:	LGPL-2.1
Group:		Games/Other
Url:		https://github.com/solus-project/linux-steam-integration
Source:		%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Linux Steam* Integration is a helper system to make
the Steam Client and Steam games run better on Linux. 
In a nutshell, LSI automatically applies various workarounds
to get games working, and fixes long standing bugs in both 
games and the client.

%files -f %{name}.lang
%{_bindir}/lsi-exec
%{_bindir}/lsi-settings
%{_libdir}/liblsi-intercept.so
%{_libdir}/liblsi-redirect.so
%{_datadir}/applications/lsi-settings.desktop

%prep
%setup -q

%build
%meson \
	-Dwith-frontend=true
%meson_build

%install
%meson_install

rm -rf %{buildroot}/%{_bindir}/steam

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3007 |21cr|lion-msc-0.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           lion-msc
Version:        0.30
Release:        1
Summary:        LaTeX class for B.Sc. and M.Sc. reports at Leiden Institute of Physics (LION)
Group:          Publishing
URL:            http://www.ctan.org/tex-archive/macros/latex/contrib/lion-msc
License:        LPPL1.3
Source0:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/lion-msc.tar.xz
Source1:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/lion-msc.doc.tar.xz
BuildArch:      noarch
BuildRequires:  texlive-tlpkg
Requires(pre):  texlive-tlpkg
Requires(post): texlive-kpathsea

%description
LaTeX class for B.Sc. and M.Sc. reports at Leiden Institute of
Physics (LION). The purpose of this class is twofold: It
creates a uniform layout of the student theses from our
department. More importantly it contains several fields on the
front-page that the user needs to fill that are used in the
university administration (name, student number and name of
supervisor). Students are free to change the layout of the text
but should leave the title page as it is.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/bibtex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3008 |21cr|lios-2.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux-Intelligent-Ocr-Solution
Name:		lios
Version:	2.7.1
Release:	2
License:	GPLv3+
Group:		Graphics
Url:		http://sourceforge.net/projects/lios/
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	python3
BuildRequires:	python3-setuptools
Requires:	espeak
Requires:	python3-gi
Requires:	python3-enchant
Requires:	python3-speechd
Requires:	python3-sane
#Requires:	python3-pillow-sane for fedora 20
Requires:	packagekit-gtk3-module
Requires:	aspell-en
Requires:	cuneiform-linux
Requires:	tesseract
Requires:	poppler
Requires:	imagemagick
BuildArch:	noarch

%description
Lios is a free and open source software for converting print
into text using either scanner, camera, or screenshot. It can also
produce text out of scanned images from other sources such as Pdf,
Image or Folder containing Images. Program is given
total accessibility for visually impaired. Lios is written in python3,
and we release it under GPL-3 license.

%files
%doc COPYING NEWS
%{python3_sitelib}/*
%{_datadir}/lios/
%{_datadir}/applications/*
%{_datadir}/doc/lios/copyright
%{_datadir}/man/man1/*
%{_datadir}/pixmaps/*
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3009 |21cr|liquidfun-1.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define oname Box2D

Summary:	A 2D physics engine for games based on Box2D
Name:		liquidfun
Version:	1.1.0
Release:	6
License:	BSD
Group:		System/Libraries
Url:		http://google.github.io/liquidfun/
Source0:	https://github.com/google/liquidfun/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:		liquidfun-1.1.0-cmake.patch
Patch1:		liquidfun-1.1.0-no-werror.patch
BuildRequires:	cmake

%description
LiquidFun is a 2D rigid body simulation library for games. Programmers can
use it in their games to make objects move in believable ways and make the
game world more interactive. From the game's point of view a physics engine
is just a system for procedural animation.

LiquidFun is written in portable C++ and based on Box2D. Most of the types
defined in the engine begin with the b2 prefix. Hopefully this is sufficient
to avoid name clashing with your game engine.

#----------------------------------------------------------------------------

%package devel
Summary:	A 2D physics engine for games based on Box2D
Group:		Development/C++
Conflicts:	box2d-devel

%description devel
LiquidFun is a 2D rigid body simulation library for games. Programmers can
use it in their games to make objects move in believable ways and make the
game world more interactive. From the game's point of view a physics engine
is just a system for procedural animation.

LiquidFun is written in portable C++ and based on Box2D. Most of the types
defined in the engine begin with the b2 prefix. Hopefully this is sufficient
to avoid name clashing with your game engine.

%files devel
%doc License.txt Documentation
%{_libdir}/lib*.a
%{_libdir}/%{oname}
%{_libdir}/cmake/%{oname}
%{_includedir}/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}/%{oname}
%patch0 -p2
%patch1 -p2

%build
%cmake \
	-DBOX2D_INSTALL:BOOL=ON \
	-DBOX2D_BUILD_EXAMPLES:BOOL=OFF \
	-DBOX2D_BUILD_UNITTESTS:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3010 |21cr|liquidwar-5.6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Unique multiplayer wargame
Name:		liquidwar
Version:	5.6.5
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.ufoot.org/liquidwar/v5
Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
Patch0:		liquidwar-5.6.5-gcc10.patch
Patch1:		liquidwar-5.6.5-python3.patch
Source11:	%{name}-16.png
Source12:	%{name}-32.png
Source13:	%{name}-48.png
BuildRequires:	pkgconfig(python3)
# (misc) data file need to compile
BuildRequires:	allegro
BuildRequires:	allegro-devel

# for buildinfo files
BuildRequires:	texinfo

%description
Liquid War is a wargame. But it is different from common wargames.

When playing Liquid War, one has to eat one's opponent. There can be from
2 to 6 players. There are no weapons, the only thing you have to do is to
move a cursor in a 2-D battlefield. This cursor is followed by your army,
which is composed by a great many little fighters. Fighters are represented
by small colored squares. All the fighters who have the same color belong
to the same team. One very often controls several thousands fighters at the
same time. And when fighters from different teams meet, they eat each
other, it is as simple as that.

%files
%doc COPYING doc/html/*.html
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_mandir}/man6/*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0

%build
autoconf
%configure \
%ifnarch %{ix86}
	--disable-asm \
%endif
	--disable-doc-pdf \
	--disable-doc-ps \
	--disable-doc-info

%make

%install
perl -pi -e 's#install_custom_texture install_icon install_gpl#install_custom_texture #' Makefile
%makeinstall

# icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

rm -rf %{buildroot}%{_datadir}/doc/liquidwar %{buildroot}%{_datadir}/pixmaps

# remove unused links
rm -rf %{buildroot}%{_bindir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3011 |21cr|liquidwar6-0.6.3902-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %{version} |cut -d. -f-2)

Summary:	Unique multiplayer wargame
Name:		liquidwar6
Version:	0.6.3902
Release:	1
License:	GPLv3+
Group:		Games/Arcade
Url:		http://www.gnu.org/software/liquidwar6/
Source0:	http://ftp.gnu.org/gnu/liquidwar6/%{name}-%{version}.tar.gz
Patch0:		liquidwar6-0.6.3902-alt-drop-Werror.patch
Patch1:		liquidwar6-0.6.3902-alt-guile22.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gomp-devel
BuildRequires:	jpeg-devel
BuildRequires:	libstdc++-devel
BuildRequires:	libstdc++-static-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(guile-2.2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
Requires:	guile22-runtime

%description
Liquid War 6 is a unique multiplayer wargame. Your army is a blob of
liquid and you have to try and eat your opponents. Rules are very
simple yet original, they have been invented by Thomas Colcombet. It
is possible to play alone against the computer but the game is really
designed to be played with friends, on a single computer, on a LAN, or
on Internet.

Warning! The game is still under heavy development and may be unstable.

%files -f %{name}.lang
%doc AUTHORS README NEWS COPYING
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}-%{major}
%{_datadir}/doc/%{name}/dtd/liquidwar6.dtd
%{_datadir}/doc/%{name}/example/*.xml
%{_datadir}/pixmaps/%{name}.*
%{_infodir}/%{name}*
%{_mandir}/man6/*
%{_libexecdir}/liquidwar6-doc
%{_libexecdir}/liquidwar6-xml

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%global Werror_cflags %{nil}
%global optflags %{optflags} -fno-strict-aliasing -Wno-deprecated-declarations
# Don't build static and shared libraries, build only game binary
%configure --enable-allinone
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_includedir}

desktop-file-install \
	--vendor="" \
	--dir %{buildroot}%{_datadir}/applications \
	--add-category="ArcadeGame" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3012 |21cr|liri-browser-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Liri browser
Name:		liri-browser
Version:	0.3
Release:	4
License:	GPLv3
Group:		Networking/WWW
Url:		http://liriproject.me/browser/
Source0:	https://github.com/liri-project/liri-browser/archive/v%{version}.zip
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebEngine)
Requires:	qml-material

%description
Material-design web browser.

%files
%{_bindir}/*


#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 liri-browser %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3013 |21cr|listadmin-2.40-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line mailman interface
Name:		listadmin
Version:	2.40
Release:	10
License:	Public Domain
Group:		File tools
Url:		http://heim.ifi.uio.no/kjetilho/hacks/#listadmin
Source0:	http://heim.ifi.uio.no/kjetilho/hacks/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
listadmin is a command-line alternative to Mailman's Web interface for
administering mailing lists. It allows you to inspect messages or subscription
requests, approve or discard them manually, or discard messages automatically
when certain conditions are true. listadmin can also be configured to run out
of cron to do routine cleaning.

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3014 |21cr|listener-2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		listener
Version:	2.2
Release:	3
Summary:	A sounds detection program
Group:		Sound
License:	GPL
URL:		http://www.vanheusden.com/%{name}/
Source:		http://www.vanheusden.com/%{name}/%{name}-%{version}.tgz
Patch0:		%{name}-2.2-fix-makefile.patch
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sndfile)

%description
This program listens for sound. If it detects any, it starts recording
automatically and also automatically stops when things become silent again.

%files
%doc manual.html
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3015 |21cr|lite-0.9.1_svn-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname LiTE
%define oversion 0.9.1

%define api 0.9
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define libleck %mklibname leck %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Toolkit Engine
Name:		lite
Version:	0.9.1_svn
Release:	6
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.directfb.org/
Source0:	http://www.directfb.org/downloads/Libs/%{oname}-%{oversion}.tar.gz
BuildRequires:	libtool
BuildRequires:	pkgconfig(directfb)

%description
LiTE is a Toolkit Engine for DirectFB.

#----------------------------------------------------------------------------

%package common
Summary:	Images and fonts for LiTE
Requires:	fonts-ttf-vera
Group:		Graphical desktop/Other

%description common
LiTE is a Toolkit Engine for DirectFB.
This package contains the images and fonts needed by LiTE.

%files common
%doc AUTHORS NEWS README TODO COPYING ChangeLog
%{_datadir}/LiTE

#----------------------------------------------------------------------------

%package tools
Summary:	LiTE tools and examples
Group:		Graphical desktop/Other

%description tools
LiTE is a Toolkit Engine for DirectFB.
This package contains example tools for LiTE.

%files tools
%doc AUTHORS NEWS README TODO COPYING ChangeLog
%{_bindir}/lite_*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for LiTE
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Requires:	%{name}-common >= %{version}
Obsoletes:	%{_lib}lite1 < 0.9.1_svn-3

%description -n %{libname}
LiTE is a Toolkit Engine for DirectFB.
This package contains the library needed to run programs dynamically
linked with LiTE.

%files -n %{libname}
%doc AUTHORS NEWS README TODO COPYING ChangeLog
%{_libdir}/liblite-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libleck}
Summary:	LiTE's extended Component Kit
Group:		System/Libraries
Obsoletes:	%{_lib}leck1 < 0.9.1_svn-3

%description -n %{libleck}
LiTE is a Toolkit Engine for DirectFB. This package contains
LiTE's extended Component Kit.

%files -n %{libleck}
%doc AUTHORS NEWS README TODO COPYING ChangeLog
%{_libdir}/libleck-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use LiTE
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libleck} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	leck-devel = %{EVRD}

%description -n %{devname}
LiTE is a Toolkit Engine for DirectFB.
This package contains the headers that programmers will need to develop
applications which will use LiTE.

%files -n %{devname}
%doc AUTHORS NEWS README TODO COPYING ChangeLog
%{_libdir}/liblite.so
%{_libdir}/libleck.so
%{_libdir}/pkgconfig/lite.pc
%{_libdir}/pkgconfig/leck.pc
%{_includedir}/lite
%{_includedir}/leck

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{oversion}

%build
./autogen.sh
%configure \
	--with-fontdir=%{_datadir}/%{oname}/fonts
%make

%install
%makeinstall_std

rm %{buildroot}%{_datadir}/%{oname}/fonts/vera{,bd,bi,i}.ttf
ln -s %{_datadir}/fonts/TTF/Vera.ttf %{buildroot}%{_datadir}/%{oname}/fonts/vera.ttf
ln -s %{_datadir}/fonts/TTF/VeraBd.ttf %{buildroot}%{_datadir}/%{oname}/fonts/verabd.ttf
ln -s %{_datadir}/fonts/TTF/VeraBI.ttf %{buildroot}%{_datadir}/%{oname}/fonts/verabi.ttf
ln -s %{_datadir}/fonts/TTF/VeraIt.ttf %{buildroot}%{_datadir}/%{oname}/fonts/verai.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3016 |21cr|lives-3.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname weed %{major}
%define	devname %mklibname -d weed

%define	libOSC %mklibname OSC %{major}
%define	devOSC %mklibname -d OSC

%define	_disable_ld_no_undefined 1

Summary:	Linux Video Editing System
Name:		lives
Version:	3.2.0
Release:	3
License:	GPLv3+
Group:		Video
Url:		https://sourceforge.net/projects/lives/
Source0:	https://downloads.sourceforge.net/project/lives/lives/3.2.0/lives-3.2.0.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	appstream-util
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	ffmpeg-devel
BuildRequires:	gcc-c++
BuildRequires:	gettext
BuildRequires:	gpm-devel
BuildRequires:	help2man
BuildRequires:	imagemagick
BuildRequires:	ladspa-devel
BuildRequires:	libtool
BuildRequires:	perl-generators
BuildRequires:	frei0r-plugins-devel
BuildRequires:	pth-devel
BuildRequires:	python3-devel
BuildRequires:	tirpc-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(celt)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gdk-3.0) 
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glee)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libavc1394)
BuildRequires:	pkgconfig(liboil-0.3)
BuildRequires:	pkgconfig(libprojectM)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libunicap)
BuildRequires:	pkgconfig(libv4l1)
BuildRequires:	pkgconfig(libvisual-0.4)
BuildRequires:	pkgconfig(mjpegtools)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(theora)
Requires:	cdrtools
Requires:	dvgrab
Requires:	frei0r-plugins
Requires:	imagemagick
Requires:	libprojectm-data
Requires:	libvisual-plugins
Requires:	mkvtoolnix
Requires:	mplayer
Requires:	mpv
Requires:	oggvideotools
Requires:	ogmtools
Requires:	sox
Requires:	theora-tools
Requires:	vorbis-tools
Requires:	xset
Requires:	youtube-dl
Requires:	%{libname} = %{EVRD}
Requires:	%{libOSC} = %{EVRD}



%description
The Linux Video Editing System (LiVES) is intended to be a simple yet powerful
video effects and editing system. It uses common tools for most of its work
(mplayer, ImageMagick, GTK+, sox).

%files -f lives.lang
%{_docdir}/%{name}
%{_bindir}/*
%{_datadir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/LiVES.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_appdatadir}/%{name}.appdata.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Linux Video Editing System - shared libs
Group:		Video

%description -n %{libname}
This package contains shared libs for LiVES.

%files -n %{libname}
%doc COPYING FEATURES NEWS README GETTING.STARTED 
%{_libdir}/libweed.so.%{major}
%{_libdir}/libweed.so.%{major}.*
%{_libdir}/libweed-utils.so.%{major}
%{_libdir}/libweed-utils.so.%{major}.*
%{_libdir}/libweed_gslice.so.%{major}
%{_libdir}/libweed_gslice.so.%{major}.*
%{_libdir}/libweed_gslice_scripting.so.%{major}
%{_libdir}/libweed_gslice_scripting.so.%{major}.*
%{_libdir}/libweed-utils_scripting.so.%{major}
%{_libdir}/libweed-utils_scripting.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Linux Video Editing System - Development files
Group:		Video
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files needed to build LiVES plug-ins.

%files -n %{devname}
%doc ABOUT-NLS AUTHORS
%{_includedir}/weed
%{_libdir}/libweed.so
%{_libdir}/libweed-utils.so
%{_libdir}/libweed-utils_scripting.so
%{_libdir}/libweed_gslice.so
%{_libdir}/pkgconfig/libweed.pc
%{_libdir}/pkgconfig/libweed_gslice.pc
%{_libdir}/pkgconfig/libweed-plugin.pc
%{_libdir}/pkgconfig/libweed-utils.pc
%{_libdir}/pkgconfig/libweed-compat.pc
%{_libdir}/libweed_gslice_scripting.so

#----------------------------------------------------------------------------

%package -n %{libOSC} 
Summary:	Linux Video Editing System - shared libs
Group:		Video

%description -n %{libOSC}
This is NOT the full libOSC SDK, it is a highly hacked version for testing 
with LiVES.

%files -n %{libOSC}
%doc libOSC/{AUTHORS,README}
%{_libdir}/libOSC.so.%{major}
%{_libdir}/libOSC.so.%{major}.*
%{_libdir}/libOSC_client.so.%{major}
%{_libdir}/libOSC_client.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devOSC}
Summary:	Linux Video Editing System - Development files
Group:		Video
Requires:	%{libOSC} = %{EVRD}
Provides:	libOSC-devel = %{EVRD}

%description -n %{devOSC}
This package contains header files and libraries needed to develop
application that use libOSC.

%files -n %{devOSC} 
%doc libOSC/{AUTHORS,README}
%{_libdir}/libOSC.so
%{_libdir}/libOSC_client.so

#----------------------------------------------------------------------------

%prep
%setup -q
find . -name "*.c" -o -name "*.h" -o -name "*.cpp" |xargs chmod 0644

%build
%configure --enable-static 
%make 

%install
mkdir -p %{buildroot}%{_bindir}
%makeinstall_std
%find_lang %{name}

rm %{buildroot}%{_bindir}/%{name}
cd %{buildroot}%{_bindir}/
ln -s %{name}-exe %{name}

find %{buildroot} -name "*" -exec chrpath --delete {} \; 2>/dev/null

find %{buildroot} -name "*.pc" | while read f; do
	sed -i -e "s!libdir=\${exec_prefix}/lib!libdir=\${exec_prefix}/%{_lib}!" "$f" ;
done

%ifarch x86_64
mv %{buildroot}%{_bindir}/lives %{buildroot}%{_bindir}/lives0
echo -e "#!/bin/bash\n" > %{buildroot}/%{_bindir}/lives
echo "export FREI0R_PATH=/usr/lib64/frei0r-1" >> %{buildroot}/%{_bindir}/lives
echo -e "lives0\n" >> %{buildroot}/%{_bindir}/lives
chmod +x %{buildroot}/%{_bindir}/lives
%endif

# clean 
rm -fr %{buildroot}%{_datadir}/pixmaps
rm -rf %{buildroot}%{_datadir}/app-install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'

# Remove Python2 script
find %{buildroot} -name 'multi_encoder' -exec rm -f {} ';'
find %{buildroot}%{_bindir} -name '*_encoder' -exec rm -f {} ';'

# Fix unversioned Python interpreter
find %{buildroot} -name '*multi_encoder3' | xargs pathfix.py -pn -i "%{__python3}"
find %{buildroot}%{_bindir} -name '*_encoder3' | xargs pathfix.py -pn -i "%{__python3}"

# appdata
mkdir -p %{buildroot}%{_appdatadir}
cat > %{buildroot}%{_appdatadir}/%{name}.appdata.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<component type="desktop">
	<id type="desktop">LiVES.desktop</id>
	<metadata_license>CC0-1.0</metadata_license>
	<summary>Video editor and VJ tool</summary>
	<name>LiVES</name>
	<project_license>GPL-3.0+ and LGPL-3.0+</project_license>
	<releases>
		<release version="%{version}-%{release}" timestamp="1453075707"/>
	</releases>
	<categories>
		<category>Multimedia</category>
	</categories>
	<description>
		<p>
			LiVES began in 2002 as the Linux Video Editing System.
			Since it now runs on more operating systems: LiVES is a Video Editing System.
			It is designed to be simple to use, yet powerful.
			It is small in size, yet it has many advanced features.
		</p>
		<p>
			LiVES mixes realtime video performance and non-linear editing in one professional
			quality application. It will let you start editing and making video right away,
			without having to worry about formats, frame sizes, or framerates.
			It is a very flexible tool which is used by both professional VJ's and video editors
			- mix and switch clips from the keyboard, use dozens of realtime effects, trim and
			edit your clips in the clip editor, and bring them together using the multitrack timeline.
			You can even record your performance in real time, and then edit it further
			or render it straight away. 
		</p>
		<p>
			For the more technically minded, the application is frame and sample accurate,
			and it can be controlled remotely or scripted for use as a video server.
			And it supports all of the latest free standards.
		</p>
	</description>
	<url type="homepage">http://lives-video.com/</url>
	<screenshots>
		<screenshot type="default">http://lives-video.com/images/livescess.png</screenshot>
		<screenshot>http://lives-video.com/images/livesmtss.png</screenshot>
	</screenshots>
	<updatecontact>salsaman_at_gmail.com</updatecontact>
</component>
EOF

%check
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/LiVES.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3017 |21cr|lix-2016.01.09-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define oname Lix
%define oversion 2016-01-09

Summary:	Action-puzzle game, single- and networked multiplayer, inspired by Lemmings
Name:		lix
Version:	2016.01.09
Release:	2
License:	CC0
Group:		Games/Puzzles
Url:		http://asdfasdf.ethz.ch/~simon/
Source0:	https://github.com/SimonN/%{oname}/archive/v%{oversion}.tar.gz
# Upstream backport
Patch0:		lix-2016-01-09-buildfix.patch
BuildRequires:	dos2unix
BuildRequires:	libtool
BuildRequires:	libtool-base
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(allegro)
BuildRequires:	pkgconfig(libenet)
BuildRequires:	pkgconfig(libpng)

%description
Lix is a multiplayer action puzzle game. 
It comes with a level editor
and also a singleplayer puzzle mode.

%files
%doc doc/*.txt README.TXT
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}d
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#-------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{oversion}
%patch0 -p1
dos2unix doc/*txt README.TXT
find levels/network/ -type f -exec dos2unix {} \;
find levels/network/*p/amanda/* -type f -exec chmod -x {} \;

%build
%setup_compile_flags
%make V=1

%install
# wrappers
mkdir -p %{buildroot}%{_gamesbindir}

cat >> %{buildroot}%{_gamesbindir}/%{name}d <<EOF
#!/bin/sh
cd %{_gamesdatadir}/%{name}/
exec ./bin/%{name}d "$@"
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{name}d

cat >> %{buildroot}%{_gamesbindir}/%{name} <<EOF
#!/bin/sh
cd %{_gamesdatadir}/%{name}/
exec ./bin/%{name} "$@"
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{name}

# binaries
install -Dm755 bin/%{name} %{buildroot}%{_gamesdatadir}/%{name}/bin/%{name}
install -Dm755 bin/%{name}d %{buildroot}%{_gamesdatadir}/%{name}/bin/%{name}d

# data
cp -R data/ levels/ images/ %{buildroot}%{_gamesdatadir}/%{name}/

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Comment=%{summary}
Name=%{oname} puzzle game inspired by Lemmings
GenericName=Puzzle strategy game
Type=Application
Exec=%{name}
Icon=%{name}
Terminal=false
Categories=Game;StrategyGame;
EOF

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size images/proxima/tile/goal.G.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

# linting
rm %{buildroot}%{_gamesdatadir}/%{name}/data/user/.gitignore

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3018 |21cr|lkmpg-1.1.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: The Linux Kernel Module Programming Guide 
Name: lkmpg
Version: 1.1.0
Release: 19
Group: Books/Computer books
Source: lkmpg.tar.bz2
License: GPL
Buildroot: %{_tmppath}/%{name}-buildroot
BuildArchitectures: noarch
URL: http://www.linuxdoc.org/LDP/lkmpg/mpg.html

%description
This document is for people who want to write kernel modules.

Examples are include.

%prep
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_docdir}/LDP
cd $RPM_BUILD_ROOT%{_docdir}/LDP
bzcat %{SOURCE0} | tar xv

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_docdir}/LDP/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3019 |21cr|lldpd-0.9.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with snmp

%define user _lldpd
%define chroot %{_var}/run/%{name}

%define major 4
%define libname %mklibname lldpctl %{major}
%define devname %mklibname lldpctl -d

Summary:	implementation of IEEE 802.1ab (LLDP)
Name:		lldpd
Version:	0.9.4
Release:	6
License:	MIT
Group:		System/Servers
Url:		https://vincentbernat.github.io/lldpd/
Source0:	http://media.luffy.cx/files/lldpd/%{name}-%{version}.tar.gz
Source1:	lldpd-tmpfiles.conf
Source2:	lldpd.sysconfig
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(systemd)
%if %{with snmp}
BuildRequires:	net-snmp-devel
Requires:	net-snmp
%endif
Requires(pre,post,preun,postun):	rpm-helper

%description
This implementation provides LLDP sending and reception, supports VLAN
and includes an SNMP subagent that can interface to an SNMP agent
through AgentX protocol.

LLDP is an industry standard protocol designed to supplant proprietary
Link-Layer protocols such as Extreme EDP (Extreme Discovery Protocol)
and CDP (Cisco Discovery Protocol). The goal of LLDP is to provide an
inter-vendor compatible mechanism to deliver Link-Layer notifications
to adjacent network devices.

This daemon is also able to deal with CDP, FDP, SONMP and EDP
protocol. It also handles LLDP-MED extension.

%files
%doc ChangeLog CONTRIBUTE.md NEWS README.md
/lib/sysusers.d/lldpd.sysusers.conf
%{_datadir}/bash-completion/completions/lldpcli
%{_datadir}/zsh/vendor-completions/_lldpcli
%{_sbindir}/lldpcli
%{_sbindir}/lldpctl
%{_sbindir}/lldpd
%doc %{_mandir}/man8/lldp*
%{_sysconfdir}/lldpd.d/README.conf
%config(noreplace) %{_sysconfdir}/sysconfig/lldpd
# systemd files
%ghost %attr(0755,root,root) %{_localstatedir}/run/%{name}
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service

%pre
%_pre_useradd %{user} %{chroot} /bin/false

%post
%_post_service %{name}
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{user}
%_postun_groupdel %{user}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/liblldpctl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/lldp-const.h
%{_includedir}/lldpctl.h
%{_libdir}/liblldpctl.so
%{_libdir}/pkgconfig/lldpctl.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi

%configure \
	--with-xml \
%if %{with snmp}
	--with-snmp \
%else
	--without-snmp \
%endif
	--enable-cdp \
	--enable-edp \
	--enable-sonmp \
	--enable-fdp \
	--enable-lldpmed \
	--enable-dot1 \
	--enable-dot3 \
	--with-privsep-user=%{user} \
	--with-privsep-group=%{user} \
	--with-privsep-chroot=%{chroot} \
	--localstatedir=%{chroot} \
	--disable-static

[ -f /usr/include/net-snmp/agent/struct.h ] || touch src/struct.h
%make

%install
%makeinstall_std

#install tmpfiles conf
install -m644 -D %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

install -m644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/lldpd

mkdir -p %{buildroot}%{_localstatedir}/run/%{name}
mkdir -p %{buildroot}%{_localstatedir}/run/%{name}/run

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3020 |21cr|llhttp-6.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This package is rather exotic. The compiled library is a typical shared
# library with a C API. However, it has only a tiny bit of C source code. Most
# of the library is written in TypeScript, which is transpiled to C, via LLVM
# IR, using llparse (https://github.com/nodejs/llparse)—all of which happens
# within the NodeJS ecosystem.
#
# The package therefore “builds like” a NodeJS package, and to the extent they
# are relevant we apply the NodeJS packaging guidelines. However, the result of
# the build “installs like” a traditional C library package and has no NodeJS
# dependencies, including bundled ones.
#
# Furthermore, the package is registered with npm as “llhttp”, but current
# releases are not published there, so we use the GitHub archive as the
# canonical source and use a custom bundler script based on
# nodejs-packaging-bundler to fetch NodeJS build dependencies.
#
# Overall, we cherry-pick from the standard and NodeJS packaging guidelines as
# each seems to best apply, understanding that this package does not fit well
# into any of the usual patterns or templates.

# Upstream has been asked to provide a proper .so version:
# https://github.com/nodejs/llhttp/issues/140
# …but for now, we must version the shared library downstream.
%define downstream_soversion 0.1
%define libname %mklibname %{name} %{downstream_soversion}
%define devname %mklibname %{name} -d

Name:           llhttp
Version:        6.0.6
Release:        1
Summary:        Port of http_parser to llparse
Group:          System/Libraries
# License of llhttp is MIT; nothing from the NodeJS dependency bundle is
# installed, so its contents do not contribute to the license of the binary
# RPMs, and we do not need a file llhttp-%%{version}-bundled-licenses.txt.
License:        MIT
%global forgeurl https://github.com/nodejs/llhttp
%forgemeta
URL:            %{forgeurl}
Source0:        %{forgesource}

# Based closely on nodejs-packaging-bundler, except:
#
# - The GitHub source tarball specified in this spec file is used since the
#   current version is not typically published on npm
# - No production dependency bundle is generated, since none is needed—and
#   therefore, no bundled licenses text file is generated either
Source1:        llhttp-packaging-bundler
# Created with llhttp-packaging-bundler (Source1):
Source2:        llhttp-%{version}-nm-dev.tgz

# While nothing in the dev bundle is installed, we still choose to audit for
# null licenses at build time and to keep manually-approved exceptions in a
# file.
Source3:        check-null-licenses
Source4:        audited-null-licenses.toml

# For generating the C source “release” from TypeScript:
BuildRequires:  nodejs
BuildRequires:  make

# For compiling the C library
BuildRequires:  cmake
BuildRequires:  gcc

# For tests
BuildRequires:  clang

# For check-null-licenses
BuildRequires:  python3-devel
BuildRequires:  python3dist(toml)

%description
This project is a port of http_parser to TypeScript. llparse is used to
generate the output C source file, which could be compiled and linked with the
embedder's program (like Node.js).

This copy of the library is compiled with LLHTTP_STRICT_MODE set to 0
(disabled), which is the default.

#----------------------------------------------------------------------------
%package -n %{libname}
Summary:        Port of http_parser to llparse
Group:          System/Libraries

%description -n %{libname}
This project is a port of http_parser to TypeScript. llparse is used to
generate the output C source file, which could be compiled and linked with the
embedder's program (like Node.js).

This copy of the library is compiled with LLHTTP_STRICT_MODE set to 0
(disabled), which is the default.

%files -n %{libname}
%license release/LICENSE-MIT
%{_libdir}/libllhttp.so.%{downstream_soversion}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for llhttp
Group:          System/Libraries
Provides:       %{name}-devel = %{EVRD}
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
The llhttp-devel package contains libraries and header files for
developing applications that use llhttp.

%files -n %{devname}
%doc release/README.md
%{_includedir}/llhttp.h
%{_libdir}/libllhttp.so
%{_libdir}/cmake/llhttp

#----------------------------------------------------------------------------
%prep
%forgeautosetup

# Set up bundled (dev) node modules required to generate the C sources from the
# TypeScript sources.
tar -xzf '%{SOURCE2}'
mkdir -p node_modules
pushd node_modules
ln -s ../node_modules_dev/* .
ln -s ../node_modules_dev/.bin .
popd

# We run ts-node out of node_modules/.bin rather than using npx (which we will
# not have available).
sed -r -i 's@\bnpx[[:blank:]](ts-node)\b@node_modules/.bin/\1@' Makefile


%build
# Generate the C source “release” from TypeScript using the “node_modules_dev”
# bundle.
%make_build release
# Apply downstream .so versioning
cat >> release/CMakeLists.txt <<'EOF'
set_target_properties(llhttp PROPERTIES SOVERSION %{downstream_soversion})
EOF
# Fix multilib install paths. We hoped this change would be sufficient, but it
# seems to fix the install paths of the CMake files only, so we still need to
# move the libraries after they are installed.
sed -r -i 's@\b(DESTINATION[[:blank:]]+)lib($|/)@\1%{_libdir}\2@' \
    release/CMakeLists.txt

# To help prove that nothing from the bundled NodeJS dependencies is included
# in the binary packages, remove the “node_modules” symlinks.
rm -rvf node_modules

cd release
%cmake -DBUILD_SHARED_LIBS:BOOL=ON
%make_build


%install
cd release
%make_install -C build


%check
# Symlink the NodeJS bundle again so that we can test with Mocha
mkdir -p node_modules
pushd node_modules
ln -s ../node_modules_dev/* .
ln -s ../node_modules_dev/.bin .
popd

# Verify that no bundled dev dependency has a null license field, unless we
# already audited it by hand. This reduces the chance of accidentally including
# code with license problems in the source RPM.
%__python3 '%{SOURCE3}' --exceptions '%{SOURCE4}' --with dev node_modules_dev

# See scripts.mocha in package.json:
NODE_ENV=test ./node_modules/.bin/mocha \
    -r ts-node/register/type-check \
    test/*-test.ts





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3021 |21cr|llncsconf-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           llncsconf
Version:        1.1.0
Release:        1
Summary:        LaTeX package extending Springer's llncs class
Group:          Publishing
URL:            http://www.ctan.org/tex-archive/macros/latex/contrib/llncsconf
License:        LPPL1.3c
Source0:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/llncsconf.tar.xz
Source1:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/llncsconf.doc.tar.xz
BuildArch:      noarch
BuildRequires:  texlive-tlpkg
Requires(pre):  texlive-tlpkg
Requires(post): texlive-kpathsea

%description
The package extends Springer's llncs class for adding
additional notes describing the status of the paper (submitted,
accepted) as well as for creating author-archived versions that
include the references to the official version hosted by
Springer (as requested by the copyright transfer agreement for
Springer's LNCS series).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3022 |21cr|ll-plugins-0.2.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A collection of LV2 plugins
Name:		ll-plugins
Version:	0.2.33
Release:	1
License:	GPLv3+
Group:		Sound
Url:		http://ll-plugins.nongnu.org/index.html
Source0:	https://download.savannah.nongnu.org/releases/ll-plugins/%{name}-%{version}.tar.bz2
Patch0:		ll-plugins-0.2.33-fix-linkage.patch
BuildRequires:	jack
BuildRequires:	lv2-c++-tools
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairomm-1.0) >= 1.2.4
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(gtkmm-2.4) >= 2.8.8
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(lv2-plugin) >= 1.0.0
BuildRequires:	pkgconfig(samplerate) >= 0.1.2
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(sndfile) >= 1.0.18
Requires:	jack >= 0.109

%description
THE PLUGINS
===========
All plugins are installed in separate LV2 bundles (except the ones that are
closely related, like the math-constant plugins or the mono and stereo versions
of the peak meter). The GUIs, for the plugins that have GUIs, are installed in
bundles of their own to make it easier for packagers to put them in separate
binary packages to avoid Gtk dependencies for the plugins themselves.

The plugins are reasonably simple and could be used as examples or starting
points for hackers who want to write LV2 plugins based on the frameworks in
the lv2-c++-tools package. There are synths, event processors, simple audio
and control manipulators and GUI-based plugins.

BASIC ARPEGGIATOR
=================
This plugin is just what it says. It takes MIDI event input and writes
MIDI event output in the form of an arpeggio over the held keys in the input.
You can control the speed of the arpeggio and the direction (up or down).

CONTROL2MIDI
============
A plugin that converts a LV2 control port value to MIDI CC events. You can
set the CC number and the expected range of the input value.

KLAVIATUR
=========
A MIDI keyboard. You can use it to send pitchbend events, CC events and of
course notes, using mouse or keyboard. Handy when you want to test a synth
patch but don't have a real keyboard nearby. Klaviatur has a Gtk GUI that you
use to control it.

MATH-CONSTANTS
==============
A set of plugins that output constant control parameters for mathematical
constants defined in the C header <math.h>.

MATH-FUNCTIONS
==============
A set of plugins wrapping most of the functions in the C header <math.h>
(sin(), cos(), exp(), modf() etc). All are available as both audio rate
and control rate functions.

PEAK METER
==========
A decaying peak meter that shows the peak level of the input signal.
There is a mono and a stereo version. Both have Gtk GUIs.

RUDOLF 556
==========
A simple drum machine with six separate drum voices - two bass drums, two
snares and two hihats. The different voices are mapped to C, D, E, F, G and A
in all octaves, and every voice has three control parameters (length,
hardness and volume). This plugin has a Gtk GUI that you can use to control the
parameters.

SINESHAPER
==========
An LV2 version of the Sineshaper synth - two sine oscillators fed through
two sine waveshapers in series, with a bunch of parameters to control them.
This plugin has a Gtk GUI too.

%files
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/lv2/arpeggiator.lv2/*
%{_libdir}/lv2/control2midi.lv2/*
%{_libdir}/lv2/klaviatur.lv2/*
%{_libdir}/lv2/math-constants.lv2/*
%{_libdir}/lv2/math-functions.lv2/*
%{_libdir}/lv2/peakmeter.lv2/*
%{_libdir}/lv2/rudolf556.lv2/*
%{_libdir}/lv2/sineshaper.lv2/*

#-----------------------------------------------------------------------------

%package gui
Summary:	GUIs for the ll-plugins package
Group:		Sound

%description gui
This package contains the GUIs for the ll-plugins.

%files gui
%doc COPYING
%{_libdir}/lv2/klaviatur_gtk.lv2/*
%{_libdir}/lv2/peakmeter_gtk.lv2/*
%{_libdir}/lv2/rudolf556_gtk.lv2/*
%{_libdir}/lv2/sineshaper_gtk.lv2/*

#-----------------------------------------------------------------------------

%package -n elven
Summary:	The LV2 host Elven
Group:		Sound
Requires:	jack

%description -n elven
THE HOST
========
The host that comes with this package is called Elven (Experimental LV2
Execution ENvironment). It is pretty slow and I don't really recommend it.
If you can use another host, do that.

%files -n elven
%doc COPYING
%{_bindir}/elven

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%configure --CFLAGS="%{optflags} -Dclear_path=begin_new_path"

%make


%install
%makeinstall_std \
    build_experimental=yes \
    install-lv2-plugins \
    prefix=%{_prefix} \
    libdir=%{_libdir} \
    docdir=%{_docdir}

# Drop unwanted stuff
rm -rf %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3023 |21cr|lm1100-1.0.2a-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux Lexmark 1000/1100 Printer Driver
Name:		lm1100
Version:	1.0.2a
Release:	25
License:	GPLv2+
Group:		System/Printing
Url:		http://www.linuxprinting.org/download/printing/lm1100/
Source0:	http://www.linuxprinting.org/download/printing/lm1100/%{name}.%{version}.tar.gz
Patch0:		lm1100-1.0.2a-gcc32.patch
Patch1:		lm1100.1.0.2a-fix-compile-gcc-3.4.patch
Patch2:		lexmark2ppm.pl.patch
Patch3:		lm1100.1.0.2a-LDFLAGS.diff

%description
Linux Lexmark 1000/1020/1100 Printer Driver. This filter converts a ppm file
into the Lexmark 1000/1020/1100 internal format.

%files
%defattr(0644,root,root,0755)
%doc LICENSE README RELEASE.* cmy.txt
%defattr(0755,root,root,0755)
%{_bindir}/lm1100
%{_bindir}/lexmark2ppm.pl
%{_bindir}/byteutil.pl
%{_libdir}/rhs/rhs-printfilters/lm1100
%{_libdir}/rhs/rhs-printfilters/ps-to-lm1100.fpi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}.%{version}
%patch0 -p1
%patch1 -p0
%patch2 -p0
%patch3 -p0

%build
%serverbuild

# Correct "friend" declarations for gcc 3.1
perl -p -i -e 's/friend Lexmark/friend class Lexmark/' *.h
# Remove extra qualifications '<class>::<member>' on class members, to make
# code compiling with gcc 4.1.1.
perl -p -i -e 's/\b[^\s:]+:://' *.h

%make CC="g++ $CXXFLAGS" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}

# Executables (filter for usage with CUPS and printer emulator script for
# development and debugging (also debugging this RPM w/o Lexmark 1100).
install -m 0755 lm1100 %{buildroot}%{_bindir}
install -m 0755 lexmark2ppm.pl %{buildroot}%{_bindir}
install -m 0755 byteutil.pl %{buildroot}%{_bindir}

# Executables (filter for usage with CUPS and printer emulator script for
# development and debugging (also debugging this RPM w/o Lexmark 1100).
# LPD support
install -d %{buildroot}%{_libdir}/rhs/rhs-printfilters
[ -e ps-to-lm1100.fpi ] || mv ps-to-printer.fpi ps-to-lm1100.fpi # file name conflict
install -m 0755 ps-to-lm1100.fpi %{buildroot}%{_libdir}/rhs/rhs-printfilters
ln -s %{_bindir}/lm1100 %{buildroot}%{_libdir}/rhs/rhs-printfilters

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3024 |21cr|lmarbles-1.0.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Atomix-style arcade game
Name:		lmarbles
Version:	1.0.8
Release:	10
Epoch:		1
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://lgames.sourceforge.net/index.php?project=LMarbles
Source0:	http://lgames.sourceforge.net/marbleslgames/%{name}-%{version}.tar.gz
Buildrequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)

%description
LMarbles is very similar to Atomix and was heavily inspired by it. Goal is to
create a more or less complex figure out of single marbles within a time limit
to reach the next level. Sounds easy? Well, there is a problem: If a marble
starts to move it will not stop until it hits a wall or marble. And to make it
even more interesting there are obstacles like arrows, crumbling walls and
teleports!

%files
%doc README
%attr(2755,root,games) %{_gamesbindir}/*
%attr(0664,games,games) %{_localstatedir}/lib/games/%{name}.prfs
%{_gamesdatadir}/%{name}
%{_mandir}/man6/*
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--localstatedir=%{_localstatedir}/lib/games \
	--datadir=%{_gamesdatadir} \
	--bindir=%{_gamesbindir}

%make

%install
%makeinstall_std

# Correct icon and .desktop paths
mkdir -p %{buildroot}%{_datadir}/{applications,icons/hicolor/48x48/apps}
mv %{buildroot}%{_gamesdatadir}/applications/%{name}.desktop %{buildroot}%{_datadir}/applications
mv %{buildroot}%{_gamesdatadir}/icons/%{name}48.gif %{buildroot}%{_iconsdir}/hicolor/48x48/apps

# convert icon
convert %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}48.gif %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
rm -f %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}48.gif

# fix desktop file
sed -i -e "s/\/usr\/share\/games\/icons\/%{name}48.gif/%{name}/g" %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install \
	--add-category=LogicGame \
	--dir %{buildroot}%{_datadir}/applications/ \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3025 |21cr|lmbench-3.0-0.a9.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Based on Fedora's package

%define tar_release a9

Summary:	Tools for Kernel Performance Analysis
Name:		lmbench
Version:	3.0
Release:	0.%{tar_release}.5
License:	GPLv2+
Group:		Development/Kernel
Url:		http://sourceforge.net/projects/lmbench
Source0:	http://dl.sf.net/lmbench/lmbench-%{version}-%{tar_release}.tgz
Source1:	%{name}-%{version}-%{tar_release}-run.sh
Patch0:		lmbench-3.0-a9-tirpc.patch
Patch1:		lmbench-3.0-a9-sfmt.patch
BuildRequires:	pkgconfig(libtirpc)

%description
Bandwidth benchmarks: cached file read, memory copy (bcopy), memory read,
memory write, pipe, TCP; Latency benchmarks: context switching, connection
establishment, pipe, TCP, UDP, RPC hot potato, file system creates and
deletes, process creation, signal handling, system call overhead,  memory
read latency; Miscellanious Processor clock rate calculation.

%files
%doc ACKNOWLEDGEMENTS CHANGES COPYING COPYING-2 hbench-REBUTTAL README.* TODO.* doc/
%{_bindir}/lmbench
%{_prefix}/lib/lmbench/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{tar_release}
%patch0 -p1
%patch1 -p1

mv -f src/TODO TODO.lmbench
mv -f scripts/README README.scripts
mv -f scripts/SHIT SHIT.scripts
mv -f scripts/TODO TODO.scripts

%build
#make LDLIBS="-ltirpc"
%make CC="%__cc %{optflags}"
find . -name 'SCCS' -type d -exec rm -rf {} \;

%install
install -Dp -m0755 %{SOURCE1} %{buildroot}%{_bindir}/lmbench
install -Dp -m0644 results/Makefile %{buildroot}%{_prefix}/lib/lmbench/results/Makefile
install -Dp -m0644 src/webpage-lm.tar %{buildroot}%{_prefix}/lib/lmbench/src/webpage-lm.tar

cp -avx bin/ scripts/ %{buildroot}%{_prefix}/lib/lmbench/
find %{buildroot}%{_prefix}/lib/lmbench/ -name 'Makefile*' -or -name '*.[ao]' -exec rm -f {} \;

chmod a-x %{buildroot}%{_prefix}/lib/lmbench/scripts/info-template

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3026 |21cr|lmctl-0.3.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Configuration tool for Logitech USB Mice
Name:		lmctl
Version:	0.3.2
Release:	9
License:	GPL
Group:		System/Configuration/Hardware
URL:		http://bedroomlan.dyndns.org/~alexios/coding_lmctl.html
Source0:	http://www.bedroomlan.org/~alexios/files/SOFTWARE/lmctl/%{name}_%{version}.tar.gz
# (abel) Recognize extra mouse IDs
Patch0:		lmctl-0.3.2-extra-devices.patch.bz2
# (abel) MX518 allows max 1600dpi resolution
Patch1:		lmctl-0.3.2-mx518.patch.bz2
# remove header not provided in modern system
Patch2:		lmctl-headers.patch
BuildRequires:	libusb-devel
Requires:	logitech-mouse-common

%description
LMCtl can manipulate the special features on recent Logitech USB
mice using Command Line interface. Features that can be controlled
or reported include:

o Wireless status reporting
o Battery charge indication
o Resolution
o SmartScroll.

%prep 
%autosetup -p1 -n %{name}-0.3.1

%build
%configure --bindir=%{_sbindir}
%make

%install
rm -rf  %{buildroot}
%makeinstall_std  
 
%clean
rm -rf %{buildroot}

%files  
%defattr(-,root,root)
%doc AUTHORS COPYING README debian/changelog
%{_sbindir}/*
%{_mandir}/man1/lmctl*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3027 |21cr|lnav-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A curses-based tool for viewing and analyzing log files
Name:		lnav
Version:	0.11.0
Release:	1
License:	BSD
Group:		File tools
Url:		http://lnav.org
Source0:	https://github.com/tstack/lnav/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	openssh
BuildRequires:	bzip2-devel
BuildRequires:	gpm-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

%description
The log file navigator is an enhanced log file viewer that takes
advantage of any semantic information that can be gleaned from
the files being viewed, such as timestamps and log levels. Using this
extra semantic information, it can do things like interleaving
messages from different files, generate histograms of messages over
time, and providing hotkeys for navigating through the file. It is
hoped that these features will allow the user to quickly and
efficiently zero in on problems.

%files
%doc LICENSE NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fiv
%configure --disable-static
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3028 |21cr|local-policy-0.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _unpackaged_files_terminate_build 1

Name:		local-policy
Version:	0.6.0
Release:	5

Summary:	Rosa Local policies (based on ALT Local policies)
License:	GPLv2+
Group:		System/Base
Url:		http://git.altlinux.org/people/sin/packages/local-policy.git

BuildArch:	noarch
#for pre_control macros
BuildRequires:	control

Requires(pre):	control
# for functions-local-policy
Requires(pre):	libcap-utils
Requires:	control-sshd-permit-root-login

Source0:	%{name}-%{version}.tar

%description
Local policies for Rosa (based on ALT solutions based on Sisyphus)
includes additional control facilities and default policies
templates in PReg format converted to XML.

%files
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}-system
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/control.d/facilities/*
%{_sysconfdir}/control.d/functions-local-policy
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

%pre
%{_sbindir}/groupadd -r -f remote 2> /dev/null ||:
%pre_control local-policy-system-access
if [ ! -f "/var/run/control/local-policy-system-access" ]; then
    [ ! -d "/var/run/control" ] ||
        echo restricted > "/var/run/control/local-policy-system-access"
fi

%post
%post_control -s restricted local-policy-system-access

#--------------------------------------------------------
%prep
%setup -q

%install
for i in sshd-gssapi-auth \
         sshd-allow-groups-list \
         ssh-gssapi-auth \
         krb5-conf-ccache \
         ldap-reverse-dns-lookup \
         ldap-tls-cert-check \
	 local-policy-system-access \
         sssd-ad-gpo-access-control \
         sssd-ad-gpo-ignore-unreadable \
         sssd-ad-update-machine-password \
         sssd-cache-credentials \
         sssd-drop-privileges \
         sssd-dyndns-update \
         sssd-dyndns-update-ptr \
         sssd-dyndns-refresh-interval \
         sssd-dyndns-ttl \
         autofs-browse-mode \
         smb-conf-idmap-backend \
         smb-conf-idmap-range \
         smb-conf-machine-password-timeout
do
        install -pD -m755 "controls/$i" \
                "%{buildroot}%{_sysconfdir}/control.d/facilities/$i"
done

install -pD -m755 "controls/functions-local-policy" \
        "%{buildroot}%{_sysconfdir}/control.d/"

mkdir -p "%{buildroot}%{_datadir}/%{name}"
cp -r policies/* "%{buildroot}%{_datadir}/%{name}"
mkdir -p "%{buildroot}%{_sysconfdir}/%{name}"
mkdir -p "%{buildroot}%{_sysconfdir}/%{name}-system"


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3029 |21cr|lockfile-progs-0.1.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Programs for locking and unlocking files and mailboxes
Name:		lockfile-progs
Version:	0.1.19
Release:	1
License:	GPLv2
Group:		System/Base
Url:		http://packages.qa.debian.org/lockfile-progs
Source0:	http://ftp.debian.org/debian/pool/main/l/lockfile-progs/%{name}_%{version}.tar.gz
# http://bugs.debian.org/cgi-bin/bugreport.cgi/diff.out?bug=244314;msg=10;att=1
BuildRequires:	lockfile-devel

%description
This package includes several programs to safely lock and unlock files and
mailboxes from the command line.

%prep 
%setup -q
%apply_patches

%build
%make CFLAGS="%{optflags}" CC=%{__cc}

%install
mkdir -p %{buildroot}%{_mandir}
cp -a bin %{buildroot}%{_bindir}
cp -a man %{buildroot}%{_mandir}/man1

%files
%doc TODO debian/changelog
%{_bindir}/lockfile-create
%{_bindir}/lockfile-check
%{_bindir}/lockfile-remove
%{_bindir}/lockfile-touch
%attr(2755,root,mail) %{_bindir}/mail-lock
%{_bindir}/mail-touchlock
%{_bindir}/mail-unlock
%{_mandir}/man1/lockfile-progs.1*
%{_mandir}/man1/lockfile-create.1*
%{_mandir}/man1/lockfile-check.1*
%{_mandir}/man1/lockfile-remove.1*
%{_mandir}/man1/lockfile-touch.1*
%{_mandir}/man1/mail-lock.1*
%{_mandir}/man1/mail-touchlock.1*
%{_mandir}/man1/mail-unlock.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3030 |21cr|log4cpp-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname log4cpp %{major}
%define develname %mklibname log4cpp -d

Summary:	Log for C++
Name:		log4cpp
Version:	1.1.3
Release:	1
License:	LGPLv2+
Group:		System/Libraries
URL:		http://log4cpp.sourceforge.net/
Source0:	https://downloads.sourceforge.net/project/log4cpp/log4cpp-1.1.x%20%28new%29/log4cpp-1.1/log4cpp-%{version}.tar.gz
Patch0:		log4cpp-1.0-gcc43.patch
Patch1:		log4cpp-1.0-remove-pc-cflags.patch
Patch2:		log4cpp-1.0-fix-doc-dest.patch
Patch3:		log4cpp-1.1.3-no-snprintf.patch
Patch4:		log4cpp-1.1.3-stime.patch
BuildRequires:	doxygen
BuildRequires:	libtool

%description
Log for C++ is a library of classes for flexible logging to files, syslog,
and other destinations. It is modeled after the Log for Java library and
stays as close to its API as is reasonable.

#---------------------------------------------------------------
%package -n	%{libname}
Summary:	Log for C++ library
Group:		System/Libraries

%description -n	%{libname}
Log for C++ is a library of classes for flexible logging to files, syslog,
and other destinations. It is modeled after the Log for Java library and
stays as close to its API as is reasonable.

This package contains the shared library needed to run programs using log4cpp.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#---------------------------------------------------------------

%package -n	%{develname}
Summary:	Development tools for Log for C++
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	liblog4cpp-devel = %{EVRD}
Provides:	log4cpp-devel = %{EVRD}

%description -n	%{develname}
Log for C++ is a library of classes for flexible logging to files, syslog,
and other destinations. It is modeled after the Log for Java library and
stays as close to its API as is reasonable.

This package contains the static libraries and header files needed for
development with %{libname}.

%files -n %{develname}
%{_includedir}/*
%{_bindir}/log4cpp-config
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/log4cpp.pc
%{_datadir}/aclocal/log4cpp.m4
%{_mandir}/*/*

#---------------------------------------------------------------

%package	doc
Summary:	HTML formatted API documention for Log for C++
Group:		Development/C++

%description	doc
The %{name}-doc package contains HTML formatted API documention generated
by the popular doxygen documentation generation tool.

%files doc
%doc %{_docdir}/*

#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

# Delete non-free (but freely distributable) file under Artistic 1.0
# just to be sure we're not using it.
rm -rf src/snprintf.c

%build
libtoolize --copy --force; aclocal -I m4; autoconf; autoheader; automake --add-missing --copy
export LIBS="-lpthread"

%configure \
    --enable-doxygen
%make

%check
make check

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3031 |21cr|log4cxx-0.13.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 13
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A port to C++ of the Apache Log4j project
Name:		log4cxx
Version:	0.13.0
Release:	2
License:	ASL 2.0
Group:		System/Libraries
Url:		http://logging.apache.org/log4cxx/
Source0:	http://apache.org/dist/logging/log4cxx/%{version}/apache-log4cxx-%{version}.tar.gz
Source1:	https://downloads.apache.org/logging/log4j/1.2.17/log4j-1.2.17.tar.gz
Patch0:		log4cxx-link.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	apr-devel
BuildRequires:	apr-util-devel
BuildRequires:	boost-devel
BuildRequires:	java-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	zip

%description
Apache Log4cxx is a popular logging package written in C++. One of its
distinctivefeatures is the notion of inheritance in loggers. Using a logger
hierarchy it is possible to control which log statements are output at
arbitrary granularity. This helps reduce the volume of logged output and
minimize the cost of logging.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A port to C++ of the Apache Log4j project
Group:		System/Libraries

%description -n %{libname}
Apache Log4cxx is a popular logging package written in C++. One of its
distinctivefeatures is the notion of inheritance in loggers. Using a logger
hierarchy it is possible to control which log statements are output at
arbitrary granularity. This helps reduce the volume of logged output and
minimize the cost of logging.

%files -n %{libname}
%doc KEYS LICENSE NOTICE
%{_libdir}/liblog4cxx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
A port to C++ of the Apache Log4j project.

This package contains libraries and header files need for development.

%files -n %{devname}
%doc build/src/site/html/
%dir %{_includedir}/log4cxx/
%{_includedir}/log4cxx/*.h
%{_includedir}/log4cxx/config
%{_includedir}/log4cxx/db
%{_includedir}/log4cxx/filter
%{_includedir}/log4cxx/helpers
%{_includedir}/log4cxx/net
%{_includedir}/log4cxx/nt
%{_includedir}/log4cxx/pattern
%{_includedir}/log4cxx/private
%{_includedir}/log4cxx/rolling
%{_includedir}/log4cxx/spi
%{_includedir}/log4cxx/varia
%{_includedir}/log4cxx/xml
%{_libdir}/liblog4cxx.so
%{_libdir}/pkgconfig/liblog4cxx.pc
%{_libdir}/cmake/log4cxx/*.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n apache-log4cxx-%{version}

mkdir -p build/_deps/log4j-subbuild/log4j-populate-prefix/src
cp %{SOURCE1} build/_deps/log4j-subbuild/log4j-populate-prefix/src

%build
%cmake \
	-DBUILD_SITE=ON

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3032 |21cr|log4net-1.2.15-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _monogacdir %{_prefix}/lib/mono/gac
%define _monodir %{_prefix}/lib/mono
%define debug_package %{nil}

Name:		log4net
Version:	1.2.15
Release:	6
Summary:	A .NET framework for logging
URL:		http://logging.apache.org/log4net/
License:	ASL 2.0
Group:		Development/Other
Source:		ttp://mirror.reverse.net/pub/apache/logging/log4net/source/%{name}-%{version}-src.zip
Source1:	log4net.pc
# https://github.com/apache/logging-log4net/commit/d0b4b0157d4af36b23c24a23739c47925c3bd8d7
Patch0:		CVE-2018-1285.patch
BuildArch:	noarch
BuildRequires:	mono-data-sqlite
BuildRequires:	mono-devel

%description
log4net is a tool to help the programmer output log statements to a
variety of output targets. log4net is a port of the excellent log4j
framework to the .NET runtime

%package devel
Summary:	A .NET framework for logging
Group:		Development/Other
Requires:	%{name} = %{version}
Requires:	pkgconfig

%description devel
log4net is a tool to help the programmer output log statements to a
variety of output targets. log4net is a port of the excellent log4j
framework to the .NET runtime

%prep
%setup -q
%autopatch -p1
sed -i 's/\r//' NOTICE
sed -i 's/\r//' README.txt
sed -i 's/\r//' LICENSE
# Remove prebuilt dll files
rm -rf bin/

# Fix for mono 4
find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \;
find . -name "*.csproj" -print -exec sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g' {} \;

# Use system mono.snk key
sed -i -e 's!"..\\..\\..\\log4net.snk")]!"/etc/pki/mono/mono.snk")]!' src/AssemblyInfo.cs
sed -i -e 's!|| SSCLI)!|| SSCLI || MONO)!' src/AssemblyInfo.cs

%build
# ASF recommend using nant to build log4net
xbuild /property:Configuration=Debug /property:DefineConstants=DEBUG,MONO,STRONG src/log4net.vs2010.csproj
#nant -buildfile:log4net.build -t:mono-2.0 compile-all

%install
mkdir -p %{buildroot}/%{_datadir}/pkgconfig
cp %{S:1} %{buildroot}/%{_datadir}/pkgconfig
mkdir -p $RPM_BUILD_ROOT/%{_monogacdir}
gacutil -i build/bin/net/*/debug/log4net.dll -f -package log4net -root ${RPM_BUILD_ROOT}/%{_prefix}/lib

%files
%{_monogacdir}/log4net
%{_monodir}/log4net
%doc LICENSE NOTICE README.txt

%files devel
%{_datadir}/pkgconfig/log4net.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3033 |21cr|logcheck-1.3.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Psionic LogCheck
Name:		logcheck
Version:	1.3.24
Release:	1
License:	GPLv2
Group:		Monitoring
Url:		http://logcheck.org
Source:		http://ftp.de.debian.org/debian/pool/main/l/logcheck/logcheck_%{version}.tar.xz
BuildRequires:	docbook-to-man
Requires:	lockfile-progs
Requires:	nail
Requires:	sendmail-command
Requires:	mime-construct

%description
Logcheck is a software package that is designed to automatically run and check 
system log files for security violations and unusual activity.  Logcheck 
utilizes a program called logtail that remembers the last position it read 
from in a log file and uses this position on subsequent runs to process new 
information.  All source code is available for review and the implementation 
was kept simple to avoid problems.  This package is a clone of the 
frequentcheck.sh script from the Trusted Information Systems Gauntlet(tm) 
firewall package.  TIS has granted permission for me to clone this package.

%files
%doc AUTHORS CHANGES CREDITS INSTALL LICENSE TODO docs/README.* README.urpmi
%config(noreplace) %{_sysconfdir}/cron.d/logcheck
%config(noreplace) %attr(-,root,logcheck) %{_sysconfdir}/logcheck
%{_sbindir}/logcheck
%{_sbindir}/logtail
%{_bindir}/logcheck-test
%{_sbindir}/logtail2
%{_datadir}/logtail
%{_mandir}/man8/logcheck.8*
%{_mandir}/man8/logtail.8*
%{_mandir}/man8/logtail2.8*
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
%attr(0700,logcheck,logcheck) %dir %{_localstatedir}/lib/%{name}

#--------------------------------------------------------------------------

%prep
%setup -q
echo "d /var/lock/logcheck 1700 logcheck logcheck 1d" > etc/tmpfiles.d-logcheck

%build
cd docs
docbook-to-man logcheck.sgml > logcheck.8

%install
%makeinstall_std

install -d %{buildroot}%{_mandir}/man8
install -m 644 docs/*.8 %{buildroot}%{_mandir}/man8

install -d %{buildroot}/%{_sysconfdir}/cron.d
cat > %{buildroot}/%{_sysconfdir}/cron.d/logcheck <<EOF
2 * * * * logcheck %{_sbindir}/logcheck
EOF

mkdir -pm 755 %{buildroot}%{_sysconfdir}/tmpfiles.d
install -pm 644 etc/tmpfiles.d-logcheck %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf

cat > README.urpmi <<EOF
Package notes
----------------------
In order to finish installation, you have to ensure the logcheck user has read
access to all log files listed in %{_sysconfdir}/logcheck/logcheck.logfiles
EOF

%clean

%pre
%_pre_useradd logcheck /var/lib/logcheck /bin/false

%post
systemd-tmpfiles --create %{name}.conf

%postun
%_postun_userdel logcheck

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3034 |21cr|logfinder-0.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		logfinder
Summary:	Helps Eliminate Unwanted Logging of Personal Data
Version:	0.1
Release:	9
Source0:	%{name}-%{version}.tar.bz2
Patch0:		logfinder-python3.patch
URL:		http://www.eff.org/news/archives/2005_02.php#002370
Group:		File tools
License:	GPL
Requires:	python3
BuildArch:	noarch

%description
By finding unwanted log files, logfinder informs system
administrators when their servers are collecting personal data
and gives them the opportunity to turn logging off if it isn't
gathering information necessary for administering the system.

%files
%doc README
%{_bindir}/logfinder.py

#--------------------------------------------------------------
%prep
%autosetup -p1

%install
install -m755 logfinder.py -D %{buildroot}%{_bindir}/logfinder.py

#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/logfinder.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3035 |21cr|loggedfs-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fuse-based filesystem which can log every operations that happens in it
Name:		loggedfs
Version:	0.9
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://rflament.github.io/loggedfs/
Source0:	https://github.com/rflament/loggedfs/archive/loggedfs-%{version}.tar.gz
Patch0:		loggedfs-makefile.patch
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	fuse

%description
LoggedFS is a fuse-based filesystem which can log every operations that happens
in it.

How it works: Fuse does almost everything. LoggedFS only sends a message
to syslog when called by fuse and then let the real filesystem do the
rest of the job.

%files
%doc LICENSE
%{_sysconfdir}/loggedfs.xml
%{_bindir}/loggedfs
%{_mandir}/man1/loggedfs.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
%make CC="g++ %{optflags}"

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3036 |21cr|logitech_applet-0.4test1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		logitech_applet
Version:	0.4test1
Release:	10
Summary:	Command line tool for Logitech mouse
License:	GPL
Group:		System/Configuration/Hardware
Source:		http://www.frogmouth.net/%{name}-%{version}.tar.bz2
# (abel) MX518 support
Patch0:		logitech_applet-0.4-mx518.patch.bz2
# (abel) More verbose error reporting for smart scroll
Patch1:		logitech_applet-0.4-verbose-report.patch.bz2
URL:		http://freshmeat.net/projects/logitech_applet/
BuildRequires:  libusb0.1-devel

%description
Logitech Mouse Applet is a small command line tool for setting 
the special features that are available on some Logitech mice. 
It is particularly useful to those who want to switch their mouse 
to 800cpi instead of the default 400cpi.

%prep
%setup -q
%patch0 -p1 -b .mx518
%patch1 -p1 -b .verbose

%build
%configure --bindir=%{_sbindir}
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc INSTALL README AUTHORS ChangeLog
%{_sbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3037 |21cr|logitech-mouse-common-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Shared data files and scripts for Logitech mice
Name:		logitech-mouse-common
Version:	0.1
Release:	10
License:	GPL
Group:		System/Configuration/Hardware		
Source0:	logitechmouse-sysconfig.bz2
Source1:	logitech-mouse.rules.bz2
Source2:	logitech-mouse-udev.sh.bz2
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch:	noarch
Requires:	lmctl

%description
This package contains scripts that turn on/off some certain feature
of recent Logitech USB mouse automatically when device is plugged
into system.

%prep

%build

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig
bzip2 -dc %{SOURCE0} > $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/logitechmouse
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/logitechmouse

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d
bzip2 -dc %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/80-logitech-mouse.rules
chmod 0644 $RPM_BUILD_ROOT%{_sysconfdir}/udev/rules.d/80-logitech-mouse.rules

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/scripts
bzip2 -dc %{SOURCE2} > $RPM_BUILD_ROOT%{_sysconfdir}/udev/scripts/logitech-mouse.sh
chmod 0755 $RPM_BUILD_ROOT%{_sysconfdir}/udev/scripts/logitech-mouse.sh

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/logitechmouse
%config(noreplace) %{_sysconfdir}/udev/rules.d/*.rules
%{_sysconfdir}/udev/scripts/*.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3038 |21cr|logwatch-7.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Analyzes and Reports on system logs
Name:		logwatch
Version:	7.7
Release:	1
License:	MIT
Group:		Monitoring
Url:		http://www.logwatch.org
Source0:	http://downloads.sourceforge.net/project/logwatch/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0:		logwatch-fixpath.patch
Requires:	coreutils
Requires:	grep
Requires:	mailx
Requires:	perl
BuildArch:	noarch

%description
Logwatch is a customizable, pluggable log-monitoring system.  It will go
through your logs for a given period of time and make a report in the areas
that you wish with the detail that you wish.  Easy to use - works right out
of the package on many systems.

%files
%doc README
%dir %{_sysconfdir}/log.d
%dir %{_sysconfdir}/log.d/conf
%dir %{_sysconfdir}/log.d/scripts
%dir %{_sysconfdir}/log.d/conf/logfiles
%dir %{_sysconfdir}/log.d/conf/services
%dir %{_sysconfdir}/log.d/scripts/logfiles
%dir %{_sysconfdir}/log.d/scripts/services
%dir %{_sysconfdir}/log.d/scripts/shared
%dir %{_sysconfdir}/log.d/scripts/logfiles/*
%dir %{_sysconfdir}/log.d/lib
%dir %{_var}/cache/%{name}
%config(noreplace) %{_sysconfdir}/log.d/conf/*.conf
%config(noreplace) %{_sysconfdir}/log.d/conf/services/*
%config(noreplace) %{_sysconfdir}/log.d/conf/logfiles/*
%{_sysconfdir}/log.d/scripts/%{name}.pl
%{_sbindir}/%{name}
%{_sysconfdir}/log.d/scripts/shared/*
%{_sysconfdir}/log.d/scripts/services/*
%{_sysconfdir}/log.d/scripts/logfiles/*/*
%{_sysconfdir}/log.d/%{name}
%{_sysconfdir}/log.d/lib/Logwatch.pm
%{_sysconfdir}/log.d/%{name}.conf
%{_sysconfdir}/cron.daily/0%{name}
%doc %{_mandir}/man8/%{name}.8*

#----------------------------------------------------------------------------

%prep
%setup
%patch0 -p0

%build

%install
install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/conf/logfiles
install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/conf/services
install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/scripts/services
install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/scripts/shared
install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/lib

mkdir -p %{buildroot}%{_var}/cache/%{name}

install -m 0755 scripts/logwatch.pl %{buildroot}%{_sysconfdir}/log.d/scripts/%{name}.pl
for i in scripts/logfiles/* ; do
   if [ $(ls $i | wc -l) -ne 0 ] ; then
      install -m 0755 -d %{buildroot}%{_sysconfdir}/log.d/$i
      install -m 0755 $i/* %{buildroot}%{_sysconfdir}/log.d/$i
   fi
done
install -m 0755 scripts/services/* %{buildroot}%{_sysconfdir}/log.d/scripts/services
install -m 0755 scripts/shared/* %{buildroot}%{_sysconfdir}/log.d/scripts/shared
install -m 0755 lib/* %{buildroot}%{_sysconfdir}/log.d/lib

install -m 0644 conf/*.conf %{buildroot}%{_sysconfdir}/log.d/conf
install -m 0644 conf/logfiles/* %{buildroot}%{_sysconfdir}/log.d/conf/logfiles
install -m 0644 conf/services/* %{buildroot}%{_sysconfdir}/log.d/conf/services

install -m 0755 -d %{buildroot}%{_mandir}/man8
install -m 0644 logwatch.8 %{buildroot}%{_mandir}/man8

rm -f %{buildroot}%{_sysconfdir}/log.d/%{name} \
   %{buildroot}%{_sysconfdir}/log.d/%{name}.conf \
   %{buildroot}%{_sysconfdir}/cron.daily/%{name} \
   %{buildroot}%{_sbindir}/%{name}

ln -s scripts/logwatch.pl %{buildroot}%{_sysconfdir}/log.d/%{name}
ln -s conf/logwatch.conf %{buildroot}%{_sysconfdir}/log.d/%{name}.conf
install -m 0755 -d %{buildroot}%{_sysconfdir}/cron.daily
ln -s ../log.d/scripts/logwatch.pl %{buildroot}%{_sysconfdir}/cron.daily/0%{name}
install -m 0755 -d %{buildroot}%{_sbindir}
ln -s ../..%{_sysconfdir}/log.d/scripts/logwatch.pl %{buildroot}%{_sbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3039 |21cr|lohit-kannada-fonts-2.4.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname lohit-kannada
%global fontconf 66-%{fontname}.conf

Name:           %{fontname}-fonts
Version:        2.4.5
Release:        11
Summary:        Free Kannada font
Group:          System/Fonts/True type 
License:        GPLv2 with exceptions
URL:            https://fedorahosted.org/lohit/
Source0:        https://fedorahosted.org/releases/l/o/lohit/%{fontname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires: fontforge
BuildRequires:  fontpackages-devel
Requires:       fontpackages-filesystem
Patch1: bug-578032.patch
Patch2: bug-576105.patch
Patch3: bug-576105-1.patch
Patch4: bug-673414.patch
Obsoletes: lohit-fonts-common < %{version}-%{release}

%description
This package provides a free Kannada truetype/opentype font.


%prep
%setup -q -n %{fontname}-%{version} 
%autopatch -p1

%build
make

%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                   %{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{fontconf} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}


%_font_pkg -f %{fontconf} *.ttf

%doc ChangeLog COPYRIGHT COPYING AUTHORS README ChangeLog.old

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3040 |21cr|lollypop-1.4.35-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}
%define	po_commit 7507b539fa9dd57c0b8cecff45579ac38cd40ba1

Summary:	A music player for GNOME
Name:		lollypop
Version:	1.4.35
Release:	2
License:	GPLv3+
Group:		Sound
Url:		https://gitlab.gnome.org/World/lollypop/tags
Source0:	https://gitlab.gnome.org/World/lollypop/-/archive/%{version}/%{name}-%{version}.tar.gz
# This is a separate upstream git with translations
Source1:	https://gitlab.gnome.org/gnumdk/lollypop-po/-/archive/%{po_commit}/%{name}-po-%{po_commit}.tar.gz
Source100:	lollypop.rpmlintrc
Patch0:		lollypop-1.4.26-fix-shebangs.patch
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	git
BuildRequires:	glib2.0-common
BuildRequires:	meson >= 0.46.0
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	ninja
BuildRequires:	python3-gobject-devel
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 1.35.9
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.22
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(pygobject-3.0) >= 3.29.1
Requires:	adwaita-icon-theme
Requires:	gnome-icon-theme-symbolic
Requires:	gsettings-desktop-schemas
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-ugly
Requires:	hicolor-icon-theme
Requires:	python3-beautifulsoup4
Requires:	python3-pillow
Requires:	python3-dbus
Requires:	python3-gi-cairo
Requires:	python3-sqlite3
Requires:	typelib(Gst)
Requires:	typelib(Soup)
Requires:	typelib(TotemPlParser)
Recommends:		easytag
Recommends:		python3-pylast
Recommends:		youtube-dl
BuildArch:	noarch

%description
Lollypop is a new GNOME music playing application.

%files -f %{name}.lang
%doc AUTHORS
%{_bindir}/%{name}
%{_libexecdir}/%{name}-sp
%{_datadir}/metainfo/org.gnome.Lollypop.appdata.xml
%{_datadir}/applications/org.gnome.Lollypop.desktop
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}.gresource
%{_datadir}/dbus-1/services/org.gnome.Lollypop.SearchProvider.service
%{_datadir}/gnome-shell/search-providers/org.gnome.Lollypop.SearchProvider.ini
%{_mandir}/man1/%{name}.1*
%{_iconsdir}/hicolor/*/apps/org.gnome.Lollypop.png
%{_iconsdir}/hicolor/*/apps/org.gnome.Lollypop.svg
%{_iconsdir}/hicolor/*/apps/org.gnome.Lollypop-symbolic.svg
%{_iconsdir}/hicolor/scalable/actions/org.gnome.Lollypop-*.svg
%{py3_puresitedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Install the translation files
tar -xf %{SOURCE1}
mv -v %{name}-po-%{po_commit}/* subprojects/po


%build
%meson
%meson_build


%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3041 |21cr|lollypop-portal-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Lollypop flatpak portal (advanced features for Lollypop)
Name:		lollypop-portal
Version:	0.9.2
Release:	1
License:	GPLv3+
Group:		Sound
Url:		https://github.com/gnumdk/lollypop-portal
Source0:	https://github.com/gnumdk/lollypop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
Patch0:		lollypop-portal-libexecdir-location.patch
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(python3)

%description
Lollypop portal DBus service allows Lollypop to launch external commands
(pa-cmd, kid3-cli etc) through flatpak sandbox. This service is also used
when running without sandbox.

%files
%doc LICENSE README.md
%{_datadir}/dbus-1/services/org.gnome.Lollypop.Portal.service
%{_libexecdir}/lollypop-portal

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%meson

%install
%meson_install

chmod +x %{buildroot}%{_libexecdir}/lollypop-portal

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3042 |21cr|loloswitcher-0.39-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	The low level keyboard language switcher for X11
Name:		loloswitcher
Version:	0.39
Release:	1
License:	GPLv3
Group:		System/Base
Url:		https://github.com/xintrea/LoLoSwitcher
Source0:	https://github.com/xintrea/LoLoSwitcher/archive/refs/tags/v.%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.service
BuildRequires:	cmake
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(pthread-stubs)

%description
The low level keyboard language switcher for X11.

%files
%{_sbindir}/loloswitcher
%{_userunitdir}/%{name}.service
#------------------------------------------------------------------

%prep
%autosetup -p1 -n LoLoSwitcher-v.%{version}

%build
export CXXFLAGS="%{optflags} -Wno-error=format-security"
%cmake
%make

%install
%makeinstall_std -C build

install -d %{buildroot}%{_userunitdir}
install -m0644 %{SOURCE1} %{buildroot}%{_userunitdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3043 |21cr|lomoco-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn_rev r133

%define major 0
%define libname %mklibname lomoco %{major}
%define devname %mklibname lomoco -d

Summary:	Logitech mouse control tool
Name:		lomoco
Version:	1.0.0
Release:	1
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://www.lomoco.org/
Source0:	http://www.lomoco.org/lomoco-%{svn_rev}.tar.bz2
Patch0:		lomoco-trunk-config.patch
Patch1:		lomoco-1.0-lomoco_get_debug_level.patch
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(libusb)

%description
Lomoco can configure vendor-specific options on Logitech USB mice (or
dual-personality mice plugged into the USB port). A number of recent devices
are supported. The program is mostly useful in setting the resolution to 800
cpi or higher on mice that boot at 400 cpi (such as the MX500, MX510, MX1000
etc.), and disabling SmartScroll or Cruise Control for those who would rather
use the two extra buttons as ordinary mouse buttons.

Supported devices:

Cordless Mouse Receiver
Cordless MouseMan Optical
Cordless Optical Mouse
Cordless TrackMan Wheel
G3 Gaming Laser Mouse
G5 Gaming Laser Mouse
MX Revolution Mouse
MX1000 Laser Cordless Mouse
MX300 Optical Mouse
MX310 Optical Mouse
MX500 Optical Mouse
MX510 Optical Mouse
MX518 Optical Mouse
MX900 Cordless Mouse
MouseMan Dual Optical
MouseMan Traveler
Optical Wheel Mouse
USB Receiver
UltraX Optical Mouse
V200 Cordless Notebook Mouse
VX Revolution Mouse
Wheel Mouse Optical
diNovo Media Desktop Receiver
iFeel Mouse

%files
%{_bindir}/lomoco
%{_sysconfdir}/lomoco.ini

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for lomoco
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with lomoco.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for lomoco
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files needed to develop programs
linked with lomoco.

%files -n %{devname}
%doc build/doc/html/*
%{_includedir}/*
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q -n lomoco-trunk
%patch0 -p1
%patch1 -p1

%build
export CFLAGS="%{optflags} -fPIC"
%cmake -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir}
%make
%make doc

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_bindir}
install -m 0755 build/client/lomoco %{buildroot}%{_bindir}/lomoco
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/lomoco

mkdir -p %{buildroot}%{_sysconfdir}
mv %{buildroot}%{_prefix}%{_sysconfdir}/lomoco.ini %{buildroot}%{_sysconfdir}/lomoco.ini

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3044 |21cr|lorax-34.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Tool for creating the anaconda install images
Name:		lorax
Version:	34.3
Release:	1
Group:		System/Base
License:	GPLv2+
Url:		https://github.com/weldr/lorax
# To generate Source0 do:
# git clone https://github.com/weldr/lorax
# git checkout -b archive-branch lorax-%%{version}-%%{release}
# tito build --tgz
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
Requires:	GConf2
Requires:	cdrkit-genisoimage
Requires:	cpio
Requires:	device-mapper
Requires:	dosfstools
Requires:	dracut
Requires:	e2fsprogs
Requires:	findutils
Requires:	gawk
Requires:	glibc
Requires:	gzip
Requires:	isomd5sum
Requires:	kpartx
Requires:	module-init-tools
Requires:	parted
Requires:	pbzip2
Requires:	pigz
Requires:	psmisc
Requires:	python3-dnf
Requires:	python3-kickstart
Requires:	python3-librepo
Requires:	python3-mako
Requires:	python3-pycdlib
Requires:	squashfs-tools
Requires:	util-linux
Requires:	xz

%ifarch %{ix86} x86_64
Requires:	syslinux
%endif

%ifarch aarch64
Requires:	uboot-tools
%endif

%description
Lorax is a tool for creating the anaconda install images.

It also includes livemedia-creator which is used to create bootable livemedia,
including live isos and disk images. It can use libvirtd for the install, or
Anaconda's image install feature.

%files
%doc COPYING AUTHORS docs/composer-cli.rst docs/lorax.rst docs/livemedia-creator.rst docs/product-images.rst docs/lorax-composer.rst docs/*ks docs/html/*
%{_bindir}/image-minimizer
%{_bindir}/mk-s390-cdboot
%{_mandir}/man1/lorax.1*
%{_mandir}/man1/livemedia-creator.1*
%{_mandir}/man1/mkksiso.1*
%{python3_sitelib}/pylorax
%{python3_sitelib}/*.egg-info
%{_sbindir}/lorax
%{_sbindir}/mkefiboot
%{_sbindir}/livemedia-creator
%{_sbindir}/mkksiso
%config(noreplace) %{_sysconfdir}/lorax/lorax.conf
%{_tmpfilesdir}/lorax.conf

#----------------------------------------------------------------------------

%package lmc-virt
Summary:	livemedia-creator libvirt dependencies
Group:		System/Base
%ifarch x86_64
Requires:	edk2-ovmf
%endif
%ifarch %{ix86}
Requires:	edk2-ovmf-ia32
%endif
Recommends:	qemu-kvm

%description lmc-virt
Additional dependencies required by livemedia-creator when using it with qemu.

%files lmc-virt

#----------------------------------------------------------------------------

%package lmc-novirt
Summary:	livemedia-creator no-virt dependencies
Group:		System/Base
Requires:	lorax = %{EVRD}
Requires:	anaconda-core
Requires:	anaconda-tui
Requires:	createrepo_c
Requires:	gdb
Requires:	hfsplus-tools
Requires:	isomd5sum
Requires:	kexec-tools
Requires:	libblockdev-plugins-all
Requires:	realmd
Requires:	rsync
Requires:	tmux
#Requires:	udisks2-iscsi	#udisks2 upd?
#Requires:	system-logos	#?

%description lmc-novirt
Additional dependencies required by livemedia-creator when using it with --no-virt
to run Anaconda.

%files lmc-novirt

#----------------------------------------------------------------------------

%package templates-generic
Summary:	Generic build templates for lorax and livemedia-creator
Group:		System/Base
Requires:	lorax = %{EVRD}
Provides:	lorax-templates = %{EVRD}

%description templates-generic
Lorax templates for creating the boot.iso and live isos are placed in
/usr/share/lorax/templates.d/99-generic

%files templates-generic
%{_datadir}/lorax/templates.d/*

#----------------------------------------------------------------------------

%package -n composer-cli
Summary:	A command line tool for use with the lorax-composer API server
Group:		System/Base
Requires:	python3-urllib3
Requires:	python3_toml

%description -n composer-cli
A command line tool for use with the lorax-composer API server. Examine blueprints,
build images, etc. from the command line.

%files -n composer-cli
%{_bindir}/composer-cli
%{_mandir}/man1/composer-cli.1*
%{python3_sitelib}/composer/*
%{_sysconfdir}/bash_completion.d/composer-cli

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3045 |21cr|lottanzb-0.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LottaNZB - Automated Usenet Client
Name:		lottanzb
Version:	0.6
Release:	4
License:	GPL
Group:		Networking/News
Url:		http://www.lottanzb.org/
Source0:	http://launchpad.net/lottanzb/0.6/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	python-devel
BuildRequires:	pygtk2.0-devel
BuildRequires:	python-kiwi
BuildRequires:	intltool
Requires:	python-kiwi
Requires:	python
Requires:	hellanzb
Requires:	pygtk2.0
Requires:	pygtk2.0-libglade
Requires:	python-configobj
BuildArch:	noarch

%description
LottaNZB is a Usenet client that automates the download of 
Usenet files with the help of NZB files. It uses HellaNZB as
its backend and PyGTK for its user interface.

%prep
%setup -q

%build
python setup.py build

%install
python setup.py install --packaging-mode --root=%{buildroot}

%find_lang %{name} --with-gnome

rm -fr %{buildroot}%{_datadir}/doc

%files -f %{name}.lang
#%{_sysconfdir}/apport/crashdb.conf.d/lottanzb-crashdb.conf
#%{_datadir}/apport
%{_bindir}/*
%{py_puresitedir}/%{name}/*
%{_datadir}/%{name}/*
%{_datadir}/icons/*
%{py_puresitedir}/%{name}-%{version}-*.egg-info
%{_mandir}/man1/*
%{_datadir}/application-registry/lottanzb.applications
%{_datadir}/applications/lottanzb.desktop
%{_datadir}/mime-info/%{name}.*
%{_datadir}/mime/packages/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3046 |21cr|lout-3.40-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Lout document formatting language
Name:		lout
Version:	3.40
Release:	1
License:	GPLv3+
Group:		Text tools
Url:		http://lout.sourceforge.net/
Source0:	https://download.savannah.nongnu.org/releases/lout/%{name}-%{version}.tar.gz
Patch0:		lout-3.40-fix-makefile.patch
Patch1:		lout-3.40-CVE-2019-19917_19918.patch
BuildRequires:	ghostscript

%description
Lout is a high-level language for document formatting. It reads a high-level
description of a document (similar in style to LaTeX) and can produce a
PostScript(TM) file for printing or produce plain text. It supports the
typesetting of documents which contain floating figures, table, diagrams,
rotated and scaled text or graphics, footnotes, running headers, footers, an
index, a table of contents and bibliography, cross-references, mathematical
equations and statistical graphs. It can be extended with definitions that
should be easier to write than other languages, since Lout is a high-level
language. It supports (with hyphenation) a variety of languages:  Czech,
Danish, Dutch, English, Finnish, French, German, Norwegian, Russian,
Slovenian, Spanish and Swedish.
Unless you're already a Lout expert, you'll probably want to also install the
lout-doc package, which contains the documentation for Lout.

%files
%doc blurb README maillist whatsnew notes_dsc
%{_bindir}/%{name}
%{_bindir}/prg2lout
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%package doc
Summary:	The documentation for the Lout document formatting language
Group:		Books/Computer books

%description doc
The lout-doc package includes all of the documentation for the Lout document
formatting language. The documentation includes manuals for regular users and
for experts, written in Lout and available as PostScript(TM) files.
The documentation provides good examples for how to write large documents with
Lout.
If you're installing the lout package, you should install also this package.

%files doc
%doc doc/

#-----------------------------------------------------------------------------

%prep
%setup -q 
%patch0 -p1
%patch1 -p1

# Fix perms
chmod 644 doc/user/v*
chmod 755 doc
pushd doc
	for i in user slides expert design; do
		chmod 755 $i
	done
popd


%build
%make COPTS="%{optflags}" \
	BINDIR="%{_bindir}" \
	LOUTLIBDIR="%{_datadir}/%{name}" \
	LOUTDOCDIR="%{_datadir}/%{name}/doc" \
	MANDIR="%{_mandir}/man1" \
	LIBDIR="%{_datadir}/%{name}" %{name} prg2lout

# We need to build the provided docs, otherwise we
# don't get them in an usable format.
# 1. Provide an utility function to generate the PDF
function render_docs {
	subdir=$1
	pdf_file=$2
	passes=$3

	curdir=$(pwd)
	pushd doc/$subdir

# We need to set the PATH variable here, because lout eventually exec's
# prg2lout; so, in order to find it, we have to set the PATH.
# We also need to tell lout where to find its files, since we haven't
# installed them in their final location (/usr/share/lout/) yet.
		PATH=$curdir %{name} \
			-I $curdir/include \
			-D $curdir/data \
			-F $curdir/font \
			-H $curdir/hyph \
			-C $curdir/maps \
			-r${passes} all > outfile.ps
# Note: the above clobbers the prebuilt file outfile.ps, included in the source tarball.
		ps2pdf outfile.ps ../${pdf_file}
		rm *.li *.ld outfile.ps
	popd
}
# 2. Use it...
render_docs design design.pdf       3
render_docs expert expert-guide.pdf 4
render_docs slides slides.pdf       2
render_docs user   user-guide.pdf   6


%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/locale

%makeinstall_std BINDIR="%{_bindir}" DATADIR="%{_datadir}" \
				 LOUTLIBDIR="%{_datadir}/%{name}" \
				 LOUTDOCDIR="%{_datadir}/%{name}/doc" \
				 MANDIR="%{_mandir}/man1"

# Install man pages
install -m 0644 man/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3047 |21cr|love-11.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 11.4
%define libname %mklibname %{name} %{major}

Summary:	A free 2D game engine which enables easy game creation in Lua
Name:		love
Version:	11.4
Release:	2
License:	zlib
Group:		Games/Arcade
Url:		http://love2d.org
Source0:	https://github.com/love2d/love/releases/download/%{version}/love-%{version}-linux-src.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libgme)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Requires:	%{libname} = %{EVRD}

%description
LÖVE is an open source, cross platform 2D game engine which uses the
Lua scripting language. LÖVE can be used to make games of any license
allowing it to be used for both free and non-free projects.

%files
%doc *.txt *.md
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/mimetypes/
%{_mandir}/man1/%{name}.1.xz

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for LOVE
Group:		System/Libraries

%description -n %{libname}
LÖVE is an open source, cross platform 2D game engine which uses the
Lua scripting language. LÖVE can be used to make games of any license
allowing it to be used for both free and non-free projects.


%files -n %{libname}
%doc *.txt *.md
%{_libdir}/lib%{name}-%{major}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1
#Fixing line encoding:
sed -i 's/\r//' license.txt
#Fixing permissions:
chmod a-x src/libraries/*/*/*/*.* src/libraries/*/*.*

%build
%configure --bindir=%{_gamesbindir} \
	--enable-gme \
	--disable-static
%make

%install
%makeinstall_std

for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 \
		%{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -strip -resize $size platform/unix/love.svg \
		%{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

desktop-file-edit --remove-category=Development \
	--add-category=ArcadeGame \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

find %{buildroot} -name '*.la' -delete
rm -f %{buildroot}%{_libdir}/lib%{name}.so
rm -fr %{buildroot}%{_datadir}/pixmaps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3048 |21cr|lovpn-0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		lovpn
Version:	0.6
Release:	2
Group:		Networking/Other
Summary:	Simple loader of free OpenVPN configurations
License:	GPLv3
URL:		https://github.com/AKotov-dev/%{name}
Source0:	https://github.com/AKotov-dev/lovpn/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	curl

%description
Lovpn - is a simple loader of free password-free OpenVPN configurations (*.ovpn) 
from open sources. Don't forget to open the iptables ports.

%files
%doc ../README.md
%license ../LICENSE
%{_datadir}/lovpn/
%{_datadir}/applications/lovpn.desktop
%{_datadir}/pixmaps/lovpn.png

#-----------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp %{name} %{buildroot}%{_datadir}/%{name}
cp ico/lovpn.png %{buildroot}%{_datadir}/pixmaps/
cp all/usr/share/applications/lovpn.desktop %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3049 |21cr|lpairs-1.0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Memory game
Name:		lpairs
Version:	1.0.4
Release:	8
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://lgames.sourceforge.net/index.php?project=LPairs
Source0:	http://peterhost.dl.sourceforge.net/sourceforge/lgames/%{name}-%{version}.tar.gz
Patch0:		lpairs-1.0.4-fix-desktop.patch
BuildRequires:	imagemagick
BuildRequires:	texinfo
BuildRequires:	pkgconfig(sdl)

%description
LPairs is a classical memory game. This means you have to find pairs of
identical cards which will then be removed. Your time and tries needed will be
counted but there is no highscore chart or limit to this.

%files -f %{name}.lang
%doc README
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_iconsdir}/*.png
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%global optflags %{optflags} -std=gnu89
%configure \
	--bindir=%{_gamesbindir} \
	--localstatedir=%{_localstatedir}/lib/games
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications/
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/

mkdir -p %{buildroot}%{_iconsdir}/
convert -resize 32x32 %{name}.png %{buildroot}%{_iconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3050 |21cr|lpc10-1.5-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	LPC-10 2400 bps Voice Coder
Name:		lpc10
Version:	1.5
Release:	22
License:	Distributable
Group:		Sound
Url:		http://www.arl.wustl.edu/~jaf/lpc/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-shared.patch
BuildRequires:	libtool

%description
LPC-10 2400 bps Voice Coder library and tools.

%files
%doc FAQ README README-1.0 README.lpc10 README.tools
%attr(0755,root,root) %{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The shared LPC-10 2400 bps Voice Coder Library
Group:		System/Libraries
Conflicts:	%{_lib}lpc10_1 < 1.5-18
Obsoletes:	%{_lib}lpc10_1 < 1.5-18

%description -n %{libname}
LPC-10 2400 bps Voice Coder library and tools.

%files -n %{libname}
%{_libdir}/liblpc10.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	LPC-10 2400 bps Voice Coder development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
LPC-10 2400 bps Voice Coder headers and static library.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
make -C \
    lpc55-C \
    CC="%{__cc} %{?ldflags}" \
    LIBDIR="%{_libdir}" \
    OPT="%{optflags} -fPIC"

%install
make -C lpc55-C \
    DESTDIR=%{buildroot} \
    LIBDIR="%{_libdir}" \
    install

cp -f lpc55-C/README README.tools
cp -f lpc55-C/lpc10/README README.lpc10

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3051 |21cr|lprng-3.8.35-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname LPRng

%global optflags %{optflags} -fcommon

Summary:	LPRng Print Spooler
Name:		lprng
Version:	3.8.35
Release:	1
License:	GPL and Artistic
Group:		System/Configuration/Printing
Url:		http://www.lprng.com
Source0:	http://www.lprng.com/DISTRIB/LPRng/%{rname}-%{version}.tgz
Source1:	lprng.startup
Patch1:		LPRng-typo_fix.diff
Patch2:		lprng-3.8.32-Werror=format-security.patch
BuildRequires:	gdbm-devel
BuildRequires:	gettext-devel
BuildRequires:	procps-ng
Requires:	net-tools
Requires:	%{name}-client >= %{version}
Provides:	lpr = %{EVRD}
Provides:	lpddaemon = %{EVRD}
Requires(post,preun):	update-alternatives

%description
The LPRng software is an enhanced, extended, and portable implementation of
the Berkeley LPR print spooler functionality. While providing the same
interface and meeting RFC1179 requirements, the implementation is completely
new and provides support for the following features: lightweight (no databases
needed) lpr, lpc, and lprm programs; dynamic redirection of print queues;
automatic job holding; highly verbose diagnostics; multiple printers serving a
single queue; client programs do not need to run SUID root; greatly enhanced
security checks; and a greatly improved permission and authorization mechanism.

%package client
Group:		System/Configuration/Printing
Summary:	LPRng printing client
Requires(post,preun):	update-alternatives

%description client
The LPRng software is an enhanced, extended, and portable implementation of
the Berkeley LPR print spooler functionality. While providing the same
interface and meeting RFC1179 requirements, the implementation is completely
new and provides support for the following features: lightweight (no databases
needed) lpr, lpc, and lprm programs; dynamic redirection of print queues;
automatic job holding; highly verbose diagnostics; multiple printers serving a
single queue; client programs do not need to run SUID root; greatly enhanced
security checks; and a greatly improved permission and authorization mechanism.

This package contains the LPRng client tools.

%prep
%setup -q -n %{rname}-%{version}

# Security fix: Restrict remote access
perl -p -i -e "s/^\#REJECT SERVICE=X/REJECT SERVICE=X NOT SERVER\n\#REJECT SERVICE=X/" lpd.perms.in

%patch1 -p0
%patch2 -p1

# Modified startup file with various system checks
cp %{SOURCE1} lprng.startup

%build
%serverbuild

%configure \
    --enable-nls \
    --with-userid=lp \
    --with-groupid=lp \
    --disable-werror

make

%install
# Suppress automatic replacement of "echo" by "gprintf" in the LPRng
# startup script by RPM. This automatic replacement is broken.
export DONT_GPRINTIFY=1

# Installation of locales is broken... Work around it! (They will never get
# it correct)
perl -pi -e "s,prefix =.*,prefix = %{buildroot}%{_prefix},g" po/Makefile
perl -pi -e "s,datadir =.*,datadir = %{buildroot}%{_prefix}/share,g" po/Makefile
perl -pi -e "s,localedir =.*,localedir = %{buildroot}%{_prefix}/share/locale,g" po/Makefile
perl -pi -e "s,gettextsrcdir =.*,gettextsrcdir = %{buildroot}%{_prefix}/share/gettext/po,g" po/Makefile

make SUID_ROOT_PERMS=" 04755" \
    DESTDIR=%{buildroot} \
    MAKEPACKAGE=YES \
    DATADIR="%{_datadir}/LPRng" \
    mandir=%{_mandir} install

cp src/monitor %{buildroot}%{_prefix}/sbin/monitor

# install init script
install -d %{buildroot}%{_initrddir}
install -m0755 lprng.startup %{buildroot}%{_initrddir}/lpd

# prepare the commands conflicting with CUPS for the update-alternatives
# treatment
( cd %{buildroot}%{_bindir}
  rm -f lp
  ln -s lpr-lpd lp
  rm -f cancel
  ln -s lprm-lpd cancel
  mv lpr lpr-lpd
  mv lpq lpq-lpd
  mv lprm lprm-lpd
  mv lp lp-lpd
  mv cancel cancel-lpd
  mv lpstat lpstat-lpd
)
( cd %{buildroot}%{_sbindir}
  mv lpc lpc-lpd
)
( cd %{buildroot}%{_mandir}/man1
  mv lpr.1 lpr-lpd.1
  mv lpq.1 lpq-lpd.1
  mv lprm.1 lprm-lpd.1
  mv lp.1 lp-lpd.1
  mv cancel.1 cancel-lpd.1
  mv lpstat.1 lpstat-lpd.1
)
( cd %{buildroot}%{_mandir}/man8
  mv lpc.8 lpc-lpd.8
)

# Conflict with setup package
rm -f %{buildroot}%{_sysconfdir}/printcap
rm -rf %{buildroot}%{_datadir}/LPRng
rm -f %{buildroot}%{_sysconfdir}/rc.d/init.d/lpd.sample

%find_lang %{rname}

%post
/sbin/chkconfig --add lpd
%{_sbindir}/update-alternatives --install %{_sbindir}/lpc lpc %{_sbindir}/lpc-lpd 5 --slave \
    %{_mandir}/man8/lpc.8%{_extension} lpc.8%{_extension} %{_mandir}/man8/lpc-lpd.8%{_extension}

%post client
if [ -w /etc/printcap ] ; then
  TMP1=`mktemp /etc/printcap.XXXXXX`
  gawk '
    BEGIN { first = 1; cont = 0; last = "" }
    /^[:space:]*#/      { if(cont) sub("\\\\$", "", last)}
    { if(first == 0) print last }
    { first = 0 }
    { last = $0 }
    { cont = 0 }
    /\\$/ { cont = 1 }
    END {sub("\\\\$", "", last); print last}
  ' /etc/printcap > ${TMP1} && cat ${TMP1} > /etc/printcap && rm -f ${TMP1}
fi

# Set up update-alternatives entries
%{_sbindir}/update-alternatives --install %{_bindir}/lpr lpr %{_bindir}/lpr-lpd 5 \
    --slave %{_mandir}/man1/lpr.1%{_extension} lpr.1%{_extension} %{_mandir}/man1/lpr-lpd.1%{_extension}

%{_sbindir}/update-alternatives --install %{_bindir}/lpq lpq %{_bindir}/lpq-lpd 5 \
    --slave %{_mandir}/man1/lpq.1%{_extension} lpq.1%{_extension} %{_mandir}/man1/lpq-lpd.1%{_extension}

%{_sbindir}/update-alternatives --install %{_bindir}/lprm lprm %{_bindir}/lprm-lpd 5 \
    --slave %{_mandir}/man1/lprm.1%{_extension} lprm.1%{_extension} %{_mandir}/man1/lprm-lpd.1%{_extension}

%{_sbindir}/update-alternatives --install %{_bindir}/lp lp %{_bindir}/lp-lpd 5 \
    --slave %{_mandir}/man1/lp.1%{_extension} lp.1%{_extension} %{_mandir}/man1/lp-lpd.1%{_extension}

%{_sbindir}/update-alternatives --install %{_bindir}/cancel cancel %{_bindir}/cancel-lpd 5 \
    --slave %{_mandir}/man1/cancel.1%{_extension} cancel.1%{_extension} %{_mandir}/man1/cancel-lpd.1%{_extension}

%{_sbindir}/update-alternatives --install %{_bindir}/lpstat lpstat %{_bindir}/lpstat-lpd 5 \
    --slave %{_mandir}/man1/lpstat.1%{_extension} lpstat.1%{_extension} %{_mandir}/man1/lpstat-lpd.1%{_extension}

%preun
if [ "$1" = 0 ]; then
    %{_initrddir}/lpd stop >/dev/null 2>&1
	/sbin/chkconfig --del lpd
    %{_sbindir}/update-alternatives --remove lpc /usr/sbin/lpc-lpd
fi

%preun client
if [ "$1" = 0 ]; then
    # Remove update-alternatives entries
    %{_sbindir}/update-alternatives --remove lpr /usr/bin/lpr-lpd
    %{_sbindir}/update-alternatives --remove lpq /usr/bin/lpq-lpd
    %{_sbindir}/update-alternatives --remove lprm /usr/bin/lprm-lpd
    %{_sbindir}/update-alternatives --remove lp /usr/bin/lp-lpd
    %{_sbindir}/update-alternatives --remove cancel /usr/bin/cancel-lpd
    %{_sbindir}/update-alternatives --remove lpstat /usr/bin/lpstat-lpd
fi

%postun
if [ "$1" -ge "1" ]; then
    %{_initrddir}/lpd condrestart >/dev/null 2>&1
fi

%files -f %{rname}.lang
%doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE
%doc README* VERSION Y2KCompliance
%doc DOCS/*.htm* DOCS/*.jpg DOCS/*.png DOCS/*.txt DOCS/*.pdf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/printcap*
%attr(0755,root,root) %{_initrddir}/lpd
%{_sbindir}/checkpc
%{_sbindir}/lpd
%{_sbindir}/lprng_certs
%{_sbindir}/lprng_index_certs
%{_sbindir}/monitor
%attr(0755,lp,lp) %{_sbindir}/lpc-lpd
%attr(0755,root,root) %{_libexecdir}/filters/*
%attr(0755,root,root) %{_libdir}/liblpr*
%{_mandir}/*/*

%files client
%doc CHANGES CONTRIBUTORS COPYRIGHT INSTALL LICENSE 
%doc README* VERSION Y2KCompliance
%doc DOCS/*.htm* DOCS/*.jpg DOCS/*.png DOCS/*.txt DOCS/*.pdf
%attr(0755,root,root) %dir %{_sysconfdir}/lpd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/lpd/*
%attr(0755,lp,lp) %{_bindir}/lpq-lpd
%attr(0755,lp,lp) %{_bindir}/lprm-lpd
%attr(0755,lp,lp) %{_bindir}/lpr-lpd
%attr(0755,lp,lp) %{_bindir}/lpstat-lpd
%{_bindir}/lp-lpd
%{_bindir}/cancel-lpd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3052 |21cr|lrcalc-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		lrcalc
Group:		Sciences/Mathematics
Version:	2.1
Release:	1
License:	GPLv2+
Summary:	Littlewood-Richardson Calculator
URL:		http://math.rutgers.edu/~asbuch/lrcalc
Source0:	http://math.rutgers.edu/~asbuch/lrcalc/%{name}-%{version}.tar.gz
Source1:	%{name}.rpmlintrc

%description
The "Littlewood-Richardson Calculator" is a package of C and Maple programs
for computing Littlewood-Richardson coefficients. The C programs form the
engine of the package, providing fast calculation of single LR coefficients,
products of Schur functions, and skew Schur functions. The Maple code mainly
gives an interface which makes it possible to use the C programs from Maple.
This interface uses the same notation as the SF package of John Stembridge,
to make it easier to use both packages at the same time.

%package	devel
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description    devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q

%build
%configure --bindir=%{_libdir}/%{name} --enable-shared --disable-static
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%check
make check

%files
%doc AUTHORS
%doc ChangeLog
%doc COPYING
%doc LICENSE
%doc README
%{_datadir}/%{name}
%{_libdir}/%{name}
%{_libdir}/lib%{name}.so.*

%files		devel
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3053 |21cr|lrzip-0.641-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname lrzip %{major}
%define devname %mklibname lrzip -d

Summary:	Long Range ZIP or Lzma RZIP
Name:		lrzip
Version:	0.641
Release:	1
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://ck.kolivas.org/apps/lrzip/
Source0:	http://ck.kolivas.org/apps/lrzip/%{name}-%{version}.tar.xz
BuildRequires:	bzip2-devel
BuildRequires:	liblzo2-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblz4)
Requires:	tar

%description
This is a compression program optimized for large files. The larger the file
and the more memory you have, the better the compression advantage this will
provide, especially once the files are larger than 100MB. The advantage can
be chosen to be either size (much smaller than bzip2) or speed (much faster
than bzip2).

%files
%{_bindir}/lr*
%doc %{_docdir}/%{name}
%{_mandir}/man?/*.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	lrzip shared library
Group:		System/Libraries

%description -n %{libname}
This package contains lrzip shared library.

%files -n %{libname}
%{_libdir}/liblrzip.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	lrzip shared library
Group:		Development/C

%description -n %{devname}
This package contains dfevelopment files for lrzip library.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/liblrzip.so
%{_libdir}/pkgconfig/lrzip.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3054 |21cr|lsdvd-0.18-0.20141025.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Pick up a few lttle fixes from upstream
%define	git		1
%define	gitdate	20141025

Name:		lsdvd
Summary:	Reads and prints the contents of a dvd in plain English
%if %{git}
Version:	0.18
Release:	0.%{gitdate}.1
%else
Version:	0.17
Release:	3
%endif
License:	GPLv2+
Group:		Video
Url:		https://sourceforge.net/projects/lsdvd/
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
%else
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
%endif
Patch2:		%{name}-0.16-ocode.patch
BuildRequires:	pkgconfig(dvdread) >= 4.1.3

%description
Lsdvd reads and prints the contents of a dvd to your terminal in plain, but
very parsable, English. It uses libdvdread, the most popular dvd reading
library for *nix.

%files
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*

#-----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{name}-%{gitdate}
%else
%setup -q
%endif
%patch2 -p0


%build
%if %{git}
autoreconf -vfi
%endif
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3055 |21cr|lslk-1.29-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lock file lister
Name:		lslk
Version:	1.29
Release:	22
License:	GPL style
Group:		Monitoring
Url:		ftp://vic.cc.purdue.edu:/pub/tools/unix/lslk/
Source0:	ftp://vic.cc.purdue.edu/pub/tools/unix/lslk/lslk_%{version}_W.tar.bz2

%description
Lslk is a lock file lister.  Lslk attempts to list all of the locks on
the executing system's local files (i.e., on the active inodes).

Install lslk if you need a utility for listing file locks.

%files
%defattr(644,root,root,755)
# XXX should be mode 4755, but for now leave the setuid off
%attr(0755,root,kmem) %{_sbindir}/lslk
%{_mandir}/man8/lslk.8*

#----------------------------------------------------------------------------

%prep
%setup -q -c -n lslk
tar xf lslk_%{version}.tar

%build
[ -d lslk_%{version} ] && cd lslk_%{version}
./Configure -n linux
%make DEBUG="%{optflags}" CFGF=-DLINUXV=228

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8

install lslk_%{version}/lslk %{buildroot}%{_sbindir}
install lslk_%{version}/lslk.8 %{buildroot}%{_mandir}/man8/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3056 |21cr|lsp-plugins-1.2.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

# Needed to avoid build errors on asm statements
%ifarch %{ix86}
%global	optflags %{optflags} -DLSP_PROFILING
%endif

Summary:	Linux Studio Plugins
Name:		lsp-plugins
Version:	1.2.20
Release:	1
Group:		Sound
License:	GPLv3+
Url:		https://lsp-plug.in/
Source0:	https://github.com/sadko4u/lsp-plugins/releases/download/%{version}/%{name}-src-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	php-cli >= 5.5.14
BuildRequires:	ladspa-devel >= 1.13
BuildRequires:	pkgconfig(cairo) >= 1.14
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(freetype2) >= 2.10
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gstreamer-audio-1.0)
BuildRequires:	pkgconfig(jack) >= 1.9.5
BuildRequires:	pkgconfig(lv2) >= 1.10
BuildRequires:	pkgconfig(sndfile) >= 1.0.25
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)
# There is also experimental support for armv7a and armv8 (aarch64)
ExclusiveArch:	%{ix86} x86_64 aarch64
Recommends:	%{name}-jack
Recommends:	%{name}-ladspa
Recommends:	%{name}-lv2
Recommends:	%{name}-vst
# A real LV2 host is needed: the binaries in the main package
# are not such a thing... suggest a random one (others: Carla, Ardour...)
Recommends:	qtractor
Conflicts:	%{name}-jack < 1.1.31

%description
LSP (Linux Studio Plugins) is a collection of open-source plugins currently
compatible with LADSPA, LV2 and LinuxVST formats.
This package contains the plugin executables and pulls all the LSP LADSPA,
LV2, VST and Jack back-ends.

%files
%doc CHANGELOG COPYING README.md
%{_sysconfdir}/xdg/menus/applications-merged/%{name}.menu
%{_bindir}/%{name}-*
%{_datadir}/desktop-directories/%{name}.directory
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

#-----------------------------------------------------------------------------

%package -n %{name}-jack
Summary:	LSP (Linux Studio Plugins) JACK plugins
Group:		Sound

%description -n %{name}-jack
LSP (Linux Studio Plugins) JACK plugins.

%files -n %{name}-jack
%doc COPYING
%{_libdir}/%{name}/lib%{name}-jack-%{version}.so

#-----------------------------------------------------------------------------

%package -n %{name}-ladspa
Summary:	LSP (Linux Studio Plugins) LADSPA plugins
Group:		Sound
Requires:	ladspa

%description -n %{name}-ladspa
LSP (Linux Studio Plugins) LADSPA plugins.

%files -n %{name}-ladspa
%doc COPYING
%{_libdir}/ladspa/%{name}-ladspa.so

#-----------------------------------------------------------------------------

%package -n %{name}-lv2
Summary:	LSP (Linux Studio Plugins) LV2 plugins
Group:		Sound
Requires:	lv2

%description -n %{name}-lv2
LSP (Linux Studio Plugins) LV2 plugins.

%files -n %{name}-lv2
%doc COPYING
%{_libdir}/lv2/%{name}.lv2/%{name}-lv2.so
%{_libdir}/lv2/%{name}.lv2/*.ttl

#-----------------------------------------------------------------------------

%package -n %{name}-vst
Summary:	LSP (Linux Studio Plugins) LinuxVST plugins
Group:		Sound
Requires:	carla-vst

%description -n %{name}-vst
LSP (Linux Studio Plugins) LinuxVST plugins.

%files -n %{name}-vst
%doc COPYING
%{_libdir}/vst/%{name}.vst/lib%{name}-vst2.so
%{_libdir}/vst/%{name}.vst/art-*.so
%{_libdir}/vst/%{name}.vst/autogain-*.so
%{_libdir}/vst/%{name}.vst/comp-*.so
%{_libdir}/vst/%{name}.vst/compressor-*.so
%{_libdir}/vst/%{name}.vst/chorus-mono.so
%{_libdir}/vst/%{name}.vst/chorus-stereo.so
%{_libdir}/vst/%{name}.vst/crossover-*.so
%{_libdir}/vst/%{name}.vst/clipper-*.so
%{_libdir}/vst/%{name}.vst/dyna-*.so
%{_libdir}/vst/%{name}.vst/expander-*.so
%{_libdir}/vst/%{name}.vst/gate-*.so
%{_libdir}/vst/%{name}.vst/graph-*.so
%{_libdir}/vst/%{name}.vst/impulse-*.so
%{_libdir}/vst/%{name}.vst/latency-meter.so
%{_libdir}/vst/%{name}.vst/limiter-*.so
%{_libdir}/vst/%{name}.vst/loud-*.so
%{_libdir}/vst/%{name}.vst/mb-*.so
%{_libdir}/vst/%{name}.vst/multisampler-*.so
%{_libdir}/vst/%{name}.vst/noise-generator-*.so
%{_libdir}/vst/%{name}.vst/oscillator-mono.so
%{_libdir}/vst/%{name}.vst/oscilloscope-*.so
%{_libdir}/vst/%{name}.vst/para-*.so
%{_libdir}/vst/%{name}.vst/phase-detector.so
%{_libdir}/vst/%{name}.vst/profiler-*.so
%{_libdir}/vst/%{name}.vst/room-*.so
%{_libdir}/vst/%{name}.vst/referencer-*.so
%{_libdir}/vst/%{name}.vst/return-mono.so
%{_libdir}/vst/%{name}.vst/return-stereo.so
%{_libdir}/vst/%{name}.vst/sampler-*.so
%{_libdir}/vst/%{name}.vst/send-mono.so
%{_libdir}/vst/%{name}.vst/send-stereo.so
%{_libdir}/vst/%{name}.vst/sc-*.so
%{_libdir}/vst/%{name}.vst/slap-*.so
%{_libdir}/vst/%{name}.vst/spectrum-*.so
%{_libdir}/vst/%{name}.vst/surge-*.so
%{_libdir}/vst/%{name}.vst/trigger-*.so
%{_libdir}/vst/%{name}.vst/ab-tester-*.so
%{_libdir}/vst/%{name}.vst/mixer-*.so
%{_libdir}/vst/%{name}.vst/filter-*.so
%{_libdir}/vst/%{name}.vst/flanger-*.so
%{_libdir}/vst/%{name}.vst/gott-*.so
%{_libdir}/vst/%{name}.vst/beat-breather-*.so

#-----------------------------------------------------------------------------

%package doc
Summary:	Documentation for LSP (Linux Studio Plugins) plugins
Group:		Sound
BuildArch:	noarch

%description doc
Documentation for LSP (Linux Studio Plugins) plugins.

%files doc
%{_defaultdocdir}/%{name}/

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}


%build
%setup_compile_flags
%ifarch %{ix86}
%define BUILD_PROFILE i586
%else
%ifarch x86_64
%define BUILD_PROFILE x86_64
%endif
%endif

make config  PREFIX=%{_prefix} \
    BUILD_PROFILE=%{BUILD_PROFILE} \
    BIN_PATH=%{_bindir} LIBDIR=%{_libdir} \
    DOC_PATH=%{_docdir} \
    FEATURES="doc ladspa lv2 vst2 jack xdg"

%make


%install
%makeinstall_std

# Drop unwanted static libs...
rm -f %{buildroot}%{_libdir}/*.a
# ... and devel files we don't use
rm -f %{buildroot}%{_libdir}/pkgconfig/lsp-r3d-glx-lib.pc
rm -rf %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3057 |21cr|lsyncd-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _hardened_build 1
%global gittag0 v2.3.1
%global commit0 6d59f16140468242fe157b4a5adf36d6a93cf6a4
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

Name:		lsyncd
Version:	2.3.1
Release:	1
Summary:	File change monitoring and synchronization daemon
Group:		File tools
License:	GPL-2.0-or-later AND CC-BY-3.0
URL:		https://axkibe.github.io/lsyncd/
Source0:	https://github.com/axkibe/%{name}/archive/%{gittag0}/%{name}-%{version}.tar.gz

Patch0:		cmake-DOCDIR.patch

Source1:	lsyncd.sysconfig
Source2:	lsyncd.logrotate
Source3:	lsyncd.conf
Source4:	lsyncd.service
Source5:	lsyncd.sysctl

BuildRequires:	asciidoc
BuildRequires:	cmake
BuildRequires:	lua
BuildRequires:	lua-devel >= 5.2
Requires:	lua
Requires:	rsync

%description
Lsyncd watches a local directory trees event monitor interface (inotify).
It aggregates and combines events for a few seconds and then spawns one
(or more) process(es) to synchronize the changes. By default this is
rsync.

Lsyncd is thus a light-weight live mirror solution that is comparatively
easy to install not requiring new file systems or block devices and does
not hamper local file system performance.

%prep
%autosetup -p1

%build
%cmake \
	-DCMAKE_INSTALL_MANDIR:PATH=%{_mandir} \
	-DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}

%make_build

%install
%make_install -C build

install -p -d -m 0755 %{buildroot}%{_var}/log/%{name}
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/lsyncd
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/lsyncd
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/lsyncd.conf
install -p -D -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/lsyncd.service
install -p -D -m 0644 %{SOURCE5} %{buildroot}%{_sysctldir}/50-lsyncd.conf

%post
%sysctl_apply 50-lsyncd.conf
%systemd_post lsyncd.service

%preun
%systemd_preun lsyncd.service

%postun
%systemd_postun_with_restart lsyncd.service

%files
%license COPYING
%doc ChangeLog examples README.md
%doc %{_mandir}/man1/lsyncd.1.*
%config(noreplace) %{_sysconfdir}/lsyncd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/lsyncd
%config(noreplace) %{_sysconfdir}/logrotate.d/lsyncd
%{_sysctldir}/50-lsyncd.conf
%{_bindir}/lsyncd
%dir %{_var}/log/%{name}
%{_unitdir}/lsyncd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3058 |21cr|ltc-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	11
%define libname	%mklibname %{name} %major
%define devname	%mklibname %{name} -d

Name:		ltc
Version:	1.3.2
Release:	1
Summary:	Linear (or Longitudinal) Time-code is an encoding of SMPTE time-code data
License:	LGPLv3
Group:		System/Libraries
Url:		https://github.com/x42/libltc
Source0:	https://github.com/x42/libltc/releases/download/v%{version}/lib%{name}-%{version}.tar.gz

%description
Linear (or Longitudinal) Time-code (LTC) is an encoding of SMPTE time-code data
as a Manchester-Biphase encoded audio signal. The audio signal is commonly
recorded on a VTR track or other storage media. libltc provides functionality
to encode and decode LTC from/to time-code, including SMPTE date support.
libltc is the successor of libltcsmpte.

#---------------------------------
%package -n %{libname}
Summary:	Shared library for LTC
Group:		System/Libraries

%description -n %{libname}
Linear (or Longitudinal) Time-code (LTC) is an encoding of SMPTE time-code data
as a Manchester-Biphase encoded audio signal. The audio signal is commonly
recorded on a VTR track or other storage media. libltc provides functionality
to encode and decode LTC from/to time-code, including SMPTE date support.
libltc is the successor of libltcsmpte.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#---------------------------------
%package -n %{devname}
Summary:	Development files for LTC
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the files for developing applications which
will use lib%{name}.

%files -n %{devname}
%{_mandir}/man3/ltc.h.3.xz
%{_libdir}/lib%{name}.so
%{_includedir}/ltc.h
%{_libdir}/pkgconfig/ltc.pc

#---------------------------------
%prep
%setup -q -n lib%{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std
find %{buildroot} -regex ".*\(a\|la\)$" -exec rm '{}' \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3059 |21cr|ltris-1.0.19-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Nice tetris clone
Name:		ltris
Version:	1.0.19
Release:	5
Epoch:		1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://lgames.sourceforge.net/index.php?project=LTris
Source0:	https://sourceforge.net/projects/lgames/files/ltris/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(SDL_mixer)

%description
o Tetris clone using SDL
o Sound
o Menu
o Controls can be redefined
o Block preview
o Starting level between 0 and 9
o Various backgrounds
o HighScores
o Nice graphics
o Smooth gameplay
o Cool effects (transparency, animations)
o Two player mode
o Two game modes

%files -f %{name}.lang
%doc README INSTALL AUTHORS ChangeLog
%attr(2755, root, games) %{_gamesbindir}/*
%config(noreplace) %attr(664, games, games) %{_localstatedir}/games/%{name}.hscr
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/*.png
%{_miconsdir}/*
%{_liconsdir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fgnu89-inline
%configure \
	--localstatedir=%{_localstatedir}/games \
	--bindir=%{_gamesbindir}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}{%{_liconsdir},%{_miconsdir}}
convert icons/%{name}48.xpm %{buildroot}%{_liconsdir}/%{name}.png
convert icons/%{name}32.xpm %{buildroot}%{_iconsdir}/%{name}.png
convert icons/%{name}16.xpm %{buildroot}%{_miconsdir}/%{name}.png

rm %{buildroot}%{_datadir}/applications/%{name}.desktop
rm %{buildroot}%{_iconsdir}/%{name}48.gif

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=LTris
Comment=Nice Tetris clone
Exec=ltris
Icon=ltris
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3060 |21cr|ltspfs-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Tool used to mount local media on an Xterminal from the terminals serveur
Name:		ltspfs
Version:	1.5
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://wiki.ltsp.org/twiki/bin/view/Ltsp/LtspFS
Source0:	http://ftp.fr.debian.org/debian/pool/main/l/ltspfs/%{name}_%{version}.orig.tar.xz
Source10:	%{name}.tmpfiles.d
BuildRequires:	fuse
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(x11)
Requires:	fuse

%description
ltspfs is a remote filesystem consisting of two parts:
  1) A network server daemon that runs on the LTSP terminal.
  2) A FUSE module that runs in user-space on the server, that connects with
     the daemon on the client.

The goals of ltspfs are:

   1. Provide a lightweight file access mechanism that will be feasable on
      lower end hardware.
   2. Provide a stateless file access method that will feature "atomic" reads
      and writes to minimize impact from client network disruptions.
   3. Provide a network filesystem that handles client reboots and
      disconnections in a manner that doesn't leave inaccesible, unmountable
      filesystems on the LTSP server.
   4. Provide a network filesystem that can easily handle the oddities of
      dealing with removable media, and integrate well with udev (LTSP's
      preferred device handling support).

%files
%doc COPYING ChangeLog
%{_bindir}/ltspfs
%attr(4755,root,root) %{_bindir}/lbmount
%{_sbindir}/ltspfsmounter
%{_mandir}/man1/ltspfs.1*
%{_mandir}/man1/lbmount.1*
%{_mandir}/man1/ltspfsmounter.1*

#----------------------------------------------------------------------------

%package -n ltspfsd
Summary:	LTSP file system, userspace FUSE module that runs on a server
Group:		System/Servers
Requires:	x11-tools
Requires:	x11-util-cf-files
Requires:	x11-util-macros
Requires:	x11-util-modular

%description -n ltspfsd
Fuse based remote filesystem daemon for LTSP thin clients
 LtspFS is a remote filesystem consisting of two parts:
 1) A network server daemon that runs on the LTSP terminal.
 2) A FUSE module that runs in userspace on the server, that connects with
 the daemon on the client.
 This package contains the daemon to be run on the LTSP thin client.

%files -n ltspfsd
%{_bindir}/ltspfsd
%{_sbindir}/ltspfs_mount
%{_sbindir}/ltspfs_umount
/lib/udev/rules.d/88-ltsp.rules
/lib/udev/ltspfs_entry
%{_datadir}/ldm/
%{_datadir}/ltsp/xinitrc.d/I05-set-ltspfs_token
%{_mandir}/man1/ltspfsd.1*
%{_mandir}/man1/ltspfs_mount.1*
%{_mandir}/man1/ltspfs_umount.1*
%{_tmpfilesdir}/%{name}.conf

#----------------------------------------------------------------------------

%prep
%setup -q -c

%build
./autogen.sh
%configure
%make LIBS="-ltirpc"

%install
%makeinstall_std

mkdir -p %{buildroot}/lib/udev/rules.d/
mv %{buildroot}%{_datadir}/ltspfs/udev/ltspfsd.rules %{buildroot}/lib/udev/rules.d/88-ltsp.rules

# Install tmpfiles.d config
install -m 0644 %{SOURCE10} -D %{buildroot}%{_tmpfilesdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3061 |21cr|ltsp-hwlists-0.02-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LTSP hardware lists
Name:		ltsp-hwlists
Version:	0.02
Release:	8
License:	GPLv2+
Group:		System/Servers
Url:		http://www.ltsp.org
Source0:	pci_scan-lists.tar.bz2
BuildArch:	noarch

%description
This package contains LTSP hardware lists for use with pci_scan. It includes a
network card list, video card list, sound card list and usb controller list.

%files
%config(noreplace) %{_sysconfdir}/audiolist
%config(noreplace) %{_sysconfdir}/audiolist.alsa
%config(noreplace) %{_sysconfdir}/audiolist.bestdriver
%config(noreplace) %{_sysconfdir}/niclist
%config(noreplace) %{_sysconfdir}/usblist
%config(noreplace) %{_sysconfdir}/vidlist

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -a0

%build

%install
install -d %{buildroot}%{_sysconfdir}

install -m0644 audiolist %{buildroot}%{_sysconfdir}
install -m0644 audiolist.alsa %{buildroot}%{_sysconfdir}
install -m0644 audiolist.bestdriver %{buildroot}%{_sysconfdir}
install -m0644 niclist %{buildroot}%{_sysconfdir}
install -m0644 usblist %{buildroot}%{_sysconfdir}
install -m0644 vidlist %{buildroot}%{_sysconfdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3062 |21cr|ltsp-utils-0.25-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux Terminal Server Project (ltsp.org) utilities
Name:		ltsp-utils
Version:	0.25
Release:	6
License:	GPLv2+
Group:		System/Servers
Url:		http://www.ltsp.org
Source0:	http://ltsp.mirrors.tds.net/pub/ltsp/utils/%{name}-%{version}-0.tgz
Requires:	nfs-utils
Requires:	tftp-server
Requires:	perl(Digest::MD5)
Requires:	perl(LWP)
Requires:	perl(Term::Cap)
Requires:	perl(URI)
BuildArch:	noarch

%description
This package includes the following utilities for LTSP server:
  ltspadmin   For installing and managing the packages
              on an LTSP server.
  ltspcfg     For configuring the services on an LTSP server.
  ltspinfo    For querying the workstation, to learn things,
              such as which sound daemon is being used.

%files
%doc ChangeLog notes.txt COPYING
%{_bindir}/ltspinfo
%{_sbindir}/ltspadmin
%{_sbindir}/ltspcfg

#----------------------------------------------------------------------------

%prep
%setup -n %{name}

%build

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
install ltspadmin ltspcfg %{buildroot}%{_sbindir}
install ltspinfo %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3063 |21cr|lua5.0-5.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	5.0
%define	libname %mklibname lua %{major}
%define alt_priority %(echo %{major} | sed -e 's/[^0-9]//g')

Summary:	Powerful, light-weight programming language
Name:		lua5.0
Version:	5.0.3
Release:	13
License:	MIT
URL:		http://www.lua.org/
Group:		Development/Other
Source0:	http://www.lua.org/ftp/lua-%{version}.tar.bz2
Patch0:		lua-config.patch
Patch1:		lua-lbaselib.patch
Patch2:		lua-default.patch
Patch3:		lua-soname.patch
# Provides:	lua = %{version}-%{release}

%description
Lua is a programming language originally designed for extending applications, 
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data 
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in 
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

%package -n	%{libname}
Summary:	Powerful, light-weight programming language
Group:		System/Libraries

%description -n	%{libname}
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

This package includes the libraries.


%package -n	%{libname}-devel
Summary:	Powerful, light-weight programming language
Group:		Development/Other
Requires:	%{libname} = %{version}
# to have the same provides on all arches
Provides:	lua%{major}-devel = %{version}-%{release}
# conflict with other versions
Conflicts:	lua-devel

%description -n	%{libname}-devel
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

This package contains the headers and development files for lua.


%package -n	%{libname}-devel-static
Summary:	Powerful, light-weight programming language
Group:		Development/Other
Requires:	%{libname}-devel = %{version}
# to have the same provides on all arches
Provides:	lua%{major}-devel-static = %{version}-%{release}
# conflict with other versions
Conflicts:	lua-devel-static

%description -n	%{libname}-devel-static
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

This package contains the headers and development files for lua.


%prep
%setup -q -n lua-%{version}

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p0 -b .soname

%build

%ifarch x86_64
fpic="-fPIC"
%endif
%make MYCFLAGS="$RPM_OPT_FLAGS ${fpic}" MYLDFLAGS="%{?ldflags}"
make so

%install
rm -rf %{buildroot}

%makeinstall_std INSTALL_LIB=%buildroot%_libdir
install -d %{buildroot}%{_libdir}/lua/%{major}/
install -d %{buildroot}%{_datadir}/lua/%{major}/
install -m 755 lib/*.so.* %{buildroot}%{_libdir}/
cp -a lib/*.so %{buildroot}%{_libdir}/
install -m 644 lib/*.lua %{buildroot}%{_datadir}/lua/%{major}/

# for update-alternatives
mv %{buildroot}/%{_bindir}/lua %{buildroot}/%{_bindir}/lua%{major}
mv %{buildroot}/%{_bindir}/luac %{buildroot}/%{_bindir}/luac%{major}

# to avoid conflict with other versions
mv %{buildroot}/%{_mandir}/man1/lua.1 %{buildroot}/%{_mandir}/man1/lua%{major}.1
mv %{buildroot}/%{_mandir}/man1/luac.1 %{buildroot}/%{_mandir}/man1/luac%{major}.1

%post
/usr/sbin/update-alternatives --install %{_bindir}/lua lua %{_bindir}/lua%{major} %{alt_priority} --slave %{_bindir}/luac luac %{_bindir}/luac%{major}

%files
%doc COPYRIGHT HISTORY INSTALL MANIFEST README
%doc doc/*.html doc/*.gif
%{_bindir}/*
%dir %{_libdir}/lua
%{_libdir}/lua/%{major}
%{_datadir}/lua/%{major}/*.lua
%{_mandir}/man1/*

%files -n %{libname}
%{_libdir}/*.so.*

%files -n %{libname}-devel
%{_includedir}/*
%{_libdir}/*.so

%files -n %{libname}-devel-static
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3064 |21cr|lua5.1-5.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	5.1
%define	libname %mklibname lua %{major}

Summary:	Powerful, light-weight programming language
Name:		lua5.1
Version:	5.1.5
Release:	1
License:	MIT
Url:		http://www.lua.org/
Group:		Development/Other
Source0:	http://www.lua.org/ftp/lua-%{version}.tar.gz
Patch1:		lua-5.1-dynlib.patch
Patch2:		lua-5.1-modules_path.patch
Patch3:		lua5.1-5.1.5-upstream-fix-stack-overflow-CVE-2014-5461.patch
BuildRequires:  readline-devel
Requires:	%{libname} = %{version}
Provides:	lua(abi) = %{major}

%description
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

%files
%doc COPYRIGHT HISTORY README
%doc doc/*.html doc/*.gif
%{_bindir}/lua*%{major}
%dir %{_libdir}/lua/
%{_libdir}/lua/%{major}
%{_datadir}/lua/%{major}/*.lua
%{_mandir}/man1/*
#-------------------------------------------------

%package -n	%{libname}
Summary:	Powerful, light-weight programming language
Group:		System/Libraries

%description -n	%{libname}
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

This package includes the libraries.
%files -n %{libname}
%doc COPYRIGHT HISTORY README
%{_libdir}/liblua.so.%{major}

#------------------------------------------------

%package -n	%{libname}-devel
Summary:	Powerful, light-weight programming language
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
# to have the same provides on all arches
Provides:	lua%{major}-devel = %{EVRD}


%description -n	%{libname}-devel
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

This package contains the headers and development files for lua.

%files -n %{libname}-devel
%doc COPYRIGHT HISTORY README
%{_includedir}/lua-%{major}/
%{_libdir}/pkgconfig/lua-%{major}.pc
%{_libdir}/liblua-%{major}.so

#-----------------------------------------------------

%package -n	%{libname}-devel-static
Summary:	Powerful, light-weight programming language
Group:		Development/Other
Requires:	%{libname}-devel = %{version}
Provides:	lua%{major}-devel-static = %{EVRD}
Conflicts:	lua-devel-static

%description -n	%{libname}-devel-static
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

This package contains the headers and development files for lua.

%files -n %{libname}-devel-static
%doc COPYRIGHT HISTORY README
%{_libdir}/liblua-%{major}.a
#----------------------------------------------------

%prep
%setup -q -n lua-%{version}
%autopatch -p1

sed -i -e "s|/usr/local|%{_prefix}|g" Makefile
sed -i -e "s|/lib|/%{_lib}|g" Makefile
sed -i -e "s|/usr/local|%{_prefix}|g" src/luaconf.h
sed -i -e "s|/lib|/%{_lib}|g" src/luaconf.h
sed -i -e "s|/man/man1|/share/man/man1|g" Makefile
sed -i -e "s|\$(V)|%{major}|g" src/Makefile

%build
sed -i 's/-lncurses/-lncursesw/g' */Makefile*
%make_build linux CFLAGS="%{optflags} -fPIC -DLUA_USE_LINUX" MYLDFLAGS="%{ldflags}"
sed -i -e "s#/usr/local#%{_prefix}#" etc/lua.pc
sed -i -e 's/-lreadline -lncurses //g' etc/lua.pc

%install
%make_install INSTALL_TOP=%{buildroot}%{_prefix} INSTALL_LIB=%{buildroot}%{_libdir} INSTALL_MAN=%{buildroot}%{_mandir}/man1 INSTALL_INC=%{buildroot}%{_includedir}/lua-%{major}
install -d %{buildroot}%{_libdir}/lua/%{major}/
install -d %{buildroot}%{_datadir}/lua/%{major}/
install -p -m 644 test/*.lua %{buildroot}%{_datadir}/lua/%{major}/

install -p -m 755 src/liblua.so.%{major}* %{buildroot}%{_libdir}
ln -s liblua.so.%{major} %{buildroot}%{_libdir}/liblua-%{major}.so

mv %{buildroot}%{_libdir}/liblua{,-%{major}}.a

install -d %{buildroot}%{_libdir}/pkgconfig/
install -p -m 644 etc/lua.pc %{buildroot}%{_libdir}/pkgconfig/lua-%{major}.pc

# to avoid conflict with other versions
mv %{buildroot}%{_bindir}/lua %{buildroot}%{_bindir}/lua%{major}
ln -s lua%{major} %{buildroot}%{_bindir}/lua-%{major}
mv %{buildroot}%{_bindir}/luac %{buildroot}%{_bindir}/luac%{major}
ln -s luac%{major} %{buildroot}%{_bindir}/luac-%{major}

# to avoid conflict with other versions
mv %{buildroot}%{_mandir}/man1/lua.1 %{buildroot}/%{_mandir}/man1/lua%{major}.1
mv %{buildroot}%{_mandir}/man1/luac.1 %{buildroot}/%{_mandir}/man1/luac%{major}.1

rm -fr %{buildroot}%{_defaultdocdir}/lua5.1


%triggerun -- lua5.1 < 5.1.5
if [[ -e  %{_localstatedir}/lib/alternatives/lua ]]; then
   %{_sbindir}/update-alternatives --remove-all lua 2> /dev/null ||:
fi



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3065 |21cr|lua-bitop-1.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define luaver 5.3
%define lualibdir %{_libdir}/lua/%{luaver}

Summary:	C extension module for Lua which adds bitwise operations on numbers
Name:		lua-bitop
Version:	1.0.2
Release:	2
License:	MIT
Group:		Development/Other
Url:		http://bitop.luajit.org/
Source0:	http://bitop.luajit.org/download/LuaBitOp-%{version}.tar.gz
Patch0:		LuaBitOp-1.0.2-lua5.3.patch
BuildRequires:	pkgconfig(lua)

%description
Lua BitOp is a C extension module for Lua which adds bitwise
operations on numbers.

%files
%doc README
%{lualibdir}/bit.so

#----------------------------------------------------------------------------

%prep
%setup -qn LuaBitOp-%{version}
%patch0 -p1 -b .lua53

%build
%make \
	PREFIX=%{_prefix} \
	LUALIB=%{lualibdir} \
	LUABIN=%{_bindir} \
	CFLAGS="%{optflags} -fPIC"

%install
mkdir -p %{buildroot}%{lualibdir}
install -m 755 bit.so %{buildroot}%{lualibdir}/bit.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3066 |21cr|lua-dbi-0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define luaver 5.1
%define lualibdir %{_libdir}/lua/%{luaver}
%define luapkgdir %{_datadir}/lua/%{luaver}
%define oname luadbi

# DBI.lua has a shebang that requires bin/lua directly
%if %{_use_internal_dependency_generator}
%global __requires_exclude .*bin/lua.*
%else
%define _requires_exceptions bin/lua
%endif

Summary:	Database connectivity for the Lua programming language
Name:		lua-dbi
Version:	0.5
Release:	4
License:	MIT
Group:		Development/Other
Url:		http://code.google.com/p/%{oname}/
Source0:	http://%{oname}.googlecode.com/files/%{oname}.%{version}.tar.gz
# patch to compile with postgresql,
# to send upstream, once a Pgsql ( nanar ) tell me if this is right or not
Patch0:		luadbi-fix_postgresql.diff
Patch1:		luadbi-0.5-pgsql_transaction.patch
Patch2:		luadbi-0.5-postgresql-path.patch
BuildRequires:	lua >= %{luaver}
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(lua) >= %{luaver}
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(sqlite3)
Requires:	lua >= %{luaver}

%description
LuaSQL is a simple interface from Lua to a DBMS. This package of LuaSQL
supports MySQL, SQLite and PostgreSQL databases. You can execute arbitrary SQL
statements and it allows for retrieving results in a row-by-row cursor fashion.

%files
%doc README
%{lualibdir}/DBI.lua

#----------------------------------------------------------------------------

%package sqlite
Summary:	SQLite database connectivity for the Lua programming language
Group:		Development/Other
Requires:	%{name}

%description sqlite
LuaDBI is a simple interface from Lua to a DBMS. This package provides access
to SQLite databases.

%files sqlite
%{lualibdir}/dbdsqlite3.so

#----------------------------------------------------------------------------

%package mysql
Summary:	MySQL database connectivity for the Lua programming language
Group:		Development/Other
Requires:	%{name}

%description mysql
LuaDBI is a simple interface from Lua to a DBMS. This package provides access
to MySQL databases.

%files mysql
%{lualibdir}/dbdmysql.so

#----------------------------------------------------------------------------

%package postgresql
Summary:	PostgreSQL database connectivity for the Lua programming language
Group:		Development/Other
Requires:	%{name}

%description postgresql
LuaDBI is a simple interface from Lua to a DBMS. This package provides access
to PostgreSQL databases.

%files postgresql
%{lualibdir}/dbdpostgresql.so

#----------------------------------------------------------------------------

%prep
%setup -c -q -n %{oname}-%{version}
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
mkdir -p build
make

%install
mkdir -p %{buildroot}/%{lualibdir}/
cp *so *lua %{buildroot}/%{lualibdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3067 |21cr|lua-expat-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define luaver 5.3
%define lualibdir %{_libdir}/lua/%{luaver}
%define luapkgdir %{_datadir}/lua/%{luaver}
%define oname luaexpat

Summary:	SAX XML parser based on expat, for lua
Name:		lua-expat
Version:	1.3.0
Release:	1
License:	MIT
Group:		Development/Other
Url:		http://www.keplerproject.org/luaexpat/
Source0:	http://luaforge.net/frs/download.php/2469/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(lua)

%description
SAX XML parser based on expat, for lua.

%files
%doc README  doc/us/*
%{lualibdir}/*
%{luapkgdir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%make \
	LUA_V=%{luaver} \
	LUA_CDIR=%{lualibdir} \
	LUA_LDIR=%{luapkgdir} \
	LUA_INC=-I%{_includedir} \
	EXPAT_INC=-I%{_includedir} \
	CFLAGS="%{optflags} -fPIC -std=c99" \
	LDFLAGS="%{ldflags} -llua"

%install
make install \
	DESTDIR=%{buildroot} \
	LUA_CDIR=%{lualibdir} \
	LUA_LDIR=%{luapkgdir}

%check
lua -e 'package.cpath="./src/?.so;"..package.cpath; dofile("tests/test.lua");'
lua -e 'package.cpath="./src/?.so;" .. package.cpath; package.path="./src/?.lua;" .. package.path; dofile("tests/test-lom.lua");'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3068 |21cr|lua-logging-1.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define luaver 5.2
%define lualibdir %{_libdir}/lua/%{luaver}
%define luapkgdir %{_datadir}/lua/%{luaver}
%define oname lualogging

Name:           lua-logging
Version:        1.3.0
Release:        3
Summary:        A simple API to use logging features in Lua

Group:          Development/Other
License:        MIT
URL:            http://www.keplerproject.org/lualogging/
Source0:        https://github.com/Neopallium/lualogging/archive/v%{version}.tar.gz
Requires:       lua >= %{luaver}
Requires:       lua-socket
Requires:       lua-sql
BuildArch:      noarch

%description
LuaLogging provides a simple API to use logging features
in Lua. Its design was based on log4j. LuaLogging currently
supports, through the use of appenders, console, file, email,
socket and sql outputs.

%prep
%setup -q -n %{oname}-%{version}

%build
%make

%install
rm -rf %{buildroot}
make install PREFIX=$RPM_BUILD_ROOT/%{_prefix} LUA_LIBDIR=$RPM_BUILD_ROOT/%{lualibdir} LUA_DIR=$RPM_BUILD_ROOT/%{luapkgdir} SYS_BINDIR=$RPM_BUILD_ROOT/%{_bindir} LUA_INTERPRETER=%{_bindir}/lua


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc doc/us/*
%doc README
%{luapkgdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3069 |21cr|lua-luafilesystem-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define luaver 5.3
%define lualibdir %{_libdir}/lua/%{luaver}
%define luapkgdir %{_datadir}/lua/%{luaver}
%define oname luafilesystem
%define oversion %(echo %{version} |tr . _)

Summary:	FileSystem Tool for the Lua language
Name:		lua-luafilesystem
Version:	1.8.0
Release:	1
License:	MIT
Group:		Development/Other
Url:		http://keplerproject.github.io/luafilesystem/
Source0:	https://github.com/keplerproject/luafilesystem/archive/v%{oversion}.tar.gz?/%{oname}-%{oversion}.tar.gz
BuildRequires:	pkgconfig(lua)

%description
LuaFileSystem offers a portable way to access the underlying directory
structure and file attributes.

%files
%doc doc/us/*
%doc README.md
%{lualibdir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{oversion}

%build
%make

%install
make install \
	PREFIX=%{buildroot}%{_prefix} \
	LUA_LIBDIR=%{buildroot}%{lualibdir} \
	LUA_DIR=%{buildroot}%{luapkgdir} \
	SYS_BINDIR=%{buildroot}%{_bindir} \
	LUA_INTERPRETER=%{_bindir}/lua%{luaver}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3070 |21cr|lua-mpack-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lua_version %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
%define lua_archdir %{_libdir}/lua/%{lua_version}
%global lua_libdir %{_libdir}/lua/%{lua_version}

%define luajit_version %(luajit -e 'print(_VERSION)' | cut -d ' ' -f 2)
%define luajit_archdir %{_libdir}/lua/%{luajit_version}
%global luajit_libdir %{_libdir}/lua/%{luajit_version}

Name:           lua-mpack
Version:	1.0.9
Release:	1
Summary:        Implementation of MessagePack for Lua
License:        MIT
Group:          Development/Other
Url:            https://github.com/libmpack/libmpack-lua
Source:         https://github.com/libmpack/libmpack-lua/archive/refs/tags/%{version}.tar.gz
Source1:	https://github.com/tarruda/libmpack/archive/1.0.5.tar.gz
BuildRequires:  libtool
BuildRequires:  lua-devel
Requires:       lua
BuildRequires:	luajit
BuildRequires:	pkgconfig(luajit)

%description
mpack is a small binary serialization/RPC library that implements
both the msgpack and msgpack-rpc specifications.

%files
%doc LICENSE-MIT README.md
%dir %{lua_archdir}
%{lua_archdir}/*
%{luajit_archdir}/*

%package -n luajit-mpack
Summary:        Implementation of MessagePack for LuaJIT

%description -n luajit-mpack
mpack is a small binary serialization/RPC library that implements
both the msgpack and msgpack-rpc specifications.

%files -n luajit-mpack
%doc LICENSE-MIT README.md

%prep
%autosetup -p1 -n libmpack-lua-%{version}

%build
%make_build %{?_smp_mflags} \
	USE_SYSTEM_LUA=yes \
	CFLAGS="%{optflags}" \
	LUA_VERSION_MAJ_MIN=%{lua_version} \
	LUA_LIB=$(pkg-config --libs lua) \
	FETCH=cat \
	MPACK_URL="%{S:1}"
mv mpack.so mpack.so.lua
%make_build clean

%make_build %{?_smp_mflags} \
	USE_SYSTEM_LUA=yes \
	CFLAGS="%{optflags}" \
	LUA_VERSION_MAJ_MIN=%{luajit_version} \
	LUA_IMPL=luajit \
	LUA_LIB=$(pkg-config --libs luajit) \
	FETCH=cat \
	MPACK_URL="%{S:1}"


%install
%make_install \
	USE_SYSTEM_LUA=yes \
	LUA_CMOD_INSTALLDIR=%{luajit_libdir} \
	LUA_VERSION_MAJ_MIN=%{luajit_version} \
	LUA_IMPL=luajit \
	LUA_LIB=$(pkg-config --libs luajit)

mkdir -p %{buildroot}%{lua_archdir}
mv mpack.so.lua %{buildroot}%{lua_archdir}/mpack.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3071 |21cr|lua-sec-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	luaver 5.3
%define	lualibdir %{_libdir}/lua/%{luaver}
%define	luapkgdir %{_datadir}/lua/%{luaver}
%define	oname luasec

Summary:	OpenSSL binding for Lua
Name:		lua-sec
Version:	0.7
Release:	1
License:	MIT
Group:		Development/Other
Url:		https://github.com/brunoos/luasec
Source0:	https://github.com/brunoos/luasec/archive/%{oname}-%{version}.tar.xz
Patch0:		luasec-0.7-fix-link.patch
BuildRequires:	lua >= %{luaver}
BuildRequires:	pkgconfig(lua) >= %{luaver}
BuildRequires:	pkgconfig(openssl)
Requires:	lua >= %{luaver}
Requires:	lua-socket

%description
LuaSec is a binding for OpenSSL library to provide TLS/SSL communication. 
This version delegates to LuaSocket the TCP connection establishment 
between the client and server. Then LuaSec uses this connection to start 
a secure TLS/SSL session.

%files
%doc CHANGELOG samples/*
%{lualibdir}/ssl.so
%{luapkgdir}/ssl.lua
%{luapkgdir}/ssl/https.lua

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches


%build
# Adapt to our OpenSSL, instead of the default 1.1.0f:
# see INSTALL file in the sources
pushd src
lua options.lua -g /usr/include/openssl/ssl.h > options.h
popd
%make linux DEFS="%{optflags}" LIBPATH="%{_libdir}"


%install
mkdir -p %{buildroot}%{lualibdir}
mkdir -p %{buildroot}%{luapkgdir}
make install LUACPATH=%{buildroot}%{lualibdir} LUAPATH=%{buildroot}%{luapkgdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3072 |21cr|lua-sql-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define luaver 5.3
%define lualibdir %{_libdir}/lua/%{luaver}
%define luapkgdir %{_datadir}/lua/%{luaver}
%define oname luasql

Summary:	Database connectivity for the Lua programming language
Name:		lua-sql
Version:	2.6.0
Release:	1
License:	MIT
Group:		Development/Other
Url:		http://keplerproject.github.io/luasql/
Source0:	https://github.com/keplerproject/luasql/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(lua)
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(sqlite3)
Requires:	lua-sql-sqlite
Requires:	lua-sql-mysql
Requires:	lua-sql-postgresql
Requires:	lua-sql-doc

%description
LuaSQL is a simple interface from Lua to a DBMS. This package of LuaSQL
supports MySQL, SQLite and PostgreSQL databases. You can execute arbitrary SQL
statements and it allows for retrieving results in a row-by-row cursor fashion.

%files
%doc README

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for LuaSQL
Group:		Documentation

%description doc
LuaSQL is a simple interface from Lua to a DBMS. This package contains the
documentation for LuaSQL.

%files doc
%doc README
%doc doc/us/*

#----------------------------------------------------------------------------

%package sqlite
Summary:	SQLite database connectivity for the Lua programming language
Group:		Development/Other

%description sqlite
LuaSQL is a simple interface from Lua to a DBMS. This package provides access
to SQLite databases.

%files sqlite
%doc README
%dir %{lualibdir}/luasql
%{lualibdir}/luasql/sqlite3.so

#----------------------------------------------------------------------------

%package mysql
Summary:	MySQL database connectivity for the Lua programming language
Group:		Development/Other

%description mysql
LuaSQL is a simple interface from Lua to a DBMS. This package provides access
to MySQL databases.

%files mysql
%doc README
%dir %{lualibdir}/luasql
%{lualibdir}/luasql/mysql.so

#----------------------------------------------------------------------------

%package postgresql
Summary:	PostgreSQL database connectivity for the Lua programming language
Group:		Development/Other

%description postgresql
LuaSQL is a simple interface from Lua to a DBMS. This package provides access
to PostgreSQL databases.

%files postgresql
%doc README
%dir %{lualibdir}/luasql
%{lualibdir}/luasql/postgres.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
make DRIVER_INCS="`pkg-config --cflags sqlite3`" DRIVER_LIBS="`pkg-config --libs sqlite3`" sqlite3 DEFS="%{optflags} -fPIC"
make DRIVER_INCS="" DRIVER_LIBS="-lpq" postgres DEFS="%{optflags} -fPIC" WARN=
make DRIVER_INCS="-I%{_prefix}/include/mysql" DRIVER_LIBS="-L%{_libdir}/mysql -lmysqlclient" mysql DEFS="%{optflags} -fPIC"

%install
make install PREFIX=%{buildroot}%{_prefix} LUA_LIBDIR=%{buildroot}%{lualibdir} LUA_DIR=%{buildroot}%{luapkgdir} sqlite3
make install PREFIX=%{buildroot}%{_prefix} LUA_LIBDIR=%{buildroot}%{lualibdir} LUA_DIR=%{buildroot}%{luapkgdir} postgres
make install PREFIX=%{buildroot}%{_prefix} LUA_LIBDIR=%{buildroot}%{lualibdir} LUA_DIR=%{buildroot}%{luapkgdir} mysql

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3073 |21cr|lucene-2.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define section         free
%define nversion        2.3

Name:           lucene
Version:        2.4.0
Release:        5
Epoch:          0
Summary:        High-performance, full-featured text search engine
License:        Apache License
URL:            http://lucene.apache.org/
Group:          Development/Java
Source0:        http://www.apache.org/dist/lucene/java/%{name}-%{version}-src.tar.gz
Source1:	lucene-1.9-OSGi-MANIFEST.MF
Source2:	lucene-1.9-analysis-OSGi-MANIFEST.MF
Patch4:         lucene-2.3.0-db-javadoc.patch
BuildRequires:  ant
BuildRequires:  ant-nodeps
BuildRequires:  javacc
BuildRequires:  java-javadoc
BuildRequires:  java-rpmbuild
BuildRequires:  junit
BuildRequires:  jtidy
BuildRequires:  apache-commons-digester
BuildRequires:  jline
BuildRequires:  regexp
BuildRequires:  zip
Provides:       lucene-core = %{epoch}:%{version}-%{release}
# previously used by eclipse but no longer needed
Obsoletes:      lucene-devel < %{version}
BuildRequires:  java-devel
BuildArch:      noarch

%description
Jakarta Lucene is a high-performance, full-featured text search engine
written entirely in Java. It is a technology suitable for nearly any
application that requires full-text search, especially cross-platform.

%package javadoc
Summary:        Javadoc for Lucene
Group:          Development/Java

%description javadoc
Javadoc for Lucene.

%package demo
Summary:        Lucene demonstrations and samples
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description demo
%{summary}.

%package contrib
Summary:        Lucene contributed extensions
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description contrib
%{summary}.

#%package contrib-db
#Summary:        Lucene contributed bdb extensions
#Group:          Internet/WWW/Indexing/Search
#Requires:       %{name} = %{epoch}:%{version}-%{release}
#Requires:  berkeleydb
#Requires:  berkeleydb-native >= 0:4.3.29

#%description contrib-db
#%{summary}.

%prep
%setup -q -n %{name}-%{version}
%remove_java_binaries

%patch4 -p0 -b .db-javadoc

%build
mkdir -p docs
mkdir -p lib
export OPT_JAR_LIST="ant/ant-junit junit"
export CLASSPATH=$(build-classpath jline jtidy regexp commons-digester)
#pushd contrib/db/bdb/lib
#ln -sf $(build-classpath berkeleydb-native) .
#popd
#pushd contrib/db/bdb-je/lib
#ln -sf $(build-classpath berkeleydb) .
#popd
rm -r contrib/db

#FIXME: Tests freeze randomly. Turning on debug messages shows warnings like:

# [junit] GC Warning: Repeated allocation of very large block (appr. size 512000):
# [junit] 	May lead to memory leak and poor performance.

# See: http://koji.fedoraproject.org/koji/getfile?taskID=169839&name=build.log
# for an example

%ant -Dbuild.sysclasspath=first \
  -Djavacc.home=%{_bindir}/javacc \
  -Djavacc.jar=%{_javadir}/javacc.jar \
  -Djavacc.jar.dir=%{_javadir} \
  -Djavadoc.link=%{_javadocdir}/java \
  -Dversion=%{version} \
  package
#  package test generate-test-reports

mkdir META-INF
cp %{SOURCE1} META-INF/MANIFEST.MF
zip -u build/lucene-core-%{version}.jar META-INF/MANIFEST.MF
cp %{SOURCE2} META-INF/MANIFEST.MF
zip -u build/contrib/analyzers/lucene-analyzers-%{version}.jar META-INF/MANIFEST.MF

%install

install -d -m 0755 %{buildroot}%{_javadir}
install -m 0644 build/%{name}-core-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
install -m 0644 build/%{name}-demos-%{version}.jar %{buildroot}%{_javadir}/%{name}-demos-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# contrib jars
install -d -m 0755 %{buildroot}%{_javadir}/%{name}-contrib
for c in analyzers ant highlighter lucli memory misc queries similarity snowball spellchecker surround swing wordnet xml-query-parser; do
    install -m 0644 build/contrib/$c/%{name}-${c}-%{version}.jar \
		%{buildroot}%{_javadir}/%{name}-contrib
done
(cd %{buildroot}%{_javadir}/%{name}-contrib && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# bdb contrib jars
#install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/%{name}-contrib-db
#install -m 0644 build/contrib/db/bdb/%{name}-bdb-%{version}.jar \
#		$RPM_BUILD_ROOT%{_javadir}/%{name}-contrib-db
#install -m 0644 build/contrib/db/bdb-je/%{name}-bdb-je-%{version}.jar \
#		$RPM_BUILD_ROOT%{_javadir}/%{name}-contrib-db
#(cd $RPM_BUILD_ROOT%{_javadir}/%{name}-contrib-db && for jar in *-%{version}.jar; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr build/docs/api/* \
  %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

# webapp
install -d -m 0755 %{buildroot}%{_datadir}/%{name}-%{version}
install -m 0644 build/%{name}web.war \
  %{buildroot}%{_datadir}/%{name}-%{version}

%files
%defattr(0644,root,root,0755)
%doc CHANGES.txt LICENSE.txt README.txt
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_datadir}/%{name}-%{version}

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%ghost %{_javadocdir}/%{name}

%files contrib
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-contrib

#%files contrib-db
#%defattr(0644,root,root,0755)
#%{_javadir}/%{name}-contrib-db

%files demo
%defattr(0644,root,root,0755)
%{_javadir}/%{name}-demos-%{version}.jar
%{_javadir}/%{name}-demos.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3074 |21cr|luciole-0.9.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A stop motion software for animation movie realization
Name:		luciole
Version:	0.9.3
Release:	6
License:	GPLv3
Group:		Video
Source0:	http://launchpad.net/luciole/0.9/0.9.3/+download/%{name}-%{version}.tar.gz
Source100:	luciole.rpmlintrc
Patch0:		luciole-0.8.2-use-system-default-theme.patch
Patch1:		luciole-0.9.3-pillow.patch
Url:		http://festival.inattendu.org/Luciole
BuildArch:	noarch
BuildRequires:	python-devel
BuildRequires:	desktop-file-utils
Requires:	pygtk2.0
Requires:	python-imaging
Requires:	python-dbus
Requires:	python-pygoocanvas
Requires:	gstreamer0.10-python
Requires:	pygtk2.0-libglade
Requires:	imagemagick
Requires:	mencoder
Requires:	ffmpeg
Requires:	mjpegtools
Requires:	gstreamer0.10-plugins-base
Requires:	gstreamer0.10-plugins-good
Recommends:	gtk-theme-clearlooks
Recommends:	murrine

%description
Luciole is a stop motion software for animation movie realization. It can make
live capture of images from external devices as webcam or DV cam.

%prep
%setup -q 
%patch0 -p0 -b .default-theme
%patch1 -p1 -b .pillow

%install
python setup.py install --root %{buildroot}

%files
%doc COPYING RELEASE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%{py_puresitedir}/pitivi
%{py_puresitedir}/luciole
%{py_puresitedir}/*egg-info
%{_mandir}/man1/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3075 |21cr|luckybackup-0.4.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A powerful, fast and reliable backup & sync tool
Name:		luckybackup
Version:	0.4.8
Release:	3
License:	GPLv3+
Group:		Archiving/Backup
Url:		http://luckybackup.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/sourceforge/luckybackup/%{name}-%{version}.tar.gz
Patch0:		remove_old_menu_file.patch
BuildRequires:	qt4-devel
Requires:	rsync

%description
luckyBackup is an application that backs-up and/or synchronizes any directories
with the power of rsync.

It's simple to use, fast (transfers over only changes made and not all data),
safe (keeps your data safe by checking all declared directories before
proceeding in any data manipulation ), reliable and fully customizable.

%files
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/%{name}/translations/*
%{_datadir}/pixmaps/%{name}.*
%{_mandir}/man8/*
%{_defaultdocdir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%qmake_qt4
%make

%install
%makeinstall INSTALL_ROOT=%{buildroot} install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3076 |21cr|lugaru-1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ninja rabbit fighting game
Name:		lugaru
Version:	1.2
Release:	3
License:	GPLv2+
Group:		Games/Other
Url:		https://osslugaru.gitlab.io/
Source0:	https://bitbucket.org/osslugaru/lugaru/downloads/%{name}-%{version}.tar.xz
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}

%description
Lugaru is the predecessor to Overgrowth (http://www.wolfire.com/overgrowth).
It is a third-person action game. The main character, Turner, is an
anthropomorphic rebel bunny rabbit with impressive combat skills.
In his quest to find those responsible for slaughtering his village,
he uncovers a far-reaching conspiracy involving the corrupt leaders
of the rabbit republic and the starving wolves from a nearby den.
Turner takes it upon himself to fight against their plot and save
his fellow rabbits from slavery.

%files
%{_defaultdocdir}/%{name}
%{_gamesbindir}/%{name}
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%package data
Summary:	Data files for the Lugaru game
License:	CC-BY-SA
Group:		Games/Other
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description data
This package contains arch-independent data files for the game Lugaru.

%files data
%doc CONTENT-LICENSE.txt
%{_gamesdatadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DCMAKE_INSTALL_BINDIR=games		\
	-DCMAKE_INSTALL_DATADIR=share/games	\
	-DSYSTEM_INSTALL=ON
%make

%install
%makeinstall_std -C build

%if %{mdvver} >= 201610
mkdir -p %{buildroot}%{_appdatadir}
cp %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %{buildroot}%{_appdatadir}/%{name}.appdata.xml
rm -fr %{buildroot}%{_datadir}/appdata
%endif

for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 \
		%{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -strip -resize $size Dist/Linux/lugaru.png \
		%{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3077 |21cr|lukskey-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		lukskey
Version:	0.2
Release:	2
Group:		System/Configuration/Other
Summary:	Changing LUKS encrypted partitions keys 
License:	GPLv3
URL:		https://github.com/AKotov-dev/%{name}
Source0:	https://github.com/AKotov-dev/LUKSKey/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	lukskey
BuildRequires:	lazarus
BuildRequires:	gettext

%description
lukskey - is a simple loader of free password-free OpenVPN configurations (*.ovpn) 
from open sources. Don't forget to open the iptables ports.

%files
%doc ../README.md
%license ../LICENSE
%attr(755,-,-) %{_bindir}/%{name}
%{_datadir}/lukskey/
%{_datadir}/applications/lukskey.desktop
%{_datadir}/pixmaps/lukskey.png
%{_datadir}/polkit-1/actions/%{name}.policy
#-----------------------------------------------------------------
%prep
%setup -n LUKSKey-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp %{SOURCE1} %{buildroot}%{_bindir}/%{name}
cp %{name} %{buildroot}%{_datadir}/%{name}
cp all/usr/share/icons/lukskey.png %{buildroot}%{_datadir}/pixmaps/
cp all/usr/share/applications/lukskey.desktop %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp all/usr/share/polkit-1/actions/%{name}.policy %{buildroot}%{_datadir}/polkit-1/actions

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3078 |21cr|lumina-1.6.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define _disable_ld_no_undefined 1

Summary:	The Lumina Desktop Environment
Name:		lumina
Version:	1.6.2
Release:	4
License:	BSD
Group:		Graphical desktop/Other
Url:		http://lumina-desktop.org/
Source0:	https://github.com/lumina-desktop/lumina/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# https://github.com/lumina-desktop/lumina/pull/813
Patch0001:  0001-Fix-linkage-of-lthemeengine-qtplugin.patch
# https://github.com/lumina-desktop/lumina/pull/812
Patch0002:  0002-Add-Russian-translations-in-desktop-files.patch
BuildRequires:	git-core
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb-ewmh)
BuildRequires:	pkgconfig(xcb-atom)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)

%define _description %{expand:
The Lumina Desktop Environment is a lightweight system interface designed
for use on any Unix-like operating system. Lumina is based on using
plugins, which allows the entire interface to be arranged by each individual
user as desired.
A system wide default layout is also included, and is configurable by the
system administrator.
This allows every system (or user session) to be designed to maximize the
individual user's productivity.

The Lumina desktop developers understand that the point of a computer
system is to run applications, so Lumina was designed to require as few
system dependencies/requirements as possible. This allows it to be used
to revitalize older systems or to allow the user to run applications that
may need a higher percentage of the system resources than were previously
available with other desktop environments.

All of this results in a very lightweight, customizable, and smooth desktop
experience with minimal system overhead.
}

%description
%_description

#----------------------------------------------------------------------------

%package -n task-lumina
Summary:    Meta-package to install Lumina Desktop
Provides:   lumina = %{EVRD}
Requires:   %{name}-desktop
Recommends: material-design-dark-icon-theme
Recommends: material-design-light-icon-theme
Recommends: qt5-platformtheme-lthemeengine
Recommends: qt5-style-lthemeengine
Recommends: lumina-archiver
Recommends: lumina-config
Recommends: lumina-fileinfo
Recommends: lumina-fm
Recommends: lumina-icons
Recommends: lumina-info
Recommends: lumina-lthemeengine
Recommends: lumina-mediaplayer
Recommends: lumina-open
Recommends: lumina-photo
Recommends: lumina-screenshot
Recommends: lumina-sudo
Recommends: lumina-search
Recommends: lumina-textedit
Recommends: lumina-xconfig
# built from separate sources
Recommends: lumina-calculator
Recommends: lumina-pdf
Recommends: (lumina-gdm if gdm)
# task subpackage was created
Obsoletes:  lumina < 1.6.2

%description -n task-lumina
This meta-package installs the Lumina Desktop Environment and its utilities.
%_description

%files -n task-lumina
# empty, meta package
#----------------------------------------------------------------------------

%package -n material-design-dark-icon-theme
Summary:	Material Design Dark icon theme

%description -n material-design-dark-icon-theme
Material Design Dark icon theme.

%files -n material-design-dark-icon-theme
%dir %{_iconsdir}/material-design-dark
%{_iconsdir}/material-design-dark/*

#----------------------------------------------------------------------------

%package -n material-design-light-icon-theme
Summary:	Material Design Light icon theme

%description -n material-design-light-icon-theme
Material Design Light icon theme.

%files -n material-design-light-icon-theme
%dir %{_iconsdir}/material-design-light
%{_iconsdir}/material-design-light/*

#----------------------------------------------------------------------------

%package -n qt5-platformtheme-lthemeengine
Summary:	Lumina Theme Engine platform theme for Qt 5
Requires:	qt5-style-lthemeengine

%description -n qt5-platformtheme-lthemeengine
Lumina Theme Engine platform theme for Qt 5.

%files -n qt5-platformtheme-lthemeengine
%{_qt5_plugindir}/platformthemes/liblthemeengine.so

#----------------------------------------------------------------------------

%package -n qt5-style-lthemeengine
Summary:	Lumina Theme Engine style for Qt5

%description -n qt5-style-lthemeengine
Lumina Theme Engine style for Qt5.

%files -n qt5-style-lthemeengine
%{_qt5_plugindir}/styles/liblthemeengine-style.so

#----------------------------------------------------------------------------

%package archiver
Summary:	Graphical archiver for the Lumina Desktop
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description archiver
This package provides lumina-archiver, which handles opening of
tar and zip files.

%files archiver -f l-archiver.lang
%{_bindir}/lumina-archiver
%{_datadir}/applications/lumina-archiver.desktop
%{_mandir}/man1/lumina-archiver.1*

#----------------------------------------------------------------------------

%package config
Summary:	Configuration utility for Lumina Desktop
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description config
This package provides lumina-config, which allows changing
various aspects of lumina and fluxbox, like the wallpaper being
used, theme, icons, panel (and plugins), startup and default
applications, desktop menu and more.

%files config -f lumina-config.lang
%{_bindir}/lumina-config
%{_datadir}/applications/lumina-config.desktop
%{_mandir}/man1/lumina-config.1*

#----------------------------------------------------------------------------

%package desktop
Summary:    Lumina Desktop core
Requires:   fluxbox
# for enabled compositing, autodetects picom binary
Requires:   (picom or compton)
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description desktop
Lumina desktop core
%_description

%files desktop -f lumina-desktop.lang
%{_bindir}/lumina-desktop
%{_bindir}/start-lumina-desktop
# fluxbox config calls lumina-pingcursor
%{_bindir}/lumina-pingcursor
%{_mandir}/man1/lumina-desktop.1*
%{_mandir}/man8/start-lumina-desktop.8*
%{_sysconfdir}/luminaDesktop.conf.dist
%{_datadir}/xsessions/Lumina-DE.desktop
# link to https://t.me/luminadesktop (Telegram)
# In theory can be overriden in $XDG_DATA_DIRS
%{_datadir}/applications/lumina-support.desktop
%{_datadir}/lumina-desktop
%exclude %{_datadir}/lumina-desktop/i18n/*
%{_iconsdir}/hicolor/scalable/apps/Lumina-DE.svg

#----------------------------------------------------------------------------

%package fileinfo
Summary:	Desktop file editor for Lumina Desktop
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description fileinfo
This package provides lumina-fileinfo, which is an advanced desktop
file (menu) editor.

%files fileinfo -f l-fileinfo.lang
%{_bindir}/lumina-fileinfo
%{_datadir}/applications/lumina-fileinfo.desktop
%{_mandir}/man1/lumina-fileinfo.1*

#----------------------------------------------------------------------------

%package fm
Summary:	File manager for Lumina Desktop
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description fm
This package provides lumina-fm, which is a simple file manager
with support for multiple view modes, tabbed browsing,
including an integrated slideshow-based picture viewer.

%files fm -f lumina-fm.lang
%{_bindir}/lumina-fm
%{_iconsdir}/hicolor/scalable/apps/Insight-FileManager.svg
%{_datadir}/applications/lumina-fm.desktop
%{_mandir}/man1/lumina-fm.1*

#----------------------------------------------------------------------------

%package icons
Summary:	Icon theme for the Lumina desktop

%description icons
Icon theme for the Lumina desktop

%files icons
%{_iconsdir}/lumina-icons

#----------------------------------------------------------------------------

%package info
Summary:	Basic information utility for Lumina Desktop
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description info
This package provides lumina-info, which is a simple
utility that displays various information about the Lumina
installation, like paths, contributors, license or version.

%files info -f lumina-info.lang
%{_bindir}/lumina-info
%{_datadir}/applications/lumina-info.desktop
%{_mandir}/man1/lumina-info.1*

#----------------------------------------------------------------------------

%package lthemeengine
Summary:	Theme Engine for Lumina Desktop
Requires:	qt5-platformtheme-lthemeengine

%description lthemeengine
This package provides lthemeengine, a tool to configure themes
for Lumina Desktop.

%files lthemeengine
%{_bindir}/lthemeengine
%{_bindir}/lthemeengine-sstest
%{_datadir}/applications/lthemeengine.desktop
%{_datadir}/lthemeengine/

#----------------------------------------------------------------------------

%package mediaplayer
Summary:	Media player for Lumina Desktop
Recommends:	pianobar
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description mediaplayer
This package provides lumina-mediaplayer, which is a simple media player.

%files mediaplayer -f l-mediap.lang
%{_bindir}/lumina-mediaplayer
%{_datadir}/applications/lumina-mediaplayer.desktop
%{_datadir}/applications/lumina-mediaplayer-pandora.desktop
%{_mandir}/man1/lumina-mediaplayer.1*

#----------------------------------------------------------------------------

%package open
Summary:	xdg-open style utility for Lumina Desktop
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description open
This package provides lumina-open, which handles opening of
files and URLs according to the system-wide mimetype association.
It also provides an optional selector if more than one application
is assigned with the given url or file type.

%files open -f lumina-open.lang
%{_bindir}/lumina-open
%{_mandir}/man1/lumina-open.1*

#----------------------------------------------------------------------------

%package photo
Summary:	Photo viewer for Lumina Desktop

%description photo
This package provides lumina-photo, which is a simple photo viewer.

%files photo -f l-photo.lang
%{_bindir}/lumina-photo
%{_datadir}/applications/lumina-photo.desktop
%{_mandir}/man1/lumina-photo.1*

#----------------------------------------------------------------------------

%package screenshot
Summary:	Screenshot utility for Lumina Desktop
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description screenshot
This package provides lumina-screenshot, which is a simple
screenshot utility that allows to snapshot the whole desktop
or a single window after a configurable delay.

Optionally the window border can be hidden when taking a
screenshot of a single window.

%files screenshot -f l-screenshot.lang
%{_bindir}/lumina-screenshot
%{_datadir}/applications/lumina-screenshot.desktop
%{_mandir}/man1/lumina-screenshot.1*

#----------------------------------------------------------------------------

%package sudo
Summary:	Lumina GUI for sudo

%description sudo
Lumina GUI for sudo

%files sudo
%{_bindir}/lumina-sudo

#----------------------------------------------------------------------------

%package search
Summary:	Search utility for Lumina Desktop
# localization files were moved
Conflicts:  lumina-i18n < 1.6.2

%description search
This package provides lumina-search, which is a simple
search utility that allows to search for applications or
files and directories in the home directory and launch
or open them.

%files search -f lumina-search.lang
%{_bindir}/lumina-search
%{_datadir}/applications/lumina-search.desktop
%{_mandir}/man1/lumina-search.1*

#----------------------------------------------------------------------------

%package textedit
Summary:	Text editor for Lumina Desktop

%description textedit
This package provides lumina-textedit, which is a simple
text editor meant for use with the Lumina desktop

%files textedit -f l-te.lang
%{_bindir}/lte
%{_bindir}/lumina-textedit
%{_datadir}/applications/lumina-textedit.desktop
%{_datadir}/lumina-desktop/syntax_rules
%{_mandir}/man1/lumina-textedit.1*

#----------------------------------------------------------------------------

%package xconfig
Summary:	X server display configuration tool for Lumina Desktop

%description xconfig
This package provides lumina-xconfig, which is a simple
multi-head aware display configuration tool for configuring
the X server.

%files xconfig -f lumina-xconfig.lang
%{_bindir}/lumina-xconfig
%{_datadir}/applications/lumina-xconfig.desktop
%{_mandir}/man1/lumina-xconfig.1*

#----------------------------------------------------------------------------

# https://abf.io/import/gdm/blob/1e85a25c61/0001-Allow-to-set-default-session-via-env.patch
# https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/137
%package gdm
Summary:	Set Lumina as the default session in GDM
Requires:	gdm
# Lumina does not run on Wayland, no sense to run
# GDM greeter via Wayland and then Lumina via Xorg
Recommends:	gdm-default-to-xorg

%description gdm
Set Lumina as the default session in GDM

%files gdm
# XXX %%{_unitdir}/gdm.service.d is not owned by any package
%{_unitdir}/gdm.service.d/gdm-default-session-lumina.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%qmake_qt5 *.pro \
	CONFIG+=WITH_I18N \
	LIBPREFIX="%{_libdir}" \
	L_BINDIR="%{_bindir}" \
	L_LIBDIR=%{_libdir} \
	L_SHAREDIR=%{_datadir} \
	L_ETCDIR=%{_sysconfdir} \
	L_INCLUDEDIR=%{_includedir} \
	L_MANDIR=%{_mandir} \
	lrelease=lrelease-qt5

%make

%install
%makeinstall_qt

# split locales into subpackages
# cd <source code>
# find . -name '*.ts' | awk -F'/' '{print $NF}' | awk -F '_' '{print $1}' | sort -u | while read -r line ; do echo "%find_lang $line --with-qt"; done
# terminal and screencast ar in src-qt5/experimental which is not enabled in src-qt5/src-qt5.pro
%find_lang l-archiver --with-qt
%find_lang l-fileinfo --with-qt
%find_lang l-mediap --with-qt
%find_lang l-photo --with-qt
%find_lang l-screenshot --with-qt
%find_lang l-te --with-qt
#find_lang l-terminal --with-qt
#find_lang lum --with-qt
%find_lang lumina-config --with-qt
%find_lang lumina-desktop --with-qt
%find_lang lumina-fm --with-qt
%find_lang lumina-info --with-qt
%find_lang lumina-open --with-qt
%find_lang lumina-search --with-qt
%find_lang lumina-xconfig --with-qt

mkdir -p %{buildroot}%{_unitdir}/gdm.service.d/
cat > %{buildroot}%{_unitdir}/gdm.service.d/gdm-default-session-lumina.conf << 'EOF'
[Service]
Environment=GDM_DEFAULT_SESSION=Lumina-DE
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3079 |21cr|lumina-calculator-1.6.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scientific calculator for the Lumina Desktop
Name:		lumina-calculator
Version:	1.6.0
Release:	3
License:	BSD
Group:		Graphical desktop/Other
Url:		http://lumina-desktop.org/
Source0:	https://github.com/lumina-desktop/lumina-calculator/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0001:	4d7998c145d32126904202819820ef269e1762b9.patch
# https://github.com/lumina-desktop/lumina-calculator/pull/4
Patch0002:	0001-Add-Russian-translation-to-desktop-file.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Graphical scientific calculator for the Lumina Desktop

%files -f l-calc.lang
%{_bindir}/lumina-calculator
%{_datadir}/applications/lumina-calculator.desktop
%{_mandir}/man1/lumina-calculator.1*

#------------------------------------------------------------------

%prep
%autosetup -p2 -n %{name}-%{version}/src-qt5

%build
%qmake_qt5 *.pro \
	CONFIG+=WITH_I18N \
	LIBPREFIX="%{_libdir}" \
	L_BINDIR="%{_bindir}" \
	L_LIBDIR=%{_libdir} \
	L_SHAREDIR=%{_datadir} \
	L_ETCDIR=%{_sysconfdir} \
	L_INCLUDEDIR=%{_includedir} \
	L_MANDIR=%{_mandir} \
	lrelease=lrelease-qt5

%make

%install
%makeinstall_qt
%find_lang l-calc --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3080 |21cr|luminance-hdr-2.6.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A graphical tool for creating and tone-mapping HDR images
Name:		luminance-hdr
Version:	2.6.1.1
Release:	3
License:	GPLv2+
Group:		Graphics
Url:		http://qtpfsgui.sourceforge.net/
Source0:	http://downloads.sourceforge.net/qtpfsgui/%{name}-%{version}%{?pre:-%pre}.tar.bz2
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel
BuildRequires:	gomp-devel
BuildRequires:	jpeg-devel
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(OpenEXR) < 3.0.0
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(zlib)
Requires:	qt5-database-plugin-sqlite

%description
Luminance is a graphical program for assembling bracketed photos into High
Dynamic Range (HDR) images. It also provides a number of tone-mapping
operators for creating low dynamic range versions of HDR images.

%files
%doc AUTHORS Changelog LICENSE README.md TODO
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_datadir}/%{name}
%{_datadir}/appdata/net.sourceforge.qtpfsgui.LuminanceHDR.appdata.xml
%{_datadir}/applications/net.sourceforge.qtpfsgui.LuminanceHDR.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

# convert to UTF-8
mv Changelog Changelog.old
iconv --from-code=ISO-8859-1 --to-code=UTF-8 --output Changelog Changelog.old

%build
%cmake_qt5 \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DBUILD_SHARED_LIBS:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3081 |21cr|lunchbox-1.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Lunchbox
%define major 10
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

%define servus_major 6
%define libservus %mklibname Servus %{servus_major}
%define libservusqt %mklibname ServusQt %{servus_major}

Summary:	C++ library for multi-threaded programming
Name:		lunchbox
Version:	1.17.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://equalizergraphics.com/
Source0:	https://github.com/Eyescale/Lunchbox/archive/refs/tags/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
# https://github.com/Eyescale/CMake.git
Source1:	common.tar.gz
#https://github.com/HBPVIS/Servus.git
# master + https://github.com/HBPVIS/Servus/pull/96
Source2:	Servus.tar.gz
Source100:	lunchbox.rpmlintrc
Patch0:		lunchbox-allowed_cpuset.patch
BuildRequires:	avahi
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	git
BuildRequires:	graphviz
BuildRequires:	boost-devel
BuildRequires:	gomp-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-compat-libdns_sd)
BuildRequires:	pkgconfig(hwloc)
BuildRequires:	pkgconfig(leveldb)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Lunchbox is C++ library for multi-threaded programming, providing OS
abstraction, utility classes and high-performance primitives, such as
atomic variables, spin locks and lock-free containers.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ library for multi-threaded programming
Group:		System/Libraries

%description -n %{libname}
Lunchbox is C++ library for multi-threaded programming, providing OS
abstraction, utility classes and high-performance primitives, such as
atomic variables, spin locks and lock-free containers.

%files -n %{libname}
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libservus}
Summary:	C++ library for multi-threaded programming
Group:		System/Libraries

%description -n %{libservus}
C++ library for multi-threaded programming.

%files -n %{libservus}
%{_libdir}/libServus.so.%{servus_major}
%{_libdir}/libServus.so.1.6.0

#----------------------------------------------------------------------------

%package -n %{libservusqt}
Summary:	C++ library for multi-threaded programming
Group:		System/Libraries

%description -n %{libservusqt}
C++ library for multi-threaded programming.

%files -n %{libservusqt}
%{_libdir}/libServusQt.so.%{servus_major}
%{_libdir}/libServusQt.so.1.6.0

#----------------------------------------------------------------------------

%package  -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libservus} = %{EVRD}
Requires:	%{libservusqt} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description  -n %{devname}
C++ library for multi-threaded programming.

This package contains header files and libraries needed to develop
application that use %{name}.

%files  -n %{devname}
%doc README.md AUTHORS.txt ACKNOWLEDGEMENTS.txt CHANGES.txt LICENSE.txt
%{_bindir}/servusBrowser
%{_includedir}/lunchbox
%{_includedir}/servus
%{_libdir}/lib%{oname}.so
%{_libdir}/libServus.so
%{_libdir}/libServusQt.so
%{_datadir}/%{oname}
%{_datadir}/Servus

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version} -a1 -a2
mv -f common CMake

%apply_patches

%build
%cmake
%make

%install
%makeinstall_std -C build
%ifnarch %{ix86}
mv %{buildroot}/usr/lib %{buildroot}%{_libdir}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3082 |21cr|luntik-0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		luntik
Version:	0.7
Release:	2
Summary:	Luntik - simple OpenVPN Connector
Group:		System/Configuration/Networking
License:	GPLv3
URL:		https://github.com/AKotov-dev/luntik
Source0:	https://github.com/AKotov-dev/luntik/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	luntik
Source2:	luntik.png
Source3:	luntik.desktop
Source4:	luntik.policy
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	openvpn
Requires:	systemd
Requires:	polkit
Requires:	procps-ng
Requires:	fping
Requires:	gtk2

%description
Luntik - simple OpenVPN Connector

%files
%doc ../README.md
%license ../LICENSE
%{_sysconfdir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}
%{_unitdir}/%{name}.service
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/%{name}.policy

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------
%prep
%setup -n luntik-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp etc/%{name}/* %{buildroot}%{_sysconfdir}/%{name}/
cp %{name} %{buildroot}%{_datadir}/%{name}/
cp etc/systemd/system/%{name}.service %{buildroot}%{_unitdir}/
cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp %{SOURCE4} %{buildroot}%{_datadir}/polkit-1/actions

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3083 |21cr|luntikwg-0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		luntikwg
Version:	0.8
Release:	2
Summary:	LuntikWG - simple WireGuard Connector
Group:		System/Configuration/Networking
License:	GPLv3+
URL:		https://github.com/AKotov-dev/luntikwg
Source:		https://github.com/AKotov-dev/luntikwg/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	luntikwg
Source2:	luntikwg.png
Source3:	luntikwg.desktop
Source4:	luntikwg.policy
Source5:	52-luntikwg.conf
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	systemd
Requires:	polkit
Requires:	iptables
Requires:	wireguard-tools
Requires:	procps-ng
Requires:	fping
Requires:	gtk2


%description
LuntikWG - simple WireGuard Connector

%files
%doc ../README.md
%license ../LICENSE
%{_sysconfdir}/%{name}
%{_sysconfdir}/sysctl.d/52-%{name}.conf
%attr(0755,root,root) %{_bindir}/%{name}
%{_unitdir}/%{name}.service
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/%{name}.policy

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------
%prep
%setup -n luntikwg-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/sysctl.d
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp etc/%{name}/* %{buildroot}%{_sysconfdir}/%{name}/
cp %{name} %{buildroot}%{_datadir}/%{name}/
cp etc/systemd/system/%{name}.service %{buildroot}%{_unitdir}/
cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp %{SOURCE4} %{buildroot}%{_datadir}/polkit-1/actions
cp %{SOURCE5} %{buildroot}%{_sysconfdir}/sysctl.d/52-%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3084 |21cr|lunzip-1.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		lunzip
Summary:	Decompressor for lzip files
Version:	1.13
Release:	1
License:	GPLv3+
Group:		Archiving/Compression
URL:		http://www.nongnu.org/lzip/lunzip.html
Source0:	http://download.savannah.gnu.org/releases/lzip/%{name}/%{name}-%{version}.tar.lz
Source1:	http://download.savannah.gnu.org/releases/lzip/%{name}/%{name}-%{version}.tar.lz.sig
BuildRequires:	lzip

%description
Lunzip is a decompressor for lzip files. It is written in C and its small size
makes it well suited for embedded devices or software installers that need
to decompress files but do not need compression capabilities.

Lunzip replaces every file given in the command line with a decompressed
version of itself. Each decompressed file has the same modification date,
permissions, and, when possible, ownership as the corresponding compressed
file. Lunzip is able to read from some types of non regular files
if the "--stdout" option is specified.

If no file names are specified, lunzip decompresses from standard input
to standard output. In this case, lunzip will decline to read compressed input
from a terminal.

Lunzip will correctly decompress a file which is the concatenation of two
or more compressed files. The result is the concatenation of the corresponding
uncompressed files. Integrity testing of concatenated compressed files is also
supported.

The amount of memory required by lunzip to decompress a file is only a few tens
of KiB larger than the dictionary size used to compress that file. 

%files
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/lunzip
%{_mandir}/man1/lunzip.1*

#--------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3085 |21cr|luola-1.3.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Fly a small V shaped ship in a 2D arcade game
Name:		luola
Version:	1.3.2
Release:	9
Source0:	http://www.luolamies.org/software/luola/%{name}-%{version}.tar.bz2
Source1:    http://luolamies.org/software/luola/stdlevels-6.0.tar.gz
License:	GPLv2+
Group:		Games/Arcade
URL:		http://www.luolamies.org/software/luola/
BuildRequires:	imagemagick SDL-devel SDL_image-devel SDL_mixer-devel
BuildRequires:	zlib-devel
%description
Luola is a 2D arcade game where you fly a small V shaped ship in different
kinds of levels. It's genre "Luolalentely" (Cave-flying) is (or was) very
popular in Finland. Though cavern-flying games are not originally
Finnish, nowdays most of them are.

%prep
%setup -q
tar -xf %{SOURCE1} -C data/levels

%build
export LDFLAGS="-lm"
%configure	--bindir=%{_gamesbindir} --enable-sdl-gfx --datadir=%{_gamesdatadir} --enable-sound
%make

%install
%{makeinstall_std} datadir=%{_gamesdatadir}
install -m644 data/levels/*.{png,lev} %{buildroot}%_gamesdatadir/%name/levels/

#Menu items
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Game;ArcadeGame;
Name=Luola
Comment=%{Summary}
EOF
#Icons
install -d %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert -size 32x32 %{name}.png %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 %{name}.png %{buildroot}%{_liconsdir}/%{name}.png
convert -size 16x16 %{name}.png %{buildroot}%{_miconsdir}/%{name}.png

%files
%defattr(-, root, root)
%doc README AUTHORS
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3086 |21cr|lure-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define scummvmdir %{_datadir}/scummvm/

Name:           lure
Version:        1.1
Release:        1
Summary:        Lure of the Temptress - Adventure Game
Group:          Games/Adventure
License:        Freeware
URL:            http://www.revolution.co.uk/_display.php?id=10
Source:		http://downloads.sourceforge.net/scummvm/%{name}-%{version}.zip
Source1:	%{name}.png
BuildRequires:	unzip
BuildArch:      noarch
Requires:       scummvm

%description
Lure of the Temptress was Revolution's very first adventure game and work began
on it in 1989, even before Revolution's inception as an actual games
development company. From the start our aim was to consider the contemporary
adventures of the day and then bring something new to the genre. From this came
the Virtual Theatre engine. VT allowed in-game characters to wander around the
gameworld indepently of each other, living their own lives and doing their own
thing. Another feature allowed the player to give direct orders to Helper
characters - in this case Ratpouch - who would then go off to perform the task.

The result is a quirky and entertaining adventure game that kicked off
Revolution's fondness for characterisation and in-game humour.


%prep
%setup -q -n %{name}
sed -i 's/\r//g' notes.txt README
cp %{SOURCE1} %{name}.png


%install
mkdir -p %{buildroot}/%{scummvmdir}/%{name}
install -p -m 644 *.vga *.ega %{buildroot}/%{scummvmdir}/%{name}
mkdir -p %{buildroot}/%{_iconsdir}
#install -m 0644 %{source1} %{buildroot}%{_iconsdir}/
install -m 0644 %{name}.png %{buildroot}%{_iconsdir}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Lure of the Temptress
Comment=%summary
Exec=%{_gamesbindir}/scummvm -p%{scummvmdir}/%{name} lure
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;AdventureGame;
EOF

%clean

%files
%doc *.txt Manual.pdf PROTECT.PDF README
%{scummvmdir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3087 |21cr|lure-de-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define scummvmdir %{_datadir}/scummvm/

Name:           lure-de
Version:        1.1
Release:        1
Summary:        Lure of the Temptress - Adventure game in German
Group:          Games/Adventure
License:        Freeware
URL:            http://www.revolution.co.uk/_display.php?id=10
Source:		http://downloads.sourceforge.net/scummvm/%{name}-%{version}.zip
Source1:	%{name}.png
BuildRequires:	unzip
BuildArch:      noarch
Requires:       scummvm

%description
Lure of the Temptress was Revolution's very first adventure game and work began
on it in 1989, even before Revolution's inception as an actual games
development company. From the start our aim was to consider the contemporary
adventures of the day and then bring something new to the genre. From this came
the Virtual Theatre engine. VT allowed in-game characters to wander around the
gameworld indepently of each other, living their own lives and doing their own
thing. Another feature allowed the player to give direct orders to Helper
characters - in this case Ratpouch - who would then go off to perform the task.

The result is a quirky and entertaining adventure game that kicked off
Revolution's fondness for characterisation and in-game humour.


%prep
%setup -q -n %{name}
sed -i 's/\r//g' README
cp %{SOURCE1} %{name}.png

%install
mkdir -p %{buildroot}/%{scummvmdir}/%{name}
install -p -m 644 *.vga %{buildroot}/%{scummvmdir}/%{name}
mkdir -p %{buildroot}/%{_iconsdir}
install -m 0644 %{name}.png %{buildroot}%{_iconsdir}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Lure of the Temptress (german)
Comment=%summary
Exec=%{_gamesbindir}/scummvm -p%{scummvmdir}/%{name} lure
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;AdventureGame;
EOF

%clean

%files
%doc *.txt Manual.pdf README
%{scummvmdir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3088 |21cr|lure-es-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define scummvmdir %{_datadir}/scummvm/

Name:           lure-es
Version:        1.1
Release:        1
Summary:        Lure of the Temptress - Adventure game in Spanish
Group:          Games/Adventure
License:        Freeware
URL:            http://www.revolution.co.uk/_display.php?id=10
Source:		http://downloads.sourceforge.net/scummvm/%{name}-%{version}.zip
Source1:	%{name}.png
BuildRequires:	unzip
BuildArch:      noarch
Requires:       scummvm

%description
Lure of the Temptress was Revolution's very first adventure game and work began
on it in 1989, even before Revolution's inception as an actual games
development company. From the start our aim was to consider the contemporary
adventures of the day and then bring something new to the genre. From this came
the Virtual Theatre engine. VT allowed in-game characters to wander around the
gameworld indepently of each other, living their own lives and doing their own
thing. Another feature allowed the player to give direct orders to Helper
characters - in this case Ratpouch - who would then go off to perform the task.

The result is a quirky and entertaining adventure game that kicked off
Revolution's fondness for characterisation and in-game humour.


%prep
%setup -q -n %{name}
sed -i 's/\r//g' README
cp %{SOURCE1} %{name}.png


%install
mkdir -p %{buildroot}/%{scummvmdir}/%{name}
install -p -m 644 *.VGA %{buildroot}/%{scummvmdir}/%{name}
mkdir -p %{buildroot}/%{_iconsdir}
install -m 0644 %{name}.png %{buildroot}%{_iconsdir}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Lure of the Temptress (spanish)
Comment=%summary
Exec=%{_gamesbindir}/scummvm -p%{scummvmdir}/%{name} lure
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;AdventureGame;
EOF

%clean

%files
%doc *.txt Manual.pdf README
%{scummvmdir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3089 |21cr|lure-fr-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define scummvmdir %{_datadir}/scummvm/

Name:           lure-fr
Version:        1.1
Release:        1
Summary:        Lure of the Temptress - Jeu d'aventure en français
Group:          Games/Adventure
License:        Freeware
URL:            http://www.revolution.co.uk/_display.php?id=10
Source:		http://downloads.sourceforge.net/scummvm/%{name}-%{version}.zip
Source1:	lure-fr.png
BuildRequires:	unzip
BuildArch:      noarch
Requires:       scummvm

%description
Lure of the Temptress was Revolution's very first adventure game and work began
on it in 1989, even before Revolution's inception as an actual games
development company. From the start our aim was to consider the contemporary
adventures of the day and then bring something new to the genre. From this came
the Virtual Theatre engine. VT allowed in-game characters to wander around the
gameworld indepently of each other, living their own lives and doing their own
thing. Another feature allowed the player to give direct orders to Helper
characters - in this case Ratpouch - who would then go off to perform the task.

The result is a quirky and entertaining adventure game that kicked off
Revolution's fondness for characterisation and in-game humour.


%prep
%setup -q -n %{name}
sed -i 's/\r//g' README
cp %{SOURCE1} %{name}.png

%install
mkdir -p %{buildroot}/%{scummvmdir}/%{name}
install -p -m 644 *.VGA %{buildroot}/%{scummvmdir}/%{name}
mkdir -p %{buildroot}/%{_iconsdir}
install -m 0644 %{name}.png %{buildroot}%{_iconsdir}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Lure of the Temptress (en français)
Comment=%summary
Exec=%_gamesbindir/scummvm -p%{scummvmdir}/%{name} lure
Icon=%name
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;AdventureGame;
EOF

%clean

%files
%doc *.txt Manual.pdf README
%{scummvmdir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3090 |21cr|lure-it-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define scummvmdir %{_datadir}/scummvm/

Name:           lure-it
Version:        1.1
Release:        1
Summary:        Lure of the Temptress - Adventure game in Italian
Group:          Games/Adventure
License:        Freeware
URL:            http://www.revolution.co.uk/_display.php?id=10
Source:		http://downloads.sourceforge.net/scummvm/%{name}-%{version}.zip
Source1:	%{name}.png
BuildRequires:	unzip
BuildArch:      noarch
Requires:       scummvm

%description
Lure of the Temptress was Revolution's very first adventure game and work began
on it in 1989, even before Revolution's inception as an actual games
development company. From the start our aim was to consider the contemporary
adventures of the day and then bring something new to the genre. From this came
the Virtual Theatre engine. VT allowed in-game characters to wander around the
gameworld indepently of each other, living their own lives and doing their own
thing. Another feature allowed the player to give direct orders to Helper
characters - in this case Ratpouch - who would then go off to perform the task.

The result is a quirky and entertaining adventure game that kicked off
Revolution's fondness for characterisation and in-game humour.


%prep
%setup -q -n %{name}
sed -i 's/\r//g' README
cp %{SOURCE1} %{name}.png

%install
mkdir -p %{buildroot}/%{scummvmdir}/%{name}
install -p -m 644 *.VGA %{buildroot}/%{scummvmdir}/%{name}
mkdir -p %{buildroot}/%{_iconsdir}
install -m 0644 %{name}.png %{buildroot}%{_iconsdir}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Lure of the Temptress (italian)
Comment=%summary
Exec=%{_gamesbindir}/scummvm -p%{scummvmdir}/%{name} lure
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;AdventureGame;
EOF

%clean

%files
%doc *.txt Manual.pdf README
%{scummvmdir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3091 |21cr|lutris-0.5.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude python3egg\\(pygobject\\)

Summary:	Install and play any video game easily
Name:		lutris
Version:	0.5.10
Release:	1
License:	GPLv3+
Group:		Games/Other
Url:		http://lutris.net
Source0:	http://lutris.net/releases/%{name}_%{version}.tar.xz
Patch0:		lutris-0.5.10-desktop-ru.patch
BuildRequires:	python3-setuptools
BuildRequires:	python3-pyxdg
BuildRequires:	python3-gi
BuildRequires:	python3-gobject3
Requires:	glib-networking
Requires:	gvfs
Requires:	p7zip
Requires:	python3-evdev
Requires:	python3-gi
Requires:	python3-gobject3
Requires:	python3-pyxdg
Requires:	python3-requests
Requires:	python3-yaml
Requires:	xgamma
Requires:	xrandr
Requires:	typelib(GnomeDesktop) = 3.0
Requires:	typelib(GnomeKeyring) = 1.0
Requires:	typelib(GDesktopEnums) = 3.0
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(Notify) = 0.7
Requires:	typelib(Soup) = 2.4
Requires:	typelib(JavaScriptCore) = 4.0
Requires:	typelib(WebKit2) = 4.0
Recommends:	python3-pyinotify2
BuildArch:	noarch

%description
Lutris is a gaming platform for GNU/Linux. Its goal is to make
gaming on Linux as easy as possible by taking care of installing
and setting up the game for the user. The only thing you have to
do is play the game. It aims to support every game that is playable
on Linux.

%files
%{_appdatadir}/net.%{name}.Lutris.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/net.%{name}.Lutris.desktop
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/%{name}.1.*
%{py3_puresitedir}/%{name}-%{version}-py*.egg-info
%{py3_puresitedir}/%{name}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3092 |21cr|lux-wine-install-0.78.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname lux-wine

Summary:	RunImage container for run Windows favorite applications and games
Name:		lux-wine-install
Version:	0.78.5.5
Release:	1
License:	MIT
Group:		Games/Other
Url:		https://github.com/VHSgunzo/lux-wine
Source0:	https://github.com/VHSgunzo/lux-wine/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildArch:	noarch
ExclusiveArch:	x86_64

%description
This project allows you to easily run your favorite applications and games for 
Windows on almost any Linux x86_64 distribution using a specially configured
Wine/Proton and RunImage container. Lux Wine also comes with a native Steam,
which allows you not to think about installing a large number of libraries
into your system (especially 32-bit ones) for its work.

%files
%doc CHANGELOG.md README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/256x256/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}
sed -i -e "s,/usr/bin/env bash,/bin/bash," -e "s,Lux Wine Apps,X-Lux-Wine," lwrap/lwrap

%build
# It's container with alien system.

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/256x256/apps

cp lwrap/lwrap %{buildroot}%{_bindir}/%{name}
cp icons/lw_default_icon.png %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Categories=X-Lux-Wine;Game;
Exec=%{name}
Icon=%{name}
Name=Install %{name}
Name[ru_RU]=Установка %{name}
NoDisplay=false
StartupNotify=true
Terminal=0
TerminalOptions=--hold
Type=Application
X-KDE-SubstituteUID=false
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3093 |21cr|lv2-c++-tools-1.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname paq %{major}
%define devname %mklibname %{name} -d

Summary:	A LV2 Development SDK
Name:		lv2-c++-tools
Version:	1.0.7
Release:	1
License:	GPLv3+
Group:		Sound
Url:		http://ll-plugins.nongnu.org/hacking.html
Source0:	http://download.savannah.nongnu.org/releases/ll-plugins/%{name}-%{version}.tar.bz2
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(gtkmm-2.4) >= 2.8.8
BuildRequires:	doxygen

%description
This software package contains libraries and programs that should make it
easier to write LV2 plugins.

%files
%doc %{_docdir}/%{name}
%{_bindir}/lv2peg
%{_bindir}/lv2soname

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LV2 Development SDK library
Group:		System/Libraries
Conflicts:	%{_lib}lv2-c++-tools0 < 1.0.5-3
Obsoletes:	%{_lib}lv2-c++-tools0 < 1.0.5-3

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with the %{name} library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libpaq.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries needed for
developing programs using the %{name} library.

%files -n %{devname}
%doc COPYING html/*
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/liblv2-gui.a
%{_libdir}/liblv2-plugin.a
%{_libdir}/libpaq.a
%{_libdir}/libpaq.so
%{_libdir}/pkgconfig/lv2-gui.pc
%{_libdir}/pkgconfig/lv2-plugin.pc
%{_libdir}/pkgconfig/paq.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# don't invoke ldconfig
perl -pi -e "s|/sbin/ldconfig -n |/bin/true |g" Makefile.template
# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" Makefile.template


%build
export CFLAGS="%{optflags} -std=gnu++11"
export CXXFLAGS="%{optflags} -std=gnu++11"
./configure \
    --prefix=%{_prefix} \
    --libdir=%{_libdir}

%make CFLAGS="%{optflags} -std=gnu++11" \
    prefix=%{_prefix} \
    libdir=%{_libdir}

# Build the docs
doxygen Doxyfile


%install
%makeinstall_std \
    prefix=%{_prefix} \
    libdir=%{_libdir} \
    pkgdocdir=%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3094 |21cr|lwp-2.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	LWP thread library
Name:		lwp
Version:	2.17
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.coda.cs.cmu.edu
Source0:	https://github.com/cmusatyalab/coda/archive/%{name}-%{version}.tar.gz?/coda-%{name}-%{version}.tar.gz

%description
The LWP userspace threads library. The LWP threads library is used by the Coda
distributed filesystem, RVM (a persistent VM library), and RPC2/SFTP (remote
procedure call library).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LWP thread library development files
Group:		System/Libraries

%description -n %{libname}
The LWP userspace threads library. The LWP threads library is used by the Coda
distributed filesystem, RVM (a persistent VM library), and RPC2/SFTP (remote
procedure call library).

%files -n %{libname}
%{_libdir}/liblwp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	LWP thread library development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description  -n %{devname}
Headers and static libraries for developing programs using the LWP userspace
threads library. The LWP threads library is used by the Coda distributed
filesystem, RVM (a persistent VM library), and RPC2/SFTP (a remote procedure
call library).

%files -n %{devname}
%doc AUTHORS COPYING NEWS PORTING README
%{_libdir}/liblwp.so
%dir %{_includedir}/lwp
%{_includedir}/lwp/lock.h
%{_includedir}/lwp/lwp.h
%{_includedir}/lwp/timer.h
%{_libdir}/pkgconfig/lwp.pc

#----------------------------------------------------------------------------

%prep
# Make sure to build only lwp library!
%setup -qn coda-%{name}-%{version}/lib-src/%{name}

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3095 |21cr|lxappearance-0.6.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A new feature-rich GTK+ theme switcher
Name:		lxappearance
Version:	0.6.2
Release:	4
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://lxde.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/lxde/%{name}-%{version}.tar.xz
Patch0:		lxappearance-0.6.1-rosa-settings.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-2.0)
Recommends:	lxappearance-obconf

%description
LXAppearance is a new GTK+ theme switcher developed for project LXDE.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_mandir}/man1/lxappearance.*

#----------------------------------------------------------------------------

%package devel
Summary:	Developement files for %{name}
Group:		Development/Other

%description devel
This package contains header files needed when building applications based on
%{name}.

%files devel
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/lxappearance.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

desktop-file-install --vendor="" \
	--remove-key="NotShowIn" \
	--add-only-show-in="LXDE" \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3096 |21cr|lxappearance-obconf-0.2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Plugin to configure OpenBox inside LXAppearance
Name:           lxappearance-obconf
Version:        0.2.1
Release:        7
Epoch:		1
Group:          Graphical desktop/Other
License:        GPLv2+
URL:            http://lxde.org/
Source0:        %{name}-%{version}.tar.gz

BuildRequires:  openbox-devel >= 3.5.2
BuildRequires:  lxappearance-devel
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(sm)
BuildRequires:  gettext
BuildRequires:  intltool
BuildRequires:  libtool
BuildRequires:	openbox
Requires:       lxappearance >= 0.5.1
Requires:       openbox

%description
This plugin adds an addtional tab called "Window Border" to LXAppearance. 
It is only visible when the plugin is installed and Openbox is in use.

%prep
%setup -q

# dirty hack for outdated/changing LINGUAS file
cd po
ls *.po > LINGUAS
sed -i 's/.po//g' LINGUAS

%build
%configure --disable-static
%make

%install
%makeinstall_std
%find_lang %{name}

%files -f %{name}.lang
# FIXME add NEWS and TODO
%doc AUTHORS CHANGELOG COPYING README
%{_libdir}/lxappearance/plugins/obconf.so
%{_datadir}/lxappearance/obconf/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3097 |21cr|lxcfs-4.0.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# ./bootstrap.sh is enough
%define _disable_rebuild_configure 1

Name:		  lxcfs
Version:	  4.0.11
Release:	  2
Summary:	  FUSE based filesystem for LXC
License:	  ASL 2.0
Group:	      System/Kernel and hardware
URL:		  https://linuxcontainers.org/lxcfs
Source0:	  https://github.com/lxc/lxcfs/archive/refs/tags/lxcfs-%{version}.tar.gz
BuildRequires:	  gcc
BuildRequires:	  gawk
BuildRequires:	  make
BuildRequires:	  fuse-devel
BuildRequires:	  help2man
BuildRequires:	  systemd-units
OrderWithRequires(postun): %{_bindir}/systemctl
# for /usr/share/lxc/config/common.conf.d:
# TODO: package lxc-templates
#Requires:	  lxc-templates

# error: static assertion failed: fuse: off_t must be 64bit
ExcludeArch:	%{ix86}

%description
LXCFS is a small FUSE filesystem written with the intention of making
Linux containers feel more like a virtual machine. It started as a
side-project of LXC but is usable by any runtime.

LXCFS will take care that the information provided by crucial files in
procfs are container aware such that the values displayed (e.g. in
/proc/uptime) really reflect how long the container is running and not
how long the host is running.

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
sh bootstrap.sh
%configure --with-init-script=systemd
%make_build

%install
%make_install SYSTEMD_UNIT_DIR=%{_unitdir}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
# reloading triggers dlopen(), see README.md
if [ $1 -ge 1 ]; then
	%{_bindir}/systemctl try-reload-or-restart %{name}.service || :
fi

%files
%doc AUTHORS README.md
# empty:
#doc ChangeLog NEWS README
%license COPYING
%{_bindir}/lxcfs
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/lib%{name}.so
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/lxc.mount.hook
%{_datadir}/%{name}/lxc.reboot.hook
%{_mandir}/man1/%{name}.1*
%{_unitdir}/%{name}.service
%{_datadir}/lxc/config/common.conf.d/00-lxcfs.conf
%dir %{_sharedstatedir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3098 |21cr|lxde-ctrl-center-0.1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LXDE Control Center
Name:		lxde-ctrl-center
Version:	0.1.3
Release:	4
Group:		System/Configuration/Other
License:	GPLv3+
Url:		http://code.google.com/p/lxde-ctrl-center/
Source0:	http://code.google.com/p/lxde-ctrl-center/files/%{name}-%{version}.tar.gz
Source1:	clouds.png
Source2:	bg.png
BuildRequires:	gettext
BuildRequires:	python
Requires:	pygtk2.0
Requires:	python-webkitgtk
Requires:	python-simplejson
Requires:	beesu
Requires:	lxde-common
BuildArch:	noarch

#drakuser
Recommends:	userdrake
#drakauth, drakkeyboard, /usr/sbin/drakscanner, /usr/sbin/diskdrake, /usr/sbin/draksound, drakups, /usr/sbin/drakxservices, draklocale, drakboot, draklog, /usr/sbin/drakedm
Recommends:	drakxtools-curses
#/usr/sbin/drakguard
Recommends:	drakguard
#obconf
Recommends:	obconf
#lxappearance
Recommends:	lxappearance
#pcmanfm --desktop-pref
Recommends:	pcmanfm
#lxrandr
Recommends:	lxrandr
#xscreensaver-demo
Recommends:	xscreensaver
#drakfont, drakclock, /usr/sbin/draksec
Recommends:	drakxtools
#/usr/sbin/harddrake2
Recommends:	harddrake-ui
#XFdrake, /usr/sbin/mousedrake
Recommends:	drakx-kbd-mouse-x11
#system-config-printer
Recommends:	system-config-printer
#mdvinput
Recommends:	mdvinput
#pavucontrol
Recommends:	pavucontrol
#drakproxy, /usr/sbin/drakfirewall, drakgw
Recommends:	drakx-net-text
#vpnpptp
Recommends:	vpnpptp-allde
#system-config-nfs
Recommends:	system-config-nfs
#system-config-samba
Recommends:	system-config-samba
#gigolo
Recommends:	gigolo
#drakhosts
Recommends:	drakx-net
#drakrpm, drakrpm-edit-media, drakrpm-update
Recommends:	rpmdrake
#libfm-pref-apps
Recommends:	libfm
#fskbsetting
Recommends:	fskbsetting
#/usr/sbin/msecgui
Recommends:	msec-gui
#nm-connection-editor
Recommends:	networkmanager-applet
#add2sudoers, rmfromsudoers
Recommends:	xsudo-sudoers

%description
LXDE Control Center is united launch tools for DrakX
and LXDE configuration programs.

%prep
%setup -q -n %{name}
cp -f %{SOURCE1} ./share/%{name}/frontend/images/
cp -f %{SOURCE2} ./share/%{name}/frontend/images/
sed -i -e 's/"beesu drakconnect"/"nm-connection-editor"/g' ./share/%{name}/items/x0002x
sed -i -e '/"beesu drakgw"/d' ./share/%{name}/items/x0002x

%build
./make build_pkg

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}

cp -rf ./bin/* %{buildroot}%{_bindir}/
cp -rf ./share/* %{buildroot}%{_datadir}/

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3099 |21cr|lxde-icon-theme-0.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: LXDE icon theme
Name: lxde-icon-theme
Version: 0.0.1
Release: 7
License: LGPLv2+
Group: Graphical desktop/Other
URL: http://www.lxde.org
Source: http://freefr.dl.sourceforge.net/project/lxde/LXDE%20Icon%20Theme/%{name}-%{version}/%{name}-%{version}.tar.bz2
BuildArch: noarch
Provides: nuoveXT2-icon-theme = %{version}-%{release}
Obsoletes: nuoveXT2-icon-theme < 0.5.0

%description
This package contains nuoveXT2 icon theme for LXDE.

%prep
%setup -q

%build
%configure

%install
%makeinstall_std

touch %{buildroot}%{_iconsdir}/nuoveXT2/icon-theme.cache

%clean

%post
%update_icon_cache nuoveXT2

%postun
%clean_icon_cache nuoveXT2

%files
%defattr(-,root,root,-)
%dir %{_iconsdir}/nuoveXT2
%{_iconsdir}/nuoveXT2/*/*/*
%{_iconsdir}/nuoveXT2/extra/*
%{_iconsdir}/nuoveXT2/index.theme
%ghost %{_iconsdir}/nuoveXT2/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3100 |21cr|lxdm-0.5.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: GUI login manager for LXDE
Name: lxdm
Version: 0.5.3
Release: 2
License: GPLv2+
Group: Graphical desktop/Other
Source0: http://downloads.sourceforge.net/sourceforge/lxde/%name-%version.tar.xz
Source1: 27%{name}.conf
Patch0: lxdm-0.2.0-mdv-customization.patch
URL: http://www.lxde.org
BuildRequires: intltool
BuildRequires: libxmu-devel
BuildRequires: pam-devel
BuildRequires: iso-codes
BuildRequires: gtk+2-devel
Requires: iso-codes

%description
A lightweight dropped-in replacement for GDM or KDM.

%prep
%setup -q
%patch0 -p0 -b .mdv
rm -f data/lxdm.conf

%build
%configure
%make

%install
%makeinstall_std

# dm conf file
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/X11/dm.d/27%{name}.conf

%{find_lang} %{name}

%files -f %{name}.lang
%defattr(-, root, root)
%dir %{_sysconfdir}/lxdm
%{_sysconfdir}/lxdm/Xsession
%config(noreplace) %{_sysconfdir}/lxdm/lxdm.conf
%config(noreplace) %{_sysconfdir}/lxdm/LoginReady
%config(noreplace) %{_sysconfdir}/lxdm/PostLogin
%config(noreplace) %{_sysconfdir}/lxdm/PostLogout
%config(noreplace) %{_sysconfdir}/lxdm/PreLogin
%config(noreplace) %{_sysconfdir}/lxdm/PreReboot
%config(noreplace) %{_sysconfdir}/lxdm/PreShutdown
%config(noreplace) %{_datadir}/X11/dm.d/27%{name}.conf
%{_sysconfdir}/pam.d/*
%{_libexecdir}/lxdm-greeter-gtk
%{_libexecdir}/lxdm-session
%{_sbindir}/lxdm*
%{_datadir}/%{name}
%{_bindir}/lxdm-config
%{_libexecdir}/lxdm-greeter-gdk
%{_libexecdir}/lxdm-numlock
%{_unitdir}/lxdm.service


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3101 |21cr|lxdream-0.9.1-9.gitb3575f.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%define commit b3575f0af9f8251ab37d08c4206d97187c8a0fcd
%define commit_short %(echo %{commit} | head -c6)

Summary:	Sega Dreamcast emulator
Name:		lxdream
Version:	0.9.1
Release:	9.git%{commit_short}.1
License:	GPLv2+
Group:		Emulators
URL:		http://www.lxdream.org
Source0:	https://github.com/lxdream/lxdream/archive/%{commit}.zip?/%{name}-%{commit}.zip
Patch5:		lxdream-panning.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libisofs-1)
BuildRequires:	desktop-file-utils

%description
Lxdream is a Sega Dreamcast emulator.

%files -f %{name}.lang
%doc ChangeLog
%{_bindir}/lxdream
%{_libdir}/lxdream
%{_datadir}/applications/lxdream.desktop
%{_datadir}/pixmaps/lxdream*
%{_mandir}/man1/lxdream.1*
%config(noreplace) %{_sysconfdir}/lxdreamrc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
autoreconf -fi
%configure --libexecdir=%{_libdir}/%{name}

%install
%makeinstall_std

# xdg menus
install -m 644 lxdream.desktop \
  %{buildroot}%{_datadir}/applications/lxdream.desktop

desktop-file-install --vendor="" \
  --remove-category="Game" \
  --add-category="Emulator" \
  --add-category="X-MandrivaLinux-MoreApplications-Emulators" \
  --dir %{buildroot}%{_datadir}/applications/ \
  %{buildroot}%{_datadir}/applications/*

#locales
%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3102 |21cr|lxdvdrip-1.77-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		lxdvdrip
Version:	1.77
Release:	3
Summary:	DVD ripping tool
License:	GPLv2
URL:		http://lxdvdrip.sourceforge.net/
Group: 		Video
Source:		http://sourceforge.net/projects/lxdvdrip/files/%{name}-%{version}.tgz
Patch0:		lxdvdrip-1.77-makefile.patch
Patch1:		lxdvdrip-1.77-wavpath.patch
Requires:	dvdauthor
Requires:	mplayer
Requires:	dvd+rw-tools
Requires:	transcode
Requires:	dvdbackup
Requires:	dvdwizard
Buildrequires:	libdvdread-devel
BuildRequires:	libdvdnav-devel
ExclusiveArch:	%{ix86} x86_64

%description
lxdvdrip is a Command Line Tool to make a copy from a Video DVD for private
Use. It automates the process of Ripping, Authoring, Preview and Burning of a
DVD.

%prep
%autosetup -p1 -n %{name}

%__rm -rf doc-pak/CVS
%__chmod 644 doc-pak/*

%build
%make CFLAGS="%{optflags}"

%install
%__rm -fr %{buildroot}
%makeinstall_std

%clean
%__rm -fr %{buildroot}

%files
%doc doc-pak/*
%{_bindir}/*
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}/%{name}.wav
%config(noreplace) %{_sysconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3103 |21cr|lximage-qt-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Image viewer and screenshot tool for the LXQt desktop
Name:		lximage-qt
Version:	0.14.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lximage-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	lximage-qt.0.14.1_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libfm-qt)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xfixes)

%description
Image viewer and screenshot tool for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG COPYING README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-screenshot.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

pushd src/translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3104 |21cr|lxinput-0.3.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Configure keyboard and mouse
Name:		lxinput
Version:	0.3.1
Release:	6
License:	GPLv2+
Group:		Graphical desktop/Other
Source0:	http://dfn.dl.sourceforge.net/sourceforge/lxde/%name-%version.tar.gz
# restore broked system changes for GTK3
URL:		http://www.lxde.org
BuildRequires:	gtk+2-devel
BuildRequires:	intltool >= 0.40.0
BuildRequires:	docbook-dtd412-xml xsltproc

%description
LXInput is a small program used to configure keyboard and mouse for LXDE.

%prep
%setup -q

%build
%configure --enable-man
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%{find_lang} %{name}

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-, root, root)
%{_bindir}/%name
%{_datadir}/applications/*.desktop
%{_datadir}/%name
%{_mandir}/man1/*.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3105 |21cr|lxlauncher-0.2.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open source replacement for Asus Launcher of EeePC
Name:     	lxlauncher
Epoch:		1
Version:	0.2.2
Release:	9
License:	GPLv2+
Group:		Graphical desktop/Other
Source0: 	http://dfn.dl.sourceforge.net/sourceforge/lxde/%name-%version.tar.gz
# fix looking for icon names containing a dot which does not mark an extension, like ooo-writer3.0
# to be submitted upstream
Patch2:		lxlauncher-0.2-iconext.patch
Patch13:	lxlauncher-0.2.2-gtk.patch
URL:		http://lxde.sourceforge.net/
BuildRequires:	gtk+2-devel intltool
BuildRequires:	menu-cache-devel
Buildrequires:	gnome-common
BuildRequires:	startup-notification-devel
BuildRequires:	pkgconfig(gconf-2.0)
Requires:	desktop-common-data
Recommends:	nuoveXT2-icon-theme

%description
LXLauncher is part of LXDE project. It's designed for Asus EeePC as an
open source replacement for Asus Launcher included in EeePC provided by
Xandros. LXLauncher is standard-compliant and desktop-independent. It
follows freedesktop.org specs, so newly added applications will
automatically show up in the launcher, and vice versa for the removed ones.

%prep
%setup -q -n %name-%version
%patch2 -p1 -b .iconext
%patch13 -p0

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%{find_lang} %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-, root, root)
%{_bindir}/%name
%{_datadir}/desktop-directories/lxde-*.directory
%{_sysconfdir}/xdg/menus/lxlauncher-applications.menu
%{_sysconfdir}/xdg/lxlauncher

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3106 |21cr|lxmenu-data-0.1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Menu data files for LXDE
Name:		lxmenu-data
Version:	0.1.2
Release:	7
License:	GPLv2+
Group:		Graphical desktop/Other
Source0:	http://dfn.dl.sourceforge.net/sourceforge/lxde/%{name}-%{version}.tar.gz
Url:		http://lxde.sourceforge.net/
BuildRequires:	intltool
BuildArch:	noarch

%description
This package provides files required to build freedesktop.org menu
spec-compliant desktop menus for LXDE.

The files are originally taken from gnome-menus, and some minor
modifications were made.

%files
%{_datadir}/desktop-directories/lxde-*.directory
%{_sysconfdir}/xdg/menus/lxde-applications.menu

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
# Disable parallel build to avoid skipped translations
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3107 |21cr|lxmusic-0.4.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight XMMS2 client with simple user interface
Name:		lxmusic
Version:	0.4.7
Release:	1
Group:		Sound
License:	GPLv2+
Url:			https://lxde.org
# Also: https://github.com/lxde/lxmusic
Source0:	https://downloads.sourceforge.net/lxde/%{name}-%{version}.tar.xz
# As long as there are no plugins, disable the Tools menu
Patch0:		lxmusic-0.3.0-no-tools-menu.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1250738
# https://sourceforge.net/p/lxde/bugs/774/
Patch1:		lxmusic-0.4.7-saver_quit_from_taskbar_on_play.patch
# Make lxmusic more xdg compliant (upstream PR 1)
Patch2:		lxmusic-0.4.7-use-themed-icon.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.14
BuildRequires:	pkgconfig(gmodule-export-2.0)
BuildRequires:	pkgconfig(libnotify) >= 0.4.1
BuildRequires:	pkgconfig(xmms2-client)
BuildRequires:	pkgconfig(xmms2-client-glib)
Requires:	xmms2 >= 0.7

%description
LXMusic is a very simple gtk2 XMMS2 client written in pure C. It has very few
functionality, and can do nothing more than play the music. The UI is very
clean and simple. This is currently aimed to be used as the default music
player of LXDE (Lightweight X11 Desktop Environment) project.

%files -f %{name}.lang
%doc AUTHORS README COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/128x128/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .no-tools
%patch1 -p1 -b .saverquit
%patch2 -p1


%build
%configure
%make


%install
%makeinstall_std


# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p %{buildroot}%{_datadir}/appdata
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<application>
<id type="desktop">lxmusic.desktop</id>
<metadata_license>CC0-1.0</metadata_license>
<name>LXMusic</name>
<summary>A minimalist music player for LXDE</summary>
</application>
EOF

  %find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3108 |21cr|lxpanel-0.6.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight X11 desktop panel based on fbpanel
Name:	  	lxpanel
Release:	8
Epoch:		1
Version:	0.6.1
Source0: 	http://dfn.dl.sourceforge.net/sourceforge/lxde/%{version}/%{name}-%{version}.tar.gz
License:	GPLv2+
Group:		Graphical desktop/Other
URL:		http://lxde.sourceforge.net/
#Source1:	volume_icon.tar.gz
Patch1:		configure_desktop_number.patch
#Patch2:		automake-1.13.patch
Patch3:		lxpanel-0.5.10-iconsize.patch
Patch4:		lxpanel-0.6.1-power-manager-plugin.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
#BuildRequires:	pkgconfig(keybinder)
#BuildRequires:	pkgconfig(libfm-gtk)
BuildRequires:	pkgconfig(libwnck-1.0)
BuildRequires:	intltool
BuildRequires:	menu-cache-devel >= 0.5.0
BuildRequires:	xsltproc
BuildRequires:	docbook-to-man
BuildRequires:	docbook-dtd412-xml
BuildRequires:	docbook-style-xsl
Requires:	desktop-common-data
Requires:	obconf
Recommends:	pcmanfm
Conflicts:	lxpanelx

%description
LXPanel is a lightweight X11 desktop panel contains:
1. User-friendly application menu automatically generated from *.desktop
   files on the system.
2. Launcher bar (Small icons clicked to launch apps)
3. Task bar supporting urgency hint (Can flash when gaim gets new
   incoming messages)
4. Notification area (System tray)
5. Digital clock
6. Run dialog (A dialog let you type a command and run, can be called in
   external programs)
7. Volume control plug-in (optional, written by jserv)
8. lxpanelctl, an external controller let you control lxpanel in other
   programs.

%package devel
Summary:	Development files for lxpanel
Group:		Graphical desktop/Other

%description devel
This package contains development files needed for building lxde plugins.

%prep
%setup -q
%apply_patches

%build
./autogen.sh
%configure \
  --enable-man \
  --with-plugins="cpu batt kbled xkb thermal deskno volumealsa" \
  --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/%{name}
%{_bindir}/lxpanelctl
# %{_sysconfdir}/xdg/%{name}
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
# %{_libdir}/%{name}/lib%{name}.so.*
%{_libdir}/%{name}/plugins/batt.so
%{_libdir}/%{name}/plugins/cpu.so
%{_libdir}/%{name}/plugins/deskno.so
%{_libdir}/%{name}/plugins/kbled.so
%{_libdir}/%{name}/plugins/volumealsa.so
%{_libdir}/%{name}/plugins/xkb.so
%{_libdir}/%{name}/plugins/thermal.so
%{_datadir}/%{name}
%{_mandir}/man1/*

%files devel
%{_includedir}/lxpanel
%{_libdir}/pkgconfig/lxpanel.pc
# %{_libdir}/%{name}/lib%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3109 |21cr|lxqt-about-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	About application for the LXQt desktop
Name:		lxqt-about
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/Other
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-about/archive/%{version}.tar.gz/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qmake5
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	qt5-linguist-tools
Conflicts:	lxqt-l10n < 0.14.0
Obsoletes:	lxqt-l10n < 0.14.0

%description
About application for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG COPYING README.md
%{_bindir}/lxqt-about
%{_datadir}/applications/lxqt-about.desktop
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

desktop-file-edit --add-category=X-LXQt %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3110 |21cr|lxqt-admin-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Admin tools for the LXQt desktop
Name:		lxqt-admin
Version:	0.14.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-admin/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz 
Patch0:		lxqt-admin-0.14.1-desktop.patch
Patch1:		lxqt-admin-0.14.0-use-draktools.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(liboobs-1)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(polkit-qt5-1) 
Requires:	system-tools-backends2

%description
Admin tools for the LXQt desktop

%files
%doc AUTHORS CHANGELOG COPYING README.md
%{_bindir}/lxqt-admin-time
%{_bindir}/lxqt-admin-user*
%{_datadir}/applications/%{name}-*.desktop
%{_datadir}/lxqt/translations/%{name}-*/%{name}-*_*.qm
%{_datadir}/polkit-1/actions/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%cmake ..
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3111 |21cr|lxqt-archiver-0.1.0-1.gitf6b386
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude 'libfm-qt\\.so(.*)'

%define commit f6b3869f26d9890d625dfb3da9c12f1b47e1f802
%define short_commit %(echo %{commit} | head -c 6)

Summary:	A simple & lightweight Qt file archiver
Name:		lxqt-archiver
Version:	0.1.0
Release:	1.git%{short_commit}
License:	GPLv2
Group:		Archiving/Compression
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-archiver/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:		lxqt-archiver-0.0.96-discard-const-qualifier.patch
Patch1:		lxqt-archiver-0.0.96-format-not-literal.patch
Patch2:		lxqt-archiver-0.1.0-desktop-ru-localization.patch
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libfm-qt)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5DBus)

%description
This is only a front-end (a graphical interface) to archiving programs
like tar and zip.

%files
%doc AUTHORS LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{commit}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3112 |21cr|lxqt-build-tools-0.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Various packaging tools and scripts for LXQt applications
Name:		lxqt-build-tools
Version:	0.6.0
Release:	4
License:	BSD
Group:		Graphical desktop/LXQt
Url:		http://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-build-tools/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	git-core
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Core)

%description
Various packaging tools and scripts for LXQt applications.

%files
%doc AUTHORS CHANGELOG README.md
%{_bindir}/lxqt-transupdate
%{_datadir}/cmake/lxqt-build-tools/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5 \
	-DLXQT_ETC_XDG_DIR="%{_sysconfdir}/xdg"
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3113 |21cr|lxqt-config-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Config panel for the LXQt desktop
Name:		lxqt-config
Version:	0.14.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		http://lxqt.org/
Source0:	https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		lxqt-config-0.11.1-pkg-menu.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(kscreen2)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xdg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xorg-libinput)
BuildRequires:	pkgconfig(zlib)

%description
Config panel for the LXQt desktop.

%files
%{_bindir}/*
%{_datadir}/applications/lxqt-config*.desktop
%{_datadir}/lxqt/icons/*
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_datadir}/lxqt/translations/%{name}-*/%{name}-*.qm
%{_iconsdir}/hicolor/*/apps/*
%{_libdir}/lib*.so
%{_mandir}/man1/%{name}*1.xz
%{_sysconfdir}/xdg/menus/lxqt-config.menu

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
export LC_ALL=en_US.UTF8
%cmake
%make

%install
%make_install -C build
# cursor library is installed in lxqt-config subfolder
mv %{buildroot}%{_libdir}/%{name}/* %{buildroot}%{_libdir}/
rm -rf %{buildroot}%{_libdir}/%{name}

for desktopfile in %{buildroot}%{_datadir}/applications/lxqt-config*.desktop
do
desktop-file-edit --remove-category=LXQt --add-category=X-LXQt $desktopfile
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3114 |21cr|lxqt-globalkeys-0.14.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname lxqt-globalkeys %{major}
%define devname %mklibname lxqt-globalkeys -d
%define uiname %mklibname lxqt-globalkeys-ui %{major}
%define uidevname %mklibname lxqt-globalkeys-ui -d

Summary:	Global keys config module for LXQt
Name:		lxqt-globalkeys
Version:	0.14.3
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-globalkeys/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	lxqt-config-globalkeyshortcuts.0.14.1_ru.tar.gz
Patch0:		lxqt-globalkeys-0.13.0-rosa-shortcuts.patch
Patch1:		lxqt-globalkeys-0.14.3-fix-build-with-qt.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(x11)
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Conflicts:	lxqt-common < 0.12.0

%description
Global keys config module for LXQt.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/*
%{_datadir}/applications/*.desktop
%config(noreplace) %{_datadir}/lxqt/globalkeyshortcuts.conf
%{_datadir}/lxqt/translations/lxqt-config-globalkeyshortcuts/*.qm
%{_sysconfdir}/xdg/autostart/*desktop

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The LXQt globalkeys library
Group:		System/Libraries

%description -n %{libname}
The LXQt globalkeys library.

%files -n %{libname}
%doc README.md
%{_libdir}/liblxqt-globalkeys.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{uiname}
Summary:	The LXQt globalkeys UI library
Group:		System/Libraries

%description -n %{uiname}
The LXQt globalkeys UI library.

%files -n %{uiname}
%doc README.md
%{_libdir}/liblxqt-globalkeys-ui.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the LXQt globalkeys library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for the LXQt globalkeys library.

%files -n %{devname}
%doc README.md
%{_libdir}/liblxqt-globalkeys.so
%{_includedir}/lxqt-globalkeys
%{_libdir}/pkgconfig/lxqt-globalkeys.pc
%{_datadir}/cmake/lxqt-globalkeys

#----------------------------------------------------------------------------

%package -n %{uidevname}
Summary:	Development files for the LXQt globalkeys UI library
Group:		Development/C++
Requires:	%{uiname} = %{EVRD}

%description -n %{uidevname}
Development files for the LXQt globalkeys UI library.

%files -n %{uidevname}
%doc README.md
%{_includedir}/lxqt-globalkeys-ui
%{_libdir}/liblxqt-globalkeys-ui.so
%{_libdir}/pkgconfig/lxqt-globalkeys-ui.pc
%{_datadir}/cmake/lxqt-globalkeys-ui

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd config/translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake
%make

%install
%makeinstall_std -C build

# Drop double slash from pc files
sed -i 's!//usr!/usr!' %{buildroot}%{_libdir}/pkgconfig/*pc

desktop-file-edit --remove-category=LXQt --add-category=X-LXQt \
	%{buildroot}%{_datadir}/applications/lxqt-config-globalkeyshortcuts.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3115 |21cr|lxqt-l10n-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Localization files for the LXQt desktop
Name:		lxqt-l10n
Version:	0.13.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		http://lxqt.org/
Source0:	https://github.com/lxde/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz 
Patch2:		lxqt-l10n-0.13.0-fix_translates_russian.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
# Needed for buttons translations etc
Requires:	qt5-qttranslations
BuildArch:	noarch

%description
Localization files for the LXQt desktop.

%files -f %{name}.lang

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3116 |21cr|lxqt-notificationd-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Notification daemon for the LXQt desktop
Name:		lxqt-notificationd
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-notificationd/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	lxqt-notificationd.0.14.1_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Notification daemon for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/lxqt-notificationd
%{_bindir}/lxqt-config-notificationd
%{_datadir}/applications/lxqt-config-notificationd.desktop
%{_datadir}/lxqt/translations/lxqt-config-notificationd/*.qm
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_sysconfdir}/xdg/autostart/lxqt-notifications.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

pushd src/translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake
%make

%install
%makeinstall_std -C build

desktop-file-edit --remove-category=LXQt --add-category=X-LXQt \
	%{buildroot}%{_datadir}/applications/lxqt-config-notificationd.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3117 |21cr|lxqt-openssh-askpass-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenSSH askpass application for the LXQt desktop
Name:		lxqt-openssh-askpass
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/Other
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-openssh-askpass/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(lxqt)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	qt5-linguist-tools

%description
OpenSSH askpass application for the LXQt desktop.

%files
%{_bindir}/%{name}
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_mandir}/man1/%{name}.1.xz

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3118 |21cr|lxqt-panel-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Launcher panel for the LXQt desktop
Name:		lxqt-panel
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-panel/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	lxqt-panel.0.14.1_ru.tar.gz
Source2:	directorymenu.0.14.1_ru.tar.gz
Patch0:		lxqt-panel-0.13.0-rosa-settings.patch
Patch1:		lxqt-common-0.11.2-menu.patch
Patch2:		lxqt-common-0.10.0-l10n-ru3.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	icu-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbusmenu-qt5)
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libstatgrab)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(lxqt-globalkeys)
BuildRequires:	pkgconfig(lxqt-globalkeys-ui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xdg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(sysstat-qt5)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-event)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xrender)
Conflicts:	lxqt-common < 0.12
Conflicts:	lxqt-l10n < 0.14.0

%description
Launcher panel for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/lxqt-panel
%{_datadir}/desktop-directories/*
%{_datadir}/lxqt/lxqt-panel
%{_datadir}/lxqt/panel.conf
%{_datadir}/lxqt/translations/%{name}/*/*.qm
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_libdir}/lxqt-panel/*.so
%{_mandir}/man1/*
%{_sysconfdir}/xdg/menus/*
%{_sysconfdir}/xdg/autostart/*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for the LXQt panel
Group:		Development/KDE and Qt

%description devel
Development files for the LXQt panel.

%files devel
%doc LICENSE
%{_includedir}/lxqt

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

pushd panel/translations
tar -xvzf %{SOURCE1}
popd

pushd plugin-directorymenu/translations
tar -xvzf %{SOURCE2}
popd

%build
export CXXFLAGS="%{optflags} -I/usr/include/dbusmenu-qt5"
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3119 |21cr|lxqt-policykit-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LXQt PolicyKit agent
Name:		lxqt-policykit
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-policykit/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	lxqt-policykit-agent.1.14.1_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(polkit-qt5-1)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	polkit-1-devel
Conflicts:	lxqt-common < 0.12

%description
LXQt PolicyKit agent.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/lxqt-policykit-agent
%{_datadir}/lxqt/translations/%{name}-agent/%{name}-agent_*.qm
%{_mandir}/man1/%{name}-agent.1.xz
%{_sysconfdir}/xdg/autostart/%{name}-agent.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3120 |21cr|lxqt-powermanagement-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Power management module for LXQt
Name:		lxqt-powermanagement
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-powermanagement/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz 
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5solid-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11-xcb)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-dpms)
BuildRequires:	pkgconfig(xcb-screensaver)
BuildRequires:  pkgconfig(glib-2.0)
Conflicts:	lxqt-common < 0.12.0

%description
Power management module for LXQt.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/lxqt-config-powermanagement
%{_bindir}/lxqt-powermanagement
%{_datadir}/applications/lxqt-config-powermanagement.desktop
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_datadir}/lxqt/translations/lxqt-config-powermanagement/*.qm
%{_iconsdir}/*/*/*/laptop-lid.*
%{_sysconfdir}/xdg/autostart/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

desktop-file-edit --remove-category=LXQt --add-category=X-LXQt \
	%{buildroot}%{_datadir}/applications/*.desktop
#Fix categories desktop files
sed -i 's!Categories!X-Categories!' %{buildroot}%{_datadir}/applications/lxqt-config-powermanagement.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3121 |21cr|lxqt-qtplugin-0.14.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt5 platform theme plugin for the LXQt desktop
Name:		lxqt-qtplugin
Version:	0.14.0
Release:	4
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-qtplugin/archive/%{version}.tar.gz?/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(dbusmenu-qt5)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(libfm-qt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5XdgIconLoader)

%description
LXQt system integration plugin for Qt. With this plugin, all Qt-based programs
can adopt settings of LXQt, such as the icon theme.

#----------------------------------------------------------------------------

%package -n qt5-platformtheme-lxqt
Summary:	Qt5 platform theme plugin for the LXQt desktop
Group:		Graphical desktop/LXQt
Conflicts:	lxqt-qtplugin < 0.9.0-3
Obsoletes:	lxqt-qtplugin < 0.9.0-3

%description -n qt5-platformtheme-lxqt
LXQt system integration plugin for Qt5. With this plugin, all Qt-based programs
can adopt settings of LXQt, such as the icon theme.

%files -n qt5-platformtheme-lxqt
%doc AUTHORS CHANGELOG LICENSE README.md
%{_libdir}/qt5/plugins/platformthemes/libqtlxqt.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -I/usr/include/dbusmenu-qt5"
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3122 |21cr|lxqt-runner-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Launcher runner for the LXQt desktop
Name:		lxqt-runner
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-runner/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(lxqt-globalkeys)
BuildRequires:	pkgconfig(lxqt-globalkeys-ui)
BuildRequires:	pkgconfig(muparser)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
Conflicts:	lxqt-common < 0.12

%description
Launcher runner for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/lxqt-runner
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_mandir}/man1/%{name}.1.xz
%{_sysconfdir}/xdg/autostart/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
#invalid argument
sed -i '/$(LIBMENUCACHE_MINIMUM_VERSION}/d' CMakeLists.txt

%build
%cmake -DUSE_MENU_CACHE=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3123 |21cr|lxqt-session-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Session manager for the LXQt desktop
Name:		lxqt-session
Version:	0.14.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		http://lxqt.org/
Source0:	https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0:		lxqt-session-0.11.1-fix_translate_exit.patch
Patch1:		lxqt-session-0.12.0-startlxqt-rosa-user-settings.patch
Patch2:		lxqt-common-0.11.0-rosa-settings.patch
Patch3:		lxqt-common-0.10.0-l10n-ru.patch
Patch4:		lxqt-session-0.12.0-openbox-settings.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	xdg-user-dirs
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(x11)
Requires:	xdg-utils
Obsoletes:	lxqt-common < 0.12
Conflicts:	lxqt-common < 0.12

%description
Session manager for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/lxqt-session
%{_bindir}/lxqt-config-session
%{_bindir}/lxqt-leave
%{_bindir}/startlxqt
%{_datadir}/applications/*.desktop
%{_datadir}/xsessions/*
%{_datadir}/kdm/sessions/*
%{_datadir}/lxqt/*
%{_mandir}/man?/*
%{_sysconfdir}/xdg/autostart/*desktop
%{_sysconfdir}/xdg/openbox/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%cmake
%make

%install
%make_install -C build

desktop-file-edit --remove-category=LXQt --add-category=X-LXQt \
	%{buildroot}%{_datadir}/applications/lxqt-config-session.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3124 |21cr|lxqt-session-0.14.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Session manager for the LXQt desktop
Name:		lxqt-session
Version:	0.14.1
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-session/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0:		lxqt-session-0.11.1-fix_translate_exit.patch
Patch1:		lxqt-session-0.12.0-startlxqt-rosa-user-settings.patch
Patch2:		lxqt-common-0.11.0-rosa-settings.patch
Patch3:		lxqt-common-0.10.0-l10n-ru.patch
Patch4:		lxqt-session-0.14.1-openbox-settings.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	xdg-user-dirs
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(x11)
Requires:	xdg-utils
Obsoletes:	lxqt-common < 0.12
Conflicts:	lxqt-common < 0.12

%description
Session manager for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/lxqt-session
%{_bindir}/lxqt-config-session
%{_bindir}/lxqt-leave
%{_bindir}/startlxqt
%{_datadir}/applications/*.desktop
%{_datadir}/xsessions/*
%{_datadir}/kdm/sessions/*
%{_datadir}/lxqt/*
%{_mandir}/man?/*
%{_sysconfdir}/xdg/autostart/*desktop
%config(noreplace) %{_sysconfdir}/xdg/openbox/lxqt-rc.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

desktop-file-edit --remove-category=LXQt --add-category=X-LXQt \
	%{buildroot}%{_datadir}/applications/lxqt-config-session.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3125 |21cr|lxqt-sudo-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sudo for the LXQt desktop
Name:		lxqt-sudo
Version:	0.14.1
Release:	1
License:	GPL
Group:		Graphical desktop/Other
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-sudo/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	qt5-linguist-tools

%description
Execute a command as privileged user in LXQt

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/*
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_mandir}/*man?/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3126 |21cr|lxqt-themes-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LXQt desktop themes
Name:		lxqt-themes
Version:	0.14.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		http://lxqt.org/
Source0:	https://github.com/lxqt/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	rosa.svg
BuildRequires:	cmake
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
Conflicts:	lxqt-common < 0.12.0
BuildArch:	noarch

%description
Common files for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG COPYING README.md
%{_datadir}/lxqt/themes
%{_datadir}/lxqt/graphics
%{_iconsdir}/hicolor/scalable/places/start-here-lxqt.svg
%{_iconsdir}/hicolor/scalable/apps/*
%{_iconsdir}/rosa.svg

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake
%make

%install
%make_install -C build

# Don't duplicate it there because KDM now reads %%{_datadir}/xsessions/ by default
rm -f %{buildroot}%{_datadir}/apps/kdm/sessions/lxqt.desktop

install -m644 -p %{SOURCE1} %{buildroot}%{_iconsdir}/rosa.svg

# ROSA icons
for i in `ls -1 %{buildroot}%{_datadir}/lxqt/themes`; do
    ln -sf %{_iconsdir}/rosa.svg %{buildroot}%{_datadir}/lxqt/themes/$i/rosa.svg
    sed -i -e "s/mainmenu.svg/rosa.svg/g" %{buildroot}%{_datadir}/lxqt/themes/$i/lxqt-panel.qss
    sed -i 's|file=.*$|file=default.png|' %{buildroot}%{_datadir}/lxqt/themes/$i/wallpaper.cfg || :
    ln -sf %{_datadir}/mdk/backgrounds/default.png %{buildroot}%{_datadir}/lxqt/themes/$i/default.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3127 |21cr|lxqt-themes-0.14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LXQt desktop themes
Name:		lxqt-themes
Version:	0.14.0
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/lxqt-themes/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	rosa.svg
BuildRequires:	cmake
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
Conflicts:	lxqt-common < 0.12.0
BuildArch:	noarch

%description
Common files for the LXQt desktop.

%files
%{_datadir}/lxqt/themes
%{_datadir}/lxqt/graphics
%{_iconsdir}/hicolor/scalable/places/start-here-lxqt.svg
%{_iconsdir}/hicolor/scalable/apps/*
%{_iconsdir}/rosa.svg

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

# Don't duplicate it there because KDM now reads %%{_datadir}/xsessions/ by default
rm -f %{buildroot}%{_datadir}/apps/kdm/sessions/lxqt.desktop

install -m644 -p %{SOURCE1} %{buildroot}%{_iconsdir}/rosa.svg

# ROSA icons
for i in `ls -1 %{buildroot}%{_datadir}/lxqt/themes`; do
    ln -sf %{_iconsdir}/rosa.svg %{buildroot}%{_datadir}/lxqt/themes/$i/rosa.svg
    sed -i -e "s/mainmenu.svg/rosa.svg/g" %{buildroot}%{_datadir}/lxqt/themes/$i/lxqt-panel.qss
    sed -i 's|file=.*$|file=default.png|' %{buildroot}%{_datadir}/lxqt/themes/$i/wallpaper.cfg || :
    ln -sf %{_datadir}/mdk/backgrounds/default.png %{buildroot}%{_datadir}/lxqt/themes/$i/default.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3128 |21cr|lxqt-wallet-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %{version}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define oname lxqt_wallet

Summary:	Create a kwallet like functionality for LXQt
Name:		lxqt-wallet
Version:	3.1.0
Release:	1
License:	BSD
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt_wallet
Source0:	https://github.com/lxqt/lxqt_wallet/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(lxqt)
Requires:	%{libname} = %{EVRD}

%description
This project seeks to give a functionality for secure storage
of information that can be presented in key-values pair like
user names-passwords pairs.
Currently the project can store the information in KDE's kwallet,
GNOME's secret service or in an internal system that use libgcrypt
as its cryptographic backend.
The internal secure storage system allows the functionality to
be provided without dependencies on KDE or GNOME libraries.
This project is designed to be used by other projects simply by
adding the source folder in the build system and start using it.

%files
%doc changelog LICENSE README.md
%{_bindir}/%{oname}-cli
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
%{name} backend library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{name}.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc LICENSE
%{_includedir}/lxqt/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake ..
%make

%install
%makeinstall_std -C build

# Drop double slash from pc files
sed -i 's!//usr!/usr!' %{buildroot}%{_libdir}/pkgconfig/*pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3129 |21cr|lxrandr-0.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 0
Summary:	Simple monitor config tool for LXDE
Name:     	lxrandr
Version:	0.1.2
Release:	5
License:	GPLv2+
Group:		Graphical desktop/Other
Source0: 	http://dfn.dl.sourceforge.net/sourceforge/lxde/%{name}-%{version}.tar.gz
URL:		http://lxde.sourceforge.net/
BuildRequires:	gtk+2-devel intltool
Requires:	xrandr

%description
This is a very basic monitor config tool utilizing XRandR. It can let you
change the screen resolution on the fly. Besides, when you run lxrandr
with external monitor connected, its GUI will change, and show you some 
quick options to get your projector working correctly.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%{find_lang} %{name}

%clean

%files -f %{name}.lang
%defattr(-, root, root)
%{_bindir}/%{name}
%{_mandir}/man1/*.1.*
%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3130 |21cr|lxsession-0.4.6.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The default X11 session manager of LXDE
Name:		lxsession
Version:	0.4.6.1
Release:	10
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.lxde.org
Source0: 	http://dfn.dl.sourceforge.net/sourceforge/lxde/%{name}-%{version}.tar.gz
Patch0:		lxsession-0.4.6.1-systemd-logind.patch
Patch1:		lxsession-0.4.6.1-gdm3.patch
Patch2:		lxsession-0.4.6.1-ru-l10n.patch
BuildRequires:	docbook-to-man
BuildRequires:	intltool
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	desktop-common-data
Provides:	lxde-session-manager = %{EVRD}
Provides:	lxsession-lite = %{EVRD}

%description
LXSession is lightweiht session manager, and it's not tighted to "any" desktop
environment. It's desktop-independent and can be used with any window manager.
With proper configuration, you can make your own desktop environment with
LXSession. This is very useful to the users and developers of non-mainstream
window managers and desktop environemts.

%files -f %{name}.lang
%{_bindir}/lxsession
%{_bindir}/lxlock
%{_bindir}/lxsession-logout
%{_datadir}/lxsession
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3131 |21cr|lxsession-edit-0.2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Manage desktop session autostarts
Name:     	lxsession-edit
Version:	0.2.0
Release:	6
License:	GPLv2+
Group:		Graphical desktop/Other
Source0: 	http://dfn.dl.sourceforge.net/sourceforge/lxde/%name-%version.tar.gz
URL:		http://lxde.sourceforge.net/
BuildRequires:	gtk+2-devel
BuildRequires:	intltool

%description
lxsession-edit is a tool used to manage desktop session autostarts,
especially for lxsession lite.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%{find_lang} %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-, root, root)
%{_bindir}/%name
%{_datadir}/%name
%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3132 |21cr|lxshortcut-0.1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Edit app shortcuts
Name:     	lxshortcut
Version:	0.1.2
Release:	8
License:	GPLv2+
Group:		Graphical desktop/Other
Source0: 	http://dfn.dl.sourceforge.net/sourceforge/lxde/%name-%version.tar.gz
URL:		http://lxde.sourceforge.net/
BuildRequires:	gtk+2-devel
BuildRequires:	intltool

%description
LXShortcut is a small program used to edit application shortcuts created
with freedesktop.org Desktop Entry spec.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%{find_lang} %{name}

%clean
rm -rf $RPM_BUILD_ROOT



%files -f %{name}.lang
%defattr(-, root, root)
%{_bindir}/%name
%{_datadir}/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3133 |21cr|lxtask-0.1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Lightweight and desktop independent task manager
Name:		lxtask
Version:	0.1.8
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://lxde.sourceforge.net/
Source0:	http://dfn.dl.sourceforge.net/sourceforge/lxde/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Lightweight and desktop independent task manager.

%prep
%setup -q

%build
%configure --enable-gtk3
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_mandir}/man1/lxtask.1.xz
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3134 |21cr|lxterminal-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight VTE-based terminal emulator
Name:		lxterminal
Version:	0.4.0
Release:	1
License:	GPLv2+
Group:		Terminals
Url:		http://lxde.sourceforge.net/
Source0:	https://github.com/lxde/lxterminal/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		mdk-lxterminal-conf.patch
BuildRequires:	docbook-dtd412-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-to-man
BuildRequires:	intltool
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(vte)

%description
Desktop-independent VTE-based terminal emulator without any unnecessary
dependencies.
 
Feature:
* Support Multi-tab.
* It doesn't have any unnecessary dependencies.
* All instances share the same process to reduce memory usage.
* It has correct behavior with nice performance when resizing window,
  tab and VTE stuff.
* Using unix-socket instead of D-bus to accomplish all instances share
  the same process.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/lxterminal.png
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b.conf

%build
./autogen.sh
%configure \
	--enable-man
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3135 |21cr|lynis-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bashcompdir %{_datadir}/bash-completion/completions

Summary:	Security and system auditing tool
Name:		lynis
Version:	3.1.2
Release:	1
License:	GPLv3
Group:		System/Configuration/Other
Url:		https://cisofy.com/lynis/
Source0:	https://github.com/CISOfy/lynis/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Requires:	audit
Requires:	e2fsprogs
BuildArch:	noarch

%description
Lynis is an auditing and hardening tool for Unix/Linux and you might even call
it a compliance tool. It scans the system and installed software. Then it.
performs many individual security control checks. It determines the hardening.
state of the machine, detects security issues and provides suggestions to.
improve the security defense of the system.

%files
%doc CHANGELOG* CONTRIBUTORS* CODE_OF_CONDUCT* CONTRIBUTING* FAQ README* LICENSE
%doc extras/systemd/
%{_bindir}/lynis
%{bashcompdir}/*
%{_datadir}/lynis/
%{_mandir}/man8/lynis.8*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/default.prf
%ghost %{_localstatedir}/log/lynis.log
%ghost %{_localstatedir}/log/lynis-report.dat

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
install -pm644 default.prf %{buildroot}%{_sysconfdir}/%{name}

mkdir -p %{buildroot}%{_bindir}
install -pm755 lynis %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_mandir}/man8
install -pm644 lynis.8 %{buildroot}%{_mandir}/man8

mkdir -p  %{buildroot}%{_datadir}/%{name}/include/
# Forced by upstream. Otherwise these scripts can't be executed.
install -pm600 include/* %{buildroot}%{_datadir}/%{name}/include/

mkdir -p  %{buildroot}%{_datadir}/%{name}/plugins/
install -pm644 plugins/* %{buildroot}%{_datadir}/%{name}/plugins/

mkdir -p %{buildroot}%{_datadir}/%{name}/db/
install -pm644 db/*.db %{buildroot}%{_datadir}/%{name}/db/

mkdir -p %{buildroot}%{_datadir}/%{name}/db/languages/
install -pm644 db/languages/* %{buildroot}%{_datadir}/%{name}/db/languages

mkdir -p %{buildroot}%{bashcompdir}
install -pm644 extras/bash_completion.d/lynis %{buildroot}%{bashcompdir}/

mkdir -p %{buildroot}%{_localstatedir}/log/
touch %{buildroot}%{_localstatedir}/log/lynis.log
touch %{buildroot}%{_localstatedir}/log/lynis-report.dat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3136 |21cr|lyx2html-0.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple lyx to html converter
Name:		lyx2html
Version:	0.2
Release:	15
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-makefile.patch
License:	GPL
URL:		http://www.netmeister.org/apps/lyx2html/index.html
Group:		Text tools

%description
"lyx2html" is a very simple Lyx to HTML converter. As the name 
suggests, it takes a ".lyx" document as input and generates an 
HTML-file following a few simple rules. "lyx2html" can be very 
useful for generation documentation. This is a beta-release, 
meaning there are probably still a lot of bugs in the program,
and that it might not generate the expected output or that it 
might even segfault on you.

%prep
%autosetup -p1
chmod a+r *.c *.h

sed -i 's|-o lyx2html|-Wl,--allow-multiple-definition -o lyx2html|' Makefile

%build
%make

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
make DESTDIR=%{buildroot} install

%files
%{_bindir}/lyx2html
%defattr(644,root,root,755)
%doc README COPYING
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3137 |21cr|lziprecover-1.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		lziprecover
Summary:	Data recovery tool and decompressor for lzipped files
Version:	1.23
Release:	1
License:	GPLv3+
Group:		Archiving/Compression
URL:		http://www.nongnu.org/lzip/lziprecover.html
Source0:	http://download.savannah.gnu.org/releases/lzip/%{name}/%{name}-%{version}.tar.lz
Source1:	http://download.savannah.gnu.org/releases/lzip/%{name}/%{name}-%{version}.tar.lz.sig
BuildRequires:	lzip

%description
Lziprecover is a data recovery tool and decompressor for files in the lzip
compressed data format (.lz) able to repair slightly damaged files, recover
badly damaged files from two or more copies, extract undamaged members
from multi-member files, decompress files and test integrity of files.

Lziprecover is able to recover or decompress files produced by any
of the compressors in the lzip family; lzip, plzip, minilzip/lzlib, clzip
and pdlzip. This recovery capability contributes to make the lzip format one
of the best options for long-term data archiving.

Lziprecover is able to efficiently extract a range of bytes
from a multi-member file, because it only decompresses the members containing
the desired data.

Lziprecover can print correct total file sizes and ratios even for multi-member
files.

When recovering data, lziprecover takes as arguments the names of the damaged
files and writes zero or more recovered files depending on the operation
selected and whether the recovery succeeded or not. The damaged files
themselves are never modified.

When decompressing or testing file integrity, lziprecover behaves like lzip
or lunzip.

If the files are too damaged for lziprecover to repair them, data from damaged
members can be partially recovered writing it to stdout.

%files
%{_bindir}/lziprecover
%{_mandir}/man1/lziprecover.1*
%{_infodir}/lziprecover.info*

#---------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3138 |21cr|lzlib-1.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define dont_remove_libtool_files 1
%define major 1
%define libname %mklibname lz %major
%define devname %mklibname lz -d

Name:		lzlib
Summary:	A compression library for lzip files
Version:	1.13
Release:	1
License:	GPLv3+
Group:		System/Libraries
URL:		http://www.nongnu.org/lzip/lzlib.html
Source0:	http://download.savannah.gnu.org/releases/lzip/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	lzip

%description
The lzlib compression library provides in-memory LZMA compression
and decompression functions, including integrity checking
of the decompressed data. The compressed data format used by the library
is the lzip format.

Lzlib implements a simplified version of the LZMA (Lempel-Ziv-Markov
chain-Algorithm) algorithm. The original LZMA algorithm was designed by Igor
Pavlov. For a description of the LZMA algorithm, see the lzip manual. 

%files
%doc AUTHORS ChangeLog NEWS README

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	A compression library for lzip files
Group:		System/Libraries

%description -n %{libname}
The lzlib compression library provides in-memory LZMA compression
and decompression functions, including integrity checking
of the decompressed data. The compressed data format used by the library
is the lzip format.

Lzlib implements a simplified version of the LZMA (Lempel-Ziv-Markov
chain-Algorithm) algorithm. The original LZMA algorithm was designed by Igor
Pavlov. For a description of the LZMA algorithm, see the lzip manual.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/*.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	A compression library for lzip files
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The lzlib compression library provides in-memory LZMA compression
and decompression functions, including integrity checking
of the decompressed data. The compressed data format used by the library
is the lzip format.

Lzlib implements a simplified version of the LZMA (Lempel-Ziv-Markov
chain-Algorithm) algorithm. The original LZMA algorithm was designed by Igor
Pavlov. For a description of the LZMA algorithm, see the lzip manual.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/*.so
%{_infodir}/*
%{_includedir}/*

#------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-shared
%make

%install
%makeinstall_std
pushd %{buildroot}%{_libdir}/
popd

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3139 |21cr|lzmalib-0.0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary: 	A thin wrapper library of LZMA
Name: 		lzmalib
Version: 	0.0.1
Release: 	12
Group: 		System/Libraries
License: 	LGPL
URL: 		http://tokyocabinet.sourceforge.net/misc/
Source0: 	http://tokyocabinet.sourceforge.net/misc/%{name}-%{version}.tar.gz
Patch0:		lzmalib-0.0.1-format_not_a_string_literal_and_no_format_arguments.diff
Patch1:		lzmalib-0.0.1-new_libname_fix.diff
BuildRequires:	chrpath

%description
This package includes a thin wrapper library of LZMA SDK written by Igor
Pavlov.

%package -n	lzmacmd
Summary:	The lzmacmd command line utility
Group:		System/Libraries

%description -n lzmacmd
This package includes the lzmacmd command line utility.

%package -n	%{libname}
Summary:	A thin wrapper library of LZMA
Group:		System/Libraries

%description -n %{libname}
This package includes a thin wrapper library of LZMA SDK written by Igor
Pavlov.

%package -n	%{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	lzmalib-devel = %{version}-%{release}

%description -n	%{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p0
%patch1 -p1

%build
rm configure
autoconf

%configure

%make \
    CFLAGS="%{optflags} -Wall -fPIC -fsigned-char" \
    CXXFLAGS="%{optflags} -Wall -fPIC -fsigned-char" \
    LDFLAGS="$LDFLAGS -L."

%install
rm -rf %{buildroot}

%makeinstall_std

# nuke rpath
chrpath -d %{buildroot}%{_bindir}/lzmacmd

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files -n lzmacmd
%defattr(-,root,root,755)
%{_bindir}/lzmacmd

%files -n %{libname}
%defattr(-,root,root,755)
%doc README
%{_libdir}/lib*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root,755)
%{_includedir}/*.h
%{_libdir}/lib*.so
%{_libdir}/lib*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3140 |21cr|m17n-contrib-1.1.14-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define m17n_db_version 1.5.0

Name:      m17n-contrib
Summary:   Contributed input methods for m17n library
Version:   1.1.14
Release:   3
Group:     System/Internationalization
License:   LGPLv2+
URL:       http://www.m17n.org/m17n-lib-en/
Source0:   http://www.m17n.org/m17n-lib-download/%{name}-%{version}.tar.gz
Requires:        m17n-db >= %{m17n_db_version}
BuildRequires:   m17n-db-devel >= %{m17n_db_version}
BuildArch:	noarch

%description
Contributed input methods for m17n library.

%prep
%setup -qn %{name}-%{version}

%build
[[ ! -x configure ]] && ./bootstrap.sh
%configure --build=%{_host}
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

# The file conflicts with m17n-data
rm -f $RPM_BUILD_ROOT%{_datadir}/m17n/bn-itrans.mim

%{find_lang} %{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README
%{_datadir}/m17n/*.mim
%{_datadir}/m17n/icons/*
%{_datadir}/m17n/scripts/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3141 |21cr|m17n-db-1.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The m17n database
Name:		m17n-db
Version:	1.8.0
Release:	2
License:	LGPLv2+
Group:		System/Internationalization
Url:		http://www.m17n.org/m17n-lib/index.html
Source0:	http://savannah.c3sl.ufpr.br/m17n/m17n-db-%{version}.tar.gz
BuildRequires:	glibc-i18ndata
BuildRequires:	gettext-devel
BuildArch:	noarch

%description
The m17n database; a sub-part of the m17n library.

%files -f %{name}.lang
%doc AUTHORS README NEWS ChangeLog
%{_bindir}/*
%{_datadir}/m17n

#----------------------------------------------------------------------------

%package devel
Summary:	Headers of m17n for development
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
Headers of %{name} for development.

%files devel
%{_datadir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --build=%{_host}
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3142 |21cr|m17n-lib-1.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define libcore %mklibname %{name}-core %{major}
%define libflt %mklibname %{name}-flt %{major}
%define libgui %mklibname %{name}-gui %{major}
%define devname %mklibname -d %{name}

Summary:	Multilingual text processing library
Name:		m17n-lib
Version:	1.8.0
Release:	3
License:	LGPLv2+
Group:		System/Internationalization
Url:		http://www.m17n.org/m17n-lib/index.html
Source0:	http://savannah.c3sl.ufpr.br//m17n/m17n-lib-%{version}.tar.gz

BuildRequires:	gd-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(anthy)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(libotf)
BuildRequires:	pkgconfig(libthai)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(m17n-db)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
# NOTE:	medit and mdump require this font otherwise you get a SIGFPE
# because the font is not found, thus generating a tab_width=0 in
# layout_glyph_string() and then a division-by-zero.
# --> the bug is rather in the library and should be handled there.
Requires:	fonts-ttf-freefont
Requires:	libotf
Requires:	m17n-db

%description
The m17n library is a multilingual text processing library for the C
language.

%files
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/m17n-conv
%{_bindir}/m17n-date
%{_bindir}/m17n-dump
%{_bindir}/m17n-edit
%{_bindir}/m17n-view
%{_libdir}/m17n/*/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The m17n library
Group:		System/Internationalization

%description -n %{libname}
m17n library.

%files -n %{libname}
%{_libdir}/libm17n.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcore}
Summary:	The m17n library
Group:		System/Internationalization
Conflicts:	%{_lib}m17n-lib0 < 1.6.4-2

%description -n %{libcore}
m17n-core library.

%files -n %{libcore}
%{_libdir}/libm17n-core.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libflt}
Summary:	The m17n library
Group:		System/Internationalization
Conflicts:	%{_lib}m17n-lib0 < 1.6.4-2

%description -n %{libflt}
m17n-flt library.

%files -n %{libflt}
%{_libdir}/libm17n-flt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgui}
Summary:	The m17n library
Group:		System/Internationalization
Conflicts:	%{_lib}m17n-lib0 < 1.6.4-2

%description -n %{libgui}
m17n-gui library.

%files -n %{libgui}
%{_libdir}/libm17n-gui.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of m17n for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcore} = %{EVRD}
Requires:	%{libflt} = %{EVRD}
Requires:	%{libgui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
#%%{_bindir}/m17n-config
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
# -j8 broken as of 1.6.4
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3143 |21cr|m2vrequantizer-20030929-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Name	M2VRequantizer

# This is the version that is recommended for the VDR burn plugin.
# Feel free to upgrade after you've tested that the new version
# works with it too.

Summary:	Requantizes MPEG-2 streams
Name:		m2vrequantizer
Version:	20030929
Release:	6
License:	GPLv2+
Group:		Video
# URL is dead
Url:		http://www.xeatre.tv/community/burn/contrib/
Source0:	%{Name}-%{version}.tar.bz2

%description
Requantizes MPEG-2 streams without recompressing the files.
This is the version that is recommended for the VDR burn plugin.

%files
%{_bindir}/requant

#-----------------------------------------------------------------------------

%prep
%setup -qn %{Name}


%build
%__cc %{optflags} %{?ldflags} -o requant main.c -lm


%install
install -D -m755 requant %{buildroot}%{_bindir}/requant

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3144 |21cr|mac-8.81-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ver 3.99
%define uver 4
%define bver 5
%define sver 7

%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Monkey's Audio Codec
Name:		mac
Version:	8.81
Release:	1
License:	Freeware
Group:		Sound
Url:		http://etree.org/shnutils/shntool/
Source0:	http://etree.org/shnutils/shntool/support/formats/ape/unix/%{ver}-u%{uver}-b%{bver}-s%{sver}/%{name}-%{ver}-u%{uver}-b%{bver}-s%{sver}.tar.gz
Patch0:		mac-3.99-u4-b5-s7-gcc6.patch
BuildRequires:	libstdc++-devel

%description
Monkey's Audio Codec is a lossless audio codec w/ good
correspondence of compression (and decompresssion) ratio
and time.

Monkey's Audio Codec can be used for personal, educational
and non-commercial purposes. Commercial usage requires
prior written permission from Monkey's Audio author.
See License.htm before usage.

This version is patched for shntool support.

This package is in restricted because of its license.

%files
%doc ChangeLog ChangeLog.shntool AUTHORS COPYING README NEWS License.htm
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Monkey's Audio Codec library
Group:		System/Libraries

%description -n %{libname}
Monkey's Audio Codec library.

Monkey's Audio Codec is a lossless audio codec w/ good
correspondence of compression (and decompresssion) ratio
and time.

Monkey's Audio Codec can be used for personal, educational
and non-commercial purposes. Commercial usage requires
prior written permission from Monkey's Audio author.
See License.htm before usage.

This version is patched for shntool support.

This package is in restricted because of its license.

%files -n %{libname}
%{_libdir}/libmac.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Monkey's Audio Codec development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files (headers etc) needed to develop software with %{libname}.

This version is patched for shntool support.

This package is in restricted because of its license.

%files -n %{devname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{ver}-u%{uver}-b%{bver}-s%{sver}
%patch0 -p1

%build
%setup_compile_flags
CXXFLAGS="$CXXFLAGS -DSHNTOOL" \
%configure \
	--disable-static
%make

%install
%makeinstall_std
cp src/License.htm .

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3145 |21cr|macchanger-1.7.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Uility for viewing/manipulating the MAC address of network interfaces
Name:		macchanger
Version:	1.7.0
Release:	4
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://www.alobbs.com/macchanger/
# https://github.com/alobbs/macchanger/releases
Source0:	%{name}-%{version}.tar.gz

%description
A GNU/Linux utility for viewing/manipulating the MAC address of network 
interfaces.
Features
* Set specific MAC address of a network interface
* Set the MAC randomly
* Set a MAC of another vendor
* Set another MAC of the same vendor
* Set a MAC of the same kind (eg: wireless card)
* Display a vendor MAC list (today, 6200 items) to choose from

Possible usages
* You're in a DHCP network with some kind of IP-based restriction
* You've a cluster that boot with BOOTP and you want to have a
* clean set of MACs
* Debug MAC based routes

%files
%defattr(644,root,root,755)
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_mandir}/man1/*
%{_infodir}/%{name}.info*
%defattr(755,root,root,755)
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3146 |21cr|macrofusion-0.7.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		macrofusion
Version:	0.7.4
Release:	5
Group:		Graphics
Summary:	GUI for HDR tool Enfuse
License:	GPLv3
URL:		http://sourceforge.net/projects/macrofusion
Source0:	http://sourceforge.net/projects/macrofusion/files/%{name}-%{version}/%{name}_%{version}.orig.tar.gz
BuildArch:	noarch
Requires:	python3
Requires:	python3-cairo
Requires:	python3-gi
Requires:	python3-pillow
Requires:	gexiv2-python3
Requires:	Image-ExifTool
Requires:	hugin
Requires:	enfuse
Requires:	typelib(GExiv2)

%description
MacroFusion is a neat little GUI for great tool Enfuse (command line). It makes
easy fusion few photos to one with great DOF (Deep of Field) or DR (Dynamic
Range). It can be useful for every macro lovers or landscapers.

%prep
%setup -q

%build

%install
install -m 755 -D macrofusion.py %{buildroot}%{_bindir}/macrofusion
install -m 644 -D macrofusion.desktop %{buildroot}%{_datadir}/applications/macrofusion.desktop
install -d -m 755 %{buildroot}%{_datadir}/mfusion/ui
install -m 644 ui/* %{buildroot}%{_datadir}/mfusion/ui/
install -D -m 644 images/macrofusion.png %{buildroot}%{_datadir}/pixmaps/macrofusion.png
install -D -m 644 images/logoSplash.png %{buildroot}%{_datadir}/mfusion/images/logoSplash.png
for file in locale/*/LC_MESSAGES/*.mo
do
install -D -m 644 $file %{buildroot}%{_datadir}/$file
done

%find_lang MacroFusion

%files -f MacroFusion.lang
%{_bindir}/macrofusion
%{_datadir}/mfusion/
%{_datadir}/pixmaps/macrofusion.png
%{_datadir}/applications/macrofusion.desktop
%doc README CHANGELOG TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3147 |21cr|madbomber-0.2.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Catch the bombs
Name:		madbomber
Version:	0.2.5
Release:	10
Url:		http://newbreedsoftware.com/madbomber
Source0:	ftp://ftp.sonic.net/pub/users/nbs/unix/x/madbomber/%{name}-%{version}.tar.bz2
Source5:	%{name}-16.png
Source6:	%{name}-32.png
Source7:	%{name}-48.png
License:	GPL
Group:		Games/Arcade
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_image-devel
BuildRequires:	SDL-devel
Patch0:		madbomber-0.1.8-fix-CFLAGS.patch
Patch1:		madbomber-0.2.4-add-keypad-keys.patch

%description
The Mad Bomber is loose in the city and he's dropping bombs everywhere! It's
your job to catch them before they hit the ground and explode. Luckily, you
have a set of trusty buckets to extinguish them with.

%prep
%setup -q
%patch0 -p1
%patch1 -p1 -z .pix
chmod a+r -R .
# remove .xvpics directories
find . -type d -name .xvpics | xargs rm -rf

cat << EOF > mandriva-%{name}.desktop
[Desktop Entry]
Name=MadBomber
Comment=%{summary}
Exec=%_gamesbindir/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%build
%make CFLAGS="%{optflags} %{ldflags}" DATA_PREFIX=%{_gamesdatadir}/%{name}/

%install
rm -rf $RPM_BUILD_ROOT

install -D %{name} $RPM_BUILD_ROOT%{_gamesbindir}/%{name}
install -d $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}
cp -a data/* $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}

install -D -m644 mandriva-%{name}.desktop $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop
install -D -m644 %SOURCE6 $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -D -m644 %SOURCE5 $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -D -m644 %SOURCE7 $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS.txt CHANGES.txt README.txt
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/*
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3148 |21cr|madplay-0.15.2b-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line MPEG audio player based on libmad 
Name:		madplay
Version:	0.15.2b
Release:	12
Source0:	http://prdownloads.sourceforge.net/mad/%{name}-%{version}.tar.bz2
License:	GPL
Group:		Sound
URL:		http://www.underbit.com/products/mad/
BuildRequires:  pkgconfig(mad) >= 0.15.0b
BuildRequires:  pkgconfig(id3tag) >= 0.15.0b
BuildRequires:  pkgconfig(esound)
%rename		mad

%description
madplay is a command-line MPEG audio decoder and player based on the
MAD library (libmad). For details about MAD, see the libmad package
distributed separately.

madplay will also read and display ID3 tag information, and further
supports the relative volume adjustment information (RVA2) in such
tags, as written by tools like `normalize'.


%prep
%setup -q

%build
%configure
%make

%install
%makeinstall
# this is an invalid locale dir
rm -rf %{buildroot}/%{_datadir}/locale/en
%find_lang %{name}

%files -f %{name}.lang
%doc COPYING README CREDITS TODO 
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3149 |21cr|Maelstrom-3.0.6-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:   Maelstrom
Name:      Maelstrom
Version:   3.0.6
Release:   16
License: LGPL
Group:     Games/Arcade
Source0:   %{name}-%{version}.tar.bz2
Source10: %name.16.png
Source11: %name.32.png
Source12: %name.48.png
Patch1:    Maelstrom-3.0.6-scorefile.patch
Patch2:	   Maelstrom-3.0.6-datadir.patch
Patch3:	   Maelstrom-3.0.6-gcc3.4.patch
Patch4:    Maelstrom-3.0.6-64bit-fixes.patch
URL:       http://www.devolution.com/~slouken/Maelstrom/
BuildRequires:	SDL_net-devel
BuildRequires:	SDL-devel

%description
Maelstrom is a rockin' asteroids game ported from the Macintosh
Originally written by Andrew Welch of Ambrosia Software, and ported
to UNIX and then SDL by Sam Lantinga <slouken@devolution.com>

%prep
%setup -q
%patch1 -b .scores
%patch2 -p1 -b .libdir
%patch3 -p1
%patch4 -p1 -b .64bit-fixes

touch ChangeLog NEWS AUTHORS

%build
autoreconf -fi
%configure --disable-rpath --bindir=%_gamesbindir --libdir=%_gamesdatadir

%make

%install
rm -rf %buildroot
%makeinstall_std GAME_INSTALLDIR=%buildroot/%_gamesdatadir/%name
install -D -m755 Maelstrom %buildroot/%_gamesbindir/Maelstrom
install -D -m755 Maelstrom-netd %buildroot/%_gamesbindir/Maelstrom-netd

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%_gamesbindir/Maelstrom
Name=Maelstrom
Comment=Asteroids game
Categories=Game;ArcadeGame;
Icon=Maelstrom
EOF

mkdir -p $RPM_BUILD_ROOT%{_miconsdir}
mkdir -p $RPM_BUILD_ROOT%{_liconsdir}
install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE11} $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -m 644 %{SOURCE12} $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

mkdir -p %buildroot/var/lib/games/
mv %buildroot%_gamesdatadir/Maelstrom/Maelstrom-Scores %buildroot/var/lib/games/Maelstrom-Scores

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%pre
# in Maelstrom <= 3.0.6-4mdk %_gamesbindir/Maelstrom is a directory
if [ -d %_gamesbindir/Maelstrom ]; then
  rm -rf %_gamesbindir/Maelstrom
fi

%files
%defattr(-, root, root)
%doc COPYING CREDITS README* Changelog Docs
%attr(2755,root,games) %_gamesbindir/Maelstrom*
%_gamesdatadir/Maelstrom
%{_datadir}/applications/mandriva-*.desktop
%_iconsdir/*.png
%_miconsdir/*
%_liconsdir/*
%attr(0664,root,games) /var/lib/games/Maelstrom-Scores

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3150 |21cr|magicrescue-1.1.10-2.git.0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# exclude self provided
%define __requires_exclude perl\\(laola.pl\\)
%define commit d9a57931d437674009bfd2f98451b3d71058eade

Name:		magicrescue
Version:	1.1.10
Release:	2.git.0
Summary:	Tries to recover files
License:	GPLv2+
Group:		Archiving/Other
URL:		https://github.com/jbj/magicrescue
Source0:	https://github.com/jbj/magicrescue/archive/d9a57931d437674009bfd2f98451b3d71058eade.zip?/%{name}-%{commit}.zip
Conflicts:	safecat
Requires:	binutils
Requires:	gzip
Requires:	mencoder
Requires:	mpg123
BuildRequires:	gdbm-devel

%description
Magic Rescue scans a block device for file types it knows how to recover and
calls an external program to extract them.  It looks at "magic bytes" in file
contents, so it can be used both as an undelete utility and for recovering a
corrupted drive or partition.  As long as the file data is there, it will find
it. It works on any file system.

%files
%defattr(0644,root,root,0755)
%doc COPYING README.md
%{_datadir}/magicrescue/recipes/*
%{_mandir}/man1/*
%defattr(0755,root,root,0755)
%{_bindir}/*
%{_libexecdir}/magicrescue/tools/*

#------------------------------------------------------
%prep
%setup -q -n %{name}-%{commit}

#delete gimp suppport, perl-gimp not provided in repo
rm tools/gimp-resave.pl
rm recipes/gimp-xcf

%build
# XXX: This is not a GNU autoconf script
export CFLAGS="%{optflags}"
./configure --prefix=%{_prefix}
%make

%install
mkdir -p %{buildroot}%{_prefix}
%makeinstall PREFIX=%{buildroot}/%{_prefix}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3151 |21cr|magpie-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global glib_version 2.69.0
%global gtk3_version 3.19.8
%global gsettings_desktop_schemas_version 40~alpha
%global json_glib_version 0.12.0
%global libinput_version 1.19.0
%global pipewire_version 0.3.33
%global lcms2_version 2.6
%global colord_version 1.4.5

%define major 0
%define api 0
%define libname %mklibname %{name} %{api}_ %{major}
%define girname %mklibname %{name}-gir %{major}
%define devname %mklibname %{name} -d

Name:          magpie
Version:       0.9.3
Release:       1
Summary:       Window manager for Budgie Desktop
Group:         System/Libraries
License:       GPL-2.0-or-later
URL:           https://github.com/BuddiesOfBudgie/magpie
Source0:       %{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz

BuildRequires: x11-server-common
BuildRequires: pkgconfig(gobject-introspection-1.0) >= 1.41.0
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(libwacom)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(x11-xcb)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: pkgconfig(xkbcommon-x11)
BuildRequires: pkgconfig(xkbfile)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(egl)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(glesv2)
BuildRequires: pkgconfig(graphene-gobject-1.0)
BuildRequires: pam-devel
BuildRequires: pkgconfig(libpipewire-0.3) >= %{pipewire_version}
BuildRequires: pkgconfig(sysprof-capture-4)
BuildRequires: sysprof
BuildRequires: pkgconfig(libsystemd)
#BuildRequires: x11-server-common
BuildRequires: x11-server-xorg
BuildRequires: x11-server-xvfb
BuildRequires: pkgconfig(xkeyboard-config)
BuildRequires: zenity
BuildRequires: desktop-file-utils
# Bootstrap requirements
BuildRequires: gtk-doc gettext-devel git-core
BuildRequires: pkgconfig(libcanberra)
BuildRequires: pkgconfig(gsettings-desktop-schemas) >= %{gsettings_desktop_schemas_version}
BuildRequires: pkgconfig(gnome-settings-daemon)
BuildRequires: meson
BuildRequires: pkgconfig(gbm)
BuildRequires: pkgconfig(gnome-desktop-3.0)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(lcms2) >= %{lcms2_version}
BuildRequires: pkgconfig(colord) >= %{colord_version}

BuildRequires: pkgconfig(json-glib-1.0) >= %{json_glib_version}
BuildRequires: pkgconfig(libinput) >= %{libinput_version}

Requires: gsettings-desktop-schemas%{?_isa} >= %{gsettings_desktop_schemas_version}
Requires: gnome-settings-daemon
Requires: json-glib%{?_isa} >= %{json_glib_version}
Requires: libinput%{?_isa} >= %{libinput_version}
Requires: pipewire%{_isa} >= %{pipewire_version}
Requires: dbus
Requires: zenity
Requires: mutter
Requires: %{libname}%{?_isa} = %{EVRD}

Recommends: mesa

Provides: firstboot(windowmanager) = magpie

# Cogl and Clutter were forked at these versions, but have diverged
# significantly since then.
Provides: bundled(cogl) = 1.22.0
Provides: bundled(clutter) = 1.26.0

%description
Magpgie is the window manager used by Budgie Desktop.

%files -f %{name}.lang
%license COPYING
%{_libdir}/magpie-%{api}/*.so*
#----------------------------------------------------------------------------
%package -n %{libname}
Summary:	Libraries for magpie
Group:		System/Libraries

%description -n %{libname}
This package contains libraries used by magpie.

%files -n %{libname}
%{_libdir}/libmagpie-%{api}.so.%{major}*
#---------------------------------------------------------
%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/%{name}-%{api}/*.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{name}%{?_isa} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{libname}%{?_isa} = %{EVRD}
# for EGL/eglmesaext.h that's included from public cogl-egl-defines.h header
Requires:	pkgconfig(egl)

%description -n %{devname}
Header files and libraries for developing against Magpie.

%files -n %{devname}
%{_includedir}/magpie-%{api}
%{_libdir}/libmagpie-%{api}.so
%{_libdir}/%{name}-%{api}/*.gir
%{_libdir}/pkgconfig/libmagpie-%{api}.pc
%{_libdir}/pkgconfig/%{name}-clutter-%{api}.pc
%{_libdir}/pkgconfig/%{name}-cogl-%{api}.pc
%{_libdir}/pkgconfig/%{name}-cogl-pango-%{api}.pc

#---------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Degl_device=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3152 |21cr|mahjongg3d-0.96-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			mahjongg3d
Version:		0.96
Release:		12

Summary:	MahJongg 3D Solitaire
License:	GPLv2+
Group:		Games/Boards
URL:		http://www.reto-schoelly.de/mahjongg3d/
Source:		http://www.reto-schoelly.de/mahjongg3d/%{name}-%{version}.tar.bz2
Source1:	http://www.reto-schoelly.de/mahjongg3d/%{name}-0.96-patch2.tar.bz2
Source10:	http://www.reto-schoelly.de/mahjongg3d/hieroglyph_tileset.tar.bz2
Source11:	http://www.reto-schoelly.de/mahjongg3d/lab_layout.tar.bz2
Source20:	%{name}-16.png
Source21:	%{name}-32.png
Source22:	%{name}-48.png
Patch:		mahjongg3d-0.96-mdv-64bit-fix.patch

BuildRequires:	qt3-devel
BuildRequires:	pkgconfig(glu)

%description
MahJongg Solitaire 3D is an OpenGL enhanced solitaire version of the ancient
chinese board game "Mah Jongg".

%prep
%setup -q -n mahjongg3d.release -a 1
%patch -p1 -b .build+x64-fix

pushd bin
tar xvjf %{SOURCE10}
tar xvjf %{SOURCE11}
popd

cp -fr patch2/* .
rm -fr patch2
sed -i -e 's/openglwidget.h/OpenGLWidget.h/' src/MainDialogBase.ui

%build
export QTDIR=%{qt3dir}
%{qt3dir}/bin/qmake
%{qt3dir}/bin/qmake src/src.pro -o src/Makefile
cat > src/gamedata_path.h <<EOF
#define GAMEDATA_BASE_PATH "/usr/share/games/mahjongg3d"
EOF

%make PREFIX=%{_prefix} GAMEDATA_PREFIX=%_gamesdatadir

%install
rm -rf %buildroot
install -d %buildroot%{_gamesdatadir}/%{name}/backgrounds
install -d %buildroot%{_gamesdatadir}/%{name}/gra
install -d %buildroot%{_gamesdatadir}/%{name}/layouts
install -d %buildroot%{_gamesdatadir}/%{name}/tilesets
install -d %buildroot%{_gamesdatadir}/%{name}/tilesets/default
install -d %buildroot%{_gamesdatadir}/%{name}/tilesets/flowers
install -d %buildroot%{_gamesdatadir}/%{name}/tilesets/hiero
install -d %buildroot%{_gamesdatadir}/%{name}/tilesets/runes
install -d %buildroot%{_gamesdatadir}/%{name}/tilesets/traditional

install -d %buildroot%{_gamesbindir}
install -d %buildroot%{_mandir}/man6
install -m 0755 bin/%{name} %buildroot%{_gamesbindir}/
install -m 0644 bin/backgrounds/* %buildroot%{_gamesdatadir}/%{name}/backgrounds/
install -m 0644 bin/gra/* %buildroot%{_gamesdatadir}/%{name}/gra/
install -m 0644 bin/layouts/* %buildroot%{_gamesdatadir}/%{name}/layouts/
install -m 0644 bin/tilesets/*.tileset %buildroot%{_gamesdatadir}/%{name}/tilesets/
install -m 0644 bin/tilesets/default/* %buildroot%{_gamesdatadir}/%{name}/tilesets/default/
install -m 0644 bin/tilesets/flowers/* %buildroot%{_gamesdatadir}/%{name}/tilesets/flowers/
install -m 0644 bin/tilesets/hiero/* %buildroot%{_gamesdatadir}/%{name}/tilesets/hiero/
install -m 0644 bin/tilesets/runes/* %buildroot%{_gamesdatadir}/%{name}/tilesets/runes/
install -m 0644 bin/tilesets/traditional/* %buildroot%{_gamesdatadir}/%{name}/tilesets/traditional/
install -m 0644 %{name}.6 %buildroot%{_mandir}/man6/

install -m 644 -D %{SOURCE20} $RPM_BUILD_ROOT/%{_miconsdir}/%{name}.png
install -m 644 -D %{SOURCE21} $RPM_BUILD_ROOT/%{_iconsdir}/%{name}.png
install -m 644 -D %{SOURCE22} $RPM_BUILD_ROOT/%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=MahJongg 3D Solitaire
Comment=MahJongg 3D Solitaire - A board game using OpenGL, with several themes
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Games-Boards;Game;BoardGame;Qt;
EOF

%files
%doc Changelog COPYING INSTALL_CUSTOM README
%attr(0755,root,games) %{_gamesbindir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/*.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3153 |21cr|mahjongg3d-extra-0.96-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name mahjongg3d

Name:		%{base_name}-extra
Version:	0.96
Release:	6
Summary:	Extra tiles for Mahjongg 3d Solitaire
Group:		Games/Boards
#not really sure about the license so using Freeware
License:	Freeware
URL:		http://www.reto-schoelly.de/mahjongg3d/
Source0:	http://www.reto-schoelly.de/mahjongg3d/simpsons_tileset.tar.bz2
Source1:	http://www.reto-schoelly.de/mahjongg3d/manga_tileset.tar.bz2
Requires:	%{base_name}
BuildArch:	noarch

%description
Extra tiles for MahJongg 3D Solitaire.

This package is in restricted because it is including possibly
copyrighted characters.

%prep
%setup -c %{name}-%{version} -q -a 1

%install
%__rm -rf %{buildroot}
%__install -d %{buildroot}%{_gamesdatadir}/%{base_name}/backgrounds
%__install -m 0644 backgrounds/*.bmp %{buildroot}%{_gamesdatadir}/%{base_name}/backgrounds
%__install -d %{buildroot}%{_gamesdatadir}/%{base_name}/tilesets
%__install -m 0644 tilesets/*.tileset %{buildroot}%{_gamesdatadir}/%{base_name}/tilesets/
%__install -d %{buildroot}%{_gamesdatadir}/%{base_name}/tilesets/manga
%__install -m 0644 tilesets/manga/* %{buildroot}%{_gamesdatadir}/%{base_name}/tilesets/manga/
%__install -d %{buildroot}%{_gamesdatadir}/%{base_name}/tilesets/simpsons
%__install -m 0644 tilesets/simpsons/* %{buildroot}%{_gamesdatadir}/%{base_name}/tilesets/simpsons/

%files
%{_gamesdatadir}/%{base_name}/tilesets/manga.tileset
%{_gamesdatadir}/%{base_name}/tilesets/manga
%{_gamesdatadir}/%{base_name}/backgrounds/manga.background.bmp
%{_gamesdatadir}/%{base_name}/tilesets/simpsons.tileset
%{_gamesdatadir}/%{base_name}/tilesets/simpsons
%{_gamesdatadir}/%{base_name}/backgrounds/homer.background.bmp

%clean
%__rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3154 |21cr|mail2sms-1.3.5-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mail to SMS converter
Name:		mail2sms
Version:	1.3.5
Release:	12
License:	GPL
Group:		Networking/Other
URL:		http://daniel.haxx.se/projects/mail2sms/
Source:		http://daniel.haxx.se/projects/mail2sms/%{name}-%{version}.tar.gz

%description
mail2sms reads a (MIME) mail and converts it to a short message. It offers
search and replace, conditional rules, conditional search and replace etc to
create a custom output. It can optionally pipe its output into a specified
program.

%prep
%setup -q

%build
%configure
%make

%install
install -d  %{buildroot}%{_sysconfdir}/mail/mail/sms
install -d  %{buildroot}%{_bindir}
install -d  %{buildroot}%{_mandir}/man1
install -d  %{buildroot}%{_mandir}/man4

install -m0755 %{name} %{buildroot}%{_bindir}/%{name}
install -m0644 example.conf %{buildroot}%{_sysconfdir}/mail/mail/sms/mail2sms.conf
install -m0644 %{name}.1  %{buildroot}%{_mandir}/man1/
install -m0644 %{name}.4  %{buildroot}%{_mandir}/man4/

%files
%doc CHANGES FILES INSTALL LEGAL README REGEX TODO forward.README forward.example
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/mail/mail/sms/mail2sms.conf
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0644,root,root) %{_mandir}/man1/*
%attr(0644,root,root) %{_mandir}/man4/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3155 |21cr|maildrop-2.8.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Maildrop mail filter/mail delivery agent
Name:		maildrop
Version:	2.8.4
Release:	4
License:	GPLv3
Group:		System/Servers
URL:		http://www.courier-mta.org/maildrop/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		maildrop-1.7.0-format_not_a_string_literal_and_no_format_arguments.diff
#BuildConflicts:	libreoffice-common
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	db-devel
BuildRequires:	fam-devel
BuildRequires:	pkgconfig(libidn)
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pcre-devel
BuildRequires:  courier-authlib-devel
BuildRequires:  courier-unicode-devel
Requires:	sendmail-command

%description
Maildrop is a combination mail filter/mail delivery agent. Maildrop reads the
message to be delivered to your mailbox, optionally reads instructions from a
file how filter incoming mail, then based on these instructions may deliver
mail to an alternate mailbox, or forward it, instead of dropping the message
into your mailbox.

Maildrop uses a structured, real, meta-programming language in order to define
filtering instructions. Its basic features are fast and efficient. At sites
which carry a light load, the more advanced, CPU-demanding, features can be
used to build very sophisticated mail filters.  Maildrop deployments have
been reported at sites that support as many as 30,000 mailboxes.

Maildrop mailing list:
http://lists.sourceforge.net/lists/listinfo/courier-maildrop

This version is compiled with support for GDBM database files, maildir
enhancements (folders+quotas), and userdb.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p0

%build
export DEFAULT_DEF="./Maildir"
export MAILBOT="%{_bindir}/mailbot"

%configure \
    --disable-authlib \
    --enable-crlf-term=1 \
    --enable-global-timeout=300 \
    --enable-keep-fromline=1 \
    --enable-lockext-def=.lock \
    --enable-lockrefresh-def=15 \
    --enable-locksleep-def=5 \
    --enable-locktimeout-def=60 \
    --enable-maildirquota \
    --enable-maildrop-gid=mail \
    --enable-maildrop-uid=root \
    --enable-mimecharset=iso-8859-1 \
    --enable-restrict-trusted=0 \
    --enable-sendmail=%{_sbindir}/sendmail \
    --enable-smallmsg=8192 \
    --enable-syslog=1 \
    --enable-tempdir=.tmp \
    --enable-trusted-users="root mail daemon postfix postmaster uucp qmaild sendmail mmdf vpopmaill" \
    --enable-use-flock=1 \
    --with-db=db \
    --with-dirsync \
    --with-etcdir=%{_sysconfdir}/maildrop \
    --with-libidn=%{_prefix} \
    --without-devel \
    --with-trashquota

%make

%install

%make_install MAILDROPUID='' MAILDROPGID=''

install -d %{buildroot}%{_sysconfdir}/maildrop/maildroprcs

install -m644 libs/maildir/quotawarnmsg %{buildroot}%{_sysconfdir}/maildrop/quotawarnmsg

cat > %{buildroot}%{_sysconfdir}/maildrop/autoresponsesquota <<EOF
#100000000S,10000C
EOF

cat > %{buildroot}%{_sysconfdir}/maildrop/maildirfilterconfig <<EOF
MAILDIRFILTER=../.mailfilter
MAILDIR=./Maildir
EOF

cat > %{buildroot}%{_sysconfdir}/maildrop/maildirshared <<EOF
#
EOF

cat > %{buildroot}%{_sysconfdir}/maildrop/maildroprc <<EOF
#logfile "/var/log/maildrop.log"
EOF

# fix html docs for proper docs inclusion
rm -rf html
mv %{buildroot}%{_datadir}/doc/maildrop/html html

# fix so that these won't conflict with the courier-imap package
mv %{buildroot}%{_bindir}/deliverquota %{buildroot}%{_bindir}/deliverquota-maildrop
mv %{buildroot}%{_bindir}/maildirmake %{buildroot}%{_bindir}/maildirmake-maildrop

mv %{buildroot}%{_mandir}/man1/maildirmake.1 %{buildroot}%{_mandir}/man1/maildirmake-maildrop.1
mv %{buildroot}%{_mandir}/man8/deliverquota.8 %{buildroot}%{_mandir}/man8/maildirmake-deliverquota.8

%files
%doc INSTALL NEWS UPGRADE ChangeLog libs/maildir/README* html
%doc INSTALL.html maildroptips.txt
%doc README.html UPGRADE.html
#%doc libs/maildir/README.maildirfilter.html
#%doc libs/maildir/README.maildirquota.html
#%doc libs/maildir/README.maildirquota.txt
#%doc libs/maildir/README.sharedfolders.html
#%doc libs/maildir/README.sharedfolders.txt

%attr(0755,root,mail) %dir %{_sysconfdir}/maildrop
%attr(0700,root,mail) %dir %{_sysconfdir}/maildrop/maildroprcs

%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/maildrop/autoresponsesquota
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/maildrop/maildirfilterconfig
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/maildrop/maildirshared
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/maildrop/maildroprc
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/maildrop/quotawarnmsg

%attr(0755,root,mail) %{_bindir}/lockmail
%attr(0755,root,mail) %{_bindir}/maildrop
%attr(0755,root,root) %{_bindir}/deliverquota-maildrop
%attr(0755,root,root) %{_bindir}/mailbot
%attr(0755,root,root) %{_bindir}/maildirmake-maildrop
%attr(0755,root,root) %{_bindir}/makedatprog
%attr(0755,root,root) %{_bindir}/makemime
%attr(0755,root,root) %{_bindir}/reformime
%attr(0755,root,root) %{_bindir}/makedat
%attr(0755,root,root) %{_bindir}/reformail

%attr(0644,root,root) %{_mandir}/man[1578]/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3156 |21cr|maildrop-3.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Maildrop mail filter/mail delivery agent
Name:		maildrop
Version:	3.0.8
Release:	1
License:	GPLv3
Group:		System/Servers
URL:		http://www.courier-mta.org/maildrop/
Source0:	https://sourceforge.net/projects/courier/files/maildrop/%{version}/%{name}-%{version}.tar.bz2
#BuildConflicts:	libreoffice-common
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	db-devel
BuildRequires:	fam-devel
BuildRequires:	pkgconfig(libidn)
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pcre2-devel
BuildRequires:	courier-authlib-devel
BuildRequires:	courier-unicode-devel
Requires:	sendmail-command

%description
Maildrop is a combination mail filter/mail delivery agent. Maildrop reads the
message to be delivered to your mailbox, optionally reads instructions from a
file how filter incoming mail, then based on these instructions may deliver
mail to an alternate mailbox, or forward it, instead of dropping the message
into your mailbox.

Maildrop uses a structured, real, meta-programming language in order to define
filtering instructions. Its basic features are fast and efficient. At sites
which carry a light load, the more advanced, CPU-demanding, features can be
used to build very sophisticated mail filters.  Maildrop deployments have
been reported at sites that support as many as 30,000 mailboxes.

Maildrop mailing list:
http://lists.sourceforge.net/lists/listinfo/courier-maildrop

This version is compiled with support for GDBM database files, maildir
enhancements (folders+quotas), and userdb.

%prep

%setup -q -n %{name}-%{version}

%build
export DEFAULT_DEF="./Maildir"
export MAILBOT="%{_bindir}/mailbot"

%configure \
    --disable-authlib \
    --enable-crlf-term=1 \
    --enable-global-timeout=300 \
    --enable-keep-fromline=1 \
    --enable-lockext-def=.lock \
    --enable-lockrefresh-def=15 \
    --enable-locksleep-def=5 \
    --enable-locktimeout-def=60 \
    --enable-maildirquota \
    --enable-maildrop-gid=mail \
    --enable-maildrop-uid=root \
    --enable-mimecharset=iso-8859-1 \
    --enable-restrict-trusted=0 \
    --enable-sendmail=%{_sbindir}/sendmail \
    --enable-smallmsg=8192 \
    --enable-syslog=1 \
    --enable-tempdir=.tmp \
    --enable-trusted-users="root mail daemon postfix postmaster uucp qmaild sendmail mmdf vpopmaill" \
    --enable-use-flock=1 \
    --with-db=db \
    --with-dirsync \
    --with-etcdir=%{_sysconfdir}/maildrop \
    --with-libidn=%{_prefix} \
    --without-devel \
    --with-trashquota

%make

%install

%makeinstall_std MAILDROPUID='' MAILDROPGID=''

install -d %{buildroot}%{_sysconfdir}/maildrop/maildroprcs

install -m644 libs/maildir/quotawarnmsg %{buildroot}%{_sysconfdir}/maildrop/quotawarnmsg

cat > %{buildroot}%{_sysconfdir}/maildrop/autoresponsesquota <<EOF
#100000000S,10000C
EOF

cat > %{buildroot}%{_sysconfdir}/maildrop/maildirfilterconfig <<EOF
MAILDIRFILTER=../.mailfilter
MAILDIR=./Maildir
EOF

cat > %{buildroot}%{_sysconfdir}/maildrop/maildirshared <<EOF
#
EOF

cat > %{buildroot}%{_sysconfdir}/maildrop/maildroprc <<EOF
#logfile "/var/log/maildrop.log"
EOF

# fix html docs for proper docs inclusion
rm -rf html
mv %{buildroot}%{_datadir}/doc/maildrop/html html

# fix so that these won't conflict with the courier-imap package
mv %{buildroot}%{_bindir}/deliverquota %{buildroot}%{_bindir}/deliverquota-maildrop
mv %{buildroot}%{_bindir}/maildirmake %{buildroot}%{_bindir}/maildirmake-maildrop

mv %{buildroot}%{_mandir}/man1/maildirmake.1 %{buildroot}%{_mandir}/man1/maildirmake-maildrop.1
mv %{buildroot}%{_mandir}/man8/deliverquota.8 %{buildroot}%{_mandir}/man8/maildirmake-deliverquota.8

%files
%doc INSTALL NEWS UPGRADE ChangeLog libs/maildir/README* html
%doc INSTALL.html maildroptips.txt
%doc README.html UPGRADE.html
#%doc libs/maildir/README.maildirfilter.html
#%doc libs/maildir/README.maildirquota.html
#%doc libs/maildir/README.maildirquota.txt
#%doc libs/maildir/README.sharedfolders.html
#%doc libs/maildir/README.sharedfolders.txt

%attr(0755,root,mail) %dir %{_sysconfdir}/maildrop
%attr(0700,root,mail) %dir %{_sysconfdir}/maildrop/maildroprcs

%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/maildrop/autoresponsesquota
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/maildrop/maildirfilterconfig
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/maildrop/maildirshared
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/maildrop/maildroprc
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/maildrop/quotawarnmsg

%attr(0755,root,mail) %{_bindir}/lockmail
%attr(0755,root,mail) %{_bindir}/maildrop
%attr(0755,root,root) %{_bindir}/deliverquota-maildrop
%attr(0755,root,root) %{_bindir}/mailbot
%attr(0755,root,root) %{_bindir}/maildirmake-maildrop
%attr(0755,root,root) %{_bindir}/makedatprog
%attr(0755,root,root) %{_bindir}/makemime
%attr(0755,root,root) %{_bindir}/maildirkw
%attr(0755,root,root) %{_bindir}/maildirwatch
%attr(0755,root,root) %{_bindir}/reformime
%attr(0755,root,root) %{_bindir}/makedat
%attr(0755,root,root) %{_bindir}/reformail

%attr(0644,root,root) %{_mandir}/man[1578]/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3157 |21cr|mairix-0.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           mairix
Version:	0.24
Release:	1
Summary:        A program for indexing and searching email messages

Group:          Networking/Mail
License:        GPLv2
URL:            http://www.rc0.org.uk/mairix
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:         mairix-0.23-build.patch

BuildRequires:  bison flex bzip2-devel zlib-devel

%description
mairix is a program for indexing and searching email messages
stored in Maildir, MH or mbox folders.

%prep
%setup -q
%patch0 -p1 -b .build

find -type f ! -name configure -a ! -name mkversion | xargs chmod 644
for i in ACKNOWLEDGEMENTS NEWS; do
  iconv -f iso8859-1 -t utf8 -o ${i}{_,} && touch -r ${i}{,_} && mv -f ${i}{_,}
done

%build
# fool the configure macro :-(
touch configure.ac 
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc ACKNOWLEDGEMENTS COPYING NEWS README dotmairixrc.eg
%{_bindir}/mairix
%{_mandir}/man1/mairix.1*
%{_mandir}/man5/mairixrc.5*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3158 |21cr|maitreya-7.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Vedic and western astrology
Name:		maitreya
Version:	7.1.1
Release:	3
License:	GPLv2+
Group:		Sciences/Astronomy
Url:		http://www.saravali.de/index.html
Source0:	http://www.saravali.de/downloads/%{version}/maitreya-%{version}.tar.bz2
Patch0:		maitreya-7.0.7-lpthread.patch
BuildRequires:	wxGTK-devel

%description
Mature Open Source platform for Vedic and western astrology.

%files -f %{name}.lang
%{_bindir}/*
%{_datadir}/%{name}7
%{_datadir}/applications/*desktop
%{_datadir}/pixmaps/*
%{_datadir}/fonts/truetype/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}7 %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3159 |21cr|makebootfat-1.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A command line utility able to create bootable USB disks
Name: makebootfat
Version: 1.4
Release: 9
Source0: http://puzzle.dl.sourceforge.net/sourceforge/advancemame/%{name}-%{version}.tar.bz2
License: GPL
Group: System/Kernel and hardware 
Url: http://advancemame.sourceforge.net/boot-download.html


%description
makebootfat is a command line utility able to create 
bootable USB disks for Linux and Windows 
using the FAT filesystem and syslinux.

%prep
%setup -q
%configure

%build
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/makebootfat
%{_mandir}/man1/makebootfat*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3160 |21cr|makehuman-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Modeling of three-dimensional humanoid characters
Name:		makehuman
Version:	1.2.0
Release:	1
Group:		Graphics
License:	GPLv3+
URL:		http://www.makehumancommunity.org
Source0:	https://github.com/makehumancommunity/makehuman/archive/v1.2.0.tar.gz?/MakeHuman-%{version}.tar.gz
Patch0:		makehuman-fix_77.patch
BuildRequires:	python3
Requires:	python3-opengl
Requires:	python3-numpy
Requires:	PyQt5
BuildArch:	noarch

%description
MakeHuman(C) is an open-source, open graphics library, stand-alone,
multi-platform, software program, which is completely written in 
C++ language. Its purpose is to provide a versatile, professional
and extremely specialized application for parametrical modeling of
three-dimensional humanoid characters.

%files
%doc LICENSE.md README.md
%attr (0755,root,root) %{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.svg

#------------------------------------------------------------------

%prep
%autosetup -p1

pushd buildscripts
  sed -e '/#isRelease = True/s/^#//' \
      -e 's/#version=.*$/version='"%{version}/" \
      -e '/#gitBranch=master/s/^#//' \
      < build.conf.example > build.conf

# fix desktop file
sed -i -e 's/MakeHuman VERSION/MakeHuman/' \
    -e 's|Icon=/usr/share/makehuman/makehuman.svg|Icon=makehuman|' \
      deb/debian/MakeHuman.desktop
popd

%build

%install
# script and desktop file from developers
#mv deb/debian/MakeHuman.desktop %{buildroot}%{_datadir}/applications/MakeHuman.desktop
#mv buildscripts/rpm/makehuman %{buildroot}%{_bindir}

# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=MakeHuman
Comment=A tool for creating realistic 3D human characters
Comment[ru]=Программа создания реалистичного 3D-человека
Exec=makehuman
Icon=makehuman
StartupNotify=false
Terminal=false
Categories=Graphics;
EOF

# script files - alternative version
mkdir -p %{buildroot}%{_bindir}/
cat > %{buildroot}%{_bindir}/%{name} << EOF
!/bin/bash
cd /usr/share/makehuman
python makehuman.py "$@"
EOF

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{name}/icons/%{name}.svg %{buildroot}%{_datadir}/pixmaps/

# data files
cp -r makehuman %{buildroot}%{_datadir}

echo "" > %{buildroot}%{_datadir}/%{name}/data/uvs/default.mhuv
find %{buildroot} -name "*.py" -exec chmod 0755 {} \;
chmod 0644 %{buildroot}%{_datadir}/%{name}/plugins/9_export_fbx/{data_types.py,encode_bin.py,fbx_binary.py}
chmod 0644 %{buildroot}%{_datadir}/%{name}/lib/qtui.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3161 |21cr|makeself-2.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		makeself
Version:	2.4.4
Release:	1
Summary:	Generates a self-extractable archive from a directory
Group: 		Archiving/Compression
License:	GPLv3
Url:		https://makeself.io/
Source0:	https://github.com/megastep/makeself/archive/release-%{version}.tar.gz
Source1:	http://angst.cynapses.org/stripmakeself
Requires:	bzip2
Requires:	coreutils
Requires:	gnupg
BuildArch:	noarch

%description
Makeself is a small shell script that generates a self-extractable
tar.gz archive from a directory. The resulting file appears as a shell
script (many of those have a .run suffix), and can be launched as
is. The archive will then uncompress itself to a temporary directory
and an optional arbitrary command will be executed (for example an
installation script). This is pretty similar to archives generated
with WinZip Self-Extractor in the Windows world. Makeself archives
also include checksums for integrity self-validation (CRC and/or MD5
checksums).

The makeself.sh script itself is used only to create the archives from
a directory of files. The resultant archive is actually a compressed
(using gzip, bzip2, or compress) TAR archive, with a small shell
script stub at the beginning. This small stub performs all the steps
of extracting the files, running the embedded command, and removing
the temporary files when it's all over. All what the user has to do to
install the software contained in such an archive is to "run" the
archive, i.e sh nice-software.run. I recommend using the "run" (which
was introduced by some Makeself archives released by Loki Software) or
"sh" suffix for such archives not to confuse the users, since they
know it's actually shell scripts (with quite a lot of binary data
attached to it though!).


%prep
%setup -q -n %{name}-release-%{version}
cp -p %{SOURCE1} .

%build

%install
mkdir -p %{buildroot}%{_bindir} \
	%{buildroot}%{_mandir}/man1 \
	%{buildroot}%{_datadir}/makeself/
install -m 755 makeself.sh %{buildroot}%{_bindir}/makeself
install -m 755 makeself-header.sh %{buildroot}%{_datadir}/makeself/makeself-header
install -m 755 stripmakeself %{buildroot}%{_bindir}/
install -m 644 makeself.1 %{buildroot}%{_mandir}/man1/

%files
%doc COPYING README.md makeself.lsm
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/makeself/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3162 |21cr|makesig.pl-0.0.9-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name makesig.pl
%define version 0.0.9
%define release  13
%define summary A very flexible random signature generator

Name:			%name
Version:       		%version
Release:       		%release
Summary:		%summary
License:		GPLv2
Group:			Text tools
Url:			http://www.h.shuttle.de/mitch/makesig_pl.en.html
Source:			%name-%version.tar.bz2
Patch0:			makesig.pl.patch
BuildArchitectures:	noarch

%description
makesig.pl is a very flexible random signature generator for those who
don't fear the power of the command line. It comes together with some
tools to format your signature. makesig.pl can also read fortune files.

%prep
rm -rf $RPM_BUILD_ROOT
%setup
%patch0 -p1

%build

%install
mkdir -p $RPM_BUILD_ROOT%_bindir
cp makesig.pl $RPM_BUILD_ROOT%_bindir
cp tools/*.pl $RPM_BUILD_ROOT%_bindir

%clean 
rm -rf $RPM_BUILD_ROOT

%files
%defattr(0755,root,root)
%{_bindir}/*
%defattr(0755,root,root)
%doc HISTORY COPYING tools/README.tools examples/README.makesig examples/README.examples examples/asciiart.txt examples/background.txt examples/demo.txt examples/left.conf examples/moresigs.txt examples/right.conf examples/somesigs.txt examples/tools.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3163 |21cr|makethumbs-1.239-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Web gallery generator
Name:		makethumbs
Version:	1.239
Release:	8
License:	Public Domain
Group:		Graphics
Url:		http://www.molenda.com/makethumbs/
Source1:	http://www.molenda.com/makethumbs/makethumbs.sh
Source2:	http://www.molenda.com/makethumbs/rotate.sh
Requires:	imagemagick
Recommends:	jhead
Recommends:	metacam
BuildArch:	noarch

%description
makethumbs.sh and rotate.sh are scripts to create polished, static image
galleries suitable for the web or for a CD-ROM, given a bunch of JPEGs
in a directory. makethumbs is most commonly used in conjunction a digital
camera. Do you want to put a batch of pictures on the web for people to
browse? Once the images are on your system, makethumbs will give you
usable web pages with zero extra work. If you have more than five seconds
to spend on your pictures, makethumbs allows for lots of customization,
labeling, and image descriptions.

%files
%{_bindir}/makethumbs.sh
%{_bindir}/rotate.sh

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}

install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/makethumbs.sh
install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/rotate.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3164 |21cr|mako-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight Wayland notification daemon
Name:		mako
Version:	1.7.1
Release:	1
License:	MIT
Group:		Graphical desktop/Other
URL:		https://github.com/emersion/%{name}
Source0:	https://github.com/emersion/mako/archive/v%{version}.tar.gz
# Add dbus-activated systemd unit as required by the packaging guidelines. To
# be upstreamed as discussed in RHBZ#1689634.
Source1:	%{name}.service

Patch0:		add-systemd-service-dbus.patch
Patch1:		meson-disable-werror.patch
BuildRequires:	meson
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(wayland-protocols) >= 1.14
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	scdoc
Requires:	dbus
Provides:	desktop-notification-daemon
%{systemd_requires}

%description
mako is a lightweight notification daemon for Wayland compositors that support
the layer-shell protocol.

%prep
%autosetup -p1

%build
%meson -Dzsh-completions=true -Dsd-bus-provider=libsystemd
%meson_build

%install
%meson_install

# Install dbus-activated systemd unit
install -m0644 -Dt %{buildroot}%{_userunitdir}/ contrib/systemd/mako.service

%post
%systemd_user_post %{name}.service

%preun
%systemd_user_preun %{name}.service

%files
%license LICENSE
%doc README.md
%{_bindir}/mako
%{_bindir}/makoctl
%{_mandir}/man1/mako.1*
%{_mandir}/man1/makoctl.1*
%{_mandir}/man5/%{name}.5.*
%{_userunitdir}/%{name}.service
%{_datadir}/dbus-1/services/fr.emersion.mako.service
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_mako*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3165 |21cr|maldetect-1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define maldetdir /var/lib/%{name}

Name:		maldetect
Version:	1.5
Release:	3
Summary:	Linux Malware Detect (LMD) is a malware scanner for Linux 
License:	GPLv2
Group:		System/Configuration/Other
Url:		https://www.rfxn.com/projects/linux-malware-detect/
Source:		https://www.rfxn.com/downloads/%{name}-%{version}.tar.gz
BuildArch:	noarch
Provides:	maldet = %{version}-%{release}
#BuildRequires:	mailx

%description
Linux Malware Detect (LMD) is a malware scanner for Linux released under the
GNU GPLv2 license, that is designed around the threats faced in shared hosted
environments.
It uses threat data from network edge intrusion detection systems
to extract malware that is actively being used in attacks
and generates signatures for detection.
In addition, threat data is also derived from user submissions
with the LMD checkout feature and from malware community resources.
The signatures that LMD uses are MD5 file hashes and HEX pattern matches,
they are also easily exported to any number of detection tools such as ClamAV.

See also http://habrahabr.ru/post/194346/

%prep
%setup
sed -i "s|/usr/local/maldetect|%{maldetdir}|g" files/{maldet,ignore_paths,conf.maldet}
sed -i "s|/usr/local/maldetect/maldet|maldet|g" files/modsec.sh
sed -i "s|/usr/local/lmd_update|/tmp/lmd_update|g" files/maldet
sed -i "s|/scripts/suspendacct|$disabled_scripts_suspendacct|g" files/maldet

%install
mkdir -p %{buildroot}%{_sbindir}/
mkdir -p %{buildroot}%{maldetdir}/
cp -pR files/* %{buildroot}%{maldetdir}/
mv %{buildroot}%{maldetdir}/maldet %{buildroot}%{_sbindir}/
ln -s maldet %{buildroot}%{_sbindir}/lmd
rm -rf %{buildroot}%{maldetdir}/inotify/*inotify*

mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/
mv %{buildroot}%{maldetdir}/conf.maldet %{buildroot}/%{_sysconfdir}/%{name}/
ln -s %{_sysconfdir}/%{name}/conf.maldet %{buildroot}%{maldetdir}/conf.maldet

#cp $inspath/inotify/libinotifytools.so.0 /usr/lib/

mkdir -p %{buildroot}/etc/cron.daily/
cat <<EOF >%{buildroot}/etc/cron.daily/maldet
#!/bin/sh

MALDIR=%{maldetdir}

# clear quarantine/session/tmp data every 14 days
/usr/sbin/tmpwatch 336 \$MALDIR/tmp >> /dev/null 2>&1
/usr/sbin/tmpwatch 336 \$MALDIR/sess >> /dev/null 2>&1
/usr/sbin/tmpwatch 336 \$MALDIR/quarantine >> /dev/null 2>&1
/usr/sbin/tmpwatch 336 \$MALDIR/pub/*/ >> /dev/null 2>&1

# check for new definition set
#%_sbindir/maldet -u >> /dev/null 2>&1

# scan the last 2 days of file changes
# note! use ? instead *
#%_sbindir/maldet -r /home/?/www 2 >> /dev/null 2>&1
EOF

%files
%doc CHANGELOG README
%config(noreplace) %attr (0755, root, root) %{_sysconfdir}/%{name}/conf.maldet
%config(noreplace) %attr (0755, root, root) %{_sysconfdir}/cron.daily/maldet
%{_sbindir}/maldet
%{_sbindir}/lmd
%{maldetdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3166 |21cr|maliit-kcm-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma mobile maliit-keyboard configuration module
Name:		maliit-kcm
Version:	0.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(x11)
Requires:	maliit-keyboard

%description
Plasma mobile maliit-keyboard configuration module.

%files -f kcm_maliit.lang
%{_qt5_plugindir}/kcms/kcm_maliit.so
%{_kde5_services}/kcm_maliit.desktop
%{_kde5_datadir}/kpackage/kcms/kcm_maliit


#----------------------------------------------------------------------------

%prep
%setup -n %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_maliit

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3167 |21cr|maliit-keyboard-2.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Virtual keyboard for the maliit input framework
Name:		maliit-keyboard
Version:	2.3.1
Release:	3
Group:		Graphical desktop/KDE
License:	BSD
URL:		http://maliit.github.io/
Source0:	https://github.com/maliit/keyboard/archive/%{version}/keyboard-2.3.1.tar.gz
Source1:	maliit-keyboard-2.2.0_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(maliit-framework)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Feedback)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libpinyin)
BuildRequires:	pkgconfig(anthy)
BuildRequires:	pkgconfig(chewing)
#BuildRequires:	%{_lib}presage-devel
BuildRequires:	doxygen
#BuildRequires:	presage-text2ngram
Requires:	libpinyin
Requires:	maliit
#Requires:	presage

%description
Maliit provides a flexible and cross-platform input method plugins. It has a
plugin-based client-server architecture where applications act as clients and
communicate with the Maliit server via input context plugins. The communication
link currently uses D-Bus.

%files -f %{name}.lang
%doc %{_docdir}/maliit-keyboard
%{_bindir}/maliit-keyboard*
%{_libdir}/maliit/plugins/libmaliit-keyboard-plugin.so
%{_libdir}/maliit/keyboard2
%{_datadir}/maliit/keyboard2
%{_datadir}/glib-2.0/schemas/org.maliit.keyboard.maliit.gschema.xml
%{_datadir}/applications/com.github.maliit.keyboard.desktop
%{_appdatadir}/com.github.maliit.keyboard.metainfo.xml

#---------------------------------------------------------

%prep
%autosetup -p1 -n keyboard-2.3.1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake \
        -Denable-presage=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3168 |21cr|managelogs-2.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname managelogs %{major}

Summary:	A log management software for apache
Name:		managelogs
Group:		System/Servers
Version:	2.2.1
Release:	6
License:	Apache license
URL:		http://managelogs.tekwire.net/
Source0:	managelogs-%{version}.tar.gz
BuildRequires:	apr-devel
BuildRequires:	bzip2-devel
BuildRequires:	zlib-devel

%description
managelogs is a log management program for Apache, like rotatelogs and
cronolog. It allows to rotate and purge the Apache log files based on
different size limits. It also brings a lot of other features, like
running as a given non-root user, on-the-fly compression, maintaining
symbolic links on log files, ensuring that rotation occurs on line
boundaries, and more.

%package -n	%{libname}
Summary:	Shared library for managelogs
Group:		System/Libraries

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with managelogs.

%prep

%setup -q

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"

%configure \
    --with-apr=%{_bindir}/apr-1-config \
    --with-zlib=%{_prefix} \
    --with-bz2=%{_prefix}

%make CFLAGS="%{optflags} -fPIC"

%install
%makeinstall_std

# cleanup devel crap
rm -f %{buildroot}%{_libdir}/*.*a
rm -f %{buildroot}%{_libdir}/*.so
rm -f %{buildroot}%{_includedir}/*.h

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/lib*.so.%{major}*

%files
%defattr(-,root,root,-)
%{_bindir}/managelogs
%{_mandir}/man8/managelogs.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3169 |21cr|manaplus-2.1.3.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		manaplus
Version:	2.1.3.17
Release:	1
Summary:	A client for Evol Online and The Mana World: 2D MMORPG
Group:		Games/Other
License:	GPLv2+
Url:		http://manaplus.org
Source0:	https://gitlab.com/manaplus/manaplus/-/archive/%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	appstream-util
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	imagemagick
BuildRequires:	gettext-devel >= 0.16.1
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(zlib) >= 1.2.0
BuildRequires:	pkgconfig(x11)
Provides:	manaworld-client = %{EVRD}
Suggests:	evol-client = %{EVRD}
Suggests:	mumble
Suggests:	xsel

%description
ManaPlus is extended client for Evol Online, The Mana World and similar
servers based on eAthena fork. As a 2D style game, Evol Online aims to create
a friendly environment where people can escape reality and interact with
others while enjoying themselves through a fantasy style game. The Mana World
(TMW) is a serious effort to create an innovative free and open source MMORPG.
TMW uses 2D graphics and aims to create a large and diverse interactive world.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING docs/*.txt README.txt
%{_gamesbindir}/%{name}
%{_gamesbindir}/dyecmd
%exclude %{_gamesdatadir}/%{name}/data/evol
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}test.desktop
%{_mandir}/man6/%{name}*
%{_appdatadir}/%{name}.metainfo.xml

#-----------------------------------------------------------------------------

%package -n evol-client
Summary:	Evol Online branding and theme in manaplus
BuildArch:	noarch
Provides:	evolonline-client = %{EVRD}
Requires:	manaplus = %{EVRD}

%description -n evol-client
This package is part of manaplus and gives branding information inside
ManaPlus for Evol Online server.

%files -n evol-client
%doc COPYING
%{_datadir}/applications/evol.desktop
%{_iconsdir}/hicolor/*/apps/evol-client.png
%{_gamesdatadir}/%{name}/data/evol

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}

perl -i -pe 's/\r\n/\n/gs' README.txt

%build
autoreconf -vif
%configure2_5x --bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir} \
		--disable-rpath
%make


%install
%makeinstall_std
%make DESTDIR=%{buildroot} -C data/evol branding

# Install icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -strip -resize $size data/icons/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png && \
	convert -strip -resize $size data/evol/icons/evol-client.png %{buildroot}%{_iconsdir}/hicolor/$size/apps/evol-client.png
done

# Cleanup
rm -fr %{buildroot}%{_datadir}/pixmaps/%{name}.png
rm -fr %{buildroot}%{_iconsdir}/evol-client.png
chmod -x %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg



%find_lang %{name}


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml 


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3170 |21cr|mandown-0.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define		crates_ver %{version}

Name:           mandown
Version:        0.1.3
Release:        1
Summary:        A man page generator for markdown markup files
License:        ASL 2.0
Group:          Development/Rust
Url:            https://gitlab.com/kornelski/%{name}
Source0:        %{url}/-/archive/%{version}/%{name}-%{version}.tar.gz
# vendored sources for offline build
Source1:        %{name}-crates-%{version}.tar.xz
BuildRequires:  gcc-c++
BuildRequires:  cargo
BuildRequires:  rust

%description
Mandown is a tool that generates man pages from markdown markup files.

%files
%license LICENSE
%doc README.md
%{_bindir}/%name
#--------------------------------------------------------

%prep
%autosetup -a1
%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"

cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF

%build
# cargo build --release --all-features --target-dir=target

%install
cargo build --release --locked --all-features --target-dir=target
  install -Dm 755 target/release/%name -t "%{buildroot}%{_bindir}"



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3171 |21cr|mandriva-kde4-config-2020-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Config requires major update anyway so we just use quick hack for now
%define _duplicate_files_terminate_build 0

%define source_date 20201010
%define kdemajor 4.14

Summary:	ROSA KDE 4 configuration
Name:		mandriva-kde4-config
Version:	2020
Release:	5
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.rosalinux.com
Source0:	%{name}-%{version}.%{source_date}.tar.xz
Source1:	kde4-firstsetup.sh
Patch0:		mandriva-kde4-config-2016-add-mplayerthumbs.patch
BuildRequires:	kde4-macros
BuildRequires:	gdk-pixbuf2.0
BuildArch:	noarch

%description
This package regroups all specific ROSA config file for KDE.
(SimpleWelcome, KWin config etc.)

#--------------------------------------------------------------------

%package common
Summary:	Common configs used for ROSA theme
Group:		Graphical desktop/KDE
Requires(pre):	update-alternatives
Requires:	urw-fonts
Requires:	mandriva-theme-screensaver
Requires:	mandriva-kde-icons
# Don't use them by default but they are really useful
#Requires:	kde4-style-breeze
Requires:	breeze-gtk2-theme
Requires:	breeze-gtk3-theme

%description common
common configs used for ROSA theme.

%post common
update-alternatives --install %{_sysconfdir}/kde4rc kde4-config %{_localstatedir}/lib/mandriva/kde4-profiles/common/upstream-kde4-config 9

%postun common
if [ "$1" = "0" ]; then
    if ! [ -e %{_localstatedir}/lib/mandriva/kde4-profiles/common/upstream-kde4-config ]; then
        update-alternatives --remove kde4-config %{_localstatedir}/lib/mandriva/kde4-profiles/common/upstream-kde4-config
    fi
fi

%files common
%dir %{_localstatedir}/lib/mandriva/
%dir %{_localstatedir}/lib/mandriva/kde4-profiles
%dir %{_localstatedir}/lib/mandriva/kde4-profiles/common
%{_localstatedir}/lib/mandriva/kde4-profiles/common/*
%{_datadir}/kde4/env/*
%{_kde_appsdir}/color-schemes/*.colors
%{_kde_appsdir}/kdm/themes
%{_kde_iconsdir}/*/*/apps/*
%{_kde_appsdir}/ksplash/Themes/ROSA

#--------------------------------------------------------------------

%package -n Default-kde4-config
Summary:	ROSA KDE configuration
Group:		Graphical desktop/KDE
Provides:	kde4-config-file = %{version}-%{release}
Requires:	desktop-common-data
Recommends:	plymouth(system-theme)
Requires(pre):	mandriva-kde4-config-common = %{version}-%{release}
Requires(preun): mandriva-kde4-config-common
Requires(post):	perl-MDK-Common

%description -n Default-kde4-config
This package regroups all specific ROSA config file for KDE.

%pre -n Default-kde4-config
if [ "$1" = "2" ]; then
	[ ! -h %{_sysconfdir}/kde4rc ] && rm -f %{_sysconfdir}/kde4rc ]
fi
if [ -d %{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/apps/kdesktop/Desktop ]; then
  rm -rf %{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/apps/kdesktop/Desktop
fi

%trigger -n Default-kde4-config -- kdebase-kdm4-config-file
    perl -MMDK::Common -e 'update_gnomekderc("%{_kde_configdir}/kdm/kdmrc", "General", "ServerVTs", "-7")' 

%post -n Default-kde4-config
update-alternatives --install %{_sysconfdir}/kde4rc kde4-config %{_localstatedir}/lib/mandriva/kde4-profiles/Default/kde4rc 15

mkdir -p %{_kde_configdir}/kdm
update-alternatives --install \
	%{_kde_configdir}/kdm/kdmrc kdm4-config \
	%{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/config/kdm/kdmrc \
	10 \
	--slave \
	%{_kde_configdir}/kdm/backgroundrc \
	kdm4-background-config \
	%{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/config/kdm/backgroundrc
# As kdmrc is a config(noreplace), make sure that the poweroff commande is OK.
perl -MMDK::Common -e 'update_gnomekderc("%{_kde_configdir}/kdm/kdmrc", Shutdown, HaltCmd, "/bin/poweroff")'


%postun -n Default-kde4-config
if [ "$1" = "0" ]; then
    if ! [ -e %{_localstatedir}/lib/mandriva/kde4-profiles/Default/kde4rc ]; then
        update-alternatives --remove kde4-config %{_localstatedir}/lib/mandriva/kde4-profiles/Default/kde4rc
    fi

    if ! [ -e %{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/config/kdmrc ]; then
        update-alternatives --remove kdm4-config %{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/config/kdmrc
    fi
fi

%triggerpostun -n Default-kde4-config -- mandriva-kdm-config
update-alternatives --install \
    %{_kde_configdir}/kdm/kdmrc kdm4-config \
    %{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/config/kdm/kdmrc \
    10 \
    --slave \
    %{_kde_configdir}/kdm/backgroundrc \
    kdm4-background-config \
    %{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/config/kdm/backgroundrc

%files -n Default-kde4-config
%defattr(-, root, root)
%dir %{_localstatedir}/lib/mandriva/kde4-profiles/Default
%{_localstatedir}/lib/mandriva/kde4-profiles/Default/*
%config(noreplace) %{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/config/kdm/backgroundrc
%config(noreplace) %{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/config/kdm/kdmrc

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# Nothing

%install
# Create profile dirs
mkdir -p %{buildroot}%{_kde_appsdir}/kdm
mkdir -p %{buildroot}%{_kde_configdir}/kdm
mkdir -p %{buildroot}%{_localstatedir}/lib/mandriva
mkdir -p %{buildroot}%{_datadir}/applications/kde4
mkdir -p %{buildroot}%{_kde_appsdir}/ksplash/Themes

for i in 16 32 48 64 128; do
	mkdir -p %{buildroot}%{_iconsdir}/crystalsvg/${i}x${i}/apps ;
	cp kde4-profiles/common/share/icons/crystalsvg/${i}x${i}/apps/home-mdk.png %{buildroot}%{_iconsdir}/crystalsvg/${i}x${i}/apps/home-mdk.png ;
done

mv kde4-profiles %{buildroot}/%{_localstatedir}/lib/mandriva

for name in Default; do
# As we Ksplash, we need to copy the files in /usr
	cp -fr %{buildroot}%{_localstatedir}/lib/mandriva/kde4-profiles/$name/share/config/kdm/themes %{buildroot}/%{_kde_appsdir}/kdm
# We keep this common as we use the same theme for all mdv flavours
	cp -fr %{buildroot}%{_localstatedir}/lib/mandriva/kde4-profiles/$name/share/apps/ksplash/Themes/ROSA %{buildroot}%{_kde_appsdir}/ksplash/Themes
    echo "[Directories-default]" > %{buildroot}%{_localstatedir}/lib/mandriva/kde4-profiles/$name/kde4rc
    echo "prefixes=/var/lib/mandriva/kde4-profiles/common,%{_localstatedir}/lib/mandriva/kde4-profiles/$name" >> %{buildroot}%{_localstatedir}/lib/mandriva/kde4-profiles/$name/kde4rc
done

# Upstream
echo "[Directories-default]" > %{buildroot}%{_localstatedir}/lib/mandriva/kde4-profiles/common/upstream-kde4-config
echo "prefixes=%{_kde_prefix}" >> %{buildroot}%{_localstatedir}/lib/mandriva/kde4-profiles/common/upstream-kde4-config

mkdir -p %{buildroot}%{_datadir}/kde4/env
install -m 755 %{SOURCE1} %{buildroot}%{_datadir}/kde4/env

# KDE version in kickoff top tile image
sed -i s,"KDE 4.10","KDE %{kdemajor}",g %{buildroot}%{_localstatedir}/lib/mandriva/kde4-profiles/Default/share/apps/mandriva/pics/top.svg

mv %{buildroot}%{_localstatedir}/lib/mandriva/kde4-profiles/common/share/apps/color-schemes %{buildroot}%{_kde_appsdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3172 |21cr|mandriva-kde-icons-1.0.4-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mandriva KDE icons
Name:		mandriva-kde-icons
Version:	1.0.4
Release:	26
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.mandriva.com
Source0:	%{name}-%{version}.tar.bz2
Source1:	breeze-home-mdk.svg
Provides:	kde-custom-icons
BuildArch:	noarch

%description
This package contains all specific mandriva icons.

This include special folders icons and actions icons.

%files
%{_iconsdir}/*/*/*/*
%{_iconsdir}/favicons/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}
cp -fr * %{buildroot}/
cp -r %{buildroot}%{_iconsdir}/crystalsvg %{buildroot}%{_iconsdir}/hicolor
mv -f %{buildroot}%{_iconsdir}/crystalsvg %{buildroot}%{_iconsdir}/oxygen

mkdir -p %{buildroot}%{_iconsdir}/breeze/apps/32
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/breeze/apps/32/home-mdk.svg

mkdir -p %{buildroot}%{_iconsdir}/breeze-dark/apps/32
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/breeze-dark/apps/32/home-mdk.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3173 |21cr|mandriva-lxde-config-0.5.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Mandriva LXDE configuration files
Name:    	mandriva-lxde-config
Version: 	0.5.5
Release: 	5
Group:   	Graphical desktop/Other
License: 	GPLv2+
URL:		http://www.lxde.org
# (fwang) http://svn.mandriva.com/svn/soft/mandriva-lxde-config/
Source0: 	%{name}-%{version}.tar.xz
BuildArch: 	noarch
Conflicts:	lxde-common < 0.5.5-0.git20110721.3
Requires:	mandriva-theme
Requires:	rosa-flat-icons
Requires:	rosa-lxde-flat
Requires:	fonts-ttf-opensans

%description
Configuration files for ROSA LXDE desktop environment.

%prep
%setup -qn %{name}-%{version}

%install

install -D desktop.conf -m644 %{buildroot}%{_sysconfdir}/xdg/lxsession/LXDE/desktop.conf
install -D openbox-rc.xml -m644 %{buildroot}%{_datadir}/lxde/openbox/rc.xml

%files
%{_sysconfdir}/xdg/lxsession/LXDE/desktop.conf
%{_datadir}/lxde/openbox/rc.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3174 |21cr|mangohud-0.6.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname MangoHud

Summary:	Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more
Name:		mangohud
Version:	0.6.9
Release:	1
License:	MIT
Group:		Games/Other
Url:		https://github.com/flightlessmango/MangoHud
Source0:	https://github.com/flightlessmango/MangoHud/archive/v%{version}.tar.gz?/%{oname}-%{version}-1.tar.gz
Source1:	https://github.com/flightlessmango/minhook/archive/81d6f8c.tar.gz?/minhook.tar.gz
Source2:	https://github.com/ocornut/imgui/archive/v1.81.tar.gz?/imgui-1.81.tar.gz
Source3:	https://wrapdb.mesonbuild.com/v2/imgui_1.81-1/get_patch?/imgui-1.81-1-wrap.zip
Source4:	https://github.com/nlohmann/json/releases/download/v3.10.5/include.zip?/nlohmann_json-3.10.5.zip
Patch0:		MangoHud-0.6.9-use-system-vulkan.patch
BuildRequires:	glslang
BuildRequires:	meson
BuildRequires:	python3dist(mako)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glfw3)
BuildRequires:	pkgconfig(spdlog)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)

%description
Vulkan and OpenGL overlay for monitoring FPS, temperatures, CPU/GPU load and more.

%files
%doc README.md
%license LICENSE
%{_bindir}/mangoapp
%{_bindir}/%{name}ctl
%{_bindir}/%{name}
%{_datadir}/vulkan/implicit_layer.d/*.json
%{_defaultdocdir}/%{name}/MangoHud.conf.example
%{_libdir}/libMangoApp.so
%{_libdir}/libMangoHud_dlsym.so
%{_libdir}/libMangoHud.so
%{_mandir}/man1/mangohud.1.*
%{_mandir}/man1/mangoapp.1.xz
%{_datadir}/metainfo/io.github.flightlessmango.mangohud.metainfo.xml
%{_iconsdir}/hicolor/scalable/apps/io.github.flightlessmango.mangohud.svg

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version} -a1
cp -rf minhook-*/* modules/minhook
sed -i "/_\(url\|hash\)/d" subprojects/{imgui,nlohmann_json}.wrap
rm -f subprojects/{cmocka,minhook}.wrap
mkdir -p subprojects/packagefiles
cp -f %{SOURCE2} %{SOURCE3} %{SOURCE4} subprojects/packagefiles

%build
%meson	\
	-Dappend_libdir_mangohud=false	\
	-Dmangoapp_layer=true		\
	-Dmangoapp=true			\
	-Dmangohudctl=true		\
	-Dtests=disabled		\
	-Duse_system_spdlog=enabled	\
	-Dwith_xnvctrl=disabled		\
	-Dwith_wayland=enabled
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3175 |21cr|manpageeditor-0.0.15-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ManPageEditor
%define debug_package	%{nil}
#define distsuffix mrb

Name:			manpageeditor
Version:		0.0.15
Release:		4
Summary:		Manual pages editor
License:		GPLv3
Group:			Books/Howtos
URL:			http://keithhedger.hostingsiteforfree.com/
Source0:		http://keithhedger.hostingsiteforfree.com/zips/manpageeditor/%{oname}-%{version}.tar.gz
BuildRequires:		desktop-file-utils
BuildRequires:		pkgconfig(gtksourceview-2.0)
BuildRequires:   	aspell-devel
BuildRequires:     	imagemagick
BuildRequires:     	pkgconfig(gdk-2.0)

%description
Create,edit,import,preview man-pages.

%prep
%setup -q -n %{oname}-%{version}

%build
%configure --prefix=/usr --enable-aspell
%make

%install
# installer is a total mess...
mkdir -p %{buildroot}%{_bindir}
install -m755 ManPageEditor/app/%{name} %{buildroot}%{_bindir}
# man pages
mkdir -p %{buildroot}%{_mandir}/man1
install -m644  ManPageEditor/resources/man/manpageeditor.1 %{buildroot}%{_mandir}/man1
# data files
mkdir -p %{buildroot}%{_datadir}/%{oname}
cp -R ManPageEditor/resources/examples %{buildroot}%{_datadir}/%{oname}/examples
# menu entry fix
mkdir -p %{buildroot}%{_datadir}/applications
cp -R ManPageEditor/resources/applications/%{oname}.desktop %{buildroot}%{_datadir}/applications/%{oname}.desktop
desktop-file-install %{buildroot}%{_datadir}/applications/%{oname}.desktop
# icons	
install -d -m755 %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
convert ManPageEditor/resources/pixmaps/%{oname}.png -resize 32x32 %{buildroot}%{_iconsdir}/%{oname}.png
convert ManPageEditor/resources/pixmaps/%{oname}.png -resize 16x16 %{buildroot}%{_miconsdir}/%{oname}.png
convert ManPageEditor/resources/pixmaps/%{oname}.png -resize 48x48 %{buildroot}%{_liconsdir}/%{oname}.png

rm -fr %{buildroot}%{_datadir}/%{oname}/docs

%files
%doc ChangeLog ManPageEditor/resources/docs/gpl-3.0.txt ManPageEditor/resources/help
%{_bindir}/%{name}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/%{oname}/examples/*
%{_mandir}/man1/manpageeditor.1*
%{_miconsdir}/%{oname}.png
%{_iconsdir}/%{oname}.png
%{_liconsdir}/%{oname}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3176 |21cr|manslide-2.0.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		manslide
Summary:	Graphical slideshow creation program
Version:	2.0.3
Release:	8
Source0:	http://www.mandrivalinux-online.eu/%{name}/%{name}-%{version}.tar.gz
URL:		http://www.kde-apps.org/content/show.php?content=72739
Group:		Graphics
License:	GPLv2+

BuildRequires:	qt4-devel
Requires:	sox
Requires:	imagemagick
Requires:	mencoder
Requires:	mplayer

%description
Manslide is a slideshow creation application which makes it easy to
produce attractive slideshows with optional background music. Manslide
uses the QT4 toolkit.

%prep
%setup -q
moc mainfrm.h > moc_mainfrm.cpp
moc tetrahedron.h > moc_tetrahedron.cpp

%build
%qmake_qt4
%make

%install
install -m755 Manslide -D %{buildroot}%{_datadir}/%{name}/%{name}
install -m644 *.qm %{buildroot}%{_datadir}/%{name}/
install -m644 *.ts %{buildroot}%{_datadir}/%{name}/
cp -R Interface %{buildroot}%{_datadir}/%{name}/
cp -R BIB_ManSlide %{buildroot}%{_datadir}/%{name}/
install -d %{buildroot}%{_bindir}
ln -s %{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Manslide
Comment=Slideshow generator
Exec=%{_bindir}/%{name} 
Icon=image_processing_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Graphics;Qt;Photography;X-MandrivaLinux-CrossDesktop;
EOF

%files
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3177 |21cr|mantis-1.2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   mantisbt


Name:		mantis
Version:	1.2.1
Release:	8
Summary:	Web-based bug tracker
License:	GPLv2
Group:		System/Servers
URL:		http://www.mantisbt.org
Source0:	%{oname}-%{version}.tar.gz
Requires:	apache-mod_php
Requires:	php-mysql
Requires:	apache-mod_socache_shmcb
BuildArch:	noarch

%description
Mantis is a php/MySQL/web based bugtracking system.
The goals for this project are to produce and maintain a
lightweight and simple bugtracking system. Additions of
complexity and/or features are modular and configurable
so that users can be shielded from unwanted clutter.

The product is designed to be easily modifiable,
customizable, and upgradeable. Anyone with intermediate
PHP and MySQL experience should be able to customize
Mantis to suit their needs.

%prep
%setup -q -n %{oname}-%{version}

%build

%install
rm -rf packages
# install files
install -d -m 755 %{buildroot}%{_var}/www/%{name}
install -d -m 755 %{buildroot}%_defaultdocdir/%{name}-%{version}
mv doc/*  %{buildroot}%_defaultdocdir/%{name}-%{version}
rm -rf doc
cp -aRf * %{buildroot}%{_var}/www/%{name}

# apache configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf <<EOF
Alias /mantis "/var/www/mantis"

<Directory /var/www/mantis>

    Require all granted
    
	php_admin_value memory_limit 32M
	php_admin_value max_execution_time 60
	php_admin_value register_globals Off
	php_admin_value magic_quotes_gpc Off
	php_admin_value magic_quotes_runtime Off
	# settings for the file upload, you might increase them further
	php_admin_value upload_max_filesize 16M
	# session handling: now the check for expired sessions is done on every 10th session creation
	php_admin_value session.use_trans_sid Off
	php_admin_value session.gc_probability 1
	php_admin_value session.gc_divisor 10
	# multibyte extension: needed for utf-8
	php_admin_value mbstring.func_overload 7

  <Files ~ "\.inc\.php$">
     Require all denied
   </Files>

  <Files ~ ".tpl$">
     Require all denied
  </Files>

</Directory>
EOF

find %{buildroot}%{_var}/www/%{name} -name '*.php' -exec perl -pi -e 's|/usr/local/bin/php|/usr/bin/php|g' {} \;

%clean


%files
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf
%_defaultdocdir/%{name}-%{version}
%{_var}/www/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3178 |21cr|mapnik-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 3.1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Free Toolkit for developing mapping applications
Name:		mapnik
Version:	3.1.0
Release:	1
License:	LGPLv2+
Group:		Geography
Url:		http://mapnik.org/
Source0:	https://github.com/mapnik/mapnik/releases/download/v%{version}/mapnik-v%{version}.tar.bz2
Patch0:		mapnik-v3.0.10-linking.patch
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	postgis
BuildRequires:	scons
BuildRequires:	boost-devel
BuildRequires:	jpeg-devel
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(cairomm-1.0)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gdal)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libagg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxml-2.0)
# not support proj>=8.0
#BuildRequires:	pkgconfig(proj)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(py3cairo)
BuildRequires:	python3egg(lxml)
BuildRequires:	python3egg(xmldiff)
Requires:	fonts-ttf-dejavu
Requires:	%{libname} = %{EVRD}

%description
Mapnik is a Free Toolkit for developing mapping applications.
It's written in C++ and there are Python bindings to
facilitate fast-paced agile development. It can comfortably
be used for both desktop and web development, which was something
I wanted from the beginning.

Mapnik is about making beautiful maps. It uses the AGG library
and offers world class anti-aliasing rendering with subpixel
accuracy for geographic data. It is written from scratch in
modern C++ and doesn't suffer from design decisions made a decade
ago. When it comes to handling common software tasks such as memory
management, filesystem access, regular expressions, parsing and so
on, Mapnik doesn't re-invent the wheel, but utilises best of breed
industry standard libraries from boost.org 

%files
%doc AUTHORS.md COPYING CHANGELOG.md
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Mapnik is a Free toolkit for developing mapping applications
Group:		System/Libraries
Conflicts:	%{_lib}mapnik3.0_3 < 3.0.10-2
Obsoletes:	%{_lib}mapnik3.0_3 < 3.0.10-2

%description -n %{libname}
Mapnik is a Free Toolkit for developing mapping applications.
It's written in C++ and there are Python bindings to
facilitate fast-paced agile development. It can comfortably
be used for both desktop and web development, which was something
I wanted from the beginning.

Mapnik is about making beautiful maps. It uses the AGG library
and offers world class anti-aliasing rendering with subpixel
accuracy for geographic data. It is written from scratch in
modern C++ and doesn't suffer from design decisions made a decade
ago. When it comes to handling common software tasks such as memory
management, filesystem access, regular expressions, parsing and so
on, Mapnik doesn't re-invent the wheel, but utilises best of breed
industry standard libraries from boost.org

%files -n %{libname}
%doc AUTHORS.md COPYING CHANGELOG.md
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Mapnik is a Free toolkit for developing mapping applications
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}

%description -n %{devname}
Mapnik is a Free Toolkit for developing mapping applications.
It's written in C++ and there are Python bindings to
facilitate fast-paced agile development. It can comfortably
be used for both desktop and web development, which was something
I wanted from the beginning.

Mapnik is about making beautiful maps. It uses the AGG library
and offers world class anti-aliasing rendering with subpixel
accuracy for geographic data. It is written from scratch in
modern C++ and doesn't suffer from design decisions made a decade
ago. When it comes to handling common software tasks such as memory
management, filesystem access, regular expressions, parsing and so
on, Mapnik doesn't re-invent the wheel, but utilises best of breed
industry standard libraries from boost.org

%files -n %{devname}
%doc AUTHORS.md COPYING CHANGELOG.md
%{_bindir}/mapnik-config
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_datadir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities distributed with the Mapnik spatial visualization library
Group:		Geography
Requires:	%{name} = %{EVRD}

%description utils
Miscellaneous utilities distributed with the Mapnik spatial visualization
library

%files utils
%doc AUTHORS.md COPYING CHANGELOG.md
%{_bindir}/shapeindex
%{_bindir}/mapnik-render
%{_bindir}/mapnik-index
%{_bindir}/svg2png
%{_libdir}/libmapnik-json.a
%{_libdir}/libmapnik-wkt.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" \
%ifarch %{ix86}
%define lds lib
%else
%define lds lib64
%endif

%configure \
	DESTDIR=%{buildroot} \
	PREFIX=%{_prefix} \
	THREADING=multi \
	XMLPARSER=libxml2 \
	GDAL_INCLUDES=%{_includedir}/gdal \
	PGSQL_INCLUDES=/usr/include/pgsql \
	LIBDIR_SCHEMA=%{lds} \
	SVG2PNG=true \
	CUSTOM_LDFLAGS="%{ldflags}" \
	INTERNAL_LIBAGG=False \
	SYSTEM_FONTS=%{_datadir}/fonts \
	DEMO=False

%make

%install
%makeinstall_std

# get rid of fonts use external instead
rm -rf %{buildroot}%{_libdir}/%{name}/fonts


# install pkgconfig file
cat > %{name}.pc <<EOF
prefix=%{_prefix}
exec_prefix=%{_prefix}
includedir=%{_includedir}

Name: %{name}
Description: Free Toolkit for developing mapping applications
Version: %{version}
Libs: -lmapnik
Cflags: -I${includedir}/%{name} -I${includedir}/agg
EOF

mkdir -p %{buildroot}%{_datadir}/pkgconfig/
install -p -m 644 %{name}.pc %{buildroot}%{_datadir}/pkgconfig/

chmod -x %{buildroot}%{_includedir}/%{name}/agg/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3179 |21cr|mapserver-7.6.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Web-based Map Server
Name:		mapserver
Version:	7.6.4
Release:	2
License:	MIT
Group:		Sciences/Geosciences
Url:		http://mapserver.org/
Source0:	http://download.osgeo.org/mapserver/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	fcgi-devel
BuildRequires:	gd-devel
BuildRequires:	geos-devel
BuildRequires:	jpeg-devel
BuildRequires:	php-devel
BuildRequires:	postgresql-devel
BuildRequires:	readline-devel
BuildRequires:	shapelib-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(ftgl)
BuildRequires:	pkgconfig(gdal)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libming)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsvg-cairo)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(proj)
BuildRequires:	pkgconfig(libprotobuf-c)
BuildRequires:	protobuf-c
Requires:	webserver

%description
MapServer is an OpenSource development environment for building spatially
enabled Internet applications. The software builds upon other popular
OpenSource or freeware systems like Shapelib, FreeType, Proj.4, libTIFF,
Perl and others.

The MapServer CGI application provides a significant number of
"out-of-the-box" features. Here's a sampling:

* vector formats supported: ESRI shapefiles, simple embedded features,
  ESRI ArcSDE (alpha release)
* raster formats supported (8-bit only): TIFF/GeoTIFF, GIF, PNG, ERDAS,
  JPEG and EPPL7
* quadtree spatial indexing for shapefiles
* fully customizable, template driven output
* feature selection by item/value, point, area or another feature
* TrueType font support
* support for tiled raster and vector data (display only)
* automatic legend and scalebar building
* scale dependent feature drawing and application execution
* thematic map building using logical or regular expression based classes
* feature labeling including label collision mediation
* on-the-fly configuration via URLs
* on-the-fly projection

MapServer is not a full-featured GIS system, nor does it aspire to be.
It does, however, provide enough core functionality to support a wide
variety of web applications. Beyond browsing GIS data, MapServer allows
you create "geographic image maps", that is, maps that can direct users
to content.

%files
%dir %{_var}/www/html/mapserver
%attr(755,apache,apache) %{_var}/www/html/mapserver/tmp
%doc README.rst HISTORY.TXT
%{_bindir}/legend
%{_bindir}/mapserv
%{_bindir}/msencrypt
%{_bindir}/scalebar
%{_bindir}/shp2img
%{_bindir}/shptree
%{_bindir}/shptreetst
%{_bindir}/shptreevis
%{_bindir}/sortshp
%{_bindir}/tile4ms

#----------------------------------------------------------------------------

%package -n php-mapscript
Summary:	Mapserver php-mapscript
Group:		Sciences/Geosciences
Provides:	mapscript = %{EVRD}
Provides:	mapserver-php = %{EVRD}
Requires:	php
Requires:	curl
Requires:	php(zend-abi) = %{php_zend_api}

%description -n php-mapscript
php-mapscript allows you to have mapserver functions from within php,
creating maps with php commands.

%files -n php-mapscript
%{_sysconfdir}/php.d/40_mapscript.ini
%{_libdir}/php/extensions/*

%post -n php-mapscript
%{_post_webapp}

%postun -n php-mapscript
%{_postun_webapp}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Mapserver shared library
Group:		System/Libraries

%description -n %{libname}
Mapserver shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Mapserver development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 6.2.1
Obsoletes:	%{name}-devel < 6.2.1

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%dir %{_datadir}/mapserver/cmake/
%{_datadir}/mapserver/cmake/*.cmake
%dir %{_includedir}/mapserver/
%{_includedir}/mapserver/*
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DINSTALL_LIB_DIR=%{_libdir} \
	-DWITH_CURL:BOOL=ON \
	-DWITH_PHP:BOOL=ON \
	-DWITH_SVGCAIRO:BOOL=ON \
	-Wno-dev
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_libdir}/php/extensions
mkdir -p %{buildroot}%{_sysconfdir}/php.d/

cat > %{buildroot}/%{_sysconfdir}/php.d/40_mapscript.ini <<EOF
extension = php_mapscript.so
EOF

install -d %{buildroot}/%{_var}/www/html/mapserver/tmp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3180 |21cr|maradns-3.5.0022-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		maradns
Version:	3.5.0022
Release:	1%{?dist}
Summary:	Authoritative and recursive DNS server made with security in mind
Group:		System/Servers
Source0:	http://www.maradns.org/download/3.5/%{version}/%{name}-%{version}.tar.xz
# http://maradns.samiam.org/download/patches/3rd_party/Thomasz-Torcz-systemd-2013-10-14.patch
Patch0:		%{name}-0001-add-systemd-unit-files.patch
License:	BSD-2-Clause
URL:		http://www.maradns.org/

BuildRequires: make
BuildRequires:	gcc
%{?systemd_requires}
BuildRequires:	systemd
Requires(pre):	shadow-utils

%description
MaraDNS is a package that implements the Domain Name Service (DNS), an
essential internet service. MaraDNS has the following advantages:
	* Secure.
	* Supported.
	* Easy to use.
	* Small.
	* Open Source.

%prep
%setup -q
%autopatch -p1

# wrong permissions
chmod 0644 doc/en/man/make.pdf
chmod 0644 doc/en/tutorial/make.index
chmod 0644 doc/en/webpage/make.page

%build

# We don't use %%configure here because this is a homebrew configure not generated by autoconf
./configure --ipv6 --libdir=%{_libdir}

# recursive resolver is shipped in versioned directory
# first compile Deadwood, otherwise we have no control over make flags
pushd deadwood-%{version}/src
make %{?_smp_mflags} FLAGS="%{optflags} -lrt"
popd
make %{?_smp_mflags} FLAGS="%{optflags} -DSELECT_PROBLEM -DAUTHONLY"


%install
# create /etc/maradns, /etc/mararc and /etc/dwood3rc first
install -p -d -m 0755 %{buildroot}%{_sysconfdir}/maradns/logger/
install -p -D -m 0644 doc/en/examples/example_mararc %{buildroot}%{_sysconfdir}/mararc
install -p -D -m 0644 deadwood-%{version}/doc/dwood3rc %{buildroot}%{_sysconfdir}/dwood3rc

# cache dir
install -p -d -m 0755 %{buildroot}/var/cache/deadwood

# sbin files
install -p -D -m 0755 server/maradns %{buildroot}%{_sbindir}/maradns
install -p -D -m 0755 tcp/zoneserver %{buildroot}%{_sbindir}/zoneserver
install -p -D -m 0755 deadwood-%{version}/src/Deadwood %{buildroot}%{_sbindir}/Deadwood

# bin files
install -p -D -m 0755 tcp/getzone %{buildroot}%{_bindir}/getzone
install -p -D -m 0755 tcp/fetchzone %{buildroot}%{_bindir}/fetchzone
install -p -D -m 0755 tools/askmara %{buildroot}%{_bindir}/askmara

# man pages
install -p -d -m 0755 %{buildroot}%{_mandir}/man{1,5,8}
install -p -D -m 0644 -t %{buildroot}%{_mandir}/man1/ \
	doc/en/man/askmara.1 \
	doc/en/man/getzone.1 \
	doc/en/man/fetchzone.1
install -p -D -m 0644 -t %{buildroot}%{_mandir}/man1/ \
	deadwood-%{version}/doc/Deadwood.1
install -p -D -m 0644 -t %{buildroot}%{_mandir}/man5/ \
	doc/en/man/csv1.5 \
	doc/en/man/csv2.5 \
	doc/en/man/csv2_txt.5 \
	doc/en/man/mararc.5
install -p -D -m 0644 -t %{buildroot}%{_mandir}/man8/ \
	doc/en/man/maradns.8 \
	doc/en/man/zoneserver.8 \

# systemd units
mkdir -p %{buildroot}%{_unitdir}
install -p -D -m 0644 -t %{buildroot}%{_unitdir}/ \
	build/maradns.service \
	build/maradns-zoneserver.service \
	build/maradns-deadwood.service

%files
%doc doc/en/changelog.txt doc/en/credits.txt doc/en/faq.txt doc/en/{examples,tutorial,webpage}
%license COPYING
%config(noreplace) %{_sysconfdir}/mararc
%config(noreplace) %{_sysconfdir}/dwood3rc
%attr(-,maradns,maradns) %{_sysconfdir}/maradns/
%attr(-,maradns,maradns) /var/cache/deadwood/
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-zoneserver.service
%{_unitdir}/%{name}-deadwood.service

%{_bindir}/askmara
%{_bindir}/fetchzone
%{_bindir}/getzone
%{_sbindir}/maradns
%{_sbindir}/zoneserver
%{_sbindir}/Deadwood

%{_mandir}/man1/askmara.1*
%{_mandir}/man1/getzone.1*
%{_mandir}/man1/fetchzone.1*
%{_mandir}/man1/Deadwood.1*
%{_mandir}/man5/csv1.5*
%{_mandir}/man5/csv2.5*
%{_mandir}/man5/csv2_txt.5*
%{_mandir}/man5/mararc.5*
%{_mandir}/man8/maradns.8*
%{_mandir}/man8/zoneserver.8*


%pre
if [ $1 -eq 1 ]; then
	getent group maradns >/dev/null || groupadd -r maradns
	getent passwd maradns >/dev/null || \
	useradd -r -g maradns -d /etc/maradns -s /sbin/nologin \
		-c "MaraDns chroot user" maradns
	exit 0
fi


%post
if [ $1 -eq 1 ]; then
	# correct UID/GID of maradns user
	sed --in-place -e "s/^maradns_uid.*/maradns_uid = $(id -u maradns)/" %{_sysconfdir}/mararc
	sed --in-place -e "s/^maradns_gid.*/maradns_gid = $(id -g maradns)/" %{_sysconfdir}/mararc
	sed --in-place -e "s/^maradns_uid.*/maradns_uid = $(id -u maradns)/" %{_sysconfdir}/dwood3rc
	sed --in-place -e "s/^maradns_gid.*/maradns_gid = $(id -g maradns)/" %{_sysconfdir}/dwood3rc
	# correct cache file directory
	sed --in-place -e 's@/etc/deadwood@/var/cache/deadwood@' %{_sysconfdir}/dwood3rc
fi
%systemd_post maradns.service maradns-zoneserver.service maradns-deadwood.service

%preun
%systemd_preun maradns.service maradns-zoneserver.service maradns-deadwood.service

%postun
%systemd_postun_with_restart maradns.service maradns-zoneserver.service maradns-deadwood.service



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3181 |21cr|marathon-20220115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		Marathon
%define	oversion	20210408

Name:		marathon
Version:	20220115
Release:	1
Summary:	3D first-person shooter game
License:	GPL
Group:		Games/Arcade
Url:		https://alephone.lhowon.org/games/marathon.html
Source0:	https://github.com/Aleph-One-Marathon/alephone/releases/download/release-%{oversion}/%{oname}-%{oversion}-Data.zip
Requires:	alephone
BuildArch:	noarch

%description
Marathon is a first-person shooter video game with a science fiction theme
developed and published by Bungie released in December 1994 for the Apple
Macintosh. Marathon was released at a time when other early first-person
shooters such as Doom were enjoying popularity amongst PC users, and it was
widely seen as a Macintosh counterpart to Doom (which would not be ported to
the Macintosh platform until 1995).
Just prior to its acquisition by Microsoft in 2000, Bungie released the source
code to the Marathon 2 engine, and the Marathon Open Source project began,
resulting in the new Marathon engine called Aleph One. Since then, the fan
community has made improvements that feature OpenGL-based, high-resolution
graphics, support for Lua, a slew of internal structural changes allowing for
more advanced 3rd party mods, and Internet-capable TCP/IP-based multiplayer.
While the fundamental technology underlying the Marathon engine is still
considered rather outdated by today's standards, Aleph One has added
significant improvements and a more modern polish to its capabilities and
ported it to a wide variety of platforms, bringing Marathon and its derivatives
far beyond their Mac roots.

The game takes place several centuries into the future in outer space and sets
the player as a security officer attempting to defeat an alien invasion aboard
a colony ship named the Marathon. Although Marathon features action-heavy,
first-person shooter gameplay similar to Doom and other contemporaries, the
game is renowned for having an intricate story line that is also an essential
element of its gameplay whereas most similar games devote minimal attention to
plot for the sake of faster, simpler, more action-oriented gameplay.

%files
%{_gamesbindir}/%{name}
%{_gamesdatadir}/AlephOne/%{name}
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn Marathon
find . -type f -exec chmod 0644 {} \;


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{_gamesdatadir}/AlephOne/%{name}
cp -r * %{buildroot}%{_gamesdatadir}/AlephOne/%{name}/

mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/bash

alephone %{_gamesdatadir}/AlephOne/%{name}/
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{name}

# Note: the icon is provided by the AlephOne package
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Marathon
Comment=3D first-person shooter
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3182 |21cr|marathon2-20211030-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		Marathon2
%define	oversion	20210408

Name:		marathon2
Version:	20211030
Release:	1
Summary:	3D first-person shooter game
License:	GPL
Group:		Games/Arcade
Url:		https://alephone.lhowon.org/games/marathon2.html
Source0:	https://github.com/Aleph-One-Marathon/alephone/releases/download/release-%{oversion}/%{oname}-%{oversion}-Data.zip
Requires:	alephone
BuildArch:	noarch

%description
Marathon 2: Durandal is the first sequel in the Marathon series of science
fiction first-person shooter computer games from Bungie Software. It was
released on November 24, 1995. The game is mostly set on the fictional planet
of Lh'owon, homeworld of the S'pht, and once again the player takes the role
of a Security Officer from the Marathon.

Just prior to its acquisition by Microsoft in 2000, Bungie released the source
code to the Marathon 2 engine, and the Marathon Open Source project began,
resulting in the new Marathon engine called Aleph One. Since then, the fan
community has made improvements that feature OpenGL-based, high-resolution
graphics, support for Lua, a slew of internal structural changes allowing for
more advanced 3rd party mods, and Internet-capable TCP/IP-based multiplayer.

While the fundamental technology underlying the Marathon engine is still
considered rather outdated by today's standards, Aleph One has added
significant improvements and a more modern polish to its capabilities and
ported it to a wide variety of platforms, bringing Marathon and its derivatives
far beyond their Mac roots.

%files
%{_gamesbindir}/%{name}
%{_gamesdatadir}/AlephOne/%{name}
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn Marathon\ 2
find . -type f -exec chmod 0644 {} \;


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{_gamesdatadir}/AlephOne/%{name}
cp -r * %{buildroot}%{_gamesdatadir}/AlephOne/%{name}/

mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/bash

alephone %{_gamesdatadir}/AlephOne/%{name}/
EOF

# Note: the icon is provided by the AlephOne package
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Marathon 2
Comment=3D first-person shooter
Exec=%{name}
Icon=marathon
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3183 |21cr|marathon-infinity-20211030-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		MarathonInfinity
%define	oversion	20210408

Name:		marathon-infinity
Version:	20211030
Release:	1
Summary:	3D first-person shooter game
License:	GPL
Group:		Games/Arcade
Url:		https://alephone.lhowon.org/games/infinity.html
Source0:	https://github.com/Aleph-One-Marathon/alephone/releases/download/release-%{oversion}/%{oname}-%{oversion}-Data.zip
Requires:	alephone
BuildArch:	noarch

%description
Marathon Infinity is the third game in the Marathon Trilogy of science fiction
first-person shooter computer games from Bungie Software. The game was released
on October 15, 1996 and included more levels than its predecessor Marathon 2.
These were larger, and formed part of a more intricate plot that spanned both
space and time.

Just prior to its acquisition by Microsoft in 2000, Bungie released the source
code to the Marathon 2 engine, and the Marathon Open Source project began,
resulting in the new Marathon engine called Aleph One. Since then, the fan
community has made improvements that feature OpenGL-based, high-resolution
graphics, support for Lua, a slew of internal structural changes allowing for
more advanced 3rd party mods, and Internet-capable TCP/IP-based multiplayer.

While the fundamental technology underlying the Marathon engine is still
considered rather outdated by today's standards, Aleph One has added
significant improvements and a more modern polish to its capabilities and
ported it to a wide variety of platforms, bringing Marathon and its derivatives
far beyond their Mac roots.

%files
%{_gamesbindir}/%{name}
%{_gamesdatadir}/AlephOne/%{name}
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn Marathon\ Infinity
find . -type f -exec chmod 0644 {} \;


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{_gamesdatadir}/AlephOne/%{name}
cp -r * %{buildroot}%{_gamesdatadir}/AlephOne/%{name}/

mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/bash

alephone %{_gamesdatadir}/AlephOne/%{name}/
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{name}

# Note: the icon is provided by the AlephOne package
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Marathon Infinity
Comment=3D first-person shooter
Exec=%{name}
Icon=marathon
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3184 |21cr|marco-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define oname mate-window-manager

%define major 2
%define libname %mklibname marco-private %{major}
%define devname %mklibname marco-private -d

Summary:	Mate window manager
Name:		marco
Version:	1.26.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://www.mate-desktop.org/
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		marco-1.20.1-rosa-theme.patch
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	yelp-tools
BuildRequires:	zenity
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(pangoxft)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
Recommends:		mate-desktop
Requires:		zenity

%rename %{oname}

%description
The Mate window manager integrates nicely with MATE.

%files -f %{name}.lang
%doc README NEWS HACKING
%{_bindir}/marco
%{_bindir}/marco-message
%{_bindir}/marco-theme-viewer
%{_datadir}/applications/marco.desktop
%dir %{_datadir}/themes
%{_datadir}/themes/Atlanta
%{_datadir}/themes/ClearlooksRe
%{_datadir}/themes/Dopple-Left
%{_datadir}/themes/Dopple
%{_datadir}/themes/DustBlue
%{_datadir}/themes/Esco
%{_datadir}/themes/Gorilla
%{_datadir}/themes/Motif
%{_datadir}/themes/Raleigh
%{_datadir}/themes/Spidey-Left
%{_datadir}/themes/Spidey
%{_datadir}/themes/Splint-Left
%{_datadir}/themes/Splint
%{_datadir}/themes/WinMe
%{_datadir}/themes/eOS
%{_datadir}/marco
%{_datadir}/mate-control-center/keybindings/50-marco*.xml
%{_datadir}/help/C/creating-marco-themes
%{_datadir}/mate/wm-properties
%{_datadir}/glib-2.0/schemas/org.mate.marco.gschema.xml
%{_mandir}/man1/marco.1.*
%{_mandir}/man1/marco-message.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for Mate window manager
Group:		System/Libraries

%description -n %{libname}
This package contains libraries used by Mate window manager.

%files -n %{libname}
%doc README NEWS HACKING
%{_libdir}/libmarco-private.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files with Mate window manager
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include 
files to allow you to develop with Mate window manager.

%files -n %{devname}
%doc README NEWS HACKING
%doc ChangeLog
%{_bindir}/marco-window-demo
%{_includedir}/marco-1
%{_libdir}/libmarco-private.so
%{_libdir}/pkgconfig/libmarco-private.pc
%{_mandir}/man1/marco-theme-viewer.1.*
%{_mandir}/man1/marco-window-demo.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure --disable-static           \
           --disable-schemas-compile  \
           --with-x
%make

# fix rpmlint unused-direct-shlib-dependency warning
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool

%install
%makeinstall_std 

%find_lang %{name}

rm -fr %{buildroot}%{_datadir}/MateConf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3185 |21cr|mari0-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           mari0
Version:        1.6
Release:        2
Summary:        Puzzle platformer with a Portal gun
Group:          Games/Arcade
License:        CC-BY-NC-SA
Url:            http://stabyourself.net/mari0/
Source0:        http://stabyourself.net/dl.php?file=mari0-1006/%{name}-source.zip
BuildArch:      noarch
BuildRequires:  dos2unix
BuildRequires:  imagemagick
Requires:       love

%description
Two genre defining games from completely different eras: Nintendo's Super
Mario Bros. and Valve's Portal. These two games managed to give Platformers
and First-Person Puzzle Games a solid place in the video game world. But what
if Nintendo teamed up with Valve and recreated the famous Mario game with
Portal gun mechanics?

%files
%doc readme.txt
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -c
# Fix encoding and line-endings
dos2unix readme.txt
iconv -f CP1250 -t UTF-8 readme.txt > readme.txt.utf8
mv readme.txt.utf8 readme.txt

# Extract icon from .love file
unzip -p %{name}_%{version}.love graphics/icon.gif > icon.gif

%build
# Launcher script
cat > %{name}.sh << EOF
#!/bin/sh
love0.8 %{_gamesdatadir}/%{name}/%{name}.love
EOF

# Desktop entry
cat > %{name}.desktop << EOF
[Desktop Entry]
Name=Mari0
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%install
install -D -m 644 %{name}_%{version}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love
install -D -m 755 %{name}.sh %{buildroot}%{_gamesbindir}/%{name}
install -D -m 755 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

# Icon
for size in 16 32 64 128 256; do
    mkdir -p %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/
    convert icon.gif -resize ${size}x${size} \
    %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3186 |21cr|mariadb-connector-odbc-3.1.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} %(mysql_config --cflags || : )
%global ldflags %{ldflags} -lpthread

Name:           mariadb-connector-odbc
Version:        3.1.15
Release:        1
Summary:        The MariaDB Native Client library (ODBC driver)
License:        LGPLv2+
Group:          Databases
Url:            https://github.com/mariadb-corporation/mariadb-connector-odbc
Source0:        https://dlm.mariadb.com/1936443/Connectors/odbc/connector-odbc-%{version}/%{name}-%{version}-src.tar.gz
# Online documentation can be found at: https://mariadb.com/kb/en/library/mariadb-connector-odbc/
BuildRequires:  cmake
BuildRequires:  unixODBC-devel
BuildRequires:  gcc-c++
BuildRequires:  mariadb-connector-c-devel

%description
MariaDB Connector/ODBC is a standardized, LGPL licensed database driver using
the industry standard Open Database Connectivity (ODBC) API. It supports ODBC
Standard 3.5, can be used as a drop-in replacement for MySQL Connector/ODBC,
and it supports both Unicode and ANSI modes.

%files
%license COPYING
%doc README
# This is unixODBC plugin
%{_libdir}/libmaodbc.so

#----------------------------------------------------------------------------
%package devel
Summary:        The MariaDB Native Client library (ODBC driver)
Group:          Databases
Requires:       %{name} = %{EVRD}

%description devel
Development files for %{name}

%files devel
%{_libdir}/pkgconfig/libmaodbc.pc

#----------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}-src

%build
%cmake \
	-DCMAKE_BUILD_TYPE="RelWithDebInfo" \
	-DMARIADB_LINK_DYNAMIC="%{_libdir}/libmariadb.so" \
	-DINSTALL_LAYOUT=RPM \
	-DINSTALL_LIBDIR="%{_lib}" \
	-DINSTALL_LIB_SUFFIX="%{_lib}" \
	-DINSTALL_DOCDIR="%{_defaultdocdir}/%{name}" \
	-DINSTALL_LICENSEDIR="%{_defaultlicensedir}/%{name}"

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3187 |21cr|marisa-0.2.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%bcond_with ruby

Summary:	Static and spece-efficient trie data structure library
Name:		marisa
Version:	0.2.4
Release:	8
License:	BSD or LGPL
Group:		System/Internationalization
Url:		https://code.google.com/p/marisa-trie/
Source0:	https://marisa-trie.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	swig
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(python3)
%if %{with ruby}
BuildRequires:	pkgconfig(ruby)
%endif

%description
Matching Algorithm with Recursively Implemented StorAge (MARISA) is a
static and space-efficient trie data structure. And libmarisa is a C++
library to provide an implementation of MARISA. Also, the package of
libmarisa contains a set of command line tools for building and
operating a MARISA-based dictionary.

A MARISA-based dictionary supports not only lookup but also reverse
lookup, common prefix search and predictive search.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Static and spece-efficient trie data structure library
Group:		System/Libraries
Conflicts:	%{name} < 0.2.4-4
Obsoletes:	%{name} < 0.2.4-4

%description -n %{libname}
Matching Algorithm with Recursively Implemented StorAge (MARISA) is a
static and space-efficient trie data structure. And libmarisa is a C++
library to provide an implementation of MARISA. Also, the package of
libmarisa contains a set of command line tools for building and
operating a MARISA-based dictionary.

A MARISA-based dictionary supports not only lookup but also reverse
lookup, common prefix search and predictive search.

%files -n %{libname}
%doc docs/* AUTHORS COPYING README
%{_libdir}/libmarisa.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.2.4-4
Obsoletes:	%{name}-devel < 0.2.4-4

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Tools for %{name}
Group:		System/Internationalization

%description tools
This package contains tools for developing applications that use %{name}.

%files tools
%{_bindir}/marisa*

#----------------------------------------------------------------------------

%package perl
Summary:	Perl language binding for marisa
Group:		Development/Perl
Requires:	%{libname} = %{EVRD}

%description perl
Perl language binding for marisa.

%files perl
%{perl_vendorarch}/*
#exclude %dir %{perl_vendorarch}/auto/

#----------------------------------------------------------------------------

%package python3
Summary:	Python language binding for marisa
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description python3
Python language binding for marisa.

%files python3
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%if %{with ruby}
%package ruby
Summary:	Ruby language binding for marisa
Group:		Development/Ruby
Requires:	%{libname} = %{EVRD}
Requires:	ruby

%description ruby
Ruby language binding for marisa.

%files ruby
%{ruby_vendorarchdir}/*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

# build Perl bindings
pushd bindings/perl
export CFLAGS="-g -O2 -lstdc++"
export LDFLAGS="-lstdc++"
export CXXFLAGS="-g -O2 -lstdc++"
%{__perl} Makefile.PL INC="-I%{_builddir}/%{name}-%{version}/lib" LIBS="-L%{_builddir}/%{name}-%{version}/lib/.libs" INSTALLDIRS=vendor
CFLAGS="-g -O2 -lstdc++" LDFLAGS="-lstdc++" make
popd


# build Python bindings
# Regenerate Python bindings
make --directory=bindings swig-python

# build Python bindings
pushd bindings/python
python3 setup.py build_ext --include-dirs="%{_builddir}/%{name}-%{version}/lib" --library-dirs="%{_builddir}/%{name}-%{version}/lib/.libs"
python3 setup.py build
popd

# build Ruby bindings
# Regenerate ruby bindings
pushd bindings
export CFLAGS="-g -O2 -lstdc++"
export LDFLAGS="-lstdc++"
export CXXFLAGS="-g -O2 -lstdc++"
CFLAGS="-g -O2 -lstdc++" LDFLAGS="-lstdc++" %make swig-ruby
popd

%if %{with ruby}
pushd bindings
make swig-ruby
popd

pushd bindings/ruby
export CFLAGS="-g -O2 -lstdc++"
export LDFLAGS="-lstdc++"
export CXXFLAGS="-g -O2 -lstdc++"
ruby extconf.rb --with-opt-include="%{_builddir}/%{name}-%{version}/lib" --with-opt-lib="%{_builddir}/%{name}-%{version}/lib/.libs" --vendor
CFLAGS="-g -O2 -lstdc++" LDFLAGS="-lstdc++" %make
popd
%endif

%install
%makeinstall_std INSTALL="install -p"

# install Perl bindings
pushd bindings/perl
%makeinstall_std INSTALL="install -p"
popd

# install Python bindings
pushd bindings/python
python3 setup.py install --root="%{buildroot}"
popd

%if %{with ruby}
# install Ruby bindings
pushd bindings/ruby
make install DESTDIR=%{buildroot} hdrdir=%{_includedir}/ruby-%{ruby_version} rubyhdrdir=%{_includedir}/ruby-%{ruby_version}
popd
rm -rf %{buildroot}%{_libdir}/libmarisa.{la,a}
%endif

find %{buildroot} -name 'perllocal.pod' -exec rm -f {} ';'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3188 |21cr|marked-2.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?nodejs_find_provides_and_requires}

%global enable_tests 0

Name:       marked
Version:    2.1.3
Release:    1
Summary:    A markdown parser for Node.js built for speed
Group:      Development/Other
License:    MIT
URL:        https://github.com/markedjs/%{name}
Source0:    https://github.com/markedjs/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildArch:  noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
%else
ExclusiveArch: %{ix86} x86_64 %{armx} noarch
%endif

BuildRequires:  nodejs-packaging
BuildRequires:  web-assets-devel
BuildRequires:  uglify-js1

%if 0%{?enable_tests}
BuildRequires:  jasmine
BuildRequires:  npm
#BuildRequires:  npm(express)
BuildRequires:  npm(markdown)
BuildRequires:  npm(showdown)
# Not yet packaged for Fedora.
# BuildRequires:  npm(robotskirt)
%endif

Requires:       nodejs-marked = %{version}-%{release}

%global _description\
marked is a full-featured markdown compiler that can parse huge chunks of\
markdown without having to worry about caching the compiled output or\
blocking for an unnecessarily long time.\
\
marked is extremely fast and frequently outperforms similar markdown parsers.\
marked is very concise and still implements all markdown features, as well\
as GitHub Flavored Markdown features.\
\
marked more or less passes the official markdown test suite in its entirety.\
This is important because a surprising number of markdown compilers cannot\
pass more than a few tests.

%description
Install this for command line tool and man page.
%_description

# Note: the subpackages were the only way I could get upgrades
# from marked-0.3.2 or nodejs-marked-0.3.6 to work smoothly.

%package -n nodejs-marked
Summary:    A markdown parser for JavaScript built for speed
# For symlink in %%{nodejs_sitelib}/%%{name}/lib
Requires:       js-marked = %{version}-%{release}

%description -n nodejs-marked %_description

%package -n js-marked
Summary:    Minified markdown parser for JavaScript built for speed
Requires:   web-assets-filesystem

%description -n js-marked
Install this for the minified web assests for nodejs-marked.
%_description

%prep
%setup -q -n %{name}-%{version}

# remove the bundled minified marked
rm -f marked.min.js
# Not sure what this is for, but rpmlint doesn't like it
rm -f docs/.eslintrc.json

%build
uglifyjs1 lib/marked.js > marked.min.js

%install
mkdir -p %{buildroot}%{_jsdir}/%{name}
cp -pr lib/marked.js marked.min.js %{buildroot}%{_jsdir}/%{name}

mkdir -p %{buildroot}%{nodejs_sitelib}/%{name}
cp -pr package.json component.json src \
    %{buildroot}%{nodejs_sitelib}/%{name}
mkdir -p %{buildroot}%{nodejs_sitelib}/%{name}/lib
ln -sf %{_jsdir}/marked/marked.js \
    %{buildroot}%{nodejs_sitelib}/marked/lib/marked.js
mkdir -p %{buildroot}%{nodejs_sitelib}/%{name}/bin
install -p -D -m0755 bin/%{name} \
    %{buildroot}%{nodejs_sitelib}/marked/bin/%{name}
sed -i -e '1,1 s:env node:node:' \
    %{buildroot}%{nodejs_sitelib}/marked/bin/%{name}
mkdir -p %{buildroot}/%{_bindir}
ln -sf %{nodejs_sitelib}/%{name}/bin/%{name} \
    %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_mandir}/man1
install -p -D -m0644 man/%{name}.1 \
    %{buildroot}%{_mandir}/man1/%{name}.1

%nodejs_symlink_deps


%if 0%{?enable_tests}
%check
# gfm_code_hr_list test is known to fail but the author has not yet arrived
# at a satisfactory solution: https://github.com/chjj/marked/pull/118

# def_blocks and double_link are also known to fail:
# https://github.com/chjj/marked/issues/136#issuecomment-15016714

%nodejs_symlink_deps --check
# /usr/bin/npm install robotskirt
#__nodejs ./test/
npm run test
%endif


%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*


%files -n nodejs-%{name}
%license LICENSE.md
%doc README.md docs
%{nodejs_sitelib}/%{name}


%files -n js-%{name}
%license LICENSE.md
%{_jsdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3189 |21cr|marked-man-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname marked-man

Summary:	Markdown to roff wrapper around marked
Group:		Text tools
Name:		marked-man
Version:	0.7.0
Release:	1
License:	MIT
Url:		https://github.com/kapouer/marked-man
Source0:	https://github.com/kapouer/marked-man/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	nodejs-packaging
BuildArch:	noarch

%description
marked-man wraps marked to extend it with groff output support
in order to create Unix manual pages for use with man.

%files
%doc LICENSE README.md
%{nodejs_sitelib}/%{oname}
%{_bindir}/%{name}
#------------------------------------------------------------------

%prep
%setup -q

%build
# nothing

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{oname}
cp -pr package.json lib/ \
    %{buildroot}%{nodejs_sitelib}/%{oname}

%nodejs_symlink_deps

mkdir -p %{buildroot}%{_prefix}
cp -r ./bin %{buildroot}%{_prefix}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3190 |21cr|mars_nwe-0.99.pl23-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	NetWare file and print servers which run on Linux systems
Name:		mars_nwe
Version:	0.99.pl23
Release:	2
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.compu-art.de/mars_nwe/
Source0:	http://ftp.disconnected-by-peer.at/ncpfs/%{name}-%{version}.tar.bz2
# sys_errlist and sys_nerr are deprecated
Patch0:		mars_nwe-glibc.patch
Patch1:		mars_nwe-0.99.pl20-emutli1.patch
BuildRequires:	cmake >= 2.6.0
BuildRequires:	gdbm-devel
BuildRequires:	glibc-devel

%description
The mars_nwe (MARtin Stover's NetWare Emulator) package enables Linux to
provide both file and print services for NetWare clients (i.e., providing the
services of a Novell NetWare file server). It allows the sharing of files
between Linux machines and Novell NetWare clients, using NetWare's native IPX
protocol suite.

%files
%doc COPYING README
%{_sysconfdir}/skel/.nwopt
%{_sysconfdir}/%{name}
%{_sbindir}/*
%attr(0755,root,root) %{_libdir}/%{name}
%{_var}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%global optflags %{optflags} -Wp,-D_FORTIFY_SOURCE=0
%cmake

%make

%install
%makeinstall_std -C build

mv %{buildroot}/usr/etc/* %{buildroot}%{_sysconfdir}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3191 |21cr|marsshooter-0.7.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _appdatadir %{_datadir}/appdata


Summary:	M.A.R.S. - A Ridiculous Shooter
Name:		marsshooter
Version:	0.7.6
Release:	4
License:	GPLv3+
Group:		Games/Arcade
Url:		http://mars-game.sourceforge.net/
Source0:	https://github.com/jwrdegoede/M.A.R.S./archive/%{name}-%{version}/%{name}-%{version}.tar.gz
# From Fedora
Patch0:		%{name}-crash-fix.patch
Patch1:		%{name}-crash-fix2.patch
Patch2:		%{name}-waree-type.patch
Patch3:		%{name}-gcc11-fix.patch
# https://sources.debian.org/patches/marsshooter/0.7.6-4/avoid-crash-because-of-missing-return-statement.patch/
Patch4:		avoid-crash-because-of-missing-return-statement.patch
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	pkgconfig(sfml-all) >= 2.2
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util

%description
It is a game for two players, flying with ships in a
two-dimensional space setting, governed by the laws of gravity.
It features:
    * awesome 2D-graphics with an unique style
    * a stunning amount of particles
    * single- and multiplayer-support
    * an artificial intelligence using an aggro-system, which
      reacts differentlyupon varying situations
    * many impressive weapons
    * customizable ships
    * a very sexy GUI
    * several game modes: Sacceball, TeamDeathmatch, Cannonkeep,
      Deathmatch, Grave-Itation Pit

%files
%doc credits.txt license.txt README.md NEWS 
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_mandir}/man6/%{name}.6.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n M.A.R.S.-%{name}-%{version}
rm -fr cmake data_src ext_libs_for_windows
# Fix attr for polish
for i in data/locales/Polish.txt \
         include/Interface/ComboBox.hpp src/Interface/ComboBox.cpp \
         include/Interface/DropDownWindow.hpp src/Interface/DropDownWindow.cpp \
         include/Items/PUSleep.hpp src/Items/PUSleep.cpp; do
  chmod -x $i;
done
dos2unix credits.txt license.txt

%build
%cmake -Dmars_DATA_DEST_DIR=%{_gamesdatadir}/%{name} -Dmars_EXE_DEST_DIR=%{_gamesbindir}
%make VERBOSE=1

%install
%makeinstall_std -C build
# We handle this in %%doc
rm -r %{buildroot}%{_docdir}
# Remove obsolete pixmap
rm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet \
  %{buildroot}%{_appdatadir}/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3192 |21cr|marst-2.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		marst
Summary:	Algol-to-C translator
Version:	2.4
Release:	10
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-%{version}-automake-texinfo.patch.bz2
URL:		http://www.gnu.org/software/marst/marst.html
Group:		Development/Other
License:	GPL
BuildRequires:	texinfo autoconf2.5 automake1.8

%description
MARST is an Algol-to-C translator. It automatically translates programs written
in the algorithmic language Algol 60 to the C programming language.

%prep
%setup -q
%patch0 -p1

%build
export FORCE_AUTOCONF_2_5=1
aclocal-1.8
autoconf
automake-1.8 --foreign -a
%configure --disable-dependency-tracking
%make
%make info

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall



%clean
rm -rf $RPM_BUILD_ROOT 

%files
%defattr(-,root,root,0755) 
%doc AUTHORS ChangeLog COPYING README examples
%{_libdir}/libalgol.a
%{_includedir}/algol.h
%{_bindir}/macvt
%{_bindir}/marst
%{_infodir}/%{name}.info*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3193 |21cr|marwaita-themes-17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Marwaita

Summary:	Marwaita themes
Summary(ru_RU.UTF-8):	Темы оформления Marwaita
Name:		marwaita-themes
Version:	17
Release:	1
License:	GPLv3
Group:		Graphics
Url:		https://github.com/darkomarko42/Marwaita/ 
Source0:	https://github.com/darkomarko42/Marwaita/archive/%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz
Recommends:	%{name}-cinnamon = %{EVRD}
Recommends:	%{name}-gnome-shell = %{EVRD}
Recommends:	%{name}-gtk2 = %{EVRD}
Recommends:	%{name}-gtk3 = %{EVRD}
Recommends:	%{name}-gtk4 = %{EVRD}
Recommends:	%{name}-metacity = %{EVRD}
Recommends:	%{name}-plank = %{EVRD}
Recommends:	papirus-dark-icon-theme
Recommends:	papirus-light-icon-theme
Recommends:	papirus-simple-icon-theme
Recommends:	x11-data-cursor-themes
Provides:	Marwaita = %{EVRD}
BuildArch:	noarch

%description
Marwaita is a themes for GTK2/3/4, and metacity.
It also contains the themes plank, gnome-shell and Cinnamon.
This meta package installs all possible variants of the Marwaita theme.

%description -l ru_RU.UTF-8
Marwaita - это темы для GTK2/3/4, и metacity.
Так же содержит темы plank, gnome-shell и Cinnamon.
Этот мета пакет устанавливает все возможные варианты темы Marwaita.

%files
%doc README.md
%license LICENSE

#------------------------------------------------------------------------------

%package common
Summary:	Common files for Marwaita themes
Summary(ru_RU.UTF-8):	Общие файлы для тем Marwaita
Group:		Graphics

%description common
This package contains common files for Marwaita themes.

%description common -l ru_RU.UTF-8
Этот пакет содержит общие файлы для тем Marwaita.

%files common
%doc README.md
%license LICENSE
%{_datadir}/themes/Marwaita*/general*
%{_datadir}/themes/Marwaita*/index.theme
%dir %{_datadir}/themes/Marwaita*

#------------------------------------------------------------------------------

%package gtk2
Summary:	Marwaita GTK+2.0 themes
Summary(ru_RU.UTF-8):	Темы Marwaita для GTK+2.0
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	murrine

%description gtk2
This package contains themes for GTK+2.0 as part of the Marwaita theme..

%description gtk2 -l ru_RU.UTF-8
Этот пакет содержит темы для GTK+2.0, как часть тем Marwaita.

%files gtk2
%doc README.md
%license LICENSE
%{_datadir}/themes/Marwaita*/gtk-2.0/*

#------------------------------------------------------------------------------

%package gtk3
Summary:	Marwaita GTK+3.0 themes
Summary(ru_RU.UTF-8):	Темы Marwaita для GTK+3.0
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description gtk3
This package contains themes for GTK+3.0 as part of the Marwaita theme.

%description gtk3 -l ru_RU.UTF-8
Этот пакет содержит темы для GTK+3.0, как часть тем Marwaita.

%files gtk3
%doc README.md
%license LICENSE
%{_datadir}/themes/Marwaita*/gtk-3.0/*

#------------------------------------------------------------------------------

%package gtk4
Summary:	Marwaita GTK4 themes
Summary(ru_RU.UTF-8):	Темы Marwaita для GTK4
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description gtk4
This package contains themes for GTK4 as part of the Marwaita theme.

%description gtk4 -l ru_RU.UTF-8
Этот пакет содержит темы для GTK4, как часть тем Marwaita.

%files gtk4
%doc README.md
%license LICENSE
%{_datadir}/themes/Marwaita*/gtk-4.0/*

#------------------------------------------------------------------------------

%package metacity
Summary:	Marwaita Metacity themes
Summary(ru_RU.UTF-8):	Темы Marwaita для Metacity
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description metacity
This package contains themes for Metacity as part of the Marwaita theme.

%description metacity -l ru_RU.UTF-8
Этот пакет содержит темы для Metacity, как часть тем Marwaita.

%files metacity
%doc README.md
%license LICENSE
%{_datadir}/themes/Marwaita*/metacity-1

#------------------------------------------------------------------------------

%package gnome-shell
Summary:	Marwaita GNOME shell themes
Summary(ru_RU.UTF-8):	Темы Marwaita для GNOME shell
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description gnome-shell
This package contains themes for for GNOME shell as part of the Marwaita theme.

%description gnome-shell -l ru_RU.UTF-8
Этот пакет содержит темы для GNOME shell, как часть тем Marwaita.

%files gnome-shell
%doc README.md
%license LICENSE
%{_datadir}/themes/Marwaita*/gnome-shell/*

#------------------------------------------------------------------------------

%package plank
Summary:	Marwaita plank themes
Summary(ru_RU.UTF-8):	Темы Marwaita для Plank
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description plank
This package contains themes for Plank as part of the Marwaita theme.

%description plank -l ru_RU.UTF-8
Этот пакет содержит темы для Plank, как часть тем Marwaita.

%files plank
%doc README.md
%license LICENSE
%{_datadir}/themes/Marwaita*/plank

#------------------------------------------------------------------------------

%package cinnamon
Summary:	Marwaita cinnamon themes
Summary(ru_RU.UTF-8):	Темы Marwaita для Cinnamon
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description cinnamon
This package contains themes for Cinnamon as part of the Marwaita theme.

%description cinnamon -l ru_RU.UTF-8
Этот пакет содержит темы для Cinnamon, как часть тем Marwaita.

%files cinnamon
%doc README.md
%license LICENSE
%{_datadir}/themes/Marwaita*/cinnamon

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{upstream_name}-%{version}
# Do not package "bad" theme modifications.
rm -Rf 'Marwaita Alt' 'Marwaita Color' 'Marwaita Color Dark'
# Change default settings, add ru localization. Cursor and icons not pack.
sed -i '/Name=Marwaita/a \Name[ru]=Марвайта' Marwaita/index.theme
sed -i '/Name=Marwaita/a \Name[ru]=Марвайта Темная' 'Marwaita Dark'/index.theme
sed -i '/Comment=GTK Theme/a \Comment[ru]=Тема GTK' Marwaita*/index.theme
sed -i "s/IconTheme=Marwaita-/IconTheme=Papirus-/" Marwaita*/index.theme
sed -i "s/CursorTheme=Marwaita/CursorTheme=wonderland/" Marwaita*/index.theme
# Disable execution. Fix warnings.
chmod -x LICENSE README.md Marwaita*/*.theme

%build

%install
mkdir -p %{buildroot}%{_datadir}/themes
mv Marwaita* %{buildroot}%{_datadir}/themes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3194 |21cr|mason-1.590.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name		HTML-Mason
%define	upstream_version	1.59

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(MasonX::Request::PlusApacheSession\\)|perl\\(Apache::Request\\)
%global __provides_exclude perl\\(MyApp(.*)\\)
%else
# useless stuff pulled by ./eg/MyApp/MasonWithSession.pm
%define	_requires_exceptions perl(MasonX::Request::PlusApacheSession)
%define	_provides_exceptions perl(MyApp
%endif

Name:		mason
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Powerful Perl-based web site development and delivery engine

License:	GPL/Artistic
Group:		Networking/WWW
URL:		https://metacpan.org/pod/Mason
Source0:	https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		HTML-Mason-1.32-netdisco.diff
BuildRequires:	apache-mod_perl
BuildRequires:	perl-libapreq2
BuildRequires:	perl-devel
BuildRequires:	perl(Cache::Cache) >= 1.0
BuildRequires:	perl(CGI)
BuildRequires:	perl(Class::Container) >= 0.07
BuildRequires:	perl(Exception::Class) >= 1.15
BuildRequires:	perl(File::Spec) >= 0.8
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(Log::Any)
BuildRequires:	perl(Params::Validate) >= 0.70
BuildRequires:	perl(Scalar::Util) >= 1.01
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Deep)

Requires:	apache-mod_perl
Requires:	perl-HTML-Parser
Requires:	perl-libapreq2
%rename		perl-HTML-Mason
BuildArch:	noarch

%description
Mason allows web pages and sites to be constructed from shared, reusable
building blocks called components. Components contain a mix of Perl and HTML,
and can call each other and pass values back and forth like subroutines.
Components increase modularity and eliminate repetitive work: common design
elements (headers, footers, menus, logos) can be extracted into their own
components where they need be changed only once to affect the whole site.

Other Mason features include a graphical site previewing utility, an HTML/data
caching model, and the ability to walk through requests with the Perl debugger.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p0


%build
export APACHE=%{_sbindir}/httpd
%__perl Makefile.PL INSTALLDIRS=vendor
%make


%check
%make test


%install
%makeinstall_std
rm -rf %{buildroot}%{_bindir}

install -d %{buildroot}/var/cache/%{name}
install -d %{buildroot}/var/www/%{name}


%files
%doc CREDITS Changes INSTALL LICENSE META.json META.yml README* UPGRADE eg samples
%{perl_vendorlib}/HTML
%attr(-,apache,apache) /var/cache/%{name}
/var/www/%{name}
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3195 |21cr|masscan-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	This is an Internet-scale port scanner
Name:		masscan
Version:	1.0.5
Release:	1
License:	BSD
Group:		Networking/Other
Url:		https://github.com/robertdavidgraham/masscan
Source0:	https://github.com/robertdavidgraham/masscan/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		masscan-1.0.5-gcc.patch
BuildRequires:	pcap-devel

%description
This is an Internet-scale port scanner. It can scan the entire 
Internet in under 6 minutes, transmitting 10 million packets 
per second, from a single machine.
It is a faster port scan that produces results similar to nmap,
the most famous port scanner. Internally, it operates more like
scanrand, unicornscan, and ZMap, using asynchronous transmission.

%files
%doc LICENSE README.md VULNINFO.md
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
sed -i 's/\r$//' VULNINFO.md

%build
export CC=gcc
%setup_compile_flags
%make \
	CFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}"

%install
%makeinstall_std
mkdir -p %{buildroot}%{_mandir}/man8
install -pm 0755 doc/%{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3196 |21cr|massxpert-6.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		massxpert
Version:	6.0.1
Release:	1
Summary:	Linear polymer mass spectrometry software
Group:		Sciences/Chemistry
License:	GPLv3
Url:		http://massxpert.org/
Source0:	https://gitlab.com/msxpertsuite/massxpert/-/archive/%{version}/massxpert-%{version}.tar.gz

BuildRequires:	qt5-devel
BuildRequires:	cmake
BuildRequires:	freetype2-devel
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(Qt5Svg)

Requires:	%{name}-data = %{version}
Recommends:	%{name}-doc
Obsoletes:	polyxmass <= 0.9.7
Obsoletes:	polyxmass-common <= 0.8.7
Obsoletes:	polyxmass-doc <= 0.9.0
Obsoletes:	%{mklibname polyxmass 11} <= 0.9.1
Obsoletes:	%{mklibname polyxmass 11 -d} <= 0.9.1

%description
Massxpert is a software environment for polymer chemistry modelling 
and simulation/analysis of mass spectrometric data.

It is the successor of GNU polyxmass.

%files
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/*/*/*/*.png
%{_mandir}/man1/%{name}.1*
%{_datadir}/metainfo/org.msxpertsuite.massxpert.appdata.xml

#-------------------------------------------------------------------------

%package data
Summary:	Data for massxpert
Group:		Sciences/Chemistry

Obsoletes:	polyxmass-data <= 0.8.7

%description data
This package contains the data files for %{name}.

%files data
%defattr(-,root,root,-)
%{_datadir}/%{name}

#-------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5 -G "Unix Makefiles"
%make

%install
%makeinstall_std -C build


# drop the installed doc
# GPLv3 license text not needed and manual relocated in the doc subpackage
rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3197 |21cr|mat-0.13.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metadata anonymisation toolkit
Name:		mat
Version:	0.13.4
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://mat.boum.org/
Source0:	https://0xacab.org/jvoisin/mat2/-/archive/%{version}/mat2-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	perl-Image-ExifTool
Requires:	python3-gi
Requires:	python3-gi-cairo
Requires:	python3-mutagen
Requires:	ffmpeg
Requires:	python3-pdfrw
Requires:	typelib(Poppler)
Requires:	typelib(Rsvg)
Provides:	mat2 = %{EVRD}
BuildArch:	noarch

%description
Metadata consist of information that characterizes data. Metadata are used
to provide documentation for data products. In essence, metadata answer who,
what, when, where, why, and how about every facet of the data that are being
documented.

Metadata within a file can tell a lot about you. Cameras record data about
when a picture was taken and what camera was used. Office documents like PDF
or Office automatically adds author and company information to documents and
spreadsheets. Maybe you don't want to disclose those information on the web.

MAT only removes metadata from your files, it does not anonymise their content,
nor can it handle watermarking, steganography, or any too custom metadata
field/system.

If you really want to be anonymous, use file formats that does not contain
any metadata, or better: use plain-text.

NOTE: PDF is implemented in an unsafe manner. MAT does not remove metadata
in embedded images.

%files
%doc LICENSE README*
%{_bindir}/mat2
%{py3_puresitedir}/libmat2
%{py3_puresitedir}/mat2-%{version}-py*.egg-info
%{_mandir}/man1/mat2.1*
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n mat2-%{version}

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_datadir}
mv %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3198 |21cr|mate-applets-1.26.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define _disable_rebuild_configure 1

Summary:	MATE Desktop panel applets
Name:		mate-applets
Version:	1.26.1
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	cpupower-devel
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-3.0)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(libnl-genl-3.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(mate-settings-daemon)
BuildRequires:	pkgconfig(mateweather)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(upower-glib)
Requires:	polkit-agent
Requires:	python3-gi
Requires:	usermode-consoleonly
%rename mate-netspeed

%description
MATE Desktop panel applets.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%config(noreplace) %{_sysconfdir}/sound/events/mate-battstat_applet.soundlist
%{_libexecdir}/mate-applets
%{_datadir}/mate-applets
%{_datadir}/mate-panel/applets
%{_datadir}/dbus-1/services/org.mate.panel.applet.*
%{_datadir}/glib-2.0/schemas/org.mate.*
%{_datadir}/icons/hicolor/*x*/apps/*.png
%{_mandir}/man1/*.xz
%{_iconsdir}/hicolor/*/status/*png
%{_iconsdir}/hicolor/*/devices/*png
%{_iconsdir}/hicolor/*/apps/*svg

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-gtk=3.0 \
	--disable-schemas-compile \
	--disable-cpufreq \
	--disable-static \
	--with-x \
	--enable-polkit \
	--enable-ipv6 \
	--enable-stickynotes \
	--libexecdir=%{_libexecdir}/mate-applets

%make

%install
%makeinstall_std

# remove needless MateConf stuff
rm -fr %{buildroot}%{_datadir}/MateConf

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3199 |21cr|mate-applet-streamer-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MATE online radio streamer applet
Name:		mate-applet-streamer
Version:	0.4.0
Release:	1
Group:		Graphical desktop/Other
License:	GPLv2+
Url:		http://www.zavedil.com/online-radio-applet
Source:		https://github.com/assen-totin/mate-applet-streamer/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	gstreamer1.0-devel
BuildRequires:	gstreamer1.0-plugins-base-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	sqlite-devel
BuildRequires:	mate-panel-devel
Requires:	gstreamer1.0-pulse
Requires:	gstreamer1.0-plugins-good

%description
This is a MATE panel applet to let you play your favorite online radio station
from your system tray or panel with a single click.
Icecast directory listing in included.

%files -f %{name}.lang
%doc AUTHORS BUGS COPYING ChangeLog README TODO
%{_libexecdir}/streamer_applet
%{_libdir}/bonobo/servers/StreamerAppletFactory.server
%{_datadir}/mate-panel/applets/org.mate.applets.StreamerApplet.mate-panel-applet
%{_datadir}/dbus-1/services/org.mate.panel.applet.StreamerApplet.service
%dir %{_datadir}/streamer_applet
%{_datadir}/streamer_applet/streamer.sqlite
%{_datadir}/pixmaps/applet_streamer*.png
%{_datadir}/icons/hicolor/*/apps/applet_streamer.png
%{_datadir}/glib-2.0/schemas/*

#--------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure \
	--enable-gtk=3 \
	--enable-notify=libnotify \
	--enable-gstreamer=1.0

%make_build V=1

%install
%make_install

# Do not install doc files: they are handled as rpm doc files.
rm -rf %{buildroot}%{_docdir}

# Remove compiled gschemas rpm filetriggers do this
rm -rf %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3200 |21cr|mate-applet-streamer-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MATE online radio streamer applet
Name:		mate-applet-streamer
Version:	0.4.1
Release:	1
Group:		Graphical desktop/Other
License:	GPLv2+
Url:		http://www.zavedil.com/online-radio-applet
Source:		https://github.com/assen-totin/mate-applet-streamer/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	gstreamer1.0-devel
BuildRequires:	gstreamer1.0-plugins-base-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	sqlite-devel
BuildRequires:	mate-panel-devel
Requires:	gstreamer1.0-pulse
Requires:	gstreamer1.0-plugins-good

%description
This is a MATE panel applet to let you play your favorite online radio station
from your system tray or panel with a single click.
Icecast directory listing in included.

%files -f %{name}.lang
%doc AUTHORS BUGS COPYING ChangeLog README TODO
%{_libexecdir}/streamer_applet
%{_libdir}/bonobo/servers/StreamerAppletFactory.server
%{_datadir}/mate-panel/applets/org.mate.applets.StreamerApplet.mate-panel-applet
%{_datadir}/dbus-1/services/org.mate.panel.applet.StreamerApplet.service
%dir %{_datadir}/streamer_applet
%{_datadir}/streamer_applet/streamer.sqlite
%{_datadir}/pixmaps/applet_streamer*.png
%{_datadir}/icons/hicolor/*/apps/applet_streamer.png
%{_datadir}/glib-2.0/schemas/*

#--------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure \
	--enable-gtk=3 \
	--enable-notify=libnotify \
	--enable-gstreamer=1.0

%make V=1

%install
%makeinstall_std

# Do not install doc files: they are handled as rpm doc files.
rm -rf %{buildroot}%{_docdir}

# Remove compiled gschemas rpm filetriggers do this
rm -rf %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3201 |21cr|mate-backgrounds-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE Desktop backgrounds
Name:		mate-backgrounds
Version:	1.26.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	mate-common
BuildArch:	noarch

%description
This module contains a set of backgrounds packaged with the MATE desktop.

%files
%doc AUTHORS COPYING README
%{_datadir}/mate-background-properties/
%{_datadir}/backgrounds/mate/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
NOCONFIGURE=1 ./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3202 |21cr|mate-calc-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE Desktop calculator
Name:		mate-calc
Version:	1.26.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		1.26-calc-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gmodule-export-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mpfr)
BuildRequires:	libmpc-devel

%description
mate-calc is a powerful graphical calculator with financial,
logical and scientific modes. It uses a multiple precision
package to do its arithmetic to give a high degree of accuracy.

%files -f %{name}.lang
%doc AUTHORS COPYING README*
%{_bindir}/mate-calc
%{_bindir}/mate-calc-cmd
%{_bindir}/mate-calculator
%{_datadir}/applications/mate-calc.desktop
%{_datadir}/glib-2.0/schemas/org.mate.calc.gschema.xml
%{_datadir}/metainfo/mate-calc.appdata.xml
%{_datadir}/help/*/mate-calc/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
NOCONFIGURE=1 ./autogen.sh

%configure \
	--disable-schemas-compile
%make

%install
%makeinstall_std

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3203 |21cr|mate-common-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Common files for MATE desktop environment
Name:		mate-common
Version:	1.26.0
Release:	1
License:	GPLv3+
Group:		Graphical desktop/MATE
Url:		http://www.mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gettext-devel
Requires:	automake
Requires:	autoconf
Requires:	gtk-doc
Requires:	intltool
Requires:	m4
BuildArch:	noarch

%description
Binaries for building all MATE desktop sub components.

%files
%{_bindir}/*
%{_datadir}/aclocal/*.m4
%{_datadir}/mate-common
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3204 |21cr|mate-control-center-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 1
%define slab_major 0
%define libname %mklibname mate-window-settings %{major}
%define libslab %mklibname mate-slab %{slab_major}
%define devname %mklibname mate-window-settings -d

Summary:	MATE control center
Name:		mate-control-center
Version:	1.26.0
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
# (fc) display icons when control-center is not started from MATE (Mdk bug #16767)
Patch0:		mate-control-center-1.18.1-menulocation.patch
# (fc) fix markup (GNOME bug #597006) (Fedora)
Patch2:		gnome-control-center-2.31.91-fix-markup.patch
Patch3:		1.26-control-center-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	desktop-file-utils
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	shared-mime-info
BuildRequires:	xml2po
BuildRequires:	xsltproc
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dconf) >= 0.10
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libcaja-extension) >= 1.1.0
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libmarco-private)
BuildRequires:	pkgconfig(libmate-menu)
BuildRequires:	pkgconfig(libmatekbd)
BuildRequires:	pkgconfig(libmatekbdui)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(mate-settings-daemon)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(unique-3.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xxf86misc)

Requires:	gnome-keyring
Recommends:	mate-desktop
Recommends:	mate-settings-daemon >= 1.13.0
Conflicts:	%{_lib}mate-window-settings1 < 1:1.16.0-3

%description
MATE Control-center is a configuration tool for easily setting up your
MATE environment.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%config(noreplace) %{_sysconfdir}/xdg/menus/matecc.menu
%{_bindir}/mate-control-center
%{_bindir}/mate-font-viewer
%{_bindir}/mate-thumbnail-font
%{_bindir}/mate-about-me
%{_bindir}/mate-window-properties
%{_bindir}/mate-network-properties
%{_bindir}/mate-mouse-properties
%{_bindir}/mate-keybinding-properties
%{_bindir}/mate-keyboard-properties
%{_bindir}/mate-display-properties
%{_bindir}/mate-default-applications-properties
%{_bindir}/mate-appearance-properties
%{_bindir}/mate-at-properties
%{_bindir}/mate-typing-monitor
%{_bindir}/mate-time-admin
%{_sbindir}/mate-display-properties-install-systemwide
%{_datadir}/polkit-1/actions/org.mate.randr.policy
%{_iconsdir}/hicolor/*/*/*
%{_datadir}/mate-background-properties
%{_datadir}/applications/*.desktop
%{_datadir}/desktop-directories/*
%{_datadir}/mate-control-center/
%{_datadir}/mate-time-admin/map
%{_datadir}/glib-2.0/schemas/org.mate.control-center.gschema.xml
%{_datadir}/glib-2.0/schemas/org.mate.control-center.keybinding.gschema.xml
%{_datadir}/mime/packages/mate-theme-package.xml
%{_datadir}/thumbnailers/mate-font-viewer.thumbnailer
%{_datadir}/man/man1/*
%{_libdir}/window-manager-settings/libmarco.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MATE control center shared library
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries used by MATE Control Center.

%files -n %{libname}
%doc AUTHORS NEWS README
%{_libdir}/libmate-window-settings.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libslab}
Summary:	MATE control center shared library
Group:		System/Libraries

%description -n %{libslab}
Dynamic libraries used by MATE Control Center.

%files -n %{libslab}
%doc AUTHORS NEWS README
%{_libdir}/libmate-slab.so.%{slab_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for MATE control center
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libslab} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for MATE control center.

%files -n %{devname}
%doc AUTHORS NEWS README
%doc ChangeLog
%{_libdir}/libmate-window-settings.so
%{_libdir}/libmate-slab.so
%{_libdir}/pkgconfig/*
%dir %{_includedir}/mate-window-settings-2.0
%{_includedir}/mate-window-settings-2.0/*
%{_includedir}/libmate-slab

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--disable-schemas-compile \
	--disable-update-mimedb

%make LIBS='-lm -lgmodule-2.0'

%install
%makeinstall_std

for desktopfile in %{buildroot}%{_datadir}/applications/*.desktop
do
	desktop-file-edit --remove-category=MATE --add-category=X-MATE $desktopfile
done

rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache

mkdir -p %{buildroot}%{_datadir}/mate-background-properties

#remove unneeded mateconf file
rm -fr %{buildroot}%{_datadir}/MateConf

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3205 |21cr|mate-icon-theme-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE desktop default icons
Name:		mate-icon-theme
Version:	1.26.0
Release:	1
License:	LGPLv3+
Group:		Graphical desktop/MATE
Url:		http://www.mate-desktop.org/
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	icon-naming-utils >= 0.8.7
BuildRequires:	intltool
BuildRequires:	mate-common
Requires:	hicolor-icon-theme
Requires(post,postun):	gtk-update-icon-cache
BuildArch:	noarch

%description
A collection of icons used as the basis for MATE themes.

%files
%defattr(644,root,root,755)
%doc AUTHORS README
%dir %{_iconsdir}/mate
%{_iconsdir}/mate/index.theme
%{_iconsdir}/mate/[0-9]*x*
%{_iconsdir}/mate/scalable
%ghost %{_iconsdir}/mate/icon-theme.cache

%post
%update_icon_cache mate

%postun
%update_icon_cache mate

#----------------------------------------------------------------------------

%package menta
Summary:	Menta Icon theme for MATE Desktop
Group:		Graphical desktop/MATE
Requires:	%{name} = %{EVRD}
Requires(post,postun):	gtk-update-icon-cache

%description menta
Menta Icon theme for MATE Desktop.

%files menta
%defattr(644,root,root,755)
%dir %{_iconsdir}/menta
%{_iconsdir}/menta/[0-9]*x*
%{_iconsdir}/menta/index.theme
%ghost %{_iconsdir}/menta/icon-theme.cache

%post menta
%update_icon_cache menta

%postun menta
%update_icon_cache menta

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for mate-icon-theme
Group:		Development/GNOME and GTK+

%description devel
Development files for mate-icon-theme.

%files devel
%defattr(644,root,root,755)
%{_datadir}/icons/mate/scalable-up-to-32/status/process-working-symbolic.svg

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-silent-rules \
	--enable-icon-mapping
%make

%install
%makeinstall_std

install -d %{buildroot}%{_datadir}/icons/mate/scalable/{actions,apps,status}
touch %{buildroot}%{_iconsdir}/mate/icon-theme.cache
touch %{buildroot}%{_iconsdir}/menta/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3206 |21cr|mate-icon-theme-faenza-1.20.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE icon theme faenza
Name:		mate-icon-theme-faenza
Version:	1.20.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	icon-naming-utils
BuildRequires:	mate-common
Requires(post,postun):	gtk-update-icon-cache
BuildArch:	noarch

%description
This icon theme uses Faenza and Faience icon themes by ~Tiheum and
some icons customized for MATE by Rowen Stipe.

%files
%doc COPYING AUTHORS
%{_iconsdir}/matefaenza/
%{_iconsdir}/matefaenzagray/
%{_iconsdir}/matefaenzadark/

%post
%update_icon_cache matefaenza
%update_icon_cache matefaenzagray
%update_icon_cache matefaenzadark

%postun
%update_icon_cache matefaenza
%update_icon_cache matefaenzagray
%update_icon_cache matefaenzadark

#----------------------------------------------------------------------------

%prep
%setup -q

%build
NOCONFIGURE=1 ./autogen.sh
%configure

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3207 |21cr|mate-indicator-applet-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE Panel applet indicator
Name:		mate-indicator-applet
Version:	1.26.0
Release:	1
License:	LGPLv2+ and GPLv3
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(indicator3-0.4)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(mate-settings-daemon)
Requires:	mate-panel

%description
A small applet to display information from various applications consistently
in the panel. The indicator applet exposes Ayatana Indicators in the MATE
Panel. Ayatana Indicators are an initiative by Canonical to provide crisp and
clean system and application status indication. They take the form of an icon
and associated menu, displayed (usually) in the desktop panel. Existing
indicators include the Message Menu, Battery Menu and Sound menu.

%files -f %{name}.lang
%doc ChangeLog COPYING
%{_libexecdir}/mate-indicator-applet*
%{_datadir}/dbus-1/services/*.service
%{_datadir}/mate-panel/applets/*.mate-panel-applet
%{_iconsdir}/hicolor/*/*/*

#----------------------------------------------------------------------------

%prep
%setup -q

# update lang ru
msgfmt po/ru.po -o po/ru.gmo

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3208 |21cr|mate-keyring-1.6.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname -d %{name}

Summary:        Framework for managing passwords and other secrets
Name:           mate-keyring
Version:        1.6.1
Release:        4
License:        GPLv2+ and LGPLv2+
Group:          Networking/Remote access
URL:            http://mate-desktop.org
Source0:        http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz

BuildRequires: gtk-doc
BuildRequires: libcap-devel
BuildRequires: libgcrypt-devel
BuildRequires: pkgconfig(dbus-1) >= 1.0
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libtasn1)
BuildRequires: libtasn1-tools
BuildRequires: mate-common
BuildRequires: pam-devel
BuildRequires: intltool

%description
The mate-keyring session daemon manages passwords and other types of
secrets for the user, storing them encrypted with a main password.
Applications can use the mate-keyring library to integrate with the keyring.

%package -n %{libname}
Summary: Library files for mate-keyring
License: LGPLv2+
Group:   System/Libraries 

%description -n %{libname}
This package contain the library files for %{name}

%package -n %{develname}
Summary:        Development files for %{name}
Group:          Development/C 
Requires:       %{libname} = %{version}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the libraries and
header files needed to develop applications that use mate-keyring.

%prep
%setup -q

%build
%configure \
   --disable-static                    \
   --with-gtk=3.0                      \
   --disable-schemas-compile           \
   --with-pam-dir=/%{_lib}/security/   \
   --with-root-certs=%{_sysconfdir}/pki/tls/certs

%make LIBS='-lgmodule-2.0'

%install
%makeinstall_std

%find_lang %{name}


%files -f %{name}.lang
%doc AUTHORS NEWS README COPYING COPYING.LIB
%{_bindir}/mate-keyring
%{_bindir}/mate-keyring-3
%attr(755,root,root) %{_bindir}/mate-keyring-daemon
%{_sysconfdir}/xdg/autostart/mate-keyring-pkcs11.desktop
%{_sysconfdir}/xdg/autostart/mate-keyring-secrets.desktop
%{_sysconfdir}/xdg/autostart/mate-keyring-ssh.desktop
%{_sysconfdir}/xdg/autostart/mate-keyring-gpg.desktop
%{_libexecdir}/mate-keyring-prompt-3
%{_libexecdir}/mate-keyring-prompt
%{_datadir}/dbus-1/services/*.service
%{_datadir}/mategcr-3/
%{_datadir}/mate-keyring-3/
%{_datadir}/MateConf/gsettings/*.convert
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/gtk-doc/html/gck/*
%{_datadir}/gtk-doc/html/gcr-3/*
%{_mandir}/man1/mate-keyring-daemon.1.xz
%{_mandir}/man1/mate-keyring.1.xz

%files -n %{libname}
%{_libdir}/libmategck.so.%{major}*
%{_libdir}/libmategcr-3.so.%{major}*
%{_libdir}/mate-keyring/
%{_libdir}/pkcs11/mate-keyring-pkcs11.so
/%{_lib}/security/pam_mate_keyring.so

%files -n %{develname}
%{_includedir}/mategcr-3/
%{_includedir}/mate-gck/
%{_includedir}/gck/
%{_libdir}/libmategck.so
%{_libdir}/libmategcr-3.so
%{_libdir}/pkgconfig/mate-gck-0.pc
%{_libdir}/pkgconfig/mate-gcr-3.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3209 |21cr|mate-languages-flags-0.0-0.gitbed72f.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit bed72fa7ef61fa70ed41d2b68790b7ed992fd0b9
%define commit_short %(echo %{commit} | head -c 6)
%define upstream_name Mate-Languages-Flags

Summary:	Language flags for MATE Desktop
Summary(ru_RU.UTF-8):	Флаги языков для рабочего стола MATE
Name:		mate-languages-flags
Version:	0.0
Release:	0.git%{commit_short}.2
License:	GPLv3
Group:		Graphical desktop/MATE
Url:		https://github.com/griha41/Mate-Languages-Flags
Source0:	https://github.com/griha41/Mate-Languages-Flags/archive/%{commit}.tar.gz?/%{upstream_name}-%{commit}.tar.gz
Source1:	mate-languages-flags.desktop
Requires:	mate-icon-theme
Recommends:	mate-languages-flags-autostart
BuildArch:	noarch

%description
This package contains country flags to display the input
language selection on the MATE panel instead of text

GUI-way:
 Run dconf-editor (or install it 'sudo dnf install dconf-editor' and then run it)
 Then go to section: org->mate->desktop->peripherals->keyboard->indicator
 Switch key “show-flags” from "false" to "true"

Terminal:
 gsettings set org.mate.peripherals-keyboard-xkb.indicator show-flags true

If you want disable it set back to false!

%description -l ru_RU.UTF-8
Этот пакет содержит флаги стран для отображения выбора языка ввода на панели MATE вместо текста

Графический интерфейс:
 Запустите dconf-editor (или установите его "sudo dnf install dconf-editor" и запустите)
 Затем перейдите в раздел: org->mate->desktop->peripherals->keyboard->indicator
 Переключите ключ “show-flags” с "ложь/false" на "истина/true"

Терминал:
gsettings set org.mate.peripherals-keyboard-xkb.indicator show-flags true

Если вы хотите отключить флаги, установите обратно значение ложь/false!

%files
%doc README.md
%license LICENSE
%dir %{_iconsdir}/flags
%{_iconsdir}/flags/*.png

#------------------------------------------------------------------------------
%package autostart
Summary:	System-wide autorun for %{name}
Summary(ru_RU.UTF-8):	Общесистемный автозапуск для %{name}
Group:		Graphical desktop/MATE
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description autostart
This package contains .desktop system-wide autorun file for %{name}.

%description autostart -l ru_RU.UTF-8
Этот пакет содержит .desktop файл общесистемного автозапуска для %{name}. 

%files autostart
%{_sysconfdir}/xdg/autostart/%{name}.desktop

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{upstream_name}-%{commit}

%build

%install
mkdir -p %{buildroot}%{_iconsdir}/flags
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
install -pm 644 flags/*.png %{buildroot}%{_iconsdir}/flags/
install -pm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/autostart/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3210 |21cr|mate-media-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE media programs
Name:		mate-media
Version:	1.26.0
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		1.26-mate-media-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libmatemixer)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(unique-3.0)
Recommends:	marco
Recommends:	mate-desktop
Recommends:	mate-settings-daemon

%description
Media utilities for the MATE desktop, including an audio mixer.

%files -f %{name}.lang
%doc AUTHORS README ChangeLog
%config(noreplace) %{_sysconfdir}/xdg/autostart/mate-volume-control-status-icon.desktop
%{_bindir}/mate-volume-control
%{_bindir}/mate-volume-control-status-icon
%{_libexecdir}/mate-volume-control-applet
%{_datadir}/dbus-1/services/org.mate.panel.applet.GvcAppletFactory.service
%{_datadir}/mate-media/
%{_datadir}/mate-panel/applets/org.mate.applets.GvcApplet.mate-panel-applet
%{_datadir}/applications/mate-volume-control.desktop
%{_datadir}/sounds/mate/
%{_mandir}/man1/mate-volume-control.1.*
%{_mandir}/man1/mate-volume-control-status-icon.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
%configure \
	--disable-static \
	--disable-schemas-compile
%make

%install
%makeinstall_std

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3211 |21cr|mate-menu-22.04.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced Menu for the MATE Desktop
Name:		mate-menu
Version:	22.04.2
Release:	4
Group:		Graphical desktop/MATE
# mate_menu/keybinding.py use MIT license and the rest is under GPLv2+
License:	GPLv2+ and MIT
Url:		https://github.com/ubuntu-mate/mate-menu
Source0:	https://github.com/ubuntu-mate/%{name}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	applications.list.in
Source2:	yandex.png
Patch1:         mate-menu_adjust-package-manager.patch
Patch2:			mate-menu-22.04.2-ru-yandex.patch
Patch3:         mate-menu-22.04.2-ru.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	python3-distutils-extra
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(python3)
Recommends:	mate-menus >= 1.16.0
Recommends:	mate-panel >= 1.16.0
Recommends:	mozo
Requires:	python3-configobj
Requires:	python3-gobject
Requires:	python3-pyxdg
Requires:	python3-setproctitle
Requires:	python3-xlib
Requires:	typelib(MatePanelApplet)
Requires:	xdg-utils
BuildArch:	noarch

%description
An advanced menu for MATE. Supports filtering, favorites, auto-session,
and many other features. This menu originated in the Linux Mint
distribution and has been ported to other distributions that ship
the MATE Desktop Environment.

%files -f %{name}.lang
%doc COPYING README.md
%{_bindir}/%{name}
%{_prefix}/lib/%{name}/
%{_datadir}/%{name}/
%{_datadir}/glib-2.0/schemas/org.mate.mate-menu*.gschema.xml
%{_datadir}/mate-panel/applets/org.mate.panel.MateMenuApplet.mate-panel-applet
%{_datadir}/dbus-1/services/org.mate.panel.applet.MateMenuAppletFactory.service
%{_mandir}/man1/mate-menu.1.*
%{python3_sitelib}/mate_menu/
%{python3_sitelib}/mate_menu-*.egg-info/

#----------------------------------------------------------------------------

%prep
%setup -q

%apply_patches
#%patch1 -p1 -b .adjust-package-manage
#%patch2 -p1 -b .mate-menu-22.04.2-ru

# Install our applications.list
rm -fr data/applications.list
install -m 644 %{SOURCE1} data/applications.list
touch %{buildroot} data/icons/yandex.png
install -m 644 %{SOURCE2} data/icons/yandex.png

%build
%__python3 setup.py build

%install
%__python3 setup.py install --root=%{buildroot}

# avoid rpmlint invalid-lc-messages-dir and incorrect-locale-subdir errors
rm -rf %{buildroot}%{_datadir}/locale/ber
rm -rf %{buildroot}%{_datadir}/locale/es_419/LC_MESSAGES/mate-menu.mo
rm -rf %{buildroot}%{_datadir}/locale/es_419/LC_MESSAGES/mate-menu.mo
rm -rf %{buildroot}%{_datadir}/locale/nah/LC_MESSAGES/mate-menu.mo
rm -rf %{buildroot}%{_datadir}/locale/zh-Hans/LC_MESSAGES/mate-menu.mo
rm -rf %{buildroot}%{_datadir}/locale/zh-Hans/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3212 |21cr|mate-neru-canta-theme-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Rosa-Mate themes
Name:		mate-neru-canta-theme
Version:	1.6
Release:	1
License:	GPLv2
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/mate-neru-canta-theme/
Source0:	https://github.com/chistota/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary}

%files
%doc Neru-canta-blue-dark/{AUTHORS,COPYING}
%{_datadir}/themes/Neru-canta-blue-dark/
%{_datadir}/themes/Neru-canta-blue-light/
%{_datadir}/themes/Neru-canta-green-dark/
%{_datadir}/themes/Neru-canta-green-light/
%{_datadir}/themes/Neru-canta-yellow-dark/
%{_datadir}/themes/Neru-canta-yellow-light/
#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install

install -d %{buildroot}%{_datadir}/themes/
cp -R * %{buildroot}%{_datadir}/themes/
rm -f %{buildroot}%{_datadir}/themes/*/{AUTHORS,COPYING}

find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3213 |21cr|mate-neru-icon-classic-theme-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mate icons themes
Name:		mate-neru-icon-classic-theme
Version:	1.6
Release:	1
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/mate-neru-icon-classic-theme/
Source0:	https://github.com/chistota/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary}

%files
%doc AUTHORS LICENSE README.md
%{_iconsdir}/neru-mate-blue-light/
%{_iconsdir}/neru-mate-green-light/
%{_iconsdir}/neru-mate-blue-dark/
%{_iconsdir}/neru-mate-green-dark/

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
rm -f */*/*/.directory
find . -type f -exec chmod 0644 {} \;
find . -type d -exec chmod 0755 {} \;

install -d %{buildroot}%{_iconsdir}/
cp -R {neru-mate-blue-light,neru-mate-green-light,neru-mate-blue-dark,neru-mate-green-dark} %{buildroot}%{_iconsdir}/
rm -f %{buildroot}%{_iconsdir}/{AUTHORS,LICENSE,README.md,screenshot.svg}

find %{buildroot} -type l | grep -v svg && Need to fix dirs
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3214 |21cr|mate-netbook-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE Desktop window management tool
Name:		mate-netbook
Version:	1.26.0
Release:	1
License:	GPLv3+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libfakekey)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(unique-3.0)
BuildRequires:	pkgconfig(xtst)
Recommends:	mate-panel

%description
This package provides a simple window management tool which provides the
following functionality:
 * Allow to set basic rules for window types;
 * Allow exceptions to the rules based on string matching for window
   name and window class;
 * Allows reversing of rules when the user manually changes something;
 * Re-decorates windows on un-maximize

%files -f %{name}.lang
%doc ChangeLog README COPYING
%config %{_sysconfdir}/xdg/autostart/mate-maximus-autostart.desktop
%dir %{_libexecdir}/%{name}
%{_bindir}/mate-maximus
%{_libexecdir}/%{name}/mate-window-picker-applet
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/mate-panel/
%{_mandir}/man1/mate-maximus.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--libexecdir=%{_libexecdir}/%{name}

%make LIBS='-lm'

%install
%makeinstall_std

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3215 |21cr|mate-notification-daemon-1.26.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _libexecdir %{_prefix}/libexec

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Mate Notification Daemon
Name:		mate-notification-daemon
Version:	1.26.0
Release:	5
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org/
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:	    mate-notification-daemon_rus.patch
Patch1:	    mate-notification-daemon_ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	mate-common
BuildRequires:	xml2po
BuildRequires:	glib-gettextize
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(x11)
Recommends:	notification-daemon-engine-nodoka
Provides:	virtual-notification-daemon
Conflicts:	xfce4-notifyd

%description
Notification daemon for MATE Desktop.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_bindir}/mate-notification-properties
%{_datadir}/applications/mate-notification-properties.desktop
%{_datadir}/dbus-1/services/org.freedesktop.mate.Notifications.service
%{_datadir}/dbus-1/services/org.mate.panel.applet.MateNotificationAppletFactory.service
%{_datadir}/mate-panel/applets/org.mate.applets.MateNotificationApplet.mate-panel-applet
%{_libexecdir}/mate-notification-daemon
%{_libexecdir}/mate-notification-applet
%{_datadir}/icons/hicolor/*/apps/mate-notification-properties.*
%{_datadir}/glib-2.0/schemas/org.mate.NotificationDaemon.gschema.xml
%{_libdir}/mate-notification-daemon
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-schemas-compile \
	--disable-static

%make V=1

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3216 |21cr|mate-polkit-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define api 1
%define gi_major 1.0
%define libname %mklibname polkit-gtk-mate %{api} %{major}
%define devname %mklibname -d polkit-gtk-mate
%define girname %mklibname polkitgtkmate-gir %{gi_major}

Summary:	PolicyKit integration for the MATE desktop
Name:		mate-polkit
Version:	1.26.0
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(appindicator3-0.1)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
Provides:	polkit-agent
Provides:	polkit-mate = %{version}
# in > v1.20.0
Provides:	%{libname} = %{EVRD}
Provides:	%{devname} = %{EVRD}
Provides:	%{girname} = %{EVRD}
Obsoletes:	%{libname} < %{EVRD}
Obsoletes:	%{devname} < %{EVRD}
Obsoletes:	%{girname} < %{EVRD}

%description
mate-polkit provides an authentication agent for PolicyKit
that matches the look and feel of the MATE desktop.

%files -f %{name}.lang
%doc COPYING AUTHORS README
%config(noreplace) %{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop
%{_libexecdir}/polkit-mate-authentication-agent-1

#--------------------------------------------------------------------------

%prep
%setup -q

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--enable-accountsservice \
	--enable-appindicator

%make

%install
%makeinstall_std

sed -i 's,@FULL_LIBEXECDIR@,%{_libexecdir},' %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-mate-authentication-agent-1.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3217 |21cr|mate-power-manager-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE Power Manager
Name:		mate-power-manager
Version:	1.26.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://pub.mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		mate-power-manager-1.12.1-rosa-power.patch
Patch1:		power-lang-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	docbook-utils
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	which
BuildRequires:	xml2po
BuildRequires:	xmlto
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(unique-3.0)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
Recommends:	mate-icon-theme
Requires:	upower

%description
MATE Power Manager uses the information and facilities provided by UPower
displaying icons and handling user callbacks in an interactive MATE session.

%files  -f %{name}.lang
%doc AUTHORS COPYING README
%{_mandir}/man1/*
%{_bindir}/mate-power-manager
%{_bindir}/mate-power-preferences
%{_bindir}/mate-power-statistics
%{_sbindir}/mate-power-backlight-helper
%{_datadir}/applications/mate-*.desktop
%dir %{_datadir}/dbus-1/services
%{_datadir}/dbus-1/services/*.service
%{_datadir}/mate-power-manager/
%{_datadir}/icons/hicolor/*/apps/mate-*.*
%{_datadir}/polkit-1/actions/org.mate.power.policy
%{_datadir}/mate-panel/applets/org.mate.BrightnessApplet.mate-panel-applet
%{_datadir}/mate-panel/applets/org.mate.InhibitApplet.mate-panel-applet
%{_datadir}/glib-2.0/schemas/org.mate.power-manager.gschema.xml
%{_sysconfdir}/xdg/autostart/mate-power-manager.desktop
%{_libexecdir}/mate-brightness-applet
%{_libexecdir}/mate-inhibit-applet

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
# Not needed >= 1.6.1 version
# NOCONFIGURE=1 ./autogen.sh
%configure \
	--enable-docbook-docs \
	--enable-applets \
	--with-doc-dir=%{buildroot}%{_datadir}/doc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3218 |21cr|mate-screensaver-1.26.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE Screensaver
Name:		mate-screensaver
Version:	1.26.1
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://pub.mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		mate-screensaver-1.12.0-rosa.patch
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	xml2po
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libmate-menu)
BuildRequires:	pkgconfig(libmatekbdui)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xxf86misc)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	dbus-x11
Recommends:	mate-backgrounds
Recommends:	mate-desktop
Recommends:	mate-power-manager
#Suggests:	mate-keyring

%description
mate-screensaver is a screen saver and locker that aims to have
simple, sane, secure defaults and be well integrated with the desktop.

%files -f %{name}.lang
%doc AUTHORS NEWS README COPYING
%{_bindir}/mate-screensaver*
%config(noreplace) %{_sysconfdir}/pam.d/mate-screensaver
%config(noreplace) %{_sysconfdir}/xdg/menus/mate-screensavers.menu
%{_sysconfdir}/xdg/autostart/mate-screensaver.desktop
%{_libexecdir}/mate-screensaver-*
%{_libexecdir}/mate-screensaver
%{_datadir}/applications/mate-screensaver-preferences.desktop
%{_datadir}/applications/screensavers/*.desktop
%{_datadir}/mate-screensaver
%{_datadir}/backgrounds/cosmos/
%{_datadir}/pixmaps/*.svg
%{_datadir}/desktop-directories/mate-screensaver.directory
%{_datadir}/glib-2.0/schemas/org.mate.screensaver.gschema.xml
%{_datadir}/mate-background-properties/cosmos.xml
%{_datadir}/dbus-1/services/org.mate.ScreenSaver.service
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for mate-screensaver
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{EVRD}

%description devel
Development files for mate-screensaver.

%files devel
%doc AUTHORS NEWS README COPYING
%{_libdir}/pkgconfig/mate-screensaver.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-more-warnings \
	--with-xscreensaverdir=%{_datadir}/xscreensaver/config \
	--with-xscreensaverhackdir=%{_libdir}/xscreensaver

%make

%install
%makeinstall_std

sed -ie 's@XSL=${DIST_BIN}/xscreensaver-config.xsl@XSL=%{_datadir}/mate-screensaver/xscreensaver-config.xsl@' \
	data/migrate-xscreensaver-config.sh
sed -ie 's@b=`basename ${FILE} .xml`@b=xscreensaver-`basename ${FILE} .xml`@' \
	data/migrate-xscreensaver-config.sh

install -m755 data/migrate-xscreensaver-config.sh %{buildroot}%{_datadir}/mate-screensaver
install -m644 data/xscreensaver-config.xsl %{buildroot}%{_datadir}/mate-screensaver

%find_lang %{name} --with-gnome

%triggerin -- xscreensaver-base xscreensaver-gl xscreensaver-extrusion xscreensaver-matrix
(  cd %{_datadir}/applications/screensavers ; \
for f in %{_datadir}/xscreensaver/config/*.xml; do
	%{_datadir}/mate-screensaver/migrate-xscreensaver-config.sh $f > /dev/null 2>&1
done)

%triggerun -- xscreensaver-base
[ "$2" = 0 ] || exit 0
(cd %{_datadir}/applications/screensavers; \
for f in $(rpm -ql xscreensaver-base | grep '%{_datadir}/xscreensaver/config/'); do
	rm -f xscreensaver-$(basename $f .xml).desktop
done)

%triggerun -- xscreensaver-gl
[ "$2" = 0 ] || exit 0
(cd %{_datadir}/applications/screensavers; \
for f in $(rpm -ql xscreensaver-gl | grep '%{_datadir}/xscreensaver/config/'); do
	rm -f xscreensaver-$(basename $f .xml).desktop
done)

%triggerun -- xscreensaver-extrusion
[ "$2" = 0 ] || exit 0
(cd %{_datadir}/applications/screensavers; \
for f in $(rpm -ql xscreensaver-extrusion | grep '%{_datadir}/xscreensaver/config/'); do
	rm -f xscreensaver-$(basename $f .xml).desktop
done)

%triggerun -- xscreensaver-matrix
[ "$2" = 0 ] || exit 0
(cd %{_datadir}/applications/screensavers; \
for f in $(rpm -ql xscreensaver-matrix | grep '%{_datadir}/xscreensaver/config/'); do
	rm -f xscreensaver-$(basename $f .xml).desktop
done)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3219 |21cr|mate-sensors-applet-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _libexecdir %{_exec_prefix}/libexec

%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Detailed hardware monitoring applet for MATE
Name:		mate-sensors-applet
Version:	1.26.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		sensors-applet-2.2.3-fix-linkage.patch
Patch1:		desktop-description-ru.patch
Patch2:		1.26-sensors-applet-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	xsltproc
BuildRequires:	yelp-tools
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libatasmart)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(libnotify)

%description
MATE Sensors Applet is an applet for the MATE Panel to display readings
from hardware sensors, including CPU and system temperatures, fan speeds and
voltage readings under Linux.

Interfaces via the Linux kernel i2c modules.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_libexecdir}/mate-sensors-applet
%{_libdir}/mate-sensors-applet/
%{_datadir}/mate-sensors-applet/ui/
%{_datadir}/help/*/mate-sensors-applet/*
%{_datadir}/pixmaps/mate-sensors-applet/
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/dbus-1/services/org.mate.panel.applet.SensorsAppletFactory.service
%dir %{_datadir}/glib-2.0/schemas
%{_datadir}/glib-2.0/schemas/*.xml
%dir %{_datadir}/mate-panel/applets
%{_datadir}/mate-panel/applets/org.mate.applets.SensorsApplet.mate-panel-applet

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc AUTHORS NEWS README
%{_libdir}/libmate-sensors-applet-plugin.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc AUTHORS NEWS README
%doc ChangeLog
%{_includedir}/mate-sensors-applet/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
%configure \
	--disable-static \
	--enable-libnotify \
	--with-nvidia

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3220 |21cr|mate-session-manager-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The mate desktop programs for the MATE GUI desktop environment
Name:		mate-session-manager
Version:	1.26.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{lua: print (string.match(rpm.expand("%{version}"),"%d+.%d+"))}/%{name}-%{version}.tar.xz
Source1:	startmate
Source2:	materc
BuildRequires:	autoconf-archive
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtrans)
BuildRequires:	pkgconfig(xtst)

Requires:	desktop-common-data
Recommends:	mate-settings-daemon
Requires:	%{name}-bin >= %{EVRD}

%description
MATE (GNU Network Object Model Environment) is a user-friendly
set of applications and desktop tools to be used in conjunction with a
window manager for the X Window System.

The MATE Session Manager restores a set session (group of applications)
when you log into MATE.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/mate-session-inhibit
%{_bindir}/mate-session-properties
%{_bindir}/mate-session-save
%{_bindir}/mate-wm
%{_libexecdir}/mate-session-check-accelerated
%{_libexecdir}/mate-session-check-accelerated-gl-helper
%{_libexecdir}/mate-session-check-accelerated-gles-helper
%{_datadir}/applications/*
%{_datadir}/xsessions/mate.desktop
%{_mandir}/man1/mate-session-inhibit.*
%{_mandir}/man1/mate-session-properties.*
%{_mandir}/man1/mate-session-save.*
%{_mandir}/man1/mate-wm.1.xz

#----------------------------------------------------------------------------

%package bin
Summary:	The mate desktop programs for the MATE GUI desktop environment
Group:		Graphical desktop/MATE

%description bin
This package contains the binaries for the MATE Session Manager, but 
no startup scripts. It is meant for applications such as GDM that use 
mate-session internally.

%files bin
%{_datadir}/glib-2.0/schemas/org.mate.session.gschema.xml
%{_sysconfdir}/materc
%{_bindir}/mate-session
%{_bindir}/startmate
%{_datadir}/mate-session-manager
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/mate-session.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--enable-upower \
	--with-systemd \
	--disable-schemas-compile \
	--with-default-wm=marco \
	--enable-ipv6
	
%make

%install
%makeinstall_std
rm -f %{buildroot}%{_datadir}/doc/mate-session/dbus/mate-session.html

install -D -m 755 %{SOURCE1} %{buildroot}%{_bindir}/startmate
install -D -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/materc

sed -i -e "0,/Exec=mate-session/ s/Exec=mate-session/Exec=startmate/" %{buildroot}%{_datadir}/xsessions/mate.desktop

%find_lang %{name}

%post
if [ "$1" = "2" -a -r /etc/sysconfig/desktop ]; then
	sed -i -e "s|^DESKTOP=Mate$|DESKTOP=MATE|g" %{_sysconfdir}/sysconfig/desktop
fi

%posttrans
if [ "$1" -eq 1 ]; then
	if [ -e %{_datadir}/xsessions/10MATE.desktop ]; then
		rm -rf %{_datadir}/xsessions/10MATE.desktop
	fi
fi


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3221 |21cr|mate-settings-daemon-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _libexecdir %{_exec_prefix}/libexec

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE Desktop settings daemon
Name:		mate-settings-daemon
Version:	1.26.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch1:		mate-settings-daemon-1.12.1-touchpad.patch
BuildRequires:	autoconf-archive
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libmatekbd)
BuildRequires:	pkgconfig(libmatemixer)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
Requires:	mate-icon-theme

%description
MATE settings daemon manages the configuration of the desktop in the
background.

%files -f %{name}.lang
%doc AUTHORS README ChangeLog
%config(noreplace) %{_sysconfdir}/xdg/autostart/mate-settings-daemon.desktop
%{_libdir}/%{name}/liba11y-keyboard.so
%{_libdir}/%{name}/liba11y-settings.so
%{_libdir}/%{name}/libkeybindings.so
%{_libdir}/%{name}/libmpris.so
%{_libdir}/%{name}/libxrandr.so
%{_libdir}/%{name}/libbackground.so
%{_libdir}/%{name}/libkeyboard.so
%{_libdir}/%{name}/libsmartcard.so
%{_libdir}/%{name}/libxrdb.so
%{_libdir}/%{name}/libclipboard.so
%{_libdir}/%{name}/libxsettings.so
%{_libdir}/%{name}/libhousekeeping.so
%{_libdir}/%{name}/libmouse.so
%{_libdir}/%{name}/libtyping-break.so
%{_libdir}/%{name}/libmedia-keys.so
%{_libdir}/%{name}/libsound.so
%{_libdir}/%{name}/librfkill.so
%{_libdir}/%{name}/*.mate-settings-plugin
%{_libexecdir}/*
%{_datadir}/dbus-1/services/org.mate.SettingsDaemon.service
%{_datadir}/dbus-1/system-services/org.mate.SettingsDaemon.DateTimeMechanism.service
%{_datadir}/dbus-1/system.d/org.mate.SettingsDaemon.DateTimeMechanism.conf
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/%{name}
%{_datadir}/mate-control-center/keybindings/*
%{_datadir}/glib-2.0/schemas/org.mate.*.xml
%{_datadir}/polkit-1/actions/org.mate.settingsdaemon.datetimemechanism.policy
%{_mandir}/man1/mate-settings-daemon.1*
%{_mandir}/man1/msd-datetime-mechanism.1.xz
%{_mandir}/man1/msd-locate-pointer.1.xz
%{_sysconfdir}/xrdb/*
%{_prefix}%{_udevrulesdir}/61-mate-settings-daemon-rfkill.rules

#----------------------------------------------------------------------------

%package devel
Summary:	Include files for the MATE settings daemon
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{EVRD}

%description devel
Include files for the MATE settings daemon.

%files devel
%doc AUTHORS README ChangeLog
%{_includedir}/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-polkit \
	--enable-pulse \
	--enable-profiling \
	--with-gtk=3.0 \
	--with-nssdb
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3222 |21cr|mate-system-monitor-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Simple process monitor for MATE
Name:		mate-system-monitor
Version:	1.26.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		1.26-system-monitor-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd412-xml
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	xml2po
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(giomm-2.4)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
Requires:	polkit-agent

%description
mate-system-monitor allows to graphically view and manipulate the
running processes on your system. It also provides an overview of
available resources such as CPU and memory.

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS NEWS README
%attr(755,root,root) %{_bindir}/%{name}
%{_metainfodir}/mate-system-monitor.appdata.xml
%{_datadir}/applications/mate-system-monitor.desktop
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/pixmaps/mate-system-monitor/*
%{_datadir}/polkit-1/actions/org.mate.mate-system-monitor.policy
%{_libexecdir}/mate-system-monitor/msm-kill
%{_libexecdir}/mate-system-monitor/msm-renice
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--enable-compile-warnings=minimum \
	--enable-systemd

%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3223 |21cr|mate-terminal-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define _disable_rebuild_configure 1

Summary:	MATE terminal emulator
Name:		mate-terminal
Version:	1.26.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
# (fc) add -geometry support
Patch0:		gnome-terminal-2.25.3-geometry.patch
# (fc) change default background (grey on black)
Patch1:		gnome-terminal-2.10.0-background.patch
Patch2:		mate-terminal-1.18.0-rosa-scheme.patch
BuildRequires:	autoconf-archive
BuildRequires:	docbook-dtd412-xml
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	rarian
BuildRequires:	xml2po
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(x11)
Requires:	mate-desktop

%description
Mate-terminal is a terminal emulator for MATE. It supports translucent
backgrounds, opening multiple terminals in a single window (tabs) and
clickable URLs.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README ChangeLog
%{_mandir}/man1/*
%{_bindir}/mate-terminal
%{_bindir}/mate-terminal.wrapper
%{_metainfodir}/mate-terminal.appdata.xml
%{_datadir}/applications/mate-terminal.desktop
%{_datadir}/glib-2.0/schemas/org.mate.terminal.gschema.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
%makeinstall_std
rm -rf %{buildroot}/var

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-only-show-in="MATE" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3224 |21cr|mate-themes-3.22.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE Desktop themes
Name:		mate-themes
# Should match GTK3 major version
Version:	3.22.22
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/themes/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	icon-naming-utils
BuildRequires:	mate-common
BuildRequires:	pkgconfig(gtk-engines-2)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	gnome-themes-standard
Requires:	gtk-engines2
Requires:	gtk-unico-engine
Requires:	mate-icon-theme
Requires:	murrine
BuildArch:	noarch

%description
This packages contains themes for MATE.

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS README
%{_datadir}/themes/BlackMATE
%{_datadir}/themes/BlackMATE-border
%{_datadir}/themes/Blue-Submarine
%{_datadir}/themes/Blue-Submarine-border
%{_datadir}/themes/BlueMenta
%{_datadir}/themes/BlueMenta-border
%{_datadir}/themes/Green-Submarine
%{_datadir}/themes/Green-Submarine-border
%{_datadir}/themes/GreenLaguna
%{_datadir}/themes/GreenLaguna-border
%{_datadir}/themes/Menta
%{_datadir}/themes/Menta-border
%{_datadir}/themes/Shiny
%{_datadir}/themes/TraditionalGreen
%{_datadir}/themes/TraditionalOk
%{_iconsdir}/mate/cursors
%{_iconsdir}/mate-black/cursors
%{_iconsdir}/mate-black/index.theme

#----------------------------------------------------------------------------

%package accessibility
Summary:	Accessibility themes for MATE environment
Group:		Graphical desktop/MATE
Requires:	%{name}

%description accessibility
This packages contains themes for MATE.


%files accessibility
%defattr(644,root,root,755)
%{_datadir}/themes/HighContrast
%{_datadir}/themes/HighContrastInverse
%{_datadir}/themes/ContrastHigh
%{_iconsdir}/ContrastHigh

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--build=%{_host}

%make

%install
%makeinstall_std
%makeinstall_std -C po

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3225 |21cr|mate-tweak-22.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mate-tweak
Version:	22.10.0
Release:	1
Summary:	Mate desktop configuration tool
License:	GPL-2.0
Group:		Graphical desktop/MATE
URL:		https://bitbucket.org/ubuntu-mate/mate-tweak
Source0:	https://github.com/ubuntu-mate/mate-tweak/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Extracted from https://launchpad.net/ubuntu/+archive/primary/+files/ubuntu-mate-settings_16.10.7.tar.xz
# with additions of mageia-fresh, maggy and maggy-fresh layouts
Source1:	panel-layouts.tar.xz
Patch1:		mate-tweak-18.04.13-mga-fix_applet_paths.patch

BuildArch:	noarch

BuildRequires:	python3-setuptools
BuildRequires:	python3-distutils-extra
BuildRequires:	intltool
Requires:	python3-psutil
Requires:	python3-setproctitle

%description
Configures some aspects of the MATE desktop not exposed via the
MATE Control Center applets.

Settings that can be handled via MATE Tweak:
 * Show/hide standard desktop icons.
 * Panel fine-tuning (icon visibility, in menus and on buttons,
   icon size, button labelling, contex menus, etc.).
 * Window manager fine-tuning.

%files -f %name.lang
%doc README.md
%{_bindir}/*
%{_libexecdir}/%{name}
%{python3_sitelib}/*egg-info
%{_datadir}/applications/*
%{_mandir}/man1/*.1.*
%{_datadir}/polkit-1/actions/*
%{_datadir}/mate-panel/layouts/

#-----------------------------------------------------
%prep
%autosetup -p1 -a1

# Change installation location to libexec
for i in "mate-tweak data/org.mate.mate-tweak.policy"; do
    sed -i "s|/usr/lib/mate-tweak|/usr/libexec/mate-tweak|g" $i
done

sed -i "s|/lib/mate-tweak|/libexec/mate-tweak|g" setup.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_datadir}/mate-panel/layouts
cp -f panel-layouts/*.layout %{buildroot}%{_datadir}/mate-panel/layouts/

%find_lang %{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3226 |21cr|mate-user-admin-1.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name user-admin

Summary:	User management tool
Name:		mate-user-admin
Version:	1.6.0
Release:	2
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://github.com/zhuyaliang/%{real_name}
Source0:	https://github.com/zhuyaliang/%{real_name}/archive/refs/tags/%{version}.tar.gz?/%{real_name}-%{version}.tar.gz
Patch0:		language-ru.patch
Patch1:		user-admin-1.6.0-meson-fix.patch
BuildRequires:	meson
BuildRequires:	pkgconfig(accountsservice)
BuildRequires:	pkgconfig(group-service)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(pwquality)
Requires:	%{_lib}group-service1

%description
User management tool.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_bindir}/mate-user-admin
%dir %{_sysconfdir}/mate-user-admin
%config %{_sysconfdir}/mate-user-admin/nuconfig
%{_datadir}/applications/mate-user-admin.desktop
%{_metainfodir}/mate-user-admin.appdata.xml
%dir %{_datadir}/mate-user-admin/face
%{_datadir}/mate-user-admin/face/{*.png,*.jpg}
%dir %{_datadir}/mate-user-admin/icon
%{_datadir}/mate-user-admin/icon/user-admin.png
%{_iconsdir}/hicolor/*/apps/user-admin.png
%{_datadir}/polkit-1/actions/org.mate.user.admin.policy

#------------------------------------------------------------------

%prep
%setup -qn %{real_name}-%{version}
%patch0 -p1
%patch1 -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3227 |21cr|mate-user-guide-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Mate Desktop user guide and docs
Name:		mate-user-guide
Version:	1.26.0
Release:	1
License:	CC-BY-SA
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	yelp-tools
Requires:	yelp
Recommends:	mate-desktop >= 1.9.0
Conflicts:	mate-desktop < 1.9.0
BuildArch:	noarch

%description
This package contains documents about MATE Desktop for end users.

%files -f %{name}.lang
%{_datadir}/applications/%{name}.desktop
%{_datadir}/help/*/mate-user-guide/figures/*.png
%{_datadir}/help/*/mate-user-guide/index.docbook
%{_datadir}/help/*/mate-user-guide/*.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3228 |21cr|mate-user-share-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	MATE  user file sharing
Name:		mate-user-share
Version:	1.26.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	hicolor-icon-theme
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	mate-common
BuildRequires:	yelp-tools
BuildRequires:	perl(XML::Parser)
BuildRequires:	apache-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gdk-x11-3.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcaja-extension)
BuildRequires:	pkgconfig(libcanberra-gtk)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(unique-3.0)
Recommends:	apache
Recommends:	apache-mod_dnssd

%description
This program enables user to share directories through Webdav.

This package does not provide bluetooth support. Use a generic
tool to get bluetooth support.

%files -f %{name}.lang
%doc ChangeLog README
%config(noreplace) %{_sysconfdir}/xdg/autostart/mate-user-share-webdav.desktop
%{_bindir}/mate-file-share-properties
%{_libexecdir}/%{name}
%{_libdir}/caja/
%{_datadir}/%{name}/
%{_datadir}/applications/mate-user-share-properties.desktop
%{_datadir}/icons/hicolor/*/apps/mate-obex-server.png
%{_datadir}/glib-2.0/schemas/org.mate.FileSharing.gschema.xml
%{_mandir}/man1/mate-file-share-properties.1*
%{_datadir}/caja/extensions/libcaja-user-share.caja-extension

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--with-modules-path=%{_sysconfdir}/httpd/modules.d \
	--disable-static \
	--disable-bluetooth \
	--disable-schemas-compile
%make

%install
%makeinstall_std

# remove needless gsettings convert file to avoid slow session start
rm -fr %{buildroot}%{_datadir}/MateConf

# remove obsolete bluetooth stuff
rm -fr %{buildroot}%{_sysconfdir}/xdg/autostart/mate-user-share-obex*

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3229 |21cr|mate-utils-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 6
%define libname %mklibname matedict %{major}
%define devname %mklibname matedict -d

Summary:	MATE utility programs such as file search and calculator
Name:		mate-utils
Version:	1.26.0
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		mate-utils_glib-compile-schema-fix.patch
BuildRequires:	autoconf-archive
BuildRequires:	docbook-dtd412-xml
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	yelp-tools
BuildRequires:	xml2po
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libmatepanelapplet-4.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(udisks2)
Recommends:	mate-desktop

%description
MATE Utilities is a collection of small applications all there to make
your day just that little bit brighter - System Log Viewer, 
Search Tool, Dictionary.

%files -f %{name}-2.0.lang
%doc AUTHORS COPYING ChangeLog NEWS README*
%config(noreplace) %{_datadir}/dbus-1/services/*.service
%{_sysconfdir}/security/console.apps/mate-system-log
%{_sysconfdir}/pam.d/mate-system-log
%{_bindir}/*
%{_sbindir}/mate-system-log
%{_libexecdir}/mate-dictionary-applet
%{_mandir}/*/*
%{_metainfodir}/mate-dictionary.appdata.xml
%{_metainfodir}/mate-disk-usage-analyzer.appdata.xml
%{_metainfodir}/mate-screenshot.appdata.xml
%{_metainfodir}/mate-search-tool.appdata.xml
%{_datadir}/applications/mate-*.desktop
%{_datadir}/mate-dict/
%{_datadir}/mate-dictionary/
%{_datadir}/pixmaps/*
%{_datadir}/glib-2.0/schemas/*gschema.xml
%{_datadir}/gtk-doc/html/mate-dict
%{_datadir}/mate-panel/applets/org.mate.DictionaryApplet.mate-panel-applet
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MATE dictionary shared library
Group:		System/Libraries

%description -n %{libname}
This is the shared library required by the MATE Dictionary.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS README*
%{_libdir}/libmatedict.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MATE dictionary library development files
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the shared library required by the MATE Dictionary.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog NEWS README*
%{_libdir}/libmatedict*.so
%{_libdir}/pkgconfig/mate-dict*.pc
%{_includedir}/mate-dict

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--disable-schemas-compile \
	--enable-gdict-applet \
	--enable-gtk-doc-html \
	--enable-ipv6=yes \
	--with-x

%make

%install
%makeinstall_std
rm -rf %{buildroot}/var

# make mate-system-log use consolehelper until it starts using polkit
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
/bin/cat <<EOF >%{buildroot}%{_sysconfdir}/pam.d/mate-system-log
#%%PAM-1.0
auth		include		system-auth
account		include		system-auth
session		include		system-auth
EOF

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
/bin/cat <<EOF >%{buildroot}%{_sysconfdir}/security/console.apps/mate-system-log
USER=root
PROGRAM=%{_sbindir}/mate-system-log
SESSION=true
FALLBACK=true
EOF

mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/mate-system-log %{buildroot}%{_sbindir}
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/mate-system-log

desktop-file-install \
	--remove-category="MATE" \
	--add-category="X-Mate" \
	--delete-original \
	--dir %{buildroot}%{_datadir}/applications  \
	%{buildroot}%{_datadir}/applications/*

for i in %{buildroot}%{_datadir}/applications/* ; do
	desktop-file-validate $i
done

rm -fv %{buildroot}%{_bindir}/test-reader

%find_lang %{name}-2.0 --with-gnome --all-name


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3230 |21cr|mathgl-8.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 8
%define	libname %mklibname mgl %{major}
%define	fltkmajor 8
%define	fltklibname %mklibname mgl-fltk %{fltkmajor}
%define	glutmajor 8
%define	glutlibname %mklibname mgl-glut %{glutmajor}
%define	qtmajor 8
%define	qtlibname %mklibname mgl-qt %{qtmajor}
%define	qt5major 8
%define	qt5libname %mklibname mgl-qt5_ %{qt5major}
%define	wndmajor 8
%define	wndlibname %mklibname mgl-wnd %{wndmajor}
%define	wxmajor 8
%define	wxlibname %mklibname mgl-wx %{wxmajor}
%define	devname %mklibname mgl -d
%define	sdevname %mklibname mgl -d -s

# Broken for now due to swig issues (doesn't build)
%bcond_with octave

%bcond_with doc

Summary:	Library for scientific graphics
Name:		mathgl
Version:	8.0.1
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		http://mathgl.sourceforge.net/
Source0:	https://downloads.sourceforge.net/project/mathgl/mathgl/mathgl%208.0/%{name}-%{version}.tar.gz
# Install binaries for generation examples of illustrations
Patch0:		mathgl-2.4.2-examples.patch
# Skip FLUID binary test
Patch1:		mathgl-2.4.1-fltk-skip-fluid.patch
# Mathgl's enable all tries to use hdf4 and 5 at the same time
Patch2:		mathgl-2.4.1-no_hdf4-and-hdf5-simultaneously.patch
# Let macros to decide how to install octave module
Patch3:		mathgl-2.4.1-nooctaveinstall.patch
# There is no easy way to disable ONLY octave. Have to cut it from CmakeList.txt
Patch4:		mathgl-2.4.1-nooctave.patch
# Fix convertions
Patch6:		mathgl-2.4.1-gcc7.patch
# Disable uppdate-{destop,mine}-database during install process
Patch7:		mathgl-2.4.1-no_updatedb.patch
Patch8:		mathgl-freeglut.patch
Patch9:		mathgl-hpdf2.4.patch
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	swig
BuildRequires:	texi2html
BuildRequires:	texinfo
BuildRequires:	texlive
BuildRequires:	texlive-collection-fontsrecommended
BuildRequires:	texlive-collection-plaingeneric
BuildRequires:	texlive-collection-langchinese
BuildRequires:	texlive-collection-langgerman
BuildRequires:	texlive-collection-langother
BuildRequires:	texlive-collection-latexextra
BuildRequires:	texlive-scheme-full
BuildRequires:	texlive-collection-langafrican
BuildRequires:	texlive-collection-langmongolian
BuildRequires:	texlive-hyphen-german
BuildRequires:	texlive-texinfo
BuildRequires:	fltk-devel
BuildRequires:	giflib-devel
BuildRequires:	hdf5-devel
BuildRequires:	libharu-devel
%if %{with octave}
BuildRequires:	octave-devel
%endif
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(xmu)
%if !%{with octave}
Obsoletes:	%{name}-octave < %{EVRD}
%endif

%description
MathGL is a library for making high-quality scientific graphics. It
provides fast data plotting and handling of large data arrays.
MathGL has Qt, FLTK, OpenGL interfaces and can be used even from
console programs.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools for MathGL
Group:		Sciences/Mathematics

%description tools
This package contains the MathGL tools.

%files tools -f %{name}.lang
%doc AUTHORS COPYING COPYING_LGPL
%{_bindir}/mglconv
%{_bindir}/mglview
%{_bindir}/mgllab
%{_bindir}/mgltask
%{_bindir}/mgl.cgi
%if %{with doc}
%{_mandir}/man1/mglconv.1*
%{_mandir}/man1/mglview.1*
%{_mandir}/man1/mgl.cgi.1*
%endif
%{_datadir}/mime/packages/mgl.xml
%{_datadir}/applications/mgllab.desktop

#----------------------------------------------------------------------------

%package examples
Summary:	Examples for MathGL
Group:		Sciences/Mathematics

%description examples
This package contains the MathGL examples.

%files examples
%doc AUTHORS COPYING COPYING_LGPL
%{_bindir}/mgl*_example

#----------------------------------------------------------------------------

%package data
Summary:	Data files for MathGL
Group:		Sciences/Mathematics

%description data
This package contains the MathGL data files.

%files data
%doc AUTHORS COPYING COPYING_LGPL
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%if %{with octave}
%package octave
Summary:	MathGL bindings for octave
Group:		Sciences/Mathematics
Requires(post,postun):	octave(api) = %{octave_api}

%description octave
This package contains the MathGL bindings for octave.

%files octave
%doc AUTHORS COPYING COPYING_LGPL
%{_datadir}/octave/packages/*
%{_libexecdir}/octave/packages/*

%post octave
%{_bindir}/test -x %{_bindir}/octave && %{_bindir}/octave -q -H --no-site-file --eval "pkg('rebuild');" || :

%postun octave
%{_bindir}/test -x %{_bindir}/octave && %{_bindir}/octave -q -H --no-site-file --eval "pkg('rebuild');" || :
%endif

#----------------------------------------------------------------------------

%if %{with doc}
%package doc
Summary:	Documentation for MathGL
Group:		Sciences/Mathematics

%description doc
This package contains the MathGL documentation.

%files doc
%{_docdir}/%{name}
%{_infodir}/*
%{_mandir}/man5/mgl.5*
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main runtime library for MathGL
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libname}
MathGL is a library for making high-quality scientific graphics. It
provides fast data plotting and handling of large data arrays.
MathGL has Qt, FLTK, OpenGL interfaces and can be used even from
console programs.

This package contains the MathGL main runtime library.

%files -n %{libname}
%doc AUTHORS COPYING COPYING_LGPL ChangeLog.txt README README_V2
%{_libdir}/libmgl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{fltklibname}
Summary:	Fltk runtime library for MathGL
Group:		System/Libraries

%description -n %{fltklibname}
This package contains the MathGL fltk runtime library.

%files -n %{fltklibname}
%doc AUTHORS COPYING COPYING_LGPL
%{_libdir}/libmgl-fltk.so.%{fltkmajor}*

#----------------------------------------------------------------------------

%package -n %{glutlibname}
Summary:	Glut runtime library for MathGL
Group:		System/Libraries

%description -n %{glutlibname}
This package contains the MathGL glut runtime library.

%files -n %{glutlibname}
%doc AUTHORS COPYING COPYING_LGPL
%{_libdir}/libmgl-glut.so.%{glutmajor}*

#----------------------------------------------------------------------------

%package -n %{qtlibname}
Summary:	Qt runtime library for MathGL
Group:		System/Libraries

%description -n %{qtlibname}
This package contains the MathGL Qt runtime library.

%files -n %{qtlibname}
%doc AUTHORS COPYING COPYING_LGPL
%{_libdir}/libmgl-qt.so.%{qtmajor}*

#----------------------------------------------------------------------------

%package -n %{qt5libname}
Summary:	Qt5 runtime library for MathGL
Group:		System/Libraries

%description -n %{qt5libname}
This package contains the MathGL Qt runtime library.

%files -n %{qt5libname}
%doc AUTHORS COPYING COPYING_LGPL
%{_libdir}/libmgl-qt5.so.%{qt5major}*

#----------------------------------------------------------------------------

%package -n %{wndlibname}
Summary:	WND runtime library for MathGL
Group:		System/Libraries

%description -n %{wndlibname}
This package contains the MathGL WND runtime library.

%files -n %{wndlibname}
%doc AUTHORS COPYING COPYING_LGPL
%{_libdir}/libmgl-wnd.so.%{wndmajor}*

#----------------------------------------------------------------------------

%package -n %{wxlibname}
Summary:	WxWidgets runtime library for MathGL
Group:		System/Libraries

%description -n %{wxlibname}
This package contains the MathGL wxWidgets runtime library.

%files -n %{wxlibname}
%doc AUTHORS COPYING COPYING_LGPL
%{_libdir}/libmgl-wx.so.%{wxmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for MathGL
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{fltklibname} = %{EVRD}
Requires:	%{glutlibname} = %{EVRD}
Requires:	%{qtlibname} = %{EVRD}
Requires:	%{qt5libname} = %{EVRD}
Requires:	%{wndlibname} = %{EVRD}
Requires:	%{wxlibname} = %{EVRD}

%description -n %{devname}
This package contains the MathGL development files.

%files -n %{devname}
%doc AUTHORS COPYING COPYING_LGPL
%{_includedir}/mgl2
%{_libdir}/libmgl*.so
%{_libdir}/cmake/mathgl2/mathgl2-config.cmake
%{_libdir}/cmake/mathgl

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development files for MathGL
Group:		Development/Other
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
This package contains the MathGL static development files.

%files -n %{sdevname}
%doc AUTHORS COPYING COPYING_LGPL
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package -n udav
Summary:	Fast and interactive data plotting based on MathGL
Group:		Sciences/Mathematics

%description -n udav
UDAV is cross-platform program for data arrays visualization based on
MathGL library. It support wide spectrum of graphics, simple script
language and visual data handling and editing. It has window
interface for data viewing, changing and plotting. Also it can
execute MGL scripts, setup and rotate graphics and so on.

%files -n udav
%doc AUTHORS COPYING COPYING_LGPL
%{_bindir}/udav
%{_datadir}/applications/udav.desktop
#{_datadir}/mime/packages/mgl.xml
%{_datadir}/pixmaps/udav.png
%dir %{_datadir}/udav/
%{_datadir}/udav/*
%if %{with doc}
%{_mandir}/man1/udav.1*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
# get rid of 3d-paty getopt
rm -rf addons/getopt

# prep for both py2 and py3 build
mkdir lang/python3
touch lang/python3/CMakeLists.txt

#convert EOL encodings, maintaining timestames
for file in AUTHORS ChangeLog.txt README ; do
    sed 's/\r//' $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%patch0 -p1 -b .examples
%patch1 -p1 -b .fluid
%patch2 -p1 -b .no-hdf4-and-hdf5-simultaneously
%patch6 -p1 -b .gcc7
%patch7 -p1 -b .no_updatedb
%if 0%{?with_octave}
%patch3 -p1 -b .nooctaveinstall
%else
%patch4 -p1 -b .no_octave
%endif
%patch8 -p0 -b .freeglut
%patch9 -p1

%build
# Workaround FindFLTK.cmake bug with FLTK 1.3.3
# see: http://osdir.com/ml/general/2015-07/msg33210.html
%cmake	-DFLTK_FLUID_EXECUTABLE="%{_bindir}/fluid" \
	-DFLTK_INCLUDE_DIR="%{_includedir}/FL" \
	-DMathGL_INSTALL_LIB_DIR=%{_libdir} \
	-DCMAKE_SKIP_RPATH:BOOL=OFF \
	-DMathGL_INSTALL_CMAKE_DIR=%{_libdir}/cmake/mathgl \
	-Denable-double=on \
	-Denable-mpi=off \
	-Denable-pthread=off \
	-Denable-openmp=off \
	-Denable-gsl=on \
	-Denable-jpeg=on \
	-Denable-png=on \
	-Denable-zlib=on \
	-Denable-pdf=on \
	-Denable-gif=on \
	-Denable-hdf5=on \
	-Denable-opengl=on \
	-Denable-glut=on \
	-Denable-fltk=on \
	-Denable-wx=on \
	-Denable-qt4=off -Denable-qt5=on \
	-Denable-python=off \
	-Denable-lua=off \
%if %{with octave}
	-Denable-octave=on \
	-Denable-octave-install=on \
%else
	-Denable-octave=off \
	-Denable-octave-install=off \
%endif
%if %{with doc}
	-Denable-all-docs=on \
	-Denable-texi2html=on \
%else
	-Denable-all-docs=off \
	-Denable-texi2html=off \
%endif
	-DMGL_LIB_INSTALL_DIR=%{_lib}
%make


%install
%makeinstall_std -C build

cp build/examples/mgl*_example %{buildroot}%{_bindir}/
mv %{buildroot}/usr/lib/cgi-bin/mgl.cgi %{buildroot}%{_bindir}/

# rpath is required at build time but not in package
chrpath -d %{buildroot}%{_bindir}/*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3231 |21cr|mathomatic-16.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mathomatic
Version:	16.0.5
Release:	4
Summary:	General purpose CAS (Computer Algebra System)
URL:		http://mathomatic.org/
Source0:	http://mathomatic.org/%{name}-%{version}.tar.bz2
License:	LGPLv2
Group:		Sciences/Mathematics
BuildRequires:	desktop-file-utils
BuildRequires:	ncurses-devel
BuildRequires:	readline-devel

%description
Mathomatic™ is a portable, command-line CAS and calculator software, written
entirely in the C programming language. It is free and open source software
(FOSS), published under the GNU Lesser General Public License (LGPL version
2.1), and has been under continual development since 1986. The software can
symbolically solve, simplify, combine, and compare algebraic equations,
simultaneously performing generalized standard, complex number, modular,
and polynomial arithmetic, as needed. It does some calculus and is very easy
to learn and use.

Mathomatic consists of both a text-mode symbolic math application,
and a symbolic math library, each suitable for desktops, laptops, servers,
handhelds, and embedded systems.

%prep
%setup -q
%__cat > makefile.lib << EOF
all:
EOF
%__mkdir_p lib
%__cp -a makefile.lib lib/makefile
%__mkdir_p %{name}_secure
%__mkdir_p %{name}_secure/lib
%__cp -a makefile.lib %{name}_secure/lib/makefile
%__cp -a *.[ch] makefile VERSION %{name}_secure

%build
%make CC=%{__cc} CC_OPTIMIZE="%{optflags}" READLINE=1 LDFLAGS="%{ldflags}" AOUT=%{name}
pushd %{name}_secure
%__ln_s ../%{name}.1 .
%__ln_s ../rmath.1 .
%__ln_s ../doc .
%__ln_s ../primes .
%make CC=%{__cc} CC_OPTIMIZE="%{optflags}" READLINE=1 LDFLAGS="%{ldflags}" AOUT=%{name}_secure %{name}_secure
popd

%check
%make CC=%{__cc} CC_OPTIMIZE="%{optflags}" READLINE=1 LDFLAGS="%{ldflags}" AOUT=%{name} check

%install
%makeinstall docdir=%{buildroot}%{_docdir}/%{name}
%__rm -rf %{buildroot}%{_docdir}/%{name}
%__rm -rf doc/%{name}.1
cd %{name}_secure
%__install -m 755 %{name}_secure %{buildroot}%{_bindir}/%{name}_secure
cd ..
%{_bindir}/desktop-file-validate %{buildroot}%{_datadir}/applications/mathomatic.desktop

%files
%defattr(0644,root,root,0755)
%doc NEWS README.txt VERSION doc/ tests/
%defattr(-,root,root)
%{_bindir}/%{name}
%{_bindir}/%{name}_secure
%{_mandir}/man1/mathomatic.1*
%{_datadir}/applications/mathomatic.desktop
%{_datadir}/pixmaps/mathomatic.png
%{_datadir}/pixmaps/mathomatic.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3232 |21cr|matio-1.5.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	MAT File I/O Library
Name:		matio
Version:	1.5.23
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/matio/
Source0:	http://downloads.sourceforge.net/matio/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	ghostscript
BuildRequires:	texlive
BuildRequires:	hdf5-devel
BuildRequires:	pkgconfig(zlib)

%description
matio is an ISO C library (with a limited Fortran 90 interface)
for reading and writing Matlab MAT files.

%files
%{_bindir}/matdump

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MAT File I/O Library
Group:		System/Libraries

%description -n %{libname}
matio is an ISO C library (with a limited Fortran 90 interface)
for reading and writing Matlab MAT files.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc NEWS README
%{_includedir}/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--enable-shared \
	--disable-static \
	--disable-silent-rules \
	--enable-extended-sparse=yes \
	%if "%{_lib}" != "lib"
	--with-libdir-suffix="lib64"
	%endif

# remove rpath from libtool
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/matio

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3233 |21cr|matrixssl-3.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Embedded SSL implementation
Name:		matrixssl
Version:	3.4.1
Release:	1
License:	GPLv2
Group:		System/Libraries
Url:		http://www.matrixssl.org/
Source0:	%{name}-3-2-1-open.tgz
Patch0:		matrixssl-3.2.1-no_strip.diff
Patch2:		matrixssl-3.2.1-soname.diff
BuildRequires:	dietlibc-devel >= 0.32

%description
PeerSec MatrixSSL is an embedded SSL implementation designed for 
small footprint devices and applications requiring low overhead per 
connection. The library is less than 50K on disk with cipher suites.

It includes SSL client and SSL server support, session resumption, 
and implementations of RSA, 3DES, ARC4, SHA1, and MD5. The source is
well documented and contains portability layers for additional 
operating systems, cipher suites, and cryptography providers. 

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Embedded SSL implementation
Group:		System/Libraries

%description -n %{libname}
PeerSec MatrixSSL is an embedded SSL implementation designed for 
small footprint devices and applications requiring low overhead per 
connection. The library is less than 50K on disk with cipher suites.

It includes SSL client and SSL server support, session resumption, 
and implementations of RSA, 3DES, ARC4, SHA1, and MD5. The source is
well documented and contains portability layers for additional 
operating systems, cipher suites, and cryptography providers. 

%files -n %{libname}
%{_libdir}/libmatrixssl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	dietlibc-devel >= 0.32
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
PeerSec MatrixSSL is an embedded SSL implementation designed for 
small footprint devices and applications requiring low overhead per 
connection. The library is less than 50K on disk with cipher suites.

It includes SSL client and SSL server support, session resumption, 
and implementations of RSA, 3DES, ARC4, SHA1, and MD5. The source is
well documented and contains portability layers for additional 
operating systems, cipher suites, and cryptography providers. 

This package contains the static libraries and headers for both
glibc and dietlibc.

%files -n %{devname}
%doc doc/*.pdf
%{_includedir}/matrixssl
%{_libdir}/*.so
%{_libdir}/*.a
%{_prefix}/lib/dietlibc/lib/*.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-3-2-1-open
%patch0 -p0

# prepare for dietlibc
mkdir -p dietlibc
cp -rp core crypto matrixssl Makefile dietlibc/

%build

# first make the standard glibc stuff...
make DFLAGS="%{optflags} -fPIC" MAJOR="%{major}"

# now make the dietlibc static library
make -C dietlibc CC="diet -Os gcc" \
    DFLAGS="" \
    LDFLAGS="-nostdlib" \
    libmatrixssl.a

%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_prefix}/lib/dietlibc/{lib,include}
install -d %{buildroot}%{_includedir}/matrixssl/core
install -d %{buildroot}%{_includedir}/matrixssl/crypto/{digest,keyformat,math,pubkey,symmetric}

# install the glibc version
install -m0755 lib%{name}.so %{buildroot}%{_libdir}/lib%{name}.so.%{version}
ln -snf lib%{name}.so.%{version} %{buildroot}%{_libdir}/lib%{name}.so.%{major}
ln -snf lib%{name}.so.%{major} %{buildroot}%{_libdir}/lib%{name}.so
install -m0644 lib%{name}.a %{buildroot}%{_libdir}/

# install the headers
install -m0644 core/*.h %{buildroot}%{_includedir}/matrixssl/core/
install -m0644 crypto/*.h %{buildroot}%{_includedir}/matrixssl/crypto/
install -m0644 crypto/digest/*.h %{buildroot}%{_includedir}/matrixssl/crypto/digest/
install -m0644 crypto/keyformat/*.h %{buildroot}%{_includedir}/matrixssl/crypto/keyformat/
install -m0644 crypto/math/*.h %{buildroot}%{_includedir}/matrixssl/crypto/math/
install -m0644 crypto/pubkey/*.h %{buildroot}%{_includedir}/matrixssl/crypto/pubkey/
install -m0644 crypto/symmetric/*.h %{buildroot}%{_includedir}/matrixssl/crypto/symmetric/
install -m0644 matrixssl/matrixsslApi.h %{buildroot}%{_includedir}/matrixssl/
install -m0644 matrixssl/matrixsslConfig.h %{buildroot}%{_includedir}/matrixssl/
install -m0644 matrixssl/matrixssllib.h %{buildroot}%{_includedir}/matrixssl/

# install the dietlibc version
install -m0644 dietlibc/lib%{name}.a %{buildroot}%{_prefix}/lib/dietlibc/lib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3234 |21cr|maven-doxia-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with maven

%define namedversion 1.0-alpha-7

Name:           maven-doxia
Version:        1.0
Release:        5
Epoch:          0
Summary:        Content generation framework
License:        Apache Software License
Group:          Development/Java
URL:            http://maven.apache.org/doxia/

# svn export http://svn.apache.org/repos/asf/maven/doxia/tags/doxia-1.0-alpha-7/
#       maven-doxia/
# tar czf maven-doxia-1.0.a7-src.tar.gz maven-doxia/
Source0:        %{name}-%{version}a7.tar.gz

Source1:        %{name}-decoration-model-build.xml
Source2:        %{name}-core-build.xml
Source3:        %{name}-sink-api-build.xml
Source4:        %{name}-site-renderer-build.xml

# These files are taken from the doxia build itself, done with maven2
# To regenerate, build above tarball with upstream maven
Source5:        %{name}-autogenerated-files.tar.gz

Patch0:         %{name}-1.4compile.patch


BuildArch:      noarch

BuildRequires:  java-rpmbuild >= 0:1.7.2
BuildRequires:  ant
BuildRequires:  ant-nodeps
BuildRequires:  locales-en
%if %with maven
BuildRequires:  maven2 >= 0:2.0.4-9
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-site
BuildRequires:  maven2-plugin-surefire
BuildRequires:  plexus-maven-plugin >= 0:1.2-2
BuildRequires:  modello-maven-plugin >= 0:1.0-0.a8.3
BuildRequires:  plexus-xmlrpc >= 0:1.0-0.b4.3
%endif
BuildRequires:  classworlds
BuildRequires:  apache-commons-collections
BuildRequires:  apache-commons-logging
BuildRequires:  apache-commons-validator
BuildRequires:  junit
BuildRequires:  oro
BuildRequires:  plexus-container-default
BuildRequires:  plexus-i18n
BuildRequires:  plexus-utils
BuildRequires:  plexus-velocity
BuildRequires:  velocity

Requires:       classworlds
Requires:       apache-commons-collections
Requires:       apache-commons-logging
Requires:       apache-commons-validator
Requires:       junit
Requires:       oro
Requires:       plexus-container-default
Requires:       plexus-i18n
Requires:       plexus-utils
Requires:       plexus-velocity
Requires:       velocity

Requires(post):   jpackage-utils >= 0:1.7.2
Requires(postun): jpackage-utils >= 0:1.7.2

%description
Doxia is a content generation framework which aims to provide its
users with powerful techniques for generating static and dynamic
content. Doxia can be used to generate static sites in addition to
being incorporated into dynamic content generation systems like blogs,
wikis and content management systems.

%if %with maven
%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Documentation

%description javadoc
Javadoc for %{name}.
%endif

%prep
%setup -q -n %{name}
cp -p %{SOURCE1} doxia-decoration-model/build.xml
cp -p %{SOURCE2} doxia-core/build.xml
cp -p %{SOURCE3} doxia-sink-api/build.xml
cp -p %{SOURCE4} doxia-site-renderer/build.xml

%patch0 -p0 -b .sav

%build
export LC_ALL=en_US.ISO-8859-1

export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL

%if %with maven

    mvn-jpp \
        -e \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        -Dmaven.test.failure.ignore=true \
        install javadoc:javadoc

%else

mkdir lib
build-jar-repository -s -p lib/ \
                        commons-collections \
                        commons-logging-api \
                        classworlds \
                        junit \
                        oro \
                        plexus/container-default \
                        plexus/i18n \
                        plexus/utils \
                        plexus/velocity \
                        velocity

# Extract autogenerated (by maven) files
tar xzf %{SOURCE5}

for project in doxia-decoration-model \
           doxia-sink-api \
           doxia-core \
           doxia-site-renderer; do

       pushd $project

           ant -Dmaven.mode.offline=true -Dmaven.repo.local=$MAVEN_REPO_LOCAL

           # Copy over the jar
           cp -p target/*jar ../lib/$project.jar
       popd
done

%endif

%install
# jars/poms
install -d -m 755 %{buildroot}%{_javadir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms

for project in decoration-model \
                sink-api \
                core \
                site-renderer \
                module-twiki; do

        if [ -f doxia-$project/target/doxia-$project-%{namedversion}.jar ]; then                  install -pm 644 \
                  doxia-$project/target/doxia-$project-%{namedversion}.jar \
                  %{buildroot}%{_javadir}/%{name}/$project-%{namedversion}.jar
                  %add_to_maven_depmap org.apache.maven.doxia doxia-$project %{namedversion} JPP/maven-doxia $project

        fi

        # Install pom to groupid-artifactid
        install -pm 644 doxia-$project/pom.xml \
          %{buildroot}/%{_datadir}/maven2/poms/JPP.maven-doxia-$project.pom
done

install -pm 644 pom.xml \
  %{buildroot}/%{_datadir}/maven2/poms/JPP.maven-doxia-doxia.pom
%add_to_maven_depmap org.apache.maven.doxia doxia %{namedversion} JPP/maven-doxia doxia

(cd %{buildroot}%{_javadir}/%{name} && for jar in *-%{namedversion}*; \
  do ln -sf ${jar} `echo $jar| sed  "s|-%{namedversion}||g"`; done)

%if %with maven
# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}

for p in doxia-decoration-model \
                doxia-sink-api \
                doxia-core \
                doxia-site-renderer; do

        project=`basename $p`
        install -d -m 755 \
          %{buildroot}%{_javadocdir}/%{name}-%{version}/$project
        cp -pr $project/target/site/apidocs/* \
          %{buildroot}%{_javadocdir}/%{name}-%{version}/$project

done
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
%endif

%files
%{_javadir}/%{name}
%{_datadir}/maven2
%config(noreplace) %{_mavendepmapfragdir}/*

%if %with maven
%files javadoc
%defattr(-,root,root,-)
%doc %{_javadocdir}/*
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3235 |21cr|maxima-5.45.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define enable_clisp 1
%define enable_gcl 0
%define enable_sbcl 1
%define enable_ecl 0
%define defaultlisp sbcl

%if %enable_clisp
%define clisp_flags --enable-clisp
%else
%define clisp_flags --disable-clisp
%endif

%if %enable_gcl
%define gcl_flags --enable-gcl
%else
%define gcl_flags --disable-gcl
%endif

%if %enable_sbcl
%define sbcl_flags --enable-sbcl
%else
%define sbcl_flags --disable-sbcl
%endif

%if %enable_ecl
%define ecl_flags --enable-ecl
# build module required by sagemath runtime?
%define sagemath 1
%define ecllib %(ecl -eval "(princ (SI:GET-LIBRARY-PATHNAME))" -eval "(quit)")
%else
%define sagemath 0
%define ecl_flags --disable-ecl
%endif

%define emacs_sitelisp %{_datadir}/emacs/site-lisp/
%define xemacs_sitelisp %{_datadir}/xemacs/site-packages/lisp/
%define texmf %{_datadir}/texmf

Summary:	Maxima Symbolic Computation Program
Name:		maxima
Version:	5.45.1
Release:	4
License:	GPLv2
Group:		Sciences/Mathematics
Url:		http://maxima.sourceforge.net
Source0:	https://download.sourceforge.net/project/maxima/Maxima-source/%{version}-source/maxima-%{version}.tar.gz
Source2:	xmaxima.desktop
Source6:	maxima-modes.el

## Other maxima reference docs
Source11:	http://maxima.sourceforge.net/docs/manual/maxima.pdf

# Build the fasl while building the executable to avoid double initialization
Patch51:	maxima-5.30.0-build-fasl.patch

BuildRequires:	desktop-file-utils
BuildRequires:	texinfo
BuildRequires:	texlive-epsf
BuildRequires:	texlive-ec
BuildRequires:	texlive-cm-super
BuildRequires:	texlive-collection-latex
BuildRequires:	python3
BuildRequires:	time
BuildRequires:	imagemagick
%if %{enable_clisp}
BuildRequires:	clisp
%endif
%if %{enable_gcl}
BuildRequires:	gcl > 2.5.3
%endif
%if %{enable_sbcl}
BuildRequires:	sbcl
%endif
%if %{enable_ecl}
BuildRequires:	ecl
BuildRequires:	pkgconfig(libffi)
%endif
Requires:	gnuplot
Requires:	maxima-runtime
Recommends:	tcl
Recommends:	tk

%description
Maxima is a full symbolic computation program.  It is full featured
doing symbolic manipulation of polynomials, matrices, rational
functions, integration, Todd-coxeter, graphing, bigfloats.  It has a
symbolic debugger source level debugger for maxima code.  Maxima is
based on the original Macsyma developed at MIT in the 1970's.  It is
quite reliable, and has good garbage collection, and no memory leaks.
It comes with hundreds of self tests.

%files
%doc AUTHORS COPYING README*
%{_bindir}/maxima
%{_bindir}/rmaxima
%{_libexecdir}/maxima/%{version}/mgnuplot
%{_datadir}/maxima/%{version}/*
%{_infodir}/*.info*
%{_infodir}/maxima-index.lisp*
%{_mandir}/man1/maxima.*
%{_mandir}/ru/man1/maxima.1*
%exclude %doc %{_datadir}/maxima/%{version}/doc/html/es.utf8
%exclude %{_infodir}/es.utf8
%exclude %doc %{_datadir}/maxima/%{version}/doc/html/de.utf8
%exclude %{_infodir}/de.utf8
%exclude %doc %{_datadir}/maxima/%{version}/doc/html/pt.utf8
%exclude %{_infodir}/pt.utf8
%exclude %doc %{_datadir}/maxima/%{version}/doc/html/pt_BR.utf8
%exclude %{_infodir}/pt_BR.utf8
%{texmf}/tex/latex/emaxima
%{emacs_sitelisp}/*
%{xemacs_sitelisp}/maxima
%{xemacs_sitelisp}/site-start.d/*
%{_datadir}/bash-completion/completions/maxima
%{_datadir}/bash-completion/completions/rmaxima
%{_datadir}/bash-completion/completions/xmaxima
%{_datadir}/mime/packages/x-mac.xml
%{_datadir}/mime/packages/x-maxima-out.xml
%{_datadir}/pixmaps/maxima.png
%{_datadir}/pixmaps/maxima.svg
%{_datadir}/pixmaps/text-x-maxima-out.svg
%{_datadir}/pixmaps/text-x-maximasession.svg
%{_datadir}/metainfo/maxima.xmaxima.appdata.xml

#--------------------------------------------------------------------

%package gui
Summary: Tcl/Tk GUI interface to Maxima
Group:		Sciences/Mathematics
Requires:	maxima
Requires:	tk
Provides:	xmaxima = %{EVRD}
%description gui
Tcl/Tk GUI interface to Maxima.

%files gui
%{_bindir}/xmaxima
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png

#--------------------------------------------------------------------

%if %{enable_clisp}
%package runtime-clisp
Summary:	Maxima compiled with clisp
Group:		Sciences/Mathematics
Requires:	clisp
Requires:	maxima = %{EVRD}
Provides:	maxima-runtime = %{EVRD}
%description runtime-clisp
Maxima compiled with clisp.

%files runtime-clisp
%dir %{_libdir}/maxima/%{version}/binary-clisp
%{_libdir}/maxima/%{version}/binary-clisp/*
%endif

#--------------------------------------------------------------------

%if %{enable_gcl}
%package runtime-gcl
Summary:	Maxima compiled with GCL
Group:		Sciences/Mathematics
Requires:	maxima = %{EVRD}
Recommends:	rlwrap
Provides:	maxima-runtime = %{EVRD}
%description runtime-gcl
Maxima compiled with Gnu Common Lisp.

%files runtime-gcl
%dir %{_libdir}/maxima/%{version}/binary-gcl
%{_libdir}/maxima/%{version}/binary-gcl/*
%endif

#--------------------------------------------------------------------
%if %{enable_sbcl}
%package runtime-sbcl
Summary:	Maxima compiled with SBCL
Group:		Sciences/Mathematics
Requires:	sbcl
Requires:	maxima = %{EVRD}
Provides:	maxima-runtime = %{EVRD}

%description runtime-sbcl
Maxima compiled with SBCL.

%files runtime-sbcl
%dir %{_libdir}/maxima/%{version}/binary-sbcl
%{_libdir}/maxima/%{version}/binary-sbcl/*
%endif

#--------------------------------------------------------------------
%if %{enable_ecl}
%package runtime-ecl
Summary:	Maxima compiled with ECL
Group:		Sciences/Mathematics
Requires:	maxima = %{EVRD}
Provides:	maxima-runtime = %{EVRD}

%description runtime-ecl
Maxima compiled with ECL.

%files runtime-ecl
%dir %{_libdir}/maxima/%{version}/binary-ecl
%{_libdir}/maxima/%{version}/binary-ecl/*
%{ecllib}/maxima.fas
%endif

#--------------------------------------------------------------------
%package lang-de-utf8
Summary:	Maxima German UTF-8 language pack
Group:		Sciences/Mathematics
Requires:	maxima = %{EVRD}

%description lang-de-utf8
Maxima German language support (UTF-8).

%files lang-de-utf8
%doc %{_datadir}/maxima/%{version}/doc/html/de.utf8
%{_infodir}/de.utf8
%{_mandir}/de/man1/maxima.1.xz


#--------------------------------------------------------------------
%package lang-es-utf8
Summary:	Maxima Spanish UTF-8 language pack
Group:		Sciences/Mathematics
Requires:	maxima = %{EVRD}

%description lang-es-utf8
Maxima Spanish language support (UTF-8).

%files lang-es-utf8
%doc %{_datadir}/maxima/%{version}/doc/html/es.utf8
%{_infodir}/es.utf8

#--------------------------------------------------------------------
%package lang-pt-utf8
Summary:	Maxima Portuguese UTF-8 language pack
Group:		Sciences/Mathematics
Requires:	maxima = %{EVRD}

%description lang-pt-utf8
Maxima Portuguese language support (UTF-8).

%files lang-pt-utf8
%doc %{_datadir}/maxima/%{version}/doc/html/pt.utf8
%{_infodir}/pt.utf8

#--------------------------------------------------------------------
%package lang-pt_BR-utf8
Summary:	Maxima Brazilian Portuguese UTF-8 language pack
Group:		Sciences/Mathematics
Requires:	maxima = %{EVRD}

%description lang-pt_BR-utf8
Maxima Brazilian Portuguese language support (UTF-8).

%files lang-pt_BR-utf8
%doc %{_datadir}/maxima/%{version}/doc/html/pt_BR.utf8
%{_infodir}/pt_BR.utf8

#--------------------------------------------------------------------

%prep
%autosetup -p1

# Extra docs
install -D -p -m644 %{SOURCE11} doc/maximabook/maxima.pdf

sed -i -e 's|@ARCH@|%{_target_cpu}|' src/maxima.in

sed -i -e 's:/usr/local/info:/usr/share/info:' \
	interfaces/emacs/emaxima/maxima.el
sed -i -e \
	's/(defcustom\s+maxima-info-index-file\s+)(\S+)/$1\"maxima.info-16\"/' \
	interfaces/emacs/emaxima/maxima.el

# remove CVS crud
find -name CVS -type d | xargs --no-run-if-empty rm -rv

%build
autoreconf -fi

%if %{enable_gcl}
export GCL_ANSI=y
%endif
%if %{enable_sbcl}
export SBCL_HOME=%{_libdir}/sbcl
%endif
export CFLAGS="%{optflags} -fno-fast-math"
export CXXFLAGS="%{optflags} -fno-fast-math"
%configure \
	%{clisp_flags} \
	%{gcl_flags} \
	%{sbcl_flags} \
	%{ecl_flags} \
	--with-default-lisp=%{defaultlisp} \
	--enable-lang-de-utf8 \
	--enable-lang-es-utf8 \
	--enable-lang-pt-utf8 \
	--enable-lang-pt_BR-utf8 LDFLAGS=

# help avoid (re)running makeinfo/tex
touch doc/info/maxima.info

make

%install
%makeinstall_std

%if %{?enable_ecl}
install -D -m755 src/binary-ecl/maxima.fas %{buildroot}%{ecllib}/maxima.fas
%endif

#fix name app icon
mv %{buildroot}%{_datadir}/pixmaps/net.sourceforge.maxima.png %{buildroot}%{_datadir}/pixmaps/maxima.png
mv %{buildroot}%{_datadir}/pixmaps/net.sourceforge.maxima.svg %{buildroot}%{_datadir}/pixmaps/maxima.svg

#install icon
for s in 16 22 32 48 64 128; do
    mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
    convert -geometry ${s}x${s} interfaces/xmaxima/net.sourceforge.maxima.png %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/%{name}.png
done

#fix name metainfo xml
mv %{buildroot}%{_datadir}/metainfo/net.sourceforge.maxima.xmaxima.appdata.xml %{buildroot}%{_datadir}/metainfo/maxima.xmaxima.appdata.xml


desktop-file-install \
	--dir="%{buildroot}%{_datadir}/applications" \
	%{SOURCE2} 

# (x)emacs
install -D -m644 -p %{SOURCE6} %{buildroot}%{_datadir}/maxima/%{version}/emacs/site_start.d/maxima-modes.el

for dir in %{emacs_sitelisp} %{xemacs_sitelisp} ; do
	install -d -m755 %{buildroot}$dir/{,site-start.d}
	ln -s %{_datadir}/maxima/%{version}/emacs %{buildroot}$dir/maxima
	for file in %{buildroot}%{_datadir}/maxima/%{version}/emacs/*.el ; do
		touch `dirname $file`/`basename $file .el`.elc
	done
	ln -s %{_datadir}/maxima/%{version}/emacs/site_start.d/maxima-modes.el %{buildroot}$dir/site-start.d/
	touch %{buildroot}$dir/site-start.d/maxima-modes.elc
done

# emaxima LaTeX style (%%ghost)
install -d %{buildroot}%{texmf}/tex/latex/
ln -sf %{_datadir}/maxima/%{version}/emacs \
	%{buildroot}%{texmf}/tex/latex/emaxima

## unwanted/unpackaged files
rm -f %{buildroot}%{_infodir}/dir
# docs
rm -rf %{buildroot}%{_datadir}/maxima/%{version}/doc/{contributors,implementation,misc,maximabook,EMaximaIntro.ps}

%check
#make -k check

# A little hack - maxima wants this file to be uncompressed, but it is compressed
# automatiaclly by rpmbuild
# Maybe a better solution would be to palce this file to another location...
%postun
rm -f %{_infodir}/maxima-index.lisp

%posttrans
xz -d %{_infodir}/maxima-index.lisp.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3236 |21cr|maxr-0.2.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A classic turn-based strategy game
Name:		maxr
Version:	0.2.9
Release:	3
License:	GPLv2+ and GFDL
Group:		Games/Other
Url:		https://www.maxr.org
Source0:	http://www.maxr.org/downloads/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	dos2unix
BuildRequires:	git
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)

%description
M.A.X.R. (Mechanized Assault and eXploration Reloaded) is a fanmade strategy 
game by the community of maxr.org. MAXR is OpenSource and a remake of
the old M.A.X.by Interplay from 1996 featuring network games based on TCP/IP 
(e.g. over the internet). The game can be played in a turn-based mode (with or 
without time limit), or simultaneous mode (all the players take their turns at 
the same time), and features combat in air, land, and sea. Three resources are 
present on the maps - Raw Materials, which are needed to manufacture units, 
structures and ammunition, Fuel, which power generators need to function, and 
Gold, which is used to purchase upgrades. This game is a mix of realtime and 
turn-based strategy with battle chess character.

%files
%doc data/CHANGELOG data/COPYING data/COPYING.README data/MANUAL
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q

find -name '.empty' -delete -print

# Convert COPYING.README to UTF-8
pushd data
	iconv -f iso-8859-1 -t utf-8 -o COPYING.README.utf8 COPYING.README
	touch -c -r COPYING.README COPYING.README.utf8
	mv -f COPYING.README.utf8 COPYING.README
# Fix endings
dos2unix AUTHORS CHANGELOG MANUAL
popd

%build
%cmake
%make

%install
%makeinstall_std -C build

# Install our .desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

# Install the provided 128x128 icon...
install -Dm644 data/%{name}.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
# ...and resize it to have more sizes
for i in 16x16 22x22 32x32 36x36 48x48 64x64 256x256; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/apps
	convert data/%{name}.png -scale $i %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3237 |21cr|mayavi-4.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           mayavi
Version:        4.7.3
Release:        1
Group:          Sciences/Other
Summary:        Scientific data 3-dimensional visualizer
License:        BSD and EPL and LGPLv2+ and LGPLv2 and LGPLv3
URL:            http://code.enthought.com/projects/mayavi/
Source0:        https://github.com/enthought/mayavi/archive/%{version}/mayavi-%{version}.tar.gz
Source1:        mayavi2.desktop
BuildRequires:  gcc
BuildRequires:  python3-devel
BuildRequires:  python3-cython
BuildRequires:  python3-setuptools
# For tests
BuildRequires:  python3-traits
BuildRequires:  python3-numpy
BuildRequires:  python-vtk
# For HTML docs
BuildRequires:  python3-sphinx
Requires:       python3-mayavi
BuildRequires:  desktop-file-utils
BuildRequires:  x11-server-xvfb

%description
The Mayavi project includes two related packages for 3-dimensional 
visualization:

 * Mayavi2: A tool for easy and interactive visualization of data.
 * TVTK: A Traits-based wrapper for the Visualization Toolkit, a
   popular open-source visualization library.

These operate at different levels of abstraction. TVTK manipulates
visualization objects, while Mayavi2 lets you operate on your data,
and then see the results. Most users either use the Mayavi user
interface or program to its scripting interface; you probably don't
need to interact with TVTK unless you want to create a new Mayavi
module.


%package -n python3-mayavi
Summary:        Python 3 mayavi module
Requires:       python-vtk
Requires:       python3-apptools
Requires:       python3-traitsui
Requires:       python3-envisage
Requires:       python3-pyface-qt

%description -n python3-mayavi
Python 3 mayavi module


%package doc
Summary:        Documentation for %{name}

%description doc
Documentation for %{name}.


%prep
%setup -q -n mayavi-%{version}
rm -rf *.egg-info

# vtk not discoverable by pkg_resources
sed -i -e "/^ *'vtk'/d" mayavi/__init__.py

# Remove pregenerated C sources
grep -lr '/\* Generated by Cython' | xargs rm -v

# fix wrong-file-end-of-line-encoding
for file in *.txt examples/mayavi/data/room_vis.wrl examples/tvtk/dscene.py \
 examples/mayavi/interactive/wx_mayavi_embed*.py ; do
 sed "s|\r||g" $file > $file.new && \
 touch -r $file $file.new && \
 mv $file.new $file
done

# file-not-utf8
for file in *.txt docs/*.txt; do
 iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
 touch -r $file $file.new && \
 mv $file.new $file
done

# remove shebang
for file in mayavi/scripts/*.py; do
 sed '/^#!\//, 1d' $file > $file.new && \
 touch -r $file $file.new && \
 mv $file.new $file
done

# fix shebang
pathfix.py -i %__python3 -p -n mayavi mayavi/tests/csv_files/csv_2_py

# remove exec permission
find examples -type f -exec chmod 0644 {} ";"
chmod 0644 mayavi/tests/data/cellsnd.ascii.inp

%build
# Recythonize the sources
find -name '*.pyx' -exec cython {} \;

# Need xvfb-run for html doc building
%set_build_flags
SPHINXBUILD=/usr/bin/sphinx-build xvfb-run /usr/bin/python3 setup.py build --executable="/usr/bin/python3"

%install
%py3_install

# remove useless files
rm %{buildroot}%{py3_platsitedir}/tvtk/setup.py*

# fix wrong-file-end-of-line-encoding
for file in %{buildroot}%{py3_platsitedir}/mayavi/html/_downloads/wx_mayavi*.py; do
 sed "s|\r||g" $file > $file.new && \
 touch -r $file $file.new && \
 mv $file.new $file
done

# non-executable-script
chmod +x %{buildroot}%{py3_platsitedir}/mayavi/tests/runtests.py

mkdir -p %{buildroot}%{_mandir}/man1/
cp -p docs/mayavi2.man %{buildroot}/%{_mandir}/man1/mayavi2.1

desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
install -p -m 644 ./docs/source/mayavi/images/mayavi2-48x48.png \
 %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/mayavi2.png

%check
# This isn't working yet
libdir=`echo build/lib.*`
ln tvtk/tvtk_classes.zip ${libdir}/tvtk/
# Mayavi tests appear to hang running under xvfb-run
PYTHONPATH=${libdir} mayavi/scripts/mayavi2 -t || :

%files
%doc *LICENSE*
%doc README-tvtk.txt docs/*.txt
%{_bindir}/mayavi2
%{_bindir}/tvtk_doc
%{_mandir}/man1/mayavi2.1.*
%{_datadir}/applications/mayavi2.desktop
%{_datadir}/icons/hicolor/48x48/apps/mayavi2.png

%files -n python3-mayavi
%doc *LICENSE*
%doc docs/*.txt README-tvtk.txt
%dir %{py3_platsitedir}/mayavi
%{py3_platsitedir}/mayavi/[_a-gi-z]*
%{py3_platsitedir}/mayavi*.egg-info
%{py3_platsitedir}/tvtk/

%files doc
%doc *LICENSE*
%doc README-tvtk.txt docs/*.txt examples/
%doc %{py3_platsitedir}/mayavi/html
%doc %{py3_platsitedir}/tvtk/html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3238 |21cr|mazeofgalious-0.63-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mog
%define rev 1548

Summary:	A side-view, flick-screen platform game
Name:		mazeofgalious
Version:	0.63
Release:	6
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.braingames.getput.com/mog/
Source0:	%{oname}-%{version}.%{rev}.tar.bz2
Source1:	thegnu.pcx
Patch0:		mog-0.63-makefile.patch
Patch1:		mog-0.63-datapath.patch
Patch2:		mog-0.63-desktop.patch
Patch3:		mog-0.63-makefile2.patch
Patch4:		mog-0.63-sfmt.patch
BuildRequires:	imagemagick
BuildRequires:	SDL_sound-devel
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
Provides:	%{oname} = %{EVRD}

%description
The Maze of Galious (MoG in short) was originally a Konami game for the MSX
computer system. Its real name is Knightmare II: The Maze of Galious and is
the sequel of another Konami game called Knightmare.

MoG is a very addictive game where you have to kill thousands of enemies,
collect items in order to obtain new powers and defeat some really great demons
at the end of each level. The gameplay of MoG is not the boring linear one.

In MoG you are free to go everywhere you want from the beginning of the game.
You have to be very careful of the order in which you visit all the rooms in
the HUGE map if you want to keep your character alive. The map is structured
in a main map (called the castle) and 10 submaps (called the worlds).
Initially you are in the castle and you have to find the keys that open the
doors to go to each of the worlds. To complete the game you have to defeat
the boss at the end of each one of the 10 worlds. You are free to revisit
each world as often as you want in order to see if you have missed something.

To defeat all 10 demons you control two characters: Popolon and Aphrodite.
Each one has special abilities, i.e. Popolon has a greater ability to jump
and Aphrodite is able to dive.

%files
%doc LICENSE *.txt
%{_gamesbindir}/%{oname}
%{_gamesdatadir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/pixmaps/%{oname}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}.%{rev}
%patch0 -p1 -b .makefile
%patch1 -p1 -b .datapath
%patch2 -p1 -b .desktop
%patch3 -p1 -b .makefile
%patch4 -p1 -b .sfmt

%build
%make OPTFLAGS="%{optflags}" LFLAGS="%{ldflags}"

%install
%makeinstall_std

# replace Konami logo with GNU
rm -f %{buildroot}%{_gamesdatadir}/%{oname}/graphics/*/konami.pcx
cp %{SOURCE1} %{buildroot}%{_gamesdatadir}/%{oname}/graphics/alfonso/
cp %{SOURCE1} %{buildroot}%{_gamesdatadir}/%{oname}/graphics/alternate/
cp %{SOURCE1} %{buildroot}%{_gamesdatadir}/%{oname}/graphics/boltian/
cp %{SOURCE1} %{buildroot}%{_gamesdatadir}/%{oname}/graphics/hinox/
cp %{SOURCE1} %{buildroot}%{_gamesdatadir}/%{oname}/graphics/naramura/
cp %{SOURCE1} %{buildroot}%{_gamesdatadir}/%{oname}/graphics/original/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3239 |21cr|mb2md-3.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mb2md
Version:	3.20
Release:	1
Group:		Networking/Mail
Summary:	Mailbox to maildir converter
License:	Public Domain
URL:		http://batleth.sapienti-sat.org/projects/mb2md
Source0:	http://batleth.sapienti-sat.org/projects/mb2md/mb2md-%{version}.pl.gz
Source1:	http://batleth.sapienti-sat.org/projects/mb2md/changelog.txt
BuildArch:	noarch

%description
Convert your emails folders in mailbox format to maildirs.
Some of the current features of mb2md.pl are:
* converting the user's main mailbox that is referenced by the $MAIL variable
* converting a single mailbox into corresponding maildir
* converting multiple mailboxes in a directory into corresponding maildirs
* recursive operation on a given directory to convert the complete mail
  storage of one user
* replaces all occurrences of dots ('.') in a mailbox name by underscores ('_')
* is able to handle spaces in mailbox names
* converts mbox files in DOS format (CRLF) to Unix file format
* can strip an extension (e.g. ".mbx") from a mailbox name prior to converting
* removal of dummy message that a couple of IMAP servers (e.g. UW-IMAPD) put at
  the beginning of a mailbox
* setting the file date of a converted message according to the date found in
  the "From " line of the original mail
* setting the flags F,R,S,T (flagged, replied, seen, deleted) on the filename
  of the converted message according to the flags found in 
  "Status:"/"X-Status:"/"X-Mozilla-Status:"/"X-Evolution:" headers of the
  original mail


%prep
%setup -q -Tc -n %{name}-%{version}
# Setup executable
gunzip -c %{SOURCE0} > mb2md.pl
touch -r %{SOURCE0} mb2md.pl

# Copy changelog
cp -a %{SOURCE1} .

### Generate documentation
# #--- denotes the end of the documentation section; get everything before
# that, remove the shebang and the hash commentation
grep -B `wc -l mb2md.pl|awk '{print $1}'` "#---------" mb2md.pl | grep -v "#-----" | grep -v "#!/" | \
cut -c3- > readme.txt
touch -r %{SOURCE0} readme.txt


%build

%install
install -D -p -m 755 mb2md.pl %{buildroot}%{_bindir}/mb2md


%files
%doc changelog.txt readme.txt
%{_bindir}/mb2md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3240 |21cr|mbootpack-0.7a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Turns a multiboot kernel and modules (eg Xen) into a single file
Name:		mbootpack
Version:	0.7a
Release:	1
License:	BSD
Group:		System/Kernel and hardware
URL:		http://www.tjd.phlegethon.org/software/#mbootpack
Source:		https://github.com/timdeegan/mbootpack/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
ExclusiveArch:	%{x86_64}

%description
This is a tool that takes a multiboot kernel and modules (e.g. a Xen VMM, linux
kernel and initrd), and packages them up as a single file that looks like a
bzImage linux kernel. The aim is to allow you to boot multiboot kernels (in
particular, Xen) using bootloaders that don't support multiboot (i.e. pretty
much anything except GRUB and SYSLINUX).

%prep
%autosetup -p1

%build
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
%make

%install
mkdir -p %{buildroot}/%{_bindir}
install -m 755 mbootpack %{buildroot}/%{_bindir}/

%clean

%files
%doc README Changes
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3241 |21cr|mbpfan-2.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       mbpfan
Version:    2.4.0
Release:    5
Summary:    A simple daemon to control fan speed on all MacBook/MacBook Pros
Group:      System/Configuration/Hardware
License:    GPLv3
URL:        https://github.com/linux-on-mac/mbpfan
Source0:    %{url}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  systemd

ExclusiveArch:  %{x86_64}

%description
This is an enhanced version of Allan McRae mbpfan

mbpfan is a daemon that uses input from coretemp module and sets the
fan speed using the applesmc module. This enhanced version assumes any
number of processors and fans (max. 10).

* It only uses the temperatures from the processors as input.
* It requires coretemp and applesmc kernel modules to be loaded.
* It requires root use
* It daemonizes or stays in foreground
* Verbose mode for both syslog and stdout
* Users can configure it using the file /etc/mbpfan.conf

%prep
%setup -q

%build
%set_build_flags
%make_build

%install
# Installing the binaries
install -Dpm 0755 -t %{buildroot}%{_sbindir}/ bin/%{name}
install -Dpm 0755 -t %{buildroot}%{_sbindir}/ bin/%{name}-tests

# Installing the systemd service
install -Dpm 0644 -t %{buildroot}%{_unitdir}/ %{name}.service

# Installing the configuration file
install -Dpm 0644 -t %{buildroot}/etc/ %{name}.conf

# Installing the manual
install -Dpm 0644 -t %{buildroot}%{_mandir}/man8/ %{name}.8.gz

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%{_sbindir}/%{name}
%{_sbindir}/%{name}-tests
%{_unitdir}/%{name}.service
%{_mandir}/man8/mbpfan.8.*
%config(noreplace) /etc/%{name}.conf
%doc README.md AUTHORS
%license COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3242 |21cr|mbw-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name mbw
%define version 1.1
%define release 8

Summary: Memory bandwidth benchmark
Name: %name
Version:	1.5
Release:	1
License: LGPL
Source: %{name}.tar.bz2
Group: System/Kernel and hardware
Url:http://freshmeat.net/redir/mbw/64534/url_homepage/mbw

%description
Test memory copy bandwidth (single thread).
Switch off swap or make sure array size does not exceed available free RAM.

%prep
%setup -n %{name}

%build
make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 755 mbw %{buildroot}%{_bindir}/mbw
install -m 644 mbw.1 %{buildroot}%{_mandir}/man1/mbw.1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/mbw
%doc %{_mandir}/man1/mbw.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3243 |21cr|mcabber-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

Summary:	Console jabber client
Name:		mcabber
Version:	1.1.2
Release:	1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://www.lilotux.net/~mikael/mcabber/
Source0:	http://www.lilotux.net/~mikael/mcabber/files/mcabber-%{version}.tar.bz2
BuildRequires:	gpgme-devel
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libotr)
BuildRequires:	pkgconfig(loudmouth-1.0)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)

%description
Mcabber is a small jabber console client which supports SSL support, history
logging, external actions and more.

%files
%doc AUTHORS ChangeLog NEWS README TODO
%doc mcabberrc.example contrib
%{_mandir}/man1/mcabber.1*
%{_bindir}/mcabber
%{_datadir}/%{name}/
%{_libdir}/mcabber/libbeep.so
%{_libdir}/mcabber/libxttitle.so
%{_libdir}/mcabber/libfifo.so
%{_libdir}/mcabber/liburlregex.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Conflicts:	%{name} < 0.10.2-2

%description devel
Development files for %{name}.

%files devel
%{_includedir}/mcabber/*.c
%{_includedir}/mcabber/*.h
%{_libdir}/pkgconfig/mcabber.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-dependency-tracking \
	--enable-enchant \
	--enable-otr
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3244 |21cr|mcdig-0-0.git0c0ac2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 0c0ac2739231274dc66a0d3ab07f79e48b77deee
%define commit_short %(echo %{commit} | head -c6)

Summary:	Simple multicast DNS lookup utility
Name:		mcdig
Version:	0
Release:	0.git%{commit_short}.1
License:	BSD
Group:		System/Printing
Url:		https://github.com/alexpevzner/mcdig
Source0:	https://github.com/alexpevzner/mcdig/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	go

%description
It is the simple multicast DNS lookup utility, similar to dig
but much simplified.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
go build

%install
mkdir -p %{buildroot}%{_bindir}
cp %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3245 |21cr|mcelog-141-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mcelog
Version:	141
Release:	5
Summary:	The kernel machine check logger
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://www.mcelog.org
Source:		https://github.com/andikleen/mcelog/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

%description
mcelog is the user space interface to the in kernel machine check logger
on x86-64. It decodes the binary machine check records into a human
readable format.

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_mandir}/man8
mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d/
mkdir -p %{buildroot}/%{_sysconfdir}/cron.hourly/

%makeinstall etcprefix=%{buildroot}
cp mcelog.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
cp mcelog.cron %{buildroot}/%{_sysconfdir}/cron.hourly/%{name}

%files
%{_sbindir}/mcelog
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_sysconfdir}/cron.hourly/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/mcelog/mcelog.conf
/etc/mcelog/cache-error-trigger
/etc/mcelog/dimm-error-trigger
/etc/mcelog/page-error-trigger
/etc/mcelog/socket-memory-error-trigger
/etc/mcelog/bus-error-trigger
/etc/mcelog/iomca-error-trigger
/etc/mcelog/unknown-error-trigger

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3246 |21cr|mcfly-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         debug_package %{nil}

Name:           mcfly
Version:        0.9.2
Release:        1
Summary:        Shell history helper
License:        MIT
Group:          Shells
URL:            https://github.com/cantino/mcfly
Source0:        %{name}-%{version}.tar.gz
Source1:        mcfly-vendor-0.9.2.tar.xz
BuildRequires:  cargo
BuildRequires:  pkgconfig(openssl)

%description
McFly replaces your default ctrl-r shell history search 
with an intelligent search engine that takes into account 
your working directory and the context of recently 
executed commands. McFly's suggestions are prioritized 
in real time with a small neural network.

%prep
%autosetup -p1 -a1

mkdir -p .cargo
cat > .cargo/config.toml << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline %{?_smp_mflags}

%install
install -d %{buildroot}%{_sysconfdir}/bash_completion.d
install -Dm0644 %{name}.bash %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}

%files
%{_bindir}/%{name}
%{_sysconfdir}/bash_completion.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3247 |21cr|mcomix-1.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Comic book viewer
Name:		mcomix
Version:	1.2.1
Release:	3
License:	GPLv2+
Group:		Office
Url:		http://mcomix.sourceforge.net/
Source0:	http://downloads.sourceforge.net/mcomix/%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	jpeg-progs
BuildRequires:	pygtk2.0
BuildRequires:	python-pillow
BuildRequires:	python-setuptools
Requires:	jpeg-progs
Requires:	pygtk2.0
Requires:	python-pillow
Buildarch:	noarch

%description
MComix is a comic book viewer. It reads zip, rar, tar, tar.gz, and tar.bz2
archives (often called .cbz, .cbr and .cbt) as well as normal image files.

%files
%doc ChangeLog COPYING README
%{_bindir}/mcomix
%{_mandir}/man1/*
%{_datadir}/appdata/mcomix.appdata.xml
%{_datadir}/applications/*comix.desktop
%{_datadir}/mime/packages/mcomix.xml
%{_iconsdir}/hicolor/*/*/*
%{py_puresitedir}/%{name}
%{py_puresitedir}/*egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%{__python} setup.py build

%install
%{__python} setup.py install --root=%{buildroot} --skip-build

desktop-file-install --vendor='' \
	--dir %{buildroot}%{_datadir}/applications \
	--remove-category='Application' \
	--add-category='GNOME;GTK' \
	%{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3248 |21cr|mcomix3-0-0.gitdfe952.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit dfe9520bb895cfa756d892b037519ca48f537499
%define commit_short %(echo %{commit} | head -c 6)

# push/popd is bashism
%global _buildshell /bin/bash

Name:			mcomix3
# For now, choose version 0, upstream has no git tags
Version:		0
Release:		0.git%{commit_short}.1
Summary:		User-friendly, customizable image viewer for comic books
# GPL version info is from mcomix/mcomixstarter.py
License:		GPLv2+
Group:			Graphics
URL:			https://github.com/multiSnow/mcomix3
Source0:		https://github.com/multiSnow/mcomix3/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source2:		mcomix3starter.sh
Patch1:		0001-Russian-translation-in-desktop-file.patch
Patch2:		0002-Change-domain-name-for-gettext.patch
Patch3:		0003-Search-gettext-files-in-system-wide-directory.patch
BuildRequires:	/bin/bash
BuildRequires:	python3
BuildRequires:	python3-devel
BuildRequires:	%{_bindir}/appstream-util
BuildRequires:	%{_bindir}/desktop-file-install
BuildRequires:	gettext
BuildArch:		noarch

Requires:		python3-gobject
Requires:		python3-pillow
Obsoletes:		mcomix < 1.2.2
Obsoletes:		comix < 4.0.5

%description
MComix3 is a user-friendly, customizable image viewer.
It has been forked from the original MComix project and ported to python3.

%files -f %{name}.lang
%license COPYING
%doc ChangeLog
%doc README*
%doc TODO
%{_bindir}/%{name}
%{_bindir}/comicthumb
%{python3_sitelib}/%{name}/
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/thumbnailers/comicthumb.thumbnailer
%{_metainfodir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/comicthumb.1*

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
# (based on Fedora spec, quite strange one;
# people who like anime are rather strange, but I use mcomix
# to view photos, it can preload then into RAM;
# this whole package is strange)

mkdir -p localroot
python3 installer.py --srcdir=mcomix --target=$(pwd)/localroot/

# mime
pushd mime
cat mcomix.appdata.xml | \
	sed -e 's|omix|omix3|' | sed -e 's|/mcomix3/|/mcomix/|' \
	> %{name}.appdata.xml
cat mcomix.desktop | sed -e 's|omix|omix3|' > %{name}.desktop
popd

# man
pushd man
cat mcomix.1 | sed -e 's|omix|omix3|' > %{name}.1
popd

%install
cp -p [A-Z]* ..

# Install manually...
SITETOPDIR=%{python3_sitelib}/%{name}
DSTTOPDIR=%{buildroot}${SITETOPDIR}
mkdir -p ${DSTTOPDIR}
mkdir -p ${DSTTOPDIR}/mcomix3
mkdir -p %{buildroot}%{_datadir}/locale
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/

rm -rf localroot.2
cp -a localroot localroot.2

pushd localroot.2/mcomix

# Wrapper script
install -cpm 0755 %{SOURCE2} ${DSTTOPDIR}
sed -i -e 's,@python3_sitelib@,%{python3_sitelib},g' ${DSTTOPDIR}/mcomix3starter.sh
# locale files
find mcomix/messages/* -type f | while read f
do
	dir=$(dirname $f)
	mv $f $dir/%{name}.mo
done
mv mcomix/messages/* %{buildroot}%{_datadir}/locale/

# duplicate icon
for dir in mcomix/images/*x*/
do
	basedir=$(basename $dir)
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/$basedir/apps
	cp -p $dir/*png %{buildroot}%{_datadir}/icons/hicolor/$basedir/apps/%{name}.png
done

# scripts
mv comicthumb.py ${DSTTOPDIR}/
mv mcomixstarter.py ${DSTTOPDIR}/

# data files
mv mcomix/ ${DSTTOPDIR}/mcomix3/

# Ensure that all files are installed
popd # from localroot.2/mcomix
rmdir localroot.2/mcomix
rmdir localroot.2

# Wrapper symlink
# XXX TODO: make this crap somehow better
mkdir %{buildroot}/%{_bindir}
ln -sf ../../${SITETOPDIR}/mcomix3starter.sh %{buildroot}%{_bindir}/mcomix3
cp -v ${DSTTOPDIR}/mcomix3starter.sh ${DSTTOPDIR}/comicthumbstarter.sh
sed -i -e 's,mcomixstarter.py,comicthumb.py,g' ${DSTTOPDIR}/comicthumbstarter.sh
ln -sf ../../${SITETOPDIR}/comicthumbstarter.sh %{buildroot}%{_bindir}/comicthumb

# mime data
pushd mime
install -D -cpm 0644 comicthumb.thumbnailer %{buildroot}%{_datadir}/thumbnailers/comicthumb.thumbnailer
install -D -cpm 0644 %{name}.appdata.xml  %{buildroot}%{_metainfodir}/%{name}.appdata.xml

## desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
	--remove-category Application \
	--dir %{buildroot}%{_datadir}/applications/ \
	./%{name}.desktop

## Not installing mimetype icon files for now
popd # from mime

# man
pushd man
mkdir -p %{buildroot}%{_mandir}/man1
install -cpm 0644 \
	comicthumb.1 \
	%{name}.1 \
	%{buildroot}%{_mandir}/man1/
popd # from man


%find_lang %{name}

%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3249 |21cr|mcp-plugins-0.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of audio plugins for LADSPA
Name:		mcp-plugins
Version:	0.4.0
Release:	5
License:	GPLv2+
Group:		Sound
Url:		http://kokkinizita.linuxaudio.org/linuxaudio
Source0:	http://kokkinizita.linuxaudio.org/linuxaudio/downloads/MCP-plugins-%{version}.tar.bz2
Patch0:		MCP-plugins-0.4.0-optflags.patch
Requires:	ladspa

%description
A set of audio plugins for LADSPA by Fons Adriaensen.
Currently contains a phaser, a chorus and a moog vcf.

%files
%doc AUTHORS COPYING README
%{_libdir}/ladspa/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n MCP-plugins-%{version}
%patch0 -p1
perl -pi -e 's/\/usr\/lib\/ladspa/\$(DESTDIR)/g' Makefile

%build
%setup_compile_flags
%make

%install
mkdir -p %{buildroot}%{_libdir}/ladspa
make DESTDIR=%{buildroot}%{_libdir}/ladspa install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3250 |21cr|mcrypt-2.6.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Data encryption/decryption program
Name:		mcrypt
Version:	2.6.8
Release:	7
License:	GPLv2+
Group:		File tools
URL:		http://mcrypt.sourceforge.net/
Source0:	http://belnet.dl.sourceforge.net/sourceforge/mcrypt/%{name}-%{version}.tar.gz
Patch0:		mcrypt-2.6.8-format_not_a_string_literal_and_no_format_arguments.diff
BuildRequires:	libmhash-devel >= 0.8.15
BuildRequires:	libmcrypt-devel >= 2.5.0

%description
A replacement for the old unix crypt(1) command. Mcrypt uses the following
encryption (block) algorithms: BLOWFISH, DES, TripleDES, 3-WAY, SAFER-SK64,
SAFER-SK128, CAST-128, RC2 TEA (extended), TWOFISH, RC6, IDEA and GOST. The
unix crypt algorithm is also included, to allow compatibility with the crypt(1)
command. CBC, ECB, OFB and CFB modes of encryption are supported.

%prep

%setup -q
%patch0 -p0 -b .format_not_a_string_literal_and_no_format_arguments

%build

%configure

# ugly hack
export MKINSTALLDIRS="`pwd`/mkinstalldirs"
find -name "Makefile" | xargs perl -pi -e "s|^MKINSTALLDIRS.*|MKINSTALLDIRS=\"$MKINSTALLDIRS\"|g"

%make

%install
rm -rf %{buildroot}

%makeinstall

%find_lang %name

%files -f %name.lang
%doc ABOUT-NLS AUTHORS ChangeLog COPYING INSTALL NEWS README THANKS TODO doc/FORMAT doc/magic doc/sample*
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3251 |21cr|mcu8051ide-1.4.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        IDE for MCS-51 based microcontrollers
Name:           mcu8051ide
Version:        1.4.9
Release:        1
Group:          Development/Other
License:        GPLv2+
URL:            http://mcu8051ide.sourceforge.net
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  tk-devel
BuildRequires:  tcl-tcllib
BuildRequires:  tkimg
BuildRequires:  bwidget
BuildRequires:  rxvt-unicode
BuildRequires:  itcl
BuildRequires:  tdom
BuildRequires:  desktop-file-utils
Requires:       electronics-menu
Requires:       tkimg
Requires:       itcl
Requires:       tdom
Requires:       tcl-tcllib
Requires:       bwidget
Requires:       rxvt-unicode
Requires:       sdcc
Requires:       tclx
BuildArch:      noarch

%description
Integrated Development Enviroment for some MCS-51 based microcontrollers 
(e.g. AT89S8253). Supported languages are assembly and C.

%files
%doc README ChangeLog LICENSE TODO
%doc demo/
%{_datadir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/applications/mcu8051ide.desktop
%{_datadir}/appdata/mcu8051ide.appdata.xml
%{_datadir}/mime/packages/application-x-mcu8051ide.xml
%{_datadir}/pixmaps/mcu8051ide.png
%{_mandir}/man1/mcu8051ide.1.*

%prep
%setup -q 

%build
%cmake
%make

%install
%makeinstall_std -C build
desktop-file-install --vendor ""  \
--add-category "Electronics"      \
--delete-original                 \
--remove-category "Development"   \
--dir %{buildroot}%{_datadir}/applications/    \
%{buildroot}%{_datadir}/applications/%{name}.desktop

chmod 0755 `find %{buildroot} -name \*.tcl`

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3252 |21cr|md5deep-4.4-1.877613.0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         gituser         jessek
%define         gitname         hashdeep
%global         commit          877613493ff44807888ce1928129574be393cbb0
%global         shortcommit     %(c=%{commit}; echo ${c:0:6})

Summary:	Compute MD5 message digests on an arbitrary number of files
Name:		md5deep
Version:	4.4
Release:	1.%{shortcommit}.0
Group:		File tools
License:	Public Domain and GPLv2+
URL:		http://md5deep.sourceforge.net/
Source0:	https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

%description
md5deep is a cross-platform program to compute MD5 message digests
on an arbitrary number of files. The program is known to run on
Windows(tm), Linux, FreeBSD, OS X, Solaris, and should run on most
other platforms. md5deep is similar to the md5sum program found in
the GNU Coreutils package, but has the following additional
features:

* Recursive operation - md5deep is able to recursive examine an
  entire directory tree. That is, compute the MD5 for every file
  in a directory andf for every file in every subdirectory.

* Time estimation - md5deep can produce a time estimate when it's
  processing very large files.

* Comparison mode - md5deep can accept a list of known hashes and
  compare them to a set of input files. The program can display
  either those input files that match the list of known hashes or
  those that do not match.

%prep
%autosetup -p1 -n %{gitname}-%{commit}

%build
autoreconf -vif
%configure
%make

%install
%makeinstall_std

%files
%doc ChangeLog README
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3253 |21cr|md5sha1sum-0.9.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Microbrew MD5sum/SHA1sum/RIPEMD160sum
Name:		md5sha1sum
Version:	0.9.5
Release:	4
License:	GPLv2+
Group:		System/Base
URL:		http://www.microbrew.org/tools/md5sha1sum/
Source0:	http://www.microbrew.org/tools/md5sha1sum/%{name}-%{version}.tar.gz
BuildRequires:	openssl-devel
BuildRequires:	pkgconfig

%description
This toolset provides md5sum, sha1sum, and ripemd160sum. They are intended to
be drop in replacements for the tools from GNU textutils. Since installing
textutils is somewhat excessive for just two utilities, these are meant to be
the more compact and easier to install replacements. This is useful on systems
such as Solaris where most of the tools from textutils are already provided by
the vendor.

%prep

%setup -q


%build
cat > sys-setup.mk << EOF
CC=%{_bindir}/gcc
CFLAGS= %{optflags} -I%{_includedir}
LDFLAGS= %{ldflags} `pkg-config --libs openssl`
BINDIR=%{_bindir}
MD5BINNAME=ubmd5sum
SHA1BINNAME=ubsha1sum
RIPEMD160BINNAME=ubripemd160sum
EOF

%make

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 ubmd5sum %{buildroot}%{_bindir}/
ln -snf ubmd5sum %{buildroot}%{_bindir}/ubsha1sum
ln -snf ubmd5sum %{buildroot}%{_bindir}/ubripemd160sum

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%doc ChangeLog LICENSE README
%{_bindir}/ubmd5sum
%{_bindir}/ubsha1sum
%{_bindir}/ubripemd160sum

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3254 |21cr|mdbtools-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fno-strict-aliasing -Wno-error=maybe-uninitialized

%define major 3
%define libname %mklibname mdb %{major}
%define libsql %mklibname mdbsql %{major}
%define devname %mklibname mdb -d

Summary:	Access data stored in Microsoft Access databases
Name:		mdbtools
Version:	1.0.0
Release:	1
License:	GPLv2+
Group:		Development/Databases
Url:		https://github.com/brianb/mdbtools/wiki
Source0:	https://github.com/mdbtools/mdbtools/releases/download/v%{version}/mdbtools-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	txt2man
BuildRequires:	readline-devel
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
Conflicts:	%{name}-devel < 0.7.1-4

%description
MDB Tools is a suite of programs for accessing data stored in Microsoft
Access databases.

%files
%doc COPYING
%{_bindir}/mdb-*
%{_mandir}/man1/mdb-*
%{_libdir}/odbc/libmdbodbc.so
%{_libdir}/odbc/libmdbodbcW.so
%{_datadir}/bash-completion/completions/mdb-*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for accessing data stored in Microsoft Access databases
Group:		System/Libraries
Conflicts:	mdbtools-libs < 0.7.1-4
Obsoletes:	mdbtools-libs < 0.7.1-4

%description -n %{libname}
This package contains the MDB Tools library, which can be used by applications
to access data stored in Microsoft Access databases.

%files -n %{libname}
%doc AUTHORS COPYING* NEWS README*
%{_libdir}/libmdb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libsql}
Summary:	Library for accessing data stored in Microsoft Access databases
Group:		System/Libraries
Conflicts:	mdbtools-libs < 0.7.1-4

%description -n %{libsql}
This package contains the MDB Tools library, which can be used by applications
to access data stored in Microsoft Access databases.

%files -n %{libsql}
%{_libdir}/libmdbsql.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Requires:	%{libsql} = %{EVRD}
Requires:	pkgconfig(glib-2.0)
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.7.1-4
Obsoletes:	%{name}-devel < 0.7.1-4

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc HACKING NEWS
%{_libdir}/libmdb.so
%{_libdir}/libmdbsql.so
%{_libdir}/pkgconfig/libmdb*.pc
%{_includedir}/mdb*.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vif
%configure \
	--disable-static \
	--with-unixodbc="%{_prefix}"
%make

%install
%makeinstall_std



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3255 |21cr|mdf2iso-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mdf2iso
Version:	0.3.0
Release:	4
Summary:	Alkohol 120 CD Images (.mdf) to ISO converter
License:	GPL
Group:		Archiving/Other
URL:		http://mdf2iso.berlios.de/
Source:		%{name}-%{version}-src.tar.bz2
Patch0:		mdf2iso-0.3.0-largefiles.patch

%description
MDF2ISO is a very simple utility to convert an Alcohol 120 bin images
to the standard ISO-9660 format.

%prep
%setup -q -n %{name}
%patch0 -p1

%build
%configure
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std

%clean
%__rm -rf %{buildroot}

%files
%doc ChangeLog gpl.txt
%{_bindir}/mdf2iso

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3256 |21cr|mdns-scan-0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for scanning mDNS/DNS-SD published services in local network
Name:		mdns-scan
Version:	0.5
Release:	4
License:	GPLv2+
Group:		Networking/Other
Url:		http://freecode.com/projects/mdns-scan
Source0:	http://0pointer.de/lennart/projects/mdns-scan/mdns-scan-%{version}.tar.gz

%description
mdns-scan is a tool for scanning for mDNS/DNS-SD published services
on the local network. It issues a mDNS PTR query to the special RR
_services._dns-sd._udp.local for retrieving a list of all currently
registered services on the local link.

%files
%doc LICENSE README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3257 |21cr|mdp-1.0.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Command-line based markdown presentation tool
Name:		mdp
Version:	1.0.15
Release:	1
License:	GPLv3
Group:		Office
Url:		https://github.com/visit1985/mdp
Source0:	https://github.com/visit1985/mdp/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)

%description
A command-line based markdown presentation tool.

%files
%{_bindir}/*
%{_mandir}/man1/mdp.1.xz

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
%makeinstall_std PREFIX=/usr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3258 |21cr|mdsplib-0.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname metar %{major}
%define devname %mklibname metar -d

Summary:	METAR Decoder Software Package Library
Name:		mdsplib
Version:	0.11
Release:	6
License:	LGPLv2+
Group:		System/Libraries
Source:		http://limulus.net/mdsplib/%{name}-%{version}.tar.bz2
Patch0:		mdsplib-fmtstr.patch
# fedora patches
Patch10:	mdsplib-0.11-makefile.patch
Patch11:	mdsplib-0.11-nullcheck.patch
Patch12:	mdsplib-0.11-shared.patch
Patch13:	mdsplib-0.11-typeerror.patch

%description
The MDSP Library provides a programmer with two functions, the major one
being DcdMETAR, which decodes a METAR into structures provided by the
library. Also prtDMETR, which prints out a decoded METAR structure.

The MDSP was written by Carl McCalla and released to the public by the
US National Weather Service. The MDSP Library is the original MDSP
modified to compile and run on *NIX systems.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	METAR Decoder Software Package Library
Group:		System/Libraries

%description -n %{libname}
The MDSP Library provides a programmer with two functions, the major one
being DcdMETAR, which decodes a METAR into structures provided by the
library. Also prtDMETR, which prints out a decoded METAR structure.

The MDSP was written by Carl McCalla and released to the public by the
US National Weather Service. The MDSP Library is the original MDSP
modified to compile and run on *NIX systems.

This package contains the shared library.

%files -n %{libname}
%{_libdir}/libmetar.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for libmetar
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	mdsplib-devel = %{EVRD}
Provides:	metar-devel = %{EVRD}

%description -n %{devname}
The MDSP Library provides a programmer with two functions, the major one
being DcdMETAR, which decodes a METAR into structures provided by the
library. Also prtDMETR, which prints out a decoded METAR structure.

The MDSP was written by Carl McCalla and released to the public by the
US National Weather Service. The MDSP Library is the original MDSP
modified to compile and run on *NIX systems.

This package contains the development headers.

%files -n %{devname}
%doc HISTORY README README.MDSP
%{_libdir}/libmetar.so
%{_includedir}/metar.h

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%make CFLAGS="%{optflags} -fPIC"

%install
%makeinstall_std libdir=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3259 |21cr|mdvinput-1.6.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small programm for set keyboard, mouse and touchpad
Name:		mdvinput
Version:	1.6.2
Release:	8
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://mandriva-lxde.googlecode.com
Source0:	http://mandriva-lxde.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		mdvinput-1.6.2-missing-locale.patch
Patch1:		mdvinput-1.6.2-fix-config.patch
Requires:	pygtk2.0
Requires:	python-configobj
Recommends:	x11-driver-input-synaptics
BuildArch:	noarch

%description
Small utility for setup keyboard, mouse and touchpad.

%files
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/locale/*
%{_datadir}/%{name}
%{_prefix}/lib/%{name}

#-------------------------------------------------------------

%prep
%setup -q
%apply_patches

%install
mkdir -p %{buildroot}%{_prefix}
mkdir -p %{buildroot}%{_prefix}/lib
mkdir -p %{buildroot}%{_datadir}/applications

cp -rf ./bin %{buildroot}%{_prefix}/
cp -rf ./share %{buildroot}%{_prefix}/
cp -rf ./mdvinput %{buildroot}%{_prefix}/lib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3260 |21cr|meandmyshadow-0.5a-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Me and My Shadow is a puzzle/platform game
Name:		meandmyshadow
Version:	0.5a
Release:	4
License:	GPLv3+
Group:		Games/Arcade
Url:		https://acmepjz.github.io/meandmyshadow/
Source0:	https://sourceforge.net/projects/%{name}/files/%{version}/%{name}-%{version}-src.tar.gz
Patch0:		meandmyshadow-0.5a-no-SDL2MAIN_LIBRARY.patch
BuildRequires:	cmake
BuildRequires:	git
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_gfx)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(x11)

%description
Me and My Shadow is a free libre puzzle/platform game in which you try to
reach the exit by solving puzzles. Spikes, moving blocks, fragile blocks
and much more stand between you and the exit. Record your moves and let your
shadow mimic them to reach blocks you couldn't reach alone.

%files
%doc README.md ChangeLog AUTHORS
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

find . -type f -exec chmod 0644 '{}' \;

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3261 |21cr|med-4.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libmed %mklibname %{name} %{major}
%define libmedC %mklibname medC %{major}

%define medimportmajor 0
%define libmedimport %mklibname medimport %{medimportmajor}

%define medfwrapmajor 11
%define libmedfwrap %mklibname medfwrap %{medfwrapmajor}
%define devname %mklibname %{name} -d

Name:		med
Version:	4.1.0
Release:	2
Summary:	Library to exchange meshed data
Group:		System/Libraries
License:	LGPLv3+
URL:		http://www.salome-platform.org/user-section/about/med
Source0:	http://files.salome-platform.org/Salome/other/%{name}-%{version}.tar.gz

# - Install headers in %%_includedir/med
# - Install cmake config files to %%_libdir/cmake
# - Install doc to %%_pkgdocdir
Patch0:		med_cmake.patch

BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gcc-gfortran
BuildRequires:	hdf5-devel
BuildRequires:	python3-devel
BuildRequires:	swig
BuildRequires:	zlib-devel

%description
MED-fichier (Modélisation et Echanges de Données, in English Modelisation
and Data Exchange) is a library to store and exchange meshed data or
computation results. It uses the HDF5 file format to store the data.

#--------------------------------------------------------------------

%package -n %{libmed}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libmed}
%{name} shared library.

%files -n %{libmed}
%{_libdir}/libmed.so.%{major}*

#--------------------------------------------------------------------

%package -n %{libmedC}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libmedC}
%{name} shared library.

%files -n %{libmedC}
%{_libdir}/libmedC.so.%{major}*

#--------------------------------------------------------------------

%package -n %{libmedimport}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libmedimport}
%{name} shared library.

%files -n %{libmedimport}
%{_libdir}/libmedimport.so.%{medimportmajor}*

#--------------------------------------------------------------------

%package -n %{libmedfwrap}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libmedfwrap}
%{name} shared library.

%files -n %{libmedfwrap}
%{_libdir}/libmedfwrap.so.%{medfwrapmajor}*

#--------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings for %{name}
Group:		Development/Python
Requires:	%{libmed} = %{EVRD}

%description -n python3-%{name}
The python3-%{name} package contains python3 bindings for %{name}.

%files -n python3-%{name}
%{python3_sitearch}/%{name}/

#--------------------------------------------------------------------

%package tools
Summary:	Runtime tools for %{name}
Group:		Development/Tools
Requires:	%{libmed} = %{EVRD}
Requires:	tk

%description tools
This package contains runtime tools for %{name}:
  - mdump: a tool to dump MED files
  - xmdump: graphical version of mdump.
  - medconforme: a tool to validate a MED file
  - medimport: a tool to convert a MED v2.1 or v2.2 file into a MED v2.3 file

%files tools
%{_bindir}/*mdump*
%{_bindir}/medconforme
%{_bindir}/medimport

#--------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libmed} = %{EVRD}
Requires:	%{libmedC} = %{EVRD}
Requires:	%{libmedimport} = %{EVRD}
Requires:	%{libmedfwrap} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files devel
%{_libdir}/*.so
%{_libdir}/cmake/MEDFile/
%{_includedir}/%{name}/

#--------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
BuildArch:	noarch

%description doc
The %{name}-doc package contains the documentation for %{name}.

%files doc
%license COPYING.LESSER
%doc %{_docdir}/med

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

# Fix file not utf8
iconv --from=ISO-8859-1 --to=UTF-8 ChangeLog > ChangeLog.new && \
touch -r ChangeLog ChangeLog.new && \
mv ChangeLog.new ChangeLog


%build
%cmake -DMEDFILE_BUILD_PYTHON=1 \
    -DPYTHON_EXECUTABLE=%{__python3} \
    -DPYTHON_INCLUDE_DIR=%{_includedir}/python%{python3_version}$(python3-config --abiflags)/ \
    -DPYTHON_LIBRARY=%{_libdir}/libpython%{python3_version}$(python3-config --abiflags).so \
    -G Ninja
%ninja_build


%install
%ninja_install -C build

# Remove test-suite files
rm -rf %{buildroot}%{_bindir}/testc
rm -rf %{buildroot}%{_bindir}/testf
rm -rf %{buildroot}%{_bindir}/testpy

%check
ctest -V || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3262 |21cr|mediadownloader-1.5.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt4 based viewer and downloader for Google Image and YouTube
Name:		mediadownloader
Version:	1.5.2
Release:	7
License:	GPLv3+
Group:		Networking/WWW
Url:		http://mediadownloader.cz.cc/
Source0:	http://download.sourceforge.net/googleimagedown/project/%{name}_%{version}-src.tar.gz
Patch0:		%{name}-1.5.1-fix_appdata_path.patch
BuildRequires:	desktop-file-utils
BuildRequires:	qt4-devel
BuildRequires:	phonon-qt4-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	imagemagick
Requires:	ffmpeg
Recommends:	lame-mp3x
Requires:	mplayer

%description
Mediadownloader is a Qt4 based software that let you search, watch and
download items with Google Image and YouTube. Search results are displayed as
thumbnails within a nice mouse scrollable view. It can also make a slide show
of searched videos and images, set images as wallpaper, save and restore
searches, make multiple searches by a given text file, and convert local
videos or videos while downloading with a dedicated ffmpeg GUI front-end.
It will also look at the Firefox cache to catch video streaming contents while
browsing.

%files
%doc COPYING README.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/css/*.css
%{_datadir}/%{name}/ffmpeg-presets/*.ffpreset
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%qmake_qt4
%make

%install
%makeinstall_qt

# This is still required to modify the .desktop file
rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install -m 644 --copy-name-to-generic-name --dir %{buildroot}%{_datadir}/applications %{name}.desktop

# Manually move the other required files
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}/css
mkdir -p %{buildroot}%{_datadir}/%{name}/ffmpeg-presets
install -p -m 644 ./css/*.css %{buildroot}%{_datadir}/%{name}/css
install -p -m 644 ./ffmpeg-presets/*.ffpreset %{buildroot}%{_datadir}/%{name}/ffmpeg-presets

# For the icons first install the provided one
install -Dm 644 icons/%{name}.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
# then resize it to the needed sizes and place the result in the right dirs
for size in 96x96 64x64 48x48 32x32 22x22 16x16
do
    install -p -dm 0755 %{buildroot}%{_iconsdir}/hicolor/${size}/apps
    convert -resize ${size} icons/%{name}.png %{buildroot}%{_iconsdir}/hicolor/${size}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3263 |21cr|media-player-info-21-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Media Player Information
Name:		media-player-info
Version:	21
Release:	6
Group:		System/Kernel and hardware
License:	BSD
Url:		http://people.freedesktop.org/~teuf/media-player-info/
Source0:	http://people.freedesktop.org/~teuf/media-player-info/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3
BuildRequires:	pkgconfig(udev)

%description
This is the freedesktop.org media player information database.

This package contains udev rules to identify media players as well as a 
compilation of .mpi files describing the media player capabilities of these
devices. This information used to live in hal-info, but it has been moved to 
its own package as part of the "halectomy".

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%doc README NEWS
%dir %{_datadir}/media-player-info
 %{_datadir}/media-player-info/*.mpi
/lib/udev/rules.d/40-usb-media-players.rules
/lib/udev/hwdb.d/20-usb-media-players.hwdb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3264 |21cr|mediatomb-0.12.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

Summary:	UPnP AV MediaServer
Name:		mediatomb
Version:	0.12.1
Release:	12
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://mediatomb.cc
Source0:	http://downloads.sourceforge.net/mediatomb/%{name}-%{version}.tar.gz
Source1:	mediatomb.logrotate
Source2:	80-mediatomb.preset
Source3:	mediatomb.service
# Adds parallel init info to init.d script - AdamW 2007/06
Patch0:		mediatomb-0.11.0-initinfo.patch
Patch1:		mediatomb-0.12.1-gcc46.patch
Patch2:		mediatomb-0.12.1-gcc47.patch
Patch3:		mediatomb-0.12.1-mozjs185.patch
Patch4:		mediatomb-0.12.1.tonewjs.patch
Patch5:		mediatomb-0.12.1-jsparse.patch
Patch6:		mediatomb-0.12.1-libmp4v2.patch
# Diff from upstream
Patch7:		mediatomb-0.12.1-ffmpeg2.5.patch
BuildRequires:	file
# For systemd macros
BuildRequires:	systemd-units
BuildRequires:	ffmpeg-devel
BuildRequires:	libmp4v2-devel
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(mozjs185)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(taglib)
Requires(pre,post,postun):	rpm-helper
Requires(post,preun):	systemd

%description
MediaTomb - UPnP AV Mediaserver for Linux.

%files
%doc README README.UTF_8 AUTHORS ChangeLog INSTALL doc/doxygen.conf
%doc doc/scripting.txt doc/scripting_utf8.txt
%{_sysconfdir}/logrotate.d/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_presetdir}/80-%{name}.preset
%{_unitdir}/%{name}.service
%defattr(-,%{name},%{name})
%config(noreplace) %{_sysconfdir}/%{name}.conf
%ghost %{_logdir}/%{name}

%pre
# Create a user
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/false

%post
%systemd_post %{name}.service

# Create initial log file so that logrotate doesn't complain
if [ $1 = 1 ]; then
   %create_ghostfile %{_logdir}/%{name} root root 644
fi

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1

%build
autoreconf -fi
%configure \
	--enable-taglib \
	--enable-libjs \
	--with-js-h=%{_includedir}/js \
	--enable-external-transcoding \
	--enable-protocolinfo-extension

%make

%install
install -D -m 0644 %{SOURCE2} %{buildroot}%{_presetdir}/80-%{name}.preset
install -D -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0755 config/mediatomb-conf-fedora %{buildroot}%{_sysconfdir}/%{name}.conf

%makeinstall_std

mkdir -p %{buildroot}%{_logdir}
touch %{buildroot}%{_logdir}/%{name}
install -D -m 644 %{SOURCE1} %{buildroot}/etc/logrotate.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3265 |21cr|mednafen-1.32.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A multi-system consoles emulator
Name:		mednafen
Version:	1.32.1
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		https://mednafen.github.io
Source0:	https://mednafen.github.io/releases/files/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	gettext
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(flac) >= 1.3.0
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(lzo2) >= 2.0.9
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
ExcludeArch:	%{ix86}

%description
A portable, utilizing OpenGL and SDL, argument(command-line)-driven
multi-system emulator. It has the ability to remap hotkey functions and
virtual system inputs to a keyboard, a joystick, or both simultaneously. Save
states are supported, as is real-time game rewinding. Screen snapshots may be
taken, in the PNG file format, at the press of a button. It can also record
audiovisual movies in the QuickTime file format, with several different
lossless codecs supported. The following systems are supported (refer to the
emulation module documentation for more details):
* Apple II/II+
* Atari Lynx
* Neo Geo Pocket (Color)
* WonderSwan
* GameBoy (Color)
* GameBoy Advance
* Nintendo Entertainment System
* Super Nintendo Entertainment System/Super Famicom
* Virtual Boy
* PC Engine/TurboGrafx 16 (CD)
* SuperGrafx
* PC-FX
* Sega Game Gear
* Sega Genesis/Megadrive
* Sega Master System
* Sega Saturn (experimental, x86_64 only)
* Sony PlayStation.
Due to the threaded model of emulation used and limitations of SDL, a joystick
is preferred over a keyboard to play games, as the joystick will have slightly
less latency, although the latency differences may not be perceptible to most
people. Warning: there is is no GUI included in this package.

%files -f %{name}.lang
%doc ABOUT-NLS ChangeLog TODO Documentation/*
%license COPYING
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

# Fix perms
find ./src -type f -exec chmod 644 '{}' +
find ./src -type d -exec chmod 755 '{}' +


%build
autoreconf -vfi
# TODO: Add once dependencies become available
# --with-external-mpcdec - need 1.3.0
# --with-external-tremor
# --with-external-trio
%configure \
	--disable-rpath	\
	--with-external-lzo
%make


%install
%makeinstall_std

# Documentation cleanup
rm -rf Documentation/*.def Documentation/*.php Documentation/generate.sh \
		Documentation/Makefile.* Documentation/docgen.inc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3266 |21cr|mednafen-server-0.5.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mednafen Network Play Server
Name:		mednafen-server
Version:	0.5.2
Release:	3
License:	GPLv2+
Group:		Emulators
Url:		http://mednafen.sourceforge.net/
Source0:	http://downloads.sourceforge.net/mednafen/%{name}-%{version}.tar.gz

%description
This CLI-driven server aims at providing multiplayer gaming over a LAN
for mednafen emulator.

Look at the provided documentation for an example config file and usage.

%files
%doc ChangeLog README TODO run.sh standard.conf
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3267 |21cr|mednaffe-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Seems to have issues when built with optflags, so we don't use them here
%global optflags %{nil}
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	A front-end (GUI) for Mednafen emulator
Name:		mednaffe
Version:	0.9.3
Release:	1
License:	GPLv3+
Group:		Emulators
Url:		https://code.google.com/p/mednaffe/
Source0:	https://github.com/AmatCoder/mednaffe/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	mednafen
ExcludeArch:	%{ix86}

%description
Mednaffe is a front-end (GUI) for Mednafen emulator.

For now Mednaffe only works with 0.9.3x-WIP versions of mednafen emulator.

%files
%doc COPYING ChangeLog README AUTHORS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3268 |21cr|megaglest-3.13.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# no matter what, ignores -lssl -lcrypto dependency of -lcurl
%define	_disable_ld_as_needed 1

Summary:	Open Source 3d real time strategy game
Name:		megaglest
Version:	3.13.0
Release:	7
License:	GPLv3+
Group:		Games/Strategy
Url:		http://megaglest.org/
Source0:	https://github.com/MegaGlest/megaglest-source/releases/download/3.13.0/%{name}-source-%{version}.tar.xz
# Correct usage of xvfb-run when generating manpages
Patch0:		megaglest-3.12.0-help2man.patch
# Do not fail with cryptic message if there are missing translations
# just use english text
Patch1:		megaglest-3.9.1-translation-missing.patch
# Do not overwrite system compiler flags
Patch4:		megaglest-3.12.0-flags.patch
# from Fedora
Patch5:		megaglest-feathery_ftp.patch
Patch6:		megaglest-lua.patch
Patch7:		megaglest-underlink.patch
Patch8:		megaglest-xerces.patch
BuildRequires:	cmake
BuildRequires:	help2man
BuildRequires:	subversion
BuildRequires:	x11-server-xvfb
BuildRequires:	libircclient-static-devel
BuildRequires:	miniupnpc-devel
BuildRequires:	wxgtku-devel
BuildRequires:	pkgconfig(ftgl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	pkgconfig(zlib)
Requires:	glxinfo
Requires:	%{name}-data = %{version}
Requires:	p7zip
ExcludeArch:	%{ix86}

%description
MegaGlest is an open source 3D-real-time strategy game, where you control
the armies of one of seven different factions: Tech, Magic, Egyptians,
Indians, Norsemen, Persian or Romans. The game is setup in one of 16
naturally looking settings, which -like the unit models- are crafted with
great appreciation for detail. Additional game data can be downloaded from
within the game at no cost.

%files
%doc docs/AUTHORS.source_code.txt
%doc docs/CHANGELOG.txt
%doc docs/gnu_gpl_3.0.txt
%doc docs/README.txt
%license docs/COPYRIGHT.source_code.txt
%{_mandir}/man6/*.6*
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}/*

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DMEGAGLEST_BIN_INSTALL_PATH=games/ \
	-DMEGAGLEST_DATA_INSTALL_PATH=share/games/%{name}/ \
	-DMEGAGLEST_ICON_INSTALL_PATH=share/icons/hicolor/48x48/apps/ \
	-DCMAKE_BUILD_TYPE=RELWITHDEBINFO
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3269 |21cr|megaglest-data-3.13.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mega Glest data files
Name:		megaglest-data
Version:	3.13.0
Release:	2
License:	Creative Commons Attribution
Group:		Games/Strategy
Url:		http://megaglest.org/
Source0:	https://github.com/MegaGlest/megaglest-data/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
# Some files moved from main package here
Conflicts:	megaglest < 3.12.0
BuildArch:	noarch
ExcludeArch: %{ix86}

%description
MegaGlest is an open source 3D-real-time strategy game, where you control
the armies of one of seven different factions: Tech, Magic, Egyptians,
Indians, Norsemen, Persian or Romans. The game is setup in one of 16
naturally looking settings, which -like the unit models- are crafted with
great appreciation for detail. Additional game data can be downloaded from
within the game at no cost.

%files
%doc docs/*
%{_gamesdatadir}/megaglest
%{_datadir}/appdata/megaglest.appdata.xml
%{_datadir}/appdata/megaglest_editor.appdata.xml
%{_datadir}/applications/megaglest.desktop
%{_datadir}/applications/megaglest_editor.desktop
%{_datadir}/applications/megaglest_g3dviewer.desktop
%{_iconsdir}/*
%{_datadir}/menu/megaglest

#----------------------------------------------------------------------------

%prep
%setup -qn megaglest-%{version}

%build
%cmake \
	-DMEGAGLEST_BIN_INSTALL_PATH=%{_gamesbindir} \
	-DMEGAGLEST_ICON_INSTALL_PATH=%{_iconsdir} \
	-DMEGAGLEST_DATA_INSTALL_PATH=%{_gamesdatadir}/megaglest
%make

%install
%makeinstall_std -C build
rm -fr %{buildroot}%{_gamesdatadir}/megaglest/docs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3270 |21cr|megamario-1.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		megamario
Version:	1.7
Release:	4
Summary:	Super Mario Bros 1 clone
Group:		Games/Arcade
License:	LGPLv2.1
URL:		http://mmario.sourceforge.net/
Source0:	http://downloads.sourceforge.net/mmario/MegaMario_v%{version}_full.zip
Source1:	%{name}.desktop
Patch0:		megamario-1.5-compile-fix.patch
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
Requires:	hicolor-icon-theme

%description
MegaMario is a clone of the well know platform game Super Mario Bros 1.
In the game you play Mario, and your task is to free his brother Luigi,
who was captured by the evil Bowser.


%prep
%setup -q -c
%patch0 -p1
sed -i 's/\r//' *.txt

%build
%make PREFIX=%{_prefix} CFLAGS="$RPM_OPT_FLAGS -fsigned-char"
convert -transparent '#FF00FF' data/gfx/characters/small/player1r.PNG %{name}.png

%install
%makeinstall PREFIX=%{buildroot}%{_prefix}
# cruft removal
rm %{buildroot}%{_datadir}/megamario/levels/1/1
rm %{buildroot}%{_datadir}/megamario/levels/11/mai
rm %{buildroot}%{_datadir}/megamario/save.sav

# below is the desktop file and icon stuff.
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
install -p -m 644 %{name}.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps


%files
%doc CONTROLS.txt readme.txt fixes_v%{version}.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3271 |21cr|megapixels-0.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Camera app for mobile devices
Name:		megapixels
Version:	0.16.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
URL:		https://git.sr.ht/~martijnbraam/megapixels
Source0:	%{name}-%{version}.tar.gz
Source1:	ch.lindev.camera.svg
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(zbar)
# For postprocess.sh
Requires:	imagemagick
Requires:	libraw-tools
Recommends:	perl-Image-ExifTool

%description
Camera app for mobile devices

%files
%{_bindir}/megapixels
%{_bindir}/megapixels-camera-test
%{_bindir}/megapixels-list-devices
%{_datadir}/applications/org.postmarketos.Megapixels.desktop
%{_datadir}/icons/hicolor/scalable/apps/org.postmarketos.Megapixels.svg
%{_datadir}/megapixels
%{_appdatadir}/org.postmarketos.Megapixels.metainfo.xml

#-------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dtiffcfapattern=true

%meson_build

%install
%meson_install

# Replace the text and icons -- we want a newbie to be able
# to find the camera app without knowing its name
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
cp -f %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/org.postmarketos.Megapixels.svg
sed -i -e 's,^Name=Megapixels,Name=Camera,' %{buildroot}%{_datadir}/applications/org.postmarketos.Megapixels.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3272 |21cr|megasync-4.9.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sdkversion 4.20.0

%define _disable_ld_no_undefined 1

Summary:	Easy automated syncing between your computers and your MEGA cloud drive
Name:		megasync
Version:	4.9.1.0
Release:	1
License:	Freeware
Group:		Networking/File transfer
Url:		https://mega.co.nz
Source0:	https://github.com/meganz/MEGAsync/archive/v%{version}_Linux.tar.gz?/MEGAsync-%{version}_Linux.tar.gz
Source11:	https://github.com/meganz/sdk/archive/v%{sdkversion}.tar.gz?/sdk-%{sdkversion}.tar.gz
Patch0:		megasync-sdk-ffmpeg.patch
# readline-devel conflict with termcap-devel
Patch1:		megasync-remove-termcap.patch
Patch3:		megasync-fix-undefined.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	ffmpeg-devel
BuildRequires:	fontpackages-filesystem
BuildRequires:	gtest-devel
BuildRequires:	gmock-devel
BuildRequires:	libgomp-devel
BuildRequires:	libstdc++-static-devel
BuildRequires:	nodejs
BuildRequires:	terminus-font
BuildRequires:	qt5-linguist
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(cryptopp)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmediainfo)
BuildRequires:	pkgconfig(libpcrecpp)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	%{_lib}freeimage-devel
BuildRequires:	%{_lib}readline-devel
#BuildRequires:	%{_lib}termcap-devel
BuildRequires:	%{_lib}uv-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
Secure:
Your data is encrypted end to end. Nobody can intercept it while in storage
or in transit.

Flexible:
Sync any folder from your PC to any folder in the cloud. Sync any number of
folders in parallel.

Fast:
Take advantage of MEGA's high-powered infrastructure and multi-connection
transfers.

Generous:
Store up to 50 GB for free!

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/applications/megasync.desktop
%{_datadir}/doc/megasync
%{_datadir}/icons/hicolor/*/*/mega.png
%{_iconsdir}/hicolor/scalable/status
%{_iconsdir}/ubuntu-mono-dark/status/24

#----------------------------------------------------------------------------

%prep
%setup -qn MEGAsync-%{version}_Linux -a11
cp -r ./sdk-%{sdkversion}/* ./src/MEGASync/mega/
%apply_patches

%build
##__build sdk__##
pushd src/MEGASync/mega
ln -s  %{_includedir}/FreeImage.h include/FreeImageConfig.h
%cmake -DUSE_PDFIUM=0
%make V=1
popd

##__build MEGAsync__##
pushd src
%configure
export DESKTOP_DESTDIR=%{buildroot}%{_prefix}

%qmake_qt5 DESTDIR=%{buildroot}%{_bindir} THE_RPM_BUILD_ROOT=%{buildroot}
lrelease-qt5 MEGASync/MEGASync.pro
%make
popd

%install
pushd src
%makeinstall_std DESTDIR=%{buildroot}

desktop-file-install \
	--add-category="Network" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3273 |21cr|mei-amt-check-1.0-0.20190331.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit ec921d1e0a2ac770e7835589a28b85bc2f15200c
%define date 20190331

Summary:	Check whether AMT is enabled and provisioned under Linux
Name:		mei-amt-check
Version:	1.0
Release:	0.%{date}.1
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		https://github.com/mjg59/mei-amt-check
Source0:	%{name}.tar.xz

%description
Check whether AMT is enabled and provisioned under Linux.

%files
%doc LICENSE README*
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
gcc %{optflags} mei-amt-check.c -o mei-amt-check

%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3274 |21cr|meld-3.22.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define urlver %(echo %{version}|cut -d. -f1,2)

Summary:	Visual diff and merge tool
Name:		meld
Version:	3.22.2
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://meldmerge.org/
Source0:	https://ftp.gnome.org/pub/GNOME/sources/meld/%{urlver}/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	python3dist(distro)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(py3cairo)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
Requires:	patch
Requires:	python3-gi
Requires:	python3-gi-cairo
Requires:	typelib(PangoFT2)
Requires:	typelib(GtkSource) = 4
BuildArch:	noarch

%description
Meld is a visual diff and merge tool targeted at developers. It helps you
compare files, directories, and version controlled projects. It provides
two-and three-way comparison of both files and directories, and the tabbed
interface allows you to open many diffs at once. Meld has has support for many
popular version control systems including Git, Mercurial, Bazaar, SVN and CVS.
The diff viewer lets you edit files in place (diffs update dynamically), and
a middle column shows detailed changes and allows merges. The margins show
location of changes for easy navigation.

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_appdatadir}/org.gnome.Meld.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_datadir}/mime/packages/org.gnome.Meld.xml
%{_datadir}/%{name}
%{_iconsdir}/*/*/*/
%{_mandir}/man?/meld.?.*
%{python3_sitelib}/%{name}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	--delete-original \
	--add-category="GTK" \
	--remove-category="Application" \
	%{buildroot}%{_datadir}/applications/org.gnome.Meld.desktop

rm -rf %{buildroot}%{_defaultdocdir}/%{name}-%{version}

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3275 |21cr|memkind-1.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		memkind
Summary:	User Extensible Heap Manager
Group:		Development/Other
Version:	1.14.0
Release:	1
License:	BSD
URL:		http://memkind.github.io/memkind
Source0:	https://github.com/memkind/memkind/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	numactl-devel
BuildRequires:	systemd
BuildRequires:	pkgconfig(libdaxctl)

# Upstream testing of memkind is done exclusively on x86_64; other archs
# are unsupported but may work.
ExclusiveArch: x86_64 ppc64 ppc64le s390x aarch64


%description
The memkind library is an user extensible heap manager built on top of
jemalloc which enables control of memory characteristics and a
partitioning of the heap between kinds of memory.  The kinds of memory
are defined by operating system memory policies that have been applied
to virtual address ranges. Memory characteristics supported by
memkind without user extension include control of NUMA and page size
features. The jemalloc non-standard interface has been extended to
enable specialized arenas to make requests for virtual memory from the
operating system through the memkind partition interface. Through the
other memkind interfaces the user can control and extend memory
partition features and allocate memory while selecting enabled
features. This software is being made available for early evaluation.
Feedback on design or implementation is greatly appreciated.

%files
%{_libdir}/lib%{name}.so.*
%{_libdir}/libautohbw.so.*
%{_libdir}/libmemtier.so.*
%{_bindir}/memtier
%{_bindir}/%{name}-hbw-nodes
%{_bindir}/%{name}-auto-dax-kmem-nodes
%{_mandir}/man1/%{name}*.1.*
%{_mandir}/man1/memtier.1.*
%{_mandir}/man3/libmemtier.3.*
%{_mandir}/man7/libmemtier.7.*
%{_mandir}/man7/autohbw.7.*
%{_mandir}/man7/memtier.7.*
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/README
%license %{_docdir}/%{name}/COPYING

#--------------------------------------------------------------------
%package devel
Summary:	Memkind User Extensible Heap Manager development lib and tools
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Install header files and development aids to link memkind library 
into applications. The memkind library is an user extensible heap manager 
built on top of jemalloc which enables control of memory characteristics and
heap partitioning on different kinds of memory. This software is being made 
available for early evaluation. The memkind library should be considered 
pre-alpha: bugs may exist and the interfaces may be subject to change prior to 
alpha release. Feedback on design or implementation is greatly appreciated.

%files devel
%{_includedir}/%{name}*.h
%{_includedir}/hbwmalloc.h
%{_includedir}/hbw_allocator.h
%{_includedir}/pmem_allocator.h
%{_includedir}/fixed_allocator.h
%{_libdir}/lib%{name}.so
%{_libdir}/libautohbw.so
%{_libdir}/libmemtier.so
%{_libdir}/pkgconfig/memkind.pc
%{_mandir}/man3/%{name}*.3.*
%{_mandir}/man3/hbwmalloc.3.*
%{_mandir}/man3/hbwallocator.3.*
%{_mandir}/man3/pmemallocator.3.*
%{_mandir}/man3/fixedallocator.3.*

#--------------------------------------------------------------------

%prep
%setup -q -a0 -n %{name}-%{version}

echo %{version} > VERSION

%build
cd %{_builddir}/%{name}-%{version}
echo %{version} > %{_builddir}/%{name}-%{version}/VERSION

aclocal
autoheader
autoreconf --install

pushd jemalloc
./autogen.sh
popd

#autogen.sh fail in rebuild configure script, configure macros also
#fail - its rebuild configure script

#test -f configure || ./autogen.sh
./configure --enable-secure --enable-tls --prefix=%{_prefix} --libdir=%{_libdir} \
	   --includedir=%{_includedir} --sbindir=%{_sbindir} --bindir=%{_bindir} \
	   --mandir=%{_mandir} --docdir=%{_docdir}/%{name} \
	   CFLAGS="$RPM_OPT_FLAGS -std=gnu99 -Wno-error=strict-aliasing" LDFLAGS="%{build_ldflags}"
%make

%install
cd %{_builddir}/%{name}-%{version}
make DESTDIR=%{buildroot} INSTALL='install -p' install
rm -f %{buildroot}/%{_libdir}/lib%{name}.{l,}a
rm -f %{buildroot}/%{_libdir}/libautohbw.{l,}a
rm -f %{buildroot}/%{_libdir}/libmemtier.{l,}a
rm -f %{buildroot}/%{_docdir}/%{name}/VERSION

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3276 |21cr|memonix-1.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		memonix
Version:	1.6
Release:	5
Summary:	Brain teasers, puzzle and memory games for kid's in one pack
Group:		Games/Puzzles
License:	GPLv3
URL:		http://www.viewizard.com/memonix/
Source:		http://www.viewizard.com/download/%{name}_%{version}_src.tar.bz2
Patch0:		memonix-1.6-datapath.patch
Patch1:		memonix-1.6-default-mode.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(x11)

%description
Memonix is the latest version of a wonderful collection of four brain
twisters, including Mosaic, Builder, Pair and Jig-Saw. While being
amazingly addictive and fun to play, these games can be used to improve
your child’s memory, thinking and reaction. Five difficulty levels from
normal to obscene plus the timer mean that the challenge will never run
away. Joyful music and brightly-colored visuals maximize the excitement
from the gameplay.

%prep
%setup -q -c %{name}-%{version}
%patch0 -p0
%patch1 -p0

%build
pushd MemonixSourceCode
%cmake
%make
popd

for N in 16 32 64 128; do convert icon48.png -resize ${N}x${N} $N.png; done

%install
install -D MemonixSourceCode/build/Memonix %{buildroot}%{_gamesbindir}/%{name}

install -D gamedata.vfs %{buildroot}%{_gamesdatadir}/%{name}/gamedata.vfs

install -D 16.png %{buildroot}%{_miconsdir}/%{name}.png
install -D 32.png %{buildroot}%{_liconsdir}/%{name}.png
install -D 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# menu-entry
mkdir -p  %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Memonix
Comment=Brain teasers, puzzle and memory games
Exec=memonix
Icon=memonix
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

%files
%doc MemonixSourceCode/ReadMe.txt MemonixSourceCode/License.txt MemonixSourceCode/gpl-3.0.txt
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3277 |21cr|memtester-4.3.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Memory tester
Name:		memtester
Version:	4.3.0
Release:	9
License:	GPLv2+
Group:		Monitoring
Url:		http://pyropus.ca/software/memtester/
Source0:	http://pyropus.ca/software/memtester/old-versions/%{name}-%{version}.tar.gz

%description
Memtest is a utility for testing the memory subsystem in a computer to
determine if it is faulty.

%files
%doc BUGS CHANGELOG COPYING README.tests README
%{_bindir}/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q
echo "cc %{optflags} -DPOSIX -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64 -DTEST_NARROW_WRITES -c" > conf-cc
echo "cc %{ldflags}" > conf-ld

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 memtester %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_mandir}/man8
install -m 644 memtester.8 %{buildroot}%{_mandir}/man8/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3278 |21cr|menhir-20210419-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Menhir is a LR(1) parser generator for OCaml
Name:		menhir
Version:	20210419
Release:	2
License:	LGPLv2.1+ and QPL with static compilation exception
Group:		Development/OCaml
Url:		https://github.com/LexiFi/menhir
Source0:	https://github.com/LexiFi/menhir/archive/20210419.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	dune
BuildRequires:	ocaml-findlib

%description
Menhir is a LR(1) parser generator for OCaml. It is mostly compatible
with the standard ocamlyacc and has the following enhancements:

- it accepts LR(1) grammars,
- it offers parameterized nonterminal symbols as well as a library of
  standard definitions,
- it explains conflicts in terms of the grammar,
- it allows grammar specifications to be split over multiple files and
  parametrized by OCaml modules,
- it produces reentrant parsers.

%files
%doc %{_docdir}/menhir
%{_bindir}/menhir
%{_mandir}/man1/menhir.1*
%dir %{_libdir}/ocaml/menhirLib
%{_libdir}/ocaml/menhir/META
%{_libdir}/ocaml/menhirLib/*.cma
%{_libdir}/ocaml/menhirLib/*.cmi
%{_libdir}/ocaml/menhirLib/*.cmxs
%{_libdir}/ocaml/menhirLib/*.a
%{_libdir}/ocaml/menhirLib/*.ml
%{_libdir}/ocaml/menhirLib/META
%{_libdir}/ocaml/menhirSdk/*.a
%{_libdir}/ocaml/menhirSdk/*.cma
%{_libdir}/ocaml/menhirSdk/*.cmi
%{_libdir}/ocaml/menhirSdk/*.cmxs
%{_libdir}/ocaml/menhirSdk/META

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc %{_docdir}/coq-menhirlib/LICENSE
%doc %{_docdir}/menhirLib/LICENSE
%doc %{_docdir}/menhirSdk/LICENSE
%{_libdir}/ocaml/menhir/dune-package
%{_libdir}/ocaml/menhirLib/dune-package
%{_libdir}/ocaml/menhirLib/*.cmx
%{_libdir}/ocaml/menhirLib/*.cmxa
%{_libdir}/ocaml/menhirLib/*.cmt
%{_libdir}/ocaml/menhirLib/*.cmti
%{_libdir}/ocaml/menhirLib/*.mli
%{_libdir}/ocaml/coq-menhirlib
%{_libdir}/ocaml/menhirSdk/dune-package
%{_libdir}/ocaml/menhirSdk/*.cmx
%{_libdir}/ocaml/menhirSdk/*.cmxa
%{_libdir}/ocaml/menhirSdk/*.cmt
%{_libdir}/ocaml/menhirSdk/*.cmti
%{_libdir}/ocaml/menhirSdk/*.ml
%{_libdir}/ocaml/menhirSdk/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot} --docdir=%{_docdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3279 |21cr|menulibre-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude typelib\\(LaunchpadIntegration\\)

%define url_ver %(echo %{version} | cut -d. -f1,2)

Name:		menulibre
Version:	2.2.1
Release:	1
Summary:	Advanced menu editor
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://launchpad.net/menulibre
Source0:	https://launchpad.net/menulibre/%{url_ver}/%{version}/+download/menulibre-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	intltool
BuildRequires:	locales
BuildRequires:	python3
BuildRequires:	xdg-utils
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	python3-distutils-extra
BuildRequires:	python3-psutil
BuildRequires:	python3-gobject3
BuildRequires:	python3-gi
Requires:	python3-gobject3
Requires:	python3-psutil
Requires:	typelib(GMenu)

%description
An advanced menu editor that provides modern features in a clean, easy-to-use
interface.

%prep
%setup -q

%build
#nothing

%install
%{__python3} setup.py install --root=%{buildroot}

# fix .desktop file
desktop-file-edit \
	--remove-only-show-in=Pantheon \
	--remove-only-show-in=Budgie \
		%{buildroot}%{_datadir}/applications/menulibre.desktop

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_bindir}/%{name}-menu-validate
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{_mandir}/man1/*
%attr(0755,root,root) %{py3_puresitedir}/%{name}
%attr(0755,root,root) %{py3_puresitedir}/menulibre_lib
%{py3_puresitedir}/%{name}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3280 |21cr|mergelog-4.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Merges httpd log files by date
Name:		mergelog
Version:	4.5
Release:	9
Group:		System/Servers
License:	GPLv2
URL:		http://mergelog.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/mergelog/%{name}-%{version}.tar.bz2
BuildRequires:	zlib-devel

%description
mergelog is a small and fast C program which merges by date httpd log files in
'Common Log Format' from web servers behind round-robin DNS. It has been
designed to easily manage huge log files from highly stressed servers. mergelog
is distributed with zmergelog which supports gzipped log files.

%prep
%setup -q

%build
%configure
%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 src/mergelog %{buildroot}%{_sbindir}/
install -m0755 src/zmergelog %{buildroot}%{_sbindir}/

install -m0644 man/mergelog.1 %{buildroot}%{_mandir}/man1
install -m0644 man/zmergelog.1 %{buildroot}%{_mandir}/man1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING ChangeLog README
%attr(0755,root,root) %{_sbindir}/mergelog
%attr(0755,root,root) %{_sbindir}/zmergelog
%attr(0640,root,root) %{_mandir}/man1/mergelog.1*
%attr(0640,root,root) %{_mandir}/man1/zmergelog.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3281 |21cr|merkaartor-0.19.0-0.git46b3fa.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 46b3fa14833673f2680b88ba9f8ed9829d5d6918
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Openstreetmap mapping program
Name:		merkaartor
Version:	0.19.0
Release:	0.git%{commit_short}.5
License:	GPLv2+
Group:		Sciences/Other
Url:		http://merkaartor.be
Source0:	https://github.com/openstreetmap/merkaartor/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:		plugins-dir.diff
#Patch1:		fix-translations-loading.diff
BuildRequires:	cmake
BuildRequires:	qt5-linguist
BuildRequires:	boost-devel
BuildRequires:	qt5-devel
BuildRequires:	proj-devel
BuildRequires:	sqlite-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(gdal)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5Svg)

%description
Merkaartor is an openstreetmap (http://www.openstreetmap.org) mapping
program. Merkaartor focuses on providing a visually pleasing but
performant editing environment for free geographical data.

%files -f %{name}.lang
%doc AUTHORS CHANGELOG CREDITS README.md
%{_bindir}/merkaartor
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.xml
%{_datadir}/applications/merkaartor.desktop
%{_datadir}/metainfo/org.merkaartor.merkaartor.appdata.xml
%{_libdir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}
sed -i'' -e 's,@LIB@,%{_lib},' plugins/plugins.cmake

%build
%cmake
%make_build

%install
%makeinstall_std -C build

# normalize name
mv %{buildroot}%{_datadir}/applications/org.merkaartor.merkaartor.desktop %{buildroot}%{_datadir}/applications/merkaartor.desktop
sed -i'' -e 's,org.merkaartor.merkaartor.desktop,merkaartor.desktop,' %{buildroot}%{_datadir}/metainfo/org.merkaartor.merkaartor.appdata.xml

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3282 |21cr|meshio-0.2.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 0
%define libname %mklibname %{name} %{major}
%define libnamedev %mklibname %{name} %{major} -d

Name:        meshio
Summary:     Library for the loading of 3D model files
Version:     0.2.0
Release:     13
License:     LGPLv2.1
Group:       System/Libraries
Source:      meshio-%{version}.tar.bz2
Patch0:      meshio-0.2.0-build.patch

URL:         http://www.3dwm.org/frameset.html


%description 
MeshIO is a simple C++ library for the loading of 3D model 
files. Currently, MeshIO only supports plain .3DS files as 
well as its native .RAW format. MeshIO will undergo a major 
redesign in the future.

#-------------------------------------------------------------
%package -n %libname
Summary:	Library for the loading of 3D model files
Group: 		 System/Libraries

%description -n %libname
MeshIO is a simple C++ library for the loading of 3D model 
files. Currently, MeshIO only supports plain .3DS files as 
well as its native .RAW format. MeshIO will undergo a major 
redesign in the future.

%files -n %libname
%doc AUTHORS COPYING README
%{_libdir}/*.so.*

#-------------------------------------------------------------

%package -n %libname-devel
Summary:	Library for the loading of 3D model files
Group:		System/Libraries
Requires:	%{libname} = %{version}
Provides:	libmeshio-devel

%description -n %libname-devel
MeshIO is a simple C++ library for the loading of 3D model
files. Currently, MeshIO only supports plain .3DS files as
well as its native .RAW format. MeshIO will undergo a major
redesign in the future.

%files -n %libname-devel
%doc AUTHORS COPYING README
%{_libdir}/*.so
%{_includedir}/MeshIO/

#-------------------------------------------------------------

%prep
%autosetup -p1 -n meshio-%{version}

%build

%configure
%make

%install
%makeinstall



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3283 |21cr|meshlab-2022.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		meshlab
Summary:	A system for processing and editing unstructured 3D triangular meshes
Group:		Graphics
Version:	2022.02
Release:	1
URL:		https://github.com/cnr-isti-vclab/meshlab
License:	GPLv2+ and BSD and Public Domain and ASL 2.0
Source0:	https://github.com/cnr-isti-vclab/meshlab/archive/refs/tags/MeshLab-%{version}.tar.gz
# Matches 2021.07:
%global vcglibver 3e489ba
# Probably belongs in its own package, but nothing else seems to depend on it.
Source2:	https://github.com/cnr-isti-vclab/vcglib/archive/%{vcglibver}/vcglib-%{vcglibver}.tar.gz
# Notes for Fedora users (around issues with Wayland)
Source3:	README.Fedora
Source10:	meshlab.rpmlintrc
Provides:	bundled(vcglib) = %{vcglibver}

# Adjust MESHLAB_LIB_INSTALL_DIR to not have a meshlab/ subdir
# and adjust MESHLAB_PLUGIN_INSTALL_DIR to have it
Patch1:         meshlab-2021.07-MESHLAB_LIB_INSTALL_DIR-fix.patch
# Enable use of system levmar
Patch2:         meshlab-2021.07-system-levmar.patch

# Bundled things
# This is a fork of a fork. Fun.
Provides:	bundled(u3d) = 1.4.5-meshlab

BuildRequires:	cmake
BuildRequires:	cgal-devel
BuildRequires:	boost-devel
BuildRequires:	bzip2-devel
BuildRequires:	eigen3-devel
BuildRequires:	glew-devel
BuildRequires:	gomp-devel
BuildRequires:	levmar-devel
BuildRequires:	lib3ds-devel
BuildRequires:	qhull-static-devel
BuildRequires:	pkgconfig(gmpxx)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(muparser)
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	xerces-c-devel

# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch:	%{ix86}

%description
MeshLab is an open source, portable, and extensible system for the
processing and editing of unstructured 3D triangular meshes.  The
system is aimed to help the processing of the typical not-so-small
unstructured models arising in 3D scanning, providing a set of tools
for editing, cleaning, healing, inspecting, rendering and converting
these kinds of meshes.

%prep
%autosetup -p1 -n meshlab-MeshLab-%{version} -a 2

cp %{SOURCE3} .
rmdir src/vcglib && mv vcglib-%{vcglibver}* src/vcglib

# remove some bundles
%if 0
rm -rf src/external/glew*
rm -rf src/external/qhull*
rm -rf src/external/levmar*
rm -rf src/external/lib3ds*
rm -rf src/external/muparser*
%endif

# plugin path
sed -i -e 's|"lib"|"%{_lib}"|g' src/common/globals.cpp
# sed -i -e 's|"lib"|"%{_lib}"|g' src/meshlab/plugindialog.cpp

# icon path, see https://github.com/cnr-isti-vclab/meshlab/pull/752
# sed -i -e 's|/icons/pixmaps|/pixmaps|g' src/CMakeLists.txt

%build
export CXXFLAGS=`echo %{optflags} -std=c++14 -fopenmp -DSYSTEM_QHULL -I/usr/include/libqhull`

pushd src
%cmake -Wno-dev \
	-DCMAKE_SKIP_RPATH=ON \
	-DCMAKE_VERBOSE_MAKEFILE=OFF \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DALLOW_BUNDLED_EIGEN=OFF \
	-DALLOW_BUNDLED_GLEW=OFF \
	-DALLOW_BUNDLED_LEVMAR=ON \
	-DALLOW_BUNDLED_LIB3DS=OFF \
	-DALLOW_BUNDLED_MUPARSER=OFF \
	-DALLOW_BUNDLED_NEWUOA=ON \
	-DALLOW_BUNDLED_OPENCTM=ON \
	-DALLOW_BUNDLED_QHULL=OFF \
	-DALLOW_BUNDLED_SSYNTH=ON \
	-DALLOW_BUNDLED_XERCES=OFF \
	-DALLOW_SYSTEM_EIGEN=ON \
	-DALLOW_SYSTEM_GLEW=ON \
	-DALLOW_SYSTEM_LIB3DS=ON \
	-DALLOW_SYSTEM_MUPARSER=ON \
	-DALLOW_SYSTEM_OPENCTM=ON \
	-DALLOW_SYSTEM_QHULL=ON \
	-DALLOW_SYSTEM_XERCES=ON \
	-DEigen3_DIR=usr/include/eigen3 \
	-DQhull_DIR=/usr/include/libqhull

%make_build
popd

# create desktop file
cat <<EOF >meshlab.desktop
[Desktop Entry]
Name=meshlab
GenericName=MeshLab 3D triangular mesh processing and editing
Exec=env QT_QPA_PLATFORM=xcb meshlab
Icon=meshlab
Terminal=false
Type=Application
Categories=Graphics;
EOF

%install
%make_install -C src/build

mkdir -p %{buildroot}%{_datadir}/pixmaps/
cp -a meshlab.png %{buildroot}%{_datadir}/pixmaps/

# add desktop link
install -d -m 755 %{buildroot}%{_datadir}/applications
install -p -m 644 meshlab.desktop %{buildroot}%{_datadir}/applications
desktop-file-validate %{buildroot}%{_datadir}/applications/meshlab.desktop

%files
%doc README.md README.Fedora
%doc docs/readme.txt
%doc docs/privacy.txt
%license LICENSE.txt
%license src/external/u3d/COPYING
%{_bindir}/meshlab
# unsupported in 2021
# %%{_bindir}/meshlabserver
%{_libdir}/*.so*
%{_libdir}/meshlab/
%{_datadir}/meshlab/
%{_datadir}/applications/meshlab.desktop
%{_datadir}/icons/hicolor/512x512/apps/meshlab.png
%{_datadir}/pixmaps/meshlab.png
%license distrib/shaders/3Dlabs-license.txt
%license distrib/shaders/LightworkDesign-license.txt
# %%license unsupported/plugins_experimental/filter_segmentation/license.txt
# %%license unsupported/plugins_unsupported/filter_poisson/license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3284 |21cr|metaconf-1.3.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    metaconf
Version: 1.3.1
Release: 14
License: GPL
Group:   System/Configuration/Other
Summary: Maintains multiple configurations in the same machine
Source:  metaconf-%{version}.tar.bz2
Patch0:  metaconf-use_our_arping.patch
URL:     http://niemeyer.net/metaconf
BuildRequires: python2-devel
BuildArch: noarch

%description
metaconf is a generic software for maintenance of multiple
configurations in a single machine. One of its main uses is for
notebook users which need mobility between several places, but
unlike other similar softwares, metaconf is not designed to work
specifically with network configurations. Indeed, it may be used
to alternate between almost any kind of configuration, as far as
the user knows how to configure the softwares properly.

%prep
%setup -q
%patch0 -p0

%build
export PYTHON=%__python2
%py2_build

%install
%py2_install

mkdir -p %{buildroot}%{_bindir} %{buildroot}/%{_initrddir}
install -m 755 contrib/metaconf-chooser.sh %{buildroot}%{_bindir}/
install -m 755 contrib/metaconf.init %{buildroot}%{_initrddir}/%{name}
install -m 755 contrib/metaconf-autochooser.sh %{buildroot}%{_bindir}/
install -m 600 contrib/metaconf.macs %{buildroot}%{_sysconfdir}


%files
%defattr(0644,root,root,0755)
%doc LICENSE doc/metaconf.moin
%defattr(-,root,root)
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/metaconf.macs
%{py2_puresitedir}/*
%{_initrddir}/metaconf

%post
%systemd_post metaconf

%preun
%systemd_preun metaconf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3285 |21cr|metalink-0.3.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A commandline metalink generator
Name:		metalink
Version:	0.3.6
Release:	9
License:	GPLv3+
Group:		Networking/Other
Url:		https://github.com/metalink-dev/metalinks
Source0:	http://downloads.sourceforge.net/metalinks/%{name}-%{version}.tar.gz
Patch0:		metalink-0.3.6-gcc4.9.patch
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libgcrypt)

%description
A .metalink is an XML file that describes a download, and includes mirrors
and checksum information. Metalink is the main Metalink generation tool.
It combines a list of mirrors (from stdin) and a number of files into one
Metalink record (stdout). It can also be used to transform a MD5SUMS file
into a metalink.

%files
%doc AUTHORS ChangeLog COPYING NEWS README TODO example
%{_bindir}/metalink
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
chmod 0644 example/gen.sh


%build
rm -rf autom4te.cache
CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3286 |21cr|meteor-1.4.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GameBoy Advance emulator
Name:		meteor
Version:	1.4.0
Release:	9
License:	GPLv3+
Group:		Emulators
Url:		http://sourceforge.net/projects/meteorgba/
Source0:	http://sourceforge.net/projects/meteorgba/files/%{name}-%{version}.tar.bz2
Patch0:		meteor-1.4.0-gcc4.7.patch
Patch1:		meteor-1.4.0-sfml2.patch
Patch2:		meteor-1.4.0-fpic.patch
Patch3:		meteor-1.4.0-static.patch
Patch4:		meteor-1.4.0-std=gnu++11.patch
BuildRequires:	cmake
BuildRequires:	nasm
BuildRequires:	pkgconfig(sfml-all) >= 2.2
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(x11)
ExclusiveArch:	%{ix86} %{x86_64}

%description
Meteor is a GameBoy Advance emulator with GTK2 frontend.

%files
%doc README COPYING AUTHORS
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%cmake \
	-DCXXFLAGS="%{optflags}" \
	-DLDFLAGS="%{ldflags}"
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Meteor
Comment=GameBoy Advance emulator
Exec=%{_bindir}/%{name}
Icon=emulators_section
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3287 |21cr|meterbridge-0.9.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# build breaks without these, not easily fixable, and contains no
# shared libs anyway - AdamW 2008/09
%define	_disable_ld_no_undefined	1
%define	_disable_ld_as_needed		1

Summary:	Software meterbridge for Jack
Name:		meterbridge
Version:	0.9.3
Release:	3
License:	GPLv2+
Group:		Sound
Url:		http://plugin.org.uk/meterbridge/
Source0:	http://plugin.org.uk/meterbridge/%{name}-%{version}.tar.gz
# From Debian: fix build by removing duplicate declaration of buf_rect
# AdamW 2008/09
Patch0:		%{name}-0.9.3-build.patch
Patch1:		%{name}-0.9.3-fix-build-with-gcc5.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(SDL_image) >= 1.2

%description
Software meterbridge for the UNIX based JACK audio system. It supports a
number of different types of meter, rendered using the SDL library and
user-editable pixmaps.

%files
%doc AUTHORS ChangeLog COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .build
%patch1 -p1 


%build
autoreconf -vfi
%configure
%make CC="gcc %{optflags}"


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3288 |21cr|metronesia-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Metronesia

Summary:	%{theme_name} theme
Name:		metronesia
Version:	1.0
Release:	2
License:        GPLv3+
Group:		Graphics
Url:		https://www.xfce-look.org/p/1192272/
Source0:	Metronesia.tar.bz2
BuildArch:	noarch
Requires: 	metronesia-common
Requires: 	metronesia-gtk2-theme
Requires: 	metronesia-gtk3-theme
Requires: 	metronesia-metacity-theme
Requires: 	metronesia-xfwm4-theme

%description
Metronesia GTK2,GTK3,XFWM,Metacity theme

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE0} -C %{buildroot}%{_datadir}/themes
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3289 |21cr|mew-6.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO:
# - See how debian and fedora package things
# - Break helpers binaries out into seperate package and make main package
#   noarch
# - Remove .elc files so it works with both emacs and xemacs (policy?)
# - Fix stripping binaries (rpmlint)

Summary: Messaging in the Emacs World
Name: mew
Version: 6.5
Release: 5
Source0: http://www.mew.org/Release/%{name}-%{version}.tar.gz
Source1: %{name}.el
License: BSD-like
Group: Networking/Mail
Url: http://www.Mew.org/

BuildRequires: emacs
Requires: emacs

%description
Mew (Messaging in the Emacs World) is a user interface for text messages,
multimedia messages (MIME), news articles and security functionality 
including PGP, SSH and SSL. 

The features of Mew are as follows: 

 - POP, SMTP, NNTP, and IMAP are supported.
 - You can easily display a very complicated structured message.
 - You can start to read messages before they are all fully listed.
 - For refiling, default folders are neatly suggested.
 - You can complete field names, e-mail addresses, receiver's names,
   domain names, and folder names.
 - Thread, a mechanism to display the flow of messages, is supported.

%prep
%setup -q

%build
%configure 
%make elispdir=%{_datadir}/emacs/site-lisp/%{name} etcdir=%{_datadir}/pixmaps/mew

%install
%makeinstall elispdir=%{buildroot}%{_datadir}/emacs/site-lisp/%{name} etcdir=%{buildroot}%{_datadir}/pixmaps/mew INSTALLINFO=/sbin/install-info

%__install -dm 755 %{buildroot}%{_sysconfdir}/emacs/site-start.d
%__install -pm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/emacs/site-start.d



%files
%defattr(-,root,root,0755)
%doc 00copyright 00readme 00diff 00changes*
%attr(0755,root,root) %{_bindir}/*
%{_datadir}/emacs/site-lisp/%{name}/*
%{_datadir}/pixmaps/mew/*
%{_infodir}/*
%{_mandir}/*
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3290 |21cr|mflua-20180107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mflua
Version:	20180107
Release:	1
Summary:	Configuration and base files for MFLua
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mflua
License:	GPL+
Source0:	mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/mflua.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
For information on this Lua-enabled Metafont, see, for example:
tug.org/TUGboat/tb32-2/tb101scarso.pdf.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/texmf-dist

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3291 |21cr|mftrace-1.2.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generates scalable fonts for TeX
Name:		mftrace
Version:	1.2.20
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Publishing
Url:		http://lilypond.org/mftrace/
Source0:	https://github.com/hanwen/mftrace/archive/refs/tags/release/%{version}.tar.gz?/mftrace-%{version}.tar.gz
BuildRequires:	autotrace
BuildRequires:	potrace
Requires:	autotrace
Requires:	fontforge
Requires:	potrace
Requires:	python3
Requires:	t1utils
Requires:	texlive

%description
mftrace is a small Python program that lets you trace a TeX bitmap
font into a PFA or PFB font (A PostScript Type1 Scalable Font) or TTF
(TrueType) font. It is licensed under the GNU GPL.

Scalable fonts offer many advantages over bitmaps, as they allow
documents to render correctly at many printer resolutions. Moreover,
Ghostscript can generate much better PDF, if given scalable PostScript
fonts.

%files
%attr(0755,root,root) %{_bindir}/gf2pbm
%attr(0755,root,root) %{_bindir}/mftrace
%{_mandir}/man1/mftrace.1*
%{_mandir}/man1/gf2pbm.1.xz
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-release-%{version}

%build
autoconf
%configure
%make \
	CC="%{__cc}" \
	CFLAGS="%{optflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3292 |21cr|mgba-0.10.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Game Boy Advance (GBA) emulator
Name:		mgba
Version:	0.10.3
Release:	1
License:	MPL
Group:		Emulators
Url:		http://mgba.io
Source0:	https://github.com/mgba-emu/mgba/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
Game Boy Advance (GBA) emulator with the goal of being fast enough to run on
lower end hardware than other emulators support, without sacrificing accuracy
or portability. Other goals include accurate enough emulation to provide a
development environment for homebrew software, a good workflow for tool-assist
runners, and a modern feature set for emulators that older emulators may not
support.
This package provides Qt5-based GUI version of mGBA.

%files
%doc CHANGES README.md
%license LICENSE
%{_bindir}/%{name}-qt
%{_datadir}/applications/io.mgba.mGBA.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/*/apps/io.mgba.mGBA.png
%{_mandir}/man6/%{name}-qt.6*

#----------------------------------------------------------------------------

%package sdl
Summary:	Game Boy Advance (GBA) emulator (SDL2-based CLI version)
Group:		Emulators

%description sdl
Game Boy Advance (GBA) emulator with the goal of being fast enough to run on
lower end hardware than other emulators support, without sacrificing accuracy
or portability. Other goals include accurate enough emulation to provide a
development environment for homebrew software, a good workflow for tool-assist
runners, and a modern feature set for emulators that older emulators may not
support.
This package provides SDL2-based CLI version of mGBA.

%files sdl
%license LICENSE
%{_bindir}/%{name}
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix perms
find . -name "*.c" -o -name "*.h"| xargs chmod -x

%build
%global optflags %{optflags} -fPIC

%cmake \
	-DBUILD_LTO:BOOL=OFF \
	-DBUILD_SDL:BOOL=ON \
	-DBUILD_SHARED:BOOL=OFF \
	-DBUILD_STATIC:BOOL=ON \
	-DLIBDIR=%{_lib} \
	-DUSE_FFMPEG:BOOL=ON
%make

%install
%makeinstall_std -C build

# We use %%doc
rm -rf %{buildroot}%{_defaultdocdir}/mGBA

# Not needed
find %{buildroot} -name libmgba.a | xargs rm -f
rm -rf %{buildroot}%{_includedir}/mgba
rm -rf %{buildroot}%{_includedir}/mgba-util

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3293 |21cr|mgm-1.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Moaning Goat Status Meter
Name:		mgm
Version:	1.1
Release:	13
License:	GPLv2+
Group:		Monitoring
Url:		http://linuxmafia.com/mgm/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}48.png
Source2:	%{name}32.png
Source3:	%{name}16.png
Patch0:		mgm-1.1-fix-abs-path.patch
Requires:	perl-Tk
Requires:	tk
BuildArch:	noarch

%description
MGM, the Moaning Goat Meter, is the ultimate sixty-ton cast iron lawn
ornament for the desktops of today's hacker set: A gorgeous, highly
configurable load and status meter written entirely in Perl. Serious
pink-flamingo territory.  MGM will not get your whites whiter or your
colors brighter. It will, however, sit there and look spiffy while
sucking down a major honking wad of RAM.

%files
%doc doc/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p0
chmod 644 `find -type f`
chmod 755 `find -type d`
chmod 755 mgm lib/xpm
rm -fr modules/netbsd
rm -fr modules/solaris

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -r mgm lib modules %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_bindir}
echo '#!/bin/bash' > %{buildroot}%{_bindir}/%{name}
echo 'exec %{_datadir}/mgm/mgm' >> %{buildroot}%{_bindir}/%{name}
chmod 755 %{buildroot}%{_bindir}/%{name}

#menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=%{name}
Name=MGM
Comment=System Monitor
Categories=System;Monitor;
EOF

#icons
mkdir -p %{buildroot}%{_liconsdir}
cat %{SOURCE1} > %{buildroot}%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}
cat %{SOURCE2} > %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_miconsdir}
cat %{SOURCE3} > %{buildroot}%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3294 |21cr|mgtools-2.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mgtools
Version:	2.2.1
Release:	6
Summary:	Tools and scripts to edit and visualize Meta Grammars
License:	GPL
Group:		Sciences/Computer science
Source:		https://gforge.inria.fr/frs/download.php/5683/%{name}-%{version}.tar.gz
Url:		http://alpage.inria.fr/catalogue.en.html#mgtools
Buildrequires:	libxml2-devel
Buildrequires:	bison
Buildroot:	%{_tmppath}/%{name}-%{version}

%description
mgtools collects several useful tools and scripts to edit and visualize Meta
Grammars

    * smg2xml to convert MG from a simple format (smg) to XML format
    * mg.el an Emacs mode to edit MG (in both XML and SMG formats)
    * mg2smg.xsl an XSLT stylesheet to convert from XML to SMG
    * mgviewer.pl a graphical viewer/editor for MG
    * mg*2html.xsl several XSLT stylesheets to get HTML views on MG
    * mg2*.xsl several XSLT stylesheets to convert to other formats

%prep
%setup -q

%build
export LDFLAGS=-L%{_libdir}/DyAlog
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc INSTALL README
%{_bindir}/*
%{_libdir}/pkgconfig/mgtools.pc
%{_datadir}/emacs/site-lisp/mg.el
%{_datadir}/mgtools

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3295 |21cr|MHonArc-2.6.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(.*\.pl\\)

Summary:	A Perl mail-to-HTML converter
Name:		MHonArc
Version:	2.6.24
Release:	1
License:	GPLv2+
Group:		Networking/WWW
URL:		https://metacpan.org/release/MHonArc
Source:		https://cpan.metacpan.org/authors/id/L/LD/LDIDRY/%{name}-%{version}.tar.gz
Requires:	perl
Provides:	mhonarc = %{version}-%{release}
BuildArch:	noarch

%description
MHonArc provides HTML mail archiving with index, mail thread linking, etc; plus
other capabilities including support for MIME and powerful user customization
features. 

%prep
%setup -q

%build

%install
perl install.me -batch -libpath %{buildroot}%{_datadir}/MHonArc -nodoc \
	-manpath %{buildroot}%{_mandir} -binpath %{buildroot}%{_bindir}


perl -pi -e "s%/usr/local%/usr%g" %{buildroot}%{bindir}/* examples/mha*

# just in case
cd %{buildroot}
find . -type f -exec perl -pi -e "s|%{buildroot}||g" {} \;

%files
%doc ACKNOWLG BUGS CHANGES README.txt RELNOTES
%doc doc examples extras logo
%{_bindir}/*
%{_datadir}/MHonArc
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3296 |21cr|mhwaveedit-1.4.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	WAV Editing Package
Name:		mhwaveedit
Version:	1.4.24
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/magnush/mhwaveedit/
Source0:	https://github.com/magnush/mhwaveedit/archive/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	ladspa-devel
BuildRequires:	lame-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack) >= 0.98.0
BuildRequires:	pkgconfig(libpulse) >= 0.9.10
# For OGG support
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(samplerate)
# For default mixer (alsamixer)
Requires:	alsa-utils


%description
mhWaveEdit is a graphical program for editing sound files. It is completely
free (GPL) and it's written by Magnus Hjorth. It is intended to be
user-friendly and robust. OGG and LAME support are available if installed.

%files -f %{name}.lang
%doc AUTHORS BUGS ChangeLog NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure	--with-default-mixerapp="alsamixer" \
		--with-default-driver="pulse" \
		--without-esound \
		--without-sun \
		--without-arts \
		--with-double-samples
%make


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3297 |21cr|mib-ossigeno-icons-4.3.0-69.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname		MIB-Ossigeno-Ultimate-Icons
%define		oversion	4.3

Name:		mib-ossigeno-icons
Version:	4.3.0
Release:	69.7
Summary:	MIB-Ossigeno icon theme
# http://kde-look.org/content/show.php/?content=128221
Source0:	%{oname}-%{oversion}.tar.gz
License:	LGPL
Group:		Graphical desktop/KDE
URL:		http://mib.pianetalinux.org/mib/
BuildArch:	noarch
Obsoletes:	mib-ossigeno-icon-theme < %{version}

%description
MIB-Ossigeno Ultimate Icons is a blue icon theme derived from Oxygen Icons.
It differs from Oxygen mainly for folder icons, completely redesigned.
MIB-Ossigeno Ultimate Icons theme has been developed by emanueleeeee.

%prep
%setup -q -n %{oname}

%build

%install
mkdir -p %{buildroot}%{_iconsdir}/%{oname}

cp -rf ./* %{buildroot}%{_iconsdir}/%{oname}/

rm -f %{buildroot}%{_iconsdir}/%{oname}/README
rm -f %{buildroot}%{_iconsdir}/%{oname}/Changelog

%files
%defattr(644,root,root,755)
%doc README Changelog
%{_iconsdir}/%{oname}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3298 |21cr|mib-report-0.21-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to generate packages reports for Rosa, OMDV and MGA
Name:		mib-report
Version:	0.21
Release:	3
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		http://mib.pianetalinux.org/mib-report/
# Self prepared sources: to make a new release change the sources,
# update ChangeLog, urls.txt and globals.h and then repackage
Source0:	%{name}-%{version}.tar.xz
Patch0:	mib-report-0.21-restore-gz-compression-for-Fedora.patch
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(rpm)
Requires:	curl
Requires:	lynx
Requires:	xz
Requires:	zstd

%description
A tool to generate packages reports and check package versions present in
various distributions. The %{version} version collects references from:
-Rosa 2023.1
-OpenMandriva Cooker
-Mageia Cauldron
-Fedora Rawhide
-PCLinuxOS
-Alt Linux Sisyphus
-OpenSUSE Factory
-PLD Linux 3.0
-Gentoo
-Debian
-Ubuntu.
In the "--search" mode the program searches for a package in all reference
repositories and displays results in a: "Repository, Version, URL" format.
There is also a "--report" mode, comparing what packages some of the
distributions listed above have at disposal. There are six report modes:
1) mga-mdv: lists packages in Mageia repositories that may be interesting for
   OpenMandriva packagers;
2) mdv-mga: the same as above but for Mageia packagers;
3) mdv-rosa: lists packages in Mandriva repositories that may be interesting
   for ROSA packagers;
4) rosa-mdv: the same as above but for Mandriva;
5) mga-rosa: lists packages in Mageia repositories that may be interesting for
   ROSA packagers;
6) rosa-mga: the same as above but for Mageia packagers.
The report modes produce a table with package names and showing if there are
newer versions of them in other distros. It also gives quick links for their
source and homepages.

%files
%doc COPYING AUTHORS ChangeLog
%{_bindir}/%{name}
%{_bindir}/urls-fetcher
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/blacklist.txt
%{_datadir}/%{name}/urls.txt
%{_datadir}/bash-completion/completions/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%qmake_qt5
%make


%install
%makeinstall_qt

# Rename completion
mv %{buildroot}%{_datadir}/bash-completion/completions/%{name}.completion \
   %{buildroot}%{_datadir}/bash-completion/completions/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3299 |21cr|micro-2.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Console text editor
Name:		micro
Version:	2.0.11
Release:	1
License:	MIT
Group:		Editors
Url:		https://micro-editor.github.io/
Source0:	https://github.com/zyedidia/micro/archive/v%{version}.tar.gz?/%{name}-%{version}-src.tar.gz
# created with 'go mod vendor' in unpacked source
Source1:	vendor.tar.gz
BuildRequires:	golang
Requires:	xclip

%description
A modern and intuitive terminal-based text editor.

%files
%doc README.md LICENSE*
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

tar -xf %{SOURCE1}

%build
#GOPATH=$(pwd) 
make

%install
mkdir -p %{buildroot}%{_bindir}

install -m 0755 %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3300 |21cr|microdnf-3.8.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# See https://github.com/rpm-software-management/microdnf/blob/master/microdnf.spec
%global libdnf_version 0.62.0

Name:           microdnf
Version:        3.8.0
Release:        4
Summary:        Lightweight implementation of DNF in C
License:        GPLv2+
Group:			System/Base
URL:            https://github.com/rpm-software-management/microdnf
Source0:        https://github.com/rpm-software-management/microdnf/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# https://github.com/rpm-software-management/microdnf/pull/112
Patch1:			0001-Better-naming-of-the-cache-directory.patch
# https://github.com/rpm-software-management/microdnf/issues/113
Patch2:			installroot.diff
BuildRequires:  gcc
BuildRequires:  meson
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(libpeas-1.0)
BuildRequires:  pkgconfig(libdnf) >= %{libdnf_version}
BuildRequires:  pkgconfig(smartcols)
BuildRequires:  help2man

%description
Micro DNF is a lightweight C implementation of DNF, designed to be used
for doing simple packaging actions when you don't need full-blown DNF and
you want the tiniest useful environments possible.

That is, you don't want any interpreter stack and you want the most
minimal environment possible so you can build up to exactly what you need.


%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
mkdir -p %{buildroot}/var/cache/microdnf

%check
%meson_test

%files
%license COPYING
%doc README.md
%{_mandir}/man8/microdnf.8*
%{_bindir}/%{name}
%dir /var/cache/microdnf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3301 |21cr|micropolis-4.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	City simulation based on Maxis SimCity
Name:		micropolis
# activity/activity.info = 7
# src/sim/sim.c and about = 4.0
Version:	4.0
Release:	15
License:	GPLv3+
Group:		Games/Strategy
Url:		http://www.donhopkins.com/home/micropolis/
# Also see http://dev.laptop.org/git?p=projects/micropolis-activity
Source0:	http://www.donhopkins.com/home/micropolis/micropolis-activity-source.tgz
# Lots of fixes from
# http://git.zerfleddert.de/cgi-bin/gitweb.cgi/micropolis
# curl http://rmdir.de/~michael/micropolis_git.patch > micropolis-zerfleddert.$(date +%Y%m%d).patch
Patch0:		micropolis-zerfleddert.20080302.patch
Patch1:		micropolis-path.patch
# From debian, optflags patch:
Patch2:		micropolis-makefile.patch
# (Anssi 01/2008): Fix some 64bit pointer warnings. It is likely they are
# harmless corner cases, but this code is so old I don't take any chances.
Patch3:		micropolis-64bit-warns.patch
Patch4:		micropolis-printf-format.patch
# from debian
Patch5:		glibc-2.27.patch
Patch6:		micropolis-remove-matherr.patch
BuildRequires:	bison
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xext)

%description
City-building simulation game originally released as SimCity by Maxis and
subsequently released as free software, renamed to Micropolis.

%files
%doc manual/*
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_libdir}/%{name}
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n micropolis-activity

#[ $(sed -n 's,activity_version = ,,p' activity/activity.info) = %version ]
[ $(sed -r -n 's,^.*MicropolisVersion = "(.+)".*$,\1,p' src/sim/sim.c) = %version ]

perl -pi -e 's,GAMESDATADIR,%{_gamesdatadir},;s,LIBDIR,%{_libdir},' Micropolis

# Re-enable air crash:
perl -pi -e 's,-DNO_AIRCRASH,,' src/sim/makefile

%build
%make OPTFLAGS="%optflags" -C src

%install
rm -rf %{buildroot}
install -d -m755 %{buildroot}%{_gamesbindir}
install -d -m755 %{buildroot}%{_gamesdatadir}/%{name}
install -d -m755 %{buildroot}%{_libdir}/%{name}

install -m755 src/sim/sim %{buildroot}%{_libdir}/%{name}
install -m755 Micropolis %{buildroot}%{_gamesbindir}/%{name}

cp -a cities images res %{buildroot}%{_gamesdatadir}/%{name}
chmod +x %{buildroot}%{_gamesdatadir}/%{name}/res/sounds/player

install -d -m755 %{buildroot}%{_miconsdir}
install -d -m755 %{buildroot}%{_iconsdir}
install -d -m755 %{buildroot}%{_liconsdir}

convert Micropolis.png -resize x16 %{buildroot}%{_miconsdir}/%{name}.png
convert Micropolis.png -resize x32 %{buildroot}%{_iconsdir}/%{name}.png
convert Micropolis.png -resize x48 %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Micropolis
GenericName=City simulation
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;StrategyGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3302 |21cr|midnightblue-inspired-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name midnightblue-Inspired

Summary:	MidnightBlue-Inspired theme
Name:		midnightblue-inspired
Version:	1.0
Release:	2
License:	GPLv3+
Group:		Graphics
Url:		https://www.xfce-look.org/p/1266521/
Source0:	midnightblue-Inspired.tar.gz
Requires:	midnightblue-inspired-common
Requires:	midnightblue-inspired-gtk2-theme
Requires:	midnightblue-inspired-gtk3-theme
Requires:	midnightblue-inspired-metacity-theme
Requires:	midnightblue-inspired-openbox-theme
Requires:	midnightblue-inspired-xfwm4-theme
BuildArch:	noarch

%description
MidnightBlue-Inspired GTK2,GTK3,Metacity,Openbox and XFWM4 theme

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%{_datadir}/themes/%{theme_name}/index.theme
%{_datadir}/themes/%{theme_name}/assets/*

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	MidnightBlue-Inspired GTK+2 themes
Group:		Graphics
Requires:	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires:	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	MidnightBlue-Inspired GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires:	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires:	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/
%{_datadir}/themes/%{theme_name}/gtk-3.20/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	MidnightBlue-Inspired Metacity themes
Group:		Graphics
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	MidnightBlue-Inspired Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires:	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires:	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%package openbox-theme
Summary:	MidnightBlue-Inspired Openbox themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	openbox

%description openbox-theme
Themes for Openbox as part of the %{theme_name} theme

%files openbox-theme
%{_datadir}/themes/%{theme_name}/openbox-3/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {index.theme,gtk-2.0,gtk-3.0,gtk-3.20,metacity-1,assets,openbox-3,xfwm4} %{buildroot}%{_datadir}/themes/%{theme_name}/

rm -rf %{buildroot}%{_datadir}/themes/%{theme_name}/unity

find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3303 |21cr|midori-9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude .so$

%define major 0
%define libname %mklibname midori-core %{major}

Summary:	Web browser based on WebKitGtk
Name:		midori
Version:	9.0
Release:	1
License:	LGPLv2+
Group:		Networking/WWW
Url:		http://www.midori-browser.org
# For git: git clone http://software.twotoasts.de/media/midori.git
Source0:	https://github.com/midori-browser/core/releases/download/v%{version}/midori-v%{version}.tar.gz
Patch0:		midori-9.0-rosa-default-homepage.patch
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	librsvg
#BuildRequires:	granite-vala
BuildRequires:	vala >= 0.16.0
BuildRequires:	pkgconfig(gcr-3) >= 2.32
BuildRequires:	pkgconfig(gio-2.0) >= 2.16.0
BuildRequires:	pkgconfig(gmodule-2.0) >= 2.32.3
#BuildRequires:	pkgconfig(granite)
BuildRequires:	pkgconfig(gthread-2.0) >= 2.8.0
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libidn) >= 1.0
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.27.90
BuildRequires:	pkgconfig(libxml-2.0) >= 2.6
BuildRequires:	pkgconfig(sqlite3) >= 3.6.19
BuildRequires:	pkgconfig(unique-3.0) >= 0.9
BuildRequires:	pkgconfig(webkit2gtk-4.0) >= 1.8.1
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xscrnsaver)
Requires:	dbus-x11
Requires:	glib-networking
Requires:	gnome-keyring
Requires:	indexhtml
Requires:	xdg-utils
Provides:	webclient = %{version}-%{release}
Conflicts:	%{_lib}midori1 < 0.5.8
%rename		%{name}-vala
%rename		%{name}-devel

%description
Midori is a lightweight GTK+ 2 web browser based on WebKitGtk. It features
tabs, windows and session management, bookmarks stored with XBEL, searchbox
based on OpenSearch, and user scripts support.

%files -f %{name}.lang
%doc CHANGELOG*
%doc %{_docdir}/midori/COPYING
%doc %{_docdir}/midori/README.md
%{_bindir}/%{name}*
%{_datadir}/metainfo/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/*/*
%{_libdir}/%{name}
%{_libdir}/girepository-1.0/Midori-0.6.typelib
%{_datadir}/gir-1.0/Midori-0.6.gir

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared librariy for Midori
Group:		System/Libraries
Conflicts:	%{_lib}midori1 < 0.5.8
Obsoletes:	%{_lib}midori1 < 0.5.8

%description -n %{libname}
This package contains the shared libraries needed by %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-core.so.%{major}*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%cmake
%make


%install
%makeinstall_std -C build

mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}.bin

cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh

gnome-keyring-daemon -s
%{_bindir}/%{name}.bin "\$@"
EOF

chmod a+x %{buildroot}%{_bindir}/%{name}


# We have no more devel package
rm -rf %{buildroot}%{_libdir}/lib%{name}-core.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3304 |21cr|mikmod-3.2.9-1.20220525.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gitdate 20220525

Summary:	A MOD music file player
Name:		mikmod
Version:	3.2.9
Release:	1.%{gitdate}.1
License:	GPLv2+
Group:		Sound 
Url:		http://mikmod.sourceforge.net/
#Source0:	http://downloads.sourceforge.net/project/mikmod/mikmod/%%{version}/%%{name}-%%{version}.tar.gz
Source0:	%{name}-%{gitdate}.tar.xz
BuildRequires:	pkgconfig(libmikmod) >= 3.1.5
BuildRequires:	pkgconfig(ncurses)

%description
MikMod is one of the best and most well known MOD music file players for
UNIX-like systems. This particular distribution is intended to compile fairly
painlessly in a Linux environment. MikMod uses the OSS /dev/dsp driver
including all recent kernels for output, and will also write .wav files.
Supported file formats include MOD, STM, S3M, MTM, XM, ULT, and IT.
The player uses ncurses for console output and supports transparent loading
from gzip/pkzip/zoo archives and the loading/saving of playlists.
Install the mikmod package if you need a MOD music file player.

%files
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%{_datadir}/%name
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{gitdate}

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3305 |21cr|milkytracker-1.03.00-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname MilkyTracker
%define	oversion 1.03.00
%define	gitdate 20220826

Summary:	Fasttracker II compatible music tracker
Name:		milkytracker
Version:	1.03.00
Release:	3
License:	GPLv3+
Group:		Sound
Url:		https://milkytracker.org/
#Source0:	https://github.com/milkytracker/MilkyTracker/archive/v%%{version}.tar.gz?/%%{oname}-%%{oversion}.tar.gz
Source0:	%{oname}-%{gitdate}.tar.xz
Patch0:	milkytracker-1.0.3-static.patch
Patch1:	milkytracker-20220826-fix-SDL2-includes.patch
Patch2:	milkytracker-20220826-fix-build-with-rtmidi-5.patch
BuildRequires:	cmake >= 3.10
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblhasa)
BuildRequires:	pkgconfig(rtmidi)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(zziplib)

%description
MilkyTracker is an open source, multi-platform music application for creating
.MOD and .XM module files. It attempts to recreate the module replay and user
experience of the popular DOS program Fasttracker II, with special playback
modes available for improved Amiga ProTracker 2/3 compatibility.

%files
%doc ChangeLog.md README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}
%{_datadir}/doc/%{oname}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{gitdate}

%build
export LDFLAGS="%{ldflags} -lSDL2"
%cmake
%make

%install
%makeinstall_std -C build

# Install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
install -m 0644 resources/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

# Install menu icons
for N in 16 32 48 64 128;
do
	convert resources/pictures/carton.png -scale ${N}x${N} $N.png;
	install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3306 |21cr|mille-xterm-dm-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mille-xterm display manager 
Name:		mille-xterm-dm
Version:	1.0
Release:	10
License:	GPL
Group:		System/Servers
URL:		http://www.revolutionlinux.com/mille-xterm
Source0:	%{name}-%{version}.tar.bz2
Requires:	python >= 2.4
Requires:	gnome-python
Requires:	pygtk2.0-libglade
Requires:	openssh-clients
Requires:	x11-server-xorg
BuildArch:	noarch

%description
The mille-xterm display manager is the login interface on terminal. It runs on
the terminal and encrypts the X11 trafix through SSH. 

It is based on LDM, the LTSP Display Manager.  

%prep

%setup -q

%build
#nothing to do

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}/screen.d
install -d %{buildroot}%{_sbindir} 
install -d %{buildroot}%{_prefix}/lib/ltsp/greeters
install -d %{buildroot}%{_datadir}/ldm
 
install -m0755 src/ldm %{buildroot}%{_sbindir}
install -m0755 src/ldm-askpass %{buildroot}%{_prefix}/lib/ltsp
install -m0755 src/greeters/* %{buildroot}%{_prefix}/lib/ltsp/greeters/
install -m0755 src/screen.d/ldm %{buildroot}%{_sysconfdir}/screen.d/ldm
cp -r src/themes %{buildroot}%{_datadir}/ldm/

%post
update-alternatives --install %{_datadir}/ldm/themes/default ldm-theme %{_datadir}/ldm/themes/Mille-xterm 35
update-alternatives --install %{_datadir}/ldm/themes/default ldm-theme %{_datadir}/ldm/themes/Ubuntu 40
update-alternatives --install %{_datadir}/ldm/themes/default ldm-theme %{_datadir}/ldm/themes/Edubuntu 45

%preun
update-alternatives --remove ldm-theme %{_datadir}/ldm/themes/Mille-xterm
update-alternatives --remove ldm-theme %{_datadir}/ldm/themes/Ubuntu
update-alternatives --remove ldm-theme %{_datadir}/ldm/themes/Edubuntu

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc copyright 
%{_sysconfdir}/screen.d/ldm
%{_sbindir}/ldm
%dir %{_prefix}/lib/ltsp
%{_prefix}/lib/ltsp/*
%dir %{_datadir}/ldm
%{_datadir}/ldm/*




%changelog
* Fri Dec 10 2010 Oden Eriksson <oeriksson@mandriva.com> 1.0-6mdv2011.0
+ Revision: 620331
- the mass rebuild of 2010.0 packages

* Mon Sep 14 2009 Thierry Vignaud <tv@mandriva.org> 1.0-5mdv2010.0
+ Revision: 439807
- rebuild

* Tue Feb 10 2009 Ander Conselvan de Oliveira <ander@mandriva.com> 1.0-4mdv2009.1
+ Revision: 339217
- Do not depend on old xorg-x11-server package. Use x11-server-xorg instead.

* Tue Jul 29 2008 Thierry Vignaud <tv@mandriva.org> 1.0-3mdv2009.0
+ Revision: 252452
- rebuild

* Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 1.0-1mdv2008.1
+ Revision: 136579
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request


* Thu Feb 08 2007 Oden Eriksson <oeriksson@mandriva.com> 1.0-1mdv2007.0
+ Revision: 117774
- Import mille-xterm-dm

* Fri Sep 29 2006 Oden Eriksson <oeriksson@mandriva.com> 1.0-1mdk
- initial Mandriva package (mille-xterm import)


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3307 |21cr|mille-xterm-pam-storepw-1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pluggable Authentication Module for storing user password
Name:		mille-xterm-pam-storepw
Version:	1.0
Release:	11
License:	GPLv2+
Group:		Networking/Other
Url:		http://silicon-verl.de/home/flo/software/pamcifs.html
Source0:	%{name}-%{version}.tar.bz2
Source1:	mille-xterm-pam-storepw-tmpfiles.conf
BuildRequires:	pam-devel
Requires(post):	systemd

%description
pam_storepw is a PAM module to store the user's password. It is used to
mount drives, use remote printers and generally connect to services where
the user would usually need to re-authenticate. The module stores the user
password in /var/run/pw/<USER>.

%files
%defattr(0644,root,root,0755)
%doc README AUTHORS Changelog COPYING INSTALL
/%{_lib}/security/pam_storepw*.so
%ghost %dir %{_var}/run/pw
%{_tmpfilesdir}/%{name}.conf

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf

#----------------------------------------------------------------------------

%prep
%setup -q
perl -pi -e "s/-lpam_misc/-lpam_misc -lc/;" libpam-storepw-*/Makefile

%build
cd libpam-storepw-*/

%make CFLAGS="%{optflags} -fPIC"

%install
install -d %{buildroot}/%{_lib}/security
install -d %{buildroot}%{_var}/run/pw
install -d %{buildroot}%{_tmpfilesdir}

install -m0755 libpam-storepw-*/pam_storepw.so %{buildroot}/%{_lib}/security

install -m0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3308 |21cr|mille-xterm-sessreg-1.0-0.2137.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn 2137

Summary:	X session register for the MILLE-XTERM project
Name:		mille-xterm-sessreg
Version:	1.0
Release:	%mkrel 0.%{svn}.3
License:	GPL
Group:		System/Servers
URL:		http://www.revolutionlinux.com/mille-xterm
Source:		mille-xterm-sessreg-%{version}.tar.bz2

%description
This program replaces sessreg by a statically linked version that does not
depend on any X libraries. It doesn't use lastlog, only utmp.

%prep

%setup -q

%build 

gcc %{optflags} -DNO_LASTLOG sessreg.c -o mille-xterm-sessreg

%install
rm -fr %{buildroot}

install -d  %{buildroot}%{_bindir}
install -m0755 mille-xterm-sessreg %{buildroot}%{_bindir}/

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc AUTHORS Changelog COPYING INSTALL README add1000users del1000users
%{_bindir}/mille-xterm-sessreg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3309 |21cr|million-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Who Wants To Be A Millionaire game (Russian version)
Name:		million
Version:	1.0.2
Release:	6
License:	GPLv3+
Group:		Games/Puzzles
Url:		http://dansoft.krasnokamensk.ru/more.html?id=1012
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
Requires:	qt5-database-plugin-sqlite

%description
Who Wants To Be A Millionaire? is a game after quiz TV show.
This is Russian version of the game. No other languages are supported.

%files
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5 %{name}.pro
%make

%install
# install binary
mkdir -p %{buildroot}%{_bindir}
cp Bin/%{name} %{buildroot}%{_bindir}/

# install game data
mkdir -p %{buildroot}%{_datadir}/%{name}
cp Bin/%{name}.db %{buildroot}%{_datadir}/%{name}/
cp -r Bin/sounds %{buildroot}%{_datadir}/%{name}/

# create and install icons
for N in 16 32 48 64 128; do convert images/logo.png -scale ${N}x${N}! $N.png; done
install -D 16.png -m 644 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D 32.png -m 644 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D 48.png -m 644 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -D 64.png -m 644 %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D 128.png -m 644 %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# XDG menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=Who Wants To Be A Millionaire?
Name[ru]=Кто хочет стать миллионером?
Comment=Quiz game after TV show
Comment[ru]=Аналог знаменитой телеигры
Icon=%{name}
Exec=%{name}
Terminal=false
Categories=Game;LogicGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3310 |21cr|mimalloc-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%undefine __cmake_in_source_build

Name:           mimalloc
Version:        2.1.2
Release:        1
Summary:        A general purpose allocator with excellent performance
Group:          System/Libraries
License:        MIT
URL:            https://github.com/microsoft/mimalloc
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  gcc-c++

%description
mimalloc (pronounced "me-malloc")
is a general purpose allocator with excellent performance characteristics.
Initially developed by Daan Leijen for the run-time systems.

#-----------------------------------------------------------------------
%package -n %{libname}
Summary:	A general purpose allocator with excellent performance
Group:		System/Libraries

%description -n %{libname}
mimalloc (pronounced "me-malloc")
is a general purpose allocator with excellent performance characteristics.
Initially developed by Daan Leijen for the run-time systems.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------
%package -n %{devname}
Summary:	Development environment for %name
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development package for mimalloc.


%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}/
%{_includedir}/*
%{_libdir}/pkgconfig/mimalloc.pc
#-----------------------------------------------------------------------

%prep
%autosetup -p1
# Remove unneded binary from sources
rm -rf bin


%build
%cmake \
    -DMI_BUILD_OBJECT=OFF \
    -DMI_OVERRIDE=OFF \
    -DMI_INSTALL_TOPLEVEL=ON \
    -DMI_BUILD_STATIC=OFF \
    -DMI_BUILD_TESTS=OFF \
    -DCMAKE_BUILD_TYPE=Release
%make_build


%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3311 |21cr|mime-construct-1.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Construct and optionally mail MIME messages
Name:		mime-construct
Version:	1.11
Release:	3
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/~rosch/mime-construct/
Source0:	http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/%{name}-%{version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
mime-construct constructs and (by default) mails MIME messages. It
is entirely driven from the command line, it is designed to be
used by other programs, or people who act like programs.

%prep

%setup -q -n %{name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_bindir}/mime-construct
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3312 |21cr|mimetex-1.77-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Easily embed LaTeX math in web pages
Name:           mimetex
Version:	1.77
Release:	1
License:        GPLv3
Group:          System/Servers
URL:            http://www.forkosh.com/mimetex.html
Source0:        http://www.forkosh.com/%{name}.zip
Requires:       webserver
# actually, only if webserver is apache, but there is no syntax for such aa condition
Requires:       apache-mod_socache_shmcb

%description
MimeTeX lets you easily embed LaTeX math in your html pages. It parses a LaTeX
math expression and immediately emits the corresponding gif image, rather than
the usual TeX dvi. And mimeTeX is an entirely separate little program that
doesn't use TeX or its fonts in any way.

%prep
%setup -q -c

%build
%serverbuild

gcc $CFLAGS -DAA -DCACHEPATH=\"/var/cache/%{name}/\" mimetex.c gifsave.c -lm -o mimetex.cgi

%install
install -d %{buildroot}/var/www/cgi-bin
install -d %{buildroot}/var/www/html
install -d %{buildroot}/var/cache/%{name}

install -m0755 mimetex.cgi %{buildroot}/var/www/cgi-bin/%{name}.cgi
install -m0644 mimetex.html %{buildroot}/var/www/html/%{name}.html

install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d

# apache config
cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf << EOF

<LocationMatch /cgi-bin/%{name}.cgi>
    Require all granted
</LocationMatch>
EOF


%clean

%files
%doc COPYING README
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf
/var/www/cgi-bin/%{name}.cgi
/var/www/html/%{name}.html
%attr(0755,apache,apache) %dir /var/cache/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3313 |21cr|mimms-3.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	MMS stream downloader
Name:		mimms
Version:	3.2.2
Release:	4
License:	GPLv3+
Group:		Video
Url:		http://nongnu.org/mimms/
Source0:	http://download.savannah.gnu.org/releases/mimms/%{name}-%{version}.tar.bz2
# Not noarch due to arch-specific requirement on libmms0
# BuildArch:	noarch
Requires:	python3-%{name}

%description
mimms is a program designed to allow you to download streams using the MMS
protocol and save them to your computer, as opposed to watching them live.
Similar functionality is available in full media player suites such as Xine,
MPlayer, and VLC, but mimms is quick and easy to use and, for the time being,
remains a useful program.

%files
%doc AUTHORS NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	MMS stream module for Python
Group:		System/Libraries
BuildRequires:	python3-devel
# Used from pure python code, not linked against
Requires:	%{_lib}mms0

%description -n python3-%{name}
Python module for handling of MMS streams, based on libmms.

%files -n python3-%{name}
%doc AUTHORS
%{py3_puresitedir}/lib%{name}
%{py3_puresitedir}/%{name}-*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -q
#apply_patches


%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3314 |21cr|min12xxw-0.0.9-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A printer filter for Minolta 1[234]xx W printers
Name:		min12xxw
Version:	0.0.9
Release:	24
License:	GPLv2+
Group:		System/Printing
Url:		http://www.hinterbergen.de/mala/min12xxw/
Source0:	http://www.hinterbergen.de/mala/min12xxw/%{name}-%{version}.tar.gz
Patch0:		min12xxw-0.0.9-format_not_a_string_literal_and_no_format_arguments.diff
Patch1:		min12xxw-man.patch
BuildRequires:	gettext-devel

%description
This is min12xxw, a filter to convert pbmraw data such as produced by
ghostscript to the printer language of Minolta 1[234]xx W printers.

%files
%doc AUTHORS COPYING ChangeLog FAQ NEWS README format.txt
%attr(0755,root,root) %{_bindir}/esc-m
%attr(0755,root,root) %{_bindir}/min12xxw
%attr(0644,root,root) %{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3315 |21cr|mindi-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Mindi creates emergency boot disks/CDs using your kernel, tools and modules
Name:		mindi
Version:	3.3.0
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://www.mondorescue.org
Source0:	ftp://ftp.mondorescue.org/src/%{name}-%{version}.tar.gz
Requires:	binutils
Requires:	dosfstools
Requires:	gawk
Requires:	grep
Requires:	mindi-busybox >= 1.18.5
Requires:	mkisofs
Requires:	mtools
Requires:	ncurses
Requires:	parted
Requires:	perl
%ifnarch %{armx}
Requires:	syslinux
%endif
Requires:	which
# Not yet possible as busybox is a binary that should go alongside
# BuildArch:	noarch

%description
Mindi takes your kernel, modules, tools and libraries, and puts them on N
bootable disks (or 1 bootable CD image). You may then boot from the disks/CD
and do system maintenance - e.g. format partitions, backup/restore data,
verify packages, etc.

It is part of the MondoRescue suite for which it creates boot media.
Homepage: http://www.mondorescue.org

%files
%config(noreplace) %{_sysconfdir}/%{name}
%doc ChangeLog INSTALL COPYING README TODO README.* NEWS 
%{_mandir}/man8/*
%{_libdir}/%{name}
%{_sbindir}/*
%{_var}/cache/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
export DONT_RELINK=1

export HEAD=%{buildroot}
export PREFIX=%{_exec_prefix}
export CONFDIR=%{_sysconfdir}
export MANDIR=%{_mandir}
export LIBDIR=%{_libdir}
export CACHEDIR=%{_var}/cache/%{name}
export PKGBUILDMINDI="true"

./install.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3316 |21cr|mindi-busybox-1.25.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Busybox version suited for Mindi
Name:		mindi-busybox
Version:	1.25.1
Release:	2
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://www.mondorescue.org
#Source0:	ftp://ftp.mondorescue.org/src/%{name}-%{version}.tar.gz
# svn checkout svn://svn.mondorescue.org/mondorescue/branches/3.3
Source0:	%{name}-%{version}.tar.gz
Patch0 :	busybox-glibc-deprecated-func.patch 

%description
This package provides a busybox version suited for Mindi.

%files
%doc LICENSE AUTHORS README TODO
%{_libdir}/mindi/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
make oldconfig
%ifarch aarch64
sed -e 's!CONFIG_FEATURE_HAVE_RPC=y!CONFIG_FEATURE_HAVE_RPC=n!g' .config
sed -e 's!CONFIG_FEATURE_INETD_RPC=y!CONFIG_FEATURE_INETD_RPC=n!g' .config
%endif
make busybox

%install
DESTDIR=%{buildroot}%{_libdir}/mindi/rootfs
make CONFIG_PREFIX=$DESTDIR install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3317 |21cr|minetest-5.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multiplayer infinite-world block sandbox with survival mode
Name:		minetest
Version:	5.7.0
Release:	1
License:	LGPLv2+
Group:		Games/Other
Url:		http://minetest.net/
Source0:	https://github.com/minetest/minetest/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	minetest.desktop
Source2:	minetest@.service
Source3:	minetest.rsyslog
Source4:	minetest.logrotate
Source5:	minetest.README
Source6:	https://github.com/minetest/minetest_game/archive/%{version}/%{name}_game-%{version}.tar.gz
Source7:	http://www.gnu.org/licenses/lgpl-2.1.txt
Source8:	default.conf
Source100:	minetest.rpmlintrc
Patch0:		minetest-gcc11.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext-devel
BuildRequires:	irrlichtmt-devel
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gmp)
BuildRequires:	pkgconfig(hiredis)
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(leveldb)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libipq)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libspatialindex)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-server = %{EVRD}
Requires:	%{name}-data-game = %{EVRD}

%description
Game of mining, crafting and building in the infinite world of cubic blocks with
optional hostile creatures, features both single and the network multiplayer
mode, mods. Public multiplayer servers are available.

%files -f %{name}.lang
%doc README
%license doc/lgpl-2.1.txt
%{_appdatadir}/*.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%exclude %{_datadir}/applications/net.%{name}.%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/client
%{_gamesdatadir}/%{name}/fonts
%{_gamesdatadir}/%{name}/textures
%{_mandir}/man6/%{name}.*

#------------------------------------------------------

%package server
Summary:	Minetest multiplayer server
Group:		Games/Other
Requires(pre):	shadow-utils
Requires:	%{name}-data-common = %{EVRD}
Recommends:	%{name}-data-game = %{EVRD}

%description server
Minetest multiplayer server. This package does not require X Window System.

%files server
%doc README.md doc/world_format.txt doc/protocol.txt README
%license doc/lgpl-2.1.txt
%attr(-,minetest,minetest)%{_sharedstatedir}/%{name}/
%attr(-,minetest,minetest)%{_sysconfdir}/%{name}/
%attr(-,minetest,minetest)%{_sysconfdir}/sysconfig/%{name}/
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-server
%config(noreplace) %{_sysconfdir}/rsyslog.d/%{name}.conf
%{_gamesbindir}/%{name}server
%{_mandir}/man6/%{name}server.*
%{_unitdir}/%{name}@.service

%pre server
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || useradd -r -g %{name} -d %{_sharedstatedir}/%{name} -s /sbin/nologin -c "Minetest multiplayer server" %{name}
exit 0

%post server
%systemd_post %{name}@default.service

%preun server
%systemd_preun %{name}@default.service

%postun server
%systemd_postun_with_restart %{name}@default.service

#------------------------------------------------------

%package data-common
Summary:	Minetest common data between client and server
Group:		Games/Other

%description data-common
Minetest common data. This package is shared between minetest server and client.

%files data-common
%license doc/lgpl-2.1.txt
%{_gamesdatadir}/%{name}/builtin

#------------------------------------------------------

%package data-game
Summary:	Minetest default and minimal game data
Group:		Games/Other
Requires:	%{name}-data-common = %{EVRD}

%description data-game
Minetest default game data. This package is optional for a server if you install
your own game.

%files data-game
%license doc/lgpl-2.1.txt
%{_gamesdatadir}/%{name}/games

#------------------------------------------------------

%prep
%autosetup -p1

pushd games
tar xf %{SOURCE6}
mv %{name}_game-%{version} %{name}_game
popd

cp %{SOURCE7} doc/

# purge bundled jsoncpp and lua, and gmp :P
rm -vrf lib/jsoncpp lib/lua lib/gmp

find . -name .gitignore -print -delete
find . -name .travis.yml -print -delete
find . -name .luacheckrc -print -delete

%build
%ifarch aarch64
%define _lto_cflags %{nil}
%endif
LDFLAGS="$LDFLAGS $(pkg-config --libs openssl)"
export LDFLAGS
# -DENABLE_FREETYPE=ON needed for Unicode in text chat
%cmake	\
	-DBUILD_SERVER=TRUE		\
	-DCUSTOM_BINDIR:STRING=%{_gamesbindir}			\
	-DCUSTOM_LOCALEDIR:STRING=%{_datadir}/locale		\
	-DCUSTOM_SHAREDIR:STRING=%{_gamesdatadir}/%{name}	\
	-DENABLE_CURL=TRUE		\
	-DENABLE_FREETYPE=TRUE		\
	-DENABLE_GETTEXT=TRUE		\
	-DENABLE_LEVELDB=TRUE		\
	-DENABLE_LUAJIT=TRUE		\
	-DENABLE_POSTGRESQL=TRUE	\
	-DENABLE_REDIS=TRUE		\
	-DENABLE_SOUND=TRUE		\
	-DENABLE_SYSTEM_GMP=TRUE	\
	-DENABLE_SYSTEM_JSONCPP=TRUE	\
	-DJSON_INCLUDE_DIR=/usr/include/json			\
	-DPostgreSQL_TYPE_INCLUDE_DIR=%{_includedir}/pgsql
%make

%install
%makeinstall_std -C build

# Add desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

# Systemd unit file
mkdir -p %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}

# /etc/rsyslog.d/minetest.conf
mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d/
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/rsyslog.d/%{name}.conf

# /etc/logrotate.d/minetest
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server

# /var/lib/minetest directory for server data files
install -d -m 0775 %{buildroot}%{_sharedstatedir}/%{name}/
install -d -m 0775 %{buildroot}%{_sharedstatedir}/%{name}/default/

# /etc/minetest/default.conf
install -d -m 0775 %{buildroot}%{_sysconfdir}/%{name}/
install -m 0664 %{name}.conf.example %{buildroot}%{_sysconfdir}/%{name}/default.conf

# /etc/sysconfig/default.conf
install -d -m 0775 %{buildroot}%{_sysconfdir}/sysconfig/%{name}/
install -m 0664 %{SOURCE8} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

cp -p %{SOURCE5} README

# Move doc directory back to the sources
mkdir -p __doc
mv %{buildroot}%{_datadir}/doc/%{name}/* __doc
rm -rf %{buildroot}%{_datadir}/doc/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3318 |21cr|mingetty-1.08-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A compact getty program for virtual consoles only
Name:		mingetty
Version:	1.08
Release:	19
License:	GPLv2+
Group: 		System/Base
Url:		http://mingetty.sourceforge.net/
Source0: 	http://downloads.sourceforge.net/mingetty/%{name}-%{version}.tar.gz
Patch0:		mingetty-1.00-opt.patch

%description
The mingetty program is a lightweight, minimalist getty program for
use only on virtual consoles.  Mingetty is not suitable for serial
lines (you should use the mgetty program instead for that purpose).

%files
%doc COPYING
/sbin/mingetty
%{_mandir}/man8/mingetty.8*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .opt

%build
%serverbuild

%make RPM_OPTS="%{optflags}" LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}/sbin/
mkdir -p %{buildroot}%{_mandir}/man8/

install -m 0755 mingetty %{buildroot}/sbin/mingetty
install -m 0644 mingetty.8 %{buildroot}%{_mandir}/man8/mingetty.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3319 |21cr|mingw-binutils-2.37-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global run_testsuite 1

Name:           mingw-binutils
Version:        2.37
Release:        6
Summary:        Cross-compiled version of binutils for Win32 and Win64 environments
Group:          Development/Other
License:        GPLv2+ and LGPLv2+ and GPLv3+ and LGPLv3+

URL:            http://www.gnu.org/software/binutils/
Source0:        http://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.xz

### Patches from native package
# Purpose:  Use /lib64 and /usr/lib64 instead of /lib and /usr/lib in the
#           default library search path of 64-bit targets.
# Lifetime: Permanent, but it should not be.  This is a bug in the libtool
#           sources used in both binutils and gcc, (specifically the
#           libtool.m4 file).  These are based on a version released in 2009
#           (2.2.6?) rather than the latest version.  (Definitely fixed in
#           libtool version 2.4.6).
# Not needed, mingw does not have lib64
# Patch01: binutils-libtool-lib64.patch

# Purpose:  Appends a RHEL or Fedora release string to the generic binutils
#           version string.
# Lifetime: Permanent.  This is a RHEL/Fedora specific patch.
Patch02: binutils-version.patch

# Purpose:  Exports the demangle.h header file (associated with the libiberty
#           sources) with the binutils-devel rpm.
# Lifetime: Permanent.  This is a RHEL/Fedora specific patch.
Patch03: binutils-export-demangle.h.patch

# Purpose:  Disables the check in the BFD library's bfd.h header file that
#           config.h has been included before the bfd.h header.  See BZ
#           #845084 for more details.
# Lifetime: Permanent - but it should not be.  The bfd.h header defines
#           various types that are dependent upon configuration options, so
#           the order of inclusion is important.
# FIXME:    It would be better if the packages using the bfd.h header were
#           fixed so that they do include the header files in the correct
#           order.
Patch04: binutils-no-config-h-check.patch

# Purpose:  Include the filename concerned in readelf error messages.  This
#           makes readelf's output more helpful when it is run on multiple
#           input files.
# Lifetime: Permanent.  This patch changes the format of readelf's output,
#           making it better (IMHO) but also potentially breaking tools that
#           depend upon readelf's current format.  Hence it remains a local
#           patch.
Patch05: binutils-filename-in-error-messages.patch

# Purpose:  Disable an x86/x86_64 optimization that moves functions from the
#           PLT into the GOTPLT for faster access.  This optimization is
#           problematic for tools that want to intercept PLT entries, such
#           as ltrace and LD_AUDIT.  See BZs 1452111 and 1333481.
# Lifetime: Permanent.  But it should not be.
# FIXME:    Replace with a configure time option.
Patch06: binutils-revert-PLT-elision.patch

# Purpose:  Changes readelf so that when it displays extra information about
#           a symbol, this information is placed at the end of the line.
# Lifetime: Permanent.
# FIXME:    The proper fix would be to update the scripts that are expecting
#           a fixed output from readelf.  But it seems that some of them are
#           no longer being maintained.
Patch07: binutils-readelf-other-sym-info.patch

# Purpose:  Do not create PLT entries for AARCH64 IFUNC symbols referenced in
#           debug sections.
# Lifetime: Permanent.
# FIXME:    Find related bug.  Decide on permanency.
Patch08: binutils-2.27-aarch64-ifunc.patch

# Purpose:  Stop the binutils from statically linking with libstdc++.
# Lifetime: Permanent.
Patch09: binutils-do-not-link-with-static-libstdc++.patch

# Purpose:  Allow OS specific sections in section groups.
# Lifetime: Fixed in 2.38 (maybe)
Patch10: binutils-special-sections-in-groups.patch

# Purpose:  Fix linker testsuite failures.
# Lifetime: Fixed in 2.37 (maybe)
Patch11: binutils-fix-testsuite-failures.patch

# Purpose:  Stop gold from aborting when input sections with the same name
#            have different flags.
# Lifetime: Fixed in 2.38 (maybe)
Patch12: binutils-gold-mismatched-section-flags.patch

# Purpose:  Add a check to the GOLD linker for a corrupt input file
#            with a fuzzed section offset.
# Lifetime: Fixed in 2.38 (maybe)
Patch13: binutils-CVE-2019-1010204.patch

# Purpose:  Change the gold configuration script to only warn about
#            unsupported targets.  This allows the binutils to be built with
#            BPF support enabled.
# Lifetime: Permanent.
Patch14: binutils-gold-warn-unsupported.patch

# Purpose:  Use the "unsigned long long" type for pointers on hosts where
#           long is a 32-bit type but pointers are a 64-bit type.  Necessary
#           because users expect to be able to install both the i686- and
#           x86_64 versions of binutils-devel on the same machine, so they
#           need to identical versions of the bfd.h header file.
# Lifetime: Permanent.
Patch15: binutils-use-long-long.patch


# Purpose:  Fix testsuite failures due to the patches applied here.
# Lifetime: Permanent, but varying with each new rebase.
Patch16: binutils-testsuite-fixes.patch

# Purpose:  Enable the creation of .note.gnu.property sections by the GOLD
#            linker for x86 binaries.
# Lifetime: Fixed in 2.38 maybe
Patch17: binutils-gold-i386-gnu-property-notes.patch

# Backport patch for CVE-2021-45078
Patch18:        CVE-2021-45078.patch
# From upstream git
Patch19:       7d53105d6ed984aec255fa0eacd0405f3c1bb874.patch

BuildRequires:  make
BuildRequires:  gcc
BuildRequires:  flex
BuildRequires:  bison
BuildRequires:  texinfo
BuildRequires:  zlib-devel
BuildRequires:  mingw32-filesystem >= 102
BuildRequires:  mingw64-filesystem >= 102
%if %{run_testsuite}
BuildRequires:  dejagnu
BuildRequires:  sharutils
%endif
Provides:       bundled(libiberty)


%description
Cross compiled binutils (utilities like 'strip', 'as', 'ld') which
understand Windows executables and DLLs.

%package -n mingw-binutils-generic
Summary:        Utilities which are needed for both the Win32 and Win64 toolchains

%description -n mingw-binutils-generic
Utilities (like strip and objdump) which are needed for
both the Win32 and Win64 toolchains

%package -n mingw32-binutils
Summary:        Cross-compiled version of binutils for the Win32 environment
Requires:       mingw-binutils-generic = %{version}-%{release}

# NB: This must be left in.
Requires:       mingw32-filesystem >= 95

%description -n mingw32-binutils
Cross compiled binutils (utilities like 'strip', 'as', 'ld') which
understand Windows executables and DLLs.

%package -n mingw64-binutils
Summary:        Cross-compiled version of binutils for the Win64 environment
Requires:       mingw-binutils-generic = %{version}-%{release}

# NB: This must be left in.
Requires:       mingw64-filesystem >= 95

%description -n mingw64-binutils
Cross compiled binutils (utilities like 'strip', 'as', 'ld') which
understand Windows executables and DLLs.


%prep
%autosetup -p1 -n binutils-%{version}

#update config.guess and config.sub
%config_update

# See Patch02
sed -i -e 's/%''{release}/%{release}/g' bfd/Makefile{.am,.in}


%build
# We call configure directly rather than via macros, thus if
# we are using LTO, we have to manually fix the broken configure
# scripts
#[ %{_lto_cflags}x != x ] && %{_fix_broken_configure_for_lto}


mkdir build_win32
pushd build_win32
CFLAGS="%{optflags}" \
../configure \
  --build=%_build --host=%_host \
  --target=%{mingw32_target} \
  --disable-nls \
  --with-sysroot=%{mingw32_sysroot} \
  --prefix=%{_prefix} \
  --bindir=%{_bindir} \
  --includedir=%{_includedir} \
  --libdir=%{_libdir} \
  --mandir=%{_mandir} \
  --infodir=%{_infodir}

%make_build
popd

mkdir build_win64
pushd build_win64
CFLAGS="%{optflags}" \
../configure \
  --build=%_build --host=%_host \
  --target=%{mingw64_target} \
  --disable-nls \
  --with-sysroot=%{mingw64_sysroot} \
  --prefix=%{_prefix} \
  --bindir=%{_bindir} \
  --includedir=%{_includedir} \
  --libdir=%{_libdir} \
  --mandir=%{_mandir} \
  --infodir=%{_infodir}

%make_build
popd

# Create multilib versions for the tools strip, objdump nm, and objcopy
mkdir build_multilib
pushd build_multilib
CFLAGS="%{optflags}" \
../configure \
  --build=%_build --host=%_host \
  --target=%{mingw64_target} \
  --enable-targets=%{mingw64_target},%{mingw32_target} \
  --disable-nls \
  --with-sysroot=%{mingw64_sysroot} \
  --prefix=%{_prefix} \
  --bindir=%{_bindir} \
  --includedir=%{_includedir} \
  --libdir=%{_libdir} \
  --mandir=%{_mandir} \
  --infodir=%{_infodir}

%make_build
popd


%check
%if !%{run_testsuite}
echo ====================TESTSUITE DISABLED=========================
%else
pushd build_win32
  make -k check < /dev/null || :
  echo ====================TESTING WIN32 =========================
  cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum
  echo ====================TESTING WIN32 END=====================
  for file in {gas/testsuite/gas,ld/ld,binutils/binutils}.{sum,log}
  do
    ln $file binutils-%{mingw32_target}-$(basename $file) || :
  done
  tar cjf binutils-%{mingw32_target}.tar.bz2 binutils-%{mingw32_target}-*.{sum,log}
  uuencode binutils-%{mingw32_target}.tar.bz2 binutils-%{mingw32_target}.tar.bz2
  rm -f binutils-%{mingw32_target}.tar.bz2 binutils-%{mingw32_target}-*.{sum,log}
popd

pushd build_win64
  make -k check < /dev/null || :
  echo ====================TESTING WIN64 =========================
  cat {gas/testsuite/gas,ld/ld,binutils/binutils}.sum
  echo ====================TESTING WIN64 END=====================
  for file in {gas/testsuite/gas,ld/ld,binutils/binutils}.{sum,log}
  do
    ln $file binutils-%{mingw64_target}-$(basename $file) || :
  done
  tar cjf binutils-%{mingw64_target}.tar.bz2 binutils-%{mingw64_target}-*.{sum,log}
  uuencode binutils-%{mingw64_target}.tar.bz2 binutils-%{mingw64_target}.tar.bz2
  rm -f binutils-%{mingw64_target}.tar.bz2 binutils-%{mingw64_target}-*.{sum,log}
popd
%endif


%install
%mingw_make_install
make -C build_multilib DESTDIR=%{buildroot}/multilib install

# These files conflict with ordinary binutils.
rm -rf %{buildroot}%{_infodir}
rm -f %{buildroot}%{_libdir}/libiberty*
rm -f %{buildroot}%{_libdir}/bfd-plugins/libdep.so

# Keep the multilib versions of the strip, objdump and objcopy commands
# We need these for the RPM integration as these tools must be able to
# both process win32 and win64 binaries
mv %{buildroot}/multilib%{_bindir}/%{mingw64_strip} %{buildroot}%{_bindir}/%{mingw_strip}
mv %{buildroot}/multilib%{_bindir}/%{mingw64_objdump} %{buildroot}%{_bindir}/%{mingw_objdump}
mv %{buildroot}/multilib%{_bindir}/%{mingw64_objcopy} %{buildroot}%{_bindir}/%{mingw_objcopy}
mv %{buildroot}/multilib%{_bindir}/%{mingw64_nm} %{buildroot}%{_bindir}/%{mingw_nm}
rm -rf %{buildroot}/multilib

# Drop man pages, they are a duplicate of those of the native tools
rm -rf %{buildroot}%{_mandir}/man1/*


%files -n mingw-binutils-generic
%license COPYING
%{_bindir}/%{mingw_strip}
%{_bindir}/%{mingw_objdump}
%{_bindir}/%{mingw_objcopy}
%{_bindir}/%{mingw_nm}

%files -n mingw32-binutils
%{_bindir}/%{mingw32_target}-addr2line
%{_bindir}/%{mingw32_target}-ar
%{_bindir}/%{mingw32_target}-as
%{_bindir}/%{mingw32_target}-c++filt
%{_bindir}/%{mingw32_target}-dlltool
%{_bindir}/%{mingw32_target}-dllwrap
%{_bindir}/%{mingw32_target}-elfedit
%{_bindir}/%{mingw32_target}-gprof
%{_bindir}/%{mingw32_target}-ld
%{_bindir}/%{mingw32_target}-ld.bfd
%{_bindir}/%{mingw32_target}-nm
%{_bindir}/%{mingw32_target}-objcopy
%{_bindir}/%{mingw32_target}-objdump
%{_bindir}/%{mingw32_target}-ranlib
%{_bindir}/%{mingw32_target}-readelf
%{_bindir}/%{mingw32_target}-size
%{_bindir}/%{mingw32_target}-strings
%{_bindir}/%{mingw32_target}-strip
%{_bindir}/%{mingw32_target}-windmc
%{_bindir}/%{mingw32_target}-windres
%{_prefix}/%{mingw32_target}/bin/ar
%{_prefix}/%{mingw32_target}/bin/as
%{_prefix}/%{mingw32_target}/bin/dlltool
%{_prefix}/%{mingw32_target}/bin/ld
%{_prefix}/%{mingw32_target}/bin/ld.bfd
%{_prefix}/%{mingw32_target}/bin/nm
%{_prefix}/%{mingw32_target}/bin/objcopy
%{_prefix}/%{mingw32_target}/bin/objdump
%{_prefix}/%{mingw32_target}/bin/ranlib
%{_prefix}/%{mingw32_target}/bin/readelf
%{_prefix}/%{mingw32_target}/bin/strip
%{_prefix}/%{mingw32_target}/lib/ldscripts

%files -n mingw64-binutils
%{_bindir}/%{mingw64_target}-addr2line
%{_bindir}/%{mingw64_target}-ar
%{_bindir}/%{mingw64_target}-as
%{_bindir}/%{mingw64_target}-c++filt
%{_bindir}/%{mingw64_target}-dlltool
%{_bindir}/%{mingw64_target}-dllwrap
%{_bindir}/%{mingw64_target}-elfedit
%{_bindir}/%{mingw64_target}-gprof
%{_bindir}/%{mingw64_target}-ld
%{_bindir}/%{mingw64_target}-ld.bfd
%{_bindir}/%{mingw64_target}-nm
%{_bindir}/%{mingw64_target}-objcopy
%{_bindir}/%{mingw64_target}-objdump
%{_bindir}/%{mingw64_target}-ranlib
%{_bindir}/%{mingw64_target}-readelf
%{_bindir}/%{mingw64_target}-size
%{_bindir}/%{mingw64_target}-strings
%{_bindir}/%{mingw64_target}-strip
%{_bindir}/%{mingw64_target}-windmc
%{_bindir}/%{mingw64_target}-windres
%{_prefix}/%{mingw64_target}/bin/ar
%{_prefix}/%{mingw64_target}/bin/as
%{_prefix}/%{mingw64_target}/bin/dlltool
%{_prefix}/%{mingw64_target}/bin/ld
%{_prefix}/%{mingw64_target}/bin/ld.bfd
%{_prefix}/%{mingw64_target}/bin/nm
%{_prefix}/%{mingw64_target}/bin/objcopy
%{_prefix}/%{mingw64_target}/bin/objdump
%{_prefix}/%{mingw64_target}/bin/ranlib
%{_prefix}/%{mingw64_target}/bin/readelf
%{_prefix}/%{mingw64_target}/bin/strip
%{_prefix}/%{mingw64_target}/lib/ldscripts


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3320 |21cr|mingw-crt-9.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?mingw_package_header}

#%%global snapshot_date 20160723
#%%global snapshot_rev 65a0c3298db7cc5cbded63259663cb29e4780a56
#%%global snapshot_rev_short %(echo %snapshot_rev | cut -c1-6)
#%%global branch v5.x

#%%global pre rc2

Name:           mingw-crt
Version:        9.0.0
Release:        1
Summary:        MinGW Windows cross-compiler runtime
Group:          Development/Other
License:        Public Domain and ZPLv2.1
URL:            http://mingw-w64.sourceforge.net/
%if 0%{?snapshot_date}
# To regenerate a snapshot:
# Use your regular webbrowser to open https://sourceforge.net/p/mingw-w64/mingw-w64/ci/%{snapshot_rev}/tarball
# This triggers the SourceForge instructure to generate a snapshot
# After that you can pull in the archive with:
# spectool -g mingw-crt.spec
Source0:        http://sourceforge.net/code-snapshots/git/m/mi/mingw-w64/mingw-w64.git/mingw-w64-mingw-w64-%{snapshot_rev}.zip
%else
Source0:        http://downloads.sourceforge.net/mingw-w64/mingw-w64-v%{version}%{?pre:-%{pre}}.tar.bz2
%endif
# Fix build failure with gcc11
Patch0:         mingw-crt_gcc11.patch

BuildArch:      noarch

BuildRequires:  make

BuildRequires:  mingw32-filesystem >= 95
BuildRequires:  mingw32-binutils
BuildRequires:  mingw32-headers
BuildRequires:  mingw32-gcc

BuildRequires:  mingw64-filesystem >= 95
BuildRequires:  mingw64-binutils
BuildRequires:  mingw64-headers
BuildRequires:  mingw64-gcc


%description
MinGW Windows cross-compiler runtime, base libraries.


%package -n mingw32-crt
Summary:        MinGW Windows cross-compiler runtime for the win32 target
Obsoletes:      mingw32-runtime < 3.18-7%{?dist}
Provides:       mingw32-runtime = 3.18-7%{?dist}
Requires:       mingw32-filesystem >= 95

%description -n mingw32-crt
MinGW Windows cross-compiler runtime, base libraries for the win32 target.

%package -n mingw64-crt
Summary:        MinGW Windows cross-compiler runtime for the win64 target
Obsoletes:      mingw64-runtime < 1.0-0.3.20100914%{?dist}
Provides:       mingw64-runtime = 1.0-0.3.20100914%{?dist}
Requires:       mingw64-filesystem >= 95

%description -n mingw64-crt
MinGW Windows cross-compiler runtime, base libraries for the win64 target.


%prep
%if 0%{?snapshot_date}
rm -rf mingw-w64-v%{version}
mkdir mingw-w64-v%{version}
cd mingw-w64-v%{version}
unzip %{S:0}
%autosetup -p1 -D -T -n mingw-w64-v%{version}/mingw-w64-mingw-w64-%{snapshot_rev}
%else
%autosetup -p1 -n mingw-w64-v%{version}%{?pre:-%{pre}}
%endif


%build
pushd mingw-w64-crt
    # Filter out -fstack-protector and -lssp from LDFLAGS as libssp is not yet potentially built with the bootstrap gcc
    MINGW32_LDFLAGS="`echo %{mingw32_ldflags} | sed 's|-fstack-protector||' | sed 's|-lssp||'`"
    MINGW64_LDFLAGS="`echo %{mingw64_ldflags} | sed 's|-fstack-protector||' | sed 's|-lssp||'`"
    MINGW64_CONFIGURE_ARGS="--disable-lib32"
    %mingw_configure
    %mingw_make_build
popd


%install
pushd mingw-w64-crt
    %mingw_make_install
popd

# Dunno what to do with these files
rm -rf %{buildroot}%{mingw32_includedir}/*.c
rm -rf %{buildroot}%{mingw64_includedir}/*.c


%files -n mingw32-crt
%license COPYING DISCLAIMER DISCLAIMER.PD
%{mingw32_libdir}/*

%files -n mingw64-crt
%license COPYING DISCLAIMER DISCLAIMER.PD
%{mingw64_libdir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3321 |21cr|mingw-filesystem-132-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

# Place RPM macros in %%{_rpmconfigdir}/macros.d if it exists (RPM 4.11+)
# Otherwise, use %%{_sysconfdir}/rpm
# https://lists.fedoraproject.org/pipermail/devel/2014-January/195026.html
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)

%define pkgconfig_personalitydir %{_datadir}/pkgconfig/personality.d

Name:           mingw-filesystem
Version:        132
Release:        1
Summary:        MinGW cross compiler base filesystem and environment
Group:          Development/Other
License:        GPLv2+
URL:            http://fedoraproject.org/wiki/MinGW
BuildArch:      noarch

Source0:        COPYING
Source1:        macros.mingw
Source2:        macros.mingw32
Source3:        macros.mingw64
Source4:        mingw32.sh
Source5:        mingw64.sh
Source6:        mingw-find-debuginfo.sh
Source7:        mingw.req
Source8:        mingw.prov
Source9:        mingw-scripts.sh
Source10:       mingw-rpmlint.config
Source11:       toolchain-mingw32.cmake
Source12:       toolchain-mingw64.cmake
Source13:       mingw-find-lang.sh
Source14:       mingw32.attr
Source15:       mingw64.attr
# generated with:
# (rpm -ql mingw32-crt | grep '\.a$' | while read f ; do i686-w64-mingw32-dlltool   -I $f 2>/dev/null ; done) | sort | uniq | tr A-Z a-z > standard-dlls-mingw32
Source16:       standard-dlls-mingw32
# (rpm -ql mingw64-crt | grep '\.a$' | while read f ; do x86_64-w64-mingw32-dlltool -I $f 2>/dev/null ; done) | sort | uniq | tr A-Z a-z > standard-dlls-mingw64
Source17:       standard-dlls-mingw64
Source18:       toolchain-mingw32.meson
Source19:       toolchain-mingw64.meson
Source20:       pkgconf-personality-mingw32
Source21:       pkgconf-personality-mingw64

# Taken from the Fedora filesystem package
Source101:      https://fedorahosted.org/filesystem/browser/lang-exceptions
Source102:      iso_639.sed
Source103:      iso_3166.sed

BuildRequires:  make
BuildRequires:  iso-codes
BuildRequires:  pkgconf


%description
This package contains the base filesystem layout, RPM macros and
environment for all Fedora MinGW packages.

This environment is maintained by the Fedora MinGW SIG at:

  http://fedoraproject.org/wiki/SIGs/MinGW


%package base
Summary:        Generic files which are needed for both mingw32-filesystem and mingw64-filesystem

Requires:       rpm-rosa-setup
# Obsolete the packages from the test repo
Obsoletes:      cross-filesystem < 67-2
Obsoletes:      cross-filesystem-scripts < 67-2
Obsoletes:      mingw-filesystem < 75-2
Obsoletes:      mingw-filesystem-scripts < 75-2
# For using pkgconf with MinGW
Requires:       pkgconf

%description base
This package contains the base filesystem layout, RPM macros and
environment for all Fedora MinGW packages.

This environment is maintained by the Fedora MinGW SIG at:

  http://fedoraproject.org/wiki/SIGs/MinGW


%package -n mingw32-filesystem
Summary:        MinGW cross compiler base filesystem and environment for the win32 target
Requires:       %{name}-base = %{version}-%{release}
# Replace mingw32-pkg-config
Conflicts:      mingw32-pkg-config < 0.28-17
Obsoletes:      mingw32-pkg-config < 0.28-17
Provides:       mingw32-pkg-config = 0.28-17

# Note about 'Provides: mingw32(foo.dll)'
# ------------------------------------------------------------
#
# We want to be able to build & install mingw32 libraries without
# necessarily needing to install wine.  (And certainly not needing to
# install Windows!)  There is no requirement to have wine installed in
# order to use the mingw toolchain to develop software (ie. to
# compile more stuff on top of it), so why require that?
#
# So for expediency, this base package provides the "missing" DLLs
# from Windows.  Another way to do it would be to exclude these
# proprietary DLLs in our find-requires checking script - essentially
# it comes out the same either way.
#
Provides:       %(sed "s/\(.*\)/mingw32(\1) /g" %{SOURCE16} | tr "\n" " ")
Provides:       mingw32(mscoree.dll)

%description -n mingw32-filesystem
This package contains the base filesystem layout, RPM macros and
environment for all Fedora MinGW packages.

This environment is maintained by the Fedora MinGW SIG at:

  http://fedoraproject.org/wiki/SIGs/MinGW


%package -n mingw64-filesystem
Summary:        MinGW cross compiler base filesystem and environment for the win64 target
Requires:       %{name}-base = %{version}-%{release}
# Replace mingw64-pkg-config
Conflicts:      mingw64-pkg-config < 0.28-17
Obsoletes:      mingw64-pkg-config < 0.28-17
Provides:       mingw64-pkg-config = 0.28-17

Provides:       %(sed "s/\(.*\)/mingw64(\1) /g" %{SOURCE17} | tr "\n" " ")
Provides:       mingw64(mscoree.dll)

%description -n mingw64-filesystem
This package contains the base filesystem layout, RPM macros and
environment for all Fedora MinGW packages.

This environment is maintained by the Fedora MinGW SIG at:

  http://fedoraproject.org/wiki/SIGs/MinGW


%prep
%setup -q -c -T
cp %{SOURCE0} COPYING


%build
# nothing


%install
mkdir -p %{buildroot}

mkdir -p %{buildroot}%{_libexecdir}
install -m 755 %{SOURCE9} %{buildroot}%{_libexecdir}/mingw-scripts

mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
for i in mingw32-configure mingw32-cmake mingw32-make mingw32-meson mingw32-pkg-config \
         mingw64-configure mingw64-cmake mingw64-make mingw64-meson mingw64-pkg-config ; do
  ln -s %{_libexecdir}/mingw-scripts $i
done
for i in i686-w64-mingw32-pkg-config  \
         x86_64-w64-mingw32-pkg-config ; do
  ln -s %{_bindir}/pkgconf $i
done
popd

mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/profile.d/
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d/

mkdir -p %{buildroot}%{macrosdir}
install -m 644 %{SOURCE1} %{buildroot}%{macrosdir}/macros.mingw
install -m 644 %{SOURCE2} %{buildroot}%{macrosdir}/macros.mingw32
install -m 644 %{SOURCE3} %{buildroot}%{macrosdir}/macros.mingw64

mkdir -p %{buildroot}%{_sysconfdir}/rpmlint
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/rpmlint/

# Create the folders required for gcc and binutils
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/bin
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/lib
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/bin
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/lib

# The MinGW system root which will contain Windows native binaries
# and Windows-specific header files, pkgconfig, etc.
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/bin
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/etc
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/include
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/include/sys
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/lib
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/lib/pkgconfig
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/lib/cmake
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/sbin

mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/bin
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/etc
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/include
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/include
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib/pkgconfig
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/lib/cmake
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/sbin

# We don't normally package manual pages and info files, except
# where those are not supplied by a Fedora native package.  So we
# need to create the directories.
#
# Note that some packages try to install stuff in
#   /usr/x86_64-pc-mingw32/sys-root/man and
#   /usr/x86_64-pc-mingw32/sys-root/doc
# but those are both packaging bugs.
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/doc
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/info
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/man
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/man/man{1,2,3,4,5,6,7,8,l,n}
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/aclocal
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/themes
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/cmake
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/locale
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/pkgconfig
mkdir -p %{buildroot}%{_prefix}/i686-w64-mingw32/sys-root/mingw/share/xml

mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/doc
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/info
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/man
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/man/man{1,2,3,4,5,6,7,8,l,n}
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/aclocal
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/themes
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/cmake
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/locale
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/pkgconfig
mkdir -p %{buildroot}%{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/xml

mkdir -p %{buildroot}%{_prefix}/lib/debug/%{_prefix}/i686-w64-mingw32
mkdir -p %{buildroot}%{_prefix}/lib/debug/%{_prefix}/x86_64-w64-mingw32

# Own folders for all locales
# Snippet taken from the Fedora filesystem package
sed -n -f %{SOURCE102} /usr/share/xml/iso-codes/iso_639.xml > %{buildroot}/iso_639.tab
sed -n -f %{SOURCE103} /usr/share/xml/iso-codes/iso_3166.xml > %{buildroot}/iso_3166.tab

grep -v "^$" %{buildroot}/iso_639.tab | grep -v "^#" | while read a b c d ; do
    [[ "$d" =~ "^Reserved" ]] && continue
    [[ "$d" =~ "^No linguistic" ]] && continue

    locale=$c
    if [ "$locale" = "XX" ]; then
        locale=$b
    fi
    echo "%lang(${locale}) %{_prefix}/i686-w64-mingw32/sys-root/mingw/share/locale/${locale}" >> filelist_mingw32
    echo "%lang(${locale}) %{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/locale/${locale}" >> filelist_mingw64
done

cat %{SOURCE101} | grep -v "^#" | grep -v "^$" | while read loc ; do
    locale=$loc
    locality=
    special=
    [[ "$locale" =~ "@" ]] && locale=${locale%%%%@*}
    [[ "$locale" =~ "_" ]] && locality=${locale##*_}
    [[ "$locality" =~ "." ]] && locality=${locality%%%%.*}
    [[ "$loc" =~ "_" ]] || [[ "$loc" =~ "@" ]] || special=$loc

    # If the locality is not official, skip it
    if [ -n "$locality" ]; then
        grep -q "^$locality" %{buildroot}/iso_3166.tab || continue
    fi
    # If the locale is not official and not special, skip it
    if [ -z "$special" ]; then
        egrep -q "[[:space:]]${locale%%_*}[[:space:]]" %{buildroot}/iso_639.tab || continue
    fi
    echo "%lang(${locale}) %{_prefix}/i686-w64-mingw32/sys-root/mingw/share/locale/${loc}" >> filelist_mingw32
    echo "%lang(${locale}) %{_prefix}/x86_64-w64-mingw32/sys-root/mingw/share/locale/${loc}" >> filelist_mingw64
done

rm -f %{buildroot}/iso_639.tab
rm -f %{buildroot}/iso_3166.tab

cat filelist_mingw32 filelist_mingw64 | grep "locale" | while read a b ; do
    mkdir -p -m 755 %{buildroot}/$b/LC_MESSAGES
done

# NB. NOT _libdir
mkdir -p %{buildroot}/usr/lib/rpm
install -m 0755 %{SOURCE6} %{buildroot}%{_rpmconfigdir}
install -m 0755 %{SOURCE7} %{buildroot}%{_rpmconfigdir}
install -m 0755 %{SOURCE8} %{buildroot}%{_rpmconfigdir}
install -m 0755 %{SOURCE13} %{buildroot}%{_rpmconfigdir}

mkdir -p %{buildroot}/usr/lib/rpm/fileattrs
install -m 0644 %{SOURCE14} %{buildroot}%{_rpmconfigdir}/fileattrs/
install -m 0644 %{SOURCE15} %{buildroot}%{_rpmconfigdir}/fileattrs/

mkdir -p %{buildroot}%{_datadir}/mingw
install -m 0644 %{SOURCE11} %{buildroot}%{_datadir}/mingw/
install -m 0644 %{SOURCE12} %{buildroot}%{_datadir}/mingw/
install -m 0644 %{SOURCE18} %{buildroot}%{_datadir}/mingw/
install -m 0644 %{SOURCE19} %{buildroot}%{_datadir}/mingw/

mkdir -p %{buildroot}%{pkgconfig_personalitydir}
install -m 0644 %{SOURCE20} %{buildroot}%{pkgconfig_personalitydir}/i686-w64-mingw32.personality
install -m 0644 %{SOURCE21} %{buildroot}%{pkgconfig_personalitydir}/x86_64-w64-mingw32.personality

# Link mingw-pkg-config man pages to pkgconf(1)
mkdir -p %{buildroot}%{_mandir}/man1/
echo ".so man1/pkgconf.1" > %{buildroot}%{_mandir}/man1/i686-w64-mingw32-pkg-config.1
echo ".so man1/pkgconf.1" > %{buildroot}%{_mandir}/man1/x86_64-w64-mingw32-pkg-config.1


%files base
%doc COPYING
%dir %{_sysconfdir}/rpmlint/
%config(noreplace) %{_sysconfdir}/rpmlint/mingw-rpmlint.config
%{macrosdir}/macros.mingw
%{_libexecdir}/mingw-scripts
%{_rpmconfigdir}/mingw*
%dir %{_datadir}/mingw/

%files -n mingw32-filesystem
%{macrosdir}/macros.mingw32
%config(noreplace) %{_sysconfdir}/profile.d/mingw32.sh
%{_bindir}/mingw32-configure
%{_bindir}/mingw32-cmake
%{_bindir}/mingw32-make
%{_bindir}/mingw32-meson
%{_bindir}/mingw32-pkg-config
%{_bindir}/i686-w64-mingw32-pkg-config
%{_prefix}/i686-w64-mingw32
%{_rpmconfigdir}/fileattrs/mingw32.attr
%{_datadir}/mingw/toolchain-mingw32.cmake
%{_datadir}/mingw/toolchain-mingw32.meson
%{pkgconfig_personalitydir}/i686-w64-mingw32.personality
%{_mandir}/man1/i686-w64-mingw32-pkg-config.1*
%dir %{_prefix}/lib/debug/%{_prefix}
%dir %{_prefix}/lib/debug/%{_prefix}/i686-w64-mingw32


%files -n mingw64-filesystem
%{macrosdir}/macros.mingw64
%config(noreplace) %{_sysconfdir}/profile.d/mingw64.sh
%{_bindir}/mingw64-configure
%{_bindir}/mingw64-cmake
%{_bindir}/mingw64-make
%{_bindir}/mingw64-meson
%{_bindir}/mingw64-pkg-config
%{_bindir}/x86_64-w64-mingw32-pkg-config
%{_prefix}/x86_64-w64-mingw32
%{_rpmconfigdir}/fileattrs/mingw64.attr
%{_datadir}/mingw/toolchain-mingw64.cmake
%{_datadir}/mingw/toolchain-mingw64.meson
%{pkgconfig_personalitydir}/x86_64-w64-mingw32.personality
%{_mandir}/man1/x86_64-w64-mingw32-pkg-config.1*
%dir %{_prefix}/lib/debug/%{_prefix}
%dir %{_prefix}/lib/debug/%{_prefix}/x86_64-w64-mingw32


%changelog
* Mon Feb 21 2022 Sandro Mani <manisandro@gmail.com> - 132-1
- Create build_winXX directories with mkdir -p

* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 131-2
- Bump release

* Thu Feb 10 2022 Sandro Mani <manisandro@gmail.com> - 131-1
- Move python dependency generation to mingw32/64_python3.attr in mingw-python3 package
- More generic mingw_pkg_name macros to also deduce mingw package name from native name

* Wed Feb 02 2022 Sandro Mani <manisandro@gmail.com> - 130-1
- Drop evaling $@ in mingw-scripts, ensure mingw macros invoked by mingw-scripts contain $@

* Sat Jan 22 2022 Sandro Mani <manisandro@gmail.com> - 129-1
- Also set FCFLAGS in mingw-env

* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

* Sat Jan 08 2022 Sandro Mani <manisandro@gmail.com> - 128-1
- Add Boost_ARCHITECTURE to cmake toolchain file

* Sat Jan 08 2022 Sandro Mani <manisandro@gmail.com> - 127-1
- Correctly test whether CC/CXX/FC env-vars are set in cmake toolchain config

* Wed Dec 15 2021 Sandro Mani <manisandro@gmail.com> - 126-1
- Preserve CC/CXX/FC/RC set by ENV if set in cmake toolchain files

* Sat Nov 20 2021 Sandro Mani <manisandro@gmail.com> - 125-1
- Fix up debug dirs ownership

* Wed Nov 17 2021 Sandro Mani <manisandro@gmail.com> - 124-1
- Use relative paths in cmake/meson toolchain files to make ccache work if
  available

* Tue Sep 21 2021 Sandro Mani <manisandro@gmail.com> - 123-1
- Autogenerate mingw-python3 BR
- Fix mingw{32/64}.attr to also capture pyd, pc files

* Thu Sep 02 2021 Sandro Mani <manisandro@gmail.com> - 122-1
- Allow overriding CMake INCLUDE_INSTALL_DIR in MINGWXX_CMAKE_ARGS
- Drop evaling $@ in mingw-scripts, ensure mingw macros invoked by mingw-scripts contain $@

* Sun Aug 29 2021 Sandro Mani <manisandro@gmail.com> - 121-1
- Drop use of deprecated external dependency generator
- Fix file listed twice
- Fix copying minidebug symbols to binary in mingw-find-debuginfo.sh

* Fri Aug 27 2021 Sandro Mani <manisandro@gmail.com> - 120-1
- Adapt mingw-find-debuginfo.sh to store debug files below /usr/lib/debug
- See https://fedoraproject.org/wiki/Changes/F36MingwDebugLocation

* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Sat Jun 12 2021 Neal Gompa <ngompa13@gmail.com> - 119-1
- Use pkgconf for pkgconfig

* Mon Jun 07 2021 Sandro Mani <manisandro@gmail.com> - 118-1
- Allow overriding CFLAGS/CXXFLAGS/LDFLAGS for %%mingw_meson

* Mon Feb 01 2021 Sandro Mani <manisandro@gmail.com> - 117-1
- Filter Windows API umbrella libraries from requires

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> 116-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Mon Jul 27 2020 Sandro Mani <manisandro@gmail.com> - 116-1
- Add -lssp to LDFLAGS

* Thu Jul 23 2020 Sandro Mani <manisandro@gmail.com> - 115-1
- Add -fstack-protector to LDFLAGS (since we carry -D_FORTIFY_SOURCE=2 in cflags, see https://sourceforge.net/p/mingw-w64/bugs/818/)

* Tue Jul 14 2020 Daniel P. Berrangé <berrange@redhat.com> - 114-1
- Add meson hint for libgcrypt-config on mingw cross builds (#1856446)

* Sat May 23 2020 Sandro Mani <manisandro@gmail.com> - 113-1
- Add %%mingw_make_build and %%mingw_make_install

* Fri May 22 2020 Sandro Mani <manisandro@gmail.com> - 112-1
- Fix %%mingw_meson resulting in ERROR: Unable to determine dynamic linker

* Fri May 01 2020 David Woodhouse <dwmw2@infradead.org> - 111-1
- Quote tr sequences like '[blank]' to prevent the shell from doing so (#1830233)

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Nov 07 2019 Marc-André Lureau <marcandre.lureau@redhat.com> - 110-1
- Add redhat-rpm-config dependency. Fixes rhbz#1769792

* Thu Aug 29 2019 Sandro Mani <manisandro@gmail.com> - 109-1
- Add dlltool to toolchain-mingw{32,64}.meson

* Mon Aug 12 2019 Sandro Mani <manisandro@gmail.com> - 108-1
- Fix mingw-find-debuginfo.sh to pick up strippable binaries also in %%{_prefix}/%%{mingw32,64_target}

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Wed Jun 19 2019 Fabiano Fidêncio <fidencio@redhat.com> - 107-1
- Add %%mingw_ninja_install macro

* Thu Feb 14 2019 Sandro Mani <manisandro@gmail.com> - 106-1
- Revert "Remove redundant $@ in mingw_cmake and mingw_meson", it causes no arguments at all to be passed to cmake

* Tue Feb 05 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 105-1
- Remove redundant $@ in mingw_cmake and mingw_meson, breaking wrapper scripts

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Fri Apr 20 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 104-1
- Add macros for meson and ninja

* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Sun Sep 10 2017 Sandro Mani <manisandro@gmail.com> - 103-1
- Add %%mingw_nm macro

* Sat Sep 09 2017 Sandro Mani <manisandro@gmail.com> - 102-1
- Also extract debuginfo data from pyd binaries

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sun May  8 2016 Erik van Pienbroek <epienbro@fedoraproject.org> - 101-1
- Update config.{guess,sub} in %%mingw_configure (#1288256)
- Regenerated list of default win32 DLL's

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Apr 11 2015 Erik van Pienbroek <epienbro@fedoraproject.org> - 100-1
- Various CMake improvements:
  * The toolchain files /usr/share/data/mingw/toolchain-mingw32.cmake
    and /usr/share/data/mingw/toolchain-mingw64.cmake don't have
    an uppercase character in their file name any more
  * Add CMAKE_SYSTEM_PROCESSOR to the CMake toolchain files
  * Removed Boost_COMPILER from the CMake toolchain files as
    it was unused and broken anyway
  * Made the RPM macros mingw32_cmake, mingw32_cmake_kde4,
    mingw64_cmake and mingw64_cmake_kde4 more generic
  * Removed the rpath references as mingw doesn't support rpath
  * Allow verbose CMake output to be disabled by setting the
    environment variable MINGW_CMAKE_NO_VERBOSE (RHBZ #987644)
  * When calling the mingw32-cmake and mingw64-cmake wrapper
    scripts don't use verbose CMake output by default
  * When using the CMake wrappers, prevent CFLAGS and CXXFLAGS
    from being set unless they're already set in the current
    environment (RHBZ #1136069)
  * Don't set LIB_INSTALL_DIR any more in the CMake macros
    as it breaks CPack and isn't needed by any of the
    Fedora MinGW packages (RHBZ #1152696)
- Accept empty MINGW{32,64}_{C,CPP,CXX}FLAGS environment variables
- Removed old _mingw32 macros which have been deprecated since Fedora 17

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Feb  8 2014 Erik van Pienbroek <epienbro@fedoraproject.org> - 99-4
- Place the RPM macros in /usr/lib/rpm/macros.d when using a modern RPM

* Sat Aug  3 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 99-3
- Own the folders %%{mingw32_libdir}/cmake and %%{mingw64_libdir}/cmake
- Own all the locale folders below %%{mingw32_datadir}/locale and %%{mingw64_datadir}/locale (RHBZ #798329)

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org>
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Sat Jun 15 2013 Kalev Lember <kalevlember@gmail.com> - 99-1
- Remove invalid macros with '++' in the name

* Sun Jun  2 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 98-2
- Only set the environment variable PKG_CONFIG_LIBDIR when
  using the macros %%mingw32_cmake, %%mingw32_cmake_kde4,
  %%mingw64_cmake or %%mingw64_cmake_kde4
- Fixes FTBFS of the mingw-matahari package

* Sun May 12 2013 Erik van Pienbroek <epienbro@fedoraproject.org> - 98-1
- Removed the use of the environment variable PKG_CONFIG_LIBDIR
  While building binaries the tool {i686,x86_64}-w64-mingw32-pkg-config
  should be used to find out pkg-config information
  The environment variable PKG_CONFIG already automatically points
  to the right cross-compiler aware version of pkg-config when
  the mingw{32,64}-pkg-config packages are installed
- Fixes compilation of mingw-gtk3 3.9.0 (GNOME BZ #699690)
- Automatically add R: mingw{32,64}-pkg-config tags when .pc files
  are detected while building mingw packages
- Bumped the minimum required version of mingw{32,64}-filesystem
  to >= 95 in built mingw packages as this is the first version of
  which was introduced in Fedora with a stable interface
- Updated the list of DLLs which are part of the Win32 API with
  the libraries d3dcompiler_46.dll, d3dcsx_46.dll, davclnt.dll,
  devmgr.dll, devobj.dll and devrtl.dll

* Thu Feb 28 2013 Ralf Corsépius <corsepiu@fedoraproject.org> - 97-3
- Remove %%config from %%{_sysconfdir}/rpm/macros.*
  (https://fedorahosted.org/fpc/ticket/259).
- Minor spec fixes.

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 97-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sun Dec 16 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 97-1
- Added support for using the environment variables MINGW32_MAKE_ARGS and
  MINGW64_MAKE_ARGS. These environment variables can be used to  provide
  additional target-specific arguments when using the %%mingw_make macro

* Mon Dec  3 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 96-3
- Added support for RHEL6

* Sat Nov 10 2012 Kalev Lember <kalevlember@gmail.com> - 96-2
- Add provides for mscoree.dll and regenerate the standard-dlls file

* Mon Sep 17 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 96-1
- Added new macros for Qt5 support, %%mingw32_qmake_qt5, %%mingw64_qmake_qt5,
  %%mingw_qmake_qt4 and %%mingw_qmake_qt5
- It isn't necessary to call %%mingw32_env / %%mingw64_env any more
  in the %%mingw32_qmake_qt4 and %%mingw64_qmake_qt4 macros

* Mon Aug 13 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 95-14
- Fix the handling of quoted arguments in the cmake macros

* Tue Jul 24 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 95-13
- Make sure the %%mingw_cmake and %%mingw_cmake_kde4 macros respect the
  environment variable MINGW_BUILDDIR_SUFFIX

* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 95-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Wed Jun 13 2012 Kalev Lember <kalevlember@gmail.com> - 95-11
- Fix syntax error in mingw64_env macro, thanks to Akira TAGOH (#831534)

* Wed Jun  6 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 95-10
- Prevent errors when the folders %%{mingw32_prefix} or %%{mingw64_prefix} are missing
- Fix parse error when -config files containing a . are available
  in %%{mingw32_bindir} or %%{mingw64_bindir} (RHBZ #657478)

* Thu Apr 19 2012 Kalev Lember <kalevlember@gmail.com> - 95-9
- Fix whitespace handling in %%mingw_configure and friends

* Sat Mar 17 2012 Kalev Lember <kalevlember@gmail.com> - 95-8
- Generate the list of mingw32(...) and mingw64(...) DLL name provides from
  mingw-crt import libraries

* Sat Mar 17 2012 Kalev Lember <kalevlember@gmail.com> - 95-7
- Define mingw_build_win32/win64 in system macros, so that each
  individual package wouldn't have to

* Fri Mar 16 2012 Kalev Lember <kalevlember@gmail.com> - 95-6
- Fix warnings during debuginfo generation

* Fri Mar 16 2012 Kalev Lember <kalevlember@gmail.com> - 95-5
- Simplify the mingw_make_install macro, also moving it to the deprecated
  section

* Mon Mar 12 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 95-4
- Added a manual provides for the native windows library ksuser.dll as
  wine doesn't have an implementation for this library at the moment

* Tue Mar 06 2012 Kalev Lember <kalevlember@gmail.com> - 95-3
- Merge copy-n-paste duplicate %%mingw32_debug_package code
- Get rid of the USE_OLD_METHOD hack in mingw-find-debuginfo.sh
- Add missing %%mingw32_debug_install_post

* Tue Feb 28 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 95-2
- Fixed broken summary tags

* Sat Feb 25 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 95-1
- Added support for both win32 and win64 targets
- Fixed rpmlint issues
- Fixed permissions of the scripts (775 -> 755)
- Fixed description of the various subpackages
- Make the various macros compliant with the new packaging guidelines:
  https://fedorahosted.org/fpc/ticket/71
- Suppress arch-independent-package-contains-binary-or-object rpmlint
  errors for static libraries
- Improved the mingw_configure, mingw_make, mingw_make_install,
  mingw_cmake and mingw_cmake_kde4 RPM macros so packagers don't need
  to use quotes anymore when using arguments. Thanks to Kalev Lember
  for the initial proof of concept
- Dropped the -mms-bitfields argument from the default CFLAGS as
  it is enabled by default as of gcc 4.7
- Replaced the CMake defines QT_HEADERS_DIR and QT_LIBRARY_DIR
  with QT_BINARY_DIR which is a more proper method to make CMake
  aware of the location of Qt. Thx to Dominik Schmidt for the hint
- Make sure CMake can detect the qmake-qt4 binary in /usr/$target/bin
- Make sure CMake can also detect the (native) Qt tools
  qdbuscpp2xml and qdbusxml2cpp
- Added new RPM macros mingw_cmake_kde4, mingw32_cmake_kde4 and mingw64_cmake_kde4
- Added three new environment variables which can be set to
  influence the behaviour of the cmake macros:
  MINGW_CMAKE_ARGS, MINGW32_CMAKE_ARGS and MINGW64_CMAKE_ARGS
- Dropped the mingw32-qmake-qt4 and mingw64-qmake-qt4 wrapper scripts
  as they're now provided by the mingw{32,64}-qt-qmake packages
- Added a new RPM macro: %%{?mingw_package_header}
  Packagers can use this macro instead of the original boilerplate
  code which is needed for all mingw packages
- Made argument passing using the backwards compatibility macro %%{_mingw32_cmake} work
- Fixed an issue in the mingw_cmake macro where it could point to
  a non-existant CMakeLists.txt file
- Fixed a bug in the find-requires script which causes all packages to depend
  on both the mingw32 and the mingw64 toolchains
- Split out the RPM macros which require both the mingw{32,64}-filesystem
  packages in a new file and put it in the mingw-filesystem-base package
- Generate seperate debuginfo packages for mingw32 and mingw64
- Set the minimum version of R: mingw{32,64}-filesystem to 70
- Use the correct FSF-address in some scripts
- Thanks to all the contributors: Erik van Pienbroek, Kalev Lember, Levente
  Farkas, Marc-Andre Lureau.

* Thu Feb 23 2012 Kalev Lember <kalevlember@gmail.com> - 69-15
- Rename the source package to mingw-filesystem (#673784)

* Sun Feb  5 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 69-14
- Use a more complete list of Win32 default dlls based on the
  dlls exported by wine (thanks to Levente Farkas). RHBZ #787486

* Tue Jan 31 2012 Kalev Lember <kalevlember@gmail.com> - 69-13
- Remove the mingw32-pkg-config wrapper as well, now that we have separate
  mingw32-pkg-config package

* Tue Jan 31 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 69-12
- Don't provide the wrapper i686-pc-mingw32-pkg-config anymore as we now
  have a mingw32-pkg-config package

* Tue Jan 10 2012 Erik van Pienbroek <epienbro@fedoraproject.org> - 69-11
- Set Boost_COMPILER to -gcc47 in cmake toolchain file

* Tue Nov 22 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 69-10
- Fixed a small regression introduced by the previous release which caused an
  FTBFS for mingw32-matahari as indicated on the fedora-mingw mailing list

* Wed Nov 16 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 69-9
- Added various definitions to the CMake toolchain file (RHBZ #753906)

* Tue Aug 02 2011 Kalev Lember <kalevlember@gmail.com> - 69-8
- Added avicap32.dll and psapi.dll to the list of Win32 default DLLs
  (thanks to Farkas Levente)

* Wed Jul 13 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 69-7
- Added glu32.dll and wsock32.dll to the list of Win32 default dll's

* Wed Jul  6 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 69-6
- Use a more complete list of Win32 default dll's

* Wed Jul 06 2011 Kalev Lember <kalevlember@gmail.com> - 69-5
- Fixed dep gen with upper case dll names

* Fri Jul  1 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 69-4
- The %%{_mingw32_qmake_qt4} macro pointed to an invalid mkspecs name. Fixed

* Tue Jun 28 2011 Kalev Lember <kalev@smartlink.ee> - 69-3
- Set Boost_COMPILER to -gcc46 in cmake toolchain file

* Sun May 29 2011 Kalev Lember <kalev@smartlink.ee> - 69-2
- Make sure the -debuginfo subpackages are mingw32- prefixed
  even if the base package is mingw-

* Tue May 24 2011 Kalev Lember <kalev@smartlink.ee> - 69-1
- Adjusted PKG_CONFIG_LIBDIR to also search in _mingw32_datadir/pkgconfig/
- Own the sbin/ directory
- Fixed the -n option with _mingw32_debug_package macro

* Mon May 23 2011 Kalev Lember <kalev@smartlink.ee> - 68-3
- Own etc/, share/pkgconfig/, share/xml/ directories

* Sat May 21 2011 Kalev Lember <kalev@smartlink.ee> - 68-2
- Own the _mingw32_datadir/cmake/ directory

* Fri May 20 2011 Kalev Lember <kalev@smartlink.ee> - 68-1
- Support RPM 4.9 new "fileattr" dep extraction system
- Cleaned up the spec file from cruft not needed with latest rpm
- Generate versionless mingw32-filesystem Requires

* Sat May 14 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 67-1
- Don't unset PKG_CONFIG_PATH in the wrapper scripts
  mingw32-pkg-config and i686-pc-mingw32-pkg-config (BZ #688171)

* Sun May 01 2011 Kalev Lember <kalev@smartlink.ee> - 66-1
- Override boost library suffix in cmake toolchain file

* Thu Mar 17 2011 Kalev Lember <kalev@smartlink.ee> - 65-1
- Don't error out trying to set illegal LD.BFD variable name

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 64-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Wed Jan 12 2011 Erik van Pienbroek <epienbro@fedoraproject.org> - 64-2
- Own the directory %%{_mingw32_datadir}/themes

* Sun Nov 14 2010 Ivan Romanov <drizt@land.ru> - 64-1
- Removed -win32 option for mingw32-qmake-qt4 (is obsoletes since qt version 4.7.0)
- Using win32-g++-fedora-cross instead fedora-win32-cross spec file

* Thu Nov 11 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 63-1
- Set the CMAKE_RC_COMPILER variable in the CMake toolchain file (RHBZ #652435)

* Tue Oct 19 2010 Ivan Romanov <drizt@land.ru> - 62-2
- Added mingw32-qmake-qt4

* Mon Oct 11 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 62-1
- Provide mingw32(odbc32.dll) for Qt

* Sun Sep 12 2010 Erik van Pienbroek <epienbro@fedoraproject.org> - 61-1
- Provide mingw32(gdiplus.dll) for gdk-pixbuf

* Thu Sep  9 2010 Richard W.M. Jones <rjones@redhat.com> - 60-1
- Provide virtual mingw32(ws2_32.dll) for libvirt.

* Mon Sep 06 2010 Kalev Lember <kalev@smartlink.ee> - 59-1
- Own /etc/rpmlint/ dir instead of depending on rpmlint package (RHBZ#629791)

* Fri Sep  3 2010 Richard W.M. Jones <rjones@redhat.com> - 58-1
- Remove requires setup and rpm (RHBZ#629791).

* Tue Jun  8 2010 Richard W.M. Jones <rjones@redhat.com> - 57-1
- Add provides mingw32(rpcrt4.dll) (RHBZ#594581).

* Mon May 24 2010 Kalev Lember <kalev@smartlink.ee> - 56-2
- Work around cmake's Qt detection in the toolchain file

* Fri Sep 18 2009 Erik van Pienbroek <epienbro@fedoraproject.org. - 56-1
- Prevented a circular dependency which caused the i686-pc-mingw32-pkg-config
  script to be broken. Thanks to Kalev Lember for spotting this bug

* Tue Sep  1 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 55-1
- The wrapper scripts i686-pc-mingw32-pkg-config, mingw32-pkg-config,
  mingw32-configure, mingw32-make and mingw32-cmake had a bug where
  quoted arguments could get interpreted incorrect.
  Thanks to Michael Ploujnikov for helping out with this issue

* Sat Aug 29 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 54-1
- Added the file /usr/bin/i686-pc-mingw32-pkg-config which is a wrapper script
  which calls pkg-config with the right environment variables set (BZ #513825)

* Sun Aug 23 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 53-1
- Fixed a small rpmlint warning caused by the debuginfo generation macro
  Thanks to Kalev Lember for spotting this

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 52-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Wed Jun 24 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 52-2
- Updated ChangeLog comment from previous version as the RPM variable
  __debug_install_post needs to be overridden instead of __os_install_post
  for -debuginfo subpackage generation

* Mon Jun 22 2009 Erik van Pienbroek <epienbro@fedoraproject.org> - 52-1
- Add script to create -debuginfo subpackages
  This script was created by Fridrich Strba
- All mingw32 packages now need to add these lines to their .spec files:
  %%define __debug_install_post %%{_mingw32_debug_install_post}
  %%{_mingw32_debug_package}

* Thu Jun  4 2009 Adam Goode <adam@spicenitz.org> - 51-1
- Add CMake rules

* Tue Apr 21 2009 Richard W.M. Jones <rjones@redhat.com> - 50-4
- Fix dependency problem with + in DLL name (Thomas Sailer).

* Fri Mar 27 2009 Richard W.M. Jones <rjones@redhat.com> - 50-3
- Fix up and test mingw32-pkg-config changes.

* Thu Mar 26 2009 Levente Farkas <lfarkas@lfarkas.org> - 50-1
- Add mingw32-pkg-config.

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 49-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Fri Feb 20 2009 Richard W.M. Jones <rjones@redhat.com> - 49-2
- Rebuild for mingw32-gcc 4.4

* Thu Feb 19 2009 Richard W.M. Jones <rjones@redhat.com> - 49-1
- Added virtual provides for mingw32(cfgmgr32.dll) and mingw32(setupapi.dll).

* Wed Feb 18 2009 Richard W.M. Jones <rjones@redhat.com> - 48-1
- Fix _mingw32_configure.

* Tue Feb 17 2009 Richard W.M. Jones <rjones@redhat.com> - 47-1
- Rename mingw32-COPYING to COPYING.
- Rename mingw32-macros.mingw32 to macros.mingw32.
- _mingw32_configure looks for configure in "." and ".." dirs.
- Added _mingw32_description.
- Added mingw32(version.dll) virtual provides (rhbz#485842).

* Sun Feb  1 2009 Richard W.M. Jones <rjones@redhat.com> - 46-1
- Unset PKG_CONFIG_PATH because /usr/lib/rpm/macros sets it (Erik van
  Pienbroek).

* Wed Jan 28 2009 Richard W.M. Jones <rjones@redhat.com> - 45-1
- Use PKG_CONFIG_LIBDIR instead of PKG_CONFIG_PATH so that native pkgconfig
  is never searched.

* Mon Jan 26 2009 Richard W.M. Jones <rjones@redhat.com> - 44-1
- Install rpmlint overrides file to suppress some rpmlint warnings.

* Sat Jan 24 2009 Richard W.M. Jones <rjones@redhat.com> - 43-6
- Don't claim C++ compiler exists if it's not installed, as this
  breaks autoconf and (in particular) libtool.

* Wed Jan 14 2009 Richard W.M. Jones <rjones@redhat.com> - 42-1
- Add pseudo-provides secur32.dll

* Wed Dec 17 2008 Levente Farkas <lfarkas@lfarkas.org> - 41-1
- Re-add mingw32-make

* Sat Dec  6 2008 Levente Farkas <lfarkas@lfarkas.org> - 40-2
- Rewrite mingw32-scripts to run in the current shell
- (Re-add mingw32-make) - Removed by RWMJ.
- Add mingw32-env to mingw32.sh

* Mon Nov 24 2008 Richard W.M. Jones <rjones@redhat.com> - 39-3
- Unify mingw32-filesystem packages from all three branches again, and test.
- Fix mingw32-scripts so it can handle extra parameters correctly.
- Remove mingw32-env & mingw32-make since neither of them actually work.

* Sun Nov 23 2008 Richard Jones <rjones@redhat.com> - 38-1
- Added mingw32(glut32.dll).

* Wed Nov 19 2008 Richard Jones <rjones@redhat.com> - 37-1
- Revert part of the 36-1 patch.  --build option to configure was wrong.

* Wed Nov 19 2008 Richard Jones <rjones@redhat.com> - 36-1
- Greatly improved macros (Levente Farkas).
- Added -mms-bitfields.

* Thu Nov 13 2008 Richard Jones <rjones@redhat.com> - 35-1
- Added mingw32(wldap32.dll) pseudo-provides.

* Wed Oct 29 2008 Richard Jones <rjones@redhat.com> - 34-1
- Set --prefix correctly.

* Wed Oct 29 2008 Richard Jones <rjones@redhat.com> - 33-1
- Remove mingw32.{sh,csh} which are unused.

* Mon Oct 27 2008 Richard Jones <rjones@redhat.com> - 32-1
- Add mingw32-configure script.

* Mon Oct 27 2008 Richard Jones <rjones@redhat.com> - 31-1
- Update the spec file with explanation of the 'Provides: mingw32(...)'
  lines for Windows system DLLs.

* Mon Oct  6 2008 Richard Jones <rjones@redhat.com> - 30-1
- Added _mingw32_cxx.

* Thu Sep 25 2008 Richard Jones <rjones@redhat.com> - 29-1
- Added _mingw32_as, _mingw32_dlltool, _mingw32_windres.

* Wed Sep 24 2008 Richard W.M. Jones <rjones@redhat.com> - 27-1
- Begin the grand renaming of mingw -> mingw32.
- Added mingw32(mscoree.dll).

* Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 25-1
- Add shared aclocal directory.

* Sun Sep 21 2008 Richard W.M. Jones <rjones@redhat.com> - 24-1
- Remove mingw-defs, since no longer used.
- Add _mingw_infodir.

* Thu Sep 11 2008 Daniel P. Berrange <berrange@redhat.com> - 23-1
- Add macros for find-provides/requires scripts

* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 22-1
- Windows provides OLE32.DLL.

* Wed Sep 10 2008 Richard W.M. Jones <rjones@redhat.com> - 21-1
- Allow '.' in dll names for find-requires
- Windows provides GDI32.DLL.

* Fri Sep  5 2008 Richard W.M. Jones <rjones@redhat.com> - 20-1
- On 64 bit install in /usr/lib/rpm always.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 19-1
- 'user32.dll' is provided by Windows.
- Allow '-' in DLL names.
- More accurate detection of DLLs in requires/provides scripts.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 17-1
- Automatically add mingw-filesystem and mingw-runtime requires.
- Add --prefix to _mingw_configure macro.
- Three backslashes required on each continuation line in RPM macros.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 14-1
- Fix path to mingw-find-requires/provides scripts.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 12-1
- Put CFLAGS on a single line to avoid problems in some configure scripts.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 10-1
- Provides certain base Windows DLLs (not literally).

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 9-1
- Include RPM dependency generators and definitions.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 4-1
- Add _mingw_cc/cflags/etc. and _mingw_configure macros.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 3-1
- Add _mingw_host macro.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 2-1
- Add _mingw_sysroot macro.
- Add _mingw_target macro.

* Thu Sep  4 2008 Richard W.M. Jones <rjones@redhat.com> - 1-1
- Basic filesystem layout.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3322 |21cr|mingw-gcc-11.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __os_install_post /usr/lib/rpm/brp-compress %{nil}

# Causes build failures
%undefine _auto_set_build_flags

# Steps:
# 1. Build mingw-gcc with bootstrap=1, enable_libgomp=0
# 2. Build mingw-crt
# 3. Build mingw-gcc with bootstrap=0, enable_libgomp=0
# 4. Build mingw-winpthreads
# 5. Build mingw-gcc with bootstrap=0, enable_libgomp=1

# Set this to one when mingw-crt isn't built yet
%global bootstrap 0
# Set this one to zero when mingw-winpthreads isn't built yet
%global enable_libgomp 1

%if 0%{?rhel} > 8
%global build_isl 0
%else
%global build_isl 1
%endif

# Run the testsuite
%global enable_tests 0

%global DATE 20211019
%global GITREV 0990a48aaf68b56a3737fdb290328df1da9095cc
%global gcc_version 11.2.1
%global gcc_major 11

Name:           mingw-gcc
Version:        %{gcc_version}
Release:        2
Summary:        MinGW Windows cross-compiler (GCC) for C
Group:          Development/Other
License:        GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions
URL:            http://gcc.gnu.org

# The source for this package was pulled from upstream's vcs.  Use the
# following commands to generate the tarball:
# git clone --depth 1 git://gcc.gnu.org/git/gcc.git gcc-dir.tmp
# git --git-dir=gcc-dir.tmp/.git fetch --depth 1 origin %%{gitrev}
# git --git-dir=gcc-dir.tmp/.git archive --prefix=%%{name}-%%{version}-%%{DATE}/ %%{gitrev} | xz -9e > %%{name}-%%{version}-%%{DATE}.tar.xz
# rm -rf gcc-dir.tmp
%global srcdir gcc-%{version}-%{DATE}
Source0:        %{srcdir}.tar.xz

Patch0:         mingw-gcc-config.patch
# See https://sourceforge.net/p/mingw-w64/mailman/mingw-w64-public/thread/8fd2fb03-9b8a-07e1-e162-0bb48bcc3984%40gmail.com/#msg37200751
Patch1:         0020-libgomp-Don-t-hard-code-MS-printf-attributes.patch

BuildRequires:  gcc-c++
BuildRequires:  make
BuildRequires:  texinfo
BuildRequires:  mingw32-filesystem >= 95
BuildRequires:  mingw64-filesystem >= 95
BuildRequires:  mingw32-binutils
BuildRequires:  mingw64-binutils
BuildRequires:  mingw32-headers
BuildRequires:  mingw64-headers
BuildRequires:  gmp-devel
BuildRequires:  mpfr-devel
BuildRequires:  libmpc-devel
BuildRequires:  libgomp-devel
BuildRequires:  flex
BuildRequires:  zlib-devel
%if %{build_isl}
BuildRequires: isl-devel
%endif
%if 0%{bootstrap} == 0
BuildRequires:  mingw32-crt
BuildRequires:  mingw64-crt
%if 0%{enable_libgomp}
BuildRequires:  mingw32-winpthreads
BuildRequires:  mingw64-winpthreads
%endif
%if 0%{enable_tests}
BuildRequires:  wine
BuildRequires:  autogen
BuildRequires:  dejagnu
BuildRequires:  sharutils
%endif
%endif
Provides: bundled(libiberty)
# e2k use lcc compiller? may be need make mingw-lcc?
ExcludeArch: %{e2k}

%description
MinGW Windows cross-compiler (GCC) for C.

###############################################################################
# Mingw32
###############################################################################
%package -n mingw32-gcc
Summary:        MinGW Windows cross-compiler (GCC) for C for the win32 target
Requires:       mingw32-binutils
Requires:       mingw32-headers
Requires:       mingw32-cpp
%if 0%{bootstrap} == 0
Requires:       mingw32-crt
%endif

%description -n mingw32-gcc
MinGW Windows cross-compiler (GCC) for C for the win32 target.


%package -n mingw32-cpp
Summary:        MinGW Windows cross-C Preprocessor for the win32 target
# NB: Explicit mingw32-filesystem dependency is REQUIRED here.
Requires:       mingw32-filesystem >= 95

%description -n mingw32-cpp
MinGW Windows cross-C Preprocessor for the win32 target.


%package -n mingw32-gcc-c++
Summary:        MinGW Windows cross-compiler for C++ for the win32 target
Requires:       mingw32-gcc = %{version}-%{release}

%description -n mingw32-gcc-c++
MinGW Windows cross-compiler for C++ for the win32 target.


%package -n mingw32-gcc-objc
Summary:        MinGW Windows cross-compiler support for Objective C for the win32 target
Requires:       mingw32-gcc = %{version}-%{release}

%description -n mingw32-gcc-objc
MinGW Windows cross-compiler support for Objective C for the win32 target.


%package -n mingw32-gcc-objc++
Summary:        MinGW Windows cross-compiler support for Objective C++ for the win32 target
Requires:       mingw32-gcc-c++ = %{version}-%{release}
Requires:       mingw32-gcc-objc = %{version}-%{release}

%description -n mingw32-gcc-objc++
MinGW Windows cross-compiler support for Objective C++ for the win32 target.


%package -n mingw32-gcc-gfortran
Summary:        MinGW Windows cross-compiler for FORTRAN for the win32 target
Requires:       mingw32-gcc = %{version}-%{release}

%description -n mingw32-gcc-gfortran
MinGW Windows cross-compiler for FORTRAN for the win32 target.


%if 0%{enable_libgomp}
%package -n mingw32-libgomp
Summary:        GCC OpenMP v3.0 shared support library for the win32 target
Requires:       mingw32-gcc = %{version}-%{release}

%description -n mingw32-libgomp
This package contains GCC shared support library which is
needed for OpenMP v3.0 support for the win32 target.
%endif

###############################################################################
# Mingw64
###############################################################################
%package -n mingw64-gcc
Summary:        MinGW Windows cross-compiler (GCC) for C for the win64 target
Requires:       mingw64-binutils
Requires:       mingw64-headers
Requires:       mingw64-cpp
%if 0%{bootstrap} == 0
Requires:       mingw64-crt
%endif

%description -n mingw64-gcc
MinGW Windows cross-compiler (GCC) for C for the win64 target.


%package -n mingw64-cpp
Summary:        MinGW Windows cross-C Preprocessor for the win64 target
# NB: Explicit mingw64-filesystem dependency is REQUIRED here.
Requires:       mingw64-filesystem >= 95

%description -n mingw64-cpp
MinGW Windows cross-C Preprocessor for the win64 target


%package -n mingw64-gcc-c++
Summary:        MinGW Windows cross-compiler for C++ for the win64 target
Requires:       mingw64-gcc = %{version}-%{release}

%description -n mingw64-gcc-c++
MinGW Windows cross-compiler for C++ for the win64 target.


%package -n mingw64-gcc-objc
Summary:        MinGW Windows cross-compiler support for Objective C for the win64 target
Requires:       mingw64-gcc = %{version}-%{release}

%description -n mingw64-gcc-objc
MinGW Windows cross-compiler support for Objective C for the win64 target.


%package -n mingw64-gcc-objc++
Summary:        MinGW Windows cross-compiler support for Objective C++ for the win64 target
Requires:       mingw64-gcc-c++ = %{version}-%{release}
Requires:       mingw64-gcc-objc = %{version}-%{release}

%description -n mingw64-gcc-objc++
MinGW Windows cross-compiler support for Objective C++ for the win64 target.


%package -n mingw64-gcc-gfortran
Summary:        MinGW Windows cross-compiler for FORTRAN for the win64 target
Requires:       mingw64-gcc = %{version}-%{release}

%description -n mingw64-gcc-gfortran
MinGW Windows cross-compiler for FORTRAN for the win64 target.


%if 0%{enable_libgomp}
%package -n mingw64-libgomp
Summary:        GCC OpenMP v3.0 shared support library for the win64 target
Requires:       mingw64-gcc = %{version}-%{release}

%description -n mingw64-libgomp
This package contains GCC shared support library which is
needed for OpenMP v3.0 support for the win32 target.
%endif


%prep
%autosetup -p1 -n %{srcdir}
echo 'Fedora MinGW %{version}-%{release}' > gcc/DEV-PHASE

# update config.sub and config.guess
%config_update

%build
# Default configure arguments
configure_args="\
    --prefix=%{_prefix} \
    --bindir=%{_bindir} \
    --includedir=%{_includedir} \
    --mandir=%{_mandir} \
    --infodir=%{_infodir} \
    --datadir=%{_datadir} \
    --build=%_build --host=%_host \
    --with-gnu-as --with-gnu-ld --verbose \
    --without-newlib \
    --disable-multilib \
    --disable-plugin \
    --with-system-zlib \
    --disable-nls --without-included-gettext \
    --disable-win32-registry \
    --enable-languages="c,c++,objc,obj-c++,fortran" \
    --with-bugurl=http://bugzilla.redhat.com/bugzilla \
    --enable-threads=posix"

# PPL/CLOOG optimalisations are only available on Fedora
%if %{build_isl}
configure_args="$configure_args --with-isl"
%else
configure_args="$configure_args --without-isl"
%endif

# When bootstrapping, disable LTO support as it causes errors while building any binary
# $ i686-w64-mingw32-gcc -o conftest    conftest.c  >&5
# i686-w64-mingw32-gcc: fatal error: -fuse-linker-plugin, but liblto_plugin.so not found
%if 0%{bootstrap}
configure_args="$configure_args --disable-lto --enable-threads=win32"
%endif

%if 0%{enable_libgomp}
configure_args="$configure_args --enable-libgomp"
%else
#for Step3 (bootstrap=0 and enable_libgomp=0
configure_args="$configure_args --enable-threads=win32"
%endif

# The %%configure macro can't be used for out of source builds
# without overriding other variables and causes unwanted side
# effects so make sure the right compiler flags are used
export CC="%{__cc} ${RPM_OPT_FLAGS}"

# Win32
mkdir build_win32
pushd build_win32
    ../configure $configure_args --target=%{mingw32_target} --with-sysroot=%{mingw32_sysroot} --with-gxx-include-dir=%{mingw32_includedir}/c++ --disable-sjlj-exceptions --with-dwarf2
popd

# Win64
mkdir build_win64
pushd build_win64
    ../configure $configure_args --target=%{mingw64_target} --with-sysroot=%{mingw64_sysroot} --with-gxx-include-dir=%{mingw64_includedir}/c++
popd

# If we're bootstrapping, only build the GCC core
%if 0%{bootstrap}
%mingw_make_build all-gcc
%else
%mingw_make_build all
%endif


%if 0%{enable_tests}
%check
# Win32
# Create a seperate wine prefix
export WINEPREFIX=/tmp/.wine_gcc_testsuite
rm -rf $WINEPREFIX
mkdir $WINEPREFIX

# The command below will fail, but that's intentional
# We only have to call a wine binary which triggers
# the generation and population of a wine prefix
winecfg || :

# Copy the GCC DLL's inside the wine prefix
SYSTEM32_DIR=$WINEPREFIX/drive_c/windows/syswow64
if [ ! -d $SYSTEM32_DIR ] ; then
    SYSTEM32_DIR=$WINEPREFIX/drive_c/windows/system32
fi
cp build_win32/i686-w64-mingw32/libquadmath/.libs/libquadmath-0.dll $SYSTEM32_DIR
cp build_win32/i686-w64-mingw32/libgfortran/.libs/libgfortran-5.dll $SYSTEM32_DIR
cp build_win32/i686-w64-mingw32/libobjc/.libs/libobjc-4.dll $SYSTEM32_DIR
cp build_win32/i686-w64-mingw32/libssp/.libs/libssp-0.dll $SYSTEM32_DIR
cp build_win32/i686-w64-mingw32/libstdc++-v3/src/.libs/libstdc++-6.dll $SYSTEM32_DIR
cp build_win32/i686-w64-mingw32/libgcc/shlib/libgcc_s_dw2-1.dll $SYSTEM32_DIR
%if 0%{enable_libgomp}
cp %{mingw32_bindir}/libwinpthread-1.dll $SYSTEM32_DIR
cp build_win32/i686-w64-mingw32/libgomp/.libs/libgomp-1.dll $SYSTEM32_DIR
%endif

SYSTEM64_DIR=$WINEPREFIX/drive_c/windows/system32
cp build_win64/x86_64-w64-mingw32/libquadmath/.libs/libquadmath-0.dll $SYSTEM64_DIR
cp build_win64/x86_64-w64-mingw32/libgfortran/.libs/libgfortran-5.dll $SYSTEM64_DIR
cp build_win64/x86_64-w64-mingw32/libobjc/.libs/libobjc-4.dll $SYSTEM64_DIR
cp build_win64/x86_64-w64-mingw32/libssp/.libs/libssp-0.dll $SYSTEM64_DIR
cp build_win64/x86_64-w64-mingw32/libstdc++-v3/src/.libs/libstdc++-6.dll $SYSTEM64_DIR
cp build_win64/x86_64-w64-mingw32/libgcc/shlib/libgcc_s_seh-1.dll $SYSTEM64_DIR
%if 0%{enable_libgomp}
cp %{mingw64_bindir}/libwinpthread-1.dll $SYSTEM64_DIR
cp build_win64/x86_64-w64-mingw32/libgomp/.libs/libgomp-1.dll $SYSTEM64_DIR
%endif

# According to Kai Tietz (of the mingw-w64 project) it's recommended
# to set the environment variable GCOV_PREFIX_STRIP
export GCOV_PREFIX_STRIP=1000

# Run the testsuite
# Code taken from the native Fedora GCC package to collect testsuite results
pushd build_win32
    make -k check %{?_smp_mflags} || :
    echo ====================TESTING WIN32=========================
    ( LC_ALL=C ../contrib/test_summary || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}'
    echo ====================TESTING WIN32 END=====================
    mkdir testlogs-%{mingw32_target}-%{version}-%{release}
    for i in `find . -name \*.log | grep -F testsuite/ | grep -v 'config.log\|acats.*/tests/'`; do
        ln $i testlogs-%{mingw32_target}-%{version}-%{release}/ || :
    done
    tar cf - testlogs-%{mingw32_target}-%{version}-%{release} | bzip2 -9c \
        | uuencode testlogs-%{mingw32_target}.tar.bz2 || :
    rm -rf testlogs-%{mingw32_target}-%{version}-%{release}
popd

pushd build_win64
    make -k check %{?_smp_mflags} || :
    echo ====================TESTING WIN64=========================
    ( LC_ALL=C ../contrib/test_summary || : ) 2>&1 | sed -n '/^cat.*EOF/,/^EOF/{/^cat.*EOF/d;/^EOF/d;/^LAST_UPDATED:/d;p;}'
    echo ====================TESTING WIN64 END=====================
    mkdir testlogs-%{mingw64_target}-%{version}-%{release}
    for i in `find . -name \*.log | grep -F testsuite/ | grep -v 'config.log\|acats.*/tests/'`; do
        ln $i testlogs-%{mingw64_target}-%{version}-%{release}/ || :
    done
    tar cf - testlogs-%{mingw64_target}-%{version}-%{release} | bzip2 -9c \
        | uuencode testlogs-%{mingw64_target}.tar.bz2 || :
    rm -rf testlogs-%{mingw64_target}-%{version}-%{release}
popd

%endif


%install
%if 0%{bootstrap}
%mingw_make DESTDIR=%{buildroot} install-gcc
%else
%mingw_make_install
%endif

# These files conflict with existing installed files.
rm -rf %{buildroot}%{_infodir}
rm -f %{buildroot}%{_libdir}/libiberty*
rm -f %{buildroot}%{_mandir}/man7/*
rm -rf %{buildroot}%{_datadir}/gcc-%{version}/python

%if 0%{bootstrap} == 0
# Move the DLL's manually to the correct location
mkdir -p %{buildroot}%{mingw32_bindir}
mv    %{buildroot}%{_prefix}/%{mingw32_target}/lib/libatomic-1.dll \
      %{buildroot}%{_prefix}/%{mingw32_target}/lib/libgcc_s_dw2-1.dll \
      %{buildroot}%{_prefix}/%{mingw32_target}/lib/libssp-0.dll \
      %{buildroot}%{_prefix}/%{mingw32_target}/lib/libstdc++-6.dll \
      %{buildroot}%{_prefix}/%{mingw32_target}/lib/libobjc-4.dll \
      %{buildroot}%{_prefix}/%{mingw32_target}/lib/libgfortran-5.dll \
      %{buildroot}%{_prefix}/%{mingw32_target}/lib/libquadmath-0.dll \
%if 0%{enable_libgomp}
      %{buildroot}%{_prefix}/%{mingw32_target}/lib/libgomp-1.dll \
%endif
      %{buildroot}%{mingw32_bindir}

mkdir -p %{buildroot}%{mingw64_bindir}
mv    %{buildroot}%{_prefix}/%{mingw64_target}/lib/libatomic-1.dll \
      %{buildroot}%{_prefix}/%{mingw64_target}/lib/libgcc_s_seh-1.dll \
      %{buildroot}%{_prefix}/%{mingw64_target}/lib/libssp-0.dll \
      %{buildroot}%{_prefix}/%{mingw64_target}/lib/libstdc++-6.dll \
      %{buildroot}%{_prefix}/%{mingw64_target}/lib/libobjc-4.dll \
      %{buildroot}%{_prefix}/%{mingw64_target}/lib/libgfortran-5.dll \
      %{buildroot}%{_prefix}/%{mingw64_target}/lib/libquadmath-0.dll \
%if 0%{enable_libgomp}
      %{buildroot}%{_prefix}/%{mingw64_target}/lib/libgomp-1.dll \
%endif
      %{buildroot}%{mingw64_bindir}

# Various import libraries are placed in the wrong folder
mkdir -p %{buildroot}%{mingw32_libdir}
mkdir -p %{buildroot}%{mingw64_libdir}
mv %{buildroot}%{_prefix}/%{mingw32_target}/lib/* %{buildroot}%{mingw32_libdir}
mv %{buildroot}%{_prefix}/%{mingw64_target}/lib/* %{buildroot}%{mingw64_libdir}

# Don't want the *.la files.
find %{buildroot} -name '*.la' -delete

%endif

# For some reason there are wrapper libraries created named $target-$target-gcc-$tool
# Drop those files for now as this looks like a bug in GCC
rm -f %{buildroot}%{_bindir}/%{mingw32_target}-%{mingw32_target}-*
rm -f %{buildroot}%{_bindir}/%{mingw64_target}-%{mingw64_target}-*

%if 0%{bootstrap} == 0
# HACK symlink libssp dll over import lib, otherwise linking with -lssp failes for mysterious reasons
# Needed to build gdb and everything which adds -D_FORTIFY_SOURCES=... and -fstack-protector
ln -sf %{mingw32_bindir}/libssp-0.dll %{buildroot}%{mingw32_libdir}/libssp.dll.a
ln -sf %{mingw64_bindir}/libssp-0.dll %{buildroot}%{mingw64_libdir}/libssp.dll.a
%endif


%files -n mingw32-gcc
%{_bindir}/%{mingw32_target}-gcc
%{_bindir}/%{mingw32_target}-gcc-%{version}
%{_bindir}/%{mingw32_target}-gcc-ar
%{_bindir}/%{mingw32_target}-gcc-nm
%{_bindir}/%{mingw32_target}-gcc-ranlib
%{_bindir}/%{mingw32_target}-gcov
%{_bindir}/%{mingw32_target}-gcov-dump
%{_bindir}/%{mingw32_target}-gcov-tool
%dir %{_prefix}/lib/gcc/%{mingw32_target}/%{version}
%dir %{_prefix}/lib/gcc/%{mingw32_target}/%{version}/include-fixed
%dir %{_prefix}/lib/gcc/%{mingw32_target}/%{version}/include
%dir %{_prefix}/lib/gcc/%{mingw32_target}/%{version}/install-tools
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/include-fixed/README
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/include-fixed/*.h
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/include/*.h
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/install-tools/*
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/collect2
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/lto-wrapper
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/install-tools
%{_mandir}/man1/%{mingw32_target}-gcc.1*
%{_mandir}/man1/%{mingw32_target}-gcov.1*
%{_mandir}/man1/%{mingw32_target}-gcov-dump.1*
%{_mandir}/man1/%{mingw32_target}-gcov-tool.1*

# Non-bootstrap files
%if 0%{bootstrap} == 0
%{_bindir}/%{mingw32_target}-lto-dump
%{mingw32_bindir}/libatomic-1.dll
%{mingw32_bindir}/libgcc_s_dw2-1.dll
%{mingw32_bindir}/libssp-0.dll
%{mingw32_libdir}/libatomic.a
%{mingw32_libdir}/libatomic.dll.a
%{mingw32_libdir}/libgcc_s.a
%{mingw32_libdir}/libssp.a
%{mingw32_libdir}/libssp.dll.a
%{mingw32_libdir}/libssp_nonshared.a
%{mingw32_libdir}/libstdc++fs.a
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/crtbegin.o
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/crtend.o
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/crtfastmath.o
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/libgcc.a
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/libgcc_eh.a
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/libgcov.a
%dir %{_prefix}/lib/gcc/%{mingw32_target}/%{version}/include/ssp
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/include/ssp/*.h
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/g++-mapper-server
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/lto1
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/liblto_plugin.so*
%{_mandir}/man1/%{mingw32_target}-lto-dump.1*
%endif

%files -n mingw64-gcc
%{_bindir}/%{mingw64_target}-gcc
%{_bindir}/%{mingw64_target}-gcc-%{version}
%{_bindir}/%{mingw64_target}-gcc-ar
%{_bindir}/%{mingw64_target}-gcc-nm
%{_bindir}/%{mingw64_target}-gcc-ranlib
%{_bindir}/%{mingw64_target}-gcov
%{_bindir}/%{mingw64_target}-gcov-dump
%{_bindir}/%{mingw64_target}-gcov-tool
%dir %{_prefix}/lib/gcc/%{mingw64_target}/%{version}
%dir %{_prefix}/lib/gcc/%{mingw64_target}/%{version}/include-fixed
%dir %{_prefix}/lib/gcc/%{mingw64_target}/%{version}/include
%dir %{_prefix}/lib/gcc/%{mingw64_target}/%{version}/install-tools
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/include-fixed/README
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/include-fixed/*.h
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/include/*.h
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/install-tools/*
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/collect2
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/lto-wrapper
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/install-tools
%{_mandir}/man1/%{mingw64_target}-gcc.1*
%{_mandir}/man1/%{mingw64_target}-gcov.1*
%{_mandir}/man1/%{mingw64_target}-gcov-dump.1*
%{_mandir}/man1/%{mingw64_target}-gcov-tool.1*

# Non-bootstrap files
%if 0%{bootstrap} == 0
%{_bindir}/%{mingw64_target}-lto-dump
%{mingw64_bindir}/libatomic-1.dll
%{mingw64_bindir}/libgcc_s_seh-1.dll
%{mingw64_bindir}/libssp-0.dll
%{mingw64_libdir}/libatomic.a
%{mingw64_libdir}/libatomic.dll.a
%{mingw64_libdir}/libgcc_s.a
%{mingw64_libdir}/libssp.a
%{mingw64_libdir}/libssp.dll.a
%{mingw64_libdir}/libssp_nonshared.a
%{mingw64_libdir}/libstdc++fs.a
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/crtbegin.o
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/crtend.o
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/crtfastmath.o
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/libgcc.a
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/libgcc_eh.a
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/libgcov.a
%dir %{_prefix}/lib/gcc/%{mingw64_target}/%{version}/include/ssp
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/include/ssp/*.h
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/g++-mapper-server
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/lto1
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/liblto_plugin.so*
%{_mandir}/man1/%{mingw64_target}-lto-dump.1*
%endif

%files -n mingw32-cpp
%{_bindir}/%{mingw32_target}-cpp
%{_mandir}/man1/%{mingw32_target}-cpp.1*
%dir %{_prefix}/lib/gcc/%{mingw32_target}
%dir %{_prefix}/lib/gcc/%{mingw32_target}/%{version}
%dir %{_libexecdir}/gcc/%{mingw32_target}/%{version}
%dir %{_libexecdir}/gcc/%{mingw32_target}
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/cc1

%files -n mingw64-cpp
%{_bindir}/%{mingw64_target}-cpp
%{_mandir}/man1/%{mingw64_target}-cpp.1*
%dir %{_prefix}/lib/gcc/%{mingw64_target}
%dir %{_prefix}/lib/gcc/%{mingw64_target}/%{version}
%dir %{_libexecdir}/gcc/%{mingw64_target}/%{version}
%dir %{_libexecdir}/gcc/%{mingw64_target}
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/cc1

%files -n mingw32-gcc-c++
%{_bindir}/%{mingw32_target}-g++
%{_bindir}/%{mingw32_target}-c++
%{_mandir}/man1/%{mingw32_target}-g++.1*
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/cc1plus

# Non-bootstrap files
%if 0%{bootstrap} == 0
%{mingw32_includedir}/c++/
%{mingw32_bindir}/libstdc++-6.dll
%{mingw32_libdir}/libstdc++.a
%{mingw32_libdir}/libstdc++.dll.a
%{mingw32_libdir}/libstdc++.dll.a-gdb.py
%{mingw32_libdir}/libsupc++.a
%endif

%files -n mingw64-gcc-c++
%{_bindir}/%{mingw64_target}-g++
%{_bindir}/%{mingw64_target}-c++
%{_mandir}/man1/%{mingw64_target}-g++.1*
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/cc1plus

# Non-bootstrap files
%if 0%{bootstrap} == 0
%{mingw64_includedir}/c++/
%{mingw64_bindir}/libstdc++-6.dll
%{mingw64_libdir}/libstdc++.a
%{mingw64_libdir}/libstdc++.dll.a
%{mingw64_libdir}/libstdc++.dll.a-gdb.py
%{mingw64_libdir}/libsupc++.a
%endif

%files -n mingw32-gcc-objc
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/cc1obj
%if 0%{bootstrap} == 0
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/include/objc/
%{mingw32_bindir}/libobjc-4.dll
%{mingw32_libdir}/libobjc.a
%{mingw32_libdir}/libobjc.dll.a
%endif

%files -n mingw64-gcc-objc
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/cc1obj
%if 0%{bootstrap} == 0
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/include/objc/
%{mingw64_bindir}/libobjc-4.dll
%{mingw64_libdir}/libobjc.a
%{mingw64_libdir}/libobjc.dll.a
%endif

%files -n mingw32-gcc-objc++
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/cc1objplus

%files -n mingw64-gcc-objc++
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/cc1objplus

%files -n mingw32-gcc-gfortran
%{_bindir}/%{mingw32_target}-gfortran
%{_mandir}/man1/%{mingw32_target}-gfortran.1*
%{_libexecdir}/gcc/%{mingw32_target}/%{version}/f951
%if 0%{bootstrap} == 0
%{mingw32_bindir}/libgfortran-5.dll
%{mingw32_bindir}/libquadmath-0.dll
%{mingw32_libdir}/libgfortran.a
%{mingw32_libdir}/libgfortran.dll.a
%{mingw32_libdir}/libgfortran.spec
%{mingw32_libdir}/libquadmath.a
%{mingw32_libdir}/libquadmath.dll.a
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/libcaf_single.a
%{_prefix}/lib/gcc/%{mingw32_target}/%{version}/finclude
%endif

%files -n mingw64-gcc-gfortran
%{_bindir}/%{mingw64_target}-gfortran
%{_mandir}/man1/%{mingw64_target}-gfortran.1*
%{_libexecdir}/gcc/%{mingw64_target}/%{version}/f951
%if 0%{bootstrap} == 0
%{mingw64_bindir}/libgfortran-5.dll
%{mingw64_bindir}/libquadmath-0.dll
%{mingw64_libdir}/libgfortran.a
%{mingw64_libdir}/libgfortran.dll.a
%{mingw64_libdir}/libgfortran.spec
%{mingw64_libdir}/libquadmath.a
%{mingw64_libdir}/libquadmath.dll.a
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/libcaf_single.a
%{_prefix}/lib/gcc/%{mingw64_target}/%{version}/finclude
%endif

%if 0%{enable_libgomp}
%files -n mingw32-libgomp
%{mingw32_bindir}/libgomp-1.dll
%{mingw32_libdir}/libgomp.a
%{mingw32_libdir}/libgomp.dll.a
%{mingw32_libdir}/libgomp.spec

%files -n mingw64-libgomp
%{mingw64_bindir}/libgomp-1.dll
%{mingw64_libdir}/libgomp.a
%{mingw64_libdir}/libgomp.dll.a
%{mingw64_libdir}/libgomp.spec
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3323 |21cr|mingw-headers-9.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%global snapshot_date 20160723
#%%global snapshot_rev 65a0c3298db7cc5cbded63259663cb29e4780a56
#%%global snapshot_rev_short %(echo %snapshot_rev | cut -c1-6)
#%%global branch v5.x

#%%global pre rc2

# The mingw-w64-headers provide the headers pthread_time.h
# and pthread_unistd.h by default and are dummy headers.
# The real implementation for these headers is in a separate
# library called winpthreads. As long as winpthreads isn't
# available (and the old pthreads-w32 implementation is used)
# the flag below needs to be set to 1. When winpthreads is
# available then this flag needs to be set to 0 to avoid
# a file conflict with the winpthreads headers
# Winpthreads is available as of Fedora 20

# disable this option after build mingw-winpthreads
%bcond_with bundle_dummy_pthread_headers

Name:           mingw-headers
Version:        9.0.0
Release:        5
Summary:        Win32/Win64 header files
Group:          Development/Other
License:        Public Domain and LGPLv2+ and ZPLv2.1
URL:            http://mingw-w64.sourceforge.net/
%if 0%{?snapshot_date}
# To regenerate a snapshot:
# Use your regular webbrowser to open https://sourceforge.net/p/mingw-w64/mingw-w64/ci/%{snapshot_rev}/tarball
# This triggers the SourceForge instructure to generate a snapshot
# After that you can pull in the archive with:
# spectool -g mingw-headers.spec
Source0:        http://sourceforge.net/code-snapshots/git/m/mi/mingw-w64/mingw-w64.git/mingw-w64-mingw-w64-%{snapshot_rev}.zip
%else
Source0:        http://downloads.sourceforge.net/mingw-w64/mingw-w64-v%{version}%{?pre:-%{pre}}.tar.bz2
%endif

# Our RPM macros automatically set the environment variable WIDL
# This confuses the mingw-headers configure scripts and causes various
# headers to be regenerated from their .idl source. Prevent this from
# happening as the .idl files shouldn't be used by default
Patch0:         mingw-headers-no-widl.patch

BuildArch:      noarch

BuildRequires:  make
BuildRequires:  mingw32-filesystem >= 95
BuildRequires:  mingw64-filesystem >= 95


%description
MinGW Windows cross-compiler Win32 and Win64 header files.


%package -n mingw32-headers
Summary:        MinGW Windows cross-compiler Win32 header files
Requires:       mingw32-filesystem >= 95
%if %{without bundle_dummy_pthread_headers}
Requires:       mingw32-winpthreads
%endif

Obsoletes:      mingw32-w32api < 3.17-3%{?dist}
Provides:       mingw32-w32api = 3.17-3%{?dist}

%description -n mingw32-headers
MinGW Windows cross-compiler Win32 header files.

%package -n mingw64-headers
Summary:        MinGW Windows cross-compiler Win64 header files
Requires:       mingw64-filesystem >= 95
%if %{without bundle_dummy_pthread_headers}
Requires:       mingw64-winpthreads
%endif

%description -n mingw64-headers
MinGW Windows cross-compiler Win64 header files.


%prep
%if 0%{?snapshot_date}
rm -rf mingw-w64-v%{version}
mkdir mingw-w64-v%{version}
cd mingw-w64-v%{version}
unzip %{S:0}
%autosetup -p1 -D -T -n mingw-w64-v%{version}/mingw-w64-mingw-w64-%{snapshot_rev}
%else
%autosetup -p1 -n mingw-w64-v%{version}%{?pre:-%{pre}}
%endif

#update config.sub and config.guess
%config_update

%build
pushd mingw-w64-headers
    %mingw_configure --enable-sdk=all --enable-secure-api
popd


%install
pushd mingw-w64-headers
    %mingw_make_install
popd

# Drop the dummy pthread headers if necessary
%if %{without bundle_dummy_pthread_headers}
rm -f %{buildroot}%{mingw32_includedir}/pthread_signal.h
rm -f %{buildroot}%{mingw32_includedir}/pthread_time.h
rm -f %{buildroot}%{mingw32_includedir}/pthread_unistd.h
rm -f %{buildroot}%{mingw64_includedir}/pthread_signal.h
rm -f %{buildroot}%{mingw64_includedir}/pthread_time.h
rm -f %{buildroot}%{mingw64_includedir}/pthread_unistd.h
%endif


%files -n mingw32-headers
%license COPYING DISCLAIMER DISCLAIMER.PD
%{mingw32_includedir}/*

%files -n mingw64-headers
%license COPYING DISCLAIMER DISCLAIMER.PD
%{mingw64_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3324 |21cr|mingw-winpthreads-9.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?mingw_package_header}

#%%global snapshot_date 20160204
#%%global snapshot_rev 38410ad06264949efcb331f7a63575c6be31c5e4
#%%global snapshot_rev_short %(echo %snapshot_rev | cut -c1-6)
#%%global branch trunk

#%%global pre rc2

# Run the testsuite
%global enable_tests 0

Name:           mingw-winpthreads
Version:        9.0.0
Release:        1
Summary:        MinGW pthread library
Group:          Development/Other
# The main license of winpthreads is MIT, but parts of this library
# are derived from the "Posix Threads library for Microsoft Windows"
# http://locklessinc.com/articles/pthreads_on_windows/
License:        MIT and BSD
URL:            http://mingw-w64.sourceforge.net/
%if 0%{?snapshot_date}
# To regenerate a snapshot:
# Use your regular webbrowser to open https://sourceforge.net/p/mingw-w64/mingw-w64/ci/%{snapshot_rev}/tarball
# This triggers the SourceForge instructure to generate a snapshot
# After that you can pull in the archive with:
# spectool -g mingw-headers.spec
Source0:        http://sourceforge.net/code-snapshots/git/m/mi/mingw-w64/mingw-w64.git/mingw-w64-mingw-w64-%{snapshot_rev}.zip
%else
Source0:        http://downloads.sourceforge.net/mingw-w64/mingw-w64-v%{version}%{?pre:-%{pre}}.tar.bz2
%endif

BuildArch:      noarch

BuildRequires:  make
BuildRequires:  mingw32-filesystem >= 95
BuildRequires:  mingw64-filesystem >= 95
BuildRequires:  mingw32-gcc-c++
BuildRequires:  mingw64-gcc-c++

%if 0%{?enable_tests}
BuildRequires:  wine-wow
%endif


%description
The POSIX 1003.1-2001 standard defines an application programming
interface (API) for writing multithreaded applications. This interface
is known more commonly as pthreads. A good number of modern operating
systems include a threading library of some kind: Solaris (UI)
threads, Win32 threads, DCE threads, DECthreads, or any of the draft
revisions of the pthreads standard. The trend is that most of these
systems are slowly adopting the pthreads standard API, with
application developers following suit to reduce porting woes.

Win32 does not, and is unlikely to ever, support pthreads
natively. This project seeks to provide a freely available and
high-quality solution to this problem.

# Win32
%package -n mingw32-winpthreads
Summary:        MinGW pthread library for the win32 target
Obsoletes:      mingw32-pthreads < 2.8.0-25.20110511cvs
Provides:       mingw32-pthreads = 2.8.0-25.20110511cvs
Conflicts:      mingw32-headers < 2.0.999-0.22.trunk.20130428

%description -n mingw32-winpthreads
The POSIX 1003.1-2001 standard defines an application programming
interface (API) for writing multithreaded applications. This interface
is known more commonly as pthreads. A good number of modern operating
systems include a threading library of some kind: Solaris (UI)
threads, Win32 threads, DCE threads, DECthreads, or any of the draft
revisions of the pthreads standard. The trend is that most of these
systems are slowly adopting the pthreads standard API, with
application developers following suit to reduce porting woes.

Win32 does not, and is unlikely to ever, support pthreads
natively. This project seeks to provide a freely available and
high-quality solution to this problem.

%package -n mingw32-winpthreads-static
Summary:        Static version of the MinGW Windows pthreads library
Requires:       mingw32-winpthreads = %{version}-%{release}
Obsoletes:      mingw32-pthreads-static < 2.8.0-25.20110511cvs
Provides:       mingw32-pthreads-static = 2.8.0-25.20110511cvs

%description -n mingw32-winpthreads-static
Static version of the MinGW Windows pthreads library.

# Win64
%package -n mingw64-winpthreads
Summary:        MinGW pthread library for the win64 target
Obsoletes:      mingw64-pthreads < 2.8.0-25.20110511cvs
Provides:       mingw64-pthreads = 2.8.0-25.20110511cvs
Conflicts:      mingw64-headers < 2.0.999-0.22.trunk.20130428

%description -n mingw64-winpthreads
The POSIX 1003.1-2001 standard defines an application programming
interface (API) for writing multithreaded applications. This interface
is known more commonly as pthreads. A good number of modern operating
systems include a threading library of some kind: Solaris (UI)
threads, Win32 threads, DCE threads, DECthreads, or any of the draft
revisions of the pthreads standard. The trend is that most of these
systems are slowly adopting the pthreads standard API, with
application developers following suit to reduce porting woes.

Win32 does not, and is unlikely to ever, support pthreads
natively. This project seeks to provide a freely available and
high-quality solution to this problem.

%package -n mingw64-winpthreads-static
Summary:        Static version of the MinGW Windows pthreads library
Requires:       mingw64-winpthreads = %{version}-%{release}
Obsoletes:      mingw64-pthreads-static < 2.8.0-25.20110511cvs
Provides:       mingw64-pthreads-static = 2.8.0-25.20110511cvs

%description -n mingw64-winpthreads-static
Static version of the MinGW Windows pthreads library.


%?mingw_debug_package


%prep
%if 0%{?snapshot_date}
rm -rf mingw-w64-v%{version}
mkdir mingw-w64-v%{version}
cd mingw-w64-v%{version}
unzip %{S:0}
%autosetup -p1 -D -T -n mingw-w64-v%{version}/mingw-w64-mingw-w64-%{snapshot_rev}
%else
%autosetup -p1 -n mingw-w64-v%{version}%{?pre:-%{pre}}
%endif

# update config.sub and config.guest for riscv64 support
%config_update

%build
pushd mingw-w64-libraries/winpthreads
    %mingw_configure
    %mingw_make_build
popd


%if 0%{?enable_tests}

%check
# Prepare a wine prefix
export WINEPREFIX=/tmp/wine-winpthreads
mkdir $WINEPREFIX
winecfg || :

# Run the tests
pushd mingw-w64-libraries/winpthreads
    %mingw_make check -k || :
popd

# Clean up the wine prefix
wineserver --kill || :
rm -rf /tmp/wine-winpthreads

%endif


%install
pushd mingw-w64-libraries/winpthreads
    %mingw_make_install
popd

# Drop all .la files
find $RPM_BUILD_ROOT -name "*.la" -delete


# Win32
%files -n mingw32-winpthreads
%license COPYING
%{mingw32_bindir}/libwinpthread-1.dll
%{mingw32_libdir}/libwinpthread.dll.a
%{mingw32_libdir}/libpthread.dll.a
%{mingw32_includedir}/pthread.h
%{mingw32_includedir}/pthread_compat.h
%{mingw32_includedir}/pthread_signal.h
%{mingw32_includedir}/pthread_time.h
%{mingw32_includedir}/pthread_unistd.h
%{mingw32_includedir}/sched.h
%{mingw32_includedir}/semaphore.h

%files -n mingw32-winpthreads-static
%{mingw32_libdir}/libwinpthread.a
%{mingw32_libdir}/libpthread.a

# Win64
%files -n mingw64-winpthreads
%license COPYING
%{mingw64_bindir}/libwinpthread-1.dll
%{mingw64_libdir}/libwinpthread.dll.a
%{mingw64_libdir}/libpthread.dll.a
%{mingw64_includedir}/pthread.h
%{mingw64_includedir}/pthread_compat.h
%{mingw64_includedir}/pthread_signal.h
%{mingw64_includedir}/pthread_time.h
%{mingw64_includedir}/pthread_unistd.h
%{mingw64_includedir}/sched.h
%{mingw64_includedir}/semaphore.h

%files -n mingw64-winpthreads-static
%{mingw64_libdir}/libwinpthread.a
%{mingw64_libdir}/libpthread.a


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3325 |21cr|mini18n-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname mini18n %{major}
%define devname %mklibname mini18n -d

Summary:	A translation library
Name:		mini18n
Version:	0.1
Release:	7
#License:	LGPLv2+
#strange license
#it was already distributed with yabause under GPLv2+
License:	GPLv2+
Group:		System/Libraries
Url:		http://yabause.sourceforge.net/
Source0:	http://downloads.sourceforge.net/yabause/%{name}-%{version}.tar.gz

%description
Mini18n is a small library to translate applications across multiple
platforms.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A small translation library
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Provides:	lib%{name} = %{version}-%{release}

%description -n %{libname}
Library and data files for the mini18n package.

%files -n %{libname}
%doc AUTHORS ChangeLog README example/{main.c,Makefile*}
%{_libdir}/libmini18n.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static library from mini18n
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Library and includes files for developing programs translated with mini18n.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libmini18n.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3326 |21cr|minidjvu-0.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:           minidjvu
Version:        0.8
Release:        3
License:        GPLv2
Summary:        Bitonal DjVu Encoder/Decoder
URL:            http://minidjvu.sourceforge.net/
Group:          Graphics
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE minidjvu-0.8-gzip.patch lazy.kent@opensuse.org -- gzip manpages in buildroot
Patch0:         minidjvu-0.8-gzip.patch
# PATCH-FIX-OPENSUSE minidjvu-0.8-install.patch lazy.kent@opensuse.org -- fix install options
Patch1:         minidjvu-0.8-install.patch
BuildRequires:  gcc-c++
BuildRequires:  tiff-devel

%description
minidjvu is a command line utility which encodes and decodes single page
black-and-white DjVu files, and can compress multiple pages, taking
advantage from similarities between pages.

%package -n %{libname}
Summary:        Bitonal DjVu Encoder/Decoder Library
Group:          System/Libraries

%description -n %{libname}
Library for DjVu encoding/decoding black-and-white images.

%package -n %{devname}
Summary:        Minidjvu Development Files
Group:          Development/C
Requires:       %{libname} = %{version}

%description -n %{devname}
Development files for the package minidjvu.

%prep
%setup -q
%patch0
%patch1

%build
autoreconf -fiv
%configure --disable-static
# Don't run parallel make because of error!
make

%install
%makeinstall
chmod 755 %{buildroot}%{_libdir}/*
install -Dm 0644 %{name}.h %{buildroot}%{_includedir}/%{name}.h
for x in $(find ./minidjvu -type f -name "*.h") ; do
    install -Dm 0644 ${x} %{buildroot}%{_includedir}/${x}
done
%find_lang %{name}

%files -f %{name}.lang
%doc COPYING NEWS README
%{_bindir}/%{name}
%doc %{_mandir}/man1/*
%doc %{_mandir}/ru

%files -n %{libname}
%{_libdir}/*.so.*

%files -n %{devname}
%doc doc/{decode.html,encode.html}
%{_libdir}/*.so
%{_includedir}/%{name}
%{_includedir}/%{name}.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3327 |21cr|minidlna-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A DLNA/UPnP-AV compliant media server
Name:		minidlna
Version:	1.3.2
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://sourceforge.net/projects/minidlna/
Source0:	http://downloads.sourceforge.net/project/minidlna/minidlna/%{version}/minidlna-%{version}.tar.gz
Source2:	minidlna-tmpfiles.conf
Source3:	minidlna.1
Source4:	minidlna.conf.5
Source5:	%{name}.service
Source6:	minidlna.sysusers.conf
BuildRequires:	pkgconfig(flac)
BuildRequires:	libid3tag-devel
BuildRequires:	libexif-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	ffmpeg-devel >= 1.1
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	systemd
BuildRequires:	pkgconfig
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	gettext-devel
Requires:	/bin/systemd-sysusers

%description
MiniDLNA (aka ReadyDLNA) is server software with the aim of being fully
compliant with DLNA/UPnP-AV clients. MiniDLNA serves multimedia content
such as music, video and pictures to compatible clients on the network.

See http://www.upnp.org/ for more details on UPnP
and http://www.dlna.org/ for mode details on DLNA.

%prep
%setup -q

%build
%serverbuild

CPPFLAGS="`pkg-config --cflags libavcodec libavformat libavutil`"
export CPPFLAGS
./autogen.sh
%configure \
	--with-log-path=%{_logdir} \
	--with-db-path=%{_localstatedir}/cache \
	--with-os-name="%{distribution}"\
	--with-os-version="%{distro_release}" \
	--with-os-url="%{disturl}"

%make

%install
%makeinstall_std

install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}.service
install -m 644 -D minidlna.conf %{buildroot}%{_sysconfdir}/minidlna.conf
install -m 644 -D %{SOURCE3} %{buildroot}%{_mandir}/man1/minidlna.1
install -m 644 -D %{SOURCE4} %{buildroot}%{_mandir}/man5/minidlna.conf.5

sed 's|#friendly_name=My DLNA Server|friendly_name=Rosa|' -i %{buildroot}%{_sysconfdir}/minidlna.conf
sed 's|#db_dir=/var/cache/minidlna|db_dir=/var/cache/minidlna|' -i %{buildroot}%{_sysconfdir}/minidlna.conf
sed 's|#log_dir=/var/log|log_dir=/var/log|' -i %{buildroot}%{_sysconfdir}/minidlna.conf
sed 's|#wide_links=no|wide_links=yes|' -i %{buildroot}%{_sysconfdir}/minidlna.conf

mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf

install -d -m 0755 %{buildroot}%{_localstatedir}/cache/%{name}/
touch %{buildroot}%{_localstatedir}/cache/%{name}/files.db

# install sysuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/minidlna.conf

%find_lang %{name}

%pre
%sysusers_create_package minidlna %{SOURCE6}

%post
%create_ghostfile %{_localstatedir}/cache/%{name}/files.db %{name} %{name} 0644
%systemd_post minidlna.service
%tmpfiles_create %{name}.conf

%preun
%systemd_preun minidlna.service

%files -f %{name}.lang
%doc README
%dir %attr(-,minidlna,minidlna) %{_localstatedir}/cache/%{name}/
%ghost %attr(-,minidlna,minidlna) %{_localstatedir}/cache/%{name}/files.db
%attr(755,-,-) %{_sbindir}/minidlna*
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/minidlna.conf
%{_sysconfdir}/tmpfiles.d/%{name}.conf
%{_mandir}/man1/minidlna.1*
%{_mandir}/man5/minidlna.conf.5*
%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3328 |21cr|miniflux-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^pear\\(.*\\)

Name:		miniflux
Version:	1.0.2
Release:	6
Summary:	Minimalist web based news reader
License:	GPL
Group:		System/Servers
URL:		http://miniflux.net/
Source0:	http://miniflux.net/miniflux-%{version}.zip
Requires:	apache-mod_php
Requires:	php-pdo_sqlite
BuildArch:	noarch

%description
Miniflux is a minimalist web based news reader. I developed my own RSS reader
for my own usage and now I share it to everybody as a free software.

%prep
%setup -q -n %{name}

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -pr *  %{buildroot}%{_datadir}/%{name}

rm -f %{buildroot}%{_datadir}/%{name}/LICENSE
rm -rf %{buildroot}%{_datadir}/%{name}/data

install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}

pushd %{buildroot}%{_datadir}/%{name}
ln -s ../../..%{_localstatedir}/lib/%{name} data
popd

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# %{name} Apache configuration file
Alias /%{name} %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Require all granted
</Directory>
EOF

%files
%doc LICENSE
%{_datadir}/%{name}
%attr(-,apache,apache) %{_localstatedir}/lib/%{name}
%config(noreplace) %{_webappconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3329 |21cr|minilens-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Minilens
#define distsuffix mrb
Summary:        Libre puzzle platform game
Name:           minilens
Version:        1.2
Release:        1
License:        GPLv3+
Url:            https://kobuge-games.github.io/minilens/
Group:          Games/Puzzles
Source :        https://github.com/KOBUGE-Games/minilens/archive/v%{version}/%{oname}-%{version}.tar.gz
# https://github.com/KOBUGE-Games/minilens/commit/ca74fb82ea53d00ff5abb5a3a2b908681f74bd21
Patch0:         fix-screen-resizing.patch
BuildRequires:  imagemagick
Requires:       godot2-runner
BuildArch:      noarch

%description
Free Puzzle Platform Game
1000 years after post-apocalyptic Earth, 
many form of lifes went extinct, 
including humans.
An alien robot series, called Minilens, 
are cleaning up earth and collecting 
surviving flora.
The game is won by destroying all 
Radioactive Barrels and collecting 
surviving flora.
The drawback is that Minilens can't jump.


%files
%doc README.md LICENSE.txt CREDITS.txt
%{_gamesdatadir}/%{name}
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------
%prep
%setup -q
%patch0 -p1
rm -fr .gitignore

%build

%install
# data
install -dm755 %{buildroot}%{_gamesdatadir}/%{name}
cp -R -t %{buildroot}%{_gamesdatadir}/%{name} *

# wrapper
install -dm755 %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
godot2-runner -path "%{_gamesdatadir}/%{name}" $@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{name}

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size icon.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

#menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{oname}
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3330 |21cr|minisat-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname minisat %{major}
%define devname %mklibname minisat -d
%define sdevname %mklibname %{name} -d -s

Summary:	A minimalistic and high-performance SAT solver
Name:		minisat
Version:	2.2.1
Release:	1
License:	MIT
Group:		Sciences/Mathematics
Url:		http://minisat.se/
Source0:	https://github.com/stp/minisat/archive/refs/tags/releases/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(zlib)

%description
A minimalistic and high-performance SAT solver.

%files
%doc LICENSE README
%{_bindir}/minisat*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cryptominisat library
Group:		System/Libraries

%description -n %{libname}
The %{name} library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for developing with %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------
%package -n %{sdevname}
Summary:	%{name} development files (static library)
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
%{name} development files (static library).

%files -n %{sdevname}
%{_libdir}/*.a

#------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-releases-%{version}

# fix lib files install path
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' CMakeLists.txt

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3331 |21cr|minised-1.14-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A smaller, cheaper, faster SED implementation
Name:		minised
Version:	1.14
Release:	4
License:	BSD
Group:		File tools
Url:		http://www.exactcode.de/site/open_source/minised/
Source0:	http://dl.exactcode.de/oss/minised/%{name}-%{version}.tar.gz
Patch0:		minised-1.14-sfmt.patch
BuildRequires:	dietlibc-devel

%description
This is a smaller, cheaper, faster SED implementation. Minix uses it. GNU used
to use it, until they built their own sed around an extended (some would say
over-extended) regexp package. For embedded use we searched for a tiny sed
implementation especially for use with the dietlibc and found Eric S. Raymond's
sed implementation quite handy. Though it suffered several bugs and was not
under active maintenance anymore. After sending a bunch of fixes we agreed to
continue maintaining this lovely, historic sed implementation.

%files
%doc README
%{_bindir}/minised
%{_mandir}/man1/minised.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
make CC="diet gcc -D_BSD_SOURCE -D_GNU_SOURCE -static" CFLAGS="%{optflags} -static"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3332 |21cr|mini_sendmail-1.3.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Accept email on behalf of real sendmail
Name:		mini_sendmail
Version:	1.3.9
Release:	3
License:	BSD
Group:		Networking/Mail
Url:		http://www.acme.com/software/mini_sendmail
Source0:	http://www.acme.com/software/mini_sendmail/%{name}-%{version}.tar.gz
Provides:	sendmail-command
Requires(post,preun):	update-alternatives

%description
mini_sendmail reads its standard input up to an end-of-file and sends a copy
of the message found there to all of the addresses listed. The message is sent
by connecting to a local SMTP server. This means mini_sendmail can be used to
send email from inside a chroot(2) area.

%files
%doc README
%{_sbindir}/mini_sendmail
%{_mandir}/man8/mini_sendmail.8*

%post
update-alternatives --install %{_sbindir}/sendmail sendmail-command %{_sbindir}/mini_sendmail 5

%preun
if [ $1 = 0 ]; then
	update-alternatives --remove sendmail-command %{_sbindir}/mini_sendmail
fi

#----------------------------------------------------------------------------

%prep
%setup -q
#patch0 -p1 -b .makefile

%build
make mini_sendmail \
	CFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man8

install mini_sendmail %{buildroot}%{_sbindir}/mini_sendmail
install mini_sendmail.8 %{buildroot}%{_mandir}/man8/mini_sendmail.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3333 |21cr|minitube-3.9.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
# Note: these are for ROSA use ONLY.
# For your own builds, please get your own set of keys.
%define google_api_key AIzaSyATtfdjLrUXVLODfLrXXwkW_XRSvt2PB5g

Summary:	A native YouTube client
Name:		minitube
Version:	3.9.3
Release:	3
License:	GPLv2+
Group:		Video
Url:		https://flavio.tordini.org/minitube
Source0:	https://github.com/flaviotordini/minitube/archive/%{version}.tar.gz?/%{name}-%{version}.tar.bz2
Patch0:		minitube-mpv.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(mpv)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:	phonon4qt5-backend

%description
Minitube is a native YouTube client. With it you can watch YouTube videos in
a new way: you type a keyword, Minitube gives you an endless video stream.
Minitube does not require the Flash Player.
Minitube is not about cloning the original Youtube web interface, it strives
to create a new TV-like experience.
If you have problems with video playback, try to switch to vlc Phonon back-end
in KDE settings.

%files
%doc TODO CHANGES AUTHORS
%{_bindir}/%{name}
%{_appdatadir}/org.tordini.flavio.%{name}.metainfo.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix perms
find -name "*.cpp" -o -name "*.h" |xargs chmod -x


%build
%qmake_qt5 \
	PREFIX=%{_prefix} \
	DEFINES+=APP_GOOGLE_API_KEY=%{google_api_key}
%make


%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3334 |21cr|miniupnpd-2.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	The UPNP & NAT-PMP implementation
Name:		miniupnpd
Version:	2.3.3
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://miniupnp.free.fr
Source0:	http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz
Source1:	miniupnpd.service
BuildRequires:	iptables-devel
BuildRequires:	pkgconfig(libiptc)
BuildRequires:	pkgconfig(openssl)
Requires:	iptables

%description
The miniUPnP daemon is an UPnP IGD (internet gateway device)
which provide NAT traversal services to any UPnP enabled client on
the network.

See http://www.upnp.org/ for more details on UPnP.

%files
%doc README Changelog.txt
%config(noreplace) %{_sysconfdir}/miniupnpd/*
%{_sbindir}/miniupnpd
%{_unitdir}/miniupnpd*
%{_mandir}/man*/*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./configure \
	--ipv6 \
	--igd2

sed -i \
    -e 's/\/\*#define ENABLE_LEASEFILE\*\//#define ENABLE_LEASEFILE/g' \
    config.h || die

%make CC=gcc CFLAGS="%{optflags}"

%install
%make_install

rm -f %{buildroot}%{_sysconfdir}/init.d/miniupnpd
install -D -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3335 |21cr|miniz-3.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:       miniz
Version:    3.0.2
Release:    1
Summary:    Compression library implementing the zlib and Deflate
Group:      System/Libraries
# examples/example1.c:  Unlicense (refers to "unlicense" statement at the end
#                       of tinfl.c from miniz-1.15)
# examples/example2.c:  Unlicense
# examples/example3.c:  Unlicense
# examples/example4.c:  Unlicense
# examples/example5.c:  Unlicense ("Public domain. See unlicense statement")
# examples/example6.c:  Unlicense
# LICENSE:  MIT text
# miniz.c:  MIT
# miniz.h:  Unlicense (See "unlicense" statement at the end of this file.)
# readme.md:    MIT
License:    MIT AND Unlicense
URL:        https://github.com/richgel999/%{name}
Source0:    %{url}/releases/download/%{version}/%{name}-%{version}.zip
# Adjust examples for building against a system miniz library,
# not suitable for upstream that prefers a copy-lib approach.
Patch0:     miniz-2.2.0-Examples-to-include-system-miniz.h.patch
BuildRequires:  coreutils
# diffutils for cmp
BuildRequires:  diffutils
BuildRequires:  gcc
BuildRequires:  sed
BuildRequires:  unzip

%description
Miniz is a lossless, high performance data compression library in a single
source file that implements the zlib (RFC 1950) and Deflate (RFC 1951)
compressed data format specification standards. It supports the most commonly
used functions exported by the zlib library, but is a completely independent
implementation so zlib's licensing requirements do not apply. It also
contains simple to use functions for writing PNG format image files and
reading/writing/appending ZIP format archives. Miniz's compression speed has
been tuned to be comparable to zlib's, and it also has a specialized real-time
compressor function designed to compare well against fastlz/minilzo.

#----------------------------------------------------------
%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:    Development files for the %{name} library
Group:      Development/Other
Requires:   %{libname} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Header files for developing applications that use the %{name} library.

%files -n %{devname}
%doc examples/*.c
%license LICENSE
%doc ChangeLog.md readme.md
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so

#----------------------------------------------------------
%prep
%setup -c -T -n %{name}-%{version}
unzip -e '%{SOURCE0}'
%patch0 -p1
# Normalize end-of-lines
sed -e 's/\r$//' ChangeLog.md > ChangeLog.md.new
touch -r ChangeLog.md ChangeLog.md.new
mv ChangeLog.md.new ChangeLog.md

%global soname lib%{name}.so.0.3

%build
# A release archive is missing a CMake build script
# <https://github.com/richgel999/miniz/issues/201>.
# Inject downstream SONAME, bug #1152653
gcc %{optflags} -fPIC -DPIC -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 \
    %{name}.c -c -o %{name}.o
gcc %{?__global_ldflags} -fPIC -shared -Wl,-soname,%{soname} \
    %{name}.o -o %{soname}
ln -s %{soname} lib%{name}.so
# Build examples against the library
pushd examples
for EXAMPLE in *.c; do
    EXAMPLE=${EXAMPLE%.c}
    gcc %{optflags} -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 \
        -I.. "${EXAMPLE}.c" -c -o "${EXAMPLE}.o"
    case "$EXAMPLE" in
        example6)
            gcc %{?__global_ldflags} "${EXAMPLE}.o" -L.. -l%{name} -lm -o "$EXAMPLE"
            ;;
        *)
            gcc %{?__global_ldflags} "${EXAMPLE}.o" -L.. -l%{name} -o "$EXAMPLE"
            ;;
    esac
done

%check
pushd examples
for EXAMPLE in *.c; do
    EXAMPLE=${EXAMPLE%.c}
    case "$EXAMPLE" in
        example3)
            LD_LIBRARY_PATH=.. "./${EXAMPLE}" c ../readme.md readme.md.z
            LD_LIBRARY_PATH=.. "./${EXAMPLE}" d readme.md.z readme.md
            cmp ../readme.md readme.md
            ;;
        example4)
            LD_LIBRARY_PATH=.. "./${EXAMPLE}" readme.md.z readme.md
            cmp ../readme.md readme.md
            ;;
        example5)
            LD_LIBRARY_PATH=.. "./${EXAMPLE}" c ../readme.md readme.md.z
            LD_LIBRARY_PATH=.. "./${EXAMPLE}" d readme.md.z readme.md
            cmp ../readme.md readme.md
            ;;
        *)
            LD_LIBRARY_PATH=.. "./${EXAMPLE}"
            ;;
    esac
done

%install
install -d '%{buildroot}/%{_libdir}'
install %{soname} '%{buildroot}/%{_libdir}'
ln -s %{soname} '%{buildroot}/%{_libdir}/lib%{name}.so'
install -d '%{buildroot}/%{_includedir}'
install -m 0644 %{name}.h '%{buildroot}/%{_includedir}'





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3336 |21cr|mintstick-1.4.6-0.git0f723.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# upstream repo does not have git tags
%define commit 0f72349e692e0cae869df5b21b26cbeae0d75acc
%define commit_short %(echo %{commit} | head -c 5)

# manually point RPM typelib() generator to non-standard location of files
%global __typelib_path ^%{_prefix}/lib/mintstick

# code tries to load typelib(Unity) and works OK if fails
%global __requires_exclude Unity

Summary:	Simple utility to format USB sticks
Name:		mintstick	
Version:	1.4.6
Release:	0.git%{commit_short}.2
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/linuxmint/mintstick
Source0:	https://github.com/linuxmint/mintstick/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# https://github.com/linuxmint/mintstick/pull/89
Patch0001:	0001-Update-pot-file-by-makepot.patch
Patch0002:	0002-Make-subdirectory-po-for-translations.patch
Patch0003:	0003-Add-Russian-translation-and-Makefile.patch

BuildArch:	noarch

# typelib() RPM generator
BuildRequires:	gobject-introspection-devel
BuildRequires:	make
BuildRequires:	gettext
# for makepot script, actually not run during the build
BuildRequires:	/usr/bin/intltool-extract

Recommends:	(%{name}-nemo if nemo)
# based on debian/control
Requires:	coreutils
Requires:	exfat-utils
Requires:	ntfs-3g
Requires:	parted
Requires:	polkit
Requires:	procps-ng
Requires:	python3
Requires:	python3-gi
Requires:	python3-parted
Requires:	util-linux

%description
Simple utility to format USB sticks

%files
%license debian/copyright
%dir %{_prefix}/lib/mintstick
%{_prefix}/lib/mintstick/*.py
%{_prefix}/lib/mintstick/__pycache__
%{_datadir}/mintstick
%{_datadir}/applications/*.desktop
%{_datadir}/polkit-1/actions/*.policy
%{_bindir}/mintstick
%{_datadir}/icons/hicolor/*/apps/mintstick.*
%{_mandir}/man1/mintstick.1*
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/mintstick.mo

#------------------------------------------------------------------

%package nemo
Summary:	Integration of Mintstick with Nemo file manager
Group:		Graphical desktop/Cinnamon
Requires:	nemo

%description nemo
Integration of Mintstick with Nemo file manager

%files nemo
%{_datadir}/nemo/actions/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install
%makeinstall_std

# kde4 is not supported any more
rm -fvr %{buildroot}%{_datadir}/kde4

%py_byte_compile %{__python3} %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3337 |21cr|mint-themes-1.9.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mint-themes
Version:	1.9.8
Release:	1
Summary:	Mint themes
Group:		Graphical desktop/Other
License:	GPLv3+
URL:		https://github.com/linuxmint/%{name}
Source0:	http://packages.linuxmint.com/pool/main/m/%{name}/%{name}_%{version}.tar.xz
BuildRequires:	fdupes
BuildRequires:	python3
BuildRequires:	sassc
BuildArch:	noarch

%description
A collection of mint themes.

%files
%license debian/copyright
%doc debian/changelog
%dir %{_datadir}/themes/Mint-X*/
%dir %{_datadir}/themes/Mint-X*/gtk-3.0/
%{_datadir}/themes/Mint-X*/index.theme
%{_datadir}/themes/Mint-X*/metacity-1/
%{_datadir}/themes/Mint-X/xfce-notify-4.0/
%{_datadir}/themes/Mint-X/xfwm4/
%{_datadir}/themes/Mint-X*/gtk-2.0/
%{_datadir}/themes/Mint-X-compact/xfwm4/

#--------------------------------------------------------------
%package -n mint-y-theme
Summary:	The Mint-Y theme 
Group:		Graphical desktop/Other
Requires:	mint-y-icons

%description -n	mint-y-theme
The Mint-Y theme.  This theme is based on the Arc theme.

%files -n mint-y-theme
%license debian/copyright
%doc debian/changelog
%{_datadir}/themes/Mint-Y*

#--------------------------------------------------------------

%package -n mint-themes-gtk3
Summary:	Mint themes for GTK3
Group:		Graphical desktop/Other
Requires:	mint-themes
Requires:	mint-x-icons

%description -n	mint-themes-gtk3
A collection of mint themes for GTK3.

%files -n mint-themes-gtk3
%license debian/copyright
%doc debian/changelog
%{_datadir}/themes/Mint-X*/gtk-3.0/*

#--------------------------------------------------------------

%package -n	cinnamon-themes
Summary:	Mint themes for GTK3 
Group:		Graphical desktop/Other
Requires:	filesystem
Requires:	mint-themes-gtk3
Requires:	mint-y-theme

%description -n	cinnamon-themes
Collection of the best themes available for Cinnamon

%files -n cinnamon-themes
%license debian/copyright
%doc debian/changelog
"%{_datadir}/themes/Linux Mint"
%{_datadir}/themes/Mint-X*/cinnamon/

#--------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

sed -i -e 's@Ubuntu@Noto Sans@g' files/usr/share/themes/Linux\ Mint/cinnamon/cinnamon.css

%build
make

%install
cp -pr usr/ %{buildroot}
%fdupes -s %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3338 |21cr|mint-x-icons-1.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with  nm_icons


Name:		mint-x-icons
Version:	1.6.4
Release:	1
Summary:	Icon theme for Linux Mint
Group:		Graphical desktop/Other
License:	GPLv3+
URL:		http://linuxmint.com
Source0:	http://packages.linuxmint.com/pool/main/m/%{name}/%{name}_%{version}.tar.xz

BuildArch:	noarch

BuildRequires:	fdupes

Requires:	filesystem
Requires:	gnome-icon-theme
Requires:	hicolor-icon-theme

%description
%{summary}.

%files
%license %{name}/debian/copyright
%doc %{name}/debian/changelog
%{_datadir}/icons/Mint-X*

%post
for _dir in %{_datadir}/icons/Mint-X*/ ; do
  /bin/touch --no-create ${_dir} &>/dev/null || :
done

%postun
if [ $1 -eq 0 ] ; then
  for _dir in %{_datadir}/icons/Mint-X*/ ; do
    %{_bindir}/gtk-update-icon-cache ${_dir} &>/dev/null || :
  done
fi

#---------------------------------------------
%prep
%autosetup -c

%build
%if %{with nm_icons}
# Remove icons for nm-applet, because they are ugly.
%{_bindir}/find %{name}%{_prefix} -name "nm-*" -type f -delete
%{_bindir}/find %{name}%{_prefix} -name "nm-*" -xtype l			\
  -exec %{_bindir}/unlink {} \;
%{_bindir}/find %{name}%{_prefix} -name 'gnome-netstatus*' -xtype l	\
  -exec %{__file} {} \; | %{__grep} 'broken' |			\
  %{__sed} -e 's!:[ \t]\+.*$!!g' |				\
  %{_bindir}/xargs --max-args=1 %{_bindir}/unlink
%endif

%install
cp -pr %{name}%{_prefix} %{buildroot}
%fdupes -s %{buildroot}





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3339 |21cr|mint-y-icons-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global py_interp %{__python3}

Name:		mint-y-icons
Version:	1.6.1
Release:	1
Summary:	The Mint-Y icon theme
Group:		Graphical desktop/Other
License:	CC-BY-SA
URL:		http://linuxmint.com
Source0:	http://packages.linuxmint.com/pool/main/m/%{name}/%{name}_%{version}.tar.xz

BuildArch:	noarch

BuildRequires:	fdupes
BuildRequires:	python3-devel

Requires:	filesystem
Requires:	mint-x-icons
Requires:	gnome-icon-theme
Requires:	hicolor-icon-theme

%description
%{summary}.

%files
%license debian/copyright
%doc debian/changelog
%doc README.md
%{_datadir}/icons/Mint-*/

#----------------------------------------------------
%prep
%autosetup -n %{name}


%build
# Add links for some additional programs.
#pushd %%{name}
#{py_interp} ./create-links src.png dest.png
#popd


%install
#pushd %%{name}
cp -pr ${PWD}%{_prefix} %{buildroot}
%fdupes -s %{buildroot}
#popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3340 |21cr|mirage-0.9.5.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A fast and simple image viewer
Name:		mirage
Version:	0.9.5.2
Release:	7
Group:		Graphics
License:	GPLv2+
URL:		http://mirageiv.berlios.de/
Source0:	http://download.berlios.de/mirageiv/%{name}-%{version}.tar.bz2
Source1:    mirage_ru.tar.gz
Patch0:     mirage-0.9.5.2-fix_locale.patch
Patch2:		002-desktop-rus.patch
BuildRequires:	python-devel
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(x11)
Requires:	pygtk2.0
Requires:	gnome-python-gconf

%description
Mirage is a fast and simple GTK+ image viewer. Because it 
depends only on PyGTK, Mirage is ideal for users who wish to 
keep their computers lean while still having a clean image viewer.

%prep
%setup -q
%patch0 -p1
%patch2 -p1

pushd po
tar -xvzf %{SOURCE1}
popd

sed -i -e 's/^Icon=%{name}.png$/Icon=%{name}/g' %{name}.desktop

%build
env CFLAGS="%{optflags}" python setup.py build

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}
python setup.py install --root=%{buildroot} --record=INSTALLED_FILES

# remove document files
rm -f %{buildroot}%{_datadir}/%{name}/[A-Z]*

desktop-file-install \
	--remove-category="Application" \
	--add-category="Viewer" \
	--remove-key="Version" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name}

%if %mdkversion < 200900
%post
%{update_menus}
%{update_desktop_database}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%{clean_desktop_database}
%endif

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc CHANGELOG README TODO TRANSLATORS
%{_bindir}/%{name}
%{python_sitearch}/%{name}.py*
%{python_sitearch}/*.egg-info
%{python_sitearch}/*.so
%{_datadir}/%{name}/
%{_datadir}/pixmaps/*.png
%{_datadir}/applications/*%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3341 |21cr|miredo-1.2.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major_teredo 5
%define major_tun6 0
%define libteredo %mklibname teredo %{major_teredo}
%define libtun6 %mklibname tun 6 %{major_tun6}
%define devname %mklibname miredo -d

Summary:	Tunneling of IPv6 over UDP through NATs
Name:		miredo
Version:	1.2.6
Release:	4
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.simphalempin.com/dev/miredo/
Source0:	http://www.remlab.net/files/miredo/miredo-%{version}.tar.xz
Source1:	miredo-client.service
Source2:	miredo-server.service
Patch0:		miredo-config-not-exec
Patch1:		reread-resolv-before-resolv-ipv4.patch
Patch2:		miredo-1.2.6-systemd.patch
BuildRequires:	gettext-devel
BuildRequires:	libcap-devel

Requires(pre):	shadow-utils
Requires(post,preun):	rpm-helper
Requires(preun,postun):	initscripts

%description
Miredo is an implementation of the "Teredo: Tunneling IPv6 over UDP
through NATs" proposed Internet standard (RFC4380). It can serve
either as a Teredo client, a stand-alone Teredo relay, or a Teredo
server. Please install the miredo-server or miredo-client appropriately.
It is meant to provide IPv6 connectivity to hosts behind NAT
devices, most of which do not support IPv6, and not even
IPv6-over-IPv4 (including 6to4).

#----------------------------------------------------------------------------

%package -n %{libteredo}
Summary:	Tunneling of IPv6 over UDP through NATs
Group:		Networking/Other
Conflicts:	%{_lib}miredo4 < 1.2.6
Obsoletes:	%{_lib}miredo4 < 1.2.6

%description -n %{libteredo}
Miredo is an implementation of the "Teredo: Tunneling IPv6 over UDP
through NATs" proposed Internet standard (RFC4380). It can serve
either as a Teredo client, a stand-alone Teredo relay, or a Teredo
server. Please install the miredo-server or miredo-client appropriately.
It is meant to provide IPv6 connectivity to hosts behind NAT
devices, most of which do not support IPv6, and not even
IPv6-over-IPv4 (including 6to4).

%files -n %{libteredo}
%{_libdir}/libteredo.so.%{major_teredo}*

#----------------------------------------------------------------------------

%package -n %{libtun6}
Summary:	Tunneling of IPv6 over UDP through NATs
Group:		Networking/Other
Conflicts:	%{_lib}miredo4 < 1.2.6

%description -n %{libtun6}
Miredo is an implementation of the "Teredo: Tunneling IPv6 over UDP
through NATs" proposed Internet standard (RFC4380). It can serve
either as a Teredo client, a stand-alone Teredo relay, or a Teredo
server. Please install the miredo-server or miredo-client appropriately.
It is meant to provide IPv6 connectivity to hosts behind NAT
devices, most of which do not support IPv6, and not even
IPv6-over-IPv4 (including 6to4).

%files -n %{libtun6}
%{_libdir}/libtun6.so.%{major_tun6}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Networking/Other
Requires:	%{libteredo} = %{EVRD}
Requires:	%{libtun6} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files, development libraries and development
documentation for %{name}. If you would like to develop programs using %{name},
you will need to install %{name}-devel.

%files -n %{devname}
%{_includedir}/libteredo/
%{_includedir}/libtun6/
%{_libdir}/libteredo.so
%{_libdir}/libtun6.so

#----------------------------------------------------------------------------

%package server
Summary:	Tunneling server for IPv6 over UDP through NATs
Group:		Networking/Other

%description server
Miredo is an implementation of the "Teredo: Tunneling IPv6 over UDP
through NATs" proposed Internet standard (RFC4380). This offers the server
part of miredo. Most people will need only the client part.

%files server
%ghost %config(noreplace,missingok) %{_sysconfdir}/miredo/miredo-server.conf
%{_bindir}/teredo-mire
%{_sbindir}/miredo-server
%{_sbindir}/miredo-checkconf
%{_unitdir}/miredo-server.service
%doc %{_mandir}/man1/teredo-mire*
%doc %{_mandir}/man?/miredo-server*
%doc %{_mandir}/man?/miredo-checkconf*

%preun server
%_preun_service server

#----------------------------------------------------------------------------

%package client
Summary:	Tunneling client for IPv6 over UDP through NATs
Group:		Networking/Other
Provides:	%{name} = %{EVRD}

%description client
Miredo is an implementation of the "Teredo: Tunneling IPv6 over UDP
through NATs" proposed Internet standard (RFC4380). This offers the client
part of miredo. Most people only need the client part.

%files client
%{_sbindir}/miredo
%doc %{_mandir}/man?/miredo.*
%{_unitdir}/miredo-client.service

#----------------------------------------------------------------------------

%package common
Summary:	Tunneling client for IPv6 over UDP through NATs
Group:		Networking/Other
Requires:	%{name}-client = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Conflicts:	%{_lib}miredo4 < 1.2.6

%description common
Miredo is an implementation of the "Teredo: Tunneling IPv6 over UDP
through NATs" proposed Internet standard (RFC4380). This offers the client
part of miredo. Most people only need the client part.
Common package, that contains miredo-client and miredo-server

%files common -f %{name}.lang
%{_unitdir}/miredo.service
%{_libexecdir}/miredo/
%dir %{_sysconfdir}/miredo
%config(noreplace) %{_sysconfdir}/miredo/miredo.conf
%config(noreplace) %{_sysconfdir}/miredo/client-hook

%pre common
%_pre_useradd miredo /var/empty /bin/true
%_post_service client
%_post_service server
%_preun_service client

%postun common
%_postun_userdel miredo

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
%configure \
		--disable-static \
		--disable-rpath \
		--enable-miredo-user \

# rpath does not really work
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make

%install
%makeinstall_std

%find_lang %{name}

mkdir rpmdocs
mv %{buildroot}%{_docdir}/miredo/examples rpmdocs/
mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/miredo-client.service
install -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/miredo-server.service
rm -f %{buildroot}%{_libdir}/lib*.la
touch %{buildroot}%{_sysconfdir}/miredo/miredo-server.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3342 |21cr|mirror-2.9-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# exclude self requires
%define __requires_exclude perl\\(lsparse.pl\\)

Name:		mirror
Version:	2.9
Release:	17
Summary:	Perl program to mirror FTP sites
Group:		Networking/File transfer
License:	BSD style
Source:		ftp://sunsite.org.uk/packages/mirror/%{name}.tar.bz2
URL:		http://sunsite.doc.ic.ac.uk/packages/%{name}/
Patch0:		%{name}-%{version}-mandrake.patch.bz2
Patch1:		%{name}-no-directory-goback.patch.bz2
Patch2:		%{name}-ftp.pl_wupatch.patch.bz2
Patch3:		%{name}-deldir.patch.bz2
BuildRequires:	coreutils
Requires:	perl-base
Requires:	perl
BuildArch:	noarch

%description
Perl program to mirror FTP sites.

%prep

%setup -q -c

%patch -p1 -b .mdk
%patch1 -p1 -b .sec
%patch2 -p0 -b .wu
%patch3 -p0 -b .dd

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_mandir}/man1
make "PLDIR=%{buildroot}%{_datadir}/%{name}" "BINDIR=%{buildroot}%{_bindir}" "MANDIR=%{buildroot}%{_mandir}/man1" install

install -m 644 %{name}.defaults %{buildroot}%{_sysconfdir}/%{name}.conf
install -m 644 %{name}.defaults %{buildroot}%{_datadir}/%{name}

ln -sf %{name}.pl %{buildroot}%{_bindir}/%{name}

mv %{buildroot}%{_mandir}/man1/mm.1 %{buildroot}%{_mandir}/man1/mm-mirror.1

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/do_unlinks.pl
%{_bindir}/%{name}
%{_bindir}/%{name}.pl
%{_bindir}/mm.pl
%{_bindir}/pkgs_to_mmin.pl
%defattr(0644,root,root,0755)
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/mm-mirror.1*
%doc README.txt *.html CHANGES*
%doc %{name}.nightly support/cyber-patches support/lstest.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3343 |21cr|mixxx-2.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Music DJing software
Name:		mixxx
Version:	2.3.4
Release:	2
Group:		Sound
License:	GPLv2+
Url:		https://github.com/mixxxdj
Source0:	%{url}/%{name}/archive/refs/tags/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake >= 3.16
BuildRequires:	git
BuildRequires:	ffmpeg-devel
BuildRequires:	ladspa-devel
BuildRequires:	lame-devel
BuildRequires:	libfaad2-devel
BuildRequires:	libmp4v2-devel
BuildRequires:	portmidi-devel
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(libebur128)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(hidapi-libusb) >= 0.10.1
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libgpod-1.0)
BuildRequires:	pkgconfig(libkeyfinder)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(lilv-0)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(rubberband)
BuildRequires:	pkgconfig(shout)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(soundtouch) >= 2.0.0
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(vamp)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	qt5-database-plugin-sqlite
Requires(post,postun): rpm-helper

%description
Mixxx allows DJs to mix music live with a clean, simple interface.
Futhermore, Mixxx has a number of key features to help DJs in the mix: beat
estimation, parallel visual displays, and support for various DJ hardware
controllers. It can be controlled through the GUI using the mouse, or by
connecting MIDI devices to the computer. Commercial and custom built MIDI
controllers can be used. The mapping between functions and MIDI controller
values are done in text files. 

%files
%license COPYING LICENSE
%doc COPYING LICENSE README.md res/Mixxx-Keyboard-Shortcuts.pdf tools/README
%{_bindir}/%{name}
%{_iconsdir}/hicolor/*x*/apps/%{name}.png
%{_datadir}/%{name}
%{_datadir}/applications/org.%{name}.Mixxx.desktop
%{_udevrulesdir}/69-%{name}-usb-uaccess.rules
%{_datadir}/metainfo/org.%{name}.Mixxx.metainfo.xml
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake
%make


%install
%makeinstall_std -C build

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/controllers/novation-launchpad/scripts/compile-mapping.js
chmod +x %{buildroot}%{_datadir}/%{name}/controllers/novation-launchpad/scripts/compile-scripts.js

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3344 |21cr|mj-1.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Chinese game of mah-jong
Name:		mj
Version:	1.16
Release:	1
License:	GPLv2+
Group:		Games/Boards
Url:		http://www.stevens-bradfield.com/MahJong/
Source0:	http://mahjong.julianbradfield.org/Source/%{name}-%{version}-src.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)

%description
mj is the Chinese game of mah-jong. mj supports network play, as well as 
simple human to computer play. A Windows (tm) version of this game is
also available.

%files
%doc ChangeLog README CHANGES LICENCE
%{_bindir}/xmj
%{_bindir}/mj-*
%{_mandir}/man1/*.1*
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-src

%build
make CDEBUGFLAGS="%{optflags}" CCLINK="gcc %{?ldflags}"

%install
%makeinstall_std \
	install.man \
	BINDIR="%{_bindir}" \
	MANDIR="%{_mandir}/man1" \
	INSTPGMFLAGS=""

mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Mahjong
Comment=Chinese game of mah-jong
Exec=%{_bindir}/xmj
Icon=boards_section
Terminal=false
Type=Application
Categories=Game;BoardGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3345 |21cr|mjpg-streamer-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Stream webcam video to HTTP
Name:		mjpg-streamer
Version:	1.0.0
Release:	1
License:	GPLv2
Group:		Video
URL:		http://mjpg-streamer.sourceforge.net/
Source0:	https://github.com/jacksonliam/mjpg-streamer/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source10:	mjpg_streamer.sysusers.conf
Patch0:		mjpg-streamer-group.patch
Patch1:		mjpg-streamer-build.patch
Patch2:		mjpg-streamer-pthread.patch
Patch3:		mjpg-streamer-gcc11.patch

BuildRequires:	cmake
# opencv requires 3.x in repo now 4.x version
BuildRequires:	pkgconfig(opencv)
#BuildRequires:	python3-opencv
#BuildRequires:	python3-numpy
#BuildRequires:	python3-devel
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(libprotobuf-c)
BuildRequires:	protobuf-c
BuildRequires:	zeromq-devel
Requires(post):	/bin/systemd-sysusers

%description
MJPG-streamer takes JPGs from Linux-UVC compatible webcams, 
from local files or other input plugins and streams 
them as M-JPEG via HTTP to webbrowsers, VLC and other software. 
It is the successor of uvc-streamer, a Linux-UVC 
streaming application with Pan/Tilt.
Control the application with mstreamer <start|stop|status> 
from the command line or use the desktop menu in KDE.

%files
%doc README.md
%{_bindir}/mjpg_streamer
%{_libdir}/mjpg-streamer
%{_datadir}/mjpg-streamer
%{_unitdir}/mjpg-streamer.service
%{_sysusersdir}/mjpg_streamer.conf

%post
%sysusers_create mjpg_streamer.conf

#---------------------------------------------------------------------------
%prep
%autosetup -p1

%build
pushd %{name}-experimental
#set path for plugins
sed -i 's|lib/mjpg-streamer|%{_lib}/mjpg-streamer|' CMakeLists.txt

%cmake -Wno-dev -DENABLE_HTTP_MANAGEMENT=ON
%make
popd

%install
pushd %{name}-experimental
%makeinstall_std -C build

#install systemd service file
sed -i 's|/usr/local/bin|%{_bindir}|' scripts/mjpg-streamer.service
sed -i 's|User=webcam|User=mjpg_streamer|' scripts/mjpg-streamer.service
mkdir -p %{buildroot}%{_unitdir}
cp scripts/mjpg-streamer.service %{buildroot}%{_unitdir}/mjpg-streamer.service

#install sysusers config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/mjpg_streamer.conf

popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3346 |21cr|mkclean-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO: turn on debug after avoiding bundled and static crap
%define debug_package %{nil}

Summary:	Clean and optimize Matroska and WebM files
Name:		mkclean	
Version:	0.9.0
Release:	1
# "mkclean can be built with minilzo support which is GPL. In that case the license of the binary becomes GPL."
License:	BSD
Group:		Video
Url:		https://www.matroska.org/downloads/mkclean.html
Source0:	https://downloads.sourceforge.net/matroska/mkclean/mkclean-%{version}.tar.bz2
BuildRequires:	cmake
# TODO: get rid of using bundle libraries and linking them statically!
# Comments in the source code that some of them have to be static ones,
# but system static ones could be used...
# For now I don't wish to deal with this crap...
#BuildRequires:	pkgconfig(libmatroska)

%description
mkclean is a command line tool to clean and optimize Matroska
(.mkv / .mka / .mks / .mk3d) and WebM (.webm / .weba) files
that have already been muxed.
It reorders the elements with the Cues at the front, so your
Matroska files are ready to be streamed efficiently over the web.
It also removes elements not found in the Matroska specs and the
extra Meta Seek list of Clusters that some program add to their file.
It can also optionally remux the Cluster blocks to start each boundary
with a keyframe and the matching audio/subtitle blocks for that keyframe.

%files
%{_bindir}/mkclean

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DBUILD_SHARED_LIBS:BOOL=OFF
%make

%install
# make install installs static/shared libraries built from sources
# and their headers
#makeinstall_std -C build

# $ ldd ./build/mkclean/mkclean
#  linux-vdso.so.1 (0x00007fffcd0c0000)
#  libc.so.6 => /lib64/libc.so.6 (0x00007f6c6f69f000)
#  /lib64/ld-linux-x86-64.so.2 (0x00007f6c6f89f000)

mkdir -p %{buildroot}%{_bindir}
install -m0755 ./build/mkclean/mkclean %{buildroot}%{_bindir}/mkclean

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3347 |21cr|mkfakerpm-1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        utility to create an empty rpm package which contains the Requires and Provides tags
Name:           mkfakerpm
Version:        1
Release:        2
License:        GPLv3+
Group:          System/Base
Source:		mkfakerpm
Requires:	/bin/bash
Requires: 	/usr/bin/rpmbuild
BuildArch:  	noarch

%description
utility to create an empty rpm package which contains the Requires and Provides tags.
Use it to install enemy rpm packages with non-native ROSA rpm names in the Requires tags.

%files 
%{_bindir}/%{name}

%prep
# nothing to do

%build
# nothing to do

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE0} %{buildroot}%{_bindir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3348 |21cr|mkgmap-r3695-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mkgmap
Version:	r3695
Release:	3
Summary:	Open Street Map to Garmin converter
License:	MIT
Group:		Communications
URL:		http://www.mkgmap.org.uk/
Source0:	http://www.mkgmap.org.uk/download/%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires:	java-1.8.0-openjdk

%description
Open Street Map to Garmin converter.

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -r lib %{buildroot}%{_datadir}/%{name}
cp mkgmap.jar %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_bindir}
cat >%{buildroot}%{_bindir}/mkgmap <<EOF
#!/bin/sh
java -cp %{_datadir}/%{name}/fastutil-6.5.15-mkg.1b.jar:%{_datadir}/%{name}/osmpbf-1.3.3.jar:%{_datadir}/%{name}/protobuf-java-2.5.0.jar  -jar %{_datadir}/%{name}/mkgmap.jar \$@
EOF
chmod 755 %{buildroot}%{_bindir}/mkgmap

%files
%doc doc examples
%{_bindir}/*
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3349 |21cr|mkuird-2.4-20230420
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev	0e482ce
%define gitdate 20230420

%define oname uird

# This spec uses non-standard method to buid UIRD
# By default, UIRD use dracut and busybox sources as git submodules
# mkuird in this package will use busybox from system
# To rebuild spec please run: 
# bash <(cat ./mkuird.spec |sed -e '/^###/!d' -e 's/^###[[:space:]]*//')

### #!/bin/bash
### git clone --single-branch --branch uird-3  https://github.com/neobht/uird.git 
### pushd ./uird
### git submodule init dracut
### git submodule update dracut
### hash="$(git log -1 --format='%h')" 
### date="$(git log -1 --format='%cd' --date=short | tr -d -)"
### rm -rf .git
### tar czf  ../uird-${date}-git${hash}.tar.gz  ../uird
### popd
### sed -i '/^.define/s/gitdate.*/gitdate '"$date"'/' ./mkuird.spec
### sed -i '/^.define/s/gitrev.*/gitrev	'"$hash"'/' ./mkuird.spec
### sed -i 's/^Release.*/Release:	'"$date"'/' ./mkuird.spec
### rm -rf ./.abf.yml ./uird
### abf put

Summary:	Unified Init Ram Disk system
Name:		mkuird
Version:	2.4
Release:	20230420
License:	GPLv2+
Group:		System/Base
Url:		http://neobht.github.io/uird
Source0:	%{oname}-%{gitdate}-git%{gitrev}.tar.gz
Source1:	Rosa-live
AutoReq:	no
#%ifnarch %{e2k}
#BuildArch:	noarch
#%endif
BuildRequires:	pkgconfig(libkmod)

Requires:	busybox
Requires:	util-linux-ng
Requires:	kmod
Requires:	e2fsprogs
Requires:	cpio
Requires:	findutils
Requires:	binutils
Requires:	grep
Requires:	mktemp
Requires:	bash
Requires:	dash
Requires:	kbd
Requires:	tar
Requires:	gzip
Requires:	bzip2
Requires:	xz
Requires:	file
Requires:       rsync
Suggests:       qemu-img
Suggests:       btrfs-progs
Suggests:       aria2
Suggests:       httpfs
Provides:	uird 

%description
UIRD - dracut based unified init ram disk system.
Dracut contains tools to create a bootable initramfs for Linux kernels.

%prep
%setup -qn %{oname}
%ifarch %{e2k}
sed -i 's/xz/gzip/' dracut.conf
sed -i 's/cpio\.xz/cpio.gz/' ./mkuird
%endif

sed -i 's/exit 2/# exit 2/' ./mkuird
sed -i 's/read qqq/# read qqq/' ./mkuird
sed -i 's:#WORKDIR=.*:WORKDIR=/usr/share/uird:' ./mkuird.cfg
sed -i 's:#BINBUSYBOX=.*:BINBUSYBOX=/usr/bin/busybox:' ./mkuird.cfg
sed -i 's:#OUTD=.*:OUTD=./:' ./mkuird.cfg
sed -i 's:#LOGD=.*:LOGD=./:' ./mkuird.cfg

%build
# ./make_busybox.sh
./make_dracut.sh

%install
mkdir -p  %{buildroot}%{_bindir}/ %{buildroot}%{_sysconfdir}/ %{buildroot}%{_datadir}/uird/
cp -fr ./configs   %{buildroot}%{_datadir}/uird/
cp -fr ./initrd    %{buildroot}%{_datadir}/uird/
cp -fr ./modules.d %{buildroot}%{_datadir}/uird/
cp -fr ./dracut    %{buildroot}%{_datadir}/uird/
cp -fr ./i18n      %{buildroot}%{_datadir}/uird/

find ./  -maxdepth 1 -type f -regex "./[a-z,A-Z,0-9].*" -exec cp {}  %{buildroot}%{_datadir}/uird/  \;
cp -f ./mkuird     %{buildroot}%{_bindir}/
cp -f ./mkuird.cfg %{buildroot}%{_sysconfdir}/

#mkdir -p %{buildroot}%{_datadir}/uird//dracut/dracut.conf.d %{buildroot}%{_datadir}/uird/dracut/modules.d
#for a in init logger functions ; do
#    ln -s /usr/lib/dracut/dracut-${a}.sh %{buildroot}%{_datadir}/uird/dracut/
#done

#ln -s "$(which dracut-install)" %{buildroot}%{_datadir}/uird/dracut/dracut-install
#ln -s "$(which dracut)" %{buildroot}%{_datadir}/uird/dracut/dracut.sh

#for a in $(ls -1 ./modules.d/) ; do
#ln -s %{_datadir}/uird/modules.d/${a} %{buildroot}%{_datadir}/uird/dracut/modules.d/${a}
#done

#ln -s /usr/lib/dracut/modules.d/* %{buildroot}%{_datadir}/uird/dracut/modules.d/

install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/uird/configs/uird_configs/

%files
%dir %{_datadir}/uird/
%{_datadir}/uird/*
%{_bindir}/mkuird
%{_sysconfdir}/mkuird.cfg


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3350 |21cr|mkxauth-1.7-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility for managing .Xauthority files
Name:		mkxauth
Version:	1.7
Release:	30
License:	GPL
Group:		File tools
Url:		http://www.tummy.com/krud/packages/mkxauth.html
Source0:	%{name}-%{version}.tar.bz2
Requires:	coreutils
Requires:	gzip
Requires:	procps
Requires:	xauth
BuildArch:	noarch

%description
The mkxauth utility helps create and maintain X authentication databases
(.Xauthority files). Mkxauth is used to create an .Xauthority file or to
merge keys from another local or remote .Xauthority file. .Xauthority files
are used by the xauth user-oriented access control program, which grants or
denies access to X servers based on the contents of the .Xauthority file.

The mkxauth package should be installed if you're going to use user-oriented
access control to provide security for your X Window System (a good idea).

%files
%{_bindir}/mkxauth
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

install -m 0755 mkxauth %{buildroot}%{_bindir}/mkxauth
install -m 0444 mkxauth.1x.bz2 %{buildroot}%{_mandir}/man1/mkxauth.1x.bz2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3351 |21cr|mlt6-6.26.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define plusmaj 3
%define libname %mklibname mlt %{major}
%define libplus %mklibname mlt++ %{plusmaj}
%define devname %mklibname %{name} -d

%bcond_with mmx
%bcond_with git

# mlt receives a lot of fixes in git, but rarely makes releases,
# it makes sense to build git versions
%if %{with git}
%define commit 52bcd049f0ffa4ba97f6f45f175c0d8a077df036
%define commit_short %(echo %{commit} | head -c 6)
%define relsuffix .git%{commit_short}
# in git, version will be from the future
%define libver 6.20.0
%else
%define relsuffix %{nil}
%define libver %{version}
%endif

Summary:	Media Lovin' Toolkit nonlinear video editing library
Name:		mlt%{major}
Version:	6.26.1
Release:	2
License:	LGPLv2+
Group:		Video
Url:		https://www.mltframework.org
%if %{with git}
Source0:	https://github.com/mltframework/mlt/archive/%{commit}.tar.gz?/mlt-%{commit}.tar.gz
%else
Source0:	http://downloads.sourceforge.net/project/mlt/mlt/mlt-%{version}.tar.gz
%endif
BuildRequires:	imagemagick
BuildRequires:	ffmpeg
BuildRequires:	ffmpeg-devel
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(frei0r)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(libquicktime)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(movit)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sox)
BuildRequires:	pkgconfig(vorbis)
# For python-bindings
BuildRequires:	swig
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)

%description
MLT is an open source multimedia framework, designed and developed for
television broadcasting.

It provides a toolkit for broadcasters, video editors, media players,
transcoders, web streamers and many more types of applications. The
functionality of the system is provided via an assortment of ready to
use tools, xml authoring components, and an extendible plug-in based
API.

%files
%doc docs COPYING README
%{_bindir}/melt-%{major}
%{_datadir}/mlt
%{_libdir}/mlt

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for mlt
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries needed to run programs dynamically
linked with mlt.

%files -n %{libname}
%doc docs README
%license COPYING
%{_libdir}/libmlt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libplus}
Summary:	Main library for mlt++
Group:		System/Libraries

%description -n %{libplus}
This package contains the libraries needed to run programs dynamically
linked with mlt++.

%files -n %{libplus}
%doc docs README
%license COPYING
%{_libdir}/libmlt++.so.%{plusmaj}*
%{_libdir}/libmlt++.so.%{libver}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use mlt
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libplus} = %{EVRD}
# mlt-config requires stuff from %%{_datadir}/%%{name}
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use mlt.

%files -n %{devname}
%doc docs README
%license COPYING
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n python2-%{name}
%py2_migration_meta python2-%{name}
Summary:	Python2 bindings for MLT
Group:		Development/Python
Requires:	%{name} = %{EVRD}

%description -n python2-%{name}
This module allows to work with MLT using Python 2.

%files -n python2-%{name}
%doc docs README
%license COPYING
%{py2_platsitedir}/mlt.p*
%{py2_platsitedir}/_mlt.so

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings for MLT
Group:		Development/Python
Requires:	%{name} = %{EVRD}

%description -n python3-%{name}
This module allows to work with MLT using Python 3.

%files -n python3-%{name}
%doc docs README
%license COPYING
%{py3_platsitedir}/mlt.p*
%{py3_platsitedir}/_mlt.so
%{py3_platsitedir}/__pycache__/mlt.cpython-38.*

#----------------------------------------------------------------------------

%prep
%if %{with git}
%autosetup -p1 -n %{name}-%{commit}
%else
%autosetup -p1 -n mlt-%{version}
%endif

chmod 644 src/modules/qt/kdenlivetitle_wrapper.cpp
chmod 644 src/modules/kdenlive/filter_freeze.c
chmod -x demo/demo
cp -r src/swig/python src/swig/python3

%build
export PYTHON=python3
%configure \
	--avformat-shared=%{_prefix}	\
	--avformat-swscale		\
	--disable-debug			\
	--enable-avformat		\
	--enable-gpl			\
	--enable-gpl3			\
%if %{with mmx}
	--enable-mmx			\
%else
	%ifarch x86_64
	--enable-mmx			\
	--enable-sse			\
	%else
	--disable-mmx			\
	%endif
%endif
	--enable-motion-est		\
	--luma-compress			\
	--qt-includedir=%{_qt5_includedir}	\
	--qt-libdir=%{_qt5_libdir}	\
	--swig-languages='python'
%make

%install
%makeinstall_std
install -d %{buildroot}%{py3_platsitedir}
install -pm 0644 src/swig/python/mlt.py* %{buildroot}%{py3_platsitedir}/
install -pm 0755 src/swig/python/_mlt.so %{buildroot}%{py3_platsitedir}/

# Build python2 version as well... Too much legacy cruft out there
cd src/swig/python
sed -i -e 's,python -c,python2 -c,g;s,python-config,python2-config,g;s,dm,d,g' build
./build CXX=%{__cxx} CXXFLAGS="%{optflags}"
cd ../../..

install -d %{buildroot}%{py2_platsitedir}
install -pm 0644 src/swig/python/mlt.py* %{buildroot}%{py2_platsitedir}/
install -pm 0755 src/swig/python/_mlt.so %{buildroot}%{py2_platsitedir}/

mv %{buildroot}%{_bindir}/melt %{buildroot}%{_bindir}/melt-%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3352 |21cr|mlterm-3.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define majormef       3
%define libmef     %mklibname mef %{majormef}

%define majorpobl       2
%define libpobl     %mklibname pobl %{majorpobl}

Summary:        Multi Lingual TERMinal emulator for X
Name:           mlterm
Version:        3.9.2
Release:        2
License:        BSD style
Group:          Terminals
URL:            http://mlterm.sourceforge.net/
Source0:        http://prdownloads.sourceforge.net/mlterm/mlterm-%{version}.tar.gz
Source10:       mlterm.rpmlintrc
Patch0:         mlterm_font_config.diff
# we need to versionate the two following requires b/c of missing major changes:
Requires:       %{libmef} = %{version}
Requires:       %{libpobl} = %{version}
Requires:       ncurses-extraterms
BuildRequires:  fribidi-devel
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  imagemagick
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(libssh2)

%description
mlterm is a multi-lingual terminal emulator written from
scratch, which supports various character sets and encodings
in the world.  It also supports various unique feature such as
anti-alias using FreeType, multiple windows, scrollbar API,
scroll by mouse wheel, automatic selection of encoding,
and so on. Multiple xims are also supported.
You can dynamically change various xims.
NOTE: mlterm has good config tools.
Press Ctrl + right click or Ctrl + left click to run them.

%files -f mlconfig.lang
%doc ChangeLog LICENCE README doc/{en,ja}
%config(noreplace) %{_sysconfdir}/mlterm/
%{_bindir}/mlcc
%{_bindir}/mlfc
%{_bindir}/mlclient
%{_bindir}/mlterm
%{_bindir}/mlclientx
%{_libexecdir}/%{name}
%{_libdir}/mef
%{_libdir}/%{name}
%{_libdir}/libmlterm_coreotl.so
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#---------------------------------------------------------------
%package -n	%{libmef}
Group:		System/Libraries
Summary:	Uitlity Library for Multi Lingual TERMinal

%description -n %{libmef}
This library is necessary for Multi Lingual TERMinal. It contains
various utility functions for mlterm.

%files -n %{libmef}
%_libdir/libmef.so.%{majormef}*

#---------------------------------------------------------------

%package -n	%{libpobl}
Group:		System/Libraries
Summary:	Mlterm Library for Handling Various Character Encodings

%description -n %{libpobl}
This library is necessary for Multi Lingual TERMinal. It contains
routines for handling various character sets.

%files -n %{libpobl}
%_libdir/libpobl.so.%{majorpobl}*

#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
export CFLAGS="%{optflags} %{build_ldflags}"
%configure \
	--disable-static \
	--enable-fribidi \
	--with-imagelib=gdk-pixbuf \
	--enable-anti-alias \
	--with-scrollbars=sample,extra,pixmap_engine \
	--enable-optimize-redrawing \
	--with-tools \
	--disable-rpath

%make

%install
%makeinstall_std

# install menu entry.
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Mlterm
Comment=A multi-lingual terminal emulator
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=System;TerminalEmulator;
EOF

#install icons.
mkdir -p %{buildroot}%{_liconsdir} \
         %{buildroot}%{_iconsdir} \
         %{buildroot}%{_miconsdir} \

convert doc/icon/mlterm_16x16.xpm %{buildroot}/%{_miconsdir}/mlterm.png
convert doc/icon/mlterm_32x32.xpm %{buildroot}/%{_iconsdir}/mlterm.png
convert doc/icon/mlterm_48x48.xpm %{buildroot}/%{_liconsdir}/mlterm.png

# remove unnecessary files
rm -f %{buildroot}%{_libdir}/libmef.{so,la,a} \
      %{buildroot}%{_libdir}/libpobl.{so,la,a} \
      %{buildroot}%{_libexecdir}/%{name}/lib*.a \
      %{buildroot}%{_libexecdir}/%{name}/lib*.la

%find_lang mlconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3353 |21cr|mm3d-1.3.8a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Misfit Model 3D - OpenGL-based 3D model editor
Name:		mm3d
Version:	1.3.8a
Release:	7
License:	GPLv2+
Group:		Graphics
Url:		http://www.misfitcode.com/misfitmodel3d/
Source0:	http://downloads.sourceforge.net/misfitmodel3d/%{name}-%{version}.tar.gz
Patch0:		mm3d-1.3.8a-gcc47.patch
BuildRequires:	desktop-file-utils
BuildRequires:	qt4-assistant
BuildRequires:	qt4-linguist
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt3Support)
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtNetwork)
BuildRequires:	pkgconfig(QtOpenGL)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)

%description
Misfit Model 3D is an OpenGL-based 3D model editor that works with
triangle-based models. It supports multi-level undo, skeletal
animations, simple texturing, scripting, command-line batch
processing, and a plugin system for adding new model and image
filters. Complete online help is included. It is designed to be easy
to use and easy to extend with plugins and scripts.

%files
%doc %{_datadir}/doc/%{name}/html
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/plugins/1.3
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mimelnk/application/*.desktop
%{_datadir}/%{name}/i18n/mm3d_bork.qm
%{_datadir}/%{name}/i18n/mm3d_ref.qm
%{_datadir}/%{name}/i18n/mm3d_sk.qm
%{_datadir}/%{name}/i18n/mm3d_de.qm
%{_datadir}/%{name}/i18n/mm3d_fr.qm
%lang(ar) %{_datadir}/%{name}/i18n/qt_ar.qm
%lang(cs) %{_datadir}/%{name}/i18n/qt_cs.qm
%lang(de) %{_datadir}/%{name}/i18n/qt_de.qm
%lang(fr) %{_datadir}/%{name}/i18n/qt_fr.qm
%lang(iw) %{_datadir}/%{name}/i18n/qt_iw.qm
%lang(ru) %{_datadir}/%{name}/i18n/qt_ru.qm
%lang(sk) %{_datadir}/%{name}/i18n/qt_sk.qm
%lang(zh_CN) %{_datadir}/%{name}/i18n/qt_zh_CN.qm
%{_mandir}/man1/mm3d.1.*
%{_datadir}/pixmaps/*.xpm

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

desktop-file-install \
	--add-category="3DGraphics" \
	--remove-category="Application" \
	--remove-key="Encoding" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3354 |21cr|mma-21.09-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Musical MIDI Accompaniment
Name:		mma
Version:	21.09
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://www.mellowood.ca/mma/
Source0:	https://www.mellowood.ca/%{name}/%{name}-bin-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		mma-21.09-fix-python-shebangs.patch
BuildArch:	noarch
Requires:	python3

%description
Musical MIDI Accompaniment is an accompaniment generator -- it creates midi
tracks for a soloist to perform over from a user supplied file containing
chords and MMA directives. Is is very versatile and generates excellent
tracks. It comes with an extensive user-extendable library with a variety of
patterns for various popular rhythms, an extensive user manual, and several
demo songs. MMA is a command line driven program. It creates MIDI files which
need a sequencer or MIDI file play program.

%files
%doc text/* egs util/README.* docs/html/*
%{_bindir}/%{name}*
%{_bindir}/mid2mma
%{_bindir}/mup2mma
%{_bindir}/pg2mma
%{_bindir}/synthsplit
#{py3_puresitedir}/MMA
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man8/%{name}-libdoc.8*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-bin-%{version}
%patch0 -p1

# Drop useless stuff causing build failures
rm -f egs/README egs/mkall text/README text/INSTALL text/CONTRIB


%build
# Nothing to do


%install
# No automated install: go manually and mimic what the provided install script does
# Create the needed dirs
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_docdir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -d -m 755 %{buildroot}%{_mandir}/man8
# Install main script
install -D %{name}.py %{buildroot}%{_bindir}/%{name}
# Install all the needed files
cp -a lib %{buildroot}%{_datadir}/%{name}/lib
cp -a includes %{buildroot}%{_datadir}/%{name}/includes
cp -a plugins %{buildroot}%{_datadir}/%{name}/plugins
cp -a MMA %{buildroot}%{_datadir}/%{name}/MMA
for file in util/*.py
do
	prog=`echo "$file" | sed 's|^util/||' | sed 's|.py$||'`
	install -D -m 755 "$file" "%{buildroot}%{_bindir}/$prog"
done
install -m 644 docs/man/*.1 %{buildroot}%{_mandir}/man1/
install -m 644 docs/man/*.8 %{buildroot}%{_mandir}/man8/

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/MMA/{setup,appdirs}.py


%post
mma -G

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3355 |21cr|mmc-check-password-3.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenLDAP password checker module for MMC
Name:		mmc-check-password
Version:	3.0.4
Release:	1
License:	GPLv2
Group:		System/Servers
Url:		http://mds.mandriva.org/
Source0:	mmc-check-password.tar.gz
Patch0:		mmc-check-password-mdv_conf.diff
BuildRequires:	openldap-devel
BuildRequires:	wrap-devel

%description
OpenLDAP password checker module for MMC.

%prep

%setup -q -T -c -n %{name}-%{version} -a0
%patch0 -p0

%build
make CFLAGS="%{optflags} -fPIC"

%install
install -d %{buildroot}%{_libdir}/openldap
install -d %{buildroot}%{_sysconfdir}/openldap

install -m0644 mmc-check-password.conf %{buildroot}%{_sysconfdir}/openldap/mmc-check-password.conf
install -m0755 mmc-check-password.so %{buildroot}%{_libdir}/openldap/mmc-check-password.so

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/openldap/mmc-check-password.conf
%attr(0755,root,root) %{_libdir}/openldap/mmc-check-password.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3356 |21cr|mmv-1.01b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Move/copy/append/link multiple files
Name:		mmv
Version:	1.01b
Release:	1
License:	GPL
Group:		File tools
Url:		http://packages.qa.debian.org/m/mmv.html
Source0:	http://ftp.debian.org/debian/pool/main/m/mmv/mmv_%{version}.orig.tar.gz
Source1:	copyright
Source2:	changelog
Patch0:		mmv-1.01b-debian.patch
Patch1:		mmv-1.01b-makefile.patch
Patch2:		mmv-1.01b-debian-14.patch
Patch3:		mmv-1.01b-sfmt.patch

%description
This is mmv, a program to move/copy/append/link multiple files
according to a set of wildcard patterns. This multiple action is
performed safely, i.e. without any unexpected deletion of files due to
collisions of target names with existing filenames or with other
target names. Furthermore, before doing anything, mmv attempts to
detect any errors that would result from the entire set of actions
specified and gives the user the choice of either aborting before
beginning, or proceeding by avoiding the offending parts.

%files
%doc changelog ANNOUNCE ARTICLE READ.ME
%license copyright
%{_bindir}/mmv
%{_bindir}/mcp
%{_bindir}/mad
%{_bindir}/mln
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}.orig
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
cp -p %{SOURCE1} .
cp -p %{SOURCE2} .

find . -perm 640 -exec chmod 644 {} \;

%build
%make \
	CONF="%{optflags} -fpie" \
	LDCONF="-pie"

%install
%makeinstall_std
ln -s mmv %{buildroot}%{_bindir}/mcp
ln -s mmv %{buildroot}%{_bindir}/mad
ln -s mmv %{buildroot}%{_bindir}/mln
ln -s mmv.1%{_extension} %{buildroot}%{_mandir}/man1/mcp.1%{_extension}
ln -s mmv.1%{_extension} %{buildroot}%{_mandir}/man1/mad.1%{_extension}
ln -s mmv.1%{_extension} %{buildroot}%{_mandir}/man1/mln.1%{_extension}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3357 |21cr|mnemosyne-2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   Mnemosyne

Name:		mnemosyne
Summary:	Flash-card learning tool
Version:	2.9
Release:	1
URL:		http://www.mnemosyne-proj.org/
Source0:	http://downloads.sourceforge.net/mnemosyne-proj/%{oname}-%{version}.tar.gz
Patch0:		%{name}-desktop.patch
License:	GPLv2+
Group:		Education
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch
Requires:	hicolor-icon-theme
Requires:	python3egg(pygame)
Requires:	python3-qt5
Requires:	python3egg(pillow)
Requires:	python3-matplotlib-cairo
Requires:	python3egg(cherrypy)
Requires:	python3egg(webob)


%description
Mnemosyne resembles a traditional flash-card program but with an
important twist: it uses a sophisticated algorithm to schedule the best
time for a card to come up for review.

Optional dependencies:
* latex: enables entering formulas using latex syntax.

%files -f %{name}.lang
%doc ChangeLog README
%{_bindir}/%{name}
%{python3_sitelib}/%{name}
%{python3_sitelib}/Mnemosyne-%{version}-*.egg-info
%{python3_sitelib}/openSM2sync
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
#----------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1 -b .d

%build
CFLAGS="%{optflags}" %__python3 setup.py build

%install
%__python3 setup.py install --root %{buildroot}

install -d %{buildroot}%{_datadir}/applications
desktop-file-install --vendor="" \
	--dir=%{buildroot}%{_datadir}/applications \
	%{name}.desktop

install -d %{buildroot}%{_iconsdir}/hicolor/128x128/apps
pushd %{buildroot}%{_iconsdir}
mv %{name}.png hicolor/128x128/apps/%{name}.png
popd

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3358 |21cr|moarvm-2023.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 2023.02

%define debug_package %{nil}

Summary:	VM perl6
Name:		moarvm
Version:	%{date}
Release:	1
License:	Artistic-2.0 and GPLv2+ and MIT
Group:		Development/Perl
Url:		https://moarvm.org/
Source0:	https://github.com/MoarVM/MoarVM/archive/%{date}.tar.gz?/MoarVM-%{date}.tar.gz
# this is full set of 3rdparty dir for needed version moarvm
# clone git MoarVM, git submodule update --init --recursive, and pack 3rdparty
# without build with right 3rdparty, we have segmentation error on build nqp project
Source10:	3rdparty.tar.gz

BuildRequires: perl
BuildRequires: pkgconfig(libuv)
BuildRequires: pkgconfig(libffi)
BuildRequires: pkgconfig(libtommath)
BuildRequires: pkgconfig(libzstd)
BuildRequires: libatomic_ops-devel
BuildRequires: perl(ExtUtils::Command)
BuildRequires: perl(Data::Dumper)

%description
VM with adaptive optimization and JIT compilation,
built for Rakudo Perl 6.

%files
%doc LICENSE *.txt
%{_bindir}/moar
%{_libdir}/libmoar.so
%{_datadir}/nqp
%{_mandir}/man1/moar.1.xz

#------------------------------------------------------------------

%package devel
Summary:  Development files
Group:    Development/C
# used in moar.h
Requires: mimalloc-devel
Requires: libatomic_ops-devel
Requires: pkgconfig(libtommath)
Requires: pkgconfig(libuv)
Requires: pkgconfig(libffi)

%description devel
VM with adaptive optimization and JIT compilation,
built for Rakudo Perl 6.

%files devel
%{_includedir}/moar
%{_datadir}/pkgconfig/moar.pc

#------------------------------------------------------------------

%prep
%setup -qn MoarVM-%{date} -b10

cp -rf %{_builddir}/3rdparty .

%build
export CFLAGS="%{optflags}"
export LDFLAGS="%{ldflags}"

%{__perl} Configure.pl \
  --prefix=%{_prefix} \
  --libdir=%{_libdir} \
  --has-libatomic_ops \
  --has-libffi \
  --has-libuv \
  --has-libtommath

%make

%install
%{__perl} -MExtUtils::Command -e mkpath %{buildroot}%{_mandir}/man1
pod2man --section=1 --name=moar docs/moar.pod | %{__gzip} -c > %{buildroot}%{_mandir}/man1/moar.1.gz
%makeinstall_std

# delete -devel parts of bundled libraries
for i in dyncall dynasm mimalloc libtommath libuv libatomic_ops; do rm -fr %{buildroot}%{_includedir}/${i}; done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3359 |21cr|moc-2.6.0-1.alpha3.svn3005.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define alpha alpha3
%define svn svn3005

# switch between tarball and svn here.Sflo
%define with_svn 1
#
Summary:	Simple console audio player
Name:		moc
Epoch:		2
Version:	2.6.0
%if %{with_svn}
Release:	1.%{alpha}.%{svn}.1
%else
Release:	%{alpha}.5
%endif

License:	GPLv2+
Group:		Sound
Url:		http://moc.daper.net/

%if %{with_svn}
# svn co svn://daper.net/moc/trunk
# tar -zcvf moc-2.6.0_alpha3_%{svn}.tar.gz trunk
Source0:	%{name}-%{version}_%{alpha}_%{svn}.tar.gz
%else
Source0:	http://ftp.daper.net/pub/soft/%{name}/unstable/%{name}-2.6-alpha3.tar.xz
%endif

BuildRequires:	autogen
BuildRequires:	gettext-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	libfaac-devel
BuildRequires:	libfaad2-devel
BuildRequires:	libmpcdec-devel
BuildRequires:	librcc-devel >= 0.2.10
BuildRequires:	libstdc++-devel
BuildRequires:	libtool-devel
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	db52-devel

# buggy alsa-deps in 2019.1
%if %{mdvver} >= 201910
BuildRequires:	phonon-vlc >= 0.10
%endif

%description
MOC is a console audio player with ncurses interface.
Features:
    * Supports aac ffmpeg flac modplug mp3 musepack sndfile
      speex vorbis wavpack
    * Play files from directory changing automatically to the next one
      without any playlist.
    * Supports id3tag, VBR and Xing header for MP3.
    * Simple mixer.
    * Fast switching to your music directory.
    * Playlists (without read/write to a file).
    * Shuffle and repeat.
    * Changing process priority to higher value.
    * Playing in separate thread.
    
    
%files
%doc AUTHORS ChangeLog COPYING NEWS README README_equalizer THANKS
%{_bindir}/mocp
%{_mandir}/*/*
%{_libdir}/%{name}
%{_datadir}/%{name}    
#-----------------------------------------------------------

%prep
%if %{with_svn}
%setup -qn trunk
%else
%setup -qn moc-2.6-alpha3
%endif
find . -perm 0640 -exec chmod 0644 {} \;

%build
export CFLAGS="%{optflags} `pkg-config --cflags ncursesw`"
autoreconf -fiv
%configure
%make

%install
%makeinstall_std
rm -rf %{buildroot}/usr/share/doc/
rm -rf %{buildroot}/%{_libdir}/*/*/*la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3360 |21cr|modem-manager-gui-0.0.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Modem Manager GUI
Name:		modem-manager-gui
Version:	0.0.20
Release:	1
License:	GPLv3
Group:		System/Configuration/Networking
Url:		http://linuxonly.ru
Source0:	http://download.tuxfamily.org/gsf/source/%{name}-%{version}.tar.gz
# Fix the NetworkManager dispatcher script location
Patch1: 0001-Move-the-NetworkManager-dispatcher-script-out-of-etc.patch
# Appdata XML validation fails
Patch2: 0002-add-missing-appdata-tags.patch
# There have been a couple of Meson releases since the last MMGUI release
# and some of the stuff used in build scripts has been deprecated since
Patch3: 0003-fix-deprecated-meson-functions.patch
# MMGUI crashes with some new versions of NetworkManager.
# Patch taken from Debian:
# https://salsa.debian.org/debian/modem-manager-gui/-/raw/master/debian/patches/fix_segfault_on_DNS_entries.patch
Patch4: 0004-fix-segfault-on-DNS-entries.patch
BuildRequires:	meson
BuildRequires:	appindicator-gtk3-devel
BuildRequires:	gdbm-devel >= 1.10
BuildRequires:	itstool
BuildRequires:	pkgconfig(glib-2.0) >= 2.32.1
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify) >= 0.7.5
BuildRequires:	po4a
Requires:	gdbm >= 1.10
Requires:	glib2 >= 2.32.1
Requires:	gtk+3.0 >= 3.4.0
Requires:	libnotify >= 0.7.5
Requires:	modemmanager >= 0.6.0.0
Recommends:	networkmanager

%description
This program is simple graphical interface for Modem Manager 
daemon dbus interface.
Current features:
- View device information: Operator name, Mode, IMEI, IMSI,
  Signal level.
- Send and receive SMS messages with long massages 
  concatenation and store messages in database.
- Send USSD requests and read answers in GSM7 and UCS2 formats
  converted to system UTF8 charset.
- Scan available mobile networks.

%files -f %{name}.lang
%doc AUTHORS Changelog LICENSE
%{_bindir}/modem-manager-gui
%{_prefix}/lib/NetworkManager/dispatcher.d/95-mmgui-timestamp-notifier
%{_datadir}/applications/modem-manager-gui.desktop
%{_datadir}/help/*/modem-manager-gui/*.page
%{_datadir}/help/*/modem-manager-gui/figures/*.png
%{_datadir}/metainfo/modem-manager-gui.appdata.xml
%{_datadir}/modem-manager-gui/pixmaps/*
%{_datadir}/modem-manager-gui/sounds/message.ogg
%{_datadir}/modem-manager-gui/ui/modem-manager-gui.ui
%{_datadir}/polkit-1/actions/*
%{_iconsdir}/hicolor/128x128/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_iconsdir}/hicolor/symbolic/apps/%{name}-symbolic.svg
%{_libdir}/modem-manager-gui/modules/*
%{_mandir}/*/man1/modem-manager-gui.1.xz
%{_mandir}/man1/modem-manager-gui.1.xz

#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3361 |21cr|mold-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _empty_manifest_terminate_build 0

%bcond_with clang

Summary:	Modern and fast linker
Name:		mold
Version:	1.7.0
Release:	1
Group:		Development/Tools
License:	AGPLv3
Url:		https://github.com/rui314/mold
Source0:	https://github.com/rui314/mold/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source10:	mold.rpmlintrc
# The bundled build system for tbb tries to strip all Werror from the
# CFLAGS/CXXFLAGS when not building in strict mode (mold doesn't use strict
# mode). We don't want that because it causes the "Werror=format-security"
# option to become "=format-security" and break the build (similar to a patch
# in the Fedora tbb package).
Patch0:	tbb-strip-werror.patch

# Fix mimalloc compatibility with libstdc++ < 9:
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=68210
Patch1:	mold-1.7.0-fix-compatibility-with-libstdc9.patch

# Mold supports x86-64, i386, ARM64, ARM32, 64-bit/32-bit little/big-endian RISC-V, 64-bit big-endian PowerPC ELFv1,
# 64-bit little-endian PowerPC ELFv2, s390x, SPARC64 and m68k.
ExclusiveArch:	x86_64 aarch64

BuildRequires:	cmake >= 3.18
%if %{with clang}
BuildRequires:	clang
BuildRequires:	llvm
%endif
BuildRequires:	perl
BuildRequires:	python3
BuildRequires:	libatomic-devel
BuildRequires:	mimalloc-devel
BuildRequires:	pkgconfig(hwloc)
BuildRequires:	pkgconfig(libxxhash)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
# Build fails with currently packaged tbb 2020.3-1: missing cmake files
#BuildRequires:	pkgconfig(tbb)
#BuildRequires:	libstdc++-static-devel
Requires(post,postun): %{_sbindir}/alternatives

%description
Mold is a faster drop-in replacement for existing Unix linkers. It is several
times faster than LLVM LLD linker, the second-fastest open-source linker.
This program is created for increasing developer productivity by reducing
build time especially in rapid debug-edit-rebuild cycles.

%files
%doc LICENSE README.md
%doc docs/*.md
%{_bindir}/%{name}
%{_bindir}/ld*.%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/%{name}-wrapper.so
%{_libexecdir}/%{name}/ld
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/ld.%{name}.1*

%post
if [ "$1" = 1 ]; then
  %{_sbindir}/alternatives --install %{_bindir}/ld ld %{_bindir}/ld.%{name} 1
fi

%postun
if [ "$1" = 0 ]; then
  %{_sbindir}/alternatives --remove ld %{_bindir}/ld.%{name}
fi
#------------------------------------------------------------------------------------------------

%prep
%autosetup -p1


%build
# Build fails with currently packaged tbb 2020.3-1
%cmake 	-DTBB_FIND_PACKAGE=OFF \
				-DMOLD_USE_SYSTEM_TBB=OFF \
				-DMOLD_USE_SYSTEM_MIMALLOC=ON
%make


%install
%makeinstall_std -C build


%check
# build_id.sh test fail, but i see right info in test exe file, 
# may be output format of readelf util changed?
#%%make -j1 test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3362 |21cr|molequeue-0.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		molequeue
Version:	0.9.0
Release:	2
Summary:	Desktop integration of high performance computing resources
License:	BSD
Group:		Sciences/Chemistry
Url:		http://openchemistry.org/molequeue
Source:		https://github.com/OpenChemistry/molequeue/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		molequeue-0.9.0-fix-build-against-qt-5.11.0.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(libzmq)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
MoleQueue is an open-source, cross-platform, system-tray resident desktop
application for abstracting, managing, and coordinating the execution of
tasks both locally and on remote computational resources. Users can set
up local and remote queues that describe where the task will be executed.
Each queue can have programs, with templates to facilitate the execution
of the program. Input files can be staged, and output files collected
using a standard interface. Some highlights:

  * Open source distributed under the liberal 3-clause BSD license
  * Cross platform with nightly builds on Linux, Mac OS X and Windows
  * Intuitive interface designed to be useful to whole community
  * Support for local executation and remote schedulers (SGE, PBS, SLURM)
  * System tray resident application managing queue of queues and job lifetime
  * Simple, lightweight JSON-RPC 2.0 based communication over local sockets
  * Qt 5 client library for simple integration in Qt applications

#----------------------------------------------------

%package	devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} >= %{version}-%{release}

%description	devel
The %{name}-devel package contains header files for developing applications
that use %{name}.

#----------------------------------------------------

%package -n	python2-%{name}
Summary:	Python 2 bindings for %{name}
Group:		Development/Python
BuildArch:	noarch
Requires:	%{name} >= %{version}-%{release}
Requires:	pythonegg(pyzmq)

Obsoletes:	python-molequeue < 0.8.0-3
Provides:	python-molequeue = %{version}-%{release}

%description -n	python2-%{name}
The python2-%{name} package contains Python2 bindings for %{name}.

#----------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake_qt5 \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-DUSE_ZERO_MQ=ON

%make

%install
%makeinstall_std -C build

%files
%doc LICENSE
%{_docdir}/MoleQueue/ 
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_libdir}/*.so

%files devel
%{_includedir}/%{name}/
%{_libdir}/cmake/%{name}/

%files -n python2-%{name}
%{py_puresitedir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3363 |21cr|mon-1.2.0-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Filesys::DiskSpace\\)|perl\\(Statistics::Descriptive\\)|perl\\(SNMP\\)|perl\\(IO::File\\)|perl\\(LWP::Parallel::UserAgent\\)|perl\\(-Dopt\\)|perl\\(Net::SNPP\\)|perl\\(Math::TrulyRandom\\)
%else
%define _requires_exceptions perl(Filesys::DiskSpace)\\|perl(Statistics::Descriptive)\\|perl(SNMP)\\|perl(IO::File)\\|perl(LWP::Parallel::UserAgent)\\|perl(-Dopt)\\|perl(Net::SNPP)
%endif

%define moncgi_version 1.52
%define realname Mon

Summary:	A general-purpose resource monitoring system
Name:		mon
Version:	1.2.0
Release:	24
License:	GPLv2+
Group:		System/Servers
Url:		http://www.kernel.org/software/mon/
Source0:	ftp://ftp.kernel.org/pub/software/admin/mon/%{name}-%{version}.tar.gz
Source1:	%{name}.cf
Source2:	ftp://ftp.kernel.org/pub/software/admin/mon/contrib/cgi-bin/mon.cgi/%{name}.cgi-%{moncgi_version}.tar.bz2
Source3:	ftp://ftp.kernel.org/pub/software/admin/mon/contrib/all-alerts.tar.bz2
Patch0:		mon-1.2.0-init.patch
BuildRequires:	pkgconfig(libtirpc)
# (blino) Authen::PAM use is catched in an eval, but mandatory
Requires:	perl-Authen-PAM
Requires:	fping

%description
Mon is a general-purpose resource monitoring system.  It can be used
to monitor network service availability, server problems,
environmental conditions (i.e., the temperature in a room) or other
things. Mon can be used to test the condition and/or to trigger an
action upon failure of the condition.  Mon keeps the testing and
action-taking tasks as separate, stand-alone programs.

Mon is very extensible.  Monitors and alerts are not a part of mon, but
the distribution comes with a handful of them to get you started. This
means that if a new service needs monitoring, or if a new alert is
required, the mon server will not need to be changed.

%files -f alerts.README
%doc CHANGES CREDITS COPYRIGHT README INSTALL TODO doc/README.*
%doc KNOWN-PROBLEMS VERSION utils/*
%doc etc/*.cf etc/example.m4 etc/example.monshowrc clients/{skymon,batch-example}
%doc mon.cgi-1.52/
%dir %config(noreplace) %{_sysconfdir}/mon
%config(noreplace) %{_sysconfdir}/mon/*.cf
%attr (0600,root,root) %config(noreplace) %{_sysconfdir}/mon/userfile
%config(noreplace) %{_initrddir}/mon
%{_mandir}/*/*
%{_var}/www/cgi-bin/mon.cgi
%{_bindir}/mon
%{_bindir}/monshow
%{_bindir}/moncmd
%{_bindir}/skymon
%{_libdir}/mon/alert.d
%{_libdir}/mon/mon.d/*.monitor
%attr(02555,root,dialout) %{_libdir}/mon/mon.d/dialin.monitor.wrap
%dir %{_var}/lib/mon
%dir %{_var}/lib/mon/state.d
%dir %{_var}/lib/mon/log.d

%post
%_post_service mon

%preun
%_preun_service mon

#----------------------------------------------------------------------------

%prep
%setup -q -a 2 -a 3
%patch0 -p1

%build
%serverbuild
export RPM_OPT_FLAGS="%{optflags} -DUSE_VENDOR_CF_PATH=1"

%make -C mon.d LDLIBS=-ltirpc

%install
mkdir -p %{buildroot}/%{_bindir}
install -m 755 mon %{buildroot}/%{_bindir}
install -m 755 clients/moncmd %{buildroot}/%{_bindir}
install -m 755 clients/monshow %{buildroot}/%{_bindir}
install -m 755 clients/skymon/skymon %{buildroot}/%{_bindir}

# man
mkdir -p %{buildroot}%{_mandir}/{man1,man8}
install -m 644 doc/*.1 %{buildroot}%{_mandir}/man1
install -m 644 doc/*.8 %{buildroot}%{_mandir}/man8

mkdir -p %{buildroot}/%{_libdir}/mon/alert.d
install -m 755 alert.d/* %{buildroot}/%{_libdir}/mon/alert.d
find alerts/  -type f ! -regex ".*~" ! -regex ".*README"  -exec install -m 755 {} %{buildroot}/%{_libdir}/mon/alert.d  \;

mkdir -p %{buildroot}/%{_var}/lib/mon/state.d
mkdir -p %{buildroot}/%{_var}/lib/mon/log.d

mkdir -p %{buildroot}/%{_libdir}/mon/mon.d
install -m 755 mon.d/*.monitor %{buildroot}/%{_libdir}/mon/mon.d
install -m 755 mon.d/dialin.monitor.wrap %{buildroot}/%{_libdir}/mon/mon.d

#chmod 644 %{buildroot}/%{_libdir}/mon/mon.d/{Makefile,*.c}

mkdir -p %{buildroot}/%{_sysconfdir}/mon
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/mon/mon.cf
install -m 644 etc/auth.cf %{buildroot}%{_sysconfdir}/mon/auth.cf
echo "# user: passwd" > %{buildroot}%{_sysconfdir}/mon/userfile

mkdir -p %{buildroot}%{_initrddir}
cp -f etc/S99mon %{buildroot}%{_initrddir}/mon

mkdir -p %{buildroot}/%{_var}/www/cgi-bin/
mv mon.cgi-%{moncgi_version}/mon.cgi mon.cgi
install -m 755 mon.cgi %{buildroot}/%{_var}/www/cgi-bin/

# doc
chmod 644 {README*,doc/README*}
echo "%doc `find alerts/  -type f ! -regex ".*~" -name "*README" | xargs`"> alerts.README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3364 |21cr|mondo-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	MondoRescue is a GPL Disaster Recovery and Cloning Solution
Name:		mondo
Version:	3.3.0
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://www.mondorescue.org
Source0:	ftp://ftp.mondorescue.org/src/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libnewt)
Requires:	afio
Requires:	binutils
Requires:	buffer
Requires:	bzip2
Requires:	cdrecord
Requires:	mindi
Requires:	mkisofs
Requires:	net-tools
Requires:	newt
Requires:	parted
%ifnarch %{armx}
Requires:	syslinux
%endif

%description
Mondo is a GPL disaster recovery solution to create backup media
(CD, DVD, tape, network images) that can be used to redeploy the
damaged system, as well as deploy similar or less similar systems.

%files
%doc COPYING README* TODO AUTHORS
%doc docs/en/mondorescue-howto.html docs/en/mondorescue-howto.pdf
%{_sbindir}/*
%{_datadir}/%{name}/
%{_libdir}/%{name}/
%{_mandir}/man8/*
%{_var}/cache/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./bootstrap
export CFLAGS="%{optflags} -fgnu89-inline"
%configure

%make VERSION=%{version}

%install
%makeinstall_std

mkdir -p %{buildroot}%{_var}/cache/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3365 |21cr|moneymanagerex-1.5.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname mmex

Summary:	Easy-to-use personal finance software
Name:		moneymanagerex
Version:	1.5.21
Release:	1
License:	GPLv2+
Group:		Office
Url:		http://www.moneymanagerex.org
# git clone --recursive -b v{version} --single-branch https://github.com/moneymanagerex/moneymanagerex
# repack and make tar.gz
Source0:	moneymanagerex-%{version}.tar.gz
BuildRequires:	git
BuildRequires:	cmake
BuildRequires:	wxgtku3.1-devel
BuildRequires:	lua-devel
BuildRequires:	lsb-release
BuildRequires:	pkgconfig(libcurl)

%description
Money Manager Ex is a free, open-source, cross-platform, easy-to-use personal
finance software. It primarily helps organize one's finances and keeps track
of where, when and how the money goes. It is also a great tool to get a bird's
eye view of your financial worth.

Money Manager includes all the basic features that 90% of users would want to
see in a personal finance application. The design goals are to concentrate on
simplicity and user-friendliness - something one can use everyday.

%files
%doc %{_docdir}/%{oname}
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%dir %{_datadir}/%{oname}
%{_datadir}/%{oname}/*
%{_iconsdir}/hicolor/*/apps/%{oname}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3366 |21cr|mongo-2004.08.17-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Filesystem load tester
Name:		mongo
Version:	2004.08.17
Release:	10
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://thebsh.namesys.com/benchmarks/dist
Source0:	%{name}-%{version}.tar.gz

%description
Mongo is a program to test linux filesystems for performance and
functionality.

The way to run a Mongo test is runing the mongo.pl script. The mongo.pl
creates output files can be parsed by mongo_parse.pl script.

%files
%doc README mongo.cmds.example
%{_bindir}/mongo_append
%{_bindir}/mongo_copy
%{_bindir}/mongo_delete
%{_bindir}/mongo_parser.pl
%{_bindir}/summ
%{_bindir}/map5
%{_bindir}/mongo_modify
%{_bindir}/mongo.pl
%{_bindir}/mongo_slinks
%{_bindir}/reiser_fract_tree
%{_bindir}/mongo_dd
%{_bindir}/mongo_holes
%{_bindir}/mongo_read
%{_bindir}/update-flist.pl

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 mongo.pl %{buildroot}%{_bindir}/
install -m 755 mongo_append %{buildroot}%{_bindir}/
install -m 755 mongo_copy %{buildroot}%{_bindir}/
install -m 755 mongo_dd %{buildroot}%{_bindir}/
install -m 755 mongo_delete %{buildroot}%{_bindir}/
install -m 755 mongo_holes %{buildroot}%{_bindir}/
install -m 755 mongo_modify %{buildroot}%{_bindir}/
install -m 755 mongo_parser.pl %{buildroot}%{_bindir}/
install -m 755 mongo_read %{buildroot}%{_bindir}/
install -m 755 mongo_slinks %{buildroot}%{_bindir}/
install -m 755 map5 %{buildroot}%{_bindir}/
install -m 755 reiser_fract_tree %{buildroot}%{_bindir}/
install -m 755 summ %{buildroot}%{_bindir}/
install -m 755 update-flist.pl %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3367 |21cr|mongo-c-driver-1.23.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0

%define libname %mklibname mongoc %{major}
%define devname %mklibname mongoc -d
%define libBson %mklibname Bson %{major}
%define devBson %mklibname Bson -d

Name:		mongo-c-driver
Version:	1.23.3
Release:	1
Summary:	MongoDB C Driver
Group:		System/Libraries
License:	ASL 2.0
URL:		https://github.com/mongodb/mongo-c-driver
Source0:	https://github.com/mongodb/mongo-c-driver/releases/download/%{version}/mongo-c-driver-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cyrus-sasl-devel
BuildRequires:	openssl-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	python3egg(sphinx)

%description
mongo-c-driver is a library for building high-performance
applications that communicate with the MongoDB NoSQL
database in the C language. It can also be used to write
fast client implementations in languages such as Python,
Ruby, or Perl.

#--------------------------------------------------------------

%package -n %{libname}
Summary:	MongoDB C Driver
Group:		System/Libraries

%description -n %{libname}
mongo-c-driver is a library for building high-performance
applications that communicate with the MongoDB NoSQL
database in the C language. It can also be used to write
fast client implementations in languages such as Python,
Ruby, or Perl.

%files -n %{libname}
%{_libdir}/libmongoc-1.0.so.%{major}*

#-----------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for mongo-c-driver
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%dir %{_includedir}/libmongoc-1.0
%{_includedir}/libmongoc-1.0/mongoc/*.h
%{_includedir}/libmongoc-1.0/mongoc.h
%{_libdir}/libmongoc-1.0.so
%{_libdir}/pkgconfig/libmongoc-1.0.pc
%{_libdir}/pkgconfig/libmongoc-ssl-1.0.pc
%{_bindir}/mongoc-stat
%{_mandir}/man3/mongoc*
%{_libdir}/cmake/libmongoc-1.0/*.cmake
%{_libdir}/cmake/mongoc-1.0/*.cmake

#-----------------------------------------------------------------

%package -n %{libBson}
Summary:	A library for parsing and generating BSON documents
Group:		System/Libraries

%description -n %{libBson}
Libbson is a library providing useful routines related to 
building, parsing, and iterating BSON documents. It is a 
useful base for those wanting to write high-performance 
C extensions to higher level languages such as Python, 
Ruby, or Perl.

%files -n %{libBson}
%{_libdir}/libbson-1.0.so.%{major}*

#-----------------------------------------------------------------

%package -n %{devBson}
Summary:	Development files for libbson
Group:		Development/Other
Requires:	%{libBson} = %{EVRD}
Provides:	libbson-devel = %{EVRD}

%description -n %{devBson}
The Bson-devel package contains libraries and header files for
developing applications that use Bson.

%files -n %{devBson}
%dir %{_includedir}/libbson-1.0
%{_includedir}/libbson-1.0/bson/*.h
%{_includedir}/libbson-1.0/bson.h
%{_libdir}/libbson-1.0.so
%{_libdir}/pkgconfig/libbson-1.0.pc
%{_prefix}/share/man/man3/bson*
%{_libdir}/cmake/libbson-1.0/*.cmake
%{_libdir}/cmake/bson-1.0/*.cmake
%doc %{_datadir}/mongo-c-driver/*

#-----------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%cmake	-DENABLE_TESTS=OFF \
	-DENABLE_EXAMPLES=OFF \
	-DENABLE_ZLIB=SYSTEM \
	-DENABLE_ZSTD=ON \
	-DENABLE_MAN_PAGES=ON \
	-DENABLE_HTMK_DOC=ON \
	-DENABLE_UNINSTALL=OFF \
	-DENABLE_STATIC=OFF \
	-G Ninja

%ninja_build


%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3368 |21cr|mongodb-6.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Binaries so big
%global debug_package %{nil}

Summary:	MongoDB client shell and tools
Name:		mongodb
Version:	6.2.0
Release:	3
License:	SSPL-1.0
Group:		Databases
Url:		http://www.mongodb.org
Source0:	https://github.com/mongodb/mongo/archive/r%{version}.tar.gz?/mongo-r%{version}.tar.gz
Source10:	mongod.sysusers.conf
Patch0:		mongo-r6.2.0-c++17.patch
BuildRequires:	dos2unix
BuildRequires:	golang
BuildRequires:	scons
BuildRequires:	boost-devel
BuildRequires:	pcap-devel
BuildRequires:	readline-devel
BuildRequires:	libsasl2-devel
BuildRequires:	libstemmer-devel
BuildRequires:	python3dist(cheetah3)
BuildRequires:	python3dist(distro)
BuildRequires:	python3dist(gitpython)
BuildRequires:	python3dist(psutil)
BuildRequires:	python3dist(pydantic)
BuildRequires:	python3dist(pymongo)
BuildRequires:	python3dist(pyyaml)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libtcmalloc)
BuildRequires:	pkgconfig(snappy)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(yaml-cpp)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(zlib)

# From https://docs.mongodb.com/manual/installation
# Changed in version 3.4: MongoDB no longer supports 32-bit x86 platforms.
ExclusiveArch: x86_64 aarch64 %e2k

%description
Mongo (from "huMONGOus") is a schema-free document-oriented database.
It features dynamic profileable queries, full indexing, replication
and fail-over support, efficient storage of large binary data objects,
and auto-sharding.

This package provides the mongo shell, import/export tools, and other
client utilities.

%files
%doc README*.md
%license LICENSE-Community.txt
%{_bindir}/mongo
%{_mandir}/man1/mongokerberos.1*
%{_mandir}/man1/mongoldap.1*

#----------------------------------------------------------------------------

%package server-mongod
Summary:	mongo server, sharding server,  and support scripts
Group:		Databases
Requires:	%{name} = %{EVRD}
Requires(pre):	/bin/systemd-sysusers
Provides:	%{name}-server = %{EVRD}

%description server-mongod
Mongo (from "huMONGOus") is a schema-free document-oriented database.

mongod is the primary daemon process for the MongoDB system.
It handles data requests, manages data format,
and performs background management operations.

%files server-mongod
%doc README*.md
%license LICENSE-Community.txt
%attr(0750,mongod,mongod) %dir %{_localstatedir}/lib/mongo
%attr(0750,mongod,mongod) %dir %{_rundir}/mongodb
%attr(1770,root,mongod) %dir %{_logdir}/mongodb
%{_bindir}/mongod
%config(noreplace) %{_sysconfdir}/mongod.conf
%config(noreplace) %{_sysconfdir}/sysconfig/mongod
%{_mandir}/man1/mongod.1*
%{_sysusersdir}/mongod.conf
%{_unitdir}/mongod.service

%pre server-mongod
# create user and group
%sysusers_create_package mongod %{SOURCE10}

%post server-mongod
%systemd_post mongod.service

%preun server-mongod
%systemd_preun mongod.service

#----------------------------------------------------------------------------

%package server-mongos
Summary:	mongo routing service, and support scripts
Group:		Databases
Requires:	%{name} = %{EVRD}
Requires(pre):	/bin/systemd-sysusers

%description server-mongos
Mongo (from "huMONGOus") is a schema-free document-oriented database.

mongos for "MongoDB Shard," is a routing service for MongoDB shard
configurations that processes queries from the application layer,
and determines the location of this data in the sharded cluster,
in order to complete these operations. From the perspective of the
application, a mongos instance behaves identically to any other
MongoDB instance.

%files server-mongos
%doc README*.md
%license LICENSE-Community.txt
%attr(0750,mongod,mongod) %dir %{_rundir}/mongodb
%attr(1770,root,mongod) %dir %{_logdir}/mongodb
%{_bindir}/mongos
%config(noreplace) %{_sysconfdir}/sysconfig/mongos
%{_mandir}/man1/mongos.1*
%{_sysusersdir}/mongod.conf

%pre server-mongos
# create user and group
%sysusers_create_package mongod %{SOURCE10}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n mongo-r%{version}

# CRLF -> LF
sed -i 's/\r//' README.md

%build
%serverbuild
%ifarch aarch64
%define ccflags_arch_opts "-march=armv8-a+crc"
%endif

%ifarch %e2k
%define opt_wt --wiredtiger=off
%else
%define opt_wt --wiredtiger=on
%endif

%define build_opts \\\
       -j 4 \\\
       --use-system-tcmalloc \\\
       --use-system-pcre \\\
       --use-system-snappy \\\
       --use-system-valgrind \\\
       --use-system-zlib \\\
       --use-system-stemmer \\\
       --use-system-yaml \\\
       --cxx-std=17 \\\
       --use-sasl-client \\\
       %opt_wt \\\
       --ssl=on \\\
       MONGO_VERSION="%{version}-%{release}" \\\
       --disable-warnings-as-errors \\\
       CCFLAGS="%{?optflags} %{?ccflags_arch_opts} `pkg-config --cflags libpcrecpp`"

%scons %build_opts install-devcore

%install
%serverbuild

# cow@: It seems that mongo 4.2 + scons 3.1.1 doesn't provide a clean way to
# specify location to install binaries (at least I wasn't able to find it).
install -p -D -m 755 build/install/bin/mongod %{buildroot}%{_bindir}/mongod
install -p -D -m 755 build/install/bin/mongos %{buildroot}%{_bindir}/mongos
install -p -D -m 755 build/install/bin/mongo %{buildroot}%{_bindir}/mongo

mkdir -p %{buildroot}%{_logdir}/mongodb
mkdir -p %{buildroot}%{_rundir}/mongodb
mkdir -p %{buildroot}%{_localstatedir}/lib/mongo
mkdir -p %{buildroot}%{_mandir}/man1
cp debian/*.1 %{buildroot}%{_mandir}/man1

#mongod
install -p -D -m 644 rpm/mongod.conf %{buildroot}%{_sysconfdir}/mongod.conf
install -p -D -m 644 rpm/mongod.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mongod
install -p -D -m 644 rpm/mongod.service %{buildroot}%{_unitdir}/mongod.service

#mongos
install -p -D -m 644 rpm/mongod.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mongos

# install sysusers config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/mongod.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3369 |21cr|mongo-tools-4.2.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		mongo-tools
Version:	4.2.14
Release:	1
Group:		Databases
Summary:	mongo client shell and tools
License:	Apache-2.0
Url:		https://github.com/mongodb/mongo-tools
Source0:	https://github.com/mongodb/mongo-tools/archive/r%{version}.tar.gz?/mongo-tools-r%{version}.tar.gz
Source1:	mongo-tools-man.tar.gz
BuildRequires:	go-rpm-macros
BuildRequires:	golang >= 1.3
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libpcap)

%description
The MongoDB tools provides import, export, and diagnostic capabilities.

%files
%doc README.md CONTRIBUTING.md THIRD-PARTY-NOTICES LICENSE.md
%{_bindir}/*
%{_mandir}/man1/*

#---------------------------------------------------------------------------
%prep
%autosetup -p1 -a1 -n mongo-tools-r%{version}
#%%goprep -v

%build
export BUILDDIR="$PWD"
mkdir -p $BUILDDIR/src
mkdir -p $BUILDDIR/src/github.com/mongodb/mongo-tools
cp -alv -- vendor/* "$BUILDDIR/src"
cp -alv -- {mongo*,bsondump,legacy} "$BUILDDIR/src/github.com/mongodb/mongo-tools"

export GOPATH="$BUILDDIR:$GOPATH"

mkdir bin
binaries=(bsondump mongostat mongofiles mongoexport mongoimport mongorestore mongodump mongotop mongoreplay)
for bin in "${binaries[@]}"; do
    %gobuild -o bin/${bin} \-tags ssl ${bin}/main/${bin}.go
done

%install
install -d -p %{buildroot}%{_bindir}
install -p -m 0755 bin/* %{buildroot}%{_bindir}

# Mongo-tools does not contain man files yet
# - see https://groups.google.com/forum/#!topic/mongodb-dev/t6Sd2Bki12I
install -d %{buildroot}%{_mandir}/man1
install -p -m 644 mongo-tools-man/man/* %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3370 |21cr|monica-3.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           monica
Version:        3.7
Release:        10
Summary:        Monitor Calibration Tool
License:        BSD
Group:          System/Kernel and hardware
URL:            http://www.pcbypaul.com/software/monica.shtml
Source0:        http://www.pcbypaul.com/software/dl/monica-%{version}.tar.bz2
Patch0:		monica-3.7-use-ldflags.patch
Patch1:		monica-3.7-mdv-fix-gcc43.patch
patch2:		monica-3.7-mdv-fix-str-fmt.patch
Requires:       xgamma
BuildRequires:  fltk-devel

%description
Monica is a monitor calibration tool. It works as frontend to xgamma to
alter the gamma correction for XFree86 or Xorg. The black point, gray,
and color blocks help to find usable settings for a target of 2.2 gamma,
the Web, and sRGB standard.

%prep
%setup -q
%patch0 -p0 -b .orig
%patch1 -p1 -b .gcc43
%patch2 -p1 -b .strfmt

%build
%{make} CFLAGS="%{optflags}" LDFLAGS="%{?ldflags}"

%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__cp} -a monica %{buildroot}%{_bindir}/monica

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc authors ChangeLog install licence news readme
%attr(0755,root,root) %{_bindir}/monica

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3371 |21cr|monika-0.4.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define release_id 2
%global __requires_exclude perl\\(monika::

Summary: Monika PBS monitor tools
Name: monika
Version: 0.4.4
Release: 10
Source: %{name}_%{version}-%{release_id}.tar.bz2
License: GPL
URL:http://ka-tools.sourceforge.net/
Group: Monitoring
Requires: perl-AppConfig, perl-CGI
BuildArchitectures: noarch

%description
Monika is a tool to monitor a PBS cluster. It basically shows an overall 
picture of node reservations, and job states.

%prep

%setup -n %{name}-%{version}

%build

%install
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%{name}-%{version}
mkdir -p $RPM_BUILD_ROOT/%{_var}/www/cgi-bin/%{name}
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/

cp -a $RPM_BUILD_DIR/%{name}-%{version}/monika.cgi $RPM_BUILD_ROOT/%{_var}/www/cgi-bin
cp -a $RPM_BUILD_DIR/%{name}-%{version}/%{name}/*.pm $RPM_BUILD_ROOT/%{_var}/www/cgi-bin/%{name}
cp -a $RPM_BUILD_DIR/%{name}-%{version}/monika.conf $RPM_BUILD_ROOT/%{_sysconfdir}/

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-,root,root)
%doc  INSTALL README LICENSE
%attr(755,root,root) %{_var}/www/cgi-bin/monika*
%config(noreplace) %{_sysconfdir}/*conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3372 |21cr|monit-5.32.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1
Summary:	Process monitor and restart utility
Name:		monit
Version:	5.32.0
Release:	1
License:	GPLv3+
Group:		Monitoring
Url:		https://mmonit.com/monit/
Source0:	http://mmonit.com/monit/dist/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
Monit is a utility for managing and monitoring processes, files, directories
and devices on a Unix system. Monit conducts automatic maintenance and repair
and can execute meaningful causal actions in error situations.

%files
%doc COPYING CHANGES
%config(noreplace) %{_sysconfdir}/monitrc
%dir %{_sysconfdir}/%{name}.d
%{_unitdir}/%{name}.service
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make
# enable logging
sed -i 's|^# set logfile|set logfile|' monitrc

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}.d
install -m 600 monitrc %{buildroot}%{_sysconfdir}/monitrc

install -d -m 755 %{buildroot}%{_unitdir}
install -m 755 system/startup/monit.service %{buildroot}%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3373 |21cr|mono-basic-4.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Visual Basic .NET support for Mono
Name:		mono-basic
Version:	4.6
Release:	3
License:	BSD
Group:		Development/Other
Url:		http://www.mono-project.com/
Source0:	http://download.mono-project.com/sources/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	locales
BuildRequires:	pkgconfig(mono) >= 3.0
Obsoletes:	%{name}-2.0 < 2.10
BuildArch:	noarch

%description
This package contains the Visual Basic .NET compiler and language
runtime. This allows you to compile and run VB.NET application and
assemblies.

%files
%doc README
%{_bindir}/*
%{_prefix}/lib/mono/4.5/*
%{_prefix}/lib/mono/gac/Microsoft.VisualBasic/10.0.0.0*
%{_prefix}/lib/mono/gac/Mono.Cecil.VB.Mdb/0.9.5.0*
%{_prefix}/lib/mono/gac/Mono.Cecil.VB.Pdb/0.9.5.0*
%{_prefix}/lib/mono/gac/Mono.Cecil.VB/0.9.5.0*
%{_mandir}/man1/vbnc.1*

#--------------------------------------------------------------------

%prep
%setup -q

%build
export LC_ALL=UTF-8
./configure --prefix=%{_prefix}
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3374 |21cr|monodevelop-5.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define internal 0
%define gtksharp 2.12.21
%define monodoc  1.0
%define pkgconfigdir %{_datadir}/pkgconfig

Summary:	Full-featured IDE for mono and Gtk#
Name:		monodevelop
Version:	5.0.1
Release:	10
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.monodevelop.com/
Source0:	http://download.mono-project.com/sources/monodevelop/%{name}-%{version}-%{internal}.tar.bz2
Patch0:		monodevelop-5.0.1-pkgconfig.patch
Patch1:		remove-cairo-binding-redirect.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	rsync
BuildRequires:	pkgconfig(gconf-sharp-2.0)
BuildRequires:	pkgconfig(glade-sharp-2.0)
BuildRequires:	pkgconfig(glib-sharp-2.0)
BuildRequires:	pkgconfig(gnome-sharp-2.0)
BuildRequires:	pkgconfig(gnome-vfs-sharp-2.0)
BuildRequires:	pkgconfig(gtk-sharp-2.0)
BuildRequires:	pkgconfig(mono)
BuildRequires:	pkgconfig(mono-addins)
BuildRequires:	pkgconfig(mono-addins-gui)
BuildRequires:	pkgconfig(mono-addins-setup)
BuildRequires:	pkgconfig(mono-nunit)
BuildRequires:	pkgconfig(monodoc)
BuildRequires:	pkgconfig(wcf)
Requires:	git
#Requires:	gtksourceview-sharp >= %gtksourceview
Requires:	glade-sharp2 >= %{gtksharp}
Requires:	gnome-sharp2 >= %{gtksharp}
Requires:	monodoc >= %{monodoc}
Requires:	mono-basic
#Requires:	mono-tools
Requires:	shared-mime-info
Requires:	subversion
Requires:	xsp
Requires:	xterm
Requires:	pkgconfig(mono)
BuildArch:	noarch

%description
This is MonoDevelop which is intended to be a full-featured
integrated development environment (IDE) for mono and Gtk#.
It was originally a port of SharpDevelop 0.98.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_bindir}/mdtool
%{_bindir}/monodevelop
%{_prefix}/lib/monodevelop/bin
%{_prefix}/lib/monodevelop/data
%{_prefix}/lib/monodevelop/AddIns
%{_mandir}/man1/mdtool.1*
%{_mandir}/man1/monodevelop.1*
%{_datadir}/applications/monodevelop.desktop
%{_datadir}/mime/packages/monodevelop.xml
%{_datadir}/icons/hicolor/*/apps/monodevelop.*
%{pkgconfigdir}/monodevelop.pc
%{pkgconfigdir}/monodevelop-core-addins.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

#Fixes for Mono 4
sed -i "s#gmcs#mcs#g; s#dmcs#mcs#g" configure
sed -i "s#gmcs#mcs#g; s#dmcs#mcs#g" configure.in
sed -i "s#mono-nunit#nunit#g" configure.in
find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \;
find . -name "*.csproj" -print -exec sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g' {} \;

%build
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_prefix}/lib \
	--enable-subversion \
	--enable-git \
	--enable-monoextensions \
	--disable-update-mimedb \
	--disable-update-desktopdb

make

%install
mkdir -p %{buildroot}/`monodoc --get-sourcesdir`
%makeinstall_std pkgconfigdir=%{pkgconfigdir} packagedir=%{buildroot}%{_prefix}/lib/monodevelop/AddIns/AspNetEdit MOZILLA_HOME=%{buildroot}%{_prefix}/lib/firefox-%{mozver}/

desktop-file-install --dir %{buildroot}%{_datadir}/applications \
  %{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3375 |21cr|monodevelop-debugger-gdb-5.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define internal 0

Summary:	Monodevelop GDB Addin
Name:		monodevelop-debugger-gdb
Version:	5.0.1
Release:	4
License:	MIT
Group:		Development/Other
Url:		http://www.go-mono.com
Source0:	http://download.mono-project.com/sources/monodevelop-debugger-gdb/%{name}-%{version}-%{internal}.tar.bz2
BuildRequires:	monodevelop >= %{version}
BuildRequires:	pkgconfig(mono)
Requires:	gdb
BuildArch:	noarch

%description
Monodevelop Addin to integrate the GNU debugger.

%files
%{_prefix}/lib/monodevelop/AddIns/MonoDevelop.Debugger/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./configure \
	--prefix=%{_prefix}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3376 |21cr|monosim-1.5.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Manage your SIM Card contacts
Name:		monosim
Version:	1.5.2
Release:	9
License:	GPLv2+
Group:		Office
Url:		http://www.integrazioneweb.com/monosim
Source0:	http://www.integrazioneweb.com/repository/sources/%{name}-%{version}.tar.gz
Patch0:		monosim-1.5.2-fix-desktop-file.patch
Patch1:		monosim-1.5.2-mcs.patch
BuildRequires:	glade-sharp2 >= 2.8.3
BuildRequires:	mono >= 1.2.3
Requires:	gtk-sharp2 >= 2.8.3
Requires:	mono >= 1.2.3
Requires:	pcsc-lite >= 1.0.0
# libpcsclite-devel required because contain /usr/lib/libpcsclite.so
# not contained in to libpcsclite1
Requires:	pkgconfig(libpcsclite)

%description
is a simple application that can be used to read, write, update,
delete and backup your sim card contacts. It open and save also
some format files to manage your contacts also in a text files.
To connect monosim to your smartcard you need use a standard PCSC
smartcard reader as towitoko, acs, athena, blutronics, etc.

%files
%doc monosim/copying.gpl
%{_libdir}/%{name}/
%{_bindir}/monosim
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3377 |21cr|monosim-gtk-2.0.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	GTK user interface to manage sim card contacts
Name:		monosim-gtk
Version:	2.0.0.0
Release:	5
License:	GPLv2+
Group:		Office
Url:		http://monosim.integrazioneweb.com/
Source0:	http://monosim.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		monosim-gtk-2.0.0.0-mcs.patch
BuildRequires:	glade-sharp2
BuildRequires:	comex-base-devel >= 0.1.8.5
BuildRequires:	gtk-sharp2-devel
BuildRequires:	log4net-devel
BuildRequires:	pkgconfig(mono)
Requires:	comex-base >= 0.1.8.5
Requires:	glade-sharp2
Requires:	glib-sharp2
Requires:	gtk-sharp2
Requires:	log4net
Requires:	mono
BuildArch:	noarch

%description
Is GTK user interface of a simple application that can be used
to manage sim card contacts using PC/SC standard readers or
smartmouse phoenix serial reader.

%files
%doc copying.gpl monosim-gtk/readme
%{_bindir}/%{name}
%{_prefix}/lib/%{name}/
%{_datadir}/%{name}/Languages/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--libdir=%{_prefix}/lib
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3378 |21cr|mono-zeroconf-0.9.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cross platform Zero Configuration Networking library 
Name:		mono-zeroconf
Version:	0.9.0
Release:	14
License:	BSD
Group:		System/Libraries
Url:		http://mono-project.com/Mono_Zeroconf
Source0:	http://download.banshee-project.org/mono-zeroconf/%{name}-%{version}.zip
BuildRequires:	avahi-sharp
BuildRequires:	monodoc
BuildRequires:	pkgconfig(mono)
BuildArch:	noarch

%description
Mono.Zeroconf is a cross platform Zero Configuration Networking library for
Mono and .NET. It provides a unified API for performing the most common
zeroconf operations on a variety of platforms and subsystems: all the
operating systems supported by Mono and both the Avahi and
Bonjour/mDNSResponder transports.

This package was built with support vor Avahi only.

%files
%doc README COPYING
%{_bindir}/mzclient
%{_prefix}/lib/%{name}
%{_prefix}/lib/mono/gac/Mono.Zeroconf
%{_prefix}/lib/mono/%{name}

#----------------------------------------------------------------------------

%package 1.0
Summary:	Cross platform Zero Configuration Networking library
Group:		Development/Other
Conflicts:	%{name} < 0.9.0-5
Requires:	%{name} = %{EVRD}

%description 1.0
Mono.Zeroconf is a cross platform Zero Configuration Networking library for
Mono and .NET. It provides a unified API for performing the most common
zeroconf operations on a variety of platforms and subsystems: all the
operating systems supported by Mono and both the Avahi and
Bonjour/mDNSResponder transports.

This package was built with support vor Avahi only.

This package contains a compatibility API for older applications.

%files 1.0
%{_prefix}/lib/mono/gac/policy.1.0.Mono.Zeroconf

#----------------------------------------------------------------------------

%package 3.0
Summary:	Cross platform Zero Configuration Networking library
Group:		Development/Other
Conflicts:	%{name} < 0.9.0-5
Requires:	%{name} = %{EVRD}

%description 3.0
Mono.Zeroconf is a cross platform Zero Configuration Networking library for
Mono and .NET. It provides a unified API for performing the most common
zeroconf operations on a variety of platforms and subsystems: all the
operating systems supported by Mono and both the Avahi and
Bonjour/mDNSResponder transports.

This package was built with support vor Avahi only.

This package contains a compatibility API for older applications.

%files 3.0
%{_prefix}/lib/mono/gac/policy.3.0.Mono.Zeroconf

#----------------------------------------------------------------------------

%package 4.0
Summary:	Cross platform Zero Configuration Networking library 
Group:		Development/Other
Conflicts:	%{name} < 0.9.0-5
Requires:	%{name} = %{EVRD}

%description 4.0
Mono.Zeroconf is a cross platform Zero Configuration Networking library for
Mono and .NET. It provides a unified API for performing the most common
zeroconf operations on a variety of platforms and subsystems: all the
operating systems supported by Mono and both the Avahi and
Bonjour/mDNSResponder transports.

This package was built with support vor Avahi only.

This package contains a compatibility API for older applications.

%files 4.0
%{_prefix}/lib/mono/gac/policy.4.0.Mono.Zeroconf

#----------------------------------------------------------------------------

%package 4.5
Summary:	Cross platform Zero Configuration Networking library
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description 4.5
Mono.Zeroconf is a cross platform Zero Configuration Networking library for
Mono and .NET. It provides a unified API for performing the most common
zeroconf operations on a variety of platforms and subsystems: all the
operating systems supported by Mono and both the Avahi and
Bonjour/mDNSResponder transports.

This package was built with support vor Avahi only.

This package contains a compatibility API for older applications.

%files 4.5
%{_prefix}/lib/mono/gac/policy.4.5.Mono.Zeroconf

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Mono.Zeroconf is a cross platform Zero Configuration Networking library for
Mono and .NET. It provides a unified API for performing the most common
zeroconf operations on a variety of platforms and subsystems: all the
operating systems supported by Mono and both the Avahi and
Bonjour/mDNSResponder transports.

This package was built with support vor Avahi only.

%files devel
%{_datadir}/pkgconfig/mono-zeroconf.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Development documentation for %{name}
Group:		Development/Other
Requires(post,postun):	mono-tools

%description doc
This package contains the API documentation for %{name} in
Monodoc format.

%files doc
%{_prefix}/lib/monodoc/sources/*

%post doc
%{_bindir}/monodoc --make-index > /dev/null

%postun doc
if [ "$1" = "0" -a -x %{_bindir}/monodoc ]; then %{_bindir}/monodoc --make-index > /dev/null
fi

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i "s#gmcs#mcs#g" configure
sed -i "s#2.0#4.5#g" configure

%build
./configure \
	--prefix=%{_prefix} \
	--disable-mdnsresponder
make

%install
%make_install pkgconfigdir=%{_datadir}/pkgconfig


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3379 |21cr|monster-masher-1.8.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clean caves by mashing monsters with stone
Name:		monster-masher
Version:	1.8.1
Release:	9
License:	GPLv2+
Group:		Games/Arcade
URL:		http://www.cs.auc.dk/~olau/monster-masher/
Source:		http://www.cs.auc.dk/~olau/monster-masher/source/%{name}-%{version}.tar.bz2
Patch0:		monster-masher-1.8-desktopentry.patch
# add handler to close the about dialog (bug #43019)
Patch1:		monster-masher-1.8-about-dialog.patch
Patch2:		monster-masher-1.8.1-glib.patch
Patch3:		monster-masher-1.8.1-crash.patch
BuildRequires:	GConf2
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	pkgconfig(esound)
BuildRequires:	pkgconfig(gconfmm-2.6)
BuildRequires:	pkgconfig(libgnomeuimm-2.6)

%description
Monster Masher is an action game for the GNOME desktop environment.
The basic idea is that you, as levitation worker gnome, has to clean
the caves for monsters that want to roll over you. You do the cleaning
by mashing the monsters with stone blocks.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%{_gamesbindir}/*
%{_datadir}/applications/monster-masher.desktop
%{_datadir}/pixmaps/*
%{_datadir}/%{name}
%{_sysconfdir}/gconf/schemas/*.schemas
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--bindir=%{_gamesbindir}
%make LIBS=-lesd

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std

# icons
mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
install -D -m 0644      monster-masher.png %{buildroot}%{_liconsdir}/monster-masher.png
convert -geometry 32x32 monster-masher.png %{buildroot}%{_iconsdir}/monster-masher.png
convert -geometry 16x16 monster-masher.png %{buildroot}%{_miconsdir}/monster-masher.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3380 |21cr|monsterz-0.7.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		monsterz
Version:	0.7.1
Release:	11
# in reality, this is the DWYF license.
License:	Freeware
Group:		Games/Puzzles
Summary:	A little addictive puzzle game
Source:		http://sam.zoy.org/projects/monsterz/%{name}-%{version}.zip
#gw Debian man page
Source1:	monsterz.1
Patch:		monsterz-fix-crash-x86_64.patch
#gw from Debian, fix crash on start (bug #49431)
Patch1:		020_fix_blit_crash.diff
Url:		http://sam.zoy.org/projects/monsterz
Requires:	pygame
BuildArch:	noarch
BuildRequires:	imagemagick

%description
Monsterz is a little puzzle game, similar to the famous Bejeweled or Zookeeper.

The goal of the game is to create rows of similar monsters, either horizontally
or vertically. The only allowed move is the swap of two adjacent monsters, on
the condition that it creates a row of three or more. When alignments are
cleared, pieces fall from the top of the screen to fill the board again. Chain
reactions earn you even more points.

This game is mostly about luck, but it remains highly addictive. You have been
warned.

%prep
%setup -q
%patch -p0
%patch1 -p1

%build

%install
mkdir -p %{buildroot}/%{_gamesdatadir}/%{name}
cp -R monsterz.py graphics/ sound/ %{buildroot}/%{_gamesdatadir}/%{name}

mkdir -p %{buildroot}/%{_gamesbindir}/

cat > %{buildroot}/%{_gamesbindir}/%{name} <<EOF
#!/bin/bash
exec python %{_gamesdatadir}/%{name}/monsterz.py
EOF

chmod 755 %{buildroot}/%{_gamesbindir}/%{name}


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Monsterz
Comment=Addictive puzzle game
Comment[ru]=Затягивающая игра-головоломка
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;BlocksGame;
EOF

mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}/
convert -geometry 16x16 graphics/icon.png %{buildroot}%{_miconsdir}/%{name}.png
convert -geometry 32x32 graphics/icon.png %{buildroot}%{_iconsdir}/%{name}.png
convert -geometry 48x48 graphics/icon.png %{buildroot}%{_liconsdir}/%{name}.png

install -D %{SOURCE1} %{buildroot}%{_mandir}/man6/%{name}.6

%clean

%files
%doc AUTHORS COPYING INSTALL README TODO
%{_gamesdatadir}/%{name}/
%{_gamesbindir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_datadir}/applications/mandriva*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3381 |21cr|moodle-3.11.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine	__find_provides
%global __requires_exclude_from '\\.php$'
%define _build_pkgcheck_set %{nil}

Summary:	A course management system for distance education
Name:		moodle
Version:	3.11.4
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		https://moodle.org/
Source0:	https://download.moodle.org/stable311/%{name}-%{version}.tgz

Source2:	https://download.moodle.org/langpack/3.11/af.zip
Source3:	https://download.moodle.org/langpack/3.11/sq.zip
Source4:	https://download.moodle.org/langpack/3.11/ar.zip
Source5:	https://download.moodle.org/langpack/3.11/eu.zip
Source6:	https://download.moodle.org/langpack/3.11/be.zip
Source7:	https://download.moodle.org/langpack/3.11/bs.zip
Source8:	https://download.moodle.org/langpack/3.11/bg.zip
Source9:	https://download.moodle.org/langpack/3.11/ca.zip
Source10:	https://download.moodle.org/langpack/3.11/hr.zip
Source11:	https://download.moodle.org/langpack/3.11/zh_cn.zip
Source12:	https://download.moodle.org/langpack/3.11/zh_tw.zip
Source13:	https://download.moodle.org/langpack/3.11/cs.zip
Source14:	https://download.moodle.org/langpack/3.11/da.zip
Source15:	https://download.moodle.org/langpack/3.11/nl.zip
Source16:	https://download.moodle.org/langpack/3.11/en_us.zip
Source17:	https://download.moodle.org/langpack/3.11/et.zip
Source18:	https://download.moodle.org/langpack/3.11/fa.zip
Source19:	https://download.moodle.org/langpack/3.11/fil.zip
Source20:	https://download.moodle.org/langpack/3.11/fi.zip
Source21:	https://download.moodle.org/langpack/3.11/fr.zip
Source22:	https://download.moodle.org/langpack/3.11/fr_ca.zip
Source23:	https://download.moodle.org/langpack/3.11/ga.zip
Source24:	https://download.moodle.org/langpack/3.11/gl.zip
Source25:	https://download.moodle.org/langpack/3.11/ka.zip
Source26:	https://download.moodle.org/langpack/3.11/de.zip
Source27:	https://download.moodle.org/langpack/3.11/de_du.zip
Source28:	https://download.moodle.org/langpack/3.11/el.zip
Source29:	https://download.moodle.org/langpack/3.11/gu.zip
Source30:	https://download.moodle.org/langpack/3.11/he.zip
Source31:	https://download.moodle.org/langpack/3.11/hi.zip
Source32:	https://download.moodle.org/langpack/3.11/hu.zip
Source33:	https://download.moodle.org/langpack/3.11/is.zip
Source34:	https://download.moodle.org/langpack/3.11/id.zip
Source35:	https://download.moodle.org/langpack/3.11/it.zip
Source36:	https://download.moodle.org/langpack/3.11/ja.zip
Source37:	https://download.moodle.org/langpack/3.11/kn.zip
Source38:	https://download.moodle.org/langpack/3.11/km.zip
Source39:	https://download.moodle.org/langpack/3.11/ko.zip
Source40:	https://download.moodle.org/langpack/3.11/lt.zip
Source41:	https://download.moodle.org/langpack/3.11/lo.zip
Source42:	https://download.moodle.org/langpack/3.11/lv.zip
Source43:	https://download.moodle.org/langpack/3.11/ml.zip
Source44:	https://download.moodle.org/langpack/3.11/ms.zip
Source45:	https://download.moodle.org/langpack/3.11/mi_tn.zip
Source46:	https://download.moodle.org/langpack/3.11/mi_wwow.zip
Source47:	https://download.moodle.org/langpack/3.11/mn.zip
Source48:	https://download.moodle.org/langpack/3.11/no.zip
Source49:	https://download.moodle.org/langpack/3.11/no_gr.zip
Source50:	https://download.moodle.org/langpack/3.11/nn.zip
Source51:	https://download.moodle.org/langpack/3.11/pl.zip
Source52:	https://download.moodle.org/langpack/3.11/pt.zip
Source53:	https://download.moodle.org/langpack/3.11/pt_br.zip
Source54:	https://download.moodle.org/langpack/3.11/ro.zip
Source55:	https://download.moodle.org/langpack/3.11/ru.zip
Source56:	https://download.moodle.org/langpack/3.11/sm.zip
Source57:	https://download.moodle.org/langpack/3.11/si.zip
Source58:	https://download.moodle.org/langpack/3.11/sr_cr.zip
Source59:	https://download.moodle.org/langpack/3.11/sr_lt.zip
Source60:	https://download.moodle.org/langpack/3.11/sk.zip
Source61:	https://download.moodle.org/langpack/3.11/sl.zip
Source62:	https://download.moodle.org/langpack/3.11/so.zip
Source63:	https://download.moodle.org/langpack/3.11/es.zip
Source64:	https://download.moodle.org/langpack/3.11/sv.zip
Source65:	https://download.moodle.org/langpack/3.11/tl.zip
Source66:	https://download.moodle.org/langpack/3.11/ta.zip
Source67:	https://download.moodle.org/langpack/3.11/th.zip
Source68:	https://download.moodle.org/langpack/3.11/to.zip
Source69:	https://download.moodle.org/langpack/3.11/tr.zip
Source70:	https://download.moodle.org/langpack/3.11/uk.zip
Source71:	https://download.moodle.org/langpack/3.11/vi.zip
Source72:	https://download.moodle.org/langpack/3.11/dv.zip
Source73:	https://download.moodle.org/langpack/3.11/cy.zip
Source74:	https://download.moodle.org/langpack/3.11/mr.zip
Source75:	https://download.moodle.org/langpack/3.11/ur.zip
Source76:	https://download.moodle.org/langpack/3.11/ast.zip
Source77:	https://download.moodle.org/langpack/3.11/la.zip
Source78:	https://download.moodle.org/langpack/3.11/uz.zip
Source79:	https://download.moodle.org/langpack/3.11/kk.zip
Source80:	https://download.moodle.org/langpack/3.11/mk.zip
Source81:	https://download.moodle.org/langpack/3.11/hy.zip
Source82:	https://download.moodle.org/langpack/3.11/ta_lk.zip
Source83:	https://download.moodle.org/langpack/3.11/zu.zip
Source84:	https://download.moodle.org/langpack/3.11/bn.zip

Source100:	%{name}.rpmlintrc
Source101:	%{name}-config.php

Requires:	php-cli
Requires:	php-curl
Requires:	php-gd
Requires:	php-iconv
Requires:	php-intl
Requires:	php-ldap
Requires:	php-mbstring
Requires:	php-mysql
Requires:	php-mysqli
Requires:	php-openssl
Requires:	php-pgsql
Requires:	php-soap
Requires:	php-sockets
Requires:	php-tidy
Requires:	php-tokenizer
Requires:	php-xml
Requires:	php-xmlrpc
Requires:	php-zip
Requires:	php-zlib

# Local copies of the following removed from moodle's lib directory
Requires:	php-adodb
# we don't have php-markdown packaged
#Requires:	php-markdown
Requires:	php-pear
Requires:	php-pear-Auth_RADIUS
Requires:	php-pear-CAS
Requires:	php-pear-Crypt_CHAP
Requires:	php-pear-HTML_Common
Requires:	php-pear-HTML_QuickForm
Requires:	php-pear-HTML_QuickForm_DHTMLRulesTableless
Requires:	php-pear-Net_GeoIP
Requires:	php-pear-OLE
Requires:	php-pear-HTTP_WebDAV_Server
Requires:	php-pear-Spreadsheet_Excel_Writer
# Other needed packages
Requires:	imagemagick
Requires:	mimetex
Requires:	tetex-dvips
Requires:	tetex-latex
BuildArch:	noarch

%description
Moodle is a learning management system for producing Internet-based course Web
sites. It is written in PHP and is easy to install and use on Linux, Windows,
Mac OS X, SunOS, BSD, and Netware 6. It has been designed to support modern
pedagogies based on social constructionist theory, and includes activity
modules such as forums, chats, resources, journals, quizzes, surveys, choices,
workshops, glossaries, lessons, and assignments. It has been translated into
over 70 languages, with more on the way, and supports the popular SCORM
standard for content packaging. Moodle offers a free alternative to commercial
software such as WebCT or Blackboard, and is being used by a growing number of
universities, schools, and independent teachers for distance education or to
supplement face-to-face teaching.

%files
%doc COPYING.txt README.txt
%defattr(-,apache,apache,-)
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/%{name}
%{_var}/www/%{name}
%attr(2770,apache,apache) %dir %{_var}/moodledata
%config(noreplace) %{_webappconfdir}/%{name}.conf

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

# Magic by anssi for lang packs
pushd lang; %{expand:%(for i in {2..84}; do echo "unzip -q %%SOURCE$i"; done)}; popd

# Clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
	if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

# Fix dir and file perms
find . -type d -print0 | xargs --null chmod 755
find . -type f -print0 | xargs --null chmod 644

# Nuke bundled stuff
rm -rf lib/pear
rm -f filter/tex/mimetex.* filter/tex/README.mimetex

# nuke more stuff (from fedora)
rm -f config-dist.php install.php

# Get rid of lang files in subpackages for langs not supported by moodle
rm -f lib/phpmailer/language/phpmailer.lang-[bcdfhijnprst]*
rm -f lib/phpmailer/language/phpmailer.lang-es.php

# Drop precompiled flash
find . -type f -name '*.swf' -delete

# Remove some carriage returns
sed -i 's/\r//g' lib/*/*.txt

# Set some exec bits
chmod 755 filter/algebra/algebra2tex.pl
#find . -name \*.cgi -exec chmod 755 {} +
chmod 755 admin/process_email.php
chmod 755 admin/mailout-debugger.php
#chmod 755 mod/chat/chatd.php


%build
# Nothing to do


%install
install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_sysconfdir}/cron.d
install -d %{buildroot}/var/www/%{name}
install -d %{buildroot}/var/moodledata

cp -aRf * %{buildroot}/var/www/%{name}/

install -p -D -m 0644 %{SOURCE101} %{buildroot}%{_var}/www/%{name}/config.php

# Provide an apache config
cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf << EOF

Alias /%{name} /var/www/%{name}

<Directory /var/www/%{name}>
    Require all granted

    # On some PHP servers it may help if this file is copied
    # to the main moodle directory and renamed .htaccess
    #
    # As soon as you do this, check your web site.  Is it 
    # still working OK?  If you are getting a "configuration
    # error" then you may need to enable overrides by editing
    # the main httpd.conf for Apache and in the main server
    # or virtual server area, adding something like:
    #
    # <Directory /web/moodle>
    #     AllowOverride All 
    # </Directory>
    #

    ### Firstly, if you are using Apache 2, you need the following
    ### line to allow Apache to pass a PATH_INFO variable 
    ### correctly for URLs like http://server/file.php/arg1/arg2
    AcceptPathInfo on

    ### Secondly, you can define the default files in the Moodle
    ### directories as follows:

    DirectoryIndex index.php index.html index.htm

    ### Thirdly, set up some PHP variables that Moodle needs
    php_admin_value magic_quotes_gpc		1
    php_admin_value magic_quotes_runtime	0
    php_admin_value register_globals		0
    php_admin_value file_uploads		1
    php_admin_value short_open_tag		1
    php_admin_value session.auto_start		0
    php_admin_value session.bug_compat_warn	0

    php_admin_value safe_mode			0
    php_admin_value memory_limit		64M
    php_admin_value session.save_handler	files

    ### Fourthly, sometimes Apache limits the size of uploaded files
    ### (this is a separate limit to the one in PHP, see below).
    ### The setting here turns off this limitation
    LimitRequestBody 0

    ### These are optional - you may not want to override php.ini 
    ### To enable them, remove the leading hash (#)
    php_admin_value upload_max_filesize		2M
    php_admin_value post_max_size		2M
    php_admin_value session.gc_maxlifetime	7200

    ### You can change the following line to point to the 
    ### error/index.php file in your Moodle distribution.  
    ### It provides a form which emails you (the admin) 
    ### about 404 errors (URL not found).
    #ErrorDocument 404 http://example.org/moodle/error/index.php

    ### People have reported that these can help in some cases
    ### (unusual) when you see errors about undefined functions
    #php_admin_value auto_prepend_file		none
    #php_admin_value include_path		.

</Directory>

<Directory /var/www/%{name}/install>
    Require local
    ErrorDocument 403 "Access denied per %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf"
 </Directory>

<FilesMatch install.php>
    Require local
    ErrorDocument 403 "Access denied per %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf"
</FilesMatch>

EOF

# Provide a cron job
cat > %{buildroot}%{_sysconfdir}/cron.d/%{name} << EOF
* * * * * apache /usr/bin/php -d memory_limit=512M %{_var}/www/%{name}/admin/cli/cron.php > /dev/null
EOF

# Use some system php libs
# also markdown, which we don't have packaged
# also smarty, which does not appear to be shipped by moodle anymore
for phplib in adodb; do
	rm -rf %{buildroot}%{_var}/www/%{name}/lib/$phplib
	ln -s %{_datadir}/php/$phplib %{buildroot}%{_var}/www/moodle/lib/$phplib
done
# also bundled ttf file
rm -f %{buildroot}%{_var}/www/moodle/lib/default.ttf
ln -s %{_datadir}/fonts/gnu-free/FreeSans.ttf %{buildroot}%{_var}/www/moodle/lib/default.ttf
# also php-pear-CAS
rm -rf %{buildroot}%{_var}/www/moodle/auth/cas/CAS
ln -s %{_datadir}/pear %{buildroot}%{_var}/www/moodle/auth/cas/CAS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3382 |21cr|moon-buggy-1.0.51-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drive and jump with some kind of car across the moon
Name:		moon-buggy
Version:	1.0.51
Release:	7
License:	GPLv2+
Group:		Games/Arcade
URL:		http://seehuhn.de/pages/%{name}
Source0:	http://seehuhn.de/media/programs/%{name}-%{version}.tar.gz
Source1:	http://seehuhn.de/media/programs/%{name}-sound-%{version}.tar.gz
Source2:	%{name}.desktop
Source3:	%{name}-sound.desktop
Patch0:		moon-buggy-1.0.51-pause.patch
Patch1:		moon-buggy-1.0.51-sound.patch
BuildRequires:	desktop-file-utils
BuildRequires:	texinfo
BuildRequires:	pkgconfig(esound)
BuildRequires:	pkgconfig(ncurses)

%description
Moon-buggy is a simple character graphics game where you drive some kind
of car across the moon's surface. Unfortunately there are dangerous craters
there. Fortunately your car can jump over them!

The game has some resemblance of the classic arcade game moon-patrol which
was released in 1982. A clone of this game was relased for the Commodore
C64 in 1983. The present, ASCII art version of moon-buggy was written many
years later by Jochen Voss.

%files
%doc ANNOUNCE AUTHORS ChangeLog COPYING README THANKS README.sound
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-sound.desktop
%attr(2755,root,games) %{_bindir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_infodir}/%{name}.info.*
%dir %attr(0775,root,games) %{_localstatedir}/games/%{name}
%config(noreplace) %attr(664,root,games) %{_localstatedir}/games/%{name}/mbscore

#----------------------------------------------------------------------------

%prep
%setup -q -a 1
%patch0 -p1 -b .pause
%patch1 -p1 -b .sound
mv -f %{name}-%{version}/* .

%build
autoreconf -fi
%configure --sharedstatedir=%{_localstatedir}/games
%make

%install
%makeinstall_std

# Create zero-sized highscore file
touch %{buildroot}%{_localstatedir}/games/%{name}/mbscore

# Install working *.desktop files and an icon
desktop-file-install --vendor "" --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
desktop-file-install --vendor "" --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}
install -D -p -m 644 %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

# Some file cleanups
rm -f %{buildroot}%{_infodir}/dir

# Convert everything to UTF-8
iconv -f iso-8859-1 -t utf-8 -o ChangeLog.utf8 ChangeLog
sed -i 's|\r$||g' ChangeLog.utf8
touch -c -r ChangeLog ChangeLog.utf8
mv -f ChangeLog.utf8 ChangeLog

iconv -f iso-8859-1 -t utf-8 -o TODO.utf8 TODO
sed -i 's|\r$||g' TODO.utf8
touch -c -r TODO TODO.utf8
mv -f TODO.utf8 TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3383 |21cr|mopac7-1.15-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	Semi-empirical quantum mechanics suite
Name:		mopac7
Version:	1.15
Release:	10
License:	Public Domain
Group:		Sciences/Chemistry
Url:		http://www.uku.fi/~thassine/projects/ghemical
Source0:	http://www.uku.fi/~thassine/projects/download/current/%{name}-%{version}.tar.gz
BuildRequires:	f2c
BuildRequires:	gcc-gfortran
BuildRequires:	libtool

%description
MOPAC7 is a semi-empirical quantum-mechanics code written by James J. P.
Stewart and co-workers. The purpose of this project is to maintain MOPAC7 as
a stand-alone program as well as a library that provides the functionality
of MOPAC7 to other programs.

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%doc tests
%{_bindir}/%{name}
%{_bindir}/run_mopac7

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/libmopac7.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{libname}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libmopac7.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall
install -m755 fortran/%{name} -D %{buildroot}%{_bindir}/%{name}
sed "s/\.\/src/\/usr\/bin/" run_mopac7 > %{buildroot}%{_bindir}/run_mopac7
chmod 755 %{buildroot}%{_bindir}/run_mopac7

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3384 |21cr|mopidy-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Mopidy

Name:		mopidy
Version:	3.3.0
Release:	1
Group:		Sound
Summary:	Music server with MPD and Spotify support

License:	ASL 2.0
URL:		http://www.mopidy.com/
Source0:	https://pypi.io/packages/source/M/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:  python3egg(setuptools)

Requires:	gstreamer1.0-python
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-ugly

 
%description
Mopidy is an extensible music server written in Python.
Mopidy plays music from local disk, Spotify, SoundCloud, Google Play Music, and
more. You edit the playlist from any phone, tablet, or computer using a range
of MPD and web clients.
Vanilla Mopidy only plays music from your local disk and radio streams.
Through extensions, Mopidy can play music from cloud services like Spotify, 
SoundCloud, and Google Play Music. 
With Mopidy's extension support, backends for new music sources can be easily
added.


%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


%files
%doc
%{_bindir}/mopidy
%{py3_puresitedir}/mopidy/
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3385 |21cr|mopidy-musicbox-webclient-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Mopidy-MusicBox-Webclient 

Name:           mopidy-musicbox-webclient
Version:        3.1.0
Release:        1
Group:          Sound
Summary:        Responsive webclient for Mopidy, a music server

License:        GPLv3
URL:            http://www.mopidy.com/
Source0:        https://pypi.python.org/packages/source/M/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

 
%description
With Mopidy MusicBox Webclient, you can play your music on your computer  
and remotely control it using your computer, tablet or phone.

This is a responsive webclient especially written for Mopidy, a music server. 
Responsive, so it works on desktop and mobile browsers. 
You can browse, search and play albums, artists, playlists, 
and it has cover art from Last.fm.


%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


%files
%doc
%{py3_puresitedir}/mopidy_musicbox_webclient/ 
%{py3_puresitedir}/Mopidy_MusicBox_Webclient-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3386 |21cr|mopidy-podcast-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Mopidy-Podcast 

Name:           mopidy-podcast
Version:	3.0.1
Release:	1
Group:          Sound
Summary:        Mopidy extension for searching and browsing podcasts

License:        ASL 2.0
URL:            https://github.com/tkem/mopidy-podcast
Source0:        https://pypi.python.org/packages/source/M/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

 
%description
Mopidy-Podcast is a Mopidy extension for searching and browsing podcasts.


%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


%files
%doc
%{py3_puresitedir}/mopidy_podcast/ 
%{py3_puresitedir}/Mopidy_Podcast-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3387 |21cr|mopidy-tunein-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Mopidy-TuneIn

Name:		mopidy-tunein
Version:	1.1.0
Release:	1
Group:		Sound
Summary:	Mopidy extension for playing music from TuneIn

License:	ASL 2.0
URL:		https://github.com/kingosticks/mopidy-tunein
Source0:	https://pypi.python.org/packages/source/M/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
 
BuildRequires:	python3egg(setuptools)

%description
Mopidy extension for playing music from TuneIn. 
Listen to the world’s radio with 70,000 stations of music, sports and news 
streaming from every continent.

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build


%install
%py3_install


%files
%doc README.rst LICENSE
%{py3_puresitedir}/mopidy_tunein/
%{py3_puresitedir}/Mopidy_TuneIn-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3388 |21cr|moserial-3.0.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)

Summary:	Serial terminal for the Gnome desktop
Name:		moserial
Version:	3.0.21
Release:	1
License:	GPLv3+
Group:		Communications
URL:		http://live.gnome.org/moserial/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	rarian
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	hicolor-icon-theme
Requires:	yelp

%description
Moserial is a clean, friendly gtk-based serial terminal for the Gnome
desktop. It is written in Vala for extra goodness.

%files -f %{name}.lang
%doc AUTHORS ChangeLog ChangeLog.pre-git NEWS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
%{_mandir}/man1/%{name}*
%{_datadir}/metainfo/moserial.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name} --with-gnome


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3389 |21cr|mosh-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Remote terminal application
Name:		mosh
Version:	1.4.0
Release:	1
License:	GPLv3+
Group:		Networking/Remote access
Url:		https://mosh.org
Source0:	https://github.com/mobile-shell/mosh/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	protobuf-compiler
BuildRequires:	libutempter-devel
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(zlib)
Requires:	openssh
Requires:	perl(IO::Pty::Easy)

%description
Mosh (mobile shell)

%files
%doc README.md COPYING ChangeLog
%{_bindir}/mosh
%{_bindir}/mosh-client
%{_bindir}/mosh-server
%{_mandir}/man1/mosh.1*
%{_mandir}/man1/mosh-client.1*
%{_mandir}/man1/mosh-server.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="-g -O2" CXXFLAGS="-g -O2"
%configure \
	--enable-compile-warnings=error
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3390 |21cr|mosplan-1.0-7.gita4232f.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit a4232fd9a0b6b541c1221f796e8296e8169c93a7
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8):	Оффлайн планировщик проектов
Summary:	Offline task tracker
Name:		mosplan
Version:	1.0
Release:	7.git%{commit_short}.1
License:	GPLv3
Group:		Databases
Url:		https://hub.mos.ru/mos/src/mosplan
Source0:	https://hub.mos.ru/mos/src/mosplan/-/archive/%{commit}/%{name}-%{commit}.tar.gz
Requires:	python3-anytree
Requires:	python3-pandas
Requires:	python3-plotly
Requires:	python3-qt5-core
Requires:	python3-qt5-gui
Requires:	python3-qt5-network
Requires:	python3-qt5-printsupport
Requires:	python3-qt5-webchannel
Requires:	python3-qt5-webenginewidgets
Requires:	python3-qt5-widgets
Requires:	py-ini-config
BuildArch:	noarch

%description -l ru_RU.UTF-8
Оффлайн планировщик проектов.
Разрабатывается МОС как замена Microsoft Project.

%description
Offline task tracker.
Is developed as a replacement of Microsoft Project by MOS.

%files
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_bindir}/%{name}
%{python3_sitelib}/%{name}_modules

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{python3_sitelib}/%{name}_modules
install -m644 %{name}_modules/* %{buildroot}%{python3_sitelib}/%{name}_modules

mkdir -p %{buildroot}%{_bindir}
install -m755 main.py %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/mime/packages
install -m644 %{name}.xml %{buildroot}%{_datadir}/mime/packages

mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3391 |21cr|most-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A powerful paging program
Name:		most
Version:	5.2.0
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://www.jedsoft.org/releases/most/
Source0:	http://www.jedsoft.org/releases/most/%{name}-%{version}.tar.gz
# Do not strip binaries
Patch0:		most-5.1.0-no-strip.patch
BuildRequires:	ncurses
BuildRequires:	pkgconfig(slang)

%description
most is a paging program that displays the contents of a file on a
terminal one windowful at a time. A status line indicating the file name,
current line number, and percentage of the file already displayed is also
shown.

%files
%doc COPYRIGHT COPYING README
%{_bindir}/most
%{_datadir}/doc/most/*.rc
%{_datadir}/doc/most/*.txt
%{_mandir}/man1/most.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--with-slanglib=%{_libdir} \
	--with-slanginc=%{_includedir}/slang

# Don't use parallel build
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3392 |21cr|mos-user-dbus-1.0-1.git4036e1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 4036e1ee12f8302a0528f56751c4ee36346a60e5
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8):	MOS D-Bus служба для пользователя
Summary:	MOS User D-Bus Service
Name:		mos-user-dbus
Version:	1.0
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		System/Configuration/Other
Url:		https://hub.mos.ru/mos/src/mos-user-dbus
Vendor:		MOS
Source0:	https://hub.mos.ru/mos/src/mos-user-dbus/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildRequires:	cmake
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5DBus)
Recommends:	/usr/bin/qdbus

%description
This package provides a D-Bus interface that allows the administrator (root) to run commands as specific user who is running the service.

Example: `qdbus --system org.mos.user / run "ls"`

For detach run (in background): `qdbus --system org.mos.user / runDetach "konsole"`

The command is executed from a user with root rights.


%description -l ru_RU.UTF-8
Этот пакет предоставляет интерфейс D-Bus, который позволяет администратору (root) отправлять команды
для запуска от имени определенного пользователя, у которого запущена служба.

Пример: `qdbus --system org.mos.user / run "ls"`

Для запуска команды в фоне: `qdbus --system org.mos.user / runDetach "konsole"`

Команда выполняется от пользователя с правами root.

%files
%{_bindir}/mos-user-dbus-service
%{_datadir}/dbus-1/system.d/org.mos.user.conf
%{_prefix}/lib/systemd/user/mos-user-dbus.service

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%cmake
%make

%install
%make_install -C build

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d
mkdir -p %{buildroot}%{_prefix}/lib/systemd/user

install -m644 dbus-rules/org.mos.user.conf %{buildroot}%{_datadir}/dbus-1/system.d
install -m644 systemd-service/mos-user-dbus.service %{buildroot}%{_prefix}/lib/systemd/user

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3393 |21cr|mos-vkm-1.1-1.git77060c.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 77060c1d722a83eb1fe166f5a7a0abf802bf29c3
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8): Свободный аналог приложения VK Messenger для Linux
Summary:	A free analogue of the VK Messenger application for Linux
Name:		mos-vkm
Version:	1.1
Release:	1.git%{commit_short}.4
License:	GPLv3
Group:		Networking/Instant messaging
Url:		https://hub.mos.ru/mos/src/mos-vkm
Vendor:		MOS
Source0:	https://hub.mos.ru/mos/src/mos-vkm/-/archive/%{commit}/%{name}-%{commit}.tar.gz

# qtwebengine does not exist on i686
ExcludeArch: %{ix86}

BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: qmake-qt6
BuildRequires: qt6-linguist-tools
BuildRequires: pkgconfig(Qt6Core)
BuildRequires: pkgconfig(Qt6Gui)
BuildRequires: pkgconfig(Qt6WebEngineCore)
BuildRequires: pkgconfig(Qt6Widgets)
BuildRequires: pkgconfig(Qt6WebEngineWidgets)

%description
A free analogue of the VK Messenger application for Linux,
designed to manage the web version of VK Messenger
in a separate application. The functionality allows you
to minimize the application to tray and display notifications.

%description -l ru_RU.UTF-8
Свободный аналог приложения VK Messenger для Linux,
предназначенный для управления web-версией VK Messenger
в отдельном приложении. Функционал позволяет сворачивать
приложение в трей и отображать уведомления.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#------------------------------------------------------------------

%prep
%setup -n %{name}-%{commit}

%build
%qmake_qt6 mos-vkm.pro
%make_build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}/applications
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps

install -p -m755 %{name} %{buildroot}%{_bindir}/
install -p -m755 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -p -m644 resources/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3394 |21cr|motion-4.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A highly customizable software motion detector
Name:		motion
Version:	4.4.0
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://github.com/Motion-Project/motion
Source0:	https://github.com/Motion-Project/motion/archive/%{name}-release-%{version}.tar.gz
Source1:	%{name}-tmpfiles.conf
Source100:	%{name}.rpmlintrc
BuildRequires:	linux-userspace-headers
BuildRequires:	ffmpeg-devel
BuildRequires:	gettext-devel
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libmicrohttpd)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libwebpmux)
BuildRequires:	pkgconfig(mariadb)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
Requires(post):		systemd

%description
This is a software motion detector. It grabs images from video4linux devices
and/or from web cams (such as the axis network cameras). It is the perfect
tool for keeping an eye on your property keeping only those images that are
interesting.

%files -f %{name}.lang
%doc doc/CHANGELOG doc/CREDITS LICENSE README.md
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/camera*.conf
%dir %{_sysconfdir}/%{name}/conf.d
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_tmpfilesdir}/%{name}.conf

%post
%tmpfiles_create %{name}.conf

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{version}


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

# Use standard names
mv %{buildroot}%{_sysconfdir}/%{name}/%{name}-dist.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
mv %{buildroot}%{_sysconfdir}/%{name}/camera1-dist.conf %{buildroot}%{_sysconfdir}/%{name}/camera1.conf
mv %{buildroot}%{_sysconfdir}/%{name}/camera2-dist.conf %{buildroot}%{_sysconfdir}/%{name}/camera2.conf
mv %{buildroot}%{_sysconfdir}/%{name}/camera3-dist.conf %{buildroot}%{_sysconfdir}/%{name}/camera3.conf
mv %{buildroot}%{_sysconfdir}/%{name}/camera4-dist.conf %{buildroot}%{_sysconfdir}/%{name}/camera4.conf

rm -rf %{buildroot}%{_datadir}/doc/

# Systemd compat
install -D -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# Create dir listed in default config file
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/conf.d

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3395 |21cr|mount-gtk-1.4.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Front end for udisks
Name:		mount-gtk
Version:	1.4.5.1
Release:	1
License:	GPLv2
Group:		Graphical desktop/GNOME
URL:		http://mount-gtk.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
Patch0:		mount-gtk-1.4.0-GCC-requires-compile-flag.patch
BuildRequires:	autoconf-archive
BuildRequires:	pkgconfig(c++-gtk-utils-3-2.2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(udisks2)
Requires:	udisks2

%description
The program is a front end to udisks and mount. It provides a means of 
mounting devices with udisks and mount through an easy to use graphical 
interface.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README BUGS
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------

%prep
%setup -q
%apply_patches
autoreconf -fi

%build
%configure
%make

%install
%makeinstall_std
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3396 |21cr|mousepad-0.5.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define _disable_rebuild_configure 1
%define apps_name org.xfce.mousepad

%define url_ver %(echo %{version} | cut -d. -f 1,2)

Summary:	A simple text editor for Xfce
Name:		mousepad
Version:	0.5.10
Release:	1
License:	GPLv2+
Group:		Editors
URL:		http://www.xfce.org
Source:		https://archive.xfce.org/src/apps/mousepad/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	imagemagick
BuildRequires:	perl(XML::Parser)
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtksourceview-3.0)
BuildRequires:	intltool
Requires(post):	desktop-file-utils
Requires(postun):	desktop-file-utils

%description
Mousepad is a text editor for Xfce based on Leafpad. The initial reason for
Mousepad was to provide printing support, which would have been difficult
for Leafpad for various reasons.

Although some features are under development, currently Mousepad has the
following features:

    * Complete support for UTF-8 text
    * Cut/Copy/Paste and Select All text
    * Search and Replace
    * Font selecton
    * Word Wrap
    * Character coding selection
    * Auto character coding detection (UTF-8 and some codesets)
    * Manual codeset setting
    * Infinite Undo/Redo by word
    * Auto Indent
    * Multi-line Indent
    * Display line numbers
    * Drag and Drop
    * Printing

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README*
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/org.xfce.mousepad.gschema.xml
%{_datadir}/polkit-1/actions/org.xfce.mousepad.policy
%{_iconsdir}/hicolor/*/apps/%{apps_name}.{png,svg}
%{_metainfodir}/*.appdata.xml

#-----------------------------------------------------------
%define major 0
%define libname %mklibname %{name} %{major}

%package -n %{libname}
Summary:	mousepad shared library
Group:		System/Libraries

%description -n %{libname}
mousepad shared library.

%files -n %{libname}
%{_libdir}/libmousepad.so
%{_libdir}/libmousepad.so.%{major}*

#-----------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-gtk3 \
	--enable-dbus
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3397 |21cr|mousetweaks-3.32.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Help motorically impaired users to use the mouse
Name:		mousetweaks
Version:	3.32.0
Release:	4
License:	GPLv3+
Group:		Accessibility
Url:		http://live.gnome.org/Mousetweaks/Home
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/mousetweaks/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	rarian
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xtst)

%description
The Mousetweaks package provides mouse accessibility enhancements for 
the GNOME desktop. These enhancements are:

1. It offers a way to perform the various clicks without using any 
hardware button.

2. It allows users to perform a right click by doing a click&hold 
of the left mousebutton. (For a left-handed mouse user, the termes 
left and right have to be inverted.) 

3. It provides an applet that the user can install on a panel. This
applet creates an area on the panel into which the pointer can 
be captured until the user releases it with a predefined button
and modifier combination.

The options can be accessed through the Accessibility tab of the
Mouse Preferences of GNOME Control Center or through command-line.

%files -f %{name}.lang
%doc AUTHORS README NEWS TODO
%{_bindir}/mousetweaks
%{_datadir}/GConf/gsettings/*.convert
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/%{name}
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export LC_ALL=en_US.UTF-8
%configure
%make V=1

%install
%makeinstall_std
%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3398 |21cr|Mowitz-0.3.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Collection of widgets for X applications
Name:		Mowitz
Version:	0.3.0
Release:	16
License:	GPL
Group:		System/Libraries
URL:		http://siag.nu/mowitz/
Source:		http://siag.nu/pub/mowitz/%{name}-%{version}.tar.gz
Patch0:		Mowitz-0.3.0-overflow.patch
Patch1:		Mowitz-0.3.0-overflow2.patch
Patch2:		Mowitz-0.3.0-overflow3.patch
Patch3:		Mowitz-0.3.0-overflow4.patch
Patch4:		Mowitz-0.3.0-overflow5.patch
Patch5:		Mowitz-0.3.0-overflow6.patch
Patch6:		Mowitz-0.3.0-overflow7.patch
Patch7:		Mowitz-0.3.0-overflow8.patch
Patch8:		Mowitz-0.3.0-link.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
BuildRequires:	neXtaw-devel

%description
The Mowitz library contains a large collection of widgets for X applications 
to use. It complements a widget set such as Xaw3d or neXtaw.

%files
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Collection of widgets for X applications
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
The Mowitz library contains a large collection of widgets for X applications 
to use. It complements a widget set such as Xaw3d or neXtaw.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Collection of widgets for X applications
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	libMowitz-devel = %{version}-%{release}

%description -n %{devname}
The Mowitz library contains a large collection of widgets for X applications
to use. It complements a widget set such as Xaw3d or neXtaw.

%files -n %{devname}
%{_bindir}/mowitz-config
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .overflow
%patch1 -p0 -b .overflow2
%patch2 -p0 -b .overflow3
%patch3 -p0 -b .overflow4
%patch4 -p0 -b .overflow5
%patch5 -p0 -b .overflow6
%patch6 -p0 -b .overflow7
%patch7 -p0 -b .overflow8
%patch8 -p0 -b .link

%build
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}/usr/doc/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3399 |21cr|mozldap-6.0.7-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define nspr_version    4.6
%define nss_version     3.11
%define svrcore_version 4.0.4

%define major           %(echo %{version} |cut -d. -f1)
%define minor           %(echo %{version} |cut -d. -f2)
%define submin          %(echo %{version} |cut -d. -f3)
%define libsuffix       %{major}0

Summary:          Mozilla LDAP C SDK
Name:             mozldap
Version:          6.0.7
Release:          13
License:          MPLv1.1 or GPLv2+ or LGPLv2+
URL:              http://www.mozilla.org/directory/csdk.html
Group:            System/Libraries
BuildRequires:    nspr-devel >= %{nspr_version}
BuildRequires:    nss-devel >= %{nss_version}
BuildRequires:    svrcore-devel >= %{svrcore_version}
BuildRequires:    gcc-c++
BuildRequires:    libsasl-devel

Source0:          ftp://ftp.mozilla.org/pub/mozilla.org/directory/c-sdk/releases/v%{version}/src/%{name}-%{version}.tar.gz
Source100:		%{name}.rpmlintrc

%description
The Mozilla LDAP C SDK is a set of libraries that
allow applications to communicate with LDAP directory
servers.  These libraries are derived from the University
of Michigan and Netscape LDAP libraries.  They use Mozilla
NSPR and NSS for crypto.


%package tools
Summary:          Tools for the Mozilla LDAP C SDK
Group:            System/Libraries 
Requires:         %{name} = %{version}-%{release}
BuildRequires:    nspr-devel >= %{nspr_version}
BuildRequires:    nss-devel >= %{nss_version}
BuildRequires:    svrcore-devel >= %{svrcore_version}

%description tools
The mozldap-tools package provides the ldapsearch,
ldapmodify, and ldapdelete tools that use the
Mozilla LDAP C SDK libraries.


%package devel
Summary:          Development libraries and examples for Mozilla LDAP C SDK
Group:            Development/C
Requires:         %{name} = %{version}-%{release}

%description devel
Header and Library files for doing development with the Mozilla LDAP C SDK

%prep
%setup -q

%build
%setup_compile_flags

cd c-sdk

%configure \
%ifarch x86_64
    --enable-64bit \
%endif
    --with-sasl \
    --with-system-nss \
    --with-system-nspr \
    --with-system-svrcore \
    --enable-clu \
    --enable-optimize \
    --disable-debug

# Enable compiler optimizations and disable debugging code
BUILD_OPT=1
export BUILD_OPT

# Generate symbolic info for debuggers
XCFLAGS="%{optflags}"
export XCFLAGS

PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1

export PKG_CONFIG_ALLOW_SYSTEM_LIBS
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS

make \
%ifarch x86_64
    USE_64=1
%endif

%install
# Set up our package file
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat c-sdk/mozldap.pc.in \
    | sed -e "s,%%libdir%%,%{_libdir},g" \
          -e "s,%%prefix%%,%{_prefix},g" \
          -e "s,%%major%%,%{major},g" \
          -e "s,%%minor%%,%{minor},g" \
          -e "s,%%submin%%,%{submin},g" \
          -e "s,%%libsuffix%%,%{libsuffix},g" \
          -e "s,%%bindir%%,%{_libdir}/%{name},g" \
          -e "s,%%exec_prefix%%,%{_prefix},g" \
          -e "s,%%includedir%%,%{_includedir}/%{name},g" \
          -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
          -e "s,%%NSS_VERSION%%,%{nss_version},g" \
          -e "s,%%SVRCORE_VERSION%%,%{svrcore_version},g" \
          -e "s,%%MOZLDAP_VERSION%%,%{version},g" \
    > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

# There is no make install target so we'll do it ourselves.

mkdir -p %{buildroot}%{_includedir}/%{name}
mkdir -p %{buildroot}%{_libdir}/%{name}
echo $(pwd)

# Copy the binary libraries we want
for file in libssldap%{libsuffix}.so libprldap%{libsuffix}.so libldap%{libsuffix}.so libldif%{libsuffix}.so
do
  install -m 755 ../dist/lib/$file %{buildroot}%{_libdir}
done

# Copy the binaries we want
for file in ldapsearch ldapmodify ldapdelete ldapcmp ldapcompare ldappasswd
do
  install -m 755 ../dist/bin/$file %{buildroot}%{_libdir}/%{name}
done

# Copy the include files
for file in ../dist/public/ldap/*.h
do
  install -p -m 644 $file %{buildroot}%{_includedir}/%{name}
done

# Copy the developer files
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -r c-sdk/ldap/examples %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}/etc
install -m 644 c-sdk/ldap/examples/xmplflt.conf %{buildroot}%{_datadir}/%{name}/etc
install -m 644 c-sdk/ldap/libraries/libldap/ldaptemplates.conf %{buildroot}%{_datadir}/%{name}/etc
install -m 644 c-sdk/ldap/libraries/libldap/ldapfilter.conf %{buildroot}%{_datadir}/%{name}/etc
install -m 644 c-sdk/ldap/libraries/libldap/ldapsearchprefs.conf %{buildroot}%{_datadir}/%{name}/etc

%files
%doc c-sdk/README.rpm
%{_libdir}/libssldap*.so
%{_libdir}/libprldap*.so
%{_libdir}/libldap*.so
%{_libdir}/libldif*.so

%files tools
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/ldapsearch
%{_libdir}/%{name}/ldapmodify
%{_libdir}/%{name}/ldapdelete
%{_libdir}/%{name}/ldapcmp
%{_libdir}/%{name}/ldapcompare
%{_libdir}/%{name}/ldappasswd

%files devel
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3400 |21cr|mozo-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname mate-menu-editor

Summary:	Simple menu editor for MATE
Name:		mozo
Version:	1.26.0
Release:	2
License:	LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		translation-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(libmate-menu)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(pygobject-3.0)
Requires:	typelib(GdkPixbuf)
Requires:	typelib(Gtk) = 3.0
BuildArch:	noarch

%rename %{oname}

%description
Mozo is a menu editor for MATE that lets you get things done,
simply and quickly.

Just click and type to edit, add, and delete any menu entry.

%files -f %{name}.lang
%doc README AUTHORS COPYING
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/mozo
%{_iconsdir}/hicolor/*/*/*
%{_mandir}/man1/mozo.1.*
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3401 |21cr|mozplugger-2.1.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _mozillapath %{_libdir}/mozilla/plugins

Summary:	Generic mozilla plug-in
Name:		mozplugger
Version:	2.1.6
Release:	4
License:	GPLv2+
Group:		Networking/WWW
Url:		http://mozplugger.mozdev.org/
Source0:	http://mozplugger.mozdev.org/files/mozplugger-%{version}.tar.gz
Source1:	http://umn.dl.sourceforge.net/sourceforge/mplayerplug-in/mini.tar.bz2
Source2:	mozmimetypes-1.4.1.tar.bz2
Patch1:		mozplugger-2.1.4-pulseaudio.patch
Patch2:		mozplugger-2.1.4-gqview.patch
BuildRequires:	pkgconfig(x11)
Requires:	geeqie
Requires:	gv
Requires:	imagemagick
Requires:	mikmod
Requires:	mpg123
Requires:	mplayer
Requires:	sox
Requires:	TiMidity++
Requires:	xpdf
%rename		plugger

%description
MozPlugger is a generic Mozilla plug-in that allows the use of standard Linux
programs as plug-ins for media types on the Internet.

%files
%doc README COPYING
%{_bindir}/enable_mozmimetypes
%{_bindir}/disable_mozmimetypes
%{_bindir}/mozpluggerrc-sanitize
%{_bindir}/mozplugger-helper
%{_bindir}/mozplugger-linker
%{_bindir}/mozplugger-controller
%{_datadir}/mplayer/Skin/mini
%{_libdir}/netscape/plugins/mozplugger.so
%{_mozillapath}/mozplugger.so
%{_mandir}/man7/mozplugger.7*
%config(noreplace) %{_sysconfdir}/mozpluggerrc
%config(noreplace) %{_sysconfdir}/mozpluggerrc.default

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -a 2
%patch1 -p1 -b .pulse
%patch2 -p1 -b .gqview

%build
%configure
%make XCFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_mozillapath}/plugins \
        %{buildroot}%{_libdir}/netscape/plugins \
        %{buildroot}%{_bindir} \
        %{buildroot}%{_sysconfdir} \
        %{buildroot}%{_mandir}/man7 \
        %{buildroot}%{_datadir}/mplayer/Skin/mini

install -p -m 755 mozplugger-helper %{buildroot}%{_bindir}
install -p -m 755 mozplugger-controller %{buildroot}%{_bindir}
install -p -m 755 mozplugger-linker %{buildroot}%{_bindir}
install -p -m 755 mozplugger.so %{buildroot}%{_mozillapath}
install -p -m 644 mozpluggerrc %{buildroot}%{_sysconfdir}/mozpluggerrc
install -p -m 644 mozpluggerrc %{buildroot}%{_sysconfdir}/mozpluggerrc.default
install -p -m 644 mozplugger.7 %{buildroot}%{_mandir}/man7

mkdir -p %{buildroot}%{_mozillapath}
ln -s %{_mozillapath}/mozplugger.so \
         %{buildroot}%{_libdir}/netscape/plugins/mozplugger.so
install -p -m 644 mini/*.png mini/skin mini/VERSION mini/README \
        %{buildroot}%{_datadir}/mplayer/Skin/mini/

install -p -m 755 enable_mozmimetypes %{buildroot}%{_bindir}
ln -s ./enable_mozmimetypes %{buildroot}%{_bindir}/disable_mozmimetypes

install -p -m 755 mozpluggerrc-sanitize %{buildroot}%{_bindir}
perl -pi -e \
        "s|\@LIBDIR\@|%{_libdir}|g;\
         s|\@SYSCONFDIR\@|%{_sysconfdir}|g;\
         s|\@PLUGINDIR\@|%{_mozillapath}|g;\
         s|\@BINDIR\@|%{_bindir}|g;" \
                %{buildroot}%{_bindir}/mozpluggerrc-sanitize

%triggerin -- mplayerplugin
[ "$2" -ge 1 ] || exit 0
if [ -r %{_sysconfdir}/mozpluggerrc ]; then
        if [ -x %{_bindir}/disable_mozmimetypes ]; then
                %{_bindir}/disable_mozmimetypes %{_sysconfdir}/mozpluggerrc \
                        application/x-drm-v2 \
                        application/x-mplayer2 \
                        application/x-ogg \
                        application/x-quicktimeplayer \
                        application/x-ms-wmw \
                        application/x-nsv-vp3-mp3 \
                        audio/ogg \
                        audio/wav \
                        audio/x-ms-wax \
                        audio/x-ms-wma \
                        audio/x-wav \
                        video/anim \
                        video/dl \
                        video/fli \
                        video/mp4 \
                        video/mpeg \
                        video/msvideo \
                        video/quicktime \
                        video/sgi-movie \
                        video/x-anim \
                        video/x-dl \
                        video/x-fli \
                        video/x-mpeg \
                        video/x-mpeg2 \
                        video/x-ms-asf \
                        video/x-ms-asf-plugin \
                        video/x-msvideo \
                        video/x-ms-wm \
                        video/x-ms-wmv \
                        video/x-ms-wvx \
                        image/x-macpaint \
                        video/x-quicktime \
                        video/x-sgi-movie
                touch %{_mozillapath}/mozplugger.so
        fi
fi

%triggerun -- mplayerplugin
[ "$2" = "0" ] || exit 0
if [ -r %{_sysconfdir}/mozpluggerrc ]; then
        if [ -x %{_bindir}/enable_mozmimetypes ]; then
                %{_bindir}/enable_mozmimetypes %{_sysconfdir}/mozpluggerrc \
                        application/x-drm-v2 \
                        application/x-mplayer2 \
                        application/x-ogg \
                        application/x-quicktimeplayer \
                        application/x-ms-wmv \
                        application/x-nsv-vp3-mp3 \
                        audio/ogg \
                        audio/wav \
                        audio/x-ms-wax \
                        audio/x-ms-wma \
                        audio/x-wav \
                        video/anim \
                        video/dl \
                        video/fli \
                        video/mp4 \
                        video/mpeg \
                        video/msvideo \
                        video/quicktime \
                        video/sgi-movie \
                        video/x-anim \
                        video/x-dl \
                        video/x-fli \
                        video/x-mpeg \
                        video/x-mpeg2 \
                        video/x-ms-asf \
                        video/x-ms-asf-plugin \
                        video/x-msvideo \
                        video/x-ms-wm \
                        video/x-ms-wmv \
                        video/x-ms-wvx \
                        image/x-macpaint \
                        video/x-quicktime \
                        video/x-sgi-movie
                touch %{_mozillapath}/mozplugger.so
        fi
fi

%triggerpostun -- mplayerplugin
[ "$2" = "0" ] || exit 0
if [ -r %{_sysconfdir}/mozpluggerrc ]; then
        if [ -x %{_bindir}/enable_mozmimetypes ]; then
                %{_bindir}/enable_mozmimetypes %{_sysconfdir}/mozpluggerrc \
                        application/x-drm-v2 \
                        application/x-mplayer2 \
                        application/x-ogg \
                        application/x-quicktimeplayer \
                        application/x-ms-wmv \
                        application/x-nsv-vmp3-mp3 \
                        audio/ogg \
                        audio/wav \
                        audio/x-ms-wax \
                        audio/x-ms-wma \
                        audio/x-wav \
                        video/anim \
                        video/dl \
                        video/fli \
                        video/mp4 \
                        video/mpeg \
                        video/msvideo \
                        video/quicktime \
                        video/sgi-movie \
                        video/x-anim \
                        video/x-dl \
                        video/x-fli \
                        video/x-mpeg \
                        video/x-mpeg2 \
                        video/x-ms-asf \
                        video/x-ms-asf-plugin \
                        video/x-msvideo \
                        video/x-ms-wm \
                        video/x-ms-wmv \
                        video/x-ms-wvx \
                        image/x-macpaint \
                        video/x-quicktime \
                        video/x-sgi-movie
                touch %{_mozillapath}/mozplugger.so
        fi
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3402 |21cr|mp3asm-0.1.3.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mp3asm
Summary:	An mpeg 1/2/2.5 audio layer 1,2,3 frame level editor
Version:	0.1.3.1
Release:	4
License:	GPLv2+
Group:		Sound
Url:		http://sourceforge.net/projects/%{name}
Source0:	http://sourceforge.net/projects/%{name}/files/%{name}/0.1.3-1/%{name}-0.1.3-1.tar.bz2

%description
MP3ASM allows for cutting, copying, pasting of individual frames, correction
of common (correctable) errors, removal of bad frames and more. Quite useful
program for maintaining any mp3 collection.

%files
%doc COPYING README Changelog
%{_bindir}/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-0.1


%build
%configure
%make CFLAGS="%{optflags}"


%install
%{__install} -D src/%{name} -m 0755 %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3403 |21cr|mp3blaster-3.2.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Console based MP3 player
Name:		mp3blaster
Version:	3.2.6
Release:	2
License:	GPLv2+
Group:		Sound
Url:			https://github.com/stragulus/mp3blaster
Source0:	https://github.com/stragulus/mp3blaster/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	sidplay-devel
BuildRequires:	stdc++-devel
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vorbis)

%description
MP3Blaster is a text console based program for playing mainly mp3 audio files.
It is very interactive, and has a great list of features. Its playlist can be
divided in albums or categories (called 'groups'), which allows for very
sophisticated playback orders.

%files
%doc AUTHORS BUGS CREDITS ChangeLog FAQ NEWS README TODO
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
# Workaround build failures with C++17
export CXXFLAGS="%{optflags} -std=c++11 -Wno-narrowing"
autoreconf -fiv
%configure \
    --with-lirc \
    --without-esd \
    --with-oggvorbis \
    --with-sidplay \
    --with-sdl \
    --with-oss
%make


%install
%makeinstall_std

# Cleanup useless devel files
rm -f %{buildroot}%{_datadir}/%{name}/charmap/chargen.c
rm -f %{buildroot}%{_datadir}/%{name}/charmap/maketbl.c

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3404 |21cr|mp3c-0.31-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MP3 creator for audiocds with usage of CDDB
Name:		mp3c
Version:	0.31
Release:	11
License:	GPLv2+
Group:		Sound
Url:		http://wspse.de/WSPse/Linux-MP3c.php3
Source0:	ftp://ftp.wspse.de/pub/linux/wspse/%{name}-%{version}.tar.bz2
BuildRequires:	ncurses-devel
Requires:	cdparanoia
Requires:	vorbis-tools

%description
This program reads the TOC from audio CDs, gets the CDDB entry for it, and
converts the audio tracks to mp3 or Ogg Vorbis format (under usage of any CD
grabber and encoder).
It has a comfortable text-based UI, but you can also create a shell script for
automated processing of a CD. 
The default settings require oggenc from the vorbis-tools package and
cdparanoia.

%files -f %{name}.lang
%doc AUTHORS BATCH.README BUGS CDDB_HOWTO ChangeLog FAQ NEWS OTHERS 
%doc README patches/cdparanoia.diff patches/encoder.diff TODO
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------


%prep
%setup -q


%build
%configure \
    --with-cddb-path=%{_datadir}/apps/kscd/cddb \
    --enable-oggdefaults
%make


%install
%makeinstall

%{find_lang} %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3405 |21cr|mp3cddb-1.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Console MP3 renaming program
Name:		mp3cddb
Version: 	1.6
Release: 	11
Source0: 	%{name}-%{version}.tar.bz2
License: 	GPL
Group: 		File tools
Url: 		http://rufus.hackish.org/wiki/MP3cddb
Requires:	perl-Term-ReadLine-Gnu

%description
Mp3cddb is a console MP3 renaming program. It can retrieve album data
automatically or manually from FreeDB, from ID3 tags, or from a blank
template. Files can be renamed into any imaginable directory structure
and format using a powerful yet simple configuration syntax.

%prep
%setup -q

%install
%__rm -rf $RPM_BUILD_ROOT
%__install -m 755 -D %{name}-%{version}.pl $RPM_BUILD_ROOT%{_bindir}/%{name}

%clean
%__rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3406 |21cr|mp3_check-1.98-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A utility which analyzes mp3 files for errors and standards conformance
Name:		mp3_check
Version:	1.98
Release:	15
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/project/?group_id=6126
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
Patch0:		mp3_check-gcc10.patch

%description
Identify in explicit detail mp3s that do not correctly follow the mp3 format.
Also look for invalid frame headers, missing frames, etc. This can be
especially important when building an archive, and you want quality mp3s.  

%files
%{_bindir}/%{name}
%doc NOTES README THANKYOU WISHLIST MY_NOTES GOALS FOR_TESTING
%doc MILESTONE* TODO

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install -s -m 755 %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3407 |21cr|mp3diags-1.5.02-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	MP3Diags
# Avoid debuginfo-without-sources error
%global	debug_package		%{nil}

Name:		mp3diags
Version:	1.5.02
Release:	2
Summary:	Tool for finding and fixing problems in MP3 files
License:	GPLv2+
Group:		Sound
Url:		http://mp3diags.sourceforge.net/
Source0:	https://sourceforge.net/projects/mp3diags/files/unstable/mp3diags-src/%{oname}-unstable-%{version}.tar.gz
Source1:	https://sourceforge.net/projects/mp3diags/files/unstable/mp3diags-doc/%{oname}Doc-unstable-%{version}.tar.gz
Patch0:		mp3diags-1.5.02-fix-build-on-i686.patch
BuildRequires:	coreutils
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel >= 1.47
BuildRequires:	boost-static-devel >= 1.47
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(zlib)
Recommends:	%{name}-doc

%description
It finds problems in MP3 files and helps the user to fix many of them.
It looks at both the audio part (VBR info, quality, normalization) and the tags
containing track information (ID3). It includes also a tag editor, which can
download album information (including cover art) from MusicBrainz and Discogs,
as well as paste data from the clipboard. Track information can also be
extracted from the file name. Another component is the file renamer, which can
rename files based on the fields in their ID3V2 tags (artist, track number,
album, genre, ...).

%files -f %{name}.lang 
%doc changelog.txt COPYING README.md
%exclude %{_docdir}/%{name}/html
%{_iconsdir}/hicolor/*/apps/%{oname}.png
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop

#-----------------------------------------------------------------------------

%package -n %{name}-doc

Summary:	HTML documentation for %{name}
Group:		Books/Howtos
Requires:	%{name}

%description -n %{name}-doc
Html documentation for %{name}.

%files -n %{name}-doc
%{_docdir}/%{name}/html

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-unstable-%{version} -a1
%ifarch %{ix86}
%patch0 -p1
%endif

# M$ stuff not needed, package neither: that's we are here for, or most of us...
rm -rf Windows package

# Prepare docs
mv %{oname}Doc-unstable-%{version} doc

# Prepare for building
./AdjustMt.sh
./MakeTranslations.sh


%build
%qmake_qt5
%make


%install
# Create the needed directory tree
mkdir -p "%{buildroot}%{_bindir}" \
  "%{buildroot}%{_datadir}/applications" \
  "%{buildroot}%{_datadir}/%{name}/translations" \
  "%{buildroot}%{_docdir}/%{name}/html"

# Do a manual install:
# 1. Menu entry
mv desktop/%{oname}-unstable.desktop desktop/%{oname}.desktop
sed -i 's|%{oname}-unstable|%{oname}|g' desktop/%{oname}.desktop
desktop-file-install --dir %{buildroot}%{_datadir}/applications desktop/%{oname}.desktop

# 2. Main executable
install -p -m755 bin/%{oname}-unstable %{buildroot}%{_bindir}/%{oname}

# 3. Icons
for i in "16" "22" "24" "32" "36" "40" "48"; do
	mkdir -p "%{buildroot}/usr/share/icons/hicolor/${i}x${i}/apps"
	install -p -m644 "desktop/%{oname}-unstable${i}.png" "%{buildroot}/usr/share/icons/hicolor/${i}x${i}/apps/%{oname}.png"
done

# 4. Localization files
install -p -m644 src/translations/%{name}*.qm %{buildroot}%{_datadir}/%{name}/translations/

# 5. Html documentation
install -p -m644 doc/{*.css,*.html,*.png,*.jpg,*.ico} -t %{buildroot}%{_docdir}/%{name}/html

# Get the SVN noise out of the main tree
find %{buildroot}%{_datadir}/%{name}/ -type d -name .svn -exec rm -rf {} 2>/dev/null ';' || :


%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3408 |21cr|mp3gain-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	tarball_version 1_6_2

Name:		mp3gain
Version:	1.6.2
Release:	1
Summary:	Lossless MP3 volume adjustment tool
License:	LGPLv2
Group:		Sound
Url:		http://mp3gain.sourceforge.net
Source0:	http://osdn.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{tarball_version}-src.zip
Source1:	%{name}.1.bz2
Source2:	README.method
Patch2:		mp3gain_cflags.patch
BuildRequires:	pkgconfig(libmpg123)

%description
MP3Gain analyzes and adjusts mp3 files so that they have the same volume. It
does not just do peak normalization, as many normalizers do. Instead, it does
some statistical analysis to determine how loud the file actually sounds to
the human ear. Also, the changes MP3Gain makes are completely lossless. There
is no quality lost in the change because the program adjusts the mp3 file
directly, without decoding and re-encoding.

%files
%doc lgpl.txt README.method
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q -c %{name}-%{tarball_version}-src
%patch2 -p1 -b .cflags

install -p -m 644 %{SOURCE2} .
%{__sed} -i 's/\r//' lgpl.txt


%build
%make


%install
install -Dp -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dp -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1.bz2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3409 |21cr|mp3info-0.8.5a-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

Summary:	Utility for MP3 information and tag modification
Name:		mp3info
Version:	0.8.5a
Release:	10
Group:		Sound
License:	GPLv2+
Url:		http://ibiblio.org/mp3info/
Source0:	ftp://ftp.ibiblio.org/pub/linux/apps/sound/mp3-utils/mp3info/%{name}-%{version}.tgz
Source1:	mp3info-16.png
Source2:	mp3info-32.png
Source3:	mp3info-48.png
Patch0:		mp3info-0.8.5a-format_not_a_string_literal_and_no_format_arguments.diff
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	ncurses-devel

%description
An MP3 technical info viewer and ID3 1.x tag editor. It has an interactive
mode (using curses) and a command line mode. It can display ID3 tag
information as well as various technical aspects of an MP3 file including
playing time, bit-rate, sampling frequency and other attributes in
a pre-defined or user-specifiable output format. It also has a VERY
configurable output. It is availlable with both ncurses and gtk UIs.

%files
%doc README ChangeLog mp3info.lsm LICENSE
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/rosa-%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p0


%build
%make CFLAGS="%{optflags}"


%install
mkdir -p %{buildroot}/{%{_bindir},%{_mandir}/man1}
%makeinstall prefix=%{buildroot} mandir=%{buildroot}%{_mandir}/man1

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop <<EOF
[Desktop Entry]
Name=MP3 info
Name[ru]=Информация о MP3
Comment=Utility for MP3 information and tag modification
Comment[ru]=Утилита для модификации тэгов MP3
Exec=gmp3info
Icon=sound_section
Terminal=false
Type=Application
Categories=Audio;AudioVideo;AudioVideoEditing;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3410 |21cr|mp3splt-2.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line utility to split mp3 and ogg files
Name:		mp3splt
Version:	2.6.3
Release:	1
License:	GPLv2+
Group:		Sound
Url:			http://mp3splt.sourceforge.net/
#Source0:	http://prdownloads.sourceforge.net/%%{oname}/%%{name}-%%{version}.tar.gz
# Pick master HEAD from https://github.com/mp3splt/mp3splt and extract the newmp3splt directory,
# then recompress it with the right name
Source0:		%{name}-%{version}.tar.xz
BuildRequires:	gettext >= 0.18.1
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(libmp3splt) >= 0.9.3
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(vorbis)

%description
Mp3Splt is a command line utility to split MP3 (VBR supported) and Ogg Vorbis
files between a beginning and an end time position, without decoding.

It's very useful to split large mp3/ogg to make smaller files or to split
entire albums to obtain original tracks. If you want to split an album, you
can select split points and filenames manually or you can get them
automatically from CDDB (internet or a local file) or from .cue files. 
It supports also automatic silence split, that can be used also to adjust
cddb/cue split points. Otherwise if you have a file created either with
Mp3Wrap or AlbumWrap you can extract tracks just in few seconds.


%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_mandir}/man1/flacsplt.*
%{_mandir}/man1/mp3splt.*
%{_mandir}/man1/oggsplt.*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
./autogen.sh
%configure \
	--enable-oggsplt_symlink \
	--enable-flacsplt_symlink \
	--disable-rpath
%make


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3411 |21cr|mp3splt-gtk-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global	optflags %{optflags} -fcommon
%bcond_with docs

Summary:	GTK3 utility to split MP3 and Ogg Files without decoding
Name:		mp3splt-gtk
Version:	0.9.3
Release:	1
License:	GPLv2+
Group:		Sound
Url:			http://mp3splt.sourceforge.net
#Source0:	http://prdownloads.sourceforge.net/%%{oname}/%%{name}-%%{version}.tar.gz
# Pick master HEAD from https://github.com/mp3splt/mp3splt and extract the newmp3splt directory,
# then recompress it with the right name
Source0:		%{name}-%{version}.tar.xz
Patch0:		mp3splt-gtk-0.9.3-fix-audacious-detection.patch
BuildRequires:	desktop-file-utils
%if %{with docs}
BuildRequires:	doxygen
BuildRequires:	graphviz
%endif
BuildRequires:	rarian
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(audacious) >= 3.0.0
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.4.2
BuildRequires:	pkgconfig(libmp3splt) >= 0.9.3
BuildRequires:	pkgconfig(libpng)

%description
This package contains a GTK3 utility to split mp3 and ogg files selecting a
begin and an end time position, without decoding. It is very useful to split
large mp3/ogg to make smaller files or to split entire albums to obtain
original tracks.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}*.*
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
./autogen.sh
# FIXME: Our audacious is too new
%configure \
%if %{with docs}
	--enable-doxygen_doc \
%else
	--disable-doxygen_doc \
%endif
	--disable-audacious
%make


%install
%makeinstall_std

# Add a desktop file
mkdir -p %{buildroot}%{_datadir}/applications/
desktop-file-install %{name}.desktop \
	--dir %{buildroot}%{_datadir}/applications/ \
	--remove-category=Application

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3412 |21cr|mp3val-0.1.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to validate and fix MPEG audio files
Name:		mp3val
Version:	0.1.8
Release:	6
License:	GPLv2+
Group:		Sound
Url:		http://mp3val.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}%%20%{version}/%{name}-%{version}-src.tar.gz
Patch0:		%{name}-0.1.8-fix-open.patch
BuildRequires:	dos2unix

%description
MP3val is a small, high-speed tool for MPEG audio files validation and
(optionally) fixing problems. It was primarily designed for verification of
MPEG 1 Layer III (MP3) files, but supports also other MPEG versions and
layers.

%files
%doc changelog.txt manual.html
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-src
%patch0 -p1

# Fix perms
chmod 644 changelog.txt manual.html
find . -name "*.cpp" -o -name "*.h" |xargs chmod 0644

# Fix encoding
find . -name "*.cpp" -o -name "*.h" |xargs dos2unix -o


%build
%make -f Makefile.linux CXXFLAGS="%{optflags}"


%install
install -m 755 -D %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3413 |21cr|mp3valgui-0.1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI for mp3val
Name:		mp3valgui
Version:	0.1.1
Release:	8
License:	GPLv2+
Group:		Sound
Url:		http://mp3val.sourceforge.net/
Source0:	http://sourceforge.net/projects/mp3val/files/mp3valgui/0.1.1/%{name}-%{version}.tar.bz2
BuildArch:	noarch
Requires:	mp3val
Requires:	pygtk2.0-libglade

%description
MP3val is a small, high-speed tool for MPEG audio files validation and
(optionally) fixing problems. It was primarily designed for
verification of MPEG 1 Layer III (MP3) files, but supports also other
MPEG versions and layers. This is a GUI for MP3val.

%files
%doc AUTHORS NEWS
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop

#-----------------------------------------------------------------------

%prep
%setup -qn %{name}


%build
# Nothing to do


%install
install -d %{buildroot}%{_datadir}/%{name}
install -m 755 mp3valgui.py %{buildroot}%{_datadir}/%{name}
install -m 644 mp3valgui.glade %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_bindir}

# Prepare a launcher script
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh
exec %{_datadir}/%{name}/mp3valgui.py "\$*"
EOF
chmod 0755 %{buildroot}%{_bindir}/%{name}

# Prepare a .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=MP3val
Comment=Validate and fix MPEG audio files
Exec=%{name}
Icon=sound_section
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-Multimedia-Sound;GTK;Audio;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3414 |21cr|mp4als-rm23-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oversion RM23

Summary:	MPEG-4 Audio Lossless Coding
Name:		mp4als
Version:	rm23
Release:	4
License:	Freeware
Group:		Sound
# URLs are dead
Url:		http://www.nue.tu-berlin.de/forschung/projekte/lossless/mp4als.html
Source0:	%{name}%{oversion}.zip
Patch0:		mp4alsRM23-shntool.patch
Patch1:		mp4alsRM23-optflags.patch

%description
Lossless coding is the latest extension of the MPEG-4 audio standard. The MPEG
audio subgroup has recently finalized the standardization of lossless coding
techniques for high-definition audio signals. As an extension to MPEG-4 audio,
the 'MPEG-4 Audio Lossless Coding (ALS)' standard defines methods for lossless
coding.
MPEG-4 ALS defines efficient and fast lossless audio compression techniques
for both professional and consumer applications. It offers many features not
included in other lossless compression schemes.
* General support for virtually any uncompressed digital audio
format (including wav, aiff, au, bwf, raw).
* Support for PCM resolutions of up to 32-bit at arbitrary sampling
rate (including 16/44.1, 16/48, 24/48, 24/96, 24/192).
* Multi-channel / multi-track support for up to 65536 channels
(including 5.1 surround).
* Support for 32-bit IEEE floating point audio data.
* Fast random access to any part of the encoded data.
* Optional storage in MP4 file format (allows multiplex with video).
* High flexibility of codec parameters for various applications.
This version is patched with shntool patch.
The package is in restricted because it may violate software patents.

%files
%doc *.txt
%{_bindir}/mp4als
%{_bindir}/mp4als%{oversion}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}%{oversion}
%patch0 -p1
%patch1 -p1
sed -i 's/\r//g' *.txt

%build
%make \
	linux \
	RPM_OPT_FLAGS="%{optflags}"

%install
install -dm 755 %{buildroot}%{_bindir}
install -m 755 bin/linux/%{name}%{oversion} %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
ln -s %{name}%{oversion} %{name}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3415 |21cr|mp-5.2.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without	kde4
%define		basever	5

Name:		mp
Version:	5.2.10
Release:	3
Summary:	Minimum Profit - Programmer Text Editor	
Group:		Editors 
License:	GPL
URL:		http://triptico.com
Source0:	http://triptico.com/download/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	qt4-devel
%if %with kde4
BuildRequires:	kdelibs4-devel
%endif
Provides:	minimum-profit = %{EVRD}
Patch0:		mp-5.2.1-prll.patch


%description

Minimum Profit (mp) is a text editor for programmers. Among its features
are the following:

 - Fully scriptable using a C-like scripting language.
 - Unlimited undo levels.
 - Complete Unicode support.
 - Multiple files can be edited at the same time and blocks copied
   and pasted among them.
 - Syntax highlighting for many popular languages / file formats: C, C++,
   Perl, Shell Scripts, Ruby, Php, Python, HTML...
 - Creative use of tags: tags created by the external utility _ctags_
   are used to move instantaneously to functions or variables inside
   your current source tree. Tags are visually highlighted (underlined),
   and symbol completion can be triggered to avoid typing your own function
   names over and over.


%prep
%setup -q
%patch0 -p1

%build
./config.sh --prefix="%{_prefix}" --without-win32 \
%if %with kde4
	--with-kde4 \
%endif
	%{nil}

make MOC=%{qt4bin}/moc

%install
mkdir -p %{buildroot}/%{_bindir}
%makeinstall_std

%files
%doc COPYING README
%{_bindir}/%{name}-%{basever}
%{_bindir}/mpsl
%{_mandir}/man1/%{name}-%{basever}.*
%{_docdir}/%{name}-%{basever}
%{_datadir}/%{name}-%{basever}
%{_datadir}/locale/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3416 |21cr|mpc-0.35-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A command-line client for MPD
Name:		mpc
Version:	0.35
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://www.musicpd.org/
Source0:	https://www.musicpd.org/download/mpc/0/%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	meson >= 0.47.0
BuildRequires:	ninja
BuildRequires:	python3-sphinx
BuildRequires:	pkgconfig(libmpdclient) >= 2.18

%description
A command line tool to interface MPD. Scriptable.
Features:
* Bash tab completion.
* Can pipe output of other commands into mpc.

%files
%doc AUTHORS COPYING README.rst contrib/*.sh
%{_sysconfdir}/bash_completion.d/%{name}
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

# Fix perms to avoid rpmlint warnings
chmod -x contrib/*.sh


%build
%meson
%meson_build


%install
%meson_install

# Install bash completion stuff
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
cp contrib/mpc-completion.bash %{buildroot}%{_sysconfdir}/bash_completion.d/mpc

# Drop stuff we can pick up with our %%doc macro
rm -rf %{buildroot}%{_docdir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3417 |21cr|mpc-qt-22.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Media Player Classic Qute Theater
Name:		mpc-qt
Version:	22.02
Release:	1
License:	GPLv2
Group:		Video
Url:		https://github.com/cmdrkotori/mpc-qt
Source0:	https://github.com/cmdrkotori/mpc-qt/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(mpv) >= 0.34.0
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	qt5-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(dri)
BuildRequires:	imagemagick

%description
A clone of Media Player Classic reimplemented in Qt.

Build with restricted rosa repos.

%files
%doc LICENSE README.md DOCS
%{_bindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/*/%{name}.svg
%{_datadir}/applications/*.desktop
%lang(it) %{_datadir}/%{name}/translations/%{name}_it.qm
%lang(ru) %{_datadir}/%{name}/translations/%{name}_ru.qm
%lang(es) %{_datadir}/%{name}/translations/%{name}_es.qm
%lang(en) %{_datadir}/%{name}/translations/%{name}_en.qm
%lang(fi) %{_datadir}/%{name}/translations/%{name}_fi.qm
%lang(zh_CN) %{_datadir}/%{name}/translations/%{name}_zh_CN.qm

#----------------------------------------------------------

%prep
%autosetup
rm -rf mpv-dev

%build
%setup_compile_flags
%{_qt5_bindir}/lupdate %{name}.pro
%qmake_qt5 PREFIX=%{_prefix} \
    MPCQT_VERSION=%{version}

%make

%install
%makeinstall_qt

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size images/icon/%{name}.svg \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done


# docs handled by files section
rm -fr %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3418 |21cr|mpd-0.23.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MPD, the Music Player Daemon
Name:		mpd
Version:	0.23.15
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://www.musicpd.org/
Source0:	http://www.musicpd.org/download/mpd/0.23/%{name}-%{version}.tar.xz
Source1:	%{name}.conf
Source2:	%{name}.tmpfiles.d
Source3:	%{name}.sysusers.d
Source4:	%{name}.logrotate
Source100:	%{name}.rpmlintrc
Patch0:		mpd-0.22.3-fix-mpcdec-headers-inclusion.patch
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	python3-sphinx
# %%sysusers_create_package was backported to systemd-230
BuildRequires:	systemd
BuildRequires:	avahi-common-devel
BuildRequires:	boost-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	lame-devel
BuildRequires:	libfaad2-devel
BuildRequires:	libmp4v2-devel
BuildRequires:	libmpcdec-devel
BuildRequires:	wrap-devel
BuildRequires:	pkgconfig(adplug)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(atomic_ops)
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(flac++)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libcdio_paranoia)
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libffado)
BuildRequires:	pkgconfig(libgme)
BuildRequires:	pkgconfig(libiso9660)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(libmms)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libmpdclient)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libnfs)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libsidplayfp)
BuildRequires:	pkgconfig(libsidutils)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(liburing)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(shout)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(soxr)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(twolame)
BuildRequires:	pkgconfig(udisks2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisenc)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(wildmidi)
BuildRequires:	pkgconfig(yajl)
BuildRequires:	pkgconfig(zziplib)
BuildRequires:	pkgconfig(zlib)
Requires(pre,preun):	systemd
Requires(pre,post):	rpm-helper
Requires:	logrotate

%description
Music Player Daemon (MPD) allows remote access for playing music (MP3, Ogg
Vorbis, FLAC, Mod, and wave files) and managing play-lists. MPD is designed
for integrating a computer into a stereo system that provides control for music
playback over a local network. It is also makes a great desktop music player,
especially if you are a console junkie, like front-end options, or restart X
often.

%files
%doc AUTHORS NEWS doc/mpdconf.example
%license COPYING
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(-,mpd,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%defattr(644,mpd,audio)
%attr(755,mpd,audio) %dir %{_localstatedir}/lib/%{name}
%attr(755,mpd,audio) %dir %{_localstatedir}/lib/%{name}/music
%attr(755,mpd,audio) %dir %{_localstatedir}/lib/%{name}/playlists
%ghost %{_localstatedir}/lib/%{name}/%{name}.db
%ghost %{_localstatedir}/lib/%{name}/mpdstate
%ghost %attr(755,mpd,audio) %dir /var/log/%{name}
#ghost %%attr(755,mpd,audio) %%dir /var/run/%%{name}
%ghost /var/log/%{name}/%{name}.log
%ghost /var/log/%{name}/%{name}.error
%attr(644,root,root) /lib/systemd/system/%{name}.service
%attr(644,root,root) /lib/systemd/system/%{name}.socket
%attr(644,root,root) %{_prefix}/lib/systemd/user/%{name}.socket

%pre
%sysusers_create_package %{name} %{SOURCE3}

%post
if [ $1 -eq 1 ]
then
%create_ghostfile %{_localstatedir}/lib/%{name}/%{name}.db mpd audio 644
%create_ghostfile %{_localstatedir}/lib/%{name}/mpdstate mpd audio 644
%create_ghostfile %{_localstatedir}/log/%{name}/%{name}.log mpd audio 644
%create_ghostfile %{_localstatedir}/log/%{name}/%{name}.error mpd audio 644
fi
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# Our libmpcdec lacks mpc_demux_init: it's too old... disable it for now.
%meson	\
		-Dcue=true		\
		-Ddaemon=true		\
		-Ddatabase=true		\
		-Ddsd=true		\
		-Dfaad=enabled		\
		-Dinotify=true		\
		-Dio_uring=enabled	\
		-Dlibmpdclient=enabled	\
		-Dmpcdec=disabled	\
		-Dneighbor=true		\
		-Dopenal=enabled	\
		-Dpcre=enabled		\
		-Drecorder=true		\
		-Dshine=disabled	\
		-Dsmbclient=enabled	\
		-Dsqlite=enabled	\
		-Dsystemd_system_unit_dir=%{_unitdir}	\
		-Dsystemd_user_unit_dir=%{_userunitdir}	\
		-Dzeroconf=auto

%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
touch %{buildroot}%{_localstatedir}/lib/%{name}/%{name}.db
touch %{buildroot}%{_localstatedir}/lib/%{name}/mpdstate
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
touch %{buildroot}%{_localstatedir}/log/%{name}/%{name}.log
touch %{buildroot}%{_localstatedir}/log/%{name}/%{name}.error
mkdir -p %{buildroot}%{_localstatedir}/run/%{name}
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/playlists
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/music

# Fix systemd unit placement: we want it in %%{_unitdir}
mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}%{_userunitdir}/%{name}.service %{buildroot}%{_unitdir}

# Install our config stuff
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.conf
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
mkdir -p %{buildroot}%{_sysusersdir}/
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf
install -D -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

rm -rf %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3419 |21cr|mpdscribble-0.22-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mpd client which submits information about tracks being played to Lastfm
Name:		mpdscribble
Version:	0.22
Release:	6
License:	GPLv2+
Group:		Sound
Url:		http://mpd.wikia.com/wiki/Client:Mpdscribble
Source0:	http://downloads.sourceforge.net/musicpd/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	libmpdclient-devel >= 2.2
BuildRequires:	pkgconfig(libsoup-2.4)
Requires:	mpd

%description
Mpdscribble is a music player daemon client which submits information about
tracks being played to Last.fm (formerly audioscrobbler), with the following
features:
* written in C, consumes very little memory and CPU
* full support for MPD's "idle" mode
* last.fm protocol 1.2 (including "now playing") supports seeking, crossfading
* repeated songs.

%files
%doc README AUTHORS COPYING NEWS
%{_bindir}/%{name}
%{_mandir}/*/*
%{_sysconfdir}/%{name}.conf
%attr(0600,mpd,audio) %dir /var/cache/%{name}
%attr(0600,mpd,audio) /var/cache/%{name}/cache

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

# Prepare the cache file
mkdir -p %{buildroot}/var/cache/%{name}/
touch %{buildroot}/var/cache/%{name}/cache

# Fix perms
chmod 0644 %{buildroot}%{_sysconfdir}/%{name}.conf
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3420 |21cr|mpeg-stat-2.2b-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MPEG-1 video analyser
Name:		mpeg-stat
Version:	2.2b
Release:	6
License:	BSD
Group:		Video
Url:		http://bmrc.berkeley.edu/research/mpeg/
Source0:	mpeg_stat-%{version}-src.tar.gz
#http://bmrc.berkeley.edu/ftp/pub/multimedia/mpeg/stat/mpeg_stat-2.2b-src.tar.gz

%description
MPEG_STAT gathers all lot of statistics (e.g., bitrate, real Q-scale
information, detailed motion vector/cbp information, constrained parameter
checking, etc.).

%files
%doc BUGS CHANGES COPYRIGHT README
%{_bindir}/mpeg_stat
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -qn mpeg_stat

%build
%make mpeg_stat \
	DEBUGFLAG="%{optflags}"

%install
install -D -m 755 mpeg_stat %{buildroot}%{_bindir}/mpeg_stat
install -D -m 644 mpeg_stat.1 %{buildroot}%{_mandir}/man1/mpeg_stat.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3421 |21cr|mpfi-1.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major			0
%define libmpfi			%mklibname %{name} %{major}
%define libmpfi_devel		%mklibname %{name} -d
%define libmpfi_static_devel	%mklibname %{name} -d -s

Name:		mpfi
Summary:	Interval arithmetic multi-precision based on GMP and MPFR
Group:		Sciences/Mathematics
License:	LGPL
Version:	1.5.4
Release:	1
URL:		http://perso.ens-lyon.fr/nathalie.revol/software.html
Source:		http://perso.ens-lyon.fr/nathalie.revol/softwares/mpfi-%{version}.tar.xz

BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel

%description
MPFI is a C library for interval arithmetic multi-precision based on
the GMP and MPFR libraries.

#-------------------------------------------------------------------
%package	-n %{libmpfi}
Summary:	lib%{name} dynamic library
Group:		System/Libraries
Provides:	lib%{name} = %{version}-%{release}

%description	-n %{libmpfi}
lib%{name} dynamic library. MPFI is a C library for interval
arithmetic multi-precision based on the GMP and MPFR libraries.

%files -n %{libmpfi}
%{_libdir}/*.so.%{major}*

#-------------------------------------------------------------------

%package	-n %{libmpfi_devel}
Summary:	lib%{name} libraries, includes, etc
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libmpfi} = %{version}-%{release}

%description -n %{libmpfi_devel}
lib%{name} libraries, includes, etc. MPFI is a C library for interval
arithmetic multi-precision based on the GMP and MPFR libraries.

%files -n %{libmpfi_devel}
%doc %{_docdir}/%{name}
%{_includedir}/*
%{_libdir}/*.so
%{_infodir}/*
%{_libdir}/pkgconfig/mpfi.pc

#-------------------------------------------------------------------

%package	-n %{libmpfi_static_devel}
Summary:	lib%{name} static libraries
Group:		Development/C
Provides:	%{name}-static-devel = %{version}-%{release}

%description	-n %{libmpfi_static_devel}
lib%{name} static libraries. MPFI is a C library for interval
arithmetic multi-precision based on the GMP and MPFR libraries.

%files -n %{libmpfi_static_devel}
%{_libdir}/*.a

#-------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
export CFLAGS="%{optflags} -fPIC"
%configure --enable-static
%make

%install
%makeinstall_std
rm %{buildroot}%{_libdir}/*.la




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3422 |21cr|mpfrcx-0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libmajor	1
%define libname		%mklibname %{name} %{libmajor}
%define libname_devel	%mklibname %{name} -d

Summary:	Arithmetic of univariate polynomials
Name:		mpfrcx
Version:	0.6.3
Release:	1
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.multiprecision.org/%{name}
Source0:	http://www.multiprecision.org/downloads/%{name}-%{version}.tar.gz
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	libmpc-devel

%description
Mpfrcx is a library for the arithmetic of univariate polynomials over
arbitrary precision real (Mpfr) or complex (Mpc) numbers, without control
on the rounding. For the time being, only the few functions needed to
implement the floating point approach to complex multiplication are
implemented. On the other hand, these comprise asymptotically fast
multiplication routines such as Toom-Cook and the FFT.

#---------------------------------------------------------------
%package	-n %{libname}
Summary:	Arithmetic of univariate polynomials
Group:		System/Libraries

%description	-n %{libname}
Mpfrcx is a library for the arithmetic of univariate polynomials over
arbitrary precision real (Mpfr) or complex (Mpc) numbers, without control
on the rounding. For the time being, only the few functions needed to
implement the floating point approach to complex multiplication are
implemented. On the other hand, these comprise asymptotically fast
multiplication routines such as Toom-Cook and the FFT.

%files -n %{libname}
%{_libdir}/libmpfrcx.so.%{libmajor}*

#---------------------------------------------------------------
%package	-n %{libname_devel}
Summary:	Development headers and libraries for MPFRCX
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description	-n %{libname_devel}
Development headers and libraries for MPFRCX.

%files -n %{libname_devel}
%doc AUTHORS NEWS README
%{_includedir}/mpfrcx.h
%{_infodir}/mpfrcx.info*
%{_libdir}/libmpfrcx.so

#---------------------------------------------------------------
%prep
%setup -q

%build
%configure			\
	--enable-shared		\
	--disable-static

%make

%install
%makeinstall_std

%check
make check



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3423 |21cr|mpg321-0.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mpg123-clone
Name:		mpg321
Version:	0.3.2
Release:	5
Group:		Sound
License:	GPLv2+
Url:		http://sourceforge.net/projects/mpg321
Source0:	http://downloads.sourceforge.net/%{name}/%{name}_%{version}.orig.tar.gz
Patch0:		mpg321-help.patch
Patch1:		mpg321-0.2.12-fix-str-fmt.patch
Patch2:		mpg321-0.2.11-set-channel-mapping.patch
Patch3:		mpg321-0.3.2-gcc10.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao) >= 0.8.0
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(mad) >= 0.13 

%description
mpg321 is a Free clone of mpg123, a command-line MP3 player. It is designed to
be a drop-in replacement for mpg123, and therefore its interface has been
designed around that of mpg123, without using any of its code. mpg321 has been
designed for use with frontends such as gqmpeg, although it is just as useful
on the command-line. Unlike mpg123, it supports ESD and ALSA output without
recompiling, and it does all MP3 decoding with only fixed-point math by using
the mad MPEG audio decoder library.

%files
%doc BUGS AUTHORS HACKING NEWS README* THANKS TODO
%{_mandir}/man1/*
%{_bindir}/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-orig
%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p1
# Fix wrong-file-end-of-line-encoding
sed -i 's/\r//' NEWS


%build
%configure --enable-mpg123-symlink=no # Uncomment option once mainstream.
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3424 |21cr|mpgtx-1.3.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Manipulate tags, split, join, demultiplex, and fetch information on MPEG files
Name:		mpgtx
Version:	1.3.1
Release:	15
License:	GPLv2
Group:		Video
Url:		http://mpgtx.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/mpgtx/mpgtx-%{version}.tar.bz2

%description
mpgtx (an MPEG ToolboX) allows you to manipulate ID3 tags, split, join,
demultiplex, and fetch detailed information about a variety of MPEG files.
It was designed to do little, but do it well, and to provide the end user
with an austere yet powerful commandline interface. It replaces "mpgcut".

%prep
%setup -q
perl -pi -e 's/^\s*inline\s*$//' *.cxx

%build
./configure --prefix=%{_prefix}
%make CFLAGS="$RPM_OPT_FLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE -DNOSIGNAL_H"

%install
find -type f | xargs chmod a+r
make install MANDIR="%{buildroot}/%{_mandir}/man1" INSTALLDIR="%{buildroot}/%{_bindir}" MANDIRDE=%{buildroot}%{_mandir}/de/man1

%files
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/*
%{_mandir}/man1/*
%lang(de) %{_mandir}/de/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3425 |21cr|mpich2-4.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 12
%define libname %mklibname mpich %{major}
%define libmpicxx %mklibname mpicxx %{major}
%define libpmpi %mklibname pmpi %{major}
%define libmpifort %mklibname mpifort %{major}
%define devname %mklibname mpich -d

%define mpihome /home/mpi
%global _fmoddir %{_libdir}/gfortan/modules

Summary:	Portable implementation of MPI
Name:		mpich2
Version:	4.0.2
Release:	2
License:	BSD-style
Group:		System/Cluster
Url:		http://www-unix.mcs.anl.gov/mpi/mpich/
Source0:	https://www.mpich.org/static/downloads/%{version}/mpich-%{version}.tar.gz
Source3:	mpich.pth.py3
# from Fedora
Patch0:		0001-pkgconf-remove-optimization-and-link-flags-from-pkgc.patch
Patch1:		0002-pkgconf-also-drop-rpath-flags-from-pkgconf-file.patch
Patch2:		0003-Drop-build-flags-e.g.-specs.-and-lto-from-mpi-wrappe.patch
BuildConflicts:	g95
BuildRequires:	gcc-gfortran
BuildRequires:	pkgconfig(x11)
BuildRequires:	hwloc-devel >= 2.0
# For %%{python3_sitearch}
BuildRequires:	python3-devel
Requires:	%{libname} = %{version}
Requires:	expect
Requires:	python3
Conflicts:	mpich >= 1.2

%description
MPICH is a freely available, portable implementation of MPI, the Standard 
for message-passing libraries.
MPICH-A Portable Implementation of MPI is a MPI Standard conforming library 
that was developed by the Argonne National Laboratory. It allows different 
processes across a network of workstations to communicate using specific 
message passing functions. It includes librairies, parallel debuging tools 
and docs.

This package provides the libraries that use the standard p4 device.

%files
%doc COPYRIGHT README.urpmi
%{_bindir}/mpiexec*
%{_bindir}/mpichversion
%{_bindir}/mpirun
%{_bindir}/mpivars
%{_bindir}/parkill
%{_bindir}/hydra_nameserver
%{_bindir}/hydra_persist
%{_bindir}/hydra_pmi_proxy
%{_mandir}/man1/mpiexec.1*
%{_mandir}/man1/hydra_nameserver.1*
%{_mandir}/man1/hydra_persist.1*
%{_mandir}/man1/hydra_pmi_proxy.1*
#%%config(noreplace) %{_sysconfdir}/mpe_*
#%%config(noreplace) %{_sysconfdir}/mpixxx_opts.conf

#------------------------------------------------------------------------
%package doc
Summary:	Documentation for developing programs that will use MPICH
Group:		Documentation

%description doc
MPICH is a freely available, portable implementation of MPI, the Standard 
for message-passing libraries.
MPICH-A Portable Implementation of MPI is a MPI Standard conforming library 
that was developed by the Argonne National Laboratory. It allows different 
processes across a network of workstations to communicate using specific 
message passing functions. It includes librairies, parallel debuging tools 
and docs.

This package provides the documentation needed to develop
applications using the MPICH libraries.

%files doc
%{_datadir}/doc/%{name}-doc-%{version}

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared Librairies for MPICH
Group:		System/Cluster
Provides:	lib%{name} = %{EVRD}

%description  -n %{libname}
Shared Librairies for MPICH

%files -n %{libname}
%{_libdir}/libmpi.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libmpicxx}
Summary:	Shared Librairies for MPICH
Group:		System/Cluster

%description  -n %{libmpicxx}
Shared Librairies for MPICH

%files -n %{libmpicxx}
%{_libdir}/libmpicxx.so.%{major}*

#------------------------------------------------------------------------
%package -n %{libmpifort}
Summary:	Shared Librairies for MPICH
Group:		System/Cluster

%description  -n %{libmpifort}
Shared Librairies for MPICH

%files -n %{libmpifort}
%{_libdir}/libmpifort.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libpmpi}
Summary:	Shared Librairies for MPICH
Group:		System/Cluster

%description  -n %{libpmpi}
Shared Librairies for MPICH

%files -n %{libpmpi}
%{_libdir}/libpmpi.so.%{major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use MPICH
Group:		System/Cluster
Requires:	%{libname} = %{EVRD}
Requires:	%{libmpicxx} = %{EVRD}
Requires:	%{libmpifort} = %{EVRD}
Requires:	%{libpmpi} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	mpich-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Conflicts:	lam-devel
Conflicts:	mpich1-devel

%description -n %{devname}
MPICH is a freely available, portable implementation of MPI, the Standard 
for message-passing libraries.
MPICH-A Portable Implementation of MPI is a MPI Standard conforming library 
that was developed by the Argonne National Laboratory. It allows different 
processes across a network of workstations to communicate using specific 
message passing functions. It includes librairies, parallel debuging tools 
and docs.

This package provides the static libraries and header files needed to compile
applications using the MPICH libraries.

%files -n %{devname}
%doc COPYRIGHT
%{_mandir}/man3/*.3*
%{_includedir}/*.h
%{_fmoddir}/mpich
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#------------------------------------------------------------------------

%package -n mpi2cc
Summary:	The MPICH wrapper over the C compiler
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Conflicts:	lam-devel
Conflicts:	mpicc >= 1.2

%description -n mpi2cc
MPICH is a freely available, portable implementation of MPI, the Standard 
for message-passing libraries.
MPICH-A Portable Implementation of MPI is a MPI Standard conforming library 
that was developed by the Argonne National Laboratory. It allows different 
processes across a network of workstations to communicate using specific 
message passing functions. It includes librairies, parallel debuging tools 
and docs.

This package provides the shell script mpicc, with headers, which allows to
compile C programs using the MPICH libraries.

%files -n mpi2cc
%doc COPYRIGHT
%{_bindir}/mpicc
#%%config(noreplace) %{_sysconfdir}/mpicc.conf
%{_mandir}/man1/mpicc.1*

#------------------------------------------------------------------------

%package -n mpi2cxx
Summary:	The MPICH wrapper over the C++ compiler
Group:		Development/C++
Requires:	%{devname} = %{EVRD}
Conflicts:	lam-devel
Conflicts:	mpic++ >= 1.2

%description -n mpi2cxx
MPICH is a freely available, portable implementation of MPI, the Standard 
for message-passing libraries.
MPICH-A Portable Implementation of MPI is a MPI Standard conforming library 
that was developed by the Argonne National Laboratory. It allows different 
processes across a network of workstations to communicate using specific 
message passing functions. It includes librairies, parallel debuging tools 
and docs.

This package provides the shell script mpiCC, with headers, which allows to
compile C++ programs using the MPICH libraries.

%files -n mpi2cxx
%doc COPYRIGHT
%{_bindir}/mpicxx
%{_bindir}/mpic++
#%%config(noreplace) %{_sysconfdir}/mpicxx.conf
%{_mandir}/man1/mpicxx.1*

#------------------------------------------------------------------------

%package -n mpifort
Summary:	The MPICH wrapper over the Fortran compiler
Group:		System/Cluster
Provides:	mpif77 = %{EVRD}
Provides:	mpif90 = %{EVRD}
Requires:	%{devname} = %{EVRD}
Requires:	gcc-gfortran

%description -n mpifort
MPICH is a freely available, portable implementation of MPI, the Standard 
for message-passing libraries.
MPICH-A Portable Implementation of MPI is a MPI Standard conforming library 
that was developed by the Argonne National Laboratory. It allows different 
processes across a network of workstations to communicate using specific 
message passing functions. It includes librairies, parallel debuging tools 
and docs.

This package provides the shell script mpif90, with headers, which allows to
compile Fortran 90 (NOT Fortran 77!) programs using the MPICH libraries.

%files -n mpifort
%doc COPYRIGHT
#%%config(noreplace) %{_sysconfdir}/mpif90.conf
%{_bindir}/mpif90
%{_bindir}/mpif77
%{_bindir}/mpifort
%{_mandir}/man1/mpifort.1*

#------------------------------------------------------------------------

%package -n python3-mpich
Summary:	mpich support for Python 3
Requires:	%{name} = %{EVRD}
Requires:	python3

%description -n python3-mpich
mpich support for Python 3.

%files -n python3-mpich
%dir %{python3_sitearch}/mpich
%{python3_sitearch}/mpich.pth

#------------------------------------------------------------------------
%prep
%autosetup -p1 -n mpich-%{version}

# manual update config files, macros config_update fail to make autoconf.
# need only use autogen.sh script
find . -name config.guess -o -name config.sub | while read i ;
do
    [ -f /usr/share/libtool/config/"$(basename "$i")" ] && /bin/rm -f "$i" && /bin/cp -fv /usr/share/libtool/config/"$(basename "$i")" "$i" ; 
done

%build
export FFLAGS="$FFLAGS -fallow-argument-mismatch"    \
export FCFLAGS="$FCFLAGS -fallow-argument-mismatch"
./autogen.sh

# configure macros not work, autoconf fail
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--datadir=%{_datadir}/mpich \
	--docdir=%{_datadir}/doc/%{name}-doc-%{version} \
	--htmldir=%{_datadir}/doc/%{name}-doc-%{version}/www \
	--enable-sharedlibs=gcc \
	--enable-shared \
	--enable-static=no \
	--enable-lib-depend \
	--disable-rpath \
	--disable-silent-rules \
	--enable-cache \
	--enable-fortran=yes \
	--enable-cxx \
	--enable-romio \
	--enable-smpcoll \
	--enable-async-progress \
	--enable-mpe \
	--enable-threads=default \
	--with-mpe \
	--with-arch=LINUX \
	--disable-weak-symbols \
	--with-hwloc-prefix=system

# Remove rpath
sed -r -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -r -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

#Try and work around 'unused-direct-shlib-dependency' rpmlint warnning
sed -i -e 's| -shared | -Wl,--as-needed\0|g' libtool

%make_build

%install
%makeinstall_std

# CHECK ME conf file not needed?

# fix end of lines
perl -pi -e 'tr/\r//d;' \
    %{buildroot}%{_datadir}/doc/%{name}-doc-%{version}/www/index.htm \
    %{buildroot}%{_datadir}/doc/%{name}-doc-%{version}/www/www1/index.htm \
    %{buildroot}%{_datadir}/doc/%{name}-doc-%{version}/www/www3/index.htm

cat > README.urpmi <<EOF
Post-installation procedure:
- create a user with constant uid/gid and shared home directory on all nodes
- ensure this user has rsh/ssh access to all nodes
For instance, a solution could be:
	# groupadd -g 12384 -r -f mpi 
	# useradd -u 12384 -g mpi -d %{mpihome} -r -s /bin/bash mpi -p "" -m
	# mkpasswd -l 32 | passwd --stdin mpi 2>&1 > /dev/null
	# ssh-keygen -f %{mpihome}/.ssh/id_dsa -t dsa -N "" 2>&1 > /dev/null
	# chown mpi:mpi %{mpihome}/.ssh/id_dsa
	# chmod 600 %{mpihome}/.ssh/id_dsa
EOF

# Install the .pth files
mkdir -p %{buildroot}%{python3_sitearch}/mpich
install -pDm0644 %{SOURCE3} %{buildroot}%{python3_sitearch}/mpich.pth

# move gfortran mod to right place (_fmoddir)
mkdir -p %{buildroot}%{_fmoddir}/mpich
mv  %{buildroot}%{_includedir}/*.mod %{buildroot}%{_fmoddir}/mpich/
sed -r -i 's|^modincdir=.*|modincdir=%{_fmoddir}/mpich|' %{buildroot}%{_bindir}/mpifort

# cleanup
rm %{buildroot}%{_libdir}/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3426 |21cr|mplayer-skins-3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name	mplayer
%define name		%{base_name}-skins
%define summary		Skins for %{base_name}
%define version		1.3
%define release		24
%define skin_dir	%{_datadir}/%{base_name}/skins

Name:		%{name}
Version:	3.2
Release:	2
Summary:	%{summary}
Source0:	BlueHeart-1.5.tar.bz2
Source2:	Cyrus-1.2.tar.bz2
Source3:	standard-1.9.tar.bz2
Source4:	neutron-1.5.tar.bz2
Source5:	MidnightLove-1.6.tar.bz2
Source6:	plastic-1.2.tar.bz2
Source7:	Orange-1.3.tar.bz2
Source8:	Blue-small-1.4.tar.bz2
Source9:	xine-lcd-1.2.tar.bz2
Source10:	phony-1.1.tar.bz2
Source11:	mentalic-1.2.tar.bz2
Source12:	proton-1.2.tar.bz2
Source13:	slim-1.2.tar.bz2
Source14:	krystal-1.1.tar.bz2
Source15:	CubicPlayer-1.1.tar.bz2
Source16:	AlienMind-1.2.tar.bz2
Source17:	CornerMP-1.2.tar.bz2
Source18:	CornerMP-aqua-1.4.tar.bz2
URL:		http://www.mplayerhq.hu
License:	Freely redistributable without restriction
Group:		Video
BuildArch:	noarch

%description
This package includes following skins:
- standard by FRD (Viktor Bekesi), the old default MPlayer skin 
- Midnight Love, by Gabucino, MPlayer conversion of the nice WinAMP/XMMS skin 
  of Rei Ayanami. 
- BlueHeart, by Gabucino, MPlayer conversion of a BlueHeart XMMS skin. 
- Neutron, by aleczapka (Oliwier Ptak), VERY nice skin! 
- Plastic, by FRD (Viktor Bekesi), remote control-like skin with plastic 
  feeling 
- Cyrus, by Roberto J., Cyrus skin from XMMS 
- Xine-LCD, by Gabucino, MPlayer conversion of Xine's LCD skin
- Phony
- Mentalic, by aleczapka (Oliwier Ptak) 
- Proton, by Pasquale Riccio, silver, shiny
- Slim, by FRD (Viktor Bekesi), small and cute
- Cubic Player, by Gabucino, for other oldtimers
- Alien Mind, by Gabucino, Alien Mind skin from XMMS
- CornerMP, by DC.Park, a WinAMP skin conversion, resides in desktop
  corner
- CornerMP-aqua, by DC.Park, a WinAMP skin conversion, resides in
  desktop corner
- Blue and Blue-small by Franciszek Wilamowski
- Orange by Ognian Vasilev
- krystal by Gary Whitmore, Jr.

%prep
%setup -q -c
%setup -q -c -T -D -a2
%setup -q -c -T -D -a3
%setup -q -c -T -D -a4
%setup -q -c -T -D -a5
%setup -q -c -T -D -a6
%setup -q -c -T -D -a7
%setup -q -c -T -D -a8
%setup -q -c -T -D -a9
%setup -q -c -T -D -a10
%setup -q -c -T -D -a11
%setup -q -c -T -D -a12
%setup -q -c -T -D -a13
%setup -q -c -T -D -a14
%setup -q -c -T -D -a15
%setup -q -c -T -D -a16
%setup -q -c -T -D -a17
%setup -q -c -T -D -a18
# correct perm problems
chmod -R go=u-w *

%build

%install
rm -rf $RPM_BUILD_ROOT
install -d -m 755 ${RPM_BUILD_ROOT}%{skin_dir}
cp -r * ${RPM_BUILD_ROOT}%{skin_dir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{skin_dir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3427 |21cr|mpop-1.0.27-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A POP3 client that retrieves mail from POP3 mailboxes
Name:		mpop
Version:	1.0.27
Release:	5
License:	GPLv2+
Group:		Networking/Mail
URL:		http://mpop.sourceforge.net/
Source0:	http://heanet.dl.sourceforge.net/sourceforge/mpop/%{name}-%{version}.tar.bz2
BuildRequires:	libgcrypt-devel
BuildRequires:	gnutls-devel
BuildRequires:	libgpg-error-devel
BuildRequires:	libgsasl-devel 
#<- not packaged yet, why?
BuildRequires:	libidn-devel
BuildRequires:	zlib-devel

%description
mpop is a small, fast, and portable POP3 client. Its features include
header-based email filtering (filter junk mail before downloading it), delivery
to mbox files, maildir folders, or a mail delivery agent, a very fast POP3
implementation, many authentication methods, and good support for TLS/SSL.

%prep
%setup -q

%build
%configure \
    --enable-threads=pth \
    --disable-rpath \
    --with-ssl=gnutls \
    --with-libgnutls-prefix=%{_prefix} \
    --with-libidn \
    --with-libidn-prefix=%{_prefix}

#    --with-libgsasl \
#    --with-libgsasl-prefix=%{_prefix} \

%make

%install
%makeinstall_std
%find_lang %{name}


%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS NOTES README THANKS
%{_bindir}/%{name}
%{_infodir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3428 |21cr|mppenc-1.16-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Musepack encoder
Name:		mppenc
Version:	1.16
Release:	11
License:	LGPLv2.1+
Group:		Sound
Url:		http://www.musepack.net/
Source0:	http://files.musepack.net/source/mppenc-%{version}.tar.bz2
Patch0:		mppenc-1.16-cflags.patch
BuildRequires:	cmake

%description
This program handles encoding of the MPC format, which is an audio
compression format with a strong emphasis on high quality. It's not
lossless, but it is designed for transparency, so that you won't be
able to hear differences between the original wave file and the much
smaller MPC file. It is based on the MPEG-1 Layer-2 / MP2 algorithms,
but since 1997 it has rapidly developed and vastly improved and is now
at an advanced stage in which it contains heavily optimized and
patentless code.

%prep
%setup -q
%patch0 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

%files
%doc Changelog
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3429 |21cr|mpqc-3.0-0.git21b99d.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 21b99d14a0954f06423fe7c9f68bb0ac56d03601
%define commit_short %(echo %{commit} | head -c6)

%define	major		3
%define	libinit		%mklibname mpqcinit %{major}
%define	libmain		%mklibname mpqcmain %{major}
%define	libchemistry	%mklibname chemistry %{major}
%define	libextern_qc	%mklibname extern_qc %{major}
%define	libmath		%mklibname math %{major}
%define	libutil		%mklibname utilc %{major}
%define devname		%mklibname mpqc -d

# c++17 not preffered for build
%global optflags %{optflags} -std=c++14

Summary:	Ab-inito chemistry program
Name:		mpqc
Version:	3.0
Release:	0.git%{commit_short}.3
License:	GPLv2+
Group:		Sciences/Chemistry
Url:		http://mpqc.org/
Source0:	https://github.com/ValeevGroup/mpqc/archive/%{commit}.zip?/%{name}-%{commit}.zip
Patch0:		mpqc-cmake.patch
Patch1:		mpqc-versioning.patch
# To avoid soname collisions with libutil from glibc
Patch2:		mpqc-utilc.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	blas-devel
BuildRequires:	blaspp-devel
BuildRequires:	boost-devel
BuildRequires:	btas-devel
BuildRequires:	gcc-gfortran
BuildRequires:	hdf5-devel
BuildRequires:	lapack-devel
BuildRequires:	lapackpp-devel
BuildRequires:	papi-devel
BuildRequires:	tiledarray-devel
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(libint2)
BuildRequires:	pkgconfig(openbabel-3)
# Because of tiledarray
ExclusiveArch:	%{x86_64} aarch64

%description
MPQC is the Massively Parallel Quantum Chemistry Program. It computes 
properties of atoms and molecules from first principles using the time 
independent SchrÃ¶dinger equation. It runs on a wide range of architectures 
ranging from individual workstations to symmetric multiprocessors to 
massively parallel computers. Its design is object oriented, using the C++ 
programming language.

If you want to use this program on a distributed (parallel) network, you'll 
also have to install the libmpich package.

%files
%doc CHANGES CITATION LICENSE README
%{_bindir}/mpqc

#-------------------------------------------------------
%package data
Summary:	Atom info and basis sets from MPQC
Group:		Sciences/Chemistry

%description data
Atom info and basis sets from MPQC.

%files data
%{_datadir}/%{name}

#-------------------------------------------------------

%package html
Summary:	HTML documentation for MPQC
Group:		Sciences/Chemistry

%description html
This package contains the full documentation for MPQC that can be viewed
with a graphical browser like Mozilla.

%files html
%doc build/doc/html

#-------------------------------------------------------

%package -n %{libmain}
Summary:	Main library for %{name}
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libmain}
This package contains the library needed to run programs dynamically linked 
with %{libmain}, the scientific computing toolkit, based on mpqc computational 
chemistry package from Sandia Labs.

%files -n %{libmain}
%{_libdir}/libmpqcmain.so.%{major}*

#-------------------------------------------------------

%package -n %{libinit}
Summary:	Init library for %{name}
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libinit}
This package contains the library needed to run programs dynamically linked 
with %{libinit}, the scientific computing toolkit, based on mpqc computational 
chemistry package from Sandia Labs.

%files -n %{libinit}
%{_libdir}/libmpqcinit.so.%{major}*

#-------------------------------------------------------

%package -n %{libchemistry}
Summary:	Chemistry library for %{name}
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libchemistry}
This package contains the library needed to run programs dynamically linked 
with %{libmain}, the scientific computing toolkit, based on mpqc computational 
chemistry package from Sandia Labs.

%files -n %{libchemistry}
%{_libdir}/libchemistry.so.%{major}*

#-------------------------------------------------------

%package -n %{libextern_qc}
Summary:	QC library for %{name}
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libextern_qc}
This package contains the library needed to run programs dynamically linked 
with %{libextern_qc}, the scientific computing toolkit, based on mpqc computational 
chemistry package from Sandia Labs.

%files -n %{libextern_qc}
%{_libdir}/libextern_qc.so.%{major}*

#-------------------------------------------------------

%package -n %{libmath}
Summary:	Math library for %{name}
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libmath}
This package contains the library needed to run programs dynamically linked 
with %libmath, the scientific computing toolkit, based on mpqc computational 
chemistry package from Sandia Labs.

%files -n %{libmath}
%{_libdir}/libmath.so.%{major}*

#-------------------------------------------------------

%package -n %{libutil}
Summary:	Util library for %{name}
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libutil}
This package contains the library needed to run programs dynamically linked 
with %{libutil}, the scientific computing toolkit, based on mpqc computational 
chemistry package from Sandia Labs.

%files -n %{libutil}
%{_libdir}/libutilc.so.%{major}*

#-------------------------------------------------------

%package -n %{devname}
Summary:	Main libraries for %{name}
Group:		Development/C++
Requires:	%{libinit} = %{EVRD}
Requires:	%{libmain} = %{EVRD}
Requires:	%{libchemistry} = %{EVRD}
Requires:	%{libextern_qc} = %{EVRD}
Requires:	%{libmath} = %{EVRD}
Requires:	%{libutil} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the library needed to run programs dynamically linked
with %{libmain}, the scientific computing toolkit, based on mpqc computational
chemistry package from Sandia Labs.

%files -n %{devname}
%{_bindir}/mpqc-config
%{_libdir}/lib*.so
%{_includedir}/*

#-------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

#fix install path for lib
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' src/lib/util/CMakeLists.txt
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' src/lib/math/CMakeLists.txt
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' src/lib/chemistry/CMakeLists.txt
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' src/lib/extern/qc/CMakeLists.txt
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' src/bin/mpqc/CMakeLists.txt

%build
%cmake -Wno-dev \
	-DMPQC_EXPERT=ON \
	-DMPQC_NEW_FEATURES=OFF

%make

pushd doc
%make html
popd

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3430 |21cr|mpt-status-1.2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Program Showing the Status of LSI FusionMPT RAID Controller
Name:		mpt-status
Version:	1.2.0
Release:	10
License:	GPLv2+
Group:		Monitoring
Url:		http://www.drugphish.ch/~ratz/mpt-status/
Source0:	http://www.drugphish.ch/~ratz/mpt-status/%{name}-%{version}.tar.gz
Source1:	mpt-status-cron.conf
Source2:	mpt-status.crond
Source3:	mpt-status-cron
Source4:	README.Mandriva
Patch0:		mpt-status.linux-compiler.patch
Patch1:		mpt-status-headers.patch
BuildRequires:	pkgconfig(libpci)
Requires:	nail

%description
This program shows the status of the physical and logical drives attached to a
LSI FusionMPT RAID (mptlinux, fusion, mpt, ioc) controller.

%files
%doc doc/* README.Mandriva
%dir %{_sysconfdir}/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/mpt-status-cron.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/%{name}
%dir %{_datadir}/%{name}
%attr(0755,root,root) %{_datadir}/%{name}/mpt-status-cron
%{_bindir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

cp %{SOURCE1} mpt-status-cron.conf
cp %{SOURCE2} mpt-status.crond
cp %{SOURCE3} mpt-status-cron
cp %{SOURCE4} README.Mandriva

%build
gcc %{optflags} -I%{_includedir}/pci -Iinclude -Iincl mpt-status.c -o mpt-status

%install
install -d %{buildroot}%{_sysconfdir}/cron.d
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man8

install -m0755 mpt-status %{buildroot}%{_bindir}
install -m0644 man/mpt-status.8 %{buildroot}%{_mandir}/man8

install -m0644 mpt-status-cron.conf %{buildroot}%{_sysconfdir}/%{name}/mpt-status-cron.conf
install -m0644 mpt-status.crond %{buildroot}%{_sysconfdir}/cron.d/%{name}
install -m0755 mpt-status-cron %{buildroot}%{_datadir}/%{name}/mpt-status-cron

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3431 |21cr|mrrescue-1.02e-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           mrrescue
Version:        1.02e
Release:        1
Summary:        Action game where you evacuate civilians from burning buildings
Group:          Games/Arcade
License:        zlib
Url:            http://tangramgames.dk/games/mrrescue/
Source0:        https://github.com/SimonLarsen/mrrescue/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  zip
BuildRequires:  imagemagick
Requires:       love >= 0.10
BuildArch:      noarch

%description
Mr. Rescue is an arcade styled 2d action game centered around
evacuating civilians from burning buildings.

The game features fast paced fire extinguishing action,
intense boss battles, a catchy soundtrack and lots of throwing people
around in pseudo-randomly generated buildings.

%files
%doc LICENSE README.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
# Create data
zip -9 -q -r %{name}.love .
install -D -m 644 %{name}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love

# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name}<< EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{name}.love
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Mr. Rescue
Comment=Evacuate civilians from burning buildings
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size data/splash.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3432 |21cr|mrtrix3-3.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Set of tools to perform various advanced diffusion MRI analyses
Name:		mrtrix3
Version:	3.0.4
Release:	2
License:	GPLv2
Group:		Sciences/Biology
Url:		https://github.com/MRtrix3/mrtrix3
Source0:	https://github.com/MRtrix3/mrtrix3/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source10:	mrtrix3.rpmlintrc
# Avoid conflicts with cdrkit-genisoimage
Patch0:		mrtrix3-3.0.4-dirsplit-mr.patch
BuildRequires:	imagemagick
BuildRequires:	qmake5
BuildRequires:	qt5-devel
BuildRequires:	eigen3-devel
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(Qt5Svg)

%description
Diffusion-weighted MRI white matter tractography.

Set of tools to perform diffusion-weighted MRI white matter tractography of the
brain in the presence of crossing fibres, using Constrained Spherical
Deconvolution, and a probabilisitic streamlines algorithm. Magnetic resonance
images in DICOM, ANALYZE, or uncompressed NIfTI format are supported.

%files
%{_bindir}/*
%{_libdir}/*.so
%{_libdir}/mrtrix3
%{_datadir}/mrtrix3
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*.xml
%{_datadir}/icons/*

#------------------------------------------------------------------

%prep
%autosetup -p1

# avoid conflicts with cdrkit-genisoimage (see patch0)
mv cmd/dirsplit.cpp cmd/dirsplit-mr.cpp
mv docs/reference/commands/dirsplit.rst docs/reference/commands/dirsplit-mr.rst

# fix shebang
%py3_shebang_fix ./bin/*

# fix desktop file
sed -i 's/Value/Version/' ./mrview.desktop
sed -i 's/application-x-mrtrix/mrtrix/' ./mrview.desktop

%build
export MOC=%{_qt5_bindir}/moc
export QMAKE=%{_qt5_bindir}/qmake
export RCC=%{_qt5_bindir}/rcc

# non standart configure file
./configure -openmp

# no Makefile provided
./build -verbose

# TODO: build docs

%install
# autoinstall not supported?
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/mime/packages
mkdir -p %{buildroot}%{_libdir}

cp ./bin/* %{buildroot}%{_bindir}
cp -r lib/* %{buildroot}%{_libdir}
cp -r ./icons %{buildroot}%{_datadir}
cp -r ./share/* %{buildroot}%{_datadir}
cp mrview.desktop %{buildroot}%{_datadir}/applications
cp mrtrix-mime.xml %{buildroot}%{_datadir}/mime/packages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3433 |21cr|mrxvt-0.5.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A multi-tabbed X terminal emulator based on rxvt
Name:		mrxvt
Version:	0.5.4
Release:	8
Source0:	%{name}-%{version}.tar.bz2
License:	GPLv2
Group:		Terminals
Url:		http://materm.sourceforge.net
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	fontconfig-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	jpeg-devel
# X11 locales are required to build IM support
BuildRequires:	libx11-common
BuildRequires:	imagemagick

%description
Mrxvt is a lightweight and powerful multi-tabbed X terminal emulator based on
the popular emulators rxvt and aterm. It implements many useful features seen
in modern X terminal emulators such as gnome-terminal and konsole while
remaining lightweight and independent of the GNOME and KDE desktop
environments.

%prep
%setup -q

%build
%configure --disable-debug --enable-keepscrolling --enable-selectionscrolling  --enable-mousewheel --enable-24bits --enable-text-shado --enable-smart-resize --enable-xft --enable-xim --enable-greek --enable-cjk
%make

%install
%makeinstall_std
rm -rf %{buildroot}/usr/share/doc/mrxvt

# menu entries

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Mrxvt
Name[ru]=Mrxvt
Comment=A multi-tabbed X terminal emulator
Comment[ru]=Эмулятор терминала со вкладками
Exec=/usr/bin/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=TerminalEmulator;System;
EOF


install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}

convert -resize 48x48 share/pixmaps/mrxvt.png %{buildroot}%{_liconsdir}/%{name}.png
convert -resize 16x16 share/pixmaps/mrxvt.png %{buildroot}%{_miconsdir}/%{name}.png
convert -resize 32x32 share/pixmaps/mrxvt.png %{buildroot}%{_iconsdir}/%{name}.png

%files
%doc AUTHORS COPYING INSTALL NEWS README TODO ChangeLog
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/pixmaps/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3434 |21cr|ms-gsl-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Guidelines Support Library
Name:		ms-gsl
Version:	4.1.0
Release:	1
License:	MIT
Group:		Development/C++
Url:		https://github.com/Microsoft/GSL
Source0:		https://github.com/Microsoft/GSL/archive/v%{version}/GSL-%{version}.tar.gz
BuildRequires:	cmake >= 3.16
BuildRequires:	git
BuildRequires:	pkgconfig(gtest)
BuildArch:	noarch

%description
The Guidelines Support Library (GSL) contains functions and types that are
suggested for use by the C++ Core Guidelines maintained by the Standard C++
Foundation. This package contains Microsoft's implementation of GSL.
The entire implementation is provided inline in the headers under the gsl
directory. The implementation generally assumes a platform that implements
C++14 support.
While some types have been broken out into their own headers (e.g. gsl/span),
it is simplest to just include gsl/gsl and gain access to the entire library.

#-----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C++
Provides:	guidelines-support-library-devel = %{EVRD}
Provides:	microsoft-gsl-devel = %{EVRD}

%description devel
The Guidelines Support Library (GSL) contains functions and types that are
suggested for use by the C++ Core Guidelines maintained by the Standard C++
Foundation. The entire implementation is provided inline in the headers under
the gsl directory. The implementation generally assumes a platform that
implements C++14 support.
While some types have been broken out into their own headers (e.g. gsl/span),
it is simplest to just include gsl/gsl and gain access to the entire library.
This package contains the development files for %{name}.

%files devel
%doc README.md ThirdPartyNotices.txt CONTRIBUTING.md
%doc docs/headers.md
%license LICENSE
%{_datadir}/cmake/Microsoft.GSL/
%{_includedir}/gsl/

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n GSL-%{version}


%build
%cmake	-DCMAKE_BUILD_TYPE=Release \
	-DGSL_INSTALL:BOOL=ON \
	-DGSL_TEST:BOOL=ON
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3435 |21cr|msilbc-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	msiLBC is low bitrate audio codec - plugin for mediastreamer
Name:		msilbc
Version:	2.1.2
Release:	1
License:	GPL2+
Group:		System/Libraries
Url:		http://www.linphone.org
Source0:	http://download.savannah.gnu.org/releases/linphone/plugins/sources/%{name}-%{version}.tar.gz
Patch0:		msilbc-webrtc-libilbc.patch
BuildRequires:	pkgconfig(libilbc)
BuildRequires:	pkgconfig(mediastreamer)
BuildRequires:	pkgconfig(ortp)

%description
This package supplies the mediastreamer plugin for the iLBC audio
codec, which is necessary to use the codec with Linphone.
iLBC is low bitrate audio codec - plugin for mediastreamer.
Needed to build Google Talk libjingle voice call support with iLBC codec.

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for msiLBC
Group:		System/Libraries

%description -n %{libname}
This package supplies the mediastreamer plugin for the iLBC audio
codec, which is necessary to use the codec with Linphone.
iLBC is low bitrate audio codec - plugin for mediastreamer.
Needed to build Google Talk libjingle voice call support with iLBC codec.

%files -n %{libname}
%{_libdir}/mediastreamer/plugins/libmsilbc.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for msiLBC library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package supplies the mediastreamer plugin for the iLBC audio
codec, which is necessary to use the codec with Linphone.
iLBC is low bitrate audio codec - plugin for mediastreamer.
Needed to build Google Talk libjingle voice call support with iLBC codec.

%files -n %{devname}
%doc README INSTALL AUTHORS COPYING NEWS
%{_libdir}/mediastreamer/plugins/libmsilbc.so

#--------------------------------------------------------------------
%prep
%autosetup -p1

%build
autoreconf -fi
export ILBC_CFLAGS='%{optflags}'
export ILBC_LIBS='%{_libdir}'
%configure
# parallel build fail
%make -j1

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3436 |21cr|msitools-0.103-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 1.0
%define libname %mklibname msi %{api} %{major}
%define girname %mklibname msi-gir %{api}
%define devname %mklibname msi %{api} -d

Summary:	Set of programs to inspect and build Windows Installer (.MSI) files
Name:		msitools
Version:	0.103
Release:	1
License:	LGPLv2.1
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/msitools
Source0:	https://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	gettext
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libgcab-1.0)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Set of programs to inspect and build Windows Installer (.MSI) files.
It is based on libmsi, a portable library to read and write .MSI files.
Libmsi in turn is a port of (and a subset of) Wine's implementation
of the Windows Installer.
msitools plans to be a solution for packaging and deployment of
cross-compiled Windows applications.

%files -f %{name}.lang
%doc README.md
%license copyright
%{_bindir}/msi*
%{_bindir}/wixl*
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/wixl-%{version}

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libmsi-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Libmsi-%{api}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%{_datadir}/gir-1.0/Libmsi-%{api}.gir
%{_datadir}/vala/vapi/libmsi-%{api}.deps
%{_datadir}/vala/vapi/libmsi-%{api}.vapi
%{_includedir}/libmsi-%{api}
%{_libdir}/libmsi-%{api}.so
%{_libdir}/pkgconfig/libmsi-%{api}.pc

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

chmod 755 %{buildroot}%{_bindir}/msi*

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3437 |21cr|msktutil-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for managing kerberos keytabs with an Active Directory server
Name:		msktutil
Version:	1.2.2
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		https://github.com/msktutil/msktutil
Source0:	https://github.com/msktutil/msktutil/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libsasl2)
Requires:	sasl-plug-gssapi

%description
Msktutil is a program for interoperability with Active Directory that can:
* Create a computer account in Active Directory
* Create a system Kerberos keytab
* Add and remove principals to and from that keytab
* Change the computer account's password

%files
%doc ChangeLog README
%license LICENSE
%{_mandir}/man1/%{name}.1*
%{_sbindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure2_5x
%make

%install
%makeinstall_std
chmod -x %{buildroot}/%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3438 |21cr|msmtp-1.4.28-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An SMTP client
Name:		msmtp
Version:	1.4.28
Release:	5
License:	GPLv3
Group:		System/Servers
URL:		http://msmtp.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/msmtp/msmtp/%{version}/msmtp-%{version}.tar.bz2
Source1:	msmtprc
BuildRequires:	openssl-devel >= 0:0.9.6
BuildRequires:	libgcrypt-devel >= 0:1.2.0
Provides:	sendmail-command

%description
msmtp is an SMTP client that one can use with mail user agents that 
that contain no mail transfer capability (e.g., Mutt).

Supported features:
- sendmail compatible interface (command line options and exit codes)
- SMTP AUTH methods PLAIN, LOGIN, CRAM-MD5 and EXTERNAL
  (and GSSAPI, DIGEST-MD5 and NTLM when compiled with GNU SASL support)
- TLS encrypted connections with the GnuTLS or OpenSSL libraries
  (including server certificate verification and the possibility to send
  a client certificate)
- LMTP support
- DSN (Delivery Status Notification) support
- RMQS (Remote Message Queue Starting) support (ETRN keyword)
- PIPELINING support for increased transmission speed
- IPv6 support
- support for multiple accounts

%prep
%setup -q

%build
%configure --with-ssl=openssl --disable-gsasl
%{__make}

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_sysconfdir}
cp %{SOURCE1} %{buildroot}/%{_sysconfdir}/msmtprc
chmod 644 %{buildroot}/%{_sysconfdir}/msmtprc

%find_lang %name

%post
update-alternatives \
	--install %{_sbindir}/sendmail sendmail-command %{_bindir}/msmtp 5 \
	--slave %_prefix/lib/sendmail sendmail-command-in_libdir %{_bindir}/msmtp

%preun
if [ $1 = 0 ]; then
        update-alternatives --remove sendmail-command %{_bindir}/msmtp
fi

%files -f %name.lang
%defattr(-, root, root, 0755)
%doc README THANKS NEWS COPYING AUTHORS doc/msmtp.info doc/msmtprc-user.example
%doc doc/Mutt+msmtp.txt doc/msmtprc-system.example scripts/msmtpqueue
%config(noreplace) %{_sysconfdir}/msmtprc
%{_bindir}/*
%{_mandir}/man1/*
%{_infodir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3439 |21cr|mspdebug-0.22-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Debugger and gdb proxy for MSP430 MCUs
Name:		mspdebug
Version:	0.22
Release:	3
License:	GPLv2+
Group:		Development/Other
Url:		http://mspdebug.sourceforge.net/
Source0:	https://downloads.sourceforge.net/project/mspdebug/mspdebug-%{version}.tar.gz
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libusb)

%description
A a free debugger for use with MSP430 MCUs. It supports FET430UIF,
eZ430, RF2500 and TI Chronos devices. It can be used as a proxy for
gdb or as an independent debugger with support for programming,
disassembly and reverse engineering.

%files
%doc AUTHORS COPYING
%{_bindir}/mspdebug
%{_mandir}/man1/mspdebug.1*
%{_libdir}/%{name}/*.ihex

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# add -DDEBUG_GDB to CFLAGS for gdb debugging output
#make %{?_smp_mflags} CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_OPT_FLAGS"
%make GCC_CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall_std PREFIX=%{_prefix} LIBDIR=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3440 |21cr|ms-sys-2.5.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Create DOS/MS-compatible boot records
Name:		ms-sys
Version:	2.5.3
Release:	3
License:	GPLv2
Group:		System/Configuration/Boot and Init 
URL:		http://ms-sys.sourceforge.net/
Source0:	http://dl.sf.net/ms-sys/ms-sys-%{version}.tar.gz
Patch0:		ms-sys-2.3.0_mandir.patch
BuildRequires:	gettext

%description
This program is used to create DOS/MS-compatible boot records. It is
able to do the same as Microsoft "fdisk /mbr" to a hard disk. It is
also able to do the same as DOS "sys" to a floppy or FAT32 partition
except that it does not copy any system files, only the boot record is
written.

%prep
%setup -q
%apply_patches

%build
%make debug \
	CC="${CC:-%{__cc}}" \
	EXTRA_CFLAGS="%{optflags} -fasm" \
	EXTRA_LDFLAGS="%{optflags}"

%install
make install \
	DESTDIR=%{buildroot} \
	PREFIX="%{_prefix}" \

%find_lang %{name}

%files -f %{name}.lang
%doc CHANGELOG CONTRIBUTORS COPYING README TODO
%{_bindir}/ms-sys
%{_mandir}/man1/ms-sys.1*
%{_mandir}/de/man1/ms-sys.1.*
%{_mandir}/fr/man1/ms-sys.1.*
%{_mandir}/sv/man1/ms-sys.1.*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3441 |21cr|mstone-4.9.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%global __requires_exclude /bin/ksh

Name:		mstone
Version:	4.9.4
Release:	8
Summary:	Mail protocols benchmark framework
License:	GPL
Group:		Networking/Other
URL:		http://mstone.sourceforge.net/
Source:     http://downloads.sourceforge.net/mstone/mstone+docs-%{version}.tar.gz
BuildRequires: cmake

%description
Mstone is a multi-protocol stress and performance measurement tool. Mstone can
test multiple protocols (e.g. POP and SMTP) simultaneously and measures the
performance of every transaction. The performance can be graphed throughout the
duration of the test. 

%prep
%setup -q
find . -type f -exec chmod a+r {} \;

%build
%cmake 
%make

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/%{name}/{bin,data}

install -m 755 build/src/mailclient %{buildroot}%{_bindir}
install -m 755 build/src/getdist %{buildroot}%{_bindir}
install -m 755 process mstone %{buildroot}%{_datadir}/%{name}
install -m 755 bin/* %{buildroot}%{_datadir}/%{name}/bin
install -m 644 data/* %{buildroot}%{_datadir}/%{name}/data
install -m 644 conf/* %{buildroot}%{_sysconfdir}/%{name}

%files
%doc INSTALL.txt LICENSE  LICENSE.npl NEWS.txt README.txt doc/*
%{_bindir}/mailclient
%{_bindir}/getdist
%{_datadir}/mstone
%config(noreplace) %{_sysconfdir}/mstone

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3442 |21cr|msynctool-0.22-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CLI for synchronization with OpenSync
Name:		msynctool
Version:	0.22
Epoch:		1
Release:	14
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.opensync.org
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(opensync-1.0)
Requires:	libopensync

%description
Command line synchronization tool for the OpenSync framework. To allow
synchronization on machines which lack a X server. It relies on the
OpenSync framework to do the actual synchronization.

%files
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/msynctool
%{_bindir}/convcard
%{_bindir}/convtest
%{_mandir}/man1/convcard.1*
%{_mandir}/man1/msynctool.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3443 |21cr|mt7630e-2.3.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev dfef2af
%define gitdate 20161020

# How to prepare the source archive from the git tree:
# $ hash=`git log -1 --format='%h'`
# $ date=`git log -1 --format='%cd' --date=short | tr -d -`
# $ git archive --prefix mt7630e-${date}-git${hash}/ ${hash} \
#	| xz -7e > ../mt7630e-${date}-git${hash}.tar.xz

%define firmware_dir /lib/firmware/

%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	Driver for Mediatek MT7630E Wireless LAN
Name:		mt7630e
Version:	2.3.9
Release:	2
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/benjarobin/MT7630E
Source0:	%{name}-%{gitdate}-git%{gitrev}.tar.xz
Source1:	%{name}.rpmlintrc
Source2:	Makefile
Patch0:		Fix-bug-for-kernel-4.10-which-is-due-to-the-WDS-bein.patch
Patch1:		kernel-4.12.0-fix.patch

%description
This package contains the driver for MT7630E wireless LAN adapter
by Mediatek.


%package -n dkms-%{name}
Summary:	Driver for Mediatek MT7630E Wireless LAN
Group:		System/Kernel and hardware
Requires(post):		dkms
Requires(preun):	dkms
Requires:	%{name}-firmware


%description -n dkms-%{name}
This package contains the driver for MT7630E wireless LAN adapter
by Mediatek.

%files -n dkms-%{name}
%doc LICENSE README.md
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

#---------------------------------------------------------------------------

%package -n %{name}-firmware
Summary:	Firmware for Mediatek MT7630E Wireless LAN driver
Group:		System/Kernel and hardware

%description -n %{name}-firmware
Firmware for Mediatek MT7630E Wireless LAN driver.

%files -n %{name}-firmware
%{firmware_dir}/MT7650E234.bin
%{firmware_dir}/mt76x0.bin

#---------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}-git%{gitrev}
%apply_patches


%build


%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R btloader rt2x00 %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cp %{SOURCE2} %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="make"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
BUILT_MODULE_NAME[0]=%{name}
BUILT_MODULE_LOCATION[0]="rt2x00/"
BUILT_MODULE_NAME[1]=mt76xx
BUILT_MODULE_LOCATION[1]="btloader/"
DEST_MODULE_LOCATION[0]=/kernel/3rdparty/%{name}
DEST_MODULE_LOCATION[1]=/kernel/3rdparty/%{name}
AUTOINSTALL="yes"
EOF

# install the firmware
mkdir -p %{buildroot}%{firmware_dir}
install -m 644 firmware/BT/mt76x0.bin %{buildroot}%{firmware_dir}
install -m 644 firmware/Wi-FI/MT7650E234.bin %{buildroot}%{firmware_dir}


%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}


# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done


%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{name} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3444 |21cr|mtd-utils-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities for dealing with MTD (flash) devices
Name:		mtd-utils
Version:	2.2.1
Release:	1
License:	GPLv2+
Group:		Development/Other
URL:		http://www.linux-mtd.infradead.org
Source0:	https://infraroot.at/pub/mtd/%{name}-%{version}.tar.bz2
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	liblzo-devel
BuildRequires:	acl-devel

%description
The mtd-utils package contains utilities related to handling MTD devices,
and for dealing with FTL, NFTL JFFS2 etc.

%files
%doc COPYING
%{_sbindir}/doc*
%{_sbindir}/flash*
%{_sbindir}/mtdinfo
%{_sbindir}/mtdpart
%{_sbindir}/ftl*
%{_sbindir}/jffs2dump
%{_sbindir}/jffs2reader
%{_sbindir}/mkfs.jffs2
%{_sbindir}/mtd_debug
%{_sbindir}/nand*
%{_sbindir}/nftl*
%{_sbindir}/recv_image
%{_sbindir}/rfd*
%{_sbindir}/serve_image
%{_sbindir}/sumtool
%{_sbindir}/fectest
%{_sbindir}/lsmtd
%{_libexecdir}/%{name}
%{_mandir}/*/*

#--------------------------------------------------------------------------

%package ubi
Summary:	Utilities for dealing with UBI
Group:		Development/Other

%description ubi
The mtd-utils-ubi package contains utilities for manipulating UBI on 
MTD (flash) devices.

%files ubi
%{_sbindir}/mkfs.ubifs
%{_sbindir}/mount.ubifs
%{_sbindir}/ubiattach
%{_sbindir}/ubicrc32
%{_sbindir}/ubidetach
%{_sbindir}/ubiformat
%{_sbindir}/ubiupdatevol
%{_sbindir}/ubirsvol
%{_sbindir}/ubirmvol
%{_sbindir}/ubirename
%{_sbindir}/ubinize
%{_sbindir}/ubinfo
%{_sbindir}/ubimkvol
%{_sbindir}/ubiblock
%{_sbindir}/ubihealthd
%{_sbindir}/ubiscan
 
#--------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3445 |21cr|mtf-0.2.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Linux reader for the Microsoft Tape Format used by NT Backup
Name:		mtf
Version:	0.2.1
Release:	14
License:	GPL
Group:		Archiving/Backup
URL:		http://www.layton-graphics.com/mtf/
Source:		%{name}-%{version}.tar.bz2
Patch0:		mtf-glibc28.diff

%description
A bare-bones reader for Microsoft Tape Format tapes.
This program is based on Microsoft Tape Format Specification Version 1.00a.
Software compression and archives that span tapes are not yet supported.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p0

%build
make CFLAGS="%{optflags}"

%install
rm -fr %{buildroot}

mkdir -p %{buildroot}%{_bindir}
install mtf %{buildroot}%{_bindir}

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root,755)
%doc README
%{_bindir}/mtf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3446 |21cr|mtink-1.0.16-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Status monitor and configuration tool for Epson inkjet printers
Name:		mtink
Version:	1.0.16
Release:	20
License:	GPL
Group:		System/Printing
Url:		http://xwtools.automatix.de/files/
Source0:	http://xwtools.automatix.de/files/%{name}-%{version}.tar.gz
Source1:	mtinkd.service
Source2:	mtinkd.sysconfig
Source3:	printutils.png
Source4:	micon.gif
Source5:	epson.png
Source6:	%{name}-tmpfiles.conf
# mtink - Do not request koi8-ru, but koi8-r instead. Fixes mdv#25315
Patch0:		mtink-1.0.14-ru_font.patch
Patch1:		mtink-fhs_fixes.diff
Patch2:		mtink-path_to_printer.desc.diff
BuildRequires:	imagemagick
BuildRequires:	systemd
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(printproto)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)
Requires(post,preun,postun):	systemd

%description
Mtink is a status monitor which allow to get the remaining ink quantity,
printing of test patterns, changing and cleaning cartridges.

%files
%doc README.mtinkd.startup CHANGE.LOG doc/*
%{_unitdir}/mtinkd.service
%attr(0644,root,sys) %config(noreplace) %{_sysconfdir}/sysconfig/mtinkd
%{_sbindir}/mtinkd
%{_sbindir}/askPrinter
%{_sbindir}/mtink-installInitScript
%attr(0755,root,sys) %{_bindir}/mtinkc
# These four must be SGID sys/SUID root to be able to access the printer
# devices
%attr(6755,root,sys) %{_bindir}/mtink
%attr(6755,root,sys) %{_bindir}/ttink
%attr(2755,lp,sys) %{_libdir}/gimp/2.0/plug-ins/gimp-mtink
%{_datadir}/applications/mandriva-mtink.desktop
%{_datadir}/icons/hicolor/16x16/apps/printutils.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/epson.png
%attr(0750,lp,sys) %dir %{_localstatedir}/lib/mtink
%{_sysconfdir}/tmpfiles.d/%{name}.conf
%attr(0755,root,root) %dir %{_datadir}/mtink
%attr(0644,root,root) %{_datadir}/mtink/*
%attr(0755,root,root) %{_prefix}/lib/cups/backend/mtink

%post
%systemd_post mtinkd.service
%tmpfiles_create %{name}.conf

%preun
%systemd_preun mtinkd.service

%postun
%systemd_postun_with_restart mtinkd.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p0

cp %{SOURCE2} mtinkd.sysconfig
cp %{SOURCE3} printutils.png

%build
%serverbuild

perl -p -i -e 's|(/usr/X11R6)/lib\b|\1/%{_lib}|g' Makefile.ORG
perl -p -i -e 's|(/usr)/lib\b|\1/%{_lib}|g' Makefile.ORG
perl -p -i -e 's|(/usr)/lib$|\1/%{_lib}|g' Configure
perl -p -i -e 's|(''/usr/)lib('')|$1%{_lib}$2|g' checkMotifVersion.sh
perl -pi -e "s|^DBG = .*|DBG = $CFLAGS|g" Makefile.ORG

./Configure --no-suid --prefix /usr
%make CC="gcc %{ldflags}"

# Fix some small bugs
#perl -p -i -e "s/START_LEVEL=S99mtink/START_LEVEL=S59mtink/" etc/installInitScript.sh
#perl -p -i -e "s/STOP_LEVEL=K02mtink/START_LEVEL=K61mtink/" etc/installInitScript.sh
#perl -p -i -e "s/for d in 2 3 4 5/XXXXXXXXXX/" etc/installInitScript.sh
#perl -p -i -e "s/for d in 0 1 6/for d in 2 3 4 5/" etc/installInitScript.sh
#perl -p -i -e "s/XXXXXXXXXX/for d in 0 1 6/" etc/installInitScript.sh
#perl -p -i -e "s!cp mtink /etc/init.d!!" etc/installInitScript.sh
perl -p -i -e "s!chmod 744 /etc/init.d/mtink!!" etc/installInitScript.sh

%install
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}/gimp/2.0/plug-ins
install -d %{buildroot}%{_prefix}/lib/cups/backend
install -d %{buildroot}%{_localstatedir}/lib/mtink
install -d %{buildroot}%{_datadir}/mtink

install -D -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf

install -m0755 mtink %{buildroot}%{_bindir}/
install -m0755 ttink %{buildroot}%{_bindir}/
install -m0755 mtinkc %{buildroot}%{_bindir}/
install -m0755 mtinkd %{buildroot}%{_sbindir}/
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_unitdir}/mtinkd.service
install -m0644 mtinkd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/mtinkd

install -m0644 utils/printer.desc.bldin %{buildroot}%{_datadir}/mtink/printer.desc
install -m0644 utils/*.align %{buildroot}%{_datadir}/mtink/

install -m0755 etc/installInitScript.sh %{buildroot}%{_sbindir}/mtink-installInitScript
install -m0755 detect/askPrinter %{buildroot}%{_sbindir}/
install -m0755 etc/mtink-cups %{buildroot}%{_prefix}/lib/cups/backend/mtink
install -m0755 gimp-mtink %{buildroot}%{_libdir}/gimp/2.0/plug-ins/

# Documentation
cp -ax etc/readme README.mtinkd.startup

# Menu icon
# Menu entries for printer-utils package
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/
install -m 644 printutils.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/
install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/icons/
# mtink icon
mkdir -p %{buildroot}/%{_miconsdir}
mkdir -p %{buildroot}/%{_iconsdir}
mkdir -p %{buildroot}/%{_liconsdir}
convert %{SOURCE4} -resize 16x16 %{buildroot}/%{_miconsdir}/%{name}.png
convert %{SOURCE4} -resize 32x32 %{buildroot}/%{_iconsdir}/%{name}.png
convert %{SOURCE4} -resize 48x48 %{buildroot}/%{_liconsdir}/%{name}.png

# Menu entries
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-mtink.desktop << EOF
[Desktop Entry]
Name=Epson Inkjet Printer Manager
Name[ru]=Настройка принтеров Epson
Comment=Alignment, ink level, cartridge maintenance
Comment[ru]=Настройка, контроль уровня чернил и состояния картриджей
Exec=%{_bindir}/mtink
Icon=epson
Terminal=false
Type=Application
Categories=System;Monitor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3447 |21cr|mtpaint-3.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%global docver 3.50

Name:		mtpaint
Version:	3.50
Release:	1
Summary:	A simple painting program
Group:		Graphics
License:	GPLv3+
Url:		http://mtpaint.sourceforge.net/
Source0:	https://sourceforge.net/projects/mtpaint/files/mtpaint/%{version}/%{name}-%{version}.tar.bz2
Source1:	http://downloads.sf.net/%{name}/%{name}_handbook-%{docver}.zip
# Fedora patches
Patch0:		mtpaint-3.40-xdg-open.patch
Patch1:		mtpaint-3.40-strip.patch
Patch2:		mtpaint-3.40-png.patch
BuildRequires:	dos2unix
BuildRequires:	gettext
BuildRequires:	giflib-devel
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(zlib)
Requires:	ungifsicle

%description
A simple painting program to easily create pixel art and manipulate digital 
photos.

%files -f %{name}.lang
%doc COPYING README NEWS
%{_bindir}/%{name}
%{_datadir}/appdata/mtpaint.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-screenshot.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------
%package handbook
Summary:	Handbook for the mtpaint painting application
License:	GFDL
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description   handbook
Install this package is want to read the handbook for the painting
application mtpaint.

%files handbook
%doc %{name}_handbook-%{docver}/docs/*
%license %{name}_handbook-%{docver}/COPYING

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a 1

# We have moved docs
sed -i 's,"/usr/doc/mtpaint/index.html","%{_docdir}/%{name}-handbook/index.html",' src/spawn.c
chmod 0755 %{name}_handbook-%{docver}/docs/{en_GB,img,files,cs}
dos2unix -k %{name}_handbook-%{docver}/docs/index.html
dos2unix -k %{name}_handbook-%{docver}/docs/{en_GB,cs}/*.html

%build
# This is not a "normal" configure
export CFLAGS="%{optflags} -fPIC -fcommon"
export LDFLAGS="%{?__global_ldflags} -fPIC"

./configure \
	--prefix=%{_prefix} \
	--docdir=%{_pkgdocdir} \
	intl \
	man \
	gtkfilesel \
	nojp2 \
	thread \
	gtk2 \
	GIF \
	tiff \
	jpeg \
	lcms2 \
	cflags \
	CFLAGS="%{optflags}"

make

%install
make install MT_PREFIX=%{buildroot}%{_prefix}            \
             MT_MAN_DEST=%{buildroot}%{_mandir}          \
             MT_LANG_DEST=%{buildroot}%{_datadir}/locale \
             MT_DATAROOT=%{buildroot}%{_datadir}         \
             BIN_INSTALL=%{buildroot}%{_bindir}

#screenshot menu entry
cat > %{buildroot}%{_datadir}/applications/%{name}-screenshot.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Get Screenshot
Comment=%{summary}
Exec=%{_bindir}/%{name} -s
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Graphics;X-MandrivaLinux-Multimedia-Graphics;
EOF

# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p %{buildroot}%{_datadir}/appdata
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> -->
<!--
EmailAddress: mtpaint-devel@lists.sourceforge.net
SentUpstream: 2014-09-22
-->
<application>
  <id type="desktop">mtpaint.desktop</id>
  <metadata_license>CC0-1.0</metadata_license>
  <summary>Create pixel art</summary>
  <description>
    <p>
      MTPaint is an application for creating images, with a specific focus on pixel art. It features a wide range
      of tools to help you create pixel art, including: a pixel-perfect grid, tools to make pixel gradients with
      the use of dithering, pixel brushes, and pixel line and shape tools.
    </p>
  </description>
  <url type="homepage">http://mtpaint.sourceforge.net/</url>
  <screenshots>
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/mtpaint/a.png</screenshot>
  </screenshots>
</application>
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3448 |21cr|mtpfs-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FUSE filesystem that supports MTP devices
Name:		mtpfs
Version:	1.1
Release:	6
License:	GPLv2+
Group:		File tools
URL:		http://www.adebenham.com/mtpfs
Source0:	http://www.adebenham.com/files/mtp/%{name}-%{version}.tar.gz
BuildRequires:	libmtp-devel >= 0.3.0
BuildRequires:	fuse2-devel
BuildRequires:	libmad-devel
BuildRequires:	id3tag-devel
BuildRequires:	glib2-devel
Requires:	fuse2

%description
MTPfs is a FUSE filesystem that supports reading and writing from any
MTP device supported by libmtp.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%doc AUTHORS NEWS README
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3449 |21cr|mtr-0.92-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ping/Traceroute network diagnostic tool
Name:		mtr
Version:	0.92
Release:	2
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.bitwizard.nl/mtr
Source0:	ftp://ftp.bitwizard.nl/mtr/%{name}-%{version}.tar.gz
Source2:	mtr-gtk-pkexec-wrapper.sh
Source3:	org.fedoraproject.mtr.policy
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncurses)

%description
Mtr is a network diagnostic tool which combines Ping and Traceroute into one
program. Mtr also has two interfaces: An ncurses interface, useful for using
Mtr from a telnet session and a Gtk interface if you are using X.

%files
%doc AUTHORS COPYING FORMATS NEWS README SECURITY TODO
%attr(4755,root,ntools) %{_bindir}/mtr
%attr(4755,root,ntools) %{_sbindir}/mtr
%attr(4755,root,ntools) %{_sbindir}/mtr-packet
%{_datadir}/bash-completion/completions/mtr
%{_mandir}/*/*

#----------------------------------------------------------------------------

%package gtk
Summary:	Ping/Traceroute network diagnostic tool - GTK Interface
Group:		Networking/Other
Requires:	mtr

%description gtk
This is the Gtk interface for the mtr network diagnostic tool.

%files gtk
%doc AUTHORS COPYING FORMATS NEWS README SECURITY TODO
%attr(4755,root,ntools) %{_bindir}/xmtr
%attr(4755,root,ntools) %{_bindir}/xmtr.bin
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/*.desktop
%{_datadir}/polkit-1/actions/org.fedoraproject.mtr.policy

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./bootstrap.sh
%configure
%make && mv -f mtr xmtr.bin && make distclean

%configure --without-gtk
%make

%install
%makeinstall_std
	
install -D -p -m 0755 xmtr.bin %{buildroot}%{_bindir}/xmtr.bin
install -D -p -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/xmtr
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/polkit-1/actions/org.fedoraproject.mtr.policy
ln -s ../sbin/mtr %{buildroot}%{_bindir}/mtr

for size in 16x16 32x32 48x48; do
install -d %{buildroot}%{_iconsdir}/hicolor/${size}/apps/
convert img/mtr_icon.xpm -size ${size} %{buildroot}%{_iconsdir}/hicolor/${size}/apps/%{name}.png
done

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Xmtr
Comment=Ping/Traceroute network diagnostic tool
Exec=%{_bindir}/xmtr
Icon=%{name}
Terminal=false
Type=Application
Categories=GTK;System;Monitor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3450 |21cr|mtree-2.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:    mtree
Version: 2.7
Release: 10
Summary: Map a directory hierarchy
License: BSD
Group:   System/Base
Url:     http://www-db.deis.unibo.it/Mtree/
Source:  %{name}-%{version}.cvs.tar.bz2
Patch:   mtree-3.1-owl-linux.patch
Patch2:  %{name}-%{version}.cvs-alt-getlogin.patch
Patch3:  mtree-3.1-owl-fixes.patch

BuildRequires: openssl-devel

%description
The utility %name compares the file hierarchy rooted in the current
directory against a specification read from the standard input.
Messages are written to the standard output for any files whose
characteristics do not match the specification, or which are
missing from either the file hierarchy or the specification.

%prep
%setup -q -n %{name}-%{version}.cvs
%patch -p1
%patch2 -p1
%patch3 -p1

%build
make -C usr.sbin/%{name}

%install
install -p -m755 -D usr.sbin/%{name}/%{name} %{buildroot}%{_sbindir}/%{name}
install -p -m644 -D usr.sbin/%{name}/%{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8

%files
%{_sbindir}/*
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3451 |21cr|mt-st-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Programs to control tape device operations
Name:		mt-st
Version:	1.7
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
URL:		ftp://metalab.unc.edu/pub/Linux/system/backup/
Source0:	https://github.com/iustin/mt-st/releases/download/v%{version}/mt-st-%{version}.tar.gz
Source1:	stinit.service
Patch4:		mt-st-1.7-mtio.patch
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%description
The mt-st package contains the mt and st tape drive management
programs. Mt (for magnetic tape drives) and st (for SCSI tape devices)
can control rewinding, ejecting, skipping files and blocks and more.

This package can help you manage tape drives.

%prep
%autosetup -p1

%build

%make CFLAGS="%{optflags}"

%install

%make_install mandir=%{_mandir}
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_unitdir}/stinit.service

%clean

%post
%systemd_post stinit.service

%preun
%systemd_preun stinit.service

%postun
%systemd_postun_with_restart stinit.service

%files
%doc COPYING README.* stinit.def.examples
/bin/mt
/sbin/stinit
%{_unitdir}/stinit.service
%{_mandir}/man1/mt.1*
%{_mandir}/man8/stinit.8*
%{_sysconfdir}/bash_completion.d/mt-st

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3452 |21cr|mtx-1.3.12-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Controls the robotic mechanism in DDS Tape drive autoloaders
Name:		mtx
Version:	1.3.12
Release:	6
Group:		Archiving/Backup
License:	GPLv2
URL:		http://sourceforge.net/projects/mtx
Source0:	ftp://ftp.opensource-sw.net/pub/mtx/development/%{name}-%{version}.tar.gz

%description 
The MTX program controls the robotic mechanism in autoloaders and tape
libraries such as the HP SureStore DAT 40x6, Exabyte EZ-17, and
Exabyte 220. This program is also reported to work with a variety of
other tape libraries and autochangers from ADIC, Tandberg/Overland,
Breece Hill, HP, and Seagate.

If you have a backup tape device capable of handling more than one
tape at a time, you should install MTX.

%prep

%setup -q -n %{name}-%{version}

%build

%configure \
    --sbindir=/sbin

%make

%install
rm -rf %{buildroot}

%makeinstall sbindir=%{buildroot}/sbin

install -d %{buildroot}%{_sysconfdir}/bash_completion.d
install -m0644 debian/bash_completion %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc CHANGES COMPATABILITY contrib FAQ LICENSE LICENSE.html
%doc mtx.doc mtxl.README.html README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
/sbin/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3453 |21cr|mucommander-0.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname muCommander

Summary:	muCommander is a lightweight, cross-platform file manager
Name:		mucommander
Version:	0.9.2
Release:	2
License:	GPL
Group:		File tools
Url:		http://www.mucommander.com/
Source0:	https://github.com/mucommander/mucommander/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}.png
Source2:	%{name}
BuildRequires:	java-devel
Requires:	java >= 1.8.0
BuildArch:	noarch

%description
muCommander is a lightweight, cross-platform file manager with a dual-pane
interface. It runs on any operating system with Java support
(Mac OS X, Windows, Linux, *BSD, Solaris...).
 
Here's a non-exhaustive list of what you'll find:

* Virtual filesystem with support for local volumes,
    FTP, SFTP, SMB, NFS, HTTP, Amazon S3, Hadoop HDFS and Bonjour
* Quickly copy, move, rename files, create directories, email files...
* Browse, create and uncompress ZIP, RAR, 7z, TAR, GZip, BZip2, ISO/NRG,
    AR/Deb and LST archives
* ZIP files can be modified on-the-fly, without having to recompress the 
    whole archive
* Universal bookmarks and credentials manager
* Multiple windows support
* Full keyboard access
* Highly configurable
* Available in 23 languages : American & British English, French, German,
    Spanish, Czech, Simplified & Traditional Chinese, Polish, Hungarian,
    Russian, Slovenian, Romanian, Italian, Korean, Brazilian Portuguese,
    Dutch, Slovak, Japanese, Swedish, Danish, Ukrainian and Arabic.
* Free Software (GPL)

%files
%doc license.txt readme.txt
%{_bindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_javadir}/*

#-----------------------------------------------------------------------

%prep 
%setup -qn %{oname}-%{version}

%build

%install
install -dm 755 %{buildroot}%{_javadir}
install -dm 755 %{buildroot}%{_javadir}/%{name}
cp -f *.jar %{buildroot}%{_javadir}/%{name}/
cp -f *.sh %{buildroot}%{_javadir}/%{name}/
mkdir -p %{buildroot}/%{_datadir}/pixmaps
install -m 644 %{SOURCE1} %{buildroot}/%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop <<EOF
[Desktop Entry]
Name=muCommander
GenericName=File Manager
GenericName[ru]=Файловый менеджер
Comment=A lightweight, cross-platform file manager with a dual-pane interface
Comment[ru]=Легковесный, кроссплатформенный файловый менеджер с двухпанельным интерфейсом
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
MimeType=foo/bar;foo2/bar2;
Categories=Application;Utility;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3454 |21cr|mudix-4.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mudix console mud client
Name:		mudix
Version:	4.3
Release:	14
License:	BSD-like
Group:		Games/Other
Url:		http://dw.nl.eu.org/mudix.html
Source0:	http://dw.nl.eu.org/mudix/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(ncurses)

%description
Mudix is a console mud client that supports ANSI colours.
Some of the features are aliases, timers and triggers.

%files
%doc README
%{_gamesbindir}/mudix

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make O_FLAGS="%{optflags}"

%install
install -m755 mudix -D %{buildroot}%{_gamesbindir}/mudix


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3455 |21cr|muffin-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	A small window manager for Cinnamon Desktop
Name:		muffin
Version:	5.4.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
URL:		https://github.com/linuxmint/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	muffin-adwaita.txt
BuildRequires: meson
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(gudev-1.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(sm)
BuildRequires: pkgconfig(libcanberra)
BuildRequires: pkgconfig(cinnamon-desktop) >= 5.0.0
BuildRequires: pkgconfig(gnome-doc-utils)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(graphene-gobject-1.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)
BuildRequires: pkgconfig(libudev)
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(xkeyboard-config)
BuildRequires: pkgconfig(xkbcommon-x11)
BuildRequires: pkgconfig(xtst)
BuildRequires: zenity
# Bootstrap requirements
BuildRequires: pkgconfig(gtk-doc)
BuildRequires: gnome-common
BuildRequires: intltool
Requires: dbus-x11
Requires: zenity

%description
Muffin is a small window manager, using GTK+ and Clutter to do everything.
Muffin is the clutter-based evolution of Metacity, which, as the  author 
says, is a "Boring window manager for the adult in you. Many  window managers
are like Marshmallow Froot Loops; Metacity is like Cheerios."

%files -f %{name}.lang
%license COPYING
%doc NEWS README.md
%{_bindir}/muffin
%{_libexecdir}/muffin-restart-helper
%dir %{_libdir}/muffin
%{_libdir}/muffin/libmuffin-clutter-0.so*
%{_libdir}/muffin/libmuffin-cogl-0.so*
%{_libdir}/muffin/libmuffin-cogl-pango-0.so*
%{_libdir}/muffin/libmuffin-cogl-path-0.so*
# -- typelib needs to be changed upstream, once this happens split the package
%{_libdir}/muffin/*.typelib
%dir %{_libdir}/muffin/plugins
%{_libdir}/muffin/plugins/libdefault.so
%{_datadir}/glib-2.0/schemas/org.cinnamon.muffin.*.xml
%{_datadir}/applications/muffin.desktop
%{_datadir}/themes/Adwaita/metacity-1/muffin-adwaita.txt
%{_mandir}/man?/muffin*?*

#------------------------------------------------------------------------
%package -n %{libname}
Summary:	Muffin shared libraries
Group:		System/Libraries

%description -n %{libname}
This package contains the Muffin shared libraries.

%files -n %{libname}
%{_libdir}/libmuffin.so.%{major}*

#------------------------------------------------------------------------
%package -n %{develname}
Summary:	Muffin development files
Group:		Development/C
Requires:	%{libname} = %{version}

%description -n %{develname}
This package provides Muffin development files.

%files -n %{develname}
%{_includedir}/muffin/
%{_libdir}/libmuffin.so
%{_libdir}/muffin/*.gir
%{_libdir}/pkgconfig/*.pc

#------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# gobject introspection does not work with LTO.  There is an effort to fix this
# in the appropriate project upstreams, so hopefully LTO can be enabled someday
# Disable LTO.
%define _lto_cflags %{nil}

export LDFLAGS="-L%{_libdir}:$LDFLAGS"

%meson \
    -Dprofiler="false" \
    -Ddefault_driver="gl" \
    -Dremote_desktop="false"
%meson_build

%install
%meson_install

# Create a dummy themes directory so that cinnamon settings will see
# the Adwaita fallback theme which has been removed from gnome-themes-standard
mkdir -p %{buildroot}/%{_datadir}/themes/Adwaita/metacity-1/
cp %{SOURCE1} %{buildroot}/%{_datadir}/themes/Adwaita/metacity-1/

#Remove libtool archives.
find %{buildroot} -name '*.la' -exec rm -f {} ';'

desktop-file-install --delete-original \
  --dir %{buildroot}%{_datadir}/applications \
  --add-only-show-in X-Cinnamon \
  %{buildroot}%{_datadir}/applications/muffin.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3456 |21cr|mugshot-0.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	User-configuration application
Name:		mugshot	
Version:	0.4.3
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://github.com/bluesabre/mugshot
Source0:	https://github.com/bluesabre/mugshot/archive/refs/tags/%{name}-%{version}.tar.gz
BuildArch:	noarch

BuildRequires: desktop-file-utils
BuildRequires: intltool
BuildRequires: pkgconfig(python3)
BuildRequires: python3-distutils-extra
BuildRequires: python3-cairo
BuildRequires: python3-dbus
BuildRequires: python3-gi
BuildRequires: python3-pexpect
BuildRequires: util-linux
Requires: python3-pexpect

%description
Mugshot is a lightweight user configuration utility
that allows you to easily update personal user details.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README*
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/org.bluesabre.mugshot.gschema.xml
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{_mandir}/man1/%{name}.1.xz
%{_datadir}/metainfo/mugshot.appdata.xml
%{_datadir}/%{name}
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}_lib
%{python3_sitelib}/*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

%build
##none

%install
%{__python3} setup.py install -O1 --force  --root %{buildroot}

%find_lang %{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3457 |21cr|multi-aterm-0.2.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Light tabbed terminal emulator
Name:		multi-aterm
Version:	0.2.1
Release:	10
License:	GPLv2+
Group:		Terminals
Url:		http://www.nongnu.org/materm/materm.html
Source0:	http://www.nongnu.org/materm/%{name}-%{version}.tar.bz2
Source1:	multi-aterm.png
Patch0:		multi-aterm-0.2.1-optflags.patch
Patch1:		multi-aterm-glibc.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)

%description
Multi-aterm is a terminal emulator like rxvt, xterm, eterm, aterm
- It's a terminal emulator which is small and fast with efficent
  pseudo-transparency, like aterm.
- It's also a tabbed terminal emulator.
- It's a terminal emulator not requiring GNOME or KDE libs, just
  written in X-lib (for people not using GNOME nor KDE).

%files
%doc doc/TODO AUTHORS ChangeLog
%{_mandir}/man1/*
%{_datadir}/applications/mandriva-*.desktop
%{_bindir}/multi-aterm
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--enable-keepscrolling \
	--enable-mousewheel \
	--enable-transparency \
	--enable-xterm-scroll \
	--enable-fading \
	--enable-half-shadow \
	--enable-swapscreen \
	--with-xpm=%{_prefix}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32x32 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16x16 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/%{name}
Icon=%{name}
Categories=System;TerminalEmulator;
Name=Multi-aterm
Name[ru]=Multi-aterm
Comment=Light tabbed terminal emulator
Comment[ru]=Легковесный эмулятор терминала со вкладками
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3458 |21cr|multibootusb-9.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Create multiboot live Linux on a USB disk
Name:		multibootusb
Version:	9.2.0
Release:	2
License:	GPLv2+
Group:		Graphics
Url:		http://multibootusb.org
Source0:	https://github.com/mbusb/multibootusb/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
# https://forum.rosalinux.ru/viewtopic.php?f=56&t=8684#p93265
Patch0:		multibootusb-9.1.0-policykit.patch
Patch1:		Russian-label-9.1.0.patch
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
Requires:	mtools
Requires:	util-linux
Requires:	parted
Requires:	python3-qt5
Requires:	python3-dbus
Requires:	python3-six
Requires:	polkit
Requires:	p7zip
Recommends:	qemu
BuildArch:	noarch

%description
MultiBootUSB is a cross platform* software/utility to create multi boot live 
Linux on a removable media i.e USB disk. 
It is similar to unetbootin but many distros can be installed, 
provided you have enough space on the disk. 
MultiBootUSB also provides an option to uninstall distro(s) at any time, 
if you wish.

%files
%doc CHANGELOG LICENSE.txt README.md
%{py3_puresitedir}/scripts
%{py3_puresitedir}/multibootusb-%{version}-py3*.egg-info
%{_bindir}/multibootusb
%{_bindir}/multibootusb-pkexec
%{_datadir}/applications/multibootusb.desktop
%{_datadir}/pixmaps/multibootusb.png
%{_datadir}/polkit-1/actions/org.debian.pkexec.run-multibootusb.policy
%dir %{_datadir}/multibootusb
%{_datadir}/multibootusb/*
#------------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .policykit
%patch1 -p1

%build

%install
python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3459 |21cr|multisync-gui-0.91.1-0.384.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

# svn co http://svn.opensync.org/multisync/branches/multisync-gui-0.2X multisync-gui
%define svn	384

Summary:	Graphical front end to OpenSync synchronization system
Name:		multisync-gui
Version:	0.91.1
Release:	0.%{svn}.4
License:	GPLv2+
Group:		Communications
Url:		http://www.opensync.org
Source0:	%{name}-svn%{svn}.tar.bz2
BuildRequires:	imagemagick
BuildRequires:	python
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(opensync-1.0) < 0.30
BuildRequires:	pkgconfig(sqlite3)

%description
MultiSync is a program to synchronize calendars, addressbooks and other PIM
data between programs on your computer and other computers, mobile devices,
PDAs or cell phones. It relies on the OpenSync framework to do the actual
synchronisation.

%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-0.2X
echo "env.Append(CCFLAGS = '%{optflags}')" >> SConstruct

%build
./configure --prefix=%{_prefix}
%make

%install
%make_install

# menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=%{name}
Comment=Calendar synchronization program
Exec=%{_bindir}/%{name}
Terminal=false
Type=Application
Categories=GTK;TelephonyTools;Utility;
Icon=%{name}
EOF

# icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{64x64,48x48,32x32,16x16}/apps
install -m 0644 misc/multisync.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
convert -scale 48 misc/multisync.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 misc/multisync.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 misc/multisync.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3460 |21cr|multitail-7.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -Wno-error=format-security
%define debug_package %{nil}

Summary:	Multitail lets you view one or multiple files like the original tail program
Name:		multitail
Version:	7.0.0
Release:	1
License:	GPL
Group:		Text tools
Url:		http://www.vanheusden.com/multitail/
Source:		https://github.com/folkertvanheusden/multitail/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ncurses-devel

%description
multitail lets you view one or multiple files like the original tail program.
The difference is that it creates multiple windows on your console (with 
ncurses). It can also use colors while displaying the logfiles, for faster
recognition of which lines are important and which are not. It supports regular
expressions. It has interactive menus for editing given regular expressions and
deleting and adding windows.

%prep
%setup -q

cp LICENSE license.txt

%build
%cmake
%make

%install
# make install broken
#make_install -C build
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
install -m 755 build/bin/%{name} %{buildroot}%{_bindir}/
install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/
install -m 644 %{name}.conf %{buildroot}%{_sysconfdir}/
cp -r ./conversion-scripts %{buildroot}%{_sysconfdir}/%{name}

%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3461 |21cr|multiwalk2c-0.2.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multi-threaded SNMP scanner (like a snmpbulkwalk)
Name:		multiwalk2c
Version:	0.2.1
Release:	9
License:	GPLv2+
Group:		System/Servers
Url:		http://wegorz.marton.pl/
Source0:	http://wegorz.marton.pl/%{name}-%{version}.tar.gz
Patch0:		multiwalk2c-0.1.1-compile_fix.diff
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(libcrypto)

%description
multiwalk2c is a multi-threaded SNMP scanner. It is a modified version of
snmpbulkwalk. It can scan agents listed in special agents file, write to a
single or many output files, and traverse different parts of a MIB tree in
one thread.

%files
%doc COPYING README
%{_bindir}/multiwalk2c

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3462 |21cr|mumble-1.4.287-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Configuration options for the server (murmur)
%bcond_without server
# Enabling this requires adding "-recursive" to the command line;
# however doing so makes the build fail: Unsupported Ice version
%bcond_with ice
# Configuration options for the client (mumble)
%bcond_without client
%bcond_without speechd
%bcond_with g15

Summary:	Low-latency, high-quality voice communication for gamers
Name:		mumble
Version:	1.4.287
Release:	2
License:	BSD
# Networking/Chat is a better group than Sound, since mumble is basically a VoIP software...
Group:		Networking/Chat
Url:		http://wiki.mumble.info/wiki/Main_Page
Source0:	https://github.com/mumble-voip/mumble/releases/download/v%{version}/%{name}-%{version}.tar.gz
# Conf files courtesy of debian package
Source1:	%{name}-server.ini
Source2:	%{name}-server-web.conf
Source3:	MurmurPHP.ini
Source4:	README.install.urpmi.mumble-server-web
Source5:	mumble-server.sysusers.conf
Source6:	%{name}-server.logrotate
Source7:	%{name}-tmpfiles.conf
Source100:	mumble.rpmlintrc
# Perhaps this one is useless after changing our S5-S7...
Patch2:		mumble-1.4.287-use-run-directory-for-pidfiles.patch
Patch4:		mumble-1.4.0-fix-linking-failure-in-overlay_gl.patch
Patch5:		mumble-1.4.287-not-build-x32overlay.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	protobuf-compiler
BuildRequires:	qt5-linguist
BuildRequires:	boost-devel
BuildRequires:	cap-devel
BuildRequires:	jack-devel
BuildRequires:	poco-devel
%if %{with g15}
BuildRequires:	g15daemon_client-devel
%endif
%if %{with speechd}
BuildRequires:	speech-dispatcher-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(avahi-compat-libdns_sd)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(protobuf) >= 3.5.0
BuildRequires:	pkgconfig(rnnoise)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(speex) >= 1.2
BuildRequires:	pkgconfig(speexdsp) >= 1.2
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xi) >= 1.6.0
Requires:	qt5-database-plugin-sqlite
Requires:	%{name}-plugins = %{EVRD}
Recommends:	%{name}-protocol-plasma5
%if %{with speechd}
Recommends:	speech-dispatcher
%endif
%if %{with g15}
Recommends:	g15daemon
%endif
# Strange, but true: We actually do require several different versions of celt installed at the same time.
# The reason is that they're API/ABI compatible, but bitstream incompatible, releases:
# mumble dlopens any celt library it can find to support their bitstream versions.
# Since a lot of Mumble users are on legacy celt (0.7.x), it is necessary to have that version installed
# to be able to talk to those users.
# WARNING: According to this Mageia bug (#12853), mumble possibly could not work well with our celt 0.11.3.
# If this will result true, add the patch below:
# https://sources.debian.org/patches/mumble/1.3.0%%7Egit20190125.440b173+dfsg-2/07-use-embedded-celt-baseline.diff/
# and use the bundled celt 0.7.0 library instead of the system one, removing the two Requires below here.
# It should be OK, since now near all servers should support opus.
Requires:	%mklibname celt0_ 0
Requires:	%mklibname celt0_ 2
ExcludeArch:	%{ix86}

%description
Low-latency, high-quality voice communication for gamers. It includes game
linking, so voce from other players comes from the direction of their
characters, and has echo cancellation so the sound from your loudspeakers
won't be audible to other players.

%if %{with client}
%files
%doc README.md CHANGES LICENSE
%{_bindir}/%{name}
%{_bindir}/%{name}-overlay
%{_datadir}/%{name}/
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/*.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.*
%{_mandir}/man1/%{name}-overlay.*
%endif

#----------------------------------------------------------------------------

%if %{with client}
%package plugins
Summary:	Mumble plugins
Group:		Networking/Chat
Requires:	%{name} = %{EVRD}

%description plugins
This packages provides the Mumble plugins.

%files plugins
%doc LICENSE
%{_libdir}/%{name}
%endif

#----------------------------------------------------------------------------

%if %{with server}
%package server
Summary:	Murmur, the VOIP server for Mumble
Group:		Networking/Chat
%if %{with ice}
# ice-devel should require this itself, but it doesn't...
BuildRequires:	%{_lib}ice6
BuildRequires:	%{_lib}ice-devel
%else
# grpc not recommeded by upstream devs, alternative ice not provided in repo
BuildRequires:	pkgconfig(grpc)
%endif
Requires:	dbus
Requires:	qt5-database-plugin-sqlite
Requires(pre):	/bin/systemd-sysusers
Requires(post,preun):	systemd

%description server
This package provides Murmur, the VOIP server for Mumble.

%files server
%if %{without client}
%doc README.md CHANGES LICENSE
%endif
%doc build/murmur.ini
%{_bindir}/mumble-server
%{_bindir}/mumble-server-user-wrapper
%{_unitdir}/murmur.service
%{_tmpfilesdir}/%{name}-server.conf
%config(noreplace) %{_sysconfdir}/%{name}-server.ini
%{_sysconfdir}/logrotate.d/%{name}-server
%{_sysconfdir}/dbus-1/system.d/%{name}-server.conf
%attr(-,mumble-server,mumble-server) %dir %{_var}/lib/%{name}-server
%attr(-,mumble-server,root) %ghost %dir %{_var}/log/%{name}-server
%attr(-,mumble-server,mumble-server) %ghost %dir /run/%{name}-server
%if %{with ice}
%{_datadir}/slice/Murmur.ice
%endif
%{_mandir}/man1/mumble-server-user-wrapper.*
%{_mandir}/man1/mumble-server.*
%{_sysusersdir}/mumble-server.conf

%pre server
%sysusers_create_package mumble-server %{SOURCE5}

%post server
%tmpfiles_create %{_tmpfilesdir}/%{name}-server.conf
%systemd_post murmur.service
%__service messagebus reload

%preun server
%systemd_preun murmur.service

%endif

#----------------------------------------------------------------------------

%if %{with server}
%package server-web
Summary:	Web scripts for %{name}-server
Group:		Networking/Chat
Requires:	%{name}-server = %{EVRD}
Requires:	apache
Requires:	mail-server
Requires:	perl-CGI
%if %{with ice}
Requires:	zeroc-ice-php
%endif

%description server-web
This package contains the web scripts for %{name}-server.

%files server-web
%doc README.install.urpmi
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}-server-web.conf
%if %{with ice}
%config(noreplace) %{_sysconfdir}/php.d/MurmurPHP.ini
%endif
%{_datadir}/%{name}-server-web
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}.src
%apply_patches

cp -p %{SOURCE4} README.install.urpmi

%build
%cmake -Dupdate=OFF \
%if %{with ice}
	-Dgrpc=OFF \
	-Dice=ON \
%else
	-Dgrpc=ON \
	-Dice=OFF \
%endif
	-Dalsa=ON \
	-Dpulseaudio=ON \
	-Dpipewire=ON \
	-Dbundled-opus=OFF \
	-Dbundled-rnnoise=OFF \
	-Dtranslations=ON

%make


%install
%makeinstall_std -C build


desktop-file-install \
	--remove-category="Qt" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Translations
mkdir -p %{buildroot}%{_datadir}/%{name}/translations
install -m 0644 build/src/%{name}/*.qm %{buildroot}%{_datadir}/%{name}/translations/

#install -D -m0755 release/murmurd "%{buildroot}%{_sbindir}/murmurd"
install -D -m0755 scripts/mumble-server-user-wrapper %{buildroot}%{_bindir}/mumble-server-user-wrapper
mkdir -p %{buildroot}%{_sysconfdir}/{dbus-1/system.d,logrotate.d}
install -m0644 scripts/murmur.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{name}-server.conf
install -m0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-server
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}-server.ini

# Install service
mkdir -p %{buildroot}%{_unitdir}
install -m0644 scripts/murmur.service %{buildroot}%{_unitdir}/murmur.service
# fix server filename and ini file in service file
sed -i 's|murmurd|mumble-server|' %{buildroot}%{_unitdir}/murmur.service
sed -i 's|murmur.ini|%{name}-server.ini|' %{buildroot}%{_unitdir}/murmur.service

# Create the needed directories:
# 1. Database directory
install -d -m0755 %{buildroot}%{_var}/lib/%{name}-server
# 2. Log directory
install -d -m0755 %{buildroot}%{_var}/log/%{name}-server
# 3. Tmpfiles directory
install -D -p -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}-server.conf
# 4. Pidfile directory
install -d -m0755 %{buildroot}/run/%{name}-server

# Install examples
mkdir -p %{buildroot}%{_var}/%{name}-server/examples

# --- Mumble-server-web files ---
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}-server-web.conf


%if %{with ice}
# Install Mumur.ice  in /usr/share/slice
install -D -m0755 src/murmur/Murmur.ice %{buildroot}%{_datadir}/slice/Murmur.ice

install -D -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/php.d/MurmurPHP.ini
install -D -m0644 scripts/server/ice/weblist.php %{buildroot}%{_datadir}/%{name}-server-web/www/weblist.php
pushd %{buildroot}%{_datadir}/%{name}-server-web/www
ln -s weblist.php index.php
popd
%endif
install -D -m0755 scripts/server/dbus/weblist.pl %{buildroot}%{_datadir}/%{name}-server-web/www/weblist.cgi
install -D -m0755 scripts/server/dbus/murmur.pl %{buildroot}%{_datadir}/%{name}-server-web/www/register.cgi

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/mumble-server.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3463 |21cr|munge-0.5.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2

%define	libname %mklibname %{name} %{major}
%define	develname %mklibname -d %{name}

Name:		munge
Version:	0.5.15
Release:	1
Summary:	Enables uid & gid authentication across a host cluster
License:	GPLv2+
Group:		System/Servers
Url:		https://dun.github.io/munge/
Source0:	https://github.com/dun/munge/releases/download/munge-%{version}/munge-%{version}.tar.xz
Source1:	create-%{name}-key
Source2:	%{name}.logrotate
Source3:	munge.sysusers.conf
BuildRequires:	zlib-devel
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(openssl)
Requires:	%{libname} = %{EVRD}
Requires(pre):	shadow-utils

%description
MUNGE (MUNGE Uid 'N' Gid Emporium) is an authentication service for creating
and validating credentials. It is designed to be highly scalable for use
in an HPC cluster environment.
It allows a process to authenticate the UID and GID of another local or
remote process within a group of hosts having common users and groups.
These hosts form a security realm that is defined by a shared cryptographic
key. Clients within this security realm can create and validate credentials 
without the use of root privileges, reserved ports, or platform-specific
methods.

%files
%doc AUTHORS JARGON NEWS QUICKSTART README
%doc doc
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/munge.conf
%{_sysusersdir}/munge.conf
%{_bindir}/%{name}
%{_bindir}/remunge
%{_bindir}/unmunge
%{_sbindir}/munged
%{_sbindir}/create-%{name}-key
%{_sbindir}/mungekey
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/remunge.1.*
%{_mandir}/man1/unmunge.1.*
%{_mandir}/man7/%{name}.7.*
%{_mandir}/man8/munged.8.*
%{_mandir}/man8/mungekey.8.*
%attr(-,munge,munge) %ghost %dir  %{_var}/run/%{name}
%attr(0700,munge,munge) %dir  %{_var}/log/%{name}
%attr(0700,munge,munge) %dir %{_sysconfdir}/%{name}
%attr(0400,munge,munge) %ghost %{_sysconfdir}/%{name}/%{name}.key
%attr(0700,munge,munge) %dir  %{_var}/lib/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for Munge
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{libname}-devel = %{EVRD}

%description -n %{develname}
Header files for developing using Munge.

%files -n %{develname}
%doc COPYING
%{_includedir}/%{name}.h
%{_libdir}/libmunge.so
%{_libdir}/pkgconfig/*
%{_mandir}/man3/%{name}.3.*
%{_mandir}/man3/%{name}_ctx.3.*
%{_mandir}/man3/%{name}_ctx_copy.3.*
%{_mandir}/man3/%{name}_ctx_create.3.*
%{_mandir}/man3/%{name}_ctx_destroy.3.*
%{_mandir}/man3/%{name}_ctx_get.3.*
%{_mandir}/man3/%{name}_ctx_set.3.*
%{_mandir}/man3/%{name}_ctx_strerror.3.*
%{_mandir}/man3/%{name}_decode.3.*
%{_mandir}/man3/%{name}_encode.3.*
%{_mandir}/man3/%{name}_enum.3.*
%{_mandir}/man3/%{name}_enum_int_to_str.3.*
%{_mandir}/man3/%{name}_enum_is_valid.3.*
%{_mandir}/man3/%{name}_enum_str_to_int.3.*
%{_mandir}/man3/%{name}_strerror.3.*

#-----------------------------------------------------------------------------

%package -n     %{libname}
Summary:	Runtime libs for Munge
Group:		System/Libraries

%description -n %{libname}
This package contains the shared libraries (*.so*) which certain languages and
applications need to dynamically load and use Munge.

%files -n %{libname}
%doc COPYING
%{_libdir}/libmunge.so.%{major}*

%postun
%systemd_postun_with_restart %{name}.service

%preun
%systemd_preun %{name}.service

%pre
%sysusers_create_package munge %{SOURCE3}

%post
%tmpfiles_create munge.conf
%systemd_post %{name}.service

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
autoreconf -vfi
%configure  --disable-static --with-systemdunitdir=%{_unitdir}

# Get rid of some rpaths for /usr/sbin
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make


%install
%makeinstall_std

chmod 644 %{buildroot}/%{_sysconfdir}/sysconfig/%{name}

rm -rf %{buildroot}%{_initddir}

install -p -m 755 %{SOURCE1} %{buildroot}/%{_sbindir}/create-%{name}-key
install -p -D -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}

# Fix a few permissions
chmod 700 %{buildroot}%{_var}/lib/%{name} %{buildroot}%{_var}/log/%{name}
chmod 700 %{buildroot}%{_sysconfdir}/%{name}

# Create and empty key file 
touch %{buildroot}%{_sysconfdir}/%{name}/%{name}.key
chmod 400 %{buildroot}%{_sysconfdir}/%{name}/%{name}.key

# install tmpfiles config
install -d %{buildroot}%{_tmpfilesdir}
install -m0644 src/etc/munge.tmpfiles.conf %{buildroot}%{_tmpfilesdir}/munge.conf

# install sysyuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/munge.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3464 |21cr|munin-2.0.71-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       munin
Version:    2.0.71
Release:    1
Summary:    Network-wide graphing framework (grapher/gatherer)
License:    GPLv2
Group:      Monitoring
URL:        http://munin.projects.linpro.no/
Source0:    http://download.sourceforge.net/sourceforge/munin/%{name}-%{version}.tar.gz
Source1:    munin-node.service
Source2:    munin-asyncd.service
Source3:    munin-fcgi-html.service
Source4:    munin-fcgi-graph.service
Source5:    munin.tmpfiles
Source6:    munin.sysusers.conf
Patch0:     munin-2.0.18-use-system-fonts.patch
Requires:      apache-base
BuildRequires: html2text
BuildRequires: htmldoc
BuildRequires: java-devel
BuildRequires: perl(Module::Build)
BuildRequires: perl(JSON::PP)
Requires(pre): /bin/systemd-sysusers
BuildArch:     noarch

%description
Munin is a highly flexible and powerful solution used to create graphs of
virtually everything imaginable throughout your network, while still
maintaining a rattling ease of installation and configuration.

#--------------------------------------------------------------------
%package master
Group:       Monitoring
Summary:     Network-wide graphing framework (master)
Requires:    rrdtool
Requires:    %{name} = %{version}-%{release}
Recommends:  perl(CGI::Fast)
Requires:    perl(FCGI)
Requires:    spawn-fcgi

%description master
Munin is a highly flexible and powerful solution used to create graphs of
virtually everything imaginable throughout your network, while still
maintaining a rattling ease of installation and configuration.

This package contains the grapher/gatherer. You will only need one instance of
it in your network. It will periodically poll all the nodes in your network
it's aware of for data, which it in turn will use to create graphs and HTML
pages, suitable for viewing with your graphical web browser of choice.

#--------------------------------------------------------------------

%package node
Group:       Monitoring
Summary:     Network-wide graphing framework (node)
Requires:    procps >= 2.0.7
Requires:    sysstat
Requires:    %{name} = %{version}-%{release}

%description node
Munin is a highly flexible and powerful solution used to create graphs of
virtually everything imaginable throughout your network, while still
maintaining a rattling ease of installation and configuration.

This package contains node software. You should install it on all the nodes
in your network. It will know how to extract all sorts of data from the
node it runs on, and will wait for the gatherer to request this data for
further processing.

It includes a range of plugins capable of extracting common values such as
cpu usage, network usage, load average, and so on. Creating your own plugins
which are capable of extracting other system-specific values is very easy,
and is often done in a matter of minutes. You can also create plugins which
relay information from other devices in your network that can't run Munin,
such as a switch or a server running another operating system, by using
SNMP or similar technology.

#--------------------------------------------------------------------

%package java-plugins
Group:       Monitoring
Summary:     Java-plugins for munin
Requires:    %{name}-node = %{version}-%{release}
Requires:    jpackage-utils

%description java-plugins
java-plugins for munin-node.

#--------------------------------------------------------------------

%package async
Group:       Monitoring
Summary:     Asynchronous client tools for munin
Requires:    %{name}-node = %{version}-%{release}

%description async
Munin is a highly flexible and powerful solution used to create graphs of
virtually everything imaginable throughout your network, while still
maintaining a rattling ease of installation and configuration.
This package contains the tools necessary for setting up an asynchronous
client / spooling system

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
make \
    CONFIG=Makefile.config \
    PREFIX=%{_prefix} \
    DOCDIR=%{_docdir}/%{name} \
    MANDIR=%{_mandir} \
    HTMLDIR=%{_localstatedir}/lib/munin/html \
    DBDIR=%{_localstatedir}/lib/munin/data \
    PLUGSTATE=%{_localstatedir}/lib/munin/plugin-state \
    LOGDIR=%{_localstatedir}/log/munin \
    STATEDIR=/run/munin \
    CGIDIR=%{_datadir}/%{name}/cgi \
    CONFDIR=%{_sysconfdir}/munin \
    LIBDIR=%{_datadir}/munin \
    PERLLIB=%{perl_vendorlib} \
    HOSTNAME=localhost \
    build

%install

# ugly hack
cp common/blib/lib/Munin/Common/Defaults.pm Defaults.pm

make \
    CONFIG=Makefile.config \
    PREFIX=%{buildroot}%{_prefix} \
    DOCDIR=%{buildroot}%{_docdir}/%{name} \
    MANDIR=%{buildroot}%{_mandir} \
    HTMLDIR=%{buildroot}%{_localstatedir}/lib/munin/html \
    DBDIR=%{buildroot}%{_localstatedir}/lib/munin/data \
    PLUGSTATE=%{buildroot}%{_localstatedir}/lib/munin/plugin-state \
    CGIDIR=%{buildroot}%{_datadir}/%{name}/cgi \
    LOGDIR=%{buildroot}%{_localstatedir}/log/munin \
    STATEDIR=%{buildroot}/run/munin \
    LIBDIR=%{buildroot}%{_datadir}/munin \
    CONFDIR=%{buildroot}%{_sysconfdir}/munin \
    PERLLIB=%{buildroot}%{perl_vendorlib} \
    DESTDIR=%{buildroot} \
    HOSTNAME=localhost \
    CHOWN=/bin/true \
    CHGRP=/bin/true \
    CHMOD=/bin/true \
    CHECKUSER=true \
    CHECKGROUP=true \
    install install-doc

cp -f Defaults.pm %{buildroot}%{perl_vendorlib}/Munin/Common/Defaults.pm

# move template and static files in data
mv %{buildroot}%{_sysconfdir}/munin/templates %{buildroot}%{_datadir}/%{name}
mv %{buildroot}%{_sysconfdir}/munin/static %{buildroot}%{_datadir}/%{name}

# configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/munin/munin-conf.d
perl -pi \
    -e 's|^# ?tmpldir.*|tmpldir %{_datadir}/%{name}/templates|;' \
    -e 's|^# ?staticdir.*|staticdir %{_datadir}/%{name}/static|;' \
    -e 's|^# ?cgiurl_graph.*|cgiurl_graph /munin/cgi/munin-cgi-graph|;' \
   %{buildroot}%{_sysconfdir}/munin/munin.conf

# systemd service
install -d -m 755 %{buildroot}%{_unitdir}
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/munin-node.service
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/munin-asyncd.service
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/munin-fcgi-html.service
install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/munin-fcgi-graph.service

install -D -m 644 %{SOURCE5} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf

# plugins configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/munin/plugin-conf.d
cat > %{buildroot}%{_sysconfdir}/munin/plugin-conf.d/munin-node <<EOF
[diskstats]
user munin

[iostat_ios]
user munin
EOF

cat >%{buildroot}%{_sysconfdir}/munin/plugin-conf.d/hddtemp_smartctl <<EOF
[hddtemp_smartctl]
user root
EOF

cat >%{buildroot}%{_sysconfdir}/munin/plugin-conf.d/sendmail <<EOF
[sendmail*]
user root
env.mspqueue %{_localstatedir}/spool/clientmqueue
EOF

cat >%{buildroot}%{_sysconfdir}/munin/plugin-conf.d/postfix <<EOF
[postfix*]
user root
env.logfile info.log
env.logdir /var/log/mail
EOF

cat >%{buildroot}%{_sysconfdir}/munin/plugin-conf.d/df <<EOF
[df*]
env.exclude none unknown iso9660 squashfs udf romfs ramfs debugfs binfmt_misc rpc_pipefs fuse.gvfs-fuse-daemon
EOF

# remove the Sybase plugin for now, as it requires unavailable perl modules
rm -f %{buildroot}/usr/share/munin/plugins/sybase_space

# move munin-asyncd to /usr/sbin/ (FHS)
mv %{buildroot}/%{_datadir}/munin/munin-asyncd \
    %{buildroot}/%{_sbindir}/munin-asyncd

# remove duplicated fonts
rm %{buildroot}/usr/share/munin/DejaVuSans*.ttf

# additional configuration directory
install -d -m 755 %{buildroot}%{_sysconfdir}/munin/munin-conf.d

# state and log directories
install -d -m 755 %{buildroot}%{_localstatedir}/lib/munin
install -d -m 775 %{buildroot}%{_localstatedir}/lib/munin/data/cgi-tmp
install -d -m 775 %{buildroot}%{_localstatedir}/log/munin

# apache configuration
rm -f %{buildroot}%{_localstatedir}/lib/munin/html/.htaccess

install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
ScriptAlias /munin/cgi    %{_datadir}/munin/cgi
Alias       /munin/static %{_datadir}/munin/static
Alias       /munin        %{_localstatedir}/lib/munin/html

<Directory %{_datadir}/munin/cgi>
    Options ExecCGI
    Require all granted
</Directory>

<Directory %{_datadir}/munin/static>
    Require all granted
</Directory>

<Directory %{_localstatedir}/lib/munin/html>
    Require all granted
</Directory>
EOF

# cron task
install -d -m 755 %{buildroot}%{_sysconfdir}/cron.d
cat > %{buildroot}%{_sysconfdir}/cron.d/munin <<EOF
*/5 * * * *     munin /usr/bin/munin-cron
EOF

# logrotate
install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/munin-node <<EOF
/var/log/munin/munin-node.log {
    postrotate
        service munin-node reload
    endscript

}
EOF
cat > %{buildroot}%{_sysconfdir}/logrotate.d/munin <<EOF
/var/log/munin/munin-update.log /var/log/munin/munin-graph.log /var/log/munin/munin-html.log /var/log/munin/munin-limits.log {
}
EOF

# add changelog to installed documentation files
install -m 644 ChangeLog %{buildroot}%{_docdir}/%{name}/ChangeLog

# install sysuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/munin.conf


%pre
%sysusers_create_package munin %{SOURCE6}

%post
%tmpfiles_create %{name}.conf

%post node
if [ $1 = 1 ]; then
    /usr/sbin/munin-node-configure --shell | sh
fi
%systemd_post munin-node.service

%preun node
%systemd_preun munin-node.service

%files
%doc %{_docdir}/%{name}
%dir %{_datadir}/munin
%dir %{_sysconfdir}/munin
%dir %{_localstatedir}/lib/munin
%attr(-,munin,apache) %{_localstatedir}/log/munin
%{_prefix}/lib/tmpfiles.d/munin.conf
%{perl_vendorlib}/Munin
%{_sysusersdir}/munin.conf
%exclude %{perl_vendorlib}/Munin/Master
%exclude %{perl_vendorlib}/Munin/Node
%exclude %{perl_vendorlib}/Munin/Plugin
%exclude %{perl_vendorlib}/Munin/Plugin.pm

%files master
%{_bindir}/munin-cron
%{_bindir}/munin-check
%{_bindir}/munin-get
%{_datadir}/munin/munin-html
%{_datadir}/munin/munin-limits
%{_datadir}/munin/munin-update
%{_datadir}/munin/munin-datafile2storable
%{_datadir}/munin/munin-storable2datafile
%{_datadir}/munin/cgi
%{perl_vendorlib}/Munin/Master
%{_datadir}/munin/static
%{_datadir}/munin/templates
%{_datadir}/munin/munin-graph
%{_unitdir}/munin-fcgi-graph.service
%{_unitdir}/munin-fcgi-html.service
%dir %{_sysconfdir}/munin/munin-conf.d
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/munin/munin.conf
%config(noreplace) %{_sysconfdir}/cron.d/munin
%config(noreplace) %{_sysconfdir}/logrotate.d/munin
%attr(-,munin,munin) %{_localstatedir}/lib/munin/data
%attr(-,munin,munin) %{_localstatedir}/lib/munin/html
%{_mandir}/man8/munin.8*
%{_mandir}/man8/munin-update.8*
%{_mandir}/man8/munin-limits.8*
%{_mandir}/man8/munin-html.8*
%{_mandir}/man8/munin-cron.8*
%{_mandir}/man8/munin-check.8*
%{_mandir}/man8/munin-graph.8*
%{_mandir}/man5/munin.conf.5*
%{_mandir}/man3/Munin::*
%{_mandir}/man1/munin-get.1*

%files node
#% doc %{_docdir}/%{name}
%dir %{_sysconfdir}/munin/plugins
%dir %{_sysconfdir}/munin/plugin-conf.d
%config(noreplace) %{_sysconfdir}/munin/munin-node.conf
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/*
%config(noreplace) %{_sysconfdir}/logrotate.d/munin-node
%{_unitdir}/munin-node.service
%{_bindir}/munindoc
%{_sbindir}/munin-run
%{_sbindir}/munin-node
%{_sbindir}/munin-node-configure
%attr(-,munin,munin) %{_localstatedir}/lib/munin/plugin-state
%{_datadir}/munin/plugins
%exclude %{_datadir}/munin/plugins/jmx_
%{perl_vendorlib}/Munin/Node
%{perl_vendorlib}/Munin/Plugin
%{perl_vendorlib}/Munin/Plugin.pm
%{_mandir}/man1/munindoc.1*
%{_mandir}/man1/munin-run.1*
%{_mandir}/man1/munin-node.1*
%{_mandir}/man1/munin-node-configure.1*
%{_mandir}/man5/munin-node.conf.5*

%files java-plugins
%{_datadir}/munin/munin-jmx-plugins.jar
%{_datadir}/munin/plugins/jmx_

%files async
%{_unitdir}/munin-asyncd.service
%{_datadir}/munin/munin-async
%{_sbindir}/munin-asyncd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3465 |21cr|munin-plugins-sympa-20090617-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		munin-plugins-sympa
Version:	20090617
Release:	7
Summary:	Munin sympa plugins
Group:		Networking/Other
License:	BSD
URL:		https://www.lists.uni-karlsruhe.de/munin/
Source:     https://www.lists.uni-karlsruhe.de/munin/sympa4munin.tar.gz
Patch:      munin-plugins-sympa-fix-spool-script.patch
BuildArch:  noarch

%description
This package contains two plugins, one to monitor the elements in your
spool-directory and a second one which parses your sympa-log. 

%prep
%setup -c -q
%patch -p 1

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/munin/plugins
install -m 755 sympa_spool %{buildroot}%{_datadir}/munin/plugins
install -m 755 sympa_stats %{buildroot}%{_datadir}/munin/plugins

perl -pi -e 's|^#!/usr/local/bin/perl|#!%{_bindir}/perl|' \
    %{buildroot}%{_datadir}/munin/plugins/sympa_stats

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/munin/plugins/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3466 |21cr|munin-plugins-xen-20080625-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		munin-plugins-xen
Version:	20080625
Release:	6
Summary:	Munin xen plugins
Group:		Networking/Other
License:	BSD
Source0:	http://www.skullkrusher.net/linux/scripts/xen_percent
Source1:    http://munin.projects.linpro.no/attachment/wiki/PluginCat/xen_traffic_all
Patch0:     xen_traffic_all-allow-multiple-interfaces.patch
BuildArch:  noarch

%description
Munin plugins for monitoring xen.

%prep
%setup -c -T
cp %{SOURCE0} xen_percent
cp %{SOURCE1} xen_traffic_all
%patch0 -p 0

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/munin/plugins
install -m 755 xen_percent %{buildroot}%{_datadir}/munin/plugins
install -m 755 xen_traffic_all %{buildroot}%{_datadir}/munin/plugins

install -d -m 755 %{buildroot}%{_sysconfdir}/munin/plugin-conf.d
cat > %{buildroot}%{_sysconfdir}/munin/plugin-conf.d/xen << EOF
[xen_traffic_all]
user root

[xen_percent]
user root

EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/munin/plugins/*
%config(noreplace) %{_sysconfdir}/munin/plugin-conf.d/xen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3467 |21cr|mupdf-1.22.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define debug_package %{nil}

%define devname %mklibname %{name} -d

Summary:	MuPDF is a lightweight PDF viewer and toolkit written in portable C
Name:		mupdf
Version:	1.22.1
Release:	2
License:	GPLv3
Group:		Office
Url:		http://mupdf.com/
Source0:	https://mupdf.com/downloads/archive/%{name}-%{version}-source.tar.gz
Source1:	mupdf.desktop
Source2:	mupdf16.png
Source3:	mupdf32.png
Source4:	mupdf48.png
BuildRequires:	jbig2dec-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(freeglut)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(mujs)

%description
MuPDF is a lightweight PDF viewer and toolkit written in portable C.

The renderer in MuPDF is tailored for high quality anti-aliased
graphics.  MuPDF renders text with metrics and spacing accurate to
within fractions of a pixel for the highest fidelity in reproducing
the look of a printed page on screen.

MuPDF has a small footprint.  A binary that includes the standard
Roman fonts is only one megabyte.  A build with full CJK support
(including an Asian font) is approximately five megabytes.

MuPDF has support for all non-interactive PDF 1.7 features, and the
toolkit provides a simple API for accessing the internal structures of
the PDF document.  Example code for navigating interactive links and
bookmarks, encrypting PDF files, extracting fonts, images, and
searchable text, and rendering pages to image files is provided.

%files
%doc CHANGES CONTRIBUTORS README COPYING
%doc docs/*
%{_bindir}/mupdf-gl
%{_bindir}/mupdf-x11
%{_bindir}/mupdf-x11-curl
%{_bindir}/muraster
%{_bindir}/mutool
%{_mandir}/man1/mupdf.1*
%{_mandir}/man1/mutool.1*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains header files for developing
applications that use MuPDF toolkit.

%files -n %{devname}
%{_libdir}/*.a
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-source

rm -rf thirdparty/{curl,freeglut,freetype,harfbuzz,jbig2dec,lcms2,leptonica,libjpeg,mujs,openjpeg,tesseract,zlib}
%apply_patches

%build
%setup_compile_flags
export XCFLAGS="%{optflags} -fPIC -DJBIG_NO_MEMENTO -DTOFU -DTOFU_CJK"
%make prefix=%{_prefix} libdir=%{_libdir} \
    USE_SYSTEM_LIBS=yes \
    USE_SYSTEM_LCMS2=yes \
    USE_SYSTEM_GUMBO=no \
    USE_SYSTEM_MUJS=yes \
    USE_SYSTEM_FREETYPE=yes

%install
%make_install prefix=%{_prefix} libdir=%{_libdir} \
    USE_SYSTEM_LIBS=yes \
    USE_SYSTEM_LCMS2=yes \
    USE_SYSTEM_GUMBO=no \
    USE_SYSTEM_MUJS=yes \
    USE_SYSTEM_FREETYPE=yes

## fix strange permissons (Fedora)
chmod 0644 %{buildroot}%{_libdir}/*.a
find %{buildroot}%{_mandir} -type f -exec chmod 0644 {} \;
find %{buildroot}%{_docdir} -type f -exec chmod 0644 {} \;
find %{buildroot}%{_includedir} -type f -exec chmod 0644 {} \;

desktop-file-install \
    --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1}

# install menu icons
install -D -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m 0644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m 0644 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3468 |21cr|mupen64plus-2.5.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Plugin-Based Nintendo 64 Emulator
Name:		mupen64plus
Version:	2.5.9
Release:	6
License:	GPLv2+
Group:		Emulators
Url:		https://mupen64plus.org/
Source0:	https://github.com/mupen64plus/mupen64plus-core/releases/download/%{version}/%{name}-bundle-src-%{version}.tar.gz
Patch0:		mupen64plus-bundle-src-2.5.9-avoid-segfault.patch
Patch1:		mupen64plus-make-archs.patch
Patch2:		mupen64plus-gcc10.patch
BuildRequires:	nasm
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)
Requires:	%{libname} = %{EVRD}
Requires:	fonts-ttf-dejavu
Suggests:	%{name}-ui-console
Suggests:	%{name}-ui-m64py

%description
Mupen64Plus is a plugin-based N64 emulator which is capable of accurately
playing many games. It includes four MIPS R4300 CPU emulators, with dynamic
recompilers for 32-bit x86 and 64-bit amd64 systems.  It supports plugins for
audio, graphical rendering (RDP), the signal co-processor (RSP), and input.

This package contains only common files for Mupen64Plus. You need to install
a frontend application to run games. For example, %{name}-ui-console or
%{name}-ui-m64py.

%files
%doc source/%{name}-core/README.md
%dir %{_datadir}/mupen64plus2
%dir %{_libdir}/mupen64plus2
%{_datadir}/mupen64plus2/mupencheat.txt
%{_datadir}/mupen64plus2/%{name}.ini
%{_datadir}/mupen64plus2/font.ttf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared Library Interface to Mupen64plus
Group:		System/Libraries

%description -n %{libname}
Mupen64Plus is a plugin-based N64 emulator which is capable of accurately
playing many games. It includes four MIPS R4300 CPU emulators, with dynamic
recompilers for 32-bit x86 and 64-bit amd64 systems.  It supports plugins for
audio, graphical rendering (RDP), the signal co-processor (RSP), and input.

This package contains the shared library interface for frontends.

%files -n %{libname}
%doc source/%{name}-core/LICENSES
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Include Files for Mupen64plus Development
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains all necessary include files to develop frontends against
the Mupen64plus shared library interface.

%files -n %{devname}
%doc source/%{name}-core/LICENSES
%doc source/%{name}-core/README
%doc source/%{name}-core/RELEASE
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%package ui-console
Summary:	Command Line Frontend for the Mupen64plus Nintendo 64 Emulator
Group:		Emulators
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-plugin-audio
Requires:	%{name}-plugin-video
Requires:	%{name}-plugin-input
Requires:	%{name}-plugin-rsp-hle

%description ui-console
Mupen64Plus is a plugin-based N64 emulator which is capable of accurately
playing many games.

This package contains a command line frontend.

%files ui-console
%doc source/%{name}-ui-console/README
%doc source/%{name}-ui-console/RELEASE
%doc %{_mandir}/man6/%{name}.6*
%license source/%{name}-ui-console/LICENSES
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%package plugin-audio-sdl
Summary:	SDL Audio Plugin for the Mupen64plus Nintendo 64 Emulator
Group:		Emulators
Provides:	%{name}-plugin-audio = %{EVRD}

%description plugin-audio-sdl
This package contains the SDL audio plugin for the Mupen64plus Nintendo 64
Emulator.

%files plugin-audio-sdl
%doc source/%{name}-audio-sdl/RELEASE
%license source/%{name}-audio-sdl/LICENSES
%{_libdir}/mupen64plus2/%{name}-audio-sdl.so

#----------------------------------------------------------------------------

%package plugin-input-sdl
Summary:	SDL Input Plugin for the Mupen64plus Nintendo 64 Emulator
Group:		Emulators
Provides:	%{name}-plugin-input = %{EVRD}

%description plugin-input-sdl
This package contains the SDL input plugin for the Mupen64plus Nintendo 64
Emulator.
It has LIRC Infrared remote control interface and Rumble Pak support.

%files plugin-input-sdl
%doc source/%{name}-input-sdl/AUTHORS
%doc source/%{name}-input-sdl/README.md
%doc source/%{name}-input-sdl/RELEASE
%license source/%{name}-input-sdl/COPYING
%license source/%{name}-input-sdl/LICENSES
%{_datadir}/mupen64plus2/InputAutoCfg.ini
%{_libdir}/mupen64plus2/%{name}-input-sdl.so

#----------------------------------------------------------------------------

%package plugin-rsp-hle
Summary:	RSP High-Level Emulation Plugin For the Mupen64plus
Group:		Emulators

%description plugin-rsp-hle
This package contains the RSP High-Level emulation plugin for the Mupen64plus
Nintendo 64 Emulator.

%files plugin-rsp-hle
%doc source/%{name}-rsp-hle/LICENSES
%doc source/%{name}-rsp-hle/RELEASE
%{_libdir}/mupen64plus2/%{name}-rsp-hle.so

#----------------------------------------------------------------------------

%package plugin-video-rice
Summary:	Rice Video Plugin for the Mupen64plus Nintendo 64 Emulator
Group:		Emulators
Provides:	%{name}-plugin-video = %{EVRD}

%description plugin-video-rice
This package contains the Rice Video Plugin for the Mupen64plus Nintendo 64
Emulator. It provides Hi-resolution texture support.

%files plugin-video-rice
%doc source/%{name}-video-rice/README
%doc source/%{name}-video-rice/RELEASE
%license source/%{name}-video-rice/LICENSES
%{_datadir}/mupen64plus2/RiceVideoLinux.ini
%{_libdir}/mupen64plus2/%{name}-video-rice.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-bundle-src-%{version}

%build
%make -C source/%{name}-core/projects/unix all \
	OPTFLAGS="%{optflags}" \
	SHAREDIR=%{_datadir}/mupen64plus2/ \
	LIRC=1 \
	V=1

%make -C source/%{name}-ui-console/projects/unix all \
	OPTFLAGS="%{optflags}" \
	COREDIR=%{_libdir}/ \
	SHAREDIR=%{_datadir}/mupen64plus2/ \
	PLUGINDIR=%{_libdir}/mupen64plus2/ \
	V=1

%make -C source/%{name}-audio-sdl/projects/unix all \
	OPTFLAGS="%{optflags}" \
	V=1

%make -C source/%{name}-input-sdl/projects/unix all \
	OPTFLAGS="%{optflags}" \
	V=1

%make -C source/%{name}-rsp-hle/projects/unix all \
	OPTFLAGS="%{optflags}" \
	V=1

%make -C source/%{name}-video-rice/projects/unix all \
	OPTFLAGS="%{optflags}" \
	V=1
	
%install
%makeinstall_std -C source/%{name}-core/projects/unix \
	PREFIX="%{_prefix}" \
	SHAREDIR=%{_datadir}/mupen64plus2/ \
	LIBDIR=%{_libdir}/ \
	INCDIR=%{_includedir}/%{name}/ \
	LIRC=1 \
	INSTALL_STRIP_FLAG=

pushd %{buildroot}%{_libdir}
	ln -sf lib%{name}.so.%{major} lib%{name}.so
popd

%makeinstall_std -C source/%{name}-ui-console/projects/unix \
	PREFIX="%{_prefix}" \
	BINDIR=%{_bindir} \
	MANDIR=%{_mandir}/ \
	NO_ASM=1 \
	INSTALL_STRIP_FLAG=

%makeinstall_std -C source/%{name}-audio-sdl/projects/unix \
	PREFIX="%{_prefix}" \
	LIBDIR=%{_libdir}/mupen64plus2/ \
	INSTALL_STRIP_FLAG=

%makeinstall_std -C source/%{name}-input-sdl/projects/unix \
	PREFIX="%{_prefix}" \
	SHAREDIR=%{_datadir}/mupen64plus2/ \
	LIBDIR=%{_libdir}/mupen64plus2/ \
	INSTALL_STRIP_FLAG=

%makeinstall_std -C source/%{name}-rsp-hle/projects/unix \
	PREFIX="%{_prefix}" \
	LIBDIR=%{_libdir}/mupen64plus2/ \
	INSTALL_STRIP_FLAG=

%makeinstall_std -C source/%{name}-video-rice/projects/unix \
	PREFIX="%{_prefix}" \
	SHAREDIR=%{_datadir}/mupen64plus2/ \
	LIBDIR=%{_libdir}/mupen64plus2/ \
	INSTALL_STRIP_FLAG=

chmod -R 0755 %{buildroot}%{_libdir}

mv %{buildroot}%{_libdir}/mupen64plus2/%{name}/%{name}*.so %{buildroot}%{_libdir}/mupen64plus2/
rmdir %{buildroot}%{_libdir}/mupen64plus2/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3469 |21cr|mupen64plus-ui-m64py-0.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Could be noarch package but depends on arch library path
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define oname m64py

Summary:	M64Py - A frontend for Mupen64Plus
Name:		mupen64plus-ui-%{oname}
Version:	0.2.5
Release:	1
License:	GPLv3+
Group:		Emulators
Url:		https://m64py.sourceforge.net
Source0:	https://sourceforge.net/projects/m64py/files/%{oname}-%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-qt5-devel
Requires:	PyQt5
Requires:	mupen64plus >= 2.5
Requires:	python3-opengl

%description
M64Py is a Qt5 front-end (GUI) for Mupen64Plus 2.0, a cross-platform
plugin-based Nintendo 64 emulator. Front-end is written in Python and
it provides a user-friendly interface over Mupen64Plus shared library.

%files
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/pixmaps/%{oname}.png
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
sed s,"/usr/lib/mupen64plus","%{_libdir}/mupen64plus2",g -i src/m64py/platform.py

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3470 |21cr|mures-0.5-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Clone of Sega's "Chu Chu Rocket", a multi-player puzzle game
Name:		mures
Version:	0.5
Release:	20
License:	GPL
Group:		Games/Arcade
URL:		http://mures.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/mures/%{name}-%{version}.tar.bz2
Source1:	%{name}-48.xpm
Patch0:		mures-0.5-linkage.patch
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	SDL_net-devel
BuildRequires:	SDL_ttf-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	texinfo
BuildRequires:	imagemagick
# Author: Adam D'Angelo <dangelo@ntplx.net>

%description
Mures is a cross-platform clone of Sega's "Chu Chu Rocket" written using
C. To start the game, run "mures -hN -aiM" where N and M are the number of
human and computer players at the local computer. Press enter to start the
game, press P to pause, and Q to quit.
- Player 1: Use the mouse to target, and click and drag in the desired
direction to place an arrow.
- Player 2: Use the arrow keys to target, and the number keypad to place
arrows.
- Player 3: Use A,W,S,D to target and I,J,K,L to place arrows.

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure
make

%install
rm -rf %{buildroot}

%makeinstall_std

mv %{buildroot}/%{_bindir}/%{name} %{buildroot}/%{_bindir}/%{name}.real
cat << EOF > %{buildroot}/%{_bindir}/%{name}
#!/bin/sh

pushd %{_libdir}/%{name}
    %{name}.real --no3d "\$@"
popd
EOF
chmod +x %{buildroot}/%{_bindir}/%{name}

mkdir -p %{buildroot}/%{_libdir}/%{name}
cp -a src/images src/maps src/sounds src/gui src/*.lua src/textures %{buildroot}/%{_libdir}/%{name}
rm -rf %{buildroot}/%{_libdir}/%{name}/{*,*/*}/Makefile*

install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_liconsdir}

convert -size 48x48 %{SOURCE1} %{buildroot}/%{_liconsdir}/%{name}.png
convert -size 32x32 %{SOURCE1} %{buildroot}/%{_iconsdir}/%{name}.png
convert -size 16x16 %{SOURCE1} %{buildroot}/%{_miconsdir}/%{name}.png


# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Mures
Comment=Multi-player puzzle game
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%files
%doc AUTHORS ChangeLog INSTALL README TODO
%{_bindir}/*
%{_libdir}/%{name}
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3471 |21cr|murrine-themes-2.98.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define themesdir %{_datadir}/themes

Summary:	Themes for Murrine
Name:		murrine-themes
Version:	2.98.11
Release:	1
License:	GPL
Group:		Graphical desktop/GNOME
Url:		http://www.cimitan.com/murrine/themes/gallery
Source0:	MurrinaAquaIsh.tar.lzma
Source1:	MurrinaBlue.tar.lzma
Source2:	MurrinaElement.tar.lzma
Source3:	MurrinaFancyCandy.tar.lzma
Source4:	MurrinaGilouche.tar.lzma
Source5:	MurrinaLoveGray.tar.lzma
Source6:	MurrinaOransun.tar.lzma
Source7:	MurrinaTango.tar.lzma
Source8:	MurrinaVerdeOlivo.tar.lzma
Source9:	MurrineRounded.tar.lzma
Source10:	MurrineThemePack.tar.lzma
Source11:	Murreza.tar.lzma
Source12:	Murrine-Sky.tar.lzma
BuildRequires:	lzma
Requires:	murrine
BuildArch:	noarch

%description
Various GTK2 and Metacity themes for the Murrine GTK2.x engine.

%files
%{themesdir}/*

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{themesdir}
lzma -dc %{SOURCE0} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE1} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE2} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE3} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE4} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE5} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE6} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE7} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE8} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE9} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE10} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE11} | tar fx - -C %{buildroot}%{themesdir}
lzma -dc %{SOURCE12} | tar fx - -C %{buildroot}%{themesdir}

mv %{buildroot}%{themesdir}/Murreza/* %{buildroot}%{themesdir}/
rm -rf %{buildroot}%{themesdir}/Murreza


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3472 |21cr|muse-4.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

# No need to provide & require internal libraries
%global	_privatelibs libmuse_.*[.]so.*
%global	__provides_exclude ^(%{_privatelibs})$
%global	__requires_exclude ^(%{_privatelibs})$

%define	majorver 4.2

Summary:	Midi/Audio Music Sequencer
Name:		muse
Version:	%{majorver}.1
Release:	2
# Original freeverb plugin was public domain; givertcap (not built) is GPLv2
# The rest, including the core of muse is distributed under GPLv2+
License:	Public Domain and GPLv2 and GPLv2+ and LGPLv2+
Group:		Sound
Url:		https://muse-sequencer.github.io/
Source0:	https://github.com/muse-sequencer/muse/releases/download/4.0.0/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		muse-4.2.1-fix-ladish-detection.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	extra-cmake-modules
BuildRequires:	git
BuildRequires:	ladspa-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa) >= 1.1.3
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(fluidsynth)
# The two below are needed only for lv2 plugins GUI
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblash)
BuildRequires:	pkgconfig(libinstpatch-1.0)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(lilv-0)
BuildRequires:	pkgconfig(lrdf)
BuildRequires:	pkgconfig(lv2) >= 1.18.0
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(rubberband) >= 1.8.1
BuildRequires:	pkgconfig(rtaudio) >= 5.0
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(serd-0)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(sord-0)
BuildRequires:	pkgconfig(uuid)

%description
MusE is a MIDI/Audio sequencer with recording and editing capabilities. It can
perform audio effects like chorus/flanger in real-time via LADISH and it
supports Jack and ALSA interfaces. MusE aims to be a complete multi-track
virtual studio for Linux.

%files
%{_docdir}/%{name}-%{majorver}/
%{_bindir}/%{name}*
%{_bindir}/grepmidi
%{_libdir}/%{name}-%{majorver}/
%{_datadir}/%{name}-%{majorver}/
%{_datadir}/applications/io.github.muse_sequencer.Muse.desktop
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%{_datadir}/metainfo/io.github.muse_sequencer.Muse.appdata.xml
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/grepmidi*
%{_mandir}/man1/%{name}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

# Fix perms
pushd synti
	find . -name "*.cpp" -o -name "*.h" |xargs chmod 0644
popd
chmod -x muse/lv2Gtk2Support/lv2Gtk2Support.cpp

# Fix Python shebangs
sed -i -e 's|/usr/bin/env python3|/usr/bin/python3|' -e 's|/usr/bin/python$|%{__python3}|' share/scripts/* utils/*


%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release	\
	-DENABLE_RTAUDIO="ON"		\
	-DENABLE_FLUID="ON"		\
	-DMODULES_BUILD_STATIC="ON"	\
	-DMusE_DOC_DIR="%{_docdir}/%{name}-%{majorver}/"
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3473 |21cr|musescore-4.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	srcname		MuseScore
%define	shortname	mscore
%define	shortver	%(echo %{version}|cut -d. -f1,2)

Summary:	Linux MusE Score Typesetter
Name:		musescore
Version:	4.3.2
Release:	1
# (Fedora) rtf2html is LGPLv2+
# paper4.png paper5.png are LGPLv3
# the rest is GPLv2
# Soundfont is MIT
# Fonts are OFL
License:	GPLv2+ and LGPLv2+ and LGPLv3 and CC-BY and MIT and OFL
Group:		Sound
Url:		https://musescore.org
Source0:	https://github.com/musescore/MuseScore/archive/refs/tags/v%{version}.tar.gz?/%{srcname}-%{version}.tar.gz
BuildRequires:	cmake >= 3.16.0
BuildRequires:	desktop-file-utils
# For big docs
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	gzip
BuildRequires:	perl(Pod::Usage)
BuildRequires:	qt5-linguist
BuildRequires:	qt5-tools
BuildRequires:	texlive-dvips
BuildRequires:	texlive-latex
BuildRequires:	lame-devel
# BuildRequires:	lib64qtsingleapplication-qt5-devel
BuildRequires:	pkgconfig(alsa) >= 1.0.0
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(freetype2) >= 2.5.2
BuildRequires:	pkgconfig(jack) >= 0.98.0
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(ogg) >= 1.3.0
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(portaudio-2.0) >= 19
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.5
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5NetworkAuth)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5QuickTemplates2)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(sndfile) >= 1.0.25
BuildRequires:	pkgconfig(vorbis) >= 1.3.3
Requires:	qt5-qtquickcontrols2-qml
Requires:	%{name}-fonts = %{EVRD}
Requires:	soundfont2-default
%rename		mscore

%description
MuseScore stands for Linux MusE Score Typesetter.
It features:
  - WYSIWYG design, notes are entered on a "virtual note sheet".
  - TrueType font(s) for printing & display allows for high quality scaling to
    all sizes.
  - Unlimited number of staves.
  - Up to four voices per staff.
  - Easy & fast note entry with mouse, keyboard or MIDI.
  - Many editing functions.
  - MusicXML and Midi (SMF) import/export.
  - MuseData import.
  - Integrated sequencer and FluidSynth software synthesizer to play scores.
  - Print or create pdf files.
  - Translated in 26 languages.

%files
%license LICENSE.*
%doc README.md doc/*.md
%{_bindir}/%{shortname}
%{_datadir}/%{shortname}-%{shortver}
%exclude %{_datadir}/%{shortname}-%{shortver}/manual/*
%{_datadir}/applications/org.%{name}.%{srcname}.desktop
%{_datadir}/metainfo/org.%{name}.%{srcname}.appdata.xml
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/soundfonts/FluidR3Mono_GM.sf3
%{_iconsdir}/hicolor/*/apps/%{shortname}.png
%{_iconsdir}/hicolor/*/mimetypes/*
%{_mandir}/man1/%{shortname}.1*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package doc
Summary:	MuseScore documentation
License:	CC-BY
Group:		Development/Other
Requires:	%{name} = %{EVRD}
BuildArch:	noarch
%rename	mscore-doc

%description doc
MuseScore is a free cross platform WYSIWYG music notation program.
This package contains the user manual of MuseScore in different languages.

%files doc
%doc %{_datadir}/%{shortname}-%{shortver}/manual/*

#----------------------------------------------------------------------------

%package fonts
Summary:	MuseScore fonts
License:	GPLv2+ with exceptions and OFL
Group:		Publishing
BuildRequires:	fontforge
BuildRequires:	tetex
BuildRequires:	texlive-mf2pt1
BuildRequires:	texlive-metapost.bin
BuildRequires:	texlive-cm-lgc
BuildArch:	noarch
%rename	mscore-fonts

%description fonts
MuseScore is a free cross platform WYSIWYG music notation program.
This package contains the musical notation fonts for use of MuseScore.

%files fonts
%{_datadir}/fonts/%{shortname}/bravura/*
%{_datadir}/fonts/%{shortname}/campania/*
%{_datadir}/fonts/%{shortname}/edwin/*
%{_datadir}/fonts/%{shortname}/gootville/*
%{_datadir}/fonts/%{shortname}/leland/*
%{_datadir}/fonts/%{shortname}/musejazz/*
%{_datadir}/fonts/%{shortname}/petaluma/*
%{_datadir}/fonts/%{shortname}/*.ttf
%{_datadir}/fonts/%{shortname}/*.otf
%{_datadir}/fonts/%{shortname}/*.json
%{_datadir}/fonts/%{shortname}/*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

# Remove bundled stuff
rm -vrf thirdparty/singleapp
rm -vrf thirdparty/freetype
rm -vrf thirdparty/poppler

# (Fedora) Fix EOL encoding
sed 's|\r||' thirdparty/rtf2html/README > tmpfile
touch -r thirdparty/rtf2html/README tmpfile
mv -f tmpfile thirdparty/rtf2html/README

# Fix perms
find -name "*.cpp" -o -name "*.h" | xargs chmod 0644


%build
# There is already a directory named "build"
mkdir -p build.release
pushd build.release
# Otherwise the final mscore linking fails
export LDFLAGS="%{ldflags} -ldl"
	%cmake_qt5 ../.. -DCMAKE_BUILD_TYPE=RELEASE \
		-DMUSESCORE_BUILD_CONFIG=release \
		-DUSE_SYSTEM_FREETYPE="ON" \
		-DBUILD_JACK="ON" \
		-DBUILD_UNITY="OFF" \
		-DBUILD_CLOUD_MODULE="ON" \
		-DBUILD_CRASHPAD_CLIENT="OFF" \
		-DPACKAGE_FILE_ASSOCIATION="ON" \
		-DBUILD_UNIT_TESTS="OFF"

	%make lrelease
	%make manpages
	%make
popd



%install
pushd build.release
	%makeinstall_std -C build PREFIX=%{_prefix}
popd

# Install fonts
mkdir -p %{buildroot}%{_datadir}/fonts/%{shortname}
mkdir -p %{buildroot}%{_datadir}/fonts/%{shortname}/bravura
mkdir -p %{buildroot}%{_datadir}/fonts/%{shortname}/campania
mkdir -p %{buildroot}%{_datadir}/fonts/%{shortname}/edwin
mkdir -p %{buildroot}%{_datadir}/fonts/%{shortname}/gootville
mkdir -p %{buildroot}%{_datadir}/fonts/%{shortname}/leland
mkdir -p %{buildroot}%{_datadir}/fonts/%{shortname}/musejazz
mkdir -p %{buildroot}%{_datadir}/fonts/%{shortname}/petaluma
install -pm 644 fonts/*.ttf %{buildroot}%{_datadir}/fonts/%{shortname}
install -pm 644 fonts/*.xml %{buildroot}%{_datadir}/fonts/%{shortname}
install -pm 644 fonts/%{shortname}/*.ttf %{buildroot}%{_datadir}/fonts/%{shortname}
install -pm 644 fonts/%{shortname}/*.json %{buildroot}%{_datadir}/fonts/%{shortname}
install -pm 644 fonts/bravura/*.otf %{buildroot}%{_datadir}/fonts/%{shortname}
install -pm 644 fonts/bravura/*.json %{buildroot}%{_datadir}/fonts/%{shortname}/bravura
install -pm 644 fonts/campania/*.otf %{buildroot}%{_datadir}/fonts/%{shortname}/campania
install -pm 644 fonts/edwin/*.otf %{buildroot}%{_datadir}/fonts/%{shortname}/edwin
install -pm 644 fonts/gootville/*.otf %{buildroot}%{_datadir}/fonts/%{shortname}/gootville
install -pm 644 fonts/gootville/*.json %{buildroot}%{_datadir}/fonts/%{shortname}/gootville
install -pm 644 fonts/leland/*.otf %{buildroot}%{_datadir}/fonts/%{shortname}/leland
install -pm 644 fonts/leland/*.json %{buildroot}%{_datadir}/fonts/%{shortname}/leland
install -pm 644 fonts/musejazz/*.otf %{buildroot}%{_datadir}/fonts/%{shortname}/musejazz
install -pm 644 fonts/musejazz/*.json %{buildroot}%{_datadir}/fonts/%{shortname}/musejazz
install -pm 644 fonts/petaluma/*.otf %{buildroot}%{_datadir}/fonts/%{shortname}/petaluma
install -pm 644 fonts/petaluma/*.json %{buildroot}%{_datadir}/fonts/%{shortname}/petaluma

pushd  %{buildroot}%{_datadir}/fonts/%{shortname}
	cd bravura
	ln -s ../Bravura.otf .
	ln -s ../BravuraText.otf .
	cd ..
	ln -s campania/Campania.otf ./Campania.otf
	ln -s gootville/Gootville.otf ./Gootville.otf
	ln -s gootville/GootvilleText.otf ./GootvilleText.otf
	ln -s edwin/Edwin-BdIta.otf ./BdIta.otf
	ln -s edwin/Edwin-Bold.otf ./Edwin-Bold.otf
	ln -s edwin/Edwin-Italic.otf ./Edwin-Italic.otf
	ln -s edwin/Edwin-Roman.otf ./Edwin-Roman.otf
	ln -s leland/Leland.otf ./Leland.otf
	ln -s leland/LelandText.otf ./LelandText.otf
	ln -s musejazz/MuseJazz.otf ./MuseJazz.otf
	ln -s musejazz/MuseJazzText.otf ./MuseJazzText.otf
	ln -s petaluma/Petaluma.otf ./Petaluma.otf
	ln -s petaluma/PetalumaScript.otf ./PetalumaScript.otf
	ln -s petaluma/PetalumaText.otf ./PetalumaText.otf
popd

# Install soundfont
install -Dm 0644 -p share/sound/FluidR3Mono_GM.sf3 %{buildroot}%{_datadir}/soundfonts/FluidR3Mono_GM.sf3

# Install manual
mkdir -p %{buildroot}%{_datadir}/%{shortname}-%{shortver}/manual/plugins
install -m 0644 share/manual/reference-en.pdf %{buildroot}%{_datadir}/%{shortname}-%{shortver}/manual
install -m 0644 share/manual/plugins/manual.css %{buildroot}%{_datadir}/%{shortname}-%{shortver}/manual/plugins

# (Fedora) gather the doc files in one location...
cp -p thirdparty/rtf2html/ChangeLog ChangeLog.rtf2html
cp -p thirdparty/rtf2html/COPYING.LESSER COPYING.LESSER.rtf2html
cp -p thirdparty/rtf2html/README README.rtf2html
cp -p thirdparty/rtf2html/README.mscore README.mscore.rtf2html
cp -p thirdparty/rtf2html/README.ru README.ru.rtf2html
cp -p share/wallpapers/COPYRIGHT COPYING.wallpaper
cp -p fonts/bravura/OFL.txt COPYING.OFL
# ... and fix perms
chmod -x README.* COPYING.* ChangeLog.*

# Process .mcsz and .mcsx demo files
mkdir -p %{buildroot}%{_datadir}/%{shortname}-%{shortver}/demos
install -D -p share/templates/*.mscx %{buildroot}/%{_datadir}/%{shortname}-%{shortver}/demos/

# Install icons for mimetypes
for i in {16x16,24x24,32x32,48x48,64x64,96x96,128x128}; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/mimetypes/
	install -m 0644 share/icons/AppIcon/MS4_AppIcon_$i.png %{buildroot}%{_iconsdir}/hicolor/$i/mimetypes/application-x-%{shortname}.png
done

# Fix Desktop file
desktop-file-edit		--remove-key="Version" \
			--add-category="X-Notation" \
			--remove-category="Sequencer" --remove-category="Graphics" \
			--add-mime-type="audio/midi" --add-mime-type="text/x-lilypond" --add-mime-type="application/xml" \
			%{buildroot}/%{_datadir}/applications/org.%{name}.%{srcname}.desktop

# No point in packaging this stuff...
rm -rf	%{buildroot}%{_bindir}/crashpad_handler
rm -rf	%{buildroot}%{_includedir}/gmock
rm -rf	%{buildroot}%{_includedir}/gtest
rm -rf	%{buildroot}%{_includedir}/opus
rm -rf	%{buildroot}%{_libdir}/cmake/GTest
rm -rf	%{buildroot}%{_libdir}/*.a
rm -rf	%{buildroot}%{_libdir}/pkgconfig
# ... or headers for internal libraries
rm -rf	%{buildroot}%{_includedir}/kddockwidgets
rm -rf	%{buildroot}%{_libdir}/cmake/KDDockWidgets

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3474 |21cr|musique-1.10.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package	%{nil}

Summary:	Lightweight music player
Name:		musique
Version:	1.10.1
Release:	3
Group:		Sound
License:	GPLv3+
Url:			https://flavio.tordini.org/musique
Source0:	https://github.com/flaviotordini/musique/archive/%{name}-%{version}.tar.bz2
Patch0:	musique-1.10.1-show-album-name-only-on-hover.patch
Patch1:	musique-1.10.1-keep-size-consistent.patch
Patch2:	musique-1.10.1-no-donate-msg-on-first-run.patch
Patch3:	musique-1.10.1-little-fixes.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-qtdeclarative
BuildRequires:	pkgconfig(mpv)
BuildRequires:	pkgconfig(Qt5Core) >= 5.6
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(taglib)
Requires:	mpv >= 0.29.0

%description
Musique is a lightweight and versatile music player for QT5.

%files
%doc CHANGES COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*
%{_datadir}/%{name}/locale/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%qmake_qt5 PREFIX=%{_prefix}
%make


%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3475 |21cr|mussh-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: MUltihost SSH
Name: mussh
Version: 1.0
Release: 4
License: GPL
BuildArch: noarch
Group: Networking/Remote access
Source: %{name}-%{version}.tar.bz2
URL: http://www.sourceforge.net/projects/mussh
requires: openssh-clients, openssh-server

%description
Mussh is a shell script that allows you to execute a command or script
over ssh on multiple hosts with one command. When possible mussh will use
ssh-agent and RSA/DSA keys to minimize the need to enter your password
more than once.

%prep
%setup -q -n %name

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1/
install -m 755 mussh $RPM_BUILD_ROOT%{_bindir}/
install -m 644 mussh.1 $RPM_BUILD_ROOT%{_mandir}/man1/

%clean
rm -rf $RPM_BUILD_ROOT%

%files
%defattr(-,root,root) 
%doc INSTALL README BUGS CHANGES EXAMPLES
%attr(755,root,root) %{_bindir}/mussh
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3476 |21cr|mustache-4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global appname Mustache

Name:		mustache
Version:	4.1
Release:	1
License:	Boost
Summary:	Mustache text templates for modern C++
Group:		Text tools
URL:		https://github.com/kainjow/%{appname}
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz

# https://github.com/kainjow/Mustache/pull/42
Patch100:	%{name}-4.1-catch-fixes.patch

BuildRequires: catch-devel
BuildRequires: cmake
BuildRequires: ninja

BuildArch: noarch

%description
Text templates implementation for modern C++ (requires C++11).

#-------------------------------------------------------------------
%package devel
Summary: Development files for %{name}
Provides: %{name}-static = %{EVRD}
Provides: %{name} = %{EVRD}

%description devel
The %{name}-devel package contains C++ headers for developing
applications that use %{name}.

%files devel
%doc README.md
%license LICENSE
%{_includedir}/%{name}.hpp

#-------------------------------------------------------------------

%prep
%autosetup -n %{appname}-%{version}
sed -e '/-Werror/d' -i CMakeLists.txt
ln -svf %{_includedir}/catch2/catch.hpp ./catch.hpp

%build
%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release
%ninja_build

%install
mkdir -p %{buildroot}%{_includedir}
install -m 0644 -p %{name}.hpp %{buildroot}%{_includedir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3477 |21cr|mutt-2.2.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Text mode mail user agent
Name:		mutt
Version:	2.2.12
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/Mail
Url:		http://www.mutt.org/
Source0:	http://ftp.mutt.org/pub/mutt/%{name}-%{version}.tar.gz
Patch0:		mutt-2.0.7-dotlock.patch
# Set tmpdir to ~/tmp in sample config
Patch1:		mutt-2.0.7-tmpdef.patch
# Tell user to install urlview instead of just barf at user
Patch2:		mutt-2.0.7-urlview.patch
BuildRequires:	linuxdoc-tools
BuildRequires:	bzip2-devel
BuildRequires:	db-devel
BuildRequires:	gdbm-devel
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gpgme)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
#BuildRequires:	pkgconfig(tokyocabinet)
# without it we have problems with attachments (e.g. .pdfs)
Recommends:	mailcap

%description
Mutt is a text mode mail user agent. Mutt supports color, threading,
arbitrary key remapping, and a lot of customization.
You should install mutt if you've used mutt in the past and you prefer
it, or if you're new to mail programs and you haven't decided which
one you're going to use.

%files -f %{name}.lang
%doc COPYRIGHT NEWS OPS* PATCHES*
%doc README* TODO UPDATING VERSION
%license COPYRIGHT GPL
%config(noreplace) %{_sysconfdir}/Muttrc
%{_mandir}/man?/*
%{_bindir}/flea
%{_bindir}/mutt
%{_bindir}/mutt_pgpring
%{_bindir}/muttbug
%{_bindir}/pgpewrap
%{_bindir}/smime_keys
%attr(2755, root, mail) %{_bindir}/mutt_dotlock

%post
update-alternatives --install %{_bindir}/mutt mutt %{_bindir}/mutt-normal 10

%preun
if [ $1 -eq 0 ]; then
  update-alternatives --remove mutt %{_bindir}/mutt-normal
fi

#----------------------------------------------------------------------------

%package doc
Summary:	Manual for Mutt, a text mode mail user agent
Group:		Networking/Mail

%description doc
This is the complete manual for Mutt, in text and HTML formats.

Mutt is a text mode mail user agent. Mutt supports color, threading,
arbitrary key remapping, and a lot of customization.

You should install mutt if you've used mutt in the past and you prefer
it, or if you're new to mail programs and you haven't decided which
one you're going to use.

%files doc
%doc doc/manual.txt
%doc doc/advancedusage.html doc/gettingstarted.html doc/tuning.html
%doc doc/intro.html doc/mimesupport.html doc/reference.html
%doc doc/configuration.html doc/index.html doc/miscellany.html
%{_defaultdocdir}/%{name}-%{version}
%{_datadir}/info/%{name}.info.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .dotlock
%patch1 -p1 -b .tmpdef
%patch2 -p1 -b .urlview

sed -i -r 's/`$GPGME_CONFIG --libs`/"\0 -lgpg-error"/' configure

%build
autoreconf -fi
%configure \
	SENDMAIL=%{_sbindir}/sendmail	\
	ISPELL=%{_bindir}/hunspell	\
	--enable-gpgme			\
	--enable-hcache			\
	--enable-imap			\
	--enable-pop			\
	--enable-sidebar		\
	--enable-smtp			\
	--with-gnutls			\
	--with-gss			\
	--with-idn2			\
	--with-sasl			\
	--without-qdbm			\
	--with-docdir=%{_docdir}/%{name}-%{version}
%make

# remove unique id in manual.html because multilib conflicts
sed -i -r 's/<a id="id[a-z0-9]\+">/<a id="id">/g' doc/manual.html

# fix the shebang in mutt_oauth2.py & preserve the time stamp
oauth2_script="contrib/mutt_oauth2.py"
t=$(stat -c %y "${oauth2_script}")
sed -i "s:^#\!/usr/bin/env\s\+python3\s\?$:#!%{python3}:" "${oauth2_script}"
touch -d "$t" "${oauth2_script}"

%install
%makeinstall_std

rm -f %{buildroot}%{_sysconfdir}/*.dist
rm -f %{buildroot}%{_sysconfdir}/mime.types

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3478 |21cr|mx-1.4.7-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api		1.0
%define major		2
%define gtk_major	0
%define gir_major	1.0

%define libname %mklibname %{name} %{api} %{major}
%define libgtk %mklibname %{name}-gtk %{api} %{gtk_major}
%define devname %mklibname %{name} -d
%define devgtk %mklibname %{name}-gtk -d
%define girname %mklibname %{name}-gir %{gir_major}
%define girgtk %mklibname %{name}-gtk-gir %{gir_major}

Summary:	User interface toolkit for the MeeGo
Name:		mx
Version:	1.4.7
Release:	11
License:	LGPLv2.1
Group:		System/Libraries
Url:		http://www.clutter-project.org/
Source0:	https://github.com/downloads/clutter-project/mx/%{name}-%{version}.tar.xz
Patch0:		mx-nogl.patch
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(clutter-gesture)
BuildRequires:	pkgconfig(clutter-imcontext-0.1)
BuildRequires:	pkgconfig(clutter-x11-1.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)

%description
'MX' is a currently experiemental toolkit for the meego-netbook
implementation.

%files -f mx-1.0.lang
%doc COPYING.LIB
%{_bindir}/*
%{_datadir}/mx

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}mx2 < 1.4.7-5
Obsoletes:	%{_lib}mx2 < 1.4.7-5
Conflicts:	%{name} < 1.4.7-5

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libmx-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgtk}
Summary:	Shared library for %{name}-gtk
Group:		System/Libraries
Conflicts:	%{_lib}mx-gtk0 < 1.4.7-5
Obsoletes:	%{_lib}mx-gtk0 < 1.4.7-5
Conflicts:	%{name} < 1.4.7-5

%description -n %{libgtk}
This package contains the shared library for %{name}-gtk.

%files -n %{libgtk}
%{_libdir}/libmx-gtk-%{api}.so.%{gtk_major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Mx-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girgtk}
Summary:	GObject Introspection interface description for %{name}-gtk
Group:		System/Libraries
Requires:	%{libgtk} = %{EVRD}

%description -n %{girgtk}
GObject Introspection interface description for %{name}-gtk.

%files -n %{girgtk}
%{_libdir}/girepository-1.0/MxGtk-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MX development libraries and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{name}-devel < 1.4.7-5
%rename %{name}-doc

%description -n %{devname}
MX development libraries and header files.

%files -n %{devname}
%{_includedir}/mx-1.0/mx/*
%{_libdir}/libmx-%{api}.so
%{_libdir}/pkgconfig/mx-%{api}.pc
%{_datadir}/gtk-doc/html/mx
%{_datadir}/gir-1.0/Mx-%{gir_major}.gir

#----------------------------------------------------------------------------

%package -n %{devgtk}
Summary:	MX - Gtk development libraries and headers
Group:		Development/C
Requires:	%{libgtk} = %{EVRD}

%description -n %{devgtk}
MX - Gtk development libraries and header files.

%files -n %{devgtk}
%{_includedir}/mx-1.0/mx-gtk*
%{_libdir}/libmx-gtk-%{api}*.so
%{_libdir}/pkgconfig/mx-gtk-%{api}.pc
%{_datadir}/gtk-doc/html/mx-gtk
%{_datadir}/gir-1.0/MxGtk-%{gir_major}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%setup_compile_flags
export CFLAGS="$CFLAGS -I /usr/include/glib-2.0 -I %{_libdir}/glib-2.0/include/ -I /usr/include/clutter-1.0 -I /usr/include/cairo -I /usr/include/cogl -I /usr/include/pango-1.0 -I /usr/include/atk-1.0 -I /usr/include/json-glib-1.0 -I /usr/include/startup-notification-1.0 -I /usr/include/dbus-1.0 -I %{_libdir}/dbus-1.0/include -I /usr/include/clutter-gesture/ -I /usr/include/clutter-imcontext-0.1 -I /usr/include/gdk-pixbuf-2.0 -I /usr/include/gtk-2.0"

%configure \
	--disable-static \
	--enable-introspection

%make LIBS='-lm'

%install
%makeinstall_std

%find_lang mx-1.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3479 |21cr|mxml-2.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname mxml %{major}
%define devname %mklibname mxml -d

Summary:	Miniature XML development library
Name:		mxml
Version:	2.11
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.minixml.org/
Source0:	http://ftp.easysw.com/pub/mxml/%version/mxml-%{version}.tar.gz
BuildRequires:	chrpath

%description
Mini-XML is a small XML parsing library that you can use to read XML and
XML-like data files in your application without requiring large non-standard
libraries.  Mini-XML provides the following functionality:

- Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded  XML files and
  strings.
- Data is stored in a linked-list tree structure, preserving  the XML data
  hierarchy.
- Supports arbitrary element names, attributes, and attribute values with no
  preset limits, just available memory.
- Supports integer, real, opaque ("cdata"), and text data types in "leaf"
  nodes.
- Functions for creating and managing trees of data.
- "Find" and "walk" functions for easily locating and navigating trees of data.

Mini-XML doesn't do validation or other types of processing on the data based
upon schema files or other sources of definition information, nor does it
support character entities other than those required by the XML specification.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Miniature XML development library
Group:		System/Libraries

%description -n %{libname}
Mini-XML is a small XML parsing library that you can use to read XML and
XML-like data files in your application without requiring large non-standard
libraries.  Mini-XML provides the following functionality:

- Reading of UTF-8 and UTF-16 and writing of UTF-8 encoded  XML files and
  strings.
- Data is stored in a linked-list tree structure, preserving  the XML data
  hierarchy.
- Supports arbitrary element names, attributes, and attribute values with no
  preset limits, just available memory.
- Supports integer, real, opaque ("cdata"), and text data types in "leaf"
  nodes.
- Functions for creating and managing trees of data.
- "Find" and "walk" functions for easily locating and navigating trees of data.

Mini-XML doesn't do validation or other types of processing on the data based
upon schema files or other sources of definition information, nor does it
support character entities other than those required by the XML specification.

%files -n %{libname}
%{_libdir}/libmxml.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the Miniature XML development library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the static mxml library and its header files.

%files -n %{devname}
%defattr(644,root,root,755)
%doc installed-docs/*
%attr(755,root,root) %{_bindir}/*
%{_includedir}/*
%{_libdir}/libmxml.so
%{_libdir}/libmxml.a
%{_libdir}/pkgconfig/mxml.pc
%{_mandir}/man1/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -qc

%build
%configure \
	--enable-shared

%make

%install
%makeinstall_std BUILDROOT=%{buildroot}

mv %{buildroot}%{_datadir}/doc/mxml installed-docs

rm -rf %{buildroot}%{_mandir}/cat*

chrpath -d %{buildroot}%{_libdir}/*.so.%{major}*
chrpath -d %{buildroot}%{_bindir}/mxmldoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3480 |21cr|mybashburn-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: MyBashBurn burn data and create songs with interactive dialog box
Name: mybashburn
Version: 1.0.2
Release: 5
Group: Archiving/Cd burning
License: GPL
URL: http://mybashburn.sf.net
Source0: http://ufpr.dl.sourceforge.net/sourceforge/mybashburn/%{name}-%{version}.tar.bz2
Requires: config(bash)
Requires: cdrdao 
Requires: cdrecord
Requires: mkisofs
Requires: dvd+rw-tools
Requires: cdrkit-icedax
Requires: vorbis-tools
Requires: flac
Requires: coreutils
Requires: eject
Requires: dialog >= 1.0
BuildArch: noarch

%description
MyBashBurn is a fork based on ncurses of the CD burning shell script
called BashBurn for Linux. It can burn bin/cue files, create ogg and
flac files, data, music and multisession CDs, as well as burn and create
ISO files, DVD-images, data DVDs and some other funny options.
MyBashBurn makes use of cdrecord and other back-end applications, so basically
if your writing device works with them, MyBashBurn will work flawlessly.

%prep
%setup -q
%{__sed} -i 's/\r//' {lang/Polish/burning.lang,lang/Polish/multi.lang}
iconv -f ISO-8859-1 -t UTF8 < FILES > FILES.tmp
rm -f FILES && mv FILES.tmp FILES

%build 

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}/config
install -d %{buildroot}%{_datadir}/%{name}/burning
install -d %{buildroot}%{_datadir}/%{name}/lang
install -d %{buildroot}%{_datadir}/%{name}/lang/English
install -d %{buildroot}%{_datadir}/%{name}/lang/Polish
install -d %{buildroot}%{_datadir}/%{name}/lang/Swedish
install -d %{buildroot}%{_datadir}/%{name}/lang/German
install -d %{buildroot}%{_datadir}/%{name}/lang/Czech
install -d %{buildroot}%{_datadir}/%{name}/lang/Spanish
install -d %{buildroot}%{_datadir}/%{name}/lang/Norwegian
install -d %{buildroot}%{_datadir}/%{name}/convert
install -d %{buildroot}%{_datadir}/%{name}/misc
install -d %{buildroot}%{_datadir}/%{name}/menus
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_sysconfdir}

# and now, install everything
install -pc -m755 MyBashBurn.sh %{buildroot}%{_datadir}/%{name}/MyBashBurn.sh
install -p man/mybashburn.1.gz %{buildroot}%{_mandir}/man1/

cp -pR {etc/,CREDITS,HOWTO} %{buildroot}%{_datadir}/%{name}
cp -pR {lang/,config/,burning/,convert/,misc/,menus/} %{buildroot}%{_datadir}/%{name}
ln -sf ../../usr/share/mybashburn/MyBashBurn.sh %{buildroot}%{_bindir}/mybashburn

%files
%{_datadir}/%{name}/
%{_bindir}/mybashburn
%doc COPYING CREDITS ChangeLog FAQ FILES HOWTO README TODO
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3481 |21cr|mydns-1.2.8.31-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	base_version 1.2.8
%define	mydns_user   mydns
%define	mydns_group  mydns
%define	mydns_home   %{_localstatedir}/lib/mydns

Summary:	A Database based DNS server
Name:		mydns
Version:	1.2.8.31
Release:	8
License:	GPLv2+
Group:		System/Servers
Url:		http://mydns-ng.com/
#URL: http://mydns.bboy.net/  this is the original website, but mydns is no more  maintaned by it's original creator
#because this mydns-ng in sourceforge was created
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	HOWTO
Source2:	mydns.service
Patch0:		mydns_user.patch
Patch1:		mydns-1.2.8.31-lib64.patch
Patch2:		mydns-1.2.8.31-texi.patch
# Fix build with MariaDB 10.2
# https://bugzilla.redhat.com/show_bug.cgi?id=1470175
# http://bugs.mydns-ng.com/view.php?id=78
Patch3:		mydns-mariadb102.patch
BuildRequires:	docbook-utils-pdf
BuildRequires:	mysql-server
BuildRequires:	postgresql
BuildRequires:	texinfo
BuildRequires:	gettext-devel
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(zlib)
Requires(pre):	shadow-utils
Requires(post,preun,postun):	systemd-units

%description
A nameserver that serves records directly from your database.

%files -f %{name}.lang
%{_mandir}/man?/*
%{_infodir}/mydns.info*
%doc AUTHORS ChangeLog COPYING NEWS README TODO HOWTO
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/mydns.conf
%{_unitdir}/mydns.service
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/admin.php
%attr(-,%{mydns_user},%{mydns_group}) %dir %{mydns_home}

%pre
getent group %{mydns_group} >/dev/null || groupadd -r %{mydns_group}
getent passwd %{mydns_user} >/dev/null || \
useradd -r -g %{mydns_group} -d %{mydns_home}  -s /sbin/nologin \
-c "MyDNS - database based DNS server account" %{mydns_user}
exit 0

%post
if [ $1 -eq 1 ] ; then 
    # Initial installation 
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

%preun
if [ $1 -eq 0 ]; then
    # Package removal, not upgrade
    /bin/systemctl --no-reload disable mydns.service > /dev/null 2>&1 || :
    /bin/systemctl stop mydns.service > /dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package mysql
Summary:	MyDNS compiled with MySQL support
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	mysql-server
Requires(post,preun,postun):	systemd-units

%description mysql
MyDNS compiled with MySQL support.

%files mysql
%doc QUICKSTART.mysql
%{_bindir}/mydnscheck-mysql
%{_bindir}/mydns-conf-mysql
%{_bindir}/mydnsexport-mysql
%{_bindir}/mydnsptrconvert-mysql
%{_bindir}/mydnsimport-mysql
%{_sbindir}/mydns-mysql

%preun mysql
# When not removal, exit immediately
[ $1 = 0 ] || exit 0
( LANG=C ; \
	if ( %{_sbindir}/alternatives --display MyDNS | \
		grep point | grep -q %{_sbindir}/mydns-mysql ) ; \
		then /bin/systemctl --no-reload disable mydns.service > /dev/null 2>&1 && \
		    /bin/systemctl stop mydns.service > /dev/null 2>&1 || : \
	fi ; \
)
%{_sbindir}/alternatives -remove MyDNS %{_sbindir}/mydns-mysql
exit 0

%postun mysql
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    # Package upgrade, not uninstall
    /bin/systemctl try-restart mydns.service >/dev/null 2>&1 || :
fi

%post mysql
%{_sbindir}/alternatives --install %{_sbindir}/mydns MyDNS %{_sbindir}/mydns-mysql 2 \
    --slave %{_bindir}/mydnscheck mydnscheck %{_bindir}/mydnscheck-mysql \
    --slave %{_bindir}/mydnsexport mydnsexport %{_bindir}/mydnsexport-mysql \
    --slave %{_bindir}/mydnsimport mydnsimport %{_bindir}/mydnsimport-mysql \
    --slave %{_bindir}/mydnsptrconvert mydnsptrconvert %{_bindir}/mydnsptrconvert-mysql
if [ $1 -eq 1 ] ; then 
    # Initial installation 
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package pgsql
Summary:	MyDNS compiled with PostGreSQL support
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires(post,preun,postun):	systemd-units

%description pgsql
MyDNS compiled with PostGreSQL support.

%files pgsql
%doc QUICKSTART.postgres
%{_bindir}/mydnscheck-pgsql
%{_bindir}/mydns-conf-pgsql
%{_bindir}/mydnsexport-pgsql
%{_bindir}/mydnsptrconvert-pgsql
%{_bindir}/mydnsimport-pgsql
%{_sbindir}/mydns-pgsql

%preun pgsql
# When not removal, exit immediately
[ $1 = 0 ] || exit 0
( LANG=C ; \
	if ( %{_sbindir}/alternatives --display MyDNS | \
		grep point | grep -q %{_sbindir}/mydns-pgsql ) ; \
		then /bin/systemctl --no-reload disable mydns.service > /dev/null 2>&1 && \
		    /bin/systemctl stop mydns.service > /dev/null 2>&1 || : \
	fi ; \
)
%{_sbindir}/alternatives -remove MyDNS %{_sbindir}/mydns-pgsql
exit 0

%postun pgsql
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    # Package upgrade, not uninstall
    /bin/systemctl try-restart mydns.service >/dev/null 2>&1 || :
fi

%post pgsql
%{_sbindir}/alternatives --install %{_sbindir}/mydns MyDNS %{_sbindir}/mydns-pgsql 1 \
    --slave %{_bindir}/mydnscheck mydnscheck %{_bindir}/mydnscheck-pgsql \
    --slave %{_bindir}/mydnsexport mydnsexport %{_bindir}/mydnsexport-pgsql \
    --slave %{_bindir}/mydnsimport mydnsimport %{_bindir}/mydnsimport-pgsql \
    --slave %{_bindir}/mydnsptrconvert mydnsptrconvert %{_bindir}/mydnsptrconvert-pgsql
if [ $1 -eq 1 ] ; then 
    # Initial installation 
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

#install doc about alternatives
install -Dp -m 644 %{SOURCE1} ./HOWTO

# Convert to utf-8
for file in AUTHORS; do
    mv $file timestamp
    iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
    touch -r timestamp $file
done


%build
autoreconf -vfi

#mydns current doesn't support loadable modules support, so We need to compile it 2 times and use alternatives, :-(
%configure \
    --without-pgsql \
    --with-mysql \
    --with-mysql-lib=%{_libdir}/mysql \
    --with-mysql-include=%{_includedir}/mysql \
    --with-zlib=%{_libdir} \
    --enable-status \
    --enable-alias

# sed -i.bak 's#libmysqlclient_dirs="#libmysqlclient_dirs="/usr/lib64 #' ./configure

%make
make install DESTDIR=$(pwd)/mysql

%configure \
    --with-pgsql \
    --without-mysql \
    --with-pgsql-lib=%{_libdir} \
    --with-pgsql-include=%{_includedir} \
    --with-zlib=%{_libdir} \
    --enable-status \
    --enable-alias

%make
make install DESTDIR=$(pwd)/pgsql


%install
#create homedir for mydns user
install -d %{buildroot}%{mydns_home}

#install mysql and pgsql files
for database in mysql pgsql; do
    install -Dp ./$database%{_bindir}/mydnscheck %{buildroot}%{_bindir}/mydnscheck-$database
    install -Dp ./$database%{_bindir}/mydns-conf %{buildroot}%{_bindir}/mydns-conf-$database
    install -Dp ./$database%{_bindir}/mydnsexport %{buildroot}%{_bindir}/mydnsexport-$database
    install -Dp ./$database%{_bindir}/mydnsptrconvert %{buildroot}%{_bindir}/mydnsptrconvert-$database
    install -Dp ./$database%{_bindir}/mydnsimport %{buildroot}%{_bindir}/mydnsimport-$database
    install -Dp ./$database%{_sbindir}/mydns %{buildroot}%{_sbindir}/mydns-$database

    install -d %{buildroot}%{_datadir}/locale
    cp -a ./$database%{_datadir}/locale %{buildroot}%{_datadir}
done

%find_lang %{name}

#main package (all files not linked with mysql or pgsql)
install -Dp -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/mydns.service
install -Dp -m 600 mydns.conf %{buildroot}%{_sysconfdir}/mydns.conf
install -Dp -m 644 contrib/admin.php %{buildroot}%{_datadir}/%{name}/admin.php

install -Dp -m 644 doc/mydns.conf.5 %{buildroot}%{_mandir}/man5/mydns.conf.5
install -Dp -m 644 doc/mydns.8 %{buildroot}%{_mandir}/man8/mydns.8
install -Dp -m 644 doc/mydnscheck.8 %{buildroot}%{_mandir}/man8/mydnscheck.8
install -Dp -m 644 doc/mydnsexport.8 %{buildroot}%{_mandir}/man8/mydnsexport.8
install -Dp -m 644 doc/mydnsimport.8 %{buildroot}%{_mandir}/man8/mydnsimport.8
install -Dp -m 644 doc/mydns-conf.8 %{buildroot}%{_mandir}/man8/mydns-conf.8
install -Dp -m 644 doc/mydns.info %{buildroot}%{_infodir}/mydns.info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3482 |21cr|mygui-3.4.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Fast, simple and flexible GUI library for Ogre
Name:		mygui
Version:	3.4.1
Release:	6
# UnitTests include agg-2.4, which is under a BSD variant (not built or installed here)
License:	LGPLv3+
Group:		System/Libraries
Url:		http://mygui.info/
Source0:	https://github.com/MyGUI/mygui/archive/refs/tags/MyGUI%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	ogre-samples
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(OGRE)
BuildRequires:	pkgconfig(uuid)

%description
MyGUI is a GUI library for Ogre Rendering Engine which aims to be fast,
flexible and simple in using.

%files
%dir %{_libdir}/MYGUI/
%{_libdir}/MYGUI/*
%dir %{_datadir}/MYGUI/Media
%{_datadir}/MYGUI/Media/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast, simple and flexible GUI library for Ogre
Group:		System/Libraries

%description -n %{libname}
MyGUI is a GUI library for Ogre Rendering Engine which aims to be fast,
flexible and simple in using.

%files -n %{libname}
%{_libdir}/libMyGUIEngine.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for MyGUI
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(sdl2)
Requires:	pkgconfig(OGRE)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libMyGUI.OgrePlatform.a
%{_libdir}/libMyGUIEngine.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Development documentation for MyGUI
Group:		Development/C++
BuildArch:	noarch

%description doc
The %{name}-doc package contains reference documentation for
developing applications that use %{name}.

%files doc
%doc Docs/html

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-MyGUI%{version}

%build
# Plugins are windows only atm
cmake \
	-DCMAKE_BUILD_TYPE:STRING=Release	\
	-DCMAKE_CXX_FLAGS_RELEASE="%{optflags}"	\
	-DCMAKE_INSTALL_PREFIX:PATH=/usr	\
	-DCMAKE_SKIP_RPATH:BOOL=ON		\
	-DMYGUI_BUILD_PLUGINS:BOOL=OFF		\
	-DMYGUI_BUILD_TOOLS:BOOL=OFF		\
	-DMYGUI_INSTALL_PDB:INTERNAL=FALSE
%make
# Generate doxygen documentation
pushd Docs
doxygen
rm -f html/installdox
popd

%install
%makeinstall_std

%ifarch x86_64
	sed -i s,/lib,/lib64, %{buildroot}%{_libdir}/pkgconfig/MYGUI.pc
%endif

# Remove sample showing plugin usage
for file in bin/Demo_* ; do
	install -Dp -m 755 $file %{buildroot}%{_libdir}/MYGUI/Demos/`basename $file`
done

# Copy Media files
mkdir -p %{buildroot}%{_datadir}/MYGUI/
cp -a Media %{buildroot}%{_datadir}/MYGUI/

# Strip away unittests Media
rm -rf %{buildroot}%{_datadir}/MYGUI/Media/UnitTests

# Remove CMake stuff from Media
rm -f %{buildroot}%{_datadir}/MYGUI/Media/CMakeLists.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3483 |21cr|mypaint-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	A simple paint program
Name:		mypaint
Version:	2.0.1
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://mypaint.org/
Source0:	https://github.com/mypaint/mypaint/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1:	mypaint.rpmlintrc
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	desktop-file-utils
BuildRequires:	swig
BuildRequires:	gomp-devel
BuildRequires:	python3-numpy-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(libmypaint)
BuildRequires:	pkgconfig(mypaint-brushes-2.0)
Requires:	python3-numpy
Requires:	python3-protobuf
Requires:	python3-gobject
Requires:	mypaint-brushes
Recommends:	libmypaint-i18n

%description
MyPaint is a fast and easy/simple painter app focused on the painter, 
so you can only focus on the art and not the program itself. 
Currently MyPaint does not have a layer system, also mypaint is using 
pygtk with C extensions.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_bindir}/%{name}-ora-thumbnailer
%{_datadir}/%{name}/*
%{_datadir}/metainfo/mypaint.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/thumbnailers/mypaint-ora.thumbnailer
%{_iconsdir}/hicolor/*
%{_libdir}/%{name}/gui
%{_libdir}/%{name}/lib
%{_libdir}/%{name}/managed_files.txt
%{_libdir}/%{name}/MyPaint-*.egg-info
#---------------------------------------------------------------------

%prep
%autosetup -p1

# for 64 bit
sed -i 's|lib/mypaint|%{_lib}/mypaint|g' mypaint.py
sed -i "s|'lib', 'mypaint'|'%{_lib}', 'mypaint'|" mypaint.py

%build
%__python3 setup.py build_ext
%__python3 setup.py build_py
%__python3 setup.py build_translations
%__python3 setup.py build_config

%install
%{__python3} setup.py managed_install --prefix=%{buildroot}%{_prefix}
[[ %{_lib} != lib ]] && mv %{buildroot}%{_prefix}/lib %{buildroot}%{_prefix}/%{_lib}

desktop-file-install \
  --dir=%{buildroot}%{_datadir}/applications \
   %{buildroot}%{_datadir}/applications/%{name}.desktop

find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3484 |21cr|myrulib-0.29.16-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# this file based on spec file for package myrulib (Version 0.27)
#
# Copyright (c) 2009-2011 Denis Kandrashin, Kyrill Detinov
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

Name:           myrulib
Version:        0.29.16
Release:        5
License:        GPLv3
Summary:        E-Book Library Manager
URL:            http://myrulib.lintest.ru
Group:          Office
Source0:        http://www.lintest.ru/pub/%{name}-%{version}.tar.bz2
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  wxgtku2.8-devel >= 2.8.10
BuildRequires:  bzip2-devel

%description
MyRuLib is an application for organizing your own collection of e-books.

Authors:
--------
    Denis Kandrashin <mail@lintest.ru>

%prep
%setup -q
[ ! -x configure ] && %{__chmod} +x configure
chmod -R a+r .

%build
LDFLAGS="$LDFLAGS -lpthread"
%configure \
    --with-icu \
    --without-strip
%make

%install
%makeinstall_std
%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%doc AUTHORS README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3485 |21cr|mysac-1.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{ix86}
# on new glibc build i686 fail
%global optflags %{optflags} -fno-stack-protector
%endif

%define major 0.0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Provides mechanisms for making asynchronous request to MySQL database
Name:		mysac
Version:	1.1.2
Release:	2
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.arpalert.org/mysac.html
Source0:	http://www.arpalert.org/src/%{name}-%{version}.tar.gz
Patch0:		mysac-makefile.patch
Patch1:		mysac-mariadb.patch
BuildRequires:	mariadb-devel

%description
MySAC is a library that provides mechanisms for making asynchronous
request to MySQL database. It uses uses the official MySQL client
library for authentication and network functions. Memory allocation
must be done in user code, so any memory manager can be used.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for mysac
Group:		System/Libraries
Conflicts:	%{_lib}mysac0 < 1.1.1-3
Obsoletes:	%{_lib}mysac0 < 1.1.1-3

%description -n %{libname}
MySAC is a library that provides mechanisms for making asynchronous
request to MySQL database. It uses uses the official MySQL client
library for authentication and network functions. Memory allocation
must be done in user code, so any memory manager can be used.

%files -n %{libname}
%{_libdir}/libmysac.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the mysac library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the mysac library.

%files  -n %{devname}
%{_includedir}/*.h
%{_libdir}/libmysac.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make \
	CFLAGS="%{optflags} -DBUILDVER=%{version} -I/usr/include/mysql " \
	LDFLAGS="%{ldflags} -lmariadb"

%install
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_libdir}
install -m0755 libmysac.so.%{major} %{buildroot}%{_libdir}
install -m0755 *.h  %{buildroot}%{_includedir}
pushd %{buildroot}%{_libdir}
ln -s libmysac.so.%{major} libmysac.so
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3486 |21cr|myspell-br-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: myspell-br
Summary: Breton hunspell dictionaries
Version: 0.3
Release: 4
Group: System/Internationalization
URL: http://www.drouizig.org/
Source: http://extensions.services.openoffice.org/e-files/2207/3/dict-br_0.3.oxt
License: LGPLv2+
BuildArch: noarch

#Requires: hunspell
Requires: locales-br

%description
myspell-br contains spell checking data in Breton (France) to be used by
OpenOffice.org or MySpell-capable applications like Mozilla. With this
extension, you can compose a document in Breton and check for the typos easily.


%prep
%setup -q -c -n hunspell-br-%{version}

%build
chmod -x dictionaries/*

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/dict/{ooo,mozilla}
cp -p dictionaries/br_FR.* $RPM_BUILD_ROOT/%{_datadir}/dict/ooo
for ext in aff dic; do
	ln -s ../ooo/br.$ext $RPM_BUILD_ROOT/%{_datadir}/dict/mozilla/br.$ext
done

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc LICENSES-en.txt package-description.txt
%{_datadir}/dict/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3487 |21cr|mysql-connector-python-8.0.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# spec file for mysql-connector-python
#
# Copyright (c) 2011-2014 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/3.0/
#
# Please, preserve the changelog entries
#

%define debug_package %{nil}

Name:           mysql-connector-python
Version:        8.0.27
Release:        1
Summary:        MySQL Connector for Python 3
Group:          Development/Python
License:        GPLv2 with exceptions
URL:            http://dev.mysql.com/doc/connector-python/en/index.html
Source0:        https://pypi.io/packages/source/m/%{name}/%{name}-%{version}.tar.gz
# developer like see files in sitelib
Source10:       mysql-connector-python.rpmlintrc
BuildRequires:  python3-devel >= 3
BuildRequires:  python3-setuptools


%global _description\
MySQL Connector/Python is implementing the MySQL Client/Server protocol\
completely in Python. No MySQL libraries are needed, and no compilation\
is necessary to run this Python DB API v2.0 compliant driver.\
\
Documentation: http://dev.mysql.com/doc/connector-python/en/index.html\


%description %_description

#--------------------------------------------------------------------
%package -n mysql-connector-python3
Summary: MySQL Connector for Python 3
Group:          Development/Python

%description -n mysql-connector-python3
MySQL Connector/Python is implementing the MySQL Client/Server protocol
completely in Python. No MySQL libraries are needed, and no compilation
is necessary to run this Python DB API v2.0 compliant driver.

Documentation: http://dev.mysql.com/doc/connector-python/en/index.html

%files -n mysql-connector-python3
%doc CHANGES.txt README* docs
%doc examples/*
%license LICENSE.txt
# developer like see files in sitelib
%{python3_sitearch}/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%__python3 setup.py build

%install
%__python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3488 |21cr|mysqldoc-0.0.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	A command-line tool for auto-documenting MySQL Schema
Name:		mysqldoc
Version:	0.0.9
Release:	7
Group:		System/Servers
License:	GPL
URL:		http://code.google.com/p/mysqldoc/
Source0:	http://mysqldoc.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	perl
BuildArch:	noarch

%description
mysqldoc is a command-line tool for auto-documenting MySQL Schema. Output
formats include XML, HTML, and TXT. mysqldoc takes COMMENT arguments and
translates them into useful formats.

%prep

%setup -q

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 %{name} %{buildroot}%{_bindir}/%{name}
pod2man %{name} > %{buildroot}%{_mandir}/man1/mysqldoc.1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc RELEASE_HISTORY
%attr(0755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/mysqldoc.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3489 |21cr|mysql_performance_tuning_primer-1.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package          %{nil}

Summary:	MySQL Performance Tuning Primer Script
Name:		mysql_performance_tuning_primer
Version:	1.6
Release:	3
Group:		System/Servers
License:	GPL
URL:		http://www.day32.com/MySQL/
Source0:	http://www.day32.com/MySQL/tuning-primer.sh
Source1:	http://www.day32.com/MySQL/time_behind_master.sh
Source2:	http://www.day32.com/MySQL/slave_status.sh
Source3:	http://www.day32.com/MySQL/MYSQL_BACKUP.sh
Requires:	mysql
BuildArch:	noarch

%description
This script takes information from "SHOW STATUS LIKE..." and "SHOW VARIABLES
LIKE..." to produce sane recomendations for tuning server variables. It is
compatibly with all versions of MySQL 3.23 and higher (including 5.1).
   
 o Currently it handles recomendations for the following:  
 o Slow Query Log 
 o Max Connections 
 o Worker Threads 
 o Key Buffer 
 o Query Cache 
 o Sort Buffer 
 o Joins 
 o Temp Tables 
 o Table (Open & Definition) Cache 
 o Table Locking 
 o Table Scans (read_buffer) 
 o Innodb Status 

%prep

%setup -q -c -T

cp %{SOURCE0} mysql_performance_tuning_primer
cp %{SOURCE1} mysql_performance_time_behind_master
cp %{SOURCE2} mysql_performance_slave_status
cp %{SOURCE2} mysql_performance_backup
perl -pi -e "s|^#\!/.*|#!/bin/bash|g" mysql_performance_tuning_primer
perl -pi -e "s|^#\!/.*|#!/bin/bash|g" mysql_performance_time_behind_master
perl -pi -e "s|^#\!/.*|#!/bin/bash|g" mysql_performance_slave_status
perl -pi -e "s|^#\!/.*|#!/bin/bash|g" mysql_performance_backup

%build

%install
install -d %{buildroot}%{_sbindir}
install -m0755 mysql_performance_tuning_primer %{buildroot}%{_sbindir}/

%files
%defattr(0755,root,root)
%attr(0755,root,root) %{_sbindir}/mysql_performance_tuning_primer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3490 |21cr|mysqltuner-1.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	High Performance MySQL Tuning Script
Name:		mysqltuner
Version:	1.9.9
Release:	1
Group:		System/Servers
License:	GPLv3+
URL:		http://rackerhacker.com/mysqltuner/
Source0:	http://mysqltuner.com/mysqltuner.pl
Requires:	mysql
BuildArch:	noarch
BuildRequires:	dos2unix

%description
MySQLTuner is a high-performance MySQL tuning script written in perl that will
provide you with a snapshot of a MySQL server's health. Based on the statistics
gathered, specific recommendations will be provided that will increase a MySQL
server's efficiency and performance. The script gives you automated MySQL
tuning that is on the level of what you would receive from a MySQL DBA.

This script has been derived from many of the ideas in Matthew Montgomery's
MySQL tuning primer script.

%prep

%setup -c -T

cp %{SOURCE0} %{name}

%build

%install
install -d %{buildroot}%{_sbindir}
install -m0755 %{name} %{buildroot}%{_sbindir}/%{name}

%files
%{_sbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3491 |21cr|MySQLTuner-perl-1.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 606c09e3bca2a19be10f941fb71bde8048bb7d35
%define commit_short %(echo %{commit} | head -c6)

Summary:	MySQL configuration assistant
Name:		MySQLTuner-perl
Version:	1.9.9
Release:	1
License:	GPLv3
Group:		Databases
Url:		https://github.com/major/MySQLTuner-perl
Source0:	https://github.com/major/MySQLTuner-perl/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:		packaged-passwords-file.diff
Requires:	which
Provides:	mysqltuner = %{EVRD}
BuildArch:	noarch

%description
MySQLTuner is a script written in Perl that will assist you with your
MySQL configuration and make recommendations for increased performance
and stability.  Within seconds, it will display statistics about your
MySQL installation and the areas where it can be improved.

%files
%license LICENSE
%doc *.md *.png
%{_bindir}/mysqltuner
%dir %{_datadir}/mysqltuner
%{_datadir}/mysqltuner/basic_passwords.txt
%{_datadir}/mysqltuner/vulnerabilities.csv

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}
unlink CODE_OF_CONDUCT.md
sed -i'' -e '1s,^#!/usr/bin/env perl,#!%{_bindir}/perl,' mysqltuner.pl

%install
mkdir -p %{buildroot}%{_bindir}
install -m0755 mysqltuner.pl %{buildroot}%{_bindir}/mysqltuner
mkdir -p %{buildroot}%{_datadir}/mysqltuner
install -m0644 vulnerabilities.csv %{buildroot}%{_datadir}/mysqltuner/vulnerabilities.csv
install -m0644 basic_passwords.txt %{buildroot}%{_datadir}/mysqltuner/basic_passwords.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3492 |21cr|mystar-2.56-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A 802.1x auth client for Ruijie
Name:		mystar
Version:	2.56
Release:	10
License:	GPLv2+
Group:		System/Servers
Url:		http://gf.cs.hit.edu.cn/projects/mystar/
Source0:	http://gf.cs.hit.edu.cn/frs/download.php/253/%{name}_for_starV%{version}.tar.gz
# fwang: We don't need static linking libraries
Patch0:		%{name}-2.56-Makefile.patch
# fwang: conf file should be put into /etc
Patch1:		%{name}-2.56-conf-path.patch
BuildRequires:	libnet-devel
BuildRequires:	libpcap-devel

%description
mystar is a 802.1x auth client for Rujie and other compatible network.

%files
%doc Readme.txt
%{_sbindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}_for_%{version}
%patch0 -p0
%patch1 -p0

%build
make Flags="%{optflags}"

%install
mkdir -p %{buildroot}%{_sbindir}
install -m 755 mystar %{buildroot}%{_sbindir}

mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 mystar.conf %{buildroot}%{_sysconfdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3493 |21cr|mystiq-20.02.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
############################################
# SpecFile: MistiQ.spec 
# Generato: http://www.mandrivausers.ro/
############################################
%define oname MystiQ

Summary:	Audio/Video converter
Name:		mystiq
Version:	20.02.18
Release:	3
License:	GPLv3
Group:		Video
Url:		https://mystiq.swlx.info/
Source0:	https://github.com/llamaret/MystiQ/archive/%{oname}-%{version}.tar.gz
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(libavresample)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(sox)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:	ffmpeg
Requires:	sox
Requires:	mplayer

%description
MystiQ is a GUI for FFmpeg, a powerful media converter. 
FFmpeg can read audio and video files in various 
formats and convert them into other formats. 
MystiQ features an intuitive graphical 
interface and a rich set of presets to help you 
convert media files within a few clicks.
Advanced users can also adjust conversion parameters in detail.

%files
%doc LICENSE README.md CONTRIBUTING.md
%{_bindir}/%{name}
%{_datadir}/%{name}/translations
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/*.desktop
%{_mandir}/man1/*.1.xz
%{_appdatadir}/%{name}.appdata.xml

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
find . -type f -exec chmod -x '{}' \;

lrelease-qt5 *.pro

%build
%qmake_qt5 DEFINES+=NO_NEW_VERSION_CHECK 
%make 

%install
%makeinstall_qt 
# TODO when finished translations,#lang delete from spec.
#lang 
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -pR translations %{buildroot}%{_datadir}/%{name}/translations

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3494 |21cr|mytop-1.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A clone of top for MySQL 3.22.x to 4.x
Name:		mytop
Version:	1.6
Release:	11
License:	GPLv2+
Group:		Databases
Url:		http://jeremy.zawodny.com/mysql/mytop/
Source0:	http://jeremy.zawodny.com/mysql/mytop/%{name}-%{version}.tar.gz
Patch0:		mytop-1.6.long_nums.patch
BuildRequires:	perl-devel
BuildRequires:	perl-Term-ReadKey
Requires:	perl-Mysql
Requires:	perl-Term-ReadKey
BuildArch:	noarch

%description
Mytop is a console-based (non-gui) tool for monitoring the threads and overall
performance of a MySQL 3.22.x, 3.23.x, and 4.x server.

%files
%doc README
%{_bindir}/mytop
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3495 |21cr|nabi-1.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple Hangul X Input Method
Name:		nabi
Version:	1.0.0
Release:	4
License:	GPLv2+
Group:		System/Internationalization
URL:		http://code.google.com/p/nabi
Source:		http://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	librsvg
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libhangul)
Requires:	locales-ko

%description
Nabi is a simple XIM for Korean, implemented with GTK+2.
It can dock in the notification area, and also show the
status of imhangul (See also http://imhangul.kldp.net).

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README
%attr(755,root,root) %{_bindir}/nabi
%{_datadir}/nabi
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# menu entry:
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Nabi
Comment=Simple Hangul XIM
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=System;Settings;Accessibility;
EOF

# Install icons of various sizes
for s in 256 128 96 48 32 22 16 ; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
rsvg-convert -w ${s} -h ${s} \
    %{name}.svg -o \
    %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3496 |21cr|nacl-20110221-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define staticname %mklibname nacl -d -s

Summary:	Networking and Cryptography library
Name:		nacl
Version:	20110221
Release:	6
License:	Public Domain
Group:		System/Libraries
Url:		http://nacl.cr.yp.to/
Source0:	http://hyperelliptic.org/nacl/%{name}-%{version}.tar.bz2
# aarch64 build is possible but see install
ExclusiveArch:	%{ix86} x86_64

%description
NaCl (pronounced "salt") is a new easy-to-use high-speed software library
for network communication, encryption, decryption, signatures, etc. NaCl's goal
is to provide all of the core operations needed to build higher-level
cryptographic tools.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{staticname}
Summary:	NaCl library for static linking
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{staticname}
NaCl (pronounced "salt") is a new easy-to-use high-speed software library
for network communication, encryption, decryption, signatures, etc. NaCl's goal
is to provide all of the core operations needed to build higher-level
cryptographic tools.

%files -n %{staticname}
%{_includedir}/nacl/
%{_libdir}/libnacl.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
./do

%install
SHORTHOSTNAME=$(echo $HOSTNAME | cut -d. -f1 | sed 's/-//g')
%ifarch x86_64
mv build/${SHORTHOSTNAME}/include/amd64/* build/${SHORTHOSTNAME}/include/
%else
%ifarch %{ix86}
mv build/${SHORTHOSTNAME}/include/x86/* build/${SHORTHOSTNAME}/include/
%endif
%endif
mkdir build/${SHORTHOSTNAME}/include/nacl
mv build/${SHORTHOSTNAME}/include/*.h build/${SHORTHOSTNAME}/include/nacl/
%ifarch x86_64
mv build/${SHORTHOSTNAME}/lib/amd64/* build/${SHORTHOSTNAME}/lib/
%else
%ifarch %{ix86}
mv build/${SHORTHOSTNAME}/lib/x86/* build/${SHORTHOSTNAME}/lib/
%endif
%endif
rm -rf build/${SHORTHOSTNAME}/log
rm -rf build/${SHORTHOSTNAME}/work
rm -rf build/${SHORTHOSTNAME}/data
rm -rf build/${SHORTHOSTNAME}/include/x86
rm -rf build/${SHORTHOSTNAME}/include/amd64
rm -rf build/${SHORTHOSTNAME}/include/lpia
rm -rf build/${SHORTHOSTNAME}/lib/x86
rm -rf build/${SHORTHOSTNAME}/lib/amd64
rm -rf build/${SHORTHOSTNAME}/lib/lpia
rm -f build/${SHORTHOSTNAME}/bin/ok*
rm -f build/${SHORTHOSTNAME}/lib/*.o
rm build/${SHORTHOSTNAME}/include/nacl/cpuid.h

mkdir -p %{buildroot}%{_prefix}
mv build/$SHORTHOSTNAME/include %{buildroot}%{_includedir}
mv build/$SHORTHOSTNAME/bin %{buildroot}%{_bindir}
mv build/$SHORTHOSTNAME/lib %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3497 |21cr|nads-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Normalized Attack Detection System
Name:		nads
Version:	0.3
Release:	10
License:	GPLv2+
Group:		System/Servers
Url:		http://www.scaramanga.co.uk
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	libtool

%description
N.A.D.S. is an HTTP URL normalization library. It takes HTTP URIs
in any form and converts them to a form suitable for comparison,
or for matching against attack descriptions (signatures) in
intrusion detection / prevention systems.

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/nads
%{_bindir}/testnads

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Normalized Attack Detection System library
Group:		System/Libraries

%description -n %{libname}
N.A.D.S. is an HTTP URL normalization library. It takes HTTP URIs
in any form and converts them to a form suitable for comparison,
or for matching against attack descriptions (signatures) in
intrusion detection / prevention systems.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the %{name} library
Group:		Development/C
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
N.A.D.S. is an HTTP URL normalization library. It takes HTTP URIs
in any form and converts them to a form suitable for comparison,
or for matching against attack descriptions (signatures) in
intrusion detection / prevention systems.

This package contains the static %{name} library and its header
files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q
find . -name "Makefile*" -o -name "*.m4" -o -name "configure*" |xargs sed -i -e 's,configure.in,configure.ac,g'

%build
%config_update
./autogen.sh
%configure \
	--disable-static \
	--enable-shared
%make LIBTOOL=%{_bindir}/libtool

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3498 |21cr|naev-0.10.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	2D space trading and combat game
Name:		naev
Version:	0.10.4
Release:	1
License:	GPLv3+
Group:		Games/Arcade
Url:		https://naev.org
Source0:	https://github.com/naev/naev/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/naev/naev-artwork-production-8549fe25f0f72a161aaae0b4349e73ed03de1261.zip
Patch0:		naev-0.9.4-no-member-named.patch
BuildRequires:	autoconf-archive
BuildRequires:	doxygen
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	cxsparse-devel
BuildRequires:	glpk-devel
BuildRequires:	openblas-devel
BuildRequires:	suitesparse-common-devel
BuildRequires:	python3dist(mutagen)
BuildRequires:	python3dist(pyyaml)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libunibreak)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(physfs)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(libenet)

Requires:	%{name}-data = %{EVRD}

%description
NAEV is a 2D space trading and combat game, taking inspiration from the
Escape Velocity series.

You pilot a space ship from a top-down perspective, and are more or less
free to do what you want. As the genre name implies, you’re able to trade
and engage in combat at will. Beyond that, there’s an ever-growing number
of storyline missions, equipment, and ships; Even the galaxy itself grows
larger with each release. For the literarily-inclined, there are large
amounts of lore accompanying everything from planets to equipment.

%files
%doc Readme.md
%license LICENSE
%{_appdatadir}/org.%{name}.Naev.metainfo.xml
%{_datadir}/applications/org.%{name}.Naev.desktop
%{_defaultdocdir}/%{name}/c
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/*/apps/org.%{name}.Naev.png
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------

%package data
Summary:	Data files for %{name}
BuildArch:	noarch
Obsoletes:	%{name}-data < %{EVRD}
Conflicts:	%{name} < %{EVRD}

%description data
NAEV is a 2D space trading and combat game,
taking inspiration from the
Escape Velocity series.

This is the data file.

%files data
%doc Readme.md
%license LICENSE
%{_gamesdatadir}/%{name}/

#----------------------------------------------------------------

%prep
%autosetup -p1 -a1
rmdir artwork
mv -f %{name}-artwork-* artwork

%build
%meson	\
	--bindir=%{_gamesbindir}	\
	-Dndata_path=%{_gamesdatadir}/%{name}
%meson_build

%install
%meson_install

mv -f %{buildroot}%{_prefix}/doc/%{name}/c %{buildroot}%{_defaultdocdir}/%{name}/
rm -f %{buildroot}%{_defaultdocdir}/%{name}/{LICENSE,gpl.txt}

# macos stuff
rm -fr %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3499 |21cr|nagios-4.4.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	nsusr nagios
%define	nsgrp nagios
%define	cmdusr apache
%define	cmdgrp apache

%define	_disable_ld_no_undefined 1

Summary:	Host/service/network monitoring program
Name:		nagios
Epoch:		1
Version:	4.4.6
Release:	2
License:	GPLv2
Group:		Networking/Other
Url:		http://www.nagios.org/
Source0:	http://prdownloads.sourceforge.net/nagios/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.tmpfiles
Source5:	favicon.ico
Source100:	%{name}.rpmlintrc
Patch1:		nagios-4.0.0-conf.d.patch
#Patch2:	nagios-4.3.1-no-arch.patch
BuildRequires:	imagemagick
BuildRequires:	multiarch-utils >= 1.0.3
BuildRequires:	libtool-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(gdlib)
BuildRequires:	pkgconfig(libjpeg)
Requires(pre,post,preun,postun): rpm-helper
Requires:   nagios-plugins

%description
Nagios is a program that will monitor hosts and services on your network. It
has the ability to email or page you when a problem arises and when a problem
is resolved. It is written in C and is designed to run under Linux (and some
other *NIX variants) as a background process, intermittently running checks on
various services that you specify.
The actual service checks are performed by separate "plugin" programs which
return the status of the checks to Nagios.
This package provide core programs for nagios. The web interface, documentation
and development files are built as separate packages.

%files
%doc Changelog INSTALLING LEGAL README.md UPGRADING
%doc sample-config/mrtg.cfg
%{_unitdir}/%{name}.service
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%{_sbindir}/*
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/conf.d
%dir %{_sysconfdir}/%{name}/plugins.d
%dir %{_sysconfdir}/%{name}/objects
%config(noreplace) %{_sysconfdir}/%{name}/*.cfg
%config(noreplace) %{_sysconfdir}/%{name}/objects/*.cfg
%attr(-,%{nsusr},%{nsgrp}) %dir /var/log/%{name}
%attr(-,%{nsusr},%{nsgrp}) %dir /var/log/%{name}/archives
%attr(2775,%{nsusr},%{cmdgrp}) %dir /var/spool/%{name}
%attr(-,%{nsusr},%{nsgrp}) %dir /var/spool/%{name}/checkresults
%dir %{_libdir}/%{name}/plugins/eventhandlers
%{_libdir}/%{name}/plugins/eventhandlers/*
%{_var}/lib/rpm/filetriggers/%{name}.*


%pretrans
# prevent symlink creation failure on update
if [ -d /etc/nagios/plugins.d -a ! -L /etc/nagios/plugins.d ]; then
	if [ ! -d /etc/nagios/conf.d ]; then
		mkdir -p /etc/nagios/conf.d
	fi
	mv -f /etc/nagios/plugins.d/* /etc/nagios/conf.d 2>/dev/null
	rmdir /etc/nagios/plugins.d
fi

%pre
%_pre_useradd %{nsusr} /var/log/%{name} /bin/sh
%{_bindir}/gpasswd -a %{cmdusr} %{nsgrp} >/dev/null 2>&1 || :

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{nsusr}

#-----------------------------------------------------------------------------

%package www
Summary:	Provides the HTML and CGI files for the Nagios web interface
Group:		Networking/WWW
Requires:	%{name} = %{EVRD}
Requires:	apache-mod_php
Requires:	nail
Requires:	traceroute

%description www
Nagios is a program that will monitor hosts and services on your network. It
has the ability to email or page you when a problem arises and when a problem
is resolved. It is written in C and is designed to run under Linux (and some
other *NIX variants) as a background process, intermittently running checks on
various services that you specify.
Several CGI programs are included with Nagios in order to allow you to view the
current service status, problem history, notification history, and log file via
the web. This package provides the HTML and CGI files for the Nagios web
interface. In addition, HTML documentation is included in this package.

%files www
%doc LEGAL LICENSE
%config(noreplace) %{_webappconfdir}/%{name}.conf
%{_libdir}/%{name}/cgi
%{_datadir}/%{name}/www

#-----------------------------------------------------------------------------

%package devel
Group:		Development/C
Summary:	Include and development files for Nagios-related applications
Requires:	%{name} = %{EVRD}

%description devel
Nagios is a program that will monitor hosts and services on your network. It
has the ability to email or page you when a problem arises and when a problem
is resolved. It is written in C and is designed to run under Linux (and some
other *NIX variants) as a background process, intermittently running checks on
various services that you specify.
This package provides include files that Nagios-related applications may
compile against.

%files devel
%doc LEGAL LICENSE
%{multiarch_includedir}/%{name}/locations.h
%{_includedir}/%{name}
%{_libdir}/libnagios.a

#-----------------------------------------------------------------------------

%prep
%setup -q 
%apply_patches


%build
%serverbuild
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export FFLAGS="$FFLAGS -fPIC"
%configure \
	--with-httpd-conf=%{_webappconfdir} \
	--with-checkresult-dir=/var/spool/%{name}/checkresults \
	--with-temp-dir=/tmp \
	--exec-prefix=%{_sbindir} \
	--bindir=%{_sbindir} \
	--sbindir=%{_libdir}/%{name}/cgi \
	--libexecdir=%{_libdir}/%{name}/plugins \
	--datadir=%{_datadir}/%{name} \
	--sysconfdir=%{_sysconfdir}/%{name} \
	--localstatedir=/var/log/%{name}\
	--with-lockfile=/var/run/%{name}/%{name}.pid \
	--with-mail=/bin/mail \
	--with-nagios-user=%{nsusr} \
	--with-nagios-group=%{nsgrp} \
	--with-command-user=%{cmdusr} \
	--with-command-grp=%{cmdgrp} \
	--with-cgiurl=/%{name}/cgi-bin \
	--with-htmurl=/%{name} \
	--with-gd-lib=%{_libdir} \
	--with-gd-inc=%{_includedir}

# bug
perl -pi -e "s|/var/log/%{name}/spool/checkresults|/var/spool/%{name}/checkresults|g" include/locations.h

# The helloworld example doesn't like -fPIE
perl -pi -e "s|-fPIE||g" module/Makefile

%make all

# Build contrib stuff
pushd contrib
	make convertcfg
	make daemonchk.cgi
popd


%install
# Needed dirs
install -d -m0755 %{buildroot}%{_webappconfdir}
install -d -m0755 %{buildroot}/var/spool/%{name}/checkresults
install -d -m0755 %{buildroot}/var/run/%{name}
install -d -m0755 %{buildroot}%{_includedir}/%{name}
install -d -m0755 %{buildroot}%{_sysconfdir}/%{name}/{servers,printers,switches,routers,conf.d,plugins.d}
install -d -m0755 %{buildroot}%{_libdir}/%{name}/plugins/eventhandlers

make \
	DESTDIR=%{buildroot} \
	BINDIR=%{_sbindir} \
	CFGDIR=%{_sysconfdir}/%{name} \
	CGIDIR=%{_libdir}/%{name}/cgi \
	COMMAND_OPTS="" \
	HTMLDIR=%{_datadir}/%{name}/www \
	INIT_OPTS="" \
	INSTALL=install \
	INSTALL_OPTS="" \
	LOGDIR=/var/log/%{name} \
	STRIP=/bin/true \
	install \
	install-devel \
	install-config

# Fix docs
cp sample-config/README README.sample-config
cp sample-config/template-object/README README.template-object

# Install headers
install -m 0644 include/locations.h %{buildroot}%{_includedir}/%{name}/
%multiarch_includes %{buildroot}%{_includedir}/%{name}/locations.h

# Install contrib stuff
pushd contrib
	make \
		DESTDIR=%{buildroot} \
		BINDIR=%{_sbindir} \
		CFGDIR=%{_sysconfdir}/%{name} \
		CGIDIR=%{_libdir}/%{name}/cgi \
		COMMAND_OPTS="" \
		HTMLDIR=%{_datadir}/%{name}/www \
		INIT_OPTS="" \
		INSTALL=install \
		INSTALL_OPTS="" \
		LOGDIR=/var/log/%{name} \
		install
popd

# Fix strange perms
find %{buildroot}%{_datadir}/%{name} -type d | xargs chmod 755
find %{buildroot}%{_datadir}/%{name}/www -type f | xargs chmod 644
chmod 755 \
	%{buildroot}%{_libdir}/%{name}/cgi/* \
	%{buildroot}%{_sbindir}/*

# Fix default config
perl -pi \
	-e 's|^check_for_updates=1|check_for_updates=0|;' \
	-e 's|^#query_socket=|query_socket=|;' \
	-e "s|=/var/log/nagios/rw/|=/var/spool/nagios/|;" \
	%{buildroot}%{_sysconfdir}/nagios/nagios.cfg
perl -pi \
	-e "s|^physical_html_path=.*|physical_html_path=%{_datadir}/nagios/www|;" \
	%{buildroot}%{_sysconfdir}/nagios/cgi.cfg


# Install systemd stuff
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
rm -f %{buildroot}%{_initrddir}/%{name}

# Provde apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# Nagios Apache configuration

ScriptAlias /%{name}/cgi-bin %{_libdir}/%{name}/cgi

<Directory %{_libdir}/%{name}/cgi>
	Options ExecCGI
	Require all granted
</Directory>

Alias /%{name} %{_datadir}/%{name}/www

<Directory %{_datadir}/%{name}/www>
	Require all granted
</Directory>
EOF

# Install and fix event handlers
install -m 0755 contrib/eventhandlers/disable_active_service_checks %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/
install -m 0755 contrib/eventhandlers/disable_notifications %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/
install -m 0755 contrib/eventhandlers/enable_active_service_checks %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/
install -m 0755 contrib/eventhandlers/enable_notifications %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/
install -m 0755 contrib/eventhandlers/submit_check_result %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/
install -m 0755 contrib/eventhandlers/distributed-monitoring/obsessive_svc_handler %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/
install -m 0755 contrib/eventhandlers/distributed-monitoring/submit_check_result_via_nsca %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/
install -m 0755 contrib/eventhandlers/redundancy-scenario1/handle-master-host-event %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/
install -m 0755 contrib/eventhandlers/redundancy-scenario1/handle-master-proc-event %{buildroot}%{_libdir}/nagios/plugins/eventhandlers/

find %{buildroot}%{_libdir}/nagios/plugins/eventhandlers -type f | \
	xargs perl -pi \
	-e 's|/usr/local/nagios/var/rw/|/var/spool/nagios/|;' \
	-e 's|/usr/local/nagios/libexec/eventhandlers|%{_libdir}/nagios/plugins/eventhandlers|g;' \
	-e 's|/usr/local/nagios/libexec/send_nsca|%{_libdir}/nagios/plugins/send_nsca|g;' \
	-e 's|/usr/local/nagios/test/var|/var/log/nagios|g;' \
	-e 's|/usr/local/nagios/etc/send_nsca.cfg|%{_sysconfdir}/nagios/send_nsca.cfg|g;' \
	-e 's|printfcmd="/bin/printf"|printfcmd="/usr/bin/printf"|;'

# Install the favicon.ico
install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/%{name}/www

# Automatic reloading for new plugins
install -d %{buildroot}%{_var}/lib/rpm/filetriggers
cat > %{buildroot}%{_var}/lib/rpm/filetriggers/nagios.filter << EOF
^.%{_sysconfdir}/nagios/plugins.d/.*\.cfg$
EOF
cat > %{buildroot}%{_var}/lib/rpm/filetriggers/nagios.script << EOF
#!/bin/sh
systemctl try-restart nagios.service
EOF
chmod 755 %{buildroot}%{_var}/lib/rpm/filetriggers/nagios.script

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3500 |21cr|nagios-check_amavis-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define plugin	check_amavis

Summary:	Check Amavis
Name:		nagios-%{plugin}
Version:	1.1
Release:	4
Group:		Networking/Other
License:	GPL
URL:		 http://exchange.nagios.org/directory/Plugins/Anti-2DVirus/Amavis/check_amavis/details
Source0:	%{plugin}.pl
BuildArch:	noarch
BuildRequires:	perl

%description
check_amavis checks if amavisd-new daemon is working and if its
antivirus engine is working. This check talks with amavisd-new daemon.
It tests if the daemon is up and if it's able to scan an email with a
virus (EICAR test virus is sent).
	
Please note that if amavisd-new is run on a different machine, you
should enable the connection from nagios ip address (take a look at
amavisd.conf).

%prep
%setup -qcT

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_amavis.cfg <<'EOF'

define command {
        command_name    check_amavis
        command_line    %{_datadir}/nagios/plugins/%{plugin}.pl --server $HOSTADDRESS$ --port 10025 $ARG1$
}
EOF
install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_amavis.cfg
%{_datadir}/nagios/plugins/%{plugin}.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3501 |21cr|nagios-check_bl-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	A Nagios plugin to check against RBL
Name:		nagios-check_bl
Version:	1.0
Release:	12
License:	GPL
Group:		Networking/Other
URL:		http://www.bashton.com/content/nagiosplugins
Source0:	http://www.bashton.com/downloads/%{name}-%{version}.tar.bz2
Requires:	nagios
BuildArch:	noarch

%description
A Nagios plugin to check whether a server is in any known anti-spam blocklists.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m  755 check_bl %{buildroot}%{_datadir}/nagios/plugins/

perl -pi -e 's|/usr/lib/nagios|%{_datadir}/nagios|' \
    %{buildroot}%{_datadir}/nagios/plugins/check_bl

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_bl.cfg <<'EOF'
define command {
	command_name    check_bl
	command_line    %{_datadir}/nagios/plugins/check_bl -H $HOSTADDRESS$ -B sbl-xbl.spamhaus.org,bl.spamcop.net
}
EOF

%if %mdkversion < 200900
%post
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :

%postun
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_bl.cfg
%{_datadir}/nagios/plugins/check_bl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3502 |21cr|nagios-check_connections-2.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_name check_connections

Name:		nagios-%{up_name}
Version:	2.1.0
Release:	4
Summary:	A Nagios plugin to check the number of TCP connections
License:	GPL
Group:		Networking/Other
URL:		https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_connections
Source:     %{up_name}-%{version}.tar.gz
Requires:	nagios-plugins
BuildArch:  noarch

%description
check_connections is a Nagios plugin to check the number of TCP connections 

%prep
%setup -q -n %{up_name}-%{version}

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_datadir}/nagios/plugins
install -m 755 check_connections %{buildroot}%{_datadir}/nagios/plugins/check_connections

perl -pi -e 's|^#!perl|#!%{_bindir}/perl|' \
    %{buildroot}%{_datadir}/nagios/plugins/check_connections

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_connections.cfg <<'EOF'
define command {
	command_name    check_connections
	command_line    %{_datadir}/nagios/plugins/check_connections
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS Changes NAME NEWS README
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_connections.cfg
%{_datadir}/nagios/plugins/check_connections

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3503 |21cr|nagios-check_cups_queue-20060627-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-check_cups_queue
Version:	20060627
Release:	15
Summary:	Nagios cups plugin
Group:		Networking/Other
License:	BSD
URL:		http://dev.lusis.org/nagios/
Source0:	http://dev.lusis.org/nagios/check_cups_queue.txt
Patch:      nagios/check_cups_queue-force-locales.patch
Requires:   cups-common
Requires:   bc
BuildArch:  noarch

%description
This plugin will check the status of a remote CUPS print queue. It will provide
the size of the queue and optionally the age of the queue

%prep
cp %{SOURCE0} check_cups_queue.txt
%patch -p0

%build


%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 check_cups_queue.txt %{buildroot}%{_datadir}/nagios/plugins/check_cups_queue

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_cups_queue.cfg <<'EOF'
define command{
	command_name	check_cups_queue
	command_line	%{_datadir}/nagios/plugins/check_cups_queue -H $HOSTADDRESS$
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/nagios/plugins/check_cups_queue
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_cups_queue.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3504 |21cr|nagios-check_diskio-3.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name   check_diskio

Name:      nagios-check_diskio
Version:   3.0.3
Release:   5
Summary:   Nagios plugin to monitor the amount of disk I/O
License:   GPL
Group:      Networking/Other
URL:        https://trac.id.ethz.ch/projects/nagios_plugins/wiki/check_diskio
Source:     http://www.id.ethz.ch/people/allid_list/corti/%{upstream_name}-%{version}.tar.gz
BuildArch: noarch

%description
Nagios plugin to monitor the amount of disk I/O

%prep
%setup -q -n %{upstream_name}-%{version}

%build
pod2man check_diskio.pod > check_diskio.1

%install
rm -rf %{buildroot}
install -m 755 -d %{buildroot}%{_datadir}/nagios/plugins
install -m 755 -d %{buildroot}%{_mandir}/man1
install -m 755 check_diskio %{buildroot}%{_datadir}/nagios/plugins/check_diskio
install -m 644 check_diskio.1 %{buildroot}%{_mandir}/man1

perl -pi -e 's|^#!perl|#!%{_bindir}/perl|' \
    %{buildroot}%{_datadir}/nagios/plugins/check_diskio

install -m 755 -d %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_diskio.cfg <<'EOF'
define command {
	command_name    check_diskio
	command_line    %{_datadir}/nagios/plugins/check_diskio
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS Changes NEWS README INSTALL TODO COPYING VERSION
%{_datadir}/nagios/plugins/check_diskio
%{_mandir}/man1/check_diskio.1*
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_diskio.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3505 |21cr|nagios-check_iax-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Nagios plugin to check IAX/IAX2 devices
Name:		nagios-check_iax
Version:	1.0.0
Release:	7
License:	BSD
Group:		Networking/Other
URL:		http://samm.kiev.ua/check_iax/
Source0:	http://samm.kiev.ua/check_iax/check_iax-%{version}.tar.gz
Requires:	nagios

%description
Nagios plugin check_iax allows system administrators to monitor IAX/IAX2
devices.

%prep
%setup -q -n check_iax-%{version}

%build
%make CFLAGS="%{optflags}"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}/nagios/plugins.d
install -d %{buildroot}%{_libdir}/nagios/plugins

install -m0755 check_iax %{buildroot}%{_libdir}/nagios/plugins/
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_iax.cfg <<'EOF'
define command {
	command_name	check_iax
	command_line	%{_libdir}/nagios/plugins/check_iax -H $HOSTADDRESS$ -w 100 -c 500
}
EOF

%if %mdkversion < 200900
%post
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :

%postun
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_iax.cfg
%{_libdir}/nagios/plugins/check_iax

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3506 |21cr|nagios-check_kdc-20050715-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-check_kdc
Version:	20050715
Release:	13
Summary:	Nagios kdc plugin
Group:		Networking/Other
License:	BSD
URL:		http://www.loveshack.ukfsn.org/nagios/
Source0:	http://www.loveshack.ukfsn.org/nagios/check_kdc
BuildArch:  noarch

%description
Check getting tickets from a kerberos KDC using a keytab. Doesn't require Perl
Kerberos stuff (unlike check_krb5), just kinit/kdestroy.

%prep
%setup -T -c
install -m 755 %{SOURCE0} check_kdc

perl -pi -e 's|/usr/kerberos/bin|%{_bindir}|' check_kdc

%build


%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 check_kdc %{buildroot}%{_datadir}/nagios/plugins

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_kdc.cfg <<'EOF'
define command{
	command_name	check_kdc
	command_line	%{_datadir}/nagios/plugins/check_kdc -H $HOSTADDRESS$
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/nagios/plugins/check_kdc
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_kdc.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3507 |21cr|nagios-check_lm_sensors-3.1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_name check_lm_sensors

Name:       nagios-check_lm_sensors
Version:    3.1.0
Release:    8
Summary:    A Nagios plugin to monitor sensors values
License:    GPL
Group:      Networking/Other
Source:     http://www.id.ethz.ch/people/allid_list/corti/%{up_name}-%{version}.tar.gz
Requires:   hddtemp
Requires:   perl-Nagios-Plugin
BuildArch:  noarch

%description
check_lm_sensors is a Nagios plugin to monitor the values of on board sensors
and hard disk temperatures on Linux systems

%prep
%setup -q -n %{up_name}-%{version}

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 check_lm_sensors %{buildroot}%{_datadir}/nagios/plugins

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_lm_sensors.cfg <<'EOF'
define command{
	command_name	check_lm_sensors
	command_line	%{_datadir}/nagios/plugins/check_lm_sensors
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS Changes NEWS README INSTALL TODO COPYING VERSION
%{_datadir}/nagios/plugins/check_lm_sensors
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_lm_sensors.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3508 |21cr|nagios-check_logfiles-3.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This package is de-facto noarch, but we need to install files to arch-specific places
%define debug_package %{nil}

Name:		nagios-check_logfiles
Version:	3.5.1
Release:	3
Summary:	Check log files for specific patterns
Group:		Networking/Other
License:	BSD
URL:		http://www.consol.com/opensource/nagios/check-logfiles
Source:     http://www.consol.com/fileadmin/opensource/Nagios/check_logfiles-%{version}.tar.gz

%description
check_logfiles is a Plugin for Nagios which scans log files for specific
patterns.

%prep
%setup -q -n check_logfiles-%{version}

%build
%configure --build=i586-mandriva-linux-gnu --libexec=%{_libdir}/nagios/plugins
%make


%install
%makeinstall_std

%files
%{_libdir}/nagios/plugins/check_logfiles

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3509 |21cr|nagios-check_memcached-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	MemCached health check for Nagios
Name:		nagios-check_memcached
Version:	1.1
Release:	10
License:	BSD
Group:		Networking/Other
URL:		http://zilbo.com/
Source0:	http://zilbo.com/plugins/check_memcached
Requires:	nagios
BuildArch:	noarch

%description
A plugin for nagios to check if memcached is up and running.

%prep
%setup -q -c -T

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins/

perl -pi -e 's|/opt|%{_datadir}|' \
    %{buildroot}%{_datadir}/nagios/plugins/check_memcached

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_memcached.cfg <<'EOF'
define command {
	command_name    check_memcached
	command_line    %{_datadir}/nagios/plugins/check_memcached -H $HOSTADDRESS$ -p $ARG1$ -k $ARG2$ -t $ARG3$
}
EOF

%if %mdkversion < 200900
%post
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :

%postun
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_memcached.cfg
%{_datadir}/nagios/plugins/check_memcached

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3510 |21cr|nagios-check_memory-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       nagios-check_memory
Version:    1.0
Release:    6
Epoch:      1
Summary:    Check memory
Group:      Networking/Other
License:    BSD
URL:        http://www.monitoringexchange.org/inventory/Check-Plugins/Operating-Systems/Linux/check_memory
Source0:    check_memory.pl
BuildArch:  noarch

%description
This plugin may be used as nrpe plugin and checks the amount of memory free,
used and total available by using the linux "free -mt" command. 

%prep
%setup -c -T

%build


%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins/check_memory

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_memory.cfg <<'EOF'
define command{
    command_name    check_memory
    command_line    %{_datadir}/nagios/plugins/check_memory
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/nagios/plugins/check_memory
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_memory.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3511 |21cr|nagios-check_mk-1.2.4b7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-check_mk
Version:	1.2.4b7
Release:	3
Summary:	A new general purpose Nagios-plugin for retrieving data
Group:		Networking/Other
License:	BSD
URL:		http://mathias-kettner.de/check_mk
Source:     http://mathias-kettner.de/download/check_mk-%{version}.tar.gz
BuildArch:  noarch

%description
check_mk is a general purpose Nagios-plugin for retrieving data. It adopts a
new approach for collecting data from operating systems and network components.
It obsoletes NRPE, check_by_ssh, NSClient, and check_snmp and it has many
benefits, the most important of which are significant reduction of CPU usage on
the Nagios host and automatic inventory of items to be checked on hosts. The
larger your Nagios installation is, the more helpful these improvements.

%package agent
Summary:    Agent for check_mk
Requires:   xinetd
Group:      Networking/Other

%description agent
This package contains the agent for check_mk. Install this on
all Linux machines you want to monitor via check_mk.

%prep
%setup -q -n check_mk-%{version}
tar xf agents.tar.gz

%build

%install
install -d -m 755 %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/check_mk <<'EOF'
#!/bin/sh
exec python %{_datadir}/check_mk/modules/check_mk.py "$@"
EOF
chmod +x %{buildroot}%{_bindir}/check_mk

install -d -m 755 %{buildroot}%{_sysconfdir}/check_mk
cat > %{buildroot}%{_sysconfdir}/check_mk/main.mk <<'EOF'
all_hosts = [ "localhost" ]
EOF

install -d -m 755 %{buildroot}%{_datadir}/check_mk
install -d -m 755 %{buildroot}%{_datadir}/check_mk/modules
tar xf modules.tar.gz -C %{buildroot}%{_datadir}/check_mk/modules
install -d -m 755 %{buildroot}%{_datadir}/check_mk/checks
tar xf checks.tar.gz -C %{buildroot}%{_datadir}/check_mk/checks
install -d -m 755 %{buildroot}%{_datadir}/check_mk/web
tar xf web.tar.gz -C %{buildroot}%{_datadir}/check_mk/web
install -d -m 755 %{buildroot}%{_datadir}/check_mk/pnp-templates
tar xf pnp-templates.tar.gz -C %{buildroot}%{_datadir}/check_mk/pnp-templates

cat > %{buildroot}%{_datadir}/check_mk/modules/defaults <<'EOF'
# created during package creation

check_mk_version            = '%{version}'
default_config_dir          = '%{_sysconfdir}/check_mk'
check_mk_configdir          = '%{_sysconfdir}/check_mk/conf.d'
checks_dir                  = '%{_datadir}/check_mk/checks'
check_manpages_dir          = '%{_datadir}/check_mk/doc/checks'
modules_dir                 = '%{_datadir}/check_mk/modules'
agents_dir                  = '%{_datadir}/check_mk/agents'
var_dir                     = '%{_localstatedir}/lib/check_mk'
lib_dir                     = ''
autochecksdir               = '%{_localstatedir}/lib/check_mk/autochecks'
precompiled_hostchecks_dir  = '%{_localstatedir}/lib/check_mk/precompiled'
counters_directory          = '%{_localstatedir}/lib/check_mk/counters'
tcp_cache_dir               = '%{_localstatedir}/lib/check_mk/cache'
logwatch_dir                = '%{_localstatedir}/lib/check_mk/logwatch'
nagios_objects_file         = '%{_sysconfdir}/nagios/objects/check_mk_objects.cfg'
rrd_path                    = '%{_localstatedir}/lib/check_mk/rrd'
nagios_command_pipe_path    = '/var/log/nagios/rw/nagios.cmd'
nagios_status_file          = '/var/log/nagios/status.dat'
nagios_conf_dir             = '/etc/nagios/objects'
nagios_user                 = 'nagios'
nagios_url                  = '/nagios'
nagios_cgi_url              = '/nagios/cgi-bin'
logwatch_notes_url          = '/check_mk/logwatch.py?host=%s&file=%s'
www_group                   = 'apache'
nagios_config_file          = '%{_sysconfdir}/nagios/nagios.cfg'
nagios_startscript          = '%{_initrddir}/nagios'
nagios_binary               = '%{_sbindir}/nagios'
apache_config_dir           = '%{_sysconfdir}/httpd/conf/webapps.d'
htpasswd_file               = '%{_sysconfdir}/check_mk/htpasswd.users'
nagios_auth_name            = 'Nagios Access'
web_dir                     = '%{_datadir}/check_mk/web'
checkmk_web_uri             = '/check_mk'
livestatus_unix_socket      = '/'
livebackendsdir             = ''
pnp_url                     = '/pnp4nagios/'
pnp_templates_dir           = '%{_datadir}/check_mk/pnp-templates'
doc_dir                     = '%{_datadir}/doc/check_mk'
EOF
cp %{buildroot}%{_datadir}/check_mk/modules/defaults \
    %{buildroot}%{_datadir}/check_mk/web/htdocs/defaults.py

install -d -m 755 %{buildroot}%{_localstatedir}/lib/check_mk
install -d -m 755 %{buildroot}%{_localstatedir}/lib/check_mk/autochecks
install -d -m 755 %{buildroot}%{_localstatedir}/lib/check_mk/cache
install -d -m 755 %{buildroot}%{_localstatedir}/lib/check_mk/counters
install -d -m 755 %{buildroot}%{_localstatedir}/lib/check_mk/precompiled
install -d -m 755 %{buildroot}%{_localstatedir}/lib/check_mk/logwatch
install -d -m 755 %{buildroot}%{_localstatedir}/lib/check_mk/rrd

install -d -m 755 %{buildroot}%{_docdir}/%{name}
tar xf doc.tar.gz -C %{buildroot}%{_docdir}/%{name} --exclude livestatus

install -d -m 755 %{buildroot}%{_sysconfdir}/xinetd.d
install -m 644 xinetd.conf %{buildroot}%{_sysconfdir}/xinetd.d/check_mk_agent

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 check_mk_agent.linux %{buildroot}%{_bindir}/check_mk_agent

install -d -m 755 %{buildroot}%{_datadir}/check_mk_agent
install -d -m 755 %{buildroot}%{_datadir}/check_mk_agent/plugins
install -d -m 755 %{buildroot}%{_datadir}/check_mk_agent/local
install -m 644 plugins/mk_logwatch %{buildroot}%{_datadir}/check_mk_agent/plugins
install -m 644 plugins/j4p_performance %{buildroot}%{_datadir}/check_mk_agent/plugins
install -m 644 plugins/mk_oracle %{buildroot}%{_datadir}/check_mk_agent/plugins
install -m 644 plugins/sylo %{buildroot}%{_datadir}/check_mk_agent/plugins

install -d -m 755 %{buildroot}%{_sysconfdir}/check_mk_agent
install -m 644 logwatch.cfg %{buildroot}%{_sysconfdir}/check_mk_agent

perl -pi \
    -e 's|LIBDIR="/to/be/changed"|LIBDIR="%{_datadir}/check_mk_agent"|;' \
    -e 's|CONFDIR="/to/be/changed"|CONFDIR="%{_sysconfdir}/check_mk_agent"|;' \
    %{buildroot}%{_bindir}/check_mk_agent

# Drop compiled example - it won't launch in our systems
rm -f %{buildroot}%{_datadir}/doc/nagios-check_mk/treasures/modbus/agent_modbus

%files
%doc %{_docdir}/%{name}
%{_bindir}/check_mk
%config(noreplace) %{_sysconfdir}/check_mk
%{_datadir}/check_mk
%{_localstatedir}/lib/check_mk

%files agent
%{_bindir}/check_mk_agent
%{_datadir}/check_mk_agent
%config(noreplace) %{_sysconfdir}/xinetd.d/check_mk_agent
%config(noreplace) %{_sysconfdir}/check_mk_agent
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3512 |21cr|nagios-check_mysql_health-2.1.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_name	check_mysql_health

Name:		nagios-%{up_name}
Version:	2.1.7
Release:	3
Summary:	Check MySQL
Group:		Networking/Other
License:	GPL
URL:		http://www.consol.de/opensource/nagios/check-mysql-health/
Source0:	http://labs.consol.de/wp-content/uploads/2010/03/%{up_name}-%{version}.tar.gz
BuildArch:	noarch

%description
This plugin is used to monitor a variety of mysql database metrics.

%prep
%setup -q -n %{up_name}-%{version}

%build
%configure \
    --libexecdir=%{_datadir}/nagios/plugins \
    --with-statefiles-dir=%{_localstatedir}/lib/nagios
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_mysql_health.cfg <<'EOF'
define command{
	command_name	check_mysql_health
	command_line	%{_datadir}/nagios/plugins/check_mysql_health
}
EOF

%files
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_mysql_health.cfg
%{_datadir}/nagios/plugins/check_mysql_health

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3513 |21cr|nagios-check_netapp-20060619-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Check Network Appliance (NetApp) filers
Name:		nagios-check_netapp
Version:	20060619
Release:	7
Group:		Networking/Other
License:	BSD
URL:		http://nerhood.homeip.net/wordpress/archives/2006/06/19/monitoring-netapp-with-nagios-and-nagiosgraph/
Source0:	http://nerhood.homeip.net/code/check_netapp
BuildArch:  noarch

%description
Use this plugin with Nagios to check Network Appliance (NetApp) filers.

%prep

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins

perl -pi -e 's|/usr/local/nagios/libexec|%{_datadir}/nagios/plugins|' \
    %{buildroot}%{_datadir}/nagios/plugins/check_netapp

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_netapp.cfg <<'EOF'
define command{
	command_name	check_netapp
	command_line	%{_datadir}/nagios/plugins/check_netapp -H $HOSTADDRESS$
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/nagios/plugins/check_netapp
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_netapp.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3514 |21cr|nagios-check_nfs4-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-check_nfs4
Version:	0.2
Release:	7
Summary:	NFSv4 monitoring for clients and servers
License:	GPL
Group:		Networking/Other
URL:		http://www.nagiosexchange.org/cgi-bin/page.cgi?g=2070.html;d=1
Source:     check_nfs4.%{version}.pl
Requires:	nagios-plugins
BuildArch:  noarch

%description
This plugin checks NFSv4 daemons status (client and server) including nfsd,
idmapd, mountd and svcgssd.
It also displays information about performances and errors. 

%prep
%setup -q -c -T

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins/check_nfs4.pl

perl -pi -e 's|/usr/local/nagios/libexec|%{_datadir}/nagios|' \
    %{buildroot}%{_datadir}/nagios/plugins/check_nfs4.pl

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_nfs4.cfg <<'EOF'
define command {
	command_name    check_nfs4
	command_line    %{_datadir}/nagios/plugins/check_nfs4.pl
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_nfs4.cfg
%{_datadir}/nagios/plugins/check_nfs4.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3515 |21cr|nagios-check_rsync-1.02-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-check_rsync
Version:	1.02
Release:	9
Summary:    Nagios rsync plugin
License:    GPL
Group:		Networking/Other
Url:        http://exchange.nagios.org/directory/Plugins/Network-Protocols/Rsync/check_rsync/details
Source0:    check_rsync
Requires:   rsync
BuildArch:  noarch

%description
Checks rsync servers availability, as well as (optionally) individual modules
availability. It also supports authentication on modules.

%prep

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins

perl -pi -e 's|/usr/local/nagios/libexec|%{_datadir}/nagios/plugins|' \
    %{buildroot}%{_datadir}/nagios/plugins/check_rsync

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_rsync.cfg <<'EOF'
define command{
	command_name	check_rsync
	command_line	%{_datadir}/nagios/plugins/check_rsync -H $HOSTADDRESS$
}
EOF

%files 
%{_datadir}/nagios/plugins/check_rsync
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_rsync.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3516 |21cr|nagios-check_sip-1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	A Nagios plugin to check SIP servers and devices
Name:		nagios-check_sip
Version:	1.2
Release:	9
License:	GPL
Group:		Networking/Other
URL:		http://www.bashton.com/content/nagiosplugins
Source0:	http://www.bashton.com/downloads/%{name}-%{version}.tar.gz
Requires:	nagios
BuildArch:  noarch

%description
A Nagios plugin that will test a SIP server/device for availability and
response time.

%prep

%setup -q

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 check_sip %{buildroot}%{_datadir}/nagios/plugins

perl -pi -e 's|/usr/lib/nagios|%{_datadir}/nagios|' \
    %{buildroot}%{_datadir}/nagios/plugins/check_sip

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_sip.cfg <<'EOF'
define command {
    command_name	check_sip
	command_line	%{_datadir}/nagios/plugins/check_sip -u $ARG1$ -H $HOSTADDRESS$ -w 5
}
EOF

%if %mdkversion < 200900
%post
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :

%postun
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_sip.cfg
%{_datadir}/nagios/plugins/check_sip

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3517 |21cr|nagios-check_spamd-0.01-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	Spamd monitoring script for use with Nagios
Name:		nagios-check_spamd
Version:	0.01
Release:	10
License:	Apache License
Group:		Networking/Other
URL:		http://www.apache.org/
# Originally taken from here, but URL doesnt' work anymore: http://svn.apache.org/repos/asf/spamassassin/trunk/contrib/check_spamd
Source0:	check_spamd
Requires:	nagios-plugins
Requires:	perl(Time::HiRes)
Requires:	perl(Mail::SpamAssassin::Client)
Requires:	perl(Mail::SpamAssassin::Timeout)
BuildArch:  noarch

%description
The purpose of this program is to provide a tool to monitor the status of
"spamd" server processes. spamd is the daemonized version of the spamassassin
executable, both provided in the SpamAssassin distribution.

This program is designed for use, as a plugin, with the Nagios service
monitoring software available from http://nagios.org. It might be compatible
with other service monitoring packages. It is also useful as a command line
utility or as a component of a custom shell script.

%prep
%setup -q -c -T

%build

%install

install -d %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins

install -d %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_spamd.cfg <<'EOF'
define command {
	command_name    check_spamd
	command_line    %{_datadir}/nagios/plugins/check_spamd -H $HOSTADDRESS$ -c $ARG1$ -p $ARG2$ -t $ARG3$ -w $ARG4$
}
EOF

%clean

%files
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_spamd.cfg
%{_datadir}/nagios/plugins/check_spamd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3518 |21cr|nagios-check_temperature-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	A Nagios wrapper script around digitemp
Name:		nagios-check_temperature
Version:	1.1
Release:	10
License:	BSD-like
Group:		Networking/Other
URL:		http://www.hoppie.nl/tempsens/
Source0:	http://www.hoppie.nl/tempsens/check_temperature
Requires:	digitemp
Requires:	nagios-plugins
BuildArch:  noarch

%description
check_temperature: Nagios wrapper script around digitemp. Used to monitor a
couple of 1-wire temperature sensors and to raise an alarm when one of them
reports a temperature outside a predefined band.

%prep
%setup -q -T -c

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/get_temperature << 'EOF'
#!/bin/bash
#
# get_temperature: polls the temperature sensor array and leaves the
# temperatures in a state file. Called by cron every 5 minutes.

TMPFILE="/tmp/temperature.XXXXXX"
STATEFILE="%{_localstatedir}/lib/temperature/current"
DIGITEMP="%{_bindir}/digitemp"
DIGICONF="%{_sysconfdir}/digitemp.conf"

# error check #1
if ! [ -f \$DIGITEMP ]; then
    echo "\$DIGITEMP does not exist."
    echo "please do \"ln -snf %{_bindir}/digitemp_DS9097 %{_bindir}/digitemp\""
    exit 1
fi

# error check #2
if ! [ -f \$DIGICONF ]; then
    echo "\$DIGICONF does not exist."
    echo "please do \"%{_bindir}/digitemp -i -c \$DIGICONF -s /dev/ttyS0\""
    exit 1
fi

# Abort after first script error.
set -e

# Get a unique temporary tamper-proof file name.
tmp=\$(mktemp \$TMPFILE)

# Create a full poll list of the temperature array. This takes up to
# 5 seconds per sensor, and therefore must be done to a (slowly growing)
# temporary file.
\$DIGITEMP -c \$DIGICONF -a -q > \$tmp
chmod 644 \$tmp

# 'Atomically' move the freshly created state file in place.
mv \$tmp \$STATEFILE
EOF
chmod +x %{buildroot}%{_bindir}/get_temperature

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_temperature.cfg <<'EOF'
define command {
        command_name	check_temperature
        command_line	%{_datadir}/nagios/plugins/check_temperature -s $ARG1$ -t $ARG2$ -w $ARG3$ -c $ARG4$
}
EOF

install -d -m 755 %{buildroot}%{_sysconfdir}/cron.d
cat > %{buildroot}%{_sysconfdir}/cron.d/%{name} <<'EOF'
# Poll the temperature sensor array every five minutes.
*/5 * * * * root %{_bindir}/get_temperature

# Append the last poll to the history file after each whole hour.
4 * * * * root cat %{_localstatedir}/lib/temperature/current >> /var/log/temperature.log
EOF

install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<'EOF'
/var/log/temperature.log {
    missingok
    monthly
    compress
}
EOF

install -d -m 755 %{buildroot}%{_localstatedir}/lib/temperature

%if %mdkversion < 200900
%post
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :

%postun
/sbin/service nagios condrestart > /dev/null 2>/dev/null || :
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_temperature.cfg
%config(noreplace) %{_sysconfdir}/cron.d/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_datadir}/nagios/plugins/check_temperature
%{_bindir}/get_temperature
%{_localstatedir}/lib/temperature

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3519 |21cr|nagios-check_whitelist-0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	Examine and manipulate SpamAssassin's auto-whitelist db
Name:		nagios-check_whitelist
Version:	0
Release:	11
License:	Apache License
Group:		Networking/Other
URL:		http://www.apache.org/
# Originally taken from here, but URL doesnt' work anymore: http://svn.apache.org/repos/asf/spamassassin/trunk/tools/check_whitelist
Source0:	check_whitelist
Source1:	check_whitelist.cfg
Requires:	nagios-plugins
BuildArch:  noarch

%description
Check or clean a SpamAssassin auto-whitelist (AWL) database file.

%prep
%setup -q -c -T

%build

%install

install -d %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins/

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_whitelist.cfg <<'EOF'
define command {
	command_name    check_whitelist
	command_line    %{_datadir}/nagios/plugins/check_whitelist --clean --min $ARG1$ $ARG2$
}
EOF

%clean

%files
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_whitelist.cfg
%{_datadir}/nagios/plugins/check_whitelist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3520 |21cr|nagios-check_x224-9734-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-check_x224
Version:	9734
Release:	5
Summary:	Nagios x224 plugin
Group:		Networking/Other
License:	BSD
URL:		http://exchange.nagios.org/directory/Plugins/Remote-Access/check_x224/details
Source0:	check_x224
BuildArch:  noarch

%description
Checks that the most basic parts of a Remote Desktop connection succeeds.
The Remote Desktop protocol builds on a protocol called x224. This plugin
checks that the initial and most basic parts of a Remote Desktop connection -
the part which is specified by x224 - succeeds. I.e., it does a bit more than a
TCP connection test at port 3389. 

%prep

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_x224.cfg <<'EOF'
define command {
	command_name    check_x224
	command_line    %{_datadir}/nagios/plugins/check_x224 -H $HOSTADDRESS$
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_x224.cfg
%{_datadir}/nagios/plugins/check_x224

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3521 |21cr|nagios-check_xendomains-20070528-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-check_xendomains
Version:	20070528
Release:	13
Summary:	Nagios Xen plugin
Group:		Networking/Other
License:	BSD
URL:		http://beta.perseverantia.com/devel/?project=nagiosplug
Source0:	http://beta.perseverantia.com/devel/src/plugins/check_xendomains.py
Patch:      check_xendomains-fix-shellbang.patch
BuildArch:	noarch

%description
Plugin for Nagios (written in Python to check Xen's state on a remote host. As
for now, it just checks that Xend is running (well, it really checks that
xend-http-server is running) and lists the nodes running on the remote host.

%prep
cp %{SOURCE0} check_xendomains.py
%patch -p0

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 check_xendomains.py %{buildroot}%{_datadir}/nagios/plugins/check_xendomains

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_xendomains.cfg <<'EOF'
define command{
	command_name	check_xendomains
	command_line	%{_datadir}/nagios/plugins/check_xendomains -H $HOSTADDRESS$
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/nagios/plugins/check_xendomains
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_xendomains.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3522 |21cr|nagios-check_zone_auth-1.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-check_zone_auth
Version:	1.12
Release:	5
Summary:	Check DNS zones synchronisation
Group:		Networking/Other
License:	BSD
URL:		http://dns.measurement-factory.com/tools/nagios-plugins/check_zone_auth.html
Source0:	http://dns.measurement-factory.com/tools/nagios-plugins/src/check_zone_auth
BuildArch:  noarch

%description
Use this plugin with Nagios to make sure that the authoritative nameservers for
a given zone remain in sync.

%prep

%build


%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 %{SOURCE0} %{buildroot}%{_datadir}/nagios/plugins

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_zone_auth.cfg <<'EOF'
define command{
	command_name	check_zone_auth
	command_line	%{_datadir}/nagios/plugins/check_zone_auth -Z $HOSTADDRESS$
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/nagios/plugins/check_zone_auth
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_zone_auth.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3523 |21cr|nagios-conf-3.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	This package contains sample configuration for nagios
Name:		nagios-conf
Version:	3.0
Release:	8
License:	GPL
Group:		Networking/Other
URL:		http://www.nagios.org/
Source0:	sample.cfg
Requires:	nagios
Requires:	nagios-check_disk
Requires:	nagios-check_http
Requires:	nagios-check_load
Requires:	nagios-check_ping
Requires:	nagios-check_procs
Requires:	nagios-check_ssh
Requires:	nagios-check_swap
Requires:	nagios-check_users
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
This package contains sample configuration for nagios.

%prep

%setup -q -T -c -n %{name}-%{version}

cp %{SOURCE0} sample.cfg

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}/nagios/conf.d

install -m0644 sample.cfg %{buildroot}%{_sysconfdir}/nagios/conf.d/

%post
%{_initrddir}/nagios condrestart >/dev/null 2>&1 || :

%postun
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart >/dev/null 2>&1 || :
fi

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/conf.d/sample.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3524 |21cr|nagiosgraph-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagiosgraph
Version:	1.5.2
Release:	1
Summary:	Visualization addon for nagios
License:	GPL
Group:		Networking/WWW
URL:		http://nagiosgraph.sourceforge.net
Source:     http://downloads.sourceforge.net/nagiosgraph/%{name}-%{version}.tar.gz
Requires:   nagios
BuildArch:	noarch

%description
Nagiosgraph is an add-on of Nagios. It collects service performance data into
rrd format, and displays the resulting graphs via cgi.

%prep
%setup -q -n %{name}-%{version}

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 etc/* %{buildroot}%{_sysconfdir}/%{name}
rm -f %{buildroot}%{_sysconfdir}/%{name}/*.pm

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/%{name}/lib
install -m 644 etc/ngshared.pm %{buildroot}%{_datadir}/%{name}/lib

install -d -m 755 %{buildroot}%{_datadir}/%{name}/www
install -m 755 cgi/* %{buildroot}%{_datadir}/%{name}/www
install -m 644 share/*.css %{buildroot}%{_datadir}/%{name}/www

install -d -m 755 %{buildroot}%{_datadir}/%{name}/bin
install -m 755 lib/* %{buildroot}%{_datadir}/%{name}/bin

install -d -m 755 %{buildroot}%{_var}/lib/nagiosgraph

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# %{name} Apache configuration
Alias /%{name} %{_datadir}/%{name}/www

<Directory %{_datadir}/%{name}/www>
    DirectoryIndex show.cgi
    Options ExecCGI

    Require all granted
</Directory>
EOF

cat > README.urpmi <<EOF
Mandriva RPM specific notes

setup
-----
This software has been modified to comply with FHS:
- all configurations files are located in %{_sysconfdir}/nagiosgraph
EOF

%clean
rm -rf %{buildroot}

%post
%if %mdkversion < 201010
%_post_webapp
%endif
%create_ghostfile /var/log/nagiosgraph.log nagios apache 664


%files
%defattr(-,root,root)
%doc AUTHORS CHANGELOG INSTALL README README.urpmi TODO
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/nagiosgraph
%{_datadir}/%{name}
%attr(-,nagios,nagios) %{_var}/lib/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3525 |21cr|nagios-imagepaks-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Nagios Image Packs
Name:		nagios-imagepaks
Version:	1.0
Release:	8
License:	Open Source
Group:		Networking/WWW
URL:		http://www.nagios.org/download/extras.php
Source0:	http://dl.sourceforge.net/nagios/imagepak-base.tar.gz
Source1:	http://dl.sourceforge.net/nagios/imagepak-bernhard.tar.gz
Source2:	http://dl.sourceforge.net/nagios/imagepak-cook.tar.gz
Source3:	http://dl.sourceforge.net/nagios/imagepak-didier.tar.gz
Source4:	http://dl.sourceforge.net/nagios/imagepak-remus.tar.gz
Source5:	http://dl.sourceforge.net/nagios/imagepak-satrapa.tar.gz
Source6:	http://dl.sourceforge.net/nagios/imagepak-werschler.tar.gz
Source7:	http://glen.alkohol.ee/pld/nagios/imagepak-pld-20050402.4.tar.bz2
Source8:	mandriva.png
Requires:	nagios-www
BuildArch:	noarch
BuildRequires:	imagemagick
BuildRequires:	gd-utils

%define		_logodir	%{_datadir}/nagios/www/images/logos

%description
Image packs are provided so that you have some colorful OS and device images to
beautify your CGIs in Nagios. Each pack includes GIF, JPEG, PNG, and GD2
versions of each icon.

%prep

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_logodir}/{bernhard,cook}
tar -xz -C %{buildroot}%{_logodir} -f %{SOURCE0}
tar -xz -C %{buildroot}%{_logodir}/bernhard --strip-components=1 -f %{SOURCE1}
tar -xz -C %{buildroot}%{_logodir}/cook -f %{SOURCE2}
tar -xz -C %{buildroot}%{_logodir} -f %{SOURCE3}
tar -xz -C %{buildroot}%{_logodir} -f %{SOURCE4}
tar -xz -C %{buildroot}%{_logodir} -f %{SOURCE5}
tar -xz -C %{buildroot}%{_logodir} -f %{SOURCE6}
tar -xj -C %{buildroot}%{_logodir}/base --strip-components=1 -f %{SOURCE7}

# shiny mandriva icon
install -m 644 %{SOURCE8} %{buildroot}%{_logodir}/base/mandriva.png
convert %{SOURCE8} %{buildroot}%{_logodir}/base/mandriva.gif
convert %{SOURCE8} %{buildroot}%{_logodir}/base/mandriva.jpg
pngtogd2  %{SOURCE8} %{buildroot}%{_logodir}/base/mandriva.gd2 0 1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_logodir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3526 |21cr|nagios-plugins-2.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\((English|SNMP|a)\\)

%define nsusr nagios
%define nsgrp nagios
%define cmdusr apache
%define cmdgrp apache

Summary:	Host/service/network monitoring program plugins for Nagios
Name:		nagios-plugins
Version:	2.3.3
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Monitoring
Url:		http://nagiosplug.sourceforge.net/
Source0:	http://www.nagios-plugins.org/download/%{name}-%{version}.tar.gz
Patch0:		338.patch
Patch1:		nagios-plugins-2.0.3-check_ping-socket-filter-warning.patch
Source101:	check_breeze.cfg
Source102:	check_by_ssh.cfg
Source103:	check_cluster.cfg
Source104:	check_dhcp.cfg
Source105:	check_dig.cfg
Source106:	check_disk.cfg
Source107:	check_disk_smb.cfg
Source108:	check_dns.cfg
Source109:	check_dummy.cfg
Source110:	check_file_age.cfg
Source111:	check_flexlm.cfg
Source112:	check_fping.cfg
Source113:	check_game.cfg
Source114:	check_hpjd.cfg
Source115:	check_http.cfg
Source116:	check_icmp.cfg
Source117:	check_ide_smart.cfg
Source118:	check_ifoperstatus.cfg
Source119:	check_ifstatus.cfg
Source120:	check_ircd.cfg
Source121:	check_ldap.cfg
Source122:	check_load.cfg
Source123:	check_log.cfg
Source124:	check_mailq.cfg
Source127:	check_mysql.cfg
Source128:	check_mysql_query.cfg
Source129:	check_nagios.cfg
Source130:	check_nt.cfg
Source131:	check_ntp.cfg
Source132:	check_ntp_peer.cfg
Source133:	check_ntp_time.cfg
Source134:	check_nwstat.cfg
Source135:	check_oracle.cfg
Source136:	check_overcr.cfg
Source137:	check_pgsql.cfg
Source138:	check_ping.cfg
Source139:	check_procs.cfg
Source140:	check_radius.cfg
Source141:	check_real.cfg
Source142:	check_rpc.cfg
Source143:	check_sensors.cfg
Source144:	check_smtp.cfg
Source145:	check_snmp.cfg
Source146:	check_ssh.cfg
Source147:	check_swap.cfg
Source148:	check_tcp.cfg
Source149:	check_time.cfg
Source150:	check_ups.cfg
Source151:	check_users.cfg
Source152:	check_wave.cfg

BuildRequires:	bind-utils
BuildRequires:	cvs
BuildRequires:	fping
BuildRequires:	net-snmp-utils
BuildRequires:	ntp
BuildRequires:	nut
BuildRequires:	openssh-clients
BuildRequires:	samba-client
BuildRequires:	shadow-utils
BuildRequires:	traceroute
BuildRequires:	gettext-devel
BuildRequires:	libsasl-devel
BuildRequires:	mysql-devel
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	radiusclient-ng-devel
BuildRequires:	pkgconfig(dbi)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Requires(post,preun):	rpm-helper

%description
Nagios is a program that will monitor hosts and services on your network, and
to email or page you when a problem arises or is resolved. Nagios runs on a
Unix server as a background or daemon process, intermittently running checks on
various services that you specify. The actual service checks are performed by
separate "plugin" programs which return the status of the checks to Nagios.

This package contains the basic plugins necessary for use with the Nagios
package. This package should install cleanly on almost any RPM-based system.

%files -f %{name}.lang
%doc AUTHORS CODING ChangeLog FAQ LEGAL NEWS README* REQUIREMENTS SUPPORT
%dir %{_libdir}/nagios
%dir %{_libdir}/nagios/plugins
%{_libdir}/nagios/plugins/negate
%{_libdir}/nagios/plugins/urlize
%{_libdir}/nagios/plugins/utils.pm
%{_libdir}/nagios/plugins/utils.sh
%{_libdir}/nagios/plugins/remove_perfdata
%{_datadir}/nagios/plugins

%pre
%{_sbindir}/useradd -r -M -s /bin/sh -d /var/log/nagios -c "system user for %{nsusr}" %{nsusr} >/dev/null 2>&1 || :
%{_bindir}/gpasswd -a %{cmdusr} %{nsgrp} >/dev/null 2>&1 || :

%postun
%_postun_userdel %{nsusr}

#----------------------------------------------------------------------------

%package -n nagios-check_breeze
Summary:	The check_breeze plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_breeze
This plugin reports the signal strength of a Breezecom wireless equipment

%files -n nagios-check_breeze
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_breeze.cfg
%{_libdir}/nagios/plugins/check_breeze

#----------------------------------------------------------------------------

%package -n nagios-check_by_ssh
Summary:	The check_by_ssh plugin for nagios
Group:		Networking/Other
Requires:	nagios-check_disk
Requires:	nagios-plugins

%description -n nagios-check_by_ssh
This plugin uses SSH to execute commands on a remote host.

%files -n nagios-check_by_ssh
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_by_ssh.cfg
%{_libdir}/nagios/plugins/check_by_ssh

#----------------------------------------------------------------------------

%package -n nagios-check_cluster
Summary:	The check_cluster plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_cluster
This package contains the check_cluster plugin for nagios.

%files -n nagios-check_cluster
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_cluster.cfg
%{_libdir}/nagios/plugins/check_cluster

#----------------------------------------------------------------------------

%package -n nagios-check_dbi
Summary:	The check_dbi plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_dbi
This package contains the check_dbi plugin for nagios.

%files -n nagios-check_dbi
%{_libdir}/nagios/plugins/check_dbi

#----------------------------------------------------------------------------

%package -n nagios-check_dhcp
Summary:	The check_dhcp plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_dhcp
This plugin tests the availability of DHCP servers on a network.

%files -n nagios-check_dhcp
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_dhcp.cfg
%attr(4550,root,nagios) %{_libdir}/nagios/plugins/check_dhcp

#----------------------------------------------------------------------------

%package -n nagios-check_dig
Summary:	The check_dig plugin for nagios
Group:		Networking/Other
Requires:	bind-utils
Requires:	nagios-plugins

%description -n nagios-check_dig
This plugin test the DNS service on the specified host using dig.

%files -n nagios-check_dig
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_dig.cfg
%{_libdir}/nagios/plugins/check_dig

#----------------------------------------------------------------------------

%package -n nagios-check_disk
Summary:	The check_disk plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_disk
This plugin checks the amount of used disk space on a mounted file system and
generates an alert if free space is less than one of the threshold values

%files -n nagios-check_disk
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_disk.cfg
%{_libdir}/nagios/plugins/check_disk

#----------------------------------------------------------------------------

%package -n nagios-check_disk_smb
Summary:	The check_disk_smb plugin for nagios
Group:		Networking/Other
Requires:	samba-client
Requires:	nagios-plugins

%description -n nagios-check_disk_smb
Perl Check SMB Disk plugin for Nagios.

%files -n nagios-check_disk_smb
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_disk_smb.cfg
%{_libdir}/nagios/plugins/check_disk_smb

#----------------------------------------------------------------------------

%package -n nagios-check_dns
Summary:	The check_dns plugin for nagios
Group:		Networking/Other
Requires:	bind-utils
Requires:	nagios-plugins

%description -n nagios-check_dns
This plugin uses the nslookup program to obtain the IP address for the given
host/domain query. An optional DNS server to use may be specified. If no DNS
server is specified, the default server(s) specified in /etc/resolv.conf will
be used.

%files -n nagios-check_dns
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_dns.cfg
%{_libdir}/nagios/plugins/check_dns

#----------------------------------------------------------------------------

%package -n nagios-check_dummy
Summary:	The check_dummy plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_dummy
This plugin will simply return the state corresponding to the numeric value
of the <state> argument with optional text

%files -n nagios-check_dummy
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_dummy.cfg
%{_libdir}/nagios/plugins/check_dummy

#----------------------------------------------------------------------------

%package -n nagios-check_file_age
Summary:	The check_file_age plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_file_age
This package contains the check_file_age plugin for nagios.

%files -n nagios-check_file_age
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_file_age.cfg
%{_libdir}/nagios/plugins/check_file_age

#----------------------------------------------------------------------------

%package -n nagios-check_flexlm
Summary:	The check_flexlm plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_flexlm
Check available flexlm license managers.

%files -n nagios-check_flexlm
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_flexlm.cfg
%{_libdir}/nagios/plugins/check_flexlm

#----------------------------------------------------------------------------

%package -n nagios-check_fping
Summary:	The check_fping plugin for nagios
Group:		Networking/Other
Requires:	fping
Requires:	nagios-plugins

%description -n nagios-check_fping
This plugin will use the fping command to ping the specified host for a fast
check Note that it is necessary to set the suid flag on fping.

%files -n nagios-check_fping
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_fping.cfg
%{_libdir}/nagios/plugins/check_fping

#----------------------------------------------------------------------------

%package -n nagios-check_game
Summary:	The check_game plugin for nagios
Group:		Networking/Other
Requires:	qstat
Requires:	nagios-plugins

%description -n nagios-check_game
This plugin tests game server connections with the specified host.

%files -n nagios-check_game
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_game.cfg
%{_libdir}/nagios/plugins/check_game

#----------------------------------------------------------------------------

%package -n nagios-check_hpjd
Summary:	The check_hpjd plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Requires:	nagios-plugins

%description -n nagios-check_hpjd
This plugin tests the STATUS of an HP printer with a JetDirect card. Net-snmp
must be installed on the computer running the plugin.

%files -n nagios-check_hpjd
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_hpjd.cfg
%{_libdir}/nagios/plugins/check_hpjd

#----------------------------------------------------------------------------

%package -n nagios-check_http
Summary:	The check_http plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_http
This plugin tests the HTTP service on the specified host. It can test normal
(http) and secure (https) servers, follow redirects, search for strings and
regular expressions, check connection times, and report on certificate
expiration times.

%files -n nagios-check_http
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_http.cfg
%{_libdir}/nagios/plugins/check_http

#----------------------------------------------------------------------------

%package -n nagios-check_icmp
Summary:	The check_icmp plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_icmp
This package contains the check_icmp plugin for nagios.

%files -n nagios-check_icmp
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_icmp.cfg
%attr(4550,root,nagios) %{_libdir}/nagios/plugins/check_icmp

#----------------------------------------------------------------------------

%package -n nagios-check_ide_smart
Summary:	The check_ide_smart plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_ide_smart
This plugin checks a local hard drive with the (Linux specific) SMART interface
[http://smartlinux.sourceforge.net/smart/index.php].

%files -n nagios-check_ide_smart
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ide_smart.cfg
%{_libdir}/nagios/plugins/check_ide_smart

#----------------------------------------------------------------------------

%package -n nagios-check_ifoperstatus
Summary:	The check_ifoperstatus plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_ifoperstatus
check_ifoperstatus plugin for Nagios monitors operational status of a
particular network interface on the target host.

%files -n nagios-check_ifoperstatus
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ifoperstatus.cfg
%{_libdir}/nagios/plugins/check_ifoperstatus

#----------------------------------------------------------------------------

%package -n nagios-check_ifstatus
Summary:	The check_ifstatus plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_ifstatus
check_ifstatus plugin for Nagios monitors operational status of each network
interface on the target host.

%files -n nagios-check_ifstatus
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ifstatus.cfg
%{_libdir}/nagios/plugins/check_ifstatus

#----------------------------------------------------------------------------

%package -n nagios-check_ircd
Summary:	The check_ircd plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_ircd
Perl Check IRCD plugin for Nagios.

%files -n nagios-check_ircd
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ircd.cfg
%{_libdir}/nagios/plugins/check_ircd

#----------------------------------------------------------------------------

%package -n nagios-check_ldap
Summary:	The check_ldap plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_ldap
This package contains the check_ldap plugin for nagios.

%files -n nagios-check_ldap
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ldap.cfg
%{_libdir}/nagios/plugins/check_ldap
%{_libdir}/nagios/plugins/check_ldaps

#----------------------------------------------------------------------------

%package -n nagios-check_load
Summary:	The check_load plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_load
This plugin tests the current system load average.

%files -n nagios-check_load
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_load.cfg
%{_libdir}/nagios/plugins/check_load

#----------------------------------------------------------------------------

%package -n nagios-check_log
Summary:	The check_log plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_log
Log file pattern detector plugin for Nagios.

%files -n nagios-check_log
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_log.cfg
%{_libdir}/nagios/plugins/check_log

#----------------------------------------------------------------------------

%package -n nagios-check_mailq
Summary:	The check_mailq plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_mailq
Checks the number of messages in the mail queue (supports multiple sendmail
queues, qmail).

%files -n nagios-check_mailq
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_mailq.cfg
%{_libdir}/nagios/plugins/check_mailq

#----------------------------------------------------------------------------

%package -n nagios-check_mysql
Summary:	The check_mysql plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_mysql
This program tests connections to a mysql server.

%files -n nagios-check_mysql
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_mysql.cfg
%{_libdir}/nagios/plugins/check_mysql

#----------------------------------------------------------------------------

%package -n nagios-check_mysql_query
Summary:	The check_mysql_query plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_mysql_query
This program checks a query result against threshold levels.

%files -n nagios-check_mysql_query
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_mysql_query.cfg
%{_libdir}/nagios/plugins/check_mysql_query

#----------------------------------------------------------------------------

%package -n nagios-check_nagios
Summary:	The check_nagios plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_nagios
This plugin checks the status of the Nagios process on the local machine. The
plugin will check to make sure the Nagios status log is no older than the
number of minutes specified by the expires option. It also checks the process
table for a process matching the command argument.

%files -n nagios-check_nagios
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_nagios.cfg
%{_libdir}/nagios/plugins/check_nagios

#----------------------------------------------------------------------------

%package -n nagios-check_nt
Summary:	The check_nt plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_nt
This plugin collects data from the NSClient service running on a Windows(tm)
NT/2000/XP/2003 server.

%files -n nagios-check_nt
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_nt.cfg
%{_libdir}/nagios/plugins/check_nt

#----------------------------------------------------------------------------

%package -n nagios-check_ntp
Summary:	The check_ntp plugin for nagios
Group:		Networking/Other
Requires:	ntp
Requires:	nagios-plugins

%description -n nagios-check_ntp
This plugin checks the selected ntp server.

%files -n nagios-check_ntp
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ntp.cfg
%{_libdir}/nagios/plugins/check_ntp

#----------------------------------------------------------------------------

%package -n nagios-check_ntp_peer
Summary:	The check_ntp_peer plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_ntp_peer
This plugin checks the selected ntp server.

%files -n nagios-check_ntp_peer
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ntp_peer.cfg
%{_libdir}/nagios/plugins/check_ntp_peer

#----------------------------------------------------------------------------

%package -n nagios-check_ntp_time
Summary:	The check_ntp_time plugin for nagios
Group:		Networking/Other
Requires:	ntp
Requires:	nagios-plugins

%description -n nagios-check_ntp_time
This plugin checks the clock offset with the ntp server.

%files -n nagios-check_ntp_time
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ntp_time.cfg
%{_libdir}/nagios/plugins/check_ntp_time

#----------------------------------------------------------------------------

%package -n nagios-check_nwstat
Summary:	The check_nwstat plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_nwstat
This plugin attempts to contact the MRTGEXT NLM running on a Novell server
to gather the requested system information.

%files -n nagios-check_nwstat
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_nwstat.cfg
%{_libdir}/nagios/plugins/check_nwstat

#----------------------------------------------------------------------------

%package -n nagios-check_oracle
Summary:	The check_oracle plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_oracle
Check Oracle status.

%files -n nagios-check_oracle
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_oracle.cfg
%{_libdir}/nagios/plugins/check_oracle

#----------------------------------------------------------------------------

%package -n nagios-check_overcr
Summary:	The check_overcr plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_overcr
This plugin attempts to contact the Over-CR collector daemon running on the
remote UNIX server in order to gather the requested system information.

%files -n nagios-check_overcr
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_overcr.cfg
%{_libdir}/nagios/plugins/check_overcr

#----------------------------------------------------------------------------

%package -n nagios-check_pgsql
Summary:	The check_pgsql plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_pgsql
Test whether a PostgreSQL Database is accepting connections.

%files -n nagios-check_pgsql
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_pgsql.cfg
%{_libdir}/nagios/plugins/check_pgsql

#----------------------------------------------------------------------------

%package -n nagios-check_ping
Summary:	The check_ping plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_ping
Use ping to check connection statistics for a remote host.

%files -n nagios-check_ping
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ping.cfg
%{_libdir}/nagios/plugins/check_ping

#----------------------------------------------------------------------------

%package -n nagios-check_procs
Summary:	The check_procs plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_procs
Checks all processes and generates WARNING or CRITICAL states if the specified
metric is outside the required threshold ranges. The metric defaults to number
of processes. Search filters can be applied to limit the processes to check.

%files -n nagios-check_procs
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_procs.cfg
%{_libdir}/nagios/plugins/check_procs

#----------------------------------------------------------------------------

%package -n nagios-check_radius
Summary:	The check_radius plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_radius
Tests to see if a radius server is accepting connections.

%files -n nagios-check_radius
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_radius.cfg
%{_libdir}/nagios/plugins/check_radius

#----------------------------------------------------------------------------

%package -n nagios-check_real
Summary:	The check_real plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_real
This plugin tests the REAL service on the specified host.

%files -n nagios-check_real
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_real.cfg
%{_libdir}/nagios/plugins/check_real

#----------------------------------------------------------------------------

%package -n nagios-check_rpc
Summary:	The check_rpc plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_rpc
Check if a rpc service is registered and running using:
rpcinfo -H host -C rpc_command.

%files -n nagios-check_rpc
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_rpc.cfg
%{_libdir}/nagios/plugins/check_rpc

#----------------------------------------------------------------------------

%package -n nagios-check_sensors
Summary:	The check_sensors plugin for nagios
Group:		Networking/Other
Requires:	lm_sensors
Requires:	nagios-plugins

%description -n nagios-check_sensors
This plugin checks hardware status using the lm_sensors package.

%files -n nagios-check_sensors
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_sensors.cfg
%{_libdir}/nagios/plugins/check_sensors

#----------------------------------------------------------------------------

%package -n nagios-check_smtp
Summary:	The check_smtp plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_smtp
This plugin will attempt to open an SMTP connection with the host.

%files -n nagios-check_smtp
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_smtp.cfg
%{_libdir}/nagios/plugins/check_smtp

#----------------------------------------------------------------------------

%package -n nagios-check_snmp
Summary:	The check_snmp plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Requires:	nagios-plugins

%description -n nagios-check_snmp
Check status of remote machines and obtain sustem information via SNMP.

%files -n nagios-check_snmp
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_snmp.cfg
%{_libdir}/nagios/plugins/check_snmp

#----------------------------------------------------------------------------

%package -n nagios-check_ssh
Summary:	The check_ssh plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_ssh
Try to connect to an SSH server at specified server and port.

%files -n nagios-check_ssh
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ssh.cfg
%{_libdir}/nagios/plugins/check_ssh

#----------------------------------------------------------------------------

%package -n nagios-check_swap
Summary:	The check_swap plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_swap
Check swap space on local machine.

%files -n nagios-check_swap
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_swap.cfg
%{_libdir}/nagios/plugins/check_swap

#----------------------------------------------------------------------------

%package -n nagios-check_tcp
Summary:	The check_tcp plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_tcp
This plugin tests TCP connections with the specified host (or unix socket).

%files -n nagios-check_tcp
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_tcp.cfg
%{_libdir}/nagios/plugins/check_tcp
%{_libdir}/nagios/plugins/check_imap
%{_libdir}/nagios/plugins/check_spop
%{_libdir}/nagios/plugins/check_simap
%{_libdir}/nagios/plugins/check_udp
%{_libdir}/nagios/plugins/check_pop
%{_libdir}/nagios/plugins/check_nntp
%{_libdir}/nagios/plugins/check_jabber
%{_libdir}/nagios/plugins/check_clamd
%{_libdir}/nagios/plugins/check_ftp
%{_libdir}/nagios/plugins/check_ssmtp
%{_libdir}/nagios/plugins/check_nntps

#----------------------------------------------------------------------------

%package -n nagios-check_time
Summary:	The check_time plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_time
This plugin will check the time on the specified host.

%files -n nagios-check_time
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_time.cfg
%{_libdir}/nagios/plugins/check_time

#----------------------------------------------------------------------------

%package -n nagios-check_ups
Summary:	The check_ups plugin for nagios
Group:		Networking/Other
Requires:	nut
Requires:	nagios-plugins

%description -n nagios-check_ups
This plugin tests the UPS service on the specified host.Network UPS Tools 
from www.networkupstools.org must be running for thisplugin to work.

%files -n nagios-check_ups
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_ups.cfg
%{_libdir}/nagios/plugins/check_ups

#----------------------------------------------------------------------------

%package -n	nagios-check_uptime
Summary:	The check_uptime plugin for nagios
Group:		Networking/Other
Requires:   nagios-plugins = %{epoch}:%{version}-%{release}

%description -n	nagios-check_uptime
Provides check_uptime support for Nagios.

%files -n nagios-check_uptime
%{_libdir}/nagios/plugins/check_uptime

#----------------------------------------------------------------------------

%package -n nagios-check_users
Summary:	The check_users plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_users
This plugin checks the number of users currently logged in on the local
system and generates an error if the number exceeds the thresholds specified.

%files -n nagios-check_users
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_users.cfg
%{_libdir}/nagios/plugins/check_users

#----------------------------------------------------------------------------

%package -n nagios-check_wave
Summary:	The check_wave plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n nagios-check_wave
This package contains the check_wave plugin for nagios.

%files -n nagios-check_wave
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/check_wave.cfg
%{_libdir}/nagios/plugins/check_wave

#----------------------------------------------------------------------------

%package -n	nagios-check_ssl_validity
Summary:	The check_ssl_validity plugin for nagios
Group:		Networking/Other
Requires:	nagios-plugins

%description -n	nagios-check_ssl_validity
This package contains the check_ssl_validity plugin for nagios.

%files -n nagios-check_ssl_validity
%{_libdir}/nagios/plugins/check_ssl_validity

#----------------------------------------------------------------------------


%prep
%setup -q
%autopatch -p1

%build
autoreconf -fi

export PATH_TO_DIG=/usr/bin/dig
export PATH_TO_FPING=/bin/fping
export PATH_TO_HOST=/usr/bin/host
export PATH_TO_LMSTAT=
export PATH_TO_LSPS=
export PATH_TO_MAILQ=/usr/bin/mailq
export PATH_TO_NSLOOKUP=/usr/bin/nslookup
export PATH_TO_PING=/bin/ping
export PATH_TO_PING6=/usr/bin/ping6
export PATH_TO_PS=/bin/ps
export PATH_TO_QMAIL_QSTAT=/var/qmail/bin/qmail-qstat
export PATH_TO_QSTAT=/usr/bin/qstat-quake
export PATH_TO_QUAKESTAT=
export PATH_TO_RPCINFO=/usr/sbin/rpcinfo
export PATH_TO_SMBCLIENT=/usr/bin/smbclient
export PATH_TO_SNMPGET=/usr/bin/snmpget
export PATH_TO_SNMPGETNEXT=/usr/bin/snmpgetnext
export PATH_TO_SSH=/usr/bin/ssh
export PATH_TO_SWAP=
export PATH_TO_SWAPINFO=
export PATH_TO_UPTIME=/usr/bin/uptime
export PATH_TO_WHO=/usr/bin/who

%serverbuild

%configure \
    --libexecdir=%{_libdir}/nagios/plugins \
    --disable-rpath \
    --with-cgiurl=/nagios/cgi-bin \
    --with-trusted-path="/bin:/sbin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin" \
    --with-openssl=%{_prefix} \
    --with-pgsql=%{_prefix} \
    --with-mysql=%{_prefix} \
    --with-ping-command="/bin/ping -n -U -w %d -c %d %s" \
    --with-ping6-command="%{_bindir}/ping6 -n -U -w %d -c %d %s" \
    --with-ps-command="/bin/ps axwo 'stat uid pid ppid vsz rss pcpu etime comm args'" \
    --with-ps-format="%s %d %d %d %d %d %f %s %s %n" \
    --with-ps-varlist='procstat,&procuid,&procpid,&procppid,&procvsz,&procrss,&procpcpu,&procetime,procprog,&pos' \
    --with-ps-cols=10 \
    --with-ipv6

find . -type f -name "Makefile" -exec /usr/bin/perl -pi -e "s|-L/usr/lib|-L%{_libdir}|g" \{\} \;

# anti recheck hack
touch *

export CPPFLAGS="-I%{_includedir}/ldap -I%{_includedir}/mysql -I%{_includedir}/pgsql -I%{_includedir}/openssl"

make

make -C plugins \
    check_ide_smart check_ldap check_pgsql check_radius

%install
install -d -m0755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
%makeinstall_std MKDIR_P="/bin/mkdir -p"

install -m0755 plugins/check_pgsql %{buildroot}%{_libdir}/nagios/plugins/
install -m0755 plugins/check_radius %{buildroot}%{_libdir}/nagios/plugins/
install -m0755 plugins/check_ide_smart %{buildroot}%{_libdir}/nagios/plugins/
install -m0755 plugins-root/check_dhcp %{buildroot}%{_libdir}/nagios/plugins/
install -m0755 plugins-root/check_icmp %{buildroot}%{_libdir}/nagios/plugins/

# magic by anssi
pushd %{buildroot}%{_sysconfdir}/nagios/plugins.d
%{expand:%(for i in {101..124}; do echo "install -m 644 %%SOURCE$i ."; done)}
%{expand:%(for i in {127..152}; do echo "install -m 644 %%SOURCE$i ."; done)}
popd

perl -pi -e 's|\@libexecdir\@|%{_libdir}/nagios/plugins|g' \
    %{buildroot}%{_sysconfdir}/nagios/plugins.d/*

# fix bad paths (again!)
for i in check_breeze check_disk_smb check_file_age check_flexlm check_ifoperstatus \
    check_ifstatus check_ircd check_mailq check_ntp check_rpc check_wave; do
    perl -pi -e "s|\"nagios/plugins\"|\"%{_libdir}/nagios/plugins\"|g" \
    %{buildroot}%{_libdir}/nagios/plugins/$i
done

%find_lang %{name}

# make noarch pluginds installable under %{_datadir} also
install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
pushd %{buildroot}%{_datadir}/nagios/plugins
ln -sf ../../../%{_lib}/nagios/plugins/utils.pm .
ln -sf ../../../%{_lib}/nagios/plugins/utils.sh .
popd

# delete unusable plugins
rm -f %{buildroot}%{_libdir}/nagios/plugins/check_apt
rm -f %{buildroot}%{_libdir}/nagios/plugins/check_mrtg
rm -f %{buildroot}%{_libdir}/nagios/plugins/check_mrtgtraf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3527 |21cr|nagios-rad_eap_test-0.23-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       nagios-rad_eap_test
Version:    0.23
Release:    5
Summary:    Nagios compatible shell script used for testing radius EAP methods
Group:      Networking/Other
License:    BSD
URL:        http://wiki.eduroam.cz/rad_eap_test/
Source:     http://wiki.eduroam.cz/rad_eap_test/rad_eap_test-%{version}.tar.bz2
BuildArch:  noarch

%description
rad_eap_test is used to test availability of radius servers in monitoring
solutions as nagios. rad_eap_test is only wrapper shell script around
eapol_test from wpa_supplicant project. rad_eap_test  generates configuration
for eapol_test, runs it and after processing eapol_test messages returns status
code. Status code is processed by monitoring tools as nagios.

%prep
%setup -q -n rad_eap_test-%{version}

# fix eapol_test location
perl -pi -e 's|EAPOL_PROG=.*|EAPOL_PROG=%{_sbindir}/eapol_test|' rad_eap_test

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/nagios/plugins
install -m 755 rad_eap_test %{buildroot}%{_datadir}/nagios/plugins

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios/plugins.d
cat > %{buildroot}%{_sysconfdir}/nagios/plugins.d/rad_eap_test.cfg <<'EOF'
define command {
	command_name    rad_eap_test
	command_line    %{_datadir}/nagios/plugins/rad_eap_test -H $HOSTADDRESS$
}
EOF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog COPYING README doc
%config(noreplace) %{_sysconfdir}/nagios/plugins.d/rad_eap_test.cfg
%{_datadir}/nagios/plugins/rad_eap_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3528 |21cr|nagios-snmp-plugins-1.1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plugins for Nagios to monitor remote disk and processes via SNMP
Name:		nagios-snmp-plugins
Version:	1.1.1
Release:	10
License:	GPL
Group:		Networking/Other
URL:		http://nagios.manubulon.com/
Source0:	http://nagios.manubulon.com/%{name}.%{version}.tgz
Source1:	ftp://ftp.hometree.net/pub/nagios-snmp-plugins/nagios-snmp-plugins-1.2.tar.gz
Source2:	check_snmp_disk.cfg
Source3:	check_snmp_proc.cfg
Source4:	check_snmp_boostedge.cfg
Source5:	check_snmp_cpfw.cfg
Source6:	check_snmp_css.cfg
Source7:	check_snmp_css_main.cfg
Source8:	check_snmp_env.cfg
Source9:	check_snmp_int.cfg
Source10:	check_snmp_linkproof_nhr.cfg
Source11:	check_snmp_load.cfg
Source12:	check_snmp_mem.cfg
Source13:	check_snmp_nsbox.cfg
Source14:	check_snmp_process.cfg
Source15:	check_snmp_storage.cfg
Source16:	check_snmp_vrrp.cfg
Source17:	check_snmp_win.cfg
Patch0:		nagios-snmp-plugins-1.0-gcc4.diff
Patch1:		nagios-snmp-plugins-format-report.patch
Requires:	nagios
BuildRequires:	net-snmp-devel
BuildRequires:	openssl-devel
BuildRequires:	autoconf2.5
BuildRequires:	automake

%description
These plugins allow you to monitor disk space, processes and a lot of other 
stuff on a remote machine via SNMP.

%package -n	nagios-check_snmp_disk
Summary:	The check_snmp_disk plugin for nagios
Group:		Networking/Other
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_disk
Checks the disks for a given host via snmp and the ucd snmp interface.

%package -n	nagios-check_snmp_proc
Summary:	The check_snmp_proc plugin for nagios
Group:		Networking/Other
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_proc
Checks the running processes for a given host via snmp and the ucd snmp
interface.

%package -n	nagios-check_snmp_boostedge
Summary:	The check_snmp_boostedge plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_boostedge
SNMP Boostedge service monitor for Nagios.

%package -n	nagios-check_snmp_cpfw
Summary:	The check_snmp_cpfw plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_cpfw
SNMP Checkpoint FW-1 Monitor for Nagios.

%package -n	nagios-check_snmp_css_main
Summary:	The check_snmp_css_main plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_css_main
SNMP Cisco CSS monitor MAIN script for Nagios.

%package -n	nagios-check_snmp_css
Summary:	The check_snmp_css plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_css
SNMP Cisco CSS monitor for Nagios.


%package -n	nagios-check_snmp_env
Summary:	The check_snmp_env plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_env
SNMP environmental Monitor for Nagios.

%package -n	nagios-check_snmp_int
Summary:	The check_snmp_int plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_int
SNMP Network Interface Monitor for Nagios.

%package -n	nagios-check_snmp_linkproof_nhr
Summary:	The check_snmp_linkproof_nhr plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_linkproof_nhr
SNMP Radware Linkproof NHR monitor for Nagios.

%package -n	nagios-check_snmp_load
Summary:	The check_snmp_load plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_load
SNMP Load & CPU Monitor for Nagios.

%package -n	nagios-check_snmp_mem
Summary:	The check_snmp_mem plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_mem
SNMP Memory Monitor for Nagios.

%package -n	nagios-check_snmp_nsbox
Summary:	The check_snmp_nsbox plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_nsbox
SNMP NetSecureOne Netbox monitor for Nagios.

%package -n	nagios-check_snmp_process
Summary:	The check_snmp_process plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_process
SNMP Process Monitor for Nagios.

%package -n	nagios-check_snmp_storage
Summary:	The check_snmp_storage plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_storage
SNMP Disk Monitor for Nagios.

%package -n	nagios-check_snmp_win
Summary:	The check_snmp_win plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_win
SNMP Windows Monitor for Nagios.

%package -n	nagios-check_snmp_vrrp
Summary:	The check_snmp_vrrp plugin for nagios
Group:		Networking/Other
Requires:	net-snmp-utils
Conflicts:	nagios-snmp-plugins < 1.1

%description -n	nagios-check_snmp_vrrp
SNMP VRRP Monitor for Nagios.

%prep

%setup -q -n nagios_plugins -a1

mkdir plugins.d
# magic by anssi
pushd plugins.d; %{expand:%(for i in {2..17}; do echo "cp %%SOURCE$i ."; done)}; popd

# fix strange perms
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

perl -pi -e "s|^use lib \"/usr/local/nagios/libexec\"|use lib \"%{_libdir}/nagios/plugins\"|g" *.pl

%build

pushd nagios-snmp-plugins-1.2
#export WANT_AUTOCONF_2_5="1"
#libtoolize --copy --force; aclocal; autoheader; automake --copy --add-missing; autoconf

sh ./build.sh

%configure

%make
popd

perl -pi -e "s|\@libexecdir\@|%{_libdir}/nagios/plugins|g" plugins.d/*.cfg

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}/nagios/plugins.d
install -d %{buildroot}%{_libdir}/nagios/plugins

pushd nagios-snmp-plugins-1.2
    install -m0755 check_snmp_disk %{buildroot}%{_libdir}/nagios/plugins/
    install -m0755 check_snmp_proc %{buildroot}%{_libdir}/nagios/plugins/
popd

cp nagios-snmp-plugins-1.2/README README.nagios-snmp-plugins-1.2
cp nagios-snmp-plugins-1.2/AUTHORS AUTHORS.nagios-snmp-plugins-1.2
cp nagios-snmp-plugins-1.2/NEWS NEWS.nagios-snmp-plugins-1.2

# binaries
install -m0644 plugins.d/check_snmp_disk.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_disk.cfg
install -m0644 plugins.d/check_snmp_proc.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_proc.cfg

# scripts
install -m0755 *.pl %{buildroot}%{_libdir}/nagios/plugins/

# config
install -m0644 plugins.d/check_snmp_boostedge.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_boostedge.cfg
install -m0644 plugins.d/check_snmp_cpfw.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_cpfw.cfg
install -m0644 plugins.d/check_snmp_css_main.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_css_main.cfg
install -m0644 plugins.d/check_snmp_css.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_css.cfg
install -m0644 plugins.d/check_snmp_env.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_env.cfg
install -m0644 plugins.d/check_snmp_int.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_int.cfg
install -m0644 plugins.d/check_snmp_linkproof_nhr.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_linkproof_nhr.cfg
install -m0644 plugins.d/check_snmp_load.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_load.cfg
install -m0644 plugins.d/check_snmp_mem.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_mem.cfg
install -m0644 plugins.d/check_snmp_nsbox.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_nsbox.cfg
install -m0644 plugins.d/check_snmp_process.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_process.cfg
install -m0644 plugins.d/check_snmp_storage.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_storage.cfg
install -m0644 plugins.d/check_snmp_win.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_win.cfg
install -m0644 plugins.d/check_snmp_vrrp.cfg %{buildroot}%{_sysconfdir}/nagios/plugins.d/check_snmp_vrrp.cfg

%post -n nagios-check_snmp_disk
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_disk
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_proc
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_proc
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_boostedge
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_boostedge
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_cpfw
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_cpfw
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_css_main
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_css_main
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_css
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_css
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_env
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_env
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_int
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_int
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_linkproof_nhr
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_linkproof_nhr
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_load
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_load
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_mem
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_mem
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_nsbox
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_nsbox
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_process
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_process
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_storage
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_storage
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_win
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_win
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%post -n nagios-check_snmp_vrrp
%{_initrddir}/nagios condrestart > /dev/null 2>&1 || :

%postun -n nagios-check_snmp_vrrp
if [ "$1" = "0" ]; then
    %{_initrddir}/nagios condrestart > /dev/null 2>&1 || :
fi

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc Changelog LICENSE README* AUTHORS* NEWS* doc/*

%files -n nagios-check_snmp_disk
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_disk.cfg
%{_libdir}/nagios/plugins/check_snmp_disk

%files -n nagios-check_snmp_proc
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_proc.cfg
%{_libdir}/nagios/plugins/check_snmp_proc

%files -n nagios-check_snmp_boostedge
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_boostedge.cfg
%{_libdir}/nagios/plugins/check_snmp_boostedge.pl

%files -n nagios-check_snmp_cpfw
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_cpfw.cfg
%{_libdir}/nagios/plugins/check_snmp_cpfw.pl

%files -n nagios-check_snmp_css_main
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_css_main.cfg
%{_libdir}/nagios/plugins/check_snmp_css_main.pl

%files -n nagios-check_snmp_css
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_css.cfg
%{_libdir}/nagios/plugins/check_snmp_css.pl

%files -n nagios-check_snmp_env
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_env.cfg
%{_libdir}/nagios/plugins/check_snmp_env.pl

%files -n nagios-check_snmp_int
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_int.cfg
%{_libdir}/nagios/plugins/check_snmp_int.pl

%files -n nagios-check_snmp_linkproof_nhr
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_linkproof_nhr.cfg
%{_libdir}/nagios/plugins/check_snmp_linkproof_nhr.pl

%files -n nagios-check_snmp_load
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_load.cfg
%{_libdir}/nagios/plugins/check_snmp_load.pl

%files -n nagios-check_snmp_mem
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_mem.cfg
%{_libdir}/nagios/plugins/check_snmp_mem.pl

%files -n nagios-check_snmp_nsbox
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_nsbox.cfg
%{_libdir}/nagios/plugins/check_snmp_nsbox.pl


%files -n nagios-check_snmp_process
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_process.cfg
%{_libdir}/nagios/plugins/check_snmp_process.pl

%files -n nagios-check_snmp_storage
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_storage.cfg
%{_libdir}/nagios/plugins/check_snmp_storage.pl

%files -n nagios-check_snmp_win
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_win.cfg
%{_libdir}/nagios/plugins/check_snmp_win.pl

%files -n nagios-check_snmp_vrrp
%defattr(-,root,root)
%attr(0644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nagios/plugins.d/check_snmp_vrrp.cfg
%{_libdir}/nagios/plugins/check_snmp_vrrp.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3529 |21cr|nagios-theme-nuvola-1.0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nagios-theme-nuvola
Version:	1.0.3
Release:	11
Summary:	Nagios Nuvola Style
License:	LGPL / Free (dtree)
Group:		Networking/Other
URL:		http://exchange.nagios.org/directory/Addons/Frontends-(GUIs-and-CLIs)/Web-Interfaces/Themes-and-Skins/Nuvola-Style/details
Source0:	nagios-nuvola-%{version}.tar.gz
Patch0:		nagios-nuvola-1.0.3-favicon.patch
BuildRequires:	sed >= 4.0
Requires:	nagios-www >= 2.9
Provides:	nagios-theme
Conflicts:	nagios-theme-default
BuildArch:	noarch

%description
Complete Nagios Style (Menu, Icons, Stylesheets, Images) for Nagios 2.0.

Style had been updated to version 1.0 with the free DTree menu.

This is a complete image pack, menu and stylesheets for Nagios 2.0. Icons are
from the Nuvola KDE theme (http://www.icon-king.com/)

%prep
%setup -q -c
%patch0 -p1

%install
install -d %{buildroot}%{_datadir}/nagios/www
cp -a html/* %{buildroot}%{_datadir}/nagios/www

%files
%doc *.txt
# well. should add it to /etc/nagios, but that means need  to enable FollowSymLinks directive in apache
%config(noreplace) %{_datadir}/nagios/www/config.js
%{_datadir}/nagios/www/*.html
%{_datadir}/nagios/www/images/*
%{_datadir}/nagios/www/stylesheets/*
%{_datadir}/nagios/www/side

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3530 |21cr|nagisa-keyboard-0.0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A software keyboard for SCIM
Name:		nagisa-keyboard
Version:	0.0.1
Release:	12
License:	GPLv2+
Group:		System/Internationalization
Url:		http://nop.net-p.org/modules/pukiwiki/index.php?%5B%5Bnagisa%5D%5D
Source0:	nagisa-%{version}.tar.bz2
Source10:	%{name}.rpmlintrc
Requires:	scim
BuildRequires:	qt3-devel
BuildRequires:	scim-devel

%description
Nagisa is a software keyboard for SCIM.

%files
%doc COPYING
%{_bindir}/*
%{_datadir}/nagisa/*

#----------------------------------------------------------------------------

%prep
%setup -q -n nagisa-%{version}

%build
%qmake_qt3 "PREFIX=/usr"
make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/nagisa/

pushd src
	cp -f *.xml %{buildroot}%{_datadir}/nagisa/
	cp -f *.qm %{buildroot}%{_datadir}/nagisa/
	cp -f nagisa %{buildroot}%{_bindir}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3531 |21cr|namazu-2.0.21-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# XXX is this right - it was /var/lib before FHS macros
%define _localstatedir	/var/lib
%define _libexecdir	/var/www/cgi-bin

%define major 7
%define libname %mklibname nmz %{major}
%define devname %mklibname nmz -d

Summary:	Full-text search engine
Name:		namazu
Version:	2.0.21
Release:	6
License:	GPLv2+
Group:		File tools
Url:		http://www.namazu.org/
Source0:	http://www.namazu.org/stable/%{name}-%{version}.tar.gz
BuildRequires:	perl-File-MMagic >= 1.12
BuildRequires:	perl-Text-Kakasi >= 1.00
Requires:	perl-File-MMagic >= 1.12
Requires:	perl-Text-Kakasi >= 1.00
Requires:	kakasi >= 2.3.0

%description
Namazu is a full-text search engine software intended for easy use.
Not only it works as CGI program for small or medium scale WWW
search engine, but also works as personal use such as search system
for local HDD.

%files -f %{name}.lang
%doc AUTHORS ChangeLog ChangeLog.1 CREDITS COPYING HACKING HACKING-ja
%doc INSTALL INSTALL-ja README README-es README-ja NEWS THANKS TODO
%doc etc/namazu.png
%config(noreplace) %{_sysconfdir}/namazu/*
%{_bindir}/namazu
%{_bindir}/bnamazu
%{_bindir}/*nmz
%{_bindir}/mailutime
%{_bindir}/nmzgrep
%{_bindir}/nmzegrep
%{_bindir}/nmzmerge
%{_bindir}/nmzcat
%{_mandir}/man1/namazu.*
%{_mandir}/man1/mknmz.*
%{_datadir}/namazu/doc/*
%{_datadir}/namazu/filter/*
%{_datadir}/namazu/pl/*
%{_datadir}/namazu/template/*
%{_datadir}/namazu/etc/
%dir %{_localstatedir}/namazu
%dir %{_localstatedir}/namazu/index

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries of Namazu
Group:		System/Libraries

%description -n %{libname}
Libraries used by Namazu.

%files -n %{libname}
%{_libdir}/libnmz.so.%{major}*

#----------------------------------------------------------------------------

%package  -n %{devname}
Summary:	Libraries and include files of Namazu
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Conflicts:	%{_lib}nmz3-devel < 2.0.21-2
Obsoletes:	%{_lib}nmz3-devel < 2.0.21-2
Conflicts:	%{_lib}nmz7-devel < 2.0.21-2
Obsoletes:	%{_lib}nmz7-devel < 2.0.21-2

%description -n %{devname}
Libraries and include files of Namazu.

%files -n %{devname}
%{_bindir}/nmz-config
%{_includedir}/namazu/*.h
%{_libdir}/libnmz.so

#----------------------------------------------------------------------------

%package cgi
Summary:	CGI interface for Namazu
Group:		Networking/WWW
Requires:	%{name} = %{EVRD}
Requires:	webserver

%description cgi
A CGI interface for Namazu.

%files cgi
%{_libexecdir}/namazu.cgi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -f -i
%configure

%make

%install
%makeinstall

mv %{buildroot}%{_sysconfdir}/namazu/namazurc-sample \
	%{buildroot}%{_sysconfdir}/namazu/namazurc
mv %{buildroot}%{_sysconfdir}/namazu/mknmzrc-sample \
	%{buildroot}%{_sysconfdir}/namazu/mknmzrc
chmod a+rw -R %{buildroot}%{_localstatedir}/namazu
chmod a+rw -R %{buildroot}%{_localstatedir}/namazu/index

rm -f  %{buildroot}/%{_datadir}/locale/ja_JP.SJIS/LC_MESSAGES/namazu.mo

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3532 |21cr|named-report-1.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ISC BIND 9 named log message summary and report tool
Name:		named-report
Version:	1.4
Release:	10
License:	GPL
Group:		System/Servers
URL:		http://aharp.ittns.northwestern.edu/software/
Source:		http://aharp.ittns.northwestern.edu/software/named-report-1.4.tar.bz2
BuildArch:	noarch

%description
ISC BIND 9 named log message summary and report tool.

%prep

%setup -q

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 %{name}.pl %{buildroot}%{_bindir}/%{name}.pl

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/%{name}.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3533 |21cr|nanomsg-1.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname nanomsg %{major}
%define devname %mklibname nanomsg -d

Name: nanomsg
Version:	1.1.5
Release:	1
Source0: https://github.com/nanomsg/nanomsg/archive/%{version}.tar.gz
Summary: Socket library providing several common communication patterns
URL: http://nanomsg.org/
License: MIT
Group: System/Libraries
BuildRequires: cmake ninja

%description
nanomsg is a socket library that provides several common communication
patterns. It aims to make the networking layer fast, scalable, and
easy to use. Implemented in C, it works on a wide range of operating
systems with no further dependencies.

The communication patterns, also called "scalability protocols", are
basic blocks for building distributed systems. By combining them you
can create a vast array of distributed applications.

The following scalability protocols are currently available:

    PAIR - simple one-to-one communication
    BUS - simple many-to-many communication
    REQREP - allows to build clusters of stateless services
             to process user requests
    PUBSUB - distributes messages to large sets of interested subscribers
    PIPELINE - aggregates messages from multiple sources and load balances
               them among many destinations
    SURVEY - allows to query state of multiple applications in a single go

Scalability protocols are layered on top of the transport layer in the network
stack.
At the moment, the nanomsg library supports the following transports
mechanisms:

    INPROC - transport within a process (between threads, modules etc.)
    IPC - transport between processes on a single machine
    TCP - network transport via TCP

The library exposes a BSD-socket-like C API to the applications.

%package -n %{libname}
Summary: Socket library providing several common communication patterns
Group: System/Libraries

%description -n %{libname}
nanomsg is a socket library that provides several common communication
patterns. It aims to make the networking layer fast, scalable, and
easy to use. Implemented in C, it works on a wide range of operating
systems with no further dependencies.

The communication patterns, also called "scalability protocols", are
basic blocks for building distributed systems. By combining them you
can create a vast array of distributed applications.

The following scalability protocols are currently available:

    PAIR - simple one-to-one communication
    BUS - simple many-to-many communication
    REQREP - allows to build clusters of stateless services
             to process user requests
    PUBSUB - distributes messages to large sets of interested subscribers
    PIPELINE - aggregates messages from multiple sources and load balances
               them among many destinations
    SURVEY - allows to query state of multiple applications in a single go

Scalability protocols are layered on top of the transport layer in the network
stack.
At the moment, the nanomsg library supports the following transports
mechanisms:

    INPROC - transport within a process (between threads, modules etc.)
    IPC - transport between processes on a single machine
    TCP - network transport via TCP

The library exposes a BSD-socket-like C API to the applications.

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%prep
%setup -q
%cmake -G Ninja

%build
ninja -C build

%install
DESTDIR="%{buildroot}" ninja -C build install

%files
%{_bindir}/*

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/%{name}-%{version}/*.cmake

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3534 |21cr|nanoxml-2.2.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           nanoxml
Version:        2.2.3
Release:        7
Epoch:          0
Summary:        Small XML parser for Java
License:        BSD-style
URL:            http://nanoxml.cyberelf.be/
Source0:        http://nanoxml.cyberelf.be/downloads/NanoXML-2.2.3.tar.bz2
Source1:        %{name}-java-1.4.2-package-list
Patch0:         %{name}-build.patch
BuildRequires:  java-rpmbuild >= 0:1.6
#BuildRequires:  java-javadoc
Group:          Development/Java
BuildRequires: java-devel >= 0:1.4.2
BuildArch:      noarch

%description
The intent of NanoXML is to be a small parser which is easy to use.
Although many features were added to NanoXML, it is very small.
The full parser with builder fits in a JAR file of about 32K.

%package        lite
Summary:        Lite version of %{name}
Group:          Development/Java

%description    lite
Lite version of %{name}.

%package        manual
Summary:        Manual for %{name}
Group:          Development/Java

%description    manual
Documentation for %{name}.

%package        manual-lite
Summary:        Manual for the lite version of %{name}
Group:          Development/Java

%description    manual-lite
Documentation for the lite version of %{name}.

%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description    javadoc
Javadoc for %{name}.


%prep
%setup -q -n NanoXML-%{version}
%patch0
cp %{SOURCE1} package-list
find . -name "*.jar" | xargs -t rm
perl -pi -e 's|javac |%{javac} -source 1.3 |;' -e 's|jar |%{jar} |g;' -e 's|javadoc |%{javadoc} -Xdoclint:none -source 1.3 |;' ./build.sh

%build
sh ./build.sh


%install

# jars
install -dm 755 %{buildroot}%{_javadir}
install -pm 644 Output/%{name}-lite.jar \
  %{buildroot}%{_javadir}/%{name}-lite-%{version}.jar
install -pm 644 Output/%{name}-sax.jar \
  %{buildroot}%{_javadir}/%{name}-sax-%{version}.jar
install -pm 644 Output/%{name}.jar \
  %{buildroot}%{_javadir}/%{name}-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`; done)

# javadoc
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr Documentation/JavaDoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%files
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-sax-%{version}.jar
%{_javadir}/%{name}-sax.jar

%files lite
%defattr(-,root,root,-)
%{_javadir}/%{name}-lite-%{version}.jar
%{_javadir}/%{name}-lite.jar

%files manual
%defattr(0644,root,root,0755)
%doc Documentation/NanoXML-Java/*

%files manual-lite
%defattr(0644,root,root,0755)
%doc Documentation/NanoXML-Lite/*

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3535 |21cr|nastr-tor-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SSH over Tor hidden service to bypass NATs
Name:		nastr-tor
Version:	2.0
Release:	1
License:	MIT
Group:		Networking/Other
# Prevously developed in https://gitlab.com/mikhailnov/nastr
Url:		https://abf.io/import/nastr-tor
Source10:	10-nastr-tor.conf
Source20:	20-nastr-tor-ssh.conf
Source30:	10-nastr-tor.sh
# provided by tor, for %%attr
Requires(pre):	user(toruser)
Requires(pre):	group(toruser)
Requires:	tor
Recommends:	(%{name}-networkmanager if networkmanager)
BuildArch:	noarch

%description
SSH over Tor hidden service to bypass NATs.
Edit SSH port in /etc/torrc.d/20-nastr-tor-ssh.conf.
systemctl start tor sshd (run OpenSSH or another SSH server, e.g. dropbear)
cat /var/lib/tor/nastr_tor_ssh/hostname (get your hostname inside tor)
Add the following to ~/.ssh/config on clients:
Host *.onion
	VerifyHostKeyDNS no
	ProxyCommand nc -x localhost:9050 -X 5 %h %p
	Port 1909
(install netcat-openbsd if needed)s
systemctl start tor
Connect: ssh username@xxx.onion -p 1909
Change 1909 to your port.

%files
%attr(0700,toruser,toruser) %dir /var/lib/tor/nastr_tor_ssh
%config(noreplace) /etc/torrc.d/10-nastr-tor.conf
%config(noreplace) /etc/torrc.d/20-nastr-tor-ssh.conf

#----------------------------------------------------------

%package networkmanager
Summary: Automatically (re)start Tor when internet connection is (re)started
Requires:	networkmanager

%description networkmanager
Automatically (re)start Tor when internet connection is (re)started.
Tor daemon fails to properly keep its hiddens ervice online
when internet is (re)connected after it is started.
Especially useful when using WiFi.

%files networkmanager
/etc/NetworkManager/dispatcher.d/10-nastr-tor.sh

#----------------------------------------------------------

%prep
:

%build
:

%install
mkdir -p %{buildroot}/var/lib/tor/nastr_tor_ssh
mkdir -p %{buildroot}/etc/torrc.d
install -m0644 %{SOURCE10} %{buildroot}/etc/torrc.d
install -m0644 %{SOURCE20} %{buildroot}/etc/torrc.d
mkdir -p %{buildroot}/etc/NetworkManager/dispatcher.d
install -m0755 %{SOURCE30} %{buildroot}/etc/NetworkManager/dispatcher.d


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3536 |21cr|natmonitor-2.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	This little utility monitor hosts bandwidth usage in your home lan
Name:		natmonitor
Version:	2.4
Release:	11
License:	GPLv2+
Group:		Monitoring
Url:		http://natmonitor.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/natmonitor/%{name}-%{version}.tar.bz2
Source1:	natmonitord.service
Patch0:		natmonitor-datadir.patch.bz2
Patch1:		natmonitord-conf.patch.bz2
Patch2:		natmonitor-2.4-makefile.patch
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(gtk+-2.0)

%description
NAT Monitor is a tool to monitor hosts' bandwidth usage in a
Linux-NAT network. A daemon collects data and clients display them
(currently a GTK app with graph and a text version). It detects
new hosts, saves up to 12 hours of data, and has a nice summary
statistic.

%files
%doc API BUGS CHANGELOG README TODO
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/natmonitor.conf
%attr(0755,root,root) %{_bindir}/natmonitor
%attr(0755,root,root) %{_bindir}/natmonitorconsole
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%package -n natmonitord
Summary:	The NAT Monitor daemon
Group:		System/Servers
Requires(pre,postun):	rpm-helper
Requires(post,preun,postun):	systemd

%description -n natmonitord
The NAT Monitor daemon collects data for the natmonitor clients.

%files -n natmonitord
%attr(0755,root,root) %{_unitdir}/natmonitord.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/natmonitord.conf
%attr(0755,root,root) %{_sbindir}/natmonitord
%attr(0755,natmonitor,natmonitor) %dir %{_localstatedir}/lib/natmonitor

%pre -n natmonitord
%_pre_useradd natmonitor %{_localstatedir}/lib/natmonitor /bin/false

%post -n natmonitord
%systemd_post natmonitord.service

%preun -n natmonitord
%systemd_preun natmonitord.service

%postun -n natmonitord
%systemd_postun_with_restart natmonitord.service
%_postun_userdel natmonitor

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .datadir
%patch1 -p0 -b .natmonitord-conf
%patch2 -p1

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

%build
%make CC="%__cc %{optflags}"

%install
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_localstatedir}/lib/natmonitor

install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_liconsdir}

install -m644 icons/%{name}16x16.png %{buildroot}%{_miconsdir}/%{name}.png
install -m644 icons/%{name}32x32.png %{buildroot}%{_iconsdir}/%{name}.png
install -m644 icons/%{name}48x48.png %{buildroot}%{_liconsdir}/%{name}.png

install -m755 natmonitor %{buildroot}%{_bindir}/
install -m755 natmonitorconsole %{buildroot}%{_bindir}/
install -m755 natmonitord %{buildroot}%{_sbindir}/
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_unitdir}/natmonitord.service

install -m644 natmonitor.conf %{buildroot}%{_sysconfdir}
install -m644 natmonitord.conf %{buildroot}%{_sysconfdir}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Name=Natmonitor
Comment=Utility to monitor hosts bandwidth usage in your home lan
Icon=%{name}
Categories=System;Monitor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3537 |21cr|nats-server-2.10.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	High-Performance server for NATS, the cloud native messaging system
Name:		nats-server
Version:	2.10.9
Release:	1
License:	ASL 2.0
Group:		System/Servers
Url:		https://github.com/nats-io/nats-server
Source0:	https://github.com/nats-io/nats-server/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# cd nats-server-%%{version}
# go mod vendor
# tar -cpJf ../vendor-%%{version}.tar.xz vendor
Source1:	vendor-%{version}.tar.xz
BuildRequires:	golang
Requires(pre):	shadow-utils

%description
A High Performance NATS Server written in Go and hosted by the Cloud Native
Computing Foundation (CNCF).

%files
%doc README.md
%license LICENSE
%attr(0750, nats, nats) %dir %{_sharedstatedir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_sbindir}/%{name}
%{_unitdir}/%{name}.service

%pre
getent group nats >/dev/null || groupadd -r nats
getent passwd nats >/dev/null || useradd -r -g nats -d %{_sharedstatedir}/%{name} -s /sbin/nologin -c "NATS Server account" nats
exit 0

%post
%systemd_post %{name}.service
	
%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1

%build
%{_bindir}/go build

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_unitdir}

cp %{name} %{buildroot}%{_sbindir}
cp docker/%{name}.conf %{buildroot}%{_sysconfdir}
cp util/%{name}.service %{buildroot}%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3538 |21cr|nautilus-python-1.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Python bindings for Nautilus
Name:		nautilus-python
Version:	1.2.3
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Development/Python
Url:		http://www.gnome.org
Source0:	https://download.gnome.org/sources/nautilus-python/%{url_ver}/nautilus-python-%{version}.tar.xz
Patch0:		nautilus-python-1.2.3-fix-gcc10-compiling.patch
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
Provides:	python-nautilus = %{EVRD}

%description
Python bindings for Nautilus.

%files
%doc AUTHORS ChangeLog NEWS installed-docs/*
%{_libdir}/nautilus/extensions-3.0/*
%{_libdir}/pkgconfig/nautilus-python.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%ifarch x86_64
export CFLAGS="%{optflags} -fPIC"
%endif
%configure
%make

%install
%makeinstall_std

mv %{buildroot}%{_datadir}/doc/%{name} installed-docs

mkdir %{buildroot}%{_libdir}/nautilus/extensions-3.0/python

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3539 |21cr|navit-0.5.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Car navigation system with routing engine
Name:		navit
Version:	0.5.6
Release:	1
License:	GPLv2+
Group:		Sciences/Other
Url:		http://www.navit-project.org/
Source0:	https://github.com/navit-gps/navit/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	http://www.navit-project.org/maps/osm_bbox_11.3,47.9,11.7,48.2.osm.bz2
Patch1:		navit-0.5.3-speech-dispatcher.patch
Patch2:		navit-0.5.4-Findespeak.cmake.patch
Patch3:		navit-0.5.4-static.patch
Patch4:		navit-0.5.4-sample_map.patch
Patch5:		navit-speech-dispatcher.patch
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(freeglut)
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(fribidi)
BuildRequires:  pkgconfig(gypsy)
BuildRequires:  pkgconfig(libgarmin)
BuildRequires:  pkgconfig(SDL_image)
#BuildRequires:  pkgconfig(SDL2_ttf)
BuildRequires:  pkgconfig(sdl)
#BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(glesv2)
BuildRequires:  pkgconfig(imlib2)
BuildRequires:  pkgconfig(xmu)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(gdlib)
BuildRequires:  pkgconfig(speech-dispatcher)
BuildRequires:  pkgconfig(libgps)
BuildRequires:  pkgconfig(libgeoclue-2.0)
BuildRequires:  pkgconfig(libprotobuf-c)
BuildRequires:  protobuf-c
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Positioning)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Sensors)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  freeimage-devel
BuildRequires:  gettext-devel
BuildRequires:  libespeak-devel
BuildRequires:  nas-devel
BuildRequires:  postgresql-devel
BuildRequires:  cmake
BuildRequires:  inkscape
BuildRequires:  pkgconfig(librsvg-2.0)
BuildRequires:  xsltproc
Requires:       fonts-ttf-dejavu
Recommends:     gpsd

%description
Navit is a car navigation system with routing engine. Its modular
design is capable of using vector maps of various formats for routing
and rendering of the displayed map. It's even possible to use multiple
maps at a time.

The GTK+ or SDL user interfaces are designed to work well with touch
screen displays. Points of Interest of various formats are displayed
on the map.

The current vehicle position is either read from gpsd or directly from
NMEA GPS sensors.

The routing engine not only calculates an optimal route to your
destination, but also generates directions and even speaks to you.

%files -f %{name}.lang
%doc AUTHORS README.md README.urpmi CHANGELOG*
%{_bindir}/*
%{_libdir}/%{name}
%{_datadir}/dbus-1/services/org.navit_project.navit.service
%exclude %{_libdir}/%{name}/graphics/libgraphics_sdl*
%exclude %{_libdir}/%{name}/gui/libgui_gtk*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.xml

#----------------------------------------------------------------------------

%package graphics-sdl
Summary:	SDL graphics renderer for Navit navigation system
Group:		Sciences/Other
Requires:	%{name} = %{EVRD}

%description graphics-sdl
Navit is a car navigation system with routing engine. This package
contains the SDL graphics renderer for Navit. You need to enable
this renderer in /etc/navit/navit.xml or ~/.navit/navit.xml to use it.

%files graphics-sdl
%{_libdir}/%{name}/graphics/libgraphics_sdl*

#----------------------------------------------------------------------------

%package gtk-gui
Summary:	GTK GUI for Navit navigation system
Group:		Sciences/Other
Requires:	%{name} = %{EVRD}

%description gtk-gui
Navit is a car navigation system with routing engine. This package
contains the GTK GUI for Navit. You need to enable this GUI in
/etc/navit/navit.xml or ~/.navit/navit.xml to use it.

%files gtk-gui
%{_libdir}/%{name}/gui/libgui_gtk*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

install -m 0644 %{SOURCE1} navit/maps

mkdir -p build/navit/maps
cp navit/maps/* build/navit/maps/

# fix for Error reading SVG:XML parse error: Namespace prefix rdf on RDF is not defined
pushd navit/icons
for i in country_GD country_VC;
  do mv $i.svgz $i.temp.svgz && inkscape $i.temp.svgz --export-plain-svg=$i.svgz && rm $i.temp.svgz
done
popd

%build
%define _disable_ld_no_undefined 1

%cmake -Wno-dev \
       %ifarch %{ix86} %{arm}
       -DSAMPLE_MAP=FALSE \
       %endif
       -Dgraphics/gd=TRUE

%make

%install
%makeinstall_std -C build

# Don't need the README here
rm -f %{buildroot}%{_datadir}/%{name}/README

# Put the config file in /etc: upstream likes it in /usr to be
# relocatable, but that doesn't concern us. The code does check
# in /etc, so we don't need a patch - AdamW 2009/01
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/%{name}.xml %{buildroot}%{_sysconfdir}/%{name}/%{name}.xml

# Create a README.urpmi - AdamW 2009/01
cat > README.urpmi << EOF 
Navit comes with a sample map of Munich, but if you live (or drive!)
anywhere else, you'll need to add another map set. These are not
available as packages because they're rather large and the data changes
on a daily basis, so the packages would have to be refreshed very
often. For instructions on downloading or generating, and installing,
different types of map sets, see these Navit Wiki pages:

http://wiki.navit-project.org/index.php/OpenStreetMaps

http://wiki.navit-project.org/index.php/European_maps

http://wiki.navit-project.org/index.php/Garmin_maps

You should either add the appropriate configuration elements to
/etc/navit/navit.xml, or copy /etc/navit/navit.xml to
~/.navit/navit.xml and edit it there. You may have to remove or comment
out the section for the sample map set, also. Also note that the
default configuration assumes you have a GPS device active, and gpsd
running.
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3540 |21cr|nbdkit-1.39.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NBD server with stable plugin ABI and permissive license
Name:		nbdkit
Version:	1.39.4
Release:	1
License:	BSD
Group:		System/Servers
Url:		https://gitlab.com/nbdkit/nbdkit
Source0:	https://gitlab.com/nbdkit/nbdkit/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:	bash-completion
BuildRequires:	e2fsprogs
BuildRequires:	xorriso
BuildRequires:	boost-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	perl(Pod::Man)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libguestfs)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(libtorrent-rasterbar)
BuildRequires:	pkgconfig(libvirt)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3dist(boto3)
Requires:	%{name}-server = %{EVRD}
Requires:	%{name}-basic-plugins = %{EVRD}
Requires:	%{name}-basic-filters = %{EVRD}

%description
Nbdkit is an NBD server. NBD — Network Block Device — is a protocol
for accessing Block Devices (hard disks and disk-like things) over a
Network.

%files
# metapackage

#----------------------------------------------------------------------------

%package server
Summary:	The %{name} server	
Group:		System/Servers

%description server
This package contains the %{name} server with only the null plugin
and no filters. To install a basic set of plugins and filters you
need to install "%{name}-basic-plugins", "%{name}-basic-filters" or
the metapackage "%{name}".

%files server
%doc README.md
%license LICENSE
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/filters
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/%{name}-null-plugin.so
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-captive.1*
%{_mandir}/man1/%{name}-client.1*
%{_mandir}/man1/%{name}-loop.1*
%{_mandir}/man1/%{name}-null-plugin.1*
%{_mandir}/man1/%{name}-probing.1*
%{_mandir}/man1/%{name}-protocol.1*
%{_mandir}/man1/%{name}-security.1*
%{_mandir}/man1/%{name}-service.1*
%{_mandir}/man1/%{name}-tls.1*
%{_sbindir}/%{name}

#----------------------------------------------------------------------------

%package basic-plugins
Summary:	Basic plugins for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description basic-plugins
This package contains plugins for %{name} which only depend on simple
C libraries: glibc, gnutls, libzstd. Other plugins for %{name} with
more complex dependencies are packaged separately.


%files basic-plugins
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-data-plugin.so
%{_libdir}/%{name}/plugins/%{name}-eval-plugin.so
%{_libdir}/%{name}/plugins/%{name}-file-plugin.so
%{_libdir}/%{name}/plugins/%{name}-floppy-plugin.so
%{_libdir}/%{name}/plugins/%{name}-full-plugin.so
%{_libdir}/%{name}/plugins/%{name}-info-plugin.so
%{_libdir}/%{name}/plugins/%{name}-memory-plugin.so
%{_libdir}/%{name}/plugins/%{name}-ondemand-plugin.so
%{_libdir}/%{name}/plugins/%{name}-ones-plugin.so
%{_libdir}/%{name}/plugins/%{name}-partitioning-plugin.so
%{_libdir}/%{name}/plugins/%{name}-pattern-plugin.so
%{_libdir}/%{name}/plugins/%{name}-random-plugin.so
%{_libdir}/%{name}/plugins/%{name}-sh-plugin.so
%{_libdir}/%{name}/plugins/%{name}-sparse-random-plugin.so
%{_libdir}/%{name}/plugins/%{name}-split-plugin.so
%{_libdir}/%{name}/plugins/%{name}-zero-plugin.so
%{_mandir}/man1/%{name}-data-plugin.1*
%{_mandir}/man1/%{name}-eval-plugin.1*
%{_mandir}/man1/%{name}-file-plugin.1*
%{_mandir}/man1/%{name}-floppy-plugin.1*
%{_mandir}/man1/%{name}-full-plugin.1*
%{_mandir}/man1/%{name}-info-plugin.1*
%{_mandir}/man1/%{name}-memory-plugin.1*
%{_mandir}/man1/%{name}-ondemand-plugin.1*
%{_mandir}/man1/%{name}-ones-plugin.1*
%{_mandir}/man1/%{name}-partitioning-plugin.1*
%{_mandir}/man1/%{name}-pattern-plugin.1*
%{_mandir}/man1/%{name}-random-plugin.1*
%{_mandir}/man1/%{name}-sparse-random-plugin.1*
%{_mandir}/man1/%{name}-split-plugin.1*
%{_mandir}/man1/%{name}-zero-plugin.1*
%{_mandir}/man3/%{name}-sh-plugin.3*

#----------------------------------------------------------------------------

%package example-plugins
Summary:	Example plugins for %{name}
Group:		System/Servers
Requires:	%{name}-perl-plugin = %{EVRD}

%description example-plugins
This package contains example plugins for %{name}.

%files example-plugins
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-example*-plugin.so
%{_libdir}/%{name}/plugins/%{name}-example4-plugin
%{_mandir}/man1/%{name}-example*-plugin.1*

#----------------------------------------------------------------------------

%package cc-plugin
Summary:	Write small inline C plugins and scripts for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description cc-plugin
This package contains support for writing inline C plugins and scripts for %{name}.
NOTE this is NOT the right package for writing plugins in C,
install %{name}-devel for that.

%files cc-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-cc-plugin.so
%{_mandir}/man3/%{name}-cc-plugin.3*

#----------------------------------------------------------------------------

%package cdi-plugin
Summary:	Containerized Data Import plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}
Requires:	jq
Requires:	podman

%description cdi-plugin
This package contains Containerized Data Import support for %{name}.

%files cdi-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-cdi-plugin.so
%{_mandir}/man1/%{name}-cdi-plugin.1*

#----------------------------------------------------------------------------

%package curl-plugin
Summary:	HTTP/FTP (cURL) plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description curl-plugin
This package contains cURL (HTTP/FTP) support for %{name}.

%files curl-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-curl-plugin.so
%{_mandir}/man1/%{name}-curl-plugin.1*

#----------------------------------------------------------------------------

%package gcs-plugin
Summary:	Gooogle Cloud Storage plugin %{name}
Group:		System/Servers
Requires:	%{name}-python-plugin = %{EVRD}
Requires:	%{name}-server = %{EVRD}

%description gcs-plugin
This package lets you open disk images stored in Google Cloud Storage using %{name}.

%files gcs-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-gcs-plugin
%{_mandir}/man1/%{name}-gcs-plugin.1*

#----------------------------------------------------------------------------

%package guestfs-plugin
Summary:	Libguestfs plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description guestfs-plugin
This package is a libguestfs plugin for %{name}.

%files guestfs-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-guestfs-plugin.so
%{_mandir}/man1/%{name}-guestfs-plugin.1*

#----------------------------------------------------------------------------

%package iso-plugin
Summary:	Virtual ISO 9660 plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}
Requires:	xorriso

%description iso-plugin
This package is a virtual ISO 9660 (CD-ROM) plugin for %{name}.

%files iso-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-iso-plugin.so
%{_mandir}/man1/%{name}-iso-plugin.1*

#----------------------------------------------------------------------------

%package libvirt-plugin
Summary:	Libvirt plugin for %{name}
Group:		System/Servers

%description libvirt-plugin
This package is a libvirt plugin for %{name}. It lets you access
libvirt guest disks readonly. It is implemented using the libvirt
virDomainBlockPeek API.

%files libvirt-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-libvirt-plugin.so
%{_mandir}/man1/%{name}-libvirt-plugin.1*

#----------------------------------------------------------------------------

%package linuxdisk-plugin
Summary:	Virtual Linux disk plugin for %{name}
Group:		System/Servers
Requires:	e2fsprogs
Requires:	%{name}-server = %{EVRD}

%description linuxdisk-plugin
This package is a virtual Linux disk plugin for %{name}.

%files linuxdisk-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-linuxdisk-plugin.so
%{_mandir}/man1/%{name}-linuxdisk-plugin.1*

#----------------------------------------------------------------------------

%package lua-plugin
Summary:	Lua plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description lua-plugin
This package lets you write Lua plugins for %{name}.

%files lua-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-lua-plugin.so
%{_mandir}/man3/%{name}-lua-plugin.3*

#----------------------------------------------------------------------------

%package perl-plugin
Summary:	Perl plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description perl-plugin
This package lets you write Perl plugins for %{name}.

%files perl-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-perl-plugin.so
%{_mandir}/man3/%{name}-perl-plugin.3*

#----------------------------------------------------------------------------

%package python-plugin
Summary:	Python 3 plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description python-plugin
This package lets you write Python 3 plugins for %{name}.

%files python-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-python-plugin.so
%{_mandir}/man3/%{name}-python-plugin.3*

#----------------------------------------------------------------------------

%package S3-plugin
Summary:	Amazon S3 and Ceph plugin for %{name}
Group:		System/Servers
Requires:	%{name}-python-plugin = %{EVRD}
Requires:	%{name}-server = %{EVRD}

%description S3-plugin
This package lets you open disk images stored in Amazon S3 or Ceph using %{name}.

%files S3-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-S3-plugin
%{_mandir}/man1/%{name}-S3-plugin.1*

#----------------------------------------------------------------------------

%package ssh-plugin
Summary:	SSH plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description ssh-plugin


%files ssh-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-ssh-plugin.so
%{_mandir}/man1/%{name}-ssh-plugin.1*

#----------------------------------------------------------------------------

%package tcl-plugin
Summary:	Tcl plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description tcl-plugin
This package lets you write Tcl plugins for %{name}.

%files tcl-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-tcl-plugin.so
%{_mandir}/man3/%{name}-tcl-plugin.3*

#----------------------------------------------------------------------------

%package tmpdisk-plugin
Summary:	Remote temporary filesystem disk plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}
Requires:	e2fsprogs
Requires:	util-linux

%description tmpdisk-plugin
This package is a remote temporary filesystem disk plugin for %{name}.

%files tmpdisk-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-tmpdisk-plugin.so
%{_mandir}/man1/%{name}-tmpdisk-plugin.1*

#----------------------------------------------------------------------------

%package torrent-plugin
Summary:	BitTorrent plugin for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description torrent-plugin
This package is a BitTorrent plugin for %{name}.

%files torrent-plugin
%doc README.md
%license LICENSE
%{_libdir}/%{name}/plugins/%{name}-torrent-plugin.so
%{_mandir}/man1/%{name}-torrent-plugin.1*

#----------------------------------------------------------------------------

%package basic-filters
Summary:	Basic filters for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description basic-filters
This package contains filters for %{name} which only depend on simple
C libraries: glibc, gnutls. Other filters for %{name} with more
complex dependencies are packaged separately.

%files basic-filters
%doc README.md
%license LICENSE
%{_libdir}/%{name}/filters/%{name}-blocksize-filter.so
%{_libdir}/%{name}/filters/%{name}-blocksize-policy-filter.so
%{_libdir}/%{name}/filters/%{name}-cacheextents-filter.so
%{_libdir}/%{name}/filters/%{name}-cache-filter.so
%{_libdir}/%{name}/filters/%{name}-checkwrite-filter.so
%{_libdir}/%{name}/filters/%{name}-cow-filter.so
%{_libdir}/%{name}/filters/%{name}-ddrescue-filter.so
%{_libdir}/%{name}/filters/%{name}-delay-filter.so
%{_libdir}/%{name}/filters/%{name}-error-filter.so
%{_libdir}/%{name}/filters/%{name}-evil-filter.so
%{_libdir}/%{name}/filters/%{name}-exitlast-filter.so
%{_libdir}/%{name}/filters/%{name}-exitwhen-filter.so
%{_libdir}/%{name}/filters/%{name}-exportname-filter.so
%{_libdir}/%{name}/filters/%{name}-extentlist-filter.so
%{_libdir}/%{name}/filters/%{name}-fua-filter.so
%{_libdir}/%{name}/filters/%{name}-ip-filter.so
%{_libdir}/%{name}/filters/%{name}-limit-filter.so
%{_libdir}/%{name}/filters/%{name}-log-filter.so
%{_libdir}/%{name}/filters/%{name}-luks-filter.so
%{_libdir}/%{name}/filters/%{name}-multi-conn-filter.so
%{_libdir}/%{name}/filters/%{name}-nocache-filter.so
%{_libdir}/%{name}/filters/%{name}-noextents-filter.so
%{_libdir}/%{name}/filters/%{name}-nofilter-filter.so
%{_libdir}/%{name}/filters/%{name}-noparallel-filter.so
%{_libdir}/%{name}/filters/%{name}-nozero-filter.so
%{_libdir}/%{name}/filters/%{name}-offset-filter.so
%{_libdir}/%{name}/filters/%{name}-partition-filter.so
%{_libdir}/%{name}/filters/%{name}-pause-filter.so
%{_libdir}/%{name}/filters/%{name}-protect-filter.so
%{_libdir}/%{name}/filters/%{name}-qcow2dec-filter.so
%{_libdir}/%{name}/filters/%{name}-rate-filter.so
%{_libdir}/%{name}/filters/%{name}-readahead-filter.so
%{_libdir}/%{name}/filters/%{name}-readonly-filter.so
%{_libdir}/%{name}/filters/%{name}-retry-filter.so
%{_libdir}/%{name}/filters/%{name}-retry-request-filter.so
%{_libdir}/%{name}/filters/%{name}-rotational-filter.so
%{_libdir}/%{name}/filters/%{name}-scan-filter.so
%{_libdir}/%{name}/filters/%{name}-spinning-filter.so
%{_libdir}/%{name}/filters/%{name}-swab-filter.so
%{_libdir}/%{name}/filters/%{name}-tls-fallback-filter.so
%{_libdir}/%{name}/filters/%{name}-truncate-filter.so
%{_mandir}/man1/%{name}-blocksize-filter.1*
%{_mandir}/man1/%{name}-blocksize-policy-filter.1*
%{_mandir}/man1/%{name}-cacheextents-filter.1*
%{_mandir}/man1/%{name}-cache-filter.1*
%{_mandir}/man1/%{name}-checkwrite-filter.1*
%{_mandir}/man1/%{name}-cow-filter.1*
%{_mandir}/man1/%{name}-ddrescue-filter.1*
%{_mandir}/man1/%{name}-delay-filter.1*
%{_mandir}/man1/%{name}-error-filter.1*
%{_mandir}/man1/%{name}-evil-filter.1*
%{_mandir}/man1/%{name}-exitlast-filter.1*
%{_mandir}/man1/%{name}-exitwhen-filter.1*
%{_mandir}/man1/%{name}-exportname-filter.1*
%{_mandir}/man1/%{name}-extentlist-filter.1*
%{_mandir}/man1/%{name}-fua-filter.1*
%{_mandir}/man1/%{name}-ip-filter.1*
%{_mandir}/man1/%{name}-limit-filter.1*
%{_mandir}/man1/%{name}-log-filter.1*
%{_mandir}/man1/%{name}-luks-filter.1*
%{_mandir}/man1/%{name}-multi-conn-filter.1*
%{_mandir}/man1/%{name}-nocache-filter.1*
%{_mandir}/man1/%{name}-noextents-filter.1*
%{_mandir}/man1/%{name}-nofilter-filter.1*
%{_mandir}/man1/%{name}-noparallel-filter.1*
%{_mandir}/man1/%{name}-nozero-filter.1*
%{_mandir}/man1/%{name}-offset-filter.1*
%{_mandir}/man1/%{name}-partition-filter.1*
%{_mandir}/man1/%{name}-pause-filter.1*
%{_mandir}/man1/%{name}-protect-filter.1*
%{_mandir}/man1/%{name}-qcow2dec-filter.1*
%{_mandir}/man1/%{name}-rate-filter.1*
%{_mandir}/man1/%{name}-readahead-filter.1*
%{_mandir}/man1/%{name}-readonly-filter.1*
%{_mandir}/man1/%{name}-retry-filter.1*
%{_mandir}/man1/%{name}-retry-request-filter.1*
%{_mandir}/man1/%{name}-rotational-filter.1*
%{_mandir}/man1/%{name}-scan-filter.1*
%{_mandir}/man1/%{name}-spinning-filter.1*
%{_mandir}/man1/%{name}-swab-filter.1*
%{_mandir}/man1/%{name}-tls-fallback-filter.1*
%{_mandir}/man1/%{name}-truncate-filter.1*

#----------------------------------------------------------------------------

%package ext2-filter
Summary:	Ext2, ext3 and ext4 filesystem support for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description ext2-filter
This package contains ext2, ext3 and ext4 filesystem support for %{name}.

%files ext2-filter
%doc README.md
%license LICENSE
%{_libdir}/%{name}/filters/%{name}-ext2-filter.so
%{_mandir}/man1/%{name}-ext2-filter.1*

#----------------------------------------------------------------------------

%package gzip-filter
Summary:	GZip filter for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description gzip-filter
This package is a gzip filter for %{name}.

%files gzip-filter
%doc README.md
%license LICENSE
%{_libdir}/%{name}/filters/%{name}-gzip-filter.so
%{_mandir}/man1/%{name}-gzip-filter.1*

#----------------------------------------------------------------------------

%package stats-filter
Summary:	Statistics filter for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description stats-filter
Display statistics about operations.

%files stats-filter
%doc README.md
%license LICENSE
%{_libdir}/%{name}/filters/%{name}-stats-filter.so
%{_mandir}/man1/%{name}-stats-filter.1*

#----------------------------------------------------------------------------

%package tar-filter
Summary:	Tar archive filter for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}
Requires:	tar

%description tar-filter
This package is a tar archive filter for %{name}.

%files tar-filter
%doc README.md
%license LICENSE
%{_libdir}/%{name}/filters/%{name}-tar-filter.so
%{_mandir}/man1/%{name}-tar-filter.1*

#----------------------------------------------------------------------------

%package xz-filter
Summary:	XZ filter for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description xz-filter
This package is the xz filter for %{name}.

%files xz-filter
%doc README.md
%license LICENSE
%{_libdir}/%{name}/filters/%{name}-xz-filter.so
%{_mandir}/man1/%{name}-xz-filter.1*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files and documentation for %{name}
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description devel
This package contains development files and documentation for %{name}.
Install this package if you want to develop plugins for %{name}.

%files devel
%doc BENCHMARKING OTHER_PLUGINS README.md SECURITY TODO
%doc plugins/example*/*.c
%doc plugins/lua/example.lua
%doc plugins/ocaml/example.ml
%doc plugins/perl/example.pl
%doc plugins/python/examples/*.py
%doc plugins/sh/examples/*.sh
%doc plugins/tcl/example.tcl
%license LICENSE
%{_includedir}/%{name}-common.h
%{_includedir}/%{name}-filter.h
%{_includedir}/%{name}-plugin.h
%{_includedir}/%{name}-version.h
%{_includedir}/nbd-protocol.h
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man1/%{name}-release-notes-1.*.1*
%{_mandir}/man3/%{name}_*.3*
%{_mandir}/man3/%{name}-filter.3*
%{_mandir}/man3/%{name}-plugin.3*

#----------------------------------------------------------------------------

%package bash-completion
Summary:	Bash tab-completion for %{name}
Group:		System/Servers
Requires:	bash-completion
Requires:	%{name}-server = %{EVRD}

%description bash-completion
Install this package if you want intelligent bash tab-completion for %{name}.

%files bash-completion
%license LICENSE
%{_datadir}/bash-completion/completions/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
autoreconf -fi
%configure \
	--disable-golang	\
	--disable-ocaml		\
	--disable-rust		\
	--disable-static	\
	--disable-valgrind	\
	--disable-vddk		\
	--enable-libguestfs-tests	\
	--enable-linuxdisk	\
	--enable-lua		\
	--enable-perl		\
	--enable-python		\
	--enable-tcl		\
	--enable-torrent	\
	--with-bash-completions	\
	--with-curl		\
	--with-ext2		\
	--with-extra='%{name}-%{version}-%{release}'	\
	--with-gnutls		\
	--with-iso		\
	--with-libblkio		\
	--with-libguestfs	\
	--with-liblzma		\
	--with-libnbd		\
	--with-libvirt		\
	--with-manpages		\
	--with-selinux		\
	--with-ssh		\
	--with-tls-priority=@NBDKIT,SYSTEM	\
	--with-zlib		\
	--with-zlib-ng		\
	%{nil}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3541 |21cr|nbfc-linux-0.1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug %nil
%define		debug_package %nil

Name:		nbfc-linux
Version:	0.1.7
Release:	2
Summary:	NoteBook FanControl
URL:		https://github.com/nbfc-linux/nbfc-linux
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		%{name}-Makefile_path_fix.patch
License:	GPLv3
Group:		Development/Other
Requires:	systemd
ExcludeArch:	%{ix86}

%description
%{summary}

%prep
%autosetup -p1

%build
%make

%install
%makeinstall_std

%files
%doc LICENSE doc/*.md
%{_bindir}/ec_probe
%{_bindir}/nbfc
%{_bindir}/nbfc_service
%{_datadir}/bash-completion/completions/*
%{_datadir}/fish/completions/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_datadir}/nbfc/*
%{_datadir}/zsh/*
%{_unitdir}/*.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3542 |21cr|nbs-1.0-0.20040615.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap 20040615

%define major 1
%define libname %mklibname nbs %{major}
%define devname %mklibname nbs -d

Summary:	Network Broadcast Sound Daemon
Name:		nbs
Version:	1.0
Release:	0.%{snap}.6
License:	GPLv2+
Group:		System/Servers
Url:		http://www.asterisk.org/
Source0:	%{name}-%{version}-%{snap}.tar.bz2
Source1:	nbsd.init
Patch0:		nbs-1.0-20040615-mdk.diff
Patch1:		nbs-1.0-20040615-socket_path.diff
BuildConflicts:	%{name}-devel

%description
Network Broadcast Sound Daemon.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Network Broadcast Sound Daemon Library
Group:		System/Libraries

%description -n %{libname}
Network Broadcast Sound Daemon Library.

%files -n %{libname}
%{_libdir}/libnbs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the Network Broadcast Sound Daemon Library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the Network Broadcast Sound Daemon Library

This package contains the static nbs library and its header
files.

%files -n %{devname}
%doc xmms-nbs-1.2.10.patch* xmms-nbs.patch*
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package server
Summary:	Network Broadcast Sound Daemon
Group:		System/Servers
Requires(post,preun):	rpm-helper

%description server
Network Broadcast Sound Daemon.

%files server
%attr(0755,root,root) %{_initrddir}/nbsd
%{_sbindir}/nbsd
%dir %{_localstatedir}/lib/nbsd

%post server
%_post_service nbsd

%preun server
%_preun_service nbsd

#----------------------------------------------------------------------------

%package client
Summary:	Network Broadcast Sound Daemon (Client Listener)
Group:		System/Servers

%description client
Network Broadcast Sound Daemon (Client Listener).

%files client
%{_bindir}/nbscat
%{_bindir}/nbscat8k

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{snap}
%patch0 -p0 -b .mdk
%patch1 -p0 -b .socket

cp %{SOURCE1} nbsd.init

%build
%make

%install
# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_localstatedir}/lib/nbsd
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}

install -m0755 libnbs.so.%{major}.0 %{buildroot}%{_libdir}/
ln -snf libnbs.so.%{major}.0 %{buildroot}%{_libdir}/libnbs.so.%{major}
ln -snf libnbs.so.%{major}.0 %{buildroot}%{_libdir}/libnbs.so
install -m0755 libnbs.a %{buildroot}/%{_libdir}/
install -m0644 nbs.h %{buildroot}%{_includedir}/
install -m0755 nbscat %{buildroot}%{_bindir}/
install -m0755 nbscat8k %{buildroot}%{_bindir}/
install -m0755 nbsd %{buildroot}%{_sbindir}/
install -m0755 nbsd.init %{buildroot}%{_initrddir}/nbsd

bzip2 *.patch

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3543 |21cr|nbsmtp-1.00-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	nbSMTP: no-brainer SMTP
Name:		nbsmtp
Version:	1.00
Release:	10
License:	GPL
Group:		System/Servers
URL:		http://nbsmtp.ferdyx.org/
Source0:	http://www.gentoo-es.org/~ferdy/%{name}-%{version}.tar.bz2
Patch0:		nbsmtp-1.00_DESTDIR.patch
Patch1:		nbsmtp-1.00_gcc41.patch
Provides:	sendmail-command
BuildRequires:	openssl-devel

%description
nbSMTP is a simple SMTP client suitable to run in chroot jails, in embeded
systems, laptops, workstations, ... It's written in C and it compiles and runs
under lot of Unix flavors such as Linux, MacOSX, FreeBSD, ... (it practically
runs on any Unix flavor). Here you can read more AboutNbsmtp.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p0
%patch1 -p0

%build

%configure \
    --bindir=%{_sbindir} \
    --enable-ssl \
    --enable-ipv6

%make

%install
rm -rf %{buildroot}

%makeinstall_std

%clean
rm -rf %{buildroot}

%post
update-alternatives --install %{_sbindir}/sendmail sendmail-command %{_sbindir}/nbsmtp 5

%preun
if [ $1 = 0 ]; then
    update-alternatives --remove sendmail-command %{_sbindir}/nbsmtp
fi


%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog DOCS INSTALL
%attr(0755,root,root) %{_sbindir}/nbsmtp
%attr(0644,root,root) %{_mandir}/man5/*
%attr(0644,root,root) %{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3544 |21cr|nbtscan-1.5.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to gather NetBIOS info from Windows networks
Name:		nbtscan
Version:	1.5.1
Release:	8
Group:		Networking/Other
License:	GPL
URL:		http://www.inetcat.net/software/nbtscan.html
Source0:	http://www.inetcat.net/software/%{name}-%{version}.tar.gz
#add $DESTDIR to make install
Patch0:		nbtscan-1.5.1-makefile.patch

%description
NBTscan is a program for scanning IP networks for NetBIOS name information.
It sends a NetBIOS status query to each address in supplied range and lists
received information in human readable form.

%prep

%setup -qn %{name}-%{version}a
%patch0 -p1

%build

%configure

%make


%install
rm -rf %{buildroot}

%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3545 |21cr|nc6-1.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Reads and writes data across network connections using TCP or UDP
Name: 		nc6
Version: 	1.0
Release: 	9
URL:		http://deepspace6.net/projects/netcat6.html
Source0:	ftp://ftp.deepspace6.net/pub/ds6/sources/nc6/%{name}-%{version}.tar.bz2
License: 	GPL
Group: 		Networking/Other
BuildRequires:	autoconf2.5
Provides:	netcat6 = %{version}

%description
The nc6 package contains Netcat (the program is now netcat), a simple
utility for reading and writing data across network connections, using
the TCP or UDP protocols. Netcat is intended to be a reliable back-end
tool which can be used directly or easily driven by other programs and
scripts.  Netcat is also a feature-rich network debugging and exploration
tool, since it can create many different connections and has many
built-in capabilities.

This version is a fork with ipv6 capabilities.

%prep
%setup -q
%build
%configure
%make

%install
%makeinstall

(cd %{buildroot}%{_bindir}; ln -s %{name} netcat6)

%files
%defattr(-,root,root)
%doc README NEWS TODO CREDITS ChangeLog BUGS AUTHORS 
%{_bindir}/%{name}
%{_bindir}/netcat6
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3546 |21cr|ncdc-1.23.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight Direct Connect Client
Name:		ncdc
Version:	1.23.1
Release:	1
License:	MIT
Group:		Networking/File transfer
Url:		http://dev.yorhel.nl/ncdc
Source0:	http://dev.yorhel.nl/download/%{name}-%{version}.tar.gz
Source1:	ncdc.desktop
BuildRequires:	bzip2-devel
BuildRequires:	gdbm-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(sqlite3)

%description
Ncdc is a modern and lightweight direct connect client with a friendly ncurses
interface.

%files
%doc ChangeLog COPYING README
%{_bindir}/ncdc
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/ncdc.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-db-upgrade
%make

%install
%makeinstall_std
install -D -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3547 |21cr|ncdu-1.15.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Text-based disk usage viewer
Name:		ncdu
Version:	1.15.1
Release:	1
License:	MIT
Group:		Monitoring
URL:		http://dev.yorhel.nl/ncdu/
Source0:	http://dev.yorhel.nl/download/%{name}-%{version}.tar.gz
BuildRequires:	ncurses-devel

%description
ncdu (NCurses Disk Usage) is a curses-based version of the well-known 'du',
and provides a fast way to see what directories are using your disk space.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%{_mandir}/man1/ncdu.1*
%doc COPYING ChangeLog
%{_bindir}/ncdu

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3548 |21cr|ncmpc-0.49-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ncurses client for MPD
Name:		ncmpc
Version:	0.49
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://www.musicpd.org/
Source0:	http://www.musicpd.org/download/ncmpc/0/ncmpc-%{version}.tar.xz
Patch0:		ncmpc-0.36-c++14.patch
BuildRequires:	doxygen
BuildRequires:	gettext
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	python3-sphinx
BuildRequires:	rsync
BuildRequires:	glib2-devel
BuildRequires:	pkgconfig(glib-2.0) >= 2.30
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libmpdclient) >= 2.16
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(ncursesw)

%description
ncmpc is a curses client for the Music Player Daemon (MPD). ncmpc connects to a
MPD running on a machine on the local network, and controls this with an
interface inspired by cplay. If ncmpc is used with lirc and irpty it can be
used to manage playlists and control MPD with a remote control.

%files -f %{name}.lang
#doc README.rst AUTHORS NEWS COPYING doc/config.sample doc/keys.sample doc/ncmpc.lirc
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/config
%config(noreplace) %{_sysconfdir}/%{name}/keys
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_docdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
%meson
%meson_build


%install
export LC_ALL=en_US.UTF-8
export LANG=en_US.UTF-8
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}/%{name}
install -p -m644 doc/config.sample %{buildroot}%{_sysconfdir}/%{name}/config
install -p -m644 doc/keys.sample %{buildroot}%{_sysconfdir}/%{name}/keys

rm -f %{buildroot}%{_docdir}/%{name}/html/.buildinfo

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3549 |21cr|ncmpcpp-0.9.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An ncurses mpd client inspired by ncmpc
Name:		ncmpcpp
Version:	0.9.2
Release:	3
License:	GPLv2+
Group:		Sound
Url:		https://rybczak.net/ncmpcpp/
Source0:	https://rybczak.net/ncmpcpp/stable/%{name}-%{version}.tar.bz2
BuildRequires:	boost-devel >= 1.60.0
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(libmpdclient) >= 2.9
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(taglib)

%description
Ncmpcpp has UI very similar to ncmpc's one, but it provides new useful
features such as support for regular expressions in search engine, extended
song format, items filtering, last.fm support, ability to sort playlist, local
file-system browser and other minor functions.

%files
%doc AUTHORS CHANGELOG.md COPYING README.md
%doc doc/bindings doc/config
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*


#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure --enable-outputs --enable-visualizer
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3550 |21cr|nco-5.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%ifarch %{ix86}
# java stack not build for i686
%bcond_with ncocpp
%else
%bcond_without ncocpp
%endif

%define major %{version}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Arithmetic and metadata operators for netCDF and HDF4 files
Name:		nco
Version:	5.1.0
Release:	1
License:	GPLv3+
Group:		Sciences/Mathematics
Url:		https://nco.sourceforge.net
Source0:	https://nco.sourceforge.net/src/%{name}-%{version}.tar.gz
Patch1:		nco-4.0.3-install_C_headers.patch
BuildRequires:	texinfo
BuildRequires:	flex
BuildRequires:	gsl-devel
BuildRequires:	udunits2-devel
BuildRequires:	pkgconfig(netcdf)
# we needs c++ in order to build ncap:
%if %{with ncocpp}
BuildRequires:	antlr-C++
%endif

%description
The netCDF Operators, or NCO, are a suite of programs known as
operators. The operators facilitate manipulation and analysis of
self-describing data stored in the netCDF or HDF4 formats, which are
freely available (http://www.unidata.ucar.edu/packages/netcdf and
http://hdf.ncsa.uiuc.edu, respectively). Each NCO operator (e.g., 
ncks) takes netCDF or HDF4 input file(s), performs an operation (e.g.,
averaging, hyperslabbing, or renaming), and outputs a processed netCDF
file. Although most users of netCDF and HDF data are involved in
scientific research, these data formats, and thus NCO, are generic and
are equally useful in fields like finance. The NCO User's Guide
illustrates NCO use with examples from the field of climate modeling
and analysis. The NCO homepage is http://nco.sourceforge.net.

%files
%doc doc/*
%{_bindir}/*
%{_mandir}/*/*
%{_infodir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	NCO shared libraries
Group:		System/Libraries

%description -n %{libname}
This package contains shared libraries from NCO.

%files -n %{libname}
%{_libdir}/libnco-%{version}.so
%if %{with ncocpp}
%{_libdir}/libnco_c++-%{version}.so
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from NCO
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains files need to build application using NCO library.

%files -n %{devname}
%if %{with ncocpp}
%{_includedir}/*.hh
%{_libdir}/libnco_c++.so
%endif
%{_libdir}/libnco.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
%if %{with ncocpp}
	--enable-nco_cplusplus \
	--enable-ncoxx
%else
	--disable-nco_cplusplus \
	--disable-ncoxx \
	--disable-ncap2
%endif

%make \
	CPPFLAGS="%{optflags} -fPIC " \
	CCFLAGS="%{optflags} -fPIC "

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3551 |21cr|ncpamixer-1.3.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A ncurses PulseAudio Mixer
Name:		ncpamixer
Version:	1.3.3.1
Release:	1
License:	MIT
Group:		Sound
Url:		https://github.com/fulhax/ncpamixer
Source0:	https://github.com/fulhax/ncpamixer/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	stdc++-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	ncurses-extraterms
BuildRequires:	pkgconfig(libpulse)

%description
An ncurses mixer for PulseAudio inspired by pavucontrol.

%files
%doc README.md LICENSE
%{_bindir}/ncpamixer
#--------------------------------------------------------


%prep
%setup -q

%build
%cmake ../src \
	-DUSE_WIDE=TRUE

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3552 |21cr|ncpfs-2.2.6-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

%define	major 2.3
%define	libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	Utilities for the ncpfs filesystem, a NetWare client for Linux
Name:		ncpfs
Version:	2.2.6
Release:	18
License:	GPLv2+
Group:		Networking/Other
URL:		ftp://platan.vc.cvut.cz/pub/linux/ncpfs/
Source0:	ftp://platan.vc.cvut.cz/pub/linux/ncpfs/%{name}-%{version}/%{name}-%{version}.tar.bz2
Patch403:       ncpfs-hg-commit-403.patch
Patch404:       ncpfs-hg-commit-404.patch
Patch405:       ncpfs-hg-commit-405.patch
Patch406:       ncpfs-hg-commit-406.patch
Patch407:       ncpfs-hg-commit-407.patch
Patch408:       ncpfs-hg-commit-408.patch
Patch409:       ncpfs-hg-commit-409.patch
Patch410:       ncpfs-hg-commit-410.patch
Patch411:       ncpfs-hg-commit-411.patch
Patch412:       ncpfs-hg-commit-412.patch
Patch413:       ncpfs-hg-commit-413.patch
Patch414:       ncpfs-hg-commit-414.patch
Patch415:       ncpfs-hg-commit-415.patch
Patch416:       ncpfs-hg-commit-416.patch
Patch417:       ncpfs-hg-commit-417.patch
Patch419:       ncpfs-hg-commit-419.patch
Patch420:       ncpfs-hg-commit-420.patch
Patch421:       ncpfs-hg-commit-421.patch
Patch422:       ncpfs-hg-commit-422.patch
Patch423:       ncpfs-hg-commit-423.patch
Patch424:       ncpfs-hg-commit-424.patch
Patch425:       ncpfs-hg-commit-425.patch
Patch426:       ncpfs-hg-commit-426.patch
Patch427:       ncpfs-hg-commit-427.patch
Patch428:       ncpfs-hg-commit-428.patch
Patch429:       ncpfs-hg-commit-429.patch
Patch430:       ncpfs-hg-commit-430.patch
Patch431:       ncpfs-hg-commit-431.patch
Patch432:       ncpfs-hg-commit-432.patch
Patch433:       ncpfs-hg-commit-433.patch
Patch434:       ncpfs-hg-commit-434.patch
Patch435:       ncpfs-hg-commit-435.patch
Patch436:       ncpfs-hg-commit-436.patch
Patch437:       ncpfs-hg-commit-437.patch
Patch438:       ncpfs-hg-commit-438.patch
Patch439:       ncpfs-hg-commit-439.patch
Patch440:       ncpfs-hg-commit-440.patch
Patch441:       ncpfs-hg-commit-441.patch
Patch442:       ncpfs-hg-commit-442.patch
Patch443:       ncpfs-hg-commit-443.patch
Patch444:       ncpfs-hg-commit-444.patch
Patch445:       ncpfs-hg-commit-445.patch
Patch446:       ncpfs-hg-commit-446.patch
Patch447:       ncpfs-hg-commit-447.patch
Patch448:       ncpfs-hg-commit-448.patch
Patch449:       ncpfs-hg-commit-449.patch
Patch450:       ncpfs-hg-commit-450.patch
Patch451:       ncpfs-hg-commit-451.patch
Patch452:       ncpfs-hg-commit-452.patch
Patch453:       ncpfs-hg-commit-453.patch
Patch454:       ncpfs-hg-commit-454.patch
Patch455:       ncpfs-hg-commit-455.patch
Patch456:       ncpfs-hg-commit-456.patch
Patch457:       ncpfs-hg-commit-457.patch
Patch458:       ncpfs-hg-commit-458.patch
Patch1002:      ncpfs.LDFLAGS.patch
Patch1003:      ncpfs.pam_ncp_auth.syslog.patch
Patch1005:      ncpfs.offsetof.patch
Patch1006:      ncpfs.mount_hang.patch
Patch1007:      ncpfs-2.2.6-mount-issue-ver2.patch
Patch1008:      ncpfs-2_2_6_partial.patch
Patch1009:      ncpfs-2.2.6-CVE-2011-1679,1680.diff
Requires:	ipxutils
Requires:	%{libname} = %{EVRD}
BuildRequires:	pam-devel

%description
Ncpfs is a filesystem which understands the Novell NetWare(TM) NCP protocol.
Functionally, NCP is used for NetWare the way NFS is used in the TCP/IP world.
For a Linux system to mount a NetWare filesystem, it needs a special mount
program. The ncpfs package contains such a mount program plus other tools for
configuring and using the ncpfs filesystem.

Install the ncpfs package if you need to use the ncpfs filesystem to use Novell
NetWare files or services.

%package -n	ipxutils
Summary:	Tools for configuring and debugging IPX interfaces and networks
Group:		System/Configuration/Networking

%description -n	ipxutils
The ipxutils package includes utilities (ipx_configure, ipx_internal_net,
ipx_interface, ipx_route) necessary for configuring and debugging IPX
interfaces and networks under Linux. IPX is the low-level protocol used by
Novell's NetWare file server system to transfer data.

Install ipxutils if you need to configure IPX networking on your network.

%package -n	%{libname}
Summary:	Library associated with ncpfs
Group:		System/Libraries

%description -n	%{libname}
This library is mandatory for ncpfs and ipxutils to run.

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
Development files for %{name}

%prep

%setup -q
%patch403 -p1
%patch404 -p1
%patch405 -p1
%patch406 -p1
%patch407 -p1
%patch408 -p1
%patch409 -p1
%patch410 -p1
%patch411 -p1
%patch412 -p1
%patch413 -p1
%patch414 -p1
%patch415 -p1
%patch416 -p1
%patch417 -p1
%patch419 -p1
%patch420 -p1
%patch421 -p1
%patch422 -p1
%patch423 -p1
%patch424 -p1
%patch425 -p1
%patch426 -p1
%patch427 -p1
%patch428 -p1
%patch429 -p1
%patch430 -p1
%patch431 -p1
%patch432 -p1
%patch433 -p1
%patch434 -p1
%patch435 -p1
%patch436 -p1
%patch437 -p1
%patch438 -p1
%patch439 -p1
%patch440 -p1
%patch441 -p1
%patch442 -p1
%patch443 -p1
%patch444 -p1
%patch445 -p1
%patch446 -p1
%patch447 -p1
%patch448 -p1
%patch449 -p1
%patch450 -p1
%patch451 -p1
%patch452 -p1
%patch453 -p1
%patch454 -p1
%patch455 -p1
%patch456 -p1
%patch457 -p1
%patch458 -p1
#
%patch1002 -p1
%patch1003 -p1
%patch1005 -p1
%patch1006 -p1
%patch1007 -p1
%patch1008 -p1
%patch1009 -p1

chmod +rw -R .

# lib64 fix
perl -pi -e "s|/lib/security\b|/%{_lib}/security|g" configure*

%build
chmod -R u+w po

CFLAGS="%{optflags} -fPIC" \
LDFLAGS="%{ldflags}" \
%configure \
    --disable-rpath \
    --enable-pam

%make clean
%make

%make -C ipxdump
mv ipxdump/README ipxdump/README.ipxdump

%install

mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_libdir}

%makeinstall_std install-dev

# Move ipx_configure/ipx_internal_net to permit /usr from NFS
for i in ipx_configure ipx_internal_net ipx_interface ; do
    mv %{buildroot}%{_bindir}/$i %{buildroot}/sbin/$i
done

install -m755 ipxdump/ipxdump ipxdump/ipxparse %{buildroot}%{_bindir}/

ln -sf ncpmount.8 %{buildroot}%{_mandir}/man8/mount.ncp.8

%find_lang %{name}

#rm -f %{buildroot}/usr/share/locale/locale.alias

rm -f %{buildroot}%{_libdir}/*.*a

%post -n ipxutils
if [ -f %{_sysconfdir}/modules.conf ];then
    if ! grep -q -E "^alias.*net-pf-4.*ipx" %{_sysconfdir}/modules.conf;then
	echo "alias net-pf-4 ipx" >> %{_sysconfdir}/modules.conf
    fi
else
    echo "alias net-pf-4 ipx" >> %{_sysconfdir}/modules.conf
fi

%postun  -n ipxutils
if [ "$1" = "0" ];then
    if [ -f %{_sysconfdir}/modules.conf ];then
	if grep -q -E "^alias.*net-pf-4.*ipx" %{_sysconfdir}/modules.conf;then
	    sed 's/^alias net-pf-4 ipx//' %{_sysconfdir}/modules.conf > /tmp/.modules.conf \
	    && mv -f /tmp/.modules.conf %{_sysconfdir}/modules.conf
	fi
    fi
fi


%files -f %{name}.lang
%doc BUGS Changes FAQ README
/sbin/mount.ncp*
/sbin/nwmsg
%{_bindir}/n*
%{_bindir}/p*
%{_bindir}/slist
%{_sbindir}/nwmsg
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man8/mount.ncp.8*
%{_mandir}/man8/ncplogin.8*
%{_mandir}/man8/ncpmap.8*
%{_mandir}/man8/ncpmount.8*
%{_mandir}/man8/ncpumount.8*
%{_mandir}/man8/nwbocreate.8*
%{_mandir}/man8/nwborm.8*
%{_mandir}/man8/nwbpadd.8*
%{_mandir}/man8/nwbpcreate.8*
%{_mandir}/man8/nwbprm.8*
%{_mandir}/man8/nwfsctrl.8*
%{_mandir}/man8/nwgrant.8*
%{_mandir}/man8/nwmsg.8*
%{_mandir}/man8/nwrevoke.8*

%files -n ipxutils
%doc ipx-1.0/COPYING ipx-1.0/README
%doc ipxdump/README.ipxdump
/sbin/ipx_configure
/sbin/ipx_interface
/sbin/ipx_internal_net
%{_bindir}/ipx_cmd
%{_bindir}/ipx_route
%{_bindir}/ipxdump
%{_bindir}/ipxparse
%{_mandir}/man8/ipx_cmd.8*
%{_mandir}/man8/ipx_configure.8*
%{_mandir}/man8/ipx_interface.8*
%{_mandir}/man8/ipx_internal_net.8*
%{_mandir}/man8/ipx_route.8*

%files -n %{libname}
/%{_lib}/security/*
%{_libdir}/libncp.so.*

%files -n %{develname}
%doc Changes
%{_libdir}/lib*.so
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3553 |21cr|ncspot-0.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		ncspot
Version:	0.8.2
Release:	1
Summary:	Ncurses Spotify client
License:	BSD-2-Clause
Group:		Sound
URL:		https://github.com/hrkfdn/ncspot
Source:		https://github.com/hrkfdn/ncspot/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	vendor.tar.xz
Source2:	cargo_config
BuildRequires:	rust
BuildRequires:	alsa-lib
BuildRequires:	cargo
BuildRequires:	python3
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libpulse)

%description
Cross-platform ncurses Spotify client written in Rust, inspired
by ncmpc and the likes.

%files
%license LICENSE
%doc README.md
%{_bindir}/ncspot

#------------------------------------------------------------------
%prep
%autosetup -p 1 -a 1
install -D -m 0644 %{SOURCE2} .cargo/config

%build
# HACK: https://github.com/jeaye/ncurses-rs/issues/191
export NCURSES_RS_RUSTC_FLAGS="-L /usr/lib64/ncurses5"
cargo build --release --locked %{?_smp_mflags}

%install
cargo install --no-track --root=%{buildroot}%{_prefix} --path .

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3554 |21cr|ncview-2.1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Graphic for netCDF data file
Name:		ncview
Version:	2.1.8
Release:	2
License:	GPLv3+
Group:		Sciences/Other
Url:		http://meteora.ucsd.edu/~pierce/ncview_home_page.html
Source0:	ftp://cirrus.ucsd.edu/pub/ncview/ncview-%{version}.tar.gz
BuildRequires:	netpbm-devel
BuildRequires:	udunits2-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)

%description
Ncview is a visual browser for netCDF format files.  Typically you
would use ncview to get a quick and easy, push-button look at your
netCDF files.  You can view simple movies of the data, view along
various dimensions, take a look at the actual data values, change
color maps, invert the data, etc.

%files
%doc COPYING INSTALL README
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi -Im4macros
%configure2_5x
%make

%install
%makeinstall_std

# Menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=%{name}
Comment=Graphic for netCDF data file
Exec=%{_bindir}/%{name}
Icon=%{name}
Categories=Science;Education;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3555 |21cr|ndesk-dbus-0.6.1a-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Managed D-Bus implementation
Name:		ndesk-dbus
Version:	0.6.1a
Release:	18
License:	MIT
Group:		System/Libraries
Url:		http://www.ndesk.org/DBusSharp
Source0:	http://www.ndesk.org/archive/dbus-sharp/%{name}-%{version}.tar.gz
Patch0:		ndesk-dbus-0.6.1a-mcs.patch
BuildRequires:	pkgconfig(mono)
Provides:	mono(NDesk.DBus) = 1.0.0.0
BuildArch:	noarch

%description
dbus-sharp is a C# implementation of D-Bus. It's often referred to as
"managed D-Bus" to avoid confusion with existing bindings (which wrap
libdbus).

D-Bus is an inter-process communication framework that lets
applications interface with the system event bus as well as allowing
them to talk to one another in a peer-to-peer configuration.

%files
%doc README COPYING
%{_prefix}/lib/mono/ndesk-dbus-1.0
%{_prefix}/lib/mono/gac/NDesk.DBus/

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
dbus-sharp is a C# implementation of D-Bus. It's often referred to as
"managed D-Bus" to avoid confusion with existing bindings (which wrap
libdbus).

D-Bus is an inter-process communication framework that lets
applications interface with the system event bus as well as allowing
them to talk to one another in a peer-to-peer configuration.

%files devel
%doc examples
%{_datadir}/pkgconfig/ndesk-dbus-1.0.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
./configure \
	--prefix=%{_prefix}
%make

%install
%makeinstall_std \
	pkgconfigdir=%{_datadir}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3556 |21cr|ndesk-dbus-glib-0.4.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

Summary:	Managed D-Bus implementation - GLib integration
Name:		ndesk-dbus-glib
Version:	0.4.1
Release:	16
License:	MIT
Group:		System/Libraries
Url:		http://www.ndesk.org/DBusSharp
Source0:	http://www.ndesk.org/archive/dbus-sharp/%{name}-%{version}.tar.gz
Patch0:		ndesk-dbus-glib-0.4.1-mcs.patch
BuildRequires:	pkgconfig(gapi-2.0)
BuildRequires:	pkgconfig(mono)
BuildRequires:	pkgconfig(ndesk-dbus-1.0)
Requires:	glib2
BuildArch:	noarch

%description
dbus-sharp is a C# implementation of D-Bus. It's often referred to as
"managed D-Bus" to avoid confusion with existing bindings (which wrap
libdbus). This is the GLib integration for ndesk-dbus.

D-Bus is an inter-process communication framework that lets
applications interface with the system event bus as well as allowing
them to talk to one another in a peer-to-peer configuration.

%files
%doc README COPYING
%{_prefix}/lib/mono/ndesk-dbus-glib-1.0
%{_prefix}/lib/mono/gac/NDesk.DBus.GLib/

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
dbus-sharp is a C# implementation of D-Bus. It's often referred to as
"managed D-Bus" to avoid confusion with existing bindings (which wrap
libdbus). This is the GLib integration for ndesk-dbus.

D-Bus is an inter-process communication framework that lets
applications interface with the system event bus as well as allowing
them to talk to one another in a peer-to-peer configuration.

%files devel
%doc examples
%{_datadir}/pkgconfig/ndesk-dbus-glib-1.0.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
./configure \
	--prefix=%{_prefix}
make

%install
%makeinstall_std \
	pkgconfigdir=%{_datadir}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3557 |21cr|ndiff-2.00-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define release 10

Summary: Compare putatively similar files, ignoring small numeric differences 
Name: ndiff
Version: 2.00
Release: %release
License: GPL
Group: Text tools
Source:  ftp://ftp.math.utah.edu/pub/misc/ndiff-%{version}.tar.gz
URL: http://www.math.utah.edu/~beebe/software/ndiff/

%description
When a numerical program is run  in  multiple  environments  (operating
systems, architectures, or compilers), assessing its consistency can be
a difficult task for a human, since small differences in numerical out-
put values are expected.
ndiff  provides a solution to this problem.  It compares two files that
are expected to be identical, or at  least,  numerically  similar.   It
assumes  that  lines  consist of whitespace-separated fields of numeric

%prep
%setup -q 

%build
%configure 
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
%makeinstall
mv $RPM_BUILD_ROOT/%{_mandir}/ndiff* $RPM_BUILD_ROOT/%{_mandir}/man1

###workaround bug #52511
rm -rf $RPM_BUILD_ROOT/%{_bindir}/ndiff
mv $RPM_BUILD_ROOT/%{_datadir}/lib/%{name}/%{name}-%{version}/ndiff.awk $RPM_BUILD_ROOT/%{_datadir}/lib/%{name}/%{name}-%{version}/ndiff-2.00.awk
mv  $RPM_BUILD_ROOT/%{_mandir}/man1/ndiff.1 $RPM_BUILD_ROOT/%{_mandir}/man1/ndiff-2.00.1
###workaround bug #52511

%files
%defattr(-,root,root)
%doc COPYING README* INSTALL 
%{_bindir}/ndiff-2.00
%{_mandir}/man1/ndiff-2.00.1*
%{_datadir}/lib/%{name}/%{name}-%{version}/ndiff*

%clean
[ %buildroot != '/' ] && rm -fr %buildroot

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3558 |21cr|ndisc6-1.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IPv6 diagnostic tools
Name:		ndisc6
Version:	1.0.3
Release:	3
License:	GPLv2+ or GPLv3+
Group:		Networking/Other
Url:		http://www.remlab.net/ndisc6/
Source0:	http://www.remlab.net/files/ndisc6/%{name}-%{version}.tar.bz2
Source1:	rdnssd.rc
Source2:	ndisc6-tmpfiles.conf
Patch1:		ndisc6-var_run.patch

%description
This package gathers a few diagnostic tools for IPv6 networks:
- ndisc6, which performs ICMPv6 Neighbor Discovery in userland,
- rdisc6, which performs ICMPv6 Router Discovery in userland,
- rltraceroute6, yet another IPv6 implementation of traceroute,
- tcptraceroute6, a TCP/IPv6-based traceroute implementation,
- tracert6, a ICMPv6 Echo Request based traceroute,
- tcpspray6, a TCP/IP Discard/Echo bandwidth metter.

%files -f %{name}.lang
%doc COPYING README
%{_bindir}/addr2name
%{_bindir}/dnssort
%{_bindir}/name2addr
%{_sbindir}/rdisc6
%{_sbindir}/ndisc6
%{_sbindir}/rltraceroute6
%{_bindir}/tcpspray
%{_bindir}/tcpspray6
%{_sbindir}/tcptraceroute6
%{_sbindir}/tracert6
%{_mandir}/man1/addr2name.1.*
%{_mandir}/man1/dnssort.1.*
%{_mandir}/man1/name2addr.1.*
%{_mandir}/man1/tcpspray.1.*
%{_mandir}/man1/tcpspray6.1.*
%{_mandir}/man8/ndisc6.8.*
%{_mandir}/man8/rdisc6.8.*
%{_mandir}/man8/rltraceroute6.8.*
%{_mandir}/man8/tcptraceroute6.8.*
%{_mandir}/man8/tracert6.8.*

#----------------------------------------------------------------------------

%package -n rdnssd
Summary:	IPv6 recursive DNS server discovery daemon
Group:		Networking/Other
Requires(pre,post,preun,postun):	rpm-helper

%description -n rdnssd
rdnssd autoconfigures recursive DNS servers on IPv6 networks
using ICMPv6 Neighbor Discovery (RFC 5006), and can update
the DNS resolvers configuration (/etc/resolv.conf) accordingly.

%files -n rdnssd
%doc COPYING README
%doc %{_mandir}/man8/rdnssd.8.*
%{_sbindir}/rdnssd
%dir %{_sysconfdir}/rdnssd
%{_initrddir}/rdnssd
%attr(755,root,root) %{_sysconfdir}/rdnssd/merge-hook
%ghost %dir %attr(0755,rdnssd,nogroup) %{_var}/run/rdnssd
%{_tmpfilesdir}/%{name}.conf

%pre -n rdnssd
%_pre_useradd rdnssd %{_var}/run/rdnssd /bin/false

%postun -n rdnssd
%_postun_userdel rdnssd

%post -n rdnssd
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service rdnssd

%preun -n rdnssd
%_preun_service rdnssd

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p0

%build
%configure \
	--disable-suid-install
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_initrddir}
install -m755 %{SOURCE1} %{buildroot}%{_initrddir}/rdnssd

mkdir -p %{buildroot}%{_tmpfilesdir}
install -m0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3559 |21cr|ndsad-1.33-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	NDSAD captures traffic information and translates it into Cisco NetFlow format
Name:		ndsad
Version:	1.33
Release:	10
License:	GPLv2+
Group:		Monitoring
Url:		http://www.netup.biz
Source0:	http://puzzle.dl.sourceforge.net/sourceforge/ndsad/ndsad-%{version}.tgz
Source1:	ndsad.service
Patch0:		ndsad.conf.patch
BuildRequires:	pcap-devel
Requires(post,preun):	rpm-helper
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd

%description
The NetUP ndsad utility captures IP-traffic from network interfaces and
export NetFlow v.5. Data is gathered from libpcap library on Unix and
from winpcap on Windows. Also you are able to use tee/divert sockets on
FreeBSD and ULOG on Linux for data source.

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog COPYING README
%attr(755,root,root) %{_sbindir}/ndsad
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/ndsad.conf
%attr(644,root,root) %{_mandir}/man5/ndsad.conf.5.*
%{_unitdir}/ndsad.service

%post
%systemd_post ndsad.service

%preun
%systemd_preun ndsad.service

%postun
%systemd_postun_with_restart ndsad.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
./preconf
%configure
%make

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
mkdir -p %{buildroot}%{_mandir}/man5
install -d %{buildroot}%{_unitdir}
install -c -m 0755 -s ndsad %{buildroot}%{_sbindir}/ndsad
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_unitdir}/ndsad.service
install -c -m 0644 ndsad.conf %{buildroot}%{_sysconfdir}/ndsad.conf
install -c -m 0644 ndsad.conf.5 %{buildroot}%{_mandir}/man5/ndsad.conf.5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3560 |21cr|ne-3.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Nice Editor
Name:		ne
Version:	3.0.1
Release:	3
License:	GPLv2+
Group:		Editors
Url:		https://github.com/vigna/ne
Source0:	https://github.com/vigna/ne/archive/%{name}-%{version}.tar.gz
Patch0:		ne-3.0.1-makefiles.patch
BuildRequires:	texinfo
BuildRequires:	pkgconfig(ncursesw)

%description
ne is a text editor based on the POSIX standard that runs
on almost any UN*X machine.
Some of the features of ne are:
* is fast, small (~250K), powerful and simple to use;
* syntax highlighting;
* full support for UTF-8;
* unlimited undo/redo capability;
* simple scripting language;
* extended regular expression search and replace;
* editing of binary files.

%files
%doc doc/default.keys doc/default.menus
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
make \
	CC=gcc \
	OPTS="%{optflags}" \
	NE_GLOBAL_DIR=%{_datadir}/%{name}

%install
%makeinstall_std \
	PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3561 |21cr|nebula-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=on
%global goipath github.com/slackhq/nebula

# Package source code as a devel package.
# Turn on if using not bundled go modules.
# Offed for now because it automatically requires not packaged golang modules.
%bcond_with devel

Summary:	A p2p mesh VPN solution
Name:		nebula
Version:	1.5.2
Release:	1
License:	MIT
Group:		Networking/Other
Url:		https://www.defined.net/nebula/
Source0:	https://github.com/slackhq/nebula/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# go mod vendor, created with ./upd.sh
Source1:	nebula-%{version}-go-mod-vendor.tar.xz
Source2:	upd.sh
Patch0001:	0001-HACK-Do-not-require-Windows-specific-modules.patch
BuildRequires:	golang
%gometa

%description
Nebula is a scalable overlay networking tool with a focus on performance,
simplicity and security, which allows to make p2p VPN mesh networks.

%files
%license LICENSE
%doc README.md CHANGELOG.md AUTHORS
# The default config is documented via comments, it may be useful for reference
%doc examples/config.yml
%{_sbindir}/nebula
%{_bindir}/nebula-cert
%{_unitdir}/nebula.service
%dir %attr(0700,-,-) /etc/nebula
%config(noreplace) /etc/nebula/config.yml

%post
%systemd_post nebula.service

%preun
%systemd_preun nebula.service

#------------------------------------------------------------------

%if %{with devel}
%gopkg
%gopkgfiles
%endif

#------------------------------------------------------------------

%prep
%goprep
%autopatch -p1

%build
( cd .. && tar -xf %{SOURCE1} )
%gobuild -o %{gobuilddir}/sbin/nebula %{goipath}/cmd/nebula
%gobuild -o %{gobuilddir}/bin/nebula-cert %{goipath}/cmd/nebula-cert

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
install -m0755 %{gobuilddir}/sbin/* %{buildroot}%{_sbindir}
install -m0755 %{gobuilddir}/bin/* %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_unitdir}
cat examples/service_scripts/nebula.service | sed -e 's,/usr/local/bin/,%{_sbindir}/,g' > %{buildroot}%{_unitdir}/nebula.service
# this directory may store private keys
mkdir -p -m0700 %{buildroot}/etc/nebula
# it's ok for the config to be world-readable
install -m0644 examples/config.yml %{buildroot}/etc/nebula/config.yml

%if %{with devel}
%gopkginstall
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3562 |21cr|necpp-1.6.1-0.gitbc24df.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define commit bc24dfd0447ce54e15b309b6ee8afb3078ccdd28
%define commit_short %(echo %{commit} | head -c6)

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Analysis of the electromagnetic properties of structures
Name:		necpp
Version:	1.6.1
Release:	0.git%{commit_short}.2
License:	GPLv2+
Group:		Sciences/Physics
Url:		http://elec.otago.ac.nz/w/index.php/Necpp
Source0:	https://github.com/tmolteno/necpp/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	gcc-gfortran
BuildRequires:	pkgconfig(bdw-gc)
Provides:	nec2++ = %{EVRD}
ExcludeArch:	%{ix86} %{e2k}

%description
The Numerical Electromagnetics Code (NEC-2) is a comprehensive package for
the analysis of the electromagnetic properties of structures. It can analyse
radiating properties i.e. antenna gain, as well as scattering properties
(radar cross section) of structures. NEC-2 was originally written in FORTRAN.

NEC2++ is an extensive rewrite of NEC-2 in C++ by Tim Molteno. This work was
helped tremendously by the work of N. Kyriazis who ported NEC-2 to C. The new
portions of code are licensed under the GNU Public License (GPL).

%files
%doc README* CHANGELOG* COPYING INSTALL*
%{_bindir}/nec2++
%{_bindir}/nec2diff

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 1.3.0-0.cvs20101121.3

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libnecpp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 1.3.0-0.cvs20101121.3

%description -n %{devname}
Shared library for %{name}.

%files -n %{devname}
%{_includedir}/libnecpp.h
%{_libdir}/pkgconfig/necpp.pc
%{_libdir}/libnecpp.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
make -f Makefile.git PREFIX=/usr/bin
#./configure --without-lapack
%configure --without-lapack
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3563 |21cr|nedit-5.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A text editor for the X Window System
Name:		nedit
Version:	5.7
Release:	1
License:	GPLv2+ with exception
URL:		http://www.nedit.org/
Group:		Editors
Source0:	https://sourceforge.net/projects/nedit/files/nedit-source/nedit-%{version}-src.tar.gz
Patch0:		nedit-5.7-makefile.patch
Patch1:		nedit-5.5-security.patch
Patch7:		nedit-5.5-visfix.patch
BuildRequires:	byacc
BuildRequires:	pkgconfig(x11)
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(xt)
Requires:	x11-font-adobe-100dpi

%description
NEdit is a multi-purpose text editor for the X Window System, which
combines a standard, easy to use, graphical user interface with the
thorough functionality and stability required by users who edit text
eighthours a day.

It provides intensive support for development in a wide variety of
languages, text processors, and other tools, but at the same time can
be used productively by just about anyone who needs to edit text.

%prep
%autosetup -p1

# make it lib64 aware
perl -pi -e "s,(/usr/X11R6)/lib\b,\1/%{_lib},g" makefiles/Makefile.linux

%build
echo | %make linux OPT="%{optflags} -DBUILD_UNTESTED_NEDIT %build_ldflags"

make man -C doc

%install
mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 doc/nedit.man %{buildroot}%{_mandir}/man1/%{name}.1
install -m 644 doc/nc.man %{buildroot}%{_mandir}/man1/ncl.1

mkdir -p %{buildroot}%{_bindir}
install -m 755 source/nedit %{buildroot}%{_bindir}/nedit
install -m 755 source/nc %{buildroot}%{_bindir}/ncl

# menu entry

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=NEdit
Comment=A text editor for the X Window System
Exec=%{_bindir}/%{name}
Icon=editors_section
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/plain;
Categories=Utility;TextEditor;
EOF

%files
%doc README ReleaseNotes
%{_bindir}/%{name}
%{_bindir}/ncl
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/ncl.1*
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3564 |21cr|nekobee-0.1.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}
%define	desktop_file 0

Summary:	Bassline DSSI plugin
Name:		nekobee
Version:	0.1.8
Release:	3
License:	GPLv2+
Group:		Sound
Url:		https://github.com/gordonjcp/nekobee
Source0:	https://github.com/gordonjcp/nekobee/archive/%{name}-%{version}.tar.gz
# From upstream with some fix for .desktop file and conversion to png for the icon one
# ATM not working
Source1:	%{name}.desktop
Source2:	%{name}.png
# From upstream
Patch0:		%{name}-0.1.8-buildsystem-fix.patch
# Fix wrong install path when using "--prefix" to allow non-root install
Patch1:		%{name}-0.1.8-fix-install-path.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(liblo)

%description
Bassline DSSI plugin.

%files
%doc COPYING README
%{_libdir}/dssi/%{name}.so
%{_libdir}/dssi/%{name}/*
%if %{desktop_file}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
perl -pi -e 's/GError \*gerror/GError \*gerror \= NULL/g' src/gtkknob.c


%build
./waf configure --prefix="%{buildroot}%{_libdir}"
./waf build


%install
./waf install

%if %{desktop_file}
# Install icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -scale 16x16 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -scale 32x32 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# Install .desktop
desktop-file-install --dir="%{buildroot}%{_datadir}/applications" %{SOURCE1}
%endif

# Zero lenght
rm -f %{buildroot}%{_libdir}/dssi/%{name}/switch.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3565 |21cr|nekohtml-1.9.6.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           nekohtml
Version:        1.9.6.1
Release:        3
Epoch:          0
Summary:        HTML scanner and tag balancer
License:        Apache License
URL:            http://nekohtml.sourceforge.net/
Source0:        http://downloads.sourceforge.net/nekohtml/nekohtml-%{version}.tar.gz
# Source 1      http://www.jpackage.org/cgi-bin/viewvc.cgi/*checkout*/rpms/devel/nekohtml/nekohtml-filter.sh?root=jpackage&content-type=text%2Fplain
Source1:        %{name}-filter.sh
Patch0:         %{name}-crosslink.patch
Patch1:         %{name}-1.9.6-jars.patch
Group:          Development/Java
BuildArch:      noarch
BuildRequires:  java-devel
BuildRequires:  java-rpmbuild >= 0:1.6
BuildRequires:  ant
BuildRequires:  java-javadoc
BuildRequires:  bcel-javadoc
BuildRequires:  xerces-j2 >= 0:2.7.1
BuildRequires:  xerces-j2-javadoc-xni
BuildRequires:  xerces-j2-javadoc-impl
Requires:       bcel
Requires:       jpackage-utils >= 0:1.6
Requires:       xerces-j2 >= 0:2.7.1

%description
NekoHTML is a simple HTML scanner and tag balancer that enables
application programmers to parse HTML documents and access the
information using standard XML interfaces. The parser can scan HTML
files and "fix up" many common mistakes that human (and computer)
authors make in writing HTML documents.  NekoHTML adds missing parent
elements; automatically closes elements with optional end tags; and
can handle mismatched inline element tags.
NekoHTML is written using the Xerces Native Interface (XNI) that is
the foundation of the Xerces2 implementation. This enables you to use
the NekoHTML parser with existing XNI tools without modification or
rewriting code.

%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
Requires:               jpackage-utils >= 0:1.6
Requires(postun):       jpackage-utils >= 0:1.6

%description    javadoc
Javadoc for %{name}.

%package        demo
Summary:        Demo for %{name}
Group:          Development/Java
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:               jpackage-utils >= 0:1.6
Requires(postun):       jpackage-utils >= 0:1.6

%description    demo
Demonstrations and samples for %{name}.


%prep
%setup -q
%patch0 -p1
%patch1 -p1
%{_bindir}/find . -name "*.jar" | %{_bindir}/xargs -t rm
perl -pi -e 's/\r$//g' *.txt doc/*.html
rm -r doc/javadoc

%build
export CLASSPATH=$(build-classpath bcel xerces-j2)
export OPT_JAR_LIST=:
%{ant} \
    -Dbuild.sysclasspath=first \
    -Djava.dir=%{_javadir} \
    -Djar.file=%{name}-%{version}.jar \
    -Djar.xni.file=%{name}-xni-%{version}.jar \
    -Djar.samples.file=%{name}-samples-%{version}.jar \
    -Dbcel.javadoc=%{_javadocdir}/bcel \
    -Dj2se.javadoc=%{_javadocdir}/java \
    -Dxni.javadoc=%{_javadocdir}/xerces-j2-xni \
    -Dxerces.javadoc=%{_javadocdir}/xerces-j2-impl \
    clean jar jar-xni doc #test

%install

# Jars
install -d -m 755 %{buildroot}%{_javadir}
install -p -m 644 %{name}{,-xni}-%{version}.jar %{buildroot}%{_javadir}/
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
ln -s %{name}-xni-%{version}.jar %{buildroot}%{_javadir}/%{name}-xni.jar

# Scripts
install -Dpm 755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}-filter

# Samples
install -d -m 755 %{buildroot}%{_datadir}/%{name}-%{version}
install -p -m 644 %{name}-samples-%{version}.jar \
  %{buildroot}%{_datadir}/%{name}-%{version}/

# Javadocs
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a build/doc/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}

%files
%defattr(0644,root,root,0755)
%doc LICENSE.txt README.txt doc/*.html
%attr(755,root,root) %{_bindir}/%{name}-filter
%{_javadir}/%{name}*.jar

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/*

%files demo
%defattr(0644,root,root,0755)
%{_datadir}/%{name}-%{version}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3566 |21cr|nekostring-0.1.1-0.git22927db.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	branch 1
%{?_branch: %{expand: %%global branch 1}}

%if %{branch}
%define	git_snapshot git22927db
%endif

Name:		nekostring
Summary:	70's String Ensemble DSSI plugin
Version:	0.1.1
%if %{branch}
Release:	0.%{git_snapshot}.1
%else
Release:	4
%endif
License:	GPLv2+
Group:		Sound
Url:		https://github.com/gordonjcp/%{name}
Source0:	https://github.com/gordonjcp/%{name}/archive/%{name}-master.zip
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.4
BuildRequires:	pkgconfig(liblo)

%description
70's String Ensemble DSSI plugin.

%files
%doc COPYING README.md
%dir %{_libdir}/dssi/%{name}
%{_libdir}/dssi/%{name}.so
%{_libdir}/dssi/%{name}/%{name}_gtk

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-master


%build
%if %{branch}
./autogen.sh
%endif

%configure	--disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3567 |21cr|nemo-extensions-5.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# TODO: package pkgconfig(xreader-view-1.5) and enbale it
%bcond_with preview

Summary:		Extensions for Nemo file manager
Name:			nemo-extensions
Version:		5.4.1
Release:		1
Group:			File tools
License:        GPLv2+ and LGPLv2
Url:			https://github.com/linuxmint/nemo-extensions
Source0:		https://github.com/linuxmint/nemo-extensions/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	make
BuildRequires:  desktop-file-utils
BuildRequires:  gpgme-devel
# rpm generator of typelib() requires
BuildRequires:  gobject-introspection-devel
BuildRequires:  pkgconfig(cryptui-0.0) 
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:  pkgconfig(gcr-3)
BuildRequires:  pkgconfig(libnemo-extension)
BuildRequires:  python3-distutils-extra
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  pkgconfig(pygobject-3.0)
BuildRequires:  gnome-common
BuildRequires:  intltool
BuildRequires:  meson
BuildRequires:  pkgconfig(gtk-doc)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(cjs-1.0)
%if %{with preview}
BuildRequires:  pkgconfig(xreader-view-1.5)
%endif
BuildRequires:  pkgconfig(libmusicbrainz5)
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:  pkgconfig(webkit2gtk-4.0)
BuildRequires:  pkgconfig(clutter-gtk-1.0)
BuildRequires:  pkgconfig(clutter-gst-3.0)
BuildRequires:  pkgconfig(gtksourceview-4)
BuildRequires:  perl(XML::Parser)

%description
Extensions for Nemo file manager

#----------------------------------------------------------------

%package -n nemo-audio-tab
Summary:     Audio tag information extension for Nemo
License:     GPLv3+
BuildArch:   noarch
Requires:    nemo
Requires:    nemo
Requires:    python3-mutagen
Requires:    nemo-python

%description -n nemo-audio-tab
nemo-audio-tab is an extension to view audio tag information from the properties tab.

%files -n nemo-audio-tab
%license nemo-audio-tab/COPYING.GPL3
%{_datadir}/nemo-python/extensions/nemo-audio-tab.py
%{_datadir}/nemo-audio-tab/nemo-audio-tab.glade
%{python3_sitelib}/nemo_audio_tab-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------

%package -n nemo-pastebin
Summary:     Pastebin extension for Nemo
License:     GPLv2+
BuildArch:   noarch
Requires:    nemo
Requires:    pastebinit
Requires:    nemo-python

%description -n nemo-pastebin
nemo-pastebin is an extension for the Nemo file manager, which allows
users to send files to pastebins just a right-click away.

%files -n nemo-pastebin
%doc nemo-pastebin/README
%doc nemo-pastebin/NEWS
%license nemo-pastebin/COPYING
%{_bindir}/nemo-pastebin-configurator
%{_datadir}/nemo-python/extensions/nemo-pastebin.py
%{python3_sitelib}/nemo_pastebin-%{version}-py%{python3_version}.egg-info/
%{_datadir}/glib-2.0/schemas/nemo-pastebin.gschema.xml
%{_datadir}/nemo-pastebin/
%{_datadir}/icons/hicolor/*/apps/nemo-pastebin.*

#----------------------------------------------------------------

%package -n nemo-fileroller
Summary:     File Roller extension for Nemo
License:     GPLv2+
Requires:    nemo
Requires:    file-roller

%description -n nemo-fileroller
This package contains the file-roller extension for the Nemo.

%files -n nemo-fileroller
%doc nemo-fileroller/README
%license nemo-fileroller/COPYING
%{_libdir}/nemo/extensions-3.0/libnemo-fileroller.so

#----------------------------------------------------------------

%package -n nemo-python
Summary:     Python scripting extension for Nemo
License:     GPLv2+
Provides:    python3-nemo = %{EVRD}
Requires:    nemo
Requires:    python3-gobject

%description -n nemo-python
Python scripting extension for Nemo

%files -n nemo-python
%doc nemo-python/README
%doc nemo-python/examples
%license nemo-python/COPYING
%{_libdir}/nemo/extensions-3.0/libnemo-python.so
%{_datadir}/nemo-python/
%exclude %{_datadir}/nemo-python/extensions/*

#----------------------------------------------------------------

%package -n nemo-python-devel
Summary:     Python scripting extension for Nemo
License:     GPLv2+
Requires:    nemo-python%{?_isa} = %{EVRD}

%description -n nemo-python-devel
Python scripting extension for Nemo

%files -n nemo-python-devel
%{_libdir}/pkgconfig/nemo-python.pc

#----------------------------------------------------------------

%package -n nemo-terminal
Summary:     Embedded terminal window for Nemo
License:     GPLv3+
BuildArch:   noarch
Requires:    nemo
Requires:    vte291
Requires:    nemo-python = %{EVRD}

%description -n nemo-terminal
Embedded terminal window for Nemo

%files -n nemo-terminal
%doc nemo-terminal/README
%license nemo-terminal/COPYING
%{_bindir}/nemo-terminal-prefs
%{_datadir}/nemo-python/extensions/nemo_terminal.py
%{_datadir}/nemo-terminal/
%{_datadir}/glib-2.0/schemas/org.nemo.extensions.nemo-terminal.gschema.xml
%{python3_sitelib}/nemo_terminal-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------
%if %{with preview}

%package -n nemo-preview
Summary:     A quick previewer for Nemo
License:     GPLv2+
Requires:    nemo

%description -n nemo-preview
Nemo Preview is a GtkClutter and Javascript-based quick previewer
for Nemo.
It is capable of previewing documents, PDFs, sound and video files,
some text files, and possibly others in the future.

To activate the preview, left-click the file and hit space.
The preview can be closed by hitting space again, or escape.

%files -n nemo-preview -f nemo-preview.lang
%doc nemo-preview/README
%license nemo-preview/COPYING
%{_bindir}/nemo-preview
%{_libdir}/nemo-preview/
%{_libexecdir}/nemo-preview-start
%{_datadir}/nemo-preview/
%{_datadir}/dbus-1/services/org.nemo.Preview.service

%endif #/with preview
#----------------------------------------------------------------

%package -n nemo-emblems
Summary:     Emblem support for nemo
License:     GPLv3+
BuildArch:   noarch
Requires:    nemo
Requires:    nemo-python = %{EVRD}

%description -n nemo-emblems
Restores the emblems functionality that used to be in GNOME 2.

%files -n nemo-emblems
%license nemo-emblems/COPYING.GPL3
%{_datadir}/nemo-python/extensions/nemo-emblems.py
%{python3_sitelib}/nemo_emblems-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------

%package -n nemo-image-converter
Summary:     Nemo extension to mass resize images
Requires:    imagemagick
Requires:    nemo
License:     GPLv3+

%description -n nemo-image-converter
Adds a "Resize Images..." menu item to the context menu.
This opens a dialog where you set the desired image size and file name.

%files -n nemo-image-converter
%doc nemo-image-converter/README
%license nemo-image-converter/COPYING
%{_libdir}/nemo/extensions-3.0/libnemo-image-converter.so
%{_datadir}/nemo-image-converter/

#----------------------------------------------------------------

%package -n nemo-compare
Summary:     Context menu comparison extension for nemo
License:     GPLv3+
BuildArch:   noarch
Requires:    nemo
Requires:    nemo-python = %{EVRD}
Requires:    meld

%description -n nemo-compare
Context menu comparison extension for Nemo file manager.

%files -n nemo-compare
%{_bindir}/nemo-compare-preferences
%{_datadir}/nemo-python/extensions/nemo-compare.py
%{_datadir}/nemo-compare
%{python3_sitelib}/nemo_compare-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------

%package -n nemo-seahorse
Summary:     PGP encryption and signing for Nemo
License:     GPLv2+ and LGPLv2
Requires:    nemo
Requires:    seahorse

%description -n nemo-seahorse
Seahorse nemo is an extension for nemo which allows encryption
and decryption of OpenPGP files using GnuPG.

%files -n nemo-seahorse
%doc nemo-seahorse/{AUTHORS,COPYING,README,NEWS,ChangeLog}
%{_bindir}/nemo-seahorse-tool
%{_libdir}/nemo/extensions-3.0/libnemo-seahorse.so
%{_datadir}/applications/nemo-seahorse-pgp-*.desktop
%{_datadir}/glib-2.0/schemas/org.nemo.plugins.seahorse*gschema.xml
%{_datadir}/nemo-seahorse/
%{_mandir}/man1/nemo-seahorse-tool.1.*

#----------------------------------------------------------------

%prep
%autosetup -p1

%build
pushd nemo-audio-tab
%py3_build
popd

pushd nemo-pastebin
%py3_build
popd

pushd nemo-fileroller
%meson
%meson_build
popd

pushd nemo-python
%meson
%meson_build
popd

pushd nemo-terminal
%py3_build
popd

%if %{with preview}
pushd nemo-preview
%meson
%meson_build
popd
%endif

pushd nemo-emblems
%py3_build
popd

pushd nemo-image-converter
%meson
%meson_build
popd

pushd nemo-compare
%py3_build
popd

pushd nemo-seahorse
%meson
%meson_build
popd 

%install
pushd nemo-audio-tab
%py3_install
popd

pushd nemo-pastebin
%py3_install
popd

pushd nemo-fileroller
%meson_install
popd

pushd nemo-python
%meson_install
popd

pushd nemo-terminal
%py3_install
popd

%if %{with preview}
pushd nemo-preview
%meson_install
popd
%endif

pushd nemo-emblems
%py3_install
popd

pushd nemo-image-converter
%meson_install
popd

pushd nemo-compare
%py3_install
popd

pushd nemo-seahorse
%meson_install
popd 

rm -rf %{buildroot}/%{_datadir}/doc/nemo-python/

desktop-file-install                                    \
 --delete-original                                      \
 --dir=%{buildroot}%{_datadir}/applications             \
 %{buildroot}/%{_datadir}/applications/nemo-seahorse-pgp-*.desktop

%if %{with preview}
%find_lang nemo-preview
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3568 |21cr|nemu-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %nil

Summary:        Ncurses interface for QEMU
Name:           nemu
Version:        3.1.0
Release:        1
License:        GPLv2+
Group:          Monitoring
Url:            https://lib.void.so/nemu/
Source0:        https://github.com/nemuTUI/nemu/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(spice-protocol)
BuildRequires:	graphviz-devel
BuildRequires:	cmake
BuildRequires:	gettext-devel
BuildRequires:	ncurses-devel
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(udev)
BuildRequires:  pkgconfig(libarchive)
BuildRequires:  pkgconfig(json-c)
Requires:	qemu


%description
ncurses interface for QEMU

%prep
%autosetup -n %{name}-%{version}

%build
%set_build_flags
%cmake -DNM_WITH_SPICE=ON -DNM_WITH_OVF_SUPPORT=ON -DNM_WITH_NETWORK_MAP=ON
%make_build

%install
%make_install -C build
mkdir -p %{buildroot}/%{_sysconfdir}/udev/rules.d/
mv %{buildroot}%{_datadir}/%{name}/scripts/42-net-macvtap-perm.rules %{buildroot}/%{_sysconfdir}/udev/rules.d/

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/%{name}
%{_bindir}/ntty
%{_sysconfdir}/udev/rules.d/*.rules
%{_datadir}/%{name}/scripts/setup_nemu_nonroot.sh
%{_datadir}/%{name}/scripts/upgrade_db.sh
%{_datadir}/%{name}/templates/config/nemu.cfg.sample
%{_datadir}/%{name}/scripts/nemu.bash
%{_datadir}/bash-completion/completions/nemu
%{_mandir}/man1/nemu.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3569 |21cr|neofetch-7.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Neofetch - утилита для вывода информации об ОС в консоли
Summary:	Neofetch is a CLI system information tool written in BASH
Name:		neofetch
Version:	7.1.0
Release:	5
License:	MIT
Group:		Shells
Url:		https://github.com/dylanaraps/neofetch
Source0:	https://github.com/dylanaraps/neofetch/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		0001-Add-MOS-logo.patch
BuildArch:	noarch

%description
Neofetch is a CLI system information tool written in BASH. 
Neofetch displays information about your system next to an 
image, your OS logo, or any ascii file of your choice. 

%description -l ru_RU.UTF-8
Neofetch - консольная утилита для вывода информации об
операционной системе, написанная на BASH. Neofetch выводит
информацию рядом с изображением, логотипом системы или
ASCII-файлом на ваш выбор.

%files
%license LICENSE.md
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#--------------------------------------------------------

%prep
%autosetup -p1

%build
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3570 |21cr|neonview-0.8.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple, minimalist and lightweight image viewer for the Linux platform
Name:		neonview
Version:	0.8.2
Release:	5
License:	GPLv2+
Group:		Graphics
Url:		http://www.tuxarena.com/intro/neonview.php
Source0:	http://www.tuxarena.com/intro/files/%{name}-%{version}-src.tar.gz
Patch0:		neonview-0.8.2-makefile.patch
BuildRequires:	pkgconfig(gtk+-x11-3.0)

%description
NeonView is a simple, minimalist and lightweight image viewer for the Linux
platform, written in C and GTK, completely free and open-source. The goal
of NeonView is to stay lightweight while also providing ease of use and only
the necessary features a basic image viewer should have. NeonView supports
a bunch of image formats, and it will remember settings like fit to window
images between sessions or lock fit to window for the current session. Basic
manipulation functions like zooming or rotating are also available.

%files
%{_bindir}/neonview

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-src
%patch0 -p1

%build
%setup_compile_flags
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{name} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3571 |21cr|neovim-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# comment out if not nightly build
#define nightly	20180604
#define gitcommit cf92a76

# build will override this anyway, so let's skip it
%define _fortify_cflags %nil

%define luaver	5.3

Name:		neovim
Version:	0.9.0
Release:	1
Summary:	Vim-fork focused on extensibility and usability
Group:		Editors
License:	ASL 2.0
URL:		https://neovim.io/
%if 0%{?nightly:1}
Source0:	https://github.com/neovim/neovim/archive/nightly/%{name}-%{version}-nightly%{nightly}.tar.gz
%else
Source0:	https://github.com/neovim/neovim/archive/v%{version}/%{name}-%{version}.tar.gz
%endif
BuildRequires:	cmake
BuildRequires:	gperf
BuildRequires:	luajit
BuildRequires:	luajit-lpeg
BuildRequires:	luajit-mpack
BuildRequires:	lua-lpeg
BuildRequires:	lua-mpack
BuildRequires:	ninja
BuildRequires:	lua-devel >= %{luaver}
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(libuv)
BuildRequires:	pkgconfig(msgpack)
BuildRequires:	pkgconfig(unibilium)
BuildRequires:	pkgconfig(termkey)
BuildRequires:	pkgconfig(vterm)
BuildRequires:	pkgconfig(jemalloc)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(tree-sitter)
BuildRequires:	pkgconfig(libluv)
Requires:	%{name}-data >= %{EVRD}
Provides:	nvim = %{EVRD}
Recommends:	xsel
Recommends:	pythonegg(neovim)
Recommends:	python3egg(pynvim)
Recommends:	npm(neovim)

%description
Neovim is a project that seeks to aggressively refactor Vim in order to:

- Simplify maintenance and encourage contributions
- Split the work between multiple developers
- Enable advanced UIs without modifications to the core
- Maximize extensibility

%package data
Summary:	Data files for %{name}
BuildArch:	noarch

%description data
Data files for %{name}.

%prep
%setup -qn %{name}-%{?nightly:nightly}%{?!nightly:%{version}}
%autopatch -p1

#sed -i "s|sys/end|bsd/sys/end|g" config/CMakeLists.txt

%build
export HOSTNAME=abf.rosalinux.ru
%cmake	-GNinja \
	-DPREFER_LUA=OFF \
    -DCMAKE_BUILD_TYPE=Release \
	-DUSE_BUNDLED_LUAJIT=OFF \
	-DUSE_BUNDLED=OFF \
	-DLUA_PRG=%{_bindir}/luajit

%ninja_build

%install
%ninja_install -C build

%find_lang nvim

%check
./build/bin/nvim --version
./build/bin/nvim --headless -u NONE -i NONE -c ':quit'

%files
%license LICENSE.txt
%doc BACKERS.md CONTRIBUTING.md README.md
%{_bindir}/nvim
%{_mandir}/man1/nvim.1*
%{_iconsdir}/hicolor/*/apps/nvim.png
%{_datadir}/applications/nvim.desktop

%files data -f nvim.lang
%{_datadir}/nvim/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3572 |21cr|nerdtree-4.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global vimfiles %{_datadir}/vim/vimfiles

Name:           nerdtree
Version:        4.2.0
Release:        5
Summary:        A tree explorer plugin for the editor Vim
Group:          Development/Tools

License:        WTFPL
URL:            http://www.vim.org/scripts/script.php?script_id=1658
Source0:        https://github.com/scrooloose/%{name}/tarball/%{version}
Patch0:         vim-%{name}-Deactivating-folds-in-NERDtree-buffer.patch

Requires:       vim-common
Requires(post): vim
Requires(postun): vim

BuildArch:      noarch

%description
The NERD tree allows you to explore your filesystem and to open files and
directories. It presents the filesystem to you in the form of a tree which
you manipulate with the keyboard and/or mouse. It also allows you
to perform simple filesystem operations.

%prep
%setup -q -n scrooloose-%{name}-205367a
%autopatch -p1

%build


%install
mkdir -p %{buildroot}%{vimfiles}
cp -ar {doc,nerdtree_plugin,plugin,syntax} %{buildroot}%{vimfiles}

%post
vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null

%postun
rm %{vimfiles}/doc/tags
vim -c ":helptags %{vimfiles}/doc" -c :q &> /dev/null


%files
%doc README.markdown
%doc %{vimfiles}/doc/*
%{vimfiles}/nerdtree_plugin/
%{vimfiles}/plugin/*
%{vimfiles}/syntax/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3573 |21cr|neru-icon-classic-theme-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Classic theme icons Neru for ROSA
Name:		neru-icon-classic-theme
Version:	2.7
Release:	1
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/neru-icon-classic-theme/
Source0:	https://github.com/chistota/neru-icon-classic-theme/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires(post,postun):	gtk-update-icon-cache
Conflicts:	neru-icon-classic-theme-dark <= 2.0
Conflicts:	neru-icon-classic-theme-dark-gray <= 2.0
Conflicts:	neru-icon-classic-theme-dark-green <= 2.0
Conflicts:	neru-icon-classic-theme-dark-red <= 2.0
Conflicts:	neru-icon-classic-theme-dark-yellow <= 2.0
Conflicts:	neru-icon-classic-theme-light <= 2.0
Conflicts:	neru-icon-classic-theme-light-gray <= 2.0
Conflicts:	neru-icon-classic-theme-light-green <= 2.0
Conflicts:	neru-icon-classic-theme-light-ray <= 2.0
Conflicts:	neru-icon-classic-theme-light-yellow <= 2.0

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%{_iconsdir}/neru-classic-dark
%{_iconsdir}/neru-classic-dark-gray
%{_iconsdir}/neru-classic-dark-green
%{_iconsdir}/neru-classic-dark-red
%{_iconsdir}/neru-classic-dark-yellow
%{_iconsdir}/neru-classic-light
%{_iconsdir}/neru-classic-light-gray
%{_iconsdir}/neru-classic-light-green
%{_iconsdir}/neru-classic-light-red
%{_iconsdir}/neru-classic-light-yellow

%post
%update_icon_cache neru-classic-dark
%update_icon_cache neru-classic-dark-gray
%update_icon_cache neru-classic-dark-green
%update_icon_cache neru-classic-dark-red
%update_icon_cache neru-classic-dark-yellow
%update_icon_cache neru-classic-light
%update_icon_cache neru-classic-light-gray
%update_icon_cache neru-classic-light-green
%update_icon_cache neru-classic-light-red
%update_icon_cache neru-classic-light-yellow

%postun
%update_icon_cache neru-classic-dark
%update_icon_cache neru-classic-dark-gray
%update_icon_cache neru-classic-dark-green
%update_icon_cache neru-classic-dark-red
%update_icon_cache neru-classic-dark-yellow
%update_icon_cache neru-classic-light
%update_icon_cache neru-classic-light-gray
%update_icon_cache neru-classic-light-green
%update_icon_cache neru-classic-light-red
%update_icon_cache neru-classic-light-yellow

%prep
%setup -q

%build

%install
find . -type f -exec chmod 0644 {} \;
find . -type d -exec chmod 0755 {} \;
install -d %{buildroot}%{_iconsdir}/
cp -R */ %{buildroot}%{_iconsdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3574 |21cr|neru-icon-newyear-theme-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define afeast	newyear

Summary:	Christmas theme icons Neru for ROSA
Name:		neru-icon-newyear-theme
Version:	1.0
Release:	1
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/neru-icon-newyear-theme/
Source0:	https://github.com/chistota/neru-icon-newyear-theme/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md

#----------------------------------------------------------------------------

%package -n	%{name}-light
Summary:	Icon theme by RamilSadrlimanov@ro_spo for light desktop
Group:		Graphical desktop/Other

%description -n %{name}-light
Классический набор иконок для светлых тем.

%files -n %{name}-light
%doc neru-newyear-light/{AUTHORS,LICENSE}
%dir %{_iconsdir}/neru-newyear-light
%{_iconsdir}/neru-newyear-light/*

#----------------------------------------------------------------------------

%package -n	%{name}-dark
Summary:	Icon theme by RamilSadrlimanov@ro_spo for dark desktop
Group:		Graphical desktop/Other

%description -n %{name}-dark
Классический набор иконок для тёмных тем.

%files -n %{name}-dark
%doc neru-newyear-dark/{AUTHORS,LICENSE}
%dir %{_iconsdir}/neru-newyear-dark
%{_iconsdir}/neru-newyear-dark/*
#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_iconsdir}/
cp -R ./neru-newyear-dark ./neru-newyear-light %{buildroot}%{_iconsdir}/

#Save docs
cp ./{AUTHORS,LICENSE} ./neru-newyear-light/
cp ./{AUTHORS,LICENSE} ./neru-newyear-dark/

# Delete .directory
rm -f %{buildroot}%{_iconsdir}/.directory
rm -f %{buildroot}%{_iconsdir}/*/*/*/.directory

find %{buildroot} -type l | grep -v svg && Need to fix dirs
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3575 |21cr|nestopia-1.51.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A portable Nintendo Entertainment System emulator
Name:		nestopia
Version:	1.51.1
Release:	4
License:	GPLv2+
Group:		Emulators
Url:		http://0ldsk00l.ca/nestopia.html
Source0:	https://github.com/0ldsk00l/nestopia/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		nestopia-1.51.0-fix-configure.patch
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)

%description
NEStopia is a portable Nintendo Entertainment System emulator written in C++ 
by Martin Freij and ported to Linux by R. Belmont.

NEStopia strives for the most accurate emulation possible at the 
pixel-by-pixel and sample-by-sample level, and it has excellent mapper 
and UNIF board support as well.

A few features:
- Supports .nes, .unf/.unif, and XML format ROMs, including Vs. and 
 Playchoice 10 games
- Supports .fds discs (a file named diskrom.sys is needed for this feature)
- Supports .nsf music rips
- All supported files can be extracted from zip or 7zip containers (an 
 archive browser is not yet included - this assumes the common GoodSet case 
 of one zip or 7zip per game)
- Supports save states
- Supports movie recordings
- Supports the “rewinder” - if you make a bad jump and screw up your 
 game, press Backspace and the game will run in reverse. Press \ to take over 
 again and try to fix your mistake.
- Friendly GUI configuration
- Autodetection of PAL and NTSC format games
- Supports drag and drop of compatible games and music rips from modern Linux 
 file managers, including KDE’s Konqueror and GNOME’s Nautilus.

%files
%doc README.md
%{_bindir}/nestopia
%{_datadir}/nestopia
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/mandriva-nestopia.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure2_5x
%make PREFIX=%{_prefix}

%install
# binary
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 nestopia %{buildroot}%{_bindir}/

# data files
install -d -m 755 %{buildroot}%{_datadir}/nestopia
install -m 644 NstDatabase.xml %{buildroot}%{_datadir}/nestopia/
install -d -m 755 %{buildroot}%{_datadir}/nestopia/icons
install -m 644 icons/svg/nespad.svg %{buildroot}%{_datadir}/nestopia/icons/

# icons
for N in 32 48 64 96 128;
do
install -D icons/${N}/%{name}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# xdg menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-nestopia.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=NEStopia
Comment=%{summary}
Exec=nestopia -e
Icon=nestopia
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3576 |21cr|net6-1.3.14-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.3
%define major 0
%define libname %mklibname net6- %{api} %{major}
%define devname %mklibname net6- %{api} -d

Summary:	A library to ease the development of network-based applications
Name:		net6
Version:	1.3.14
Release:	6
License:	GPLv2+
Group:		System/Libraries
Url:		http://gobby.0x539.de/
Source0:	http://releases.0x539.de/%{name}/%{name}-%{version}.tar.gz
Patch0:		net6-1.3.14-drop-deprecated-gnutls-call.patch
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(sigc++-2.0)

%description
net6 is a library which eases the development of network-based applications
as it provides a TCP protocol abstraction for C++. It is portable to both
the Windows and Unix-like platforms.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library to ease the development of network-based applications
Group:		System/Libraries

%description -n %{libname}
net6 is a library which eases the development of network-based applications
as it provides a TCP protocol abstraction for C++. It is portable to both
the Windows and Unix-like platforms.

%files -n %{libname}
%doc ChangeLog README NEWS AUTHORS
%{_libdir}/libnet6-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Development files, header and includes for %{name}.

net6 is a library which eases the development of network-based applications
as it provides a TCP protocol abstraction for C++. It is portable to both
the Windows and Unix-like platforms.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static
%make

%install
%makeinstall_std
# remove translation, do not know where to place it
rm -Rf %{buildroot}%{_datadir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3577 |21cr|netacct-mysql-0.78-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Network traffic accounting daemon
Name:		netacct-mysql
Version:	0.78
Release:	17
License:	GPL
Group:		System/Servers
URL:		http://netacct-mysql.gabrovo.com/
Source0:	http://netacct-mysql.gabrovo.com/download/%{name}-%{version}.tar.bz2
Patch0:		%{name}-initscript.patch
Patch1:		netacct-mysql-lib64_shared.diff
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires:	mysql-devel
BuildRequires:	libpcap-devel >= 0.7
BuildRequires:	automake
BuildRequires:	autoconf2.5
BuildRequires:	chrpath

%description
Traffic Accounting Daemon with mysql support Network traffic
accounting daemon which stores data in mysql. Support for per hour
statistics, peering/international traffic accounting.

%prep

%setup -q
%patch0 -p0
%patch1 -p0

%build
rm -f configure
libtoolize --copy --force; aclocal; automake --add-missing --copy; autoconf --force

export LIBS="$LIBS -L%{_libdir} -lmysqlclient"

%configure \
    --with-mysql=%{_prefix}

%make

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

%makeinstall_std

install -d %{buildroot}%{_initrddir}
install -m0755 contrib/nacctd.redhat %{buildroot}%{_initrddir}/%{name}

# nuke rpath
chrpath -d %{buildroot}%{_sbindir}/nacctd

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS FAQ INSTALL NEWS README* TODO netacct.sql contrib/nacctpeering.*
%attr(0755,root,root) %{_initrddir}/%{name}
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/nacctpeering
%attr(644,root,root) %config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/naccttab
%{_mandir}/man8/nacctd.8*
%{_mandir}/man8/nacctpeering.8*
%{_sbindir}/nacctd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3578 |21cr|netatalk-3.1.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 18
%define	libname %mklibname atalk %{major}
%define	devname %mklibname atalk -d

Summary:	Appletalk and Appleshare/IP services for Linux
Name:		netatalk
Version:	3.1.12
Release:	2
License:	BSD
Group:		System/Servers
Url:		http://netatalk.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		netatalk-3.1.12-no_libdir.patch
Patch1:		netatalk-multiple-definitions.patch 
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	docbook-style-xsl
BuildRequires:	libtool
# FIXME: Find why quota support does not get enabled
BuildRequires:	quota
BuildRequires:	attr-devel
BuildRequires:	avahi-common-devel
BuildRequires:	cracklib-devel
BuildRequires:	cups-devel
BuildRequires:	db-devel
BuildRequires:	libtool-devel
BuildRequires:	openldap-devel
BuildRequires:	openslp-devel
BuildRequires:	pam-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(avahi-client) >= 0.6
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libacl)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libgcrypt) => 1.2.3
BuildRequires:	pkgconfig(openssl)
Requires:	groff-perl
Requires:	openssl
Requires:	tetex-dvips
Requires(post,preun,postun):	rpm-helper
Conflicts:	podracer

%description
netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
systems. The current release contains support for Ethertalk Phase I and II,
DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).

Note: The default configuration disables both guest accounts and plain-text
      passwords. To enable these options, review the configuration file
      %{_sysconfdir}/afpd.conf. Service Location Protocol is also disabled,
      remove "-noslp" in the above file and install openslp if you want use
      it.

%files
%doc CONTRIBUTORS COPYING COPYRIGHT NEWS
%dir %{_var}/spool/%{name}
%dir %{_var}/lib/%{name}
%dir %{_var}/lib/%{name}/CNID
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/msg
%dir %{_libdir}/%{name}/uams
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/%{name}-dbus.conf
 #config(noreplace) %%{_sysconfdir}/%%{name}/Apple*
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%attr(0755,root,root) %{_libdir}/%{name}/uams/*.so
%{_unitdir}/%{name}.service
#{_libdir}/%%{name}/%%{name}.sh
%{_bindir}/ad
%{_bindir}/afpldaptest
%{_bindir}/afppasswd
%{_bindir}/afpstats
%{_bindir}/apple_dump
%{_bindir}/asip-status.pl
%{_bindir}/cnid2_create
%{_bindir}/dbd
%{_bindir}/macusers
%{_sbindir}/afpd
%{_sbindir}/cnid_dbd
%{_sbindir}/cnid_metad
%{_sbindir}/%{name}
%{_mandir}/man[158]/*
# Those are in the devel package
%exclude %{_bindir}/%{name}-config
%exclude %{_mandir}/man1/%{name}-config.1*

%post
systemctl daemon-reload >/dev/null 2>&1 || :
# after the first install only
if [ "$1" = 1 ]; then
	# add the ddp lines to /etc/services
	if (grep '[0-9][0-9]*/ddp' /etc/services >/dev/null); then
		cat <<'_EOD1_' >&2
warning: The DDP services appear to be present in /etc/services.
warning: Please check them against services.atalk in the documentation.
_EOD1_
		true
	else
		cat <<'_EOD2_' >>/etc/services
# start of DDP services
#
# Everything between the 'start of DDP services' and 'end of DDP services'
# lines will be automatically deleted when the netatalk package is removed.
#
rtmp		1/ddp		# Routing Table Maintenance Protocol
nbp		2/ddp		# Name Binding Protocol
echo		4/ddp		# AppleTalk Echo Protocol
zip		6/ddp		# Zone Information Protocol

afpovertcp	548/tcp		# AFP over TCP
afpovertcp	548/udp
# end of DDP services
_EOD2_
	fi
fi

%preun
if [ "$1" = "0" ] ; then
	systemctl disable netatalk.service > /dev/null 2>&1 || :
	systemctl stop netatalk.service > /dev/null 2>&1 || :
fi

%postun
systemctl daemon-reload >/dev/null 2>&1 || :
# do only for the last un-install
if [ "$1" = 0 ]; then
	# remove the ddp lines from /etc/services
	if (grep '^# start of DDP services$' /etc/services >/dev/null && \
	    grep '^# end of DDP services$'   /etc/services >/dev/null ); then
	  sed -e '/^# start of DDP services$/,/^# end of DDP services$/d' \
	    </etc/services >/etc/services.tmp$$
	  cat /etc/services.tmp$$ >/etc/services
	  rm /etc/services.tmp$$
	else
	  cat <<'_EOD3_' >&2
warning: Unable to find the lines `# start of DDP services` and
warning: `# end of DDP services` in the file /etc/services.
warning: You should remove the DDP services from /etc/services manually.
_EOD3_
	fi
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for Appletalk and Appleshare/IP services for Linux
Group:		System/Libraries
Requires:	tcp_wrappers

%description -n %{libname}
netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
systems. The current release contains support for Ethertalk Phase I and II,
DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).

This package provides the shared atalk library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libatalk.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the atalk library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
netatalk is an implementation of the AppleTalk Protocol Suite for Unix/Linux
systems. The current release contains support for Ethertalk Phase I and II,
DDP, RTMP, NBP, ZIP, AEP, ATP, PAP, ASP, and AFP. It provides Appletalk file
printing and routing services on Solaris 2.5, Linux, FreeBSD, SunOS 4.1 and
Ultrix 4. It also supports AFP 2.1 and 2.2 (Appleshare IP).

This package contains the static atalk library and its header files.

%files -n %{devname}
%doc COPYING COPYRIGHT NEWS
%{_bindir}/%{name}-config
%{_mandir}/man1/%{name}-config.1*
%{_libdir}/libatalk.so
%dir %{_includedir}/atalk
%{_includedir}/atalk/*.h
%{_datadir}/aclocal/%{name}.m4

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

#(sb) Breaks autoconf
rm -fr autom4te.cache

# Fix perms
chmod -x include/atalk/fce_api.h


%build
%serverbuild

libtoolize --copy --force; aclocal -I macros; autoconf; automake -a -c --foreign

export PKGLIBDIR=%{_libdir}/%{name}
export LD_PRELOAD=
export CFLAGS="%{optflags} -fomit-frame-pointer -fsigned-char"
%configure \
	--libexecdir="%{_libdir}" \
	--localstatedir="%{_var}/lib" \
	--with-pkgconfdir="%{_sysconfdir}/%{name}" \
	--enable-shared \
	--disable-static \
	--disable-rpath \
	--with-uams-path="%{_libdir}/%{name}/uams" \
	--with-ssl-dir="%{_prefix}" \
	--with-cracklib \
	--with-pam \
	--with-shadow \
	--enable-pgp-uam \
	--enable-krbV-uam \
	--enable-dropkludge=no \
	--disable-shell-check \
	--enable-srvloc \
	--with-gnu-ld \
	--with-ldap \
	--with-acls \
	--with-libevent=no \
	--with-init-style=redhat-systemd \
	--with-init-dir="%{_unitdir}" \
	--with-docbook="%{_datadir}/sgml/docbook/xsl-stylesheets"

%make all


%install
%makeinstall_std
install -d %{buildroot}%{_libdir}/%{name}/msg
install -d %{buildroot}%{_var}/spool/%{name}

# (sb) Change example config for guest accounts to disallow cleartext passwords
cat >> %{buildroot}%{_sysconfdir}/%{name}/afpd.conf << EOF
# config to allow guest logins, cleartext passwords:
# - -transall -uamlist uams_guest.so,uams_clrtxt.so,uams_dhx.so -nosavepassword
# default config with no guest logins, no cleartext passwords
# Service Location Protocol is disabled also, to enable remove -noslp and 
# install openslp and run the slpd service
- -transall -uamlist uams_dhx.so -nosavepassword -noslp
EOF

# Clean up installed but useless files
rm -f %{buildroot}%{_var}/lib/%{name}/README
rm -f %{buildroot}%{_var}/lib/%{name}/CNID/README

#set python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/afpstats

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3579 |21cr|netcdf-devel-3.6.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Restored in contrib, need for build some project, ex. kst

%define name netcdf-devel%{?fortran:-%{fortran}}

%define fortrancomp gfortran
%define isstdfortran %{?fortran:1}%{?!fortran:0}
%define foptflags %optflags

%if %{?_with_pgf:1}%{?!_with_pgf:0}
%define fortrancomp pgf90
%define fortran pgf
%define foptflags
%endif

%if %{?_with_g95:1}%{?!_with_g95:0}
%define fortrancomp g95
%define fortran g95
%endif

%if %{?_with_nag:1}%{?!_with_nag:0}
%define fortrancomp f95
%define fortran nag
%endif

Summary:	Libraries to use the Unidata network Common Data Form (netCDF)
Name:		%{name}
Version:	3.6.3
Release:	10
Group:		Development/C
License:	distributable (see COPYRIGHT)
Url:		http://www.unidata.ucar.edu/packages/netcdf/index.html
Source0:	ftp://ftp.unidata.ucar.edu/pub/netcdf/netcdf-%{version}.tar.gz
Source1:	ftp://ftp.unidata.ucar.edu/pub/netcdf/guidec.pdf.bz2
Source2:	ftp://ftp.unidata.ucar.edu/pub/netcdf/guidec.html.tar.bz2
Patch0:		netcdf-3.6.3-wformat.patch
BuildRequires:	gcc-gfortran
BuildRequires:	flex
BuildRequires:	texinfo
%if %{?fortran:1}%{?!fortran:0}
Requires:	netcdf-devel >= %{version}
%endif

%description
NetCDF (network Common Data Form) is an interface for array-oriented data
access and a freely-distributed collection of software libraries for C, 
Fortran, C++, and perl that provides an implementation of the interface.
The netCDF library also defines a machine-independent format for representing
scientific data. Together, the interface, library, and format support the 
creation, access, and sharing of scientific data. The netCDF software was 
developed at the Unidata Program Center in Boulder, Colorado.

NetCDF data is:	

   o Self-Describing. A netCDF file includes information about the data it
     contains. 

   o Network-transparent. A netCDF file is represented in a form that can be 
     accessed by computers with different ways of storing integers, characters,
     and floating-point numbers. 

   o Direct-access. A small subset of a large dataset may be accessed 
     efficiently, without first reading through all the preceding data. 

   o Appendable. Data can be appended to a netCDF dataset along one dimension 
     without copying the dataset or redefining its structure. The structure of 
     a netCDF dataset can be changed, though this sometimes causes the dataset 
     to be copied. 

   o Sharable. One writer and multiple readers may simultaneously access the 
     same netCDF file. 

This package can be build with another fortran compiler than gfortran.
You can use rpm --rebuild with one of:
  --with pgf
  --with g95
  --with nag (warning:	gfortran is also installed as f95 so it's conflict
	      with nag fortran )

%if %{isstdfortran}
This netcdf has been built with %{fortran}
%endif


%prep
%setup -qn  netcdf-%{version}
perl -pi -e "/^LIBDIR/ and s/\/lib/\/%_lib/g" src/macros.make.*
%patch0 -p0 -b .wformat

%build
export F77=%{fortrancomp}
export FC=%{fortrancomp}
export F90=%{fortrancomp}
export FFLAGS=-fPIC
export FCFLAGS=-fPIC
export F90FLAGS=-fPIC
export CFLAGS="%optflags -DpgiFortran -fPIC"
export CPPFLAGS="%optflags -DpgiFortran -fPIC"
export CXXFLAGS="%optflags -DpgiFortran -fPIC"
%if %{?_with_g95:1}%{?!_with_g95:0}
export CPPFLAGS="-DNDEBUG -Df2cFortran"
export CFLAGS="$RPM_OPT_FLAGS -fno-fast-math -Df2cFortran -fPIC"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-fast-math -Df2cFortran -fPIC"
%endif
%if %{?_with_nag:1}%{?!_with_nag:0}
export CPPFLAGS="-DNDEBUG -DNAGf90Fortran"
export CFLAGS="$RPM_OPT_FLAGS -fno-fast-math -DNAGf90Fortran -fPIC"
export CXXFLAGS="$RPM_OPT_FLAGS -fno-fast-math -DNAGf90Fortran -fPIC"
%endif

%configure
make

%install
mkdir -p %{buildroot}/%{_prefix} %{buildroot}%{_mandir}
%makeinstall

%if %{?fortran:1}%{?!fortran:0}
mv %{buildroot}%{_libdir}/libnetcdf.a %{buildroot}%{_libdir}/libnetcdf-%{fortran}.a
(cd %{buildroot}%{_includedir}
 mkdir  %{fortran}
 mv netcdf.mod %{fortran}/netcdf.mod
 mv typesizes.mod %{fortran}/typesizes.mod
 rm %{buildroot}/%{_bindir}/*
 rm %{buildroot}/%{_libdir}/libnetcdf_c++.a
 rm -rf %{buildroot}/%{_mandir}
 rm %{buildroot}%{_includedir}/*
)
%endif

bzcat %{SOURCE1} > guidec.pdf
bzcat %{SOURCE2} | tar xvf -

%files
%{_libdir}/*.a
%{_infodir}/netcdf-c.info.*
%{_infodir}/netcdf-cxx.info.*
%{_infodir}/netcdf-install.info.*
%{_infodir}/netcdf-tutorial.info.*
%{_infodir}/netcdf.info.*
%if %{?fortran:0}%{?!fortran:1}
%doc README RELEASE_NOTES guidec.pdf guidec
%{_bindir}/ncgen
%{_bindir}/ncdump
%{_infodir}/netcdf-f77.info.*
%{_infodir}/netcdf-f90.info.*
%{_mandir}/man1/ncgen.1*
%{_mandir}/man1/ncdump.1*
%{_mandir}/man3/netcdf.3*
%{_mandir}/man3/netcdf_f77.3.*
%{_mandir}/man3/netcdf_f90.3.*
%endif
%if %{isstdfortran}
%dir %{_includedir}/%{fortran}
%{_includedir}/%{fortran}/*
%else
%{_includedir}/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3580 |21cr|netdiscover-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta beta7
%define rev r118

Summary:	A network address discovering tool
Name:		netdiscover
Version:	0.7
Release:	1
License:	GPLv3+
Group:		Networking/Other
Url:		https://github.com/netdiscover-scanner/netdiscover/
Source0:	https://github.com/netdiscover-scanner/netdiscover/archive/v%{version}tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	dos2unix
BuildRequires:	libtool
BuildRequires:	wget
BuildRequires:	libnet-devel >= 1.1.3
BuildRequires:	pcap-devel

%description
Netdiscover is a network address discovering tool, developed mainly for those
wireless networks without dhcp server, but it also works on hub/switched
networks. Its based on arp requests, it will send arp requests and sniff for
replies.

%files
%doc AUTHORS ChangeLog NEWS README TODO
%{_sbindir}/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#LC_ALL=C sh update-oui-database.sh
autoreconf -fi
%configure
%make

%install
%makeinstall_std

# cleanup
rm -rf %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3581 |21cr|netgen-6.2.2301-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%global __requires_exclude devel\\(libTogl.*\\(.*\\)\\)

%define major 0
%define libngcore %mklibname ngcore %{major}
%define libnglib %mklibname nglib %{major}
%define libnggui %mklibname nggui %{major}
%define devname %mklibname %{name} -d

Name:		netgen
Group:		Sciences/Physics
Version:	6.2.2301
Release:	1
Summary:	Automatic 3d tetrahedral mesh generator
License:	GPL
URL:		https://github.com/NGSolve/netgen
Source0:	https://github.com/NGSolve/netgen/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch2:		netgen-versioning.patch
Patch3:		netgen-not-build-togl.patch
BuildRequires:	cmake
BuildRequires:	git
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	opencascade
BuildRequires:	opencascade-devel
BuildRequires:	openmpi-devel
BuildRequires:	metis-devel
BuildRequires:	tcl-devel
BuildRequires:	tk-devel
BuildRequires:	togl >= 2.1
BuildRequires:	python3egg(pybind11)
BuildRequires:	python3-mpi4py-devel
Requires:	tix
ExcludeArch:	%{ix86}

%description
NETGEN is an automatic 3d tetrahedral mesh generator. It accepts input from
constructive solid geometry (CSG) or boundary representation (BRep) from STL
file format. The connection to a geometry kernel allows the handling of IGES
and STEP files. NETGEN contains modules for mesh optimization and hierarchical
mesh refinement. Netgen is open source based on the LGPL license. It is
available for Unix/Linux and Windows.

NETGEN was developed mainly by Joachim Schöberl within project grants from
the Austrian Science Fund FWF ( Special Research Project "Numerical and
Symbolic Scientific Computing", Start Project "hp-FEM) at the Johannes
Kepler University Linz. Significant contributions were made by Johannes
Gerstmayr (STL geometry) Robert Gaisbauer (OpenCascade interface).

%files
%doc README* doc/*.pdf NEWS AUTHORS CONTRIBUTING*
%license LICENSE
%{_bindir}/*
%{_includedir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{python3_sitearch}/netgen
%{python3_sitearch}/pyngcore

#------------------------------------------------------------------
%package -n %{libngcore}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libngcore}
%{name} shared library.

%files -n %{libngcore}
%{_libdir}/libngcore.so.%{major}*

#------------------------------------------------------------------
%package -n %{libnglib}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libnglib}
%{name} shared library.

%files -n %{libnglib}
%{_libdir}/libnglib.so.%{major}*

#------------------------------------------------------------------
%package -n %{libnggui}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libnggui}
%{name} shared library.

%files -n %{libnggui}
%{_libdir}/libnggui.so.%{major}*

#------------------------------------------------------------------
%package devel
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{libnglib} = %{EVRD}
Requires:	%{libngcore} = %{EVRD}
Requires:	%{libnggui} = %{EVRD}
Requires:	togl >= 2.1
Provides:	%{name}-devel = %{EVRD}

%description devel
%{name} development files.

%files devel
%{_includedir}/*.h
%{_libdir}/cmake/%{name}
%{_libdir}/*.so

#------------------------------------------------------------------
%prep
%autosetup -p1

%build
%cmake \
	-DNG_INSTALL_DIR_LIB=%{_libdir} \
	-DNG_INSTALL_DIR_CMAKE=%{_libdir}/cmake/%{name} \
	-DLIBTOGL=%{_libdir}/libTogl2.1.so \
	-DUSE_BUFFERS=ON \
	-DUSE_GUI=ON \
	-DUSE_PYTHON=ON \
	-DUSE_MPI=ON \
	-DUSE_MPI4PY=ON \
	-DUSE_OCC=ON \
	-DUSE_JPEG=OFF \
	-DUSE_MPEG=OFF \
	-DUSE_SUPERBUILD=OFF \
	-DPREFER_SYSTEM_PYBIND11=ON

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3582 |21cr|nethack-3.4.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nethack
Version:	3.4.3
Release:	7
Summary:	A roguelike dungeon exploration game

Group:		Games/Adventure
License:	Nethack GPL
URL:		http://www.nethack.org
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-343-src.tgz
# Nethack Linux settings/defines
Patch0:		nethack-settings.patch
# HP monitor, patch from http://www.netsonic.fi/~walker/nh/hpmon.diff 
# Some parts adapted from Debian's patch
Patch1: 	nethack-enh-hpmon.patch
# "Paranoid hit" patch by Joshua Kwan <joshk@triplehelix.org>
# heavily edited from http://www.netsonic.fi/~walker/nh/paranoid-343.diff
# originally by  David Damerell, Jonathan Nieder, Jukka Lahtinen, Stanislav
# Traykov
#
# Adapted from its Debian version
Patch2:		nethack-enh-paranoid-hit.patch
#TODO: unfinished
Patch3:		nethack-3.4.3-makefile-destdir.patch
BuildRequires:	ncurses-devel bison flex


%description
NetHack is a single player dungeon exploration game that runs on a
wide variety of computer systems, with a variety of graphical and text
interfaces all using the same game engine.

Unlike many other Dungeons & Dragons-inspired games, the emphasis in
NetHack is on discovering the detail of the dungeon and not simply
killing everything in sight - in fact, killing everything in sight is
a good way to die quickly.

Each game presents a different landscape - the random number generator
provides an essentially unlimited number of variations of the dungeon
and its denizens to be discovered by the player in one of a number of
characters: you can pick your race, your role, and your gender.

%prep
%setup -q
%patch0 -p1 -b .settings~
%patch1 -p1 -b .hpmon~
%patch2 -p1 -b .paranoid~
#%patch3 -p1 -b .destdir~
# Generates makefiles
(source sys/unix/setup.sh)

%build
# Patch in our paths with RPM macros.
perl -pi -e 's{MDV_HACKDIR}{%{_gamesdatadir}/nethack}' include/config.h
perl -pi -e 's{MDV_VAR_PLAYGROUND}{%{_localstatedir}/lib/games/nethack}' include/unixconf.h
%make CFLAGS="%{optflags} -I../include -Wno-error=format-security" LDFLAGS="%{ldflags}"

%install
%makeinstall_std \
        GAMEDIR=%{buildroot}%{_gamesdatadir}/nethack \
        VARDIR=%{buildroot}%{_localstatedir}/lib/games/nethack \
        SHELLDIR=%{buildroot}%{_gamesbindir} \
        CHOWN=/bin/true \
        CHGRP=/bin/true
rm -f %{buildroot}%{_gamesbindir}/nethack                                                                                                                     
mv %{buildroot}%{_gamesdatadir}/nethack/nethack %{buildroot}%{_gamesbindir}/nethack                                                                           
mv %{buildroot}%{_gamesdatadir}/nethack/recover %{buildroot}%{_gamesbindir}/nethack-recover                                                                   
install -m644 doc/nethack.6 -D %{buildroot}%{_mandir}/man6/nethack.6

%post
%create_ghostfile %{_localstatedir}/lib/games/nethack/record root games 664
%create_ghostfile %{_localstatedir}/lib/games/nethack/perm root games 664
%create_ghostfile %{_localstatedir}/lib/games/nethack/logfile root games 664

%files
%doc doc/*txt README dat/license
%{_gamesdatadir}/nethack
%{_mandir}/man6/*
%defattr(755,root,games)
%{_gamesbindir}/nethack-recover
%attr(2755,root,games) %{_gamesbindir}/nethack
%defattr(644,root,games,775)
%dir %{_localstatedir}/lib/games/nethack/
%dir %{_localstatedir}/lib/games/nethack/save
%ghost %verify(not md5 size mtime) %{_localstatedir}/lib/games/nethack/record
%ghost %verify(not md5 size mtime) %{_localstatedir}/lib/games/nethack/perm
%ghost %verify(not md5 size mtime) %{_localstatedir}/lib/games/nethack/logfile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3583 |21cr|nethogs-0.8.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Top-like monitor for network traffic
Name:		nethogs
Version:	0.8.5
Release:	3
Group:		Monitoring
License:	GPL+
URL:		http://raboof.github.io/nethogs/
Source0:	https://github.com/raboof/nethogs/archive/v%{version}/%{name}-%{version}.tar.gz 
BuildRequires:	ncurses-devel
BuildRequires:	pcap-devel
BuildRequires:	gcc-c++


%description
NetHogs is a small "net top" tool.

Instead of breaking the traffic down per protocol or per subnet, like
most such tools do, it groups bandwidth by process and does not rely
on a special kernel module to be loaded.

So if there's suddenly a lot of network traffic, you can fire up
NetHogs and immediately see which PID is causing this, and if it's
some kind of spinning process, kill it.

Features:
- shows TCP download- and upload-speed per process
- supports both IPv4 and IPv6
- supports both Ethernet and PPP

%prep

%setup -q

%build
%make CFLAGS="%{optflags}"

%install
%makeinstall_std PREFIX=%{_prefix}

%files
%doc Changelog DESIGN README*
%{_sbindir}/nethogs
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3584 |21cr|netio-1.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		netio
Version:	1.33
Release:	1
License: 	GPL
Group: 		Monitoring
Url:		http://www.ars.de/ars/ars.nsf/docs/netio
Source:		http://www.ars.de/ars/ars.nsf/netio-131.tar.bz2
Summary: 	Network benchmarking tool
BuildRequires:  glibc-devel libgcc gcc gcc-c++
BuildRequires:  dos2unix

%description
This is a network benchmark for, OS/2 2.x, Windows NT/2000 and Unix.
It measures the net throughput of a network via NetBIOS, TCP and UDP
protocols (Unix only supports TCP and UDP) using various different
packet sizes.

%prep
%setup -q -n %{name}-131

%build

dos2unix *.c *.h
%make linux

%install
mkdir -p %{buildroot}/%{_sbindir}
cp -pr netio %{buildroot}/%{_sbindir}

%files 
%doc bin/win32-i386.exe
%doc bin/os2-i386.exe
%doc netio.doc
/usr/sbin/netio

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3585 |21cr|netpanzer-0.8.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An online multiplayer tactical warfare game
Name:		netpanzer
Version:	0.8.7
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://netpanzer.berlios.de/
# Source for 0.8.7 is from Mageia package
Source0:	%{name}-%{version}.tar.xz
Source1:	%{name}.desktop
Patch0:		fedora-netpanzer-0.8.2-MapSelectionView-memory.patch
Patch1:		netpanzer-0.8.7-optflags.patch
Patch2:		netpanzer-0.8.7-scons-python3.patch
BuildRequires:	imagemagick
BuildRequires:	scons
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(SDL_mixer)

%description
netPanzer is an online multiplayer tactical warfare game designed for
play across the Internet and over LAN systems. One on one games are
possible via direct connect or modem. netPanzer is designed for FAST
ACTION combat -- it is not another resource management clone. In fact,
there aren't any resources at all. Each player will have many units of
different types at their disposal. Players can fight until their units
are destroyed -- then respawn and keep on going. The game is real-time,
but it's based on quick tactical action and unit management. Battles
progress quickly and constantly; in fact, they never let up. There is no
stop in the action because there is no waiting for resources to be
collected and converted into weaponry. Players can join or leave
multiplayer games at any time.

%files
%doc COPYING README *.txt docs/*.txt
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
CCFLAGS="%{optflags} -std=c++14" %scons datadir=%{_gamesdatadir}/%{name}

%install
install -D -m 755 %{name} %{buildroot}%{_gamesbindir}/%{name}

mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -pr cache/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -pr maps/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -pr pics/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -pr powerups/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -pr scripts/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -pr units/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -pr wads/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -pr sound/ %{buildroot}%{_gamesdatadir}/%{name}/

install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop

for N in 16 32 48 64 128; do convert %{name}.png -resize ${N}x${N} $N.png; done
install -D -m 644 16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m 644 32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m 644 48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -D -m 644 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D -m 644 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3586 |21cr|netperf-2.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define name netperf
%define version 2.6.0
%define release 5

Summary:	Performance testing tool for TCP/UDP
Name:		%name
Version:	%version
Release:	%release
License:	BSD
Group:		Networking/Other
URL:		http://www.netperf.org/netperf/NetperfPage.html 
Source0:	ftp://ftp.netperf.org/netperf/%name-%version.tar.bz2

%description
Netperf is a benchmark that can be used to measure the performance 
of many different types of networking. It provides tests for both 
unidirecitonal throughput, and end-to-end latency.

The environments currently measureable by netperf include:

* TCP and UDP via BSD Sockets for both IPv4 and IPv6
* DLPI
* Unix Domain Sockets
* SCTP for both IPv4 and IPv6 

%prep
%setup -q 

%build
%configure \
	--enable-unixdomain \
	--enable-sdp \
	--enable-exs \
	--enable-sctp
%make 

%install
%makeinstall_std




%files
%doc README AUTHORS COPYING Release_Notes
%{_bindir}/netperf
%{_bindir}/netserver
%{_infodir}/netperf.*
%{_mandir}/man1/netperf.1*
%{_mandir}/man1/netserver.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3587 |21cr|netpipe-3.7.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name NetPIPE
%define name        netpipe
%define version	    3.7.1
%define release     8

Summary: Protocol independent performance tool
Name: %name
Version: %version
Release: %release
License: GPL
Group: Networking/Other
URL: http://www.scl.ameslab.gov/netpipe/
Source: http://www.scl.ameslab.gov/netpipe/code/%{real_name}-%{version}.tar.bz2

%description
NetPIPE is a protocol independent performance tool that visually represents
the network performance under a variety of conditions. It performs simple
ping-pong tests, bouncing messages of increasing size between two processes,
whether across a network or within an SMP system. Message sizes are chosen
at regular intervals, and with slight perturbations, to provide a complete
test of the communication system. Each data point involves many ping-pong
tests to provide an accurate timing. Latencies are calculated by dividing
the round trip time in half for small messages ( < 64 Bytes ). 

%prep
%setup -q -n %{real_name}-%{version}

%build
%make memcpy tcp 

%install
%{__rm} -rf %{buildroot}
%{__install} -D -m0755 NPmemcpy %{buildroot}%{_bindir}/NPmemcpy
%{__install} -D -m0755 NPtcp %{buildroot}%{_bindir}/NPtcp
%{__install} -D -m0644 dox/netpipe.1 %{buildroot}%{_mandir}/man1/netpipe.1

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-, root, root, 0755)
# not in package as they requires gnupot and csh
%doc bin/*
%doc dox/README dox/*pdf 
%{_mandir}/man1/netpipe.1*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3588 |21cr|netplug-1.2.9.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Hotplug-style support for network cables
Name:		netplug
Version:	1.2.9.2
Release:	3
Source0:	http://www.red-bean.com/~bos/%{name}/%{name}-%{version}.tar.bz2
Source1:	netplugd.service
Patch0:		netplug-1.2.9.2-execshield.patch
Patch2:		netplug-1.2.9-pinit.patch.bz2
Patch3:		netplug-1.2.9.2-man.patch
License:	GPL
Group:		System/Configuration/Networking
Url:		http://www.red-bean.com/~bos/
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description
The netplug daemon listens for carrier detection and loss messages
from the kernel's netlink subsystem.  When a carrier signal is
detected on an interface, it runs a script to bring the interface up.
When carrier is lost, netplug runs a script to bring the interface
down.

NOTE: prefer ifplugd, since it's integrated in Mandriva network scripts
and is more configurable

%prep
%setup -q
%patch0 -p1 -b .execshield
%patch2 -p1 -b .pinit
%patch3 -p1 -b .man

%build
%make

%install
make install prefix=%{buildroot} \
     initdir=%{buildroot}%{_initrddir} \
     mandir=%{buildroot}%{_mandir}

mkdir -p %{buildroot}/%{_mandir}/man5
ln -fs %{_mandir}/man8/netplugd.8.xz %{buildroot}/%{_mandir}/man5/netplug.5.xz
ln -fs %{_mandir}/man8/netplugd.8.xz %{buildroot}/%{_mandir}/man5/netplug.d.5.xz
ln -fs %{_mandir}/man8/netplugd.8.xz %{buildroot}/%{_mandir}/man5/netplugd.conf.5.xz

# systemd unit files
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}

rm -f %{buildroot}/etc/rc.d/init.d/netplugd

%post
%systemd_post netplugd.service

%preun
%systemd_preun netplugd.service

%postun
%systemd_postun_with_restart netplugd.service

%files
%doc COPYING README TODO
/sbin/netplugd
%{_mandir}/man[58]/*
%dir %{_sysconfdir}/netplug.d
%{_sysconfdir}/netplug.d/netplug
%config(noreplace) %{_sysconfdir}/netplug.d/netplugd.conf
%{_unitdir}/netplugd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3589 |21cr|netprofile-0.28-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: netprofile
Summary: Manage network profiles
Version: 0.28
Release: 13
Source: %{name}-%{version}.tar.bz2
License: GPLv2+
Group: System/Base
BuildArchitectures: noarch
Requires: initscripts >= 7.06-13mdk
Requires: diffutils
# sysvinit-tools, but may be will migrate to procps-ng
Requires: /bin/pidof
# s2u is used for desktop notifications. It will be pulled by xinit
# to reduce basesystem size
#Suggests: s2u >= 0.9.1
URL: http://git.mandriva.com/?p=projects/netprofile.git
Recommends: %{name}-plugin-services, %{name}-plugin-network, %{name}-plugin-firewall
Recommends: %{name}-plugin-proxy, %{name}-plugin-urpmi

%description
Netprofile is a Mandriva solution to manage different network profile. It
allows to define specific network, firewall and proxy configuration to use in
different network environment (for example, at home, at work or while roaming),
and also provides a way for user to switch those profiles on the fly.

%package plugin-services
Summary:	service management plugin for netprofile
Group: 		System/Base
Requires:	netprofile >= 0.28-3

%description plugin-services
This plugin allows netprofile to save and restore the list of running services
when changing to a different profile.

%package plugin-network
Summary:	network configuration plugin for netprofile
Group: 		System/Base
Requires:	netprofile >= 0.28-3

%description plugin-network
This plugin allows netprofile to save and restore network settings saved in
redhat and mandriva-compatible format.

%package plugin-firewall
Summary:	firewall configuration plugin for netprofile
Group:		System/Base
Requires:	netprofile >= 0.28-3

%description plugin-firewall
This plugin allows netprofile to save and restore firewall configuration based
on iptables shorewall applications.

%package plugin-proxy
Summary:	proxy configuration plugin for netprofile
Group:		System/Base
Requires:	netprofile >= 0.28-3

%description plugin-proxy
This plugin allows netprofile to save and restore local proxy settings.

%package plugin-urpmi
Summary:	urpmi configuration plugin for netprofile
Group:		System/Base
Requires:	netprofile >= 0.28-3

%description plugin-urpmi
This plugin allows netprofile to save and restore multiple configurations
for urpmi database.

%prep

%setup -q

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std INITDIR=%_initrddir

%clean
rm -rf $RPM_BUILD_ROOT

%post

# checking for old netprofile files
if [ -f /etc/netprofile/list ]; then
        # upgrading from old netprofile
        echo "Upgrading from old netprofile. Your old profiles are saved in /etc/netprofile.rpmsave"
        # temporarily, save old files. This will be removed on newer versions.
        mkdir /etc/netprofile.rpmsave && cp -a /etc/netprofile/list /etc/netprofile/profiles /etc/netprofile.rpmsave
        rm -rf /etc/netprofile/profiles/*/
        # creating new default profile
        /sbin/netprofile switch default
fi

if [ ! -d /etc/netprofile/profiles/default ]; then
  /sbin/set-netprofile default
fi

%files
%defattr(-,root,root) 
%doc ChangeLog TODO README NEWS
/sbin/*
%dir /etc/netprofile
%dir /etc/netprofile/profiles
%dir /etc/netprofile/modules
/etc/bash_completion.d/netprofile
/etc/sysconfig/network-scripts/ifup.d/netprofile

%files plugin-services
%defattr(-,root,root)
%attr(0755,root,root) /etc/netprofile/modules/*_services

%files plugin-network
%defattr(-,root,root)
%attr(0755,root,root) /etc/netprofile/modules/*_network

%files plugin-firewall
%defattr(-,root,root)
%attr(0755,root,root) /etc/netprofile/modules/*_firewall*

%files plugin-proxy
%defattr(-,root,root)
%attr(0755,root,root) /etc/netprofile/modules/*_proxy

%files plugin-urpmi
%defattr(-,root,root)
%attr(0755,root,root) /etc/netprofile/modules/*_urpmi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3590 |21cr|netrek-client-cow-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Netrek client
Name:		netrek-client-cow
Version:	3.3.2
Release:	1
License:	MIT
Group:		Games/Other
Url:		http://www.netrek.org/
Source0:	http://netrek.org/files/COW/%{name}-%{version}.tar.gz
Source1:	%{name}.6
BuildRequires:	gmp-devel
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(xxf86vm)

%description
This is a client for the multiplayer game of Netrek, supporting sound,
color bitmaps, and recording and playback of games. The game itself has 
existed since 1988, and had a solid player-base, including some 
people who have been playing for nearly as long as the game has existed.

%files
# "COPYING" is a list of authors, and not the GPL license
%doc CHANGES README.* TODO *.DOC COPYING XTREKRC.example copyright*.h
%doc cow.html index.orig.html newbie.html cow.css stars.gif netrekrc.example
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}/*
%{_mandir}/man6/*.6*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# Disable preprocessor line numbers to fix gmp detection
%configure CPPFLAGS=-P
#Package doesn't support concurrent makes yet. forcing "-j1"
make -j1

%install
%makeinstall
#Dont set execute on .desktop file
chmod -x %{buildroot}%{_datadir}/applications/%{name}.desktop
install -p -m 0644 %{SOURCE1} -D %{buildroot}/%{_mandir}/man6/%{name}.6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3591 |21cr|netsniff-ng-0.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		netsniff-ng
Version:	0.6.8
Release:	1
Summary:	A high performance network sniffer for packet inspection
License:	GPLv2
Group:		Networking/Other
URL:		http://netsniff-ng.org/
Source0:	http://www.netsniff-ng.org/pub/netsniff-ng/%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:  cmake
BuildRequires:  ncurses-devel
BuildRequires:  pkgconfig(libnl-3.0)
BuildRequires:  pkgconfig(zlib)
BuildRequires:	pcap-devel
BuildRequires:  flex
BuildRequires:  bison
BuildRequires:  geoip-devel
BuildRequires:  netfilter_conntrack-devel

%description
netsniff-ng is a high performance linux network sniffer for packet inspection.
Basically, it is similar to tcpdump, but it doesn't need one syscall per
packet. Instead, it uses an memory mapped area within kernelspace for accessing
packets without copying them to userspace (zero-copy mechanism).

This tool is useful for debugging your network, measuring performance
throughput or creating network statistics of incoming packets on central
network nodes like routers or firewalls. 

%prep
%setup -q 

%build
%setup_compile_flags
./configure
%make \
	PREFIX=%{_prefix} \
	CFLAGS="$CFLAGS" \
	LDFLAGS="$LDFLAGS" \
	DISTRO=1 \
	ETCDIR=%{_sysconfdir}

%install
%makeinstall_std \
	PREFIX=%{_prefix} \
	ETCDIR=%{_sysconfdir}

%files
%doc AUTHORS COPYING README REPORTING-BUGS
%{_sbindir}/netsniff-ng
%{_sbindir}/bpfc
%{_sbindir}/ifpps
%{_sbindir}/astraceroute
%{_sbindir}/trafgen
%{_mandir}/man8/*.8*
%dir %{_sysconfdir}/netsniff-ng
%config(noreplace) %{_sysconfdir}/netsniff-ng/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3592 |21cr|netstat-nat-1.4.10-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major 1
%define lib_name %{mklibname} %{name} %{lib_major}

Name:           netstat-nat 
Summary: 	Displays NAT connections, managed by netfilter/iptables 
Group:		Networking/Other
Version:        1.4.10
Release:        7
License: 	GPL
URL:		http://tweegy.nl/projects/netstat-nat/
Provides:	netstat-nat
Source0:        %{name}-%{version}.tar.bz2

%description
Netstat-nat is a small program written in C. It displays NAT connections, 
managed by netfilter/iptables which comes with the > 2.4.x linux kernels. 
The program reads its information from '/proc/net/ip_conntrack', which is 
the temporary conntrack-storage of netfilter. (http://netfilter.samba.org/)
Netstat-nat takes several arguments (but not needed).

%prep
%setup -q
chmod a-x ChangeLog README netstat-nat*
sed -i 's|install-docDATA install-man|install-man|g' Makefile.in

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%doc AUTHORS COPYING INSTALL README
%attr(644,root,root) %{_mandir}/man1/netstat-nat.*
%attr(755,root,root) %{_bindir}/netstat-nat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3593 |21cr|nettee-0.1.9.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Network "tee" program
Name: nettee
Version: 0.1.9.1
Release: 3
Source0: %{name}-%{version}.tar.gz
License: GPL
Group: Networking/Other
Url: http://saf.bio.caltech.edu/nettee.html


%description
nettee is a network "tee" program.  It can typically transfer
data between N nodes at (nearly) the full bandwidth provided by the 
switch which connects them.  It is handy for cloning nodes or moving 
large database files.

%prep
%setup -q -n %{name}-%{version}

%build
gcc -O2 -g -pipe -Wformat -Werror=format-security -fexceptions -fstack-protector --param=ssp-buffer-size=4 -fomit-frame-pointer -fasynchronous-unwind-tables -D_LARGEFILE64_SOURCE -o nettee nettee.c

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m755 $RPM_BUILD_DIR/%{name}-%{version}/%{name} %{buildroot}%{_bindir}/%{name}
install -m644 $RPM_BUILD_DIR/%{name}-%{version}/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

%clean

%files
%doc LICENSE *.TXT *.html *.sh
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3594 |21cr|netwag-5.39.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Use dependency on tk instead of this one which is not formally provided
%global __requires_exclude /usr/bin/wish8.6

Summary: A graphic front-end to netwox
Name: netwag
Version: 5.39.0
Release: 5
Source0: http://downloads.sourceforge.net/project/ntwag/netwag/5.39/%{name}-%{version}-src.tgz
Source1: http://downloads.sourceforge.net/project/ntwag/netwag/5.39/%{name}-%{version}-doc_html.tgz
Patch0: netwag-5.35.0-prefix.patch
License: LGPL
Group: Networking/Other
Url: http://www.laurentconstantin.com/fr/netw/netwox/
Requires: netwox = %version
Requires: tk >= 8.6
BuildRequires: tk >= 8.6
BuildRequires: netwox = %version
BuildRequires: xterm
BuildArch: noarch

%description
Netwag provides:
  - find tools in netwox
  - running tools in a new window
  - keep track of command history
  - exchange data true the integrate clipboard
  - ect.

%prep
%setup -q -n %name-%version-src
%setup -q -D -T -a1 -n %name-%version-src
%patch0 -p0

%build
cd src
./genemake
%make GCCOPT="$RPM_OPT_FLAGS -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H"

%install
cd src
%makeinstall_std

%files
%doc INSTALL.TXT README.TXT
%doc doc/*.txt
%doc %name-%version-doc_html/*
%_bindir/netwag*
%_mandir/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3595 |21cr|netwatch-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:		netwatch 
Summary:	Ethernet/PPP IP Packet Monitor 
Version:	1.3.0
Release:	%{mkrel 1}
# Headers suggest some code is from 'statnet' which is GPLv2
License:	GPLv2
Group:		Monitoring
Source0:	http://www.slctech.org/~mackay/NETWATCH/%{name}-%{version}-1.tgz
Patch0:		netwatch-1.3.0-1-include.patch
# Fix a bug which causes build to fail - misc 2008/09
Patch1:		netwatch-1.3.0-1-fix_build_open.patch 
URL:		http://www.slctech.org/~mackay/netwatch.html
BuildRequires:	ncurses-devel

%description 
The software enables real-time viewing of network activity.
Network usage is tracked on a per host basis. Packet
and byte counts are available for all host communication.
Router statistics and summary charts are available.
 
%prep
%setup -q
%patch0 -p0
%patch1

%build
%configure
%make

%install
install -d -m 755 %{buildroot}%{_sbindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 755 netwatch %{buildroot}%{_sbindir}
install -m 755 netresolv %{buildroot}%{_sbindir}
install -m 644 netwatch.1 %{buildroot}%{_mandir}/man1

%clean
%__rm -fr %{buildroot}

%files
%defattr(-,root,root,-)
%doc README README.performance TODO CHANGES BUGS
%{_sbindir}/%{name}
%{_sbindir}/netresolv
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3596 |21cr|netwib-5.39.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname -d -s %{name}

Summary:	A network library
Name:		netwib
Version:	5.39.0
Release:	8
License:	LGPL
Group:		Networking/Other
Url:		http://www.laurentconstantin.com/fr/netw/netwib/
Source0:	http://www.laurentconstantin.com/common/netw/netwib/download/v5/%{name}-%{version}-src.tgz
Source1:	http://www.laurentconstantin.com/common/netw/netwib/download/v5/%{name}-%{version}-doc_html.tgz
Source100:	%{name}.rpmlintrc
Patch0:		netwib-5.39.0-genemake.patch
Patch1:		netwib-5.39.0-aarch.patch
BuildRequires:	libnet-devel
BuildRequires:	pcap-devel

%description
Netwib is a network library for network administrator and hackers.
She provides:
  + address translation
  + client/server udp/tcp
  + paquets creation and annalyze
  + etc.

With Netwib, you can easily create a network application.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A network library
Group:		Networking/Other

%description -n %{libname}
Netwib is a network library for network administrator and hackers.
She provides:
  + address translation
  + client/server udp/tcp
  + paquets creation and annalyze
  + etc.

With Netwib, you can easily create a network application.

%files -n %{libname}
%doc INSTALLUNIX.TXT INSTALLWINDOWS.TXT README.TXT
%{_libdir}/libnetwib.so.%{major}
%{_libdir}/libnetwib539.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A network library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Netwib is a network library for network administrator and hackers.
She provides:
  + address translation
  + client/server udp/tcp
  + paquets creation and annalyze
  + etc.

With Netwib, you can easily create a network application.

%files -n %{devname}
%doc INSTALLUNIX.TXT INSTALLWINDOWS.TXT README.TXT
%{_bindir}/netwib*-config
%{_includedir}/netwib*
%{_libdir}/libnetwib*.so
%{_mandir}/man3/netwib*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	A network library
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Netwib is a network library for network administrator and hackers.
She provides:
  + address translation
  + client/server udp/tcp
  + paquets creation and annalyze
  + etc.

With Netwib, you can easily create a network application.

%files -n %{sdevname}
%{_libdir}/libnetwib*.a

#----------------------------------------------------------------------------

%package doc
Summary:	Netwib html documentation
Group:		Documentation

%description doc
The netwib documention in html format.

Netwib is a network library for network administrator and hackers.
She provides:
  + address translation
  + client/server udp/tcp
  + paquets creation and annalyze
  + etc.

With Netwib, you can easily create a network application.

%files doc
%doc doc/*.txt %{name}-%{version}-doc_html/* 

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-src
%setup -q -D -T -a1 -n %{name}-%{version}-src

find . -type f -exec chmod a+r {} \;

%patch0 -p1
%patch1 -p1

perl -pi -e 's!^NETWIBDEF_INSTPREFIX=.*!NETWIBDEF_INSTPREFIX=%{_prefix}!' src/config.dat
# Hacking for lib64
perl -pi -e 's!^NETWIBDEF_INSTLIB=.*!NETWIBDEF_INSTLIB=%{_libdir}!' src/config.dat
perl -pi -e 's!^NETWIBDEF_INSTMAN=.*!NETWIBDEF_INSTMAN=%{_mandir}!' src/config.dat
perl -pi -e 's!^NETWIBDEF_SYSARCH=.*!NETWIBDEF_SYSARCH=%{_arch}!' src/config.dat

%build
cd src

./genemake

%make \
    GCCOPT="%{optflags} -Wall -fPIC -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H" \
    GCCOPTL="$GCCOPT" GCCOPTP="$GCCOPT" libnetwib.so libnetwib.a

%install
cd src
%makeinstall_std
%make installso DESTDIR=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3597 |21cr|net-wireless-0.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define nsusr nagios
%define nsgrp nagios
%define cmdusr apache
%define cmdgrp apache

Summary: Wireless access for NetSaint
Name:    net-wireless
Version: 0.2
Release: 18
License: GPL
URL:     http://mobileengines.com/net-wireless/
Group:   Networking/Other
Source0: %{name}.%{version}.tar.bz2
Patch0:  net-wireless-nagios.patch.bz2
Requires: nagios nagios-www

%description
The Wireless Network Tools package uses a Web-enabled phone (or an emulator) to
provide traceroute, ping, and port scanning. If you use netsaint, it ties into
it nicely and provides real-time status of your hosts/network. This should be
considered pre-alpha, but it does do what it is intended to do.

%prep

%setup -n %{name}
%patch0 -p1

%build
echo "no compiling is needed"

%install
install -d %{buildroot}/etc/httpd/conf
install -d %{buildroot}%{_libdir}/nagios/cgi/
install -d %{buildroot}%{_datadir}/nagios
install -m644 wireless.cfg %{buildroot}/etc/httpd/conf/
install -m755 *.cgi %{buildroot}%{_libdir}/nagios/cgi/
install -m644 index.wml %{buildroot}%{_datadir}/nagios/

%files
%doc CHANGES EMULATORS INSTALL README THANKS
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/wireless.cfg
%attr(0755,root,root) %dir %{_libdir}/nagios/cgi
%attr(0755,%{nsusr},%{cmdgrp}) %{_libdir}/nagios/cgi/*
%attr(0755,root,root) %dir %{_datadir}/nagios
%attr(0644,root,root) %{_datadir}/nagios/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3598 |21cr|networkmanager-iodine-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} |cut -d. -f-2)
%define oname NetworkManager-iodine

Summary:	NetworkManager VPN plugin for iodine
Name:		networkmanager-iodine
Version:	1.2.0
Release:	1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/network-manager-iodine
Source0:	https://download.gnome.org/sources/NetworkManager-iodine/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	gettext
BuildRequires:	glib-gettextize
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libsecret-1)
Requires:	dbus-common
Requires:	iodine-client
Requires:	networkmanager
Requires:	shared-mime-info

%description
NetworkManager VPN plugin for iodine.

%files -f %{name}.lang
%doc AUTHORS NEWS
%license COPYING
%{_datadir}/dbus-1/system.d/nm-iodine-service.conf
%{_libexecdir}/nm-iodine-auth-dialog
%{_libexecdir}/nm-iodine-service
%{_prefix}/lib/NetworkManager/VPN/nm-iodine-service.name

#------------------------------------------------------------------

%package gnome
Summary:	NetworkManager VPN plugin for iodine - GNOME files
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{EVRD}
Requires:	networkmanager-applet

%description gnome
This package contains software for integrating VPN capabilities with
the iodine server and NetworkManager (GNOME files).

%files gnome
%{_datadir}/appdata/network-manager-iodine.appdata.xml
%{_datadir}/gnome-vpn-properties/iodine/nm-iodine-dialog.ui
%dir %{_datadir}/gnome-vpn-properties/iodine
%{_libdir}/NetworkManager/lib*.so*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
autoreconf -fi
%configure	\
	--disable-static	\
	--enable-more-warnings=yes	\
	--without-libnm-glib
%make

%install
%make_install

mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_prefix}/lib/NetworkManager/VPN
mv %{buildroot}%{_sysconfdir}/dbus-1 %{buildroot}%{_datadir}
cp nm-iodine-service.name %{buildroot}%{_prefix}/lib/NetworkManager/VPN

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3599 |21cr|networkmanager-libreswan-1.2.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude ^(libnm-libreswan-properties[.]so.*)$
%global __requires_exclude ^(libnm-libreswan-properties[.]so.*)$

%define url_ver %(echo %{version} |cut -d. -f-2)
%define oname NetworkManager-libreswan

Summary:	Libreswan VPN client plugin for NetworkManager
Name:		networkmanager-libreswan
Version:	1.2.24
Release:	1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/networkmanager-libreswan
Source0:	https://download.gnome.org/sources/NetworkManager-libreswan/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	gettext
BuildRequires:	glib-gettextize
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libsecret-1)
Requires:	dbus-common
Requires:	libreswan
Requires:	networkmanager

%description
Libreswan VPN client plugin for NetworkManager.

%files -f %{name}.lang
%doc AUTHORS NEWS
%license COPYING
%{_datadir}/dbus-1/system.d/nm-libreswan-service.conf
%{_libdir}/NetworkManager/libnm-vpn-plugin-libreswan.so
%{_libexecdir}/nm-libreswan-service
%{_libexecdir}/nm-libreswan-service-helper
%{_mandir}/man5/nm-settings-libreswan.5*
%{_prefix}/lib/NetworkManager/VPN/nm-libreswan-service.name

#------------------------------------------------------------------

%package gnome
Summary:	NetworkManager VPN plugin for libreswan - GNOME files
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{EVRD}
Requires:	networkmanager-applet
Requires:	shared-mime-info

%description gnome
This package contains software for integrating VPN capabilities with
the libreswan server with NetworkManager (GNOME files).

%files gnome
%{_appdatadir}/network-manager-libreswan.metainfo.xml
%{_libdir}/NetworkManager/libnm-vpn-plugin-libreswan-editor.so
%{_libexecdir}/nm-libreswan-auth-dialog

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
LDFLAGS="%{ldflags} -lgmodule-2.0"
autoreconf -fi
%configure	\
	--disable-static	\
	--enable-more-warnings=yes	\
	--with-dist-version=%{version}-%{release}	\
	--without-libnm-glib
%make

%install
%make_install

mkdir -p %{buildroot}%{_datadir}
mv %{buildroot}%{_sysconfdir}/dbus-1 %{buildroot}%{_datadir}

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3600 |21cr|NetworkManager-strongswan-1.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without libnm_glib

Name:      NetworkManager-strongswan
Version:   1.4.4
Release:   2
Summary:   NetworkManager strongSwan IPSec VPN plug-in
Group:     System/Base
License:   GPLv2+
URL:       https://www.strongswan.org/
Source0:   https://download.strongswan.org/NetworkManager/%{name}-%{version}.tar.bz2

BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libnm) >= 1.1.0
BuildRequires: pkgconfig(libnma) >= 1.1.0
BuildRequires: intltool
BuildRequires: libtool

%if %{with libnm_glib}
BuildRequires: pkgconfig(dbus-glib-1) >= 0.30
BuildRequires: pkgconfig(NetworkManager) >= 1.1.0
BuildRequires: pkgconfig(libnm-util)
BuildRequires: pkgconfig(libnm-glib)
BuildRequires: pkgconfig(libnm-glib-vpn)
BuildRequires: pkgconfig(libnm-gtk)
%endif

Requires: NetworkManager
# Requires a version recent enough to ship the D-Bus policy
Requires: strongswan-charon-nm > 5.6.0-1

%global __provides_exclude ^libnm-.*\\.so

%description
This package contains software for integrating the strongSwan IPSec VPN
with NetworkManager.


%package gnome
Summary: NetworkManager VPN plugin for strongswan - GNOME files

Requires: NetworkManager-strongswan = %{version}-%{release}

%description gnome
This package contains software for integrating the strongSwan IPSec VPN
with the graphical desktop.


%prep
%setup -q


%build
%configure \
        --disable-static \
%if %{without libnm_glib}
        --without-libnm-glib \
%endif
        --with-charon=%{_libexecdir}/strongswan/charon-nm \
        --enable-more-warnings=no
%make_build


%install
%make_install
%find_lang %{name}


%files -f %{name}.lang
%{_prefix}/lib/NetworkManager/VPN/nm-strongswan-service.name
%doc NEWS


%files gnome
%{_datadir}/gnome-vpn-properties/strongswan
%{_libdir}/nm-strongswan-auth-dialog
%{_libdir}/NetworkManager/libnm-vpn-plugin-strongswan.so
%{_datadir}/appdata/NetworkManager-strongswan.appdata.xml

%if %{with libnm_glib}
%{_libdir}/NetworkManager/libnm-*-properties.so
%{_sysconfdir}/NetworkManager/VPN/nm-strongswan-service.name
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3601 |21cr|netwox-5.39.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A network toolbox
Name:		netwox
Version:	5.39.0
Release:	4
License:	LGPL
Group:		Networking/Other
URL:		http://www.laurentconstantin.com/fr/netw/netwox/
Source0:	http://downloads.sourceforge.net/project/ntwox/netwox%20only/5.39/%{name}-%{version}-src.tgz
Source1:	http://downloads.sourceforge.net/project/ntwox/netwox%20only/5.39/%{name}-%{version}-doc_html.tgz
BuildRequires:	libpcap-devel >= 0.7.2
BuildRequires:	libnet-devel >= 1.1.3
BuildRequires:	netwib-devel = %{version}

%description
Netwox is a network tools for network administrator and hackers.

It contains about 100 functions

%prep

%setup -q -n %{name}-%{version}-src -a1 

find . -type f -exec chmod a+r {} \; 

perl -pi -e 's!^NETWIBDEF_INSTPREFIX=.*!NETWIBDEF_INSTPREFIX=/usr!' src/config.dat
perl -pi -e 's!^NETWOXDEF_INSTPREFIX=.*!NETWOXDEF_INSTPREFIX=/usr!' src/config.dat
# Hacking for lib64
perl -pi -e 's!^NETWIBDEF_INSTLIB=.*!NETWIBDEF_INSTLIB=%{_libdir}!' src/config.dat
perl -pi -e 's!^NETWIBDEF_SYSARCH=.*!NETWIBDEF_SYSARCH=%{_arch}!' src/config.dat
perl -pi -e 's!^NETWOXDEF_INSTMAN=.*!NETWOXDEF_INSTMAN=%{_mandir}!' src/config.dat

%build
cd src
./genemake
make GCCOPT="%{optflags} -D_BSD_SOURCE -D__BSD_SOURCE -D__FAVOR_BSD -DHAVE_NET_ETHERNET_H"

%install

cd src
%makeinstall_std

%files
%doc INSTALLUNIX.TXT INSTALLWINDOWS.TXT README.TXT
%doc doc/*.txt %{name}-%{version}-doc_html/*
%{_bindir}/netwox*
%{_mandir}/man1/netwox*.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3602 |21cr|neverball-1.6.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Arcade game
Name:		neverball
Version:	1.6.0
Release:	9
Epoch:		1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://icculus.org/neverball/
Source0:	http://icculus.org/neverball/%{name}-%{version}.tar.gz
BuildRequires:	jpeg-devel
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(vorbisfile)

%description
Tilt the floor to roll the ball through the obstacle course before time
runs out.

This package inclutes neverputt, a golf game based on neverball.

Hardware accellerated OpenGL support with multitexture (OpenGL 1.2.1
or greater) is required.

%files -f %{name}.lang
%doc README.md
%doc doc/*
%license LICENSE.md
%{_gamesbindir}/%{name}
%{_gamesbindir}/neverputt
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/neverputt.desktop
%{_datadir}/icons/hicolor/*/apps/never*png
%{_mandir}/man6/neverball.6*
%{_mandir}/man6/neverputt.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make \
	CFLAGS="%{optflags}" \
	CXXFLAGS="%{optflags}" \
	ENABLE_NLS=1 \
	DATADIR=%{_gamesdatadir}/%{name}/data \
	LOCALEDIR=%{_datadir}/locale

%install
install -m 755 -D %{name} %{buildroot}%{_gamesbindir}/%{name}
install -m 755 neverputt %{buildroot}%{_gamesbindir}/

mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
rm -fr data/map-*/*.map
find data -perm 0600 | xargs chmod 0644
cp -a data %{buildroot}%{_gamesdatadir}/%{name}/

mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 dist/*.desktop %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_mandir}/man6
install -m 644 dist/*.6 %{buildroot}%{_mandir}/man6

for res in 16 24 32 48 64 128 256; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps
	install -m 644 dist/neverball_${res}.png %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/neverball.png
	install -m 644 dist/neverputt_${res}.png %{buildroot}%{_datadir}/icons/hicolor/${res}x${res}/apps/neverputt.png
done

cp -r locale %{buildroot}%{_datadir}/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3603 |21cr|nevernote-0.99-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nevernote
Version:	0.99
Release:	4
Group:		Networking/Other
Summary:	Evernote-clone. Use with Evernote to remember everything
License:	GPLv2
URL:		http://nevernote.sourceforge.net/
Source:		%{name}-%{version}_i386.tar.gz
Patch:		%{name}.desktop-ru.patch
#Requires:	

%description
Evernote-clone. Use with Evernote to remember everything

%prep
%setup -q -n %{name}
%patch -p0

#%build

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 usr/bin/%{name}.sh %{buildroot}%{_bindir}/%{name}

install -d -m 755 %{buildroot}%{_datadir}/applications
install -m 644 usr/share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -a usr/share/%{name}/* %{buildroot}%{_datadir}/%{name}

install -d -m 755 %{buildroot}%{_docdir}/%{name}
install -m 644 usr/share/doc/%{name}/* %{buildroot}%{_docdir}/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_docdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3604 |21cr|new-session-manager-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Music production session manager
Name:		new-session-manager
Version:	1.6.1
Release:	1
License:	GPLv3+
Group:		Sound
Url:		https://github.com/linuxaudio/new-session-manager
Source0:	https://github.com/linuxaudio/new-session-manager/archive/v%{version}/%{name}-%{version}.tar.gz
#BuildRequires:	desktop-file-utils
BuildRequires:	meson
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(xpm)
Requires:	jackit
Requires:	hicolor-icon-theme
Provides:	nsm = %{EVRD}

%description
New Session Manager (NSM) is a tool to assist music production by grouping
standalone programs into sessions. You can create a session, or project, add
programs to it and then use commands to save, start/stop, hide/show all
programs at once, or individually. At a later date you can then re-open the
session and continue where you left off. All files belonging to the session
will be saved in the same directory.
It's a drop-in replacement for the non-session-manager daemon nsmd and related
tools (e.g. jackpatch) and has the goal of be upwards and downwards compatible
with the original nsmd.

%files
%license COPYING
%doc CHANGELOG README.md
%doc docs/index.html docs/api/api-index.html
%{_bindir}/nsmd
%{_bindir}/jackpatch
%{_bindir}/non-session-manager
%{_bindir}/nsm-legacy-gui
%{_bindir}/nsm-proxy
%{_bindir}/nsm-proxy-gui
%{_datadir}/applications/org.jackaudio.nsm-legacy-gui.desktop
%{_datadir}/applications/org.jackaudio.nsm-proxy.desktop
%{_datadir}/applications/org.jackaudio.jackpatch.desktop
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_mandir}/man1/*.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# Rename doc file to avoid conflicts
cp docs/api/index.html docs/api/api-index.html


%build
%meson
%meson_build


%install 
%meson_install

rm -rf %{buildroot}%{_docdir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3605 |21cr|newsupaplex-0.803-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta %(echo %{version} |cut -d. -f2)

Summary:	Supaplex clone
Name:		newsupaplex
Version:	0.803
Release:	4
License:	BSD-like with copyright notice
Group:		Games/Arcade
Url:		http://www.newsupaplex.pp.ru/
# Though brackets is Open Source, currently we just repack deb packages from upstream
Source0:	http://www.newsupaplex.pp.ru/files/newsupaplex%{beta}_linux_i386.tar.gz
Source1:	http://www.newsupaplex.pp.ru/files/newsupaplex%{beta}_linux_amd64.tar.gz
Source2:	%{name}.desktop
Source3:	newsupaplex.sh
Source4:	%{name}.png
Source100:	%{name}.rpmlintrc
BuildRequires:	tar
BuildRequires:	gzip
# Even with __noautoreqfiles, the process of dependency detection is rather slow ...
#AutoReqProv:	no
AutoProv:	no
# % define __noautoreqfiles (/opt/brackets/locales|/opt/brackets/www|/opt/brackets/samples|/opt/brackets/node-core)
%global __requires_exclude libclan.*|libbass.*|libjpeg.*|libpng.*
ExclusiveArch:	%{ix86} x86_64

%description
Supaplex clone.

%files
/opt/NewSupaplex
%{_bindir}/*
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -qcT
%ifarch x86_64
tar xzf %{SOURCE1}
%endif

%ifarch %{ix86}
tar xzf %{SOURCE0}
%endif

%install
mkdir -p %{buildroot}/opt
cp -r NewSupaplex %{buildroot}/opt
mkdir -p %{buildroot}/%{_bindir}
install -m755 %{SOURCE3} %{buildroot}/%{_bindir}/newsupaplex
pushd %{buildroot}/%{_bindir}
ln -s newsupaplex supaplex
popd


#for s in 32 48 128 256; do
#  mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
#done
mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps/
install -m 0644 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

#install -m 0644 opt/brackets/appshell32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
#install -m 0644 opt/brackets/appshell48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
#install -m 0644 opt/brackets/appshell128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
#install -m 0644 opt/brackets/appshell256.png %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications/
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3606 |21cr|newtonator-0.6.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_ld_no_undefined 1

Summary:	LV2 software synthesizer
Name:		newtonator
Version:	0.6.0
Release:	6
License:	GPLv3
Group:		Sound
Url:			http://newtonator.sourceforge.net
Source0:	https://downloads.sourceforge.net/project/newtonator/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	stk-devel >= 4.4.3
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(lv2-gui)
BuildRequires:	pkgconfig(lv2-plugin)
Requires:	lv2

%description
The Newtonator is an LV2 software synthesizer that uses a unique algorithm
based on simple ideas of velocity and acceleration to produce some
unpredictable sounds.

%files
%doc README RELEASE COPYING.Newtonator AUTHORS
%doc doc/*
%{_libdir}/lv2/*

#-----------------------------------------------------------------------------

%prep
%setup -q

find . -name *.h | xargs chmod 0644
find . -name *.cpp | xargs chmod 0644

echo /n >> doc/html/Newtonator-DocBook.proc
sed -i 's/\r//' doc/Newtonator-DocBook.xml 


%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%cmake -DLV2_INSTALL_DIR=%{_libdir}/lv2


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3607 |21cr|nexp-0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          nexp 
Version:       0.2
Release:       5
Summary:       Tool for browsing and monitoring KDE Nepomuk database
Group:         Graphical desktop/KDE
License:       GPLv3
Url:           http://gitorious.org/nexp/nexp-git 
Source:        122981-%name-%version.tar.gz
BuildRequires: kde4-macros
Requires:      python-qt4
BuildArch:     noarch

%description
NExp is Nepomuk Explorer.
A tool for browsing and monitoring KDE Nepomuk database.

%files 
%defattr(-,root,root)
%_kde_bindir/%name
%attr(755,root,root) %_kde_datadir/%name

#--------------------------------------------------------------------

%prep
%setup -q -n %name-%version

%build

%install
rm -rf %{buildroot}

%__mkdir -p %buildroot%_kde_datadir/%name
%__mkdir -p %buildroot%_kde_bindir/
cp -frv * %buildroot%_kde_datadir/%name/

pushd %buildroot%_prefix
ln -s %_kde_datadir/%name/main.py bin/%name
popd

%clean
rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3608 |21cr|neXtaw-0.15.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A NeXt lookalike widget set
Name:		neXtaw
Version:	0.15.1
Release:	16
License:	GPL-like
Group:		System/Libraries
Url:		http://siag.nu/neXtaw/#download
Source0:	%{name}-%{version}.tar.bz2
Patch0:		neXtaw-0.15.1-fix-link.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)

%description
A replacement library for the Athena (libXaw) widget set.
It is based on Xaw3d, by Kaleb Keithley.
Its goal is to try to emulate the look and feel of the N*XTSTEP GUI.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A NeXt lookalike widget set
Group:		System/Libraries

%description -n %{libname}
A replacement library for the Athena (libXaw) widget set.

%files -n %{libname}
%doc ChangeLog README*
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A NeXt lookalike widget set
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development libraries and header files for neXtaw.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog INSTALL README TODO
%{_includedir}/X11/%{name}/
%{_libdir}/lib*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3609 |21cr|nextcloud-24.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# It takes too long to detect empty Requires and Provides, just disable it
AutoReqProv:	0

Summary:	Open personal cloud
Name:		nextcloud
Version:	24.0.5
Release:	1
License:	AGPLv3
Group:		System/Servers
Url:		https://nextcloud.com
Source0:	https://download.nextcloud.com/server/releases/%{name}-%{version}.tar.bz2
Source2:	apache.example.conf
Source100:	%{name}.rpmlintrc
# apache
Requires:	config(apache-base)
Requires:	config(apache-mod_php)
# perl
Requires:	perl(Locale::PO)
Requires:	perl(Cwd)
Requires:	perl(Data::Dumper)
Requires:	perl(File::Basename)
Requires:	perl(File::Path)
Requires:	perl(Locale::PO)
# php
Requires:	php-apcu
Requires:	php-cli
Requires:	config(php-curl)
Requires:	config(php-gd)
Requires:	config(php-iconv)
Requires:	config(php-intl)
Requires:	config(php-ldap)
Requires:	config(php-mbstring)
Requires:	config(php-mcrypt)
Requires:	config(php-pdo_sqlite)
Requires:	config(php-pgsql)
Requires:	config(php-sqlite3)
Requires:	config(php-zip)
# Drop cacheing because of conflicts,Sflo
#Recommends:	config(php-xcache)
Requires:	mariadb
Requires:	samba-client
# Files preview
Requires:	ffmpeg
Recommends:	libreoffice
# For apache user and group
Requires(pre):	apache-base
Conflicts:	owncloud
BuildArch:	noarch

%description
Nextcloud is an open source, self-hosted file sync and share and communication
app platform. Access & sync your files, contacts, calendars & communicate and
collaborate across your devices.

%files
%doc AUTHORS
%attr(-,apache,apache) %{_datadir}/%{name}
# Not sure if this is useful...
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/.htaccess
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/apache.conf.example
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/config.sample.php

%post
ln -s %{_sysconfdir}/httpd/conf/webapps.d %{_datadir}/%{name}/config

%postun
rm -Rf %{_datadir}/%{name}/config

#--------------------------------------------------------------------

%prep
%setup -qn %{name}
sed -i "s|'appstoreenabled'.*|'appstoreenabled' => false,|" config/config.sample.php


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{_datadir}/%{name}
(
cd %{buildroot}%{_datadir}
tar xjf %{SOURCE0}
)

# Clean zero lenght files
find %{buildroot} -size 0 -delete

# Move config to /etc
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
mv %{buildroot}%{_datadir}/%{name}/config/config.sample.php %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
# Not sure if this is useful...
mv %{buildroot}%{_datadir}/%{name}/config/.htaccess %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d

# Install apache config file
install -m 644 %{SOURCE2}  %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/apache.conf.example

# fix some attr
find %{buildroot}%{_datadir}/nextcloud -type f -exec chmod 0644 {} \;
find %{buildroot}%{_datadir}/nextcloud -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3610 |21cr|nextcloud-desktop-3.13.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libnextcloudsync %mklibname nextcloudsync %{major}
%define libnextcloudcsync %mklibname nextcloud_csync %{major}
%define devname %mklibname nextcloudsync -d

Summary:	Desktop native client for your own Nextcloud
Name:		nextcloud-desktop
# latest version with qt5 support
Version:	3.13.3
Release:	1
License:	GPL2
Group:		Communications
Url:		https://github.com/nextcloud/desktop
Source0:	https://github.com/nextcloud/desktop/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	com.nextcloud.desktopclient.nextcloud.metainfo.xml
BuildRequires:	appstream-util
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	librsvg
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5archive-devel
BuildRequires:	kf5kio-devel
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	pkgconfig(cloudproviders)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(sqlite3)
Provides:	nextcloud-client = %{EVRD}
Provides:	nextcloud-client-dolphin = %{EVRD}
Provides:	nextcloud-client-nemo = %{EVRD}
Provides:	nextcloud-client-caja = %{EVRD}
Provides:	nextcloud-client-nautilus = %{EVRD}

%description
The Nextcloud Desktop Client is a tool to synchronize files from
Nextcloud Server with your computer.

%files
%{_bindir}/nextcloudcmd
%{_bindir}/nextcloud
%{_datadir}/caja-python/extensions
%{_datadir}/nautilus-python/extensions
%{_datadir}/nemo-python/extensions
%{_datadir}/nextcloud
%{_datadir}/mime/packages/nextcloud.xml
%{_datadir}/cloud-providers/com.nextcloudgmbh.Nextcloud.ini
%{_datadir}/dbus-1/services/com.nextcloudgmbh.Nextcloud.service
%{_datadir}/applications/com.nextcloud.desktopclient.nextcloud.desktop
%{_metainfodir}/com.nextcloud.desktopclient.nextcloud.metainfo.xml
%{_iconsdir}/hicolor/*/apps/Nextcloud*.png
%{_sysconfdir}/Nextcloud
%{_qt5_plugindir}/kf5/overlayicon/nextclouddolphinoverlayplugin.so
%{_qt5_plugindir}/kf5/kfileitemaction/nextclouddolphinactionplugin.so
%{_libdir}/nextcloudsync_vfs_xattr.so
%{_libdir}/nextcloudsync_vfs_suffix.so
%{_libdir}/libnextclouddolphinpluginhelper.so

#----------------------------------------------------------------------------

%package -n %{libnextcloudsync}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libnextcloudsync}
%{name} shared library.

%files -n %{libnextcloudsync}
%{_libdir}/libnextcloudsync.so.%{major}*
%{_libdir}/libnextcloudsync.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libnextcloudcsync}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libnextcloudcsync}
%{name} shared library.

%files -n %{libnextcloudcsync}
%{_libdir}/libnextcloud_csync.so.%{major}*
%{_libdir}/libnextcloud_csync.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of nextcloud
Group:		Development/Other
Requires:	%{libnextcloudsync} = %{EVRD}
Requires:	%{libnextcloudcsync} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers for nextcloud desktop client

%files -n %{devname}
%{_includedir}/nextcloudsync
%{_libdir}/libnextcloud_csync.so
%{_libdir}/libnextcloudsync.so

#----------------------------------------------------------------------------

%prep
%setup -q -n desktop-%{version}

%build
%cmake \
	-DBUILD_UPDATER:BOOL=OFF
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_metainfodir}
install -m 644 %{SOURCE1} %{buildroot}%{_metainfodir}/com.nextcloud.desktopclient.nextcloud.metainfo.xml

#squidf desktop entry clean up
sed -i "/CloudProviders/d" %{buildroot}%{_datadir}/applications/com.nextcloud.desktopclient.nextcloud.desktop
sed -i "/nextcloudgmbh/d" %{buildroot}%{_datadir}/applications/com.nextcloud.desktopclient.nextcloud.desktop

%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/com.nextcloud.desktopclient.nextcloud.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3611 |21cr|nexuiz-2.5.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 20091001

Summary:	An open source first-person shooter
Name:		nexuiz
Version:	2.5.2
Release:	8
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.nexuiz.com/
# (tpg) original source is here http://downloads.sourceforge.net/nexuiz/
# extract only needed files
# unzip -j nexuiz-25.zip Nexuiz/sources/enginesource%{date}.zip
Source0:	enginesource%{date}.zip
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)

%description
Nexuiz is a multiplayer 3D first-person shooter based upon a
heavily modified Quake 1 engine.

WARNING: This game contains violence that is not suitable for children.

#----------------------------------------------------------------------------

%package glx
Summary:	GLX client for the open source first-person shooter Nexuiz
Group:		Games/Arcade
Provides:	nexuiz = %{version}-%{release}
Requires:	nexuiz-data = %{version}

%description glx
Nexuiz is a multiplayer 3D first-person shooter based upon a
heavily modified Quake 1 engine.

This package contains the glx client.
It is known to be unstable on some systems, if you experience problems
please try the nexuiz-sdl package instead.

WARNING: This game contains violence that is not suitable for children.

%files glx
%doc darkplaces.txt
%{_gamesbindir}/nexuiz-glx
%{_gamesbindir}/nexuiz-glx.real
%{_datadir}/applications/%{name}-glx.desktop

#----------------------------------------------------------------------------

%package sdl
Summary:	SDL client for the open source first-person shooter Nexuiz
Group:		Games/Arcade
Provides:	nexuiz = %{version}-%{release}
Requires:	nexuiz-data = %{version}

%description sdl
Nexuiz is a multiplayer 3D first-person shooter based upon a
heavily modified Quake 1 engine.

This package contains the SDL client.

WARNING: This game contains violence that is not suitable for children.

%files sdl
%doc darkplaces.txt
%{_gamesbindir}/nexuiz-sdl
%{_gamesbindir}/nexuiz-sdl.real
%{_datadir}/applications/%{name}-sdl.desktop

#----------------------------------------------------------------------------

%package dedicated
Summary:	Dedicated server for Nexuiz
Group:		Games/Arcade
Requires:	nexuiz-data = %{version}

%description dedicated
Nexuiz is a multiplayer 3D first-person shooter based upon a
heavily modified Quake 1 engine.

This packages contains the dedicated server.

WARNING: This game contains violence that is not suitable for children.

%files dedicated
%doc darkplaces.txt
%{_gamesbindir}/nexuiz-dedicated
%{_gamesbindir}/nexuiz-dedicated.real

#----------------------------------------------------------------------------

%prep
%setup -q -n darkplaces
sed -i 's/\r//' darkplaces.txt
sed -i 's,/usr/X11R6/,/usr/,g' makefile makefile.inc

%build
%setup_compile_flags
%serverbuild

# Create main launch script
VARIANTS="sdl glx"
for TYPE in $VARIANTS; do
cat << LAUNCH_END > ./nexuiz-${TYPE}_launch
#!/bin/bash
# Mandriva launch script copyright (C) Eskild Hustvedt 2005, 2006
# Licensed under the GNU General Public License
cd %{_gamesdatadir}/nexuiz/
# Check if the user is running a GeForce FX card and doesn't already have a config file
if [ ! -e \$HOME/.nexuiz/ ]; then
	mkdir -p \$HOME/.nexuiz/data
        if [ "\`lspcidrake | grep -i nvidia | grep -i geforce | grep FX\`" = "" ]; then
                # Don't use GLSL
                echo 'r_glsl "0"' > \$HOME/.nexuiz/data/autoexec.cfg
        fi
# Set default video settings
cat << EOF > \$HOME/.nexuiz/data/config.cfg
vid_fullscreen "1"
vid_height "600"
vid_width "800"
EOF
fi
exec %{_gamesbindir}/nexuiz-${TYPE}.real "\$@"
LAUNCH_END
done

# Create the server launch script
cat << EOF > ./nexuiz-dedicated_launch
#!/bin/bash
cd %{_gamesdatadir}/nexuiz/
exec %{_gamesbindir}/nexuiz-dedicated.real "\$@"
EOF

# (tpg) build with mdv ldflags
sed -i -e 's@LDFLAGS_UNIXCOMMON=@LDFLAGS_UNIXCOMMON+=@g' makefile.inc

# Building breaks when using multiple jobs, so force one.
%make -j1 \
	release \
	CPUOPTIMIZATIONS="%{optflags}" \
	UNIX_X11LIBPATH=%{_libdir} \
	DP_FS_BASEDIR=%{_gamesdatadir}/%{name} \
	LDFLAGS_UNIXCOMMON="%{ldflags} -lm" \
	DP_LINK_TO_LIBJPEG="1" \
	STRIP=true

%install
install -m755 darkplaces-glx -D %{buildroot}%{_gamesbindir}/nexuiz-glx.real
install -m755 darkplaces-sdl -D %{buildroot}%{_gamesbindir}/nexuiz-sdl.real
install -m755 darkplaces-dedicated -D %{buildroot}%{_gamesbindir}/nexuiz-dedicated.real

install -m755 nexuiz-glx_launch -D %{buildroot}%{_gamesbindir}/nexuiz-glx
install -m755 nexuiz-sdl_launch -D %{buildroot}%{_gamesbindir}/nexuiz-sdl
install -m755 nexuiz-dedicated_launch -D %{buildroot}%{_gamesbindir}/nexuiz-dedicated

mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}-glx.desktop
[Desktop Entry]
Name=Nexuiz (glx client)
StartupNotify=true
Terminal=false
Type=Application
Icon=%{name}
Exec=%{_gamesbindir}/%{name}-glx
Categories=Game;ArcadeGame;
EOF
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}-sdl.desktop
[Desktop Entry]
Name=Nexuiz (sdl client)
StartupNotify=true
Terminal=false
Type=Application
Icon=%{name}
Exec=%{_gamesbindir}/%{name}-sdl
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3612 |21cr|nexuiz-data-2.5.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname nexuiz

Summary:	Data files for the open-source first-person shooter Nexuiz
Name:		%{oname}-data
Version:	2.5.2
Release:	8
License:	GPLv2+
Group:		Games/Other
URL:		http://www.nexuiz.com/
# (tpg) original source is here http://downloads.sourceforge.net/nexuiz/nexuiz-24.zip
# extract only needed files
# unzip nexuiz-252.zip
# mkdir nexuiz-data-2.5.2/
# mv Nexuiz/data/ Nexuiz/Docs Nexuiz/gpl.txt nexuiz-data-2.5.2/
# tar cYf nexuiz-data-2.5.2.tar.lzma nexuiz-data-2.5.2/
Source0:	%{oname}-data-%{version}.tar.lzma
Source11:	%{oname}-16x16.png
Source12:	%{oname}-32x32.png
Source13:	%{oname}-48x48.png
BuildArch:	noarch
Requires:	%{oname} = %{version}

%description
Nexuiz is a multiplayer 3D first-person shooter based upon a
heavily modified Quake 1 engine.

This package contains the data files for Nexuiz.

WARNING: This game contains violence that is not suitable for children.

%prep
%setup -q
chmod 644 *.txt
sed -i 's/\r//' Docs/*.htm* Docs/*.txt

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_gamesdatadir}/%{oname}/data/
install -m644 data/*.pk3 %{buildroot}%{_gamesdatadir}/%{oname}/data/
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{oname}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{oname}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{oname}.png

%post
%update_icon_cache hicolor

%postun
%clean_icon_cache hicolor

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc Docs
%{_gamesdatadir}/%{oname}
%{_iconsdir}/hicolor/*/apps/%{oname}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3613 |21cr|nfdump-1.6.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NetFlow collecting and processing tools
Name:		nfdump
Version:	1.6.23
Release:	1
License:	BSD and GPLv2+
Group:		Monitoring
Url:		https://github.com/phaag/nfdump
Source0:	https://github.com/phaag/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	bzip2-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(librrd)

%description
Nfdump is a set of tools to collect and process NetFlow data. It's fast and has
a powerful filter pcap like syntax. It supports NetFlow versions v1, v5, v7, v9
and IPFIX as well as a limited set of sflow. It includes support for CISCO ASA
(NSEL) and CISCO NAT (NEL) devices which export event logging records as v9
flows. Nfdump is fully IPv6 compatible.

%files
%doc AUTHORS ChangeLog LICENSE README.md
%{_bindir}/nfanon
%{_bindir}/nfcapd
%{_bindir}/nfdump
%{_bindir}/nfexpire
%{_bindir}/nfpcapd
%{_bindir}/nfprofile
%{_bindir}/nfreplay
%{_bindir}/nftrack
%{_bindir}/sfcapd
%{_mandir}/man1/ft2nfdump.1*
%{_mandir}/man1/nfanon.1*
%{_mandir}/man1/nfcapd.1*
%{_mandir}/man1/nfdump.1*
%{_mandir}/man1/nfexpire.1*
%{_mandir}/man1/nfprofile.1*
%{_mandir}/man1/nfreplay.1*
%{_mandir}/man1/sfcapd.1*

#----------------------------------------------------------------------------

%prep
%setup -q
chmod 0644 AUTHORS ChangeLog README.md

%build
# prepare build script
./bootstrap

%configure \
	--enable-nsel \
	--enable-nfprofile \
	--enable-nftrack \
	--enable-sflow \
	--enable-readpcap \
	--enable-nfpcapd \
	--disable-shared \
	--enable-static

# disable parallel build to get proper linking order
make

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/libnfdump.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3614 |21cr|nfoview-1.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple viewer for NFO files
Name:		nfoview
Version:	1.22
Release:	1
License:	GPLv3+
Group:		File tools
URL:		http://otsaloma.io/nfoview/
Source0:	https://github.com/otsaloma/nfoview/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	pygtk2.0
Requires:	pygtk2.0-libglade
Requires:	python3-gobject3
Recommends:	terminus-font
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	python3-devel
BuildRequires:	pygtk2.0
BuildRequires:	pygtk2.0-libglade
Requires(post):	desktop-common-data
Requires(postun): desktop-common-data
Requires(post):	desktop-file-utils
Requires(postun): desktop-file-utils
BuildArch:		noarch

%description
NFO Viewer is a simple viewer for NFO files, which are "ASCII" art in
the CP437 codepage. The advantages of using NFO Viewer instead of a
text editor are preset font and encoding settings, automatic window
size and clickable hyperlinks.

%prep
%setup -q

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}
%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc AUTHORS.md NEWS.md README.md TODO.md
%{_bindir}/nfoview
%{py3_puresitedir}/nfoview*
%{_datadir}/applications/nfoview.desktop
%{_mandir}/man1/nfoview.1*
%{_datadir}/nfoview
%{_datadir}/icons/hicolor/*/apps/nfoview.*
%{_datadir}/appdata/nfoview.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3615 |21cr|nfrotz-0.3.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Z-machine interpreter for Interactive Fiction games, with support for Unicode
Name:		nfrotz
Version:	0.3.3
Release:	7
License:	GPLv2+
Group:		Games/Other
Url:		http://www.stanford.edu/~mcmartin/if/
Source0:	http://mirror.ifarchive.org/if-archive/infocom/interpreters/frotz/%{name}-%{version}.tgz
Patch0:		nfrotz-0.3.3-no-strip.patch
BuildRequires:	pkgconfig(ncursesw)

%description
NFrotz is a Z-Machine interpreter. The Z-machine is a virtual machine
designed by Infocom to run all of their text adventures. It went
through multiple revisions during the lifetime of the company, and two
further revisions (V7 and V8) were created by Graham Nelson after the
company's demise. The specification is now quite well documented; this
version of Frotz supports version 1.1.

This version of Frotz fully supports all these versions of the Z-Machine
except for version 6. Version 6 is semi-supported by displaying the
outlines of V6 graphics with the picture number in the bottom-right corner.

NFrotz is a merged port of the original Unix Frotz, incorporating
extensions made by the WinFrotz port.
The primary visible difference between NFrotz and ordinary Frotz is
support for UTF-8 terminals and some awareness of iFiction-based meta-data
if present.

%files
%doc AUTHORS ChangeLog COPYING HOW_TO_PLAY README
%{_bindir}/*
%{_mandir}/man6/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

perl -pi -e "s|/lib/|/%{_lib}/|" configure

%build
%configure
%make OTHERCFLAGS="%{optflags}"

%install
make PREFIX=%{buildroot}%{_prefix} MAN_PREFIX=%{buildroot}%{_datadir} install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3616 |21cr|nfs4-acl-tools-0.3.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NFSv4 ACL tools
Name:		nfs4-acl-tools
Version:	0.3.3
Release:	7
Group:		System/Kernel and hardware
License:	LGPL and GPL
Url:		http://www.citi.umich.edu/projects/nfsv4/linux/
Source0:	http://www.citi.umich.edu/projects/nfsv4/linux/nfs4-acl-tools/%{name}-%{version}.tar.gz
Patch0:		nfs4-acl-tools-0.3.3-replace-strlcpy.patch
Patch1:		nfs4-acl-tools-xattr.patch
BuildRequires:	libtool
BuildRequires:	attr-devel
BuildRequires:	qt4-devel

%description
This package contains commandline ACL utilities for the Linux NFSv4 client.

%files
%doc README TODO VERSION INSTALL COPYING
%{_bindir}/nfs4_getfacl
%{_bindir}/nfs4_setfacl
%{_bindir}/nfs4_editfacl
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package gui
Summary:	GUI for for %{name}
Group:		System/Kernel and hardware

%description gui
This package contains GUI ACL utilities for the Linux NFSv4 client.

%files gui
%{_bindir}/nfs4-acl-editor

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make
cd GUI/nfs4-acl-editor
%qmake_qt4
%make

%install
%makeinstall_std
install -m 755 GUI/nfs4-acl-editor/nfs4-acl-editor %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3617 |21cr|nfswatch-4.99.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An NFS traffic monitoring tool
Name:		nfswatch
Version:	4.99.12
Release:	1
License:	BSD
Group:		Monitoring
Url:		http://nfswatch.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	nfswatch.init
Source2:	nfswatch.sysconfig
Source3:	nfswatch.logrotate
#Patch0:		nfswatch-4.99.11-tirpc.patch
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(ncurses)

%description
Nfswatch is a command-line tool for monitoring NFS traffic. Nfswatch can
capture and analyze the NFS packets on a particular network interface or on all
interfaces.

Install nfswatch if you need a program to monitor NFS traffic.

%files
%doc LICENSE README
%{_initrddir}/nfswatch
%config(noreplace) %{_sysconfdir}/sysconfig/nfswatch
%config(noreplace) %{_sysconfdir}/logrotate.d/nfswatch
%{_sbindir}/nfswatch
%{_sbindir}/nfslogsum
%{_mandir}/man8/*
%ghost %{_var}/log/nfswatch.log

%post
%_post_service nfswatch
%create_ghostfile %{_var}/log/nfswatch.log root root 0644

%preun
%_preun_service nfswatch

#----------------------------------------------------------------------------

%prep
%autosetup -p1

mkdir -p Mandriva
cp %{SOURCE1} Mandriva/nfswatch.init
cp %{SOURCE2} Mandriva/nfswatch.sysconfig
cp %{SOURCE3} Mandriva/nfswatch.logrotate

%build
%serverbuild

%make

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_var}/log
install -d %{buildroot}%{_mandir}/man8

install -m0755 nfswatch %{buildroot}%{_sbindir}/
install -m0755 nfslogsum %{buildroot}%{_sbindir}/
install -m0644 nfswatch.8 %{buildroot}%{_mandir}/man8/nfswatch.8
install -m0644 nfslogsum.8 %{buildroot}%{_mandir}/man8/nfslogsum.8

install -m755 Mandriva/nfswatch.init %{buildroot}%{_initrddir}/nfswatch
install -m644 Mandriva/nfswatch.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/nfswatch
install -m644 Mandriva/nfswatch.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/nfswatch

touch %{buildroot}%{_var}/log/nfswatch.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3618 |21cr|nftables-gui-0.1-0.git9edfbf.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global commit 9edfbf14583158334842411dce0f9a492909dbbb
%global commit_short %(echo %{commit} | head -c6)

Summary:	Graphical interface for nftables using ncurses
Name:		nftables-gui
Version:	0.1
Release:	0.git%{commit_short}.1
License:	MIT
Group:		Graphical desktop/Other
Url:		https://github.com/atErik/nftables-gui
Source0:	https://github.com/atErik/nftables-gui/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	pkgconfig(ncurses)

%description
Graphical interface for nftables written in c using ncurses
to facilitate the use of the nft tool.

%files
%doc Documentacion/*.pdf README.md 
%{_bindir}/nftables_gui

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3619 |21cr|nghttp2-1.39.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 14
%define	asiomajor 1
%define	libname %mklibname %{name}_ %{major}
%define	asiolibname %mklibname %{name}_asio %{asiomajor}
%define	develname %mklibname -d %{name}

#define	__noautoprov 'nghttp2.so'

Summary:	Experimental HTTP/2 client, server and proxy
Name:		nghttp2
Version:	1.39.2
Release:	1
License:	MIT
Group:		Networking/WWW
Url:		https://nghttp2.org/
Source0:	https://github.com/nghttp2/nghttp2/archive/%{name}-%{version}.tar.gz
Patch0:		nhgttp2-1.39.2-fix-build-error.patch
BuildRequires:	bison
BuildRequires:	cmake >= 3.0
BuildRequires:	libxml2-utils
# TODO: Make a python3 package
BuildRequires:	python-cython
BuildRequires:	python-setuptools
BuildRequires:	python-sphinx
BuildRequires:	ruby
BuildRequires:	boost-devel >= 1.54.0
BuildRequires:	jemalloc-devel
BuildRequires:	pkgconfig(cunit) >= 2.1
BuildRequires:	pkgconfig(jansson) >= 2.5
BuildRequires:	pkgconfig(libcares) >= 1.7.5
BuildRequires:	pkgconfig(libev) >= 4.11
BuildRequires:	pkgconfig(libevent) >= 2.0.8
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl) >= 1.0.1
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(zlib)

%description
Nghttp2 is a library implementing the Hypertext Transfer Protocol version 2
(HTTP/2) protocol in C; it implements also the header compression algorithm
HPACK in C.
This package contains the HTTP/2 client, server and proxy programs, and also
the encoder and decoder one.

%files
%doc AUTHORS COPYING README.rst
%{_bindir}/h2load
%{_bindir}/nghttp
%{_bindir}/nghttpd
%{_bindir}/nghttpx
%{_bindir}/deflatehd
%{_bindir}/inflatehd
%{_datadir}/%{name}
%{_mandir}/man1/h2load.1*
%{_mandir}/man1/nghttp.1*
%{_mandir}/man1/nghttpd.1*
%{_mandir}/man1/nghttpx.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library implementing the HTTP/2 protocol
Group:		System/Libraries

%description -n %{libname}
Nghttp2 is a library implementing the Hypertext Transfer Protocol version 2
(HTTP/2) protocol in C.
This package contains the main library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libnghttp2.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{asiolibname}
Summary:	Asynchronous I/O library implementing the HTTP/2 protocol
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{asiolibname}
Nghttp2 is a library implementing the Hypertext Transfer Protocol version 2
(HTTP/2) protocol in C.
This package contains the asynchronous I/O library for %{name}.

%files -n %{asiolibname}
%doc COPYING
%{_libdir}/libnghttp2_asio.so.%{asiomajor}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary: Files needed for building applications with libnghttp2
Group: Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{asiolibname} = %{EVRD}

%description -n %{develname}
The libnghttp2-devel package includes libraries and header files needed
for building applications with libnghttp2.

%files -n %{develname}
%doc COPYING
%{_includedir}/%{name}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#-----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	Python3 bindings for the %{name} HTTP/2 library
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python-%{name}
Python3 bindings for the %{name} HTTP/2 library.

%files -n python-%{name}
%doc COPYING
%{py_platsitedir}/*.so
%{py_platsitedir}/*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%cmake \
	-DLIBEV_INCLUDE_DIR=%{_includedir}/libev \
	-DENABLE_ASIO_LIB:BOOL=TRUE \
	-DENABLE_APP:BOOL=TRUE \
	-DENABLE_PYTHON_BINDINGS:BOOL=TRUE

%make


%install
%make_install -C build

# Will be installed via %%doc
rm -f %{buildroot}%{_datadir}/doc/nghttp2/README.rst

# Workaround for debuginfo shrinking by one byte
# https://bugzilla.redhat.com/show_bug.cgi?id=304121
strip -R .comment --strip-unneeded %{buildroot}%{_libdir}/python*/site-packages/*.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3620 |21cr|ngircd-26.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Next Generation IRC Daemon

Name:		ngircd
Version:	26.1
Release:	1
Group:		System/Servers
License:	GPLv2+
URL:		http://ngircd.barton.de/
Source0:	https://github.com/ngircd/ngircd/archive/refs/tags/rel-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	ngircd.service
Source3:	ngircd.pam
Source4:	ngircd.sysusers.conf
Patch0:		ngircd-24-default_config.diff
BuildRequires:	openssl-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	zlib-devel
BuildRequires:	pam-devel
Requires(pre):	/bin/systemd-sysusers
Requires(post):	systemd

%description
ngIRCd is a free open source daemon for Internet Relay Chat (IRC), developed
under the GNU General Public License (GPL). It's written from scratch and is
not based upon the original IRCd like many others.

%prep

%autosetup -p1 -n %{name}-rel-%{version}

cp %{SOURCE2} ngircd.service
cp %{SOURCE3} ngircd.pam

%build
%serverbuild

# to prevent nasty ipv6 surprises
export CFLAGS="$CFLAGS -D_GNU_SOURCE"
./autogen.sh
%configure \
    --enable-ipv6 \
    --with-syslog \
    --with-zlib \
    --with-epoll \
    --with-openssl \
    --with-tcp-wrappers \
    --with-pam

%make

%install

install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/pam.d

%makeinstall_std

install -m0755 ngircd.service %{buildroot}%{_unitdir}/
install -m0660 doc/sample-ngircd.conf %{buildroot}%{_sysconfdir}/ngircd.conf
install -m644 ngircd.pam %{buildroot}%{_sysconfdir}/pam.d/ngircd

echo "%{name}-%{version}-%{release}"  %{buildroot}%{_sysconfdir}/ngircd.motd
rm -rf %{buildroot}%{_docdir}/ngircd

mkdir -p %{buildroot}%{_tmpfilesdir}
cat <<EOF > %{buildroot}%{_tmpfilesdir}/%{name}.conf
d /run/ngircd 0775 root ngircd
EOF

touch %{buildroot}%{_sysconfdir}/ngircd.motd

# install sysuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/ngircd.conf

%pre
%sysusers_create_package ngircd %{SOURCE4}

%post
%systemd_post ngircd.service

%preun
%systemd_preun ngircd.service

%postun
%systemd_postun_with_restart ngircd.service

%files
%doc AUTHORS COPYING ChangeLog NEWS README* doc/*
%attr(0660,root,ngircd) %config(noreplace) %{_sysconfdir}/ngircd.conf
%attr(0660,root,ngircd) %ghost %config(noreplace) %{_sysconfdir}/ngircd.motd
%config(noreplace) %{_sysconfdir}/pam.d/ngircd
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/ngircd.service
%{_sbindir}/ngircd
%{_mandir}/man5/ngircd.conf*
%{_mandir}/man8/ngircd.8*
%{_sysusersdir}/ngircd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3621 |21cr|ngrep-1.47-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}
%define url_ver %(echo %{version}|tr . _)

Summary:	Network Traffic sniffer, with pattern matching like grep
Name:		ngrep
Version:	1.47
Release:	1
License:	BSD
Group:		Networking/Other
Url:		https://github.com/jpr5/ngrep
Source0:	https://github.com/jpr5/ngrep/archive/refs/tags/V%{url_ver}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pcap-devel

%description
ngrep strives to provide most of GNU grep's common features,
applying them to the network layer.  ngrep is a pcap-aware tool
that will allow you to specify extended regular or hexadecimal
expressions to match against data payloads of packets. It
currently recognizes TCP, UDP and ICMP across Ethernet, PPP, SLIP,
FDDI, Token Ring and null interfaces, and understands bpf filter
logic in the same fashion as more common packet sniffing tools,
such as tcpdump and snoop.

%files
%doc README* CHANGES CREDITS
%license LICENSE
%{_bindir}/%{name}
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{url_ver}

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

find . -name "Makefile*" -o -name "*.m4" -o -name "configure*" |xargs sed -i -e 's,configure.in,configure.ac,g'

%build
autoreconf -fis

%configure \
	--enable-ipv6 \
	--with-pcap-includes=%{_includedir}/pcap \
	--disable-pcap-restart

make

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man8

install -m0755 %{name} %{buildroot}%{_bindir}/%{name}
install -m0644 %{name}.8 -D %{buildroot}%{_mandir}/man8/%{name}.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3622 |21cr|ngspice-43-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname ngspice %{major}
%define	devname %mklibname ngspice -d

Summary:	It is a mixed-level/signal circuit simulator
Name:		ngspice
Version:	43
Release:	1
License:	BSD
Group:		Sciences/Computer science
Url:		https://sourceforge.net/projects/ngspice/
Source0:	https://github.com/imr/ngspice/archive/%{name}-%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	gomp-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(xaw7)

%description
Ngspice is a mixed-level/mixed-signal circuit simulator. Its code
is based on three open source software packages: Spice3f5, Cider1b1
and Xspice.

%files
%doc AUTHORS README
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/scripts
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1.xz

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Ngspice Library
Group:		System/Libraries

%description -n %{libname}
This package contains the Ngspice Library.

%files -n %{libname}
%{_libdir}/libngspice.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for Ngspice.

%files -n %{devname}
%{_includedir}/%{name}/*.h
%{_libdir}/libngspice.so
%{_libdir}/pkgconfig/ngspice.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}
cp -R ../%{name}-%{name}-%{version} ../%{name}

%build
./autogen.sh
%configure \
	--enable-cider	\
	--enable-openmp	\
	--enable-pss	\
	--enable-xspice \
	--enable-shared \
	--with-readline=yes 
%make

pushd ../%{name}
./autogen.sh
%configure \
	--enable-cider	\
	--enable-openmp	\
	--enable-pss	\
	--with-ngshared \
	--with-readline=yes 
%make
popd

%install
%makeinstall_std

pushd ../%{name}
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3623 |21cr|nifti-2.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Read and write files in the nifti-1 data format
Name:		nifti
Version:	2.0.0
Release:	6
License:	Public domain
Group:		Sciences/Other
Source0:	http://sourceforge.net/projects/niftilib/files/nifticlib/nifticlib_2_0_0/nifticlib-2.0.0.tar.gz
Url:		http://niftilib.sourceforge.net
Patch0:		nifticlib-2.0.0-cmake.patch
Patch1:		nifticlib-2.0.0-underlink.patch
Patch2:		nifticlib-2.0.0-libdir.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(zlib)

%description
Niftilib is a set of i/o libraries for reading and writing files in the
nifti-1 data format. nifti-1 is a binary file format for storing medical
image data, e.g. magnetic resonance image (MRI) and functional MRI (fMRI)
brain images.

%files
%{_bindir}/*

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:	Read and write files in the nifti-1 data format
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}

%description -n %{libname}
Niftilib is a set of i/o libraries for reading and writing files in the
nifti-1 data format. nifti-1 is a binary file format for storing medical
image data, e.g. magnetic resonance image (MRI) and functional MRI (fMRI)
brain images.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:	Read and write files in the nifti-1 data format
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Niftilib is a set of i/o libraries for reading and writing files in the
nifti-1 data format. nifti-1 is a binary file format for storing medical
image data, e.g. magnetic resonance image (MRI) and functional MRI (fMRI)
brain images.

%files -n %{devname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/*.so

#-----------------------------------------------------------------------

%prep
%setup -q -n %{name}clib-%{version}

%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%cmake \
	-DNIFTI_INSTALL_LIB_DIR:PATH=%{_libdir}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3624 |21cr|nikto-2.1.6-1.20210917
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude perl\\(.*\\)

# exclude self provided
%global __requires_exclude perl\\(plugins::LW2\\)

# The last official release (2.1.6) was in Jun 2015.
# While it's true that the user can easily update plugins and databases
# from the main site within the program itself, it's better to install
# up-to-date ones from the start: so package a recent devel snaphsot (24/08/2018)
%define	gitdate	20210917

Summary:	Web Server and CGI Scanner
Name:		nikto
Version:	2.1.6
Release:	1.%{gitdate}
License:	GPLv2+
Group:		Monitoring
Url:		https://cirt.net/Nikto2
Source0:	%{name}-%{version}.tar.gz
Patch0:		%{name}-2.1.6-fhs-paths.patch
BuildArch:	noarch

%description
Nikto is a web server scanner which performs comprehensive tests against web
servers for multiple items, including over 3200 potentially dangerous
files/CGIs, versions on over 625 servers, and version specific problems on
over 230 servers. Scan items and plugins are frequently updated and can be
automatically updated (if desired).

%files
%doc README* COPYING
%doc program/docs/nikto_manual.html program/docs/nikto.dtd
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}
%{_bindir}/replay
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
# Perl scripts: nothing to do...


%install
# No install scripts: go manually...
pushd program
# 1. Install perl scripts
install -d -m 755 %{buildroot}%{_bindir}
install -m0755 nikto.pl %{buildroot}%{_bindir}/%{name}
install -m0755 replay.pl %{buildroot}%{_bindir}/replay
# 2. Install config file
install -d -m 755 %{buildroot}%{_sysconfdir}
install -m0644 nikto.conf.default %{buildroot}%{_sysconfdir}/nikto.conf
# 3. Install needed support files
install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -pr plugins %{buildroot}%{_datadir}/%{name}
cp -pr templates %{buildroot}%{_datadir}/%{name}
cp -pr databases %{buildroot}%{_datadir}/%{name}
# 4. Install man page
install -d %{buildroot}%{_mandir}/man1
install -m0644 docs/%{name}.1 %{buildroot}%{_mandir}/man1
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3625 |21cr|nini-1.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	An uncommonly powerful .NET configuration library
Name:		nini
Version:	1.1.0
Release:	5
Group: 		Development/Other
License:	X11/MIT
URL: 		http://nini.sourceforge.net/
Source0: 	Nini-%{version}.zip
BuildArch:	noarch

BuildRequires:	mcs
BuildRequires:	nant
BuildRequires:	unzip
BuildRequires: 	mono-devel
    
%description
Nini is an uncommonly powerful .NET configuration library designed to help 
build highly configurable applications quickly.
       
%prep
%setup -qn Nini
       
%build
cd Source
mcs -target:library -out:Nini.dll -reference:System.dll -reference:System.Xml.dll -define:MONO_1_1 -define:NOSTRONG AssemblyInfo.cs Ini/*.cs Config/*.cs Util/*.cs
cat << EOF > nini-1.1.pc
prefix=%{_prefix}
assemblies_dir=\${prefix}/lib/nini
Libraries=\${assemblies_dir}/Nini.dll

Name: Nini
Description: An uncommonly powerful .NET configuration library
Version: %{version}
Libs: -r:Nini.dll
EOF

%install
cd Source
mkdir -p %{buildroot}%{_prefix}/lib/nini
cp Nini.dll %{buildroot}%{_prefix}/lib/nini/
mkdir -p %{buildroot}%{_datadir}/pkgconfig
cp nini-1.1.pc %{buildroot}%{_datadir}/pkgconfig/

%files
%{_prefix}/lib/nini
%{_datadir}/pkgconfig/nini-1.1.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3626 |21cr|ninvaders-0.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Space Invaders clone written in ncurses for cli gaming
Name:		ninvaders
Version:	0.1.1
Release:	5
License:	GPLv2+
Group:		Games/Arcade
Url:		http://ninvaders.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		ninvaders-0.1.1-add-debuginfo.patch
BuildRequires:	pkgconfig(ncurses)

%description
Ever wanted to place space invaders when you can't find a GUI? Now you can!
ninvaders is a ncurses based space invaders clone to play from the command
line.

%files
%doc ChangeLog README gpl.txt
%{_bindir}/ninvaders

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -c -m0755 nInvaders %{buildroot}%{_bindir}/ninvaders


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3627 |21cr|nip2-8.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI Interface for libvips image manipulation tool library
Name:		nip2
Version:	8.7.1
Release:	1
License:	LGPLv2+
Group:		Video
Url:		https://github.com/libvips/nip2
Source0:	https://github.com/libvips/nip2/releases/download/v%{version}/nip2-%{version}.tar.gz
Patch0:		nip2-icu68.patch
BuildRequires:	bison
BuildRequires:	flex >= 2.5.36
BuildRequires:	gettext
BuildRequires:	graphviz
BuildRequires:	imagemagick
BuildRequires:	perl(XML::Parser)
# It tests for xdg-open - AdamW
BuildRequires:	xdg-utils
# It tests for update-{mime,desktop}-database,
# but we don't use them at build time
#BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.24
BuildRequires:	pkgconfig(glib-2.0) >= 2.14
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(vips) >= %{version}
Requires:	xdg-utils

%description
This program aims to be about halfway between Excel and Photoshop. You don't
directly edit images - instead, like a spreadsheet, you build relationships
between objects. When you make a change somewhere, nip2 will recalculate the
objects affected by that change. Since it is demand-driven this update is
usually (almost) instant, even for very, very large images.

%files -f %{name}.lang
%doc %{_defaultdocdir}/%{name}
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/*
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/mime/packages/%{name}.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
./autogen.sh
%configure --disable-update-desktop
%make


%install
%makeinstall_std

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -scale 16x16 proj/src/nip.ico %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -scale 32x32 proj/src/nip.ico %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 48x48 proj/src/nip.ico %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3628 |21cr|nitrogen-1.6.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        A wallpaper setter
Name:           nitrogen
Version:        1.6.1
Release:        3
License:        GPLv2
Group:          Graphical desktop/Other
Url:            https://github.com/l3ib/nitrogen
Source0:		https://github.com/l3ib/nitrogen/releases/download/%{version}/nitrogen-%{version}.tar.gz
BuildRequires:  gettext-devel
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtkmm-2.4)

%description
Nitrogen is a background browser and setter for X. It is written in C++
using the gtkmm toolkit. It can be used in two modes: browser and recall.
It is multi-head friendly and can even work in GNOME.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/*/*.png
%{_mandir}/*/%{name}.*.xz
#----------------------------------------------------------------------------

%prep
%setup -q

%build
# For gcc5:
export CXXFLAGS="%{optflags} -std=c++11"
autoreconf -fi
%configure
%make

%install
%makeinstall_std
%find_lang %{name}

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Nitrogen
Comment=Change wallpapers
Comment[ru]=Смена обоев рабочего стола
Exec=nitrogen
Icon=graphics_section.png
Terminal=false
Type=Application
StartupNotify=true
Categories=Settings;DesktopSettings;X-MandrivaLinux-System-Configuration;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3629 |21cr|nitroshare-0.3.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define urlver %(echo %{version}|cut -d. -f1,2)

Summary:	A simple tool for sending files to other machines on a local network
Name:		nitroshare
Version:	0.3.4
Release:	6
License:	MIT
Group:		Networking/File transfer
Url:		https://nitroshare.net
# https://github.com/nitroshare/nitroshare-desktop
Source0:	https://launchpad.net/nitroshare/%{urlver}/%{version}/+download/%{name}-%{version}.tar.gz
Source1:	https://launchpad.net/nitroshare/%{urlver}/%{version}/+download/%{name}-%{version}.tar.gz.asc
Source2:	nitroshare-0.3.4_ru.tar.gz
Patch0:		nitroshare-0.3.4-desktop_file.patch
Patch1:		nitroshare-0.3.4-include.patch
BuildRequires:	cmake
BuildRequires:	kde5-macros
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5DBus)
# extra BRs needed for Mate, Gnome and Cinnamon DEs
BuildRequires:	pkgconfig(appindicator-0.1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libnotify)

%description
A cross-platform network file transfer application designed to make
transferring any file to any device as painless as possible.

Features:
  * Automatic discovery of devices on the local network.
  * Simple and intuitive user interface.
  * Transfer entire directories.

%files
%doc README.md
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_kde5_services}/nitroshare_addtoservicemenu.desktop
%{_iconsdir}/hicolor/*/*/%{name}*.svg
%{_iconsdir}/breeze*/*/*/%{name}*.svg
%{_mandir}/man1/%{name}.1*
%{_iconsdir}/gnome/24x24/apps/nitroshare-indicator.png
%{_iconsdir}/ubuntu-mono-dark/apps/22/nitroshare-indicator.png
%{_iconsdir}/ubuntu-mono-dark/apps/24/nitroshare-indicator.svg
%{_iconsdir}/ubuntu-mono-light/apps/22/nitroshare-indicator.png
%{_iconsdir}/ubuntu-mono-light/apps/24/nitroshare-indicator.svg

#----------------------------------------------------

%package nautilus
Summary:	Nautilus extension for Nitroshare
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{EVRD}
Requires:	nautilus-python
BuildArch:	noarch

%description nautilus
The %{name}-nautilus package contains the %{name} extension for the
nautilus file manager.

%files nautilus
%doc README.md
%{_datadir}/nautilus-python/extensions/*

#----------------------------------------------------

%package caja
Summary:	Caja extension for Nitroshare
Group:		Graphical desktop/MATE
Requires:	%{name} = %{EVRD}
Requires:	python3-caja
BuildArch:	noarch

%description caja
The %{name}-caja package contains the %{name} extension for the
caja file manager.

%files caja
%doc README.md
%{_datadir}/caja-python/extensions/*

#----------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

pushd src/data/ts
tar -xvzf %{SOURCE2}
popd

%build
%cmake_qt5

%make

# Caja is GTK2 so fix version of typelib(Gtk;Caja)
sed -i -e "s|'3.0'|'2.0'|g" src/dist/nitroshare_caja.py

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_datadir}/nemo-python/extensions/*.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3630 |21cr|nixnote-2.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nixnote2
%global __requires_exclude libcurl\\.so(.*)

Summary:	Evernote-clone. Use with Evernote to remember everything
Name:		nixnote
Version:	2.0.2
Release:	2
License:	GPLv2+
Group:		Networking/Other
Url:		http://nevernote.sourceforge.net/
Source0:	https://github.com/baumgarr/nixnote2/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source2:	nixnote2_ru.tar.gz
Patch0:		nixnote-opencv.patch
BuildRequires:	qmake5
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	opencv-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Qml)
Requires:	java-openjdk
%ifarch %{ix86}
Requires:	libpng0
%else
Requires:	lib64png0
%endif
Obsoletes:	nevernote < %{EVRD}

%description
Evernote-clone. Use with Evernote to remember everything

%files
%{_bindir}/%{oname}
%{_libdir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/%{oname}
%{_docdir}/%{oname}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

pushd translations
tar -xvzf %{SOURCE2}
popd

#fix wrong install path via `make install`
sed -i 's:/usr/local:%{buildroot}/usr:' NixNote2.pro

%build
%qmake_qt5 NixNote2.pro
%make

# Build the plugins
pushd plugins/hunspell
%qmake_qt5 Hunspell.pro
%make
popd

pushd plugins/webcam
%qmake_qt5 WebCam.pro
%make
popd

%install
%makeinstall_std

install -m644 theme.ini %{buildroot}%{_datadir}/%{oname}/theme.ini

mkdir -p %{buildroot}%{_libdir}/%{oname}/plugins
install -m755 plugins/*so %{buildroot}%{_libdir}/%{oname}/plugins/
# Binaries should really be in lib, not share
ln -s ../../%{_lib}/%{oname}/plugins %{buildroot}%{_datadir}/%{oname}/plugins

sed -i 's:nevernote:nixnote:g' shortcuts_howto.txt
install -Dm644 shortcuts_howto.txt %{buildroot}%{_docdir}/%{oname}/shortcuts_howto.txt
install -Dm644 shortcuts.txt %{buildroot}%{_docdir}/%{oname}/shortcuts_sample.txt

install -Dm644 images/nixnote2.png %{buildroot}%{_datadir}/%{oname}/images/nixnote2.png
install -Dm644 images/nixnote2.png %{buildroot}%{_datadir}/%{oname}/pixmaps/nixnote2.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3631 |21cr|njam-1.25-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		njam
Version:	1.25
Release:	4
Summary:	Maze-game, eat all the cookies while avoiding the badguys
Group:		Games/Arcade 
License:	GPLv2+
URL:		http://njam.sourceforge.net/
Source0:	%{name}-%{version}-src.tar.gz
Source1:	njam.6
Source2:	njam.desktop
Patch0:		njam-1.25-drop-setgid.patch
Patch1:		njam-1.25-html.patch
Patch2:		njam-1.25-leveledit.patch
Patch3:		njam-1.25-gcc45.patch
BuildRequires:	SDL-devel SDL_mixer-devel SDL_image-devel SDL_net-devel 
BuildRequires:	imagemagick desktop-file-utils
Requires:	hicolor-icon-theme 

%description
Njam is a fast-paced maze-game where you must eat all the cookies while
avoiding the badguys. Special cookies give you the power to freeze or eat the
bad guys. The game features single and multiplayer modes, network play,
duelling and cooperative games, great music and sound effects, customizable
level skins, many different levels and an integrated level editor.


%prep
%setup -q -n %{name}-%{version}-src
%patch0 -p1 -z .setgid
%patch1 -p1
%patch2 -p1 -z .leveledit
%patch3 -p1


%build
#export	CFLAGS=" $ RPM_OPT_FLAGS"
export	CFLAGS='-O2 -g -frecord-gcc-switches -Wstrict-aliasing=2 -pipe -Wformat -Wp,-D_FORTIFY_SOURCE=2 -fstack-protector --param=ssp-buffer-size=4 -fPIC'
export	CXXFLAGS="$CFLAGS"
%configure

make 
#% {?_smp_mflags}
convert -transparent black njamicon.ico %{name}.png


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT

# make install installs the docs under /usr/share/njam. We want them in % doc.
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/README
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/levels/readme.txt
rm -fr $RPM_BUILD_ROOT%{_datadir}/%{name}/html

# clean up cruft
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}.*
rm $RPM_BUILD_ROOT%{_datadir}/%{name}/njamicon.ico

# we want the hiscore in /var/lib/games
mkdir -p $RPM_BUILD_ROOT%{_var}/lib/games
mv $RPM_BUILD_ROOT%{_datadir}/%{name}/hiscore.dat \
  $RPM_BUILD_ROOT%{_var}/lib/games/%{name}.hs

# add the manpage (courtesy of Debian)
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mandir}/man6

# below is the desktop file and icon stuff.
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
desktop-file-install --vendor mandriva		\
  --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  %{SOURCE2}
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
install -p -m 644 %{name}.png \
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps


%clean
rm -rf $RPM_BUILD_ROOT


%post
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi


%files
%defattr(-,root,root,-)
%doc COPYING ChangeLog NEWS README TODO levels/readme.txt html
%attr(2755,root,games) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man6/%{name}.6.xz
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%config(noreplace) %attr (0664,root,games) %{_var}/lib/games/%{name}.hs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3632 |21cr|nkf-2.1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network Kanji code conversion Filter
Name:		nkf
Version:	2.1.4
Release:	5
License:	BSD
Group:		System/Internationalization
Url:		http://sourceforge.jp/projects/nkf/
Source0:	http://prdownloads.sourceforge.jp/nkf/20055/%{name}-%{version}.tar.gz
BuildRequires:	perl-devel

%description
Nkf is a yet another kanji code converter among networks, hosts and
terminals.  It converts input kanji code to designated kanji code such
as 7-bit JIS, MS-kanji (shifted-JIS) or EUC.

%files
%doc nkf.doc
%{_bindir}/nkf
%{_mandir}/man1/nkf.1*
%{_mandir}/ja/man1/nkf.1*

#----------------------------------------------------------------------------

%package -n perl-nkf
Summary:	Perl extension for Network Kanji Filter
%rename perl-NKF

%description -n perl-nkf
This is a Perl Extension version of nkf (Netowrk Kanji Filter).
It converts the last argument and return converted result. Conversion
details are specified by flags before the last argument.

%files -n perl-nkf
%{perl_vendorarch}/NKF.pm
%{perl_vendorarch}/auto/NKF
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CFLAGS="%{optflags}" nkf

pushd NKF.mod
perl Makefile.PL INSTALLDIRS=vendor
%make  CFLAGS='%{optflags}'
popd

%install
install -d %{buildroot}%{_bindir}
install -m 755 nkf %{buildroot}%{_bindir}

install -d %{buildroot}%{_mandir}/man1
install -m 644 nkf.1 %{buildroot}%{_mandir}/man1

install -d %{buildroot}%{_mandir}/ja/man1
install -m 644 nkf.1j %{buildroot}%{_mandir}/ja/man1/nkf.1

pushd NKF.mod
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3633 |21cr|nload-0.7.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ncurses network traffic and bandwidth monitor
Name:		nload
Version:	0.7.4
Release:	5
License:	GPLv2+
Group:		Monitoring
Url:		http://www.roland-riegel.de/nload/index.html?lang=en
Source0:	http://www.roland-riegel.de/nload/%{name}-%{version}.tar.gz
BuildRequires:	ncurses-devel

%description
nload is a console application which monitors network traffic and bandwidth
usage in real time. It visualizes the in- and outgoing traffic using two
graphs and provides additional info like total amount of transfered data and
min/max network usage.

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%{_mandir}/man1/nload*
%{_bindir}/nload

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-debug
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3634 |21cr|nmap2nagios-0.1.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generates template-based object configuration files for Nagios
Name:		nmap2nagios
Version:	0.1.3a
Release:	7
License:	Artistic
Group:		Networking/Other
URL:		http://nagios.sourceforge.net/download/contrib/addons/
Source0:	nmap2nagios-0.1.2.tar.bz2
Source1:	nmap2nagios-ng.zip
Requires:	nmap
Requires:	perl-XML-Simple
#BuildRequires:	perl
BuildArch:	noarch

%description
nmap2nagios is a script for generating template-based object configuration
files (containing defintions for hosts, services, etc.) from Nmap XML output.
It is also possible to generate the older "default" object configuration files
by using the nmap2netsaint.conf file. 

%prep

%setup -q -n nmap2nagios-0.1.2
unzip -o %{SOURCE1}
perl -p -i -e "s|/usr/local/|/usr/|g" *

%build

# make a man page
pod2man nmap2nagios-ng.pl > nmap2nagios.1

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 nmap2nagios-ng.pl %{buildroot}%{_bindir}/nmap2nagios.pl
install -m0644 nmap2nagios.1 %{buildroot}%{_mandir}/man1/nmap2nagios.1
install -m0644 nmap2nagios_3x.conf %{buildroot}%{_sysconfdir}/nmap2nagios.conf

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog README nmap2netsaint.conf nmap2nagios.conf
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/%{name}.pl
%attr(0644,root,root) %{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3635 |21cr|nmapsi4-0.4.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt4-based GUI to provide a complete nmap interface
Name:		nmapsi4
Version:	0.4.1
Release:	3
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.nmapsi4.org/
Source0:	http://nmapsi4.googlecode.com/files/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	nmap
BuildRequires:	kdelibs4-devel
Requires:	nmap

%description
NmapSI4 is a Qt4-based GUI with the design goals to provide a complete
nmap interface for users, in order to management all option of this power
security net scanner.

%files
%doc AUTHORS README NEWS TODO NEWS
%{_bindir}/nmapsi4
%{_kde_applicationsdir}/nmapsi4*.desktop
%{_kde_iconsdir}/hicolor/*/apps/nmapsi4.png
%{_datadir}/dbus-1/interfaces/org.nmapsi4.Nmapsi4.xml
%{_datadir}/nmapsi4/locale/nmapsi4_*.qm

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3636 |21cr|nmh-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A capable mail handling system with a command line interface
Name:		nmh
Version:	1.7.1
Release:	1
License:	BSD-style
Group:		Networking/Mail
Url:		http://savannah.nongnu.org/projects/nmh/
Source0:	https://download.savannah.nongnu.org/releases/nmh/nmh-%{version}.tar.gz
Source1:	procmailrc.example
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	sendmail-command
BuildRequires:	vim-minimal
BuildRequires:	db-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
Provides:	mh = %{EVRD}

%description
Nmh is an email system based on the MH email system and is intended to
be a (mostly) compatible drop-in replacement for MH.  Nmh isn't a
single comprehensive program.  Instead, it consists of a number of
fairly simple single-purpose programs for sending, receiving, saving,
retrieving and otherwise manipulating email messages.  You can freely
intersperse nmh commands with other shell commands or write custom
scripts which utilize nmh commands.  If you want to use nmh as a true
email user agent, you'll want to also install exmh to provide a user
interface for it--nmh only has a command line interface.

If you'd like to use nmh commands in shell scripts, or if you'd like to
use nmh and exmh together as your email user agent, you should install
nmh.

%files
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_libexecdir}/%{name}/*
%dir %{_sysconfdir}/nmh
%config (noreplace) %{_sysconfdir}/nmh/*
%{_mandir}/man[1578]/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

cp %{SOURCE1} .

%build
autoreconf -fi
%configure \
	--with-mts=sendmail \
	--libdir=%{_libdir}/nmh \
	--sysconfdir=%{_sysconfdir}/nmh \
	--with-locking=fcntl \
	--with-tls

make

%install
# XXX unnecessary because DOT_LOCKING is disabled
make DESTDIR=%{buildroot} MAIL_SPOOL_GRP=$(id -gn) install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3637 |21cr|nmis-2.00-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_version %(echo %version | sed -e 's/\\./-/')

Name:		nmis
Version:	2.00
Release:	10
Summary:	Network Management Information System
License:	GPL
Group:		Networking/WWW
URL:		http://nmis.sourceforge.net/
Source:     http://www.sins.com.au/public/%{name}-%{up_version}.tar.gz
Patch0:     %{name}-2.00-fhs.patch
Patch1:     %{name}-2.00-no-ksh.patch
BuildArch:	noarch

%description
NMIS stands for Network Management Information System.  It is a Network
Management System which performs multiple functions from the OSI Network
Management Functional Areas, those being, Performance, Configuration, Fault.

%prep
%setup -q -n %{name}-%{up_version}
%patch0 -p1
%patch1 -p1

%build

%install
install -d -m 755 %{buildroot}%{_var}/www/%{name}
install -m 755 cgi-bin/* %{buildroot}%{_var}/www/%{name}

install -d -m 755 %{buildroot}%{_datadir}/%{name}/lib
install -m 644 lib/* %{buildroot}%{_datadir}/%{name}/lib

install -d -m 755 %{buildroot}%{_datadir}/%{name}/bin
install -m 755 bin/* %{buildroot}%{_datadir}/%{name}/bin

install -d -m 755 %{buildroot}%{_datadir}/%{name}/mibs
install -m 644 mibs/* %{buildroot}%{_datadir}/%{name}/bin

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 conf/nmis-sample.conf \
    %{buildroot}%{_sysconfdir}/%{name}/nmis.conf
install -m 644 conf/nodes-sample.csv \
    %{buildroot}%{_sysconfdir}/%{name}/nodes.csv
install -m 644 conf/locations-sample.csv \
    %{buildroot}%{_sysconfdir}/%{name}/locations.csv
install -m 644 conf/contacts-sample.csv \
    %{buildroot}%{_sysconfdir}/%{name}/contacts.csv

install -d -m 755 %{buildroot}%{_var}/lib/%{name}
install -d -m 755 %{buildroot}%{_var}/log/%{name}

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# %{name} Apache configuration
Alias /%{name} %{_var}/www/%{name}

<Directory %{_var}/www/%{name}>
    Require all granted
    Options ExecCGI
    AddHandler cgi-script .pl
    DirectoryIndex nmiscgi.pl
</Directory>
EOF

%files
%doc README gpl.txt changes.txt htdocs/*
%config(noreplace) %{_webappconfdir}/%{name}.conf
%{_var}/www/%{name}
%{_var}/lib/%{name}
%{_var}/log/%{name}
%{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3638 |21cr|nml-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Dropped noarch qualify to really fix build on i586
%global	debug_package %{nil}

Summary:	A tool to compile nml files to grf or nfo formats
Name:		nml
Version:	0.7.0
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/openttd/nml
Source0:	https://github.com/OpenTTD/nml/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-pillow
BuildRequires:	python3-ply
BuildRequires:	pkgconfig(python3)
Requires:	python3 >= 3.5
Requires:	python3-ply
Requires:	python3-pillow
Requires:	python3-pkg-resources
# Drop this because otherwise there is no way to handle
# the files being put in %%{py3_platsitedir} on x86_64
#BuildArch:	noarch
Conflicts:	     %{name} < %{EVRD}

%description
A python3-based tool to compile nml files to grf and/or nfo files. NML is a
meta-language that aims to be a lot simpler to learn and use than nfo.

%files
%doc docs/* examples/
%{_bindir}/nmlc
%{_mandir}/man1/nmlc.1.*
%{py3_platsitedir}/%{name}-%{version}-py*.egg-info/*
%{py3_platsitedir}/%{name}/*
%{py3_platsitedir}/%{name}*.so

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%py3_build


%install
export PYTHONPATH=%{buildroot}%{py3_platsitedir}
%py3_install

# We handle docs in files section
rm -rf %{buildroot}%{_defaultdocdir}

# Install man pages
install -Dpm655 docs/nmlc.1 %{buildroot}%{_mandir}/man1/nmlc.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3639 |21cr|nmon-16n-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Performance analysis tool
Name:		nmon
Version:	16n
Release:	1
License:	GPLv3
Group:		Monitoring
URL:		http://nmon.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/lmon%{version}.c
Source1:	http://downloads.sourceforge.net/%{name}/Documentation.txt
# Manpage available from the patch archive:
# http://sourceforge.net/tracker/?func=detail&aid=2833213&group_id=271307&atid=1153693
Source2:	%{name}.1
BuildRequires:	ncurses-devel

%description
nmon is designed for performance specialists to use for monitoring and
analyzing performance data.

%prep
%setup -T -c -n %{name}
sed -e "s/\r//" %{SOURCE1} > Documentation.txt
touch -c -r %{SOURCE1} Documentation.txt
cp %{SOURCE0} .

%{__cat} <<EOF >nmon-script.sysconfig
### The directory to store the nmon data files
NMONDIR="/var/log/nmon"

### Default options for nmon
OPTIONS="-f -t"

### Number of days to keep nmon data files
KEEPDAYS="31"
EOF

%{__cat} <<'EOF' >nmon-script.sh
#!/bin/bash

### Please make modifications to the options and path in /etc/sysconfig/nmon-script

### Default variables
SYSCONFIG="/etc/sysconfig/nmon-script"
NMONDIR="/var/log/nmon"
OPTIONS="-f -t"
KEEPDAYS="31"

### Read configuration
[ -r "$SYSCONFIG" ] && source "$SYSCONFIG"

### Kill the old process(es)
/usr/bin/pkill -x -f "/usr/bin/nmon $OPTIONS -m $NMONDIR"

### Remove old log files
/usr/bin/find $NMONDIR -ctime +$KEEPDAYS -daystart -type f | xargs rm -f

### Start the new process
exec /usr/bin/nmon $OPTIONS -m $NMONDIR
EOF

%{__cat} <<EOF >nmon-script.cron
0 0 * * * nobody /usr/bin/nmon-script
EOF

%build
cc -o nmon lmon%{version}.c %{optflags} %{ldflags} -g -lncurses -lm -D X86

%install
install -Dp -m0755 nmon %{buildroot}%{_bindir}/nmon

install -d -m0755 %{buildroot}%{_localstatedir}/log/nmon/
install -Dp -m0755 nmon-script.sh %{buildroot}%{_bindir}/nmon-script
install -Dp -m0644 nmon-script.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/nmon-script
install -Dp -m0644 nmon-script.cron %{buildroot}%{_sysconfdir}/cron.d/nmon-script
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1

%files
%doc Documentation.txt
%config(noreplace) %{_sysconfdir}/sysconfig/nmon-script
%config %{_sysconfdir}/cron.d/nmon-script
%{_bindir}/nmon
%{_bindir}/nmon-script
%{_mandir}/man1/*

%defattr(-, nobody, nobody, 0755)
%{_localstatedir}/log/nmon/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3640 |21cr|nnn-4.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       nnn
Version:	4.7
Release:	1
Summary:    The missing terminal file browser for X
Group:      File tools
License:    BSD
Url:        https://github.com/jarun/nnn
Source0:    https://github.com/jarun/nnn/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  make
BuildRequires:  gcc
BuildRequires:  pkgconfig(ncursesw)
BuildRequires:  pkgconfig(readline)
Requires:  bash
# for more archive formats
Suggests:   atool
Suggests:   %{_lib}archive18
Suggests:   zip
Suggests:   unzip
# to trash files
Suggests:   trash-cli
# mount remotes
Suggests:   sshfs
Suggests:   rclone
Suggests:   fuse2
# desktop opener
Suggests:   xdg-utils


%description
nnn is probably the fastest and most resource-sensitive (with all 
its capabilities) file browser you have ever used. It's extremely flexible 
too - integrates with your DE and favorite GUI utilities, works with
the desktop opener, supports bookmarks, has smart navigation shortcuts, 
navigate-as-you-type mode, disk usage analyzer mode, comprehensive file 
details and much more. nnn was initially forked from noice but is 
significantly different today.

Cool things you can do with nnn:

 - open any file in the default desktop application or a custom one
 - navigate-as-you-type (search-as-you-type enabled even on directory switch)
 - check disk usage with number of files in current directory tree
 - run desktop search utility (gnome-search-tool or catfish) in any directory
 - copy absolute file paths to clipboard, spawn a terminal and use the paths
 - navigate instantly using shortcuts like ~, -, & or handy bookmarks
 - use cd ..... at chdir prompt to go to a parent directory
 - detailed file stats, media info, list and extract archives
 - pin a directory you may need to revisit and jump to it anytime
 - lock the current terminal after a specified idle time
 - change directory on exit.


%files
%doc CHANGELOG README.md LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/nnn-completion.bash
%dir %{_datadir}/fish/vendor_functions.d
%{_datadir}/fish/vendor_functions.d/nnn.fish
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_nnn
#----------------------------------------------------

%prep
%setup -q
sed -i "s|^install: all|install:|" Makefile


%build
%setup_compile_flags
%make STRIP=/bin/true


%install
%makeinstall_std PREFIX=%{_prefix}
# I don't knov if we need fish and zsh completion, but hey-ho...
install -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \
  misc/auto-completion/bash/nnn-completion.bash
install -Dpm0644 -t %{buildroot}%{_datadir}/fish/vendor_functions.d \
  misc/auto-completion/fish/nnn.fish
install -Dpm0644 -t %{buildroot}%{_datadir}/zsh/site-functions \
  misc/auto-completion/zsh/_nnn



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3641 |21cr|nodau-0.3.9-0.gitf817eb.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit f817ebf2827d20e50080ef56cb70e5976dd658d7
%define commit_short %(echo %{commit} | head -c6)

Summary:        A simple console notetaking program
Name:           nodau
Version:        0.3.9
Release:        0.git%{commit_short}.1
Group:          Text tools
License:        GPLv3+
Url:            https://github.com/darkrose/nodau
Source0:        https://github.com/TicklishHoneyBee/nodau/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(sqlite3)
Requires:       sqlite3-tools

%description
A simple console based note taking program, 
it allows you to  easily create, edit, 
and view notes, and search them by name or date.

%files
%doc LICENSE CHANGELOG README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

%prep
%setup -q -n %{name}-%{commit}

%build
%make

%install
install -D -m755 nodau %{buildroot}/usr/bin/nodau
install -D -m644 man/nodau.1 %{buildroot}/usr/share/man/man1/nodau.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3642 |21cr|node_exporter-1.8.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug_package %nil

Name:		node_exporter
Version:	1.8.1
Release:	2
Summary:	Exporter for machine metrics
Group:		Development/Other
License:	ASL 2.0
URL:		https://prometheus.io
Source0:	https://github.com/prometheus/node_exporter/archive/v%{version}/%{name}-%{version}.tar.gz
# create with 'go mod vendor' and tar.gz vendor directory
Source1:	vendor.tar.gz
# we use system promu
Patch0:		node_exporter-system-promu.patch
BuildRequires:	go >= 1.11
BuildRequires:	upx
BuildRequires:	curl
BuildRequires:	promu

%description
Exporter for machine metrics

%prep
%setup -q -a1
%apply_patches

%build
make build
upx %{name}

%install
install -Dm0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm0644 examples/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -Dm0644 examples/systemd/sysconfig.node_exporter %{buildroot}%{_sysconfdir}/sysconfig/%{name}

#/var/lib/node_exporter/textfile_collector

%files
%doc README.md LICENSE
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%{_sysconfdir}/sysconfig/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3643 |21cr|nodejs-packaging-1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RPM Macros and Utilities for Node.js Packaging
Name:		nodejs-packaging
Version:	1.2
Release:	9
Group:		Development/Other
License:	MIT
Url:		https://abf.io/dsilakov/nodejs-packaging-rosa
Source0:	%{name}-rosa-%{version}.tar.xz
Patch0001:	0001-Verionize-python-shebang.patch
Requires:	nodejs
Requires:	rpm-mandriva-setup-build
Requires:	/usr/bin/python2
BuildArch:	noarch

%description
This package contains RPM macros and other utilities useful for packaging
Node.js modules and applications in RPM-based distributions.

%files
%doc LICENSE
%{_datadir}/node/multiver_modules
%{_rpmmacrodir}/*%{name}*
%{_rpmconfigdir}/nodejs*

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-rosa-%{version}

%build
#nothing to do

%install
install -Dpm0755 nodejs.prov %{buildroot}%{_rpmconfigdir}/nodejs.prov
install -pm0755 nodejs.req %{buildroot}%{_rpmconfigdir}/nodejs.req
install -pm0755 nodejs-symlink-deps %{buildroot}%{_rpmconfigdir}/nodejs-symlink-deps
install -pm0755 nodejs-fixdep %{buildroot}%{_rpmconfigdir}/nodejs-fixdep
install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules

# Use universal macro installation for both RPM 4 and RPM 5
%install_macro %{name} nodejs.macros

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3644 |21cr|noffle-1.1.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define spooldir	%{_var}/spool/%{name}
%define cfgfilename	%{_sysconfdir}/%{name}.conf

Summary: 	Usenet newsserver for small sites
Name: 		noffle
Version: 	1.1.5
Release: 	10
Group:		System/Servers
License:	GPL
URL:		http://noffle.sf.net/
Source:		http://dl.sf.net/noffle/%{name}-%{version}.tar.bz2
Source1:	noffle.xinetd.bz2
BuildRequires:	gdbm-devel
Requires:	MailTransportAgent common-licenses
Requires(post,preun):	rpm-helper

%description
NOFFLE is a news server optimized for low speed dialup connection to the
Internet and few users. It allows reading news offline with many news reader
programs, even if they do not support offline reading by themselves.

%prep
%setup -q

%build
#CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="-s"
#export CFLAGS LDFLAGS
#./configure --prefix=/usr --enable-debug=no
#make
%serverbuild
%configure --with-spooldir=%{spooldir} --with-configfile=%{cfgfilename} \
	--enable-debug=no 
%make

%install
# noffle doesn't have a make install :(
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man{1,5},%{_sysconfdir}{,/{cron.daily,xinetd.d}}}
mkdir -p %{buildroot}%{spooldir}/{data,lock,requested,outgoing,overview}
mkdir -p %{buildroot}%{_sysconfdir}
cp src/noffle				%{buildroot}%{_bindir}/
ln -s noffle %{buildroot}%{_bindir}/inews
cp docs/noffle.1			%{buildroot}%{_mandir}/man1/
cp docs/noffle.conf.5			%{buildroot}%{_mandir}/man5/
cp noffle.conf.example			%{buildroot}%{cfgfilename}
cp packages/redhat/noffle-expire	%{buildroot}%{_sysconfdir}/cron.daily/
bzip2 -cd %{SOURCE1}		      > %{buildroot}%{_sysconfdir}/xinetd.d/noffle

#install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/bin
#install -s -m 4755 -o news -g news src/noffle $RPM_BUILD_ROOT/usr/bin
#install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/man/man1
#install -m 0644 -o 0 -g 0 docs/noffle.1 $RPM_BUILD_ROOT/usr/man/man1/noffle.1
#install -o 0 -g 0 -d $RPM_BUILD_ROOT/usr/man/man5
#install -m 0644 -o 0 -g 0 docs/noffle.conf.5 $RPM_BUILD_ROOT/usr/man/man5/noffle.conf.5
#install -m 2755 -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle
#install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc
#install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/data
#install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/lock
#install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/requested
#install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/outgoing
#install -o news -g news -d $RPM_BUILD_ROOT/var/spool/noffle/overview
#install -m 0600 -o news -g news noffle.conf.example $RPM_BUILD_ROOT/etc/noffle.conf
#install -o 0 -g 0 -d $RPM_BUILD_ROOT/etc/cron.daily
#install -m 0755 -o news -g news packages/redhat/noffle-expire $RPM_BUILD_ROOT/etc/cron.daily/noffle-expire

%post
%_post_service %{name}
echo
echo " Don't forget to edit %{cfgfilename} !!! "
echo

%preun
%_preun_service %{name}

%clean
[ "$RPM_BUILD_ROOT" != "" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README INSTALL ChangeLog docs/FAQ docs/NOTES docs/INTERNALS
%doc docs/noffle.lsm noffle.conf.example
%attr(0644,root,root)	%config(noreplace) %{_sysconfdir}/xinetd.d/noffle
%{_bindir}/inews
%defattr(-,news,news)
%attr(4755,news,news)	%{_bindir}/noffle
%attr(0644,root,root)	%doc %{_mandir}/man*/noffle*
%attr(0600,news,news)	%config(noreplace) %{cfgfilename}
%attr(0755,news,news)	%config(noreplace) %{_sysconfdir}/cron.daily/noffle-expire
%attr(2755,news,news)	%dir %{spooldir}
%attr(0755,news,news)	%dir %{spooldir}/data
%attr(0755,news,news)	%dir %{spooldir}/lock
%attr(0755,news,news)	%dir %{spooldir}/requested
%attr(0755,news,news)	%dir %{spooldir}/outgoing
%attr(0755,news,news)	%dir %{spooldir}/overview

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3645 |21cr|noip-2.1.9-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux client for the no-ip.com dynamic DNS service
Name:		noip
Version:	2.1.9
Release:	9
License:	GPLv2+
Group:		Networking/Other
URL:		http://www.no-ip.com
Source0:	http://www.no-ip.com/client/linux/%{name}-%{version}.tar.bz2
Source1:	%{name}.service
Patch0:		%{name}-2.1.9-makefile.patch
Patch1:		%{name}-2.1.9-config-path.patch
Requires(pre):	rpm-helper
Requires(post):	rpm-helper

%description
This is the No-IP.com Dynamic DNS update client page.

When configured correctly, the client will check your IP address at a
given time interval checking to see if your IP has changed. If your IP
address has changed it will notify No-IP DNS servers and update the IP
corresponding to your No-IP/No-IP+ hostname.

NOTE: You must add hostnames on the website (http://www.no-ip.com)
first before you can have the updater update them.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
mv -f %{name}2.c %{name}.c

%build
%define Werror_cflags %{nil}
%serverbuild_hardened

export LDFLAGS="%{ldflags}"

%make PREFIX="%{_prefix}" BINDIR="%{_sbindir}" CONFDIR="%{_sysconfdir}"

%install
%makeinstall_std PREFIX=%{_prefix} CONFDIR="%{_sysconfdir}" BINDIR="%{_sbindir}"

touch %{buildroot}%{_sysconfdir}/%{name}.conf
mkdir -p %{buildroot}%{_unitdir}
install %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

cat > README.urpmi << EOF
To configure the noip deamon, run noip -C as root.
This command will set the corrects parameters in /etc/noip.conf.
Then you can start the deamon with service noip start
EOF

%post
%create_ghostfile %{_sysconfdir}/%{name}.conf root root 600
%systemd_post %{name}.service

echo
echo To configure the noip deamon, run noip -C as root.
echo This command will set the correct parameters in /etc/noip.conf.
echo Then you can restart the deamon with "service noip restart".
echo

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%clean

%files
%defattr(644,root,root,755)
%doc README.FIRST README.urpmi
%attr(755,root,root) %{_sbindir}/*
%attr(744,root,root) %{_unitdir}/%{name}.service
%ghost %{_sysconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3646 |21cr|noip-duc-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Linux client for the noip.com dynamic DNS service
Name:		noip-duc
Version:	3.1.1
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		https://www.noip.com
Source0:	https://www.noip.com/download/linux/latest?/%{name}_%{version}.tar.gz
# cd noip-duc_%%{version}
# mkdir cargo-home
# cat >cargo-home/config <<EOF
# [source.crates-io]
# registry = 'https://github.com/rust-lang/crates.io-index'
# replace-with = 'vendored-sources'
# [source.vendored-sources]
# directory = './vendor'
# EOF
# export CARGO_HOME=$(pwd)/cargo-home
# cargo vendor
# tar -cpJf ../vendor-%%{version}.tar.xz vendor
Source1:	vendor-%{version}.tar.xz
Source2:	noip-duc.service
BuildRequires:	cargo
Requires(pre):	rpm-helper
Requires(post):	rpm-helper

%description
This is the NoIP.com Dynamic DNS update client page.

When configured correctly, the client will check your IP address at a
given time interval checking to see if your IP has changed. If your IP
address has changed it will notify NoIP DNS servers and update the IP
corresponding to your NoIP/NoIP+ hostname.

NOTE: You must add hostnames on the website (https://www.noip.com)
first before you can have the updater update them.

%files
%doc CHANGELOG.md README.md
%license LICENSE
%{_sbindir}/%{name}
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

echo
echo To configure the noip deamon, run noip -C as root.
echo This command will set the correct parameters in /etc/noip.conf.
echo Then you can restart the deamon with "service noip restart".
echo

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}_%{version} -a1
mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'
[source.vendored-sources]
directory = './vendor'
EOF

%build
export CARGO_HOME=$(pwd)/cargo-home/
cargo build %{?_smp_mflags} --release --offline

%install
mkdir -p %{buildroot}%{_sbindir}
cp target/release/%{name} %{buildroot}%{_sbindir}

mkdir -p %{buildroot}%{_unitdir}
install %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3647 |21cr|noisetorch-0.12.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global oname NoiseTorch

Summary:	Real-time microphone noise suppression on Linux
Name:		noisetorch
Version:	0.12.2
Release:	2
License:	GPLv3
Group:		Sound
Url:		https://github.com/NoiseTorch/NoiseTorch
# git clone https://github.com/noisetorch/NoiseTorch
# cd NoiseTorch
# git checkout %%{version}
# git submodule update --init --recursive
# git-archive-all --prefix=%%{oname}-%%{version} ../%%{oname}-%%{version}.tar.gz
Source0:	%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	gcc-c++
BuildRequires:	git-core
BuildRequires:	golang
Requires(post):	libcap-utils

%description
NoiseTorch is an easy to use open source application for Linux with PulseAudio
or PipeWire. It creates a virtual microphone that suppresses noise, in any
application. Use whichever conferencing or VOIP application you like and simply
select the NoiseTorch Virtual Microphone as input to torch the sound of your
mechanical keyboard, computer fans, trains and the likes.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/256x256/apps/%{name}.png

%post
setcap 'CAP_SYS_RESOURCE=+ep' %{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
pushd c/ladspa
%make
ldd rnnoise_ladspa.so
popd
go generate
# -tags release would enable the auto-updater (update.go)

CGO_ENABLED=0 GOOS=linux go build	\
%ifnarch ppc64 loongarch64
	-buildmode=pie	\
%endif
	-a -ldflags '-w -X main.version=%{version} -X main.distribution=rpm' .

%install
install -D -m 644 assets/icon/noisetorch.png %{buildroot}/%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
install -D -m 644 assets/noisetorch.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
install -D -m 755 noisetorch %{buildroot}/%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3648 |21cr|nomacs-3.16.224-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}

Summary:	A fast and small image viewer
Name:		nomacs
Version:	3.16.224
Release:	2
License:	GPLv3+
Group:		Graphics
Url:		http://www.nomacs.org
Source0:	https://github.com/nomacs/nomacs/archive/%{name}-%{version}.tar.gz
Patch1:		nomacs-3.16.224-quazip.patch
Patch2:		nomacs-3.16.224-set-ru-default.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(quazip)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libheif)
Requires:	%{libname} = %{EVRD}

%description
This is a free image viewer small, fast and able to handle the most common
image formats including RAW images. Additionally it is possible to
synchronize multiple viewers. A synchronization of viewers running on the
same computer or via LAN is possible: it allows to compare images and spot
the differences (e.g. schemes of architects to show the progress).

%files
%doc README.md LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/org.%{name}.ImageLounge.desktop
%{_appdatadir}/org.%{name}.ImageLounge.appdata.xml
%{_mandir}/man1/%{name}.1.*
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/scalable/apps/org.%{name}.ImageLounge.svg

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries needed by %{name}.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libnomacsCore.so.%{major}*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
pushd ImageLounge
mkdir -p build/ImageLounge
%cmake_qt5 \
	-DENABLE_OPENCV=ON	\
	-DENABLE_RAW=ON	\
	-DENABLE_TIFF=ON	\
	-DENABLE_QT_DEBUG=OFF	\
	-DENABLE_TRANSLATIONS=ON \
	-DUSE_SYSTEM_QUAZIP=ON	\
	-DENABLE_HEIF=ON

%make
popd

%install
pushd ImageLounge
%makeinstall_std -C build
popd

# No devel package: no need of the symlinks below
rm -f %{buildroot}%{_libdir}/libnomacsCore.so
rm -rf %{buildroot}%{_prefix}/lib/debug

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3649 |21cr|nomarch-1.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:      nomarch
Summary:   GPLed Arc de-archiver 
Version:   1.4
Release:   12
URL:       http://rus.members.beeb.net/nomarch.html
License:   GPL
Source:    ftp://ftp.ibiblio.org/pub/Linux/utils/compress/%{name}-%{version}.tar.bz2
Group:     Archiving/Compression
Provides:  arc

%description
nomarch lists/extracts/tests `.arc' archives. (It also handles `.ark'
files, they're exactly the same.) This is a *very* outdated file
format which should never be used for anything new, but unfortunately,
you can still run into it every so often.

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT
%makeinstall_std BINDIR=$RPM_BUILD_ROOT/usr/bin MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1

%clean
[ "$RPM_BUILD_ROOT" != "/" ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(0644, root, root, 0755)
%doc COPYING ChangeLog NEWS README TODO
%attr(0755, root, root) %_bindir/nomarch
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3650 |21cr|nomenus-rex-0.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	CLI utility for the file mass-renaming
Name:		nomenus-rex
Version:	0.5.1
Release:	3
License:	GPLv3+
Group:		File tools
Url:		https://github.com/ANGulchenko/nomenus-rex
Source0:	https://github.com/ANGulchenko/nomenus-rex/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libconfig)

%description
CLI utility for the file mass-renaming.

%files
%doc CHANGELOG README
%license LICENSE
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
mkdir -p %{buildroot}%{_bindir}
cp build/%{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3651 |21cr|nootka-2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Application to help with learning classical score notation
Name:		nootka
Version:	2.0.2
Release:	1
License:	GPLv3+
Group:		Sound
Url:		http://nootka.sf.net
Source0:	https://sourceforge.net/projects/nootka/files/Nootka-2.0.2/nootka-2.0.2-source.tar.bz2
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fftw3f)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(soundtouch)
BuildRequires:	pkgconfig(vorbisfile)
Recommends:	TiMidity++

%description
Nootka is open-source application to help with learning (also with teaching)
classical score notation. Mostly it is for guitarists, but it can be used for
ear training as well.

%files
%doc changes README* TODO*
%doc %{_docdir}/%{name}/copyright
%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/*/*/*.png
%{_libdir}/%{name}/*.so
%{_mandir}/man1/%{name}.1*
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/metainfo/nootka.appdata.xml
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-source

# Kill many rpmlint warnings
find . -name "*.cpp" -o -name "*.h"|xargs chmod 0644

# fix path for libdir
sed -i 's|lib/nootka|%{_lib}/nootka|' src/CMakeLists.txt
sed -i 's|lib/nootka|%{_lib}/nootka|' src/libs/core/CMakeLists.txt
sed -i 's|lib/nootka|%{_lib}/nootka|' src/libs/core/tinitcorelib.cpp
sed -i 's|lib/nootka|%{_lib}/nootka|' src/libs/sound/CMakeLists.txt

%build
# if updater disabled, build fail with undefined reference!
%cmake -GNinja \
	-DENABLE_UPDATER:BOOL=ON

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3652 |21cr|nosefart-2.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Nosefart player for Nintendo NES audio files
Name:		nosefart
Version:	2.9
Release:	5
License:	GPLv2+
Group:		Sound
Url:		http://nosefart.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/nosefart/%{name}-%{version}-mls.tar.bz2
Patch0:		%{name}-2.6-mls-desktopentry.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
%rename		xmms-nosefart

%description
Nosefart plays .nsf audio files that were ripped from games for the Nintendo
Entertainment System.

%files
%doc README README.linux CHANGES
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n gnosefart
Summary:	Nosefart player for Nintendo NES audio files
Group:		Sound
Requires:	%{name} >= %{version}

%description -n gnosefart
Nosefart plays .nsf audio files that were ripped from games for the Nintendo
Entertainment System.

%files -n gnosefart
%doc README.xmms
%{_bindir}/gnosefart
%{_datadir}/applications/gnosefart.desktop
%{_datadir}/pixmaps/gnosefart.png
%{_liconsdir}/gnosefart.png
%{_iconsdir}/gnosefart.png
%{_miconsdir}/gnosefart.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-mls
ln -s gnosefart-1.5 src/gnosefart-1.4
%patch0 -p1

find . -name "Makefile*" -o -name "*.m4" -o -name "configure*" |xargs sed -i -e 's,configure.in,configure.ac,g'


%build
make clean
%make
cd src/gnosefart-1.4
rm -r autom4te.cache
rm install-sh missing mkinstalldirs
cp %{_datadir}/automake-*/mkinstalldirs .
autoreconf -vfi
%configure
%make


%install
make PREFIX=%{buildroot}%{_prefix} install
cd src/gnosefart-1.4
%makeinstall_std
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}

#icons
ln -s %{_datadir}/pixmaps/gnosefart.png %{buildroot}/%{_liconsdir}/gnosefart.png
convert -scale 32x32 %{buildroot}%{_datadir}/pixmaps/gnosefart.png %{buildroot}%{_iconsdir}/gnosefart.png
convert -scale 16x16 %{buildroot}%{_datadir}/pixmaps/gnosefart.png %{buildroot}%{_miconsdir}/gnosefart.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3653 |21cr|notamock-3.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define builder_scripts	%{_datadir}/builder-c

Summary:	Simple scripts to build rpm using abb in container
Name:		notamock
Version:	3.6
Release:	6
License:	GPLv3
Group:		System/Base
Url:		https://abf.io/betcher_/notamock.git
Source0:	%{name}
Source1:	%{name}s
Source2:	notamock.dnf
Source3:	справка.команда.нотэмок
Source4:	%{name}.completions
Source5:	%{name}s.completions
Source6:	dnf.conf
Source7:	lib%{name}
Source8:	%{name}d
Source9:	%{name}c
Source10:	rpmbuild_paint.py

# scripts from docker builder
Source20:	%{name}a
Source21:	build-rpm.py
Source22:	check_error.py

# abf repos
Source30:	_abf-repos.conf
Source31:	abf-repos-dnf.conf

Requires:	rpm
Requires:	dnf
Requires:	bash
Requires:	createrepo_c
Requires:	python3
Recommends:	termhelper
BuildArch:	noarch

%description
Simple scripts to build rpm like a mock,
using shared rootfs for all build processes

%files
%dir %{_datadir}/%{name}
%dir %{_sysconfdir}/%{name}.d
%{_bindir}/%{name}
%{_bindir}/%{name}s
%{_bindir}/%{name}d
%{_bindir}/%{name}c
%{_bindir}/rpmbuild_paint
%{_datadir}/termhelper/ru/*
%{_sysconfdir}/bash_completion.d/*
%config(noreplace) %{_sysconfdir}/%{name}.cfg
%{_datadir}/%{name}/default.%{name}.cfg
%{_datadir}/%{name}/example.dnf.conf
%{_datadir}/%{name}/lib%{name}

%posttrans
[ -x /usr/bin/termhelper -a "_$LANG" == '_ru_RU.UTF-8' ] && /usr/bin/termhelper команда нотэмок
:

%package abf
Summary: Scripts to use notamock instead mock by builder-c (abf builder)
Requires: %{name}
Requires: builder-c

%description abf
Scripts to use notamock instead mock by builder-c (abf builder)
It is not recommended to use outside the container

%files abf 
%{builder_scripts}/*
%{_bindir}/%{name}a

%package abf-repos
Summary: Abf repositories for notamock
Requires: %{name}

%description abf-repos
DNF configuration file for notamock containing repositories http://abf-downloads.rosalinux.ru

%files abf-repos
%config(noreplace) %{_sysconfdir}/%{name}.d/_abf-repos.conf
%{_datadir}/%{name}/abf-repos-dnf.conf

%prep

%build 

%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_sysconfdir}/bash_completion.d
mkdir -p %{buildroot}%{_datadir}/%{name}   %{buildroot}%{builder_scripts}/
mkdir -p %{buildroot}%{_datadir}/termhelper/ru
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_sysconfdir}/%{name}.d

install -m  755 %{SOURCE0} %{buildroot}%{_bindir}/%{name}
install -m  755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}s
install -m  644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}.cfg
install -m  644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/default.%{name}.cfg
install -m  644 %{SOURCE3} %{buildroot}%{_datadir}/termhelper/ru
install -m  644 %{SOURCE4} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}
install -m  644 %{SOURCE5} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}s
install -m  644 %{SOURCE6} %{buildroot}%{_datadir}/%{name}/example.dnf.conf
install -m  644 %{SOURCE7} %{buildroot}%{_datadir}/%{name}/lib%{name}
install -m  755 %{SOURCE8} %{buildroot}%{_bindir}/%{name}d
install -m  755 %{SOURCE9} %{buildroot}%{_bindir}/%{name}c
install -m  755 %{SOURCE10} %{buildroot}%{_bindir}/rpmbuild_paint

install -m  755 %{SOURCE20} %{buildroot}%{_bindir}/%{name}a
install -m  755 %{SOURCE21} %{buildroot}%{builder_scripts}/
install -m  755 %{SOURCE22} %{buildroot}%{builder_scripts}/

install -m  644 %{SOURCE30} %{buildroot}%{_sysconfdir}/%{name}.d/_abf-repos.conf
install -m  644 %{SOURCE31} %{buildroot}%{_datadir}/%{name}/abf-repos-dnf.conf
sed -i 's/#ARCH#/'%{_arch}'/g' %{buildroot}%{_datadir}/%{name}/abf-repos-dnf.conf

ln -s ./справка.команда.нотэмок %{buildroot}%{_datadir}/termhelper/ru/справка.команда.notamock

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3654 |21cr|notepadqq-1.4.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define codemirror_ver 5.36.1

Summary:	A Linux clone of Notepad++
Name:		notepadqq
Version:	1.4.8
Release:	3
License:	GPLv3+
Group:		Editors
Url:		https://notepadqq.com
Source0:	https://github.com/notepadqq/notepadqq/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/notepadqq/CodeMirror/archive/%{codemirror_ver}.tar.gz?/CodeMirror-%{codemirror_ver}.tar.gz
Patch0:		notepadqq_ru-1.4.0.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Svg)

%description
Notepadqq is a Notepad++-like editor for the Linux desktop.

%files
%doc CONTRIBUTING.md COPYING README.md
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_libdir}/%{name}/notepadqq-bin

#----------------------------------------------------------------------------

%prep
%setup -q -a 1
%patch0 -p1

mkdir -p src/editor/libs/codemirror/mode/m4

# (tpg) fix libdir
sed -i -e "s/lib/%{_lib}/g" src/ui/ui.pro

%build
%qmake_qt5 PREFIX=%{_prefix} LRELEASE=%{_qt5_bindir}/lrelease
%make

%install
%makeinstall_qt

# (tpg) bug #1136
ln -sf %{_libdir}/%{name}/notepadqq-bin %{buildroot}%{_bindir}/notepadqq-bin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3655 |21cr|notification-daemon-engine-nodoka-0.1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		notification-daemon-engine-nodoka
Version:	0.1.0
Release:	12
Summary:	The Nodoka theme engine for the notification daemon

Group:		System/X11
License:	GPLv3+
URL:		https://nodoka.fedorahosted.org/
Source0:	https://fedorahosted.org/releases/n/o/nodoka/notification-daemon-engine-nodoka-%{version}.tar.gz
Patch0:		notification-daemon-engine-nodoka-clipping.patch
Patch1:		notification-daemon-engine-nodoka-0.1.0-version-check.patch
Patch2:		notification-daemon-engine-nodoka-rtl.patch
Patch3:		notification-daemon-engine-nodoka-base-color.patch
# drop libsexy dep
Patch4:		sexy.patch
Patch5:		notification-daemon-engine-nodoka-window-type.patch
Patch6:		notification-daemon-engine-nodoka-0.1.0-automake.patch

BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	autoconf automake libtool
Requires:	notification-daemon

%description
The Nodoka theme engine for the notification daemon.

%prep
%setup -q
%patch0 -p1 -b .clipping
%patch1 -p1 -b .version-check
%patch2 -p1 -b .rtl
%patch3 -p1 -b .base-color
%patch4 -p1 -b .sexy
%patch5 -p1 -b .window-type
%patch6 -p1 -b .automake

autoreconf -fi

%build
%configure
%make

%install
%makeinstall_std

#remove .la files
find %{buildroot} -name *.la | xargs rm -f || true

%files
%doc AUTHORS ChangeLog COPYING Credits NEWS README
%{_libdir}/notification-daemon-1.0/engines/libnodoka.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3656 |21cr|nqp-2023.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 2023.02
%define debug_package %{nil}
Summary:	Not Quite Perl
Name:		nqp
Version:	%{date}
Release:	1
License:	Artistic-2.0
Group:		Development/Perl
Url:		https://github.com/perl6/nqp
Source0:	https://github.com/perl6/nqp/archive/%{date}.tar.gz?/nqp-%{date}.tar.gz
Source1:	https://github.com/Raku/nqp-configure/archive/refs/heads/master.zip?/nqp-configure.zip
BuildRequires: moarvm
BuildRequires: moarvm-devel
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(ExtUtils::Command)
# for tests
BuildRequires: perl(Test::Harness)
BuildRequires: pkgconfig(libuv)
Requires:      moarvm

%description
This is "Not Quite Perl" — a lightweight Perl 6-like environment 
for virtual machines. The key feature of NQP is that it's designed 
to be a very small environment (as compared with, say, perl6 or Rakudo) 
and is focused on being a high-level way to create compilers and 
libraries for virtual machines like MoarVM, the JVM, and others.

Unlike a full-fledged implementation of Perl 6, NQP strives to have
as small a runtime footprint as it can, while still providing a Perl 6 
object model and regular expression engine for the virtual machine.

%files
%doc LICENSE README.pod
%{_bindir}/nqp*
%{_datadir}/nqp

#------------------------------------------------------------------

%prep
%autosetup -p1

unzip %{SOURCE1}
mv nqp-configure*/* 3rdparty/nqp-configure/

%build
%{__perl} Configure.pl \
  --prefix=%{_prefix} \
  --backends=moar

%make

#All tests successful.
%check
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3657 |21cr|nrg2iso-0.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nrg2iso
Version:	0.4
Release:	10
Summary:	Convert Nero CD Images to ISO
Source:		http://gregory.kokanosky.free.fr/v4/linux/%{name}-%{version}.tar.bz2
URL:		http://gregory.kokanosky.free.fr/v4/linux/nrg2iso.en.html
License:	GPL
Group:		Archiving/Other

%description 
Nrg2Iso is a linux utility for converting cd images generated
by Nero Burning Rom to ISO format.

%prep
%setup -q

%build
%{__cc} %{optflags} -o nrg2iso nrg2iso.c

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install nrg2iso %{buildroot}%{_bindir}/nrg2iso

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGELOG
%{_bindir}/nrg2iso

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3658 |21cr|nsca-2.9.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nsca
Version:	2.9.1
Release:	9
Summary:	NSCA daemon for Nagios
License:	GPL
Group:		System/Servers
URL:		http://sourceforge.net/projects/nagios/
Source0:	http://prdownloads.sourceforge.net/nagios/%{name}-%{version}.tar.gz
Source1:	nsca.service
Source2:	nsca.tmpfiles
Patch0:		nsca-mdv_conf.diff
Patch1:		nsca-2.9.1-fix-open.patch
BuildRequires:	tcp_wrappers-devel
BuildRequires:	libmcrypt-devel
BuildRequires:	libtool-devel
Requires:	tcp_wrappers
Requires:	nagios
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description
The NSCA addon is designed to accept passive host and service check results
from clients that use the send_nsca utility (included in client subpackage) and
pass them along to the Nagios process by using the external command interface.

%package -n	send_nsca
Summary:	NSCA client
Group:		System/Servers

%description -n	send_nsca
NSCA client - is used to send service check information from a remote machine
to the NSCA daemon on the central machine that runs Nagios.

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
%configure \
    --with-nsca-port=5667 \
    --with-nsca-user=nagios \
    --with-nsca-grp=nagios \
    --localstatedir=/var/spool/nagios \
    --sysconfdir=%{_sysconfdir}/nagios

%make

%install
install -d -m 755 %{buildroot}%{_sbindir}
install -m 755 src/nsca %{buildroot}%{_sbindir}
install -m 755 src/send_nsca %{buildroot}%{_sbindir}

install -d -m 755 %{buildroot}%{_sysconfdir}/nagios
install -m 644 sample-config/nsca.cfg %{buildroot}%{_sysconfdir}/nagios
install -m 644 sample-config/send_nsca.cfg %{buildroot}%{_sysconfdir}/nagios

install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/nsca.service
install -D -m 644 %{SOURCE2} %{buildroot}%{_prefix}/lib/tmpfiles.d/nsca.conf

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%doc Changelog LEGAL README SECURITY
%config(noreplace) %{_sysconfdir}/nagios/nsca.cfg
%{_unitdir}/nsca.service
%{_prefix}/lib/tmpfiles.d/nsca.conf
%{_sbindir}/nsca

%files -n send_nsca
%doc Changelog LEGAL README SECURITY
%config(noreplace) %{_sysconfdir}/nagios/send_nsca.cfg
%{_sbindir}/send_nsca

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3659 |21cr|nsd-4.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		nsd
Version:	4.7.0
Release:	1
Summary:	Fast and lean authoritative DNS Name Server
Group:		System/Servers
License:	BSD
# https://github.com/NLnetLabs/nsd
Url:		http://www.nlnetlabs.nl/nsd
Source0:	http://www.nlnetlabs.nl/downloads/%{name}/%{name}-%{version}.tar.gz
Source1:	nsd.service
Source2:	nsd.cron
Source3:	nsd.sysconfig
Source4:	tmpfiles-nsd.conf
Source5:	nsd.sysusers.conf
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	openssl-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(tevent)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	systemd-units
Requires(pre):	/bin/systemd-sysusers

%description
NSD is a complete implementation of an authoritative DNS name server.
For further information about what NSD is and what NSD is not please
consult the REQUIREMENTS document which is a part of this distribution
(thanks to Olaf).

%files
%doc doc/*
%doc contrib/nsd.zones2nsd.conf
%dir %{_sysconfdir}/nsd/
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/nsd/nsd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/nsd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/tmpfiles.d/nsd.conf
%attr(0644,root,root) %{_unitdir}/%{name}.service
%{_sysconfdir}/cron.hourly/nsd
%attr(0755,nsd,nsd) %dir /run/%{name}
%attr(0755,nsd,nsd) %dir %{_localstatedir}/lib/%{name}
%{_sbindir}/nsd
%{_sbindir}/nsd-checkconf
%{_sbindir}/nsd-checkzone
%{_sbindir}/nsd-control
%{_sbindir}/nsd-control-setup
%{_mandir}/man5/nsd.conf.5*
%{_mandir}/man8/nsd-checkconf.8*
%{_mandir}/man8/nsd-checkzone.8*
%{_mandir}/man8/nsd-control.8*
%{_mandir}/man8/nsd.8*
%{_sysusersdir}/nsd.conf

%pre
%sysusers_create_package nsd %{SOURCE5}

%post
%tmpfiles_create nsd.conf
%systemd_post nsd.service

%preun
%systemd_preun nsd.service

%postun
%systemd_postun_with_restart nsd.service

#------------------------------------------------------------------------
%prep
%autosetup -p1

%build
%serverbuild_hardened
# export CFLAGS="%{optflags} -fPIE -Wformat-nonliteral -Wformat-security"
# export LDFLAGS="-pie -Wl,-z,relro,-z,now "
%configure --enable-bind8-stats --enable-checking --enable-nsec3  \
           --with-pidfile=/run/%{name}/%{name}.pid --with-ssl \
           --with-user=nsd \
           --with-xfrdfile=%{_localstatedir}/lib/%{name}/ixfr.state \
           --with-dbfile=%{_localstatedir}/lib/%{name}/nsd.db \
           --enable-ratelimit \
           --enable-systemd \
           --enable-memclean \
           --enable-packed \
           --enable-recvmmsg \
           --enable-relro-now \
           --enable-pie \
           --enable-ratelimit \
           --enable-zone-stats

%make
#convert to utf8
iconv -f iso8859-1 -t utf-8 doc/RELNOTES > doc/RELNOTES.utf8
iconv -f iso8859-1 -t utf-8 doc/CREDITS > doc/CREDITS.utf8
mv -f doc/RELNOTES.utf8 doc/RELNOTES
mv -f doc/CREDITS.utf8 doc/CREDITS

%install
%make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_unitdir}
install -d -m 0755 %{buildroot}%{_sysconfdir}/cron.hourly
install -c -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.hourly/nsd
install -m 0755 %{SOURCE1} %{buildroot}/%{_unitdir}/nsd.service
install -d -m 0700 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
install -m 0755 %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d/ %{buildroot}/run/%{name}
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/tmpfiles.d/nsd.conf

# change .sample to normal config files
head -76 %{buildroot}%{_sysconfdir}/nsd/nsd.conf.sample > %{buildroot}%{_sysconfdir}/nsd/nsd.conf
rm %{buildroot}%{_sysconfdir}/nsd/nsd.conf.sample 
echo "database: /var/lib/nsd/nsd.db" >> %{buildroot}%{_sysconfdir}/nsd/nsd.conf
echo "# include: \"/some/path/file\"" >> %{buildroot}%{_sysconfdir}/nsd/nsd.conf

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/nsd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3660 |21cr|nsnake-2.0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           nsnake
Version:        2.0.5
Release:        3
Summary:        The classic snake game with textual interface
Group:		Games/Other
Url:            http://nsnake.alexdantas.net/
Source0:        https://github.com/alexdantas/nSnake/archive/v%{version}.tar.gz/nSnake-%{version}.tar.gz
# Half finished patch, ONLY works.
Patch0:         https://github.com/cicku/nSnake/commit/df8e8e39d9de33be6ff725a53ab74a69129ce57c.patch
License:        GPLv3+
BuildRequires:  doxygen
BuildRequires:  graphviz
BuildRequires:  iniparser-devel
BuildRequires:  ncurses-devel

%description
nSnake is a implementation of the classic snake game with textual interface.
It is playable at command-line and uses the nCurses C library for graphics.

%prep
%setup -qn nSnake-%{version}
%patch0 -p1

%build
make CFLAGS_PLATFORM="%{optflags}" LDFLAGS_PLATFORM="%{?__global_ldflags}" V=1 %{?_smp_mflags}
make doc

%install
%makeinstall_std

%files
%doc AUTHORS BUGS ChangeLog COPYING README.md TODO
%{_bindir}/%{name}
%{_mandir}/man6/nsnake.6*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3661 |21cr|nss-mysql-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname nss_mysql %{major}

Summary:	NSS library for MySQL
Name:		nss-mysql
Version:	1.5
Release:	7
License:	GPLv2+
Group:		System/Libraries
Url:		http://libnss-mysql.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/libnss-mysql/libnss-mysql-%{version}.tar.gz
Patch1:		libnss-mysql-multiarch.patch
Patch2:		nss-mysql-mariadb.patch
BuildRequires:	mariadb-connector-c-devel
Requires:	%{libname}

%description
Store your UNIX user accounts in MySQL. "libnss-mysql" enables the following:

* System-wide authentication and name service using a MySQL database.
  Applications do not need to be MySQL-aware or modified in any way.

* Storing authentication information in a database instead of text files.

* Creation of a single authentication database for multiple servers.
  This is often referred to as the "Single Sign-on" problem.

* Writing data-modification routines (IE self-management web interface).

libnss-mysql is similar to NIS or LDAP. It provides the same centralized
authentication service through a database. What does this mean? Username,
uid, gid, password, etc comes from a MySQL database instead of
/etc/password, /etc/shadow, and /etc/group. A user configured in MySQL will
look and behave just like a user configured in /etc/passwd. Your
applications such as ls, finger, sendmail, qmail, exim, postfix, proftpd,
X, sshd, etc. will all 'see' these users!

%files
%doc README ChangeLog AUTHORS THANKS NEWS COPYING FAQ DEBUGGING UPGRADING TODO
%doc sample
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/libnss-mysql.cfg
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/libnss-mysql-root.cfg

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	NSS library for MySQL
Group:		System/Libraries
Requires:	%{name}
Conflicts:	%{name} < 1.5-4

%description -n %{libname}
NSS library for MySQL.

%files -n %{libname}
%{_libdir}/libnss_mysql.so.%{major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n lib%{name}-%{version} -a 0

%build
autoreconf -fi
%configure
%make
# remove non linux samples
rm -rf sample/freebsd sample/solaris

%install
mkdir -p %{buildroot}/{etc,lib}
%makeinstall_std
rm -f %{buildroot}%{_libdir}/libnss_mysql.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3662 |21cr|nss-pam-ldapd-0.9.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An nsswitch module which uses directory servers
Name:		nss-pam-ldapd
Version:	0.9.12
Release:	2
License:	LGPLv2+
Group:		System/Libraries
URL:		http://arthurdejong.org/nss-ldapd/
Source0:	http://arthurdejong.org/nss-ldapd/%{name}-%{version}.tar.gz
Source3:	nslcd.service
Source4:	nslcd.tmpfiles
Source5:	nslcd.sysusers
Source100:	%{name}.rpmlintrc
BuildRequires:	krb5-devel
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
Requires(post):	/bin/systemd-sysusers
Requires(post):	/bin/systemd-tmpfiles
Conflicts:	nss_ldap
Conflicts:	pam_ldap
Provides:	nslcd = %{EVRD}

%description
The nss-ldapd daemon, nslcd, uses a directory server to look up name
service information (users, groups, etc.) on behalf of a lightweight
nsswitch module.

%files
%license COPYING
%doc AUTHORS ChangeLog HACKING NEWS README TODO
%{_bindir}/chsh.ldap
%{_bindir}/getent.ldap
%{_sbindir}/nslcd
%dir %{_datadir}/nslcd-utils/
%{_datadir}/nslcd-utils/*
/%{_lib}/libnss_ldap.so.2
/%{_lib}/security/pam_ldap.so
%{_mandir}/*/*
%config(noreplace) %{_sysconfdir}/nslcd.conf
%{_tmpfilesdir}/nslcd.conf
%{_sysusersdir}/nslcd.conf
%{_unitdir}/nslcd.service

%post
%sysusers_create nslcd.conf
%tmpfiles_create nslcd.conf
%systemd_post nslcd.service

%preun
%systemd_preun nslcd.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--libdir=/%{_lib} \
	--with-pam-seclib-dir=/%{_lib}/security \
	--with-nslcd-pidfile=/run/nslcd/nslcd.pid
%make

%install
%makeinstall_std

install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/nslcd.service
install -D -m 644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/nslcd.conf
install -D -m 644 %{SOURCE5} %{buildroot}%{_sysusersdir}/nslcd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3663 |21cr|nsuds-0.7B-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:		nsuds
Version:	0.7B
Release:	1
Summary:	Text graphical sudoku game with pencil-marking support
Group:		Games/Other
License:	GPLv2+
Url:		http://sourceforge.net/projects/%{name}/
Source0:	https://sourceforge.net/projects/%{name}/files/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)

%description
The %{name} project is a text graphical sudoku 
game with pencil-marking support.
The point of the project is to provide a 
portable implementation of sudoku with
the minimum possible dependencies. 
The only library dependency is ncurses,
although regular curses should surfice 
in it's place.

%files
%doc ChangeLog COPYING AUTHORS NEWS README TODO helpfiles/main
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/high_scores
%{_mandir}/man1/%{name}.1.*
#--------------------------------------------------------
%prep
%setup -q

%build
%configure --prefix=%{_prefix} \
  --bindir=%{_gamesbindir} \
  --localstatedir=%{_datadir} \
  -disable-setgid
  
%make

%install
# chgrp games : Operation not permitted on ABF
install -D -m755 src/%{name} %{buildroot}%{_gamesbindir}/%{name}
install -D -m644 src/high_scores %{buildroot}%{_gamesdatadir}/%{name}/high_scores
install -D -m644 src/%{name}.1 %{buildroot}/usr/share/man/man1/%{name}.1 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3664 |21cr|nta-1.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network traffic analyzer
Name:		nta
Version:	1.0
Release:	16
License:	GPLv2+
Group:		Monitoring
Url:		http://www.kyberdigi.cz/projects/nta
Source0:	%{name}-%{version}.tar.bz2
Source1:	nta-cron-sample
Source2:	nta-tmpfiles.conf
Patch0:		nta-mandriva_apache_integration.bz2
Patch1:		nta-config_location.bz2
Requires:	webserver
Requires(pre):	webserver
Requires(post):	systemd
BuildArch:	noarch

%description
Sometimes it is good to know, how the network is used, how many
bytes were received and how many bytes were sent. Therefore, here
is Network Traffic Analyzer, that creates nice graphical network
usage statistics accessible using a webbrowser.

NTA runs as a cron job as any unprivileged (non root) user.

%files
%doc README COPYING README.urpmi
%config(noreplace) %{_webappconfdir}/nta.conf
%config(noreplace) %{_sysconfdir}/nta/config.pl
%{_sysconfdir}/cron.d/nta
%{_sbindir}/*
%{perl_vendorlib}/*
%attr(0755,apache,apache) %dir %{_localstatedir}/www/nta
%{_localstatedir}/www/nta/*
%ghost %attr(0755,apache,apache) %dir %{_localstatedir}/run/nta
%attr(0755,apache,apache) %dir %{_localstatedir}/lib/nta/data
%{_localstatedir}/lib/nta/templates/*
%{_tmpfilesdir}/%{name}.conf

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf

#----------------------------------------------------------------------------

%prep
%setup
%patch0 -p0
%patch1 -p0

%build

%install
# nta has no make install or similar, so we do it manually

install -d %{buildroot}%{_sbindir}
install nta.pl %{buildroot}%{_sbindir}

install -d %{buildroot}%{_sysconfdir}/nta
install -m0644 config.pl %{buildroot}%{_sysconfdir}/nta

install -d %{buildroot}%{_sysconfdir}/cron.d
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.d/nta

install -d %{buildroot}%{_tmpfilesdir}
install -m0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# configuration for NTA

Alias /nta %{_localstatedir}/www/nta
<Directory %{_localstatedir}/www/nta>
    Require all granted
</Directory>
EOF

install -d %{buildroot}%{perl_vendorlib}
install -m0644 *.pm %{buildroot}%{perl_vendorlib}

install -d %{buildroot}%{_localstatedir}/www/nta
install -d %{buildroot}%{_localstatedir}/www/nta/images
install -m0644 images/* %{buildroot}%{_localstatedir}/www/nta
install -d %{buildroot}%{_localstatedir}/run/nta

install -d %{buildroot}%{_localstatedir}/lib/nta/data
install -d %{buildroot}%{_localstatedir}/lib/nta/templates
install -m0644 templates/* %{buildroot}%{_localstatedir}/lib/nta/templates

cat > README.urpmi <<EOF
NTA is installed as a cronjob that runs every five minutes.

You can check the results by accessing http://localhost/nta with any 
browser.
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3665 |21cr|nted-1.10.18-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Musical score editor
Name:		nted
Version:	1.10.18
Release:	5
License:	GPLv2+
Group:		Sound
Url:			https://vsr.informatik.tu-chemnitz.de/staff/jan/nted/nted.xhtml
Source0:	https://vsr.informatik.tu-chemnitz.de/staff/jan/nted/sources/%{name}-%{version}.tar.gz
Patch0:		nted-1.10.18-sfmt.patch
Patch1:		nted-1.10.18-headers.patch
Patch2:		nted-1.10.18-freetype2.patch
Patch3:		nted-1.10.18-gcc-6.patch
Patch4:		nted-1.10.18-gcc-7.patch
Patch5:		nted-1.10.18-signed-char.patch
Patch6:		nted-1.10.18-gcc-11.patch
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	poxml
BuildRequires:	yelp
BuildRequires:	xmlto-notex
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(x11)

%description
NtEd is a GTK score editor. It intends to be really WYSIWYG: what you see on
the screen is exactly what you get on printer output. It supports up to 4
voices per staff, drum notes, 5 lyrics lines, N-Tuplets, context changes,
repeats with alternatives, configurable music instruments per staff, MIDI and
Postscript export, MusicXML import. Scores can be played through the ALSA
sequencer.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_docdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%configure
%make


%install
%makeinstall_std
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/mime/packages

# New style menu
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=NtEd
GenericName=Score editor
GenericName[de]=Partitureditor
GenericName[fr]=Éditeur de partition
GenericName[it]=Redattore di spartiti
Comment=Edit musical scores
Comment[de]=Bearbeitet (musikal.) Partituren
Comment[fr]=Ėdite des partitions musicales
Comment[it]=Redige spartiti musicali
Exec=%{name}
Icon=%{name}
StartupNotify=true
Terminal=false
MimeType=application/x-%{name};
Type=Application
Categories=Audio;Midi;Music;
EOF

# New style mime-type
cat > %{buildroot}%{_datadir}/mime/packages/%{name}.xml <<EOF
<?xml version="1.0"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-nted">
    <comment>nted file</comment>
    <glob pattern="*.ntd"/>
     <magic priority="60">
       <match value="nted-file" type="string" offset="20:140"/>
     </magic>
  </mime-type>
</mime-info>
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3666 |21cr|ntk-1.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package	%{nil}

%define	gitdate	20141018
# Same as in the FLTK specfile
%define	major	1
%define	libname		%mklibname %{name} %{major}
%define	libforms	%mklibname %{name}_forms %{major}
%define	libgl		%mklibname %{name}_gl %{major}
%define	libimages	%mklibname %{name}_images %{major}
%define	devname		%mklibname %{name} -d

Summary:	A fork of the FLTK toolkit
Name:		ntk
Version:	1.3.0
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		http://non.tuxfamily.org/wiki/NTK
# See also: https://github.com/original-male/non
# sources from git clone git://git.tuxfamily.org/gitroot/non/fltk.git ntk
Source0:	%{name}-%{version}.tar.xz
# no desktop files in tarball
Source1:	ntk-1.3.0-fluid.desktop
Source2:	ntk-1.3.0-chtheme.desktop
Patch0:		ntk-1.3.0-noldconfig-on-install.patch
Patch1:		ntk-1.3.0-no-optimize.patch
Patch2:		ntk-1.3.0-drop-friend-clause.patch
BuildRequires:	python2
BuildRequires:	waf
BuildRequires:	xprop
BuildRequires:	doxygen >= 1.7.3
BuildRequires:	pkgconfig(cairo) >= 1.10.0
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(zlib)
Requires:	%{libgl} = %{EVRD}
Requires:	%{libimages} = %{EVRD}

%description
The Non Tool Kit (NTK) is a fork of the Fast Light ToolKit library, which adds
improved graphics rendering via Cairo, a streamlined and enhanced widget set,
with support for transparent/overlapping widgets.

%files
%doc COPYING README
%{_bindir}/%{name}-chtheme
%{_datadir}/applications/%{name}-chtheme.desktop

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Non Tool Kit (NTK) - main library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
The Non Tool Kit (NTK) is a fork of the Fast Light ToolKit library, which adds
improved graphics rendering via Cairo, a streamlined and enhanced widget set,
with support for transparent/overlapping widgets.
This package contains the main shared library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libntk.so.%{major}
%{_libdir}/libntk.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libgl}
Summary:	Non Tool Kit (NTK) - library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libgl}
This package contains a shared library for %{name}.

%files -n %{libgl}
%doc COPYING
%{_libdir}/libntk_gl.so.%{major}
%{_libdir}/libntk_gl.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libimages}
Summary:	Non Tool Kit (NTK) - library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libimages}
This package contains a shared library for %{name}.

%files -n %{libimages}
%doc COPYING
%{_libdir}/libntk_images.so.%{major}
%{_libdir}/libntk_images.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Non Tool Kit (NTK) - development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libgl} = %{EVRD}
Requires:	%{libimages} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The Non Tool Kit (NTK) is a fork of the Fast Light ToolKit library, which adds
improved graphics rendering via Cairo, a streamlined and enhanced widget set,
with support for transparent/overlapping widgets.
This package contains the files needed to develop applications using NTK and
thr Interface Designer, an interactive GUI designer.

%files -n %{devname}
%doc README COPYING documentation/html/*
%{_includedir}/%{name}/FL/*
%{_libdir}/pkgconfig/%{name}*.pc
%{_bindir}/%{name}-fluid
%{_datadir}/applications/%{name}-fluid.desktop
%{_libdir}/libntk.so
%{_libdir}/libntk_gl.so
%{_libdir}/libntk_images.so
%{_libdir}/libntk.a*
%{_libdir}/libntk_gl.a*
%{_libdir}/libntk_images.a*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%python2 ./waf configure	--prefix=%{_prefix} --libdir=%{_libdir} \
		--enable-gl --no-ldconfig
%python2 ./waf build

# Build also the devel docs
pushd documentation
	doxygen -u
	doxygen
	cp src/tiny.png html
popd


%install
%python2 ./waf install --destdir=%{buildroot}

# Install our .desktop files
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}-fluid.desktop
install -D -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}-chtheme.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3667 |21cr|ntl-11.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname %name %{major}
%define devname %mklibname %name -d
%define sdevname %mklibname %name -d -s

Summary:	Library for doing number theory
Name:		ntl
Version:	11.5.1
Release:	1
License:	GPLv2+
Group:		System/Libraries
URL:		http://www.shoup.net/ntl/index.html
Source0:	http://www.shoup.net/ntl/%{name}-%{version}.tar.gz
BuildRequires:	gmp-devel
BuildRequires:	gf2x-devel

%description
NTL is a high-performance, portable C++ library providing data structures and
algorithms for manipulating signed, arbitrary length integers, and for vectors,
matrices, and polynomials over the integers and over finite fields.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for NTL (Number Theory Library)
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the libraries needed to run programs dynamically linked
with NTL (Number Theory Library).

%files -n %{libname}
%{_libdir}/libntl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for NTL (Number Theory Library)
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	gf2x-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the shared libraries and header files needed for
developing NTL (Number Theory Library) applications.

%files -n %{devname}
%doc doc/*
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for NTL (Number Theory Library)
Group:		Development/C++
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains the static libraries needed for developing NTL
(Number Theory Library) applications.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
cd src

CFLAGS="`echo %{optflags} | sed 's/-O[0-9]/-O1/'`"
CXXFLAGS="`echo %{optflags} "-fno-rtti" | sed 's/-O[0-9]/-O1/'`"

./configure \
PREFIX=%{_prefix} \
	LIBDIR=$(echo %{_libdir} | sed 's,^%{_prefix},$${PREFIX},') \
	INCLUDEDIR=$(echo %{_includedir} | sed 's,^%{_prefix},$${PREFIX},') \
	DOCDIR=$(echo %{_docdir} | sed 's,^%{_prefix},$${PREFIX},') \
	NTL_GMP_LIP=on \
	CXX="${CXX-g++}" \
	CPPFLAGS="$CPPFLAGS" \
	CXXFLAGS="$CXXFLAGS" \
	NTL_GF2X_LIB=on

LD_LIBRARY_PATH=. \
make \
	CPPFLAGS="$CPPFLAGS -DPIC" \
	CFLAGS="$CFLAGS -fPIC" \
	CXXFLAGS="$CXXFLAGS -fPIC" \
	AR='bash -e -c '\''out=$$1; lib=$$(basename $$out .a).so.%{major}; \
	lib=lib$${lib#lib}; set -x; rm -f $$lib; ${CXX} -shared -Wl,-soname,$$lib \
	-o "$$@" -lgmp -lgf2x; ln -s $$out $$lib'\' \
	RANLIB=: \
	all check

rm -f libntl.so.%{major}
mv -f ntl.a libntl.so.%{version}
ln -sf libntl.so.%{version} libntl.so.%{major}

make clean ntl.a check

%install
cd src

make PREFIX=%{buildroot}%{_prefix} install

install -m 755 libntl.so.%{version} %{buildroot}%{_libdir}/libntl.so.%{version}
ln -sf libntl.so.%{version} %{buildroot}%{_libdir}/libntl.so.%{major}
ln -sf libntl.so.%{version} %{buildroot}%{_libdir}/libntl.so

rm -rf %{buildroot}%{_defaultdocdir}/NTL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3668 |21cr|ntlogon-0.11.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Autogenerator for NT logon scripts
Name:		ntlogon
Version:	0.11.0
Release:	6
License:	GPL
Group:		Networking/Other
URL:		http://www.craigelachie.org/rhacer/ntlogon/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ntlogon-python3.patch
BuildArch:	noarch

%description
NTLogon is a Python script that generates Samba/NT-logon scripts from an
easy-to-modify configuration file. It currently understands the Samba
macros for User, Group and Architecture. The configuration file looks like
a cross between an INI file and a DOS batchfile, so most Windows users
will feel somewhat comfortable with it.

%prep

%setup -q -n %{name}-%{version}
%apply_patches

%build
# no build for no arch ... no build for no arch ...

%install
mkdir -p %{buildroot}{%{_prefix}/bin,/etc,%{_datadir}/doc/%{name}}
install -m 755 ntlogon.py   %{buildroot}%{_bindir}/ntlogon
install -m 644 ntlogon.conf %{buildroot}%{_sysconfdir}


%files
%defattr(-,root,root)
%doc CHANGES LICENSE PKG-INFO README
%config(noreplace) %{_sysconfdir}/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3669 |21cr|ntopng-5.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A next generation Network and traffic analyzer
Name:		ntopng
Version:	5.2.1
Release:	1
License:	GPLv3
Group:		Monitoring
URL:		http://www.ntop.org
Source0:	https://github.com/ntop/ntopng/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	ntopng.conf
Source2:	ntopng.service
Source3:	ntopng.sysconfig
Source4:	ntopng.tmpfiles.d
Source5:	ntopng.sysusers.conf
Patch1:		ntopng-3.3-dev-pidfile.patch
Patch2:		ntopng-5.2-shared-libndpi.patch
Patch3:		ntopng-5.2-mysql-headers.patch
Patch4:		ntopng-ndpi-api.patch
Patch5:		ntopng-ndpi-host.patch
BuildRequires:	bison
BuildRequires:	cairo-devel
#BuildRequires:	clang
#BuildRequires:	clang-devel
BuildRequires:	flex
BuildRequires:	GeoIP-devel
BuildRequires:	hiredis-devel
BuildRequires:	libpcap-devel
BuildRequires:	libtool
BuildRequires:	mariadb-devel
BuildRequires:	netfilter_conntrack-devel
BuildRequires:	netfilter_queue-devel
BuildRequires:	pango-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libndpi)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libmaxminddb)
BuildRequires:	redis >= 4.0.7
BuildRequires:	rrdtool-devel
#BuildRequires:	uglify-js
BuildRequires:	zeromq-devel >= 3.2.4
BuildRequires:	pkgconfig(zlib)
BuildRequires:	lua-devel
Requires:	tcp_wrappers
Requires:	rrdtool
Requires:	geoip
Requires:	redis >= 5.0.0
Requires:	pkgconfig(openssl)
Requires:	cert-sh-functions
Requires(pre):	/bin/systemd-sysusers


%description
ntopng is the next generation version of the original ntop.
It is a network packet traffic probe and collector that renders
network usage graphically, similar to what the popular top Unix
command does. It is based on libpcap and it has been written in a
portable way in order to virtually run on every Unix platform and on
Windows as well.

ntopng is easy to use and suitable for monitoring enterprise network
environments. A web browser is used to navigate through ntopng's
rendered web pages for viewing current traffic information and/or to
get a data dump of the collected network network status and statistics.
In the latter case, ntopng can be seen as a simple RMON-like agent with
an embedded web interface.

ntopng feature highlights:

* An intuitive web interface sporting numerous visuals and monitoring graphs.
* Show network traffic and IPv4/IPv6 active hosts.
* Analyse IP traffic and sort it according to the source/destination.
* Limited configuration and administration via the web interface.
* Reduced CPU and memory usage (this varies according to network size and
  traffic).
* Collection of a large number of hosts and network statistic values.
* Discover application protocols by leveraging nDPI (i.e., ntop’s Deep Packet
  Inspection Library).
* Report IP protocol usage sorted by protocol type.

%files
%doc README.*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_unitdir}/%{name}.service
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8.*
%{_datadir}/%{name}/
%{_tmpfilesdir}/%{name}.conf
%attr(0750,ntopng,ntopng) %dir %{_localstatedir}/lib/%{name}
%{_sysusersdir}/ntopng.conf

%pretrans -p <lua>
-- Define the path to the symlink being replaced below.
path = "/usr/share/ntopng/scripts/lua/modules/resty"
st = posix.stat(path)
if st and st.type == "link" then
  os.remove(path)
end
path = "/usr/share/ntopng/scripts/lua/modules/i18n"
st = posix.stat(path)
if st and st.type == "link" then
  os.remove(path)
end

%pre
%sysusers_create_package ntopng %{SOURCE5}

%post
%systemd_post ntopng.service
%tmpfiles_create %{_tmpfilesdir}/%{name}

%preun
%systemd_preun ntopng.service


#----------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}

#use system libs
rm -rf third-party/{hiredis,json-c,rrdtool*,zeromq*}

%build
#export CC=clang
#export CXX=clang++
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1

./autogen.sh --noconfig

%serverbuild

%configure \
    --bindir=%{_sbindir} \
    --localstatedir=/var/lib \
    --with-ndpi=%{_libdir} \
    --with-ndpi-includes=%{_includedir}/ndpi/

%make_build

%install

install -d %{buildroot}%{_datadir}/ntopng
install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_unitdir}

install -m0755 ntopng %{buildroot}%{_sbindir}
install -m0644 ntopng.8 %{buildroot}%{_mandir}/man8

cp -ar httpdocs %{buildroot}%{_datadir}/%{name}
cp -ar scripts %{buildroot}%{_datadir}/%{name}

# fix broken symlinks
rm -rf  %{buildroot}%{_datadir}/ntopng/scripts/lua/modules/{resty,i18n}
cp -ar third-party/lua-resty-template-master/lib/resty third-party/i18n.lua-master/i18n \
        %{buildroot}%{_datadir}/ntopng/scripts/lua/modules/

find %{buildroot}%{_datadir}/%{name} -name "*~"   | xargs rm -f
find %{buildroot}%{_datadir}/%{name} -name ".svn" | xargs rm -rf
find %{buildroot}%{_datadir}/%{name} -name ".git" | xargs rm -rf

install -d %{buildroot}%{_localstatedir}/lib/%{name}/rrd/{flows,graphics,interfaces}

install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

# fix permissions
find %{buildroot}%{_datadir}/%{name}/httpdocs -type f -print0|xargs -0 chmod 644
find %{buildroot}%{_datadir}/%{name}/httpdocs -type d -print0|xargs -0 chmod 755

# dangling symlinks
rm -rf %{buildroot}%{_datadir}/%{name}/httpdocs/geoip
ln -s %{_datadir}/GeoIP %{buildroot}%{_datadir}/%{name}/httpdocs/geoip
ln -s %{_sysconfdir}/pki/tls/private/%{name}.pem %{buildroot}%{_datadir}/%{name}/httpdocs/ssl/%{name}-cert.pem

# tmpfiles
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/ntopng.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3670 |21cr|ntrack-017-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network Connectivity Tracking library for Desktop Applications
Name:		ntrack
Version:	017
Release:	7
License:	LGPLv3+
Group:		Development/C
Url:		https://launchpad.net/%{name}
Source:		http://launchpad.net/%{name}/main/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(python)

%description
ntrack aims to be a lightweight and easy to use library for application
developers that want to get events on network online status changes such
as online, offline or route changes.

The primary goal is to serve desktop applications in a network manager
and desktop environment independent fashion.
Also its supposed to be lightweight, resource un-intensive and extensible.

%files
%doc README NEWS COPYING COPYING.LESSER ChangeLog AUTHORS
%{_libdir}/ntrack/modules/ntrack-libnl3_x.so

#----------------------------------------------------------------------------

%define ntrack_major 0
%define libntrack %mklibname ntrack %{ntrack_major}

%package -n %{libntrack}
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		System/Libraries

%description -n %{libntrack}
ntrack aims to be a lightweight and easy to use library for application
developers that want to get events on network online status changes such
as online, offline or route changes.

%files -n %{libntrack}
%{_libdir}/libntrack.so.%{ntrack_major}*

#-------------------------------------------------------------------------------

%define libntrack_devel %mklibname ntrack -d

%package -n %{libntrack_devel}
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		Development/Other
Provides:	libntrack-devel = %{EVRD}

%description -n %{libntrack_devel}
ntrack aims to be a lightweight and easy to use library for application
developers that want to get events on network online status changes such
as online, offline or route changes.

%files -n %{libntrack_devel}
%{_libdir}/pkgconfig/libntrack.pc
%{_libdir}/libntrack.so

#----------------------------------------------------------------------------

%define ntrackqt_major 1
%define libntrackqt %mklibname ntrack-qt4_ %{ntrackqt_major}

%package -n %{libntrackqt}
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		System/Libraries
Conflicts:	%{_lib}ntrack-qt41 < 017-6
Obsoletes:	%{_lib}ntrack-qt41 < 017-6

%description -n %{libntrackqt}
ntrack aims to be a lightweight and easy to use library for application
developers that want to get events on network online status changes such
as online, offline or route changes.

This packages provides the Qt4 bindings for %{name}.

%files -n %{libntrackqt}
%{_libdir}/libntrack-qt4.so.%{ntrackqt_major}*

#----------------------------------------------------------------------------

%define libntrackqt_devel %mklibname ntrack-qt4 -d

%package -n %{libntrackqt_devel}
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		Development/Other
Requires:	%{libntrackqt} = %{EVRD}
Provides:	libntrack-qt4-devel = %{EVRD}
Conflicts:	%{_lib}libntrack-qt4-devel < 017-6
Obsoletes:	%{_lib}libntrack-qt4-devel < 017-6

%description -n %{libntrackqt_devel}
Development files (headers and libraries) for ntrack-qt4.

%files -n %{libntrackqt_devel}
%{_includedir}/%{name}/qt4/
%{_libdir}/pkgconfig/libntrack-qt4.pc
%{_libdir}/libntrack-qt4.so

#----------------------------------------------------------------------------

%define libntrack_gobject_major 1
%define libntrack_gobject %mklibname ntrack-gobject %{libntrack_gobject_major}

%package -n %{libntrack_gobject}
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		System/Libraries
Conflicts:	%{_lib}libntrack-gobject1 < 017-6
Obsoletes:	%{_lib}libntrack-gobject1 < 017-6

%description -n %{libntrack_gobject}
ntrack aims to be a lightweight and easy to use library for application
developers that want to get events on network online status changes such
as online, offline or route changes.

This package provides the gobject bindings for %{name}

%files -n %{libntrack_gobject}
%{_libdir}/libntrack-gobject.so.%{libntrack_gobject_major}*

#----------------------------------------------------------------------------

%define libntrack_gobject_devel %mklibname ntrack-gobject -d

%package -n %{libntrack_gobject_devel}
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		Development/Other
Requires:	%{libntrack_gobject} = %{EVRD}
Provides:	libntrack-gobject-devel = %{EVRD}
Conflicts:	%{_lib}libntrack-gobject-devel < 017-6
Obsoletes:	%{_lib}libntrack-gobject-devel < 017-6

%description -n %{libntrack_gobject_devel}
Development files (headers and libraries) for ntrack.

%files -n %{libntrack_gobject_devel}
%{_includedir}/%{name}/gobject/
%{_libdir}/pkgconfig/libntrack-gobject.pc
%{_libdir}/libntrack-gobject.so

#----------------------------------------------------------------------------

%define libntrack_glib_major 2
%define libntrack_glib %mklibname ntrack-glib %{libntrack_glib_major}

%package -n %{libntrack_glib}
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		System/Libraries
Conflicts:	%{_lib}libntrack-glib2 < 017-6
Obsoletes:	%{_lib}libntrack-glib2 < 017-6

%description -n %{libntrack_glib}
ntrack aims to be a lightweight and easy to use library for application
developers that want to get events on network online status changes such
as online, offline or route changes.

This package provides the glib bindings for %{name}.

%files -n %{libntrack_glib}
%{_libdir}/libntrack-glib.so.%{libntrack_glib_major}*

#----------------------------------------------------------------------------

%define libntrack_glib_devel %mklibname ntrack-glib -d

%package -n %{libntrack_glib_devel}
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		Development/Other
Requires: 	%{libntrack_glib} = %{EVRD}
Provides:	libntrack-glib-devel = %{EVRD}
Conflicts:	%{_lib}libntrack-glib-devel < 017-6
Obsoletes:	%{_lib}libntrack-glib-devel < 017-6

%description -n %{libntrack_glib_devel}
Development files (headers and libraries) for ntrack.

%files -n %{libntrack_glib_devel}
%{_includedir}/%{name}/glib/
%{_libdir}/pkgconfig/libntrack-glib.pc
%{_libdir}/libntrack-glib.so

#----------------------------------------------------------------------------

%package devel
Summary:	Network Connectivity Tracking library for Desktop Applications
Group:		Development/Other
Requires:	%{libntrack_glib_devel} = %{EVRD}
Requires:	%{libntrack_gobject} = %{EVRD}
Requires:	%{libntrack_devel} = %{EVRD}
Requires:	%{libntrackqt_devel} = %{EVRD}

%description devel
Development files (headers and libraries) for ntrack.

%files devel
%dir %{_includedir}/ntrack
%{_includedir}/ntrack/common/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall

# dupes
rm -rf %{buildroot}%{_datadir}/doc/ntrack

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3671 |21cr|nuclearchess-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define summary Chess variant that cause surronding pieces to disappear
Summary:	%{summary}
Name:		nuclearchess
Version:	1.0.0
Release:	6
License:	GPLv2
Source:		http://user.cs.tu-berlin.de/~karlb//%{name}/%{name}-%{version}.tar.gz
Group:		Games/Boards
URL:		http://www.linux-games.com/nuclearchess/
BuildRequires:	libSDL_image-devel

%description
NuclearChess is a chess variant. Whenever a piece is captured, both
pieces and all pieces on neighbour fields die.

%prep
%setup -q

%build
export LDFLAGS="-lm"
%configure --datadir=%{_gamesdatadir} --bindir=%{_gamesbindir}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=boards_section
Comment=%{summary}
Categories=BoardGame;
Name=Nuclear Chess
EOF

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog COPYING README
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3672 |21cr|nudoku-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           nudoku
Version:        2.1.0
Release:        1
Summary:        Ncurses based Sudoku game
License:        GPLv3
Group:          Games/Puzzles 
Url:            https://github.com/jubalh/%{name}
Source:         https://github.com/jubalh/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(cairo)
BuildRequires:  gettext-devel
BuildRequires:  xz

%description
nudoku is a ncurses based Sudoku game.

%files -f %{name}.lang
%doc README.md LICENSE AUTHORS ChangeLog
%{_bindir}/nudoku
%{_mandir}/man6/nudoku.6.*
#--------------------------------------------------------

%prep
%setup -q
autoreconf -fiv

%build
%configure  \
    --enable-cairo

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3673 |21cr|nullidentd-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Minimal identd server implementing the auth protocol (RFC 1413)
Name:		nullidentd
Version:	1.0
Release:	12
License:	GPL
Group:		System/Servers
Source0:	http://www.tildeslash.org/nullidentd/%{name}-%{version}.tar.bz2
Source1:	%{name}.xinetd.bz2
Patch0:		%{name}-makefile.patch.bz2
Patch1:		nullidentd-1.0-gcc4-fixes.patch.bz2
URL:		http://www.tildeslash.org/nullidentd.html
Provides:	identd
Requires(pre,postun):	rpm-helper

%description
nullidentd is intended to be a bare minimum identd server.

The program implements the auth protocol from RFC 1413.  This protocol is
used to identify active TCP connections.  It depends on the trustworthiness
of the server and as such is completely useless as a method of
identification.  Unfortunately some applications still require that an identd
server is available to query about incoming connections.  nullidentd
implements the absolute minimum server to allow these applications to
function.  It returns a fake response for any request.

%prep
%setup -q
%patch0 -p0
%patch1 -p1 -b .gcc4

%build
%make CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_sysconfdir}/xinetd.d,%{_sbindir}}
%makeinstall
install -m755 %{name} $RPM_BUILD_ROOT%{_sbindir}
bzcat %{SOURCE1} > $RPM_BUILD_ROOT%{_sysconfdir}/xinetd.d/%{name}
install -d $RPM_BUILD_ROOT%{_localstatedir}/lib/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/true

%post
%_post_service xinetd

%preun
if [ -f /var/run/xinetd.pid ]; then
	echo "Restarting xinetd service"
	service xinetd restart
fi

%postun
%_postun_userdel %{name}

%files
%defattr(-,root,root)
%doc README CHANGELOG
%config(noreplace) %{_sysconfdir}/xinetd.d/%{name}
%{_sbindir}/%{name}
%{_localstatedir}/lib/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3674 |21cr|numptyphysics-0.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A crayon-drawing based physics puzzle game 
Name:		numptyphysics
Version:	0.3.3
Release:	5
License:	GPLv3+
Group:		Games/Puzzles
Url:		http://numptyphysics.garage.maemo.org/
# git clone git://github.com/harmattan/numptyphysics.git
# cd numptyphysics
# git archive --format=tar --prefix=numptyphysics-0.3.3/ 0.3.3 | \
# gzip > ../numptyphysics-0.3.3.tar.gz
Source0:	%{name}-%{version}.tar.gz
Source1:	numptyphysics.desktop
Source10:	numptyphysics-levels.tar.gz
Patch2:		numptyphysics-0.3.3.fixclose.patch
Patch3:		numptyphysics-0.3.3.fixmake.patch
BuildRequires:	desktop-file-utils
BuildRequires:	vim-common
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(x11)

%description
Harness gravity with your crayon and set about creating blocks, ramps,
levers, pulleys and whatever else you fancy to get the little red thing to
the little yellow thing.

%files
%{_bindir}/numptyphysics
%{_datadir}/numptyphysics
%{_datadir}/pixmaps/numptyphysics.png
%{_datadir}/applications/numptyphysics.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch2 -p 1 -b .fixclose
%patch3 -p 1 -b .fixmake

%build
export LIBS="-lz -lX11"
%make

%install
%makeinstall_std

# Directory structure
install -d %{buildroot}%{_datadir}/numptyphysics
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/pixmaps

# Files
install -pm 644 data/numptyphysics.png %{buildroot}%{_datadir}/pixmaps/numptyphysics.png

# Additional levels
tar xzf %{SOURCE10} -C %{buildroot}%{_datadir}/numptyphysics
mv -f %{buildroot}%{_datadir}/numptyphysics/numptyphysics-levels/*.nph %{buildroot}%{_datadir}/numptyphysics/
rm -rf %{buildroot}%{_datadir}/numptyphysics/numptyphysics-levels

# Icon
desktop-file-install %{SOURCE1} \
	--dir=%{buildroot}%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3675 |21cr|nusoap-0.9.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude pear(f:
%global __provides_exclude pear(f:

Summary:	SOAP Toolkit for PHP
Name:		nusoap
Version:	0.9.5
Release:	6
License:	LGPLv2.1+
Group:		Development/PHP
Url:		http://sourceforge.net/projects/nusoap/
Source0:	https://downloads.sourceforge.net/project/nusoap/%{name}/%{version}/%{name}-%{version}.zip
Source1:	https://downloads.sourceforge.net/project/nusoap/%{name}-docs/%{version}/%{name}-docs-%{version}.zip
Requires:	php-pear
BuildArch:	noarch

%description
NuSOAP is a rewrite of SOAPx4, provided by NuSphere and Dietrich Ayala. It is a
set of PHP classes - no PHP extensions required -  that allow developers to
create and consume web services based on SOAP 1.1, WSDL 1.1 and HTTP 1.0/1.1.

%files
%doc lib/changelog docs/* samples
%dir %{_datadir}/pear/nusoap
%{_datadir}/pear/nusoap/*php

#----------------------------------------------------------------------------

%prep
%setup -q -c -a1

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

# strip away annoying ^M
find -type f -print0|xargs -0 file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find -type f -print0|xargs -0 file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

perl -pi -e "s|\(\'\.\.\/lib\/|\(\'%{_datadir}/pear/nusoap/|g" samples/*

mv lib/changelog lib/changelog.old
iconv -f ISO-8859-1 -t UTF-8 lib/changelog.old > lib/changelog

%build

%install
install -d %{buildroot}%{_datadir}/pear/nusoap
install -m0644 lib/*.php %{buildroot}%{_datadir}/pear/nusoap/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3676 |21cr|nvidia-prime-render-offload-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname prime

Summary:	Nvidia Prime render offload utility
Name:		nvidia-prime-render-offload
Version:	1
Release:	1
Group:		System/Kernel and hardware
License:	GPLv2
URL:		https://download.nvidia.com/XFree86/Linux-x86_64/435.21/README/primerenderoffload.html
Source0:	%{oname}

%description
Nvidia Prime render offload utility, adds the ability
to have an X screen rendered by one GPU, but choose
certain applications within that X screen to be
rendered on a different GPU.
To start, use the command "prime "command"".
Examples:
prime vkcube
prime firefox

%files
%{_bindir}/%{oname}

#----------------------------------------------------------------------
%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}

install -m 755  %{SOURCE0} %{buildroot}%{_bindir}/%{oname}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3677 |21cr|nvidia-tweaker-1-3.gitba3b53.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit ba3b5362d921222565cf20307d79552af0f9ddf3
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8):	Утилита, позволяющая добавлять пункт вызова программ с NVidia
Summary:	Utility allowing running programs with NVidia
Name:		nvidia-tweaker
Version:	1
Release:	3.git%{commit_short}.2
License:	GPLv3
Group:		System/Configuration/Other
Url:		https://hub.mos.ru/mos/src/nvidia-tweaker
Vendor:		MOS
Source0:	https://hub.mos.ru/mos/src/%{name}/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch:	noarch
Requires:	python3-qtpy
BuildRequires:	desktop-file-utils
Recommends:	polkit
Recommends:	bash-completion

%description
%{summary}.

%description -l ru_RU.UTF-8
Утилита, позволяющая добавлять пункт вызова программ с NVidia

%files
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_sbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/polkit-1/actions/ru.mos.os.%{name}.policy
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/bash-completion/completions/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions

cp -R * %{buildroot}%{_datadir}/%{name}
ln -s /usr/share/%{name}/main.py %{buildroot}%{_sbindir}/%{name}
install -m755 %{name}.sh %{buildroot}%{_bindir}/%{name}
install -m644 ru.mos.os.%{name}.policy %{buildroot}%{_datadir}/polkit-1/actions
install -m644 %{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps
desktop-file-install %{name}.desktop
install -m644 %{name}.complete %{buildroot}%{_datadir}/bash-completion/completions/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3678 |21cr|nvme-cli-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           nvme-cli
Version:        2.2
Release:        1
Summary:        NVMe management command line interface
Group:          System/Kernel and hardware
License:        GPLv2+
URL:            https://github.com/linux-nvme/nvme-cli
Source0:        https://github.com/linux-nvme/nvme-cli/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:  meson >= 0.47.0
BuildRequires:  uuid-devel
BuildRequires:  gcc gcc-c++
BuildRequires:  pkgconfig(systemd)
BuildRequires:  zlib-devel
BuildRequires:  openssl-devel

BuildRequires:  libnvme-devel >= 1.0
BuildRequires:  json-c-devel >= 0.14
BuildRequires:  python3-nose2
#BuildRequires:  python3-mypy
BuildRequires:  python3-flake8
BuildRequires:  python3-autopep8
BuildRequires:  python3-isort
BuildRequires:  asciidoc
BuildRequires:  xmlto

%description
nvme-cli provides NVM-Express user space tooling for Linux.

%prep
%autosetup -p1


%build
%meson -Dudevrulesdir=%{_udevrulesdir} -Dsystemddir=%{_unitdir} -Ddocs=all -Ddocs-build=true -Dhtmldir=%{_docdir}/%{name}
%meson_build


%install
%meson_install

# hostid and hostnqn are supposed to be unique per machine.  We obviously
# can't package them.
rm -f %{buildroot}%{_sysconfdir}/nvme/hostid
rm -f %{buildroot}%{_sysconfdir}/nvme/hostnqn

# Do not install the dracut rule yet.  See rhbz 1742764
rm -f %{buildroot}/usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf

# Move html docs into the right place
mv %{buildroot}%{_docdir}/%{name}/nvme %{buildroot}%{_docdir}/%{name}/html
rm -rf %{buildroot}%{_docdir}/%{name}/nvme


%files
%license LICENSE
%doc %{_docdir}/%{name}
%{_sbindir}/nvme
%{_mandir}/man1/nvme*
%{_datadir}/bash-completion/completions/nvme
%{_datadir}/zsh/site-functions/_nvme
%dir %{_sysconfdir}/nvme
%{_sysconfdir}/nvme/discovery.conf
%{_unitdir}/nvmefc-boot-connections.service
%{_unitdir}/nvmf-autoconnect.service
%{_unitdir}/nvmf-connect.target
%{_unitdir}/nvmf-connect@.service
%{_udevrulesdir}/70-nvmf-autoconnect.rules
%{_udevrulesdir}/71-nvmf-iopolicy-netapp.rules
# Do not install the dracut rule yet.  See rhbz 1742764
# /usr/lib/dracut/dracut.conf.d/70-nvmf-autoconnect.conf


%post
if [ $1 -eq 1 ] || [ $1 -eq 2 ]; then
    if [ ! -s %{_sysconfdir}/nvme/hostnqn ]; then
        echo $(nvme gen-hostnqn) > %{_sysconfdir}/nvme/hostnqn
    fi
    if [ ! -s %{_sysconfdir}/nvme/hostid ]; then
        uuidgen > %{_sysconfdir}/nvme/hostid
    fi
fi



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3679 |21cr|nvtop-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global appstream_id io.github.syllo.nvtop

Summary:	GPU process monitoring for AMD, Intel and NVIDIA
Name:		nvtop
Version:	3.0.1
Release:	1
Group:		System/X11
# BSD-3-Clause: include/ini.h, src/ini.c
# LGPL-2.1-or-later: include/list.h - this combines into GPL-3.0-or-later
# some cmake modules are BSD-3-Clause or MIT but those are not shipped out
License:	GPL-3.0-or-later and BSD-3-Clause
Url:		https://github.com/Syllo/nvtop
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
# these might be upstreamable
Patch0:		nvtop-fix-icon-path.diff
Patch1:		nvtop-fix-appstream-path.diff
# these can be upstreamed. Will do once verifying the metadata shows properly
Patch2:		nvtop-fix-icon-in-appstream.diff
Patch3:		nvtop-fix-screenshot-urls-in-appstream.diff
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(ncursesw)

%description
Nvtop stands for Neat Videocard TOP, a (h)top like task monitor for AMD,
Intel and NVIDIA GPUs. It can handle multiple GPUs and print information
about them in a htop familiar way.

%files
%doc COPYING  README.markdown
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/metainfo/%{appstream_id}.metainfo.xml
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/%{appstream_id}.metainfo.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3680 |21cr|nxcl-0.9-0.631.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define revision 631

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A library for building NX clients
Name:		nxcl
Version:	0.9
Release:	0.%{revision}.7
Epoch:		1
License:	GPLv2+
Group:		System/Libraries
Url:		http://freenx.berlios.de/
Source0:	%{name}-%{version}-svn%{revision}.tar.bz2
Patch1:		nxcl-fixbuild.patch
Patch2:		nxcl-gcc47.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(x11)

%description
A library for building NX clients.

%files
%{_bindir}/libtest
%{_bindir}/notQttest
%{_bindir}/nxcl
%{_bindir}/nxcmd
%{_docdir}/nxcl*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for building NX clients
Group:		System/Libraries
Conflicts:	%{name} < 1:0.9-0.631.7

%description -n %{libname}
A library for building NX clients.

%files -n %{libname}
%{_libdir}/libnxcl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for NX clients library
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 1:0.9-0.631.7

%description -n %{devname}
Development files for NX clients library.

%files -n %{devname}
%{_includedir}/nxcl/*
%{_libdir}/libnxcl.so
%{_libdir}/pkgconfig/nxcl.pc

#----------------------------------------------------------------------------

%prep
%setup -n %{name}
%patch1 -p1
%patch2 -p0

%build
sed -i -e "s#1.0#0.9#" configure.ac || die "version sed failed"

autoreconf -is
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3681 |21cr|nxs-backup-3.12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	The tool for creating, delivering and rotating backups for GNU/Linux distributions
Name:		nxs-backup
Version:	3.12.1
Release:	1
License:	MIT
Group:		Development/Other
Url:		http://github.com/nixys/nxs-backup
Source0:	http://github.com/nixys/nxs-backup/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# unpack source and run 'go mod vendor' in source dir, tar.gz 'vendor' dir
# or use upd.sh
Source1:	%{name}-go-mod-vendor-%{version}.tar.gz
Source10:	upd.sh
BuildRequires:	golang

%description
The tool for creating, delivering and rotating backups 
for GNU/Linux distributions.

%files
%doc README.md
%doc docs/example
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1

sed "s@APP_VERSION@%{version}@" misc/version.go.in > misc/version.go

%build
CGO_ENABLED=0 go build --ldflags="-s -w" -v -o %{name}

%install
install -d %{buildroot}%{_bindir}
install -Dm0755 %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3682 |21cr|nxtvepg-3_0_0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	oversion	RELEASE_3_0_0

Summary:	NexTView EPG decoder and browser
Name:			nxtvepg
Version:	3_0_0
Release:	2
License:	GPLv2+
Group:		Video
Url:		http://nxtvepg.sourceforge.net/
Source0:	https://github.com/tomzox/nxtvepg/archive/refs/tags/%{name}-%{oversion}.tar.gz
Patch0:		nxtvpeg-3.0.0-fix-ctime-perl-uses.patch
BuildRequires:	imagemagick
BuildRequires:	perl-base
BuildRequires:	tcl >= 8.6
BuildRequires:	tk
BuildRequires:	tcl-devel
BuildRequires:	tk-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
Requires:	tcl >= 8.6
Requires:	tk

%description
This is a decoder and browser for nexTView - an Electronic TV Program Guide
for the analog domain (as opposed to the various digital EPGs that come with
most digital broadcasts). It allows you to decode and browse TV program
listings for most of the major networks in Germany, Austria, France and
Switzerland.
Currently Nextview EPG is transmitted by:
- in Germany and Austria: Kabel1, 3Sat, RTL-II.
- in Switzerland: SF1, TSR1, TSI1, EuroNews.
- in France: Canal+, M6.
- in Turkey: TRT.
If you don't receive any of those, then this software unfortunately is
almost useless to you, except for a demo mode. For more details please
refer to the documentation in the "Help" menus or the UNIX manual page.

%files 
%doc README.md CHANGES COPYRIGHT TODO nxtvepg.pod pod2help.pl 
%doc www/man.html www/faq.html
%{_bindir}/%{name}
%{_bindir}/%{name}d
%{_datadir}/X11/app-defaults/*
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.xpm
%{_mandir}/man1/*.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oversion}
%patch0 -p1


%build
make prefix="%{_prefix}" TCL_VER=%{tcl_version} \
 TCL_LIBRARY_PATH="%{tcl_sitelib}" \
 TK_LIBRARY_PATH="%{_datadir}/tk%{tcl_version}"

 
%install
make ROOT="%{buildroot}" prefix="%{_prefix}" res_prefix="%{_datadir}/X11" \
 mandir="%{buildroot}%{_mandir}/man1" install

# Provide icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16; do
	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -strip -resize $size www/nxtv_logo.png %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

# Provide a menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Nxtvepg
Comment=NexTView EPG decoder and browser
Exec=%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Video;AudioVideoEditing;Recorder;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3683 |21cr|nyancat-1.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Nyancat rendered in your terminal
Name:		nyancat
Version:	1.5.1
Release:	3
Group:		Toys
License:	NCSA
Url:		https://github.com/klange/nyancat
Source0:	https://github.com/klange/nyancat/archive/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python)

%description
Nyancat rendered in your terminal.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_unitdir}/%{name}@.service
%{_unitdir}/%{name}.socket

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make \
	LFLAGS="%{ldflags}" \
	CPPFLAGS="%{optflags}" \
	CC=%{__cc}

%install
mkdir -p %{buildroot}/%{_bindir}/
mkdir -p %{buildroot}/%{_mandir}/man1/
mkdir -p %{buildroot}/%{_unitdir}
install -m 0755 src/%{name} %{buildroot}/%{_bindir}/%{name}
install -m 0644 nyancat.1 %{buildroot}/%{_mandir}/man1/
install -m 0644 systemd/*.{service,socket} %{buildroot}/%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3684 |21cr|o3read-0.0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		o3read
Version:	0.0.4
Release:	8
Summary:	Converter for OpenOffice and OpenDocument files
Group:		Text tools
URL:		http://siag.nu/o3read/
Source:		http://siag.nu/pub/o3read/%{name}-%{version}.tar.gz
License:	GPL

%description
o3read is a standalone converter for OpenOffice.org and OpenDocument
formats. It doesn't depend on OpenOffice.org or any other external 
tools or libraries. It is used by MC viewing these types of file.

%prep
%setup -q

%build
%make

%install
%makeinstall BINDIR=%{buildroot}%{_bindir} MANDIR=%{buildroot}%{_mandir}/man1

%clean

%files
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3685 |21cr|obby-0.4.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.4
%define major 1
%define libname %mklibname obby %{api} %{major}
%define devname %mklibname obby -d

Summary:	A library which provides synced document buffers
Name:		obby
Version:	0.4.8
Release:	7
License:	GPLv2+
Group:		System/Libraries
Url:		http://gobby.0x539.de/
Source0:	http://releases.0x539.de/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	gmpxx-devel
BuildRequires:	pkgconfig(howl)
BuildRequires:	pkgconfig(net6-1.3)
BuildRequires:	pkgconfig(sigc++-2.0)

%description
Obby is a library which provides synced document buffers. It supports
multiple documents in one session and is portable to both Windows and
Unix-like platforms.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library to ease the development of network-based applications
Group:		System/Libraries

%description -n %{libname}
Obby is a library which provides synced document buffers. It supports
multiple documents in one session and is portable to both Windows and
Unix-like platforms.

%files -n %{libname}
%doc ChangeLog README TODO NEWS AUTHORS
%{_libdir}/libobby-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Development files, header and includes for %{name}.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static \
	--with-zeroconf \
	--enable-ipv6
%make

%install
%makeinstall_std
# remove translation, do not know where to place it 
rm -Rf %{buildroot}%{_datadir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3686 |21cr|obconf-2.0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Openbox preferences manager
Name:		obconf
Version:	2.0.4
Release:	8
Source0:	http://openbox.org/dist/obconf/%name-%version.tar.gz
Patch1:		obconf-2.0.3-link.patch
Patch2:		obconf-2.0.4-ru.patch
# No need to use this patch during the build. It is only required to correctly regenerate *.pot file
Patch3:		obconf-2.0.4-fix-pot.patch
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://openbox.org/wiki/Obconf
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	gettext-devel
BuildRequires:	startup-notification-devel
BuildRequires:	openbox-devel >= 3.5.2
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	desktop-file-utils
Requires:	openbox >= 3.5.2

%description
ObConf is a graphical configuration tool for the Openbox window manager.

%prep
%setup -q
rm -f po/*gmo
%apply_patches

%build
autoreconf -fi
%configure
%make
pushd po
make update-gmo
popd

%install
%makeinstall

# fix .desktop file
desktop-file-install --remove-key="Encoding" \
		--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS README COPYING TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/mimelnk/application/x-openbox-theme.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3687 |21cr|obconf-qt-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Openbox configuration tool for the LXQt desktop
Name:		obconf-qt
Version:	0.14.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/obconf-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		obconf-qt-20151214-initialsize.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(obrender-3.5)
BuildRequires:	pkgconfig(obt-3.5)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)

%description
Openbox configuration tool for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG COPYING README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3688 |21cr|obexfs-0.12-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FUSE based filesystem using ObexFTP
Name:		obexfs
Version:	0.12
Release:	6
License:	GPLv2+
Group:		Communications
Url:		http://triq.net/obex/
Source0:	http://downloads.sourceforge.net/openobex/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(obexftp)

%description
The ObexFS driver is a wrapper for ObexFTP to provide filesystem access
to mobile phones.

%files
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/obexautofs
%{_bindir}/obexfs

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export OBEXFTP_LIBS="-lfuse -lobexftp -lmulticobex -lbfb -lopenobex -lbluetooth -lusb"
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3689 |21cr|obmenu-generator-0.93-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           obmenu-generator
Version:        0.93
Release:        1
License:        GPLv3
Summary:        Menu generator for the Openbox Window Manager
Summary(ru_RU.UTF-8):        Генератор меню для оконного менеджера Openbox
Group:          System/Configuration/Other
Url:            https://github.com/trizen/obmenu-generator/blob/master/README.md
Source:         https://github.com/trizen/obmenu-generator/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz

Requires:       openbox
Requires:       perl
Requires:       perl-Gtk3
Requires:       perl-Data-Dump
Requires:       perl-Linux-DesktopFiles
Requires:       perl-File-DesktopEntry
BuildArch:      noarch

%description
Openbox Menu Generator is a simple Perl script that generates a valid Openbox XML menu.

%description -l ru_RU.UTF-8
Генератор меню Openbox - это простой Perl-скрипт, который генерирует корректное XML-меню Openbox.

%prep
%autosetup -p1

%build

%install
install -Dm 755 %{name} %{buildroot}/usr/bin/%{name}
install -Dm 644 schema.pl %{buildroot}/etc/xdg/%{name}/schema.pl
mkdir -p %{buildroot}/usr/share/doc/%{name}
cp INSTALL.md LICENSE README.md %{buildroot}/usr/share/doc/%{name}

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%_bindir/%{name}
%_sysconfdir/xdg/%{name}/*.pl
%doc %{_datadir}/doc/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3690 |21cr|obs-ptz-0.15.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	obs

Summary(ru_RU.UTF-8):	Плагин OBS для управления панорамированием, наклоном и зумом камеры
Summary:	OBS Pan Tilt Zoom camera control plugin
Name:		obs-ptz
Version:	0.15.4
Release:	3
License:	GPLv2+
Group:		Video
Source0:	https://github.com/glikely/obs-ptz/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		cmakelists-fixes.patch
Patch1:		obs-ptz-remove-Werror.patch
BuildRequires:	cmake
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(libobs)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(Qt6Core)
BuildRequires:	pkgconfig(Qt6Widgets)
BuildRequires:	pkgconfig(Qt6Svg)
BuildRequires:	pkgconfig(Qt6Network)
BuildRequires:	pkgconfig(Qt6Xml)
BuildRequires:	pkgconfig(Qt6SerialPort)
Requires:	obs-studio
# vpl build only for x86_64
ExclusiveArch:	%{x86_64}

%description
This plugin adds a new control dock window that can be used to control pan, tilt,
zoom camera directly from the OBS Studio main window.

%description -l ru_RU.UTF-8
Этот плагин добавляет новое окно control dock, которое можно использовать для
управления панорамированием, наклоном, масштабированием камеры непосредственно
из главного окна OBS Studio.

%files
%{_libdir}/%{oname}-plugins/%{name}.so
%{_datadir}/%{oname}/%{oname}-plugins/%{name}

%prep
%autosetup -p1

%build
%cmake \
	-DLINUX_PORTABLE=OFF \
	-DQT_VERSION=6 \
	-DPLUGIN_VERSION:STRING=%{version} \
	-DENABLE_JOYSTICK=true

%make

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3691 |21cr|obs-studio-30.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 30
%define	libobs %mklibname obs %{major}
%define	libobsopengl %mklibname obs-opengl %{major}
%define	libobsfrontendapi  %mklibname obs-frontend-api %{major}
%define	devobs %mklibname obs -d

%define	oname	obs

%global	_default_patch_fuzz 2

%bcond_without CEF
%global         CEF_DIR %{_libdir}/cef
%global         commit 996b5a7bc43d912f1f4992e0032d4f263ac8b060
%global         short_commit %(c=%{commit}; echo ${c:0:11})

%global         websocket_commit d2d4bfb3e78cf2b02c8e2f5dda1d805eda8d8f32
%global         websocket_short %(c=%{websocket_commit}; echo ${c:0:11})

# Mask missing devel requires. May be need patch for cmake files?
# libcef.so is in browser-plugin with "AutoProv: no"
%global	__requires_exclude ^cmake\\(w32-pthreads\\)|^libcef.so

Summary:	Free and open source software for video recording and live streaming
Name:		obs-studio
Version:	30.1.2
Release:	6
License:	GPLv2+
Group:		Video
Url:		https://obsproject.com
Source0:	https://github.com/obsproject/obs-studio/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	https://github.com/obsproject/obs-browser/archive/%{commit}.tar.gz?/obs-browser-%{short_commit}.tar.gz
Source3:	https://github.com/obsproject/obs-websocket/archive/%{websocket_commit}.tar.gz?/obs-websocket-%{websocket_short}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		obs-studio-29.1.3-fix-linking.patch
Patch1:		obs-studio-29.1.3-drop-Werror.patch
# 2021.1 have old cmake 3.21
Patch2:		obs-studio-cmake-version.patch
Patch3:		obs-studio-cef-122.patch
BuildRequires:  asio
BuildRequires:	appstream-util
%if %{with CEF}
BuildRequires:	cef-devel
%endif
BuildRequires:	pkgconfig(nss)
BuildRequires:	cmake >= 3.25
BuildRequires:	ninja
BuildRequires:	qt6-cmake
BuildRequires:	qt6-imageformats-plugins
BuildRequires:	swig
BuildRequires:	libdatachannel-devel
BuildRequires:	mbedtls-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cryptopp)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fdk-aac)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavdevice)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(librist)
# Not provided yet in Rosa
#BuildRequires:	pkgconfig(libsrt)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(MagickCore)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(Qt6Core)
BuildRequires:	pkgconfig(Qt6Gui)
BuildRequires:	pkgconfig(Qt6Network)
BuildRequires:	pkgconfig(Qt6Svg)
BuildRequires:	pkgconfig(Qt6Widgets)
BuildRequires:	pkgconfig(Qt6Xml)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(uuid)
%ifarch %{x86_64}
BuildRequires:	pkgconfig(vpl)
%endif
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(websocketpp)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(x264)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-randr)
BuildRequires:	pkgconfig(xcb-shm)
BuildRequires:	pkgconfig(xcb-xfixes)
BuildRequires:	pkgconfig(xcb-xinerama)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	qr-code-generator-c++-devel
BuildRequires:  nlohmann_json
BuildRequires:  patchelf
# Used via dlopen() so require them, otherwise they don't get installed
Requires:	%{libobsopengl} = %{EVRD}
Requires:	%{libobs} = %{EVRD}
Requires:	%{_lib}speexdsp1
%if %{with CEF}
Recommends: %{name}-plugin-browser = %{EVRD}
%endif
# vpl build only for x86_64
ExclusiveArch: %{x86_64}

%description
Free and open source software for video recording and live streaming.

%files
%license COPYING
%doc README.rst
%{_bindir}/%{oname}
%{_bindir}/%{oname}-ffmpeg-mux
%{_datadir}/%{oname}
%{_datadir}/applications/com.obsproject.Studio.desktop
%{_datadir}/metainfo/com.obsproject.Studio.metainfo.xml
%{_iconsdir}/hicolor/*/apps/com.obsproject.Studio.png
%{_iconsdir}/hicolor/scalable/apps/com.obsproject.Studio.svg
%dir %{_libdir}/%{oname}-plugins/
%{_libdir}/%{oname}-plugins/*.so
%{_libdir}/%{oname}-scripting
%{_libdir}/libobs-scripting.so.*

#----------------------------------------------------------------------------

%package -n %{libobs}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}obs0 < %{version}
Obsoletes:	%{_lib}obs0 < %{version}
Conflicts:	%{_lib}obsglad0 < %{version}
Obsoletes:	%{_lib}obsglad0 < %{version}
Conflicts:	%{_lib}obs29 < %{version}
Obsoletes:	%{_lib}obs29 < %{version}

%description -n %{libobs}
Shared library for %{name}.

%files -n %{libobs}
%license COPYING
%doc README.rst
%{_libdir}/libobs.so.*

#----------------------------------------------------------------------------

%package -n %{libobsopengl}
Summary:	Shared library for %{name}
Group:		System/Libraries
Recommends:	%{libobsfrontendapi} = %{EVRD}
Conflicts:	%{_lib}obs-opengl0 < %{version}
Obsoletes:	%{_lib}obs-opengl0 < %{version}
Conflicts:	%{_lib}obs-opengl29 < %{version}
Obsoletes:	%{_lib}obs-opengl29 < %{version}

%description -n %{libobsopengl}
Shared library for %{name}.

%files -n %{libobsopengl}
%license COPYING
%doc README.rst
%{_libdir}/libobs-opengl.so.*

#----------------------------------------------------------------------------

%package -n %{libobsfrontendapi}
Summary:	Frontend-api library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}obs-frontend-api0 < %{version}
Obsoletes:	%{_lib}obs-frontend-api0 < %{version}
Conflicts:	%{_lib}obs-frontend-api29 < %{version}
Obsoletes:	%{_lib}obs-frontend-api29 < %{version}

%description -n %{libobsfrontendapi}
Frontend-api library for %{name}.

%files -n %{libobsfrontendapi}
%license COPYING
%doc README.rst
%{_libdir}/libobs-frontend-api.so.*

#----------------------------------------------------------------------------

%package -n %{devobs}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libobs} = %{EVRD}
Requires:	%{libobsopengl} = %{EVRD}
Requires:	%{libobsfrontendapi} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devobs}
Development files for %{name}

%files -n %{devobs}
%license COPYING
%doc README.rst
%dir %{_includedir}/%{oname}
%{_includedir}/%{oname}/*
%{_libdir}/libobs.so
%{_libdir}/libobs-opengl.so
%{_libdir}/libobs-frontend-api.so
%{_libdir}/libobs-scripting.so
%dir %{_libdir}/cmake/libobs
%{_libdir}/cmake/libobs/*.cmake
%dir %{_libdir}/cmake/%{oname}-frontend-api
%{_libdir}/cmake/%{oname}-frontend-api/*.cmake
%{_libdir}/pkgconfig/libobs.pc

#----------------------------------------------------------------------------
%if %{with CEF}
%package plugin-browser
Summary:	Web browser plugin for OBS Studio
Group:		Video
# do not provide Chromium-bundled libraries libvulkan.so.1 libEGL.so etc.
AutoProv:	no

%description plugin-browser
Web browser plugin for OBS Studio

%files plugin-browser
%{_libdir}/obs-plugins/obs-browser.so
%{_libdir}/obs-plugins/chrome-sandbox
%{_libdir}/obs-plugins/chrome*.pak
%{_libdir}/obs-plugins/cefclient
%{_libdir}/obs-plugins/chrome_sandbox
%{_libdir}/obs-plugins/icudtl.dat
%{_libdir}/obs-plugins/libEGL.so
%{_libdir}/obs-plugins/libGLESv2.so
%{_libdir}/obs-plugins/libcef.so
%{_libdir}/obs-plugins/libvk_swiftshader.so
%{_libdir}/obs-plugins/libvulkan.so.1
%{_libdir}/obs-plugins/obs-browser-page
%{_libdir}/obs-plugins/resources.pak
%{_libdir}/obs-plugins/snapshot_blob.bin
%{_libdir}/obs-plugins/v8_context_snapshot.bin
%{_libdir}/obs-plugins/vk_swiftshader_icd.json
%dir %{_libdir}/obs-plugins/locales
%{_libdir}/obs-plugins/locales/*
%endif
#----------------------------------------------------------------------------

%prep
%setup -q

%if %{with CEF}
tar -xf %{SOURCE2} -C plugins/obs-browser --strip-components=1
tar -xf %{SOURCE3} -C plugins/obs-websocket --strip-components=1
%else
# Touch the missing submodules
touch plugins/obs-browser/CMakeLists.txt
touch plugins/obs-websocket/CMakeLists.txt
%endif

%patch0 -p1
%patch1 -p1
%patch2 -p1
%if %{with CEF}
%patch3 -p1
%endif

%build
%cmake \
	-GNinja \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-DUNIX_STRUCTURE=1 \
	-DBUILD_UI=ON \
	-DOpenGL_GL_PREFERENCE=GLVND \
	-DOBS_VERSION_OVERRIDE="%{version}" \
	-DCMAKE_INSTALL_LOCAL_ONLY=0 \
	-DENABLE_AJA=OFF \
	-DENABLE_NEW_MPEGTS_OUTPUT=OFF \
	-DENABLE_JACK=ON \
	-DENABLE_LIBFDK=ON \
	-DENABLE_SNDIO=ON \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
%if %{with CEF}
	-DCEF_ROOT_DIR=%{CEF_DIR}
%endif
  %{nil}

%ninja_build

%install
%ninja_install -C build

# Add missing files to enable the build of obs-ndi
install -Dm644 UI/obs-frontend-api/obs-frontend-api.h %{buildroot}%{_includedir}/obs/
#install -Dm644 cmake/external/ObsPluginHelpers.cmake %%{buildroot}%%q{_libdir}/cmake/libobs/

# Cleanup
rm -f %{buildroot}%{_datadir}/obs/obs-plugins/decklink-captions/.keepme
rm -f %{buildroot}%{_datadir}/obs/obs-plugins/decklink-output-ui/.keepme
rm -f %{buildroot}%{_datadir}/obs/obs-plugins/linux-pipewire/.gitkeep

%if %{with CEF}
# add RUNPATH
patchelf --set-rpath %{_libdir}/obs-plugins \
 %{buildroot}%{_libdir}/obs-plugins/obs-browser-page
%endif

%check
/usr/bin/desktop-file-validate %{buildroot}/%{_datadir}/applications/com.obsproject.Studio.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.metainfo.xml




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3692 |21cr|ocaml-alsa-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ocaml-alsa
Version:	0.3.0
Release:	1
License:	GPLv2
Summary:	OCaml interface for the ALSA library, otherwise known as libasound2
Group:		Development/OCaml
Url:		http://sourceforge.net/projects/savonet/files/
Source0:	https://github.com/savonet/ocaml-alsa/archive/%{version}.tar.gz?/ocaml-alsa-%{version}.tar.gz
BuildRequires:	pkgconfig(alsa)
BuildRequires:	ocaml
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-findlib

%description
This OCaml library interfaces the ALSA library libasound to access audio
devices.

%files
%doc COPYING CHANGES.md README.md
%dir %{_libdir}/ocaml/alsa
%{_libdir}/ocaml/alsa/META
%{_libdir}/ocaml/alsa/*.cma
%{_libdir}/ocaml/alsa/*.cmi
%{_libdir}/ocaml/alsa/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:       %{name} = %{version}-%{release}
Requires:       libalsa-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/alsa/*.a
%{_libdir}/ocaml/alsa/*.cmxa
%{_libdir}/ocaml/alsa/*.cmx
%{_libdir}/ocaml/alsa/*.mli
%{_libdir}/ocaml/alsa/*.cmt
%{_libdir}/ocaml/alsa/*.cmti
%{_libdir}/ocaml/alsa/dune-package
%{_libdir}/ocaml/alsa/opam

#----------------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3693 |21cr|ocaml-autoconf-1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Autoconf macros for OCaml
Name:		ocaml-autoconf
Version:	1.1
Release:	5
# https://fedoraproject.org/wiki/Licensing/BSD#3ClauseBSD
License:	BSD
Group:		Development/OCaml
Url:		http://forge.ocamlcore.org/projects/ocaml-autoconf/
Source0:	https://forge.ocamlcore.org/frs/download.php/181/ocaml-autoconf-%{version}.tar.gz
# Runtime requires /usr/share/aclocal subdirectory
Requires:	automake
BuildArch:	noarch

%description
Autoconf macros for OCaml.

%prep
%setup -q

%files
%doc README LICENSE
%{_mandir}/man1/*.1*
%{_datadir}/aclocal/ocaml.m4

#----------------------------------------------------------------------------

%build
make

%install
make install \
  prefix=%{_prefix} \
  datadir=%{_datadir} \
  mandir=%{_mandir} \
  DESTDIR=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3694 |21cr|ocaml-benchmark-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define modname benchmark

Summary:	OCaml module for benchmarking code
Name:		ocaml-%{modname}
Version:	1.6
Release:	2
License:	LGPLv2+ with exceptions
Group:		Development/OCaml
URL:		https://github.com/Chris00/ocaml-benchmark
Source0:	https://github.com/Chris00/ocaml-benchmark/archive/%{version}.tar.gz?/%{modname}-%{version}.tar.gz
BuildRequires:	dune
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib-devel
BuildRequires:	ocaml-pcre-devel
BuildRequires:	ocaml-compiler

%description
OCaml Benchmark is a small module to benchmark running times of code.

%files
%doc %{_docdir}/%{modname}
%dir %{_libdir}/ocaml/%{modname}
%{_libdir}/ocaml/%{modname}/META
%{_libdir}/ocaml/%{modname}/*.cmt
%{_libdir}/ocaml/%{modname}/*.cmti
%{_libdir}/ocaml/%{modname}/*.cma
%{_libdir}/ocaml/%{modname}/*.cmx
%{_libdir}/ocaml/%{modname}/*.cmi
%{_libdir}/ocaml/%{modname}/*.cmxs

#------------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Requires:       %{name} = %{EVRD}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc examples
%{_libdir}/ocaml/%{modname}/*.a
%{_libdir}/ocaml/%{modname}/*.cmxa
%{_libdir}/ocaml/%{modname}/*.ml
%{_libdir}/ocaml/%{modname}/*.mli
%{_libdir}/ocaml/benchmark/dune-package
%{_libdir}/ocaml/benchmark/opam
#------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot} --docdir=%{_docdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3695 |21cr|ocaml-biniou-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global libname biniou

Name:           ocaml-%{libname}
Version:        1.2.1
Release:        1
Summary:        Safe and fast binary data format
Group:          Development/OCaml
License:        BSD
URL:            https://github.com/ocaml-community/%{libname}
Source0:        %{url}/releases/download/%{version}/%{libname}-%{version}.tbz

BuildRequires:  make
BuildRequires:  ocaml >= 3.10.0
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-easy-format-devel
BuildRequires:  ocaml-dune

%description
Biniou (pronounced "be new") is a binary data format designed for
speed, safety, ease of use and backward compatibility as protocols
evolve. Biniou is vastly equivalent to JSON in terms of functionality
but allows implementations several times faster (4 times faster than
yojson), with 25-35%% space savings.

Biniou data can be decoded into human-readable form without knowledge
of type definitions except for field and variant names which are
represented by 31-bit hashes. A program named bdump is provided for
routine visualization of biniou data files.

%files
%license LICENSE
%doc README.md
%{_libdir}/ocaml/%{libname}/
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.cmx
%exclude %{_libdir}/ocaml/*/*.mli

#-------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-easy-format-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%license LICENSE
%doc biniou-format.txt CHANGES.md
%doc _build/install/default/doc/*
%{_bindir}/ocaml-bdump
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.mli

#-------------------------------------------------------------

%prep
%setup -q -n %{libname}-%{version}


%build
%make_build all


%install
mkdir -p %{buildroot}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/ocaml

cp -L _build/install/default/bin/* %{buildroot}%{_bindir}
cp -rL _build/install/default/lib/* %{buildroot}%{_libdir}/ocaml

# avoid potential future name conflict
mv %{buildroot}%{_bindir}/{,ocaml-}bdump


%check
# The upstream Makefile doesn't know how to build the tests
# without ocamlopt, so:
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3696 |21cr|ocaml-bitstring-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bitstrings and bitstring matching for OCaml
Name:		ocaml-bitstring
Version:	4.1.0
Release:	1
License:	LGPLv2+ with exceptions and GPLv2+
Group:		Development/OCaml
Url:		http://code.google.com/p/bitstring
Source0:	https://github.com/xguerin/bitstring/archive/refs/tags/v4.1.0.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		bitstring-deps.patch
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-ppxlib-devel
BuildRequires:	ocaml-ounit-devel
BuildRequires:	ocaml-findlib
#BuildRequires:	time

%description
The ocaml-bitstring project adds Erlang-style bitstrings and matching over
bitstrings as a syntax extension and library for OCaml.

%files
%doc README* COPYING*
%dir %{_libdir}/ocaml/bitstring
%{_libdir}/ocaml/bitstring/*.cmi
%{_libdir}/ocaml/bitstring/*.cma
%{_libdir}/ocaml/ppx_bitstring/*.cma
%{_libdir}/ocaml/ppx_bitstring/*.cmi
%{_libdir}/ocaml/ppx_bitstring/META
%{_libdir}/ocaml/ppx_bitstring/*.exe
%{_libdir}/ocaml/bitstring/META
%{_libdir}/ocaml/stublibs/*.so

#----------------------------------------------------------------------------

%package	devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/bitstring/*.a
%{_libdir}/ocaml/bitstring/*.cmx
%{_libdir}/ocaml/bitstring/*.cmxa
%{_libdir}/ocaml/bitstring/*.cmt
%{_libdir}/ocaml/bitstring/*.cmti
%{_libdir}/ocaml/bitstring/*.mli
%{_libdir}/ocaml/bitstring/*.cmxs
%{_libdir}/ocaml/bitstring/dune-package
%{_libdir}/ocaml/bitstring/opam
%{_libdir}/ocaml/ppx_bitstring/*.a
%{_libdir}/ocaml/ppx_bitstring/*.cmx
%{_libdir}/ocaml/ppx_bitstring/*.cmxa
%{_libdir}/ocaml/ppx_bitstring/*.cmt
%{_libdir}/ocaml/ppx_bitstring/*.cmxs
%{_libdir}/ocaml/ppx_bitstring/dune-package
%{_libdir}/ocaml/ppx_bitstring/opam

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n bitstring-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3697 |21cr|ocaml-bos-0.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags
%global debug_package %{nil}

%global srcname bos

Name:           ocaml-%{srcname}
Version:        0.2.1
Release:        1
Summary:        Basic OS interaction for OCaml
Group:          Development/OCaml
License:        ISC
URL:            https://erratique.ch/software/bos
Source0:        %{url}/releases/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-astring-devel
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-fmt-devel >= 0.8.10
BuildRequires:  ocaml-fpath-devel
BuildRequires:  ocaml-logs-devel
BuildRequires:  ocaml-mtime-devel
BuildRequires:  ocaml-ocamlbuild
BuildRequires:  ocaml-rresult-devel >= 0.7.0
BuildRequires:  ocaml-topkg-devel >= 1.0.3

%description
Bos provides support for basic and robust interaction with the operating
system in OCaml.  It has functions to access the process environment,
parse command line arguments, interact with the file system and run
command line programs.  Bos works equally well on POSIX and Windows
operating systems.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs

#-----------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-astring-devel%{?_isa}
Requires:       ocaml-fmt-devel%{?_isa}
Requires:       ocaml-fpath-devel%{?_isa}
Requires:       ocaml-logs-devel%{?_isa}
Requires:       ocaml-rresult-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with docs}
%doc _build/default/_doc/*
%endif
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli

#-----------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
ocaml pkg/pkg.ml build --dev-pkg false --tests true

# Relink with Fedora linker flags
cd _build
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g \
  -package rresult -package astring -package fpath -package fmt -package logs \
  -package unix -I src src/bos.cmxa -o src/bos.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g \
  -package fmt.tty -package logs.fmt -package rresult -package astring \
  -package fpath -package fmt -package logs -package unix -I src \
  src/bos_setup.cmxa -o src/bos_setup.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g \
  -package compiler-libs.toplevel -package rresult -package astring \
  -package fpath -package fmt -package logs -package unix -I src \
  src/bos_top.cmxa -o src/bos_top.cmxs
cd -

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/%{srcname}
cp -p _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} _build/pkg/META \
   _build/opam %{buildroot}%{_libdir}/ocaml/%{srcname}

%check
ocaml pkg/pkg.ml test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3698 |21cr|ocaml-cairo-0.6.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%global debug_package %{nil}

Name:           ocaml-cairo
Version:        0.6.3
Release:        2
Summary:        OCaml library for accessing cairo graphics
Group:          Development/OCaml
License:        LGPLv3+
URL:            https://github.com/Chris00/%{name}

Source0:        %{url}/releases/download/%{version}/cairo2-%{version}.tbz

BuildRequires:  ocaml >= 4.02
BuildRequires:  ocaml-compiler
BuildRequires:  ocaml-csexp-devel
BuildRequires:  ocaml-dune-devel
BuildRequires:  ocaml-findlib-devel
BuildRequires:  ocaml-lablgtk2-devel
BuildRequires:  pkgconfig(cairo) >= 1.2.0
BuildRequires:  pkgconfig(freetype2)

%global _description %{expand:
Cairo is a multi-platform library providing anti-aliased vector-based
rendering for multiple target backends. Paths consist of line segments
and cubic splines and can be rendered at any width with various join
and cap styles. All colors may be specified with optional translucence
(opacity/alpha) and combined using the extended Porter/Duff
compositing algebra as found in the X Render Extension.

Cairo exports a stateful rendering API similar in spirit to the path
construction, text, and painting operators of PostScript, (with the
significant addition of translucence in the imaging model). When
complete, the API is intended to support the complete imaging model of
PDF 1.4.}

%description %_description

This package contains OCaml bindings for Cairo.

#--------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{EVRD}
Requires:       pkgconfig(cairo)


%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.


%package        gtk
Summary:        OCaml library to render cairo on a gtk2 canvas
Requires:       %{name}%{?_isa} = %{EVRD}


%description    gtk %_description

This package contains OCaml bindings for rendering cairo on a gtk2 canvas.


%package        gtk-devel
Summary:        Development files for %{name}-gtk
Requires:       %{name}-gtk%{?_isa} = %{EVRD}
Requires:       %{name}-devel%{?_isa} = %{EVRD}
Requires:       ocaml-lablgtk2-devel%{?_isa}


%description    gtk-devel
The %{name}-gtk-devel package contains libraries and signature files for
developing applications that use %{name}-gtk.



%package        pango
Summary:        OCaml library to use pango with cairo
Requires:       %{name}%{?_isa} = %{EVRD}


%description    pango %_description

This package contains OCaml bindings to use pango with cairo.


%package        pango-devel
Summary:        Development files for %{name}-pango
Requires:       %{name}-pango%{?_isa} = %{EVRD}
Requires:       %{name}-devel%{?_isa} = %{EVRD}
Requires:       pkgconfig(pango)


%description    pango-devel
The %{name}-pango-devel package contains libraries and signature files
for developing applications that use %{name}-pango.


%prep
%autosetup -n cairo2-%{version} -p1


%build
#cairo_cflags="$(pkgconf --cflags cairo)"
#cairo_libs="$(pkgconf --libs cairo)"
#gtk_cflags="$(pkgconf --cflags gtk+-2.0)"
#gtk_libs="$(pkgconf --libs gtk+-2.0)"
#export CAIRO_CFLAGS="%{optflags} $cairo_cflags"
#export CAIRO_LIBS="$RPM_LD_FLAGS $cairo_libs"
#export GTK_CFLAGS="%{optflags} $gtk_cflags"
#export GTK_LIBS="$RPM_LD_FLAGS $gtk_libs"
dune build

# Dune passes RPM_LD_FLAGS to ocamlmklib without -ldopt, resulting in "Unknown
# option" warnings from ocamlmklib and a library that has not been linked with
# the correct flags.  We can't add -ldopt ourselves, since that breaks
# compilation of the cmxs files.  This seems to be a weakness of dune; linker
# flags and libraries to be linked with have to be specified together, and
# nothing takes care of separating them and adding ldopt as necessary.  We
# relink manually to address the problem.
pushd _build/default/src
ocamlmklib -g -ldopt "$RPM_LD_FLAGS" $cairo_libs -o cairo_stubs cairo_stubs.o
cd ../gtk
ocamlmklib -g -ldopt "$RPM_LD_FLAGS" $gtk_libs -o cairo_gtk_stubs cairo_gtk_stubs.o
cd ../pango
ocamlmklib -g -ldopt "$RPM_LD_FLAGS" $gtk_libs -o cairo_pango_stubs cairo_pango_stubs.o
popd


%install
dune install --destdir=%{buildroot}

# This just contains the README, LICENSE, and CHANGES files, 3 times, in
# directories with names other than the ones we want.
rm -rf %{buildroot}%{_prefix}/doc

# Remove files we do not need to package
rm %{buildroot}%{_libdir}/ocaml/*/*.ml


%check
dune runtest


%files
%doc CHANGES.md README.md
%license GPL3.md LICENSE.md
%dir %{_libdir}/ocaml/cairo2
%{_libdir}/ocaml/cairo2/META
%{_libdir}/ocaml/cairo2/cairo.cma
%{_libdir}/ocaml/cairo2/cairo.cmi
%{_libdir}/ocaml/cairo2/cairo.cmxs
%{_libdir}/ocaml/stublibs/dllcairo_stubs.so


%files devel
# XXX The tutorial doesn't build.
%doc examples
%{_libdir}/ocaml/cairo2/cairo.a
%{_libdir}/ocaml/cairo2/cairo.cmx
%{_libdir}/ocaml/cairo2/cairo.cmxa
%{_libdir}/ocaml/cairo2/cairo.cmt
%{_libdir}/ocaml/cairo2/cairo.cmti
%{_libdir}/ocaml/cairo2/cairo.mli
%{_libdir}/ocaml/cairo2/cairo_ocaml.h
%{_libdir}/ocaml/cairo2/dune-package
%{_libdir}/ocaml/cairo2/libcairo_stubs.a
%{_libdir}/ocaml/cairo2/opam


%files gtk
%dir %{_libdir}/ocaml/cairo2-gtk
%{_libdir}/ocaml/cairo2-gtk/META
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.cma
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.cmi
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.cmxs
%{_libdir}/ocaml/stublibs/dllcairo_gtk_stubs.so


%files gtk-devel
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.a
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.cmx
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.cmxa
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.cmt
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.cmti
%{_libdir}/ocaml/cairo2-gtk/cairo_gtk.mli
%{_libdir}/ocaml/cairo2-gtk/dune-package
%{_libdir}/ocaml/cairo2-gtk/libcairo_gtk_stubs.a
%{_libdir}/ocaml/cairo2-gtk/opam


%files pango
%dir %{_libdir}/ocaml/cairo2-pango
%{_libdir}/ocaml/cairo2-pango/META
%{_libdir}/ocaml/cairo2-pango/cairo_pango.cma
%{_libdir}/ocaml/cairo2-pango/cairo_pango.cmi
%{_libdir}/ocaml/cairo2-pango/cairo_pango.cmxs
%{_libdir}/ocaml/stublibs/dllcairo_pango_stubs.so


%files pango-devel
%{_libdir}/ocaml/cairo2-pango/cairo_pango.a
%{_libdir}/ocaml/cairo2-pango/cairo_pango.cmx
%{_libdir}/ocaml/cairo2-pango/cairo_pango.cmxa
%{_libdir}/ocaml/cairo2-pango/cairo_pango.cmt
%{_libdir}/ocaml/cairo2-pango/cairo_pango.cmti
%{_libdir}/ocaml/cairo2-pango/cairo_pango.mli
%{_libdir}/ocaml/cairo2-pango/dune-package
%{_libdir}/ocaml/cairo2-pango/libcairo_pango_stubs.a
%{_libdir}/ocaml/cairo2-pango/opam

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3699 |21cr|ocaml-calendar-2.04-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#empty-debuginfo-package
%define debug_package %{nil}
%define base_name camlimages

%define up_name calendar

Summary:	Ocaml calendar library
Name:		ocaml-%{up_name}
Version:	2.04
Release:	3
License:	GPLv2+
Group:		Development/OCaml
Url:		http://forge.ocamlcore.org/projects/calendar/
Source0:	http://forge.ocamlcore.org/frs/download.php/1481/%{up_name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
Conflicts:	ocaml-calendar-devel < 2.03.2

%description
The Calendar library is a library providing a set of operations over dates and
times.

%files
%doc calendarFAQ-2.6.txt calendar_faq.txt CHANGES COPYING LGPL README TODO
%dir %{_libdir}/ocaml/calendar
%{_libdir}/ocaml/calendar/META
%{_libdir}/ocaml/calendar/*.cma
%{_libdir}/ocaml/calendar/*.cmi
%{_libdir}/ocaml/calendar/*.cmxs

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/calendar/*.a
%{_libdir}/ocaml/calendar/*.cmx
%{_libdir}/ocaml/calendar/*.cmxa
%{_libdir}/ocaml/calendar/*.mli

#----------------------------------------------------------------------------

%prep
%setup -qn %{up_name}-%{version}

%build
%configure
%make

%install
install -d -m 755 %{buildroot}%{_libdir}/ocaml
make install OCAMLFIND_DESTDIR="%{buildroot}%{_libdir}/ocaml"

rm -f %{buildroot}%{_libdir}/ocaml/calendar/*.{o,cmo}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3700 |21cr|ocaml-camlbz2-0.6.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname camlbz2
%define modname bz2

Summary:	OCaml library for reading and writing zip, jar and gzip files
Name:		ocaml-%{oname}
Version:	0.6.0
Release:	12
License:	LGPLv2.1+ with exceptions
Group:		Development/OCaml
Url:		http://camlbz2.forge.ocamlcore.org/
Source0:	https://forge.ocamlcore.org/frs/download.php/72/%{oname}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib-devel
BuildRequires:	bzip2-devel

%description
CamlBZ2 provides OCaml bindings for libbz2 (AKA bzip2), a popular compression
library which typically compresses better (i.e., smaller resulting files) than
gzip.

Using CamlBZ2 you can read and write compressed "files", where files can be
anything offering an in_channel/out_channel abstraction (files, sockets, ...).

Also, with CamlBZ2 you can compress and decompress strings in memory using the
bzip2 compression algorithm.

%files
%doc LICENSE
%{_libdir}/ocaml/%{modname}
%exclude %{_libdir}/ocaml/%{modname}/*.a
%exclude %{_libdir}/ocaml/%{modname}/*.cmxa
%exclude %{_libdir}/ocaml/%{modname}/*.cmx
%exclude %{_libdir}/ocaml/%{modname}/*.mli

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc LICENSE README
%{_libdir}/ocaml/%{modname}/*.a
%{_libdir}/ocaml/%{modname}/*.cmxa
%{_libdir}/ocaml/%{modname}/*.cmx
%{_libdir}/ocaml/%{modname}/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%configure
%make

%install
make install DESTDIR=%{buildroot}%{_libdir}/ocaml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3701 |21cr|ocaml-camlidl-1.05-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Stub code generator and COM binding for Objective Caml
Name:		ocaml-camlidl
Version:	1.05
Release:	11
License:	QPL and LGPLv2+ with exceptions
Group:		Development/OCaml
Url:		http://caml.inria.fr/pub/old_caml_site/camlidl/
Source0:	http://caml.inria.fr/pub/old_caml_site/distrib/bazar-ocaml/camlidl-%{version}.tar.gz
Source1:	http://caml.inria.fr/pub/old_caml_site/distrib/bazar-ocaml/camlidl-%{version}.doc.pdf
BuildRequires:	ocaml

%description
CamlIDL is a stub code generator and COM binding for Objective Caml.

CamlIDL comprises two parts:

* A stub code generator that generates the C stub code required for
  the Caml/C interface, based on an MIDL specification. (MIDL stands
  for Microsoft's Interface Description Language; it looks like C
  header files with some extra annotations, plus a notion of object
  interfaces that look like C++ classes without inheritance.)

* A (currently small) library of functions and tools to import COM
  components in Caml applications, and export Caml code as COM
  components.

%files
%doc LICENSE
%{_libdir}/ocaml/*.cmi
%{_libdir}/ocaml/*.cma
%{_bindir}/camlidl

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc LICENSE README Changes camlidl-%{version}.doc.pdf tests
%{_libdir}/ocaml/caml/*.h
%{_libdir}/ocaml/*.a
%{_libdir}/ocaml/*.cmxa

#----------------------------------------------------------------------------

%prep
%setup -q -n camlidl-%{version}
cp config/Makefile.unix config/Makefile
#sed -e 's|^OCAMLLIB=.*|OCAMLLIB=%{_libdir}/ocaml|' \
#    -e 's|^BINDIR=.*|BINDIR=%{_bindir}|' \
#    < config/Makefile.unix \
#    > config/Makefile
cp %{SOURCE1} .

%build
make all OCAMLLIB=%{_libdir}/ocaml BINDIR=%{_bindir}

%install
install -d -m 755 %{buildroot}%{_libdir}/ocaml
install -d -m 755 %{buildroot}%{_libdir}/ocaml/caml
install -d -m 755 %{buildroot}%{_bindir}

make OCAMLLIB=%{buildroot}%{_libdir}/ocaml \
	BINDIR=%{buildroot}%{_bindir} \
	install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3702 |21cr|ocaml-camlimages-5.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
#empty-debuginfo-package
%define debug_package %{nil}
%define base_name camlimages

Summary:	Image processing library for Objective Caml
Name:		ocaml-%{base_name}
Version:	5.0.4
Release:	1
License:	LGPLv2+
Group:		Development/OCaml
Url:		https://gitlab.com/camlspotter/camlimages/
Source0:	https://gitlab.com/camlspotter/camlimages/-/archive/%{version}/%{base_name}-%{version}.tar.gz
BuildRequires:	ghostscript
BuildRequires:	giflib-devel
BuildRequires:	ocaml >= 4.06.0
BuildRequires:	ocaml-cppo
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-dune-devel >= 1.11
BuildRequires:	ocaml-findlib-devel
BuildRequires:	ocaml-graphics-devel
BuildRequires:	ocaml-lablgtk2-devel
BuildRequires:	ocaml-odoc
BuildRequires:	ocaml-result-devel
BuildRequires:	ocaml-stdio-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	rgb
Requires:	ghostscript

%description
This is an image processing library, which provides some basic
functions of image processing and loading/saving various image file
formats. In addition the library can handle huge images that cannot be
(or can hardly be) stored into the memory (the library automatically
creates swap files and escapes them to reduce the memory usage).

%files
%doc README.md
%license License.txt
%{_libdir}/ocaml/camlimages
%{_libdir}/ocaml/stublibs/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n camlimages-%{version}

%build
dune build %{?_smp_mflags} --display=verbose
dune build %{?_smp_mflags} @doc

# Relink the stublibs with $RPM_LD_FLAGS.
for lib in exif freetype gif jpeg png tiff xpm; do
  cd _build/default/$lib
  ocamlmklib -g -ldopt '%{build_ldflags}' -o camlimages_${lib}_stubs \
    $(ar t libcamlimages_${lib}_stubs.a)
  cd -
done

%install
dune install --destdir=%{buildroot}

# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3703 |21cr|ocaml-camlp5-6023-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
Name:           ocaml-camlp5
Version:	6023
Release:	1
Summary:        Classical version of camlp4 OCaml preprocessor
Group:          Development/OCaml
License:        BSD
URL:            https://camlp5.github.io/

# For OCaml 4.13.1 we're packaging a git pre-release.
#Source0:        https://github.com/camlp5/camlp5/archive/rel%{version}.tar.gz
Source0:        https://github.com/camlp5/camlp5/archive/f1ede8037e39430739ff6d0a7d8a668c115278ad.tar.gz

# Kill -warn-error A
Patch0:         camlp5-8.00-kill-warn-error.patch

BuildRequires:  make
BuildRequires:  ocaml
BuildRequires:  ocaml-odoc
BuildRequires:  perl

%global __ocaml_requires_opts -i Asttypes -i Parsetree -i Pa_extend
%global __ocaml_provides_opts -i Dynlink -i Dynlinkaux -i Pa_extend

%description
Camlp5 is a preprocessor-pretty-printer of OCaml.

It is the continuation of the classical camlp4 with new features.

OCaml 3.10 and above have an official camlp4 which is incompatible
with classical (<= 3.09) versions.  You can find that in the
ocaml-camlp4 package.

%files
%license LICENSE
%doc README.md
%{_libdir}/ocaml/camlp5
%exclude %{_libdir}/ocaml/camlp5/*.a
%exclude %{_libdir}/ocaml/camlp5/*.cmxa
%exclude %{_libdir}/ocaml/camlp5/*.cmx
%exclude %{_libdir}/ocaml/camlp5/*.mli
%{_libdir}/ocaml/topfind.camlp5

#----------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name} = %{version}-%{release}


%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc CHANGES ICHANGES DEVEL UPGRADING doc/html
%{_libdir}/ocaml/camlp5/*.a
%{_libdir}/ocaml/camlp5/*.cmxa
%{_libdir}/ocaml/camlp5/*.cmx
%{_libdir}/ocaml/camlp5/*.mli
%{_bindir}/camlp5*
%{_bindir}/mkcamlp5*
%{_bindir}/ocpp5
%{_mandir}/man1/*.1*

#----------------------------------------------------------------

%prep
#%%autosetup -q -n camlp5-rel%%{version}
%autosetup -p1 -n camlp5-f1ede8037e39430739ff6d0a7d8a668c115278ad
find . -name .gitignore -delete

# Build with debug information
sed -i 's,WARNERR="",WARNERR="-g",' configure
sed -i 's,-linkall,& -g,g' top/Makefile
for fil in compile/compile.sh $(find . -name Makefile); do
  sed -i 's,\$[({]OCAMLN[})]c,& -g,;s,\$[({]OCAMLN[})]opt,& -g,;s,LINKFLAGS=,&-g ,' $fil
done


%build
# Upstream uses hand-written configure, grrrrrr.
./configure \
    --prefix %{_prefix} \
    --bindir %{_bindir} \
    --libdir %{_libdir}/ocaml \
    --mandir %{_mandir}
make

%install
mkdir -p %{buildroot}%{_libdir}/ocaml
# This is a hack because the make install rule is broken upstream.
# We move the file later.
mkdir -p %{buildroot}%{_libdir}/ocaml/ocaml
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}
make install DESTDIR=%{buildroot}
cp -p etc/META %{buildroot}%{_libdir}/ocaml/camlp5
rm -f doc/htmlp/{*.sh,Makefile,html2*}
pushd %{buildroot}%{_libdir}/ocaml
mv ocaml/topfind.camlp5 .
rmdir ocaml
popd





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3704 |21cr|ocaml-camlzip-1.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_name camlzip

%define url_ver %(echo %{version}|tr -d .)

Summary:	Reading and writing ZIP, JAR and GZIP files
Name:		ocaml-%{up_name}
Version:	1.11
Release:	1
License:	LGPLv2.1+ with exceptions
Group:		Development/OCaml
Url:		http://forge.ocamlcore.org/projects/camlzip/
Source0:	https://github.com/xavierleroy/camlzip/archive/rel%{url_ver}.tar.gz?/camlzip-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(zlib)

%description
This Objective Caml library provides easy access to compressed files in ZIP and
GZIP format, as well as to Java JAR files. It provides functions for reading
from and writing to compressed files in these formats.

%files
%doc LICENSE README.md Changes
%dir %{_libdir}/ocaml/zip
%{_libdir}/ocaml/zip/*.cmi
%{_libdir}/ocaml/zip/*.cma
%{_libdir}/ocaml/zip/*.cmxs
%{_libdir}/ocaml/zip/META
%{_libdir}/ocaml/stublibs/dllcamlzip.so
%{_libdir}/ocaml/stublibs/dllcamlzip.so.owner

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	pkgconfig(zlib)
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/zip/*.a
%{_libdir}/ocaml/zip/*.cmxa
%{_libdir}/ocaml/zip/*.mli
%{_libdir}/ocaml/camlzip/META
%{_libdir}/ocaml/zip/*.cmt
%{_libdir}/ocaml/zip/*.cmti
%{_libdir}/ocaml/zip/*.cmx

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{up_name}-rel%{url_ver}

%build
%make depend
%make all allopt
mkdir -p doc
ocamldoc -colorize-code -html gzip.mli zip.mli zlib.mli -d doc

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
install -d -m 755 $OCAMLFIND_DESTDIR/stublibs
install -d -m 755 $OCAMLFIND_DESTDIR/zip
make install-findlib

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3705 |21cr|ocaml-cfg-2.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Library for manipulation of context-free grammars (CFGs)
Name:		ocaml-cfg
Version:	2.3.0
Release:	2
License:	LGPLv2.1+ with static compilation exception
Group:		Development/OCaml
Url:		https://github.com/mmottl/cfg
Source0:	https://github.com/mmottl/cfg/archive/%{version}.tar.gz?/cfg-%{version}.tar.gz
BuildRequires:	menhir
BuildRequires:	dune
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib

%description
This OCaml-library consists of a set of modules which implement functions
for manipulating context-free grammars (CFGs) in a purely functional way.

The core-module (cfg_impl.ml) contains a functor which allows the
parameterization of the main transformation functions with arbitrary grammar
entities that fill the demanded specification (see the interface in
"cfg_intf.mli" and the BNF-example).

Thus, you may use this module for any kind of symbol system and any kind of
representation which can be treated like a CFG.

%files
%doc %{_docdir}/cfg
%dir %{_libdir}/ocaml/cfg
%{_libdir}/ocaml/cfg/META
%{_libdir}/ocaml/cfg/*.cmi
%{_libdir}/ocaml/cfg/*.cma
%{_libdir}/ocaml/cfg/*.cmxs
%{_libdir}/ocaml/cfg/*.cmt
%{_libdir}/ocaml/cfg/*.cmti

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc examples/
%{_libdir}/ocaml/cfg/*.a
%{_libdir}/ocaml/cfg/*.cmxa
%{_libdir}/ocaml/cfg/*.cmx
%{_libdir}/ocaml/cfg/*.mli
%{_libdir}/ocaml/cfg/*.ml
%{_libdir}/ocaml/cfg/dune-package
%{_libdir}/ocaml/cfg/opam

#----------------------------------------------------------------------------

%prep
%setup -q -n cfg-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot} --docdir=%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3706 |21cr|ocaml-cgi-0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define modname cgi

Summary:	Objective Caml library for writing CGIs
Name:		ocaml-%{modname}
Version:	0.11
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		http://www.lri.fr/~filliatr/ftp/ocaml/cgi
Source0:	https://github.com/rixed/ocaml-cgi/archive/v%{version}.tar.gz?/%{modname}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib

%description
This library provides a function to parse the CGI arguments, parse_args,
the result being an association list.

%files
%doc CHANGES COPYING LGPL
%dir %{_libdir}/ocaml/cgi
%{_libdir}/ocaml/cgi/*.cmi

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/cgi/*
%exclude %{_libdir}/ocaml/cgi/*.cmi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
install -d -m 755 %{buildroot}%{_libdir}/ocaml/cgi
make install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3707 |21cr|ocaml-charinfo-width-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
# version 1.1.0
%global commit 6a2ed28ba68cddab6927ac27a9b991f01ea85ec5
%global shortcommit %(c=%{commit}; echo ${c:0:12})

Name:           ocaml-charinfo-width
Version:        1.1.0
Release:        1
Summary:        Determine column width for a character
Group:          Development/OCaml
%global libname charInfo_width

# MIT-licensed according to opam metadata.
# Issue filed here: https://bitbucket.org/zandoye/charinfo_width/issues/1/include-mit-license-copying-file
License:        MIT
URL:            https://bitbucket.org/zandoye/charinfo_width/
Source0:        https://bitbucket.org/zandoye/charinfo_width/get/%{version}.tar.gz#/%{libname}-%{version}.tar.gz

BuildRequires:  ocaml
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-result-devel
BuildRequires:  ocaml-camomile-devel

BuildRequires:  ocaml-dune

%description
Determine column width for a character

This module is implemented purely in OCaml and the width function
follows the prototype of POSIX's wcwidth.

%files
#license LICENSE
%doc README.md CHANGES.md
%{_libdir}/ocaml/%{libname}
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.cmx
%exclude %{_libdir}/ocaml/*/*.mli

#---------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and
signature files for developing applications that use %{name}.

%files devel
#license LICENSE
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.mli

#---------------------------------------------------------

%prep
%autosetup -n zandoye-charinfo_width-%{shortcommit}

%build
# It might be nice to have a %jbuilder macro that just does this.
dune build -p %{libname} %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/%{libname}/
cp -aLr _build/install/default/lib/%{libname}/* %{buildroot}%{_libdir}/ocaml/%{libname}/




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3708 |21cr|ocaml-cryptokit-1161-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define debug_package %{nil}

%define url_ver %(echo %{version}|tr -d .)

Summary:	OCaml library of cryptographic and hash functions
Name:		ocaml-cryptokit
Version:	1161
Release:	1
License:	LGPLv2+ with linking exception
Group:		Development/OCaml
Url:		http://forge.ocamlcore.org/projects/cryptokit/
Source0:	https://github.com/xavierleroy/cryptokit/archive/release%{url_ver}.tar.gz?/cryptokit-%{version}.tar.gz
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-zarith-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(zlib)

%description
The Cryptokit library for Objective Caml provides a variety of
cryptographic primitives that can be used to implement cryptographic
protocols in security-sensitive applications. The primitives provided
include:

* Symmetric-key cryptography: AES, DES, Triple-DES, ARCfour, in ECB,
  CBC, CFB and OFB modes.
* Public-key cryptography: RSA encryption and signature; Diffie-Hellman
  key agreement.
* Hash functions and MACs: SHA-1, SHA-256, RIPEMD-160, MD5, and MACs
  based on AES and DES.
* Random number generation.
* Encodings and compression: base 64, hexadecimal, Zlib compression. 

Additional ciphers and hashes can easily be used in conjunction with
the library. In particular, basic mechanisms such as chaining modes,
output buffering, and padding are provided by generic classes that can
easily be composed with user-provided ciphers. More generally, the
library promotes a "Lego"-like style of constructing and composing
transformations over character streams.

%files
%doc README* LICENSE Changes
%dir %{_libdir}/ocaml/cryptokit
%{_libdir}/ocaml/cryptokit/META
%{_libdir}/ocaml/cryptokit/*.cma
%{_libdir}/ocaml/cryptokit/*.cmi
%{_libdir}/ocaml/cryptokit/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(zlib)

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/cryptokit/*.a
%{_libdir}/ocaml/cryptokit/*.cmxa
%{_libdir}/ocaml/cryptokit/*.cmx
%{_libdir}/ocaml/cryptokit/*.cmt
%{_libdir}/ocaml/cryptokit/*.cmti
%{_libdir}/ocaml/cryptokit/*.mli
%{_libdir}/ocaml/cryptokit/dune-package
%{_libdir}/ocaml/cryptokit/opam

#----------------------------------------------------------------------------

%prep
%setup -q -n cryptokit-release%{url_ver}

%build
#./configure --enable-zlib --enable-hardwaresupport
dune build @install

# Relink the stublibs with Fedora flags
cd _build/default/src
ocamlmklib -g -ldopt "%build_ldflags" -o cryptokit_stubs \
  $(ar t libcryptokit_stubs.a)
cd -

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3709 |21cr|ocaml-csv-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	OCaml library for reading and writing CSV files
Name:		ocaml-csv
Version:	1.7
Release:	1
License:	LGPLv2+
Group:		Development/OCaml
Url:		http://forge.ocamlcore.org/projects/csv/
Source0:	https://github.com/Chris00/ocaml-csv/releases/download/%{version}/csv-%{version}.tar.gz
BuildRequires:  ocaml-compiler
BuildRequires:  ocaml-findlib-devel
BuildRequires:  ocaml-ocamlbuild
%description
This OCaml library can read and write CSV files, including all
extensions used by Excel - eg. quotes, newlines, 8 bit characters in
fields, quote-0 etc.

The library comes with a handy command line tool called csvtool for
handling CSV files from shell scripts.

%files
%doc README.txt AUTHORS.txt LICENSE.txt
%dir %{_libdir}/ocaml/csv
%{_libdir}/ocaml/csv/*.cmi
%{_libdir}/ocaml/csv/*.cma
%{_libdir}/ocaml/csv/*.cmxs
%{_libdir}/ocaml/csv/META
%{_bindir}/csvtool

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc examples/
%doc tests/
%{_libdir}/ocaml/csv/*.a
%{_libdir}/ocaml/csv/*.cmxa
%{_libdir}/ocaml/csv/*.cmx
%{_libdir}/ocaml/csv/*.mli
%{_libdir}/ocaml/csv/*.cmt
%{_libdir}/ocaml/csv/*.cmti
%{_libdir}/ocaml/csv/*.annot


#----------------------------------------------------------------------------

%prep
%setup -q -n csv-%{version}

%build
ocaml setup.ml -configure --prefix %{_prefix} --destdir %{buildroot}
ocaml setup.ml -build
strip _build/examples/csvtool.native

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
mkdir -p $OCAMLFIND_DESTDIR/site-lib/
mkdir -p $DESTDIR/%{_bindir}
ocaml setup.ml -install
cp _build/examples/csvtool.native %{buildroot}/%{_bindir}/csvtool

%check
ocaml setup.ml -test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3710 |21cr|ocaml-curl-0.7.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OCaml Curl library (ocurl)
Name:		ocaml-curl
Version:	0.7.10
Release:	8
License:	MIT
Group:		Development/OCaml
Url:		https://github.com/ygrek/ocurl
Source0:	https://github.com/ygrek/ocurl/releases/download/%{version}/ocurl-%{version}.tar.gz
BuildRequires:	gawk
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ncurses)
Requires:	ocaml

%description
The Ocaml Curl Library (Ocurl) is an interface library for the
programming language Ocaml to the networking library libcurl.

%files
%doc COPYING
%dir %{_libdir}/ocaml-%{version}/curl
%{_libdir}/ocaml-%{version}/curl/META
%{_libdir}/ocaml-%{version}/curl/*.cmi
%{_libdir}/ocaml-%{version}/curl/*.cma
%{_libdir}/ocaml-%{version}/stublibs/*.so*
%{_libdir}/ocaml-%{version}/curl/*.cmt
%{_libdir}/ocaml-%{version}/curl/*.cmti
%{_libdir}/ocaml-%{version}/curl/*.cmx

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	pkgconfig(libcurl)
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc examples/
%{_libdir}/ocaml-%{version}/curl/*.a
%{_libdir}/ocaml-%{version}/curl/*.cmxa
%{_libdir}/ocaml-%{version}/curl/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q -n ocurl-%{version}

# Files in the archive have spurious +x mode.
find -type f | xargs chmod 0644
chmod 0755 configure install-sh

%build
%configure --libdir=%{_libdir} --with-findlib
make all

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml-%{version}
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
make install

# Install curl.mli
cp curl.mli $OCAMLFIND_DESTDIR/curl

# Make clean in the examples dir so our docs don't contain binaries.
make -C examples clean

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3711 |21cr|ocamldsort-0.16.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A dependency sorter for OCaml source files
Name:		ocamldsort
Version:	0.16.0
Release:	3
License:	GPLv2+
Group:		Development/OCaml
Url:		http://dimitri.mutu.net/ocaml.html
Source0:	ftp://quatramaran.ens.fr/pub/ara/ocamldsort/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-camlp4-devel

%description
The ocamldsort command scans a set of Objective Caml source files (.ml and .mli
files), sorts them according to their dependencies and prints the sorted files
in order to link their corresponding .cmo and .cmi files.

%files
%doc COPYING INSTALL README THANKS Changes
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
make

%install
make install BINDIR=%{buildroot}%{_bindir} MANDIR=%{buildroot}%{_mandir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3712 |21cr|ocaml-easy-format-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global libname easy-format

Name:           ocaml-%{libname}
Version:        1.3.2
Release:        1
Summary:        High-level and functional interface to the Format module
Group:          Development/OCaml
License:        BSD
URL:            https://github.com/ocaml-community/%{libname}
Source0:        %{url}/releases/download/%{version}/%{libname}-%{version}.tbz
# Convert from the deprecated tag functions to the stag functions
Patch0:         %{name}-stag.patch

BuildRequires:  ocaml >= 4.02.3
BuildRequires:  ocaml-dune
BuildRequires:  ocaml-findlib

%description
This module offers a high-level and functional interface to the Format
module of the OCaml standard library. It is a pretty-printing
facility, i.e. it takes as input some code represented as a tree and
formats this code into the most visually satisfying result, breaking
and indenting lines of code where appropriate.

Input data must be first modeled and converted into a tree using 3
kinds of nodes:

    atoms
    lists
    labeled nodes

Atoms represent any text that is guaranteed to be printed as-is. Lists
can model any sequence of items such as arrays of data or lists of
definitions that are labeled with something like "int main", "let x
=" or "x:".

%files
%license LICENSE
%doc README.md
%dir %{_libdir}/ocaml/%{libname}/
%{_libdir}/ocaml/%{libname}/META
%{_libdir}/ocaml/%{libname}/*.cmi
%{_libdir}/ocaml/%{libname}/*.cmt
%{_libdir}/ocaml/%{libname}/*.cmti
%{_libdir}/ocaml/%{libname}/*.cmxs

#--------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc CHANGES.md
%{_libdir}/ocaml/%{libname}/dune-package
%{_libdir}/ocaml/%{libname}/opam
%{_libdir}/ocaml/%{libname}/*.a
%{_libdir}/ocaml/%{libname}/*.cma
%{_libdir}/ocaml/%{libname}/*.cmx
%{_libdir}/ocaml/%{libname}/*.cmxa
%{_libdir}/ocaml/%{libname}/*.mli

#--------------------------------------------------------------

%prep
%autosetup -p0 -n %{libname}-%{version}


%build
dune build %{?_smp_mflags}


%install
DESTDIR=%{buildroot} dune install

# Fix permissions
chmod 755 %{buildroot}%{_libdir}/ocaml/%{libname}/*.cmxs

# Delete files we do not want or that are in the wrong place
rm -f %{buildroot}%{_libdir}/ocaml/%{libname}/*.ml
rm -fr %{buildroot}%{_prefix}/doc


%check
dune runtest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3713 |21cr|ocaml-expat-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	OCaml wrapper for the Expat XML parsing library
Name:		ocaml-expat
Version:	1.1.0
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		https://github.com/whitequark/ocaml-expat
Source0:	https://github.com/whitequark/ocaml-expat/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(expat)

%description
An ocaml wrapper for the Expat XML parsing library. It allows you to write
XML-Parsers using the SAX method. An XML document is parsed on the fly without
needing to load the entire XML-Tree into memory.

%files
%doc LICENCE README doc
%dir %{_libdir}/ocaml/expat
%{_libdir}/ocaml/expat/*.cmi
%{_libdir}/ocaml/expat/*.cma
%{_libdir}/ocaml/expat/*.cmxs
%{_libdir}/ocaml/expat/META
%{_libdir}/ocaml/stublibs/*.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	expat-devel
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/expat/*.a
%{_libdir}/ocaml/expat/*.cmxa
%{_libdir}/ocaml/expat/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make depend
%make all allopt

%install
install -d -m 755 %{buildroot}/%{_libdir}/ocaml/stublibs
make install OCAMLFIND_DESTDIR="%{buildroot}%{_libdir}/ocaml"
rm -f %{buildroot}/%{_libdir}/ocaml/stublibs/*.owner

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3714 |21cr|ocaml-extlib-1.7.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define up_name extlib

Summary:	Extended Standard Library for Objective Caml
Name:		ocaml-extlib
Version:	1.7.8
Release:	1
License:	LGPLv2.1+
Group:		Development/OCaml
Url:		http://code.google.com/p/ocaml-extlib/
Source0:	https://github.com/ygrek/ocaml-extlib/releases/download/%{version}/%{up_name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-cppo
BuildRequires:	ocaml-findlib
BuildRequires:	camlp4

%description
ExtLib is a project aiming at providing a complete - yet small - standard
library for the OCaml programming langage. The purpose of this library is to
add new functions to OCaml Standard Library modules, to modify some functions
in order to get better performances or more safety (tail-recursive) but also to
provide new modules which should be useful for the average OCaml programmer.

%files
%doc CHANGES LICENSE README.md
%dir %{_libdir}/ocaml/extlib
%{_libdir}/ocaml/extlib/*.cmi
%{_libdir}/ocaml/extlib/*.cma
%{_libdir}/ocaml/extlib/META

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/extlib/*.a
%{_libdir}/ocaml/extlib/*.mli
%{_libdir}/ocaml/extlib/*.cmxa
%{_libdir}/ocaml/extlib/*.cmx
%{_libdir}/ocaml/extlib/*.cmxs
%{_libdir}/ocaml/extlib/*.cmt
%{_libdir}/ocaml/extlib/*.cmti

#----------------------------------------------------------------------------

%prep
%setup -q -n %{up_name}-%{version}

%build
make

%install
install -d -m 755 %{buildroot}/%{_libdir}/ocaml
make install OCAMLFIND_DESTDIR="%{buildroot}/%{_libdir}/ocaml"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3715 |21cr|ocaml-fpath-0.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global srcname fpath

Name:           ocaml-%{srcname}
Version:        0.7.3
Release:        1
Summary:        File paths for OCaml
Group:          Development/OCaml
License:        ISC
URL:            https://erratique.ch/software/fpath
Source0:        https://github.com/dbuenzli/fpath/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.03.0
BuildRequires:  ocaml-astring-devel
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-ocamlbuild
BuildRequires:  ocaml-topkg-devel >= 0.9.0

%description
Fpath is an OCaml module for handling file system paths with POSIX or
Windows conventions.  Fpath processes paths without accessing the file
system and is independent from any system library.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs

#-----------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-astring-devel%{?_isa}
Requires:       ocaml-result-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/%{srcname}*.mli

#-----------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

# Topkg does watermark replacements only if run inside a git checkout.  Github
# tarballs do not come with a .git directory.  Therefore, we do the watermark
# replacement manually.
for fil in $(find . -type f); do
  sed -e 's,%%%%NAME%%%%,%{srcname},' \
      -e 's,%%%%PKG_HOMEPAGE%%%%,%{url},' \
      -e 's,%%%%VERSION%%%%,v%{version},' \
      -e 's,%%%%VERSION_NUM%%%%,%{version},' \
      -i.orig $fil
  touch -r $fil.orig $fil
  rm $fil.orig
done

%build
# Build the library and the tests
ocaml pkg/pkg.ml build --tests true

%install
# Install the library
mkdir -p %{buildroot}%{_libdir}/ocaml/fpath
cp -p _build/{opam,pkg/META} %{buildroot}%{_libdir}/ocaml/fpath
cp -a _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} \
  %{buildroot}%{_libdir}/ocaml/fpath

%check
ocaml pkg/pkg.ml test




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3716 |21cr|ocaml-glmlite-0.03.53-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenGL bindings for OCaml
Name:		ocaml-glmlite
Version:	0.03.53
Release:	1
License:	MIT
Group:		Development/OCaml
Url:		http://www.linux-nantes.org/~fmonnier/OCaml/GL/
Source0:	https://github.com/fccm/glMLite/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		RedBook-Samples-fix-libpath.patch
Patch2:		gle-examples-makefiles.patch
Patch3:		glMLite-LablGL-libpath.patch
Patch5:		glMLite-0.03.51-GraphicsMagick.patch
BuildRequires:	ocaml
BuildRequires:	jpeg-devel
BuildRequires:	libgle-devel
BuildRequires:	pkgconfig(ftgl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
Requires:	jpeg-devel
Requires:	libgle-devel
Requires:	pkgconfig(ftgl)
Requires:	pkgconfig(gl)
Requires:	pkgconfig(glu)
Requires:	pkgconfig(glut)
Requires:	pkgconfig(ImageMagick)
Requires:	pkgconfig(libpng)
Requires:	pkgconfig(librsvg-2.0)

%description
This package provides OpenGL bindings for OCaml.

There is a module for GL, Glu and Glut, and also some texture loaders for
different image file format. There are specialised/optimised loaders for
jpeg, png and svg,and also a generic image loader (which uses the libmagick).

The names of the functions are the same than in the C API, and the problematic
types are packed in modules. There are additional wrappers for the GLE and the
FTGL libraries, to perform extrusions and font rendering.

%files
%doc LICENSE_MIT.txt README.*
%dir %{_libdir}/ocaml/glMLite
%{_libdir}/ocaml/glMLite/META
%{_libdir}/ocaml/glMLite/*.cma
%{_libdir}/ocaml/glMLite/*.cmi
%{_libdir}/ocaml/glMLite/*.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description -n %{name}-devel
Development files for the package %{name}.

%files devel
%doc SRC/doc
%doc toolbox RedBook-Samples gle-examples nehe-examples LablGL
%{_libdir}/ocaml/glMLite/*.a
%{_libdir}/ocaml/glMLite/*.o
%{_libdir}/ocaml/glMLite/*.cmx
%{_libdir}/ocaml/glMLite/*.cmxa

#----------------------------------------------------------------------------

%prep
%setup -q -n glMLite-%{version}
%patch0 -p0
%patch2 -p0
%patch3 -p0
%patch5 -p1

%build
make everything
make doc

%install
install -d -m 755 %{buildroot}%{_libdir}/ocaml/glMLite
make install_everything PREFIX=%{buildroot}%{_libdir}/ocaml/glMLite

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3717 |21cr|ocaml-graphics-5.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags
# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global srcname graphics

Name:           ocaml-%{srcname}
Version:        5.1.2
Release:        1
Summary:        Portable drawing primitives for OCaml
Group:          Development/OCaml
License:        LGPLv2 with exceptions
URL:            https://github.com/ocaml/graphics
Source0:        %{url}/releases/download/%{version}/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.09.0
BuildRequires:  ocaml-dune-devel >= 2.1
BuildRequires:  ocaml-result-devel
BuildRequires:  ocaml-csexp-devel
BuildRequires:  pkgconfig(x11)

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
The graphics library provides a set of portable drawing primitives.
Drawing takes place in a separate window that is created when
Graphics.open_graph is called.

%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:  pkgconfig(x11)

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags} --display=verbose
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

# Relink the stublibs with $RPM_LD_FLAGS.
cd _build/default/src
ocamlmklib -g -ldopt '%{build_ldflags} -L%{_libdir}/ocaml -lX11' -o graphics_stubs \
  $(ar t libgraphics_stubs.a)
cd -

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest

%files
%doc CHANGES.md README.md
%license LICENSE
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs
%{_libdir}/ocaml/stublibs/dllgraphics_stubs.so

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/* examples
%endif
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3718 |21cr|ocaml-jane-street-headers-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global srcname jane-street-headers

# This package creates no ELF files, but cannot be noarch since the install
# location is under _libdir.
%global debug_package %{nil}

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Jane Street header files
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/jane-street-headers
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.04.2
BuildRequires:  ocaml-dune >= 2.0.0

%description
This package contains C header files shared between various Jane Street
packages.

#------------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}

%description    devel
This package contains C header files shared between various Jane Street
packages.

%files devel
%doc README.org
%license LICENSE.md
%{_libdir}/ocaml/%{srcname}/

#------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release

%install
dune install --destdir=%{buildroot}

# The generated jane_street_headers.ml file is empty, and so the rest of the
# compiled OCaml artifacts likewise contain nothing useful.  No consumers need
# them either; we remove them.
rm -f %{buildroot}%{_libdir}/ocaml/%{srcname}/*.{cma,cmi,cmt,cmx,cmxa,cmxs,ml}

# Removing those artifacts means we also need to remove references to them
sed -ri '/(archive|plugin)/d' \
        %{buildroot}%{_libdir}/ocaml/%{srcname}/{dune-package,META}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3719 |21cr|ocaml-jst-config-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
# This package contains generated C header files.  They differ by architecture,
# so this package cannot be noarch, but there are no ELF objects in it.
%global debug_package %{nil}

%global srcname jst-config

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Compile-time configuration for Jane Street libraries
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{srcname}
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-csexp-devel >= 0.15
BuildRequires:  ocaml-dune-devel >= 2.0.0
BuildRequires:  ocaml-ppx-assert-devel >= 0.15
BuildRequires:  ocaml-stdio-devel >= 0.15

%description
This package defines compile-time constants used in Jane Street libraries
such as Base, Core, and Async.

#--------------------------------------------------------------

%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppx-assert-devel%{?_isa}
Requires:       ocaml-stdio-devel%{?_isa}

%description    devel
This package defines compile-time constants used in Jane Street libraries
such as Base, Core, and Async.

%files devel
%license LICENSE.md
%{_libdir}/ocaml/%{srcname}/

#--------------------------------------------------------------
%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release

%install
dune install --destdir=%{buildroot}

# The generated config_h.ml file is empty, and so the rest of the compiled OCaml
# artifacts likewise contain nothing useful.  No consumers need them either, so
# we remove them.
rm -f %{buildroot}%{_libdir}/ocaml/%{srcname}/*.{a,cma,cmi,cmt,cmx,cmxa,cmxs,ml}

# Removing those artifacts means we also need to remove references to them
sed -ri '/(archive|plugin)/d' \
        %{buildroot}%{_libdir}/ocaml/%{srcname}/{dune-package,META}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3720 |21cr|ocaml-lablgl-1.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname lablgl
%define srcname lablGL

Summary:	OpenGL interface for OCaml
Name:		ocaml-%{modname}
Version:	1.06
Release:	1
License:	BSD
Group:		Development/OCaml
Url:		http://wwwfun.kurims.kyoto-u.ac.jp/soft/olabl/lablgl.html
Source0:	https://github.com/garrigue/lablgl/archive/refs/tags/v%{version}.tar.gz?/%{modname}-%{version}.tar.gz
BuildRequires:	ocaml-camlp4-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-labltk
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(xmu)
Requires:	ocaml-labltk

%description
LablGL is is an OCaml interface to OpenGL. Support is included for
use with both Glut (standalone) and LablTk.

%files
%doc COPYRIGHT CHANGES README
%dir %{_libdir}/ocaml/lablGL
%{_libdir}/ocaml/lablGL/*.cmi
%{_libdir}/ocaml/lablGL/*.cma
%{_libdir}/ocaml/lablGL/META
%{_libdir}/ocaml/stublibs/*.so
%{_bindir}/lablgl
%{_bindir}/lablglut

#----------------------------------------------------------------------------

%package devel
Summary:	OpenGL interface for OCaml
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(gl)
Requires:	pkgconfig(glu)
Requires:	pkgconfig(glut)
Requires:	pkgconfig(xmu)

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/lablGL/*.a
%{_libdir}/ocaml/lablGL/*.cmx
%{_libdir}/ocaml/lablGL/*.cmxa
%{_libdir}/ocaml/lablGL/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q -n %{modname}-%{version}

cp -f %{_includedir}/tk8.6*/generic/tkInt.h Togl/src/Togl/tkInt%{tcl_version}.h
cp -f %{_includedir}/tk8.6*/generic/tkIntDecls.h Togl/src/Togl/tkIntDecls%{tcl_version}.h
sed -i -e 's,tkIntDecls.h,tkIntDecls%{tcl_version}.h,g' Togl/src/Togl/tkInt%{tcl_version}.h

cat > Makefile.config << EOF
CAMLC = ocamlc.opt
CAMLOPT = ocamlopt.opt
BINDIR = %{_bindir}
XINCLUDES = -I%{_includedir}
XLIBS = -L%{_libdir} -lXext -lXmu -lX11
TKINCLUDES = -I%{_includedir}
GLINCLUDES =
GLLIBS = -lGL -lGLU
GLUTLIBS = -lglut
RANLIB = :
LIBDIR = %{_libdir}/ocaml
DLLDIR = %{_libdir}/ocaml/stublibs
INSTALLDIR = %{_libdir}/ocaml/lablGL
TOGLDIR=Togl
COPTS = %{optflags}
EOF

%build
make all opt

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_libdir}/ocaml/lablGL
install -d -m 755 %{buildroot}%{_libdir}/ocaml/stublibs
make \
   BINDIR=%{buildroot}%{_bindir}\
   INSTALLDIR=%{buildroot}%{_libdir}/ocaml/lablGL\
   DLLDIR=%{buildroot}%{_libdir}/ocaml/stublibs\
   install

rm -f %{buildroot}%{_libdir}/ocaml/lablGL/*.ml

# Make and install a META file.
cat > %{buildroot}%{_libdir}/ocaml/lablGL/META<<EOF
version="%{version}"
directory="+lablGL"
archive(byte) = "lablgl.cma"
archive(native) = "lablgl.cmxa"

package "togl" (
  requires = "labltk lablGL"
  archive(byte) = "togl.cma"
  archive(native) = "togl.cmxa"
)

package "glut" (
  requires = "lablGL"
  archive(byte) = "lablglut.cma"
  archive(native) = "lablglut.cmxa"
)
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3721 |21cr|ocaml-lablgtk2-2.18.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name lablgtk

%global __ocaml_requires_opts -i GtkSourceView2_types

Summary:	OCaml interface to the GIMP Tool Kit Version 2
Name:		ocaml-%{base_name}2
Version:	2.18.12
Release:	2
License:	LGPLv2.1+
Group:		Development/OCaml
Url:		https://github.com/garrigue/lablgtk
Source0:	https://github.com/garrigue/lablgtk/archive/%{version}.tar.gz?/lablgtk-%{version}.tar.gz
BuildRequires:	help2man
BuildRequires:	ocaml-camlp4-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-lablgl-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkgl-2.0)
BuildRequires:	pkgconfig(gtksourceview-2.0)
BuildRequires:	pkgconfig(gtkspell-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomecanvas-2.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(zlib)

%description
OCaml interface to the GIMP Tool Kit Version 2.

%files
%doc COPYING CHANGES README
%{_bindir}/*
%dir %{_libdir}/ocaml/lablgtk2
%{_libdir}/ocaml/lablgtk2/META
%{_libdir}/ocaml/lablgtk2/*.cmi
%{_libdir}/ocaml/lablgtk2/*.cma
%{_libdir}/ocaml/lablgtk2/*.cmo
%{_libdir}/ocaml/lablgtk2/*.o
%{_libdir}/ocaml/stublibs/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(gtk+-2.0)

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/lablgtk2/*
%exclude %{_libdir}/ocaml/lablgtk2/META
%exclude %{_libdir}/ocaml/lablgtk2/*.cmi
%exclude %{_libdir}/ocaml/lablgtk2/*.cma
%exclude %{_libdir}/ocaml/lablgtk2/*.cmo
%exclude %{_libdir}/ocaml/lablgtk2/*.o

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation and examples for %{name}
Group:		Development/OCaml

%description doc
This package contains the ocamldoc generated documentation for %{name},
and some examples.

%files doc
%doc examples

#----------------------------------------------------------------------------

%prep
%setup -q -n %{base_name}-%{version}

# Remove spurious executable bits
chmod a-x README*

perl -pi -e "s/^directory.*$//" META
sed -i -e 's/version="2.12.0"/version="%{version}"/' META

%build
%configure --enable-debug --without-gnomeui
make
make opt

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_libdir}/ocaml/lablgtk2
mkdir -p %{buildroot}%{_libdir}/ocaml/stublibs
make install \
     RANLIB=true \
     BINDIR=%{buildroot}%{_bindir} \
     LIBDIR=%{buildroot}%{_libdir} \
     INSTALLDIR=%{buildroot}%{_libdir}/ocaml/lablgtk2 \
     DLLDIR=%{buildroot}%{_libdir}/ocaml/stublibs
cp -p META %{buildroot}%{_libdir}/ocaml/lablgtk2

# Remove ld.conf (part of main OCaml dist).
rm %{buildroot}%{_libdir}/ocaml/ld.conf

# Remove unnecessary *.ml files (ones which have a *.mli).
pushd %{buildroot}%{_libdir}/ocaml/lablgtk2
for f in *.ml; do \
  b=`basename $f .ml`; \
  if [ -f "$b.mli" ]; then \
    rm $f; \
  fi; \
done
popd

# Remove .cvsignore files from examples directory.
find examples -name .cvsignore -exec rm {} \;

# Generate man pages
export LD_LIBRARY_PATH=$PWD/src
mkdir -p %{buildroot}%{_mandir}/man1
cp -p src/lablgladecc src/lablgladecc2
for bin in gdk_pixbuf_mlsource lablgladecc2 lablgtk2; do
  help2man -N --version-string=%{version} src/$bin > \
    %{buildroot}%{_mandir}/man1/$bin.1
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3722 |21cr|ocaml-lablgtk3-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags

Name:           ocaml-lablgtk3
Version:        3.1.2
Release:        1
Summary:        OCaml interface to gtk3
Group:          Development/OCaml
License:        LGPLv2+ with exceptions
URL:            https://garrigue.github.io/lablgtk/
Source0:        https://github.com/garrigue/lablgtk/archive/%{version}/lablgtk3-%{version}.tar.gz
# Fedora only patch: unbundle xml-light
Patch0:         %{name}-xml-light.patch

BuildRequires:  help2man
BuildRequires:  ocaml >= 4.05.0
BuildRequires:  ocaml-cairo-devel >= 0.6
BuildRequires:  ocaml-camlp5-devel
BuildRequires:  ocaml-csexp-devel
BuildRequires:  ocaml-dune-devel
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-xml-light-devel
BuildRequires:  pkgconfig(goocanvas-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gtksourceview-3.0)
BuildRequires:  pkgconfig(gtkspell3-3.0)

%global _description %{expand:
LablGTK3 is an Objective Caml interface to gtk3.  It uses the rich
type system of Objective Caml to provide a strongly typed, yet very
comfortable, object-oriented interface to gtk3.}

%description %_description

%files
%doc CHANGES.md CHANGELOG.API README.md doc
%license LGPL LICENSE
%{_mandir}/man1/gdk_pixbuf_mlsource3.1*
%{_mandir}/man1/lablgladecc3.1*
%{_bindir}/gdk_pixbuf_mlsource3
%{_bindir}/lablgladecc3
%{_libdir}/ocaml/stublibs/dlllablgtk3_stubs.so
%{_libdir}/ocaml/lablgtk3/META
%{_libdir}/ocaml/lablgtk3/*.cma
%{_libdir}/ocaml/lablgtk3/*.cmi
%{_libdir}/ocaml/lablgtk3/*.cmxs

#-----------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       pkgconfig(gtk+-3.0)
Requires:       ocaml-cairo-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/lablgtk3/*.a
%{_libdir}/ocaml/lablgtk3/*.cmx
%{_libdir}/ocaml/lablgtk3/*.cmxa
%{_libdir}/ocaml/lablgtk3/*.cmt
%{_libdir}/ocaml/lablgtk3/*.cmti
%{_libdir}/ocaml/lablgtk3/*.mli
%{_libdir}/ocaml/lablgtk3/*.h
%{_libdir}/ocaml/lablgtk3/dune-package
%{_libdir}/ocaml/lablgtk3/opam

#-----------------------------------------------------------------
%package        goocanvas2
Summary:        OCaml interface to GooCanvas
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       pkgconfig(goocanvas-2.0)

%description    goocanvas2 %_description

This package contains OCaml bindings for the GTK3 GooCanvas library.

%files goocanvas2
%{_libdir}/ocaml/stublibs/dlllablgtk3_goocanvas2_stubs.so
%{_libdir}/ocaml/lablgtk3-goocanvas2/META
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.cma
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.cmi
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.cmxs

#-----------------------------------------------------------------
%package        goocanvas2-devel
Summary:        Development files for %{name}-goocanvas2
Group:          Development/OCaml
Requires:       %{name}-goocanvas2%{?_isa} = %{version}-%{release}
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}

%description    goocanvas2-devel
The %{name}-goocanvas2-devel package contains libraries and signature
files for developing applications that use %{name}-goocanvas2.

%files goocanvas2-devel
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.a
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.cmx
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.cmxa
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.cmt
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.cmti
%{_libdir}/ocaml/lablgtk3-goocanvas2/*.mli
%{_libdir}/ocaml/lablgtk3-goocanvas2/dune-package
%{_libdir}/ocaml/lablgtk3-goocanvas2/opam

#-----------------------------------------------------------------
%package        gtkspell3
Summary:        OCaml interface to gtkspell3
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       pkgconfig(gtkspell3-3.0)

%description    gtkspell3 %_description

This package contains OCaml bindings for gtkspell3.

%files gtkspell3
%{_libdir}/ocaml/stublibs/dlllablgtk3_gtkspell3_stubs.so
%{_libdir}/ocaml/lablgtk3-gtkspell3/META
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.cma
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.cmi
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.cmxs

#-----------------------------------------------------------------
%package        gtkspell3-devel
Summary:        Development files for %{name}-gtkspell3
Group:          Development/OCaml
Requires:       %{name}-gtkspell3%{?_isa} = %{version}-%{release}
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}

%description    gtkspell3-devel
The %{name}-gtkspell3-devel package contains libraries and signature
files for developing applications that use %{name}-gtkspell3.

%files gtkspell3-devel
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.a
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.cmx
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.cmxa
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.cmt
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.cmti
%{_libdir}/ocaml/lablgtk3-gtkspell3/*.mli
%{_libdir}/ocaml/lablgtk3-gtkspell3/dune-package
%{_libdir}/ocaml/lablgtk3-gtkspell3/opam

#-----------------------------------------------------------------
%package        sourceview3
Summary:        OCaml interface to gtksourceview3
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       pkgconfig(gtksourceview-3.0)

%description    sourceview3 %_description

This package contains OCaml bindings for gtksourceview3.

%files sourceview3
%{_libdir}/ocaml/stublibs/dlllablgtk3_sourceview3_stubs.so
%{_libdir}/ocaml/lablgtk3-sourceview3/META
%{_libdir}/ocaml/lablgtk3-sourceview3/*.cma
%{_libdir}/ocaml/lablgtk3-sourceview3/*.cmi
%{_libdir}/ocaml/lablgtk3-sourceview3/*.cmxs

#-----------------------------------------------------------------
%package        sourceview3-devel
Summary:        Development files for %{name}-sourceview3
Group:          Development/OCaml
Requires:       %{name}-sourceview3%{?_isa} = %{version}-%{release}
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}

%description    sourceview3-devel
The %{name}-sourceview3-devel package contains libraries and signature
files for developing applications that use %{name}-sourceview3.

%files sourceview3-devel
%{_libdir}/ocaml/lablgtk3-sourceview3/*.a
%{_libdir}/ocaml/lablgtk3-sourceview3/*.cmx
%{_libdir}/ocaml/lablgtk3-sourceview3/*.cmxa
%{_libdir}/ocaml/lablgtk3-sourceview3/*.cmt
%{_libdir}/ocaml/lablgtk3-sourceview3/*.cmti
%{_libdir}/ocaml/lablgtk3-sourceview3/*.mli
%{_libdir}/ocaml/lablgtk3-sourceview3/dune-package
%{_libdir}/ocaml/lablgtk3-sourceview3/opam

#-----------------------------------------------------------------
%prep
%autosetup -n lablgtk-%{version} -p1

# This file is empty, so drop it before we make assemble the docs
rm doc/FAQ.text

# Make sure we do not use the bundled copy of xml-light
rm -fr tools/instrospection/xml-light

# This version number marker was removed in the 3.1.2 release, leading to no
# version number in the META files
sed -i '/(name lablgtk3)/a(version %{version})' dune-project

%build
export LABLGTK_EXTRA_FLAGS=-g
dune build

# Relink the stublibs with $RPM_LD_FLAGS.
pushd _build/default/src
ocamlmklib -g -ldopt '%{build_ldflags}' $(pkgconf --libs gtk+-3.0) \
  -o lablgtk3_stubs $(ar t liblablgtk3_stubs.a)
cd ../src-goocanvas2
ocamlmklib -g -ldopt '%{build_ldflags}' $(pkgconf --libs goocanvas-2.0) \
  -o lablgtk3_goocanvas2_stubs $(ar t liblablgtk3_goocanvas2_stubs.a)
cd ../src-gtkspell3
ocamlmklib -g -ldopt '%{build_ldflags}' $(pkgconf --libs gtkspell3-3.0) \
  -o lablgtk3_gtkspell3_stubs $(ar t liblablgtk3_gtkspell3_stubs.a)
cd ../src-sourceview3
ocamlmklib -g -ldopt '%{build_ldflags}' $(pkgconf --libs gtksourceview-3.0) \
  -o lablgtk3_sourceview3_stubs $(ar t liblablgtk3_sourceview3_stubs.a)
popd

# Make the man pages
HELP2MAN="-N --version-string=%{version}"
cd _build/install/default/bin
help2man $HELP2MAN -o ../../../../gdk_pixbuf_mlsource3.1 ./gdk_pixbuf_mlsource3
help2man $HELP2MAN -o ../../../../lablgladecc3.1 ./lablgladecc3
cd -

%install
dune install --destdir=%{buildroot}

# Install the man pages
mkdir -p %{buildroot}%{_mandir}/man1
cp -p gdk_pixbuf_mlsource3.1 lablgladecc3.1 %{buildroot}%{_mandir}/man1

# Remove files we do not need to package
rm %{buildroot}%{_libdir}/ocaml/*/*.ml

# This just contains the README, LICENSE, and CHANGES files, 3 times, in
# directories with names other than the ones we want.
rm -rf %{buildroot}%{_prefix}/doc

%check
dune runtest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3723 |21cr|ocaml-lambda-term-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags

Name:           ocaml-lambda-term
Version:        3.1.0
Release:        1
Summary:        Terminal manipulation library for OCaml
Group:          Development/OCaml
%global libname %(echo %{name} | sed -e 's/^ocaml-//')

License:        BSD
URL:            https://github.com/ocaml-community/lambda-term
Source0:        https://github.com/ocaml-community/lambda-term/archive/%{version}/%{libname}-%{version}.tar.gz

BuildRequires:  make
BuildRequires:  ocaml >= 4.02.3
BuildRequires:  ocaml-camomile-devel >= 1.0.1
BuildRequires:  ocaml-lwt-devel >= 4.0.0
BuildRequires:  ocaml-lwt-react-devel
BuildRequires:  ocaml-lwt-log-devel
BuildRequires:  ocaml-mew-vi-devel >= 0.5.0
BuildRequires:  ocaml-react-devel
BuildRequires:  ocaml-zed-devel >= 3.0.0

BuildRequires:  ocaml-dune >= 1.1.0

%description
Lambda-term is a cross-platform library for manipulating the terminal. It
provides an abstraction for keys, mouse events, colors, as well as a set of
widgets to write curses-like applications.

The main objective of lambda-term is to provide a higher level functional
interface to terminal manipulation than, for example, ncurses, by providing
a native OCaml interface instead of bindings to a C library.

Lambda-term integrates with zed to provide text edition facilities in
console applications.

%files
%license LICENSE
%doc %{_docdir}/lambda-term
%{_libdir}/ocaml/%{libname}
%{_bindir}/lambda-term-actions
%{_mandir}/man1/lambda-term-actions.1*
%{_mandir}/man5/lambda-term-inputrc.5*
%{_datadir}/lambda-term
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.cmx
%exclude %{_libdir}/ocaml/*/*.mli
%{_libdir}/ocaml/stublibs/*.so

#------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-camomile-devel%{?_isa}
Requires:       ocaml-lwt-devel%{?_isa}
Requires:       ocaml-lwt-log-devel%{?_isa}
Requires:       ocaml-lwt-react-devel%{?_isa}
Requires:       ocaml-mew-vi-devel%{?_isa}
Requires:       ocaml-react-devel%{?_isa}
Requires:       ocaml-zed-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%license LICENSE
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.mli

#------------------------------------------------------

%prep
%autosetup -n %{libname}-%{version}

%build
dune build \
    --verbose \
    --for-release-of-packages=%{libname} \
    %{?_smp_mflags}

# Relink the stublib with RPM_LD_FLAGS
cd _build/default/src
ocamlmklib -g -ldopt "$RPM_LD_FLAGS" -o lambda_term_stubs \
  $(ar t liblambda_term_stubs.a)
cd -

%install
dune install \
    --verbose \
    --for-release-of-packages=%{libname} \
    --destdir=%{buildroot} \
    --prefix=%{_prefix} \
    --libdir=%{_libdir}/ocaml

mkdir -p %{buildroot}%{_mandir}/man{1,5} \
         %{buildroot}%{_datadir}/lambda-term \
         %{buildroot}%{_docdir}
mv %{buildroot}%{_prefix}/doc/lambda-term %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/lambda-term{rc,-inputrc} %{buildroot}%{_datadir}/lambda-term

%check
make test




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3724 |21cr|ocaml-logs-0.7.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags
%global debug_package %{nil}

%global srcname logs

Name:           ocaml-%{srcname}
Version:        0.7.0
Release:        4
Summary:        Logging infrastructure for OCaml
Group:          Development/OCaml
License:        ISC
URL:            https://erratique.ch/software/logs
Source0:        %{url}/releases/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.03.0
BuildRequires:  ocaml-cmdliner-devel
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-fmt-devel
BuildRequires:  ocaml-lwt-devel
BuildRequires:  ocaml-mtime-devel
BuildRequires:  ocaml-ocamlbuild
BuildRequires:  ocaml-topkg-devel

%description
Logs provides a logging infrastructure for OCaml.  Logging is performed
on sources whose reporting level can be set independently.  The log
message report is decoupled from logging and is handled by a reporter.

A few optional log reporters are distributed with the base library and
the API lets you easily implement your own.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs


#----------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-cmdliner-devel%{?_isa}
Requires:       ocaml-fmt-devel%{?_isa}
Requires:       ocaml-lwt-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with docs}
%doc _build/default/_doc/*
%endif
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli

#----------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

# test_lwt needs the thread flag
sed -i 's/package(lwt)/thread, &/' _tags

%build
ocaml pkg/pkg.ml build --with-js_of_ocaml false --with-fmt true \
  --with-cmdliner true --with-lwt true --with-base-threads true --tests true

# Relink with Fedora linker flags
cd _build
ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g -I src src/logs.cmxa \
  -o src/logs.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g -package fmt \
  -I src src/logs_fmt.cmxa -o src/logs_fmt.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g \
  -package cmdliner -I src src/logs_cli.cmxa -o src/logs_cli.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g -thread \
  -package lwt -I src src/logs_lwt.cmxa -o src/logs_lwt.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g \
  -package compiler-libs.toplevel -I src src/logs_top.cmxa -o src/logs_top.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g -thread \
  -package threads -I src src/logs_threaded.cmxa -o src/logs_threaded.cmxs
cd -

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/%{srcname}
cp -p _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} _build/pkg/META \
   _build/opam %{buildroot}%{_libdir}/ocaml/%{srcname}

# The tests don't do us much good.  Several of them deliberately log errors,
# to test that that works, but the tests are written so that any logged errors
# at all makes the test suite exit with exit value 1.  It would be great if
# upstream would exit with 0 on a normal run...
#%%check
#ocaml pkg/pkg.ml test || :



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3725 |21cr|ocaml-lwt-log-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
Name:           ocaml-lwt-log
Version:        1.1.1
Release:        1
Summary:        Lwt logging library
Group:          Development/OCaml
%global libname %(echo %{name} | sed -e 's/^ocaml-//')

License:        LGPLv2+
URL:            https://github.com/ocsigen/lwt_log
Source0:        https://github.com/ocsigen/lwt_log/archive/%{version}/%{libname}-%{version}.tar.gz

BuildRequires:  ocaml
BuildRequires:  ocaml-findlib-devel
BuildRequires:  ocaml-lwt-devel

BuildRequires:  ocaml-dune

%description
Lwt-friendly logging library.

%files
%license COPYING
%doc README.md CHANGES
%{_libdir}/ocaml/lwt_log
%exclude %{_libdir}/ocaml/lwt_log/*/*.a
%exclude %{_libdir}/ocaml/lwt_log/*/*.cmxa
%exclude %{_libdir}/ocaml/lwt_log/*/*.cmx
%exclude %{_libdir}/ocaml/lwt_log/*/*.mli

#-----------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/lwt_log/*/*.a
%{_libdir}/ocaml/lwt_log/*/*.cmxa
%{_libdir}/ocaml/lwt_log/*/*.cmx
%{_libdir}/ocaml/lwt_log/*/*.mli

#-----------------------------------------------------------

%prep
%autosetup -n lwt_log-%{version}

%build
dune build

%install
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
dune install --prefix %{buildroot}%{_prefix}/ --lib %{buildroot}%{_libdir}/ocaml/

# Remove .ml files.
rm -rf %{buildroot}%{_libdir}/ocaml/lwt_log/*.ml
rm -rf %{buildroot}%{_libdir}/ocaml/lwt_log/*/*.ml

# Hmm... the above needs refinement. Remove spurious doc files.
rm -rf %{buildroot}%{_prefix}/doc





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3726 |21cr|ocaml-lzma-0.01-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OCaml bindings for the LZMA compression library
Name:		ocaml-lzma
Version:	0.01
Release:	8
License:	LGPLv2.1+ with static compilation exception
Group:		Development/OCaml
Url:		http://forge.ocamlcore.org/projects/ocaml-lzma/
Source0:	http://forge.ocamlcore.org/frs/download.php/378/ocaml-lzma-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	liblzma-devel

%description
OCaml bindings for the LZMA compression library.
Lzma provides very high compression ratio and fast decompression,
the average compression ratio is 30% better than that of gzip and
15% better than that of bzip2.

%files
%doc README.txt description.txt LICENSE.txt
%dir %{_libdir}/ocaml/lzma
%{_libdir}/ocaml/lzma/META
%{_libdir}/ocaml/lzma/*.cma
%{_libdir}/ocaml/lzma/*.cmi
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc doc examples
%{_libdir}/ocaml/lzma/*.a
%{_libdir}/ocaml/lzma/*.o
%{_libdir}/ocaml/lzma/*.cmxa
%{_libdir}/ocaml/lzma/*.cmx
%{_libdir}/ocaml/lzma/*.cmo
%{_libdir}/ocaml/lzma/*.mli
%{_libdir}/ocaml/stublibs/*.cmxs

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make
make doc

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/lzma
mkdir -p %{buildroot}%{_libdir}/ocaml/stublibs
make install \
  PREFIX=%{buildroot}%{_libdir}/ocaml/lzma \
  SO_PREFIX=%{buildroot}%{_libdir}/ocaml/stublibs

mkdir examples
cp test_* examples/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3727 |21cr|ocaml-mad-0.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bindings for the mad library
Name:		ocaml-mad
Version:	0.5.2
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		https://github.com/savonet/ocaml-mad
Source0:	https://github.com/savonet/ocaml-mad/archive/v%{version}.tar.gz?/ocaml-mad-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(mad)
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-csexp-devel
BuildRequires:	libmad-devel

%description
Bindings for the mad library which provides functions for encoding
wave audio files into mp3.

%files
%doc COPYING CHANGES README*
%dir %{_libdir}/ocaml/mad
%{_libdir}/ocaml/mad/META
%{_libdir}/ocaml/mad/*.cma
%{_libdir}/ocaml/mad/*.cmi
%{_libdir}/ocaml/mad/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/mad/*.a
%{_libdir}/ocaml/mad/*.cmxa
%{_libdir}/ocaml/mad/*.cmx
%{_libdir}/ocaml/mad/*.mli
%{_libdir}/ocaml/mad/*.cmt
%{_libdir}/ocaml/mad/*.cmti
%{_libdir}/ocaml/mad/opam
%{_libdir}/ocaml/mad/dune-package

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3728 |21cr|ocaml-magic-0.7.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OCaml bindings for the File type determination library
Name:		ocaml-magic
Version:	0.7.3
Release:	7
License:	LGPLv2.1+
Group:		Development/OCaml
Url:		http://sourceforge.net/projects/ocaml-magic/
Source0:	http://sourceforge.net/projects/ocaml-magic/files/ocaml-magic-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	magic-devel

%description
Libmagic is a library for classifying files according to magic number tests.
This package provides OCaml interface to this C library.

%files
%doc LICENSE README
%dir %{_libdir}/ocaml/magic
%{_libdir}/ocaml/magic/META
%{_libdir}/ocaml/magic/*.cma
%{_libdir}/ocaml/magic/*.cmi
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc doc
%{_libdir}/ocaml/magic/*.a
%{_libdir}/ocaml/magic/*.cmxa
%{_libdir}/ocaml/magic/*.cmx
%{_libdir}/ocaml/magic/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q -n ocaml-magic-%{version}

%build
%configure
make
make doc

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/magic
make install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3729 |21cr|ocamlmakefile-6.37.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automated compilation of complex OCaml-projects
Name:		ocamlmakefile
Version:	6.37.0
Release:	5
License:	LGPLv2.1+ with OCaml linking exception
Group:		Development/OCaml
Url:		https://bitbucket.org/mmottl/ocaml-makefile
Source0:	https://bitbucket.org/mmottl/ocaml-makefile/downloads/ocaml-makefile-%{version}.tar.gz
Source1:	README.examples.idl
BuildArch:	noarch

%description
A general makefile for the Objective Caml programming language
OCamlMakefile is a general makefile which allows a programmer to
create quickly customized makefiles for a project written in the
Objective Caml programming language. Typically, a customized makefile
consists of the definition of a few variables, and an inclusion of
the general makefile provided by this package.

%files
%doc COPYING.txt README.md CHANGES.txt
%dir %{_datadir}/ocamlmakefile
%{_datadir}/ocamlmakefile/OCamlMakefile

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation and examples files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description doc
The %{name}-doc package contains documentation and examples files for
developing applications that use %{name}.

%files doc
%doc calc camlp4 gtk idl threads

#----------------------------------------------------------------------------

%prep
%setup -q -n ocaml-makefile-%{version}
install -m 0644 %{SOURCE1} ./

%build

%install
# OCamlMakefile
install -d -m 0755 %{buildroot}%{_datadir}/ocamlmakefile
sed -i -e "s|/usr/local/lib|/usr/lib|g" OCamlMakefile
install -m 0644 OCamlMakefile %{buildroot}%{_datadir}/ocamlmakefile/

# examples/
for d in calc camlp4 gtk idl threads; do
  sed -i -e "s|../OCamlMakefile|%{_datadir}/ocamlmakefile/OCamlMakefile|g" ./$d/Makefile;
done
cp ./README.examples.idl ./calc/README
cp ./README.examples.idl ./idl/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3730 |21cr|ocaml-markup-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global srcname markup

Name:           ocaml-%{srcname}
Version:        1.0.2
Release:        1
Summary:        Error-recovering streaming HTML5 and XML parsers for OCaml
Group:          Development/OCaml
License:        MIT
URL:            http://aantron.github.io/markup.ml/
Source0:        https://github.com/aantron/markup.ml/archive/%{version}/%{srcname}-%{version}.tar.gz

# https://github.com/aantron/markup.ml/issues/66
Patch1:         0001-Fix-build-on-OCaml-4.13.1.patch

BuildRequires:  ocaml >= 4.02.0
BuildRequires:  ocaml-bisect-ppx-devel >= 2.0.0
BuildRequires:  ocaml-dune >= 2.7.0
BuildRequires:  ocaml-lwt-devel
BuildRequires:  ocaml-ounit-devel
BuildRequires:  ocaml-uutf-devel >= 1.0.0

%description
Markup.ml is a pair of parsers implementing the HTML5 and XML
specifications, including error recovery.  Usage is simple, because each
parser is a function from byte streams to parsing signal streams.

In addition to being error-correcting, the parsers are:
- **streaming**: parsing partial input and emitting signals while more
  input is still being received;
- **lazy**: not parsing input unless you have requested the next parsing
  signal, so you can easily stop parsing part-way through a document;
- **non-blocking**: they can be used with Lwt, but still provide a
  straightforward synchronous interface for simple usage; and
- **one-pass**: memory consumption is limited since the parsers don't
  build up a document representation, nor buffer input beyond a small
  amount of lookahead.

The parsers detect character encodings automatically, and emit everything
in UTF-8.  The HTML parser understands SVG and MathML, in addition to
HTML5.

%files
%doc README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs

#-------------------------------------------------------------

%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-uutf-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/*.ml
%{_libdir}/ocaml/%{srcname}/*.mli

#-------------------------------------------------------------

%package        lwt
Summary:        Adapter between ocaml-markup and ocaml-lwt
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    lwt
This package contains an adapter between Markup.ml and Lwt.

%files lwt
%dir %{_libdir}/ocaml/%{srcname}-lwt/
%dir %{_libdir}/ocaml/%{srcname}-lwt/unix/
%{_libdir}/ocaml/%{srcname}-lwt/META
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.cma
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.cmi
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.cma
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.cmi
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.cmxs
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.cmxs

#-------------------------------------------------------------

%package        lwt-devel
Summary:        Development files for %{name}-lwt
Group:          Development/OCaml
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Requires:       %{name}-lwt%{?_isa} = %{version}-%{release}
Requires:       ocaml-bisect-ppx-devel%{?_isa}
Requires:       ocaml-lwt-devel%{?_isa}

%description    lwt-devel
The %{name}-lwt-devel package contains libraries and signature files for
developing applications that use %{name}-lwt.

%files lwt-devel
%{_libdir}/ocaml/%{srcname}-lwt/dune-package
%{_libdir}/ocaml/%{srcname}-lwt/opam
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.a
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.cmx
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.cmxa
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.a
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.cmx
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.cmxa
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.cmt
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.cmti
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.ml
%{_libdir}/ocaml/%{srcname}-lwt/%{srcname}_lwt.mli
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.cmt
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.cmti
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.ml
%{_libdir}/ocaml/%{srcname}-lwt/unix/%{srcname}_lwt_unix.mli

#-------------------------------------------------------------
%prep
%autosetup -n %{srcname}.ml-%{version} -p1

# The uchar package is a forward compatibility package for OCaml versions prior
# to 4.03.  We have a later OCaml in Fedora; uchar is in the standard library.
# Nothing in this package directly refers to uchar (only indirectly via uutf),
# so just remove the reference to it.
sed -i '/uchar/d' markup.opam

%build
dune build %{?_smp_mflags} @install

%install
dune install --destdir=%{buildroot}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3731 |21cr|ocaml-mdx-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global srcname mdx

# Break a circular dependency by not building documentation
%bcond_with doc

Name:           ocaml-%{srcname}
Version:        2.1.0
Release:        2
Summary:        Executable code blocks inside markdown files
Group:          Development/OCaml
License:        ISC
URL:            https://realworldocaml.github.io/mdx/
Source0:        https://github.com/realworldocaml/mdx/releases/download/%{version}/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-alcotest-devel
BuildRequires:  ocaml-astring-devel
BuildRequires:  ocaml-cmdliner-devel >= 1.0.0
BuildRequires:  ocaml-cppo >= 1.1.0
BuildRequires:  ocaml-csexp-devel >= 1.3.2
BuildRequires:  ocaml-dune >= 2.7
BuildRequires:  ocaml-fmt-devel >= 0.8.7
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-logs-devel >= 0.7.0
BuildRequires:  ocaml-lwt-devel
BuildRequires:  ocaml-odoc-parser-devel >= 1.0.0
BuildRequires:  ocaml-re-devel >= 1.7.2
BuildRequires:  ocaml-result-devel
BuildRequires:  ocaml-uutf-devel
BuildRequires:  ocaml-version-devel >= 2.3.0

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
mdx enables execution of code blocks inside markdown files.  There are
(currently) two sub-commands, corresponding to two modes of operation:
preprocessing (`ocaml-mdx pp`) and tests (`ocaml-mdx test`).

The preprocessor mode enables mixing documentation and code, and the
practice of "literate programming" using markdown and OCaml.

The test mode enables ensuring that shell scripts and OCaml fragments in
the documentation always stay up-to-date.

The blocks in markdown files can be parameterized by `mdx`-specific
labels, that will change the way `mdx` interprets the block.  The syntax
is: `<!-- $MDX labels -->`, where `labels` is a list of valid labels
separated by a comma.  This line must immediately precede the block it
is attached to.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%{_bindir}/ocaml-mdx
%{_bindir}/ocaml-mdx-test
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/test/
%dir %{_libdir}/ocaml/%{srcname}/top/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/{,*/}*.cma
%{_libdir}/ocaml/%{srcname}/{,*/}*.cmi
%{_libdir}/ocaml/%{srcname}/{,*/}*.cmxs

#-------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-astring-devel%{?_isa}
Requires:       ocaml-csexp-devel%{?_isa}
Requires:       ocaml-fmt-devel%{?_isa}
Requires:       ocaml-logs-devel%{?_isa}
Requires:       ocaml-odoc-parser-devel%{?_isa}
Requires:       ocaml-re-devel%{?_isa}
Requires:       ocaml-result-devel%{?_isa}
Requires:       ocaml-version-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/*
%endif
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/{,*/}*.a
%{_libdir}/ocaml/%{srcname}/{,*/}*.cmx
%{_libdir}/ocaml/%{srcname}/{,*/}*.cmxa
%{_libdir}/ocaml/%{srcname}/{,*/}*.cmt
%{_libdir}/ocaml/%{srcname}/{,*/}*.cmti
%{_libdir}/ocaml/%{srcname}/{,*/}*.mli

#-------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
dune build %{?_smp_mflags} --release

%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3732 |21cr|ocaml-mew-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global srcname mew

Name:           ocaml-%{srcname}
Version:        0.1.0
Release:        1
Summary:        Modal Editing Witch
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/kandu/mew
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.02.3
BuildRequires:  ocaml-dune >= 1.1.0
BuildRequires:  ocaml-odoc
BuildRequires:  ocaml-result-devel
BuildRequires:  ocaml-trie-devel

%description
This is the core module of mew, a general modal editing engine generator.
You can provide `Key`, `Mode`, and `Concurrent` modules to define the
real world environment to get the core component of a modal editing
engine.  The core component supports recursive key mappings associated
with user provided modes.  After the core component is generated, you may
extended it with a translator to interpret user key sequences to get a
complete modal editing engine.

%files
%doc CHANGES.md README.md
%license LICENSE
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmxs

#-------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-result-devel%{?_isa}
Requires:       ocaml-trie-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%doc _build/default/_doc/*
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt

#-------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags}
dune build %{?_smp_mflags} @doc

%install
dune install --destdir=%{buildroot}

# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# The tests cannot be run, since Fedora does not yet have ppx_expect.
#
#%%check
#dune runtest




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3733 |21cr|ocaml-mew-vi-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global srcname mew-vi
%global upname  mew_vi

Name:           ocaml-%{srcname}
Version:        0.5.0
Release:        1
Summary:        Modal Editing Witch, VI interpreter
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/kandu/mew_vi
Source0:        %{url}/archive/%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.02.3
BuildRequires:  ocaml-dune >= 1.1.0
BuildRequires:  ocaml-mew-devel >= 0.1.0
BuildRequires:  ocaml-odoc
BuildRequires:  ocaml-react-devel

%description
This is a vi-like modal editing engine generator.  Provide `Key`, `Mode`,
and `Concurrent` modules to define the real world environment to get a
handy vi-like modal editing engine.  Feed the the `i` channel user input
and get the vi actions from the `action_output` channel.

%files
%doc CHANGES.md README.md
%license LICENSE
%dir %{_libdir}/ocaml/%{upname}/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/%{upname}.cma
%{_libdir}/ocaml/%{upname}/%{upname}*.cmi
%{_libdir}/ocaml/%{upname}/%{upname}.cmxs

#---------------------------------------------------------

%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-mew-devel%{?_isa}
Requires:       ocaml-react-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/%{upname}.a
%{_libdir}/ocaml/%{upname}/%{upname}*.cmx
%{_libdir}/ocaml/%{upname}/%{upname}.cmxa
%{_libdir}/ocaml/%{upname}/%{upname}*.cmt

#---------------------------------------------------------

%package        docs
Summary:        Documentation for %{name}
Group:          Documentation
BuildArch:      noarch

%description    docs
Documentation for %{name}.

%files docs
%doc _build/default/_doc/*
%license LICENSE

#---------------------------------------------------------
%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags}
dune build %{?_smp_mflags} @doc

%install
dune install --destdir=%{buildroot}

# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# The tests cannot be run, since Fedora does not yet have ppx_expect.
#
#%%check
#dune runtest





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3734 |21cr|ocaml-mtime-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%undefine _package_note_flags

%global debug_package %{nil}

%global srcname mtime

Name:           ocaml-%{srcname}
Version:        1.4.0
Release:        1
Summary:        Monotonic wall-clock time for OCaml
Group:          Development/OCaml
License:        ISC
URL:            https://erratique.ch/software/mtime
Source0:        %{url}/releases/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-ocamlbuild
BuildRequires:  ocaml-topkg-devel >= 1.0.3

%description
Mtime has platform independent support for monotonic wall-clock time in
pure OCaml.  This time increases monotonically and is not subject to
operating system calendar time adjustments.  The library has types to
represent nanosecond precision timestamps and time spans.

The additional Mtime_clock library provide access to a system
monotonic clock.

Mtime has no dependencies.  Mtime_clock depends on your system library.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/clock/
%dir %{_libdir}/ocaml/%{srcname}/clock/os/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.cma
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.cmi
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.cmxs
%{_libdir}/ocaml/%{srcname}/clock/os/*.js
%{_libdir}/ocaml/%{srcname}/*.ml
%{_libdir}/ocaml/stublibs/*.so

#--------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with docs}
%doc _build/default/_doc/*
%endif
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.a
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.cmx
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.cmxa
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.cmt
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.cmti
%{_libdir}/ocaml/%{srcname}/{,*/,*/*/}*.mli

#--------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
ocaml pkg/pkg.ml build --dev-pkg false --tests true

# Relink with Fedora linker flags
cd _build
ocamlopt -shared -linkall -cclib '%{build_ldflags} -lm' -I src src/mtime.cmxa \
  -g -o src/mtime.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -package \
  compiler-libs.toplevel -I src src/mtime_top.cmxa -g -o src/mtime_top.cmxs
ocamlfind ocamlmklib -ldopt '%{build_ldflags}' -o src-clock/mtime_clock_stubs \
  -g src-clock/mtime_clock_stubs.o
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' \
  src-clock/libmtime_clock_stubs.a -I src-clock src-clock/mtime_clock.cmxa -g \
  -o src-clock/mtime_clock.cmxs
cd -

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/%{srcname}/clock/os
mkdir -p %{buildroot}%{_libdir}/ocaml/%{srcname}/top
cp -p _build/src/mtime.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} _build/pkg/META \
   _build/opam %{buildroot}%{_libdir}/ocaml/%{srcname}
cp -p _build/src/mtime_clock.{cmi,cmti,mli} \
   %{buildroot}%{_libdir}/ocaml/%{srcname}/clock
cp -p _build/src-clock/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,js,mli} \
   %{buildroot}%{_libdir}/ocaml/%{srcname}/clock/os
cp -p _build/src/mtime_top_init.ml %{buildroot}%{_libdir}/ocaml/%{srcname}
cp -p _build/src/mtime_top.{a,cma,cmi,cmt,cmx,cmxa,cmxs} \
   %{buildroot}%{_libdir}/ocaml/%{srcname}/top
mkdir -p %{buildroot}%{_libdir}/ocaml/stublibs
cp -p _build/src-clock/*.so %{buildroot}%{_libdir}/ocaml/stublibs

# Upstream currently does not run any tests
#check
# ocaml pkg/pkg.ml test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3735 |21cr|ocaml-newt-0.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OCaml library for using newt text mode window system
Name:		ocaml-newt
Version:	0.9
Release:	7
License:	LGPLv2+ with exceptions
Group:		Development/OCaml
Url:		http://et.redhat.com/~rjones/ocaml-newt/
Source0:	http://et.redhat.com/~rjones/ocaml-newt/ocaml-newt-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-camlidl-devel
BuildRequires:	newt-devel

%description
This is a set of OCaml bindings to newt.

The newt windowing system is a terminal-based window and widget
library designed for writing applications with a simple, but
user-friendly, interface.  While newt is not intended to provide the
rich feature set advanced applications may require, it has proven to
be flexible enough for a wide range of applications (most notably, Red
Hat's installation process).

%files
%doc COPYING.LIB INSTALL README
%dir %{_libdir}/ocaml/newt
%{_libdir}/ocaml/newt/META
%{_libdir}/ocaml/newt/*.cma
%{_libdir}/ocaml/newt/*.cmi
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc html
%{_libdir}/ocaml/newt/*.a
%{_libdir}/ocaml/newt/*.cmxa
%{_libdir}/ocaml/newt/*.cmx
%{_libdir}/ocaml/newt/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./configure --libdir=%{_libdir}
# Dependencies are broken in the upstream package.
make newt_int.mli
rm -f .depend
make depend
make all
make opt
make doc

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/newt
make install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3736 |21cr|ocaml-ocamlgsl-1.24.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define up_name gsl-ocaml

Summary:	GNU Scientific Library (GSL) for OCaml
Name:		ocaml-ocamlgsl
Version:	1.24.3
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		http://oandrieu.nerim.net/ocaml/gsl/
Source0:	https://github.com/mmottl/gsl-ocaml/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(gsl)

%description
This is an interface to GSL (GNU scientific library), for the
Objective Caml language.

%files
%doc CHANGES* LICENSE* NOTES* README*
%dir %{_libdir}/ocaml/gsl
%{_libdir}/ocaml/gsl/META
%{_libdir}/ocaml/gsl/*.cma
%{_libdir}/ocaml/gsl/*.cmi
%{_libdir}/ocaml/gsl/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc examples
%{_libdir}/ocaml/gsl/*.a
%{_libdir}/ocaml/gsl/*.cmxa
%{_libdir}/ocaml/gsl/*.cmx
%{_libdir}/ocaml/gsl/*.cmt
%{_libdir}/ocaml/gsl/*.cmti
%{_libdir}/ocaml/gsl/*.mli
%{_libdir}/ocaml/gsl/dune-package
%{_libdir}/ocaml/gsl/opam

#----------------------------------------------------------------------------

%prep
%setup -q -n %{up_name}-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3737 |21cr|ocaml-ocamlnet-4.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_name ocamlnet

%define ocamlnet_datadir %{_datadir}/%{name}

Summary:	OCaml internet protocols and conventions
Name:		ocaml-%{up_name}
Version:	4.1.9
Release:	1
License:	BSD
Group:		Development/OCaml
Url:		http://projects.camlcity.org/projects/ocamlnet.html
Source0:	http://download.camlcity.org/download/ocamlnet-%{version}.tar.gz
Patch0:		0001-Build-ocamlrpcgen-as-native-code.patch
BuildRequires:	ocaml
BuildRequires:	camlp4
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-lablgtk2-devel
BuildRequires:	ocaml-pcre-devel
BuildRequires:	ocaml-camlzip-devel
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	krb5-devel
Requires:	ocaml-pcre

%description
Ocamlnet is an ongoing effort to collect modules, classes and
functions that are useful to implement network protocols. Since
version 2.2, Ocamlnet incorporates the Equeue, RPC, and Netclient
libraries, so it now really a big player.

In detail, the following features are available:

 * netstring is about processing strings that occur in network
   context. Features: MIME encoding/decoding, Date/time parsing,
   Character encoding conversion, HTML parsing and printing, URL
   parsing and printing, OO-representation of channels, and a lot
   more.

 * netcgi1 and netcgi2 focus on portable web applications. netcgi1 is
   the older, backward-compatible version, whereas netcgi2 bases on a
   revised design, and is only partly backward-compatible. Supported
   are CGI, FastCGI, AJP (mod_jk), and SCGI.

 * rpc implements ONCRPC (alias SunRPC), the remote procedure call
   technology behind NFS and other Unix services.

 * netplex is a generic server framework. It can be used to build
   stand-alone server programs from individual components like those
   from netcgi2, nethttpd, and rpc.

 * netclient implements clients for HTTP (version 1.1, of course), FTP
   (currently partially), and Telnet.

 * equeue is an event queue used for many protocol implementations. It
   makes it possible to run several clients and/or servers in parallel
   without having to use multi-threading or multi-processing.

 * shell is about calling external commands like a Unix shell does.

 * netshm provides shared memory for IPC purposes.

 * netsys contains bindings for system functions missing in core O'Caml.

 * smtp and pop are two further client implementations for the SMTP
   and POP3 protocols.

%files
%doc ChangeLog INSTALL LICENSE LICENSE.GPL LICENSE.LGPL RELNOTES
%{_bindir}/netplex-admin
%{_bindir}/ocamlrpcgen
%{_libdir}/ocaml/equeue
%{_libdir}/ocaml/equeue-gtk2
%{_libdir}/ocaml/equeue-tcl
%{_libdir}/ocaml/netcamlbox
%{_libdir}/ocaml/netcgi2
%{_libdir}/ocaml/netcgi2-plex
%{_libdir}/ocaml/netclient
%{_libdir}/ocaml/netgss-system
%{_libdir}/ocaml/netmulticore
%{_libdir}/ocaml/netplex
%{_libdir}/ocaml/netshm
%{_libdir}/ocaml/netstring
%{_libdir}/ocaml/netstring-pcre
%{_libdir}/ocaml/netsys
%{_libdir}/ocaml/nettls-gnutls
%{_libdir}/ocaml/netunidata
%{_libdir}/ocaml/rpc
%{_libdir}/ocaml/rpc-auth-local
%{_libdir}/ocaml/rpc-generator
%{_libdir}/ocaml/shell
%{_libdir}/ocaml/netzip
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner
%{ocamlnet_datadir}/*
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.cmx
%exclude %{_libdir}/ocaml/*/*.o
%exclude %{_libdir}/ocaml/*/*.mli

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-pcre-devel

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%doc doc/html-main
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.o
%{_libdir}/ocaml/*/*.mli
%exclude %{_libdir}/ocaml/nethttpd

#----------------------------------------------------------------------------

%package nethttpd
Summary:	Ocamlnet HTTP daemon
License:	GPLv2+
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description nethttpd
Nethttpd is a web server component (HTTP server implementation). It
can be used for web applications without using an extra web server, or
for serving web services.

%files nethttpd
%{_libdir}/ocaml/nethttpd
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.mli

#----------------------------------------------------------------------------

%package nethttpd-devel
Summary:	Development files for %{name}-nethttpd
License:	GPLv2+
Group:		Development/OCaml
Requires:	%{name}-nethttpd = %{EVRD}

%description nethttpd-devel
The %{name}-nethttpd-devel package contains libraries and signature
files for developing applications that use %{name}-nethttpd.

%files nethttpd-devel
%{_libdir}/ocaml/nethttpd/*.a
%{_libdir}/ocaml/nethttpd/*.cmxa
%{_libdir}/ocaml/nethttpd/*.mli

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{up_name}-%{version}

# need for configure
echo "version: \"%{version}\"" > ../opam

%build
# not an autoconf one
./configure \
  -enable-tcl \
  -bindir %{_bindir} \
  -datadir %{ocamlnet_datadir} \
  -prefer-netcgi2 \
  -with-nethttpd \
  -disable-apache \
  -enable-gnutls \
  -enable-gssapi \
  -enable-gtk2 \
  -enable-pcre \
  -enable-zip

# This is a hack caused by the ocamlrpcgen patch.  Because "make all"
# no longer builds ocamlrpcgen (it is now built by "make opt") but
# some other parts of the build depend on this program, we have to run
# make opt first and ignore the result.  Hopefully we'll get a better
# result when upstream integrate the patch.  RWMJ 2021-01.
make opt ||:

make all

make opt

%install
install -d -m 755 %{buildroot}/%{_libdir}/ocaml
install -d -m 755 %{buildroot}/%{_libdir}/ocaml/stublibs
make install \
  OCAMLFIND_INSTFLAGS="-destdir %{buildroot}/%{_libdir}/ocaml" \
  OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml \
  DESTDIR="%{buildroot}"

# cgi/META conflicts with mod_caml
rm -rf %{buildroot}/%{_libdir}/ocaml/cgi

# rpc-generator/dummy.mli is empty and according to Gerd Stolpmann can
# be deleted safely.  This avoids an rpmlint warning.
rm -f %{buildroot}/%{_libdir}/ocaml/rpc-generator/dummy.mli

# Strip libraries.
strip %{buildroot}/%{_libdir}/ocaml/stublibs/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3738 |21cr|ocaml-ode-0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	OCaml bindings to the Open Dynamics Engine (ODE)
Name:		ocaml-ode
Version:	0.6
Release:	2
License:	LGPLv2.1+ with exceptions
Group:		Development/OCaml
Url:		http://www.linux-nantes.org/~fmonnier/OCaml/ODE/
Source0:	https://github.com/fccm/OCamlODE/archive/v%{version}.tar.gz
Patch1:		ocamlode-0.5-r4.demo_exec.patch
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ode-devel

%description
This is a set of bindings in Objective Caml for the Open Dynamics Engine,
ODE: http://www.ode.org/.

%files
%doc LICENSE_BSD.txt LICENSE_GPL.txt LICENSE_LGPL.txt CHANGES.txt README.txt
%dir %{_libdir}/ocaml/ode
%{_libdir}/ocaml/ode/META
%{_libdir}/ocaml/ode/*.cma
%{_libdir}/ocaml/ode/*.cmi
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc doc examples
%{_libdir}/ocaml/ode/*.a
%{_libdir}/ocaml/ode/*.cmxa
%{_libdir}/ocaml/ode/*.cmx
%{_libdir}/ocaml/ode/*.mli

#----------------------------------------------------------------------------

%prep
%setup -qn OCamlODE-%{version}
%patch1 -p0

%build
make all
make doc
mkdir examples
mv drawstuff.ml drawstuff.make demo_*.ml demo_exec.sh examples/

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/ode
ocamlfind install ode META ode.cmi *.{mli,cma,cmxa,cmx,a,so}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3739 |21cr|ocaml-odoc-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags

%global debug_package %{nil}

%global srcname odoc

Name:           ocaml-%{srcname}
Version:        2.1.0
Release:        1
Summary:        Documentation compiler for OCaml and Reason
Group:          Development/OCaml
License:        ISC
URL:            https://github.com/ocaml/odoc
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:  jq-devel
BuildRequires:  ocaml >= 4.02.0
BuildRequires:  ocaml-astring-devel
BuildRequires:  ocaml-bisect-ppx-devel > 2.5.0
BuildRequires:  ocaml-bos-devel
BuildRequires:  ocaml-cmdliner-devel >= 1.0.0
BuildRequires:  ocaml-cppo >= 1.1.0
BuildRequires:  ocaml-dune >= 2.9.1
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-fmt-devel
BuildRequires:  ocaml-fpath-devel
BuildRequires:  ocaml-mdx-devel
BuildRequires:  ocaml-odoc-parser-devel >= 0.9.0
BuildRequires:  ocaml-ppx-expect-devel
BuildRequires:  ocaml-result-devel
BuildRequires:  ocaml-sexplib0-devel
BuildRequires:  ocaml-tyxml-devel >= 4.3.0
BuildRequires:  ocaml-yojson-devel

%description
This package contains odoc, a documentation generator for OCaml and
Reason.  It reads doc comments, delimited with `(** ... *)`, and outputs
HTML.  Text inside doc comments is marked up in ocamldoc syntax.

Odoc's main advantage over ocamldoc is an accurate cross-referencer,
which handles the complexity of the OCaml module system.  Odoc also
offers a good opportunity to improve HTML output compared to ocamldoc,
but this is very much a work in progress.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%{_bindir}/odoc
%{_datadir}/odoc/
%{_mandir}/man1/odoc.1*
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/document/
%dir %{_libdir}/ocaml/%{srcname}/examples/
%dir %{_libdir}/ocaml/%{srcname}/html/
%dir %{_libdir}/ocaml/%{srcname}/latex/
%dir %{_libdir}/ocaml/%{srcname}/loader/
%dir %{_libdir}/ocaml/%{srcname}/manpage/
%dir %{_libdir}/ocaml/%{srcname}/model/
%dir %{_libdir}/ocaml/%{srcname}/model_desc/
%dir %{_libdir}/ocaml/%{srcname}/ocamlary/
%dir %{_libdir}/ocaml/%{srcname}/odoc/
%dir %{_libdir}/ocaml/%{srcname}/xref2/
%dir %{_libdir}/ocaml/%{srcname}/xref_test/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*/*.cma
%{_libdir}/ocaml/%{srcname}/*/*.cmi
%{_libdir}/ocaml/%{srcname}/*/*.cmxs

#--------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-fmt-devel%{?_isa}
Requires:       ocaml-fpath-devel%{?_isa}
Requires:       ocaml-odoc-parser-devel%{?_isa}
Requires:       ocaml-result-devel%{?_isa}
Requires:       ocaml-tyxml-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*/*.a
%{_libdir}/ocaml/%{srcname}/*/*.cmx
%{_libdir}/ocaml/%{srcname}/*/*.cmxa
%{_libdir}/ocaml/%{srcname}/*/*.cmt
%{_libdir}/ocaml/%{srcname}/*/*.cmti
%{_libdir}/ocaml/%{srcname}/*/*.ml
%{_libdir}/ocaml/%{srcname}/*/*.mli

#--------------------------------------------------------------

%package        doc
Summary:        Documentation for %{name}
Group:          Documentation
BuildArch:      noarch

%description    doc
Documentation for %{name}.

%files doc
%doc _build/default/_doc/_html/*
%license LICENSE.md

#--------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
dune build %{?_smp_mflags} --verbose --release
dune build %{?_smp_mflags} --release @doc

%install
dune install --destdir=%{buildroot}

# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Install the man page
mkdir -p %{buildroot}%{_mandir}/man1
_build/install/default/bin/odoc --help groff > %{buildroot}%{_mandir}/man1/odoc.1

%check
dune runtest --release




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3740 |21cr|ocaml-odoc-parser-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags

%global srcname odoc-parser

# Break a circular dependency by not building documentation
%bcond_with doc

Name:           ocaml-%{srcname}
Version:        1.0.0
Release:        1
Summary:        Parser for OCaml documentation comments
Group:          Development/OCaml
License:        ISC
URL:            https://ocaml-doc.github.io/odoc-parser/
Source0:        https://github.com/ocaml-doc/%{srcname}/releases/download/%{version}/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.02.0
BuildRequires:  ocaml-astring-devel
BuildRequires:  ocaml-dune >= 2.8
BuildRequires:  ocaml-ppx-expect-devel
BuildRequires:  ocaml-result-devel
BuildRequires:  ocaml-sexplib0-devel

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Odoc-parser is a parser for odoc markup, which is an extension of the
original markup language parsed by ocamldoc.

OCaml code can contain specially formatted comments that are used to
document the interfaces of modules.  These comments are delimited by
`(**` and `*)`.  This parser is intended to be used to parse the
contents of these comments.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs

#----------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-astring-devel%{?_isa}
Requires:       ocaml-result-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/*
%endif
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli

#----------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
dune build %{?_smp_mflags} --release @install

%if %{with doc}
dune build %{?_smp_mflags} @doc
cd _build/default/doc
odoc html -o . -I . odoc_parser.odoc
odoc html -o . -I . page-index.odoc
odoc html -o . -I . page-contributing.odoc
odoc support-files -o odoc-parser
cd -
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3741 |21cr|ocaml-ogg-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OCaml bindings for the Ogg bitstream library
Name:		ocaml-ogg
Version:	0.7.1
Release:	1
License:	LGPLv2.1+ with exceptions
Group:		Development/OCaml
Url:		http://sourceforge.net/projects/savonet/files/
Source0:	https://github.com/savonet/ocaml-ogg/archive/v%{version}.tar.gz?/ocaml-ogg-%{version}.tar.gz
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(ogg)

%description
OCaml bindings for the Ogg bitstream library, libogg is a library
for manipulating ogg bitstreams. It handles both making ogg bitstreams
and getting packets from ogg bitstreams.

%files
%doc COPYING CHANGES README*
%dir %{_libdir}/ocaml/ogg
%{_libdir}/ocaml/ogg/META
%{_libdir}/ocaml/ogg/*.cma
%{_libdir}/ocaml/ogg/*.cmi
%{_libdir}/ocaml/ogg/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*
%{_libdir}/ocaml/ogg/decoder/*.cma
%{_libdir}/ocaml/ogg/decoder/*.cmi
%{_libdir}/ocaml/ogg/decoder/*.cmxs

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/ogg/*.a
%{_libdir}/ocaml/ogg/*.cmx
%{_libdir}/ocaml/ogg/*.cmxa
%{_libdir}/ocaml/ogg/*.cmt
%{_libdir}/ocaml/ogg/*.cmti
%{_libdir}/ocaml/ogg/*.mli
%{_libdir}/ocaml/ogg/*.h
%{_libdir}/ocaml/ogg/dune-package
%{_libdir}/ocaml/ogg/opam
%{_libdir}/ocaml/ogg/decoder/*.a
%{_libdir}/ocaml/ogg/decoder/*.cmx
%{_libdir}/ocaml/ogg/decoder/*.cmxa
%{_libdir}/ocaml/ogg/decoder/*.cmt
%{_libdir}/ocaml/ogg/decoder/*.cmti
%{_libdir}/ocaml/ogg/decoder/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3742 |21cr|ocaml-omake-0.10.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Build system with automated dependency analysis
Name:		ocaml-omake
Version:	0.10.5
Release:	1
License:	LGPLv2+
Group:		Development/OCaml
Url:		http://omake.metaprl.org/download.html
Source0:	http://download.camlcity.org/download/omake-%{version}.tar.gz
BuildRequires:	chrpath
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
Conflicts:	osh
# omake can be used on non-OCaml projects (RHBZ#548536).
Provides:	omake = %{EVRD}

%description
OMake is a build system designed for scalability and portability. It
uses a syntax similar to make utilities you may have used, but it
features many additional enhancements, including the following.

 * Support for projects spanning several directories or directory
   hierarchies.

 * Fast, reliable, automated, scriptable dependency analysis using MD5
   digests, with full support for incremental builds.

 * Dependency analysis takes the command lines into account — whenever
   the command line used to build a target changes, the target is
   considered out-of-date.

 * Fully scriptable, includes a library that providing support for
   standard tasks in C, C++, OCaml, and LaTeX projects, or a mixture
   thereof.

%files
%license LICENSE LICENSE.OMake
%doc ChangeLog
%doc doc/txt/omake-doc.txt doc/html/
%{_libdir}/omake/
%{_bindir}/omake
%{_bindir}/osh
%{_mandir}/man1/omake.1.*
%{_mandir}/man1/osh.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n omake-%{version}

#set right install path for files (via variable not work 'export LIBDIR=%{_libdir}' and other)
sed -i 's|$(INSTALL_LIBDIR)|%{buildroot}%{_libdir}|g' OMakefile
sed -i 's|$(INSTALL_MANDIR)|%{buildroot}%{_mandir}|g' doc/OMakefile

%build
./configure -prefix %{_prefix}
make all LIBDIR=%{_libdir} MANDIR=%{_mandir}

%install
make install INSTALL_ROOT=%{buildroot} LIBDIR=%{_libdir} MANDIR=%{_mandir}

chmod 0755 %{buildroot}%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3743 |21cr|ocaml-parmap-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags
%global srcname parmap

Name:           ocaml-%{srcname}
Version:        1.2.4
Release:        1
Summary:        OCaml library for exploiting multicore architectures
Group:          Development/OCaml
# The usual OCaml linking exception applies
License:        LGPLv2+ with exceptions
URL:            https://rdicosmo.github.io/parmap/
Source0:        https://github.com/rdicosmo/parmap/releases/download/%{version}/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.03
BuildRequires:  ocaml-csexp-devel
BuildRequires:  ocaml-dune-devel
BuildRequires:  ocaml-graphics-devel
BuildRequires:  ocaml-odoc
BuildRequires:  ocaml-result-devel

%description
Parmap is a minimalistic library for exploiting multicore architectures
in OCaml programs with minimal modifications: if you want to use your
many cores to accelerate an operation which happens to be a map, fold or
map/fold (map-reduce), just use Parmap's parmap, parfold and parmapfold
primitives in place of the standard List.map and friends, and specify
the number of subprocesses to use with the optional parameter ~ncores.

%files
%doc AUTHORS CHANGES README.md
%license LICENSE
%dir %{_libdir}/ocaml/parmap
%{_libdir}/ocaml/parmap/META
%{_libdir}/ocaml/parmap/*.cma
%{_libdir}/ocaml/parmap/*.cmi
%{_libdir}/ocaml/parmap/*.cmxs
%{_libdir}/ocaml/stublibs/dllparmap_stubs.so

#---------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%doc _build/default/_doc/*
%{_libdir}/ocaml/parmap/dune-package
%{_libdir}/ocaml/parmap/opam
%{_libdir}/ocaml/parmap/*.a
%{_libdir}/ocaml/parmap/*.cmxa
%{_libdir}/ocaml/parmap/*.cmx
%{_libdir}/ocaml/parmap/*.cmt
%{_libdir}/ocaml/parmap/*.cmti
%{_libdir}/ocaml/parmap/*.mli

#---------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p0

# Some tests exhaust memory on the 32-bit builders; scale them down
# See https://github.com/rdicosmo/parmap/issues/92
%if 0%{?__isa_bits} == 32
sed -i 's/10000000/1000000/' tests/{float,simple}scale.ml
%endif

%build
dune build %{?_smp_mflags} --verbose --profile release
dune build @doc

# Relink the stublibs with $RPM_LD_FLAGS.
cd _build/default/src
ocamlmklib -g -ldopt '%{build_ldflags}' -o parmap_stubs \
  $(ar t libparmap_stubs.a)
cd -

%install
dune install --destdir=%{buildroot}

# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3744 |21cr|ocaml-pcre-7.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Perl compatibility regular expressions for OCaml
Name:		ocaml-pcre
Version:	7.5.0
Release:	2
License:	LGPLv2.1+
Group:		Development/OCaml
URL:		http://mmottl.github.io/pcre-ocaml/
Source0:	https://github.com/mmottl/pcre-ocaml/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(libpcre)

%description
This OCaml-library interfaces the PCRE (Perl-compatibility regular
expressions) library which is written in C. it can be used for matching
regular expressions which are written in "PERL"-style.

Searching for, replacing or splitting text should become much easier with
this library.

%files
%doc %{_docdir}/pcre
%dir %{_libdir}/ocaml/pcre
%{_libdir}/ocaml/pcre/*.cmt
%{_libdir}/ocaml/pcre/*.cmti
%{_libdir}/ocaml/pcre/*.cmi
%{_libdir}/ocaml/pcre/*.cma
%{_libdir}/ocaml/pcre/*.cmxs
%{_libdir}/ocaml/pcre/META
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	pkgconfig(libpcre)
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%doc examples/
%{_libdir}/ocaml/pcre/*.a
%{_libdir}/ocaml/pcre/*.cmxa
%{_libdir}/ocaml/pcre/*.ml
%{_libdir}/ocaml/pcre/*.mli
%{_libdir}/ocaml/pcre/*.cmx
%{_libdir}/ocaml/pcre/dune-package
%{_libdir}/ocaml/pcre/opam
#----------------------------------------------------------------------------

%prep
%setup -q -n pcre-ocaml-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot} --docdir=%{_docdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3745 |21cr|ocaml-pgocaml-introduction-0.94-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Brief Introduction to PG'OCaml
Name:		ocaml-pgocaml-introduction
Version:	0.94
Release:	3
License:	CC-by-sa-3.0
Group:		Development/OCaml
Url:		http://www.dse.nl/~dario/projects/pgoctut/
# Real:		http://www.dse.nl/~dario/projects/pgoctut/pgoctut.pdf
Source0:	http://www.dse.nl/~dario/projects/pgoctut/pgoctut.pdf.tar.lzma
BuildArch:	noarch

%description
PG'OCaml, by Richard W. M. Jones, provides an interface to PostgreSQL
databases for OCaml applications. It uses  Camlp4 to extend the OCaml
syntax, enabling one to directly embed SQL statements inside the OCaml
code. Moreover, it uses the describe feature of PostgreSQL to obtain
type information about the database. This allows PG'OCaml to check at
compile-time if the programme is indeed consistent with the database
structure. This type-safe database access is the primary advantage that
PG'OCaml has over other PostgreSQL bindings for OCaml.

Unfortunately, PG'OCaml is rather lacking on the documentation front.
This document aims to fill that gap, by providing an overview of the
capabilities of the library, usage examples, and solutions to potential
pitfalls. Moreover, it also addresses the installation of PG'OCaml,
how to compile programmes that make use of the library, and the
correspondence between PostgreSQL data types and their OCaml
counterparts.

%files
%dir %{_datadir}/doc/%{name}
%{_datadir}/doc/%{name}/pgoctut.pdf

#----------------------------------------------------------------------------

%prep
lzcat %{SOURCE0} > pgoctut.pdf

%build

%install
mkdir -p %{buildroot}%{_datadir}/doc/%{name}
install -d -m 755 %{buildroot}%{_datadir}/doc/%{name}
install -m 644 pgoctut.pdf %{buildroot}%{_datadir}/doc/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3746 |21cr|ocaml-pomap-4.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Library for maintaining partially ordered maps
Name:		ocaml-pomap
Version:	4.1.1
Release:	1
License:	LGPLv2.1+
Group:		Development/OCaml
Url:		http://www.ocaml.info/home/ocaml_sources.html#pomap
Source0:	https://github.com/mmottl/pomap/archive/%{version}.tar.gz?/pomap-%{version}.tar.gz
BuildRequires:	gzip
BuildRequires:	ocaml
BuildRequires:	dune
BuildRequires:	ocaml-findlib

%description
The Pomap-library implements an ADT that maintains maps of partially
ordered elements. Whereas a total order allows you to say whether some
element is lower, equal or greater than another one, partial orders also
allow for a "don't know"-case.

%files
%license LICENSE.md
%dir %{_libdir}/ocaml/pomap
%{_libdir}/ocaml/pomap/META
%{_libdir}/ocaml/pomap/*.cma
%{_libdir}/ocaml/pomap/*.cmi
%{_libdir}/ocaml/pomap/*.cmxs

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc CHANGES.md README.md
%doc examples
%license LICENSE.md
%{_libdir}/ocaml/pomap/*.a
%{_libdir}/ocaml/pomap/*.cmx
%{_libdir}/ocaml/pomap/*.cmxa
%{_libdir}/ocaml/pomap/*.cmt
%{_libdir}/ocaml/pomap/*.cmti
%{_libdir}/ocaml/pomap/*.mli
%{_libdir}/ocaml/pomap/opam
%{_libdir}/ocaml/pomap/dune-package

#----------------------------------------------------------------------------

%prep
%setup -q -n pomap-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3747 |21cr|ocaml-ppx-assert-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global srcname ppx-assert
%global upname  ppx_assert

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Assert-like extension nodes that raise useful errors on failure
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppx-cold-devel >= 0.15
BuildRequires:  ocaml-ppx-compare-devel >= 0.15
BuildRequires:  ocaml-ppx-here-devel >= 0.15
BuildRequires:  ocaml-ppx-sexp-conv-devel >= 0.15
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Ppx_assert is a ppx rewriter that defines assert-like extension nodes
that raise useful errors on failure.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/runtime-lib/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/ppx.exe
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*/*.cma
%{_libdir}/ocaml/%{upname}/*/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs
%{_libdir}/ocaml/%{upname}/*/*.cmxs

#--------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-ppx-compare-devel%{?_isa}
Requires:       ocaml-ppx-here-devel%{?_isa}
Requires:       ocaml-ppx-sexp-conv-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*/*.a
%{_libdir}/ocaml/%{upname}/*/*.cmx
%{_libdir}/ocaml/%{upname}/*/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli
%{_libdir}/ocaml/%{upname}/*/*.cmt
%{_libdir}/ocaml/%{upname}/*/*.cmti
%{_libdir}/ocaml/%{upname}/*/*.mli

#--------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3748 |21cr|ocaml-ppx-base-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global srcname ppx-base
%global upname  ppx_base

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Base set of OCaml ppx rewriters
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppx-cold-devel >= 0.15
BuildRequires:  ocaml-ppx-compare-devel >= 0.15
BuildRequires:  ocaml-ppx-enumerate-devel >= 0.15
BuildRequires:  ocaml-ppx-hash-devel >= 0.15
BuildRequires:  ocaml-ppx-sexp-conv-devel >= 0.15
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Ppx_base is the set of ppx rewriters used for Base.  Note that Base
doesn't need ppx to build; it is only used as a verification tool.

%files
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%{_bindir}/ppx-base
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/ppx.exe
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs

#----------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-ppx-cold-devel%{?_isa}
Requires:       ocaml-ppx-compare-devel%{?_isa}
Requires:       ocaml-ppx-enumerate-devel%{?_isa}
Requires:       ocaml-ppx-hash-devel%{?_isa}
Requires:       ocaml-ppx-sexp-conv-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt

#----------------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3749 |21cr|ocaml-ppx-cold-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global srcname ppx-cold
%global upname  ppx_cold

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        OCaml definition of [@@cold] attribute
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Ppx_cold translates [@@cold] attributes to [@@inline never]
[@@local never] [@@specialise never].  See the discussion in
https://github.com/ocaml/ocaml/issues/8563.

%files
%doc README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/ppx.exe
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs

#-----------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli

#-----------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3750 |21cr|ocaml-ppx-compare-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%ifnarch %{ocaml_native_compiler}
%global debug_package %{nil}
%endif

# Break a circular dependency on ocaml-odoc
%bcond_with doc

# This package is now a transitive dependency of ocaml-ppx-inline-test, so using
# it to test this package creates a circular dependency.
%bcond_with tests

%global srcname ppx-compare
%global upname  ppx_compare

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Generate comparison functions from types
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15.0
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%if %{with tests}
BuildRequires:  ocaml-ppx-inline-test-devel
%endif

%description
Ppx_compare is a ppx rewriter that derives comparison and equality
functions from type representations.  The scaffolded functions are
usually much faster than OCaml's `Pervasives.compare` and
`Pervasives.(=)`.  Scaffolding functions also give more flexibility by
allowing them to be overridden for a specific type, and more safety by
making sure that only comparable values are compared.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/expander/
%dir %{_libdir}/ocaml/%{upname}/runtime-lib/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*/*.cma
%{_libdir}/ocaml/%{upname}/*/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs
%{_libdir}/ocaml/%{upname}/*/*.cmxs

#---------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*/*.a
%{_libdir}/ocaml/%{upname}/*/*.cmx
%{_libdir}/ocaml/%{upname}/*/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli
%{_libdir}/ocaml/%{upname}/*/*.cmt
%{_libdir}/ocaml/%{upname}/*/*.cmti
%{_libdir}/ocaml/%{upname}/*/*.mli


#---------------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version} -p1

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%if %{with tests}
# The tests require a native build.
%check
dune runtest --release
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3751 |21cr|ocaml-ppx-enumerate-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global srcname ppx-enumerate
%global upname  ppx_enumerate

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Generate a list containing all values of a finite type
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Ppx_enumerate is a ppx rewriter which generates a definition for the
list of all values of a type (for a type which has only finitely many
values).

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/runtime-lib/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/runtime-lib/*.cma
%{_libdir}/ocaml/%{upname}/runtime-lib/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs
%{_libdir}/ocaml/%{upname}/runtime-lib/*.cmxs

#---------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/runtime-lib/*.a
%{_libdir}/ocaml/%{upname}/runtime-lib/*.cmx
%{_libdir}/ocaml/%{upname}/runtime-lib/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli
%{_libdir}/ocaml/%{upname}/runtime-lib/*.cmt

#---------------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3752 |21cr|ocaml-ppx-expect-0.15.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%undefine _package_note_flags
# TESTING NOTE: We cannot run the tests, because they requires ppx_jane.
# We do not yet have that package in Fedora.  Even if we did, it requires this
# package to build, so we would introduce a circular dependency.

# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global upname  ppx_expect

Name:           ocaml-ppx-expect
Version:        0.15.0
Release:        5
Summary:        Framework for writing tests in OCaml
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/ppx_expect
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppx-here-devel >= 0.15
BuildRequires:  ocaml-ppx-inline-test-devel >= 0.15
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0
BuildRequires:  ocaml-re-devel >= 1.8.0
BuildRequires:  ocaml-stdio-devel >= 0.15

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Ppx_expect is a framework for writing tests in OCaml, similar to Cram
(https://bitheap.org/cram/).  Ppx_expect mimics the existing inline
tests framework with the `let_expect_test` construct.  The body of an
expect-test can contain output-generating code, interleaved with
`_expect` extension expressions to denote the expected output.

When run, these tests will pass iff the output matches what was
expected.  If a test fails, a corrected file with the suffix
".corrected" will be produced with the actual output, and the
`inline_tests_runner` will output a diff.

%files
%doc CHANGES.md README.org
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/collector/
%dir %{_libdir}/ocaml/%{upname}/common/
%dir %{_libdir}/ocaml/%{upname}/config/
%dir %{_libdir}/ocaml/%{upname}/config_types/
%dir %{_libdir}/ocaml/%{upname}/evaluator/
%dir %{_libdir}/ocaml/%{upname}/matcher/
%dir %{_libdir}/ocaml/%{upname}/payload/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/ppx.exe
%{_libdir}/ocaml/%{upname}/*/*.js
%{_libdir}/ocaml/%{upname}/{,*/}*.cma
%{_libdir}/ocaml/%{upname}/{,*/}*.cmi
%{_libdir}/ocaml/%{upname}/{,*/}*.cmxs
%{_libdir}/ocaml/stublibs/dllexpect_test_collector_stubs.so

#--------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppx-here-devel%{?_isa}
Requires:       ocaml-ppx-inline-test-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}
Requires:       ocaml-re-devel%{?_isa}
Requires:       ocaml-stdio-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/{,*/}*.a
%{_libdir}/ocaml/%{upname}/{,*/}*.cmx
%{_libdir}/ocaml/%{upname}/{,*/}*.cmxa
%{_libdir}/ocaml/%{upname}/{,*/}*.cmt
%{_libdir}/ocaml/%{upname}/{,*/}*.cmti
%{_libdir}/ocaml/%{upname}/{,*/}*.mli
#--------------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

# Relink the stublib with Fedora linker flags
cd _build/default/collector
ocamlmklib -g -ldopt '%{build_ldflags}' -o expect_test_collector_stubs \
  $(ar t libexpect_test_collector_stubs.a)
cd -

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3753 |21cr|ocaml-ppx-hash-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global srcname ppx-hash
%global upname  ppx_hash

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Generate hash functions from type expressions and definitions
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppx-compare-devel >= 0.15
BuildRequires:  ocaml-ppx-sexp-conv-devel >= 0.15
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Ppx_hash is a ppx rewriter that generates hash functions from type
expressions and definitions.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/expander/
%dir %{_libdir}/ocaml/%{upname}/runtime-lib/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*/*.cma
%{_libdir}/ocaml/%{upname}/*/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs
%{_libdir}/ocaml/%{upname}/*/*.cmxs

#--------------------------------------------------------

%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppx-compare-devel%{?_isa}
Requires:       ocaml-ppx-sexp-conv-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*/*.a
%{_libdir}/ocaml/%{upname}/*/*.cmx
%{_libdir}/ocaml/%{upname}/*/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli
%{_libdir}/ocaml/%{upname}/*/*.cmt
%{_libdir}/ocaml/%{upname}/*/*.cmti
%{_libdir}/ocaml/%{upname}/*/*.mli

#--------------------------------------------------------
%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3754 |21cr|ocaml-ppx-here-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags

# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global srcname ppx-here
%global upname  ppx_here

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Expands [@here] into its location
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Ppx_here is a ppx rewriter that defines an extension node whose value is
its source position.

%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
# We do not run the tests from a directory named ppx containing ppx_here.
# Adapt the test to running inside of the ppx_here directory.
sed -e 's,dummy\.ml\.pp,dummy.pp.ml,g' \
    -e 's,\\"ppx/ppx_here/test/dummy\.mll\\",test/dummy.mll,' \
    -i test/dune

dune runtest --release

%files
%doc README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/expander/
%dir %{_libdir}/ocaml/%{upname}/runtime-lib/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/ppx.exe
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*/*.cma
%{_libdir}/ocaml/%{upname}/*/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs
%{_libdir}/ocaml/%{upname}/*/*.cmxs

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*/*.a
%{_libdir}/ocaml/%{upname}/*/*.cmx
%{_libdir}/ocaml/%{upname}/*/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli
%{_libdir}/ocaml/%{upname}/*/*.cmt
%{_libdir}/ocaml/%{upname}/*/*.cmti
%{_libdir}/ocaml/%{upname}/*/*.mli


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3755 |21cr|ocaml-ppx-inline-test-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
# TESTING NOTE: The ppx_jane module is needed to run the tests.  However,
# ppx_jane transitively requires this module.  Therefore, we cannot run the
# tests at all until we are able to add ppx_jane to Fedora, and even then we
# will only be able to run the tests in non-bootstrap mode.

# Break a circular dependency on ocaml-odoc
%bcond_with doc

%global srcname ppx-inline-test
%global upname  ppx_inline_test

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Syntax extension for writing inline tests in OCaml code
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0
BuildRequires:  ocaml-time-now-devel >= 0.15

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
Ppx_inline_test is a syntax extension for writing inline tests in OCaml
code.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/config/
%dir %{_libdir}/ocaml/%{upname}/drop/
%dir %{_libdir}/ocaml/%{upname}/libname/
%dir %{_libdir}/ocaml/%{upname}/runner/
%dir %{_libdir}/ocaml/%{upname}/runner/lib/
%dir %{_libdir}/ocaml/%{upname}/runtime-lib/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/ppx.exe
%{_libdir}/ocaml/%{upname}/drop/ppx.exe
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*/*.cma
%{_libdir}/ocaml/%{upname}/*/*.cmi
%{_libdir}/ocaml/%{upname}/runner/lib/*.cma
%{_libdir}/ocaml/%{upname}/runner/lib/*.cmi
%{_libdir}/ocaml/%{upname}/runner/lib/*.js
%{_libdir}/ocaml/%{upname}/*.cmxs
%{_libdir}/ocaml/%{upname}/*/*.cmxs
%{_libdir}/ocaml/%{upname}/runner/lib/*.cmxs
%{_libdir}/ocaml/stublibs/dll%{upname}_runner_lib_stubs.so


#----------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}
Requires:       ocaml-time-now-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*/*.a
%{_libdir}/ocaml/%{upname}/*/*.cmx
%{_libdir}/ocaml/%{upname}/*/*.cmxa
%{_libdir}/ocaml/%{upname}/runner/lib/*.a
%{_libdir}/ocaml/%{upname}/runner/lib/*.cmx
%{_libdir}/ocaml/%{upname}/runner/lib/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli
%{_libdir}/ocaml/%{upname}/*/*.cmt
%{_libdir}/ocaml/%{upname}/*/*.cmti
%{_libdir}/ocaml/%{upname}/*/*.mli
%{_libdir}/ocaml/%{upname}/runner/lib/*.cmt

#----------------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

# Relink the stublib with Fedora link flags
pushd _build/default/runner/lib
ocamlmklib -g -ldopt "%{build_ldflags}" -o %{upname}_runner_lib_stubs \
  $(ar t lib%{upname}_runner_lib_stubs.a)
popd

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3756 |21cr|ocaml-ppx-optcomp-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

# Break a circular dependency on ocaml-odoc
%bcond_with doc

# This package is required by ocaml-time-now, which is required by
# ocaml-ppx-inline-test.  This package requires ocaml-ppx-inline-test to run
# its tests.  We break the circular dependency here.
%bcond_with test

%global srcname ppx-optcomp
%global upname  ppx_optcomp

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Optional compilation for OCaml
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0
BuildRequires:  ocaml-stdio-devel >= 0.15

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%if %{with test}
BuildRequires:  ocaml-ppx-inline-test-devel
%endif

%description
Ppx_optcomp provides optional compilation for OCaml.  It is a tool used
to handle optional compilations of pieces of code depending of the word
size, the version of the compiler, etc.  The syntax is based on OCaml
item extension nodes, with keywords similar to cpp.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs

#-------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}
Requires:       ocaml-stdio-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt

#-------------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%if %{with test}
%check
dune runtest --release
%endif




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3757 |21cr|ocaml-ppx-sexp-conv-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%ifnarch %{ocaml_native_compiler}
%global debug_package %{nil}
%endif

# Break a circular dependency on ocaml-odoc
%bcond_with doc

# This package is now a transitive dependency of ocaml-ppx-inline-test, so using
# it to test this package creates a circular dependency.
%bcond_with tests

%global srcname ppx-sexp-conv
%global upname  ppx_sexp_conv

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Generate S-expression conversion functions from type definitions
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz
BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-ppxlib-devel >= 0.23.0
BuildRequires:  ocaml-sexplib0-devel >= 0.15

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%if %{with tests}
BuildRequires:  ocaml-ppx-inline-test-devel
%endif

%description
Ppx_sexp_conv is a PPX syntax extension that generates code for
converting OCaml types to and from s-expressions, as defined in the
sexplib0 library.

%files
%doc CHANGES.md README.org
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/expander/
%dir %{_libdir}/ocaml/%{upname}/runtime-lib/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*/*.cma
%{_libdir}/ocaml/%{upname}/*/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs
%{_libdir}/ocaml/%{upname}/*/*.cmxs

#-------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}
Requires:       ocaml-sexplib0-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*/*.a
%{_libdir}/ocaml/%{upname}/*/*.cmx
%{_libdir}/ocaml/%{upname}/*/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli
%{_libdir}/ocaml/%{upname}/*/*.cmt
%{_libdir}/ocaml/%{upname}/*/*.cmti
%{_libdir}/ocaml/%{upname}/*/*.mli

#-------------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%if %{with tests}
%check
dune runtest --release
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3758 |21cr|ocaml-pure-fun-1.0.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Okasaki's Purely Functional Datastructures in OCaml
Name:		ocaml-pure-fun
Version:	1.0.8
Release:	8
License:	free-software
##license notice writen in the files:
#
#  Unless this violates copyrights of the original sources, the following
#  licence applies to this file:
#
#  This source code is free software; you can redistribute it and/or
#  modify it without any restrictions. It is distributed in the hope
#  that it will be useful, but WITHOUT ANY WARRANTY.
Group:		Development/OCaml
Url:		http://www.ocaml.info/home/ocaml_sources.html#pure-fun
Source0:	http://hg.ocaml.info/release/pure-fun/archive/pure-fun-release-%{version}.tar.bz2
# curl http://hg.ocaml.info/release/pure-fun/archive/release-%{version}.tar.bz2 > pure-fun-release-%{version}.tar.bz2
BuildArch:	noarch

%description
These files contain an SML-to-OCAML translation of source examples taken
from the following book:

    Purely Functional Data Structures
    Chris Okasaki
    Cambridge University Press, 1998
    Copyright (C) 1998 Cambridge University Press

#----------------------------------------------------------------------------

%package doc
Summary:	Development files for %{name}
Group:		Development/OCaml

%description doc
These files contain an SML-to-OCAML translation of source examples taken
from the following book:

    Purely Functional Data Structures
    Chris Okasaki
    Cambridge University Press, 1998
    Copyright (C) 1998 Cambridge University Press

%files doc
%doc README.txt README.okasaki Changes
%doc chp*.ml

#----------------------------------------------------------------------------

%prep
%setup -q -n pure-fun-release-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3759 |21cr|ocaml-pxp-1.2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	An XML parser for OCaml
Name:		ocaml-pxp
Version:	1.2.9
Release:	1
License:	MIT
Group:		Development/OCaml
Url:		http://projects.camlcity.org/projects/pxp.html
Source0:	http://download.camlcity.org/download/pxp-%{version}.tar.gz
# from Debian
Patch0:		pxp-ocaml-4.08.patch
BuildRequires:	ocaml-camlp4-devel
BuildRequires:	ocaml-odoc-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ocamlnet-devel
BuildRequires:	ocaml-ulex-devel
Requires:	ocaml-ulex

%description
PXP is an XML parser for OCaml. It represents the parsed document either as
tree or as stream of events. In tree mode, it is possible to validate the
XML document against a DTD.

The acronym PXP means Polymorphic XML Parser. This name reflects the ability
to create XML trees with polymorphic type parameters.

%files
%doc LICENSE README
%dir %{_libdir}/ocaml/pxp/
%{_libdir}/ocaml/pxp/META
%dir %{_libdir}/ocaml/pxp-engine/
%{_libdir}/ocaml/pxp-engine/META
%{_libdir}/ocaml/pxp-engine/*.cmi
%{_libdir}/ocaml/pxp-engine/*.cma
%{_libdir}/ocaml/pxp-engine/*.cmo
%dir %{_libdir}/ocaml/pxp-pp/
%{_libdir}/ocaml/pxp-pp/META
%{_libdir}/ocaml/pxp-pp/pxp_pp.cma
%dir %{_libdir}/ocaml/pxp-lex-iso88591/
%dir %{_libdir}/ocaml/pxp-lex-iso885910/
%dir %{_libdir}/ocaml/pxp-lex-iso885913/
%dir %{_libdir}/ocaml/pxp-lex-iso885914/
%dir %{_libdir}/ocaml/pxp-lex-iso885915/
%dir %{_libdir}/ocaml/pxp-lex-iso885916/
%dir %{_libdir}/ocaml/pxp-lex-iso88592/
%dir %{_libdir}/ocaml/pxp-lex-iso88593/
%dir %{_libdir}/ocaml/pxp-lex-iso88594/
%dir %{_libdir}/ocaml/pxp-lex-iso88595/
%dir %{_libdir}/ocaml/pxp-lex-iso88596/
%dir %{_libdir}/ocaml/pxp-lex-iso88597/
%dir %{_libdir}/ocaml/pxp-lex-iso88598/
%dir %{_libdir}/ocaml/pxp-lex-iso88599/
%dir %{_libdir}/ocaml/pxp-lex-utf8/
%{_libdir}/ocaml/pxp-lex-*/META
%{_libdir}/ocaml/pxp-lex-*/*.cmi
%{_libdir}/ocaml/pxp-lex-*/*.cmo
%{_libdir}/ocaml/pxp-lex-*/*.cma
%{_libdir}/ocaml/pxp-lex-*/*.o
%dir %{_libdir}/ocaml/pxp-ulex-utf8/
%{_libdir}/ocaml/pxp-ulex-utf8/META
%{_libdir}/ocaml/pxp-ulex-utf8/*.cmi
%{_libdir}/ocaml/pxp-ulex-utf8/*.cmo
%{_libdir}/ocaml/pxp-ulex-utf8/*.cma
%{_libdir}/ocaml/pxp-ulex-utf8/*.o

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-ulex-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc doc/
%doc examples/
%doc rtests/
%doc tools/
%{_libdir}/ocaml/pxp-*/*.a
%{_libdir}/ocaml/pxp-*/*.cmxa
%{_libdir}/ocaml/pxp-*/*.cmx
%{_libdir}/ocaml/pxp-*/*.mli

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n pxp-%{version}

%build
./configure

make all opt

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR/pxp
make install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3760 |21cr|ocaml-pyml-20211015-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags
%global srcname pyml

Name:           ocaml-%{srcname}
Version:        20211015
Release:        1
Summary:        OCaml bindings for Python
Group:          Development/OCaml
# The project is BSD except for pycaml.mli, which is LGPLv2+
License:        BSD and LGPLv2+
URL:            https://github.com/thierry-martinez/pyml
Source0:        %{url}/archive/refs/tags/%{version}/%{srcname}-%{version}.tar.gz
# Fix wide character conversion bugs
# https://github.com/thierry-martinez/pyml/pull/75
Patch0:         %{name}-wide-character.patch

BuildRequires:  ocaml >= 3.12.1
BuildRequires:  ocaml-dune >= 2.9
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-odoc
BuildRequires:  ocaml-stdcompat-devel >= 17
BuildRequires:  python3-devel
BuildRequires:  python3-ipython
BuildRequires:  python3-numpy
BuildRequires:  utop-devel

%description
py.ml provides OCaml bindings for Python 2 and Python 3.  This library
subsumes the pycaml library, which is no longer actively maintained.

The Python library is linked at runtime and the same executable can be
run in a Python 2 or a Python 3 environment.  py.ml does not require any
Python library at compile time.  The only compile time dependency is
Stdcompat to ensure compatibility with all OCaml compiler versions from
3.12.

Bindings are split in three modules:

- Py provides the initialization functions and some high-level bindings,
  with error handling and naming conventions closer to OCaml usages.

- Pycaml provides a signature close to the old Pycaml module, so as to
  ease migration.

- Pywrappers provides low-level bindings, which follow closely the
  conventions of the C bindings for Python.  Submodules
  Pywrappers.Python2 and Pywrappers.Python3 contain version-specific
  bindings.

%files
%doc CHANGES.md README.md
%license LICENSE
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs
%{_libdir}/ocaml/stublibs/dllnumpy_stubs.so
%{_libdir}/ocaml/stublibs/dllpyml_stubs.so

#--------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-stdcompat-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli

#--------------------------------------------------------

%package        doc
Summary:        Documentation for %{name}
Group:          Documentation
BuildArch:      noarch

%description    doc
Documentation for %{name}.

%files doc
%doc _build/default/_doc/*

#--------------------------------------------------------

%package     -n pymltop
Summary:        Custom OCaml toplevel for Python interaction
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description -n pymltop
This package contains a custom OCaml toplevel for Python interaction.

%files -n pymltop
%{_bindir}/pymltop

#--------------------------------------------------------

%package     -n pymlutop
Summary:        Custom utop-based OCaml toplevel for Python interaction
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       utop%{?_isa}

%description -n pymlutop
This package contains a custom utop-based OCaml toplevel for Python
interaction.

%files -n pymlutop
%{_bindir}/pymlutop

#--------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
dune build %{?_smp_mflags} --verbose --release
dune build %{?_smp_mflags} @doc

# Relink with Fedora linker flags
cd _build/default
ocamlfind ocamlmklib -ldopt '%{build_ldflags}' -g -o pyml_stubs pyml_stubs.o
cd -

# Build custom toplevels without rebuilding the entire library
cp -p pytop.ml pyutop.ml _build/default
cd _build/default
ocamlfind ocamlc -cclib "-L. -lpyml_stubs" -g -a -dllib -lpyml_stubs \
  .pyml.objs/byte/{pyml_arch,pyutils,pytypes,pywrappers,py,pycaml,pyops}.cmo \
  -o pyml2.cma
ocamlfind ocamlmklib -ldopt '%{build_ldflags}' -g -o numpy_stubs numpy_stubs.o
ocamlfind ocamlc -cclib "-L. -lnumpy_stubs" -g -a -dllib -lnumpy_stubs \
  .pyml.objs/byte/numpy.cmo -o numpy.cma
echo "let libdir=\"%{_libdir}/ocaml/pyml/\"" > pymltop_libdir.ml
ocamlfind ocamlc -g -package stdcompat -c pymltop_libdir.ml \
  -o pymltop_libdir.cmo
ocamlfind ocamlc -I +compiler-libs -g -c pytop.ml
ocamlfind ocamlmktop -g -linkpkg -cclib "-L. -lnumpy_stubs" \
  -package unix,stdcompat,bigarray pyml2.cma numpy.cma pymltop_libdir.cmo \
  pytop.cmo -o pymltop
ocamlfind ocamlc -g -package stdcompat -thread -package utop -c pyutop.ml \
  -o pyutop.cmo
ocamlfind ocamlc -thread -linkpkg -linkall -predicates create_toploop \
  -package compiler-libs.toplevel,utop,stdcompat pyml2.cma numpy.cma \
  pymltop_libdir.cmo pytop.cmo pyutop.cmo -g -o pymlutop
cd -

%install
dune install --destdir=%{buildroot}

# Install the custom top levels
mkdir -p %{buildroot}%{_bindir}
cp -p _build/default/{pymltop,pymlutop} %{buildroot}%{_bindir}
cp -p _build/default/dllnumpy_stubs.so %{buildroot}%{_libdir}/ocaml/stublibs

# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3761 |21cr|ocaml-res-5.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Library for automatically resizing contiguous memory (arrays and strings)
Name:		ocaml-res
Version:	5.0.1
Release:	2
License:	LGPL
Group:		Development/OCaml
URL:		https://github.com/mmottl/res
Source:		https://github.com/mmottl/res/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	dune
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-compiler

%description
This OCaml-library consists of a set of modules which implement
automatically resizing (= reallocating) datastructures that consume
a contiguous part of memory. This allows appending and removing of
elements to/from arrays (both boxed and unboxed), strings (-> buffers),
bit strings and weak arrays while still maintaining fast constant-time
access to elements.

There are also functors that allow the generation of similar modules
which use different reallocation strategies.

%files
%doc %{_docdir}/res
%dir %{_libdir}/ocaml/res
%{_libdir}/ocaml/res/META
%{_libdir}/ocaml/res/*.cma
%{_libdir}/ocaml/res/*.cmi
%{_libdir}/ocaml/res/*.cmxs

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.


%files devel
%doc examples
%{_libdir}/ocaml/res/*.a
%{_libdir}/ocaml/res/*.cmt
%{_libdir}/ocaml/res/*.cmti
%{_libdir}/ocaml/res/*.cmx
%{_libdir}/ocaml/res/*.cmxa
%{_libdir}/ocaml/res/*.mli
%{_libdir}/ocaml/res/*.ml
%{_libdir}/ocaml/res/dune-package
%{_libdir}/ocaml/res/opam

#----------------------------------------------------------------------------

%prep
%setup -q -n res-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot} --docdir=%{_docdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3762 |21cr|ocaml-rresult-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags
%global debug_package %{nil}

%global srcname rresult

Name:           ocaml-%{srcname}
Version:        0.7.0
Release:        1
Summary:        Result value combinators for OCaml
Group:          Development/OCaml
License:        ISC
URL:            https://erratique.ch/software/rresult
Source0:        %{url}/releases/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-ocamlbuild
BuildRequires:  ocaml-topkg-devel >= 1.0.3

%description
Rresult is an OCaml module for handling computation results and errors
in an explicit and declarative manner without resorting to exceptions.
It defines combinators to operate on the values of the result type
available from OCaml 4.03 in the standard library.

OCaml 4.08 provides the Stdlib.Result module which you should prefer to
Rresult.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs

#-----------------------------------------------------------

%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with docs}
%doc _build/default/_doc/*
%endif
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli

#-----------------------------------------------------------
%prep
%autosetup -n %{srcname}-%{version}

%build
ocaml pkg/pkg.ml build --dev-pkg false --tests true

# Relink with Fedora linker flags
cd _build
ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g -I src \
  src/rresult.cmxa -o src/rresult.cmxs
ocamlfind ocamlopt -shared -linkall -cclib '%{build_ldflags}' -g -package \
  compiler-libs.toplevel -I src src/rresult_top.cmxa -o src/rresult_top.cmxs
cd -

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/%{srcname}
cp -p _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} _build/pkg/META \
   _build/opam %{buildroot}%{_libdir}/ocaml/%{srcname}

%check
ocaml pkg/pkg.ml test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3763 |21cr|ocaml-sexplib-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname sexplib

Name:		ocaml-%{srcname}
Version:	0.15.0
Release:	1
Summary:	Automated S-expression conversion
Group:		Development/OCaml
# The project as a whole is MIT, but code in the src subdirectory is BSD.
License:	MIT and BSD
URL:		https://github.com/janestreet/%{srcname}
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.04.2
BuildRequires:	ocaml-dune >= 2.0.0
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-num-devel
BuildRequires:	ocaml-parsexp-devel
BuildRequires:	ocaml-sexplib0-devel
BuildRequires:	vim-filesystem

%description
This package contains a library for serializing OCaml values to and from
S-expressions.

%files
%doc CHANGES.md README.org
%license COPYRIGHT.txt LICENSE.md LICENSE-Tywith.txt THIRD-PARTY.txt
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/num/
%dir %{_libdir}/ocaml/%{srcname}/unix/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/num/*.cma
%{_libdir}/ocaml/%{srcname}/num/*.cmi
%{_libdir}/ocaml/%{srcname}/unix/*.cma
%{_libdir}/ocaml/%{srcname}/unix/*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs
%{_libdir}/ocaml/%{srcname}/num/*.cmxs
%{_libdir}/ocaml/%{srcname}/unix/*.cmxs

#-----------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-num-devel
Requires:	ocaml-parsexp-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/num/*.a
%{_libdir}/ocaml/%{srcname}/num/*.cmx
%{_libdir}/ocaml/%{srcname}/num/*.cmxa
%{_libdir}/ocaml/%{srcname}/unix/*.a
%{_libdir}/ocaml/%{srcname}/unix/*.cmx
%{_libdir}/ocaml/%{srcname}/unix/*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/*.ml
%{_libdir}/ocaml/%{srcname}/*.mli
%{_libdir}/ocaml/%{srcname}/num/*.cmt
%{_libdir}/ocaml/%{srcname}/num/*.cmti
%{_libdir}/ocaml/%{srcname}/num/*.ml
%{_libdir}/ocaml/%{srcname}/num/*.mli
%{_libdir}/ocaml/%{srcname}/unix/*.cmt
%{_libdir}/ocaml/%{srcname}/unix/*.ml

#-----------------------------------------------------------------------

%package vim
Summary:	Support for sexplib syntax in vim
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	vim-filesystem

%description vim
This package contains a vim syntax file for Sexplib.

%files vim
%{vimfiles_root}/syntax/sexplib.vim

#-----------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags}

%install
dune install --destdir=%{buildroot}

# Install the vim support
mkdir -p %{buildroot}%{vimfiles_root}/syntax
cp -p vim/syntax/sexplib.vim %{buildroot}%{vimfiles_root}/syntax

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3764 |21cr|ocaml-sha-1.15.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SHA Cryptographic Hash Functions for OCaml
Name:		ocaml-sha
Version:	1.15.2
Release:	1
License:	LGPLv2.1+ or LGPLv3.0+
Group:		Development/OCaml
Url:		https://github.com/vincenthz/ocaml-sha
Source0:	https://github.com/djs55/ocaml-sha/archive/%{version}.tar.gz?/ocaml-sha-v%{version}.tar.gz
Patch0:		sha-deps.patch
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-ounit-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib

%description
SHA is a cryptographic hash function. This provide an interface for OCaml
program to use SHA1, SHA256 and SHA512 functions.

SHA1 implements the second implementation that produce a 160 bit digest from
its input. SHA256 implements newer version that produce 256 bits digest.
SHA512 produces 512 bits digest.

%files
%doc README*
%dir %{_libdir}/ocaml/sha
%{_libdir}/ocaml/sha/META
%{_libdir}/ocaml/sha/*.cma
%{_libdir}/ocaml/sha/*.cmi
%{_libdir}/ocaml/sha/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/sha/*.a
%{_libdir}/ocaml/sha/*.cmxa
%{_libdir}/ocaml/sha/*.cmx
%{_libdir}/ocaml/sha/*.cmt
%{_libdir}/ocaml/sha/*.cmti
%{_libdir}/ocaml/sha/*.ml*
%{_libdir}/ocaml/sha/dune-package
%{_libdir}/ocaml/sha/opam

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3765 |21cr|ocaml-shout-0.2.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OCaml bindings for the shout library
Name:		ocaml-shout
Version:	0.2.7
Release:	7
License:	GPLv2+
Group:		Development/OCaml
Url:		http://sourceforge.net/projects/savonet/files/
Source0:	http://downloads.sourceforge.net/savonet/ocaml-shout/ocaml-shout-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(shout)

%description
This OCaml library interfaces the shout C library which can be used for
communicating with and sending data to Icecast and Icecast 2 streaming
audio servers (they currently support Ogg Vorbis and MP3 audio streams).
It handles the socket connection, the timing of the data transmission,
and prevents bad data from getting to the server.

%files
%doc COPYING README CHANGES
%dir %{_libdir}/ocaml/shout
%{_libdir}/ocaml/shout/META
%{_libdir}/ocaml/shout/*.cma
%{_libdir}/ocaml/shout/*.cmi
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc doc/html
%doc examples
%{_libdir}/ocaml/shout/*.a
%{_libdir}/ocaml/shout/*.cmxa
%{_libdir}/ocaml/shout/*.cmx
%{_libdir}/ocaml/shout/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./configure
make all opt
make doc

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
export DLLDIR=$OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/stublibs
mkdir -p $OCAMLFIND_DESTDIR/shout
make install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3766 |21cr|ocaml-simple_gettext-0.1-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define base_name simple_gettext

Summary:	OCaml wrapper for the gettext library
Name:		ocaml-%{base_name}
Version:	0.1
Release:	22
License:	GPLv2+
Group:		Development/OCaml
Url:		http://merd.net/pixel/ocaml-simple_gettext
Source0:	http://merd.sourceforge.net/pixel/ocaml-simple_gettext/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib

%description
OCaml wrapper for the gettext library.

%files
%doc README docs
%dir %{_libdir}/ocaml/%{base_name}
%{_libdir}/ocaml/%{base_name}/*.cmi
%{_libdir}/ocaml/%{base_name}/*.cma
%{_libdir}/ocaml/%{base_name}/META
%{_libdir}/ocaml/stublibs/*.so

#----------------------------------------------------------------------------

%package devel
Summary:	OCaml wrapper for the gettext library
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
OCaml wrapper for the gettext library.

%files devel
%{_bindir}/*
%{_libdir}/ocaml/%{base_name}/*.a
%{_libdir}/ocaml/%{base_name}/*.cmxa
%{_libdir}/ocaml/%{base_name}/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q -n %{base_name}-%{version}

%build
make

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}/ocaml/stublibs
%makeinstall_std OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
rm -f %{buildroot}%{_libdir}/ocaml/stublibs/*.owner

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3767 |21cr|ocaml-speex-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OCaml interface to the speex library
Name:		ocaml-speex
Version:	0.4.1
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		http://sourceforge.net/projects/savonet/files/
Source0:	https://github.com/savonet/ocaml-speex/archive/v%{version}.tar.gz?/ocaml-speex-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-ogg-devel
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(speex)
Requires:	speex

%description
This package provides an interface to the speex library for
OCaml programmers.

Speex is an audio codec especially designed for compressing voice at low
bit-rates for applications such as voice over IP (VoIP).

%files
%doc COPYING README* CHANGES
%dir %{_libdir}/ocaml/speex
%{_libdir}/ocaml/speex/META
%{_libdir}/ocaml/speex/*.cma
%{_libdir}/ocaml/speex/*.cmi
%{_libdir}/ocaml/speex/*.cmxs
%{_libdir}/ocaml/speex/decoder/*.cma
%{_libdir}/ocaml/speex/decoder/*.cmi
%{_libdir}/ocaml/speex/decoder/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc examples
%{_libdir}/ocaml/speex/*.a
%{_libdir}/ocaml/speex/*.cmxa
%{_libdir}/ocaml/speex/*.cmx
%{_libdir}/ocaml/speex/*.cmt
%{_libdir}/ocaml/speex/*.cmti
%{_libdir}/ocaml/speex/*.mli
%{_libdir}/ocaml/speex/decoder/*.a
%{_libdir}/ocaml/speex/decoder/*.cmxa
%{_libdir}/ocaml/speex/decoder/*.cmx
%{_libdir}/ocaml/speex/decoder/*.cmt
%{_libdir}/ocaml/speex/decoder/*.cmti
%{_libdir}/ocaml/speex/decoder/*.mli
%{_libdir}/ocaml/speex/dune-package
%{_libdir}/ocaml/speex/opam

#----------------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3768 |21cr|ocaml-sqlite-5.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	OCaml library for accessing SQLite 3 databases
Name:		ocaml-sqlite
Version:	5.1.0
Release:	1
License:	BSD
Group:		Development/OCaml
Url:		http://www.ocaml.info/home/ocaml_sources.html#ocaml-sqlite3
Source0:	https://github.com/mmottl/sqlite3-ocaml/archive/%{version}.tar.gz?/sqlite3-ocaml-%{version}.tar.gz
#BuildRequires:	camlp4
#BuildRequires:	chrpath
BuildRequires:	ocaml-base-devel
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-ppxlib-devel
BuildRequires:	ocaml-ppx-inline-test-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(sqlite3)

%description
SQLite 3 database library wrapper for OCaml.

%files
%license LICENSE*
%doc README* CHANGES*
%{_libdir}/ocaml/sqlite3
%exclude %{_libdir}/ocaml/sqlite3/*.a
%exclude %{_libdir}/ocaml/sqlite3/*.cmxa
%exclude %{_libdir}/ocaml/sqlite3/*.cmx
%exclude %{_libdir}/ocaml/sqlite3/*.mli
%{_libdir}/ocaml/stublibs/*.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/sqlite3/*.a
%{_libdir}/ocaml/sqlite3/*.cmxa
%{_libdir}/ocaml/sqlite3/*.cmx
%{_libdir}/ocaml/sqlite3/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q -n sqlite3-ocaml-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3769 |21cr|ocaml-ssl-0.5.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SSL bindings for OCaml
Name:		ocaml-ssl
Version:	0.5.10
Release:	1
License:	LGPLv2+ with exceptions
Group:		Development/OCaml
Url:		http://savonet.sourceforge.net/wiki/Savonet
Source0:	https://github.com/savonet/ocaml-ssl/archive/v%{version}.tar.gz?/ocaml-ssl-%{version}.tar.gz
BuildRequires:	gawk
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(openssl)
Requires:	openssl

%description
SSL bindings for OCaml.

%files
%doc CHANGES.md COPYING README.md
%{_libdir}/ocaml/ssl
%exclude %{_libdir}/ocaml/ssl/*.a
%exclude %{_libdir}/ocaml/ssl/*.cmxa
%exclude %{_libdir}/ocaml/ssl/*.mli
%{_libdir}/ocaml/stublibs/*.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/ssl/*.a
%{_libdir}/ocaml/ssl/*.cmxa
%{_libdir}/ocaml/ssl/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3770 |21cr|ocaml-stdcompat-18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%undefine _package_note_flags
%global srcname stdcompat

Name:           ocaml-%{srcname}
Version:        18
Release:        1
Summary:        Compatibility module for the OCaml standard library
Group:          Development/OCaml
License:        BSD
URL:            https://github.com/thierry-martinez/stdcompat
Source0:        %{url}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:  make
BuildRequires:  ocaml
BuildRequires:  ocaml-findlib

%description
Stdcompat is a compatibility layer allowing programs to use some recent
additions to the OCaml standard library while preserving the ability to
be compiled on former versions of OCaml.

The Stdcompat API is not intended to be stable, but there will be
efforts to allow future versions of Stdcompat to be compiled on a large
range of versions of OCaml: Stdcompat should compile (at least) on every
version of OCaml from 3.08 (inclusive).

The module Stdcompat provides some definitions for values and types
introduced in recent versions of the standard library.  These
definitions are just aliases to the matching definition of the standard
library if the latter is recent enough.  Otherwise, the module Stdcompat
provides an alternative implementation.

%files
%doc AUTHORS ChangeLog README
%license COPYING
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs
%{_libdir}/ocaml/stublibs/dllstdcompat__stubs.so
%{_libdir}/ocaml/stublibs/dllstdcompat__stubs.so.owner

#------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.h
%{_libdir}/ocaml/%{srcname}/*.mli

#------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

# Generate debuginfo
sed -i 's/-nolabels/-g &/' Makefile.in

%build
%configure --libdir=%{_libdir}/ocaml

# Parallel make does NOT work; there seem to be missing dependencies
make all

%install
%make_install

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# Install the mli files
cp -p *.mli %{buildroot}%{_libdir}/ocaml/stdcompat

# Install the opam file
cp -p stdcompat.opam %{buildroot}%{_libdir}/ocaml/stdcompat/opam

# Remove spurious executable bits
chmod a-x %{buildroot}%{_libdir}/ocaml/stdcompat/*.{a,cma,cmi,cmt,cmx,cmxa,h}

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3771 |21cr|ocaml-text-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	OCaml Text helpers
Name:		ocaml-text
Version:	0.8.1
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		http://forge.ocamlcore.org/projects/ocaml-text/
Source0:	https://github.com/vbmithr/ocaml-text/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	camlp4
BuildRequires:	ocaml-pcre
BuildRequires:	ocaml-findlib-devel
BuildRequires:	pkgconfig(ncurses)

%description
Caml-Text is a library for dealing with ``text'', i.e. sequence of
unicode characters, in a convenient way.

%files
%dir %{_libdir}/ocaml/text
%{_libdir}/ocaml/text/META
%{_libdir}/ocaml/text/*.cma
%{_libdir}/ocaml/text/*.cmi
%{_libdir}/ocaml/text/*.cmxs
%{_libdir}/ocaml/text/*.annot
%{_libdir}/ocaml/text/*.cmt
%{_libdir}/ocaml/text/*.cmti

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc LICENSE CHANGES README
%{_libdir}/ocaml/text/*.a
%{_libdir}/ocaml/text/*.cmx
%{_libdir}/ocaml/text/*.cmxa
%{_libdir}/ocaml/text/*.mli
%{_libdir}/ocaml/stublibs/*.so*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
ocaml setup.ml -configure --prefix %{_prefix} --destdir '%{buildroot}' --enable-pcre --docdir %{_docdir}/%{name}-doc/
make

%install
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
make install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3772 |21cr|ocaml-theora-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OCaml interface to the theora library
Name:		ocaml-theora
Version:	0.4.0
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		http://sourceforge.net/projects/savonet/files/ocaml-theora/
Source0:	https://github.com/savonet/ocaml-theora/archive/v%{version}.tar.gz?/ocaml-theora-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ogg-devel
BuildRequires:	pkgconfig(theora)
Requires:	ocaml-ogg

%description
This package contains an OCaml interface for Theora Video Compression Codec
Library, otherwise known as libtheora.

%files
%doc COPYING CHANGES README*
%dir %{_libdir}/ocaml/theora
%{_libdir}/ocaml/theora/META
%{_libdir}/ocaml/theora/*.cma
%{_libdir}/ocaml/theora/*.cmi
%{_libdir}/ocaml/theora/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*
%{_libdir}/ocaml/theora/decoder/*.cma
%{_libdir}/ocaml/theora/decoder/*.cmi
%{_libdir}/ocaml/theora/decoder/*.cmxs

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/theora/*.a
%{_libdir}/ocaml/theora/*.cmxa
%{_libdir}/ocaml/theora/*.cmx
%{_libdir}/ocaml/theora/*.cmt
%{_libdir}/ocaml/theora/*.cmti
%{_libdir}/ocaml/theora/*.mli
%{_libdir}/ocaml/theora/decoder/*.a
%{_libdir}/ocaml/theora/decoder/*.cmxa
%{_libdir}/ocaml/theora/decoder/*.cmx
%{_libdir}/ocaml/theora/decoder/*.cmt
%{_libdir}/ocaml/theora/decoder/*.cmti
%{_libdir}/ocaml/theora/decoder/*.mli
%{_libdir}/ocaml/theora/dune-package
%{_libdir}/ocaml/theora/opam

#----------------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3773 |21cr|ocaml-time-now-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags

%global srcname time-now
%global upname  time_now

# Break a circular dependency on ocaml-odoc
%bcond_with doc

Name:           ocaml-%{srcname}
Version:        0.15.0
Release:        1
Summary:        Get the current time in OCaml
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/janestreet/%{upname}
Source0:        %{url}/archive/v%{version}/%{upname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.08.0
BuildRequires:  ocaml-base-devel >= 0.15
BuildRequires:  ocaml-dune >= 2.0.0
BuildRequires:  ocaml-jane-street-headers-devel >= 0.15
BuildRequires:  ocaml-jst-config-devel >= 0.15
BuildRequires:  ocaml-ppx-base-devel >= 0.15
BuildRequires:  ocaml-ppx-optcomp-devel >= 0.15

%if %{with doc}
BuildRequires:  ocaml-odoc
%endif

%description
This package provides a single OCaml function to report the current time
in nanoseconds since the start of the Unix epoch.

%files
%license LICENSE.md
%dir %{_libdir}/ocaml/%{upname}/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/runtime.js
%{_libdir}/ocaml/%{upname}/*.cma
%{_libdir}/ocaml/%{upname}/*.cmi
%{_libdir}/ocaml/%{upname}/*.cmxs
%{_libdir}/ocaml/stublibs/dlltime_now_stubs.so

#----------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-base-devel%{?_isa}
Requires:       ocaml-jane-street-headers-devel
Requires:       ocaml-ppx-compare-devel%{?_isa}
Requires:       ocaml-ppx-enumerate-devel%{?_isa}
Requires:       ocaml-ppx-hash-devel%{?_isa}
Requires:       ocaml-ppx-sexp-conv-devel%{?_isa}
Requires:       ocaml-sexplib0-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%if %{with doc}
%doc _build/default/_doc/_html/*
%endif
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/*.a
%{_libdir}/ocaml/%{upname}/*.cmx
%{_libdir}/ocaml/%{upname}/*.cmxa
%{_libdir}/ocaml/%{upname}/*.cmt
%{_libdir}/ocaml/%{upname}/*.cmti
%{_libdir}/ocaml/%{upname}/*.mli

#----------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} --verbose --release
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

# Relink the stublibs with Fedora link flags
cd _build/default/src
ocamlmklib -g -ldopt "%{build_ldflags}" -o time_now_stubs \
  $(ar t libtime_now_stubs.a)
cd -

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest --release

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3774 |21cr|ocaml-trie-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global srcname trie

Name:           ocaml-%{srcname}
Version:        1.0.0
Release:        1
Summary:        Strict impure trie tree
Group:          Development/OCaml
License:        MIT
URL:            https://github.com/kandu/trie
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:  ocaml >= 4.02
BuildRequires:  ocaml-dune >= 1.0
BuildRequires:  ocaml-odoc

%description
This package contains an implementation of a strict impure trie tree.

%files
%license LICENSE
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmxs

#-------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%doc _build/default/_doc/*
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}.a
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmti
%{_libdir}/ocaml/%{srcname}/%{srcname}.mli

#-------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags}
dune build %{?_smp_mflags} @doc

%install
dune install --destdir=%{buildroot}

# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3775 |21cr|ocaml-tyxml-4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global srcname tyxml

# This package is needed to build ocaml-odoc, but ocaml-odoc is needed to build
# documentation for this package.  Skip building documentation for now until we
# develop a strategy for handling dependency loops.

Name:           ocaml-%{srcname}
Version:        4.5.0
Release:        1
Summary:        Build valid HTML and SVG documents
Group:          Development/OCaml
License:        LGPLv2 with exceptions
URL:            https://ocsigen.org/tyxml/
Source0:        https://github.com/ocsigen/tyxml/releases/download/%{version}/%{srcname}-%{version}.tbz

BuildRequires:  ocaml >= 4.04
BuildRequires:  ocaml-alcotest-devel
BuildRequires:  ocaml-astring-devel
BuildRequires:  ocaml-dune >= 2.0
BuildRequires:  ocaml-markup-devel >= 0.7.2
BuildRequires:  ocaml-ppxlib-devel
BuildRequires:  ocaml-re-devel >= 1.5.0
BuildRequires:  ocaml-seq-devel
BuildRequires:  ocaml-uutf-devel >= 1.0.0

# See comment above about dependency loops.  If the issue is not resolved by
# Fedora 36, this can be removed.
Obsoletes:      %{name}-doc < 4.4.0-1
Provides:       %{name}-doc = %{version}-%{release}

%description
TyXML provides a set of convenient combinators that uses the OCaml type
system to ensure the validity of the generated documents.  TyXML can be
used with any representation of HTML and SVG: the textual one, provided
directly by this package, or DOM trees (`js_of_ocaml-tyxml`), virtual DOM
(`virtual-dom`) and reactive or replicated trees (`eliom`).  You can also
create your own representation and use it to instantiate a new set of
combinators.

%files
%doc CHANGES.md README.md
%license LICENSE
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/functor/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/functor/*.cma
%{_libdir}/ocaml/%{srcname}/functor/*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs
%{_libdir}/ocaml/%{srcname}/functor/*.cmxs

#----------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-re-devel%{?_isa}
Requires:       ocaml-seq-devel%{?_isa}
Requires:       ocaml-uutf-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/functor/*.a
%{_libdir}/ocaml/%{srcname}/functor/*.cmx
%{_libdir}/ocaml/%{srcname}/functor/*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/%{srcname}*.mli
%{_libdir}/ocaml/%{srcname}/functor/*.cmt
%{_libdir}/ocaml/%{srcname}/functor/*.cmti
%{_libdir}/ocaml/%{srcname}/functor/*.mli

#----------------------------------------------------------

%package        syntax
Summary:        Common layer for the JSX and PPX syntaxes for TyXML
Group:          Development/OCaml

%description    syntax
This package contains common code used by both the JSX and the PPX
syntaxes for TyXML.

%files syntax
%dir %{_libdir}/ocaml/%{srcname}-syntax/
%{_libdir}/ocaml/%{srcname}-syntax/META
%{_libdir}/ocaml/%{srcname}-syntax/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}-syntax/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}-syntax/%{srcname}*.cmxs

#----------------------------------------------------------

%package        syntax-devel
Summary:        Development files for %{name}-syntax
Group:          Development/OCaml
Requires:       %{name}-syntax%{?_isa} = %{version}-%{release}
Requires:       ocaml-ppxlib-devel%{?_isa}
Requires:       ocaml-re-devel%{?_isa}
Requires:       ocaml-uutf-devel%{?_isa}

%description    syntax-devel
The %{name}-syntax-devel package contains libraries and signature files
for developing applications that use %{name}-syntax.

%files syntax-devel
%{_libdir}/ocaml/%{srcname}-syntax/dune-package
%{_libdir}/ocaml/%{srcname}-syntax/opam
%{_libdir}/ocaml/%{srcname}-syntax/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}-syntax/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}-syntax/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}-syntax/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}-syntax/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}-syntax/*.mli

#----------------------------------------------------------

%package        jsx
Summary:        JSX syntax for writing TyXML documents
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       %{name}-syntax%{?_isa} = %{version}-%{release}

%description    jsx
This package enables writing TyXML documents with reasons's JSX syntax,
from textual trees to reactive virtual DOM trees.

  open Tyxml
  let to_ocaml = <a href="ocaml.org"> "OCaml!" </a>;

%files jsx
%dir %{_libdir}/ocaml/%{srcname}-jsx/
%{_libdir}/ocaml/%{srcname}-jsx/META
%{_libdir}/ocaml/%{srcname}-jsx/ppx.exe
%{_libdir}/ocaml/%{srcname}-jsx/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}-jsx/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}-jsx/%{srcname}*.cmxs

#----------------------------------------------------------

%package        jsx-devel
Summary:        Development files for %{name}-jsx
Group:          Development/OCaml
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Requires:       %{name}-syntax-devel%{?_isa} = %{version}-%{release}
Requires:       %{name}-jsx%{?_isa} = %{version}-%{release}
Requires:       ocaml-ppxlib-devel%{?_isa}

%description    jsx-devel
The %{name}-jsx-devel package contains libraries and signature files for
developing applications that use %{name}-jsx.

%files jsx-devel
%{_libdir}/ocaml/%{srcname}-jsx/dune-package
%{_libdir}/ocaml/%{srcname}-jsx/opam
%{_libdir}/ocaml/%{srcname}-jsx/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}-jsx/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}-jsx/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}-jsx/%{srcname}*.cmt

#----------------------------------------------------------

%package        ppx
Summary:        PPX for writing TyXML documents with HTML syntax
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       %{name}-syntax%{?_isa} = %{version}-%{release}

%description    ppx
This package contains PPX for writing TyXML documents with HTML syntax.

  open Tyxml
  let_html to_ocaml = "<a href='ocaml.org'>OCaml!</a>"

The TyXML PPX is compatible with all TyXML instance, from textual trees
to reactive virtual DOM trees.

%files ppx
%dir %{_libdir}/ocaml/%{srcname}-ppx/
%dir %{_libdir}/ocaml/%{srcname}-ppx/internal/
%{_libdir}/ocaml/%{srcname}-ppx/META
%{_libdir}/ocaml/%{srcname}-ppx/ppx.exe
%{_libdir}/ocaml/%{srcname}-ppx/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}-ppx/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.cma
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.cmi
%{_libdir}/ocaml/%{srcname}-ppx/%{srcname}*.cmxs
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.cmxs

#----------------------------------------------------------

%package        ppx-devel
Summary:        Development files for %{name}-ppx
Group:          Development/OCaml
Requires:       %{name}-devel%{?_isa} = %{version}-%{release}
Requires:       %{name}-syntax-devel%{?_isa} = %{version}-%{release}
Requires:       %{name}-ppx%{?_isa} = %{version}-%{release}
Requires:       ocaml-markup-devel%{?_isa}
Requires:       ocaml-ppxlib-devel%{?_isa}
Requires:       ocaml-re-devel%{?_isa}

%description    ppx-devel
The %{name}-ppx-devel package contains libraries and signature files for
developing applications that use %{name}-ppx.

%files ppx-devel
%{_libdir}/ocaml/%{srcname}-ppx/dune-package
%{_libdir}/ocaml/%{srcname}-ppx/opam
%{_libdir}/ocaml/%{srcname}-ppx/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}-ppx/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}-ppx/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.a
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.cmx
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.cmxa
%{_libdir}/ocaml/%{srcname}-ppx/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.cmt
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.cmti
%{_libdir}/ocaml/%{srcname}-ppx/internal/*.mli

#----------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
dune build %{?_smp_mflags} --verbose --release @install

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
# As of version 4.4.0, the tyxml-jsx tests fail due to lack of the reason
# package in Fedora.
dune runtest -p tyxml,tyxml-syntax,tyxml-ppx

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3776 |21cr|ocaml-ulex-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define up_name ulex

Summary:	A lexer generator for Unicode and OCaml
Name:		ocaml-%{up_name}
Version:	1.2
Release:	1
License:	MIT
Group:		Development/OCaml
Url:		http://www.cduce.org/
Source0:	https://github.com/whitequark/ulex/archive/v%{version}.tar.gz?/%{up_name}-%{version}.tar.gz
Patch0:		ocaml-ulex-1.0.install_flags.patch
BuildRequires:	ocaml-camlp4-devel
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	mysql-devel

%description
ulex is a lexer generator for Unicode and OCaml written by Alain Frisch.

%files
%doc CHANGES README LICENSE
%dir %{_libdir}/ocaml/ulex
%{_libdir}/ocaml/ulex/*.cmi
%{_libdir}/ocaml/ulex/*.cma
%{_libdir}/ocaml/ulex/META

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/ulex/*.a
%{_libdir}/ocaml/ulex/*.cmx
%{_libdir}/ocaml/ulex/*.cmxa
%{_libdir}/ocaml/ulex/*.mli

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{up_name}-%{version}

%build
make all all.opt

%install
install -d -m 755 %{buildroot}/%{_libdir}/ocaml/stublibs
make install OCAMLFIND_DESTDIR="%{buildroot}/%{_libdir}/ocaml"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3777 |21cr|ocaml-version-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

Name:           ocaml-version
Version:        3.4.0
Release:        1
Summary:        Manipulate, parse and generate OCaml compiler version strings
Group:          Development/OCaml
License:        ISC
URL:            https://ocurrent.github.io/ocaml-version/
Source0:        https://github.com/ocurrent/%{name}/releases/download/v%{version}/%{name}-v%{version}.tbz

BuildRequires:  ocaml >= 4.07.0
BuildRequires:  ocaml-alcotest-devel
BuildRequires:  ocaml-dune

%description
This library provides facilities to parse version numbers of the OCaml
compiler, and enumerates the various official OCaml releases and
configuration variants.

OCaml version numbers are of the form `major.minor.patch+extra`, where
the `patch` and `extra` fields are optional.  This library offers the
following functionality:

- Functions to parse and serialize OCaml compiler version numbers
- Enumeration of official OCaml compiler version releases
- Test compiler versions for a particular feature (e.g. the `bytes`
  type)
- opam compiler switch enumeration

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{name}/
%{_libdir}/ocaml/%{name}/META
%{_libdir}/ocaml/%{name}/*.cma
%{_libdir}/ocaml/%{name}/*.cmi
%{_libdir}/ocaml/%{name}/*.cmxs

#---------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files  devel
%{_libdir}/ocaml/%{name}/dune-package
%{_libdir}/ocaml/%{name}/opam
%{_libdir}/ocaml/%{name}/*.a
%{_libdir}/ocaml/%{name}/*.cmx
%{_libdir}/ocaml/%{name}/*.cmxa
%{_libdir}/ocaml/%{name}/*.cmt
%{_libdir}/ocaml/%{name}/*.cmti
%{_libdir}/ocaml/%{name}/*.mli

#---------------------------------------------------------

%prep
%autosetup -n %{name}-v%{version}

%build
dune build %{?_smp_mflags} --verbose --profile release

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3778 |21cr|ocaml-vorbis-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ocaml bindings to Ogg/Vorbis
Name:		ocaml-vorbis
Version:	0.8.0
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		http://sourceforge.net/projects/savonet/files/
Source0:	https://github.com/savonet/ocaml-vorbis/archive/v%{version}.tar.gz?/ocaml-vorbis-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ogg-devel
BuildRequires:	pkgconfig(vorbis)

%description
This OCaml library interfaces the vorbis C library. It can be used to
decode from or encode to the Ogg Vorbis compressed audio format as well
as to get informations about an Ogg Vorbis file.

Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed audio format for audio and music at fixed
and variable bitrates from 16 to 128 kbps/channel.

%files
%doc CHANGES COPYING README*
%dir %{_libdir}/ocaml/vorbis
%{_libdir}/ocaml/vorbis/META
%{_libdir}/ocaml/vorbis/*.cma
%{_libdir}/ocaml/vorbis/*.cmi
%{_libdir}/ocaml/vorbis/*.cmxs
%{_libdir}/ocaml/stublibs/*.so*
%{_libdir}/ocaml/vorbis/decoder/*.cma
%{_libdir}/ocaml/vorbis/decoder/*.cmi
%{_libdir}/ocaml/vorbis/decoder/*.cmxs

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc examples
%{_libdir}/ocaml/vorbis/*.a
%{_libdir}/ocaml/vorbis/*.cmxa
%{_libdir}/ocaml/vorbis/*.cmx
%{_libdir}/ocaml/vorbis/*.cmt
%{_libdir}/ocaml/vorbis/*.cmti
%{_libdir}/ocaml/vorbis/*.mli
%{_libdir}/ocaml/vorbis/dune-package
%{_libdir}/ocaml/vorbis/opam
%{_libdir}/ocaml/vorbis/decoder/*.a
%{_libdir}/ocaml/vorbis/decoder/*.cmxa
%{_libdir}/ocaml/vorbis/decoder/*.cmx
%{_libdir}/ocaml/vorbis/decoder/*.cmt
%{_libdir}/ocaml/vorbis/decoder/*.cmti
%{_libdir}/ocaml/vorbis/decoder/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q

%build
dune build

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3779 |21cr|ocaml-xml-light-2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define base_name       xml-light

Summary:	Minimal XML parser & printer for OCaml
Name:		ocaml-%{base_name}
Version:	2.4
Release:	3
License:	LGPLv2.1+
Group:		Development/OCaml
Url:		https://github.com/ncannasse/xml-light/
Source:		https://github.com/ncannasse/xml-light/archive/%{version}.tar.gz
BuildRequires:	ocaml

%description
Xml-Light is a minimal XML parser & printer for OCaml. 
It provide functions to parse an XML document into an OCaml data structure, 
work with it, and print it back to an XML document. 
It support also DTD parsing and checking, and is entirely written in OCaml, 
hence it does not require additional C library.

%files
%doc README
%dir %{_libdir}/ocaml/xml-light
%{_libdir}/ocaml/xml-light/*.cmi
%{_libdir}/ocaml/xml-light/*.cma
%{_libdir}/ocaml/xml-light/META

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files needed to build applications
using %{name}.

%files devel
%{_libdir}/ocaml/xml-light/*.a
%{_libdir}/ocaml/xml-light/*.cmx
%{_libdir}/ocaml/xml-light/*.cmxa
%{_libdir}/ocaml/xml-light/*.cmxs
%{_libdir}/ocaml/xml-light/*.mli

#----------------------------------------------------------------------------

%prep
%setup -q -n %{base_name}-%{version}
chmod 644 README *.mli
perl -pi -e 's/\015$//' README

%build
make
make doc

%install
install -d %{buildroot}%{_libdir}/ocaml/xml-light
make install INSTALLDIR=%{buildroot}%{_libdir}/ocaml/xml-light

cat > %{buildroot}%{_libdir}/ocaml/xml-light/META <<EOF
version = "%{version}"
description = "Minimal XML parser & printer for OCaml"
archive(byte) = "xml-light.cma"
archive(native) = "xml-light.cmxa"
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3780 |21cr|ocaml-xmlm-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Streaming XML input/output for OCaml
Name:		ocaml-xmlm
Version:	1.4.0
Release:	1
License:	BSD
Group:		Development/OCaml
URL:		http://erratique.ch/software/xmlm
Source0:	https://github.com/dbuenzli/xmlm/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml

%description
Xmlm is an OCaml module providing streaming XML input/output. It aims at
making XML processing robust and painless. The streaming interface can
process documents without building an in-memory representation. It lets
the programmer translate its data structures to XML documents and
vice-versa. Functions are provided to easily transform arborescent data
structures to/from XML documents.

%files
%doc README.md CHANGES.md
%{_bindir}/xmltrip
%{_libdir}/ocaml/xmlm/META
%{_libdir}/ocaml/xmlm/xmlm.cmi
%{_libdir}/ocaml/xmlm/xmlm.cma
%{_libdir}/ocaml/xmlm/xmlm.cmxs

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc doc/
%{_libdir}/ocaml/xmlm/xmlm.cmx
%{_libdir}/ocaml/xmlm/xmlm.cmxa
%{_libdir}/ocaml/xmlm/xmlm.a
%{_libdir}/ocaml/xmlm/xmlm.mli
%{_libdir}/ocaml/xmlm/xmlm.cmt
%{_libdir}/ocaml/xmlm/xmlm.cmti
%{_libdir}/ocaml/xmlm/xmlm.annot

#----------------------------------------------------------------------------

%prep
%setup -q -n xmlm-%{version}

%build
pushd src/
 ocamlc -c -annot -bin-annot xmlm.mli
 ocamlc -c -annot -bin-annot xmlm.ml
 ocamlc -g -a -o xmlm.cma xmlm.cmo
 ocamlopt -c -annot -bin-annot xmlm.ml
 ocamlopt -g -a -o xmlm.cmxa xmlm.cmx
 ocamlopt -g -shared -linkall -o xmlm.cmxs xmlm.cmxa
popd

pushd test/
 ocamlopt -c -I ../src xhtml.ml
 ocamlopt -c -I ../src xmltrip.ml
 ocamlopt -o xmltrip -I ../src xmlm.cmxa xhtml.cmx xmltrip.cmx
 rm -f *.o *.cm[ix]
popd


%install
export OCAMLFIND_DESTDIR=%{buildroot}/%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR/xmlm
pushd src/
 ocamlfind install xmlm ../pkg/META \
   *.a *.cm[iatx] *.cmti *.cmx[as] *.annot *.mli
popd
pushd test/
 install -d %{buildroot}%{_bindir}/
 install -m 0755 xmltrip %{buildroot}%{_bindir}/
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3781 |21cr|ocaml-yojson-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global debug_package %{nil}

%global libname yojson

Name:           ocaml-%{libname}
Version:        1.7.0
Release:        1
Summary:        An optimized parsing and printing library for the JSON format
Group:          Development/OCaml
License:        BSD
URL:            https://github.com/ocaml-community/%{libname}
Source0:        %{url}/releases/download/%{version}/%{libname}-%{version}.tbz

BuildRequires:  ocaml >= 4.02.3
BuildRequires:  ocaml-alcotest-devel
BuildRequires:  ocaml-astring-devel
BuildRequires:  ocaml-findlib
BuildRequires:  ocaml-biniou-devel
BuildRequires:  ocaml-cppo
BuildRequires:  ocaml-easy-format-devel
BuildRequires:  ocaml-dune
BuildRequires:  ocaml-uutf-devel

%description
Yojson is an optimized parsing and printing library for the JSON
format. It addresses a few shortcomings of json-wheel including 2x
speedup, polymorphic variants and optional syntax for tuples and
variants.

ydump is a pretty-printing command-line program provided with the
yojson package.

The program atdgen can be used to derive OCaml-JSON serializers and
deserializers from type definitions.

%files
%doc README.md
%license LICENSE.md
%{_libdir}/ocaml/%{libname}/
%{_bindir}/ydump
%exclude %{_libdir}/ocaml/%{libname}/*.a
%exclude %{_libdir}/ocaml/%{libname}/*.cmx
%exclude %{_libdir}/ocaml/%{libname}/*.cmxa
%exclude %{_libdir}/ocaml/%{libname}/*.mli


#------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-biniou-devel%{?_isa}
Requires:       ocaml-easy-format-devel%{?_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc Changes CHANGES.md examples
%{_libdir}/ocaml/%{libname}/*.a
%{_libdir}/ocaml/%{libname}/*.cmx
%{_libdir}/ocaml/%{libname}/*.cmxa
%{_libdir}/ocaml/%{libname}/*.mli

#------------------------------------------------------

%prep
%autosetup -n %{libname}-%{version}


%build
dune build %{?_smp_mflags} --verbose --profile release


%install
mkdir -p %{buildroot}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/ocaml

cp -L _build/install/default/bin/* %{buildroot}%{_bindir}
cp -rL _build/install/default/lib/* %{buildroot}%{_libdir}/ocaml

# We do not want the source code
rm -f %{buildroot}/%{_libdir}/ocaml/yojson/*.ml


%check
dune runtest --profile release

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3782 |21cr|ocaml-zarith-1.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%undefine _package_note_flags
%global pkgname zarith

Name:           ocaml-%{pkgname}
Version:        1.12
Release:        2
Summary:        OCaml interface to GMP
Group:          Development/OCaml
# The license has a static linking exception
License:        LGPLv2 with exceptions
URL:            https://github.com/ocaml/Zarith/
Source0:        %{URL}/archive/release-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  pkgconfig(gmp)
BuildRequires:  make
BuildRequires:  ocaml
BuildRequires:  ocaml-findlib
BuildRequires:  perl-interpreter

%description
This library implements arithmetic and logical operations over
arbitrary-precision integers.

The module is simply named "Z".  Its interface is similar to that of the
Int32, Int64 and Nativeint modules from the OCaml standard library, with
some additional functions.  See the file z.mlip for documentation.

The implementation uses GMP (the GNU Multiple Precision arithmetic
library) to compute over big integers.  However, small integers are
represented as unboxed Caml integers, to save space and improve
performance.  Big integers are allocated in the Caml heap, bypassing
GMP's memory management and achieving better GC behavior than e.g. the
MLGMP library.  Computations on small integers use a special, faster
path (coded in assembly for some platforms and functions) eschewing
calls to GMP, while computations on large integers use the low-level
MPN functions from GMP.

Arbitrary-precision integers can be compared correctly using OCaml's
polymorphic comparison operators (=, <, >, etc.).

Additional features include:
- a module Q for rationals, built on top of Z (see q.mli)
- a compatibility layer Big_int_Z that implements the same API as Big_int,
  but uses Z internally

%files
%doc README.md
%license LICENSE
%{_libdir}/ocaml/%{pkgname}/
%exclude %{_libdir}/ocaml/%{pkgname}/*.a
%exclude %{_libdir}/ocaml/%{pkgname}/*.cmx
%exclude %{_libdir}/ocaml/%{pkgname}/*.cmxa
%exclude %{_libdir}/ocaml/%{pkgname}/*.mli
%exclude %{_libdir}/ocaml/%{pkgname}/*.h
%{_libdir}/ocaml/stublibs/*.so*

#--------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       pkgconfig(gmp)

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc Changes
%{_libdir}/ocaml/%{pkgname}/*.a
%{_libdir}/ocaml/%{pkgname}/*.cmx
%{_libdir}/ocaml/%{pkgname}/*.cmxa
%{_libdir}/ocaml/%{pkgname}/*.mli
%{_libdir}/ocaml/%{pkgname}/*.h

#--------------------------------------------------------------

%prep
%autosetup -n Zarith-release-%{version}
%config_update

# Fix compilation flags
sed -i "s|^ccdef=''|ccdef='%{build_cflags}'|" configure
sed -ri "s/(-ccopt|-shared|-failsafe)/-g &/" project.mak
sed -i "s/+compiler-libs/& -g/;s/\(\$(OCAMLC)\) -o/\1 -g -o/" project.mak
sed -i 's|(OCAMLMKLIB)|& -ldopt "%{build_ldflags}"|' project.mak

%build
export CC="gcc"
# This is NOT an autoconf-generated configure script; %%configure doesn't work
./configure
# %%{?_smp_mflags} is not safe; same action performed by multiple CPUs
make

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/stublibs
make install INSTALLDIR=%{buildroot}%{_libdir}/ocaml




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3783 |21cr|ocaml-zed-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags

Name:           ocaml-zed
Version:        3.1.0
Release:        1
Summary:        Abstract engine for text edition in OCaml
Group:          Development/OCaml
%global libname %(echo %{name} | sed -e 's/^ocaml-//')

License:        BSD
URL:            https://github.com/ocaml-community/zed
Source0:        https://github.com/ocaml-community/zed/archive/%{version}/%{libname}-%{version}.tar.gz

BuildRequires:  ocaml
BuildRequires:  ocaml-camomile-devel
BuildRequires:  ocaml-react-devel
BuildRequires:  ocaml-charinfo-width-devel

BuildRequires:  ocaml-dune

%description
Zed is an abstract engine for text edition. It can be used to
write text editors, edition widgets, readlines, ... You just
have to connect an engine to your inputs and rendering functions
to get an editor.

Zed provides: edition state management, multiple cursor support,
key-binding helpers, and general purpose unicode rope
manipulation functions.

%files
%license LICENSE
%doc README.md CHANGES.md
%{_libdir}/ocaml/%{libname}
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.cmx
%exclude %{_libdir}/ocaml/*/*.mli

#-----------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name} = %{version}-%{release}
Requires:       ocaml-camomile-devel%{_isa}
Requires:       ocaml-react-devel%{_isa}
Requires:       ocaml-charinfo-width-devel%{_isa}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%license LICENSE
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.mli

#-----------------------------------------------------------

%prep
%autosetup -n %{libname}-%{version}

%build
# It might be nice to have a %jbuilder macro that just does this.
dune build -p %{libname} %{?_smp_mflags}

%install
dune install --destdir=%{buildroot}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3784 |21cr|ocrad-0.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Optical Character Recognition
Name: 		ocrad
Version:	0.27
Release:	1
License: 	GPLv3+
Group: 		Publishing
Source: 	http://ftp.gnu.org/gnu/ocrad/%{name}-%{version}.tar.lz
URL: 		http://www.gnu.org/software/ocrad/ocrad.html
BuildRequires:	lzip

%description
Ocrad is an OCR (Optical Character Recognition) program implemented 
as a filter and based on a feature extraction method. It reads a 
bitmap image in PBM format and outputs text in the ISO-8859-1 
(Latin-1) charset. It includes a layout analyser that is able to 
separate the columns or blocks of text normally found on printed 
pages. Ocrad can be used as a stand-alone console application, or as 
a backend to other programs

%package devel
Group: Publishing
Summary: Header files needed for ocard development

%description devel
This package contains header files needed for ocard development.

%prep
%setup -q

%build
./configure --prefix=%{_prefix} --libdir=%{_libdir} CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" CPPFLAGS="%{optflags}" LDFLAGS="%{?ldflags}"
%make

%install
export PATH=$PATH:/sbin
%makeinstall_std

%files
%doc README COPYING INSTALL ChangeLog
%{_bindir}/*
%{_infodir}/*
%{_mandir}/man1/*.1.*

%files devel
%{_includedir}/ocradlib.h
%{_libdir}/libocrad.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3785 |21cr|ocrfeeder-0.8.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GUI for tesseract and cuneiform OCR
Name:		ocrfeeder
Version:	0.8.5
Release:	2
License:	GPLv3+
Group:		Office
Url:		https://wiki.gnome.org/OCRFeeder
# Git snapshot from https://gitlab.gnome.org/GNOME/ocrfeeder/tree/master
Source0:	https://download.gnome.org/sources/ocrfeeder/%{url_ver}/ocrfeeder-%{version}.tar.xz
Patch0:		ocrfeeder-0.8.5-use-gtk3-typelib.patch
Patch1:		ocrfeeder-0.8.5-disable-runtime-gi-dep-check-on-build-time.patch
Patch2:		ocrfeeder-0.8.5-pack_start.patch
BuildRequires:	aspell-en
BuildRequires:	glib-gettextize
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	yelp-tools
BuildRequires:	python3dist(odfpy)
BuildRequires:	python3dist(pillow)
BuildRequires:	python3dist(pyenchant)
BuildRequires:	python3dist(python-sane)
BuildRequires:	python3dist(reportlab)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(python3)
Requires:	gnome-doc-utils
Requires:	tesseract-language
Requires:	python3dist(lxml)
Requires:	python3dist(odfpy)
Requires:	python3dist(pillow)
Requires:	python3dist(pyenchant)
Requires:	python3dist(python-sane)
Requires:	python3dist(reportlab)
Requires:	typelib(GooCanvas) = 2.0
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(GtkSpell) = 3.0
Recommends:	tesseract-eng
Recommends:	tesseract-rus
BuildArch:	noarch

%description
OCRFeeder is a complete Optical Character Recognition and Document Analysis
and Recognition program.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%license COPYING
%{_appdatadir}/*.appdata.xml
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_datadir}/%{name}/
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/scalable/*/*.svg
%{_mandir}/man1/%{name}*1.*
%{python3_sitelib}/%{name}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3786 |21cr|ocsinventory-2.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%global __requires_exclude pear\\(dbconfig.inc.php\\)|pear\\(composants.php\\)|pear\\(dico.php\\)|pear\\(opt_groups.php\\)|pear\\(opt_pack.php\\)|pear\\(opt_sup.php\\)|pear\\(domxml-php4-to-php5.php\\)

%define schema_version 2.0

Summary:	Open Computer and Software Inventory Next Generation
Name:		ocsinventory
Version:	2.11.1
Release:	1
License:	GPL
Group:		System/Servers
URL:		http://www.ocsinventory-ng.org/
Source0:	https://github.com/OCSInventory-NG/OCSInventory-ocsreports/releases/download/%{version}/OCSNG_UNIX_SERVER-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Apache::DBI)
BuildRequires:	perl(DBD::mysql)
BuildRequires:	perl(Net::IP)
BuildRequires:	perl(XML::Simple)
# Main package is a dummy package
Requires:	ocsinventory-server  = %{version}-%{release}
Requires:	ocsinventory-reports = %{version}-%{release}

%description
Open Computer and Software Inventory Next Generation is an application
designed to help a network or system administrator keep track of the
computers configuration and software that are installed on the network.

OCS Inventory is also able to detect all active devices on your network,
such as switch, router, network printer and unattended devices.

OCS Inventory NG includes package deployment feature on client computers

%files
%doc README* LICENSE Apache/Changes

#---------------------------------------------------------------------

%package server
Group:		System/Servers
Summary:	Communication server
Requires:	user(apache)
Requires:	apache-mod_perl
Requires:	perl(Apache::DBI)
Requires:	perl(XML::Simple)
Requires:	perl(Compress::Zlib)
Requires:	perl(DBD::mysql)
Requires:	perl(Net::IP)
Requires:	perl(SOAP::Lite)

%description server
This package provides the Communication server, which will handle HTTP
communications between database server and agents.

%files server
%doc README* LICENSE Apache/Changes
%{perl_vendorlib}/Apache
%attr(-,apache,apache) %{_localstatedir}/log/ocsinventory-server
%config(noreplace) %{_webappconfdir}/ocsinventory-server.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/ocsinventory-server

#---------------------------------------------------------------------

%package reports
Group:		System/Servers
Summary:	Administration console
Requires:	user(apache)
Requires:	apache-mod_php
Requires:	php-mysql
Requires:	php-xml
Requires:	php-zip
Requires:	php-gd
Requires:	php-mbstring
Recommends:	php-ldap
Recommends:	mysql-MariaDB

%description reports
This package provides the Administration console, which will allow 
administrators to query the database server through their favorite browser.

%files reports
%doc README* LICENSE
%{_datadir}/ocsinventory
%config(noreplace) %{_webappconfdir}/ocsinventory-reports.conf
%dir %{_sysconfdir}/ocsinventory
%dir %{_sysconfdir}/ocsinventory/ocsreports
# %attr(660,root,apache) %config(noreplace) %{_sysconfdir}/ocsinventory/ocsreports/dbconfig.inc.php
%attr(-,apache,apache) %{_localstatedir}/lib/ocsinventory-reports

#---------------------------------------------------------------------
%prep
%setup -q -n OCSNG_UNIX_SERVER-%{version}

perl -pi -e 's/SCHEMA_VERSION/%{schema_version}/' ocsreports/index.php

%build
cd Apache
perl Makefile.PL INSTALLDIRS=vendor
%make

%install

# ocsinventory-server
pushd Apache
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';' 

# To avoid bad dependency on perl(mod_perl)
rm -f %{buildroot}%{perl_vendorlib}/Apache/Ocsinventory/Server/Modperl1.pm 

popd

install -d -m 755 %{buildroot}%{_localstatedir}/log/ocsinventory-server

install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/ocsinventory-server<<EOF
/var/log/ocsinventory-server/*.log {
    missingok
}
EOF

install -d -m 755 %{buildroot}%{_webappconfdir}
install -m 644 etc/ocsinventory/ocsinventory-server.conf \
    %{buildroot}%{_webappconfdir}
perl -pi \
    -e 's|DATABASE_SERVER|localhost|;' \
    -e 's|DATABASE_PORT|3306|;' \
    -e 's|VERSION_MP|2|;' \
    -e 's|PATH_TO_LOG_DIRECTORY|%{_localstatedir}/log/ocsinventory-server|;' \
    %{buildroot}%{_webappconfdir}/ocsinventory-server.conf 

# --- ocsinventory-reports ------------------------------------------------------

install -d -m 755 %{buildroot}%{_datadir}/ocsinventory
cp -pr ocsreports %{buildroot}%{_datadir}/ocsinventory

install -d -m 755 %{buildroot}%{_localstatedir}/lib/ocsinventory-reports
install -d -m 755 %{buildroot}%{_localstatedir}/lib/ocsinventory-reports/download
install -d -m 755 %{buildroot}%{_localstatedir}/lib/ocsinventory-reports/ipd

install -m 755 binutils/ipdiscover-util.pl %{buildroot}%{_datadir}/ocsinventory/ocsreports/ipdiscover-util.pl 

install -d -m 755 %{buildroot}%{_sysconfdir}/ocsinventory
install -d -m 755 %{buildroot}%{_sysconfdir}/ocsinventory/ocsreports

# mv %{buildroot}%{_datadir}/ocsinventory/ocsreports/dbconfig.inc.php \
#     %{buildroot}%{_sysconfdir}/ocsinventory/ocsreports/dbconfig.inc.php

pushd %{buildroot}%{_datadir}/ocsinventory/ocsreports
ln -s ../../../../%{_sysconfdir}/ocsinventory/ocsreports/dbconfig.inc.php .
popd

install -m 644 etc/ocsinventory/ocsinventory-reports.conf \
    %{buildroot}%{_webappconfdir}
perl -pi \
    -e 's|OCSREPORTS_ALIAS|/ocsinventory-reports|;' \
    -e 's|PATH_TO_OCSREPORTS_DIR|%{_datadir}/ocsinventory/ocsreports|;' \
    -e 's|PACKAGES_ALIAS|/ocsinventory-download|;' \
    -e 's|PATH_TO_PACKAGES_DIR|%{_localstatedir}/lib/ocsinventory-reports/download|;' \
    %{buildroot}%{_webappconfdir}/ocsinventory-reports.conf 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3787 |21cr|ocsinventory-agent-2.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:       ocsinventory-agent
Version:    2.10.0
Release:    1
Summary:    Unified client for OCS-Inventory
License:    GPLv2+
Group:      System/Servers
URL:        http://www.ocsinventory-ng.org/
Source0:    https://github.com/OCSInventory-NG/UnixAgent/releases/download/v%{version}/Ocsinventory-Unix-Agent-%{version}.tar.gz
BuildRequires:   perl-devel
Provides:   perl-Ocsinventory-Agent = %{EVRD}
Requires:   net-tools
Requires:   pciutils
Requires:   nmap
Requires:   monitor-edid
Requires:   dmidecode >= 2.6
Requires:   perl-Net-IP
Requires:   perl-XML-Simple
Requires:   perl-Net-SSLeay
Requires:   perl-Digest-MD5
Requires:   perl-libwww-perl
Recommends:   perl-Net-CUPS
Recommends:   perl-Proc-Daemon
Recommends:   ipmitool

%description
Linux agent for ocs-inventory. Dialog between client computers and management
server is based on actual standards, HTTP protocol and XML data formatting.

%prep
%setup -q -n Ocsinventory-Unix-Agent-%{version}
rm -f lib/Ocsinventory/Agent/Network.pm.orig

sed -e 's/\r//' -i snmp/mibs/local/6876.xml

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
%make

%install
rm -f run-postinst
%makeinstall_std

install -d %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/
rm -d %{buildroot}%{_bindir}

install -d -m 755 %{buildroot}%{_sysconfdir}/ocsinventory
cat > %{buildroot}%{_sysconfdir}/ocsinventory/ocsinventory-agent.cfg<<EOF
basevardir = %{_localstatedir}/lib/ocsinventory-agent
logger  = File
logfile = %{_localstatedir}/log/ocsinventory-agent/ocsinventory-agent.log
EOF

mkdir -p %{buildroot}%{_localstatedir}/{log,lib}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/{logrotate.d,sysconfig,ocsinventory/softwares}

mkdir %{buildroot}%{_localstatedir}/lib/%{name}/download
cp -pr snmp %{buildroot}%{_localstatedir}/lib/%{name}/snmp

mkdir -p %{buildroot}/%{_libexecdir}/%{name}
sed -e 's;/etc/;%{_sysconfdir}/;' \
    -e 's;/var/;%{_localstatedir}/;' \
    -e 's;/usr/sbin/;%{_sbindir}/;' \
    contrib/cron/ocsinventory-agent.cron > %{buildroot}%{_libexecdir}/%{name}/ocsinventory-agent.cron
cp contrib/cron/ocsinventory-agent.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

mkdir -p %{buildroot}/%{_unitdir}
cp contrib/cron/systemd/* %{buildroot}/%{_unitdir}/

# cleanup
rm -f %{buildroot}%{perl_vendorlib}/Ocsinventory/postinst.pl
rm -rf %{buildroot}%{perl_vendorlib}/Ocsinventory/Agent/Backend/OS/Win32*
rm -f %{buildroot}%{perl_vendorarch}/auto/Ocsinventory/Unix/Agent/.packlist
rm -f %{buildroot}%{perl_vendorarch}/../perllocal.pod
find %{buildroot} -type f -exec chmod 644 {} \;
find %{buildroot} -type f -name .DS_Store -exec rm {} \;
find %{buildroot} -type f -name ._.DS_Store -exec rm {} \;
strip %{buildroot}%{_sbindir}/ipdiscover

%files
%doc AUTHORS Changes LICENSE README* THANKS
%attr(0755, root, root) %{_sbindir}/%{name}
%attr(0755, root, root) %{_sbindir}/ipdiscover
%{_libexecdir}/%{name}/
%{_mandir}/man1/%{name}.*
%{_mandir}/man3/Ocsinventory*
%{perl_vendorlib}/Ocsinventory
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/ocsinventory
%{_localstatedir}/log/%{name}
%{_localstatedir}/lib/%{name}
%{_unitdir}/*

%post
# See if sysadmin requested ocs agent run on boot
%systemd_post ocsinventory-agent-onboot.timer

# See if sysadmin requested ocs agent hourly run
%systemd_post ocsinventory-agent-hourly.timer

# See if sysadmin requested ocs agent daily run
%systemd_post ocsinventory-agent-daily.timer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3788 |21cr|ocs-url-3.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An install helper program for desktop stuff
Name:		ocs-url
Version:	3.0.1
Release:	5
Group:		Development/Other
License:	GPLv3+
URL:		https://github.com/ocs-url/ocs-url
Source0:	%{name}-release-%{version}.tar.gz
# https://github.com/akiraohgaki/qtlib
# got from scripts/import.sh script and xz archived.
# this is a build dep not included in source
Source1:	qtlib.tar.xz
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Network)
Requires:	qt5-qtquickcontrols-qml
Provides:	xdgurl = %{EVRD}
Obsoletes:	xdgurl < 3.0.0
%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

%description
An install helper program for desktop stuff.

%prep
%setup -qn %{name}-release-%{version}
tar -xvf %{SOURCE1} -C lib/

%build
%qmake_qt5 \
    PREFIX=%{_prefix}
%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3789 |21cr|octave-6.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# From configure.ac:OCTAVE_API_VERSION=
%define	octave_api api-v56

%bcond_without	audio
%bcond_without	gui

%ifnarch %{ix64}
%bcond_without	java
%else
%bcond_with	java
%endif

Summary:	High-level language for numerical computations
Name:		octave
Version:	6.4.0
Release:	2
License:	GPLv3+
Group:		Sciences/Mathematics
Url:		http://www.octave.org/
Source0:	ftp://ftp.gnu.org/gnu/octave/%{name}-%{version}.tar.lz
Source99:	%{name}.macros
Source100:	%{name}.rpmlintrc
BuildRequires:	bison
BuildRequires:	dejagnu
BuildRequires:	desktop-file-utils
BuildRequires:	emacs
BuildRequires:	emacs-bin
BuildRequires:	flex
BuildRequires:	gcc-c++ >= 5.0
BuildRequires:	gcc-gfortran
BuildRequires:	gnuplot
# (Abel) not strictly needed, but play safe
BuildRequires:	gperf
BuildRequires:	lzip
# for build docs (now docs build disabled)
#BuildRequires:	texinfo
#BuildRequires:	texlive
# (Lev) needed to support sparse matrix functionality
BuildRequires:	amd-devel
BuildRequires:	bzip2-devel
BuildRequires:	camd-devel
BuildRequires:	ccolamd-devel
BuildRequires:	cholmod-devel
BuildRequires:	colamd-devel
BuildRequires:	cxsparse-devel
BuildRequires:	fltk-devel
BuildRequires:	freetype-devel
BuildRequires:	glpk-devel
BuildRequires:	gl2ps-devel
BuildRequires:	gomp-devel
%if %{with java}
BuildRequires:	java-devel >= 1.5
%endif
BuildRequires:	hdf5-devel
# For experimental JIT
BuildRequires:	llvm-devel
BuildRequires:	pth-devel
BuildRequires:	qhull-devel
BuildRequires:	qrupdate-devel
BuildRequires:	readline-devel
BuildRequires:	suitesparse-common-devel
BuildRequires:	umfpack-devel
BuildRequires:	zlib-devel
# (Mitya) for eigs and svds to work
BuildRequires:	pkgconfig(arpack)
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fftw3) >= 0:3.0.1
BuildRequires:	pkgconfig(fftw3f)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(osmesa)
BuildRequires:	pkgconfig(pixman-1)
%if %{with audio}
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sndfile)
%endif
%if %{with gui}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	qt5-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	qscintilla-qt5-devel
%endif
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
Requires:	gnuplot
Requires(post):	rpm-helper
Provides:	octave(api) = %{octave_api}

%description
GNU Octave is a high-level language, primarily intended for numerical
computations. It provides a convenient command line interface for solving
linear and nonlinear problems numerically, and for performing other numerical
experiments using a language that is mostly compatible with Matlab. It may
also be used as a batch-oriented language.
It has extensive tools for solving common numerical linear algebra problems,
finding the roots of nonlinear equations, integrating ordinary functions,
manipulating polynomials, and integrating ordinary differential and
differential-algebraic equations. It is easily extensible and customizable via
user-defined functions written in Octave's own language, or using dynamically
loaded modules written in C++, C, Fortran, or other languages.

%files
%doc AUTHORS BUGS ChangeLog COPYING NEWS README
%doc examples INSTALL.OCTAVE
%{_bindir}/%{name}*
%config(noreplace) /etc/ld.so.conf.d/%{name}-%{_arch}.conf
%{_libdir}/%{name}*
%{_datadir}/%{name}
%if "%{_libdir}" != "%{_libexecdir}"
%{_libexecdir}/%{name}
%endif
%{_mandir}/man*/%{name}*
%{_datadir}/icons/*/*/apps/%{name}.png
%{_datadir}/icons/*/*/apps/%{name}.svg
%{_infodir}/%{name}.info*
%{_datadir}/applications/*
%{_datadir}/metainfo/org.octave.Octave.appdata.xml

#------------------------------------------------------------------

%package devel
Summary:	Development headers and files for Octave
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	gcc-c++
Requires:	gcc-gfortran
Requires:	hdf5-devel
Requires:	readline-devel
Requires:	zlib-devel
Requires:	pkgconfig(gl)
Requires:	pkgconfig(glu)
Requires:	pkgconfig(blas)
Requires:	pkgconfig(fftw3)
Requires:	pkgconfig(fftw3f)
Requires:	pkgconfig(lapack)
%rename	octave3-devel

%description devel
The octave-devel package contains files needed for developing applications
which use GNU Octave.

%files devel
%{_bindir}/mkoctfile*
%{_includedir}/%{name}-%{version}
%{_mandir}/man1/mkoctfile.1*
%{_rpmmacrodir}/*%{name}*
%{_libdir}/pkgconfig/*.pc

#---------------------------------------------------------------

%package doc
Summary:	Documentation for Octave, a numerical computational language
Group:		Sciences/Mathematics

%description doc
GNU Octave is a high-level language, primarily intended for numerical
computations. It provides a convenient command line interface for solving
linear and nonlinear problems numerically, and for performing other numerical
experiments using a language that is mostly compatible with Matlab.
It may also be used as a batch-oriented language.
This package contains documentation of Octave in various formats.

%files doc
%doc doc/refcard/refcard-a4.pdf
%doc doc/liboctave/liboctave.pdf
%{_infodir}/liboctave.*

#---------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Check that octave_api is set correctly (autogenerated file)
if ! grep -q '^OCTAVE_API_VERSION="%{octave_api}"' configure.ac
then
    echo "octave_api variable in spec does not match configure.ac"
    exit 1
fi


%build
export QTDIR="%{_libdir}/qt5"
export PATH="%{_libdir}/qt5/bin:$PATH"
autoreconf -vfi
# See INSTALL.OCTAVE file for the details
%bcond_with enable64
export CPPFLAGS="%{optflags} -DH5_USE_16_API"
export GNUPLOT=%{_bindir}/gnuplot-nox
%configure	\
		--enable-dl	\
		--enable-shared	\
		--disable-static \
		--with-gnu-ld \
%if %{with enable64}
		--enable-64	\
%else
		--disable-64 \
%endif
		--disable-jit \
%if %{with java}
		--enable-java	\
%else
		--disable-java	\
%endif
		--with-magick="GraphicsMagick" \
		--with-openssl \
		--with-amd="-lamd -lsuitesparseconfig"	\
		--with-camd="-lcamd -lsuitesparseconfig"	\
		--with-colamd="-lcolamd -lsuitesparseconfig"	\
		--with-ccolamd="-lccolamd -lsuitesparseconfig" \
		--with-x \
		--with-qt=5 \
		--disable-docs

%make OCTAVE_RELEASE="%{distribution} %{version}-%{release}" LDFLAGS="-lgfortran -llapack -lGL -lGLU -lpthread"



%install
%makeinstall_std

# Make library links
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/%{name}-%{version}" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf

# Remove RPM_BUILD_ROOT from ls-R files
#perl -pi -e "s,%{buildroot},," %{buildroot}%{_libexecdir}/%{name}/ls-R
#perl -pi -e "s,%{buildroot},," %{buildroot}%{_datadir}/%{name}/ls-R

find %{buildroot} -name "*.oct" -print0 | xargs -t -0 -r strip --strip-unneeded

# Prepare documentation
rm -rf package-doc
mkdir -p package-doc

# Create desktop file
mv %{buildroot}%{_datadir}/applications/org.%{name}.Octave.desktop \
	%{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install --add-category Education --remove-category Development \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

# Create directories for add-on packages
HOST_TYPE=`%{buildroot}%{_bindir}/%{name}-config -p CANONICAL_HOST_TYPE`
mkdir -p %{buildroot}%{_libexecdir}/%{name}/site/oct/%{octave_api}/$HOST_TYPE
mkdir -p %{buildroot}%{_libexecdir}/%{name}/site/oct/$HOST_TYPE
mkdir -p %{buildroot}%{_datadir}/%{name}/packages
touch %{buildroot}%{_datadir}/%{name}/%{name}_packages

# build and install docs disabled, but files is present.
# manual install needed files to right place
mkdir -p %{buildroot}%{_infodir}
mkdir -p %{buildroot}%{_mandir}/man1
cp doc/liboctave/liboctave.info %{buildroot}%{_infodir}
cp doc/interpreter/octave.info %{buildroot}%{_infodir}
cp doc/interpreter/*.1 %{buildroot}%{_mandir}/man1

# Install rpm macros
%install_macro %{name} %{SOURCE99}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3790 |21cr|ode-0.16.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major			 8
%define libname		 %mklibname %{name} %{major}
%define develname	 %mklibname %name -d

Summary:	The Open Dynamics Engine
Name:		ode
Version:	0.16.2
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.ode.org
Source0:	https://bitbucket.org/odedevs/ode/downloads/%{name}-%{version}.tar.gz
Source1:	ode-config.1
Patch0:		ode-iso-cpp.patch

BuildRequires:	mesa-common-devel
BuildRequires:	pkgconfig(freeglut)
BuildRequires:	gcc-c++

%description
The Open Dynamics Engine (ODE) is a free software library for the
simulation of Rigid Body Dynamics. It is has been primarily written
-by Russell Smith. ODE builds under a variety of different Windows
and Unix platforms.

ODE is useful for simulating things like vehicles, objects in virtual
reality environments, and virtual creatures.

%package -n	%{libname}
Summary:	Physics simulation library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with ODE.

%files -n %{libname}
%doc CHANGELOG.txt README.md
%{_libdir}/libode.so.%{major}{,.*}

#-------------------------------------------------------
%package -n	%{develname}

Summary:	Headers and libraries to develop ODE applications
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n	%{develname}
The Open Dynamics Engine (ODE) is a free software library for the
simulation of Rigid Body Dynamics. It is has been primarily written
by Russell Smith. ODE builds under a variety of different Windows
and Unix platforms.

ODE is useful for simulating things like vehicles, objects in virtual
reality environments, and virtual creatures.

%files -n %{develname}
%doc CHANGELOG.txt README.md
%dir %{_includedir}/%{name}
%{_bindir}/%{name}-config
%{_includedir}/%{name}/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man1/ode-config.1*
#-------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="$CFLAGS"
export CFLAGS CXXFLAGS
export X_LIBS="-lX11"
%configure --enable-shared \
    --disable-static \
    --enable-double-precision


%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/man1
gzip -c9 %{SOURCE1} | tee -a %{buildroot}%{_mandir}/man1/ode-config.1.gz

find %{buildroot} -name '*.la' -delete -print



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3791 |21cr|odvr-0.1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: User-space driver for USB-enabled Olympus DVRs
Name: odvr
Version: 0.1.5
Release: 5
Source0: %{name}-%{version}.tar.bz2
License: GPLv3
Group: System/Kernel and hardware
Url: http://code.google.com/p/odvr/
BuildRequires: gtk+2-devel
BuildRequires: usb1.0-devel
BuildRequires: usb-compat-devel
BuildRequires: sndfile-devel

%description
odvr is a user-space driver for USB-enabled Olympus DVRs that do not
support the USB Mass Storage specification. odvr is tested against the
VN-960PC, but should support other "VN" Olympus models. See
SupportedDevices for a list of known-working devices.

%prep
%setup -q

%build
%make

%install
rm -rf %{buildroot}
%__install -d %{buildroot}
%__install -d %{buildroot}%{_bindir}
%__install -m 755 odvr %{buildroot}%{_bindir}
%__install -m 755 odvr-gui %{buildroot}%{_bindir}
%__install -d %{buildroot}%_sysconfdir/udev/rules.d
%__install -m 644 41-odvr.rules %{buildroot}%_sysconfdir/udev/rules.d

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/odvr
%{_bindir}/odvr-gui
%_sysconfdir/udev/rules.d/41-odvr.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3792 |21cr|office-runner-1.0.3-0.gitcd81b8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit cd81b835a4fa1bcee654834577170c721a66763a
%define commit_short %(echo %{commit} | head -c6)

Summary:	Game where tallying up the time taken to go from office to the other
Name:		office-runner
Version:	1.0.3
Release:	0.git%{commit_short}.1
License:	GPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/office-runner
Source0:	https://github.com/GNOME/office-runner/archive/%{version}.tar.gz?/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)

%description
ame where tallying up the time taken to go from one place in your office
to the other.

%files -f %{name}.lang
%doc NEWS
%license COPYING
%{_bindir}/%{name}
%{_datadir}/appdata/org.gnome.OfficeRunner.appdata.xml
%{_datadir}/applications/org.gnome.OfficeRunner.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*x*/apps/org.gnome.OfficeRunner.png

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make

%install
%make_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3793 |21cr|offlineimap-7.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Powerful IMAP/Maildir synchronization and reader support
Name:		offlineimap
Version:	7.3.4
Release:	1
License:	GPLv2
Group:		Networking/Mail
Url:		http://offlineimap.org/
Source:		https://github.com/OfflineIMAP/offlineimap/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-six

%description
OfflineIMAP is a tool to simplify your e-mail  reading.  With
OfflineIMAP, you can read the same mailbox from multiple computers.
You get a current copy of your messages on each computer, and changes
you make one place will be visible on all other systems. For instance,
you can delete a message on your home computer, and it will appear
deleted on your work computer as well. OfflineIMAP is also useful if
you want to use a mail reader that does not have IMAP support, has poor
IMAP support, or does not provide disconnected operation.

%prep
%setup -q

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc COPY* docs/
%doc %{name}.conf*
%{_bindir}/%{name}
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3794 |21cr|oggfwd-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple icecast 2 client to stream a ogg stream from stdin
Name:		oggfwd
Version:	0.2
Release:	7
# taken from debian, as there is no upstream tarball
Source0:	%{name}_%{version}.orig.tar.gz
# patch taken from debian
Patch0:		oggfwd-0.2-overlinking.patch 
License:	GPLv2
Group:		Video
Url:		http://v2v.cc/~j/oggfwd/
BuildRequires:	libshout-devel
 
%description
Simple icecast2 client that send the stream read from stdin.

%prep
%setup -q
%patch0 -p0

%build
CFLAGS="%{optflags}" %make

%install
mkdir -p %{buildroot}/%{_bindir}/
cp oggfwd %{buildroot}/%{_bindir}/ 

%files
%doc README ChangeLog
%{_bindir}/oggfwd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3795 |21cr|oggvideotools-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           oggvideotools
Version:        0.9.1
Release:        1
Summary:        Toolbox for manipulating Ogg video files
Group:          Video
License:        GPLv2+
URL:            http://dev.streamnik.de/oggvideotools.html
Source0:        http://downloads.sourceforge.net/project/oggvideotools/oggvideotools/%{name}-%{version}/%{name}-%{version}.tar.gz
# Fedora patches
Patch0001:      0001-scripts-install-mkSlideshow-as-well.patch
Patch0002:      0002-scripts-install-to-bin-not-sbin.patch
Patch0003:      0003-docs-install-to-share-man.patch

BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(theora)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(vorbisenc)
BuildRequires:  pkgconfig(ogg)
BuildRequires:  ffmpeg-devel
BuildRequires:  pkgconfig(gdlib)
BuildRequires:  boost-devel

%description
A toolbox for manipulating Ogg video files, which usually consist of a
video stream (Theora) and an audio stream (Vorbis). It includes a
number of handy command line tools for manipulating these video files,
such as for splitting the different streams.

%files
%doc README ChangeLog COPYING docs/DocuOggVideoTools.pdf
%{_bindir}/ogg*
%{_bindir}/mk*
%{_mandir}/man1/*.1.*
#-------------------------------------------

%prep
%setup -q
%autopatch -p1

chmod 644 docs/DocuOggVideoTools.pdf
sed -i '8i #include <string.h>'  src/base/test/{decoderTest,encoderTest}.cpp

%build
pushd build
cmake -DCMAKE_INSTALL_PREFIX="/usr" ..
make
popd

%install
%makeinstall_std -C build

chmod +x %{buildroot}%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3796 |21cr|oglappth-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define releasedate 20111012

%define major 2
%define libname %mklibname oglappth %{major}
%define devname %mklibname oglappth -d

Summary:	Libraries for the oglappth chemistry package
Name:		oglappth
Version:	1.0.0
Release:	8
License:	GPLv2+
Group:		Sciences/Chemistry
Url:		http://www.bioinformatics.org/ghemical/ghemical/index.html
Source0:	http://www.bioinformatics.org/ghemical/download/release%{releasedate}/lib%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)

%description
Library for creating portable OpenGL applications with easy-to-code scene
setup and selection operations.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn lib%{name}-%{version}

%build
%configure

%make LIBS="-lGL -lGLU"

%install
%makeinstall


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3797 |21cr|ogmrip-1.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	mplayerver 1.3.0

Summary:	Graphical DVD ripper for Gtk2
Name:		ogmrip
Version:	1.0.1
Release:	2
#gw the lib is LGPL, the main program is GPL
License:	LGPLv2+ and GPLv2+
Group:		Video
Url:		http://ogmrip.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/ogmrip/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	faac >= 1.24
BuildRequires:	gocr >= 0.39
BuildRequires:	gpac >= 0.7
BuildRequires:	gtk-doc
BuildRequires:	imagemagick
BuildRequires:	intltool >= 0.35
BuildRequires:	lame >= 3.96
BuildRequires:	mencoder >= %{mplayerver}
BuildRequires:	mkvtoolnix >= 0.9.5
BuildRequires:	ogmtools >= 1.0
BuildRequires:	vorbis-tools
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(dbus-glib-1) >= 0.7.2
BuildRequires:	pkgconfig(dvdread) >= 0.9.4
BuildRequires:	pkgconfig(enca) >= 1.9
BuildRequires:	pkgconfig(enchant) >= 1.1.0
BuildRequires:	pkgconfig(gconf-2.0) >= 2.6.0
BuildRequires:	pkgconfig(glib-2.0) >= 2.16.0
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.12.0
BuildRequires:	pkgconfig(libglade-2.0) >= 2.5.0
BuildRequires:	pkgconfig(libnotify) >= 0.7
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
Requires:	faac
Requires:	gocr
Requires:	gpac
Requires:	lame
Requires:	mencoder >= %{mplayerver}
Requires:	mkvtoolnix
Requires:	ogmtools
Requires:	subtitleripper
Requires:	vorbis-tools

%description
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files.
This program:
* outputs ogm, avi or matroska files;
* provides a lot of codecs (ogg vorbis, mp3, pcm, ac3, xvid, lavc);
* calculates video bitrate for a given filesize;
* calculates cropping parameters and scaling factors;
* uses maximum quality codec switches;
* supports subtitles extraction;
* rips contiguous chapters;
* is extensible through plugins;
* features a HIG-compliant GNOME 2 user interface.
This package is in restricted as it depends on faac.

%files -f %{name}.lang
%doc README ChangeLog COPYING TODO AUTHORS
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_bindir}/avibox
%{_bindir}/%{name}
%{_bindir}/subp2pgm
%{_bindir}/subp2png
%{_bindir}/subp2tiff
%{_bindir}/subptools
%{_bindir}/dvdcpy
%{_bindir}/theoraenc
%dir %{_libdir}/ogmrip
%dir %{_libdir}/ogmrip/audio-plugins
%{_libdir}/ogmrip/audio-plugins/libogmrip-aac.so
%{_libdir}/ogmrip/audio-plugins/libogmrip-acopy.so
%{_libdir}/ogmrip/audio-plugins/libogmrip-mp3.so
%{_libdir}/ogmrip/audio-plugins/libogmrip-vorbis.so
%{_libdir}/ogmrip/audio-plugins/libogmrip-wav.so
%dir %{_libdir}/ogmrip/container-plugins
%{_libdir}/ogmrip/container-plugins/libogmrip-avi.so
%{_libdir}/ogmrip/container-plugins/libogmrip-mkv.so
%{_libdir}/ogmrip/container-plugins/libogmrip-mov.so
%{_libdir}/ogmrip/container-plugins/libogmrip-mp4.so
%{_libdir}/ogmrip/container-plugins/libogmrip-ogg.so
%dir %{_libdir}/ogmrip/options-plugins
%{_libdir}/ogmrip/options-plugins/libogmrip-lavc-options.so
%{_libdir}/ogmrip/options-plugins/libogmrip-x264-options.so
%{_libdir}/ogmrip/options-plugins/libogmrip-xvid-options.so
%dir %{_libdir}/ogmrip/subp-plugins
%{_libdir}/ogmrip/subp-plugins/libogmrip-srt.so
%{_libdir}/ogmrip/subp-plugins/libogmrip-vobsub.so
%dir %{_libdir}/ogmrip/video-plugins
%{_libdir}/ogmrip/video-plugins/libogmrip-lavc-mpeg4.so
%{_libdir}/ogmrip/video-plugins/libogmrip-theora.so
%{_libdir}/ogmrip/video-plugins/libogmrip-x264.so
%{_libdir}/ogmrip/video-plugins/libogmrip-xvid.so
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/*.1*
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%define	libname %mklibname %{name} %{major}

%package -n %{libname}
Summary:	OGMRip shared library
Group:		System/Libraries

%description -n %{libname}
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files. This package contains OGMRip shared library.
It is in restricted as it depends on faac.

%files -n %{libname}
%doc COPYING
%{_libdir}/libogmrip.so.%{major}*

#----------------------------------------------------------------------------

%define	libogmdvd %mklibname ogmdvd %{major}

%package -n %{libogmdvd}
Summary:	OGMRip shared library
Group:		System/Libraries
Conflicts:	%{_lib}ogmrip1 < 1.0.0

%description -n %{libogmdvd}
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files. This package contains OGMRip shared library.
It is in restricted as it depends on faac.

%files -n %{libogmdvd}
%doc COPYING
%{_libdir}/libogmdvd.so.%{major}*

#----------------------------------------------------------------------------

%define	libogmdvdgtk %mklibname ogmdvdgtk %{major}

%package -n %{libogmdvdgtk}
Summary:	OGMRip shared library
Group:		System/Libraries
Conflicts:	%{_lib}ogmrip1 < 1.0.0

%description -n %{libogmdvdgtk}
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files. This package contains OGMRip shared library.
It is in restricted as it depends on faac.

%files -n %{libogmdvdgtk}
%doc COPYING
%{_libdir}/libogmdvd-gtk.so.%{major}*

#----------------------------------------------------------------------------

%define	libogmjob %mklibname ogmjob %{major}

%package -n %{libogmjob}
Summary:	OGMRip shared library
Group:		System/Libraries
Conflicts:	%{_lib}ogmrip1 < 1.0.0

%description -n %{libogmjob}
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files. This package contains OGMRip shared library.
It is in restricted as it depends on faac.

%files -n %{libogmjob}
%doc COPYING
%{_libdir}/libogmjob.so.%{major}*

#----------------------------------------------------------------------------

%define	libogmripgtk %mklibname ogmripgtk %{major}

%package -n %{libogmripgtk}
Summary:	OGMRip shared library
Group:		System/Libraries
Conflicts:	%{_lib}ogmrip1 < 1.0.0

%description -n %{libogmripgtk}
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files. This package contains OGMRip shared library.
It is in restricted as it depends on faac.

%files -n %{libogmripgtk}
%doc COPYING
%{_libdir}/libogmrip-gtk.so.%{major}*

#----------------------------------------------------------------------------

%define	libogmriplavc %mklibname ogmriplavc %{major}

%package -n %{libogmriplavc}
Summary:	OGMRip shared library
Group:		System/Libraries
Conflicts:	%{_lib}ogmrip1 < 1.0.0

%description -n %{libogmriplavc}
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files. This package contains OGMRip shared library.
It is in restricted as it depends on faac.

%files -n %{libogmriplavc}
%doc COPYING
%{_libdir}/libogmrip-lavc.so.%{major}*

#----------------------------------------------------------------------------

%define	libogmripmplayer %mklibname ogmripmplayer %{major}

%package -n %{libogmripmplayer}
Summary:	OGMRip shared library
Group:		System/Libraries
Conflicts:	%{_lib}ogmrip1 < 1.0.0

%description -n %{libogmripmplayer}
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files. This package contains OGMRip shared library.
It is in restricted as it depends on faac.

%files -n %{libogmripmplayer}
%doc COPYING
%{_libdir}/libogmrip-mplayer.so.%{major}*

#----------------------------------------------------------------------------

%define	devname %mklibname -d %{name}

%package -n %{devname}
Summary:	DVD ripping libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libogmdvd} = %{EVRD}
Requires:	%{libogmdvdgtk} = %{EVRD}
Requires:	%{libogmjob} = %{EVRD}
Requires:	%{libogmripgtk} = %{EVRD}
Requires:	%{libogmriplavc} = %{EVRD}
Requires:	%{libogmripmplayer} = %{EVRD}

%description -n %{devname}
OGMRip is an application and a set of libraries for ripping and encoding DVD
into DivX/OGM files. This package contains the development parts of these
libraries.
It is in restricted as it depends on faac,

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}
%{_includedir}/ogmdvd/
%{_includedir}/ogmjob/
%{_libdir}/lib*.so
%{_libdir}/ogmrip/video-plugins/ogmrip*.h
%{_libdir}/pkgconfig/ogmdvd.pc
%{_libdir}/pkgconfig/ogmdvd-gtk.pc
%{_libdir}/pkgconfig/ogmjob.pc
%{_libdir}/pkgconfig/ogmrip.pc
%{_libdir}/pkgconfig/ogmrip-gtk.pc
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
%configure --disable-static
%make


%install
%makeinstall_std

mkdir -p %{buildroot}{%{_liconsdir},%{_miconsdir},%{_iconsdir}}
ln -s %{_datadir}/pixmaps/%{name}.png %{buildroot}%{_liconsdir}/
convert -scale 32 data/%{name}.png %{buildroot}%{_iconsdir}/%{name}.png
convert -scale 16 data/%{name}.png %{buildroot}%{_miconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3798 |21cr|ogre-13.5.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 13
%define oname OGRE
%define uversion %(echo %{version}| tr . _)
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Object-Oriented Graphics Rendering Engine
Name:		ogre
################################################################################
# !!! Never backport this package as it requires full rebuild of all based games
Version:	13.5.2
################################################################################
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.ogre3d.org/
Source0:	https://github.com/OGRECave/ogre/archive/v%{version}.tar.gz
Source1:	https://github.com/ocornut/imgui/archive/v1.88.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		ogre-SDL-headers.patch
Patch1:		ogre-13.4.4-imgui-dir.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	doxygen
BuildRequires:	atomic-devel
BuildRequires:	boost-devel
BuildRequires:	freeimage-devel
BuildRequires:	pkgconfig(tinyxml2)
BuildRequires:	pugixml-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zziplib)
#Requires to build cg-plugin, but we cannot do it as cg-devel is in Non-Free
#BuildRequires:	cg-devel
#Recommends:	ogre-cg-plugin

%description
OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented,
flexible 3D engine written in C++ designed to make it easier and more
intuitive for developers to produce games and demos utilising 3D hardware.
The class library abstracts all the details of using the underlying system
libraries like Direct3D and OpenGL and provides an interface based on world
objects and other intuitive classes.

%files
%doc AUTHORS
%{_bindir}/OgreMeshUpgrader
%{_bindir}/OgreXMLConverter
%{_bindir}/VRMLConverter
%dir %{_libdir}/%{oname}
%{_libdir}/%{oname}/*.so*
%dir %{_datadir}/%{oname}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries needed for programs using %{oname}
Group:		System/Libraries
# Engine files are always required
Requires:	%{name}

%description -n %{libname}
OGRE (Object-Oriented Graphics Rendering Engine) is a scene-oriented,
flexible 3D engine written in C++ designed to make it easier and more
intuitive for developers to produce games and demos utilising 3D hardware.
The class library abstracts all the details of using the underlying system
libraries like Direct3D and OpenGL and provides an interface based on world
objects and other intuitive classes.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for writing programs using %{oname}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-samples = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for writing programs using %{oname}.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{oname}/cmake
%{_includedir}/%{oname}

#----------------------------------------------------------------------------

%package samples
Summary:	Samples for %{oname}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description samples
Samples for %{oname}.

%files samples
%{_bindir}/SampleBrowser
%{_datadir}/%{oname}/*.cfg
%{_datadir}/%{oname}/Media
%{_libdir}/%{oname}/Samples
%{_datadir}/%{oname}/GLX_backdrop.png

#----------------------------------------------------------------------------

%package	docs
Summary:	Samples for %{oname}
Group:		Documentation

%description docs
Docs for %{oname}.

%files docs
%doc AUTHORS
%{_docdir}/%{oname}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1
rm -rf build/
find . -type f -name "*.h"-o -name "*.cpp" -exec chmod 644 {} \;
mkdir -p build/imgui
cp -r imgui-*/* build/imgui/

%build
%cmake \
	-G Ninja \
	-DOGRE_BUILD_DOCS:BOOL=OFF \
	-DOGRE_BUILD_DEPENDENCIES=FALSE \
	-DOGRE_BUILD_PLUGIN_CG:BOOL=OFF \
	-DOGRE_INSTALL_SAMPLES:BOOL=ON \
	-DOGRE_INSTALL_SAMPLES_SOURCE:BOOL=ON \
	-DOGRE_CONFIG_MEMTRACK_RELEASE:BOOL=OFF \
    -DOGRE_NODELESS_POSITIONING=ON

%ninja_build

%install
%ninja_install -C build
rm -f %{buildroot}%{_datadir}/OGRE/docs/CMakeLists.txt
find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3799 |21cr|oidentd-2.0.8-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ident server with masquerading support
Name:		oidentd
Version:	2.0.8
Release:	12
License:	GPLv2+
Group:		System/Servers
Url:		http://ojnk.sourceforge.net/
Source0:	http://sourceforge.net/projects/ojnk/files/oidentd/%{version}/oidentd-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.users
Source3:	%{name}.sysconfig
Source4:	%{name}.conf
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	systemd-units
Provides:	identd = %{EVRD}
Requires(pre,post,preun,postun):	rpm-helper

%description
Oidentd is an ident (rfc1413) daemon that runs on Linux, FreeBSD,
OpenBSD and Solaris 2.x. Oidentd supports most features of pidentd
plus more. Most notably, oidentd allows users to specify the identd
response that the server will output when a successful lookup is
completed. Oidentd supports IP masqueraded connections on Linux, and
is able to forward requests to hosts that masq through the host on
which oidentd runs.

%files
%doc AUTHORS NEWS README ChangeLog doc/rfc1413
%config(noreplace) %{_sysconfdir}/%{name}_masq.conf
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/%{name}.service
%{_sbindir}/%{name}
%{_mandir}/*/*
%dir %{_localstatedir}/lib/%{name}

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/true

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fgnu89-inline
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}{%{_sysconfdir}/sysconfig,%{_unitdir}}
cp -a %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service ; chmod 755 %{buildroot}%{_unitdir}/%{name}.service
cp -a %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
cp -a %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}_masq.conf
cp -a %{SOURCE4} %{buildroot}%{_sysconfdir}/%{name}.conf
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3800 |21cr|OilWar-1.2.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Very simple mouse shooting game
Name:		OilWar
Version:	1.2.1
Release:	10
License:	GPL
Group:		Games/Arcade
Source0:	http://www.2ndpoint.fi/projektit/filut/%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		%{name}-fix-scoredir.patch.bz2
URL:		http://www.2ndpoint.fi/projektit/oilwar.html
BuildRequires:	SDL_image-devel SDL_mixer-devel

%description
OilWar is a simple game where you shoot enemy soldiers and tanks with
your mouse. The evil army is attacking your land and tries to steal
your oil. Your mission: waste the invaders, protect the oil, protect
the mother land...

%prep
%setup -q
%patch0 -p0

%build
%configure	--bindir=%{_gamesbindir}
%make

%install
rm -rf %{buildroot}
%makeinstall_std


install -d %{buildroot}%{_datadir}/applications
cat <<EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Name=%{name}
Comment=%{Summary}
Exec=%{_gamesbindir}/oilwar
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc ChangeLog README AUTHORS
%attr(2755,root,games) %{_gamesbindir}/*
%{_gamesdatadir}/oilwar
%attr(664,root,games) %{_localstatedir}/lib/games/*.scores
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3801 |21cr|oinkmaster-2.1-2.20080218.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A script that will help you update and manage your Snort rules
Name:		oinkmaster
Version:	2.1
Release:	2.20080218.5
License:	BSD
Group:		Networking/Other
URL:		http://oinkmaster.sourceforge.net/
Source0:	%{name}-%{version}-20080218.tar.gz
Source1:	oinkmaster-update
Source2:	oinkmaster.sysconfig
Patch0:		oinkmaster-man_page_fix.diff
Patch1:		oinkmaster-mdv_conf.diff
Requires:	openssh-clients
Requires:	snort
Requires:	snort-rules
Requires:	wget
Requires:	perl(IO::Zlib)
Requires:	perl(Archive::Tar)
Requires:	perl(LWP::UserAgent)
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Oinkmaster is a script that will help you update and manage your Snort rules.
It is released under the BSD license and will work on most platforms that can
run Perl scripts, e.g. Linux, *BSD, Windows, Mac OS X, Solaris, etc. Oinkmaster
can be used to update and manage the VRT licensed rules, the community rules,
the bleeding-snort rules and other third party rules, including your own local
rules. 

%package	gui
Summary:	A graphical front-end to Oinkmaster
Group:		Networking/Other
Requires:	%{name} >= %{version}

%description	gui
A graphical front-end to Oinkmaster written in Perl/Tk. See README.gui for
complete documentation.

%prep

%setup -q
%patch0 -p0
%patch1 -p0

cp %{SOURCE1} oinkmaster-update
cp %{SOURCE2} oinkmaster.sysconfig

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;
		
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%build

%install
rm -rf %{buildroot} 

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/cron.daily
install -d %{buildroot}%{_sysconfdir}/snort/backup
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -d %{buildroot}%{_mandir}/man1

install -m0755 %{name}.pl %{buildroot}%{_sbindir}/%{name}
install -m0640 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
install -m0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

install -m0755 oinkmaster-update %{buildroot}%{_sysconfdir}/cron.daily/oinkmaster-update
install -m0640 oinkmaster.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/oinkmaster

pushd contrib
    for i in *.pl; do
	new_name=`echo $i|sed -e 's/\.pl//'`
	install -m0755 $i %{buildroot}%{_sbindir}/%{name}-$new_name
    done
popd

%clean
rm -rf %{buildroot} 

%files
%defattr(-,root,root)
%doc ChangeLog FAQ INSTALL LICENSE README README.templates template-examples.conf UPGRADING contrib/README*
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_sysconfdir}/cron.daily/oinkmaster-update
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/oinkmaster
%attr(0755,root,root) %dir %{_sysconfdir}/snort/backup
%{_sbindir}/%{name}
%{_sbindir}/%{name}-addmsg
%{_sbindir}/%{name}-addsid
%{_sbindir}/%{name}-create-sidmap
%{_sbindir}/%{name}-makesidex
%{_mandir}/man1/oinkmaster.1*
%attr(0755,root,root) %dir %{_localstatedir}/lib/%{name}

%files gui
%defattr(-,root,root)
%doc README.gui
%{_sbindir}/%{name}-oinkgui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3802 |21cr|ois-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname OIS 1
%define devname %mklibname OIS -d

Summary:	Object Oriented Input System
Name:		ois
Version:	1.5.1
Release:	1
License:	zlib
Group:		System/Libraries
Url:		https://github.com/wgois/OIS
Source0:	https://github.com/wgois/OIS/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		ois-install-path.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(x11)

%description
Object Oriented Input System (OIS) is meant to be a cross platform, 
simple solution for using all kinds of Input Devices 
(KeyBoards, Mice, Joysticks, etc) and feedback devices 
(e.g. forcefeedback).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for Object Oriented Input System
Group:		System/Libraries

%description -n %{libname}
Object Oriented Input System (OIS) is meant to be a cross platform, 
simple solution for using all kinds of Input Devices 
(KeyBoards, Mice, Joysticks, etc) and feedback devices 
(e.g. forcefeedback).

%files -n %{libname}
%{_libdir}/libOIS.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs using %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries needed for
developing programs using the %{name} library.

%files -n %{devname}
%doc README.md
%{_includedir}/ois
%{_libdir}/libOIS.so
%{_libdir}/pkgconfig/OIS.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n OIS-%{version}

%build
%cmake -DOIS_LIB_DIRECTORY=%{_lib}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3803 |21cr|oki-0.1.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Small platform game with monochrome graphics
Name:		oki
Version:	0.1.6
Release:	7
License:	GPLv2+
Group:		Games/Arcade
Url:		http://free.of.pl/s/szatkus/oki/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		oki-default-conf.patch
Patch1:		oki-0.1.6-optflags.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)

%description
Oki is a small platform game with monochrome graphics.

%files
%doc TODO README CHANGELOG
%{_gamesdatadir}/%{name}
%{_gamesbindir}/*
%{_iconsdir}/*
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
# We don't have a "clock" command but the configure script tries to use one
mv ./configure ./configure_orig
sed -e s,'clock','date',g ./configure_orig > ./configure
chmod +x ./configure

%build
%configure
%make

%install
install -m755 %{name} -D %{buildroot}%{_gamesdatadir}/%{name}/%{name}
install -m755 %{name}_me %{buildroot}%{_gamesdatadir}/%{name}/
cp -a gfx/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -a maps/ %{buildroot}%{_gamesdatadir}/%{name}/
cp -a snd/ %{buildroot}%{_gamesdatadir}/%{name}/
rm -f %{buildroot}%{_gamesdatadir}/%{name}/gfx/Makefile
rm -f %{buildroot}%{_gamesdatadir}/%{name}/snd/Makefile
mkdir %{buildroot}%{_gamesbindir}/

echo "#!/bin/sh
cd %{_gamesdatadir}/%{name}
./oki \$*" > %{buildroot}%{_gamesbindir}/%{name}
echo "#!/bin/sh
cd %{_gamesdatadir}/%{name}
./oki_me \$*" > %{buildroot}%{_gamesbindir}/%{name}_me

chmod +x %{buildroot}%{_gamesbindir}/*

mkdir -p %{buildroot}%{_iconsdir}  %{buildroot}%{_datadir}/applications
ln -s %{_gamesdatadir}/%{name}/gfx/oki40.png %{buildroot}%{_iconsdir}/oki.png

cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=oki
Categories=Game;ArcadeGame;
Name=Oki
Comment=Small platform game with monochrome graphics
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/%{name}_me.desktop
[Desktop Entry]
Type=Application
Exec=%{name}_me
Icon=oki
Categories=Game;ArcadeGame;
Name=Oki map editor
Comment=Oki map editor
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3804 |21cr|oki4linux-2.1gst-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drivers for Oki 4w, oki 400w and okipage 4w plus GDI winprinters
Name:		oki4linux
Version:	2.1gst
Release:	23
License:	GPL
Group:		System/Printing
URL:		http://www.linuxprinting.org/download/printing/
Source0:	http://www.linuxprinting.org/download/printing/oki4linux-2.1gst.tar.gz
Source1:	oki4daemon.service
Source2:	README.OKI-Winprinters
Patch0:		oki4linux-2.0-daemon-mdk-patch
Patch1:		oki4linux-2.1gst-LDFLAGS.diff
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%description
A Linux / UNIX driver for the  okipage 4w, oki 400w and
okipage 4w plus GDI printers,

%prep

%setup -q -n %{name}
%patch0 -p1
%patch1 -p0

# Do some small corrections in the daemon script:
# - The daemon crashes with "setlogsock('unix');"
# - Correct the path for the driver
pushd src
mv oki4daemon oki4daemon.pre
sed "s/setlogsock('unix');/setlogsock('inet');/" oki4daemon.pre | sed "s:/usr/local/sbin/oki4drv:/usr/bin/oki4drv:" > oki4daemon
popd

cp %{SOURCE1} oki4daemon.service
cp %{SOURCE2} README.OKI-Winprinters

%build
pushd src
make clean
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"
popd

%install

install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1

pushd src
# Program files
install -m0755 oki4drv %{buildroot}%{_bindir}
install -m0755 oki4daemon %{buildroot}%{_sbindir}
install -m0644 oki4drv.man %{buildroot}%{_mandir}/man1/oki4drv.1
popd

install -m0755 oki4daemon.service %{buildroot}%{_unitdir}/oki4daemon.service

%post
%systemd_post oki4daemon.service

%preun
%systemd_preun oki4daemon.service

%postun
%systemd_postun_with_restart oki4daemon.service

%files
%defattr(0644,root,root,0755)
%doc README.OKI-Winprinters COPYING ChangeLog README
%doc doc samples src/README.oki4daemon src/align.ps
%{_unitdir}/oki4daemon.service
%attr(0755,root,root) %{_sbindir}/oki4daemon
%attr(0755,root,root) %{_bindir}/oki4drv
%attr(0644,root,root) %{_mandir}/man1/oki4drv.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3805 |21cr|olena-2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with apps
%bcond_without doc
%bcond_without scribo

Summary:	Olena is a platform dedicated to image processing
Name:		olena
Version:	2.1
Release:	3
Epoch:		2
License:	GPLv2+
Group:		Development/C++
Url:		http://www.lrde.epita.fr/cgi-bin/twiki/view/Olena/WebHome
# Get from https://svn.lrde.epita.fr/svn/oln/tags/olena-1.0 to have scribo
Source0:	https://www.lrde.epita.fr/dload/olena/%{version}/%{name}-%{version}.tar.bz2
Patch0:		olena-1.0-subdirs.patch
BuildRequires:	doxygen
BuildRequires:	imagemagick
BuildRequires:	latex2html
BuildRequires:	texlive-latex
BuildRequires:	texlive-dvips
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(libtiff-4)
%if %{with scribo}
BuildRequires:	pkgconfig(tesseract)
%endif
BuildRequires:	pkgconfig(xmu)

%description
Olena is a platform dedicated to image processing. At the
moment it is mainly composed of a C++ library: Milena. This library features
many tools to easily perform image processing tasks. Its main characteristic is
its genericity: it allows to write an algorithm once and run it over many kinds
of images (grey scale, color, 1D, 2D, 3D, ...).

#------------------------------------------------------------------------------

%if %{with doc}
%package doc
Summary:	Olena documentation
Group:		Books/Howtos

%description doc
This is the documentation for Olena.
Olena is a platform dedicated to image processing. At the
moment it is mainly composed of a C++ library: Milena. This library features
many tools to easily perform image processing tasks. Its main characteristic is
its genericity: it allows to write an algorithm once and run it over many kinds
of images (grey scale, color, 1D, 2D, 3D, ...).

%files doc
%{_docdir}/olena
%endif

#------------------------------------------------------------------------------

%package tools
Summary:	Olena tools
Group:		Development/Tools

%description tools
Olena is a platform dedicated to image processing. At the
moment it is mainly composed of a C++ library: Milena. This library features
many tools to easily perform image processing tasks. Its main characteristic is
its genericity: it allows to write an algorithm once and run it over many kinds
of images (grey scale, color, 1D, 2D, 3D, ...).

%files tools
%{_bindir}/area_flooding
%{_bindir}/scribo-cli
%{_bindir}/seed2tiling
%{_datadir}/olena
%{_datadir}/pixmaps/olena.xpm

#------------------------------------------------------------------------------

%package devel
Summary:	Olena development files
Group:		Development/C++
Requires:	olena-tools

%description devel
Olena development files.

%files devel
%if %{with scribo}
%{_includedir}/scribo/
%endif
%{_includedir}/mln

#------------------------------------------------------------------------------

%prep
%setup -q
%if ! %{with doc}
%patch0 -p0 -b .orig
%endif

%build
%configure \
%if %{with scribo}
	--enable-scribo \
%endif
	--enable-tools \
%if %{with apps}
	--enable-apps
%endif

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3806 |21cr|olive-20230218-0.gitd09e25.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit d09e257523b725ad5369030541869a3929a4e3c1
%define commit_short %(echo %{commit} | head -c6)

Summary:	Professional open-source NLE video editor
Name:		olive
Version:	20230218
Release:	0.git%{commit_short}.3
License:	GPLv3
Group:		Video
Url:		https://www.olivevideoeditor.org
Source0:	https://github.com/olive-editor/olive/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source1:	https://github.com/olive-editor/core/archive/277792824801495e868580ca86f6e7a1b53e4779.zip
Source2:	https://github.com/KDAB/KDDockWidgets/archive/c744291d3387185b5e3df56d7064fbbba66c67d5.zip
Patch0:		translate-shortcut-20200923.patch
BuildRequires:	ninja
BuildRequires:	hicolor-icon-theme
BuildRequires:	OpenColorIO-devel
BuildRequires:	OpenImageIO-devel
BuildRequires:	OpenTimelineIO-devel
BuildRequires:	openexr3-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavfilter)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(portaudio-2.0)
ExclusiveArch:	%{x86_64} aarch64

%description
Professional open-source NLE video editor

%files
%doc LICENSE
%{_bindir}/olive-editor
%{_datadir}/applications/*.desktop
%{_datadir}/icons/*/*/*/*.png
%{_datadir}/metainfo/*.xml
%{_datadir}/mime/packages/*.xml
%{_datadir}/olive-editor
%{_libdir}/libolivecore.so

#------------------------------------------
%prep
%setup -q -n %{name}-%{commit} -a1 -a2
%apply_patches

mv core-*/* ext/core
mv KDDockWidgets-*/* ext/KDDockWidgets

%build
%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release

%ninja_build

%install
%ninja_install -C build

mkdir -p %{buildroot}%{_datadir}/olive-editor/ts
cp build/app/*.qm %{buildroot}%{_datadir}/olive-editor/ts/

# drop development files
rm -r %{buildroot}%{_libdir}/cmake
rm -r %{buildroot}%{_includedir}
rm %{buildroot}%{_libdir}/libkddockwidgets.a


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3807 |21cr|omegat-3.5.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug_package	%nil

%define		oname	OmegaT

Summary:	OmegaT - Java based Computer Assisted Translation (CAT) tool
Name:		omegat
Version:	3.5.4
Release:	4
License:	GPLv3+
Group:		Education
Url:		http://www.omegat.org/
Source0:	http://sourceforge.net/projects/omegat/files/OmegaT%20-%20Latest/OmegaT%203.0.8%20update%205/%{oname}_%{version}_Source.zip
Patch:		build.patch
BuildRequires:	ant
BuildRequires:	java >= 1.6
Requires:	hunspell
Requires:	java >= 1.6
BuildArch:	noarch

%description
OmegaT is a free translation memory application written in Java.
It is a tool intended for professional translators. It does not
translate for you! (Software that does this is called "machine
translation", and you will have to look elsewhere for it.)

OmegaT has the following features:
- Fuzzy matching
- Match propagation
- Simultaneous processing of multiple-file projects
- Simultaneous use of multiple translation memories
- User glossaries with recognition of inflected forms
- Unicode (UTF-8) support: can be used with non-Latin alphabets
- Support for right-to-left languages
- Integral spelling checker
- Compatible with other translation memory applications (TMX,
  TTX, TXML, XLIFF, SDLXLIFF)
- Interface to Google Translate

Document file formats include:
- Microsoft Word, Excel, Powerpoint (.docx, .xlsx, .pptx)
- XHTML and HTML
- Open Document Format (LibreOffice, OpenOffice.org)
- MediaWiki (Wikipedia)
- Plain text
- ...and around 30 other file formats

%files
%doc dist/readme*.txt dist/changes.txt dist/*license.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{oname}*
%{_iconsdir}/hicolor/apps

#----------------------------------------------------------------------------

%prep
%setup -qc %{name}-%{version}

%build
JAVA_HOME=%{_jvmdir}/java-openjdk ant release

%install
mkdir -p -m 0755 %{buildroot}%{_bindir} \
		 %{buildroot}%{_datadir}/%{name}/lib \
		 %{buildroot}%{_datadir}/%{name}/plugins \
		 %{buildroot}%{_datadir}/applications \
		 %{buildroot}%{_docdir}/%{name} \
		 %{buildroot}%{_iconsdir}/hicolor/apps/{32x32,64x64,128x128,256x256,512x512}

install -Dm0644 dist/lib/*.jar					%{buildroot}%{_datadir}/%{name}/lib/
install -Dm0655 dist/%{oname}					%{buildroot}%{_bindir}/%{name}
install -Dm0644 dist/*.jar					%{buildroot}%{_datadir}/%{name}
cp -r dist/docs							%{buildroot}%{_datadir}/%{name}
cp -r dist/plugins						%{buildroot}%{_datadir}/%{name}
install -Dm0644 dist/images/*.{svg,png,gif}			%{buildroot}/%{_iconsdir}
install -Dm0644 images/OmegaT.iconset/icon_32x32.png		%{buildroot}/%{_iconsdir}/hicolor/apps/32x32/%{name}.png
install -Dm0644 images/OmegaT.iconset/icon_32x32\@2x.png	%{buildroot}/%{_iconsdir}/hicolor/apps/64x64/%{name}.png
install -Dm0644 images/OmegaT.iconset/icon_128x128.png		%{buildroot}/%{_iconsdir}/hicolor/apps/128x128/%{name}.png
install -Dm0644 images/OmegaT.iconset/icon_256x256.png		%{buildroot}/%{_iconsdir}/hicolor/apps/256x256/%{name}.png
install -Dm0644 images/OmegaT.iconset/icon_512x512.png		%{buildroot}/%{_iconsdir}/hicolor/apps/512x512/%{name}.png

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=OmegaT
Name[ru]=OmegaT
GenericName=OmegaT
GenericName[ru]=OmegaT
Comment=Java based Computer Assisted Translation (CAT) tool
Comment[ru]=OmegaT - программа автоматизированного перевода (CAT)
Exec=%{name}
Path=%{_datadir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
MimeType=application/omegat;
Categories=Education;Translation;
EOF

# script start program
cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/bin/bash
# readlink follows any symbolic links to get the real file
#REALOMEGATPATH=`dirname "$(readlink -nf $0)"`
#REALOMEGATPATH="/usr/share/omegat"
exec java -Xmx512m -jar "/usr/share/omegat/OmegaT.jar" $*
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3808 |21cr|omniorb-4.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define api 4
%define major 3
%define thread_major 4
%define libcos4 %mklibname COS %{api} %{major}
%define libcosdynamic4 %mklibname COSDynamic %{api} %{major}
%define libcodesets4 %mklibname omniCodeSets %{api} %{major}
%define libconmgmt4 %mklibname omniConnectionMgmt %{api} %{major}
%define libdynamic4 %mklibname omniDynamic %{api} %{major}
%define liborb4 %mklibname omniORB %{api} %{major}
%define libssl4 %mklibname omnisslTP %{api} %{major}
%define libomnithread %mklibname omnithread %{thread_major}
%define libomnihttpCrypto4 %mklibname omnihttpCrypto %{api} %{major}
%define libomnihttpTP4 %mklibname omnihttpTP %{api} %{major}
%define devname %mklibname %{name} -d
%define nameserver omniNames
# filter provided private python extension libs
%define __noautoprov %{py3_platsitedir}/.*\.so$


Summary:	A robust high performance CORBA ORB for C++ and Python
Name:		omniorb
Version:	4.3.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://omniorb.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/sourceforge/omniorb/omniORB-%{version}.tar.bz2
Source2:        omniORB-nameserver.logrotate
Source3:        omniORB.cfg
Source4:        omniNames.service
Source5:        omniorb.sysusers.conf
# filter redundant crap
Source100:      %{name}.rpmlintrc
BuildRequires:	tcl
BuildRequires:	tk
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	byacc
BuildRequires:	systemd

Requires:	logrotate
Requires(preun,post):	systemd rpm-helper
Requires(pre):	/bin/systemd-sysusers

Provides:	corba

%description
omniORB is a robust high performance CORBA ORB for C++ and Python.
It is freely available under the terms of the GNU Lesser General Public License
(for the libraries), and GNU General Public License (for the tools). omniORB
is largely CORBA 2.6 compliant.

omniORB is one of only three ORBs to have been awarded the Open Group's Open
Brand for CORBA. This means that omniORB has been tested and certified CORBA
compliant, to version 2.1 of the CORBA specification. You can find out more
about the branding program at the Open Group.

%files
%doc CREDITS *.txt COPYING
%{_bindir}/*
%exclude %{_bindir}/omniidl*
%config(noreplace) %{_sysconfdir}/*.cfg
%attr(644,root,man) %{_mandir}/man8/*
%attr(644,root,man) %{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{nameserver}
%{_unitdir}/omniNames.service
%{_sysusersdir}/omniorb.conf


# servers
%pre
%sysusers_create_package omniorb %{SOURCE5}

%post
%_post_service omninames

%preun
%_preun_service omninames

#---------------------------------------------------------------

%package -n %{libcos4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries
Conflicts:	%{_lib}omniorb4 < 4.1.5-2

%description -n %{libcos4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libcos4}
%doc CREDITS *.txt COPYING
%{_libdir}/libCOS%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcosdynamic4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries
Conflicts:	%{_lib}omniorb4 < 4.1.5-2

%description -n %{libcosdynamic4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libcosdynamic4}
%doc CREDITS *.txt COPYING
%{_libdir}/libCOSDynamic%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcodesets4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries
Conflicts:	%{_lib}omniorb4 < 4.1.5-2

%description -n %{libcodesets4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libcodesets4}
%doc CREDITS *.txt COPYING
%{_libdir}/libomniCodeSets%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libconmgmt4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries
Conflicts:	%{_lib}omniorb4 < 4.1.5-2

%description -n %{libconmgmt4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libconmgmt4}
%doc CREDITS *.txt COPYING
%{_libdir}/libomniConnectionMgmt%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdynamic4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries
Conflicts:	%{_lib}omniorb4 < 4.1.5-2

%description -n %{libdynamic4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libdynamic4}
%doc CREDITS *.txt COPYING
%{_libdir}/libomniDynamic%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{liborb4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries
Conflicts:	%{_lib}omniorb4 < 4.1.5-2
Obsoletes:	%{_lib}omniorb4 < 4.1.5-2

%description -n %{liborb4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{liborb4}
%doc CREDITS *.txt COPYING
%{_libdir}/libomniORB%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libssl4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries
Conflicts:	%{_lib}omniorb4 < 4.1.5-2

%description -n %{libssl4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libssl4}
%doc CREDITS *.txt COPYING
%{_libdir}/libomnisslTP%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libomnithread}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries
Conflicts:	%{_lib}omniorb4 < 4.1.5-2

%description -n %{libomnithread}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libomnithread}
%doc CREDITS *.txt COPYING
%{_libdir}/libomnithread.so.%{thread_major}*
%{_libdir}/libomniZIOP%{api}.so.%{major}*
%{_libdir}/libomniZIOPDynamic%{api}.so.%{major}*
#----------------------------------------------------------------------------
%package -n %{libomnihttpCrypto4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries

%description -n %{libomnihttpCrypto4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libomnihttpCrypto4}
%doc CREDITS *.txt COPYING
%{_libdir}/libomnihttpCrypto%{api}.so.%{major}*
#----------------------------------------------------------------------------
%package -n %{libomnihttpTP4}
Summary:	A robust high performance CORBA ORB for C++ and Python
Group:		System/Libraries

%description -n %{libomnihttpTP4}
This package contains the library needed to run programs dynamically
linked with omniorb.

%files -n %{libomnihttpTP4}
%doc CREDITS *.txt COPYING
%{_libdir}/libomnihttpTP%{api}.so.%{major}*
#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries needed for %{name} development
Group:		Development/C++
Requires:	%{libcos4} = %{EVRD}
Requires:	%{libcosdynamic4} = %{EVRD}
Requires:	%{libcodesets4} = %{EVRD}
Requires:	%{libconmgmt4} = %{EVRD}
Requires:	%{libdynamic4} = %{EVRD}
Requires:	%{liborb4} = %{EVRD}
Requires:	%{libssl4} = %{EVRD}
Requires:	%{libomnithread} = %{EVRD}
Requires:	%{libomnihttpCrypto4} = %{EVRD}
Requires:	%{libomnihttpTP4} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package includes the header files and libraries needed for
developing programs using %{name}.

%files -n %{devname}
%doc CREDITS *.txt COPYING COPYING.LIB
%{_libdir}/*.so
%{_includedir}/COS/*.h
%{_includedir}/COS/*.hh
%{_includedir}/omniORB4/*.h
%{_includedir}/omniORB4/*.hh
%{_includedir}/omniORB4/internal/*.h
%{_includedir}/omniconfig.h
%{_includedir}/omnithread.h
%{_includedir}/omnithread/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%package -n %{name}-doc
Summary:	Documentation for omniORB
Group:		Development/C++

%description -n %{name}-doc
This package includes developers doc including examples.

%files -n %{name}-doc
%doc doc/*

#----------------------------------------------------------------------------

%package -n python3-omniidl
Group:		Development/Python
Summary:	OmniOrb IDL compiler

%description -n python3-omniidl
OmniOrb IDL compiler.

%files -n python3-omniidl
%doc CREDITS *.txt COPYING
%{_bindir}/omniidl*
%{_datadir}/idl/omniORB/*.idl
%{_datadir}/idl/omniORB/COS/*.idl
%{py3_puresitedir}/omniidl
%{py3_puresitedir}/omniidl_be/*.py*
%{py3_puresitedir}/omniidl_be/cxx
%{py3_platsitedir}/_omniidl.cpython-*.so*
%{py3_puresitedir}/omniidl_be/__pycache__

#----------------------------------------------------------------------------

%prep
%setup -qn omniORB-%{version}
# Fix shebangs
sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' \
  ./src/tool/omniidl/python3/scripts/omniidlrun.py \
  ./src/tool/omniidl/python3/omniidl/main.py

%build
export LDFLAGS="$LDFLAGS -lpython%{py3_ver}"
%configure --with-openssl=%{_prefix}
%make -d

%install
%makeinstall_std

find %{buildroot} -name '*.la' -delete
# fix rpmlint warnings: unstripped-binary-or-object
chmod 0755 %{buildroot}%{_libdir}/*.so.*
chmod 0755 %{buildroot}%{py3_platsitedir}/*.so.*
# fix rpmlint errors: non-standard-dir-perm
chmod 0755 %{buildroot}%{_includedir}/{omnithread,COS}
chmod 0755 %{buildroot}%{_includedir}/omniORB4/{,internal}
chmod 0755 %{buildroot}%{_datadir}/idl/omniORB/COS
chmod 0755 %{buildroot}%{py3_puresitedir}/omniidl
chmod 0755 %{buildroot}%{py3_puresitedir}/omniidl_be
chmod 0755 %{buildroot}%{py3_puresitedir}/omniidl_be/cxx/{,skel,impl,dynskel,header}
# fix rpmlint error: non-executable-script
chmod +x %{buildroot}%{py3_puresitedir}/omniidl/main.py
# install systemd unit
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}

# install server configuration stuff
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{nameserver}
mkdir -p %{buildroot}%{_sysconfdir}/
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}.cfg
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
# install man pages
pushd man
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 man1/* %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}%{_mandir}/man8
install -m 0644 man8/* %{buildroot}%{_mandir}/man8/
popd

# Versionize Python shebangs
perl -pi -e "s|#!/usr/bin/python|#!/usr/bin/python3|" \
     %{buildroot}%{_bindir}/omniidl

# install sysuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/omniorb.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3809 |21cr|omnitty-0.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Omnitty ssh multiplexer
Name:		omnitty
Version:	0.3.0
Release:	3
License:	GPL
Group:		System/Kernel and hardware
Url:		http://omnitty.sourceforge.net
Source0:	https://sourceforge.net/projects/omnitty/files/omnitty/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	librote-devel

%description
Omnitty is a curses-based program that allows one to log into 
several machines simultaneously and interact with them, selectively 
directing input to individual machines or groups of selected machines.

%prep
%setup -q

%build
export LDFLAGS="-lncurses"
%configure
%make

%install
%makeinstall

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3810 |21cr|onboard-1.4.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Simple on-screen Keyboard
Name:		onboard
Version:	1.4.1
Release:	11
License:	GPLv2+
Group:		System/X11
Url:		https://launchpad.net/onboard/
Source0:	https://launchpad.net/onboard/%{url_ver}/%{version}/+download/onboard-%{version}.tar.gz
Source1:	onboard-1.4.1-ru.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libxi-devel
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	python3-devel
BuildRequires:	python3-distutils-extra
BuildRequires:	python3-setuptools
# ovitters: pkgconfig(gobject-introspection-1.0) includes script to determine typelib() auto buildrequires
BuildRequires:	pkgconfig(gobject-introspection-1.0)
Requires:	at-spi2-atk
Requires:	at-spi2-core
Requires:	fonts-ttf-dejavu
Requires:	hicolor-icon-theme
Requires:	mousetweaks
Requires:	python3-cairo
Requires:	python3-dbus
Requires:	python3-gobject3
Requires:	python3-gi-cairo
Requires:	typelib(PangoFT2)
Requires:	iso-codes
Recommends:	(gnome-shell-extensions-onboard-indicator if gnome-shell)

%description
An on-screen keyboard useful on tablet PCs or for mobility impaired users, or
just really handy when the keyboard is out of reach.
Onboard can store text snippets for one click typing and can also suggest
(and learn) words to speed text entry.
Many theme options are available and each of these may be customized.
The keyboard may be configured to automatically show itself when text input
is required.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-settings
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-settings.desktop
%{_datadir}/dbus-1/services/org.%{name}.Onboard.service
%{_datadir}/glib-2.0/schemas/org.%{name}.gschema.xml
%{_datadir}/%{name}/
%{_datadir}/sounds/freedesktop/stereo/%{name}-key-feedback.oga
%{py3_platsitedir}/%{name}*.egg-info
%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-defaults.conf
%{_datadir}/help/C/onboard/
%{_mandir}/man1/%{name}*
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_iconsdir}/HighContrast/*/apps/%{name}.*
%{py3_platsitedir}/Onboard/

#--------------------------------------------------------------------

%package -n gnome-shell-extensions-onboard-indicator
Summary:	GNOME Shell extensions that adds the Onboard indicator
Group:		Graphical desktop/GNOME
Requires:	onboard
# splitted into subpackage
Conflicts:	onboard < 1.4.1-11

%description -n gnome-shell-extensions-onboard-indicator
GNOME Shell extensions that adds the Onboard indicator and hides
the built-in keyboard.

%files -n gnome-shell-extensions-onboard-indicator
%{_datadir}/gnome-shell/extensions/Onboard_Indicator@onboard.org

#--------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%py3_build

%install
python3 setup.py install --root=%{buildroot}

# Use example default configuration file
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
cp %{buildroot}%{_datadir}/%{name}/%{name}-defaults.conf.example %{buildroot}%{_sysconfdir}/%{name}/%{name}-defaults.conf
# Swich to full keyboard
sed -i 's/#layout=Full Keyboard/layout=Full Keyboard/' %{buildroot}%{_sysconfdir}/%{name}/%{name}-defaults.conf
sed -i 's/layout=Compact/#layout=Compact/' %{buildroot}%{_sysconfdir}/%{name}/%{name}-defaults.conf
# Use 'Super' superkey label
sed -i 's/superkey-label=.*$/superkey-label=Super/' %{buildroot}%{_sysconfdir}/%{name}/%{name}-defaults.conf
# Switch font to DejaVu-Sans
sed -i 's/^key-label-font=.*$/key-label-font=DejaVu Sans/' %{buildroot}%{_sysconfdir}/%{name}/%{name}-defaults.conf
# Configuration change for patch0 (StatusIconProvider.patch)
sed -i '/\[main\]/a status-icon-provider=GtkStatusIcon' %{buildroot}%{_sysconfdir}/%{name}/%{name}-defaults.conf
# Enable icon-palette for gnome3 or on closing keyboard there is no visible activation method
sed -i '/\[icon-palette\]/a in-use=True' %{buildroot}%{_sysconfdir}/%{name}/%{name}-defaults.conf
# Remove Ubuntu icons
rm -rf %{buildroot}%{_iconsdir}/ubuntu*

# Desktop files
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
	--remove-category="X-GNOME-PersonalSettings" \
	--add-category="Utility;" \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

desktop-file-install \
	--remove-category="X-GNOME-PersonalSettings" \
	--remove-category="Settings" \
	--add-category="Utility;" \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}-settings.desktop

mkdir -p %{buildroot}%{_datadir}/locale
cp -a build/mo/* %{buildroot}%{_datadir}/locale

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3811 |21cr|onedrive-2.4.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global project abraunegg
%global repo onedrive

Name:           onedrive
Version:        2.4.23
Release:        1
Summary:        OneDrive Free Client written in D
Group:          Networking/File transfer
License:        GPLv3
URL:            https://github.com/%{project}/%{repo}
Source0:        %{url}/archive/v%{version}/%{repo}-v%{version}.tar.gz
BuildRequires:  make
BuildRequires:  ldc
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  systemd
Requires(preun): systemd
# ldc build only on this arch
ExclusiveArch:  %{x86_64} aarch64

%description
Free CLI client for Microsoft OneDrive written in D.

%files
%{_bindir}/%{name}
%{_userunitdir}/%{name}.service
%{_unitdir}/%{name}@.service
%{_mandir}/man1/%{name}.1*
%{_docdir}/%{name}
%config %{_sysconfdir}/logrotate.d/onedrive

%preun
%systemd_user_preun %{name}.service
%systemd_preun %{name}@.service

#---------------------------------------------------
%prep
%setup -q -n %repo-%{version}
# sed -i 's|version ||g' Makefile
# sed -i '/chown/d' Makefile.in
sed -i 's/-o root -g users//g' Makefile.in
sed -i 's/-o root -g root//g' Makefile.in
# sed -i '/git/d' Makefile
sed -i "s|std\.c\.|core\.stdc\.|" src/sqlite.d
echo %{version} > version

%build
%configure
#export DFLAGS="%{_d_optflags}"
export PREFIX="%{_prefix}"
make DC=ldmd2 %{?_smp_mflags}

%install
%make_install \
    PREFIX="%{_prefix}"

chmod a-x %{buildroot}/%{_mandir}/man1/%{name}*

install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_userunitdir}
install -m0644 ./contrib/systemd/%{name}@.service %{buildroot}%{_unitdir}
install -m0644 ./contrib/systemd/%{name}.service %{buildroot}%{_userunitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3812 |21cr|onevpl-2023.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname onevpl %{major}
%define devname %mklibname onevpl -d

%define oname oneVPL

Summary:        oneAPI Video Processing Library dispatcher tools and examples
Name:           onevpl
Version:        2023.1.0
Release:        1
License:        MIT
Group:          Development/C++
URL:            https://github.com/oneapi-src/oneVPL
Source0:        https://github.com/oneapi-src/oneVPL/archive/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(libva)
BuildRequires:  pkgconfig(python)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(wayland-server)
BuildRequires:  python3dist(pybind11)
Requires:	%{libname} = %{EVRD}
ExclusiveArch:	x86_64

%description
The oneAPI Video Processing Library (oneVPL) provides a single video processing
API for encode, decode, and video processing that works across a wide range of
accelerators.

%files
%license LICENSE
%doc %{_datadir}/vpl/licensing/
%{_bindir}/*
%{_prefix}/etc/modulefiles/vpl
%{_prefix}/etc/vpl/vars.sh
%{_datadir}/vpl/examples/

#------------------------------------------------------------------------------------------

%package -n %{libname}
Summary:        oneAPI Video Processing Library (oneVPL) dispatcher
Group:          System/Libraries

%description -n %{libname}
The oneAPI Video Processing Library (oneVPL) provides a single video processing
API for encode, decode, and video processing that works across a wide range of
accelerators.

%files -n %{libname}
%{_libdir}/libvpl.so.%{major}*

#------------------------------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for oneAPI Video Processing Library (oneVPL) dispatcher
Group:          Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel  = %{EVRD}

%description -n %{devname}
This package contains the development headers and pkgconfig files for
the oneAPI Video Processing Library (oneVPL) dispatcher

%files -n %{devname}
%{_includedir}/vpl/
%{_libdir}/libvpl.so
%{_libdir}/vpl/libvpl_wayland.so
%{_libdir}/pkgconfig/vpl.pc
%{_libdir}/cmake/vpl/

#------------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake  \
        -DBUILD_PYTHON_BINDING:BOOL=ON \
        -DPYTHON_INSTALL_DIR:STRING=%{python_sitearch}
%make_build

%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3813 |21cr|onioncat-0.2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rel_ver r569

Summary:	Anonymizing VPN over Tor
Name:		onioncat
Version:	0.2.2
Release:	3
License:	GPLv3
Group:		Networking/Other
URL:		http://www.cypherpunk.at/onioncat/
Source0:	http://www.cypherpunk.at/ocat/download/Source/%{version}/%{name}-%{version}.%{rel_ver}.tar.gz

%description
OnionCat creates a transparent IP layer on top of Tor's hidden services.
It transmits any kind of IP-based data transparently through the Tor network 
on a location hidden basis. You can think of it as a point-to-multipoint VPN 
between hidden services.

%prep
%setup -qn %{name}-%{version}.%{rel_ver}

%build
autoreconf -fiv
%configure
%make

%install
%makeinstall
rm -Rf %{buildroot}/usr/include/
rm -Rf %{buildroot}/usr/share/doc/*

%files
%doc AUTHORS ChangeLog 
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3814 |21cr|ooh323c-0.9.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon
%define debug_package %{nil}

%define	major 1
%define libname	%mklibname ooh323c %{major}
%define devname	%mklibname ooh323c -d

Summary:	Objective Systems Open H.323 library
Name:		ooh323c
Version:	0.9.4
Release:	3
Group:		System/Libraries
License:	GPL
URL:		http://www.obj-sys.com/open/
Source0:	https://github.com/traviscross/ooh323c/archive/refs/heads/master.zip?/%{name}-%{version}.zip
Patch0:		ooh323c-versioning.patch
BuildRequires:	cmake

%description
Objective Systems Open H.323 for C is a simple H.323 protocol stack. It
contains signaling logic to allow H.323 channels to be created and terminated.
The code is developed in C to allow easy portability to different platform
types (including embedded).

#-------------------------------------------------------------------
%package -n	%{libname}
Summary:	Objective Systems Open H.323 library
Group:          System/Libraries

%description -n	%{libname}
Objective Systems Open H.323 for C is a simple H.323 protocol stack. It
contains signaling logic to allow H.323 channels to be created and terminated.
The code is developed in C to allow easy portability to different platform
types (including embedded).

%files -n %{libname}
%doc COPYING ChangeLog README
%{_libdir}/*.so.%{major}

#-------------------------------------------------------------------

%package -n	%{devname}
Summary:	Static library and header files for the ooh323c library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n	%{devname}
Objective Systems Open H.323 for C is a simple H.323 protocol stack. It
contains signaling logic to allow H.323 channels to be created and terminated.
The code is developed in C to allow easy portability to different platform
types (including embedded).

This package contains the static ooh323c library and its header files.

%files -n %{devname}
%doc doc/*
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.a

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-master

%build
export LDFLAGS="%{ldflags} -lpthread"
%cmake
%make

%install
# make install not worked, use manual install libs and headers
#%%makeinstall_std -C build

# install libs
mkdir -p %{buildroot}%{_libdir}
cp -d lib/*.so* %{buildroot}%{_libdir}
cp -d lib/*.a %{buildroot}%{_libdir}

# install headers
mkdir -p %{buildroot}%{_includedir}
cp src/*.h %{buildroot}%{_includedir}
cp src/h323_v6/*.h %{buildroot}%{_includedir}
cp src/h323/*.h %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3815 |21cr|oolite-1.90-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define Werror_cflags %{nil}

Summary:	A user-modifiable three-dimensional space trading and combat game
Name:		oolite
Version:	1.90
Release:	2
License:	GPLv2+
Group:		Games/Other
Url:		http://www.oolite.org
Source0:	https://github.com/OoliteProject/oolite/releases/download/%{version}/%{name}-source-%{version}.tar.bz2
Source1:	http://jens.ayton.se/oolite/deps/firefox-4.0.source.js-only.tbz
Patch2:		oolite-1.90-ext_libmozjs.patch
Patch3:		oolite-1.80-use_byte_order_of_sys_param.patch
Patch4:		oolite-gcc14.patch
BuildRequires:	gcc-c++
BuildRequires:	gcc-objc
BuildRequires:	gnustep-make
BuildRequires:	zip
BuildRequires:	gnustep-base-devel
BuildRequires:	ffcall-devel
BuildRequires:	giflib-devel
BuildRequires:	gmp-devel
BuildRequires:	libespeak-devel
BuildRequires:	objc-devel
BuildRequires:	stdc++-devel
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(mozjs185)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
Requires:	gnustep-base
Requires:	espeak

%description
Oolite is a space sim game, inspired by Elite, powered by Objective-C and
OpenGL, and designed as a small game that is easy for users to pick up, modify
and expand upon. Almost every aspect of the game can be changed by using
simple, free graphics packages and text editors.

%files
%doc README.md
%doc Doc/*
%{_gamesbindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-source-%{version}
%apply_patches

%build
export CC=gcc
export CXX=g++
%setup_compile_flags
. /usr/share/GNUstep/Makefiles/GNUstep.sh
%make DEPLOYMENT_RELEASE_CONFIGURATION=yes OO_JAVASCRIPT_TRACE=no VERBOSE=1

%install
install -d %{buildroot}%{_libdir}/%{name}/Resources
install -m 755 %{name}.app/%{name}* %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_gamesbindir}
ln -s %{_libdir}/%{name}/%{name} %{buildroot}%{_gamesbindir}/%{name}
cp -pr %{name}.app/Resources/* %{buildroot}%{_libdir}/%{name}/Resources
mkdir -p %{buildroot}%{_datadir}/applications

cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Name=Oolite
Comment=3D Combat and trading
Exec=%{_gamesbindir}/oolite
Icon=%{_libdir}/%{name}/Resources/Images/WMicon.bmp
Terminal=false
Categories=Game;ArcadeGame;3DGraphics;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3816 |21cr|openarena-0.8.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define data_version 0.8.1
%define oversion %(echo %{version} | sed -e 's/\\.//g')

Summary:	An open-source content package for Quake III Arena
Name:		openarena
Version:	0.8.8
Release:	7
License:	GPLv2+
Group:		Games/Arcade
Url:		http://openarena.ws/
Source0:	http://openarena.ws/svn/source/%{oversion}/%{name}-engine-source-%{version}.tar.bz2
Source1:	http://cheapy.deathmask.net/logo.gif
Patch0:		openarena-0.8.8-stack.patch
Patch1:		openarena-0.8.8-x86.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vorbis)
Requires:	%{name}-data >= %{data_version}
ExclusiveArch:	%{ix86} %{x86_64}

%description
OpenArena is an open-source content package for Quake III Arena
licensed under the GPL, effectively creating a free stand-alone
game. You do not need Quake III Arena to play this game.

%files
%doc ChangeLog README NOTTODO TODO BUGS
%doc id-readme.txt voip-readme.txt md4-readme.txt
%{_gamesbindir}/%{name}
%{_gamesbindir}/oa_ded
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/rosa-%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-engine-source-%{version}
%patch0 -p1
%patch1 -p1

%build
%setup_compile_flags

%make \
	USE_CURL=1 \
	USE_CURL_DLOPEN=0 \
	USE_OPENAL=1 \
	USE_OPENAL_DLOPEN=0 \
	USE_CODEC_VORBIS=1 \
	V=1 \
	DEFAULT_BASEDIR=%{_gamesdatadir}/%{name} \
	FULLBINEXT=''

%install
%make copyfiles COPYDIR=%{buildroot}%{_gamesbindir} NO_STRIP=1 FULLBINEXT=''

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
convert -scale 128x128 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
convert -scale 64x64 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
convert -scale 48x48 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32x32 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16x16 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=OpenArena
Comment=Quake 3: Arena-like FPS game
Exec=soundwrapper %{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3817 |21cr|openarena-data-0.8.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gamename openarena
%define bversion 081
%define baseversion 0.8.1

Name:		%{gamename}-data
Summary:	An open-source content package for Quake III Arena
Version:	0.8.8
Release:	4
Source0:	http://openarena.ws/rel/%{bversion}/oa%{bversion}.zip
Source1:	oa085-patch.zip
Source2:	oa088-patch.zip
License:	Creative Commons
Group:		Games/Arcade
Url:		http://openarena.ws/
BuildArch:	noarch
Conflicts:	openarena <= 0.7.0-2%{distsuffix}%{mandriva_release}

%description
OpenArena is an open-source content package for Quake III Arena
licensed under the GPL, effectively creating a free stand-alone
game. You do not need Quake III Arena to play this game.

This package contains data files for OpenArena.

%prep
%setup -q -n %{gamename}-%{baseversion}
chmod 644 CHANGES CREDITS README
yes | unzip -qq -d .. %{SOURCE1}
yes | unzip -qq -d .. %{SOURCE2}

%build

%install
%__rm -rf %{buildroot}
%__install -d %{buildroot}%{_gamesdatadir}/%{gamename}/baseoa
%__install -m644 baseoa/* %{buildroot}%{_gamesdatadir}/%{gamename}/baseoa

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES CREDITS README
%{_gamesdatadir}/%{gamename}/baseoa

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3818 |21cr|openav-sorcer-lv2-1.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname openAV-Sorcer

Summary:	A wavetable LV2 plugin synth, targeted at the electronic / dubstep genre
Name:		openav-sorcer-lv2
Version:	1.1.3
Release:	2
License:	GPLv3+
Group:		Sound
Url:			http://openavproductions.com/sorcer/
Source0:	https://github.com/openAVproductions/%{oname}/archive/%{oname}-release-%{version}.tar.gz
Patch0:		openav-sorcer-1.1.3-fix-version.patch
Patch1:		openav-sorcer-1.1.3-cmake-fixes.patch
Patch2:		openav-sorcer-1.1.3-fix-build-with-newer-Lv2.patch
BuildRequires:	cmake >= 2.6
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(ntk) >= 1.3.0
Requires:	lv2
ExclusiveArch:	%{ix86} %{x86_64}

%description
A wave-table LV2 plugin synth, targeted at the electronic / dubstep genre.

%files
%doc LICENSE README.md
%{_libdir}/lv2/sorcer.lv2/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-release-%{version}
%apply_patches

# Fix install targets
sed -i 's|lib/lv2|%{_prefix}/%{_lib}/lv2|g' CMakeLists.txt


%build
%cmake ..


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3819 |21cr|OpenBoard-1.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dest_dir %{_libdir}/OpenBoard

# usr moved platforms
%if %{mdvver} >= 202310
%define pidof %{_sbindir}/pidof
%else
%define pidof /sbin/pidof
%endif

Summary:	Interactive whiteboard for schools and universities
Name:		OpenBoard
Version:	1.7.1
Release:	4
License:	GPL-3.0+
Group:		Education
Url:		https://github.com/OpenBoard-org/OpenBoard
Source0:	https://github.com/OpenBoard-org/OpenBoard/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.svg
# GeoInfo widget with a version with modified borders of Ukraine and Russia from ThomasLucky13
Source2:	GeoInfo.wgt.tar.gz
# https://github.com/OpenBoard-org/OpenBoard/pull/648
Patch1:		0001-OpenBoard-1.7.0-update-russian-translations.patch
Patch2:		0002-dark-background-color-set-ability-feature.patch
# https://github.com/OpenBoard-org/OpenBoard/pull/635
Patch3:		0003-new-icon-images.patch
# https://github.com/OpenBoard-org/OpenBoard/pull/714
Patch4:		0004-toolbar_elements_changed.patch
# https://github.com/OpenBoard-org/OpenBoard/pull/714
Patch6:		0006-polygon_line_styles.patch
# https://github.com/OpenBoard-org/OpenBoard/pull/712
Patch8:		0008-background-grid-size-save.patch
# https://github.com/OpenBoard-org/OpenBoard/pull/714
Patch9:		0009-vector_tool.patch
Patch11:	0011-fix-videoSize-saving.patch
Patch13:	0013-Changes-for-dark-mode.patch
Patch14:	0014-widgets-names-ru_translate.patch
# https://github.com/OpenBoard-org/OpenBoard/pull/809
Patch16:	0016-UBCompassTool-upgrade.patch
# Patch changes:
# - Added help buttons to the toolbar
Patch18:	0018-Add-help-buttons.patch
Patch19:	0019-add-ru-translate-for-startupHints.patch
Patch20:	0020-showMaximized-when-open.patch
Patch21:	0021-set-web-search-engine-to-yandex.patch
Patch22:	0022-fix-documents-view.patch
Patch23:	0023-improvement-tool-change.patch
Patch24:	0024-fix-problem-with-multiscreen.patch
Patch25:	0025-multi-touch.patch
Patch26:	0026-remove-swipe-pages.patch
# Build with C++20 for Poppler v24.04 and newer
# https://github.com/OpenBoard-org/OpenBoard/issues/958
Patch100:	build-with-c++20.patch
#https://github.com/OpenBoard-org/OpenBoard/pull/962
Patch101:	fix-Add-compatibility-with-C++20.patch
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	bzip2-devel
BuildRequires:	libgomp-devel
BuildRequires:	liblame-devel
BuildRequires:	libpaper-devel
BuildRequires:	%{_lib}qtsingleapplication-qt5-devel
BuildRequires:	t1lib-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-cpp)
BuildRequires:	pkgconfig(quazip1-qt5)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
Requires:	onboard
# from run.sh script
Requires:	%{pidof}
Provides:	openboard = %{EVRD}

%description
Interactive whiteboard for schools and universities.

%files
%license COPYRIGHT LICENSE
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_libdir}/OpenBoard
%{_bindir}/OpenBoard
%{_bindir}/openboard

#--------------------------------------------------------------------
%prep
%setup -q -a2
%autopatch -p1

%if %{mdvver} < 202310
%patch100 -p1 -R
%patch101 -p1 -R
%endif

# remove unwanted and nonfree libraries
sed -i -e 's|-lfdk-aac ||' src/podcast/podcast.pri
sed -i -e 's|-lx264 ||' src/podcast/podcast.pri

# drop quazip LIBS INCLUDEPATH
sed -i -e '/LIBS += -lquazip5/d' \
	-e '/INCLUDEPATH += "\/usr\/include\/quazip"/d' \
	OpenBoard.pro



# Removed some map widgets because of incorrect display of borders of Ukraine and Russia
rm -fvr resources/library/applications/GoogleMaps.wgt
rm -fvr resources/library/applications/OpenStreetMap.wgt

# Replacement of the GeoInfo widget with a version with modified borders of Ukraine and Russia
rm -fvr resources/library/applications/GeoInfo.wgt
mv GeoInfo.wgt resources/library/applications/GeoInfo.wgt

rm -fv resources/etc/OpenBoard.css

%build
%{_qt5_bindir}/lrelease -removeidentical %{name}.pro

%qmake_qt5 \
    LIBS+="`pkg-config --libs quazip1-qt5`" \
    INCLUDEPATH+="`pkg-config --cflags-only-I quazip1-qt5 |
      sed 's/-I//g'`" \
    INCLUDEPATH+=%{_includedir}/poppler \
    INCLUDEPATH+=%{_includedir}/qt5/QtSolutions \
    %{name}.pro

%make_build

%install
%makeinstall_std
install -D -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/scalable/apps/OpenBoard.svg

# missing desktop file, creating one
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=%{name}
GenericName=%{name}
Comment=Interactive whiteboard for schools and universities
Comment[ru]=Интерактивная доска для школ и университетов
Exec=%{dest_dir}/run.sh "%f"
Icon=%{name}
StartupNotify=true
Terminal=false
Type=Application
MimeType=application/x-%{name};
Categories=Education;Engineering;
EOF

install -D -m 0755 build/linux/release/product/%{name} %{buildroot}%{dest_dir}/%{name}
cp -r build/linux/release/product/* %{buildroot}%{dest_dir}/

#run.sh (set env to avoid some possible issues)
cat > %{buildroot}%{dest_dir}/run.sh << 'EOF'
#!/bin/sh
if pid="$(%{pidof} OpenBoard)"; then
  echo "OpenBoard is already running, PID ${pid}."
  exit 0
fi
QT_PLUGIN_PATH="$QT_PLUGIN_PATH:%{dest_dir}/%{name}/plugins" LD_LIBRARY_PATH="$LD_LIBRARY_PATH:%{dest_dir}/plugins/cffadaptor" %{dest_dir}/%{name} "$@"
EOF
chmod 0755 %{buildroot}%{dest_dir}/run.sh
mkdir -p %{buildroot}%{_bindir}/
ln -s -T %{dest_dir}/run.sh %{buildroot}%{_bindir}/%{name}

# clean some exe bits
find %{buildroot} -executable -type f -name *.js -exec chmod -x '{}' \+
find %{buildroot} -executable -type f -name *.svg -exec chmod -x '{}' \+
find %{buildroot} -executable -type f -name *.css -exec chmod -x '{}' \+
find %{buildroot} -executable -type f -name *.xml -exec chmod -x '{}' \+
find %{buildroot} -executable -type f -name *.html -exec chmod -x '{}' \+

# internationalization
lrelease-qt5 -removeidentical %{name}.pro
mkdir -p %{buildroot}%{dest_dir}/i18n/
cp -R resources/i18n/%{name}*.qm %{buildroot}%{dest_dir}/i18n/

# hints and tips
cp -R resources/startupHints %{buildroot}%{dest_dir}/

# customizations
cp -R resources/customizations %{buildroot}%{dest_dir}/

# symlink for humans
( cd %{buildroot}%{_bindir}
  ln -s OpenBoard openboard
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3820 |21cr|openbor-7142-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_enable_debug_packages %{nil}
%define	debug_package %{nil}

Summary:	Moddable fighting game engine (aka Beats of Rage)
Name:		openbor
Version:	7142
Release:	2
License:	BSD
Group:		Games/Arcade
Url:		http://www.chronocrash.com/
Source0:	https://github.com/DCurrent/openbor/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}-wrapper.sh
# Disable -Werror and rpath, have verbose compile output...
Patch0:		openbor-7142-fix-Makefile.patch
BuildRequires:	imagemagick
BuildRequires:	gcc-c++
BuildRequires:	svn
BuildRequires:	yasm
BuildRequires:	pkgconfig(SDL2_gfx)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(vpx)
ExclusiveArch:	%{ix86} %{x86_64}

%description
OpenBOR is the open source continuation of Beats of Rage, a Streets of Rage
tribute game originally developed by Senile Team. In the years since it has
grown into arguably the single most powerful two dimensional sprite-based
engine in the world and certainly the most versatile. While intended to allow
creation of side scrolling beat 'em ups like Double Dragon or Final Fight, the
engine is also capable of replicating shoot 'em ups, RPGs, platformers and the
like. A built-in scripting engine allows authors to take it even further,
making imagination the only real limit.
The games come separated in .pak files: you need to download them, extract
them and put them under the the Paks folder (~/.openbor/Paks/).

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -fcommon
export CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
pushd engine
	./version.sh
	./environ.sh 4
%ifarch x86_64
	%make SDKPATH=%{_prefix} LNXDEV=%{_bindir} BUILD_LINUX=1 GCC_TARGET=amd64
%else
	%make SDKPATH=%{_prefix} LNXDEV=%{_bindir} BUILD_LINUX=1 GCC_TARGET=x86
%endif
popd

%install
# No automated install:
# 1. Install the binaries
install -D -m0755 engine/OpenBOR %{buildroot}/%{_libexecdir}/%{name}/%{name}
install -D -m0755 %{SOURCE1} %{buildroot}/%{_bindir}/%{name}

# 2. Provide a menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=OpenBor
Comment=2D Beat'em'up engine
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

# 3. Provide a few icons
for i in 16 22 24 32 48 64 256; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
	convert -strip -resize "$i"x"$i" engine/resources/OpenBOR_Icon_128x128.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png
done
mkdir -p %{buildroot}%{_datadir}/pixmaps
convert -strip engine/resources/OpenBOR_Icon_128x128.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3821 |21cr|opencascade-7.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	7
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname -d %{name}

# tpaviot-oce version
%define ocegit	%(echo %{version} |cut -d. -f4-)

Summary:	3D modeling & numerical simulation
Name:		opencascade
Group:		Sciences/Physics
Version:	7.7.0
Release:	1
License:	LGPLv2 with exceptions
URL:		https://dev.opencascade.org/release
# Upstream requires a login to download sources. 
# https://dev.opencascade.org/release
# VCS: https://git.dev.opencascade.org/repos/occt.git
Source0:	opencascade-%{version}.tar.gz
Source1:	DRAWEXE.1
Source2:	opencascade-draw.desktop
Source3:	occ-256.png
Source4:	occ-128.png
Source5:	occ-64.png
Source6:	occ-48.png
Source10:	%{name}.rpmlintrc
Patch0:		opencascade-cmake.patch
# from Alt linux
Patch1:		opencascade-alt-arm-build.patch
Patch2:		0001-0033250-Configuration-Missing-Limits-header-file.patch
Patch3:		opencascade-e2k-disable-fenv.patch
Patch4:		opencascade-vtk9.2.patch
# FIXME: opencascade not found TBB, force enable use TBB in patch:
Patch5:		opencascade-tbb-find.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xi)
BuildRequires:	ffmpeg-devel
BuildRequires:	freeimage-devel
BuildRequires:	rapidjson-devel
BuildRequires:	tbb-devel
BuildRequires:	tcl-devel
BuildRequires:	tk-devel
BuildRequires:	vtk-devel
BuildRequires:	vtk-python
BuildRequires:	vtk-test-suite
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	cmake
BuildRequires:	ninja
Requires:	pdksh
Requires:	tcl
Requires:	tix
Requires:	tk

%description
Open CASCADE Technology is software development platform freely available
in open source. It includes components for 3D surface and solid modeling,
visualization, data exchange and rapid application development.

Open CASCADE Technology can be best applied in development of numerical
simulation software including CAD/CAM/CAE, AEC and GIS, as well as PDM
applications.

The Technology exists from the mid 1990-s and has already been used by
numerous commercial clients belonging to different domains from software
edition to heavy industry.

%files
%doc LICENSE_LGPL_21.txt OCCT_LGPL_EXCEPTION.txt
%{_datadir}/%{name}
%{_bindir}/DRAWEXE
%{_bindir}/DRAWEXE-%{major}*
%{_bindir}/custom.sh
%{_bindir}/custom_gcc_*.sh
%{_bindir}/draw.sh
%{_bindir}/env.sh
%{_bindir}/ExpToCasExe*
%{_datadir}/applications/opencascade-draw.desktop
%{_iconsdir}/hicolor/128x128/apps/occ.png
%{_iconsdir}/hicolor/256x256/apps/occ.png
%{_iconsdir}/hicolor/48x48/apps/occ.png
%{_iconsdir}/hicolor/64x64/apps/occ.png
%{_mandir}/man1/DRAWEXE.1.xz

#-----------------------------------------------------------------------
%package	-n %{libname}
Summary:	3D modeling & numerical simulation
Group:		System/Libraries

%description	-n %{libname}
Open CASCADE Technology is software development platform freely available
in open source. It includes components for 3D surface and solid modeling,
visualization, data exchange and rapid application development.

Open CASCADE Technology can be best applied in development of numerical
simulation software including CAD/CAM/CAE, AEC and GIS, as well as PDM
applications.

The Technology exists from the mid 1990-s and has already been used by
numerous commercial clients belonging to different domains from software
edition to heavy industry.

%files		-n %{libname}
%{_libdir}/lib*.so.%{major}.*

#-----------------------------------------------------------------------
%package	-n %{devname}
Summary:	3D modeling & numerical simulation
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description	-n %{devname}
Open CASCADE Technology is software development platform freely available
in open source. It includes components for 3D surface and solid modeling,
visualization, data exchange and rapid application development.

Open CASCADE Technology can be best applied in development of numerical
simulation software including CAD/CAM/CAE, AEC and GIS, as well as PDM
applications.

The Technology exists from the mid 1990-s and has already been used by
numerous commercial clients belonging to different domains from software
edition to heavy industry.

%files		-n %{devname}
%{_libdir}/lib*.so
%{_includedir}/%{name}
%{_libdir}/cmake/opencascade/*.cmake

#-----------------------------------------------------------------------
%prep
%autosetup -p1

%build
# opencascade does some manual install trickery that does not respect DESTDIR.
# Make DESTDIR an environment variable that can be passed into the CMake config.
export DESTDIR="%{buildroot}"

%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
       -DUSE_TBB=ON \
       -DUSE_VTK=ON \
       -DUSE_TK=ON \
       -DUSE_FREEIMAGE=ON \
       -DUSE_FFMPEG=ON \
       -DUSE_RAPIDJSON=ON \
       -DUSE_FFMPEG=ON \
       -DUSE_EIGEN=ON \
       -DINSTALL_VTK=OFF \
       -D3RDPARTY_TBB_LIBRARY_DIR=%{_libdir} \
       -D3RDPARTY_TBB_LIBRARY=%{_libdir}/libtbb.so \
       -D3RDPARTY_TBBMALLOC_LIBRARY_DIR=%{_libdir} \
       -D3RDPARTY_TBBMALLOC_LIBRARY=%{_libdir}/libtbbmalloc.so \
       -D3RDPARTY_VTK_LIBRARY_DIR=%{_libdir} \
       -D3RDPARTY_VTK_INCLUDE_DIR=%{_includedir} \
       -DINSTALL_DIR_LIB=%{_lib} \
       -DINSTALL_DIR_CMAKE=%{_lib}/cmake/%{name} \
       -G Ninja

%ninja_build

#-----------------------------------------------------------------------
%install
%ninja_install -C build

# Install manpage for DRAWEXE
install -Dm 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1/DRAWEXE.1

# Install and validate desktop file
desktop-file-install                           \
    --dir=%{buildroot}%{_datadir}/applications \
    %{SOURCE2}

# Install icons
for size in 256 128 64 48; do
    icon=%{_sourcedir}/occ-${size}.png
    install -Dm 0644 $icon \
        %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/occ.png
done

# Remove license files so they can be included by %%license.
rm -f %{buildroot}%{_docdir}/%{name}/{LICENSE_LGPL_21.txt,OCCT_LGPL_EXCEPTION.txt}

# Fix non-executable shell scripts
chmod 0755 %{buildroot}%{_bindir}/*.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3822 |21cr|opencity-0.0.6.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define _disable_ld_as_needed 1

Summary:	City simulator game
Name:		opencity
Version:	0.0.6.5
Release:	2
License:	GPLv2+
Group:		Games/Strategy
Url:		http://www.opencity.info/
Source0:	http://downloads.sourceforge.net/project/opencity/Stable/0.0.6/%{name}-%{version}stable.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)

%description
OpenCity is a city simulator game project written in standard C++ with OpenGL
and SDL from scratch. It is not intended to be a clone of any famous city
simulator from Max*s. So, if you are looking to download a free SimCity 4 like,
please forget OpenCity. I work on it at my spare time, I really meant it
"my spare time" !

%files
%doc AUTHORS COPYING INSTALL README
%doc docs/FAQ_it.txt docs/INSTALL_it.txt docs/README_it.txt
%doc docs/README_es.txt
%doc %{_docdir}/%{name}/COPYRIGHT
%doc %{_docdir}/%{name}/FAQ.txt
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-bin
%{_sysconfdir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man6/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}stable

%build
%configure \
	--bindir=%{_gamesbindir}
%make

%install
%makeinstall_std

# prepare icon
mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir},%{_menudir}}
convert -geometry 16x16 %{name}.png %{buildroot}%{_miconsdir}/%{name}.png
convert -geometry 32x32 %{name}.png %{buildroot}%{_iconsdir}/%{name}.png
convert -geometry 48x48 %{name}.png %{buildroot}%{_liconsdir}/%{name}.png

# copy file from /usr/share to /usr/share/games
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
mv  %{buildroot}%{_datadir}/%{name}/*  %{buildroot}%{_gamesdatadir}/%{name}/

# fix the .desktop
# an Icon name don't have an extension, so we remove it
perl -i -pe 's/opencity.png/opencity/' %{name}.desktop

desktop-file-install \
	--add-category="X-MandrivaLinux-MoreApplications-Games-Strategy" \
	--dir %{buildroot}%{_datadir}/applications \
	%{name}.desktop


#===============================================================================
# add a little script that launch opencity with datat path
# 1) rename binary : opencity -> opencity-bin
# 2) add script
#===============================================================================
mv %{buildroot}%{_gamesbindir}/%{name} %{buildroot}%{_gamesbindir}/%{name}-bin
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
%{_gamesbindir}/%{name}-bin --data-dir %{_gamesdatadir}/%{name} --conf-dir %{_sysconfdir}/%{name}
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3823 |21cr|openclipart-0.18-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open Clip Art Library
Name:		openclipart
# Before updating version please make sure it works with ffdiaporama
# via ffdiaporama-openclipart package. Newer versions (up to 2.0.6) are
# known not to work with ffdiaporama 2.2 so be very careful
Version:	0.18
Release:	5
License:	CC0
Group:		Graphics
Url:		http://www.openclipart.org/
Source0:	http://www.openclipart.org/downloads/%{version}/openclipart-%{version}-svgonly.tar.bz2
# make linting happy
Source100:	%{name}.rpmlintrc
BuildRequires:	dos2unix
BuildArch:	noarch

%description
Openclipart Gallery contains thousand of SVG vector images that can be
freely used. SVG files can be opened in various tools including
Inkscape vector graphics editor, OpenOffice.org and Firefox web browser.

%files
%doc AUTHORS ChangeLog NEWS README VERSION
%dir %{_datadir}/clipart
%{_datadir}/clipart/*

#----------------------------------------------------------------------------

%prep
%setup -q -n openclipart-%{version}-svgonly
find . -name '*.svg' -exec dos2unix -k -q '{}' \;

%build
# nothing

%install
cd clipart
find . -name '*.svg' -exec sh -c '
        DIR="%{buildroot}%{_datadir}/clipart/%{name}/$(dirname "{}")";
        install -d "$DIR";
        install -m 644 "{}" "$DIR"' \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3824 |21cr|openclonk-8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free multiplayer action game about mining, settling and fast-paced melees
Name:		openclonk
Version:	8.1
Release:	5
License:	BSD
Group:		Games/Arcade
Url:		http://www.openclonk.org
Source0:	http://www.openclonk.org/builds/release/%{version}/%{name}-%{version}-src.tar.bz2
Patch0:		openclonk-headers.patch
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	binutils-devel
BuildRequires:	boost-devel
BuildRequires:	gmock-devel
BuildRequires:	gtest-devel
BuildRequires:	jpeg-devel
BuildRequires:	readline-devel
BuildRequires:	tinyxml-devel
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-2.0)
BuildRequires:	pkgconfig(gtksourceview-3.0)
BuildRequires:	pkgconfig(libdw)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}
# need sse2 support for build bundled blake2
ExcludeArch:	aarch64

%description
OpenClonk is a free multiplayer action game where you control clonks,
small but witty and nimble humanoid beings. The game is mainly about
mining, settling and fast-paced melees. OpenClonk is also not just a
game but also a versatile 2D game engine that offers countless
possibilites to make own mods.

%files
%doc Credits.txt TRADEMARK
%{_bindir}/c4group
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_appdatadir}/openclonk.appdata.xml

#------------------------------------------------------------------------------

%package data
Summary:	Data files for OpenClonk
Group:		Games/Arcade
BuildArch:	noarch

%description data
Arch-independent data files for OpenClonk. The purpose of this package is
to be installed alongside the "%{name}" package which contains the game
binary.

%files data
%doc Credits.txt TRADEMARK
%{_gamesdatadir}/%{name}

#----------------------------------------------

%prep
%autosetup -p1 -n %{name}-release-%{version}-src

%build
%cmake	\
	-DBUILD_SHARED_LIBS=OFF	\
	-DUSE_STATIC_BOOST=OFF
%make

%install
%makeinstall_std -C build

# appdata
mkdir -p %{buildroot}%{_appdatadir}
mv %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %{buildroot}%{_appdatadir}/%{name}.appdata.xml
rm -fr %{buildroot}%{_datadir}/appdata
#

%check
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3825 |21cr|opencollada-1.6.68-0.git6031fa9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Upstream does not maintain a soversion so we define one here.
# abi-compliance-checker will be used to determine if an abi breakage occurs
# and the soversion will be incremented.
%global sover   1

%define libname %mklibname %{name} %{sover}
%define devname %mklibname %{name} -d

%global commit 6031fa956e1da4bbdd910af3a8f9e924ef0fca7a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global upname  OpenCOLLADA

%global uname   openCOLLADA

%define rel 1

Name:           opencollada
Version:        1.6.68
Release:        0.git%{shortcommit}.%{rel}
License:        MIT
Summary:        Collada 3D import and export libraries
Group:          System/Libraries
Url:            https://collada.org/mediawiki/index.php/OpenCOLLADA

Source0:        https://github.com/KhronosGroup/OpenCOLLADA/archive/%{commit}/%{upname}-%{shortcommit}.tar.gz

# Force a soversion.
Patch0:         OpenCOLLADA-cmake.patch
Patch1:         opencollada-buildfix.diff
Patch2:         opencollada-pcre.patch
Patch3:         opencollada-zlib.patch

BuildRequires:  cmake
BuildRequires:  dos2unix
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(libpcreposix)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(zlib)

%description
COLLADA is a royalty-free XML schema that enables digital asset
exchange within the interactive 3D industry.
OpenCOLLADA is a Google summer of code opensource project providing
libraries for 3D file interchange between applications like blender.
COLLADABaseUtils          Utils used by many of the other projects
COLLADAFramework          Datamodel used to load COLLADA files
COLLADAStreamWriter       Sources (Library to write COLLADA files)
COLLADASaxFrameworkLoader Library that loads COLLADA files in a sax
                          like manner into the framework data model
COLLADAValidator          XML validator for COLLADA files, based on
                          the COLLADASaxFrameworkLoader
GeneratedSaxParser        Library used to load xml files in the way
                          used by COLLADASaxFrameworkLoader
#-------------------------------------------------------------------

%package        doc
Summary:        Developer documentation for %{uname}
Group:          Documentation
BuildArch:      noarch

%description    doc
This package provides documentation for %{name}.

%files doc
%doc htdocs/

#-------------------------------------------------------------------
%package -n     %{libname}
Summary:        XML schema that enables digital asset exchange
Group:          System/Libraries

%description -n %{libname}
COLLADA is a royalty-free XML schema that enables digital asset
exchange within the interactive 3D industry.
OpenCOLLADA is a Google summer of code opensource project providing
libraries for 3D file interchange between applications like blender.
COLLADABaseUtils          Utils used by many of the other projects
COLLADAFramework          Datamodel used to load COLLADA files
COLLADAStreamWriter       Sources (Library to write COLLADA files)
COLLADASaxFrameworkLoader Library that loads COLLADA files in a sax
                          like manner into the framework data model
COLLADAValidator          XML validator for COLLADA files, based on
                          the COLLADASaxFrameworkLoader
GeneratedSaxParser        Library used to load xml files in the way
                          used by COLLADASaxFrameworkLoader

%files -n %{libname}
%doc README LICENSE README.COLLADAStreamWriter COLLADAStreamWriter/AUTHORS
%{_libdir}/lib*.so.%{sover}

#-------------------------------------------------------------------

%package -n     %{devname}
Summary:        Include files for openCOLLADA development
Group:          Development/C
Requires:       %{libname} = %{EVRD}
Provides:       %{uname}-devel = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the include files necessary to build and
develop with the %{uname} export and import libraries.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_includedir}/*

#-------------------------------------------------------------------

%package        utils
Summary:        XML validator for COLLADA files
Group:          Development/Tools
Requires:       %{libname} = %{EVRD}

%description    utils
XML validator for COLLADA files, based on the COLLADASaxFrameworkLoader.

%files utils
%{_bindir}/*

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{upname}-%{commit}

# Remove unused bundled libraries
rm -rf Externals/{Cg,expat,lib3ds,LibXML,MayaDataModel,pcre,zlib,zziplib}

# Add some docs, need to fix eol encoding with dos2unix in some files.
find ./ -name .project -delete
cp -pf COLLADAStreamWriter/README README.COLLADAStreamWriter
cp -pf COLLADAStreamWriter/LICENSE ./

iconv -f ISO_8859-1 -t utf-8 COLLADAStreamWriter/AUTHORS > \
  COLLADAStreamWriter/AUTHORS.tmp
touch -r COLLADAStreamWriter/AUTHORS COLLADAStreamWriter/AUTHORS.tmp
mv COLLADAStreamWriter/AUTHORS.tmp COLLADAStreamWriter/AUTHORS

dos2unix -f -k README.COLLADAStreamWriter
dos2unix -f -k LICENSE
dos2unix -f -k README
find htdocs/ -name *.php -exec dos2unix -f {} \;
find htdocs/ -name *.css -exec dos2unix -f {} \;


%build
%cmake -DUSE_STATIC=OFF \
       -DUSE_SHARED=ON \
       -Dsoversion=%{sover} \
       -DCMAKE_SKIP_RPATH=ON \
       -DCMAKE_BUILD_TYPE="RelWithDebInfo"

#attempt fix link with libxml2.so and libz, i'm not find way patch this in CMakeLists.txt
sed -i 's|libDAEValidatorLibrary.so.1|libDAEValidatorLibrary.so.1 -lxml2 -lz |'   DAEValidator/CMakeFiles/DAEValidatorLibrary.dir/link.txt

%make


%install
%makeinstall_std -C build

# Manually install binary
mkdir -p %{buildroot}%{_bindir}/
install -p -m 0755 build/bin/* %{buildroot}%{_bindir}/

# Install MathMLSolver headers
mkdir -p %{buildroot}%{_includedir}/MathMLSolver
cp -a Externals/MathMLSolver/include/* %{buildroot}%{_includedir}/MathMLSolver/

# Install DAEValidator headers and lib
cp -d build/lib/libDAEValidator* %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}/DAEValidator
cp DAEValidator/library/include/*.h %{buildroot}%{_includedir}/DAEValidator/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3826 |21cr|opencpn-5.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define		oname	OpenCPN

Summary:	OpenCPN: A concise ChartPlotter/Navigator
Name:		opencpn
Version:	5.6.2
Release:	2
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		http://opencpn.org
Source0:	https://github.com/OpenCPN/OpenCPN/archive/refs/tags/Release_%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	bzip2-devel
BuildRequires:	curl-devel
BuildRequires:	lsb-release
BuildRequires:	portaudio-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libwxsvg)
BuildRequires:	pkgconfig(libgps)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	xdg-utils
BuildRequires:	tinyxml-devel

%description
A cross-platform ship-borne GUI application supporting

* GPS/GPDS Postition Input
* BSB Raster Chart Display
* S57 Vector ENChart Display
* AIS Input Decoding
* Waypoint Autopilot Navigation

Pilot charts can be downloaded from http://opencpn.org/ocpn/downloadpilotcharts

%files -f %{name}.lang
%doc README
%doc %{_docdir}/opencpn/changelog
%doc %{_docdir}/opencpn/copyright
%{_bindir}/*
%{_datadir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/opencpn.1*
%{_datadir}/metainfo/opencpn.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-Release_%{version}

%build
cmake	. \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DCMAKE_BUILD_TYPE=release \
	-DCMAKE_SKIP_RPATH:BOOL=ON
%make

%install
%makeinstall_std

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3827 |21cr|opencsg-1.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define rename 1
%define libname %mklibname %{name} %{rename}

Summary:	Library for Constructive Solid Geometry using OpenGL
Name:		opencsg
Version:	1.4.2
Release:	2
Group:		System/Libraries
License:	GPLv2
Url:		http://www.opencsg.org/
Source0:	https://github.com/floriankirsch/OpenCSG/archive/opencsg-1-4-2-release.tar.gz
Patch0:		opencsg-build.patch

BuildRequires:  qt-devel
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(freeglut)
BuildRequires:	dos2unix

%description
OpenCSG is a library that does image-based CSG rendering using OpenGL.

CSG is short for Constructive Solid Geometry and denotes an approach to model
complex 3D-shapes using simpler ones. I.e., two shapes can be combined by
taking the union of them, by intersecting them, or by subtracting one shape
of the other. The most basic shapes, which are not result of such a CSG
operation, are called primitives. Primitives must be solid, i.e., they must
have a clearly defined interior and exterior. By construction, a CSG shape is
also solid then.

Image-based CSG rendering (also z-buffer CSG rendering) is a term that denotes
algorithms for rendering CSG shapes without an explicit calculation of the
geometric boundary of a CSG shape. Such algorithms use frame-buffer settings
of the graphics hardware, e.g., the depth and stencil buffer, to compose CSG
shapes. OpenCSG implements a variety of those algorithms, namely the
Goldfeather algorithm and the SCS algorithm, both of them in several variants.

#----------------------------------------------------------------------------

%package -n %{libname}

Group:          System/Libraries
Summary:        %{summary}

%description -n %{libname}
Libraries files for OpenCSG.

%files -n %{libname}
%doc changelog.txt doc license.txt
%{_libdir}/*so.%{rename}*

#-----------------------------------------------------------------------------

%package -n %{name}-devel
Summary: OpenCSG development files
Group: Development/C++
Requires: %{libname} = %{version}-%{release}

%description -n %{name}-devel
Development files for OpenCSG.

%files -n %{name}-devel
%{_includedir}/*
%{_libdir}/*so

#-----------------------------------------------------------------------------

%prep
%setup -qn OpenCSG-opencsg-1-4-2-release
%patch0 -p1

%build
%qmake_qt4
%make

%install
chmod g-w lib/*
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}/%{_includedir}
cp -pP lib/* %{buildroot}/%{_libdir}/
cp -p include/opencsg.h %{buildroot}/%{_includedir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3828 |21cr|opendbx-1.4.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
#  OpenDBX rpm spec file
#
#  By default OpenDBX is build with this backends:
#  - mysql
#  - odbc
#  - pgsql
#  - sqlite3
#  to disable use --without [module-name]
#
#  Optional supported backends are:
#  - firebird
#  - mssql
#  - oracle
#  - sqlite
#  - sybase
#  to enable use --with [module-name]
#

%if 0%{?_with_firebird:1}
  %define build_firebird 1
%endif

%if 0%{?_with_mssql:1}
  %define build_mssql 1
%endif
%if 0%{!?_without_mssql:1}
  %define build_mssql 1
%endif

%if 0%{!?_without_mysql:1}
  %define build_mysql 1
%endif

%if 0%{!?_without_odbc:1}
  %define build_odbc 1
%endif

%if 0%{?_with_oracle:1}
  %define build_oracle 1
%endif

%if 0%{!?_without_pgsql:1}
  %define build_pgsql 1
%endif

%if 0%{?_with_sqlite:1}
  %define build_sqlite 1
%endif

%if 0%{!?_without_sqlite3:1}
  %define build_sqlite3 1
%endif

%if 0%{?_with_sybase:1}
  %define build_sybase 1
%endif

%if 0%{!?_without_sybase:1}
  %define build_mssql 1
%endif

%define major 1
%define libname %mklibname %{name} %{major}
%define libplus %mklibname %{name}plus %{major}
%define devname %mklibname %{name} -d

%bcond_without man

Summary:	Unified database layer with a clean and lightweight interface
Name:		opendbx
Version:	1.4.6
Release:	11
License:	LGPL+
Group:		Databases
Url:		http://www.linuxnetworks.de/opendbx/download/
Source0:	http://linuxnetworks.de/opendbx/download/%{name}-%{version}.tar.gz
Patch0:		opendbx-1.4.6-docbook-dtd45.patch
Patch1:		opendbx-1.4.6-doxygen1.8.8.patch
Patch2:		opendbx-1.4.6-freetds-fix.patch
Patch3:		opendbx-1.4.6-dynamic-exceptions.patch
# from gentoo
Patch4:		opendbx-man-optional.patch
# from gentoo (rediff for patch1 use)
Patch5:		opendbx-doxy.patch
%if %{with man}
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook2x
BuildRequires:	doxygen
%endif
BuildRequires:	gettext-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)

%description
OpenDBX provides a clean and lightweight API for interfacing native relational
database APIs in a consistent way. By using the OpenDBX API you don't have to
adapt your program to the different database APIs by yourself.

#----------------------------------------------------------------------------

%package i18n
Summary:	Translation files for %{name}
Group:		System/Internationalization
BuildArch:	noarch
Conflicts:	%{name} < 1.4.6-3

%description i18n
This package includes the translation files for %{name}.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package utils
Summary:	Utility application for manipulating database content
Group:		Databases
Provides:	%{name} = %{EVRD}
Requires:	ncurses

%description utils
Utility application for manipulating database content either interactively by
the user or in batch mode.

%files utils -f %{name}-utils.lang
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/odbx-sql
%if %{with man}
%{_mandir}/man1/odbx-sql.*
%endif
%{_datadir}/%{name}/keywords

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for OpenDBX
Group:		System/Libraries
Requires:	%{name}-i18n
Obsoletes:	%{name} < 1.4.6-3

%description -n %{libname}
The package contains a shared library for %{name}.

%files -n %{libname}
%{_libdir}/libopendbx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libplus}
Summary:	Shared library for OpenDBX
Group:		System/Libraries
Conflicts:	%{name} < 1.4.6-3

%description -n %{libplus}
The package contains a shared library for %{name}.

%files -n %{libplus}
%{_libdir}/libopendbxplus.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	OpenDBX development headers
Group:		Databases
Requires:	%{libname} = %{EVRD}
Requires:	%{libplus} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 1.4.6-3

%description -n %{devname}
Header files for the OpenDBX database abstraction library.

%files -n %{devname}
%{_includedir}/odbx.h
%{_includedir}/opendbx
%{_libdir}/libopendbx.so
%{_libdir}/libopendbxplus.so
%{_libdir}/pkgconfig/opendbx.pc
%{_libdir}/pkgconfig/opendbxplus.pc
%if %{with man}
%{_mandir}/man3/odb*.*
%{_mandir}/man3/Open*.*
%endif
#----------------------------------------------------------------------------

%if 0%{?build_firebird:1}
%package firebird
Summary:	Firebird/Interbase backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}
Requires:	firebird
BuildRequires:	firebird-devel

%description firebird
Firebird/Interbase backend for the OpenDBX database abstraction library.

%files firebird
%{_libdir}/opendbx/libfirebirdbackend.so*
%endif

#----------------------------------------------------------------------------

%if 0%{?build_mssql:1}
%package mssql
Summary:	MS SQL Server backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}
Requires:	freetds
BuildRequires:	freetds-devel

%description mssql
MS SQL Server backend for the OpenDBX database abstraction library.

%files mssql
%{_libdir}/opendbx/libmssqlbackend.so*
%endif

#----------------------------------------------------------------------------

%if 0%{?build_mysql:1}
%package mysql
Summary:	MySQL backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}
Requires:	mysql-server
BuildRequires:	mysql-devel

%description mysql
MySQL backend for the OpenDBX database abstraction library.

%files mysql
%{_libdir}/opendbx/libmysqlbackend.so*
%endif

#----------------------------------------------------------------------------

%if 0%{?build_odbc:1}
%package odbc
Summary:	ODBC backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}
Requires:	unixODBC
BuildRequires:	unixODBC-devel

%description odbc
ODBC backend for the OpenDBX database abstraction library.

%files odbc
%{_libdir}/opendbx/libodbcbackend.so*
%endif

#----------------------------------------------------------------------------

%if 0%{?build_oracle:1}
%package oracle
Summary:	Oracle backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}

%description oracle
Oracle ctlib backend for the OpenDBX database abstraction library.

%files oracle
%{_libdir}/opendbx/liboraclebackend.so*
%endif

#----------------------------------------------------------------------------

%if 0%{?build_pgsql:1}
%package pgsql
Summary:	PostgreSQL backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}
Requires:	postgresql
BuildRequires:	postgresql-devel

%description pgsql
PostgreSQL backend for the OpenDBX database abstraction library.

%files pgsql
%{_libdir}/opendbx/libpgsqlbackend.so*
%endif

#----------------------------------------------------------------------------

%if 0%{?build_sqlite:1}
%package sqlite
Summary:	SQLite backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}
Requires:	sqlite < 3.0
BuildRequires:	sqlite-devel < 3.0

%description sqlite
SQLite backend for the OpenDBX database abstraction library.

%files sqlite
%{_libdir}/opendbx/libsqlitebackend.so*
%endif

#----------------------------------------------------------------------------

%if 0%{?build_sqlite3:1}
%package sqlite3
Summary:	SQLite3 backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}
Requires:	sqlite3-tools
BuildRequires:	pkgconfig(sqlite3)

%description sqlite3
SQLite3 backend for the OpenDBX database abstraction library.

%files sqlite3
%{_libdir}/opendbx/libsqlite3backend.so*
%endif

#----------------------------------------------------------------------------

%if 0%{?build_sybase:1}
%package sybase
Summary:	Sybase backend for OpenDBX
Group:		Databases
Requires:	%{name}-utils = %{EVRD}
Requires:	freetds
BuildRequires:	freetds-devel

%description sybase
Sybase ctlib backend for the OpenDBX database abstraction library.

%files sybase
%{_libdir}/opendbx/libsybasebackend.so*
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# To fix Doxygen parsing issue
ln -s api lib/%{name}/api.dox
# C++ API file must have extension .hpp to be parsed correctly by doxygen
cp lib/%{name}/api lib/%{name}/api.hpp

%build
autoreconf -i
CPPFLAGS="%{!?_without_mysql:-I/usr/include/mysql} %{!?_without_pgsql:-I/usr/include/pgsql} -std=gnu++14"; export CPPFLAGS;
LDFLAGS="-L/lib64 %{!?_without_mysql:-L/usr/lib/mysql -L/usr/lib64/mysql}"; export LDFLAGS;

%configure \
	--disable-static \
%if %{without man}
	--enable-manpages=no \
%else
	--enable-manpages=yes \
%endif
	--with-backends="\
	%{?build_firebird:firebird }\
	%{?build_mssql:mssql }\
	%{?build_mysql:mysql }\
	%{?build_odbc:odbc }\
	%{?build_oracle:oracle }\
	%{?build_pgsql:pgsql }\
	%{?build_sqlite:sqlite }\
	%{?build_sqlite3:sqlite3 }\
	%{?build_sybase:sybase }\
	"

# fix multithreaded builds by precreating the doc/{html,xml,man} directories
mkdir -p doc/{html,xml,man/man3}
# and set number of threads
%make -j4

%install
%makeinstall_std

%find_lang %{name}
%find_lang %{name}-utils

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3829 |21cr|opendht-2.4.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		2
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		opendht
Version:	2.4.12
Release:	1
Summary:	A C++17 Distributed Hash Table implementation
Group:		System/Libraries
License:	GPLv3+
Url:		https://github.com/savoirfairelinux/opendht
Source0:	https://github.com/savoirfairelinux/opendht/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Mageia patches
Patch501:	opendht-pkg-config-fix.patch

BuildRequires:	cmake
BuildRequires:	asio
BuildRequires:	restinio
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(libargon2)
BuildRequires:	pkgconfig(msgpack)
BuildRequires:	pkgconfig(nettle)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	python3egg(cython)

%description
A lightweight C++17 Distributed Hash Table implementation.

#----------------------------------------------------

%package -n	%{libname}
Summary:	A C++17 Distributed Hash Table implementation
Group:		System/Libraries

%description -n	%{libname}
A lightweight C++14 Distributed Hash Table implementation.
This package contains library files for %{name}.

#----------------------------------------------------

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
# For #includes
Requires:	asio
Requires:	restinio

%description -n	%{develname}
The %{develname} package contains libraries and header files for
developing applications that use %{name}.

#----------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DOPENDHT_PYTHON:BOOL=OFF \
	-DOPENDHT_STATIC:BOOL=OFF \
	-DOPENDHT_SYSTEMD:BOOL=ON \
	-DOPENDHT_SYSTEMD_UNIT_FILE_LOCATION:PATH=%{_unitdir} \
	-DOPENDHT_PROXY_SERVER:BOOL=ON \
	-DOPENDHT_PROXY_CLIENT:BOOL=ON \
	-DOPENDHT_PUSH_NOTIFICATIONS:BOOL=ON

%make_build

%install
%make_install -C build

%post
%_post_service dhtnode

%preun
%_preun_service dhtnode

%files
%doc README.md
%license COPYING
%{_sysconfdir}/dhtnode.conf
%{_unitdir}/dhtnode.service
%{_bindir}/dhtchat
%{_bindir}/dhtnode
%{_bindir}/dhtscanner
%{_mandir}/man1/dhtnode.1.*

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}{,.*}

%files -n %{develname}
%{_includedir}/%{name}/
%{_includedir}/%{name}.h
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3830 |21cr|opendkim-2.10.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 10
%define libname %mklibname opendkim %{major}
%define devname %mklibname opendkim -d

%global upname OpenDKIM
%global bigname OPENDKIM

Summary:	A DomainKeys Identified Mail (DKIM) milter to sign and/or verify mail
Name:		opendkim
Version:	2.10.3
Release:	6
License:	BSD and Sendmail
Group:		Networking/Mail
Url:		http://opendkim.org
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		opendkim-openssl110.patch
BuildRequires:	libtool
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	opendbx-devel
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libmemcached)
BuildRequires:	sendmail-devel
BuildRequires:	pkgconfig(openssl)

Requires(pre):	shadow-utils
Requires(post):	systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
# For migration from old sysv service
Requires(post):	chkconfig

%description
OpenDKIM allows signing and/or verification of email through an open source
library that implements the DKIM service, plus a milter-based filter
application that can plug in to any milter-aware MTA, including sendmail,
Postfix, or any other MTA that supports the milter protocol.

%package -n %{libname}
Summary:	An open source DKIM library
Group:		System/Libraries

%description -n %{libname}
This package contains a shared library for %{name}.

%package -n	%{devname}
Summary:	Development files for libopendkim
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the development files for %{name}.

%prep
%autosetup -p1

%build
autoreconf -fiv

%configure \
	--disable-static \
	--enable-stats \
	--with-odbx \
	--with-libmemcached \
	--with-db

%install
%makeinstall_std

for f in opendkim opendkim-genzone opendkim-importstats opendkim-stats opendkim-testkey opendkim-testmsg
do
  strip %{buildroot}/%{_sbindir}/${f}
done
strip %{buildroot}/%{_libdir}/*.so.%{major}.*
strip %{buildroot}/%{_bindir}/opendkim-spam

install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m 0755 contrib/init/redhat/%{name}-default-keygen %{buildroot}%{_sbindir}/%{name}-default-keygen
install -d -m 0755 %{buildroot}%{_unitdir}
install -m 0644 contrib/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service

cat > %{buildroot}%{_sysconfdir}/%{name}.conf << 'EOF'
## BASIC %{bigname} CONFIGURATION FILE
## See %{name}.conf(5) or %{_defaultdocdir}/%{name}/%{name}.conf.sample for more

## BEFORE running %{upname} you must:

## - make your MTA (Postfix, Sendmail, etc.) aware of %{upname}
## - generate keys for your domain (if signing)
## - edit your DNS records to publish your public keys (if signing)

## See %{_defaultdocdir}/%{name}/INSTALL for detailed instructions.

## DEPRECATED CONFIGURATION OPTIONS
##.
## The following configuration options are no longer valid.  They should be
## removed from your existing configuration file to prevent potential issues.
## Failure to do so may result in %{name} being unable to start.
## Removed in 2.10.0:
##   AddAllSignatureResults
##   ADSPAction
##   ADSPNoSuchDomain
##   BogusPolicy
##   DisableADSP
##   LDAPSoftStart
##   LocalADSP
##   NoDiscardableMailTo
##   On-PolicyError
##   SendADSPReports
##   UnprotectedPolicy

## CONFIGURATION OPTIONS

##  Specifies the path to the process ID file.
PidFile %{_localstatedir}/run/%{name}/%{name}.pid

##  Selects operating modes. Valid modes are s (sign) and v (verify). Default is v.
##  Must be changed to s (sign only) or sv (sign and verify) in order to sign outgoing
##  messages.
Mode    v

##  Log activity to the system log.
Syslog  yes

##  Log additional entries indicating successful signing or verification of messages.
SyslogSuccess   yes

##  If logging is enabled, include detailed logging about why or why not a message was
##  signed or verified. This causes an increase in the amount of log data generated
##  for each message, so set this to No (or comment it out) if it gets too noisy.
LogWhy  yes

##  Attempt to become the specified user before starting operations.
UserID  %{name}:%{name}

##  Create a socket through which your MTA can communicate.
Socket  inet:8891@localhost

##  Required to use local socket with MTAs that access the socket as a non-
##  privileged user (e.g. Postfix)
Umask   002

##  This specifies a text file in which to store DKIM transaction statistics.
##  %{upname} must be manually compiled with --enable-stats to enable this feature.
# Statistics    %{_localstatedir}/spool/%{name}/stats.dat

##  Specifies whether or not the filter should generate report mail back
##  to senders when verification fails and an address for such a purpose
##  is provided. See opendkim.conf(5) for details.
SendReports     yes

##  Specifies the sending address to be used on From: headers of outgoing
##  failure reports.  By default, the e-mail address of the user executing
##  the filter is used (executing_user@hostname).
# ReportAddress "Example.com Postmaster" <postmaster@example.com>

##  Add a DKIM-Filter header field to messages passing through this filter
##  to identify messages it has processed.
SoftwareHeader  yes

## SIGNING OPTIONS

##  Selects the canonicalization method(s) to be used when signing messages.
Canonicalization        relaxed/relaxed

##  Domain(s) whose mail should be signed by this filter. Mail from other domains will
##  be verified rather than being signed. Uncomment and use your domain name.
##  This parameter is not required if a SigningTable is in use.
# Domain        example.com

##  Defines the name of the selector to be used when signing messages.
Selector        default

##  Specifies the minimum number of key bits for acceptable keys and signatures.
MinimumKeyBits  1024

##  Gives the location of a private key to be used for signing ALL messages. This
##  directive is ignored if KeyTable is enabled.
KeyFile %{_sysconfdir}/%{name}/keys/default.private

##  Gives the location of a file mapping key names to signing keys. In simple terms,
##  this tells %{upname} where to find your keys. If present, overrides any KeyFile
##  directive in the configuration file. Requires SigningTable be enabled.
# KeyTable      %{_sysconfdir}/%{name}/KeyTable

##  Defines a table used to select one or more signatures to apply to a message based
##  on the address found in the From: header field. In simple terms, this tells
##  %{upname} how to use your keys. Requires KeyTable be enabled.
# SigningTable  refile:%{_sysconfdir}/%{name}/SigningTable

##  Identifies a set of "external" hosts that may send mail through the server as one
##  of the signing domains without credentials as such.
# ExternalIgnoreList    refile:%{_sysconfdir}/%{name}/TrustedHosts

##  Identifies a set "internal" hosts whose mail should be signed rather than verified.
# InternalHosts refile:%{_sysconfdir}/%{name}/TrustedHosts

##  Contains a list of IP addresses, CIDR blocks, hostnames or domain names
##  whose mail should be neither signed nor verified by this filter.  See man
##  page for file format.
# PeerList      X.X.X.X

##  Always oversign From (sign using actual From and a null From to prevent
##  malicious signatures header fields (From and/or others) between the signer
##  and the verifier.  From is oversigned by default in the Fedora package
##  because it is often the identity key used by reputation systems and thus
##  somewhat security sensitive.
OversignHeaders From
EOF

cat > %{buildroot}%{_sysconfdir}/sysconfig/%{name} << 'EOF'
# Set the necessary startup options
OPTIONS="-x %{_sysconfdir}/%{name}.conf -P %{_localstatedir}/run/%{name}/%{name}.pid"

# Set the default DKIM selector
DKIM_SELECTOR=default

# Set the default DKIM key location
DKIM_KEYDIR=%{_sysconfdir}/%{name}/keys
EOF

mkdir -p %{buildroot}%{_sysconfdir}/%{name}
cat > %{buildroot}%{_sysconfdir}/%{name}/SigningTable << 'EOF'
# %{bigname} SIGNING TABLE
# This table controls how to apply one or more signatures to outgoing messages based
# on the address found in the From: header field. In simple terms, this tells
# %{upname} "how" to apply your keys.

# To use this file, uncomment the SigningTable option in %{_sysconfdir}/%{name}.conf,
# then uncomment one of the usage examples below and replace example.com with your
# domain name, then restart %{upname}.

# WILDCARD EXAMPLE
# Enables signing for any address on the listed domain(s), but will work only if
# "refile:%{_sysconfdir}/%{name}/SigningTable" is included in %{_sysconfdir}/%{name}.conf.
# Create additional lines for additional domains.

#*@example.com default._domainkey.example.com

# NON-WILDCARD EXAMPLE
# If "file:" (instead of "refile:") is specified in %{_sysconfdir}/%{name}.conf, then
# wildcards will not work. Instead, full user@host is checked first, then simply host,
# then user@.domain (with all superdomains checked in sequence, so "foo.example.com"
# would first check "user@foo.example.com", then "user@.example.com", then "user@.com"),
# then .domain, then user@*, and finally *. See the %{name}.conf(5) man page under
# "SigningTable" for more details.

#example.com default._domainkey.example.com
EOF

cat > %{buildroot}%{_sysconfdir}/%{name}/KeyTable << 'EOF'
# %{bigname} KEY TABLE
# To use this file, uncomment the #KeyTable option in %{_sysconfdir}/%{name}.conf,
# then uncomment the following line and replace example.com with your domain
# name, then restart %{upname}. Additional keys may be added on separate lines.

#default._domainkey.example.com example.com:default:%{_sysconfdir}/%{name}/keys/default.private
EOF

cat > %{buildroot}%{_sysconfdir}/%{name}/TrustedHosts << 'EOF'
# %{bigname} TRUSTED HOSTS
# To use this file, uncomment the #ExternalIgnoreList and/or the #InternalHosts
# option in %{_sysconfdir}/%{name}.conf then restart %{upname}. Additional hosts
# may be added on separate lines (IP addresses, hostnames, or CIDR ranges).
# The localhost IP (127.0.0.1) should always be the first entry in this file.
127.0.0.1
::1
#host.example.com
#192.168.1.0/24
EOF

install -p -d %{buildroot}%{_sysconfdir}/tmpfiles.d
cat > %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf <<'EOF'
D %{_localstatedir}/run/%{name} 0700 %{name} %{name} -
EOF

rm -r %{buildroot}%{_prefix}/share/doc/%{name}
rm %{buildroot}%{_libdir}/*.la

mkdir -p %{buildroot}%{_localstatedir}/spool/%{name}
mkdir -p %{buildroot}%{_localstatedir}/run/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir %{buildroot}%{_sysconfdir}/%{name}/keys

install -m 0755 stats/%{name}-reportstats %{buildroot}%{_prefix}/sbin/%{name}-reportstats
sed -i 's|^%{bigname}STATSDIR="/var/db/%{name}"|%{bigname}STATSDIR="%{_localstatedir}/spool/%{name}"|g' %{buildroot}%{_prefix}/sbin/%{name}-reportstats
sed -i 's|^%{bigname}DATOWNER="mailnull:mailnull"|%{bigname}DATOWNER="%{name}:%{name}"|g' %{buildroot}%{_prefix}/sbin/%{name}-reportstats


cat > README.urpmi << 'EOF'
#####################################
#ROSA-SPECIFIC README FOR %{bigname}#
#####################################
Based on Fedora instructions by Steve Jenkins

Generating keys for %{upname}
============================
After installing the %{name} package, you MUST generate a pair of keys (public and private) before
attempting to start the %{name} service.

A valid private key must exist in the location expected by %{_sysconfdir}/%{name}.conf before the service will start.

A matching public key must be included in your domain's DNS records before remote systems can validate
your outgoing mail's DKIM signature.


Generating Keys Automatically
=============================
To automatically create a pair of default keys for the local domain, do:

% sudo %{_sbindir}/%{name}-default-keygen

The default keygen script will attempt to fetch the local domain name, generate a private and public key for
the domain, then save them in %{_sysconfdir}/%{name}/keys as default.private and default.txt with the proper
ownership and permissions.

NOTE: The default key generation script MUST be run by a privileged user (or root). Otherwise, the resulting
private key ownership and permissions will not be correct.


Generating Keys Manually
========================
A privileged user (or root) can manually generate a set of keys by doing the following:

1) Create a directory to store the new keys:

% sudo mkdir %{_sysconfdir}/%{name}/keys/example.com

2) Generate keys in that directory for a specific domain name and selector:

% sudo %{_sbindir}/%{name}-genkey -D %{_sysconfdir}/%{name}/keys/example.com/ -d example.com -s default

3) Set the proper ownership for the directory and private key:

% sudo chown -R root:%{name} %{_sysconfdir}/%{name}/keys/example.com

4) Set secure permissions for the private key:

% sudo chmod 640 %{_sysconfdir}/%{name}/keys/example.com/default.private

5) Set standard permissions for the public key:

% sudo chmod 644 %{_sysconfdir}/%{name}/keys/example.com/default.txt

Updating Key Location(s) in Configuration Files
===============================================
If you run the %{name}-default-keygen script, the default keys will be saved in %{_sysconfdir}/%{name}/keys as
default.private and default.txt, which is the location expected by the default %{_sysconfdir}/%{name}.conf file.

If you manually generate your own keys, you must update the key location and name in %{_sysconfdir}/%{name}.conf
before attempting to start the %{name} service.


Using %upname with SQL Datasets
================================
%upname on RedHat-based systems relies on OpenDBX for database access. Depending on which database you use,
you may have to manually install one of the following OpenDBX subpackages (all of which are available via yum):

- opendbx-firebird
- opendbx-mssql
- opendbx-mysql
- opendbx-postgresql
- opendbx-sqlite.
- opendbx-sqlite2
- opendbx-sybase

If you have %upname configured to use SQL datasets on a systemd-based server, it might also be necessary to start
the %{name} service after the database servers by referencing your database unit file(s) in the "After" section of
the %upname unit file.

For example, if using both MariaDB and PostgreSQL, in %{_unitdir}/%{name}.service change:

After=network.target nss-lookup.target syslog.target

to:

After=network.target nss-lookup.target syslog.target mariadb.service postgresql.service


Additional Configuration Help
=============================
For help configuring your MTA (Postfix, Sendmail, etc.) with %{upname}, setting up DNS records with your
public DKIM key, as well as instructions on configuring %{upname} to sign outgoing mail for multiple
domains, follow the how-to at:

http://wp.me/p1iGgP-ou

Official documentation for %{upname} is available at http://%{name}.org/

%{upname} mailing lists are available at http://lists.%{name}.org/

###
EOF

%pre
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \
        useradd -r -g %{name} -G mail -d %{_localstatedir}/run/%{name} -s /sbin/nologin \
        -c "%{upname} Milter" %{name}
exit 0

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

# For the switchover from initscript to service file
%triggerun -- %{name} < 2.8.0-1
%systemd_post %{name}.service
/sbin/chkconfig --del %{name} >/dev/null 2>&1 || :
%systemd_postun_with_restart %{name}.service

%files
%doc LICENSE LICENSE.Sendmail FEATURES KNOWNBUGS RELEASE_NOTES RELEASE_NOTES.Sendmail INSTALL
%doc contrib/convert/convert_keylist.sh %{name}/*.sample
%doc %{name}/%{name}.conf.simple-verify %{name}/%{name}.conf.simple
%doc %{name}/README contrib/lua/*.lua
%doc README.urpmi
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
%config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/SigningTable
%config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/KeyTable
%config(noreplace) %attr(640,%{name},%{name}) %{_sysconfdir}/%{name}/TrustedHosts
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/*/*
%dir %attr(-,%{name},%{name}) %{_localstatedir}/spool/%{name}
%dir %attr(-,root,%{name}) %{_sysconfdir}/%{name}
%dir %attr(-,root,%{name}) %{_sysconfdir}/%{name}/keys
%attr(0644,root,root) %{_unitdir}/%{name}.service

%files -n %{libname}
%{_libdir}/libopendkim.so.%{major}*

%files -n %{devname}
%doc LICENSE LICENSE.Sendmail
%doc libopendkim/docs/*.html
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3831 |21cr|opendnssec-2.1.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	DNSSEC key and zone management software
Name:		opendnssec
Version:	2.1.6
Release:	3
Group:		System/Base
License:	BSD
Url:		http://www.opendnssec.org/
Source0:	http://www.opendnssec.org/files/source/%{name}-%{version}.tar.gz
Source1:	ods-enforcerd.service
Source2:	ods-signerd.service
Source3:	ods.sysconfig
Source4:	conf.xml
Source5:	tmpfiles-opendnssec.conf
Source6:	opendnssec.cron
Source7:	opendnssec-2.1.sqlite_convert.sql
Source8:	opendnssec-2.1.sqlite_rpmversion.sql
Source9:	sysusers-opendnssec.conf

Patch1:		opendnssec-2.1.6-gcc10-fixups.patch
Patch2:		opendnssec-2.1.6-sqlite.patch

BuildRequires:	procps-ng
BuildRequires:	doxygen
BuildRequires:	systemd-units
BuildRequires:	perl-interpreter
BuildRequires:	libmicrohttpd-devel
BuildRequires:	pkgconfig(cunit)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(ldns) >= 1.6.12
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(sqlite3) >= 3.0.0
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(yaml-0.1)
BuildRequires:	pkgconfig(zlib)

Requires:	opencryptoki
Requires:	softhsm >= 2.5.0

Requires(pre):	systemd
Requires(pre):	/bin/systemd-sysusers
Requires(post):	util-linux
Requires(post):	%{_bindir}/softhsm2-util
Requires(post):	%{_bindir}/sqlite3

%description
OpenDNSSEC was created as an open-source turn-key solution for DNSSEC.
It secures zone data just before it is published in an authoritative
name server. It requires a PKCS#11 crypto module library, such as softhsm

%prep
%autosetup -p1 -n %{name}-%{version}
# bump default policy ZSK keysize to 2048
sed -i "s/1024/2048/" conf/kasp.xml.in

%build
%configure --with-ldns=%{_libdir}
%make

%check
# Requires sample db not shipped with upstream
# make check

%install
%makeinstall_std

mkdir -p %{buildroot}%{_localstatedir}/opendnssec/{tmp,signed,signconf,enforcer}
install -d -m 0755 %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/cron.d/
install -m 0644 %{SOURCE6} %{buildroot}/%{_sysconfdir}/cron.d/opendnssec
rm -f %{buildroot}/%{_sysconfdir}/opendnssec/*.sample
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/ods
install -m 0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/opendnssec/
mkdir -p %{buildroot}%{_tmpfilesdir}/
install -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/opendnssec.conf
mkdir -p %{buildroot}%{_localstatedir}/run/opendnssec
mkdir -p %{buildroot}%{_datadir}/opendnssec/
cp -a enforcer/utils %{buildroot}%{_datadir}/opendnssec/migration
cp -a enforcer/src/db/schema.* %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/
# fixup path for mysql/sqlite. Use our replacement sqlite_convert.sql to detect previous migration
cp -a %{SOURCE7} %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/sqlite_convert.sql
cp -a %{SOURCE8} %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/rpmversion.sql
sed -i "s:^SCHEMA=.*schema:SCHEMA=%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/schema:" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_sqlite
sed -i "s:find_problematic_zones.sql:%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/find_problematic_zones.sql:g" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_sqlite
sed -i "s:^SCHEMA=.*schema:SCHEMA=%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/schema:" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_mysql
sed -i "s:find_problematic_zones.sql:%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/find_problematic_zones.sql:g" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_mysql
sed -i "s:sqlite_convert.sql:%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/sqlite_convert.sql:g" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_sqlite

mkdir -p %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE9} %{buildroot}%{_sysusersdir}/%{name}.conf

%files
%{_sysusersdir}/%{name}.conf
%{_unitdir}/ods-enforcerd.service
%{_unitdir}/ods-signerd.service
%config(noreplace) %{_tmpfilesdir}/opendnssec.conf
%attr(0770,root,ods) %dir %{_sysconfdir}/opendnssec
%attr(0770,root,ods) %dir %{_localstatedir}/opendnssec
%attr(0770,root,ods) %dir %{_localstatedir}/opendnssec/tmp
%attr(0775,root,ods) %dir %{_localstatedir}/opendnssec/signed
%attr(0770,root,ods) %dir %{_localstatedir}/opendnssec/signconf
%attr(0770,root,ods) %dir %{_localstatedir}/opendnssec/enforcer
%attr(0660,root,ods) %config(noreplace) %{_sysconfdir}/opendnssec/*.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/ods
%attr(0770,root,ods) %dir %{_localstatedir}/run/opendnssec
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/opendnssec
%doc NEWS README.md
%license LICENSE
%{_mandir}/*/*
%{_bindir}/ods-hsmspeed
%{_bindir}/ods-hsmutil
%{_bindir}/ods-kasp2html
%{_bindir}/ods-kaspcheck
%{_sbindir}/ods-control
%{_sbindir}/ods-enforcer
%{_sbindir}/ods-enforcerd
%{_sbindir}/ods-enforcer-db-setup
%{_sbindir}/ods-migrate
%{_sbindir}/ods-signer
%{_sbindir}/ods-signerd
%attr(0755,root,root) %dir %{_datadir}/opendnssec
%{_datadir}/opendnssec/*

%pre
%sysusers_create_package %{name} %{SOURCE9}

%post
# Initialise a slot on the softhsm on first install
if [ "$1" -eq 1 ]; then
   runuser -u ods -- %{_bindir}/softhsm2-util --init-token \
                --free --label "OpenDNSSEC" --pin 1234 --so-pin 1234
   if [ ! -s %{_localstatedir}/opendnssec/kasp.db ]; then
      echo y | %{_sbindir}/ods-enforcer-db-setup
      %{_bindir}/sqlite3 -batch %{_localstatedir}/opendnssec/kasp.db < %{_datadir}/opendnssec/migration/1.4-2.0_db_convert/rpmversion.sql
   fi

elif [ -z "$(%{_bindir}/sqlite3 %{_localstatedir}/opendnssec/kasp.db 'select * from rpm_migration;')" ]; then
   # Migrate version 1.4 db to version 2.1 db
   if [ -e %{_localstatedir}/opendnssec/rpm-migration-in-progress ]; then
      echo "previous (partial?) migration found - human intervention is needed"
   else
      echo "opendnssec 1.4 database found, migrating to 2.x"
      touch %{_localstatedir}/opendnssec/rpm-migration-in-progress
      mv -n %{_localstatedir}/opendnssec/kasp.db %{_localstatedir}/opendnssec/kasp.db-1.4
      echo "migrating conf.xml from 1.4 to 2.1 schema"
      cp -n %{_sysconfdir}/opendnssec/conf.xml %{_sysconfdir}/opendnssec/conf.xml-1.4
      # fixup incompatibilities inflicted upon us by upstream :(
      sed -i "/<Interval>.*Interval>/d" %{_sysconfdir}/opendnssec/conf.xml
      echo "Converting kasp.db"
      ERR=""
      %{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_sqlite -i %{_localstatedir}/opendnssec/kasp.db-1.4 -o %{_localstatedir}/opendnssec/kasp.db || ERR="convert_sqlite error"
      chown ods.ods %{_localstatedir}/opendnssec/kasp.db
      cp -n %{_sysconfdir}/opendnssec/zonelist.xml %{_localstatedir}/opendnssec/enforcer/zones.xml
      if [ -z "$ERR" ]; then
         echo "calling ods-migrate"
         ods-migrate || ERR="ods-migrate failed"
         if [ -z "$ERR" ]; then
            echo "opendnssec 1.4 to 2.x migration completed"
            rm %{_localstatedir}/opendnssec/rpm-migration-in-progress
         else
            echo "ods-migrate process failed - human intervention is needed"
         fi
      else
         echo "%{_localstatedir}/opendnssec/kasp.db conversion failed - not calling ods-migrate to complete migration. human intervention is needed"
      fi
   fi
fi

# in case we update any xml conf file
ods-enforcer update all >/dev/null 2>/dev/null ||:

%systemd_post ods-enforcerd.service
%systemd_post ods-signerd.service

%preun
%systemd_preun ods-enforcerd.service
%systemd_preun ods-signerd.service

%postun
%systemd_postun_with_restart ods-enforcerd.service
%systemd_postun_with_restart ods-signerd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3832 |21cr|openeuclide-0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           openeuclide
Version:        0.5
Release:        8
Summary:        A geometry software that is intended for educational or modeling purposes

Group:          Sciences/Mathematics
License:        GPLv2+
URL:            http://coulon.publi.free.fr/openeuclide/index.php
Source0:        http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}-%{version}/%{name}-%{version}.tgz
#https://sourceforge.net/p/openeuclide/bugs/2
Source1:        %{name}.desktop
# https://sourceforge.net/p/openeuclide/bugs/7
Source2:        russian.multilanguage

#The upstream sources results in FTBFS.
#Patch to add necessary header files to the source to make it build.
#https://sourceforge.net/p/openeuclide/bugs/4
Patch0:         %{name}-%{version}-fdr-fix-FTBFS.patch
#https://sourceforge.net/p/openeuclide/bugs/5
Patch1:         %{name}-%{version}-fdr-fix-Werror-format-security.patch
# https://sourceforge.net/p/openeuclide/bugs/7
Patch2:         %{name}-%{version}-mga-add-russian.patch

BuildRequires:  gtk2-devel

%description
OpenEuclide is a 2D geometry software: figures are
defined dynamically by describing formal geometrical constraints.
This project is a basic tool for educational or modeling purpose.

%prep
%setup -q -n %{name}
cp -f %{SOURCE1} ./
cp -f %{SOURCE2} ./
%patch0
%patch1
%patch2 -p1
find . -name "CVS"  -exec rm -rf {} +;

%build
%configure
%make

%install
%makeinstall_std

%files
%doc README NEWS AUTHORS doc/
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3833 |21cr|openexr-2.5.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname OpenEXR

%define	major 26
%define	api 2_5
%define	libname %mklibname IlmImf %{api} %{major}
%define	libutil %mklibname IlmImfUtil %{api} %{major}
%define	devname %mklibname IlmImf -d

Summary:	A high dynamic-range (HDR) image file format
Name:		openexr
Version:	2.5.8
Release:	3
License:	BSD
Group:		Graphics
Url:		https://www.openexr.com
Source0:	https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		openexr-e2k-simd.patch
# CVE-2021-23169 fixed
# CVE-2021-23215 fixed
# CVE-2021-26260 fixed
# CVE-2021-23215 fixed
# CVE-2021-26945 unimplemented
# CVE-2021-3474 fixed
# CVE-2021-3475 fixed
# CVE-2021-3476 fixed
# CVE-2021-3477 fixed
# CVE-2021-3478 fixed
# CVE-2021-3479 fixed
# CVE-2021-3598 fixed
# CVE-2021-3605 fixed
Patch2:		CVE-2021-3933.patch
Patch3:		openexr-uint64_t.patch
BuildRequires:	cmake >= 3.12.0
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(IlmBase) >= 2.5.0
BuildRequires:	pkgconfig(zlib)

%description
Industrial Light & Magic developed the OpenEXR format in response to the demand
for higher color fidelity in the visual effects industry.

#----------------------------------------------------------------------------

%package utils
Summary:	A high dynamic-range (HDR) image file format
Group:		Graphics
Conflicts:	OpenEXR < 2.1.0
Obsoletes:	OpenEXR < 2.1.0

%description utils
Industrial Light & Magic developed the OpenEXR format in response to the demand
for higher color fidelity in the visual effects industry.

%files utils
%doc LICENSE.md
%{_bindir}/exr*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Industrial Light & Magic library
Group:		System/Libraries

%description -n %{libname}
Industrial Light & Magic library.

%files -n %{libname}
%doc LICENSE.md
%{_libdir}/libIlmImf-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libutil}
Summary:	Industrial Light & Magic library
Group:		System/Libraries

%description -n %{libutil}
Industrial Light & Magic library.

%files -n %{libutil}
%doc LICENSE.md
%{_libdir}/libIlmImfUtil-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libutil} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}%{oname}-devel < 2.1.0-5
Obsoletes:	%{_lib}%{oname}-devel < 2.1.0-5
Conflicts:	%{_lib}IlmImf_Imf-devel < 2.2.0
Obsoletes:	%{_lib}IlmImf_Imf-devel < 2.2.0

%description -n %{devname}
Libraries and header files for developing programs based on %{name}.

%files -n %{devname}
%doc CHANGES.md README.md %{oname}/doc/*pdf
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/%{oname}/*.cmake
%{_libdir}/pkgconfig/%{oname}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
# The sources contains all the OpenEXR packages: here we need openexr
pushd %{oname}
	%cmake
	%make
popd


%install
pushd %{oname}
	%makeinstall_std -C build
popd

# Remove doc and example files installed by make install, we package them with our macro
rm -rf %{buildroot}%{_docdir}/%{oname}
rm -rf %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3834 |21cr|openfool-0.0.9-1.gitb45c4a.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit b45c4a2df15ceb774c042107f41b8fc1b777d4fc
%define commit_short %(echo %{commit} | head -c6)

Summary:	Open source implementation of a Fool (Durak) card game
Name:		openfool
Version:	0.0.9
Release:	1.git%{commit_short}.3
License:	GPL-3.0
Group:		Games/Cards
Url:		https://github.com/artenax/openfool
Source0:	https://github.com/artenax/openfool/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	qmake5
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Svg)

%description
OpenFool - free and open source (GPL v3) Fool (Durak) card game implementation.

%files
%{_bindir}/OpenFool
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_qt5_translationsdir}/*.qm
#--------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%qmake_qt5 OpenFool.pro
%make

%install
# make install not supported
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp ./OpenFool %{buildroot}%{_bindir}
cp ./openfool.desktop %{buildroot}%{_datadir}/applications
cp ./openfool.png %{buildroot}%{_datadir}/pixmaps

# attemp install translations
mkdir -p %{buildroot}%{_qt5_translationsdir}
cp *.qm %{buildroot}%{_qt5_translationsdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3835 |21cr|openfpc-0.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define oname OpenFPC

Summary:	OpenFPC is designed to allow a network traffic capture tool
Name:		openfpc
Version:	0.9
Release:	3
License:	GPLv3+
Group:		Monitoring
Url:		http://www.openfpc.org
Source0:	https://github.com/leonward/OpenFPC/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Requires:	apache-mpm-prefork
Requires:	cxtracker
Requires:	daemonlogger
Requires:	libdnet-utils
Requires:	tcpdump
Requires:	tshark
Requires:	wireshark-tools

%description
OpenFPC is designed to allow a network traffic capture tool to scale in both
horizontal, and vertical directions. It is a distributed system linked together
using communication paths and proxies to integrate with common SOC
(Security Operating Center) designs. To help further explain it's method of
deployment and architecture, lets cover some common tasks and see how they
are executed while looking at a simple diagram.

%files
%defattr(0755,root,root)
%{_sysconfdir}/%{name}/
%{_datadir}/%{name}/www/
%{_datadir}/%{name}/cgi-bin/
%{_usr}/lib/perl5/site_perl/OFPC
%{_sysconfdir}/httpd/conf.d/*.apache2.conf
%{_initrddir}/openfpc-cx2db
%{_initrddir}/openfpc-cxtracker
%{_initrddir}/openfpc-daemonlogger
%{_initrddir}/openfpc-queued
%{_bindir}/openfpc
%{_bindir}/openfpc-client
%{_bindir}/openfpc-cx2db
%{_bindir}/openfpc-dbmaint
%{_bindir}/openfpc-password
%{_bindir}/openfpc-queued

%post
echo "Adding openfpc user and group"
adduser --system --user-group --no-create-home --shell /usr/sbin/nologin openfpc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

find . -name .svn | xargs rm -rf

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}/www
mkdir -p %{buildroot}%{_datadir}/%{name}/cgi-bin

#/usr/lib/perl5/vendor_perl/5.12.3/OFPC
mkdir -p %{buildroot}%{_usr}/lib/perl5/site_perl/OFPC
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/

mv etc/openfpc.cgi.apache2.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/
mv etc/openfpc.gui.apache2.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/
mv etc/*.conf %{buildroot}%{_sysconfdir}/%{name}
mv etc/*.ofpc %{buildroot}%{_sysconfdir}/%{name}
mv www/* %{buildroot}%{_datadir}/%{name}/www
mv cgi-bin/* %{buildroot}%{_datadir}/%{name}/cgi-bin
mv openfpc* %{buildroot}%{_bindir}
mv etc/init.d/* %{buildroot}%{_initrddir}
mv OFPC/* %{buildroot}%{_usr}/lib/perl5/site_perl/OFPC

rm -rf %{buildroot}%{_bindir}/openfpc-install.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3836 |21cr|openfx-misc-2.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Natron
%define debug_package %{nil}
 
Summary:	Miscellaneous OFX / OpenFX / Open Effects plugins
Name:		openfx-misc
Version:	2.4.4
Release:	1
License:	BSD
Group:		Video
Url:		https://github.com/devernay/openfx-misc
# From git by tag https://github.com/devernay/openfx-misc
Source0:	https://github.com/NatronGitHub/openfx-misc/archive/refs/tags/%{oname}-%{version}.tar.gz
# From git https://github.com/devernay/openfx/
Source1:	https://github.com/NatronGitHub/openfx/archive/refs/tags/%{oname}-%{version}.tar.gz?/openfx-%{version}.tar.gz
# From git https://github.com/devernay/openfx-supportext
Source2:	https://github.com/NatronGitHub/openfx-supportext/archive/refs/tags/%{oname}-%{version}.tar.gz?/openfx-supportext-%{version}.tar.gz
Source3:	https://raw.githubusercontent.com/dtschump/CImg/b33dcc8f9f1acf1f276ded92c04f8231f6c23fcd/CImg.h
Source4:	https://raw.githubusercontent.com/dtschump/CImg/b33dcc8f9f1acf1f276ded92c04f8231f6c23fcd/plugins/inpaint.h
Patch0:		fix-build_optflags.patch
BuildRequires:	curl
BuildRequires:	git
BuildRequires:	pkgconfig(gl)

%description
Miscellaneous OFX / OpenFX / Open Effects plugins.

%files
%license LICENSE
%doc README* TODO.md
%dir %{_libdir}/OFX/Plugins/Misc.ofx.bundle
%{_libdir}/OFX/Plugins/Misc.ofx.bundle/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oname}-%{version} -a 1 -a 2

# Unpack external libraries from sub-projects
rm -rf openfx
mv openfx-%{oname}-%{version} openfx

rm -rf SupportExt
mv openfx-supportext-%{oname}-%{version} SupportExt

%patch0

cp -a %{S:3} CImg
cp -a %{S:4} CImg/Inpaint


%build
%setup_compile_flags
%make CONFIG=release V=1

%install
mkdir -p %{buildroot}%{_libdir}/OFX/Plugins
cp -r Misc/Linux-*-release/Misc.ofx.bundle %{buildroot}%{_libdir}/OFX/Plugins/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3837 |21cr|opengl-games-utils-0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities to check proper 3D support before launching 3D games
Name:		opengl-games-utils
Version:	0.2
Release:	3
License:	Public Domain
Group:		Games/Other
Url:		http://fedoraproject.org/wiki/SIGs/Games
Source0:	opengl-game-wrapper.sh
Source1:	opengl-game-functions.sh
Source2:	README
Requires:	glxinfo
Requires:	zenity
BuildArch:	noarch

%description
This package contains various shell scripts which are intented for use by
3D games packages. These shell scripts can be used to check if direct rendering
is available before launching an OpenGL game. This package is intended for use
by other packages and is not intended for direct end user use!

%files
%doc README
%{_bindir}/opengl-game-wrapper.sh
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -c -T
cp %{SOURCE2} .

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
install -p -m 755 %{SOURCE0} %{buildroot}%{_bindir}
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3838 |21cr|opengrade-3.1.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Local and web-based gradebook
Name:		opengrade
Version:	3.1.18
Release:	3
License:	GPLv2
Group:		Education
Url:		http://www.lightandmatter.com/ogr/ogr.html
Source0:	https://github.com/bcrowell/opengrade/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Source2:	http://www.lightandmatter.com/ogr/%{name}_doc.pdf
Requires:	tk
BuildArch:	noarch
BuildRequires:	imagemagick
Provides:	perl(FileDialogPatched)

%description
OpenGrade is software for teachers to keep track of grades.
* A variety of reports can be created.
* Grades can be uploaded to a web server, where students can have
  password-protected access to them. (see /usr/share/doc/opengrade*)
* If you use a set grading scale, you can have the software use it to compute
  letter grades automatically.
* Grades can be based on total points, or on a weighted average of scores in
  various categories such as exams and quizzes.
* You can drop the lowest grade (or the N lowest grades) from a given category.
* Students can be dropped and later reinstated without losing all their grades.
* Gradebook files can be automatically backed up on a web server.
* There is support for extra-credit categories, and for categories that don't
  count towards the student's grade.
* Gradebook files are password-protected with a digital watermark, so you can
  detect tampering.
* Gradebook files are in a plain-text format, which makes it easy to work with
  them using Unix utilities.

%prep
%setup -q
cp %{SOURCE2} %{name}.pdf
chmod -x *.sty

%build
mv %{name}.pl %{name}
perl -p -i -e 's|/usr/local|/usr||g' %{name}

%install
mkdir -p %{buildroot}%{perl_vendorlib}
mkdir -p %{buildroot}%{_bindir}
install -m644 *.pm %{buildroot}%{perl_vendorlib}
install -m755 %name %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/

#icons
mkdir -p %{buildroot}%{_liconsdir}
cp %{name}_icon.png %{buildroot}%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}
convert -resize 32x32 %{name}_icon.png %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_miconsdir}
convert -resize 16x16 %{name}_icon.png %{buildroot}%{_miconsdir}/%{name}.png

%files
%doc README *.pdf *.gb *.cgi *.sty
%{_bindir}/%{name}
%{perl_vendorlib}/*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3839 |21cr|openh264-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define distsuffix plf

%define major 6
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	Open Source H.264 Codec
Name:		openh264
Version:	2.1.1
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.openh264.org/
Source0:	https://github.com/cisco/openh264/archive/v%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Source2:	https://github.com/mozilla/gmp-api/archive/master.zip
BuildRequires:	nasm
BuildRequires:	unzip

%description
OpenH264 is a codec library which supports H.264 encoding and decoding.
It is suitable for use in real time applications such as WebRTC.

#Any software projects that use Cisco's source code instead of its binaries
#would be legally responsible for paying all royalties to MPEG LA themselves.

%files
%{_bindir}/h264enc
%{_bindir}/h264dec

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Open Source H.264 Codec
Group:		System/Libraries

%description -n %{libname}
OpenH264 is a codec library which supports H.264 encoding and decoding.
It is suitable for use in real time applications such as WebRTC.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and libraries for the package %{name}.

%files -n %{devname}
%doc README.md LICENSE CONTRIBUTORS
%{_includedir}/wels
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n mozilla-openh264
Summary:	H.264 codec support for Mozilla browsers
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n mozilla-openh264
The mozilla-openh264 package contains a H.264 codec plugin for Mozilla
browsers.

%files -n mozilla-openh264
%{_sysconfdir}/profile.d/gmpopenh264.sh
%dir %{_libdir}/firefox
%dir %{_libdir}/firefox/defaults
%dir %{_libdir}/firefox/defaults/pref
%{_libdir}/firefox/defaults/pref/gmpopenh264.js
%{_libdir}/mozilla/plugins/gmp-gmpopenh264/

#----------------------------------------------------------------------------

%prep
%setup -q -a 2

#------------------------|
# Api for mozilla plugin
mv gmp-api-master gmp-api
#------------------------|

%build
# Update the makefile with our build options
sed -i -e 's|^CFLAGS_OPT=.*$|CFLAGS_OPT=%{optflags}|' Makefile
sed -i -e 's|^PREFIX=.*$|PREFIX=%{_prefix}|' Makefile
sed -i -e 's|^LIBDIR_NAME=.*$|LIBDIR_NAME=%{_lib}|' Makefile
sed -i -e 's|^SHAREDLIB_DIR=.*$|SHAREDLIB_DIR=%{_libdir}|' Makefile
sed -i -e '/^CFLAGS_OPT=/i LDFLAGS=%{ldflags}' Makefile

# And pkgconfig file too
sed -i -e 's|^libdir=.*$|libdir=\$\{prefix\}/%{_lib}|' %{name}.pc.in


%make \
	CC=%{__cc} \
	CXX=%{__cxx}

# build mozilla plugin
%make plugin \
	CC=%{__cc} \
	CXX=%{__cxx}

%install
%makeinstall_std

#--------------------------------------------|
#Install mozilla plugin
install -dm 755 %{buildroot}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed
ln -s %{_bindir}/h264enc %{buildroot}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed/h264enc
install -m 755 libgmpopenh264.so* %{buildroot}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed/
install -m 644 gmpopenh264.info %{buildroot}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed/

# cofiguration for mozilla plugin
install -dm 755 %{buildroot}%{_libdir}/firefox/defaults/pref
cat > %{buildroot}%{_libdir}/firefox/defaults/pref/gmpopenh264.js << EOF
pref("media.gmp-gmpopenh264.autoupdate", false);
pref("media.gmp-gmpopenh264.version", "system-installed");
pref("media.gmp-gmpopenh264.enabled", true);
pref("media.gmp-gmpopenh264.provider.enabled", true);
pref("media.peerconnection.video.h264_enabled", true);
EOF

install -dm 755 %{buildroot}%{_sysconfdir}/profile.d
cat > %{buildroot}%{_sysconfdir}/profile.d/gmpopenh264.sh << EOF
MOZ_GMP_PATH="%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed"
export MOZ_GMP_PATH
EOF
#end install mozilla plugin
#--------------------------------------------|

# Tools for openh264
install -dm 755 %{buildroot}%{_bindir}
install -m 755 h264enc h264dec %{buildroot}%{_bindir}/

# Remove static libraries
rm %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3840 |21cr|openhantek-3.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname OpenHantek

Summary:	Software for Hantek USB oscilloscopes
Name:		openhantek
Version:	3.3.1
Release:	1
License:	GPLv3+
Group:		Development/Other
Url:		https://github.com/OpenHantek/openhantek6022
Source0:	https://github.com/OpenHantek/OpenHantek6022/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-qttranslations
BuildRequires:	mesa-common-devel
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
OpenHantek is a free software for Hantek (Voltcraft/Darkwire/Protek/Acetech)
USB digital storage oscilloscopes based on
HantekDSO and has started as an alternative to 
the official Hantek DSO software.

%files
%license LICENSE
%{_bindir}/%{oname}
%{_datadir}/applications/OpenHantek.desktop
%{_defaultdocdir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{oname}.*
%{_prefix}%{_udevrulesdir}/60-%{name}.rules

#------------------------------------------------------------------

%prep
%setup -qn %{oname}6022-%{version}

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3841 |21cr|openjazz-20190106-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	date 190106
%define	oname OpenJazz

Summary:	Remake of the classic Jazz Jackrabbit games
Name:		openjazz
Version:	20190106
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		https://www.alister.eu/jazz/oj/
Source0:	https://github.com/AlisterT/openjazz/archive/20%{date}.tar.gz
BuildRequires:	dos2unix
BuildRequires:	unzip
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libxmp)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(zlib)

%description
This is an open-source version of the classic Jazz Jackrabbit games. To play,
you will need the data files from one of the original games.

%files
%doc gpl.txt
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/icons/hicolor/48x48/apps/%{oname}.png
%{_datadir}/icons/hicolor/scalable/apps/%{oname}.svg
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}.000

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-20%{date}

# Fix perms
find src -name "*.cpp" -o -name "*.h"| xargs chmod -x


%build
autoreconf -vfi
%configure2_5x
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3842 |21cr|openl2tp-1.8-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with rpc

Summary:	An L2TP client/server, designed for VPN use
Name:		openl2tp
Version:	1.8
Release:	14
License:	GPLv2+
Group:		System/Base
Url:		ftp://downloads.sourceforge.net/projects/openl2tp/%{name}-%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
Source1:	openl2tp.service
Source2:	openl2tp-tmpfiles.conf
Patch0:		openl2tp-1.8-make.patch
Patch1:		openl2tp-1.8-tirpc.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	kernel-headers
BuildRequires:	ppp
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libtirpc)
Requires:	ppp >= 2.4.5
Requires:	readline >= 4.2
Requires:	rpcbind
Requires(post):	systemd
Requires(post,preun):	rpm-helper

%description
OpenL2TP is a complete implementation of RFC2661 - Layer Two Tunneling
Protocol Version 2, able to operate as both a server and a client. It
is ideal for use as an enterprise L2TP VPN server, supporting more
than 100 simultaneous connected users. It may also be used as a client
on a home PC or roadwarrior laptop.

OpenL2TP has been designed and implemented specifically for Linux. It
consists of

- a daemon, openl2tpd, handling the L2TP control protocol exchanges
 for all tunnels and sessions
- a plugin for pppd to allow its PPP connections to run over L2TP
 sessions
- a Linux kernel driver for efficient datapath (integrated into the
 standard kernel from 2.6.23).
- a command line application, l2tpconfig, for management.

%files
%doc README LICENSE
%config %{_sysconfdir}/sysconfig/openl2tpd
%{_tmpfilesdir}/%{name}.conf
%dir %{_libdir}/openl2tp
%{_sbindir}/openl2tpd
%{_libdir}/openl2tp/ppp_null.so
%{_libdir}/openl2tp/ppp_unix.so
%{_libdir}/openl2tp/ipsec.so
%{_libdir}/openl2tp/event_sock.so
%{_mandir}/man4/openl2tp_rpc.4.*
%{_mandir}/man5/openl2tpd.conf.5.*
%{_mandir}/man7/openl2tp.7.*
%{_mandir}/man8/openl2tpd.8.*
%{_unitdir}/openl2tp.service

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package devel
Summary:	OpenL2TP support files for plugin development
Group:		Development/Other

%description devel
This package contains support files for building plugins for OpenL2TP,
or applications that use the OpenL2TP APIs.

%files devel
%doc plugins/README doc/README.event_sock
%{_libdir}/openl2tp/l2tp_rpc.x
%{_libdir}/openl2tp/l2tp_event.h
%{_libdir}/openl2tp/event_sock.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%if %{without rpc}
perl -p -i -e 's/L2TP_FEATURE_RPC_MANAGEMENT=\ty//' Makefile
%endif

%build
make PPPD_VERSION=2.4.5

%install
make install DESTDIR=%{buildroot} \
	PPPD_VERSION=2.4.5

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/openl2tp.service
cp -f etc/sysconfig/openl2tpd %{buildroot}%{_sysconfdir}/sysconfig/openl2tpd

install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%ifarch aarch64
mkdir -p %{buildroot}%{_libdir}
mv %{buildroot}%{_prefix}/lib/%{name} %{buildroot}%{_libdir}/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3843 |21cr|openldap-check_password-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name check_password

Name:       openldap-%{upstream_name}
Version:    1.1
Release:    4
Summary:    OpenLdap password checker module
License:    Artistic
Group: 		System/Servers
URL: 		http://linagora.org/contrib/annuaires/extensions/openldap_ppolicy_check_password
Source0: 	http://tools.ltb-project.org/attachments/download/51/ltb-project-openldap-ppolicy-check-password-%{version}.tar.gz
BuildRequires: openldap-devel
BuildRequires: cracklib-devel
BuildRequires: libwrap-devel

%description
check_password.c is an OpenLDAP pwdPolicyChecker module used to check the
strength and quality of user-provided passwords.

This module is used as an extension of the OpenLDAP password policy controls,
see slapo-ppolicy(5) section pwdCheckModule.

check_password.c will run a number of checks on the passwords to ensure minimum
strength and quality requirements are met. Passwords that do not meet these
requirements are rejected. 

%prep
%setup -q -n ltb-project-openldap-ppolicy-check-password-%{version}

%build
%make \
    LDAP_INC="-I%{_includedir}/openldap/include -I%{_includedir}/openldap/slapd"


%install
install -d -m 755 %{buildroot}%{_libdir}/openldap
install -m 755 check_password.so %{buildroot}%{_libdir}/openldap

install -d -m 755 %{buildroot}%{_sysconfdir}/openldap
cat > %{buildroot}%{_sysconfdir}/openldap/check_password.conf <<EOF
# OpenLDAP pwdChecker library configuration

# Set it to 0 to disable cracklib verification
#useCracklib 1

# Minimum number of quality points a new password must have to be accepted
#minPoints 3

# Minimum upper characters expected
#minUpper 0

# Minimum lower characters expected
#minLower 0

# Minimum digit characters expected
#minDigit 0

# Minimum punctuation characters expected
#minPunct 0
EOF

%files
%doc README INSTALL LICENSE
%{_libdir}/openldap/check_password.so
%config(noreplace) %{_sysconfdir}/openldap/check_password.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3844 |21cr|openlierox-0.58_rc5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Extremely addictive realtime worms shoot-em-up
Name:		openlierox
Version:	0.58_rc5
Release:	2
License:	LGPLv2+
Group:		Games/Arcade
Url:		http://openlierox.sourceforge.net/
Source0:	OpenLieroX_%{version}.src.tar.bz2
Patch1:		openlierox-0.58_rc3-fstat.patch
Patch2:		openlierox-0.58_rc3-gcc4.7.patch
Patch3:		OpenLieroX-gcc4.9.patch
Patch4:		openlierox-sysctl.patch
BuildRequires:	kernel-headers
BuildRequires:	libgd-devel
BuildRequires:	libhawknl-devel
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-gamedata = %{EVRD}
ExclusiveArch:	%{x86_64}

%description
OpenLierox is an extremely addictive realtime worms shoot-em-up backed
by an active gamers community. Dozens of levels and mods are available
to provide endless gaming pleasure.

%files
%doc COPYING.LIB VERSION doc
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png

#----------------------------------------------------------------------------

%package gamedata
Summary:	Game data for %{name}
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
# We split game data to separate package to make it noarch and thus save
# bandwidth and space on distribution media.
BuildArch:	noarch

%description gamedata
Game data for %{name}.

%files gamedata
%{_gamesdatadir}/OpenLieroX

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n OpenLieroX

# header not found without copy
cp libs/hawknl/include/*.h include/


%build
SYSTEM_DATA_DIR=%{_gamesdatadir} \
BIN_DIR=%{_gamesbindir} \
./compile.sh

%install
mkdir -p %{buildroot}%{_gamesbindir}
SYSTEM_DATA_DIR=%{buildroot}%{_gamesdatadir} \
BIN_DIR=%{buildroot}%{_gamesbindir} \
DOC_DIR=%{buildroot}%{_docdir} \
	./install.sh

chmod -R o+rX %{buildroot}%{_gamesdatadir}/OpenLieroX
rm -rf %{buildroot}%{_docdir}

mkdir -p %{buildroot}%{_iconsdir}
cp -p %{buildroot}%{_gamesdatadir}/OpenLieroX/data/icon.png %{buildroot}%{_iconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=OpenLieroX
Comment=Extremely addictive realtime worms shoot-em-up
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3845 |21cr|openmortal-0.7.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sversion 0.7

Summary:	Parody of Mortal Kombat
Name:		openmortal
Version:	0.7.1
Release:	11
License:	GPLм2+
Group:		Games/Arcade
Url:		http://openmortal.sourceforge.net/
Source0:	%{name}-%{sversion}.tar.bz2
Source1:	laurence.zip
Source2:	ikari.zip
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		openmortal-0.7-extra-qualification.patch
Patch1:		openmortal-0.7-freetype2.5.patch
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	perl(ExtUtils::Embed)

%description
Open Mortal is a parody of the popular coin-up game, Mortal Kombat.
It is currently playable (maybe even enjoyable), although it is still
under development. Only two-player game is supported, single-player games
against computer opponent is not planned yet.
There are currently 9 playable characters, and 8 more in the making!

%files
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog INSTALL PACKAGERS README TODO
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -n %{name}-%{sversion} -q
%patch0 -p0
%patch1 -p1
unzip %{SOURCE1} -d data/gfx
unzip %{SOURCE2} -d data/gfx

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Open Mortal
Comment=Parody of Mortal Kombat
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

install %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3846 |21cr|openmpi-1.10.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define urlver %(echo %{version}|cut -d. -f1,2)

%define mpi_major 12
%define mpicxx_major 1
%define mpifh_major 12
%define mpiuse_major 6
%define mpiusef_major 11
%define trace_major 0
%define openpal_major 13
%define openrte_major 12
%define oshmem_major 8
%define otf_major 1
%define vt_major 0
%define libmpi %mklibname mpi %{mpi_major}
%define libmpicxx %mklibname mpi_cxx %{mpicxx_major}
%define libmpifh %mklibname mpi_mpifh %{mpifh_major}
%define libmpiuse %mklibname mpi_usempi_ignore_tkr %{mpiuse_major}
%define libmpiusef08 %mklibname mpi_usempif08_ %{mpiusef_major}
%define libtrace %mklibname ompitrace %{trace_major}
%define libopenpal %mklibname open-pal %{openpal_major}
%define libopenrte %mklibname open-rte %{openrte_major}
%define liboshmem %mklibname oshmem %{oshmem_major}
%define libotf %mklibname open-trace-format %{otf_major}
%define libotfaux %mklibname otfaux %{trace_major}
%define libvt %mklibname vt %{vt_major}
%define libvthyb %mklibname vt-hyb %{vt_major}
%define libvtmpi %mklibname vt-mpi %{vt_major}
%define libvtmpiunify %mklibname vt-mpi-unify %{vt_major}
%define libvtmt %mklibname vt-mt %{vt_major}
%define devname %mklibname %{name} -d

Summary:	A powerful implementation of MPI
Name:		openmpi
Version:	1.10.7
Release:	2
License:	BSD
Group:		Development/Other
Url:		http://www.open-mpi.org
Source0:	http://www.open-mpi.org/software/ompi/v%{urlver}/downloads/%{name}-%{version}.tar.bz2
Patch0:		openmpi-1.10.1-fix-function-if.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gcc-gfortran
BuildRequires:	binutils-devel
BuildRequires:	gomp-devel
BuildRequires:	libibverbs-devel
%ifnarch %{arm}
BuildRequires:	numa-devel
%endif
BuildRequires:	torque-devel
BuildRequires:	pkgconfig(zlib)
Requires:	%{devname} = %{EVRD}
Conflicts:	mpich
Conflicts:	mpich2
Conflicts:	lam
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description
OpenMPI is a project combining technologies and resources from
several other projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in
order to build the best MPI library available.

This package contains all of the tools necessary to compile, link, and
run OpenMPI jobs.

%files
%doc README LICENSE NEWS AUTHORS examples/
%config(noreplace) %{_sysconfdir}/*
%{_bindir}/*
%{_datadir}/%{name}/
%{_mandir}/man1/*
%{_libdir}/%{name}/*.so

#----------------------------------------------------------------------------

%package -n %{libmpi}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5
Obsoletes:	%{_lib}openmpi1 < 1.7.5

%description -n %{libmpi}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpi}
%{_libdir}/libmpi.so.%{mpi_major}*

#----------------------------------------------------------------------------

%package -n %{libmpicxx}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libmpicxx}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpicxx}
%{_libdir}/libmpi_cxx.so.%{mpicxx_major}*

#----------------------------------------------------------------------------

%package -n %{libmpifh}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libmpifh}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpifh}
%{_libdir}/libmpi_mpifh.so.%{mpifh_major}*

#----------------------------------------------------------------------------

%package -n %{libmpiuse}
Summary:	Shared library for OpenMPI
Group:		System/Libraries

%description -n %{libmpiuse}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpiuse}
%{_libdir}/libmpi_usempi_ignore_tkr.so.%{mpiuse_major}*

#----------------------------------------------------------------------------

%package -n %{libmpiusef08}
Summary:	Shared library for OpenMPI
Group:		System/Libraries

%description -n %{libmpiusef08}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpiusef08}
%{_libdir}/libmpi_usempif08.so.%{mpiusef_major}*

#----------------------------------------------------------------------------

%package -n %{libtrace}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libtrace}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libtrace}
%{_libdir}/libompitrace.so.%{trace_major}*

#----------------------------------------------------------------------------

%package -n %{libopenpal}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libopenpal}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libopenpal}
%{_libdir}/libopen-pal.so.%{openpal_major}*

#----------------------------------------------------------------------------

%package -n %{libopenrte}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libopenrte}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libopenrte}
%{_libdir}/libopen-rte.so.%{openrte_major}*

#----------------------------------------------------------------------------

%package -n %{liboshmem}
Summary:	Shared library for OpenMPI
Group:		System/Libraries

%description -n %{liboshmem}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{liboshmem}
%{_libdir}/liboshmem.so.%{oshmem_major}*

#----------------------------------------------------------------------------

%package -n %{libotf}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libotf}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libotf}
%{_libdir}/libopen-trace-format.so.%{otf_major}*

#----------------------------------------------------------------------------

%package -n %{libotfaux}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libotfaux}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libotfaux}
%{_libdir}/libotfaux.so.%{trace_major}*

#----------------------------------------------------------------------------

%package -n %{libvt}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libvt}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libvt}
%{_libdir}/libvt.so.%{vt_major}*

#----------------------------------------------------------------------------

%package -n %{libvthyb}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libvthyb}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libvthyb}
%{_libdir}/libvt-hyb.so.%{vt_major}*

#----------------------------------------------------------------------------

%package -n %{libvtmpi}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libvtmpi}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libvtmpi}
%{_libdir}/libvt-mpi.so.%{vt_major}*

#----------------------------------------------------------------------------

%package -n %{libvtmpiunify}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libvtmpiunify}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libvtmpiunify}
%{_libdir}/libvt-mpi-unify.so.%{vt_major}*

#----------------------------------------------------------------------------

%package -n %{libvtmt}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libvtmt}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libvtmt}
%{_libdir}/libvt-mt.so.%{vt_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for OpenMPI
Group:		Development/Other
Requires:	%{libmpi} = %{EVRD}
Requires:	%{libmpicxx} = %{EVRD}
Requires:	%{libmpifh} = %{EVRD}
Requires:	%{libmpiuse} = %{EVRD}
Requires:	%{libmpiusef08} = %{EVRD}
Requires:	%{libtrace} = %{EVRD}
Requires:	%{libopenpal} = %{EVRD}
Requires:	%{libopenrte} = %{EVRD}
Requires:	%{liboshmem} = %{EVRD}
Requires:	%{libotf} = %{EVRD}
Requires:	%{libotfaux} = %{EVRD}
Requires:	%{libvt} = %{EVRD}
Requires:	%{libvthyb} = %{EVRD}
Requires:	%{libvtmpi} = %{EVRD}
Requires:	%{libvtmpiunify} = %{EVRD}
Requires:	%{libvtmt} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	lam-devel
Conflicts:	mpich1-devel
Conflicts:	mpich2-devel

%description -n %{devname}
OpenMPI is a project combining technologies and resources from
several other projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in
order to build the best MPI library available.

This package contains the libraries and header files needed to
compile applications against OpenMPI.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.mod
%{_libdir}/*.a
%{_libdir}/%{name}/*.a
%{_libdir}/pkgconfig/*.pc
%exclude %{_datadir}/vampirtrace/doc/
%{_datadir}/vampirtrace/

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for OpenMPI
Group:		Development/Other
BuildArch:	noarch

%description doc
OpenMPI is a project combining technologies and resources from
several other projects (FT-MPI, LA-MPI, LAM/MPI, and PACX-MPI) in
order to build the best MPI library available.

This package contains documentation and development man pages 
for OpenMPI.

%files doc
%{_mandir}/man3/*
%{_mandir}/man7/*
%dir %{_datadir}/vampirtrace/doc
%{_datadir}/vampirtrace/doc/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# Disable libtoolize because it messes up the generated libtool
# in OpenMPI 1.2:
%define __libtoolize /bin/true
%define _disable_ld_no_undefined 1
export CFLAGS='-fPIC'
%configure \
	--enable-shared \
	--enable-static \
	--with-threads=posix \
	--with-tm
%make

%install
%makeinstall_std

mv %{buildroot}%{_sysconfdir}/openmpi-totalview.tcl %{buildroot}%{_datadir}/openmpi/doc

# To avoid file conflicts with libevent-devel
rm -rf %{buildroot}%{_includedir}/event2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3847 |21cr|openmsx-18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Debug package is empty and we don't care to fix it anyway
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define url_ver $(echo %{version} | tr '.' '-')

Summary:	Open source MSX emulator
Name:		openmsx
Version:	18.0
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://openmsx.sourceforge.net/
Source0:	https://github.com/openMSX/openMSX/releases/download/RELEASE_%{url_ver}/openmsx-%{version}.tar.gz
Source1:	https://github.com/openMSX/openMSX/releases/download/RELEASE_%{url_ver}/%{name}-catapult-%{version}.tar.gz
Patch0:		openmsx-cpp-abi.patch
BuildRequires:	appstream-util
BuildRequires:	python3
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	wxgtku3.0-devel

%description
The open source MSX emulator that tries to achieve
near-perfect emulation by using a novel emulation model.

%files
%doc %{_docdir}/%{name}
%license doc/GPL.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
#%%{_mandir}/man1/%{name}.1.gz
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/settings.xml

#----------------------------------------------------------------------------
%package        catapult
Summary:        Graphical front-end for openMSX
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    catapult
openMSX Catapult is a graphical user interface for openMSX.
Although the program should be self explanatory, we included a set of HTML
manuals, that tell how to use Catapult with openMSX. To understand what all
options mean and to get a better feeling of what openMSX is, we also recommend
to read the documentation of openMSX.

%files catapult
%doc %{_docdir}/%{name}-catapult
%license doc/GPL.txt
%{_bindir}/%{name}-catapult
%{_datadir}/%{name}-catapult
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
#----------------------------------------------------------------------------
%prep
%autosetup -p1 -a1

%build
# Make the custom flavour module, so we can use RPM OPT FLAGS here
cat > build/flavour-rpm.mk << EOF
# Opt flags.
CXXFLAGS+=%{optflags} -DNDEBUG -D_GLIBCXX_USE_CXX11_ABI=1
LINK_FLAGS+=%{ldflags}

# Dont strip exe, let rpm do it and save debug info
OPENMSX_STRIP:=false
CATAPULT_STRIP:=false
EOF

cp build/flavour-rpm.mk %{name}-catapult-%{version}/build

cat > build/custom.mk << EOF
PYTHON:=python3
INSTALL_BASE:=%{_prefix}
VERSION_EXEC:=false
SYMLINK_FOR_BINARY:=false
INSTALL_CONTRIB:=false
INSTALL_SHARE_DIR=%{_datadir}/%{name}
INSTALL_DOC_DIR=%{_docdir}/%{name}
EOF

cat > %{name}-catapult-%{version}/build/custom.mk << EOF
PYTHON:=python3
# If we set this to %%{_prefix} catapult cannot find its resources
INSTALL_BASE:=%{_datadir}/%{name}-catapult
SYMLINK_FOR_BINARY:=false
INSTALL_BINARY_DIR=%{_bindir}
INSTALL_SHARE_DIR=%{_datadir}/%{name}-catapult
INSTALL_DOC_DIR=%{_docdir}/%{name}-catapult
CATAPULT_OPENMSX_BINARY:=%{_bindir}/%{name}
CATAPULT_OPENMSX_SHARE:=%{_datadir}/%{name}
EOF

%configure
make %{?_smp_mflags} OPENMSX_FLAVOUR=rpm V=1
pushd %{name}-catapult-%{version}
  make %{?_smp_mflags} CATAPULT_FLAVOUR=rpm V=1
popd

# Build desktop icon
cat >%{name}.desktop <<EOF
[Desktop Entry]
Name=openMSX
GenericName=MSX Emulator
Comment=%{summary}
Exec=%{name}-catapult
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;Emulator;
Keywords=emulator;msx;openmsx;
EOF

%install
%makeinstall_std OPENMSX_FLAVOUR=rpm V=1
pushd %{name}-catapult-%{version}
  %make_install CATAPULT_FLAVOUR=rpm V=1
popd

# menu
#mkdir -p %{buildroot}%{_datadir}/applications/
#cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
#[Desktop Entry]
#Type=Application
#Exec=%{_bindir}/openmsx
#Icon=emulators_section
#Name=Openmsx
#Comment=Open source MSX emulator
#Categories=Game;Emulator;
#EOF

rm %{buildroot}%{_docdir}/%{name}/GPL.txt
rm %{buildroot}%{_docdir}/%{name}-catapult/GPL.txt

# Move some things around
mv %{buildroot}%{_bindir}/catapult %{buildroot}%{_bindir}/%{name}-catapult

mv %{buildroot}%{_datadir}/%{name}/machines/*.txt \
   %{buildroot}%{_docdir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/settings.xml \
   %{buildroot}%{_sysconfdir}/%{name}
ln -s --target-directory=%{buildroot}%{_datadir}/%{name} \
   ../../../etc/openmsx/settings.xml

#mkdir -p %{buildroot}%{_mandir}/man1
#install -pm 0644 OPENMSX.1 %{buildroot}%{_mandir}/man1/openmsx.1

# Install icon set and desktop file
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
for i in 16 32 48 64 128; do
install -pm 0644 share/icons/openMSX-logo-"$i".png \
    %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps/%{name}.png
done

desktop-file-install --dir %{buildroot}%{_datadir}/applications \
                     %{name}.desktop

# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p %{buildroot}%{_datadir}/appdata
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Edgar Muniz Berlinck <edgar.vv@gmail.com> -->
<!--
BugReportURL: BUGTRACKER DEAD
SentUpstream: 2014-09-25
-->
<component type="desktop">
  <id>openmsx.desktop</id>
  <metadata_license>CC0-1.0</metadata_license>
  <project_license>GPL-2.0</project_license>
  <name>openMSX</name>
  <summary>Emulate all aspects of the MSX with high accuracy</summary>
  <description>
    <p>
      OpenMSX is an emulator for the MSX home computer system. MSX is an old
      Z80-based family of home computers as an attempt to establish
      a single standard in home computing similar to VHS in video.
    </p>
    <p>
      The MSX standard has been designed by a company called ASCII in Cooperation
      with Microsoft which has provided a firmware version of its extended BASIC
      (called "MicroSoft eXtended BASIC") for the machine, which explains the
      MSX name.
    </p>
    <p>
     In addition to emulating MSX, MSX2, MSX2+, MSX Turbo R and many of it's
     peripherals, openMSX also support emulating the ColecoVision game console
     and the SpectraVideo SVI-318 and SVI-328 home computer systems.
    </p>
  </description>
  <url type="homepage">http://openmsx.org/</url>
  <url type="help">http://openmsx.org/manual/user.html</url>
  <screenshots>
    <screenshot type="default">http://openmsx.org/images/screenshots/mlimit3.png</screenshot>
    <screenshot>http://openmsx.org/images/screenshots/ide.png</screenshot>
    <screenshot>http://openmsx.org/images/screenshots/tb-underwater.png</screenshot>
  </screenshots>
  <updatecontact>jwrdegoede_at_fedoraproject.org</updatecontact>
</component>
EOF
appstream-util validate-relax --nonet \
  %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3848 |21cr|openmw-0.48.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A reimplementation of The Elder Scrolls III: Morrowind
Name:		openmw
Version:	0.48.0
Release:	1
License:	GPLv3+
Group:		Games/Adventure
Url:		https://openmw.org
Source0:	https://github.com/OpenMW/openmw/archive/refs/tags/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	doxygen
# Looks like it's needed to build in "package" mode
BuildRequires:	dpkg
BuildRequires:	git
BuildRequires:	python3-sphinx
BuildRequires:	boost-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	tinyxml-devel
BuildRequires:	pkgconfig(bullet)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libunshield)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(MYGUI)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openscenegraph-osg)
BuildRequires:	pkgconfig(openscenegraph-osgAnimation)
BuildRequires:	pkgconfig(openscenegraph-osgDB)
BuildRequires:	pkgconfig(openscenegraph-osgFX)
BuildRequires:	pkgconfig(openscenegraph-osgGA)
BuildRequires:	pkgconfig(openscenegraph-osgParticle)
BuildRequires:	pkgconfig(openscenegraph-osgQt)
BuildRequires:	pkgconfig(openscenegraph-osgShadow)
BuildRequires:	pkgconfig(openscenegraph-osgText)
BuildRequires:	pkgconfig(openscenegraph-osgUtil)
BuildRequires:	pkgconfig(openscenegraph-osgViewer)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(yaml-cpp)
BuildRequires:	pkgconfig(uuid)
Requires:	openscenegraph-plugins

%description
OpenMW is an engine for 2002's game The Elder Scrolls 3: Morrowind. It aims to
be a fully playable (and improved!), open source implementation of the game's
engine and functionality.
You will still need the original game data to play OpenMW.

%files
%doc CHANGELOG.md README.md
%license LICENSE
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/bsatool
%{_bindir}/esmtool
%{_bindir}/%{name}
%{_bindir}/%{name}-cs
%{_bindir}/%{name}-essimporter
%{_bindir}/%{name}-iniimporter
%{_bindir}/%{name}-launcher
%{_bindir}/%{name}-wizard
%{_bindir}/%{name}-bulletobjecttool
%{_bindir}/%{name}-navmeshtool
%{_bindir}/niftest
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}-cs.png
%{_datadir}/pixmaps/%{name}.png
%{_gamesdatadir}/%{name}/
%{_sysconfdir}/%{name}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

# Fix perms
find . -name "*.cpp" -o -name "*.hpp" | xargs chmod 0644

%build
%cmake	\
	-DBUILD_DOCS=ON		\
	-DDESIRED_QT_VERSION=5	\
	-DUSE_SYSTEM_TINYXML=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3849 |21cr|openntpd-6.2p1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	OpenNTPD - NTP Time Synchronization Client/Server 
Name:		openntpd
Version:	6.2p1
Release:	1
License:	BSD
Group:		System/Servers
Url:		http://www.openntpd.org
Source0:	http://ftp.openbsd.org/pub/OpenBSD/OpenNTPD/%{name}-%{version}.tar.gz
Source1:	openntpd.service
Requires(post): rpm-helper
Requires(preun): rpm-helper
Requires(pre): rpm-helper
Requires(postun): rpm-helper
BuildRequires:	openssl-devel
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	groff-for-man
Conflicts:	ntp-client

%description
OpenNTPD is a FREE, easy to use implementation of the Network Time
Protocol. It provides the ability to sync the local clock to
remote NTP servers and can act as NTP server itself,
redistributing the local clock. 

%files
%doc ChangeLog README*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ntpd.conf
%attr(0755,root,root) %{_unitdir}/*service
%attr(0755,root,root) %{_sbindir}/*
%attr(0644,root,root) %{_mandir}/man*/*

#-----------------------------------------------------------------

%prep
%setup -q
cp %{SOURCE1} openntpd.service

%build
%configure \
    --disable-strip \
    --with-privsep-user=ntp \
    --with-privsep-path=%{_var}/empty \
    --with-ssl-dir=%{_prefix}
%make

%install
install -d %{buildroot}%{_unitdir}
%makeinstall_std
mv openntpd.service %{buildroot}%{_unitdir}/%{name}.service

%pre
%_pre_useradd ntp %{_var}/empty /bin/false
/usr/sbin/usermod -d %{_var}/empty ntp

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3850 |21cr|opennx-0.16-1.729.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn 729

Summary:	An opensource NX client
Name:		opennx
Version:	0.16
Release:	1.%{svn}.1
License:	LGPLv2.1+
Group:		Networking/Remote access
Url:		http://sourceforge.net/projects/opennx
Source0:	http://sourceforge.net/projects/opennx/files/opennx/CI-source/%{name}-%{version}.0.%{svn}.tar.gz
BuildRequires:	curl
BuildRequires:	zip
BuildRequires:	cups-devel
BuildRequires:	wxgtku2.8-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(sm)
# libsmbclient seems to be dlopened at runtime but let's keep BR
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xmu)
Requires:	cups-common
Requires:	samba-client

%description
OpenNX is an OSS replacement for Nomachine's NX client.

%files -f %{name}.lang
%doc COPYING INSTALL
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/desktop-directories/*.directory
%{_datadir}/cups/*
%{_datadir}/keys/*.key
%{_datadir}/keyboards
%{_datadir}/pconnect.html
%{_iconsdir}/hicolor/*/*/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/tmp
mv %{buildroot}%{_iconsdir}/* %{buildroot}/tmp/
mkdir -p %{buildroot}%{_iconsdir}/hicolor
mv %{buildroot}/tmp/* %{buildroot}%{_iconsdir}/hicolor/

mkdir -p %{buildroot}%{_datadir}/applications
mv %{buildroot}%{_datadir}/applnk/xdg/*.desktop %{buildroot}%{_datadir}/applications/

mkdir -p %{buildroot}%{_datadir}/desktop-directories
mv %{buildroot}%{_datadir}/applnk/xdg/*.directory %{buildroot}%{_datadir}/desktop-directories/

sed -i s,"/usr/NX/bin","%{_bindir}",g %{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3851 |21cr|openocd-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1
%define debug_package %{nil}

Name:       openocd
Version:    0.12.0
Release:    1
Summary:    Debugging, in-system programming and boundary-scan testing for embedded devices
Group:      Development/Tools
License:    GPLv2
URL:        http://sourceforge.net/projects/openocd
Source0:    https://github.com/openocd-org/openocd/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:     openocd-gcc14.patch
BuildRequires: capstone-devel
BuildRequires: chrpath
BuildRequires: gcc
BuildRequires: hidapi-devel
BuildRequires: pkgconfig(jimtcl)
# Only used for gpio bitbang driver
# BuildRequires: libgpiod-devel
BuildRequires: pkgconfig(libjaylink)
BuildRequires: pkgconfig(libftdi1)
BuildRequires: libusbx-devel
BuildRequires: make
BuildRequires: sdcc
BuildRequires: texinfo
Requires:       udev

%description
The Open On-Chip Debugger (OpenOCD) provides debugging, in-system programming 
and boundary-scan testing for embedded devices. Various different boards, 
targets, and interfaces are supported to ease development time.

Install OpenOCD if you are looking for an open source solution for hardware 
debugging.

%prep
%autosetup -p1 -n %{name}-%{version}
sed -i 's/MODE=.*/TAG+="uaccess"/' contrib/60-openocd.rules

%build
pushd src/jtag/drivers/OpenULINK
make PREFIX= hex
popd

autoreconf -vfi
%configure \
  --disable-werror \
  --enable-static \
  --disable-shared \
  --enable-dummy \
  --enable-ftdi \
  --enable-stlink \
  --enable-ti-icdi \
  --enable-ulink \
  --enable-usb-blaster-2 \
  --enable-ft232r \
  --enable-vsllink \
  --enable-xds110 \
  --enable-cmsis-dap-v2 \
  --enable-osbdm \
  --enable-opendous \
  --enable-aice \
  --enable-usbprog \
  --enable-rlink \
  --enable-armjtagew \
  --enable-cmsis-dap \
  --enable-nulink \
  --enable-kitprog \
  --enable-usb-blaster \
  --enable-presto \
  --enable-openjtag \
  --enable-jlink \
  --enable-parport \
  --enable-jtag_vpi \
  --enable-jtag_dpi \
  --enable-ioutil \
  --enable-amtjtagaccel \
  --enable-ep39xx \
  --enable-at91rm9200 \
  --enable-gw16012 \
  --enable-oocd_trace \
  --enable-buspirate \
  --enable-sysfsgpio \
  --enable-esp-usb-jtag \
  --enable-xlnx-pcie-xvc \
  --enable-remote-bitbang \
  --disable-internal-jimtcl \
  --disable-doxygen-html \
  --with-capstone \
  --disable-internal-libjaylink \
  --disable-internal-jimtcl \
  CROSS=
%make_build

%install
%make_install
rm -f %{buildroot}/%{_infodir}/dir
rm -f %{buildroot}/%{_libdir}/libopenocd.*
rm -rf %{buildroot}/%{_datadir}/%{name}/contrib
mkdir -p %{buildroot}/%{_udevrulesdir}/
install -p -m 644 contrib/60-openocd.rules %{buildroot}/%{_udevrulesdir}/
chrpath --delete %{buildroot}/%{_bindir}/openocd

%files
%doc README COPYING AUTHORS ChangeLog NEWS TODO
%{_datadir}/%{name}/scripts
%{_datadir}/%{name}/OpenULINK/ulink_firmware.hex
%{_bindir}/%{name}
%{_udevrulesdir}//60-openocd.rules
%{_infodir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3852 |21cr|openomf-0.6.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shadowdrive_version 0.8
%define dumb_snapshot 20150113

Summary:	Open Source remake of DOS classics One Must Fall 2097
Name:		openomf
Version:	0.6.5
Release:	10
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.openomf.org/
# From git by tag https://github.com/omf2097/openomf/archive/%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
# From git https://github.com/omf2097/libShadowDive/
Source1:	libShadowDive-%{shadowdrive_version}.zip
# From git https://github.com/kode54/dumb
Source2:	dumb-%{dumb_snapshot}.tar.bz2
Source3:	openomf.png
Patch0:		openomf-0.6.5-cflags.patch
Patch1:		dumb-fix-cpuid.patch
Patch2:		dumb-20150113-optflags.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libconfuse)
BuildRequires:	pkgconfig(libenet)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
# 32 bit build fails on dumb library and not worth to fix
ExclusiveArch:	%{x86_64} aarch64

%description
Open Source remake of DOS classics One Must Fall 2097.

Please note that you need the original game data. You can download it from:
http://www.omf2097.com/pub/files/omf/omf2097.rar

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%dir %attr(0777,games,root) %{_datadir}/%{name}/

#----------------------------------------------------------------------------

%prep
# No autosetup there because use patches below
%setup -q
%patch0 -p1

# Unpack external libraries from Native sub-project
pushd external
rm -rf libShadowDive
unzip %{SOURCE1}
mv libShadowDive-%{shadowdrive_version} libShadowDive
rm -rf dumb
tar -xf %{SOURCE2}
mv dumb-%{dumb_snapshot} dumb
popd

pushd external/dumb
%patch1 -p1
%patch2 -p1
popd

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_STATIC_LIBS:BOOL=ON
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/%{name}

rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_prefix}/lib

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=OpenOMF
Comment=Open Source remake of DOS classics One Must Fall 2097
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert %{SOURCE3} -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3853 |21cr|openpaperwork-core-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with BR_generator
%define oname openpaperwork_core

Name:           openpaperwork-core
Version:        2.1.2
Release:        1
Summary:        OpenPaperwork

License:        GPL-3.0-or-later
URL:            https://gitlab.gnome.org/World/OpenPaperwork/paperwork/tree/master/openpaperwork-core
Source0:        %pypi_source %{name}
Source1:        ru.po
Group:          Graphics

BuildArch:      noarch
#ExcludeArch: %{ix86}
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3-psutil
BuildRequires:  python3-distro
BuildRequires:  python3-wheel
BuildRequires:  python3-pip
BuildRequires:  /usr/bin/msgfmt

%description
Paperwork is a personal document manager. It manages scanned documents and PDFs
This is the core part of Paperwork. It manages plugins.


%package -n     python3-%{name}
Summary:        %{summary}

%description -n python3-%{name}
Paperwork is a personal document manager. It manages scanned documents and PDFs.
This is the core part of Paperwork. It manages plugins.


%prep
%autosetup -n %{name}-%{version}

%if %{with BR_generator}
%generate_buildrequires
%pyproject_buildrequires
%endif

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files openpaperwork_core
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
cp -fr src/%{oname}/l10n/out/* %{buildroot}%{_localedir}/
#chmod -R 644 %{buildroot}%{_localedir}/*
find %{buildroot}%{_localedir}/ -type f -not -name '*.mo' |xargs rm -f
msgfmt -v %{SOURCE1} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{oname}.mo

%files -n python3-%{name} -f %{pyproject_files}
%doc README.md
%license LICENSE
%{_localedir}/*/LC_MESSAGES/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3854 |21cr|openpaperwork-gtk-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with BR_generator
%define oname openpaperwork_gtk

Name:           openpaperwork-gtk
Version:        2.1.2
Release:        1
Summary:        OpenPaperwork GTK plugins

License:        GPL-3.0-or-later
URL:            https://gitlab.gnome.org/World/OpenPaperwork/paperwork/tree/master/openpaperwork-gtk
Source0:        %pypi_source %{name}
Source1:        ru.po
Group:          Graphics
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3dist(pygobject)
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  python3-pip
BuildRequires:  python3-openpaperwork-core
BuildRequires:  python3-jarowinkler
BuildRequires:  python3-rapidfuzz
BuildRequires:  /usr/bin/msgfmt
BuildArch:      noarch

%description
Paperwork is a personal document manager. It manages scanned documents and PDFs

A bunch of plugins for Paperwork related to GLib and GTK.


%package -n     python3-%{name}
Summary:        %{summary}

Requires:       python3dist(pygobject)
Requires:       lib64gdk_pixbuf2.0_0
Requires:       gtk3
Requires:       lib64handy-gir1  
Requires:       libnotify
Requires:       pango
Requires:       python3-jarowinkler
Requires:       python3-rapidfuzz

%description -n python3-%{name}
Paperwork is a personal document manager. It manages scanned documents and PDFs
A bunch of plugins for Paperwork related to GLib and GTK.

%prep
%autosetup -n %{name}-%{version}
%if %{with BR_generator}
%generate_buildrequires
%pyproject_buildrequires
%endif

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files openpaperwork_gtk
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
cp -fr src/%{oname}/l10n/out/* %{buildroot}%{_localedir}/
#chmod -R 644 %{buildroot}%{_localedir}/*
find %{buildroot}%{_localedir}/ -type f -not -name '*.mo' |xargs rm -f
msgfmt -v %{SOURCE1} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{oname}.mo

%files -n python3-%{name} -f %{pyproject_files}
%doc README.md
%license LICENSE
%{_localedir}/*/LC_MESSAGES/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3855 |21cr|openpref-0.1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		openpref
Version:	0.1.3
Release:	3
Summary:	OpenPref - Preference game for linux
Group:		Games/Cards
License:	GPLv3+
Source0:	http://downloads.sourceforge.net/project/openpref/OpenPref-Qt4/openpref-%{version}/%{name}-%{version}.tar.gz
Source1:	openpref.desktop
Patch0:		openpref-0.1.3-alt-locale.patch
Url:		http://sourceforge.net/projects/openpref/
BuildRequires:	gcc-c++
BuildRequires:	qt4-devel

%description
OpenPref - Preference game for linux.

%prep
%setup -q
%patch0 -p1

%build
%qmake_qt4
%make

%install
mkdir -p %{buildroot}%{_bindir}/
install -m755 -p %{name} %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_datadir}/applications/
install -m644 -p %{SOURCE1} %{buildroot}%{_datadir}/applications/

mkdir -p %{buildroot}%{_datadir}/openpref/
install -m644 -p openpref_ru.qm %{buildroot}%{_datadir}/openpref/

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/openpref/openpref_ru.qm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3856 |21cr|OpenProducer-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define	aname	Producer
%define	cvsdate	200601122325

Summary:	Cross-platform libray for Opengl rendering
Name:		OpenProducer
Version:	1.0.1
Release:	10
Epoch:		1
License:	GPL
Group:		Development/C++
Url:		http://www.andesengineering.com/BlueMarbleViewer/producer_install.html
Source0:	%{aname}-%{version}-%{cvsdate}.tar.bz2
Source10:	%{name}.rpmlintrc
Patch0:		Producer-1.0.1-gcc43.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(openscenegraph)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%description
Open Producer (or simply Producer) is a cross-platform, C++ library
for managing OpenGL rendering contexts in a windowing system
independent manner.  Producer provides a simple, yet powerfully
scalable approach for real-time 3D applications wishing to run
within a single window to large, multidisplay systems.
Producer is highly  portable and has been tested on Linux, Windows,
Mac OSX, Solaris and IRIX.  Producer works on all Unix based OS's
(including Mac OSX) through the X11 Windowing system, and through
the native win32 on Windows. Producer is written with productivity,
performance and scalability in mind by adhering to industry standard
and employing advanced software engineering practices.  Software
developers wishing to produce 3D rendering software that can display
on a desktop, and move to a large system or clustered system of
displays by simply changing a configuration file, can depend on Open
Producer to handle all the complexity for them.

%prep
%setup -q -n %{aname}
%patch0 -p0
rm -rf `find -type d -name CVS`

%build
%make CXX="%{__cxx} %{optflags} -fPIC"

%install
%if "%{_lib}" == "lib64"
export ARCH_EXT=64
%endif
%make INST_LOCATION=%{buildroot}%{_prefix} install

%files
%doc README.txt doc
%{_libdir}/lib%{aname}.so
%{_includedir}/%{aname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3857 |21cr|openprogrammer-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# % define debug_package %{nil}

Name:		openprogrammer
Version:	0.12.0
Release:	1
Summary:	Control program for open programmer
License:	GPLv2
Group:		Development/Other
Source0:	http://sourceforge.net/projects/openprogrammer/files/OP/op_%{version}.tar.gz
Source1:	openprogrammer.rules
Patch0:		%{name}-Makefile.patch
URL:		http://openprog.altervista.org/OP_eng.html
BuildRequires:	dos2unix
BuildRequires:	udev

%description
OP: control program for open programmer, an USB programmer for PIC and ATMEL
micros, I2C/SPI/MicroWire memories, and other I2C/SPI devices.


%prep
%autosetup -p1 -n op-%{version}

%build
%make CFLAGS="${CFLAGS} -g"

%install
%makeinstall_std

dos2unix readme

mkdir -p %{buildroot}%{_udevrulesdir}
cp %{SOURCE1} %{buildroot}%{_udevrulesdir}/99-%{name}.rules

%files
%doc readme gpl-2.0.txt
%{_bindir}/op
%config %{_udevrulesdir}/*-openprogrammer.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3858 |21cr|openprogrammergui-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		openprogrammergui
Version:	0.12.0
Release:	1
Summary:	Control program for open programmer
License:	GPLv2
Group:		Development/Other
Source0:	http://sourceforge.net/projects/openprogrammer/files/OPGUI/opgui_%{version}.tar.gz
Source1:	%{name}.desktop
Source2:	OP.png
Patch0:		openprogrammergui-0.12.0-Makefile.patch
URL:		http://openprog.altervista.org/OP_eng.html
Requires:	openprogrammer
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	dos2unix
BuildRequires:	desktop-file-utils

%description
OP: GTK control program for open programmer, an USB programmer for PIC and
ATMEL micros, I2C/SPI/MicroWire memories, and other I2C/SPI devices.

%prep
%autosetup -p1 -n opgui-%{version}
chmod a-x *

%build
#make CFLAGS="${CFLAGS} -g"
make

%install
%makeinstall_std

dos2unix gpl-2.0.txt
dos2unix readme

#create desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
   --vendor= \
   --dir %{buildroot}%{_datadir}/applications \
   --add-category Qt \
   --add-category Education \
   %{SOURCE1}

#create icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
cp %{SOURCE2} %{buildroot}%{_datadir}/icons/hicolor/32x32/apps

%files
%doc readme gpl-2.0.txt
%{_bindir}/opgui
%{_datadir}/applications/openprogrammergui.desktop
%{_datadir}/icons/hicolor/32x32/apps/OP.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3859 |21cr|openr2-1.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname openr2_ %{major}
%define devname %mklibname openr2 -d

Summary:	MFC/R2 signalling over E1 lines using the DAHDI Telephony interface
Name:		openr2
Version:	1.3.3
Release:	5
License:	GPLv2+
Group:		System/Servers
Url:		http://code.google.com/p/openr2/
Source0:	http://openr2.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	libtool
BuildRequires:	dahdi-devel

%description
OpenR2 is a library that implements the MFC/R2 signalling over E1 lines using
the DAHDI Telephony interface. The MF R2 tones required for the signaling are
generated by code borrowed from the LGPL library SpanDSP written by Steve
Underwood, the user has the option to provide a MF interface to use his own MF
R2 tone generation and detection so the library will use them when needed,
that's why this library does not depend directly on spandsp, libteletone or
zaptel for tone generation and detection (depends on zaptel for CAS bits and
general media transmission though).

%files
%doc doc/*
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/r2proto.conf
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/r2test.conf
%attr(0755,root,root) %{_bindir}/r2dtmf_detect
%attr(0755,root,root) %{_bindir}/r2test
%{_mandir}/man5/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MFC/R2 signalling over E1 lines using the DAHDI Telephony interface library
Group:		System/Libraries

%description -n %{libname}
OpenR2 is a library that implements the MFC/R2 signalling over E1 lines using
the DAHDI Telephony interface. The MF R2 tones required for the signaling are
generated by code borrowed from the LGPL library SpanDSP written by Steve
Underwood, the user has the option to provide a MF interface to use his own MF
R2 tone generation and detection so the library will use them when needed,
that's why this library does not depend directly on spandsp, libteletone or
zaptel for tone generation and detection (depends on zaptel for CAS bits and
general media transmission though)

%files -n %{libname}
%doc COPYING* README
%{_libdir}/libopenr2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the openr2 library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
OpenR2 is a library that implements the MFC/R2 signalling over E1 lines using
the DAHDI Telephony interface. The MF R2 tones required for the signaling are
generated by code borrowed from the LGPL library SpanDSP written by Steve
Underwood, the user has the option to provide a MF interface to use his own MF
R2 tone generation and detection so the library will use them when needed,
that's why this library does not depend directly on spandsp, libteletone or
zaptel for tone generation and detection (depends on zaptel for CAS bits and
general media transmission though)

This package contains development files for the openr2 library.

%files -n %{devname}
%{_includedir}/openr2
%{_includedir}/openr2.h
%{_libdir}/libopenr2.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --with-pic
%make

%install
%makeinstall

# cleanup
rm -f %{buildroot}%{_libdir}/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3860 |21cr|openrazer-3.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open source driver and user-space daemon for managing Razer devices
Name:		openrazer
Version:	3.8.0
Release:	1
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		https://github.com/openrazer/openrazer
Source0:	https://github.com/openrazer/openrazer/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		openrazer-3.5.1-path-for-99-razer.patch
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	dkms
Requires:	make
Requires:	%{name}-daemon = %{EVRD}
Requires:	%{name}-kernel-modules-dkms = %{EVRD}
Requires:	udev
Requires:	xautomation
Requires:	python3-gi
Requires:	python3-gobject
Requires:	python3-%{name} = %{EVRD}
Requires:	python3dist(daemonize)
Requires:	python3dist(dbus-python)
Requires:	python3dist(numpy)
Requires:	python3dist(pyudev)
Requires:	python3dist(setproctitle)
Requires:	typelib(Gdk)
Requires(pre):	shadow-utils
BuildArch:	noarch

%description
A collection of Linux drivers for Razer devices - providing kernel drivers,
DBus services and Python bindings to interact with the DBus interface.

%files
# meta package is empty
%doc README.md
%license LICENSES/*.txt

#----------------------------------------------------------------------------

%package kernel-modules-dkms
Summary:	OpenRazer Driver DKMS package
Group:		System/Kernel and hardware

%description kernel-modules-dkms
Kernel driver for Razer devices (DKMS-variant)

%files kernel-modules-dkms
%{_prefix}/lib/udev/razer_mount
%{_prefix}/lib/udev/rules.d/99-razer.rules
%{_usrsrc}/%{name}-driver-%{version}

%pre kernel-modules-dkms
getent group plugdev >/dev/null || groupadd -r plugdev

%posttrans kernel-modules-dkms
dkms install %{name}-driver/%{version}
echo "To complete installation, please run:"
echo "# sudo gpasswd -a <yourUsername> plugdev"

%preun kernel-modules-dkms
if [ "$(dkms status -m %{name}-driver -v %{version})" ]; then
	dkms remove -m %{name}-driver -v %{version} --all
fi

#----------------------------------------------------------------------------

%package daemon
Summary:	OpenRazer Service package
Group:		System/Configuration/Other

%description daemon
Userspace daemon that abstracts access to the kernel driver.
Provides a DBus service for applications to use.

%files daemon
%{_bindir}/%{name}-daemon
%{_datadir}/dbus-1/services/org.razer.service
%{_datadir}/%{name}
%{_mandir}/man5/razer.conf.5*
%{_mandir}/man8/%{name}-daemon.8*
%{_userunitdir}/%{name}-daemon.service
%{python3_sitelib}/%{name}_daemon
%{python3_sitelib}/%{name}_daemon-*.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	OpenRazer Python library
Group:		Development/Python

%description -n python3-%{name}
Python library for accessing the daemon from Python.

%files -n python3-%{name}
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
# setup_dkms & udev_install -> razer-kernel-modules-dkms
# daemon_install -> razer_daemon
# python_library_install -> python3-razer
make DESTDIR=%{buildroot} setup_dkms udev_install daemon_install python_library_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3861 |21cr|openrgb-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global oname OpenRGB

Summary:	Open source RGB lighting control
Name:		openrgb
Version:	0.9
Release:	1
License:	GPLv2
Group:		Graphical desktop/KDE
Url:		https://gitlab.com/CalcProgrammer1/OpenRGB
Source0:	https://gitlab.com/CalcProgrammer1/OpenRGB/-/archive/release_%{version}/%{oname}-release_%{version}.tar.gz
BuildRequires:	mbedtls-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(hidapi-libusb)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Program for RGB lighting control.

%files
%doc README.md
%license LICENSE
%{_appdatadir}/org.openrgb.OpenRGB.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/OpenRGB.desktop
%{_iconsdir}/hicolor/128x128/apps/OpenRGB.png
%{_udevrulesdir}/60-openrgb.rules

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-release_%{version}

sed -i \
	-e "s|PREFIX = /usr|PREFIX = %{buildroot}%{_prefix}|" \
	-e "s|\$\$PREFIX/lib/udev/rules.d/|%{buildroot}%{_udevrulesdir}|" \
	%{oname}.pro

%build
%qmake_qt5 %{oname}.pro
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3862 |21cr|openscad-2021.01-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	date 2021.01

Summary:	3D CAD modeller
Name:		openscad
Version:	%{date}
Release:	4
License:	GPLv3+
Group:		Sciences/Computer science
Url:		https://openscad.org
Source0:	https://files.openscad.org/%{name}-%{date}.src.tar.gz
# FindLib3FM.cmake cannot find the new lib3mf.pc file
# (see upstream issue #3709): drop detection at all
# to avoid alarming noises in the build output, until resolved
Patch0:		openscad-2021.01-remove-lib3mf-detection.patch
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel >= 1.36
BuildRequires:	cgal-devel
BuildRequires:	double-conversion-devel
BuildRequires:	gettext-devel
BuildRequires:	mpfr-devel
BuildRequires:	opencsg-devel
BuildRequires:	qscintilla-qt5-devel >= 2.8.0
#BuildRequires:	pkgconfig(3mf) >= 2.2.1
BuildRequires:	pkgconfig(cairo) >= 1.14
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(fontconfig) >= 2.8.0
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0) >= 2.26
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gmp)
BuildRequires:	pkgconfig(harfbuzz) >= 0.9.19
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >=  5.4
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
OpenSCAD is a software for creating solid 3D CAD objects. It is free software
and available for Linux/UNIX, MS Windows and Mac OS X.

%files
%doc COPYING *.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/metainfo/org.%{name}.OpenSCAD.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{date}


%build
%qmake_qt5 PREFIX=%{_prefix} VERSION=%{version}

%install
%makeinstall INSTALL_ROOT=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3863 |21cr|openscada-0.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} |cut -d. -f1,2)

%define major 3
%define libname %mklibname oscada %{major}
%define devname %mklibname oscada -d

Summary:	Open SCADA system
Name:		openscada
Version:	0.9.4
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://oscada.org
Source0:	http://oscada.org/oscadaArch/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	http://oscada.org/oscadaArch/%{url_ver}/%{name}-res-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	chrpath
BuildRequires:	desktop-file-utils
BuildRequires:	sqlite-tools
BuildRequires:	gd-devel
BuildRequires:	glibc-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	mariadb-devel
BuildRequires:	net-snmp-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(fbclient)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sqlite3)
Requires:	%{name}-Archive.DBArch = %{EVRD}
Requires:	%{name}-Archive.FSArch = %{EVRD}
Requires:	%{name}-DAQ.AMRDevs = %{EVRD}
Requires:	%{name}-DAQ.BFN = %{EVRD}
Requires:	%{name}-DAQ.BlockCalc = %{EVRD}
Requires:	%{name}-DAQ.DAQGate = %{EVRD}
Requires:	%{name}-DAQ.DCON = %{EVRD}
%ifarch %{ix86}
Requires:	%{name}-DAQ.DiamondBoards = %{EVRD}
Requires:	%{name}-DAQ.ICP_DAS = %{EVRD}
%endif
Requires:	%{name}-DAQ.JavaLikeCalc = %{EVRD}
Requires:	%{name}-DAQ.LogicLev = %{EVRD}
Requires:	%{name}-DAQ.ModBus = %{EVRD}
Requires:	%{name}-DAQ.OPC_UA = %{EVRD}
Requires:	%{name}-DAQ.Siemens = %{EVRD}
Requires:	%{name}-DAQ.SNMP = %{EVRD}
Requires:	%{name}-DAQ.SoundCard = %{EVRD}
Requires:	%{name}-DAQ.System = %{EVRD}
Requires:	%{name}-DB.DBF = %{EVRD}
Requires:	%{name}-DB.DBGate = %{EVRD}
Requires:	%{name}-DB.MySQL = %{EVRD}
Requires:	%{name}-DB.SQLite = %{EVRD}
Requires:	%{name}-Model.AGLKS = %{EVRD}
Requires:	%{name}-Model.Boiler = %{EVRD}
Requires:	%{name}-Protocol.HTTP = %{EVRD}
Requires:	%{name}-Protocol.SelfSystem = %{EVRD}
Requires:	%{name}-Protocol.UserProtocol = %{EVRD}
Requires:	%{name}-Special.FLibComplex1 = %{EVRD}
Requires:	%{name}-Special.FLibMath = %{EVRD}
Requires:	%{name}-Special.FLibSYS = %{EVRD}
Requires:	%{name}-Special.SystemTests = %{EVRD}
Requires:	%{name}-Transport.Serial = %{EVRD}
Requires:	%{name}-Transport.Sockets = %{EVRD}
Requires:	%{name}-Transport.SSL = %{EVRD}
Requires:	%{name}-UI.QTCfg = %{EVRD}
Requires:	%{name}-UI.QTStarter = %{EVRD}
Requires:	%{name}-UI.VCAEngine = %{EVRD}
Requires:	%{name}-UI.Vision = %{EVRD}
Requires:	%{name}-UI.WebCfgD = %{EVRD}
Requires:	%{name}-UI.WebUser = %{EVRD}
Requires:	%{name}-UI.WebVision = %{EVRD}

%description
Open SCADA system. Typical installation.

%files

#----------------------------------------------------------------------------

%package core
Summary:	Open SCADA system core
Group:		Graphics
Requires:	%{libname} = %{EVRD}

%description core
Open SCADA system core. For access use default account "root" and password
"openscada".

%files core
%doc README README_ru README_uk COPYING ChangeLog INSTALL TODO TODO_ru TODO_uk
%{_bindir}/%{name}
%{_bindir}/%{name}-proj
%{_bindir}/%{name}_start
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_datadir}/%{name}/ARCHIVES/MESS/.info
%{_datadir}/%{name}/ARCHIVES/VAL/.info
%{_datadir}/%{name}/DATA/.info
%{_datadir}/%{name}/icons/*
%config %{_sysconfdir}/init.d/oscadad
%config(noreplace) %{_sysconfdir}/oscada_start.xml
%config(noreplace) %{_sysconfdir}/oscada.xml
%exclude %{_datadir}/%{name}/icons/AGLKS.png
%exclude %{_datadir}/%{name}/icons/BD.DBF.png
%exclude %{_datadir}/%{name}/icons/BD.FireBird.png
%exclude %{_datadir}/%{name}/icons/BD.MySQL.png
%exclude %{_datadir}/%{name}/icons/BD.PostgreSQL.png
%exclude %{_datadir}/%{name}/icons/BD.SQLite.png
%exclude %{_datadir}/%{name}/icons/Boiler.png
%exclude %{_datadir}/%{name}/icons/DAQ.BFN.png
%exclude %{_datadir}/%{name}/icons/DAQ.BlockCalc.png
%exclude %{_datadir}/%{name}/icons/DAQ.DAQGate.png
%exclude %{_datadir}/%{name}/icons/DAQ.DCON.png
%exclude %{_datadir}/%{name}/icons/DAQ.JavaLikeCalc.png
%exclude %{_datadir}/%{name}/icons/DAQ.LogicLev.png
%exclude %{_datadir}/%{name}/icons/DAQ.ModBus.png
%exclude %{_datadir}/%{name}/icons/DAQ.OPC_UA.png
%exclude %{_datadir}/%{name}/icons/DAQ.Siemens.png
%exclude %{_datadir}/%{name}/icons/DAQ.SNMP.png
%exclude %{_datadir}/%{name}/icons/DAQ.SoundCard.png
%exclude %{_datadir}/%{name}/icons/DAQ.System.png
%exclude %{_datadir}/%{name}/icons/Archive.DBArch.png
%exclude %{_datadir}/%{name}/icons/Archive.FSArch.png
%exclude %{_datadir}/%{name}/icons/Transport.Serial.png
%exclude %{_datadir}/%{name}/icons/Transport.Sockets.png
%exclude %{_datadir}/%{name}/icons/Transport.SSL.png
%exclude %{_datadir}/%{name}/icons/Protocol.HTTP.png
%exclude %{_datadir}/%{name}/icons/Protocol.SelfSystem.png
%exclude %{_datadir}/%{name}/icons/Protocol.UserProtocol.png
%exclude %{_datadir}/%{name}/icons/UI.QTCfg.png
%exclude %{_datadir}/%{name}/icons/UI.QTStarter.png
%exclude %{_datadir}/%{name}/icons/UI.VCAEngine.png
%exclude %{_datadir}/%{name}/icons/UI.Vision.png
%exclude %{_datadir}/%{name}/icons/UI.WebCfgD.png
%exclude %{_datadir}/%{name}/icons/UI.WebCfg.png
%exclude %{_datadir}/%{name}/icons/UI.WebVision.png
%exclude %{_datadir}/%{name}/icons/UI.WebUser.png

%post core
%_post_service oscadad

%preun core
%_preun_service oscadad

#----------------------------------------------------------------------------

%package docEN
Summary:	Open SCADA documents (EN)
Group:		Documentation
BuildArch:	noarch

%description docEN
The %{name}-docEN package include documents files (English).

%files docEN
%doc doc/en/*

#----------------------------------------------------------------------------

%package docRU
Summary:	Open SCADA documents (RU)
Group:		Documentation
BuildArch:	noarch

%description docRU
The %{name}-docRU package include documents files (Russian).

%files docRU
%doc doc/ru/*

#----------------------------------------------------------------------------

%package docUK
Summary:	Open SCADA documents (UK)
Group:		Documentation
BuildArch:	noarch

%description docUK
The %{name}-docUK package include documents files (Ukraine).

%files docUK
%doc doc/uk/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Open SCADA development
Group:		Development/C++

%description -n %{libname}
The %{name}-devel package - includes library archives and include files.

%files -n %{libname}
%{_libdir}/liboscada.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Open SCADA development
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package - includes library archives and include files.

%files -n %{devname}
%{_includedir}/%{name}/*
%{_libdir}/liboscada.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package plc
Summary:	OpenSCADA - PLC virtual package
Group:		Graphics
Requires:	%{name}-Archive.FSArch = %{EVRD}
Requires:	%{name}-DAQ.BlockCalc = %{EVRD}
Requires:	%{name}-DAQ.DCON = %{EVRD}
Requires:	%{name}-DAQ.JavaLikeCalc = %{EVRD}
Requires:	%{name}-DAQ.LogicLev = %{EVRD}
Requires:	%{name}-DAQ.ModBus = %{EVRD}
Requires:	%{name}-DAQ.System = %{EVRD}
Requires:	%{name}-DB.SQLite = %{EVRD}
Requires:	%{name}-Protocol.HTTP = %{EVRD}
Requires:	%{name}-Protocol.SelfSystem = %{EVRD}
Requires:	%{name}-Protocol.UserProtocol = %{EVRD}
Requires:	%{name}-Special.FLibComplex1 = %{EVRD}
Requires:	%{name}-Special.FLibMath = %{EVRD}
Requires:	%{name}-Special.FLibSYS = %{EVRD}
Requires:	%{name}-Transport.Serial = %{EVRD}
Requires:	%{name}-Transport.Sockets = %{EVRD}
Requires:	%{name}-Transport.SSL = %{EVRD}
Requires:	%{name}-UI.VCAEngine = %{EVRD}
Requires:	%{name}-UI.WebCfgD = %{EVRD}
Requires:	%{name}-UI.WebVision = %{EVRD}
BuildArch:	noarch

%description plc
The %{name}-plc is virtual package for PLC.

%files plc
%config(noreplace) %{_sysconfdir}/oscada_plc.xml

#----------------------------------------------------------------------------

%package server
Summary:	OpenSCADA - server virtual package
Group:		Graphics
Requires:	%{name}-Archive.FSArch = %{EVRD}
Requires:	%{name}-Archive.DBArch = %{EVRD}
Requires:	%{name}-DB.DBGate = %{EVRD}
Requires:	%{name}-DB.MySQL = %{EVRD}
Requires:	%{name}-DB.SQLite = %{EVRD}
Requires:	%{name}-DB.FireBird = %{EVRD}
Requires:	%{name}-DB.PostgreSQL = %{EVRD}
Requires:	%{name}-DAQ.AMRDevs = %{EVRD}
Requires:	%{name}-DAQ.BlockCalc = %{EVRD}
Requires:	%{name}-DAQ.DAQGate = %{EVRD}
Requires:	%{name}-DAQ.DCON = %{EVRD}
Requires:	%{name}-DAQ.JavaLikeCalc = %{EVRD}
Requires:	%{name}-DAQ.LogicLev = %{EVRD}
Requires:	%{name}-DAQ.ModBus = %{EVRD}
Requires:	%{name}-DAQ.Siemens = %{EVRD}
Requires:	%{name}-DAQ.SNMP = %{EVRD}
Requires:	%{name}-DAQ.SoundCard = %{EVRD}
Requires:	%{name}-DAQ.System = %{EVRD}
Requires:	%{name}-Protocol.HTTP = %{EVRD}
Requires:	%{name}-Protocol.SelfSystem = %{EVRD}
Requires:	%{name}-Special.FLibComplex1 = %{EVRD}
Requires:	%{name}-Special.FLibMath = %{EVRD}
Requires:	%{name}-Special.FLibSYS = %{EVRD}
Requires:	%{name}-Transport.Serial = %{EVRD}
Requires:	%{name}-Transport.Sockets = %{EVRD}
Requires:	%{name}-Transport.SSL = %{EVRD}
Requires:	%{name}-UI.VCAEngine = %{EVRD}
Requires:	%{name}-UI.WebCfg = %{EVRD}
Requires:	%{name}-UI.WebCfgD = %{EVRD}
Requires:	%{name}-UI.WebVision = %{EVRD}
BuildArch:	noarch

%description server
The %{name}-server is virtual package for SCADA-server.

%files server
%config(noreplace) %{_sysconfdir}/oscada_server.xml

#----------------------------------------------------------------------------

%package visStation
Summary:	OpenSCADA - visual station virtual package
Group:		Graphics
Requires:	%{name}-Archive.DBArch = %{EVRD}
Requires:	%{name}-Archive.FSArch = %{EVRD}
Requires:	%{name}-DAQ.AMRDevs = %{EVRD}
Requires:	%{name}-DAQ.BlockCalc = %{EVRD}
Requires:	%{name}-DAQ.DAQGate = %{EVRD}
Requires:	%{name}-DAQ.DCON = %{EVRD}
Requires:	%{name}-DAQ.JavaLikeCalc = %{EVRD}
Requires:	%{name}-DAQ.LogicLev = %{EVRD}
Requires:	%{name}-DAQ.ModBus = %{EVRD}
Requires:	%{name}-DAQ.Siemens = %{EVRD}
Requires:	%{name}-DAQ.SNMP = %{EVRD}
Requires:	%{name}-DAQ.SoundCard = %{EVRD}
Requires:	%{name}-DAQ.System = %{EVRD}
Requires:	%{name}-DB.DBGate = %{EVRD}
Requires:	%{name}-DB.MySQL = %{EVRD}
Requires:	%{name}-DB.SQLite = %{EVRD}
Requires:	%{name}-Protocol.SelfSystem = %{EVRD}
Requires:	%{name}-Special.FLibComplex1 = %{EVRD}
Requires:	%{name}-Special.FLibMath = %{EVRD}
Requires:	%{name}-Special.FLibSYS = %{EVRD}
Requires:	%{name}-Transport.Serial = %{EVRD}
Requires:	%{name}-Transport.Sockets = %{EVRD}
Requires:	%{name}-Transport.SSL = %{EVRD}
Requires:	%{name}-UI.VCAEngine = %{EVRD}
Requires:	%{name}-UI.Vision = %{EVRD}
Requires:	%{name}-UI.QTStarter = %{EVRD}
Requires:	%{name}-UI.QTCfg = %{EVRD}
BuildArch:	noarch

%description visStation
The %{name}-visStation is virtual package for visual station (SCADA).

%files visStation

#----------------------------------------------------------------------------

%package Archive.DBArch
Summary:	To DB archiver
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Archive.DBArch
The %{name}-Archive.DBArch package - provides
functions for messages and values archiving to DB.

%files Archive.DBArch
%{_datadir}/locale/*/LC_MESSAGES/oscd_DBArch.mo
%{_datadir}/%{name}/icons/Archive.DBArch.png
%{_libdir}/%{name}/arh_DBArch.so

#----------------------------------------------------------------------------

%package Archive.FSArch
Summary:	To file system archiver
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Archive.FSArch
The %{name}-Archive.FSArch package - provides
functions for messages and values archiving to file system.

%files Archive.FSArch
%{_datadir}/locale/*/LC_MESSAGES/oscd_FSArch.mo
%{_datadir}/%{name}/icons/Archive.FSArch.png
%{_libdir}/%{name}/arh_FSArch.so

#----------------------------------------------------------------------------

%package DAQ.AMRDevs
Summary:	AMR devices
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.AMRDevs
The %{name}-DAQ.AMRDevs package - provides access to automatic meter reading devices.
Supported devices: Kontar (http://www.mzta.ru).

%files DAQ.AMRDevs
%{_datadir}/locale/*/LC_MESSAGES/oscd_AMRDevs.mo
%{_libdir}/%{name}/daq_AMRDevs.so

#----------------------------------------------------------------------------

%package DAQ.BFN
Summary:	BFN
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.BFN
The %{name}-DAQ.BFN package - allow realisation of BFN.

%files DAQ.BFN
%{_datadir}/locale/*/LC_MESSAGES/oscd_BFN.mo
%{_datadir}/%{name}/BFN/BFNsymbs.db
%{_datadir}/%{name}/icons/DAQ.BFN.png
%{_libdir}/%{name}/daq_BFN.so

#----------------------------------------------------------------------------

%package DAQ.BlockCalc
Summary:	Block based calculator
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.BlockCalc
The %{name}-DB.DAQ.BlockCalc package - provides block based
calculator.

%files DAQ.BlockCalc
%{_datadir}/locale/*/LC_MESSAGES/oscd_BlockCalc.mo
%{_datadir}/%{name}/icons/DAQ.BlockCalc.png
%{_libdir}/%{name}/daq_BlockCalc.so

#----------------------------------------------------------------------------

%package DAQ.DAQGate
Summary:	Data sources gate
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.DAQGate
The %{name}-DAQ.DAQGate package - allows you to perform the
locking of the data sources
of the remote OpenSCADA stations in the local ones.

%files DAQ.DAQGate
%{_datadir}/locale/*/LC_MESSAGES/oscd_DAQGate.mo
%{_datadir}/%{name}/icons/DAQ.DAQGate.png
%{_libdir}/%{name}/daq_DAQGate.so

#----------------------------------------------------------------------------

%package DAQ.DCON
Summary:	DCON client
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.DCON
The %{name}-DAQ.DCON package - provides an implementation
of DCON-client protocol.
Supports I-7000 DCON protocol.

%files DAQ.DCON
%{_datadir}/locale/*/LC_MESSAGES/oscd_DCON.mo
%{_datadir}/%{name}/icons/DAQ.DCON.png
%{_libdir}/%{name}/daq_DCON.so

#----------------------------------------------------------------------------

%ifarch %{ix86}
%package DAQ.DiamondBoards
Summary:	Diamond DA boards
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.DiamondBoards
The %{name}-DAQ.DiamondBoards package - provides an
access to "Diamond Systems" DAQ boards.
Includes main support for all generic boards.

%files DAQ.DiamondBoards
%{_datadir}/locale/*/LC_MESSAGES/oscd_DiamondBoards.mo
%{_libdir}/%{name}/daq_DiamondBoards.so
%endif

#----------------------------------------------------------------------------

%ifarch %{ix86}
%package DAQ.ICP_DAS
Summary:	ICP DAS hardware
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.ICP_DAS
The %{name}-DAQ.ICP_DAS package - provides implementation for
"ICP DAS" hardware support.
Includes main I-87xxx DCON modules, I-8xxx fast modules and boards on ISA bus.

%files DAQ.ICP_DAS
%{_datadir}/locale/*/LC_MESSAGES/oscd_ICP_DAS.mo
%{_libdir}/%{name}/daq_ICP_DAS.so
%endif

#----------------------------------------------------------------------------

%package DAQ.JavaLikeCalc
Summary:	Java-like based calculator
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.JavaLikeCalc
The %{name}-DAQ.JavaLikeCalc package - provides based
on java like language calculator and engine of libraries.
The user can create and modify functions and libraries.

%files DAQ.JavaLikeCalc
%{_datadir}/locale/*/LC_MESSAGES/oscd_JavaLikeCalc.mo
%{_datadir}/%{name}/icons/DAQ.JavaLikeCalc.png
%{_libdir}/%{name}/daq_JavaLikeCalc.so

#----------------------------------------------------------------------------

%package DAQ.LogicLev
Summary:	Logic level
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.LogicLev
The %{name}-DAQ.LogicLev package - provides the logical
level of parameters.

%files DAQ.LogicLev
%{_datadir}/locale/*/LC_MESSAGES/oscd_LogicLev.mo
%{_datadir}/%{name}/icons/DAQ.LogicLev.png
%{_libdir}/%{name}/daq_LogicLev.so

#----------------------------------------------------------------------------

%package DAQ.ModBus
Summary:	ModBus protocol and DAQ
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.ModBus
The %{name}-DAQ.ModBus package - provides realisation of
ModBus client service.
Supported Modbus/TCP, Modbus/RTU and Modbus/ASCII protocols.

%files DAQ.ModBus
%{_datadir}/locale/*/LC_MESSAGES/oscd_ModBus.mo
%{_datadir}/%{name}/icons/DAQ.ModBus.png
%{_libdir}/%{name}/daq_ModBus.so

#----------------------------------------------------------------------------

%package DAQ.OPC_UA
Summary:	OPC UA protocol and DAQ
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.OPC_UA
The %{name}-DAQ.OPC_UA package - provides realisation of OPC UA protocol.

%files DAQ.OPC_UA
%{_datadir}/locale/*/LC_MESSAGES/oscd_OPC_UA.mo
%{_datadir}/%{name}/icons/DAQ.OPC_UA.png
%{_libdir}/%{name}/daq_OPC_UA.so

#----------------------------------------------------------------------------

%package DAQ.Siemens
Summary:	Siemens DAQ
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.Siemens
The %{name}-DAQ.Siemens package - provides a data source
PLC Siemens by means of Hilscher CIF cards,
by using the MPI protocol, and Libnodave library for the rest.

%files DAQ.Siemens
%{_datadir}/locale/*/LC_MESSAGES/oscd_Siemens.mo
%{_datadir}/%{name}/icons/DAQ.Siemens.png
%{_libdir}/%{name}/daq_Siemens.so

#----------------------------------------------------------------------------

%package DAQ.SNMP
Summary:	SNMP client
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.SNMP
The %{name}-DAQ.SNMP package - provides an implementation
of the client of SNMP-service.

%files DAQ.SNMP
%{_datadir}/locale/*/LC_MESSAGES/oscd_SNMP.mo
%{_datadir}/%{name}/icons/DAQ.SNMP.png
%{_libdir}/%{name}/daq_SNMP.so

#----------------------------------------------------------------------------

%package DAQ.SoundCard
Summary:	Sound card
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.SoundCard
The %{name}-DAQ.SoundCard package - provides an access to
the sound card.

%files DAQ.SoundCard
%{_datadir}/locale/*/LC_MESSAGES/oscd_SoundCard.mo
%{_datadir}/%{name}/icons/DAQ.SoundCard.png
%{_libdir}/%{name}/daq_SoundCard.so

#----------------------------------------------------------------------------

%package DAQ.System
Summary:	System DA
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DAQ.System
The %{name}-DAQ.System package - provides data acquisition from
the OS. Supported OS Linux data sources: HDDTemp, Sensors,
Uptime, Memory, CPU, UPS etc.

%files DAQ.System
%{_datadir}/locale/*/LC_MESSAGES/oscd_System.mo
%{_datadir}/%{name}/icons/DAQ.System.png
%{_libdir}/%{name}/daq_System.so

#----------------------------------------------------------------------------

%package DB.DBF
Summary:	DB DBF support
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DB.DBF
The %{name}-DB.DBF package - provides support of the *.dbf files,
version 3.0.

%files DB.DBF
%{_datadir}/locale/*/LC_MESSAGES/oscd_DBF.mo
%{_datadir}/%{name}/icons/BD.DBF.png
%{_libdir}/%{name}/bd_DBF.so

#----------------------------------------------------------------------------

%package DB.DBGate
Summary:	DB DBGate support
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DB.DBGate
The %{name}-DB.DBGate package - provides support of the DB DBGate.

%files DB.DBGate
%{_datadir}/locale/*/LC_MESSAGES/oscd_DBGate.mo
%{_libdir}/%{name}/bd_DBGate.so

#----------------------------------------------------------------------------

%package DB.FireBird
Summary:	DB FireBird support
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DB.FireBird
The %{name}-DB.FireBird package - provides support of the
FireBird DB.

%files DB.FireBird
%{_datadir}/locale/*/LC_MESSAGES/oscd_FireBird.mo
%{_datadir}/%{name}/icons/BD.FireBird.png
%{_libdir}/%{name}/bd_FireBird.so

#----------------------------------------------------------------------------

%package DB.MySQL
Summary:	DB MySQL support
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DB.MySQL
The %{name}-DB.MySQL package - provides support of the BD MySQL.

%files DB.MySQL
%{_datadir}/locale/*/LC_MESSAGES/oscd_MySQL.mo
%{_datadir}/%{name}/icons/BD.MySQL.png
%{_libdir}/%{name}/bd_MySQL.so

#----------------------------------------------------------------------------

%package DB.PostgreSQL
Summary:	DB PostgreSQL support
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DB.PostgreSQL
The %{name}-DB.PostgreSQL package - provides support of the
PostgreSQL DB.

%files DB.PostgreSQL
%{_datadir}/locale/*/LC_MESSAGES/oscd_PostgreSQL.mo
%{_datadir}/%{name}/icons/BD.PostgreSQL.png
%{_libdir}/%{name}/bd_PostgreSQL.so

#----------------------------------------------------------------------------

%package DB.SQLite
Summary:	DB SQLite support
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description DB.SQLite
The %{name}-DB.SQLite package - provides support of the BD SQLite.

%files DB.SQLite
%{_datadir}/locale/*/LC_MESSAGES/oscd_SQLite.mo
%{_datadir}/%{name}/icons/BD.SQLite.png
%{_libdir}/%{name}/bd_SQLite.so

#----------------------------------------------------------------------------

%package LibDB.Main
Summary:	Main OpenSCADA libraries for DAQ and other into SQLite DB
Group:		Graphics
Requires:	%{name}-DAQ.JavaLikeCalc = %{EVRD}
Requires:	%{name}-DAQ.LogicLev = %{EVRD}
Requires:	%{name}-DB.SQLite = %{EVRD}
Requires:	%{name}-Special.FLibComplex1 = %{EVRD}
Requires:	%{name}-Special.FLibSYS = %{EVRD}
BuildArch:	noarch

%description LibDB.Main
The %{name}-LibDB.Main package includes main OpenSCADA libraries
into SQLite DB.
For use connect SQLite DB file LibsDB/OscadaLibs.db.

%files LibDB.Main
%{_datadir}/%{name}/LibsDB/OscadaLibs.db

#----------------------------------------------------------------------------

%package LibDB.VCA
Summary:	Visual components libraries into SQLite DB
Group:		Graphics
Requires:	%{name}-DAQ.JavaLikeCalc = %{EVRD}
Requires:	%{name}-DB.SQLite = %{EVRD}
Requires:	%{name}-Special.FLibSYS = %{EVRD}
Requires:	%{name}-UI.VCAEngine = %{EVRD}
BuildArch:	noarch

%description LibDB.VCA
The %{name}-LibDB.VCA package includes visual components libraries
into SQLite DB.
For use connect SQLite DB file LibsDB/vcaBase.db and LibsDB/vcaTest.db.

%files LibDB.VCA
%{_datadir}/%{name}/LibsDB/vca*.db

#----------------------------------------------------------------------------

%package Model.AGLKS
Summary:	Model "AGLKS" data bases and config (Demo: EN,RU,UK)
Group:		Graphics
Requires:	%{name}-Archive.FSArch = %{EVRD}
Requires:	%{name}-DAQ.BlockCalc = %{EVRD}
Requires:	%{name}-DAQ.ModBus = %{EVRD}
Requires:	%{name}-DAQ.System = %{EVRD}
Requires:	%{name}-LibDB.Main = %{EVRD}
Requires:	%{name}-LibDB.VCA = %{EVRD}
Requires:	%{name}-Protocol.HTTP = %{EVRD}
Requires:	%{name}-Protocol.SelfSystem = %{EVRD}
Requires:	%{name}-Protocol.UserProtocol = %{EVRD}
Requires:	%{name}-Special.FLibMath = %{EVRD}
Requires:	%{name}-Transport.Serial = %{EVRD}
Requires:	%{name}-Transport.Sockets = %{EVRD}
Requires:	%{name}-Transport.SSL = %{EVRD}
Requires:	%{name}-UI.QTStarter = %{EVRD}
Requires:	%{name}-UI.QTCfg = %{EVRD}
Requires:	%{name}-UI.Vision = %{EVRD}
Requires:	%{name}-UI.WebCfgD = %{EVRD}
Requires:	%{name}-UI.WebVision = %{EVRD}

%description Model.AGLKS
The %{name}-Model.AGLKS package includes model "AGLKS" data bases and config.
The Model is used for OpenSCADA demo and allowed for English, Russian and
Ukrainian languages.
For start use command <openscada_demo> or <openscada_AGLKS>.
For access use account "root" and password "openscada" or account "user"
and password "user".

%files Model.AGLKS
%config(noreplace) %{_sysconfdir}/oscada_AGLKS.xml
%{_datadir}/applications/%{name}_AGLKS.desktop
%{_datadir}/%{name}/AGLKS/*.db
%{_iconsdir}/%{name}_AGLKS.png
%{_datadir}/%{name}/icons/AGLKS.png

#----------------------------------------------------------------------------

%package Model.Boiler
Summary:	Model "Boiler" data bases and config (EN,RU,UK)
Group:		Graphics
Requires:	%{name}-Archive.FSArch = %{EVRD}
Requires:	%{name}-DAQ.BlockCalc = %{EVRD}
Requires:	%{name}-DAQ.System = %{EVRD}
Requires:	%{name}-LibDB.Main = %{EVRD}
Requires:	%{name}-LibDB.VCA = %{EVRD}
Requires:	%{name}-Special.FLibMath = %{EVRD}
Requires:	%{name}-UI.QTCfg = %{EVRD}
Requires:	%{name}-UI.QTStarter = %{EVRD}
Requires:	%{name}-UI.Vision = %{EVRD}
Requires:	%{name}-UI.WebCfgD = %{EVRD}
Requires:	%{name}-UI.WebVision = %{EVRD}

%description Model.Boiler
The %{name}-Model.Boiler package model "Boiler" data bases and config.
The Model is allowed for English, Russian and Ukrainian languages.
For start use command <openscada_Boiler>.
For access use account "root" and password "openscada" or account "user"
and password "user".

%files Model.Boiler
%config(noreplace) %{_sysconfdir}/oscada_Boiler.xml
%{_datadir}/applications/%{name}_Boiler.desktop
%{_datadir}/%{name}/Boiler/*.db
%{_datadir}/%{name}/icons/Boiler.png
%{_iconsdir}/%{name}_Boiler.png

#----------------------------------------------------------------------------

%package Protocol.HTTP
Summary:	Protocol: HTTP-realisation
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Protocol.HTTP
The %{name}-Protocol.HTTP package - provides support for the
HTTP protocol for WWW-based user interfaces.

%files Protocol.HTTP
%{_datadir}/locale/*/LC_MESSAGES/oscd_HTTP.mo
%{_datadir}/%{name}/icons/Protocol.HTTP.png
%{_libdir}/%{name}/prot_HTTP.so

#----------------------------------------------------------------------------

%package Protocol.SelfSystem
Summary:	Self system OpenSCADA protocol
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Protocol.SelfSystem
The %{name}-Protocol.SelfSystem package - provides own
OpenSCADA protocol based at XML and one's control interface.

%files Protocol.SelfSystem
%{_datadir}/locale/*/LC_MESSAGES/oscd_SelfSystem.mo
%{_datadir}/%{name}/icons/Protocol.SelfSystem.png
%{_libdir}/%{name}/prot_SelfSystem.so

#----------------------------------------------------------------------------

%package Protocol.UserProtocol
Summary:	User protocol
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Protocol.UserProtocol
The %{name}-Protocol.UserProtocol package - allows you
to create your own user protocols on any OpenSCADA's language.

%files Protocol.UserProtocol
%{_datadir}/locale/*/LC_MESSAGES/oscd_UserProtocol.mo
%{_datadir}/%{name}/icons/Protocol.UserProtocol.png
%{_libdir}/%{name}/prot_UserProtocol.so

#----------------------------------------------------------------------------

%package Special.FLibComplex1
Summary:	Complex1 function's library
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Special.FLibComplex1
The %{name}-Special.FLibComplex1 package - provides
the library of functions compatible with SCADA Complex1 of the firm
SIC "DIYA".

%files Special.FLibComplex1
%{_datadir}/locale/*/LC_MESSAGES/oscd_FLibComplex1.mo
%{_libdir}/%{name}/spec_FLibComplex1.so

#----------------------------------------------------------------------------

%package Special.FLibMath
Summary:	Math function's library
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Special.FLibMath
The %{name}-Special.FLibMath package - provides
the library of standard mathematical functions.

%files Special.FLibMath
%{_datadir}/locale/*/LC_MESSAGES/oscd_FLibMath.mo
%{_libdir}/%{name}/spec_FLibMath.so

#----------------------------------------------------------------------------

%package Special.FLibSYS
Summary:	System API functions
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Special.FLibSYS
The %{name}-Special.FLibSYS package - provides
the library of system API of user programming area.

%files Special.FLibSYS
%{_datadir}/locale/*/LC_MESSAGES/oscd_FLibSYS.mo
%{_libdir}/%{name}/spec_FLibSYS.so

#----------------------------------------------------------------------------

%package Special.SystemTests
Summary:	OpenSCADA system's tests
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Special.SystemTests
The %{name}-Special.SystemTests package - provides
the group of tests to the OpenSCADA system.

%files Special.SystemTests
%{_datadir}/locale/*/LC_MESSAGES/oscd_SystemTests.mo
%{_libdir}/%{name}/spec_SystemTests.so

#----------------------------------------------------------------------------

%package Transport.Serial
Summary:	Transport: Serial interfaces
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Transport.Serial
The %{name}-Transport.Serial package - Provides
a serial interface.
It is used to data exchange via the serial interfaces of type RS232, RS48,
GSM and more.

%files Transport.Serial
%{_datadir}/locale/*/LC_MESSAGES/oscd_Serial.mo
%{_datadir}/%{name}/icons/Transport.Serial.png
%{_libdir}/%{name}/tr_Serial.so

#----------------------------------------------------------------------------

%package Transport.Sockets
Summary:	Transport: Sockets
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Transport.Sockets
The %{name}-Transport.Sockets package - provides sockets
based transport.
Supports inet and unix sockets. Inet socket uses TCP, UDP and RAWCAN protocols.

%files Transport.Sockets
%{_datadir}/locale/*/LC_MESSAGES/oscd_Sockets.mo
%{_datadir}/%{name}/icons/Transport.Sockets.png
%{_libdir}/%{name}/tr_Sockets.so

#----------------------------------------------------------------------------

%package Transport.SSL
Summary:	Transport: SSL
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description Transport.SSL
The %{name}-Transport.SSL package - provides
transport based on the secure sockets' layer.
OpenSSL is used and SSLv2, SSLv3 and TLSv1 are supported.

%files Transport.SSL
%{_datadir}/locale/*/LC_MESSAGES/oscd_SSL.mo
%{_datadir}/%{name}/icons/Transport.SSL.png
%{_libdir}/%{name}/tr_SSL.so

#----------------------------------------------------------------------------

%package UI.QTCfg
Summary:	OpenSCADA system configurator (Qt)
Group:		Graphics
Requires:	%{name}-core = %{EVRD}
Requires:	%{name}-UI.QTStarter

%description UI.QTCfg
The %{name}-UI.QTCfg package - provides the Qt-based
configurator of the OpenSCADA system.

%files UI.QTCfg
%{_datadir}/locale/*/LC_MESSAGES/oscd_QTCfg.mo
%{_datadir}/%{name}/icons/UI.QTCfg.png
%{_libdir}/%{name}/ui_QTCfg.so

#----------------------------------------------------------------------------

%package UI.QTStarter
Summary:	Qt-based GUI starter
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description UI.QTStarter
The %{name}-UI.QTStarter package - provides the Qt GUI starter.
Qt-starter is the only and compulsory component for all GUI
modules based on the Qt library.

%files UI.QTStarter
%{_datadir}/applications/%{name}.desktop
%{_datadir}/locale/*/LC_MESSAGES/oscd_QTStarter.mo
%{_datadir}/%{name}/icons/UI.QTStarter.png
%{_iconsdir}/%{name}.png
%{_libdir}/%{name}/ui_QTStarter.so

#----------------------------------------------------------------------------

%package UI.VCAEngine
Summary:	Visual Control Area (VCA) engine
Group:		Graphics
Requires:	%{name}-core = %{EVRD}

%description UI.VCAEngine
The %{name}-UI.VCAEngine package - the main visual
control area engine.

%files UI.VCAEngine
%{_datadir}/locale/*/LC_MESSAGES/oscd_VCAEngine.mo
%{_datadir}/%{name}/icons/UI.VCAEngine.png
%{_libdir}/%{name}/ui_VCAEngine.so

#----------------------------------------------------------------------------

%package UI.Vision
Summary:	Operation user interface (Qt)
Group:		Graphics
Requires:	%{name}-core = %{EVRD}
Requires:	%{name}-UI.QTStarter

%description UI.Vision
The %{name}-UI.Vision package - visual operation
user interface, based on Qt library - front-end to VCA engine.

%files UI.Vision
%{_datadir}/locale/*/LC_MESSAGES/oscd_Vision.mo
%{_datadir}/%{name}/icons/UI.Vision.png
%{_libdir}/%{name}/ui_Vision.so

#----------------------------------------------------------------------------

%package UI.WebCfg
Summary:	System configurator (WEB)
Group:		Graphics
Requires:	%{name}-core = %{EVRD}
Requires:	%{name}-Protocol.HTTP

%description UI.WebCfg
The %{name}-UI.WebCfg package - provides the WEB-based
configurator of the OpenSCADA system.

%files UI.WebCfg
%{_datadir}/locale/*/LC_MESSAGES/oscd_WebCfg.mo
%{_datadir}/%{name}/icons/UI.WebCfg.png
%{_libdir}/%{name}/ui_WebCfg.so

#----------------------------------------------------------------------------

%package UI.WebCfgD
Summary:	Dynamic WEB configurator
Group:		Graphics
Requires:	%{name}-core = %{EVRD}
Requires:	%{name}-Protocol.HTTP

%description UI.WebCfgD
The %{name}-UI.WebCfgD package - provides dynamic WEB based
configurator. Uses XHTML, CSS and JavaScript technology.

%files UI.WebCfgD
%{_libdir}/%{name}/ui_WebCfgD.so
%{_datadir}/locale/*/LC_MESSAGES/oscd_WebCfgD.mo
%{_datadir}/%{name}/icons/UI.WebCfgD.png

#----------------------------------------------------------------------------

%package UI.WebUser
Summary:	Web interface from user
Group:		Graphics
Requires:	%{name}-core = %{EVRD}
Requires:	%{name}-Protocol.HTTP

%description UI.WebUser
The %{name}-UI.WebUser package - allows you to create
your own user web-interfaces in any language of OpenSCADA.

%files UI.WebUser
%{_datadir}/locale/*/LC_MESSAGES/oscd_WebUser.mo
%{_datadir}/%{name}/icons/UI.WebUser.png
%{_libdir}/%{name}/ui_WebUser.so

#----------------------------------------------------------------------------

%package UI.WebVision
Summary:	Operation user interface (WEB)
Group:		Graphics
Requires:	%{name}-core = %{EVRD}
Requires:	%{name}-Protocol.HTTP

%description UI.WebVision
The %{name}-UI.WebVision package - visual operation user interface,
based on WEB - front-end to VCA engine.

%files UI.WebVision
%{_datadir}/locale/*/LC_MESSAGES/oscd_WebVision.mo
%{_datadir}/%{name}/icons/UI.WebVision.png
%{_libdir}/%{name}/ui_WebVision.so

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -T -D -a 1

%build
LDFLAGS="$LDFLAGS -lpthread"
autoreconf -ifv
%configure \
%ifarch %{ix86}
	--enable-DiamondBoards \
	--enable-ICP_DAS \
%else
	--disable-DiamondBoards \
	--disable-ICP_DAS \
%endif
	--enable-BFN
	
%make

%install
%makeinstall_std
install -m 755 -d %{buildroot}%{_datadir}/%{name}/{DATA,icons,LibsDB,AGLKS,Boiler}
install -m 755 -d %{buildroot}%{_datadir}/%{name}/ARCHIVES/{MESS,VAL}
install -m 644 -pD data/oscada.xml %{buildroot}/%{_sysconfdir}/oscada.xml
install -m 644 -pD data/oscada_start.xml %{buildroot}/%{_sysconfdir}/oscada_start.xml
install -m 755 -pD data/%{name}_start %{buildroot}/%{_bindir}/%{name}_start
install -m 644 -pD data/%{name}.desktop %{buildroot}/%{_datadir}/applications/%{name}.desktop
install -m 644 -pD data/%{name}.png %{buildroot}/%{_iconsdir}/%{name}.png
install -m 755 -pD data/oscada_ALT.init %{buildroot}/%{_sysconfdir}/init.d/oscadad
echo "OpenSCADA data dir" > %{buildroot}%{_datadir}/%{name}/DATA/.info
install -m 644 data/icons/* %{buildroot}%{_datadir}/%{name}/icons
echo "OpenSCADA messages archive dir" > %{buildroot}%{_datadir}/%{name}/ARCHIVES/MESS/.info
echo "OpenSCADA values archive dir" > %{buildroot}%{_datadir}/%{name}/ARCHIVES/VAL/.info

install -m 644 data/LibsDB/*.db %{buildroot}%{_datadir}/%{name}/LibsDB

install -m 644 data/ModelsDB/AGLKS/*.db %{buildroot}%{_datadir}/%{name}/AGLKS
install -m 644 -pD data/ModelsDB/AGLKS/oscada_AGLKS.xml %{buildroot}/%{_sysconfdir}/oscada_AGLKS.xml
install -m 644 -pD data/ModelsDB/AGLKS/%{name}_AGLKS.png %{buildroot}%{_datadir}/%{name}/icons/AGLKS.png

install -m 644 data/ModelsDB/Boiler/*.db %{buildroot}%{_datadir}/%{name}/Boiler
install -m 644 -pD data/ModelsDB/Boiler/%{name}_Boiler.png %{buildroot}%{_datadir}/%{name}/icons/Boiler.png 

sed -i 's|/usr/lib|%{_libdir}|' %{buildroot}/%{_sysconfdir}/oscada*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3864 |21cr|openscap-1.2.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define major_sce 8
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sce_libname %mklibname %{name}_sce %{major_sce}
%define sce_devname %mklibname %{name}_sce -d

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Set of open source libraries enabling integration of the SCAP line of standards
Name:		openscap
Version:	1.2.17
Release:	2
License:	LGPLv2.1+
Group:		Monitoring
Url:		http://www.open-scap.org/
Source0:	https://github.com/OpenSCAP/openscap/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0:		openscap-1.2.17-rpminfo.patch
Patch1:		openscap-1.2.17-rpm5.patch
Patch2:		openscap-1.2.17-rpm4.15.patch
Patch3:		openscap-1.2.17-linkage.patch
Patch4:		openscap-1.2.17-python3.patch
Patch5:		openscap-1.2.17-force-python3.patch
BuildRequires:	swig
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libpcre)
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
%endif
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ossp-uuid)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(squirrel)
Provides:	openscap-scaner = %{EVRD}

%description
OpenSCAP is a set of open source libraries providing an easier path
for integration of the SCAP line of standards. SCAP is a line of standards
managed by NIST with the goal of providing a standard language
for the expression of Computer Network Defense related information.

%files
%doc AUTHORS COPYING NEWS
%{_sysconfdir}/bash_completion.d/oscap
%{_bindir}/*
%{_libexecdir}/%{name}
%{_mandir}/man8/*
%{_datadir}/%{name}
%exclude %{_bindir}/oscap-docker
%exclude %{_mandir}/man8/oscap-docker.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 1.0.0-4

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.0.0-4
Obsoletes:	%{name}-devel < 1.0.0-4

%description -n %{devname}
Thhis package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc docs/examples/
%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc

#----------------------------------------------------------------------------

%package -n %{sce_libname}
Summary:	Script Check Engine plug-in for OpenSCAP
Group:		System/Libraries

%description -n %{sce_libname}
The Script Check Engine is non-standard extension to SCAP protocol. This
engine allows content authors to avoid OVAL language and write their assessment
commands using a scripting language (Bash, Perl, Python, Ruby, ...).

%files -n %{sce_libname}
%{_libdir}/lib%{name}_sce.so.%{major_sce}*

#----------------------------------------------------------------------------

%package -n %{sce_devname}
Summary:	Development files for OpenSCAP SCE plugin
Group:		Development/C
Requires:	%{sce_libname} = %{EVRD}

%description -n %{sce_devname}
Thhis package contains libraries and header files for developing applications
that use OpenSCAP SCE plugin.

%files -n %{sce_devname}
%{_libdir}/lib%{name}_sce.so

#----------------------------------------------------------------------------

%package -n %{python2}-%{name}
%py2_migration_meta %{python2}-%{name}
Summary:	Python bindings for %{name}
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Provides:	%{name}-python = %{EVRD}
Provides:	python-%{name} = %{EVRD}
Conflicts:	%{name}-python < 1.2.17
Obsoletes:	%{name}-python < 1.2.17

%description -n %{python2}-%{name}
This package contains the bindings so that %{name} libraries
can be used by python.

%files -n %{python2}-%{name}
%{python2_sitearch}/*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings for %{name}
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Provides:	%{name}-python3 = %{EVRD}
Conflicts:	%{name}-python3 < 1.2.17
Obsoletes:	%{name}-python3 < 1.2.17

%description -n python3-%{name}
This package contains the bindings so that %{name} libraries
can be used by python3.

%files -n python3-%{name}
%{python3_sitearch}/*
%ifarch %{ix86}
%exclude %{python3_sitelib}/oscap_docker_python
%endif

#----------------------------------------------------------------------------

%package perl
Summary:	Perl bindings for %{name}
Group:		Development/Perl
BuildRequires:	perl-devel
Requires:	%{name} = %{EVRD}

%description perl
The %{name}-perl package contains the bindings so that %{name}
libraries can be used by perl.

%files perl
%{perl_vendorarch}/*
%{perl_vendorlib}/*.pm

#----------------------------------------------------------------------------

%package containers
Summary:	Utils for scanning containers
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description containers
Tool for scanning Docker containers.

%files containers
%{_bindir}/oscap-docker
%{_mandir}/man8/oscap-docker.8*
%{py3_puresitedir}/oscap_docker_python
%ifarch %{ix86}
%exclude %{py3_platsitedir}/*openscap*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .rpminfo
%if %{mdvver} < 201905
%patch1 -p1 -b .rpm5
%else
%patch2 -p1 -b .rpm415
%endif
%patch3 -p1 -b .linkage
%patch4 -p1 -b .python3
%patch5 -p1 -b .python3-docker

%build
autoreconf -fi
%configure \
	--enable-sce \
	--enable-perl \
	--enable-python3 \
	preferred_python=%{__python3}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3865 |21cr|openscenegraph-3.6.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	OpenSceneGraph
%define	common_major 161
# qt bootstrap
%bcond_without qt

Summary:	A C++ scene graph API on OpenGL for real time graphics
Name:		openscenegraph
Version:	3.6.5
Release:	3
License:	LGPLv2+ with exceptions
Group:		System/Libraries
Url:		http://www.openscenegraph.org/
Source0:	https://github.com/openscenegraph/OpenSceneGraph/archive/%{oname}-%{version}.tar.gz
Source1:    https://github.com/openscenegraph/osgQt/archive/refs/heads/master.zip
BuildRequires:	cmake
BuildRequires:	ffmpeg-devel
# conflict with IlmBase
#BuildRequires:	gdal-devel
BuildRequires:	giflib-devel
#BuildRequires:	itk-devel
BuildRequires:	jpeg-devel
%if %{with qt}
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(openscenegraph)
%endif
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(IlmBase)
#BuildRequires:	pkgconfig(libxine)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Provides:	OpenSceneGraph = %{EVRD}
Requires:	%{name}-plugins = %{EVRD}

%description
The Open Scene Graph is a cross-platform C++/OpenGL library for the real-time
visualization. Uses range from visual simulation, scientific modeling, virtual
reality through to games.  Open Scene Graph employs good practices in software
engineering through the use of standard C++, STL and generic programming, and
design patterns.  Open Scene Graph strives for high performance and quality in
graphics rendering, portability, and extensibility.

%files
%doc AUTHORS.txt ChangeLog LICENSE.txt NEWS.txt
%doc doc/*
%{_bindir}/*
%if %{with qt}
%{_datadir}/OpenSceneGraph/bin/osgviewerQt
%endif

#----------------------------------------------------------------------------

%package plugins
Summary:	OpenSceneGraph plugins
Group:		System/Libraries

%description plugins
OpenSceneGraph plugins.

%files plugins
%{_libdir}/osgPlugins-%{version}

#----------------------------------------------------------------------------

%define OpenThreads_major 21
%define libOpenThreads %mklibname OpenThreads %{OpenThreads_major}

%package -n %{libOpenThreads}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libOpenThreads}
OpenSceneGraph shared library.

%files -n %{libOpenThreads}
%{_libdir}/libOpenThreads.so.%{OpenThreads_major}
%{_libdir}/libOpenThreads.so.3.3.*

#----------------------------------------------------------------------------

%define devOpenThreads %mklibname OpenThreads -d

%package -n %{devOpenThreads}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libOpenThreads} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devOpenThreads}
OpenSceneGraph development files.

%files -n %{devOpenThreads}
%{_includedir}/OpenThreads
%{_libdir}/libOpenThreads.so
%{_libdir}/pkgconfig/openthreads.pc

#----------------------------------------------------------------------------

%define osg_major %{common_major}
%define libosg %mklibname osg %{osg_major}

%package -n %{libosg}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosg}
OpenSceneGraph shared library.

%files -n %{libosg}
%{_libdir}/libosg.so.%{osg_major}
%{_libdir}/libosg.so.%{version}

#----------------------------------------------------------------------------

%define devosg %mklibname osg -d

%package -n %{devosg}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosg} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosg}
OpenSceneGraph development files.

%files -n %{devosg}
%{_includedir}/osg
%{_libdir}/libosg.so
%{_libdir}/pkgconfig/openscenegraph-osg.pc

#----------------------------------------------------------------------------

%define osgAnimation_major %{common_major}
%define libosgAnimation %mklibname osgAnimation %{osgAnimation_major}

%package -n %{libosgAnimation}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgAnimation}
OpenSceneGraph shared library.

%files -n %{libosgAnimation}
%{_libdir}/libosgAnimation.so.%{osgAnimation_major}
%{_libdir}/libosgAnimation.so.%{version}

#----------------------------------------------------------------------------

%define devosgAnimation %mklibname osgAnimation -d

%package -n %{devosgAnimation}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgAnimation} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgAnimation}
OpenSceneGraph development files.

%files -n %{devosgAnimation}
%{_includedir}/osgAnimation
%{_libdir}/libosgAnimation.so
%{_libdir}/pkgconfig/openscenegraph-osgAnimation.pc

#----------------------------------------------------------------------------

%define osgDB_major %{common_major}
%define libosgDB %mklibname osgDB %{osgDB_major}

%package -n %{libosgDB}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgDB}
OpenSceneGraph shared library.

%files -n %{libosgDB}
%{_libdir}/libosgDB.so.%{osgDB_major}
%{_libdir}/libosgDB.so.%{version}

#----------------------------------------------------------------------------

%define devosgDB %mklibname osgDB -d

%package -n %{devosgDB}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgDB} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgDB}
OpenSceneGraph development files.

%files -n %{devosgDB}
%{_includedir}/osgDB
%{_libdir}/libosgDB.so
%{_libdir}/pkgconfig/openscenegraph-osgDB.pc

#----------------------------------------------------------------------------

%define osgFX_major %{common_major}
%define libosgFX %mklibname osgFX %{osgFX_major}

%package -n %{libosgFX}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgFX}
OpenSceneGraph shared library.

%files -n %{libosgFX}
%{_libdir}/libosgFX.so.%{osgFX_major}
%{_libdir}/libosgFX.so.%{version}

#----------------------------------------------------------------------------

%define devosgFX %mklibname osgFX -d

%package -n %{devosgFX}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgFX} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgFX}
OpenSceneGraph development files.

%files -n %{devosgFX}
%{_includedir}/osgFX
%{_libdir}/libosgFX.so
%{_libdir}/pkgconfig/openscenegraph-osgFX.pc

#----------------------------------------------------------------------------

%define osgGA_major %{common_major}
%define libosgGA %mklibname osgGA %{osgGA_major}

%package -n %{libosgGA}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgGA}
OpenSceneGraph shared library.

%files -n %{libosgGA}
%{_libdir}/libosgGA.so.%{osgGA_major}
%{_libdir}/libosgGA.so.%{version}

#----------------------------------------------------------------------------

%define devosgGA %mklibname osgGA -d

%package -n %{devosgGA}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgGA} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgGA}
OpenSceneGraph development files.

%files -n %{devosgGA}
%{_includedir}/osgGA
%{_libdir}/libosgGA.so
%{_libdir}/pkgconfig/openscenegraph-osgGA.pc

#----------------------------------------------------------------------------

%define osgManipulator_major %{common_major}
%define libosgManipulator %mklibname osgManipulator %{osgManipulator_major}

%package -n %{libosgManipulator}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgManipulator}
OpenSceneGraph shared library.

%files -n %{libosgManipulator}
%{_libdir}/libosgManipulator.so.%{osgManipulator_major}
%{_libdir}/libosgManipulator.so.%{version}

#----------------------------------------------------------------------------

%define devosgManipulator %mklibname osgManipulator -d

%package -n %{devosgManipulator}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgManipulator} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgManipulator}
OpenSceneGraph development files.

%files -n %{devosgManipulator}
%{_includedir}/osgManipulator
%{_libdir}/libosgManipulator.so
%{_libdir}/pkgconfig/openscenegraph-osgManipulator.pc

#----------------------------------------------------------------------------

%define osgParticle_major %{common_major}
%define libosgParticle %mklibname osgParticle %{osgParticle_major}

%package -n %{libosgParticle}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgParticle}
OpenSceneGraph shared library.

%files -n %{libosgParticle}
%{_libdir}/libosgParticle.so.%{osgParticle_major}
%{_libdir}/libosgParticle.so.%{version}

#----------------------------------------------------------------------------

%define devosgParticle %mklibname osgParticle -d

%package -n %{devosgParticle}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgParticle} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgParticle}
OpenSceneGraph development files.

%files -n %{devosgParticle}
%{_includedir}/osgParticle
%{_libdir}/libosgParticle.so
%{_libdir}/pkgconfig/openscenegraph-osgParticle.pc

#----------------------------------------------------------------------------

%define osgPresentation_major %{common_major}
%define libosgPresentation %mklibname osgPresentation %{osgPresentation_major}

%package -n %{libosgPresentation}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgPresentation}
OpenSceneGraph shared library.

%files -n %{libosgPresentation}
%{_libdir}/libosgPresentation.so.%{osgPresentation_major}
%{_libdir}/libosgPresentation.so.%{version}

#----------------------------------------------------------------------------

%define devosgPresentation %mklibname osgPresentation -d

%package -n %{devosgPresentation}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgPresentation} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgPresentation}
OpenSceneGraph development files.

%files -n %{devosgPresentation}
%{_includedir}/osgPresentation
%{_libdir}/libosgPresentation.so

#----------------------------------------------------------------------------

%define osgShadow_major %{common_major}
%define libosgShadow %mklibname osgShadow %{osgShadow_major}

%package -n %{libosgShadow}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgShadow}
OpenSceneGraph shared library.

%files -n %{libosgShadow}
%{_libdir}/libosgShadow.so.%{osgShadow_major}
%{_libdir}/libosgShadow.so.%{version}

#----------------------------------------------------------------------------

%define devosgShadow %mklibname osgShadow -d

%package -n %{devosgShadow}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgShadow} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgShadow}
OpenSceneGraph development files.

%files -n %{devosgShadow}
%{_includedir}/osgShadow
%{_libdir}/libosgShadow.so
%{_libdir}/pkgconfig/openscenegraph-osgShadow.pc

#----------------------------------------------------------------------------

%define osgSim_major %{common_major}
%define libosgSim %mklibname osgSim %{osgSim_major}

%package -n %{libosgSim}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgSim}
OpenSceneGraph shared library.

%files -n %{libosgSim}
%{_libdir}/libosgSim.so.%{osgSim_major}
%{_libdir}/libosgSim.so.%{version}

#----------------------------------------------------------------------------

%define devosgSim %mklibname osgSim -d

%package -n %{devosgSim}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgSim} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgSim}
OpenSceneGraph development files.

%files -n %{devosgSim}
%{_includedir}/osgSim
%{_libdir}/libosgSim.so
%{_libdir}/pkgconfig/openscenegraph-osgSim.pc

#----------------------------------------------------------------------------

%define osgTerrain_major %{common_major}
%define libosgTerrain %mklibname osgTerrain %{osgTerrain_major}

%package -n %{libosgTerrain}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgTerrain}
OpenSceneGraph shared library.

%files -n %{libosgTerrain}
%{_libdir}/libosgTerrain.so.%{osgTerrain_major}
%{_libdir}/libosgTerrain.so.%{version}

#----------------------------------------------------------------------------

%define devosgTerrain %mklibname osgTerrain -d

%package -n %{devosgTerrain}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgTerrain} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgTerrain}
OpenSceneGraph development files.

%files -n %{devosgTerrain}
%{_includedir}/osgTerrain
%{_libdir}/libosgTerrain.so
%{_libdir}/pkgconfig/openscenegraph-osgTerrain.pc

#----------------------------------------------------------------------------

%define osgText_major %{common_major}
%define libosgText %mklibname osgText %{osgText_major}

%package -n %{libosgText}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgText}
OpenSceneGraph shared library.

%files -n %{libosgText}
%{_libdir}/libosgText.so.%{osgText_major}
%{_libdir}/libosgText.so.%{version}

#----------------------------------------------------------------------------

%define devosgText %mklibname osgText -d

%package -n %{devosgText}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgText} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgText}
OpenSceneGraph development files.

%files -n %{devosgText}
%{_includedir}/osgText
%{_libdir}/libosgText.so
%{_libdir}/pkgconfig/openscenegraph-osgText.pc

#----------------------------------------------------------------------------

%define osgUI_major %{common_major}
%define libosgUI %mklibname osgUI %{osgUI_major}

%package -n %{libosgUI}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgUI}
OpenSceneGraph shared library.

%files -n %{libosgUI}
%{_libdir}/libosgUI.so.%{osgUI_major}
%{_libdir}/libosgUI.so.%{version}

#----------------------------------------------------------------------------

%define devosgUI %mklibname osgUI -d

%package -n %{devosgUI}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgUI} = %{EVRD}

%description -n %{devosgUI}
OpenSceneGraph development files.

%files -n %{devosgUI}
%{_includedir}/osgUI
%{_libdir}/libosgUI.so
#{_libdir}/pkgconfig/openscenegraph-osgUI.pc

#----------------------------------------------------------------------------

%define osgUtil_major %{common_major}
%define libosgUtil %mklibname osgUtil %{osgUtil_major}

%package -n %{libosgUtil}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgUtil}
OpenSceneGraph shared library.

%files -n %{libosgUtil}
%{_libdir}/libosgUtil.so.%{osgUtil_major}
%{_libdir}/libosgUtil.so.%{version}

#----------------------------------------------------------------------------

%define devosgUtil %mklibname osgUtil -d

%package -n %{devosgUtil}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgUtil} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgUtil}
OpenSceneGraph development files.

%files -n %{devosgUtil}
%{_includedir}/osgUtil
%{_libdir}/libosgUtil.so
%{_libdir}/pkgconfig/openscenegraph-osgUtil.pc

#----------------------------------------------------------------------------

%define osgViewer_major %{common_major}
%define libosgViewer %mklibname osgViewer %{osgViewer_major}

%package -n %{libosgViewer}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgViewer}
OpenSceneGraph shared library.

%files -n %{libosgViewer}
%{_libdir}/libosgViewer.so.%{osgViewer_major}
%{_libdir}/libosgViewer.so.%{version}

#----------------------------------------------------------------------------

%define devosgViewer %mklibname osgViewer -d

%package -n %{devosgViewer}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgViewer} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgViewer}
OpenSceneGraph development files.

%files -n %{devosgViewer}
%{_includedir}/osgViewer
%{_libdir}/libosgViewer.so
%{_libdir}/pkgconfig/openscenegraph-osgViewer.pc

#----------------------------------------------------------------------------

%define osgVolume_major %{common_major}
%define libosgVolume %mklibname osgVolume %{osgVolume_major}

%package -n %{libosgVolume}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgVolume}
OpenSceneGraph shared library.

%files -n %{libosgVolume}
%{_libdir}/libosgVolume.so.%{osgVolume_major}
%{_libdir}/libosgVolume.so.%{version}

#----------------------------------------------------------------------------

%define devosgVolume %mklibname osgVolume -d

%package -n %{devosgVolume}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgVolume} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgVolume}
OpenSceneGraph development files.

%files -n %{devosgVolume}
%{_includedir}/osgVolume
%{_libdir}/libosgVolume.so
%{_libdir}/pkgconfig/openscenegraph-osgVolume.pc

#----------------------------------------------------------------------------

%define osgWidget_major %{common_major}
%define libosgWidget %mklibname osgWidget %{osgWidget_major}

%package -n %{libosgWidget}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgWidget}
OpenSceneGraph shared library.

%files -n %{libosgWidget}
%{_libdir}/libosgWidget.so.%{osgWidget_major}
%{_libdir}/libosgWidget.so.%{version}

#----------------------------------------------------------------------------

%define devosgWidget %mklibname osgWidget -d

%package -n %{devosgWidget}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgWidget} = %{EVRD}
Conflicts:	openscenegraph-devel < 3.2.0

%description -n %{devosgWidget}
OpenSceneGraph development files.

%files -n %{devosgWidget}
%{_includedir}/osgWidget
%{_libdir}/libosgWidget.so
%{_libdir}/pkgconfig/openscenegraph-osgWidget.pc

#----------------------------------------------------------------------------

%package devel
Summary:	Development package for %{name}
Group:		Development/C++
Provides:	OpenSceneGraph-devel = %{EVRD}
Requires:	%{devOpenThreads} = %{EVRD}
Requires:	%{devosg} = %{EVRD}
Requires:	%{devosgAnimation} = %{EVRD}
Requires:	%{devosgDB} = %{EVRD}
Requires:	%{devosgFX} = %{EVRD}
Requires:	%{devosgGA} = %{EVRD}
Requires:	%{devosgManipulator} = %{EVRD}
Requires:	%{devosgParticle} = %{EVRD}
Requires:	%{devosgPresentation} = %{EVRD}
Requires:	%{devosgShadow} = %{EVRD}
Requires:	%{devosgSim} = %{EVRD}
Requires:	%{devosgTerrain} = %{EVRD}
Requires:	%{devosgText} = %{EVRD}
Requires:	%{devosgUI} = %{EVRD}
Requires:	%{devosgUtil} = %{EVRD}
Requires:	%{devosgViewer} = %{EVRD}
Requires:	%{devosgVolume} = %{EVRD}
Requires:	%{devosgWidget} = %{EVRD}

%description devel
This package contains development files for %{name}

%files devel
%{_libdir}/pkgconfig/openscenegraph.pc

#----------------------------------------------------------------------------

%if %{with qt}
%define osgQt_major 145
%define libosgQt %mklibname osgQt %{osgQt_major}

%package -n %{libosgQt}
Summary:	OpenSceneGraph shared library
Group:		System/Libraries

%description -n %{libosgQt}
OpenSceneGraph shared library.

%files -n %{libosgQt}
%{_libdir}/libosgQOpenGL.so.%{osgQt_major}
%{_libdir}/libosgQOpenGL.so.%{version}

#----------------------------------------------------------------------------

%define devosgQt %mklibname osgQt -d

%package -n %{devosgQt}
Summary:	OpenSceneGraph development files
Group:		Development/C++
Requires:	%{libosgQt} = %{EVRD}

%description -n %{devosgQt}
OpenSceneGraph development files.

%files -n %{devosgQt}
%{_includedir}/osgQOpenGL/
%{_libdir}/libosgQOpenGL.so
%{_libdir}/pkgconfig/openscenegraph-osgQt.pc
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{oname}-%{version} -a1

%build
CFLAGS="%{optflags} -pthread"
CXXFLAGS="%{optflags} -pthread"
%cmake \
%ifarch aarch64 %{x86_64} riscv64 ppc64 ppc64le %{e2k}
	-DLIB_POSTFIX=64 \
%endif
	-DCMAKE_RELWITHDEBINFO_POSTFIX=""
%make_build VERBOSE=TRUE

%if %{with qt}
pushd ../osgQt-master
%cmake
%make_build
popd
%endif

%install
%make_install -C build
%if %{with qt}
%make_install -C osgQt-master/build
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3866 |21cr|openshot-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname openshot-qt

Summary:	Simple and Powerful video editor
Name:		openshot
Version:	2.6.1
Release:	1
Group:		Video
License:	GPLv3+
Url:		http://www.openshot.org
Source0:	https://github.com/OpenShot/openshot-qt/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	python3egg(pyqt5)
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(frei0r)
BuildRequires:	ladspa-devel
BuildRequires:	openshot-devel >= 0.1.2
BuildRequires:	pkgconfig(python3)
# same version of python3-pkg-resources has to be required.
BuildRequires:	python3-pkg-resources >= 56
BuildRequires:	python3egg(setuptools)
Requires:	python3egg(pyqt5)
Requires:	frei0r-plugins
Requires:	ladspa
Requires:	libopenshot-audio >= 0.2.0
Requires:	python3egg(openshot) >= 0.2.5
Requires:	python3-pkg-resources >= 56
Requires:	python3egg(httplib2)
Requires:	python3egg(pillow)
Requires:	python3egg(pyxdg)
Requires:	python3egg(pyzmq)
Requires:	python3egg(requests)
BuildArch:	noarch

%description
OpenShot Video Editor is a free, open-source, non-linear video editor, based on
Python, GTK, MLT and frei0r. It can edit video and audio files, composite and 
transition video files, and mix multiple layers of video and audio together and 
render the output in many different formats.

%files 
%doc README.md COPYING AUTHORS
%{_bindir}/%{oname}
%{_datadir}/applications/*.desktop
%{_appdatadir}/*.appdata.xml
%{_datadir}/mime/packages/*.xml
%{_datadir}/pixmaps/%{oname}.svg
%{_iconsdir}/hicolor/*/apps/%{oname}.*
%{py3_puresitedir}/%{name}_qt
%{py3_puresitedir}/%{name}_qt-%{version}-*
%{_datadir}/icons/hicolor/scalable/mimetypes/openshot-qt-doc.svg

#-----------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
CFLAGS="%{optflags}" %py3_build

%install
%py3_install 

# Remove unnecessary file
rm -fr %{buildroot}%{_prefix}/lib/mime
chmod 644 %{buildroot}/%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3867 |21cr|opensi-client-3.4-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define	oname	opensi

Summary:	OpenSi client
Name:		%{oname}-client
Version:	3.4
Release:	22
License:	GPLv2+
Group:		Office
Url:		http://opensi.org/
Source0:	http://download.gna.org/opensi/opensi-client/3.4/%{name}-%{version}.tgz
BuildRequires:	firefox-devel
Requires:	firefox
Requires:	libopensi

%description
Client for OpenSi.

%prep
%setup -q -n %{oname}

%build

%install
# Jar for the translation
mkdir -p %{buildroot}%{firefox_mozillapath}/chrome/
cp -r `pwd`  %{buildroot}%{firefox_mozillapath}/chrome/
# installed-chrome.txt addition
mkdir -p %{buildroot}%{firefox_mozillapath}/chrome/rc.d/
cat << EOF > %{buildroot}%{firefox_mozillapath}/chrome/rc.d/10_%{oname}.txt
content,install,url,resource:/chrome/opensi/content/opensi/
EOF

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=firefox -chrome chrome://opensi/content/login.xul
Icon=finances_section
Categories=Office;Finance;
Name=OpenSi
Comment=OpenSi client
EOF

%files
%{firefox_mozillapath}/chrome/%{oname}
%{firefox_mozillapath}/chrome/rc.d/10_%{oname}.txt
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3868 |21cr|openslide-3.4.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

%define	gitdate		20211024

Summary:	C library and command line tools for reading virtual slides
Name:		openslide
Version:	3.4.1
Release:	6
License:	LGPLv2+
Group:		Graphics
Url:		https://openslide.org/
# Use a recent devel snapshot to pick up near 6 years of updates and fixes
#Source0:	https://github.com/openslide/openslide/releases/download/v%%{version}/%%{name}-%%{version}.tar.xz
Source0:	%{name}-%{gitdate}.tar.xz
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0) >= 2.14
BuildRequires:	pkgconfig(glib-2.0) >= 2.56
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjp2) >= 2.1
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3) >= 3.6.20
BuildRequires:	pkgconfig(zlib)
Provides:		openslide-tools = %{EVRD}

%description
C library and command line tools for reading virtual slides. This package
contains some command line tools for working with virtual slides.

%files
%doc README.txt lgpl-2.1.txt LICENSE.txt CHANGELOG.txt
%{_bindir}/%{name}-*
%{_mandir}/man1/%{name}-*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C library for reading virtual slides
Group:		System/Libraries

%description -n %{libname}
The OpenSlide library allows programs to access virtual slide files regardless
of the underlying image format.

%files -n %{libname}
%doc LICENSE.txt
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{libname}.

%files -n %{devname}
%doc LICENSE.txt
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}


%build
autoreconf -vfi
%configure --disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3869 |21cr|openssh-askpass-qt4-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Name:		openssh-askpass-qt4
Version:	1.0.1
Release:	10
Summary:	Qt4 passphrase dialog for OpenSSH
License:	GPL
Group:		Graphical desktop/KDE
URL:		%{disturl}
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	qt4-devel
Requires:	openssh-askpass-common
Provides:	openssh-askpass
Provides:	ssh-askpass
Provides:	ssh-extras
Requires(post,postun):	update-alternatives

%description
Qt4 version of ssh passphrase dialog.

%files 
%defattr(0755,root,root,755)
%{_libdir}/ssh/qt4-ssh-askpass

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt4 qt4-ssh-askpass.pro

%make

%install
mkdir -p %{buildroot}/%{_sysconfdir}/profile.d/
mkdir -p %{buildroot}/%{_libdir}/ssh
install -m 755 qt4-ssh-askpass %{buildroot}/%{_libdir}/ssh/qt4-ssh-askpass

%post
update-alternatives --install %{_libdir}/ssh/ssh-askpass ssh-askpass %{_libdir}/ssh/qt4-ssh-askpass 50
update-alternatives --install %{_bindir}/ssh-askpass bssh-askpass %{_libdir}/ssh/qt4-ssh-askpass 50

%postun
[ $1 = 0 ] || exit 0
update-alternatives --remove ssh-askpass %{_libdir}/ssh/qt4-ssh-askpass
update-alternatives --remove bssh-askpass %{_libdir}/ssh/qt4-ssh-askpass

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3870 |21cr|openteacher-3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		openteacher
Version:	3.3
Release:	1
Summary:	An application that helps you learn a foreign language
License:	GPLv3+
Group:		Education
URL:		http://openteacher.org/
Source0:	https://sourceforge.net/projects/openteacher/files/openteacher/%{version}/openteacher_%{version}_linux.tar.gz
BuildRequires:	python2-devel
Requires:	PyQt4

%description
OpenTeacher has the following features:
- Smart and interval question asking
- Think answer, shuffle answer and repeat answer input modes
- Easy symbol, Greek and Cyrillic input
- Read and write Teach2000 and WRTS files, read ABBY Lingvo Tutor files
- Save and open your online WRTS lists
- Support for synonyms
- Printing your word lists
- Available in Arabic, Trad. Chinese, Croatian, Danish, Dutch, English,
  French, German, Hebrew, Hungarian, Japanese, Korean, Polish, Russian,
  Serbian, Slovenian, Spanish, Swedish and Turkish.

%prep
%autosetup -p1 -c

%build
%py2_build

%install
%py2_install

install -d %{buildroot}%{_iconsdir}/hicolor/48x48/apps
install -m 644 linux/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/

install -d %{buildroot}%{_iconsdir}/hicolor/48x48/mimetypes
install -m 644 linux/application*.png %{buildroot}%{_iconsdir}/hicolor/48x48/mimetypes/

%files
%{_bindir}/%{name}
%{python2_sitearch}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/mimetypes/application*.png
%{python2_sitearch}/OpenTeacher*.egg-info
%{_datadir}/menu/openteacher
%{_datadir}/pixmaps/openteacher.xpm


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3871 |21cr|OpenTimelineIO-0.15-3.git0ab698.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use latest commit from cxx17 branch for support c++17
%define commit 0ab698f3a644ecceb07aff20848ed10e9b810431
%define commit_short %(echo %{commit} | head -c6)

%define oname otio

%define major 0
%define libname %mklibname opentimelineio %{major}
%define libopentime %mklibname opentime %{major}
%define devname %mklibname opentimelineio -d

Summary:	Open Source API and interchange format for editorial timeline information
Name:		OpenTimelineIO
Version:	0.15
Release:	3.git%{commit_short}.1
License:	Apache-2.0
Group:		System/Libraries
Url:		http://opentimeline.io/
Source0:	https://github.com/AcademySoftwareFoundation/OpenTimelineIO/archive/%{commit}.zip?/%{oname}-%{commit}.zip
# 3rdparty headers
Source1:	https://raw.githubusercontent.com/thelink2012/any/master/any.hpp
Source2:	https://raw.githubusercontent.com/martinmoene/optional-lite/master/include/nonstd/optional.hpp
Patch0:		opentimelineio-versioning-and-install.patch
BuildRequires:	cmake
BuildRequires:	rapidjson-devel
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(python3)

%description
OpenTimelineIO is an interchange format and API for editorial cut information. 
OTIO contains information about the order and length of cuts and 
references to external media. It is not however, a container format for media.

For integration with applications, the core OTIO library is 
implemented in C++ and provides an in-memory data model, as well 
as library functions for interpreting, manipulating, and serializing 
that data model. Within the core is a dependency-less library for dealing 
strictly with time, opentime.

The project also supports an official python binding, which is 
intended to be an idiomatic and ergonomic binding for python developers. 
The python binding includes a plugin system which supports a number of 
different types of plugins, most notably adapters, which can be used 
to read and write legacy formats into the OTIO data model.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for %{name}
Group:		System/Libraries

%description -n %{libname}
%{name} shared library

%files -n %{libname}
%{_libdir}/libopentimelineio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopentime}
Summary:	A library for %{name}
Group:		System/Libraries

%description -n %{libopentime}
%{name} shared library

%files -n %{libopentime}
%{_libdir}/libopentime.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libopentime} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	opentimelineio-devel = %{EVRD}

%description -n %{devname}
Development files for %{name} library.

%files -n %{devname}
%doc README.md
%license LICENSE.txt
%{_includedir}/*
%{_libdir}/cmake/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

mkdir -p src/opentimelineio/any
cp %{SOURCE1} src/opentimelineio/any/any.hpp

mkdir -p src/opentimelineio/nonstd
cp %{SOURCE2} src/opentimelineio/nonstd/optional.hpp

%build
%cmake	\
	-Wno-dev			\
	-DOTIO_DEPENDENCIES_INSTALL=OFF \
	-DOTIO_FIND_IMATH=ON
%make_build

%install
%make_install -C build

# install any.hpp and optional.hpp
mkdir -p %{buildroot}%{_includedir}/opentimelineio/deps/any
mkdir -p %{buildroot}%{_includedir}/opentimelineio/nonstd
cp %{SOURCE1} %{buildroot}%{_includedir}/opentimelineio/deps/any/
cp %{SOURCE2} %{buildroot}%{_includedir}/opentimelineio/nonstd/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3872 |21cr|opentoonz-1.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	2D animation software
Name:		opentoonz
Version:	1.6.0
Release:	2
License:	BSD
Group:		Graphics
Url:		https://github.com/opentoonz/opentoonz
Source0:	https://github.com/opentoonz/opentoonz/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.xz
# From Fedora
Patch0:		opentoonz-1.5.0-install-path-fix.patch
Patch2:		opentoonz-1.5.0-lzo-fix.patch
# https://github.com/opentoonz/opentoonz/issues/4199
Patch3:		opentoonz-1.5.0-tiff-fix.patch
# https://github.com/opentoonz/opentoonz/pull/4239
Patch4:		opentoonz-1.6.0-gethostbyname.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel
BuildRequires:	qt5-qtbase-devel
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(kissfft-float)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libmypaint)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(superlu)

%description
2D animation software.

%files
%doc doc/*.md
%doc doc/*.JPG
%license LICENSE.txt
%{_bindir}/OpenToonz
%{_bindir}/%{name}
%{_bindir}/tcleanup
%{_bindir}/tcomposer
%{_bindir}/tconverter
%{_bindir}/tfarmcontroller
%{_bindir}/tfarmserver
%{_datadir}/applications/io.github.OpenToonz.desktop
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/256x256/apps/io.github.OpenToonz.png
%{_libdir}/%{name}
%{_metainfodir}/io.github.OpenToonz.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
LDFLAGS="%{ldflags} -Wl,--no-as-needed -ldl"
%cmake ../toonz/sources
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}/%{_datadir}/%{name}/stuff/*/.gitkeep
rm -rf %{buildroot}/%{_datadir}/%{name}/stuff/config/qss/Default/less/.vscode
rm -rf %{buildroot}/%{_datadir}/%{name}/stuff/library/mypaint*
chmod +x %{buildroot}%{_libdir}/%{name}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3873 |21cr|openttd-12.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An open source clone of the Microprose game "Transport Tycoon Deluxe" game
Name:		openttd
Version:	12.2
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://www.openttd.org
Source0:	http://cdn.openttd.org/%{name}-releases/%{version}/%{name}-%{version}-source.tar.xz
BuildRequires:	cmake
BuildRequires:	ccache
BuildRequires:	doxygen
BuildRequires:	desktop-file-utils
BuildRequires:	unzip
BuildRequires:	liblzo-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)
Requires:	TiMidity++
Requires:	openttd-opengfx >= 0.4.6
Requires:	openttd-opensfx
Requires:	openttd-openmsx

%description
OpenTTD is an open source clone of the Microprose game "Transport Tycoon
Deluxe" game.

%files
%doc %{_docdir}/%{name}
%{_gamesbindir}/openttd
%{_gamesdatadir}/openttd
%{_datadir}/applications/openttd.desktop
%{_iconsdir}/hicolor/*/apps/openttd.png
%{_mandir}/man6/openttd.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

#cleanup
rm -rf %{buildroot}%{_datadir}/pixmaps

# fix desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
	--add-category=StrategyGame \
	--remove-key=Version \
	%{buildroot}%{_datadir}/applications/openttd.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3874 |21cr|openttd-opengfx-7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname opengfx

Summary:	OpenGFX graphics replacement set for OpenTTD
Name:		openttd-%{realname}
Version:	7.1
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://dev.openttdcoop.org/projects/opengfx
Source0:	http://cdn.openttd.org/%{realname}-releases/%{version}/%{realname}-%{version}-source.tar.xz
Patch0:		opengfx-0.4.1-gimpscript.patch
BuildRequires:	dos2unix
BuildRequires:	grfcodec
BuildRequires:	nml >= 0.3.0
BuildRequires:	gimp
Conflicts:	openttd < 1.0.0
BuildArch:	noarch

%description
OpenGFX is an open source graphics base set for OpenTTD which can completely
replace the TTD base set.

%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/openttd-opengfx
%{_gamesdatadir}/openttd/data/*.grf
%{_gamesdatadir}/openttd/data/*.obg

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{realname}-%{version}-source

#Makefile.local
cat >> Makefile.local << EOF
DO_NOT_INSTALL_DOCS = 1
DO_NOT_INSTALL_LICENSE = 1
DO_NOT_INSTALL_CHANGELOG = 1
EOF

%build
make UNIX2DOS_FLAGS="-q"

%install
mkdir -p %{buildroot}%{_gamesdatadir}/openttd/data
%make install \
	INSTALL_DIR=%{buildroot}%{_gamesdatadir}/openttd/data \
	DOCDIR=%{buildroot}%{_docdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3875 |21cr|openttd-openmsx-0.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname openmsx

Name:           openttd-%{realname}
Version:        0.4.2
Release:        1
Summary:        OpenMSX music replacement set for OpenTTD

Group:          Games/Strategy
License:        GPLv2
URL:            http://dev.openttdcoop.org/projects/openmsx
Source0:        http://cdn.openttd.org/%{realname}-releases/%{version}/%{realname}-%{version}-source.tar.xz
BuildArch:      noarch
BuildRequires:  dos2unix
BuildRequires:  python3
Conflicts:      openttd < 1.0.0-2mdv

%description
OpenMSX is an open source replacement for the original Transport Tycoon
Deluxe (TTD) music.

%prep
%setup -q -n %{realname}-%{version}-source

%build
%make

%install
mkdir -p %{buildroot}%{_gamesdatadir}/openttd/gm
%make install INSTALL_DIR=%{buildroot}%{_gamesdatadir}/openttd/gm

%files
%doc docs/*.txt
%{_gamesdatadir}/openttd/gm/%{realname}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3876 |21cr|openttd-opensfx-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname opensfx

Name:           openttd-%{realname}
Version:        1.0.3
Release:        1
Summary:        OpenSFX sound replacement set for OpenTTD

Group:          Games/Strategy
License:        Creative Commons Sampling Plus 1.0 License
URL:            https://dev.openttdcoop.org/projects/opensfx
Source0:        https://cdn.openttd.org/%{realname}-releases/%{version}/%{realname}-%{version}-source.tar.xz
BuildArch:      noarch
BuildRequires:  catcodec
Conflicts:      openttd < 1.0.0-2mdv

%description
OpenSFX is an open source replacement for the original Transport Tycoon
Deluxe base sounds used by OpenTTD.

%prep
%setup -q -n %{realname}-%{version}-source

%build
%make

%install
mkdir -p %{buildroot}%{_gamesdatadir}/openttd/data
%make install INSTALL_DIR=%{buildroot}%{_gamesdatadir}/openttd/data

%files
%doc docs/*.txt
%{_gamesdatadir}/openttd/data/%{realname}-%{version}.tar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3877 |21cr|openvpngui-0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		openvpngui
Version:	0.8
Release:	1
Summary:	GUI for OpenVPN (Client)
Group:		System/Configuration/Networking
License:	GPLv3+
URL:		https://github.com/AKotov-dev/OpenVPN-GUI
Source0:	https://github.com/AKotov-dev/OpenVPN-GUI/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	openvpngui
Source2:	openvpngui.png
Source3:	openvpngui.desktop
Source4:	openvpngui.policy
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	openvpn
Requires:	polkit
Requires:	systemd
Requires:	fping
Requires:	procps-ng
Requires:	gtk2


%description
Graphical interface for easy connection via OpenVPN (client)
The program works with configurations *.ovpn

%files
%doc ../README.md
%license ../LICENSE
%{_sysconfdir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}
%{_unitdir}/%{name}.service
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/%{name}.policy

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------
%prep
%setup -n OpenVPN-GUI-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp etc/%{name}/* %{buildroot}%{_sysconfdir}/%{name}/
cp %{name} %{buildroot}%{_datadir}/%{name}/
cp etc/systemd/system/%{name}.service %{buildroot}%{_unitdir}/
cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp %{SOURCE4} %{buildroot}%{_datadir}/polkit-1/actions

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3878 |21cr|openvr-1.16.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}_api %{major}
%define devname %mklibname %{name}_api -d

Name:           openvr
Version:        1.16.8
Release:        1
Summary:        Virtual reality SDK
License:        BSD-3-Clause
Group:          System/Libraries
URL:            https://github.com/ValveSoftware/openvr
Source:         https://github.com/ValveSoftware/openvr/archive/refs/tags/v%{version}#/%{name}-%{version}.tar.gz
# PATCH-FIX-UPSTREAM 0001-Fixed-includes-and-asserts-in-v1.6.18-release.patch -- https://github.com/ValveSoftware/openvr/pull/1524
Patch0:         0001-Fixed-includes-and-asserts-in-v1.6.18-release.patch
# PATCH-FIX-UPSTREAM fix-missing-stdarg-h.patch -- Adding missing include for va_start and va_end https://github.com/ValveSoftware/openvr/issues/1525
Patch1:         fix-missing-stdarg-h.patch
# PATCH-FIX-OPENSUSE install-library.patch -- Install library in suffixed directory
Patch2:         install-library.patch
BuildRequires:  cmake

%description
OpenVR is an API and runtime that allows access to VR hardware from multiple vendors
without requiring that applications have specific knowledge of the hardware they are
targeting.

#-------------------------------------------------------

%package -n %{libname}
Summary:        SDK API library
Group:          System/Libraries

%description -n %{libname}
OpenVR is an API and runtime that allows access to VR hardware from multiple vendors
without requiring that applications have specific knowledge of the hardware they are
targeting.

%files -n %{libname}
%{_libdir}/libopenvr_api.so.*

#-------------------------------------------------------
%package -n %{devname}
Summary:        Development files for VR API
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
OpenVR is an API and runtime that allows access to VR hardware from multiple vendors
without requiring that applications have specific knowledge of the hardware they are
targeting.

%files -n %{devname}
%license LICENSE
%{_includedir}/openvr
%{_libdir}/libopenvr_api.so
%{_datadir}/pkgconfig/openvr.pc

#-------------------------------------------------------

%prep
%autosetup -p1

rm -rfv ./lib ./bin

%build
export CFLAGS="-flto -Wl,-flto"
%cmake -DBUILD_SHARED=ON -DBUILD_UNIVERSAL=OFF -DUSE_LIBCXX=OFF
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3879 |21cr|openxcom-1.0.0-6.gitb9182a.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit b9182a379df85eebbf1ed40b3c7ea62ea7c58799
%define commit_short %(echo %{commit} | head -c6)

Summary:	Open-source reimplementation of the original X-Com
Name:		openxcom
Version:	1.0.0
Release:	6.git%{commit_short}.1
License:	GPLv3+
Group:		Games/Strategy
Url:		http://openxcom.org/
Source0:	https://github.com/OpenXcom/OpenXcom/archive/%{commit}.zip?/%{name}-%{commit}.zip
# http://www.iconfinder.com/icondetails/1360/128/ufo_icon
Source1:	%{name}.png
Source10:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(yaml-cpp)

%description
OpenXcom is an open-source reimplementation of the popular
UFO: Enemy Unknown (X-Com: UFO Defense in USA) videogame by
Microprose, licensed under the GPL and written in C++ / SDL.
See more info at the website: http://openxcom.org

OpenXcom requires the original X-Com resources (any version).
If you have the Steam version, you can find the X-Com game
folder in "Steam\steamapps\common\xcom ufo defense\XCOM".

When installing manually, copy the X-Com subfolders (GEODATA,
GEOGRAPH, MAPS, ROUTES, SOUND, TERRAIN, UFOGRAPH, UFOINTRO,
UNITS) to OpenXcom's data folder in the following path:
/usr/share/openxcom/

Important! Please use supported game editions for data files.
Otherwise you may get various messages about missing files or
even segmentation faults.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/openxcom.svg
%{_mandir}/man6/openxcom.*
%defattr(0644,root,root,0777)
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n OpenXcom-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=OpenXcom
Comment=Open-source reimplementation of the original X-Com
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;StrategyGame;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert %{SOURCE1} -resize ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3880 |21cr|options-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 50941
# category Package
# catalog-ctan /macros/latex/contrib/options
# catalog-date 2016-06-24 19:18:15 +0200
# catalog-license LPPL1.3
# catalog-version 1.0
Name:		options
Version:	1.0
Release:	3
Summary:	Provides convenient key-value options for LaTeX package writers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/options
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/options.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/options.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The options package provides easy to use key-value options for
LaTeX package writers. It has a similar interface as pgfkeys
with path options but comes with more built-in data types and
more convenient support for families and searching.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/options/
%{_texmfdistdir}/tex/latex/options/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}


%changelog
* Tue Jan 03 2012 Paulo Andrade <pcpa@mandriva.com.br> 2.7-2
+ Revision: 39030
- Rebuild to reduce used resources

* Sat Nov 05 2011 Paulo Andrade <pcpa@mandriva.com.br> 2.7-1
+ Revision: 39030
- texlive-options
- texlive-options
- texlive-options
- texlive-options
- texlive-options

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3881 |21cr|optipng-0.7.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		optipng
Version:	0.7.7
Release:	1
Summary:	A PNG optimizer and converter
Group:		Graphics
License:	zlib
URL:		http://optipng.sourceforge.net/
Source0:	http://downloads.sourceforge.net/optipng/optipng-%{version}.tar.gz
BuildRequires:	zlib-devel
BuildRequires:	libpng-devel

%description
OptiPNG is a PNG optimizer that recompresses image files to a smaller size,
without losing any information. This program also converts external formats
(BMP, GIF, PNM; TIFF support is coming up) to optimized PNG, and performs PNG
integrity checks and corrections. 


%prep
%setup -q
%apply_patches

%build
./configure -with-system-zlib -with-system-libpng
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall_std prefix=%{_prefix} man1dir=%{_mandir}/man1

%files
%doc README.txt LICENSE.txt doc/*
%{_bindir}/optipng
%{_mandir}/man1/optipng.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3882 |21cr|orage-4.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f 1,2)

Summary:	Time-managing application for Xfce desktop environment
Name:		orage
Version:	4.16.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://www.xfce.org
Source0:	https://archive.xfce.org/src/apps/orage/%{url_ver}/orage-%{version}.tar.bz2
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	desktop-file-utils
BuildRequires:	flex
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	intltool
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libical) >= 0.43
BuildRequires:	pkgconfig(libnotify) >= 0.3.2
BuildRequires:	pkgconfig(popt)
BuildRequires:	xfce4-dev-tools

Provides:	xfcalendar = %{version}
Obsoletes:	xfcalendar < 4.5

%description
Orage is a time-managing application for the Xfce desktop environment,
featuring:

- Time-based events
- Data stored in ical format.
- Recurring appointments
- Reminder up to 2 days before the event starts
- Possibility to choose your alarm sound
- Repeating the alarm sound until you close the reminder window
- Possibility to duplicate an appointment
- Archiving system for keeping your history in different files for
  avoiding overloads in the main working file.

%files -f %{name}.lang
%doc README* AUTHORS
%{_bindir}/*
%{_libdir}/xfce4/panel/plugins/liborageclock.so
%{_datadir}/applications/*.desktop
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/*/apps/*.xpm
%{_iconsdir}/hicolor/*/apps/*.svg
%{_datadir}/%{name}/
%{_datadir}/dbus-1/services/org.xfce.*.service
%{_datadir}/metainfo/org.xfce.orage.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%define Werror_cflags %nil

NOCONFIGURE=yes xdt-autogen

%configure \
	--disable-static \
	--enable-reentrant \
	--enable-dbus \
	--enable-archive \
	--enable-libnotify \
	--enable-libxfce4panel

%make

%install
%makeinstall_std

#disable rpath in _bin
chrpath -d %{buildroot}/%{_bindir}/*

rm -rf %{buildroot}%{_datadir}/orage/doc

%find_lang %{name} %{name}.lang

desktop-file-install \
	--add-only-show-in="XFCE" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3883 |21cr|ORBit2-2.14.19-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define apiver	2.0
%define api 	2
%define major	0
%define libname		%mklibname %{name}_ %{major}
%define libimodule	%mklibname ORBit-imodule %{api} %{major}
%define libCosNaming	%mklibname ORBit-CosNaming %{api} %{major}
%define devname	%mklibname -d %{name}

Summary:	High-performance CORBA Object Request Broker
Name:		ORBit2
Version:	2.14.19
Release:	18
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		http://www.gnome.org/projects/ORBit2/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/ORBit2/%{url_ver}/%{name}-%{version}.tar.bz2
# (fc) 2.4.1-2mdk fix crash when /tmp is not readable
Patch0:		ORBit2-2.14.4-tmpdir.patch
# handle ref leaks in the a11y stack more gracefully
Patch1:		ORBit2-2.14.3-ref-leaks.patch
# bumps tolerance up from 50 to 200kb
Patch2:		ORBit2-2.14.19_test-mem_tolerance.patch

BuildRequires:	indent
BuildRequires:	gtk-doc
BuildRequires:	clang
BuildRequires:	pkgconfig(glib-2.0) >= 2.0.0
BuildRequires:	pkgconfig(libIDL-2.0) >= 0.8.10
BuildRequires:	pkgconfig(popt) >= 1.5

%description
ORBit is a high-performance CORBA (Common Object Request Broker
Architecture) ORB (object request broker). It allows programs to
send requests and receive replies from other programs, regardless
of the locations of the two programs. CORBA is an architecture that
enables communication between program objects, regardless of the
programming language they're written in or the operating system they
run on.

You will need to install this package if you want to run programs that use
the ORBit implementation of CORBA technology.

%files
%doc README.service-name AUTHORS NEWS MAINTAINERS README
%{_bindir}/linc-cleanup-sockets
%{_bindir}/ior-decode-%{api}
%{_bindir}/typelib-dump
%dir %{_libdir}/orbit-%{apiver}
%{_libdir}/orbit-%{apiver}/Everything_module.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	High-performance CORBA Object Request Broker
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}

%description -n %{libname}
This package contains core library of the ORBit implementation
of CORBA technology.

%files -n %{libname}
%{_libdir}/libORBit-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libimodule}
Summary:	High-performance CORBA Object Request Broker
Group:		System/Libraries
Conflicts:	%{_lib}ORBit2_0 < 2.14.19-5

%description -n %{libimodule}
This package contains imodule library of the ORBit implementation
of CORBA technology.

%files -n %{libimodule}
%{_libdir}/libORBit-imodule-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libCosNaming}
Summary:	High-performance CORBA Object Request Broker
Group:		System/Libraries
Conflicts:	%{_lib}ORBit2_0 < 2.14.19-5

%description -n %{libCosNaming}
This package contains CosNaming library of the ORBit implementation
of CORBA technology.

%files -n %{libCosNaming}
%{_libdir}/libORBitCosNaming-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, header files and utilities for ORBit
Group:		Development/GNOME and GTK+
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libimodule} = %{EVRD}
Requires:	%{libCosNaming} = %{EVRD}
# needed for orbit-idl-2
Requires:	indent

%description -n %{devname}
This package contains the header files, libraries and utilities
necessary to write programs that use CORBA technology. If you want to
write such programs, you'll also need to install the ORBit package.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/*
%{_bindir}/orbit2-config
%{_bindir}/orbit-idl-%{api}
%{_datadir}/aclocal/*.m4
%{_datadir}/idl/orbit-%{apiver}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/libname-server-2.a
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# this is a hack for glib2.0 >= 2.31.0
sed -i -e 's/-DG_DISABLE_DEPRECATED//g' \
    ./linc2/src/Makefile.*

%build
%configure \
	--disable-gtk-doc \
	--enable-purify \
	--disable-static

#test passed only on singletheread compile https://forums.gentoo.org/viewtopic-t-1020924-start-0.html
%make -j1

%install
%makeinstall_std

# Rename doc to prevent name conflict
cp src/services/name/README README.service-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3884 |21cr|orbital-ballistics-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname Planetary-Ballistics

Name:           orbital-ballistics
Version:        0.7
Release:        1
Summary:        The classic ballistics game but in the solar system
Group:          Games/Arcade
License:        GPLv3
Url:            https://mandarancio.itch.io/orbital-ballistics
Source0:        https://github.com/Mandarancio/Planetary-Ballistics/archive/master.zip

BuildRequires:  imagemagick
BuildRequires:  zip

Requires:       love >= 0.10
BuildArch:      noarch

%description
The classic ballistics game but in the solar system!
The player planets colony has to destroy 
the enemy planets with inter-planetary nukes!
Now with:

Random planetary systems
Better AI
Better collisions
Better distruction
Rocket interception
A simple menu
Rocket trajectory preview.


%files
%doc LICENSE README.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------
%prep
%setup -qn Planetary-Ballistics-master

%build

%install
# data
zip -9 -q -r %{name}.love .
install -D -m 644 %{name}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love

# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{name}.love
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{oname}
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


# icons
for size in 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size  -background transparent -gravity Center bg_tail.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3885 |21cr|oregano-0.82-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

Summary:	A GUI to simulate electronic circuit
Name:		oregano
Version:	0.82
Release:	4
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/marc-lorber/oregano
Source0:	%{name}-%{version}.tar.gz
Patch0:		oregano-0.70-sfmt.patch
Patch1:		oregano-0.70-linkage.patch
Patch2:		oregano-0.82-include.patch
BuildRequires:	gettext
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	perl-XML-Parser
BuildRequires:	rarian
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(goocanvas-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(xpm)

%description
Oregano is an application for schematic capture and simulation of
electrical circuits. For the actual simulation, Oregano acts as a
front-end for SPICE, which is more or less the industry standard for
circuit simulation.

%files -f %{name}.lang
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_datadir}/oregano
%{_datadir}/applications/*
%{_iconsdir}/hicolor/scalable/apps/gnome-oregano.svg
%{_datadir}/mime/packages/*.xml
%{_datadir}/glib-2.0/schemas/apps.oregano.gschema.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# this is a hack for glib2.0 >= 2.31.0
sed -i -e 's/-DGTK_DISABLE_DEPRECATED//g' \
        ./src/Makefile.* \
        ./src/*/Makefile.*


%build
./autogen.sh
%configure --disable-update-mimedb
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
cp data/mime/gnome-oregano.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/gnome-oregano.svg
perl -pi -e 's,gnome-oregano.svg,gnome-oregano,g' %{buildroot}%{_datadir}/applications/%{name}.desktop

rm -rf %{buildroot}%{_datadir}/mime/{XMLnamespaces,generic-icons,globs,globs2,icons,magic,mime.cache,treemagic,types,aliases,subclasses}
rm -rf %{buildroot}%{_datadir}/mime/application/*.xml

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3886 |21cr|orion-1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Orion

Summary:	%{theme_name} theme
Name:		orion
Version:	1.5
Release:	4
License:	GPLv3+
Group:		Graphics
Url:		https://github.com/shimmerproject/Orion
Source0:	http://distfiles.exherbo.org/distfiles/%{theme_name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{theme_name} is a GTK+ 3 port of Clearlooks, the default theme
for GNOME 2. Style is also included for GTK2, Unity and for Metacity,
Openbox and Xfwm4 window managers.

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes.

%files common
%doc LICENSE README
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	gtk-engines2

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme.

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	gtk+3.0

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme.

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	xfwm4

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme.

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%package openbox-theme
Summary:	%{theme_name} Openbox themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	openbox

%description openbox-theme
Themes for Openbox as part of the %{theme_name} theme.

%files openbox-theme
%{_datadir}/themes/%{theme_name}/openbox-3/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}-%{version}

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_datadir}/themes/%{theme_name}/
for dir in gtk-2.0 gtk-3.0 metacity-1 openbox-3 xfwm4; do
  cp -R $dir %{buildroot}%{_datadir}/themes/%{theme_name}/
done
install -Dpm 0644 index.theme %{buildroot}%{_datadir}/themes/%{theme_name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3887 |21cr|osc-0.182.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenSUSE Build Service Commander
Name:		osc
Version:	0.182.0
Release:	1
License:	GPLv2+
Group:		Development/Other
URL:		http://openbuildservice.org
Source0:	https://github.com/openSUSE/osc/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(m2crypto)
BuildRequires:	python3egg(urlgrabber)
Requires:	python3egg(m2crypto)
Requires:	python3egg(urlgrabber)
Requires:	python3-rpm
BuildArch:	noarch

%description
Commandline client for the openSUSE Build Service.

See http://en.opensuse.org/Build_Service/CLI , as well as
http://en.opensuse.org/Build_Service_Tutorial for a general
introduction.

%prep
%setup -q

%build
%py3_build

%install
%py3_install
ln -s osc-wrapper.py %{buildroot}%{_bindir}/osc
mkdir -p %{buildroot}%{_localstatedir}/lib/osc-plugins
install -m644 dist/complete.csh -D %{buildroot}%{_sysconfdir}/profile.d/osc.csh
install -m644 dist/complete.sh -D %{buildroot}%{_sysconfdir}/profile.d/osc.sh
install -m755 dist/osc.complete -D %{buildroot}%{_prefix}/lib/osc/complete

%files
%doc README*
%{_bindir}/osc*
%{py3_puresitedir}/*
%{_sysconfdir}/profile.d/*
%dir %{_prefix}/lib/osc
%{_prefix}/lib/osc/*
%dir /var/lib/osc-plugins
%{_mandir}/man1/osc.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3888 |21cr|osdlyrics-0.4.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OSD Lyrics - Show lyrics with your favorite media player
Name:		osdlyrics
Version:	0.4.3
Release:	4
License:	GPLv3+
Group:		Sound
Url:		http://code.google.com/p/osd-lyrics/
Source0:	%{name}-%{version}.tar.gz
Patch0:		osdlyrics-0.4.3-automake.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmpd)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(sqlite3)

%description
OSD Lyrics is a lyrics show compatible with various media players. It is not
a plugin but a standalone program. OSD Lyrics shows lyrics on your desktop,
in the style similar to KaraOK. It also provides another displaying style, in
which lyrics scroll from bottom to top. OSD Lyrics can download lyrics from
the network automatically.

%files -f %{name}.lang
%doc AUTHORS ABOUT-NLS COPYING ChangeLog NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure --disable-xmms2
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3889 |21cr|osh-20080629-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	V6 Thompson Shell Port
Name:		osh
Version:	20080629
Release:	6
License:	BSD with advertising
Group:		Shells
Url:		http://v6shell.org/
Source0:	http://v6shell.org/src/osh-%{version}.tar.gz
Patch0:		osh-20080629-no-strip.patch

%description
The osh project is hereby dedicated to the individuals at Bell Labs who
started the UNIX ball rolling in 1969.

The objective of the osh project is to honor our shared computing history
by maintaining two different ports of the original sh(1) as it appeared
in Sixth Edition (V6) UNIX. One of the ports, osh, contains enhancements
to make it usable as an interactive login shell while also remaining
backward compatible. The other port, sh6, simply provides a
backward-compatible user interface without any obvious enhancements. In
addition, the shell utilities necessary for globbing and flow control
in command files (aka shell scripts) are also included.

%files
%doc AUTHORS CHANGES CHANGES-sh_to_sh6 LICENSE NOTES README
%{_bindir}/fd2
%{_bindir}/glob6
%{_bindir}/goto
%{_bindir}/if
%{_bindir}/osh
%{_bindir}/sh6
%{_mandir}/man1/fd2.1.*
%{_mandir}/man1/glob6.1.*
%{_mandir}/man1/goto.1.*
%{_mandir}/man1/if.1.*
%{_mandir}/man1/osh.1.*
%{_mandir}/man1/sh6.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make \
	PREFIX=%{_prefix} \
	CFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}"

%install
%makeinstall_std \
	PREFIX=%{_prefix} \
	MANDIR=%{_mandir}/man1 \
	BINMODE="-m 0755" \
	MANMODE="-m 0644"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3890 |21cr|osie-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	osie
%define version	1.0.0
%define release	5

Name:		osie
Version:	1.0.0
Release:	5
Summary:	OpenTTD screenshot information extractor
Group:          Graphics
License:	GPLv2
URl:		http://www.openttd.org/
Source0:	http://ftp.snt.utwente.nl/pub/games/openttd/binaries/extra/%{name}/%{version}/%{name}-%{version}-source.tar.gz
Patch0:		osie-1.0.0-add_makefile.local_support.patch
BuildRequires:	png-devel

%description
osie (OpenTTD screenshot information extractor) extracts the information
stored in OpenTTD's PNG screenshots such as the version, NewGRFs and AIs.

%prep
%setup -q
%patch0 -p0 -b .addlocalsupport

cat >> Makefile.local << EOF
prefix = %{_prefix}
DO_NOT_INSTALL_CHANGELOG = 1
DO_NOT_INSTALL_LICENSE = 1
DO_NOT_INSTALL_DOCS = 1
EOF

%build
%setup_compile_flags
%make VERBOSE=1

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc docs/readme.txt changelog.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3891 |21cr|osmo-0.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		osmo
Version:	0.4.4
Release:	2
Summary:	A handy personal organizer
License:	GPLv2+
Group:		Office
Url:		http://clayo.org/osmo
Source0:	http://downloads.sourceforge.net/osmo-pim/%{name}-%{version}.tar.gz
Source1:	osmo-0.4.2_ru.tar.gz
Patch0:     osmo-desktop.patch
BuildRequires:  pkgconfig(gspell-1)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(libarchive)
BuildRequires:  pkgconfig(libgringotts)
BuildRequires:  pkgconfig(libical)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(webkit2gtk-4.0)
BuildRequires:  nettle-devel

%description
Osmo is a handy personal organizer, which includes calendar, tasks 
manager, address book and notes modules.

%prep
%setup -q
%patch0 -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%configure \
  --enable-reproducible
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog README* TRANSLATORS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%{_iconsdir}/hicolor/*/actions/%{name}*
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_datadir}/sounds/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3892 |21cr|osmose-0.9.98-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname		Osmose
%define		oversion	0-9-96-QT

Name:		osmose
Version:	0.9.98
Release:	1

Summary:	A Sega Master System emulator
License:	GPLv3
Group:		Emulators
URL:		http://bcz.asterope.fr/
Source0:	http://bcz.asterope.fr/osmose/%{oname}-%{oversion}.zip
Source1:	%{name}.png
Patch0:		Osmose-0-9-96-QT-gcc4.7.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	qt4-devel

%description
Osmose is a Sega Master System Emulator. Now it has Qt4 GUI.

%prep
%setup -q -n %{oname}-%{oversion}
%patch0 -p1

%build
%qmake_qt4 %{oname}-%{oversion}.pro
%make

chmod 644 Readme.txt License.txt

%install
rm -rf %{buildroot}
#makeinstall
install -d -m 0755 %{buildroot}%{_gamesbindir}
install -m 0755 %{oname}-%{oversion} %{buildroot}%{_gamesbindir}/%{name}

install -d -m 0755 %{buildroot}%{_datadir}/pixmaps
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Osmose
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{_datadir}/pixmaps/%{name}.png
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

%files
%doc Readme.txt License.txt
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3893 |21cr|osptoolkit-4.24.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname osptk %{major}
%define devname %mklibname osptk -d

%define oname TK-4_24_4
%define oversion 20210825
%define _disable_lto 1

Summary:	The OSP Toolkit(tm)
Name:		osptoolkit
Version:	4.24.4
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://www.transnexus.com
Source0:	https://github.com/TransNexus/osptoolkit/archive/refs/tags/%{oname}-%{oversion}.tar.gz?/OSPToolkit-%{version}.tar.gz
Source1:	Makefile
Patch0:		osptoolkit_3.4.2-1.diff
# error: non-floating-point argument in call to function '__builtin_isnan'
Patch1:		TK-4_13_0-20161107-glibc-2.23-isnan.patch
BuildRequires:	libtool
BuildRequires:	pkgconfig(libutf8proc)
BuildRequires:	pkgconfig(openssl)

%description
The OSP Toolkit is a complete development kit for software developers who want
to implement the client side of the European Telecommunication Standards
Institute's (ETSI) Open Settlement Protocol. The OSP Toolkit includes source
code written in ANSI C, test tools and extensive documentation on how to
implement OSP. A hosted OSP test server is freely available on the Internet for
all developers to test their OSP implementation.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The OSP Toolkit(tm) shared library
Group:		System/Libraries

%description -n %{libname}
The OSP Toolkit is a complete development kit for software developers who want
to implement the client side of the European Telecommunication Standards
Institute's (ETSI) Open Settlement Protocol. The OSP Toolkit includes source
code written in ANSI C, test tools and extensive documentation on how to
implement OSP. A hosted OSP test server is freely available on the Internet for
all developers to test their OSP implementation.

%files -n %{libname}
%doc LICENSE.txt README.txt RELNOTES.txt debian/osptoolkit.txt
%{_libdir}/libosptk.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libosp library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	osp-devel = %{EVRD}

%description -n %{devname}
The OSP Toolkit is a complete development kit for software developers who want
to implement the client side of the European Telecommunication Standards
Institute's (ETSI) Open Settlement Protocol. The OSP Toolkit includes source
code written in ANSI C, test tools and extensive documentation on how to
implement OSP. A hosted OSP test server is freely available on the Internet for
all developers to test their OSP implementation.

This package contains the static libosp library and its header files.

%files -n %{devname}
%doc test/nonblocking.[ch]
%{_includedir}/osp
%{_libdir}/libosptk.so
%{_libdir}/pkgconfig/libosptk.pc

#----------------------------------------------------------------------------

%package -n osp-tools
Summary:	Various utilities for the libosptk library
Group:		System/Servers

%description -n osp-tools
This package contains various utilities utilizing the libosptk library.

%files -n osp-tools
%doc bin/enroll.sh bin/test.cfg bin/openssl.cnf bin/.rnd
%{_bindir}/osp-enroll
%{_bindir}/osp-test_app

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{oname}-%{oversion}

pushd debian
iconv -f iso8859-1 -t utf-8 osptoolkit.txt > osptoolkit.txt.conv && mv -f osptoolkit.txt.conv osptoolkit.txt
popd

install -m0644 %{SOURCE1} Makefile

# lib64 fix
find -name "Makefile" | xargs perl -pi -e "s|/usr/lib|%{_libdir}|g"
find -name "Makefile" | xargs perl -pi -e "s|/lib\b|/%{_lib}|g"
perl -pi -e "s|/usr/lib|%{_libdir}|g" bin/enroll.sh

%build
%make build VERSION="%{version}" MAJOR="%{major}" ADDFLAGS="%{optflags}" LDFLAGS="%{ldflags}"
%make enroll VERSION="%{version}" MAJOR="%{major}" ADDFLAGS="%{optflags}" LDFLAGS="%{ldflags}"
%make test VERSION="%{version}" MAJOR="%{major}" ADDFLAGS="%{optflags} -Dtrue=1 -Dfalse=0" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}/pkgconfig
install -d %{buildroot}%{_includedir}/osp

libtool --mode=install install -m0755 lib/libosptk.la %{buildroot}%{_libdir}/libosptk.la
libtool --mode=install install -m0755 bin/test_app %{buildroot}%{_bindir}/osp-test_app
libtool --mode=install install -m0755 bin/enroll %{buildroot}%{_bindir}/osp-enroll

#libtool --mode=install install -m0755 bin/.libs/enroll %{buildroot}%{_bindir}/osp-enroll
#libtool --mode=install install -m0755 bin/.libs/test_app %{buildroot}%{_bindir}/osp-test_app

install -m0644 include/osp/*.h %{buildroot}%{_includedir}/osp/
install -m0644 debian/libosptk*.pc %{buildroot}%{_libdir}/pkgconfig/libosptk.pc

rm -f %{buildroot}%{_libdir}/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3894 |21cr|ossp-1.3.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OSS (Open Sound System) Proxy Daemon
Name:		ossp
Version:	1.3.2
Release:	8
License:	GPLv2+
Group:		Sound
Url:		http://sourceforge.net/projects/osspd/
Source0:	%{name}-%{version}.tar.gz
Patch0:		0001-Add-a-very-simple-systemd-unit.patch
Patch1:		0002-udev-Rename-udev-rules-and-add-uaccess-udev-acl-tags.patch
Patch2:		ossp-1.3.2-fix-build-lrt.patch
Patch3:		ossp-1.3.2-sfmt.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libpulse)
Requires(post,preun): rpm-helper >= 0.24.1
Recommends:	pulseaudio

%description
OSS Proxy Daemon is Linux userland OSS sound device (/dev/[a]dsp
and /dev/mixer) implementation using CUSE. Currently it supports
forwarding OSS sound streams to PulseAudio and ALSA.

%files
%doc README
%{_sbindir}/ossp*
/lib/udev/rules.d/70-osscuse.rules
%{_sysconfdir}/modules-load.d/%{name}.conf
/lib/systemd/system/osspd.service
/lib/systemd/system/sound.target.wants/osspd.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

sed -i 's,/usr/local,%{_prefix},' Makefile
sed -i 's,/etc/udev/rules.d,/lib/udev/rules.d,' Makefile

%build
%setup_compile_flags
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
echo "cuse" >%{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

%post
if [ "$1" -eq "1" ] ; then
    # Initial installation
    modprobe cuse
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3895 |21cr|ots-0.5.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api		1
%define major	0
%define libname		%mklibname %{name} %{api} %{major}
%define develname 	%mklibname ots -d

Name:		ots
Summary:	A text summarizer
Version:	0.5.0
Release:	14
License:	GPLv2+
Group:		System/Libraries
URL:		http://libots.sourceforge.net/
Source0:	%{name}-%{version}.tar.gz
Patch0:		ots-0.5.0-fix-underlinking.patch
Patch1:		ots-0.5.0-fix-installation.patch
Patch2:		ots-0.5.0-automake-1.13.patch
Patch3:		ots-0.5.0-fix-build.patch

BuildRequires:	popt-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
The open text summarizer is an open source tool for summarizing texts.
The program reads a text and decides which sentences are important and
which are not.
The program can either print the summarized text in text format or in
HTML form where the important sentences are highlighted in red.
 
The program is multi lingual and work with UTF-8 code;  At the moment
only English Hebrew are supported.
 
The ots command line tool is an example and a debug tool for the libary.
You can bind to the library from your program.

%package -n %{libname}
Summary:	Libraries for ots
Group:		System/Libraries

%description -n %{libname}
This package provides the libraries for using ots.

%package -n %{develname}
Summary:	Libraries and include files for developing with libots
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package provides the necessary development libraries and include
files to allow you to develop with libots.

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
touch gtk-doc.make
autoreconf -fi
%configure \
	--disable-gtk-doc \
	--disable-static

%make -j1

%install
%makeinstall_std

# clean out unused files
rm -rf %{buildroot}%{_datadir}/doc/libots/html/*

%files
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_bindir}/%{name}
%dir %{_datadir}/ots
%{_datadir}/ots/*

%files -n %{libname}
%{_libdir}/libots-%{api}.so.%{major}*

%files -n %{develname}
%{_libdir}/libots-%{api}.so
%dir %{_includedir}/libots-%{api}
%dir %{_includedir}/libots-%{api}/ots
%{_includedir}/libots-%{api}/ots/*.h
%{_libdir}/pkgconfig/libots-%{api}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3896 |21cr|otter-browser-1.0.81-440.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname otter
%define weekrel  440

Name:		otter-browser
Summary:	Web browser controlled by the user, not vice-versa
License:	GPLv3
Version:	1.0.81
Release:	%{weekrel}.3
Group:		Networking/WWW 
Url:		http://otter-browser.org/
Source0:	https://downloads.sourceforge.net/project/otter-browser/otter-browser-%{version}/%{name}-%{version}-dev%{weekrel}.tar.bz2

BuildRequires:  cmake >= 2.8.10.2
BuildRequires:  pkgconfig(Qt5Core) >= 5.6
BuildRequires:  pkgconfig(Qt5Network) >= 5.6
BuildRequires:  pkgconfig(Qt5PrintSupport) >= 5.6
BuildRequires:  pkgconfig(Qt5Sensors) >= 5.6
BuildRequires:  pkgconfig(Qt5Sql) >= 5.6
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.6
BuildRequires:  pkgconfig(Qt5WebKit) >= 5.6
BuildRequires:  pkgconfig(Qt5WebKitWidgets) >= 5.6
BuildRequires:  pkgconfig(Qt5Script) >= 5.6
BuildRequires:  pkgconfig(Qt5Svg) >= 5.6
BuildRequires:  pkgconfig(Qt5Multimedia) >= 5.6
BuildRequires:  pkgconfig(Qt5WebEngineWidgets) >= 5.6
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Concurrent) >= 5.6
BuildRequires:	pkgconfig(Qt5DBus) >= 5.6
BuildRequires:	pkgconfig(Qt5WebEngine) >= 5.6
BuildRequires:	pkgconfig(Qt5XmlPatterns) >= 5.6
BuildRequires:	kf5sonnet-devel
BuildRequires:	pkgconfig(hunspell) >= 1.3.0
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils

%description
Project aiming to recreate the best aspects of 
the classic Opera (12.x) UI using Qt5.


%files -f %{name}.lang
%doc CHANGELOG *.md COPYING TODO 
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/otter-browser.1.*
#--------------------------------------

%prep
%setup -qn %{name}-%{version}-dev%{weekrel}

%build
%cmake_qt5
%make


%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_appdatadir}
cp -pr packaging/%{name}.appdata.xml \
  %{buildroot}%{_appdatadir}/%{name}.appdata.xml
rm -fr %{buildroot}%{_datadir}/%{name}/locale/otter-browser{_jbo.qm,_yue.qm}

%{find_lang} %{name} --with-qt


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3897 |21cr|outguess-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Universal steganographic tool
Name:		outguess
Version:	0.2
Release:	1
License:	BSD
Group:		File tools
Url:		http://www.outguess.org/
Source0:	http://www.outguess.org/%{name}-%{version}.tar.gz

%description
OutGuess is a universal steganographic tool that allows the insertion
of hidden information into the redundant bits of data sources. The
nature of the data source is irrelevant to the core of OutGuess. The
program relies on data specific handlers that will extract redundant
bits and write them back after modification. In this version the PNM
and JPEG image formats are supported. In the next paragraphs, images
will be used as concrete example of data objects, though OutGuess can
use any kind of data, as long as a handler is provided.

%files
%doc README ChangeLog STIRMARK-README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
%configure
%make

%install
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm 0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3898 |21cr|outlining-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 45601
# category Package
# catalog-ctan /macros/latex/contrib/outlining
# catalog-date 2017-10-27 05:58:14 +0200
# catalog-license LPPL1.3
# catalog-version 0.1
Name:		outlining
Version:	0.1
Release:	1
Summary:	Create outlines for scientific documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/outlining
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outlining.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outlining.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outlining.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Every scientifc document requires outlining before it is
written. This package adds simple macros for your LaTeX
document.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/outlining/
%{_texmfdistdir}/tex/latex/outlining/
%{_texmfdistdir}/source/latex/outlining/

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source doc %{buildroot}%{_texmfdistdir}


%changelog
* Tue Jan 03 2012 Paulo Andrade <pcpa@mandriva.com.br> 2.7-2
+ Revision: 45601
- Rebuild to reduce used resources

* Sat Nov 05 2011 Paulo Andrade <pcpa@mandriva.com.br> 2.7-1
+ Revision: 45601
- texlive-options
- texlive-options
- texlive-options
- texlive-options
- texlive-options

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3899 |21cr|outwiker-1.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Create notes and represent them as a tree of HTML pages
Name:           outwiker
Version:        1.8.0
Release:        3
License:        GPLv3
Group:          Office
URL:            http://jenyay.net/Soft/Outwiker
Source0:        https://github.com/Jenyay/outwiker/archive/%{name}-stable_%{version}.tar.gz
Requires:       python
Requires:       mimetex
Requires:       wxPython
Requires:       python-webkitgtk
Requires:       python-pillow

BuildArch:      noarch

%description
OutWiker is a program to create and store notes, representing them in a tree
form. It supports rich text formatting, adding images, math formulae (using
latex notation), adding tags and represents the notes as HTML pages similar
to WIKI format.

%prep
%setup -qn %{name}-stable_%{version}

%build

%install
make DESTDIR=%{buildroot} install

cd %{buildroot}/usr/share/man/man1
gunzip *.gz
cd %{buildroot}/usr/share/man/ru/man1
gunzip *.gz

%files
%doc copyright README README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_mandir}/ru/man1/%{name}*
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}*.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3900 |21cr|ovirt-guest-agent-1.0.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _python_bytecompile_build 0
%global _moduledir /%{_lib}/security

Summary:	The oVirt Guest Agent
Name:		ovirt-guest-agent
Version:	1.0.16
Release:	2
License:	ASL 2.0
Group:		Emulators
Url:		http://wiki.ovirt.org/wiki/Category:Ovirt_guest_agent
Source0:	https://github.com/oVirt/ovirt-guest-agent/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	ovirtagent.sysusers.conf
Patch0:		ovirt-guest-agent-1.0.16-service-chown.patch
Patch1:		ovirt-guest-agent-python3.patch
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(systemd)
BuildRequires:	python3-pycodestyle

%description
This is the oVirt management agent running inside the guest. The agent
interfaces with the oVirt manager, supplying heart-beat info as well as
run-time data from within the guest itself. The agent also accepts
control commands to be run executed within the OS (like: shutdown and
restart).

#----------------------------------------------------------------------------

# The ovirt-guest-agent main package is empty.
# This has been done to avoid content duplication. The common package provides
# the content for the main package to work around the issue with the other
# subpackages. You cannot have a noarch main package and arch specific
# subpackages.
%package common
Summary:	Commonly used files of the oVirt Guest Agent
Requires:	python-dbus
Requires:	usermode
Requires:	usermode-consoleonly
Provides:	%{name} = %{EVRD}
Requires(pre):	/bin/systemd-sysusers
Requires(post,preun,postun):	systemd
Requires(post,postun):	udev
BuildArch:	noarch

%description common
This is the oVirt management agent running inside the guest. The agent
interfaces with the oVirt manager, supplying heart-beat info as well as
run-time data from within the guest itself. The agent also accepts
control commands to be run executed within the OS (like: shutdown and
restart).

%files common
%doc AUTHORS COPYING NEWS README
%dir %attr (755,ovirtagent,ovirtagent) %{_localstatedir}/log/ovirt-guest-agent
%dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent
%dir %attr (755,root,root) %{_sysconfdir}/ovirt-guest-agent/hooks.d
%dir %attr (755,root,root) %{_sysconfdir}/ovirt-guest-agent/hooks.d/before_migration
%dir %attr (755,root,root) %{_sysconfdir}/ovirt-guest-agent/hooks.d/after_migration
%dir %attr (755,root,root) %{_sysconfdir}/ovirt-guest-agent/hooks.d/before_hibernation
%dir %attr (755,root,root) %{_sysconfdir}/ovirt-guest-agent/hooks.d/after_hibernation
%dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts
%dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts/hooks/
%dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts/hooks/defaults
%dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts/hooks/before_migration
%dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts/hooks/after_migration
%dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts/hooks/before_hibernation
%dir %attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts/hooks/after_hibernation
%config(noreplace) %{_sysconfdir}/ovirt-guest-agent.conf
%config(noreplace) %{_sysconfdir}/pam.d/ovirt-locksession
%config(noreplace) %{_sysconfdir}/pam.d/ovirt-shutdown
%config(noreplace) %{_sysconfdir}/pam.d/ovirt-hibernate
%config(noreplace) %{_sysconfdir}/pam.d/ovirt-logout
%config(noreplace) %{_sysconfdir}/pam.d/ovirt-flush-caches
%config(noreplace) %{_sysconfdir}/pam.d/ovirt-container-list
%config(noreplace) %attr (644,root,root) %{_udevrulesdir}/55-ovirt-guest-agent.rules
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.ovirt.vdsm.Credentials.conf
%config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-locksession
%config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-shutdown
%config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-hibernate
%config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-logout
%config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-container-list
%config(noreplace) %{_sysconfdir}/security/console.apps/ovirt-flush-caches
%config(noreplace) %{_datadir}/ovirt-guest-agent/scripts/hooks/before_hibernation/55_flush-caches
%config(noreplace) %{_datadir}/ovirt-guest-agent/scripts/hooks/before_migration/55_flush-caches
%config(noreplace) %{_sysconfdir}/ovirt-guest-agent/hooks.d/before_hibernation/55_flush-caches
%config(noreplace) %{_sysconfdir}/ovirt-guest-agent/hooks.d/before_migration/55_flush-caches
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/ovirt-guest-agent.py*
%{_datadir}/ovirt-guest-agent/scripts/hooks/defaults/55-flush-caches
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts/hooks/defaults/55-flush-caches.consolehelper
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/scripts/hooks/defaults/flush-caches
%attr (644,root,root) %{_datadir}/ovirt-guest-agent/default.conf
%attr (644,root,root) %{_datadir}/ovirt-guest-agent/default-logger.conf
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/diskmapper
%{_datadir}/ovirt-guest-agent/CredServer.py*
%{_datadir}/ovirt-guest-agent/GuestAgentLinux2.py*
%{_datadir}/ovirt-guest-agent/OVirtAgentLogic.py*
%{_datadir}/ovirt-guest-agent/VirtIoChannel.py*
%{_datadir}/ovirt-guest-agent/timezone.py*
%{_datadir}/ovirt-guest-agent/hooks.py*
%{_datadir}/ovirt-guest-agent/ovirt-locksession
%{_datadir}/ovirt-guest-agent/ovirt-shutdown
%{_datadir}/ovirt-guest-agent/ovirt-hibernate
%{_datadir}/ovirt-guest-agent/ovirt-logout
%{_datadir}/ovirt-guest-agent/ovirt-container-list
%{_datadir}/ovirt-guest-agent/ovirt-flush-caches
%{_datadir}/ovirt-guest-agent/__pycache__
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/ovirt-osinfo
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/LockActiveSession.py*
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/LogoutActiveUser.py*
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/hibernate
%attr (755,root,root) %{_datadir}/ovirt-guest-agent/container-list
%attr (644,ovirtagent,ovirtagent) %{_localstatedir}/log/ovirt-guest-agent/ovirt-guest-agent.log
%{_unitdir}/ovirt-guest-agent.service
%{_sysusersdir}/ovirtagent.conf

%pre common
%sysusers_create_package ovirtagent %{SOURCE1}

%post common
udevadm trigger --subsystem-match="virtio-ports" --attr-match="name=com.redhat.rhevm.vdsm"
%systemd_post ovirt-guest-agent.service
systemctl enable ovirt-guest-agent.service ||:

%preun common
if [ "$1" -eq 0 ]
then
    %systemd_preun ovirt-guest-agent.service

    # Send an "uninstalled" notification to vdsm.
    VIRTIO=`grep "^device" %{_sysconfdir}/ovirt-guest-agent.conf | awk '{ print $3; }'`
    if [ -w $VIRTIO ]
    then
        # Non blocking uninstalled notification
        echo -e '{"__name__": "uninstalled"}\n' | dd of=$VIRTIO \
            oflag=nonblock status=noxfer conv=nocreat 1>& /dev/null || :
    fi
fi

%postun common
if [ "$1" -eq 0 ]
then
    # Let udev clear access rights
    udevadm trigger --subsystem-match="virtio-ports" --attr-match="name=com.redhat.rhevm.vdsm"
fi
%systemd_postun_with_restart ovirt-guest-agent.service

#----------------------------------------------------------------------------

%package pam-module
Summary:	PAM module for the oVirt Guest Agent
Requires:	%{name}-common = %{EVRD}
Requires:	pam

%description pam-module
The oVirt PAM module provides the functionality necessary to use the
oVirt automatic log-in system.

%files pam-module
%{_moduledir}/pam_ovirt_cred.so

#----------------------------------------------------------------------------

%package gdm-plugin
Summary:	Files for the GDM plug-in of the oVirt Guest Agent
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-pam-module = %{EVRD}
Requires:	gdm
Requires:	gnome-shell
BuildArch:	noarch

%description gdm-plugin
Files required for the GDM extension to use the oVirt automatic log-in
system

%files gdm-plugin
%config(noreplace) %{_sysconfdir}/pam.d/gdm-ovirtcred

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure \
	--disable-static \
	--enable-securedir=%{_moduledir} \
	--includedir=%{_includedir}/security \
	--without-kdm \
	--without-gdm \
	--with-pam-prefix=%{_sysconfdir}

%make

%install
%makeinstall_std
cp gdm-plugin/gdm-ovirtcred.pam %{buildroot}%{_sysconfdir}/pam.d/gdm-ovirtcred

mkdir -p %{buildroot}%{_udevrulesdir}
mv %{buildroot}%{_sysconfdir}/udev/rules.d/55-ovirt-guest-agent.rules %{buildroot}%{_udevrulesdir}/55-ovirt-guest-agent.rules
touch %{buildroot}%{_localstatedir}/log/ovirt-guest-agent/ovirt-guest-agent.log

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/ovirtagent.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3901 |21cr|owncloud-10.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global	__requires_exclude /usr/bin/php
%else
%define	_requires_exceptions /usr/bin/php
%endif

Summary:	Open personal cloud server
Name:		owncloud
Version:	10.11.0
Release:	1
Epoch:		1
License:	AGPLv3
Group:		Archiving/Backup
Url:			https://owncloud.org/
Source0:	https://download.owncloud.org/community/%{name}-%{version}.tar.bz2
Source2:	apache.example.conf
Source100:	%{name}.rpmlintrc
# apache
Requires:	config(apache-base)
Requires:	config(apache-mod_php)
# perl
Requires:	perl(Locale::PO)
Requires:	perl(Cwd) 
Requires:	perl(Data::Dumper) 
Requires:	perl(File::Basename) 
Requires:	perl(File::Path) 
Requires:	perl(Locale::PO)
# php
Requires:	php-cli >= 4.1
Requires:	config(php-zip)
Requires:	config(php-mbstring)
Requires:	config(php-gd)
Requires:	config(php-curl)
Requires:	config(php-iconv)
Requires:	config(php-sqlite3)
Requires:	config(php-pdo_sqlite)
#Requires:	config(php-apacheaccessor) - does not build on php7
Requires:	config(php-pgsql)
Requires:	config(php-ldap)
Requires:	config(php-intl)
Requires:	php-apcu
#  drop cacheing because of conflicts,Sflo
# Suggests: config(php-xcache)
Requires:	config(php-mcrypt)
Requires:	mariadb
Requires:	samba-client
# files preview
Requires:	ffmpeg
Requires:	libreoffice
BuildArch:		noarch

%description
A personal cloud server which runs on you personal server and enables
accessing your data from everywhere and sharing with other people.

%files
%doc AUTHORS CHANGELOG.md COPYING README.md
%attr(-,apache,apache) %{_datadir}/%{name}
# Not sure if this is useful...
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/.htaccess
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/apache.conf.example
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/config.sample.php
%{_sysconfdir}/pki/%{name}/*.pem


%post
ln -s %{_sysconfdir}/httpd/conf/webapps.d %{_datadir}/%{name}/config

%postun
rm -Rf %{_datadir}/%{name}/config

#--------------------------------------------------------------------

%prep
%setup -qn %{name}


%build
# Nothing to do: pre-built stuff


%install
mkdir -p %{buildroot}%{_datadir}/%{name}
(
cd %{buildroot}%{_datadir}
tar xjf %{SOURCE0}
)

# Clean zero lenght
find %{buildroot} -size 0 -delete

# Move config to /etc
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
mv %{buildroot}%{_datadir}/%{name}/config/config.sample.php %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
# Not sure if this is useful...
mv %{buildroot}%{_datadir}/%{name}/.htaccess %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d

# Install apache config file
install -m 644 %{SOURCE2}  %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/apache.conf.example

# Fix some attr
find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 0644 {} \;
find %{buildroot}%{_datadir}/%{name} -type d -exec chmod 0755 {} \;

# Install pem cert.
mkdir -p %{buildroot}%{_sysconfdir}/pki/%{name}
find . %{buildroot} -name "*.pem" -exec mv --target-directory=%{buildroot}%{_sysconfdir}/pki/%{name} {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3902 |21cr|owncloud-client-4.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname client
# See: https://download.owncloud.com/desktop/ownCloud/stable
%define	buildnum 11670
# We lack some deps and there is no docs dir in the tarball
%define	with_docs	0

%define	with_nautilus	0

%define	major 0
%define	libname %mklibname owncloudsync %{major}
%define	libocsync %mklibname ocsync %{major}
%define	libres %mklibname owncloudresources %{major}
%define	devname %mklibname owncloudsync -d

Summary:	The ownCloud Client
Name:			owncloud-client
Version:		4.2.0
Release:		1
License:		GPLv2+
Group:			Archiving/Backup
Url:				https://owncloud.org
Source0:		https://github.com/owncloud/client/archive/refs/tags/%{oname}-%{version}.tar.gz
BuildRequires:	appstream
BuildRequires:	cmake >= 3.16
BuildRequires:	extra-cmake-modules >= 5.79.0
BuildRequires:	kde5-macros
BuildRequires:	git
BuildRequires:	python3-sphinx
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-macros
BuildRequires:	shared-mime-info
%if %{with_docs}
# Not provided yet in Rosa
#https://gitlab.com/antora/antora
#BuildRequires:	antora
#BuildRequires:	nodejs
#BuildRequires:	texlive-latex.bin
%endif
BuildRequires:	iniparser-devel >= 3.1
BuildRequires:	kf5auth-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5coreaddons-devel >= 5.92.0
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel >= 5.92.0
BuildRequires:	kf5service-devel >= 5.92.0
BuildRequires:	kf5solid-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	pkgconfig(check) >= 0.9.5
BuildRequires:	pkgconfig(cloudproviders) >= 0.3
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(neon) >= 0.29.0
BuildRequires:	pkgconfig(openssl) >= 1.0.0
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(sqlite3) >= 3.9.0
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)
Requires:		%{libname} = %{EVRD}
%if %{with_nautilus}
Requires:	typelib(Caja)
Requires:	typelib(Nemo)
%endif
%rename		%{_lib}ocsync
%rename		ocsync

%description
The ownCloud Desktop Client is a tool to synchronize files from ownCloud
Server with your computer.

%files
%doc COPYING README.md
%if %{with_docs}
#doc build/doc/latex/ownCloudClientManual.pdf
%doc build/doc/html/unthemed/*
%endif
%config(noreplace) %{_sysconfdir}/ownCloud/sync-exclude.lst
%{_bindir}/owncloud
%{_bindir}/owncloudcmd
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/applications/owncloud.desktop
%{_datadir}/cloud-providers/com.owncloud.desktopclient.ini
%if %{with_nautilus}
%{_datadir}/caja-python/extensions/syncstate-ownCloud.py
%{_datadir}/caja-python/extensions/__pycache__/*.pyc
%{_datadir}/nemo-python/extensions/syncstate-ownCloud.py
%{_datadir}/nemo-python/extensions/__pycache__/*.pyc
%{_datadir}/nautilus-python/extensions/syncstate-ownCloud.py
%{_datadir}/nautilus-python/extensions/__pycache__/*.pyc
%endif
%{_datadir}/kservices5/ownclouddolphinactionplugin.desktop
%{_datadir}/mime/packages/owncloud.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for ownCloud client
Group:		System/Libraries
Requires:	%{libocsync} = %{EVRD}
Requires:	%{libres} = %{EVRD}
Conflicts:		%{_lib}owncloudsync1 < %{EVRD}
Conflicts:		%{libname} < %{EVRD}

%description -n %{libname}
Shared library for ownCloud client.

%files -n %{libname}
%doc COPYING *.md
%{_libdir}/libowncloudsync.so.%{major}
%{_libdir}/libowncloudsync.so.%{version}
%{_libdir}/libownclouddolphinpluginhelper.so
%{_libdir}/qt5/plugins/*.so
%{_libdir}/qt5/plugins/kf5/overlayicon/*.so

#----------------------------------------------------------------------------

%package -n %{libocsync}
Summary:	Shared library for ownCloud client
Group:		System/Libraries
Conflicts:		%{_lib}owncloudsync1 < %{EVRD}

%description -n %{libocsync}
Shared library for ownCloud client.

%files -n %{libocsync}
%doc COPYING *.md
%{_libdir}/libowncloud_csync.so.%{major}
%{_libdir}/libowncloud_csync.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libres}
Summary:	Shared library for ownCloud client
Group:		System/Libraries
Conflicts:		%{libname} < %{EVRD}

%description -n %{libres}
Shared library for ownCloud client.

%files -n %{libres}
%doc COPYING *.md
%{_libdir}/libowncloudResources.so.%{major}
%{_libdir}/libowncloudResources.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for ownCloud client
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc COPYING *.md
%dir %{_includedir}/ownCloud
%dir %{_includedir}/ownCloud/common
%dir %{_includedir}/ownCloud/libsync
%{_includedir}/ownCloud/common/*.h
%{_includedir}/ownCloud/libsync/*.h
%{_libdir}/libowncloudsync.so
%{_libdir}/libowncloud_csync.so
%{_libdir}/libowncloudResources.so
%{_libdir}/cmake/ownCloud/ownCloudConfig*.cmake

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
%cmake_kde5	-DINOTIFY_LIBRARY="%{_libdir}/libc.so" \
%if %{with_docs}
	-DBUILD_DOCS="ON" \
%else
	-DBUILD_DOCS="OFF" \
%endif
	-DBUILD_TESTING="OFF" \
	-DCMAKE_BUILD_TYPE=Release \
%if %{with_nautilus}
	-DBUILD_SHELL_INTEGRATION_NAUTILUS="ON" \
%else
	-DBUILD_SHELL_INTEGRATION_NAUTILUS="OFF" \
%endif
	-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir}/%{oname}    

%make


%install
%makeinstall_std -C build

# We use our macro to pick up docs
rm -rf %{buildroot}%{_docdir}/client/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3903 |21cr|ozon-icon-theme-0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme	Ozon

Summary:	Default icon theme for OzonOS
Name:		ozon-icon-theme
Version:	0.3
Release:	5

License:	GPLv3
Group:		Graphical desktop/Other
URL:		https://github.com/ozonos/ozon-icon-theme
Source0:	%{name}-%{version}.tar.gz

BuildArch:  noarch

%description
%{theme} is the official icon theme for Ozon OS.


%prep
%setup -q

%build

%install
%makeinstall_std


%files
%defattr(-,root,root)
%{_datadir}/icons/%{theme}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3904 |21cr|ozon-shell-theme-0.3-3.20150625git3c906a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme	Ozon
%global daterev 20150625git3c906a

Summary:	%{theme} theme for Gnome Shell
Name:		ozon-shell-theme
Version:	0.3
Release:	3.%{?daterev}

License:	GPLv3
Group:		Graphical desktop/Other
URL:		http://ozonos.github.io
Source0:	%{name}-%{version}-%{?daterev}.tar.xz
Patch0:		ozon-shell-theme-0.3-cantarell.patch

Requires:	gnome-shell >= 3.12.0

BuildArch:	noarch

%description
%{theme} is the official Gnome Shell theme for Ozon OS.


%prep
%setup -q
%apply_patches

%build

%install
install -d -m755 %{buildroot}%{_datadir}/themes/%{theme}
cp -pr gnome-shell %{buildroot}%{_datadir}/themes/%{theme}


%files
%defattr(-,root,root)
%doc LICENSE README.md
%{_datadir}/themes/%{theme}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3905 |21cr|ozymandns-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ozymandns
Version:	0.1
Release:	6
Summary:	DNS Tunnel
License:	Distributable
Group:		Networking/Other
URL:		http://www.doxpara.com/
Source:     http://www.doxpara.com/%{name}_src_%{version}.tgz

%description
This is a DNS Tunnel client and server.

%prep
%setup -q -c

%build
gcc %{optflags} glance.c -o glance

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 glance %{buildroot}%{_bindir}
install -m 755 aska.pl %{buildroot}%{_bindir}
install -m 755 geta.pl %{buildroot}%{_bindir}
install -m 755 nomde.pl %{buildroot}%{_bindir}
install -m 755 droute.pl %{buildroot}%{_bindir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3906 |21cr|p0f-3.09b-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       p0f
Version:    3.09b
Release:    3
Summary:    Passive OS fingerprinting tool
License:    GPL
Group:      Networking/Other
URL:        http://lcamtuf.coredump.cx/p0f.shtml
Source0:    http://lcamtuf.coredump.cx/p0f/%{name}-%{version}.tgz
Source2:    p0f.sysconfig
BuildRequires: pcap-devel

%description
p0f performs passive OS fingerprinting technique bases on information coming
from remote host when it establishes connection to our system. Captured
packets contains enough information to determine OS - and, unlike
active scanners (nmap, queSO) - it is done without sending anything to 
this host.

%prep
%setup -q

%build
%make CFLAGS='%{optflags} -DFP_FILE="%{_sysconfdir}/%{name}/p0f.fp"'

%install
install -D -m 755 p0f %{buildroot}%{_sbindir}/p0f
install -D -m 644 p0f.fp %{buildroot}%{_sysconfdir}/%{name}/%{name}.fp
install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/p0f

%files
%doc docs/*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/p0f.fp
%config(noreplace) %{_sysconfdir}/sysconfig/p0f
%{_sbindir}/p0f

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3907 |21cr|p910nd-0.93-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tiny non-spooling printer daemon
Name:		p910nd
Version:	0.93
Release:	4
License:	GPL
Group:		System/Servers
URL:		http://etherboot.sourceforge.net/p910nd
Source0:	http://etherboot.sourceforge.net/p910nd/%{name}-%{version}.tar.bz2
Source1:	%{name}.init
Requires(pre,post):		rpm-helper
Requires:	tcp_wrappers
BuildRequires:	tcp_wrappers-devel

%description
Tiny non-spooling printer daemon for Linux hosts. Accepts data
over a TCP network connection from a spooling host. Useful on
diskless X terminals with local printer.

%prep
%setup -q

cp %{SOURCE1} %{name}.init

%build

gcc %{optflags} %{ldflags} -DUSE_LIBWRAP -o p910nd p910nd.c -lwrap

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_mandir}/man8

install -m755 %{name}.init %{buildroot}%{_initrddir}/%{name}
install -m755 %{name} %{buildroot}%{_sbindir}/
install -m755 *.pl %{buildroot}%{_datadir}/%{name}/
install -m644 %{name}.8 %{buildroot}%{_mandir}/man8/

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-, root, root)
%config(noreplace) %attr(0755,root,root) %{_initrddir}/%{name}
%attr(0644,root,root) %{_mandir}/man8/%{name}.8*
%attr(0755,root,root) %{_datadir}/%{name}/*.pl
%attr(0755,root,root) %{_sbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3908 |21cr|pacemaker-2.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
## User and group to use for nonprivileged services
%global uname hacluster
%global gname haclient

## Nagios source control identifiers
%global nagios_name nagios-agents-metadata
%global nagios_hash 105ab8a7b2c16b9a29cf1c1596b80136eeef332b

### the statement effectively means no RPM-native byte-compiling will occur at
### all, so distro-dependent tricks for Python-specific packages to be applied
%global __os_install_post %(echo '%{__os_install_post}' | {
                            sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g'; })

%define cib_major 27
%define crmcluster_major 29
%define crmcommon_major 34
%define crmservice_major 28
%define lrmd_major 28
%define pe_rules_major 26
%define pe_status_major 28
%define stonithd_major 26
%define major 1
%define libcib %mklibname cib %{cib_major}
%define libcrmcluster %mklibname crmcluster %{crmcluster_major}
%define libcrmcommon %mklibname crmcommon %{crmcommon_major}
%define libcrmservice %mklibname crmservice %{crmservice_major}
%define liblrmd %mklibname lrmd %{lrmd_major}
%define libpe_rules %mklibname pe_rules %{pe_rules_major}
%define libpe_status %mklibname pe_status %{pe_status_major}
%define libstonithd %mklibname stonithd %{stonithd_major}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%bcond_with nagios

Summary:	Scalable High-Availability cluster resource manager
Name:		pacemaker
Version:	2.0.4
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		System/Servers
Source0:	https://github.com/ClusterLabs/pacemaker/archive/%{name}-Pacemaker-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/ClusterLabs/nagios-agents-metadata/archive/%{nagios_hash}/nagios-agents-metadata-%{nagios_hash}.tar.gz
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
BuildRequires:	help2man
BuildRequires:	bzip2-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(corosync)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libqb)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(uuid)
Requires:	%{name}-cli = %{EVRD}
Requires:	%{name}-schemas = %{EVRD}
Requires:	corosync
Requires:	resource-agents
Requires(pre):	%{name}-cli = %{EVRD}

%description
Pacemaker is an advanced, scalable High-Availability cluster resource
manager.

It supports more than 16 node clusters with significant capabilities
for managing resources and dependencies.

It will run scripts at initialization, when machines go up or down,
when related resources fail and can be configured to periodically check
resource health.

%files
%license licenses/GPLv2
%doc %{_datadir}/doc/pacemaker/*
%config(noreplace) %{_sysconfdir}/sysconfig/pacemaker
%{_datadir}/pacemaker/alerts
%{_libexecdir}/pacemaker/*
%exclude %{_libexecdir}/pacemaker/cts-log-watcher
%exclude %{_libexecdir}/pacemaker/cts-support
%{_mandir}/man7/pacemaker-controld.*
%{_mandir}/man7/pacemaker-schedulerd.*
%{_mandir}/man7/pacemaker-fenced.*
%{_mandir}/man7/ocf_pacemaker_controld.*
%{_mandir}/man7/ocf_pacemaker_remote.*
%{_mandir}/man8/crm_attribute.*
%{_mandir}/man8/crm_master.*
%{_mandir}/man8/pacemakerd.*
%{_prefix}/lib/ocf/resource.d/pacemaker/controld
%{_prefix}/lib/ocf/resource.d/pacemaker/remote
%{_sbindir}/crm_attribute
%{_sbindir}/crm_master
%{_sbindir}/pacemakerd
%{_unitdir}/pacemaker.service
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker/cib
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker/pengine

%post
%systemd_post pacemaker.service

%preun
%systemd_preun pacemaker.service

%postun
%systemd_postun_with_restart pacemaker.service

#----------------------------------------------------------------------------

%package cli
Summary:	Command line tools for controlling Pacemaker clusters
Group:		System/Servers
Recommends:	%{name} = %{EVRD}
Requires:	perl-TimeDate
Requires:	procps-ng
Requires:	psmisc
Requires(pre):	shadow-utils

%description cli
Pacemaker is an advanced, scalable High-Availability cluster resource
manager.

The %{name}-cli package contains command line tools that can be used
to query and control the cluster from machines that may, or may not,
be part of the cluster.

%files cli
%dir %attr(750,root,%{gname}) %{_sysconfdir}/pacemaker
%config(noreplace) %{_sysconfdir}/logrotate.d/pacemaker
%config(noreplace) %{_sysconfdir}/sysconfig/crm_mon
%{_datadir}/pacemaker/report.collector
%{_datadir}/pacemaker/report.common
%{_datadir}/snmp/mibs/PCMK-MIB.txt
%{_mandir}/man7/*
%exclude %{_mandir}/man7/pacemaker-controld.*
%exclude %{_mandir}/man7/pacemaker-schedulerd.*
%exclude %{_mandir}/man7/pacemaker-fenced.*
%exclude %{_mandir}/man7/ocf_pacemaker_controld.*
%exclude %{_mandir}/man7/ocf_pacemaker_o2cb.*
%exclude %{_mandir}/man7/ocf_pacemaker_remote.*
%{_mandir}/man8/*
%exclude %{_mandir}/man8/crm_attribute.*
%exclude %{_mandir}/man8/crm_master.*
%exclude %{_mandir}/man8/pacemakerd.*
%exclude %{_mandir}/man8/pacemaker-remoted.*
%{_prefix}/lib/ocf/resource.d/pacemaker
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/controld
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/o2cb
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/remote
%{_sbindir}/attrd_updater
%{_sbindir}/cibadmin
%{_sbindir}/crm_diff
%{_sbindir}/crm_error
%{_sbindir}/crm_failcount
%{_sbindir}/crm_mon
%{_sbindir}/crm_node
%{_sbindir}/crm_report
%{_sbindir}/crm_resource
%{_sbindir}/crm_rule
%{_sbindir}/crm_shadow
%{_sbindir}/crm_simulate
%{_sbindir}/crm_standby
%{_sbindir}/crm_ticket
%{_sbindir}/crm_verify
%{_sbindir}/crmadmin
%{_sbindir}/iso8601
%{_sbindir}/stonith_admin
%{_unitdir}/crm_mon.service
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker/blackbox
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker/cores
%dir %attr(770,%{uname},%{gname}) %{_var}/log/pacemaker
%dir %attr(770,%{uname},%{gname}) %{_var}/log/pacemaker/bundles

%pre cli
getent group %{gname} >/dev/null || groupadd -r %{gname} -g 189
getent passwd %{uname} >/dev/null || useradd -r -g %{gname} -u 189 -s /sbin/nologin -c "cluster user" %{uname}
exit 0

%post cli
%systemd_post crm_mon.service

%preun cli
%systemd_preun crm_mon.service

%postun cli
%systemd_postun_with_restart crm_mon.service

#----------------------------------------------------------------------------

%package cts
Summary:	Test framework for cluster-related technologies like Pacemaker
Group:		System/Servers
Requires:	procps-ng
Requires:	psmisc
Requires:	python3-systemd
BuildArch:	noarch

%description cts
Test framework for cluster-related technologies like Pacemaker.

%files cts
%{_datadir}/pacemaker/tests
%{_libexecdir}/pacemaker/cts-log-watcher
%{_libexecdir}/pacemaker/cts-support
%{python3_sitelib}/cts


#----------------------------------------------------------------------------

%package remote
Summary:	Pacemaker remote daemon for non-cluster nodes
Group:		System/Servers
Requires:	%{name}-cli = %{EVRD}
Requires:	resource-agents

%description remote
Pacemaker is an advanced, scalable High-Availability cluster resource
manager.

The %{name}-remote package contains the Pacemaker Remote daemon
which is capable of extending pacemaker functionality to remote
nodes not running the full corosync/cluster stack.

%files remote
%config(noreplace) %{_sysconfdir}/sysconfig/pacemaker
# state directory is shared between the subpackets
# let rpm take care of removing it once it isn't
# referenced anymore and empty
%ghost %dir %{_localstatedir}/lib/rpm-state/%{name}
%{_unitdir}/pacemaker_remote.service
%{_sbindir}/pacemaker-remoted
%{_sbindir}/pacemaker_remoted
%{_mandir}/man8/pacemaker-remoted.*

%pre remote
# Stop the service before anything is touched, and remember to restart
# it as one of the last actions (compared to using systemd_postun_with_restart,
# this avoids suicide when sbd is in use)
systemctl --quiet is-active pacemaker_remote
if [ $? -eq 0 ] ; then
    mkdir -p %{_localstatedir}/lib/rpm-state/%{name}
    touch %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
    systemctl stop pacemaker_remote >/dev/null 2>&1
else
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
fi

%post remote
%systemd_post pacemaker_remote.service

%preun remote
%systemd_preun pacemaker_remote.service

%postun remote
# This next line is a no-op, because we stopped the service earlier, but
# we leave it here because it allows us to revert to the standard behavior
# in the future if desired
%systemd_postun_with_restart pacemaker_remote.service
# Explicitly take care of removing the flag-file(s) upon final removal
if [ "$1" -eq 0 ] ; then
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
fi

%posttrans remote
if [ -e %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote ] ; then
    systemctl start pacemaker_remote >/dev/null 2>&1
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
fi

#----------------------------------------------------------------------------

%package schemas
Summary:	Schemas and upgrade stylesheets for Pacemaker
Group:		System/Servers
BuildArch:	noarch

%description schemas
Schemas and upgrade stylesheets for Pacemaker

Pacemaker is an advanced, scalable High-Availability cluster resource
manager.

%files schemas
%license licenses/GPLv2
%dir %{_datadir}/pacemaker
%{_datadir}/pacemaker/*.rng
%{_datadir}/pacemaker/*.xsl
%{_datadir}/pacemaker/api
%{_datadir}/pkgconfig/pacemaker-schemas.pc

#----------------------------------------------------------------------------

%package nagios-plugins-metadata
Summary:	Pacemaker Nagios Metadata
Group:		System/Servers
%if %{with nagios}
# NOTE below are the plugins this metadata uses
Requires:	nagios-plugins-http
Requires:	nagios-plugins-ldap
Requires:	nagios-plugins-mysql
Requires:	nagios-plugins-pgsql
Requires:	nagios-plugins-tcp
%endif
Requires:	%{name}
BuildArch:	noarch

%description nagios-plugins-metadata
The metadata files required for Pacemaker to execute the nagios plugin
monitor resources.

%files nagios-plugins-metadata
%license %{nagios_name}-%{nagios_hash}/COPYING
%dir %{_datadir}/pacemaker/nagios
%dir %{_datadir}/pacemaker/nagios/plugins-metadata
%attr(0644,root,root) %{_datadir}/pacemaker/nagios/plugins-metadata/*

#----------------------------------------------------------------------------

%package -n %{libcib}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libcib}
Pacemaker shared library.

%files -n %{libcib}
%{_libdir}/libcib.so.%{cib_major}*

#----------------------------------------------------------------------------

%package -n %{libcrmcluster}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libcrmcluster}
Pacemaker shared library.

%files -n %{libcrmcluster}
%{_libdir}/libcrmcluster.so.%{crmcluster_major}*

#----------------------------------------------------------------------------

%package -n %{libcrmcommon}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libcrmcommon}
Pacemaker shared library.

%files -n %{libcrmcommon}
%{_libdir}/libcrmcommon.so.%{crmcommon_major}*

#----------------------------------------------------------------------------

%package -n %{libcrmservice}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libcrmservice}
Pacemaker shared library.

%files -n %{libcrmservice}
%{_libdir}/libcrmservice.so.%{crmservice_major}*

#----------------------------------------------------------------------------

%package -n %{liblrmd}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{liblrmd}
Pacemaker shared library.

%files -n %{liblrmd}
%{_libdir}/liblrmd.so.%{lrmd_major}*

#----------------------------------------------------------------------------

%package -n %{libpe_rules}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libpe_rules}
Pacemaker shared library.

%files -n %{libpe_rules}
%{_libdir}/libpe_rules.so.%{pe_rules_major}*

#----------------------------------------------------------------------------

%package -n %{libpe_status}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libpe_status}
Pacemaker shared library.

%files -n %{libpe_status}
%{_libdir}/libpe_status.so.%{pe_status_major}*

#----------------------------------------------------------------------------

%package -n %{libstonithd}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libstonithd}
Pacemaker shared library.

%files -n %{libstonithd}
%{_libdir}/libstonithd.so.%{stonithd_major}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libname}
Pacemaker shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Pacemaker development files
Group:		Development/C
Requires:	%{libcib} = %{EVRD}
Requires:	%{libcrmcluster} = %{EVRD}
Requires:	%{libcrmcommon} = %{EVRD}
Requires:	%{libcrmservice} = %{EVRD}
Requires:	%{liblrmd} = %{EVRD}
Requires:	%{libpe_rules} = %{EVRD}
Requires:	%{libpe_status} = %{EVRD}
Requires:	%{libstonithd} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Pacemaker development files.

%files -n %{devname}
%{_includedir}/pacemaker
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -n %{name}-Pacemaker-%{version}

%build
./autogen.sh

# Rawhide glibc doesn't like ftime at all
%global optflags %{optflags} -UPCMK_TIME_EMERGENCY_CGT
#export CPPFLAGS="-UPCMK_TIME_EMERGENCY_CGT $CPPFLAGS"

%configure \
	PYTHON=%{__python3} \
	--disable-hardening \
	--disable-fatal-warnings \
	--with-brand= \
	--disable-static \
	--with-initdir=%{_initrddir} \
	--with-runstatedir=/run \
	--localstatedir=%{_var} \
	--with-version=%{version}-%{release} \
	--with-bug-url=http://bugzilla.rosalinux.ru \
%if %{with nagios}
	--with-nagios \
%else
	--without-nagios \
%endif
	--with-nagios-metadata-dir=%{_datadir}/pacemaker/nagios/plugins-metadata/ \
	--with-nagios-plugin-dir=%{_libdir}/nagios/plugins/

%make

%install
# skip automake-native Python byte-compilation, since RPM-native one (possibly
# distro-confined to Python-specific directories, which is currently the only
# relevant place, anyway) assures proper intrinsic alignment with wider system
%makeinstall_std am__py_compile=true

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 daemons/pacemakerd/pacemaker.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/pacemaker
install -m 644 tools/crm_mon.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/crm_mon

mkdir -p %{buildroot}%{_datadir}/pacemaker/nagios/plugins-metadata
for file in $(find %{nagios_name}-%{nagios_hash}/metadata -type f); do
    install -m 644 $file %{buildroot}%{_datadir}/pacemaker/nagios/plugins-metadata
done

mkdir -p %{buildroot}%{_localstatedir}/lib/rpm-state/%{name}

# These are not actually scripts
find %{buildroot} -name '*.xml' -type f -print0 | xargs -0 chmod a-x

# Don't package static libs
# find %{buildroot} -name '*.a' -type f -print0 | xargs -0 rm -f

# Do not package these either
rm -f %{buildroot}%{_sbindir}/fence_legacy
rm -f %{buildroot}%{_mandir}/man8/fence_legacy.*

# For now, don't package the servicelog-related binaries built only for
# ppc64le when certain dependencies are installed. If they get more exercise by
# advanced users, we can reconsider.
rm -f %{buildroot}%{_sbindir}/notifyServicelogEvent
rm -f %{buildroot}%{_sbindir}/ipmiservicelogd

# Don't ship init scripts for systemd based platforms
rm -f %{buildroot}%{_initrddir}/pacemaker
rm -f %{buildroot}%{_initrddir}/pacemaker_remote

%check
{ cts/cts-scheduler --run load-stopped-loop \
  && cts/cts-cli \
  && touch .CHECKED
} 2>&1 | sed 's/[fF]ail/faiil/g'  # prevent false positives in rpmlint
[ -f .CHECKED ] && rm -f -- .CHECKED

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3909 |21cr|packaging-tools-2.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools that make packagers' lives easier
Name:		packaging-tools
Version:	2.1.3
Release:	1
License:	Public Domain
Group:		Development/Other
Url:		http://openmandriva.org/
Source0:	e
Source1:	e.1
Source2:	vs
Source3:	vs.1
Source4:	vl
Source5:	vl.1
Source6:	vj
Source7:	vj.1
Source8:	vp
Source9:	vp.1
BuildArch:	noarch

%description
Some tools that make packagers' lives easier

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
install -c -m 755 %SOURCE0 %SOURCE2 %SOURCE4 %SOURCE6 %SOURCE8 %{buildroot}%{_bindir}/
install -c -m 644 %SOURCE1 %SOURCE3 %SOURCE5 %SOURCE7 %SOURCE9 %{buildroot}%{_mandir}/man1/

%files
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3910 |21cr|packit-1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Network Injection And Capture Tool
Name:		packit
Version:	1.0
Release:	11
License:	GPL
Group:		Monitoring
Url:		http://www.obtuse.net/software/packit/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-0.7.1-update-headers-for-new-libpcap.patch.bz2
Patch1:		packit-1.0-no-strip.patch
BuildRequires:	libnet-devel
BuildRequires:	pcap-devel

%description
Packit is a network auditing tool that allows you to monitor, manipulate, and
inject customized IP traffic into your network. Supporting the ability to
define (spoof) all TCP, UDP, ICMP, IP, ARP, RARP and Ethernet header options,
Packit can be valuable for testing firewalls, intrusion detection systems,
port scanning, simulating network traffic and general TCP/IP auditing.

%files
%doc ChangeLog docs/ICMP.txt
%{_mandir}/*/*
%{_sbindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3911 |21cr|paintown-3.6.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define _disable_ld_no_undefined 1

Summary:	2D Fighting Game
Name:		paintown
Version:	3.6.0
Release:	6
License:	GPLv2+
Group:		Games/Arcade
Url:		http://paintown.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/paintown/paintown/%{version}/%{name}-%{version}.tar.bz2
Patch0:		paintown-3.6.0-static.patch
Patch1:		paintown-3.6.0-cmake-freetype.patch
Patch2:		paintown-cpp.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
Paintown is a 2D engine for fighting games.
If you are looking for a side-scrolling, action packed game like you used
to play or if you are looking for an extensible engine to write your own game,
look no further. Paintown supports user created content through a mod system
and user defined functionality through scripting.

Warning! The game is buggy and requires some "magic moves" to play.
For example, with some langauges half of menu is blank...

Features
* Low CPU and GPU requirements
* Network play
* Dynamic lighting
* Joystick support
* mod/s3m/xm/it music modules
* Scripting with python
* M.U.G.E.N engine

%files
%doc README LEGAL LICENSE TODO scripting.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

find data/ -type f -exec chmod 0644 {} \;

%build
LIBSUFFIX=$(echo "%{_lib}" | sed 's|^lib||')
export CFLAGS="%{optflags} -Wall"
export CXXFLAGS="$CFLAGS"
export PYTHON=%__python2

%cmake -DUSE_SDL=ON

%make

%install
mkdir -p %{buildroot}%{_gamesbindir}
install -m 755 build/bin/%{name} %{buildroot}%{_gamesbindir}/%{name}
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -af data %{buildroot}%{_gamesdatadir}/%{name}

mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 data/menu/%{name}.png %{buildroot}%{_datadir}/pixmaps
convert data/menu/%{name}.png -resize 48x48 %{buildroot}%{_datadir}/pixmaps/%{name}.png

# wrapper script
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh
exec %{_gamesbindir}/paintown -d %{_gamesdatadir}/%{name}/data
EOF
chmod +x %{buildroot}%{_bindir}/%{name}

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=PainTown
Comment=2D Fighting Game
Exec=%{_bindir}/%{name}
Icon=%{name}
Type=Application
Terminal=false
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3912 |21cr|pairing-1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pairing
Version:	1.3
Release:	5
Summary:	Pairing of machines for network testing
License:	GPL
Group:		Networking/Other
Url:		http://ahorvath.web.cern.ch/ahorvath/pairing/
Source:		%{name}-%{version}.tar.bz2
Patch0:		pairing-1.3-debug.patch

%description
Run this on a set of machines and get them paired up nicely for some
network-related activity.

It uses multicast to find potential partners and TCP to actually pair up with
them.

%prep
%setup -q
%patch0 -p1

%build
%make

%install
mkdir -p %{buildroot}/%{_bindir}
install -m 755 pair %{buildroot}/%{_bindir}/pair

%clean

%files
%{_bindir}/pair

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3913 |21cr|palp-2.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		palp
Group:		Sciences/Mathematics
License:	GPL
Summary:	PALP: A Package for Analyzing Lattice Polytopes
Version:	2.20
Release:	1
URL:		http://hep.itp.tuwien.ac.at/~kreuzer/CY/CYpalp.html
Source0:	http://hep.itp.tuwien.ac.at/~kreuzer/CY/palp/%{name}-%{version}.tar.gz
# No longer available direct link
# http://arxiv.org/pdf/1205.4147v1
Source1:	1205.4147v1.pdf

%description
PALP: A Package for Analyzing Lattice Polytopes with Applications to
Toric Geometry.
See also http://arxiv.org/abs/math/0204356

%prep
%autosetup -p1

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
cp -fa class.x cws.x nef.x poly.x %{buildroot}/%{_bindir}
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -fa %{SOURCE1} %{buildroot}%{_docdir}/%{name}/%{name}.pdf

%files
%{_bindir}/*
%dir %doc %{_docdir}/%{name}
%doc %{_docdir}/%{name}/%{name}.pdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3914 |21cr|pam_abl-0.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pam-abl

Summary:	Auto blacklisting of hosts and users
Name:		pam_abl
Version:	0.6.0
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/pam-abl/
Source0:	http://downloads.sourceforge.net/project/%{oname}/%{oname}/%{oname}-%{version}.tar.gz
Patch0:		pam_abl-0.6.0-whitelistroot.patch
BuildRequires:	cmake
BuildRequires:	db-devel
BuildRequires:	pam-devel

%description
A PAM module that provides auto blacklisting of hosts and users responsible
for repeated failed authentication attempts. Generally configured so that
blacklisted users still see normal login prompts but are guaranteed to fail
to authenticate.

%files
%doc README
/%{_lib}/security/*so*
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/security/pam_abl.conf
%dir %{_var}/lib/abl

#----------------------------------------------------------------------------

%prep
%setup -q -c
%patch0 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build
install -d %{buildroot}/%{_lib}
mv %{buildroot}%{_prefix}/lib/security %{buildroot}/%{_lib}
install -d %{buildroot}%{_var}/lib/abl
install -D -m 644 conf/pam_abl.conf %{buildroot}%{_sysconfdir}/security/pam_abl.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3915 |21cr|paml-4.9j-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Name:		paml
Version:	4.9j
Release:	1
Summary:	Phylogenetic analyses of DNA or protein sequences using maximum likelihood
License:	Freeware
Group:		Sciences/Biology
URL:		http://abacus.gene.ucl.ac.uk/software/paml.html
Source:		http://abacus.gene.ucl.ac.uk/software/%{name}%{version}.tgz

%description
PAML (for Phylogentic Analysis by Maximum Likelihood) contains a few
programs for model fitting and phylogenetic tree reconstruction using
nucleotide or amino-acid sequence data. PAML is distributed free of
charge for academic use only.

This package is in restricted because of its non-free license.

%prep
%setup -q -n %{name}%{version}
find . -type f | xargs %__perl -pi -e 'BEGIN {exit unless -T $ARGV[0];} tr/\r//d;'
find . -type d -exec %__chmod 755 {} \;
find . -type f -exec %__chmod 644 {} \;

%build
cd src
%make CFLAGS="%{optflags}"

%install
%__rm -rf %{buildroot}
cd src
%__install -m 755 -d %{buildroot}%{_bindir}
%__install -m 755 baseml basemlg chi2 codeml evolver mcmctree pamp yn00 %{buildroot}%{_bindir}

%clean
%__rm -rf %{buildroot}

%files
%doc *.txt *.aa *.dat *.nuc *.trees *.ctl doc examples paupblock paupend paupstart
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3916 |21cr|pam_mysql-1.0.0-0.beta1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define beta beta1

Summary:	MySQL authentication for PAM
Name:		pam_mysql
Version:	1.0.0
Release:	0.%{beta}.1
License:	GPLv2+
Group:		System/Libraries
URL:		https://github.com/NigelCunningham/pam-MySQL
Source:		https://github.com/NigelCunningham/pam-MySQL/archive/%{version}-%{beta}.tar.gz?/pam_mysql-%{version}.tar.bz2
BuildRequires:	meson
BuildRequires:	mysql-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(openssl)
Requires:	pam
Provides:	pam-mysql = %{EVRD}
Obsoletes:	pam-mysql < 0.7

%description
This is a module that allows people to login to PAM-aware applications by
authenticating to a MySQL database. Now configurable in terms of which host the
database resides upon and which table and username and password column to
interrogate.

%files
/%{_lib}/security/pam_mysql.so

#----------------------------------------------------------------------------

%prep
%setup -q -n pam-MySQL-%{version}-%{beta}

%build
%meson
%meson_build

%install
# fix path in install script
sed -i 's|/lib/|%{buildroot}/lib/|g' install.sh

%meson_install

%if "%{_lib}" == "lib64"
#move lib to {_lib}
mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}/lib/* %{buildroot}/%{_lib}
rm -d %{buildroot}/lib
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3917 |21cr|pam-pgsql-0.7.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Postgresql authentication for PAM
Name:		pam-pgsql
Version:	0.7.3.2
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/pam-pgsql
Source0:	http://downloads.sourceforge.net/sourceforge/pam-pgsql/%{name}-%{version}.tar.gz
BuildRequires:	mhash-devel
BuildRequires:	pam-devel
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(libgcrypt)
Requires:	pam

%description
This is a module that allows people to login to PAM-aware applications by
authenticating to a Postgresql database.

%files
%doc CREDITS README
%doc %{_docdir}/pam-pgsql/CHANGELOG
%doc %{_docdir}/pam-pgsql/COPYRIGHT
%doc %{_docdir}/pam-pgsql/sample.sql
%{_libdir}/security/pam_pgsql.*
%attr(600, root, root) %config(noreplace) %{_sysconfdir}/pam_pgsql.conf

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}
cat > %{buildroot}%{_sysconfdir}/pam_pgsql.conf <<EOF
# PAM pgsql configuration files
# Olivier Thauvin <nanardon@nanardon.zarb.org>

# connect - the database connection string
# (see http://www.postgresql.org/docs/7.4/interactive/libpq.html#LIBPQ-CONNECT)

# auth_query      - authentication query (should return one column -- password)
# auth_succ_query - query to be executed after successful authentication
# auth_fail_query - query to be executed after failed authentication
# acct_query      - account options query (should return 3 boolean columns -- expired, new password required and password is null)
# pwd_query       - query to be executed for password changing

# You can use %u as username, %p as (new) password, %h for hostname of client
# as specified by PAM subsystem, %i for IP got by gethostbyname(%h) and %s as
# pa service name in any query. Please don't forget to specify pw_type as %p
# is replaced by password of pw_type form.

connect = dbname=sysdb user=ljb password=sth connect_timeout=15
auth_query = select user_password from account where user_name = %u
acct_query = select (acc_expired = 'y' OR acc_expired = '1'), (acc_new_pwreq = 'y' OR acc_new_pwreq = '1'), (user_password
 IS NULL OR user_password = '') from account where user_name = %u
pwd_query = update account set user_password = %p where user_name = %u
pw_type = crypt_md5

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3918 |21cr|pam_radius-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcver %(echo %{version} | tr . _)

Summary:	PAM Module for RADIUS Authentication
Name:		pam_radius
Version:	2.0.0
Release:	1
License:	GPL-2.0-or-later
Group:		System/Libraries
URL:		http://www.freeradius.org/pam_radius_auth/
Source:		https://github.com/FreeRADIUS/pam_radius/archive/release_%{srcver}.tar.gz?/%{name}-release_%{srcver}.tar.gz
Requires:	pam
BuildRequires:	pam-devel

%description
pam_radius is a PAM module which allows user authentication using
a radius server.

%files
%doc README.rst INSTALL USAGE Changelog
%license LICENSE
%config(noreplace) %attr(0600, root, root) %{_sysconfdir}/pam_radius.conf
/%{_lib}/security/pam_radius_auth.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-release_%{srcver}

%build
export CFLAGS="%{optflags} -fPIC"
%configure
%make_build

%install
mkdir -p %{buildroot}/%{_lib}/security
install -p pam_radius_auth.so %{buildroot}/%{_lib}/security
mkdir -p %{buildroot}%{_sysconfdir}
install -p pam_radius_auth.conf %{buildroot}%{_sysconfdir}/pam_radius.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3919 |21cr|pam_script-1.1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PAM module to executes a script at the start and end of a session
Name:		pam_script
Version:	1.1.9
Release:	2
License:	GPL+
Group:		System/Libraries
Url:		https://github.com/jeroennijhof/pam_script
Source0:	https://github.com/jeroennijhof/pam_script/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		pam_script-1.1.9-rosa-path.patch
BuildRequires:	pam-devel
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool

%description
pam_script allows you to execute scripts during authorization, password
changes and session openings or closings.

%files
%doc AUTHORS ChangeLog COPYING NEWS README etc/README.pam_script
%config(noreplace) %dir %{_sysconfdir}/pam-script.d/
%config(noreplace) %{_sysconfdir}/%{name}*
/%{_lib}/security/%{name}.so
%{_mandir}/man7/%{name}.7*

#------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure --libdir=/%{_lib}/security
%make

%install
%makeinstall_std

rm %{buildroot}%{_sysconfdir}/README
mv %{buildroot}%{_mandir}/man7/pam{-,_}script.7

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3920 |21cr|pam_smb-1.1.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SMB Pluggable Authentication Module
Name:		pam_smb
Version:	1.1.7
Release:	8
Source0:	ftp://ftp.samba.org/pub/samba/pam_smb/pam_smb-%{version}.tar.bz2
URL:		http://www.csn.ul.ie/~airlied/pam_smb/
License:	GPL
Group:		System/Libraries
BuildRequires:	pam-devel
Requires:	pam

%description 
pam_smb is a PAM module which allows authentication of UNIX users
using an NT/Samba server.

%prep
%setup -q -n pam_smb

%build
%configure
make

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
mkdir -p %{buildroot}{%{_sysconfdir},/lib/security}
install -m 755 pam_smb_auth.so %{buildroot}/lib/security
install -m 644 pam_smb.conf.example %{buildroot}%{_sysconfdir}/pam_smb.conf

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
rm -rf $RPM_BUILD_DIR/%{name}

%files
%defattr(-,root,root)
/lib/security/pam_smb_auth.so
%config(noreplace) %{_sysconfdir}/pam_smb.conf
%doc CHANGES COPYING README TODO pam_smb.conf.example

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3921 |21cr|pam_sqlite-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 854e09235ff827dbc328d85d4985789d99b48717
%define short_commit 854e09

Summary:	SQLite authentication for PAM
Name:		pam_sqlite
Version:	1.0.2
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.edin.dk/pam_sqlite/
Source0:	https://github.com/HormyAJP/pam_sqlite3/archive/%{commit}.zip?/%{name}-%{short_commit}.zip
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(sqlite3)

%description
pam_sqlite allows developers to authenticate users against a table
in an SQLite database. It supports checking account information
(pam_acct_expired, new_authtok_reqd) and updating authentication
tokens.

%files
%doc NEWS README
#%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam_sqlite.conf
#%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/pam_sqlite
%attr(0755,root,root) /%{_lib}/security/pam_sqlite3.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n pam_sqlite3-%{commit}

%build
%configure

%make

%install
install -d %{buildroot}/%{_lib}/security
#install -d %{buildroot}%{_sysconfdir}/pam.d

install -m0755 pam_sqlite3.so %{buildroot}/%{_lib}/security/pam_sqlite3.so

#cat > %{buildroot}%{_sysconfdir}/pam.d/pam_sqlite <<EOF
#auth        required    pam_sqlite.so 
#account     required    pam_sqlite.so
#password    required    pam_sqlite.so
#EOF
#
#cat > %{buildroot}%{_sysconfdir}/pam_sqlite.conf <<EOF
#database = /etc/sysdb
#table = account
#user_column = user_name
#pwd_column = user_password
#expired_column = acc_expired
#newtok_column = acc_new_pwreq
#debug
#EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3922 |21cr|pam_ssh-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

Name:		pam_ssh
Version:	2.3
Release:	1
Summary:	A Pluggable Authentication Module (PAM) for use with SSH
Source0:	https://sourceforge.net/projects/pam-ssh/files/pam_ssh/%{version}/pam_ssh-%{version}.tar.xz
URL:		https://sourceforge.net/projects/pam-ssh/
License:	BSD
Group:		System/Libraries
Requires:	openssh
BuildRequires:	pam-devel
BuildRequires:	openssl-devel
BuildRequires:	openssh-clients


%description
This PAM module provides single sign-on behavior for UNIX using SSH. Users
are authenticated by decrypting their SSH private keys with the password
provided (probably to XDM). In the PAM session phase, an ssh-agent process is
started and keys are added.

%prep
%setup -q

%build
autoreconf -fi
%configure --with-pam-dir=/%_lib/security
%make

%install
%makeinstall_std


%files
%doc AUTHORS NEWS README ChangeLog TODO
/%{_lib}/security/pam_ssh.*
%{_mandir}/man[^3]/pam_ssh*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3923 |21cr|pamtester-0.1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility for testing PAM facility
Name:		pamtester
Version:	0.1.2
Release:	8
License:	BSD
Group:		Development/Tools
URL:		http://pamtester.sourceforge.net/
Source0:	%{name}-%{version}.tar.xz
BuildRequires:	pam-devel

%description
Pamtester is a tiny utility program to test the 
Pluggable Authentication Modules facility.

%prep
%setup -q

%build
autoreconf -i
%configure
%make CFLAGS="%{optflags}"

%install
%makeinstall_std INSTALL='install -p' install

%files
%doc AUTHORS ChangeLog LICENSE NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3924 |21cr|pam_u2f-1.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PAM authentication over U2F (e.g. Yubikey)
Name:		pam_u2f
Version:	1.2.1
Release:	2
License:	BSD
Group:		System/Libraries
Url:		https://github.com/Yubico/pam-u2f
Source0:	https://github.com/Yubico/pam-u2f/archive/refs/tags/pam_u2f-%{version}.tar.gz
BuildRequires:	make
BuildRequires:	%{_bindir}/man
BuildRequires:	%{_bindir}/xsltproc
BuildRequires:	pkgconfig(libfido2)
BuildRequires:	pam-devel
# 1 GiB of latex stuff to build the man =)
# It is already built if use tarballs from https://developers.yubico.com/pam-u2f/Releases/
# Let's check if latex stack works correctly
BuildRequires:	%{_bindir}/a2x
# compat with upstream name and Fedora/RH
Provides:	pam-u2f = %{EVRD}
Provides:	pam-u2f%{_isa} = %{EVRD}
Recommends:	pamu2fcfg
Requires:	pam

%description
The PAM U2F module provides an easy way to integrate the Yubikey (or
other U2F-compliant authenticators) into your existing user
authentication infrastructure.

%files
%license COPYING
%doc AUTHORS NEWS README*
%{_mandir}/man8/pam_u2f.8*
/%{_lib}/security/pam_u2f.so

#------------------------------------------------------------------

%package -n pamu2fcfg
Summary:	Configures PAM authentication over U2F (e.g. Yubikey)
Group:		System/Configuration/Other
Recommends:	%{name} = %{EVRD}

%description -n pamu2fcfg
pamu2fcfg provides a command line tool for configuring PAM authentication
over U2F (e.g. with Yubikey).

%files -n pamu2fcfg
%{_bindir}/pamu2fcfg
%{_mandir}/man1/pamu2fcfg.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n pam-u2f-pam_u2f-%{version}

%build
%configure --with-pam-dir=/%{_lib}/security
%make

%install
%makeinstall_std
# fix stripping
chmod +x %{buildroot}/%{_lib}/security/pam_u2f.so

%check
make check
# verify that man pages have been built correctly
PAGER= man %{buildroot}%{_mandir}/man8/*
PAGER= man %{buildroot}%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3925 |21cr|pam_usb-0.5.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PAM module through external storage
Name:		pam_usb
Version:	0.5.0
Release:	6
URL:		http://www.pamusb.org/
Source0:	http://ovh.dl.sourceforge.net/sourceforge/pamusb/%{name}-%{version}.tar.gz
Source1:	%{name}-doc.tar.bz2
Patch0:		pam_usb-0.5.0-debug.patch
License:	GPLv2+
Group:		System/Libraries
BuildRequires:	dbus-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
Requires:	python2

%description
pam_usb is a PAM module that enables authentication using an USB-Storage device
(such as an USB Pen) through DSA private/public keys.

It can also work with other devices, such as floppy disks or cdroms.

%prep
%setup -q -a1
%apply_patches

%build
DEBUG=yes %make

%install
%makeinstall_std \
  PAM_USB_DEST=%{buildroot}/%{_lib}/security \
  DOCS_DEST=%{buildroot}%{_docdir}/%{name}-%{version}

cp -a html %{buildroot}%{_docdir}/%{name}-%{version}

#fix python chebang
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/{pamusb-agent,pamusb-conf}

%files
%doc %{_docdir}/%{name}-%{version}
/%{_lib}/security/%{name}.so
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_sysconfdir}/pamusb.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3926 |21cr|pam_yubico-2.27-0.git5719a2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Upstream has not tagged LDAP-related additions
%define commit 5719a2f859144948de7b67b6d706d6ed403b219f
%define commit_short %(echo %{commit} | head -c6)

Summary:	Provides support for One Time Passwords (OTP) authentication (for Yubikey)
Name:		pam_yubico
Version:	2.27
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		System/Libraries
URL:		https://developers.yubico.com/yubico-pam/
Source0:	https://github.com/Yubico/yubico-pam/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:  openldap-devel
BuildRequires:  pam-devel
BuildRequires:  ykclient-devel
BuildRequires:  pkgconfig(ykpers-1)
# 1 GiB of latex stuff to build the man =)
# It is already built if use tarballs from https://developers.yubico.com/pam-u2f/Releases/
# Let's check if latex stack works correctly
BuildRequires:	%{_bindir}/a2x
BuildRequires:	%{_bindir}/xsltproc
BuildRequires:	%{_bindir}/man
Requires:	pam
# compat with upstream name
Provides:	yubico-pam = %{EVRD}
Provides:	yubico-pam%{_isa} = %{EVRD}

%description
The Yubico authentication device Yubikey generates one-time passwords that can
be used for authentication. This module allows you to use the Yubikey device to
authenticate to the PAM system.
The Yubico PAM module provides an easy way to integrate the Yubikey into your
existing user authentication infrastructure.
Supports LDAP.
See also: pam_u2f

%files
%license COPYING
%doc NEWS README*
/%{_lib}/security/pam_yubico.so
%{_bindir}/ykpamcfg
%{_mandir}/man1/ykpamcfg.1*
%{_mandir}/man8/pam_yubico.8*

#-------------------------------------------------------------------------------

%prep
%autosetup -p1 -n yubico-pam-%{commit}

%build
%serverbuild

%configure \
    --libdir=/%{_lib} \
    --with-pam-dir=/%{_lib}/security

%make

%install
%makeinstall_std
# cleanup
rm -f %{buildroot}/%{_lib}/security/*.*a

# fix stripping
chmod 755 %{buildroot}%{_bindir}/ykpamcfg
chmod 755 %{buildroot}/%{_lib}/security/pam_yubico.so

%check
# verify that man pages have been built correctly
PAGER= man %{buildroot}%{_mandir}/man8/*
PAGER= man %{buildroot}%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3927 |21cr|pam_yubikey-1.0.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Provides support for One Time Passwords (OTP) authentication
Name:		pam_yubikey
Version:	1.0.4
Release:	16
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.securixlive.com/yubikey/
Source0:	http://www.securixlive.com/download/yubikey/YubiPAM-%{version}.tar.gz
Patch1:		pam_yubikey-rlimit.patch
BuildRequires:	pam-devel

%description
YubiPAM is a module for PAM that provides support for One Time Passwords (OTP)
authentication. It supports the OTPs generated from a Yubikey authentication
token. YubiPAM aims to be a simple, easy to configure, module for the Yubikey.

%files
%doc COPYING README RELEASE.NOTES
%dir %attr(0711,root,root) %{_sysconfdir}/yubikey
/sbin/ykpasswd
/sbin/yk_chkpwd
%{_bindir}/ykvalidate
/%{_lib}/security/pam_yubikey.so

#----------------------------------------------------------------------------

%prep
%setup -qn YubiPAM-%{version}
%apply_patches

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"
%configure \
	--disable-static \
	--with-pam-dir=/%{_lib}/security \
	--with-authdb=%{_sysconfdir}/yubikey

%make

%install
install -d %{buildroot}%{_sysconfdir}/yubikey
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3928 |21cr|pan-0.151-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define with_spell 1

%{?_with_spell: %{expand: %%define with_spell 1}}
%{?_without_spell: %{expand: %%define with_spell 0}}

Summary:	A USENET newsreader for GNOME
Name:		pan
Version:	0.151
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/News
URL:		http://pan.rebelbase.com/
Source0:	https://github.com/GNOME/pan/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch2:		02_windowsmacosx.dpatch
%if %{with_spell}
BuildRequires:	pkgconfig(gtkspell3-3.0)
BuildRequires:	pkgconfig(enchant-2)
%endif
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gmime-3.0)
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	yelp-devel

%description
This is PAN, a powerful and user-friendly USENET newsreader for GNOME.
The latest info and versions of Pan can always
be found at http://pan.rebelbase.com/.

%files -f %{name}.lang
%doc README.org NEWS AUTHORS
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/org.gnome.pan.metainfo.xml
%{_datadir}/icons/hicolor/*/*/*.png
%{_mandir}/man1/pan.1.*

#---------------------------------------------------------------------
%prep
%autosetup -p1

%build
./autogen.sh
%configure \
 --with-gmime30 \
%if %{with_spell}
 --with-gtkspell
%else
 --without-gtkspell
%endif

%make

%install
%makeinstall_std Productivitydir=%{_datadir}/applications/

%find_lang %{name}

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="GTK" \
  --add-category="News" \
  --add-category="Network" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3929 |21cr|pandora-0.9.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GIMP plugin for making panoramas
Name:		pandora
Version:	0.9.3
Release:	8
License:	GPL
Group:		Graphics
Url:		http://shallowsky.com/software/pandora/
Source0:	http://shallowsky.com/software/pandora/pandora-combine-%{version}.scm
BuildRequires:	gimp-devel >= 2.0
BuildArch:	noarch

%description
This is a plugin for The Gimp that generates panorama images.

%package -n gimp2-pandora
Summary:	GIMP plugin for making panoramas
Group:		Graphics
Requires:	gimp

%description -n gimp2-pandora
This is a plugin for The Gimp that generates panorama images. This
version requires gimp 2.

%prep

%build

%install
install -D -m 644 %SOURCE0 %{buildroot}$(gimptool-2.0 --gimpdatadir)/scripts/pandora-combine.scm

%files -n gimp2-pandora
%{_datadir}/gimp/2.0/scripts/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3930 |21cr|pangox-compat-1.30.1.0.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api_version	1.0
%define	lib_major	0
%define	libname		%mklibname pangox %{api_version} %{lib_major}
%define	devname		%mklibname -d pangox

%define	oldver		1.30.1
%define	newver		0.0.2

%define	url_ver		%(echo %{newver}|cut -d. -f1,2)

Summary:	Compatibility library providing the obsolete pangox library
Name:		pangox-compat
Version:	%{oldver}.%{newver}
Release:	6
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.pango.org/
Source0:	http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{newver}.tar.xz
Patch0:		pangox-no-find_shaper.patch
BuildRequires:	pkgconfig(glib-2.0) >= 2.31.0
BuildRequires:	pkgconfig(gmodule-no-export-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(x11)
Conflicts:	pango < 1.32.0

%description
This is a compatibility library providing the obsolete pangox library
that is not shipped by Pango itself anymore.

%package -n %{libname}
Summary:	%{summary}
Group:		System/Libraries
Conflicts:	%{_lib}pango1.0_0 < 1.32.0

%description -n %{libname}
This is a compatibility library providing the obsolete pangox library
that is not shipped by Pango itself anymore.

%package -n %{devname}
Summary:	%{summary}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Conflicts:	%{_lib}pango1.0-devel < 1.32.0

%description -n %{devname}
This package includes the static libraries and header files
for the pangox package.

%prep
%autosetup -p1 -n %{name}-%{newver}

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files
%config(noreplace) %{_sysconfdir}/pango/pangox.aliases

%files -n %{libname}
%{_libdir}/libpangox-%{api_version}.so.%{lib_major}*

%files -n %{devname}
%{_libdir}/libpangox-%{api_version}.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3931 |21cr|pantum-1.1.106-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _debugsource_packages
%define pantumfile pantum-106-1.1.106-alt1.x86_64.rpm

Summary(ru_RU.UTF-8):	Драйвера Pantum
Summary:	Pantum drivers
Name:		pantum
Version:	1.1.106
Release:	1
License:	distributable
Group:		System/Configuration/Printing
Url:		https://global.pantum.com/
Vendor:		Pantum
Source0:	http://altrepo.ru/local-p10/x86_64/RPMS.local-p10/%{pantumfile}
Source1:	pantum.rpmlintrc
BuildRequires:	%{_bindir}/rpm2cpio
BuildRequires:	cpio
ExclusiveArch:	x86_64
Requires:	cups
Requires:	sane
Requires:	lib64jpeg8
Requires:	ipp-usb
Requires:	qpdf
AutoReqProv:	no

%description
CUPS and SANE drivers for Pantum series printer and scanner.

%description -l ru_RU.UTF-8
Драйвера CUPS и SANE для принтеров и сканеров Pantum.

%files
/opt/%{name}
%{_sysconfdir}/pantumwrap
%{_sysconfdir}/sane.d/dll.d/*
%{_sysconfdir}/sane.d/*.conf
%{_sysconfdir}/udev/rules.d/*
%{_libdir}/sane/*
%{_datadir}/doc/pantum-106
%{_datadir}/cups/model/Pantum
%{_usr}/lib/cups/filter/*
%{_unitdir}/pt-ipp-usb.service

#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .
rpm2cpio %{pantumfile} | cpio -idmv

%build

%install
cp -rf etc %{buildroot}
cp -rf opt %{buildroot}
cp -rf usr %{buildroot}
install -p -m644 opt/pantum/ippfilter/71-ipp-usb.rules %{buildroot}%{_sysconfdir}/udev/rules.d
mkdir -p %{buildroot}%{_unitdir}
install -p -m644 opt/pantum/ippfilter/pt-ipp-usb.service %{buildroot}%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3932 |21cr|paperwork-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with BR_generator

Name:           paperwork
Version:        2.1.2
Release:        1
Summary:        Scan or import your personal documents and find them back in a snap
Group:          Graphics
License:        GPL-3.0-or-later
URL:            https://gitlab.gnome.org/World/OpenPaperwork/paperwork
Source0:        %pypi_source %{name}
Source1:        ru.po
Patch0001:      0001-Drop-extra-icon-dirs.patch
# python-Levenshtein changed to just Levenshtein. There isn't an upstream
# patch because upstream has decided to drop the dependency
# https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/commit/9072eea40e09b337939ed3c98b642df203752e9e
Patch0002:      0002-fix-levenshtein.patch

BuildArch:      noarch

# https://fedoraproject.org/wiki/Changes/EncourageI686LeafRemoval
ExcludeArch: %{ix86}

BuildRequires:  pyproject-rpm-macros
BuildRequires:  desktop-file-utils
BuildRequires:  lib64appstream-glib8
BuildRequires:  python3-devel
BuildRequires:  python3-gobject
BuildRequires:  libnotify
BuildRequires:  /usr/bin/xvfb-run
BuildRequires:  python3-pip
BuildRequires:  python3-setuptools
BuildRequires:  python3-distro
BuildRequires:  python3-wheel
BuildRequires:  python3dist(openpaperwork-gtk) 
BuildRequires:  python3dist(paperwork-backend) >= %{EVRD} 
BuildRequires:  python3dist(pycountry) 
BuildRequires:  python3dist(pyocr) >= 0.3 
BuildRequires:  python3dist(pyxdg) >= 0.25 
BuildRequires:  python3-rapidfuzz
BuildRequires:  python3-jarowinkler
BuildRequires:  /usr/bin/msgfmt
#for check
BuildRequires:  appstream-util

Requires:       hicolor-icon-theme
Requires:       python3-%{name} = %{EVRD}

%description
Paperwork is a personal document manager. It manages scanned documents and PDFs
It's designed to be easy and fast to use. The idea behind Paperwork
is "scan & forget": You can just scan a new document and
forget about it until the day you need it again
in other words, let the machine do most of the work for you.

%package  -n     python3-%{name}
Summary:        %{summary}
# Fallback to old orientation heuristic just freezes, so ensure this is
# available.
Requires:       tesseract-osd
Requires:       libinsane-gobject

%description -n python3-%{name} 
See %{name} description

%prep
%autosetup -n %{name}-%{version} -p2
%if %{with BR_generator}
%generate_buildrequires
%pyproject_buildrequires
%endif

%build
%pyproject_wheel


%install
%pyproject_install

PYTHONPATH=%{buildroot}%{python3_sitelib} \
    xvfb-run -a \
        python3 -m paperwork_gtk.main install \
            --data_base_dir %{buildroot}%{_datadir} \
            --icon_base_dir %{buildroot}%{_datadir}/icons

%pyproject_save_files paperwork_gtk
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
cp -fr src/paperwork_gtk/l10n/out/* %{buildroot}%{_localedir}/
#chmod -R 644 %{buildroot}%{_localedir}/* 
find %{buildroot}%{_localedir}/ -type f -not -name '*.mo' |xargs rm -f
msgfmt -v %{SOURCE1} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{name}_gtk.mo

%check
export PATH=%{buildroot}%{_bindir}:$PATH PYTHONPATH=%{buildroot}%{python3_sitelib}

desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.appdata.xml

#xvfb-run -a paperwork-gtk chkdeps
#xvfb-run -a %{python3} -m unittest discover --verbose -s tests

%files
%{_bindir}/paperwork-gtk
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_metainfodir}/*.appdata.xml
%{_localedir}/*/LC_MESSAGES/*

%files -n python3-%{name} -f %{pyproject_files}
%doc README.markdown


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3933 |21cr|paperwork-backend-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with BR_generator

Name:           paperwork-backend
Version:        2.1.2
Release:        1
Summary:        Paperwork's backend
Group:          Graphics
License:        GPL-3.0-or-later
URL:            https://gitlab.gnome.org/World/OpenPaperwork/paperwork/tree/master/paperwork-backend
Source0:        %pypi_source %{name}
Source1:        ru.po
# https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/issues/1035
Patch0001:      0001-Skip-docx-duplicated-import-test-entirely.patch
# python-Levenshtein changed to just Levenshtein. There isn't an upstream
# patch because upstream has decided to drop the dependency
# https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/commit/9072eea40e09b337939ed3c98b642df203752e9e
Patch0002:      0002-fix-levenshtein.patch
# https://gitlab.gnome.org/World/OpenPaperwork/paperwork/-/merge_requests/851
Patch0003:      0003-Use-default-OCR-language-for-C-locale.patch

BuildArch:      noarch
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(distro)
BuildRequires:  python3dist(openpaperwork-gtk)
BuildRequires:  python3dist(pygobject)
BuildRequires:  python3dist(pycairo)
BuildRequires:  python3-gobject
BuildRequires:  python3-numpy
BuildRequires:  python3-joblib
BuildRequires:  python3-scipy
BuildRequires:  python3-pycountry
BuildRequires:  python3-whoosh
BuildRequires:  python3-pip
BuildRequires:  python3-wheel
BuildRequires:  python3-levenshtein
BuildRequires:  python3-pillow
BuildRequires:  python3dist(psutil)
BuildRequires:  python3dist(pyocr)
BuildRequires:  python3dist(pypillowfight) >= 0.3 
BuildRequires:  python3dist(scikit-learn)
BuildRequires:  libinsane-gobject
BuildRequires:  libreoffice
BuildRequires:  lib64poppler-glib8
BuildRequires:  sane-backends
BuildRequires:  tesseract
BuildRequires:  tesseract-osd

%description 
Paperwork is a personal document manager. It manages scanned documents and PDFs
This is the backend part of Paperwork. It manages:
The work directory / Access to the documents;
Indexing;
Searching;
Suggestions;
Import;
Export.

%package -n     python3-%{name}
Summary:        %{summary}
#Requires:       libinsane-gobject
Recommends:     libreoffice
Requires:       python3dist(pygobject)
Requires:       python3dist(pycairo)
Requires:       lib64poppler-glib8
Requires:       tesseract
Requires:       tesseract-osd

%description -n python3-%{name}
Paperwork is a personal document manager. It manages scanned documents and PDFs

%prep
%autosetup -n %{name}-%{version} -p2

find tests -name '*.pyc' -delete

%if %{with BR_generator}
%generate_buildrequires
%pyproject_buildrequires
%endif
%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files paperwork_backend

mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
cp -fr src/paperwork_backend/l10n/out/* %{buildroot}%{_localedir}/
#chmod -R 644 %{buildroot}%{_localedir}/*
find %{buildroot}%{_localedir}/ -type f -not -name '*.mo' |xargs rm -f
msgfmt -v %{SOURCE1} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/paperwork_backend.mo

%files -n python3-%{name} -f %{pyproject_files}
%doc README.markdown
%license LICENSE
%{_localedir}/*/LC_MESSAGES/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3934 |21cr|papirus-icon-theme-20230301-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Papirus icon themes for Linux
Name:		papirus-icon-theme
Version:	20230301
Release:	2
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/
Source0:	https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	yandex-browser-beta_16.svg
Source2:	yandex-browser-beta_24.svg
Source3:	yandex-browser-beta_32.svg
Source4:	yandex-browser-beta_48.svg
Source5:	yandex-browser-beta_64.svg
BuildRequires:	svgcleaner
BuildArch:	noarch

%description
Papirus icon themes for Linux.

#----------------------------------------------------------------------------

%package -n papirus-dark-icon-theme
Summary:	Papirus icon dark theme for Linux
Group:		Graphical desktop/Other

%description -n papirus-dark-icon-theme
Papirus icon dark theme for Linux.

%files -n papirus-dark-icon-theme
%doc AUTHORS README.md
%license LICENSE
%{_iconsdir}/Papirus-Dark

#----------------------------------------------------------------------------

%package -n papirus-elementary-dark-icon-theme
Summary:	Elementary Papirus icon dark theme for Linux
Group:		Graphical desktop/Other

%description -n papirus-elementary-dark-icon-theme
Elementary Papirus icon dark theme for Linux.

%files -n papirus-elementary-dark-icon-theme
%doc AUTHORS README.md
%license LICENSE
%{_iconsdir}/ePapirus-Dark

#----------------------------------------------------------------------------

%package -n papirus-light-icon-theme
Summary:	Papirus icon light theme for Linux
Group:		Graphical desktop/Other
Provides:	papirus-icon-theme = %{EVRD}

%description -n papirus-light-icon-theme
Papirus icon light theme for Linux.

%files -n papirus-light-icon-theme
%doc AUTHORS README.md
%license LICENSE
%{_iconsdir}/Papirus-Light

#----------------------------------------------------------------------------

%package -n papirus-elementary-icon-theme
Summary:	Elementary Papirus icon theme for Linux
Group:		Graphical desktop/Other

%description -n papirus-elementary-icon-theme
Elementary Papirus icon theme for Linux.

%files -n papirus-elementary-icon-theme
%doc AUTHORS README.md
%license LICENSE
%{_iconsdir}/ePapirus

#----------------------------------------------------------------------------

%package -n papirus-simple-icon-theme
Summary:	Papirus icon theme for Linux
Group:		Graphical desktop/Other

%description -n papirus-simple-icon-theme
Papirus icon theme for Linux.

%files -n papirus-simple-icon-theme
%doc AUTHORS README.md
%license LICENSE
%{_iconsdir}/Papirus

#----------------------------------------------------------------------------

%prep
%setup -q

# update yandex-browser icon
rm ./Papirus/16x16/apps/yandex-browser-beta.svg
rm ./Papirus/22x22/apps/yandex-browser-beta.svg
rm ./Papirus/24x24/apps/yandex-browser-beta.svg
rm ./Papirus/32x32/apps/yandex-browser-beta.svg
rm ./Papirus/48x48/apps/yandex-browser-beta.svg
rm ./Papirus/64x64/apps/yandex-browser-beta.svg
cp %{SOURCE1} ./Papirus/16x16/apps/yandex-browser-beta.svg
cp %{SOURCE2} ./Papirus/22x22/apps/yandex-browser-beta.svg
cp %{SOURCE2} ./Papirus/24x24/apps/yandex-browser-beta.svg
cp %{SOURCE3} ./Papirus/32x32/apps/yandex-browser-beta.svg
cp %{SOURCE4} ./Papirus/48x48/apps/yandex-browser-beta.svg
cp %{SOURCE5} ./Papirus/64x64/apps/yandex-browser-beta.svg


%build
find -type f -name "*.svg" > ../filelist.txt
while read SVG; do
	svgcleaner $SVG $SVG			\
		--coordinates-precision	2	\
		--properties-precision 2	\
		--transforms-precision 2	\
		--paths-coordinates-precision 2	\
		--multipass			\
		--quiet
done < ../filelist.txt

%install
install -d %{buildroot}%{_iconsdir}/
cp -R {e,}Papirus* %{buildroot}%{_iconsdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3935 |21cr|paq8p-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	High rate file compressor
Name:		paq8p
Version:	1.0
Release:	7
License:	GPLv3+
Group:		Archiving/Compression
Url:		http://www2.cs.fit.edu/~mmahoney/compression/
Source0:	http://www2.cs.fit.edu/~mmahoney/compression/paq8p.zip
Patch0:		paq8p-asm-labels.patch
Patch1:		paq8p-asm-noexec.patch
%ifarch %{ix86}
BuildRequires:	nasm
%endif
%ifarch x86_64
BuildRequires:	yasm
%endif
ExclusiveArch:	%{ix86} x86_64

%description
PAQ8p is a file compressor that achieve very high compression rates at
the expense of speed and memory.

%files
%doc readme.txt
%attr(0755,root,root) %{_bindir}/paq8p*

#----------------------------------------------------------------------------

%prep
%setup -q -c -n %{name}
%patch0 -p1 -b .label
#how to fix exec stack in yasm?
# patch1 -p1 -b .noexec

%build
%ifarch %{ix86}
nasm -f elf paq7asm.asm
nasm -f elf paq7asmsse.asm
nasm -f elf paq7asmsse2.asm
g++ paq8p.cpp %{optflags} -DNOASM -DUNIX -s -o paq8p_i386
g++ paq8p.cpp %{optflags} -DUNIX -s -o paq8p_mmx paq7asm.o
g++ paq8p.cpp %{optflags} -DUNIX -s -o paq8p_sse paq7asmsse.o
g++ paq8p.cpp %{optflags} -DUNIX -s -o paq8p_sse2 paq7asmsse2.o
%endif

%ifarch x86_64
yasm paq7asm-x86_64.asm -f elf -m amd64
g++ paq8p.cpp %{optflags} -DUNIX -s -o paq8p paq7asm-x86_64.o
g++ paq8p.cpp %{optflags} -DNOASM -DUNIX -s -o paq8p_noasm
%endif

%install
install -d %{buildroot}%{_bindir}
%ifarch x86_64
install -m 0755 paq8p %{buildroot}%{_bindir}/
install -m 0755 paq8p_noasm %{buildroot}%{_bindir}/
%endif
%ifarch %{ix86}
install -m 0755 paq8p_i386 %{buildroot}%{_bindir}/
install -m 0755 paq8p_mmx %{buildroot}%{_bindir}/
install -m 0755 paq8p_sse %{buildroot}%{_bindir}/
install -m 0755 paq8p_sse2 %{buildroot}%{_bindir}/
ln -sf %{_bindir}/paq8p_sse2 %{buildroot}%{_bindir}/paq8p
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3936 |21cr|par-1.52-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A paragraph reformatter
Name:		par
Version:	1.52
Release:	10
Source0:	Par152.tar.bz2
URL:		http://www.nicemice.net/par/
License:	Distributable - Copyright (C) 2000 by Adam M. Costello
Group:		Text tools

%description
Par is a paragraph reformatter, similar to the standard Unix fmt
filter, but better. It uses a dynamic programming algorithm, which
produces much better-looking line breaks than the greedy algorithm
used by fmt. It can also deal correctly with a variety of quotation
and comment conventions.

%prep
%setup -q -n Par152

%build
%make -f protoMakefile CC="gcc %{optflags} -c" LINK1="gcc"

%install
install -d %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_mandir}/man1
install -m 755 -s par %{buildroot}/%{_bindir}
install -m 644 par.1 %{buildroot}/%{_mandir}/man1

# Make them world readable
chmod 0644 par.doc releasenotes

%files
%doc par.doc releasenotes
%{_bindir}/par
%{_mandir}/man1/par.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3937 |21cr|par2cmdline-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PAR 2.0 compatible file verification and repair tool
Name:	par2cmdline
Version:	0.8.1
Release:	1
License: GPLv2+
Group:	File tools
Url: https://github.com/Parchive/par2cmdline
Source0: https://github.com/Parchive/par2cmdline/releases/download/v%{version}/%{name}-%{version}.tar.bz2
# Upstream patches
# Fix endiannes on tests
Patch0: 0001-Fix-for-Github-issue-143-Test-did-not-account-for-e.patch
# Make so "-qq" output level is really silent
Patch1: 0002-Fix-for-Github-issue-148-Enforce-qq-silent.patch
# Avoid out_of_range exception when filename is one char long
Patch2: 0003-Fix-for-Github-issue-149-Allow-single-char-filename.patch
# Enable redundancy level above 100%%
Patch3: 0004-Fix-for-Github-issue-161-Enable-redundancy-higher-100p.patch
BuildRequires: gcc-c++
BuildRequires: make

%description
This is a program for creating and using PAR2 files to detect damage in data
files and repair them if necessary. PAR2 files are usually published in binary
newsgroups on Usenet; they apply the data-recovery capability concepts of
RAID-like systems to the posting and recovery of multi-part archives.

%files
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/par2
%{_bindir}/par2create
%{_bindir}/par2repair
%{_bindir}/par2verify
%{_mandir}/man1/par2.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p 1

# Fix permissions
chmod -x ChangeLog configure.ac INSTALL Makefile.am NEWS stamp-h.in
chmod +x tests/test28


%build
%configure
%make


%install
%makeinstall_std


%check
make check-TESTS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3938 |21cr|parcellite-1.1.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           parcellite
Summary:        Lightweight GTK+ clipboard manager
Version:        1.1.9
Release:	6
Source0:        http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
#Source with correct pot file. You may use it for translate and make lang patch
Source1:	parcellite_ru.po.tar.gz
Patch0:		parcellite-ru.patch
#Patch1:		parcellite-1.0.2rc5-rosa-glib.patch
URL:            http://parcellite.sourceforge.net/

Group:          Graphical desktop/GNOME 
License:        GPLv3+
BuildRequires:  intltool
BuildRequires:  gtk+2-devel >= 2.10.0

%description
Parcellite is a lightweight GTK+ clipboard manager. This is a stripped
down, basic-features-only clipboard manager with a small memory footprint
for those who like simplicity.

%prep 
%setup -q
%apply_patches

pushd po
tar -xvzf %{SOURCE1}
popd

rm -rf deb
cd src
rm -f *.o
cd ..

%build 
%configure
make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README ChangeLog TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
%{_mandir}/man1/%{name}.1*
%{_datadir}/pixmaps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3939 |21cr|pari-2.13.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#temporary disable pdfdoc (texlive broken)
%bcond_with pdfdoc

%define gp2c_version 0.0.12pl1

%define major 7
%define libname %mklibname %{name}-gmp %{major}
%define devname %mklibname %{name} -d

%define pkgdocdir	%{_docdir}/%{name}
%define pkgdatadir	%{_datadir}/%{name}-%{gp2c_version}

Summary:	PARI/GP - Number Theory-oriented Computer Algebra System
Name:		pari
Version:	2.13.4
Release:	2
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://pari.math.u-bordeaux.fr/
Source0:	http://pari.math.u-bordeaux.fr/pub/pari/unix/pari-%{version}.tar.gz
Source1:	http://pari.math.u-bordeaux.fr/pub/pari/packages/elldata.tgz
Source2:	http://pari.math.u-bordeaux.fr/pub/pari/packages/galdata.tgz
Source3:	http://pari.math.u-bordeaux.fr/pub/pari/packages/seadata.tgz
Source4:	http://pari.math.u-bordeaux.fr/pub/pari/packages/nftables.tgz
Source5:	http://pari.math.u-bordeaux.fr/pub/pari/packages/galpol.tgz
Source6:	http://pari.math.u-bordeaux.fr/pub/pari/GP2C/gp2c-%{gp2c_version}.tar.gz

Patch0:		pari-arch.patch
Patch1:		pari-gphelp.patch
Patch2:		pari-runpath.patch

BuildRequires:	emacs
%if %{with pdfdoc}
BuildRequires:	texlive-dvips
BuildRequires:	texlive-cm
BuildRequires:	texlive-ec
BuildRequires:	texlive-pdftex
BuildRequires:	texlive-etex
BuildRequires:	texlive-tetex
BuildRequires:	texlive-texconfig
BuildRequires:	texlive-latex
BuildRequires:	texlive-latexconfig
BuildRequires:	texlive-metafont
BuildRequires:	texlive-manfnt
BuildRequires:	texlive-kpathsea
BuildRequires:	texlive-tex
BuildRequires:	texlive-knuth
BuildRequires:	texlive-hyphen-base
BuildRequires:	texlive-dehyph-exptl
BuildRequires:	texlive-hyphen-afrikaans
BuildRequires:	texlive-hyphen-ancientgreek
BuildRequires:	texlive-hyphen-armenian
BuildRequires:	texlive-hyphen-basque
BuildRequires:	texlive-hyphen-belarusian
BuildRequires:	texlive-hyphen-bulgarian
BuildRequires:	texlive-hyphen-catalan
BuildRequires:	texlive-hyphen-chinese
BuildRequires:	texlive-hyphen-churchslavonic
BuildRequires:	texlive-hyphen-coptic
BuildRequires:	texlive-hyphen-croatian
BuildRequires:	texlive-hyphen-czech
BuildRequires:	texlive-hyphen-danish
BuildRequires:	texlive-hyphen-dutch
BuildRequires:	texlive-hyphen-english
BuildRequires:	texlive-hyphen-esperanto
BuildRequires:	texlive-hyphen-estonian
BuildRequires:	texlive-hyphen-ethiopic
BuildRequires:	texlive-hyphen-finnish
BuildRequires:	texlive-hyphen-french
BuildRequires:	texlive-hyphen-friulan
BuildRequires:	texlive-hyphen-galician
BuildRequires:	texlive-hyphen-georgian
BuildRequires:	texlive-hyphen-german
BuildRequires:	texlive-hyphen-greek
BuildRequires:	texlive-hyphen-hungarian
BuildRequires:	texlive-hyphen-icelandic
BuildRequires:	texlive-hyphen-indic
BuildRequires:	texlive-hyphen-indonesian
BuildRequires:	texlive-hyphen-interlingua
BuildRequires:	texlive-hyphen-irish
BuildRequires:	texlive-hyphen-italian
BuildRequires:	texlive-hyphen-kurmanji
BuildRequires:	texlive-hyphen-latin
BuildRequires:	texlive-hyphen-latvian
BuildRequires:	texlive-hyphen-lithuanian
BuildRequires:	texlive-hyphen-mongolian
BuildRequires:	texlive-hyphen-norwegian
BuildRequires:	texlive-hyphen-occitan
BuildRequires:	texlive-hyphen-piedmontese
BuildRequires:	texlive-hyphen-polish
BuildRequires:	texlive-hyphen-portuguese
BuildRequires:	texlive-hyphen-romanian
BuildRequires:	texlive-hyphen-romansh
BuildRequires:	texlive-hyphen-russian
BuildRequires:	texlive-hyphen-sanskrit
BuildRequires:	texlive-hyphen-serbian
BuildRequires:	texlive-hyphen-slovak
BuildRequires:	texlive-hyphen-slovenian
BuildRequires:	texlive-hyphen-spanish
BuildRequires:	texlive-hyphen-swedish
BuildRequires:	texlive-thailatex
BuildRequires:	texlive-hyphen-turkish
BuildRequires:	texlive-hyphen-turkmen
BuildRequires:	texlive-hyphen-ukrainian
BuildRequires:	texlive-hyphen-uppersorbian
BuildRequires:	texlive-hyphen-welsh
BuildRequires:	texlive-amsfonts
BuildRequires:	texlive-amsmath
BuildRequires:	texlive-psnfss
%endif
BuildRequires:	gmp-devel
BuildRequires:	perl-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
Requires:	xdg-utils

%description
PARI/GP is a widely used computer algebra system designed for fast
computations in number theory (factorizations, algebraic number theory,
elliptic curves...), but also contains a large number of other useful
functions to compute with mathematical entities such as matrices,
polynomials, power series, algebraic numbers, etc., and a lot of
transcendental functions. PARI is also available as a C library to allow
for faster computations.

%files
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/gprc
%{_bindir}/gp-2.*
%{_bindir}/gp
%{_bindir}/gphelp
%{_bindir}/tex2mail
%{_mandir}/man1/[^g]*.1*
%{_mandir}/man1/gp.1*
%{_mandir}/man1/gp-*.1*
%{_mandir}/man1/gphelp.1*
%doc AUTHORS CHANGES COMPAT README
%doc %{pkgdatadir}/doc
%doc %{_docdir}/type*
%doc %{_docdir}/pari/translations

%if %{with pdfdoc}
%doc %{_docdir}/pari/*.pdf
%else
%doc %{_docdir}/pari/*.tex
%endif

#----------------------------------------------------------------------------

%package data
Summary:	Optional pari data packages
Group:		Sciences/Mathematics
Requires:	%{name}

%description data
- elldata is PARI/GP version of J. E. Cremona Elliptic Curve Data,
needed by ellsearch and ellidentify.
- galdata is needed by polgalois to compute Galois group in degrees
8 through 11.
- seadata is needed by ellap for large primes.
- nftables is a repackaging of the historical megrez number field
tables (errors fixed, 1/10th the size, easier to use).

%files data
%dir %{pkgdatadir}/data
%{pkgdatadir}/data/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared PARI library
Group:		System/Libraries
Conflicts:	%{_lib}pari2 < 2.5.2-3
Obsoletes:	%{_lib}pari2 < 2.5.2-3

%description -n %{libname}
This package contains the libraries needed to run pari.

%files -n %{libname}
%{_libdir}/lib%{name}-gmp.so.%{major}
%{_libdir}/lib%{name}-gmp.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for PARI shared library
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}
Provides:	libpari-devel = %{version}-%{release}
Conflicts:	%{_lib}pari2-devel < 2.5.2-5
Conflicts:	%{_lib}pari-gmp3-devel < 2.5.2-5
Obsoletes:	%{_lib}pari2-devel < 2.5.2-5
Obsoletes:	%{_lib}pari-gmp3-devel < 2.5.2-5

%description -n %{devname}
This package contains the header files needed to develop
applications using pari.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/*.so
%dir %{_libdir}/%{name}-%{gp2c_version}
%{_libdir}/%{name}-%{gp2c_version}/*

#----------------------------------------------------------------------------

%package -n gp2c
Summary:	PARI/GP to C translator
Version:	%{gp2c_version}
Group:		Development/C
Requires:	%{name}

%description -n gp2c
PARI/GP to C translator. Use it to compile your own C
programs which use pari library, without necessarily being
a C programmer.

Note: use gp2c-run to run your programs inside the PARI/GP
environment.

%files -n gp2c
%attr(755,root,root) %{_bindir}/gp2c*
%doc gp2c-%{gp2c_version}/{AUTHORS,ChangeLog,NEWS,README,BUGS}
%{pkgdatadir}/gp2c
%{_mandir}/man1/gp2c*.1*
%{_docdir}/gp2c*

#----------------------------------------------------------------------------

%prep
%setup -q -a1 -a2 -a3 -a4 -a5 -a6
mv -f nftables data

%autopatch -p1

%if %{with pdfdoc}
#create font map files for build doc
updmap --force
%endif

%build

# Using --libdir to properly link with newer interface
# Using --disable-tls for safety due to other packages linked to pari
sh Configure \
	--prefix=%{_prefix} \
	--includedir=%{_includedir} \
	--datadir=%{pkgdatadir}/data \
	--sysdatadir=%{_libdir}/%{name}-%{version} \
	--share-prefix=%{_datadir} \
	--host=%{_arch}-%{_os} \
	--graphic=X11 \
	--with-gmp \
	--libdir=%{buildroot}%{_libdir} \
	--disable-tls

make \
    gp \
%if %{with pdfdoc}
    docpdf \
%endif
    bench

# gp2c
pushd gp2c-%{gp2c_version}
%configure \
	--datadir=%{pkgdatadir} \
	--with-paricfg=../Olinux-%{_arch}/pari.cfg

# FIXME just satisfy build dependency
ln -sf ../config/missing desc

make
popd

%install
# pari, libpari & libpari-devel
%makeinstall_std \
	READMEDIR='$(DESTDIR)'%{pkgdocdir} \
	LIBDIR='$(DESTDIR)'%{_libdir} \
	DOCDIR='$(DESTDIR)'%{pkgdocdir}

# gp2c
cd gp2c-%{gp2c_version}
%makeinstall_std \
	docdir=%{_docdir}
cd ..

# Install global configuration file.
mkdir %{buildroot}/%{_sysconfdir}
# Add some more reasonable "commented" sample configurations
sed	-e 's@/usr/local/@%{_prefix}/@' \
	-e 's@path =.*@path = "%{pkgdatadir}:.:~/gpdir"@' \
	-e 's@lib/gpalias@misc/gpalias@' \
	misc/gprc.dft > %{buildroot}/%{_sysconfdir}/gprc

# don't need to install this file...
rm -f %{pkgdocdir}/%{name}/Makefile

# gphelp wants docs in %{pkgdatadir}/data/doc (removing the /data/ requirement)
ln -sf %{pkgdocdir} %{buildroot}%{pkgdatadir}/doc
perl -pi -e 's@%{pkgdatadir}/data@%{pkgdatadir}@;' \
	%{buildroot}/%{_bindir}/gphelp

%if %{with pdfdoc}
rm -f %{buildroot}%{_docdir}/pari/*.tex
rm -f %{buildroot}%{_docdir}/pari/*.dvi
cp doc/*.pdf %{buildroot}%{_docdir}/pari
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3940 |21cr|parley-18.12.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Vocabulary training application
Name:		parley
Version:	18.12.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/parley
Source0:	ftp://ftp.kde.org/pub/kde/stable/applications/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libkeduvocdocument-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kdeedu-data
Requires:	python-mwclient
Conflicts:	kde5-l10n < 17.04
# Likely needs Kross as well

%description
Parley is a program to help you memorize things.

Parley supports many language specific features but can be used for other
learning tasks just as well. It uses the spaced repetition learning method,
also known as flash cards.

%files -f %{name}.lang
%doc COPYING COPYING.DOC AUTHORS
%{_kde5_applicationsdir}/org.kde.parley.desktop
%{_kde5_bindir}/parley
%{_kde5_datadir}/config.kcfg/parley.kcfg
%{_kde5_datadir}/config.kcfg/languagesettings.kcfg
%{_kde5_datadir}/config.kcfg/documentsettings.kcfg
%{_kde5_datadir}/parley
%{_kde5_iconsdir}/*/*/actions/*
%{_kde5_iconsdir}/*/*/apps/parley*
%{_kde5_sysconfdir}/xdg/parley.knsrc
%{_kde5_sysconfdir}/xdg/parley-themes.knsrc
%{_kde5_xmlguidir}/parley/*
%{_appdatadir}/org.kde.parley.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5_kf5locales
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html
%kf5locales_fix %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3941 |21cr|parley-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Vocabulary training application
Name:		parley
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/parley
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libkeduvocdocument-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kdeedu-data
Requires:	python3-mwclient
# Likely needs Kross as well

%description
Parley is a program to help you memorize things.

Parley supports many language specific features but can be used for other
learning tasks just as well. It uses the spaced repetition learning method,
also known as flash cards.

%files -f %{name}.lang
%doc AUTHORS
%{_kde5_applicationsdir}/org.kde.parley.desktop
%{_kde5_bindir}/parley
%{_kde5_datadir}/config.kcfg/parley.kcfg
%{_kde5_datadir}/config.kcfg/languagesettings.kcfg
%{_kde5_datadir}/config.kcfg/documentsettings.kcfg
%{_kde5_datadir}/parley
%{_kde5_datadir}/knsrcfiles/parley-themes.knsrc
%{_kde5_datadir}/knsrcfiles/parley.knsrc
%{_kde5_iconsdir}/*/*/actions/*
%{_kde5_iconsdir}/*/*/apps/parley*
%{_kde5_xmlguidir}/parley/*
%{_appdatadir}/org.kde.parley.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3942 |21cr|parole-4.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f 1,2)
%define _disable_rebuild_configure 1

Summary:	A modern media player based on the GStreamer framework
Name:		parole
Version:	4.16.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/applications/parole
Source0:	https://archive.xfce.org/src/apps/parole/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(libxfce4ui-2) >= 4.12
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	libnotify-devel
BuildRequires:	taglib-devel
BuildRequires:	pkgconfig(dbus-glib-1)
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-ugly
Requires:	gstreamer1.0-libav
Requires:	gstreamer1.0-a52dec

%description
New media player for Xfce desktop environment.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README* NEWS TODO THANKS
%{_bindir}/%{name}
%{_libdir}/parole-0/*.so
%{_datadir}/metainfo/*
%{_datadir}/applications/org.xfce.Parole.desktop
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/%{name}

#----------------------------------------------

%package %{name}-devel
Summary:	Development files for %{name}
Group:		Development/C

%description %{name}-devel
Development files and headers for %{name}.

%files %{name}-devel
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h

#----------------------------------------------

%prep
%setup -q

%build
export LDFLAGS="-lc"

%configure \
	--disable-static \
	--with-gstreamer=1.0

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3943 |21cr|partclone-0.3.20-0.gitf5082c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit f5082c41b53bf4d4715e9d9413c941e99bf223e2
%define commit_short %(echo %{commit} | head -c6)

Summary:	File System Clone Utilities
Name:		partclone
Version:	0.3.20
Release:	0.git%{commit_short}.1
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://partclone.sf.net
Source0:	https://github.com/Thomas-Tsai/partclone/archive/%{commit}.zip?/%{name}-%{commit}.zip
Patch0:		partclone-drop-failmbr.patch
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	ntfs-3g
BuildRequires:	pkgconfig(libntfs-3g)
BuildRequires:	pkgconfig(mount)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	reiser4progs-devel

%description
Partclone provides utilities to back up and restore used-blocks of a partition
and it is designed for higher compatibility of the file system by using
existing library, e.g. e2fslibs is used to read and write the ext2 partition.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README.md TODO
#{_datadir}/%{name}/fail-mbr.bin
%{_mandir}/man?/*
%{_sbindir}/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%configure \
	--enable-btrfs \
	--enable-extfs \
	--enable-fat \
	--enable-hfsp \
	--enable-ncursesw \
	--enable-ntfs \
	--enable-xfs \
	--enable-fuse \
	--enable-reiser4 \
	--enable-exfat \
	--enable-f2fs \
	--enable-ncursesw

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3944 |21cr|pascalabcnet-3.9.0-1.gitf309df.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global __requires_exclude mono\\(\\(PresentationCore\\|PresentationFramework\\\)\\)

%define commit f309dfc7aa23d23face8874296f28a40704f059d
%define commit_short %(echo %{commit} | head -c6)

Name:		pascalabcnet
Version:	3.9.0
Release:	1.git%{commit_short}.3
Summary:	PascalABC.NET programming language
License:	LGPL-3.0
Group:		Development/Other
Url:		http://pascalabc.net/
# VCS: https://github.com/pascalabcnet/pascalabcnet
Source0:	https://github.com/pascalabcnet/pascalabcnet/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	PascalABCNETLinux.desktop
Source2:	icons.tar
Source3:	PascalABCNETLinux.appdata.xml

ExcludeArch:	%{riscv} %{e2k}

BuildRequires: mono-devel
BuildRequires: mono-locale-extras

Requires: mono-devel
Requires: mono-locale-extras


%description
PascalABC.NET is a Pascal programming language that implements classic Pascal,
most Delphi language features, as well as a number of their own extensions. It
is implemented on the .NET Framework platform and contains all the modern
language features: classes, operator overloading, interfaces, exception
handling, generic classes and routines, garbage collection, lambda expressions,
parallel programming tools.

%files
%doc README.md doc/*
%{_bindir}/PascalABCNETLinux
%{_bindir}/%{name}
%{_bindir}/pabcnetc
%{_bindir}/pabcnetcclear
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/PascalABCNETLinux.exe
%{_libexecdir}/%{name}/pabcnetc.exe
%{_libexecdir}/%{name}/pabcnetcclear.exe
%{_libexecdir}/%{name}/Highlighting
%{_libexecdir}/%{name}/Lib*
%{_libexecdir}/%{name}/Lng
%{_libexecdir}/%{name}/Samples
%{_libexecdir}/%{name}/*.dll
%{_libexecdir}/%{name}/*.chm
%{_libexecdir}/%{name}/*.config
%{_libexecdir}/%{name}/*.pct
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/pascalabcnet.png
%{_datadir}/metainfo/*.appdata.xml

#---------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}

# Use xbuild insead of msbuild
#sed -i 's/msbuild/xbuild/' _RebuildReleaseAndRunTests.sh

# Remove proprietary part
rm -rf bin/PT4

# make language
cd Utils/DefaultLanguageResMaker
mono LanguageResMaker.exe
cd ../..

# Remove all binaries
find . -name \*.exe -delete
# TODO remove bundled libraries
#find . -name \*.dll -delete
rm -f bin/*.dll
tar xf %{SOURCE2}

%build
# not use _RebuildReleaseAndRunTests.sh, we need control build process
MONO_IOMAP=case xbuild /p:Configuration=Release pabcnetc.sln
MONO_IOMAP=case xbuild /p:Configuration=Release PascalABCNETLinux.sln
mono --aot bin/pabcnetc.exe
mono --aot bin/NETGenerator.dll
mono --aot bin/TreeConverter.dll
mono --aot bin/Compiler.dll
mono --aot bin/SyntaxTree.dll
mono --aot bin/SemanticTree.dll
mono --aot bin/PascalABCParser.dll
mono --aot bin/ParserTools.dll
mono --aot bin/CompilerTools.dll
mono --aot bin/OptimizerConversion.dll
mono --aot bin/Errors.dll
export MONO_IOMAP=all
cd ReleaseGenerators
mono ../bin/pabcnetc.exe RebuildStandartModulesMono.pas  /rebuild
#cd ../bin
#mono TestRunner.exe
#cd ..

%install
# Install executables and modules
mkdir -p %{buildroot}%{_libexecdir}/%{name}/{Lib,LibSource,Lng,Highlighting,Samples/Graphics}
cp -a bin/*.{exe,dll,chm,config} %{buildroot}%{_libexecdir}/%{name}
cp -a bin/template.pct %{buildroot}%{_libexecdir}/%{name}
cp -a bin/Highlighting/PascalABCNET.xshd %{buildroot}%{_libexecdir}/%{name}/Highlighting
cp -a bin/Lib/*.pcu %{buildroot}%{_libexecdir}/%{name}/Lib
cp -a bin/Lng/* %{buildroot}%{_libexecdir}/%{name}/Lng

# Install sources
cp -a bin/Lib/*.pas %{buildroot}%{_libexecdir}/%{name}/LibSource

# Install samples
cp -a InstallerSamples/!MainFeatures %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/!Tutorial  %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/!РусскиеИсполнители %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/Algorithms %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/Applications %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/Games %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/LanguageFeatures %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/LINQ %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/NETLibraries %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/Other %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/StandardUnits %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/WhatsNew %{buildroot}%{_libexecdir}/%{name}/Samples
cp -a InstallerSamples/Graphics/GraphABC %{buildroot}%{_libexecdir}/%{name}/Samples/Graphics

# Install executable wrappers
mkdir -p %{buildroot}%{_bindir}

# Executable wrappers
cat > %{buildroot}%{_bindir}/pabcnetc << ENDF
#!/bin/bash
export MONO_IOMAP=all
mono %{_libexecdir}/pascalabcnet/pabcnetc.exe \$@
ENDF
chmod +x %{buildroot}%{_bindir}/pabcnetc

cat > %{buildroot}%{_bindir}/pabcnetcclear << ENDF
#!/bin/bash
export MONO_IOMAP=all
mono %{_libexecdir}/pascalabcnet/pabcnetcclear.exe \$@
ENDF
chmod +x %{buildroot}%{_bindir}/pabcnetcclear

cat > %{buildroot}%{_bindir}/PascalABCNETLinux << ENDF
#!/bin/bash
export MONO_IOMAP=all
export MONO_REGISTRY_PATH=\$HOME/PABCWork.NET
export MONO_HELP_VIEWER=kchmviewer
[ -d "\$MONO_REGISTRY_PATH" ] || mkdir -p "\$MONO_REGISTRY_PATH"
mono %{_libexecdir}/pascalabcnet/PascalABCNETLinux.exe "\$@"
ENDF
chmod +x %{buildroot}%{_bindir}/PascalABCNETLinux
ln -s PascalABCNETLinux %{buildroot}%{_bindir}/%{name}

# Install desktop file and icons
install -Dpm0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/PascalABCNETLinux.desktop
pushd icons
for icon in *.png; do
	size="${icon#pascalabcnet-}"
	size="${size%.png}"
	install -Dpm0644 $icon %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/pascalabcnet.png
done
popd

# Install appdata.xml
install -Dpm 0644 %{SOURCE3} %{buildroot}%{_datadir}/metainfo/PascalABCNETLinux.appdata.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3945 |21cr|pass-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A password manager using standard Unix tools
Name:		pass
Version:	1.7.1
Release:	1
License:	GPLv2+
Group:		Databases
Url:		https://www.passwordstore.org/
Source0:	https://git.zx2c4.com/password-store/snapshot/password-store-%{version}.tar.xz
Patch0:		gnupg1-support.patch
Patch1:		editor.patch
Requires:	git
Requires:	gnupg
Requires:	pwgen
Requires:	tree >= 1.7.0
Requires:	xclip
BuildArch:	noarch

%description
Stores, retrieves, generates, and synchronizes passwords securely using gpg,
pwgen, and git.

%files
%doc README COPYING contrib
%{_bindir}/pass
%{_datadir}/bash-completion/completions/pass
%{_datadir}/zsh/site-functions/_pass
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -n password-store-%{version}
%patch0 -p1
%patch1 -p1
rm -f contrib/emacs/.gitignore

%build

%install
%makeinstall_std \
	PREFIX=%{_prefix} \
	BINDIR=%{_bindir} \
	SYSCONFDIR=%{_sysconfdir} \
	MANDIR=%{_mandir} \
	FORCE_ALL=1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3946 |21cr|passwd-gen-1.01a-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		passwd-gen
Version:	1.01a
Release:	15
Summary:	Password generator
License:	GPL
Group:		System/Base
Source:		%{name}-%{version}.tar.bz2
#gw: remove a compiler warning and convert the output message to UTF-8
Patch0:		passwd-gen-1.01a-warning.patch
Patch1:		passwd-gen-1.01a-debug.patch

%description
passwd-gen is a very powerful password generator written in C to help
you choose a good password. It contains many options to help you
customize your password. The program has been developed for Linux but
may run on many other system (if you are using it from something else
than linux, please contact the author).

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%make CFLAGS="%{optflags}"

%install
install -d 755 %{buildroot}%{_bindir}
install %{name} %{buildroot}%{_bindir}

%clean

%files
%doc AUTHORS ChangeLog COPYING INSTALL README TODO
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3947 |21cr|passwdqc-1.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A password/passphrase strength checking and policy enforcement toolset
Name:		passwdqc
Version:	1.3.1
Release:	3
License:	BSD
Group:		System/Libraries
URL:		http://www.openwall.com/passwdqc/
Source0:	http://www.openwall.com/passwdqc/%{name}-%{version}.tar.gz
Source1:	http://www.openwall.com/passwdqc/%{name}-%{version}.tar.gz.sign
Requires:	pam_passwdqc >= %{version}-%{release}
BuildRequires:	pam-devel

%description
passwdqc is a password/passphrase strength checking and policy enforcement
toolset, including a PAM module (pam_passwdqc), command-line programs
(pwqcheck and pwqgen), and a library (libpasswdqc).

pam_passwdqc is normally invoked on password changes by programs such as
passwd(1).  It is capable of checking password or passphrase strength,
enforcing a policy, and offering randomly-generated passphrases, with
all of these features being optional and easily (re-)configurable.

pwqcheck and pwqgen are standalone password/passphrase strength checking
and random passphrase generator programs, respectively, which are usable
from scripts.

libpasswdqc is the underlying library, which may also be used from
third-party programs.

%files
%defattr(-,root,root)
%doc LICENSE README
%config(noreplace) %{_sysconfdir}/passwdqc.conf
%{_bindir}/pwqcheck
%{_bindir}/pwqgen
%{_mandir}/man1/pwqcheck.1*
%{_mandir}/man1/pwqgen.1*
%{_mandir}/man5/passwdqc.conf.5*

#------------------------------------------------------------------------

%package -n	%{libname}
Summary:        Libraries for password/passphrase strength checking and policy enforcement
Group:          System/Libraries

%description -n	%{libname}
passwdqc is a password/passphrase strength checking and policy enforcement
toolset, including a PAM module (pam_passwdqc), command-line programs
(pwqcheck and pwqgen), and a library (libpasswdqc).

libpasswdqc is the underlying library, which may also be used from
third-party programs.

%files -n %{libname}
%defattr(-,root,root)
/%{_lib}/lib*.so.%{major}*

#------------------------------------------------------------------------

%package -n	pam_passwdqc
Summary:	PAM module for passwdqc
Group:		System/Libraries

%description -n	pam_passwdqc
passwdqc is a password/passphrase strength checking and policy enforcement
toolset, including a PAM module (pam_passwdqc), command-line programs
(pwqcheck and pwqgen), and a library (libpasswdqc).

pam_passwdqc is normally invoked on password changes by programs such as
passwd(1).  It is capable of checking password or passphrase strength,
enforcing a policy, and offering randomly-generated passphrases, with
all of these features being optional and easily (re-)configurable.

%files -n pam_passwdqc
%defattr(-,root,root)
/%{_lib}/security/pam_passwdqc.so
%{_mandir}/man8/pam_passwdqc.8*

#------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Libraries and header files for building passwdqc-aware applications
Group:		Development/Other
Requires:	%{libname} >=  %{EVRD}
Provides:	%{name}-devel =  %{EVRD}

%description -n %{devname}
This package contains development libraries and header files needed for
building passwdqc-aware applications.

%files -n %{devname}
%defattr(-,root,root)
%{_includedir}/*.h
%{_libdir}/lib*.so

#------------------------------------------------------------------------

%prep
%setup -q

%build
%make \
    CFLAGS_lib="%{optflags} -fPIC -DLINUX_PAM" \
    CFLAGS_bin="%{optflags} -fPIC" \
    LDFLAGS="%{ldflags}" \
    LDFLAGS_shared="%{ldflags} --shared" \
    LDFLAGS_shared_LINUX="%{ldflags} --shared"

%install
rm -rf %{buildroot}

make install DESTDIR=%{buildroot} \
    MANDIR=%{_mandir} SHARED_LIBDIR=/%{_lib} \
    DEVEL_LIBDIR=%{_libdir} SECUREDIR=/%{_lib}/security

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3948 |21cr|pastebinit-1.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Send anything you want directly to a pastebin from the command line
Name:		pastebinit
Version:	1.5.1
Release:	2
License:	GPLv2+
Group:		Networking/Other
Url:		https://launchpad.net/pastebinit
Source0:	https://github.com/felixonmars/pastebinit/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	xsltproc
Requires:	python3-configobj
BuildArch:	noarch

%description
A software that lets you send anything you want directly to a
pastebin from the command line.  This software lets you send a file
or simply the result of a command directly to the pastebin you want
(if it's supported) and gives you the URL in return.

%files -f %{name}.lang
%doc COPYING README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_datadir}/%{name}/
%dir %{_sysconfdir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
# Change the location of pastebin config file from /etc/pastebin.d/
# to /usr/share/pastebinit/ (unappropriate dir. name "pastebinit.d"
# + FHS)
# See https://bugs.launchpad.net/pastebinit/+bug/621923
#
sed -i "s|pastebin.d|%{name}|g" %{name} README

%build
# Generate the man page from docbook xml
xsltproc -''-nonet %{_datadir}/sgml/docbook/xsl-stylesheets*/manpages/docbook.xsl pastebinit.xml

# Build translation
pushd po
%make
popd

%install
mkdir -p %{buildroot}%{_datadir}/
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/

cp -a pastebin.d %{buildroot}%{_datadir}
mv %{buildroot}%{_datadir}/pastebin.d/ %{buildroot}%{_datadir}/%{name}/

install -m 0755 -D -p %{name} %{buildroot}%{_bindir}/%{name}
install -m 0644 -D -p %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

# Install translations
pushd po
cp -a mo %{buildroot}%{_datadir}/locale/
popd

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3949 |21cr|patchage-1.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A modular patch bay for audio and MIDI systems
Name:		patchage
Version:	1.0.8
Release:	1
License:	GPLv2+
Group:		Sound
Url:			http://drobilla.net/software/patchage.html
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	meson >= 0.56.0
BuildRequires:	ninja
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(ganv-1) >= 1.5.2
BuildRequires:	pkgconfig(glib-2.0) >= 2.14.0
BuildRequires:	pkgconfig(glibmm-2.4) >= 2.14.0
BuildRequires:	pkgconfig(gtkmm-2.4) >= 2.12.0
BuildRequires:	pkgconfig(jack) >= 0.120.0
BuildRequires:	pkgconfig(libglademm-2.4)

%description
Patchage is a modular patch bay for audio and MIDI systems based on Jack and
Alsa.

%files
%doc AUTHORS COPYING NEWS README.md
%{_mandir}/man1/%{name}.1.*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.svg

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3950 |21cr|patchutils-0.3.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Patches utilities 
Name:		patchutils
Version:	0.3.4
Release:	3
License:	GPLv2+
Group:		Text tools
URL:		http://cyberelk.net/tim/software/patchutils/
Source0:	http://cyberelk.net/tim/data/patchutils/stable/%{name}-%{version}.tar.xz
Source1:	http://cyberelk.net/tim/data/patchutils/stable/%{name}-%{version}.tar.xz.sig
Patch0:		patchutils-0.3.1-format_not_a_string_literal_and_no_format_arguments.patch
Requires:	patch
Requires:	diffutils
Provides:	interdiff
Obsoletes:	interdiff < 0.3.1

%description
Patchutils contains interdiff and filterdiff.

You can use interdiff to create an incremental patch between two patches
that are against a common source tree.

Filterdiff is for extracting or excluding patches from a patch set based
on modified files matching shell wildcards.

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%check
make tests

%install
%makeinstall_std

%files
%doc BUGS ChangeLog TODO COPYING
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3951 |21cr|patience-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Patience

Summary:	%{theme_name} theme
Name:		patience
Version:	0.2
Release:	2
License:        GPLv3+
Group:		Graphics
Url:		https://github.com/rastikerdar/patience-gtk-theme/
Source0:	Patience.tar.bz2
BuildArch:	noarch
Requires: 	patience-common
Requires: 	patience-gtk2-theme
Requires: 	patience-gtk3-theme
Requires: 	patience-metacity-theme

%description
Patience GTK2,GTK3,Metacity theme

%files
%doc LICENSE.CC LICENSE.GPL README.md

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%doc LICENSE.CC LICENSE.GPL
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%doc LICENSE.CC LICENSE.GPL
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%doc LICENSE.CC LICENSE.GPL
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%doc LICENSE.CC LICENSE.GPL
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {index.theme,gtk-2.0,gtk-3.0,metacity-1} %{buildroot}%{_datadir}/themes/%{theme_name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3952 |21cr|pavucontrol-qt-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt port of volume control pavucontrol
Name:		pavucontrol-qt
Version:	0.14.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/pavucontrol-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		pavucontrol-qt-0.1.0-naming.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	xdg-user-dirs
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(lxqt) >= 0.11.0
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xdg)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(glib-2.0)
Provides:	pulseaudio-volume-control = %{EVRD}
Conflicts:	lxqt-l10n < 0.14.0
Obsoletes:	lxqt-l10n < 0.14.0

%description
Qt port of volume control pavucontrol.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/%{name}
%{_bindir}/pavucontrol
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make_build

%install
%make_install -C build

ln -s %{name} %{buildroot}%{_bindir}/pavucontrol

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3953 |21cr|paxctl-0.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool that allows PaX flags to be modified on a per-binary basis
Name:		paxctl
Version:	0.9
Release:	3
License:	Public Domain
Group:		System/Configuration/Other
URL:		http://pax.grsecurity.net
Source0:	http://pax.grsecurity.net/%{name}-%{version}.tar.gz

%description
This is paxctl for controlling PaX flags on a per binary basis. PaX
is an intrusion prevention system that provides the best protection
mechanisms against memory corruption bugs. Some applications are not
compatible with certain features (due to design or bad engineering)
and therefore they have to be exempted from certain enforcements. It
is also possible to use PaX in soft mode where none of the protection
mechanisms are active by default - here paxctl can be used to turn
them on for selected programs (e.g., network daemons, programs that
process network data such as mail clients, web browsers, etc).

%prep
%setup -q

%build 
%make CFLAGS="$RPM_OPT_FLAGS"

%install
mkdir -p %{buildroot}/sbin %{buildroot}%{_mandir}/man1
cp -p %{name}.1* %{buildroot}%{_mandir}/man1
cp -p %{name} %{buildroot}/sbin

%files 
%defattr(644,root,root,0755) 
%doc README ChangeLog
%{_mandir}/man1/%{name}.1*
%defattr(-,root,root,0755)
/sbin/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3954 |21cr|pbm2l2030-1.4-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Driver for the Lexmark 2030 printer
Name:		pbm2l2030
Version:	1.4
Release:	22
License:	GPLv2+
Group:		System/Printing
Url:		http://home.fhtw-berlin.de/~s0226426/projects/pbm2l2030_faq.html
Source0:	http://home.fhtw-berlin.de/~s0226426/projects/pbm2l2030-%{version}.tar.bz2
Patch0:		pbm2l2030-1.4-LDFLAGS.diff

%description
Lexmark 2030 Color Jetprinter printer driver.

%files
%doc README* LICENSE
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -c -q
%patch0 -p0

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}

install -m 0755 %{name} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3955 |21cr|pbm2lwxl-0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A driver for the CoStar Labelwriter XL
Name:		pbm2lwxl
Version:	0
Release:	19
License:	GPLv2+
Group:		System/Printing
Url:		http://www.freelabs.com/~whitis/software/pbm2lwxl
Source0:	http://www.freelabs.com/~whitis/software/pbm2lwxl/pbm2lwxl.tar.gz
Patch0:		pbm2lwxl-20040515-path.patch
Patch1:		pbm2lwxl-LDFLAGS.diff
Requires:	ghostscript
Requires:	mpage

%description
A driver for the CoStar printers:
 o LabelWriter II
 o LabelWriter XL+
 o Labelwriter XL
 o EL40
 o EL60
 o Turbo
 o SE250
 o SE250+
 o ASCII
 o ASCII+
 o LW300
 o LW330
 o LW330 Turbo

And Avery Printers:
 o Personal Label Printer and Personal Label Printer+???

%files
%license license.html
%doc README index.html
%attr(0755,root,root) %{_bindir}/pbm2lwxl
%attr(0755,root,root) %{_bindir}/ps2lwxl
%attr(0755,root,root) %{_bindir}/small2lwxl
%attr(0755,root,root) %{_bindir}/txt2lwxl

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -a0
%patch0 -p1 -b .path
%patch1 -p0 -b .LDFLAGS

%build
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}

install -m0755 pbm2lwxl %{buildroot}%{_bindir}/
install -m0755 ps2lwxl %{buildroot}%{_bindir}/
install -m0755 txt2lwxl %{buildroot}%{_bindir}/
install -m0755 small2lwxl %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3956 |21cr|pbsweb-butf-0.9-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		pbsweb-butf
Version:	0.9
Release:	14
Summary: 	PBSWeb
License:	GPL 
Group:		Monitoring 
Provides: 	pbsweb-butf
Url:		http://www.cs.ualberta.ca/~pinchak/PBSWeb/
Source:		%{name}-%{version}.tar.bz2
Source1:	setup_postgres_pbs
Patch0:		pbsweb-createdb.psql.patch.bz2
Patch1:		pbsweb-dbutils.php.patch.bz2
Requires:	mod_php
Requires:	php-xml
Requires:	php-pgsql
Requires:	postgresql-server
BuildArch:      noarch

%description
PBSWeb was designed as an aid to the Portable Batch System (PBS) job 
scheduler.  PBS is responsible for scheduling jobs on high-performance 
(often massively parallel) machines so as to ensure fair access to 
resources.  However, many users find PBS hard to use.  PBS requires 
users to write scripts containing complex directives and options, and 
so many potential users avoid using PBS and the machine upon which it 
is installed. PBSWeb simplifies the task of creating these scripts by 
allowing the user to specify these directives and options through the 
use of HTML forms.

%prep 
%setup
%patch0 -p0 
%patch1 -p0 
cp %{SOURCE1} .

%build
chmod 644 Papers/*
chmod 644 README.PBSWeb 
chmod 644 createdb.psql

%install
mkdir -p %{buildroot}/var/www/html/pbsweb
mv %{_builddir}/%{name}-%{version}/PBSWebExport/* %{buildroot}/var/www/html/pbsweb/
chmod 755 %{buildroot}/var/www/html/pbsweb/img
chmod 644 %{buildroot}/var/www/html/pbsweb/img/*

%files 
%defattr(-,root,root)
%doc Papers/* README.PBSWeb createdb.psql setup_postgres_pbs
%attr(644,postgres,postgres) /var/www/html/pbsweb/*.php
%attr(644,postgres,postgres) /var/www/html/pbsweb/*.py
%attr(644,postgres,postgres) /var/www/html/pbsweb/*.html
%attr(755,postgres,postgres) /var/www/html/pbsweb/Help
/var/www/html/pbsweb/img/*
/var/www/html/pbsweb/Makefile
/var/www/html/pbsweb/*.txt

%post
hostserver=`hostname`
pbswebdocroot="/var/www/html/pbsweb"
cp ${pbswebdocroot}/PBSWebConstants.php ${pbswebdocroot}/PBSWebConstants.php.sauv
sed -e 's/^$DEFAULTHOST.*/\$DEFAULTHOST="'${hostserver}'"\;/' ${pbswebdocroot}/PBSWebConstants.php.sauv > ${pbswebdocroot}/PBSWebConstants.php
mkdir -p /var/tmp/pbsweb.upload
chown -R postgres.pbs /var/tmp/pbsweb.upload

# apache modification
apache_conf=/etc/httpd/conf
cp ${apache_conf}/commonhttpd.conf ${apache_conf}/commonhttpd.conf.pbsweb
sed -e 's/^User apache/User postgres/' ${apache_conf}/commonhttpd.conf.pbsweb > ${apache_conf}/commonhttpd.conf.pbsweb1
sed -e 's/^Group apache/Group postgres/' ${apache_conf}/commonhttpd.conf.pbsweb1 > ${apache_conf}/commonhttpd.conf
rm -f ${apache_conf}/commonhttpd.conf.pbsweb1

%clean
rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3957 |21cr|pbzip2-1.1.13-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Parallel implementation of bzip2
Name:		pbzip2
Version:	1.1.13
Release:	3
License:	BSD
Group:		Archiving/Other
URL:		http://www.compression.ca/pbzip2/
Source0:	https://launchpad.net/pbzip2/%{url_ver}/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	bzip2-devel

%description
PBZIP2 is a parallel implementation of the bzip2 block-sorting file
compressor that uses pthreads and achieves near-linear speedup on SMP
machines.  The output of this version is fully compatible with bzip2
v1.0.2 or newer (ie: anything compressed with pbzip2 can be 
decompressed with bzip2).


%prep
%setup -q
sed -i -e 's/ -O2/ %{optflags} /' Makefile

%build
make

%install
install -D -m755 %{name} %{buildroot}%{_bindir}/%{name}
install -D -m644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
ln -sf ./%{name} %{buildroot}%{_bindir}/pbunzip2
ln -sf ./%{name} %{buildroot}%{_bindir}/pbzcat

%files
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/%{name}
%{_bindir}/pbunzip2
%{_bindir}/pbzcat
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3958 |21cr|pcapsipdump-0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PCAP SIP Dump tool
Name:		pcapsipdump
Version:	0.2
Release:	3
License:	GPLv2
Group:		System/Servers
Url:		http://pcapsipdump.sourceforge.net
Source:		https://sourceforge.net/projects/pcapsipdump/files/pcapsipdump/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	libpcap-devel

%description
pcapsipdump is a tool for dumping SIP sessions (+RTP
traffic, if available) to disk in a fashion similar
to "tcpdump -w" (format is exactly the same), but one
file per sip session (even if there is thousands of
concurrent SIP sessions).

%prep
%setup -q

%build
CPPFLAGS="%{optflags}" %make

%install
mkdir -p %{buildroot}/usr/sbin %{buildroot}/etc/sysconfig %{buildroot}/etc/rc.d/init.d %{buildroot}/var/spool
%makeinstall_std

%post
chkconfig pcapsipdump --add

%files
%config(noreplace) %attr(0755,root,root) /etc/sysconfig/pcapsipdump
%attr(0700,root,root) %dir    /var/spool/pcapsipdump
%attr(0755,root,root)       /etc/rc.d/init.d/pcapsipdump
%attr(0755,root,root)      /usr/sbin/pcapsipdump

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3959 |21cr|pcb-4.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pcb
Version:	4.3.0
Epoch:		1
Release:	1
Summary:	An interactive printed circuit board editor
License:	GPLv2
Group:		Sciences/Other
URL:		http://pcb.sourceforge.net
Source0:	https://sourceforge.net/projects/pcb/files/pcb/pcb-%{version}/pcb-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	gd-devel
BuildRequires:	tk
BuildRequires:	dbus-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	gtkglext-devel
BuildRequires:	dbus-devel
BuildRequires:	gd-devel
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	intltool
BuildRequires:	flex
Requires:	m4

%description
PCB is an interactive printed circuit board editor.
PCB includes a rats nest feature, design rule checking, and can provide
industry standard RS-274-X (Gerber), NC drill, and centroid data (X-Y data)
output for use in the board fabrication and assembly process. PCB offers
high end features such as an autorouter and trace optimizer which can
tremendously reduce layout time.

%prep
%autosetup -p1
#manual update config.guess and config.sub
for f in config.guess config.sub ; do
        test -f /usr/share/libtool/config/$f || continue
        find . -type f -name $f -exec cp /usr/share/libtool/config/$f \{\} \;
done

sed -i \
   's|examplesdir = $(pkgdatadir)/examples|examplesdir = @docdir@/examples|' \
   example/libraries/Makefile.*

sed -i \
   's|tutdir = $(pkgdatadir)/tutorial|tutdir = @docdir@/tutorial|' \
   tutorial/Makefile.*

%build
export CFLAGS=`echo %{optflags} | sed "s/-D_FORTIFY_SOURCE=2 // g" -`

# configure macros do autoreconf were be fail
./configure --prefix=%{_prefix} \
	--sysconfdir=%{_sysconfdir} \
	--localstatedir=%{_localstatedir} \
	--libdir=%{_libdir} \
	--enable-dbus \
	--enable-toporouter \
	--disable-update-mime-database \
	--disable-update-desktop-database \
	--docdir=%{_docdir}/%{name}-%{version}

%make

%install
%makeinstall_std

desktop-file-install --vendor ""               \
    --dir %{buildroot}%{_datadir}/applications \
    --delete-original                          \
    %{buildroot}%{_datadir}/applications/%{name}.desktop

#
# Additional Examples
#
set +x
dest=%{buildroot}%{_docdir}/%{name}-%{version}/examples
for d in thermal pad puller ; do
   echo -n -e "... Fixing path of $d  \t"
   mkdir -p $dest/$d
   mv $dest/../$d.* $dest/$d
   install -pm 0644 doc/$d.{pcb,pdf} $dest/$d
   sed -i "s|$d.png|examples/$d/$d.png|" $dest/../%{name}.html
   echo "done"
done
set -x

## --- pcb supports for acpcircuits
# http://www.apcircuits.com/resources/links/pcb_unix.html
unzip tools/apctools.zip
install -p -m 755 apc*.pl  %{buildroot}%{_datadir}/%{name}/tools

# Removes duplicates
rm -f %{buildroot}%{_datadir}/%{name}/tools/apctools.zip

# Old versions of PCB don't support autoroute, pcb2ncap convert
# pcb format to ncap format used for mucspcb to autoroute the circuit.
# In newer versions of PCB, autoroute is included and pcb2ncap and mucspcb
# are no more needed.
rm -f %{buildroot}%{_datadir}/%{name}/tools/pcb2ncap.tgz

chmod 755 %{buildroot}%{_datadir}/%{name}/tools/{PCB2HPGL,tgo2pcb.tcl,Merge*}

cp -p AUTHORS COPYING README NEWS ChangeLog README_FILES/CHANGES \
      README_FILES/Whats_new_in_2.0 README_FILES/Tools \
      %{buildroot}%{_docdir}/%{name}-%{version}/

rm -rf %{buildroot}%{_datadir}/info/dir

mv %{buildroot}%{_docdir}/%{name}-%{version}/refcard.pdf %{buildroot}%{_docdir}/%{name}-%{version}/pcb-reference-card.pdf

# remove duplicates
rm -f %{buildroot}%{_bindir}/Merge*

# L#854396 0.20110918 needlessly installs gts static library & header file
rm -f %{buildroot}%{_libdir}/libgts.a %{buildroot}%{_includedir}/gts.h

%find_lang %{name}

%files -f %{name}.lang
%doc %{_docdir}/%{name}-%{version}/*
%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}
%{_datadir}/gEDA/scheme/*
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}*
%{_infodir}/%{name}.info*
%{_iconsdir}/hicolor/*/mimetypes/application-x-*
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/pcb.appdata.xml
%{_datadir}/mime/packages/pcb.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3960 |21cr|pccts-1.33mr33-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: pccts
Summary: Purdue Compiler Construction Tool
Version: 1.33mr33
Release: 13
Source: %{name}-%{version}.tar.bz2
Patch0: %{name}-stdarg_usage.patch.bz2
Patch1: pccts-1.33mr33-mdv-fix-str-fmt.patch
Group: Development/Other
URL: http://www.polhode.com/pccts.html
License: Public domain


%description
PCCTS is a set of public domain software tools designed to facilate
the implementation of compilers and other translation systems.

%package devel
Group: Development/Other
Summary: Purdue Compiler Construction Tool Headers files

%description devel
PCCTS is a set of public domain software tools designed to facilate
the implementation of compilers and other translation systems.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -q

%patch0 -p1
%patch1 -p1 -b .strfmt

%build

export PCCTS_USE_STDARG=1

make COTHER="$RPM_OPT_FLAGS" PREFIX="%{_prefix}" 

%install

mkdir -p $RPM_BUILD_ROOT%_bindir
mkdir -p $RPM_BUILD_ROOT%_mandir/man1
install -m 755 bin/{antlr,dlg,genmk,sor} $RPM_BUILD_ROOT%_bindir/
install -m 644 antlr/antlr.1 $RPM_BUILD_ROOT%_mandir/man1/.
install -m 644 dlg/dlg.1 $RPM_BUILD_ROOT%_mandir/man1/.

mkdir -p $RPM_BUILD_ROOT%_includedir/pccts
install -m 644 h/* $RPM_BUILD_ROOT%_includedir/pccts/

%clean
rm -rf $RPM_BUILD_ROOT 

%files 
%defattr(-,root,root)
%doc CHANGES_FROM_131.txt CHANGES_FROM_133.txt 
%doc CHANGES_FROM_133_BEFORE_MR13.txt
%doc KNOWN_PROBLEMS.txt MPW_Read_Me README
%doc RIGHTS history.txt
%{_bindir}/*
%{_mandir}/man1/*

%files devel
%defattr (-,root,root)
%dir %{_includedir}/pccts
%{_includedir}/pccts/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3961 |21cr|pchanger-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		pchanger
Version:	1.5
Release:	1
Summary:	PChanger - plymouth changer
Group:		System/Servers
License:	GPLv3
URL:		https://github.com/AKotov-dev/docker-manager
Source0:	https://github.com/AKotov-dev/pchanger/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	pchanger
Source2:	pchanger.png
Source3:	pchanger.desktop
Source4:	pchanger.policy
Source5:	themes.tar.gz
BuildRequires:	lazarus
Requires:	xterm
Requires:	gtk2
Requires:	plymouth
Requires:	plymouth-devel
Requires:	plymouth-plugin-two-step

%description
The program is designed to quickly change the system boot screen (Plymouth).

The left side of the picture window shows the themes embedded in the package. 
On the right is a list of all the boot themes installed on the system. 
If the themes are installed manually, they will be displayed in a text list. 
The selected theme is installed by double-clicking the left mouse button.

Additional themes (130):

    brand-themes-pack: https://cloud.mail.ru/public/2R6b/KRqVM6yJr
    android-themes-pack: https://cloud.mail.ru/public/Y3fR/GA9s71Qyg


%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/plymouth/themes/*
#-----------------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name} -a5

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
mkdir -p %{buildroot}%{_datadir}/plymouth/

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp %{SOURCE4} %{buildroot}%{_datadir}/polkit-1/actions
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp -r themes %{buildroot}%{_datadir}/plymouth/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3962 |21cr|pci_scan-0.02-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	PCI scanning tool for X Terminals and embedded systems
Name:		pci_scan
Version:	0.02
Release:	8
License:	GPL
Group:		System/Kernel and hardware
Source0:	http://www.ltsp.org/tarballs/%{name}-%{version}.tar.bz2
URL:		http://www.ltsp.org
BuildRequires:	dietlibc-devel
Requires:	ltsp-hwlists >= 0.02

%description
This program will read in a device database of PCI Vendor/Device Ids. It will
then check the /proc/bus/pci/devices file, to see if any devices in the system
are found in the list that was read in.

The device database file will contain records that look like this:

    1234:5678  somedriver

The device database file will be read into a linked list in memory. The program
will then read each entry in the /proc/bus/pci/devices file.  For each entry,
it will search the linked list to see if it finds a match. As soon as a match
is found, the drivername will be printed to stdout, and the program will exit.

This is very useful, to determine what kind of network card or video card is
installed in the system, and which driver module should be loaded.

%prep

%setup -n %{name}-%{version}

%build
diet gcc -Os -o %{name} %{name}.c

%install
rm -rf %{buildroot}

install -d %{buildroot}/sbin
install -m0755 %{name} %{buildroot}/sbin/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%attr(0755,root,root) /sbin/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3963 |21cr|pcmanfm-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PCMan File Manager
Name:		pcmanfm
Version:	1.3.2
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://pcmanfm.sourceforge.net/
Source0:	https://sourceforge.net/projects/pcmanfm/files/PCManFM%20%2B%20Libfm%20%28tarball%20release%29/PCManFM/%{name}-%{version}.tar.xz
Patch0:		pcmanfm-0.9.8-rosa-default-config.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libfm)
Requires:	gksu
Requires:	gnome-icon-theme
Requires:	shared-mime-info
Recommends:	gvfs
Conflicts:	lxde-common < 0.5.0

%description
PCMan File Manager is an extremely fast and lightweight file manager which
features tabbed browsing and user-friendly interface.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/%{name}
%{_sysconfdir}/xdg/%{name}/default/pcmanfm.conf
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/applications/%{name}-desktop-pref.desktop
%{_datadir}/man/man1/pcmanfm.1.xz

#----------------------------------------------------------------------------

%package devel
Summary:	Developement files for %{name}
Group:		Development/C

%description devel
This package contains header files needed when building applications based on
%{name}.

%files devel
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--with-gtk=2
%make

%install
%makeinstall_std

%find_lang %{name}

# clean .desktop file
desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="System;FileTools" \
  --remove-mime-type="x-directory/normal" \
  --dir %{buildroot}%{_datadir}/applications \
  %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3964 |21cr|pcmanfm-qt-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	File manager for the LXQt desktop
Name:		pcmanfm-qt
Version:	0.14.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/pcmanfm-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	pcmanfm-qt.0.14.1_ru.tar.gz
Patch0:		pcmanfm-qt-0.12.0-default-background.patch
Patch1:		pcmanfm-qt-0.14.0-no-advanced-settings.patch
Patch2:		pcmanfm-qt-0.14.1-rosa-default-apps.patch
Patch3:		pcmanfm-qt-0.14.1-rosa-settings.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libfm-qt)
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
Conflicts:	lxqt-common < 0.12.0

%description
File manager for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/pcmanfm-qt
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_mandir}/man?/*
%{_sysconfdir}/xdg/autostart/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd pcmanfm/translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3965 |21cr|pcmcia-cis-firmware-3.2.8-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define old_name pcmcia-cs

Summary:	PCMCIA CIS overrides
Name:		pcmcia-cis-firmware
Version:	3.2.8
Release:	16
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://pcmcia-cs.sf.net/
Source0:	http://pcmcia-cs.sourceforge.net/ftp/%{old_name}-%{version}.tar.bz2
BuildArch:	noarch

%description
This package contains PCMCIA "CIS" files (sort of "firmware"
overrides), needed for some PCMCIA cards to work properly.

%files
/lib/firmware/*.cis

#----------------------------------------------------------------------------

%prep
%setup -qn %{old_name}-%{version}

%build

%install
install -d -m0755 %{buildroot}/lib/firmware
pushd etc/cis
for f in *.dat; do
  install -m0644 $f %{buildroot}/lib/firmware/${f%.dat}.cis
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3966 |21cr|pcmciautils-018-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for the hotpluggable PCMCIA subsystem
Name:		pcmciautils
Version:	018
Release:	8
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://www.kernel.org/pub/linux/utils/kernel/pcmcia/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		makefile_fix.patch
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	sysfsutils-devel

%description
PCMCIAutils contains hotplug scripts and initialization tools
necessary to allow the PCMCIA subsystem to behave (almost) as every
other hotpluggable bus system (e.g. USB, IEEE1394).

Please note that the kernel support for this new feature is only
present since 2.6.13-rc1.

%prep
%setup -q
%apply_patches

%build
%make LD=%{__cc} CC=%{__cc} V=1 OPTIMIZATION="%{optflags}" LDFLAGS="%{ldflags}" STRIPCMD=/bin/true

%install
%makeinstall_std

%files
%config(noreplace) %{_sysconfdir}/pcmcia/config.opts
/sbin/lspcmcia
/sbin/pccardctl
/lib/udev/rules.d/60-pcmcia.rules
/lib/udev/pcmcia-check-broken-cis
/lib/udev/pcmcia-socket-startup
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3967 |21cr|pcs-0.10.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#some tests fail on mock build
%bcond_with tests

%global version_or_commit %{version}
# %%global version_or_commit 67591ed1487cb0aefa181fdfc166c8a66b55d25a
%global pcs_source_name %{name}-%{version_or_commit}

# ui_commit can be determined by hash, tag or branch
%global ui_commit 0.1.3
%global ui_src_name pcs-web-ui-%{ui_commit}

%global pcs_snmp_pkg_name  pcs-snmp

%global pyagentx_version 0.4.pcs.2
%global dacite_version 1.5.1

# We do not use _libdir macro because upstream is not prepared for it.
# Pcs does not include binaries and thus it should live in /usr/lib. Tornado
# and gems include binaries and thus it should live in /usr/lib64. But the
# path to tornado/gems is hardcoded in pcs sources. Modify hard links in pcs
# sources is not the way since then rpmdiff complains that the same file has
# different content in different architectures.
%global pcs_libdir %{_prefix}/lib
%global bundled_src_dir pcs/bundled
%global pcsd_public_dir pcsd/public

#part after last slash is recognized as filename in look-aside repository
#desired name is achived by trick with hash anchor

Name:		pcs
Version:	0.10.6
Release:	1
Summary:	Pacemaker Configuration System
Group:		System/Base
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
# GPLv2: pcs
# MIT: handlebars
License:	GPLv2 and MIT
URL:		https://github.com/ClusterLabs/pcs
Source0: %{url}/archive/%{version_or_commit}/%{pcs_source_name}.tar.gz
Source41: https://github.com/ondrejmular/pyagentx/archive/v%{pyagentx_version}/pyagentx-%{pyagentx_version}.tar.gz
Source44: https://github.com/konradhalas/dacite/archive/v%{dacite_version}/dacite-%{dacite_version}.tar.gz
Source100: https://github.com/idevat/pcs-web-ui/archive/%{ui_commit}/%{ui_src_name}.tar.gz
Source101: https://github.com/idevat/pcs-web-ui/releases/download/%{ui_commit}/pcs-web-ui-node-modules-%{ui_commit}.tar.xz

# Patch0: name.patch

# git for patches
BuildRequires:	git
#printf from coreutils is used in makefile
BuildRequires:	coreutils
# python for pcs
BuildRequires:	python3 >= 3.6
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pycurl
BuildRequires:	python3-tornado
# ruby and gems for pcsd
BuildRequires:	ruby >= 2.2.0
BuildRequires:	ruby-devel
BuildRequires:	rubygem-backports
BuildRequires:	rubygem-ethon
BuildRequires:	rubygem-ffi
BuildRequires:	rubygem-io-console
BuildRequires:	rubygem-json
BuildRequires:	rubygem-open4
BuildRequires:	rubygem-rack
BuildRequires:	rubygem-rack-protection
BuildRequires:	rubygem-rack-test
BuildRequires:	rubygem-sinatra
BuildRequires:	rubygem-tilt
%if %{with tests}
# ruby libraries for tests
BuildRequires:	rubygem-test-unit
%endif
# for touching patch files (sanitization function)
BuildRequires:	diffstat
# for post, preun and postun macros
BuildRequires:	systemd
# for tests
BuildRequires:	python3-lxml
BuildRequires:	python3-pyOpenSSL
# pcsd fonts and font management tools for creating symlinks to fonts
BuildRequires:	fontconfig
BuildRequires:	fonts-ttf-liberation
BuildRequires:	fonts-ttf-overpass

# for building web ui
BuildRequires:	npm

# python and libraries for pcs, setuptools for pcs entrypoint
Requires:	python3 >= 3.6
Requires:	python3-lxml
Requires:	python3-setuptools
Requires:	python3-clufter => 0.70.0
Requires:	python3-pycurl
Requires:	python3-tornado
# ruby and gems for pcsd
Requires:	ruby >= 2.2.0
Requires:	rubygem-backports
Requires:	rubygem-ethon
Requires:	rubygem-ffi
Requires:	rubygem-json
Requires:	rubygem-open4
Requires:	rubygem-rack
Requires:	rubygem-rack-protection
Requires:	rubygem-rack-test
Requires:	rubygem-sinatra
Requires:	rubygem-tilt
# ruby and gems for pcsd-ruby
Requires:	rubygem-daemons
Requires:	rubygem-eventmachine
Requires:	rubygem-thin
# for killall
Requires:	psmisc
# for working with certificates (validation etc.)
Requires:	openssl
Requires:	python3-pyOpenSSL
# cluster stack and related packages
Suggests:	pacemaker
Requires:	(corosync >= 2.99 if pacemaker)
# pcs enables corosync encryption by default so we require libknet1-plugins-all
Requires:	(libknet1-plugins-all if corosync)
Requires:	pacemaker-cli >= 2.0.0
# for post, preun and postun macros
Requires(post):	systemd
Requires(preun): systemd
Requires(postun): systemd
# pam is used for authentication inside daemon (python ctypes)
# more details: https://bugzilla.redhat.com/show_bug.cgi?id=1717113
Requires:	pam
# pcsd fonts
Requires:	fonts-ttf-liberation
Requires:	fonts-ttf-overpass

Provides:	bundled(dacite) = %{dacite_version}

%description
pcs is a corosync and pacemaker configuration tool.  It permits users to
easily view, modify and create pacemaker based clusters.

%files
%doc CHANGELOG.md
%doc README.md
%doc dacite_README.md
%license dacite_LICENSE
%license COPYING
%{python3_sitelib}/pcs
%{python3_sitelib}/pcs-%{version}-py3.*.egg-info
%{_sbindir}/pcs
%{_sbindir}/pcsd
%{pcs_libdir}/pcs/pcs_internal
%{pcs_libdir}/pcsd/*
%{pcs_libdir}/pcs/bundled/packages/dacite*
%{_unitdir}/pcsd.service
%{_unitdir}/pcsd-ruby.service
%{_datadir}/bash-completion/completions/pcs
%{_sharedstatedir}/pcsd
%{_sysconfdir}/pam.d/pcsd
%dir %{_var}/log/pcsd
%config(noreplace) %{_sysconfdir}/logrotate.d/pcsd
%config(noreplace) %{_sysconfdir}/sysconfig/pcsd
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/cfgsync_ctl
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/known-hosts
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/pcsd.cookiesecret
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/pcsd.crt
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/pcsd.key
%ghost %config(noreplace) %attr(0644,root,root) %{_sharedstatedir}/pcsd/pcs_settings.conf
%ghost %config(noreplace) %attr(0644,root,root) %{_sharedstatedir}/pcsd/pcs_users.conf
%{_mandir}/man8/pcs.*
%{_mandir}/man8/pcsd.*
%exclude %{pcs_libdir}/pcsd/*.debian
%exclude %{pcs_libdir}/pcsd/Gemfile
%exclude %{pcs_libdir}/pcsd/Gemfile.lock
%exclude %{pcs_libdir}/pcsd/Makefile
%exclude %{pcs_libdir}/pcsd/pcsd.conf
%exclude %{pcs_libdir}/pcsd/pcsd.service
%exclude %{pcs_libdir}/pcsd/pcsd-ruby.service
%exclude %{pcs_libdir}/pcsd/pcsd.8
%exclude %{pcs_libdir}/pcsd/public/js/dev/*
%exclude %{python3_sitelib}/pcs/bash_completion
%exclude %{python3_sitelib}/pcs/pcs.8
%exclude %{python3_sitelib}/pcs/pcs

%post
%systemd_post pcsd.service
%systemd_post pcsd-ruby.service

%preun
%systemd_preun pcsd.service
%systemd_preun pcsd-ruby.service

%postun
%systemd_postun_with_restart pcsd.service
%systemd_postun_with_restart pcsd-ruby.service

#----------------------------------------------------------------------------
# pcs-snmp package definition
%package -n %{pcs_snmp_pkg_name}
Summary:	Pacemaker cluster SNMP agent
Group:		System/Base
# tar for unpacking pyagetx source tar ball
BuildRequires:	tar

Requires:	pcs = %{version}-%{release}
Requires:	pacemaker
Requires:	net-snmp

Provides:	bundled(pyagentx) = %{pyagentx_version}

%description -n %{pcs_snmp_pkg_name}
SNMP agent that provides information about pacemaker cluster to the master agent (snmpd)

%files -n %{pcs_snmp_pkg_name}
%{pcs_libdir}/pcs/pcs_snmp_agent
%{pcs_libdir}/pcs/bundled/packages/pyagentx*
%{_unitdir}/pcs_snmp_agent.service
%{_datadir}/snmp/mibs/PCMK-PCS*-MIB.txt
%{_mandir}/man8/pcs_snmp_agent.*
%config(noreplace) %{_sysconfdir}/sysconfig/pcs_snmp_agent
%doc CHANGELOG.md
%doc pyagentx_CONTRIBUTORS.txt
%doc pyagentx_README.md
%license COPYING
%license pyagentx_LICENSE.txt

%post -n %{pcs_snmp_pkg_name}
%systemd_post pcs_snmp_agent.service

%preun -n %{pcs_snmp_pkg_name}
%systemd_preun pcs_snmp_agent.service

%postun -n %{pcs_snmp_pkg_name}
%systemd_postun_with_restart pcs_snmp_agent.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -S git -n %{pcs_source_name}

# -- following is inspired by python-simplejon.el5 --
# Update timestamps on the files touched by a patch, to avoid non-equal
# .pyc/.pyo files across the multilib peers within a build

update_times(){
  # update_times <reference_file> <file_to_touch> ...
  # set the access and modification times of each file_to_touch to the times
  # of reference_file

  # put all args to file_list
  file_list=("$@")
  # first argument is reference_file: so take it and remove from file_list
  reference_file=${file_list[0]}
  unset file_list[0]

  for fname in ${file_list[@]}; do
    touch -r $reference_file $fname
  done
}

update_times_patch(){
  # update_times_patch <patch_file_name>
  # set the access and modification times of each file in patch to the times
  # of patch_file_name

  patch_file_name=$1

  # diffstat
  # -l lists only the filenames. No histogram is generated.
  # -p override the logic that strips common pathnames,
  #    simulating the patch "-p" option. (Strip the smallest prefix containing
  #    num leading slashes from each file name found in the patch file)
  update_times ${patch_file_name} `diffstat -p1 -l ${patch_file_name}`
}

# update_times_patch %%{PATCH0}

# prepare dirs/files necessary for building web ui
# inside SOURCE100 is only directory %%{ui_src_name}
tar -xzf %{SOURCE100} -C %{pcsd_public_dir}
tar -xf %{SOURCE101} -C %{pcsd_public_dir}/%{ui_src_name}

# 3) dir for python bundles
mkdir -p %{bundled_src_dir}

# 4) sources for pyagentx
tar -xzf %{SOURCE41} -C %{bundled_src_dir}
mv %{bundled_src_dir}/pyagentx-%{pyagentx_version} %{bundled_src_dir}/pyagentx
update_times %{SOURCE41} `find %{bundled_src_dir}/pyagentx -follow`
cp %{bundled_src_dir}/pyagentx/LICENSE.txt pyagentx_LICENSE.txt
cp %{bundled_src_dir}/pyagentx/CONTRIBUTORS.txt pyagentx_CONTRIBUTORS.txt
cp %{bundled_src_dir}/pyagentx/README.md pyagentx_README.md

# 7) sources for python dacite
tar -xzf %{SOURCE44} -C %{bundled_src_dir}
mv %{bundled_src_dir}/dacite-%{dacite_version} %{bundled_src_dir}/dacite
cp %{bundled_src_dir}/dacite/LICENSE dacite_LICENSE
cp %{bundled_src_dir}/dacite/README.md dacite_README.md

%build
%define debug_package %{nil}

%install
# build web ui and put it to pcsd
make -C %{pcsd_public_dir}/%{ui_src_name} build
mv %{pcsd_public_dir}/%{ui_src_name}/build  pcsd/public/ui
rm -r %{pcsd_public_dir}/%{ui_src_name}

# main pcs install
%make_install \
  PREFIX=%{_prefix} \
  SYSTEMD_UNIT_DIR=%{_unitdir} \
  LIB_DIR=%{pcs_libdir} \
  PYTHON=%{__python3} \
  PYTHON_SITELIB=%{python3_sitelib} \
  BASH_COMPLETION_DIR=%{_datadir}/bash-completion/completions \
  BUNDLE_PYAGENTX_SRC_DIR=`readlink -f %{bundled_src_dir}/pyagentx` \
  BUNDLE_DACITE_SRC_DIR=`readlink -f %{bundled_src_dir}/dacite` \
  BUILD_GEMS=false \
  SYSTEMCTL_OVERRIDE=true \
  hdrdir="%{_includedir}" \
  rubyhdrdir="%{_includedir}" \
  includedir="%{_includedir}"

%if %{with tests}
%check
# In the building environment LC_CTYPE is set to C which causes tests to fail
# due to python prints a warning about it to stderr. The following environment
# variable disables the warning.
# On the live system either UTF8 locale is set or the warning is emmited
# which breaks pcs. That is the correct behavior since with wrong locales it
# would be probably broken anyway.
# The main concern here is to make the tests pass.
# See https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale for details.
export PYTHONCOERCECLOCALE=0

run_all_tests(){
  #run pcs tests

  # disabled tests:
  #
  BUNDLED_LIB_LOCATION=%{buildroot}%{pcs_libdir}/pcs/bundled/packages \
    %{__python3} pcs_test/suite.py --tier0 -v --vanilla --all-but \
    pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_get_not_locked \
    pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_post_not_locked \

  test_result_python=$?

  #run pcsd tests and remove them
  pcsd_dir=%{buildroot}%{pcs_libdir}/pcsd
  # GEM_HOME is not needed anymore since all required gems are in fedora
  ruby \
    -I${pcsd_dir} \
    -I${pcsd_dir}/test \
    ${pcsd_dir}/test/test_all_suite.rb
  test_result_ruby=$?

  if [ $test_result_python -ne 0 ]; then
    return $test_result_python
  fi
  return $test_result_ruby
}

remove_all_tests() {
  pcsd_dir=%{buildroot}%{pcs_libdir}/pcsd
  #remove pcsd tests, we do not distribute them in the rpm
  rm -r -v ${pcsd_dir}/test

  # remove javascript testing files
  rm -r -v ${pcsd_dir}/public/js/dev
}

run_all_tests
remove_all_tests

%endif
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3968 |21cr|pcsxr-1.9.95-0.97809.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

%define svn 97809

Summary:	Open Source Sony PlayStation emulator
Name:		pcsxr
Version:	1.9.95
Release:	0.%{svn}.2
License:	GPLv2+
Group:		Emulators
Url:		http://www.codeplex.com/pcsxr
Source0:	%{name}-%{svn}.zip
Patch0:		pcsxr-fix-undefined-operations.patch
Patch1:		pcsxr-remove-assertion-64bit.patch
Patch2:		pcsxr-desktop.patch
Patch3:		pcsxr-uncomp-fix.patch
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	nasm
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xxf86vm)
Provides:	pcsx = %{version}
Obsoletes:	pcsx-df < 1.10-100

%description
Most advanced fork of PCSX.

This application emulates all components of a Sony PlayStation on
regular PC hardware. It features a sophisticated plugin system allowing
for easy extension and is highly configurable.

To be able to play commercial games on this emulator you need an image
of a Sony PlayStation BIOS ROM. The BIOS is copyrighted by Sony
Computer Entertainment and can therefore not be included in this
package.

BIOS images can be placed in ~/.pcsx/bios or %{_datadir}/psemu/bios.

%files -f %{name}.lang
%doc AUTHORS ChangeLog INSTALL NEWS README doc/*.txt
%{_bindir}/pcsxr
%{_libdir}/games/psemu
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pcsxr
%{_datadir}/psemu
%{_datadir}/pixmaps/*.png
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p2

%build
sh ./autogen.sh

export CFLAGS="%{optflags} -fno-strict-aliasing -pthread -w"
%configure --enable-opengl
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3969 |21cr|pdf2djvu-0.9.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PDF to DJVu file converter
Name:		pdf2djvu
Version:	0.9.19
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://jwilk.net/software/pdf2djvu
Source0:	https://github.com/jwilk/pdf2djvu/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	djvulibre
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	xsltproc
BuildRequires:	gettext-devel
BuildRequires:	gomp-devel
BuildRequires:	pstreams-devel
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(uuid)
# Needed for PDF in Chinese, Japanese or Korean
Requires:	poppler-data

%description
pdf2djvu creates DjVu files from PDF files. It's able to extract graphics,
text layer, hyperlinks, document outline (bookmarks), and metadata.

%files -f %{name}.lang
%doc doc/README doc/changelog doc/credits
%license doc/COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_mandir}/*/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp private/autogen .

%build
./autogen
%configure
%make
# Build man page...
pushd doc
make all
popd
# ... and translations
pushd po
make all
popd

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3970 |21cr|pdf2png-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PDF to PNG converter
Name:		pdf2png	
Version:	0.3.1
Release:	2
License:	GPLv3
Group:		Office
Url:		https://github.com/25RUS/pdf2png
Source0:	https://github.com/25RUS/pdf2png/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	pdf2svg
Requires:	inkscape

%description
%{summary}

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=pdf2png
Comment=PDF to PNG converter
Exec=%{name}
Icon=%{name}
StartupNotify=false
Terminal=false
Categories=Qt;KDE;Office;Viewer;
EOF

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{name}.png %{buildroot}%{_datadir}/pixmaps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3971 |21cr|pdf2svg-0.2.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pdf2svg
Version:	0.2.3
Release:	4
Summary:	Command-line utility to convert PDF documents in SVG files
License:	GPLv2
Group:		Office
Url:		http://www.cityinthesky.co.uk/opensource/pdf2svg/
Source0:	https://github.com/db9052/pdf2svg/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
pdf2svg is a tiny command-line utility using Cairo and Poppler to convert PDF
documents into SVG files. Multi-page PDF can be split up to one SVG per page by
passing a file naming specification.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%doc README COPYING AUTHORS ChangeLog
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3972 |21cr|pdfarranger-1.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           pdfarranger
Version:        1.10.1
Release:        1
Summary:        PDF file merging, rearranging, and splitting
Group:          Development/Python
License:        GPLv3
URL:            https://github.com/pdfarranger/pdfarranger
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/pdfarranger/pdfarranger/commits/main/po/ru.po
Patch1:			0a9d469bbd05e3cdb257fd9aa864f35de66f7994.patch
Patch2:			89e82555d3fe51dfc37b477d925e86d9bd6c142b.patch
Patch3:			f561195f7103324064816a6c7850ffe8e3ec9328.patch
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-wheel
BuildRequires:  intltool
# generate typelib() requires
BuildRequires:  gobject-introspection-devel

# For checks only
BuildRequires:  appstream-util
BuildRequires:  desktop-file-utils

Requires:       python3-pikepdf >= 1.15.1
Recommends:     python3-img2pdf >= 0.3.4

# These seem to be included in the default desktop install
Requires:       python3-gobject
Requires:       gtk3
Requires:       python3-gi
Requires:       python3-gi-cairo
Requires:       python3-cairo
Requires:       poppler
Requires:       python3-dateutil >= 2.4.0

Provides:       pdfshuffler = %{version}-%{release}
Obsoletes:      pdfshuffler < 0.6.1-1

# The repository changed to pdfarranger/pdfarranger but we leave the app_id
# for now.
%global app_id com.github.jeromerobert.pdfarranger
%global python3_wheelname %{name}-*-py3-none-any.whl

%description
PDF Arranger is a small python-gtk application, which helps the user to merge 
or split pdf documents and rotate, crop and rearrange their pages using an 
interactive and intuitive graphical interface. It is a frontend for pikepdf.

PDF Arranger is a fork of Konstantinos Poulios’s PDF-Shuffler.

%files -f %{name}.lang
%license COPYING
%doc README.md
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-*.egg-info/
%{_mandir}/man*/*.*
%{_datadir}/icons/hicolor/*/apps/*
%{_metainfodir}/%{app_id}.metainfo.xml
%{_datadir}/applications/%{app_id}.desktop
%{_datadir}/%{name}/
%{_bindir}/pdfarranger
%{_bindir}/pdfshuffler

#------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}

%build
%py3_build

%install
%py3_install

#manual install locales and isons
mkdir -p %{buildroot}%{_datadir}/locale
cp -r build/mo/* %{buildroot}%{_datadir}/locale/
cp -r data/icons %{buildroot}%{_datadir}/

%find_lang %{name}
ln -s %{_bindir}/pdfarranger %{buildroot}%{_bindir}/pdfshuffler

%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/%{app_id}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/*.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3973 |21cr|pdfcrack-0.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Password Recovery Tool for PDF-files
Name:		pdfcrack
Version:	0.19
Release:	1
License:	GPL
Group:		File tools
URL:		http://pdfcrack.sourceforge.net/
Source0:	https://sourceforge.net/projects/pdfcrack/files/pdfcrack/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1:	https://sourceforge.net/projects/pdfcrack/files/pdfcrack/%{name}-%{version}/%{name}-%{version}.tar.gz.asc

%description
PDFCrack is a tool for recovering passwords and content from PDF-files.

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_bindir}
install -m0755 pdfcrack %{buildroot}%{_bindir}/pdfcrack

%files
%defattr(-,root,root)
%doc README TODO changelog
%{_bindir}/pdfcrack

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3974 |21cr|pdfgrep-2.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			pdfgrep
Summary:		Search in pdf files for strings matching a regular expression
Version:		2.1.2
Release:		2
Group:			Text tools
License:		GPLv3
URL:			https://pdfgrep.org/
Source0:		https://pdfgrep.org/download/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-cpp)

%description
Pdfgrep is a tool to search text in PDF files. It works similar to grep.
Features:
 * search for regular expressions.
 * support for some important grep options, including:
	- filename output.
	- page number output.
	- optional case insensitivity.
	- count occurrences.
 * and the most important feature: color output!

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%license COPYING
%doc AUTHORS
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/pdfgrep
%{_datadir}/zsh/site-functions/_pdfgrep
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3975 |21cr|pdfjam-1.21-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           pdfjam
Version:        1.21
Release:        5
Summary:        Utilities for join, rotate and align PDFs

Group:          Publishing
# No version specified.
License:        GPL+
URL:            http://www.warwick.ac.uk/go/pdfjam
Source0:        http://www.warwick.ac.uk/go/pdfjam/pdfjam_%{version}.tar.gz
BuildArch:      noarch
Requires:       tetex-latex

%description
PDFjam is a small collection of shell scripts which provide a simple
interface to some of the functionality of the excellent pdfpages
package (by Andreas Matthias) for pdfLaTeX.  At present the utilities
available are:

  * pdfnup, which allows PDF files to be "n-upped" in roughly the way
    that psnup does for PostScript files;
  * pdfjoin, which concatenates the pages of multiple PDF files
    together into a single file;
  * pdf90, which rotates the pages of one or more PDF files through 90
    degrees (anti-clockwise).

In every case, source files are left unchanged.

A potential drawback of these utilities is that any hyperlinks in the
source PDF are lost. On the positive side, there is no appreciable
degradation of image quality in processing PDF files with these
programs, unlike some other indirect methods such as "pdf2ps | psnup |
ps2pdf" (in the author's experience).


%prep
%setup -q -n pdfjam

%install
rm -rf $RPM_BUILD_ROOT

install -d -m 755 $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
install -p -m 755 scripts/* $RPM_BUILD_ROOT%{_bindir}/
install -p -m 644 man1/* $RPM_BUILD_ROOT%{_mandir}/man1/

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING PDFjam-README.html pdfdroplets.png
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3976 |21cr|pdfresurrect-0.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PDF Analysis and Scrubbing Utility
Name:		pdfresurrect
Version:	0.22
Release:	1
License:	GPLv3+
Group:		Publishing
Url:		https://github.com/enferex/pdfresurrect
Source0:	https://github.com/enferex/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		pdfresurrect-0001-Don-t-reset-compiler-s-flags-during-checks.patch

%description
PDFResurrect is a tool aimed at analyzing PDF documents. The PDF format allows
for previous document changes to be retained in a more recent version of the
document, thereby creating a running history of changes for the document. This
tool attempts to extract all previous versions while also producing a summary
of changes between versions. This tool can also "scrub" or write data over the
original instances of PDF objects that have been modified or deleted, in an
effort to disguise information from previous versions that might not be
intended for anyone else to read.

%files
%doc AUTHORS ChangeLog LICENSE README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3977 |21cr|pdfsam-2.2.4e-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pdfsam
Version:	2.2.4e
Release:	3
Summary:	PDF Split And Merge
Group:		Publishing
License:	GPLv2
URL:		http://www.pdfsam.org
Source0:	http://sourceforge.net/projects/pdfsam/files/pdfsam-enhanced/%{version}/pdfsam-%{version}-out-src.zip
BuildArch:	noarch
BuildRequires:	ant
BuildRequires:	unzip
BuildRequires:	jpackage-utils
BuildRequires:	dos2unix
BuildRequires:	java-1.8.0-openjdk-devel
Requires:	jre-openjdk >= 1.7.0
# Requires:	jpackage-utils

%description
A Java based free open source tool to split and merge PDF documents.


%prep
%setup -q -c %{name}-%{version}
# extract all individual source zip files
for FILE in *.zip; do
    unzip -q -o "$FILE" ; rm -f "$FILE"
done
# fix line endings
for FILE in pdfsam-maine/doc/licenses/*/*.txt; do
    dos2unix -k -o "$FILE"
done
dos2unix -k -o pdfsam-maine/doc/enhanced/readme.txt
dos2unix -k -o pdfsam-maine/doc/enhanced/changelog-enhanced.txt


%build
cd pdfsam-maine/ant/
ant -Dpdfsam.deploy.dir="%{_datadir}/%{name}" \
    -Dworkspace.dir="../" \
    -Dbuild.dir="../build"

%install
# create start script
install -d -m 755 %{buildroot}%{_bindir}
cat << EOF > %{buildroot}%{_bindir}/pdfsam
#!/bin/bash
cd %{_datadir}/%{name}
java -jar %{_datadir}/%{name}/pdfsam.jar
cd -
EOF
chmod 755 %{buildroot}%{_bindir}/pdfsam
# create application dir and populate it
install -d -m 755 %{buildroot}%{_datadir}/%{name}
for i in ext lib plugins pdfsam-%{version}.jar pdfsam-config.xml; do
    mv build/pdfsam-maine/release/dist/pdfsam-enhanced/$i %{buildroot}%{_datadir}/%{name}/
done
ln -s pdfsam-%{version}.jar %{buildroot}%{_datadir}/%{name}/pdfsam.jar
### MENU ITEM ###
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
cp build/pdfsam-maine/release/dist/pdfsam-enhanced/doc/icons/*.??g %{buildroot}%{_datadir}/pixmaps
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=PDFSam
Name[ru]=PDFSam
Comment=%{summary}
Comment[ru]=Разбивка и слияние PDF-файлов
Exec=%{_bindir}/%{name}
Icon=%{_datadir}/pixmaps/%{name}_basic.png
Terminal=false
Type=Application
StartupNotify=true
Categories=Office;Java;Viewer;TextTools;
EOF

%files
%defattr(-,root,root,0755)
%doc build/pdfsam-maine/release/dist/pdfsam-enhanced/doc/changelog-enhanced.txt
%doc build/pdfsam-maine/release/dist/pdfsam-enhanced/doc/pdfsam-1.5.0e-tutorial.pdf
%doc build/pdfsam-maine/release/dist/pdfsam-enhanced/doc/readme.txt
%doc build/pdfsam-maine/release/dist/pdfsam-enhanced/doc/license/
%{_bindir}/pdfsam
%{_datadir}/%{name}/
%{_datadir}/applications/pdfsam.desktop
%{_datadir}/pixmaps/pdfsam*.png
%{_datadir}/pixmaps/pdfsam*.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3978 |21cr|pdi2iso-0.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pdi2iso
Version:	0.1
Release:	9
Summary:	Instant Copy CD Images to ISO
Source:		%{name}-%{version}.tar.bz2
URL:		http://developer.berlios.de/projects/pdi2iso/
License:	GPL
Group:		Archiving/Other

%description 
PDI2ISO is a very simple utility to convert an instant copy bin image
to the standard ISO-9660 format.

%prep
%setup -q

%build
gcc %optflags ./src/pdi2iso.c -o pdi2iso

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install pdi2iso %{buildroot}%{_bindir}/pdi2iso

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGELOG
%{_bindir}/pdi2iso

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3979 |21cr|pdisk-0.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define diskdev_cmds diskdev_cmds-208.11

Summary:	A partitioning tool for Apple Macintosh-style partitioned disks
Name:		pdisk
Version:	0.9
Release:	3
License:	Apple Public Source License
Group:		System/Base
Url:		http://cantaforda.com/cfcl/eryk/linux/pdisk/index.html
Source0:	ftp://cfcl.com/pub/ev/pdisk.20000516.src.tar.bz2
Source1:	http://www.opensource.apple.com/darwinsource/tarballs/apsl/diskdev_cmds-208.11.tar.bz2
Patch0:		pdisk-changetype.patch
Patch1:		http://www.ardistech.com/hfsplus/diskdev_cmds.diff
Patch2:		pdisk-gcc-4.0.patch
Patch3:		pdisk-gcc44.patch
Patch4:		pdisk-fix-str-fmt.patch
Patch5:		llseek.patch
# from archlinux
Patch6:		linux_strerror.patch

%description
pdisk enables you to view and modify Apple Macintosh-style partition maps.
Normally, it is used to create Mandriva Linux partitions on your disk,
however, it can create partitions of any type, including HFS (except
it would be up to MacOS or some other tool to actually create the HFS
filesystem in that HFS partition).  pdisk won't put MacOS disk drivers
onto your disk.

%files
%doc README pdisk.html
/sbin/pdisk
/sbin/newfs_hfs
/sbin/fsck_hfs
%{_mandir}/man8/pdisk.*
%{_mandir}/man8/newfs_hfs.*

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -n pdisk
%patch0 -p1
pushd %{diskdev_cmds}
%patch1 -p1 -b .hfsplus
popd
%patch2 -p1 -b .gcc40
%patch3 -p0 -b .gcc44
%patch4 -p0 -b .str
%patch5 -p1 -b .llseek
%patch6 -p1

%build
%make CFLAGS="%{optflags}"
cd %{diskdev_cmds}
%make -f Makefile.lnx

%install
mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}%{_mandir}/man8
install -m755 pdisk %{buildroot}/sbin/pdisk
install -m444 pdisk.8 %{buildroot}%{_mandir}/man8
install -m755 %{diskdev_cmds}/fsck_hfs.tproj/fsck_hfs %{buildroot}/sbin
install -m755 %{diskdev_cmds}/newfs_hfs.tproj/newfs_hfs %{buildroot}/sbin
install -m444 %{diskdev_cmds}/newfs_hfs.tproj/newfs_hfs.8 %{buildroot}%{_mandir}/man8
chmod 0444 README pdisk.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3980 |21cr|pdmenu-1.3.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A simple text-based menu program
Name:		pdmenu
Version:	1.3.4
Release:	3
License:	GPLv2+
Group:		Shells
Url:		http://kitenet.net/programs/pdmenu/
Source0:	http://ftp.debian.org/debian/pool/main/p/pdmenu/pdmenu_%{version}.tar.gz
Source1:	pdmenurc
Buildrequires:	slang-devel
Requires:	gpm >= 1.17.8
Conflicts:	menu < 2.0.0

%description
A simple full screen menu program, intended to be a comfortable login shell for
inexperienced users.

%prep
%setup -q -n pdmenu

%files -f %{name}.lang
%doc README doc/BUGS doc/TODO doc/ANNOUNCE debian/changelog examples 
%config(noreplace) %{_sysconfdir}/pdmenurc
%{_bindir}/*
%{_datadir}/pdmenu
%{_mandir}/man1/*
%{_mandir}/man5/*

%postun
if [ "$1" = 0 ]; then
  rm -rf %{_localstatedir}/lib/pdmenu
fi

#----------------------------------------------------------------------------

%build
%configure
%make

%install
make INSTALL_PREFIX=%{buildroot} install

install -m 0755 examples/newbie/modem-check \
                examples/newbie/rpm-info-on-command \
                %{buildroot}%{_datadir}/pdmenu

rm -f examples/*.in examples/newbie/*.in examples/newbie/modem-check \
      examples/newbie/rpm-info-on-command examples/editdir.pl \
      examples/showdir.pl

cp -f %{SOURCE1} %{buildroot}%{_sysconfdir}/pdmenurc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3981 |21cr|pdns-4.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Versatile Database Driven Nameserver
Name:		pdns
Version:	4.7.3
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.powerdns.com/
Source0:	http://downloads.powerdns.com/releases/%{name}-%{version}.tar.bz2
# https://github.com/PowerDNS/pdns/tree/rel/auth-3.3.1
#Source0:	pdns-%%{version}.tar.gz
# Do: "wget -rm http://rtfm.powerdns.com", then compress
Source1:	rtfm.powerdns.com.tar.xz
Source2:	%{name}.service
Source10:	README.urpmi
Source100:	%{name}.rpmlintrc
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	python3-virtualenv
BuildRequires:	boost-devel >= 1.48.0
BuildRequires:	libstdc++-devel
BuildRequires:	mysql-devel
BuildRequires:	openldap-devel
BuildRequires:	polarssl-devel
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(yaml-cpp)
BuildRequires:	pkgconfig(zlib)
Requires(pre,post,preun,postun):	rpm-helper
Requires(post):	systemd
# support i686 dropped in upstream
ExcludeArch:	%{ix86}

%description
PowerDNS is a versatile nameserver which supports a large number of different
backends ranging from simple zonefiles to relational databases and load
balancing/failover algorithms.
It comes with support for MySQL, PostgreSQL, Bind zonefiles and the 'pipe
backend', all available as external packages.

%files
%doc COPYING README rtfm.powerdns.com
%doc README.urpmi
%doc %{_docdir}/pdns/*.sql
%doc %{_docdir}/pdns/*.schema
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/powerdns/%{name}.conf
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service
%{_unitdir}/pdns@.service
%dir %{_sysconfdir}/powerdns
%dir %{_sysconfdir}/powerdns/conf.d
%dir %{_libdir}/powerdns
%{_sbindir}/%{name}_server
%{_bindir}/*
%{_mandir}/man1/*


%pre
%_pre_useradd powerdns /var/lib/powerdns /bin/false

%post
%tmpfiles_create %{name}
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel powerdns

#----------------------------------------------------------------------------

%package backend-geo
Summary:	GEOIP backend for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-geo
This package contains a geoip backend for the PowerDNS nameserver.

%files backend-geo
%doc COPYING
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/powerdns/conf.d/libgeoipbackend.conf
%{_libdir}/powerdns/%{name}/libgeoipbackend.so

#----------------------------------------------------------------------------

%package backend-pipe
Summary:	Pipe/coprocess backend for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-pipe
This package contains the pipe backend for the PowerDNS nameserver. This
allows PowerDNS to retrieve domain info from a process that accepts
questions on stdin and returns answers on stdout. 

%files backend-pipe
%doc COPYING
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/powerdns/conf.d/libpipebackend.conf
%{_libdir}/powerdns/%{name}/libpipebackend.so

#----------------------------------------------------------------------------

%package backend-ldap
Summary:	LDAP backend for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-ldap
This package contains a LDAP backend for the PowerDNS nameserver.

%files backend-ldap
%doc COPYING
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/powerdns/conf.d/libldapbackend.conf
%{_libdir}/powerdns/pdns/libldapbackend.so

#----------------------------------------------------------------------------

%package backend-mysql
Summary:	MySQL backend for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-mysql
This package contains a MySQL backend for the PowerDNS nameserver.

%files backend-mysql
%doc COPYING
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/powerdns/conf.d/libgmysqlbackend.conf
%{_libdir}/powerdns/%{name}/libgmysqlbackend.so

#----------------------------------------------------------------------------

%package backend-pgsql
Summary:	Generic PostgreSQL backend for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-pgsql
This package contains a generic PostgreSQL backend for the PowerDNS
nameserver. It has configurable SQL statements.

%files backend-pgsql
%doc COPYING
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/powerdns/conf.d/libgpgsqlbackend.conf
%{_libdir}/powerdns/%{name}/libgpgsqlbackend.so

#----------------------------------------------------------------------------

%package backend-sqlite
Summary:	SQLite backend for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description backend-sqlite
This package contains a SQLite backend for the PowerDNS nameserver.

%files backend-sqlite
%doc COPYING
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/powerdns/conf.d/libgsqlite3backend.conf
%{_libdir}/powerdns/%{name}/libgsqlite3backend.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version} -a1


%build
export CFLAGS="%{optflags} -DLDAP_DEPRECATED"
export CXXFLAGS="%{optflags} -DLDAP_DEPRECATED"

%configure \
    --disable-static \
    --enable-tools \
    --enable-libsodium \
    --enable-systemd \
    --with-systemd="%{_unitdir}" \
    --with-sqlite3 \
    --sysconfdir=%{_sysconfdir}/powerdns \
    --libdir=%{_libdir}/powerdns \
    --with-socketdir=/run/powerdns \
    --with-dynmodules="gmysql gpgsql pipe ldap gsqlite3 geoip" \
    --with-modules="" \
    --enable-unit-tests \
    --enable-reproducible \
    --with-mysql-lib=%{_libdir}

%make


# test fail, may be need internet connection
#%%check
#%%make -C %{name} check


%install
%makeinstall_std

# Install systemd unit
install -p -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service


# Fix the config
mv %{buildroot}%{_sysconfdir}/powerdns/%{name}.conf-dist %{buildroot}%{_sysconfdir}/powerdns/%{name}.conf

cat >> %{buildroot}%{_sysconfdir}/powerdns/%{name}.conf << EOF
include-dir=%{_sysconfdir}/powerdns/conf.d
module-dir=%{_libdir}/powerdns
socket-dir=/run/powerdns
setuid=powerdns
setgid=powerdns
launch=bind
EOF

chmod 600 %{buildroot}%{_sysconfdir}/powerdns/%{name}.conf

install -d %{buildroot}%{_sysconfdir}/powerdns/conf.d


# Fix per backend config files
for i in geoip gmysql gpgsql gsqlite3 ldap pipe; do
    echo "# backend config for %{_libdir}/powerdns/lib${i}backend.so" > %{buildroot}%{_sysconfdir}/powerdns/conf.d/lib${i}backend.conf
done


# Prepare tmpfiles support config
mkdir -p %{buildroot}%{_tmpfilesdir}
cat <<EOF > %{buildroot}%{_tmpfilesdir}/%{name}.conf
d /run/powerdns 0755 powerdns powerdns
EOF

cp %{SOURCE10} README.urpmi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3982 |21cr|pdns-recursor-4.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Recursor for PowerDNS
Name:		pdns-recursor
Version:	4.8.2
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.powerdns.com/
Source0:	http://downloads.powerdns.com/releases/pdns-recursor-%{version}.tar.bz2
Source1:	pdns-recursor.service
Requires(post):	systemd
BuildRequires:	boost-devel >= 1.61
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)

# support x32 dropped in upstream
ExcludeArch:	%{ix86}

%description
With a small codebase, the PowerDNS Recursor is an advanced recursor currently
serving the DNS resolving needs of over 2 million Internet connections.
Besides high performance (using kqueue or epoll, over 15 thousand qps on
commodity hardware), it provides advanced anti-spoofing measures. In addition,
the program caches server performance and timeouts, making it both network and
user friendly. It also has built-in hooks for making graphs with rrdtool,
providing insight into nameserver performance.

%files
%doc COPYING README rrd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/powerdns/recursor.conf
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}@.service
%{_sbindir}/pdns_recursor
%{_bindir}/rec_control
%{_tmpfilesdir}/%{name}.conf
%{_mandir}/man1/pdns_recursor.1*
%{_mandir}/man1/rec_control.1*


%pre
%_pre_useradd powerdns /var/lib/powerdns /bin/false

%post
%tmpfiles_create %{name}
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}

#-----------------------------------------------------------------------------

%prep
%setup -q
chmod 644 rrd/*


%build
%serverbuild
%configure \
  --sysconfdir=%{_sysconfdir}/powerdns \
  --enable-unit-tests \
  --enable-libsodium \
  --enable-systemd

%make

%install
%makeinstall_std

# Install our systemd service file...
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/pdns-recursor.service
# ... and move the source-provided ones in the right spot
mv %{buildroot}/usr/lib/systemd/system/*service %{buildroot}%{_unitdir}/

# Add config for temp files
install -d %{buildroot}%{_tmpfilesdir}
cat <<EOF > %{buildroot}%{_tmpfilesdir}/%{name}.conf
d /run/powerdns 0755 powerdns powerdns
EOF

# Drop old sysvinit stuff
rm -rf %{buildroot}%{_sysconfdir}/init.d

# Create a config file, in place of the default one...
rm -f %{buildroot}%{_sysconfdir}/powerdns/*
%{buildroot}%{_sbindir}/pdns_recursor --config > %{buildroot}%{_sysconfdir}/powerdns/recursor.conf
# ... and fix it
cat >> %{buildroot}%{_sysconfdir}/powerdns/recursor.conf << EOF
socket-dir=/run/powerdns/
soa-minimum-ttl=0
soa-serial-offset=0
local-port=5300
local-address=127.0.0.1
trace=off
daemon=yes
quiet=on
setgid=powerdns
setuid=powerdns
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3983 |21cr|peazip-8.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	File and archive manager
Name:		peazip
Version:	8.6.0
Release:	1
License:	LGPLv3+
Group:		File tools
Url:		http://www.peazip.org
Source0:	https://sourceforge.net/projects/peazip/files/%{version}/%{name}-%{version}.src.zip
# configure to run in users home appdata
Source1:	altconf.txt
Source2:	rosa-peazip.desktop
BuildRequires:	dos2unix
BuildRequires:	lazarus >= 1.2.0
BuildRequires:	qt5pas-devel
BuildRequires:	qt5-devel
BuildRequires:	icoutils
Requires:	p7zip
Requires:	upx >= 3.09
Requires:	brotli
Requires:	zstd
# lazaris not build for ARM
ExcludeArch:	%{armx}

%description
PeaZip is a free cross-platform file archiver that provides an unified
portable GUI for many Open Source technologies like 7-Zip, FreeArc, PAQ,
UPX...

%files
%doc readme* copying*
%{_bindir}/*
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/applications/rosa-peazip.desktop
%{_datadir}/%{name}

#---------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}.src
%apply_patches
dos2unix readme*

%build
  lazbuild --lazarusdir=%{_libdir}/lazarus --widgetset=qt5 --build-all project_pea.lpi && [ -f pea ]
  lazbuild --lazarusdir=%{_libdir}/lazarus --widgetset=qt5 --build-all project_peach.lpi && [ -f peazip ]

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
#rm -rf res/share/icons
cp -r res %{buildroot}%{_datadir}/%{name}
cp %{SOURCE1} %{buildroot}%{_datadir}/%{name}/res/conf

#install helper apps
mkdir -p %{buildroot}%{_datadir}/%{name}/res/bin/{7z,upx,zstd,brotli}
ln -s %{_bindir}/7z %{buildroot}%{_datadir}/%{name}/res/bin/7z/7z
ln -s %{_bindir}/upx %{buildroot}%{_datadir}/%{name}/res/bin/upx/upx
ln -s %{_bindir}/zstd %{buildroot}%{_datadir}/%{name}/res/bin/zstd/zstd
ln -s %{_bindir}/brotli %{buildroot}%{_datadir}/%{name}/res/bin/brotli/brotli

install pea %{buildroot}%{_datadir}/%{name}
ln -s %{_datadir}/%{name}/pea %{buildroot}%{_bindir}/pea
install %{name} %{buildroot}%{_datadir}/%{name}
ln -s %{_datadir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications
cp %{SOURCE2} %{buildroot}%{_datadir}/applications/

mkdir -p %{buildroot}%{_iconsdir}/hicolor/256x256/apps
icotool -x -i 1 -o %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png %{name}.ico
#rm -rf %{buildroot}%{_datadir}/%{name}/res/share/icons

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3984 |21cr|peek-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple animated GIF screen recorder
Name:		peek
Version:	1.5.1
Release:	1
License:	GPLv3+
Group:		Video
Url:		https://github.com/phw/peek
Source0:	https://github.com/phw/peek/archive/refs/tags/%{name}-%{version}.tar.gz
Source1:	peek_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	gettext >= 0.19
BuildRequires:	gzip
BuildRequires:	txt2man
BuildRequires:	vala >= 0.22
BuildRequires:	libxml2-utils
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(glib-2.0) >= 2.42.0
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.22
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(keybinder-3.0)
Requires:	ffmpeg
Recommends:	gstreamer1.0-plugins-ugly

%description
Simple animated GIF screen recorder with an easy to use interface

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/com.uploadedlobster.%{name}.desktop
%{_datadir}/dbus-1/services/com.uploadedlobster.%{name}.service
%{_datadir}/metainfo/com.uploadedlobster.%{name}.appdata.xml
%{_datadir}/glib-2.0/schemas/com.uploadedlobster.%{name}.gschema.xml
%{_iconsdir}/scalable/apps/com.uploadedlobster.%{name}.svg
%{_iconsdir}/symbolic/apps/com.uploadedlobster.%{name}-symbolic.svg
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q

pushd po
	tar -xvzf %{SOURCE1}
popd


%build
%cmake -DBUILD_TESTS=OFF
%make


%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3985 |21cr|peg-e-1.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pege
Name: 		peg-e
Summary: 	Peg-E is a peg solitaire game
Version:	1.3.0
Release:	2
License: 	GPLv2
Group: 		Games/Puzzles
URL:		http://qt-apps.org/content/show.php/Peg-E?content=98289&PHPSESSID=99179d0529c2420d9fc65b8262873c9c
Source0:	http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
BuildRequires:	qt5-devel 
BuildRequires:	qt5-linguist-tools
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util

%description
Peg solitaire game in which you jump over pieces in order to remove 
them from the board, ultimately trying to eliminate all but one. 
The boards are randomly generated, with 100 levels of difficulty. 
The game auto-saves, and has undo-redo capability. 
Pieces can move horizontally, vertically, and diagonally.


%files -f %{oname}.lang
%doc COPYING CREDITS ChangeLog README 
%{_gamesbindir}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_appdatadir}/%{name}.appdata.xml
%{_mandir}/man6/%{name}.6*
#-------------------------------------------------------------------------------------
%prep
%setup -q
rm -rf windows_deploy.bat windows mac_deploy.sh mac

%build
%qmake_qt5 PREFIX=%{_prefix} \
    BINDIR=games \
    DEFINES+=USE_SYSTEM_LOCALE \
    QMAKE_CXXFLAGS="%{optflags -wall}"

pushd translations
%{_qt5_bindir}/lrelease *.ts
popd

%make 

%install
%makeinstall_qt PREFIX=%{_prefix} \
    BINDIR=games

%find_lang %{oname} --with-qt
# don't really need those too...
rm -fr %{buildroot}%{_datadir}/{pixmaps,%{name}/icons}


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop 
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3986 |21cr|peksystray-0.4.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	peksystray
Summary: 	Small system tray requiring only X
Version: 	0.4.0
Release: 	8
Source:		%{name}-%{version}.tar.bz2
Patch0:		peksystray-0.4.0-fix-str-fmt.patch
Patch1:		peksystray-0.4.0-fix-link.patch
URL:		http://peksystray.sourceforge.net/
License:	GPL
Group:		Graphical desktop/Other
BuildRequires:	pkgconfig(x11)

%description
Peksystray is a small system tray (also called notification tray) designed for
all the light window managers supporting docking. As more and more
applications use a small icon in the system tray to provide additonal
fonctionalities and information, it becomes useful for everyone to have
access to them. While "heavy" window managers (Gnome, KDE...) come with a
systrem tray embedded in the rest of the desktop, lighter window managers
(WindowMaker, fluxbox...) don't have this feature. Peksystray is a very simple
and light implementation of a system tray for any window manager supporting
docking, conforming to the System Tray Freedesktop standard.

Peksystray provides a window where icons will automatically add up depending
on the requests from the applications. Both the size of the window and the
size of the icons can be selected by the user. If the window is full, it can
automatically display another window in order to display more icons.

%prep
%setup -q
%patch0 -p0
%patch1 -p0

%build
autoreconf -fi
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog THANKS REFS README NEWS TODO
%{_bindir}/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3987 |21cr|pekwm-0.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A minimalist window manager for the X Window System
Name:		pekwm
Version:	0.3.0
Release:	2
License:	GPLv2
Group:		Graphical desktop/Other
Url:		http://pekwm.se/
Source0:	https://github.com/pekwm/pekwm/archive/release-%{version}.tar.gz?/%{name}-release-%{version}.tar.gz
# modify config
Source1:	pekwm_config
Source2:	pekwm_mouse
Source3:	30Pekwm.desktop
# add themes (fonts changed for Mandriva)
Source10:	Opus3_Alpha-dev-20050227.tar.bz2
Source11:	OpusOS-Deep.tar.bz2
BuildRequires:	cmake
BuildRequires:	jpeg-devel
BuildRequires:	png-devel
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pangoxft)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
Requires:	xterm

%description
Pekwm is a window manager based on aewm++, but it no longer
resembles it. It is highly configurable, rather fast, and
aimed towards being usable while remaining pretty enough to
look at. Features include client window grouping into one
window frame, automatic window size, location, grouping
and title rewriting.

%files
%doc AUTHORS NEWS.md README.md
%{_bindir}/%{name}
%{_bindir}/%{name}_*
%{_bindir}/start%{name}
%config(noreplace) %{_sysconfdir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/xsessions/30Pekwm.desktop
%dir %{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}_*.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-release-%{version}

# modify config
cp -f %{SOURCE1} data/config
cp -f %{SOURCE2} data/mouse

%build
%cmake
%make

%install
%makeinstall_std -C build

# install themes
tar -jxf %{SOURCE10} -C %{buildroot}%{_datadir}/%{name}/themes
tar -jxf %{SOURCE11} -C %{buildroot}%{_datadir}/%{name}/themes

install -D -m644 %{SOURCE3} %{buildroot}%{_datadir}/xsessions/30Pekwm.desktop

# startfile
cat > %{buildroot}%{_bindir}/start%{name} << EOF
#!/usr/bin/bash
exec %{_bindir}/%{name}
EOF

chmod 755 %{buildroot}%{_bindir}/start%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3988 |21cr|penguin-command-1.6.11-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		penguin-command
Summary:	A clone of the classic Missile Command game
Version:	1.6.11
Release:	9
Source0:	http://belnet.dl.sourceforge.net/sourceforge/penguin-command/%{name}-%{version}.tar.bz2
Source11:	%{name}.16.png
Source12:	%{name}.32.png
Source13:	%{name}.48.png
URL:		http://www.linux-games.com/penguin-command/index.html
License:	GPL
Group:		Games/Arcade
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	SDL_image-devel
Requires:	soundwrapper

%description
This is a clone of the classic "Missile Command" Game, but it has better
graphics and music. The gameplay has only been slightly modified. Penguin
Command is completely licensed under the GPL, excluding the music.

%prep
%setup -q

%build
%configure --bindir=%{_gamesbindir} --datadir=%{_gamesdatadir}
%make

%install
rm -rf $RPM_BUILD_ROOT
%{makeinstall_std}

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Penguin Command
Comment=%{Summary}
Exec=soundwrapper %{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

install -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc README NEWS AUTHORS
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3989 |21cr|pentaxpj-1.0.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pentax PocketJet Printer Driver
Name:		pentaxpj
Version:	1.0.0
Release:	21
License:	GPLv2+
Group:		System/Printing
Url:		http://www.pragana.net/gdiprinters.html
Source0:	http://www.pragana.net/%{name}-%{version}.tar.gz
Patch0:		pentaxpj-glibc28_fix.diff
Patch1:		pentaxpj-1.0.0-LDFLAGS.diff

%description
Pentax PocketJet Printer Driver for the families:

 o PocketJet II
 o PocketJet 200.

%files
%doc README
%{_libdir}/pentaxpj
%config(noreplace) %{_sysconfdir}/pentaxpj.conf
%defattr(0755,root,root,0755)
%{_bindir}/pentaxpj
%{_sbindir}/pentaxsetup

#----------------------------------------------------------------------------

%prep
%autosetup -p0 -n %{name}

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS`  `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%build
%make CFLAGS="%{optflags} -DLONG_FORM_FEED" LDFLAGS="%{ldflags}"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}/pentaxpj
install -d %{buildroot}%{_sysconfdir}

cp -a BWidget-1.3.1 pentaxpj pentaxsetup pentax.xpm test-page.ps.gz %{buildroot}%{_libdir}/pentaxpj
ln -s %{_libdir}/pentaxpj/pentaxsetup %{buildroot}%{_sbindir}
ln -s %{_libdir}/pentaxpj/pentaxpj %{buildroot}%{_bindir}
cat > %{buildroot}%{_sysconfdir}/pentaxpj.conf <<EOF
#
set settings(driverpath) %{_libdir}/pentaxpj
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3990 |21cr|pente-2.2.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:    pente
Version: 2.2.5
Release: 11
Summary: Five in a row game for X
Source:  http://www.igoweb.org/~wms/comp/pente/%{name}-%{version}.tar.gz
Source2: %{name}-icons.tar.bz2
Patch:   pente-makefile.patch
Group:   Games/Boards
License: GPL
URL:     http://www.igoweb.org/~wms/comp/pente
BuildRequires: pkgconfig(x11) 
BuildRequires: ncurses-devel

%description
Pente is the English name for the Asian game ni-nuki, which itself 
is a version of the game go-moku. The game is a variant of the well 
known five in a row. Placing five stones in a row is one way to win, 
the other is to capture five pairs of the opponents stones.

Pente can run in three different modes: X, curses or text. You can 
play against the computer or another human, and there is also support 
for playing over a network. 

%prep
%setup -q
%patch -p1

%build
%configure --host=%{_host} --target=%{_target_platform} --with-x
%make CC="gcc %{optflags} %{?ldflags}"

%install
mkdir -p %{buildroot}/%{_gamesbindir}
mkdir -p %{buildroot}%{_mandir}/man6
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps

%makeinstall_std
tar xvjf %{SOURCE2} 
cp %{name}-16.png %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png
cp %{name}-32.png %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png
cp %{name}-48.png %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/%{name}.png
cp %{name}-32.png %{buildroot}/%{_iconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Pente
Comment=Five in a row game
Comment[ru]=Игра "пять в ряд"
Exec=%{_gamesbindir}/pente
Icon=%{name}
Terminal=false
Type=Application
Categories=GTK;Game;BoardGame;
EOF

%files
%doc README
%{_gamesbindir}/%{name}
%{_mandir}/man6/*
%{_datadir}/applications/*.desktop
%_iconsdir/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3991 |21cr|perf-tools-0.20150709.30ff475891.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perf-tools
Summary:        Performance analysis tools based on Linux perf_events (aka perf) and ftrace 
Version:        0.20150709.30ff475891.1
Release:        3
Source0:        https://github.com/brendangregg/perf-tools/archive/master.zip
Url:            https://github.com/brendangregg/perf-tools
Group:          System/Configuration/Other
License:        GPL
BuildArch:      noarch
Requires:       perf

%description
A miscellaneous collection of in-development and unsupported performance
analysis tools for Linux ftrace and perf_events (aka the "perf" command). 
Both ftrace and perf are core Linux tracing tools, included in the kernel 
source. Your system probably has ftrace already, and perf is often just a 
package add (see Prerequisites).

These tools are designed to be easy to install (fewest dependencies), 
provide advanced performance observability, and be simple to use: do one 
thing and do it well. This collection was created by Brendan Gregg (author
of the DTraceToolkit).

Many of these tools employ workarounds so that functionality is possible 
on existing Linux kernels. Because of this, many tools have caveats (see 
man pages), and their implementation should be considered a placeholder 
until future kernel features, or new tracing subsystems, are added.

These are intended for Linux 3.2 and newer kernels. For Linux 2.6.x, see 
Warnings.


#---------------------------------------------------------------------------

%prep
%setup -qn %{name}-master

%build

%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_datadir}/%{name} %{buildroot}%{_mandir}/man8

install -m755 disk/bitesize %{buildroot}%{_bindir}
install -m755 fs/cachestat %{buildroot}%{_bindir}
install -m755 execsnoop %{buildroot}%{_bindir}
install -m755 kernel/* %{buildroot}%{_bindir}
install -m755 iolatency %{buildroot}%{_bindir}
install -m755 iosnoop %{buildroot}%{_bindir}
install -m755 killsnoop %{buildroot}%{_bindir}
install -m755 opensnoop %{buildroot}%{_bindir}
install -m755 misc/perf-stat-hist %{buildroot}%{_bindir}
install -m755 tools/reset-ftrace %{buildroot}%{_bindir}
install -m755 syscount %{buildroot}%{_bindir}
install -m755 net/tcpretrans %{buildroot}%{_bindir}
install -m755 system/tpoint %{buildroot}%{_bindir}
install -m755 user/uprobe %{buildroot}%{_bindir}

cp -r man %{buildroot}/usr/share
cp -r examples %{buildroot}/usr/share/perf-tools

%files
%doc LICENSE README.md
%{_bindir}/*
%{_mandir}/man8/*
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3992 |21cr|perl-Acme-Bleach-1.150.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Acme-Bleach
%define upstream_version 1.150

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	For I<really> clean programs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Acme/Acme-Bleach-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The first time you run a program under 'use Acme::DWIM', the module
replaces all the unsightly operators et al. from your source file with the
new DWIM operator: '...' (pronounced "yadda yadda yadda").

The code continues to work exactly as it did before, but now it looks like
this:

	use Acme::DWIM;
	
	my ($x) ... ...("Hullo " ... 3 ... "world" ... "~" ... 30) ... /(...)/;
	$x ... tr/tnv/uow/;
	print $x;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3993 |21cr|perl-Acme-Damn-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Acme-Damn
%define upstream_version 0.08
%global __provides_exclude Damn.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    'Unbless' Perl objects

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Acme/Acme-Damn-%{upstream_version}.tar.gz

BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel

%description
*Acme::Damn* provides a single routine, *damn()*, which takes a blessed
reference (a Perl object), and _unblesses_ it, to return the original
reference. I can't think of any reason why you might want to do this, but
just because it's of no use doesn't mean that you shouldn't be able to do
it.

EXPORT
    By default, *Acme::Damn* exports the method *damn()* into the current
    namespace. Aliases for *damn()* (see below) may be imported upon
    request.

Methods
    * *damn* _object_

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3994 |21cr|perl-Acme-MetaSyntactic-1.15.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Acme-MetaSyntactic
%define upstream_version 1.015

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Generates themed metasyntactic variables

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Acme/Acme-MetaSyntactic-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Acme::MetaSyntactic is a perl module to generate good (as well as funny)
metasyntactic variable names. It provides several variable themes, from the
usual "foo" "bar" list, to the fight sound effects from the Batman 60s TV
serial.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Acme
%{perl_vendorlib}/Test
%{perl_vendorlib}/*pm
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3995 |21cr|perl-Acme-POE-Acronym-Generator-1.200.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Acme-POE-Acronym-Generator
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Generate random POE acronyms

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Acme/Acme-POE-Acronym-Generator-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Math::Random)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
What does POE stand for?" is a common question, and people have expanded
the acronym in several ways.

Acme::POE::Acronym::Generator produces randomly generated expansions of the
POE acronym ( or at your option any other arbitary word ).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3996 |21cr|perl-Affix-Infix2Postfix-0.30.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Affix-Infix2Postfix
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Perl extension for converting from infix
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/A/AD/ADDI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildArch: noarch

%description
Infix2Postfix as the name suggests converts from infix to postfix notation.
The reason why someone would like to do this is that postfix notation is
generally much easier to do in computers. For example take an expression
like: a+b+c*d. For us humans it's pretty easy to do that calculation. But
it's actually much better for computers to get a string of operations such
as: a b + c d * +, where the variable names mean put variable on stack.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3997 |21cr|perl-Algorithm-Annotate-0.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Algorithm-Annotate
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl module to represent a series of changes in annotate form

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:    ftp://ftp.perl.org/pub/CPAN/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Algorithm::Diff)
BuildArch:      noarch

%description
Algorithm::Annotate generates a list that is useful for generating output
similar to cvs annotate

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3998 |21cr|perl-Algorithm-Cluster-1.520.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Algorithm-Cluster
%define upstream_version 1.52

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl interface to Michiel Jan Laurens de Hoon's C clustering library

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Algorithm/Algorithm-Cluster-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
This module is an interface to the C Clustering Library, a general purpose
library implementing functions for hierarchical clustering (pairwise simple,
complete, average, and centroid linkage), along with k-means and k-medians
clustering, and 2D self-organizing maps. The library is distributed along with
Cluster 3.0, an enhanced version of the famous Cluster program originally
written by Michael Eisen while at Stanford University. The C clustering library
was written by Michiel de Hoon.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 's|^#!/usr/perl/perl580/bin/perl|#!/usr/bin/perl|' perl/examples/*

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make CFLAGS="%{optflags}"

%install
%makeinstall_std

%check
make test

%clean 

%files
%doc INSTALL README perl/examples
%{perl_vendorarch}/Algorithm
%{perl_vendorarch}/auto/Algorithm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 3999 |21cr|perl-Algorithm-Diff-Apply-0.2.3-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Algorithm-Diff-Apply
%define upstream_version 0.2.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	17

Summary:	Apply one or more Algorithm::Diff diffs

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::Diff)

BuildArch:	noarch

%description
This module contains subroutines for applying diffs generated by
Algorithm::Diff to a target array in the hope of regenerating a new array
incorporating all the changes described in the diffs into a new merged array.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make 
%make test

%install
%makeinstall_std

%files 
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4000 |21cr|perl-Algorithm-Graphs-TransitiveClosure-2009110901.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Algorithm-Graphs-TransitiveClosure
%define upstream_version 2009110901

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Calculate the transitive closure

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch
Obsoletes:	perl-TransitiveClosure <= 1.4
Provides:	perl-TransitiveClosure = %{version}-%{release}

%description
This is an implementation of the well known Floyd-Warshall algorithm.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes
%{perl_vendorlib}/Algorithm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4001 |21cr|perl-Algorithm-Merge-0.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Algorithm-Merge
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Implements 3-way merge and diff algorithms

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::Diff)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4002 |21cr|perl-Algorithm-Munkres-0.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Algorithm-Munkres
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	%{upstream_name} module for perl
License:	GPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp.perl.org/pub/CPAN/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl extension for Munkres' solution to 
classical Assignment problem for square and rectangular matrices 
This module extends the solution of Assignment problem for square
matrices to rectangular matrices by padding zeros. Thus a rectangular 
matrix is converted to square matrix by padding necessary zeros.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Algorithm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4003 |21cr|perl-Algorithm-RectanglesContainingDot-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Algorithm-RectanglesContainingDot
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Find rectangles containing a given dot

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Given a set of rectangles and a set of dots, the algorithm implemented in
this modules finds for every dot, which rectangles contain it.

The algorithm complexity is O(R * log(R) * log(R) + D * log(R)) being R the
number of rectangles and D the number of dots.

Its usage is very simple:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4004 |21cr|perl-Alias-2.320.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Alias
%define	upstream_version 2.32

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	CPAN %{upstream_name} module for aliasing services

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Alias/%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		Alias-2.32-perl-5.14-fix.patch

BuildRequires:	perl-devel

%description
This Perl module performs aliasing services. You may find this
module useful if you:
   * are tired of dereferencing hash-based object attributes
   * wish perl could make-do with fewer $, -> and {} things
   * are a little scared of using typeglobs
   * want the freedom to put what you want, when you want in
     the symbol table without having to deal with weird syntax
   * need to use scalar constants in your program since you don't
     trust yourself from changing $PI

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1 -b .perl514~

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorarch}/Alias.pm
%{perl_vendorarch}/auto/Alias/Alias.so
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4005 |21cr|perl-Alien-Gimp-0.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Alien-Gimp
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Alien::Gimp - Encapsulate install info for GIMP
Group:		Development/Perl
License:	perl
Url:		https://metacpan.org/dist/Alien-Gimp
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::PkgConfig)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::All)
BuildRequires:	perl(Inline)
BuildRequires:	perl(Inline::C)
BuildRequires:	perl(Test::More)
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{summary}.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README
%{perl_vendorarch}/Alien*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4006 |21cr|perl-Alien-GMP-1.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Alien-GMP
%define upstream_version 1.16

%global debug_package %{nil}
%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Alien package for the GNU Multiple Precision library
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Alien/%{upstream_name}-%{upstream_version}.tar.gz

# For Alien::Build::Plugin::Probe::CBuilder:
BuildRequires: perl(Alien::Base) >= 1.460.0
BuildRequires: perl(Alien::Build) >= 0.250.0
BuildRequires: perl(Alien::Build::MM) >= 0.320.0
BuildRequires: perl(Devel::CheckLib)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.520.0
BuildRequires: perl(Test2::V0) >= 0.0.60
BuildRequires: perl(Test::Alien)
BuildRequires: perl(FFI::CheckLib)
BuildRequires: perl(JSON::PP)
BuildRequires: gmp-devel
Requires:   gmp%{?_isa}
%description
This distribution installs GMP so that it can be used by other Perl
distributions. If already installed for your operating system, and it can
be found, this distribution will use the GMP that comes with your operating
system, otherwise it will download it from the Internet, build and install
it for you.

C++ support
    This Alien will provide the C++ bindings for GMP (libgmpxx) if
    possible. If you do not have a C++ compiler, or if your operating
    system vendor provides a GMP package without the needed C++ files then
    it will not be available. To use the C++ bindings, you can use the
    'alt' method to create a C++ instance of this GMP Alien. For example:

     use ExtUtils::MakeMaker;
     use Config;
     use Alien::GMP;

     WriteMakefile(
       ...
       CONFIGURE_REQUIRES => {
         'Alien::GMP' => '1.06', # require version that provides C++ bindings
       },
       CCFLAGS => Alien::GMP->alt('gmpxx')->cflags . " $Config{ccflags}",
       LIBS    => [ Alien::GMP->alt('gmpxx')->libs ],
       ...
     );

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
make test

%install
%make_install

%files
%doc Changes INSTALL LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4007 |21cr|perl-Alien-SDL-1.446.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Alien-SDL
%define upstream_version 1.446

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Building, finding and using SDL binaries
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Alien/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Archive::Extract)
BuildRequires: perl(Archive::Tar)
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(File::Fetch) >= 0.240.0
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path) >= 2.80.0
BuildRequires: perl(File::ShareDir) >= 1.0.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::Which)
BuildRequires: perl(Module::Build) >= 0.360.0
BuildRequires: perl(Text::Patch) >= 1.400.0
BuildRequires: perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(SDL_mixer)
BuildRequires: pkgconfig(freetype2)
BuildRequires: pkgconfig(SDL_ttf)
BuildRequires: pkgconfig(SDL_gfx)
BuildRequires: pkgconfig(SDL_Pango)

# No arch related files provided.
BuildArch:	noarch

%description
Please see the Alien manpage for the manifesto of the Alien namespace.

In short 'Alien::SDL' can be used to detect and get configuration settings
from an installed SDL and related libraries. Based on your platform it
offers the possibility to download and install prebuilt binaries or to
build SDL & co. from source codes.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
echo 1 | %{__perl} Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc Changes LICENSE META.json META.yml README TODO
%{_bindir}/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4008 |21cr|perl-Alien-SeleniumRC-3.700.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Alien-SeleniumRC
%define upstream_version 3.7

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Packaging up SeleniumRC java server

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Alien/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(inc::Module::Install)



BuildArch:	noarch

%description
The Selenium RC home page is at the http://openqa.org/selenium-rc manpage

Selenium Remote Control is a test tool that allows you to write automated
web application UI tests in any programming language against any HTTP
website using any mainstream JavaScript-enabled browser.

Selenium Remote Control provides a Selenium Server, which can automatically
start/stop/control any supported browser. It works by using Selenium Core,
a pure-HTML+JS library that performs automated tasks in JavaScript.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/selenium-rc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4009 |21cr|perl-Alien-wxWidgets-0.690.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Alien-wxWidgets
%define upstream_version 0.69

%define debug_package %{nil}

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        3

Summary:        Building, finding and using wxWidgets binaries


License:        GPL+ or Artistic
Group:          Development/Perl
URL:            https://search.cpan.org/dist/%{upstream_name}
Source0:        https://www.cpan.org/modules/by-module/Alien/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:         Alien-wxWidgets-0.43-fix-wrong-libname.patch

BuildRequires: perl(ExtUtils::CBuilder) >= 0.240.0
BuildRequires: perl(File::Spec) >= 1.500.0
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(Module::Build) >= 0.280.0
BuildRequires: perl(Module::Pluggable) >= 2.600.0
BuildRequires: wxgtku3.0-devel
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)

### TODO: No binary provided, should be noarch ###

%description
In short Alien::wxWidgets can be used to detect and get configuration settings
from an installed wxWidgets.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# fix bug 45256
%patch0 -p0 -b .libname
iconv -f iso8859-1 -t utf-8 Changes > Changes.conv && mv -f Changes.conv Changes

%build
export WX_CONFIG=%{_bindir}/wx-config
%{__perl} Build.PL installdirs=vendor < /dev/null
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

%files
%doc Changes META.json META.yml README.txt
%{perl_vendorarch}/Alien
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4010 |21cr|perl-ANSIColor-3.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ANSIColor
%define upstream_version 3.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Color output using ANSI escape sequences

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module has two interfaces, one through color() and colored() and the
other through constants. It also offers the utility function uncolor(),
which has to be explicitly imported to be used (see the /SYNOPSIS manpage).

color() takes any number of strings as arguments and considers them to be
space-separated lists of attributes. It then forms and returns the escape
sequence to set those attributes. It doesn't print it out, just returns it,
so you'll have to print it yourself if you want to (this is so that you can
save it as a string, pass it to something else, send it to a file handle,
or do anything else with it that you might care to).

uncolor() performs the opposite translation, turning escape sequences into
a list of strings.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README ChangeLog
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4011 |21cr|perl-AnyData-0.120.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AnyData
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Easy access to data in many formats

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JZ/JZUCKER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Twig)
BuildRequires:	perl(CGI)
### From META.yml: ExtUtils::MakeMaker: '7.04' Mandatory:
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
### Symbianflo
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Output)


BuildArch:	noarch

%description
The rather wacky idea behind this module and its sister module DBD::AnyData is
that any data, regardless of source or format should be accessible and
modifiable with the same simple set of methods. This module provides a
multi-dimensional tied hash interface to data in a dozen different formats. The
DBD::AnyData module adds a DBI/SQL interface for those same formats.

Both modules provide built-in protections including appropriate flocking() for
all I/O and (in most cases) record-at-a-time access to files rather than
slurping of entire files.

Currently supported formats include general format flatfiles (CSV, Fixed
Length, etc.), specific formats (passwd files, httpd logs, etc.), and a variety
of other kinds of formats (XML, Mp3, HTML tables). The number of supported
formats will continue to grow rapidly since there is an open API making it easy
for any author to create additional format parsers which can be plugged in to
AnyData itself and thereby be accessible by either the tiedhash or DBI/SQL
interface.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x lib/AnyData.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%dir %{perl_vendorlib}/AnyData
%dir %{perl_vendorlib}/AnyData/Storage
%dir %{perl_vendorlib}/AnyData/Format
%{perl_vendorlib}/AnyData/Storage/*
%{perl_vendorlib}/AnyData/Format/*
%{perl_vendorlib}/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4012 |21cr|perl-AnyEvent-HTTP-2.220.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AnyEvent-HTTP
%define upstream_version 2.22
%global __requires_exclude perl\\(Exporter(.*)\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Simple but non-blocking HTTP/HTTPS client


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/AnyEvent/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(AnyEvent) >= 7.70.0
BuildRequires:	perl(common::sense)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.98.0
BuildRequires:	perl(URI)

BuildArch:	noarch

%description
This module is an AnyEvent user, you need to make sure that you
use and run a supported event loop.

This module implements a simple, stateless and non-blocking HTTP client. It
supports GET, POST and other request methods, cookies and more, all on a
very low level. It can follow redirects, supports proxies and automatically
limits the number of connections to the values specified in the RFC.

It should generally be a "good client" that is enough for most HTTP tasks.
Simple tasks should be simple, but complex tasks should still be possible
as the user retains control over request and response headers.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4013 |21cr|perl-AnyEvent-I3-0.170.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name AnyEvent-I3
%define upstream_version 0.17

Summary:	%{upstream_name} module for perl
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/M/MS/MSTPLBG/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(AnyEvent)
BuildRequires:	perl(AnyEvent::Handle)
BuildRequires:	perl(AnyEvent::Socket)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(Module::Install)
BuildArch:	noarch

%description
This module connects to the i3 window manager using the UNIX socket based
IPC interface it provides (if enabled in the configuration file). You can
then subscribe to events or send messages and receive their replies.

%files
%doc Changes README
%{perl_vendorlib}/AnyEvent/I3.pm
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4014 |21cr|perl-AnyEvent-IRC-0.970.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(AnyEvent::IRC::Connection::\\)|perl\\(Object::Event::\\)


%define upstream_name    AnyEvent-IRC
%define upstream_version 0.97

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    An IRC connection abstraction
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/AnyEvent/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(AnyEvent)
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Object::Event)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(common::sense)
BuildArch: noarch

%description
The the AnyEvent::IRC manpage module consists of the
AnyEvent::IRC::Connection manpage, the AnyEvent::IRC::Client manpage and
the AnyEvent::IRC::Util manpage. the AnyEvent::IRC manpage is just a module
that holds this overview over the other modules.

the AnyEvent::IRC manpage can be viewed as toolbox for handling IRC
connections and communications. It won't do everything for you, and you
still need to know a few details of the IRC protocol.

the AnyEvent::IRC::Client manpage is a more highlevel IRC connection that
already processes some messages for you and will generated some events that
are maybe useful to you. It will also do PING replies for you, manage
channels a bit, nicknames and CTCP.


%files
%doc Changes README 
%{_mandir}/man3/*
%{perl_vendorlib}/*
#-----------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4015 |21cr|perl-Any-Moose-0.270.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#DEPRECATION
#http://blog.64p.org/entry/2013/02/06/094906
#Please use Moo instead of Any::Moose for new code.

%define upstream_name Any-Moose
%define upstream_version 0.27

Summary:	Use Moose or Mouse modules
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Moose)
#Circular dependency
#BuildRequires:	perl(MouseX::Types) >= 0.60.0
BuildRequires:	perl(Mouse) >= 2.4.1
BuildRequires:	perl(Role::Tiny)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
Requires:	perl(Mouse) >= 2.4.1
BuildArch:	noarch

%description
Actual documentation is forthcoming, once we solidify all the bits of the
API. The examples above are very likely to continue working.

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4016 |21cr|perl-Any-URI-Escape-0.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Any-URI-Escape
%define upstream_version 0.01


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Load URI::Escape::XS preferentially over URI::Escape
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Any/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(URI::Escape)

BuildArch: noarch

%description
URI::Escape is great, but URI::Escape::XS is faster. This module loads
URI::Escape::XS and imports the two most common methods if XS is installed.

The insides of this module aren't completely shaken out yet, so patches
welcome.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4017 |21cr|perl-Apache2-AuthCookieDBI-2.190.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache2-AuthCookieDBI
%define upstream_version 2.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	An AuthCookie module backed by a DBI database

License:	LGPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Apache2/Apache2-AuthCookieDBI-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Apache::DBI) >= 0.91
BuildRequires:	perl(Date::Calc)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	apache-mod_perl
BuildArch:	noarch

%description
Apache2::AuthCookieDBI is a module that subclasses Apache2::AuthCookie and is
designed to be directly used for authentication in a mod_perl server.

It is a ticket-issuing system that looks up username/passwords in a DBI
database using generic SQL and issues MD5-checksummed tickets valid for
a configurable time period.  Incoming requests with tickets are
checksummed and expire-time checked.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

#%%check
#make test

%install
%makeinstall_std

%files
%doc Changes README eg *.txt *.sql
%{perl_vendorlib}/Apache2_4
%{perl_vendorlib}/Apache2
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4018 |21cr|perl-Apache2-ClickPath-1.901.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name		Apache2-ClickPath
%define upstream_version	1.901

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Apache WEB Server User Tracking

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/O/OP/OPI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Member)
BuildRequires:	perl(Perl::AtEndOfScope)
BuildRequires:	apache-mod_perl-devel
BuildArch:	noarch

%description
Apache2::ClickPath adds a PerlTransHandler and an output filter to
Apache's request cycle. The transhandler inspects the requested
URI to decide if an existing session is used or a new one has to
be created.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# make test don't work..., but works on 10.2
# make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Apache2
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4019 |21cr|perl-Apache2-DebugFilter-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache2-DebugFilter
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Apache2::DebugFilter - Debug mod_perl and native Apache2 filters

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Apache2/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	apache-mod_perl
BuildRequires:	apache-mod_perl-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Apache::Test) >= 1.25
BuildArch:	noarch

%description
Apache2::DebugFilter - Debug mod_perl and native Apache2 filters.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Apache2/DebugFilter.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4020 |21cr|perl-Apache2-Filter-HTTPHeadersFixup-0.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Apache2-Filter-HTTPHeadersFixup
%define upstream_version    0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Manipulate Apache 2 HTTP Headers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/P/PG/PGOLLUCCI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	apache-mod_perl
BuildRequires:  apache-mod_perl-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Apache::Test) >= 1.25

BuildArch:	noarch

%description
Apache2::Filter::HTTPHeadersFixup is a super class which provides an
easy way to manipulate HTTP headers without invoking any mod_perl HTTP
handlers. This is accomplished by using input and/or output connection
filters.

It supports KeepAlive connections.

This class cannot be used as is. It has to be sub-classed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Apache2/Filter/HTTPHeadersFixup.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4021 |21cr|perl-Apache2-ModSSL-0.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache2-ModSSL
%define upstream_version 0.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version 0.10
Release:	7

Summary:	Apache2::ModSSL - a Perl Interface to mod_ssl functions

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/O/OP/OPI/Apache2-ModSSL-0.10.tar.gz

BuildRequires:	perl-devel
BuildRequires:	apache-devel
BuildRequires:	apache-mod_perl
BuildRequires:	apache-mod_perl-devel
BuildRequires:	apache-mod_ssl

%description
Perl interface to mod_ssl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
#%{__perl} Makefile.PL INC="-I`%{_sbindir}/apxs -q INCLUDEDIR` `apr-1-config --includes` `apu-1-config --includes`" INSTALLDIRS=vendor
%__perl Makefile.PL -apxs %{_bindir}/apxs INSTALLDIRS=vendor
%make

#export APACHE_TEST_HTTPD="%{_sbindir}/httpd"
#make test

%install
%makeinstall_std

%files
%doc Changes README
%dir %{perl_vendorarch}/auto/Apache2/ModSSL
%{perl_vendorarch}/auto/Apache2/ModSSL/ModSSL.so
%{perl_vendorarch}/Apache2/ModSSL.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4022 |21cr|perl-Apache2-ShowStatus-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache2-ShowStatus
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Apache2::ShowStatus - if you want to know what your Apache processes are doing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Apache2/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	apache-mod_perl
BuildRequires:  apache-mod_perl-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Sys::Proctitle)
BuildRequires:	perl(Apache::Test) >= 1.25
BuildArch:	noarch

%description
This module provides a "PerlInitHandler" that sets the apache's process
title to

 "httpd: ".$r->the_request

The process title is automagically reset when the request is over.

Thus, "top" & Co shows what requests are currently active.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Apache2/ShowStatus.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4023 |21cr|perl-Apache2-SiteControl-1.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache2-SiteControl
%define upstream_version 1.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl web site authentication/authorization system

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Apache2/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	apache-mod_perl
BuildRequires:	perl(Apache::AuthCookie) >= 3.08
BuildRequires:	perl(Apache::Session) >= 1.54
BuildRequires:	perl(Apache::Test) >= 1.25
BuildRequires:	perl(Authen::Radius)  >= 0.10
BuildRequires:	perl(Carp::Assert) >= 0.18
BuildRequires:	perl(Crypt::CAST5) >= 0.04
BuildRequires:	perl(Crypt::CBC) >= 2.14
BuildRequires:	perl(Data::Dumper) >= 2.101
BuildRequires:	perl-libapreq2 >= 2.05
BuildArch:	noarch

%description
Apache2::SiteControl is a set of perl object-oriented classes that
implement a fine-grained security control system for a web-based application.
The intent is to provide a clear, easy-to-integrate system that does not
require the policies to be written into your application components. It
attempts to separate the concerns of how to show and manipulate data from the
concerns of who is allowed to view and manipulate data and why.

For example, say your web application is written in HTML::Mason. Your
individual "screens" are composed of Mason modules, and you would like to keep
those as clean as possible, but decisions have to be made about what to allow
as the component is processed. SiteControl attempts to make that as easy as
possible.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README* docs/apache sample
%{perl_vendorlib}/Apache2
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4024 |21cr|perl-Apache-ASP-2.630.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache-ASP
%define upstream_version 2.63

%global __requires_exclude ^perl\\(the\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A perl ASP port to Apache

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.gz
Source1:	asp.html
Source2:	perl-Apache-ASP.conf

BuildRequires:	perl-devel
BuildRequires:	perl-base
BuildRequires:	perl(MLDBM)
BuildRequires:	perl(MLDBM::Sync)
BuildRequires:	perl(DB_File)
BuildRequires:	perl(Apache::Filter)
Provides:	perl(Apache::ASP::Share::CORE)
Provides:	Apache-ASP = %{version}-%{release}
Requires:	apache-mod_perl >= 1:2.0.2
BuildArch:	noarch

%description
Apache::ASP provides an Active Server Pages port to the Apache Web Server
with Perl scripting only, and enables developing of dynamic web applications
with session management and embedded Perl code. There are also many powerful
extensions, including XML taglibs, XSLT rendering, and new events not
originally part of the ASP API!

This module works under the Apache Web Server with the mod_perl module
enabled. See http://www.apache.org and http://perl.apache.org for further
information.

This is a portable solution, similar to ActiveState's PerlScript for NT/IIS
ASP. Work has been done and will continue to make ports to and from this
implementation as smooth as possible.

For Apache::ASP downloading and installation, please read the INSTALL
section. For installation troubleshooting check the FAQ and the SUPPORT
sections.

For database access, ActiveX, scripting languages, and other miscellaneous
issues please read the FAQ section.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# optional test, causes trouble when Devel::Symdump is installed
rm -f t/stat_inc
make test

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_var}/www/perl
cp -pr site %{buildroot}%{_var}/www/perl/%{upstream_name}

install -d -m 755 %{buildroot}%{_var}/www/html/addon-modules/
cp %{SOURCE1} %{buildroot}%{_var}/www/html/addon-modules/%{upstream_name}.html

install -d -m 755 %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
install %{SOURCE2} -m 644  %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/perl-Apache-ASP.conf

%files
%doc CHANGES README
%config(noreplace) %{_webappconfdir}/perl-Apache-ASP.conf
%dir %{_var}/www/perl/%{upstream_name}
%{_var}/www/perl/%{upstream_name}/*
%{perl_vendorlib}/Apache
%{perl_vendorlib}/Bundle/Apache
%{_mandir}/*/*
%{_bindir}/*
%{_var}/www/html/addon-modules/Apache-ASP.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4025 |21cr|perl-Apache-AuthCookie-3.310.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Apache-AuthCookie
%define upstream_version 3.31

%global __requires_exclude perl\\(Apache::URI\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl Authentication and Authorization via cookies


License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	apache-mod_perl
BuildRequires:	perl-libwww-perl
BuildRequires:	perl-CGI
BuildRequires:	perl(Apache::Test) >= 1.25
BuildArch:	noarch

%description
Apache::AuthCookie allows you to intercept a user's first unauthenticated
access to a protected document. The user will be presented with a custom
form where they can enter authentication credentials. The credentials are
posted to the server where AuthCookie verifies them and returns a session
key.

The session key is returned to the user's browser as a cookie. As a cookie,
the browser will pass the session key on every subsequent accesses.
AuthCookie will verify the session key and re-authenticate the user.

All you have to do is write a custom module that inherits from AuthCookie.
See the POD documentation for more details.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#export APACHE_TEST_HTTPD=%{_sbindir}/httpd
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Apache
%{perl_vendorlib}/Apache2
%{perl_vendorlib}/Apache2_4/AuthCookie.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4026 |21cr|perl-Apache-DBI-1.120.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache-DBI
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Initiate a persistent database connection

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Apache/Apache-DBI-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBD::mysql)

BuildArch:	noarch

%description
This module initiates a persistent database connection.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Apache
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4027 |21cr|perl-Apache-Filter-1.24.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache-Filter
%define upstream_version 1.024

# it wants a module from mod_perl-1.x
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Apache::RegistryNG\\)
%else
%define _requires_exceptions perl(Apache::RegistryNG)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	13

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		Apache-Filter-1.024-mod_perl2.diff

BuildRequires:	apache-mod_perl 
BuildRequires:	perl-devel

BuildArch:	noarch

Requires:	apache-mod_perl

%description
%{upstream_name} module for perl : Alter the output of previous handlers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p0

%build
APACHE=%{_sbindir}/httpd perl Makefile.PL INSTALLDIRS=vendor <<EOF


EOF
%make

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Apache
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4028 |21cr|perl-Apache-GeoIP-1.990.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache-GeoIP
%define upstream_version 1.99

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Apache::Geo::IP - Look up country by IP Address

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	apache-devel
BuildRequires:	apache-mod_perl
BuildRequires:	apache-mod_perl-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Apache::Test) >= 1.25
BuildArch:	noarch

%description
This module constitutes a mod_perl (both versions 1 and 2) interface 
to the Geo::IP and Geo::Mirror modules. Geo::IP is used to look up in 
a database a country of origin of an IP address, while Geo::Mirror
is used to select a mirror by country from a specified list. See
the documentation for Apache::Geo::IP and Apache::Geo::Mirror
for more details.

The included tests require Apache::Test, which can be obtained
in the mod_perl-2 sources or in the httpd-test distribution.
These tests need a network connection to run; some may fail
due to timeouts upon doing certain name lookups.

The mod_perl-2 modules included here, with prefix Apache2::*,
will only work with mod_perl-1.999022 and above (RC5 or greater
of the CPAN distribution).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%check
# requires network, and test suite rework
# make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Apache2
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4029 |21cr|perl-Apache-Htpasswd-1.900.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache-Htpasswd
%define upstream_version 1.9

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Manage Unix crypt-style password file

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Apache/Apache-Htpasswd-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Crypt::PasswdMD5)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(MIME::Base64)

BuildArch:	noarch

%description
This module comes with a set of methods to use with htaccess password
files. These files (and htaccess) are used to do Basic Authentication on a
web server.

The passwords file is a flat-file with login name and their associated
crypted password. You can use this for non-Apache files if you wish, but it
was written specifically for .htaccess style files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4030 |21cr|perl-Apache-LogFormat-Compiler-0.360.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache-LogFormat-Compiler
%define upstream_version 0.36

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary:    Compile a log format string to perl-code
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta) >= 2.150.10
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(POSIX)
BuildRequires: perl(Test::MockTime)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Time::Local)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(Module::Build)
BuildRequires: perl(POSIX::strftime::Compiler)
BuildRequires: perl(JSON::PP)

BuildArch: noarch

%description
Compile a log format string to perl-code. For faster generation of
access_log lines.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot}/*

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4031 |21cr|perl-Apache-LogRegex-1.700.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Apache-LogRegex
%define upstream_version 1.70

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Perl module to parse a line from an Apache logfile into a hash
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    ftp://ftp.perl.org/pub/CPAN/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::More) >= 1.1.9

BuildArch:  noarch

%description
This implements a simple Perl class to parse Apache log files.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES LICENSE META.yml README.*
%{perl_vendorlib}/Apache/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4032 |21cr|perl-Apache-ProxyRewrite-0.170.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Apache-ProxyRewrite
%define upstream_version 0.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Apache::ProxyRewrite - mod_perl URL-rewriting proxy
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		Apache-ProxyRewrite-mpb.diff
Patch1:		Apache-ProxyRewrite-0.17-mod_perl2.diff

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Apache::ProxyRewrite acts as a reverse-proxy that will rewrite
URLs embedded in HTML documents per apache configuration
directives.

This module was written to allow multiple backend services with
discrete URLs to be presented as one service and to allow the
proxy to do authentication on the client's behalf.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1
%patch1 -p1
find . -type f -exec chmod 644 {} \;

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc ChangeLog README SUPPORT
%{perl_vendorlib}/Apache/ProxyRewrite.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4033 |21cr|perl-Apache-Session-1.940.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Apache-Session
%define upstream_version 1.94

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		2

Summary:	A persistence framework for session data


License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DB_File)
BuildRequires:  perl(DBI)
BuildRequires:  perl(Digest::MD5)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(Test::Exception)

BuildArch:	noarch

%description
Apache::Session is a persistence framework which is particularly useful
for tracking session data between httpd requests.  Apache::Session is
designed to work with Apache and mod_perl, but it should work under CGI
and other web servers, and it also works outside of a web server alto-
gether.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc INSTALL README META.yml
%{perl_vendorlib}/Apache
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4034 |21cr|perl-Apache-Session-Wrapper-0.340.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Apache-Session-Wrapper
%define upstream_version 0.34

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        7

Summary:        A simple wrapper around Apache::Session

License:        GPL+ or Artistic
Group:          Development/Perl
Url:            https://search.cpan.org/dist/%{upstream_name}
Source0:        https://www.cpan.org/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Apache::Session)
BuildRequires:  perl(Apache::Test)
BuildArch:      noarch

%description
This module is a simple wrapper around Apache::Session which
provides some methods to simplify getting and setting the session
id. It can uses cookies to store the session id, or it can look in
a provided object for a specific parameter. Alternately, you can
simply provide the session id yourself in the call to the
"session()" method. If you're using Mason, you should probably 
take a look at "MasonX::Request::WithApacheSession" first,  which
integrates this module directly into Mason.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test </dev/null

%install
./Build install destdir=%{buildroot}

%clean 
%files
%doc Changes LICENSE README SIGNATURE
%{perl_vendorlib}/Apache
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4035 |21cr|perl-Apache-SessionX-2.10.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Apache-SessionX
%define upstream_version 2.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	An extented persistence framework for session data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/G/GR/GRICHTER/%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		%{name}-2.01.fhs.patch
Patch1:		%{name}-2.01.test.patch

BuildRequires:	perl-devel
BuildRequires:	perl(Apache::Session)
BuildRequires:	perl(DB_File)
BuildArch:	noarch

%define testdir %{_tmppath}/%{name}-%{version}-test

%description
Apache::SessionX extends Apache::Session. It was initialy written to use
Apache::Session from inside of HTML::Embperl, but is seems to be useful
outside of Embperl as well, so here is it as standalone module.

Apache::Session is a persistence framework which is particularly
useful for tracking session data between httpd requests. Apache::Session is
designed to work with Apache and mod_perl, but it should work under CGI and
other web servers, and it also works outside of a web server altogether.

Apache::Session consists of five components: the interface, the object
store, the lock manager, the ID generator, and the serializer. The interface
is defined in SessionX.pm, which is meant to be easily subclassed. The
object store can be the filesystem, a Berkeley DB, a MySQL DB, an Oracle DB,
or a Postgres DB. Locking is done by lock files, semaphores, or the locking
capabilities of MySQL and Postgres. Serialization is done via Storable, and
optionally ASCII-fied via MIME or pack(). ID numbers are generated via MD5.
The reader is encouraged to extend these capabilities to meet his own
requirements.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 README
%patch0
%patch1 -p 1

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
rm -rf %{testdir}
mkdir %{testdir}
export TESTDIR=%{testdir}
make test

%clean 
rm -rf %{testdir}

%install
%makeinstall_std
install -d -m 755 %{buildroot}%{_localstatedir}/lib/ApacheSessionX

%files
%doc CHANGES README
%{_mandir}/*/*
%{perl_vendorlib}/Apache
%attr(-,apache,apache) %{_localstatedir}/lib/ApacheSessionX

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4036 |21cr|perl-App-Cache-0.370.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    App-Cache
%define upstream_version 0.37

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Module for easy application-level caching

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Chained)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
The App::Cache module lets an application cache data locally. There are a few 
times an application would need to cache data: when it is retrieving 
information from the network or when it has to complete a large calculation.

For example, the Parse::BACKPAN::Packages module downloads a file off the net 
and parses it, creating a data structure. Only then can it actually provide 
any useful information for the programmer. Parse::BACKPAN::Packages uses 
App::Cache to cache both the file download and data structures, providing 
much faster use when the data is cached.

This module stores data in the home directory of the user, in a dot directory. 
For example, the Parse::BACKPAN::Packages cache isactually stored 
underneath "~/.parse_backpan_packages/cache/". This is so that permisssions 
are not a problem - it is a per-user, per-application cache.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc CHANGES README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4037 |21cr|perl-App-CLI-0.520.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 App-CLI
%define upstream_version 0.52

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Dispatcher module for command line interface programs 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Simple)
BuildRequires:	perl(Locale::Maketext::Simple)
BuildRequires: perl(Class::Load)
BuildRequires: perl(Capture::Tiny)
BuildArch:	noarch

%description
App::CLI dispatches CLI (command line interface) based commands into command 
classes. It also supports subcommand and per-command options.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 's/auto_install\(\)\;//' Makefile.PL

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/App
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4038 |21cr|perl-App-Cmd-0.336.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    App-Cmd
%define upstream_version 0.336

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    "app cmd --subcmd" style subdispatching
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Load)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Data::OptList)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Getopt::Long::Descriptive)
BuildRequires: perl(IO::TieCombine)
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(Module::Pluggable::Object)
BuildRequires: perl(String::RewritePrefix)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Sub::Exporter::Util)
BuildRequires: perl(Sub::Install)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Text::Abbrev)
BuildRequires: perl(base)
BuildRequires: perl(constant)
BuildRequires: perl-devel
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(experimental)


BuildArch: noarch

%description
App::Cmd is intended to make it easy to write complex command-line
applications without having to think about most of the annoying things
usually involved.

For information on how to start using App::Cmd, see the App::Cmd::Tutorial
manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4039 |21cr|perl-App-Cme-1.38.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    App-Cme
%define upstream_version 1.038

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Generates pod doc from model files
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(App::Cmd::Setup)
BuildRequires: perl(Config::Model)
BuildRequires: perl(Config::Model::FuseUI)
BuildRequires: perl(Config::Model::Lister)
BuildRequires: perl(Config::Model::ObjTreeScanner)
BuildRequires: perl(Config::Model::SimpleUI)
BuildRequires: perl(Config::Model::TermUI)
BuildRequires: perl(Config::Model::Utils::GenClassPod)
BuildRequires: perl(File::Path)
BuildRequires: perl(IO::TieCombine)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Pod::POM)
BuildRequires: perl(Probe::Perl)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Command)
BuildRequires: perl(Test::File::Contents)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Mouse::Meta::Attribute::Custom::Trait::Hash)
BuildRequires: perl-devel
BuildRequires: perl(namespace::clean)
BuildRequires: perl(Getopt::Long::Descriptive)
BuildRequires: perl(YAML::PP)

BuildArch: noarch


%description
Common methods for all cme commands

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.yml META.json
%{_bindir}/cme
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4040 |21cr|perl-AppConfig-1.710.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AppConfig
%define upstream_version 1.71

Summary:	Perl5 modules for reading configuration
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/AppConfig/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-File-HomeDir
BuildArch:	noarch

%description
AppConfig has a powerful but easy to use module for parsing configuration
files. It also has a simple and efficient module for parsing command line
arguments.

%files
%doc README
%{perl_vendorlib}/AppConfig
%{perl_vendorlib}/AppConfig.pm
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%__make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4041 |21cr|perl-AppConfig-Std-1.100.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 AppConfig-Std
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Subclass of AppConfig that provides standard options
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(AppConfig)
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(strict)
BuildRequires:	perl(vars)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
AppConfig::Std is a Perl module that provides a set of standard configuration
variables and command-line switches. It is implemented as a subclass of
AppConfig; AppConfig provides a general mechanism for handling global
configuration variables.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/AppConfig/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4042 |21cr|perl-App-cpanminus-1.704.500-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    App-cpanminus
%define upstream_version 1.7045
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(App::cpanminus::script\\)|perl\\(App::cpanminus::Dependency\\)
%global __provides_exclude perl\\(JSON.*|perl\\(CPAN.*|perl\\(Module.*|perl\\(HTTP.*|perl\\(Exporter.*|perl\\(File.*|perl\\(Parse.*|perl\\(String.*|perl\\(A\\)|perl\\(My\\)|perl\\(YourModule\\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Get, unpack, build and install modules from CPAN


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(LWP)
BuildRequires:	perl(Module::Build)
BuildArch:	noarch

%description
cpanminus is a script to get, unpack, build and install modules from CPAN.

Why? It's dependency free, requires zero configuration, and stands alone.
When running, it requires only 10MB of RAM.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_bindir}/cpanm
%{perl_vendorlib}/App
%{_mandir}/man1/cpanm.1*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4043 |21cr|perl-App-Info-0.570.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 App-Info
%define upstream_version 0.57

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:	Information about software packages on a system

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::Pod) >= 1.20
BuildRequires:  apache
BuildRequires:  postgresql-devel
BuildRequires:  sqlite3-devel
BuildRequires:	sqlite3-tools
BuildArch:	noarch

%description
App::Info provides a generalized interface for providing metadata
about software packages installed on a system. The idea is that
App::Info subclasses can be used in Perl application installers in
order to determine whether software dependencies have been fulfilled,
and to get necessary metadata about those software packages.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build
./Build test

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean 

%files
%doc Changes README.md
%{perl_vendorlib}/App
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4044 |21cr|perl-App-Jawk-0.100.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    App-Jawk
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Awk, but post-modern and perly

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/J/JO/JOSHR/App-Jawk-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Jawk can be described as a flexible tool for extracting columns
of data from text files. Also, it's a replacement which supports
ranges, indexing columns by negative numbers, a perl mode, and more.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog Changes MANIFEST META.yml README
%{_bindir}/jawk
%{_mandir}/man1/*
%{perl_vendorlib}/App/Jawk.pm
%{_mandir}/man3/App::Jawk.3pm.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4045 |21cr|perl-App-perlbrew-0.950.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    App-perlbrew
%define upstream_version 0.95

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Manage perl installations in your $HOME



License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(local::lib)
BuildRequires: perl(IO::All)
BuildRequires: perl(CPAN::Perl::Releases)
BuildRequires: perl(Test::Spec)
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Path::Class)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Path::Tiny)
BuildRequires: perl(File::Which)
BuildRequires: perl(HTTP::Lite)
BuildRequires: perl(Test::Output)
BuildRequires: perl(Module::Build::Tiny)
BuildArch:     noarch

%description
perlbrew is a program to automate the building and installation of perl in
the users HOME. At the moment, it installs everything to
'~/perl5/perlbrew', and requires you to tweak your PATH by including a
bashrc/cshrc file it provides. You then can benefit from not having to run
'sudo' commands to install cpan modules because those are installed inside
your HOME too. It's a completely separate perl environment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc Changes LICENSE META.yml README
%{_bindir}/perlbrew
%{_mandir}/man1/perlbrew.1*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4046 |21cr|perl-App-pwhich-1.140.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 App-pwhich
%define upstream_version 1.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Portable implementation of the `which' utility

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Script)
BuildRequires:	perl(File::Which)

BuildArch:	noarch

%description
This module contains the guts of the the pwhich manpage script that is used
to be bundled with the File::Which manpage. It was removed from that
distribution because most users of the File::Which manpage do not need the
pwhich manpage. If you require the pwhich manpage, as a prerequisite,
please use the App::pwhich manpage as a prerequisite instead of the
File::Which manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_bindir}/pwhich
%{_mandir}/man1/*
%{_mandir}/man3*/*
%{perl_vendorlib}/App

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4047 |21cr|perl-App-SmokeBox-PerlVersion-0.160.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    App-SmokeBox-PerlVersion
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	SmokeBox helper module to determine perl version

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/App/App-SmokeBox-PerlVersion-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IPC::Cmd)
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Quickie)
BuildArch:	noarch

%description
App::SmokeBox::PerlVersion is a simple helper module for the
App::SmokeBox::Mini manpage and the minismokebox manpage that determines
and version and architecture of a given 'perl' executable.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4048 |21cr|perl-Archive-Any-0.94.200-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Archive-Any
%define upstream_version 0.0942

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Epoch:		1

Summary:	Single interface to deal with file archives

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Archive/Archive-Any-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(File::MMagic)
BuildRequires:	perl(MIME::Types)
BuildRequires:	perl(Archive::Zip)
BuildRequires:	perl(Archive::Tar)
BuildRequires:	perl(IO::Zlib)

BuildArch:	noarch

%description
This module is a single interface for manipulating different archive formats.
Tarballs, zip files, etc.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Archive
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4049 |21cr|perl-Archive-Any-Lite-0.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Archive-Any-Lite
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Simple CPAN package extractor

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Archive/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Archive::Tar)
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Uncompress::Bunzip2)
BuildRequires: perl(IO::Zlib)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::UseAllModules)
BuildRequires: perl(ExtUtils::MakeMaker::CPANfile)
BuildRequires: perl-devel
BuildArch: noarch

%description
This is a fork of the Archive::Any manpage by Michael Schwern and Clint
Moore. The main difference is this works properly even when you fork(), and
may require less memory to extract a tarball. On the other hand, this isn't
pluggable (this only supports file formats used in the CPAN toolchains),
and this doesn't check mime types (at least as of this writing).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.json META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4050 |21cr|perl-Archive-Peek-0.370.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Archive-Peek
%define upstream_version 0.37

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Peek into archives without extracting them

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Archive/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Archive::Tar)
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Moo)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Types::Path::Class)
BuildRequires: perl(Types::Path::Tiny)
BuildRequires: perl(Test::More)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl-devel
BuildArch:     noarch

%description
This module lets you peek into archives without extracting them. It
currently supports tar files and zip files. To support Bzip2- compressed
files, you should install IO::Uncompress::Bunzip2.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4051 |21cr|perl-Archive-Tar-Wrapper-0.230.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name		Archive-Tar-Wrapper
%define upstream_version	0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	API wrapper around the 'tar' utility

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Archive/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cwd)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IPC::Run)
BuildRequires:	perl(Log::Log4perl) >= 1.460.0
BuildRequires:	perl(File::Which)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
Archive::Tar::Wrapper is an API wrapper around the 'tar' command line
utility. It never stores anything in memory, but works on temporary
directory structures on disk instead. It provides a mapping between the
logical paths in the tarball and the 'real' files in the temporary
directory on disk.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4052 |21cr|perl-Array-Diff-0.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Array-Diff
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	This module do diff two arrays, and return added and deleted arrays 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Array/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Algorithm::Diff)
BuildArch:	noarch

%description
This module do diff two arrays, and return added and deleted arrays. It's
simple usage of Algorithm::Diff.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4053 |21cr|perl-Array-Each-0.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Array-Each
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.03
Release:	5

Summary:	Array-Each module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Array/Array-Each-0.03.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch


%description
Array::Each - iterate over one or more arrays, returning one or more
elements from each array followed by the array index.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Array/Each
%{perl_vendorlib}/Array/Each.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4054 |21cr|perl-Array-Iterator-0.131.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Array-Iterator
%define upstream_version 0.131

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A subclass of Array::Iterator to allow forwards and backwards iteration

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Array/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Module::Build) >= 0.360.100
BuildRequires: perl(Test::Exception)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This class provides a very simple iterator interface. It is
uni-directional and can only be used once. It provides no means of
reversing or resetting the iterator. It is not recommended to alter the
array during iteration, however no attempt is made to enforce this
(although I will if I can find an efficient means of doing so). This class
only intends to provide a clear and simple means of generic iteration,
nothing more (yet).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4055 |21cr|perl-Array-PrintCols-2.600.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Array-PrintCols
%define upstream_version 2.6

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Print or format array elements in vertically sorted columns

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Array/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Array::PrintCols is a Perl 5 module which defines a subroutine to
print arrays of elements in alphabetically, vertically sorted
columns.  Optional arguments can be given to control either the
width or number of the columns, the total width of the output, and
the amount of indentation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Array
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4056 |21cr|perl-Array-RefElem-1.0.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Array-RefElem
%define	upstream_version 1.00

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    21
Summary: 	Direct access to the internal perl routines for arrays & hashes
License: 	GPL
Group: 		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel


%description
This module gives direct access to the internal perl routines that let
you store reference to things in arrays and hashes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/Array
%{perl_vendorarch}/auto/Array

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4057 |21cr|perl-Array-Unique-0.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Array-Unique
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Tie-able array that allows only unique values

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Array/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This package lets you create an array which will allow only one occurrence
of any value.

In other words no matter how many times you put in 42 it will keep only the
first occurrence and the rest will be dropped.

You use the module via tie and once you tied your array to this module it
will behave correctly.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4058 |21cr|perl-asa-1.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    asa
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Lets your class/object say it works like something else

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(base)
BuildArch:	noarch

%description
Perl 5 doesn't natively support Java-style interfaces, and it doesn't
support Perl 6 style roles either.

You can get both of these things in half a dozen different ways via various
CPAN modules, but they usually require that you buy into "their way" of
implementing your code.

Other have turned to "duck typing".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4059 |21cr|perl-Asterisk-LDAP-0.6.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Asterisk-LDAP
%define upstream_version 0.6.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	13

Summary:	Methods for generating Asterisk configuration from LDAP

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://projects.alkaloid.net/e107_plugins/content/content.php?content.6
Source0:	http://projects.alkaloid.net/dist/asterisk-ldap-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module should make it simple to write scripts that customize Asterisk's
configuration based on data from the LDAP tree. These methods and mechanisms
have been written with customization of the final product (configuration files)
in mind.

%prep
%setup -q -n asterisk-ldap-%{upstream_version}

# fix attribs
chmod -R 755 examples
chmod 644 COPYING ChangeLog INSTALL LICENSE README* TODO asterisk.schema

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc examples COPYING ChangeLog INSTALL LICENSE README* TODO asterisk.schema
%{perl_vendorlib}/Asterisk
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4060 |21cr|perl-asterisk-perl-1.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    asterisk-perl
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.03
Release:	5
Summary:	Asterisk modules for perl

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/J/JA/JAMESGOL/asterisk-perl-1.03.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
perl-%{name} are modules for interfacing with the Asterisk open
source pbx system.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 examples/*

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%install
%makeinstall_std

%files
%doc README CHANGES examples
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4061 |21cr|perl-Astro-SunTime-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Astro-SunTime
%define upstream_version 0.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Calculate sun rise/set times
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Astro/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(POSIX)
BuildRequires: perl(Time::ParseDate)
BuildArch: noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4062 |21cr|perl-Async-MergePoint-0.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Async-MergePoint
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Resynchronise diverged control flow

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Async/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
Often in program logic, multiple different steps need to be taken that are
independent of each other, but their total result is needed before the next
step can be taken. In synchonous code, the usual approach is to do them
sequentially.

An asynchronous or event-based program could do this, but if each step
involves some IO idle time, better overall performance can often be gained
by running the steps in parallel. A 'Async::MergePoint' object can then be
used to wait for all of the steps to complete, before passing the combined
result of each step on to the next stage.

A merge point maintains a set of outstanding operations it is waiting on;
these are arbitrary string values provided at the object's construction.
Each time the 'done()' method is called, the named item is marked as being
complete. When all of the required items are so marked, the 'on_finished'
continuation is invoked.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4063 |21cr|perl-Attribute-Handlers-0.990.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Attribute-Handlers
%define upstream_version 0.99

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Simpler definition of attribute handlers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(parent)

BuildArch:  noarch

%description
This module, when inherited by a package, allows that package's class to
define attribute handler subroutines for specific attributes. Variables
and subroutines subsequently defined in that package, or in packages
derived from that package may be given attributes with the same names as
the attribute handler subroutines, which will then be called at the end
of the compilation phase (i.e. in a `CHECK' block).

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes README

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/Attribute
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4064 |21cr|perl-Attribute-Util-1.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Attribute-Util
%define upstream_version 1.07
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.07
Release:	6

Summary:	Attribute interface to Memoize.pm

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Attribute/Attribute-Util-1.07.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Attribute::Handlers)
BuildRequires:	perl(Memoize)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
When used without argument, this module provides four universally
accessible attributes of general interest as follows:

* Abstract

  See the Attribute::Abstract manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4065 |21cr|perl-Audio-Beep-0.110.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Audio-Beep
%define upstream_version 0.11

%define debug_package %{nil}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    Audio::Beep player module using the B<beep> program

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Audio/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl-devel

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
echo | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4066 |21cr|perl-Audio-CD-0.50.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Audio-CD
%define	upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9
Summary:	Perl interface to libcdaudio
License:	GPLv2+
Group:		Sound
# http://home.wanadoo.nl/jano/disc-cover.html is dead: use CPAN
Url:		http://search.cpan.org/dist/Audio-CD/CD.pm
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2
BuildRequires:	pkgconfig(libcdaudio)
BuildRequires:	perl-devel

%description
This module was created for adding CDDB support to Xmms::shell and cd tray
eject. Methods for a good chunk of other libcdaudio functions were added, but
the docs and glue are not complete.
NOTE: This version has been altered by J.I. van Hemert
<jvhemert@cs.leidenuniv.nl> to suit the needs of Disc-Cover. Please start with
the original package if you wish to develop something.

%files
%doc README
%{perl_vendorarch}/Audio
%{perl_vendorarch}/auto/Audio
%{_mandir}/*/*

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

chmod 644 README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4067 |21cr|perl-Audio-DSP-0.20.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Audio-DSP
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9

Summary:	Perl interface to OSS digital audio device

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Audio/%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		Audio-DSP-0.02-VOCP.patch

BuildRequires:	perl-devel

%description
Audio::DSP is built around the OSS (Open Sound System) API and allows perl to
interface with a digital audio device. It provides, among other things, an
initialization method which opens and handles ioctl messaging on the audio
device file. Audio::DSP also provides some rudimentary methods for the storage
and manipulation of audio data in memory.

In order to use Audio::DSP, you'll need to have the necessary OSS
drivers/libraries installed. OSS is available for many popular Unices, and a
GPLed version (with which this extension was initially developed and tested) is
distributed with with the Linux kernel. 

%prep

%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
# doesn't work

%install
%makeinstall_std

%clean 

%files
%doc Changes MANIFEST README
%{perl_vendorarch}/Audio
%{perl_vendorarch}/auto/Audio
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4068 |21cr|perl-Audio-MPD-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Audio-MPD
%define upstream_version 2.004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Class for talking to MPD (Music Player Daemon) servers 



License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Audio/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(List::AllUtils)
BuildRequires:	perl(IO::Socket::IP)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Audio::MPD::Common::Item)
BuildRequires:	perl(Getopt::Euclid)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(MooseX::Has::Sugar)
BuildRequires:	perl(MooseX::SemiAffordanceAccessor)
BuildRequires:	perl(Proc::Daemon)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Test::Corpus::Audio::MPD)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(DB_File)

BuildArch:	noarch

%description
Audio::MPD gives a clear object-oriented interface for talking to and
controlling MPD (Music Player Daemon) servers. A connection to the MPD server
is established as soon as a new Audio::MPD object is created. Commands are then
send to the server as the class's methods are called.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc AUTHORS LICENSE README TODO Changes
%{_bindir}/*
%{perl_vendorlib}/Audio
%{_mandir}/man3/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4069 |21cr|perl-Audio-MPD-Common-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Audio-MPD-Common
%define upstream_version 2.003
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A bunch of common helper classes for mpd

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Audio/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(MooseX::Has::Sugar)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(String::Formatter)

BuildArch:	noarch

%description
Depending on whether you're using a POE-aware environment or not, people
wanting to tinker with mpd (Music Player Daemon) will use either
POE::Component::Client::MPD or Audio::MPD.

But even if the run-cores of those two modules differ completely, they are
using the exact same common classes to represent the various mpd states and
information.

Therefore, those common classes have been outsourced to Audio::MPD::Common.

This module does not export any methods, but the dist provides the following
classes that you can query with perldoc:

o Audio::MPD::Common::Item
o Audio::MPD::Common::Item::Directory
o Audio::MPD::Common::Item::Playlist
o Audio::MPD::Common::Item::Song
o Audio::MPD::Common::Stats
o Audio::MPD::Common::Status
o Audio::MPD::Common::Time

Note that those modules should not be of any use outside the two mpd modules
afore-mentioned.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc LICENSE README Changes
%{perl_vendorlib}/Audio
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4070 |21cr|perl-AuthCAS-1.700.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AuthCAS
%define upstream_version 1.7

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Client library for CAS 2.0 authentication server

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/O/OS/OSALAUN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl(LWP::UserAgent)

BuildArch:	noarch

%description
AuthCAS aims at providing a Perl API to Yale's Central Authentication
System (CAS). Only a basic Perl library is provided with CAS whereas
AuthCAS is a full object-oriented library.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
rm -f t/pod-coverage.t
iconv -f iso8859-1 -t utf-8 README > README.conv && mv -f README.conv README

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4071 |21cr|perl-Authen-DecHpwd-2.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define upstream_name Authen-DecHpwd
%define upstream_version 2.007

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	DEC VMS password hashing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Authen/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Data::Integer)
BuildRequires:	perl(Digest::CRC)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Scalar::String)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel

%description
This module implements the 'LGI$HPWD' password hashing function from VMS,
and some associated VMS username and password handling functions.

The password hashing function is implemented in XS, with a hideously slow
pure Perl backup version for systems that can't handle XS.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4072 |21cr|perl-Authen-Htpasswd-0.171.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Authen-Htpasswd
%define upstream_version 0.171

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.171
Release:	6

Summary:	Interface to read and modify Apache .htpasswd files

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Authen/Authen-Htpasswd-0.171.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Digest)
BuildRequires:	perl(IO::LockedFile)
BuildRequires:	perl(Crypt::PasswdMD5)
BuildArch:	noarch

%description
This module provides a convenient, object-oriented interface to Apache-style
.htpasswd files. It supports passwords encrypted via MD5, SHA1, and crypt, as
well as plain (cleartext) passwords. It requires Crypt::PasswdMD5 for MD5 and
Digest::SHA1 for SHA1. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/*/*
%{perl_vendorlib}/Authen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4073 |21cr|perl-Authen-Passphrase-0.8.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Authen-Passphrase
%define upstream_version 0.008

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Hashed passwords/passphrases as objects

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Authen/Authen-Passphrase-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Authen::DecHpwd)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Crypt::Blowfish)
BuildRequires:	perl(Crypt::DES)
BuildRequires:	perl(Crypt::Eksblowfish::Bcrypt)
BuildRequires:	perl(Crypt::MySQL)
BuildRequires:	perl(Crypt::PasswdMD5)
BuildRequires:	perl(Crypt::Rijndael)
BuildRequires:	perl(Crypt::UnixCrypt_XS)
BuildRequires:	perl(Data::Entropy::Algorithms)
BuildRequires:	perl(Digest)
BuildRequires:	perl(Digest::MD4)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Params::Classify)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(base)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This is the base class for a system of objects that encapsulate
passphrases. An object of this type is a passphrase recogniser: its job is
to recognise whether an offered passphrase is the right one. For security,
such passphrase recognisers usually do not themselves know the passphrase
they are looking for; they can merely recognise it when they see it. There
are many schemes in use to achieve this effect, and the intent of this
class is to provide a consistent interface to them all, hiding the details.

The CPAN package Authen::Passphrase contains implementations of several
specific passphrase schemes in addition to the base class.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4074 |21cr|perl-Authen-Simple-0.500.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Authen-Simple
%define upstream_version 0.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.5
Release:	6

Summary:	Simple Authentication

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Authen/Authen-Simple-0.5.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Crypt::PasswdMD5)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)

BuildArch:	noarch

%description
Simple and consistent framework for authentication.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4075 |21cr|perl-Authen-Simple-LDAP-0.300.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name   Authen-Simple-LDAP
%define upstream_version 0.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.3
Release:	6

Summary:	Simple LDAP authentication

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Authen/Authen-Simple-LDAP-0.3.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Authen::Simple)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Net::LDAP)
BuildRequires:	perl(Module::Build::Compat)

BuildArch:	noarch

%description
Authenticate against a LDAP service.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4076 |21cr|perl-Authen-Simple-Passwd-0.600.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Authen-Simple-Passwd
%define upstream_version 0.6

Name:           perl-Authen-Simple-Passwd
Version:        %perl_convert_version %{upstream_version}
Release:        4
Summary:        Simple Passwd authentication
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Authen-Simple-Passwd/
Source0:        http://www.cpan.org/authors/id/C/CH/CHANSEN/Authen-Simple-Passwd-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl(Authen::Simple) >= 0.3
BuildRequires:  perl(Module::Build)

# Required by the tests
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Class::Accessor::Fast)
BuildRequires:  perl(Class::Data::Inheritable)

# For improved tests
BuildRequires:  perl(Test::Pod) >= 1.14
BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
BuildRequires:  perl(Authen::Simple::Adapter)

Requires:       perl

%description
Authenticate against a passwd file.

%prep
%setup -q -n Authen-Simple-Passwd-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
TEST_POD=1 ./Build test


%files
%defattr(-,root,root,-)
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4077 |21cr|perl-Auth-Yubikey_Decrypter-0.70.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Auth-Yubikey_Decrypter
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Decrypting the output from the yubikey token

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MASSYN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Crypt::Rijndael)

BuildArch:	noarch

%description
The Yubikey Decrypter can be used to decrypt the AES encrypted output generated
from the one time password USB generator from Yubico. You need to have the AES
key to perform the decryption. You can obtain it by contacting Yubico, or by
seeding your own AES key to the Yubikey.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes README
%{perl_vendorlib}/Auth/Yubikey_Decrypter.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4078 |21cr|perl-autobox-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%global __provides_exclude autobox.so

%define upstream_name    autobox
%define upstream_version 3.0.1

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	1

Summary:    Call methods on native types

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/autobox/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires: perl(Scope::Guard)
BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(IPC::System::Simple)

Provides: perl(autobox)

%description
The autobox pragma allows methods to be called on integers, floats,
strings, arrays, hashes, and code references in exactly the same manner as
blessed references.

The autoboxing is transparent: boxed values are not blessed into their
(user-defined) implementation class (unless the method elects to bestow
such a blessing) - they simply use its methods as though they are.

The classes (packages) into which the native types are boxed are fully
configurable. By default, a method invoked on a non-object is assumed to be
defined in a class whose name corresponds to the 'ref()' type of that value
- or SCALAR if the value is a non-reference.

%prep
%setup -qn %{upstream_name}-v%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc README Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4079 |21cr|perl-autobox-Core-1.330.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name autobox-Core
%define upstream_version 1.33

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Autobox::Core provides core functions to autoboxed scalars, arrays and hashes
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SW/SWALTERS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(autobox)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Want)
BuildRequires:	perl-devel

Provides:	perl(autobox::Core)

BuildArch:	noarch

%description
The autobox module promotes Perl's primitive types (literals (strings
and numbers), scalars, arrays and hashes) into first-class objects.
However, autobox does not provide any methods for these new classes.

autobox::CORE provides a set of methods for these new classes. It
includes almost everything in perlfunc, some things from Scalar::Util
and List::Util, and some Perl 5 versions of methods taken from Perl 6.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.json META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4080 |21cr|perl-autobox-Transform-1.35.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name autobox-Transform
%define upstream_version 1.035

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Autobox methods to transform Arrays and Hashes
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/autobox/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(autobox::Core)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Sort::Maker)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Moo)

BuildArch:	noarch

%description
autobox provides the ability to call methods on native types, 
e.g. strings, arrays, and hashes as if they were objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc README* META.json META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4081 |21cr|perl-AutoLoader-5.740.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AutoLoader
%define upstream_version 5.74
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Load subroutines only on demand


License:	GPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/AutoLoader-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The AutoLoader module works with the AutoSplit module and the __END__ token to
defer the loading of some subroutines until they are used rather than loading
them all at once.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL -n INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
mv %{buildroot}%{_mandir}/man3/AutoLoader.3pm \
   %{buildroot}%{_mandir}/man3/AutoLoader-%{version}.3pm

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/AutoLoader.pm
%{perl_vendorlib}/AutoSplit.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4082 |21cr|perl-AWS-Signature4-1.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname AWS-Signature4
%define modver 1.02

Summary:	Create a version 4 signature for Amazon Web Services
Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	1
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{modname}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/%{modname}/%{modname}-%{modver}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
# For tests
BuildRequires:	perl(Date::Parse)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(LWP)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::QueryParam)
BuildArch:	noarch

%description
Perl module AWS::Signature4 implements Amazon Web Service's
Signature version 4. It can be used to add authentication
information to the headers of GET, POST, PUT and DELETE.

The module can be also used to generate "signed" URLs. These
are preauthorized URLs that contain all the authenticationand
header information in the URL query parameters. They can be
sent to another user to, for example, grant time-limited
access to a private S3 bucket.

%files
%doc Changes
%{perl_vendorlib}/AWS/Signature4.pm
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{modname}-%{modver}

%build
%__perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4083 |21cr|perl-bareword-filehandles-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    bareword-filehandles
%define upstream_version 0.007

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Disables bareword filehandles
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/I/IL/ILMARI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(B::Hooks::OP::Check)
BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::Depends)
BuildRequires: perl-devel
#fails to generate 
Provides: perl(bareword::filehandles)

%description
This module lexically disables the use of bareword filehandles with builtin
functions, except for the special builitin filehandles 'STDIN', 'STDOUT',
'STDERR', 'ARGV', 'ARGVOUT' and 'DATA'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4084 |21cr|perl-B-Debug-1.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    B-Debug
%define upstream_version 1.26


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Walk Perl syntax tree, printing debug info about ops

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/B/B-Debug-%{upstream_version}.tar.gz

BuildRequires: perl(B)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl-devel
BuildRequires: perl(Test::Pod)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(B::Flags)

BuildArch:	noarch

%description
See _ext/B/README_ and the newer the B::Concise manpage, the B::Terse
manpage.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4085 |21cr|perl-Benchmark-Timer-0.711.200-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Benchmark-Timer
%define	upstream_version 0.7112

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Benchmark::Timer - Perl code benchmarking tool
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Benchmark/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Benchmark-Timer-fix-dep.patch

BuildRequires:	perl(Statistics::TTest)
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(UNIVERSAL::require)

BuildArch:	noarch

%description
The Benchmark::Timer class allows you to time portions of code
conveniently, as well as benchmark code by allowing timings of
repeated trials. It is perfect for when you need more precise
information about the running time of portions of your code than the
Benchmark module will give you, but don't want to go all out and
profile your code.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES LICENSE README META.yml TODO
%{perl_vendorlib}/Benchmark
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4086 |21cr|perl-Bencode-1.501.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Bencode
%define upstream_version 1.501

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	BitTorrent serialization format

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Bencode/
Source0:	http://www.cpan.org/authors/id/A/AR/ARISTOTLE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Exporter) >= 5.700.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Exporter::Tidy)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Test::Differences)

BuildArch:	noarch

%description
This module implements the BitTorrent bencode serialization format as
described in http://www.bittorrent.org/protocol.html.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4087 |21cr|perl-B-Flags-0.170.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    B-Flags
%define upstream_version 0.17
%global __provides_exclude Flags.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Friendlier flags for B
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/B/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Devel::Peek)
BuildRequires: perl-devel

%description
Stringification of flags.

By default, '$foo->flags' when passed an object in the 'B' class will
produce a relatively meaningless number, which one would need to grovel
through the Perl source code in order to do anything useful with. This
module adds 'flagspv' to the SV and op classes and 'privatepv' to the op
classes, which makes them easier to understand.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4088 |21cr|perl-B-Hooks-OP-PPAddr-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    B-Hooks-OP-PPAddr
%define upstream_version 0.06

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Hook into opcode execution

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/B/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::Depends)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(parent)
BuildRequires: perl-devel

%description
This module provides a c api for XS modules to hook into the execution of
perl opcodes.

the ExtUtils::Depends manpage is used to export all functions for other XS
modules to use. Include the following in your Makefile.PL:

    my $pkg = ExtUtils::Depends->new('Your::XSModule', 'B::Hooks::OP::PPAddr');
    WriteMakefile(
        ... # your normal makefile flags
        $pkg->get_makefile_vars,
    );

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4089 |21cr|perl-Bio-Cluster-1.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Bio-Cluster
%define upstream_version 1.7.3

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Instantiates a new Bio::ClusterI (or derived class) through a factory
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Bio/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Bio::AnnotatableI)
BuildRequires: perl(Bio::Annotation::Collection)
BuildRequires: perl(Bio::Annotation::DBLink)
BuildRequires: perl(Bio::Annotation::SimpleValue)
BuildRequires: perl(Bio::DescribableI)
BuildRequires: perl(Bio::Factory::ObjectFactory)
BuildRequires: perl(Bio::Factory::SequenceStreamI)
BuildRequires: perl(Bio::IdentifiableI)
BuildRequires: perl(Bio::Root::IO)
BuildRequires: perl(Bio::Root::Root)
BuildRequires: perl(Bio::Root::RootI)
BuildRequires: perl(Bio::Root::Test)
BuildRequires: perl(Bio::Seq::SeqFactory)
BuildRequires: perl(Bio::Species)
BuildRequires: perl(Bio::Variation::SNP)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(XML::SAX)
BuildRequires: perl(base)
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
Classes and modules here describe the basic structure for a cluster of
bioperl objects. For a more complete explanation, please see the interface
module the Bio::ClusterI manpage or the Bio::ClusterI-based implementations
for specific examples.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json examples
%{_mandir}/man3/*
%{perl_vendorlib}/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4090 |21cr|perl-Bio-FeatureIO-1.6.905-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Bio-FeatureIO
%define upstream_version 1.6.905


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Handler for FeatureIO
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Bio/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Bio::Root::Test)
BuildRequires:	perl(XML::DOM::XPath)

BuildArch:	noarch

%description
Bio::FeatureIO is a BioPerl-based parser for feature data from common
biological sequence formats, such as GFF3, GTF, and BED.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README.md
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4091 |21cr|perl-bioperl-1.7.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    BioPerl
%define upstream_version 1.7.8

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Bio::Expression::(.*)\\)|perl\\(Bio::Phylo::(.*)\\)|perl\\(Mac::(.*)\\)|perl\\(Win32::Clipboard\\)|perl\\(Bio::Tools::Run::Samtools\\)|perl\\(TestInterface\\)|perl\\(Bio::Phylo\\)|perl\\(Bio::SeqFeature::Annotated\\)
%global __provides_exclude perl\\(Error\\)|perl\\(Error::Simple\\)|perl\\(Error::subs\\)|perl\\(TestInterface\\)|perl\\(TestObject\\)
%else
%define _requires_exceptions perl(Bio::Expression::FeatureSet)\\|perl(TestInterface)|perl\\(Bio::Phylo\\)
%define _provides_exceptions perl(Error)\\|perl(Error::Simple)\\|perl(Error::subs)\\|perl(TestInterface)\\|perl(TestObject)
%endif

Name:		perl-bioperl
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	BioPerl core modules

Group:		Development/Perl
License:	Artistic
URL:		http://www.bioperl.org
Source0:	https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::Munkres)
BuildRequires:	perl(Array::Compare)
BuildRequires:	perl(Clone)
BuildRequires:	perl(Convert::Binary::C)
BuildRequires:	perl(CPAN) >= 1.920.5
BuildRequires:	perl(Data::Stag)
BuildRequires:	perl(DB_File)
BuildRequires:	perl(Error)
BuildRequires:	perl(GraphViz)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Math::Random)
BuildRequires:	perl(Math::BigFloat)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Spreadsheet::ParseExcel)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Set::Scalar)
BuildRequires:	perl(Set::Object)
BuildRequires:	perl(Sort::Naturally)
BuildRequires:	perl(SVG::Graph)
BuildRequires:	perl(XML::DOM::XPath)
BuildRequires:	perl(XML::SAX::Writer)
BuildRequires:	perl(XML::Simple)
BuildRequires:	perl(XML::Writer)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::HeadParser)
BuildRequires:	perl(HTML::TableExtract)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(PostScript::TextBlock)
BuildRequires:	perl(DBD::mysql)
BuildRequires:	perl(DBD::Pg)
BuildRequires:	perl(YAML)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::RequiresInternet)


BuildArch:	noarch
%rename perl-Bioperl
%rename perl-bioperl

%description
Officially organized in 1995 and existing informally for several years
prior, The Bioperl Project is an international association of developers
of open source Perl tools for bioinformatics, genomics and life science
research.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

chmod 644 AUTHORS Changes
for file in AUTHORS Changes; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%_fixperms %{buildroot}

%files
%doc AUTHORS Changes LICENSE META.json META.yml README.md examples
%{perl_vendorlib}/Bio/
%{perl_vendorlib}/BioPerl.pm
%{_mandir}/*/*
%{_bindir}/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4092 |21cr|perl-BioPerl-Run-1.7.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    BioPerl-Run
%define upstream_version 1.007003

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Bio::Root::(.*)\\)|perl\\(Bio::Tools::(.*)\\)|perl\\(Bio::DB::(.*)\\)
%else
%define _requires_exceptions perl(Bio::Root::AccessorMaker)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	BioPerl wrappers for external programs

License:	Artistic
Group:		Development/Perl
Url:		http://www.bioperl.org
Source0:	https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Sort)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(XML::Twig)
BuildRequires:	perl(Bio::FeatureIO)
BuildRequires:	perl(Test::RequiresInternet)

BuildArch:	noarch

%rename perl-Bioperl-Run
%rename perl-bioperl-run

%description
Officially organized in 1995 and existing informally for several years
prior, The Bioperl Project is an international association of developers
of open source Perl tools for bioinformatics, genomics and life science
research.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
# we don't need those tests because
# Network tests have not been requested or 
#  Valid email not provided. Symbianflo
rm -fr t/BWA.t t/Blat.t t/Bowtie.t t/Eponine.t \
  t/Phyml.t t/RepeatMasker.t t/Maq.t t/Samtools.t \
  t/SABlastPlus.t

%build
%{__perl} Build.PL installdirs=vendor <<EOI
y
n
EOI
./Build

%check
# most of the check useanon-packaged  external tools, so they are useless there
./Build test || :

%install
./Build install destdir=%{buildroot}

pushd %{buildroot}%{perl_vendorlib}/Bio
find . -type f -name "*.pm" -exec chmod 644 {} \;
popd

pushd %{buildroot}%{_bindir}
find . -type f -name "*.pl" -exec chmod 755 {} \;
popd

%files
%doc AUTHORS Changes DEPENDENCIES LICENSE META.json META.yml README*
%{perl_vendorlib}/Bio
%{_bindir}/*
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4093 |21cr|perl-Bio-Variation-1.7.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Bio-Variation
%define upstream_version 1.7.5

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Module used by Bio-Cluster
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        https://github.com/bioperl/Bio-Variation
# from https://github.com/bioperl/Bio-Variation/archive/master.zip:
Source0:    https://cpan.metacpan.org/authors/id/C/CJ/CJFIELDS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Bio::DBLinkContainerI)
BuildRequires: perl(Bio::PrimarySeq)
BuildRequires: perl(Bio::Root::IO)
BuildRequires: perl(Bio::Root::Root)
BuildRequires: perl(Bio::Root::Test)
BuildRequires: perl(Bio::SeqFeature::Generic)
BuildRequires: perl(Bio::SeqIO)
BuildRequires: perl(Bio::Tools::CodonTable)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::String)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Wrap)
BuildRequires: perl(XML::Twig)
BuildRequires: perl(XML::Writer) >= 0.400.0
BuildRequires: perl(base)
BuildRequires: perl(constant)
BuildRequires: perl(lib)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildArch:  noarch

%description
Module used by Bio-Cluster

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_bindir}/bp_flanks
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/Bio/Variation
%{perl_vendorlib}/Bio/Variation.pm


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4094 |21cr|perl-boolean-0.460.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    boolean
%define upstream_version 0.46

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Boolean support for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/I/IN/INGY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch
Provides:	perl(boolean)

%description
Most programming languages have a native 'Boolean' data type. Perl does
not.

Perl has a simple and well known Truth System. The following scalar values
are false:

    $false1 = undef;
    $false2 = 0;
    $false3 = 0.0;
    $false4 = '';
    $false5 = '0';

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE CONTRIBUTING META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4095 |21cr|perl-Bot-BasicBot-0.930.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Bot-BasicBot
%define upstream_version 0.93

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	A simple IRC bot base class
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Bot/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(IRC::Utils)
BuildRequires:	perl(POE::Kernel)
BuildRequires:	perl(POE::Component::IRC::State)
BuildArch:	noarch

%description
A basic bot system written in Perl, designed to make it easy to do simple bots,
optionally forking longer processes (like searches) concurrently in the
background.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests try to connect to internet
#make test

%install
%makeinstall_std

%files
%doc Changes examples
%{perl_vendorlib}/Bot/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4096 |21cr|perl-Bot-BasicBot-Pluggable-1.200.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Bot-BasicBot-Pluggable
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Extension to the simple irc bot base class allowing for pluggable modules

License:	Artistic or GPL+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Bot/Bot-BasicBot-Pluggable-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Bot::BasicBot)
BuildRequires:	perl(Config::Find)
BuildRequires:	perl(Crypt::SaltedHash)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBI)
BuildRequires:	perl(DBM::Deep)
BuildRequires:	perl(Log::Log4perl)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Getopt)
BuildRequires:	perl(MooseX::ConfigFromFile)
BuildRequires:	perl(MooseX::SimpleConfig)
BuildRequires:	perl(POE)
BuildRequires:	perl(Text::Unidecode)
BuildRequires:	perl(URI::Find::Simple)
BuildRequires:	perl(URI::Title)
BuildRequires:	perl(XML::Feed)
BuildRequires:	perl(YAML::XS)
	
BuildArch:	noarch

%description
Extension to the simple irc bot base class allowing for pluggable modules.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# need internet connection
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4097 |21cr|perl-Boulder-1.300.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Boulder
%define upstream_version 1.30

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(LabBase\\)
%else
%define _requires_exceptions perl(LabBase)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	An API for hierarchical tag/value structures

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Boulder/
Source0:	http://search.cpan.org/CPAN/modules/by-module/Boulder/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
An API for hierarchical tag/value structures.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%{perl_vendorlib}/%{upstream_name}
%{perl_vendorlib}/%{upstream_name}.pod
%{perl_vendorlib}/Stone.pm
%{perl_vendorlib}/Stone
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4098 |21cr|perl-Business-Hours-0.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Business-Hours
%define upstream_version 0.13

Summary: 	Calculate business hours in a time period
Group:		Development/Perl
Name: 		perl-Business-Hours
Version: 	%perl_convert_version %{upstream_version}
Release: 	1
License: 	GPL+ or Artistic
URL: 		https://metacpan.org/release/Business-Hours

Source0: https://cpan.metacpan.org/authors/id/B/BP/BPS/Business-Hours-%{upstream_version}.tar.gz
BuildArch: 	noarch

Requires:  perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires:  perl(Set::IntSpan) >= 1.12

BuildRequires: make
BuildRequires:	%{__perl}
BuildRequires:	%{__make}

BuildRequires:	perl-interpreter
BuildRequires:	perl-generators
BuildRequires:	perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires:	perl(Set::IntSpan) >= 1.12
BuildRequires:	perl(strict)
BuildRequires:	perl(Time::Local)
BuildRequires:	perl(warnings)
# Required by the tests
BuildRequires:	perl(Test::More)
# Optional tests:
BuildRequires:	perl(Test::Pod) >= 1.00
BuildRequires:	perl(Test::Pod::Coverage) >= 1.00

# Filter under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Set::IntSpan\\)$

%description
A simple tool for calculating business hours in a time period. Over time, 
additional functionality will be added to make it easy to calculate the 
number of business hours between arbitrary dates.

%prep
%setup -q -n Business-Hours-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%{__make} %{?_smp_mflags}


%install
%{__make} pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%license LICENSE
%doc Changes
%{perl_vendorlib}/Business
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4099 |21cr|perl-Business-ISBN-2.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Business-ISBN
%define upstream_version 2.010

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Work with 13 digit International Standard Book Numbers
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Business/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel 
BuildRequires: perl(Business::ISBN::Data)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)
BuildArch: noarch

%description
This modules handles International Standard Book Numbers, including ISBN-10
and ISBN-13.

Function interface
    * valid_isbn_checksum( ISBN10 | ISBN13 )

      This function is exportable on demand, and works for either 10 or 13
      character ISBNs).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4100 |21cr|perl-Business-ISBN-Data-20140910.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Business-ISBN-Data
%define upstream_version 20140910.003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Data pack for Business::ISBN
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Business/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel 
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
You don't need to load this module yourself in most cases. 'Business::ISBN'
will load it when it loads.

These data are generated from the _RangeMessage.xml_ file provided by the
ISBN Agency. You can retrieve this yourself at the
https://www.isbn-international.org/range_file_generation manpage. This file
is included as part of the distribution and should be installed at
_~lib/Business/ISBN/Data/RangeMessage.xml_.

If you want to use a different _RangeMessage.xml_ file, you can set the
'ISBN_RANGE_MESSAGE' environment variable to the alternate location before
you load 'Business::ISBN'. This way, you can use the latest (or even
earlier) data without having to install something new or wait for an update
to this module.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4101 |21cr|perl-Business-ISMN-1.202.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Business-ISMN
%define upstream_version 1.202

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Data pack for Business::ISMN
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Business/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Tie::Cycle)
BuildRequires: perl-devel
BuildArch:     noarch

%description
Methods
    * new($ismn)

      The constructor accepts a scalar representing the ISMN.

      The string representing the ISMN may contain characters other than
      '[0-9mM]', although these will be removed in the internal
      representation. The resulting string must look like an ISMN - the
      first character is an 'M' and the following nine characters must be
      digits.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4102 |21cr|perl-Business-ISSN-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Business-ISSN
%define upstream_version 1.005

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl extension for International Standard Serial Numbers
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Business/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildArch:     noarch

%description
* new($issn)

  The constructor accepts a scalar representing the ISSN.

  The string representing the ISSN may contain characters other than
  [0-9xX], although these will be removed in the internal representation.
  The resulting string must look like an ISSN - the first seven characters
  must be digits and the eighth character must be a digit, 'x', or 'X'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4103 |21cr|perl-CACertOrg-CA-20110724.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CACertOrg-CA
%define upstream_version 20110724.004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    CACert.org's CA root certificate in PEM format
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CACertOrg/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildArch: noarch

%description
CACertOrg::CA provides a copy of Certificate Authority certificate for
CACert.org. This is the Class 1 PKI Key.

sha1 13:5C:EC:36:F4:9C:B8:E9:3B:1A:B2:70:CD:80:88:46:76:CE:8F:33

md5 A6:1B:37:5E:39:0D:9C:36:54:EE:BD:20:31:46:1F:6B

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4104 |21cr|perl-Cache-2.110.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Cache
%define upstream_version 2.11


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	The Cache interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(File::NFSLock)
BuildRequires:	perl(Date::Format)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Heap)
BuildRequires:	perl(DB_File)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Symbol)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::TrailingSpace) >= 0.20.500

BuildArch:	noarch

%description
%{upstream_name} perl module

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README TODO META.json META.yml LICENSE
%{perl_vendorlib}/Cache*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4105 |21cr|perl-Cache-Cache-1.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cache-Cache
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Digest::SHA1) >= 2.130.0
BuildRequires:	perl(Error) >= 0.170.220
BuildRequires:	perl(File::Spec) >= 3.330.0
BuildRequires:	perl(IPC::ShareLite) >= 0.170.0
BuildRequires:	perl(Storable) >= 2.300.0

BuildArch:	noarch


%description
Cache-Cache module for perl.  The Cache modules are designed to assist
a developer in persisting data for a specified period of time.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%defattr(444,root,root,755)
%doc CHANGES COPYING CREDITS DISCLAIMER README STYLE META.json META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4106 |21cr|perl-Cache-FastMmap-1.570.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cache-FastMmap
%define upstream_version 1.57
%global __provides_exclude FastMmap.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Uses an mmap'ed file to act as a shared memory interprocess cache
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Cache/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Storable)
BuildRequires:	perl(GTop)
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl-devel
# for test
BuildRequires:	perl(Test::Deep)

%description
A shared memory cache through an mmap'ed file. It's core is written in C for
performance. It uses fcntl locking to ensure multiple processes can safely
access the cache at the same time. It uses a basic LRU algorithm to keep the
most used entries in the cache.

%files
%doc README Changes
%{perl_vendorarch}/Cache
%{perl_vendorarch}/auto/Cache
%{_mandir}/*/*
#--------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4107 |21cr|perl-Cache-LRU-0.40.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cache-LRU
%define upstream_version 0.04


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    A simple, fast implementation of LRU cache in pure perl
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Cache/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl-devel

BuildArch: noarch

%description
Cache::LRU is a simple, fast implementation of an in-memory LRU cache in
pure perl.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4108 |21cr|perl-Cache-Memcached-1.300.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cache-Memcached
%define upstream_version 1.30

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Client library for memcached (memory cache daemon) 
License:	GPL+ or Artistic
Group: 		Development/Perl
Url:		http://search.cpan.org/~bradfitz/Cache-Memcached/
Source0:	http://search.cpan.org/CPAN/authors/id/B/BR/BRADFITZ/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Storable)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(String::CRC32)
BuildArch:	noarch

%description
This is the Perl API for memcached, a distributed memory cache daemon. See the
documentation within the module for details on its use.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# seems to fail on ABF
%make test

%install
%makeinstall_std

%files
%doc ChangeLog README TODO
%{perl_vendorlib}/Cache/Memcached.pm
%dir %{perl_vendorlib}/Cache/Memcached
%{perl_vendorlib}/Cache/Memcached/GetParser.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4109 |21cr|perl-Cache-Memcached-Managed-0.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cache-Memcached-Managed
%define upstream_version 0.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Inactive Cache::Memcache::Managed object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Cache/Cache-Memcached-Managed-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cache::Memcached)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	memcached
BuildArch:	noarch

%description
Provides the same API as the Cache::Memcached::Managed manpage, but applies
all methods called to all of the objects specified, except for the new
manpage and the objects manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGELOG META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4110 |21cr|perl-Cache-Ref-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cache-Ref
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	This module implements in memory caching

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Cache/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Hash::Util::FieldHash::Compat)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(ok)
BuildArch:	noarch

%description
Unlike the CHI manpage which attempts to address the problem of caching
things persistently, this module implements in memory caching, designed
primarily for *shared references* in memory.

This collection of classes implements a number of semi related algorithms.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4111 |21cr|perl-Cache-Simple-TimedExpiry-0.270.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cache-Simple-TimedExpiry
%define upstream_version 0.27

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Perl module to add expiry to Cache::Simple object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Cache/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Perl module to add expiry to Cache::Simple object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}/%{perl_vendorarch}/

%files
%doc Changes 
%{perl_vendorlib}/Cache
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4112 |21cr|perl-Calendar-Simple-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Calendar-Simple
%define upstream_version 2.0.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl extension to create simple calendars

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Calendar-Simple/
Source0:	http://search.cpan.org/CPAN/authors/id/D/DA/DAVECROSS/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
# Required by the tests
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildArch:	noarch

%description
Perl extension to create simple calendars.

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}
chmod -x lib/*/Simple.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*

%files
%doc README
%{_bindir}/pcal
%{perl_vendorlib}/Calendar
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4113 |21cr|perl-capitalization-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname   capitalization
%define upstream_version 0.03

Name:		perl-%{realname}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Perl module that allows no capitalization on method names

Source0:	http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{realname}-%{upstream_version}.tar.bz2
Url:		http://search.cpan.org/dist/%{realname}
BuildRequires:	perl-devel
BuildRequires:	perl-Devel-Symdump
BuildArch:	noarch

%description
capitalization.pm allows you to use familiar style on method naming.

%prep
%setup -q -n %{realname}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}/%{perl_vendorarch}

%clean

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4114 |21cr|perl-Captcha-reCAPTCHA-0.990.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Captcha-reCAPTCHA
%define upstream_version 0.99

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A Perl implementation of the reCAPTCHA API

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SU/SUNNYP/Captcha-reCaptcha-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Tiny)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
reCAPTCHA is a hybrid mechanical turk and captcha that allows visitors who
complete the captcha to assist in the digitization of books.

From the http://recaptcha.net/learnmore.html manpage:

    reCAPTCHA improves the process of digitizing books by sending words that
    cannot be read by computers to the Web in the form of CAPTCHAs for
    humans to decipher. More specifically, each word that cannot be read
    correctly by OCR is placed on an image and used as a CAPTCHA. This is
    possible because most OCR programs alert you when a word cannot be read
    correctly.

%prep
%setup -q -n Captcha-reCaptcha

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4115 |21cr|perl-Carp-Always-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Carp-Always
%define upstream_version 0.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Warns and dies noisily with stack backtraces


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Carp/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Base)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch:     noarch

%description
This module is meant as a debugging aid. It can be used to make a script
complain loudly with stack backtraces when warn()ing or die()ing.

Here are how stack backtraces produced by this module looks:

  # it works for explicit die's and warn's
  $ perl -MCarp::Always -e 'sub f { die "arghh" }; sub g { f }; g'
  arghh at -e line 1
          main::f() called at -e line 1
          main::g() called at -e line 1

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
rm -f t/099pod.t
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4116 |21cr|perl-Carp-Assert-More-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Carp-Assert-More
%define upstream_version 2.3.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Convenience wrappers around Carp::Assert module

License: 	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/P/PE/PETDANCE/Carp-Assert-More-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Carp::Assert)
BuildRequires:  perl(Test::Exception)
BuildArch:	noarch

%description
Carp::Assert::More is a set of wrappers around the Carp::Assert functions 
to make the habit of writing assertions even easier.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README*
%{perl_vendorlib}/Carp
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4117 |21cr|perl-Catalyst-Action-RenderView-0.160.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Catalyst-Action-RenderView
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Sensible default end action

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Module::Install)
BuildRequires:	perl(Mouse)
BuildRequires:	perl(Data::Visitor)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(HTTP::Request::AsCGI)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean) 

BuildArch:	noarch

Requires:	perl(Catalyst::Runtime) >= 5.900.930
Requires:	perl(namespace::clean)

%description
This action implements a sensible default end action, which will
forward to the first available view, unless status is set to 3xx, or
there is a response body. It also allows you to pass dump_info=1 to
the url in order to force a debug screen, while in debug mode.

If you have more than 1 view, you can specify which one to use with
the 'default_view' config setting (See view in Catalyst.)

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL installdirs=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4118 |21cr|perl-Catalyst-Action-REST-1.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Action-REST
%define upstream_version 1.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	A request trait for REST and browsers
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(Config::General)
BuildRequires:	perl(Data::Serializer)
BuildRequires:	perl(Data::Taxi)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(FreezeThaw)
BuildRequires:	perl(JSON)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Module::Pluggable::Object)
BuildRequires:	perl(Moose)
BuildRequires:	perl(PHP::Serialization)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(URI::Find)
BuildRequires:	perl(XML::Simple)
BuildRequires:	perl(YAML::Syck)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch

%description
This Action handles doing automatic method dispatching for REST requests.
It takes a normal Catalyst action, and changes the dispatch to append an
underscore and method name. First it will try dispatching to an action with
the generated name, and failing that it will try to dispatch to a regular
method.

For example, in the synopsis above, calling GET on "/foo" would result in
the foo_GET method being dispatched.

If a method is requested that is not implemented, this action will return a
status 405 (Method Not Found). It will populate the "Allow" header with the
list of implemented request methods. You can override this behavior by
implementing a custom 405 handler like so:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4119 |21cr|perl-Catalyst-ActionRole-ACL-0.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-ActionRole-ACL
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	User role-based authorization action class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Controller::ActionRole)
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Provides a Catalyst::Controller::ActionRole for user role-based
authorization. ACLs are applied via the assignment of attributes to
application action subroutines.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# %check
# %make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4120 |21cr|perl-Catalyst-Authentication-Credential-OpenID-0.190.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Authentication-Credential-OpenID
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	OpenID credential for Catalyst::Plugin::Authentication framework
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cache::FastMmap) >= 1.280.0
BuildRequires:	perl(Catalyst) >= 5.700.0
BuildRequires:	perl(Catalyst::Authentication::User::Hash)
BuildRequires:	perl(Catalyst::Devel) >= 1.0.0
BuildRequires:	perl(Catalyst::Plugin::Session::State::Cookie) >= 0.80.0
BuildRequires:	perl(Catalyst::Plugin::Session::Store::FastMmap) >= 0.50.0
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTML::Parser) >= 3.0.0
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Math::BigInt)
BuildRequires: 	perl(Net::OpenID::Consumer) >= 1.30.0
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(parent) >= 0.200.0
BuildArch:	noarch

%description
D'er... testing. Has an OpenID provider to test the OpenID credential
against.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor << EOF

EOF
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4121 |21cr|perl-Catalyst-Authentication-Store-LDAP-1.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Authentication-Store-LDAP
%define upstream_version 1.017

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	LDAP authentication storage backend

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Authentication-Store-LDAP-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Plugin::Authentication)
BuildRequires:	perl(Catalyst::Authentication::User)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Net::LDAP)
BuildRequires:	perl(Net::LDAP::Server::Test)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(Catalyst::Model::LDAP)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::PP)

BuildArch:	noarch

%description
This plugin implements the the Catalyst::Authentication manpage v.10 API.
Read that documentation first if you are upgrading from a previous version
of this plugin.

This plugin uses 'Net::LDAP' to let your application authenticate against
an LDAP directory. It has a pretty high degree of flexibility, given the
wide variation of LDAP directories and schemas from one system to another.

It authenticates users in two steps:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README 
%{_mandir}/man3/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4122 |21cr|perl-Catalyst-Component-InstancePerContext-0.1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Component-InstancePerContext
%define upstream_version 0.001001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	%{upstream_name} perl module

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Module::Install::AutoInstall)
BuildRequires:	perl(Module::Install::Metadata)
BuildRequires:	perl(Module::Install::WriteAll)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
Requires:	perl(Catalyst)
Requires:	perl(Moose)
BuildArch:	noarch

%description
%{upstream_name} perl module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
make test

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4123 |21cr|perl-Catalyst-Controller-ActionRole-0.170.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Controller-ActionRole
%define upstream_version 0.17

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Apply roles to action instances


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Catalyst::Runtime) >= 5.900.930
BuildRequires: perl(Class::MOP)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(String::RewritePrefix)
BuildRequires: perl(namespace::clean)
BuildRequires: perl-devel
BuildRequires: perl(aliased)
BuildRequires: perl(Catalyst::Action::REST)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Catalyst::Utils)
BuildRequires: perl(Catalyst::Controller)

BuildArch: noarch

%description
This module allows to apply roles to the 'Catalyst::Action's for different
controller methods.

For that a 'Does' attribute is provided. That attribute takes an argument,
that determines the role, which is going to be applied. If that argument is
prefixed with '+', it is assumed to be the full name of the role. If it's
prefixed with '~', the name of your application followed by
'::ActionRole::' is prepended. If it isn't prefixed with '+' or '~', the
role name will be searched for in '@INC' according to the rules for /ROLE
PREFIX SEARCHING.

Additionally it's possible to to apply roles to *all* actions of a
controller without specifying the 'Does' keyword in every action
definition:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json LICENSE README CONTRIBUTING
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4124 |21cr|perl-Catalyst-Controller-HTML-FormFu-2.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Controller-HTML-FormFu
%define upstream_version 2.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Hidden text field which contains a unique token


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Action::RenderView)
BuildRequires:	perl(Catalyst::Component::InstancePerContext)
BuildRequires:	perl(Catalyst::Plugin::ConfigLoader)
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildRequires:	perl(Catalyst::Plugin::Session::State::Cookie)
BuildRequires:	perl(Catalyst::Plugin::Session::Store::File)
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::View::TT)
BuildRequires:	perl(HTML::FormFu)
BuildRequires:	perl(HTML::FormFu::MultiForm)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(Test::WWW::Mechanize::Catalyst)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(YAML)

Requires:	perl(Catalyst::Component::InstancePerContext)
Requires:	perl(Regexp::Assemble)

BuildArch:	noarch

%description
As of version 0.02000, the HTML::FormFu manpage doesn't use the TT template
files by default - it uses in internal rendering engine.

If you don't want to customise the generated markup, you don't need to use
the Catalyst::Helper::HTML::FormFu manpage at all.

If you want to customise the generated markup, you'll need a local copy of
the template files. To create the files in the default 'root/formfu'
directory, run:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4125 |21cr|perl-Catalyst-Devel-1.420.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Catalyst-Devel
%define upstream_version 1.42

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Catalyst Development Tools
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Sub::Exporter::ForMethods)
BuildRequires:	perl(Plack::Middleware::ReverseProxy)
BuildRequires:	perl(MooseX::Types::Path::Class)
BuildRequires:	perl(TAP::Harness::Env)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(CPANPLUS::Dist::Build)
BuildRequires:	perl(Safe::Isa)
BuildRequires:	perl(Carp::Always)
BuildRequires:	perl(Text::Glob)
BuildRequires:	perl(Test::Without::Module)
BuildRequires:	perl(Test::Tester)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::MockTime)
BuildRequires:	perl(Test::Deep::NoTest)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Stream::Buffered)
BuildRequires:	perl(Plack::Test)
BuildRequires:	perl(Plack::Request)
BuildRequires:	perl(Plack::Middleware)
BuildRequires:	perl(Plack::Loader)
BuildRequires:	perl(Plack::Builder)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(MooseX::Daemonize)
BuildRequires:	perl(Net::Server)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(JSON::MaybeXS)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(HTTP::Message::PSGI)
BuildRequires:	perl(HTTP::Parser::XS)
BuildRequires:	perl(File::ShareDir::Install)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(ExtUtils::Config)
BuildRequires:	perl(Devel::AssertOS)
BuildRequires:	perl(Data::Compare)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(Apache::LogFormat::Compiler)
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Action::RenderView)     >= 0.04
BuildRequires:	perl(Catalyst::Plugin::ConfigLoader)
BuildRequires:	perl(Catalyst::Plugin::Static::Simple) >= 0.28
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Config::General)
BuildRequires:	perl(File::ChangeNotify)
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(Module::Install)  >= 0.64
BuildRequires:	perl(Path::Class)      >= 0.09
BuildRequires:	perl(Template)         >= 2.14
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)       >= 0.940.0
BuildRequires:	perl(Test::Fatal)	>= 0.003
BuildRequires:	perl(YAML)             >= 0.55
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Starman) >= 0.401.400
BuildRequires:	perl(aliased)


### This should be noarch ###
Obsoletes:	perl-Catalyst-Devel < %{EVRD}
BuildArch:	noarch
### I don't see arch dependent provides. Symbianflo ### 

%description
Catalyst is an elegant web application framework, extremely flexible yet
extremely simple. It's similar to Ruby on Rails, Spring (Java) and Maypole,
upon which it was originally based.

This package provides Catalyst development tools.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{perl_vendorlib}/auto
%{perl_vendorlib}/Catalyst*
%{perl_vendorlib}/Module
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4126 |21cr|perl-Catalyst-DispatchType-Regex-5.900.350-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-DispatchType-Regex
%define upstream_version 5.90035

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    LocalRegexp DispatchType
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Data::Dumper)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Module::Build) >= 0.400.400
BuildRequires: perl(Moose)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Balanced)
BuildRequires: perl(Text::SimpleTable)
BuildRequires: perl(namespace::autoclean)

Requires: perl(Catalyst::Runtime) >= 5.900.930

BuildArch: noarch

%description
*Status: Deprecated.* Regex dispatch types have been depreciated and
removed from Catalyst core. It is recommend that you use Chained methods or
other techniques instead. As part of the refactoring, the dispatch priority
of Regex vs Regexp vs LocalRegex vs LocalRegexp may have changed. Priority
is now influenced by when the dispatch type is first seen in your
application.

Dispatch type managing path-matching behaviour using regexes. For more
information on dispatch types, see:

* * the Catalyst::Manual::Intro manpage for how they affect application
  authors.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4127 |21cr|perl-Catalyst-Engine-Apache-1.160.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Catalyst-Engine-Apache
%define upstream_version 1.16

%global __requires_exclude perl\\(A(.*)\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Catalyst Apache Engines

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/F/FL/FLORA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(aliased)

BuildArch:	noarch
Requires:	apache-mod_perl

%description
This package contains mod_perl handlers for Catalyst.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Catalyst
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4128 |21cr|perl-Catalyst-Log-Log4perl-1.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Log-Log4perl
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Integrates Log::Log4perl with Catalyst

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Log-Log4perl-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst)
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Log::Log4perl)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(aliased)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::XS)
BuildArch:	noarch

%description
This module provides a the Catalyst::Log manpage implementation that uses
the Log::Log4perl manpage as the underlying log mechanism. It provides all
the methods listed in the Catalyst::Log manpage, with the exception of:

    levels
    enable
    disable

These methods simply return 0 and do nothing, as similar functionality is
already provided by the Log::Log4perl manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4129 |21cr|perl-Catalyst-Model-DBI-0.320.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Catalyst-Model-DBI
%define upstream_version 0.32

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Catalyst DBI Model Class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBIx::Connector)
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Class::C3)
BuildRequires:	perl(DBI)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(aliased)

BuildArch:	noarch

%description
This is the DBI model class for Catalyst. It is nothing more than a
simple wrapper for DBI.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4130 |21cr|perl-Catalyst-Model-DBIC-Schema-0.650.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  	 Catalyst-Model-DBIC-Schema
%define upstream_version 0.65

%global __requires_exclude perl\\(Catalyst::Model::DBIC::Schema::Types\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	DBIx::Class::Schema Model Class 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp::Clan)
BuildRequires: perl(Catalyst::Runtime) >= 5.800.50
BuildRequires: perl(CatalystX::Component::Traits) >= 0.140.0
BuildRequires: perl(Class::Load)
BuildRequires: perl(DBIx::Class) >= 0.81.140
BuildRequires: perl(DBIx::Class::Schema::Loader)
BuildRequires: perl(Devel::GlobalDestruction)
BuildRequires: perl(Eval::Closure)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Module::Runtime) >= 0.12.0
BuildRequires: perl(Moose) >= 1.120.0
BuildRequires: perl(MooseX::Types::LoadableClass) >= 0.9.0
BuildRequires: perl(Package::DeprecationManager)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Tie::IxHash)
BuildRequires: perl(namespace::autoclean) >= 0.90.0
BuildRequires: perl(MooseX::MarkAsMethods) >= 0.130
BuildRequires: perl(MooseX::NonMoose) >= 0.160
BuildRequires: perl(Catalyst::Component::InstancePerContext)
BuildRequires: perl(Catalyst::Devel)
BuildRequires: perl(DBIx::Class::Cursor::Cached)
BuildRequires: perl(Module::Find)
BuildRequires: perl(Class::C3)
BuildRequires: perl(Catalyst::Helper)
BuildRequires: perl(strictures)

Requires:	perl(CatalystX::Component::Traits)
BuildArch:	noarch


%description
This is a Catalyst Model for DBIx::Class::Schema-based Models. See the
documentation for Catalyst::Helper::Model::DBIC::Schema for information on
generating these Models via Helper scripts.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4131 |21cr|perl-Catalyst-Model-LDAP-0.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Model-LDAP
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Catalyst LDAP Model Class

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Net::LDAP)
BuildRequires:	perl(Net::LDAP::Constant)
BuildRequires:	perl(NEXT)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Data::Page)
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(JSON::XS)


BuildArch:	noarch

%description
This is the Net::LDAP model class for Catalyst. It is nothing more than a
simple wrapper for Net::LDAP.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4132 |21cr|perl-Catalyst-Model-LDAP-FromAuthentication-0.20.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Model-LDAP-FromAuthentication
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Provides an LDAP model bound as the user who logged in

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
# Get 0.01, which is not on CPAN, at:
# http://github.com/bobtfish/catalyst-model-ldap-fromauthentication/tarball/0.01
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Authentication::Store::LDAP)
BuildRequires:	perl(Catalyst::Component::InstancePerContext)
BuildRequires:	perl(Catalyst::Model::LDAP)
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Types::Common::String)
BuildRequires:	perl(MooseX::Types::LoadableClass)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Module::Install)
BuildRequires:	perl(Module::CoreList)
BuildArch:	noarch

%description
Provides an LDAP model bound as the user who logged in.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 's/^(use Module::Install::Author)/#$1/g;s/^(author_)/#$1/g' Makefile.PL

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4133 |21cr|perl-Catalyst-Model-WebService-Solr-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Model-WebService-Solr
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Use WebService::Solr in your Catalyst application

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(WebService::Solr)
BuildArch:	noarch

%description
This module helps you use remote indexes via WebService::Solr in your
Catalyst application.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4134 |21cr|perl-Catalyst-P-A-ACL-0.160.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Catalyst-Plugin-Authorization-ACL
%define abbrev_name      Catalyst-P-A-ACL
%define upstream_version 0.16

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(A(.*)\\)
%else
%define _requires_exceptions perl(A
%endif

Name:		perl-%{abbrev_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	ACL support for Catalyst applications

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst) >= 5.7
BuildRequires:	perl(Catalyst::Plugin::Authentication)
BuildRequires:	perl(Catalyst::Plugin::Authorization::Roles)
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildRequires:	perl(Catalyst::Plugin::Session::State::Cookie)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Class::Throwable)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::WWW::Mechanize::Catalyst)
BuildRequires:	perl(Tree::Simple::Visitor::FindByPath)
BuildRequires:	perl(Tree::Simple::Visitor::GetAllDescendents)
BuildRequires:	perl(JSON::PP)

BuildArch:	noarch
%rename	perl-%{upstream_name}

%description
This module provides Access Control List style path protection, with
arbitrary rules for Catalyst applications. It operates only on the
Catalyst private namespace, at least at the moment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4135 |21cr|perl-Catalyst-P-A-Credential-PAM-0.01-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname Catalyst-Plugin-Authentication-Credential-PAM
%define abbrevname Catalyst-P-A-Credential-PAM
%define	modprefix Catalyst

Summary:	Authenticate a user against PAM

Name:		perl-%{abbrevname}
Version:	0.01
Release:	13
License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{realname}/
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{modprefix}/%{realname}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl(Authen::PAM)
BuildRequires:	perl(Catalyst)
Provides:	perl-%{realname} = %{version}-%{release}
BuildArch:	noarch

%description
This is an authentication credential checker that verifies passwords
using a specified PAM service.

%prep
%setup -q -n %{realname}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/%{modprefix}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4136 |21cr|perl-Catalyst-P-A-Store-Htpasswd-0.20.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Authentication-Store-Htpasswd
%define upstream_version 0.02

Summary:	Authentication database in $c->config
Name:		perl-Catalyst-P-A-Store-Htpasswd
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Authen::Htpasswd) >= 0.13
BuildRequires:	perl(Catalyst::Plugin::Authentication) >= 0.01
BuildRequires:	perl(Module::Build)
BuildArch:	noarch
%rename perl-%{upstream_name}

%description
This plugin uses Authen::Htpasswd to let your application use
.htpasswd files for it's authentication storage.

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst/Plugin/Authentication/Store/*.pm
%{perl_vendorlib}/Catalyst/Plugin/Authentication/Store/Htpasswd

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4137 |21cr|perl-Catalyst-P-A-Store-LDAP-0.60.200-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Authentication-Store-LDAP
%define abbrev_name      Catalyst-P-A-Store-LDAP
%define upstream_version 0.0602

Name:		perl-%{abbrev_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Catalyst - Authentication from an LDAP Directory
License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Model::LDAP)
BuildRequires:	perl(Catalyst::Plugin::Authentication)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Net::LDAP)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch
%rename	perl-%upstream_name

%description
This plugin uses Net::LDAP to let your application authenticate against an LDAP
directory. It has a pretty high degree of flexibility, given the wide variation
of LDAP directories and schemas from one system to another.

It authenticates users in two steps:

1) A search of the directory is performed, looking for a user object that
matches the username you pass. This is done with the bind credentials supplied
in the "binddn" and "bindpw" configuration options.

2) If that object is found, we then re-bind to the directory as that object.
Assuming this is successful, the user is Authenticated.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
PERL_EXTUTILS_AUTOINSTALL=--skipdeps %__perl Makefile.PL INSTALLDIRS=vendor
# perl Makefile.PL INSTALLDIRS=vendor << EOF

# EOF

%make

%check
#make test

%install
%makeinstall_std

%files
%doc TODO Changes
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4138 |21cr|perl-Catalyst-Plugin-Authentication-0.100.230-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Authentication
%define upstream_version 0.10023

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.10023
Release:	7
Epoch:		1

Summary:	Infrastructure plugin for the Catalyst authentication framework

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Plugin-Authentication-0.10023.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Plugin::Session) >= 0.10
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch

%description
The authentication plugin provides generic user support. It is the basis for
both authentication (checking the user is who they claim to be), and
authorization (allowing the user to do what the system authorises them to do).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4139 |21cr|perl-Catalyst-Plugin-Authorization-Roles-0.90.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Catalyst-Plugin-Authorization-Roles
%define upstream_version 0.09

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(A(.*)\\)
%else
%define _requires_exceptions perl(A
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Role based authorization for Catalyst based on Catalyst::Plugin::Authentication

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Plugin::Authentication) >= 0.100.230
BuildRequires:	perl(Set::Object)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::MockObject) >= 1.201.404.80
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(inc::Module::Install)


BuildArch:	noarch

%description
Role based access control is very simple: every user has a list of
roles, which that user is allowed to assume, and every restricted part
of the app makes an assertion about the necessary roles.

If the user is a member in all of the required roles access is
granted. Otherwise, access is denied.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL installdirs=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4140 |21cr|perl-Catalyst-Plugin-AutoCRUD-2.200.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-AutoCRUD
%define upstream_version 2.200002

#exclude self provided
%define __requires_exclude perl\\(DemoApp.*\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Instant AJAX web front-end for DBIx::Class
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Lingua::EN::Inflect::Number)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(DBIx::Class::Schema::Loader)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Catalyst::Action::RenderView)
BuildRequires:	perl(Catalyst::Model::DBIC::Schema)
BuildRequires:	perl(Catalyst::Plugin::ConfigLoader)
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::View::JSON)
BuildRequires:	perl(Catalyst::View::TT)
BuildRequires:	perl(Data::Page)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(JSON)
BuildRequires:	perl(JSON::Any)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(Test::WWW::Mechanize::Catalyst)
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(JSON::MaybeXS)

BuildArch:	noarch

%description
This module contains an application which will automatically construct a
web interface for a database on the fly. The web interface supports Create,
Retrieve, Update, Delete and Search operations.

The interface is not written to static files on your system, and uses AJAX
to act upon the database without reloading your web page (much like other
Web 2.0 appliactions, for example Google Mail).

Almost all the information required by the plugin is retrieved from the the
DBIx::Class manpage ORM frontend to your database, which it is expected
that you have already set up (although see the /USAGE manpage, below). This
means that any change in database schema ought to be reflected immediately
in the web interface after a page refresh.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
pushd examples
find . -name "*.pm" |xargs chmod 0644
popd

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
find %{buildroot} -size 0 -delete

%files
%doc Changes META.yml META.json examples/
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4141 |21cr|perl-Catalyst-Plugin-Cache-0.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Cache
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Choose a cache backend based on key regexes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Plugin-Cache-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(ok)
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(inc::Module::Install)

BuildArch: noarch

%description
This plugin gives you access to a variety of systems for caching data. It
allows you to use a very simple configuration API, while maintaining the
possibility of flexibility when you need it later.

Among its features are support for multiple backends, segmentation based on
component or controller, keyspace partitioning, and so more, in various
subsidiary plugins.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml 
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4142 |21cr|perl-Catalyst-Plugin-Cache-FastMmap-0.900.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Cache-FastMmap
%define upstream_version 0.9

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Mmap cache for Catalyst applications

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%upstream_name/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cache::FastMmap)
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(inc::Module::Install)

BuildArch:	noarch

%description
This package is part of the Catalyst Cache family. It allows
integration of Cache::FastMmap and Catalyst.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL installdirs=vendor --skipdeps
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4143 |21cr|perl-Catalyst-Plugin-Captcha-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Captcha
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Create and validate Captcha for Catalyst

License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst)
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildRequires:	perl(GD::SecurityImage)
BuildRequires:	perl(HTTP::Date)
BuildArch:	noarch

%description
This plugin create, validate Captcha.

Note: This plugin uses GD::SecurityImage and requires a session
plugins like Catalyst::Plugin::Session

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4144 |21cr|perl-Catalyst-Plugin-ConfigLoader-0.350.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

%define upstream_name	 Catalyst-Plugin-ConfigLoader
%define upstream_version 0.35

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Load config files of various types


License:	Artistic/GPL
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
%if %{without bootstrap}
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Config::Any) >= 0.08
BuildRequires:	perl(Data::Visitor) >= 0.02
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Mouse)
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
%endif
BuildArch:	noarch

%description
This module will attempt to load find and load a configuration file of
various types. Currently it supports YAML, JSON, XML, INI and Perl
formats.

To support the distinction between development and production
environments, this module will also attemp to load a local config
(e.g. myapp_local.yaml) which will override any duplicate settings.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}
sed -i.DOS -e 's/\r//g' Changes
sed -i.DOS -e 's/\r//g' README

%build
%{__perl} Makefile.PL installdirs=vendor
%make

%check
%if %{without bootstrap}
make test
%endif

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4145 |21cr|perl-Catalyst-Plugin-CustomErrorMessage-0.60.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-CustomErrorMessage
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Catalyst plugin to have more "cute" error message

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Carp::Clan)
BuildArch:	noarch

%description
You can use this module if you want to get rid of:

        (en) Please come back later
        (fr) SVP veuillez revenir plus tard
        (de) Bitte versuchen sie es spaeter nocheinmal
        (at) Konnten's bitt'schoen spaeter nochmal reinschauen
        (no) Vennligst prov igjen senere
        (dk) Venligst prov igen senere
        (pl) Prosze sprobowac pozniej

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4146 |21cr|perl-Catalyst-Plugin-DateTime-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Catalyst-Plugin-DateTime
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	DateTime plugin for Catalyst

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(DateTime) >= 0.200.0

BuildArch:	noarch


%description
This module's intention is to make the wonders of DateTime easily
accesible within a Catalyst application via the Catalyst::Plugin
interface.

It adds the methods datetime and dt to the Catalyst namespace.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%check
## scottk ##
## Temporarily disabled test due to error:
## "Cannot determine local time zone"
## when built in lbd automated build environment
## make test

%install
%makeinstall_std

%files 
%doc Changes README META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4147 |21cr|perl-Catalyst-Plugin-FillInForm-0.120.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Catalyst-Plugin-FillInForm
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	FillInForm for Catalyst

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst) >= 2.99
BuildRequires:	perl(Catalyst::Action::RenderView)
BuildRequires:	perl(HTML::FillInForm)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::XS)
BuildArch:	noarch

%description
Fill forms automatically, based on data from a previous HTML
form. Typically (but not necessarily) used in conjunction with
Catalyst::Plugin::FormValidator. This module automatically inserts
data from a previous HTML form into HTML input fields, textarea
fields, radio buttons, checkboxes, and select tags. It is an instance
of HTML::FillInForm, which itself is a subclass of HTML::Parser, which
it uses to parse the HTML and insert the values into the proper form
tags.

The usual application is after a user submits an HTML form without
filling out a required field, or with errors in fields having
specified constraints. FillInForm is used to redisplay the HTML form
with all the form elements containing the submitted info. FillInForm
can also be used to fill forms with data from any source,
e.g. directly from your database.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4148 |21cr|perl-Catalyst-Plugin-FormValidator-0.94.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-FormValidator
%define upstream_version 0.094

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	FormValidator for Catalyst

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MR/MRAMBERG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst) >= 2.99
BuildRequires:	perl(Data::FormValidator)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::XS)
BuildArch:	noarch

%description
This plugin uses Data::FormValidator to validate and set up form data
from your request parameters. It's a quite thin wrapper around that
module, so most of the relevant information can be found there.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4149 |21cr|perl-Catalyst-Plugin-HTML-Widget-1.100.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-HTML-Widget
%define upstream_version 1.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	HTML Widget And Validation Framework

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/B/BO/BOBTFISH/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst) >= 5.500.0
BuildRequires:	perl(HTML::Widget)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch

%description
HTML Widget And Validation Framework.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4150 |21cr|perl-Catalyst-Plugin-I18N-0.100.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Catalyst-Plugin-I18N
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	I18N for Catalyst

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%upstream_name/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst) >= 2.99
BuildRequires:	perl(I18N::LangTags::Detect)
BuildRequires:	perl(Locale::Maketext::Lexicon)
BuildRequires:	perl(Locale::Maketext::Simple) >= 0.190.0
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch
Requires:	perl(Locale::Maketext::Lexicon)

%description
Supports mo/po files and Maketext classes under your applications I18N
namespace.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst/Plugin/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4151 |21cr|perl-Catalyst-Plugin-Images-0.20.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Images
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Generate image tags for static files

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst) >= 5.50
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(Image::Size)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Test::WWW::Mechanize::Catalyst)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::PP)
BuildArch:	noarch

%description
This plugin aims to assist you in generating image tags that contain
alt text, a properly escaped src attribute, height and width info,
without worrying too much.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4152 |21cr|perl-Catalyst-Plugin-PageCache-0.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-PageCache
%define upstream_version 0.32

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Cache the output of entire pages

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cache::Cache)
BuildRequires:	perl(Cache::FileCache)
BuildRequires:	perl(Catalyst::Plugin::Cache)
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(JSON::XS)
BuildArch:	noarch

%description
Many dynamic websites perform heavy processing on most pages, yet this
information may rarely change from request to request. Using the PageCache
plugin, you can cache the full output of different pages so they are served
to your visitors as fast as possible. This method of caching is very useful
for withstanding a Slashdotting, for example.

This plugin requires that you also load a Cache plugin. Please see the
Known Issues when choosing a cache backend.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4153 |21cr|perl-Catalyst-Plugin-Prototype-1.330.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Prototype
%define upstream_version 1.33

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Plugin for Prototype

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(HTML::Prototype)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Helper to generate Prototype library.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4154 |21cr|perl-Catalyst-Plugin-Redirect-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Redirect
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Redirect for Catalyst used easily is offered

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst)
BuildArch:	noarch

%description
Redirect for Catalyst used easily is offered.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4155 |21cr|perl-Catalyst-Plugin-Server-0.280.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Server
%define upstream_version 0.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Server extensions for Catalyst
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Clone::Fast)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(RPC::XML)
BuildRequires:	perl(RPC::XML::Parser)
BuildRequires:	perl(Class::Data::Inheritable)

BuildArch:	noarch

%description
Base plugin for XMLRPC and our future SOAP server. For further information,
see one of the Server plugins

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# Too old for 5.900.930 and perl 5.18.x
# none of the tests will pass.
# %make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/rpc_client

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4156 |21cr|perl-Catalyst-Plugin-Session-0.410.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session
%define upstream_version 0.41

%bcond_with bootstrap

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Generic Session plugin for Catalyst

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Plugin-Session-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Catalyst) >= 5.900.930
BuildRequires:	perl(Digest)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Object::Signature)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(Test::MockObject) >= 1.201.404.80
BuildRequires:	perl(Test::More)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(MooseX::Emulate::Class::Accessor::Fast)
BuildRequires:	perl(aliased)
%if %{without bootstrap}
BuildRequires:	perl(Catalyst::Plugin::Session::State::Cookie)
%endif
BuildArch:	noarch

%description
The Session plugin is the base of two related parts of functionality required
for session management in web applications. The first part, the State, is
getting the browser to repeat back a session key, so that the web
application can identify the client and logically string several requests
together into a session. The second part, the Store, deals with the actual
storage of information about the client. This data is stored so that the it
may be revived for every request made by the same client. This plugin links
the two pieces together.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
%if %{without bootstrap}
make test
%endif

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4157 |21cr|perl-Catalyst-Plugin-Session-FastMmap-0.130.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session-FastMmap
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	File storage backend for session data

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(URI::Find)
BuildRequires:  perl(Cache::FastMmap)
BuildArch:	noarch

%description
Fast sessions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Catalyst/Plugin/Session/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4158 |21cr|perl-Catalyst-Plugin-Session-PerUser-0.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session-PerUser
%define upstream_version 0.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Per user sessions (instead of per browser sessions)
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Catalyst::Plugin::Authentication)
BuildRequires: perl(Catalyst::Plugin::Session)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Hash::Merge)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Moose)
BuildRequires: perl(Object::Signature)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(CPAN)


BuildArch: noarch

%description
This plugin allows you to write e.g. shopping cart code which should behave
well for guests as well as permanent users.

The basic idea is both logged in and not logged in users can get the same
benefits from sessions where it doesn't matter, but that logged in users
can keep their sessions accross logins, and will even get the data they
added/changed assimilated to their permanent account if they made the
changes as guests and then logged in.

This is probably most useful for e-commerce sites, where the shopping cart
is typically used before login, and should be equally accessible to both
guests and logged in users.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4159 |21cr|perl-Catalyst-Plugin-Session-State-Cookie-0.180.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session-State-Cookie
%define upstream_version 0.18

%bcond_with bootstrap

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Cookie driver for Catalyst sessions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
%if %{without bootstrap}
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(HTTP::Cookies)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
%endif

BuildArch:	noarch

Requires:	perl(Catalyst::Plugin::Session::State)
%rename	perl-Catalyst-P-S-State-Cookie

%description
In order for the Catalyst::Plugin::Session manpage to work the session ID
needs to be stored on the client, and the session data needs to be stored
on the server.

This plugin stores the session ID on the client using the cookie mechanism.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%if %{without bootstrap}
%make test
%endif

%install
%makeinstall_std


%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4160 |21cr|perl-Catalyst-Plugin-Session-Store-Cache-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session-Store-Cache
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Store sessions using a Catalyst::Plugin::Cache

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildArch:	noarch

%description
This plugin will store your session data in whatever cache module you have
configured.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4161 |21cr|perl-Catalyst-Plugin-Session-Store-DBI-0.160.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Catalyst-Plugin-Session-Store-DBI
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Store your sessions in a database

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AG/AGRUNDMA//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst) >= 5.49
BuildRequires:	perl(Catalyst::Plugin::Session) >= 0.05
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(DBI)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)

BuildArch:	noarch

%description
This storage module will store session data in a database using DBI.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL installdirs=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4162 |21cr|perl-Catalyst-Plugin-Session-Store-File-0.180.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session-Store-File
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	File storage backend for session data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/F/FL/FLORA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cache::Cache) >= 1.02
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Plugin::Session) >= 0.400.0
BuildRequires:	perl(Class::Accessor::Fast) >= 0.22
BuildRequires:	perl(Class::Data::Inheritable) >= 0.04
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch
%rename	perl-Catalyst-P-S-Store-File

%description
Catalyst::Plugin::Session::Store::File is an easy to use storage plugin for
Catalyst that uses an simple file to act as a shared memory interprocess cache.
It is based on Cache::FileCache.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4163 |21cr|perl-Catalyst-Plugin-Session-Store-Memcached-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session-Store-Memcached
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Memcached storage for Catalyst sessions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Plugin-Session-Store-Memcached-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Cache::Memcached::Managed)
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)
BuildArch:	noarch

%description
'Catalyst::Plugin::Session::Store::Memcached' is a session storage plugin
for Catalyst that uses the the Cache::Memcached::Managed manpage module to
connect to memcached, a fast data caching server.

METHODS
    * get_session_data

    * store_session_data

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4164 |21cr|perl-Catalyst-Plugin-Setenv-0.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Setenv
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Allows you to set up the environment from Catalyst's config file

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Catalyst::Runtime)
BuildRequires: perl(FindBin)
BuildRequires: perl(NEXT)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildRequires: perl(JSON::XS)
BuildArch: noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4165 |21cr|perl-Catalyst-Plugin-StackTrace-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-StackTrace
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Display a stack trace on the debug screen

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/Catalyst-Plugin-StackTrace-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst) >= 5.61
BuildRequires:	perl(Devel::StackTrace)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch

%description
This plugin will enhance the standard Catalyst debug screen by
including a stack trace of your appliation up to the point where the
error occurred. Each stack frame is displayed along with the package
name, line number, file name, and code context surrounding the line
number.

This plugin is only active in -Debug mode.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4166 |21cr|perl-Catalyst-Plugin-Static-Simple-0.370.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Catalyst-Plugin-Static-Simple
%define upstream_version 0.37

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Make serving static pages painless
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(MIME::Types)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)

BuildArch:	noarch

%description
The Static::Simple plugin is designed to make serving static content
in your application during development quick and easy, without
requiring a single line of code from you.

This plugin detects static files by looking at the file extension in
the URL (such as B<.css> or B<.png> or B<.js>). The plugin uses the
lightweight L<MIME::Types> module to map file extensions to
IANA-registered MIME types, and will serve your static files with the
correct MIME type directly to the browser, without being processed
through Catalyst.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x Changes

%build
%{__perl} Makefile.PL installdirs=vendor --skipdeps
%make

%check
make test

%install
%makeinstall_std
chmod -x %{buildroot}%{perl_vendorlib}/Catalyst/Plugin/Static/Simple.pm

%files
%doc Changes META.yml 
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4167 |21cr|perl-Catalyst-Plugin-SubRequest-0.210.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-SubRequest
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Make subrequests to actions in Catalyst
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.0
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Devel::GlobalDestruction)
BuildRequires:	perl(Eval::Closure)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Package::DeprecationManager)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch

%description
Make subrequests to actions in Catalyst. Uses the catalyst dispatcher, so
it will work like an external url call.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
TEST_POD=1 prove --lib lib t

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4168 |21cr|perl-Catalyst-Plugin-Textile-0.10.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Textile
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Textile for Catalyst

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst)
BuildRequires:	perl(Text::Textile)
BuildRequires:	perl(Class::Data::Inheritable)
BuildArch:	noarch

%description
Persistent Textile processor for Catalyst.

METHODS
    $c->textile;
        Returns a ready to use the Text::Textile manpage object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4169 |21cr|perl-Catalyst-Plugin-Unicode-0.930.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Unicode
%define upstream_version 0.93

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Unicode aware Catalyst

License:	Artistic/GPL
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Test::WWW::Mechanize::Catalyst)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(MRO::Compat) >= 0.10
BuildArch:	noarch

%description
On request, decodes all params from UTF-8 octets into a sequence of
logical characters. On response, encodes body into UTF-8 octets.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4170 |21cr|perl-Catalyst-P-S-Store-FastMmap-0.160.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session-Store-FastMmap
%define abbrev_name      Catalyst-P-S-Store-FastMmap
%define upstream_version 0.16

Name:		perl-%{abbrev_name}
Version:	%perl_convert_version 0.16
Release:	7

Summary:	FastMmap session storage backend

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Catalyst/Catalyst-Plugin-Session-Store-FastMmap-0.16.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cache::FastMmap)
BuildRequires:	perl(Catalyst::Plugin::Session) >= 0.01
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(MooseX::Emulate::Class::Accessor::Fast)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(JSON::PP)

BuildArch:	noarch

Requires:	perl(MooseX::Emulate::Class::Accessor::Fast)

%rename	perl-%{upstream_name}


%description
Catalyst::Plugin::Session::Store::FastMmap is a fast session storage plugin for
Catalyst that uses an mmap'ed file to act as a shared memory interprocess
cache. It is based on Cache::FastMmap.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL installdirs=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4171 |21cr|perl-Catalyst-P-S-Store-File-0.180.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-Plugin-Session-Store-File
%define abbrev_name      Catalyst-P-S-Store-File
%define upstream_version 0.18

Name:		perl-%{abbrev_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	File storage backend for session data

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cache::Cache) >= 1.02
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Plugin::Session) >= 0.21
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(Class::Accessor::Fast) >= 0.22
BuildRequires:	perl(Class::Data::Inheritable) >= 0.04
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(MooseX::Emulate::Class::Accessor::Fast)
BuildRequires:	perl(namespace::clean)
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(aliased)
BuildRequires:	perl(inc::Module::Install)

%rename perl-%{upstream_name}

BuildArch:	noarch

%description
Catalyst::Plugin::Session::Store::File is an easy to use storage plugin for
Catalyst that uses an simple file to act as a shared memory interprocess cache.
It is based on Cache::FileCache.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4172 |21cr|perl-Catalyst-Runtime-5.901.280-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Catalyst-Runtime
%define upstream_version 5.90128

%bcond_with bootstrap

# remove circular dependency: catalyst::helper is provided by
# catalyst-devel, which itself requires catalyst-runtime to be build.
# moreover, this dependency is only used in an example script, so we do
# not loose anything by removing this dependency
%global __requires_exclude perl\\(Catalyst::Helper\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Epoch:		1

Summary:	The Elegant MVC Web Application Framework
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Encode)
BuildRequires:	perl-devel
%if %{without bootstrap}
BuildRequires:	perl(B::Hooks::EndOfScope)
BuildRequires:	perl(Plack::Middleware::ReverseProxy)
BuildRequires:	perl(Safe::Isa)
BuildRequires:	perl(Carp::Always)
BuildRequires:	perl(Test::Without::Module)
BuildRequires:	perl(Test::Tester)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::MockTime)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Deep::NoTest)
BuildRequires:	perl(Stream::Buffered)
BuildRequires:	perl(Plack::Test)
BuildRequires:	perl(Plack::Request)
BuildRequires:	perl(Plack::Middleware)
BuildRequires:	perl(Plack::Loader)
BuildRequires:	perl(Plack::Builder)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(JSON::MaybeXS)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(HTTP::Message::PSGI)
BuildRequires:	perl(File::ShareDir::Install)
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(Apache::LogFormat::Compiler)
BuildRequires:	perl(CGI::Struct)
BuildRequires:	perl(Plack::Middleware::FixMissingBodyInRedirect)
BuildRequires:	perl(Plack::Middleware::RemoveRedundantBody)
BuildRequires:	perl(Plack::Middleware::MethodOverride) >= 0.140.0
BuildRequires:	perl(Plack::Test::ExternalServer)
BuildRequires:	perl(Carp)
BuildRequires:	perl(CGI::Simple::Cookie)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Class::C3::Adopt::NEXT)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Class::MOP)
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(File::Modified)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTTP::Body) >= 1.220.0
BuildRequires:	perl(HTTP::Headers) >= 1.640.0
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Request::AsCGI) >= 0.500.0
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Module::Pluggable) >= 3.10.0
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Emulate::Class::Accessor::Fast)
BuildRequires:	perl(MooseX::Getopt)
BuildRequires:	perl(MooseX::MethodAttributes::Inheritable)
BuildRequires:	perl(MooseX::Role::WithOverloading) >= 0.30.0
BuildRequires:	perl(MooseX::Types::Common::Numeric)
BuildRequires:	perl(MooseX::Types::LoadableClass)
BuildRequires:	perl(Path::Class) >= 0.90.0
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(String::RewritePrefix)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Text::Balanced)
BuildRequires:	perl(Text::SimpleTable) >= 0.30.0
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Tree::Simple) >= 1.150.0
BuildRequires:	perl(Tree::Simple::Visitor::FindByPath)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(URI) >= 1.350.0
BuildRequires:	perl(YAML) >= 0.550.0
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(URI::ws)
# testing only
BuildRequires:	perl(aliased)
BuildRequires:	perl(Term::Size::Any)
BuildRequires:	perl(Type::Tiny)
BuildRequires:	perl(IO::HTML)
BuildRequires:	perl(Test::WWW::Mechanize::Catalyst)
BuildRequires:	perl(Catalyst::Plugin::ConfigLoader)
BuildRequires:	perl(Term::Size::Perl)
BuildRequires:	perl(CatalystX::LeakChecker)
%endif

BuildArch:	noarch

# (misc) not auto-detected; as it's on a line with whitespace, it's not taken
# in account by perl.req
Requires:	perl(HTTP::Request::AsCGI) >= 0.500.0
Requires:	perl(MooseX::Emulate::Class::Accessor::Fast)

# This is required for tests in perl-Catalyst-* packages and the simpliest way to make them happy 
# is to add this requirement here
Requires:   perl(aliased)
Requires:   perl(namespace::autoclean)

Provides:   perl(Catalyst) = %{EVRD}

%rename perl-Catalyst

%description
Catalyst is an elegant web application framework, extremely flexible yet
extremely simple. It's similar to Ruby on Rails, Spring (Java) and Maypole,
upon which it was originally based.

Catalyst follows the Model-View-Controller (MVC) design pattern, allowing you
to easily separate concerns, like content, presentation, and flow control, into
separate modules. This separation allows you to modify code that handles one
concern without affecting code that handles the others. Catalyst promotes the
re-use of existing Perl modules that already handle common web application
concerns well.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%if %{without bootstrap}
make test
%endif

%install
%makeinstall_std
sed -i -e '1i#!/usr/bin/perl' %{buildroot}%{perl_vendorlib}/Catalyst/Delta.pod

%files
%doc Changes META.yml
%{perl_vendorlib}/Catalyst*
%{_bindir}/catalyst.pl
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4173 |21cr|perl-Catalyst-View-Email-0.360.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-View-Email
%define upstream_version 0.36

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Templated Email View
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/Catalyst-View-Email-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Authen::SASL)
BuildRequires:	perl(Catalyst)
BuildRequires:	perl(Catalyst::View::Mason)
BuildRequires:	perl(Catalyst::View::TT)
BuildRequires:	perl(Class::C3)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Email::Date::Format)
BuildRequires:	perl(Email::MIME)
BuildRequires:	perl(Email::MIME::Creator)
BuildRequires:	perl(Email::Send)
BuildRequires:	perl(Email::Sender::Simple)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(parent)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Test::Pod) >= 1.140
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(JSON::PP)

BuildArch:	noarch

%description
Helper for Email Views.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test 
# Let's do this right , enabeling all tests.Sflo
# http://search.cpan.org/~mramberg/Catalyst-Runtime-5.7001/lib/Catalyst/Manual/Tutorial/Testing.pod
TEST_POD=1 prove --lib lib t

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4174 |21cr|perl-Catalyst-View-Excel-Template-Plus-0.40.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-View-Excel-Template-Plus
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Excel::Plus View

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Excel::Template::Plus) >= 0.60.0
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(MooseX::Param)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(parent)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch

%description
This is a Catalyst View subclass which can handle rendering excel content
through Excel::Template::Plus.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4175 |21cr|perl-Catalyst-View-GD-0.10.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-View-GD
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	A Catalyst View for GD images

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(GD)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Image::GD)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch

%description
This is a Catalyst View subclass which can handle rendering GD based image
content. 

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4176 |21cr|perl-Catalyst-View-GraphViz-0.50.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-View-GraphViz
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	GraphViz View Class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Plugin::SubRequest)
BuildRequires:	perl(GraphViz)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)


BuildArch:	noarch

%description
This is the Catalyst view class for the GraphViz manpage. Your application
subclass should inherit from this class.

This plugin renders the GraphViz object specified in
'$c->stash->{graphviz}->{graph}' into the '$c->stash->{graphviz}->{format}'
(one of e.g. png gif, or one of the other as_* methods described in the the
GraphViz manpage module. PNG is the default format.

The output is stored in '$c->response->output'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4177 |21cr|perl-Catalyst-View-JSON-0.370.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-View-JSON
%define upstream_version 0.37

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	JSON view for your data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Plugin::Unicode)
BuildRequires:	perl(YAML)
BuildRequires:	perl(JSON)
BuildRequires:	perl(JSON::Any)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(JSON::MaybeXS)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)

BuildArch:	noarch

%description
Catalyst::View::JSON is a Catalyst View handler that returns stash
data in JSON format.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Catalyst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4178 |21cr|perl-Catalyst-View-Mason-0.190.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-View-Mason
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Mason View Class
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Catalyst/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(HTML::Mason)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::File)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(JSON::XS)

BuildArch:	noarch

%description
Want to use a Mason component in your views? No problem!
Catalyst::View::Mason comes to the rescue.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL installdirs=vendor --skipdeps
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4179 |21cr|perl-Catalyst-View-TT-0.450.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Catalyst-View-TT
%define upstream_version 0.45

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Catalyst TT View Class
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Template)
BuildRequires:	perl(Template::Provider::Encoding)
BuildRequires:	perl(Template::Timer)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(File::Spec) >= 3.470.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
This is the Catalyst view class for the Template Toolkit. Your application
should defined a view class which is a subclass of this module. The easiest way
to achieve this is using the myapp_create.pl script (where myapp should be
replaced with whatever your application is called). This script is created as
part of the Catalyst setup.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 README Changes META.yml META.json

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json
%{perl_vendorlib}/Catalyst
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4180 |21cr|perl-CatalystX-Component-Traits-0.190.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CatalystX-Component-Traits
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Automatic Trait Loading and Resolution for

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/CatalystX/CatalystX-Component-Traits-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Module::Pluggable)          >= 3.900.0
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(MooseX::Traits::Pluggable)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch
Requires:	perl(MooseX::Traits::Pluggable)

%description
Adds a the Catalyst::Component/COMPONENT manpage method to your the
Catalyst manpage component base class that reads the optional 'traits'
parameter from app and component config and instantiates the component
subclass with those traits using the MooseX::Traits/new_with_traits manpage
from the MooseX::Traits::Pluggable manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4181 |21cr|perl-CatalystX-InjectComponent-0.25.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CatalystX-InjectComponent
%define upstream_version 0.025

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Inject components into your Catalyst application

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CatalystX/CatalystX-InjectComponent-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(Devel::InnerPackage)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(parent)
BuildRequires:	perl(JSON::XS)
BuildArch:	noarch

%description
CatalystX::InjectComponent will inject Controller, Model, and View
components into your Catalyst application at setup (run)time. It does this
by creating a new package on-the-fly, having that package extend the given
component, and then having Catalyst setup the new component (via
'->setup_component')

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4182 |21cr|perl-CatalystX-LeakChecker-0.60.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CatalystX-LeakChecker
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Debug memory leaks in Catalyst applications

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CatalystX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(B::Deparse)
BuildRequires:	perl(Catalyst)
BuildRequires:	perl(Devel::Cycle)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::AttributeHelpers)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::SimpleTable)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

%description
It's easy to create memory leaks in Catalyst applications and often they're
hard to find. This module tries to help you finding them by automatically
checking for common causes of leaks.

This module is intended for debugging only. I suggest to not enable it in a
production environment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4183 |21cr|perl-CatalystX-SimpleLogin-0.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CatalystX-SimpleLogin
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Redirect
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CatalystX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Catalyst::Action::REST)
BuildRequires:	perl(Catalyst::Action::RenderView)
BuildRequires:	perl(Catalyst::ActionRole::ACL)
BuildRequires:	perl(Catalyst::Controller::ActionRole)
BuildRequires:	perl(Catalyst::Plugin::Authentication)
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildRequires:	perl(Catalyst::Plugin::Session::State::Cookie)
BuildRequires:	perl(Catalyst::Plugin::Session::Store::File)
BuildRequires:	perl(Catalyst::Runtime)
BuildRequires:	perl(Catalyst::View::TT)
BuildRequires:	perl(CatalystX::Component::Traits)
BuildRequires:	perl(CatalystX::InjectComponent)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTML::FormHandler)
BuildRequires:	perl(HTTP::Request::Common)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(MooseX::MethodAttributes)
BuildRequires:	perl(MooseX::RelatedClassRoles)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(MooseX::Types::Common)
BuildRequires:	perl(SQL::Translator)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)
BuildArch:	noarch

%description
CatalystX::SimpleLogin is an application class role which will inject a
controller which is an instance of the
CatalystX::SimpleLogin::Controller::Login manpage into your application.
This provides a simple login and logout page with the adition of only one
line of code and one template to your application.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4184 |21cr|perl-CBOR-XS-1.860.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name CBOR-XS
%define upstream_version 1.86

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %upstream_version
Release:        1
Summary:        Concise Binary Object Representation (CBOR)
# COPYING:      GPLv3+
## Replaced by system header-only package
# ecb.h:        BSD or GPLv2+
License:        GPLv3+ and (BSD or GPLv2+)
Group:          Development/Perl
URL:            https://metacpan.org/release/%{upstream_name}
Source0:        https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  findutils
# gcc for standard header files
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl-devel
BuildRequires:  sed
# Run-time:
BuildRequires:  perl(Canary::Stability)
BuildRequires:  perl(common::sense)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Math::BigFloat)
BuildRequires:  perl(Math::BigInt)
BuildRequires:  perl(Math::BigRat)
BuildRequires:  perl(Math::BigInt::FastCalc)
BuildRequires:  perl(Time::Piece)
BuildRequires:  perl(Types::Serialiser)
BuildRequires:  perl(URI)
BuildRequires:  perl(XSLoader)
# Tests:
BuildRequires:  perl(Data::Dumper)

Requires:       perl(Math::BigFloat)
Requires:       perl(Math::BigInt)
Requires:       perl(Time::Piece)
Requires:       perl(URI)

%description
This module converts Perl data structures to the Concise Binary Object
Representation (CBOR) and vice versa. CBOR is a fast binary serialization
format that aims to use an (almost) superset of the JSON data model, i.e.
when you can represent something useful in JSON, you should be able to
represent it in CBOR.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%autopatch -p1

%build
%__perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}" </dev/null
%make_build

%install
%make_install

find %{buildroot} -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license COPYING
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/CBOR*
%{_mandir}/man3/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4185 |21cr|perl-CDB_File-1.50.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CDB_File
%define upstream_version 1.05
%global __provides_exclude CDB_File.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Extension for access to cdb databases

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/T/TO/TODDR/CDB_File-1.05.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
# BuildRequires: perl(Test::Warnings)
# BuildRequires: perl(Test::Fatal)
# BuildRequires: perl(Devel::Peek)
# Need to add B::COW to ROSA rep.
# BuildRequires: perl(B::COW)

%description
CDB_File is a module which provides a Perl interface to Dan Berstein's cdb
package.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# don't work without B:COW
# make test

%install
%makeinstall_std


%files
%{perl_vendorarch}/auto/CDB_File
%{perl_vendorarch}/CDB_File.pm
%{perl_vendorarch}/bun-x.pl
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4186 |21cr|perl-CDDB-1.222.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CDDB
%define upstream_version 1.222

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A high-level interface to cddb protocol servers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/CDDB/CDDB-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(Mail::Header)
BuildRequires:	perl(LWP)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::More)
BuildArch:	noarch

%description
CDDB is a high-level interface to databases based on the Compact Disc
Database protocol.

Starting with version 1.04, CDDB.pm will contact freedb.org servers by
default. cddb.com's developer license is for end-user applications; not
third-party libraries.  This makes CDDB.pm ineligible for access to
cddb.com servers.  This author will not pursue further cddb.com
access. Developers using CDDB.pm may continue to attempt connections to
cddb.com servers, but there are no guarantees.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# (tv) disable network tests:
exit 0
make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc README HISTORY
%{perl_vendorlib}/CDDB.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4187 |21cr|perl-CDDB_get-2.280.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 CDDB_get
%define upstream_version 2.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Read the CDDB entry for an audio CD in your drive	

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/F/FO/FONKIE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
Requires:	perl(ExtUtils::MakeMaker)

BuildArch:	noarch

%description
This module/script gets the CDDB info for an audio cd.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/cddb.pl
%{perl_vendorlib}/auto/CDDB_*
%{perl_vendorlib}/CDDB_*.pm
%{perl_vendorlib}/cddb.pl
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4188 |21cr|perl-CGI-Application-4.610.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CGI-Application
%define upstream_version 4.61

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Framework for building reusable web-applications

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(Class::ISA)
BuildRequires:	perl(HTML::Template)
BuildRequires:	perl(HTML::Entities)
Requires:	perl(CGI)
Requires:	perl(HTML::Template)
BuildArch:	noarch

%description
%{upstream_name} is intended to make it easier to create sophisticated,
reusable web-based applications. This module implements a methodology
which, if followed, will make your web software easier to design,
easier to document, easier to write, and easier to evolve.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 755 Examples/Mailform/mailform.cgi

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README Examples
%{perl_vendorlib}/CGI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4189 |21cr|perl-CGI-Application-Dispatch-3.120.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Dispatch
%define upstream_version 3.12

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Dispatch requests to CGI::Application based object


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CGI::Application)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(HTTP::Exception)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::LongString)
BuildRequires: perl(Exception::Class::TryCatch)
BuildArch: noarch

%description
This module provides a way (as a mod_perl handler or running under vanilla CGI)
to look at the path ($r->path_info or $ENV{PATH_INFO}) of the incoming request,
parse off the desired module and it's run mode, create an instance of that
module and run it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4190 |21cr|perl-CGI-Application-Plugin-Authentication-0.230.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-Authentication
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Authentication framework for CGI::Application

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/CGI-Application-Plugin-Authentication-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Attribute::Handlers)
BuildRequires:	perl(CGI::Application)
BuildRequires:	perl(CGI::Cookie)
BuildRequires:	perl(Class::ISA)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::More) >= 0.940.0
BuildRequires:	perl(Test::Regression)
BuildRequires:	perl(Test::Taint)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Without::Module)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(CGI::Application::Plugin::Session)
BuildRequires:	perl(HTML::Entities)

BuildArch:	noarch

%description
CGI::Application::Plugin::Authentication adds the ability to authenticate
users in your the CGI::Application manpage modules. It imports one method
called 'authen' into your CGI::Application module. Through the authen
method you can call all the methods of the
CGI::Application::Plugin::Authentication plugin.

There are two main decisions that you need to make when using this module.
How will the usernames and password be verified (ie from a database, LDAP,
etc...), and how can we keep the knowledge that a user has already logged
in persistent, so that they will not have to enter their credentials again
on the next request (ie how do we 'Store' the authentication information
across requests).

Choosing a Driver
    There are three drivers that are included with the distribution. Also,
    there is built in support for all of the Authen::Simple modules (search
    CPAN for Authen::Simple for more information). This should be enough to
    cover everyone's needs. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# https://rt.cpan.org/Public/Bug/Display.html?id=85969
rm -f t/03_login_box.t
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4191 |21cr|perl-CGI-Application-Plugin-AutoRunmode-0.180.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-AutoRunmode
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	CGI::App plugin to automatically register runmodes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI::Application)
BuildArch:	noarch

%description
This plugin for CGI::Application provides easy ways to setup run modes. You
can just write the method that implement a run mode, you do not have to
explicitly register it with CGI::App anymore.

There are two approaches: 

* Declare run modes with subroutine attributes. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4192 |21cr|perl-CGI-Application-Plugin-CAPTCHA-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-CAPTCHA
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Easily create, use, and verify CAPTCHAs in

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI::Application)
BuildRequires:	perl(GD::SecurityImage)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Data::Random)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(HTTP::Server::Simple::CGI)
BuildArch:	noarch

%description
'CGI::Application::Plugin::CAPTCHA' allows programmers to easily add and
verify CAPTCHAs in their CGI::Application-derived web applications.

A CAPTCHA (or Completely Automated Public Turing Test to Tell Computers and
Humans Apart) is an image with a random string of characters. A user must
successfully enter the random string in order to submit a form. This is a
simple (yet annoying) procedure for humans to complete, but one that is
significantly more difficult for a form-stuffing script to complete without
having to integrate some sort of OCR.

CAPTCHAs are not a perfect solution. Any skilled, diligent cracker will
eventually be able to bypass a CAPTCHA, but it should be able to shut down
your average script-kiddie.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#test need internet connection
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/CGI

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4193 |21cr|perl-CGI-Application-Plugin-Config-YAML-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-Config-YAML
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Add Config::YAML support to CGI::Application

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Config::YAML)
BuildRequires:	perl(CGI::Application)
BuildArch:	noarch

%description
This plug-in add Config::YAML support to CGI::Application. The usage of this
plug-in is almost the same as CGI::Application::Plugin::Config::Simple. This
plug-in can be easily used instead of CGI::Application::Plugin::Config::Simple.
This plug-in refers to CGI::Application::Plugin::Config::Simple.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4194 |21cr|perl-CGI-Application-Plugin-DBH-4.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-DBH
%define upstream_version 4.04
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Easy DBI access from CGI::Application

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/CGI-Application-Plugin-DBH-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI::Application)
BuildRequires:	perl(DBD::Mock)
BuildRequires:	perl(DBI)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::MockObject)

BuildArch:	noarch

%description
CGI::Application::Plugin::DBH adds easy access to a DBI database handle to
your CGI::Application modules. Lazy loading is used to prevent a database
connection from being made if the 'dbh' method is not called during the
request. In other words, the database connection is not created until it is
actually needed. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/CGI

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4195 |21cr|perl-CGI-Application-Plugin-ErrorPage-1.210.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-ErrorPage
%define upstream_version 1.21

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    A simple error page plugin for CGI::Application

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CGI::Application)
BuildRequires: perl(Params::Validate)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This plugin provides a shortcut for the common need of returning a simple
error message to the user. 

You are encouraged to provide a template file so that the error messages
can be presented with a design consistent with the rest of your
application. 

A simple design is provided below to get to you started. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/CGI

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4196 |21cr|perl-CGI-Application-Plugin-Forward-1.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-Forward
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Pass control from one run mode to another

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI::Application)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
The forward method passes control to another run mode and returns its
output. This is equivalent to calling '$self->$other_runmode', except that
the CGI::Application manpage's internal value of the current run mode is
updated.

This means that calling '$self->get_current_runmode' after calling
'forward' will return the name of the new run mode. This is useful for
modules that depend on the name of the current run mode such as the
CGI::Application::Plugin::AnyTemplate manpage.

For example, here's how to pass control to a run mode named 'other_action'
from 'start' while updating the value of 'current_run_mode':

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/CGI

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4197 |21cr|perl-CGI-Application-Plugin-LogDispatch-1.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-LogDispatch
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Add Log::Dispatch support to CGI::Application

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI::Application)
BuildRequires:	perl(Log::Dispatch)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
CGI::Application::Plugin::LogDispatch adds logging support to your the
CGI::Application manpage modules by providing a the Log::Dispatch manpage
dispatcher object that is accessible from anywhere in the application.

If you have the CGI::Application::Plugin::DevPopup manpage installed, a
"Log Entries" report is added to the popup window, containing all of the
entries that were logged during the execution of the runmode. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4198 |21cr|perl-CGI-Application-Plugin-RateLimit-1.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-RateLimit
%define upstream_version 1.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Limits runmode call rate per user

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI::Application)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
This module provides protection against a user calling a runmode too
frequently. A typical use-case might be a contact form that sends email.
You'd like to allow your users to send you messages, but thousands of
messages from a single user would be a problem.

This module works by maintaining a database of hits to protected runmodes.
It then checks this database to determine if a new hit should be allowed
based on past activity by the user. The user's identity is, by default,
tied to login (via REMOTE_USER) or IP address (via REMOTE_IP) if login info
is not available. You may provide your own identity function via the
identity_callback() method.

To use this module you must create a table in your database with the
following schema (using MySQL-syntax, although other DBs may work as well
with minor alterations):

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/CGI

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4199 |21cr|perl-CGI-Application-Plugin-RequireSSL-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-RequireSSL
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Force SSL in specified pages or modules

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Attribute::Handlers)
BuildRequires:	perl(CGI::Application)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(HTML::Entities)
BuildArch:	noarch

%description
CGI::Application::Plugin::RequireSSL allows individual run modes or whole
modules to be protected by SSL. If a standard HTTP request is received, you can
specify whether an error is raised or if the request should be redirected to
the HTTPS equivalent URL.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/CGI

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4200 |21cr|perl-CGI-Application-Plugin-Session-1.50.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Application-Plugin-Session
%define upstream_version 1.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Add CGI::Session support to CGI::Application

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/CGI-Application-Plugin-Session-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI::Application)
BuildRequires:	perl(CGI::Session)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
Requires:	perl(CGI::Session)
BuildArch:	noarch

%description
CGI::Application::Plugin::Session seamlessly adds session support to your
the CGI::Application manpage modules by providing a the CGI::Session
manpage object that is accessible from anywhere in the application.

Lazy loading is used to prevent expensive file system or database calls
from being made if the session is not needed during this request. In other
words, the Session object is not created until it is actually needed. Also,
the Session object will act as a singleton by always returning the same
Session object for the duration of the request.

This module aims to be as simple and non obtrusive as possible. By not
requiring any changes to the inheritance tree of your modules, it can be
easily added to existing applications. Think of it as a plugin module that
adds a couple of new methods directly into the CGI::Application namespace
simply by loading the module. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4201 |21cr|perl-CGI-Auth-3.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Auth
%define upstream_version 3.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Simple session-based password authentication for CGI applications

License:	BSD-like
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/C/CC/CCWALLACE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
"CGI::Auth" provides password authentication for web-based applications. It
uses server-based session files which are referred to by a parameter in all
links and forms inside the scripts guarded by "CGI::Auth".

At the beginning of each script, a "CGI::Auth" object should be created and its
"check" method called. When this happens, "check" checks for a 'session_file'
CGI parameter. If that parameter exists and has a matching session file in the
session directory, "check" returns, and the rest of the script can execute.

If the session file parameter or the file itself doesn't exist, "check"
presents the user with a login form and exits the script. The login form will
then be submitted to the same script (specified in "-formaction"). When "check"
is called this time, it verifies the user's login information in the userfile,
creates a session file and provides the session file parameter to the rest of
the script.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

#%%check
#make test

%install
%makeinstall_std

%files
%doc Changes README extra
%{perl_vendorlib}/CGI/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4202 |21cr|perl-CGI-Compile-0.250.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Compile
%define upstream_version 0.25

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Compile .cgi scripts to a code reference like ModPerl::Registry
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(File::pushd)
BuildRequires: perl(Module::Build::Tiny) >= 0.36.0
BuildRequires: perl(CGI)
BuildRequires: perl(CGI::Emulate::PSGI)
BuildRequires: perl(TAP::Harness::Env)
# for test
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Sub::Name)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(Switch)
BuildRequires: perl(Sub::Identify)

BuildArch:  noarch

%description
CGI::Compile is an utility to compile CGI scripts into a code reference
that can run many times on its own namespace, as long as the script is
ready to run on a persistent environment.

*NOTE:* for best results, load the CGI::Compile manpage before any modules
used by your CGIs.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4203 |21cr|perl-CGI-Echo-1.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Echo
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:    7

Summary:	CGI-Echo module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module accepts form data, cleans it, and echos it.
It is designed for a HTML/CGI student enviroment. It lets, indeed encourages,
students to design forms and gives their long-suffering instructors a simple
way to provide a CGI script which accepts the form data, and just echos it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc CHANGES README META.yml
%{perl_vendorlib}/CGI/Echo.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4204 |21cr|perl-CGI-Emulate-PSGI-0.230.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Emulate-PSGI
%define upstream_version 0.23

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    PSGI adapter for CGI
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(Test::More) >= 0.940.0
BuildRequires: perl(Test::Requires)
BuildRequires: perl(CGI)


BuildArch:  noarch


%description
  use CGI::Parse::PSGI qw(parse_cgi_output);

  my $output = YourApp->run;
  my $psgi_res = parse_cgi_output(\$output);

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4205 |21cr|perl-CGI-Fast-2.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Fast
%define upstream_version 2.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Epoch:      2

Summary:    CGI Interface for Fast CGI
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CGI)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(FCGI)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(Test::CPAN::Changes) >= 0.300.0
BuildRequires: perl-devel

BuildArch: noarch

%description
CGI::Fast is a subclass of the CGI object created by CGI.pm. It is
specialized to work with the FCGI module, which greatly speeds up CGI
scripts by turning them into persistently running server processes. Scripts
that perform time-consuming initialization processes, such as loading large
modules or opening persistent database connections, will see large
performance improvements.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4206 |21cr|perl-CGI-FastTemplate-1.90.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CGI-FastTemplate
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl extension for managing templates, and performing variable interpolation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JM/JMOORE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
What is a template?
A template is a text file with variables in it. When a template is parsed, the
variables are interpolated to text. (The text can be a few bytes or a few
hundred kilobytes.) Here is a simple template with one variable ('$NAME'):
 Hello $NAME.  How are you?
 
When are templates useful?
Templates are very useful for CGI programming, because adding HTML to your perl
code clutters your code and forces you to do any HTML modifications. By putting
all of your HTML in separate template files, you can let a graphic or interface
designer change the look of your application without having to bug you, or let
them muck around in your perl code.

There are other templating modules on CPAN, what makes FastTemplate different?
CGI::FastTemplate has the following attributes:
- Speed
- Efficiency
- Flexibility

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc README templates
%{perl_vendorlib}/CGI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4207 |21cr|perl-CGI-FormBuilder-3.90.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-FormBuilder
%define upstream_version 3.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Epoch:		1

Summary:	Easily generate and process stateful forms

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%upstream_name/
Source0:	http://www.cpan.org/modules/by-module/CGI/CGI-FormBuilder-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(HTML::Template)
BuildRequires:	perl(Template)

BuildArch:	noarch

%description
FormBuilder is a fully-functional form engine with numerous features.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# disabled because of problem with HTML::Entities (http://rt.cpan.org//Ticket/Display.html?id=16193)
#%{__make} test

%install
%makeinstall_std

%files
%doc Changes README INSTALL
%{perl_vendorlib}/CGI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4208 |21cr|perl-CGI-FormMagick-0.910.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-FormMagick
%define upstream_version 0.91

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Ness::ted\\)
%else
%define _provides_exceptions perl(Ness::ted)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	CGI-FormMagick module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
# http://sourceforge.net/projects/formmagick/
Url:		http://search.cpan.org/dist/%{upstream_name}
# http://gd.tuwien.ac.at/platform/linux/e-smith/devel/SRPMS/perl-CGI-FormMagick-0.91-26.src.rpm
Source0:	perl-%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		perl-CGI-FormMagick-0.91-02.mitel_patch
Patch1:		perl-CGI-FormMagick-0.91-03.mitel_patch
Patch2:		perl-CGI-FormMagick-0.91-04.mitel_patch
Patch3:		perl-CGI-FormMagick-0.91-05.mitel_patch
Patch4:		perl-CGI-FormMagick-0.91-06.mitel_patch
Patch5:		perl-CGI-FormMagick-0.91-07.mitel_patch
Patch6:		perl-CGI-FormMagick-0.91-08.mitel_patch
Patch7:		perl-CGI-FormMagick-0.91-09.mitel_patch
Patch8:		perl-CGI-FormMagick-0.91-10.mitel_patch
Patch9:		perl-CGI-FormMagick-0.91-11.mitel_patch
Patch10:	perl-CGI-FormMagick-0.91-12.mitel_patch
Patch11:	perl-CGI-FormMagick-0.91-13.mitel_patch
Patch12:	perl-CGI-FormMagick-0.91-14.mitel_patch
Patch13:	perl-CGI-FormMagick-0.91-15.mitel_patch
Patch14:	perl-CGI-FormMagick-0.91-16.mitel_patch
Patch15:	perl-CGI-FormMagick-0.91-17.mitel_patch
Patch16:	perl-CGI-FormMagick-0.91-18.mitel_patch
Patch17:	perl-CGI-FormMagick-0.91-22.mitel_patch
Patch18:	perl-CGI-FormMagick-0.91-23.mitel_patch
Patch19:	perl-CGI-FormMagick-0.91-24.mitel_patch
Patch20:	perl-CGI-FormMagick-0.91-25.mitel_patch
Patch100:	perl-CGI-FormMagick-0.91-export_names.diff
Patch101:	perl-CGI-FormMagick-0.91-version.diff

BuildRequires:	perl-devel
BuildRequires:	perl(CGI::Persistent)
BuildRequires:	perl(Text::Iconv)
BuildRequires:	perl(Test::Inline)
BuildRequires:	perl-Time-modules
BuildRequires:	perl-Object-Persistence
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(Text::Template)
BuildRequires:	perl(Class::ParamParser)
BuildRequires:	perl(Mail::RFC822::Address)
BuildArch:	noarch

%description
FormMagick is a toolkit for easily building fairly complex form-based
web applications.  It allows the developer to specify the structure of a
multi-page "wizard" style form using XML, then display that form using
only a few lines of Perl.

%prep
%setup -q -n perl-%{upstream_name}-%{upstream_version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1

%patch100 -p1
%patch101 -p0

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
# it's not that make test fails some test: it just doesn't work
#make test

%install
%makeinstall_std

%files
%doc Changes README doc COPYING INSTALL examples
%{perl_vendorlib}/CGI/FormMagick
%{perl_vendorlib}/CGI/FormMagick.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4209 |21cr|perl-CGI-GuruMeditation-1.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-GuruMeditation
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Guru Meditation for CGIs

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RS/RSE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a small module accompanying the CGI module, providing the display of an
error screen (somewhat resembling the classical red-on-black blinking Guru
Meditation from the good-old AmigaOS before version 2.04) in case of abnormal
termination of a CGI.

The module simply installs a $SIG{__DIE__} handler which sends a HTTP response
showing a HTML/CSS based screen which optionally includes the Perl run-time
error message, an excerpt from the CGI source code and the Perl run-time
environment variables. This provides both optically more pleasant and
functionally more elaborate error messages for CGIs.

This module supports both the regular CGI and the Apache/mod_perl CGI
environment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/CGI/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4210 |21cr|perl-CGI-Lite-3.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Lite
%define upstream_version 3.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	CGI-Lite module for perl 


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9


BuildArch:	noarch

%description
This module can be used to decode form and query information, including file
uploads, as well as cookies in a very simple manner; you need not concern
yourself with the actual details behind the decoding process.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README TODO META.json META.yml
%{perl_vendorlib}/CGI/Lite.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4211 |21cr|perl-CGI-Minimal-1.290.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 CGI-Minimal
%define upstream_version 1.29

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Extremely lightweight CGI processing package

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
CGI-Minimal is an extremely lightweight Perl module that provides CGI
processing abilities designed to provide form decoding and related services
with low overhead.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc Changes README
%{perl_vendorlib}/CGI
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4212 |21cr|perl-CGI-Panel-0.970.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Panel
%define upstream_version 0.97

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	CGI-Panel module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Apache::Session)
BuildRequires:	perl(CGI)
BuildArch:	noarch

%description
CGI::Panel allows applications to be built out of simple object-based
components. It'll handle the state of your data and objects so you can
write a web application just like a desktop app. You can forget about
the http requests and responses, whether we're getting or posting, and
all that stuff because that is all handled for you leaving to you
interact with a simple API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find . -type d -name CVS -exec rm -rf {} \; || :

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes demo LICENSE README TODO
%{perl_vendorlib}/CGI/Panel
%{perl_vendorlib}/CGI/Panel.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4213 |21cr|perl-CGI-ParamComposite-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-ParamComposite
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	CGI-ParamComposite module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildArch:	noarch

%description
Convert .-delimited CGI parameters to Perl classes/objects.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/CGI/ParamComposite.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4214 |21cr|perl-CGI-Persistent-1.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Persistent
%define upstream_version 1.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	CGI-Persistent module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl-Object-Persistence
BuildArch:	noarch

%description
This module provides transparent state persistence for CGI applications.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 0755 html/roach.cgi

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc html/*
%{perl_vendorlib}/CGI/Persistent.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4215 |21cr|perl-CGI-PSGI-0.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name   CGI-PSGI
%define upstream_version 0.15

Name:           perl-CGI-PSGI
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Enable your CGI.pm aware applications to adapt PSGI protocol
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/CGI-PSGI
Source0:        https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/CGI-PSGI-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(Module::Install::AuthorTests)
BuildRequires:  perl(Module::Install::Metadata)
BuildRequires:  perl(Module::Install::Repository)
BuildRequires:  perl(Module::Install::WriteAll)
BuildRequires:  sed
# Run-time
BuildRequires:  perl(base)
BuildRequires:  perl(CGI)
BuildRequires:  perl(strict)
# Tests
BuildRequires:  perl(CGI::Cookie)
BuildRequires:  perl(CGI::Util)
BuildRequires:  perl(Config)
BuildRequires:  perl(HTML::Entities)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(warnings)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%{?perl_default_filter}

%description
This module is for web application framework developers who currently uses
CGI to handle query parameters. You can switch to use CGI::PSGI instead of
CGI, to make your framework compatible to PSGI with a slight modification
of your framework adapter. The framework should already be collecting the
body content to print at one place, and not printing any content directly
to STDOUT.

%prep
%setup -q -n CGI-PSGI-%{upstream_version}
# Remove bundled libraries
rm -r inc
sed -i -e '/^inc\// d' MANIFEST

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4216 |21cr|perl-CGI-Safe-1.250.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Safe
%define upstream_version 1.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Safe method of using CGI.pm

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.bz2
Source1:        %{name}.rpmlintrc

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildArch:	noarch

%description
The CGI-Safe module makes running the CGI environment safer
by eliminating dangerous %ENV variables and presetting
certain CGI.pm globals.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/CGI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4217 |21cr|perl-CGI-Session-4.480.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Session
%define upstream_version 4.48

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(DBD::Pg\\)
%else
%define _requires_exceptions perl(DBD::Pg)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 4.48
Release:	5

Summary:	Persistent session data in CGI applications

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CGI/CGI-Session-4.48.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(DBI)
BuildRequires:	perl(DB_File)
BuildRequires:	perl(FreezeThaw)
BuildRequires:	perl(CGI::Simple)
BuildArch:	noarch

%description 
CGI-Session is a Perl5 library that provides an easy, reliable and
modular session management system across HTTP requests. Persistency is a
key feature for such applications as shopping carts,
login/authentication routines, and application that need to carry data
accross HTTP requests. CGI::Session does that and many more 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
rm -f  t/g4_mysql.t # no database available for testing
make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc Changes README INSTALL
%{perl_vendorlib}/CGI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4218 |21cr|perl-CGI-Session-ID-uuid-0.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Session-ID-uuid
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	UUID based CGI Session Identifiers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RS/RSE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
CGI::Session::ID::uuid is a CGI::Session 4.00 driver to generate identifiers
based on DCE 1.1 and ISO/IEC 11578:1996 compliant Universally Unique
Identifiers (UUID). This module requires a reasonable UUID generator. For this
it either requires the preferred OSSP::uuid module or alternatively the
Data::UUID, APR::UUID, DCE::UUID or UUID modules to be installed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README
%dir %{perl_vendorlib}/CGI/Session/ID
%{perl_vendorlib}/CGI/Session/ID/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4219 |21cr|perl-CGI-Simple-1.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Simple
%define upstream_version 1.280

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:   Simple totally OO CGI interface that is CGI.pm compliant

License:   GPL+ or Artistic
Group:     Development/Perl
Url:       http://search.cpan.org/dist/%{upstream_name}
Source0:   http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(IO::Scalar) >= 2.090.0
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.98.0
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::NoWarnings)
BuildRequires:  perl-devel

BuildArch: noarch


%description
CGI::Simple provides a relatively lightweight drop in replacement for CGI.pm.
It shares an identical OO interface to CGI.pm for parameter parsing, file
upload, cookie handling and header generation. This module is entirely object
oriented, however a complete functional interface is available by using the
CGI::Simple::Standard module.

Essentially everything in CGI.pm that relates to the CGI (not HTML) side of
things is available. There are even a few new methods and additions to old
ones! If you are interested in what has gone on under the hood see the
Compatibility with CGI.pm section at the end.

In practical testing this module loads and runs about twice as fast as CGI.pm
depending on the precise task.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x Changes
iconv -f iso8859-1 -t utf-8 Changes > Changes.conv && mv -f Changes.conv Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.json META.yml Changes
%{perl_vendorlib}/CGI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4220 |21cr|perl-CGI-SSI-0.920.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-SSI
%define upstream_version 0.92

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Use SSI from CGI scripts

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Date::Format)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(HTML::SimpleParse)
BuildRequires: perl(HTTP::Cookies)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(URI)
BuildRequires: perl-devel
BuildArch: noarch

%description
CGI::SSI is meant to be used as an easy way to filter shtml through CGI
scripts in a loose imitation of Apache's mod_include. If you're using
Apache, you may want to use either mod_include or the Apache::SSI module
instead of CGI::SSI. Limitations in a CGI script's knowledge of how the
server behaves make some SSI directives impossible to imitate from a CGI
script.

Most of the time, you'll simply want to filter shtml through STDOUT or some
other open filehandle. 'autotie' is available for STDOUT, but in general,
you'll want to tie other filehandles yourself:

    $ssi = tie(*FH, 'CGI::SSI', filehandle => 'FH');
    print FH $shtml;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4221 |21cr|perl-CGI-Struct-1.210.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Struct
%define upstream_version 1.21

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Build structures from CGI data


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Storable)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch: noarch

%description
CGI::Struct lets you transform CGI data keys that _look like_ perl data
structures into _actual_ perl data structures.

CGI::Struct makes no attempt to actually _read in_ the variables from the
request. You should be using the CGI manpage or some equivalent for that.
CGI::Struct expects to be handed a reference to a hash containing all the
keys/values you care about. The common way is to use something like
'CGI->Vars' or (as the author does) 'Plack::Request->parameters->mixed'.

Whatever you use should give you a hash mapping the request variable names
(keys) to the values sent in by the users (values). Any of the major CGIish
modules will have such a method; consult the documentation for yours if you
don't know it offhand.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes META.json LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4222 |21cr|perl-CGI-Untaint-1.260.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CGI-Untaint
%define upstream_version 1.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	CGI-Untaint Perl module: process CGI input parameters 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(UNIVERSAL::exports)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(Math::BigInt)
BuildArch:	noarch

%description
This module provides a simple, convenient, abstracted and extensible
manner for validating and untainting the input from web forms.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/CGI/Untaint.pm
%{perl_vendorlib}/CGI/Untaint
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4223 |21cr|perl-CGI-XML-0.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 CGI-XML
%define upstream_version 0.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	CGI-XML perl module

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/CGI/
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)

BuildArch:  noarch

%rename	perl-XML-CGI

%description
CGI-XML converts CGI.pm variables to XML and vice versa.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
%make

%install
install -d %{buildroot}%{perl_archlib}
%makeinstall_std
install -d %{buildroot}%{_datadir}

%files 
%doc README MANIFEST Changes  examples
%{perl_vendorlib}/CGI/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4224 |21cr|perl-CGI-XMLApplication-1.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CGI-XMLApplication
%define upstream_version 1.1.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	%{upstream_name} module for perl

License:	MPL
Group:		Development/Perl
Url:		http://search.cpan.org/~phish/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/P/PH/PHISH/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(CGI)
BuildRequires:	perl(XML::LibXML)
BuildRequires:	perl(XML::LibXSLT)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} module for perl
CGI::XMLApplication is a CGI application class, that intends to enable
perl artists to implement CGIs that make use of XML/XSLT
functionality, without taking too much care about specialized
errorchecking or even care too much about XML itself. It provides the
power of the XML::LibXML/ XML::LibXSLT module package for
content deliverment.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

chmod 644 Changes README
iconv -f iso8859-1 -t utf-8 Changes > Changes.conv && \
  mv -f Changes.conv Changes
  
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README examples/*
%{_mandir}/*/*
%{perl_vendorlib}/CGI/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4225 |21cr|perl-Chart-2.4.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Chart
%define upstream_version 2.4.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A series of charting modules

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/C/CH/CHARTGRP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(GD)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
Series of charting modules.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 0644 README TODO

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README TODO META.yml
%{perl_vendorlib}/Chart*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4226 |21cr|perl-Chart-Graph-3.200.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Chart-Graph
%define upstream_version 3.2

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl extension for a front-end to gnuplot, XRT, and Xmgrace

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Chart/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

Provides:	perl(Base_Option)
Provides:	perl(Chart::Graph::Xmgrace::Axis_Options)
Provides:	perl(Chart::Graph::Xmgrace::Dataset_Options)
Provides:	perl(Chart::Graph::Xmgrace::Graph_Options)

%description 
Graph.pm is a wrapper module that allows easy generation of graphs within perl.
Currently Graph.pm supports three graphing packages, gnuplot, XRT, and Xmgrace.
These software packages must be obtained separately from this Perl module.
Information on each graphing package and it's availability is provided in the
documentation on that module. Gnuplot and Xmgrace are freely available software
pages for UNIX systems. XRT is a commercial product.

Currently the xrt3d and xrt2d package is not being supported, although it
works. It is still in the development stage. Feel free to give it a try though.

The parsers also write the test data into the 'Test Result Publication
Interface' (TRPI) XML schema, developed by SpikeSource.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor <</dev/null
%make

%check
%make test

%install
%makeinstall_std

%files
%doc COPYING ChangeLog README
%{perl_vendorlib}/Chart
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4227 |21cr|perl-Chatbot-Eliza-1.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Chatbot-Eliza
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Implementation of the Eliza algorithm

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Chatbot-Eliza
Source0:	https://cpan.metacpan.org/authors/id/G/GR/GRANTG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildArch:	noarch

%description
This module implements the classic Eliza algorithm. The original Eliza
program was written by Joseph Weizenbaum and described in the
Communications of the ACM in 1966. Eliza is a mock Rogerian
psychotherapist. It prompts for user input, and uses a simple
transformation algorithm to change user input into a follow-up question.
The program is designed to give the appearance of understanding.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4228 |21cr|perl-Check-ISA-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Check-ISA
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:    7

Summary:	DWIM, correct checking of an object's class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/N/NU/NUFFIN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::use::ok)

BuildArch:	noarch

%description
This module provides several functions to assist in testing whether a value
is an object, and if so asking about its class.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4229 |21cr|perl-CHI-0.610.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CHI
%define upstream_version 0.61

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Nothing is cached
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/A/AS/ASB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Carp::Assert)
BuildRequires:  perl(Compress::Zlib)
BuildRequires:  perl(Data::UUID)
BuildRequires:  perl(Date::Parse)
BuildRequires:  perl(Digest::JHash)
BuildRequires:  perl(Digest::MD5)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Hash::MoreUtils)
BuildRequires:  perl(JSON::MaybeXS)
BuildRequires:  perl(List::MoreUtils)
BuildRequires:  perl(Log::Any)
BuildRequires:  perl(Log::Any::Adapter::Dispatch)
BuildRequires:  perl(Module::Load::Conditional)
BuildRequires:  perl(Moo)
BuildRequires:  perl(MooX::Types::MooseLike)
BuildRequires:  perl(MooX::Types::MooseLike::Base)
BuildRequires:  perl(MooX::Types::MooseLike::Numeric)
BuildRequires:  perl(Storable)
BuildRequires:  perl(String::RewritePrefix)
BuildRequires:  perl(Task::Weaken)
BuildRequires:  perl(Test::Builder)
BuildRequires:  perl(Test::Class)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::Log::Dispatch)
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Test::Warn)
BuildRequires:  perl(Time::Duration)
BuildRequires:  perl(Time::Duration::Parse)
BuildRequires:  perl(Try::Tiny)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Module::Mask)
BuildRequires:  perl(Cache::FileCache)
BuildRequires:  perl(Cache::FastMmap)
BuildRequires:  perl(Class::Method::Modifiers)
BuildRequires:  perl(Cpanel::JSON::XS)

BuildArch:	noarch

%description
CHI provides a unified caching API, designed to assist a developer in
persisting data for a specified period of time.

The CHI interface is implemented by driver classes that support fetching,
storing and clearing of data. Driver classes exist or will exist for the
gamut of storage backends available to Perl, such as memory, plain files,
memory mapped files, memcached, and DBI.

CHI is intended as an evolution of DeWitt Clinton's Cache::Cache package,
adhering to the basic Cache API but adding new features and addressing
limitations in the Cache::Cache implementation.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}
find lib \( -type f -a -executable \) -exec chmod -x {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test 

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4230 |21cr|perl-CLASS-1.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CLASS
%define upstream_version 1.1.8

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Alias for __PACKAGE__

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/J/JD/JDEGUEST/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
CLASS and $CLASS are both synonyms for __PACKAGE__. Easier to type.

$CLASS has the additional benefit of working in strings.

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4231 |21cr|perl-Class-Accessor-Assert-1.410.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Accessor-Assert
%define upstream_version 1.41

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Accessors which type-check

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Data::Inheritable)
BuildArch:	noarch

%description
This is a version of Class::Accessor which offers rudimentary
type-checking and existence-checking of arguments to constructors and
set accessors.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 README Changes

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4232 |21cr|perl-Class-Accessor-Chained-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Class-Accessor-Chained
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Class-Accessor-Chained module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RC/RCLAMP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
# README says it needs this, and the automatic perl requirement isn't
# being added, so here it is
Requires:	perl(Class::Accessor)
BuildArch:	noarch

%description
A chained accessor is one that always returns the object when called
with parameters (to set), and the value of the field when called with
no arguments.

This module subclasses Class::Accessor in order to provide the same
mk_accessors interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class/Accessor/Chained.pm
%{perl_vendorlib}/Class/Accessor/Chained
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4233 |21cr|perl-Class-Accessor-Classy-0.9.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Accessor-Classy
%define upstream_version v0.9.1

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Accessors with minimal inheritance

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(version)
BuildRequires: perl(Module::Build)
BuildArch: noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4234 |21cr|perl-Class-Accessor-Complex-1.100.880-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Accessor-Complex
%define upstream_version 1.100880

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Arrays, hashes, booleans, integers, sets and more

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Accessor::Installer)
BuildRequires:	perl(Data::Miscellany)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::NoWarnings)

BuildArch:	noarch

%description
This module generates accessors for your class in the same spirit as the
Class::Accessor manpage does. While the latter deals with accessors for
scalar values, this module provides accessor makers for arrays, hashes,
integers, booleans, sets and more.

As seen in the synopsis, you can chain calls to the accessor makers. Also,
because this module inherits from the Class::Accessor manpage, you can put
a call to one of its accessor makers at the end of the chain.

The accessor generators also generate documentation ready to be used with
the Pod::Generated manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4235 |21cr|perl-Class-Accessor-Constructor-1.111.590-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Accessor-Constructor
%define upstream_version 1.111590

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Support for an automated dirty flag in

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Accessor::Complex)
BuildRequires:	perl(Class::Accessor::Installer)
BuildRequires:	perl(Data::Inherited)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module generates accessors for your class in the same spirit as the
Class::Accessor manpage does. While the latter deals with accessors for
scalar values, this module provides accessor makers for rather flexible
constructors.

The accessor generators also generate documentation ready to be used with
the Pod::Generated manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4236 |21cr|perl-Class-Accessor-Installer-1.100.880-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Accessor-Installer
%define upstream_version 1.100880

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Install an accessor subroutine

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(URI::Escape)
#BuildRequires:	perl(Vim::Tag)

BuildArch:	noarch

%description
This mixin class provides a method that will install a coderef. There are
other modules that do this, but this one is a bit more specific to the
needs of the Class::Accessor::Complex manpage and friends.

It is intended as a mixin, that is, your accessor-generating class should
inherit from this class.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4237 |21cr|perl-Class-Accessor-Lite-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Accessor-Lite
%define upstream_version 0.08

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A minimalistic variant of Class::Accessor
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(inc::Module::Install)
BuildArch: noarch

%description
The module is a variant of 'Class::Accessor'. It is fast and requires less
typing, has no dependencies to other modules, and does not mess up the
@ISA.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4238 |21cr|perl-Class-Accessor-Lvalue-0.110.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Accessor-Lvalue
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Class-Accessor-Lvalue module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Want)
BuildRequires:	perl(Class::Accessor)
BuildArch:	noarch
# README says this is a dependency and automatic rpm dependencies
# are not catching this
Requires:	perl(Class::Accessor)

%description
This module subclasses Class::Accessor in order to provide lvalue
accessor makers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class/Accessor/Lvalue.pm
%{perl_vendorlib}/Class/Accessor/Lvalue
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4239 |21cr|perl-Class-Adapter-1.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Adapter
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Generate Class::Adapter classes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The 'Class::Adapter' class is intended as an abstract base class for
creating any sort of class or object that follows the _Adapter_ pattern.

What is an Adapter?
    The term _Adapter_ refers to a _"Design Pattern"_ of the same name,
    from the famous _"Gang of Four"_ book _"Design Patterns"_. Although
    their original implementation was designed for Java and similar
    single-inheritance strictly-typed langauge, the situation for which it
    applies is still valid.

    An _Adapter_ in this Perl sense of the term is when a class is created
    to achieve by composition (objects containing other object) something
    that can't be achieved by inheritance (sub-classing).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4240 |21cr|perl-Class-ArrayObjects-1.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-ArrayObjects
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Class-ArrayObjects module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module makes it easy to build classes using array based objects.
It's main goal is to allow one to create less memory hungry programs,
notably in memory-sensitive contexts such as mod_perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find . -type f -exec chmod 0644 {} \;

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class/ArrayObjects.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4241 |21cr|perl-Class-AutoClass-1.560.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-AutoClass
%define upstream_version 1.56
Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Yet another OO helper

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/Class-AutoClass-%{upstream_version}.tar.gz
BuildRequires:  perl(IO::Stringy)
BuildRequires:  perl(JSON::PP)
BuildRequires:	perl(Module::Build)


BuildArch:      noarch

%description
This perl module brings the following advantages:
- get and set methods for simple attributes can be automatically
  generated
- argument lists are handled as described below
- the protocol for object creation and initialization is close to
  the 'textbook' approach generally suggested for object-oriented Perl
  (see below)
- object initialization is handled correctly in the presence of multiple
  inheritance

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
# %make test

%clean 

%files 
%doc Changes
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4242 |21cr|perl-Class-Base-0.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  Class-Base
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Useful base class for deriving other modules

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Class/Class-Base-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements a simple base class from which other modules
can be derived, thereby inheriting a number of useful methods such as
new(), init(), params(), clone(), error() and debug().

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Class

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4243 |21cr|perl-Class-C3-Adopt-NEXT-0.140.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-C3-Adopt-NEXT
%define upstream_version 0.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Make NEXT suck less

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(NEXT)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(List::Util)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Pod::Coverage)
BuildRequires: perl-devel

BuildArch: noarch

%description
the NEXT manpage was a good solution a few years ago, but isn't any more.
It's slow, and the order in which it re-dispatches methods appears random
at times. It also encourages bad programming practices, as you end up with
code to re-dispatch methods when all you really wanted to do was run some
code before or after a method fired.

However, if you have a large application, then weaning yourself off 'NEXT'
isn't easy.

This module is intended as a drop-in replacement for NEXT, supporting the
same interface, but using the Class::C3 manpage to do the hard work. You
can then write new code without 'NEXT', and migrate individual source files
to use 'Class::C3' or method modifiers as appropriate, at whatever pace
you're comfortable with.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4244 |21cr|perl-Class-C3-Componentised-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-C3-Componentised
%define upstream_version 1.001002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1

Summary:	Load mix-ins or components to your C3-based class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/Class-C3-Componentised-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::C3)
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Test::Exception)

BuildArch:	noarch

%description
This will inject base classes to your module using the Class::C3 method
resolution order.

Please note: these are not plugins that can take precedence over methods
declared in MyModule. If you want something like that, consider
MooseX::Object::Pluggable.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4245 |21cr|perl-Class-Container-0.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-Container
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Glues object frameworks together transparently

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test)

%description
This class facilitates building frameworks of several classes that
inter-operate. It was first designed and built for "HTML::Mason", in
which the Compiler, Lexer, Interpreter, Resolver, Component, Buffer, and
several other objects must create each other transparently, passing the
appropriate parameters to the right class, possibly substituting other
subclasses for any of these objects.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc Changes README
%{perl_vendorlib}/Class/Container.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4246 |21cr|perl-Class-Contract-1.140.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Contract
%define upstream_version 1.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Class-Contract module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Class::Contract module implements strong encapsulation, static
inheritance, and design-by-contract condition checking for
object-oriented Perl. The module provides a declarative syntax for
attribute, method, constructor, and destructor definitions at both
the object and class level. Pre-conditions, post-conditions, and
class invariants are also fully supported.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e "s,/usr/local/bin/perl,%{_bindir}/perl," demo.pl

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class/Contract
%{perl_vendorlib}/Class/Contract.pm
%{perl_vendorlib}/Class/demo.pl
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4247 |21cr|perl-Class-Data-Accessor-0.40.40-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Class-Data-Accessor
%define upstream_version	0.04004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Inheritable, overridable class and instance data accessor creation

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Class::Data::Accessor is the marriage of Class::Accessor and
Class::Data::Inheritable into a single module. It is used for creating
accessors to class data that overridable in subclasses as well as in
class instances.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/Class

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4248 |21cr|perl-Class-Date-1.1.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-Date
%define upstream_version 1.1.17

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	1

Summary:	Class for easy date and time manipulation


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{version}.tar.gz

BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(UNIVERSAL::exports)
BuildRequires:	perl-devel


%description
This module is intended to provide a general-purpose date and datetime
type for perl. You have a Class::Date class for absolute date and
datetime, and have a Class::Date::Rel class for relative dates.

You can use "+", "-", "<" and ">" operators as with native perl data
types.

%global debug_package %{nil}

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README.mkdn
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4249 |21cr|perl-Class-DBI-3.0.17-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-DBI
%define upstream_version 3.0.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Simple Database Abstraction

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Class::Trigger)
BuildRequires:	perl(Clone)
BuildRequires:	perl(DBIx::ContextualFetch)
BuildRequires:	perl(Ima::DBI)
BuildRequires:	perl(UNIVERSAL::moniker)
BuildRequires:	perl(version)

BuildArch:	noarch
Requires:	perl(version)

%description
Class::DBI provides a convenient abstraction layer to a database.

It not only provides a simple database to object mapping layer, but can be used
to implement several higher order database functions (triggers, referential
integrity, cascading delete etc.), at the application level, rather than at the
database.

This is particularly useful when using a database which doesn't support these
(such as MySQL), or when you would like your code to be portable across
multiple databases which might implement these things in different ways.

In short, Class::DBI aims to make it simple to introduce 'best practice' when
dealing with data stored in a relational database.

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4250 |21cr|perl-Class-DBI-AutoLoader-0.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-DBI-AutoLoader
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Generates Class::DBI subclasses dynamically

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBI)
BuildArch:	noarch

%description
Class::DBI::AutoLoader scans the tables in a given database, and auto-generates
the Class::DBI classes. These are loaded into your package when you import
Class::DBI::AutoLoader, as though you had created the Data::FavoriteFilms class
and "use"d that directly.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4251 |21cr|perl-Class-DBI-FromForm-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-DBI-FromForm
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Update Class::DBI data using Data::FormValidator or HTML Widget

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Create and update Class::DBI objects from Data::FormValidator or HTML::Widget

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Class/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4252 |21cr|perl-Class-DBI-Loader-0.340.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-DBI-Loader
%define upstream_version 0.34

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Dynamic definition of Class::DBI sub classes

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DM/DMAKI/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Lingua::EN::Inflect)
BuildRequires:	perl(DBI)
BuildArch:	noarch

%description
Class::DBI::Loader automate the definition of Class::DBI sub-classes.
scan table schemas and setup columns, primary key.
class names are defined by table names and namespace option.
Class::DBI::Loader supports MySQL, Postgres and SQLite.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4253 |21cr|perl-Class-DBI-mysql-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-DBI-mysql
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Class::DBI extension for MySQL

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::DBI)

BuildArch:	noarch

%description
This is an extension to Class::DBI, containing several functions and
optimisations for the MySQL database. Instead of setting Class::DBI as your
base class, use this instead.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# requires a running mysql server

%install
%makeinstall_std

%files
%doc Changes README INSTALL
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4254 |21cr|perl-Class-DBI-Pg-0.90.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-DBI-Pg
%define upstream_version 0.09

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Class::DBI extension for Postgres

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Class::DBI)
BuildRequires:  perl(Test::More)
BuildArch:      noarch

%description
Class::DBI::Pg automate the setup of Class::DBI columns and primary key for
Postgres.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean 

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4255 |21cr|perl-Class-DBI-Plugin-0.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-DBI-Plugin
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Abstract base class for Class::DBI plugins

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Class::DBI::Plugin is an abstract base class for Class::DBI plugins.
Its purpose is to make writing plugins easier. Writers of plugins
should be able to concentrate on the functionality their module
provides, instead of having to deal with the symbol table hackery
involved when writing a plugin module. Only three things must be
remembered:

1 All methods which are to exported are given the "Plugged"
attribute. All other methods are not exported to the plugged-in
class.
2 Method calls which are to be sent to the plugged-in class are
put in the init() method. Examples of these are set_sql(),
add_trigger() and so on.
3 The class parameter for the init() method and the "Plugged"
methods is the plugged-in class, not the plugin class.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4256 |21cr|perl-Class-DBI-Plugin-AbstractCount-0.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-DBI-Plugin-AbstractCount
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Get COUNT(*) results with abstract SQL

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(SQL::Abstract)
BuildRequires:	perl(Class::DBI::Plugin)
BuildRequires:	perl(Class::DBI)
BuildRequires:	perl(Class::Accessor::Grouped)
BuildArch:	noarch

%description
This Class::DBI plugin combines the functionality from
Class::DBI::Plugin::CountSearch (counting objects without
having to use an array or an iterator), and
Class::DBI::AbstractSearch, which allows complex
where-clauses a la SQL::Abstract.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4257 |21cr|perl-Class-DBI-Plugin-Pager-0.566.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-DBI-Plugin-Pager
%define upstream_version 0.566

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Paged queries for CDBI

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Class/Class-DBI-Plugin-Pager-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Chained::Fast)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Class::DBI)
BuildRequires:	perl(Data::Page)
BuildRequires:	perl(SQL::Abstract)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
Adds a pager method to your class that can query using SQL::Abstract
where clauses, and limit the number of rows returned to a specific subset.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#%__make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Class/DBI/Plugin/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4258 |21cr|perl-Class-DBI-SQLite-0.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-DBI-SQLite
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Class::DBI extension for sqlite

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::DBI)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBIx::ContextualFetch)
BuildArch:	noarch

%description
Class::DBI::SQLite is an extension to Class::DBI for DBD::SQLite. It allows you
to populate an auto-incremented row id after insert.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL installdirs=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4259 |21cr|perl-Class-Declare-0.190.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Declare
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Class-Declare module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Storable) >= 2.300.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(version)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
Class::Declare allows class authors to specify public, private and
protected attributes and methods for their classes, giving them control
over how their modules may be accessed. The standard object oriented
programming concepts of *public*, *private* and *protected* have been
implemented for both class and instance (or object) attributes and
methods.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
 %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class/Declare.pm
%{perl_vendorlib}/Class/Declare
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4260 |21cr|perl-Class-Declare-Attributes-0.90.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Declare-Attributes
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Class-Declare-Attributes module for perl 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/I/IB/IBB/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Class::Declare) >= 0.190.0
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Class::Declare::Attributes extends Class::Declare by adding support for
Perl attributes for specifying class method types. This extension was
inspired by Damian Conway's Attribute::Handlers module, and Tatsuhiko
Miyagawa's Attribute::Protected module.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class/Declare/Attributes.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4261 |21cr|perl-Class-Discover-1.0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Discover
%define upstream_version 1.000003

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Detect MooseX::Declare's 'class' keyword in files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MM_Unix)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::Find::Rule::Perl)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)
BuildArch:	noarch

%description
This class is designed primarily for tools that whish to populate the
'provides' field of META.{yml,json} files so that the CPAN indexer will pay
attention to the existance of your classes, rather than blithely ignoring
them.

The version parsing is basically the same as what M::I's '->version_form'
does, so should hopefully work as well as it does.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4262 |21cr|perl-Class-ErrorHandler-0.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-ErrorHandler
%define upstream_version 0.04

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Base class for error handling
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test)
BuildArch:  noarch

%description
Class::ErrorHandler provides an error-handling mechanism that's generic enough
to be used as the base class for a variety of OO classes. Subclasses inherit
its two error-handling methods, error and errstr, to communicate error messages
back to the calling program.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml
%{perl_vendorlib}/Class/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4263 |21cr|perl-Class-Field-0.230.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Field
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Class Field Accessor Generator
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Filter::Util::Call)
BuildArch:	noarch

%description
Class::Field exports two subroutines, 'field' and 'const'. These functions
are used to declare fields and constants in your class.

Class::Field generates custom code for each accessor that is optimized for
speed.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4264 |21cr|perl-Class-Fields-0.204.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Fields
%define upstream_version 0.204

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Inspect the fields of a class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Carp::Assert)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(base)
BuildArch:	noarch

%description
* _Public member._

  Externally visible data or functionality. An attribute or method that is
  directly accessable from scopes outside the class. In Perl, most members
  are, by their standard semantics, public. By convention, attributes of
  Perl classes are regarded as private, as are methods whose names begin
  with an underscore.

  From *"Object Oriented Perl"* by Damian Conway

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4265 |21cr|perl-Class-Generate-1.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Generate
%define upstream_version 1.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Generate Perl class hierarchies

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/Class-Generate-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Module::Build) >= 0.420.300
BuildRequires:  perl(Text::Soundex)
BuildRequires:  perl(Text::Tabs)
BuildRequires:  perl(Carp) >= 1.360.0
BuildRequires:  perl(Symbol)
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(Test::CPAN::Changes) >= 0.300.0
BuildRequires:  perl(Test::TrailingSpace) >= 0.20.500

BuildArch:      noarch

%description
The Class::Generate package exports functions that take as arguments a class
specification and create from these specifications a Perl 5 class. The
specification language allows many object-oriented constructs: typed members,
inheritance, private members, required members, default values, object methods,
class methods, class variables, and more.

CPAN contains similar packages. Why another? Because object-oriented
programming, especially in a dynamic language like Perl, is a complicated
endeavor. I wanted a package that would work very hard to catch the errors you
(well, I anyway) commonly make. I wanted a package that could help me enforce
the contract of object-oriented programming. I also wanted it to get out of my
way when I asked.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes README

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files 
%doc Changes README META.json META.yml
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4266 |21cr|perl-Class-Gomor-1.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Gomor
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Class::Gomor - another class and object builder

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://search.cpan.org/CPAN/authors/id/G/GO/GOMOR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Kwalitee)
BuildRequires:	perl(Test)

BuildArch:	noarch
%rename	perl-Class-Gomor-Hash

%description
This module is yet another class builder. This one adds parameter checking in
new constructor, that is to check for attributes existence, and definedness.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE LICENSE.Artistic README META.json META.yml
%dir %{perl_vendorlib}/Class/Gomor
%{perl_vendorlib}/Class/Gomor/*.pm
%{perl_vendorlib}/Class/Gomor.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4267 |21cr|perl-Class-InsideOut-1.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Class-InsideOut
%define upstream_version 1.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
License:    GPL or Artistic
Group:      Development/Perl
Summary:    A safe, simple inside-out object construction kit
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Class::ISA)
BuildRequires: perl(Config)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::File)
BuildRequires: perl(List::Util)
BuildRequires: perl(Scalar::Util) >= 1.90.0
BuildRequires: perl(Storable)
BuildRequires: perl(Test::More) >= 0.450.0
BuildRequires: perl(XSLoader)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(threads)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This is a simple, safe and streamlined toolkit for building inside-out objects.
Unlike most other inside-out object building modules already on CPAN, this
module aims for minimalism and robustness:

* Does not require derived classes to subclass it
* Uses no source filters, attributes or CHECK blocks
* Supports any underlying object type including black-box inheritance
* Does not leak memory on object destruction
* Overloading-safe
* Thread-safe for Perl 5.8.5 or better
* mod_perl compatible
* Makes no assumption about inheritance or initializer needs

It provides the minimal support necessary for creating safe inside-out objects
and generating flexible accessors.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL -n INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README examples
%{_mandir}/man3/*
%{perl_vendorlib}/Class

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4268 |21cr|perl-Class-Iterator-0.300.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Iterator
%define upstream_version 0.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A perl iterator class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Class::Iterator is a generic iterator object class. It use a closure an
wrap into an object interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4269 |21cr|perl-Class-Loader-2.30.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Loader
%define upstream_version 2.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	13

Summary:	Load modules and create objects on demand

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Certain applications like to defer the decision to use a
particular module till runtime. This is possible in perl,
and is a useful trick in situations where the type of data
is not known at compile time and the application doesn't
wish to pre-compile modules to handle all types of data it
can work with. Loading modules at runtime can also provide
flexible interfaces for perl modules. Modules can let the
programmer decide what modules will be used by it instead
of hard-coding their names.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" echo | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4270 |21cr|perl-Class-MakeMethods-1.10.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-MakeMethods
%define upstream_version 1.01

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Class::MakeMethods::Template::Array\\)
%else
%define _requires_exceptions perl(Class::MakeMethods::Template::Array)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Generate common types of methods 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz
# (mga) patches
Patch0:         Class-MakeMethods-1.009-Fix-building-on-Perl-without-dot-in-INC.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
By passing arguments to "use Class::MakeMethods ..." statements, you can
select from a library of hundreds of common types of methods, which are
dynamically generated and installed as subroutines in your module,
simplifying the code for your class.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1

%build
# use all defaults

CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc README CHANGES
%{perl_vendorlib}/Class/MakeMethods*
%{perl_vendorlib}/Class/benchmark.pl
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4271 |21cr|perl-Class-Member-1.600.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Member
%define upstream_version 1.6

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Class::Member - A set of modules to make the module developement easier

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/O/OP/OPI/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Class::Member - A set of modules to make the module developement
easier.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%dir %{perl_vendorlib}/Class/Member
%{perl_vendorlib}/Class/Member.pm
%{perl_vendorlib}/Class/Member/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4272 |21cr|perl-Class-MethodMaker-2.240.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Class-MethodMaker
%define upstream_version 2.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Create generic methods for OO Perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)

%description
This module solves the problem of having to write a bazillion
get/set methods that are all the same. The argument to 'use'
is a hash whose keys are the names of types of generic
methods generated by MethodMaker and whose values tell method
maker what methods to make. (More precisely, the keys are the
names of MethodMaker methods (methods that write methods) and
the values are the arguments to those methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm -f t/0-signature.t # debug files make it fails

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README TODO Changes
%{perl_vendorarch}/Class
%{perl_vendorarch}/auto/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4273 |21cr|perl-Class-Mix-0.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Mix
%define upstream_version 0.006

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Dynamic class mixing

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/Class-Mix-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Params::Classify)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
The 'mix_class' function provided by this module dynamically generates
`anonymous' classes with specified inheritance.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot} 

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4274 |21cr|perl-Class-Multimethods-1.701.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Multimethods
%define upstream_version 1.701

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A multiple dispatch mechanism for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Class:Multimethod module exports a subroutine (&multimethod) that can
be used to declare other subroutines that are dispatched using a algorithm
different from the normal Perl subroutine or method dispatch mechanism.

Normal Perl subroutines are dispatched by finding the appropriately-named
subroutine in the current (or specified) package and calling that. Normal
Perl methods are dispatched by attempting to find the appropriately-named
subroutine in the package into which the invoking object is blessed or,
failing that, recursively searching for it in the packages listed in the
appropriate '@ISA' arrays.

Class::Multimethods multimethods are dispatched quite differently. The
dispatch mechanism looks at the classes or types of each argument to the
multimethod (by calling 'ref' on each) and determines the "closest"
matching _variant_ of the multimethod, according to the argument types
specified in the variants' definitions (see the Finding the "nearest"
multimethod manpage for a definition of "closest").

%prep
# wrong version in archive
%setup -q -n %{upstream_name}-1.700

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4275 |21cr|perl-Class-ParamParser-1.41.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Class-ParamParser
%define	upstream_version 1.041

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	CPAN %{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DU/DUNCAND/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This Perl 5 object class implements two methods which inherited classes can use
to tidy up parameter lists for their own methods and functions.  The two
methods differ in that one returns a HASH ref containing named parameters and
the other returns an ARRAY ref containing positional parameters.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog ReadMe
%{perl_vendorlib}/Class/ParamParser.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4276 |21cr|perl-Class-Prototyped-1.130.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Class-Prototyped
%define upstream_version 1.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Fast prototype-based OO programming in Perl

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Class-Prototyped/
Source0:	http://www.cpan.org/authors/id/T/TE/TEVERETT/Class-Prototyped-%{upstream_version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test)

%description
This package provides for efficient and simple prototype-based programming
in Perl. You can provide different subroutines for each object, and also
have objects inherit their behavior and state from another object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# Documentation and libraries should not be executable
chmod -x perf/* examples/* Changes lib/Class/*.pm lib/Class/Prototyped/*

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%check
./Build test

%files
%doc Changes README perf/ examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4277 |21cr|perl-Class-ReturnValue-0.550.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-ReturnValue
%define upstream_version 0.55

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Class-ReturnValue module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Devel::StackTrace)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
This module provides a return-value object that lets you treat it as as a
boolean, array or object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Class/ReturnValue.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4278 |21cr|perl-Class-Sniff-0.100.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Sniff
%define upstream_version 0.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Look for class composition code smells

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(B::Concise) >= 0.660.0
BuildRequires: perl(Devel::Symdump) >= 2.80.0
BuildRequires: perl(Digest::MD5) >= 2.360.0
BuildRequires: perl(File::Find::Rule) >= 0.300.0
BuildRequires: perl(Graph::Easy) >= 0.640.0
BuildRequires: perl(List::MoreUtils) >= 0.220.0
BuildRequires: perl(Module::Build) >= 0.340.201
BuildRequires: perl(Sub::Identify) >= 0.30.0
BuildRequires: perl(Test::Most) >= 0.200.0
BuildRequires: perl(Text::SimpleTable) >= 0.50.0
BuildRequires: perl-devel
BuildArch:  noarch

%description
*ALPHA* code. You've been warned.

The interface is rather ad-hoc at the moment and is likely to change. After
creating a new instance, calling the 'report' method is your best option.
You can then visually examine it to look for potential problems:

 my $sniff = Class::Sniff->new({class => 'Some::Class'});
 print $sniff->report;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
# don't run broken test
rm -f t/basic.t
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4279 |21cr|perl-Class-Std-0.13.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Std
%define upstream_version 0.013

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Support for creating standard "inside-out" classes

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Data::Dumper) >= 2.154.0
BuildRequires:  perl(Scalar::Util)

BuildArch:          noarch

%description
Support for creating standard "inside-out" classes

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test


%install
./Build install destdir=%{buildroot}

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/Class/Std*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4280 |21cr|perl-Class-Std-Fast-0.0.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Std-Fast
%define upstream_version v0.0.8

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Faster but less secure than Class::Std

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Std)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(version)

BuildArch:	noarch

Requires:	perl(Class::Std)
Requires:	perl(version)

%description
Class::Std::Fast allows you to use the beautiful API of Class::Std in a
faster way than Class::Std does.

You can get the object's ident via scalarifiyng your object.

Getting the objects ident is still possible via the ident method, but it's
faster to scalarify your object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4281 |21cr|perl-Class-Throwable-0.130.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Throwable
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A minimal lightweight exception class

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::Pod::Coverage)

BuildArch:	noarch

%description
This module implements a minimal lightweight exception object. It is meant to
be a compromise between more basic solutions like Carp which can only print
information and cannot handle exception objects, and more more complex
solutions like Exception::Class which can be used to define complex inline
exceptions and has a number of module dependencies.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x Changes README lib/Class/Throwable.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Class/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4282 |21cr|perl-Class-Trigger-0.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-Trigger
%define upstream_version 0.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Mixin to add / call inheritable triggers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(IO::Stringy)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Class::Trigger is a mixin class to add / call triggers (or hooks)
that get called at some points you specify.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4283 |21cr|perl-Class-Virtual-0.70.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Virtual
%define upstream_version 0.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Compile-time enforcement of Class::Virtual
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp::Assert)
BuildRequires: perl(Class::Data::Inheritable)
BuildRequires: perl(Class::ISA)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel

BuildArch: noarch

%description
*THIS MODULE IS DISCOURAGED!* Avoid using it for new code. There's nothing
wrong with it, but there are better ways to accomplish the same thing. Look
into the the Moose manpage ecosystem.

This is a base class for implementing virtual base classes (what some
people call an abstract class). Kinda kooky. It allows you to explicitly
declare what methods are virtual and that must be implemented by
subclasses. This might seem silly, since your program will halt and catch
fire when an unimplemented virtual method is hit anyway, but there's some
benefits.

The error message is more informative. Instead of the usual "Can't locate
object method" error, you'll get one explaining that a virtual method was
left unimplemented.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4284 |21cr|perl-Class-WhiteHole-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-WhiteHole
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Base class to treat unhandled method calls as errors

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Its possible to accidentally inherit an AUTOLOAD method.  Often this
will happen if a class somewhere in the chain uses AutoLoader or
defines one of their own.  This can lead to confusing error messages
when method lookups fail.

Sometimes you want to avoid this accidental inheritance.  In that
case, inherit from Class::WhiteHole.  All unhandled methods will
produce normal Perl error messages.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4285 |21cr|perl-Class-XSAccessor-Array-1.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-XSAccessor-Array
%define upstream_version 1.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

License:    GPL+ or Artistic
Group:      Development/Perl
Summary:    Generate fast XS accessors without runtime compilation

Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(AutoXS::Header)
BuildRequires: perl-devel


%description
The module implements fast XS accessors both for getting at and setting an
object attribute. Additionally, the module supports mutators and simple
predicates ('has_foo()' like tests for definedness of an attributes). The
module works only with objects that are implemented as *arrays*. Using it
on hash-based objects is bound to make your life miserable. Refer to the
Class::XSAccessor manpage for an implementation that works with hash-based
objects.

A simple benchmark showed more than a factor of two performance advantage
over writing accessors in Perl.

Since version 0.10, the module can also generate simple constructors
(implemented in XS) for you. Simply supply the 'constructor =>
'constructor_name'' option or the 'constructors => ['new', 'create',
'spawn']' option. These constructors do the equivalent of the following
perl code:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4286 |21cr|perl-CLI-Osprey-0.80.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name CLI-Osprey
%define upstream_version 0.08

Name:           perl-CLI-Osprey
Version:        %perl_convert_version %{upstream_version}
Release:        2
Summary:        MooX::Options + MooX::Cmd + Sanity
Group:          Development/Perl
License:        GPL+ or Artistic

URL:            http://search.cpan.org/dist/CLI-Osprey/
Source0:        http://www.cpan.org/authors/id/A/AR/ARODLAND/CLI-Osprey-%{upstream_version}.tar.gz

BuildArch:      noarch
# build dependencies
BuildRequires:  coreutils
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(Module::Build::Tiny) >= 0.034
# runtime dependencies
BuildRequires:  perl(Carp)
BuildRequires:  perl(Getopt::Long::Descriptive) >= 0.100
BuildRequires:  perl(Getopt::Long::Descriptive::Usage)
BuildRequires:  perl(Module::Runtime)
BuildRequires:  perl(Moo)
BuildRequires:  perl(Moo::Role)
BuildRequires:  perl(Path::Tiny)
BuildRequires:  perl(Pod::Usage)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(overload)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# test dependencies
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(Test::Lib)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(lib)
BuildRequires:  perl(Class::Method::Modifiers)
Requires:       perl(Pod::Usage)
Requires:       perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))

%{?perl_default_filter}

%description
CLI::Osprey is a module to assist in writing command-line applications with
M* OO modules (Moose, Moo, Mo). With it, you structure your app as one
or more modules, which get instantiated with the command-line arguments
as attributes. Arguments are parsed using Getopt::Long::Descriptive,
and both long and short help messages as well as complete manual pages
are automatically generated. An app can be a single command with
options, or have sub-commands (like git). Sub-commands can be defined
as modules (with options of their own) or as simple code-refs.

%prep
%setup -q -n CLI-Osprey-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%doc Changes eg README
%license LICENSE
%{perl_vendorlib}/CLI*
%{_mandir}/man3/CLI*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4287 |21cr|perl-Clone-Choose-0.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Clone-Choose
%define upstream_version 0.010

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Choose appropriate clone utility
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Clone/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Storable)
BuildRequires: perl(Test::More) >= 0.900.0
BuildRequires: perl(Test::Without::Module)
BuildArch:  noarch

%description
'Clone::Choose' checks several different modules which provides a 'clone()'
function and selects an appropriate one. The default preference is

  Clone
  Storable
  Clone::PP

This list might evolve in future. Please see the /EXPORTS manpage how to
pick a particular one.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4288 |21cr|perl-Clone-Fast-0.970.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# E: debuginfo-without-sources (Badness: 50)
%define debug_package	%{nil}
# Sflo
%define upstream_name    Clone-Fast
%define upstream_version 0.97

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	5
Summary:    Natively copying Perl data structures
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
#Source0:    http://www.cpan.org/modules/by-module/Clone/%{upstream_name}-%{upstream_version}.tar.gz
Source0:    https://github.com/pplu/Clone-Fast/archive/master.zip

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildRequires: perl(Clone)

%description
Essentially, this module is a very optimized version of the Clone::More
manpage. By taking advantage of one of the Clone::More manpage's
'OPTIMIZATION_HACKS' as well as removing all the Pure Perl from the
'More.pm', I was able to gain a lot of speed out of the module.
Essentially, though, the core of the module is exactly as that of the
Clone::More manpage.

You will see that by useing the Benchmark::cmpthese manpage, I ran a simple
comparison between the Storable::dclone manpage, the Clone::More::clone
manpage, and the Clone::Fast::clone manpage. You will (should) begin to see
the reason why I loaded this module along side of the Clone::More manpage.

				   Rate    Storable Clone::More Clone::Fast
	Storable     7552/s          --        -39%        -59%
	Clone::More 12400/s         64%          --        -33%
	Clone::Fast 18442/s        144%         49%          --

%prep
%setup -qn %{upstream_name}-master

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#%make test

%install
%makeinstall_std



%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4289 |21cr|perl-Code-TidyAll-0.800.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Code-TidyAll
%define upstream_version 0.80

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Use podchecker with tidyall
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Code/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Capture::Tiny) >= 0.120.0
BuildRequires: perl(Config::INI::Reader)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Date::Format)
BuildRequires: perl(Digest::SHA1)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.800.0
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::pushd)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::Zglob)
BuildRequires: perl(File::Which)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Test::Most)
BuildRequires: perl(Text::Diff)
BuildRequires: perl(Text::Diff::Table)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Guard)
BuildRequires: perl(IPC::Run3)
BuildRequires: perl(IPC::System::Simple) >= 0.150.0
BuildRequires: perl(List::SomeUtils)
BuildRequires: perl(List::Compare)
BuildRequires: perl(lib::relative)
BuildRequires: perl(Log::Any)
BuildRequires: perl(Moo) >= 0.9.101.0
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Scope::Guard)
BuildRequires: perl(Specio::Library::Path::Tiny)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Class::Most)
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(Time::Duration::Parse)
BuildRequires: perl(Try::Tiny)

BuildArch:  noarch

%description
This is the engine used by tidyall - read that first to get an overview.

You can call this API from your own program instead of executing 'tidyall'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4290 |21cr|perl-Color-ANSI-Util-0.164.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Color-ANSI-Util
%define upstream_version 0.164

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Routines for dealing with ANSI colors
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Color-ANSI-Util/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(:VERSION)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-Time
BuildRequires:  perl(Color::RGB::Util)
BuildRequires:  perl(Exporter)
# Optional - BuildRequires:  perl(Term::Detect::Software)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Color::RGB::Util)
Requires:       perl(Exporter)
Recommends:     perl(Term::Detect::Software)

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Exporter\\)\\s*$
%global __requires_exclude %{?__requires_exclude}|perl\\(Color::RGB::Util\\)\\s*$

%description
This module provides routines for dealing with ANSI colors. The two main
functions are ansifg and ansibg. With those functions, you can specify
colors in RGB and let it output the correct ANSI color escape code
according to the color depth support of the terminal (whether 16-color,
256-color, or 24bit). There are other functions to convert RGB to ANSI
in specific color depths, or reverse functions to convert from ANSI to
RGB codes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING RELEASE_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4291 |21cr|perl-Color-RGB-Util-0.606.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Color-RGB-Util
%define upstream_version 0.606

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Utilities related to RGB colors
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Color-RGB-Util/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-devel
BuildRequires:  perl(:VERSION) >= 5.10.1
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Digest::SHA)
BuildRequires:  perl(Exporter) >= 5.57
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::More) >= 0.98
BuildRequires:  perl(Test::RandomResult)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Digest::SHA)
Requires:       perl(Exporter) >= 5.57

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Exporter\\)\\s*$

%description
This module contains utilities related to RGB colors.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# Help file to recognise the Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
unset AUTHOR_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4292 |21cr|perl-ColorThemeBase-Static-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ColorThemeBase-Static
%define upstream_version 0.008

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Base class for color theme modules with static list of items
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/ColorThemeBase-Static/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Color::RGB::Util)
BuildRequires:  perl(parent)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Color::RGB::Util)

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Color::RGB::Util\\)\\s*$

%description
This is base class for color theme modules with static list of items (from
object's colors key).
This class is now alias for ColorThemeBase::Static::FromStructColors. You
can use that class directly.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4293 |21cr|perl-ColorThemeRole-ANSI-0.001-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ColorThemeRole-ANSI
%define upstream_version 0.001

Name:           perl-%{upstream_name}
Version:        0.001
Release:        1
Summary:        Roles for using ColorTheme::* with ANSI codes
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/ColorThemeRole-ANSI/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(:VERSION)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(ColorThemeUtil::ANSI)
BuildRequires:  perl(Role::Tiny)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(ColorTheme::Test::Static)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This module can be mixed in with a ColorTheme::* class. Handy when using
color theme in terminal.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4294 |21cr|perl-ColorThemes-Standard-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ColorThemes-Standard
%define upstream_version 0.003

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Standard collection of generic color themes
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/ColorThemes-Standard/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(ColorThemeBase::Static::FromStructColors)
BuildRequires:  perl(parent)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(ColorThemeBase::Static::FromStructColors)

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((ColorThemeBase::Static::FromStructColors)\\)\s*$

%description
This module contains a standard collection of generic color themes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4295 |21cr|perl-ColorThemeUtil-ANSI-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ColorThemeUtil-ANSI
%define upstream_version 0.002

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Utility routines related to color themes and ANSI code
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/ColorThemeUtil-ANSI/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-devel
BuildRequires:  perl(:VERSION)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Color::ANSI::Util)
BuildRequires:  perl(Exporter)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(Color::ANSI::Util)
Requires:       perl(Exporter)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Exporter\\)\\s*$
%global __requires_exclude %{?__requires_exclude}|perl\\(Color::ANSI::Util\\)\\s*$

%description
This module provides utility routines related to color themes and ANSI
code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4296 |21cr|perl-Compress-Bzip2-2.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Compress-Bzip2
%define upstream_version 2.28
# just filter private libs from autoprov
# for later run. Symbianflo
%global __provides_exclude Bzip2.so

Summary:	    Interface to Bzip2 compression library
Name:		    perl-%{upstream_name}
Version:	    %perl_convert_version %{upstream_version}
Release:	    1
License:	    GPL+ or Artistic
Group:		    Development/Perl
Url:		    http://search.cpan.org/dist/%{upstream_name}
Source0:	    http://www.cpan.org/modules/by-module/Compress/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
The Compress::Bzip2 module provides a Perl interface to the Bzip2 compression
library (see "AUTHOR" for details about where to get Bzip2). A relevant subset
of the functionality provided by Bzip2 is available in Compress::Bzip2.

All string parameters can either be a scalar or a scalar reference.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc  Changes
%{perl_vendorarch}/Compress
%{perl_vendorarch}/auto/Compress
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4297 |21cr|perl-Compress-LZF-3.800.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Compress-LZF
%define	upstream_version 3.8
%global __provides_exclude LZF.so


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Extremely light-weight Lempel-Ziv-Free compression

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/modules/by-module/Compress/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0


%description
LZF is an extremely fast (not that much slower than a pure memcpy) compression
algorithm. It is ideal for applications where you want to save some space but
not at the cost of speed. It is ideal for repetitive data as well. The module
is self-contained and very small (no large library to be pulled in).
It is also free, so there should be no problems incoporating this module into
commercial programs.

"I have no idea wether any patents in any countries apply to this algorithm,
but at the moment it is believed that it is free from any patents."

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml COPYING COPYING.*
%{_mandir}/*/*
%{perl_vendorarch}/Compress
%{perl_vendorarch}/auto/Compress

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4298 |21cr|perl-Compress-LZO-1.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Compress-LZO
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Compress-LZO module for perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Compress/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Devel::CheckLib)
BuildRequires:	liblzo2-devel

%description
LZO is a portable lossless data compression library written in ANSI C. It
offers pretty fast compression and *very* fast decompression. Decompression
requires no memory. Perl-LZO provides LZO bindings for Perl, i.e. you can
access the LZO library from your Perl scripts thereby compressing ordinary Perl
strings.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make
make test

%install
%makeinstall_std

%files
%doc COPYING INSTALL README
%{perl_vendorarch}/Compress
%{perl_vendorarch}/auto/Compress
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4299 |21cr|perl-Compress-Raw-Lzma-2.204.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name		Compress-Raw-Lzma
%define upstream_version 2.204

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Low-Level Interface to the liblzma compression library

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/Compress-Raw-Lzma-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	pkgconfig(liblzma)

%description
Low-Level Interface to the liblzma compression library.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/Compress
%{perl_vendorarch}/auto/Compress

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4300 |21cr|perl-Config-Any-0.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Config-Any
%define upstream_version 0.32
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Load configuration from different file formats, transparently

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Config/Config-Any-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Pluggable) >= 5.100.0
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Config::General)
BuildRequires:	perl(Config::Tiny)
BuildRequires:	perl(JSON)
BuildRequires:	perl(YAML)
BuildRequires:	perl(XML::Simple)
BuildRequires:	perl(version)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(Test::Pod)

BuildArch:	    noarch

%description
Config::Any provides a facility for Perl applications and libraries to
load configuration data from multiple different file formats. It
supports XML, YAML, JSON, Apache-style configuration, Windows INI
files, and even Perl code.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4301 |21cr|perl-Config-ApacheFormat-1.200.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Config-ApacheFormat
%define upstream_version 1.2

Summary:	Use Apache format config files 

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	14
License:	GPL or Artistic
Group:		Development/Perl
Source:	http://search.cpan.org/CPAN/authors/id/S/SA/SAMTREGAR/%{module}-%{upstream_version}.tar.bz2
Url:		http://search.cpan.org/dist/%{module}
BuildRequires: perl-devel
BuildRequires: perl(Class::MethodMaker)
BuildRequires: perl(Text::Balanced)
# This one is not found automatically
Requires:      perl(Class::MethodMaker)
BuildArch:     noarch

%description
This module is designed to parse a configuration file in the same syntax used
by the Apache web server (see http://httpd.apache.org for details). This
allows you to build applications which can be easily managed by experienced
Apache admins. Also, by using this module, you'll benefit from the support for
nested blocks with built-in parameter inheritance. This can greatly reduce the
amount or repeated information in your configuration files.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4302 |21cr|perl-Config-Auto-0.440.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Auto
%define upstream_version 0.44
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Magical config file parser

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Config::IniFiles)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::ParseWords)
BuildRequires:	perl(YAML)
BuildArch:	noarch

%description
This module was written after having to write Yet Another Config File
Parser for some variety of colon-separated config. I decided "never again".

Config::Auto aims to be the most 'DWIM' config parser available, by
detecting configuration styles, include paths and even config filenames
automagically.

See the the HOW IT WORKS manpage section below on implementation details.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4303 |21cr|perl-Config-AutoConf-0.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-AutoConf
%define upstream_version 0.320

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A module to implement some of AutoConf macros in pure perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(File::Slurp::Tiny)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Exporter) >= 5.700.0
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Text::ParseWords)
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
# just for tests
BuildRequires:	gawk
BuildRequires:	sed
BuildRequires:	grep
BuildRequires:	bison
BuildRequires:	flex


BuildArch:	noarch

%description
A module to implement some of AutoConf macros in pure perl.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4304 |21cr|perl-Config-Crontab-1.400.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Crontab
%define upstream_version 1.40


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Read/Write Vixie compatible crontab(5) files 

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SC/SCOTTW/Config-Crontab-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Simple Time and Date module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4305 |21cr|perl-Config-File-1.500.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-File
%define upstream_version 1.50

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:    	4
Epoch:      	1

BuildArch: 	noarch

Summary:	A perl5 interface to parse a simple configuration file
License:	GPLv2
Group:		Development/Perl
URL:		http://search.cpan.org/~gwolf/%{upstream_name}-%{upstream_version}/
Source0:	http://search.cpan.org/CPAN/authors/id/G/GW/GWOLF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::Pod::Coverage)


%description
Config::File - Parse a simple configuration file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%{__make} test

%install
rm -rf %{buildroot}
%make_install

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc CHANGES README
%{_mandir}/*/*
%{perl_vendorarch}/../*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4306 |21cr|perl-Config-Find-0.310.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Find
%define upstream_version 0.31

%global __requires_exclude perl\\(Win32\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Find configuration files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Which)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(IO::File)

BuildArch:	noarch

%description
Every OS has different rules for configuration files placement, this module
allows to easily find and create your app configuration files following
those rules.

Config::Find references configuration files by the application name or by
the application name and the configuration file name when the app uses
several application files, i.e 'emacs', 'profile', 'apache/httpd',
'apache/ssl'.

By default the $0 value is used to generate the configuration file name. To
define it explicitly the keywords 'name' or 'names' have to be used:

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 README Changes
iconv -f iso8859-1 -t utf-8 README > README.conv && \
  mv -f README.conv README

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
find %{buildroot}%{perl_vendorlib}/Config -name '*pm' -exec chmod -x {} \;

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4307 |21cr|perl-Config-Grammar-1.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Grammar
%define upstream_version 1.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	A grammar-based, user-friendly config parser

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Config::Grammar is a module to parse configuration files. The configuration
may consist of multiple-level sections with assignments and tabular data.
The parsed data will be returned as a hash containing the whole
configuration. Config::Grammar uses a grammar that is supplied upon
creation of a Config::Grammar object to parse the configuration file and
return helpful error messages in case of syntax errors. Using the *makepod*
method you can generate documentation of the configuration file format.

The *maketmpl* method can generate a template configuration file. If your
grammar contains regexp matches, the template will not be all that helpful
as Config::Grammar is not smart enough to give you sensible template data
based in regular expressions. The related function *maketmplmin* generates
a minimal configuration template without examples, regexps or comments and
thus allows an experienced user to fill in the configuration data more
efficiently.

Grammar Definition
    The grammar is a multiple-level hash of hashes, which follows the
    structure of the configuration. Each section or variable is represented
    by a hash with the same structure. Each hash contains special keys
    starting with an underscore such as '_sections', '_vars', '_sub' or
    '_re' to denote meta data with information about that section or
    variable. Other keys are used to structure the hash according to the
    same nesting structure of the configuration itself. The starting hash
    given as parameter to 'new' contains the "root section".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4308 |21cr|perl-Config-Identity-0.1.900-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Identity
%define upstream_version 0.0019

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Load (and optionally decrypt via GnuPG) user/pass identity information

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(IPC::Run)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Which)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)

BuildArch:	noarch

%description
Config::Identity is a tool for loadiing (and optionally decrypting via
GnuPG) user/pass identity information

For GitHub API access, an identity is a 'login'/'token' pair

For PAUSE access, an identity is a 'user'/'password' pair

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# %check
# %make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4309 |21cr|perl-Config-INI-Simple-1.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-INI-Simple   
%define upstream_version 1.00   

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	Artistic and GPL
Group:		Development/Perl
Summary:	Simple reading and writing from an INI file--with preserved comments

Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{upstream_name}

BuildRequires:	perl-devel
BuildRequires:	perl(File::Slurp) >= 9999.190.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch: noarch

%description
Config::INI::Simple is for very simplistic reading and writing of INI files. 
A new object must be created for each INI file (an object keeps all the data 
read in from an INI which is used on the write method to write to the INI).

It also keeps all your comments and original order intact.

%prep
%setup -qn  %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{perl_vendorlib}/Config/
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4310 |21cr|perl-Config-Model-2.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Model
%define upstream_version 2.150

# when bootstrap build with --nocheck parameter
%bcond_with bootstrap

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Framework for config validation and edition
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:  perl(boolean)
BuildRequires:	perl(Any::Moose) >= 0.260.0
BuildRequires:	perl(AnyEvent) >= 7.70.0
BuildRequires:	perl(Carp::Assert::More)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(Hash::Merge) >= 0.120.0
BuildRequires:	perl(IO::File)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Log::Log4perl) >= 1.110.0
BuildRequires:	perl(Test::Log::Log4perl)
BuildRequires:	perl(Module::Build) >= 0.340.0
BuildRequires:	perl(Mouse) >= 2.4.1
BuildRequires:	perl(MouseX::NativeTraits)
BuildRequires:	perl(Mouse::Meta::Attribute::Custom::Trait::Hash)
BuildRequires:	perl(MouseX::StrictConstructor)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Pod::POM)
BuildRequires:	perl(Probe::Perl)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Term::ReadLine)
BuildRequires:	perl(Test::Command) >= 0.80.0
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::File::Contents)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Warn) >= 0.110.0
BuildRequires:	perl(Text::Diff)
BuildRequires:	perl(YAML::Any) >= 0.303.0
BuildRequires:	perl(YAML::Tiny)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(JSON)
%if %{without bootstrap}
BuildRequires:	perl(Config::Model::FuseUI)
BuildRequires:	perl(Config::Model::Tester) >= 2.55.0
%endif
BuildRequires:	perl(Term::ReadLine::Perl)
BuildRequires:	perl(Term::ReadLine::Gnu)

Requires:	perl(Parse::RecDescent)
Requires:	perl(Exception::Class)
Requires:	perl(Carp::Assert::More)

BuildArch:	noarch

%description
Config::Model provides a validation engine according to a set of rules.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc  LICENSE META.yml MODELS TODO contrib/
%{perl_vendorlib}/Config
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4311 |21cr|perl-Config-Model-2.94.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Model
%define upstream_version 2.094

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Framework for config validation and edition
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Any::Moose) >= 0.260.0
BuildRequires:	perl(AnyEvent) >= 7.70.0
BuildRequires:	perl(Carp::Assert::More)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(Hash::Merge) >= 0.120.0
BuildRequires:	perl(IO::File)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Log::Log4perl) >= 1.110.0
BuildRequires:	perl(Module::Build) >= 0.340.0
BuildRequires:	perl(Mouse) >= 2.4.1
BuildRequires:	perl(MouseX::NativeTraits)
BuildRequires:	perl(MouseX::StrictConstructor)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Pod::POM)
BuildRequires:	perl(Probe::Perl)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Term::ReadLine)
BuildRequires:	perl(Test::Command) >= 0.80.0
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::File::Contents)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Warn) >= 0.110.0
BuildRequires:	perl(Text::Diff)
BuildRequires:	perl(YAML::Any) >= 0.303.0
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Config::Model::FuseUI)
BuildRequires:	perl(Config::Model::Tester) >= 2.55.0
BuildRequires:	perl(Term::ReadLine::Perl)
BuildRequires:	perl(Term::ReadLine::Gnu)

Requires:	perl(Parse::RecDescent)
Requires:	perl(Exception::Class)
Requires:	perl(Carp::Assert::More)

BuildArch:	noarch

%description
Config::Model provides a validation engine according to a set of rules.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc  LICENSE META.yml MODELS TODO contrib/
%{perl_vendorlib}/Config
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4312 |21cr|perl-Config-Model-CursesUI-1.107.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Config-Model-CursesUI
%define upstream_version    1.107

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Curses interface for Config::Model

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Config::Model)
BuildRequires:	perl(Curses::UI)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Config::Model::Tester::Setup)
BuildRequires:	perl(Test::Log::Log4perl)
BuildRequires:	perl-MouseX-NativeTraits
BuildArch:	noarch

%description
This class provides a the Curses::UI manpage interface to configuration
data managed by the Config::Model manpage.

IMPORTANT: Once the CursesUI object is created, STDOUT and STDERR are
managed by the Curses interface, so all print and warn will not work as
expected.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README ChangeLog
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4313 |21cr|perl-Config-Model-Itself-2.23.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Model-Itself
%define upstream_version 2.023

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Detect available read/write backends usable by config models
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(App::Cme)
BuildRequires: perl(Carp)
BuildRequires: perl(Config::Model)
BuildRequires: perl(Config::Model::TkUI) >= 1.345.0
BuildRequires: perl(Config::Model::Value)
BuildRequires: perl(Data::Compare)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Copy::Recursive)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(IO::File)
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Mouse) >= 2.4.1
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::File::Contents)
BuildRequires: perl(Test::Memory::Cycle)
BuildRequires: perl(Test::More)
BuildRequires: perl(Tk)
BuildRequires: perl(YAML::Tiny)
BuildRequires: perl(YAML::XS)
BuildRequires: perl(Mouse::Meta::Attribute::Custom::Trait::Hash)
BuildRequires: perl(Config::Model::ObjTreeScanner)
BuildRequires: perl(Config::Model::Tester::Setup)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(Getopt::Long::Descriptive)
BuildRequires: perl-devel
BuildRequires: x11-server-xvfb

BuildArch: noarch

%description
Config::Itself module and its model files provide a model of Config:Model
(hence the Itself name).

Let's step back a little to explain. Any configuration data is, in essence,
structured data. This data could be stored in an XML file. A configuration
model is a way to describe the structure and relation of all items of a
configuration data set.

This configuration model is also expressed as structured data. This
structure data is structured and follow a set of rules which are described
for humans in the Config::Model manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
# this will need fbterm runing on top of fb0
rm -fr t/itself-editor.t
#xvfb-run -n 14 ./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4314 |21cr|perl-Config-Model-OpenSsh-2.9.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Model-OpenSsh
%define upstream_version 2.9.4.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	OpenSsh configuration files editor and API
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Any::Moose)
BuildRequires:	perl(Config::Model)
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(Log::Log4perl)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Mouse::Meta::Attribute::Custom::Trait::Hash)
BuildRequires:	perl(MouseX::StrictConstructor)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::File::Contents)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Log::Log4perl)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Config::Model::Tester)
Requires:	perl(Mouse)

BuildArch:	noarch

%description
This module provides a configuration model for OpenSsh. Then Config::Model
provides a graphical editor program for _/etc/ssh/sshd_config_ and
_/etc/ssh/ssh_config_. See the config-edit-sshd manpage and the
config-edit-ssh manpage for more help.

This module and Config::Model can also be used to modify safely the content
for _/etc/ssh/sshd_config_, _/etc/ssh/ssh_config_ or _~/.ssh/config_ from
Perl programs.

Once this module is installed, you can run (as root, but please backup
/etc/X11/xorg.conf before):

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
rm -f t/pod.t
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc LICENSE *META.yml README.pod
%{_mandir}/man3/*
%{perl_vendorlib}/Config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4315 |21cr|perl-Config-Model-Tester-4.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Config-Model-Tester
%define upstream_version 4.007

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Test framework for Config::Model

License:	LGPLv2
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(Log::Log4perl)
BuildRequires:	perl(Module::Build) >= 0.400.400
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::File::Contents)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Config::Model)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0

BuildArch:	noarch

%description
Config::Model::Tester provides a way to test configuration models with
test files. This class was designed to test several models and several
test cases per model.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4316 |21cr|perl-Config-Model-TkUI-1.375.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Model-TkUI
%define upstream_version 1.375

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    GUI for conf editors based on Config::Model

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Carp::Assert::More)
BuildRequires: perl(Exception::Class)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Config::Model)
BuildRequires: perl(Pod::POM)
BuildRequires: perl(Tk::DirSelect)
BuildRequires: perl(Tk::ObjScanner)
BuildRequires: perl(Tk::DoubleClick)
BuildRequires: perl(Test::Warn)
BuildRequires: x11-server-xvfb
BuildRequires: perl(Tk::Pod)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Memory::Cycle)
BuildRequires: perl(Mouse::Meta::Attribute::Custom::Trait::Hash)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Carp)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Text::Wrap)
BuildRequires: perl(Tk)
BuildRequires: perl(Tk::Adjuster)
BuildRequires: perl(Tk::Balloon)
BuildRequires: perl(Tk::BrowseEntry)
BuildRequires: perl(Tk::Dialog)
BuildRequires: perl(Tk::DialogBox)
BuildRequires: perl(Tk::Frame)
BuildRequires: perl(Tk::FontDialog)
BuildRequires: perl(Tk::Menubutton)
BuildRequires: perl(Tk::NoteBook)
BuildRequires: perl(Tk::PNG)
BuildRequires: perl(Tk::Pane)
BuildRequires: perl(Tk::Photo)
BuildRequires: perl(Tk::Pod)
BuildRequires: perl(Tk::Pod::Text)
BuildRequires: perl(Tk::ROText)
BuildRequires: perl(Tk::Toplevel)
BuildRequires: perl(Tk::Tree)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(Test::Log::Log4perl)
BuildRequires: perl(YAML)
BuildRequires: perl(YAML::XS)
BuildRequires: perl(Text::Diff)
BuildRequires: perl(Config::Model::Tester::Setup)
BuildRequires: perl(XXX)

BuildArch: noarch

Requires: perl(Config::Model)

%description
This class provides a GUI for the Config::Model manpage.

With this class, the Config::Model manpage and an actual configuration
model (like the Config::Model::Xorg manpage), you get a tool to edit
configuration files (e.g. '/etc/X11/xorg.conf').

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
xvfb-run -n 14 ./Build test


%install
./Build install destdir=%{buildroot}


%files
%doc  README* META.json META.yml LICENSE examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4317 |21cr|perl-Config-MVP-2.200.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-MVP
%define upstream_version 2.200013

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Multivalue-property config-loading state machine

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Config/Config-MVP-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::OneArgNew)
BuildRequires:	perl(Role::HasMessage)
BuildRequires:	perl(Role::Identifiable::HasIdent)
BuildRequires:	perl(StackTrace::Auto)
BuildRequires:	perl(Tie::IxHash)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 0.960
BuildRequires:	perl(Throwable)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Module::Pluggable::Object)

Requires:	perl(Throwable)
Requires:	perl(Role::Identifiable::HasIdent)
Requires:	perl(Role::HasMessage)
Requires:	perl(StackTrace::Auto)
Requires:	perl(MooseX::OneArgNew)
BuildArch:	noarch

%description
MVP is a state machine for loading configuration (or other information) for
libraries. It expects to generate a list of named sections, each of which
relates to a Perl namespace and contains a set of named parameters.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4318 |21cr|perl-Config-MVP-Reader-INI-2.101.464-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-MVP-Reader-INI
%define upstream_version 2.101464

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Multi-value capable .ini file reader (for plugins)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Config::INI::Reader)
BuildRequires:	perl(Config::MVP::Assembler)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers) 
BuildRequires:	perl(Config::MVP::Reader)
BuildRequires:	perl(Test::Pod)


BuildArch:	noarch

%description
The MVP INI file reader reads INI files, but can handle properties with
multiple values. The identification of properties that may have multiple
entries is done by section, on a plugin basis. For example, given the
following file:

  [Foo::Bar]
  x = 1
  y = 2
  y = 3

MVP will, upon reaching this section, load Foo::Bar and call a method (by
default 'multivalue_args') on it, to determine which property names may
have multiple entries. If the return value of that method includes 'y',
then the entry for 'y' in the Foo::Bar section will be an arrayref with two
values. If the list returned by 'multivalue_args' did not contain 'y', then
an exception would be raised while reading this section.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4319 |21cr|perl-Config-MVP-Slicer-0.302.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-MVP-Slicer
%define upstream_version 0.302

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Extract embedded plugin config from parent config
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Moose)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.960.0
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This can be used to extract embedded configurations for other plugins out
of larger (parent) configurations.

A example where this can be useful is plugin bundles (see the
Config::MVP::Assembler::WithBundles manpage).

A bundle loads other plugins with a default configuration that works most
of the time, but sometimes you wish you could customize the configuration
for one of those plugins without having to remove the plugin from the
bundle and re-specify it separately.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4320 |21cr|perl-Config-MVP-Slicer-0.303.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-MVP-Slicer
%define upstream_version 0.303

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Extract embedded plugin config from parent config
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Moose)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.960.0
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This can be used to extract embedded configurations for other plugins out
of larger (parent) configurations.

A example where this can be useful is plugin bundles (see the
Config::MVP::Assembler::WithBundles manpage).

A bundle loads other plugins with a default configuration that works most
of the time, but sometimes you wish you could customize the configuration
for one of those plugins without having to remove the plugin from the
bundle and re-specify it separately.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4321 |21cr|perl-Config-Perl-V-0.240.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Perl-V
%define upstream_version 0.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A module that will return you the output of

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildRequires:	perl(Config)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0


BuildArch:	noarch

%description
$conf = myconfig ()
    This function will collect the data described in the the hash structure
    manpage below, and return that as a hash reference. It optionally
    accepts an option to include more entries from the ENV hash. See the
    environment manpage below.

    Note that this will not work on uninstalled perls when called with
    '-I/path/to/uninstalled/perl/lib', but it works when that path is in
    '$PERL5LIB' or in '$PERL5OPT', as paths passed using '-I' are not known
    when the '-V' information is collected.

$conf = plv2hash ($text [, ...])
    Convert a sole 'perl -V' text block, or list of lines, to a complete
    myconfig hash. All unknown entries are defaulted.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.json META.yml README Changelog README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4322 |21cr|perl-Config-Properties-1.800.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Properties
%define upstream_version 1.80

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Configuration using Java style properties


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Text::Wrap) >= 1.50.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0


BuildArch:	noarch

%description
Config::Properties is a near implementation of the java.util.Properties
API. It is designed to allow easy reading, writing and manipulation of
Java-style property files.

The format of a Java-style property file is that of a key-value pair
seperated by either whitespace, the colon (:) character, or the equals (=)
character. Whitespace before the key and on either side of the seperator is
ignored.

Lines that begin with either a hash (#) or a bang (!) are considered
comment lines and ignored.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
for file in README Changes; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4323 |21cr|perl-ConfigReader-0.500.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name   ConfigReader
%define upstream_version 0.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Read directives from a configuration file

Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/ConfigReader/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The ConfigReader::Spec class stores a specification about configuration
directives: their names, whether they are required or if they have default
values, and what parsing function or method to use.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

cat > Makefile.PL <<EOF
use ExtUtils::MakeMaker;

WriteMakefile(
    'NAME'	       => 'ConfigReader::DirectiveStyle',
    'VERSION_FROM' => 'DirectiveStyle.pm',
);
EOF

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4324 |21cr|perl-ConfigReader-Simple-1.295.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ConfigReader-Simple
%define upstream_version 1.295

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Read simple configuration file formats

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/ConfigReader/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Prereq)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
'ConfigReader::Simple' reads and parses simple configuration files. It is
designed to be smaller and simpler than the 'ConfigReader' module and is
more suited to simple configuration files. 

The configuration file format
    The configuration file uses a line-oriented format, meaning that the
    directives do not have containers. The values can be split across lines
    with a continuation character, but for the most part everything ends up
    on the same line.

    The first group of non-whitespace characters is the "directive", or the
    name of the configuration item. The linear whitespace after that
    separates the directive from the "value", which is the rest of the
    line, including any other whitespace.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README* LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4325 |21cr|perl-Config-Std-0.903.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Std
%define upstream_version 0.903

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Load and save configuration files in a standard format 

License:    GPL or Artistic
Group:      Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Config/Config-Std-%{upstream_version}.tar.gz
BuildRequires:      perl(Module::Build)
BuildRequires:      perl(Class::Std)
BuildRequires:      perl(Test::More)
Requires:           perl(Class::Std)
BuildArch:          noarch

%description
Load and save configuration files in a standard format 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
# only when building from CVS (version 1.51-3mdk)
#CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor
#make docs -i
# only when building from CVS (version 1.51-3mdk)
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%clean 

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{perl_vendorlib}/Config/Std*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4326 |21cr|perl-Config-YAML-1.420.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Config-YAML
%define upstream_version 1.42

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Generic Config perl module

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MD/MDXI/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(YAML)
BuildArch:	noarch

%description
This module opens a config file and parses it's contents for you. The
method new requires one parameter which needs to be a filename. The
method getall returns a hash which contains all options and it's
associated values of your config file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Config
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4327 |21cr|perl-constant-1.330.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This is strange should be fixed in rpm5 by now.
%define unpackaged_subdirs_terminate_build 0
#
%define upstream_name    constant
%define upstream_version 1.33

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Define compile-time constants

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module//constant-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(CPAN::Meta) >= 2.150.5


Provides:	perl(constant) = %{version}
BuildArch:	noarch

%description
This pragma allows you to declare constants at compile-time.

When you declare a constant such as 'PI' using the method shown above, each
machine your script runs upon can have as many digits of accuracy as it can
use. Also, your program will be easier to read, more likely to be
maintained (and maintained correctly), and far less likely to send a space
probe to the wrong planet because nobody noticed the one equation in which
you wrote '3.14195'.

When a constant is used in an expression, Perl replaces it with its value
at compile time, and may then optimize the expression further. In
particular, any code in an 'if (CONSTANT)' block will be optimized away if
the constant is false.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4328 |21cr|perl-constant-defer-6.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    constant-defer
%define upstream_version 6

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    No summary found
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/constant/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Test)
BuildRequires: perl(vars)

BuildArch: noarch

Provides:  perl(constant::defer) = %{EVRD}

%description
'constant::defer' creates a subroutine which on the first call runs given
code to calculate its value, and on the second and subsequent calls just
returns that value, like a constant. The value code is discarded once run,
allowing it to be garbage collected.

Deferring a calculation is good if it might take a lot of work or produce a
big result, but is only needed sometimes or only well into a program run.
If it's never needed then the value code never runs.

A deferred constant is generally not inlined or folded (see the
perlop/Constant Folding manpage) like a plain 'constant' since it's not a
single scalar value. In the current implementation a deferred constant
becomes a plain one after the first use, so may inline etc in code compiled
after that (see the /IMPLEMENTATION manpage below).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4329 |21cr|perl-Const-Fast-0.14.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Const-Fast
%define upstream_version 0.014

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Facility for creating read-only scalars, arrays, and hashes
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Const/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Storable)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Sub::Exporter::Progressive)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(TAP::Harness::Env)

BuildArch: noarch

%description
no description found

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes INSTALL LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4330 |21cr|perl-Context-Preserve-0.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module   Context-Preserve

Name:		perl-%{module}
Version:	0.03
Release:	1
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Run code after a subroutine call preserving the context

Url:		http://search.cpan.org/dist/%{module}
Source:		https://cpan.metacpan.org/authors/id/J/JR/JROCKWAY/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::use::ok)
BuildArch:	noarch

%description
Sometimes you need to call a function, get the results, act on the results,
then return the result of the function. This is painful because of
contexts; the original function can behave different if it's called in
void, scalar, or list context. You can ignore the various cases and just
pick one, but that's fragile. To do things right, you need to see which
case you're being called in, and then call the function in that context.
This results in 3 code paths, which is a pain to type in (and maintain).

This module automates the process. You provide a coderef that is the
"original function", and another coderef to run after the original runs.
You can modify the return value (aliased to @_) here, and do whatever else
you need to do. 'wantarray' is correct inside both coderefs; in "after",
though, the return value is ignored and the value 'wantarray' returns is
related to the context that the original function was called in.

%prep
%setup -q -n %{module}-%{version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4331 |21cr|perl-Contextual-Return-0.4.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Contextual-Return
%define upstream_version 0.004014

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Utility module for Contextual::Return
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Contextual/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(Want)
BuildRequires: perl(version)
BuildRequires: perl-devel

BuildArch: noarch

%description
Usually, when you need to create a subroutine that returns different values
in different contexts (list, scalar, or void), you write something like .
#        my ($server_ID) = @_;
#
#        # Acquire server data somehow...
#        my %server_data = _ascertain_server_status($server_ID);  .

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4332 |21cr|perl-Convert-ASCII-Armour-1.4-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname Convert-ASCII-Armour


Name:		perl-%{realname}
Version:	1.4
Release:	18
Summary:	Convert binary octets into ASCII armoured messages

License:	Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Convert/%{realname}-%{version}.tar.bz2
BuildRequires:	perl(Compress::Zlib)  
BuildRequires:	perl-devel
BuildArch:		noarch

%description 
This module converts hashes of binary octets into ASCII
messages suitable for transfer over 6-bit clean transport
channels. The encoded ASCII resembles PGP's armoured
messages, but are in no way compatible with PGP.

%prep
%setup -q -n %{realname}-%{version}

%build
CFLAGS="%{optflags}" echo | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4333 |21cr|perl-Convert-Bencode-1.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Convert-Bencode
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Functions for converting to/from bencoded strings

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Convert-Bencode/
Source0:	http://www.cpan.org/authors/id/O/OR/ORCLEV/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More) >= 0.45

BuildArch:	noarch

%description
This module provides two functions, bencode and bdecode, which encode and
decode bencoded strings respectively.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README Todo
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4334 |21cr|perl-Convert-Bencode_XS-0.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Convert-Bencode_XS
%define upstream_version 0.06

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:	7
Summary:        Faster conversions to/from Bencode format

License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Convert-Bencode_XS/
Source0:        http://www.cpan.org/authors/id/I/IW/IWADE/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
BuildRequires:	perl-devel

%description
This module provides two functions, bencode and bdecode, which encode and
decode bencoded strings respectively.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
%make

# Likely we need non-ascii locale for tests to pass
# %check
# %make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Convert*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4335 |21cr|perl-Convert-Binary-C-0.840.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Convert-Binary-C
%define upstream_version 0.84
%global __provides_exclude C.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/M/MH/MHX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:  perl(CPAN::Meta) >= 2.150.5
BuildRequires:  perl(Pod::Coverage)
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl-devel

%description
Convert::Binary::C is a preprocessor and parser for C type definitions. 
It is highly configurable and supports arbitrarily complex data structures. 
Its object-oriented interface has pack and unpack methods that act as 
replacements for Perl's pack and unpack and allow to use C types instead 
of a string representation of the data structure for conversion of binary 
data from and to Perl's complex data structures.

Actually, what Convert::Binary::C does is not very different from what a 
C compiler does, just that it doesn't compile the source code into an object 
file or executable, but only parses the code and allows Perl to use the 
enumerations, structs, unions and typedefs that have been defined within 
your C source for binary data conversion, similar to Perl's pack and unpack.

Beyond that, the module offers a lot of convenience methods to retrieve 
information about the C types that have been parsed.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README* TODO META.json META.yml
%{_bindir}/*
%{perl_vendorarch}/
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4336 |21cr|perl-Convert-Color-0.110.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Convert-Color
%define upstream_version 0.11

%global __requires_exclude perl\\(Convert::Color::HueChromaBased\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A color value represented as red/green/blue in


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Convert/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Number::Delta)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(List::UtilsBy)
BuildArch:	noarch

%description
This module provides conversions between commonly used ways to express
colors. It provides conversions between color spaces such as RGB and HSV,
and it provides ways to look up colors by a name.

This class provides a base for subclasses which represent particular color
values in particular spaces. The base class provides methods to represent
the color in a few convenient forms, though subclasses may provide more
specific details for the space in question.

For more detail, read the documentation on these classes; namely:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4337 |21cr|perl-Convert-EBCDIC-0.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Convert-EBCDIC
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Convert-EBCDIC module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Convert/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides two functions ascii2ebcdic and ebcdic2ascii for
converting a string from/to ASCII to/from EBCDIC, and two code pages
ccsid819 and ccsid1047.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Convert/EBCDIC.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4338 |21cr|perl-Convert-PEM-0.80.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Convert-PEM
%define	upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	14

Summary:	Read/write encrypted ASN.1 PEM files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/B/BT/BTROTT/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-Convert-ASN1 
BuildRequires:	perl-Class-ErrorHandler
BuildRequires:	perl-Crypt-DES_EDE3
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl-devel
BuildArch:	noarch

# not found automatically
Requires:	perl(Class::ErrorHandler)
Requires:	perl

%description
Convert::PEM reads and writes PEM files containing ASN.1-encoded
objects. The files can optionally be encrypted using a symmetric cipher
algorithm, such as 3DES.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%__make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4339 |21cr|perl-Convert-Scalar-1.110.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude Scalar.so
%define	upstream_name	Convert-Scalar
%define	upstream_version 1.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Convert-Scalar module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Convert/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Canary::Stability) >= 2001.0.0

%description
This module exports various internal perl methods that change the internal
representation or state of a perl scalar. All of these work in-place, that is,
they modify their scalar argument. No functions are exported by default.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes COPYING README META.json META.yml
%{perl_vendorarch}/Convert/Scalar.pm
%{perl_vendorarch}/auto/Convert/Scalar
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4340 |21cr|perl-Convert-Units-0.430.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Convert-Units
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Convert-Units module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Convert/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Units package is a collection of modules for parsing strings with unit
measurements (such as "12pt" or "3 meters") and converting them to some other
unit (such as "picas" or "inches").

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Convert/Units
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4341 |21cr|perl-Cookie-Baker-0.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Cookie-Baker
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Cookie string generator / parser


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Cookie/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(CPAN::Meta::Prereqs)
BuildRequires: perl(Parse::CPAN::Meta) >= 1.441.700
BuildRequires: perl(Exporter) >= 5.700.0
BuildRequires: perl(ExtUtils::CBuilder) >= 0.280.223
BuildRequires: perl(Module::Build) >= 0.380.0
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Test::More) >= 0.980.0
BuildRequires: perl(Test::Time)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(CPAN::Meta::YAML) >= 0.12.0

BuildArch:  noarch

%description
Cookie::Baker provides simple cookie string generator and parser.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4342 |21cr|perl-CPAN-2.280.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	CPAN
%define upstream_version 2.28
%global __requires_exclude ^perl\\(Mac::BuildTools\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Epoch:		1

Summary:	%{upstream_name} module for perl


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/%{upstream_name}/authors/id/A/AN/ANDK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Archive::Tar)
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(CPAN::Checksums)
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.132.0
BuildRequires: perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires: perl(Compress::Bzip2)
BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::Which)
BuildRequires: perl(HTTP::Tiny)
BuildRequires: perl(IO::Compress::Base)
BuildRequires: perl(IO::Zlib)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Signature)
BuildRequires: perl(Net::FTP)
BuildRequires: perl(Net::Ping)
BuildRequires: perl(Parse::CPAN::Meta) >= 1.441.700
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Test::Harness) >= 2.620.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Text::Glob)
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(Text::Wrap)
BuildRequires: perl(YAML)
BuildRequires: perl(YAML::Syck)
BuildRequires: perl(YAML::XS)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)

BuildArch:	noarch

%description
The CPAN module automates or at least simplifies the make and install of
perl modules and extensions. It includes some primitive searching
capabilities and knows how to use Net::FTP or LWP or some external
download clients to fetch the distributions from the net.

These are fetched from one or more of the mirrored CPAN (Comprehensive
Perl Archive Network) sites and unpacked in a dedicated directory.

The CPAN module also supports the concept of named and versioned
*bundles* of modules. Bundles simplify the handling of sets of related
modules. See Bundles below.

The package contains a session manager and a cache manager. The session
manager keeps track of what has been fetched, built and installed in the
current session. The cache manager keeps track of the disk space
occupied by the make processes and deletes excess space according to a
simple FIFO mechanism.

All methods provided are accessible in a programmer style and in an
interactive shell style.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# Signature file does not contain debug files signatures, just ignore the file for tests
mv SIGNATURE SIGNATURE_test
# perl(CPAN::Test::Dummy::Perl5::Make::CircDepeOne/Two/Three) issue a warning if not present
# so we just ignore them (they induce a failure if tested)
%make test
mv SIGNATURE_test SIGNATURE

%install
%makeinstall_std
# Temporarily rename the cpan shell in order to wait for perl-5.10
mv %{buildroot}/%{_bindir}/cpan %{buildroot}/%{_bindir}/cpan-%{upstream_version}
mv %{buildroot}/%{_mandir}/man1/cpan.1 %{buildroot}/%{_mandir}/man1/cpan-%{upstream_version}.1

%files
%doc Changes README
%{_bindir}/*
%{perl_vendorlib}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4343 |21cr|perl-CPAN-Changes-0.400.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-Changes
%define upstream_version 0.400002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Read and write Changes files

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(Compress::Zlib)
BuildRequires:  perl(URI)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Moo) >= 2.0.1

BuildRequires:  perl-devel

BuildArch:      noarch

%description
It is standard practice to include a Changes file in your distribution.
The purpose the Changes file is to help a user figure out what has
changed since the last release.

People have devised many ways to write the Changes file. A preliminary
specification has been created (CPAN::Changes::Spec) to encourage module
authors to write clear and concise Changes.

This module will help users programmatically read and write Changes
files that conform to the specification.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/CPAN
%{perl_vendorlib}/Test/CPAN
%{_mandir}/*/*
%{_bindir}/tidy_changelog

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4344 |21cr|perl-CPAN-Checksums-2.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-Checksums
%define upstream_version 2.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Write a C<CHECKSUMS> file for a directory as on CPAN


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.gz
Source1:        A317C15D.pub

BuildRequires:	perl-devel
BuildRequires:	perl(Compress::Bzip2) >= 2.220.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(Data::Compare)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(DirHandle)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Module::Signature) >= 0.730.0
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)
BuildRequires:	gnupg2

BuildArch:	noarch

%description
* $success = updatedir($dir)

  'updatedir()' takes a directory name as argument and writes a typical
  'CHECKSUMS' file in that directory as used on CPAN unless a previously
  written 'CHECKSUMS' file is there that is still valid. Returns 2 if a new
  'CHECKSUMS' file has been written, 1 if a valid 'CHECKSUMS' file is
  already there, otherwise dies.

  Note: since version 2.0 updatedir on empty directories behaves just the
  same. In older versions it silently did nothing.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# debug files will screw the tests.
rm -f *.list
#
export GNUPGHOME=$(mktemp -d)
gpg --import '%{SOURCE1}'
make test
rm -r "$GNUPGHOME"

%install
%makeinstall_std

%files
%doc README META.json META.yml Changes Todo
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4345 |21cr|perl-CPANDB-0.180.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPANDB
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	CPANDB class for the distribution table

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(LWP::Online)
BuildRequires:	perl(ORLite::Mirror)
BuildRequires:	perl(ORLite::Statistics)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
CPANDB class for the distribution table.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/cpangraph

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4346 |21cr|perl-CPAN-DistnameInfo-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-DistnameInfo
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Extract distribution name and version from a distribution filename

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Many online services that are centered around CPAN attempt to associate
multiple uploads by extracting a distribution name from the filename of the
upload. For most distributions this is easy as they have used
ExtUtils::MakeMaker or Module::Build to create the distribution, which results
in a uniform name. But sadly not all uploads are created in this way.

CPAN::DistnameInfo uses heuristics that have been learnt by
http://search.cpan.org/ to extract the distribution name and version from
filenames and also report if the version is to be treated as a developer
release.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/CPAN
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4347 |21cr|perl-CPAN-FindDependencies-3.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-FindDependencies
%define upstream_version 3.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Object representing a module dependency
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Archive::Tar)
BuildRequires:	perl(Archive::Zip)
BuildRequires:	perl(File::Type)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(Devel::CheckOS)
BuildRequires:	perl(Devel::Hide)
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(LWP::Protocol::https)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(Module::CoreList)
BuildRequires:	perl(Parse::CPAN::Packages)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Env::Path)
BuildRequires:	perl(Test::Time)
BuildRequires:	perl(URI::file)

BuildArch:	noarch

%description
Object representing a module dependency.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
#check need internet connection
#make test

%install
%makeinstall_std

%files
%doc  README* CHANGELOG META.json META.yml
%{perl_vendorlib}/*
%{_bindir}/cpandeps
%{_bindir}/cpandeps-diff
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4348 |21cr|perl-CPAN-Mini-1.111.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-Mini
%define upstream_version 1.111016

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Create a minimal mirror of CPAN

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CPAN/CPAN-Mini-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::More) >= 0.960.0
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)   
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Pod::Usage)   
BuildRequires:	perl(URI)      
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
CPAN::Mini provides a simple mechanism to build and update a minimal mirror of
the CPAN on your local disk. It comes with a small utility, minicpan(1), to
create and update such mirrors.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml META.json
%{perl_vendorlib}/CPAN
%{_mandir}/*/*
%{_bindir}/minicpan

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4349 |21cr|perl-CPAN-Perl-Releases-2.800.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-Perl-Releases
%define upstream_version 2.80

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3
Summary:    Mapping Perl releases on CPAN to the location of the tarballs
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl-devel

BuildArch: noarch

%description
CPAN::Perl::Releases is a module that contains the mappings of all 'perl'
releases that have been uploaded to CPAN to the 'authors/id/' path that the
tarballs reside in.

This is static data, but newer versions of this module will be made
available as new releases of 'perl' are uploaded to CPAN.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml META.json LICENSE Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4350 |21cr|perl-CPANPLUS-Shell-Default-Plugins-Prereqs-0.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPANPLUS-Shell-Default-Plugins-Prereqs
%define upstream_version 0.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Plugin for CPANPLUS to automate

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CPANPLUS/CPANPLUS-Shell-Default-Plugins-Prereqs-%{upstream_version}.tar.gz

BuildRequires: perl(CPANPLUS)
BuildRequires: perl(CPANPLUS::Dist::Build)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch:     noarch

%description
A plugin for CPANPLUS's default shell which will display and/or install any
missing prerequisites for a module. The module can be specified by name, as
a URL or path to the directory of an unpacked module. The plugin assumes
the current directory if no module is specified.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
#make test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc  README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4351 |21cr|perl-CPAN-Recent-Uploads-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-Recent-Uploads
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Retrieves recentfiles from a CPAN mirror

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTTP::Daemon)
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Spec::Unix)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::RequiresInternet)
BuildRequires:	perl(URI)
BuildRequires:	perl(YAML::Syck)
BuildRequires:	perl(YAML::XS)
BuildArch:	noarch

%description
CPAN::Recent::Uploads provides a mechanism for obtaining a list of the
RECENT uploads to 'CPAN' as determined from the files produced by the
File::Rsync::Mirror::Recentfile manpage that exist in the 'authors/'
directory on 'CPAN'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4352 |21cr|perl-CPAN-Reporter-1.201.800-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-Reporter
%define upstream_version 1.2018

%global __requires_exclude perl\\(Win32::Job\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Adds CPAN Testers reporting to CPAN.pm

License:	Apache License
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/CPAN/CPAN-Reporter-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Archive::Tar)
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Config::Tiny)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Devel::Autoflush)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(IO::CaptureOutput)
BuildRequires:	perl-IPC-Cmd
BuildRequires:	perl(Parse::CPAN::Meta)
BuildRequires:	perl(Probe::Perl)
BuildRequires:	perl(Tee)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Reporter)
BuildRequires:	perl(Module::Build::Compat)

BuildArch:	noarch

%description
The CPAN Testers project captures and analyses detailed results from
building and testing CPAN distributions on multiple operating systems and
multiple versions of Perl. This provides valuable feedback to module
authors and potential users to identify bugs or platform compatibility
issues and improves the overall quality and value of CPAN.

One way individuals can contribute is to send a report for each module that
they test or install. CPAN::Reporter is an add-on for the CPAN.pm module to
send the results of building and testing modules to the CPAN Testers
project. Full support for CPAN::Reporter is available in CPAN.pm as of
version 1.92.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml README Changes LICENSE META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4353 |21cr|perl-CPAN-SQLite-0.219.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-SQLite
%define upstream_version 0.219

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Maintain and search a minimal CPAN database

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/ST/STRO/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(Archive::Tar) >= 1.900.0
BuildRequires:	perl(CPAN::DistnameInfo) >= 0.120.0
BuildRequires:	perl(DBD::SQLite) >= 1.460.0
BuildRequires:	perl(File::HomeDir) >= 1.0.0
BuildRequires:	perl(IO::Zlib) >= 1.100.0
BuildRequires:	perl(CPAN::HandleConfig)
BuildRequires:	perl(CPAN::Version) >= 5.500.300
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(IO::Handle) >= 0.10.0
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Scalar::Util) >= 1.420.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(CPAN) >= 2.100.0
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(Cwd) >= 3.470.0
BuildRequires:	perl(DBI)
BuildRequires:	perl(English)
BuildRequires:	perl(Exporter) >= 5.700.0
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path) >= 2.90.0
BuildRequires:	perl(File::Spec) >= 3.470.0
BuildRequires:	perl(File::Spec::Functions) >= 3.470.0
BuildRequires:	perl(Getopt::Long) >= 2.420.0
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(Safe) >= 2.350.0
BuildRequires:	perl(constant) >= 1.330.0
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(warnings)
BuildRequires:	perl(HTTP::Tiny)
BuildRequires:	perl(Test::Memory::Cycle)

BuildArch:	noarch

%description
This package is used for setting up, maintaining, and searching a CPAN
database consisting of the information stored in the three main CPAN
indices: _$CPAN/modules/03modlist.data.gz_,
_$CPAN/modules/02packages.details.txt.gz_, and
_$CPAN/authors/01mailrc.txt.gz_. It should be considered at an alpha stage
of development.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# test need internet connection (local test without error)
#make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml LICENSE
%{_mandir}/man?/*
%{perl_vendorlib}/*
%{_bindir}/cpandb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4354 |21cr|perl-CPAN-Test-Dummy-Perl5-Make-CircDepeOne-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CPAN-Test-Dummy-Perl5-Make-CircDepeOne
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	%{upstream_name} module for perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp.perl.org/pub/CPAN/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module is part of CPAN.pm with the single purpose of testing 
CPAN.pm itself.
Contains no functionality, and will never do so.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4355 |21cr|perl-CPAN-Test-Dummy-Perl5-Make-CircDepeThree-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CPAN-Test-Dummy-Perl5-Make-CircDepeThree
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	%{upstream_name} module for perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp.perl.org/pub/CPAN/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module is part of CPAN.pm with the single purpose of testing 
CPAN.pm itself.
Contains no functionality, and will never do so.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4356 |21cr|perl-CPAN-Test-Dummy-Perl5-Make-CircDepeTwo-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CPAN-Test-Dummy-Perl5-Make-CircDepeTwo
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	%{upstream_name} module for perl
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp.perl.org/pub/CPAN/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module is part of CPAN.pm with the single purpose of testing 
CPAN.pm itself.
Contains no functionality, and will never do so.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4357 |21cr|perl-CPAN-Uploader-0.103.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-Uploader
%define upstream_version 0.103016

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Upload things to the CPAN


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/CPAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(Getopt::Long::Descriptive)
BuildRequires:	perl(HTTP::Request::Common)
BuildRequires:	perl(HTTP::Status)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(LWP::Protocol::https)
BuildRequires:	perl(URI)

BuildArch:	noarch

%description
This code is mostly derived from cpan-upload-http by Brad Fitzpatrick,
which in turn was based on cpan-upload by Neil Bowers. I (rjbs) didn't
want to have to use a system call to run either of those, so I
refactored the code into this module.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/cpan-upload

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4358 |21cr|perl-CPS-0.190.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPS
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Iterate at some later point

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Module::Build)

BuildArch:  noarch


%description
Objects based on this abstract class are used by the 'gk*' variants of the
the CPS manpage functions, to control their behavior. These objects are
expected to provide a method, 'again', which the functions will use to
re-invoke iterations of loops, and so on. By providing a different
implementation of this method, governor objects can provide such behaviours
as rate-limiting, asynchronisation or parallelism, and integration with
event-based IO frameworks.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes META.yml README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4359 |21cr|perl-CQL-Parser-1.130.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CQL-Parser
%define upstream_version 1.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Compiles CQL strings into parse trees of Node subtypes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/B/BR/BRICAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Clone)
BuildRequires:	perl(String::Tokenizer)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::CPAN::Changes)
BuildRequires:	perl(inc::Module::Install)

BuildArch:	noarch

%description
CQL::Parser provides a mechanism to parse Common Query Language (CQL)
statements. The best description of CQL comes from the CQL homepage at
the Library of Congress <http://www.loc.gov/z3950/agency/zing/cql/>

CQL is a formal language for representing queries to information
retrieval systems such as web indexes, bibliographic catalogs and museum
collection information. The CQL design objective is that queries be
human readable and human writable, and that the language be intuitive
while maintaining the expressiveness of more complex languages.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/CQL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4360 |21cr|perl-criticism-1.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    criticism
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl pragma to enforce coding standards and best-practices

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/T/TH/THALJEF/criticism/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

Provides:	perl(criticism)

%description
This pragma enforces coding standards and promotes best-practices by
running your file through Perl::Critic before every execution. In a
production system, this usually isn't feasible because it adds a lot of
overhead at start-up. If you have a separate development environment, you
can effectively bypass the 'criticism' pragma by not installing
Perl::Critic in the production environment. If Perl::Critic can't be
loaded, then 'criticism' just fails silently.

Alternatively, the 'perlcritic' command-line (which is distributed with
Perl::Critic) can be used to analyze your files on-demand and has some
additional configuration features. And Test::Perl::Critic provides a nice
interface for analyzing files during the build process.

If you'd like to try Perl::Critic without installing anything, there is a
web-service available at the http://perlcritic.com manpage. The web-service
does not yet support all the configuration features that are available in
the native Perl::Critic API, but it should give you a good idea of what it
does. You can also invoke the perlcritic web-service from the command line
by doing an HTTP-post, such as one of these:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4361 |21cr|perl-Crypt-Blowfish-2.140.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Crypt-Blowfish
%define upstream_version 2.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7
Summary:	Perl Blowfish encryption module
License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-Blowfish-%{upstream_version}.tar.gz

Buildrequires:	 perl-devel

%description
Perl module to encrypt using the Blowfish algorithm.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README COPYRIGHT Changes
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/auto/Crypt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4362 |21cr|perl-Crypt-Blowfish_PP-1.120.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-Blowfish_PP
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Crypt::Blowfish_PP - Blowfish encryption algorithm implemented purely in Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MATTBM/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Crypt::Blowfish_PP module provides for users to use the Blowfish encryption
algorithm in perl. The implementation is entirely Object Oriented, as there is
quite a lot of context inherent in making blowfish as fast as it is. The key is
anywhere between 64 and 448 bits (8 and 56 bytes), and should be passed as a
packed string. The transformation itself is a 16-round Feistel Network, and
operates on a 64 bit block.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGELOG README
%{perl_vendorlib}/Crypt/Blowfish_PP.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4363 |21cr|perl-Crypt-CAST5-0.50.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-CAST5
%define upstream_version 0.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    12
Summary:	Crypt::CAST5 - CAST5 block cipher
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BO/BOBMATH/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel

%description
This module provides an implementation of the CAST5 block cipher using
compiled C code for increased speed. CAST5 is also known as CAST-128. It
is a product of the CAST design procedure developed by C. Adams and
S. Tavares. The CAST5 cipher is available royalty-free.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%dir %{perl_vendorarch}/auto/Crypt/CAST5
%{perl_vendorarch}/Crypt/CAST5.pm
%{perl_vendorarch}/auto/Crypt/CAST5/CAST5.so
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4364 |21cr|perl-Crypt-CAST5_PP-1.40.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Crypt-CAST5_PP
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	CAST5 block cipher in pure Perl

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides a pure Perl implementation of the CAST5 block cipher.
CAST5 is also known as CAST-128. It is a product of the CAST design procedure
developed by C. Adams and S. Tavares.

The CAST5 cipher is available royalty-free.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%__make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Crypt/*
%{perl_vendorlib}/auto/Crypt/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4365 |21cr|perl-Crypt-CBC-3.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Crypt-CBC
%define upstream_version 3.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Encrypt Data with Cipher Block Chaining Mode

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Crypt/Crypt-CBC-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Crypt::Rijndael)
BuildRequires:	perl(Crypt::Blowfish)
BuildRequires:	perl(Crypt::Blowfish_PP)
BuildRequires:	perl(Crypt::CAST5)
BuildRequires:	perl(Crypt::DES)
BuildRequires:	perl(Crypt::IDEA)
BuildRequires:	perl(Crypt::PBKDF2)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module is a Perl-only implementation of the cryptographic cipher
block chaining mode (CBC).  In combination with a block cipher such as
DES or IDEA, you can encrypt and decrypt messages of arbitrarily long
length.  The encrypted messages are compatible with the encryption
format used by SSLeay, and can be made compatible with the newer
OpenSSL package by specifying the -salt argument.

To use this module, you will first create a Crypt::CBC cipher object with
new().  At the time of cipher creation, you specify an encryption key
to use and, optionally, a block encryption algorithm.  You will then
call the start() method to initialize the encryption or decryption
process, crypt() to encrypt or decrypt one or more blocks of data, and
lastly finish(), to pad and encrypt the final block.  For your
convenience, you can call the encrypt() and decrypt() methods to
operate on a whole data value at once.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make


%check
make test

%install
%makeinstall_std

%files
%doc Changes README eg
%{perl_vendorlib}/Crypt
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4366 |21cr|perl-Crypt-CipherSaber-1.01-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Crypt-CipherSaber

Summary:	Perl upstream_name implementing CipherSaber encryption
Name:		perl-%{upstream_name}
Version:	1.01
Release:	3
License:	GPLv2 or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/upstream_names/by-upstream_name/Crypt/%{upstream_name}-%{version}.tar.gz
Patch0:         Crypt-CipherSaber-1.01-Fix-reading-IV-with-new-lines-from-a-file.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::Simple) >= 0.60
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	coreutils
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Scalar::Util) >= 1.4.2
BuildRequires:	perl(vars)
BuildRequires:	perl(File::Spec)
BuildRequires:  perl(Test::More) >= 1.1.9

Requires:       perl(Scalar::Util) >= 1.4.2
BuildArch:	noarch

%description
The Crypt::CipherSaber upstream_name implements 
CipherSaber encryption, described at
http://ciphersaber.gurus.com. 
It is simple, fairly speedy, and relatively
secure algorithm based on RC4.

%prep
%setup -qn %{upstream_name}-%{version}
%patch0 -p1
chmod 644 t/smiles.png

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
#Remove the debug files which get created, causing failure of the contents check
rm *.list
./Build test

%install
./Build install destdir=%{buildroot}

%files 
%doc Changes README
%{perl_vendorlib}/Crypt
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4367 |21cr|perl-Crypt-DES-2.70.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Crypt-DES
%define upstream_version 2.07

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Perl DES encryption module

Source0:	http://www.cpan.org/authors/id/D/DP/DPARIS/Crypt-DES-2.07.tar.gz
Url:            http://search.cpan.org/dist/%{module}/
BuildRequires:	perl-devel
# avoid build dependency on perl-Crypt-CBC to avoid dependency cycles
# https://qa.mandriva.com/show_bug.cgi?id=43033

%description
The module implements the Crypt::CBC interface.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README COPYRIGHT
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/auto/Crypt
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4368 |21cr|perl-Crypt-DES_EDE3-0.10.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-DES_EDE3
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Triple-DES EDE encryption/decryption

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is Crypt::DES_EDE3, a module implementing Triple-DES EDE
(encrypt-decrypt-encrypt) encryption and decryption.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%files
%doc MANIFEST README
%{perl_vendorlib}/Crypt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4369 |21cr|perl-Crypt-DH-0.70.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Crypt-DH
%define upstream_version 0.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Diffie-Hellman key exchange system

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://search.cpan.org/CPAN/authors/id/B/BT/BTROTT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(JSON::PP)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Math::BigInt) >= 1.600.0
BuildRequires: perl(Math::BigInt::GMP) >= 1.240.0
BuildRequires: perl(Math::BigInt::Pari)
BuildRequires: perl(Test::More) >= 0.470.0
BuildRequires: perl(Crypt::Random)
BuildRequires: perl-devel
BuildArch:  noarch

%description 
Crypt::DH is a Perl implementation of the Diffie-Hellman key exchange system.
Diffie-Hellman is an algorithm by which two parties can agree on a shared
secret key, known only to them. The secret is negotiated over an insecure
network without the two parties ever passing the actual shared secret, or
their private keys, between them.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{perl_vendorlib}/Crypt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4370 |21cr|perl-Crypt-DH-GMP-0.0.120-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# private-shared-object-provides
%global __provides_exclude GMP.so

%define upstream_name    Crypt-DH-GMP
%define upstream_version 0.00012

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Compatibility Mode For Crypt::DH

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Devel::CheckLib) >= 0.400.0
BuildRequires: perl(Devel::PPPort) >= 3.190.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.420.0
BuildRequires: perl(ExtUtils::ParseXS) >= 2.210.0
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(XSLoader) >= 0.20.0
BuildRequires: gmp-devel
BuildRequires: perl-devel

%description
Crypt::DH::GMP is a (somewhat) portable replacement to Crypt::DH,
implemented mostly in C.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4371 |21cr|perl-Crypt-DSA-1.170.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Crypt-DSA
%define upstream_version 1.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10
Summary:	DSA Signatures and Key Generation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%upstream_name/
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Convert::PEM)
BuildRequires:	perl(Crypt::DES_EDE3)
BuildRequires:	perl(Crypt::Random)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Data::Buffer) >= 0.01
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Which) >= 0.05
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Math::BigInt) >= 1.78
BuildRequires:	perl(Perl::MinimumVersion) >= 1.20
BuildRequires:	perl(Test::CPAN::Meta) >= 0.12
BuildRequires:	perl(Test::More) >= 0.42
BuildRequires:	perl(Test::MinimumVersion) >= 0.008
BuildRequires:	perl(Test::Pod) >= 1.26
BuildRequires:	openssl
# Crypt::DSA::Keychain calls openssl for DSA parameter generation
Requires:	openssl
# Pull in Math::BigInt::GMP for GMP support for suitably recent versions of Math::BigInt
# else use Math::GMP
%if %(%{__perl} -MMath::BigInt -e 'use Math::BigInt 1.87;' 2>/dev/null && echo 1 || echo 0)
BuildRequires:	perl(Math::BigInt::GMP)
Requires:	perl(Math::BigInt::GMP)
%else
BuildRequires:	perl(Math::GMP)
Requires:	perl(Math::GMP)
%endif
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Crypt::DSA is an implementation of the DSA (Digital Signature Algorithm)
signature verification system. The implementation itself is pure Perl, although
the heavy-duty mathematics underneath are provided by the Math::Pari library.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test AUTOMATED_TESTING=1

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Crypt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4372 |21cr|perl-Crypt-ECB-2.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-ECB
%define upstream_version 2.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Use block ciphers using ECB mode
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildArch:     noarch

%description
This module is a Perl-only implementation of the ECB mode. In combination
with a block cipher such as Blowfish, DES, IDEA or Rijndael, you can
encrypt and decrypt messages of arbitrarily long length. Though for
security reasons other modes than ECB such as CBC should be preferred. See
textbooks on cryptography if you want to know why.

The functionality of the module can be accessed via OO methods or via
standard function calls. Remember that some block cipher module like for
example Crypt::Blowfish has to be installed. The syntax of Crypt::ECB
follows that of Crypt::CBC.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4373 |21cr|perl-Crypt-Eksblowfish-0.9.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-Eksblowfish
%define upstream_version 0.009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	7

Summary:    Blowfish-based Unix crypt() password hash

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Class::Mix)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel

%description
An object of this type encapsulates a keyed instance of the Eksblowfish
block cipher, ready to encrypt and decrypt.

Eksblowfish is a variant of the Blowfish cipher, modified to make the key
setup very expensive. ("Eks" stands for "expensive key schedule".) This
doesn't make it significantly cryptographically stronger, but is intended
to hinder brute-force attacks. It also makes it unsuitable for any
application requiring key agility. It was designed by Niels Provos and
David Mazieres for password hashing in OpenBSD. See the
Crypt::Eksblowfish::Bcrypt manpage for the hash algorithm. See the
Crypt::Eksblowfish::Blowfish manpage for the unmodified Blowfish cipher.

Eksblowfish is a parameterised (family-keyed) cipher. It takes a cost
parameter that controls how expensive the key scheduling is. It also takes
a family key, known as the "salt". Cost and salt parameters together define
a cipher family. Within each family, a key determines an encryption
function in the usual way. See the Crypt::Eksblowfish::Family manpage for a
way to encapsulate an Eksblowfish cipher family.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4374 |21cr|perl-Crypt-IDEA-1.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Crypt-IDEA
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Perl interface to IDEA block cipher
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Crypt/Crypt-IDEA-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description 
This perl extension is an implementation of the IDEA block
cipher algorithm. The module implements the
Crypt::BlockCipher interface, which has the following
methods

blocksize =item keysize =item encrypt =item decrypt

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%doc COPYRIGHT
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/auto/Crypt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4375 |21cr|perl-Crypt-MySQL-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-MySQL
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    Emulate MySQL PASSWORD() function

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Digest::SHA1)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel

%description
Crypt::MySQL emulates MySQL PASSWORD() SQL function, without
libmysqlclient. You can compare encrypted passwords, without real MySQL
environment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4376 |21cr|perl-Crypt-OpenPGP-1.120.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Crypt-OpenPGP
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Pure-Perl OpenPGP implementation

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/S/SR/SROMANOV/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(Crypt::Blowfish)
BuildRequires:	perl(Crypt::CAST5_PP)
BuildRequires:	perl(Crypt::DES_EDE3)
BuildRequires:	perl(Crypt::DSA)
BuildRequires:	perl(Crypt::IDEA)
BuildRequires:	perl(Crypt::Rijndael)
BuildRequires:	perl(Crypt::RIPEMD160)
BuildRequires:	perl(Crypt::RSA)
BuildRequires:	perl(Crypt::Twofish) >= 2.00
BuildRequires:	perl(Data::Buffer) >= 0.04
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Math::Pari)
BuildRequires:	perl(MIME::Base64) >= 3.07
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(Data::Random)

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Crypt::OpenPGP is a pure-Perl implementation of the OpenPGP stan- dard[1]. In
addition to support for the standard itself, Crypt::OpenPGP claims
compatibility with many other PGP implementations, both those that support the
standard and those that preceded it.

Crypt::OpenPGP provides signing/verification, encryption/decryption, keyring
management, and key-pair generation; in short it should provide you with
everything you need to PGP-enable yourself. Alternatively it can be used as
part of a larger system; for example, perhaps you have a web-form-to-email
generator written in Perl, and you'd like to encrypt outgoing messages, because
they contain sensitive information.  Crypt::OpenPGP can be plugged into such a
scenario, given your public key, and told to encrypt all messages; they will
then be readable only by you.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm -f t/07-digest.t

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# this test works under iurt as user, but not under build system
rm -f t/07-digest.t
#make test

%install
%makeinstall_std

%files
%doc README
%{_bindir}/*
%{perl_vendorlib}/Crypt/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4377 |21cr|perl-Crypt-OpenSSL-Bignum-0.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Crypt-OpenSSL-Bignum
%define upstream_version 0.06
%global __provides_exclude Bignum.so


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	%{upstream_name} module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	pkgconfig(libssl)
BuildRequires:	perl-devel
BuildRequires:	perl

%description
A Perl interface to OpenSSL's multiprecision integer arithmetic libraries.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x Changes README Bignum.xs

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make 

# % check
# % make test

%install
%makeinstall_std
find %{buildroot}%{perl_vendorarch} -name '*.pm' |xargs chmod 0644

%files
%doc Changes README META.json META.yml
%{perl_vendorarch}/auto/Crypt
%{perl_vendorarch}/Crypt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4378 |21cr|perl-Crypt-OpenSSL-DSA-0.200.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-OpenSSL-DSA
%define upstream_version 0.20
%global __provides_exclude DSA.so


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Digital Signature Algorithm using OpenSSL

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/K/KM/KMX/Crypt-OpenSSL-DSA-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	pkgconfig(libssl)

%description
Crypt::OpenSSL::DSA implements the DSA 
(Digital Signature Algorithm) signature verification system.

It is a thin XS wrapper to the DSA functions contained in the 
OpenSSL crypto library, located at http://www.openssl.org

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# perl path hack
find . -type f | xargs %{__perl} -p -i -e "s|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|g"
chmod -x Changes README DSA.xs

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
chmod -x %{buildroot}%{perl_vendorarch}/Crypt/OpenSSL/DSA/Signature.pod \
  %{buildroot}%{perl_vendorarch}/Crypt/OpenSSL/DSA.pm
  
%files
%doc Changes README META.json META.yml
%{perl_vendorarch}/auto/Crypt
%{perl_vendorarch}/Crypt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4379 |21cr|perl-Crypt-OpenSSL-EC-1.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-OpenSSL-EC
%define upstream_version 1.32

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl extension for OpenSSL EC (Elliptic Curves) library
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Crypt::OpenSSL::Bignum)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildRequires: pkgconfig(libssl)

%description
This module provides a standard (non-OO) interface to the OpenSSL EC
(Elliptic Curve) library. Some OO Calls are supported.

Most of the functions described in openssl/ec.h are supported.

It provides the Crypt::OpenSSL::EC class which defines some high level
functions and constants. At also provides 4 other classes for managing EC
objects:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4380 |21cr|perl-Crypt-OpenSSL-ECDSA-0.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-OpenSSL-ECDSA
%define upstream_version 0.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl extension for OpenSSL ECDSA (Elliptic Curve Digital Signature Algorithm)
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Crypt::OpenSSL::Bignum)
BuildRequires: perl(Crypt::OpenSSL::EC) >= 1.10.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildRequires: pkgconfig(libssl)



%description
This module provides an interface to the ECDSA (Elliptic Curve Digital
Signature Algorithm) functions in OpenSSL

Tested against OpenSSL 1.0.2

Export
    None by default.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4381 |21cr|perl-Crypt-PBKDF2-0.161520-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The PBKDF2 password hashing algorithm
Name:		perl-Crypt-PBKDF2
Version:	0.161520
Release:	13
License:	GPL+ or Artistic
Group:          Development/Perl
URL:		https://metacpan.org/release/Crypt-PBKDF2
Source0:	https://cpan.metacpan.org/modules/by-module/Crypt/Crypt-PBKDF2-%{version}.tar.gz
BuildArch:	noarch
# Module Build
BuildRequires:	coreutils
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
# Module Runtime
BuildRequires:	perl(Carp)
BuildRequires:	perl(Digest) >= 1.16
BuildRequires:	perl(Digest::HMAC) >= 1.01
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Digest::SHA3) >= 0.22
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Moo) >= 2
BuildRequires:	perl(Moo::Role) >= 2
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(strictures) >= 2
BuildRequires:	perl(Try::Tiny) >= 0.04
BuildRequires:	perl(Type::Tiny)
BuildRequires:	perl(Types::Standard) >= 1.000005
# Test Suite
BuildRequires:	perl(constant)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
# Runtime
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
PBKDF2 is a secure password hashing algorithm that uses the techniques of "key
strengthening" to make the complexity of a brute-force attack arbitrarily high.
PBKDF2 uses any other cryptographic hash or cipher (by convention, usually
HMAC-SHA1, but Crypt::PBKDF2 is fully pluggable), and allows for an arbitrary
number of iterations of the hashing function, and a nearly unlimited output
hash size (up to 2**32-1 times the size of the output of the backend hash).
The hash is salted, as any password hash should be, and the salt may also be of
arbitrary size.

%prep
%setup -q -n Crypt-PBKDF2-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make

%install
%makeinstall_std
%{_fixperms} -c %{buildroot}

%check
make test

%files
%license LICENSE
%doc Changes
%{perl_vendorlib}/Crypt/
%{_mandir}/man3/Crypt::PBKDF2.3*
%{_mandir}/man3/Crypt::PBKDF2::Hash.3*
%{_mandir}/man3/Crypt::PBKDF2::Hash::DigestHMAC.3*
%{_mandir}/man3/Crypt::PBKDF2::Hash::HMACSHA1.3*
%{_mandir}/man3/Crypt::PBKDF2::Hash::HMACSHA2.3*
%{_mandir}/man3/Crypt::PBKDF2::Hash::HMACSHA3.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4382 |21cr|perl-Crypt-Primes-0.500.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-Primes
%define upstream_version 0.50

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	14

Summary:	Provable Prime Number Generator suitable for Cryptographic Application

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/V/VI/VIPUL/%{upstream_name}-%{upstream_version}.tar.gz
# https://rt.cpan.org/Public/Bug/Display.html?id=130556
Patch0:		Crypt-Primes-0.50-more-stack.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Crypt::Random)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module implements Ueli Maurer's algorithm for
generating large provable primes and secure parameters
for public-key cryptosystems. The generated primes are
almost uniformly distributed over the set of primes of
the specified bitsize and expected time for generation
is less than the time required for generating a
pseudo-prime of the same size with Miller-Rabin tests.
Detailed description and running time analysis of the
algorithm can be found in Maurer's paper[1].

Crypt::Primes is a pure perl implementation. It uses
Math::Pari for multiple precision integer arithmetic
and number theoretic functions. Random numbers are
gathered with Crypt::Random, a perl interface to
/dev/u?random devices found on most modern Unix operating
systems.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0

%build
CFLAGS="%{optflags}" echo | %__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_bindir}/largeprimes
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4383 |21cr|perl-Crypt-Random-1.540.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Crypt-Random
%define	upstream_version 1.54

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	%{upstream_name} Perl module

License:	Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/V/VI/VIPUL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Crypt::Random is an interface module to the /dev/random device found on most
modern Unix systems. The /dev/random driver gathers environmental noise from
various non-deterministic sources including inter-keyboard timings and
inter-interrupt timings that occur within the operating system environment.
The /dev/random driver maintains an estimate of true randomness in the pool and
decreases it every time random strings are requested for use. When the estimate
goes down to zero, the routine blocks and waits for the occurrence of
non-deterministic events to refresh the pool.
The /dev/random kernel module also provides another interface, /dev/urandom,
that does not wait for the entropy-pool to recharge and returns as many bytes
as requested. /dev/urandom is considerably faster at generation compared to
/dev/random, which should be used only when very high quality randomness is
desired.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes README 
%{_bindir}/*
%{perl_vendorlib}/Crypt/*.pm
%{perl_vendorlib}/Crypt/Random
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4384 |21cr|perl-Crypt-Random-Source-0.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-Random-Source
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Base class for random devices
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Any::Moose)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Load)
BuildRequires: perl(Errno)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Select)
BuildRequires: perl(Module::Find)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(Test::use::ok)
BuildRequires: perl(Module::Build::Tiny) >= 0.39.0
BuildRequires: perl(Moo)
BuildRequires: perl(Types::Standard)
BuildRequires: perl(Test::Fatal)

BuildArch:	noarch

%description
This module provides implementations for a number of byte oriented sources
of random data.

See the Crypt::Random::Source::Factory manpage for a more powerful way to
locate sources, and the various sources for specific implementations.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
mv LICENCE LICENSE
chmod 644 Changes

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4385 |21cr|perl-Crypt-RandPasswd-0.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Crypt-RandPasswd
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Random password generator based on FIPS-181


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This code is a Perl language implementation of the Automated Password Generator
standard, like the program described in "A Random Word Generator For
Pronounceable Passwords" (not available on-line). This code is a re-engineering
of the program contained in Appendix A of FIPS Publication 181, "Standard for
Automated Password Generator". In accordance with the standard, the results
obtained from this program are logically equivalent to those produced by the
standard.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes README
%{perl_vendorlib}/Crypt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4386 |21cr|perl-Crypt-RC4-2.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-RC4
%define upstream_version 2.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Crypt-RC4 module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides a simple implementation of the RC4 algorithm.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Crypt/RC4.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4387 |21cr|perl-Crypt-Rijndael-1.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Crypt-Rijndael
%define upstream_version 1.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Crypt::CBC compliant Rijndael encryption module
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
This module implements the Rijndael cipher, which has just been selected as the
Advanced Encryption Standard.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc NEWS README
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/auto/Crypt
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4388 |21cr|perl-Crypt-RIPEMD160-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-RIPEMD160
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Crypt-RIPEMD160 module for perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/T/TO/TODDR/Crypt-RIPEMD160-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
The %{upstream_name} module/extension allows you to use the RIPEMD160 Message
Digest algorithm from within Perl programs.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e "s,/usr/local/bin/perl,%{_bindir}/perl," misc/ripemd160_driver.pl

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
find misc -type f -exec chmod 0644 {} \;

%clean 

%files
%doc README misc/*
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4389 |21cr|perl-Crypt-Rot13-0.600.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-Rot13
%define upstream_version 0.6

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Crypt-Rot13 module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
rot13 is a simple encryption in which ASCII letters are rotated 13 places. This
module provides an array object with methods to encrypt its string elements by
rotating ASCII letters n places down the alphabet.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes COPYING README
%{perl_vendorlib}/Crypt/Rot13.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4390 |21cr|perl-Crypt-RSA-1.990.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-RSA
%define upstream_version 1.99

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	13

Summary:	RSA public-key cryptosystem

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/V/VI/VIPUL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Crypt::Blowfish)
BuildRequires:	perl(Crypt::CBC)
BuildRequires:	perl(Digest::MD2)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Convert::ASCII::Armour)
BuildRequires:	perl(Crypt::Primes)
BuildRequires:	perl(Sort::Versions)
BuildRequires:	perl(Tie::EncryptedHash)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Crypt::RSA is a pure-perl, cleanroom implementation of the
RSA public-key cryptosystem. It uses Math::Pari(3), a perl
interface to the blazingly fast PARI library, for big
integer arithmetic and number theoretic computations.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4391 |21cr|perl-Crypt-SaltedHash-0.90.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-SaltedHash
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Working with salted hashes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/Crypt-SaltedHash-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Digest)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
The 'Crypt::SaltedHash' module provides an object oriented interface to
create salted (or seeded) hashes of clear text data. The original
formalization of this concept comes from RFC-3112 and is extended by the
use of different digital agorithms.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Crypt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4392 |21cr|perl-Crypt-SMIME-0.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-Crypt-SMIME
Version:        0.28
Release:        1
Summary:        S/MIME message signing, verification, encryption and decryption
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Crypt-SMIME
Source0:        https://cpan.metacpan.org/modules/by-module/Crypt/Crypt-SMIME-%{version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  openssl-devel
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::CChecker)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(XSLoader)
# Tests
BuildRequires:  openssl
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::PkgConfig)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Taint::Util)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::Taint)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

#Add a test sub package.
%{?perl_default_subpackage_tests}

%description
This module provides a class for handling S/MIME messages. It can sign,
verify, encrypt and decrypt messages. It requires libcrypto
(http://www.openssl.org) to work.

%prep
%setup -q -n Crypt-SMIME-%{version}
# As part of the rpm process we generate some .list files which
# then cause t/manifest.t to fail.
echo '\.list$' >> MANIFEST.SKIP

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%make_build

%install
make pure_install DESTDIR=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -delete
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete
find $RPM_BUILD_ROOT -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%files
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Crypt*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4393 |21cr|perl-Crypt-Twofish-2.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-Twofish
%define upstream_version 2.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Crypt-Twofish module for perl 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Crypt/Crypt-Twofish-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)

%description
Twofish is a 128-bit symmetric block cipher with a variable length (128, 192,
or 256-bit) key, developed by Counterpane Labs. It is unpatented and free for
all uses, as described at http://www.counterpane.com/twofish.html.

This module implements Twofish encryption. It supports the Crypt::CBC interface

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4394 |21cr|perl-Crypt-UnixCrypt-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name Crypt-UnixCrypt

Summary:	Crypt-UnixCrypt module for perl 

Name:		perl-%{real_name}
Version:	1.0
Release:	10
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{real_name}
Source0:	%{real_name}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module is for all those poor souls whose perl port answers to the
use of crypt() with the message `The crypt() function is unimplemented
due to excessive paranoia.'.

%prep
%setup -q -n %{real_name}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%clean 

%files
%doc CHANGES README
%{perl_vendorlib}/Crypt/UnixCrypt.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4395 |21cr|perl-Crypt-UnixCrypt_XS-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-UnixCrypt_XS
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl-xs implementation of crypt(3)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/Crypt-UnixCrypt_XS-%{upstream_version}.tar.gz
Patch0:		Crypt-UnixCrypt_XS-0.10-debug.patch

BuildRequires: perl-devel

%description
This module implements the DES-based Unix _crypt_ function. For those who
need to construct non-standard variants of _crypt_, the various building
blocks used in _crypt_ are also supplied separately.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4396 |21cr|perl-CryptX-0.77.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CryptX
%define upstream_version 0.077

# Enable JSON support
%bcond_without perl_CryptX_enables_json
# Run optional test
%bcond_without perl_CryptX_enables_optional_test

Name:           perl-CryptX
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Cryptographic toolkit
Group:          Development/Perl
# Other file:   GPL+ or Artistic
## Unbundled
# src/ltc/hashes/blake2s.c: CC0 or OpenSSL or ASL 2.0
# src/ltc/stream/rc4/rc4.c: Public Domain
# src/ltm/bncore.c:         Public Domain
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/CryptX
Source0:        https://cpan.metacpan.org/authors/id/M/MI/MIK/CryptX-%{upstream_version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  gcc
BuildRequires:  pkgconfig(libtomcrypt)
BuildRequires:  pkgconfig(libtommath)
BuildRequires:  make
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(XSLoader)
# Optional run-time:
%if %{with perl_CryptX_enables_json}
# Cpanel::JSON::XS or JSON::XS or JSON::PP
BuildRequires:  perl(Cpanel::JSON::XS)
%endif
# Tests:
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Test)
BuildRequires:  perl(Test::More)
%if %{with perl_CryptX_enables_optional_test}
# Optional tests:
BuildRequires:  perl(File::Find)
BuildRequires:  perl(Math::BigFloat) >= 1.999715
BuildRequires:  perl(Math::BigInt) >= 1.9997
BuildRequires:  perl(Math::Complex)
BuildRequires:  perl(Storable) >= 2.0
BuildRequires:  perl(Test::Pod)
%endif
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if %{with perl_CryptX_enables_json}
# Cpanel::JSON::XS or JSON::XS or JSON::PP
Recommends:     perl(Cpanel::JSON::XS)
%endif

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Math::BigFloat|Math::BigInt|Storable)\\)$
# Remove private modules
%global __requires_exclude %{__requires_exclude}|^perl\\(\\.::
# Remove disabled modules, libtomcrypt-1.8.2 does not support ECC
%global __requires_exclude %{__requires_exclude}|^perl\\(Crypt::PK::ECC\\)

%description
This Perl library provides a cryptography based on LibTomCrypt library.

ECC support is disabled because it's not yet fully supported by LibTomCrypt.

%package tests
Summary:        Tests for %{name}
BuildArch:      noarch
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires:       coreutils
Requires:       perl-Test-Harness
%if %{with perl_CryptX_enables_json}
# Cpanel::JSON::XS or JSON::XS or JSON::PP
Requires:       perl(Cpanel::JSON::XS)
%endif
%if %{with perl_CryptX_enables_optional_test}
Requires:       perl(File::Find)
Requires:       perl(Math::BigFloat) >= 1.999715
Requires:       perl(Math::BigInt) >= 1.9997
Requires:       perl(Math::Complex)
Requires:       perl(Storable) >= 2.0
%endif

%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".

%prep
%setup -q -n CryptX-%{upstream_version}
# Remove unsed tests
%if !%{with perl_CryptX_enables_optional_test}
for F in t/002_all_pm.t t/003_all_pm_pod.t t/mbi_ltm_bigfltpm.t \
        t/mbi_ltm_bigintpm.t t/mbi_ltm_biglog.t t/mbi_ltm_bigroot.t \
        t/mbi_ltm/bigintpm.inc t/mbi_ltm/bigfltpm.inc t/mbi_ltm_storable.t; do
    rm "${F}"
    perl -i -ne 'print $_ unless m{\A\Q'"${F}"'\E}' MANIFEST
done
%endif
# Help generators to recognize Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
%{make_build}

%install
%{make_install}
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} %{buildroot}/*
# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
%if %{with perl_CryptX_enables_optional_test}
rm %{buildroot}%{_libexecdir}/%{name}/t/{002_all_pm,003_all_pm_pod}.t
%endif
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/bash
set -e
# t/crypt-misc.t writes into CWD
DIR=$(mktemp -d)
cp -a %{_libexecdir}/%{name}/t "$DIR"
pushd "$DIR"
prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
popd
rm -r "$DIR"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test

%check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test

%files
%license LICENSE
%doc Changes README.md
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/CryptX.pm
%{perl_vendorarch}/Math
%{_mandir}/man3/*

%files tests
%{_libexecdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4397 |21cr|perl-Crypt-X509-0.540.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-X509
%define upstream_version 0.54

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Parse a X.509 certificate
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://cpan.metacpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Convert::ASN1) >= 0.190.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Test::More)
BuildArch:  noarch

%description
*Crypt::X509* parses X.509 certificates. Methods are provided for accessing
most certificate elements.

It is based on the generic ASN.1 module by Graham Barr, on the _x509decode_
example by Norbert Klasen and contributions on the
perl-ldap-dev-Mailinglist by Chriss Ridd.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
make test

%install
%make_install

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4398 |21cr|perl-CSS-1.90.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CSS
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Object oriented access to Cascading Style Sheets (CSS) 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/I/IA/IAMCAL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Parse::RecDescent)
BuildArch:	noarch

%description
This module can be used, along with a CSS::Parse::* module, to parse
CSS data and represent it as a tree of objects. Using a CSS::Adaptor::*
module, the CSS data tree can then be transformed into other formats.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README examples
%{perl_vendorlib}/CSS.pm
%{perl_vendorlib}/CSS
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4399 |21cr|perl-CSS-DOM-0.170.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name CSS-DOM
%define upstream_version 0.17

Name:		perl-%{upstream_name}
Summary:	Perl module for Document Object Model for Cascading Style Sheets
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/~sprout/CSS-DOM/
Source0:	http://www.cpan.org/authors/id/S/SP/SPROUT/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Clone)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(constant)
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
This module implements a CSS-specific subset of the interfaces
described in the W3C DOM specification.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/CSS/DOM.pm
%{perl_vendorlib}/CSS/DOM/
%{_mandir}/man3/CSS::DOM*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4400 |21cr|perl-CSS-Minifier-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CSS-Minifier
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Remove unnecessary whitespace from CSS files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CSS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildArch:	noarch

%description
This module removes unnecessary whitespace from CSS. The primary
requirement developing this module is to not break working stylesheets: if
working CSS is in input then working CSS is output. The Mac/Internet
Explorer comment hack will be minimized but not stripped and so will
continue to function.

This module understands space, horizontal tab, new line, carriage return,
and form feed characters to be whitespace. Any other characters that may be
considered whitespace are not minimized. These other characters include
paragraph separator and vertical tab.

For static CSS files, it is recommended that you minify during the build
stage of web deployment. If you minify on-the-fly then it might be a good
idea to cache the minified file. Minifying static files on-the-fly
repeatedly is wasteful.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4401 |21cr|perl-CSS-Minifier-XS-0.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CSS-Minifier-XS
%define upstream_version 0.13

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    XS based CSS minifier

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/CSS/CSS-Minifier-XS-%{upstream_version}.tar.gz

BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel

%description
'CSS::Minifier::XS' is a CSS "minifier"; its designed to remove
un-necessary whitespace and comments from CSS files, while also *not*
breaking the CSS.

'CSS::Minifier::XS' is similar in function to 'CSS::Minifier', but is
substantially faster as its written in XS and not just pure Perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4402 |21cr|perl-CSS-Squish-0.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CSS-Squish
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Compact many CSS files into one big file 

License:	Artistic or GPL+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CSS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::LongString)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
This module takes a list of CSS files and concatenates them, making sure to 
honor any valid @import statements included in the files.

Following the CSS 2.1 spec, @import statements must be the first rules in 
a CSS file. Media-specific @import statements will be honored by enclosing 
the included file in an @media rule. This has the side effect of actually 
improving compatibility in Internet Explorer, which ignores media-specific 
@import rules but understands @media rules.

It is possible that feature versions will include methods to compact 
whitespace and other parts of the CSS itself, but this functionality 
is not supported at the current time.

%prep
%setup -q -n CSS-Squish-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{perl_vendorlib}/CSS/
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4403 |21cr|perl-CSS-Tiny-1.190.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CSS-Tiny
%define upstream_version 1.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Read/Write .css files with as little code as possible

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CSS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
CSS::Tiny is a perl class to read and write .css stylesheets with as
little code as possible, reducing load time and memory overhead.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{perl_vendorlib}/CSS
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4404 |21cr|perl-Cstools-3.420.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Cstools
%define	upstream_version 3.42

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Tools for dealing with Czech and Slovak texts in Perl

License:	GPL
Group:		Development/Perl
Url:		http://www.fi.muni.cz/~adelton/perl/
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This package includes modules that are useful when dealing with Czech (and
Slovak) texts in Perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc README
%{_bindir}/*
%dir %{perl_vendorlib}/Cz
%{perl_vendorlib}/Cz/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4405 |21cr|perl-curry-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    curry
%define upstream_version 2.000001

Name:           perl-curry
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Create automatic curried method call closures for any class or object
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/curry
Source0:        https://cpan.metacpan.org/authors/id/M/MS/MSTROUT/curry-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Scalar::Util)
# Tests
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This modules creates automatic curried method call closures for any class
or object.

%prep
%setup -q -n curry-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4406 |21cr|perl-CursesForms-1.997.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CursesForms
%define upstream_version 1.997

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Form management for Curses::Widgets

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Curses/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Curses)
BuildRequires:	perl(Curses::Widgets)

BuildArch:	noarch

%description
Curses::Forms provide a simple framework for OO forms. The Forms module
itself provides a basic class from which extended forms can be derived, or,
it can be used as-is to control forms populated with widgets. More
specialised forms are also available under *Curses::Forms::Dialog*.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests require human input
#make test

%install
%makeinstall_std

%files
%doc CHANGELOG LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4407 |21cr|perl-Curses-Toolkit-0.211.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Curses-Toolkit
%define upstream_version 0.211

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	An about dialog window

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Curses/Curses-Toolkit-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Curses)
BuildRequires:	perl(Curses::UI)
BuildRequires:	perl(English)
BuildRequires:	perl(IO::Pty::Easy)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::FollowPBP)
BuildRequires:	perl(MooseX::Has::Sugar)
BuildRequires:	perl(Moose::Meta::Attribute::Custom::Trait::Chained)
BuildRequires:	perl(POE)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Tie::Array::Iterable)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(aliased)
BuildRequires:	perl(overload)
BuildRequires:	perl(parent)

BuildArch:	noarch

%description
This module tries to be a modern curses toolkit, based on the Curses
module, to build "semi-graphical" user interfaces easily.

*WARNING* : This is still in "beta" version, not all the features are
implemented, and the API may change. However, most of the components are
there, and things should not change that much in the future... Still, don't
use it in production, and don't consider it stable.

the Curses::Toolkit manpage is meant to be used with a mainloop, which is
not part of this module. I recommend you the POE::Component::Curses
manpage, which is probably what you want. the POE::Component::Curses
manpage uses Curses::Toolkit, but provides a mainloop and handles keyboard,
mouse, timer and other events, whereas Curses::Toolkit is just the drawing
library. See the example above. the 'spawn' method returns a the
Curses::Toolkit manpage object, which you can call methods on.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4408 |21cr|perl-CursesWidgets-1.997.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CursesWidgets
%define upstream_version 1.997

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Assorted widgets for rapid interface design

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Curses/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Curses)
BuildArch:	noarch

%description
This module serves two purposes: to provide a framework for creating custom
widget classes, and importing a few useful functions for global use.

Widget specific methods are documented in each Widget's pod.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests require human input
#make test

%install
%makeinstall_std

%files
%doc CHANGELOG LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4409 |21cr|perl-Dancer-1.351.300-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dancer
%define upstream_version 1.3513

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Template Toolkit wrapper for Dancer
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BI/BIGPRESH/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Encode)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(HTTP::Body)
BuildRequires:	perl(HTTP::Server::Simple::CGI)
BuildRequires:	perl(HTTP::Server::Simple::PSGI)
BuildRequires:	perl(LWP)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(MIME::Types)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(URI)
BuildRequires:	perl(Hash::Merge::Simple)
BuildRequires:	perl(Devel::Hide)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(Template::Provider::FromDATA)
BuildRequires:	perl(Test::Simple) >= 1.302.30
BuildRequires:	perl(Test::utf8)
BuildArch:	noarch

%description
Dancer is a web application framework designed to be as effortless as
possible for the developer, taking care of the boring bits as easily as
possible, yet staying out of your way and letting you get on with writing
your code.

Dancer aims to provide the simplest way for writing web applications, and
offers the flexibility to scale between a very simple lightweight web
service consisting of a few lines of code in a single file, all the way up
to a more complex fully-fledged web application with session support,
templates for views and layouts, etc.

If you don't want to write CGI scripts by hand, and find Catalyst too big
or cumbersome for your project, Dancer is what you need.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc AUTHORS README Changes META.yml LICENSE CONTRIBUTORS
%{_bindir}/dancer
%{_mandir}/man1/dancer.1*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4410 |21cr|perl-Dancer2-0.400.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dancer2
%define upstream_version 0.400000

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Template Toolkit reimplemented in as little code as possible
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/C/CR/CROMEDOME/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(App::Cmd::Setup)
BuildRequires: perl(Capture::Tiny) >= 0.120.0
BuildRequires: perl(Carp)
BuildRequires: perl(CLI::Osprey)
BuildRequires: perl(Class::Load)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Config::Any)
BuildRequires: perl(Clone)
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter) >= 5.570.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Share)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::ShareDir::Install) >= 0.30.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp) >= 0.220.0
BuildRequires: perl(FindBin)
BuildRequires: perl(Foo)
BuildRequires: perl(HTTP::Body)
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(HTTP::Headers)
BuildRequires: perl(HTTP::Headers::Fast)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(HTTP::Server::PSGI)
BuildRequires: perl(Hash::Merge::Simple)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(Import::Into)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::Protocol::PSGI) >= 0.060.0
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(List::Util)
BuildRequires: perl(MIME::Base64) >= 3.130.0
BuildRequires: perl(MIME::Types)
BuildRequires: perl(Module::Build) >= 0.360.100
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moo) >= 1.3.0
BuildRequires: perl(Moo::Role)
BuildRequires: perl(MooX::Types::MooseLike) >= 0.160.0
BuildRequires: perl(MooX::Types::MooseLike::Base)
BuildRequires: perl(POSIX)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Plack) >= 1.1.600
BuildRequires: perl(Plack::Builder)
BuildRequires: perl(Plack::Middleware::FixMissingBodyInRedirect)
BuildRequires: perl(Plack::Middleware::RemoveRedundantBody)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Pod::Simple::Search)
BuildRequires: perl(Pod::Simple::SimpleTree)
BuildRequires: perl(Return::MultiLevel)
BuildRequires: perl(Ref::Util)
BuildRequires: perl(Role::Tiny) >= 1.3.0
BuildRequires: perl(Safe::Isa)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Template)
BuildRequires: perl(Template::Tiny)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::EOL)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Memory::Cycle)
BuildRequires: perl(Test::MockTime)
BuildRequires: perl(Test::More) >= 0.920.0
BuildRequires: perl(Test::Script)
BuildRequires: perl(Test::TCP) >= 1.130.0
BuildRequires: perl(Type::Library)
BuildRequires: perl(URI)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(YAML)
BuildRequires: perl(overload)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildArch:  noarch

%description
This is the main module for the Dancer2 distribution. It contains logic for
creating a new Dancer2 application.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc AUTHORS Changes LICENSE META.json META.yml
%{_bindir}/dancer2
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4411 |21cr|perl-Danga-Socket-1.620.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Danga-Socket
%define upstream_version 1.62

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Event loop and event-driven async socket base class

License:	GPL+ and Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Danga/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Sys::Syscall)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Net::EmptyPort)
BuildArch:	noarch

%description
This is an abstract base class for objects backed by a socket which provides 
the basic framework for event-driven asynchronous IO, designed to be fast. 
Danga::Socket is both a base class for objects, and an event loop.

Callers subclass Danga::Socket. Danga::Socket's constructor registers itself 
with the Danga::Socket event loop, and invokes callbacks on the object for 
readability, writability, errors, and other conditions.
Because Danga::Socket uses the "fields" module, your subclasses must too.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# epoll test failed on aarch64
#make test

%install
%makeinstall_std

%files
%doc CHANGES
%{perl_vendorlib}/Danga
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4412 |21cr|perl-Data-Binary-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Binary
%define upstream_version 0.01


Name:		perl-Data-Binary
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Simple detection of binary versus text in strings
Group:		Development/Perl
License:	Artistic 2.0
URL:		https://metacpan.org/release/Data-Binary
Source0:	https://cpan.metacpan.org/modules/by-module/Data/Data-Binary-%{upstream_version}.tar.gz
BuildArch:	noarch
# Module Build
BuildRequires:	coreutils
BuildRequires:	findutils
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.30
# Module Runtime
BuildRequires:	perl(base)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
# Test Suite
BuildRequires:	perl(Test::More)
# Runtime
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This simple module provides string equivalents to the -T / -B operators. Since
these only work on file names and file handles, this module provides the same
functions but on strings.

Note that the actual implementation is currently different, basically because
the -T / -B functions are in C/XS, and this module is written in pure Perl. For
now, anyway.

%prep
%setup -q -n Data-Binary-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}

%check
make test

%files
%doc changes.txt README readme.txt
%{perl_vendorlib}/Data/
%{_mandir}/man3/Data::Binary.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4413 |21cr|perl-Data-Buffer-0.40.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Buffer
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	15

Summary:	Read/write buffer class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	https://cpan.metacpan.org/authors/id/B/BT/BTROTT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Data::Buffer implements a low-level binary buffer in which
you can get and put integers, strings, and other data.
Internally the implementation is based on pack and unpack,
such that Data::Buffer is really a layer on top of those
built-in functions.

All of the get_* and put_* methods respect the internal
offset state in the buffer object. This means that you
should read data out of the buffer in the same order that
you put it in.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" echo | %__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4414 |21cr|perl-Data-Clone-0.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Clone
%define upstream_version 0.004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Polymorphic data cloning


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Devel::PPPort)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(ExtUtils::ParseXS)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(parent)
BuildRequires:	perl-devel

%description
'Data::Clone' does data cloning, i.e. copies things recursively. This is
smart so that it works with not only non-blessed references, but also with
blessed references (i.e. objects). When 'clone()' finds an object, it calls
a 'clone' method of the object if the object has a 'clone', otherwise it
makes a surface copy of the object. That is, this module does polymorphic
data cloning.

Although there are several modules on CPAN which can clone data, this
module has a different cloning policy from almost all of them. See the
/Cloning policy manpage and the /Comparison to other cloning modules
manpage for details.

Cloning policy
    A cloning policy is a rule that how a cloning routine copies data. Here
    is the cloning policy of 'Data::Clone'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4415 |21cr|perl-Data-Compare-1.290.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Data-Compare
%define upstream_version 1.29

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Compare perl data structures


Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Clone)
BuildRequires:  perl(File::Find::Rule)
BuildRequires:  perl(Test::Pod)

BuildArch:	noarch

%description
Compare two perl data structures recursively. Returns 0 if the structures
differ, else returns 1.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README CHANGELOG META.yml META.json ARTISTIC.txt GPL2.txt MAINTAINERS-NOTE 
%{perl_vendorlib}/Data
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4416 |21cr|perl-Data-Denter-0.150.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Denter
%define upstream_version 0.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	An alternative to Data::Dumper and Storable

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(YAML)
BuildArch:	noarch

%description
The main problem with Data::Dumper (one of my all-time favorite modules) is
that you have to use 'eval()' to deserialize the data you've dumped. This
is great if you can trust the data you're evaling, but horrible if you
can't. A good alternative is Storable.pm. It can safely thaw your frozen
data. But if you want to read/edit the frozen data, you're out of luck,
because Storable uses a binary format. Even Data::Dumper's output can be a
little cumbersome for larger data objects.

Enter Data::Denter.

Data::Denter is yet another Perl data serializer/deserializer. It formats
nested data structures in an indented fashion. It is optimized for human
readability/editability, safe deserialization, and (eventually) speed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4417 |21cr|perl-Data-DPath-0.580.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-DPath
%define upstream_version 0.58

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Abstraction for a current context that enables incremental searches
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Class::XSAccessor::Array)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Iterator::Util)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(POSIX)
BuildRequires: perl(Safe)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Balanced)
BuildRequires: perl(aliased)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Exception::Class)

BuildArch: noarch

%description
no description found

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE META.yml Changes README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4418 |21cr|perl-Data-Dumper-Concise-2.23.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Dumper-Concise
%define upstream_version 2.023

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Less indentation and newlines plus sub deparsing


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Devel::ArgNames)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)

BuildArch:	noarch

%description
This module always exports a single function, Dumper, which can be called
with a single reference value to dump that value or with no arguments to
return the Data::Dumper object it's created.

It exists, fundamentally, as a convenient way to reproduce a set of Dumper
options that we've found ourselves using across large numbers of
applications, primarily for debugging output.

The principle guiding theme is "all the concision you can get while still
having a useful dump and not doing anything cleverer than setting
Data::Dumper options" - it's been pointed out to us that
Data::Dump::Streamer can produce shorter output with less lines of code. We
know. This is simpler and we've never seen it segfault. But for
complex/weird structures, it generally rocks. You should use it as well,
when Concise is underkill. We do.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4419 |21cr|perl-Data-DumpXML-1.60.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Data-DumpXML
%define	upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12
Summary:	Dump arbitrary perl data structures as XML
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-Array-RefElem
BuildRequires:	perl-MIME-Base64
BuildRequires:	perl-XML-Parser
BuildRequires:	perl-devel
BuildArch:	noarch
Requires: 	perl-Array-RefElem >= 0.02

%description
Dump arbitrary perl data structures as XML.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor 
make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/Data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4420 |21cr|perl-Data-Entropy-0.7.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Entropy
%define upstream_version 0.007

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Download entropy from

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Crypt::Rijndael)
BuildRequires: perl(Data::Float)
BuildRequires: perl(Errno)
BuildRequires: perl(Exporter)
Buildrequires: perl(HTTP::Lite)
BuildRequires: perl(IO::File)
BuildRequires: perl(LWP)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Params::Classify)
BuildRequires: perl(Test::More)
BuildRequires: perl(constant)
BuildRequires: perl(integer)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This module maintains a concept of a current selection of entropy source.
Algorithms that require entropy, such as those in the
Data::Entropy::Algorithms manpage, can use the source nominated by this
module, avoiding the need for entropy source objects to be explicitly
passed around. This is convenient because usually one entropy source will
be used for an entire program run and so an explicit entropy source
parameter would rarely vary. There is also a default entropy source,
avoiding the need to explicitly configure a source at all.

If nothing is done to set a source then it defaults to the use of Rijndael
(AES) in counter mode (see the Data::Entropy::RawSource::CryptCounter
manpage and the Crypt::Rijndael manpage), keyed using Perl's built-in
'rand' function. This gives a data stream that looks like concentrated
entropy, but really only has at most the entropy of the 'rand' seed. Within
a single run it is cryptographically difficult to detect the correlation
between parts of the pseudo-entropy stream. If more true entropy is
required then it is necessary to configure a different entropy source.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4421 |21cr|perl-Data-Float-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Float
%define upstream_version 0.013

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Details of the floating point data type

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/Data-Float-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(constant)
BuildRequires: perl(integer)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This module is about the native floating point numerical data type. A
floating point number is one of the types of datum that can appear in the
numeric part of a Perl scalar. This module supplies constants describing
the native floating point type, classification functions, and functions to
manipulate floating point values at a low level.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} ./Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}


%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4422 |21cr|perl-Data-FormValidator-4.880.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-FormValidator
%define upstream_version 4.88

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Validates user input based on input profile

License:    Artistic/GPL
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/Data-FormValidator-%{upstream_version}.tar.gz

BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Date::Calc)
BuildRequires:  perl(File::MMagic)
BuildRequires:  perl(Image::Size)
BuildRequires:  perl(Regexp::Common)
BuildRequires:  perl(CGI)
BuildRequires:  perl(MIME::Types)
BuildRequires:  perl(Perl6::Junction)
BuildRequires:  perl(Email::Valid)
BuildRequires:  perl(Test::More)
BuildArch:      noarch

%description
Data::FormValidator's main aim is to make input validation expressible in a
simple format. Data::FormValidator lets you define profiles which declare the
required and optional fields and any constraints they might have.

The results are provided as an object which makes it easy to handle missing and
invalid results, return error messages about which constraints failed, or
process the resulting valid data.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc  RELEASE_NOTES
%{perl_vendorlib}/Data
%{_mandir}/*/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4423 |21cr|perl-Data-GUID-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-GUID
%define upstream_version 0.050

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Globally unique identifiers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/Data-GUID-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::UUID)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Sub::Install)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Data::GUID provides a simple interface for generating and using globally
unique identifiers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4424 |21cr|perl-Data-Hierarchy-0.340.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Hierarchy
%define upstream_version 0.34

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl module to handle data in a hierarchical structure

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Clone)
BuildRequires:	perl(Test::Exception)
BuildArch:	noarch

%description
Data::Hierarchy provides a simple interface for manipulating 
inheritable data attached to a hierarchical environment (like filesystem).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README 
%{perl_vendorlib}/Data
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4425 |21cr|perl-Data-ICal-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name     Data-ICal
%define upstream_version 0.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Generates iCalendar (RFC 2445) calendar files

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Data-ICal/
Source0:	http://www.cpan.org/modules/by-module/Data/Data-ICal-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::ReturnValue)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Test::LongString)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Text::vFile::asData)
BuildArch:	noarch
# rpm doesn't catch this
Requires:	perl(Class::Accessor)

%description
A Data::ICal object represents a VCALENDAR object as defined in the
iCalendar protocol (RFC 2445, MIME type "text/calendar"), as implemented in
many popular calendaring programs such as Apple's iCal.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml SIGNATURE examples
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4426 |21cr|perl-Data-Inherited-1.100.860-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Inherited
%define upstream_version 1.100860

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Hierarchy-wide accumulation of list and hash results

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
NEXT.pm adds a pseudoclass named 'NEXT' to any program that uses it. If a
method 'm' calls '$self-'NEXT::m()>, the call to 'm' is redispatched as if
the calling method had not originally been found.

In other words, a call to '$self-'NEXT::m()> resumes the depth-first,
left-to-right search of '$self''s class hierarchy that resulted in the
original call to 'm'.

Note that this is not the same thing as '$self-'SUPER::m()>, which begins a
new dispatch that is restricted to searching the ancestors of the current
class. '$self-'NEXT::m()> can backtrack past the current class -- to look
for a suitable method in other ancestors of '$self' -- whereas
'$self-'SUPER::m()> cannot.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4427 |21cr|perl-Data-Integer-0.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Integer
%define upstream_version 0.006

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Details of the native integer data type

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(Exporter) >= 5.700.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(base)
BuildRequires: perl(constant)
BuildRequires: perl(integer)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)

BuildArch:     noarch

%description
This module is about the native integer numerical data type. A native
integer is one of the types of datum that can appear in the numeric part of
a Perl scalar. This module supplies constants describing the native integer
type.

There are actually two native integer representations: signed and unsigned.
Both are handled by this module.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl ./Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot} 

%clean

%files
%doc Changes README META.json META.yml SIGNATURE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4428 |21cr|perl-Data-LetterTree-0.100.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Data-LetterTree
%define upstream_version 0.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Native letter tree Perl binding 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://search.cpan.org/CPAN/authors/id/G/GR/GROUSSE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	liblettertree-devel
BuildRequires:	perl-devel

%description
This module provides perl binding over a native implementation of a letter
tree, allowing to index any kind of perl scalar variable by a large set of
string with a reduced memory footprint over native perl hashes by sharing their
prefixes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorarch}/Data
%{perl_vendorarch}/auto/Data
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4429 |21cr|perl-Data-Miscellany-1.100.850-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Miscellany
%define upstream_version 1.100850

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Collection of miscellaneous subroutines

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
This is a collection of miscellaneous subroutines useful in wide but
varying scenarios; a catch-all module for things that don't obviously
belong anywhere else. Obviously what's useful differs from person to
person, but this particular collection should be useful in object-oriented
frameworks, such as the Class::Framework manpage and the Data::Conveyor
manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4430 |21cr|perl-Data-Munge-0.97.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Munge
%define upstream_version 0.097

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Various utility functions
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch:  noarch

%description
This module defines a few generally useful utility functions. I got tired
of redefining or working around them, so I wrote this module.

Functions
    * list2re LIST

      Converts a list of strings to a regex that matches any of the
      strings. Especially useful in combination with 'keys'. Example:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4431 |21cr|perl-Data-Page-2.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Page
%define upstream_version 2.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Help when paging through sets of results

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Chained)
BuildRequires:	perl(Test::Exception)
Requires:	perl(Class::Accessor::Chained::Fast)
BuildArch:	noarch

%description
When searching through large amounts of data, it is often the case
that a result set is returned that is larger than we want to display
on one page. This results in wanting to page through various pages of
data. The maths behind this is unfortunately fiddly, hence this
module.

The main concept is that you pass in the number of total entries, the
number of entries per page, and the current page number. You can then
call methods to find out how many pages of information there are, and
what number the first and last entries on the current page really are.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Data/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4432 |21cr|perl-Data-Page-Pageset-1.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Page-Pageset
%define upstream_version 1.02

Name:           perl-Data-Page-Pageset
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Change long page list to be shorter and well navigate
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Data-Page-Pageset
Source0:        https://cpan.metacpan.org/authors/id/C/CH/CHUNZI/Data-Page-Pageset-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Class::Accessor::Fast)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Data::Page) >= 2
BuildRequires:  perl(POSIX)
BuildRequires:  perl(overload)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
BuildRequires:  perl(Test::Pod) >= 1.14
BuildRequires:  perl(Test::Exception)

# rpm misses this
Requires:       perl(Data::Page) >= 2

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Pages number can be very high, and it is not comfortable to show user from
the first page to the last page list. Sometimes we need split the page list
into some sets to shorten the page list.

%prep
%setup -q -n Data-Page-Pageset-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4433 |21cr|perl-Data-Pageset-1.60.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Pageset
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Page numbering and page sets

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Page)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The object produced by Data::Pageset can be used to create page navigation,
it inherits from Data::Page and has access to all methods from this object.

In addition it also provides methods for dealing with set of pages, so that
if there are too many pages you can easily break them into chunks for the
user to browse through.

You can even choose to view page numbers in your set in a 'sliding'
fassion.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4434 |21cr|perl-Data-ParseBinary-0.310.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-ParseBinary
%define upstream_version 0.31

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Data::ParseBinary::(.*)\\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Parsing UNIX's SO files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
# perl virtual package is not versioned
BuildRequires:	perl-Math-BigInt >= 1.993.0
BuildArch:	noarch

%description
This module is a Perl Port for PyConstructs
http://construct.wikispaces.com/

This module enables writing declarations for simple and complex binary
structures, parsing binary to hash/array data structure, and building
binary data from hash/array data structure.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4435 |21cr|perl-Data-Password-1.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-Data-Password
Version:        1.12
Release:        1
Summary:        Perl extension for assessing password quality
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Data-Password
Source0:        https://cpan.metacpan.org/modules/by-module/Data/Data-Password-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires:  perl(Exporter)
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
# Tests
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This modules checks potential passwords for crackability. It checks that
the password is in the appropriate length, that it has enough character
groups, that it does not contain the same chars repeatedly or ascending or
descending characters, or characters close to each other in the keyboard. It
will also attempt to search the ispell word file for existence of whole
words.

%prep
%setup -q -n Data-Password-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-18
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-17
- Perl 5.34 rebuild

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Mon Jun 22 2020 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-14
- Perl 5.32 rebuild

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Thu May 30 2019 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-11
- Perl 5.30 rebuild

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Jun 27 2018 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-8
- Perl 5.28 rebuild

* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-5
- Perl 5.26 rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sat May 14 2016 Jitka Plesnikova <jplesnik@redhat.com> - 1.12-3
- Perl 5.24 rebuild

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.12-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Sep 14 2015 Petr Pisar <ppisar@redhat.com> - 1.12-1
- 1.12 bump

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Wed Jun 03 2015 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-19
- Perl 5.22 rebuild

* Tue Aug 26 2014 Jitka Plesnikova <jplesnik@redhat.com> - 1.07-18
- Perl 5.20 rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Wed Jul 17 2013 Petr Pisar <ppisar@redhat.com> - 1.07-15
- Perl 5.18 rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-14
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Sun Jun 10 2012 Petr Pisar <ppisar@redhat.com> - 1.07-12
- Perl 5.16 rebuild

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Fri Jun 17 2011 Marcela Mašláňová <mmaslano@redhat.com> - 1.07-10
- Perl mass rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Thu Dec 16 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.07-8
- 661697 rebuild for fixing problems with vendorach/lib

* Fri Apr 30 2010 Marcela Maslanova <mmaslano@redhat.com> - 1.07-7
- Mass rebuild with perl-5.12.0

* Mon Dec  7 2009 Stepan Kasal <skasal@redhat.com> - 1.07-6
- rebuild against perl 5.10.1

* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild

* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.07-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Thu Mar 06 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 1.07-3
Rebuild for new perl

* Sun Jan 27 2008 Andreas Thienemann <andreas@bawue.net> 1.07-2
- Added Test::More to the BuildReqs

* Thu Mar 15 2007 Andreas Thienemann <andreas@bawue.net> 1.07-1
- Specfile autogenerated by cpanspec 1.69.1.
- Cleaned up for FE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4436 |21cr|perl-Data-Peek-0.510.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Peek
%define upstream_version 0.51
%global __provides_exclude Peek.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:    A collection of low-level debug facilities

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:  perl(Config)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Test::NoWarnings)
BuildRequires:  perl(Test::Warnings)
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
BuildRequires:  perl-devel

%description
Data::Peek started off as 'DDumper' being a wrapper module over the
Data::Dumper manpage, but grew out to be a set of low-level data
introspection utilities that no other module provided yet, using the lowest
level of the perl internals API as possible.

DDumper ($var, ...)
    Not liking the default output of Data::Dumper, and always feeling the
    need to set '$Data::Dumper::Sortkeys = 1;', and not liking any of the
    default layouts, this function is just a wrapper around
    Data::Dumper::Dumper with everything set as I like it.

        $Data::Dumper::Sortkeys = 1;
        $Data::Dumper::Indent   = 1;

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std


%files
%doc META.yml META.json ChangeLog README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4437 |21cr|perl-Data-Perl-0.2.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Perl
%define upstream_version 0.002009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Wrapping class for Perl's built in array structure
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Role::Tiny)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Output)
BuildRequires: perl(parent)
BuildRequires: perl(strictures)
BuildArch: noarch

%description
Data::Perl is a collection of classes that wrap fundamental data types that
exist in Perl. These classes and methods as they exist today are an attempt
to mirror functionality provided by Moose's Native Traits. One important
thing to note is all classes currently do no validation on constructor
input.

Data::Perl is a container class for the following classes:

* * the Data::Perl::Collection::Hash manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README META.json Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4438 |21cr|perl-Data-Phrasebook-0.340.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# $Id: perl-Data-Phrasebook.spec 7981 2009-11-03 03:05:34Z dag $
# Authority: dries
# Upstream: Barbie <barbie$cpan,org>

%define upstream_name Data-Phrasebook
%define upstream_version 0.34

Summary:	Base class for Phrasebook Models

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Data-Phrasebook/
Source:		http://www.cpan.org/modules/by-module/Data/Data-Phrasebook-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More) >= 0.47
BuildArch:	noarch

%description
Base class for Phrasebook Models.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%make

%install
make pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec rm {} \;

%files
%defattr(-, root, root, 0755)
%doc ChangeLog Changes INSTALL LICENSE MANIFEST MANIFEST.SKIP META.yml README
%doc %{_mandir}/man3/Data::Phrasebook.3pm*
%doc %{_mandir}/man3/Data::Phrasebook::*.3pm*
%dir %{perl_vendorlib}/Data/
%{perl_vendorlib}/Data/Phrasebook/
%{perl_vendorlib}/Data/Phrasebook.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4439 |21cr|perl-Data-Phrasebook-Loader-YAML-0.120.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# $Id: perl-Data-Phrasebook-Loader-YAML.spec 7981 2009-11-03 03:05:34Z dag $
# Authority: dries
# Upstream: Barbie <barbie$cpan,org>

%define upstream_name Data-Phrasebook-Loader-YAML
%define upstream_version 0.12

Summary:	Absract your phrases with YAML

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Data-Phrasebook-Loader-YAML/
Source:		http://www.cpan.org/modules/by-module/Data/Data-Phrasebook-Loader-YAML-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More) >= 0.47
BuildArch:	noarch

%description
Absract your phrases with YAML.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS="vendor" PREFIX="%{buildroot}%{_prefix}"
%make

%install
make pure_install

### Clean up buildroot
find %{buildroot} -name .packlist -exec rm {} \;

%files
%defattr(-, root, root, 0755)
%doc Changes INSTALL LICENSE MANIFEST MANIFEST.SKIP META.yml README
%doc %{_mandir}/man3/Data::Phrasebook::Loader::YAML.3pm*
%dir %{perl_vendorlib}/Data/
%dir %{perl_vendorlib}/Data/Phrasebook/
%dir %{perl_vendorlib}/Data/Phrasebook/Loader/
%{perl_vendorlib}/Data/Phrasebook/Loader/YAML.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4440 |21cr|perl-Data-PowerSet-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-PowerSet
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Generate all subsets of a list of elements

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
'Data::PowerSet' takes a list and returns all possible combinations of the
elements appearing in the list without replacement.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4441 |21cr|perl-Data-Random-0.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Random
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Data::Random - Perl module to generate random data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-Date-Calc
BuildRequires:	perl(Time::Piece)
BuildRequires:	perl(Test::MockTime)
BuildRequires:	perl(File::ShareDir::Install)
BuildRequires:	perl-GD
BuildRequires:	perl-YAML-Tiny
BuildRequires:	perl-devel
BuildArch:	noarch

%description
A module used to generate random data.  Useful mostly for test
programs.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README*
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4442 |21cr|perl-Data-Section-0.200.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Section
%define upstream_version 0.200007

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Read multiple hunks of data out of your DATA section


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Test::FailWarnings)
BuildRequires:	perl(Class::ISA)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Sub::Exporter)

BuildArch:	noarch

%description
Data::Section provides an easy way to access multiple named chunks of
line-oriented data in your module's DATA section. It was written to allow
modules to store their own templates, but probably has other uses.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4443 |21cr|perl-Data-Serializer-0.600.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Serializer
%define upstream_version 0.60

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Generic interface to serializer modules

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/Data-Serializer-%{upstream_version}.tar.gz

BuildRequires: perl(AutoLoader)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::File)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This module is intended for folks who release CPAN modules with "t/*.t"
tests. It makes it easy for you to output syntactically correct test-output
while at the same time logging all test activity to a log file. Hopefully,
bug reports which include the contents of this file will be easier for you
to investigate.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4444 |21cr|perl-Data-Stag-0.140.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Data-Stag
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/C/CM/CMUNGALL/Data-Stag-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module is for manipulating data as recursively nested tag/value
pairs (Structured TAGs or Simple Tree AGgreggates). These datastructures
can be represented as nested arrays, which have the advantage of being
native to perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files 
%doc INSTALL README Changes
%{_bindir}/*
%{perl_vendorlib}/Data
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4445 |21cr|perl-Data-Stream-Bulk-0.110.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Stream-Bulk
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	L<Path::Class::Dir> traversal

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/Data-Stream-Bulk-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Path::Class)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

%description
This module tries to find middle ground between one at a time and all at
once processing of data sets.

The purpose of this module is to avoid the overhead of implementing an
iterative api when this isn't necessary, without breaking forward
compatibility in case that becomes necessary later on.

The API optimizes for when a data set typically fits in memory and is
returned as an array, but the consumer cannot assume that the data set is
bounded.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4446 |21cr|perl-Data-Structure-Util-0.160.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Data-Structure-Util
%define upstream_version 0.16
%global __provides_exclude Util.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	4

Summary:	Change nature of data within a structure

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Clone)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(ExtUtils::CBuilder)

%description
"Data::Structure::Util" is a toolbox to manipulate the data inside a
data structure. It can process an entire tree and perform the
operation requested on each appropriate element.

For example: It can transform all strings within a data structure to
utf8 or transform any utf8 string back to the default encoding. It can
remove the blessing on any reference. It can collect all the objects
or detect if there is a circular reference.

It is written in C for decent speed.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make 

%check
make test

%install
%makeinstall_std


%files
%doc CHANGES README META.json META.yml
%{perl_vendorarch}/Data
%{perl_vendorarch}/auto/Data
%{_mandir}/man?/*	       

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4447 |21cr|perl-Data-Taxi-0.960.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Taxi
%define upstream_version 0.96

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Taint-aware, XML-ish data serialization

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Debug::ShowStuff)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Taxi (*T*aint-*A*ware *X*ML-*I*sh) is a data serializer with several handy
features:

* Taint aware

  Taxi does not force you to trust the data you are serializing. None of
  the input data is executed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4448 |21cr|perl-Data-TreeDumper-0.400.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-TreeDumper
%define upstream_version 0.40

%global __requires_exclude perl\\(Data::TreeDumper::OO\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Improved replacement for Data::Dumper

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::ISA)
BuildRequires:	perl(Check::ISA)
BuildRequires:	perl(Devel::Size)
BuildRequires:	perl(Sort::Naturally)
BuildRequires:	perl(Term::Size)
BuildRequires:	perl(Text::Wrap)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Data::Dumper and other modules do a great job of dumping data structures. Their
output, however, often takes more brain power to understand than the data
itself. When dumping large amounts of data, the output can be overwhelming and
it can be difficult to see the relationship between each piece of the dumped
data.

Data::TreeDumper also dumps data in a tree-like fashion but hopefully in a
format more easily understood.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4449 |21cr|perl-Data-Uniqid-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Uniqid
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Data::Uniqid - Perl extension for simple genrating of unique id's

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://search.cpan.org/CPAN/authors/id/M/MW/MWX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(Time::HiRes)
BuildArch:	noarch

%description
Data::Uniqid provides three simple routines for generating unique ids.
These ids are coded with a Base62 systen to make them short and handy
(e.g. to use it as part of a URL).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4450 |21cr|perl-Data-UUID-1.226.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Data-UUID
%define upstream_version 1.226

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Perl extension for generating Globally/Universally Unique Identifiers
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

%description
Perl extension for generating Globally/Universally Unique Identifiers
(GUIDs/UUIDs).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

# Disable check - randomly fails at ABF
# %check
# %make test

%install
%makeinstall_std

%clean

%files
%doc Changes README 
%{perl_vendorarch}/Data
%{perl_vendorarch}/auto/Data
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4451 |21cr|perl-Data-Validate-IP-0.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Validate-IP
%define upstream_version 0.30

%{?perl_default_filter}

Summary:	Lightweight IPv4 and IPv6 validation module
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://metacpan.org/release/%{upstream_name}
Source0:	https://cpan.metacpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(NetAddr::IP) >= 4.0.0
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More) >= 0.960.0
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
This module collects ip validation routines to make input validation, and
untainting easier and more readable.

All functions return an untainted value if the test passes, and undef if it
fails. This means that you should always check for a defined status
explicitly. Don't assume the return will be true. (e.g. is_username('0'))

The value to test is always the first (and often only) argument.

%files
%doc Changes INSTALL LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4452 |21cr|perl-Data-Validate-Type-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Validate-Type
%define upstream_version v1.6.0

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Data type validation functions
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dump)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::FailWarnings)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4453 |21cr|perl-Data-Visitor-0.310.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Data-Visitor
%define upstream_version 0.31

Summary:	A visitor for Perl data structures
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/Data-Visitor-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Moo)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Squirrel)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Needs)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Tie::ToObject)
BuildRequires:	perl(namespace::clean)
Requires:	perl(namespace::clean)
BuildArch:	noarch

%description
This module is a simple visitor implementation for Perl values.

%files
%doc Changes
%{perl_vendorlib}/Data
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4454 |21cr|perl-Date-Calc-XS-6.400.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Date-Calc-XS
%define upstream_version 6.4

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	4

Summary:    No summary found

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:        http://www.cpan.org/modules/by-module/Date/Date-Calc-XS-%{upstream_version}.tar.gz

BuildRequires: perl(Bit::Vector)
BuildRequires: perl(Carp::Clan)
BuildRequires: perl(Date::Calc)
BuildRequires: perl-devel

%description
You never use this module directly. Use the Date::Calc(3) manpage instead!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc META.yml license
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4455 |21cr|perl-Date-Extract-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Date-Extract
%define upstream_version 0.06

Name:           perl-Date-Extract
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Date::Extract Perl module
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Date-Extract
Source0:        https://cpan.metacpan.org/authors/id/A/AL/ALEXMV/Date-Extract-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires: make
BuildRequires:  perl-generators
BuildRequires:  perl(Carp)
BuildRequires:  perl(Class::Data::Inheritable)
BuildRequires:  perl(DateTime::Format::Natural) >= 0.60
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(parent)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Test::MockTime)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Time::Piece)

BuildRequires:  perl(inc::Module::Install)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Search a string for something that looks like a date string, and build a
DateTime object out of it.

%prep
%setup -q -n Date-Extract-%{upstream_version}
rm -r inc/

%build
# --skipdeps causes ExtUtils::AutoInstall not to try auto-installing
%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4456 |21cr|perl-Date-HolidayParser-0.430.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Date-HolidayParser
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Parser for ~/.holiday-style files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/Z/ZE/ZERODOGG/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Moo)

BuildArch:	noarch

%description
This is a module that parses .holiday-style files. These are
files that define holidays in various parts of the world.
The files are easy to write and easy for humans to read, but can
be hard to parse because the format allows many different ways to write it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make "CFLAGS=%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/*/*
%{perl_vendorlib}/Date

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4457 |21cr|perl-Date-Pcalc-6.100.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Date-Pcalc
%define upstream_version 6.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	16
Summary:	Pure-Perl drop-in replacement for Date::Calc
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Date/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Date-Pcalc-6.1-fix_perl_516_boolean.patch
Patch1:		Date-Pcalc-6.1-century.patch

BuildRequires:	perl(Bit::Vector)
BuildRequires:	perl(Carp::Clan)
BuildRequires:	perl-devel


%description
  'use Date::Pcalc qw( Days_in_Year Days_in_Month ... );'

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p0 -b .boolean
%patch1 -p1 -b .century

%build
echo c | perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4458 |21cr|perl-Date-Simple-3.30.300-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version 3.03_03

Summary:	Simple date object for perl

Name:		perl-Date-Simple
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl 
Url:		http://search.cpan.org/dist/Date-Simple/
Source0:	http://www.cpan.org/authors/id/I/IZ/IZUT/Date-Simple-%{upstream_version}.tar.gz
#Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
BuildRequires:	perl(ExtUtils::MakeMaker), perl(Test::More)
BuildRequires:	perl-devel

# Don't "provide" private Perl libs
# % global _use_internal_dependency_generator 0
#% global __deploop() while read FILE; do /usr/lib/rpm/rpmdeps -%{1} ${FILE}; done | /bin/sort -u
#% global __find_provides /bin/sh -c "%{__grep} -v '%{perl_vendorarch}/.*\\.so$' | %{__deploop P}"
#% global __find_requires /bin/sh -c "%{__deploop R}"

%description
%{summary}.

%prep
%setup -q -n Date-Simple-%{upstream_version}

# Spurious exec permissions in files from tarball
/usr/bin/find lib -type f -exec %{__chmod} -x {} ';'
%{__chmod} -x ChangeLog COPYING README Simple.xs

# The NoXS.pm file provides a pure-perl alternative to the C implementation
# of the module. This results in duplicate "Provides:" entries, which rpmlint
# whinges about. This kludge removes the redundant file, which has the added
# benefit of shutting up rpmlint.
rm -f lib/Date/Simple/NoXS.pm
%{__sed} -i -e '/^lib\/Date\/Simple\/NoXS\.pm$/d' MANIFEST

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make

%install
%make pure_install PERL_INSTALL_ROOT=%{buildroot}
/usr/bin/find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
/usr/bin/find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
/usr/bin/find %{buildroot} -depth -type d -exec /bin/rmdir {} ';' 2>/dev/null
%{__chmod} -R u+w %{buildroot}

%check
%make test

%files
%doc ChangeLog COPYING README
%{perl_vendorarch}/Date/
%{perl_vendorarch}/auto/Date/
%{_mandir}/man3/Date::Simple*.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4459 |21cr|perl-DateTime-Event-ICal-0.130.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Event-ICal
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Perl DateTime extension for computing rfc2445 recurrences
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(DateTime::Event::Recurrence) >= 0.110.0
BuildArch:	noarch

%description
This module provides convenience methods that let you easily create
'DateTime::Set' objects for rfc2445 style recurrences.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README TODO
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4460 |21cr|perl-DateTime-Event-Recurrence-0.190.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Event-Recurrence
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	DateTime::Set extension for create basic recurrence sets
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Set) >= 0.380.0
BuildArch:	noarch

%description
This module provides convenience methods that let you easily create
'DateTime::Set' objects for various recurrences, such as "once a month" or
"every day". You can also create more complicated recurrences, such as
"every Monday, Wednesday and Thursday at 10:00 AM and 2:00 PM".

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4461 |21cr|perl-DateTime-Format-DateManip-0.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-DateManip
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Perl DateTime extension to convert

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz
# patch from https://rt.cpan.org/Public/Bug/Display.html?id=55771
Patch0:     perl-DateTime-Format-DateManip-fix_tests.diff

BuildRequires: perl(Carp)
BuildRequires: perl(Date::Manip)
BuildRequires: perl(DateTime)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
DateTime::Format::DateManip is a class that knows how to convert between
'Date::Manip' dates and durations and 'DateTime' and 'DateTime::Duration'
objects. Recurrences are note yet supported.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p0
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc META.yml Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4462 |21cr|perl-DateTime-Format-DateParse-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-DateParse
%define upstream_version 0.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Parses Date::Parse compatible formats

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Date::Parse)
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::TimeZone)
BuildRequires: perl(Time::Zone)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This module is a compatibility wrapper around the Date::Parse module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc META.yml Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4463 |21cr|perl-DateTime-Format-Flexible-0.340.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-Flexible
%define upstream_version 0.34
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A module that try very hard to parse string into DateTime object


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Factory::Util)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Builder)
BuildRequires:	perl(DateTime::Format::Strptime)
BuildRequires:	perl(DateTime::TimeZone)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Test::MockTime)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::Exception)

BuildArch:	noarch

# not autodetect, for some reason
Requires:	perl(Class::Factory::Util)
Requires:	perl(DateTime::Format::Strptime)

%description
If you have ever had to use a program that made you type in the date a
certain way and thought "Why can't the computer just figure out what date I
wanted?", this module is for you.

DateTime::Format::Flexible attempts to take any string you give it and
parse it into a DateTime object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml README Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4464 |21cr|perl-DateTime-Format-ICal-0.90.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-ICal
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Parse and format iCal datetime and duration strings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Event::ICal)
BuildRequires:	perl(DateTime::Set)
BuildRequires:	perl(DateTime::TimeZone)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This module understands the ICal date/time and duration formats, as defined
in RFC 2445. It can be used to parse these formats in order to create the
appropriate objects.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4465 |21cr|perl-DateTime-Format-Mail-0.403.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-Mail
%define upstream_version 0.403

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Convert between DateTime and RFC2822/822 formats

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(version)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Pod::Coverage::TrustPod)
BuildRequires:	perl(Test::CPAN::Meta)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl-devel

BuildArch: noarch

%description
RFCs 2822 and 822 specify date formats to be used by email. 
This module parses and emits such dates.

RFC2822 (April 2001) introduces a slightly different format of date than that 
used by RFC822 (August 1982). The main correction is that the preferred format
is more limited, and thus easier to parse programmatically.

Despite the ease of generating and parsing perfectly valid RFC822 and RFC2822 
people still get it wrong. So this module provides four things for those 
handling mail dates:
  A strict parser that will only accept RFC2822 dates, so you can see where 
    you're right.
  A strict formatter, so you can generate the right stuff to begin with.
  A loose parser, so you can take the misbegotten output from other programs 
    and turn it into something useful. This includes various minor errors as 
    well as some somewhat more bizarre mistakes. 

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std


%files
%doc Changes README META.yml LICENSE CREDITS
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4466 |21cr|perl-DateTime-Format-Natural-1.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-Natural
%define upstream_version 1.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Base class for DateTime::Format::Natural::Lang::

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Clone)
BuildRequires: perl(Cwd)
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::TimeZone)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(FindBin)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Module::Build) >= 0.380.0
BuildRequires: perl(Module::Util)
BuildRequires: perl(Params::Validate)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Storable)
BuildRequires: perl(Term::ReadLine)
BuildRequires: perl(Test::MockTime)
BuildRequires: perl(Test::More)
BuildRequires: perl(boolean)
BuildRequires: perl(Time::Piece)


# not autodetected 
Requires:	perl(boolean)

BuildArch:	noarch

%description
'DateTime::Format::Natural' takes a string with a human readable date/time
and creates a machine readable one by applying natural parsing logic.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

chmod 644 Changes README
for file in Changes README; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/DateTime
%{_bindir}/dateparse
%{_mandir}/man1/dateparse.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4467 |21cr|perl-DateTime-Format-Pg-0.160.140-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-Pg
%define upstream_version 0.16014

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Parse and format PostgreSQL dates and times
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Pg-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Builder)
BuildRequires:	perl(DateTime::TimeZone)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl-CPAN-Meta

BuildArch:	noarch

%description
This module understands the formats used by PostgreSQL for its DATE, TIME,
TIMESTAMP, and INTERVAL data types. It can be used to parse these formats
in order to create 'DateTime' or 'DateTime::Duration' objects, and it can
take a 'DateTime' or 'DateTime::Duration' object and produce a string
representing it in a format accepted by PostgreSQL.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4468 |21cr|perl-DateTime-Format-RFC3339-1.0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-RFC3339
%define upstream_version v1.0.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.0.5
Release:	5

Summary:	Parse and format RFC3339 datetime strings

License:	Public domain
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-RFC3339-v1.0.5.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(version)
BuildArch:	noarch

%description
This module understands the RFC3339 date/time format, an ISO 8601 profile,
defined at http://tools.ietf.org/html/rfc3339 .

It can be used to parse these formats in order to create the appropriate
objects.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4469 |21cr|perl-DateTime-Format-SQLite-0.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-SQLite
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Parse and format SQLite dates and times

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Factory::Util)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Builder)

BuildArch:	noarch

Requires:	perl(Class::Factory::Util)
Requires:	perl(DateTime::Format::Builder)

%description
This module understands the formats used by SQLite for its 'date',
'datetime' and 'time' functions. It can be used to parse these formats in
order to create the DateTime manpage objects, and it can take a DateTime
object and produce a timestring accepted by SQLite.

*NOTE:* SQLite does not have real date/time types but stores everything as
strings. This module deals with the date/time strings as
understood/returned by SQLite's 'date', 'time', 'datetime', 'julianday' and
'strftime' SQL functions. You will usually want to store your dates in one
of these formats.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4470 |21cr|perl-DateTime-Format-W3CDTF-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DateTime-Format-W3CDTF
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Parse and format W3CDTF datetime strings

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/RPM4/
Source0:	https://cpan.metacpan.org/authors/id/G/GW/GWILLIAMS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:  perl(inc::Module::Install)
BuildArch:	noarch

%description
This module understands the W3CDTF date/time format, an ISO 8601 profile,
defined at http://www.w3.org/TR/NOTE-datetime. This format as the native
date format of RSS 1.0.

It can be used to parse these formats in order to create the appropriate
objects.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4471 |21cr|perl-DateTime-Set-0.390.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Set
%define upstream_version 0.3900

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Extends Set::Infinite with recurrence functions
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/DateTime-Set-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Set::Infinite)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Params::Validate)
BuildArch:	noarch

%description
DateTime::Set is a module for datetime sets. It can be used to handle two
different types of sets.

The first is a fixed set of predefined datetime objects. For example, if we
wanted to create a set of datetimes containing the birthdays of people in
our family for the current year.

The second type of set that it can handle is one based on a recurrence,
such as "every Wednesday", or "noon on the 15th day of every month". This
type of set can have fixed starting and ending datetimes, but neither is
required. So our "every Wednesday set" could be "every Wednesday from the
beginning of time until the end of time", or "every Wednesday after
2003-03-05 until the end of time", or "every Wednesday between 2003-03-05
and 2004-01-07".

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4472 |21cr|perl-DateTimeX-Easy-0.89.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTimeX-Easy
%define upstream_version 0.089

%global __requires_exclude perl\\(DateTimeX::Easy::DateParse\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Parse a date/time string using the best method available

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DateTimeX/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		DateTimeX-Easy-0.089-Adapt-tests-to-DateTime-Format-Flexible-0.34.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Date::Parse)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::DateManip)
BuildRequires:	perl(DateTime::Format::Flexible)
BuildRequires:	perl(DateTime::Format::ICal)
BuildRequires:	perl(DateTime::Format::Natural)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Time::Zone)

BuildArch:	noarch

%description
DateTimeX::Easy makes DateTime object creation quick and easy. It uses a
variety of DateTime::Format packages to do the bulk of the parsing, with
some custom tweaks to smooth out the rough edges (mainly concerning
timezone detection and selection).

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4473 |21cr|perl-DBD-CSV-0.590.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    DBD-CSV
%define upstream_version 0.59

%if %{_use_internal_dependency_generator}
%global __requires_exclude /pro/bin/perl
%else
%define _requires_exceptions /pro/bin/perl
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl module to access CSV files through DBI

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/H/HM/HMBRAND/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildRequires:  perl(DBD::File) >= 0.42
BuildRequires:  perl(DBI) >= 1.628
BuildRequires:  perl(SQL::Statement) >= 1.405
BuildRequires:  perl(Test::More) >= 0.9
BuildRequires:  perl(Text::CSV_XS) >= 1.01
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::Pod::Coverage)

BuildArch:	noarch

%description
DBD::CSV is a Perl module that provides yet another driver for the DBI
(Database independent interface for Perl).  This one is based on the SQL
"engine" SQL::Statement and the abstract DBI driver DBD::File, and implements
access to so-called CSV files (comma seperated values).  Such files are
mostly used for exporting MS Access and MS Excel data.

%prep 
%setup -qn %{upstream_name}-%{upstream_version}
find . -type f -print0 | xargs -0 chmod 644

%build
echo -e  "n" | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog README META.json META.yml
%{perl_vendorlib}/Bundle/DBD/*
%{perl_vendorlib}/DBD/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4474 |21cr|perl-DBD-Mock-1.450.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBD-Mock
%define upstream_version 1.45
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.45
Release:	5

Summary:	Mock database driver for testing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBD/DBD-Mock-1.45.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBI)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
Testing with databases can be tricky. If you are developing a system
married to a single database then you can make some assumptions about your
environment and ask the user to provide relevant connection information.
But if you need to test a framework that uses DBI, particularly a framework
that uses different types of persistence schemes, then it may be more
useful to simply verify what the framework is trying to do -- ensure the
right SQL is generated and that the correct parameters are bound.
'DBD::Mock' makes it easy to just modify your configuration (presumably
held outside your code) and just use it instead of 'DBD::Foo' (like the
DBD::Pg manpage or the DBD::mysql manpage) in your framework.

There is no distinct area where using this module makes sense. (Some people
may successfully argue that this is a solution looking for a problem...)
Indeed, if you can assume your users have something like the DBD::AnyData
manpage or the DBD::SQLite manpage or if you do not mind creating a
dependency on them then it makes far more sense to use these legitimate
driver implementations and test your application in the real world -- at
least as much of the real world as you can create in your tests...

And if your database handle exists as a package variable or something else
easily replaced at test-time then it may make more sense to use the
Test::MockObject manpage to create a fully dynamic handle. There is an
excellent article by chromatic about using the Test::MockObject manpage in
this and other ways, strongly recommended. (See the SEE ALSO manpage for a
link)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/DBD

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4475 |21cr|perl-DBD-Multi-1.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBD-Multi
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Manage Multiple Data Sources with Failover and Load Balancing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBD/DBD-Multi-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(DBD::File)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Sys::SigAction)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::TCP)
BuildRequires:	perl(Test::Exception)

BuildArch:	noarch

%description
This software manages multiple database connections for failovers and also
simple load balancing. It acts as a proxy between your code and your database
connections, transparently choosing a connection for each query, based on your
preferences and present availability of the DB server.

This module is intended for read-only operations (where some other application
is being used to handle replication).

This software does not prevent write operations from being executed. This is
left up to the user. See "SUGGESTED USES" below for ideas.

The interface is nearly the same as other DBI drivers with one notable
exception.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README* Changes
%{perl_vendorlib}/DBD
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4476 |21cr|perl-DBD-SQLite2-0.380.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBD-SQLite2
%define upstream_version 0.38

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Self Contained RDBMS in a DBI Driver (sqlite 2.x)
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}/
Source0:    https://cpan.metacpan.org/authors/id/R/RU/RURBAN/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:     DBD-SQLite2-systemlibs.patch

BuildRequires: perl(DBI) >= 1.625.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildRequires: perl(Bundle::DBI)
BuildRequires: perl(Test)
BuildRequires: sqlite2-devel

%description
SQLite is a small fast embedded SQL database engine.

DBD::SQLite embeds that database engine into a DBD driver, so
if you want a relational database for your project, but don't
want to install a large RDBMS system like MySQL or PostgreSQL,
then DBD::SQLite may be just what you need.

It supports quite a lot of features, such as transactions (atomic
commit and rollback), indexes, DBA-free operation, a large subset
of SQL92 supported, and more.

Note: DBD::SQLite2 is the old version of DBD::SQLite, and is linked against
version 2.x.x of the sqlite library. The current version of DBD::SQLite is
linked against version 3 (or possibly later if I forget to update this file).
This release is designed to allow you to have both versions installed on the
same system.

%prep

%autosetup -p1 -n %{upstream_name}-%{upstream_version}

# Make sure to be using the system-wide version
rm sqlite.h

# https://rt.cpan.org/Public/Bug/Display.html?id=55636
# Unclear whether test is broken or not supposed to be executed
# Rename to avoid it being executed
mv t/ak-dbd.t t/ak-dbd.t.bak

%build
CFLAGS="$RPM_OPT_FLAGS" %{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
%make OPTIMIZE="$RPM_OPT_FLAGS"

%check
make test

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*

%files
%doc Changes META.json META.yml README SIGNATURE
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4477 |21cr|perl-DBD-Sybase-1.150.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBD-Sybase
%define upstream_version 1.15

Name:       perl-%{upstream_name}
Version:    %perl_convert_version 1.15
Release:	7

Summary:	Sybase database driver for the DBI module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/~mewp/DBD-Sybase/
Source0:	http://www.cpan.org/authors/id/M/ME/MEWP/DBD-Sybase-1.15.tar.gz

BuildRequires:	freetds-devel
BuildRequires:	gettext-devel
BuildRequires:	perl-DBI >= 1.00
BuildRequires:	perl-devel


%description
DBD::Sybase is a Perl module which works with the DBI module to provide access
to Sybase databases. With FreeTDS DBD::Sybase can be also used to query a
MS-SQL 7 or 2000 database server from a UNIX/Linux host.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
export SYBASE=%{_prefix}
echo -e "\n\n\n\n\n\n" | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}" LD_RUN_PATH=""

%install
%makeinstall_std

%clean

%files
%defattr(644,root,root,755)
%doc BUGS CHANGES README
%{perl_vendorarch}/DBD/Sybase.pm
%{perl_vendorarch}/DBD/dbd-sybase.pod
%dir %{perl_vendorarch}/auto/DBD/Sybase
%attr(0755,root,root) %{perl_vendorarch}/auto/DBD/Sybase/Sybase.so
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4478 |21cr|perl-DBD-XBase-1.50.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBD-XBase
%define upstream_version 1.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.05
Release:	5

Summary:	Module for dealing with XBase files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBD/DBD-XBase-1.05.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBI)
BuildArch:	noarch

%description
Package DBD::XBase contains module XBase that can read and write dbf and
dbt/fpt files, as well as a DBI driver DBD::XBase, that allows work with these
files using SQL commands.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_bindir}/*
%{perl_vendorlib}/XBase.pm
%dir %{perl_vendorlib}/DBD
%{perl_vendorlib}/DBD/*
%dir %{perl_vendorlib}/XBase
%{perl_vendorlib}/XBase/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4479 |21cr|perl-DBICx-Sugar-0.0.100-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBICx-Sugar
%define upstream_version 0.0001

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Just some syntax sugar for DBIx::Class
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DBICx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(DBI)
BuildRequires: perl(DBIx::Class)
BuildRequires: perl(DBIx::Class::Core)
BuildRequires: perl(DBIx::Class::Schema)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Memoize)
BuildRequires: perl(Module::Load)
BuildRequires: perl(SQL::Translator)
BuildRequires: perl(Test::Modern)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(YAML)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Find)
BuildRequires: perl(strictures)
BuildRequires: perl(namespace::clean)

BuildArch: noarch

%description
Just some syntax sugar for your DBIx::Class applications. This was
originally created to remove code duplication between the
Dancer::Plugin::DBIC manpage and the Dancer2::Plugin::DBIC manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE CHANGES META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4480 |21cr|perl-DBICx-TestDatabase-0.50.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBICx-TestDatabase
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	A DBICx::TestDatabase you can add your 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/J/JR/JROCKWAY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(SQL::Translator)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(ok)
BuildRequires:	perl(strictures)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

%description
This module creates a temporary SQLite database, deploys your DBIC schema,
and then connects to it. This lets you easily test your DBIC schema. Since
you have a fresh database for every test, you don't have to worry about
cleaning up after your tests, ordering of tests affecting failure, etc.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4481 |21cr|perl-DBI-Shell-11.950.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBI-Shell
%define upstream_version 11.95

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Interactive command shell for the DBI 

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TL/TLOWERY/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Tee)
BuildRequires:	perl(DBI)
BuildArch:	noarch

%description
The DBI::Shell module (and dbish command, if installed) provide a simple but
effective command line interface for the Perl DBI module.

DBI::Shell is very new, very experimental and very subject to change. Your
mileage will vary. Interfaces will change with each release.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes README ToDo
find lib -type f -exec chmod 644 {} \;

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README ToDo
%{_bindir}/dbish
%{_mandir}/*/*
%{perl_vendorlib}/DBI

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4482 |21cr|perl-DBI-Test-0.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBI-Test
%define upstream_version 0.001

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Provides DSN based on config file
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DBI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Test::Simple)
BuildRequires: perl(Class::DBI)
BuildRequires: perl(Class::Data::Inheritable)
BuildRequires: perl(DBD::SQLite)
BuildRequires: perl(SQL::Translator)
BuildRequires: perl(Module::Pluggable::Object)
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::CheckManifest)
BuildRequires: perl(Test::MinimumVersion)
BuildRequires: perl(Test::Pod::Spelling::CommonMistakes)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Path::Tiny)


BuildArch: noarch

%description
This module aims at a transparent test suite for 
the DBI API to be used from both sides 
of the API (DBI and DBD) to check if the 
provided functionality is working and complete.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# Needs a SQL and cups server running locally and accepting connections
rm -fr t/basic/dvs_connect.t t/basic/dvs_disconnect.t \
  t/basic/dvp_connect.t t/basic/dvp_disconnect.t
  
make test

%install
%makeinstall_std

%files
%doc ChangeLog META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4483 |21cr|perl-DBIx-Class-0.82.842-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBIx-Class
%define upstream_version 0.082842

# Remove self req deps
%global __requires_exclude perl\\(DBIx::Class.*\\)|perl\\(Film\\)|perl\\(MyBase\\)|perl\\(MyFilm\\)|perl\\(MyStar\\)|perl\\(MyStarLink\\)|perl\\(ViewDeps.*

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1

Summary:	Extensible and flexible object <-> relational mapper
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::DBI)
BuildRequires:	perl(Class::Accessor::Grouped)
BuildRequires:	perl(Class::C3) >= 0.11
BuildRequires:	perl(Class::C3::Componentised)
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(Config::Any) >= 0.200
BuildRequires:	perl(Context::Preserve)
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Data::Dumper::Concise)
BuildRequires:	perl(Devel::GlobalDestruction)
BuildRequires:	perl(DBD::SQLite) >= 1.11
BuildRequires:	perl(DBD::Pg)
BuildRequires:	perl(DBI) >= 1.40
BuildRequires:	perl(Hash::Merge)
BuildRequires:	perl(JSON::Any)
BuildRequires:	perl(Math::Base36)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Scope::Guard)
#BuildRequires:	perl(SQL::Abstract) >= 1.20
BuildRequires:	perl(SQL::Abstract::Classic)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Sub::Quote)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception) >= 0.310
BuildRequires:	perl(Test::Moose)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(Moo) >= 2.0.1

BuildArch:	noarch


Requires:	perl(Class::C3::Componentised)
Requires:	perl(DBD::SQLite)
Requires:	perl(SQL::Abstract)
## scottk: The following provides are missed as they appear
##      on different lines from their "package" declarations
Provides:	perl(DBIC::SQL::Abstract)
Provides:	perl(DBIC::Test::SQLite)
Provides:	perl(DBICTest)
Provides:	perl(DBICTest::Base)
Provides:	perl(DBICTest::BaseResult)
Provides:	perl(DBICTest::BaseSchema)
Provides:	perl(DBICTest::RunMode)
Provides:	perl(DBICTest::Schema)
Provides:	perl(DBICTest::Schema::Artist)
Provides:	perl(DBICTest::Schema::CD)
Provides:	perl(DBICTest::Schema::Link)

Provides:	perl(DBIx::Class::CDBICompat::AccessorMapping)
Provides:	perl(DBIx::Class::CDBICompat::AttributeAPI)
Provides:	perl(DBIx::Class::CDBICompat::AutoUpdate)
Provides:	perl(DBIx::Class::CDBICompat::ColumnCase)
Provides:	perl(DBIx::Class::CDBICompat::ColumnGroups)
Provides:	perl(DBIx::Class::CDBICompat::Constraints)
Provides:	perl(DBIx::Class::CDBICompat::Constructor)
Provides:	perl(DBIx::Class::CDBICompat::DestroyWarning)
Provides:	perl(DBIx::Class::CDBICompat::GetSet)
Provides:	perl(DBIx::Class::CDBICompat::HasA)
Provides:	perl(DBIx::Class::CDBICompat::HasMany)
Provides:	perl(DBIx::Class::CDBICompat::ImaDBI)
Provides:	perl(DBIx::Class::CDBICompat::LazyLoading)
Provides:	perl(DBIx::Class::CDBICompat::LiveObjectIndex)
Provides:	perl(DBIx::Class::CDBICompat::MightHave)
Provides:	perl(DBIx::Class::CDBICompat::ObjIndexStubs)
Provides:	perl(DBIx::Class::CDBICompat::Pager)
Provides:	perl(DBIx::Class::CDBICompat::ReadOnly)
Provides:	perl(DBIx::Class::CDBICompat::Relationship)
Provides:	perl(DBIx::Class::CDBICompat::Retrieve)
Provides:	perl(DBIx::Class::CDBICompat::Stringify)
Provides:	perl(DBIx::Class::CDBICompat::TempColumns)
Provides:	perl(DBIx::Class::CDBICompat::Triggers)
Provides:	perl(DBIx::Class::ClassResolver::PassThrough)
Provides:	perl(DBIx::Class::Componentised)
Provides:	perl(DBIx::Class::Relationship::Accessor)
Provides:	perl(DBIx::Class::Relationship::BelongsTo)
Provides:	perl(DBIx::Class::Relationship::CascadeActions)
Provides:	perl(DBIx::Class::Relationship::HasMany)
Provides:	perl(DBIx::Class::Relationship::HasOne)
Provides:	perl(DBIx::Class::Relationship::Helpers)
Provides:	perl(DBIx::Class::Relationship::ManyToMany)
Provides:	perl(DBIx::Class::Relationship::ProxyMethods)
Provides:	perl(DBIx::Class::ResultSetProxy)
Provides:	perl(DBIx::Class::ResultSourceProxy)
Provides:	perl(DBIx::Class::SQLAHacks)
Provides:	perl(DBIx::Class::SQLMaker::MSSQL)
Provides:	perl(DBIx::Class::SQLMaker::MySQL)
Provides:	perl(DBIx::Class::SQLMaker::Oracle)
Provides:	perl(DBIx::Class::SQLMaker::OracleJoins)
Provides:	perl(DBIx::Class::SQLMaker::SQLite)
Provides:	perl(DBIx::Class::Storage)
Provides:	perl(DBIx::Class::Storage::DBIHacks)
Provides:	perl(DBIx::Class::Storage::DBI::Replicated::Types)
Provides:	perl(DBIx::Class::Storage::TxnScopeGuard)
Provides:	perl(SQL::Translator::Parser::DBIx::Class)

%description
This is an SQL to OO mapper with an object API inspired by Class::DBI
(and a compatibility layer as a springboard for porting) and a
resultset API that allows abstract encapsulation of database
operations. It aims to make representing queries in your code as
perl-ish as possible while still providing access to as many of the
capabilities of the database as possible, including retrieving related
records from multiple tables in a single query, JOIN, LEFT JOIN,
COUNT, DISTINCT, GROUP BY and HAVING support.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod -c +x script/*
iconv -f iso8859-1 -t utf-8 README > README.conv && mv -f README.conv README
rm -f t/73oracle.t 

%build
%{__perl} Makefile.PL installdirs=vendor --skipdeps
%make

%check
# circular dependensy with SQL::Abstract
#make test

%install
%makeinstall_std

%files
%doc Changes README META.yml LICENSE AUTHORS examples/ t/
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4484 |21cr|perl-DBIx-Class-Candy-0.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-Candy
%define upstream_version 0.005003

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Create sugar for your favorite ORM, DBIx::Class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(Lingua::EN::Inflect)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(String::CamelCase)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More) >= 0.960.0
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(experimental)

BuildArch:	noarch

%description
'DBIx::Class::Candy' is a simple sugar layer for definition of the
DBIx::Class manpage results. Note that it may later be expanded to add
sugar for more 'DBIx::Class' related things. By default
'DBIx::Class::Candy':

* *

  turns on strict and warnings

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4485 |21cr|perl-DBIx-Class-Cursor-Cached-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name   DBIx-Class-Cursor-Cached
%define upstream_version 1.001004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Cursor class with built-in caching support

Url:		https://search.cpan.org/dist/%{upstream_name}
Source:		https://www.cpan.org/modules/by-module/DBIx/DBIx-Class-Cursor-Cached-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Cache::FileCache)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strictures)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

%description
This package provides cursor class with built-in caching support.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4486 |21cr|perl-DBIx-Class-DateTime-Epoch-0.100.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-DateTime-Epoch
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Automatic inflation/deflation of epoch-based columns to/from DateTime objects

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/DBIx-Class-DateTime-Epoch-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBICx::TestDatabase)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(DBIx::Class::DynamicDefault)
BuildRequires:	perl(DBIx::Class::TimeStamp)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::SQLite)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strictures)
BuildRequires:	perl(inc::Module::Install)

BuildArch:	noarch

%description
This module automatically inflates/deflates DateTime objects from/to epoch
values for the specified columns. This module is essentially an extension
to the DBIx::Class::InflateColumn::DateTime manpage so all of the settings,
including 'locale' and 'timezone', are also valid.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4487 |21cr|perl-DBIx-Class-DeploymentHandler-0.2.233-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-DeploymentHandler
%define upstream_version 0.002233

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Extensible DBIx::Class deployment


License:	GPL+ or Artistic
Group:		Development/Perl
Url:    	https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Carp::Clan)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Touch)
BuildRequires:	perl(Log::Contextual)
BuildRequires:	perl(Method::Signatures::Simple)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(SQL::Translator)
BuildRequires:	perl(SQL::SplitStatement)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Text::Brew)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(aliased)
BuildRequires:	perl(autodie)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strictures)

BuildArch:	noarch

%description
'DBIx::Class::DeploymentHandler' is, as its name suggests, a tool for
deploying and upgrading databases with DBIx::Class. It is
designed to be much more flexible than DBIx::Class::Schema::Versioned,
hence the use of Moose and lots of roles.

'DBIx::Class::DeploymentHandler' itself is just a recommended set of roles
that we think will not only work well for everyone, but will also yield the
best overall mileage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml TODO
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4488 |21cr|perl-DBIx-Class-DynamicDefault-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-DynamicDefault
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Automatically set and update fields

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/DBIx-Class-DynamicDefault-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBICx::TestDatabase)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(parent)
BuildRequires:	perl(strictures)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(inc::Module::Install)

BuildArch:	noarch

%description
Automatically set and update fields with values calculated at runtime.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4489 |21cr|perl-DBIx-Class-EncodedColumn-0.0.200-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-EncodedColumn
%define upstream_version 0.00020

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Encrypt columns using Crypt::OpenPGP

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Dir::Self)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strictures)
BuildRequires:	perl(namespace::clean)

BuildArch:	noarch

%description
This the DBIx::Class manpage component can be used to automatically encode
a column's contents whenever the value of that column is set.

This module is similar to the existing the DBIx::Class::DigestColumns
manpage, but there is some key differences:

* 'DigestColumns' performs the encode operation on 'insert' and 'update',
  and 'EncodedColumn' performs the operation when the value is set, or on
  'new'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot}/*

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4490 |21cr|perl-DBIx-Class-Fixtures-1.1.39-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-Fixtures
%define upstream_version 1.001039

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Provides fixtures for DBIx-Class-based scripts


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ok)
BuildRequires:	perl(DBIx::Class::InflateColumn::FS)
#BuildRequires:	perl(Class::Accessor::Grouped)
BuildRequires:	perl(Config::Any)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(DBIx::Class::Schema::Loader)
BuildRequires:	perl(Data::Dump::Streamer)
BuildRequires:	perl(Data::Visitor)
#BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::MySQL)
BuildRequires:	perl(DateTime::Format::Pg)
#BuildRequires:	perl(DateTime::Format::SQLite)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Copy::Recursive)
#BuildRequires:	perl(Hash::Merge)
BuildRequires:	perl(JSON::Syck)
#BuildRequires:	perl(Path::Class)
#BuildRequires:	perl(SQL::Abstract)
BuildRequires:	perl(Test::More)
#BuildRequires:	perl(strictures)
#BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(IO::All)
BuildRequires:	perl(Test::TempDir::Tiny)
BuildRequires:	perl(Devel::Confess)
BuildRequires:	perl(Test::Compile::Internal)

BuildArch:	noarch

%description
Dump fixtures from source database to filesystem then import to another
database (with same schema) at any time. Use as a constant dataset for running
tests against or for populating development databases when impractical to use
production clones. Describe fixture set using relations and conditions based on
your DBIx::Class schema.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4491 |21cr|perl-DBIx-Class-Helpers-2.36.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-Helpers
%define upstream_version 2.036000

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Simplify the common case stuff for DBIx::Class

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp::Clan) >= 6.40.0
BuildRequires: perl(DBD::SQLite)
BuildRequires: perl(DBIx::Class) >= 0.82.600
BuildRequires: perl(DBIx::Class::Candy) >= 0.1.3
BuildRequires: perl(DBIx::Introspector)
BuildRequires: perl(DateTime::Format::SQLite)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(Lingua::EN::Inflect)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Find)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Safe::Isa)
BuildRequires: perl(String::CamelCase)
BuildRequires: perl(Sub::Exporter::Progressive) >= 0.1.6
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.940.0
BuildRequires: perl(Test::Roo)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(namespace::clean) >= 0.230.0
BuildRequires: perl(parent)
BuildRequires: perl(strictures)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl-devel
BuildRequires: perl(Text::Brew)
BuildRequires: perl(aliased)

BuildArch:  noarch

%description
A collection of various helper utilities for the DBIx::Class manpage stuff.
Probably only useful for components.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc CONTRIBUTING* Changes LICENSE META.json META.yml README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4492 |21cr|perl-DBIx-Class-InflateColumn-FS-0.10.70-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-InflateColumn-FS
%define upstream_version 0.01007

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	FS columns resultset class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBICx::TestDatabase)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(DBIx::Class::UUIDColumns)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(Path::Class)
#BuildRequires:	perl(SQL::Abstract)
BuildRequires:	perl(strictures)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

%description
Provides inflation to a Path::Class::File object allowing file system
storage of BLOBS.

The storage path is specified with 'fs_column_path'. Each file receives a
unique name, so the storage for all FS columns can share the same path.

Within the path specified by 'fs_column_path', files are stored in
sub-directories based on the first 2 characters of the unique file names.
Up to 256 sub-directories will be created, as needed. Override
'_fs_column_dirs' in a derived class to change this behavior.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4493 |21cr|perl-DBIx-Class-IntrospectableM2M-0.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-IntrospectableM2M
%define upstream_version 0.001002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Introspect many-to-many shortcuts

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Because the many-to-many relationships are not real relationships, they can
not be introspected with DBIx::Class. Many-to-many relationships are
actually just a collection of convenience methods installed to bridge two
relationships. This the DBIx::Class manpage component can be used to store
all relevant information about these non-relationships so they can later be
introspected and examined.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4494 |21cr|perl-DBIx-Class-Loader-0.210.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBIx-Class-Loader
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Dynamic definition of DBIx::Class sub classes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBD::SQLite2)
BuildRequires:	perl(Lingua::EN::Inflect)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
DBIx::Class::Loader automate the definition of DBIx::Class sub-classes by
scanning table schemas and setting up columns and primary keys.  Class names
are defined by table names and the namespace option. The only required
arguments are namespace and dsn.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL installdirs=vendor destdir=%{buildroot}
make

%check
##export PG_NAME="dbi:Pg:dbname=test;host=localhost"
##export PG_USER=pgtest
##export PG_PASS='pgtest'
##export MYSQL_NAME="dbi:mysql:database=test;host=localhost"
##export MYSQL_USER=mysqltest
##export MYSQL_PASS='mysqltest'
#make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/DBIx
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4495 |21cr|perl-DBIx-Class-ResultSet-RecursiveUpdate-0.420.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-ResultSet-RecursiveUpdate
%define upstream_version 0.42

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	DBIx-Class extension for providing recursive updates

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/DBIx-Class-ResultSet-RecursiveUpdate-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Trap)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Carp::Clan) >= 6.40
BuildRequires:	perl(DBD::SQLite) >= 1.210
BuildRequires:	perl(DBIx::Class) >= 0.81.30
BuildRequires:	perl(DBIx::Class::IntrospectableM2M)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(Readonly) >= 1.30
BuildRequires:	perl(SQL::Abstract)
BuildRequires:	perl(SQL::Translator) >= 0.110.60
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Test::DBIC::ExpectedQueries)

BuildArch:	noarch

%description
You can feed the ->create method of DBIx::Class with a recursive datastructure
and have the related records created. Unfortunately you cannot do a similar
thing with update_or_create. This module tries to fill that void until
DBIx::Class has an api itself.

The functional interface can be used without modifications of the model, for
example by form processors like HTML::FormHandler::Model::DBIC.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4496 |21cr|perl-DBIx-Class-Schema-Loader-0.70.490-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBIx-Class-Schema-Loader
%define upstream_version 0.07049

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Epoch:      1

Summary:    Dynamic definition of a DBIx::Class::Schema
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

Provides:   perl(DBIx::Class::Schema::Loader::Utils)

#BuildRequires: perl(Carp::Clan)
BuildRequires: perl(curry)
#BuildRequires: perl(Class::Accessor::Grouped) >= 0.100.80
#BuildRequires: perl(Class::C3::Componentised) >= 1.0.800
#BuildRequires: perl(Class::Inspector) >= 1.270.0
#BuildRequires: perl(Class::Unload) >= 0.70.0
BuildRequires: perl(DBD::SQLite) >= 1.290.0
BuildRequires: perl(DBIx::Class) >= 0.81.270
#BuildRequires: perl(DBIx::Class::IntrospectableM2M)
BuildRequires: perl(Data::Dump) >= 1.60.0
#BuildRequires: perl(Digest::MD5) >= 2.360.0
#BuildRequires: perl(Exporter) >= 5.630.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(File::Path) >= 2.70.0
BuildRequires: perl(File::Temp) >= 0.160.0
BuildRequires: perl(Hash::Merge) >= 0.120.0
BuildRequires: perl(Lingua::EN::Inflect::Number) >= 1.100.0
BuildRequires: perl(Lingua::EN::Inflect::Phrase) >= 0.150.0
BuildRequires: perl(Lingua::EN::Tagger) >= 0.230.0
#BuildRequires: perl(List::MoreUtils) >= 0.320.0
#BuildRequires: perl(MRO::Compat) >= 0.90.0
#BuildRequires: perl(Scope::Guard) >= 0.200.0
#BuildRequires: perl(String::CamelCase) >= 0.20.0
BuildRequires: perl(String::ToIdentifier::EN) >= 0.50.0
#BuildRequires: perl(Sub::Name)
BuildRequires: perl(Test::Exception) >= 0.310.0
BuildRequires: perl(Test::More) >= 0.940.0
BuildRequires: perl(Test::Warn) >= 0.210.0
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(namespace::clean) >= 0.230.0
BuildRequires: perl(strictures)
BuildRequires: perl(Text::Unidecode)
BuildRequires: perl(Test::Differences)
#BuildRequires: perl(MooseX::MarkAsMethods)
#BuildRequires: perl(MooseX::NonMoose)
BuildRequires: perl(namespace::autoclean)
#BuildRequires: perl(Config::Any)
#BuildRequires: perl(Config::General)
#BuildRequires: perl(Test::Pod)
BuildRequires: perl-devel

BuildArch:  noarch

%description
DBIx::Class::Schema::Loader automates the definition of a DBIx::Class::Schema
by scanning database table definitions and setting up the columns, primary
keys, and relationships.

DBIx::Class::Schema::Loader currently supports only the DBI storage type. It
has explicit support for DBD::Pg, DBD::mysql, DBD::DB2, DBD::SQLite, and
DBD::Oracle. Other DBI drivers may function to a greater or lesser degree with
this loader, depending on how much of the DBI spec they implement, and how
standard their implementation is.

See DBIx::Class::Schema::Loader::DBI::Writing for notes on writing your own
vendor-specific subclass for an unsupported DBD driver.

This module obsoletes the older DBIx::Class::Loader.

This module is designed more to get you up and running quickly against an
existing database, or to be effective for simple situations, rather than to be
what you use in the long term for a complex database/project.

That being said, transitioning your code from a Schema generated by this module
to one that doesn't use this module should be straightforward and painless, so
don't shy away from it just for fears of the transition down the road.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{perl_vendorlib}/DBIx
%{_mandir}/*/*
%{_bindir}/dbicdump

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4497 |21cr|perl-DBIx-Class-TimeStamp-0.140.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-TimeStamp
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	DBIx::Class extension to update and create date and time based fields

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Grouped)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(DBIx::Class::DynamicDefault)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::MySQL)
BuildRequires:	perl(DateTime::Format::SQLite)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Time::Warp)
BuildRequires:	perl(strictures)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)

BuildArch:	noarch

Requires:	perl(DBIx::Class::DynamicDefault)

%description
Works in conjunction with InflateColumn::DateTime to automatically set
update and create date and time based fields in a table.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4498 |21cr|perl-DBIx-Class-UUIDColumns-0.20.60-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Class-UUIDColumns
%define upstream_version 0.02006

%global __requires_exclude perl\\(Win32.*\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Create uuids using Win32API::GUID

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DBIx/DBIx-Class-UUIDColumns-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Class::Accessor::Grouped)
BuildRequires:	perl(Data::UUID)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(SQL::Abstract)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(strictures)
BuildRequires:	perl(namespace::clean)

BuildArch: noarch

# Adding a requires or otherwise this module fails during run-time.
Requires:	perl(Data::UUID)

%description
This the DBIx::Class manpage component resembles the behaviour of the
Class::DBI::UUID manpage, to make some columns implicitly created as uuid.

When loaded, 'UUIDColumns' will search for a suitable uuid generation
module from the following list of supported modules:

  Data::UUID
  APR::UUID*
  UUID
  Win32::Guidgen
  Win32API::GUID

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4499 |21cr|perl-DBIx-Connector-0.580.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Connector
%define upstream_version 0.58

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    No summary found
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(DBI) >= 1.605.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::MockModule) >= 0.50.0
BuildRequires: perl(Test::More) >= 0.880.0
BuildArch:  noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json *META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4500 |21cr|perl-DBIx-ContextualFetch-1.30.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBIx-ContextualFetch
%define upstream_version 1.03

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(DBI::db\\)|perl\\(DBI::st\\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Add contextual fetches to DBI

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
It always struck me odd that DBI didn't take much advantage of Perl's
context sensitivity. DBIx::ContextualFetch redefines some of the various
fetch methods to fix this oversight. It also adds a few new methods for
convenience (though not necessarily efficiency).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/DBIx
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4501 |21cr|perl-DBIx-DBSchema-0.470.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBIx-DBSchema
%define upstream_version 0.47

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Database-independent schema objects

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBI)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.90.800
BuildRequires:	perl(Storable)

BuildArch:	noarch

%description
DBIx::DBSchema objects are collections of DBIx::DBSchema::Table objects and 
represent a database schema.
This module implements an OO-interface to database schemas. Using this module, 
you can create a database schema with an OO Perl interface. You can read the 
schema from an existing database. You can save the schema to disk and restore 
it a different process. Most importantly, DBIx::DBSchema can write SQL CREATE 
statements statements for different databases from a single source.

Currently supported databases are MySQL and PostgreSQL. Sybase support 
is partially implemented. DBIx::DBSchema will attempt to use generic SQL 
syntax for other databases. Assistance adding support for other databases 
is welcomed. See DBIx::DBSchema::DBD, "Driver Writer's Guide and Base Class".

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -name "*.pm" |xargs chmod 0644

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/DBIx
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4502 |21cr|perl-DBIx-Introspector-0.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Introspector
%define upstream_version 0.001005

%global __requires_exclude perl\\(DBIx::Introspector::Driver\\)

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Detect what database you are connected to

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(DBD::SQLite) >= 1.400.0
BuildRequires: perl(DBI) >= 1.628.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(Moo) >= 1.3.1
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Roo) >= 1.2.0
BuildRequires: perl(strictures)
BuildRequires: perl-devel

BuildArch:  noarch

%description
'DBIx::Introspector' is a module factored out of the the DBIx::Class
manpage database detection code. Most code that needs to detect which
database it is connected to assumes that there is a one-to-one mapping from
database drivers to database engines. Unfortunately reality is rarely that
simple. For instance, the DBD::ODBC manpage is typically used to connect to
SQL Server, but ODBC can be used to connect to PostgreSQL, MySQL, and
Oracle. Additionally, while ODBC is the most common way to connect to SQL
Server, it is not the only option, as the DBD::ADO manpage can also be
used.

'DBIx::Introspector' can correctly detect which database you are connected
to, because it was factored out of a complex, working codebase. On top of
that it has been written to be very extensible. So if you needed to detect
which version of your given database you are connected to that would not be
difficult.

Furthermore, 'DBIx::Introspector' does it's best to try to detect
information based on the dsn you give it if you have not yet connected, so
you can possibly avoid connection or at least defer connection.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4503 |21cr|perl-DBIx-Recordset-0.260.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBIx-Recordset
%define upstream_version 0.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl extension for DBI recordsets

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBI)
BuildRequires:  perl(DBD::Pg)
BuildArch:	noarch
Requires:	perl(DBI)

%description
DBIx::Recordset is a perl module for abstraction and simplification of database
access.

The goal is to make standard database access (select/insert/update/delete)
easier to handle and independend of the underlying DBMS. Special attention is
made on web applications to make it possible to handle the state-less access
and to process the posted data of formfields, but DBIx::Recordset is not
limited to web applications.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
chmod 644 Changes Recordset.pm
perl -pi -e 's/\cM//' Changes
perl Makefile.PL INSTALLDIRS=vendor << EOF




EOF
make

%install
%makeinstall_std

%files
%doc Changes README TODO
%{_mandir}/*/*
%{perl_vendorlib}/DBIx

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4504 |21cr|perl-DBIx-SearchBuilder-1.710.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBIx-SearchBuilder
%define upstream_version 1.71

%global __requires_exclude perl\\(DBD::Oracle\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Encapsulate SQL queries and rows in simple perl object

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/DBIx-SearchBuilder-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Want)
BuildRequires:	perl(DBI)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(Class::ReturnValue)
BuildRequires:	perl(Cache::Simple::TimedExpiry)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Clone)
BuildRequires:	perl(DBIx::DBSchema)
BuildArch:	noarch

%description
This module provides an object-oriented mechanism for retrieving and updating
data in a DBI-accesible database.

In order to use this module, you should create a subclass of
DBIx::SearchBuilder and a subclass of DBIx::SearchBuilder::Record for each
table that you wish to access. (See the documentation of
DBIx::SearchBuilder::Record for more information on subclassing it.)

Your DBIx::SearchBuilder subclass must override NewItem, and probably should
override at least _Init also; at the very least, _Init should probably call
_Handle and _Table to set the database handle (a DBIx::SearchBuilder::Handle
object) and table name for the class. You can try to override just about
every other method here, as long as you think you know what you are doing.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find -name \*.pm | xargs chmod 644

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/DBIx
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4505 |21cr|perl-DCOP-0.38.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DCOP
%define upstream_version 0.038

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
Epoch:		2

Summary:	Extensible inheritable class to dcop

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/J/JC/JCMULLER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This class is meant to be a base constructor for higher level of
abstraction on dcop clients.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4506 |21cr|perl-Debug-Client-0.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Debug-Client
%define upstream_version 0.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Client side code for perl debugger

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Debug/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl-IO-Socket-IP
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Term::ReadLine)
BuildRequires:	perl(Term::ReadLine::Perl)
BuildRequires:	perl(Term::ReadLine::Gnu)
BuildRequires:	perl(Test::Class)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::CheckDeps)
BuildArch:	noarch

%description
new
    The constructor can get two parameters: host and port.

      my $d = Debug::Client->new;
    
      my $d = Debug::Client->new(host => 'remote.hots.com', port => 4242);

    Immediately after the object creation one needs to call

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4507 |21cr|perl-Debug-ShowStuff-1.160.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Debug-ShowStuff
%define upstream_version 1.16

%bcond_with bootstrap

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A collection of handy debugging routines for displaying

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Debug/Debug-ShowStuff-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Tie::IxHash)
%if %{without bootstrap}
BuildRequires:	perl(String::Util)
%endif
BuildArch:	noarch

%description
'Debug::ShowStuff' grew dynamically from my needs in debugging code. I
found myself doing the same tasks over and over... displaying the keys and
values in a hash, displaying the elements in an array, displaying the
output of STDERR in a web page, etc. 'Debug::ShowStuff' began as two or
three of my favorite routines and grew as I added to that collection.
Finally I decided to publish these tools in the hope that other Perl
hackers will find them useful.

'Debug::ShowStuff' is intended for debugging, not for production work. I
would discourage anyone from using 'Debug::ShowStuff' in
ready-for-primetime code. 'Debug::ShowStuff' is only for quick-n-dirty
displays of variable values in order to debug your code.

These functions display values the way I personally like them displayed.
Your preferences may be different. I encourage you to modify
'Debug::ShowStuff' to suit your own needs.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4508 |21cr|perl-Devel-ArgNames-0.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-ArgNames
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Figure out the names of variables passed into subroutines

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Test::use::ok)
BuildArch:	noarch

%description
When print-debugging code, you will often ind yourself going:

	print "\$foo is $foo, \$bar is $bar"

With this module, you can write a reusable subroutine easily:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4509 |21cr|perl-Devel-Autoflush-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Autoflush
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Set autoflush from the command line

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::CaptureOutput)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This module is a hack to set autoflush for STDOUT and STDERR from the
command line or from 'PERL5OPT' for code that needs it but doesn't have it.

This often happens when prompting:

   # guess.pl
   print "Guess a number: ";
   my $n = <STDIN>;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4510 |21cr|perl-Devel-Callsite-1.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude Callsite.so

%define upstream_name    Devel-Callsite
%define upstream_version 1.0.1

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Get caller return OP address and Perl interpreter context
License:    perl_5
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Devel::PPPort)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl-devel

%description
callsite
        $callsite = callsite()
        $callsite = callsite($level)

    This function returns the the OP address of the caller, a number. It
    can take an optional integer specifying the number of levels back to
    get the OP address. If no parameter is given, a value of 0 is used
    which means to go up one level in the call chain. This behavior is like
    the built-in function perlfunc/caller.

    This value is useful for functions that need to uniquely know where
    they were called, such as 'Every::every()'; see the Every manpage. Or
    it can be used to the pinpoint a location with finer granularity than a
    line number|http://www.perlmonks.com/?node_id=987268 manpage. In
    conjunction with an OP tree disassembly you can know exactly where the
    caller is located in the Perl source.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4511 |21cr|perl-Devel-CheckLib-1.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-CheckLib
%define upstream_version 1.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Check that a library is available
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MATTN/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::CaptureOutput)
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Devel::CheckLib is a perl module that checks whether a particular C library
and its headers are available.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES META.yml README
%{_bindir}/use-devel-checklib
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{_mandir}/man1/use-devel-checklib.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4512 |21cr|perl-Devel-CheckOS-1.960.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Devel-CheckOS
%define upstream_version 1.96

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Check what OS we're running on


License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Data::Compare)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::Temp) >= 0.190.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Warnings)

BuildArch:	noarch

%description
A learned sage once wrote on IRC:

   $^O is stupid and ugly, it wears its pants as a hat

Devel::CheckOS provides a more friendly interface to $^O, and also lets you
check for various OS "families" such as "Unix", which includes things like
Linux, Solaris, AIX etc.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README *.txt CHANGELOG META.json META.yml
%{_bindir}/use-devel-assertos
%{_mandir}/man1/use-devel-assertos.1*
%{_mandir}/man3/*
%{perl_vendorlib}/Devel

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4513 |21cr|perl-Devel-Confess-0.9.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Confess
%define upstream_version 0.009004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Enable built in stack traces on exception objects
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)

BuildArch: noarch

%description
This module is meant as a debugging aid. It can be used to make a script
complain loudly with stack backtraces when warn()ing or die()ing. Unlike
other similar modules (e.g. the Carp::Always manpage), it includes stack
traces even when exception objects are thrown.

The stack traces are generated using the Carp manpage, and will look work
for all types of errors. the Carp manpage's 'carp' and 'confess' functions
will also be made to include stack traces.

  # it works for explicit die's and warn's
  $ perl -MDevel::Confess -e 'sub f { die "arghh" }; sub g { f }; g'
  arghh at -e line 1.
          main::f() called at -e line 1
          main::g() called at -e line 1.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4514 |21cr|perl-Devel-CoreStack-1.300.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-CoreStack
%define upstream_version 1.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Try to generate a stack dump from a core file

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Devel-CoreStack/
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Try to generate a stack dump from a core file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS="vendor" < /dev/null
%make

%check
%make test

%install
%makeinstall_std

%files
%defattr(-, root, root, 0755)
%{perl_vendorlib}/Devel/CoreStack.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4515 |21cr|perl-Devel-Cover-1.360.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Cover
%define upstream_version 1.36

%global __requires_exclude perl\\(Sereal.*|perl\\(Devel::Cover.*

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Code coverage metrics for Perl
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Digest::MD5)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Storable)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warn)
BuildRequires: perl-devel
# For tests
BuildRequires: perl(HTML::Formatter)

%description
This module provides code coverage metrics for Perl. Code coverage metrics
describe how thoroughly tests exercise code. By using Devel::Cover you can find
areas of code not exercised by your tests and find out which tests to create to
increase coverage. Code coverage can be considered as an indirect measure of
quality.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test || :

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README.*
%{perl_vendorarch}/Devel
%{perl_vendorarch}/auto/Devel
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4516 |21cr|perl-Devel-Dumpvar-1.60.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Dumpvar
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	A pure-OO reimplementation of dumpvar.pl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(inc::Module::Install::DSL)
BuildArch:	noarch

%description
Most perl dumping modules are focused on serializing data structures into a
format that can be rebuilt into the original data structure. They do this
with a variety of different focuses, such as human readability, the ability
to execute the dumped code directly, or to minimize the size of the dumped
data.

Excect for the one contained in the debugger, in the file dumpvar.pl. This
is a much more human-readable form, highly useful for debugging, containing
a lot of extra information without the burden of needing to allow the dump
to be re-assembled into the original data.

The main downside of the dumper in the perl-debugger is that the dumpvar.pl
script is not really a readily loadable and useable module. It has
dedicated hooks from and to the debugger, and spans across multiple
namespaces, including main::.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4517 |21cr|perl-Devel-FindPerl-0.14.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-FindPerl
%define upstream_version 0.014

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Find the path to your perl

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter) >= 5.700.0
BuildRequires: perl(ExtUtils::Config) >= 0.8.0
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IPC::Open2)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl-devel

BuildArch: noarch

%description
This module tries to find the path to the currently running perl.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4518 |21cr|perl-Devel-Hide-0.1.500-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Hide
%define upstream_version 0.0015

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1

Summary:	Forces the unavailability of specified Perl modules (for testing)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/Devel-Hide-%{upstream_version}.tar.gz

BuildRequires:  perl(Test)
BuildRequires:  perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Given a list of Perl modules/filenames, this module makes 'require' and
'use' statements fail (no matter the specified files/modules are installed
or not).

They _die_ with a message like:

    Can't locate Module/ToHide.pm (hidden)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4519 |21cr|perl-Devel-LeakGuard-Object-0.80.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-LeakGuard-Object
%define upstream_version 0.08

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Scoped object leak checking

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(List::Util)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(latest)
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Class::Load)
BuildRequires: perl(File::Find)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Devel::Peek)


BuildArch: noarch

%description
This module provides tracking of objects, for the purpose of detecting
memory leaks due to circular references or innappropriate caching schemes.

It is derived from, and backwards compatible with Adam Kennedy's the
Devel::Leak::Object manpage. Any errors are mine.

It works by overridding 'bless' and adding a synthetic 'DESTROY' method to
any tracked classes so that it can maintain a count of blessed objects
per-class.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL installdirs=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README.* META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4520 |21cr|perl-Devel-Leak-Object-1.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Leak-Object
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Detect leaks of objects

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module provides tracking of objects, for the purpose of detecting
memory leaks due to circular references or innappropriate caching schemes.

Object tracking can be enabled on a per object basis. Any objects thus
tracked are remembered until DESTROYed; details of any objects left are
printed out to stderr at END-time.

  use Devel::Leak::Object qw(GLOBAL_bless);

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4521 |21cr|perl-Devel-NYTProf-6.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Devel-NYTProf
%define upstream_version 6.11
%global __provides_exclude NYTProf.so|NYTProf.so


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Powerful feature-rich perl source code profiler

Group:      Development/Perl
License:    GPL+ or Artistic
Url:        https://search.cpan.org/dist/%{upstream_name}
Source:     https://www.cpan.org/modules/by-module/Devel/Devel-NYTProf-%{upstream_version}.tar.gz
BuildRequires:  perl-devel
BuildRequires:  zlib-devel
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(constant)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(File::Copy)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Which)
BuildRequires:  perl(base)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(XSLoader)
BuildRequires:  perl(AutoLoader)
BuildRequires:  perl(AutoSplit)
BuildRequires:  perl(ExtUtils::testlib)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Test::Differences)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(vars)
BuildRequires:  perl(Sub::Name)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(Test::Portability::Files)
BuildRequires:  perl(Moose)

%description
Devel::NYTProf is a powerful feature-rich perl source code profiler.

  * Performs per-line statement profiling for fine detail
  * Performs per-subroutine statement profiling for overview
  * Performs per-block statement profiling (the first profiler to do so)
  * Accounts correctly for time spent after calls return
  * Performs inclusive and exclusive timing of subroutines
  * Subroutine times are per calling location (a powerful feature)
  * Can profile compile-time activity, just run-time, or just END time
  * Uses novel techniques for efficient profiling
  * Sub-microsecond (100ns) resolution on systems with clock_gettime()
  * Very fast - the fastest statement and subroutine profilers for perl
  * Handles applications that fork, with no performance cost
  * Immune from noise caused by profiling overheads and I/O
  * Program being profiled can stop/start the profiler
  * Generates richly annotated and cross-linked html reports
  * Trivial to use with mod_perl - add one line to httpd.conf
  * Includes an extensive test suite
  * Tested on very large codebases

NYTProf is effectively two profilers in one: a statement profiler, and a
subroutine profiler.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 
chmod -R 755 demo
pushd demo
find . -name "*.pl" -o -name "README" |xargs chmod 0644
popd
chmod 644 META.json META.yml

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes HACKING demo README.md META.json META.yml
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Devel*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4522 |21cr|perl-Devel-PatchPerl-2.08-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define upstream_name    Devel-PatchPerl
%define upstream_version 2.08
%global __requires_exclude ^perl\\(t::Watchdog)
Name:  perl-%{upstream_name}
Version:	2.08
Release:	1
Summary:	Replacement 'hints' files
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BI/BINGOS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(IPC::Cmd)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Module::Pluggable)

BuildArch:	noarch


%description
Devel::PatchPerl is a modularisation of the patching code contained in the
Devel::PPort manpage's 'buildperl.pl'.

It does not build perls, it merely provides an interface to the source
patching functionality.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.yml META.json
%{_mandir}/man3/*
%{_mandir}/man1/patchperl.1*
%{_bindir}/patchperl
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4523 |21cr|perl-Devel-Platform-Info-0.150.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Platform-Info
%define upstream_version 0.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Retrieve Solaris platform metadata
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More) >= 0.700.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::MockObject::Extends) >= 1.201.505.270


BuildArch:	noarch

%description
This module is a wrapper to the drivers which can determine platform
metadata regarding the currently running operating system.

The intention of this distribution is to provide key identifying components
regarding the platform currently being used, for the CPAN Testers test
reports. Currently the reports do not often contain enough information to
help authors understand specific failures, where the platform may be a
factor.

However, it is hoped that this distribution will find more uses far beyond
the usage for CPAN Testers.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4524 |21cr|perl-Devel-PPPort-3.620.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Devel-PPPort
%define upstream_version 3.62
%global __provides_exclude PPPort.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Portability aid for your XS code
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/A/AT/ATOOMIC/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

%description
Perl's API has changed over time, gaining new features, new functions,
increasing its flexibility, and reducing the impact on the C namespace
environment (reduced pollution). The header file written by this module,
typically _ppport.h_, attempts to bring some of the newer Perl API features
to older versions of Perl, so that you can worry less about keeping track
of old releases, but users can still reap the benefit.

'Devel::PPPort' contains a single function, called 'WriteFile'. Its only
purpose is to write the _ppport.h_ C header file. This file contains a
series of macros and, if explicitly requested, functions that allow XS
modules to be built using older versions of Perl. Currently, Perl versions
from 5.003 to 5.10.0 are supported.

This module is used by 'h2xs' to write the file _ppport.h_.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4525 |21cr|perl-Devel-ptkdb-1.1091-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname   Devel-ptkdb

Name:		perl-%{realname}
Version:    1.1091
Release:    8
License:	GPL or Artistic
Group:		Development/Perl
Summary:    Perl debugger using a Tk GUI

Source0:    Devel-ptkdb-1.1091.tar.gz
Url:		http://search.cpan.org/dist/%{realname}
BuildRequires: perl-devel
BuildArch: noarch

%description
Perl debugger using a Tk GUI 

%prep
%setup -q -n %{realname}-%{version} 

%build
yes | %{__perl} Makefile.PL -n INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4526 |21cr|perl-Devel-Refactor-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Refactor
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	The *Devel::Refactor* module is for code refactoring

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The *Devel::Refactor* module is for code refactoring.

While *Devel::Refactor* may be used from Perl programs, it is also designed
to be used with the *EPIC* plug-in for the *eclipse* integrated development
environment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4527 |21cr|perl-Devel-REPL-1.3.29-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-REPL
%define upstream_version 1.003029

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A modern perl interactive shell

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::Meta::Check)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::CheckDeps)
BuildRequires:	perl(B::Keywords)
BuildRequires:	perl(Data::Dump::Streamer)
BuildRequires:	perl(Data::Dumper::Concise)
BuildRequires:	perl(Devel::Peek)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Next)
BuildRequires:	perl(Lexical::Persistence)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Getopt)
BuildRequires:	perl(MooseX::AttributeHelpers)
BuildRequires:	perl(MooseX::Object::Pluggable)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Sys::SigAction)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Term::ANSIColor)
BuildRequires:	perl(Term::ReadLine)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
This is an interactive shell for Perl, commonly known as a REPL - Read,
Evaluate, Print, Loop. The shell provides for rapid development or
testing of code without the need to create a temporary source code file.

Through a plugin system, many features are available on demand. You can
also tailor the environment through the use of profiles and run control
files, for example to pre-load certain Perl modules when working on a
particular project.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/re.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4528 |21cr|perl-Devel-SimpleTrace-0.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Devel-SimpleTrace
%define	upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	See where you code warns and dies using stack traces

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module can be used to more easily spot the place where a program or a
module generates errors. Its use is extremely simple, reduced to just useing
it.

This is achieved by modifying the functions warn() and die() in order to
replace the standard messages by complete stack traces that precisely indicates
how and where the error or warning occurred. Other than this, their use should
stay unchanged, even when using die() inside eval().

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{perl_vendorlib}/Devel
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4529 |21cr|perl-Devel-Size-0.830.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Devel-Size
%define upstream_version 0.83

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Find the memory usage of Perl variables
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
This module figures out the real sizes of Perl variables in bytes. Call
functions with a reference to the variable you want the size of. If the
variable is a plain scalar it returns the size of the scalar. If the variable
is a hash or an array, use a reference when calling.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%__make

%check
%__make test

%install
%makeinstall_std

%files
%doc CHANGES 
%{perl_vendorarch}/Devel/*
%{perl_vendorarch}/auto/Devel/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4530 |21cr|perl-Devel-StackTrace-AsHTML-0.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-StackTrace-AsHTML
%define upstream_version 0.15

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Displays stack trace in HTML

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Devel::StackTrace)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(Filter::Util::Call)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch:  noarch

%description
Devel::StackTrace::AsHTML adds 'as_html' method to the Devel::StackTrace
manpage which displays the stack trace in beautiful HTML, with code snippet
context and function parameters. If you call it on an instance of the
Devel::StackTrace::WithLexicals manpage, you even get to see the lexical
variables of each stack frame.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README eg
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4531 |21cr|perl-Devel-TakeHashArgs-0.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-TakeHashArgs
%define upstream_version 0.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Make a hash out of args when they are passed as key/value pairs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/Devel-TakeHashArgs-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
The module is a short utility I made after being sick and tired of writing
redundant code to make a hash out of args when they are passed as key/value
pairs including setting their defaults and checking for mandatory
arguments.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4532 |21cr|perl-Devel-Trace-0.120.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Trace
%define upstream_version 0.12
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.12
Release:	5

Summary:	A debugging module that prints out each line before it is executed

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Devel/Devel-Trace-0.12.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
A debugging module that prints out each line before it is executed
(like sh -x).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
echo "" | make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Devel
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4533 |21cr|perl-Devel-TraceUse-2.96.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-TraceUse
%define upstream_version 2.096

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        4

Summary:        Hack around calling UNIVERSAL::can() as a function

License:        GPL+ or Artistic
Group:          Development/Perl
Url:            http://search.cpan.org/dist/%{upstream_name}
Source0:        https://cpan.metacpan.org/authors/id/B/BO/BOOK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(Test::More)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Module::CoreList)
BuildRequires:  perl-devel

BuildArch:      noarch

%description
The UNIVERSAL class provides a few default methods so that all objects can use
them. Object orientation allows programmers to override these methods in
subclasses to provide more specific and appropriate behavior.

Some authors call methods in the UNIVERSAL class on potential invocants as
functions, bypassing any possible overriding. This is wrong and you should not
do it. Unfortunately, not everyone heeds this warning and their bad code can
break your good code.

Fortunately, this upstream_name replaces UNIVERSAL::can() with a method that
checks to
see if the first argument is a valid invocant (whether an object -- a blessed
referent -- or the name of a class). If so, and if the invocant's class has its
own can() method, it calls that as a method. Otherwise, everything works as you
might expect.

If someone attempts to call UNIVERSAL::can() as a function, this module will
emit a lexical warning (see perllexwarn) to that effect. You can disable it
with no warnings; or no warnings 'UNIVERSAL::isa';, but don't do that; fix the
code instead.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%check

%install
%makeinstall_std

%files
%{perl_vendorlib}/Devel/
%{_mandir}/man3/* 
%doc README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4534 |21cr|perl-Device-Cdio-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Device-Cdio

%define	enable_test	0

Name:		perl-%{module}
Version:	2.0.0
Release:	2
Summary:	Perl module for CD Input and Control library (libcdio)
License:	GPL
Group:		Development/Perl
Url:		https://github.com/rocky/Perl-Device-Cdio
Source0:	http://www.cpan.org/modules/by-module/Device/%{module}-v%{version}.tar.gz
Patch0:		perl-Device-Cdio-2.0.0-gcc-4.7.patch
BuildRequires:	perl-devel >= 5.8.0
BuildRequires:	perl-version
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(ExtUtils::PkgConfig) >= 1.03
BuildRequires:	perl(Module::Build)
# For tests
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	pkgconfig(libcdio) >= 2.0.0
BuildRequires:	swig

%description
This package contains Perl bindings for the CD Input and Control library
(libcdio) and it's ISO 9660 library (libiso9660).
Perl programs wishing to be oblivious of the OS- and device-dependent
properties of a CD-ROM can use this library.

%files
%doc ChangeLog COPYING README.md
%{perl_vendorarch}/*
%{_mandir}/man3/*

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-v%{version}
chmod u+w -R .
%patch0 -p1 -b .gcc47


%build
perl Build.PL installdirs=vendor
# M::B copy files read-only, forcing to use 
# a two-pass build command
# https://rt.cpan.org/Ticket/Display.html?id=42777
./Build CFLAGS="%{optflags}" || :
chmod u+w -R .
./Build CFLAGS="%{optflags}"


%if %{enable_test}
%check
./Build test
%endif


%install
./Build install destdir=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4535 |21cr|perl-Digest-1.170.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Digest
%define upstream_version 1.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Calculate digests of files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(MIME::Base64)
BuildArch:	noarch

%description
The 'Digest::' modules calculate digests, also called "fingerprints" or
"hashes", of some data, called a message. The digest is (usually) some
small/fixed size string. The actual size of the digest depend of the
algorithm used. The message is simply a sequence of arbitrary bytes or
bits.

An important property of the digest algorithms is that the digest is
_likely_ to change if the message change in some way. Another property is
that digest functions are one-way functions, that is it should be _hard_ to
find a message that correspond to some given digest. Algorithms differ in
how "likely" and how "hard", as well as how efficient they are to compute.

Note that the properties of the algorithms change over time, as the
algorithms are analyzed and machines grow faster. If your application for
instance depends on it being "impossible" to generate the same digest for a
different message it is wise to make it easy to plug in stronger algorithms
as the one used grow weaker. Using the interface documented here should
make it easy to change algorithms later.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4536 |21cr|perl-Digest-Bcrypt-1.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Digest-Bcrypt
%define upstream_version 1.0.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:        3
Summary:        Perl interface to the bcrypt digest algorithm
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Digest-Bcrypt/
Source0:        http://www.cpan.org/modules/by-module/Digest/Digest-Bcrypt-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(Carp)
BuildRequires:  perl(Crypt::Eksblowfish::Bcrypt)
BuildRequires:  perl(Digest)
BuildRequires:  perl(Digest::base)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(parent)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(warnings)

%description
Provides an interface to the bcrypt digest algorithm.

This module subclasses Digest::base and can be used either directly or 
through the Digest meta-module. Using the latter is recommended.

It is mostly a wrapper around Crypt::Eksblowfish::Bcrypt.

%prep
%setup -qn Digest-Bcrypt-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

find %{buildroot} -type f -name .packlist -exec rm -f {} \;

%check
make test

%files
%doc CHANGES LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4537 |21cr|perl-Digest-BubbleBabble-0.20.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Digest-BubbleBabble
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Create bubble-babble fingerprints

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Digest/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Digest::BubbleBabble takes a message digest (generated by either of the MD5 or
SHA-1 message digest algorithms) and creates a fingerprint of that digest in
"bubble babble" format. Bubble babble is a method of representing a message
digest as a string of "real" words, to make the fingerprint easier to remember.
The "words" are not necessarily real words, but they look more like words than
a string of hex characters.

Bubble babble fingerprinting is used by the SSH2 suite (and, consequently, by
Net::SSH::Perl, the Perl SSH implementation) to display easy-to-remember key
fingerprints. The key (a DSA or RSA key) is converted into a textual form,
digested using Digest::SHA1, and run through bubblebabble to create the key
fingerprint.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Digest
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4538 |21cr|perl-Digest-CRC-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Digest-CRC
%define upstream_version 0.24
%global __provides_exclude CRC.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Generic CRC functions

License:	Public Domain
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Digest/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
The Digest::CRC module calculates CRC sums of all sorts. It contains wrapper
functions with the correct parameters for CRC-CCITT, CRC-16 and CRC-32.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README META.yml
%dir %{perl_vendorarch}/auto/Digest/CRC
%{perl_vendorarch}/auto/Digest/CRC/*.so
%{perl_vendorarch}/Digest/CRC.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4539 |21cr|perl-Digest-GOST-0.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Digest-GOST
%define upstream_version 0.06

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Uses the CryptoPro parameters from RFC 4357
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Digest/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Digest)
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
BuildRequires: perl(parent)
BuildRequires: perl-devel

%description
The 'Digest::GOST' module provides an interface to the GOST R 34.11-94
message digest algorithm.

This interface follows the conventions set forth by the 'Digest' module.

This module uses the default "test" parameters. To use the CryptoPro
parameters, use 'Digest::GOST::CryptoPro'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4540 |21cr|perl-Digest-JHash-0.100.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Digest-JHash
%define upstream_version 0.10
%global __provides_exclude JHash.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Perl extension for 32 bit Jenkins Hashing Algorithm

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Digest/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::CPAN::Changes)
BuildRequires:  perl(Test::Pod) >= 1.480.0
BuildRequires:  perl(Test::Pod::Coverage) >= 1.80.0


%description
The 'Digest::JHash' module allows you to use the fast JHash hashing
algorithm developed by Bob Jenkins from within Perl programs. The algorithm
takes as input a message of arbitrary length and produces as output a
32-bit "message digest" of the input in the form of an unsigned long
integer.

Call it a low calorie version of MD5 if you like.

See http://burtleburtle.net/bob/hash/doobs.html for more information.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

# garbage
rm -fr Changes~ dist.ini~ lib/Digest/JHash.pm~

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test RELEASE_TESTING=1

%install
%makeinstall_std

%files
%doc Changes META.yml README 
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4541 |21cr|perl-Digest-MD2-2.40.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Digest-MD2
%define	upstream_version 2.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3
Summary:	Perl interface to the MD2 Algorithm

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
Provides:	perl-MD2
Requires:	perl

%description
Digest-MD2 module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%__make test

%install
%makeinstall_std

%clean 

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/Digest
%{perl_vendorarch}/auto

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4542 |21cr|perl-Digest-MD4-1.900.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Digest-MD4
%define upstream_version 1.9
Name:       perl-%{upstream_name}
Version:    %perl_convert_version 1.9
Release:	6

Summary:	Perl interface to the MD4 Algorithm

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Digest/Digest-MD4-1.9.tar.gz

BuildRequires:	perl-devel


%description
The Digest-MD4 module allows you to use the MD4 Message Digest algorithm from
within Perl programs. The algorithm takes as input a message of arbitrary
length and produces as output a 128-bit "fingerprint" or "message digest" of
the input.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README rfc1320.txt
%{perl_vendorarch}/Digest
%{perl_vendorarch}/auto/Digest
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4543 |21cr|perl-Digest-MD5-2.540.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Digest-MD5
%define upstream_version 2.54

%global __provides_exclude  'MD5.so'

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:     MD5 message digest algorithm

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Digest/Digest-MD5-%{upstream_version}.tar.gz

BuildRequires: perl(Digest::base)
BuildRequires: perl(Test)
BuildRequires: perl(File::Spec)
BuildRequires: perl(XSLoader)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0

BuildRequires: perl-devel

%description
The 'Digest::MD5' module allows you to use the RSA Data Security Inc. MD5
Message Digest algorithm from within Perl programs. The algorithm takes as
input a message of arbitrary length and produces as output a 128-bit
"fingerprint" or "message digest" of the input.

Note that the MD5 algorithm is not as strong as it used to be. It has since
2005 been easy to generate different messages that produce the same MD5
digest. It still seems hard to generate messages that produce a given
digest, but it is probably wise to move to stronger algorithms for
applications that depend on the digest to uniquely identify a message.

The 'Digest::MD5' module provide a procedural interface for simple use, as
well as an object oriented interface that can handle messages of arbitrary
length and which can read files directly.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4544 |21cr|perl-Digest-MD5-M4p-0.10.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Digest-MD5-M4p
%define upstream_version 0.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9

Summary:    Perl interface to a variant of the MD5 algorithm

License:    Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Digest/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel

%description
he Digest::MD5 module is cloned from the Digest::MD5 module to support a
variant  Apple iTunes implementation of the MD5 algorithm. If you don't know 
why this is so, don't bother with this module! It is incompatible with RSA 
and RFC standards!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%defattr(-, root, root, 0755)
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/Digest/MD5/M4p.pm
%{perl_vendorarch}/auto/Digest/MD5/M4p

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4545 |21cr|perl-Digest-Nilsimsa-0.60.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Digest-Nilsimsa
%define	upstream_version	0.06

Summary:	Perl interface to the Nilsima Algorithm	

Name:		perl-Digest-Nilsimsa
Version:	%perl_convert_version %{upstream_version}
Release:	12
License:	GPL or Artistic
Group:		Development/Perl
Source:		http://www.cpan.org/authors/id/V/VI/VIPUL/%{upstream_name}-%{upstream_version}.tar.gz
URL:		http://search.cpan.org/dist/%{upstream_name}/
BuildRequires:	perl-devel
Requires:	perl

%description
Digest-Nilsimsa module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc README 
%{_mandir}/*/*
%{perl_vendorarch}/auto/Digest/Nilsimsa
%{perl_vendorarch}/Digest/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4546 |21cr|perl-Digest-SHA3-1.05-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-Digest-SHA3
Version:        1.05
Release:        1
Summary:        Perl extension for SHA-3
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            https://metacpan.org/release/Digest-SHA3
Source0:        https://cpan.metacpan.org/modules/by-module/Digest/Digest-SHA3-%{version}.tar.gz
BuildRequires:  gcc
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(Carp)
BuildRequires:  perl(Config)
BuildRequires:  perl(Digest::base)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(Getopt::Std)
BuildRequires:  perl(integer)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(Test::Pod::Coverage) >= 0.08
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
BuildRequires:  perl(XSLoader)
BuildRequires:  sed
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires:       perl(Carp)
Requires:       perl(Digest::base)
Requires:       perl(XSLoader)

%description
Digest::SHA3 is written in C for speed. If your platform lacks a C
compiler, perhaps you can find the module in a binary form compatible with
your particular processor and operating system.

%prep
%setup -q -n Digest-SHA3-%{version}
sed -i 's|#!.*perl|#!/usr/bin/perl|' examples/dups3
chmod -c -x examples/dups3

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}

%install
make pure_install DESTDIR=$RPM_BUILD_ROOT

find $RPM_BUILD_ROOT -type f -name .packlist -delete
find $RPM_BUILD_ROOT -type f -name '*.bs' -size 0 -delete

%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%files
%doc Changes README examples
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Digest*
%{_mandir}/man3/*

%package -n sha3sum
Summary:        Compute and check SHA3 message digest
BuildArch:      noarch
Requires:       perl(Digest::SHA3)

%description -n sha3sum
This script will compute and check the SHA3 message digest of a file

%files -n sha3sum
%doc README
%{_mandir}/man1/*
%{_bindir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4547 |21cr|perl-Dir-Self-0.110.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dir-Self
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A __DIR__ constant for the directory your source file is in

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dir/Dir-Self-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Perl has two pseudo-constants describing the current location in your
source code, '__FILE__' and '__LINE__'. This module adds '__DIR__', which
expands to the directory your source file is in, as an absolute pathname.

This is useful if your code wants to access files in the same directory,
like helper modules or configuration data. This is a bit like the FindBin
manpage except it's not limited to the main program, i.e. you can also use
it in modules. And it actually works.

As of version 0.10 each use of '__DIR__' recomputes the directory name;
this ensures that files in different directories that share the same
package name get correct results. If you don't want this, 'use Dir::Self
qw(:static)' will create a true '__DIR__' constant in your package that
contains the directory name at the point of 'use'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4548 |21cr|perl-Dist-Zilla-6.25.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla
%define upstream_version 6.025

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Something that provides a version number for the dist
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(App::Cmd::Command::version)
BuildRequires: perl(App::cpanminus)
BuildRequires: perl(App::Cmd::Setup) >= 0.309.0
BuildRequires: perl(App::Cmd::Tester) >= 0.306.0
BuildRequires: perl(App::Cmd::Tester::CaptureExternal)
BuildRequires: perl(Archive::Tar)
BuildRequires: perl(CPAN::Meta::Check)
BuildRequires: perl(CPAN::Meta::Converter) >= 2.101.550
BuildRequires: perl(CPAN::Meta::Prereqs) >= 2.120.630
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.121.0
BuildRequires: perl(CPAN::Meta::Validator) >= 2.101.550
BuildRequires: perl(CPAN::Uploader) >= 0.103.4
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Load) >= 0.170.0
BuildRequires: perl(Config::INI::Reader)
BuildRequires: perl(Config::MVP::Assembler)
BuildRequires: perl(Config::MVP::Assembler::WithBundles)
BuildRequires: perl(Config::MVP::Reader) >= 2.101.540
BuildRequires: perl(Config::MVP::Reader::Findable::ByExtension)
BuildRequires: perl(Config::MVP::Reader::Finder)
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.0.0
BuildRequires: perl(Config::MVP::Section) >= 2.200.2
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Data::Section) >= 0.200.2
BuildRequires: perl(DateTime) >= 0.440.0
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Encode)
BuildRequires: perl(experimental)
BuildRequires: perl(File::Copy::Recursive)
BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::ShareDir::Install) >= 0.30.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::pushd)
BuildRequires: perl(Hash::Merge::Simple)
BuildRequires: perl(JSON) >= 2.0.0
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(List::AllUtils)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(Log::Dispatchouli) >= 1.102.220
BuildRequires: perl(Mixin::Linewise::Readers) >= 0.100.0
BuildRequires: perl(Moose) >= 0.920.0
BuildRequires: perl(Moose::Autobox) >= 0.100.0
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::LazyRequire)
BuildRequires: perl(MooseX::Role::Parameterized)
BuildRequires: perl(MooseX::SetOnce)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(MooseX::Types::Path::Class)
BuildRequires: perl(MooseX::Types::Perl)
BuildRequires: perl(PPI)
BuildRequires: perl(PPI::Document)
BuildRequires: perl(Params::Util)
BuildRequires: perl(Path::Class) >= 0.220.0
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Perl::PrereqScanner) >= 1.16.0
BuildRequires: perl(Perl::Version)
BuildRequires: perl(Pod::Eventual) >= 0.91.480
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Software::License) >= 0.101.370
BuildRequires: perl(Software::License::None)
BuildRequires: perl(Software::LicenseUtils)
BuildRequires: perl(Storable)
BuildRequires: perl(String::Formatter) >= 0.100.680
BuildRequires: perl(String::RewritePrefix) >= 0.5.0
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Sub::Exporter::ForMethods)
BuildRequires: perl(Sub::Exporter::Util)
BuildRequires: perl(Term::Encoding)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Term::ReadLine)
BuildRequires: perl(Term::UI)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::FailWarnings)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::File::ShareDir)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Text::Glob) >= 0.80.0
BuildRequires: perl(Text::Template)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(YAML::Tiny)
BuildRequires: perl(autobox) >= 2.530.0
BuildRequires: perl(autodie)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl-ExtUtils-Manifest
BuildRequires: perl-ExtUtils-MakeMaker
BuildRequires: perl(Archive::Tar::Wrapper)
BuildRequires: perl(Term::ReadLine::Gnu)
BuildRequires: perl(PPI::XS)
BuildRequires: perl(CPAN::Meta::Merge)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(aliased)

# only for ABF
# Cannot determine local time zone
BuildRequires:  perl(Time::ZoneInfo)
BuildRequires:  perl(DateTime)
BuildRequires:  perl(DateTime::TimeZone) >= 1.740.0
BuildRequires:  perl(DateTime::Locale) >= 0.450.0
BuildRequires:  timezone
#
Requires: perl(ExtUtils::MakeMaker) >= 7.40.0
Requires: perl(namespace::autoclean)

Recommends:	perl(Task::Dist::Zilla)

BuildArch:  noarch

%description
Dist::Zilla builds distributions of code to be uploaded to the CPAN. In
this respect, it is like the ExtUtils::MakeMaker manpage, the Module::Build
manpage, or the Module::Install manpage. Unlike those tools, however, it is
not also a system for installing code that has been downloaded from the
CPAN. Since it's only run by authors, and is meant to be run on a
repository checkout rather than on published, released code, it can do much
more than those tools, and is free to make much more ludicrous demands in
terms of prerequisites.

For more information, see the Dist::Zilla::Tutorial manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

# Cannot determine local time zone on abf
rm -fr t/plugins/installdirs.t t/plugins/prunes.t t/plugins/distmeta.t t/plugins/license.t t/plugins/readme.t 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test


%install
%makeinstall_std
install -d %{buildroot}/etc/bash_completion.d/
install -m 644 misc/dzil-bash_completion %{buildroot}/etc/bash_completion.d/dzil

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/dzil
%config(noreplace) %{_sysconfdir}/bash_completion.d/dzil

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4549 |21cr|perl-Dist-Zilla-Config-Slicer-0.202.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Config-Slicer
%define upstream_version 0.202

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Pass Portions of Bundle Config to Plugins
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Config::MVP::Slicer)
BuildRequires: perl(Dist::Zilla::PluginBundle::Filter)
BuildRequires: perl(Dist::Zilla::Role::PluginBundle)
BuildRequires: perl(Dist::Zilla::Role::PluginBundle::Easy)
BuildRequires: perl(Dist::Zilla::Util)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch: noarch

%description
This is a subclass of the Config::MVP::Slicer manpage that overrides the
default Config::MVP::Slicer/match_package to expand packages according to
the Dist::Zilla manpage's rules.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml LICENSE META.json Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4550 |21cr|perl-Dist-Zilla-Plugin-ApacheTest-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-ApacheTest
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Build a Makefile.PL that uses ExtUtils::MakeMaker with Apache::Test

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Dist::Zilla::File::InMemory)
BuildRequires:	perl(Dist::Zilla::Role::BuildRunner)
BuildRequires:	perl(Dist::Zilla::Role::InstallTool)
BuildRequires:	perl(Dist::Zilla::Role::PrereqSource)
BuildRequires:	perl(Dist::Zilla::Role::TestRunner)
BuildRequires:	perl(Dist::Zilla::Role::TextTemplate)
BuildRequires:	perl(Dist::Zilla::Plugin::MakeMaker::Awesome)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
This plugin will produce an the ExtUtils::MakeMaker manpage-powered
_Makefile.PL_ with Apache::Test hooks for the distribution. If loaded, the
Dist::Zilla::Plugin::Manifest plugin should also be loaded, and the
Dist::Zilla::Plugin::MakeMaker plugin should not be loaded.

At this time, this module is essentially a copy of the
Dist::Zilla::Plugin::MakeMaker plugin. Hopefully, over time, the
Dist::Zilla::Plugin::MakeMaker plugin will allow more customization so that
this module will not need to reimplement all of it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4551 |21cr|perl-Dist-Zilla-Plugin-AssertOS-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-AssertOS
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Require that our distribution is running on a particular OS

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Compare)
BuildRequires:	perl(Devel::CheckOS)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider)
BuildArch:	noarch

%description
Dist::Zilla::Plugin::AssertOS is a the Dist::Zilla manpage plugin that
integrates the Devel::AssertOS manpage so that CPAN authors may easily
stipulate which particular OS environments their distributions may be built
and installed on.

The author specifies which OS or OS families are supported. The necessary
the Devel::AssertOS manpage files are copied to the 'inc/' directory and
'Makefile.PL' is mungled to include the necessary incantation.

On the module user side, the bundled 'inc/' the Devel::AssertOS manpage
determines whether the current environment is supported or not and will die
accordingly.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README META.json Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4552 |21cr|perl-Dist-Zilla-Plugin-Authority-1.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Authority
%define upstream_version 1.009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Add the $AUTHORITY variable and metadata to your distribution
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: 	perl-devel
BuildRequires: 	perl(Dist::Zilla::Role::FileFinderUser)
BuildRequires:	perl(Dist::Zilla::Role::FileMunger)
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider)
BuildRequires:	perl(Dist::Zilla::Role::PPI)
BuildRequires:	perl(Dist::Zilla::Util)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Test::Apocalypse)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)

BuildArch:  noarch

%description
This plugin adds the authority data to your distribution. It adds the data
to your modules and metadata. Normally it looks for the PAUSE author id in
your the Dist::Zilla manpage configuration. If you want to override it,
please use the 'authority' attribute.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README SIGNATURE examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4553 |21cr|perl-Dist-Zilla-Plugin-AutoVersion-Relative-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-AutoVersion-Relative
%define upstream_version 1.001001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Time-Relative versioning
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::GatherDir)
BuildRequires:	perl(Dist::Zilla::Tester)
BuildRequires:	perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires:	perl(File::Spec) >= 3.62
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Test::More) >= 1.1.14
BuildRequires:	perl(Const::Fast)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Dist::Zilla) 
BuildRequires:	perl(Dist::Zilla::Role::TextTemplate) 
BuildRequires:	perl(Dist::Zilla::Role::VersionProvider) 
BuildRequires:	perl(Dist::Zilla::Util::ConfigDumper) >= 0.3.6
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::StrictConstructor)
BuildRequires:	perl(MooseX::Types::DateTime)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(warnings)
BuildRequires:	perl(recommended)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(aliased)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Time-Relative versioning.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4554 |21cr|perl-Dist-Zilla-Plugin-Bootstrap-lib-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Bootstrap-lib
%define upstream_version 1.001002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A minimal boot-strapping for Dist::Zilla Plug-ins

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(English)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(namespace::autoclean) 
BuildRequires: perl(Dist::Zilla::Role::Bootstrap)
BuildRequires: perl(recommended)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(strictures)
BuildRequires: perl(aliased)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Dist::Zilla::Role::Plugin)
BuildRequires: perl(Test::DZil)
BuildRequires: perl-devel
BuildRequires: perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires: perl(CPAN::Meta::Merge)
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires: perl(Config::INI::Reader) >= 0.25.0
BuildRequires: perl(Exception::Class)

BuildArch: noarch

%description
This module does the very simple task of injecting the distributions 'lib'
directory into @INC at the point of its inclusion, so that you can use
plug-ins you're writing for Dist::Zilla, to release the plug-in itself.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4555 |21cr|perl-Dist-Zilla-Plugin-Bugtracker-1.111.80-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Bugtracker
%define upstream_version 1.111080

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Automatically sets the bugtracker URL

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider)
BuildRequires:	perl(English)
BuildRequires:	perl(MooseX::Types::URI)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More) >= 0.940.0

BuildArch:	noarch

%description
This plugin sets the distribution's bugtracker URL as metadata.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4556 |21cr|perl-Dist-Zilla-Plugin-BumpVersionFromGit-0.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-BumpVersionFromGit
%define upstream_version 0.010

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Provide a version number by bumping the last git release tag

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Tester)
BuildRequires:	perl(Dist::Zilla::Role::VersionProvider)
BuildRequires:	perl(Git::Wrapper)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Version::Next)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(version)
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
This does the the Dist::Zilla::Role::VersionProvider manpage role. It finds
the last version number from tags and increments it as the new version used
by Dist::Zilla.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4557 |21cr|perl-Dist-Zilla-PluginBundle-Author-JQUELIN-3.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-PluginBundle-Author-JQUELIN
%define upstream_version 3.005

%{?perl_default_filter}

Summary:	Build & release a distribution like jquelin
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Dist::Zilla::Role::PluginBundle)
BuildRequires:	perl(Dist::Zilla::Role::PluginBundle::Config::Slicer)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Module::Build) >= 0.280.0
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl-devel
Provides:	perl-Dist-Zilla-PluginBundle-JQUELIN = %{EVRD}
Obsoletes:	perl-Dist-Zilla-PluginBundle-JQUELIN < %{EVRD}
BuildArch:	noarch

%description
This is a plugin bundle to load all dist-zilla plugins that jq is using.

%files
%doc Changes LICENSE META.json *META.yml README TODO examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4558 |21cr|perl-Dist-Zilla-PluginBundle-BINGOS-0.200.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-PluginBundle-BINGOS
%define upstream_version 0.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    BeLike::BINGOS when you build your dists
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::ChangelogFromGit) >= 0.6.0
BuildRequires:	perl(Dist::Zilla::Plugin::Clean) >= 0.70.0
BuildRequires:	perl(Dist::Zilla::Plugin::GithubMeta) >= 0.100.0
BuildRequires:	perl(Dist::Zilla::Plugin::MetaJSON) >= 4.200.6
BuildRequires:	perl(Dist::Zilla::Plugin::PkgVersion) >= 4.200.6
BuildRequires:	perl(Dist::Zilla::Plugin::PodCoverageTests) >= 4.200.6
BuildRequires:	perl(Dist::Zilla::Plugin::PodSyntaxTests) >= 4.200.6
BuildRequires:	perl(Dist::Zilla::Plugin::PodWeaver) >= 3.101.641
BuildRequires:	perl(Dist::Zilla::Plugin::ReadmeFromPod) >= 0.140.0
BuildRequires:	perl(Dist::Zilla::Plugin::Test::Compile) >= 1.112.400
BuildRequires:	perl(Dist::Zilla::Role::PluginBundle::PluginRemover) >= 0.103.0
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Moose)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)

BuildArch:  noarch

%description
This is a the Dist::Zilla manpage PluginBundle. It is roughly equivalent to
the following dist.ini:

  [@Basic]

  [MetaJSON]
  [PodSyntaxTests]
  [PodCoverageTests]

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4559 |21cr|perl-Dist-Zilla-PluginBundle-FAYLAND-0.140.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-PluginBundle-FAYLAND
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Dist::Zilla like FAYLAND when you build your dists

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla) >= 5.00
BuildRequires:	perl(Dist::Zilla::Plugin::CheckChangeLog)
BuildRequires:	perl(Dist::Zilla::Plugin::PerlTidy) 
BuildRequires:	perl(Dist::Zilla::Plugin::PodWeaver) >= 3.092.971
BuildRequires:	perl(Dist::Zilla::Plugin::ReadmeFromPod)
BuildRequires:	perl(Dist::Zilla::Plugin::Repository)
BuildRequires:	perl(Dist::Zilla::Plugin::Test::Compile)
BuildRequires:	perl(Dist::Zilla::Plugin::Git::Contributors)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
Dist::Zilla like FAYLAND when you build your dists.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4560 |21cr|perl-Dist-Zilla-PluginBundle-FAYLAND-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-PluginBundle-FAYLAND
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Dist::Zilla like FAYLAND when you build your dists

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla) >= 5.00
BuildRequires:	perl(Dist::Zilla::Plugin::CheckChangeLog)
BuildRequires:	perl(Dist::Zilla::Plugin::PerlTidy) 
BuildRequires:	perl(Dist::Zilla::Plugin::PodWeaver) >= 3.092.971
BuildRequires:	perl(Dist::Zilla::Plugin::ReadmeFromPod)
BuildRequires:	perl(Dist::Zilla::Plugin::Repository)
BuildRequires:	perl(Dist::Zilla::Plugin::Test::Compile)
BuildRequires:	perl(Dist::Zilla::Plugin::Git::Contributors)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
Dist::Zilla like FAYLAND when you build your dists.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4561 |21cr|perl-Dist-Zilla-PluginBundle-Rakudo-0.10.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-PluginBundle-Rakudo
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Rakudo bundle for dist-zilla

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Plugin::AutoVersion)
BuildRequires:	perl(Dist::Zilla::Plugin::GatherDir)
BuildRequires:	perl(Dist::Zilla::Plugin::GitObtain)
BuildRequires:	perl(Dist::Zilla::Plugin::License)
BuildRequires:	perl(Dist::Zilla::Plugin::Manifest)
BuildRequires:	perl(Dist::Zilla::Plugin::PruneCruft)
BuildRequires:	perl(Dist::Zilla::Plugin::PruneFiles)
BuildRequires:	perl(Dist::Zilla::Plugin::SvnObtain)
BuildRequires:	perl(Dist::Zilla::PluginBundle::Git)
BuildArch:	noarch

%description
Rakudo bundle for dist-zilla.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4562 |21cr|perl-Dist-Zilla-PluginBundle-RJBS-5.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-PluginBundle-RJBS
%define upstream_version 5.020

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	See what the mantissa for an rjbs-style version is today

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla) >= 5.03.400
BuildRequires:	perl(Dist::Zilla::Plugin::PodWeaver) >= 3.092.971
BuildRequires:	perl(Dist::Zilla::Plugin::Repository)
BuildRequires:	perl(Dist::Zilla::Plugin::TaskWeaver)
BuildRequires:	perl(Dist::Zilla::Plugin::BumpVersionFromGit)
BuildRequires:	perl(Dist::Zilla::PluginBundle::Git)
BuildRequires:	perl(Pod::Elemental)
BuildRequires:	perl(Pod::Elemental::Transformer::List)
BuildRequires:	perl(Pod::Weaver)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Dist::Zilla::Plugin::CheckExtraTests)
BuildRequires:  perl(Dist::Zilla::Plugin::CheckPrereqsIndexed)
BuildRequires:  perl(Dist::Zilla::Plugin::Git::Contributors)
BuildRequires:  perl(Dist::Zilla::Plugin::GithubMeta)
BuildRequires:  perl(Dist::Zilla::Plugin::Test::ChangesHasContent)
BuildRequires:  perl(Dist::Zilla::Plugin::Test::ReportPrereqs)


BuildArch:	noarch

%description
This is the plugin bundle that RJBS uses. It is equivalent to:

  [@Filter]
  bundle = @Classic
  remove = PodVersion
  remove = MetaYAML

  [AutoVersion]
  [MetaJSON]
  [NextRelease]
  [PodWeaver]
  [Repository]

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README 
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4563 |21cr|perl-Dist-Zilla-PluginBundle-ROKR-0.1.900-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-PluginBundle-ROKR
%define upstream_version 0.0019

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Copy README after building (for SCM inclusion, etc.)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl
BuildRequires:	perl(Config::Identity)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::PkgVersion)
BuildRequires:	perl(Dist::Zilla::Plugin::PodWeaver)
BuildRequires:	perl(Dist::Zilla::PluginBundle::Basic)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::Most)
BuildRequires:  perl(Dist::Zilla::Plugin::Git::Tag)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.570.0
# need by %%check
# BuildRequires:  perl(TAP::Parser)

BuildArch:	noarch

%description
'@ROKR::Basic' - the Dist::Zilla::PluginBundle::ROKR::Basic manpage

This is an enhancement on the @Basic bundle (the
Dist::Zilla::PluginBundle::Basic manpage), specifically:

    @Basic (without Readme)
    CopyReadmeFromBuild
    DynamicManifest
    SurgicalPkgVersion
    SurgicalPodWeaver

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

# some subtests will fail anyway
# Failed 1/1 test programs. 0/0 subtests failed.
%check
#%%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4564 |21cr|perl-Dist-Zilla-Plugin-Catalyst-0.150.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Catalyst
%define upstream_version 0.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	A subclass of Catalyst::Helper

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Catalyst::Helper)
BuildRequires:	perl(Dist::Zilla::File::FromCode)
BuildRequires:	perl(Dist::Zilla::File::InMemory)
BuildRequires:	perl(Dist::Zilla::Role::ModuleMaker)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::ShareDir::Install)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The following is a list of plugins in this distribution to help you
integrate the Catalyst manpage and the Dist::Zilla manpage

* * the Dist::Zilla::Plugin::Catalyst::New manpage Create a new Catalyst
  Project

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4565 |21cr|perl-Dist-Zilla-Plugin-ChangelogFromGit-0.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-ChangelogFromGit
%define upstream_version 0.017

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Build CHANGES from git commits and tags

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(DateTime)
BuildRequires: perl(Dist::Zilla)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Git::Repository) >= 1.314.0
BuildRequires: perl(Git::Repository::Log::Iterator) >= 1.312.0
BuildRequires: perl(Moose::Autobox)
BuildRequires: perl(Software::Release) >= 0.30.0
BuildRequires: perl(Text::Wrap)
BuildRequires: perl(namespace::autoclean)

BuildArch:	noarch

%description
This Dist::Zilla plugin writes a CHANGES file that contains formatted
commit information from recent git logs.

This plugin has the following configuration variables:

* * max_age

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES LICENSE META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4566 |21cr|perl-Dist-Zilla-Plugin-CheckChangeLog-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-CheckChangeLog
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Dist::Zilla with Changes check

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
The code is mostly a copy-paste of the ShipIt::Step::CheckChangeLog manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README* META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4567 |21cr|perl-Dist-Zilla-Plugin-CheckChangesHasContent-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-CheckChangesHasContent
%define upstream_version 0.011

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Ensure Changes has content before releasing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Capture::Tiny) >= 0.300.0
BuildRequires:	perl(Dist::Zilla) >= 5.37.0
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(Moose) >= 2.140.500
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(autodie)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Test::Harness) >= 3.350.0
BuildRequires:	perl(Sub::Exporter::ForMethods) >= 0.100.51
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(Data::Section)
BuildRequires:	perl(Hash::Merge::Simple)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Pod::Coverage::TrustPod)
BuildRequires:	perl(Test::CPAN::Meta)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Spelling)
BuildRequires:	perl(Test::Version)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(Archive::Tar)
# only on abf
BuildRequires:	perl(DateTime::TimeZone)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Date::Manip)
BuildRequires:	perl(DateTime::Locale)
BuildRequires:	perl(Date::Format)
BuildRequires:	perl(Time::ZoneInfo)

BuildArch:	noarch

%description
Foo the foo.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# try to enable local time zone on abf.
# perl -MDateTime::TimeZone::Local -le 'print DateTime::TimeZone::Local->TimeZone()->name'
# make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README 
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4568 |21cr|perl-Dist-Zilla-Plugin-CheckExtraTests-0.29.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-CheckExtraTests
%define upstream_version 0.029

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Check xt tests before release
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(App::Prove)
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::App)
BuildRequires:	perl(Dist::Zilla::Role::BeforeRelease)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(File::chdir)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Path::Iterator::Rule)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(Archive::Tar)


BuildArch:	noarch

%description
Dist::Zilla::App::Command::xtest
Run xt tests for your dist

Dist::Zilla::Plugin::CheckExtraTests 
check xt tests before release

Dist::Zilla::Plugin::RunExtraTests 
support running xt tests via dzil test.



%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4569 |21cr|perl-Dist-Zilla-Plugin-CheckPrereqsIndexed-0.21.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-CheckPrereqsIndexed
%define upstream_version 0.021


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Prevent a release if you have prereqs not found on CPAN
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Dist::Zilla)
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Moose)
BuildRequires: perl(Perl::PrereqScanner)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::RequiresInternet)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(YAML::Tiny)
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(aliased)
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires: perl(Config::INI::Reader) >= 0.25.0
BuildRequires: perl(Archive::Tar)

BuildArch:  noarch

%description
Prevent a release if you have prereqs not found on CPAN.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4570 |21cr|perl-Dist-Zilla-Plugin-Clean-0.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Clean
%define upstream_version 0.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Clean after release
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Role::AfterRelease)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)

BuildArch:  noarch

%description
Damn simple the Dist::Zilla manpage plugin that cleans the working
directory after the release.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4571 |21cr|perl-Dist-Zilla-Plugin-Config-Git-0.920.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Config-Git
%define upstream_version 0.92

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Plugin configuration containing settings for a Git repo
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Dist::Zilla::Role::Plugin)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(String::Errf)
BuildRequires: perl(Test::CheckDeps)
BuildRequires: perl(Test::More)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(base)
BuildRequires: perl(CPAN::Meta::Merge)


BuildArch: noarch

%description
This is an easy-to-use role for plugins to enable usage of
Dist::Zilla::Plugin::Config::Git configurations.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 META.json LICENSE CHANGES META.yml README

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4572 |21cr|perl-Dist-Zilla-Plugin-CopyReadmeFromBuild-0.1.900-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-CopyReadmeFromBuild
%define upstream_version 0.0019

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Copy README after building (for SCM inclusion, etc.)
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Dist::Zilla)
BuildRequires: perl(Test::Most)
BuildRequires: perl-devel
BuildArch:     noarch

%description
CopyReadmeFromBuild will automatically copy the README from the build
directory into the distribution directory. This is so you can commit the
README to version control. GitHub, for example, likes to see a README

Dist::Zilla::Plugin::Readme will not like it if you already have a README,
so you'll have to disable that plugin, an example of which is:

    [@Filter]
    bundle = @Basic
    remove = Readme

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4573 |21cr|perl-Dist-Zilla-Plugin-CopyTo-0.110.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-CopyTo
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Copy to other places plugin for Dist::Zilla

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildArch:	noarch

%description
Copy to other places plugin for Dist::Zilla.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4574 |21cr|perl-Dist-Zilla-Plugin-FatPacker-1.161.631-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-FatPacker
%define upstream_version 1.161631

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Pack your dependencies onto your script file



License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(ok)
BuildRequires:	perl(App::FatPacker)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Dist::Zilla::Role::FileMunger)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Path::Class)
BuildArch:	noarch

%description
This plugin uses the App::FatPacker manpage to pack your dependencies onto
your script file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4575 |21cr|perl-Dist-Zilla-Plugin-Git-2.48.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Git
%define upstream_version 2.048

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Provide a String::Formatter for commit messages
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta::Check)
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(Cwd)
BuildRequires: perl(DateTime)
BuildRequires: perl(Devel::SimpleTrace)
BuildRequires: perl(Dist::Zilla)
BuildRequires: perl(Dist::Zilla::File::InMemory)
BuildRequires: perl(Dist::Zilla::Plugin::Config::Git)
BuildRequires: perl(Dist::Zilla::Plugin::GatherDir)
BuildRequires: perl(Dist::Zilla::Role::AfterBuild)
BuildRequires: perl(Dist::Zilla::Role::AfterMint)
BuildRequires: perl(Dist::Zilla::Role::AfterRelease)
BuildRequires: perl(Dist::Zilla::Role::BeforeRelease)
BuildRequires: perl(Dist::Zilla::Role::FilePruner)
BuildRequires: perl(Dist::Zilla::Role::GitConfig)
BuildRequires: perl(Dist::Zilla::Role::PluginBundle)
BuildRequires: perl(Dist::Zilla::Role::Releaser)
BuildRequires: perl(Dist::Zilla::Role::VersionProvider)
BuildRequires: perl(Dist::Zilla::Tester)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Copy::Recursive)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::Which)
BuildRequires: perl(File::chdir)
BuildRequires: perl(File::pushd)
BuildRequires: perl(Git::Wrapper)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(IPC::System::Simple)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(Log::Dispatchouli)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Has::Sugar)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(MooseX::Types::Path::Tiny)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(String::Formatter)
BuildRequires: perl(Test::DZil)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(Type::Utils)
BuildRequires: perl(Types::Path::Tiny)
BuildRequires: perl(Types::Standard)
BuildRequires: perl(Version::Next)
BuildRequires: perl(constant)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(strictures)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(aliased)
BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta::YAML) >= 0.12.0
#won't be catched by urpmi on 586.
BuildRequires: perl(File::Slurp::Tiny) >= 0.3.0
BuildRequires: perl(Module::Build::Tiny) >= 0.39.0
BuildRequires: perl(ExtUtils::InstallPaths) >= 0.11.0
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires: perl(Parse::CPAN::Meta) >= 1.441.700
BuildRequires: perl(Config::INI) >= 0.25.0
BuildRequires: perl(CPAN::Uploader) >= 0.103.9
BuildRequires: perl(Getopt::Long::Descriptive) >= 0.99.0
BuildRequires: perl(Moo) >= 2.0.1
BuildRequires: perl(Perl::Version) >= 1.13.0
BuildRequires: perl(File::ShareDir::Install) >= 0.100.0
BuildRequires: perl(PPI) >= 1.220.0
BuildRequires: perl(Pod::Eventual) >= 0.94
BuildRequires: perl(Mixin::Linewise) >= 0.106.0
BuildRequires: perl(PerlIO::utf8_strict) >= 0.5.0
BuildRequires: perl(Hash::Merge::Simple) >= 0.51.0
BuildRequires: perl(Devel::OverloadInfo)
BuildRequires: perl(Term::Encoding)
BuildRequires: perl(ExtUtils::Config)
BuildRequires: perl(Archive::Tar)
BuildRequires: perl(IO::Compress::Base) >= 2.68.0
BuildRequires: perl(ExtUtils::Helpers)
BuildRequires: perl(Clone)
BuildRequires: perl(Compress::Raw::Bzip2) >= 2.68.0
BuildRequires: perl(Compress::Raw::Zlib) >= 2.68.0
#


BuildArch: noarch

%description
This set of plugins for the Dist::Zilla manpage can do interesting things
for module authors using Git (the http://git-scm.com manpage) to track
their work.

You need Git 1.5.4 or later to use these plugins. Some plugins require a
more recent version of Git for certain features.

The @Git Bundle
    The most commonly used plugins are part of the
    Dist::Zilla::PluginBundle::Git. They are:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml LICENCE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4576 |21cr|perl-Dist-Zilla-Plugin-Git-Contributors-0.36.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Dist-Zilla-Plugin-Git-Contributors
%define upstream_version 0.036


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Add contributor names from git to your distribution
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(aliased)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Data::Dumper) >= 2.154.0
BuildRequires:	perl(Dist::Zilla) >= 5.37.0
BuildRequires:	perl(Dist::Zilla::Plugin::PodWeaver)
BuildRequires:	perl(Eval::Closure)
BuildRequires:	perl(Exporter) >= 5.570.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Git::Wrapper)
BuildRequires:	perl(List::Util) >= 1.420.0
BuildRequires:	perl(List::UtilsBy)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Moose)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(open)
BuildRequires:	perl(Package::DeprecationManager)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Safe::Isa)
BuildRequires:	perl(Sort::Versions)
BuildRequires:	perl(TAP::Harness::Env)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Needs)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(Unicode::Collate)
BuildRequires:	perl(utf8)


BuildArch:	noarch

%description
Add contributor names from git to your distribution.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENCE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4577 |21cr|perl-Dist-Zilla-Plugin-GitFmtChanges-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-GitFmtChanges
%define upstream_version 0.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	This Dist::Zilla plugin writes a CHANGES file with commits

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Text::Wrap)
BuildArch:	noarch

%description
This Dist::Zilla plugin writes a CHANGES file that contains formatted
commit information from recent git logs. The CHANGES file is formatted
using the "--format" option of the git log command. This makes it easy to
make the CHANGES file look the way you want it to.

This is based on Dist::Zilla::Plugin::ChangelogFromGit.

This plugin has the following configuration variables:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4578 |21cr|perl-Dist-Zilla-Plugin-GitHub-0.480.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-GitHub
%define upstream_version 0.48

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Update GitHub repo info on release
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Dist::Zilla::App)
BuildRequires:	perl(Dist::Zilla::Dist::Minter)
BuildRequires:	perl(Dist::Zilla::Role::AfterMint)
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider)
BuildRequires:	perl(Dist::Zilla::Role::PluginBundle::Easy)
BuildRequires:	perl(Dist::Zilla::Role::Releaser)
BuildRequires:	perl(Dist::Zilla::Role::TextTemplate)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Git::Wrapper)
BuildRequires:	perl(HTTP::Tiny)
BuildRequires:	perl(IO::Socket::SSL) >= 1.560.0
BuildRequires:	perl(JSON)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Deep::JSON)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)


BuildArch:  noarch

%description
The following is a list of Plugin in this distribution to help you
integrate GitHub and Dist::Zilla:

* * the Dist::Zilla::Plugin::GitHub::Create manpage Create GitHub repo on
  dzil new

* * the Dist::Zilla::Plugin::GitHub::Update manpage Update GitHub repo info
  on release

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# test need internet connection
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4579 |21cr|perl-Dist-Zilla-Plugin-GithubMeta-0.580.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-GithubMeta
%define upstream_version 0.58

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Automatically include GitHub meta information in META.yml
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider)
BuildRequires:	perl(IPC::Cmd)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Types::URI)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)


BuildArch:	noarch

%description
Dist::Zilla::Plugin::GithubMeta is a the Dist::Zilla manpage plugin to
include GitHub the http://github.com manpage meta information in
'META.yml'.

It automatically detects if the distribution directory is under 'git'
version control and whether the 'origin' is a GitHub repository and will
set the 'repository' and 'homepage' meta in 'META.yml' to the appropriate
URLs for GitHub.

Based on the Module::Install::GithubMeta manpage which was based on the
Module::Install::Repository manpage by Tatsuhiko Miyagawa

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README META.json Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4580 |21cr|perl-Dist-Zilla-Plugin-GitObtain-0.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-GitObtain
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Obtain files from a git repository before building a distribution

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Role::BeforeBuild)
BuildRequires:	perl(Dist::Zilla::Role::Plugin)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(Git::Wrapper)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
This module uses the Git::Wrapper manpage to obtain files from git
repositories before building a distribution.

You may specify the directory that git repositories will be placed into by
following the plugin name ('GitObtain') with a forward slash ('/'), then
the path to the particular directory. For instance, if your _dist.ini_ file
contained the following section:

  [GitObtain/alpha/beta/gamma]
    ...

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4581 |21cr|perl-Dist-Zilla-Plugin-HasVersionTests-1.101.420-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-HasVersionTests
%define upstream_version 1.101420

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Release tests for version numbers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::HasVersion)
BuildRequires:	perl(Test::More) >= 0.940.0

BuildArch:	noarch

%description
This is an extension of the Dist::Zilla::Plugin::InlineFiles manpage,
providing the following files

  xt/release/has-version.t - a standard Test::HasVersion test

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4582 |21cr|perl-Dist-Zilla-Plugin-Homepage-1.101.420-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Homepage
%define upstream_version 1.101420

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Automatically sets the homepage URL

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More) >= 0.940.0

BuildArch:	noarch

%description
This plugin sets the distribution's homepage URL as metadata.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4583 |21cr|perl-Dist-Zilla-Plugin-InstallGuide-1.200.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-InstallGuide
%define upstream_version 1.200014

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Build an INSTALL file


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Dist::Zilla::File::InMemory)
BuildRequires:	perl(Dist::Zilla::Role::FileGatherer)
BuildRequires:	perl(Dist::Zilla::Role::TextTemplate)
BuildRequires:	perl(Dist::Zilla::Role::ModuleMetadata)
BuildRequires:	perl(English)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More) >= 0.940.0

BuildArch:	noarch

%description
This plugin adds a very simple _INSTALL_ file to the distribution, telling
the user how to install this distribution.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# need internet connection
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4584 |21cr|perl-Dist-Zilla-Plugin-InstallRelease-0.8.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-InstallRelease
%define upstream_version 0.008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Installs your dist after releasing
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Dist::Zilla::Role::AfterRelease)
BuildRequires:	perl(Dist::Zilla::Role::Plugin)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(autodie)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)

BuildArch:  noarch

%description
After doing 'dzil release', this plugin will install your dist so you are
always the first person to have the latest and greatest version. It's like
getting first post, only useful.

To use it, add the following in _dist.ini_:

    [InstallRelease]

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4585 |21cr|perl-Dist-Zilla-Plugin-LatestPrereqs-0.400.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-LatestPrereqs
%define upstream_version 0.4

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Adjust prereqs to use latest version available

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
This plugin will filter over all your declared or discovered prerequisites,
contact CPAN, and adjust the version to the latest one available.

This will make sure that your module will be installed with the latest
version available on CPAN at the time you built your package.

The most common use for this techinique is for the Task manpage modules.
You can rebuild your Task module on a regular basis to make sure it has the
latest versions of your dependencies.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4586 |21cr|perl-Dist-Zilla-Plugin-LocaleMsgfmt-1.203.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-LocaleMsgfmt
%define upstream_version 1.203

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Dist::Zilla plugin that compiles Local::Msgfmt .po files to .mo files
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Role::BeforeBuild)
BuildRequires:	perl(Locale::Msgfmt)
BuildRequires:	perl(Moose)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(MooseX::Has::Sugar)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::File)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildArch:	noarch

%description
Put the following in your dist.ini

    [LocaleMsgfmt]
    locale = share/locale ;; (optional)

This plugin will compile all of the .po files it finds in the locale
directory into .mo files, via Locale::Msgfmt.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4587 |21cr|perl-Dist-Zilla-Plugin-MakeMaker-Awesome-0.490.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MakeMaker-Awesome
%define upstream_version 0.49

Summary:	A more awesome MakeMaker plugin for Dist::Zilla
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(aliased)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(CPAN::Meta::Check)
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl(Dist::Zilla::File::InMemory)
BuildRequires:	perl(Dist::Zilla::Plugin::MakeMaker)
BuildRequires:	perl(Dist::Zilla::Role::BuildRunner)
BuildRequires:	perl(Dist::Zilla::Role::InstallTool)
BuildRequires:	perl(Dist::Zilla::Role::TestRunner)
BuildRequires:	perl(Dist::Zilla::Role::TextTemplate)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(MooseX::LazyRequire) >= 0.110.0
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(MooseX::Types::Stringlike)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Types::Standard)
BuildArch:	noarch

%description
the Dist::Zilla manpage's Dist::Zilla::Plugin::MakeMaker plugin is limited,
if you want to stray from the marked path and do something that would
normally be done in a 'package MY' section or otherwise run custom code in
your _Makefile.PL_ you're out of luck.

%files
%doc Changes META.yml LICENCE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4588 |21cr|perl-Dist-Zilla-Plugin-MakeMaker-SkipInstall-1.201.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MakeMaker-SkipInstall
%define upstream_version 1.201

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Skip the install rule of MakeMaker

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::CheckChangeLog)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This small plugin will edit the 'Makefile.PL' file, and override the
install target to become a no-op.

This will make your module fail the install phase. It will be built, and
tested but will never be installed.

The most common use for this techinique is for the Task manpage modules.
Without a proper install phase, you can install your Task module repetedly.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4589 |21cr|perl-Dist-Zilla-Plugin-MatchManifest-6.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MatchManifest
%define upstream_version 6.000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Ensure that MANIFEST is correct

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla) >= 4.101.780
BuildRequires:	perl(Dist::Zilla::Tester) >= 4.102.343
BuildRequires:	perl(Moose) >= 0.650.0
BuildRequires:	perl(Throwable)
BuildRequires:	perl(Moose::Autobox) >= 0.90.0
BuildRequires:	perl(Text::Diff)
BuildRequires:	perl(Role::HasMessage)
BuildRequires:	perl(Role::Identifiable::HasIdent)
BuildRequires:	perl(autodie)
BuildRequires:	perl(MooseX::OneArgNew)
BuildRequires:	perl(Test::Fatal) >= 0.3.0
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::More) >= 0.880.0
BuildRequires:	perl(Dist::Zilla::Role::InstallTool)
BuildRequires:	perl(Config::MVP::Reader::INI)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(Try::Tiny)

BuildArch:	noarch

%description
If included, this plugin will ensure that the distribution contains a
_MANIFEST_ file and that its contents match the files collected by
Dist::Zilla. If not, it will display the differences and (if STDIN & STDOUT
are TTYs) offer to update the _MANIFEST_.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
# newer ExtUtils::MakeMaker needed
rm -rf t/10-manifest.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4590 |21cr|perl-Dist-Zilla-Plugin-Mercurial-0.80.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Mercurial
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Check for modified/removed/unknown files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::Kwalitee)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(IPC::System::Simple)
BuildRequires:	perl(autodie)
BuildRequires:	perl(namespace::autoclean)


BuildArch:	noarch

%description
This plugin provides Mercurial support for the Dist::Zilla manpage.
Currently, it supports checking that the working copy is clean before
release, tagging, and pushing changes to the remote. The tag plugin also
checks before tagging to make sure that the tag it wants to use is unique.

Currently, this plugin does not support committing, so it won't play nice
with plugins that make changes to the working copy before release. Patches
are welcome.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4591 |21cr|perl-Dist-Zilla-Plugin-MetaData-BuiltWith-1.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MetaData-BuiltWith
%define upstream_version 1.004005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Go overkill and report everything in all name-spaces

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Dist::Zilla::Role::ConfigDumper)
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider)
BuildRequires:	perl(Dist::Zilla::Util::EmulatePhase)
BuildRequires:	perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires:	perl(Dist::Zilla::Util::ConfigDumper)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Data) >= 0.7.0
BuildRequires:	perl(Devel::CheckBin)
BuildRequires:	perl(recommended)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(aliased)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Path::ScanINC)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5

BuildArch:	noarch

%description
Often, distribution authors get module dependencies wrong. So in such
cases, its handy to be able to see what version of various packages they
built with.

Some would prefer to demand everyone install the same version as they did,
but that's also not always necessary.

Hopefully, the existence of the metadata provided by this module will help
users on their end machines make intelligent choices about what modules to
install in the event of a problem.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4592 |21cr|perl-Dist-Zilla-Plugin-MetaProvides-2.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MetaProvides
%define upstream_version 2.002004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	When nothing else works, pull in hand-crafted metadata from a specified file
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Class::Discover)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(ExtUtils::Manifest) >= 1.560.0
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::Find::Rule::Perl)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Module::Extract::Namespaces)
BuildRequires:	perl(Module::Extract::VERSION)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(MooseX::Has::Sugar)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(Path::Class::Dir)
BuildRequires:	perl(Path::Class::File)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Perl::Critic)
BuildRequires:	perl(YAML::Tiny)
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires:	perl(Dist::Zilla::Util::ConfigDumper)
BuildRequires:	perl(recommended)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Hash::Merge::Simple)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

Requires: perl(Module::Extract::Namespaces)
Requires: perl(Module::Extract::VERSION)
Requires: perl(aliased)

BuildArch:	noarch

%description
This Distribution Contains a small bundle of plugins for various ways of
populating the 'META.yml' that is built with your distribution.

The initial reason for this is due to stuff that uses the MooseX::Declare
manpage style class definitions not being parseable by many tools upstream,
so this is here to cover this problem by defining it in the metadata.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4593 |21cr|perl-Dist-Zilla-Plugin-MetaProvides-Class-2.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MetaProvides-Class
%define upstream_version 2.001001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Scans files and tries to identify classes using Class::Discover
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-base
BuildRequires:	perl(Class::Discover)
BuildRequires:	perl(Dist::Zilla::App::Tester)
BuildRequires:	perl(Dist::Zilla::MetaProvides::ProvideRecord)
BuildRequires:	perl(Dist::Zilla::Plugin::MetaProvides)
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider::Provider)
BuildRequires:	perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(warnings)
BuildRequires:	perl(recommended)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Exception::Class)
BuildArch:	noarch

%description
Scans files and tries to identify classes using Class::Discover.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4594 |21cr|perl-Dist-Zilla-Plugin-MetaProvides-FromFile-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MetaProvides-FromFile
%define upstream_version 2.001002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	If nothing else works, pull in hand-crafted metadata from a specified file
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Config::INI::Reader)
BuildRequires:	perl(Dist::Zilla::App::Tester)
BuildRequires:	perl(Dist::Zilla::MetaProvides::ProvideRecord)
BuildRequires:	perl(Dist::Zilla::Plugin::MetaProvides)
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider::Provider)
BuildRequires:	perl(Dist::Zilla::Util::ConfigDumper)
BuildRequires:	perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(recommended)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0

BuildArch:	noarch

%description
If nothing else works, pull in hand-crafted metadata from a specified file.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4595 |21cr|perl-Dist-Zilla-Plugin-MetaProvides-Package-2.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MetaProvides-Package
%define upstream_version 2.004003

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Extract namespaces/version from traditional packages for provides
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::App::Tester)
BuildRequires:	perl(Dist::Zilla::MetaProvides::ProvideRecord)
BuildRequires:	perl(Dist::Zilla::Plugin::MetaProvides)
BuildRequires:	perl(Dist::Zilla::Role::MetaProvider::Provider)
BuildRequires:	perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires:	perl(Dist::Zilla::Role::ModuleMetadata)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Extract::Namespaces)
BuildRequires:	perl(Module::Extract::VERSION)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Throwable)
BuildRequires:	perl(Module::Metadata) >=  1.0.27
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(Safe::Isa)
BuildRequires:	perl(recommended)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(Exception::Class)
BuildArch:	noarch

%description
Extract namespaces/version from traditional packages for provides.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4596 |21cr|perl-Dist-Zilla-Plugin-MinimumPerl-1.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-MinimumPerl
%define upstream_version 1.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Detects the minimum version of Perl required for your dist

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Role::PrereqSource)
BuildRequires:	perl(Dist::Zilla::Role::FileFinderUser)
BuildRequires:	perl(MooseX::Types::Perl)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Perl::MinimumVersion)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(MooseX::Types::Perl)
BuildRequires:	perl(Test::Apocalypse)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Module::Build::Tiny) 

BuildArch:	noarch

%description
This plugin uses the Perl::MinimumVersion manpage to automatically find the
minimum version of Perl required for your dist and adds it to the prereqs.
You can specify a version of Perl to override the scanning logic.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4597 |21cr|perl-Dist-Zilla-Plugin-NoAutomatedTesting-0.80.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-NoAutomatedTesting
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Avoid running under CPAN Testers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildArch:	noarch

%description
CPAN Testers are great and do a worthy and thankless job, testing all the
distributions uploaded to CPAN. But sometimes we don't want a distribution
to be tested by these gallant individuals.

Dist::Zilla::Plugin::NoAutomatedTesting is a the Dist::Zilla manpage plugin
that mungles 'Makefile.PL' to detect that it is being run by a CPAN Tester
and 'exit 0' if it is.

As this plugin mungles the 'Makefile.PL' it is imperative that it is
specified in 'dist.ini' AFTER '[MakeMaker]'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README META.json Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4598 |21cr|perl-Dist-Zilla-Plugin-OurPkgVersion-0.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-OurPkgVersion
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	No line insertion and does Package version with our
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(Dist::Zilla::Role::FileFinderUser)
BuildRequires: perl(Dist::Zilla::Role::FileMunger)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Types::Perl)
BuildRequires: perl(PPI)
BuildRequires: perl(Test::DZil)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Version)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(strictures)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(aliased)
BuildRequires: perl(CPAN::Meta::Merge)
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires: perl(Config::INI::Reader) >= 0.25.0
BuildRequires: perl(Pod::Eventual)

BuildArch:	noarch

%description
This module was created as an alternative to the
Dist::Zilla::Plugin::PkgVersion manpage and uses some code from that
module. This module is designed to use a the more readable format 'our
$VERSION = $version;' as well as not change then number of lines of code in
your files, which will keep your repository more in sync with your CPAN
release. It also allows you slightly more freedom in how you specify your
version.

EXAMPLES
    in dist.ini

    	...
    	version = 0.01;
    	[OurPkgVersion]

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4599 |21cr|perl-Dist-Zilla-Plugin-PerlTidy-0.210.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-PerlTidy
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Perltidy your dist
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Next)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(Perl::Tidy)
BuildRequires:	perl(Path::Iterator::Rule)
BuildRequires:	perl(Term::Encoding)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(Getopt::Long::Descriptive)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0

BuildArch:	noarch

%description
Perltidy your dist.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4600 |21cr|perl-Dist-Zilla-Plugin-PodLoom-5.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-PodLoom
%define upstream_version 5.001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Process module documentation through Pod::Loom

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Role::ModuleInfo)
BuildRequires:	perl(Hash::Merge::Simple)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Pod::Loom)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5

BuildArch:	noarch

%description
If included, this plugin will process each _.pm_ and _.pod_ file under
_lib_ or in the root directory through Pod::Loom.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4601 |21cr|perl-Dist-Zilla-Plugin-PodPurler-0.94.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-PodPurler
%define upstream_version 0.094

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Like PodWeaver, but more erratic and amateurish


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Pod::Elemental)
BuildRequires:	perl(Pod::Elemental::PerlMunger)
BuildRequires:	perl(Pod::Eventual)

BuildArch:	noarch

%description
PodPurler ress, which rips apart your kinda-POD and reconstructs it as
boring old real POD.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4602 |21cr|perl-Dist-Zilla-Plugin-PodWeaver-4.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-PodWeaver
%define upstream_version 4.009

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Do horrible things to POD, producing better docs


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Role::FileFinderUser)
BuildRequires:	perl(Dist::Zilla::Role::FileMunger) 
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Pod::Elemental::PerlMunger)
BuildRequires:	perl(Pod::Weaver::Config::Assembler)
BuildRequires:	perl(Pod::Weaver)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)

BuildArch:	noarch

# not auto-detected
Requires:	perl(Pod::Elemental::PerlMunger)

%description
PodWeaver is a work in progress, which rips apart your kinda-POD and
reconstructs it as boring old real POD.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.yml META.json 
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4603 |21cr|perl-Dist-Zilla-Plugin-Prepender-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Prepender
%define upstream_version 2.004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Prepend lines at the top of your perl files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/authors/id/E/ET/ETHER/Dist-Zilla-Plugin-Prepender-%{upstream_version}.tar.gz

BuildRequires:	perl(base)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Has::Sugar)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Dist::Zilla::Role::FileMunger)
BuildRequires:	perl(Dist::Zilla::Tester)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.12.0
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(Pod::Eventual)
BuildRequires:  perl-JSON-PP

BuildArch:	noarch

%description
This plugin will prepend the specified lines in each Perl module or
program within the distribution. For scripts having a shebang line,
lines will be inserted just after it.

This is useful to enforce a set of pragmas to your files (since pragmas
are lexical, they will be active for the whole file), or to add some
copyright comments, as the fsf recommends.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4604 |21cr|perl-Dist-Zilla-Plugin-PurePerlTests-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-PurePerlTests
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Run all your tests twice, once with XS code and once with pure Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla) >= 5.34.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Moose)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)


BuildArch:	noarch

%description
This plugin is for modules which ship with a dual XS/pure Perl
implementation.

The plugin makes a copy of all your tests when doing release testing (via
'dzil test' or 'dzil release'). The copy will set an environment value that
you specify in a 'BEGIN' block. You can use this to force your code to not
load the XS implementation.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README.* META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4605 |21cr|perl-Dist-Zilla-Plugin-ReadmeAnyFromPod-0.163.250-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-ReadmeAnyFromPod
%define upstream_version 0.163250

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Automatically convert POD to a README in any format for Dist::Zilla
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Dist::Zilla::File::InMemory)
BuildRequires: perl(Dist::Zilla::Plugin::PodWeaver)
BuildRequires: perl(Dist::Zilla::Role::AfterBuild)
BuildRequires: perl(Dist::Zilla::Role::File::ChangeNotification)
BuildRequires: perl(Dist::Zilla::Role::FileGatherer)
BuildRequires: perl(Dist::Zilla::Role::FileMunger)
BuildRequires: perl(Dist::Zilla::Role::FilePruner)
BuildRequires: perl(Dist::Zilla::Role::PluginBundle::Easy)
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Scalar)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(List::Util)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Autobox)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Has::Sugar)
BuildRequires: perl(PPI::Document)
BuildRequires: perl(Path::Tiny) >= 0.4.0
BuildRequires: perl(Pod::Markdown)
BuildRequires: perl(Pod::Simple::HTML) >= 3.230.0
BuildRequires: perl(Pod::Simple::Text) >= 3.230.0
BuildRequires: perl(Pod::Markdown::Github)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::DZil)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Most)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(autodie)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(strictures)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(aliased)
BuildRequires: perl(CPAN::Meta::Merge)
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires: perl(Config::INI::Reader) >= 0.25.0
BuildRequires: perl(Archive::Tar)

BuildArch:  noarch

%description
Generates a README for your the Dist::Zilla manpage powered dist from its
'main_module' in any of several formats. The generated README can be
included in the build or created in the root of your dist for e.g.
inclusion into version control.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4606 |21cr|perl-Dist-Zilla-Plugin-ReadmeFromPod-0.370.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-ReadmeFromPod
%define upstream_version 0.37

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Automatically convert POD to a README for Dist::Zilla

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Data::Perl::Role::String)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Pod::Text)
BuildRequires:	perl(Pod::Readme)
BuildRequires:	perl(namespace::autoclean)


BuildArch:	noarch

%description
Generate the README from 'main_module' by the Pod::Text manpage

The code is mostly a copy-paste of the Module::Install::ReadmeFromPod
manpage

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README* META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4607 |21cr|perl-Dist-Zilla-Plugin-ReadmeMarkdownFromPod-0.141.140-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-ReadmeMarkdownFromPod
%define upstream_version 0.141140

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Automatically convert POD to a README.mkdn for Dist::Zilla

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::File::InMemory)
BuildRequires:	perl(Dist::Zilla::Role::InstallTool)
BuildRequires:	perl(Dist::Zilla::Role::FileWatcher)
BuildRequires:	perl(Dist::Zilla::Plugin::ReadmeFromPod) >= 0.320.0
BuildRequires:	perl(Dist::Zilla::Plugin::ReadmeAnyFromPod)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Pod::Markdown)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(PPI::Document)
BuildRequires:	perl(Archive::Tar)
BuildArch:	noarch

%description
Generate a README.mkdn from 'main_module' by the Pod::Markdown manpage

The code is mostly a copy-paste of the Dist::Zilla::Plugin::ReadmeFromPod
manpage

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.yml LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4608 |21cr|perl-Dist-Zilla-Plugin-ReportVersions-1.110.730-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-ReportVersions
%define upstream_version 1.110730

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Write a test that reports used module versions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More) >= 0.940.0

BuildArch:	noarch

%description
This is an extension of the Dist::Zilla::Plugin::InlineFiles manpage,
providing the following files

  t/000-report-versions.t

The '000' prefix is chosen so it runs first to make sure it shows up in
CPAN tester reports.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4609 |21cr|perl-Dist-Zilla-Plugin-Repository-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Repository
%define upstream_version 0.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Automatically sets repository URL from svn/svk/Git checkout for Dist::Zilla

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildArch:	noarch

%description
The code is mostly a copy-paste of the Module::Install::Repository manpage

ATTRIBUTES
    * * git_remote

      This is the name of the remote to use for the public repository (if
      you use Git). By default, unsurprisingly, to _origin_.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Cannot find user config
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4610 |21cr|perl-Dist-Zilla-Plugin-Rsync-0.100.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Rsync
%define upstream_version 0.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Dist::Zilla plugin to upload using rsync

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CLASS)
BuildRequires:	perl(Dist::Zilla::Role::Releaser)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Module::Build)
BuildArch:	noarch

%description
The 'where' config key is required. The 'options' default to '-e ssh'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4611 |21cr|perl-Dist-Zilla-Plugins-CJM-6.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugins-CJM
%define upstream_version 6.000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Allow a dist to have a custom Build.PL


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Git::Wrapper)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(CPAN::Meta::Requirements)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(Dist::Zilla::Plugin::MakeMaker)
BuildRequires:	perl(Eval::Closure)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(Module::Metadata)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Package::DeprecationManager)
BuildRequires:	perl(Parse::CPAN::Meta)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(autodie)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(version)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(Pod::Eventual)
BuildRequires:	perl(Archive::Tar)

BuildArch:	noarch

%description
Plugins implementing ModuleInfo may call their own 'get_module_info' method
to construct a the Module::Build::ModuleInfo manpage object.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4612 |21cr|perl-Dist-Zilla-Plugin-Signature-1.100.930-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Signature
%define upstream_version 1.100930

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Sign releases with Module::Signature

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::chdir)
BuildRequires:	perl(Module::Signature)
BuildArch:	noarch

%description
This plugin will sign a distribution using Module::Signature

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4613 |21cr|perl-Dist-Zilla-Plugin-SvnObtain-0.20.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-SvnObtain
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Obtain files from a subversion repository before building a distribution

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Dist::Zilla::Role::BeforeBuild)
BuildRequires:	perl(Dist::Zilla::Role::Plugin)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(Moose)
BuildRequires:	perl(SVN::Client)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
Uses the SVN::Client manpage to obtain files from a subversion repository
for inclusion in a distribution made with the Dist::Zilla manpage.

'[SvnObtain]' sections in your _dist.ini_ file describe a set of Subversion
repositories that will be downloaded into the current directory prior to
building a distribution. Subdirectories will be created that correspond to
the name of the projects listed in that section. Optionally, after the URL
of the subversion repository, you may specify a particular revision to
check out. If you do not specify a revision, 'HEAD' will be used. For
instance, to include a copy MIT's simile timeline widget into your
distribution, your _dist.ini_ would contain something like this:

  [SvnObtain]
    simile = http://simile-widgets.googlecode.com/svn

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4614 |21cr|perl-Dist-Zilla-Plugin-TaskWeaver-0.101.628-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-TaskWeaver
%define upstream_version 0.101628

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Dist::Zilla::Plugin::TaskWeaver's helper

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::PodWeaver)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Pod::Elemental)
BuildRequires:	perl(Pod::Weaver)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The TaskWeaver plugin acts just like the PodWeaver plugin, but gets its
claws just a bit into your Pod::Weaver configuration and then uses them to
figure out prerequisites and grouping for building a Task distribution.

The 'Task::' namespace is used for libraries that do not have any code of
their own, but are just ways of getting a lot of other libraries installed
at once. In other words, they're just prerequisites with no actual logic.

TaskWeaver expects that your _.pm_ file will have Pod like the following:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4615 |21cr|perl-Dist-Zilla-Plugin-TemplateCJM-5.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Dist-Zilla-Plugin-TemplateCJM
%define upstream_version 5.001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Process templates, including version numbers & changes
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(DateTime::Format::Natural)
BuildRequires:	perl(Dist::Zilla::Role::InstallTool)
BuildRequires:	perl(Dist::Zilla::Role::ModuleInfo)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Dist::Zilla::Plugin::TemplateCJM is a plugin written for Dist::Zilla.
It used to be distributed in Dist-Zilla-Plugins-CJM, but when
DateTime::Format::Natural was added as a prerequisite, it was decided
to split it out.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4616 |21cr|perl-Dist-Zilla-Plugin-Test-CheckChanges-2.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Test-CheckChanges
%define upstream_version 2.000004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Release tests for checking changes
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/D/DO/DOHERTY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Test::CheckChanges)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(autodie)
BuildRequires:	perl(strict)
BuildRequires:	perl(version) 
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0

# Renamed upstream
Obsoletes:  perl-Dist-Zilla-Plugin-CheckChangesTests < %{EVRD}
Provides:   perl-Dist-Zilla-Plugin-CheckChangesTests = %{EVRD}

BuildArch:  noarch

%description
This is an extension of the Dist::Zilla::Plugin::InlineFiles manpage,
providing the following files

  xt/release/check-changes.t - a standard Test::CheckChanges test

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4617 |21cr|perl-Dist-Zilla-Plugin-Test-Compile-2.58.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Test-Compile
%define upstream_version 2.058

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Common tests to check syntax of your modules
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Data::Section)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::File::InMemory)
BuildRequires:	perl(Dist::Zilla::Role::FileFinderUser)
BuildRequires:	perl(Dist::Zilla::Role::FileGatherer)
BuildRequires:	perl(Dist::Zilla::Role::FileMunger)
BuildRequires:	perl(Dist::Zilla::Role::PrereqSource)
BuildRequires:	perl(Dist::Zilla::Role::TextTemplate)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Sub::Exporter::ForMethods)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(CPAN::Meta::Check)
BuildRequires:	perl(Perl::PrereqScanner)
BuildRequires:	perl(Test::MinimumVersion)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl(CPAN::Meta::Validator)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0


# Dist::Zilla::Plugin::CompileTests	(DEPRECATED) common tests to check syntax of your modules
# http://search.cpan.org/~jquelin/Dist-Zilla-Plugin-Test-Compile-2.001/
Obsoletes:	perl-Dist-Zilla-Plugin-CompileTests = 1.110.930
Provides:	perl-Dist-Zilla-Plugin-CompileTests = %{EVRD}
Provides:	perl(Dist::Zilla::Plugin::CompileTests) = %{EVRD}

BuildArch:	noarch

%description
Common tests to check syntax of your modules, 
only using core modules.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENCE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4618 |21cr|perl-Dist-Zilla-Plugin-Test-CPAN-Changes-0.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Test-CPAN-Changes
%define upstream_version 0.012

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Release tests for your changelog

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(Dist::Zilla::Role::FileMunger)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::CPAN::Changes)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0

BuildArch:	noarch

%description
This is an extension of the Dist::Zilla::Plugin::InlineFiles manpage,
providing the following file:

    xt/release/cpan-changes.t - a standard Test::CPAN::Changes test

See the Test::CPAN::Changes manpage for what this test does.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README.* Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4619 |21cr|perl-Dist-Zilla-Plugin-Test-DistManifest-2.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Test-DistManifest
%define upstream_version 2.000005

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4
Summary:    Release tests for the manifest
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/D/DO/DOHERTY/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::DistManifest)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(autodie)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0


Obsoletes:  perl-Dist-Zilla-Plugin-DistManifestTests < %{EVRD}
Provides:   perl-Dist-Zilla-Plugin-DistManifestTests = %{EVRD}

BuildArch:  noarch

%description
This is an extension of the Dist::Zilla::Plugin::InlineFiles manpage,
providing the following files

  xt/release/dist-manifest.t - a standard Test::DistManifest test

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README.*
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4620 |21cr|perl-Dist-Zilla-Plugin-Test-EOL-0.180.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Test-EOL
%define upstream_version 0.18

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4
Summary:    Author tests making sure correct line endings are used
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(Dist::Zilla::Role::TextTemplate)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::EOL)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Script)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strict)
BuildRequires:	perl(version)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0

Obsoletes:	perl-Dist-Zilla-Plugin-EOLTests < %{EVRD}
Provides:	perl-Dist-Zilla-Plugin-EOLTests = %{EVRD}

BuildArch:  noarch

%description
This is an extension of the Dist::Zilla::Plugin::InlineFiles manpage,
providing the following files:

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4621 |21cr|perl-Dist-Zilla-Plugin-Test-MinimumVersion-2.0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Test-MinimumVersion
%define upstream_version 2.000010

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Release tests for minimum required versions
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(Dist::Zilla::Role::TextTemplate)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::MinimumVersion)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0

Obsoletes:  perl-Dist-Zilla-Plugin-MinimumVersionTests < %{EVRD}
Provides:   perl-Dist-Zilla-Plugin-MinimumVersionTests = %{EVRD}

BuildArch:  noarch

%description
This is an extension of the Dist::Zilla::Plugin::InlineFiles manpage,
providing the following files

  xt/release/minimum-version.t - a standard Test::MinimumVersion test

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENCE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4622 |21cr|perl-Dist-Zilla-Plugin-Test-ReportPrereqs-0.28.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Test-ReportPrereqs
%define upstream_version 0.028


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Report on prerequisite versions during automated testing
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Data::Section) >= 0.200.2
BuildRequires: perl(Dist::Zilla) >= 5.00
BuildRequires: perl(Dist::Zilla::File::FromCode)
BuildRequires: perl(Dist::Zilla::File::InMemory)
BuildRequires: perl(Dist::Zilla::Role::FileGatherer)
BuildRequires: perl(Dist::Zilla::Role::PrereqSource)
BuildRequires: perl(Dist::Zilla::Tester)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::pushd)
BuildRequires: perl(Moose)
BuildRequires: perl(Sub::Exporter::ForMethods)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(aliased)
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires: perl(Config::INI::Reader) >= 0.25.0
BuildRequires: perl(Perl::PrereqScanner)

BuildArch:  noarch

%description
Report on prerequisite versions during automated testing

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4623 |21cr|perl-Dist-Zilla-Plugin-Test-Synopsis-2.0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Plugin-Test-Synopsis
%define upstream_version 2.000007

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Release tests for synopses
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/D/DO/DOHERTY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Dist::Zilla::Plugin::InlineFiles)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(Test::Synopsis)
BuildRequires:	perl(autodie)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0

Obsoletes:  perl-Dist-Zilla-Plugin-SynopsisTests < %{EVRD}
Provides:   perl-Dist-Zilla-Plugin-SynopsisTests = %{EVRD}

BuildArch:  noarch

%description
This is an extension of the Dist::Zilla::Plugin::InlineFiles manpage,
providing the following files

  xt/release/synopsis.t - a standard Test::Synopsis test

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4624 |21cr|perl-Dist-Zilla-Role-Bootstrap-1.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Role-Bootstrap
%define upstream_version 1.001004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Shared logic for bootstrap things
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl-base
BuildRequires: perl(Carp)
BuildRequires: perl(Dist::Zilla::Chrome::Test)
BuildRequires: perl(Dist::Zilla::Dist::Builder)
BuildRequires: perl(Dist::Zilla::MVP::Assembler::Zilla)
BuildRequires: perl(Dist::Zilla::MVP::Section)
BuildRequires: perl(Dist::Zilla::Role::Plugin)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Copy::Recursive)
BuildRequires: perl(File::Spec)
BuildRequires: perl(FindBin)
BuildRequires: perl(List::UtilsBy)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(aliased)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl-JSON-PP
BuildArch:     noarch

%description
This module is a role that aims to be consumed by plugins that want to
perform some very early bootstrap operation that may affect the loading
environment of successive plugins, especially with regards to plugins that
may wish to build with themselves, either by consuming the source tree
itself, or by consuming a previous built iteration.

Implementation is quite simple:

* 1. 'with' this role in your plugin
%files
%doc LICENSE Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*
#------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4625 |21cr|perl-Dist-Zilla-Role-FileWatcher-0.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Dist-Zilla-Role-FileWatcher
%define upstream_version 0.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Receive notification when something changes a file's contents
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-base
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(ExtUtils::Config)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Safe::Isa)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(TAP::Harness::Env)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Dist::Zilla::File::InMemory)
BuildRequires:	perl(Dist::Zilla::Role::FileGatherer)
BuildRequires:	perl(Dist::Zilla::Role::FileMunger)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Test::DZil)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Dist::Zilla)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Safe::Isa)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5

BuildArch:	noarch

%description
Receive notification when something changes a file's contents.

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*
#------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4626 |21cr|perl-Dist-Zilla-Role-ModuleMetadata-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Role-ModuleMetadata
%define upstream_version 0.006

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Role for plugins that use Module::Metadata
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Dist-Zilla-Role-ModuleMetadata
Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(:VERSION) >= 5.10
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Module::Build::Tiny)
# Run-time:
BuildRequires:  perl(Digest::MD5)
BuildRequires:  perl(Module::Metadata) >= 1.000005
BuildRequires:  perl(Moose::Role)
BuildRequires:  perl(namespace::autoclean)
# Tests:
BuildRequires:  perl(Dist::Zilla) >= 5
BuildRequires:  perl(Dist::Zilla::File::InMemory)
BuildRequires:  perl(Dist::Zilla::Role::FileGatherer)
BuildRequires:  perl(Dist::Zilla::Role::MetaProvider)
BuildRequires:  perl(Dist::Zilla::Role::Plugin)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Log::Dispatch::Array)
BuildRequires:  perl(if)
BuildRequires:  perl(lib)
BuildRequires:  perl(Moose)
BuildRequires:  perl(Path::Tiny)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(Test::DZil)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Needs)
# Test::Warnings not used
BuildRequires:  perl(utf8)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This role provides some common utilities for Dist::Zilla plugins which use
Module::Metadata and the information that it provides.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
PERL_MM_FALLBACK_SILENCE_WARNING=1 perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%files
%license LICENCE
%doc Changes CONTRIBUTING README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4627 |21cr|perl-Dist-Zilla-Role-PluginBundle-PluginRemover-0.105.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Role-PluginBundle-PluginRemover
%define upstream_version 0.105

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Add '-remove' functionality to a bundle
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Dist::Zilla::Role::PluginBundle)
BuildRequires:	perl(Dist::Zilla::Role::PluginBundle::Easy)
BuildRequires:	perl(Dist::Zilla::Util)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)

BuildArch: noarch

%description
This role enables your the Dist::Zilla manpage Plugin Bundle to
automatically remove any plugins specified by the '-remove' attribute (like
Dist::Zilla::PluginBundle::Filter does):

  [@MyBundle]
  -remove = PluginIDontWant
  -remove = OtherDumbPlugin

If you want to use an attribute named '-remove' for your own bundle you can
override the 'plugin_remover_attribute' sub to define a different attribute
name:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.yml LICENSE META.json Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4628 |21cr|perl-Dist-Zilla-Role-Tempdir-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Role-Tempdir
%define upstream_version 1.001003

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Shell Out and collect the result in a DZ plug-in
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Dist::Zilla)
BuildRequires: perl(Dist::Zilla::File::InMemory)
BuildRequires: perl(Dist::Zilla::Role::FileInjector)
BuildRequires: perl(Dist::Zilla::Role::InstallTool)
BuildRequires: perl(Dist::Zilla::Tester)
BuildRequires: perl(Eval::Closure)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::chdir)
BuildRequires: perl(List::Util)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(MooseX::LazyRequire)
BuildRequires: perl(Package::DeprecationManager)
BuildRequires: perl(Path::Iterator::Rule)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(aliased)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(strictures)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(CPAN::Meta::Merge)
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Config::INI::Reader) >= 0.25.0
BuildArch:	noarch

%description
Shell Out and collect the result in a DZ plug-in.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4629 |21cr|perl-Dist-Zilla-Util-ConfigDumper-0.3.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Util-ConfigDumper
%define upstream_version 0.003009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Easy implementation of 'dumpconfig'
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Dist::Zilla::Plugin::Bootstrap::lib) >= 1.1.0
BuildRequires: perl(Dist::Zilla::Plugin::GatherDir)
BuildRequires: perl(Dist::Zilla::Plugin::MetaConfig)
BuildRequires: perl(Dist::Zilla::Role::Plugin)
BuildRequires: perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(Moose)
BuildRequires: perl(Sub::Exporter::Progressive)
BuildRequires: perl(Test::DZil)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl(namespace::autoclean) 
BuildRequires: perl(Dist::Zilla::Role::Bootstrap)
BuildRequires: perl(recommended)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(strictures)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(aliased)
BuildRequires: perl(CPAN::Meta::Merge)
BuildRequires: perl(Exception::Class)
BuildRequires: perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Config::INI::Reader) >= 0.25.0
BuildArch: noarch

%description
Easy implementation of 'dumpconfig'  .

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

# %check
# %make test

%install
%makeinstall_std

%files
%doc LICENSE Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4630 |21cr|perl-Dist-Zilla-Util-EmulatePhase-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Util-EmulatePhase
%define upstream_version 1.001002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A dummy Dist::Zilla to fake a 'prereq' object on
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Dist::Zilla::Prereqs)
BuildRequires:	perl(Dist::Zilla::Util::Test::KENTNL)
BuildRequires:	perl(Eval::Closure)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(Hash::Merge::Simple)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Package::DeprecationManager)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(version)
BuildRequires:	perl(warnings)
BuildRequires:	perl(recommended)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0


BuildArch:  noarch

%description
A dummy Dist::Zilla to fake a 'prereq' object on.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4631 |21cr|perl-Dist-Zilla-Util-Test-KENTNL-1.5.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-Zilla-Util-Test-KENTNL
%define upstream_version 1.005014

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	KENTNL's DZil plugin testing tool

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/K/KE/KENTNL/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Dist::Zilla::Tester)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(Throwable)
BuildRequires:	perl(Role::Identifiable::HasIdent)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Role::HasMessage)
BuildRequires:	perl(MooseX::OneArgNew)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(recommended)
BuildRequires:	perl(Data::DPath)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::TempDir::Tiny)
BuildRequires:	perl(Config::INI::Reader)
BuildRequires:	perl(Term::Encoding)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)

BuildArch:	noarch

%description
KENTNL's DZil plugin testing tool.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
# Those need Test::More >= 1.001009 we have 0.98
rm -fr t/01-basic.t \
  t/02-basic-dztest.t \
  t/03-basic-dztest-createplugin.t \
  t/04-run-command.t

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4632 |21cr|perl-DNS-ZoneParse-1.100.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    DNS-ZoneParse
%define upstream_version 1.10
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.10
Release:	5

Summary:	Parse and manipulate DNS Zone Files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/modules/by-module/DNS/DNS-ZoneParse-1.10.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module will parse a Zone File and put all the Resource Records (RRs) into
an anonymous hash structure. At the moment, the following types of RRs are
supported: SOA, NS, MX, A, CNAME, TXT, PTR. It could be useful for maintaining
DNS zones, or for transferring DNS zones to other servers. If you want to
generate an XML-friendly version of your zone files, it is easy to use
XML::Simple with this module once you have parsed the zonefile.

DNS::ZoneParse scans the DNS zonefile - removes comments and seperates the file
into its constituent records. It then parses each record and stores the records
internally. See below for information on the accessor methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/DNS
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4633 |21cr|perl-Dumbbench-0.501.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dumbbench
%define upstream_version 0.501

# SOOT support is optional
%bcond_with perl_Dumbbench_enables_SOOT

Name:           perl-Dumbbench
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        More reliable bench-marking with the least amount of thinking
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Dumbbench
Source0:        https://cpan.metacpan.org/authors/id/B/BD/BDFOY/Dumbbench-%{upstream_version}.tar.gz
# Fix a link a in a documentation, proposed to the upstream,
# <https://github.com/briandfoy/dumbbench/pull/10>
Patch0:         Dumbbench-0.501-Correct-a-link.patch
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
# bash for /usr/bin/sh executed by sudo, not used at tests
# bin/dumbbench requires Capture::Tiny only if SOOT is available
%if %{with perl_Dumbbench_enables_SOOT}
BuildRequires:  perl(Capture::Tiny)
%endif
BuildRequires:  perl(Carp)
BuildRequires:  perl(Class::XSAccessor) >= 1.05
BuildRequires:  perl(constant)
# Devel::CheckOS not used at tests
BuildRequires:  perl(Exporter)
# Getopt::Long not used at tests
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Number::WithError) >= 1.00
BuildRequires:  perl(Params::Util)
BuildRequires:  perl(parent)
# SOOT is optional
# sudo not used at tests
BuildRequires:  perl(Statistics::CaseResampling) >= 0.06
BuildRequires:  perl(Time::HiRes)
# Tests:
# Code from ./simulator is neither executed nor installed
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(Test::More) >= 1
# bash for /usr/bin/sh executed by sudo, not used at tests
Requires:       bash
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# bin/dumbbench requires Capture::Tiny only if SOOT is available
%if %{with perl_Dumbbench_enables_SOOT}
Requires:       perl(Capture::Tiny)
%endif
Requires:       perl(Class::XSAccessor) >= 1.05
Requires:       perl(Number::WithError) >= 1.00
Requires:       perl(Statistics::CaseResampling) >= 0.06
Requires:       sudo

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Class::XSAccessor|Number::WithError|Statistics::CaseResampling|Test::More)\\)$

%description
Dumbbench is a fancier benchmark module for Perl. It times the runs of code,
does some statistical analysis to discard outliers, and prints the results.

%if %{with perl_Dumbbench_enables_SOOT}
%package BoxPlot
Summary:        Dumbbench visualization using ROOT
# This package run-requires perl-SOOT which isn't available on ARM, bug #1139141
ExclusiveArch: %{ix86} x86_64 noarch
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description BoxPlot
Dumbbench::BoxPlot module provides a way how to plot a Dumbbench timing using
ROOT toolkit.
%endif

%package tests
Summary:        Tests for %{name}
Requires:       %{name} = %{EVRD}
Requires:       perl-Test-Harness
Requires:       perl(Test::More) >= 1

%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".

%prep
%autosetup -p1 -n Dumbbench-%{upstream_version}

# Normalize shebangs
for F in examples/*.pl; do
    perl -MConfig -i -pe 's/\A#!.*perl/$Config{startperl}/' "$F";
done
# Help generators to recognize Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
# Install tests
mkdir -p %{buildroot}/%{_libexecdir}/%{name}
cp -a t %{buildroot}/%{_libexecdir}/%{name}
cat > %{buildroot}/%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}/%{_libexecdir}/%{name}/test
%{_fixperms} %{buildroot}/*

%check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test

%files
%license LICENSE
%doc Changes examples README.pod
%{_bindir}/*
%{perl_vendorlib}/*
%exclude %{perl_vendorlib}/Dumbbench/BoxPlot.pm
%{_mandir}/man3/*

%if %{with perl_Dumbbench_enables_SOOT}
%files BoxPlot
%doc r
%{perl_vendorlib}/Dumbbench/BoxPlot.pm
%endif

%files tests
%{_libexecdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4634 |21cr|perl-DVD-Read-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DVD-Read
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	8

Summary:    Access to DVD IFO file using libdvdread

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/N/NA/NANARDON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: libdvdread-devel
BuildRequires: perl-devel


%description
This module provide way to query video DVD using libdvdread.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README sample/*
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4635 |21cr|perl-Email-Address-1.912.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Email-Address
%define	upstream_version 1.912

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	RFC 2822 Address Parsing and Creation
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
# For test suite
BuildRequires:	perl(Encode)
BuildRequires:	perl(Encode::MIME::Header)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Test::More) >= 0.960.0
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
This class implements a complete RFC 2822 parser that locates email addresses
in strings and returns a list of "Email::Address" objects found. Alternatley
you may construct objects manually.
The goal of this software is to be correct, and very very fast.

%files
%doc Changes README bench META.yml META.json
%{perl_vendorlib}/Email
%{_mandir}/man3/*

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 
%{__perl} -pi -e 's|/usr/local/bin/perl|%{__perl}|' bench/ea-vs-ma.pl


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make


%check
%make test


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4636 |21cr|perl-Email-Address-List-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-Address-List
%define upstream_version 0.06

Name:           perl-Email-Address-List
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        RFC close address list parsing
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Email-Address-List
Source0:        https://cpan.metacpan.org/authors/id/B/BP/BPS/Email-Address-List-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires: make
BuildRequires:  %{__perl}
BuildRequires:  %{__make}

BuildRequires:  perl-generators
BuildRequires:  perl(autodie)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Email::Address)
BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(JSON)
BuildRequires:  perl(lib)
BuildRequires:  perl(Module::Install::Metadata)
BuildRequires:  perl(Module::Install::ReadmeFromPod)
BuildRequires:  perl(Module::Install::WriteAll)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(warnings)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Parser for From, To, Cc, Bcc, Reply-To, Sender and previous prefixed with
Resent- (e.g. Resent-From) headers.

%prep
%setup -q -n Email-Address-List-%{upstream_version}
rm -r inc
sed -i -e '/^inc\// d' MANIFEST
find -type f -exec chmod -x {} +

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%{__make} %{?_smp_mflags}

%install
%{__make} pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%doc README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4637 |21cr|perl-Email-Address-XS-1.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-Address-XS
%define upstream_version 1.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Parse and format RFC 2822 email addresses and groups
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
# for %%check
BuildRequires: perl(Test::More)

%description
This module implements RFC 2822 parser and formatter of email addresses and
groups. It parses an input string from email headers which contain a list of
email addresses or a groups of email addresses (like From, To, Cc, Bcc,
Reply-To, Sender, ...). Also it can generate a string value for those headers
from a list of email addresses objects.

Parser and formatter functionality is implemented in XS and uses shared code
from Dovecot IMAP server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" SKIP_SAX_INSTALL=1
%make

%check
LC_ALL=C make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorarch}/auto/Email/Address
%{perl_vendorarch}/Email/Address
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4638 |21cr|perl-Email-Find-0.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Email-Find
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Email-Find perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://www.cpan.org/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Email::Valid)
BuildArch:	noarch

%description
Email::Find is a module for finding a *subset* of RFC 822 email
addresses in arbitrary text (see the section on "CAVEATS"). The
addresses it finds are not guaranteed to exist or even actually be email
addresses at all (see the section on "CAVEATS"), but they will be valid
RFC 822 syntax.

Email::Find will perform some heuristics to avoid some of the more
obvious red herrings and false addresses, but there's only so much which
can be done without a human.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Email/Find*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4639 |21cr|perl-Email-MessageID-1.406.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Email-MessageID
%define	upstream_version 1.406

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Generate world unique message-ids
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Sys::Hostname)
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Test::Pod) >= 1.500.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildArch:	noarch
Requires:	perl(Email::Address::XS)

%description
Message-ids are optional, but highly recommended, headers that identify a
message uniquely. This software generates a unique message-id.

%files
%doc README Changes META.json META.yml
%{perl_vendorlib}/Email
%{_mandir}/*/*

#-----------------------------------------------------------------------------


%prep
%setup -qn %{upstream_name}-%{upstream_version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make


%check
%make test


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4640 |21cr|perl-Email-MIME-1.953.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Email-MIME
%define upstream_version 1.953

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Easy MIME message parsing
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Email::Address::XS)
BuildRequires:	perl(Email::Date::Format)
BuildRequires:	perl(Email::MessageID)
BuildRequires:	perl(Email::MIME::ContentType) >= 1.022
BuildRequires:	perl(Email::MIME::Encodings) >= 1.314
BuildRequires:	perl(Email::Simple)
BuildRequires:	perl(Email::Simple::Creator)
BuildRequires:	perl(Email::Simple::Header)
BuildRequires:	perl(Encode) >= 1.9081
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(MIME::Types) >= 1.13
BuildRequires:	perl(Scalar::Util)
# For tests
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Text::Unidecode)
BuildRequires:	perl(Symbol)
BuildRequires:	perl(utf8)
BuildArch:	noarch

#Obsoletes:	perl-Email-MIME-Creator <= 1.456.0
%rename		perl-Email-MIME-Creator
#Obsoletes:	perl-Email-MIME-Modifier <= 1.444.0
%rename		perl-Email-MIME-Modifier
Requires:	perl(Email::Simple) >= 2.212

%description
This is an extension of the Email::Simple module, to handle MIME encoded
messages. It takes a message as a string, splits it up into its constituent
parts, and allows you access to various parts of the message. Headers are
decoded from MIME encoding.

%files
%doc Changes META.json META.yml README
%{perl_vendorlib}/Email
%{_mandir}/*/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version} 


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make


%check
make test


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4641 |21cr|perl-Email-MIME-Attachment-Stripper-1.317.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module      Email-MIME-Attachment-Stripper
%define upstream_version  1.317

Name:		perl-%{module}
Version:	%perl_convert_version 1.317
Release:	5
Summary:	Strip the attachments from a mail

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Email/Email-MIME-Attachment-Stripper-1.317.tar.gz
Requires:	perl(Email::Simple::Creator)

BuildRequires:	perl-devel
BuildRequires:	perl(Email::Address)
BuildRequires:	perl(Email::MIME)
BuildRequires:	perl(Email::MIME::Modifier)
BuildRequires:	perl(MIME::Types)
BuildRequires:	perl(Capture::Tiny)
BuildArch:	noarch

%description
Given a Email::MIME object, detach all attachments from the message. These are
then available separately.

%prep
%setup -q -n %{module}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Email
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4642 |21cr|perl-Email-MIME-ContentType-1.28.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Email-MIME-ContentType
%define	upstream_version 1.028

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Parse a MIME Content-Type Header
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Email/Email-MIME-ContentType-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Encode) >= 2.97
BuildRequires:	perl(Exporter) >= 5.700.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
This module is responsible for parsing email content type headers according to
section 5.1 of RFC 2045. It returns a hash as above, with entries for the
discrete type, the composite type, and a hash of attributes.

%files
%doc README Changes META.json META.yml
%{perl_vendorlib}/Email
%{_mandir}/*/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{upstream_version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make


#check
#make test


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4643 |21cr|perl-Email-MIME-Encodings-1.317.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	    Email-MIME-Encodings
%define upstream_version 1.317

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	A unified interface to MIME encoding and decoding

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Email/Email-MIME-Encodings-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Capture::Tiny)
# for %%check
#BuildRequires: perl(Test::More)
#BuildRequires: perl(MIME::Base64)
BuildArch:	noarch

%description
This module simply wraps MIME::Base64 and MIME::QuotedPrint so that you can
throw the contents of a Content-Transfer-Encoding header at some text and have
the right thing happen.
Provides a number of useful methods for manipulating MIME messages.

%prep
%setup -q -n %{module}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Email
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4644 |21cr|perl-Email-MIME-RFC2047-0.970.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-MIME-RFC2047
%define upstream_version 0.97

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Handling of MIME encoded mailbox lists
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

BuildArch: noarch

%description
This set of modules tries to provide a correct and usable implementation of
RFC 2047 "MIME Part Three: Message Header Extensions for Non-ASCII Text".
The the Encode manpage module also provides RFC 2047 encoding and decoding
but it still has some bugs regarding strict standards compatibility. More
importantly, a useful API should handle the different situations where RFC
2047 encoded headers are used. Section 5 of the RFC defines three use cases
for 'encoded-words':

(1) As a replacement of 'text' tokens, for example in a Subject header

(2) In comments, this case isn't handled by this module

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README.pod Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4645 |21cr|perl-Email-Reply-1.204.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Email-Reply
%define	upstream_version 1.204

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Reply to a Message
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/Email-Reply-%{upstream_version}.tar.gz
Patch0:		Email-Reply-1.204-use-Email-Address-XS.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Email::Simple::Creator)
BuildRequires:	perl(Email::Abstract)
BuildRequires:	perl(Email::MIME)
BuildRequires:	perl(Email::MIME::Creator)
BuildRequires:	perl(Email::Date)
BuildArch:	noarch

%description
This software takes the hard out of generating replies to email messages.

%files
%doc README Changes
%{perl_vendorlib}/Email
%{_mandir}/*/*

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%apply_patches


%build
perl Makefile.PL INSTALLDIRS=vendor
%make


%check
make test


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4646 |21cr|perl-Email-Send-2.201.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Email-Send
%define	upstream_version 2.201

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Simply Sending Email
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/Email-Send-%{upstream_version}.tar.gz
Patch0:		perl-Email-Send-2.201-use-Email-Address-XS.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Cwd)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(MIME::Entity)
BuildRequires:	perl(Mail::Internet)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Email::Abstract)
BuildRequires:	perl(Email::Address::XS)
BuildRequires:	perl(Email::Simple)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Net::SMTP)
BuildRequires:	perl(Return::Value)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Symbol)
BuildRequires:	perl(strict)
BuildRequires:	perl(vars)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)
Requires:	perl(Email::Date::Format)
BuildArch:	noarch

%description
This module provides a very simple, very clean, very specific interface to
multiple Email mailers. The goal of this software is to be small and simple,
easy to use, and easy to extend.

%files
%doc README Changes META.json META.yml
%{perl_vendorlib}/Email
%{_mandir}/*/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version} 
%apply_patches


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make


%check
%make test


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4647 |21cr|perl-Email-Sender-2.600.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Email-Sender
%define	upstream_version 2.600

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	An SMTP client that stays online
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl-Capture-Tiny >= 0.80
BuildRequires:	perl(Carp)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Email::Abstract)
BuildRequires:	perl(Email::Address::XS)
BuildRequires:	perl(Email::Simple)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Net::SMTP)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sys::Hostname::Long)
BuildRequires:	perl(Throwable::Error)
BuildRequires:	perl(Try::Tiny)
# for tests
BuildRequires:	perl(Moo::Role)
BuildRequires:	perl(strictures)
BuildRequires:	perl(MooX::Types::MooseLike)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Sub::Override)
BuildArch:	noarch
Requires:	perl(Throwable::Error)

%description
An Email::Sender::Success object is just an indicator that an email message
was successfully sent. Unless extended, it has no properties of its own.

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#-----------------------------------------------------------------------------


%prep
%setup -qn %{upstream_name}-%{upstream_version}
%apply_patches


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make


%check
make test


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4648 |21cr|perl-Email-Simple-Creator-1.424.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name      Email-Simple-Creator
%define upstream_version  1.424

%if %{_use_internal_dependency_generator}
%global __provides_exclude perl\\(Email::Simple\\)
%else
%define _provides_exceptions perl(Email::Simple)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10
Summary:	Email::Simple constructor for starting anew

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source:		https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Email::Date)
BuildRequires:	perl(Email::Date::Format)
BuildRequires:	perl(Email::Simple)
Requires:	perl(Email::Date::Format)
BuildArch:	noarch

%description
This software provides a constructor to Email::Simple for creating
messages from scratch.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Email
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4649 |21cr|perl-Email-Stuff-2.105.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-Stuff
%define upstream_version 2.105

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    A more casual approach to creating and sending Email:: emails
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Email::MIME)
BuildRequires: perl(Email::Send)
BuildRequires: perl(Email::Send::Test)
BuildRequires: perl(Email::Simple)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Type)
BuildRequires: perl(Params::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(prefork)
BuildRequires: perl(Return::Value)


BuildArch: noarch

%description
*The basics should all work, but this module is still subject to name
and/or API changes*

Email::Stuff, as its name suggests, is a fairly casual module used to email
"stuff" to people using the most common methods. It is a high-level module
designed for ease of use when doing a very specific common task, but
implemented on top of the tight and correct Email:: modules.

Email::Stuff is typically used to build emails and send them in a single
statement, as seen in the synopsis. And it is certain only for use when
creating and sending emails. As such, it contains no email parsing
capability, and little to no modification support.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
#make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4650 |21cr|perl-Email-Valid-1.203.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name     Email-Valid
%define upstream_version 1.203

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Check validity of Internet email addresses
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Mail::Address)
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(Net::Domain::TLD)
BuildRequires:	perl(IO::CaptureOutput)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(warnings)
BuildRequires:	perl(strict)

BuildArch:	noarch

%description
This module determines whether an email address is well-formed, and
optionally, whether a mail host exists for the domain or whether
the top level domain of the email address is valid.  

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Email
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4651 |21cr|perl-Email-Verify-SMTP-0.3.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-Verify-SMTP
%define upstream_version 0.003

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Specify dependencies on external non-Perl things

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(IO::Socket::Telnet)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Net::Nslookup)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
'Email::Verify::Simple' is what I came with when I needed to verify several
email addresses without actually sending them email.

To put that another way:

    *This module verifies email addresses without actually sending email to
    them.*

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4652 |21cr|perl-Encode-EUCJPASCII-0.30.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Encode-EUCJPASCII
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	10

Summary:    EucJP-ascii - An eucJP-open mapping

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Encode/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-Encode-devel
BuildRequires: perl-devel


%description
This module provides eucJP-ascii, one of eucJP-open mappings, and its
derivative. Following encodings are supported.

  Canonical    Alias                           Description
  --------------------------------------------------------------
  eucJP-ascii                                  eucJP-ascii
               qr/\beuc-?jp(-?open)?(-?19970715)?-?ascii$/i
  x-iso2022jp-ascii                            7-bit counterpart
               qr/\b(x-)?iso-?2022-?jp-?ascii$/i
  --------------------------------------------------------------

*Note*: 'x-iso2022jp-ascii' is unofficial encoding name: It had never been
registered by any standards bodies.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std DESTDIR=%{buildroot}

%clean

%files
%doc Changes README
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4653 |21cr|perl-Encode-HanExtra-0.230.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Encode-HanExtra
%define upstream_version 0.23

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	10

Summary:    Extra sets of Chinese encodings

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Encode/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-Encode-devel
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl-devel

%description
Perl 5.7.3 and later ships with an adequate set of Chinese encodings,
including the commonly used 'CP950', 'CP936' (also known as 'GBK'), 'Big5'
(alias for 'Big5-Eten'), 'Big5-HKSCS', 'EUC-CN', 'HZ', and 'ISO-IR-165'.

However, the numbers of Chinese encodings are staggering, and a complete
coverage will easily increase the size of perl distribution by several
megabytes; hence, this CPAN module tries to provide the rest of them.

If you are using Perl 5.8 or later, the Encode::CN manpage and the
Encode::TW manpage will automatically load the extra encodings for you, so
there's no need to explicitly write 'use Encode::HanExtra' if you are using
one of them already.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4654 |21cr|perl-Encode-IMAPUTF7-1.05-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global remove_lf() for i in %*; do tr -d '\\r' < $i > $i. && touch $i $i. && mv -f $i. $i; done

Name:           perl-Encode-IMAPUTF7
Version:        1.05
Release:        17%{?dist}
Summary:        Process the special UTF-7 variant required by IMAP
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Encode-IMAPUTF7
Source0:        https://cpan.metacpan.org/authors/id/P/PM/PMAKHOLM/Encode-IMAPUTF7-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(Encode::Encoding)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(MIME::Base64)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::NoWarnings)

%description
This module is able to encode and decode IMAP mailbox names using the UTF-7
modification specified in RFC2060 section 5.1.3.

%files
%doc Changes README
%{perl_vendorlib}/*
%_mandir/man3/*

#-------------------------------------------------------
%prep
%autosetup -n Encode-IMAPUTF7-%{version}
%remove_lf README Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make_build

%install
make pure_install DESTDIR=%buildroot
%_fixperms %buildroot/*

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4655 |21cr|perl-Encode-Newlines-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Encode-Newlines
%define upstream_version 0.05

Name:           perl-Encode-Newlines
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Normalize line ending sequences
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Encode-Newlines
Source0:        https://cpan.metacpan.org/authors/id/N/NE/NEILB/Encode-Newlines-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Carp)
BuildRequires:  perl(constant)
BuildRequires:  perl(Encode::Encoding)
BuildRequires:  perl(parent)
# Tests
BuildRequires:  perl(Encode)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Carp)

%description
This module provides the CR, LF, CRLF and Native encodings, to aid in
normalizing line endings.

%prep
%setup -q -n Encode-Newlines-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4656 |21cr|perl-enum-1.100.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    enum
%define upstream_version 1.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    C style enumerated types and bitmask flags in Perl
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
Provides:      perl(enum) = %{EVRD}

BuildArch: noarch

%description
This module is used to define a set of constants with ordered numeric
values, similar to the 'enum' type in the C programming language. You can
also define bitmask constants, where the value assigned to each constant
has exactly one bit set (eg 1, 2, 4, 8, etc).

What are enumerations good for? Typical uses would be for giving mnemonic
names to indexes of arrays. Such arrays might be a list of months, days, or
a return value index from a function such as localtime():

  use enum qw(
      :Months_=0 Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec
      :Days_=0   Sun Mon Tue Wed Thu Fri Sat
      :LC_=0     Sec Min Hour MDay Mon Year WDay YDay Isdst
  );

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4657 |21cr|perl-Env-Path-0.190.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Env-Path
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.19
Release:	5

Summary:	Advanced operations on path variables

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Env/Env-Path-0.19.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Env::Path presents an object-oriented interface to _path variables_,
defined as that subclass of _environment variables_ which name an ordered
list of filesystem elements separated by a platform-standard _separator_
(typically ':' on UNIX and ';' on Windows).

Of course, core Perl constructs such

  $ENV{PATH} .= ":/usr/local/bin";

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/envpath
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4658 |21cr|perl-Env-Sanctify-1.120.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Env-Sanctify%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Lexically scoped sanctification of %ENV

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Env/%{upstream_name}-%{upstream_version}.tar.gz
Source1:	%{name}.rpmlintrc

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Env::Sanctify is a module that provides lexically scoped manipulation and
sanctification of '%ENV'.

You can specify that it alter or add additional environment variables or
remove existing ones according to a list of matching regexen.

You can then either 'restore' the environment back manually or let the
object fall out of scope, which automagically restores.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4659 |21cr|perl-Event-ExecFlow-0.640.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname Event-ExecFlow
%define filelist %{pkgname}-%{upstream_version}-filelist
%define NVR %{pkgname}-%{upstream_version}-%{release}
%define maketest 1
%define upstream_version 0.64

Name:      perl-Event-ExecFlow
Summary:   Event-RPC - High level API for event-based execution flow control

Version:   %perl_convert_version %{upstream_version}
Release:   8
License:   Artistic
Group:     Development/Perl
URL:       http://www.exit1.org/Event-ExecFlow/
SOURCE:    http://search.cpan.org/CPAN/authors/id/J/JR/JRED/Event-ExecFlow-%upstream_version.tar.bz2
Buildarch: noarch
BuildRequires: perl-devel
BuildRequires: perl-AnyEvent
BuildRequires: perl-libintl-perl

%description
Event::ExecFlow provides a ligh level API for defining complex flow
controls with asynchronous execution of external programs.

%prep
%setup -q -n %{pkgname}-%{upstream_version} 
chmod -R u+w %{_builddir}/%{pkgname}-%{upstream_version}

%build
grep -rsl '^#!.*perl' . |
grep -v '.bak$' |xargs --no-run-if-empty \
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="%{optflags}"
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` INSTALLDIRS=vendor
%make 
%check
chmod 755 bin/*
%make test

%install
%makeinstall `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`

# remove special files
find %{buildroot} -name "perllocal.pod" \
    -o -name ".packlist"                \
    -o -name "*.bs"                     \
    |xargs -i rm -f {}

# no empty directories
find %{buildroot}%{_prefix}             \
    -type d -depth                      \
    -exec rmdir {} \; 2>/dev/null

%files
%doc README Changes
%{_bindir}/execflow
%{perl_vendorlib}/Event/ExecFlow*
%{_mandir}/man3/Event::ExecFlow*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4660 |21cr|perl-Event-RPC-1.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname Event-RPC
%define filelist %{pkgname}-%{upstream_version}-filelist
%define NVR %{pkgname}-%{upstream_version}-%{release}
%define maketest 1
%define upstream_version 1.10

Name:		perl-Event-RPC
Summary:	Event-RPC - Event based transparent Client/Server RPC framework

Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	Artistic
Group:		Development/Perl
URL:		http://www.exit1.org/Event-RPC
Source:		http://search.cpan.org//CPAN/authors/id/J/JR/JRED/Event-RPC-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Event)
BuildRequires:	perl(IO::Socket::SSL)
BuildConflicts:	perl-Net_SSLeay < 1.30
BuildArch: noarch

%description
Event::RPC consists of a server and a client library. The server
exports a list of classes and methods, which are allowed to be called
over the network. More specific it acts as a proxy for objects created
on the server side (on demand of the connected clients) which handles
client side methods calls with transport of method arguments and
return values.

The object proxy handles refcounting and destruction of objects
created by clients properly. Objects as method parameters and return
values are handled as well (although with some limitations, see
below).

For the client the whole thing is totally transparent - once connected
to the server it doesn't know whether it calls methods on local or
remote objects.

Also the methods on the server newer know whether they are called
locally or from a connected client. Your application logic is not
affected by Event::RPC at all, at least if it has a rudimentary clean
OO design.

For details on implementing servers and clients please refer to the
man pages of Event::RPC::Server and Event::RPC::Client.

%prep
%setup -q -n %{pkgname}-%{upstream_version} 
chmod -R u+w %{_builddir}/%{pkgname}-%{upstream_version}

%build
grep -rsl '^#!.*perl' . |
grep -v '.bak$' |xargs --no-run-if-empty \
perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="%{optflags}"
perl Makefile.PL `perl -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` INSTALLDIRS=vendor
make

%install
%makeinstall_std `perl -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`

# remove special files
find %{buildroot} -name "perllocal.pod" \
    -o -name ".packlist"                \
    -o -name "*.bs"                     \
    |xargs -i rm -f {}

# no empty directories
find %{buildroot}%{_prefix}             \
    -type d -depth                      \
    -exec rmdir {} \; 2>/dev/null

%files
%doc README Changes
%{perl_vendorlib}/Event/RPC*
%{_mandir}/man3/Event::RPC*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4661 |21cr|perl-Event-XML-Sync-1.0.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Event-XML-Sync
%define upstream_version 1.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	14

Summary:	A Perl module to run synchronized XML stream

License:	GPL
Group:		Development/Perl
Url:		ftp://ftp.inria.fr/INRIA/Atoll/Eric.Clergerie/TAG/
Source0:	ftp://ftp.inria.fr/INRIA/Atoll/Eric.Clergerie/TAG/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module may be used to developp application wrappers to be
installed in XML pipelines.

The wrapper expects some XML input. It sends some bits of
information to the wrapped application and information the
returned information (when arriving) in the input XML stream
(by adding, modifying or deleting XML elements). Output XML is
produced for the next wrapper in the pipeline.

The key point is that wrappers are non-blocking, i.e. a
wrapper do not stop waiting for information to be returned by
the wrapped application. To achieve that, the wrapper needs
some kind of synchronization to correlate the returned
information with the input XML stream.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Event
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4662 |21cr|perl-Excel-Template-0.340.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Excel-Template
%define upstream_version 0.34

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Templating module that generates Excel

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Excel/Excel-Template-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Spreadsheet::WriteExcel)
BuildRequires:	perl(Spreadsheet::WriteExcel::Utility)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(CPAN)
BuildArch:	noarch

%description
This is a module used for templating Excel files. Its genesis came from the
need to use the same datastructure as the HTML::Template manpage, but
provide Excel files instead. The existing modules don't do the trick, as
they require replication of logic that's already been done within the
HTML::Template manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4663 |21cr|perl-Excel-Template-Plus-0.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Excel-Template-Plus
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Testing module for use with Excel::Template::Plus

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Excel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Excel::Template)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Param)
BuildRequires:	perl(Spreadsheet::ParseExcel)
BuildRequires:	perl(Template)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module is an extension of the Excel::Template module, which allows the
user to use various "engines" from which you can create Excel files through
Excel::Template.

The idea is to use the existing (and very solid) excel file generation code
in Excel::Template, but to extend its more templatey bits with more
powerful options.

The only engine currently provided is the Template Toolkit engine, which
replaces Excel::Template's built in template features (the LOOP, and IF
constructs) with the full power of TT. This is similar to the module
Excel::Template::TT, but expands on that even further to try and create a
more extensive system.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog META.yml README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4664 |21cr|perl-Exception-Base-0.2501-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-Exception-Base
Version:        0.2501
Release:        3
Summary:        Lightweight exceptions
License:        GPL+ or Artistic
Group       : Development/Perl

URL:            http://search.cpan.org/dist/Exception-Base/
Source0:        http://www.cpan.org/authors/id/D/DE/DEXTER/Exception-Base-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::Unit::Lite)

%{?perl_default_filter}

%description
This class implements a fully OO exception mechanism similar to
Exception::Class or Class::Throwable. It provides a simple interface
allowing programmers to declare exception classes. These classes can be
thrown and caught. Each uncaught exception prints full stack trace if the
default verbosity is uppered for debugging purposes.

%prep
%setup -q -n Exception-Base-%{version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%doc Changes Incompatibilities README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4665 |21cr|perl-Exception-Class-TryCatch-1.130.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Exception-Class-TryCatch
%define upstream_version 1.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Syntactic tryE<sol>catch sugar for use with Exception::Class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Exception/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
Exception::Class::TryCatch provides syntactic sugar for use with the
Exception::Class manpage using the familiar keywords 'try' and 'catch'. Its
primary objective is to allow users to avoid dealing directly with '$@' by
ensuring that any exceptions caught in an 'eval' are captured as the
Exception::Class manpage objects, whether they were thrown objects to begin
with or whether the error resulted from 'die'. This means that users may
immediately use 'isa' and various the Exception::Class manpage methods to
process the exception. 

In addition, this module provides for a method to push errors onto a hidden
error stack immediately after an 'eval' so that cleanup code or other error
handling may also call 'eval' without the original error in '$@' being
lost.

Inspiration for this module is due in part to Dave Rolsky's article
"Exception Handling in Perl With Exception::Class" in _The Perl Journal_
(Rolsky 2004).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4666 |21cr|perl-Expect-Simple-0.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Expect-Simple
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl wrapper around the Expect module  

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DJ/DJERIUS/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Expect)
BuildArch:	noarch

%description
Expect::Simple is a wrapper around the Expect module which should suffice for 
simple applications. It hides most of the Expect machinery; the Expect object 
is available for tweaking if need be.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4667 |21cr|perl-experimental-0.28.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
### !!! DEPRECEATED! THIS PERL MODULE IS BUILD FROM perl SRPM NOW!
# Restore this separate package only if a newer version is needed very much
# Please avoid duplicating perl modules if possible and remove module from perl SRPM if you package it separately
%define upstream_name experimental
%define upstream_version 0.028

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Experimental features made easy
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Bio/LEONT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Module::Build::Tiny) >= 0.34.0
BuildRequires: perl(Test::More) >= 0.890.0
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(TAP::Harness::Env)

BuildArch:  noarch

Provides:   perl(experimental) = %{EVRD}

%description
Experimental features made easy.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4668 |21cr|perl-Exporter-Declare-0.114.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Exporter-Declare
%define upstream_version 0.114

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Export class for exports that should be

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Exporter/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Fennec::Lite) >= 0.4.0
BuildRequires: perl(Meta::Builder) >= 0.3.0
BuildRequires: perl(Module::Build) >= 0.400.0
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Exception) >= 0.290.0
BuildRequires: perl(Test::Simple) >= 0.880.0
BuildRequires: perl(aliased)
BuildRequires: perl(CPAN::Meta::YAML) >= 0.16.0

BuildArch:  noarch

%description
Exporter::Declare is a meta-driven exporting tool. Exporter::Declare tries
to adopt all the good features of other exporting tools, while throwing
away horrible interfaces. Exporter::Declare also provides hooks that allow
you to add options and arguments for import. Finally, Exporter::Declare's
meta-driven system allows for top-notch introspection.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4669 |21cr|perl-Exporter-Lite-0.80.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Exporter-Lite
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Exporter-Lite perl module
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Exporter/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is an alternative to Exporter intended to provide a lightweight
subset of its functionality.  It supports "import()", @EXPORT and
@EXPORT_OK and not a whole lot else.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Exporter/Lite.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4670 |21cr|perl-Exporter-Tidy-0.80.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Exporter-Tidy
%define upstream_version 0.08

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Backend for building test libraries
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Exporter/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.98.0
BuildRequires: perl-devel

BuildArch: noarch

%description
This module serves as an easy, clean alternative to Exporter. Unlike
Exporter, it is not subclassed, but it simply exports a custom import()
into your namespace.

With Exporter::Tidy, you don't need to use any package global in your
module. Even the subs you export can be lexically scoped.

use Exporter::Tidy LIST
    The list supplied to 'use Exporter::Tidy' should be a key-value list.
    Each key serves as a tag, used to group exportable symbols. The values
    in this key-value list should be array references. There are a few
    special tags:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4671 |21cr|perl-ExtUtils-AutoInstall-0.630.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-AutoInstall
%define upstream_version 0.63

Summary:	ExtUtils::AutoInstall - Automatic install of dependencies via CPAN
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AU/AUTRIJUS/%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		eai.patch
BuildRequires:	ncftp
BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(Sort::Versions) >= 1.2
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
ExtUtils-AutoInstall module for perl.

%files
%doc Changes README
%{perl_vendorlib}/ExtUtils/AutoInstall.pm
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1

%build
%__perl Makefile.PL INSTALLDIRS=vendor < /dev/null
make

%install
%makeinstall_std

#check
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4672 |21cr|perl-ExtUtils-Command-1.200.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-Command
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Utilities to replace common UNIX commands in Makefiles etc

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-Command-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Exporter) >= 5.700.0
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(vars)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
Thin wrapper around ExtUtils::Command. See the ExtUtils::Command manpage
for a description of available commands.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4673 |21cr|perl-ExtUtils-configPL-1.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 ExtUtils-configPL
%define upstream_version 1.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl extension to automagiclly configure perl scripts 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/P/PE/PEASE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel

BuildArch:	noarch

%description
This module is used to add configuration information to a perl script, and is
meant to be used with the ExtUtils::MakeMaker module.

ExtUtils::configPL is not a "normal" Perl extension. It does add or encapsulate
functionality to your script, but it filters the script, replacing tags with
items from the Config module, writing the resulting script to a new file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/ExtUtils
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4674 |21cr|perl-ExtUtils-HasCompiler-0.23.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-HasCompiler
%define upstream_version 0.023

Name:           perl-ExtUtils-HasCompiler
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Check for the presence of a compiler
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/ExtUtils-HasCompiler
Source0:        https://cpan.metacpan.org/authors/id/L/LE/LEONT/ExtUtils-HasCompiler-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Config)
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::Mksymlists)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(File::Temp)
# Tests
BuildRequires:  perl(Cwd)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(DynaLoader)
Requires:       perl(ExtUtils::Mksymlists)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This module tries to check if the current system is capable of compiling,
linking and loading an XS module.

%prep
%setup -q -n ExtUtils-HasCompiler-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4675 |21cr|perl-ExtUtils-Install-2.40.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-Install
%define upstream_version 2.04

%global __requires_exclude perl\\(VMS::Filespec\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Yet another framework for writing test scripts

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Cwd)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Compare)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)

BuildArch:	noarch

%description
*STOP!* If you're just getting started writing tests, have a look at
Test::Simple first. This is a drop in replacement for Test::Simple which
you can switch to once you get the hang of basic testing.

The purpose of this module is to provide a wide range of testing utilities.
Various ways to say "ok" with better diagnostics, facilities to skip tests,
test future features and compare complicated data structures. While you can
do almost anything with a simple 'ok()' function, it doesn't provide good
diagnostic output.

I love it when a plan comes together
    Before anything else, you need a testing plan. This basically declares
    how many tests your script is going to run to protect against premature
    failure.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4676 |21cr|perl-ExtUtils-LibBuilder-0.80.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-LibBuilder
%define upstream_version 0.08

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3
Summary:    A tool to build C libraries
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildRequires: perl-devel
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)

BuildArch: noarch

%description
A tool to build C libraries

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4677 |21cr|perl-ExtUtils-MakeMaker-Coverage-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 ExtUtils-MakeMaker-Coverage
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Add a Makefile target to determine test coverage using Devel::Cover

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/S/SM/SMPETERS/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Devel::Cover)
BuildRequires:	perl(Object::Accessor)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Pod::Coverage)
BuildArch:	noarch
Requires:	perl(Devel::Cover)
Requires:	perl(Object::Accessor)


%description
This module adds an additional target to the Makefile generated by
ExtUtils::MakeMaker. The target, testcover, calls cover, the command-line
script to generate test coverage statistics, to clean up any data from a
previous run. It then runs the tests, as if make test was run, then calls cover
again to generate the coverage statistics.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/ExtUtils
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4678 |21cr|perl-ExtUtils-MakeMaker-CPANfile-0.90.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name ExtUtils-MakeMaker-CPANfile
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	cpanfile support for EUMM
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Module::CPANfile)
BuildRequires:  perl-devel

BuildArch:	noarch

%description
ExtUtils::MakeMaker::CPANfile loads C in your distribution and
modifies parameters for C in your Makefile.PL. Just use it after
LExtUtils::MakeMaker, and prepare C.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README.md
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4679 |21cr|perl-ExtUtils-Manifest-1.700.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-Manifest
%define upstream_version 1.70
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Utilities for managing MANIFEST files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/ExtUtils/ExtUtils-Manifest-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(CPAN::Meta)
BuildArch:	noarch

%description
Functions
    ExtUtils::Manifest exports no functions by default. The following are
    exported on request

    * mkmanifest

          mkmanifest();
.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4680 |21cr|perl-ExtUtils-PerlPP-0.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 ExtUtils-PerlPP
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} module for perl

License:	GPL
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} module for perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/ExtUtils
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4681 |21cr|perl-ExtUtils-XSBuilder-0.280.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-XSBuilder
%define upstream_version 0.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Epoch:		1

Summary:	ExtUtils::XSBuilder - Automatic XS glue code generation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Tie::IxHash)

BuildArch:	noarch

# not automatically detected:
Requires:	perl(Parse::RecDescent)
Requires:	perl(Tie::IxHash)

%description
ExtUtils::XSBuilder is a set modules to parse C header files and create XS
glue code and documentation out of it. Idealy this allows to "write" an
interface to a C library without coding a line. Since no C-API is ideal,
some adjuments are necessary most of the time. So to use this module you
must still be familiar with C and XS programming, but it removes a lot of
stupid work and copy&paste from you. Also when the C API changes, most
of the time you only have to rerun XSBuilder to get your new Perl API.
 
%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/ExtUtils/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4682 |21cr|perl-ExtUtils-XSpp-0.180.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-XSpp
%define upstream_version 0.18


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    A tiny C++ class example that holds a string and an int
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Digest::MD5) >= 2.0.0
BuildRequires: perl(ExtUtils::ParseXS) >= 2.220.200
BuildRequires: perl(Module::Build) >= 0.400.0
BuildRequires: perl(Test::Base)
BuildRequires: perl(Test::Differences)
BuildRequires: perl-devel
Requires:   perl(ExtUtils::ParseXS) >= 2.220.0
Provides:   perl(ExtUtils::XSpp::Lexer)

# No arch dependent provides.Symbianflo
BuildArch:	noarch

%description
Anything that does not look like a XS++ directive or a class declaration is
passed verbatim to XS.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes META.json *META.yml README examples
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4683 |21cr|perl-FCGI-ProcManager-0.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 FCGI-ProcManager
%define upstream_version 0.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Functions for managing FastCGI applications

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/FCGI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
# for test
BuildRequires:	perl(Test)


BuildArch:	noarch

%description
FCGI::ProcManager is used to serve as a FastCGI process manager. By
re-implementing it in perl, developers can more finely tune performance in
their web applications, and can take advantage of copy-on-write semantics
prevalent in UNIX kernel process management.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README COPYING ChangeLog META.json META.yml
%{perl_vendorlib}/FCGI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4684 |21cr|perl-Feed-Find-0.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Feed-Find
%define upstream_version 0.12

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Syndication feed auto-discovery
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/D/DA/DAVECROSS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Class::ErrorHandler)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Filter::Util::Call)
BuildRequires: perl(Test::LWP::UserAgent)
BuildRequires: perl(HTML::Parser)
BuildRequires: perl(LWP)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)

Obsoletes:	perl-Feed-Find < %{EVRD}

BuildArch: noarch

%description
_Feed::Find_ implements feed auto-discovery for finding syndication feeds,
given a URI. It (currently) passes all of the auto-discovery tests at
_http://diveintomark.org/tests/client/autodiscovery/_.

_Feed::Find_ will discover the following feed formats:

* * RSS 0.91

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4685 |21cr|perl-Fennec-Lite-0.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Fennec-Lite
%define upstream_version 0.004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Minimalist Fennec, the commonly used bits

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Fennec/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(List::Util)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildArch: noarch

%description
the Fennec manpage does a ton, but it may be hard to adopt it all at once.
It also is a large project, and has not yet been fully split into component
projects. Fennec::Lite takes a minimalist approach to do for Fennec what
Mouse does for Moose.

Fennec::Lite is a single module file with no non-core dependencies. It can
easily be used by any project, either directly, or by copying it into your
project. The file itself is less than 300 lines of code at the time of this
writing, that includes whitespace.

This module does not cover any of the more advanced features such as result
capturing or SPEC workflows. This module only covers test grouping and
group randomization. You can also use the FENNEC_ITEM variable with a group
name or line number to run a specific test group only. Test::Builder is
used under the hood for TAP output.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4686 |21cr|perl-FFI-CheckLib-0.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    FFI-CheckLib
%define upstream_version 0.28

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Test2::API|Test2::Require::EnvVar|Test2::Require::Module|Test2::V0)\\)$

# Remove private modules
%global __requires_exclude %{__requires_exclude}|^perl\\((Test2::Plugin::FauxOS|Test2::Tools::FauxDynaLoader|Test2::Tools::NoteStderr)\\)
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\((Test2::Plugin::FauxOS|Test2::Tools::FauxDynaLoader|Test2::Tools::NoteStderr)\\)

Name:           perl-FFI-CheckLib
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Check that a library is available for FFI
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/FFI-CheckLib
Source0:        https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/FFI-CheckLib-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION) >= 5.6
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(List::Util) >= 1.33
# Tests:
# Env is a run-time dependency on Win32 only. The code is exhibited by a test,
# but never on Linux in production.
BuildRequires:  perl(Env)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test2::API)
BuildRequires:  perl(Test2::Require::EnvVar)
BuildRequires:  perl(Test2::Require::Module)
BuildRequires:  perl(Test2::V0)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(DynaLoader)


%description
This Perl module checks whether a particular dynamic library is available for
Foreign Function Interface (FFI) to use. It is modeled heavily on
Devel::CheckLib, but will find dynamic libraries even when development
packages are not installed. It also provides a find_lib function that will
return the full path to the found dynamic library, which can be feed directly
into FFI::Platypus or FFI::Raw.

#---------------------------------------------------------------------------
%prep
%setup -q -n FFI-CheckLib-%{upstream_version}
%if !%{with perl_FFI_Changes_enables_optional_test}
rm t/ffi_checklib__exit.t
perl -i -ne 'print $_ unless m{\A\Qt/ffi_checklib__exit.t\E\b}' MANIFEST
%endif
# Help generators to recognize Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install
%{_fixperms} %{buildroot}/*

%check
unset CIPSOMETHING
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4687 |21cr|perl-File-Cache-0.160.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-Cache
%define	upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} module for perl

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/~dclinton/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DC/DCLINTON/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} perl module

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
chmod 755 %{buildroot}%{perl_vendorlib}/File/Cache.pm

%files
%doc CHANGES CREDITS README TODO
%{perl_vendorlib}/File/Cache.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4688 |21cr|perl-File-Cat-1.200.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	File-Cat
%define	upstream_version	1.2

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	9
Summary:	Perl implementation of cat(1)

License:	GPL or Artistic
Group:		Development/Perl
Source:		http://search.cpan.org/CPAN/authors/id/F/FI/FIMM/File-Cat-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{module}
BuildRequires:	perl-devel
Requires:	perl 
BuildArch:	noarch

%description
File::Cat is a module of adventure, danger, and low cunning. With it,
you will explore some of the most inane programs ever seen by
mortals. No computer should be without one!

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%{perl_vendorlib}/File/Cat.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4689 |21cr|perl-File-ChangeNotify-0.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-ChangeNotify
%define upstream_version 0.31

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(IO::KQueue\\)
%else
%define _requires_exceptions perl(IO::KQueue)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Inotify-based watcher subclass

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/File-ChangeNotify-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Module::Pluggable::Object)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Type::Utils)
BuildRequires:	perl(Types::Standard)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Test2::V0)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Without::Module)

BuildArch: noarch

%description
This module provides an API for creating a the File::ChangeNotify::Watcher
manpage subclass that will work on your platform.

Most of the documentation for this distro is in the
File::ChangeNotify::Watcher manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4690 |21cr|perl-File-Copy-Link-0.113.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Copy-Link
%define upstream_version 0.113

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.113
Release:	5

Summary:	Reading and resolving symbolic links

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/File-Copy-Link-0.113.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Spec)
BuildArch:	noarch

%description
'File::Spec::Link' is an extension to 'File::Spec', adding methods for
resolving symbolic links; it was created to implement 'File::Copy::Link'.

* 'linked($link)'

  Returns the filename linked to by '$link': by 'readlink'ing '$link', and
  resolving that path relative to the directory of '$link'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{perl_vendorlib}/*
%{_bindir}/copylink
%{_mandir}/man3/*
%{_mandir}/man1/copylink.1.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4691 |21cr|perl-File-Edit-0.3.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	File-Edit

Summary:	File::Edit for inplace-editing of files

Name:		perl-%{module}
Version:	0.3.1
Release:	14
License:	GPL or Artistic
Group:		Development/Perl
Source0:	%{module}-%{version}.tar.bz2
Url:		http://www.cpan.org
Buildrequires:	perl-devel
Requires:	perl 
Buildarch:	noarch

%description
File::Edit is a Perl module which defines an easy to use interface for
inplace-editing of files. You can delete only one pattern or all
lines where the pattern matches.


%prep
%setup -q -n %{module}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%clean 

%files 
%doc MANIFEST 
%{perl_vendorlib}/File
%{perl_vendorlib}/auto/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4692 |21cr|perl-File-FcntlLock-0.220.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-FcntlLock
%define upstream_version 0.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6
Summary:    File locking with fcntl()
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Errno)
BuildRequires: perl(Exporter)
BuildRequires: perl(POSIX)
BuildRequires: perl-devel
BuildRequires: perl-Test-Pod-Coverage
BuildRequires: perl-Test

%description
File locking in Perl is usually done using the the flock() manpage
function. Unfortunately, this only allows locks on whole files and is often
implemented in terms of the flock(2) manpage, which has some shortcomings.

Using this module file locking via the fcntl(2) manpage can be done
(obviously, this restricts the use of the module to systems that have a the
fcntl(2) manpage system call). Before a file (or parts of a file) can be
locked, an object simulating a flock structure must be created and its
properties set. Afterwards, by calling the 'lock()' method a lock can be
set or it can be determined if and which process currently holds the lock.

To create a new object representing a flock structure call 'new()':

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/man3/*
%{_libdir}/perl5/vendor_perl/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4693 |21cr|perl-File-Fetch-0.480.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Fetch
%define upstream_version 0.48

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A generic file fetching mechanism

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/File-Fetch-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-version
BuildRequires:	perl(HTML::HeadParser)
BuildRequires:	perl(IPC::Cmd) >= 0.420.0
BuildArch:	noarch

%description
File::Fetch is a generic file fetching mechanism.

It allows you to fetch any file pointed to by a ftp, http, file, or rsync uri
by a number of different means.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc README CHANGES
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4694 |21cr|perl-File-Finder-0.530.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Finder
%define upstream_version 0.53

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Steps for File::Finder

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Glob)
BuildArch:	noarch

%description
'File::Find' is great, but constructing the 'wanted' routine can sometimes
be a pain. This module provides a 'wanted'-writer, using syntax that is
directly mappable to the _find_ command's syntax.

Also, I find myself (heh) frequently just wanting the list of names that
match. With 'File::Find', I have to write a little accumulator, and then
access that from a closure. But with 'File::Finder', I can turn the problem
inside out.

A 'File::Finder' object contains a hash of 'File::Find' options, and a
series of steps that mimic _find_'s predicates. Initially, a 'File::Finder'
object has no steps. Each step method clones the previous object's options
and steps, and then adds the new step, returning the new object. In this
manner, an object can be grown, step by step, by chaining method calls.
Furthermore, a partial sequence can be created and held, and used as the
head of many different sequences.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4695 |21cr|perl-File-Find-Iterator-0.400.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module File-Find-Iterator
%define upstream_version 0.4

Summary: 	Iterator interface for search files

Name: 		perl-%{module}
Version: 	%perl_convert_version 0.4
Release: 	8
License: 	GPL or Artistic
Group: 		Development/Perl
Source: 	http://search.cpan.org/CPAN/authors/id/T/TE/TEXMEC/File-Find-Iterator-0.4.tar.gz
Url: 		http://search.cpan.org/dist/%{module}
BuildRequires: perl-devel
BuildRequires: perl(Class::Iterator)
BuildArch: noarch

%description
Find::File::Iterator is an iterator object for searching through
directory trees. You can easily run filter on each file name. You 
can easily save the search state when you want to stop the search
and continue the same search later.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4696 |21cr|perl-File-Find-Object-0.3.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Find-Object
%define upstream_version 0.3.7

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	File::Find like object
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::TreeCreate)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch:	noarch

%description
File::Find::Object does same job of File::Find but trough an object and
using an iterator. It allow to perform multiple tree parsing in same
application.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x examples/tree

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# disable check for avoid circular deps with Test::TrailingSpace
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README* examples
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4697 |21cr|perl-File-Find-Object-Rule-0.31.300-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Find-Object-Rule
%define upstream_version 0.0313

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    File::Find::Object::Rule's procedural interface
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Cwd)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find::Object)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::TreeCreate)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Number::Compare)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Glob)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)

BuildArch:  noarch

%description
File::Find::Object::Rule is a friendlier interface to the
File::Find::Object manpage . It allows you to build rules which specify the
desired files and directories.

*WARNING* : This module is a fork of version 0.30 of the File::Find::Rule
manpage (which has been unmaintained for several years as of February,
2009), and may still have some bugs due to its reliance on File::Find'isms.
As such it is considered Alpha software. Please report any problems with
the File::Find::Object::Rule manpage to its RT CPAN Queue.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml README
%{_bindir}/findorule
%{_mandir}/man1/*
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4698 |21cr|perl-File-Find-Upwards-1.102.30-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Find-Upwards
%define upstream_version 1.102030

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Look for a file in the current directory and upwards

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Memoize)
BuildRequires:	perl(Attribute::Memoize)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Provides a function that can find a file in the current or a parent
directory.

* file_find_upwards()

  Takes a filename and looks for the file in the current directory. If
  there is no such file, it traverses up the directory hierarchy until it
  finds the file or until it reaches the topmost directory. If the file is
  found, the full path to the file is returned. If the file is not found,
  undef is returned.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4699 |21cr|perl-File-Grep-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-Grep
%define	upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A grep function taking a list of files as argument

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MN/MNEYLON/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
File::Grep provides similar functionality as perl's builtin grep, map,
and foreach commands, but iterating over a passed filelist instead of
arrays.  While trivial, this module can provide a quick dropin when
such functionality is needed.

%prep
%setup -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc README Changes
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4700 |21cr|perl-FileHandle-Rollback-1.06-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name FileHandle-Rollback

Summary:	FileHandle-Rollback module for perl 

Name:		perl-%{real_name}
Version:	1.06
Release:	9
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{real_name}
Source0:	%{real_name}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
FileHandle::Rollback allows you to open a filehandle, write data to that
handle, read the data back exactly as if it were already in the file,
then cancel the whole transaction if you choose.

%prep
%setup -q -n %{real_name}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%clean 

%files
%doc README
%{perl_vendorlib}/FileHandle/Rollback.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4701 |21cr|perl-FileHandle-Unget-0.163.400-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    FileHandle-Unget
%define upstream_version 0.1634

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1

Summary:	Perl modules that allow to place back more than one byte on a Filehandle

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	http://search.cpan.org/CPAN/authors/id/D/DC/DCOPPIT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(File::Slurper)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
FileHandle::Unget is a perl module that is a drop-in replacement for the 
standard FileHandle perl module. It allows more than one byte to be placed back
on the input.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES LICENSE README
%{perl_vendorlib}/FileHandle/Unget.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4702 |21cr|perl-File-HomeDir-PathClass-1.112.60-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-HomeDir-PathClass
%define upstream_version 1.112060

Name:       perl-%{upstream_name}
Version:    %perl_convert_version 1.112060
Release:    5

Summary:    File::HomeDir returning Path::Class objects

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/File/File-HomeDir-PathClass-1.112060.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(English)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildArch: noarch


%description
This module is just a wrapper around the File::HomeDir manpage methods,
transforming their return value to the Path::Class manpage objects. This
allows for easier usage of the value.

Refer to the File::HomeDir#METHODS manpage for a list of which functions
are supported.

'File::HomeDir::PathClass' supports both original the File::HomeDir manpage
interfaces.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4703 |21cr|perl-File-LibMagic-1.230.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	File-LibMagic
%define upstream_version 1.23

%global __provides_exclude LibMagic.so

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl wrapper for libmagic


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source0:	http://www.cpan.org/modules/by-module/File/File-LibMagic-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	magic-devel
BuildRequires:	perl(Config::AutoConf)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Exporter) >= 5.720.0
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(ExtUtils::CBuilder) >= 0.280.223


%description
The File::LibMagic is a simple perlinterface to libmagic from the
file-4.x package

%prep
%setup -qn %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc LICENSE META.yml META.json README.md Changes
%{perl_vendorarch}/File
%{perl_vendorarch}/auto/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4704 |21cr|perl-File-List-0.3.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module   File-List

Name:		perl-%{module}
Version:	0.3.1
Release:	8
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Perl extension for crawling directory trees and compiling lists of files

Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/File/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module crawls the directory tree starting at the provided base
directory and can return files (and/or directories if desired) matching a
regular expression

%prep
%setup -q -n File/List 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4705 |21cr|perl-File-lockf-0.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-lockf
%define upstream_version 0.26

%define __provides_exclude lockf.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group: 		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/P/PH/PHENSON/File-lockf-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
File-Lockf module for perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc COPYRIGHT README
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4706 |21cr|perl-File-Map-0.67-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-File-Map
Version:        0.67
Release:        6%{?dist}
Summary:        Memory mapping made simple and safe
Group:          Development/Perl
License:        GPL+ or Artistic

URL:            https://metacpan.org/release/File-Map
Source0:        https://cpan.metacpan.org/authors/id/L/LE/LEONT/File-Map-%{version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  perl-interpreter >= 0:5.008
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::CBuilder)
BuildRequires:  perl(Module::Build)
# Run-time
BuildRequires:  perl(PerlIO::Layers)
BuildRequires:  perl(Sub::Exporter::Progressive)
# Tests
BuildRequires:  perl(open)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IO::Socket::INET)
BuildRequires:  perl(IPC::Open3)
# Pod::Coverage::TrustPod 1.08 not used
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More)
# Test::Pod 1.41 not used
# Test::Pod::Coverage 1.08 not used
BuildRequires:  perl(Test::Warnings) >= 0.005
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(utf8)
Requires:       perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))

%{?perl_default_filter}

%description
File::Map maps files or anonymous memory into perl variables.


%prep
%setup -q -n File-Map-%{version}
chmod -x examples/fastsearch.pl


%build
perl Build.PL installdirs=vendor optimize="%{optglags}"
./Build


%install
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;
%_fixperms %{buildroot}/*


%check
./Build test


%files
%license LICENSE
%doc Changes examples README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/File*
%{_mandir}/man3/*


%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.67-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.67-5
- Perl 5.34 rebuild

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.67-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.67-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Mon Jun 29 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.67-2
- Perl 5.32 re-rebuild updated packages

* Sun Jun 28 2020 Emmanuel Seyman <emmanuel@seyman.fr> - 0.67-1
- Replace %%{__perl} with /usr/bin/perl
- Update to 0.67

* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.66-6
- Perl 5.32 rebuild

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.66-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.66-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.66-3
- Perl 5.30 rebuild

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.66-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Sun Dec 23 2018 Emmanuel Seyman <emmanuel@seyman.fr> - 0.66-1
- Update to 0.66

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.65-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.65-4
- Perl 5.28 rebuild

* Fri Mar 02 2018 Petr Pisar <ppisar@redhat.com> - 0.65-3
- Adapt to removing GCC from a build root (bug #1547165)

* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.65-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Sat Nov 04 2017 Emmanuel Seyman <emmanuel@seyman.fr> - 0.65-1
- Update to 0.65

* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.64-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.64-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.64-5
- Perl 5.26 rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.64-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.64-3
- Perl 5.24 rebuild

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.64-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jul 23 2015 Emmanuel Seyman <emmanuel@seyman.fr> - 0.64-1
- Update to 0.64

* Mon Jun 22 2015 Petr Pisar <ppisar@redhat.com> - 0.63-4
- Specify all dependencies (bug #1234359)

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.63-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.63-2
- Perl 5.22 rebuild

* Sun Sep 14 2014 Emmanuel Seyman <emmanuel@seyman.fr> - 0.63-1
- Update to 0.63

* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.62-3
- Perl 5.20 rebuild

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.62-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sun Aug 17 2014 Emmanuel Seyman <emmanuel@seyman.fr> - 0.62-1
- Update to 0.62
- Use %%license

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.61-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Sun Oct 06 2013 Emmanuel Seyman <emmanuel@seyman.fr> - 0.61-1
- Update to 0.61

* Wed Aug 14 2013 Emmanuel Seyman <emmanuel@seyman.fr> - 0.60-1
- Update to 0.60

* Sat Aug 10 2013 Emmanuel Seyman <emmanuel@seyman.fr> - 0.59-1
- Update to 0.59

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.57-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Sat Jul 27 2013 Petr Pisar <ppisar@redhat.com> - 0.57-2
- Perl 5.18 rebuild

* Sun May 26 2013 Emmanuel Seyman <emmanuel@seyman.fr> - 0.57-1
- Update to 0.57

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.56-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Sun Dec 23 2012 Emmanuel Seyman <emmanuel@seyman.fr> - 0.56-1
- Update to 0.56
- Remove the Group macro (no longer used)

* Sun Dec 16 2012 Emmanuel Seyman <emmanuel@seyman.fr> - 0.55-1
- Update to 0.55

* Sun Nov 11 2012 Emmanuel Seyman <emmanuel@seyman.fr> - 0.53-1
- Update to 0.53

* Sat Oct 06 2012 Emmanuel Seyman <emmanuel@seyman.fr> - 0.52-1
- Update to 0.52
- Clean up spec file

* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.51-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Thu Jun 21 2012 Petr Pisar <ppisar@redhat.com> - 0.51-2
- Perl 5.16 rebuild

* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> - 0.51-1
- 0.51 bump

* Thu Jun 14 2012 Petr Pisar <ppisar@redhat.com> - 0.31-8
- Perl 5.16 rebuild

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Tue Jul 19 2011 Petr Sabata <contyk@redhat.com> - 0.31-6
- Perl mass rebuild

* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.31-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Fri Nov 05 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> 0.31-4
- Fix a BR typo

* Wed Nov 03 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> 0.31-3
- Drop el5 secific patches
- Add more BuildRequires (Petr Pisar)

* Mon Oct 11 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> 0.31-2
- Fix build on el5

* Fri Oct 08 2010 Lubomir Rintel (GoodData) <lubo.rintel@gooddata.com> 0.31-1
- Fix POD
- Specfile autogenerated by cpanspec 1.78.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4707 |21cr|perl-File-Modified-0.90.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Modified
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	File::Modified - checks intelligently if files have changed

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/C/CO/CORION/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Modified module is intended as a simple method for programs to detect
whether configuration files (or modules they rely on) have changed. There are
currently two methods of change detection implemented, mtime and MD5.
The MD5 method will fall back to use timestamps if the Digest::MD5 module
cannot be loaded.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find -size 0 -delete
chmod -x example/1.pl

%build
perl Makefile.PL INSTALLDIRS=vendor
%make


%check
make test

%install
%makeinstall_std


%files
%doc Changes README example
%{perl_vendorlib}/File/Modified.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4708 |21cr|perl-File-Next-1.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 File-Next
%define upstream_version 1.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	File-finding iterator

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
File::Next is a lightweight, taint-safe file-finding module. It's lightweight
and has no non-core prerequisites.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test 

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4709 |21cr|perl-File-NFSLock-1.290.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-NFSLock
%define	upstream_version 1.29

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/~bbb/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BB/BBB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} perl module

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/File/NFSLock.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4710 |21cr|perl-File-PathList-1.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-PathList
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Find a file within a set of paths (like @INC or Java classpaths)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Many systems that map generic relative paths to absolute paths do so with a
set of base paths.

For example, perl itself when loading classes first turn a 'Class::Name'
into a path like 'Class/Name.pm', and thens looks through each element of
'@INC' to find the actual file.

To aid in portability, all relative paths are provided as unix-style
relative paths, and converted to the localised version in the process of
looking up the path.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4711 |21cr|perl-File-Path-Tiny-0.700.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Path-Tiny
%define upstream_version 0.7

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Recursive versions of mkdir() and rmdir() without File::Path overhead

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/File-Path-Tiny-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The goal here is simply to provide recursive versions of the mkdir
manpage() and the rmdir manpage() with as little code and overhead as
possible.

This module is in no way meant to derogate the File::Path manpage and is in
no way an endorsement to go out and replace all use of the File::Path
manpage with the File::Path::Tiny manpage.

the File::Path manpage is very good at what it does but there's simply a
lot happening that we can do without much of the time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4712 |21cr|perl-File-ReadBackwards-1.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-ReadBackwards
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl extension for reading a file backwards by lines

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module reads a file backwards line by line. It is simple to use,
memory efficient and fast. It supports both an object and a tied handle
interface.

It is intended for processing log and other similar text files which
typically have their newest entries appended to them. By default files are
assumed to be plain text and have a line ending appropriate to the OS. But
you can set the input record separator string on a per file basis.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4713 |21cr|perl-File-Rsync-0.460.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-Rsync
%define	upstream_version 0.46


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Perl module interface to rsync

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	rsync
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(File::Path) >= 2.110.0
BuildRequires:  perl(IPC::Run3)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::More) >= 1.1.9

Requires:	rsync

# this should be noarch.Sflo
BuildArch:	noarch



%description
Perl Convenience wrapper for the rsync(1) program. Written for rsync-2.3.2 and
updated for rsync-2.6.0 but should perform properly with most recent versions.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README Changelog META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4714 |21cr|perl-File-RsyncP-0.760.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 File-RsyncP
%define upstream_version 0.76

%global __provides_exclude Digest.so|FileList.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl Rsync client

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Getopt::Long) >= 2.240.0

%description
File::RsyncP is a perl implementation of an Rsync client. It is compatible
with Rsync 2.5.5 (protocol version 26). It can send or receive files, either
by running rsync on the remote machine, or connecting to an rsyncd daemon on
the remote machine.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
%config_update

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
make

%install
%makeinstall_std

%check
make test

%files
%doc README LICENSE Changes
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4715 |21cr|perl-File-SearchPath-0.70.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-SearchPath
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Search for a file in an environment variable path

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TJ/TJENNESS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Env::Path)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.16.0

BuildArch:	noarch

%description
This module provides the ability to search a path-like environment variable for
a file (that does not necessarily have to be an executable).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README ChangeLog META.json META.yml
%{perl_vendorlib}/File/SearchPath.pm
%{_mandir}/man3/File::SearchPath.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4716 |21cr|perl-File-Share-0.250.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Share
%define upstream_version 0.25

Name:           perl-File-Share
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Extend File::ShareDir to local libraries
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/File-Share
Source0:        https://cpan.metacpan.org/authors/id/I/IN/INGY/File-Share-%{upstream_version}.tar.gz
BuildArch:      noarch
# Build
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Runtime
BuildRequires:  perl(base)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(File::ShareDir) >= 1.03
BuildRequires:  perl(File::Spec)
# Tests only
BuildRequires:  perl(File::Find)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires:       perl(File::ShareDir) >= 1.03

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(File::ShareDir\\)$

%description
This module is a drop-in replacement for File::ShareDir. It supports the
dist_dir and dist_file functions, except these functions have been enhanced
to understand when the developer's local ./share/ directory should be used.

%prep
%setup -q -n File-Share-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes CONTRIBUTING README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4717 |21cr|perl-File-ShareDir-PathClass-1.112.440-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-ShareDir-PathClass
%define upstream_version 1.112440
Name:       perl-%{upstream_name}
Version:    %perl_convert_version 1.112440
Release:    5

Summary:    File::ShareDir returning Path::Class objects

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/File/File-ShareDir-PathClass-1.112440.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(English)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildArch: noarch

%description
This module is just a wrapper around the File::ShareDir manpage functions,
transforming their return value to the Path::Class manpage objects. This
allows for easier usage of the value.

Refer to the File::ShareDir manpage (section FUNCTIONS) for a list of which
functions are supported.

'File::ShareDir::PathClass' supports both a procedural and a clas methods
API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4718 |21cr|perl-File-Slurper-0.12.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name File-Slurper
%define upstream_version 0.012

Summary:	A simple, sane and efficient module to slurp a file
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Test::Warnings)
BuildArch:	noarch

%description
A simple, sane and efficient module to slurp a file.

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make_build

%install
%make_install

%check
%make_build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4719 |21cr|perl-File-Sort-1.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Sort
%define upstream_version 1.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Sort a file or merge sort multiple files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module sorts text files by lines (or records). Comparisons are based
on one or more sort keys extracted from each line of input, and are
performed lexicographically. By default, if keys are not given, sort
regards each input line as a single field. The sort is a merge sort. If you
don't like that, feel free to change it.

Options
    The following options are available, and are passed in the hash
    reference passed to the function in the format:

      OPTION => VALUE

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4720 |21cr|perl-Filesys-Notify-Simple-0.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Filesys-Notify-Simple
%define upstream_version 0.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Simple and dumb file system watcher

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Filesys/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::SharedFork)
BuildRequires: perl-devel
BuildArch:  noarch

%description
Filesys::Notify::Simple is a simple but unified interface to get
notifications of changes to a given filesystem path. It utilizes inotify2
on Linux and fsevents on OS X if they're installed, with a fallback to the
full directory scan if they're not available.

There are some limitations in this module. If you don't like it, use the
File::ChangeNotify manpage.

* *

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4721 |21cr|perl-Filesys-POSIX-0.10.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Filesys-POSIX
%define upstream_version 0.10.0

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Filesys::POSIX(.*)\\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Provide POSIX-like filesystem semantics in pure Perl

License:	Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/~wrath/Filesys-POSIX-0.10.0/lib/Filesys/POSIX.pm
Source0:	http://search.cpan.org/CPAN/authors/id/W/WR/WRATH/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::NoWarnings)
BuildArch:	noarch

%description
This modules provide POSIX-like filesystem semantics in pure Perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# Kharec: a bad .t file breaks the rebuild...
# %check
# %make test

%install
%makeinstall_std

%files
%doc COPYRIGHT LICENSE MANIFEST README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4722 |21cr|perl-Filesys-SmbClient-3.200.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module   Filesys-SmbClient
%define upstream_version 3.2

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Provide Perl API for libsmbclient.so

Source:		http://www.cpan.org/modules/by-module/Filesys/Filesys-SmbClient-3.2.tar.gz
Url:		http://search.cpan.org/dist/%{module}

# Patch Makefile.PL to
# * Disable tests (requires Samba server access)
# * Know where to search includes (/usr/include/samba-4.0)
Patch0:         Filesys-SmbClient-3.2_Makefile.patch

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	pkgconfig(smbclient)

%description
Provide interface to access routine defined in libsmbclient.so provided
with Samba.

Since 3.0 release of this package, you need a least samba-3.0.2. For prior
release of Samba, use Filesys::SmbClient version 1.x.

For old and 2.x release, this library is available on Samba source, but is
not build by default. Do "make bin/libsmbclient.so" in sources directory of
Samba to build this libraries. Then copy source/include/libsmbclient.h to
/usr/local/samba/include and source/bin/libsmbclient.so to
/usr/local/samba/lib before install this module.

%prep
%setup -q -n %{module}-%{upstream_version} 
%patch0 -p0

chmod -x Changes
find . -name "*.pm" -exec chmod -c a-x {} +
find . -name "libauthSamba*" -exec chmod -c a-x {} +
find . -name "SmbClient.xs" -exec chmod -c a-x {} +

%build
# Force Makefile to use defaults
export PERL_MM_USE_DEFAULT=1
# HOSTTYPE is not exported by default, hence not readable by Perl
# Needed to be able to find libsmbclient.so in /usr/lib64
export HOSTTYPE
# CCFLAGS: Tell samba to use close_fn not close (caused compilation error)
perl Makefile.PL INSTALLDIRS=vendor CCFLAGS='-DHAVE_CLOSEFN' OPTIMIZE="%{optflags}"
%make CFLAGS="%{optflags}"

%check
%ifnarch %{ix86}
make test
%endif

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/Filesys
%{perl_vendorarch}/auto/Filesys

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4723 |21cr|perl-Filesys-Statvfs-0.820.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Filesys-Statvfs
%define	upstream_version 0.82

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Interface between Perl and the statvfs() system call

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Filesys/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

Obsoletes:	perl-Filesys-Statvfs_Statfs_Df <= 0.79
Provides:	perl-Filesys-Statvfs_Statfs_Df = %{version}-%{release}

%description
Filesys::Statvfs provides an interface between
Perl and the statvfs() system call.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%{_mandir}/*/*
%{perl_vendorarch}/Filesys
%{perl_vendorarch}/auto/Filesys

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4724 |21cr|perl-File-Tail-1.300.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name File-Tail
%define upstream_version 1.3

Summary:	File::Tail module for Perl

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL or Artistic
Group:		Development/Perl
Source0:	http://search.cpan.org/CPAN/authors/id/M/MG/MGRABNAR/%{upstream_name}-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{upstream_name}/
Requires:	perl
BuildRequires:	perl-devel
BuildRequires:	perl-Time-HiRes
BuildArch:	noarch

%description
This Perl modules allows to read from continously updated files.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%clean 

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4725 |21cr|perl-File-Tempdir-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 File-Tempdir
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A module to make easier temporary directories deletion

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
A module to make easier temporary directories deletion

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4726 |21cr|perl-File-Touch-0.90.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       File-Touch
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Update access and modification timestamps


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This modules update access and modification timestamps, creating nonexistent
files where necessary.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
# remove left-over files from macosx
rm -f ._*
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files 
%doc MANIFEST Changes
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4727 |21cr|perl-File-TreeCreate-0.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-TreeCreate
%define upstream_version 0.0.1

Name:		perl-File-TreeCreate
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Recursively create a directory tree
Group:		Development/Perl
License:	MIT
URL:		https://metacpan.org/release/File-TreeCreate
Source0:	https://cpan.metacpan.org/modules/by-module/File/File-TreeCreate-%{upstream_version}.tar.gz
BuildArch:	noarch
# Module Build
BuildRequires:	coreutils
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(Module::Build) >= 0.28
# Module Runtime
BuildRequires:	perl(autodie)
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
# Test Suite
BuildRequires:	perl(blib)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Test::More) >= 0.88
# Dependencies
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Recursively create a directory tree.

%prep
%setup -q -n File-TreeCreate-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} -c %{buildroot}

%check
./Build test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/File/
%{_mandir}/man3/File::TreeCreate.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4728 |21cr|perl-File-Type-0.220.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 File-Type
%define upstream_version 0.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl module to determine file type using magic

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/P/PA/PMISON/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
File::Type is a perl module that can be used to determine file type using
magic.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/File/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4729 |21cr|perl-File-Zglob-0.110.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Zglob
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Extended globs
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel

BuildArch: noarch

%description
*WARNINGS: THIS IS ALPHA VERSION. API MAY CHANGE WITHOUT NOTICE*

Provides a traditional Unix glob(3) functionality; returns a list of
pathnames that matches the given pattern.

File::Zglob provides extended glob. It supports '**/*.pm' form.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4730 |21cr|perl-Filter-1.390.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Filter
%define upstream_version 1.39

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    10
Summary:	Source filter modules for Perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		%{name}-1.31.shellbang.patch
BuildRequires:	perl-devel

%description
Source filter modules for Perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
# clean up AFTER compilation
find examples -type f -name \*.bak | xargs rm -f
find examples -type f | xargs perl -pi -e 's|^#!/usr/local/bin/perl|#!/usr/bin/perl|' 

%check
make test

%install

%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}/Filter/Util/Call.pm
rm -rf %{buildroot}%{perl_vendorarch}/auto/Filter/Util/Call
rm -rf %{buildroot}%{_mandir}/*/Filter::Util::Call.*

%clean

%files
%doc Changes examples README
%{_mandir}/*/*
%{perl_vendorarch}/auto/Filter
%{perl_vendorarch}/Filter
%{perl_vendorarch}/filter-util.pl
%{perl_vendorarch}/perlfilter.pod

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4731 |21cr|perl-Filter-Simple-0.940.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Filter-Simple
%define upstream_version 0.94

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Simplified source filtering

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Filter/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Filter::Util::Call)
BuildRequires:	perl(Text::Balanced)
BuildArch:	noarch

%description
The Problem
    Source filtering is an immensely powerful feature of recent versions of
    Perl. It allows one to extend the language itself (e.g. the Switch
    module), to simplify the language (e.g. Language::Pythonesque), or to
    completely recast the language (e.g. Lingua::Romana::Perligata).
    Effectively, it allows one to use the full power of Perl as its own,
    recursively applied, macro language.

    The excellent Filter::Util::Call module (by Paul Marquess) provides a
    usable Perl interface to source filtering, but it is often too powerful
    and not nearly as simple as it could be.

    To use the module it is necessary to do the following:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4732 |21cr|perl-Finance-Bank-LaPoste-9.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Finance-Bank-LaPoste
%define upstream_version 9.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Check your "La Poste" accounts from Perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/P/PI/PIXEL/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		perl-Finance-Bank-LaPoste-imagemagik.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Image::Magick)
BuildRequires:	perl(LWP) >= 6.130.0
BuildRequires:	perl(Test)
BuildRequires:	perl(HTML::Form)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(Config::MVP::Reader::INI) >= 2.101.463
BuildRequires:	perl(Config::INI::Reader) >= 0.25.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	pkgconfig(ImageMagick)
BuildArch:	noarch

%description
This module provides a read-only interface to the Videoposte online
banking system at <https://www.videoposte.com/>.

The interface of this module is similar to other Finance::Bank modules.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Finance/Bank/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4733 |21cr|perl-Finance-Quote-1.380.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Finance-Quote
%define upstream_version 1.38

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Get stock and mutual fund quotes from various exchanges 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/E/EC/ECOCODE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(CGI)
BuildRequires:	perl(Carp)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTML::TableExtract)
BuildRequires:	perl(HTML::TokeParser)
BuildRequires:	perl(HTML::TreeBuilder)
BuildRequires:	perl(HTTP::Cookies)
BuildRequires:	perl(HTTP::Headers)
BuildRequires:	perl(HTTP::Request::Common)
BuildRequires:	perl(HTTP::Status)
BuildRequires:	perl(JSON)
BuildRequires:	perl(LWP::Protocol::https)
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Mozilla::CA)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Time::Piece)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::QueryParam)
BuildRequires:	perl(base)
BuildRequires:	perl(constant)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(vars)
BuildRequires:	perl(warnings)
BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl(Net::SSLeay)
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(Package::Stash)

BuildArch:	noarch

%description
Finance::Quote provides access to time-delayed stockquotes from a
number of sources.  After you've installed the pacakage, try
'perldoc Finance::Quote' for full information.  Alternatively,
you can 'perldoc lib/Finance/Quote.pm' before the install.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Documentation/* 
%{perl_vendorlib}/Finance
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4734 |21cr|perl-Find-Lib-1.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Find-Lib
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Helper to find libs to use in the filesystem

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Find/Find-Lib-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The purpose of this module is to replace

    use FindBin;
    use lib "$FindBin::Bin/../bootstrap/lib";

with something shorter:
    use Find::Lib '../bootstrap/lib';

This is specially useful if your project has a lot
of scripts (For instance tests scripts).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4735 |21cr|perl-Flickr-API-1.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Flickr-API
%define upstream_version 1.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Perl interface to the flickr.com API 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://search.cpan.org/CPAN/authors/id/L/LB/LBMOORE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP)
BuildRequires:	perl(XML::Parser::Lite::Tree)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Getopt::Long) >= 2.420.0
BuildRequires:	perl(Term::ReadKey) >= 2.320.0
BuildRequires:	perl(Digest::MD5) >= 2.540.0
BuildRequires:	perl(HTTP::Message) >= 6.60.0
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(Net::OAuth) >= 0.280.0
BuildRequires:	perl(URI) >= 1.650.0
BuildRequires:	perl(XML::Simple) >= 2.200.0
BuildRequires:	perl(XML::LibXML::Simple)
BuildRequires:	perl(Test::Script)

BuildArch:	noarch

%description
Perl interface to the flickr.com API

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor </dev/null
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README examples
%{_bindir}/*.pl
%{perl_vendorlib}/
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4736 |21cr|perl-Flickr-Tools-1.220.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Flickr-Tools
%define upstream_version 1.22

%global __requires_exclude perl\\(Flickr::Person\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A set of classes that can be used to work with Flickr

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/L/LB/LBMOORE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Flickr::API)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Types::Standard)
BuildRequires:	perl(Moo)
BuildRequires:	perl(strictures)
BuildRequires:	perl(CHI)
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(Class::Method::Modifiers)
BuildArch:	noarch

%description
These modules provide a set of classes that can be used to work with
Flickr, using it's REST API, as provided by the Flickr::API.

The object of this set of classes is to take the "raw" interface that
the Flickr::API provides and turn it into a more usable set of objects
which are easier and faster to use, while providing full access to all
the functionality provided by Flickr.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes TODO
%{perl_vendorlib}/Flickr
%{_mandir}/man3/Flickr::*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4737 |21cr|perl-Flickr-Upload-1.600.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Flickr-Upload
%define upstream_version 1.6

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Upload images to flickr.com

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/S/SS/SSEVERIN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Flickr::API) >= 1.100.0
BuildRequires:	perl(XML::Parser::Lite::Tree)
BuildRequires:	perl(LWP)
BuildRequires:	perl(LWP::Protocol::https)
BuildRequires:	perl(Mozilla::CA)
BuildRequires:	perl(XML::Simple)

BuildArch:	noarch

%description
Upload an image to flickr.com

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std


%files
%doc README ChangeLog META.json META.yml
%{perl_vendorlib}/Flickr
%{_mandir}/*/*
%{_bindir}/flickr_upload

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4738 |21cr|perl-forks-0.360.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 forks
%define upstream_version 0.36
%global __provides_exclude forks.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Drop-in replacement for Perl threads using fork()

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RY/RYBSKEJ/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Acme::Damn)
BuildRequires: perl(Attribute::Handlers)
BuildRequires: perl(Devel::Symdump)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Socket) >= 1.180.0
BuildRequires: perl(List::MoreUtils) >= 0.150.0
BuildRequires: perl(Scalar::Util) >= 1.110.0
BuildRequires: perl(Storable)
BuildRequires: perl(Sys::SigAction) >= 0.110.0
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(base)
### rpmbuild failed to chatch those
Provides:       perl(forks::Devel::Symdump) = %{EVRD}
Provides:       perl(forks) = %{EVRD}

%description
The "forks" pragma allows a developer to use threads without having to have
a threaded perl, or to even run 5.8.0 or higher.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
find -type f | xargs chmod 644
yes no | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README TODO META.json META.yml Changes CREDITS
%{perl_vendorarch}/%{upstream_name}.pm
%{perl_vendorarch}/auto/%{upstream_name}/*
%{perl_vendorarch}/%{upstream_name}/*
%{perl_vendorarch}/threads/shared/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4739 |21cr|perl-FreezeThaw-0.500.100-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 FreezeThaw
%define upstream_version 0.5001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Converting Perl structures to strings and back

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/I/IL/ILYAZ/modules/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Math::BigInt)
BuildArch: 	noarch

%description
Converts data to/from stringified form, appropriate for saving-to/reading-from
permanent storage.

Deals with objects, circular lists, repeated appearence of the same refence.
Does not deal with overloaded stringify operator yet.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find . -type f | xargs chmod 644
find . -type d | xargs chmod 755

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files 
%doc README MANIFEST Changes
%{perl_vendorlib}/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4740 |21cr|perl-Frontier-RPC-0.07b4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Frontier-RPC

Name:		perl-%{module}
Version:	0.07b4
Release:	7
Summary:	%{module} module for perl

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}/
Source:		http://search.cpan.org/CPAN/authors/id/K/KM/KMACLEOD/%{module}-%{version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(HTTP::Daemon)
BuildArch:	noarch

%description
Frontier::RPC implements UserLand Software's XML RPC (Remote Procedure Calls
using Extensible Markup Language).  Frontier::RPC includes both a client module
for making requests to a server and several server modules for implementing
servers using CGI, Apache, and standalone with HTTP::Daemon.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_vendorlib}/MIME/changes.pod

%files
%doc ChangeLog COPYING README
%{perl_vendorlib}/Frontier
%{perl_vendorlib}/Apache
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4741 |21cr|perl-Function-Parameters-2.1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Function-Parameters
%define upstream_version 2.001003

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Information about parameter lists
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://cpan.metacpan.org/modules/by-module/Function/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Dir::Self)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
%description
This module extends Perl with keywords that let you define functions with
parameter lists. It uses Perl's perlapi/PL_keyword_plugin API, so it works
reliably and doesn't require a source filter.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4742 |21cr|perl-Fuse-0.161.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude Fuse.so

%define upstream_name Fuse
%define upstream_version 0.16.1

Summary:	Write filesystems in Perl using FUSE
Name:		perl-%{upstream_name}
Version:	0.161.0
Release:	6
License:	GPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/D/DP/DPAVLIN/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	fuse
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(fuse)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Filesys::Statvfs)
BuildRequires:	perl(Lchown)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Unix::Mknod)
Provides:	perl(Fuse) = %{version}

%description
This lets you implement filesystems in perl, through the FUSE (Filesystem in
USErspace) kernel/lib interface.

%files
%doc AUTHORS Changes README
%{perl_vendorarch}/Fuse*
%{perl_vendorarch}/auto/Fuse*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x Fuse.xs Fuse.pm

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
# Need root attr, and interactive tty.Sflo
# make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4743 |21cr|perl-Games-Dice-0.45.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Games-Dice
%define upstream_version 0.045

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Simulates rolling dice

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel
BuildRequires: perl(Test::Script)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(File::Spec)
BuildRequires: perl(Exporter) >= 5.720.0
BuildRequires: perl(strict)
BuildRequires: perl(warnings)


BuildArch:	noarch

%description
Games::Dice simulates die rolls. It uses a function-oriented (not
object-oriented) interface. No functions are exported by default. At
present, there are two functions which are exportable: 'roll' and
'roll_array'. The latter is used internally by 'roll', but can also be
exported by itself.

The number and type of dice to roll is given in a style which should be
familiar to players of popular role-playing games: _a_d_b_[+-*/b]_c_. _a_
is optional and defaults to 1; it gives the number of dice to roll. _b_
indicates the number of sides to each die; the most common, cube-shaped die
is thus a d6. % can be used instead of 100 for _b_; hence, rolling 2d% and
2d100 is equivalent. 'roll' simulates _a_ rolls of _b_-sided dice and adds
together the results. The optional end, consisting of one of +-*/b and a
number _c_, can modify the sum of the individual dice. +-*/ are similar in
that they take the sum of the rolls and add or subtract _c_, or multiply or
divide the sum by _c_. (x can also be used instead of *.) Hence, 1d6+2
gives a number in the range 3..8, and 2d4*10 gives a number in the range
20..80. (Using / truncates the result to an int after dividing.) Using b in
this slot is a little different: it's short for "best" and indicates "roll
a number of dice, but add together only the best few". For example, 5d6b3
rolls five six- sided dice and adds together the three best rolls. This is
sometimes used, for example, in roll-playing to give higher averages.

Generally, 'roll' probably provides the nicer interface, since it does the
adding up itself. However, in some situations one may wish to process the
individual rolls (for example, I am told that in the game Feng Shui, the
number of dice to be rolled cannot be determined in advance but depends on
whether any 6's were rolled); in such a case, one can use 'roll_array' to
return an array of values, which can then be examined or processed in an
application-dependent manner.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{_mandir}/man1/*
%{_bindir}/roll
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4744 |21cr|perl-Games-Solitaire-Verify-0.140.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Games-Solitaire-Verify
%define upstream_version 0.1400

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Process and verify solitaire games
License:    MIT
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Games/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Data::Dumper) >= 2.154.0
BuildRequires: perl(Exception::Class)
BuildRequires: perl(File::Spec) >= 3.470.0
BuildRequires: perl(File::Temp)
BuildRequires: perl(Getopt::Long) >= 2.360.0
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build) >= 0.280.0
BuildRequires: perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires: perl(MooX::late) >= 0.10.0
BuildRequires: perl(POSIX)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(autodie)
BuildRequires: perl(base)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)

BuildArch:  noarch

%description
This is a CPAN Perl module that verifies the solutions of various variants
of card Solitaire. It does not aim to try to be a solver for them, because
this is too CPU intensive to be adequately done using perl5 (as of
perl-5.10.0). If you're interested in the latter, look at:

* * http://fc-solve.berlios.de/

* * http://fc-solve.berlios.de/links.html#other_solvers

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc COPYING Changes LICENSE *META.yml README examples
%{_mandir}/man3/*
%perl_vendorlib/*
%{_bindir}/verify-solitaire-solution
%{_bindir}/expand-solitaire-multi-card-moves
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4745 |21cr|perl-GDGraph-1.560.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GDGraph
%define upstream_version 1.56

Summary:	Graph Plotting Module for Perl 5
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/B/BP/BPS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	gd-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl-GD >= 1.20
BuildRequires:	perl-GDTextUtil >= 0.83
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Capture::Tiny)
Provides:	perl-GD-Graph = %{EVRD}
BuildArch:	noarch

%description
This is GDGraph, a package to generate charts, using Lincoln
Stein's GD.pm. See the documentation for some history and more
information.

%files
%doc CHANGES README
%{perl_vendorlib}/GD/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4746 |21cr|perl-GD-Graph3d-0.630.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 GD-Graph3d
%define upstream_version 0.63

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Create 3D Graphs with GD and GD::Graph

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/W/WA/WADG/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl-GDGraph
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This is the GD::Graph3d extensions module. It provides 3D graphs for the
GD::Graph module by Martien Verbruggen, which in turn generates graph using
Lincoln Stein's GD.pm.

You use these modules just as you would any of the GD::Graph modules, except
that they generate 3d-looking graphs. Each graph type is described below with
only the options that are unique to the 3d version. The modules are based on
their 2d versions (e.g. GD::Graph::bars3d works like GD::Graph::bars), and
support all the options in those. Make sure to read the documentation on
GD::Graph.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 'tr/\r//d;' Changes

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/GD
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4747 |21cr|perl-GD-SecurityImage-1.750.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GD-SecurityImage
%define upstream_version 1.75

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Security image (captcha) generator

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/GD/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(GD)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Image::Magick) > 6.0.4
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0


BuildArch:	noarch

%description
The (so called) _"Security Images"_ are so popular. Most internet software
use these in their registration screens to block robot programs (which may
register tons of fake member accounts). Security images are basicaly,
graphical *CAPTCHA*s (*C*ompletely *A*utomated *P*ublic *T*uring Test to
Tell *C*omputers and *H*umans *A*part). This module gives you a basic
interface to create such an image. The final output is the actual graphic
data, the mime type of the graphic and the created random string. The
module also has some _"styles"_ that are used to create the background (or
foreground) of the image.

If you are an 'Authen::Captcha' user, see the GD::SecurityImage::AC manpage
for migration from 'Authen::Captcha' to 'GD::SecurityImage'.

This module is *just an image generator*. Not a _captcha handler_. The
validation of the generated graphic is left to your programming taste. But
there are some _captcha handlers_ for several Perl FrameWorks. If you are
an user of one of these frameworks, see the /"GD::SecurityImage
Implementations" manpage in the /"SEE ALSO" manpage section for
information.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/GD

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4748 |21cr|perl-GDTextUtil-0.860.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 GDTextUtil
%define upstream_version 0.86

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Text utilities for use with GD 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MV/MVERB/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl-GD >= 1.20
BuildArch:	noarch
Provides:	perl-GD-TextUtil = %{version}-%{release}

%description
This module provides a font-independent way of dealing with text in GD, for use
with the GD::Text::* modules and GD::Graph.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/GD
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4749 |21cr|perl-Geo-Coordinates-DecimalDegrees-0.90.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Geo-Coordinates-DecimalDegrees
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Convert between degrees/minutes/seconds and decimal degrees

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Geo/Geo-Coordinates-DecimalDegrees-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Number::Delta)
BuildArch:	noarch

%description
Latitudes and longitudes are most often presented in two common formats:
decimal degrees, and degrees, minutes and seconds. There are 60 minutes in
a degree, and 60 seconds in a minute. In decimal degrees, the minutes and
seconds are presented as a fractional number of degrees. For example, 1
degree 30 minutes is 1.5 degrees, and 30 minutes 45 seconds is 0.5125
degrees.

This module provides functions for converting between these two formats.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4750 |21cr|perl-Geo-Coordinates-UTM-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Geo-Coordinates-UTM
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Translation between  Lat Lon and UTM Coords

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Geo/Geo-Coordinates-UTM-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Math::Trig)
BuildArch:	noarch

%description
This module will translate latitude longitude coordinates to Universal
Transverse Mercator(UTM) coordinates and vice versa.

Mercator Projection
    The Mercator projection was first invented to help mariners. They
    needed to be able to take a course and know the distance traveled, and
    draw a line on the map which showed the day's journey. In order to do
    this, Mercator invented a projection which preserved length, by
    projecting the earth's surface onto a cylinder, sharing the same axis
    as the earth itself. This caused all Latitude and Longitude lines to
    intersect at a 90 degree angle, thereby negating the problem that
    longitude lines get closer together at the poles.

Transverse Mercator Projection
    A Transverse Mercator projection takes the cylinder and turns it on its
    side. Now the cylinder's axis passes through the equator, and it can be
    rotated to line up with the area of interest. Many countries use
    Transverse Mercator for their grid systems.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4751 |21cr|perl-Geo-IPfree-1.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Geo-IPfree
%define upstream_version 1.160000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Look up country by IP Address

License:	GPL+ or Artistic
Url:		http://search.cpan.org/dist/%{upstream_name}
Group:		Development/Perl
Source0:	http://www.cpan.org/modules/by-module/Geo/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Memoize)

BuildArch:	noarch

%description
Look up country of IP Address. This module make this off-line and 
the DB of IPs is free & small. 

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml 
%{perl_vendorlib}/Geo
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4752 |21cr|perl-Geo-METAR-1.150.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Geo-METAR
%define upstream_version 1.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Process aviation weather reports in the METAR format

License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Geo/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	gmp-devel
BuildArch:	noarch

%description
METAR reports are available on-line, thanks to the National
Weather Service. Since reading the METAR format isn't easy
for non-pilots, these reports are relatively useles to the
common man who just wants a quick glace at the weather.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc TODO README examples/*
%{perl_vendorlib}/Geo
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4753 |21cr|perl-Geo-Shapelib-0.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name		Geo-Shapelib
%define upstream_version	0.22

Summary:	Perl extension for reading and writing shapefiles as defined by ESRI(r)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Geo/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Tree::R)
BuildRequires:	pkgconfig(shapelib)
BuildRequires:	perl-devel

%description
This is a library for reading, creating, and writing shapefiles as
defined by ESRI(r) using Perl. The Perl code uses Frank Warmerdam's
Shapefile C Library (http://shapelib.maptools.org/). The library is
included in this distribution.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

# we don't want this
find %{buildroot} -name "*.a" -exec rm -rf {} \;

%files
%doc Changes README*
%{perl_vendorarch}/Geo/Shapelib.pm
%{perl_vendorarch}/auto/Geo/Shapelib
%{_mandir}/man3/Geo::Shapelib.3pm.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4754 |21cr|perl-Geo-WeatherNOAA-4.380.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Geo-WeatherNOAA
%define upstream_version 4.38

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:	Perl extension for interpreting the NOAA weather data

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Geo/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Tie::IxHash)
BuildRequires:  perl(LWP::Simple)
BuildArch:	noarch

%description
This module is intended to interpret the NOAA zone forecasts and current 
city hourly data files. It should give a programmer an easy time to use 
the data instead of having to mine it.

Be aware that if the variable $main::opt_v is set to anything (other than 
zero or '') then Geo::WeatherNOAA will be verbose on what it's doing with 
messages sent to STDERR. Useful for debugging. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
make OPTIMIZE="%{optflags}" 

%install
%makeinstall_std 

%clean

%check
make test

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/Geo/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4755 |21cr|perl-Getopt-ArgvFile-1.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Getopt-ArgvFile
%define upstream_version 1.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Interpolates script options from files into @ARGV or another array

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module simply interpolates option file hints in @ARGV by the contents of
the pointed files. This enables option reading from files instead of or
additional to the usual reading from the command line. Alternatively, you can
process any array instead of @ARGV which is used by default and mentioned
mostly in this manual.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Getopt/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4756 |21cr|perl-Getopt-Attribute-2.101.700-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Getopt-Attribute
%define upstream_version 2.101700

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Attribute wrapper for Getopt::Long

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Getopt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Attribute::Handlers)
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::More) >= 0.940.0
BuildRequires:	perl(UNIVERSAL::require)

BuildArch:	noarch

%description
Note: This version of the module works works with perl 5.8.0. If you need
it to work with perl 5.6.x, please use an earlier version from CPAN.

This module provides an attribute wrapper around 'Getopt::Long'. Instead of
declaring the options in a hash with references to the variables and
subroutines affected by the options, you can use the 'Getopt' attribute on
the variables and subroutines directly.

As you can see from the Synopsis, the attribute takes an argument of the
same format as you would give as the hash key for 'Getopt::Long'. See the
'Getopt::Long' manpage for details.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4757 |21cr|perl-Getopt-Euclid-0.4.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Getopt-Euclid
%define upstream_version 0.4.5

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Executable Uniform Command-Line Interface Descriptions

License:    GPL or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/F/FA/FANGLY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Pod::Checker)
BuildRequires: perl(Pod::PlainText)
BuildRequires: perl(Pod::Select)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Balanced)
BuildRequires: perl-version
BuildArch:  noarch

%description
Getopt::Euclid uses your program's own documentation to create a command-line
argument parser. This ensures that your program's documented interface and its
actual interface always agree.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files 
%doc Changes *META.yml README
%{perl_vendorlib}/Getopt
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4758 |21cr|perl-Getopt-Inherited-1.100.860-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Getopt-Inherited
%define upstream_version 1.100860

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Handling inherited command-line options

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Getopt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Accessor::Complex)
BuildRequires:	perl(Class::Accessor::Installer)
BuildRequires:	perl(Data::Inherited)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
By subclassing this mixin class, your program gets the ability to inherit
command-line option specifications. If you have several programs that share
common code and common command-line options you don't want to have to write
the command-line processing code again and again. Using this class you can
abstract command-line options shared by your programs into a superclass
from which your programs then inherit. Additionally, this class defines
certain common command-line options itself.

You can also define defaults for command-line options.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4759 |21cr|perl-Getopt-Long-2.470.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Getopt-Long
%define upstream_version 2.47
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Advanced handling of command line options

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/J/JV/JV/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
The Getopt::Long module implements an extended getopt function called
GetOptions(). This function adheres to the POSIX syntax for command line
options, with GNU extensions. In general, this means that options have long
names instead of single letters, and are introduced with a double dash
"--". Support for bundling of command line options, as was the case with
the more traditional single-letter approach, is provided but not enabled by
default.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES META.json META.yml README examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4760 |21cr|perl-Getopt-Lucid-1.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Getopt-Lucid
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Clear, readable syntax for command line processing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Getopt/Getopt-Lucid-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Exception::Class::TryCatch)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
The goal of this module is providing good code readability and clarity of
intent for command-line option processing. While readability is a
subjective standard, Getopt::Lucid relies on a more verbose, plain-English
option specification as compared against the more symbolic approach of
Getopt::Long. Key features include:

  Five option types: switches, counters, parameters, lists, and keypairs

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4761 |21cr|perl-Getopt-OO-0.70.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Getopt-OO
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	An object oriented command line parser.  It handles

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Getopt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Getopt::OO is an object oriented tool for parsing command line arguments.
It expects a reference to the input arguments and uses a perl hash to
describe how the command line arguments should be parsed. Note that by
parsed, we mean what options expect values, etc. We check to make sure
values exist on the command line as necessary -- nothing else. The caller
is responsible for making sure that a value that he knows should be a file
exists, is writable, or whatever.

Command line arguments can be broken into two distinct types: options and
values that are associated with these options. In windows, options often
start with a '/' but sometimes with a '-', but in unix they almost
universally start with a '-'. For this module options start with a '-'. We
support two types of options: the short single dashed options and the long
double dashed options. The difference between these two is that with this
module the short options can be combined into a single option, but the long
options can not. For example, most of us will be familiar with the 'tar
-xvf file' command which can also be expressed as '-x -v -f file'. Long
options can not be combined this way, so '--help' for example must always
stand by itself.

The input template expects the option names as its keys. For instance if
you were expecting '-xv --hello' as possible command line options, the keys
for your template hash would be '-x', '-v', and '--hello'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4762 |21cr|perl-GIFgraph-1.200.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GIFgraph
%define upstream_version 1.20
%bcond_with bootstrap

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Graph Plotting Module (deprecated) 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MV/MVERB/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		bootstrap.patch
BuildRequires:	perl-devel
BuildRequires:	perl(GD::Graph)
BuildRequires:	perl(Image::Magick)
%if %{without bootstrap}
BuildRequires:	perl(GIFgraph)
%endif

BuildArch:	noarch

%description
GIFgraph is a perl5 module to create and display GIF output for a graph.

GIFgraph is nothing more than a wrapper around GD::Graph, and its use is
deprecated. It only exists for backward compatibility. The documentation for
all the functionality can be found in GD::Graph

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%if %{with bootstrap}
%patch0
%endif

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%install
%makeinstall_std

%check
make test

%files
%doc README
%{perl_vendorlib}/GIFgraph.pm
%{perl_vendorlib}/GIFgraph/
%{_mandir}/*/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4763 |21cr|perl-GitMeta-0.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name GitMeta
%define upstream_version 0.05
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Clone/update many Git repositories using Meta repos


License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/~mschilli/%{upstream_name}-%{upstream_version}/lib/%{upstream_name}.pm
Source0:	http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Sysadm::Install)
BuildArch:      noarch

%description
GetMeta allows you to work on dozens of git repositories hosted
on different servers, and update all of your local copies with a
single command. It defines a new syntax, called GMF (git meta format),
to configure many different remote git repository locations and
provides a script, gitmeta-update, to create local copies of all
of these repos or updates them if they already exist. This is useful
to periodically update your local clones while you have an Internet
connection going so they're up-to-date later when you're offline, or
to move to a new system and create clones of all of your favorite
git repos with a single command.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build 
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files 
%doc Changes README
%{_bindir}/gitmeta-update
%{_mandir}/man1/gitmeta-update.1.xz
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4764 |21cr|perl-Git-Raw-0.880.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	Git-Raw
%define upstream_version 0.88


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Perl bindings to the Git linkable library (libgit2)
Group:		Development/Perl
License:	perl
URL:		http://metacpan.org/release/Git-Raw/
Source0:	https://cpan.metacpan.org/authors/id/J/JA/JACQUESG/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libgit2)
BuildRequires:	pcre-devel
BuildRequires:	pcre2-devel
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Devel::CheckLib)
BuildRequires:	perl(Dist::Zilla::Plugin::MakeMaker::Awesome)
BuildRequires:	perl(ExtUtils::Constant)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Slurp::Tiny)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(File::Spec::Unix)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Pod::Coverage::TrustPod)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Time::Local)
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

%description
From summary: %summary

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc TODO LICENSE README Changes
%{_mandir}/*/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4765 |21cr|perl-Git-Repository-1.325.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Git-Repository
%define upstream_version 1.325

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Control git from Perl using Git::Repository
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Git/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(System::Command)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires::Git)
BuildRequires: perl(constant)
BuildRequires: perl(base)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(namespace::clean)

BuildArch: noarch

%description
The Test::Git manpage provides a number of helpful functions when running
test scripts that require the creation and management of a Git repository.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4766 |21cr|perl-Git-Repository-Plugin-Log-1.314.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Git-Repository-Plugin-Log
%define upstream_version 1.314

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Split a git log stream into records
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Git/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Git::Repository) >= 1.314.0
BuildRequires: perl(Git::Repository::Command)
BuildRequires: perl(Git::Repository::Plugin)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Git)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::Requires::Git)

BuildArch: noarch

%description
the Git::Repository::Log manpage is a class whose instances represent log
items from a *git log* stream.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4767 |21cr|perl-Git-Version-Compare-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Git-Version-Compare
%define upstream_version 1.004

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Functions to compare Git versions
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Git-Version-Compare
Source0:        https://cpan.metacpan.org/modules/by-module/Git/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  findutils
BuildRequires:  perl-devel
BuildRequires:  perl(Carp)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::NoWarnings)
BuildRequires:  perl(warnings)

Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Git::Version::Compare contains a selection of subroutines that make dealing
with Git-related things (like versions) a little bit easier.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}

find %{buildroot} -type f -name .packlist -delete

%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4768 |21cr|perl-Git-Wrapper-0.48.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Git-Wrapper
%define upstream_version 0.048


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Wrap git(7) command-line interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Git/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	git
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::pushd) >= 1.9.0
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Sort::Versions)
BuildRequires:	perl(Env::Path)
BuildRequires:	perl(Devel::CheckBin)
BuildRequires:	perl(Path::Class) >= 0.26
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(File::chdir)

BuildArch:	noarch

Requires: git

%description
Git::Wrapper provides an API for git(7) that uses Perl data structures for
argument passing, instead of CLI-style '--options' as the Git manpage does.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
git config --global user.email "John@smith.org"
git config --global user.name "John Smith"
#%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4769 |21cr|perl-Gnome2-Vte-0.110.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Gnome2-Vte
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	8
Summary:	Perl binding for the vte widget
License:	GPL+ or Artistic
Group:		Development/GNOME and GTK+
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Gnome2/Gnome2-Vte-%{upstream_version}.tar.gz

BuildRequires:	perl-Glib-devel => 1.00
BuildRequires:	perl-Gtk2
BuildRequires:	perl-ExtUtils-Depends
BuildRequires:	perl-ExtUtils-PkgConfig
BuildRequires:	perl-devel
BuildRequires:	vte-devel => 0.11.10
BuildRequires:	x11-server-xvfb

Requires:	perl-Glib >= 1.00

%description
This module provides perl access to vte libraries.

VTE is an experimental terminal emulator widget for use with GTK+ 2.:.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find -type d -name CVS | rm -rf 

%build
RPM_OPT_FLAGS="%{optflags} -Os -s"
export GTK2_PERL_CFLAGS="%{optflags}"
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
# (tv) disabled b/c of "Xlib:  extension "RANDR" missing on display ":99.0"."
#xvfb-run %make test

%install
%makeinstall_std

%clean

%files
%doc LICENSE 
%{_mandir}/*/*
%{perl_vendorarch}/Gnome2/*
%{perl_vendorarch}/auto/Gnome2/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4770 |21cr|perl-GnuPG-Interface-1.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 GnuPG-Interface
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	GnuPG-Interface module for perl

Group:		Development/Perl
License:	GPL
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/GnuPG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	gnupg
BuildRequires:	perl-devel
BuildRequires:	perl(Any::Moose)
BuildRequires:	perl(Class::MethodMaker)
# For interactive tests
BuildRequires:	perl(Expect)
BuildRequires:	perl(Moo)
BuildRequires:	perl(strictures)
BuildRequires:	perl(MooX::late)
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(MooX::HandlesVia)
BuildRequires:	perl(Type::Utils)
BuildRequires:	perl(Data::Perl::Role::Collection::Array)


Requires:	perl(Class::MethodMaker)
BuildArch:	noarch


%description
GnuPG::Interface and its associated modules
are designed to provide an object-oriented
method for interacting with GnuPG, being able
to perform functions such as but not limited
to encrypting, signing, decryption, verification,
and key-listing parsing.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
perl -mExpect -e 'my $e=Expect->spawn("make test");
$e->expect(undef);
exit $e->exitstatus()'

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/GnuPG
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4771 |21cr|perl-Goo-Canvas-0.60.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Goo-Canvas
%define upstream_version 0.06

# Newx calls Perl_croak_nocontext with a char * without "%s", may be
# valid or not but it isn't fixable here, keep this until perl is fixed 
%define Werror_cflags %nil


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:	Goo::Canvas Perl interface to the GooCanvas 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/Y/YE/YEWENBIN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	libgoocanvas-devel
BuildRequires:	perl-ExtUtils-Depends
BuildRequires:	perl-ExtUtils-PkgConfig
BuildRequires:	perl-Glib-devel
BuildRequires:	perl-Gtk2
BuildRequires:	perl-devel

%description
GTK+ does't has an buildin canvas widget. GooCanvas is wonderful. It is
easy to use and has powerful and extensible way to create items in
canvas. Just try it.  For more documents, please read GooCanvas Manual
and the demo programs provided in the source distribution in both
perl-Goo::Canvas and GooCanvas.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std
rm -f %{buildroot}/usr/bin/perltetris.pl
rm -f %{buildroot}/usr/bin/perlmine.pl

%clean 

%files
%dir %{perl_vendorarch}/Goo/Cairo
%dir %{perl_vendorarch}/Goo/Canvas
%{perl_vendorarch}/Goo/*.pod
%{perl_vendorarch}/Goo/*.pm
%{perl_vendorarch}/Goo/Cairo/*.pod
%{perl_vendorarch}/Goo/Canvas/*.pod
%{perl_vendorarch}/Goo/Canvas/Install/*
%{perl_vendorarch}/auto/Goo/Canvas/Canvas.so
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4772 |21cr|perl-GooCanvas2-0.60.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name GooCanvas2
%define upstream_version 0.06

Name:        perl-%{upstream_name}
Version:     %perl_convert_version %{upstream_version}
Release:     3
Summary:     Perl binding for GooCanvas2 widget using Glib::Object::Introspection
Summary(ru): Связь Perl - GooCanvas2 через Glib::Object::Introspection
License:     GPL+ or Artistic
Group:       Development/Perl
URL:         https://metacpan.org/release/GooCanvas2
Source0:     https://cpan.metacpan.org/authors/id/P/PE/PERLMAX/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch: noarch

BuildRequires: perl >= 5.6
BuildRequires: perl(Glib) >= 1.270.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.76
# Run-time:
# goocanvas2 typelib loaded by Glib::Object::Introspection
BuildRequires: perl(Glib::Object::Introspection)

Requires: perl >= 5.6

# Provide some class identifiers that are required by other RPM packages. We
# cannot list them all because they are created at run-time from typelib file
# provided by goocanvas2 package that could change between building and
# running.
Provides: perl(GooCanvas2::Canvas) = %{version}

%description
GooCanvas2 is a new canvas widget for use with Gtk3 that uses the Cairo
2-dimensional library for drawing.

%description -l ru
GooCanvas2 - виджет для использования
с Gtk3, который использует Cairo -
2-мерную библиотеку для рисования.

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4773 |21cr|perl-GooCanvas2-CairoTypes-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name GooCanvas2-CairoTypes
%define upstream_version 0.001

Summary:	Bridge between GooCanvas2 and Cairo types
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
# lib/GooCanvas2/CairoTypes.pm file is "GPL+ or Artistic"
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		https://metacpan.org/dist/GooCanvas2-CairoTypes
Source0:	https://cpan.metacpan.org/authors/id/A/AS/ASOKOLOV/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	coreutils
BuildRequires:	findutils
BuildRequires:	gcc
BuildRequires:	make
BuildRequires:	perl-Glib-devel
BuildRequires:	perl-devel
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::PkgConfig)
BuildRequires:	perl(Cairo::Install::Files)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	pkgconfig(goocanvas-2.0)
Requires:	perl

# Tests:
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)

%description
There is an issue in the interaction between GooCanvas, GObject
Introspection, Cairo, and their Perl bindings, which causes some
functionality to be unusable from Perl side. This is better described
here
<https://stackoverflow.com/questions/64625955/cairosolidpattern-is-not-o
f-type-goocanvas2cairopattern>, and there was an attempt
<https://gitlab.gnome.org/GNOME/goocanvas/-/merge_requests/9> to fix it
upstream. Until it's fixed, this can serve as a workaround for it.

Currently this module only "fixes"
"Cairo::Pattern/GooCanvas2::CairoPattern" interop. For certain calls it
just works if this module was included; for some other calls you need to
explicitly convert the type.

If you have any idea how to fix those cases to not require such call, or
need to bridge more types, pull requests
<https://github.com/DarthGandalf/GooCanvas2-CairoTypes> are welcome!

%files
%license LICENSE
%doc README Changes
%{perl_vendorarch}/auto/GooCanvas2/
%{perl_vendorarch}/GooCanvas2*
%{_mandir}/man3/GooCanvas2::CairoTypes.3pm*

#------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
%make_build

%install
%make_install
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4774 |21cr|perl-GPS-Garmin-0.170.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name		perl-GPS
%define upstream_version	0.17

Name:		%{upstream_name}-Garmin
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Summary:	Perl interface to GPS equipment using the Garmin Protocol

Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/GPS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Device::SerialPort)
BuildArch:	noarch

%description
GPS::Garmin allow the connection and use of of a GPS receiver in perl
scripts. Currently only the GRMN/GRMN protocol is implemented but NMEA
is a work in progress.

This module currently works with Garmin GPS II+ equipments, but should
work on most Garmin receivers that support the GRMN/GRMN protocol.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/GPS
%{_mandir}/man3/GPS*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4775 |21cr|perl-GPS-Lowrance-0.310.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GPS-Lowrance
%define upstream_version 0.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Convert between mercator meters and degrees

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Geo/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This module provides a variety of low- and high-level methods for
communicating with Lowrance and Eagle GPS receivers which support the LSI
100 protocol. It also provides some utility functions for converting data.

This module is a work in progress.

Methods
    * connect

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4776 |21cr|perl-GPS-Lowrance-LSI-0.230.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GPS-Lowrance-LSI
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Lowrance Serial Interface Protocol module in Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/GPS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp::Assert)
BuildRequires:	perl(Parse::Binary::FixedFormat)
BuildArch:	noarch

%description
This module provides _very_ low-level support for the LSI (Lowrance Serial
Interface) 100 protocol used to communicate with Lowrance and Eagle GPS
devices.

(Higher-level functions and wrappers for specific commands will be provided
in other modules. This module is intentionally kept simple.)

Functions
    * lsi_query

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4777 |21cr|perl-GPS-Lowrance-Trail-0.430.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GPS-Lowrance-Trail
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Convert between GDM16 Trails and other formats

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/GPS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp::Assert)
BuildRequires:	perl(Geo::Coordinates::DecimalDegrees)
BuildRequires:	perl(Geo::Coordinates::UTM)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(XML::Generator)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module allows one to convert between Lowrance GPS trail files (handled
by their GDM16 application), Latitude/Longitude (or "Lat/Lon") files, UTM,
and GPX files which may be used by mapping applications.

Methods
    The following methods are implemented.
    * new

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4778 |21cr|perl-GPS-Point-0.200.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GPS-Point
%define upstream_version 0.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.20
Release:	5

Summary:	Provides an object interface for a GPS point

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/GPS/GPS-Point-0.20.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Number::Delta)
BuildRequires:	perl(Test::Simple)
BuildArch:	noarch

%description
This is a re-write of the Net::GPSD::Point manpage with a goal of being
more re-usable.

GPS::Point - Provides an object interface for a GPS fix (e.g. Position,
Velocity and Time).

  Note: Please use Geo::Point, if you want 2D or projection support.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4779 |21cr|perl-Graph-0.960.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Graph
%define upstream_version 0.96

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5
Epoch:      1

Summary:    Graph data structures and algorithms in perl

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Graph/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(List::Util)
BuildRequires: perl(Math::Complex)
BuildRequires: perl(Safe)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Storable) >= 2.50.0
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This module is not for drawing any sort of graphics, but instead it is for
creating abstract data structures called graphs, and for doing various
operations on those.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes DESIGN META.json META.yml MYMETA.yml README RELEASE TODO
%{perl_vendorlib}/Graph
%{perl_vendorlib}/Graph.*
%{perl_vendorlib}/Heap071
%{perl_vendorlib}/auto/Heap071
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4780 |21cr|perl-Graph-0.972.500-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Graph
%define upstream_version 0.9725

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Graph data structures and algorithms in perl

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Graph/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Heap)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(List::Util)
BuildRequires: perl(Math::Complex)
BuildRequires: perl(Safe)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Set::Object)
BuildRequires: perl(Storable) >= 2.50.0
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch:     noarch

%description
This module is not for drawing any sort of graphics, but instead it is for
creating abstract data structures called graphs, and for doing various
operations on those.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes DESIGN META.json META.yml MYMETA.yml README RELEASE TODO
%{perl_vendorlib}/Graph
%{perl_vendorlib}/Graph.*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4781 |21cr|perl-Graph-Easy-0.750.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Graph-Easy
%define upstream_version 0.75
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Parse Graphviz text into Graph::Easy


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Graph/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
'Graph::Easy' lets you generate graphs consisting of various shaped nodes
connected by edges (with optional labels).

It can read and write graphs in a varity of formats, as well as render them
via its own grid-based layouter.

Since the layouter works on a grid (manhattan layout), the output is most
usefull for flow charts, network diagrams, or hierarchy trees.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm t/pod.t

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE CHANGES
%{_bindir}/graph-easy
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4782 |21cr|perl-Graphics-ColorNames-3.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Graphics-ColorNames
%define upstream_version v3.5.0

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    %mkrel 2
License:    GPL or Artistic
Group:      Development/Perl
Summary:    provides RGB values for standard color names
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/authors/id/R/RR/RRWO/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(Carp)
BuildRequires: perl(DirHandle)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(FileHandle)
BuildRequires: perl(IO::File)
BuildRequires: perl(Module::Load)
BuildRequires: perl(Module::Loaded)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch
BuildRoot:  %{_tmppath}/%{name}-%{version}

%description
This module provides a common interface for obtaining the RGB values of
colors by standard names. The intention is to (1) provide a common module
that authors can use with other modules to specify colors by name; and (2)
free module authors from having to "re-invent the wheel" whenever they
decide to give the users the option of specifying a color by name rather
than RGB value.

For example,

  use Graphics::ColorNames 2.10;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
rm -rf %buildroot
%makeinstall_std

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc README.md Changes
%{_mandir}/man3/*
%perl_vendorlib/*




%changelog
* Sun Apr 17 2011 Funda Wang <fwang@mandriva.org> 2.110.0-2mdv2011.0
+ Revision: 654339
- rebuild for updated spec-helper

* Sat Nov 27 2010 Guillaume Rousse <guillomovitch@mandriva.org> 2.110.0-1mdv2011.0
+ Revision: 602038
- normalize perl version

* Sat Sep 25 2010 Shlomi Fish <shlomif@mandriva.org> 2.11-1mdv2011.0
+ Revision: 580993
- import perl-Graphics-ColorNames
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4783 |21cr|perl-Graphics-ColorNamesLite-WWW-1.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Graphics-ColorNamesLite-WWW
%define upstream_version 1.14.000

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        WWW color names and equivalent RGB values
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Graphics-ColorNamesLite-WWW/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
WWW color names and equivalent RGB values (lite version).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4784 |21cr|perl-Graphics-TIFF-20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Run optional tests
%{bcond_without perl_Graphics_TIFF_enables_optional_test}

Name:           perl-Graphics-TIFF
Version:        20
Release:        1%{?dist}
Summary:        Perl extension for the LibTIFF library
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Graphics-TIFF
Source0:        https://cpan.metacpan.org/authors/id/R/RA/RATCLIFFE/Graphics-TIFF-%{version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::Depends)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(ExtUtils::PkgConfig)
BuildRequires:  pkgconfig(libtiff-4) >= 4.0.3

%description
The Graphics::TIFF module allows a Perl developer to access TIFF images using
LibTIFF library in a Perlish and object-oriented way.

%files
%doc Changes examples README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Graphics*
%{_mandir}/man3/*

#--------------------------------------------------------------------
%prep
%autosetup -p 1 -n Graphics-TIFF-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
%make_build

%install
%{make_install}
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4785 |21cr|perl-GraphViz-2.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 GraphViz
%define upstream_version 2.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(Config)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Which) >= 1.90.0
BuildRequires: perl(Getopt::Long) >= 2.470.0
BuildRequires: perl(IO::Dir) >= 1.40.0
BuildRequires: perl(IO::File) >= 1.100.0
BuildRequires: perl(IPC::Run) >= 0.600.0
BuildRequires: perl(LWP::Simple) >= 6.0.0
BuildRequires: perl(Parse::RecDescent) >= 1.965.1
BuildRequires: perl(Pod::Usage) >= 1.160.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Time::HiRes) >= 1.510.0
BuildRequires: perl(XML::Twig) >= 3.380.0
BuildRequires: perl(XML::XPath) >= 1.130.0
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: fonts-ttf-dejavu
BuildRequires: graphviz
BuildRequires: perl-devel
BuildRequires: perl(Test::Pod)

BuildArch:	noarch

Requires:	graphviz

%description
This module provides an interface to layout and image generation of
directed and undirected graphs in a variety of formats (PostScript, PNG,
etc.) using the "dot", "neato" and "twopi" programs from the GraphViz
project (http://www.graphviz.org/ or
http://www.research.att.com/sw/tools/graphviz/). 

%prep
%setup -qn %{upstream_name}-%{upstream_version}
# Make rpmlint happy
pushd examples
find . -name "*.pl" -o -name "dprofpp.graphviz" |xargs chmod 0644
perl -pi -e "s|/usr/local/bin/perl|%{__perl}|" primes_aux.pl
perl -pi -e "s|perl|%{__perl}|" clusters2.pl
popd

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std



%files
%doc Changes LICENSE README META.json META.yml examples
%{perl_vendorlib}/GraphViz.pm
%{perl_vendorlib}/GraphViz
%{perl_vendorlib}/Devel
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4786 |21cr|perl-GStreamer-0.200.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GStreamer
%define upstream_version 0.20

%global __provides_exclude 'GStreamer.so'

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Perl module for the gstreamer library
License:    GPL+ or Artistic
Group:      Development/GNOME and GTK+
Url:        http://gtk2-perl.sf.net/
Source0:    %{upstream_name}-%{upstream_version}.tar.gz
# http://sourceforge.net/project/showfiles.php?group_id=64773&package_id=150831

BuildRequires: perl(ExtUtils::Depends)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(ExtUtils::PkgConfig)
BuildRequires: perl(Glib)
BuildRequires: pkgconfig(gstreamer-0.10) >= 0.10
BuildRequires: perl(Gtk2::Builder)
BuildRequires: perl-devel


%description
This module allows you to use the GStreamer library from Perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find -type d -name CVS | rm -rf 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make 

%check
%make test 

%install
%makeinstall_std

%files
%doc LICENSE META.json META.yml NEWS README TODO examples
%{_mandir}/*/*
%{perl_vendorarch}/%{upstream_name}*
%{perl_vendorarch}/auto/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4787 |21cr|perl-Gtk2Fu-0.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Gtk2Fu
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	GTK2 Forked Ultimate, a powerful layer on top of Gtk2 (forked from ugtk2)

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DA/DAMS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Gtk2)

BuildArch:	noarch

%description
gtk2-fu is a layer on top of perl gtk2, that brings power, simplicity
and speed of development. It brings additional methods to ease the widget
creation among other things. But the most important feature is that it
brings you a lot of derivated methods from existing methods, that does
exactly the same thing, except that ir returns the widget.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4788 |21cr|perl-Gtk2-GladeXML-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fmodule Glade
%define upstream_name    Gtk2-GladeXML
%define upstream_version 1.008

Summary:	Perl module for the glade libraries

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL or Artistic
Group:		Development/GNOME and GTK+
Source:		https://cpan.metacpan.org/authors/id/X/XA/XAOC/Gtk2-GladeXML-%{upstream_version}.tar.gz
URL:		http://gtk2-perl.sf.net/
BuildRequires:	libglade2.0-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::PkgConfig)
BuildRequires:	perl(Gtk2)
BuildRequires:	perl(Glib::MakeHelper)
BuildRequires:	glitz-devel
Requires:	perl-Gtk2

%description
This package adds perl support for Glade 2.x to Gtk2-Perl.

libglade allows to load externally stored user interfaces in programs
This allows alteration of GUIes without recompiling of programs.

%prep
%setup -q -n %upstream_name-%{upstream_version}
find -type d -name CVS | rm -rf 

%build
RPM_OPT_FLAGS="%{optflags}"
export GTK2_PERL_CFLAGS="%{optflags}"
perl Makefile.PL INSTALLDIRS=vendor
make OPTIMIZE="%{optflags}"
#%make test || :

%install
%makeinstall_std

%files
%defattr(-, root, root)
%doc examples
%{_mandir}/*/*
%{perl_vendorarch}/Gtk2/*
%{perl_vendorarch}/auto/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4789 |21cr|perl-Gtk2-TrayIcon-0.60.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Gtk2-TrayIcon
%define upstream_version 0.06

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	13
Summary:    Perl module interface to the EggTrayIcon library
License:    GPL+ or Artistic
Group:      Development/GNOME and GTK+
Url:        http://gtk2-perl.sf.net/
Source0:    %{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires: glitz-devel
BuildRequires: gtk+2-devel
BuildRequires: perl-Cairo
BuildRequires: perl-ExtUtils-Depends
BuildRequires: perl-ExtUtils-PkgConfig
BuildRequires: perl-Glib >= 0.92
BuildRequires: perl(Glib::MakeHelper)
BuildRequires: perl-Gtk2
BuildRequires: perl-devel

Requires: gtk+2
Requires: perl-Gtk2 >= 0.95-6mdk

%description
This module allows a Perl developer to embed an arbitrary widget
in a System Tray like the Gnome notification area.
System Trays are found in both KDE and Gnome.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find -type d -name CVS | rm -rf 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

#%check
#%make test || :

%install
%makeinstall_std

%clean

%files
%defattr(-, root, root)
%doc examples/*
%{_mandir}/*/*
%{perl_vendorarch}/Gtk2
%{perl_vendorarch}/auto/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4790 |21cr|perl-Gtk3-ImageView-10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-Gtk3-ImageView
Version:        10
Release:        1%{?dist}
Summary:        Image viewer widget for GTK 3
Group:          Development/GNOME and GTK+
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Gtk3-ImageView
Source0:        https://cpan.metacpan.org/authors/id/A/AS/ASOKOLOV/Gtk3-ImageView-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# Run-time:
BuildRequires:  perl(Glib) >= 1.210
BuildRequires:  perl(Glib::Object::Subclass)
BuildRequires:  perl(Gtk3)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Readonly)
BuildRequires:  perl(Scalar::Util)
# Optional tests:
# CPAN::Meta not helpful
# CPAN::Meta::Prereqs not helpful
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(if)
Requires:       perl(Glib) >= 1.210

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Glib\\)$

%description
The Gtk3::ImageView widget allows the user to zoom, pan and select the
specified image and provides hooks to allow additional tools, e.g. painter,
to be created and used.

%files
%license LICENSE
%doc README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*

#--------------------------------------------------------------------------
%prep
%setup -q -n Gtk3-ImageView-%{version}
# Remove author tests
rm t/91_critic.t
perl -i -ne 'print $_ unless m{\A\Qt/91_critic.t\E\b}' MANIFEST
# Help generators to recognize Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install
%{_fixperms} %{buildroot}/*




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4791 |21cr|perl-GTop-0.180.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 GTop
%define upstream_version 0.18

Name:       perl-%{upstream_name}
Version:    %perl_convert_version 0.18
Release:	7

Summary:	Perl interface to libgtop

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/M/MJ/MJH/GTop-0.18.tar.gz

BuildRequires:	pkgconfig(libgtop-2.0)
Buildrequires:	perl-devel
# for test
#Buildrequires:	perl(Test)

Requires:	perl

%description
GTop is a Perl interface to libgtop.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# test fail on abf build, local puild test passed
#make test

%install
%makeinstall_std

%files 
%{perl_vendorarch}/config.pl
%{perl_vendorarch}/GTop*
%{perl_vendorarch}/auto/GTop
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4792 |21cr|perl-Hal-Cdroms-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Hal-Cdroms
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Access cdroms through HAL and D-Bus
License:	GPL+ or Artistic
Group:		Development/Perl
Source:		http://search.cpan.org/CPAN/authors/id/T/TV/TVIGNAUD/%{upstream_name}-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{upstream_name}

BuildRequires:	perl-devel
Requires:	perl(Net::DBus)

BuildArch:	noarch

%description
Access cdroms through HAL and D-Bus

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml
%{perl_vendorlib}/Hal/Cdroms*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4793 |21cr|perl-Hash-AutoHash-1.170.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-AutoHash
%define upstream_version 1.17

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Object-oriented access to real and tied hashes

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter) >= 5.580.0
BuildRequires: perl(JSON::PP)
BuildRequires: perl(List::MoreUtils) >= 0.90.0
BuildRequires: perl(Module::Build) >= 0.400.700
BuildRequires: perl(Scalar::Util) >= 1.10.0
BuildRequires: perl(Test::Deep) >= 0.110.0
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Content)
BuildRequires: perl(Tie::Hash) >= 1.0.0
BuildRequires: perl(Tie::Hash::MultiValue)
BuildRequires: perl(Tie::ToObject)
BuildArch:  noarch

%description
This is yet another module that lets you access or change the elements of a
hash using methods with the same name as the element's key. It follows in
the footsteps of the Hash::AsObject manpage, the Hash::Inflator manpage,
the Data::OpenStruct::Deep manpage, the Object::AutoAccessor manpage, and
probably others. The main difference between this module and its forebears
is that it supports tied hashes, in addition to regular hashes. This allows
a modular division of labor: this class is generic and treats all hashes
the same; any special semantics come from the tied hash.

The class has a 'new' method but also supplies several functions for
constructing new Hash::AutoHash objects. Except in the simplest cases, we
recommend using the constructor functions rather than 'new'.

The constructor functions shown in the SYNOPSIS are all you need for
typical uses. autohash_hash creates a new 'real' (ie, not tied)
Hash::AutoHash object; autohash_tie creates a new tied Hash::AutoHash
object. Once the objects are constructed, the class treats them the same
way.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4794 |21cr|perl-Hash-AutoHash-Args-1.180.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-AutoHash-Args
%define upstream_version 1.18

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Object-oriented processing of argument lists (version 0)

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Test::Pod::Content)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Exporter)
BuildRequires: perl(Hash::AutoHash)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More)
BuildRequires: perl(Tie::Hash)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This class simplifies the handling of keyword argument lists. It replaces
the Class::AutoClass::Args manpage. See the DIFFERENCES FROM
Class::AutoClass::Args manpage for a discussion of what's new. See the
Hash::AutoHash::Args::V0 manpage for a subclass which is more compatible
with the original.

The 'new' method accepts a list, ARRAY, or HASH of keyword=>value pairs,
another Hash::AutoHash::Args object, or any object that can be coerced into
a HASH . It normalizes the keywords to ignore case and leading dashes
('-'). The following keywords are all equivalent:

  name, -name, -NAME, --NAME, Name, -Name

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4795 |21cr|perl-Hash-Flatten-1.190.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-Flatten
%define upstream_version 1.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Flatten/unflatten complex data hashes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Log::Trace)
BuildRequires:	perl(Test::Assertions)
BuildArch:	noarch

%description
Converts back and forth between a nested hash structure and a flat hash of
delimited key-value pairs. Useful for protocols that only support key-value
pairs (such as CGI and DBMs).

Functional interface
    * $flat_hash = flatten($nested_hash, \% options)

      Reduces a nested data-structure to key-value form. The top-level
      container must be hashref. For example:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4796 |21cr|perl-Hash-Merge-0.302.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-Merge
%define upstream_version 0.302

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Merges arbitrarily deep hashes into a single hash

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Hash/Hash-Merge-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Clone)
BuildRequires:	perl(Test::More)
BuildRequires: perl(Clone::Choose)
BuildArch:	noarch

%description
Hash::Merge merges two arbitrarily deep hashes into a single hash. That is,
at any level, it will add non-conflicting key-value pairs from one hash to
the other, and follows a set of specific rules when there are key value
conflicts (as outlined below). The hash is followed recursively, so that
deeply nested hashes that are at the same level will be merged when the
parent hashes are merged. *Please note that self-referencing hashes, or
recursive references, are not handled well by this method.*

Values in hashes are considered to be either ARRAY references, HASH
references, or otherwise are treated as SCALARs. By default, the data
passed to the merge function will be cloned using the Clone module;
however, if necessary, this behavior can be changed to use as many of the
original values as possible. (See 'set_clone_behavior').

Because there are a number of possible ways that one may want to merge
values when keys are conflicting, Hash::Merge provides several preset
methods for your convenience, as well as a way to define you own. These are
(currently):

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README.md
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4797 |21cr|perl-Hash-Merge-Simple-0.51.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-Merge-Simple
%define upstream_version 0.051

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Recursively merge two or more hashes, simply

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Test::Warn)
BuildArch:	noarch

%description
Hash::Merge::Simple will recursively merge two or more hashes and return
the result as a new hash reference. The merge function will descend and
merge hashes that exist under the same node in both the left and right
hash, but doesn't attempt to combine arrays, objects, scalars, or anything
else. The rightmost hash also takes precedence, replacing whatever was in
the left hash if a conflict occurs.

This code was pretty much taken straight from the Catalyst::Utils manpage,
and modified to handle more than 2 hashes at the same time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4798 |21cr|perl-Hash-MoreUtils-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-MoreUtils
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Provide the stuff missing in Hash::Util

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Hash/Hash-MoreUtils-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Similar to 'List::MoreUtils', 'Hash::MoreUtils' contains trivial but
commonly-used functionality for hashes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4799 |21cr|perl-Hash-MultiValue-0.160.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-MultiValue
%define upstream_version 0.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Store multiple values per key

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/authors/id/A/AR/ARISTOTLE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::More) >= 1.1.9


BuildRequires: perl-devel


BuildArch:  noarch

%description
Hash::MultiValue is an object (and a plain hash reference) that may contain
multiple values per key, inspired by MultiDict of WebOb.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4800 |21cr|perl-Hash-Rename-2.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-Rename
%define upstream_version 2.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Rename hash keys

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(TAP::Harness::Env)
BuildRequires:	perl(Test::Differences)
BuildArch:	noarch

%description
Using this module you can rename a hash's keys in place.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot}

%check
./Build test

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4801 |21cr|perl-Hash-Slice-0.30.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-Slice
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Make a hash from a deep slice of another hash
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel
BuildRequires: perl(Carp::Clan)
BuildRequires: perl(Clone)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Storable)
BuildRequires: perl(Test::Most)
BuildRequires: perl(inc::Module::Install)

BuildArch: noarch

%description
Hash::Slice lets you easily make a deep slice of a hash, specifically a
hash containing one or more nested hashes. Instead of just taking a slice
of the first level of a hash in an all-or-nothing manner, you can use slice
to take a slice of the first level, then take a particular slice of the
second level, and so on.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4802 |21cr|perl-Hash-Util-FieldHash-Compat-0.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-Util-FieldHash-Compat
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Emulate Hash::Util::FieldHash using

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(CPAN::Meta::Requirements)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(Hash::Util::FieldHash)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Tie::RefHash)
BuildRequires:	perl(Tie::RefHash::Weak)
BuildRequires:	perl(constant)
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(version)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Test::use::ok)

BuildArch:	noarch

%description
Under older perls this module provides a drop in compatible api to the
Hash::Util::FieldHash manpage using the perltie manpage. When the
Hash::Util::FieldHash manpage is available it will use that instead.

This way code requiring field hashes can benefit from fast, robust field
hashes on Perl 5.10 and newer, but still run on older perls that don't ship
with that module.

See the Hash::Util::FieldHash manpage for all the details of the API.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4803 |21cr|perl-Heap-0.800.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Heap
%define upstream_version 0.80

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JM/JMM/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Heap collection of modules provide routines that manage a heap of
elements. A heap is a partially sorted structure that is always able to
easily extract the smallest of the elements in the structure (or the
largest if a reversed compare routine is provided). 

If the collection of elements is changing dynamically, the heap has less
overhead than keeping the collection fully sorted. 

The elements must be objects as described in "Heap::Elem" and all
elements inserted into one heap must be mutually compatible - either the
same class exactly or else classes that differ only in ways unrelated to
the Heap::Elem interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Heap.pm
%{perl_vendorlib}/Heap
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4804 |21cr|perl-Hijk-0.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hijk
%define upstream_version 0.28

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Specialized HTTP client
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/G/GU/GUGOD/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Net::Ping)
BuildRequires: perl(Net::Server::HTTP)
BuildRequires: perl(Plack)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildArch:     noarch



%description
Hijk is a specialized HTTP Client that does nothing but transport the
response body back. It does not feature as a "user agent", but as a dumb
client. It is suitable for connecting to data servers transporting via HTTP
rather then web servers.

Most of HTTP features like proxy, redirect, Transfer-Encoding, or SSL are
not supported at all. For those requirements we already have many good HTTP
clients like the HTTP::Tiny manpage, the Furl manpage or the LWP::UserAgent
manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc Changes META.json META.yml LICENSE README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4805 |21cr|perl-Hook-Output-File-0.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hook-Output-File
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Redirect STDOUT/STDERR to a file

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Hook/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(boolean)
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Capture)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Tie::Handle)
BuildArch:	noarch

%description
'Hook::Output::File' redirects 'STDOUT/STDERR' to a file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4806 |21cr|perl-HTML-Display-0.400.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Display
%define upstream_version 0.40

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.40
Release:	5

Summary:	Use an OLE object to display HTML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/HTML-Display-0.40.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::TokeParser::Simple)
BuildRequires:	perl(LWP)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(URI::URL)
BuildRequires:	perl-parent
BuildArch:	noarch

%description
This module abstracts the task of displaying HTML to the user. The
displaying is done by launching a browser and navigating it to either a
temporary file with the HTML stored in it, or, if possible, by pushing the
HTML directly into the browser window.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/HTML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4807 |21cr|perl-HTML-Encoding-0.610.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Encoding
%define upstream_version 0.61

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    10

Summary:    Determine encoding of HTML/XHTML documents
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTML::Parser)
BuildRequires: perl(HTTP::Headers::Util)
BuildRequires: perl(HTTP::Response)
BuildArch: noarch

%description
HTML::Encoding helps to determine the encoding of HTML and XML/XHTML
documents...

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
# Pass locally, fail in ABF...
# % make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4808 |21cr|perl-HTML-FillInForm-2.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-FillInForm
%define upstream_version 2.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Populates HTML Forms with data
License:    Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CGI)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTML::Parser) >= 3.260.0
BuildRequires: perl(HTML::TokeParser) >= 3.260.0
BuildRequires: perl(warnings)
BuildRequires: perl(Test)
BuildRequires: perl(Test::Output)
BuildRequires: perl-devel
BuildArch:     noarch

%description
This module automatically inserts data from a previous HTML form into the HTML
input, textarea, radio buttons, checkboxes and select tags.  It is a subclass
of HTML::Parser and uses it to parse the HTML and insert the values into the
form tags.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml MYMETA.yml README
%{_mandir}/*/*
%{perl_vendorlib}/HTML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4809 |21cr|perl-HTML-FormatText-WithLinks-0.150.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name HTML-FormatText-WithLinks
%define upstream_version 0.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	HTML to text conversion with links as footnotes
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(HTML::FormatText)
BuildRequires:	perl(HTML::TreeBuilder)
BuildRequires:	perl(Module::Build) >= 0.400.400
BuildRequires:	perl(URI::WithBase)
BuildRequires:	perl(Test::More) >= 1.1.9

BuildArch:	noarch

%description
HTML to text conversion with links as footnotes.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4810 |21cr|perl-HTML-FormatText-WithLinks-AndTables-0.70.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-FormatText-WithLinks-AndTables
%define upstream_version 0.07

Name:           perl-HTML-FormatText-WithLinks-AndTables
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Converts HTML to Text with tables in tact
Group:          Development/Perl
License:        Artistic 2.0
URL:            https://metacpan.org/release/HTML-FormatText-WithLinks-AndTables
BuildArch:      noarch

Source0:        https://cpan.metacpan.org/authors/id/D/DA/DALEEVANS/HTML-FormatText-WithLinks-AndTables-%{upstream_version}.tar.gz

BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(base)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(HTML::FormatText::WithLinks)
BuildRequires:  perl(HTML::TreeBuilder)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(warnings)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This module was inspired by HTML::FormatText::WithLinks which has proven to
be a useful "lynx -dump" work-alike. However one frustration was that no
other HTML converters I came across had the ability to deal effectively
with HTML <TABLE>s. This module can in a rudimentary sense do so. The aim
was to provide facility to take a simple HTML based email template, and to
also convert it to text with the <TABLE> structure intact for inclusion as
"multi-part/alternative" content. Further, it will preserve both the
formatting specified by the <TD> tag's "align" attribute, and will also
preserve multi-line text inside of a <TD> element provided it is broken
using <BR/> tags.

%prep
%setup -q -n HTML-FormatText-WithLinks-AndTables-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README.pod
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4811 |21cr|perl-HTML-FormFu-2.70.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-FormFu
%define upstream_version 2.07

%{?perl_default_filter:
%filter_from_provides /perl(unicode/d
%filter_from_requires /perl(Catalyst/d; /perl(default/d; /perl(model_config)/d;
%perl_default_filter
}

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	HTML Form Management Framework for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Carp)
BuildRequires:  perl(CGI) >= 3.37
BuildRequires:  perl(CGI::Simple)
BuildRequires:  perl(Class::Accessor::Chained::Fast)
BuildRequires:  perl(Class::MOP::Method)
BuildRequires:  perl(Clone)
BuildRequires:  perl(CPAN::Meta)
BuildRequires:  perl(Cpanel::JSON::XS)
BuildRequires:  perl(Config::Any) >= 0.18
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Data::Visitor) >= 0.26
BuildRequires:  perl(Data::Visitor::Callback)
BuildRequires:  perl(Date::Calc)
BuildRequires:  perl(DateTime) >= 0.38
BuildRequires:  perl(DateTime::Format::Builder) >= 0.80
BuildRequires:  perl(DateTime::Format::Natural)
BuildRequires:  perl(DateTime::Format::Strptime) >= 1.20
BuildRequires:  perl(DateTime::Locale) >= 0.45
BuildRequires:  perl(Email::Valid)
BuildRequires:  perl(Encode)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Fatal)
BuildRequires:  perl(File::Copy)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::ShareDir)
BuildRequires:  perl(File::ShareDir::Install)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Hash::Flatten)
BuildRequires:  perl(HTML::Scrubber)
BuildRequires:  perl(HTML::TokeParser::Simple) >= 3.14
BuildRequires:  perl(HTTP::Headers) >= 1.64
BuildRequires:  perl(IO::File)
BuildRequires:  perl(JSON::MaybeXS)
BuildRequires:  perl(List::MoreUtils)
BuildRequires:  perl(Locale::Maketext)
BuildRequires:  perl(Module::Pluggable)
BuildRequires:  perl(Moose) >= 1.00
BuildRequires:  perl(Moose::Role)
BuildRequires:  perl(Moose::Util)
BuildRequires:  perl(MooseX::Aliases)
BuildRequires:  perl(MooseX::Attribute::Chained) >= 1.0.1
BuildRequires:  perl(MooseX::SetOnce)
BuildRequires:  perl(Number::Format)
BuildRequires:  perl(Path::Class::File)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Readonly)
BuildRequires:  perl(Regexp::Assemble)
BuildRequires:  perl(Regexp::Common)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Storable)
BuildRequires:  perl(Task::Weaken)
BuildRequires:  perl(Template)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::Memory::Cycle)
BuildRequires:  perl(Test::More) >= 0.92
BuildRequires:  perl(Test::RequiresInternet)
BuildRequires:  perl(YAML::XS) >= 0.32
BuildArch:	noarch

%description
HTML::FormFu is a HTML form framework which aims to be as easy
as possible to use for basic web forms, but with the power and flexibility
to do anything else you might want to do (as long as it involves forms).

You can configure almost any part of formfu's behaviour and output. By
default formfu renders "XHTML 1.0 Strict" compliant markup, with as little
extra markup as possible, but with sufficient CSS class names to allow for
a wide-range of output styles to be generated by changing only the CSS.

All methods listed below (except the /new manpage) can either be called as
a normal method on your '$form' object, or as an option in your config
file. Examples will mainly be shown in the YAML manpage config syntax.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find examples -type f | xargs chmod 644
find examples -type f | xargs sed -i -e 's/\r//'

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%check
# drop fail test
rm t/constraints/email-mx.t
make test

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
rm -rf %{buildroot}/blib

%{_fixperms} %{buildroot}/*

%files
%doc Changes README META.yml
%{perl_vendorlib}/*
%{_bindir}/html_formfu_deploy.pl
%{_bindir}/html_formfu_dumpconf.pl
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4812 |21cr|perl-HTML-FormFu-Element-reCAPTCHA-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name HTML-FormFu-Element-reCAPTCHA
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	"Are you human" tester
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Captcha::reCAPTCHA)
BuildRequires:	perl(Devel::GlobalDestruction)
BuildRequires:	perl(Eval::Closure)
BuildRequires:	perl(YAML::XS)
BuildRequires:	perl(HTML::FormFu)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(MooseX::Attribute::Chained)
BuildRequires:	perl(Package::DeprecationManager)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
"Are you human" tester!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4813 |21cr|perl-HTML-FormFu-Model-DBIC-2.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-FormFu-Model-DBIC
%define upstream_version 2.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Integrate HTML::FormFu with DBIx::Class


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(Class::Factory::Util)
BuildRequires:	perl(DateTime::Format::SQLite)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTML::FormFu)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(Moose::Meta::Attribute::Custom::Trait::Chained)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(YAML::Syck)
BuildRequires:	perl(boolean)
BuildRequires:	perl(strictures)

BuildArch:	noarch

%description
Integrate HTML::FormFu with DBIx::Class.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4814 |21cr|perl-HTML-FormFu-MultiForm-1.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-FormFu-MultiForm
%define upstream_version 1.03

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Handle multi-page/stage forms
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/HTML-FormFu-MultiForm
Source0:        https://cpan.metacpan.org/authors/id/N/NI/NIGELM/HTML-FormFu-MultiForm-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(Carp)
BuildRequires:  perl(Clone)
BuildRequires:  perl(Crypt::CBC)
# Crypt::Cipher::AES is a default cipher used by the Crypt::CBC, bug #1939432
BuildRequires:  perl(Crypt::Cipher::AES)
BuildRequires:  perl(HTML::FormFu)
BuildRequires:  perl(HTML::FormFu::Attribute)
BuildRequires:  perl(HTML::FormFu::ObjectUtil)
BuildRequires:  perl(HTML::FormFu::QueryType::CGI)
BuildRequires:  perl(HTML::FormFu::Role::FormAndElementMethods)
BuildRequires:  perl(HTML::FormFu::Role::FormBlockAndFieldMethods)
BuildRequires:  perl(HTML::FormFu::Role::NestedHashUtils)
BuildRequires:  perl(HTML::FormFu::Role::Populate)
BuildRequires:  perl(List::MoreUtils)
BuildRequires:  perl(Moose)
BuildRequires:  perl(MooseX::Attribute::Chained)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Storable)
# Test:
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Fatal)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Test::More) >= 0.92
BuildRequires:  perl(YAML::XS)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
# Crypt::Cipher::AES is a default cipher used by the Crypt::CBC, bug #1939432
Requires:       perl(Crypt::Cipher::AES)
Requires:       perl(HTML::FormFu::Role::FormAndElementMethods)
Requires:       perl(HTML::FormFu::Role::FormBlockAndFieldMethods)
Requires:       perl(HTML::FormFu::Role::NestedHashUtils)
Requires:       perl(HTML::FormFu::Role::Populate)

%description
Multi-page support for HTML::FormFu, a Perl HTML form framework.

%prep
%setup -q -n HTML-FormFu-MultiForm-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4815 |21cr|perl-HTML-FormHandler-0.400.680-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-FormHandler
%define upstream_version 0.40068

# Required but not provided with internal dep. generator
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(HTML::FormHandler::Meta::Role\\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	An HTML form handler written in Moose

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(List::AllUtils)
BuildRequires:	perl(Data::Clone)
BuildRequires:	perl(Carp)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Strptime)
BuildRequires:	perl(Email::Valid)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Locale::Maketext)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Getopt)
BuildRequires:	perl(MooseX::Traits)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(MooseX::Types::Common)
BuildRequires:	perl(MooseX::Types::LoadableClass)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(HTML::TreeBuilder)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(File::ShareDir::Install)
BuildRequires:	perl(Template::Base)
BuildRequires:	perl(Config::Any)
BuildRequires:	perl(YAML::Syck)
BuildRequires:	perl(Test::Warn)
#BuildRequires:	perl(JSON::MaybeXS)
BuildRequires:	perl(Crypt::CBC)
BuildRequires:	perl(Crypt::Blowfish)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(JSON::PP)

BuildArch:	noarch

%description
HTML::FormHandler maintains a clean separation between form construction
and form rendering. It allows you to define your forms and fields in a
number of flexible ways. Although it provides renderers for HTML, you can
define custom renderers for any kind of presentation.

Although documentation in this file provides some overview, it is mainly
intended for API documentation. See the HTML::FormHandler::Manual::Intro
manpage for a more detailed introduction.

HTML::FormHandler allows you to define form fields and validators. It can
be used for both database and non-database forms, and will automatically
update or create rows in a database. It can be used to process structured
data that doesn't come from an HTML form.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README META.json LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4816 |21cr|perl-HTML-FromText-2.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-FromText
%define upstream_version 2.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Perl module to Convert plain text to HTML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Email::Find::addrspec)
BuildRequires:	perl(Exporter) 
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.30 
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Text::Tabs)
BuildRequires:	perl(strict)
BuildRequires:	perl(version) >= 0.990.100
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
HTML::FromText converts text to HTML.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/HTML/FromText.pm
%{_bindir}/text2html
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4817 |21cr|perl-HTML-Lint-2.220.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-Lint
%define upstream_version 2.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Module to check for HTML errors

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/P/PE/PETDANCE/%{upstream_name}-%{upstream_version}.tar.gz
# patch from mga
Patch0:		HTML-Lint-2.22-fix-tests.patch

BuildRequires:	perl-devel
BuildRequires:	perl(Exporter) >= 5.720.0
BuildRequires:	perl(File::Find) >= 0.530.0
BuildRequires:	perl(HTML::Entities) >= 1.0.100-
BuildRequires:	perl(HTML::Parser) >=  3.47
BuildRequires:	perl(HTML::Tagset) >=  3.03
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(LWP::Simple)

BuildArch:	noarch

%description
This Perl module is used to check for HTML errors in strings or files.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
%patch0 -p1

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{perl_vendorlib}/HTML
%{perl_vendorlib}/Test
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4818 |21cr|perl-HTML-Mason-PSGIHandler-0.530.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Mason-PSGIHandler
%define upstream_version 0.53

Name:           perl-HTML-Mason-PSGIHandler
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        PSGI handler for HTML::Mason
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/HTML-Mason-PSGIHandler
Source0:        https://cpan.metacpan.org/authors/id/R/RU/RUZ/HTML-Mason-PSGIHandler-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(base)
BuildRequires:  perl(blib)
BuildRequires:  perl(CGI::PSGI)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(FindBin)
BuildRequires:  perl(HTML::Mason)
BuildRequires:  perl(HTML::Mason::CGIHandler)
BuildRequires:  perl(HTML::Mason::Exceptions)
BuildRequires:  perl(HTML::Mason::Request::CGI)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Plack::Test)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(warnings)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
HTML::Mason::PSGIHandler is a PSGI handler for HTML::Mason. It's based on
HTML::Mason::CGIHandler and allows you to process Mason templates on any
web servers that support PSGI.

%prep
%setup -q -n HTML-Mason-PSGIHandler-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4819 |21cr|perl-HTML-Prototype-1.480.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-Prototype
%define upstream_version 1.48

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Generate HTML and Javascript for the Prototype library

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(HTML::Tree)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Some code generators for Prototype, the famous JavaScript OO library. This
library allows you to do Ajax without writing lots of javascript code. This is
mostly a port of the Ruby on Rails helper tags for JavaScript for use in
Catalyst.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 'tr/\r//d;' README

%build
%{__perl} ./Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc README Changes
%{perl_vendorlib}/HTML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4820 |21cr|perl-HTML-Quoted-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Quoted
%define upstream_version 0.04

Name:           perl-HTML-Quoted
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Extract structure of quoted HTML mail message
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/HTML-Quoted
Source0:        https://cpan.metacpan.org/authors/id/T/TS/TSIBLEY/HTML-Quoted-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires: make
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(HTML::Parser) >= 3.0
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(base)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(Module::Install::ReadmeFromPod)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Extract structure of quoted HTML mail message.

%prep
%setup -q -n HTML-Quoted-%{upstream_version}
rm -r inc

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4821 |21cr|perl-HTML-ResolveLink-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-ResolveLink
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Resolve relative links in (X)HTML into absolute URI

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
HTML::ResolveLink is a module to rewrite relative links in XHTML or HTML
into absolute URI.

For example. when you have

  <a href="foo.html">foo</a>
  <img src="/bar.gif" />

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4822 |21cr|perl-HTML-Restrict-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Restrict
%define upstream_version v3.0.0

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Strip away unwanted HTML tags and attributes
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dump)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTML::Entities)
BuildRequires: perl(HTML::Parser)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Module::Build) >= 0.280.0
BuildRequires: perl(Moo) >= 1.2.0
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Quote)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Type::Tiny) >= 1.0.1
BuildRequires: perl(Types::Standard)
BuildRequires: perl(URI)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch:  noarch

%description
This module uses _HTML::Parser_ to strip HTML from text in a restrictive
manner. By default all HTML is restricted. You may alter the default
behaviour by supplying your own tag rules.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CONTRIBUTORS Changes LICENSE META.json META.yml README.md examples
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4823 |21cr|perl-HTML-RewriteAttributes-0.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-RewriteAttributes
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Concise attribute rewriting

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/HTML-RewriteAttributes/
Source0:	http://www.cpan.org/authors/id/S/SA/SARTAK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTML::Tagset)
BuildRequires:	perl(URI)
BuildRequires:	perl(Test::More)
BuildArch:	noarch
# rpm doesn't catch this
Requires:	perl(HTML::Parser)

%description
HTML::RewriteAttributes is designed for simple yet powerful HTML attribute
rewriting.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
chmod -R u+w %{buildroot}/*

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4824 |21cr|perl-HTML-Scrubber-0.190.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Scrubber
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl extension for scrubbing/sanitizing html 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/HTML-Scrubber-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::CPAN::Meta) >= 0.250.0
BuildRequires:	perl(Test::EOL)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::NoTabs)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(utf8)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
If you wanna "scrub" or "sanitize" html input in a reliable and flexible 
fashion, then this perl module is for you.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL installdirs=vendor
%make

%check
make test

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}

%files
%doc Changes META.json META.yml README
%{perl_vendorlib}/HTML
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4825 |21cr|perl-HTML-Selector-XPath-0.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Selector-XPath
%define upstream_version 0.26

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    CSS Selector to XPath compiler
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Base)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(HTML::TreeBuilder::XPath)
BuildRequires: perl-devel

BuildArch:     noarch

%description
HTML::Selector::XPath is a utility function to compile full set of CSS2 and
partial CSS3 selectors to the equivalent XPath expression.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4826 |21cr|perl-HTML-SimpleLinkExtor-1.270.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-SimpleLinkExtor
%define upstream_version 1.27

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	A simple way to extract links


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::LinkExtor)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::file)
BuildArch:	noarch

%description
This is a simple HTML link extractor designed for the person who does not
want to deal with the intricacies of 'HTML::Parser' or the de-referencing
needed to get links out of 'HTML::LinkExtor'.

You can extract all the links or some of the links (based on the HTML tag
name or attribute name). If a <BASE HREF> tag is found, all of the relative
URLs will be resolved according to that reference.

This module is simply a subclass around 'HTML::LinkExtor', so it can only
parse what that module can handle. Invalid HTML or XHTML may cause
problems.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man?/*
%{perl_vendorlib}/*
%{_bindir}/linktractor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4827 |21cr|perl-HTML-SimpleParse-0.120.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-SimpleParse
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	HTML::SimpleParse Perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
HTML::SimpleParse module for Perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/HTML/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4828 |21cr|perl-HTML-Stream-1.600.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-Stream
%define upstream_version 1.60

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	HTML output stream class, and some markup utilities

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Output)
BuildArch:	noarch

%description
The HTML::Stream module provides you with an object-oriented (and subclassable)
way of outputting HTML. Basically, you open up an "HTML stream" on an existing
filehandle, and then do all of your output to the HTML stream. You can intermix
HTML-stream-output and ordinary-print-output, if you like.

There's even a small built-in subclass, HTML::Stream::Latin1, which can handle
Latin-1 input right out of the box. But all in good time...

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc COPYING README README.system docs examples testin
%{perl_vendorlib}/HTML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4829 |21cr|perl-HTML-Strip-2.90.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Strip
%define upstream_version 2.09
%global __provides_exclude Strip.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:    Perl extension for stripping HTML markup from text

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(strict)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(warnings)
BuildRequires: perl(HTML::Entities)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl-devel

%description
This module simply strips HTML-like markup from text in a very quick and
brutal manner. It could quite easily be used to strip XML or SGML from text
as well; but removing HTML markup is a much more common problem, hence this
module lives in the HTML:: namespace.

It is written in XS, and thus about five times quicker than using regular
expressions for the same task.

It does _not_ do any syntax checking (if you want that, use the
HTML::Parser manpage), instead it merely applies the following rules:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4830 |21cr|perl-HTML-StripScripts-1.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-StripScripts
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Strip scripting constructs out of HTML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module strips scripting constructs out of HTML, leaving as much
non-scripting markup in place as possible. This allows web applications to
display HTML originating from an untrusted source without introducing XSS
(cross site scripting) vulnerabilities.

You will probably use the HTML::StripScripts::Parser manpage rather than
using this module directly.

The process is based on whitelists of tags, attributes and attribute
values. This approach is the most secure against disguised scripting
constructs hidden in malicious HTML documents.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4831 |21cr|perl-HTML-StripScripts-Parser-1.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-StripScripts-Parser
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	XSS filter using HTML::Parser

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTML::StripScripts)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This class provides an easy interface to 'HTML::StripScripts', using
'HTML::Parser' to parse the HTML.

See the HTML::Parser manpage for details of how to customise how the raw
HTML is parsed into tags, and the HTML::StripScripts manpage for details of
how to customise the way those tags are filtered.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/HTML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4832 |21cr|perl-HTML-Table-2.80.0a-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Table
%define upstream_version 2.08a

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	HTML::Table module for perl 

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AJ/AJPEACOCK/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

BuildArch:	noarch

%description
HTML::Table is used to generate HTML tables for CGI scripts.  By using the
methods provided fairly complex tables can be created, manipulated, then
printed from Perl scripts.  The module also greatly simplifies creating
tables within tables from Perl.  It is possible to create an entire table
using the methods provided and never use an HTML tag.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes META.yml README lib/HTML/Table.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{perl_vendorlib}/HTML/Table.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4833 |21cr|perl-HTML-TableContentParser-0.305.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-TableContentParser
%define upstream_version 0.305

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Do interesting things with the contents of tables

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)

BuildArch:	noarch

%description
This package pulls out the contents of a table from a string containing
HTML. Each time a table is encountered, data will be stored in an array
consisting of a hash of whatever was discovered about the table -- id,
name, border, cellspacing etc, and of course data contained within the
table.

The format of each hash will look something like

  attributes            keys from the attributes of the <table> tag
  @{$table_headers}     array of table headers, in order found
  @{$table_rows}        rows discovered, in order

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4834 |21cr|perl-HTML-TagCloud-0.380.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-TagCloud
%define upstream_version 0.38

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.38
Release:	5

Summary:	Generate An HTML Tag Cloud

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/HTML-TagCloud-0.38.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
The the HTML::TagCloud manpage module enables you to generate "tag clouds"
in HTML. Tag clouds serve as a textual way to visualize terms and topics
that are used most frequently. The tags are sorted alphabetically and a
larger font is used to indicate more frequent term usage.

Example sites with tag clouds: the http://www.43things.com/ manpage, the
http://www.astray.com/recipes/ manpage and the
http://www.flickr.com/photos/tags/ manpage.

This module provides a simple interface to generating a CSS-based HTML tag
cloud. You simply pass in a set of tags, their URL and their count. This
module outputs stylesheet-based HTML. You may use the included CSS or use
your own.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4835 |21cr|perl-HTML-TagFilter-1.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name HTML-TagFilter
%define upstream_version 1.03

Summary:	Fine-grained html-filter, xss-blocker and mailto-obfuscator

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Epoch:		1
License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/HTML-TagFilter/
Source:		http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(URI::Escape)
BuildArch:	noarch

%description
HTML::TagFilter is a subclass of HTML::Parser with a
single purpose: it will remove unwanted html tags and attributes from a
piece of text. It can act in a more or less fine-grained way - you can
specify permitted tags, permitted attributes of each tag, and permitted
values for each attribute in as much detail as you like.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/HTML/TagFilter.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4836 |21cr|perl-HTML-TagReader-1.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-TagReader
%define upstream_version 1.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	HTML-TagReader module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Image::Size)
BuildRequires:	perl-devel

%description
TagReader is a perl extension module which allows you to read html/xml
files by tag. That is: in a similar way as you can read textfiles by
line with "while(<>)" you use TagReader::getbytoken to read a file by tag.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%ifnarch %{armx}
make test
%endif

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/tr_*
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4837 |21cr|perl-HTML-Template-2.970.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Template
%define upstream_version 2.97

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl module to use HTML Templates from CGI scripts

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SA/SAMTREGAR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)

BuildArch:	noarch

%description
This module attempts make using HTML templates simple and natural. It
extends standard HTML with a few new HTML-esque tags - <TMPL_VAR>,
<TMPL_LOOP>, <TMPL_INCLUDE>, <TMPL_IF> and <TMPL_ELSE>. The file
written with HTML and these new tags is called a template. It is
usually saved separate from your script - possibly even created by
someone else!  Using this module you fill in the values for the
variables, loops and branches declared in the template. This allows
you to separate design - the HTML - from the data, which you generate
in the Perl script.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/HTML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4838 |21cr|perl-HTML-Template-Expr-0.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Template-Expr
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	HTML::Template extension adding expression support

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Template)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Test::Simple)
BuildArch:	noarch

%description
This module provides an extension to HTML::Template which
allows expressions in the template syntax.  This is purely an addition
- all the normal HTML::Template options, syntax and behaviors will
still work.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README 
%{perl_vendorlib}/HTML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4839 |21cr|perl-HTML-Template-Extension-0.260.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Template-Extension
%define upstream_version 0.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Basic set operations

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTML::Template)
BuildArch:	noarch

%description
This module extends HTML::Template to easily support methods and tags not
implemented in parent module. The following plugins are supplied:
- HTML::Template::Extension::DOC
- HTML::Template::Extension::SLASH_VAR
- HTML::Template::Extension::CSTART
- HTML::Template::Extension::HEAD_BODY
- HTML::Template::Extension::DO_NOTHING

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes DISCLAIMER README TODO
%{perl_vendorlib}/HTML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4840 |21cr|perl-HTML-Template-Pluggable-0.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Template-Pluggable
%define upstream_version 0.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Extends HTML::Template with plugin support

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Trigger)
BuildRequires:	perl(HTML::Template)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(CGI)
BuildArch:	noarch

%description
By adding support for this dot notation to the HTML::Template manpage, the
programmers' job of sending data to the template is easier, and designers
have easier access to more data to display in the template, without
learning any more tag syntax.

EXAMPLES
Class::DBI integration
    the Class::DBI manpage accessors can be used in the template. If the
    accessor is never called in the template, that data doesn't have to be
    loaded.

    In the code:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4841 |21cr|perl-HTML-Template-Pro-0.952.400-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Template-Pro
%define upstream_version 0.9524

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

License:    GPL+ or Artistic
Group:      Development/Perl
Summary:    Perl/XS module to use HTML Templates from CGI scripts

Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/V/VI/VIY/HTML-Template-Pro-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: pcre-devel
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(JSON)

%description
Original HTML::Template is written by Sam Tregar, sam@tregar.com with
contributions of many people mentioned there. Their efforts caused
HTML::Template to be mature html tempate engine which separate perl code
and html design. Yet powerful, HTML::Template is slow, especially if
mod_perl isn't available or in case of disk usage and memory limitations.

HTML::Template::Pro is a fast lightweight C/Perl+XS reimplementation of
HTML::Template (as of 2.8) and HTML::Template::Expr (as of 0.0.5). It is
not intended to be a complete replacement, but to be a fast implementation
of HTML::Template if you don't need quering, the extended facility of
HTML::Template. Designed for heavy upload, resource limitations, abcence of
mod_perl.

HTML::Template::Pro has complete support of filters and
HTML::Template::Expr's tag EXPR="<expression>", including user-defined
functions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/HTML
%{perl_vendorarch}/auto/HTML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4842 |21cr|perl-HTML-TextToHTML-2.520.100-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    txt2html
%define module_name      HTML-TextToHTML
%define upstream_version 2.5201

Name:		perl-%{module_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Convert plain text file to HTML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/txt2html-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Module::Build)

BuildArch:	noarch
# dependencies of txt2html script, not gathered automatically because of #52267
Requires:	perl(Pod::Usage)
Requires:	perl(Getopt::Long)
Requires:	perl(File::Basename)
Requires:	perl(Getopt::ArgvFile)
Provides:	%{upstream_name} = %{version}-%{release}

%description
HTML::TextToHTML converts plain text files to HTML. The txt2html
script uses this module to do the same from the command-line.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%files
%doc README Changes TODO
%{_bindir}/txt2html
%{_mandir}/man1/txt2html.1*
%{_mandir}/man3/HTML*
%{perl_vendorlib}/HTML*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4843 |21cr|perl-HTML-Tidy-1.600.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Tidy
%define upstream_version 1.60

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary: 	Web validation in a Perl object

License: 	GPL+ or Artistic
Group: 		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/HTML-Tidy-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Exception)
BuildRequires:	tidyp-devel

%description 
HTML::Tidy is an HTML checker in a handy dandy object. It's meant as a
replacement for HTML::Lint. If you're currently an HTML::Lint user looking to
migrate, see the section "Converting from HTML::Lint".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# currently broken
rm -f t/venus.t
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README.markdown
%{perl_vendorarch}/HTML
%{perl_vendorarch}/auto/HTML
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4844 |21cr|perl-HTML-Tiny-1.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Tiny
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Lightweight, dependency free HTML/XML generation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
'HTML::Tiny' is a simple, dependency free module for generating HTML (and
XML). It concentrates on generating syntactically correct XHTML using a
simple Perl notation.

In addition to the HTML generation functions utility functions are provided
to

* * encode and decode URL encoded strings

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4845 |21cr|perl-HTML-Toc-1.120.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Toc
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Generate, insert and update HTML Table of Contents

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Differences)
BuildArch:	noarch

%description
Generate, insert and update HTML Table of Contents (ToC).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4846 |21cr|perl-HTML-TokeParser-Simple-3.160.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-TokeParser-Simple
%define upstream_version 3.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 3.16
Release:	6

Summary:	Easy to use HTML::TokeParser interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/authors/id/O/OV/OVID/HTML-TokeParser-Simple-3.16.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(Sub::Override)
BuildArch:	noarch

%description
HTML::TokeParser::Simple is a subclass of HTML::TokeParser that uses
easy-to-remember method calls to work with the tokens.  Rather than
try to remember a bunch of array indices or try to write a bunch of
constants for them, you can now do something like:

 $token->is_start_tag( 'form' )

instead of 

 $token->[0] eq 'S' and $token->[1] eq 'form'

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 'tr/\r//d;' Changes README

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/HTML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4847 |21cr|perl-HTML-TreeBuilder-LibXML-0.260.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-TreeBuilder-LibXML
%define upstream_version 0.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	HTML::Element compatible API for HTML::TreeBuilder::LibXML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		HTML-TreeBuilder-LibXML-0.26-empty-string-test.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Filter::Util::Call)
BuildRequires:	perl(HTML::TreeBuilder::XPath)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(XML::LibXML)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0

BuildArch:	noarch

%description
HTML::TreeBuilder::XPath is libxml based compatible interface to
HTML::TreeBuilder, which could be slow for a large document.

HTML::TreeBuilder::LibXML is drop-in-replacement for
HTML::TreeBuilder::XPath.

This module doesn't implement all of HTML::TreeBuilder and HTML::Element
APIs, but eough methods are defined so modules like Web::Scraper work.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
%patch0 -p1

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4848 |21cr|perl-HTML-TreeBuilder-XPath-0.140.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-TreeBuilder-XPath
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.14
Release:	5

Summary:	Add XPath support to HTML::TreeBuilder

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/HTML-TreeBuilder-XPath-0.14.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::TreeBuilder)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(XML::XPathEngine)
# Some of these requirements were missing so we added them explicitly.
Requires:	perl(List::Util)
Requires:	perl(HTML::TreeBuilder)
Requires:	perl(HTML::TreeBuilder::XPath::Node)
Requires:	perl(Scalar::Util)
Requires:	perl(XML::XPathEngine)

BuildArch:	noarch

%description
This module adds typical XPath methods to HTML::TreeBuilder, to make it
easy to query a document.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4849 |21cr|perl-HTML-Widget-1.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-Widget
%define upstream_version 1.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	HTML Widget And Validation Framework

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Chained::Fast)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Class::Data::Accessor)
BuildRequires:	perl(Date::Calc)
BuildRequires:	perl(Email::Valid)
BuildRequires:	perl(HTML::Element) >= 3.22
BuildRequires:	perl(HTML::Scrubber)
BuildRequires:	perl(Module::Pluggable::Fast)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch
Requires:	perl(Module::Pluggable::Fast)
Requires:	perl(Class::Accessor::Chained::Fast)

%description
Create easy to maintain HTML widgets!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Disable for now as in fact tests pass, only extra new line in output makes them fail
#make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/HTML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4850 |21cr|perl-HTML-WikiConverter-0.680.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-WikiConverter
%define upstream_version 0.68

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	HTML-WikiConverter - An HTML to wiki markup converter

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(URI)
BuildRequires:	perl(HTML::Tree)
BuildRequires:	perl(CSS)
BuildRequires:	perl(Params::Validate)
BuildArch:	noarch

%description
HTML::WikiConverter is an HTML to wiki converter. It can convert HTML
source into a variety of wiki markups, called wiki "dialects".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Test is broken ATM because of test server being down
# make test

%install
%makeinstall_std

%files
%{_mandir}/*/*
%{_bindir}/*
%{perl_vendorlib}/HTML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4851 |21cr|perl-HTML-WikiConverter-Markdown-0.60.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-WikiConverter-Markdown
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Convert HTML to Markdown markup

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Tagset)
BuildRequires:	perl(HTML::WikiConverter)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildRequires:	perl(Test::Pod::Coverage) >= 1.04
BuildArch:	noarch

%description
This module contains rules for converting HTML into Markdown markup. You
should not use this module directly; HTML::WikiConverter is the entry point
for html->wiki conversion (eg, see synopsis above). See the
HTML::WikiConverter manpage for additional usage details.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4852 |21cr|perl-HTML-WikiConverter-MediaWiki-0.590.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       HTML-WikiConverter-MediaWiki
%define upstream_version    0.59

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Convert HTML to MediaWiki markup

Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		https://cpan.metacpan.org/authors/id/D/DI/DIBERRI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::WikiConverter)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
This module contains rules for converting HTML into MediaWiki markup. See
the HTML::WikiConverter manpage for additional usage details.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4853 |21cr|perl-HTTP-Body-1.220.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 HTTP-Body
%define upstream_version 1.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:	HTTP Body Parser

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTTP/HTTP-Body-%{upstream_version}.tar.gz

BuildRequires:  perl(HTTP::Headers)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(YAML)
BuildRequires:  perl-devel

BuildArch:	    noarch

%description
Perl module to parse HTTP request bodies.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README Changes META.yml LICENSE
%{perl_vendorlib}/HTTP/Body/*
%{perl_vendorlib}/HTTP/Body.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4854 |21cr|perl-HTTP-BrowserDetect-3.350.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTTP-BrowserDetect
%define upstream_version 3.35

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Determine the Web browser, version, and platform from an HTTP user agent string

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::FailWarnings)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(YAML::Tiny)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl-JSON-PP >= 4.04
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Hash::Merge)

BuildArch:	noarch

%description
The HTTP::BrowserDetect object does a number of tests on an HTTP user agent
string. The results of these tests are available via methods of the object.

This module is based upon the JavaScript browser detection code available at
http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
perl -pi -e 's/\015$//' README

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# This will produce a lot of noise.Symbianflo
make test

%install
%makeinstall_std
chmod -x %{buildroot}%{perl_vendorlib}/HTTP/BrowserDetect.pm

%files
%doc Changes META.json META.yml README.md
%{perl_vendorlib}/HTTP
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4855 |21cr|perl-HTTP-Cache-Transparent-1.400.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	HTTP-Cache-Transparent
%define upstream_version 1.4

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	A transparant caching implementation of http get

License:	GPL or Artistic
Group:		Development/Perl
Source:		http://search.cpan.org/CPAN/authors/id/M/MA/MATTIASH/HTTP-Cache-Transparent-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%module/

BuildRequires:	perl-devel
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(Test::RequiresInternet)
BuildArch:	noarch

%description
HTTP::Cache::Transparent is an implementation of http get that keeps a local
cache of fetched pages to avoid fetching the same data from the server
if it hasn't been updated. The cache is stored on disk and is thus
persistent between invocations.

The http-headers If-Modified-Since and ETag are used to let the server
decide if the version in the cache is up-to-date or not.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/HTTP/Cache/Transparent.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4856 |21cr|perl-HTTP-CookieJar-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-CookieJar
%define upstream_version 0.012

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Minimalist HTTP user agent cookie jar
Group:          Development/Perl
License:        ASL 2.0
URL:            https://metacpan.org/release/HTTP-CookieJar
Source0:        https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(Carp)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(HTTP::Date)
BuildRequires:  perl(HTTP::Request)
BuildRequires:  perl(HTTP::Response)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Mozilla::PublicSuffix)
BuildRequires:  perl(parent)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(Time::Local)
BuildRequires:  perl(URI)
BuildRequires:  perl(strict), perl(warnings)

Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This module implements a minimalist HTTP user agent cookie jar in
conformance with RFC 6265.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

find %{buildroot} -type f -name .packlist -exec rm -f {} \;

%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes CONTRIBUTING.mkdn LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4857 |21cr|perl-HTTP-CookieMonster-0.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-CookieMonster
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Easy read/write access to your jar of HTTP::
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Data::Serializer)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(HTTP::Cookies)
BuildRequires: perl(Module::Build) >= 0.360.100
BuildRequires: perl(Moo) >= 1.0.3
BuildRequires: perl(Safe::Isa)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Most)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch:  noarch

%description
Warning: this is BETA code which is still subject to change.

This module was created because messing around with the HTTP::Cookies
manpage is non-trivial. the HTTP::Cookies manpage a very useful module, but
using it is not always as easy and clean as it could be. For instance, if
you want to find a particular cookie, you can just ask for it by name.
Instead, you have to use a callback:

    $cookie_jar->scan( \&callback )

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README* examples
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4858 |21cr|perl-HTTP-Daemon-SSL-1.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTTP-Daemon-SSL
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A simple http server class with SSL support
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/A/AU/AUFFLICK/%{upstream_name}-%{upstream_version}.tar.gz
# default port could be in use by the sieve daemon (2000), so
# let's change it to something hopefully free so that make test
# works
Patch0:		HTTP-Daemon-SSL-1.01-sslport.patch

BuildRequires:	perl-devel
BuildRequires:	perl(HTTP::Daemon)
BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl-libwww-perl
BuildArch:	noarch

%description
HTTP::Daemon::SSL is a descendant of HTTP::Daemon that uses SSL
sockets (via IO::Socket::SSL) instead of cleartext sockets. It
also handles SSL-specific problems, such as dealing with HTTP
clients that attempt to connect to it without using SSL.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# %check
# make test

%install
%makeinstall_std

%files
%doc certs Changes BUGS README
%{perl_vendorlib}/HTTP
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4859 |21cr|perl-HTTP-DAV-0.490.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-DAV
%define upstream_version 0.49

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A WebDAV client library for Perl5

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-libwww-perl
BuildRequires:	perl(XML::DOM)
BuildRequires:	perl(MD5)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
PerlDAV is a Perl library for modifying content on webservers using the WebDAV
protocol. Now you can LOCK, DELETE and PUT files and much more on a DAV-enabled
webserver.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# fix attribs
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# requires a "test server"...
#make test TEST_VERBOSE=1

%install
%makeinstall_std

%files
%doc Changes README TODO doc/*
%{_bindir}/dave
%{_mandir}/*/*
%{perl_vendorlib}/HTTP

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4860 |21cr|perl-HTTP-Entity-Parser-0.250.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Entity-Parser
%define upstream_version 0.25

Name:		perl-HTTP-Entity-Parser
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	PSGI compliant HTTP Entity Parser
Group:		Development/Perl
License:	GPL+ or Artistic
URL:		https://metacpan.org/release/HTTP-Entity-Parser
Source0:	https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/HTTP-Entity-Parser-%{upstream_version}.tar.gz

BuildArch:	noarch

BuildRequires:  perl-devel
BuildRequires:  perl(Carp)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Encode)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Hash::MultiValue)
BuildRequires:  perl(HTTP::Headers)
BuildRequires:  perl(HTTP::Message) >= 6
BuildRequires:  perl(HTTP::MultiPartParser)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(JSON::MaybeXS) >= 1.3.7
BuildRequires:  perl(Module::Build::Tiny) >= 0.035
BuildRequires:  perl(Module::Load)
BuildRequires:  perl(Stream::Buffered)
BuildRequires:  perl(Test::More) >= 0.98
BuildRequires:  perl(WWW::Form::UrlEncoded) >= 0.23

BuildRequires:  perl(base)
BuildRequires:  perl(strict)
BuildRequires:  perl(utf8)
BuildRequires:  perl(warnings)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
HTTP::Entity::Parser is a PSGI-compliant HTTP Entity parser. This module
also is compatible with HTTP::Body. Unlike HTTP::Body, HTTP::Entity::Parser
reads HTTP entities from PSGI's environment $env->{'psgi.input'} and parses
it. This module supports application/x-www-form-urlencoded, multipart/form-
data and application/json.

%files
%doc Changes README.md eg/
%license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*

#--------------------------------------------------------------
%prep
%setup -q -n HTTP-Entity-Parser-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot} --create_packlist=0

%{_fixperms} %{buildroot}/*

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4861 |21cr|perl-HTTP-Exception-0.40.70-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Exception
%define upstream_version 0.04007

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Throw HTTP-Errors as Exceptions

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exception::Class) >= 1.290.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(HTTP::Status) >= 5.817.0
BuildRequires: perl(Scalar::Util) >= 1.220.0
BuildRequires: perl(Test::Exception) >= 0.290.0
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Test::NoWarnings) >= 1.40.0
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
Every HTTP::Exception is a L<Exception::Class> - Class. So the same
mechanisms apply as with L<Exception::Class>-classes. In fact have a look
at L<Exception::Class>' docs for more general information on exceptions and
L<Exception::Class::Base> for information on what methods a caught
exception also has.

HTTP::Exception is only a factory for HTTP::Exception::XXX (where X is a
number) subclasses. That means that HTTP::Exception->new(404) returns a
HTTP::Exception::404 object, which in turn is a HTTP::Exception::Base -
Object.

Don't bother checking a caught HTTP::Exception::...-class with "isa" as it
might not contain what you would expect. Use the code- or
status_message-attributes and the is_ -methods instead.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes INSTALL LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4862 |21cr|perl-HTTP-Headers-Fast-0.200.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Headers-Fast
%define upstream_version 0.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Faster implementation of HTTP::Headers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Filter::Util::Call)
BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(YAML)
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.16.0

BuildArch:	noarch

%description
HTTP::Headers::Fast is a perl class for parsing/writing HTTP headers.

The interface is the same as HTTP::Headers.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc  META.yml META.json Changes LICENSE README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4863 |21cr|perl-HTTP-Headers-Fast-0.220.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Headers-Fast
%define upstream_version 0.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Faster implementation of HTTP::Headers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TO/TOKUHIROM/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Filter::Util::Call)
BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(YAML)
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.16.0

BuildArch:	noarch

%description
HTTP::Headers::Fast is a perl class for parsing/writing HTTP headers.

The interface is the same as HTTP::Headers.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}
%{_fixperms} %{buildroot}/*

%files
%doc  META.yml META.json Changes LICENSE README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4864 |21cr|perl-HTTP-Lite-2.440.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Lite
%define upstream_version 2.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Lightweight HTTP implementation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(CGI)
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(Socket)


BuildArch:	noarch

%description
HTTP::Lite is a stand-alone lightweight HTTP/1.1 implementation
for perl.  It is not intended as a replacement for the
fully-features LWP module.  Instead, it is intended for use in
situations where it is desirable to install the minimal number of
modules to achieve HTTP support, or where LWP is not a good
candidate due to CPU overhead, such as slower processors.
HTTP::Lite is also significantly faster than LWP.

HTTP::Lite is ideal for CGI (or mod_perl) programs or for bundling
for redistribution with larger packages where only HTTP GET and
POST functionality are necessary.

HTTP::Lite supports basic POST and GET operations only.  As of
0.2.1, HTTP::Lite supports HTTP/1.1 and is compliant with the Host
header, necessary for name based virtual hosting.  Additionally,
HTTP::Lite now supports Proxies.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README META.json META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4865 |21cr|perl-HTTP-MultiPartParser-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-MultiPartParser
%define upstream_version 0.02

Name:           perl-HTTP-MultiPartParser
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        HTTP MultiPart Parser
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/HTTP-MultiPartParser
Source0:        https://cpan.metacpan.org/authors/id/C/CH/CHANSEN/HTTP-MultiPartParser-%{upstream_version}.tar.gz

BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter >= 1:5.8.1

BuildRequires:  perl(Carp)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(FindBin)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Deep)

BuildRequires:  perl(lib)
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)

BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(Module::Install::ReadmeFromPod)

BuildRequires:  %{__make}

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This class provides a low-level API for processing MultiPart MIME data
streams conforming to MultiPart types as defined in RFC 2616.

%files
%doc Changes README eg/
%{perl_vendorlib}/*
%{_mandir}/man3/*

#-------------------------------------------------------------------
%prep
%setup -q -n HTTP-MultiPartParser-%{upstream_version}
%{__rm} -rf inc

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%{__make} %{?_smp_mflags}

%install
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}

%{_fixperms} %{buildroot}/*

%check
%{__make} test



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4866 |21cr|perl-HTTP-Parser-0.60.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Parser
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Parse HTTP/1.1 request into HTTP::Request/Response object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
This is an HTTP request parser. It takes chunks of text as received and
returns a 'hint' as to what is required, or returns the HTTP::Request when
a complete request has been read. HTTP/1.1 chunking is supported. It dies
if it finds an error.

new ( named params... )
    Create a new HTTP::Parser object. Takes named parameters, e.g.:

     my $parser = HTTP::Parser->new(request => 1);

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4867 |21cr|perl-HTTP-Parser-XS-0.170.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Parser-XS
%define upstream_version 0.17
%global __provides_exclude XS.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    A fast, primitive HTTP request parser


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl-devel


%description
HTTP::Parser::XS is a fast, primitive HTTP request/response parser.

The request parser can be used either for writing a synchronous HTTP server
or a event-driven server.

The response parser can be used for writing HTTP clients.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4868 |21cr|perl-HTTP-Proxy-0.304.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Proxy
%define upstream_version 0.304

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    An internal filter to respect RFC2616
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/B/BO/BOOK/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel
BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(Exporter) >= 5.720.0
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(HTTP::Daemon)
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(HTTP::Headers)
BuildRequires: perl(HTTP::Headers::Util)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Select)
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(LWP::ConnCache)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(POSIX)
BuildRequires: perl(Socket)
BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(base)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl(HTML::Parser)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::CPAN::Meta) >= 0.250.0
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0



BuildArch: noarch

%description
This module implements an HTTP proxy, using an the HTTP::Daemon manpage to
accept client connections, and an the LWP::UserAgent manpage to ask for the
requested pages.

The most interesting feature of this proxy object is its ability to filter
the HTTP requests and responses through user-defined filters.

Once the proxy is created, with the 'new()' method, it is possible to alter
its behaviour by adding so-called "filters." This is done by the
'push_filter()' method. Once the filter is ready to run, it can be
launched, with the 'start()' method. This method does not normally return
until the proxy is killed or otherwise stopped.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

# need connection
rm t/90httpstatus.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4869 |21cr|perl-HTTP-Recorder-0.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTTP-Recorder
%define upstream_version 0.07
%define oname httprecorder


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Record interaction with websites

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SE/SEMUELF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTTP::Request::Params)
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(URI)
BuildRequires:	perl(Email::Simple)
BuildRequires:	perl(Class::Accessor::Fast)
BuildArch:	noarch

%description
This is a browser-independent recorder for recording interactions with
web sites.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.yml META.json CHANGES
%{_bindir}/%{oname}
%{perl_vendorlib}/HTTP
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4870 |21cr|perl-HTTP-Request-AsCGI-1.200.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 HTTP-Request-AsCGI
%define upstream_version 1.2

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:	Setup a CGI enviroment from a HTTP::Request

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

# http://search.cpan.org/src/CHANSEN/HTTP-Request-AsCGI-0.5/META.yml:
#     HTTP::Response:                1.53
# http://search.cpan.org/src/GAAS/libwww-perl-5.804/lib/HTTP/Response.pm = 1.52
BuildRequires:	perl(Carp)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Response) >= 1.530.0
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-libwww-perl >= 5.805.0
BuildRequires:	perl-devel

BuildArch:	noarch

Requires:	perl(Class::Accessor)

%description
This module provides a convenient way of setting up an CGI enviroment
from an HTTP::Request object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README Changes examples
%{perl_vendorlib}/HTTP
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4871 |21cr|perl-HTTP-Request-Params-1.20.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTTP-Request-Params
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Retrieve GET/POST Parameters from HTTP Requests

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(CGI) >= 3.0.0
BuildRequires:	perl(Class::Accessor::Fast) >= 0.190.0
BuildRequires:	perl(Email::MIME::ContentType) >= 1.0.0
BuildRequires:	perl(Email::MIME::Modifier) >= 1.420.0
BuildRequires:	perl(LWP::MediaTypes)
BuildRequires:	perl(HTTP::Request) >= 1.400.0
BuildRequires:	perl(HTTP::Request::Common) >= 1.260.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More)

Requires:	perl(Class::Accessor::Fast)

BuildArch:	noarch

%description
This software does all the dirty work of parsing HTTP Requests to find incoming
query parameters.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json
%{perl_vendorlib}/HTTP
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4872 |21cr|perl-HTTP-Server-Simple-Authen-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Server-Simple-Authen
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Authentication plugin for HTTP::Server::Simple
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Authen::Simple)
BuildRequires:	perl(HTTP::Server::Simple)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
HTTP::Server::Simple::Authen is an HTTP::Server::Simple plugin to allow
HTTP authentication. Authentication scheme is pluggable and you can use
whatever Authentication protocol that Authen::Simple supports.

You can use 'authenticate' method whatever you want to authenticate the
request. The method returns '$username' taken from the request if the
authentication is successful, and 'undef' otherwise. The code in the
/SYNOPSIS manpage requires authentication for all the requests and behaves
just the same as Apache's 'Require valid-user'.

The following code will explain more about conditioning.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4873 |21cr|perl-HTTP-Server-Simple-Mason-0.140.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Server-Simple-Mason
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Module for an abstract baseclass for a standalone mason server

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JE/JESSE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Mason)
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(HTTP::Server::Simple)
BuildRequires:	perl(Hook::LexWrap)
BuildArch:	noarch

%description
Perl module that contains a abstract baseclass for a standalone mason server.
This is based on HTTP::Server::Simple.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4874 |21cr|perl-HTTP-Server-Simple-PSGI-0.160.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Server-Simple-PSGI
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	PSGI handler for HTTP::Server::Simple

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/HTTP-Server-Simple-PSGI-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTTP::Server::Simple)
BuildArch:	noarch

%description
HTTP::Server::Simple::PSGI is a HTTP::Server::Simple based HTTP server that
can run PSGI applications. This module only depends on the
HTTP::Server::Simple manpage, which itself doesn't depend on any non-core
modules so it's best to be used as an embedded web server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4875 |21cr|perl-HTTP-SimpleLinkChecker-1.168.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name HTTP-SimpleLinkChecker
%define upstream_version 1.168

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	HTTP::SimpleLinkChecker - Check the HTTP response code for a link

License:	GPLv1+ or Artistic
Group:		Development/Perl
Url:		https://github.com/briandfoy/http-simplelinkchecker
Source0:	http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Mojo::UserAgent)
BuildArch:	noarch

%description
You don't have to know anything about objected-oriented Perl, LWP, or
the HTTP module to be able to check your links. This module is
designed for the casual user. It has one function, C<check_link>, that
returns the HTTP response code that it receives when it tries to fetch
the web address passed to it. The undef value is returned for any
non-HTTP failure and the C<$HTTP::SimpleLinkChecker::ERROR> variable
is set.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# need internet connection
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE
%{_bindir}/http_status
%{perl_vendorlib}/HTTP/SimpleLinkChecker.pm
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4876 |21cr|perl-I18N-Charset-1.419.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	I18N-Charset
%define upstream_version 1.419

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	IANA Character Set Registry names and Unicode::MapUTF8

License:	GPL+ or Artistic
Group:		Development/Perl
Source:		http://search.cpan.org/CPAN/authors/id/M/MT/MTHURN/I18N-Charset-%{upstream_version}.tar.gz
URL:		http://search.cpan.org/dist/%{upstream_name}

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.38.0
BuildRequires:	perl(IO::Capture::Stderr)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(App::Info::Lib::Iconv)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Jcode)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Unicode::Map)
BuildRequires:	perl(Unicode::Map8)
BuildRequires:	perl(Unicode::MapUTF8)

BuildArch:	noarch

%description
This distribution contains a module I18N::Charset which maps Character
Set names to the names officially registered with IANA.  For example,
'Shift_JIS' is the official name of what is often referred to in HTML
headers as 'x-sjis'.

It also maps character set names to Unicode::Map, Unicode::Map8, and
Unicode::MapUTF8 conversion scheme names (if those modules are
installed).  For example, the Unicode::Map8 scheme name for
'windows-1251' is 'cp1251'.

It also maps character set names to their preferred MIME names.  For
example, the preferred MIME name for 'ISO_646.irv:1991' is 'US-ASCII'.

It also maps character set names to conversion scheme names as defined
by the iconv library.  For example, the iconv conversion scheme name
for 'Shift_JIS' is 'MS_KANJI'.

It also maps character set names to encoding names as defined
by the Encode module.  For example, the Encode encoding name
for 'Shift_JIS' is 'shiftjis'.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 
iconv -f iso8859-1 -t utf-8 Changes > Changes.conv && mv -f Changes.conv Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{perl_vendorlib}/I18N
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4877 |21cr|perl-Ima-DBI-0.350.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Ima-DBI
%define upstream_version 0.35

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	8
Summary:	Database connection caching and organization

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://search.cpan.org/CPAN/authors/id/T/TM/TMTM/%{module}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBIx::ContextualFetch)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(DBI)
BuildArch:	noarch

%description
Ima::DBI attempts to organize and facilitate caching and more efficient use of
database connections and statement handles by storing DBI and SQL information
with your class (instead of as separate objects). This allows you to pass
around just one object without worrying about a trail of DBI handles behind it.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes README
%{perl_vendorlib}/Ima
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4878 |21cr|perl-Image-Base-1.170.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Image-Base
%define upstream_version 1.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Base class for loading, manipulating and saving images

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/K/KR/KRYDE/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test)

BuildArch:	noarch

%description
This class should not be used directly. Known inheritors are Image::Xbm and
Image::Xpm.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Image
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4879 |21cr|perl-Image-Imlib2-2.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Image-Imlib2
%define upstream_version 2.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    Interface to the Imlib2 image library

License:    GPL+ or Artistic
Group:      Development/Perl
URL:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Image/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:  imlib2-devel
Buildrequires:  perl(Module::Build)
Buildrequires:  perl(ExtUtils::CBuilder)
Buildrequires:  perl(ExtUtils::XSBuilder)
Buildrequires:  perl-devel

%description
Image::Imlib2 is a Perl port of Imlib2, a graphics library that does image file
loading and saving as well as manipulation, arbitrary polygon support, etc. It
does ALL of these operations FAST. It allows you to create colour images using
a large number of graphics primitives, and output the images in a range of
formats.

Image::Imlib2::Polygon and Image::Imlib2::ColorRange are described following
Image::Imlib2 but may be referenced before their description.

Note that this is an early version of my attempt at a Perl interface to Imlib2.
Currently, the API is just to test things out. Not everything is supported, but
a great deal of functionality already exists. If you think the API can be
tweaked to be a bit more intuitive, drop me a line!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc CHANGES README
%{perl_vendorarch}/auto/Image
%{perl_vendorarch}/Image
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4880 |21cr|perl-Image-Info-1.420.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Image-Info
%define upstream_version 1.42

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Extract meta information from image files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SR/SREZIC/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::Pod::Coverage)


BuildArch:	noarch

%description
Extract meta information from image files.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README CHANGES CREDITS META.json META.yml
%{perl_vendorlib}/Image
%{perl_vendorlib}/Bundle/Image
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4881 |21cr|perl-Image-Math-Constrain-1.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Image-Math-Constrain
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Scaling math used in image size constraining (such

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Image/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
There are a number of different modules and systems that constrain image
sizes, such as thumbnailing. Every one of these independantly implement the
same logic. That is, given a width and/or height constraint, they check to
see if the image is bigger than the constraint, and if so scale the image
down proportionally so that it fits withint the constraints.

Of course, they all do it slightly differnetly, and some do it better than
others.

'Image::Math::Constrain' has been created specifically to implement this
logic once, and implement it properly. Any module or script that does image
size constraining or thumbnailing should probably be using this for its
math.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4882 |21cr|perl-Image-Math-Constrain-1.20.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Image-Math-Constrain
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Scaling math used in image size constraining (such

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Image/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
There are a number of different modules and systems that constrain image
sizes, such as thumbnailing. Every one of these independantly implement the
same logic. That is, given a width and/or height constraint, they check to
see if the image is bigger than the constraint, and if so scale the image
down proportionally so that it fits withint the constraints.

Of course, they all do it slightly differnetly, and some do it better than
others.

'Image::Math::Constrain' has been created specifically to implement this
logic once, and implement it properly. Any module or script that does image
size constraining or thumbnailing should probably be using this for its
math.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4883 |21cr|perl-Image-PNG-Libpng-0.57-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-Image-PNG-Libpng
Version:        0.57
Release:        1
Summary:        Perl interface to the libpng library
Group:          Development/Perl
# lib/Image/PNG/Const.pm:   GPL+ or Artistic
# lib/Image/PNG/Libpng.pod: GPL+ or Artistic
## Not in any binary package
# Makefile.PL:              GPL+ or Artistic
# repackage.sh:             GPLv2+
# t/libpng/PngSuite.LICENSE:    FSFUL-like (contrib/pngsuite bundled from libpng)
## Stripped from the source archive
# examples/life.png:        CC-BY-NC-2.5
# examples/life-gray.png:   CC-BY-NC-2.5
# t/emoticon.png:           CC-BY-NC-2.5
# t/tantei-san.png:         "I don't have permission to disseminate it."
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Image-PNG-Libpng
# Original archive from
# <https://cpan.metacpan.org/authors/id/B/BK/BKB/Image-PNG-Libpng-%%{version}.tar.gz>
# contains files with a bad license. They were stripped with ./repackage.sh
# script. <https://github.com/benkasminbullock/image-png-libpng/issues/36>.
Source0:        Image-PNG-Libpng-%{version}_repackaged.tar.gz
Source1:        repackage.sh
# Adapt tests to the stripped source archive. Not suitable for an upstream.
# <https://github.com/benkasminbullock/image-png-libpng/issues/36>.
Patch0:         Image-PNG-Libpng-0.57-Remove-tests-depending-on-proprietary-files.patch
BuildRequires:  coreutils
BuildRequires:  findutils
# git-core for a binary Image-PNG-Libpng-0.57-Remove-tests-depending-on-proprietary-files.patch
BuildRequires:  git-core
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::Constant)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(FindBin)
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(utf8)
BuildRequires:  pkgconfig(libpng)

# Remove private modules
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(IPNGLT\\)|^/home/ben/software/install/bin/perl|perl\\(Deploy\\)
%global __provides_exclude %{?__provides_exclude:%{__provides_exclude}|}^perl\\(IPNGLT\\)

%description
Image::PNG::Libpng is a Perl library for accessing the contents of PNG
(Portable Network Graphics) images. It enables Perl to read and write files in
the PNG format.

%files
%doc Changes
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Image*
%{_mandir}/man3/*

#-------------------------------------------------------------------------
%package tools
Summary:	Tools for inspecting PNG images
Group:		Development/Perl
BuildArch:	noarch
Requires:	%{name} = %{EVRD}
Suggests:	perl(Data::Validate::URI)
Suggests:	perl(JSON::Create)
Suggests:	perl(LWP::Simple)

%description tools
pnginspect tool prints a text representation of the data within a PNG image
file to standard output. If you have Data::Validate::URI and LWP::Simple
installed, you can also use it to examine PNG files on the web.

%files tools
%{_bindir}/pnginspect
%{_mandir}/man1/pnginspect.*

#-------------------------------------------------------------------------

%prep
%autosetup -S git -n Image-PNG-Libpng-%{version}

%build
perl Makefile.PL --check INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
%make_build

%install
%make_install
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4884 |21cr|perl-Imager-1.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Imager
%define upstream_version 1.018
%global __provides_exclude Imager.so|ICO.so|DynTest.so|FT2.so|SGI.so|Mandelbrot.so|JPEG.so|TIFF.so|T1.so|PNG.so|Flines.so|GIF.so|CountColor.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl extension for generating 24 bit images

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Imager/Imager-%{upstream_version}.tar.gz

BuildRequires:  fontconfig-devel
BuildRequires:  jpeg-devel
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(libtiff-4)
BuildRequires:  perl-devel
BuildRequires:  t1lib-devel
BuildRequires:  ungif-devel
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  rgb
BuildRequires:  perl
BuildRequires:  perl(bignum)
BuildRequires:  perl(Config)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::Liblist)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(ExtUtils::Manifest)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(strict)
BuildRequires:  perl(Text::ParseWords)
BuildRequires:  perl(vars)
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(constant)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(IO::Seekable)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(XSLoader)
BuildRequires:  perl(B)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Test::Builder)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(threads)
BuildRequires:  perl(Tie::Handle)
BuildRequires:  perl(Affix::Infix2Postfix)
BuildRequires:  perl(Image::Math::Constrain)
BuildRequires:  perl(Inline)
BuildRequires:  perl(Parse::RecDescent)
BuildRequires:  perl(JSON::PP)
Requires:	%{name}-devel = %{EVRD}
Obsoletes:	%{name} < %{EVRD}

%description
Imager is a module for creating and altering images. It can read and write
various image formats, draw primitive shapes like lines,and polygons, blend
multiple images together in various ways, scale, crop, render text and more.

%files
%doc README Changes META.json META.yml
%{perl_vendorarch}/Imager.pm
%{perl_vendorarch}/Imager/Color/
%{perl_vendorarch}/Imager/Expr/
%{perl_vendorarch}/Imager/File/
%{perl_vendorarch}/Imager/Filter/
%{perl_vendorarch}/Imager/Font/
%{perl_vendorarch}/Imager/typemap
%{perl_vendorarch}/Imager/*.pod
%{perl_vendorarch}/Imager/*.pm
%{perl_vendorarch}/auto/Imager
%{_mandir}/*/*
#---------------------------------------------------------
# Let's make rpmlint happy.Symbianflo

%package devel

Group:		Development/Perl
Summary:	Headers for %{name}

%description devel
Headers for %{name}

%files devel
%doc README Changes META.json META.yml
%{perl_vendorarch}/Imager/include/

#--------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find \( -executable -a -type f \) -exec chmod -x {} \;
sed -i -e "s,#!perl,#! %{__perl}," samples/*


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4885 |21cr|perl-Image-Resize-0.500.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Image-Resize
%define upstream_version 0.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Simple image resizer using GD

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Image/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(GD)

BuildArch:	noarch

%description
Despite its heavy weight, I've always used Image::Magick for creating image
thumbnails. I know it can be done using lighter-weight GD, I just never
liked its syntax. Really, who wants to remember the lengthy arguments list
of copyResized() or copyResampled() functions:

    $image->copyResampled($sourceImage,$dstX,$dstY,
                        $srcX,$srcY,$destW,$destH,$srcW,$srcH);

when Image::Magick lets me say:

    $image->Scale(-geometry=>'250x250');

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4886 |21cr|perl-Image-Sane-5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           perl-Image-Sane
Version:        5
Release:        1
Summary:        Perl extension for the SANE (Scanner Access Now Easy) Project
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Image-Sane
Source0:        https://cpan.metacpan.org/authors/id/R/RA/RATCLIFFE/Image-Sane-%{version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::Depends)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(ExtUtils::PkgConfig)
BuildRequires:  pkgconfig(sane-backends) >= 1.0.19
# Run-time:
BuildRequires:  perl(Exception::Class)
BuildRequires:  perl(XSLoader)

%description
These Perl bindings for the SANE (Scanner Access Now Easy) Project allow
you to access SANE-compatible scanners in a Perlish and object-oriented
way, freeing you from the casting and memory management in C, yet remaining
very close in spirit to original API.

%files
%doc Changes examples README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Image*
%{_mandir}/man3/*

#--------------------------------------------------------------------------
%prep
%setup -q -n Image-Sane-%{version}
chmod -x examples/*

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="$RPM_OPT_FLAGS"
%make_build

%install
%make_install
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4887 |21cr|perl-Image-Xbm-1.100.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Image-Xbm
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Load, create, manipulate and save xbm image files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SR/SREZIC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Image::Base)
BuildArch:	noarch

%description
This class module provides basic load, manipulate and save functionality for
the xbm file format. It inherits from Image::Base which provides additional
manipulation functionality, e.g. new_from_image(). See the Image::Base pod for
information on adding your own functionality to all the Image::Base derived
classes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Image
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4888 |21cr|perl-Image-Xpm-1.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Image-Xpm
%define upstream_version 1.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Load, create, manipulate and save xpm image files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SR/SREZIC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Image::Base)
BuildArch:	noarch

%description
This class module provides basic load, manipulate and save functionality for
the xpm file format. It inherits from Image::Base which provides additional
manipulation functionality, e.g. new_from_image(). See the Image::Base pod for
information on adding your own functionality to all the Image::Base derived
classes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Image
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4889 |21cr|perl-IMAP-Admin-1.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IMAP-Admin
%define upstream_version 1.6.8

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	IMAP-Admin Perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/IMAP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
A perl module to manage IMAP servers.

%prep
%setup -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%files
%doc Changes examples
%defattr(-, root, root)
%{perl_vendorlib}/IMAP/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4890 |21cr|perl-IMDB-Film-0.530.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name IMDB-Film
%define upstream_version 0.53

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.53
Release:	5

Summary:	OO Perl interface to the database of films IMDB

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/S/ST/STEPANOV/IMDB-Film-0.53.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cache::FileCache)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Error)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::TokeParser)
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(Pod::Checker)
BuildRequires:	perl(Text::Unidecode)
BuildArch:	noarch

%description
IMDB::Film is OO Perl interface to the database of films
IMDB (www.imdb.com). It allows to retrieve information
about movies by its IMDB code or title. Also, there is a 
possibility to get information about IMDB persons (actors,
actresses, directors etc) by their name of code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%install
%makeinstall_std

%files
%doc README ChangeLog Todo
%{perl_vendorlib}/IMDB
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4891 |21cr|perlindex-1.606.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    perlindex
%define upstream_version 1.606

Name:		%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	English language stemming

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This routine applies the Porter Stemming Algorithm to its parameters,
returning the stemmed words. It is derived from the C program "stemmer.c"
as found in freewais and elsewhere, which contains these notes:

   Purpose:    Implementation of the Porter stemming algorithm documented 
               in: Porter, M.F., "An Algorithm For Suffix Stripping," 
               Program 14 (3), July 1980, pp. 130-137.
   Provenance: Written by B. Frakes and C. Cox, 1986.

I have re-interpreted areas that use Frakes and Cox's "WordSize" function.
My version may misbehave on short words starting with "y", but I can't
think of any examples.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog META.yml README
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4892 |21cr|perl-indirect-0.390.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name indirect
%define upstream_version 0.39

Summary:	Lexically warn about using the indirect object syntax
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/indirect/
Source0:	https://search.cpan.org/CPAN/authors/id/V/VP/VPIT/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Config)
BuildRequires:	perl(Devel::CallParser)
BuildRequires:	perl(Devel::Declare)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(threads::shared)
BuildRequires:	perl(warnings)
Requires:	perl(Carp)
Requires:	perl(XSLoader)
Provides:	perl(indirect) = %{version}

%description
When enabled (or disabled as some may prefer to say, since you actually
turn it on by calling no indirect), this pragma warns about indirect object
syntax constructs that may have slipped into your code.

%files
%doc Changes README samples/
%{perl_vendorarch}/auto/indirect/
%{perl_vendorarch}/indirect.pm
%{_mandir}/man3/indirect.3*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4893 |21cr|perl-Inline-C-0.810.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Inline-C
%define upstream_version 0.81

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    The Classic Inline::C Parser
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Inline/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Copy::Recursive)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::All)
BuildRequires: perl(Inline)
BuildRequires: perl(Parse::RecDescent)
BuildRequires: perl(Pegex)
BuildRequires: perl(File::ShareDir::Install)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Warn)
BuildRequires: perl(YAML::XS)
BuildRequires: perl(autodie)
BuildRequires: perl(version)
BuildRequires: perl-devel

BuildArch: noarch

%description
'Inline::C' is a module that allows you to write Perl subroutines in C.
Since version 0.30 the Inline module supports multiple programming
languages and each language has its own support module. This document
describes how to use Inline with the C programming language. It also goes a
bit into Perl C internals.

If you want to start working with programming examples right away, check
out the Inline::C::Cookbook manpage. For more information on Inline in
general, see the Inline manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README Changes META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4894 |21cr|perl-Inline-Python-0.560.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Inline-Python
%define upstream_version 0.56
%global __provides_exclude Python.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Easy implementation of Python extensions

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/authors/id/N/NI/NINE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CGI)
BuildRequires: perl(Inline)
BuildRequires: perl(Test)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Number::Delta)
BuildRequires: perl(Proc::ProcessTable)
BuildRequires: perl-devel
BuildRequires: pkgconfig(python3)

%description
The 'Inline::Python' module allows you to put Python source code directly
"inline" in a Perl script or module. It sets up an in-process Python
interpreter, runs your code, and then examines Python's symbol table for
things to bind to Perl. The process of interrogating the Python interpreter
for globals only occurs the first time you run your Python code. The
namespace is cached, and subsequent calls use the cached version.

This document describes 'Inline::Python', the Perl package which gives you
access to a Python interpreter. For lack of a better place to keep it, it
also gives you instructions on how to use 'perlmodule', the Python package
which gives you access to the Perl interpreter.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# local test OK, abf test fail
rm t/35dictunicodememleak.t
%make test

%install
%makeinstall_std


%files
%doc README Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/Inline
%{perl_vendorarch}/auto/Inline

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4895 |21cr|perl-Internals-1.100.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Internals
%define upstream_version 1.1

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	8

Summary:    Write-protect variables, manipulate refcounts

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/S/ST/STBEY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel

%description
This module allows you to write-protect and write-enable your Perl
variables, objects and data structures.

Moreover, the reference count of any Perl variable can be read and set.

You can never pass the object directly on which to perform the desired
action, you always have to pass a reference to the variable or data
structure in question.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README.txt Artistic.txt GNU_GPL.txt CHANGES.txt
%{_mandir}/man3/*
%{perl_vendorarch}/Internals.pm
%{perl_vendorarch}/auto/Internals

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4896 |21cr|perl-IO-All-0.870.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 IO-All
%define upstream_version 0.87

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Magic all-in-one IO class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/F/FR/FREW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::String)
BuildRequires:	perl(File::ReadBackwards)
BuildRequires:	perl(MLDBM)
BuildArch:	noarch

%description
IO::All combines all of the best Perl IO modules into a single Spiffy object
oriented interface to greatly simplify your everyday Perl IO idioms. It exports
a single function called io, which returns a new IO::All object. And that
object can do it all!

%prep
%setup -qn %{upstream_name}-%{upstream_version}



%build
perl Makefile.PL INSTALLDIRS=vendor
%make 

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man*/*
%{perl_vendorlib}/IO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4897 |21cr|perl-IO-BufferedSelect-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-BufferedSelect
%define upstream_version 1.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Line-buffered select interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The 'select' system call (and the 'IO::Select' interface) allows us to
process multiple streams simultaneously, blocking until one or more of them
is ready for reading or writing. Unfortunately, this requires us to use
'sysread' and 'syswrite' rather than Perl's buffered I/O functions. In the
case of reading, there are two issues with combining 'select' with
'readline': (1) 'select' might block but the data we want is already in
Perl's input buffer, ready to be slurped in by 'readline'; and (2) 'select'
might indicate that data is available, but 'readline' will block because
there isn't a full '$/'-terminated line available.

The purpose of this module is to implement a buffered version of the
'select' interface that operates on _lines_, rather than characters. Given
a set of filehandles, it will block until a full line is available on one
or more of them.

Note that this module is currently limited, in that (1) it only does
'select' for readability, not writability or exceptions; and (2) it does
not support arbitrary line separators ('$/'): lines must be delimited by
newlines.

%prep
%setup -q -n %{upstream_name}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4898 |21cr|perl-IO-Capture-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Capture
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	IO::Capture- Abstract Base Class to build modules to capture output

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The IO::Capture Module defines an abstract base class that can be
used to create any number of useful sub-classes that capture
output being sent on a filehandle such as STDOUT or STDERR.

Several modules come with the distribution that define subclasses
of IO::Capture to do just that. (I.e., capture STDOUT and STDERR)
See the man page IO::Capture::Overview for a discussion of these
modules and how to build a module to sub-class the B<IO::Capture>
class yourself.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes
%dir %{perl_vendorlib}/IO/Capture
%{perl_vendorlib}/IO/Capture.pm
%{perl_vendorlib}/IO/Capture/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4899 |21cr|perl-IO-Capture-Extended-0.130.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Capture-Extended
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	IO::Capture::Extended - Extend functionality of IO::Capture

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/J/JK/JKEENAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Capture)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::Simple)

BuildArch:	noarch

%description
IO::Capture::Extended is a distribution consisting of two
classes, each of which is a collection of subroutines which are
useful in extending the functionality of CPAN modules 
IO::Capture::Stdout and IO::Capture::Stderr, particularly when
used in a testing context such as that provided by Test::Simple,
Test::More or other modules built on Test::Builder.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make
%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README.*
%dir %{perl_vendorlib}/IO/Capture/Stdout
%dir %{perl_vendorlib}/IO/Capture/Extended
%dir %{perl_vendorlib}/IO/Capture/Stderr
%{perl_vendorlib}/IO/Capture/Extended.pm
%{perl_vendorlib}/IO/Capture/Stdout/*pm
%{perl_vendorlib}/IO/Capture/Extended/*pm
%{perl_vendorlib}/IO/Capture/Stderr/*pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4900 |21cr|perl-IO-CaptureOutput-1.110.500-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-CaptureOutput
%define upstream_version 1.1105

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1

Summary:	Capture STDOUT and STDERR from Perl code, subprocesses or XS

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Carp)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Symbol)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
This module provides routines for capturing STDOUT and STDERR from perl
subroutines, forked system calls (e.g. 'system()', 'fork()') and from XS or
C modules.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4901 |21cr|perl-IO-Compress-Lzf-2.84.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 IO-Compress-Lzf
%define upstream_version 2.084

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	IO::Compress::Lzf - Write lzf files/buffers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/P/PM/PMQS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Compress::LZF)
BuildRequires:	perl(IO::Compress::Base) >= %{version}
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module provides a Perl interface that allows writing lzf compressed data
to files or buffer.

Note that although this module uses Compress::LZF for compression, it uses a
different file format. The lzf file format used here is the same as the lzf
command-line utility that ships with the lzf library.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4902 |21cr|perl-IO-Compress-Lzma-2.84.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	IO-Compress-Lzma
%define upstream_version 2.084
%bcond_with	long_tests

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Read and write lzma compressed data

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}/
Source0:	http://www.cpan.org/authors/id/P/PM/PMQS/IO-Compress-Lzma-%{upstream_version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Compress::Raw::Lzma) >= %{version}
BuildRequires:	perl(IO::Compress::Base) >= %{version}
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Test::Pod)
BuildRequires:	pkgconfig(liblzma)

%description
This distribution provides a Perl interface to allow reading and writing of
compressed data created with the lzma library.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
# Build using "--without long_tests" to avoid very long tests
# (full suite can take nearly an hour on an i7)
make test %{with long_tests:COMPRESS_ZLIB_RUN_ALL=1}

%files
%doc Changes README
%{perl_vendorlib}/IO/
%{_mandir}/man3/IO::*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4903 |21cr|perl-IO-Compress-Lzop-2.84.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name  IO-Compress-Lzop
%define upstream_version 2.084

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	IO::Compress::Lzop - Write lzop files/buffers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Compress::LZO)
BuildRequires:	perl(IO::Compress::Base) >= %{version}
BuildRequires:	perl(IO::Uncompress::Base) >= %{version}
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module provides a Perl interface that allows writing lzop compressed
data to files or buffer.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4904 |21cr|perl-IO-Digest-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Digest
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.11
Release:	6

Summary:	%{upstream_name} module, calculate digests while reading or writing  

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/C/CL/CLKAO/IO-Digest-0.11.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(PerlIO::via::dynamic)
BuildRequires:	perl(inc::Module::Install)
# for test
BuildRequires:	perl(Test)
BuildRequires:	perl-Internals
BuildArch:	noarch

%description
This module allows you to calculate digests while reading or writing file 
handles. This avoids the case you need to reread the same content to 
compute the digests after written a file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%defattr(444,root,root,755)
%doc CHANGES README
%{perl_vendorlib}/IO/*
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4905 |21cr|perl-IO-Ftp-0.60.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 IO-Ftp
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Wrapper for Net::FTP

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/M/MI/MIKEB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(Net::FTP)
BuildRequires:  perl(Symbol)

BuildArch:	noarch

%description
IO::Ftp is a wrapper for Net::FTP to simplify its use when
using its stor and retr methods.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4906 |21cr|perl-IO-Handle-Util-0.20.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Handle-Util
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Create L<IO::Handle> like objects using a set
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::String)
BuildRequires: perl(Scalar::Util)
# for test
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::use::ok)
BuildRequires: perl(asa)
BuildRequires: perl(parent)
BuildRequires: perl(Module::Build::Tiny)

BuildArch: noarch


%description
This module provides a number of helpful routines to manipulate or create
the IO::Handle manpage like objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4907 |21cr|perl-IO-Interactive-1.23.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Interactive
%define upstream_version 1.023

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Utilities for interactive I/O

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(version)
BuildArch:	noarch

%description
This module provides three utility subroutines that make it easier to
develop interactive applications...

* 'is_interactive()'

  This subroutine returns true if '*ARGV' and the currently selected
  filehandle (usually '*STDOUT') are connected to the terminal. The test is
  considerably more sophisticated than:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4908 |21cr|perl-IO-Interface-1.90.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Interface
%define upstream_version 1.09
%global __provides_exclude Interface.so


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Perl extension for access to network card configuration information


License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/L/LD/LDS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::CBuilder) >= 0.280.223
BuildRequires:	perl(Module::Build) >= 0.420.300
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0

%description
IO::Interface adds methods to IO::Socket objects that allows them to
be used to retrieve and change information about the network
interfaces on your system.  In addition to the object-oriented access
methods, you can use a function-oriented style.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes README.* META.json META.yml
%dir %{perl_vendorarch}/auto/IO/Interface
%{perl_vendorarch}/auto/IO/Interface/*
%{perl_vendorarch}/IO/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4909 |21cr|perl-IO-LockedFile-0.230.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-LockedFile
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Supply object methods for locking files

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
In its simplistic use, the IO::LockedFile class gives us the same interface of
the IO::File class with the unique difference that the files we deal with are
locked using the Flock mechanism (using the flock function).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/IO/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4910 |21cr|perl-IO-Null-1.10.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Null
%define upstream_version 1.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Class for null filehandles

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This is a class for null filehandles.

Calling a constructor of this class always succeeds, returning a new null
filehandle.

Writing to any object of this class is always a no-operation, and returns
true.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc ChangeLog README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4911 |21cr|perl-IO-Pager-2.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Pager
%define upstream_version 2.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Pipe output to PAGER if destination is a TTY
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/J/JP/JPIERCE/%{upstream_name}-%{upstream_version}.tgz
Patch0:     avoid-local-dep.patch

BuildRequires: perl-devel
BuildRequires: perl(Config)
BuildRequires: perl(Env)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::Which)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(PerlIO)
BuildRequires: perl(SelectSaver)
BuildRequires: perl(Symbol)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Text::Wrap)
BuildRequires: perl(Test::More)
BuildRequires: perl(Tie::Handle)
BuildRequires: perl(bignum)
BuildRequires: perl(base)
BuildArch: noarch

%description
IO::Pager can be used to locate an available pager and set the _PAGER_
environment variable (see the /NOTES manpage). It is also a factory for
creating I/O objects such as the IO::Pager::Buffered manpage and the
IO::Pager::Unbuffered manpage.

IO::Pager subclasses are designed to programmatically decide whether or not
to pipe a filehandle's output to a program specified in _PAGER_. Subclasses
may implement only the IO handle methods desired and inherit the remainder
of those outlined below from IO::Pager. For anything else, YMMV. See the
appropriate subclass for implementation specific details.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
%patch0 -p1 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml CHANGES README META.json
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*
%{_bindir}/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4912 |21cr|perl-IO-Prompt-0.997.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Prompt
%define upstream_version 0.997002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.997002
Release:	5

Summary:	Interactively prompt for user input

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/IO-Prompt-0.997002.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Want)

BuildArch:	noarch

%description
By default, this module exports a single function 'prompt'. It prompts the
user to enter some input, and returns an object that represents the user
input.

You may specify various flags to the function to affect its behaviour; most
notably, it defaults to automatically 'chomp' the input, unless the '-line'
flag is specified.

Two other functions are exported at request: 'hand_print', which simulates
hand-typing to the console; and 'get_input', which is the lower-level
function that actually prompts the user for a suitable input.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# requires /dev/tty
rm t/01.dependencies.t

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/IO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4913 |21cr|perl-IO-Prompt-0.997.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Prompt
%define upstream_version 0.997004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Interactively prompt for user input

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/IO-Prompt-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-Want

BuildArch:	noarch

%description
By default, this module exports a single function 'prompt'. It prompts the
user to enter some input, and returns an object that represents the user
input.

You may specify various flags to the function to affect its behaviour; most
notably, it defaults to automatically 'chomp' the input, unless the '-line'
flag is specified.

Two other functions are exported at request: 'hand_print', which simulates
hand-typing to the console; and 'get_input', which is the lower-level
function that actually prompts the user for a suitable input.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/IO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4914 |21cr|perl-IO-Prompt-Tiny-0.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Prompt-Tiny
%define upstream_version 0.003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Prompt for user input with a default option

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(IO::Handle)
BuildRequires: perl(POSIX)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(Exporter) >= 5.720.0
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch: noarch

%description
This is an extremely simple prompting module, based on the extremely
simple prompt offered by ExtUtils::MakeMaker.In many cases, that's all
you need and this module gives it to you without all the overhead of
ExtUtils::MakeMaker just to prompt for input.

It doesn't do any validation, coloring, menus, timeouts, or any of the
wild, crazy, cool stuff that other prompting modules do. It just prompts
with a default. That's it!

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/IO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4915 |21cr|perl-IO-Pty-Easy-0.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Pty-Easy
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Easy interface to IO::Pty

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/IO-Pty-Easy-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Pty)
BuildRequires:	perl(Scalar::Util)
BuildArch:	noarch

%description
'IO::Pty::Easy' provides an interface to the IO::Pty manpage which hides
most of the ugly details of handling ptys, wrapping them instead in simple
spawn/read/write commands.

'IO::Pty::Easy' uses the IO::Pty manpage internally, so it inherits all of
the portability restrictions from that module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4916 |21cr|perl-IO-Socket-Multicast-1.120.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	IO-Socket-Multicast
%define	upstream_version 1.12

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Send and receive multicast messages

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source0:	http://www.cpan.org/modules/by-module/IO/%{module}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Interface)

%description
IO::Socket::Multicast is designed to take the effort out of managing
some multicast network.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes README 
%{perl_vendorarch}/IO
%{perl_vendorarch}/auto/IO
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4917 |21cr|perl-IO-Socket-Socks-0.740.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Socket-Socks
%define upstream_version 0.74

Name:		perl-IO-Socket-Socks
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Provides a way to create socks (4 or 5) client or server
Group:		Development/Perl
License:	LGPLv2+
URL:		https://metacpan.org/release/IO-Socket-Socks
Source0:	https://cpan.metacpan.org/authors/id/O/OL/OLEG/IO-Socket-Socks-%{upstream_version}.tar.gz
BuildArch:	noarch
# Module Build
BuildRequires:	coreutils
BuildRequires:	findutils
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.52
BuildRequires:	sed
# Module Runtime
BuildRequires:	perl(Carp)
BuildRequires:	perl(constant) >= 1.03
BuildRequires:	perl(Errno)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(IO::Select)
BuildRequires:	perl(overload)
BuildRequires:	perl(Socket) >= 1.94
BuildRequires:	perl(strict)
BuildRequires:	perl(vars)
# Test Suite
BuildRequires:	perl(base)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(Test::More) >= 0.88
BuildRequires:	perl(Time::HiRes)
# Runtime
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:	perl(constant) >= 1.03
Requires:	perl(Socket) >= 1.94

# IPv6 support requires perl(IO::Socket::IP) ≥ 0.36, which is not available in EL-7
# so we have to fall back to IPv4-only IO::Socket::INET
%if 0%{?el7}
BuildRequires:	perl(IO::Socket::INET)
Requires:	perl(IO::Socket::INET)
%else
BuildRequires:	perl(IO::Socket::IP) >= 0.36
Requires:	perl(IO::Socket::IP) >= 0.36
%endif

%description
IO::Socket::Socks connects to a SOCKS proxy and tells it to open a connection
to a remote host/port when the object is created. The object you receive can be
used directly as a socket (with IO::Socket interface) for sending and receiving
data to and from the remote host. In addition to creating a socks client, this
module could be used to create a socks server.

%prep
%setup -q -n IO-Socket-Socks-%{upstream_version}

# Don't want executable documentation
chmod -c -x examples/*.pl

# Fix up shellbangs too
sed -i -e 's|^#!/usr/bin/env perl|#!/usr/bin/perl|' examples/*.pl

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}

%check
make test

%files
%doc Changes examples/ README
%{perl_vendorlib}/IO/
%{_mandir}/man3/IO::Socket::Socks.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4918 |21cr|perl-IO-Socket-Telnet-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Socket-Telnet
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Transparent telnet negotiation for IO::Socket::INET

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Telnet is a simple protocol that sits on top of TCP/IP. It handles the
negotiation of various options, both about the connection itself (ECHO) and
the setup of both sides of the party (NAWS, TTYPE).

This is a wrapper around the IO::Socket::INET manpage that both strips out
the telnet escape sequences and lets you handle the negotiation in a
high-level manner.

There is currently no interface for defining callbacks. This will be
rectified very soon. The module as it stands is still useful for stripping
out telnet escape sequences.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4919 |21cr|perl-IO-Socket-Timeout-0.320.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Socket-Timeout
%define upstream_version 0.32

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    IO::Socket with read/write timeout
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(PerlIO::via::Timeout)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::TCP)
BuildArch: noarch

%description
'IO::Socket' provides a way to set a timeout on the socket, but the timeout
will be used only for connection, not for reading / writing operations.

This module provides a way to set a timeout on read / write operations on
an 'IO::Socket' instance, or any 'IO::Socket::*' modules, like
'IO::Socket::INET'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4920 |21cr|perl-IO-Stty-0.30.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 IO-Stty
%define	upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12
Epoch:		1

Summary:	IO-Stty perl module

License: 	GPL
Group: 		Development/Perl
Url:		http://www.cpan.org
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build) => 0.35
BuildArch:	noarch

%description
IO-Stty is a module for setting terminal parameters.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean 

%files
%defattr(644,root,root,755)
%doc README
%{_bindir}/stty.pl
%{_mandir}/man3/*
%{perl_vendorlib}/IO/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4921 |21cr|perl-IO-Tee-0.660.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 IO-Tee
%define upstream_version 0.66

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Multiplex output to multiple output handles 

License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
IO::Tee objects can be used to multiplex input and output in two different
ways. The first way is to multiplex output to zero or more output handles. The
IO::Tee constructor, given a list of output handles, returns a tied handle that
can be written to. When written to (using print or printf), the IO::Tee object
multiplexes the output to the list of handles originally passed to the
constructor. As a shortcut, you can also directly pass a string or an array
reference to the constructor, in which case IO::File::new is called for you
with the specified argument or arguments.

The second way is to multiplex input from one input handle to zero or more
output handles as it is being read. The IO::Tee constructor, given an input
handle followed by a list of output handles, returns a tied handle that can be
read from as well as written to. When written to, the IO::Tee object
multiplexes the output to all handles passed to the constructor, as described
in the previous paragraph. When read from, the IO::Tee object reads from the
input handle given as the first argument to the IO::Tee constructor, then
writes any data read to the output handles given as the remaining arguments to
the constructor.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/IO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4922 |21cr|perl-IO-TieCombine-1.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-TieCombine
%define upstream_version 1.004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Tied scalars for IO::TieCombine

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/IO-TieCombine-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Tied scalars for IO::TieCombine.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4923 |21cr|perl-IO-Tty-Util-0.30.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Tty-Util
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9

Summary:    No summary found

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel

%description
the IO::Tty::Util manpage provides basic Perl bindings to the 'openpty' and
'login_tty' functions found in 'libutil.so' and provides a Perl
implementation of the 'forkpty' function.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests seem to fail with perl 5.12 without tty (such as the bs)
#make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4924 |21cr|perl-IO-Util-1.500.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Util
%define upstream_version 1.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A selection of general-utility IO function

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DO/DOMIZIO/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)

BuildArch:	noarch

%description
This is a micro-weight module that exports a few functions of general utility
in IO operations.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# Maybe rerun with non-ASCII locale will help these tests...
# %check
# %make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/IO/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4925 |21cr|perl-IPC-Cmd-0.920.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IPC-Cmd
%define upstream_version 0.92
Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        5

Summary:        Finding and running system commands made easy

License:        GPL+ or Artistic
Group:          Development/Perl
Url:            http://search.cpan.org/dist/%{upstream_name}
Source0:        http://www.cpan.org/modules/by-module/IPC/IPC-Cmd-%{upstream_version}.tar.gz

Buildrequires:  perl-devel
Buildrequires:  perl(Module::Load::Conditional)
Buildrequires:  perl(version)

Buildarch:      noarch

%description
IPC::Cmd allows you to run commands, interactively if desired, platform
independent but have them still work.

The can_run function can tell you if a certain binary is installed and if so
where, whereas the run function can actually execute any of the commands you
give it and give you a clear return value, as well as adhere to your verbosity
settings.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files 
%doc README
%{perl_vendorlib}/IPC
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4926 |21cr|perl-IPC-Shareable-0.610.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 IPC-Shareable
%define upstream_version 0.61

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.61
Release:	5

Summary:	%{upstream_name} perl module

License: 	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IPC/IPC-Shareable-0.61.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
IPC-Shareable allows you to tie a variable to shared memory making it easy to
share the contents of that variable with other Perl processes. Scalars, arrays,
and hashes can be tied. The variable being tied may contain arbitrarily complex
data structures including references to arrays, hashes of hashes, etc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make 

%install
%makeinstall_std

%files
%doc README MANIFEST CHANGES CREDITS 
%{perl_vendorlib}/IPC/*.pm
%{perl_vendorlib}/IPC/Shareable/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4927 |21cr|perl-IPC-SharedCache-1.300.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       IPC-SharedCache
%define upstream_version    1.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Manage a cache in SysV IPC shared memory

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/IPC/%{upstream_name}-%{upstream_version}.tar.gz
Patch:		0001-Wrap-IPC-ShareLite-new-calls-inside-eval-block.patch 

BuildRequires:	perl-devel
BuildRequires:	perl(IPC::ShareLite)
BuildArch:	noarch


%description
This module provides a shared memory cache accessed as a tied hash.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 
%patch -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE ANNOUNCE
%{perl_vendorlib}/IPC
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4928 |21cr|perl-IPC-ShareLite-0.170.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IPC-ShareLite
%define upstream_version 0.17

Name: 		perl-%{upstream_name}
Version: 	%perl_convert_version %{upstream_version}
Release:	9

Summary: 	Lightweight interface to shared memory

License: 	GPL+ or Artistic
Group: 		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/IPC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel >= 5.8.0
BuildRequires:	perl(Devel::CheckLib)

%description
IPC-ShareLite module for perl.  IPC::ShareLite provides a simple
interface to shared memory, allowing data to be efficiently
communicated between processes.  Your operating system must support
SysV IPC (shared memory and semaphores) in order to use this module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# Drop the bundled modules
rm -rf inc && perl -ni -e 'print unless m|^inc/|' MANIFEST
# metafile is broken and we don't need it anyway
perl -ni -e 'print if $. < 50' Makefile.PL

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" NO_PACKLIST=1 NO_PERLLOCAL=1
%make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorarch}/auto/IPC
%{perl_vendorarch}/IPC

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4929 |21cr|perl-IRC-Utils-0.120.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IRC-Utils
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Common utilities for IRC-related tasks

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IRC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The functions in this module take care of many of the tasks you are faced
with when working with IRC. Mode lines, ban masks, message encoding and
formatting, etc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4930 |21cr|perl-Iterator-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Iterator
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    A general-purpose iterator class
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Exception::Class)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Simple)
BuildArch: noarch

%description
This module is meant to be the definitive implementation of iterators, as
popularized by Mark Jason Dominus's lectures and recent book (_Higher Order
Perl_, Morgan Kauffman, 2005).

An "iterator" is an object, represented as a code block that generates the
"next value" of a sequence, and generally implemented as a closure. When
you need a value to operate on, you pull it from the iterator. If it
depends on other iterators, it pulls values from them when it needs to.
Iterators can be chained together (see the Iterator::Util manpage for
functions that help you do just that), queueing up work to be done but _not
actually doing it_ until a value is needed at the front end of the chain.
At that time, one data value is pulled through the chain.

Contrast this with ordinary array processing, where you load or compute all
of the input values at once, then loop over them in memory. It's analogous
to the difference between looping over a file one line at a time, and
reading the entire file into an array of lines before operating on it.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4931 |21cr|perl-Iterator-Util-0.20.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Iterator-Util
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Essential utilities for the Iterator class
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Iterator/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Exception::Class)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Iterator)
BuildRequires: perl(Test::Simple)
BuildArch: noarch

%description
This module implements many useful functions for creating and manipulating
iterator objects.

An "iterator" is an object, represented as a code block that generates the
"next value" of a sequence, and generally implemented as a closure. For
further information, including a tutorial on using iterator objects, see
the the Iterator manpage documentation.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4932 |21cr|perl-JavaScript-Beautifier-0.180.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JavaScript-Beautifier
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Beautify Javascript (beautifier for javascript)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/F/FA/FAYLAND/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(Getopt::Long) >= 2.470.0
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module is mostly a Perl-rewrite of the
http://github.com/einars/js-beautify/tree/master/beautify.js manpage

You can check it through the http://jsbeautifier.org/ manpage

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man?/*
%{perl_vendorlib}/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4933 |21cr|perl-JavaScript-Minifier-1.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JavaScript-Minifier
%define upstream_version 1.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl extension for minifying JavaScript code

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://search.cpan.org/CPAN/authors/id/Z/ZO/ZOFFIX/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Exporter) >= 5.720.0
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
This module removes unnecessary whitespace from JavaScript code. The
primary requirement developing this module is to not break working code: if
working JavaScript is in input then working JavaScript is output. It is ok
if the input has missing semi-colons, snips like '++ +' or '12
.toString()', for example. Internet Explorer conditional comments are
copied to the output but the code inside these comments will not be
minified.

The ECMAScript specifications allow for many different whitespace
characters: space, horizontal tab, vertical tab, new line, carriage return,
form feed, and paragraph separator. This module understands all of these as
whitespace except for vertical tab and paragraph separator. These two types
of whitespace are not minimized.

For static JavaScript files, it is recommended that you minify during the
build stage of web deployment. If you minify on-the-fly then it might be a
good idea to cache the minified file. Minifying static files on-the-fly
repeatedly is wasteful.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4934 |21cr|perl-JavaScript-Minifier-XS-0.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JavaScript-Minifier-XS
%define upstream_version 0.15

Name:           perl-JavaScript-Minifier-XS
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        XS based JavaScript minifier
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/JavaScript-Minifier-XS
Source0:        https://cpan.metacpan.org/authors/id/G/GT/GTERMARS/JavaScript-Minifier-XS-%{upstream_version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  findutils
BuildRequires:  gcc
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::CBuilder)
BuildRequires:  perl(ExtUtils::MakeMaker) > 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(if)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(JavaScript::Minifier)
BuildRequires:  perl(Test::DiagINC)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%{?perl_default_filter}

%description
JavaScript::Minifier::XS is a JavaScript "minifier"; it's designed
to remove unnecessary white space and comments from JavaScript
files without breaking the JavaScript.

%prep
%setup -q -n JavaScript-Minifier-XS-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1 OPTIMIZE="%{optflags}"
%{make_build}

%install
%{make_install}
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING RELEASE_TESTING
export AUTOMATED_TESTING=1
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/JavaScript*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4935 |21cr|perl-Jcode-2.70.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Jcode
%define upstream_version 2.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	14
Summary:	Japanese Charset Handle
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Jcode/%{upstream_name}-%{upstream_version}.tar.bz2

Buildrequires:	perl-devel
Buildrequires:	perl-Test


%description
Jcode.pm supports both object and traditional approach. With object approach,
you can go like;

$iso_2022_jp = Jcode->new($str)->h2z->jis;

Which is more elegant than;
 
$iso_2022_jp = &jcode::convert(\$str,'jis',jcode::getcode(\str), "z");

For those unfamiliar with objects, Jcode.pm still supports getcode() and
convert().

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"
cd Unicode
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std
cd Unicode
%makeinstall_std

%check
%make test

%clean 

%files 
%doc README Changes
%{perl_vendorlib}/Jcode
%{perl_vendorlib}/Jcode.pm
%{perl_vendorarch}/Jcode
%{perl_vendorarch}/auto/Jcode
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4936 |21cr|perl-JQuery-1.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JQuery
%define upstream_version 1.06

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    JQuery Interface

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/P/PE/PETERG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CGI::Application)
BuildRequires: perl(CGI::Carp)
BuildRequires: perl(CGI::Util)
BuildRequires: perl(CSS)
BuildRequires: perl(HTML::Table)
BuildRequires: perl(IO::String)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(XML::Writer)
BuildRequires: perl(Module::Build)
BuildArch: noarch

%description
JQuery is a frontend for the jQuery language. I use *JQuery* to refer to
the Perl part or the package, and *jQuery* to reference the javascript part
or the package.

A quote from the http://jquery.com manpage: jQuery is a fast, concise,
JavaScript Library that simplifies how you traverse HTML documents, handle
events, perform animations, and add Ajax interactions to your web pages.

JQuery.pm is the main module. There are other modules such as Form,
TableSorter, Splitter, Taconite ..., all of which provide different
functionality. The main module needs to be instantiated, and each instance
of the other modules needs to be registered with the main module. It is
then the responsibility of JQuery.pm to produce the relevant HTML, css and
javascript code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4937 |21cr|perl-JSON-Any-1.390.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JSON-Any
%define upstream_version 1.39

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Wrapper Class for the various JSON classes (DEPRECATED)
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(Data::Dumper) >= 2.154
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(Storable)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Test::Without::Module)
BuildRequires: perl(constant)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl(JSON::Syck)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(JSON::DWIW)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Pod::Coverage)

#For some reason the new version is not catched by 
#genhdlist2 try to obsolete the older versions.Sflo
%if %rpm5
Obsoletes:		%{name} < %{EVRD}
Obsoletes:		perl(JSON::Any) < %{EVRD}
%endif

BuildArch: noarch

%description
This module tries to provide a coherent API to bring together the various
JSON modules currently on CPAN. This module will allow you to code to any
JSON API and have it work regardless of which JSON module is actually
installed.

    use JSON::Any;

    my $j = JSON::Any->new;

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4938 |21cr|perl-JSON-Color-0.133.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JSON-Color
%define upstream_version 0.133

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Encode to colored JSON
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/JSON-Color/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-devel
BuildRequires:  perl(:VERSION)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Color::ANSI::Util)
BuildRequires:  perl(ColorTheme::NoColor)
BuildRequires:  perl(ColorThemeBase::Static::FromStructColors)
BuildRequires:  perl(ColorThemeRole::ANSI)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Graphics::ColorNamesLite::WWW)
BuildRequires:  perl(Module::Load::Util)
BuildRequires:  perl(parent)
BuildRequires:  perl(Role::Tiny)
# Not used for tests - Scalar::Util::LooksLikeNumber
BuildRequires:  perl(Term::ANSIColor)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(ColorTheme::NoColor)
Requires:       perl(Module::Load::Util)
Requires:       perl(Role::Tiny)
Requires:       perl(Term::ANSIColor)
Recommends:     perl(Scalar::Util::LooksLikeNumber)

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Term::ANSIColor)\\)\s*$

%description
This module generates JSON, colorized with ANSI escape sequences.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

# Help file to recognise the Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
unset AUTHOR_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4939 |21cr|perl-JSON-RPC-1.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JSON-RPC
%define upstream_version 1.06

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    JSON-RPC sever for mod_perl2
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/JSON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(CGI)
BuildRequires: perl(Class::Accessor::Lite)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Plack)
BuildRequires: perl(Plack::Request)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Router::Simple)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(Module::Build)
BuildRequires: perl-CPAN-Meta

BuildArch: noarch

%description
JSON::RPC is a set of modules that implement JSON RPC 2.0 protocol.

    If you are using old JSON::RPC code (up to 0.96), DO NOT EXPECT
    YOUR CODE TO WORK WITH THIS VERSION. THIS VERSION IS 
    ****BACKWARDS INCOMPATIBLE****

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4940 |21cr|perl-JSON-RPC-Common-0.110.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JSON-RPC-Common
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    JSON-RPC 1.0 error class
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/JSON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Load)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Encode)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(JSON)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(URI::QueryParam)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl(namespace::autoclean)

BuildArch: noarch

%description
This module provides abstractions for JSON-RPC 1.0, 1.1 (both variations)
and 2.0 (formerly 1.2) Procedure Call and Procedure Return objects
(formerly known as request and result), along with error objects. It also
provides marshalling objects to convert the model objects into JSON text
and HTTP requests/responses.

This module does not concern itself with the transport layer at all, so the
JSON-RPC 1.1 and the alternative specification, which are very different on
that level are implemented with the same class.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4941 |21cr|perl-JSON-RPC-LWP-0.7.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JSON-RPC-LWP
%define upstream_version 0.007

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Use any version of JSON RPC over any libwww supported transport protocols
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/JSON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(JSON::RPC::Common)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Deprecated)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(Module::Build)
BuildRequires: perl(namespace::autoclean)

BuildArch: noarch

%description
no description found

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4942 |21cr|perl-Kwiki-0.390.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki
%define upstream_version 0.39

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	The Kwiki Wiki Building Framework 

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Spoon)
BuildArch:	noarch

%description
Kwiki is perhaps the simplest to install, most modular, and easiest to extend
Wiki. A Wiki allows users to freely create and edit web pages in any web
browser. Kwiki is Open Source Software in Perl, and is available on CPAN.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
#%make_build test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{perl_vendorlib}/Kwiki.pm
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4943 |21cr|perl-Kwiki-Archive-Rcs-0.160.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-Archive-Rcs
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki Page Archival Using RCS

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch
Requires:	rcs

%description
Version control using RCS.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4944 |21cr|perl-Kwiki-Attachments-0.210.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Kwiki-Attachments
%define upstream_version    0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki Page Attachments Plugin

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
Kwiki::Attachments gives a Kwiki wiki the ability to upload, store and manage
file attachments on any page. By default, if you have an image creation module
such as Imager or Image::Magick installed, then a thumbnail will be created for
every supported image file type that is uploaded. Thumbnails are displayed on
the attachments page, and can also be displayed on wiki pages via the wafl
directives described in the next paragraph. The thumbnail files have "thumb_"
prepended to the original filename and are not displayed separately in the
attachment page or widget. For this reason, you cannot upload files beginning
with "thumb_".

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 
rm -f ._Makefile.PL

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
#%{__make} test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4945 |21cr|perl-Kwiki-CachedDisplay-0.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-CachedDisplay
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Speed-up Kwiki page display by caching

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildRequires:	perl(Test::Pod::Coverage)
BuildArch:	noarch

%description
This module use pre-generated page upon rendering, so that each successive
page-rendering takes no time in parsing and template-processing. After you
install this plugin, new pages will automatically have pre-generated HTML
copies on disk. HTML copies for old pages will be generated by next time anyone
visit them.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4946 |21cr|perl-Kwiki-Comments-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-Comments
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Post comments to a page

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
Kwiki::Comments is a Kwiki plugin that allow anyone to leave comments to a
Page, just like Slash comments or MT comments.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4947 |21cr|perl-Kwiki-Diff-0.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-Diff
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Display differences between the current wiki page and older revisions

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
This module requires that you be using Kwiki::Revisions. Please make sure
Kwiki::Revisions is in your plugins file.

This module adds a toolbar item, "Differences," when viewing past revisions of
wiki pages. When clicked, the user is shown a colorful side-by-side comparison
of that revision and the current revision.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm -f t/0-signature.t # debug files make it fails

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4948 |21cr|perl-Kwiki-Edit-RequireUserName-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-Edit-RequireUserName
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Replaces Kwiki::Edit in order to require a user name to edit

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
This plugin helps reduce WikiSpam by requiring that the user have a user name
before editing. The idea is that SpamBots won't take the trouble to do this. Of
course this won't prevent spam created manually.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4949 |21cr|perl-Kwiki-Image-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-Image
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki Image Plugin

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
This plugin provides more comprehensive support for images in Kwiki.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build
%make_build test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4950 |21cr|perl-Kwiki-ListPages-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-ListPages
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	List all Kwiki Pages

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
This module provides an indexed list of all the pages in a Kwiki wiki via a
button on the toolbar. At the top of the list is a navigation bar with letters
or numbers which have page entries associated with them.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4951 |21cr|perl-Kwiki-ModPerl-0.90.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-ModPerl
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Enable Kwiki to work under mod_perl 
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		perl-Kwiki-ModPerl-0.09-Parenthesise-qw-explicitly.patch

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildRequires:	apache-mod_perl
BuildArch:	noarch
Requires:	apache-mod_perl

%description
This module allows you to use Kwiki as a mod_perl content handler.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1 -b .fix-build

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4952 |21cr|perl-Kwiki-NewPage-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-NewPage
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki New Page Plugin

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
Adds a navigation link/button to create a new page without first adding a link
to that page.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4953 |21cr|perl-Kwiki-RecentChanges-0.140.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-RecentChanges
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki Recent Changes Plugin

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
List pages that were recently changed (how long ago can be configured).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4954 |21cr|perl-Kwiki-Revisions-0.150.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-Revisions
%define upstream_version 0.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki Revisions Plugin

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
Assuming you have one of the Archive plugins enabled this plugin let's users
see prvious versions of a page. (for diffs see Kwiki::Diff).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4955 |21cr|perl-Kwiki-Search-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-Search
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki Search Plugin

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
Enables a plain text search button for searching the content of the pages.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4956 |21cr|perl-Kwiki-UserName-0.140.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-UserName
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki User Name Plugin 

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
Enable user to set their name in the preferences so changes will show they did
it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4957 |21cr|perl-Kwiki-UserPreferences-0.130.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Kwiki-UserPreferences
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Kwiki User Preferences Plugin 

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Kwiki/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Kwiki)
BuildArch:	noarch

%description
Enable the setting of various User Preferences.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Kwiki
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4958 |21cr|perl-Language-Befunge-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Language-Befunge
%define upstream_version 5.000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A generic funge interpreter

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Language/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-aliased
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Math::BaseCalc)
BuildRequires:	perl(Math::Complex)
BuildRequires:	perl(Math::Trig)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
This module implements the Funge-98 specifications on a 2D field (also called 
Befunge).  It can also work as a n-funge implementation (3D and more).


%prep
%setup -q -n Language-Befunge-%{upstream_version} 

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{_bindir}/jqbef98
%{perl_vendorlib}/Language
%{_mandir}/man1/jqbef98*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4959 |21cr|perl-Language-Befunge-Storage-Generic-Vec-XS-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Language-Befunge-Storage-Generic-Vec-XS
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Language::Befunge::Storage::Generic::Vec rewritten for speed

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Language/%{upstream_name}-%{upstream_version}.tar.gz
Source1:	%{name}.rpmlintrc

BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Language::Befunge)
BuildRequires:	perl(Language::Befunge::Vector::XS)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(aliased)
BuildRequires:	perl-devel
Requires:	perl(aliased)

%description
Language::Befunge::Storage::Generic::Vec implements a linear storage model,
where a perl string is used to store a (potentially very large) integer
array. The integers are accessed from perl with vec().

Unfortunately, vec() operates on unsigned integers, which means some extra
calculations are necessary to convert between unsigned and signed integers.

If the access was done from C, using a signed integer pointer, the access
would be much faster, and the conversion would be unnecessary.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4960 |21cr|perl-Language-Befunge-Vector-XS-1.1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Language-Befunge-Vector-XS
%define upstream_version 1.1.1

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9

Summary:    Language::Befunge::Vector rewritten for speed

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Language/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl-devel


%description
The Language::Befunge module makes heavy use of n-dims vectors,
mapped to the Language::Befunge::Vector class. This allows to
abstract the funge dimension while still keeping the same code for the
operations.

However, such an heavy usage does have some impact on the performances.
Therefore, this modules is basically a rewrite of LBV in XS. If
installed, then LBV will automagically load it and replace its own
functions with the XS ones.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc LICENSE Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4961 |21cr|perl-latest-0.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    latest
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Use the latest Perl features

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/A/AN/ANDYA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl(version)
BuildRequires: perl(Module::Build)

BuildArch: noarch

Provides: perl(latest)

%description
The line

  use latest;

is roughly equivalent to

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4962 |21cr|perl-LaTeX-Driver-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LaTeX-Driver
%define upstream_version 1.2.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Driver to run LaTeX, bibtex and makeindex


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/LaTeX/%{upstream_name}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Log::Any)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Test::Exception)
BuildRequires:	tetex-latex
BuildRequires:	ghostscript-common
# Require whole set of texlive packages because it's hard
# to find what we really need to make tests pass
BuildRequires:	texlive
Requires:	tetex-latex
Requires:	ghostscript-common
Requires:	perl(Template)

BuildArch:	noarch

%description
The LaTeX::Driver module encapsulates the details of invoking the Latex
programs to format a LaTeX document. Formatting with LaTeX is complicated;
there are potentially many programs to run and the output of those programs
must be monitored to determine whether further processing is required.

This module runs the required commands in the directory specified, either
explicitly with the 'dirname' option or implicitly by the directory part of
'basename', or in the current directory. As a result of the processing up
to a dozen or more intermediate files are created. These can be removed
with the 'cleanup' method.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
yes | perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#TMPDIR=/tmp %make test

%install
%makeinstall_std

%files
%doc README Changes
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4963 |21cr|perl-LaTeX-Encode-0.92.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LaTeX-Encode
%define upstream_version 0.092.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Encode LaTeX special chars for typesetting

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/LaTeX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp::Always)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Readonly)

BuildArch:	noarch

%description
This module provides a function to encode text that is to be formatted with
LaTeX. It encodes characters that are special to LaTeX or that are
represented in LaTeX by LaTeX commands.

The special characters are: '\' (command character), '{' (open group), '}'
(end group), '&' (table column separator), '#' (parameter specifier), '%'
(comment character), '_' (subscript), '^' (superscript), '~' (non-breakable
space), '$' (mathematics mode).

Note that some of the LaTeX commands for characters are defined in the
LaTeX 'textcomp' package. If your text includes such characters, you will
need to include the following lines in the preamble to your LaTeX document.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml TODO
%{_bindir}/latex-encode
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4964 |21cr|perl-LaTeX-Table-1.0.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LaTeX-Table
%define upstream_version v1.0.6

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Automatic generation of LaTeX tables

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/LaTeX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Policy::FollowPBP)
BuildRequires:	perl(MooseX::FollowPBP)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Template)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Text::CSV)
BuildRequires:	perl(Text::Wrap)
BuildRequires:	perl(version)

BuildArch:	noarch

%description
LaTeX makes professional typesetting easy. Unfortunately, this is not
entirely true for tables and the standard LaTeX table macros have a rather
limited functionality. This module supports many CTAN packages and hides
the complexity of using them behind an easy and intuitive API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/csv2pdf
%{_bindir}/ltpretty

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4965 |21cr|perl-Lchown-1.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lchown
%define upstream_version 1.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Use the lchown(2) system call from Perl
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel
BuildRequires: perl(Test::Pod::Coverage)

%description
Provides a perl interface to the 'lchown()' system call, on platforms that
support it.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4966 |21cr|perl-Lexical-Persistence-1.23.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lexical-Persistence
%define upstream_version 1.023

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Bind lexicals to persistent data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Lexical/Lexical-Persistence-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Devel::LexAlias)
BuildRequires:	perl(PadWalker)
BuildArch:	noarch

%description
Lexical::Persistence does a few things, all related. Note that all the
behaviors listed here are the defaults. Subclasses can override nearly
every aspect of Lexical::Persistence's behavior.

Lexical::Persistence lets your code access persistent data through lexical
variables. This example prints "some value" because the value of $x perists
in the $lp object between setter() and getter().

	use Lexical::Persistence;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4967 |21cr|perl-lib-abs-0.950.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    lib-abs
%define upstream_version 0.95

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Get pathname of current working directory

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/lib/lib-abs-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cwd)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Test::More)
BuildArch:	noarch
Provides:	perl(lib::abs)

%description
The main reason of this library is transformate relative paths to absolute
at the 'BEGIN' stage, and push transformed to '@INC'. Relative path basis
is not the current working directory, but the location of file, where the
statement is (caller file). When using common 'lib', relative paths stays
relative to curernt working directory,

	# For ex:
	# script: /opt/scripts/my.pl
	use lib::abs '../lib';

	# We run `/opt/scripts/my.pl` having cwd /home/mons
	# The @INC will contain '/opt/lib';

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4968 |21cr|perl-lib-relative-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    lib-relative
%define upstream_version 1.000


Name:           perl-lib-relative
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Add paths relative to the current file to @INC
Group:          Development/Perl
License:        Artistic 2.0
URL:            https://metacpan.org/release/lib-relative
Source0:        https://cpan.metacpan.org/authors/id/D/DB/DBOOK/lib-relative-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION) >= 5.6.1
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Cwd)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(lib)
# Tests
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Test::More) >= 0.88
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This module proposes a straightforward method for adding local directory to
@INC. It takes a path relative to the current file, absolutize it, and add
it to @INC.

%prep
%setup -q -n lib-relative-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4969 |21cr|perl-Lingua-31337-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lingua-31337
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	P3RL M0DU1E 7O c0NVer7 7ext 7O C0o1 741k

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
P3RL M0DU1E 7O c0NVer7 7ext 7O C0o1 741k.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Lingua

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4970 |21cr|perl-Lingua-EN-FindNumber-1.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lingua-EN-FindNumber
%define upstream_version 1.32

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Locate (written) numbers in English text
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://search.cpan.org/CPAN/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Lingua::EN::Words2Nums)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Exporter) >= 5.720.0
BuildRequires: perl(Test::Pod)
BuildRequires: perl-devel

BuildArch: noarch

%description
This module provides a regular expression for finding numbers in English
text. It also provides functions for extracting and manipulating such
numbers.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4971 |21cr|perl-Lingua-EN-Inflect-Number-1.120.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Lingua-EN-Inflect-Number
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Force number of words to singular or plural

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Lingua::EN::Inflect) >= 1.899.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Exporter) >= 5.720.0

BuildArch:	noarch

%description
This module extends the functionality of Lingua::EN::Inflect with three new
functions available for export:

number:
This takes a word, and determines its number. It returns s for singular, p for
plural, and ambig for words that can be either singular or plural.

to_S / to_PL:
These take a word and convert it forcefully either to singular or to plural.
Lingua::EN::Inflect does funny things if you try to pluralise an already-plural
word, but this module does the right thing.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%files 
%doc Changes README META.json META.yml
%{perl_vendorlib}/Lingua
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4972 |21cr|perl-Lingua-EN-Inflect-Phrase-0.200.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lingua-EN-Inflect-Phrase
%define upstream_version 0.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Inflect short English Phrases



License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Lingua::EN::Number::IsOrdinal)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Lingua::EN::FindNumber)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Lingua::EN::Inflect)
BuildRequires:	perl(Lingua::EN::Inflect::Number)
BuildRequires:	perl(Lingua::EN::Tagger)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Attempts to pluralize or singularize short English phrases.

If it doesn't work, please email or submit to RT the example you tried, and
I'll try to fix it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4973 |21cr|perl-Lingua-EN-Number-IsOrdinal-0.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Lingua-EN-Number-IsOrdinal
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Detect if English number is ordinal or cardinal

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Lingua::EN::FindNumber)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Exporter)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)


BuildArch:	noarch

%description
This module will tell you if a number, either in words or as digits, is
a cardinal or ordinal number
<http://www.ego4u.com/en/cram-up/vocabulary/numbers/ordinal>.

This is useful if you e.g. want to distinguish these types of numbers
found with Lingua::EN::FindNumber and take different actions.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4974 |21cr|perl-Lingua-EN-Numbers-Ordinate-1.40.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Lingua-EN-Numbers-Ordinate
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Go from cardinal number (3) to ordinal ("3rd")

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Exporter) >= 5.720.0
BuildRequires:	perl-devel

BuildArch:	noarch

%description
There are two kinds of numbers in English -- cardinals (1, 2, 3...), and
ordinals (1st, 2nd, 3rd...). This library provides functions for giving the
ordinal form of a number, given its cardinal value.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.json META.yml
%{perl_vendorlib}/Lingua
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4975 |21cr|perl-Lingua-EN-Tagger-0.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The package contains binary files, not sure if they are really arch-dependent,
# but let's not mark the package as 'noarch', juse say that we have no debug data here
%define debug_package %{nil}

%define upstream_name    Lingua-EN-Tagger
%define upstream_version 0.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Part-of-speech tagger for English natural language processing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/authors/id/A/AC/ACOBURN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(Lingua::Stem)
BuildRequires:	perl(Lingua::Stem::En)
BuildRequires:	perl(Memoize)
BuildRequires:	perl(Memoize::ExpireLRU)
BuildRequires:	perl(Storable)


%description
The module is a probability based, corpus-trained tagger that assigns POS
tags to English text based on a lookup dictionary and a set of probability
values. The tagger assigns appropriate tags based on conditional
probabilities - it examines the preceding tag to determine the appropriate
tag for the current word. Unknown words are classified according to word
morphology or can be set to be treated as nouns or other parts of speech.

The tagger also extracts as many nouns and noun phrases as it can, using a
set of regular expressions.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4976 |21cr|perl-Lingua-EN-Words2Nums-0.180.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lingua-EN-Words2Nums
%define upstream_version 0.18

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Convert English text to numbers
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test)
BuildRequires: perl-devel
BuildArch: noarch

%description
This module converts English text into numbers. It supports both ordinal
and cardinal numbers, negative numbers, and very large numbers.

The main subroutine, which is exported by default, is words2nums(). This
subroutine, when fed a string, will attempt to convert it into a number. If
it succeeds, the number will be returned. If it fails, it returns undef.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc samples TODO README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4977 |21cr|perl-Lingua-Features-0.3.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Lingua-Features

Name:		perl-%{module}
Version:	0.3.1
Release:	10
Summary:	Natural languages features

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Lingua/%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl(XML::Generator)
BuildRequires:	perl(List::Compare)
BuildRequires:	perl(Tie::IxHash)
BuildArch:	noarch

%description
This module implements natural languages features in Perl. Its brings the
following advantages:
- type verification
- features and values normalization
- smart comparisons between structures

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files 
%doc ChangeLog README
%{perl_vendorlib}/Lingua
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4978 |21cr|perl-Lingua-Ident-1.700.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Lingua-Ident
%define upstream_version 1.7

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Statistical language identification 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements a statistical language identifier.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# parallel testing with %make doesn't work
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/*
%{perl_vendorlib}/Lingua
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4979 |21cr|perl-Lingua-Ispell-0.70.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define upstream_name    Lingua-Ispell
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Ispell inteface perl module

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JD/JDPORTER/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Interface to the Ispell spellchecker.

%prep 
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%files
%doc Changes MANIFEST README
%{perl_vendorlib}/Lingua/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4980 |21cr|perl-Lingua-Preferred-0.2.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Lingua-Preferred

Summary:	Perl extension to choose a language

License:	GPL/Artistic
Name:		perl-%{module}
Version:	0.2.4
Release:	13
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Lingua/%{module}-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	perl(Log::TraceMessages)
BuildRequires:	perl-devel


%description
Often human-readable information is available in more than one language. Which
should you use? This module provides a way for the user to specify possible
languages in order of preference, and then to pick the best language of those
available. Different 'dialects' given by the 'territory' part of the language
specifier (such as en, en_GB, and en_US) are also supported.

Authors:
--------
        Ed Avis <epa98@doc.ic.ac.uk>

%prep
%setup -n %{module}-%{version} -q

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall DESTDIR=%{buildroot}

%clean

%files
%doc README Changes
%{perl_vendorlib}/Lingua/Preferred.pm
%{perl_vendorlib}/auto/Lingua/Preferred/autosplit.ix
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4981 |21cr|perl-Lingua-PT-Stemmer-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Lingua-PT-Stemmer
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Portuguese language stemming

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Lingua-PT-Stemmer module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Lingua
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4982 |21cr|perl-Lingua-Stem-2.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lingua-Stem
%define upstream_version 2.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Stemming of words

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Lingua::PT::Stemmer)
BuildRequires:	perl(Lingua::Stem::It)
BuildRequires:	perl(Lingua::Stem::Fr)
BuildRequires:	perl(Lingua::Stem::Snowball::Da)
BuildRequires:	perl(Lingua::Stem::Snowball::No)
BuildRequires:	perl(Lingua::Stem::Snowball::Se)
BuildRequires:	perl(Text::German)
BuildArch:	noarch

%description
This routine applies stemming algorithms to its parameters, returning the
stemmed words as appropriate to the selected locale.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Lingua
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4983 |21cr|perl-Lingua-Stem-Fr-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lingua-Stem-Fr
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl French Stemming

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module use the a modified version of the Porter Stemming Algorithm to
return a stemmed words.

The algorithm is implemented as described in:
http://snowball.tartarus.org/french/stemmer.html
with some improvement.

The code is carefully crafted to work in conjunction with the Lingua::Stem
module by Benjamin Franz. This french version is based too, on the work of Aldo
Calpini (Italian Version)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Lingua
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4984 |21cr|perl-Lingua-Stem-It-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Lingua-Stem-It
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Porter's stemming algorithm for Italian

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AC/ACALPINI/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module applies the Porter Stemming Algorithm to its parameters, returning
the stemmed words.

The algorithm is implemented exactly as described in:
http://snowball.tartarus.org/italian/stemmer.html

The code is carefully crafted to work in conjunction with the Lingua::Stem
module by Benjamin Franz, from which some functionalities have been borrowed
(caching and exception list).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Lingua
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4985 |21cr|perl-Lingua-Stem-Snowball-0.952.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lingua-Stem-Snowball
%define upstream_version 0.952

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	8

Summary:    Perl interface to Snowball stemmers

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel

%description
Stemming reduces related words to a common root form -- for instance,
"horse", "horses", and "horsing" all become "hors". Most commonly, stemming
is deployed as part of a search application, allowing searches for a given
term to match documents which contain other forms of that term.

This module is very similar to the Lingua::Stem manpage -- however,
Lingua::Stem is pure Perl, while Lingua::Stem::Snowball is an XS module
which provides a Perl interface to the C version of the Snowball stemmers.
(the http://snowball.tartarus.org manpage).

Supported Languages
    The following stemmers are available (as of Lingua::Stem::Snowball
    0.95):

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4986 |21cr|perl-Lingua-Stem-Snowball-Da-1.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Lingua-Stem-Snowball-Da
%define upstream_version 1.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Porters stemming algorithm for Denmark

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/C/CI/CINE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch
Requires:	locales-da

%description
The stem function takes a scalar as a parameter and stems the word according to
Martin Porters Danish stemming algorithm, which can be found at the Snowball
website: http://snowball.tartarus.org/.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
mv %{buildroot}%{perl_vendorlib}/Lingua/Stem/Snowball/stemmer.pl \
    %{buildroot}%{perl_vendorlib}/Lingua/Stem/Snowball/stemmer-Da.pl

%files
%doc Changes README
%{perl_vendorlib}/Lingua
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4987 |21cr|perl-Lingua-StopWords-0.90.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Lingua-StopWords
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Stop words for several languages

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Lingua/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
In keyword search, it is common practice to suppress a collection of
"stopwords": words such as "the", "and", "maybe", etc. which exist in in a
large number of documents and do not tell you anything important about any
document which contains them. This module provides such "stoplists" in
several languages.

Supported Languages
        |-----------------------------------------------------------|
        | Language   | ISO code | default encoding | also available |
        |-----------------------------------------------------------|
        | Danish     | da       | ISO-8859-1       | UTF-8          | 
        | Dutch      | nl       | ISO-8859-1       | UTF-8          | 
        | English    | en       | ISO-8859-1       | UTF-8          |
        | Finnish    | fi       | ISO-8859-1       | UTF-8          |
        | French     | fr       | ISO-8859-1       | UTF-8          |
        | German     | de       | ISO-8859-1       | UTF-8          | 
        | Hungarian  | hu       | ISO-8859-1       | UTF-8          | 
        | Italian    | it       | ISO-8859-1       | UTF-8          | 
        | Norwegian  | no       | ISO-8859-1       | UTF-8          | 
        | Portuguese | pt       | ISO-8859-1       | UTF-8          | 
        | Spanish    | es       | ISO-8859-1       | UTF-8          | 
        | Swedish    | sv       | ISO-8859-1       | UTF-8          | 
        | Russian    | ru       | KOI8-R           | UTF-8          | 
        |-----------------------------------------------------------|

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4988 |21cr|perl-Linux-DesktopFiles-0.250.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Linux-DesktopFiles
%define upstream_version 0.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:    1

Summary:    Get and parse the Linux desktop files
Summary(ru_RU.UTF-8):    Получение и анализ файлов рабочего стола Linux
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Linux/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl-Test
BuildRequires:  perl-Test-Simple
BuildArch:	noarch

%description
A fast module to get and parse the Linux .desktop files.

%description -l ru_RU.UTF-8
Быстрый модуль для получения и анализа .desktop файлов.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4989 |21cr|perl-Linux-Distribution-0.230.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Linux-Distribution
%define upstream_version 0.23

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Perl extension to detect on which Linux distribution we are running
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/C/CH/CHORNY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: lsb-release
BuildRequires: perl-devel

BuildArch: noarch

%description
This is a simple module that tries to guess on what linux distribution we
are running by looking for release's files in /etc. It now looks for
'lsb-release' first as that should be the most correct and adds ubuntu
support. Secondly, it will look for the distro specific files.

It currently recognizes slackware, debian, suse, fedora, redhat,
turbolinux, yellowdog, knoppix, conectiva, immunix, tinysofa,
va-linux, trustix, adamantix, yoper, arch-linux, libranet, gentoo, ubuntu,
scientific, oracle enterprise linux, amazon linux and redflag.

It has function to get the version for debian, suse, fedora, redhat,
gentoo, slackware, scientific, oracle enterprise linux, amazon linux,
redflag and ubuntu(lsb). People running unsupported distro's are greatly
encouraged to submit patches :-).
# It seems that we are running on rosadesktopfresh version 2014.1 :-)

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# Can not read /etc stuff on abf, after install on real HW:
#1..2
#ok 1 - use Linux::Distribution;
#ok 2 - Checking your distro...
# It seems that we are running on rosadesktopfresh version 2014.1
# Symbianflo.
rm -fr t/Linux-Distribution.t
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4990 |21cr|perl-Linux-Inotify2-2.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Linux-Inotify2
%define upstream_version 2.3

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	1

Summary:	Scalable directory/file change notification

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Linux/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
Requires:	perl(common::sense)

%description
This module implements an interface to the Linux 2.6.13 and later
Inotify file/directory change notification sytem.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%clean

%files
%doc README COPYING Changes
%{perl_vendorarch}/Linux
%{perl_vendorarch}/auto/Linux
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4991 |21cr|perl-List-Compare-0.550.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 List-Compare
%define upstream_version 0.55

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Compare elements of two or more lists

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JK/JKEENAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::CaptureOutput)
BuildRequires:	perl(Capture::Tiny)
BuildArch:	noarch

%description
This module allows to compare elements of two or more lists.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc Changes FAQ META.json META.yml README
%{perl_vendorlib}/List
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4992 |21cr|perl-List-SomeUtils-0.580.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    List-SomeUtils
%define upstream_version 0.58

Name:           perl-List-SomeUtils
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Provide the stuff missing in List::Util
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/List-SomeUtils
Source0:        https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/List-SomeUtils-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::HasCompiler)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(lib)
BuildRequires:  perl(strict)
BuildRequires:  perl(Text::ParseWords)
BuildRequires:  perl(warnings)
BuildRequires:  sed
# Run-time
BuildRequires:  perl(Carp)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Module::Implementation)
BuildRequires:  perl(vars)
# Tests
BuildRequires:  perl(base)
BuildRequires:  perl(Config)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Storable)
BuildRequires:  perl(Test::Builder::Module)
BuildRequires:  perl(Test::LeakTrace)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Tie::Array)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Carp)

%description
List::SomeUtils provides some trivial but commonly needed functionality on
lists which is not going to go into List::Util.

%prep
%setup -q -n List-SomeUtils-%{upstream_version}

# Remove bundled libraries
rm -r inc
sed -i -e '/^inc\// d' MANIFEST

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4993 |21cr|perl-List-UtilsBy-0.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    List-UtilsBy
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Higher-order list utility functions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/P/PE/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Exporter) >= 5.720.0
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module provides a number of list utility functions, all of which take
an initial code block to control their behaviour. They are variations on
similar core perl or 'List::Util' functions of similar names, but which use
the block to control their behaviour. For example, the core Perl function
'sort' takes a list of values and returns them, sorted into order by their
string value. The 'sort_by' function sorts them according to the string
value returned by the extra function, when given each value.

 my @names_sorted = sort @names;

 my @people_sorted = sort_by { $_->name } @people;

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4994 |21cr|perl-Locale-Codes-3.730.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Locale-Codes
%define upstream_version 3.73

%global __requires_exclude ^perl\\(Locale::Codes::Country_Retired\\)|^perl\\(Locale::Codes::LangFam_Retired\\)|^perl\\(Locale::Codes::Script_Retired\\)|^perl\\(Locale::Codes::LangExt_Codes\\)|^perl\\(Locale::Codes::LangFam_Codes\\)|^perl\\(Locale::Codes::Script_Codes\\)|^perl\\(Locale::Codes::Language_Codes\\)|^perl\\(Locale::Codes::LangExt_Retired\\)|^perl\\(Locale::Codes::Currency_Codes\\)|^perl\\(Locale::Codes::LangVar_Retired\\)|^perl\\(Locale::Codes::Language_Retired\\)|^perl\\(Locale::Codes::Country_Codes\\)|^perl\\(Locale::Codes::LangVar_Codes\\)|^perl\\(Locale::Codes::Currency_Retired\\)

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Retired langfam codes for the Locale::Codes::LangFam module
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/S/SB/SBECK/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel
BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Storable)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Inter)
BuildRequires: perl(utf8)

BuildArch: noarch

%description
*Locale-Codes* is a distribution containing a set of modules. The modules
each deal with different types of codes which identify parts of the locale
including languages, countries, currency, etc.

Currently, the following modules are included:

* *Locale::Codes::Country, Locale::Country*

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.json README META.yml Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4995 |21cr|perl-Locale-Maketext-1.260.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Locale-Maketext
%define upstream_version 1.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Framework for software localization


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Locale/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(I18N::LangTags)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
It is a common feature of applications (whether run directly, or via the
Web) for them to be "localized" -- i.e., for them to a present an English
interface to an English-speaker, a German interface to a German-speaker,
and so on for all languages it's programmed with. Locale::Maketext is a
framework for software localization; it provides you with the tools for
organizing and accessing the bits of text and text-processing code that you
need for producing localized applications.

In order to make sense of Maketext and how all its components fit together,
you should probably go read Locale::Maketext::TPJ13, and _then_ read the
following documentation.

You may also want to read over the source for 'File::Findgrep' and its
constituent modules -- they are a complete (if small) example application
that uses Maketext.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc ChangeLog README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4996 |21cr|perl-Locale-Maketext-Fuzzy-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Locale-Maketext-Fuzzy
%define upstream_version 0.11
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.11
Release:	6

Summary:	Maketext from already interpolated strings 

License:	MIT
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/Locale-Maketext-Fuzzy-0.11.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Package)
BuildArch:	noarch

%description
This module is a subclass of Locale::Maketext, with additional support for 
localizing messages that already contains interpolated variables. 
This is most useful when the messages are returned by external modules 
-- for example, to match 
  dir: command not found 
against 
  [_1]: command not found.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4997 |21cr|perl-Locale-Maketext-Gettext-1.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Locale-Maketext-Gettext
%define upstream_version 1.32

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Joins the gettext and Maketext frameworks
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Locale/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Test)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Locale::Maketext::Gettext joins the GNU gettext and Maketext frameworks. It
is a subclass of Locale::Maketext/3 that follows the way GNU gettext works.
It works seamlessly, _both in the sense of GNU gettext and Maketext_. As a
result, you _enjoy both their advantages, and get rid of both their
problems, too._

You start as an usual GNU gettext localization project: Work on PO files
with the help of translators, reviewers and Emacs. Turn them into MO files
with _msgfmt_. Copy them into the appropriate locale directory, such as
_/usr/share/locale/de/LC_MESSAGES/myapp.mo_.

Then, build your Maketext localization class, with your base class changed
from Locale::Maketext/3 to Locale::Maketext::Gettext. That is all.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm t/00-signature.t

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README* Changes
%{_bindir}/maketext
%{_mandir}/man3/*
%{_mandir}/man1/maketext.1.*
%{perl_vendorlib}/Locale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4998 |21cr|perl-Locale-Maketext-Lexicon-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Locale-Maketext-Lexicon
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl module to use other catalog formats in Maketext

License:	MIT
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/Locale/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(YAML)
BuildRequires:	perl(Test)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Locale::Maketext::Lexicon is a module providing lexicon-handling backends, for
Locale::Maketext to read from other localization formats, such as PO files,
MO files, or from databases via the Tie interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{perl_vendorlib}/Locale
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 4999 |21cr|perl-Locale-Maketext-Simple-0.210.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Locale-Maketext-Simple
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

License:	MIT
Group:		Development/Perl
Summary:	Perl module to use other catalog formats in Maketext

Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Locale/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Locale::Maketext::Lexicon)
BuildArch:	noarch
Requires:	perl(Locale::Maketext::Lexicon)

%description
Locale::Maketext::Simple is simple interface to Locale::Maketext::Lexicon,
a module providing lexicon-handling backends, for "Locale::Maketext" 
to read from other localization formats, such as PO files, MO files, 
or from databases via the "Tie" interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes README
%{perl_vendorlib}/Locale
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5000 |21cr|perl-Locale-Msgfmt-0.150.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Locale-Msgfmt
%define upstream_version 0.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Functions used internally by Locale::Msgfmt

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Locale/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This module does the same thing as msgfmt from GNU gettext-tools, except this
is pure Perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Locale
%{perl_vendorlib}/Module

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5001 |21cr|perl-Locale-PO-0.270.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Locale-PO
%define upstream_version 0.27

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Perl module for manipulating .po entries from GNU gettext
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Locale-PO/
Source0:        http://search.cpan.org/CPAN/authors/id/C/CO/COSIMO/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Slurp)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(utf8)
BuildRequires:  perl(warnings)
Requires:       perl(Carp)

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
#-------------------------------------------------------

%description
This module simplifies management of GNU gettext .po files and is an
alternative to using emacs po-mode. It provides an object-oriented
interface in which each entry in a .po file is a Locale::PO object.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make 


%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5002 |21cr|perl-local-lib-2.0.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    local-lib
%define upstream_version 2.000024

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Create and use a local lib/ for perl modules with PERL5LIB

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/local/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::Install)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(Module::Build)
BuildRequires: perl-devel

BuildArch: noarch

Provides: perl(local::lib)

%description
This module provides a quick, convenient way of bootstrapping a user-local
Perl module library located within the user's home directory. It also
constructs and prints out for the user the list of environment variables
using the syntax appropriate for the user's current shell (as specified by
the 'SHELL' environment variable), suitable for directly adding to one's
shell configuration file.

More generally, local::lib allows for the bootstrapping and usage of a
directory containing Perl modules outside of Perl's '@INC'. This makes it
easier to ship an application with an app-specific copy of a Perl module,
or collection of modules. Useful in cases like when an upstream maintainer
hasn't applied a patch to a module of theirs that you need for your
application.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# %check
# %make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5003 |21cr|perl-LockFile-Simple-0.208.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 LockFile-Simple
%define upstream_version 0.208

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.208
Release:	6

Summary:	The LockFile::Simple extension provides simple file locking

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/S/SC/SCHWIGON/lockfile-simple/LockFile-Simple-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description 
The LockFile::Simple extension provides simple file locking, of the
advisory kind, i.e. it requires cooperation between applications wishing
to lock the same files.

It is meant to be used in quick-and-dirty scripts or more elaborated
programs that want a simple locking scheme, yet with a reasonable
level of configuration.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%files
%defattr(444,root,root,755)
%doc ChangeLog README
%{perl_vendorlib}/LockFile/*.pm
%{perl_vendorlib}/LockFile/Lock/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5004 |21cr|perl-Log-Agent-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Log-Agent
%define upstream_version 1.000

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:  	Logging agent 

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}/
Source:		http://www.cpan.org/authors/id/M/MR/MROGASKI/Log-Agent-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Log::Agent is a general logging framework aimed at reusable modules.

%prep
%setup -q -n %{module}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc README
%{perl_vendorlib}/Log
%{perl_vendorlib}/auto/Log
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5005 |21cr|perl-Log-Agent-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Log-Agent
%define upstream_version 1.005

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:  	Logging agent 

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}/
Source:		http://www.cpan.org/authors/id/M/MR/MROGASKI/Log-Agent-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Test)
BuildArch:	noarch

%description
Log::Agent is a general logging framework aimed at reusable modules.

%prep
%setup -q -n %{module}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Log
%{perl_vendorlib}/auto/Log
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5006 |21cr|perl-Log-Any-1.40.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Any
%define upstream_version 1.040

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Allows CPAN modules to safely and efficiently log messages

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Log/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::Simple)
Provides:		perl(Log::Any::Adapter::Core) = %{EVRD}

BuildArch:	noarch

# https://bugzilla.redhat.com/show_bug.cgi?id=1178719#c0
Obsoletes:  perl-Log-Any-Adapter < 0.110.0-6

%description
'Log::Any' allows CPAN modules to safely and efficiently log messages,
while letting the application choose (or decline to choose) a logging
mechanism such as 'Log::Dispatch' or 'Log::Log4perl'.

'Log::Any' has a very tiny footprint and no dependencies beyond Perl 5.6,
which makes it appropriate for even small CPAN modules to use. It defaults
to 'null' logging activity, so a module can safely log without worrying
about whether the application has chosen (or will ever choose) a logging
mechanism.

The application, in turn, may choose one or more logging mechanisms via
Log::Any::Adapter.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5007 |21cr|perl-Log-Any-Adapter-Callback-0.90.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Any-Adapter-Callback
%define upstream_version 0.09

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Send Log::Any logs to a subroutine
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Log/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Log::Any::Adapter)
BuildRequires: perl(Test::More)

BuildArch: noarch

%description
This adapter lets you specify callback subroutine to be called by
Log::Any's logging methods (like $log->debug(), $log->error(), etc) and
detection methods (like $log->is_warning(), $log->is_fatal(), etc.).

This adapter is used for customized logging, and is mostly a convenient
construct to save a few lines of code. You could achieve the same effect by
creating a full Log::Any adapter class.

Your logging callback subroutine will be called with these arguments:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5008 |21cr|perl-Log-Any-Adapter-Dispatch-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Any-Adapter-Dispatch
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	This Log::Any adapter uses Log::Dispatch for logging

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Log/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Log::Dispatch)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Log::Any::Adapter)
BuildArch:	noarch

%description
This Log::Any adapter uses Log::Dispatch for logging.

You may either pass parameters (like _outputs_) to be passed to
'Log::Dispatch->new', or pass a 'Log::Dispatch' object directly in the
_dispatcher_ parameter.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5009 |21cr|perl-Log-Contextual-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Contextual
%define upstream_version 0.008001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Super simple logger made for playing with Log::Contextual

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Log/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Dumper::Concise)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Exporter::Declare)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(aliased)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Log::Log4perl)

BuildArch:	noarch

%description
This module is a simple interface to extensible logging. It is bundled with
a really basic logger, the Log::Contextual::SimpleLogger manpage, but in
general you should use a real logger instead of that. For something more
serious but not overly complicated, try the Log::Dispatchouli manpage (see
the /SYNOPSIS manpage for example.)

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json LICENSE README CONTRIBUTING
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5010 |21cr|perl-Log-Dispatch-2.700.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Dispatch
%define upstream_version 2.70

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl modules for logging messages to multiple outputs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/authors/id/D/DR/DROLSKY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Mail::Sender)
BuildRequires:	perl(Mail::Sendmail)
BuildRequires:	perl(MIME::Lite)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl(Devel::GlobalDestruction)
BuildRequires:	perl(Specio::Exporter)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(Params::ValidationCompiler)
BuildRequires:	perl(Sys::Syslog)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Needs)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5


BuildArch:	noarch

%description 
Log::Dispatch is a suite of OO modules for logging messages to multiple
outputs, each of which can have a minimum and maximum log level.  It is
designed to be easily subclassed, both for creating a new dispatcher object and
particularly for creating new outputs.

%files
%doc Changes LICENSE README.md META.json META.yml
%{perl_vendorlib}/Log
%exclude %{perl_vendorlib}/Log/Dispatch/ApacheLog.pm
%exclude %{_mandir}/*/Log::Dispatch::ApacheLog*
%{_mandir}/*/*
#--------------------------------------------

%package ApacheLog
Summary: Apache mod_perl dispatcher for Log::Dispatch

Group:   Development/Perl

%description ApacheLog
Log::Dispatch::ApacheLog is a dispatcher for apache logging, used with
mod_perl.

%files ApacheLog
%doc Changes LICENSE README.md META.json META.yml
%{perl_vendorlib}/Log/Dispatch/ApacheLog.pm
%{_mandir}/*/Log::Dispatch::ApacheLog*
#--------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5011 |21cr|perl-Log-Dispatch-Array-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Dispatch-Array
%define upstream_version 1.005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Log events to an array (reference)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Log/Log-Dispatch-Array-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Log::Dispatch::Output)
BuildRequires:	perl(Test::Deep)
BuildArch:	noarch

%description
This provides a Log::Dispatch log output system that appends logged events
to an array reference. This is probably only useful for testing the logging
of your code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5012 |21cr|perl-Log-Dispatch-Config-1.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Dispatch-Config
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Log4j for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MI/MIYAGAWA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Simple)  >= 0.420.0
BuildRequires:	perl(AppConfig)     >= 1.520.0
BuildRequires:	perl(IO::Stringy)
BuildRequires:	perl(Log::Dispatch) >= 2.110.0

BuildArch:	noarch

%description 
Log::Dispatch::Config is a subclass of Log::Dispatch and provides a way
to configure Log::Dispatch object with configulation file (default, in
AppConfig format). I mean, this is log4j for Perl, not with all API
compatibility though.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
%make

%check
%make test

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc Changes README
%{perl_vendorlib}/Log/Dispatch*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5013 |21cr|perl-Log-Dispatch-Configurator-Any-1.122.640-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version 1.122640
%define upstream_name Log-Dispatch-Configurator-Any

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Configurator implementation with Config::Any


License:        GPL+ or Artistic
Group:          Development/Perl
URL:            https://search.cpan.org/dist/Log-Dispatch-Configurator-Any/
Source0:        https://www.cpan.org/authors/id/O/OL/OLIVER/Log-Dispatch-Configurator-Any-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  perl(Carp)
BuildRequires:  perl(Config::Any) >= 0.15
BuildRequires:  perl(Config::Tiny)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Log::Dispatch) >= 2.23
BuildRequires:  perl(Log::Dispatch::Config)
BuildRequires:  perl(Log::Dispatch::Configurator)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod) >= 1.14
BuildRequires:  perl(Test::Pod::Coverage) >= 1.04
BuildRequires:  perl(YAML::Tiny)
BuildRequires:  perl-devel

%description
Log::Dispatch::Config is a wrapper for Log::Dispatch and provides a way to
configure Log::Dispatch objects with configuration files. Somewhat like a lite
version of log4j and Log::Log4perl it allows multiple log destinations. The
standard configuration file format for Log::Dispatch::Config is AppConfig.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%check
make test

%files
%doc Changes examples LICENSE META.json script
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5014 |21cr|perl-Log-Dispatch-FileRotate-1.380.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Dispatch-FileRotate
%define upstream_version 1.38

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Log to files that archive/rotate themselves
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Log/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Date::Manip)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Fcntl)
BuildRequires: perl(Log::Dispatch::Output)
BuildRequires: perl(Params::Validate)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Warn)
BuildRequires: perl-devel

BuildArch: noarch

%description
This module provides a simple object for logging to files under the
Log::Dispatch::* system, and automatically rotating them according to
different constraints. This is basically a Log::Dispatch::File wrapper with
additions. To that end the arguments

	name, min_level, filename and  mode

behave the same as Log::Dispatch::File. So see its man page (perldoc
Log::Dispatch::File)

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5015 |21cr|perl-Log-Dispatchouli-2.23.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Dispatchouli
%define upstream_version 2.023

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A system for sharing a global, dynamically-scoped logger
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Log/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(Log::Dispatch)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(Log::Dispatch::File)
BuildRequires: perl(Log::Dispatch::Screen)
BuildRequires: perl(Log::Dispatch::Syslog)
BuildRequires: perl(Params::Util)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(String::Flogger)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Sub::Exporter::GlobExporter)
BuildRequires: perl(Sys::Syslog)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(base)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
Log::Dispatchouli is a thin layer above the Log::Dispatch manpage and meant
to make it dead simple to add logging to a program without having to think
much about categories, facilities, levels, or things like that. It is meant
to make logging just configurable enough that you can find the logs you
want and just easy enough that you will actually log things.

Log::Dispatchouli can log to syslog (if you specify a facility), standard
error or standard output, to a file, or to an array in memory. That last
one is mostly useful for testing.

In addition to providing as simple a way to get a handle for logging
operations, Log::Dispatchouli uses the String::Flogger manpage to process
the things to be logged, meaning you can easily log data structures.
Basically: strings are logged as is, arrayrefs are taken as (sprintf
format, args), and subroutines are called only if needed. For more
information read the the String::Flogger manpage docs.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5016 |21cr|perl-Log-Dispatch-Perl-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Dispatch-Perl
%define upstream_version 0.05

Name:           perl-Log-Dispatch-Perl
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Use core Perl functions for logging
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Log-Dispatch-Perl
Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETHER/Log-Dispatch-Perl-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Log::Dispatch) >= 1.16
BuildRequires:  perl(Log::Dispatch::Output)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(warnings)
Requires:       perl(Carp)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
The "Log::Dispatch::Perl" module offers a logging alternative using
standard Perl core functions. It allows you to fall back to the common Perl
alternatives for logging, such as "warn" and "cluck". It also adds the
possibility for a logging action to halt the current environment, such as
with "die" and "croak".

%prep
%setup -q -n Log-Dispatch-Perl-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README LICENCE
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5017 |21cr|perl-Logfile-Rotate-1.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Logfile-Rotate
%define upstream_version    1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Perl module to rotate logfiles

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Logfile/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl module to rotate logfiles.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files 
%doc MANIFEST 
%{perl_vendorlib}/Logfile/Rotate.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5018 |21cr|perl-Log-Handler-0.900.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Handler
%define upstream_version 0.90

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	A simple log file handler

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BL/BLOONIX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Config::General)
BuildRequires:	perl(Config::Properties)
BuildRequires:	perl(DBI)
BuildRequires:	perl(Email::Date)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(Net::SMTP)
BuildRequires:	perl(YAML)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Sys::Hostname)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module is just a simple object oriented log file handler and very easy to
use.  It's possible to define a log level for your programs and control the
amount of informations that will be logged to the log file. In addition it's
possible to configure how you wish to open the log file - transient or
permanent - and lock and unlock the log file by each write operation. If you
wish you can assign the handler to check the inode of the log file (not on
Windows). That could be very useful if a rotate mechanism moves and zip the log
file.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 
find . -type f -exec chmod 644 {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.json META.yml ChangeLog README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5019 |21cr|perl-Log-Log4perl-1.550.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Log4perl
%define upstream_version 1.55

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Colorize messages according to level
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Log/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(Log::Dispatch::FileRotate)
BuildRequires: perl-devel

BuildArch: noarch

%description
Log::Log4perl lets you remote-control and fine-tune the logging behaviour
of your system from the outside. It implements the widely popular
(Java-based) Log4j logging package in pure Perl.

*For a detailed tutorial on Log::Log4perl usage, please read*

the http://www.perl.com/pub/a/2002/09/11/log4perl.html manpage

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

pushd %{buildroot}%{perl_vendorlib}/Log/Log4perl
find . -type f -name "*.pm" -exec chmod -x  {} \;
popd

%files
%doc Changes META.yml README META.json LICENSE
%{_bindir}/*
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5020 |21cr|perl-Log-Trace-1.70.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Log-Trace
%define upstream_version 1.070

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	A guide to using Log::Trace

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Log/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
A module to provide a unified approach to tracing. A script can 'use
Log::Trace qw( < mode > )' to set the behaviour of the TRACE function.

By default, the trace functions are exported to the calling package only.
You can export the trace functions to other packages with the 'Deep'
option. See the "OPTIONS" manpage for more information.

All exports are in uppercase (to minimise collisions with "real"
functions).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5021 |21cr|perl-Log-TraceMessages-1.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Log-TraceMessages

Summary:	Log::TraceMessages Perl Module

License:	GPL or Artistic
Name:		perl-%{module}
Version:	1.4
Release:	13
Group:		Development/Perl
Url:		http://www.cpan.org/
Source0:	%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl(HTML::FromText)
BuildArch:	noarch


%description
Log::TraceMessages

This module is a better way of putting 'hello there' trace messages in
your code.  It lets you turn tracing on and off without commenting out
trace statements, and provides other useful things like HTML-ified
trace messages for CGI scripts and an easy way to trace out data
structures using Data::Dumper.

%prep
%setup -q -n %{module}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Log/TraceMessages.pm
%{perl_vendorlib}/auto/Log/TraceMessages/autosplit.ix
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5022 |21cr|perl-LWP-ConsoleLogger-0.0.44-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name LWP-ConsoleLogger
%define upstream_version 0.000044

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	LWP tracing and debugging
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/LWP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Data::Printer)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(HTML::FormatText::WithLinks)
BuildRequires:	perl(HTML::Restrict)
BuildRequires:	perl(HTTP::Body)
BuildRequires:	perl(HTTP::CookieMonster)
BuildRequires:	perl(HTTP::CookieJar::LWP)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(Log::Dispatch)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(List::AllUtils)
BuildRequires:	perl(MooX::StrictConstructor)
BuildRequires:	perl(Parse::MIME)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Plack::Handler::HTTP::Server::Simple)
BuildRequires:	perl(Plack::Test)
BuildRequires:	perl(Plack::Test::Agent)
BuildRequires:	perl(Ref::Util)
BuildRequires:	perl(String::Trim)
BuildRequires:	perl(Term::Size::Any)
BuildRequires:	perl(Test::FailWarnings)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Test::LWP::UserAgent)
BuildRequires:	perl(Text::SimpleTable::AutoWidth)
BuildRequires:	perl(URI::Query)
BuildRequires:	perl(XML::Simple)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Term::Size::Perl)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
BETA BETA BETA. This is currently an experiment. Things could change.
Please adjust accordingly.

It can be hard (or at least tedious) to debug mechanize scripts.
LWP::Debug is deprecated. It suggests you write your own debugging
handlers, set up a proxy or install Wireshark. Those are all workable
solutions, but this module exists to save you some of that work. The
guts of this module are stolen from Plack::Middleware::DebugLogging,
which in turn stole most of its internals from Catalyst. If you're new
to LWP::ConsoleLogger, I suggest getting started with the
LWP::ConsoleLogger::Easy wrapper. This will get you up and running in
minutes. If you need to tweak the settings that
LWP::ConsoleLogger::Easy chooses for you (or if you just want to be
fancy), please read on.

Since this is a debugging library, I've left as much mutable state as
possible, so that you can easily toggle output on and off and otherwise
adjust how you deal with the output.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5023 |21cr|perl-LWP-Online-1.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LWP-Online
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Does your process have access to the web

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/LWP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
This module attempts to answer, as accurately as it can, one of the
nastiest technical questions there is.

*Am I on the internet?*

The answer is useful in a wide range of decisions. For example...

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5024 |21cr|perl-LWP-Protocol-http10-6.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LWP-Protocol-http10
%define upstream_version 6.03



Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:        Legacy HTTP/1.0 support for LWP
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/%{upstream_name}
Source0:        http://www.cpan.org/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(HTTP::Response)
BuildRequires:  perl(HTTP::Status)
BuildRequires:  perl(LWP::Protocol)

BuildArch:      noarch

%description
The LWP::Protocol::http10 module provides support for using HTTP/1.0
protocol with LWP. To use it you need to call LWP::Protocol::implementor()
to override the standard handler for http URLs.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make


%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5025 |21cr|perl-LWP-Protocol-PSGI-0.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LWP-Protocol-PSGI
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Override LWP's HTTP/HTTPS backend with your own PSGI applciation
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/LWP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(HTTP::Message::PSGI)
BuildRequires: perl(LWP) >= 5.0.0
BuildRequires: perl(LWP::Protocol)
BuildRequires: perl(Module::Build::Tiny) >= 0.34.0
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Test::Requires)
BuildRequires: perl(parent)
BuildArch:     noarch

%description
LWP::Protocol::PSGI is a module to hijack *any* code that uses the
LWP::UserAgent manpage underneath such that any HTTP or HTTPS requests can
be routed to your own PSGI application.

Because it works with any code that uses LWP, you can override various
WWW::*, Net::* or WebService::* modules such as the WWW::Mechanize manpage,
without modifying the calling code or its internals.

  use WWW::Mechanize;
  use LWP::Protocol::PSGI;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5026 |21cr|perl-LWP-UserAgent-Cached-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LWP-UserAgent-Cached
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Does your process have access to the web
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/LWP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
When you process content from some website,
you will get page one by one and extract
some data from this page with regexp,
DOM parser or smth else.
Sometimes we makes errors in our data
extractors and realize this only when all 1_000_000
pages were processed. We should fix our
extraction logic and start all process
from the beginning. Please STOP!
How about cache? Yes, you can cache all
responses and second, third and other
attempts will be very fast.

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*
#------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5027 |21cr|perl-LWPx-ParanoidAgent-1.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LWPx-ParanoidAgent
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Paranoid subclass of LWP::UserAgent

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/LWPx/LWPx-ParanoidAgent-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(Time::HiRes)
BuildArch:	noarch

%description
The 'LWPx::ParanoidAgent' is a class subclassing 'LWP::UserAgent', but
paranoid against attackers. It's to be used when you're fetching a remote
resource on behalf of a possibly malicious user.

This class can do whatever 'LWP::UserAgent' can (callbacks, uploads from
files, etc), except proxy support is explicitly removed, because in that
case you should do your paranoia at your proxy.

Also, the schemes are limited to http and https, which are mapped to
'LWPx::Protocol::http_paranoid' and 'LWPx::Protocol::https_paranoid',
respectively, which are forked versions of the same ones without the
"_paranoid". Subclassing them didn't look possible, as they were
essentially just one huge function.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Fail on ABF
#make test

%install
%makeinstall_std

%files
%doc ChangeLog META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5028 |21cr|perl-LWPx-TimedHTTP-1.800.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name LWPx-TimedHTTP
%define upstream_version 1.8

Summary:	LWPx::TimedHTTP - time the different stages of an HTTP request 

Name:		perl-%{real_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{real_name}
Source0:	http://www.cpan.org/authors/id/S/SI/SIMONW/LWPx-TimedHTTP-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(HTTP::Daemon)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl-libwww-perl
BuildArch:	noarch

%description
This module performs an HTTP request exactly the same as LWP does
normally except for the fact that it times each stage of the
request and then inserts the results as header. It's useful for
debugging where abouts in a connection slow downs are occuring.

%prep
%setup -q -n %{real_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
install -d %{buildroot}%{perl_vendorlib}/LWPx
install -d %{buildroot}%{_mandir}/man3/

install -m0644 blib/lib/LWPx/TimedHTTP.pm %{buildroot}%{perl_vendorlib}/LWPx/
install -m0644 blib/libdoc/LWPx::TimedHTTP.3pm %{buildroot}%{_mandir}/man3/

%files
%doc Changes
%dir %{perl_vendorlib}/LWPx
%{perl_vendorlib}/LWPx/TimedHTTP.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5029 |21cr|perl-Mail-Box-3.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mail-Box
%define upstream_version 3.009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Handle quoted-printable message bodies
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Mail/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl-Test-Pod-Coverage
BuildRequires: perl-Test
BuildRequires: perl(Date::Format)
BuildRequires: perl(Date::Parse)
BuildRequires: perl(Devel::GlobalDestruction)
BuildRequires: perl(Digest::HMAC_MD5)
BuildRequires: perl(Encode)
BuildRequires: perl(Errno)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Remove)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Scalar)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(MIME::Types)
BuildRequires: perl(Mail::Address)
BuildRequires: perl(Object::Realize::Later)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(TAP::Harness)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Time::Zone)
BuildRequires: perl(URI)
BuildRequires: perl(User::Identity)
BuildRequires: perl(HTML::FormatText)
BuildRequires: perl(MIME::Entity)
BuildRequires: perl(Mail::IMAPClient)
BuildRequires: perl(Mail::Transport::Dbx)
BuildRequires: perl(Email::Simple)
BuildRequires: perl(Email::Abstract)
BuildRequires: perl(Text::Autoformat)
BuildRequires: perl(Font::Metrics::TimesRoman)
BuildRequires: perl(Mail::Box::Parser::Perl)
BuildRequires: perl(Mail::Message)

Provides:   perl(Mail::Message::Construct)

BuildArch: noarch

%description
A Mail::Box::Manager creates 'Mail::Box' objects. But you already knew,
because you started with the Mail::Box-Overview manual page. That page is
obligatory reading, sorry!

'Mail::Box' is the base class for accessing various types of mailboxes
(folders) in a uniform manner. The various folder types vary on how they
store their messages, but when some effort those differences could be
hidden behind a general API. For example, some folders store many messages
in one single file, where other store each message in a separate file
withing the same directory.

No object in your program will be of type 'Mail::Box': it is only used as
base class for the real folder types. 'Mail::Box' is extended by

%prep
%setup -qn %{upstream_name}-%{upstream_version}
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog


%build
PERL_MM_USE_DEFAULT=1 perl Makefile.PL INSTALLDIRS=vendor

%make

#%check
#%make test

%install
%makeinstall_std

find %{buildroot} -name '.packlist' -delete
find %{buildroot} -name '*.pod' -delete

%files
%doc META.yml README ChangeLog META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5030 |21cr|perl-Mail-DomainKeys-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Mail-DomainKeys

Summary:	Perl module that implements DomainKeys

Name:		perl-%{module}
Version:	1.0
Release:	12
License:	Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Mail-DomainKeys/
Source0:	http://www.cpan.org/modules/by-module/Mail/%{module}-%{version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Crypt::OpenSSL::RSA)
BuildRequires:	perl(Mail::Address)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Net::DNS) => 0.34,
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Mail-DomainKeys is a Perl module that implements DomainKeys.

%prep
%setup -q -n %{module}-%{version}

%build
echo "y" | %__perl Makefile.PL INSTALLDIRS="vendor"
%make

%check
make test

%install
%makeinstall_std

%files
%defattr(-,root,root,0755)
%doc Changes README THANKS
%dir %{perl_vendorlib}/Mail/DomainKeys
%dir %{perl_vendorlib}/Mail/DomainKeys/Key
%{perl_vendorlib}/Mail/DomainKeys/*.pm
%{perl_vendorlib}/Mail/DomainKeys/Key/*.pm
%{perl_vendorlib}/Mail/DomainKeys.pm
%{_mandir}/man3/Mail::DomainKeys.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5031 |21cr|perl-Mail-IMAPClient-3.430.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mail-IMAPClient
%define upstream_version 3.43

# We never had it and unlikely really need
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Mozilla::LDAP::Conn\\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	An IMAP Client API

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Mail/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Carp)
BuildRequires:	perl(Errno)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(IO::Select)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Socket)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides Perl routines that simplify a sockets connection to and an
IMAP conversation with an IMAP server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# fix perl path
find -type f | xargs perl -pi -e "s|/usr/local/bin/perl|%{_bindir}/perl|g"

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
make test

%install
%makeinstall_std
# fix permissions
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

%files
%doc README examples
%{perl_vendorlib}/Mail
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5032 |21cr|perl-Mail-Mbox-MessageParser-1.511.100-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Mail-Mbox-MessageParser
%define	upstream_version 1.5111

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Epoch:		1
Summary:	A fast and simple mbox folder reader 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Mail/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(FileHandle::Unget)
BuildRequires:	perl(Text::Diff)
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module implements a fast but simple mbox folder reader. One of three
implementations (Cache, Grep, Perl) will be used depending on the wishes of the
user and the system configuration. The first implementation is a cached-based
one which stores email information about mailboxes on the file system.
Subsequent accesses will be faster because no analysis of the mailbox will be
needed. The second implementation is one based on GNU grep, and is
significantly faster than the Perl version for mailboxes which contain very
large (10MB) emails. The final implementation is a fast Perl-based one which
should always be applicable.

The Cache implementation is about 6 times faster than the standard Perl
implementation. The Grep implementation is about 4 times faster than the
standard Perl implementation. If you have GNU grep, it's best to enable both
the Cache and Grep implementations. If the cache information is available,
you'll get very fast speeds. Otherwise, you'll take about a 1/3 performance hit
when the Grep version is used instead.

The overriding requirement for this module is speed. If you wish more
sophisticated parsing, use Mail::MboxParser (which is based on this module) or
Mail::Box.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES LICENSE README META.yml
%{perl_vendorlib}/Mail
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5033 |21cr|perl-Mail-MboxParser-0.550.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Mail-MboxParser
%define	upstream_version 0.55

%global __requires_exclude perl\\(Mail::MboxParser::Mail\\)|perl\\(Mail::MboxParser::Base\\)|perl\\(Mail::MboxParser::Mail::Body\\)|perl\\(Mail::MboxParser::Mail::Convertable\\)
%global __provides_exclude perl\\(Mail::MboxParser::Mail\\)|perl\\(Mail::MboxParser::Base\\)|perl\\(Mail::MboxParser::Mail::Body\\)|perl\\(Mail::MboxParser::Mail::Convertable\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	13
Summary:	Read-only access to UNIX-mailboxes 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Mail/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Mail-MboxParser-0.55-debian_bug_395268.diff

BuildRequires:	perl-devel
BuildRequires:	perl-MIME-tools
BuildArch:	noarch
Requires:	perl-Mail-Mbox-MessageParser

%description
This module attempts to provide a simplified access to standard UNIX-mailboxes.
It offers only a subset of methods to get 'straight to the point'. More
sophisticated things can still be done by invoking any method from MIME::Tools
on the appropriate return values.

Mail::MboxParser has not been derived from Mail::Box and thus isn't acquainted
with it in any way. It, however, incorporates some invaluable hints by the
author of Mail::Box, Mark Overmeer.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p0

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

#%%check
#%{__make} test <- https://rt.cpan.org/Public/Bug/Display.html?id=66576

%install
%makeinstall_std

%files
%doc Changelog README
%{perl_vendorlib}/Mail
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5034 |21cr|perl-Mail-Message-3.011-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global perl_bootstrap 1
%define upstream_name    Mail-Message
%define upstream_version 3.011

Name:       perl-%{upstream_name}
Version:    %{upstream_version}
Release:    1
Summary:    MIME message handling
Group:      Development/C
License:    GPL+ or Artistic
Url:        https://metacpan.org/release/Mail-Message
Source0:    https://cpan.metacpan.org/authors/id/M/MA/MARKOV/Mail-Message-%{version}.tar.gz

# Remember when we could assume build environments had common packages?
# Pepperidge Farm remembers.

BuildRequires: perl(Date::Format)
BuildRequires: perl(Date::Parse)
BuildRequires: perl(Encode) >= 2.260.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec) >= 0.700.0
BuildRequires: perl(IO::Scalar)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(MIME::Types) >= 1.4.0
BuildRequires: perl(Mail::Address) >= 2.170.0
BuildRequires: perl(Scalar::Util) >= 1.130.0
BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(Test::More) >= 0.470.0
BuildRequires: perl(Time::Zone)
BuildRequires: perl(URI) >= 1.230.0
BuildRequires: perl(User::Identity) >= 1.0.0
BuildArch:  noarch
# Explicit run requires
Requires:   perl(Date::Parse)
%if !%{defined perl_bootstrap}
Requires:   perl(Mail::Transport::Send)
%endif
Requires:   perl(Time::Zone)
# I'm not sure why these provides aren't getting picked up automatically.
Provides:   perl(Mail::Message::Body::Construct) = %{version}
Provides:   perl(Mail::Message::Construct) = %{version}
Provides:   perl(Mail::Message::Construct::Bounce) = %{version}
Provides:   perl(Mail::Message::Construct::Build) = %{version}
Provides:   perl(Mail::Message::Construct::Forward) = %{version}
Provides:   perl(Mail::Message::Construct::Read) = %{version}
Provides:   perl(Mail::Message::Construct::Rebuild) = %{version}
Provides:   perl(Mail::Message::Construct::Reply) = %{version}
Provides:   perl(Mail::Message::Construct::Text) = %{version}

%description
MIME message handling code, formerly part of the Mail::Box package.

%prep
%setup -q -n Mail-Message-%{version}
# The licensing on these test files is unclear. 
# They seem to contain content posted publicly to usenet
# so there is an argument that the content is distributable
# but its not under a Free license.
# We delete these files to resolve the issue.
# https://rt.cpan.org/Public/Bug/Display.html?id=120149
rm -rf t/203-mlfolder.mbox t/204-sgfolder.mbox
rm -rf t/203head-listgroup.t t/204head-spamgroup.t

%{?perl_default_filter}

%build 
yes y |perl Makefile.PL INSTALLDIRS=vendor
make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
chmod -R u+w %{buildroot}/*
# Fix file encoding
recode()
{
	iconv -f "$2" -t utf-8 < "$1" > "${1}_"
	mv -f "${1}_" "$1"
}
recode %{buildroot}%{_mandir}/man3/Mail::Message::Field.3pm iso-8859-1

%check
make test

%files
%doc ChangeLog META.json META.yml README
%{perl_vendorlib}/Mail/
%{_mandir}/man3/*.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5035 |21cr|perl-Mail-RBL-1.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Mail-RBL
%define	upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl extension to access RBL-style host verification services

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Mail/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(NetAddr::IP)
BuildRequires:	perl(Net::DNS)
BuildArch:	noarch

%description
This module eases the task of checking if a given host is in the list. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# some RBL can't be queries from build host
export SKIP_RBL_TESTS=1
make test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Mail
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5036 |21cr|perl-Mail-RFC822-Address-0.300.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	real_name Mail-RFC822-Address
%define	upstream_version	0.3

Summary:	%{real_name} module for perl

Name:		perl-%{real_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12
License:	GPL or Artistic
Group:		Development/Perl
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/Mail/%{real_name}-%{upstream_version}.tar.gz
URL:		http://search.cpan.org/dist/%{real_name}
BuildArch:	noarch
BuildRequires:	perl-devel

%description
Mail::RFC822::Address validates email addresses against the grammar described
in RFC 822 using regular expressions.

%prep
%setup -q -n %{real_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%files
%doc Changes INSTALL
%{_mandir}/*/*
%{perl_vendorlib}/Mail/RFC822/Address.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5037 |21cr|perl-Mail-SendEasy-1.200.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Mail-SendEasy
%define upstream_version	1.2

Summary:	Send plain/html e-mails through SMTP servers

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Mail/Mail-SendEasy-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	dos2unix
BuildArch:	noarch
Provides:	perl(Mail::SendEasy::AUTH)
Provides:	perl(Mail::SendEasy::SMTP)

%description
This modules will send in a easy way e-mails.
It supports SMTP authentication and attachments.

%prep
%setup -q -n %{module}-%{upstream_version}
dos2unix README Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Mail
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5038 |21cr|perl-Mail-SPF-Query-1.999.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mail-SPF-Query
%define upstream_version 1.999.1

Name:   	perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Perl implementation of querying Sender Policy Framework and Sender ID

License:	BSD
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Mail/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Mail::SPF) perl(Sys::Hostname::Long) perl(Net::CIDR::Lite) perl-devel
BuildArch:	noarch

%description
Mail::SPF::Query is an object-oriented Perl implementation of the Sender Policy
Framework (SPF) e-mail sender authentication system <http://www.openspf.org>.

It supports both the TXT and SPF RR types as well as both SPFv1 (v=spf1) and
Sender ID (spf2.0) records, and it is fully compliant to RFCs 4408 and 4406.
(It does not however implement the patented PRA address selection algorithm
described in RFC 4407.)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL installdirs=vendor
%make

#check
#make test

%install
make install DESTDIR=%{buildroot}

%clean 

%files
%{_bindir}/spfquery
%{_bindir}/spfd
%{_mandir}/man1/spfd.1*
%{_mandir}/man1/spfquery.1*
%{_mandir}/man3/Mail::SPF::Query.3pm*
%{perl_vendorlib}/Mail/SPF/Query.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5039 |21cr|perl-Mail-Transport-Dbx-0.70.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Mail-Transport-Dbx
%define	upstream_version 0.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    14
Summary:	CPAN %{upstream_name} perl module
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Mail-Transport-Dbx/
Source0:	http://search.cpan.org/CPAN/authors/id/V/VP/VPARSEVAL/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl-Test-Pod-Coverage
BuildRequires:	perl-Test

%description
Mail::Transport::Dbx is a wrapper around libdbx to read Outlook Express
mailboxes (more commonly known as .dbx files).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorarch}/*/Mail/Transport
%{_libdir}/perl5/vendor_perl/Mail/Transport/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5040 |21cr|perl-MARC-Charset-1.350.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MARC-Charset
%define upstream_version 1.35

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Convert MARC-8 encoded strings to UTF-8

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MARC/MARC-Charset-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(XML::SAX)
BuildArch:	noarch

%description
MARC::Charset is a package to assist you in converting converting data encoded
using MARC-8 character sets to Unicode (UTF-8).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/MARC
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5041 |21cr|perl-MARC-Record-2.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	MARC-Record

Name:		perl-%{module}
Version:	2.0.7
Release:	1
Summary:	%{module} module for perl
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}/
Source:		http://www.cpan.org/modules/by-module/MARC/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Module for handling MARC records as objects.
The file-handling stuff is in MARC::File::*.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/marcdump
%{perl_vendorlib}/MARC
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5042 |21cr|perl-Mason-Tidy-2.570.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mason-Tidy
%define upstream_version 2.57

Name:           perl-Mason-Tidy
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Tidy HTML::Mason/Mason components
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Mason-Tidy
Source0:        https://cpan.metacpan.org/authors/id/J/JS/JSWARTZ/Mason-Tidy-%{upstream_version}.tar.gz
# Adapt to changes in Perl-Tidy-20180219, bug #1549515, CPAN RT#124604
Patch0:         Mason-Tidy-2.57-Adapt-to-changes-in-Perl-Tidy-20180219.patch
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(Config)
BuildRequires:  perl(File::Slurp)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Getopt::Long)
# IPC::Run3 not required for tests
BuildRequires:  perl(IPC::System::Simple)
BuildRequires:  perl(Method::Signatures::Simple) >= 1.02
BuildRequires:  perl(Moo) >= 0.0091010
BuildRequires:  perl(Perl::Tidy)
BuildRequires:  perl(Test::Class)
BuildRequires:  perl(Test::Most)
BuildRequires:  perl(Test::Class::Most)
# Tests
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Method::Signatures::Simple) >= 1.02
Requires:       perl(Moo) >= 0.0091010

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Moo\\)\\s*$
%global __requires_exclude %__requires_exclude|^perl\\(Method::Signatures::Simple\\)\\s*$

%description
Mason::Tidy is the engine used by masontidy. You can call this API from
your own program instead of executing masontidy.

masontidy tidies Mason 1 and Mason 2 components, using perltidy to format
the Perl code that can be embedded in various places in the component.
masontidy does not (yet) attempt to tidy the HTML or other non-Perl content
in a component.

%prep
%setup -q -n Mason-Tidy-%{upstream_version}
%patch0 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{_bindir}/masontidy
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%exclude %{perl_vendorlib}/Mason/Tidy/t


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5043 |21cr|perl-MasonX-Request-ExtendedCompRoot-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MasonX-Request-ExtendedCompRoot
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Extend  functionality of Mason's component root

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SG/SGP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Mason)
BuildArch:	noarch

%description
"MasonX::Request::ExtendedCompRoot" lets you alter Mason's
component root during the lifetime of any given request or
subrequest. This behaviour is useful if you want to override
certain components, but cannot determine that at the moment you
create your handler (when you could in theory create an interp
object with a different component root) or because you configure
Mason in an httpd.conf.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5044 |21cr|perl-MasonX-Request-ExtendedCompRoot-WithApacheSession-0.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MasonX-Request-ExtendedCompRoot-WithApacheSession
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Integrates MasonX::Request ::ExtendedCompRoot and ::WithApacheSession

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SG/SGP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(MasonX::Request::ExtendedCompRoot)
BuildRequires:	perl(MasonX::Request::WithApacheSession)
BuildArch:	noarch

%description
Extend functionality of Mason's comp_root and add a session to
the Mason Request object.

This  module simply integrates "MasonX::Request::ExtendedCompRoot"
and "MasonX::Request::WithApacheSession".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
make

%check
make test

%install
%make_install

%files
%doc Changes LICENSE README
%{perl_vendorlib}/MasonX/Request/ExtendedCompRoot/WithApacheSession.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5045 |21cr|perl-MasonX-Request-ExtendedCompRoot-WithApacheSession-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MasonX-Request-ExtendedCompRoot-WithApacheSession
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Integrates MasonX::Request ::ExtendedCompRoot and ::WithApacheSession

License:	GPL
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SG/SGP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(MasonX::Request::ExtendedCompRoot)
BuildRequires:	perl(MasonX::Request::WithApacheSession)
BuildArch:	noarch

%description
Extend functionality of Mason's comp_root and add a session to
the Mason Request object.

This  module simply integrates "MasonX::Request::ExtendedCompRoot"
and "MasonX::Request::WithApacheSession".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{perl_vendorlib}/MasonX/Request/ExtendedCompRoot/WithApacheSession.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5046 |21cr|perl-MasonX-Request-WithApacheSession-0.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name MasonX-Request-WithApacheSession
%define upstream_version 0.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	MasonX::Request::WithApacheSession - Add a session to the Mason Request object
Group:		Development/Perl
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/B/BL/BLHOTSKY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Apache::Session::Wrapper)
BuildRequires:	perl(Module::Build)
BuildArch:	noarch

%description
This module integrates "Apache::Session" into Mason by adding
methods to the Mason Request object available in all Mason
components. Any subrequests created by a request share the same
session.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
%make

#%%check
#%__make test

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

./Build install destdir=%{buildroot}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%doc Changes README SIGNATURE
%{perl_vendorlib}/MasonX/Request/WithApacheSession.pm
%{perl_vendorlib}/MasonX/Request/WithMultiSession.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5047 |21cr|perl-Math-Base36-0.140.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Base36
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Encoding and decoding of base36 strings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BR/BRICAS/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module converts to and from Base36 numbers (0..9 - A..Z)

It was created because of an article/challenge in "The Perl Review"

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5048 |21cr|perl-Math-Base36-0.140.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Base36
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Encoding and decoding of base36 strings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BR/BRICAS/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module converts to and from Base36 numbers (0..9 - A..Z)

It was created because of an article/challenge in "The Perl Review"

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5049 |21cr|perl-Math-Base85-0.500.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Math-Base85
%define upstream_version    0.5

Summary:	Perl extension for base 85 numbers
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}

Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/P/PT/PTC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(Test)

BuildArch:	noarch

%description
RFC 1924 describes a compact, fixed-size representation of IPv6
addresses which uses a base 85 number system.  This module handles
some of the uglier details of it.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README*
%{perl_vendorlib}/Math/Base85.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5050 |21cr|perl-Math-BaseCalc-1.19.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Math-BaseCalc
%define upstream_version 1.019

Summary:	%{module} perl module

Name:		perl-%{module}
Version:	%perl_convert_version 1.019
Release:	1
License:	GPL or Artistic
Group:		Development/Perl
Source:		ftp://ftp.cpan.org:21/pub/CPAN/modules/by-module/Math/Math-BaseCalc-1.019.tar.gz
URL:		http://search.cpan.org/dist/%{module}
Requires:	perl >= 5.0
Buildrequires:	perl-devel
Buildarch:	noarch

%description
This module facilitates the conversion of numbers between various
number bases.  You may define your own digit sets, or use any of
several predefined digit sets.

%prep
%setup -q -n %{module}-%{upstream_version}

%build

CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%make PREFIX=%{buildroot}%{_prefix} install DESTDIR=%{buildroot}

%files 
%doc Changes MANIFEST
%{perl_vendorlib}/Math/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5051 |21cr|perl-Math-Bezier-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Math-Bezier
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Solution of Bezier Curves
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp.perl.org/pub/CPAN/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements the algorithm for the solution of Bezier curves
as presented by Robert D. Miller in Graphics Gems V, "Quick and Simple
Bezier Curve Drawing". 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5052 |21cr|perl-Math-BigInt-1.999.838-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
### !!! DEPRECEATED! THIS PERL MODULE IS BUILD FROM perl SRPM NOW!
# Restore this separate package only if a newer version is needed very much
# Please avoid duplicating perl modules if possible and remove module from perl SRPM if you package it separately
%define upstream_name    Math-BigInt
%define upstream_version 1.999838

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Arbitrary size integer/float math package
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(Math::Complex)
BuildRequires: perl(Test::More) >= 0.620.0
BuildRequires: perl(JSON::PP)
BuildRequires: perl-devel
BuildArch:  noarch

%description
All operators (including basic math operations) are overloaded if you declare
your big integers as

  $i = new Math::BigInt '123_456_789_123_456_789';

Operations with overloaded operators preserve the arguments which is exactly
what you expect.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc BUGS CHANGES CREDITS GOALS HISTORY  LICENSE META.json META.yml NEW README SIGNATURE TODO examples
%{perl_vendorlib}/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5053 |21cr|perl-Math-BigInt-GMP-1.601.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-BigInt-GMP
%define upstream_version 1.6010

Summary:	High speed arbitrary size integer math
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Math::BigInt) >= 1.997.0
BuildRequires:	perl(XSLoader) >= 0.20.0
# automatic dependency doesn't work here, because perl package
# provides an unversioned one
BuildRequires:	perl-Math-BigInt >= 1.87
BuildRequires:	gmp-devel
BuildRequires:	perl-devel

%description
This package contains a replacement (drop-in) module for
Math::BigInt's core, Math::BigInt::Calc.pm.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
export PERL5LIB=%{perl_vendorlib}
perl Makefile.PL INSTALLDIRS="vendor"
%make CFLAGS="%{optflags}"

%check
#export PERL5LIB=%{perl_vendorlib}
#make test

%install
%makeinstall_std

%files
%doc BUGS CHANGES CREDITS LICENSE META.json META.yml README SIGNATURE TODO
%{perl_vendorarch}/Math
%{perl_vendorarch}/auto/Math
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5054 |21cr|perl-Math-BigInt-Pari-1.300.800-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-BigInt-Pari
%define upstream_version 1.3008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Use Math::Pari for Math::BigInt routines

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(JSON::PP)
BuildRequires: perl(Math::BigInt) >= 1.999.300
BuildRequires: perl(Math::Pari) >= 2.10.709
BuildRequires: perl(Test::More) >= 0.620.0
BuildRequires: perl-devel
BuildArch:  noarch

%description
Provides support for big integer in BigInt et al. calculations via means of
Math::Pari, an XS layer on top of the very fast PARI library.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%files
%doc CHANGES LICENSE META.json META.yml README SIGNATURE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5055 |21cr|perl-Math-BigRat-0.260.804-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define upstream_name    Math-BigRat
%define upstream_version 0.260804

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Arbitrary big rational numbers


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

# automatic dependency doesn't work here, because perl package
# provides an unversioned one
BuildRequires:	perl-Math-BigInt >= 1.87
BuildRequires:  perl(Module::Install)
BuildRequires:  perl(Test::More)
BuildRequires:	perl-devel

%description
Math::BigRat complements Math::BigInt and Math::BigFloat by providing support
for arbitrary big rational numbers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
export PERL5LIB=%{perl_vendorlib}
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
export PERL5LIB=%{perl_vendorlib}/
make test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5056 |21cr|perl-Math-Calc-Units-1.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Calc-Units
%define upstream_version 1.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Human-readable unit-aware calculator

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SF/SFINK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test-Pod
BuildArch:	noarch

%description
Human-readable unit-aware calculator.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{perl_vendorlib}/Math/Calc/Units*
%{_bindir}/ucalc
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5057 |21cr|perl-Math-Derivative-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Derivative
%define upstream_version 1.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Numeric 1st and 2nd order differentiation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JG/JGAMBLE/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Math::Utils)

BuildArch:	noarch

%description
This Perl package exports functions for performing numerical first
(Derivative1) and second Derivative2) order differentiation on vectors of data.
They both take references to two arrays containing the x and y ordinates of the
data and return an array of the 1st or 2nd derivative at the given x ordinates.
Derivative2 may optionally be given values to use for the first dervivative at
the start and end points of the data - otherwiswe 'natural' values are used.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{perl_vendorlib}/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5058 |21cr|perl-Math-GMP-2.250.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-GMP
%define upstream_version 2.25

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1

Summary:        High speed arbitrary size integer math

License:        GPL
Group:          Development/Perl
Url:            https://search.cpan.org/dist/%{upstream_name}
Source0:        https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/Math-GMP-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Alien::Base::Wrapper)
BuildRequires:  perl(Alien::GMP)
BuildRequires:  gmp-devel

%description
Math::GMP was designed to be a drop-in replacement both for
Math::BigInt and for regular integer arithmetic. Unlike
BigInt,  though,  Math::GMP  uses  the  GNU  gmp  library
for  all of its calculations, as opposed to straight Perl
functions. This can result in speed improvements.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" echo | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README*
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5059 |21cr|perl-Math-GMPf-0.460.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-GMPf
%define upstream_version 0.46

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl interface to the GMP library's floating point (mpf) functions
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://cpan.metacpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter) >= 5.580.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Math::BigInt)
BuildRequires: gmp-devel
BuildRequires: perl-devel
%description
A bigfloat module utilizing the Gnu MP (GMP) library.
Basically this module simply wraps all of the 'mpf'
floating point functions provided by that library.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
%make_build test

%install
%make_install

%files
%doc CHANGES META.json META.yml README V
%{_mandir}/man3/*
%{perl_vendorarch}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5060 |21cr|perl-Math-GMPq-0.490.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude GMPq.so|Random.so|V.so


%define upstream_name    Math-GMPq
%define upstream_version 0.49

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl interface to the GMP library's rational (mpq) functions
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildRequires: gmp-devel

%description
   A bigrational module utilising the Gnu MP (GMP) library.
   Basically this module simply wraps all of the 'mpq'
   (rational number) functions provided by that library.
   The documentation below extensively plagiarises the GMP
   documentation (which can be found at http://gmplib.org).
   See also the Math::GMPq test suite for examples of usage.

   IMPORTANT:
    If your perl was built with '-Duse64bitint' you need to assign
    all integers larger than 52-bit in a 'use integer;' block.
    Failure to do so can result in the creation of the variable as
    an NV (rather than an IV) - with a resultant loss of precision.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
#cycles dependensy
#%%make test

%install
%makeinstall_std

%files
%doc CHANGES META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5061 |21cr|perl-Math-GMPz-0.530.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude V.so|Random.so|GMPz.so

%define upstream_name    Math-GMPz
%define upstream_version 0.53

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl interface to the GMP library's integer (mpz) functions
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildRequires: perl(Math::GMPq)
BuildRequires: perl(Math::GMPf)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Test::Warn)
BuildRequires: perl(Math::MPFR)
BuildRequires: gmp-devel

%description
   A bignum module utilising the Gnu MP (GMP) library.
   Basically this module simply wraps nearly all of
   the integer functions provided by that library.
   The documentation below extensively plagiarises
   the documentation at http://gmplib.org.
   See the Math::GMPz test suite for examples of
   usage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5062 |21cr|perl-Math-Gradient-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Gradient
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Calculate Gradients Between Multiple Numbers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Math::Gradient is used to calculate smooth transitions between numerical
values (also known as a "Gradient"). I wrote this module mainly to mix
colours, but it probably has several other applications. Methods are
supported to handle both basic and multiple-point gradients, both with
scalars and arrays.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5063 |21cr|perl-Math-Int64-0.540.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Math-Int64
%define upstream_version 0.54

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Manipulate 64 bits integers in Perl
Group:          Development/Perl
License:        (GPL+ or Artistic) and Public Domain and BSD
URL:            https://metacpan.org/release/Math-Int64
Source0:        https://cpan.metacpan.org/modules/by-module/Math/Math-Int64-%{upstream_version}.tar.gz
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl(base)
BuildRequires:  perl(blib)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Config)
BuildRequires:  perl(constant)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(ExtUtils::CBuilder)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(lib)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Storable)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Text::ParseWords)
BuildRequires:  perl(warnings)
BuildRequires:  perl(warnings::register)
BuildRequires:  perl(XSLoader)
Requires:       perl(XSLoader)
Requires:       perl

%description
This module adds support for 64 bit integers, signed and unsigned, to Perl.

%prep
%setup -q -n Math-Int64-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" \
     NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license COPYING
%doc Changes README.md examples
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Math*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5064 |21cr|perl-Math-Matrix-0.940.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname   Math-Matrix
%define upstream_version 0.94

Name:       perl-%{realname}
Version:    %perl_convert_version %{upstream_version}
Release:    1
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Matrix data type (transpose, multiply etc)

Source:     http://www.cpan.org/modules/by-module/Math/Math-Matrix-%{upstream_version}.tar.gz
Url:        http://search.cpan.org/dist/%{realname}
BuildRequires: perl-devel
BuildRequires: perl(Math::Trig)
BuildRequires: perl(Test)
BuildArch: noarch

%description
The following methods are available:

new
    Constructor arguments are a list of references to arrays of the same
    length. The arrays are copied. The method returns *undef* in case of
    error.

            $a = new Math::Matrix ([rand,rand,rand],
                                   [rand,rand,rand],
                                   [rand,rand,rand]);

%prep
%setup -q -n %{realname}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5065 |21cr|perl-Math-MatrixBool-5.800.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Math-MatrixBool
%define upstream_version 5.8

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Matrix of Booleans
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp.perl.org/pub/CPAN/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Bit::Vector)

BuildArch:	noarch

%description
Easy manipulation of matrices of booleans (Boolean Algebra).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README.txt
%{perl_vendorlib}/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5066 |21cr|perl-Math-MatrixReal-2.120.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-MatrixReal
%define upstream_version 2.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Manipulate NxN matrices

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/Math-MatrixReal-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(vars)
BuildRequires:  perl(base)
BuildRequires:  perl(Benchmark)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(Math::Complex)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Most)
BuildRequires:  perl(Test::Simple)

BuildArch:	noarch

%description
*Semi-Rings*
    A Semi-Ring (S, +, ., 0, 1) is characterized by the following
    properties:

    * 1)

      a) '(S, +, 0) is a Semi-Group with neutral element 0'

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES META.yml META.json CREDITS README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5067 |21cr|perl-Math-MPC-1.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude MPC.so

%define upstream_name    Math-MPC
%define upstream_version 1.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl interface to the MPC (multi precision complex) library
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Math::MPFR)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl-devel
BuildRequires: mpfr-devel
BuildRequires: libmpc-devel

%description
   A multiple precision complex number module utilising the MPC library.
   Basically, this module simply wraps the 'mpc' complex number functions
   provided by that library.
   Operator overloading is also available.
   The following documentation heavily plagiarises the mpc documentation.

   use warnings;
   use Math::MPFR qw(:mpfr); # needed by some Math::MPC functions
   use Math::MPC qw(:mpc);
   Rmpc_set_default_prec(500); # Set default precision to 500 bits
   my $mpc1 = Math::MPC->new(12.5, 1125); # 12.5 + 1125*i
   $mpc2 = sqrt($mpc1);
   print "Square root of $mpc1 is $mpc2\n";

   See also the Math::MPC test suite for some (simplistic) examples of
   usage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5068 |21cr|perl-Math-MPFR-4.190.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude Prec.so|Random.so|MPFR.so|V.so

%define upstream_name    Math-MPFR
%define upstream_version 4.19

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl interface to the MPFR (floating point) library
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildRequires: mpfr-devel

%description
   A bigfloat module utilising the MPFR library. Basically
   this module simply wraps the 'mpfr' floating point functions
   provided by that library.
   Operator overloading is also available.
   The following documentation heavily plagiarises the mpfr
   documentation.
   See also the Math::MPFR test suite for some examples of usage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

iconv -f iso8859-1 -t utf-8 CHANGES > CHANGES.conv && mv -f CHANGES.conv CHANGES
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
#cycles dependensy
#%%make test

%install
%makeinstall_std

%files
%doc CHANGES META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5069 |21cr|perl-Math-Pari-2.30.523-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Math-Pari
%define upstream_version 2.030523

%define pari_version	2.13.4

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Epoch:      1
Summary:    Perl interface to PARI
License:    GPLv2+ or Artistic
Group:      Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz
Source1:	https://megrez.math.u-bordeaux.fr/pub/pari/unix/pari-%{pari_version}.tar.gz

BuildRequires:  perl-devel

%description
This package is a Perl interface to famous library PARI for
numerical/scientific/number-theoretic calculations. It allows use of
most PARI functions as Perl functions, and (almost) seamless merging of
PARI and Perl data. See ftp://megrez.math.u-bordeaux.fr/pub/pari for
more information about PARI.

%prep
#%%setup -q -n %{upstream_name}-%{upstream_version}
%setup -q -a1 -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor paridir=pari-%{pari_version} < /dev/null
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc README Changes
%{perl_vendorarch}/Math
%{perl_vendorarch}/auto/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5070 |21cr|perl-Math-Prime-Util-GMP-0.520.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude GMP.so

%define upstream_name    Math-Prime-Util-GMP
%define upstream_version 0.52

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Utilities related to prime numbers and factoring, using GMP
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(bigint)
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
BuildRequires: perl(base)
BuildRequires: perl-devel
BuildRequires: gmp-devel

%description
Devel::CheckLib is a perl module that checks whether a particular C library
and its headers are available.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc META.json LICENSE README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5071 |21cr|perl-Math-Random-0.720.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Random
%define upstream_version 0.72

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Random Number Generators

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel

%description
*Math::Random* is a *Perl* port of the *C* version of *randlib*, which is a
suite of routines for generating random deviates. See the "RANDLIB" manpage
for more information.

This port supports all of the distributions from which the *Fortran* and
*C* versions generate deviates. The major functionalities that are excluded
are the multiple generators/splitting facility and antithetic random number
generation. These facilities, along with some of the distributions which
_are_ included, are probably not of interest except to the very
sophisticated user. If there is sufficient interest, the excluded
facilities will be included in a future release. The code to perform the
excluded facilities is available as *randlib* in *Fortran* and *C* source.

Default Routines
    The routines which are exported by default are the only ones that the
    average Perl programmer is likely to need.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

chmod 644 README Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5072 |21cr|perl-Math-Random-ISAAC-1.4.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Random-ISAAC
%define upstream_version 1.004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Pure Perl port of the ISAAC PRNG algorithm

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Math::Random::ISAAC::XS)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::NoWarnings)
BuildArch:	noarch

%description
As with other Pseudo-Random Number Generator (PRNG) algorithms like the
Mersenne Twister (see the Math::Random::MT manpage), this algorithm is
designed to take some seed information and produce seemingly random results
as output.

However, ISAAC (Indirection, Shift, Accumulate, Add, and Count) has
different goals than these commonly used algorithms. In particular, it's
really fast - on average, it requires only 18.75 machine cycles to generate
a 32-bit value. This makes it suitable for applications where a significant
amount of random data needs to be produced quickly, such solving using the
Monte Carlo method or for games.

The results are uniformly distributed, unbiased, and unpredictable unless
you know the seed. The algorithm was published by Bob Jenkins in the late
90s and despite the best efforts of many security researchers, no feasible
attacks have been found to date.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5073 |21cr|perl-Math-Random-ISAAC-XS-1.4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Random-ISAAC-XS
%define upstream_version 1.004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	7

Summary:    C implementation of the ISAAC PRNG Algorithm

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Math/Math-Random-ISAAC-XS-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel

%description
See the Math::Random::ISAAC manpage for the full description.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5074 |21cr|perl-Math-Random-Secure-0.80.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Random-Secure
%define upstream_version 0.080001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	The underlying PRNG, as an object
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moo)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Crypt::Random::Source)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Math::Random::ISAAC)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::SharedFork)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
This module is intended to provide a cryptographically-secure replacement
for Perl's built-in 'rand' function. "Crytographically secure", in this
case, means:

* *

  No matter how many numbers you see generated by the random number
  generator, you cannot guess the future numbers, and you cannot guess the
  seed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5075 |21cr|perl-Math-Roman-1.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Math-Roman
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Arbitrary sized Roman numbers and conversion from and to Arabic
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Math::BigInt)
BuildArch:	noarch

%description
Well, it seems I have been infected by the Perligata-Virus, too. ;o)

This module lets you calculate with Roman numbers, as if they were big
integers. The numbers can have arbitrary length and all the usual functions
from Math::BigInt are available.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES LICENSE README* SIGNATURE
%{perl_vendorlib}/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5076 |21cr|perl-Math-RPN-1.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Math-RPN
%define upstream_version 1.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.11
Release:	6

Summary:	Perl extension for Reverse Polish Math Expression Evaluation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/Math-RPN-1.11.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Reverse Polish Notation is briefly a stack-based way of writing
mathematical expressions. This has the advantage of eliminating
the need for parenthesis and simplifying parsing for computers vs.
normal algebraic notation at a slight cost in the ability of humans
to easily comprehend the expressions.

Math::RPN will take a scalar or list of sclars which contain an RPN
expression as a set of comma delimited values and operators, and
return the result or stack, depending on context. If the function
is called in an array context, it will return the entire remaining stack.

%prep
%setup -q -n  %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Math/RPN.pm
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5077 |21cr|perl-Math-Spline-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Spline
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Cubic Spline Interpolation of data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/Math-Spline-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Math::Derivative)
BuildArch:	noarch

%description
This package provides cubic spline interpolation of numeric data. The data is
passed as references to two arrays containing the x and y ordinates. It may be
used as an exporter of the numerical functions or, more easily as a class
module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5078 |21cr|perl-Math-Stat-0.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Math-Stat

Name:		perl-%{module}
Version:	0.1
Release:	13
Summary:	Perform Sample Statistics on Arrays

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Math/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This package provides sample statistics on arrays.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes
%{perl_vendorlib}/Math
%{perl_vendorlib}/auto/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5079 |21cr|perl-Math-Utils-1.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Utils
%define upstream_version 1.14

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Useful mathematical functions not in Perl
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://cpan.metacpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(Math::Complex)
BuildRequires: perl(Math::BigRat)
BuildArch:  noarch

%description
Useful mathematical functions not in Perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

#fix perl path
sed -i 's|/bin/perl|%{__perl}|' eg/*

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build CFLAGS="%{optflags}"

%check
make test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml eg
%{_mandir}/man3/*
%{perl_vendorlib}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5080 |21cr|perl-Maui-0.0.5-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:  	Perl5 modules for Maui Scheduler

Name:		perl-Maui
Version:	0.0.5
Release:	18
License:	GPL
Group:		Development/Perl
URL:		http://hepwww.ph.qmul.ac.uk/	
Source:		%{name}-%{version}.tar.bz2
BuildRequires:	perl-devel

%description
The Maui Scheduler is Free Software licensed under the GNU General Public
License. It is designed for parallel batch scheduling
(custom message-passing or MPI-based jobs) on medium to
large clusters. The Maui Scheduler is meant to be a complete
replacement for proprietary schedulers like LSF or PBS.
Check http://mauischeduler.sourceforge.net/

This is Perl5 modules for using the scheduler.
 
%prep
%setup -q

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
make

%install

make PREFIX=%{buildroot}%{_prefix} install DESTDIR=%{buildroot}

%clean
rm -fr %{buildroot}

%if %mdkversion < 200900
%postun -p /sbin/ldconfig
%endif

%files
%doc README doc/* MANIFEST LICENSE Changes
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5081 |21cr|perl-MCE-1.884.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MCE
%define upstream_version 1.884

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Temporary directory creation/cleanup & signal handling
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/M/MA/MARIOROY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Path)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Socket)
BuildRequires: perl(Storable)
BuildRequires: perl(Symbol)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Carp)
BuildRequires: perl(constant)
BuildRequires: perl(open)
BuildRequires: perl(IO::Handle)
BuildRequires: perl-devel

BuildArch: noarch

%description
Many-core Engine (MCE) for Perl helps enable a new level of performance by
maximizing all available cores. MCE spawns a pool of workers and therefore
does not fork a new process per each element of data. Instead, MCE follows
a bank queuing model. Imagine the line being the data and bank-tellers the
parallel workers. MCE enhances that model by adding the ability to chunk
the next n elements from the input stream to the next available worker.

Chunking and input data are optional in MCE. One may use MCE to run many
workers in parallel without specifying input data.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5082 |21cr|perl-Memoize-ExpireLRU-0.550.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Memoize-ExpireLRU
%define upstream_version 0.55

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Provide LRU Expiration for Memoize

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Memoize/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Memoize)
BuildArch:	noarch

%description
For the theory of Memoization, please see the Memoize module documentation.
This module implements an expiry policy for Memoize that follows LRU
semantics, that is, the last n results, where n is specified as the
argument to the 'CACHESIZE' parameter, will be cached.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5083 |21cr|perl-Meta-Builder-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Meta-Builder
%define upstream_version 0.004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Utility functions for Meta::Builder

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/E/EX/EXODIST/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Fennec::Lite)
BuildRequires: perl(Module::Build) >= 0.360.0
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildArch:  noarch

%description
Meta programming is becomming more and more popular. The popularity of Meta
programming comes from the fact that many problems are made significantly
easier. There are a few specialized Meta tools out there, for instance the
Class:MOP manpage which is used by the Moose manpage to track class
metadata.

Meta::Builder is designed to be a generic tool for writing Meta objects.
Unlike specialized tools, Meta::Builder makes no assumptions about what
metrics you will care about. Meta::Builder also mkaes it simple for others
to extend your meta-object based tools by providing hooks for other
packages to add metrics to your meta object.

If a specialized Meta object tool is available ot meet your needs please
use it. However if you need a simple Meta object to track a couple metrics,
use Meta::Builder.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5084 |21cr|perl-Method-Alias-1.30.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Method-Alias
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Create method aliases (and do it safely)

Source:		https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{upstream_name}

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
For a very long time, whenever I wanted to have a method alias (provide an
alternate name for a method) I would simple do a GLOB alias. That is,

  # My method
  sub foo {
      ...
  }
  
  # Alias the method
  *bar = *foo;

While this works fine for functions, it does *not* work for methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/Method

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5085 |21cr|perl-Method-Signatures-Simple-1.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Method-Signatures-Simple
%define upstream_version 1.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Basic method declarations with signatures, without source filters
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/R/RH/RHESA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Devel::Declare)
BuildRequires: perl-devel
BuildRequires: perl(Module::Implementation)

BuildArch: noarch

%description
Basic method declarations with 
signatures, without source filters.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5086 |21cr|perl-MIME-Base32-1.20.0a-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MIME-Base32
%define upstream_version 1.02a

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Base32 encoder / decoder

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MIME/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Encode data similar way like MIME::Base64 does.

Main purpose is to create encrypted text used as id or key entry
typed-or-submitted by user. It is upper/lowercase safe (not sensitive).

%prep
#setup -q -n %{upstream_name}-%{upstream_version}
%setup -q -n %{upstream_name}-1.02

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/MIME

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5087 |21cr|perl-MIME-Base64-3.150.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MIME-Base64
%define upstream_version 3.15
%global __provides_exclude Base64.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Encode/decode Base 64 (RFC 2045)

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(XSLoader) >= 0.160.0
BuildRequires: perl(Test)

%description
This module provides functions to encode and decode strings into and from
the base64 encoding specified in RFC 2045 - _MIME (Multipurpose Internet
Mail Extensions)_. The base64 encoding is designed to represent arbitrary
sequences of octets in a form that need not be humanly readable. A
65-character subset ([A-Za-z0-9+/=]) of US-ASCII is used, enabling 6 bits
to be represented per printable character.

The following functions are provided:

* encode_base64($str)

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5088 |21cr|perl-MIME-Base64-URLSafe-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MIME-Base64-URLSafe
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl version of Python's URL-safe base64 codec

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MIME/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(MIME::Base64)
BuildArch:	noarch

%description
This module is a perl version of python's URL-safe base64 encoder /
decoder.

When embedding binary data in URL, it is preferable to use base64 encoding.
However, two characters ('+' and '/') used in the standard base64 encoding
have special meanings in URLs, often leading to re-encoding with
URL-encoding, or worse, interoperability problems.

To overcome the problem, the module provides a variation of base64 codec
compatible with python's urlsafe_b64encode / urlsafe_b64decode.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/MIME/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5089 |21cr|perl-MIME-EncWords-1.14.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name     MIME-EncWords
%define upstream_version 1.014.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Epoch:		1

Summary:	Deal with RFC-1522 encoded words (improved)

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MIME/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	 perl(MIME::Charset)
BuildRequires:	 perl-devel
BuildRequires:	 perl(Test)
BuildArch:	noarch

%description
Fellow Americans, you probably won't know what the hell this module is for.
Europeans, Russians, et al, you probably do. :-)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc ARTISTIC GPL README
%{perl_vendorlib}/MIME
%{perl_vendorlib}/Encode
%{perl_vendorlib}/POD2
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5090 |21cr|perl-MIME-Lite-HTML-1.240.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MIME-Lite-HTML
%define upstream_version 1.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.24
Release:	5
Summary:	Provide routine to transform HTML to MIME

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MIME/MIME-Lite-HTML-1.24.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Email::Date::Format)
BuildRequires:	perl(HTML::LinkExtor)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(MIME::Lite)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI::URL)
BuildArch:	noarch

%description
This module is a Perl mail client interface for sending message that
support HTML format and build them for you.. This module provide routine to
transform a HTML page in MIME::Lite mail. So you need this module to use
MIME-Lite-HTML possibilities

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# %check
# %make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/MIME

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5091 |21cr|perl-Minion-10.250.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Minion
%define upstream_version 10.25

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Mojolicious job queue
License:    Artistic 2.0
Group:      Development/Perl
Url:        http://mojolicious.org/
Source0:    https://cpan.metacpan.org/authors/id/S/SR/SRI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Pod::Simple) >= 3.90.0
BuildRequires: perl(Time::Local) >= 1.200.0
BuildRequires: perl(DBM::Deep)
BuildRequires: perl(Mojo::Base)
BuildRequires: perl(YAML::XS)
BuildArch:     noarch


%description
A job queue for the Mojolicious real-time web
framework with support for multiple backends.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5092 |21cr|perl-mixin-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    mixin
%define upstream_version 0.08

Name:           perl-mixin
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Mixin inheritance, an alternative to multiple inheritance
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/mixin
Source0:        https://cpan.metacpan.org/authors/id/M/MS/MSCHWERN/mixin-%{upstream_version}.tar.gz
BuildArch:      noarch
# Build
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Runtime
BuildRequires:  perl(base)
# XXX: BuildRequires:  perl(Carp)
BuildRequires:  perl(vars)
# Tests only
BuildRequires:  perl(constant)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test::NoWarnings)
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires:       perl(base)
Requires:       perl(Carp)

%description
Mixin inheritance is an alternative to the usual multiple-inheritance and
solves the problem of knowing which parent will be called. It also solves a
number of tricky problems like diamond inheritance.

%prep
%setup -q -n mixin-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5093 |21cr|perl-Mixin-ExtraFields-0.140.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mixin-ExtraFields
%define upstream_version 0.140002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Store extras in a hashy object's guts

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(String::RewritePrefix)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Sub::Install)

BuildArch:	noarch

%description
Sometimes your well-defined object needs a way to tack on arbirary extra
fields. This might be a set of session-specific ephemeral data, a stash of
settings that need to be easy to grow over time, or any sort of
name-and-value parameters. Adding more and more methods can be cumbersome,
and may not be helpful if the names vary greatly. Accessing an object's
guts directly is simple, but is difficult to control when subclassing, and
can make altering your object's structure difficult.

Mixin::ExtraFields provides a simple way to add an arbitrary number of
stashes for named data. These data can be stored in the object, in a
database, or anywhere else. The storage mechanism is abstracted away from
the provided interface, so one storage mechanism can be easily swapped for
another. Multiple ExtraFields stashes can be mixed into one class, using
one or many storage mechanisms.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5094 |21cr|perl-Mixin-ExtraFields-Param-0.21.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mixin-ExtraFields-Param
%define upstream_version 0.021

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Make your class provide a familiar "param" method

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Mixin::ExtraFields)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker) 
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
This module mixes in to your class to provide a 'param' method like the
ones provided by the CGI manpage, the CGI::Application manpage, and other
classes. It uses Mixin::ExtraFields, which means it can use any
Mixin::ExtraFields driver to store your data.

By default, the methods provided are:

* * param.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5095 |21cr|perl-MKDoc-XML-0.75-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module   MKDoc-XML

Name:		perl-%{module}
Version:	0.75
Release:	8
License:	GPL or Artistic
Group:		Development/Perl
Summary:	The MKDoc XML Toolkit

Url:		http://search.cpan.org/dist/%{module}
Source:		https://cpan.metacpan.org/authors/id/B/BP/BPOSTLE/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
MKDoc is a web content management system written in Perl which focuses on
standards compliance, accessiblity and usability issues, and multi-lingual
websites.

%prep
%setup -q -n %{module}-%{version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/MKDoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5096 |21cr|perl-MLDBM-2.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MLDBM
%define upstream_version 2.05


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    MLDBM - store multi-level hash structure in single level tied hash
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/authors/id/C/CH/CHAMAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper) >= 2.80.0
BuildRequires: perl(Test::More)
BuildRequires: perl(FreezeThaw)

BuildArch:  noarch

%description
This module can serve as a transparent interface to any TIEHASH package
that is required to store arbitrary perl data, including nested references.
Thus, this module can be used for storing references and other arbitrary data
within DBM databases.

It works by serializing the references in the hash into a single string. In the
underlying TIEHASH package (usually a DBM database), it is this string that
gets stored.  When the value is fetched again, the string is deserialized to
reconstruct the data structure into memory.

For historical and practical reasons, it requires the Data::Dumper package,
available at any CPAN site. Data::Dumper gives you really nice-looking dumps of
your data structures, in case you wish to look at them on the screen, and
it was the only serializing engine before version 2.00.  However, as of version
2.00, you can use any of Data::Dumper, FreezeThaw or Storable to
perform the underlying serialization, as hinted at by the SYNOPSIS overview
above.  Using Storable is usually much faster than the other methods.

See the BUGS section for important limitations.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README
%{perl_vendorlib}/MLDBM*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5097 |21cr|perl-MLDBM-Sync-0.300.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MLDBM-Sync
%define upstream_version 0.30

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	%{upstream_name} module for perl

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/C/CH/CHAMAS/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(MLDBM)
BuildArch:	noarch

%description
%{upstream_name} module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc MANIFEST README
%{_mandir}/*/*
%{perl_vendorlib}/MLDBM

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5098 |21cr|perl-Modem-Vgetty-0.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Modem-Vgetty
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Epoch:		1

Summary:	Interface to vgetty(8)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Modem/%{upstream_name}-0.03.tar.gz
Patch0:		Modem-Vgetty-0.03-VOCP.patch

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Modem::Vgetty is an encapsulation object for writing applications for voice
modems using the vgetty(8) or vm(8) package. The answering machines and
sofisticated voice applications can be written using this module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1
# perl path hack
find . -type f | \
    xargs perl -pi -e "s|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|g"

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc examples ChangeLog README
%{perl_vendorlib}/Modem
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5099 |21cr|perl-Modern-Perl-1.202.205.150-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Modern-Perl
%define upstream_version 1.20220515

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Enable all of the features of Modern Perl with one import
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/C/CH/CHROMATIC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(autodie)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch:     noarch

%description
Enable all of the features of Modern Perl with one import.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml README Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5100 |21cr|perl-Module-Compile-0.380.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Compile
%define upstream_version 0.38



Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl Module Optimization
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl
BuildRequires:  perl(Module::Install::Base)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(constant)
BuildRequires:  perl(Digest::SHA1) >= 2.13
BuildRequires:  perl(Filter::Util::Call)
BuildRequires:  perl(vars)
BuildRequires:  perl(base)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(Capture::Tiny)
BuildRequires:  perl(Test::Base)
BuildRequires:  perl(Test::Base::Filter)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(YAML)

BuildArch: noarch

%description
This module provides a system for writing modules that _compile_ other Perl
modules.

Modules that use these compilation modules get compiled into some altered
form the first time they are run. The result is cached into '.pmc' files.

Perl has native support for '.pmc' files. It always checks for them, before
loading a '.pm' file.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
rm -fr t/000-compile-modules.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1

%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README Changes META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5101 |21cr|perl-Module-CPANfile-1.100.400-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-CPANfile
%define upstream_version 1.1004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Parse cpanfile
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(CPAN::Meta::Prereqs)
BuildRequires: perl(Test::More)
BuildRequires: perl(File::pushd)
BuildArch: noarch


%description
'cpanfile' describes CPAN dependencies required to execute associated Perl
code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*
%{_bindir}/cpanfile-dump
%{_bindir}/mymeta-cpanfile
%{_mandir}/man1/cpanfile-dump.1.*
%{_mandir}/man1/mymeta-cpanfile.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5102 |21cr|perl-Module-CPANTS-0.20030725-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  Module-CPANTS

Name:		perl-%{module}
Version:	0.20030725
Release:	10
Summary:	CPAN module testing

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Module/%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description 
Kwalitee is an automatically-measurable gauge of how good your software is.
That's very different from quality, which a computer really can't measure in a
general sense. (If you can, you've solved a hard problem in computer science.)

In the world of the CPAN, the CPANTS project (CPAN Testing Service; also a
funny acronym on its own) measures Kwalitee with several metrics. If you plan
to release a distribution to the CPAN -- or even within your own organization
-- testing its Kwalitee before creating a release can help you improve your
quality as well.

Test::Kwalitee and a short test file will do this for you automatically.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# currently broken
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Module
%{perl_vendorlib}/auto/Module
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5103 |21cr|perl-Module-CPANTS-Analyse-1.10.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-CPANTS-Analyse
%define upstream_version 1.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Generate Kwalitee ratings for a distribution

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Module/Module-CPANTS-Analyse-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Archive::Any) >= 0.60.0
BuildRequires:	perl(Archive::Tar) >= 1.480.0
BuildRequires:	perl(Array::Diff) >= 0.40.0
BuildRequires:	perl(CPAN::DistnameInfo) >= 0.60.0
BuildRequires:	perl(Class::Accessor) >= 0.190.0
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Data::Binary)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(ExtUtils::Manifest)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(File::chdir)
BuildRequires:	perl(IO::Capture) >= 0.50.0
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::ExtractUse) >= 0.180.0
BuildRequires:	perl(Module::Pluggable) >= 2.960.0
BuildRequires:	perl(Module::Signature)
BuildRequires:	perl(Pod::Simple::Checker) >= 2.20.0
BuildRequires:	perl(Perl::PrereqScanner::NotQuiteLite)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Set::Scalar)
BuildRequires:	perl(Software::License) >= 0.3.0
BuildRequires:	perl(Test::CPAN::Meta::YAML::Version)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::Warn) >= 0.110.0
BuildRequires:	perl(Text::CSV_XS) >= 0.450.0
BuildRequires:	perl(YAML::Any) >= 0.810.0
BuildRequires:	perl(YAML::XS)
BuildRequires:	perl(version) >= 0.730.0
BuildRequires:	perl(ExtUtils::MakeMaker::CPANfile)
BuildRequires:	perl(File::Find::Object)
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(JSON::MaybeXS)
BuildRequires:	perl(Test::FailWarnings)
BuildRequires:	perl(Archive::Any::Lite)

BuildArch:	noarch

%description
Kwalitee is an automatically-measurable gauge of how good your software is.
That's very different from quality, which a computer really can't measure in a
general sense. (If you can, you've solved a hard problem in computer science.)

In the world of the CPAN, the CPANTS project (CPAN Testing Service; also a
funny acronym on its own) measures Kwalitee with several metrics. If you plan
to release a distribution to the CPAN -- or even within your own organization
-- testing its Kwalitee before creating a release can help you improve your
quality as well.

Test::Kwalitee and a short test file will do this for you automatically.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc AUTHORS Changes META.json META.yml MYMETA.yml README*  TODO
%{perl_vendorlib}/Module
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5104 |21cr|perl-Module-Data-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Data
%define upstream_version 0.013

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Introspect context information about modules in @INC
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dump)
BuildRequires: perl(FindBin)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Metadata)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moo)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Path::Class::File)
BuildRequires: perl(Path::ScanINC)
BuildRequires: perl(Sub::Quote)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build)
BuildRequires: perl-devel
BuildRequires: perl(Sub::Quote)
BuildRequires: perl(strictures)
BuildRequires: perl(Class::Method::Modifiers)

BuildArch: noarch

%description
Introspect context information about modules in @INC.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5105 |21cr|perl-Module-Depends-0.160.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Depends
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Intrusive discovery of distribution dependencies

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/Module-Depends-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Chained)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Parse::CPAN::Meta)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(YAML)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
Module::Depends extracts module dependencies from an unpacked distribution
tree.

Module::Depends only evaluates the META.yml shipped with a distribution.
This won't be effective until all distributions ship META.yml files, so we
suggest you take your life in your hands and look at
Module::Depends::Intrusive.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5106 |21cr|perl-Module-Extract-0.10.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Extract
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Base class for working with Perl distributions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Archive::Extract)
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
*Module::Extract* is a convenience base class for creating module that work
with Perl distributions.

Its purpose is to take care of the mechanisms of locating and extracting a
Perl distribution so that your module can do something specific to the
distribution.

This module was originally created to provide an abstraction for the
extraction logic for both the Module::Inspector manpage and the Module::P4P
manpage and to allow additional features to be added in the future without
having to modify both of them, because the general problem of "locate,
download, and expand a distribution" is one that is almost ideal for adding
additional features down the line.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5107 |21cr|perl-Module-Extract-Namespaces-1.23.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Extract-Namespaces
%define upstream_version 1.023

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Extract the package declarations from a module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/Module-Extract-Namespaces-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(PPI)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module extracts package declarations from Perl code without running
the code.

It does not extract:

* * packages declared dynamically (e.g. in 'eval')

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5108 |21cr|perl-Module-ExtractUse-0.344.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-ExtractUse
%define upstream_version 0.344

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Find out what modules are used 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-version
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Pod::Strip)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description 
Module::ExtractUse is basically a Parse::RecDescent grammar to parse Perl code.
It tries very hard to find all modules (whether pragmas, Core, or from CPAN)
used by the parsed code.

"Usage" is defined by either calling use or require

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{perl_vendorlib}/Module
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5109 |21cr|perl-Module-Extract-Use-1.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Extract-Use
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Pull out the modules a module uses

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/Module-Extract-Use-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(PPI)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Output)
BuildArch:	noarch

%description
Extract the names of the modules used in a file using a static analysis.
Since this module does not run code, it cannot find dynamic uses of
modules, such as 'eval "require $class"'.

* new

  Makes an object. The object doesn't do anything just yet, but you need it
  to call the methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5110 |21cr|perl-Module-Extract-VERSION-1.116.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Extract-VERSION
%define upstream_version 1.116

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Extract a module version without running code

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module lets you pull out of module source code the version number for
the module. It assumes that there is only one '$VERSION' in the file.

Class methods
    * $class->parse_version_safely( FILE );

      Given a module file, return the module version. This works just like
      'mldistwatch' in PAUSE. It looks for the single line that has the
      '$VERSION' statement, extracts it, evals it, and returns the result.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5111 |21cr|perl-Module-Find-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Module-Find
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Find and use installed modules in a (sub)category

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/C/CR/CRENZ/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl-devel
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::CPAN::Meta) >= 0.250.0

BuildArch:	noarch

%description
Module::Find lets you find and use modules in categories. This can be
very useful for auto-detecting driver or plugin modules. You can
differentiate between looking in the category itself or in all
subcategories.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man*/*
%{perl_vendorlib}/Module

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5112 |21cr|perl-Module-Format-0.0.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Format
%define upstream_version v0.0.7

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Convert and manipulate stringified versions of Perl modules

License:    MIT
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Getopt::Long) >= 2.470.0
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires: perl(Test::Trap)
BuildRequires: perl(Test::Pod) >= 1.500.0
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::TrailingSpace) >= 0.20.500
BuildRequires: perl(Test::CPAN::Changes) >= 0.9.0
BuildRequires: perl-devel

BuildArch: noarch

%description
Module-Format is a set of Perl modules and the accompanying perlmf command line
utility that can be used to output consistetly formatted named of Perl modules
for input in applications. So one can do:

urpmi --auto $(perlmf as_rpm_c "$@")

to install perl dependencies using urpmi (and many other uses).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_bindir}/perlmf
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5113 |21cr|perl-Module-Info-0.370.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Info
%define upstream_version 0.37

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Epoch:		1
Summary:	Information about Perl modules 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MB/MBARBON/Module-Info-%{upstream_version}.tar.gz

BuildRequires:	perl(B::Utils)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Module::Info gives you information about Perl modules without actually loading
the module.  It actually isn't specific to modules and should work on any perl
code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%defattr(-,root,root,755)
%doc Changes
%{_bindir}/*
%{_mandir}/man*/*
%{perl_vendorlib}/B
%{perl_vendorlib}/Module

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5114 |21cr|perl-Module-Install-AuthorRequires-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-AuthorRequires
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Declare author-only dependencies

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::Install)
BuildArch:	noarch

%description
Modules often have optional requirements, for example dependencies that are
useful for (optional) tests, but not required for the module to work
properly.

Usually you want all developers of a project to have these optional modules
installed. However, simply telling everyone or printing diagnostic messages
if optional dependencies are missing often isn't enough to make sure all
authors have all optional modules installed.

'Module::Install' already has a way of detecting an author environment, so
an easy way to achieve the above would be something like:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5115 |21cr|perl-Module-Install-AuthorTests-0.2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-AuthorTests
%define upstream_version 0.002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Designate tests only run by module authors

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Install)
BuildArch:	noarch

%description
Designate tests only run by module authors.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5116 |21cr|perl-Module-Install-AutoLicense-0.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-AutoLicense
%define upstream_version 0.10

Name:           perl-Module-Install-AutoLicense
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Module::Install extension to automatically generate LICENSE files
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Module-Install-AutoLicense
Source0:        https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Install-AutoLicense-%{upstream_version}.tar.gz
Patch0:         Use-Module-Install-AutoLicense-for-tarball.patch
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter >= 1:5.6.0
BuildRequires:  perl-generators
BuildRequires:  perl(base)
BuildRequires:  perl(Config)
BuildRequires:  perl(Capture::Tiny) >= 0.05
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(lib)
BuildRequires:  perl(inc::Module::Install) >= 0.85
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Module::Install) >= 0.85
BuildRequires:  perl(Module::Install::Base)
BuildRequires:  perl(Module::Install::Can)
BuildRequires:  perl(Module::Install::GithubMeta)
BuildRequires:  perl(Module::Install::Makefile)
BuildRequires:  perl(Module::Install::Metadata)
BuildRequires:  perl(Module::Install::WriteAll)
BuildRequires:  perl(Software::License) >= 0.01
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More) >= 0.47
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
BuildRequires:  sed
Requires:       perl(Module::Install) >= 0.85
Requires:       perl(Software::License) >= 0.01
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Module::Install::AutoLicense is a Module::Install extension that generates
a LICENSE file automatically whenever the author runs Makefile.PL. On the
user side it does nothing.

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

#----------------------------------------------------
%prep
%autosetup -p1 -n Module-Install-AutoLicense-%{upstream_version}

rm -r inc
sed -i -e '/^inc\// d' MANIFEST
find -type f -exec chmod -x {} +

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}/*

%check
make test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5117 |21cr|perl-Module-Install-CheckLib-0.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-CheckLib
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A Module::Install extension to check that a library is available

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Devel::CheckLib)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Install)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Module::Install::CheckLib is a the Module::Install manpage extension that
integrates the Devel::CheckLib manpage so that CPAN authors may stipulate
which particular C library and its headers they want available and to exit
the 'Makefile.PL' gracefully if they aren't.

The author specifies which C libraries, etc, they want available. the
Devel::CheckLib manpage is copied to the 'inc/' directory along with the
the Module::Install manpage files.

On the module user side, the bundled 'inc/' the Devel::CheckLib manpage
determines whether the current environment is supported or not and will
exit accordingly.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5118 |21cr|perl-Module-Install-ExtraTests-0.8.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-ExtraTests
%define upstream_version 0.008
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.008
Release:	6

Summary:	%{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/Module-Install-ExtraTests-0.008.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
%{upstream_name} perl module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5119 |21cr|perl-Module-Install-GithubMeta-0.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-GithubMeta
%define upstream_version 0.30

Name:       perl-Module-Install-GithubMeta 
Version:    %perl_convert_version %{upstream_version}
Release:    1
# lib/Module/Install/GithubMeta.pm -> GPL+ or Artistic
License:    GPL+ or Artistic 
Summary:    A Module::Install extension to include GitHub meta information in META.yml 
Group:      Development/Perl
Url:        https://metacpan.org/release/Module-Install-GithubMeta
Source:     https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Install-GithubMeta-%{upstream_version}.tar.gz 
Requires:   perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
BuildArch:  noarch

BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(base)
BuildRequires: perl(Capture::Tiny) >= 0.05
BuildRequires: perl(Config)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.42
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Install) >= 0.85
BuildRequires: perl(strict)
BuildRequires: perl(Test::More) >= 0.47
BuildRequires: perl(Test::Pod)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)

Requires:      perl(Module::Install) >= 0.85

%{?perl_default_filter}

%description
Module::Install::GithubMeta is a Module::Install extension
to include GitHub (http://github.com) meta information in
'META.yml'.  It automatically detects if the distribution 
directory is under 'git' version control and whether the 
'origin' is a GitHub repository; if so, it will set the
'repository' and 'homepage' meta in 'META.yml' to the 
appropriate URLs for GitHub.

%files
%license LICENSE
%doc README
%{perl_vendorlib}/*
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------
%prep
%setup -q -n Module-Install-GithubMeta-%{upstream_version}

cat README | iconv -f `file --mime-encoding --brief README` -t UTF-8 > x
mv x README

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
%{_fixperms} %{buildroot}/*

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5120 |21cr|perl-Module-Install-ManifestSkip-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-ManifestSkip
%define upstream_version 0.24

Name:           perl-Module-Install-ManifestSkip
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Generate a MANIFEST.SKIP file
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Module-Install-ManifestSkip
Source0:        https://cpan.metacpan.org/authors/id/I/IN/INGY/Module-Install-ManifestSkip-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.30
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(base)
BuildRequires:  perl(Module::Install::Base)
# Module::Manifest::Skip 0.18 not used at test-time
# Tests:
# inc::Module::Install not used, the t/sample1 is used by xt tests only
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Module::Manifest::Skip) >= 0.18
Requires:       perl(warnings)

%description
This module generates a MANIFEST.SKIP file for you (using
Module::Manifest::Skip) that contains the common files that people do not
want in their MANIFEST files. The SKIP file is generated each time that you
(the module author) run Makefile.PL.

%prep
%setup -q -n Module-Install-ManifestSkip-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes CONTRIBUTING LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5121 |21cr|perl-Module-Install-ReadmeFromPod-0.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-ReadmeFromPod
%define upstream_version 0.30

%if ! (0%{?rhel})
# Perform optional tests
%{bcond_without perl_Module_Install_ReadmeFromPod_enables_optional_test}
# Support output to PDF
%{bcond_without perl_Module_Install_ReadmeFromPod_enables_pdf}
%else
%{bcond_with perl_Module_Install_ReadmeFromPod_enables_optional_test}
%{bcond_with perl_Module_Install_ReadmeFromPod_enables_pdf}
%endif

Name:           perl-Module-Install-ReadmeFromPod
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Module::Install extension to automatically convert POD to a README
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Module-Install-ReadmeFromPod
Source0:        https://cpan.metacpan.org/authors/id/B/BI/BINGOS/Module-Install-ReadmeFromPod-%{upstream_version}.tar.gz
# Regenerate README in UTF-8
Patch0:         Module-Install-ReadmeFromPod-0.26-Regenerate-README-in-UTF-8.patch
# Remove a bogus test that fails on PDF binary files randomly, CPAN RT#130221
Patch1:         Module-Install-ReadmeFromPod-0.30-Do-not-test-PDF-file-for-new-lines.patch
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(Config)
BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(lib)
BuildRequires:  perl(Module::Install::AutoLicense)
BuildRequires:  perl(Module::Install::AuthorRequires) >= 0.02
BuildRequires:  perl(Module::Install::GithubMeta)
BuildRequires:  perl(Module::Install::Metadata)
BuildRequires:  perl(strict)
# Build script uses lib/Module/Install/ReadmeFromPod.pm
# Run-time:
BuildRequires:  perl(base)
BuildRequires:  perl(Capture::Tiny) >= 0.05
BuildRequires:  perl(IO::All)
# Module::Install::Base version from Module::Install in Makefile.PL
BuildRequires:  perl(Module::Install::Base) >= 1
BuildRequires:  perl(Pod::Html)
BuildRequires:  perl(Pod::Man)
BuildRequires:  perl(Pod::Markdown) >= 2
BuildRequires:  perl(Pod::Text) >= 3.13
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
# Optional run-time:
%if %{with perl_Module_Install_ReadmeFromPod_enables_pdf}
BuildRequires:  perl(App::pod2pdf)
%endif
# Tests:
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Test::InDistDir)
BuildRequires:  perl(Test::More) >= 0.47
%if %{with perl_Module_Install_ReadmeFromPod_enables_optional_test}
# Optional tests:
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
%endif
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
%if %{with perl_Module_Install_ReadmeFromPod_enables_pdf}
Suggests:       perl(App::pod2pdf)
%endif
Requires:       perl(Capture::Tiny) >= 0.05
Requires:       perl(IO::All)
# Module::Install::Base version from Module::Install in Makefile.PL
Requires:       perl(Module::Install::Base) >= 1
Requires:       perl(Pod::Html)
Requires:       perl(Pod::Man)
Requires:       perl(Pod::Markdown) >= 2
Requires:       perl(Pod::Text) >= 3.13

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Module::Install::Base\\)$

%description
Module::Install::ReadmeFromPod is a Module::Install extension that
generates a README file automatically from an indicated file containing
POD, whenever the author runs Makefile.PL. Several output formats are
supported: plain-text, HTML, PDF or manual page.

%prep
%setup -q -n Module-Install-ReadmeFromPod-%{upstream_version}
%patch0 -p1
%patch1 -p1
# Remove bundled modules
rm -r inc
perl -i -ne 'print $_ unless m{^inc/}' MANIFEST
# Drop executable bit from documentation
chmod -x tools/git-log.pl

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} $RPM_BUILD_ROOT/*

%check
make test

%files
%license LICENSE
%doc Changes README tools
%{perl_vendorlib}/*
%{_mandir}/man3/*

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-16
- Perl 5.34 rebuild

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-15
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Mon Jan 18 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-14
- Disable support output to PDF on RHEL

* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-12
- Perl 5.32 rebuild

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Mon Jul 29 2019 Petr Pisar <ppisar@redhat.com> - 0.30-10
- Remove a bogus test that fails on PDF binary files randomly (CPAN RT#130221)

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-8
- Perl 5.30 rebuild

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Fri Jun 29 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-5
- Perl 5.28 rebuild

* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.30-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Mon Jun 05 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-2
- Perl 5.26 rebuild

* Mon Feb 20 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.30-1
- 0.30 bump

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Mon May 16 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.26-2
- Perl 5.24 rebuild

* Thu Apr 28 2016 Petr Pisar <ppisar@redhat.com> - 0.26-1
- 0.26 bump

* Tue Apr 26 2016 Petr Pisar <ppisar@redhat.com> - 0.24-1
- 0.24 bump

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.22-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 06 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-4
- Perl 5.22 rebuild

* Fri Aug 29 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-3
- Perl 5.20 rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.22-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Mon Aug 26 2013 Jitka Plesnikova <jplesnik@redhat.com> - 0.22-1
- 0.22 bump

* Sun Aug 04 2013 Petr Pisar <ppisar@redhat.com> - 0.20-4
- Perl 5.18 rebuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Mon Oct 22 2012 Jitka Plesnikova <jplesnik@redhat.com> - 0.20-1
- 0.20 bump

* Fri Jun 22 2012 Jitka Plesnikova <jplesnik@redhat.com> 0.18-1
- Specfile autogenerated by cpanspec 1.78.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5122 |21cr|perl-Module-Install-ReadmeMarkdownFromPod-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-ReadmeMarkdownFromPod
%define upstream_version 0.04

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Create README.mkdn from POD
Group:          Development/Python
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Module-Install-ReadmeMarkdownFromPod
Source0:        https://cpan.metacpan.org/authors/id/M/MA/MATTN/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  findutils
BuildRequires:  perl-interpreter >= 1:5.6.0
BuildRequires:  perl-generators
# XXX: We cannot remove ./inc because it build-requires this module
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(CPAN) >= 1.89
BuildRequires:  perl(Cwd)
BuildRequires:  perl(ExtUtils::Command)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(ExtUtils::Manifest)
BuildRequires:  perl(ExtUtils::MM_Unix)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(FindBin)
BuildRequires:  perl(lib)
BuildRequires:  perl(Pod::Parser)
BuildRequires:  perl(Pod::Text)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::Builder::Module)
BuildRequires:  perl(Test::Harness)
BuildRequires:  perl(URI::Escape)
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
Requires:       perl(Module::Install)
Requires:       perl(Module::Install::ReadmeFromPod)
Requires:       perl(Pod::Markdown)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Module::Install::ReadmeMarkdownFromPod is a Module::Install extension that
generates a README.mkdn file automatically from an indicated file
containing POD whenever the author runs Makefile.PL. This file is used by
GitHub to display nicely formatted information about a repository.

%prep
%setup -q -n Module-Install-ReadmeMarkdownFromPod-%{upstream_version}

# README is ISO-8859-1 encoded
iconv -f iso-8859-1 -t utf8 < README > README.utf8
mv README.utf8 README

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5123 |21cr|perl-Module-Install-Repository-0.60.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Install-Repository
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Automatically sets repository URL from svn/svk/Git checkout

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Filter::Util::Call)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Module::Install::Repository is a Module::Install plugin to automatically
figure out repository URL and set it via _repository()_ which then will be
added to resources under _META.yml_.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5124 |21cr|perl-Module-Loaded-0.80.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Module-Loaded
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Mark modules as loaded or unloaded

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Module/Module-Loaded-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
When testing applications, often you find yourself needing to provide
functionality in your test environment that would usually be provided by
external modules. Rather than munging the INC by hand to mark these external
modules as loaded, so they are not attempted to be loaded by perl, this module
offers you a very simple way to mark modules as loaded and/or unloaded.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Module/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5125 |21cr|perl-Module-Load-Util-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Load-Util
%define upstream_version 0.008

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Some utility routines related to module loading
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Module-Load-Util/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-devel
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Exporter) >= 5.57
BuildRequires:  perl(Regexp::Pattern::Perl::Module)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(FindBin)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::More) >= 0.98
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Exporter) >= 5.57

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Exporter\\)\\s*$

# Filter modules bundled for tests
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}

%description
This module contains some utility routines related to module loading.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# Help generators to recognize Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*


%check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
unset AUTHOR_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5126 |21cr|perl-Module-Manifest-1.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Manifest
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Parse and examine a Perl distribution MANIFEST file

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Exception)
BuildArch:	noarch

%description
*Module::Manifest* is a simple utility module created originally for use in
the Module::Inspector manpage.

It allows you to load the _MANIFEST_ file that comes in a Perl distribution
tarball, examine the contents, and perform some simple tasks.

Granted, the functionality needed to do this is quite simple, but the Perl
distribution _MANIFEST_ specification contains a couple of little
idiosyncracies, such as line comments and space-seperated inline comments.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5127 |21cr|perl-Module-Manifest-Skip-0.230.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Manifest-Skip
%define upstream_version 0.23

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    MANIFEST.SKIP Manangement for Modules
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:     Module-Manifest-Skip-0.23-Adapt-to-changes-in-Moo-2.004000.patch
BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Moo)
BuildRequires: perl(File::ShareDir::Install)
BuildRequires: perl(strictures)
BuildArch:     noarch

%description
*NOTE:* This module is mostly intended for module packaging frameworks to
share a common, up-to-date 'MANIFEST.SKIP' base. For example,
Module::Install::ManifestSkip, uses this module to get the actual SKIP
content. However this module may be useful for any module author.

CPAN module authors use a 'MANIFEST.SKIP' file to exclude certain well
known files from getting put into a generated 'MANIFEST' file, which would
cause them to go into the final distribution package.

The packaging tools try to automatically skip things for you, but if you
add one of your own entries, you have to add all the common ones yourself.
This module attempts to make all of this boring process as simple and
reliable as possible.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README Changes META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5128 |21cr|perl-Module-Mask-0.60.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Mask
%define upstream_version 0.06


Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        3
Summary:        Pretend certain modules are not installed
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Module-Mask/
Source0:        http://www.cpan.org/authors/id/M/MA/MATTLAW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Module::Build::Compat)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Carp::Heavy)
BuildRequires:  perl(Module::Util)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(base)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.16.0


BuildArch:      noarch

%description
Sometimes you need to test what happens when a given module is not
installed. This module provides a way of temporarily hiding installed
modules from perl's require mechanism. The Module::Mask object adds itself
to @INC and blocks require calls to restricted modules.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5129 |21cr|perl-Module-Package-0.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Package
%define upstream_version 0.30

Name:           perl-Module-Package
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Postmodern Perl Module Packaging
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Module-Package
Source0:        https://cpan.metacpan.org/authors/id/I/IN/INGY/Module-Package-%{upstream_version}.tar.gz
# Fix building on Perl without "." in @INC, CPAN RT#121748
Patch0:         Module-Package-0.30-Fix-building-on-Perl-without-.-in-INC.patch
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(IO::All) >= 0.41
BuildRequires:  perl(Module::Install) >= 1.01
BuildRequires:  perl(Module::Install::AuthorRequires) >= 0.02
BuildRequires:  perl(Module::Install::Base)
BuildRequires:  perl(Module::Install::ManifestSkip) >= 0.19
BuildRequires:  perl(Moo) >= 0.009008
# Tests:
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires:       perl(Data::Dumper)
Requires:       perl(File::Path)

%description
This module is a drop-in replacement for Module::Install. It does everything
Module::Install does, but just a bit better.

%prep
%setup -q -n Module-Package-%{upstream_version}
%patch0 -p1
# XXX: Do not unbundle ./inc/ because of bootstrap

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes LICENSE README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5130 |21cr|perl-Module-Path-0.190.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Path
%define upstream_version 0.19

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Get the full path to a locally installed module  

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Cwd)
BuildRequires: perl(Devel::FindPerl)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(FindBin) >= 0.50.0
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch:  noarch

%description
Module::Path provides a single function, module_path(), which will find where a
module is installed locally.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_bindir}/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5131 |21cr|perl-Module-Pluggable-Fast-0.190.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Module-Pluggable-Fast
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Fast plugins with instantiation

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(UNIVERSAL::exports)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
This module is similar to Module::Pluggable but instantiates plugins as soon as
they're found, useful for code generators like Class::DBI::Loader.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Module
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5132 |21cr|perl-Module-Pluggable-Ordered-1.500.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Pluggable-Ordered
%define upstream_version 1.5

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Call module plugins in a specified order

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(UNIVERSAL::require)
BuildRequires: perl-devel
BuildArch: noarch

%description
This module behaves exactly the same as 'Module::Pluggable', supporting all
of its options, but also mixes in the 'call_plugins' and 'plugins_ordered'
methods to your class. 'call_plugins' acts a little like 'Class::Trigger';
it takes the name of a method, and some parameters. Let's say we call it
like so:

    __PACKAGE__->call_plugins("my_method", @something);

'call_plugins' looks at the plugin modules found using 'Module::Pluggable'
for ones which provide 'my_method_order'. It sorts the modules numerically
based on the result of this method, and then calls
'$_->my_method(@something)' on them in order. This produces an effect a
little like the System V init process, where files can specify where in the
init sequence they want to be called.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5133 |21cr|perl-Module-Release-2.128.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Release
%define upstream_version 2.128

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Upload through the PAUSE web interface
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(open)
BuildRequires: perl(CACertOrg::CA)
BuildRequires: perl(ConfigReader::Simple)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::Null)
BuildRequires: perl(Mojolicious)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Time::Piece)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Output)
BuildRequires: perl(Test::Without::Module)
BuildRequires: perl(URI)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(CGI)
BuildRequires: perl(Test::Pod)


BuildArch: noarch

%description
'Module::Release' automates your software release process. It started as a
script that automated my release process, so it has bits to talk to PAUSE
(CPAN) and SourceForge, and to use 'Makefile.PL' and 'CVS'. Other people
have extended this in other modules under the same namespace so you can use
'Module::Build', 'svn', and many other things.

The methods represent a step in the release process. Some of them check a
condition (e.g. all tests pass) and die if that doesn't work.
'Module::Release' doesn't let you continue if something is wrong. Once you
have checked everything, use the upload features to send your files to the
right places.

The included 'release' script is a good starting place. Don't be afraid to
edit it for your own purposes.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README*
%{_bindir}/release
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5134 |21cr|perl-Module-Reload-1.80.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Module-Reload
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Reload %%INC files when updated on disk


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz
Source1:        %{name}.rpmlintrc

BuildRequires:	perl-devel
BuildArch:	noarch

%description
When Perl pulls a file via C<require>, it stores the filename in the
global hash C<%%INC>.  The next time Perl tries to C<require> the same
file, it sees the file in C<%%INC> and does not reload from disk.  This
module's handler iterates over C<%%INC> and reloads the file if it has
changed on disk. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Module
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5135 |21cr|perl-Module-Starter-1.710.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Module-Starter
%define upstream_version 1.71

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Epoch:		1

Summary:	A simple starter kit for any module 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is the core module for Module::Starter. If you're not looking to extend or
alter the behavior of this module, you probably want to look at module-starter
instead.

Module::Starter is used to create a skeletal CPAN distribution, including basic
builder scripts, tests, documentation, and module code. This is done through
just one method, create_distro.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc Changes README META.json META.yml
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5136 |21cr|perl-Module-Util-1.90.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Util
%define upstream_version 1.09
Name:       perl-%{upstream_name}
Version:    %perl_convert_version 1.09
Release:    5

Summary:    Module name tools and transformations

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/Module-Util-1.09.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This module provides a few useful functions for manipulating module names.
Its main aim is to centralise some of the functions commonly used by
modules that manipulate other modules in some way, like converting module
names to relative paths.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_bindir}/pm_which
%{_mandir}/man1/pm_which.1.*
%{_mandir}/man3/*
%{perl_vendorlib}/Module

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5137 |21cr|perl-Module-Versions-Report-1.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Versions-Report
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl module to report versions of all modules in memory

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Perl module to report versions of all modules in memory.
If you add "use Module::Versions::Report;" to a program (especially handy if 
your program is one that demonstrates a bug in some module), then when the 
program has finished running, you well get a report detailing the all 
modules in memory, and noting the version of each (for modules that 
defined a $VERSION, at least).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc ChangeLog README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5138 |21cr|perl-Mojolicious-Plugin-Authentication-1.390.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mojolicious-Plugin-Authentication
%define upstream_version 1.39

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A plugin to make authentication a bit easier

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Mojolicious/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Module::Build)
BuildRequires: perl(Mojolicious) >= 6.140.0
BuildRequires: perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires: perl(Test::Mojo)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::CPAN::Changes)

BuildArch: noarch

%description
%{summary}.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5139 |21cr|perl-Mojo-Pg-4.270.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Mojo-Pg
%define upstream_version 4.27

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Mojolicious PostgreSQL
Group:          Development/Perl
License:        Artistic 2.0

URL:            https://metacpan.org/release/Mojo-Pg
Source0:        https://cpan.metacpan.org/authors/id/S/SR/SRI/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:      noarch
# Build
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(Mojolicious) >= 8.50
BuildRequires:  perl(strict)
BuildRequires:  perl(utf8)
BuildRequires:  perl(warnings)
# Runtime
BuildRequires:  perl(Carp)
BuildRequires:  perl(DBD::Pg) >= 3.7.4
BuildRequires:  perl(DBI)
BuildRequires:  perl(Mojo::Base)
BuildRequires:  perl(Mojo::Collection)
BuildRequires:  perl(Mojo::EventEmitter)
BuildRequires:  perl(Mojo::File)
BuildRequires:  perl(Mojo::IOLoop)
BuildRequires:  perl(Mojo::JSON)
BuildRequires:  perl(Mojo::Loader)
BuildRequires:  perl(Mojo::Promise)
BuildRequires:  perl(Mojo::URL)
BuildRequires:  perl(Mojo::Util)
BuildRequires:  perl(SQL::Abstract)
BuildRequires:  perl(SQL::Abstract::Pg) >= 1.0
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(constant)
# Tests
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(FindBin)
BuildRequires:  perl(Mojolicious::Lite)
BuildRequires:  perl(Test::Mojo)
BuildRequires:  perl(Test::More)
Requires:       perl
Requires:       perl(SQL::Abstract) >= 1.85

%{?perl_default_filter}

%description
Mojo::Pg is a tiny wrapper around DBD::Pg that makes PostgreSQL a lot of
fun to use with the Mojolicious real-time web framework. Perform queries
blocking and non-blocking, use all SQL features PostgreSQL has to offer,
generate CRUD queries from data structures, manage your database schema
with migrations and build scalable real-time web applications with the
publish/subscribe pattern.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README.md
%license LICENSE
%{perl_vendorlib}/Mojo*
%{_mandir}/man3/Mojo*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5140 |21cr|perl-MondoRescue-3.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define srcname MondoRescue

Summary:	The perl-MondoRescue provides a set of functions for the MondoRescue project
Name:		perl-MondoRescue
Version:	3.2.2
Release:	1
License:	GPLv2
Group:		Archiving/Backup
Url:		http://www.mondorescue.org
Source:		ftp://ftp.mondorescue.org/src/%{srcname}-%{version}.tar.gz
BuildArch:	noarch
Requires:	perl >= 5.6.2
Requires:	perl-ProjectBuilder
BuildRequires:	perl-ProjectBuilder
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test)

%description
The perl-MondoRescue provides a set of functions for the MondoRescue project

%files
%config(noreplace) %{_sysconfdir}/mondorescue
%doc ChangeLog COPYING README NEWS AUTHORS

%{_bindir}/*
%{_mandir}/man1/*
%{perlvendorlib}/*
%{_mandir}/man3/*
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

%build
%{__perl} Makefile.PL destdir=${RPM_BUILD_ROOT}/  CONFDIR=%{_sysconfdir} CACHEDIR=%{_var}/cache TARGET=%{_exec_prefix}
%make

%install
make DESTDIR=${RPM_BUILD_ROOT} install
find ${RPM_BUILD_ROOT} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
find ${RPM_BUILD_ROOT} -type d -depth | xargs rmdir --ignore-fail-on-non-empty

%check
make test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5141 |21cr|perl-Monitoring-Availability-0.460.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Monitoring-Availability
%define upstream_version 0.46

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Load/Store/Access Logfiles
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/N/NI/NIERLEIN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(CPAN)
BuildRequires: perl(Test::More)
BuildArch:     noarch

%description
This module calculates the availability for hosts/server from given
logfiles. The Logfileformat is Nagios/Icinga only.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc MYMETA.yml META.yml Changes MYMETA.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5142 |21cr|perl-Monitoring-Livestatus-0.840.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Monitoring-Livestatus
%define upstream_version 0.84

%global __requires_exclude perl\\(Monitoring::Livestatus::Class::Abstract::Filter\\)|perl\\(Monitoring::Livestatus::Class::Abstract::Stats\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Connector with multiple peers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/N/NI/NIERLEIN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(IO::Socket::INET)
BuildRequires:	perl(IO::Socket::UNIX)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Thread::Queue)
BuildRequires:	perl(utf8)
BuildArch:	noarch

%description
This module connects via socket/tcp to the check_mk livestatus addon for
Nagios and Icinga. You first have to install and activate the mklivestatus
addon in your monitoring installation.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5143 |21cr|perl-Monitoring-Livestatus-Class-0.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Monitoring-Livestatus-Class
%define upstream_version 0.06

%global __requires_exclude perl\\(Monitoring::Livestatus::Class::Abstract::Filter\\)|perl\\(Monitoring::Livestatus::Class::Abstract::Stats\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Class for servicesbyhostgroup table

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/N/NI/NIERLEIN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(Monitoring::Livestatus)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Devel::LeakGuard::Object)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Memory::Cycle)

BuildArch:	noarch

%description
This module is an object-oriented interface for Monitoring::Livestatus

*The module is still in an early stage of development, there can be some
api changes between releases.*

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5144 |21cr|perl-Moose-Autobox-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Moose-Autobox
%define upstream_version 0.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    The Indexed role
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(autobox)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Moose)
BuildRequires: perl(Perl6::Junction)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Syntax::Keyword::Junction::All)
BuildRequires: perl(namespace::autoclean)

BuildArch: noarch

Requires: perl(autobox)

%description
Moose::Autobox provides an implementation of SCALAR, ARRAY, HASH & CODE for
use with the autobox manpage. It does this using a hierarchy of roles in a
manner similar to what Perl 6 _might_ do. This module, like the Class::MOP
manpage and the Moose manpage, was inspired by my work on the Perl 6 Object
Space, and the 'core types' implemented there.

A quick word about autobox
    The the autobox manpage module provides the ability for calling
    'methods' on normal Perl values like Scalars, Arrays, Hashes and Code
    references. This gives the illusion that Perl's types are first-class
    objects. However, this is only an illusion, albeit a very nice one. I
    created this module because the autobox manpage itself does not
    actually provide an implementation for the Perl types but instead only
    provides the 'hooks' for others to add implementation too.

Is this for real? or just play?
    Several people are using this module in serious applications and it
    seems to be quite stable. The underlying technologies of the autobox
    manpage and the Moose::Role manpage are also considered stable. There
    is some performance hit, but as I am fond of saying, nothing in life is
    free. If you have any questions regarding this module, either email me,
    or stop by #moose on irc.perl.org and ask around.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5145 |21cr|perl-Moose-Policy-0.50.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Moose-Policy
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Moose-mounted police

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
This module allows you to specify your project-wide or even company-wide
Moose meta-policy. 

Most all of Moose's features can be customized through the use of custom
metaclasses, however fiddling with the metaclasses can be hairy.
Moose::Policy removes most of that hairiness and makes it possible to
cleanly contain a set of meta-level customizations in one easy to use
module.

This is still an release of this module and it should not be considered to
be complete by any means. It is very basic implemenation at this point and
will likely get more feature-full over time, as people request features. So
if you have a suggestion/need/idea, please speak up.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5146 |21cr|perl-MooseX-Aliases-0.110.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Aliases
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Attribute metaclass trait for L<MooseX::Aliases>

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/MooseX-Aliases-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Requires)
BuildArch:	noarch

%description
The MooseX::Aliases module will allow you to quickly alias methods in
Moose. It provides an alias parameter for 'has()' to generate aliased
accessors as well as the standard ones. Attributes can also be initialized
in the constructor via their aliased names.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5147 |21cr|perl-MooseX-App-Cmd-0.340.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-App-Cmd
%define upstream_version 0.34

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Reads from config file
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(App::Cmd)
BuildRequires: perl(App::Cmd::Command)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(English)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Getopt::Long::Descriptive) >= 0.99.0
BuildRequires: perl(Moose) >= 2.160.300
BuildRequires: perl(Moose::Object)
BuildRequires: perl(MooseX::Getopt) >= 0.680.0 
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Output)
BuildRequires: perl(YAML)
BuildRequires: perl(base)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(MooseX::ConfigFromFile)
BuildRequires: perl(MooseX::SimpleConfig) 
BuildRequires: perl(MooseX::StrictConstructor) 
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Pod::Coverage)
BuildRequires: perl(MooseX::NonMoose)
BuildRequires: perl(CPAN::Meta) >= 2.150.5

BuildArch: noarch

%description
This module marries App::Cmd with MooseX::Getopt.

Use it like App::Cmd advises (especially see App::Cmd::Tutorial), swapping
App::Cmd::Command for MooseX::App::Cmd::Command.

Then you can write your moose commands as Moose classes, with
MooseX::Getopt defining the options for you instead of 'opt_spec' returning
a Getopt::Long::Descriptive spec.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENCE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5148 |21cr|perl-MooseX-ArrayRef-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-ArrayRef
%define upstream_version 0.005

Name:           perl-MooseX-ArrayRef
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Blessed array references with Moose
Group:          Development/Perl
# CONTRIBUTING: GPL+ or Artistic or CC-BY-SA
# other files:  GPL+ or Artistic
License:        (GPL+ or Artistic) and (GPL+ or Artistic or CC-BY-SA)
URL:            https://metacpan.org/release/MooseX-ArrayRef
Source0:        https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/MooseX-ArrayRef-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
# Run-time:
BuildRequires:  perl(constant)
BuildRequires:  perl(Moose) >= 2.00
BuildRequires:  perl(Moose::Exporter)
BuildRequires:  perl(Moose::Role)
BuildRequires:  perl(Moose::Util::MetaRole)
BuildRequires:  perl(Scalar::Util)
# Tests:
BuildRequires:  perl(Test::More) >= 0.61
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Moose) >= 2.00
Requires:       perl(strict)

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Moose\\)$

%description
Objects implemented with array references are often faster than those
implemented with hash references. Moose's default object implementation is
hash reference based. This is object implementation based on array references.

%prep
%setup -q -n MooseX-ArrayRef-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes CONTRIBUTING COPYRIGHT CREDITS examples README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5149 |21cr|perl-MooseX-Async-0.70.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Async
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	A Method Metaclass for MooseX::Async

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(MooseX::AttributeHelpers)
BuildArch:	noarch

%description
MooseX::Async is a set of Metaclasses for MooseX::POE and it's siblings.
Please see them for documentation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5150 |21cr|perl-MooseX-Attribute-Chained-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Attribute-Chained
%define upstream_version 1.0.3

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Attribute that returns the instance to allow for chaining

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Module::Build) >= 0.360.100
BuildRequires: perl(Moose)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Try::Tiny)
BuildArch:  noarch

Obsoletes: perl-MooseX-ChainedAccessors <= 0.20.0
Provides:  perl-MooseX-ChainedAccessors

%description
MooseX::Attribute::Chained is a Moose Trait which allows for method
chaining on accessors by returning $self on write/set operations.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.json *META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5151 |21cr|perl-MooseX-AttributeHelpers-0.250.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       MooseX-AttributeHelpers
%define upstream_version 0.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Extend your attribute interfaces

Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Moose) >= 2.160.300
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Moose::Meta::Method)
BuildRequires:	perl(Moose::Meta::Attribute)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Moose)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Pod::Coverage)

BuildArch:	noarch

%description
While the Moose manpage attributes provide you with a way to name your
accessors, readers, writers, clearers and predicates, this library provides
commonly used attribute helper methods for more specific types of data.

As seen in the the /SYNOPSIS manpage, you specify the extension via the
'metaclass' parameter. Available meta classes are:

%prep
%setup -qn %{upstream_name}-%{upstream_version} 
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE CONTRIBUTING META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/MooseX

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5152 |21cr|perl-MooseX-AttributeShortcuts-0.37.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-AttributeShortcuts
%define upstream_version 0.037

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Shorthand for common attribute options
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/R/RS/RSRCHBOY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(List::AllUtils) >= 0.90.0
BuildRequires: perl(Moose) >= 2.140.500
BuildRequires: perl(Moose::Exporter)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util)
BuildRequires: perl(Moose::Util::MetaRole)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Role::Parameterized)
BuildRequires: perl(MooseX::Types::Common::String)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(MooseX::Types::Path::Class)
BuildRequires: perl(MooseX::Meta::TypeConstraint::Mooish)
BuildRequires: perl(MooseX::Util)
BuildRequires: perl(Package::DeprecationManager)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Test::CheckDeps) >= 0.10.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::Moose::More) >= 0.18.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Warn)
BuildRequires: perl(Test::Moose::More)
BuildRequires: perl(constant)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(aliased)
BuildRequires: perl(CPAN::Meta::Prereqs) >= 2.150.5
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl-devel

BuildArch:  noarch

%description
Ever find yourself repeatedly specifing writers and builders, because
there's no good shortcut to specifying them? Sometimes you want an
attribute to have a read-only public interface, but a private writer. And
wouldn't it be easier to just say "builder => 1" and have the attribute
construct the canonical "_build_$name" builder name for you?

This package causes an attribute trait to be applied to all attributes
defined to the using class. This trait extends the attribute option
processing to handle the above variations.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README SIGNATURE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5153 |21cr|perl-MooseX-Blessed-Reconstruct-1.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Blessed-Reconstruct
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A L<Data::Visitor> for creating Moose objects

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::MOP)
BuildRequires:	perl(Data::Visitor)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Module::Build)

BuildArch:	noarch

%description
The purpose of this module is to "fix up" blessed data into a real Moose
object.

This is used internally by the MooseX::YAML manpage but has no
implementation details having to do with the YAML manpage itself.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5154 |21cr|perl-MooseX-ChainedAccessors-0.20.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-ChainedAccessors
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Accessor class for chained accessors with Moose

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/P/PE/PERLER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Moose)
BuildRequires: perl(Module::Build)
BuildArch: noarch

%description
Modifies the Accessor Metaclass to use MooseX::ChainedAccessors::Accessor

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5155 |21cr|perl-MooseX-ClassAttribute-0.290.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-ClassAttribute
%define upstream_version 0.29

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Declare class attributes Moose-style

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/MooseX-ClassAttribute-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(B)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::AttributeHelpers)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
This module allows you to declare class attributes in exactly the same way
as you declare object attributes, except using 'class_has()' instead of
'has()'. It is also possible to make these attributes immutable (and
faster) just as you can with normal Moose attributes.

You can use any feature of Moose's attribute declarations, including
overriding a parent's attributes, delegation ('handles'), and attribute
metaclasses, and it should just work.

The accessors methods for class attribute may be called on the class
directly, or on objects of that class. Passing a class attribute to the
constructor will not set it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README*
%{_mandir}/man3/*
%{perl_vendorlib}/MooseX

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5156 |21cr|perl-MooseX-Clone-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Clone
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	The L<Moose::Meta::Attribute>

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Visitor)
BuildRequires:	perl(Hash::Util::FieldHash::Compat)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(namespace::clean)
Provides:	perl(MooseX::Clone::Meta::Attribute::Trait::StorableClone)
BuildArch:	noarch

%description
Out of the box the Moose manpage only provides very barebones cloning
support in order to maximize flexibility.

This role provides a 'clone' method that makes use of the low level cloning
support already in the Moose manpage and adds selective deep cloning based
on introspection on top of that. Attributes with the 'Clone' trait will
handle cloning of data within the object, typically delegating to the
attribute value's own 'clone' method.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5157 |21cr|perl-MooseX-ConfigFromFile-0.140.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-ConfigFromFile
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	An abstract Moose role for setting attributes from a configfile

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(List::Util)
#BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Moose) >= 2.160.300
BuildRequires: perl(Moose::Role)
#BuildRequires: perl(MooseX::Getopt)
#BuildRequires: perl(MooseX::SimpleConfig)
#BuildRequires: perl(MooseX::Types::Moose)
#BuildRequires: perl(MooseX::Types::Path::Tiny)
#BuildRequires: perl(Scalar::Util)
#BuildRequires: perl(Test::Deep)
#BuildRequires: perl(Test::Fatal)
#BuildRequires: perl(Test::More) >= 1.1.9
#BuildRequires: perl(Test::Requires)
#BuildRequires: perl(Test::Without::Module)
#BuildRequires: perl(namespace::autoclean)
#BuildRequires: perl(strict)
#BuildRequires: perl(warnings)
#BuildRequires: perl(Pod::Coverage)

Requires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
This is an abstract role which provides an alternate constructor for
creating objects using parameters passed in from a configuration file. The
actual implementation of reading the configuration file is left to concrete
subroles.

It declares an attribute 'configfile' and a class method 'new_with_config',
and requires that concrete roles derived from it implement the class method
'get_config_from_file'.

Attributes specified directly as arguments to 'new_with_config' supercede
those in the configfile.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# test disabled - circular dependency with MooseX-Getopt
#%%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5158 |21cr|perl-MooseX-Daemonize-0.220.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Daemonize
%define upstream_version 0.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    A Role with the core daemonization and pidfile management
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Devel::AssertOS)
BuildRequires: perl(Devel::CheckOS) >= 1.630.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Path) >= 2.80.0
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build::Tiny) >= 0.34.0
BuildRequires: perl(Moose) >= 2.160.300
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Getopt)
BuildRequires: perl(MooseX::Getopt::OptionTypeMap)
BuildRequires: perl(MooseX::Types::Path::Class)
BuildRequires: perl(POSIX)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Sub::Exporter::ForMethods)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(constant)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Pod::Coverage)
BuildRequires: perl-devel

BuildArch:  noarch

%description
Often you want to write a persistant daemon that has a pid file, and
responds appropriately to Signals. This module provides a set of basic
roles as an infrastructure to do that.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -R 755 examples
find . -type f -exec chmod 644 {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# test fail on abf build, local test passed
#%%make test

%install
%makeinstall_std

%files
%doc CONTRIBUTING Changes IDEAS LICENCE META.json META.yml README examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5159 |21cr|perl-MooseX-Deprecated-0.5.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Deprecated
%define upstream_version 0.005

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Mark attributes and methods as deprecated
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Devel::Callsite)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Role::Parameterized)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(namespace::autoclean)

BuildArch: noarch

%description
MooseX::Deprecated is a parameterizable role that makes it easy to
deprecate particular attributes and methods in a class.

In the SYNOPSIS above, 'before' method modifiers will be installed on the
'feathers' accessor and the 'honk' method, issuing a deprecation warning.
Additionally, an 'after' modifier will be installed on the class' 'BUILD'
method which will issue deprecation warnings for any deprecated attributes
passed to the constructor.

The warning text will be something along the lines of: *"%s is a deprecated
%s"*

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5160 |21cr|perl-MooseX-Emulate-Class-Accessor-Fast-0.9.32-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Emulate-Class-Accessor-Fast
%define upstream_version 0.009032

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Epoch:      1

License:    GPL+ or Artistic
Group:      Development/Perl
Summary:    Emulate Class::Accessor::Fast behavior using Moose attributes

Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Moose)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(namespace::clean)
BuildRequires: perl-devel
BuildArch: noarch

%description
This module attempts to hijack the Class::Accessor::Fast manpage in INC
and replace it with the MooseX::Emulate::Class::Accessor::Fast manpage.
Make sure it is loaded before the classes you have that use
<Class::Accessor::Fast>. It is meant as a tool to help you migrate your
project from the Class::Accessor::Fast manpage, to the
MooseX::Emulate::Class::Accessor::Fast manpage and ultimately, to the Moose
manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5161 |21cr|perl-MooseX-FollowPBP-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-FollowPBP
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Names accessors in the I<Perl Best Practices> style

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Moose)
BuildArch:	noarch

%description
This module does not provide any methods. Simply loading it changes the
default naming policy for the loading class so that accessors are separated
into get and set methods. The get methods are prefixed with "get_" as the
accessor, while set methods are prefixed with "set_". This is the naming
style recommended by Damian Conway in _Perl Best Practices_.

If you define an attribute with a leading underscore, then both the get and
set method will also have an underscore prefix.

If you explicitly set a "reader" or "writer" name when creating an
attribute, then that attribute's naming scheme is left unchanged.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5162 |21cr|perl-MooseX-Getopt-0.750.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Getopt
%define upstream_version 0.75

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Optional meta attribute trait for ignoring params
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Getopt::Long) >= 2.470.0
BuildRequires:	perl(Getopt::Long::Descriptive) >= 0.99.0
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Moose) >= 2.140.500
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(MooseX::Types::Path::Tiny)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Trap)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Moose::Meta::Class)
BuildRequires:	perl(Moose::Util)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Moose)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Needs)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Moose::Meta::Attribute)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings) 
BuildRequires:	perl(MooseX::SimpleConfig) 
BuildRequires:	perl(MooseX::StrictConstructor) 
BuildRequires:	perl(MooseX::ConfigFromFile)
  
Requires:	perl(Getopt::Long::Descriptive)

BuildArch:	noarch

%description
This is a role which provides an alternate constructor for creating objects
using parameters passed in from the command line.

This module attempts to DWIM as much as possible with the command line
params by introspecting your class's attributes. It will use the name of
your attribute as the command line option, and if there is a type
constraint defined, it will configure Getopt::Long to handle the option
accordingly.

You can use the trait the MooseX::Getopt::Meta::Attribute::Trait manpage or
the attribute metaclass the MooseX::Getopt::Meta::Attribute manpage to get
non-default commandline option names and aliases.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTING META.json META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5163 |21cr|perl-MooseX-Has-Sugar-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Has-Sugar
%define upstream_version 1.000006

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Experimental sweetness
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Sub::Exporter::Progressive)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Moose)
BuildRequires: perl(base)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(MooseX::Types::Moose)

BuildArch: noarch

%description
Experimental sweetness.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5164 |21cr|perl-MooseX-InsideOut-0.106.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-InsideOut
%define upstream_version 0.106

Name:           perl-MooseX-InsideOut
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Inside-out objects with Moose
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/MooseX-InsideOut
Source0:        https://cpan.metacpan.org/modules/by-module/MooseX/MooseX-InsideOut-%{upstream_version}.tar.gz
BuildArch:      noarch
# Build
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# Module
BuildRequires:  perl(Class::MOP) >= 0.80
BuildRequires:  perl(Hash::Util::FieldHash::Compat)
BuildRequires:  perl(Moose) >= 0.94
BuildRequires:  perl(Moose::Exporter)
BuildRequires:  perl(Moose::Role)
BuildRequires:  perl(Moose::Util::MetaRole)
BuildRequires:  perl(namespace::clean) >= 0.11
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Tests
BuildRequires:  perl(constant)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test::More)
# Release Tests
BuildRequires:  perl(Pod::Coverage::TrustPod)
BuildRequires:  perl(Test::Pod) >= 1.41
BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
# Dependencies
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Class::MOP) >= 0.80
Requires:       perl(Moose) >= 0.94
Requires:       perl(namespace::clean) >= 0.11

%description
MooseX::InsideOut provides meta-roles for inside-out objects. That is, it
sets up attribute slot storage somewhere other than inside $self. This
means that you can extend non-Moose classes, whose internals you either
don't want to care about or aren't hash-based.

%prep
%setup -q -n MooseX-InsideOut-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} -c %{buildroot}

%check
make test RELEASE_TESTING=1

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/MooseX/
%{_mandir}/man3/MooseX::InsideOut.3*
%{_mandir}/man3/MooseX::InsideOut::Role::Meta::Instance.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5165 |21cr|perl-MooseX-Iterator-0.110.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Iterator
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Iterate over collections

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This is an attempt to add smalltalk-like streams to Moose. It currently
works with ArrayRefs and HashRefs.

* next

  The next method provides the next item in the colletion.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5166 |21cr|perl-MooseX-LazyRequire-0.110.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-LazyRequire
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Required attributes which fail only when trying to use them

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::CheckDeps)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 0.900.0
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Dist::CheckConflicts)

BuildArch:	noarch

%description
This module adds a 'lazy_require' option to Moose attribute declarations.

The reader methods for all attributes with that option will throw an
exception unless a value for the attributes was provided earlier by a
constructor parameter or through a writer method.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5167 |21cr|perl-MooseX-MarkAsMethods-0.150.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name MooseX-MarkAsMethods
%define upstream_version 0.15

Summary:	Mark overload code symbols as methods
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B::Hooks::EndOfScope)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose) >= 0.940.0
BuildRequires:	perl(Moose::Exporter)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Moose::Util::MetaRole)
BuildRequires:	perl(Test::Moose)
BuildRequires:	perl(Test::More) >= 0.920.0
BuildRequires:	perl(namespace::autoclean) >= 0.120.0
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(CPAN::Meta)
BuildArch:	noarch

%description
MooseX::MarkAsMethods allows one to easily mark certain functions as Moose
methods. This will allow other packages such as the namespace::autoclean
manpage to operate without blowing away your overloads. After using
MooseX::MarkAsMethods your overloads will be recognized by the Class::MOP
manpage as being methods, and class extension as well as composition from
roles with overloads will "just work".

By default we check for overloads, and mark those functions as methods.

If 'autoclean => 1' is passed to import on use'ing this module, we will
invoke namespace::autoclean to clear out non-methods.

%files
%doc Changes INSTALL META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5168 |21cr|perl-MooseX-Meta-TypeConstraint-ForceCoercion-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Meta-TypeConstraint-ForceCoercion
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Force coercion when validating type constraints

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

%description
This class allows to wrap any 'Moose::Meta::TypeConstraint' in a way that
will force coercion of the value when checking or validating a value
against it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5169 |21cr|perl-MooseX-Meta-TypeConstraint-Mooish-0.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name MooseX-Meta-TypeConstraint-Mooish
%define upstream_version 0.001


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Translate Moo-style constraints to Moose-style
License:	LGPLv2
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RS/RSRCHBOY/%{upstream_name}-%{upstream_version}.tar.gz

# Min BR are mandatory.Symbianflo
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::CheckDeps)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Moose::More) >= 0.32.0
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::autoclean) >= 0.240.0
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(Moose::Meta::TypeConstraint)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Moose) >= 2.140.500
BuildRequires:	perl(CPAN::Meta::Check) >= 0.12.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl-devel


BuildArch:	noarch

%description
Moose type constraints are expected to return true if the value passes
the constraint, and false otherwise; Moo "constraints", on the other
hand, die if validation fails.

This metaclass allows for Moo-style constraints; it will wrap them and
translate their Moo into a dialect Moose understands.

Note that this is largely to enable functionality in
MooseX::AttributeShortcuts; the easiest way use this metaclass is by
using that package. Also, as it's not inconceivable that this
functionality may be desired in other constraint metaclasses, the bulk
of this metaclass' functionality is implemented as a trait.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README SIGNATURE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5170 |21cr|perl-MooseX-MethodAttributes-0.320.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-MethodAttributes
%define upstream_version 0.32

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    No summary found

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(base)
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(Moose::Meta::Class)
BuildRequires: perl(MooseX::Role::Parameterized)
BuildRequires: perl(Moose::Exporter)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util)
BuildRequires: perl(Moose::Util::MetaRole)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(Moose) >= 2.160.300
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(Test::CheckDeps)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Pod::Coverage)
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl-devel

BuildArch: noarch

%description
This module allows code attributes of methods to be introspected using
Moose meta method objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -type f -exec chmod 644 {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENCE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5171 |21cr|perl-MooseX-MultiInitArg-0.20.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-MultiInitArg
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Attributes with aliases for constructor arg

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(TAP::Harness::Env)

BuildArch:	noarch

%description
If you've ever wanted to be able to call an attribute any number of things
while you're passing arguments to your object constructor, Now You Can.

The primary motivator is that I have some attributes that were named
inconsistently, and I wanted to rename them without breaking backwards
compatibility with my existing API.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5172 |21cr|perl-MooseX-NonMoose-0.260.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name MooseX-NonMoose
%define upstream_version 0.26

Summary:	Constructor method trait for L<MooseX::NonMoose>
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Exporter)
BuildRequires:	perl(Moose::Role) >= 2.0.0
BuildRequires:	perl(Moose::Util)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Moose)
BuildRequires:	perl(Test::More) >= 0.880.0
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(base)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
'MooseX::NonMoose' allows for easily subclassing non-Moose classes with
Moose, taking care of the annoying details connected with doing this, such
as setting up proper inheritance from the Moose::Object manpage and
installing (and inlining, at 'make_immutable' time) a constructor that
makes sure things like 'BUILD' methods are called. It tries to be as
non-intrusive as possible - when this module is used, inheriting from
non-Moose classes and inheriting from Moose classes should work
identically, aside from the few caveats mentioned below. One of the goals
of this module is that including it in a the Moose::Exporter manpage-based
package used across an entire application should be possible, without
interfering with classes that only inherit from Moose modules, or even
classes that don't inherit from anything at all.

There are several ways to use this module. The most straightforward is to
just 'use MooseX::NonMoose;' in your class; this should set up everything
necessary for extending non-Moose modules. the
MooseX::NonMoose::Meta::Role::Class manpage and the
MooseX::NonMoose::Meta::Role::Constructor manpage can also be applied to
your metaclasses manually, either by passing a '-traits' option to your
'use Moose;' line, or by applying them using the Moose::Util::MetaRole
manpage in a the Moose::Exporter manpage-based package. the
MooseX::NonMoose::Meta::Role::Class manpage is the part that provides the
main functionality of this module; if you don't care about inlining, this
is all you need to worry about. Applying the
MooseX::NonMoose::Meta::Role::Constructor manpage as well will provide an
inlined constructor when you immutabilize your class.

'MooseX::NonMoose' allows you to manipulate the argument list that gets
passed to the superclass constructor by defining a 'FOREIGNBUILDARGS'
method. This is called with the same argument list as the 'BUILDARGS'
method, but should return a list of arguments to pass to the superclass
constructor. This allows 'MooseX::NonMoose' to support superclasses whose
constructors would get confused by the extra arguments that Moose requires
(for attributes, etc.)

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5173 |21cr|perl-MooseX-Object-Pluggable-0.1.400-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Object-Pluggable
%define upstream_version 0.0014

Summary:	Make your classes pluggable
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Epoch:		1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Pluggable::Object)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Moose::Util)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(strict)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(warnings)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module is meant to be loaded as a role from Moose-based classes. It
will add five methods and four attributes to assist you with the loading
and handling of plugins and extensions for plugins. I understand that this
may pollute your namespace, however I took great care in using the least
ambiguous names possible.

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5174 |21cr|perl-MooseX-OneArgNew-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-OneArgNew
%define upstream_version 0.006

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Teach ->new to accept single, non-hashref arguments
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://search.cpan.org/CPAN/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(Moose) >= 2.140.300
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Role::Parameterized) >= 1.80.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Pod)
BuildRequires: perl(namespace::autoclean) >= 0.260.0
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
MooseX::OneArgNew lets your constructor take a single argument, which will
be translated into the value for a one-entry hashref. It is a the
parameterized role|MooseX::Role::Parameterized manpage with three
parameters:

* type

  The Moose type that the single argument must be for the one-arg form to
  work. This should be an existing type, and may be either a string type or
  a MooseX::Type.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5175 |21cr|perl-MooseX-Param-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Param
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Simple role to provide a standard param method

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This is a very simple Moose role which provides a the CGI manpage like
'param' method.

I found that I had written this code over and over and over and over again,
and each time it was the same. So I thought, why not put it in a role?

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5176 |21cr|perl-MooseX-Params-Validate-0.210.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Params-Validate
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	An extension of Params::Validate for using Moose's types

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Devel::Caller)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Moose) >= 2.140.500
BuildRequires:	perl(Moose::Exception)
BuildRequires:	perl(Moose::Util)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(Moose::Meta::TypeConstraint::Role)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Code::TidyAll)
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Perl::Tidy)
BuildRequires:	perl(Pod::Coverage::TrustPod)
BuildRequires:	perl(Test::CPAN::Changes)
BuildRequires:	perl(Test::Code::TidyAll)
BuildRequires:	perl(Test::EOL)
BuildRequires:	perl(Test::NoTabs)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Spelling)
BuildRequires:	perl(Test::Synopsis)
BuildRequires:	perl(Test::Version)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(overload)

BuildArch:	noarch

%description
This module fills a gap in Moose by adding method parameter validation to
Moose. This is just one of many developing options, it should not be
considered the "official" one by any means though.

You might also want to explore 'MooseX::Method::Signatures' and
'MooseX::Declare'

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE META.json META.yml README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5177 |21cr|perl-MooseX-POE-0.215.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-POE
%define upstream_version 0.215

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	A Instance Metaclass for MooseX::POE

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/MooseX-POE-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Async)
BuildRequires:	perl(POE)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Fatal)
Requires:	perl(MooseX::Async)
BuildArch:	noarch

%description
MooseX::POE is a Moose wrapper around a POE::Session.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5178 |21cr|perl-MooseX-RelatedClassRoles-0.4.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-RelatedClassRoles
%define upstream_version 0.004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Apply roles to a class related to yours

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::MOP)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
Frequently, you have to use a class that provides some 'foo_class' accessor
or attribute as a method of dependency injection. Use this role when you'd
rather apply roles to make your custom 'foo_class' instead of manually
setting up a subclass.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5179 |21cr|perl-MooseX-Role-BuildInstanceOf-0.80.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Role-BuildInstanceOf
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Less Boilerplate when you need lots of Instances


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/MooseX-Role-BuildInstanceOf-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::MOP)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(MooseX::Iterator)
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(MooseX::Types::Path::Class)
BuildRequires:	perl(Perl6::Junction)
BuildRequires:	perl(Test::More)
BuildRequires:  perl(namespace::autoclean)
BuildArch:	noarch

%description
There can often be a tension between coding for flexibility and for future
growth and writing code that is terse, to the point, and solves the
smallest possible business problem that is brought to you. Writing the
minimum code to solve a particular problem has merit, yet can eventually
leave you with an application that has many hacky modifications and is hard
to test in an isolated manner. Minimum code should not imply minimum
forward planning or poorly tested code.

For me, doing the right thing means I need to both limit myself to the
smallest possible solution for a given business case, yet make sure I am
not writing CODE that is impossible to grow over time in a clean manner.
Generally I attempt to do this by clearly separating the problem domains
under a business case into distinct classes. I then tie all the functional
bits together in the loosest manner possible. the Moose manpage makes this
easy, with its powerful attribute features, type coercions and Roles to
augment classical inheritance.

Loose coupling and deep configurability work well with inversion of control
systems, like the Bread::Board manpage or the IOC built into the the
Catalyst manpage MVC framework. It helps me to defer decisions to the
proper authority and also makes it easier to test my logic, since pieces
are easier to test independently.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5180 |21cr|perl-MooseX-Role-Parameterized-1.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Role-Parameterized
%define upstream_version 1.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Trait for parameterizable roles
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(CPAN::Meta::Check) >= 0.12.0
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.125.0
BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(Data::Dumper) >= 2.154.0
BuildRequires: perl(Dist::CheckConflicts)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(Module::Build::Tiny) >= 0.37.0
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moose) >= 2.140.300
BuildRequires: perl(Moose::Exporter)
BuildRequires: perl(Moose::Meta::Role)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Role::WithOverloading)
BuildRequires: perl(Storable)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Needs)
BuildRequires: perl(namespace::autoclean) >= 0.260.0
BuildRequires: perl(namespace::clean)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
Your parameterized role consists of two new things: parameter declarations
and a 'role' block.

Parameters are declared using the the /parameter manpage keyword which very
much resembles the Moose/has manpage. You can use any option that the
Moose/has manpage accepts. The default value for the 'is' option is 'ro' as
that's a very common case. Use 'is => 'bare'' if you want no accessor.
These parameters will get their values when the consuming class (or role)
uses the Moose/with manpage. A parameter object will be constructed with
these values, and passed to the 'role' block.

The 'role' block then uses the usual the Moose::Role manpage keywords to
build up a role. You can shift off the parameter object to inspect what the
consuming class provided as parameters. You use the parameters to customize
your role however you wish.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5181 |21cr|perl-MooseX-Role-WithOverloading-0.160.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Role-WithOverloading
%define upstream_version 0.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Roles which support overloading
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Exporter)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Test::More)
BuildRequires: perl(aliased)
BuildRequires: perl(base)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

%description
MooseX::Role::WithOverloading allows you to write a the Moose::Role manpage
which defines overloaded operators and allows those overload methods to be
composed into the classes/roles/instances it's compiled to, where plain the
Moose::Role manpages would lose the overloading.

Starting with the Moose manpage version 2.1300, this module is no longer
necessary, as the functionality is available already. In that case, 'use
MooseX::Role::WithOverloading' behaves identically to 'use Moose::Role'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
#%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5182 |21cr|perl-MooseX-SemiAffordanceAccessor-0.100.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-SemiAffordanceAccessor
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Names accessors in a semi-affordance style

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build::Compat)

BuildArch:	noarch

%description
This module does not provide any methods. Simply loading it changes the
default naming policy for the loading class so that accessors are separated
into get and set methods. The get methods have the same name as the
accessor, while set methods are prefixed with "set_".

If you define an attribute with a leading underscore, then the set method
will start with "_set_".

If you explicitly set a "reader" or "writer" name when creating an
attribute, then that attribute's naming scheme is left unchanged.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README.* META.json META.yml 
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5183 |21cr|perl-MooseX-SetOnce-0.203.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-SetOnce
%define upstream_version 0.203

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Write-once, read-many attributes for Moose

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/MooseX-SetOnce-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Try::Tiny)

BuildArch:	noarch

%description
The 'SetOnce' attribute lets your class have attributes that are not lazy
and not set, but that cannot be altered once set.

The logic is very simple: if you try to alter the value of an attribute
with the SetOnce trait, either by accessor or writer, and the attribute has
a value, it will throw an exception.

If the attribute has a clearer, you may clear the attribute and set it
again.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5184 |21cr|perl-MooseX-SimpleConfig-0.110.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-SimpleConfig
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	A Moose role for setting attributes from a simple configfile

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
#BuildRequires:	perl(Test::Requires)
#BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Config::Any)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::ConfigFromFile)
#BuildRequires:	perl(Test::More) >= 1.1.9
#BuildRequires:	perl(Module::Build::Tiny)
#BuildRequires:	perl(Dist::CheckConflicts)

BuildArch:	noarch

%description
This role loads simple configfiles to set object attributes. It is based on
the abstract role the MooseX::ConfigFromFile manpage, and uses the
Config::Any manpage to load your configfile. the Config::Any manpage will
in turn support any of a variety of different config formats, detected by
the file extension. See the Config::Any manpage for more details about
supported formats.

Like all the MooseX::ConfigFromFile manpage -derived configfile loaders,
this module is automatically supported by the the MooseX::Getopt manpage
role as well, which allows specifying '-configfile' on the commandline.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# test on abf fail, local test PASS
#%%make test

%install
%makeinstall_std

%files
%doc  README LICENSE CONTRIBUTING META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5185 |21cr|perl-MooseX-Singleton-0.290.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Singleton
%define upstream_version 0.29

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Base class for MooseX::Singleton

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)

BuildArch:	noarch

%description
A singleton is a class that has only one instance in an application.
'MooseX::Singleton' lets you easily upgrade (or downgrade, as it were) your
the Moose manpage class to a singleton.

All you should need to do to transform your class is to change 'use Moose'
to 'use MooseX::Singleton'. This module uses a new class metaclass and
instance metaclass, so if you're doing metamagic you may not be able to use
this.

'MooseX::Singleton' gives your class an 'instance' method that can be used
to get a handle on the singleton. It's actually just an alias for 'new'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5186 |21cr|perl-MooseX-Storage-0.530.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Storage
%define upstream_version 0.53

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A custom meta-attribute-trait to bypass serialization
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl(Carp) >= 1.360.0
BuildRequires: perl(CPAN) >= 2.100.0
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(Data::Dumper) >= 2.154.0
BuildRequires: perl(Digest) >= 1.170.0
BuildRequires: perl(Digest::HMAC_SHA1)
BuildRequires: perl(Digest::SHA) >= 5.950.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec) >= 3.470.0
BuildRequires: perl(File::Temp) >= 0.230.400
BuildRequires: perl(IO::AtomicFile)
BuildRequires: perl(JSON::Any) >= 1.390.0
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moose) >= 2.140.300
BuildRequires: perl(Scalar::Util) >= 1.420.0
BuildRequires: perl(Storable) >= 2.300.0
BuildRequires: perl(String::RewritePrefix)
BuildRequires: perl(Test::Deep) >= 0.115.0
BuildRequires: perl(Test::Deep::JSON)
BuildRequires: perl(Test::Deep::Type)
BuildRequires: perl(Test::Fatal) >= 0.14.0
BuildRequires: perl(Test::JSON)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Without::Module)
BuildRequires: perl(YAML::Any)
BuildRequires: perl(YAML::Syck)
BuildRequires: perl(YAML::XS)
BuildRequires: perl(namespace::autoclean) >= 0.260.0
BuildRequires: perl(open)
BuildRequires: perl(overload)
BuildRequires: perl(Dist::CheckConflicts)
BuildRequires: perl(JSON::DWIW)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(MooseX::Role::Parameterized) >= 1.80.0
BuildRequires: perl(Pod::Coverage)
BuildRequires: perl(YAML::Old)
BuildRequires: perl(YAML::Tiny)

BuildArch: noarch

%description
MooseX::Storage is a serialization framework for Moose, it provides a very
flexible and highly pluggable way to serialize Moose classes to a number of
different formats and styles.

Levels of Serialization
    There are 3 levels to the serialization, each of which builds upon the
    other and each of which can be customized to the specific needs of your
    class.

    * *base*

%prep
%setup -qn %{upstream_name}-%{upstream_version}
# some linting fix. Sflo
sed -i '1s,#!.*perl,#!%{__perl},' t/*.t
chmod 0644 Changes t/*.t

%build
echo -e  "y" | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
### Attention: please don't disable ye good ol' tests, ###
### rather update/backport the min.req.Sflo ###
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5187 |21cr|perl-MooseX-Storage-Format-JSONpm-0.93.93-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Storage-Format-JSONpm
%define upstream_version 0.093093

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    A format role for MooseX::Storage using JSON.pm
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(JSON)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Role::Parameterized)
BuildRequires: perl(MooseX::Storage)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch: noarch

%description
no description found

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5188 |21cr|perl-MooseX-StrictConstructor-0.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-StrictConstructor
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Make your object constructors blow up on unknown attributes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/MooseX-StrictConstructor-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Needs)
Requires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
Using this class to load Moose instead of just loading using Moose itself
makes your constructors "strict". If your constructor is called with an
attribute init argument that your class does not declare, then it calls
"Carp::confess()". This is a great way to catch small typos.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README*
%{_mandir}/man3/*
%{perl_vendorlib}/MooseX

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5189 |21cr|perl-MooseX-TraitFor-Meta-Class-BetterAnonClassNames-0.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-TraitFor-Meta-Class-BetterAnonClassNames
%define upstream_version 0.002003

Name:           perl-MooseX-TraitFor-Meta-Class-BetterAnonClassNames
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Metaclass trait to attempt to demystify generated anonymous class names
Group:          Development/Perl
License:        LGPLv2
URL:            https://metacpan.org/release/MooseX-TraitFor-Meta-Class-BetterAnonClassNames
Source0:        https://cpan.metacpan.org/authors/id/R/RS/RSRCHBOY/MooseX-TraitFor-Meta-Class-BetterAnonClassNames-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION)
BuildRequires:  perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires:  perl(autobox::Core)
BuildRequires:  perl(Moose::Exporter)
BuildRequires:  perl(Moose::Role)
BuildRequires:  perl(namespace::autoclean)
# Tests:
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Moose)
BuildRequires:  perl(Moose::Util::MetaRole)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::CheckDeps)
BuildRequires:  perl(Test::Moose::More)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(warnings)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This Moose meta class role helps with creating anonymous classes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=6.76
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5190 |21cr|perl-MooseX-Traits-0.130.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Traits
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Automatically apply roles at object creation time

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Pod::Coverage)

Requires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
Often you want to create components that can be added to a class
arbitrarily. This module makes it easy for the end user to use these
components. Instead of requiring the user to create a named class with the
desired roles applied, or applying roles to the instance one-by-one, he can
just pass a 'traits' parameter to the class's 'new_with_traits'
constructor. This role will then apply the roles in one go, cache the
resulting class (for efficiency), and return a new instance. Arguments
meant to initialize the applied roles' attributes can also be passed to the
constructor.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTING README LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5191 |21cr|perl-MooseX-Traits-Pluggable-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Traits-Pluggable%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	An extension to MooseX::Traits

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::MOP)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(MooseX::Traits)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Test::use::ok)
BuildArch:	noarch
Requires:	perl(MooseX::Traits)

%description
See the MooseX::Traits manpage for usage information.

Adds support for class precedence search for traits and some extra
attributes, described below.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5192 |21cr|perl-MooseX-Types-0.500.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types
%define upstream_version 0.50

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary:    Organise your Moose types in libraries
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(Carp::Clan)
BuildRequires: perl(Class::MOP)
BuildRequires: perl(FindBin)
BuildRequires: perl(Moose) >= 2.160.300
BuildRequires: perl(Sub::Install)
BuildRequires: perl(Sub::Uplevel)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Data::Dump)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Dist::CheckConflicts)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Sub::Exporter::ForMethods) >= 0.100.52
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch: noarch

%description
The types provided with the Moose manpage are by design global. This
package helps you to organise and selectively import your own and the
built-in types in libraries. As a nice side effect, it catches typos at
compile-time too.

However, the main reason for this module is to provide an easy way to not
have conflicts with your type names, since the internal fully qualified
names of the types will be prefixed with the library's name.

This module will also provide you with some helper functions to make it
easier to use Moose types in your code.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -type f -exec chmod 644 {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README CONTRIBUTING LICENCE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/MooseX

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5193 |21cr|perl-MooseX-Types-Authen-Passphrase-0.40.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-Authen-Passphrase
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Authen::Passphrase type constraint and coercions


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Authen::Passphrase)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(Test::use::ok)
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(Dist::CheckConflicts)
BuildRequires:  perl(Module::Build::Tiny)

BuildArch:	noarch

%description
This the MooseX::Types manpage library provides string coercions for the
the Authen::Passphrase manpage family of classes.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5194 |21cr|perl-MooseX-Types-Common-0.1.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-Common
%define upstream_version 0.001014

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    MooseX-Types-Common distribution

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(open)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(utf8)
BuildRequires: perl-devel

BuildArch: noarch

%description
A set of commonly-used type constraints that do not ship with Moose by
default.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml CONTRIBUTING
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5195 |21cr|perl-MooseX-Types-DateTime-0.130.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-DateTime
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	L<DateTime> related constraints and coercions for

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Locale)
BuildRequires:	perl(DateTime::TimeZone)
BuildRequires:	perl(Moose) >= 2.160.300
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Locale::Maketext)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Duration)
BuildRequires:	perl(DateTime::Locale)
BuildRequires:	perl(DateTime::TimeZone)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Pod::Coverage)

BuildArch:	noarch

%description
This module packages several the Moose::Util::TypeConstraints manpage with
coercions, designed to work with the the DateTime manpage suite of objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -type f -exec chmod 644 {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTING LICENCE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5196 |21cr|perl-MooseX-Types-JSON-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-JSON
%define upstream_version 1.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    JSON datatype for Moose
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(JSON)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl-devel

BuildArch: noarch

%description
JSON datatype for Moose.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5197 |21cr|perl-MooseX-Types-LoadableClass-0.15.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-LoadableClass
%define upstream_version 0.015

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	ClassName type constraint with coercion to load the class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/MooseX/MooseX-Types-LoadableClass-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Moose) >= 2.160.300
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Pod::Coverage)

BuildArch:	noarch

%description
    use Moose::Util::TypeConstraints;

    my $tc = subtype as ClassName;
    coerce $tc, from Str, via { Class::MOP::load_class($_); $_ };

I've written those three lines of code quite a lot of times, in quite a lot
of places.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -type f -exec chmod 644 {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json README LICENCE CONTRIBUTING
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5198 |21cr|perl-MooseX-Types-Path-Class-0.90.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-Path-Class
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A Path::Class type library for Moose


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec) >= 3.470.0
BuildRequires:	perl(Moose) >= 2.160.300
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Needs)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(MooseX::Getopt) >= 0.680.0
BuildRequires:  perl(CPAN::Meta) >= 2.150.5
BuildRequires:  perl-base
BuildRequires:  perl(Pod::Coverage)
BuildRequires:  perl(Path::Class)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

BuildArch:	noarch

%description
MooseX::Types::Path::Class creates common the Moose manpage types,
coercions and option specifications useful for dealing with the Path::Class
manpage objects as the Moose manpage attributes.

Coercions (see the Moose::Util::TypeConstraints manpage) are made from both
'Str' and 'ArrayRef' to both the Path::Class::Dir manpage and the
Path::Class::File manpage objects. If you have the MooseX::Getopt manpage
installed, the Getopt option type ("=s") will be added for both the
Path::Class::Dir manpage and the Path::Class::File manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTING LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5199 |21cr|perl-MooseX-Types-Path-Tiny-0.12.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name MooseX-Types-Path-Tiny
%define upstream_version 0.012

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Path::Tiny types and coercions for Moose
License:    ASL 2.0
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp) >= 0.180.0
BuildRequires: perl(File::pushd)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build::Tiny) >= 0.34.0
BuildRequires: perl(Moose) >= 2.0.0
BuildRequires: perl(MooseX::Getopt)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(MooseX::Types::Stringlike)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.960.0
BuildRequires: perl
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(TAP::Harness::Env)
BuildRequires: perl(namespace::autoclean)



BuildArch:  noarch

%description
This module provides Path::Tiny types for Moose. It handles two important
types of coercion:

    * coercing objects with overloaded stringification
    * coercing to absolute paths

It also can check to ensure that files or directories exist.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc CONTRIBUTING Changes LICENCE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5200 |21cr|perl-MooseX-Types-Perl-0.101.343-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-Perl
%define upstream_version 0.101343

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Moose types that check against Perl syntax


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Implementation)
BuildRequires:  perl(namespace::autoclean)

BuildArch:	noarch

%description
This library provides MooseX::Types for checking things (mostly strings)
against syntax that is, or is a reasonable subset of, Perl syntax.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5201 |21cr|perl-MooseX-Types-Set-Object-0.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-Set-Object
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Set::Object type with coercions and stuff


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(Set::Object)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(Test::Fatal)
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Module::Build::Tiny)
BuildRequires:  perl(MooseX::Types::Moose)
BuildRequires:  perl(Set::Object)
BuildRequires:  perl(CPAN::Meta) >= 2.150.5
BuildRequires:  perl(Dist::CheckConflicts)
BuildRequires:  perl(Pod::Coverage)

BuildArch:	noarch

%description
This module provides Moose type constraints (see the
Moose::Util::TypeConstraints manpage, the MooseX::Types manpage).

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -type f -exec chmod 644 {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTING LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5202 |21cr|perl-MooseX-Types-Stringlike-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-Stringlike
%define upstream_version 0.003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Moose type constraints for strings or string-like objects
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(List::Util)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(Test::More)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(namespace::autoclean)

BuildArch: noarch

%description
This module provides a more general version of the 'Str' type. If coercions
are enabled, it will accepts objects that overload stringification and
coerces them into strings.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5203 |21cr|perl-MooseX-Types-Structured-0.360.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-Structured
%define upstream_version 0.36

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Structured type constraints

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Needs)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Devel::PartialDump)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Data::Dumper) >= 2.154.0
BuildRequires:	perl(MooseX::Types::DateTime)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Scalar::Util) >= 1.420.0
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl-base

Provides:	perl(MooseX::Meta::TypeCoercion::Structured) = %{version}
Provides:	perl(MooseX::Meta::TypeCoercion::Structured::Optional) = %{version}
Provides:	perl(MooseX::Meta::TypeConstraint::Structured) = %{version}
Provides:	perl(MooseX::Meta::TypeConstraint::Structured::Optional) = %{version}
Provides:	perl(MooseX::Types::Structured::MessageStack) = %{version}
Provides:	perl(MooseX::Types::Structured::OverflowHandler) = %{version}

BuildArch:	noarch

%description
A structured type constraint is a standard container the Moose manpage type
constraint, such as an ArrayRef or HashRef, which has been enhanced to
allow you to explicitly name all the allowed type constraints inside the
structure. The generalized form is:

    TypeConstraint[@TypeParameters]

Where 'TypeParameters' is an array or hash of the
Moose::Meta::TypeConstraint manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTING LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/MooseX

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5204 |21cr|perl-MooseX-Types-URI-0.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-Types-URI
%define upstream_version 0.09

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    URI related types and coercions for Moose
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(List::Util)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(MooseX::Types)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(MooseX::Types::Path::Class)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(URI)
BuildRequires: perl(URI::FromHash)
BuildRequires: perl(URI::QueryParam)
BuildRequires: perl(URI::WithBase)
BuildRequires: perl(URI::data)
BuildRequires: perl(URI::file)
BuildRequires: perl(base)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(ok)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Dist::CheckConflicts)
BuildRequires: perl(Pod::Coverage)
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Test::Without::Module)

BuildArch: noarch

%description
This package provides Moose types for fun with the URI manpages.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -type f -exec chmod 644 {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENCE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5205 |21cr|perl-MooseX-Util-0.006-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
## Run optional test
#%%bcond_without perl_MooseX_Util_enables_optional_test

Name:           perl-MooseX-Util
Version:        0.006
Release:        1
Summary:        Moose::Util extensions
Group:          Development/Perl
License:        LGPLv2
URL:            https://metacpan.org/release/MooseX-Util
Source0:        https://cpan.metacpan.org/authors/id/R/RS/RSRCHBOY/MooseX-Util-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(Carp)
BuildRequires:  perl(Moose)
BuildRequires:  perl(Moose::Meta::Class)
BuildRequires:  perl(Moose::Util)
BuildRequires:  perl(MooseX::TraitFor::Meta::Class::BetterAnonClassNames)
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(parent)
BuildRequires:  perl(Sub::Exporter::Progressive)
# Tests:
BuildRequires:  perl(aliased)
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Moose::Role)
BuildRequires:  perl(Test::CheckDeps)
BuildRequires:  perl(Test::Moose::More)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Requires)
#%%if %%{with perl_MooseX_Util_enables_optional_test}
# Optional tests:
# Reindeer not yet packaged
# Reindeer::Role not yet packaged
#%%endif
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Moose::Meta::Class)
Requires:       perl(MooseX::TraitFor::Meta::Class::BetterAnonClassNames)

%description
This Perl module handles all of the same functions that Moose::Util handles.
In fact, most of the functions are simply re-exports from Moose::Util.
However, we've re-implemented a number of the functions, for a variety of
reasons.

%prep
%setup -q -n MooseX-Util-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5206 |21cr|perl-MooseX-YAML-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooseX-YAML
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	DWIM loading of Moose objects from YAML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MooseX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(MooseX::Blessed::Reconstruct)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(YAML)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

%description
This module provides DWIM loading of the Moose manpage based objects from
YAML documents.

Any hashes blessed into a the Moose manpage class will be replaced with a
properly constructed instance (respecting init args, 'BUILDALL', and the
meta instance type).

This is similar to the YAML::Active manpage in that certain nodes in the
loaded YAML documented are treated specially.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5207 |21cr|perl-MooX-0.101.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooX
%define upstream_version 0.101

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Using Moo::Role and MooX:: packages the most lazy way
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Data::OptList)
BuildRequires: perl(Import::Into)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moo)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch: noarch

%description
Using the Moo manpage and MooX:: packages the most lazy way

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5208 |21cr|perl-MooX-HandlesVia-0.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooX-HandlesVia
%define upstream_version 0.001009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Collection::Array subclass that simulates Moose's native traits
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooX/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Data::Perl)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moo)
BuildRequires: perl(MooX::Types::MooseLike::Base)
BuildRequires: perl(Role::Tiny)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strictures)

BuildArch: noarch

%description
MooX::HandlesVia is an extension of Moo's 'handles' attribute
functionality. It provides a means of proxying functionality from an
external class to the given atttribute. This is most commonly used as a way
to emulate 'Native Trait' behavior that has become commonplace in Moose
code, for which there was no Moo alternative.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5209 |21cr|perl-MooX-late-0.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooX-late
%define upstream_version 0.100

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Easily translate Moose code to Moo
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Moo)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Type::Utils)
BuildRequires: perl(strictures)
BuildRequires: perl(Sub::HandlesVia)


BuildArch: noarch

%description
the Moo manpage is a light-weight object oriented programming framework
which aims to be compatible with the Moose manpage. It does this by
detecting when Moose has been loaded, and automatically "inflating" its
classes and roles to full Moose classes and roles. This way, Moo classes
can consume Moose roles, Moose classes can extend Moo classes, and so
forth.

However, the surface syntax of Moo differs somewhat from Moose. For example
the 'isa' option when defining attributes in Moose must be either a string
or a blessed the Moose::Meta::TypeConstraint manpage object; but in Moo
must be a coderef. These differences in surface syntax make porting code
from Moose to Moo potentially tricky. the MooX::late manpage provides some
assistance by enabling a slightly more Moosey surface syntax.

MooX::late does the following:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

rm -fr t/07coerce1.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5210 |21cr|perl-MooX-StrictConstructor-0.11.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooX-StrictConstructor
%define upstream_version 0.011

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    A role to make Moo constructors strict
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(B)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Module::Build) >= 0.280.0
BuildRequires: perl(Moo) >= 1.1.0
BuildRequires: perl(Moo::Role)
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(bareword::filehandles)
BuildRequires: perl(constant)
BuildRequires: perl(indirect)
BuildRequires: perl(multidimensional)
BuildRequires: perl(strict)
BuildRequires: perl(strictures) >= 1.0.0
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch:     noarch

%description
Simply loading this module makes your constructors "strict". If your
constructor is called with an attribute init argument that your class does
not declare, then it dies. This is a great way to catch small typos.

STANDING ON THE SHOULDERS OF ...
    Most of this package was lifted from the MooX::InsideOut manpage and
    most of the Role that implements the strictness was lifted from the
    MooseX::StrictConstructor manpage.

SUBVERTING STRICTNESS
    the MooseX::StrictConstructor manpage documents two tricks for
    subverting strictness and avoid having problematic arguments cause an
    exception: handling them in BUILD or handle them in BUILDARGS.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5211 |21cr|perl-MooX-Types-MooseLike-Numeric-1.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooX-Types-MooseLike-Numeric
%define upstream_version 1.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Moo types for numbers

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/MooX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(MooX::Types::MooseLike) >= 0.230.0
BuildRequires: perl(Test::Fatal) >= 0.3.0
BuildRequires: perl(Test::More) >= 0.960.0
BuildRequires: perl-devel
BuildRequires: perl(strictures)
BuildArch:  noarch

%description
adpated from MooseX::Types::Common::Numeric

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5212 |21cr|perl-MooX-TypeTiny-0.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MooX-TypeTiny
%define upstream_version 0.002003

Name:           perl-MooX-TypeTiny
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Optimized type checks for Moo + Type::Tiny
Group:          Development/Perl
License:        GPL+ or Artistic

URL:            https://metacpan.org/dist/MooX-TypeTiny
Source0:        https://cpan.metacpan.org/authors/id/H/HA/HAARG/MooX-TypeTiny-%{upstream_version}.tar.gz

BuildArch:      noarch
# build requirements
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# runtime requirements
BuildRequires:  perl(Moo) >= 2.004
BuildRequires:  perl(Moo::Role)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Sub::Quote)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# test requirements
BuildRequires:  perl(Class::Method::Modifiers)
BuildRequires:  perl(Test::Fatal) >= 0.003
BuildRequires:  perl(Test::More) >= 0.94
BuildRequires:  perl(Type::Tiny) >= 1.008
BuildRequires:  perl(Types::Standard)
Requires:       perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))
Requires:       perl(Moo) >= 2.004
Requires:       perl(Type::Tiny) >= 1.008

%{?perl_default_filter}
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}perl\\(Moo::_


%description
This module optimizes Moo type checks when used with Type::Tiny to perform
better. It will automatically apply to isa checks and coercions that use
Type::Tiny. Non-Type::Tiny isa checks will work as normal.

%prep
%setup -q -n MooX-TypeTiny-%{upstream_version}

%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
%{make_build} test

%files
%doc Changes README
%license LICENSE
%{perl_vendorlib}/MooX*
%{_mandir}/man3/MooX*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5213 |21cr|perl-MouseX-NativeTraits-1.90.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MouseX-NativeTraits
%define upstream_version 1.09

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Provides methods for ArrayRef
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/G/GF/GFUJI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Any::Moose)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Mouse) >= 2.4.1
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
While the Mouse manpage attributes provide a way to name your accessors,
readers, writers, clearers and predicates, MouseX::NativeTraits provides
commonly used attribute helper methods for more specific types of data.

As seen in the the /SYNOPSIS manpage, you specify the data structure via
the 'traits' parameter. These traits will be loaded automatically, so you
need not load MouseX::NativeTraits explicitly.

This extension is compatible with Moose native traits, although it is not a
part of Mouse core.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5214 |21cr|perl-MouseX-StrictConstructor-0.20.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       MouseX-StrictConstructor
%define upstream_version    0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	Artistic
Group:		Development/Perl
Summary:	Make your object constructors blow up on unknown attributes

Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		https://cpan.metacpan.org/authors/id/G/GF/GFUJI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Mouse) >= 2.4.1
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Make your object constructors blow up on unknown attributes

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor destdir=%{buildroot}
make

%check
make test

%install
%makeinstall_std
find %{buildroot} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
find %{buildroot} -type d -depth | xargs rmdir --ignore-fail-on-non-empty

%files
%doc README Changes
%{perl_vendorlib}/MouseX/StrictConstructor.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5215 |21cr|perl-MouseX-Types-0.60.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name MouseX-Types
%define upstream_version 0.06

Summary:	Types shipped with Mouse
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MouseX/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Any::Moose)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Mouse) >= 2.4.1
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Types shipped with Mouse.

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
sed -i -e '1d;2i#!%{__perl}' \
  %{buildroot}%{perl_vendorlib}/MouseX/Types/TypeDecorator.pm

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5216 |21cr|perl-Mozilla-PublicSuffix-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mozilla-PublicSuffix
%define upstream_version 1.0.6

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Get a domain name's public suffix via the Mozilla Public Suffix List
Group:          Development/Perl
License:        MIT
URL:            https://metacpan.org/release/Mozilla-PublicSuffix
Source0:        https://cpan.metacpan.org/authors/id/T/TO/TOMHUKINS/%{upstream_name}-v%{upstream_version}.tar.gz

# https://github.com/rsimoes/Mozilla-PublicSuffix/pull/6
Patch1:         Mozilla-PublicSuffix-unbundle.patch

BuildArch:      noarch
# Build
BuildRequires:  coreutils
BuildRequires:  perl-devel
BuildRequires:  perl(:VERSION) >= 5.8
BuildRequires:  perl(Carp)
BuildRequires:  perl(HTTP::Tiny)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(open)
BuildRequires:  perl(strict)
BuildRequires:  perl(Tie::File)
BuildRequires:  perl(URI)
BuildRequires:  perl(utf8)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Exporter)
BuildRequires:  perl(URI::_idna)
BuildRequires:  publicsuffix-list
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)

Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       publicsuffix-list

%description
This module provides a single function that returns the public suffix of a
domain name by referencing a parsed copy of Mozilla's Public Suffix List.
From the official website at http://publicsuffix.org/

%prep
%autosetup -p1 -n %{upstream_name}-v%{upstream_version}

%build
perl Build.PL installdirs=vendor --config system_publicsuffix_list=/usr/share/publicsuffix/public_suffix_list.dat </dev/null
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0

%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5217 |21cr|perl-MP3-Icecast-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 MP3-Icecast
%define	upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	MP3::Icecast - Generate Icecast streams

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AL/ALLENDAY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(MP3::Info)
BuildRequires:	perl(URI)
BuildArch:	noarch

%rename	perl-mp3-icecast

%description
MP3::Icecast - Generate Icecast streams, as well as M3U and PLSv2 playlists.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc README Changes
%{perl_vendorlib}/MP3
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5218 |21cr|perl-MP3-ID3v1Tag-1.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 MP3-ID3v1Tag
%define upstream_version 1.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Edit ID3v1 Tags from an Audio MPEG Layer 3

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/modules/by-module/MP3/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The ID3v1Tag routines are useful for setting and reading ID3 MP3 Audio Tags.
Just create an MP3::ID3v1Tag Object with the path to the file of interest, and
query any of the methods below.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/MP3
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5219 |21cr|perl-MP3-Tag-1.130.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 MP3-Tag
%define upstream_version 1.13

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Normalize::Text::Normalize_Fields\\)|perl\\(Music_Normalize_Fields\\)
%else
%define _requires_exceptions perl(\\(Normalize::Text::Normalize_Fields\\|Music_Normalize_Fields\\))
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Module for reading tags of MP3 audio files 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MP3/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Compress::Zlib)
BuildArch:	noarch

Requires:	perl(Compress::Zlib)

%description
Tag is a wrapper module to read different tags of mp3 files. It provides an
easy way to access the functions of separate modules which do the handling
of reading/writing the tags itself.

At the moment MP3::Tag::ID3v1 and MP3::Tag::ID3v2 are supported for read and
write; MP3::Tag::Inf, MP3::Tag::CDDB_File, MP3::Tag::File,
MP3::Tag::LastResort are supported for read access (the information obtained
by parsing CDDB files, .inf file and the filename).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# requires CDDB connection
rm -f t/mp3tag.t
chmod -R u+w examples
chmod 755 examples/*.pl examples/mp3info2 examples/typeset_audio_dir

%build
# -n is here to avoid installation of scripts (they come in examples/ anyway)
perl Makefile.PL INSTALLDIRS=vendor -n
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README.txt TODO examples
%{perl_vendorlib}/MP3
%{perl_vendorlib}/Encode
%{perl_vendorlib}/Normalize
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5220 |21cr|perl-Msgcat-1.30.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Msgcat
%define upstream_version 1.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    13
Summary:    Msgcat, a small Perl module for XPG4 message catalog functions
License:    GPL
Group:      Development/Perl
Url:        http://www.cpan.org
Source0:    ftp://ftp.pasteur.fr/pub/computing/CPAN/modules/by-module/Locale/%{upstream_name}-%{upstream_version}.tar.bz2
BuildRequires:	perl-devel

%description
This is Msgcat, a small Perl modules for systems which support the XPG4 message
catalog functions : catopen(3), catgets(3) and catclose(4).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# for docs files (fpons)
chmod 0644 README Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/Locale
%{perl_vendorarch}/auto/Locale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5221 |21cr|perl-multidimensional-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  multidimensional
%define upstream_version 0.014


Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Disables multidimensional array emulation
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/multidimensional/
Source0:        http://www.cpan.org/authors/id/I/IL/ILMARI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(B::Hooks::OP::Check)
BuildRequires:  perl(ExtUtils::Depends)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl-devel
BuildRequires:  perl(Test::More)

Provides:	perl(multidimensional)

%description
Perl's multidimensional array emulation stems 
from the days before the language
had references, but these days it mostly 
serves to bite you when you typo a
hash slice by using the $ sigil instead of @.

This module lexically makes using multidimensional 
array emulation a fatal error
at compile time.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
%make

%install
%makeinstall_std

%check
%make test

%files
%doc Changes LICENSE README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/multidimensional*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5222 |21cr|perl-MusicBrainz-DiscID-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name		MusicBrainz-DiscID
%define upstream_version	0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl interface for the MusicBrainz libdiscid library

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MusicBrainz/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
#BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::More)
BuildRequires:	pkgconfig(libdiscid)

%description
MusicBrainz::DiscID is a class to calculate a MusicBrainz DiscID from an
audio CD in the drive. The coding style is slightly different to the C
interface to libdiscid, because it makes use of perl's Object Oriented
functionality.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%apply_patches

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README.*
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5223 |21cr|perl-Nagios-Plugin-0.360.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Nagios-Plugin
%define upstream_version 0.36
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.36
Release:	6
Summary:	A family of perl modules to streamline writing Nagios plugins

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Nagios/Nagios-Plugin-0.36.tar.gz
Patch0:		Nagios-Plugin-0.36-fix-test.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Config::Tiny)
BuildRequires:	perl(Math::Calc::Units)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Simple)
BuildArch:	noarch

%description
These modules are meant for perl developers of plugins for Nagios
(http://nagiosplug.sourceforge.net). It is meant to simplify a lot of the
common functions required to do checking of a particular service.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Nagios
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5224 |21cr|perl-Net-AIM-1.220.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-AIM
%define upstream_version 1.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl module for AOL Instant Messenger TOC protocol

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Net-AIM/
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
perl-Net-AIM is a Perl module for AOL Instant Messenger TOC protocol.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

rm Net

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5225 |21cr|perl-Net-Amazon-0.620.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-Amazon
%define upstream_version 0.62

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.62
Release:	5

Summary:	Framework for accessing amazon.com via SOAP and XML/HTTP

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-Amazon-0.62.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Net::Amazon provides an object-oriented interface to amazon.com's
SOAP and XML/HTTP interfaces. This way it's possible to create applications
using Amazon's vast amount of data via a functional interface, without
having to worry about the underlying communication mechanism.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Net
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5226 |21cr|perl-Net-Appliance-Session-4.300.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Net-Appliance-Session
%define upstream_version 4.300005

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Net::Appliance::Phrasebook\\)
%endif

Summary:	Run command-line sessions to network appliances

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Net-Appliance-Session/
Source:		http://www.cpan.org/modules/by-module/Net/Net-Appliance-Session-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moo)
BuildRequires:	perl(MooX::Types::MooseLike::Base)
BuildRequires:	perl(Net::CLI::Interact)

BuildArch:	noarch

%description
Run command-line sessions to network appliances

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

### Clean up docs
find examples/ -type f -exec %{__chmod} a-x {} \;

%files
%doc Changes  MANIFEST META.yml META.json examples/
%{_mandir}/man3/*.3pm*
%{perl_vendorlib}/Net/Appliance/Session
%{perl_vendorlib}/Net/Appliance/Session.pm
%{_bindir}/nas
%{_mandir}/man1/nas.1.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5227 |21cr|perl-Net-ARP-1.0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Net-ARP
%define upstream_version 1.0.8

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Create and Send ARP Packets 
Group:		Development/Perl
License:	GPLv2
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/C/CR/CRAZYDJ/%{upstream_name}-%{upstream_version}.tgz
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl-devel
Patch0:		Net-Arp-1.0.6-tests.patch

%description
This module is a Perl extension to create and send ARP packets and lookup
local or remote mac addresses. You do not need to install any additional 
libraries like Libnet to compile this extension. It uses kernel header files 
to create the packets.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x README *.pm
%patch0 -p1 -b .tests

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type d -depth -exec rmdir {} 2>/dev/null ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'

%check
# The tests for this package require root privileges and network access,
# therefore for automated building we need to leave it out.
#
#make test
#

%files
%doc Changes README
%{perl_vendorarch}/Net/
%{_mandir}/man3/Net::ARP.3pm*
%{perl_vendorarch}/auto/Net/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5228 |21cr|perl-Net-BGP-0.160.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-BGP
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Net-BGP module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Pod)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Test::Harness) >= 3.350.0
BuildRequires:  perl(IO::Select)
BuildRequires:  perl(IO::Socket)
BuildRequires:  perl(List::Util) >= 1.390.0

BuildArch:	noarch

%description
This module is an implementation of the BGP-4 inter-domain
routing protocol. It encapsulates all of the functionality
needed to establish and maintain a BGP peering session and
exchange routing update information with the peer.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/Net/BGP
%{perl_vendorlib}/Net/BGP.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5229 |21cr|perl-Net-Bluetooth-0.410.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Net-Bluetooth
%define upstream_version 0.41
%global __provides_exclude Bluetooth.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Net::Bluetooth - Perl Bluetooth Interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/Net-Bluetooth-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	pkgconfig(bluez)
BuildRequires:	perl-devel
Requires(pre):	bluez

%description
Net::Bluetooth - Perl Bluetooth Interface
This module creates a Bluetooth interface for Perl.

%prep
%setup -qn Net-Bluetooth-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{perl_vendorarch}/Net/Bluetooth.pm
%dir %{perl_vendorarch}/auto/Net/Bluetooth
%{perl_vendorarch}/auto/Net/Bluetooth/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5230 |21cr|perl-Net-Bonjour-0.960.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Bonjour
%define upstream_version 0.96

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11
Summary:	Module for DNS service discovery ( Zeroconf ) 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/C/CH/CHLIGE//%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-Net-DNS
BuildRequires:	perl-devel
BuildArch:  noarch

Obsoletes:	perl-Net-Rendezvous < 0.90
Provides:	perl-Net-Rendezvous = %{version}

%description
Net::Rendezvous is a set of modules that allow one to discover local services 
via multicast DNS (mDNS) or enterprise services via traditional DNS. This 
method of service discovery has been branded as Rendezvous ( now Bonjour ) by 
Apple Computer.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
yes y | %__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# it seems the number of server changed, and therefore, 
# the test is not working as zeronf.org return more entries than
# planned
#
# disable all tests as they fail at ABF
# perl -pi -e "s/ == 2/ == 11/" t/3-enterprise.t
# make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc ChangeLog README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5231 |21cr|perl-Net-CLI-Interact-2.300.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version 2.300003
%define upstream_name Net-CLI-Interact

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Toolkit for CLI Automation
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Net-CLI-Interact/
Source0:        http://www.cpan.org/authors/id/O/OL/OLIVER/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  perl(Class::Method::Modifiers)
BuildRequires:  perl(Class::Mix)
BuildRequires:  perl(Class::MOP)
BuildRequires:  perl(Class::MOP::Class)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::ShareDir)
BuildRequires:  perl(FileHandle)
BuildRequires:  perl(IPC::Run)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Log::Dispatch::Config)
BuildRequires:  perl(Log::Dispatch::Configurator::Any)
BuildRequires:  perl(Moo)
BuildRequires:  perl(Moose)
BuildRequires:  perl(Moose::Role)
BuildRequires:  perl(Moose::Util::TypeConstraints)
BuildRequires:  perl(MooX::Types::MooseLike::Base)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Net::Telnet)
BuildRequires:  perl(Path::Class)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(strictures)
BuildRequires:  perl-devel

%description
Automating command line interface (CLI) interactions is not a new idea, but
can be tricky to implement. This module aims to provide a simple and
manageable interface to CLI interactions, supporting:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%install
./Build install destdir=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%check
./Build test

%files
%doc Changes META.json README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5232 |21cr|perl-Net-CUPS-0.610.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-CUPS
%define upstream_version 0.61

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10
Summary:	Common Unix Printing System Interface
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		perl-Net-CUPS-0.61-fix-build.patch
Patch1:		perl-Net-CUPS-0.61-disable-cups-version-check.patch
BuildRequires:	perl-devel
BuildRequires:	cups-devel
BuildRequires:	pkgconfig(libcupsfilters)
BuildRequires:	perl(Test::More)

%description
Net::CUPS is an object oriented interface to the Common Unix Printing
System.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# those test requires a running cups server
# http://rt.cpan.org/Ticket/Display.html?id=38469
rm -f t/03_destination.t
find . -type f -exec chmod -c -x {} +
%apply_patches

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5233 |21cr|perl-Net-DAAP-Client-0.420.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-DAAP-Client
%define upstream_version 0.42

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Cient for Apple iTunes DAAP service

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::MD5::M4p)
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(Net::DAAP::DMAP)
BuildArch:	noarch

%description
dapple is a DAAP library for Perl.  DAAP is the protocol built
on top of HTTP that Apple's iTunes 4 uses to share music.  Most
responses to DAAP requests contain a binary DMAP structure.
This is an incomplete release.  There are missing features.
See the TODO file for future plans.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc README Changes
%doc %{_mandir}/man3/*
%{perl_vendorlib}/Net/DAAP/Client.pm
%{perl_vendorlib}/Net/DAAP/Client/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5234 |21cr|perl-Net-DAAP-DMAP-1.270.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-DAAP-DMAP
%define upstream_version 1.27

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.27
Release:	5

Summary:	Perl module for reading and writing DAAP structures

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/R/RC/RCLAMP/Net-DAAP-DMAP-1.27.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl module for reading and writing DAAP structures.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
yes y | perl Makefile.PL INSTALLDIRS=vendor
%make

#check
#make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc Changes
%doc %{_mandir}/man3/*
%{perl_vendorlib}/Net/DAAP/DMAP.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5235 |21cr|perl-Net-DAAP-Server-MythTV-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-DAAP-Server-MythTV
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Publish MythTV videos to DAAP clients like Apple's Front Row

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JA/JABLKO/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch
Requires:	perl(Net::DMAP::Server)

%description
MythTV is a homebrew PVR project. This module publishes MythTV videos,
including metadata, to DAAP clients like Apple's Front Row.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

mkdir -p %{buildroot}%{_bindir}
install -m 755 mythdaap %{buildroot}%{_bindir}/mythdaap

%files
%doc README
%{_bindir}/mythdaap
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5236 |21cr|perl-Net-DBus-GLib-0.33.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-DBus-GLib
%define upstream_version 0.33.0

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8
Summary:    Perl extension for the DBus GLib bindings
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: dbus-glib-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Glib)
BuildRequires: perl(Net::DBus)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel

%description
Net::DBus::GLib provides an extension to the Net::DBus module allowing
integration with the GLib mainloop. To integrate with the main loop, simply
get a connection to the bus via the methods in the Net::DBus::GLib manpage
rather than the usual the Net::DBus manpage module. That's it - every other
API remains the same.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 's/^(\s+)GLib:/$1Glib:/' META.yml.PL

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE AUTHORS CHANGES META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5237 |21cr|perl-Net-Dict-2.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-Dict
%define upstream_version 2.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A perl client for accessing network dictionary servers


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://github.com/neilb/Net-Dict/archive/refs/tags/v%{upstream_version}.tar.gz?/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(AppConfig::Std)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::RequiresInternet)
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(Net::Cmd)
BuildRequires:	perl(Test::More) >= 0.880.0

BuildArch:	noarch

# both packages provide /usr/bin/dict
Conflicts:	dictd-client

%description
Net::Dict is a perl class for looking up words and their definitions on network
dictionary servers. It provides a simple client API for the DICT network
protocol.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
%make test

%install
%makeinstall_std

%_fixperms %{buildroot}/*

%files
%doc README examples
%{perl_vendorlib}/Net/*
%{_mandir}/*/*
%{_bindir}/dict
%{_bindir}/tkdict


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5238 |21cr|perl-Net-DMAP-Server-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-DMAP-Server
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Base class for D[A-Z]AP servers

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Net::DAAP::DMAP)
BuildRequires:	perl(Net::Rendezvous::Publish)
BuildRequires:	perl(POE::Component::Server::HTTP)
BuildRequires:	perl(Module::Pluggable)
BuildArch:	noarch

%description
A base class for D[A-Z]AP servers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%defattr(-, root, root, 0755)
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5239 |21cr|perl-Net-DNS-Resolver-Mock-1.201.712.190-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-DNS-Resolver-Mock
%define upstream_version 1.20171219

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Mock a DNS Resolver object for testing
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Net::DNS::Packet)
BuildRequires: perl(Net::DNS::Question)
BuildRequires: perl(Net::DNS::Resolver)
BuildRequires: perl(Net::DNS::ZoneFile)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch:  noarch

%description
A subclass of Net::DNS::Resolver which parses a zonefile for it's data
source. Primarily for use in testing.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5240 |21cr|perl-Net-DNS-SEC-1.190.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Net-DNS-SEC
%define upstream_version 1.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	DNSSEC support for Net::DNS perl module
License:	MIT
Group:		Development/Perl
URL:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/authors/id/N/NL/NLNETLABS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Crypt::OpenSSL::Bignum) >= 0.30.0
BuildRequires: perl(Crypt::OpenSSL::DSA) >= 0.100.0
BuildRequires: perl(Crypt::OpenSSL::RSA) >= 0.190.0
BuildRequires: perl(Crypt::OpenSSL::ECDSA) >= 0.60.0
BuildRequires: perl(Crypt::OpenSSL::Random)
BuildRequires: perl(Digest::BubbleBabble) >= 0.10.0
BuildRequires: perl(Digest::SHA) >= 5.230.0
BuildRequires: perl(Crypt::OpenSSL::EC) >= 1.10.0
BuildRequires: perl(Digest::GOST) >= 0.60.0
BuildRequires: perl(File::Basename)
BuildRequires: perl(MIME::Base32)
BuildRequires: perl(MIME::Base64) >= 3.150.0
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Net::DNS) >= 0.640.0
BuildRequires: perl(Test::More) >= 0.470.0
BuildRequires: perl(Time::Local)
BuildRequires: pkgconfig(openssl)

%description
This perl modules implements DNSSEC extensions as described in
rfc 2535, 2931. With it, you can use DS, SIG, KEY and NXT record.

It extends perl-Net-DNS to manipulate these records.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std


%files
%doc Changes README META.json META.yml
%doc demo/
%{perl_vendorarch}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5241 |21cr|perl-Net-Domain-TLD-1.730.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Domain-TLD
%define upstream_version 1.73

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Work with TLD names
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Storable)
BuildArch: noarch

%description
  The purpose of this module is to provide user with current list of 
  available top level domain names including new ICANN additions and ccTLDs
  Currently TLD definitions have been acquired from the following sources:

  http://www.icann.org/tlds/
  http://www.dnso.org/constituency/gtld/gtld.html
  http://www.iana.org/cctld/cctld-whois.htm
  https://www.iana.org/domains/root/db.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5242 |21cr|perl-Net-Dropbox-API-1.900.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Dropbox-API
%define upstream_version 1.9

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A dropbox API interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-Dropbox-API-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Data::Random)
BuildRequires:	perl(Encode)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(HTTP::Request::Common)
BuildRequires:	perl(JSON)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Mouse) >= 2.4.1
BuildRequires:	perl(Net::OAuth)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildRequires:	perl(common::sense)
BuildArch:	noarch

%description
no description found

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5243 |21cr|perl-Net-Finger-1.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Finger
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A Perl implementation of a finger client

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Net::Finger is a simple, straightforward implementation of a finger client in
Perl -- so simple, in fact, that writing this documentation is almost
unnecessary.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5244 |21cr|perl-Net-Frame-1.210.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Frame
%define upstream_version 1.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	BSD loopback layer object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/authors/id/G/GO/GOMOR/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Module::Build)
BuildRequires:	perl-devel
BuildRequires:	perl(Class::Gomor::Array)
BuildRequires:	perl(Net::IPv6Addr)
BuildRequires:	perl(Socket6) >= 0.250.0
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Bit::Vector) >= 7.400.0
BuildRequires:	perl(Socket) >= 2.13.0
BuildRequires:	perl(Test)

BuildArch:	noarch

%description
*Net::Frame* is a fork of *Net::Packet*. The goal here was to greatly
simplify the use of the frame crafting framework. *Net::Packet* does many
things undercover, and it was difficult to document all the thingies.

Also, *Net::Packet* may suffer from unease of use, because frames were
assembled using layers stored in L2, L3, L4 and L7 attributes. *Net::Frame*
removes all this, and is splitted in different modules, for those who only
want to use part of the framework, and not whole framework.

Finally, anyone can create a layer, and put it on his CPAN space, because
of the modularity *Net::Frame* offers. For an example, see
*Net::Frame::Layer::ICMPv4* on my CPAN space.

%files
%doc Changes LICENSE LICENSE.* README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*
#---------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# need internet connection
rm t/13-gethostsubs.t
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5245 |21cr|perl-Net-Frame-Simple-1.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Frame-Simple
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	BSD loopback layer object

License:	Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Net/Net-Frame-Simple-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Bit::Vector)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Net::IPv6Addr)
BuildRequires:	perl(Socket6)
BuildRequires:	perl(Net::Frame)

BuildArch:	noarch

%description
*Net::Frame* is a fork of *Net::Packet*. The goal here was to greatly
simplify the use of the frame crafting framework. *Net::Packet* does many
things undercover, and it was difficult to document all the thingies.

Also, *Net::Packet* may suffer from unease of use, because frames were
assembled using layers stored in L2, L3, L4 and L7 attributes. *Net::Frame*
removes all this, and is splitted in different modules, for those who only
want to use part of the framework, and not whole framework.

Finally, anyone can create a layer, and put it on his CPAN space, because
of the modularity *Net::Frame* offers. For an example, see
*Net::Frame::Layer::ICMPv4* on my CPAN space.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test verbose=1

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5246 |21cr|perl-Net-FTP-Common-7.0.0d-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-FTP-Common
%define upstream_version 7.0.d

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Simplify common usages of Net::FTP 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Net::FTP)

BuildArch:	noarch

%description
This module is intended to make the common uses of Net::FTP a one-line,
no-argument affair. In other words, you have 100% programming with
Net::FTP. With Net::FTP::Common you will have 95% configuration and 5%
programming.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
#make} test

%install
%make_install

%files
%doc README
%{perl_vendorlib}/Net/FTP
%{perl_vendorlib}/TestConfig.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5247 |21cr|perl-Net-FTP-Common-7.0.d-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-FTP-Common
%define upstream_version 7.0.d

Name:		perl-%{upstream_name}
Version:	%{upstream_version}
Release:	6

Summary:	Simplify common usages of Net::FTP 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Net::FTP)

BuildArch:	noarch

%description
This module is intended to make the common uses of Net::FTP a one-line,
no-argument affair. In other words, you have 100% programming with
Net::FTP. With Net::FTP::Common you will have 95% configuration and 5%
programming.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make} test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Net/FTP
%{perl_vendorlib}/TestConfig.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5248 |21cr|perl-Net-GitHub-1.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-GitHub
%define upstream_version 1.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    GitHub Pull Requests API
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/F/FA/FAYLAND/%{upstream_name}-%{upstream_version}.tar.gz



BuildRequires: perl(Cache::LRU)
BuildRequires: perl(Module::Install)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(MIME::Base64) >= 3.150.0
BuildRequires: perl(Moo)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Types::Standard)
BuildRequires: perl(URI)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(strictures)

BuildArch: noarch

%description
Perl Interface for github.com 
the http://github.com manpage is a popular git host.

This distribution provides easy methods to access GitHub via their APIs.

Check the http://developer.github.com/ manpage for more details of the
GitHub APIs.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5249 |21cr|perl-Net-Google-1.0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Net-Google

Name:		perl-%{module}
Version:	1.0.1
Release:	11
Summary:	Simple OOP-ish interface to the Google SOAP API

License:	GPL or Artistic
Group:		Development/Perl
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{module}-%{version}.tar.bz2
URL:		http://search.cpan.org/dist/%{module}
%if %{mdkversion} < 1010
BuildRequires:	perl-devel
%endif
BuildRequires:  perl(Module::Build)
BuildArch:	noarch

%description
Provides a simple OOP-ish interface to the Google SOAP API

%prep
%setup -q -n %{module}-%{version} 

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
# checking requires a Google API key

%install
./Build install destdir=%{buildroot}

%clean 

%files
%doc Changes
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5250 |21cr|perl-Net-Google-AuthSub-0.500.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Google-AuthSub
%define upstream_version 0.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A response from a Net::Google::AuthSub request

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
A response from a Net::Google::AuthSub request.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5251 |21cr|perl-Net-GPSD3-0.190.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-GPSD3
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Net::GPSD3 Return Satellite Object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-GPSD3-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::W3CDTF)
BuildRequires:	perl(GPS::Point)
BuildRequires:	perl(IO::Socket::INET6)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(Test::Simple)
BuildArch:	noarch

%description
Net::GPSD3 provides an object client interface to the gpsd server daemon
utilizing the version 3.1 protocol. gpsd is an open source GPS deamon from
http://gpsd.berlios.de/. Support for Version 3 of the protocol (JSON) was
adding to the daemon in version 2.90. If your daemon is before 2.90 then
please use the the Net::GPSD manpage package.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*
# %{_bindir}/perl-Net-GPSD3-Example.pl
# %{_bindir}/perl-Net-GPSD3-Handler.pl
# %{_bindir}/perl-Net-GPSD3-poll.pl
# %{_mandir}/man1/perl-Net-GPSD3-Example.pl.1*
# %{_mandir}/man1/perl-Net-GPSD3-Handler.pl.1*
# %{_mandir}/man1/perl-Net-GPSD3-poll.pl.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5252 |21cr|perl-Net-Interface-1.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-Interface
%define upstream_version 1.016

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl extension to access network interfaces

License:	GPL+ or Artistic
Group: 		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Net-Interface-netsymbols.patch
BuildRequires:	perl-devel


%description
Net::Interface is designed to make the use of ifconfig(1) and friends
unnecessary from within Perl.  It provides methods to get at set all the
attributes of an interface, and even create new logical or physical interfaces
(if your O/S supports it).

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

#for update config.guess abd config.sub
%config_update

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README*
%{_mandir}/man3/*
%{perl_vendorarch}/auto/Net
%{perl_vendorarch}/Net

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5253 |21cr|perl-Net-IP-Match-Regexp-1.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-IP-Match-Regexp
%define upstream_version 1.01

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(re\\)
%else
%define _requires_exceptions perl(re)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Efficiently match IP addresses against IP ranges via regexp

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module allows you to check an IP address against one or more IP
ranges.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README CHANGES
%{perl_vendorlib}/Net
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5254 |21cr|perl-Net-IP-Minimal-0.60.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-IP-Minimal
%define upstream_version 0.06

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Minimal functions from Net::IP
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel


BuildArch: noarch

%description
the Net::IP manpage is very feature complete, but I found I was only using
three of its functions and it uses quite a bit of memory the
https://rt.cpan.org/Public/Bug/Display.html?id=24525 manpage.

This module only provides the minimal number of functions that I use in my
modules.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5255 |21cr|perl-Net-IPv4Addr-0.100.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-IPv4Addr
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Perl modules to manipulates Ipv4 addresses

License:	GPL+ or Artistic
Group:		System/Configuration/Networking
Url:		http://iNDev.iNsu.COM/IPv4Addr/
Source0:	https://cpan.metacpan.org/authors/id/F/FR/FRAJULAC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Net::IPv4Addr provides methods for parsing IPv4 addresses both in traditional
address/netmask format and in the new CIDR format. There are also methods for
calculating the network and broadcast address and also to see check if a given
address is in a specific network.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor 
make

%check
make test

%install
%makeinstall_std

install -d %{buildroot}%{_sbindir}
mv -f %{buildroot}%{_bindir}/ipv4calc %{buildroot}%{_sbindir}/ipv4calc

%files 
%doc README ChangeLog
%{_mandir}/*/*
%{_sbindir}/ipv4calc
%{perl_vendorlib}/Net/*
%{perl_vendorlib}/auto/Net/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5256 |21cr|perl-Net-IPv6Addr-1.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-IPv6Addr
%define upstream_version 1.02

Summary:	Net::IPv6Addr - check validity of IPv6 addresses

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/B/BK/BKB/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Net::IPv4Addr)
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(Math::Base85)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Net::IPv6Addr checks strings for valid IPv6 addresses, as
specified in RFC1884.  You throw possible addresses at it, it
either accepts them or throws an exception.

If Math::Base85 is installed, then this module is able to process
addresses formatted in the style referenced by RFC1924.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc README*
%{perl_vendorlib}/Net/IPv6Addr.*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5257 |21cr|perl-Net-IRC-0.790.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Net-IRC
%define upstream_version 0.79

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl interface to the Internet Relay Chat protocol

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		%{name}-0.75-workwithlocalhost.patch
Patch2:		%{name}-0.76-no-warning.patch

BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} perl module allows you to access IRC networks with perl.
It is used to program irc bot in perl or various software.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1
%patch2 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5258 |21cr|perl-Net-LDAPapi-3.0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Net-LDAPapi
%define modparent Net
%define modname LDAPapi

Summary:	Perl bindings for LDAP client library

Name:		perl-%{module}
Version:	3.0.3
Release:	9
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{module}-%{version}.tar.gz
BuildRequires:	openldap-devel
BuildRequires:	glibc-devel
%if %{?mdkversion:1}%{?!mdkversion:0}
BuildRequires:	perl-devel >= 5.8.0
%endif

%description
Perl bindings for LDAP client library

%prep

%setup -q -n %{module}-%{version}

%build
#find -name \*.pm | xargs chmod 644
%{__perl} Makefile.PL INSTALLDIRS=vendor -sdk 1 -lib_path %{_libdir} -include_path %{_includedir}
%make

%check
#make test

%install

%makeinstall_std

%clean

%files
%doc Credits Changes examples
%{perl_vendorarch}/%{modparent}/*.pm
%{perl_vendorarch}/auto/%{modparent}/%{modname}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5259 |21cr|perl-Net-LDAP-Server-0.430.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-LDAP-Server
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	LDAP server side protocol handling

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Convert::ASN1)
BuildRequires:	perl(Net::LDAP)
BuildRequires:	perl(Test)

BuildArch:	noarch

%description
LDAP server side protocol handling.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changelog README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5260 |21cr|perl-Net-LDAP-Server-Test-0.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-LDAP-Server-Test
%define upstream_version 0.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Test Net::LDAP code

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-LDAP-Server-Test-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(IO::Select)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(Net::LDAP)
BuildRequires:	perl(Net::LDAP::Server)
BuildRequires:	perl(Net::LDAP::SID)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
Now you can test your Net::LDAP code without having a real LDAP server
available.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5261 |21cr|perl-Net-LDAP-SID-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-LDAP-SID
%define upstream_version 0.001

Name:           perl-Net-LDAP-SID
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Net::LDAP::SID Perl module
Group:          Development/Perl
License:        Artistic 2.0
URL:            https://metacpan.org/release/Net-LDAP-SID
Source0:        https://cpan.metacpan.org/authors/id/K/KA/KARMAN/Net-LDAP-SID-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires: make
BuildRequires:  perl-interpreter >= 0:5.008003
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Carp)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

BuildRequires:  %{__perl}
BuildRequires:  %{__make}

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Active Directory Security Identifier manipulation

%prep
%setup -q -n Net-LDAP-SID-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%{__make} %{?_smp_mflags}

%install
%{__make} pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5262 |21cr|perl-Net-Libdnet-0.990.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Libdnet
%define upstream_version 0.99
Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl interface to libdnet

License:    BSD
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Net/Net-Libdnet-%{upstream_version}.tar.gz
BuildRequires:  libdnet-devel
BuildRequires:  perl(Class::Gomor::Array)
BuildRequires:  perl(Test)
BuildRequires:  perl-devel

%description
perl-Net-Libdnet provides perl bindings to the dnet library

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%serverbuild
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$CFLAGS -fno-PIE" LIBS="-L%{_libdir} -ldnet" INC="-I%{_includedir}"
%make LD_RUN_PATH=""

%check
make test

%install
%makeinstall_std

%files
%defattr(-,root,root,-)
%doc Changes LICENSE README
%{_bindir}/*
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Net
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5263 |21cr|perl-Net-LibIDN-0.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-LibIDN
%define upstream_version 0.12

Summary: 	Perl bindings for GNU LibIDN

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release: 	7
License: 	GPL+ or Artistic
Group: 		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TH/THOR/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	idn-devel >= 0.4.0
BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(ExtUtils::MakeMaker)

%description
Provides perl bindings for GNU Libidn, a C library for handling
Internationalized Domain Names according to IDNA (RFC 3490), in a way very
much inspired by Turbo Fredriksson's PHP-IDN.

%prep

%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor LIBS="-lidn"

make OPTIMIZE="%{optflags}"

# Change man page encoding into UTF-8
iconv -f latin1 -t utf-8 -o "blib/man3/Net::LibIDN.3pm.utf8" "blib/man3/Net::LibIDN.3pm"
mv -f "blib/man3/Net::LibIDN.3pm.utf8" "blib/man3/Net::LibIDN.3pm"

%install

%makeinstall_std

%check
%make test

%files
%doc Artistic Changes README
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net
%{_mandir}/man3/*.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5264 |21cr|perl-Net-MAC-2.103.622-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Net-MAC
%define upstream_version 2.103622

Summary:	Perl extension for representing and manipulating MAC addresses

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	LGPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Net-MAC/
Source: 	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel

%description
Perl extension for representing and manipulating MAC addresses.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes MANIFEST META.yml README
%{_mandir}/man3/Net::MAC.3pm*
%{perl_vendorlib}/Net/MAC.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5265 |21cr|perl-Net-MAC-Vendor-1.230.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-MAC-Vendor
%define upstream_version 1.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Look up the vendor for a MAC

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(LWP::Protocol::https)

BuildArch:	noarch

%description
The Institute of Electrical and Electronics Engineers (IEEE) assigns an
Organizational Unique Identifier (OUI) to manufacturers of network interfaces.
Each interface has a Media Access Control (MAC) address of six bytes. The first
three bytes are the OUI.

This module allows you to take a MAC address and turn it into the OUI and
vendor information.  You can, for instance, scan a network, collect MAC
addresses, and turn those addresses into vendors.  With vendor information, you
can often guess at what what you are looking at (e.g. an Apple product).

You can use this as a module as its individual functions, or call it as a
script with a list of MAC addresses as arguments. The module can figure it out.

This module tries to persistently cache with DBM::Deep the OUI information so
it can avoid using the network. If it cannot load DBM::Deep, it uses a normal
hash (which is lost when the process finishes). You can preload this cache with
the load_cache() function. So far, the module looks in the current working
directory for a file named mac_oui.db to find the cache. I need to come up with
a way to let the user set that location.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
# dowload/upload from internet tests
rm -fr t/fetch_oui.t  t/load_cache.t t/fetch_oui_from_ieee.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make 

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5266 |21cr|perl-Net-MySQL-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-MySQL
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Pure Perl MySQL network protocol interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-MySQL-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(Digest::SHA1)
BuildArch:	noarch

%description
Net::MySQL is a Pure Perl client interface for the MySQL database. This
module implements network protocol between server and client of MySQL, thus
you don't need external MySQL client library like libmysqlclient for this
module to work. It means this module enables you to connect to MySQL server
from some operation systems which MySQL is not ported. How nifty!

Since this module's final goal is to completely replace DBD::mysql, API is
made similar to that of DBI.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Net

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5267 |21cr|perl-Net-NBName-0.260.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-NBName
%define upstream_version 0.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	NetBIOS Name Service Requests

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Net-NBName-0.25-shellbang.diff

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Net::NBName is a class that allows you to perform simple NetBIOS Name
Service Requests in your Perl code. It performs these NetBIOS operations over
TCP/IP using Perl's built-in socket support.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 's/\r\n$/\n/' bin/* README Changes
%patch0 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/namequery.pl
%{_bindir}/nodescan.pl
%{_bindir}/nodestat.pl
%{perl_vendorlib}/Net
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5268 |21cr|perl-Net-Netmask-2.0.200-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	Net-Netmask
%define upstream_version 2.0002

Summary:	%{upstream_name} module for Perl

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	Public Domain
Group:		Development/Perl
Source0:	https://cpan.metacpan.org/authors/id/J/JM/JMASLAK/%{upstream_name}-%{upstream_version}.tar.gz
URL:		http://search.cpan.org/dist/%{upstream_name}
BuildRequires:	perl-devel
BuildRequires:	perl(Test2::V0)
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(Test::UseAllModules)
BuildArch: 	noarch
Requires:	perl >= 0:5.00503

%description
Net-Netmask module for perl

Net::Netmask parses and understands IPv4 CIDR blocks. It's built with an
object-oriented interface. Nearly all functions are methods that operate on a
Net::Netmask object.

There are methods that provide the nearly all bits of information about a
network block that you might want.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test


%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Net/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5269 |21cr|perl-Net-NIS-0.440.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-NIS
%define upstream_version 0.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	NIS interface to Perl 5

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	tirpc-devel
BuildRequires:	pkgconfig(libnsl)

%description
This is a snapshot release of the NIS interface to Perl 5.  There are
three parts to the interface: the raw component (Net::NIS), the object-
oriented component (Net::NIS::Table), and the tied interface (Net::NIS).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"


# (sb) known to fail:
#  http://nntp.x.perl.org/group/perl.cpan.testers/58036 (and more)
#make test

%install
%makeinstall_std


%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5270 |21cr|perl-Net-Nslookup-2.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Nslookup
%define upstream_version 2.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Provide nslookup(1)-like capabilities

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-Nslookup-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Net::Nslookup provides the capabilities of the standard UNIX command line
tool nslookup(1). Net::DNS is a wonderful and full featured module, but
quite often, all you need is `nslookup $host`. This module provides that
functionality.

Net::Nslookup exports a single function, called 'nslookup'. 'nslookup' can
be used to retrieve A, PTR, CNAME, MX, and NS records.

  my $a  = nslookup(host => "use.perl.org", type => "A");

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# test needed network connection
#make test

%install
%makeinstall_std

%files
%doc META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5271 |21cr|perl-Net-OAuth-0.280.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-OAuth
%define upstream_version 0.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.28
Release:	5

Summary:	An OAuth protocol response for an Request Token

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-OAuth-0.28.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Digest::HMAC_SHA1)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(Module::Build::Compat)

BuildArch:	noarch

%description
OAUTH MESSAGES
    An OAuth message is a set of key-value pairs. The following message
    types are supported:

    Requests

    * * Request Token (Net::OAuth::RequestTokenRequest)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5272 |21cr|perl-Net-OpenDHT-0.330.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-OpenDHT
%define upstream_version 0.33

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Module to access the Open Distributed Hash Table (Open DHT)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(App::Cache)
BuildRequires:	perl(Class::Accessor::Chained)
BuildRequires:	perl(XML::LibXML)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Exception)
BuildArch:	noarch

%description
The Net::OpenDHT module provides a simple interface to the Open DHT service. 
Open DHT is a publicly accessible distributed hash table (DHT) service. In 
contrast to the usual DHT model, clients of Open DHT do not need to run a 
DHT node in order to use the service. Instead, they can issue put and get 
operations to any DHT node, which processes the operations on their behalf. No
credentials or accounts are required to use the service, and the available 
storage is fairly shared across all active clients.

This service model of DHT usage greatly simplifies deploying client 
applications. By using Open DHT as a highly-available naming and storage 
service, clients can ignore the complexities of deploying and maintaining 
a DHT and instead concentrate on developing more sophisticated distributed 
applications.

What this essentially gives you as a Perl author is robust storage for a small 
amount of data. This can be used as a distributed cache or data store.

Read the following for full semantics about the Open DHT:

  http://opendht.org/users-guide.html


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# (misc) test are disabled because they do not work on the cluster
#make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{perl_vendorlib}/Net
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5273 |21cr|perl-Net-OpenID-Common-1.200.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-OpenID-Common
%define upstream_version 1.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Support for the Simple Registration extension (SREG)

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Crypt::DH::GMP)
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(HTML::Parser) >= 3.400.0
BuildRequires: perl(HTTP::Headers::Util)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Status)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Time::Local)
BuildRequires: perl(XML::Simple)
BuildRequires: perl-devel

BuildArch:  noarch

%description
This module provides an implementation of the Yadis protocol, which does
XRDS-based service discovery on URLs.

This module was originally developed by OHTSUKA Ko-hei as the
Net::Yadis::Discovery manpage, but was forked and simplified for inclusion
in the core OpenID Consumer package.

This simplified version is tailored for the needs of Net::OpenID::Consumer;
for other uses, the Net::Yadis::Discovery manpage is probably a better
choice.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5274 |21cr|perl-Net-OpenID-Consumer-1.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-OpenID-Consumer
%define upstream_version 1.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Object representing a verified OpenID identity

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Net::OpenID::Common) >= 1.190.0
BuildRequires:	perl(Crypt::DH)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Time::Local)
BuildRequires:	perl(URI)
BuildRequires:	perl(XML::Simple)
BuildRequires:	perl(CGI)
BuildRequires:	perl(JSON)
BuildRequires:	perl(Storable)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0


BuildArch:	noarch

%description
This module provides an implementation of the Yadis protocol, which does
XRDS-based service discovery on URLs.

This module was originally developed by OHTSUKA Ko-hei as the
Net::Yadis::Discovery manpage, but was forked and simplified for inclusion
in the core OpenID Consumer package.

This simplified version is tailored for the needs of Net::OpenID::Consumer;
for other uses, the Net::Yadis::Discovery manpage is probably a better
choice.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5275 |21cr|perl-Net-OpenID-Server-1.90.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-OpenID-Server
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Library for building your own OpenID server


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Net::OpenID::Common)
BuildRequires:	perl(Crypt::DH)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
This is the Perl API for (the server half of) OpenID, a distributed
identity system based on proving you own a URL, which is then your
identity. More information is available at:

  http://openid.net/

As of version 1.01 this module has support for both OpenID 1.1 and 2.0.
Prior to this, only 1.1 was supported.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc 
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5276 |21cr|perl-Net-OpenSSH-0.820.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-OpenSSH
%define upstream_version 0.82

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl SSH client package implemented on top of OpenSSH

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/S/SA/SALVA/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Test::More)
BuildRequires:	openssh-clients

Requires:	openssh-clients

BuildArch:	noarch

%description
Net::OpenSSH is a secure shell client package implemented on top of OpenSSH
binary client ('ssh').

This package is implemented around the multiplexing feature found in
later versions of OpenSSH. That feature allows reuse of a previous SSH
connection for running new commands (I believe that OpenSSH 4.1 is the
first one to provide all the required functionality).

When a new Net::OpenSSH object is created, the OpenSSH 'ssh' client is
run in master mode, establishing a permanent (actually, for the
lifetime of the object) connection to the server.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5277 |21cr|perl-NetPacket-1.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    NetPacket
%define upstream_version 1.7.2

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Assemble and disassemble ethernet packets
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/Y/YA/YANICK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More)
BuildRequires: perl(constant)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch: noarch

%description
'NetPacket' provides a base class for a cluster of modules related to
decoding and encoding of network protocols. Each 'NetPacket' descendent
module knows how to encode and decode packets for the network protocol it
implements. Consult the documentation for the module in question for
protocol-specific implementation.

Note that there is no inheritance in the 'NetPacket::' cluster of modules
other than each protocol module being a 'NetPacket'. This was seen to be
too restrictive as imposing inheritance relationships (for example between
the IP, UDP and TCP protocols) would make things like tunneling or other
unusual situations difficult.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5278 |21cr|perl-Net-Packet-3.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-Packet
%define upstream_version 3.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A framework to easily send and receive frames from layer 2 to layer 7

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	chrpath
BuildRequires:	pcap-devel
BuildRequires:	perl(Bit::Vector)
BuildRequires:	perl(Class::Gomor::Hash)
BuildRequires:	perl(IO::Interface)
BuildRequires:	perl(Net::IPv6Addr)
BuildRequires:	perl(Net::Libdnet)
BuildRequires:	perl(Net::Pcap)
BuildRequires:	perl(Net::Write)
BuildRequires:	perl(Socket6)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
This module is a unified framework to craft, send and receive
packets at layers 2, 3, 4 and 7.  Basically, you forge each layer
of a frame (Net::Packet::IPv4 for layer 3, Net::Packet::TCP for
layer 4 ; for example), and pack all of this into a
Net::Packet::Frame object. Then, you can send the frame to the
network, and receive it easily, since the response is
automatically searched for and matched against the request.  If
you want some layer 2, 3 or 4 protocol encoding/decoding to be
added, just ask, and give a corresponding .pcap file ;)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

# this won't work, but partly works as root...
#make test

%install
%makeinstall_std

%files
%doc Changes README examples
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5279 |21cr|perl-Net-Pcap-0.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Net-Pcap
%define upstream_version 0.18

Summary:	Interface to pcap(3) LBL packet capture library
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	pkgconfig(libpcap)
BuildRequires:	perl-devel
# Adapt a test to libpcap-1.8.0, bug #1375919, CPAN RT#117831
Patch0:		Net-Pcap-0.18-Adapt-a-test-to-libpcap-1.8.0.patch
Patch1:		Net-Pcap-0.18-Fix-build-with-libpcap-1.9.0.patch
# patch from arch linux
Patch2:		net-pcap-makefile.patch
Patch3:		net-pcap-listdatalinks.patch
Patch4:		net-pcap-newapi.patch

%description
Net::Pcap is a Perl binding to the LBL pcap(3) library.
The README for libpcap describes itself as:

"a system-independent interface for user-level packet capture.
libpcap provides a portable framework for low-level network
monitoring.  Applications include network statistics collection,
security monitoring, network debugging, etc."

%files
%doc README
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net
%{_mandir}/man3/*
%{_mandir}/man1/*
%{_bindir}/*

#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --defaultdeps NO_PACKLIST=1
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_archlib}/perllocal.pod
rm -rf %{buildroot}%{perl_archlib}/Net/._Pcap.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5280 |21cr|perl-Net-Ping-2.740.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Ping
%define upstream_version 2.74

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	TCP, UDP, or ICMP ping

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-Ping-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Time::HiRes)
BuildArch:	noarch

%description
This module contains methods to test the reachability of remote hosts on a
network. A ping object is first created with optional parameters, a
variable number of hosts may be pinged multiple times and then the
connection is closed.

You may choose one of six different protocols to use for the ping. The
"tcp" protocol is the default. Note that a live remote host may still fail
to be pingable by one or more of these protocols. For example,
www.microsoft.com is generally alive but not "icmp" pingable.

With the "tcp" protocol the ping() method attempts to establish a
connection to the remote host's echo port. If the connection is
successfully established, the remote host is considered reachable. No data
is actually echoed. This protocol does not require any special privileges
but has higher overhead than the "udp" and "icmp" protocols.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# (tv) those network checks now fail with iurt 0.7.x
rm -f t/200_ping_tcp.t t/400_ping_syn.t t/410_syn_host.t t/420_ping_syn_port.t
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5281 |21cr|perl-Net-Proxy-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-Proxy
%define	upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Framework for proxying network connections in many ways

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::Pod)
BuildArch:	noarch

%description
A Net::Proxy object represents a proxy that accepts connections and then relays
the data transfered between the source and the destination.
The goal of this module is to abstract the different methods used to connect 
from the proxy to the destination.

A proxy is a program that transfer data across a network boundary between a 
client and a server. Net::Proxy introduces the concept of "connectors" 
(implemented as Net::Proxy::Connector subclasses), which abstract the server 
part (connected to the client) and the client part (connected to the server) 
of the proxy.
This architecture makes it easy to implement specific techniques to cross a 
given network boundary, possibly by using a proxy on one side of the network 
fence, and a reverse-proxy on the other side of the fence.

This package also contains utilities such as connect-tunnel and sslh.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# Disable tests - can fail inside LXC at ABF
# %check
# make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Net
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5282 |21cr|perl-Net-Raddle-0.08-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define upstream_name Net-Raddle

Name:		perl-%{upstream_name}
Version:	0.08
Release:	7
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Raddle network emulator

Url:		http://raddle.sourceforge.net/
Source:		http://downloads.sourceforge.net/project/raddle/raddle/%{version}/Net-Raddle-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(NetSNMP::ASN)
BuildRequires:	perl(Date::Calc)

%description
Raddle is a network emulation framework. It is particularly useful when testing
network management systems or teaching people to use them.

%prep
%setup -q -n %{upstream_name}-%{version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGELOG INSTALLATION LICENCE README examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5283 |21cr|perl-Net-Radius-2.103.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Net-Radius
%define upstream_version 2.103

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Object-oriented Perl interface to RADIUS

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Warn)
BuildArch:	noarch

%description
The modules included here provide an interface to the RADIUS
protocol. It consists of the following modules:

Net::Radius::Packet - Deals with RADIUS packets
Net::Radius::Dictionary - Deals with RADIUS dictionaries

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README* examples
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5284 |21cr|perl-Net-RawIP-0.250.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-RawIP
%define upstream_version 0.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Net::RawIP - a perl module can to manipulate raw IP packets

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	libpcap-devel
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl-devel

%description
This is Net::RawIP, a perl module can to manipulate raw IP packets,
with an optional feature for manipulating Ethernet headers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# fix attribs
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

perl -pi -e 's!/usr/lib!%{_libdir}!g' Makefile.PL

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# test fail on abf build
#make test

%install
%makeinstall_std

%clean

%files
%doc Changes README README.Devel examples
%{perl_vendorarch}/auto/Net
%{perl_vendorarch}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5285 |21cr|perl-Net-Redmine-0.90.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Redmine
%define upstream_version 0.09

# for some old reason, perl(pQuery) is not provided
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(pQuery\\)
%else
%define _requires_exceptions perl\(pQuery\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Represents a ticket

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-Redmine-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Any::Moose)
BuildRequires:	perl(Moo)
BuildRequires:	perl(DateTime::Format::DateParse)
BuildRequires:	perl(DateTimeX::Easy)
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTML::WikiConverter)
BuildRequires:	perl(HTML::WikiConverter::Markdown)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(IO::All)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Quantum::Superpositions)
BuildRequires:	perl(Test::Cukes)
BuildRequires:	perl(Test::Cukes::Feature)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::CSV::Slurp)
BuildRequires:	perl(Text::Greeking)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(Exporter::Lite)
BuildRequires:	perl(WWW::Mechanize)
BuildRequires:	perl-pQuery
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Regexp::Common::Email::Address)

Requires:	perl-pQuery

BuildArch: noarch

%description
Net::Redmine is an mechanized-based programming API against redmine server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5286 |21cr|perl-Net-Rendezvous-Publish-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Rendezvous-Publish
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Module to publish Rendezvous services 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Lvalue)
BuildRequires:	perl(Module::Pluggable)
BuildArch:	noarch

%description
Net::Rendezvous::Publish allows you to publish Zeroconf ( or Rendezvous, or
Bonjour ) services, using a mDNS responder

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc Changes 
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5287 |21cr|perl-Net-Rendezvous-Publish-Backend-Avahi-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Rendezvous-Publish-Backend-Avahi
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Publish zeroconf data with the Avahi library

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Net/Net-Rendezvous-Publish-Backend-Avahi-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Net::DBus)
BuildRequires:	perl(Net::Rendezvous::Publish)
Provides:	perl-Net-Rendezvous-Publish-Backend
Provides:	perl(Net::Rendezvous::Publish::Backend)
BuildArch:	noarch

%description
This module publishes zeroconf data with the Avahi library
It is a backend for the Net::Rendezvous::Publish module.

%prep
%setup -q -n Net-Rendezvous-Publish-Backend-Avahi-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%{perl_vendorlib}/Net/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5288 |21cr|perl-Net-Rendezvous-Publish-Backend-Howl-0.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Net-Rendezvous-Publish-Backend-Howl
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Backend module using howl for Net::Rendezvous
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org//CPAN/authors/id/R/RC/RCLAMP/%{upstream_name}-%{upstream_version}.tar.bz2
Source1:	%{name}.rpmlintrc

BuildRequires:	pkgconfig(howl)
BuildRequires:	perl(Net::Rendezvous)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(ExtUtils::ParseXS)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Class::Accessor::Lvalue)
BuildRequires:	perl-devel 

%description
This module interfaces to the Porchdog's Howl library in order to allow 
service publishing.
It is used by Net::Rendezvous::Publish, in order to adapt to
different mDns implementation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL INSTALLDIRS=vendor

%check
# requires mdns running
#./Build test

%install
./Build install destdir=%{buildroot} installdirs=vendor

%files
%doc Changes
%{perl_vendorarch}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5289 |21cr|perl-Net-SCP-0.80.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-SCP
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Net::SSH)
BuildRequires:	perl(String::ShellQuote)
BuildArch:	noarch

%description
Simple wrappers around ssh and scp commands.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc README
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5290 |21cr|perl-Net-SFTP-0.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-SFTP
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Secure File Transfer Protocol client

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/L/LK/LKINLEY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Net::SSH::Perl)
BuildRequires:	perl(Math::Int64)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This is Net::SFTP, a module implementing a client for the Secure
File Transfer Protocol.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5291 |21cr|perl-Net-SFTP-Foreign-1.930.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-SFTP-Foreign
%define upstream_version 1.93

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Adaptor for Net::SFTP::Attributes compatibility
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildArch:     noarch

%description
SFTP stands for SSH File Transfer Protocol and is a method of transferring
files between machines over a secure, encrypted connection (as opposed to
regular FTP, which functions over an insecure connection). The security in
SFTP comes through its integration with SSH, which provides an encrypted
transport layer over which the SFTP commands are executed.

Net::SFTP::Foreign is a Perl client for the SFTP version 3 as defined in
the SSH File Transfer Protocol IETF draft, which can be found at the
http://www.openssh.org/txt/draft-ietf-secsh-filexfer-02.txt manpage (also
included on this package distribution, on the 'rfc' directory).

Net::SFTP::Foreign uses any compatible 'ssh' command installed on the
system (for instance, OpenSSH 'ssh') to establish the secure connection to
the remote server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README TODO samples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5292 |21cr|perl-Net-SMTP-TLS-0.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-SMTP-TLS
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	TLS and AUTH enabled mail client

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::HMAC_MD5)
BuildRequires:	perl(IO::Socket::INET)
BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Net::SSLeay)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
*Net::SMTP::TLS* is a TLS and AUTH capable SMTP client which offers an
interface that users will find familiar from the Net::SMTP manpage.
*Net::SMTP::TLS* implements a subset of the methods provided by that
module, but certainly not (yet) a complete mirror image of that API.

The methods supported by *Net::SMTP::TLS* are used in the above example.
Though self explanatory for the most part, please see the perldoc for the
Net::SMTP manpage if you are unclear.

The differences in the methods provided are as follows:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5293 |21cr|perl-Net-SMTP-TLS-ButMaintained-0.240.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-SMTP-TLS-ButMaintained
%define upstream_version 0.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.24
Release:	5

Summary:	An SMTP client supporting TLS and AUTH

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-SMTP-TLS-ButMaintained-0.24.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::HMAC_MD5)
BuildRequires:	perl(IO::Socket::INET)
BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Net::Cmd)
BuildRequires:	perl(Net::SSLeay)
BuildArch:	noarch

%description
*Net::SMTP::TLS::ButMaintained* is forked from the Net::SMTP::TLS manpage.
blame 'Evan Carroll' for the idea. :)

*Net::SMTP::TLS::ButMaintained* is a TLS and AUTH capable SMTP client which
offers an interface that users will find familiar from the Net::SMTP
manpage. *Net::SMTP::TLS::ButMaintained* implements a subset of the methods
provided by that module, but certainly not (yet) a complete mirror image of
that API.

The methods supported by *Net::SMTP::TLS::ButMaintained* are used in the
above example. Though self explanatory for the most part, please see the
perldoc for the Net::SMTP manpage if you are unclear.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5294 |21cr|perl-Net-SNMP-6.0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-SNMP
%define upstream_version 6.0.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Object oriented interface to SNMP for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Crypt-DES => 2.03
BuildRequires:	perl-Digest-HMAC => 1.0
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(Test)

BuildArch:	noarch

Requires:	perl-Crypt-DES => 2.03
Requires:	perl-Digest-HMAC => 1.0
Requires:	perl-Digest-SHA1 => 1.02

%description
The Net::SNMP module implements an object oriented interface to the Simple
Network Management Protocol.  Perl applications can use the module to retrieve
or update information on a remote host using the SNMP protocol.  The module
supports SNMP version-1, SNMP version-2c (Community-Based SNMPv2), and SNMP
version-3.
The Net::SNMP module assumes that the user has a basic understanding of the
Simple Network Management Protocol and related network management concepts.

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/snmpkey
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5295 |21cr|perl-Net-Snort-Parser-1.36-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Net-Snort-Parser

Summary:	A simple yet complicated rules maintance system for Snort

Name:		perl-%{module}
Version:	1.36
Release:	9
License:	BSD
Group:		Development/Perl
URL:		http://www.shmoo.com/~bmc/software/snortconfig/
Source0:	http://www.shmoo.com/~bmc/software/snortconfig/%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch
Provides:	snortconfig

%description
snortconfig is a rules modification system for snort that is generated from a
configuration file. This allows a user to keep their ruleset updated without
too much of a headache. Configuration is done using a basic INI style
configuration. 

snortconfig supports three methods of configuration of rules. The methods are
specifing what rules to apply changes to. These methods are files, sids, and
classifications. This allows make broad changes to snort rules very quickly.

%prep

%setup -q -n %{module}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%makeinstall_std

%clean 
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc README examples
%attr(0755,root,root) %{_bindir}/snortconfig
%{perl_vendorlib}/Net/Snort/Parser/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5296 |21cr|perl-Net-SSH-0.90.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-SSH
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Simple wrappers around ssh commands.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%defattr(644,root,root,755)
%doc README
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5297 |21cr|perl-Net-SSH2-0.720.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-SSH2
%define upstream_version 0.72

#exclude self provided
%define __requires_exclude perl\\(Net::SSH2::Constants\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Support for the SSH 2 protocol via libSSH2

License:	GPL
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/Net/Net-SSH2-%{upstream_version}.tar.gz

BuildRequires:	pkgconfig(libssh2)
BuildRequires:	perl(Term::ReadKey)
Buildrequires:	perl-devel

%description
Net::SSH2 is a perl interface to the libssh2 (http://www.libssh2.org) library.
It supports the SSH2 protocol (there is no support for SSH1) with all of the
key exchanges, ciphers, and compression of libssh2.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

perl -pi -e 's~^my \$inc.*~my \$inc = "%{_includedir}";~' Makefile.PL
perl -pi -e 's~^my \$lib.*~my \$lib = "%{_libdir}";~' Makefile.PL

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"


%check
%make test

%install
%makeinstall_std

%files
%doc Changes README*
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5298 |21cr|perl-Net-SSH-Expect-1.90.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-SSH-Expect
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	An ssh wrapper to execute remote commands

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Expect)
BuildArch:	noarch

%description
This module is a wrapper to the _ssh_ executable that is available in your
system's _$PATH_. Use this module to execute commands on the remote SSH
server. It authenticates with the user and password you passed in the
constructor's attributes 'user' and 'password'.

Once an ssh connection was started using the 'connect()' method it will
remain open until you call the 'close()' method. This allows you execute as
many commands as you want with the 'exec()' method using only one
connection. This is a better approach over other ssh wrapper
implementations, i.e: Net::SCP, Net::SSH and Net::SCP::Expect, that start a
new ssh connection each time a remote command is issued or a file is
transfered.

It uses _Expect.pm_ module to interact with the SSH server. A
'get_expect()' method is provided so you can obtain the internal 'Expect'
object connected to the SSH server. Use this only if you have some special
need that you can't do with the 'exec()' method.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5299 |21cr|perl-Net-SSH-Perl-2.140.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Net-SSH-Perl
%define upstream_version 2.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl client Interface to SSH


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/S/SC/SCHWIGON/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Net-SSH-Perl-2.14-hobbled.patch
BuildRequires:	perl-devel
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Math::Pari)
BuildRequires:	perl(Math::GMP)
BuildRequires:	perl(String::CRC32)
BuildRequires:	perl(Convert::PEM)
BuildRequires:	perl(Crypt::IDEA)
BuildRequires:	perl(Crypt::DH)
BuildRequires:	perl(Crypt::DSA)
BuildRequires:	perl(Crypt::Digest::SHA256)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Digest::HMAC)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Digest::BubbleBabble)
BuildRequires:	perl(Crypt::RSA)
BuildRequires:	perl(Test)

%description
Net::SSH::Perl is an all-Perl module implementing an SSH
(Secure Shell) client. It is compatible with both the SSH-1
and SSH-2 protocols.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorarch}/Net
%{_mandir}/man*/*
%{perl_vendorarch}/auto/Net/SSH/Perl/Perl.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5300 |21cr|perl-Net-Syslog-0.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name    Net-Syslog
%define  upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl extension for sending syslog messages directly to a remote syslogd

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/L/LH/LHOWARD/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Net::Syslog implements the intra-host syslog forwarding protocol.
It is not intended to replace the Sys::Syslog or
Unix::Syslog modules, but instead to provide a method of using syslog when a
local syslogd is unavailable or when you don't want to write syslog messages
to the local syslog.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Net/Syslog.pm
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5301 |21cr|perl-Net-Telnet-Cisco-1.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Telnet-Cisco
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Net-Telnet-Cisco Perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Net::Telnet::Cisco adds additional functionality to 
Net::Telnet that helps you automate Cisco router management
and statistic gathering.

%prep
%setup -q -n %{name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%files
%{perl_vendorlib}/Net/Telnet/*
%{perl_vendorlib}/auto/Net/Telnet/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5302 |21cr|perl-Net-TFTP-0.190.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-TFTP
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Net::TFTP - TFTP Client class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::MockModule)
BuildRequires:	perl(Test::Warn)

BuildArch:	noarch

%description
Net::TFTP is a class implementing a simple Trivial File Transfer Protocol
client in Perl as described in RFC1350. Net::TFTP also supports the
TFTP Option Extension (as described in RFC2347), with the following options

RFC2348 Blocksize Option

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog README
%{perl_vendorlib}/Net/TFTP.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5303 |21cr|perl-Net-Tor-Servers-0.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Tor-Servers
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Perl extension to query a Tor Directory and collect information on servers

License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/AJDIXON/Net-Tor-Servers-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module was written to make life a little easier for me when I have
been developing a dymanic blocklist for educational institutions to prevent
students from being able to circumvent legally required content filtering
systems.

Its nothing special, just a quick and easy way to get the data together in
an array.

%prep
%setup -qc

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5304 |21cr|perl-Net-Trac-0.160.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Trac
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Simple client library for a remote Trac instance

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(CPAN::Meta::Requirements)
BuildRequires:	perl(Moo)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(Lingua::EN::Inflect)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Text::CSV)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(YAML)
BuildRequires:	perl(WWW::Mechanize)
BuildArch:	noarch

%description
Net::Trac is simple client library for a remote Trac instance. Because Trac
doesn't provide a web services API, this module currently "fakes" an RPC
interface around Trac's webforms and the feeds it exports. Because of this,
it's somewhat more brittle than a true RPC client would be.

As of now, this module has been tested against Trac 10.4 and Trac 11.0.

The author's needs for this module are somewhat modest and its current
featureset reflects this. Right now, only basic read/write functionality
for Trac's tickets is provided. Patches would be gratefully appreciated.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# (misc, 30/04/2010)
# tests do not work
# https://rt.cpan.org/Ticket/Display.html?id=57063
#make test

%install
%makeinstall_std

%files
%doc META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Net

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5305 |21cr|perl-Net-Traceroute-1.150.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Traceroute
%define upstream_version 1.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Net-Traceroute module for perl 


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements traceroute(1) functionality for perl5. It
allows you to trace the path IP packets take to a destination. It
is currently implemented as a parser around the system traceroute
command.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make OPTIMIZE="%{optflags}" CFLAGS="%{optflags}"

%check
# make test dies...
# make test

%install
%makeinstall_std

%files
%doc ChangeLog README TODO
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5306 |21cr|perl-Net-Twitter-4.10.430-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Twitter
%define upstream_version 4.01043

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A definition of the TwitterVision API as a Moose role


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(MooseX::Aliases)
BuildRequires:	perl(Carp::Clan)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Data::Visitor::Callback)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Strptime)
BuildRequires:	perl(Devel::StackTrace)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTTP::Request::Common)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(JSON::MaybeXS)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Exporter)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(MooseX::MultiInitArg)
BuildRequires:	perl(Net::Netrc)
BuildRequires:	perl(Net::OAuth)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(LWP::Protocol::https)
BuildRequires:	perl(Test::Deep)

BuildArch:	noarch

%description
The micro-blogging service the http://identi.ca manpage provides a Twitter
compatible API. This module simply creates an instance of 'Net::Twitter'
with the 'identica' option set.

See the Net::Twitter manpage for full documentation.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml LICENSE examples/
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5307 |21cr|perl-Net-Twitter-Lite-0.120.80-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Twitter-Lite
%define upstream_version 0.12008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    A perl interface to the Twitter API v1.1
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Encode)
BuildRequires: perl(File::Spec)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Net::HTTP)
BuildRequires: perl(Net::Netrc)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Simple)
BuildRequires: perl(URI)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(overload)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Tiny)
BuildArch: noarch

%description
This module provides a perl interface to the Twitter API v1.

It uses the same API definitions as the Net::Twitter manpage, but without
the extra bells and whistles and without the additional dependencies. Same
great taste, less filling.

This module is related to, but is not part of the 'Net::Twitter'
distribution. It's API methods and API method documentation are generated
from 'Net::Twitter''s internals. It exists for those who cannot, or prefer
not to install the Moose manpage and its dependencies.
%files
%doc LICENSE Changes examples README
%{perl_vendorlib}/Net/*
%{_mandir}/man3/*
#------------------------------------------------------------
%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build CFLAGS="%{optflags}"


%install
./Build install --destdir=%{buildroot} --installdirs=vendor


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5308 |21cr|perl-Net-UPnP-1.4.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-UPnP
%define upstream_version 1.4.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Perl extension for UPnP

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(version)

BuildArch:	noarch

%description
This package provides some functions to control UPnP devices.

Currently, the package provides only functions for the control point. To
control UPnP devices, see the Net::UPnP::ControlPoint manpage.

As a sample of the control point, the package provides the
Net::UPnP::AV::MediaServer manpage to control the devices such as DLNA
media servers. As the example, please dms2vodcast.pl that converts from the
MPEG2 movies to the MPEG4 one and outputs the RSS file for Vodcasting.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
find %{buildroot}%{perl_vendorlib}  -name '*.pm' -exec chmod -x {} \;


%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5309 |21cr|perl-Net-Write-1.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Net-Write
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	An interface to open and send raw frames to network

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-Write-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Gomor)
BuildRequires:	perl(Socket6)
BuildRequires:	perl(Net::Pcap)
BuildRequires:	perl(ExtUtils::ParseXS)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Net::Write provides a portable interface to open a network interface, and be
able to write raw data directly to the network. It juste provides three
methods when a Net::Write object has been created for an interface: open, send,
close.

It is possible to open a network interface to send frames at layer 2 (you craft
a frame from link layer), or at layer 3 (you craft a frame from network layer),
or at layer 4 (you craft a frame from transport layer).

NOTE: not all operating systems support all layer opening. Currently, Windows
only supports opening and sending at layer 2. Other Unix systems should be able
to open and send at all layers.

See also Net::Write::Layer2, Net::Write::Layer3, Net::Write::Layer4 for
specific information on opening network interfaces at these layers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# perl path hack
find . -type f | xargs %{__perl} -p -i -e "s|^#!/usr/local/bin/perl|#!%{_bindir}/perl|g"

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE LICENSE.Artistic README
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5310 |21cr|perl-Net-XWhois-0.900.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-XWhois
%define upstream_version 0.90

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Extensible client framework for doing Whois queries and parsing server response

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Net::XWhois class provides an extensible client framework for
doing Whois queries and parsing server response. The class maintains
an array of whois servers and associated lists of top level domains
for transparently selecting servers appropriate for different queries.
Supports response caching and comes with a drop-in replacement for
the whois program. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc TODO ARTISTIC contribs/*
%{perl_vendorlib}/Net/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5311 |21cr|perl-NEXT-0.650.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    NEXT
%define upstream_version 0.65

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl5 implementation of NEXT (RFC190)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/F/FL/FLORA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
NEXT.pm adds a pseudoclass named 'NEXT' to any program that uses it. If a
method 'm' calls '$self->NEXT::m()', the call to 'm' is redispatched as if
the calling method had not originally been found.

In other words, a call to '$self->NEXT::m()' resumes the depth-first,
left-to-right search of '$self''s class hierarchy that resulted in the
original call to 'm'.

Note that this is not the same thing as '$self->SUPER::m()', which begins a
new dispatch that is restricted to searching the ancestors of the current
class. '$self->NEXT::m()' can backtrack past the current class -- to look
for a suitable method in other ancestors of '$self' -- whereas
'$self->SUPER::m()' cannot.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5312 |21cr|perl-Nmap-Parser-1.310.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Nmap-Parser
%define upstream_version 1.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.31
Release:	5

Summary:	Parse nmap scan data with perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Nmap/Nmap-Parser-1.31.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Storable)
BuildRequires:	perl(XML::Twig)
BuildArch:	noarch

%description
This module implements a interface to the information contained in an nmap
scan. It is implemented by parsing the xml scan data that is generated by
nmap. This will enable anyone who utilizes nmap to quickly create fast and
robust security scripts that utilize the powerful port scanning abilities
of nmap.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5313 |21cr|perl-Nmap-Scanner-1.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Nmap-Scanner
%define upstream_version 1.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Perform and manipulate nmap scans using perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Nmap/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Generate)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(XML::SAX)
BuildRequires:	perl(Test)
Provides:	perl(Nmap::Scanner::Address)
Provides:	perl(Nmap::Scanner::Distance)
Provides:	perl(Nmap::Scanner::ExtraPorts)
Provides:	perl(Nmap::Scanner::Host)
Provides:	perl(Nmap::Scanner::Hostname)
Provides:	perl(Nmap::Scanner::Hosts)
Provides:	perl(Nmap::Scanner::NmapRun)
Provides:	perl(Nmap::Scanner::OS)
Provides:	perl(Nmap::Scanner::OS::Class)
Provides:	perl(Nmap::Scanner::OS::Fingerprint)
Provides:	perl(Nmap::Scanner::OS::IPIdSequence)
Provides:	perl(Nmap::Scanner::OS::Match)
Provides:	perl(Nmap::Scanner::OS::PortUsed)
Provides:	perl(Nmap::Scanner::OS::TCPSequence)
Provides:	perl(Nmap::Scanner::OS::TCPTSSequence)
Provides:	perl(Nmap::Scanner::OS::Uptime)
Provides:	perl(Nmap::Scanner::Port)
Provides:	perl(Nmap::Scanner::RunStats)
Provides:	perl(Nmap::Scanner::RunStats::Finished)
Provides:	perl(Nmap::Scanner::ScanInfo)
Provides:	perl(Nmap::Scanner::Service)
Provides:	perl(Nmap::Scanner::Task)
Provides:	perl(Nmap::Scanner::TaskProgress)
Requires:	nmap
BuildArch:	noarch

%description
This set of modules provides perl class wrappers for the network mapper
(nmap) scanning tool (see http://www.insecure.org/nmap/). Using these
modules, a developer, network administrator, or other techie can create
perl routines or classes which can be used to automate and integrate nmap
scans elegantly into new and existing perl scripts.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# test need internet connection
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5314 |21cr|perl-NTLM-1.90.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    NTLM
%define upstream_version 1.09
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.09
Release:	5

Summary:	An NTLM authentication module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Authen/NTLM-1.09.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::HMAC_MD5)
BuildRequires:	perl(MIME::Base64)
BuildArch:	noarch

%description
    This module provides methods to use NTLM authentication.  It can
    be used as an authenticate method with the Mail::IMAPClient module
    to perform the challenge/response mechanism for NTLM connections
    or it can be used on its own for NTLM authentication with other
    protocols (eg. HTTP).

    The implementation is a direct port of the code from F<fetchmail>
    which, itself, has based its NTLM implementation on F<samba>.  As
    such, this code is not especially efficient, however it will still
    take a fraction of a second to negotiate a login on a PII which is
    likely to be good enough for most situations.

FUNCTIONS
    * ntlm_domain()

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5315 |21cr|perl-Number-Bytes-Human-0.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Number-Bytes-Human
%define upstream_version 0.11

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Convert byte count to human readable format
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Number-Bytes-Human
Source0:        https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/Number-Bytes-Human-%{upstream_version}.tar.gz

BuildArch:      noarch

BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod) >= 1.18

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This module is designed to format byte counts to usual readable
format, like '2.0K', '3.1G', '100B'. It was inspired in the -h option of 
Unix utilities like du, df and ls for "human-readable" output.

%prep
%setup -q -n Number-Bytes-Human-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS"
%{__make} %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5316 |21cr|perl-Number-Format-1.750.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Number-Format
%define upstream_version 1.75

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Convert numbers to strings with pretty formatting

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Number/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Number::Format is a library for formatting numbers.  Functions are
provided for converting numbers to strings in a variety of ways, and to
convert strings that contain numbers back into numeric form.  The output
formats may include thousands separators - characters inserted between
each group of three characters counting right to left from the decimal
point.  The characters used for the decimal point and the thousands
separator come from the locale information or can be specified by the
user.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 CHANGES README

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc CHANGES README
%{perl_vendorlib}/Number
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5317 |21cr|perl-Number-Nary-1.100.312-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Number-Nary
%define upstream_version 1.100312

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Encode and decode numbers as n-ary strings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Number/Number-Nary-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(UDCode)
BuildArch:	noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5318 |21cr|perl-Number-RGB-1.200.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Number-RGB
%define upstream_version 1.2

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Manipulate RGB Tuples

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Number/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Attribute::Handlers)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
This module creates RGB tuple objects and overloads their operators to make
RGB math easier. An attribute is also exported to the caller to make
construction shorter.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
# fails due to new attribute::handler
# cf http://rt.cpan.org/Public/Bug/Display.html?id=41394
#%{make} test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5319 |21cr|perl-Number-WithError-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Number-WithError
%define upstream_version 1.01

Name:           perl-Number-WithError
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Numbers with error propagation and scientific rounding
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Number-WithError
Source0:        https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/Number-WithError-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires: make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(inc::Module::Install)
# Run-time:
BuildRequires:  perl(base)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Math::BigFloat) >= 1.40
BuildRequires:  perl(overload)
BuildRequires:  perl(Params::Util) >= 0.10
BuildRequires:  perl(prefork) >= 1.00
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Tests:
BuildRequires:  perl(File::Spec::Functions)
# FindBin not needed
BuildRequires:  perl(constant)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test::LectroTest)
BuildRequires:  perl(Test::More) >= 0.47
# Optional tests:
BuildRequires:  perl(Test::Pod) >= 1.00
BuildRequires:  perl(Test::Pod::Coverage) >= 1.00
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Math::BigFloat) >= 1.40
Requires:       perl(overload)
Requires:       perl(Params::Util) >= 0.10
Requires:       perl(prefork) >= 1.00

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\((Params::Util|prefork)\\)$

%description
This class is a container class for numbers with a number of associated
symmetric and asymmetric errors. It overloads practically all common
arithmetic operations and trigonometric functions to propagate the errors.
It can do proper scientific rounding.

You can use Math::BigFloat objects as the internal representation of numbers
in order to support arbitrary precision calculations.

Errors are propagated using Gaussian error propagation.

%prep
%setup -q -n Number-WithError-%{upstream_version}
# Remove bundled modules
rm -rf inc/*
sed -i -e '/^inc\//d' MANIFEST
# Correct encoding
sed -i -e 's/\r//' Changes

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5320 |21cr|perl-Object-Event-1.230.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Object-Event
%define upstream_version 1.23

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    A class that provides an event callback interface
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Object/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(AnyEvent)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(common::sense)
BuildRequires: perl-devel
BuildArch: noarch

%description
This module was mainly written for the AnyEvent::XMPP manpage, the
AnyEvent::IRC manpage, the AnyEvent::HTTPD manpage and the BK manpage to
provide a consistent API for registering and emitting events. Even though I
originally wrote it for those modules I released it separately in case
anyone may find this module useful.

For more comprehensive event handling see also the Glib manpage and the POE
manpage.

This class provides a simple way to extend a class, by inheriting from this
class, with an event callback interface.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5321 |21cr|perl-Object-InsideOut-3.980.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Object-InsideOut
%define upstream_version 3.98

# optional, and lead to a requires loop
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Math::Random::MT::Auto\\)
%else
%define _requires_exceptions Math::Random::MT::Auto
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Comprehensive inside-out object support perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Object/Object-InsideOut-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exception::Class)
BuildArch:	noarch

%description
This module provides comprehensive support for implementing classes using the
inside-out object model.

Using inside-out object model, objects are not a blessed hash reference, but
merely a blessed scalar. The foobar attribute, instead of being accessed via
$self->{foobar}, is accessed using a package lexical variable @foobar (common
for every object of the class) via $foobar[$$self]. 

Advantages of this OO scheme are:
1 - speed
2 - encapsulation
3 - compilation-time checks

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_vendorlib}/Bundle/Object/InsideOut.pm

%files
%doc Changes README
%{perl_vendorlib}/Object
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5322 |21cr|perl-Object-Lexical-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Object-Lexical
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Object::Lexical - Syntactic Sugar for Easy Object Instance Data &

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(PadWalker)
BuildArch:	noarch

%description
Object::Lexical provides syntactic sugar to create objects.
Normal "my" variables are used for instance data. $this is
automatically read off of the argument stack. This follows "real"
OO languages, where user code need not concern itself with
helping the language implement objects.  Normal OO Perl code is
ugly, hard to read, tedious to type, and error prone.  The
"$self-"{field}> syntax is cumbersome, and using an object field
with a built in, like "push()", requires syntax beyond novice
Perl programmers: "push @{$self-"{field}}, $value>.  Spelling
field names wrong results in hard to find bugs: the hash
autovivicates, and no "variables must be declared" warning is
issued.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Object/Lexical.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5323 |21cr|perl-Object-MultiType-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Object-MultiType
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl Objects as Hash, Array, Scalar, Code and Glob at the same time

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Object/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module return an object that works like a Hash, Array,
Scalar, Code and Glob object at the same time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 'tr /\r//d' Changes README

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Object
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5324 |21cr|perl-Object-Persistence-0.92-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name Object-Persistence

Summary:	Object-Persistence module for perl 

Name:		perl-%{real_name}
Version:	0.92
Release:	10
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{real_name}
Source0:	%{real_name}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides persistence functionality to its objects.  Object
definitions are stored as stringified perl data structures, generated with
Data::Dumper, that are amenable to manual editing and external processing from
outside the class interface.

%prep
%setup -q -n %{real_name}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes 
%{perl_vendorlib}/Persistence/Database.pm
%{perl_vendorlib}/Persistence/Object
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5325 |21cr|perl-Object-Pluggable-1.290.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Object-Pluggable
%define upstream_version 1.29

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Importable constants for Object::Pluggable

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Object/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Parser)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(constant)
BuildArch:	noarch

%description
Object::Pluggable is a base class for creating plugin enabled objects. It
is a generic port of POE::Component::IRC's plugin system.

If your object dispatches events to listeners, then Object::Pluggable may
be a good fit for you.

Basic use would involve subclassing Object::Pluggable, then overriding
'_pluggable_event()' and inserting '_pluggable_process()' wherever you
dispatch events from.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5326 |21cr|perl-Object-Realize-Later-0.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Object-Realize-Later
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	CPAN %{upstream_name} perl module
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Object-Realize-Later/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/Object-Realize-Later-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildArch:	noarch

%description
This module helps you implementing delay loading of object-data.  While
creating a stub-object, Object::Realize::Later simulates you got the
real data.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Object/Realize

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5327 |21cr|perl-Object-Signature-1.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Object-Signature
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Generate cryptographic signatures for objects

License:	Artistic/GPL
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Object::Signature is an abstract base class that you can inherit from in order
to allow your objects to generate unique cryptographic signatures.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 README Changes lib/Object/Signature.pm

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Object
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5328 |21cr|perl-ogd-0.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  ogd
%define upstream_version 0.03

Name:		perl-%{module}
Version:	%perl_convert_version 0.03
Release:	5
Summary:	Ordered global destruction of objects stored in globals

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://search.cpan.org/CPAN/authors/id/E/EL/ELIZABETH/ogd-0.03.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module adds ordered destruction of objects stored in global variables in
LIFO order during global destruction.

Ordered global destruction is only applicable to objects stored in non-lexical
variables (even if they are in file scope). Apparently Perl destroys all
objects stored file-level lexicals before the first END block is called.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%{perl_vendorlib}/ogd.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5329 |21cr|perl-OpenOffice-OOBuilder-0.90.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    OpenOffice-OOBuilder
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl OO interface for creating OpenOffice documents

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/OpenOffice/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Archive::Zip)
BuildArch:	noarch

%description
This is a collection of modules to create OpenOffice documents. 
At this moment OpenOffice spreadsheets (calc documents) are 
supported. Other OpenOffice documents will follow depending 
on time and feedback. 

The modules present in this collection are:

  OpenOffice::OOBuilder - The base class. For each OpenOffice 
      document type, another class will be inherited from this
      base class.
      
  OpenOffice::OOCBuilder - For creating OpenOffice calc documents:
      spreadsheets, documents with the sxc extension.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%files
%doc README 
%{perl_vendorlib}/
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5330 |21cr|perl-OpenOffice-OODoc-2.125.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 OpenOffice-OODoc
%define upstream_version 2.125

#(nl) this 2 requires are not needed, they are on a exemple file only
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Tk::Dialog\\)|perl\\(Tk\\)
%else
%define _requires_exceptions  perl(Tk::Dialog)\\|perl(Tk) 
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/OpenOffice/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Archive::Zip)
BuildRequires:	perl(XML::Twig)
BuildRequires:	perl(Test)

BuildArch:	noarch

%description
A library for Open Document processing

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
make test

%install
%makeinstall_std

%files
%{_bindir}/*
%{perl_vendorlib}/OpenOffice
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5331 |21cr|perl-ORDB-CPAN-Mandriva-1.100.230-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ORDB-CPAN-Mandriva
%define upstream_version 1.100230

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Orlite for module table in database

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/ORDB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(ORLite::Mirror)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build)
BuildArch:	noarch

%description
This module is an easy way to fetch a database listing all Perl modules &
distributions packaged within Mandriva Linux distribution.

When using it, it will automatically & silently download it from the
original source and copy it in a local directory, letting you focus on what
you want with the data itself.

Check the _examples_ directory for some ideas on how to use it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
# fails at ABF
#./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5332 |21cr|perl-ORLite-1.980.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ORLite
%define upstream_version 1.98

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Extremely light weight SQLite-specific ORM

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/ORLite-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(DBD::SQLite) >= 1.270
BuildRequires:	perl(DBI) >= 1.607
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Remove) >= 1.40
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp) >= 0.200.0
BuildRequires:	perl(Params::Util) >= 1.00
BuildRequires:	perl(Template::Tiny)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Script)

BuildArch:	noarch

%description
Extremely light weight SQLite-specific ORM

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
make test

%install
%make_install

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5333 |21cr|perl-ORLite-1.980.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ORLite
%define upstream_version 1.98

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Extremely light weight SQLite-specific ORM

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/ORLite-%{upstream_version}.tar.gz
Patch0:		ORLite-1.98-sqlite-vacuum.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(DBD::SQLite) >= 1.270
BuildRequires:	perl(DBI) >= 1.607
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Remove) >= 1.40
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp) >= 0.200.0
BuildRequires:	perl(Params::Util) >= 1.00
BuildRequires:	perl(Template::Tiny)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Script)

BuildArch:	noarch

%description
Extremely light weight SQLite-specific ORM

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

# Remove bundled installation scripts
rm -rf inc

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5334 |21cr|perl-ORLite-Migrate-1.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# find-requires also extracts version, which is then misunderstood by
# rpm. therefore, forcing require skipping of File::Spec - which is
# nevertheless required by perl-PathTools
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(File::Spec\\)
%else
%define _requires_exceptions perl.File::Spec.
%endif

%define upstream_name    ORLite-Migrate
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Extremely light weight SQLite-specific schema migration

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBI)
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(File::Which)
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(ORLite)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Probe::Perl)
BuildRequires:	perl-PathTools

BuildArch:	noarch

Requires:	perl(IPC::Run3)
Requires:	perl-PathTools

%description
SQLite is a light weight single file SQL database that provides an
excellent platform for embedded storage of structured data.

ORLite is a light weight single class Object-Relational Mapper (ORM)
system specifically designed for (and limited to only) work with SQLite.

ORLite::Migrate is a light weight single class Database Schema Migration
enhancement for ORLite.

It provides a simple implementation of schema versioning within the
SQLite database using the built-in user_version pragma (which is set to
zero by default).

When setting up the ORM class, an additional timeline parameter is
provided, which should point to a directory containing standalone
migration scripts.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5335 |21cr|perl-ORLite-Mirror-1.240.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ORLite-Mirror
%define upstream_version 1.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Extend ORLite to support remote SQLite databases

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Remove)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(IO::Compress::Bzip2)
BuildRequires:	perl(IO::Compress::Gzip)
BuildRequires:	perl(IO::Uncompress::Bunzip2)
BuildRequires:	perl(IO::Uncompress::Gunzip)
BuildRequires:	perl(LWP::Online)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(ORLite)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
the ORLite manpage provides a readonly ORM API when it loads a readonly
SQLite database from your local system.

By combining this capability with the LWP manpage, the ORLite::Mirror
manpage goes one step better and allows you to load a SQLite database from
any arbitrary URI in readonly form as well.

As demonstrated in the synopsis above, you using the ORLite::Mirror manpage
in the same way, but provide a URL instead of a file name.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5336 |21cr|perl-ORLite-Pod-0.110.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ORLite-Pod
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Documentation generator for ORLite

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Remove)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(ORLite)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Template)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Script)
BuildRequires:	perl(Test::XT)
BuildRequires:	perl(autodie) >= 2.100.0

BuildArch:	noarch

%description
*THIS MODULE IS EXPERIMENTAL AND SUBJECT TO CHANGE WITHOUT NOTICE.*

*YOU HAVE BEEN WARNED!*

The biggest downside of the ORLite manpage is that because it can generate
you an entire ORM in one line of code, you can have a large an extensive
API without anywhere for documentation for the API to exist.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5337 |21cr|perl-ORLite-Statistics-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ORLite-Statistics
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Statistics enhancement package for ORLite

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(ORLite)
BuildRequires:	perl(Statistics::Basic)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This is an enhancement module for ORLite table classes, designed to provide
easy integration with the the Statistics::Base manpage module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5338 |21cr|perl-p5-Palm-1.400.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    p5-Palm
%define upstream_version 1.4.0

Name:		perl-%{upstream_name}
# perl_convert don't work here
#Version:	%perl_convert_version %{upstream_version}
Version:	1.400.0
Release:	3
Epoch:		1

Summary:	Modules for reading manipulating, and writing .pdb and .prc database

License:	GPL
Group:		Development/Perl
Url:		http://www.coldsync.org/#p5-Palm
Source0:	http://www.coldsync.org/download/%{upstream_name}-%{upstream_version}-snapshot.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch


%description
This is p5-Palm, a set of Perl 5 modules for reading, manipulating,
and writing the .pdb and .prc database files used by PalmOS devices
such as the PalmPilot and its successors.

%prep
%setup -qn %{upstream_name}-%{upstream_version}-snapshot

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc README TODO
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5339 |21cr|perl-Package-Generator-1.106.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module   Package-Generator
%define upstream_version 1.106

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Pseudo-garbage-collection for packages

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Package/Package-Generator-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module allows you to create simple objects which, when destroyed,
delete a given package. This lets you approximate lexically scoped
packages.

%prep
%setup -q -n %{module}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/Package

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5340 |21cr|perl-Package-Variant-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Package-Variant
%define upstream_version 1.003002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Parameterizable packages

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Package/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.550_100
BuildRequires: perl(Import::Into)
BuildRequires: perl(Module::Runtime) >= 0.13.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(strictures) >= 1.0.0
BuildRequires: perl-devel

BuildArch:  noarch

%description
This module allows you to build packages that return different variations
depending on what parameters are given.

Users of your package will receive a subroutine able to take parameters and
return the name of a suitable variant package. The implmenetation does not
care about what kind of package it builds.

Declaring a variable package
    There are two important parts to creating a variable package. You first
    have to give 'Package::Variant' some basic information about what kind
    of package you want to provide, and how. The second part is
    implementing a method receiving the user's arguments and generating
    your variants.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5341 |21cr|perl-Panda-Install-1.2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Panda-Install
%define upstream_version 1.2.4

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Manager for module's payload
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Panda/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Deep)
BuildRequires: perl-devel

BuildArch: noarch

%description
Panda::Install makes it much easier to write MakeMaker's makefiles
especially for XS modules. It provides dependecies support between XS
modules, so that one could easily use header files, code, compilation
options, ...etc of another. Panda::Install also lets you put source files
in subdirectories any level deep (MakeMaker doesn't handle that) and easily
compile-in external C libraries.

The params for Panda::Install are compatible with MakeMaker with some
additions.

Also it greatly extends typemap functionality and adds C-like XS synopsis.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x Changes lib/Panda/Install.pm lib/Panda/Install/ParseXS.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5342 |21cr|perl-Panda-XS-2.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude XS.so


%define upstream_name    Panda-XS
%define upstream_version 2.1.1

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Useful features and typemaps for XS modules
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Panda/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(Panda::Install)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Simple)
BuildRequires: perl-devel

%description
Panda::XS provides some useful features for XS modules. Also adds default
configurable typemaps with most commonly used types. Panda::XS makes it
possible for other modules (Perl or XS) to inherit from your XS module. To
use it you must have a C++ compiler. Of course most (or all) CPAN modules
have private implementation visible only via perl interface (function or
method calls). But it is a much better approach to implement functionality
in C/C++ classes with public API, make an XS interface, to make it usable
from perl and also make you C code visible to other XS modules. This makes
it possible for other users to use your C code directly from other XS
modules, without perl method/function interface and therefore they can
achieve much greater speeds. To make your C code visible to other XS
modules when your module is installed, see the Panda::Install manpage.

%files
%doc Changes META.json META.yml
%{perl_vendorarch}/auto/
%{perl_vendorarch}/Panda/*.pm
%{perl_vendorarch}/Panda/XS.x/info
%{perl_vendorarch}/Panda/XS.x/tm/

#---------------------------------------
%package devel
Summary:	Devel package for %{upstream_name}
Group:		Development/Perl
Requires:	%{name} = %{EVRD}

%description devel
Headers for %{name}

%files devel
%doc Changes
%{perl_vendorarch}/Panda/XS.x/i/

#---------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -name "Changes" -o -name "*.h" -o -name "typemap" -o -name "typemap*" -o -name "*.xs" -o -name "*.cc" -o -name "*.pm"  |xargs chmod 0644

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test 

%install
rm -fr %{buildroot}
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5343 |21cr|perl-PAR-1.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 PAR
%define upstream_version 1.017

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl Archive Toolkit

License:	Artistic
Group:		Development/Perl
URL:		http://par.perl.org/
Source0:	http://www.cpan.org/modules/by-module/PAR/PAR-%{upstream_version}.tar.gz

BuildRequires:  perl(AutoLoader) >= 5.63
BuildRequires:	perl(Archive::Zip) >= 1
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::ScanDeps) >= 0.69
BuildRequires:	perl(PAR::Dist) >= 0.21
BuildRequires:	perl-devel
BuildRequires:	perl-Module-Signature
BuildRequires:	perl(Archive::Zip) >= 1
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::ScanDeps) >= 0.45
BuildRequires:	perl(PAR::Dist) >= 0.13
BuildRequires:	perl(Getopt::ArgvFile)
BuildArch:	noarch

%description
PAR is a toolkit to use perl scripts and modules stored inside compressed
.par files.

For bundling prerequisite modules of scripts into a PAR file (ala
PerlApp, Perl2exe, or 'perlcc that works'), see "perldoc pp".
For running ".par" files directly, see "perldoc parl".
To generate/execute self-contained perl scripts, see "perldoc par.pl".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
# don't run signature test since this package was patched
rm -f SIGNATURE
make test

%install
%makeinstall_std

%clean

%files
%doc AUTHORS Changes README
%{perl_vendorlib}/PAR
%{perl_vendorlib}/PAR.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5344 |21cr|perl-Parallel-ForkManager-2.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parallel-ForkManager
%define upstream_version 2.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Simple parallel processing fork manager

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Parallel-ForkManager/
Source0:	http://www.cpan.org/modules/by-module/Parallel/Parallel-ForkManager-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Moo::Role)
BuildArch:	noarch

%description
This module is intended for use in operations that can be done in parallel
where the number of processes to be forked off should be limited. Typical
use is a downloader which will be retrieving hundreds/thousands of files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5345 |21cr|perl-Parallel-Prefork-0.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parallel-Prefork
%define upstream_version 0.18

Name:           perl-Parallel-Prefork
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Simple prefork server framework
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Parallel-Prefork
Source0:        https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/Parallel-Prefork-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(Class::Accessor::Lite) >= 0.04
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(List::MoreUtils)
BuildRequires:  perl(Parallel::Scoreboard)
BuildRequires:  perl(Proc::Wait3) >= 0.03
BuildRequires:  perl(Scope::Guard)
BuildRequires:  perl(Signal::Mask)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(Test::SharedFork)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(warnings)

BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(Module::Install::ReadmeFromPod)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Parallel::Prefork is much like Parallel::ForkManager, but supports graceful
shutdown and run-time reconfiguration.

%prep
%setup -q -n Parallel-Prefork-%{upstream_version}
rm -r inc
sed -i -e '/^inc\/*$/d' MANIFEST

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5346 |21cr|perl-Parallel-Scoreboard-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parallel-Scoreboard
%define upstream_version 0.08

Name:           perl-Parallel-Scoreboard
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Scoreboard for monitoring status of many processes
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Parallel-Scoreboard
Source0:        https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/Parallel-Scoreboard-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  make
BuildRequires:  %{__perl}

BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Test::Warn)
BuildRequires:  perl(Test::More)

# Run-time deps
BuildRequires: perl(Class::Accessor::Lite)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Path)
BuildRequires: perl(HTML::Entities)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(JSON)
BuildRequires: perl(POSIX)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Module::Install::ReadmeFromPod)

Requires:      perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Parallel::Scoreboard is a pure-perl implementation of a process scoreboard.
By using the module it is easy to create a monitor for many worker process,
like the status module of the Apache HTTP server.

%prep
%setup -q -n Parallel-Scoreboard-%{upstream_version}
rm -r inc
sed -i -e '/^inc\/.*$/d' MANIFEST


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%{__make} %{?_smp_mflags}


%install
%{__make} pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5347 |21cr|perl-Params-Check-0.380.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Params-Check
%define upstream_version 0.38

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A generic input parsing/checking mechanism

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/K/KA/KANE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Locale::Maketext::Simple)
BuildArch:	noarch

%description
Params::Check is a generic input parsing/checking mechanism.

It allows you to validate input via a template. The only requirement is that
the arguments must be named.

Params::Check can do the following things for you:
* Convert all keys to lowercase
* Check if all required arguments have been provided
* Set arguments that have not been provided to the default
* Weed out arguments that are not supported and warn about them to the user
* Validate the arguments given by the user based on strings, regexes, lists or
  even subroutines
* Enforce type integrity if required

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc CHANGES README
%{perl_vendorlib}/Params
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5348 |21cr|perl-Parse-Binary-0.110.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-Binary
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Convert between variant records and hashes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module makes parsing binary data structures much easier, by serving as
a base class for classes that represents the binary data, which may contain
objects of other classes to represent parts of itself.

Documentation is unfortunately a bit lacking at this moment. Please read
the tests and source code of the Parse::AFP manpage and the Win32::Exe
manpage for examples of using this module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5349 |21cr|perl-Parse-CPAN-Packages-2.400.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-CPAN-Packages
%define upstream_version 2.40

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Parse 02packages.details.txt.gz


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Archive::Peek)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::InDistDir)
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(CPAN::DistnameInfo)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(IO::Zlib)
BuildRequires:	perl(Moose)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(version)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Type::Utils)
BuildRequires:	perl(Types::Standard)
BuildArch:	noarch

%description
The Comprehensive Perl Archive Network (CPAN) is a very useful collection
of Perl code. It has several indices of the files that it hosts, including
a file named "02packages.details.txt.gz" in the "modules" directory. This
file contains lots of useful information and this module provides a simple
interface to the data contained within.

In a future release the Parse::CPAN::Packages::Package manpage and the
Parse::CPAN::Packages::Distribution manpage might have more information.

Methods
    * new

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5350 |21cr|perl-Parse-CPAN-Packages-Fast-0.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-CPAN-Packages-Fast
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Parse CPAN's package index
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Parse/Parse-CPAN-Packages-Fast-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::DistnameInfo)
BuildRequires:	perl(CPAN::Version)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(PerlIO::gzip)
BuildRequires:	perl-IO-Compress
BuildRequires:	perl(IO::Uncompress::Gunzip)
BuildArch:	noarch

%description
This is a largely API compatible rewrite of the Parse::CPAN::Packages
manpage.

Notable differences are

* * The method add_package of
  Parse::CPAN::Packages::Fast::Distribution is not implemented

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5351 |21cr|perl-Parse-Distname-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Parse-Distname
%define upstream_version 0.05

Name:		perl-Parse-Distname
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Parse a distribution name
Group:		Development/Perl
License:	GPL+ or Artistic
URL:		https://metacpan.org/dist/Parse-Distname
Source0:	https://cpan.metacpan.org/modules/by-module/Parse/Parse-Distname-%{upstream_version}.tar.gz
BuildArch:	noarch
# Module Build
BuildRequires:	coreutils
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:	perl(ExtUtils::MakeMaker::CPANfile) >= 0.08
# Module Runtime
BuildRequires:	perl(Carp)
BuildRequires:	perl(Exporter) >= 5.57
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
# Test Suite
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::More) >= 0.88
BuildRequires:	perl(Test::UseAllModules) >= 0.17
# Dependencies
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Parse::Distname is yet another distribution name parser. It works almost the
same as CPAN::DistnameInfo, but Parse::Distname takes a different approach. It
tries to extract the version part of a distribution and treat the rest as a
distribution name, contrary to CPAN::DistnameInfo which tries to define a name
part and treat the rest as a version.

Because of this difference, when Parse::Distname parses a weird distribution
name such as "AUTHOR/v1.0.tar.gz", it says the name is empty and the version
is "v1.0", while CPAN::DistnameInfo says the name is "v" and the version is
"1.0". See test files in this distribution if you need more details. As of this
writing, Parse::Distname returns a different result for about 200+
distributions among about 320000 BackPan distributions.

%prep
%setup -q -n Parse-Distname-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install
%{_fixperms} -c %{buildroot}

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/Parse/
%{_mandir}/man3/Parse::Distname.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5352 |21cr|perl-Parse-DMIDecode-0.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-DMIDecode
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Interface to SMBIOS under using dmidecode

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This module provides an OO interface to SMBIOS information through the
_dmidecode_ command which is known to work under a number of Linux, BSD and
BeOS variants.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc LICENSE Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5353 |21cr|perl-Parse-EDID-1.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-EDID
%define upstream_version 1.0.7

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Extended display identification data (EDID) parser
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Warn)
BuildArch:     noarch

%description
This module provides some function to parse Extended Display Identification
Data binary data structures.

Extended Display Identification Data (EDID) is a metadata format for
display devices to describe their capabilities to a video source. The
data format is defined by a standard published by the Video Electronics
Standards Association (VESA).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.yml META.json Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5354 |21cr|perl-Parse-ErrorString-Perl-0.270.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-ErrorString-Perl
%define upstream_version 0.27

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Parse error messages from the perl interpreter

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Pod::Find)
BuildRequires:	perl(Pod::POM)
BuildRequires:	perl(Carp) >= 1.360.0


BuildArch:	noarch

%description
Module to parse error messages from the perl interpreter.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc  Changes META.yml
%{_bindir}/check_perldiag
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5355 |21cr|perl-Parse-ExuberantCTags-1.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-ExuberantCTags
%define upstream_version 1.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	7

Summary:    Efficiently parse exuberant ctags files

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires: perl-devel

%description
This Perl module parses _ctags_ files and handles both traditional ctags as
well as extended ctags files such as produced with _Exuberant ctags_. To
the best of my knowledge, it does not handle emacs-style "_etags_" files.

The module is implemented as a wrapper around the _readtags_ library that
normally ships with _Exuberant ctags_. If you do not know what that is, you
are encouraged to have a look at the http://ctags.sourceforge.net/ manpage.
In order to use this module, you do not need _Exuberant ctags_ on your
system. The module ships a copy of _readtags_. Quoting the _readtags_
documentation:

  The functions defined in this interface are intended to provide tag file
  support to a software tool. The tag lookups provided are sufficiently fast
  enough to permit opening a sorted tag file, searching for a matching tag,
  then closing the tag file each time a tag is looked up (search times are
  on the order of hundreths of a second, even for huge tag files). This is
  the recommended use of this library for most tool applications. Adhering
  to this approach permits a user to regenerate a tag file at will without
  the tool needing to detect and resynchronize with changes to the tag file.
  Even for an unsorted 24MB tag file, tag searches take about one second.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5356 |21cr|perl-Parse-Eyapp-1.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-Eyapp
%define upstream_version 1.21

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Bottom up parser generator

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Parse/Parse-Eyapp-%{upstream_version}.tar.gz

BuildRequires: perl(Data::Dumper)
BuildRequires: perl(List::Util)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl-devel
BuildArch:     noarch

%description
Parse::Eyapp (Extended yapp) is a collection of modules that extends Francois
Desarmenien Parse::Yapp 1.05. Eyapp extends yacc/yapp syntax with
functionalities like named attributes, EBNF-like expressions, modifiable
default action (like Parse::RecDescent autoaction), grammar reuse, automatic
abstract syntax tree building, syntax directed data generation, translation
schemes, tree regular expressions, tree transformations, scope analysis
support, directed acyclic graphs and a few more.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_bindir}/eyapp
%{_bindir}/treereg
%{perl_vendorlib}/Parse

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5357 |21cr|perl-ParseLex-2.210.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ParseLex
%define upstream_version 2.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Generator of lexical analyzers 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/P/PV/PVERD/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Parse::Template)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Slurp)
BuildRequires: perl(Parse::Template) >= 3.40.0
BuildRequires: perl(Symbol)
BuildRequires: perl(Test::More) >= 0.960.0
BuildRequires: perl(integer)

BuildArch:	noarch

%description
The Parse::Lex.pm module for perl5 is an object-oriented generator of
lexical analyzers.

This distribution includes Parse::YYLex (writed by Vladimir Alexiev)
a lexer generator that you can use with yacc parsers.

A collection of examples demonstrating various
Parse::Lex/Parse::LevEvent features can be found in the "examples"
directory.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
pushd examples
perl -pi -e "s|/usr/local/bin/perl|%{__perl}|"  *.pl
popd
perl -pi -e "s|#!perl|%{__perl}|" VERSION
chmod -x VERSION
iconv -f iso8859-1 -t utf-8 Changes > Changes.conv && mv -f Changes.conv Changes

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README VERSION examples
%{perl_vendorlib}/Parse
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5358 |21cr|perl-Parse-Method-Signatures-1.3.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name   Parse-Method-Signatures
%define upstream_version 1.003019
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1

Summary:	Turn parse TC data into Moose TC object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Parse/Parse-Method-Signatures-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Traits)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(MooseX::Types::Structured)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Balanced)
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(PPI)
BuildRequires:	perl(aliased)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

Requires:	perl(MooseX::Traits)

%description
Inspired by the Perl6::Signature manpage but streamlined to just support
the subset deemed useful for the TryCatch manpage and the
MooseX::Method::Signatures manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Parse

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5359 |21cr|perl-Parse-MIME-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Parse-MIME
%define upstream_version 1.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Parse mime-types, match against media ranges
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(JSON::XS) >= 3.10.0
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl-devel
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Exporter)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
This module provides basic functions for handling mime-types. It can
handle matching mime-types against a list of media-ranges. See section
14.1 of the HTTP specification [RFC 2616] for a complete explanation:
<http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.1>

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5360 |21cr|perl-Parse-Nessus-ENX-1.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-Nessus-ENX
%define upstream_version 1.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Extract information from Nessus Extend NSR files

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DK/DKYGER/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
Requires:	perl(Exporter)
BuildArch:	noarch

%description
This module is designed to extract information from Extended NSR (ENX)
files. Certain functions have been designed to return certain sets of data,
such as service banners and OS versions. Other functions have been
provided that will return more specific information, such as all IPs
listening on a given port or all IPs associated with a specified plugin
id.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README MANIFEST
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5361 |21cr|perl-Parse-Nessus-NBE-1.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-Nessus-NBE
%define upstream_version 1.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Extract information from Nessus NBE files

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DK/DKYGER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Socket6)
BuildRequires:	perl(Net::Frame)
Requires:	perl(Exporter)
BuildArch:	noarch

%description
This module is designed to extract information from Nessus NBE
files. Functions have been designed to return certain sets of data,
such as service banners and OS versions. Other functions have been
provided that will return more specific information, such as all IPs
listening on a given port or all IPs associated with a specified plugin id.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README MANIFEST
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5362 |21cr|perl-Parse-RecDescent-Consumer-1.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-RecDescent-Consumer
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Parse::RecDescent::Consumer - reveal text matched through n token transitions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
A common need when writing grammars is to know how much text was
consumed at different points in a parse. Usually, this involves a lot
of brain-twisting unwinding of of highly nested list-of-lists (of
lists...). Instead this module allows you to take the low-road
approach. You simply create a Consumer which records the current
text about to be parsed. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Parse/RecDescent/Consumer.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5363 |21cr|perl-Parse-RecDescent-Deparse-1.0.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Parse-RecDescent-Deparse
%define upstream_version 1.00

Summary:	Turn a Parse::RecDescent object back into its grammar

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SI/SIMON/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module adds the deparse method to the Parse::RecDescent
class, which returns a textual description of the grammar.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Parse/RecDescent/Deparse.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5364 |21cr|perl-Parse-RecDescent-FAQ-7.500.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-RecDescent-FAQ
%define upstream_version 7.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Parse::RecDescent::FAQ - the official, authorized FAQ for Parse::RecDescent

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Parse::RecDescent::FAQ - the official, authorized FAQ for
Parse::RecDescent.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc ChangeLog
%{perl_vendorlib}/Parse/RecDescent/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5365 |21cr|perl-Parser-MGC-0.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parser-MGC
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Build simple recursive-descent parsers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/P/PE/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This base class provides a low-level framework for building
recursive-descent parsers that consume a given input string from left to
right, returning a parse structure. It takes its name from the 'm//gc'
regexps used to implement the token parsing behaviour.

It provides a number of token-parsing methods, which each extract a
grammatical token from the string. It also provides wrapping methods that
can be used to build up a possibly-recursive grammar structure, by applying
a structure around other parts of parsing code. Each method, both token and
structural, atomically either consumes a prefix of the string and returns
its result, or fails and consumes nothing. This makes it simple to
implement grammars that require backtracking.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5366 |21cr|perl-Parse-Syslog-1.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Parse-Syslog
%define	upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Parse Unix syslog files

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Unix syslogs are convenient to read for humans but because of small differences
between operating systems and things like 'last message repeated xx times' not
very easy to parse by a script.

Parse::Syslog presents a simple interface to parse syslog files: you create a
parser on a file (with new) and call next to get one line at a time with
Unix-timestamp, host, program, pid and text returned in a hash-reference.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%{perl_vendorlib}/Parse
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5367 |21cr|perl-ParseTemplate-3.80.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ParseTemplate
%define upstream_version 3.08
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 3.08
Release:	5

Summary:	Processor for templates containing Perl expressions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Parse/ParseTemplate-3.08.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Symbol)
BuildArch:	noarch

%description
The 'Parse::Template' class evaluates Perl expressions placed within a
text. This class can be used as a code generator, or a generator of
documents in various document formats (HTML, XML, RTF, etc.).

The principle of template-based text generation is simple. A template
consists of a text which includes expressions to be evaluated.
Interpretation of these expressions generates text fragments which are
substituted in place of the expressions. In the case of 'Parse::Template'
the expressions to be evaluated are Perl expressions placed within two
'%%'.

Evaluation takes place within an environment in which, for example, you can
place data structures which will serve to generate the parts to be
completed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5368 |21cr|perl-PatchReader-0.9.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 PatchReader
%define upstream_version 0.9.6

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Utilities to read and manipulate patches and CVS 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/T/TM/TMANNERM/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%rename perl-patchreader

%description
This perl library allows you to manipulate patches programmatically by chaining
together a variety of objects that read, manipulate, and output patch
information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes README
find . -type f -exec perl -pi -e 'tr/\r//d' {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
pushd %{buildroot}%{perl_vendorlib}
find . -type f -name "*.pm" -exec chmod -x  {} \;
popd

%files
%doc Changes README META.yml
%{perl_vendorlib}/PatchReader
%{perl_vendorlib}/PatchReader.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5369 |21cr|perl-Path-Class-File-Stat-0.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Path-Class-File-Stat
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Cache and compare stat() calls on a Path::Class::File object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/K/KA/KARMAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Path::Class)
BuildArch:	noarch

%description
Path::Class::File::Stat is a simple extension of Path::Class::File.
Path::Class::File::Stat is useful in long-running programs (as under
mod_perl) where you might have a file handle opened and want to check if
the underlying file has changed.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5370 |21cr|perl-Path-Dispatcher-1.80.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Path-Dispatcher
%define upstream_version 1.08

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    All rules must match

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Moo)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(MooX::TypeTiny)
BuildRequires: perl-devel
BuildArch:     noarch

%description
We really like the Jifty::Dispatcher manpage and wanted to use it for the
Prophet manpage's command line.

The basic operation is that of dispatch. Dispatch takes a path and a list
of rules, and it returns a list of matches. From there you can "run" the
rules that matched. These phases are distinct so that, if you need to, you
can inspect which rules were matched without ever running their codeblocks.

You want to use the Path::Dispatcher::Declarative manpage which gives you
some sugar inspired by the Jifty::Dispatcher manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml MYMETA.yml
%{_mandir}/man3/*
%{perl_vendorlib}/Path/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5371 |21cr|perl-Path-Dispatcher-Declarative-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Path-Dispatcher-Declarative
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Sugary dispatcher

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SA/SARTAK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Any::Moose)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Moo)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Path::Dispatcher)
BuildRequires:	perl(Sub::Exporter)
BuildArch:	noarch

%description
the Jifty::Dispatcher manpage rocks!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/Path/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5372 |21cr|perl-Path-FindDev-0.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Path-FindDev
%define upstream_version 0.5.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Find a development path somewhere in an upper hierarchy
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/K/KE/KENTNL/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(Class::Tiny)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Path::IsDev::Object)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Sub::Exporter)

BuildArch:	noarch

%description
This package is mostly a glue layer around "Path::IsDev" with a few
directory walking tricks.

    use Path::FindDev qw( find_dev );

    if ( my $root = find_dev('/some/path/to/something/somewhere')) {
        print "development root = $root";
    } else {
        print "No development root :(";
    }

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5373 |21cr|perl-Path-IsDev-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Path-IsDev
%define upstream_version 1.001003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Determine if a given Path resembles a development source tree
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/App/KENTNL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Tiny) >= 0.10.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(FindBin)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Path::Tiny) >= 0.4.0
BuildRequires: perl(Role::Tiny)
BuildRequires: perl(Role::Tiny::With)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.890.0
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildArch:  noarch

%description
This module is more or less a bunch of heuristics for determining if a
given path is a development tree root of some kind.

This has many useful applications, notably ones that require behaviours
for "installed" modules to be different to those that are still "in
development"

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5374 |21cr|perl-Path-Iterator-Rule-1.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Path-Iterator-Rule
%define upstream_version 1.015

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Iterative, recursive file finder
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::pushd)
BuildRequires: perl(List::Util)
BuildRequires: perl(Number::Compare)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Filename)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Glob)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(warnings)
BuildArch:     noarch

%description
This is an empty subclass of the Path::Iterator::Rule manpage. It saves you
from having to type the full name repeatedly, which is particularly handy
for one-liners:

    $ perl -MPIR -wE 'say for PIR->new->skip_dirs(".")->perl_module->all(@INC)'

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5375 |21cr|perl-Path-ScanINC-1.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Path-ScanINC
%define upstream_version 1.000002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Emulate Perls internal handling of @INC
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Path/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Class::Tiny)
BuildRequires: perl(Data::Dump)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(FindBin)
BuildRequires: perl(List::Util)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch: noarch

%description
Emulate Perls internal handling of @INC.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5376 |21cr|perl-PDF-API2-2.44.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PDF-API2
%define upstream_version 2.044

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	PDF-API2 Perl module

License:	Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/PDF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	 perl-devel
BuildRequires:	 perl(Compress::Zlib)
BuildRequires:	 perl(Font::TTF::Font)
BuildRequires:	 perl(Math::Trig)
BuildRequires:	 perl(Test::Exception)
BuildRequires:	 perl(Test::Memory::Cycle)
BuildArch:	noarch
Requires:	fonts-ttf-dejavu

%description
This module is 'The Next Generation' of Text::PDF::API which initially 
provided a nice API around the Text::PDF::* modules created by Martin Hosken.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find contrib -type f | xargs \
    perl -pi -e 's|^#!/usr/local/bin/perl|#!/usr/bin/perl|' 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_vendorlib}/PDF/API2/Win32.pm
rm -f %{buildroot}%{perl_vendorlib}/PDF/API2/Basic/TTF/Win32.pm
rm -rf %{buildroot}%{perl_vendorlib}/PDF/API2/fonts

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 contrib/* %{buildroot}%{_bindir}

%files
%doc Changes  LICENSE PATENTS README
%{perl_vendorlib}/PDF
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5377 |21cr|perl-PDF-Builder-3.023-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Fully support PNG images with a libpng library
%bcond_without perl_PDF_Builder_enables_png
# Fully support TIFF images with libtiff library
%bcond_without perl_PDF_Builder_enables_tiff

Name:           perl-PDF-Builder
Version:        3.023
Release:        1
Summary:        Creation and modification of PDF files in Perl
Group:          Development/Perl
# docs/buildDoc.pl:             same as PDF-Builder
# INFO/LICENSE:                 LGPLv2+
# lib/PDF/Builder/Basic/PDF/Pages.pm:   MIT or Artistic
# lib/PDF/Builder.pm:           LGPLv2+
# lib/PDF/Builder/Matrix.pm:    LGPLv2+ (same as PDF::API2)
# README:                       LGPLv2+ (v2+ according to the upstream)
License:        LGPLv2+ and (MIT or Artistic)
URL:            https://metacpan.org/release/PDF-Builder
Source0:        https://cpan.metacpan.org/authors/id/P/PM/PMPERRY/PDF-Builder-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# Run-time:
BuildRequires:  perl(Compress::Zlib) >= 1
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(FileHandle)
BuildRequires:  perl(Font::TTF::Font)
%if %{with perl_PDF_Builder_enables_tiff}
BuildRequires:  perl(Graphics::TIFF) >= 16
%endif
%if %{with perl_PDF_Builder_enables_png}
BuildRequires:  perl(Image::PNG::Const)
BuildRequires:  perl(Image::PNG::Libpng) >= 0.57
%endif
BuildRequires:  perl(IO::File)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Math::Trig)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Unicode::UCD)
BuildRequires:  libtiff-progs
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Compress::Zlib) >= 1
# They can be disabled at run-time. There is an imperfect pure-Perl fallback.
%if %{with perl_PDF_Builder_enables_tiff}
Recommends:     perl(Graphics::TIFF) >= 16
%endif
%if %{with perl_PDF_Builder_enables_png}
Recommends:     perl(Image::PNG::Const)
Recommends:     perl(Image::PNG::Libpng) >= 0.57
%endif

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Compress::Zlib|Test::Memory::Cycle)\\)|^perl\\(Win32::TieRegistry\\)$

# Remove disabled features.
# Originally I subpackaged PDF::Builder::Resource::XObject::Image/* modules
# which depend on the optional features. But it broke if the
# dependencies were installed, but the plugins were misssing. Also upstream
# exposes the checks for the dependencies in an API and a documentation. We would
# have to divert the code and the documentation from the upstream. Thus
# I decided to keep the plugins there and weaken the dependencies.
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((Graphics::TIFF\\)|Image::PNG::)

%description
This Perl library enables you to create, import and modify documents in
Portagble Document Format (mostly compliant to PDF 1.4 version).

%files
%license INFO/LICENSE
%doc Changes contrib CONTRIBUTING examples README.md tools
%doc INFO/CONVERSION INFO/DEPRECATED INFO/Changes* INFO/KNOWN_INCOMP
%doc INFO/PATENTS INFO/RoadMap INFO/SUPPORT
%{perl_vendorlib}/*
%{_mandir}/man3/*

#-----------------------------------------------------------------------------
%prep
%autosetup -p1 -n PDF-Builder-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install

# Remove unwanted files <https://github.com/PhilterPaper/Perl-PDF-Builder/issues/169>
rm %{buildroot}%{perl_vendorlib}/PDF/optional_update.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5378 |21cr|perl-PDL-2.63.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	PDL
%define	upstream_version 2.063

%define Werror_cflags %nil

%global __provides_exclude perl\\(Inline\\)
%global __requires_exclude perl\\(PDL.*\\)|perl\\(PGPLOT.*\\)|perl\\(Inline\\)|perl\\(Devel::REPL::Plugin\\)|perl\\(OpenGL::Config\\)|perl\\(Win32::DDE::Client\\)

Summary:	PerlDL, an efficient numerical language for scientific computing
Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Epoch:		1
License:	GPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}/
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{module}-%{upstream_version}.tar.gz
Patch1:		PDL-2.6.0.90-Compile-Slatec-code-as-PIC.patch
BuildRequires:	perl(Astro::FITS::Header)
#BuildRequires:	perl(Alien::HDF4)
#BuildRequires:	perl(Alien::Proj4)
BuildRequires:	perl(Convert::UU)
BuildRequires:	perl(Data::Dumper) >= 2.121.0
BuildRequires:	perl(Devel::CheckLib)
BuildRequires:	perl(ExtUtils::F77)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(File::Spec) >= 0.600.0
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Filter::Util::Call)
BuildRequires:	perl(Inline) >= 0.430.0
BuildRequires:	perl(OpenGL) >= 0.630.0
BuildRequires:	perl(Pod::Parser)
BuildRequires:	perl(Pod::Select)
#BuildRequires:	perl(Pod::Html)
BuildRequires:	perl(Storable) >= 1.30.0
BuildRequires:	perl(Text::Balanced)
BuildRequires:	gcc-gfortran
BuildRequires:	libgd-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)
# if installed, requires f2c-devel,
# but it is a contrib package
BuildConflicts:	f2c

Provides:	perl(PDL::PP::CType)
Provides:	perl(PDL::PP::Dims)
Provides:	perl(PDL::PP::PDLCode)
Provides:	perl(PDL::PP::SymTab)
Provides:	perl(PDL::PP::XS)
Provides:	perl(PDL::Config)
Provides:	perl(PDL::Demos::Screen)
Provides:	perl(PDL::Graphics::OpenGL)
Provides:	perl(PDL::Graphics::OpenGLQ)
Provides:	perl(PDL::Graphics::TriD)
Provides:	perl(PDL::Graphics::TriD::GL)
Provides:	perl(PDL::Graphics::TriD::Image)
Provides:	perl(PDL::Graphics::TriD::Objects)
Provides:	perl(PDL::Lite)
Provides:	perl(PDL::LiteF)
Provides:	perl(Prima::MsgBox)
Provides:	perl(PDL::Graphics::Gnuplot)

%rename		PDL

%description
The perlDL project aims to turn perl into an efficient numerical language for
scientific computing. The PDL module gives standard perl the ability to
COMPACTLY store and SPEEDILY manipulate the large N-dimensional data sets which
are the bread and butter of scientific computing. e.g. C<$a=$b+$c> can add two
2048x2048 images in only a fraction of a second.

The aim is to provide tons of useful functionality for scientific and numeric
analysis.

%files
%doc Changes DEPENDENCIES
%doc README DEVELOPMENT INSTALL TODO META.yml
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorarch}/PDL.pm
%{perl_vendorarch}/PDL
%{perl_vendorarch}/auto/PDL
%{perl_vendorarch}/Inline
%exclude %{perl_vendorarch}/PDL/*.pod
#%%exclude %{perl_vendorarch}/PDL/HtmlDocs

#----------------------------------------------------------------------------

%package doc
Summary:	PerlDL documentation package
Group:		Documentation
Requires:	%{name}

%description doc
The perlDL project aims to turn perl into an efficient numerical language for
scientific computing. The PDL module gives standard perl the ability to
COMPACTLY store and SPEEDILY manipulate the large N-dimensional data sets which
are the bread and butter of scientific computing. e.g. C<$a=$b+$c> can add two
2048x2048 images in only a fraction of a second.

The aim is to provide tons of useful functionality for scientific and numeric
analysis.

This is the documentation package.

%files doc
%doc Changes INTERNATIONALIZATION README TODO
%{perl_vendorarch}/PDL/*.pod
#%%{perl_vendorarch}/PDL/HtmlDocs

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{upstream_version}

%build
echo | %__perl Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix} OPTIMIZE="%{optflags}"

# -Wformat -Werror=format-security is inherited from something, remove it.
# note. it builds just fine on a real system but NOT in the build system. it gives:
# [...]
# GD.xs: In function 'pdl_write_png_readdata':
# GD.xs:241:5: error: format not a string literal and no format arguments [-Werror=format-security]
# GD.xs:256:9: error: format not a string literal and no format arguments [-Werror=format-security]
# [...]

find Makefile | xargs perl -pi -e "s|-Wformat||g"
find Makefile | xargs perl -pi -e "s|-Werror=format-security||g"

make


%install
make pure_install DESTDIR=%{buildroot}

perl -Mblib Doc/scantree.pl %{buildroot}%{perl_vendorarch}
perl -pi -e "s|%{buildroot}/|/|g" %{buildroot}%{perl_vendorarch}/PDL/pdldoc.db
find %{buildroot}%{perl_vendorarch} -type f -name "*.pm" | xargs chmod -x
find %{buildroot} -type f -name '*.bs' -empty -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5379 |21cr|perl-Pegex-0.750.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pegex
%define upstream_version 0.75

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Pegex Regex Atoms
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/I/IN/INGY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::ShareDir::Install)
BuildRequires: perl(YAML::XS)
BuildRequires: perl(YAML::PP)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
Pegex is an Acmeist parser framework. It allows you to easily create
parsers that will work equivalently in lots of programming languages! The
inspiration for Pegex comes from the parsing engine upon which the
postmodern programming language *Perl 6* is based on. Pegex brings this
beauty to the other _just_modern languages that have a normal regular
expression engine available.

Pegex gets it name by combining Parsing Expression Grammars (PEG), with
Regular Expessions (Regex). That's actually what Pegex does.

PEG is the cool new way to elegantly specify recursive descent grammars.
The Perl 6 language is defined in terms of a self modifying PEG language
called *Perl 6 Rules*. Regexes are familiar to programmers of most modern
programming languages. Pegex defines a simple PEG syntax, where all the
terminals are regexes. This means that Pegex can be quite fast and
powerful.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README Changes META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5380 |21cr|perl-Perl6-Doc-0.470.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Doc
%define upstream_version 0.47

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl 6 Documentation Collection

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl6/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::ShareDir::Install)
BuildArch:	noarch

%description
This Perl module distribution contains all the latest Perl 6 documentation
and a utility called 'p6doc' for viewing it.

Below is the list of documents that are currently available; a number in
the column indicates, the document is currently available. An asterisk next
to a number means that the document is an unofficial draft written by a
member of the Perl community but not approved by the Perl 6 Design Team.
The pages after the first section are anyway no Design docs.

Contents
        S01  The Ugly, the Bad, and the Good   (A01)
        S02  Bits and Pieces                   (A02) (E02)
        S03  Operators                         (A03) (E03)
        S04  Syntax                            (A04) (E04)
        S05  Pattern Matching                  (A05) (E05)
        S06  Subroutines                       (A06) (E06)
             Formats                                 (E07)
        S09  Data Structures
        S10  Packages
        S11  Modules
        S12  Objects                           (A12)
        S13  Overloading
        S16* IPC / IO / Signals  
        S17* Concurrency
             Debugging                         (A20*)
        S22* CPAN
             Portable Perl
        S26  Perl Documentation
        S27* Perl Culture
        S28* Special Names
        S29  Functions
    
        F01  FAQ::Captures
        F02  FAQ::FUD
    
        O01  Overview
        O03  Overview::Operator
        O04  Overview::Smartmatch
        O05  Overview::Reduce
        O07  Overview::Variable
        O08  Overview::Data
        O10  Overview::File
        O12  Overview::Functions
        O14  Overview::Control
        O15  Overview::Subroutine
        O17  Overview::Object
        O20  Overview::Rule
    
        T01  Tutorial perlintro
    
        M01  Report on the Perl 6 Announcement
        M02  What is Perl 6 ?
        M03  A Plan for Pugs
        M04  Everyday Perl 6
        M05  Yet Another Perl 6 Operator (Microarticles)
        M06  The Beauty of Perl 6 Parameter Passing

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5381 |21cr|perl-Perl6-Export-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Export
%define upstream_version 0.009

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Implements the Perl 6 is export trait

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Perl6-Export/
Source0:	https://cpan.metacpan.org/authors/id/D/DC/DCONWAY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Filter::Simple)
BuildArch:	noarch

%description
This module prototypes the Perl 6 'exported' and 'exportable' traits
in Perl 5.

Instead of messing around with @EXPORT arrays, you just declare which subs
are to be exported (or are exportable on request) as part of those subs.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
yes y | perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%defattr(-, root, root, 0755)
%doc Changes README
%doc %{_mandir}/man3/*
%dir %{perl_vendorlib}/Perl6/
%{perl_vendorlib}/Perl6/Export.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5382 |21cr|perl-Perl6-Export-Attrs-0.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Export-Attrs
%define upstream_version 0.000006

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
License:    GPL or Artistic
Group:      Development/Perl
Summary:    The Perl 6 'is export(...)' trait as a Perl 5 attribute

Source:     http://www.cpan.org/modules/by-module/Perl6/%{upstream_name}-%{upstream_version}.tar.gz
Url:        http://search.cpan.org/dist/%{upstream_name}
BuildRequires: perl-devel
BuildRequires: perl(Attribute::Handlers)
BuildRequires: perl(PadWalker)

BuildArch: noarch

%description
Implements a Perl 5 native version of what the Perl 6 symbol export
mechanism will look like.

It's very straightforward:

* *

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5383 |21cr|perl-Perl6-Form-0.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Form
%define upstream_version 0.090

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Implements the Perl 6 'form' built-in

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl6/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Perl6::Export)
BuildRequires:	perl(Scalar::Util)
BuildArch:	noarch

%description
Formats are Perl 5's mechanism for creating text templates with fixed-width
fields. Those fields are then filled in using values from prespecified
package variables.

Unlike Perl 5, Perl 6 doesn't have a 'format' keyword. Or the associated
built-in formatting mechanism. Instead it has a Form.pm module. And a
'form' function.

Like a Perl 5 'format' statement, the 'form' function takes a series of
format (or "picture") strings, each of which is immediately followed by a
suitable set of replacement values. It interpolates those values into the
placeholders specified within each picture string, and returns the result:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5384 |21cr|perl-Perl6-Perldoc-0.0.13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Perldoc
%define upstream_version 0.000013

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Add a to_xhtml() method to Perl6::Perldoc::Parser

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl6/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Filter::Simple)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(version)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module preprocesses your code from the point at which the module is
first used, stripping out any Perl 6 documentation (as specified in
Synopsis 26).

This means that, so long as your program starts with:

    use Perl6::Perldoc;

%prep
%setup -qn %{upstream_name}-%{upstream_version}
iconv -f iso8859-1 -t utf-8 Changes > Changes.conv && mv -f Changes.conv Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5385 |21cr|perl-Perl6-Perldoc-To-Ansi-0.110.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Perldoc-To-Ansi
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	ANSI-colored text renderer for Perl6::Perldoc

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl6/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Perl6::Perldoc)
BuildArch:	noarch

%description
This module is almost identical to the Text renderer, except that many
constructs are highlighted with ANSI terminal codes. See the
Perl6::Perldoc::To::Text manpage for more information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5386 |21cr|perl-Perl6-Refactor-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Refactor
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	The great new Perl6::Refactor!

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl6/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
The great new Perl6::Refactor!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5387 |21cr|perl-Perl6-Signature-0.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Signature
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Parse, query, and pretty-print Perl 6 signatures

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl6/Perl6-Signature-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Balanced)
BuildArch:	noarch

%description
_Alpha release - everything here is subject to change_

*Perl6::Signature* models routine signatures as specified in Synopsis 6 of
the Perl 6 documentation. These signatures offer a rich language for
expressing type constraints, default values, and the optionality (among
other things) of routine parameters.

Included is a parser for the Signature language, accessors and convenience
methods for querying Signature objects, and a pretty-printer for producing
their canonical textual representation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Perl6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5388 |21cr|perl-Perl6-Slurp-0.51.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl6-Slurp
%define upstream_version 0.051005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Implements the Perl 6 'slurp' built-in

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl6/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Perl6::Export)

BuildArch:	noarch

%description
This package implements the Perl 6 'slurp' built-in.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
yes y | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%doc %{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5389 |21cr|perl-Perlanet-2.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perlanet
%define upstream_version 2.0.5
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Render the feed via a Template Toolkit

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/D/DA/DAVECROSS/Perlanet-v%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Duration)
BuildRequires:	perl(Encode)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(HTML::Scrubber)
BuildRequires:	perl(HTML::Tidy)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Traits)
BuildRequires:	perl(MooseX::ConfigFromFile)
BuildRequires:	perl(Template)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI::Fetch)
BuildRequires:	perl(XML::Feed)
BuildRequires:	perl(XML::OPML::SimpleGen)
BuildRequires:	perl(YAML)
BuildArch:	noarch

%description
Perlanet is a program for creating programs that aggregate web feeds (both
RSS and Atom). Web pages like this are often called "Planets" after the
Python software which originally popularised them. Perlanet is a planet
builder written in Perl - hence "Perlanet".

You are probably interested in the Perlanet::Simple manpage to get started
straight out of the box, batteries included style.

Perlanet itself is the driving force behind everything, however. Perlanet
reads a series of web feeds (filtering only those that are valid), sorts
and selects entries from these web feeds, and then creates a new aggregate
feed and renders this aggregate feed. Perlanet allows the user to customize
all of these steps through subclassing and roles.

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_bindir}/perlanet
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5390 |21cr|perl-Perl-AtEndOfScope-0.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-AtEndOfScope
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl::AtEndOfScope - run some code when a variable goes out of scope

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
It's often necessary to do some cleanup at the end of a scope. This
module creates a Perl object and executes arbitrary code when the object
goes out of scope.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Perl/AtEndOfScope.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5391 |21cr|perl-Perl-Critic-1.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Perl-Critic
%define	upstream_version 1.140

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Critique Perl source for style and standards
License:	GPLv1+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(B::Keywords)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Config::Tiny)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Perl::Tidy)
BuildRequires:	perl(Pod::Spell)
BuildRequires:	perl(PPI) >= 1.118.0
BuildRequires:	perl(PPIx::Utilities::Statement)
BuildRequires:	perl(PPIx::Regexp)
BuildRequires:	perl(PPIx::QuoteLike)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Set::Scalar)
BuildRequires:	perl(String::Format)
BuildRequires:	perl(Task::Weaken)
# For tests
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(version) >= 1:0.880.0
BuildRequires:	perl-devel
BuildArch:	noarch

Requires:	perl(Module::Pluggable)

%description
Perl::Critic is an extensible framework for creating and applying coding
standards to Perl source code. Essentially, it is a static source code
analysis engine. Is is distributed with a number of Perl::Critic::Policy
modules that attempt to enforce various coding guidelines. Most Policies are
based on Damian Conway's book Perl Best Practices. You can choose and
customize those Polices through the Perl::Critic interface. You can also
create new Policy modules that suit your own tastes.
For a convenient command-line interface to Perl::Critic, see the
documentation. If you want to integrate Perl::Critic with your build process,
Test::Perl::Critic provides a nice interface that is suitable for test
scripts.

%files
%doc Changes README
%{perl_vendorlib}/Perl
%{perl_vendorlib}/Test
%{_bindir}/perlcritic
%{_mandir}/*/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version} 
%apply_patches


%build
perl Build.PL installdirs=vendor 
./Build


%check
./Build test


%install
./Build install destdir=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5392 |21cr|perl-Perl-Critic-Bangs-1.100.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Bangs
%define upstream_version 1.10
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.10
Release:	5

Summary:	Adding modifiers to a regular expression

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/Perl-Critic-Bangs-1.10.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Perl::Critic)

BuildArch:	noarch

%description
This is a test diagnostic.

Adding modifiers to a regular expression made up entirely of
a variable created with qr() is usually not doing what you expect.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5393 |21cr|perl-Perl-Critic-Compatibility-1.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Compatibility
%define upstream_version 1.001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Don't allow three-argument open unless version of perl supports it

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(version)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
The included policies are:

* the Perl::Critic::Policy::Compatibility::ProhibitColonsInBarewordHashKeys
  manpage

  Perls after 5.8 don't support having colons in unquoted hash keys.
  [Severity: 5]

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5394 |21cr|perl-Perl-Critic-Deprecated-1.119.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Deprecated
%define upstream_version 1.119

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Write C<$my_variable = 42> instead of C<$MyVariable = 42>

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/Perl-Critic-Deprecated-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(English)
BuildRequires:	perl(Perl::Critic::Policy)
BuildRequires:	perl(Perl::Critic::TestUtils)
BuildRequires:	perl(Perl::Critic::Utils)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
The included policies are:

* Perl::Critic::Policy::NamingConventions::ProhibitMixedCaseSubs

  Write '$my_variable = 42' instead of '$MyVariable = 42'. [Severity 1]

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5395 |21cr|perl-Perl-Critic-Dynamic-0.50.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global __requires_exclude perl\\(Devel::Symdump\\)
%global __requires_exclude perl\\(Perl::Critic::(Policy|Utils)\\)
%global __requires_exclude perl\\(Storable\\)

%define upstream_name   Perl-Critic-Dynamic
%define upstream_version 0.05

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        3
Summary:        Non-static policies for Perl::Critic
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Perl-Critic-Dynamic/
Source0:        http://www.cpan.org/authors/id/T/TH/THALJEF/%{upstream_name}-%{upstream_version}.tar.gz

Patch0:         Perl-Critic-Dynamic-0.05-test_AUTOLOAD_on_private_module.patch

BuildRequires:  perl-devel
BuildRequires:  perl(Module::Build) >= 0.36
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Devel::Symdump) >= 2.07
BuildRequires:  perl(English)
BuildRequires:  perl(Perl::Critic::Policy) >= 1.108
BuildRequires:  perl(Perl::Critic::Utils) >= 1.108
BuildRequires:  perl(Readonly)
BuildRequires:  perl(Storable) >= 2.16
BuildRequires:  perl(CGI)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Perl::Critic::Policy)
BuildRequires:  perl(Path::Tiny)
BuildRequires:  perl(File::HomeDir)

BuildArch:      noarch


%description
Perl::Critic is primarily used as a static source code analyzer, which means
that it never compiles or executes any of the code that it examines. But
since Perl is a dynamic language, there are certain types of problems that
cannot be discovered until the code is actually compiled.

This distribution includes Perl::Critic::DynamicPolicy, which can be used as
a base class for Policies that wish to compile the code they analyze. 

%prep
%setup -qn %{upstream_name}-%{upstream_version}
%patch0 -p0

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} 


%check
./Build test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5396 |21cr|perl-Perl-Critic-Itch-0.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Itch
%define upstream_version 0.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    A collection of Perl::Critic Policies to solve some Itches
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Perl::Critic)
BuildRequires: perl(Perl::Critic::TestUtils)
BuildRequires: perl(Perl::Critic::Utils)
BuildRequires: perl(Perl::Critic::Violation)
BuildRequires: perl(Test::More)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(File::HomeDir)


BuildArch: noarch

%description
This Policy forces (single) quotes on all hash keys barewords.

When specifying constant string hash keys, you should use (single) quotes.
E.g., $my_hash{'some_key'}

This is the appropriate choice because it results in consistent formatting
and if you forget to use quotes sometimes, you have to remember to add them
when your key contains internal hyphens, spaces, or other special
characters.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5397 |21cr|perl-Perl-Critic-Lax-0.11.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Lax
%define upstream_version 0.011

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Policies that let you slide on common exceptions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/Perl-Critic-Lax-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) 
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(Perl::Critic::Policy) 
BuildRequires:	perl(Perl::Critic::TestUtils)
BuildRequires:	perl(Perl::Critic::Utils)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Path::Tiny)

BuildArch:	noarch

%description
The Perl-Critic-Lax distribution includes versions of core Perl::Critic
modules with built-in exceptions. If you really like a Perl::Critic policy,
but find that you often violate it in a specific way that seems pretty darn
reasonable, maybe there's a Lax policy. If there isn't, send one in!

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5398 |21cr|perl-Perl-Critic-Moose-1.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Moose
%define upstream_version	1.03

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        3
Summary:        Policies for Perl::Critic concerned with using Moose
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Perl-Critic-Moose/
Source0:        http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(base)
BuildRequires:  perl(Perl::Critic::Policy)
BuildRequires:  perl(Perl::Critic::Utils)
BuildRequires:  perl(Perl::Critic::Utils::PPI)
BuildRequires:  perl(Readonly)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Test::Perl::Critic::Policy)
BuildRequires:  perl(Path::Tiny)
BuildRequires:  perl(File::HomeDir)

BuildArch:      noarch

%description
Some Perl::Critic policies that will help you keep your code in good shape
with regards to Moose.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std



%files
%doc LICENSE META.json META.yml Changes README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5399 |21cr|perl-Perl-Critic-More-1.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-More
%define upstream_version 1.003

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Stop mixing long strings with code

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/Perl-Critic-More-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This is a collection of the Perl::Critic manpage policies that are not
included in the Perl::Critic core for a variety of reasons:

* * Experimental

  Some policies need some time to work out their kinks, test usability, or
  gauge community interest. A subset of these will end up in the core
  Perl::Critic someday.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5400 |21cr|perl-Perl-Critic-Nits-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Nits
%define upstream_version v1.0.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Policies of nits I like to pick

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The included policy is:

* the
  Perl::Critic::Policy::ValuesAndExpressions::ProhibitAccessOfPrivateData
  manpage

  Prohibits direct access to a hash-based object's hash. [Severity: 5]

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5401 |21cr|perl-Perl-Critic-PetPeeves-JTRAMMELL-0.40.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-PetPeeves-JTRAMMELL
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Prohibit superfluous initializations


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Perl::Critic::Utils)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
Module 'Perl::Critic::PetPeeves::JTRAMMELL' provides policies that I want
that haven't already been implemented elsewhere. So far this is:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5402 |21cr|perl-Perl-Critic-Pulp-99.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Pulp
%define upstream_version 99

%global __provides_exclude perl\\(Perl::MinimumVersion\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Don't use Foo:: style barewords

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/Perl-Critic-Pulp-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(List::Util)
BuildRequires:	perl-Module-Pluggable
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Pod::MinimumVersion)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Perl::Critic::Policy)
BuildRequires:	perl(Perl::Critic::Utils)
BuildRequires:	perl(Perl::Critic::Utils::PPI)
BuildRequires:	perl(Perl::Critic::Violation)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(version)

BuildArch:	noarch

%description
This is a collection of add-on policies for 'Perl::Critic', summarized
below. They're under a "pulp" theme plus other themes according to their
purpose (see the Perl::Critic/POLICY THEMES manpage).

Roughly half are code related and half cosmetic. You can always enable or
disable the ones you do or don't want. It's normal to pick and choose
things reported. There's a lot of perlcritic policies both built-in and
add-on and they range from helpful things catching problems through to the
bizarre or restrictive, and in some cases mutually contradictory! Many are
only intended as building blocks for enforcing a house style. If you try to
pass everything then you'll give away big parts of the language, so if
you're not turning off or customizing about half then you're either not
trying or you're much too easily lead!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
rm -f *.list
#%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5403 |21cr|perl-Perl-Critic-Storable-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Storable
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl::Critic policy for using Storable

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
An additional Perl::Critic policy for using the Storable module:

* * the Perl::Critic::Policy::Storable::ProhibitStoreOrFreeze manpage

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5404 |21cr|perl-Perl-Critic-StricterSubs-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-StricterSubs
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl::Critic plugin for stricter subroutine checks

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(File::PathList)
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Perl::Critic::TestUtils)
BuildRequires:	perl(Perl::Critic::Utils)
BuildRequires:	perl(Perl::Critic::Violation)
BuildRequires:	perl(File::PathList)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
As a dynamic language, Perl doesn't require you to define subroutines until
run-time. Although this is a powerful feature, it can also be a major
source of bugs. For example, you might mistype the name of a subroutine, or
call a subroutine from another module without including that module or
importing that subroutine. And unless you have very good test coverage, you
might not know about these bugs until you have already launched your code.

The the Perl::Critic::Policy manpage modules in this distribution are aimed
at reducing errors caused by invoking subroutines that are not defined.
Each Policy can be used separately. But when applied together, they enforce
a specific and deliberate coding style that minimizes the chance of writing
code that makes calls to undefined subroutines.

This coding style will not appeal to everyone. Some folks will surely find
this coding style to be too verbose or too restrictive. In particular,
importing via the Exporter manpage tags and pattern matching is purposely
not supported. But hopefully, these Policies will encourage you to
consciously consider the inherent trade-offs of your current coding style.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5405 |21cr|perl-Perl-Critic-Swift-1.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Swift
%define upstream_version v1.0.3

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Additional policies for Perl::Critic

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(English)
BuildRequires: perl(File::Spec)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Perl::Critic::Policy)
BuildRequires: perl(Perl::Critic::TestUtils)
BuildRequires: perl(Perl::Critic::Utils)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
The included policies are:

* the Perl::Critic::Policy::CodeLayout::RequireUseUTF8 manpage

  Require that code includes a 'use utf8;' statement. [Severity: 3]

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5406 |21cr|perl-Perl-Critic-Tics-0.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Critic-Tics
%define upstream_version 0.009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Extra policies for Perl::Critic
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel 
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Perl::Critic::Policy)
BuildRequires: perl(Perl::Critic::TestUtils)
BuildRequires: perl(Perl::Critic::Utils)
BuildRequires: perl(Perl::Critic::Violation)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Path::Tiny)
BuildRequires:	perl(File::HomeDir)

BuildArch: noarch

%description
The Perl-Critic-Tics distribution includes extra policies for Perl::Critic
to address a fairly random assortment of things that make me (rjbs) wince.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5407 |21cr|perl-PerlIO-eol-0.170.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PerlIO-eol
%define upstream_version 0.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	PerlIO layer for normalizing line endings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
This perl module enable you to normalize line endings
This layer normalizes any of CR, LF, CRLF and Native into the designated line 
ending. 
It works for both input and output handles.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make
%check 
make test

%install
%makeinstall_std

%clean 

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/PerlIO
%{perl_vendorarch}/auto/PerlIO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5408 |21cr|perl-PerlIO-gzip-0.200.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PerlIO-gzip
%define upstream_version 0.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:	Perl extension to provide a PerlIO layer to gzip/gunzip
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/N/NW/NWCLARK/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		%{upstream_name}-0.14-no_strict_warnings.patch

BuildRequires:	perl-devel
BuildRequires:  zlib-devel

%description
PerlIO::gzip provides a PerlIO layer that manipulates files in the format used
by the gzip program. Compression and Decompression are implemented, but not
together. If you attempt to open a file for reading and writing the open will
fail.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1 -b .fpons

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/PerlIO
%{perl_vendorarch}/auto/PerlIO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5409 |21cr|perl-PerlIO-Layers-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  PerlIO-Layers
%define upstream_version 0.012

Name:           perl-PerlIO-Layers
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Querying your file handle capabilities
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/PerlIO-Layers
Source0:        https://cpan.metacpan.org/authors/id/L/LE/LEONT/PerlIO-Layers-%{upstream_version}.tar.gz
BuildRequires:  findutils
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::CBuilder)
BuildRequires:  perl(Module::Build) >= 0.28
# Run-time
BuildRequires:  perl(List::Util)
BuildRequires:  perl(PerlIO)
# Tests
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Test::More) >= 0.82
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Perl file handles are implemented as a stack of layers, with the bottom-most
usually doing the actual IO and the higher ones doing buffering,
encoding/decoding or transformations. PerlIO::Layers allows you to query the
file handle properties concerning these layers.

%prep
%setup -q -n PerlIO-Layers-%{upstream_version}

%build
perl Build.PL installdirs=vendor optimize="%{optflags}"
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%_fixperms %{buildroot}/*

%check
./Build test

%files
%license LICENSE
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/PerlIO*
%{_mandir}/man3/*

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Fri May 21 2021 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-5
- Perl 5.34 rebuild

* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.012-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Jun 23 2020 Jitka Plesnikova <jplesnik@redhat.com> - 0.012-2
- Perl 5.32 rebuild

* Tue Feb 18 2020 Petr Pisar <ppisar@redhat.com> - 0.012-1
- 0.012 bump

* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-20
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Fri May 31 2019 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-18
- Perl 5.30 rebuild

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-17
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-16
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Thu Jun 28 2018 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-15
- Perl 5.28 rebuild

* Fri Mar 02 2018 Petr Pisar <ppisar@redhat.com> - 0.011-14
- Adapt to removing GCC from a build root (bug #1547165)

* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Sun Jun 04 2017 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-10
- Perl 5.26 rebuild

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sun May 15 2016 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-8
- Perl 5.24 rebuild

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.011-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.011-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Fri Jun 05 2015 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-5
- Perl 5.22 rebuild

* Wed Aug 27 2014 Jitka Plesnikova <jplesnik@redhat.com> - 0.011-4
- Perl 5.20 rebuild

* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.011-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.011-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Tue Mar 11 2014 Petr Pisar <ppisar@redhat.com> - 0.011-1
- 0.011 bump

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.010-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri Jul 26 2013 Petr Pisar <ppisar@redhat.com> - 0.010-5
- Perl 5.18 rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.010-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.010-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Wed Jun 20 2012 Petr Pisar <ppisar@redhat.com> - 0.010-2
- Perl 5.16 rebuild

* Tue Jun 19 2012 Petr Pisar <ppisar@redhat.com> 0.010-1
- Specfile autogenerated by cpanspec 1.78.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5410 |21cr|perl-PerlIO-via-Bzip2-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 PerlIO-via-Bzip2
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	PerlIO layer for Bzip2 (de)compression

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	http://search.cpan.org/CPAN/authors/id/F/FI/FITZNER/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	bzip2-devel
BuildRequires:	perl(Compress::Bzip2)
BuildArch:	noarch

%description
This module implements a PerlIO layer which will let you handle bzip2
compressed files transparently.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files 
%doc README
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5411 |21cr|perl-PerlIO-via-dynamic-0.140.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 PerlIO-via-dynamic
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Perl module that helps creating dynamic PerlIO layers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/C/CL/CLKAO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Internals)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
PerlIO::via::dynamic is used for creating dynamic PerlIO layers.
It is useful when the behavior or the layer depends on variables.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README CHANGES
%{perl_vendorlib}/*
%{_mandir}/man3/* 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5412 |21cr|perl-PerlIO-via-symlink-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 PerlIO-via-symlink
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl module that helps creating dynamic PerlIO layers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/C/CL/CLKAO/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Install)
BuildRequires:	perl(Test)

BuildArch:	noarch

%description
PerlIO::via::dynamic is used for creating dynamic PerlIO layers.
It is useful when the behavior of the layer depends on variables.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm -rf inc

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc README CHANGES
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5413 |21cr|perl-PerlIO-via-Timeout-0.320.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PerlIO-via-Timeout
%define upstream_version 0.32

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    A PerlIO layer that adds read & write timeout to a handle
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/PerlIO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(PerlIO::via)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::TCP)
BuildRequires: perl(Time::Out)
BuildArch: noarch

%description
This package implements a PerlIO layer, that adds read / write timeout.
This can be useful to avoid blocking while accessing a handle (file,
socket, ...), and fail after some time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5414 |21cr|perl-Perl-Metrics-Simple-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Metrics-Simple
%define upstream_version 1.0.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Methods analyzing a single file

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/M/MA/MATISSE/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Readonly::XS)
BuildRequires:	perl(Statistics::Basic::Mean)
BuildRequires:	perl(Statistics::Basic::Median)
BuildRequires:	perl(Statistics::Basic::StdDev)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(JSON::PP)



BuildArch:	noarch

%description
*Perl::Metrics::Simple* provides just enough methods to run static analysis
of one or many Perl files and obtain a few metrics: packages, subroutines,
lines of code, and an approximation of cyclomatic (mccabe) complexity for
the subroutines and the "main" portion of the code.

*Perl::Metrics::Simple* is far simpler than the Perl::Metrics manpage.

Installs a script called *countperl*.

%prep
%setup -qn %{upstream_name}-v%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README EXAMPLES META.json Todo
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5415 |21cr|perl-Perl-MinimumVersion-1.400.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-MinimumVersion
%define upstream_version 1.40

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Find a minimum required version of perl for Perl code


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::Find::Rule::Perl)
BuildRequires:	perl(PPI)
BuildRequires:	perl(PPIx::Utils)
BuildRequires:	perl(Perl::Critic::Utils)
BuildRequires:	perl(Test::Script)
BuildRequires:	perl(version) >= 0.76
BuildRequires:	perl-devel

BuildArch:	noarch

%description
'Perl::MinimumVersion' takes Perl source code and calculates the minimum
version of perl required to be able to run it. Because it is based on the
PPI manpage, it can do this without having to actually load the code.

Currently it tests both the syntax of your code, and the use of explicit
version dependencies such as 'require 5.005'.

Future plans are to also add support for tracing module dependencies.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes
%{_mandir}/man?/*
%{perl_vendorlib}/*
%{_bindir}/perlver

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5416 |21cr|perl-Perl-OSType-1.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-OSType
%define upstream_version 1.008

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Map Perl operating system names to generic types

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Test::More) >= 1.1.9
### TODO: rebuild constant with right Provides ###
BuildRequires:	perl-constant >= 1.330.0
BuildRequires:	perl(File::Spec) >= 3.470.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.5

BuildArch:	noarch

%description
Modules that provide OS-specific behaviors often need to know if the
current operating system matches a more generic type of operating systems.
For example, 'linux' is a type of 'Unix' operating system and so is
'freebsd'.

This module provides a mapping between an operating system name as given by
'$^O' and a more generic type. The initial version is based on the OS type
mappings provided in the Module::Build manpage and the ExtUtils::CBuilder
manpage. (Thus, Microsoft operating systems are given the type 'Windows'
rather than 'Win32'.)

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5417 |21cr|perl-Perl-PrereqScanner-1.24.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-PrereqScanner
%define upstream_version 1.024

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Scan for modules loaded with superclass.pm
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta::Requirements) >= 2.124
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(FindBin)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Getopt::Long::Descriptive)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Path)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(PPI)
BuildRequires: perl(PPI::Document)
BuildRequires: perl(Params::Util)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(String::RewritePrefix)
BuildRequires: perl(Test::More)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(base)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
The scanner will extract loosely your distribution prerequisites from your
files.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5418 |21cr|perl-Perl-PrereqScanner-NotQuiteLite-0.991.600-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-PrereqScanner-NotQuiteLite
%define upstream_version 0.9916

Name:		perl-Perl-PrereqScanner-NotQuiteLite
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	A tool to scan your Perl code for its prerequisites
Group:		Development/Perl
License:	GPL+ or Artistic
URL:		https://metacpan.org/release/Perl-PrereqScanner-NotQuiteLite
Source0:	https://cpan.metacpan.org/modules/by-module/Perl/Perl-PrereqScanner-NotQuiteLite-%{upstream_version}.tar.gz
BuildArch:	noarch
# Module Build
BuildRequires:	coreutils
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:	perl(ExtUtils::MakeMaker::CPANfile)
# Module Runtime
BuildRequires:	perl(Carp)
BuildRequires:	perl(constant)
BuildRequires:	perl(CPAN::Meta::Prereqs)
BuildRequires:	perl(CPAN::Meta::Requirements)
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(Exporter) >= 5.57
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Glob)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Module::CoreList)
BuildRequires:	perl(Module::CPANfile)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(parent)
BuildRequires:	perl(Regexp::Trie)
BuildRequires:	perl(strict)
BuildRequires:	perl(URI::cpan)
BuildRequires:	perl(warnings)
# Script Runtime
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(lib)
BuildRequires:	perl(Pod::Usage)
# Test Suite
BuildRequires:	perl(Parse::Distname)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(if)
BuildRequires:	perl(Test::More) >= 0.88
BuildRequires:	perl(Test::UseAllModules)
# Runtime
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:	perl(Data::Dump)
Requires:	perl(JSON::PP)
Requires:	perl(Module::CoreList)
Requires:	perl(Module::Find)
Requires:	perl(URI::cpan)
Suggests:	perl(CPAN::Common::Index)

%description
Perl::PrereqScanner::NotQuiteLite is yet another prerequisites scanner. It
passes almost all the scanning tests for Perl::PrereqScanner and
Module::ExtractUse (i.e. except for a few dubious ones), and runs slightly
faster than PPI-based Perl::PrereqScanner. However, it doesn't run as fast as
Perl::PrereqScanner::Lite (which uses an XS lexer).

Perl::PrereqScanner::NotQuiteLite also recognizes eval. Prerequisites in eval
are not considered as requirements, but you can collect them as suggestions.

Conditional requirements or requirements loaded in a block are treated as
recommends. No-ed modules are stored separately (since 0.94). You may or may
not need to merge them into requires.

%prep
%setup -q -n Perl-PrereqScanner-NotQuiteLite-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PERLLOCAL=1 NO_PACKLIST=1
%make_build

%install
%make_install
%{_fixperms} -c %{buildroot}

%check
make test

%files
%license LICENSE
%doc Changes README
%{_bindir}/scan-perl-prereqs-nqlite
%{perl_vendorlib}/Perl/
%{_mandir}/man1/scan-perl-prereqs-nqlite.1*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::App.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Context.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Aliased.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::AnyMoose.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Autouse.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Catalyst.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::ClassAccessor.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::ClassAutouse.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::ClassLoad.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Core.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Inline.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::KeywordDeclare.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Later.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Mixin.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::ModuleRuntime.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::MojoBase.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Moose.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::MooseXDeclare.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::ObjectPad.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Only.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::POE.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::PackageVariant.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Plack.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Prefork.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Superclass.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Syntax.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::SyntaxCollector.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::TestClassMost.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::TestMore.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::TestRequires.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::UniversalVersion.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Parser::Unless.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Tokens.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Util.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Util::CPANfile.3*
%{_mandir}/man3/Perl::PrereqScanner::NotQuiteLite::Util::Prereqs.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5419 |21cr|perl-Perl-Tidy-Sweetened-1.180.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Tidy-Sweetened
%define upstream_version 1.18

Name:           perl-Perl-Tidy-Sweetened
Version:        %perl_convert_version %{upstream_version}
Release:        3
Summary:        Tweaks to Perl::Tidy to support some syntactic sugar
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Perl-Tidy-Sweetened
Source0:        https://cpan.metacpan.org/authors/id/M/MG/MGRIMES/Perl-Tidy-Sweetened-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(Module::Build::Tiny) >= 0.034
# Run-time
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Perl::Tidy)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Tests
BuildRequires:  perl(Exporter)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Most)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
There are a number of modules on CPAN that allow users to write their
classes with a more "modern" syntax. These tools eliminate the need to
shift off $self, can support type checking and offer other improvements.
Unfortunately, they can break the support tools that the Perl community has
come to rely on. This module attempts to work around those issues.

%prep
%setup -q -n Perl-Tidy-Sweetened-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%license LICENSE
%doc Changes README TODO
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5420 |21cr|perl-Perl-Version-1.13.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Perl-Version
%define upstream_version 1.013

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Parse and manipulate Perl version strings
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Perl/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(File::Slurp::Tiny)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod::Coverage) 
BuildRequires: perl(Module::Manifest::Skip) >= 0.230.0
BuildRequires: perl(ExtUtils::Manifest) >= 1.700.0

BuildArch: noarch

%description
Perl::Version provides a simple interface for parsing, manipulating and
formatting Perl version strings.

Unlike version.pm (which concentrates on parsing and comparing version
strings) Perl::Version is designed for cases where you'd like to parse a
version, modify it and get back the modified version formatted like the
original.

For example:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_bindir}/perl-reversion
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5421 |21cr|perl-Petal-2.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Petal
%define upstream_version 2.26

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Documents Petal's deprecated syntax
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/N/NI/NINE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(MKDoc::XML)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(CGI)
BuildRequires:	perl(Lingua::31337)
BuildRequires:	perl(Locale::Maketext::Gettext)

BuildArch:	noarch


%description
This document contains some examples of Petal template usage. Most of these
examples deal with using Petal to generate HTML files from HTML templates.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/Petal.pm
%{perl_vendorlib}/Petal

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5422 |21cr|perl-Petal-Utils-0.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Petal-Utils
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Useful template modifiers for Petal

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/W/WM/WMCKEE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Date::Format)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Petal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI::Escape)

BuildArch:	noarch

%description
The Petal::Utils package contains commonly used the Petal manpage modifiers
(or plugins), and bundles them with an easy-to-use installation interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Petal

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5423 |21cr|perl-PGP-GPG-MessageProcessor-0.4.5-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	PGP-GPG-MessageProcessor

Name:		perl-%{module}
Summary:	Perl module that supplies object methods for interacting with GnuPG

Version:	0.4.5
Release:	19
License:	GPL
Group:		Development/Perl
URL:		http://www.cpan.org/
Source:		%{module}-%{version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides an interface to the encryption/decryption/signing/
verifying methods of GNU Privacy Gaurd. It does not provide keyring
manipulation.

%prep 
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc COPYING  MANIFEST NEWS  README  TODO
%{perl_vendorlib}/PGP/GPG/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5424 |21cr|perl-PHP-Include-0.360.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PHP-Include
%define upstream_version 0.36

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Include PHP files in Perl
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/PHP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Filter::Simple)
BuildRequires: perl(Parse::RecDescent)
BuildArch: noarch

%description
PHP::Include builds on the shoulders of Filter::Simple and
Parse::RecDescent to provide a Perl utility for including very simple PHP
Files from a Perl program.

When working with Perl and PHP it is often convenient to be able to share
configuration data between programs written in both languages. One solution
to this would be to use a language independent configuration file (did I
hear someone say XML?). Another solution is to use Perl's flexibility to
read PHP and rewrite it as Perl. PHP::Include does the latter with the help
of Filter::Simple and Parse::RecDescent to rewrite very simple PHP as Perl.

Filter::Simple is used to enable macros (at the moment only one) which
cause PHP to be interpolated into your Perl source code, which is then
parsed using a Parse::RecDescent grammar to generate the appropriate Perl.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5425 |21cr|perl-PHP-Serialization-0.340.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PHP-Serialization
%define upstream_version 0.34

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Simple flexible means of converting the output of PHP's serialize()

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/PHP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Provides a simple, quick means of serializing perl memory structures
(including object data!) into a format that PHP can deserialize() and
access, and vice versa.

NOTE: Converts PHP arrays into Perl Arrays when the PHP array used
exclusively numeric indexes, and into Perl Hashes then the PHP array did
not.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5426 |21cr|perl-Pithub-0.10.390-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pithub
%define upstream_version 0.01039

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Github v3 Pull Request Comments API

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Array::Iterator)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(CHI)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(Cache::LRU)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Slurp)
BuildRequires: perl(HTTP::Message)
BuildRequires: perl(JSON)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Moo)
BuildRequires: perl(Test::Most)
BuildRequires: perl-devel
BuildRequires: perl(strictures)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Cache::LRU)
BuildRequires: perl(Import::Into)
BuildRequires: perl(Test::Needs)

BuildArch:  noarch

%description
the Pithub manpage provides a set of modules to access the
http://developer.github.com/v3/ in an object oriented way. There is also
the Net::GitHub manpage which does the same for all the versions (v1, v2,
v3) of the Github API. the Pithub manpage supports all API calls so far,
but only for v3.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README* examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5427 |21cr|perl-Plack-1.4.800-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack
%define upstream_version 1.0048

# libapreq that provides perl(Apache::Request) is deprecated , 
# and libapreq2 don't provide anymore Apache::Request but Apache2::Request
# see Requires.Symbianflo
%global __requires_exclude perl\\(Apache::Request\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Perl Superglue for Web frameworks and Web Servers (PSGI toolkit)
Group:		Development/Perl
License:	GPL+ or Artistic
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Apache::LogFormat::Compiler) >= 0.120.0
BuildRequires: perl(Devel::StackTrace) >= 1.230.0
BuildRequires: perl(Devel::StackTrace::AsHTML) >= 0.110.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::ShareDir) >= 1.0.0
BuildRequires: perl(File::ShareDir::Install) >= 0.30.0
BuildRequires: perl(Filesys::Notify::Simple)
BuildRequires: perl(HTTP::Body) >= 1.60.0
BuildRequires: perl(HTTP::Message) >= 5.814.0
BuildRequires: perl(HTTP::Tiny)
BuildRequires: perl(Hash::MultiValue)
BuildRequires: perl(Pod::Usage) >= 1.360.0
BuildRequires: perl(Stream::Buffered) >= 0.20.0
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::TCP)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(URI) >= 1.590.0
BuildRequires: perl(parent)
BuildRequires: perl(HTTP::Headers::Fast)
BuildRequires: perl(Cookie::Baker)
BuildRequires: perl(Log::Dispatch::Array)
BuildRequires: perl(CGI)
# optional tests
BuildRequires: perl(CGI::Compile)
BuildRequires: perl(IO::Handle::Util)
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Log::Dispatch)
BuildRequires: perl(Module::Refresh)
BuildRequires: perl(CGI::Emulate::PSGI)
BuildRequires: perl(MIME::Types)
BuildRequires: perl(LWP::Protocol::http10)
BuildRequires: perl(HTTP::Request::AsCGI)
BuildRequires: perl(FCGI)
BuildRequires: perl(FCGI::ProcManager)
BuildRequires: perl(Authen::Simple::Passwd)
#
BuildRequires: perl-devel
BuildRequires: perl-asa

# Please keep this to replace Apache::Request. Symbianflo
Requires:	perl(Apache2::Request)

BuildArch:  noarch

%description
Plack is a set of tools for using the PSGI stack. It contains middleware
components, a reference server and utilities for Web application
frameworks. Plack is like Ruby's Rack or Python's Paste for WSGI.

See the PSGI manpage for the PSGI specification and the PSGI::FAQ manpage
to know what PSGI and Plack are and why we need them.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

find %{buildroot} -size 0 -delete

%files
%doc Changes LICENSE META.json META.yml README eg
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5428 |21cr|perl-Plack-Middleware-Cached-0.150.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-Cached
%define upstream_version 0.15

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    This module can be used to glue a cache to a PSGI applications or middleware

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Clone)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(Plack::Builder)
BuildRequires: perl(Plack::Middleware)
BuildRequires: perl(Plack::Util::Accessor)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(overload)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This module can be used to glue a cache to a the PSGI manpage applications
or middleware. A *cache* is an object that provides at least two methods to
get and set data, based on a key. Existing cache modules on CPAN include
the CHI manpage, the Cache manpage, and the Cache::Cache manpage.
Plack::Middleware::Cached is put in front of a PSGI application as
middleware. Given a request in form of a PSGI environment E, it either
returns the matching response R from its cache, or it passed the request to
the wrapped application, and stores the application's response in the
cache:

                      ________          _____
    Request  ===E===>|        |---E--->|     |
                     | Cached |        | App |
    Response <==R====|________|<--R----|_____|

In most cases, only a part of the environment E is relevant to the request.
This relevant part is called the caching *key*. By default, the key is set
to the value of REQUEST_URI from the environment E.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5429 |21cr|perl-Plack-Middleware-Deflater-0.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-Deflater
%define upstream_version 0.12

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Compress response body with Gzip or Deflate


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(Filter::Util::Call)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(IO::Compress::Deflate)
BuildRequires: perl(IO::Compress::Gzip)
BuildRequires: perl(Plack)
BuildRequires: perl(Test::More) >= 0.960.0
BuildRequires: perl(Test::Requires)
BuildRequires: perl-devel
BuildArch:  noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5430 |21cr|perl-Plack-Middleware-FixMissingBodyInRedirect-0.120.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-FixMissingBodyInRedirect
%define upstream_version 0.12

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Set body for redirect response, if it's not already set


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/authors/id/S/SW/SWEETKID/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp::Always)
BuildRequires: perl(HTML::Entities)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(Plack::Builder)
BuildRequires: perl(Plack::Middleware)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Plack::Util)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildRequires: perl(parent)

BuildArch: noarch

%description
This module sets body in redirect response, if it's not already set.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5431 |21cr|perl-Plack-Middleware-ForceEnv-0.20.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-ForceEnv
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    Force set environment variables for testing


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Plack)
BuildRequires: perl-devel
BuildArch:     noarch

%description
ForceEnv modifies the environment passed to the application by adding your
specified key value pairs.

This is primarily useful when testing apps under plackup (or similar) in a
development environment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5432 |21cr|perl-Plack-Middleware-LogErrors-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-LogErrors
%define upstream_version 0.003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Map psgi.errors to psgix.logger or other logger


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Plack::Middleware)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Plack::Util::Accessor)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(TAP::Harness::Env)
BuildRequires: perl(Test::CheckDeps)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.094
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(strictures)
BuildRequires: perl(warnings)
BuildArch:     noarch

%description
'psgi.errors' defaults to 'stderr' in most backends, which results in
content going somewhere unhelpful like the server console.

This middleware simply remaps the 'psgi.errors' stream to the
'psgix.logger' stream, or an explicit logger that you provide.

This is especially handy when used in combination with other middlewares
such as the Plack::Middleware::LogWarn manpage (which diverts Perl warnings
to 'psgi.errors'); the Plack::Middleware::HTTPExceptions manpage (which
diverts uncaught exceptions to 'psgi.errors'); and the
Plack::Middleware::AccessLog manpage, which defaults to 'psgi.errors' when
not passed a logger -- which is also automatically applied via the plackup
manpage (so if you provided no '--access-log' option indicating a filename,
'psgi.errors' is used).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes INSTALL LICENCE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5433 |21cr|perl-Plack-Middleware-LogWarn-0.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-LogWarn
%define upstream_version 0.001002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Converts to warns to log messages


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Plack)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch: noarch

%description
LogWarn is a 'Plack::Middleware' component that will help you get warnings
into a logger. You probably want to use some sort of real logging system
such as the Log::Log4perl manpage and another 'Plack::Middleware' such as
the Plack::Middleware::Log4perl manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5434 |21cr|perl-Plack-Middleware-MethodOverride-0.200.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-MethodOverride
%define upstream_version 0.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    No summary found
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Plack) >= 0.992.900
BuildRequires: perl(Test::Builder) >= 0.700.0
BuildRequires: perl(Test::More) >= 0.700.0
BuildRequires: perl(JSON::XS)
BuildRequires: perl(URI)
BuildArch:  noarch

%description
Writing RESTful apps is a good thing, but if you're also trying to
support web browsers, you're probably going to need some hackish
workarounds. This module provides one such workaround for your Plack
applications.

Specifically, you can also use a header named X-HTTP-Method-Override (as
used by Google for its APIs) override the POST request method. Or you
can add a parameter named x-tunneled-method to your form action's query.
Either way, the overriding works only via POST requests, not GET.

If either of these attributes are available in a POST request, the
REQUEST_METHOD key of the Plack environment hash will be replaced with
its value. This allows your apps to override any HTTP method over POST.
If your application needs to know that such overriding has taken place,
the original method is stored under the plack.original_request_method
key in the Plack environment hash.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5435 |21cr|perl-Plack-Middleware-Negotiate-0.200.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-Negotiate
%define upstream_version 0.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Apply HTTP content negotiation as Plack middleware

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(HTTP::Negotiate)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(Log::Contextual)
BuildRequires: perl(Log::Contextual::WarnLogger)
BuildRequires: perl(Plack::Builder)
BuildRequires: perl(Plack::Middleware)
BuildRequires: perl(Plack::Request)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Plack::Util::Accessor)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(aliased)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(strictures)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
Plack::Middleware::Negotiate applies HTTP content negotiation to a the PSGI
manpage request. The PSGI environment key 'negotiate.format' is set to the
chosen format name. In addition to normal content negotiation one may
enable explicit format selection with a path extension or query parameter.
The middleware takes care for rewriting and restoring PATH_INFO if it is
configured to detect and strip a format extension. The PSGI response is
enriched with corresponding HTTP headers Content-Type and Content-Language
unless these headers already exist.

If used as pure application, this middleware returns a HTTP status code 406
if no format could be negotiated.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc LICENSE META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5436 |21cr|perl-Plack-Middleware-RemoveRedundantBody-0.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-RemoveRedundantBody
%define upstream_version 0.09

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Removes body for HTTP response if it's not required


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(Carp::Always)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(Plack::Builder)
BuildRequires: perl(Plack::Middleware)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Plack::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch: noarch

%description
This module removes body in HTTP response, if it's not required.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5437 |21cr|perl-Plack-Middleware-ReverseProxy-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-ReverseProxy
%define upstream_version 0.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Supports app to run as a reverse proxy backend


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(Plack) >= 0.998.800
BuildRequires: perl(Plack::Middleware)
BuildRequires: perl(Plack::Request)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl-devel
BuildArch:  noarch

%description
Plack::Middleware::ReverseProxy resets some HTTP headers, which changed by
reverse-proxy. You can specify the reverse proxy address and stop fake
requests using 'enable_if' directive in your app.psgi.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5438 |21cr|perl-Plack-Middleware-Test-StashWarnings-0.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Middleware-Test-StashWarnings
%define upstream_version 0.08

Name:           perl-Plack-Middleware-Test-StashWarnings
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Test your application's warnings
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Plack-Middleware-Test-StashWarnings
Source0:        https://cpan.metacpan.org/authors/id/A/AL/ALEXMV/Plack-Middleware-Test-StashWarnings-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  make
BuildRequires:  %{__make}
BuildRequires:  %{__perl}

BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.59
BuildRequires:  perl(JSON::XS)
BuildRequires:  perl(HTTP::Request::Common)
BuildRequires:  perl(Plack)
BuildRequires:  perl(Plack::Request)
BuildRequires:  perl(Plack::Test)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Synopsis)

BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(Module::Install::ReadmeFromPod)
BuildRequires:  perl(Module::Install::AuthorTests)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Plack::Middleware::Test::StashWarnings is a Plack middleware component to
record warnings generated by your application so that you can test them to
make sure your application complains about the right things.

%prep
%setup -q -n Plack-Middleware-Test-StashWarnings-%{upstream_version}
rm -r inc/

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5439 |21cr|perl-Plack-Test-Agent-1.500.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Plack-Test-Agent
%define upstream_version 1.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	OO interface for testing low-level Plack/PSGI apps
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(HTTP::Server::Simple::PSGI)
BuildRequires:	perl(Modern::Perl)
BuildRequires:	perl(Plack::Loader)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::TCP)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(HTTP::Cookies)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Modern::Perl)
BuildRequires:	perl(open)
BuildRequires:	perl(Plack::Request)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(utf8)
BuildRequires:	perl(HTTP::Message::PSGI)
BuildRequires:	perl(HTTP::Request::Common)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(Plack::Loader)
BuildRequires:	perl(Plack::Util::Accessor)
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Plack::Test::Agent is an OO interface to test PSGI applications. It can
perform GET and POST requests against PSGI applications either in process or
over HTTP through a [Plack::Handler](https://metacpan.org/pod/Plack::Handler)
compatible backend.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# need network connection
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README.md
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5440 |21cr|perl-Plack-Test-ExternalServer-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Plack-Test-ExternalServer
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Run HTTP tests on external live servers


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Plack/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Plack::Loader)
BuildRequires: perl(Plack::Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::TCP)
BuildRequires: perl(URI)
BuildRequires: perl-devel
BuildArch: noarch

%description
This module allows your to run your Plack::Test tests against an external
server instead of just against a local application through either mocked
HTTP or a locally spawned server.

See the Plack::Test manpage on how to write tests that can use this module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5441 |21cr|perl-POD2-Base-0.43.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POD2-Base
%define upstream_version 0.043

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	This module is an abstraction of the code in POD2::IT and POD2::FR

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POD2/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strict)
BuildRequires:	perl(vars)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
This module is an abstraction of the code in POD2::IT and POD2::FR. These
modules belong to the Italian and the French translation projects of core
Perl pods.

Once a translation package had been installed, the translated documentation
can be accessed with:

    $ perldoc POD2::<lang>::<podname>

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5442 |21cr|perl-Pod-Abstract-0.200.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Abstract
%define upstream_version 0.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

License:    GPL+ or Artistic
Group:      Development/Perl
Summary:    Basic multipart section numbering


Source0:    http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz
Url:        http://search.cpan.org/dist/%{upstream_name}

BuildRequires: perl-devel
BuildRequires: perl(IO::String)
BuildRequires: perl(Pod::Parser)
BuildArch:     noarch

%description
POD::Abstract provides a means to load a POD (or POD compatible) document
without direct reference to it's syntax, and perform manipulations on the
abstract syntax tree.

This can be used to support additional features for POD, to format output,
to compile into alternative formats, etc.

WHY?
    If you've ever asked yourself "What does Pod do for me?", this module
    is intended to answer that question.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*
/usr/bin/paf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5443 |21cr|perl-Pod-Compiler-0.210.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Compiler
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Compile POD into an object tree

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-Compiler-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Parser)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Tree::DAG_Node)
BuildArch:	noarch

%description
This package, based on Pod::Parser, compiles a given POD document into an
object tree (based on Tree::DAG_Node). It prints errors and warnings about the
POD it reads. The result can be used to conveniently convert the POD into any
other format.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/podlint
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5444 |21cr|perl-Pod-Constants-0.190.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Constants
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Pod::Constants - Include constants from POD

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/M/MG/MGV/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Parser)
BuildArch:	noarch

%description
Pod::Constants allows you to extract data from your POD at run-time,
meaning you can do things like declare constants in POD and not have
to update two places at once every time you make a change.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Pod/Constants.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5445 |21cr|perl-Pod-Coverage-TrustPod-0.100.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Coverage-TrustPod
%define upstream_version 0.100005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Allow a module's pod to contain Pod::Coverage hints

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-Coverage-TrustPod-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Pod::Eventual::Simple)
BuildArch:	noarch

%description
This is a Pod::Coverage subclass (actually, a subclass of
Pod::Coverage::CountParents) that allows the POD itself to declare certain
symbol names trusted.

Here is a sample Perl module:

    package Foo::Bar;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5446 |21cr|perl-Pod-Elemental-0.103.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Elemental
%define upstream_version 0.103005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A Pod =command element

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Mixin::Linewise::Readers)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(Pod::Eventual::Simple)
BuildRequires:	perl(String::RewritePrefix)
BuildRequires:	perl(String::Truncate)
BuildRequires:	perl(Sub::Exporter::ForMethods)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
This is a test. How many times do I need to tell you that?

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5447 |21cr|perl-Pod-Elemental-PerlMunger-0.200.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Elemental-PerlMunger
%define upstream_version 0.200006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A thing that takes a string of Perl and rewrites its documentation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(List::AllUtils)
BuildRequires:	perl(Moose)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Pod::Elemental)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
A thing that takes a string of Perl and rewrites its documentation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5448 |21cr|perl-Pod-Elemental-Transformer-List-0.102.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Elemental-Transformer-List
%define upstream_version 0.102000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Transform :list regions into =over/=back to save typing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-Elemental-Transformer-List-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(Pod::Elemental)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
Transform :list regions into =over/=back to save typing.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5449 |21cr|perl-Pod-Elemental-Transformer-WikiDoc-0.93.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Elemental-Transformer-WikiDoc
%define upstream_version 0.093004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	A transformer to replace "wikidoc" data regions with Pod5 elements

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-Elemental-Transformer-WikiDoc-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Weaver::Role::Dialect)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(Pod::Elemental)
BuildRequires:	perl(Pod::WikiDoc)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
A transformer to replace "wikidoc" data regions with Pod5 elements

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5450 |21cr|perl-Pod-Eventual-0.94.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Eventual
%define upstream_version 0.094003

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Just get an array of the stuff Pod::Eventual finds

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-Eventual-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Mixin::Linewise::Readers)
BuildRequires:	perl(Test::Deep)
BuildArch:	noarch

%description
POD is a pretty simple format to write, but it can be a big pain to deal
with reading it and doing anything useful with it. Most existing POD
parsers care about semantics, like whether a '=item' occurred after an
'=over' but before a 'back', figuring out how to link a 'L<>', and other
things like that.

Pod::Eventual is much less ambitious and much more stupid. Fortunately,
stupid is often better. (That's what I keep telling myself, anyway.)

Pod::Eventual reads line-based input and produces events describing each
POD paragraph or directive it finds. Once complete events are immediately
passed to the 'handle_event' method. This method should be implemented by
Pod::Eventual subclasses. If it isn't, Pod::Eventual's own 'handle_event'
will be called, and will raise an exception.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5451 |21cr|perl-podlinkcheck-15.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    podlinkcheck
%define upstream_version 15

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    No summary found
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/App/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find::Iterator)
BuildRequires: perl(File::Spec) >= 0.800.0
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(IPC::Run)
BuildRequires: perl(List::Util)
BuildRequires: perl(Locale::TextDomain)
BuildRequires: perl(Pod::Find)
BuildRequires: perl(Pod::Simple)
BuildRequires: perl(Test::More)
BuildRequires: perl(constant::defer)

# We have texi2html that provides Locale/TextDomain.pm
# this will confuse the install of BR
BuildRequires: perl-libintl-perl
# Symbianflo

BuildArch:  noarch

%description
This is an internal part of PodLinkCheck.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc COPYING Changes META.yml SIGNATURE
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5452 |21cr|perl-Pod-Loom-0.80.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Loom
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Do-nothing template for Pod::Loom


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Moose)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Pod::Eventual)
BuildRequires:	perl(String::RewritePrefix)
BuildArch:	noarch

%description
Pod::Loom extracts all the POD sections from Perl code, passes the POD to a
template that may reformat it in various ways, and then returns a copy of
the code with the reformatted POD at the end.

A template may convert non-standard POD commands like '=method' and '=attr'
into standard POD, reorder sections, and generally do whatever it likes to
the POD.

The document being reformatted can specify the template to use with a line
like this:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# %check
# %make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5453 |21cr|perl-Pod-Markdown-3.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Markdown
%define upstream_version 3.300

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Convert POD to Markdown
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(List::Util)
BuildRequires: perl(Pod::Simple)
BuildRequires: perl(Pod::Simple::Methody)
BuildRequires: perl(Symbol)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI::Escape)
BuildRequires: perl(base)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch: noarch

%description
This module uses the Pod::Simple manpage to convert POD to Markdown.

Literal characters in Pod that are special in Markdown (like *asterisks*)
are backslash-escaped when appropriate.

By default 'markdown' and 'html' formatted regions are accepted. Regions of
'markdown' will be passed through unchanged. Regions of 'html' will be
placed inside a '<div>' tag so that markdown characters won't be processed.
Regions of ':markdown' or ':html' will be processed as POD and included. To
change which regions are accepted use the the Pod::Simple manpage API:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.json LICENSE META.yml Changes
%{_bindir}/pod2markdown
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5454 |21cr|perl-Pod-Markdown-Github-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Markdown-Github
%define upstream_version 0.04

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Convert POD to Github's specific markdown
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Pod-Markdown-Github
Source0:        https://cpan.metacpan.org/authors/id/M/MI/MINIMAL/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(:VERSION) >= 5.8
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(parent)
BuildRequires:  perl(Pod::Markdown)
BuildRequires:  perl(Pod::Usage)
# Tests:
BuildRequires:  perl(Exporter)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(lib)
BuildRequires:  perl(Symbol)
BuildRequires:  perl(Test::Differences)
BuildRequires:  perl(Test::More) >= 0.88
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Github flavored markdown allows for syntax highlighting using three
backticks. This Perl module inherits from Pod::Markdown and adds those
backticks and an optional language identifier.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
#make test

%files
%license LICENSE
%doc Changes README
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5455 |21cr|perl-Pod-MinimumVersion-50.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-MinimumVersion
%define upstream_version 50

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Report object from Pod::MinimumVersion

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::String)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Pod::Parser)
BuildRequires:	perl(Test)
BuildRequires:	perl(version)
BuildArch:	noarch

%description
'Pod::MinimumVersion' parses the POD in a Perl script, module, or document,
and reports what version of Perl is required to process the directives in
it with 'pod2man' etc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_bindir}/pod-minimumversion
%{_mandir}/man3/*
%{_mandir}/man1/pod-minimumversion.1*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5456 |21cr|perl-Pod-Parser-1.620.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Parser
%define upstream_version 1.62

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Base class for parsing pod documents
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(Test::More) >= 0.600.0
BuildArch:  noarch

%description
*Pod::Find* provides a set of functions to locate POD files. Note that no
function is exported by default to avoid pollution of your namespace, so be
sure to specify them in the *use* statement if you need them:

  use Pod::Find qw(pod_find);

From this version on the typical SCM (software configuration management)
files/directories like RCS, CVS, SCCS, .svn are ignored.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x README CHANGES ANNOUNCE TODO

%build
perl Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make_build test

%install
%make_install
for i in %{buildroot}/%{_bindir}/*; do mv $i $i-%{upstream_version}; done

%files
%doc ANNOUNCE CHANGES META.yml MYMETA.yml README TODO
%{_bindir}/*
%{_mandir}/man*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5457 |21cr|perl-Pod-POM-2.10.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  Pod-POM
%define upstream_version 2.01

Summary:	POD Object Model
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-POM-%{upstream_version}.tar.gz
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(File::Slurper) >= 0.4.0
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(Getopt::Std)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Diff)
BuildRequires:	perl(Text::Wrap)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(YAML::Any)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements a parser to convert Pod documents into a simple object
model form known hereafter as the Pod Object Model. The object model is
generated as a hierarchical tree of nodes, each of which represents a different
element of the original document. The tree can be walked manually and the nodes
examined, printed or otherwise manipulated. In addition, Pod::POM supports and
provides view objects which can automatically traverse the tree, or section
thereof, and generate an output representation in one form or another.

%files
%doc Changes TODO
%{_bindir}/*
%{perl_vendorlib}/Pod
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5458 |21cr|perl-Pod-PseudoPod-0.180.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Pod-PseudoPod
%define upstream_version 0.18

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6
Summary:    A framework for parsing O'Reilly's PseudoPod
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/A/AR/ARANDAL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(HTML::Entities)
BuildRequires: perl(Module::Build) >= 0.380.0
BuildRequires: perl(Pod::Simple) >= 3.20.0
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Wrap) >= 98.112.902
BuildRequires: perl-devel
BuildArch:  noarch

%description
PseudoPod is an extended set of Pod tags used by O'Reilly and Associates
publishing for book manuscripts. Standard Pod doesn't have all the markup
options you need to mark up files for publishing production. PseudoPod adds a
few extra tags for footnotes, tables, sidebars, etc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes LICENSE META.json META.yml README examples
%{perl_vendorlib}/Pod/PseudoPod.pm
%{perl_vendorlib}/Pod/PseudoPod/*
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5459 |21cr|perl-Pod-PseudoPod-LaTeX-1.201.107.100-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-PseudoPod-LaTeX
%define upstream_version 1.20110710

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Convert Pod::PseudoPod documents into LaTeX

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Pod/Pod-PseudoPod-LaTeX-%{upstream_version}.tar.gz

BuildRequires: perl(IO::String)
BuildRequires: perl(Pod::PseudoPod)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildRequires: perl-devel

BuildArch: noarch

%description
Convert Pod::PseudoPod documents into LaTeX

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/ppod2latex

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5460 |21cr|perl-Pod-Readme-1.2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Readme
%define upstream_version 1.2.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Convert Module POD to a README file

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RR/RRWO/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(CPAN::Changes)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Pod::Text)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Data::Perl::Role::String)
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Types::Standard)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(MooX::HandlesVia)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
This module is a subclass of L<Pod::PlainText> which provides additional
POD markup for generating F<README> files.

Why should one bother with this? One can simply use

  pod2text Module.pm > README

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README* META.yml Changes
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5461 |21cr|perl-Pod-Spell-1.200.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Spell
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A formatter for spellchecking Pod

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Class::Tiny)
BuildRequires:	perl(Pod::Escapes)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(File::ShareDir::Install)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Lingua::EN::Inflect)
BuildRequires:	perl(Pod::Parser)
BuildRequires:	perl(Text::Wrap)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Pod::Spell is a Pod formatter whose output is good for spellchecking.
Pod::Spell rather like Pod::Text, except that it doesn't put much effort
into actual formatting, and it suppresses things that look like Perl
symbols or Perl jargon (so that your spellchecking program won't complain
about mystery words like "'$thing'" or "'Foo::Bar'" or "hashref").

This class provides no new public methods. All methods of interest are
inherited from Pod::Parser (which see). The especially interesting ones are
'parse_from_filehandle' (which without arguments takes from STDIN and sends
to STDOUT) and 'parse_from_file'. But you can probably just make do with
the examples in the synopsis though.

This class works by filtering out words that look like Perl or any form of
computerese (like "'$thing'" or "'N>7'" or "'@{$foo}{'bar','baz'}'",
anything in C<...> or F<...> codes, anything in verbatim paragraphs
(codeblocks), and anything in the stopword list. The default stopword list
for a document starts out from the stopword list defined by Pod::Wordlist,
and can be supplemented (on a per-document basis) by having '"=for
stopwords"' / '"=for :stopwords"' region(s) in a document.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man?/*
%{perl_vendorlib}/Pod
%{perl_vendorlib}/auto/share/dist/Pod-Spell
%{_bindir}/podspell

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5462 |21cr|perl-Pod-Spell-CommonMistakes-1.2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Spell-CommonMistakes
%define upstream_version 1.002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
Summary:	Holds the wordlist data for Pod::Spell::CommonMistakes
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Pod::Spell)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Module::Runtime)
BuildArch:	noarch

%description
This module looks for any typos in your POD. It differs from the Pod::Spell
manpage or the Test::Spelling manpage because it uses a custom wordlist and
doesn't use the system spellchecker. The idea for this came from the the
http://wiki.debian.org/Teams/Lintian manpage code in Debian, thanks!

To use this, just pass it a filename that has POD in it and you'll get a
hashref back. If the hashref is empty that means the checker found no
misspelled words. If it contains keys, then the keys are the bad words and
the values are the suggested spelling.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5463 |21cr|perl-Pod-Spell-CommonMistakes-1.2.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Spell-CommonMistakes
%define upstream_version 1.002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9
Summary:	Holds the wordlist data for Pod::Spell::CommonMistakes
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Pod::Spell)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Module::Runtime)
BuildArch:	noarch

%description
This module looks for any typos in your POD. It differs from the Pod::Spell
manpage or the Test::Spelling manpage because it uses a custom wordlist and
doesn't use the system spellchecker. The idea for this came from the the
http://wiki.debian.org/Teams/Lintian manpage code in Debian, thanks!

To use this, just pass it a filename that has POD in it and you'll get a
hashref back. If the hashref is empty that means the checker found no
misspelled words. If it contains keys, then the keys are the bad words and
the values are the suggested spelling.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5464 |21cr|perl-Pod-Strip-1.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Pod-Strip
%define upstream_version 1.100

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:	Remove POD from Perl code 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
Buildrequires:	perl(Module::Build)
Buildrequires:	perl(Pod::Simple)
Requires:	perl(Pod::Simple)
BuildArch:	noarch

%description
Pod::Strip is a subclass of Pod::Simple that strips all POD from Perl Code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

%clean

%files
%doc Changes README*
%{perl_vendorlib}/Pod
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5465 |21cr|perl-Pod-Stripper-0.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Stripper
%define upstream_version 0.22

Name:           perl-Pod-Stripper
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Strip all pod, and output what's left
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Pod-Stripper
Source0:        https://cpan.metacpan.org/authors/id/P/PO/PODMASTER/Pod-Stripper-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  sed
# Run-time
BuildRequires:  perl(Pod::Parser) >= 1.13
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
# Tests
BuildRequires:  perl(Test) >= 1.15
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Pod::Parser) >= 1.13

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Pod::Parser\\)\s*$

%description
This be Pod::Stripper, a subclass of Pod::Parser. It parses perl files,
stripping out the pod, and dumping the rest (presumably code) to wherever
you point it to (like you do with Pod::Parser).

%prep
%setup -q -n Pod-Stripper-%{upstream_version}
sed -i 's/\r//' Changes README podstrip

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5466 |21cr|perl-Pod-Tests-1.190.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Pod-Tests
%define upstream_version 1.19

Summary:	Extracts embedded tests and code examples from POD
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
This is a specialized POD viewer to extract embedded tests and code examples
from POD. It doesn't do much more than that. pod2test does the useful work.

%files
%doc Changes README
%{_bindir}/pod2test
%{perl_vendorlib}/Pod/*.pm
%{_mandir}/man1/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
chmod 644 Changes README
%__perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5467 |21cr|perl-Pod-Text-Ansi-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Text-Ansi
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Convert POD to ANSI-colored text

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Pod::Text)
BuildRequires:	perl(Term::ANSIColor)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Pod::Text::Ansi is a simple subclass of Pod::Text that highlights output
text using ANSI color escape sequences. Apart from the color, it in all
ways functions like Pod::Text. See the Pod::Text manpage for details and
available options.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5468 |21cr|perl-Pod-Tidy-0.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Tidy
%define upstream_version 0.10

Name:           perl-Pod-Tidy
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Reformatting Pod Processor
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Pod-Tidy
Source0:        https://cpan.metacpan.org/authors/id/J/JH/JHOBLITT/Pod-Tidy-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(Module::Build)
# Run-time
BuildRequires:  perl(base)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Copy)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(IO::String)
BuildRequires:  perl(Pod::Find)
BuildRequires:  perl(Pod::Usage)
BuildRequires:  perl(Pod::Simple)
BuildRequires:  perl(Pod::Wrap)
BuildRequires:  perl(strict)
BuildRequires:  perl(Text::Glob)
BuildRequires:  perl(Text::Wrap)
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
# Tests
BuildRequires:  perl(Encode)
BuildRequires:  perl(Encode::Newlines) >= 0.03
BuildRequires:  perl(Exporter)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test::Cmd) >= 1.05
BuildRequires:  perl(Test::Distribution) >= 1.22
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Text::Glob) >= 0.06

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Text::Glob\\)\s*$

%description
This module provides the heavy lifting needed by the podtidy utility
although the API should be general enough that it can be used directly.

podtidy processes a Pod document and attempts to tidy it's formatting.

%prep
%setup -q -n Pod-Tidy-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%license LICENSE
%doc Changes Todo
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5469 |21cr|perl-Pod-ToDemo-1.201.107.90-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-ToDemo
%define upstream_version 1.20110709

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Writes a demo program from a tutorial POD

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Pod::ToDemo allows you to write POD-only modules that serve as tutorials which
can write out demo programs if you invoke them directly.  That is, while
SDL::Tutorial is a tutorial on writing beginner SDL applications with Perl,
you can invoke it as:

  $ perl -MSDL::Tutorial=sdl_demo.pl -e 1

and it will write a bare-bones demo program called sdl_demo.pl based on the
tutorial.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm -f t/0-signature.t

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Pod

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5470 |21cr|perl-Pod-Weaver-4.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Weaver
%define upstream_version 4.018

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A bundle for the most commonly-needed prep work for a pod document

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-Weaver-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Config::INI)
BuildRequires:	perl(Config::MVP::Reader::INI)
BuildRequires:	perl(Config::MVP)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(experimental)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Log::Dispatchouli)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Autobox)
BuildRequires:	perl(PPI)
BuildRequires:	perl(Pod::Elemental)
BuildRequires:	perl(Pod::Eventual::Simple)
BuildRequires:	perl(Software::License)
BuildRequires:	perl(String::Flogger)
BuildRequires:	perl(String::RewritePrefix)
BuildRequires:	perl(String::Formatter)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
Pod::Weaver is a system for building Pod documents from templates. It
doesn't perform simple text substitution, but instead builds a
Pod::Elemental::Document. Its plugins sketch out a series of sections that
will be produced based on an existing Pod document or other provided
information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5471 |21cr|perl-Pod-Weaver-PluginBundle-MARCEL-1.102.460-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Weaver-PluginBundle-MARCEL
%define upstream_version 1.102460

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Build POD documentation like MARCEL
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Pod::Weaver::Config::Assembler)
BuildRequires:	perl(Pod::Weaver::Section::Availability)
BuildRequires:	perl(Pod::Weaver::Section::BugsAndLimitations)
BuildRequires:	perl(Pod::Weaver::Section::Installation)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(aliased)
BuildRequires:	perl(CPAN::Meta::Merge)

BuildArch: noarch

%description
This is the bundle used by default for my distributions. It is nearly
equivalent to the following:

    [@CorePrep]

    [Name]
    [Version]
.
%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5472 |21cr|perl-Pod-Weaver-Section-Availability-1.200.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Weaver-Section-Availability
%define upstream_version 1.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Add an AVAILABILITY pod section
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Dist::Zilla::Plugin::Bugtracker)
BuildRequires: perl(Dist::Zilla::Plugin::Homepage)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Autobox)
BuildRequires: perl(Pod::Weaver::Role::Section)
BuildRequires: perl(Test::More)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch:  noarch

%description
This section plugin will produce 
a hunk of Pod that refers the user to
the distribution's homepage 
and development versions.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5473 |21cr|perl-Pod-Weaver-Section-BugsAndLimitations-1.200.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Weaver-Section-BugsAndLimitations
%define upstream_version 1.20

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Add a BUGS AND LIMITATIONS pod section
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Dist::Zilla::Plugin::Bugtracker)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Autobox)
BuildRequires: perl(Pod::Weaver::Role::Section)
BuildRequires: perl(Test::More)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch:  noarch

%description
This section plugin will produce a hunk of Pod that refers to the
bugtracker URL.

You need to use Dist::Zilla::Plugin::Bugtracker in your "dist.ini" file,
because this plugin relies on information that other plugin generates.

weave_section
adds the "BUGS AND LIMITATIONS" section.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5474 |21cr|perl-Pod-Weaver-Section-Installation-1.101.421-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Weaver-Section-Installation
%define upstream_version 1.101421

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Add an INSTALLATION pod section
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Moose)
BuildRequires: perl(Moose::Autobox)
BuildRequires: perl(Pod::Weaver::Role::Section)
BuildRequires: perl(Test::More)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch:  noarch

%description
This section plugin will produce a hunk of Pod 
that describes how to install the distribution.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5475 |21cr|perl-Pod-WikiDoc-0.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-WikiDoc
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Examples of Pod::WikiDoc usage

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-WikiDoc-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cwd)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(File::pushd)
BuildRequires:	perl(Getopt::Lucid)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(Probe::Perl)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Balanced)
BuildArch:	noarch

%description
Pod works well, but writing it can be time-consuming and tedious. For
example, commonly used layouts like lists require numerous lines of text to
make just a couple of simple points. An alternative approach is to write
documentation in a wiki-text shorthand (referred to here as _wikidoc_) and
use Pod::WikiDoc to extract it and convert it into its corresponding Pod as
a separate '.pod' file.

Documentation written in wikidoc may be embedded in Pod format blocks, or,
optionally, in specially marked comment blocks. Wikidoc uses simple
text-based markup like wiki websites to indicate formatting and links. (See
the /WIKIDOC MARKUP manpage, below.)

Pod::WikiDoc processes text files (or text strings) by extracting both
existing Pod and wikidoc, converting the wikidoc to Pod, and then writing
the combined document back to a file or standard output.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man?/*
%{perl_vendorlib}/*
%{_bindir}/wikidoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5476 |21cr|perl-Pod-Wordlist-hanekomu-1.132.680-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Wordlist-hanekomu
%define upstream_version 1.132680

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Add words for spell checking POD

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-Wordlist-hanekomu-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Pod::Wordlist)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Spelling)
BuildArch:	noarch

%description
This module, when loaded, adds stopwords for POD spell checking, that is,
words that should be ignored by the spell check.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5477 |21cr|perl-Pod-Wrap-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Wrap
%define upstream_version 0.01

Name:           perl-Pod-Wrap
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Wrap pod paragraphs, leaving verbatim text and code alone
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Pod-Wrap
Source0:        https://cpan.metacpan.org/authors/id/N/NU/NUFFIN/Pod-Wrap-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(base)
BuildRequires:  perl(Pod::Parser)
BuildRequires:  perl(Text::Wrap)
# Tests
BuildRequires:  perl(B::Deparse)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(IO::Select)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Pod::Stripper)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Text::Diff)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This is a Pod::Parser subclass, based on Pod::Stripper. It parses perl
files, wrapping pod text, and leaving everything else intact. It prints
it's output to wherever you point it to (like you do with Pod::Parser (and
Pod::Stripper)).

%prep
%setup -q -n Pod-Wrap-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%license Artistic COPYING
%doc README
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5478 |21cr|perl-Pod-Xhtml-1.610.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Xhtml
%define upstream_version 1.61

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Allow off-page links in POD to point to a URL

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz
# https://rt.cpan.org/Public/Bug/Display.html?id=56324
Patch0:		Pod-Xhtml-1.59-uri_escape.patch

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::ParseUtils)
BuildRequires:	perl(Pod::Parser)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Assertions::TestScript)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI::Escape)

BuildArch:	noarch

%description
This is a module to translate POD to Xhtml. Lorem ipsum the Dolor/Dolor
manpage sit amet consectueur adipscing elit. Sed diam nomumny. This is a
module to translate POD to Xhtml. /Lorem ipsum dolor sit amet consectueur
adipscing elit. Sed diam nomumny. This is a module to translate _POD_ to
Xhtml. *Lorem* ipsum _dolor_ sit amet 'consectueur adipscing' elit. . This
is a module to translate POD to Xhtml. See the /Lorem manpage ipsum dolor
sit amet consectueur adipscing elit. Sed diam the nomumny manpage. the
http://foo.bar/baz/ manpage

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man?/*
%{perl_vendorlib}/*
%{_bindir}/pod2xhtml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5479 |21cr|perl-POE-API-Peek-2.200.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-API-Peek
%define upstream_version 2.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Epoch:		1

Summary:	Peek into the internals of a running POE environment

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/POE-API-Peek-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Devel::Size)
BuildRequires:	perl(POE)
BuildRequires:	perl(Test::NoWarnings)
BuildArch:	noarch

%description
POE::API::Peek extends the POE::Kernel interface to provide clean access to 
Kernel internals in a cross-version compatible manner. Other calculated 
data is also available.

%prep
%setup -q -n POE-API-Peek-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Test fail on abf build
#make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/POE
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5480 |21cr|perl-POE-Component-Client-DNS-1.53.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 POE-Component-Client-DNS
%define upstream_version 1.053

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	POE::Component::Client::DNS - non-blocking, concurrent DNS requests

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/POE-Component-Client-DNS-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(POE)
BuildRequires:	perl(Test::NoWarnings)
BuildArch:	noarch

%description
POE::Component::Client::DNS provides a facility for non-blocking, concurrent
DNS requests. Using POE, it allows other tasks to run while waiting for name
servers to respond.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README CHANGES
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5481 |21cr|perl-POE-Component-Client-HTTP-0.949.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Client-HTTP
%define upstream_version 0.949

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Non-blocking/parallel web requests engine
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(Net::HTTP::Methods)
BuildRequires: perl(POE) >= 1.366.0
BuildRequires: perl(POE::Component::Client::Keepalive) >= 0.272.0
BuildRequires: perl(Test::POE::Server::TCP)
BuildRequires: perl(Socket::GetAddrInfo)
BuildRequires: perl(URI)
BuildRequires: perl(Test::Pod::Coverage) >= 1.04
BuildRequires: perl-devel

BuildArch: noarch


%description
The HTTPHead filter turns stream data that has the appropriate format
into a HTTP::Response object. In an all-POE world, this would sit on
the other end of a connection as POE::Filter::HTTPD/

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# delene test need network
rm t/57_pravus_progress.t
rm t/01* t/02*
make test

%install
%makeinstall_std


%files
%doc CHANGES README
%{_mandir}/man3/*
%perl_vendorlib/POE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5482 |21cr|perl-POE-Component-Client-Ident-1.160.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 POE-Component-Client-Ident
%define upstream_version 1.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	A component that provides non-blocking ident lookups to your sessions

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(POE)
BuildRequires:	perl(Test::POE::Server::TCP)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
POE::Component::Client::Ident is a POE component that provides non-blocking
Ident lookup services to other components and sessions. The Ident protocol
is described in RFC 1413

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/POE
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5483 |21cr|perl-POE-Component-Client-Keepalive-0.272.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Client-Keepalive
%define upstream_version 0.272

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Epoch:		1

Summary:	Manage connections, with keep-alive

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Net::IP)
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Component::Client::DNS)
BuildRequires:	perl(POE::Component::Resolver)
BuildRequires:	perl(Net::IP::Minimal)

BuildArch:	noarch

%description
POE::Component::Client::Keepalive creates and manages connections for
other components. It maintains a cache of kept-alive connections for
quick reuse. It is written specifically for clients that can benefit
from kept-alive connections, such as HTTP clients. Using it for one-shot
connections would probably be silly.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5484 |21cr|perl-POE-Component-Client-MPD-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Client-MPD
%define upstream_version 2.001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	POE component to speak with MPD servers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(List::AllUtils)
BuildRequires:	perl(Audio::MPD::Common::Item)
BuildRequires:	perl(Audio::MPD::Common::Stats)
BuildRequires:	perl(Audio::MPD::Common::Status)
BuildRequires:	perl(Carp)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(MooseX::Has::Sugar)
BuildRequires:	perl(MooseX::POE)
BuildRequires:	perl(MooseX::SemiAffordanceAccessor)
BuildRequires:	perl(MooseX::Types::Moose)
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Component::Client::TCP)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Corpus::Audio::MPD)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
POCOCM gives a clear message-passing interface (sitting on top of POE) for
talking to and controlling MPD (Music Player Daemon) servers. A connection
to the MPD server is established as soon as a new POCOCM object is created.

Commands are then sent to the server as messages are passed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5485 |21cr|perl-POE-Component-Client-NNTP-2.220.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Client-NNTP
%define upstream_version 2.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Importable constants for POE::Component::Client::NNTP plugins
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(POE)
BuildRequires: perl(POE::Component::Pluggable)
BuildRequires: perl(POE::Component::Pluggable::Constants)
BuildRequires: perl(POE::Driver::SysRW)
BuildRequires: perl(POE::Filter::Line)
BuildRequires: perl(POE::Wheel::ReadWrite)
BuildRequires: perl(POE::Wheel::SocketFactory)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::POE::Server::TCP)
BuildArch:     noarch

%description
POE::Component::Client::NNTP is a POE component that provides non-blocking
NNTP access to other components and sessions. NNTP is described in RFC 3977
the http://www.faqs.org/rfcs/rfc3977.html manpage, please read it before
doing anything else.

In your component or session, you spawn a NNTP client component, assign it
an alias, and then send it a 'register' event to start receiving responses
from the component.

The component takes commands in the form of events and returns the salient
responses from the NNTP server.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5486 |21cr|perl-POE-Component-Client-Ping-1.177.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Client-Ping
%define upstream_version 1.177

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A non-blocking ICMP ping client
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(POE)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Test::More)
BuildArch:     noarch

%description
POE::Component::Client::Ping is non-blocking ICMP ping client. It lets
several other sessions ping through it in parallel, and it lets them
continue doing other things while they wait for responses.

Ping client components are not proper objects. Instead of being created, as
most objects are, they are "spawned" as separate sessions. To avoid
confusion (and hopefully not cause other confusion), they must be spawned
with a 'spawn' method, not created anew with a 'new' one.

PoCo::Client::Ping's 'spawn' method takes a few named parameters:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5487 |21cr|perl-POE-Component-IKC-0.2402-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# perl conversion not applied , I won't epoch it. Symbianflo.

%define upstream_name    POE-Component-IKC
%define upstream_version 0.2402



Name:		perl-%{upstream_name}
Version:	%{upstream_version}
Release:	3

License:	GPL or Artistic
Group:		Development/Perl
Summary:	POE IKC proxy session

Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(POE)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Devel::Size)
BuildRequires:	perl(POE::Test::Loops)

BuildArch:	noarch

%description
This is Inter-Kernel Communication for POE.  It is used to get events
from one POE kernel to another

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5488 |21cr|perl-POE-Component-IRC-6.930.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  POE-Component-IRC
%define upstream_version 6.93

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A fully event-driven IRC client module

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Date::Format)
BuildRequires:	perl(IRC::Utils)
BuildRequires:	perl(Object::Pluggable)
BuildRequires:	perl(POE::Filter::IRCD)
BuildRequires:	perl(POE::Component::Client::DNS)
BuildRequires:	perl(POE::Component::Client::Ident)
BuildRequires:	perl(POE::Component::Pluggable)
BuildRequires:	perl(POE::Component::Syndicator)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(List::MoreUtils)
BuildArch:	noarch

%description
POE::Component::IRC is a POE (Perl Object Environment) component
which provides a convenient way for POE applications to create a tiny
IRC client session and send and receive IRC events through it. If that
first sentence was a bit too much, go read the POE documentation over
and over until it makes some sense.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes examples
%{perl_vendorlib}/POE
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5489 |21cr|perl-POE-Component-Logger-1.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Logger
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group: 		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Log::Dispatch::Config)
BuildRequires:	perl(POE)
BuildArch:	noarch

Requires:	perl(POE)
Requires:	perl(Log::Dispatch::Config)

%description 
%{upstream_name} module for perl.  A highly flexible logger component
for POE that uses Log::Dispatch and Log::Dispatch::Config for
ultimate flexibility and power.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix} 
CFLAGS="%{optflags}" make PREFIX=%{_prefix}


%install
make PREFIX="%{buildroot}%{_prefix}" install

%files
%defattr(444,root,root,755)
%doc README
%{_mandir}/*/*
%{perl_vendorlib}/POE/Component

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5490 |21cr|perl-POE-Component-Pluggable-1.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Pluggable
%define upstream_version 1.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A base class for creating plugin enabled POE Components

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(POE)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
POE::Component::Pluggable is a base class for creating plugin enabled POE
Components. It is a generic port of POE::Component::IRC's plugin system.

If your component dispatches events to registered POE sessions, then
POE::Component::Pluggable may be a good fit for you.

Basic use would involve subclassing POE::Component::Pluggable, then
overriding '_pluggable_event()' and inserting '_pluggable_process()'
wherever you dispatch events from.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/POE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5491 |21cr|perl-POE-Component-Resolver-0.921.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Resolver
%define upstream_version 0.921

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A non-blocking getaddrinfo() resolver

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(POE)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Socket::GetAddrInfo)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::HiRes)
BuildArch:	noarch

%description
POE::Component::Resolver performs Socket::GetAddrInfo::getaddrinfo() calls
in subprocesses where they're permitted to block as long as necessary.

By default it will run eight subprocesses and prefer address families in
whatever order Socket::GetAddrInfo returns them. These defaults can be
overridden with constructor parameters.

PUBLIC METHODS
    new
        Create a new resolver. Returns an object that must be held and used
        to make requests. See the synopsis.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# broken test
rm -f t/01-basic.t
make test

%install
%makeinstall_std

%files
%doc README CHANGES LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5492 |21cr|perl-POE-Component-Sequence-0.20.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Sequence
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Adds special features to nested sequences
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Class::MethodMaker)
BuildRequires: perl(POE)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Module::Build::Compat)
BuildArch:     noarch

%description
A Sequence is a series of code blocks (actions) that are executed (handled)
within the same context, in series. Each action has access to the sequence
object, can pause it, finish the sequence, add additional actions to be
performed later, or store variables in the context (the heap).

If we had the following action in the above example sequence:

    sub {
        my $sequence = shift;
        $sequence->pause;
        ...
    }

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5493 |21cr|perl-POE-Component-Server-HTTP-0.90.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 POE-Component-Server-HTTP
%define	upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Poe Component to write HTTP server

License:	Artistic and GPL+	
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(POE::API::Peek)
BuildRequires:	perl(LWP)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(HTTP::Status)
BuildRequires:	perl(YAML)
BuildArch:	noarch

%description
POE::Component::Server::HTTP (PoCo::HTTPD) is a framework for building custom 
HTTP servers based on POE. 
It is loosely modeled on the ideas of apache and the mod_perl/Apache module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Seem to fail for now reason
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/POE
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5494 |21cr|perl-POE-Component-Server-SimpleHTTP-2.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Server-SimpleHTTP
%define upstream_version 2.28

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Stores connection information for SimpleHTTP
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::POE)
BuildRequires: perl(POE)
BuildRequires: perl(POE::Component::Client::HTTP)
BuildRequires: perl(POE::Component::Client::Keepalive)
BuildRequires: perl(POE::Filter::HTTP::Parser)
BuildRequires: perl(Socket)
BuildRequires: perl(Storable)
BuildRequires: perl(Sys::Hostname)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::POE::Client::TCP)
BuildArch:     noarch

%description
This module makes serving up HTTP requests a breeze in POE.

The hardest thing to understand in this module is the HANDLERS. That's it!

The standard way to use this module is to do this:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
#on abf test failed, local build OK
#make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5495 |21cr|perl-POE-Component-Server-SOAP-1.140.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 POE-Component-Server-SOAP
%define	upstream_version 1.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Publish POE event handlers via SOAP over HTTP
License:    Artistic and GPL+
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(POE)
BuildRequires: perl(POE::Component::Server::SimpleHTTP) >= 1.540.0
BuildRequires: perl(POE::Session)
BuildRequires: perl(SOAP::Constants)
BuildRequires: perl(SOAP::Lite) >= 0.550.0
BuildArch:     noarch

%{?perl_default_filter}

%description
This module makes serving SOAP/1.1 requests a breeze in POE.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
yes n | perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README examples
%{perl_vendorlib}/POE
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5496 |21cr|perl-POE-Component-Server-Syslog-1.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Server-Syslog
%define upstream_version 1.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Syslog server ability for POE

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(POE)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::ParseDate)
BuildArch:	noarch

%description
This module follows the POE::Filter specification. Actually, it
technically supports both the older specification (C<get>) and the newer
specification (C<get_one>). If, at some point, POE deprecates the older
specification, this module will drop support for it. As such, only use
of the newer specification is recommended.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
rm -f t/000-signature.t
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5497 |21cr|perl-POE-Component-Server-XMLRPC-0.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Server-XMLRPC
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Perl module to publish POE event handlers via XMLRPC over HTTP
License:	Artistic and GPL+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(POE::Component::Server::HTTP)
BuildRequires:	perl(SOAP::Lite) 
BuildRequires:	perl(XMLRPC::Lite)
BuildArch:	noarch

%description
POE::Component::Server::XMLRPC is a bolt-on component that can publish a event
handlers via XMLRPC over HTTP.

%prep
%setup -q -n POE-Component-Server-XMLRPC-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README CHANGES
%{perl_vendorlib}/POE
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5498 |21cr|perl-POE-Component-SmokeBox-0.540.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-SmokeBox
%define upstream_version 0.54

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A backend for CPAN::Reporter::Smoker smokers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Env::Sanctify)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Pty)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Object::Accessor)
BuildRequires:	perl(POE)
BuildRequires:	perl(Params::Check)
BuildRequires:	perl(String::Perl::Warnings)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
POE::Component::SmokeBox is a flexible CPAN Smoke testing framework which
provides an extensible method for testing CPAN distributions against
various different smoker backends.

A smoker backend is defined using a the POE::Component::SmokeBox::Smoker
manpage object and is basically the path to a 'perl' executable that is
configured for CPAN Testing and its associated environment settings.

The 'perl' executable must be configured appropriately to support CPAN
testing with any of the currently supported backends, the
CPANPLUS::YACSmoke manpage, the CPAN::YACSmoke manpage or the
CPAN::Reporter manpage. Additional backends may be supported by inheriting
and extending the backend base class the
POE::Component::SmokeBox::Backend::Base manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5499 |21cr|perl-POE-Component-SmokeBox-Dists-1.80.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-SmokeBox-Dists
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Search for CPAN distributions by cpanid or distribution name

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Capture::Tiny)
BuildRequires:	perl(CPAN::DistnameInfo)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Fetch)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Zlib)
BuildRequires:	perl(POE)
BuildRequires:	perl(Sort::Versions)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
Requires:	perl(CPAN::DistnameInfo)
Requires:	perl(Sort::Versions)
BuildArch:	noarch

%description
POE::Component::SmokeBox::Dists is a the POE manpage component that
provides non-blocking CPAN distribution searches. It is a wrapper around
the File::Fetch manpage for '02packages.details.txt.gz' file retrieval, the
IO::Zlib manpage for extraction and the CPAN::DistnameInfo manpage for
parsing the packages data.

Given either author ( ie. CPAN ID ) or distribution search criteria,
expressed as a regular expression, it will return to a requesting session
all the CPAN distributions that match that pattern.

The component will retrieve the '02packages.details.txt.gz' file to the
'.smokebox' directory. If that file already exists, a newer version will
only be retrieved if the file is older than 6 hours. Specifying the 'force'
parameter overrides this behaviour.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5500 |21cr|perl-POE-Component-SmokeBox-Recent-1.540.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-SmokeBox-Recent
%define upstream_version 1.54

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	An extremely minimal HTTP client

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::Recent::Uploads)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(Net::IP)
BuildRequires:	perl(Net::IP::Minimal)
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Component::Client::DNS)
BuildRequires:	perl(POE::Component::SmokeBox::Recent::HTTP)
BuildRequires:	perl(POE::Filter::HTTP::Parser)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::POE::Client::TCP)
BuildRequires:	perl(Test::POE::Server::TCP)
BuildRequires:	perl(URI)
Requires:	perl(POE::Component::Client::DNS)
Requires:	perl(Test::POE::Client::TCP)
Requires:	perl(CPAN::Recent::Uploads)
BuildArch:	noarch

%description
POE::Component::SmokeBox::Recent is a the POE manpage component for
retrieving recently uploaded CPAN distributions from the CPAN mirror of
your choice.

It accepts a url and an event name and attempts to download and parse the
RECENT file from that given url.

It is part of the SmokeBox toolkit for building CPAN Smoke testing
frameworks.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
export PERL_MM_USE_DEFAULT=1
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5501 |21cr|perl-POE-Component-SmokeBox-Recent-HTTP-1.540.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-SmokeBox-Recent-HTTP
%define upstream_version 1.54

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	The small helper module used by POE::Component::SmokeBox::Recent

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Filter::HTTP::Parser)
BuildRequires:	perl(POE::Component::Client::DNS)
BuildRequires:	perl(Net::IP::Minimal)
BuildRequires:	perl(Test::POE::Client::TCP)
BuildRequires:	perl(Test::POE::Server::TCP)
BuildArch:	noarch

%description
POE::Component::SmokeBox::Recent::HTTP is the small helper module
used by POE::Component::SmokeBox::Recent to do HTTP client duties.
It only implements a simple request with no following of redirections
and connection keep-alive, etc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5502 |21cr|perl-POE-Component-SSLify-1.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-SSLify
%define upstream_version 1.012

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Server-side handle for SSLify
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Net::SSLeay)
BuildRequires: perl(POE)
BuildRequires: perl(POE::Component::Client::TCP)
BuildRequires: perl(POE::Component::Server::TCP)
BuildRequires: perl(POE::Filter::Stream)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Socket)
BuildRequires: perl(Symbol)
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Test::FailWarnings)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(ExtUtils::Helpers) 
BuildRequires: perl(ExtUtils::InstallPaths)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl-devel

BuildArch:     noarch

%description
This component is a method to simplify the SSLification of a socket before
it is passed to a the POE::Wheel::ReadWrite manpage wheel in your
application.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
# perl(Test::More) is too old for this tests , needed 1.001002
# we have 0.98.Sflo
rm -fr t/00-ssleay-info.t \
  t/connect_hook.t \
  t/connect_hook_nodata.t \
  t/connfail_client.t \
  t/connfail_server.t \
  t/renegotiate_client.t \
  t/renegotiate_client_pings.t \
  t/renegotiate_server.t \
  t/simple.t \
  t/simple_large.t \
  t/simple_parallel.t \
  t/simple_parallel_large.t \
  t/simple_parallel_superbig.t \
  t/simple_superbig.t \
  t/upgrade.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5503 |21cr|perl-POE-Component-Syndicator-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Component-Syndicator
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A POE component base class which implements the Observer pattern

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires:	perl(Object::Pluggable) >= 1.290.0
BuildRequires:	perl(POE) >= 1.311.0
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
POE::Component::Syndicator is a base class for POE components which need to
handle a persistent resource (e.g. a connection to an IRC server) for one
or more sessions in an extendable way.

This module (as well as Object::Pluggable, which this module inherits from)
was born out of POE::Component::IRC, the guts of which quickly spread to
other POE components. Now they can all inherit from this module instead.

The component provides an event queue, which can be managed with the
methods documented below. It handles delivery of events to the object
itself, all interested plugins, and all interested sessions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5504 |21cr|perl-POE-Filter-HTTP-Parser-1.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Filter-HTTP-Parser
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A HTTP POE filter for HTTP clients or servers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTTP::Parser)
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(HTTP::Status)
BuildRequires:	perl(POE)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::POE::Client::TCP)
BuildRequires:	perl(Test::POE::Server::TCP)
Requires:	perl(HTTP::Parser)
BuildArch:	noarch

%description
POE::Filter::HTTP::Parser is a the POE::Filter manpage for HTTP which is
based on the HTTP::Parser manpage.

It can be used to easily create the POE manpage based HTTP servers or
clients.

With the 'type' set to 'client', which is the default behaviour, 'get' will
parse the HTTP::Response manpage objects from HTTP streams and 'put' will
accept the HTTP::Request manpage objects and convert them to HTTP streams.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5505 |21cr|perl-POE-Filter-IRCD-2.440.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 POE-Filter-IRCD
%define upstream_version 2.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A POE-based parser for the IRC protocol

License:	GPL
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/POE-Filter-IRCD-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(POE)
BuildArch:	noarch

%description
POE::Filter::IRCD is a Perl module that provides a convenient way of parsing
and creating IRC protocol lines.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/POE
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5506 |21cr|perl-POE-Loop-Tk-1.305.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Loop-Tk
%define upstream_version 1.305

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	A POE/Tk bridge for ActiveState's Tk

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/POE-Loop-Tk-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Test::Loops)
BuildRequires:	perl(Tk)
BuildRequires:	x11-server-xvfb

BuildArch:	noarch

%description
POE::Loop::Tk implements the interface documented in the POE::Loop manpage.
Therefore it has no documentation of its own. Please see the POE::Loop
manpage for more details.

POE::Loop::Tk is one of two versions of the Tk event loop bridge. The
other, the POE::Loop::TkActiveState manpage accommodates behavior
differences in ActiveState's build of Tk. Both versions share common code
in the POE::Loop::TkCommon manpage. POE::Loop::Tk dynamically selects the
appropriate bridge code based on the runtime enviroment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
yes | perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# makefile.pl ignores input if not inside a tty :-(
rm run_network_tests
# this test requires interactivity
rm t/poe_loop_tk/wheel_run.t
xvfb-run %make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5507 |21cr|perl-POE-Quickie-0.180.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Quickie
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A lazy way to wrap blocking code and programs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/POE-Quickie-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Filter::Stream)
BuildRequires:	perl(POE::Session)
BuildRequires:	perl(POE::Wheel::Run)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Deep)
BuildArch:	noarch

%description
If you need nonblocking access to an external program, or want to execute
some blocking code in a separate process, but you don't want to write a
wrapper module or some POE::Wheel::Run boilerplate code, then POE::Quickie
can help. You just specify what you're interested in (stdout, stderr,
and/or exit code), and POE::Quickie will handle the rest in a sensible way.

It has some convenience features, such as killing processes after a
timeout, and storing process-specific context information which will be
delivered with every event.

There is also an even lazier API which suspends the execution of your event
handler and gives control back to POE while your task is running, the same
way LWP::UserAgent::POE does. This is provided by the /FUNCTIONS functions
which are exported by default.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5508 |21cr|perl-POE-Test-Loops-1.360.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-Test-Loops
%define upstream_version 1.360

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Reusable tests for POE::Loop authors

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/POE-Test-Loops-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
POE::Test::Loops contains one function, generate(), which will generate all
the loop tests for one or more POE::Loop subclasses.

The the /SYNOPSIS manpage example is a version of the poe-gen-tests
manpage, which is a stand-alone utility to generate the actual tests. the
poe-gen-tests manpage also documents the POE::Test::Loops system in more
detail.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{_mandir}/man1/poe-gen-tests.1*
%{perl_vendorlib}/POE
%attr(0755, root, root) %{_bindir}/poe-gen-tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5509 |21cr|perl-POE-XS-Loop-EPoll-1.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POE-XS-Loop-EPoll
%define upstream_version 1.003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	6

Summary:    An XS implementation of POE::Loop, using Linux` epoll(2)

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POE/POE-XS-Loop-EPoll-%{upstream_version}.tar.gz

BuildRequires: perl(POE)
BuildRequires: perl(POE::Test::Loops)
BuildRequires: perl-devel

%description
This class is an implementation of the abstract POE::Loop interface written
in C using the Linux epoll(2) family of system calls.

Signals are left to POE::Loop::PerlSignals.

The epoll_ctl() call returns an error when you attempt to poll regular
files, POE::XS::Loop::EPoll emulate's poll(2)'s behaviour with regular
files under Linux - ie. they're always readable/writeable.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5510 |21cr|perl-POP3Client-2.130.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POP3Client
%define upstream_version 2.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	POP3Client module for perl (Mail_and_Usenet_News/Mail)

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Nagios/%{upstream_name}-%{upstream_version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description
POP3Client is a Perl module to provide an object-oriented interface to a
POP3 server.

%prep 
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes  MANIFEST README
%{perl_vendorlib}/Mail/
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5511 |21cr|perl-POSIX-strftime-Compiler-0.440.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    POSIX-strftime-Compiler
%define upstream_version 0.44

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    GNU C library compatible strftime for loggers and servers
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/POSIX/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(CPAN::Meta) >= 2.150.10
BuildRequires: perl(CPAN::Meta::Prereqs)
BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(POSIX)
BuildRequires: perl(Test::More) >= 0.980.0
BuildRequires: perl(Time::Local)
BuildArch:     noarch

%description
POSIX::strftime::Compiler provides GNU C library compatible strftime(3).
But this module will not affected by the system locale. This feature is
useful when you want to write loggers, servers and portable applications.

For generate same result strings on any locale, POSIX::strftime::Compiler
wraps POSIX::strftime and converts some format characters to perl code

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml eg
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5512 |21cr|perl-PostScript-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 PostScript
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/S/SH/SHAWNPW/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is the %{upstream_name} module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/PostScript
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5513 |21cr|perl-PostScript-Simple-0.90.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 PostScript-Simple
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Produce PostScript files from Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The PostScript::Simple module allows you to have a simple method of writing
PostScript files from Perl. It has graphics primitives that allow lines,
curves, circles, polygons and boxes to be drawn. Text can be added to the page
using standard PostScript fonts.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README TODO
%{perl_vendorlib}/PostScript/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5514 |21cr|perl-PPI-1.271.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 PPI
%define upstream_version 1.271

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Parse, Analyze and Manipulate Perl without perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Clone)
BuildRequires:	perl(File::Remove)
BuildRequires:  perl(IO::String)
BuildRequires:	perl(IO::Stringy)
BuildRequires:	perl(List::Util)       >= 1.200.0
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Params::Util)
BuildRequires:  perl(Task::Weaken)
BuildRequires:	perl(Test::ClassAPI)
BuildRequires:  perl(Test::Deep)
BuildRequires:	perl(Test::More)       >= 0.860.0
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::SubCalls)
BuildRequires:  perl(Test::Object)
BuildArch:	noarch

%description
PPI is a Perl document parser.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes
find lib -name '*.pm' | xargs chmod 644

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/PPI
%{perl_vendorlib}/PPI.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5515 |21cr|perl-PPIx-EditorTools-0.190.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PPIx-EditorTools
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Introduces a temporary variable using PPI

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SZ/SZABGAB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(PPI)
BuildRequires:	perl(PPI::Find)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Test::NoWarnings) >= 0.084
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(Pod::Parser)
BuildRequires:	perl(Module::Install)





BuildArch:	noarch

%description
Base class and utility methods for manipulating Perl via PPI. Pulled out
from the 'Padre::Task::PPI' code.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
rm -r inc/*

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5516 |21cr|perl-PPIx-QuoteLike-0.19.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PPIx-QuoteLike
%define upstream_version 0.019

# Enable PPIx::Regexp optional feature
%bcond_without perl_PPIx_QuoteLike_enables_PPIx_Regexp

Name:           perl-PPIx-QuoteLike
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Parse Perl string literals and string-literal-like things
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/PPIx-QuoteLike
Source0:        https://cpan.metacpan.org/authors/id/W/WY/WYANT/PPIx-QuoteLike-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
# Build.PL and inc/My/Module/Build.pm not used
BuildRequires:  perl(:VERSION) >= 5.6
BuildRequires:  perl(Carp)
BuildRequires:  perl(Config)
BuildRequires:  perl(constant)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(lib)
BuildRequires:  perl(strict)
# Test::Without::Module not helpful
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(base)
BuildRequires:  perl(Encode)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(PPI::Document) >= 1.117
BuildRequires:  perl(PPI::Dumper) >= 1.117
BuildRequires:  perl(re)
BuildRequires:  perl(Readonly)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Text::Tabs)
%if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp}
# Optional run-time:
# Author states there is a build-cycle with PPIx::Regexp, but I cannot see
# any.
BuildRequires:  perl(PPIx::Regexp)
%endif
# Tests:
BuildRequires:  perl(charnames)
BuildRequires:  perl(open)
BuildRequires:  perl(Test::More) >= 0.88
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(PPI::Document) >= 1.117
Requires:       perl(PPI::Dumper) >= 1.117
%if %{with perl_PPIx_QuoteLike_enables_PPIx_Regexp}
Recommends:     perl(PPIx::Regexp)
%endif

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\((PPI::Document|PPI::Dumper)\\)$

%description
This Perl class parses Perl string literals and things that are reasonably
like string literals. Its real reason for being is to find interpolated
variables for Perl::Critic policies and similar code.

%package tests
Summary:        Tests for %{name}
Requires:       %{name} = %{?epoch:%{epoch}:}%{version}-%{release}
Requires:       perl-Test-Harness
Requires:       perl(open)
Requires:       perl(PPI::Document) >= 1.117

%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".

%prep
%setup -q -n PPIx-QuoteLike-%{upstream_version}
# Fix shell bang and permissions
for F in eg/{pqldump,variables}; do
    perl -MConfig -p -i -e 's{\A#!/usr/bin/env perl\b}{$Config{startperl}}' \
        "$F"
    chmod -x "$F"
done
# Help generators to recognize Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} -c %{buildroot}

# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test

%check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test

%files
%license LICENSES/*
%doc Changes CONTRIBUTING eg README
%{perl_vendorlib}/PPIx/
%{_mandir}/man3/PPIx::QuoteLike*.3*

%files tests
%{_libexecdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5517 |21cr|perl-PPIx-Regexp-0.88.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PPIx-Regexp
%define upstream_version 0.088

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Represent an independent subexpression marker

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/W/WY/WYANT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(PPI::Document)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
The purpose of the _PPIx-Regexp_ package is to parse regular expressions in
a manner similar to the way the PPI package parses Perl. This class forms
the root of the parse tree, playing a role similar to PPI::Document.

This package shares with PPI the property of being round-trip safe. That
is,

 my $expr = 's/ ( \d+ ) ( \D+ ) /$2$1/smxg';
 my $re = PPIx::Regexp->new( $expr );
 print $re->content() eq $expr ? "yes\n" : "no\n"

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5518 |21cr|perl-PPI-XS-0.910.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PPI-XS
%define upstream_version 0.910

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    (Minor) XS acceleration for PPI

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/PPI/PPI-XS-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(PPI)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel


%description
PPI::XS provides XS-based acceleration of the core PPI packages. It
selectively replaces a (small but growing) number of methods throughout PPI
with identical but much faster C versions.

Once installed, it will be auto-detected and loaded in by PPI completely
transparently.

Because the C implementations are linked to the perl versions of the same
function, it is preferable to upgrade PPI::XS any time you do a major
upgrade of PPI itself.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc   Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5519 |21cr|perl-PPIx-Utilities-1.1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PPIx-Utilities
%define upstream_version 1.001000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10
Summary:	A problem identified by L<PPIx::Utilities|PPIx::Utilities>

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/E/EL/ELLIOTJS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(PPI)
BuildRequires:	perl(PPI::Document)
BuildRequires:	perl(PPI::Document::Fragment)
BuildRequires:	perl(PPI::Dumper)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a collection of functions for dealing with the PPI manpage objects,
many of which originated in the Perl::Critic manpage. They are organized
into modules by the kind of PPI class they relate to, by replacing the
"PPI" at the front of the module name with "PPIx::Utilities", e.g.
functionality related to the PPI::Node manpages is in the
PPIx::Utilities::Node manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5520 |21cr|perl-PPIx-Utils-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PPIx-Utils
%define upstream_version 0.003

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Utility functions for PPI
Group:          Development/Perl
License:        GPL+ or Artistic

URL:            https://metacpan.org/release/PPIx-Utils/
Source0:        https://cpan.metacpan.org/authors/id/D/DB/DBOOK/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:      noarch

BuildRequires:  perl-devel

BuildRequires:  perl(B::Keywords)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(PPI)
BuildRequires:  perl(PPI::Dumper)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::More)

Requires:       perl(B::Keywords)
Requires:       perl(PPI)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# Filter duplicate unversioned requires
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(B::Keywords\\)$

%description
PPIx::Utils is a collection of utility functions for working with PPI
documents. The functions are organized into submodules, and may be imported
from the appropriate submodule or via this module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5521 |21cr|perl-pQuery-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    pQuery
%define upstream_version 0.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A perl port of jQuery framework

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/I/IN/INGY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::TreeBuilder)
BuildArch:	noarch

%description
pQuery is a pragmatic attempt to port the jQuery JavaScript framework to
Perl. It is pragmatic in the sense that it switches certain JavaScript
idioms for Perl ones, in order to make the use of it concise. A primary
goal of jQuery is to "Find things and do things, concisely". pQuery has the
same goal.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5522 |21cr|perl-pragma-base-2.180.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    base
%define upstream_version 2.18
Name:		perl-pragma-%{upstream_name}
Version:	%perl_convert_version 2.18
Release:	5

Summary:	Compile-time class fields

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/fields/RGARCIA/base-2.18.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch
Provides:	perl(base)

%description
Unless you are using the 'fields' pragma, consider this module discouraged
in favor of the lighter-weight 'parent'.

Allows you to both load one or more modules, while setting up inheritance
from those modules at the same time. Roughly similar in effect to

    package Baz;
    BEGIN {
        require Foo;
        require Bar;
        push @ISA, qw(Foo Bar);
    }

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5523 |21cr|perl-Privileges-Drop-1.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Privileges-Drop
%define upstream_version 1.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    A module to make it simple to drop all privileges, even 
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Privileges/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(English)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This module tries to simplify the process of dropping privileges. This can
be useful when your Perl program needs to bind to privileged ports, etc.
This module is much like Proc::UID, except that it's implemented in pure
Perl. Special care has been taken to also drop saved uid on platforms that
support this, currently only test on on Linux.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README ChangeLog META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5524 |21cr|perl-Proc-Background-1.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Proc-Background
%define upstream_version 1.32

%global __requires_exclude perl\\(Win32.*\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Generic interface to Unix and Win32 background process management

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/N/NE/NERDVANA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(App::Cache)
BuildRequires:	perl(Class::Accessor::Chained)
BuildRequires:	perl(Test)
BuildRequires:	perl(Time::HiRes)
BuildArch:	noarch

%description
This is a generic interface for placing processes in the background on both 
Unix and Win32 platforms. This module lets you start, kill, wait on, 
retrieve exit values, and see if background processes still exist.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*
%{_mandir}/man1/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5525 |21cr|perl-Proc-Guard-0.07-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-Proc-Guard
Version:        0.07
Release:        19
Summary:        Process runner with RAII pattern
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            https://metacpan.org/release/Proc-Guard
Source0:        https://cpan.metacpan.org/authors/id/T/TO/TOKUHIROM/Proc-Guard-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(Module::Build)
# Run-time:
BuildRequires:  perl(Carp)
BuildRequires:  perl(Class::Accessor::Lite) >= 0.05
BuildRequires:  perl(Errno)
BuildRequires:  perl(Exporter) >= 5.63
BuildRequires:  perl(ExtUtils::CBuilder)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Tests:
BuildRequires:  perl(Test::More) >= 0.94
BuildRequires:  perl(Test::Requires)
# Optional tests:
BuildRequires:  perl(File::Which)
BuildRequires:  perl(IO::Socket::INET)
BuildRequires:  perl(Test::TCP)
BuildRequires:  perl(Test::SharedFork)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Exporter) >= 5.63

# Filter under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Exporter\\)$

%description
Proc::Guard runs process, and destroys it when the perl script exits.
This is useful for testing code working with server process.

%prep
%setup -q -n Proc-Guard-%{version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%license LICENSE
%doc Changes README.mkdn
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5526 |21cr|perl-Proc-ParallelLoop-0.500.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Proc-ParallelLoop
%define upstream_version 0.5

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Parallel looping constructs for Perl programs
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Proc/%{upstream_name}-%{upstream_version}.tgz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildArch: noarch

%description
This module provides a way to easily write for loops and foreach loops that
run with a controlled degree of parallelism. One very nice feature is that
bufferring is used when necessary such that the output from STDERR and
STDOUT looks exactly as if it was produced by running your subroutine on
each parameter in plain old sequential fashion. Return status from each
loop iteration is also preserved.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5527 |21cr|perl-Proc-Simple-1.310.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Proc-Simple
%define upstream_version 1.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.31
Release:	5

Summary:	Launch and control background processes

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Proc/Proc-Simple-1.31.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Proc::Simple package provides objects mimicing real-life processes
from a user's point of view.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS="vendor"
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/Proc
# %{perl_vendorlib}/auto/Proc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5528 |21cr|perl-Proc-Wait3-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Proc-Wait3
%define upstream_version 0.05

Name:           perl-Proc-Wait3
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Perl extension for wait3 system call
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Proc-Wait3
Source0:        https://cpan.metacpan.org/authors/id/C/CT/CTILMES/Proc-Wait3-%{upstream_version}.tar.gz

BuildRequires:  make
BuildRequires:  gcc
BuildRequires:  %{__perl}
BuildRequires:  /usr/bin/iconv
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Tests:
BuildRequires:  perl(Test)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
If any child processes have exited, this call will "reap" the zombies
similar to the perl "wait" function.

%prep
%setup -q -n Proc-Wait3-%{upstream_version}
/usr/bin/iconv -f ISO-8859-1 -t utf-8 < Changes > Changes~
mv Changes~ Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="$RPM_OPT_FLAGS" NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%license LICENSE
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Proc*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5529 |21cr|perl-ProjectBuilder-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name ProjectBuilder

Summary:	Provides multi-OSes (Linux/Solaris/...) Continuous Packaging

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.14.1
Release:	1
License:	GPL
Group:		System/Configuration/Packaging
Url:		http://trac.project-builder.org
Source:		ftp://ftp.project-builder.org:21/src/%{upstream_name}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
ProjectBuilder is a perl module providing set of functions
to help develop packages for projects and deal
with different Operating systems (Linux distributions, Solaris, ...).
It implements a Continuous Packaging approach.

%prep
%setup -q -n %{upstream_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor CONFDIR=%{_sysconfdir}/pb MANDIR=%{_mandir}
make

%install
%makeinstall_std

%check
make test

%files
%doc NEWS AUTHORS COPYING README
%config(noreplace) %{_sysconfdir}/pb
%{perl_vendorlib}/*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5530 |21cr|perl-Prophet-0.751.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Prophet
%define upstream_version 0.751

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	A distributed database system

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/I/IO/IOANR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moo)
BuildRequires:	perl(Config::GitLike)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(DBI)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Exporter::Lite)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(HTTP::Server::Simple)
BuildRequires:	perl(HTTP::Server::Simple::CGI)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(JSON)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(MIME::Base64::URLSafe)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Module::Refresh)
BuildRequires:	perl(Mouse)
BuildRequires:	perl(Net::Bonjour)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Path::Dispatcher)
BuildRequires:	perl(Proc::InvokeEditor)
BuildRequires:	perl(Template::Declare)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Term::ReadLine::Perl)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::HTTP::Server::Simple)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(Time::Progress)
BuildRequires:	perl(URI)
BuildRequires:	perl(UUID::Tiny)
BuildRequires:	perl(XML::Atom::SimpleFeed)
BuildRequires:	perl(YAML::Syck)
BuildRequires:	perl(Path::Dispatcher::Declarative)
# for testing
BuildRequires:	rsync
BuildRequires:	perl(strictures)

Requires:	perl(Path::Dispatcher::Declarative)
# for server
Requires:	perl(HTTP::Server::Simple::CGI)

BuildArch: noarch

%description
Prophet is a distributed database system designed for small to medium scale
social database applications. Our early targets include things such as bug
tracking.

Design goals
    * Arbitrary record schema

    * Replication

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

# Seems to be quite old and don't pass all tests...
# %check
# ./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorlib}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5531 |21cr|perl-Quantum-Superpositions-2.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Quantum-Superpositions
%define upstream_version 2.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Conjunctive & Disjunctive logic for Perl5

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Quantum/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Class::Multimethods)
BuildRequires:	perl(strict)
BuildArch:	noarch

%description
The Quantum::Superpositions module adds two new operators to Perl: 'any'
and 'all'.

Each of these operators takes a list of values (states) and superimposes
them into a single scalar value (a superposition), which can then be stored
in a standard scalar variable.

The 'any' and 'all' operators produce two distinct kinds of superposition.
The 'any' operator produces a disjunctive superposition, which may
(notionally) be in any one of its states at any time, according to the
needs of the algorithm that uses it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5532 |21cr|perl-Quota-1.7.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Quota
%define upstream_version 1.7.2
# private-shared-object-provides
%global __provides_exclude Quota.so


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Quota module for perl 
#http://search.cpan.org/~tomzo/Quota-1.7.2/Quota.pm#AUTHORS
#Since 2001 it is licensed under both the Perl Artistic License and version 2 or later of the 
#  GNU General Public License as published by the Free Software Foundation
License:	GPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TO/TOMZO/Quota-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-base
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	quota-devel
BuildRequires:	quota
Requires:	quota

%description
The Quota module provides access to file system quotas. The quotactl
system call or ioctl is used to query or set quotas on the local host,
or queries are submitted via RPC to a remote host. Mount tables can be
parsed with getmntent and paths can be translated to device files (or
whatever the actual quotactl implementations needs as argument) of the
according file system.


%prep
%setup -qn %{upstream_name}-%{version}

# fix perl path
find -type f | xargs perl -pi -e "s|/usr/drwho/local/bin/perl|%{_bindir}/perl|g"
find -type f | xargs perl -pi -e "s|/usr/local/bin/perl|%{_bindir}/perl|g"

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# need kernel with quota support, no tests for now.
make test || :

%install
%makeinstall_std


%files
%doc CHANGES README contrib
%{perl_vendorarch}/auto/Quota
%{perl_vendorarch}/Quota.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5533 |21cr|perl-Razor-Agent-2.860.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define pkgname Razor2-Client-Agent
%define upstream_version 2.86

Summary:	Use a Razor catalogue server to filter spam messages
Name:		perl-Razor-Agent
Version:	%perl_convert_version %{upstream_version}
Release:	2
Group:		Networking/Mail
License:	Artistic License 2.0
Url:		http://razor.sourceforge.net
Source0:	https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{pkgname}-%{upstream_version}.tar.gz
Patch1:		perl-Razor-Agent-2.85-parallel-make.patch
BuildRequires:	perl-devel
BuildRequires:	perl-Net-DNS
BuildRequires:	perl-Digest-SHA1
BuildRequires:	perl-MailTools
BuildRequires:	perl-Time-HiRes
BuildRequires:	perl-URI
BuildRequires:	perl-MIME-Base64
Requires:	hping2
Requires:	perl-Net-DNS

%description
Vipul's Razor is a distributed, collaborative, spam detection and filtering
network. Razor establishes a distributed and constantly updating catalogue of
spam in propagation.  This catalogue is used by clients to filter out known
spam. On receiving a spam, a Razor Reporting Agent (run by an end-user or a
troll box) calculates and submits a 20-character unique identification of the
spam (a SHA Digest) to its closest Razor Catalogue Server. The Catalogue Server
echos this signature to other trusted servers after storing it in its database.
Prior to manual processing or transport-level reception, Razor Filtering Agents
(end-users and MTAs) check their incoming mail against a Catalogue Server and
filter out or deny transport in case of a signature match. Catalogued spam,
once identified and reported by a Reporting Agent, can be blocked out by the
rest of the Filtering Agents on the network.

%prep
%setup -qn %{pkgname}-%{upstream_version}
%patch1 -p0

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make OPTIMIZE="$CFLAGS" 

%check
make test

%install
%makeinstall_std

install -d %{buildroot}%{_mandir}/man5
install -m0644 blib/man5/*.5 %{buildroot}%{_mandir}/man5

# fix some defaults
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}/var/log/razor
install -d %{buildroot}%{_sysconfdir}/razor

cat > %{buildroot}%{_sysconfdir}/razor/razor-agent.conf << EOF
logfile                = /var/log/razor/razor-agent.log
EOF

# fix logrotating
cat > %{buildroot}%{_sysconfdir}/logrotate.d/razor-agent << EOF
/var/log/razor/razor-agent.log {
    # create 644 root root
    weekly
    notifempty
    missingok
    compress
}
EOF

%files
%doc BUGS CREDITS Changes FAQ README.md SERVICE_POLICY
%attr(0755,root,root) %dir %{_sysconfdir}/razor
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/razor/razor-agent.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/razor-agent
%{_bindir}/*
%{perl_vendorarch}/Razor2
%{perl_vendorarch}/auto/Razor2
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%attr(0755,root,root) %dir /var/log/razor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5534 |21cr|perl-Readonly-2.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	Readonly
%define upstream_version 2.05

Summary:	Facility for creating read-only scalars, arrays, hashes

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(version) >= 1:0.880.0
BuildRequires:	perl(CPAN::Meta) >= 2.150.10
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Test::More)

%description
This is a facility for creating non-modifiable variables. This is useful for
configuration files, headers, etc. It can also be useful as a development and
debugging tool, for catching updates to variables that should not be changed.

If any of the values you pass to Scalar, Array, or Hash are references, then
those functions recurse over the data structures, marking everything as
Readonly. Usually, this is what you want: the entire structure nonmodifiable.
If you want only the top level to be Readonly, use the alternate Scalar1,
Array1 and Hash1 functions.

Please note that most users of Readonly will also want to install a companion
module Readonly::XS. See the "CONS" section below for more details.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc Changes
%{perl_vendorlib}/Readonly.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5535 |21cr|perl-Readonly-XS-1.50.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Readonly-XS
%define upstream_version 1.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9

Summary:	Companion module for Readonly.pm, to speed up read-only scalar variables

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Readonly/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:	perl-devel

%description
The Readonly module (q.v.) is an effective way to create non-modifiable
variables. However, it's relatively slow.

The reason it's slow is that is implements the read-only-ness of variables via
tied objects. This mechanism is inherently slow. Perl simply has to do a lot of
work under the hood to make tied variables work.

This module corrects the speed problem, at least with respect to scalar
variables. When Readonly::XS is installed, Readonly uses it to access the
internals of scalar variables. Instead of creating a scalar variable object and
tying it, Readonly simply flips the SvREADONLY bit in the scalar's FLAGS
structure.

Readonly arrays and hashes are not sped up by this, since the SvREADONLY flag
only works for scalars. Arrays and hashes always use the tie interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%clean 

%files 
%doc Changes README
%{perl_vendorarch}/Readonly
%{perl_vendorarch}/auto/Readonly
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5536 |21cr|perl-reaper-1.00-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	reaper

Name:		perl-%{module}
Version:	1.00
Release:	5
Summary:	Support for reaping child processes via $SIG{CHLD} 

License:	GPL or Artistic
Group:		Development/Perl
Source0:	Reaper-%{version}.tar.gz
Url:		http://search.cpan.org/dist/%{module}
BuildRequires:	perl-devel
Provides:	perl(reaper)
BuildArch:	noarch

%description
Support for reaping child processes via $SIG{CHLD} 

%prep
%setup -q -n Reaper-%{version}

%build
find -type f | xargs chmod 644
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%{perl_vendorlib}/%{module}.pm
%{perl_vendorlib}/Reaper.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5537 |21cr|perl-recommended-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    recommended
%define upstream_version 0.003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Load recommended modules on demand when available
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(Devel::Peek)
BuildRequires: perl-devel

Provides:	perl(recommended) = %{EVRD}

BuildArch: noarch

%description
This works just like the recommended manpage, but a suggestion is less
strong than a recommendation. This is provided for self-documentation
purposes.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5538 |21cr|perl-Redis-1.999.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Redis
%define upstream_version 1.999

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Redis Sentinel interface
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Digest::SHA)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IO::Socket::Timeout) >= 0.290.0
BuildRequires: perl(IO::String)
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Module::Build::Tiny) >= 0.39.0
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.980.0
BuildRequires: perl(Test::SharedFork)
BuildRequires: perl(Test::TCP) >= 1.190.0
BuildRequires: perl(Try::Tiny)
BuildArch:     noarch

%description
Pure perl bindings for the http://redis.io/ manpage

This version supports protocol 2.x (multi-bulk) or later of Redis available
at the https://github.com/antirez/redis/ manpage.

This documentation lists commands which are exercised in test suite, but
additional commands will work correctly since protocol specifies enough
information to support almost all commands with same piece of code with a
little help of 'AUTOLOAD'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5539 |21cr|perl-RefDB-Client-1.18-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	RefDB-Client

Name:		perl-%{module}
Version:	1.18
Release:	7
Summary:	%{module} module for perl

License:	GPLv2+
Group:		Development/Perl
URL:		http://refdb.sourceforge.net
Source:		http://prdownloads.sourceforge.net/refdb/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl component for the MARC and Pubmed import filters.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
# tests requires a refdb base
#make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/RefDB
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5540 |21cr|perl-RefDB-perlmod-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	RefDB-perlmod

Name:		perl-%{module}
Version:	1.2
Release:	10
Summary:	%{module} module for perl

License:	GPLv2+
Group:		Development/Perl
Source:		http://prdownloads.sourceforge.net/refdb/%{module}-%{version}.tar.gz
URL:		http://refdb.sourceforge.net

BuildRequires:	perl-devel
BuildRequires:	perl(Text::Iconv)
Provides:	perl(RefDB)
BuildArch:	noarch

%description
Perl component for the MARC and Pubmed import filters.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/RefDB
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5541 |21cr|perl-RefDB-SRU-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	RefDB-SRU

Name:		perl-%{module}
Version:	0.7
Release:	7
Summary:	%{module} module for perl

License:	GPLv2+
Group:		Development/Perl
URL:		http://refdb.sourceforge.net
Source:		http://prdownloads.sourceforge.net/refdb/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl component for the MARC and Pubmed import filters.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
# tests require a RefDB server
#make test

%install
%makeinstall_std

%files
%doc ChangeLog
%{perl_vendorlib}/RefDB
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5542 |21cr|perl-Ref-Util-0.204.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Ref-Util
%define upstream_version 0.204

# Run optional test
%if ! (0%{?rhel})
%bcond_without perl_Ref_Util_enables_optional_test
%else
%bcond_with perl_Ref_Util_enables_optional_test
%endif

Name:		perl-Ref-Util
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Utility functions for checking references
Group:		Development/Perl
License:	MIT
URL:		https://metacpan.org/release/Ref-Util
Source0:	https://cpan.metacpan.org/authors/id/A/AR/ARC/Ref-Util-%{upstream_version}.tar.gz
BuildArch:	noarch
# Build
BuildRequires:	coreutils
BuildRequires:	findutils
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(lib)
BuildRequires:	perl(Text::ParseWords)
# Dependencies of bundled ExtUtils::HasCompiler
BuildRequires:	gcc
BuildRequires:	perl-devel
BuildRequires:	perl(base)
BuildRequires:	perl(Config)
BuildRequires:	perl(DynaLoader)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(File::Temp)
# Module
BuildRequires:	perl(Carp)
BuildRequires:	perl(constant)
BuildRequires:	perl(Exporter) >= 5.57
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
# Test Suite
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IPC::Open2)
BuildRequires:	perl(Ref::Util::XS)
BuildRequires:	perl(Test::More) >= 0.96
%if %{with perl_Ref_Util_enables_optional_test}
# Optional Tests
BuildRequires:	perl(B::Concise)
BuildRequires:	perl(CPAN::Meta) >= 2.120900
BuildRequires:	perl(Readonly)
%endif
# Runtime
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:	perl(Ref::Util::XS)

%description
Ref::Util introduces several functions to help identify references in a faster
and smarter way.

%prep
%setup -q -n Ref-Util-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}

%check
make test

%files
%if 0%{?_licensedir:1}
%license LICENSE
%else
%doc LICENSE
%endif
%doc Changes README
%{perl_vendorlib}/Ref/
%{_mandir}/man3/Ref::Util.3*
%{_mandir}/man3/Ref::Util::PP.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5543 |21cr|perl-Ref-Util-XS-0.117-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Ref-Util-XS
%define upstream_version 0.117

# Run optional tests
%if ! (0%{?rhel})
%bcond_without perl_Ref_Util_XS_enables_optional_test
%else
%bcond_with perl_Ref_Util_XS_enables_optional_test
%endif

Name:		perl-Ref-Util-XS
Version:	0.117
Release:	2
Summary:	Utility functions for checking references
Group:		Development/Perl
License:	MIT
URL:		https://metacpan.org/release/Ref-Util-XS
Source0:	https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/Ref-Util-XS-%{version}.tar.gz
# Build
BuildRequires:	coreutils
BuildRequires:	findutils
BuildRequires:	gcc
BuildRequires:	make
BuildRequires:	perl-devel
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker)
# Module
BuildRequires:	perl(Exporter) >= 5.57
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(XSLoader)
# Test Suite
BuildRequires:	perl(constant)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More) >= 0.94
%if %{with perl_Ref_Util_XS_enables_optional_test}
# Optional Tests
BuildRequires:	perl(B::Concise)
BuildRequires:	perl(CPAN::Meta) >= 2.120900
BuildRequires:	perl(Readonly)
%endif
# Runtime
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

# Avoid provides for private objects
%{?perl_default_filter}

%description
Ref::Util::XS introduces several functions to help identify references in a
faster and smarter way.

%prep
%setup -q -n Ref-Util-XS-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorarch}/auto/Ref/
%{perl_vendorarch}/Ref/
%{_mandir}/man3/Ref::Util::XS.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5544 |21cr|perl-Regexp-Assemble-0.380.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Assemble
%define upstream_version 0.38

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Assemble multiple Regular Expressions into a single RE

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Regexp/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Regexp::Assemble takes an arbitrary number of regular expressions and assembles
them into a single regular expression (or RE) that will match all that each of
the individual REs match. As a result, instead of having a large list of
expressions to loop over, the string only needs to be tested against one
expression. This is interesting when you have several thousand patterns to deal
with. Serious effort is made to produce the smallest pattern possible. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README TODO
%{perl_vendorlib}/Regexp
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5545 |21cr|perl-Regexp-Bind-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Bind
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Regexp::Bind - Bind variables to captured buffers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Regexp/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module is an extension to perl's native regexp function. It
binds anonymous hashes or named variables to matched buffers. Both
normal regexp syntax and embedded regexp syntax are supported.
You can view it as a tiny and petite data extraction system.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Regexp/Bind.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5546 |21cr|perl-Regexp-Common-Email-Address-1.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Common-Email-Address
%define upstream_version 1.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Returns a pattern for Email Addresses

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Regexp/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Email::Address)
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
'$RE{Email}{Address}'
    Provides a regex to match email addresses as defined by RFC 2822. Under
    '{-keep}', the entire match is kept as '$1'. If you want to parse that
    further then pass it to 'Email::Address->parse()'. Don't worry, it's
    fast.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Regexp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5547 |21cr|perl-Regexp-Common-net-CIDR-0.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Common-net-CIDR
%define upstream_version 0.03

Name:           perl-Regexp-Common-net-CIDR
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Provide patterns for CIDR blocks
Group:          Development/Perl
License:        GPLv2

URL:            https://metacpan.org/release/Regexp-Common-net-CIDR
Source0:        https://cpan.metacpan.org/authors/id/B/BP/BPS/Regexp-Common-net-CIDR-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Regexp::Common)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Patterns for CIDR blocks.

Now only next IPv4 formats are supported:
  xxx.xxx/xx
  xxx.xxx.xxx/xx
  xxx.xxx.xxx.xxx/xx

%prep
%setup -q -n Regexp-Common-net-CIDR-%{upstream_version}

# Remove bundled modules
for f in $(find inc/Module -name *.pm); do
  pat=$(echo "$f" | sed 's,/,\\/,g;s,\.,\\.,g')
  rm $f
  sed -i -e "/$pat/d" MANIFEST
done

%build
# --skipdeps causes ExtUtils::AutoInstall not to try auto-installing
# missing modules
%{__perl} Makefile.PL INSTALLDIRS=vendor --skipdeps NO_PACKLIST=1
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5548 |21cr|perl-Regexp-Extended-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Extended
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Regexp::Extended - Perl wrapper that extends the re module with new features

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Regexp/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Clone)
BuildArch:	noarch

%description
Rexexp::Extended is a simple wrapper arround the perl rexexp
syntax. It uses the overload module to parse constant qr// 
expressions and substitute known operators with an equivalent perl
re.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# make test don't work
# make test

%install
%makeinstall_std

%files
%doc README
%dir %{perl_vendorlib}/Regexp/Extended
%{perl_vendorlib}/Regexp/Extended/*
%{perl_vendorlib}/Regexp/Extended.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5549 |21cr|perl-Regexp-IPv6-0.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-IPv6
%define upstream_version 0.03

Name:           perl-Regexp-IPv6
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Regular expression for IPv6 addresses
Group:          Development/Perl
License:        GPLv2+ or Artistic
URL:            https://metacpan.org/release/Regexp-IPv6
Source0:        https://cpan.metacpan.org/authors/id/S/SA/SALVA/Regexp-IPv6-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires: make
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This module exports the $IPv6_re regular expression that matches any valid
IPv6 address as described in "RFC 2373 - 2.2 Text Representation of
Addresses" but ::. Any string not compliant with such RFC will be rejected.

%prep
%setup -q -n Regexp-IPv6-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5550 |21cr|perl-Regexp-Parser-0.230.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Parser
%define upstream_version 0.23

%global __requires_exclude perl\\(Regexp::Parser::Diagnostics\\)|perl\\(Regexp::Parser::Handlers\\)|perl\\(Regexp::Parser::Objects\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Regexp::Parser - base class for parsing regexes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/T/TO/TODDR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module parses regular expressions (regexes). Its default
"grammar" is Perl 5.8.4's regex set. Grammar is quoted because the
module does not so much define a grammar as let each matched node
state what it expects to match next, but there is not currently a
way of extracting a complete grammar. This may change in future
versions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%dir %{perl_vendorlib}/Regexp/Parser
%dir %{perl_vendorlib}/Perl6/Rule
%{perl_vendorlib}/Regexp/Parser/*
%{perl_vendorlib}/Regexp/Parser.pm
%{perl_vendorlib}/Perl6/Rule/Parser.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5551 |21cr|perl-Regexp-Pattern-Perl-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Pattern-Perl
%define upstream_version 0.006

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Regexp patterns related to Perl
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Regexp-Pattern-Perl/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Regexp::Pattern is a convention for organizing reusable regex patterns.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING RELEASE_TESTING
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5552 |21cr|perl-Regexp-Shellish-0.930.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Regexp-Shellish
%define upstream_version 0.93

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Shell-like regular expressions for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Regexp/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This perl module allows you to use shell-like regular expressions,
instead of using perl regular expressions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes 
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5553 |21cr|perl-Regexp-Trie-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Trie
%define upstream_version 0.02

Name:		perl-Regexp-Trie
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Build trie-ized regexp
Group:		Development/Perl
License:	GPL+ or Artistic
URL:		https://metacpan.org/release/Regexp-Trie
Source0:	https://cpan.metacpan.org/modules/by-module/Regexp/Regexp-Trie-%{upstream_version}.tar.gz
Patch0:		Regexp-Trie-0.02-test.patch
BuildArch:	noarch
# Module Build
BuildRequires:	coreutils
BuildRequires:	findutils
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker)
# Module Runtime
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
# Test Suite
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	procps-ng
BuildRequires:	words
# Dependencies
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This module is a faster but simpler version of Regexp::Assemble or
Regexp::Optimizer. It builds a trie-ized regexp as above. This module is
faster than Regexp::Assemble but you can only add literals:
a+b is treated as a\+b, not "more than one a's followed by b".

%prep
%setup -q -n Regexp-Trie-%{upstream_version}

# Fix issues in t/01-dict.t
%patch0

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}

%check
#make test
#prove --lib %{buildroot}%{perl_vendorlib} t/01-dict.t :: /usr/share/dict/words

%files
%doc Changes README
%{perl_vendorlib}/Regexp/
%{_mandir}/man3/Regexp::Trie.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5554 |21cr|perl-relative-0.40.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    relative
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Load modules with relative names

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SA/SAPER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(UNIVERSAL::require)

BuildArch:	noarch
Provides:	perl(relative)

%description
This module allows you to load modules using only parts of their name,
relatively to the current module or to a given module. Module names are by
default searched below the current module, but can be searched upper in the
hierarchy using the '..::' syntax.

In order to further loosen the namespace coupling, 'import' returns the
full names of the loaded modules, making object-oriented code easier to
write.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5555 |21cr|perl-Return-MultiLevel-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Return-MultiLevel
%define upstream_version 0.06

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Return across multiple call levels
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/P/PL/PLICEASE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Data::Munge)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.480.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch:  noarch

%description
Return across multiple call levels.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5556 |21cr|perl-Return-Value-1.666.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Return-Value
%define upstream_version 1.666005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Polymorphic Return Values

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

BuildArch:	noarch

%description
Polymorphic return values are really useful. Often, we just want to know if
something worked or not. Other times, we'd like to know what the error text
was. Still others, we may want to know what the error code was, and what the
error properties were. We don't want to handle objects or data structures for
every single return value, but we do want to check error conditions in our code
because that's what good programmers do.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json
%{perl_vendorlib}/Return
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5557 |21cr|perl-Role-Basic-0.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Role-Basic
%define upstream_version 0.13

Name:           perl-Role-Basic
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Just roles. Nothing else
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Role-Basic
Source0:        https://cpan.metacpan.org/authors/id/O/OV/OVID/Role-Basic-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  perl-generators
BuildRequires:  perl(B)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Storable)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Simplified Moose-like roles.

%prep
%setup -q -n Role-Basic-%{upstream_version}
# Convert to utf-8
iconv -f ISO-8859-1 -t utf-8 Changes > Changes~
mv Changes~ Changes

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5558 |21cr|perl-Role-HasMessage-0.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Role-HasMessage
%define upstream_version 0.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A thing with a String::Errf-powered message

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(String::Errf)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
This is another extremely simple role. A class that includes
Role::HasMessage is promising to provide a 'message' method that returns a
string summarizing the message or event represented by the object. It does
_not_ provide any actual behavior.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5559 |21cr|perl-Role-Identifiable-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Role-Identifiable
%define upstream_version 0.009

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A thing with an ident attribute

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(Moose::Util::TypeConstraints)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This is an incredibly simple role. It adds a required 'ident' attribute
that stores a simple string, meant to identify exceptions.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5560 |21cr|perl-Rose-DateTime-0.540.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Rose-DateTime
%define upstream_version 0.540

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	DateTime helper functions and objects

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Rose/Rose-DateTime-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Rose::Object)

BuildArch:	noarch

%description
The Rose::DateTime::* modules provide a few convenience functions and
objects for use with DateTime dates.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man*/*
%{perl_vendorlib}/Rose

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5561 |21cr|perl-Rose-HTML-Objects-0.623.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Rose-HTML-Objects
%define upstream_version 0.623

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Object-oriented interfaces for HTML

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Rose/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Clone::PP)
BuildRequires:	perl(Email::Valid)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(Image::Size)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Rose::DateTime) >= 0.0133
BuildRequires:	perl(Rose::Object) >= 0.015
BuildRequires:	perl(Rose::URI) >= 0.021
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Scalar::Defer)
BuildRequires:	perl(URI::Escape)

BuildArch:	noarch

Requires:	perl(Rose::DateTime) >= 0.0133
Requires:	perl(Rose::Object) >= 0.015
Requires:	perl(Rose::URI) >= 0.021

%description
The Rose::HTML::Object::* family of classes represent HTML tags, or
groups of tags. These objects allow HTML to be arbitrarily
manipulated, then serialized to actual HTML (or XHTML). Currently, the
process only works in one direction. Objects cannot be constructed
from their serialized representations. In practice, given the purpose
of these modules, this is not an important limitation.

Any HTML tag can theoretically be represented by a
Rose::HTML::Object-derived class, but this family of modules was
originally motivated by a desire to simplify the use of HTML forms.

The form/field object interfaces have been heavily abstracted to allow
for input and output filtering, inflation/deflation of values, and
compound fields (fields that contain other fields). The classes are
also designed to be subclassed. The creation of custom form and field
subclasses is really the "big win" for these modules.

There is also a simple image tag class which is useful for
auto-populating the width and height attributes of img tags. Future
releases may include object representations of other HTML
tags. Contributions are welcome.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc Changes
%{_mandir}/man*/*
%{perl_vendorlib}/Rose

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5562 |21cr|perl-Rose-Object-0.860.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	    Rose-Object
%define	modprefix   Rose
%define upstream_version 0.860

# circular dependency
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Rose::DateTime(.*)\\)
%else
%define _requires_exceptions perl(Rose::DateTime
%endif

Summary:	A simple object base class

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	Artistic/GPL
Group:		Development/Perl
URL:        http://search.cpan.org/dist/%{module}
Source:     http://www.cpan.org/modules/by-module/Rose/Rose-Object-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Simple)
BuildArch:	noarch

%description
Rose::Object is a generic object base class. It provides very little
functionality, but a healthy dose of convention.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man*/*
%{perl_vendorlib}/%{modprefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5563 |21cr|perl-Rose-URI-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Rose-URI
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	An alternative to URI

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Rose/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(overload)
BuildRequires:	perl(Rose::Object) >= 0.015
BuildRequires:	perl(URI)
## scottk ##
## perl(URI::Escape) is provided by perl-URI, which requirement is
## satisfied when the perl(URI) requirement is satisfied
##BuildRequires:	perl(URI::Escape)
BuildArch:	noarch

%description
Rose::URI is a standalone URI class allowing easy and efficient
manipulation of query parameters and other URI components.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc Changes
%{_mandir}/man*/*
%{perl_vendorlib}/Rose

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5564 |21cr|perl-Router-Simple-0.170.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Router-Simple
%define upstream_version 0.17

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Submapper
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Router/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Class::Accessor::Lite)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(List::Util)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(Module::Build)
BuildArch:     noarch

%description
Router::Simple is a simple router class.

Its main purpose is to serve as a dispatcher for web applications.

Router::Simple can match against PSGI '$env' directly, which means it's
easy to use with PSGI supporting web frameworks.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5565 |21cr|perl-RpcPerl-0.200.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module   RpcPerl
%define upstream_version 0.2

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	LGPL or EPL
Group:		Development/Perl
Summary:	RPC with a Perl server

Url:		http://qooxdoo.org/documentation/0.8/rpc_perl
Source:		http://sourceforge.net/projects/qooxdoo-contrib/files/RpcPerl/0.2/RpcPerl-%{upstream_version}.zip
BuildArch:	noarch

%description
As described in the RPC overview, qooxdoo RPC is based on JSON-RPC as the
serialization and method call protocol. This page describes how to set up and
implement a Perl-based server.

%prep
%setup -q -n %{module}/%{upstream_version}

%build

%install
install -d -m 755  %{buildroot}%{perl_vendorlib}
cp -pr Qooxdoo %{buildroot}%{perl_vendorlib}

%files
%doc README.CONFIGURE README.txt SERVER_WRITER_GUIDE jsonrpc.pl
%{perl_vendorlib}/Qooxdoo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5566 |21cr|perl-rpm-build-perl-0.820.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    rpm-build-perl
%define upstream_version 0.82

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl compiler backend to extract Perl dependencies

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/B/rpm-build-perl-%{upstream_version}.tar.gz
Patch1:		rpm-build-perl-0.82-Adjust-to-perl-5.22.patch
Patch2:		rpm-build-perl-0.82-Fix-non-deterministic-failures-on-newer-perls.patch
Patch3:		rpm-build-perl-0.82-Port-to-OpSIBLING-like-macros-required-since-Perl-5..patch
BuildRequires:	perl-devel
BuildRequires:	perl(B)
BuildRequires:	perl(Encode)
BuildRequires:	perl(O)
BuildRequires:	perl(Safe)
BuildRequires:	perl(Test::More)

%description
B::PerlReq is a backend module for the Perl compiler that extracts
dependencies from Perl source code, based on the internal compiled
structure that Perl itself creates after parsing a program. The output of
B::PerlReq is suitable for automatic dependency tracking (e.g. for RPM
packaging).

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# fail because even more requires are found than expected
#make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorarch}/*
%{_bindir}/perl.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5567 |21cr|perl-RT-Client-Console-0.2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    RT-Client-Console
%define upstream_version 0.2.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Non-blocking Curses.pm input for full-screen console apps

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/RT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Config::Tiny)
BuildRequires:	perl(Curses)
BuildRequires:	perl(Curses::Forms)
BuildRequires:	perl(Curses::Widgets)
BuildRequires:	perl(Error)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Memoize)
BuildRequires:	perl(POE)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(RT::Client::REST)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(parent)
BuildRequires:	perl(relative)
BuildRequires:	perl(version)
BuildArch:	noarch

%description
RT::Client::Console distribution provides an executable _rtconsole_ and
modules. The executable is a full-featured curses-based interface to any RT
server that has REST interface enabled.

The modules provides comprehensive ways to connect, interact and display
informations from the RT server. A plugin mechanism is planned, and will
enable more flexibility.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5568 |21cr|perl-RT-Client-REST-0.600.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    RT-Client-REST
%define upstream_version 0.60

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Talk to RT using REST protocol


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/RT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DateTime::Format::DateParse)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Error)
BuildRequires:	perl(HTTP::Server::Simple)
BuildRequires:	perl(LWP)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::Exception)
BuildArch:	noarch

%description
*RT::Client::REST* is */usr/bin/rt* converted to a Perl module. I needed to
implement some RT interactions from my application, but did not feel that
invoking a shell command is appropriate. Thus, I took *rt* tool, written by
Abhijit Menon-Sen, and converted it to an object-oriented Perl module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/RT/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5569 |21cr|perl-RTF-Writer-1.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    RTF-Writer
%define upstream_version 1.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    For generating documents in Rich Text Format

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/RTF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Path)
BuildRequires: perl(Image::Size)
BuildRequires: perl(UNIVERSAL)
BuildRequires: perl(strict)
BuildRequires: perl(Test)
BuildRequires: perl-devel
BuildArch:     noarch

%description
This module is for generating documents in Rich Text Format. 

This module is a class; an object belonging to this class acts like an
output filehandle, and calling methods on it causes RTF text to be written.

Incidentally, this module also exports a few useful functions, upon
request.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc ChangeLog README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5570 |21cr|perl-Safe-Isa-1.0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Safe-Isa
%define upstream_version 1.000010

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Call isa, can, does and DOES safely on things that may not be objects

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Safe/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter) >= 5.570.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl-devel


BuildArch:  noarch

%description
How many times have you found yourself writing:

  if ($obj->isa('Something')) {

and then shortly afterwards cursing and changing it to:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5571 |21cr|perl-Sane-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Sane
%define upstream_version    0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Perl extension for the SANE (Scanner Access Now Easy) Project

Source0:	http://search.cpan.org/CPAN/authors/id/R/RA/RATCLIFFE/%{upstream_name}-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{upstream_name}
BuildRequires:	perl-devel
BuildRequires:	sane-devel
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::PkgConfig)

%description
Perl bindings for the SANE (Scanner Access Now Easy) Project. This module
allows you to access SANE-compatible scanners in a Perlish and object-oriented
way, freeing you from the casting and memory management in C, yet remaining
very close in spirit to original API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5572 |21cr|perl-Scalar-Defer-0.230.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Scalar-Defer
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Lazy evaluation in Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Scalar/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Class::InsideOut)
BuildRequires:	perl(Exporter::Lite)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
This module exports two functions, defer and lazy, for constructing values that
are evaluated on demand. It also exports a force function to force evaluation
of a deferred value.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL -n INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Scalar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5573 |21cr|perl-Scalar-String-0.2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Scalar-String
%define upstream_version 0.002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.002
Release:	6

Summary:	String aspects of scalars

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Scalar/Scalar-String-0.002.tar.gz

BuildRequires:	perl(Carp)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel

%description
This module is about the string part of plain Perl scalars. A scalar has a
string value, which is notionally a sequence of Unicode codepoints, but may
be internally encoded in either ISO-8859-1 or UTF-8. In places, and more so
in older versions of Perl, the internal encoding shows through. To fully
understand Perl strings it is necessary to understand these implementation
details.

This module provides functions to classify a string by encoding and to
encode a string in a desired way.

This module is implemented in XS, with a pure Perl backup version for
systems that can't handle XS.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5574 |21cr|perl-SCMxx-0.4.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module 	SCMxx

Summary:	Perl module to access siemens cell phonebooks

Name: 		perl-%{module}
Version: 	0.4.1
Release: 	10
Url:		http://sourceforge.net/projects/gscmxx/
License:	GPL or Artistic
Group:		Development/Perl
Source0:	%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:  scmxx
Requires:  scmxx
Buildarch:	noarch
Provides: perl(SCMxx::Config)

%description
Perl module to access siemens cell phonebooks.

%prep
%setup -q -n %{module}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
# (tv) fix build:
perl -pi -e 's!/usr/local/share/man/!/usr/share/man/!; s!INSTALLDIRS = site!INSTALLDIRS = vendor!' Makefile
%make

%install
%makeinstall_std

%clean 

%files
%doc Changes
%{perl_vendorlib}/%{module}.pm
%{perl_vendorlib}/%{module}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5575 |21cr|perl-Scope-Upper-0.330.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Scope-Upper
%define upstream_version 0.33
Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Act on upper scopes

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Scope/Scope-Upper-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(XSLoader)
BuildRequires: perl-devel

%description
This module lets you defer actions _at run-time_ that will take place when
the control flow returns into an upper scope. Currently, you can:

* *

  hook an upper scope end with the /reap manpage ;

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# test long time
#make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5576 |21cr|perl-SCUBA-Table-NoDeco-0.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 SCUBA-Table-NoDeco
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Calculate no-decompression dive times

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/P/PJ/PJF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides the ability to perform useful calculations using
dive-tables, including calculating dive groups and maximum no-decompression
times for repetitive dives. A selection of tables are available. The module
assumes that the diver is using air as their breathing gas.

%prep
%setup -n %{upstream_name}-%{upstream_version}
# fix perms
chmod 644 README Changes lib/SCUBA/Table/NoDeco.pm
# fix encoding
perl -pi -e 's/\015$//' README Changes lib/SCUBA/Table/NoDeco.pm

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files 
%doc Changes README
%{perl_vendorlib}/SCUBA
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5577 |21cr|perl-Search-Indexer-0.770.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  	    Search-Indexer
%define upstream_version 0.77

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.77
Release:	5
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Full-text indexer

Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Search/Search-Indexer-0.77.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(BerkeleyDB)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Search::QueryParser)
BuildArch:	noarch

%description
This module provides support for indexing a collection of documents, for
searching the collection, and displaying the sorted results, together with
contextual excerpts of the original document.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5578 |21cr|perl-Search-QueryParser-0.940.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Search-QueryParser
%define upstream_version 0.94

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Parses a query string into a data structure

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Search/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module parses a query string into a data structure to be handled by
external search engines. For examples of such engines, see the
File::Tabular manpage and the Search::Indexer manpage.

The query string can contain simple terms, "exact phrases", field names and
comparison operators, '+/-' prefixes, parentheses, and boolean connectors.

The parser can be parameterized by regular expressions for specific notions
of "term", "field name" or "operator" ; see the the new manpage method. The
parser has no support for lemmatization or other term transformations :
these should be done externally, before passing the query data structure to
the search engine.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5579 |21cr|perl-SelfLoader-1.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SelfLoader
%define upstream_version 1.24

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Automatic function loader (using __DATA__)

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel


BuildArch: noarch

%description
This module tells its users that functions in the FOOBAR package are to be
autoloaded from after the '__DATA__' token. See also the
perlsub/"Autoloading" manpage.

The __DATA__ token
    The '__DATA__' token tells the perl compiler that the perl code for
    compilation is finished. Everything after the '__DATA__' token is
    available for reading via the filehandle FOOBAR::DATA, where FOOBAR is
    the name of the current package when the '__DATA__' token is reached.
    This works just the same as '__END__' does in package 'main', but for
    other modules data after '__END__' is not automatically retrievable,
    whereas data after '__DATA__' is. The '__DATA__' token is not
    recognized in versions of perl prior to 5.001m.

    Note that it is possible to have '__DATA__' tokens in the same package
    in multiple files, and that the last '__DATA__' token in a given
    package that is encountered by the compiler is the one accessible by
    the filehandle. This also applies to '__END__' and main, i.e. if the
    'main' program has an '__END__', but a module 'require'd (_not_ 'use'd)
    by that program has a 'package main;' declaration followed by an
    ''__DATA__'', then the 'DATA' filehandle is set to access the data
    after the '__DATA__' in the module, _not_ the data after the '__END__'
    token in the 'main' program, since the compiler encounters the
    'require'd file later.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5580 |21cr|perl-Sereal-4.25.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Sereal
%define upstream_version 4.025

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Fast, compact, powerful binary (de-)serialization
# Makefile.PL defines LICENSE
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/%{upstream_name}/
Source0:        http://www.cpan.org/authors/id/Y/YV/YVES/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl
# blib not used
BuildRequires:  perl(Config)
BuildRequires:  perl(constant)
BuildRequires:  perl(Cwd)
# Devel::CheckLib not used
BuildRequires:  perl(ExtUtils::MakeMaker)
# File::Find not used
# File::Path not used
# File::Spec not used
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Sereal::Decoder) >= 3.14
BuildRequires:  perl(Sereal::Encoder) >= 3.14
# Tests:
# Benchmark not used
BuildRequires:  perl(Carp)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Devel::Peek)
BuildRequires:  perl(Encode)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(integer)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Sereal::Decoder::Constants)
BuildRequires:  perl(Sereal::Encoder::Constants)
BuildRequires:  perl(Storable)
BuildRequires:  perl(Test::LongString)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Warn)
BuildRequires:  perl(Tie::Array)
BuildRequires:  perl(Tie::Hash)
BuildRequires:  perl(Tie::Scalar)
# Time::HiRes not used
BuildRequires:  perl(threads)
BuildRequires:  perl(threads::shared)
BuildRequires:  perl(utf8)
BuildRequires:  perl(version)
# Optional tests:
BuildRequires:  perl(Test::Deep) >= 0.110
BuildRequires:  perl(Test::Deep::NoTest)

%description
Sereal is an efficient, compact-output, binary and feature-rich serialization
protocol. The Perl encoder is implemented as the Sereal::Encoder module, the
Perl decoder correspondingly as Sereal::Decoder. This Sereal module is a very
thin wrapper around both Sereal::Encoder and Sereal::Decoder. It depends on
both and loads both.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

find %{buildroot} -name '*.packlist' -delete
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5581 |21cr|perl-Sereal-Decoder-4.25.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Sereal-Decoder
%define upstream_version 4.025
%define debug_package %{nil}

Summary:	Getting the most out of the Perl-Sereal implementation
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
#Source0:	http://www.cpan.org/modules/by-module/Sereal/%{upstream_name}-%{upstream_version}.tar.gz
Source0:	https://cpan.metacpan.org/authors/id/Y/YV/YVES/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Devel::Peek)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.0.0
BuildRequires:	perl(ExtUtils::ParseXS) >= 2.210.0
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::LongString)
BuildRequires:	perl(Test::More) >= 0.880.0
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(XSLoader)

%description
Devel::CheckLib is a perl module that checks whether a particular C library
and its headers are available.

%files
%doc Changes INSTALL META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5582 |21cr|perl-Sereal-Encoder-4.25.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Sereal-Encoder
%define upstream_version 4.025
%define debug_package %{nil}

Summary:	Fast, compact, powerful binary serialization
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/Y/YV/YVES/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Devel::Peek)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.0.0
BuildRequires:	perl(ExtUtils::ParseXS) >= 2.210.0
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sereal::Decoder) >= 3.0.0
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::LongString)
BuildRequires:	perl(Test::More) >= 0.880.0
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(XSLoader)

%description
Devel::CheckLib is a perl module that checks whether a particular C library
and its headers are available.

%files
%doc Changes INSTALL META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5583 |21cr|perl-Server-Starter-0.350.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Server-Starter
%define upstream_version 0.35

Name:           perl-Server-Starter
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Superdaemon for hot-deploying server programs
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Server-Starter
Source0:        https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/Server-Starter-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  perl-generators
BuildRequires:  perl(Carp)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IO::Socket::UNIX)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Pod::Usage)
BuildRequires:  perl(Socket)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

# For the tests
BuildRequires:  perl(IO::Socket::IP)
BuildRequires:  perl(Net::EmptyPort)
BuildRequires:  perl(Test::TCP) >= 2.08
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(Test::SharedFork)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%package start_server
Summary:        perl-Server-Starter start_server script
Requires:       perl-Server-Starter = %{version}-%{release}

%description
It is often a pain to write a server program that supports graceful
restarts, with no resource leaks. Server::Starter, solves the problem by
splitting the task into two. One is start_server, a script provided as a
part of the module, which works as a superdaemon that binds to zero or
more TCP ports, and repeatedly spawns the server program that actually
handles the necessary tasks (for example, responding to incoming
connections). The spawned server programs under Server::Starter call
accept(2) and handle the requests.

%description start_server
perl-Server-Starter's start_server script.

%prep
%setup -q -n Server-Starter-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%doc Changes README.md
%license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*

%files start_server
%{_bindir}/start_server
%{_mandir}/man1/start_server.*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5584 |21cr|perl-Set-Infinite-0.650.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Set-Infinite
%define upstream_version 0.65

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Infinite Set Theory module, with Date, Time

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Set/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::Local)
BuildArch:	noarch

%description
Set::Infinite is a Set Theory module for infinite sets.

A set is a collection of objects. The objects that belong to a set are
called its members, or "elements".

As objects we allow (almost) anything: reals, integers, and objects (such
as dates).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5585 |21cr|perl-Set-IntSpan-1.190.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Set-IntSpan
%define upstream_version 1.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.19
Release:	5

Summary:	Manage sets of integers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Set/Set-IntSpan-1.19.tar.gz

BuildRequires:	perl-devel
BuildArch: noarch

%description
Set::IntSpan manages sets of integers.  It is optimized for sets that
have long runs of consecutive integers.  These arise, for example, in
.newsrc files, which maintain lists of articles:

    alt.foo: 1-21,28,31
    alt.bar: 1-14192,14194,14196-14221

Sets are stored internally in a run-length coded form.  This provides
for both compact storage and efficient computation.  In particular,
set operations can be performed directly on the encoded
representation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Set/IntSpan.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5586 |21cr|perl-Set-Object-1.420.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Set-Object
%define upstream_version 1.42

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Set of objects and strings in Perl

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Set/Set-Object-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::LeakTrace)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Devel::Peek)

%description
This module implements a set of objects, that is, an unordered collection of
objects without duplication.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# should not have been included
# http://rt.cpan.org/Ticket/Display.html?id=37799
rm -f t/misc/threads.t

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README
%{perl_vendorarch}/Set
%{perl_vendorarch}/auto/Set
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5587 |21cr|perl-Set-Scalar-1.290.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Set-Scalar
%define upstream_version 1.29

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Basic set operations


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Set/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Basic set operations.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc ChangeLog README
%{perl_vendorlib}/Set
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5588 |21cr|perl-Set-Tiny-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Set-Tiny
%define upstream_version 0.04

Name:           perl-Set-Tiny
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Simple sets of strings
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Set-Tiny
Source0:        https://cpan.metacpan.org/authors/id/T/TR/TRENDELS/Set-Tiny-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(strict)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Set::Tiny is a thin wrapper around regular Perl hashes to perform often
needed set operations, such as testing two sets of strings for equality, or
checking whether one is contained within the other.

%prep
%setup -q -n Set-Tiny-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5589 |21cr|perl-SGML-Parser-OpenSP-0.994.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name SGML-Parser-OpenSP
%define upstream_version 0.994

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        18
Summary:        Perl interface to the OpenSP SGML and XML parser

License:        GPL+ or Artistic
URL:            https://metacpan.org/release/%{upstream_name}
Source0:        https://cpan.metacpan.org/authors/id/B/BJ/BJOERN/%{upstream_name}-%{upstream_version}.tar.gz

Group:          Development/Perl

BuildRequires:  perl(Class::Accessor)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl-devel
BuildRequires:  OpenSP-devel
Requires:       perl(Class::Accessor)

%{?perl_default_filter}

%description
SGML::Parser::OpenSP provides a native Perl interface, written in C++
and XS, to the OpenSP SGML and XML parser.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# POD Coverage is interesting for upstream, not us.
perl -pi -e 's|t/99podcov.t||' MANIFEST ; rm t/99podcov.t
find . -type f -print0 | xargs -0 chmod -c -x
perl -pi -e 's|\r||g' Changes README

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'
find %{buildroot} -type f -name '*.bs' -a -size 0 -exec rm -f {} ';'
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null ';'
%_fixperms %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorarch}/auto/SGML/
%{perl_vendorarch}/SGML/
%{_mandir}/man3/SGML::Parser::OpenSP*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5590 |21cr|perl-SHA256-0.10.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SHA256
%define upstream_version 0.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	10

Summary:    A module that implements the NIST SHA-256/384/512 hash

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Digest/%{upstream_name}-%{upstream_version}b.tar.gz
Patch0:     SHA256-include.patch
BuildRequires: perl-devel

%description
The *sha256* module allows you to use the NIST SHA 256/384/512 hash
algorithm.

A new sha256 context object is created with the *new* operation followed by
a digest size which may be either 256, 384, or 512 bits. Multiple
simultaneous digest context can be maintained if desired. The context is
updated with the *add* operation which adds the strings contained in the
_LIST_ parameter.

The final message digest value is returned by the *digest* operation as a
32-, 48-, or 64-byte binary string. This operation delivers the result of
operations since the last *new* or *reset* operation. Once the operation
has been performed, the context must be *reset* before being used to
calculate another digest value.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
# FIXME: i686 test fail.
%ifnarch %{ix86}
%make test
%endif

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5591 |21cr|perl-Shell-0.720.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Shell
%define upstream_version 0.72

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Run shell commands transparently within perl
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch: noarch

%description
Caveats
    This package is included as a show case, illustrating a few Perl
    features. It shouldn't be used for production programs. Although it
    does provide a simple interface for obtaining the standard output of
    arbitrary commands, there may be better ways of achieving what you
    need.

    Running shell commands while obtaining standard output can be done with
    the C<qx/STRING/> operator, or by calling C<open> with a filename
    expression that ends with C<|>, giving you the option to process one
    line at a time. If you don't need to process standard output at all,
    you might use C<system> (in preference of doing a print with the
    collected standard output).

    Since Shell.pm and all of the aforementioned techniques use your
    system's shell to call some local command, none of them is portable
    across different systems. Note, however, that there are several built
    in functions and library packages providing portable implementations of
    functions operating on files, such as: C<glob>, C<link> and C<unlink>,
    C<mkdir> and C<rmdir>, C<rename>, C<File::Compare>, C<File::Copy>,
    C<File::Find> etc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5592 |21cr|perl-Sidef-22.70.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(Sidef\\)|perl\\(Sidef::Types::Bool::Bool\\)|perl\\(Sidef::Types::Number::Nan\\)|perl\\(Sidef::Types::Number::Number\\)


%define upstream_name    Sidef
%define upstream_version 22.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    The Sidef programming language
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/T/TR/TRIZEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dump)
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Getopt::Std)
BuildRequires: perl(List::Util)
BuildRequires: perl(Math::GMPq)
BuildRequires: perl(Math::GMPz)
BuildRequires: perl(Math::MPC)
BuildRequires: perl(Math::MPFR)
BuildRequires: perl(Math::Prime::Util::GMP)
BuildRequires: perl(Memoize)
BuildRequires: perl(POSIX)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Socket)
BuildRequires: perl(Term::ReadLine)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(parent)
BuildRequires: perl(utf8)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::Pod)

BuildArch: noarch

%description
Sidef is a modern, high-level, general-purpose programming language,
inspired by Ruby, Perl 6 and Go.

                **   **         ****   *           *********   *********
              * * ** * *        ****   **          ** ** **    ** ** **
               **   **          ****   ***         *********   *  *  *
      **        **        **    ****   *  *        ******      ******
    * * *     * * *     * * *   ****   ** **       ** **       ** **
     **        **        **     ****   ******      ******      *  *
           **   **              ****   *  *  *     *********   ***
         * * ** * *             ****   ** ** **    ** ** **    **
          **   **               ****   *********   *********   *

This is perl module for %{upstream_name}.

%files
%doc Changes LICENSE META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/man1/sidef.1*

#-------------------------------------------------
%package -n %{upstream_name}
Summary:	The Sidef programming language
Requires:	%{name} = %{EVRD}

%description -n %{upstream_name}
Sidef is a modern, high-level, general-purpose programming language,
inspired by Ruby, Perl 6 and Go.

%files -n %{upstream_name}
%doc Changes LICENSE
%{_bindir}/sidef
%{_mandir}/man3/*

#-------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5593 |21cr|perl-Signal-Mask-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Signal-Mask
%define upstream_version 0.008

Name:           perl-Signal-Mask
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Signal masks made easy
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Signal-Mask
Source0:        https://cpan.metacpan.org/authors/id/L/LE/LEONT/Signal-Mask-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION) >= 5.6
BuildRequires:  perl(Carp)
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(IPC::Signal)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(blib)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Thread::SigMask)
BuildRequires:  perl(warnings)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Signal::Mask is an abstraction around your process or thread signal mask.
It is used to fetch and/or change the signal mask of the calling process or
thread. The signal mask is the set of signals whose delivery is currently
blocked for the caller. It is available as the global hash Signal::Mask.

%prep
%setup -q -n Signal-Mask-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5594 |21cr|perl-Smart-Comments-1.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Smart-Comments
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Comments that do more than just sit there

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/N/NE/NEILB/Smart-Comments-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Filter::Simple)
BuildRequires:	perl(version)

BuildArch:	noarch

%description
Smart comments provide an easy way to insert debugging and tracking code into a
program. They can report the value of a variable, track the progress of a loop,
and verify that particular assertions are true.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Smart/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5595 |21cr|perl-Sniffer-HTTP-0.250.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Sniffer-HTTP
%define upstream_version 0.25

Name:		perl-%{upstream_name}
Summary:	Multi-connection sniffer driver
Group:		Development/Perl

Version:	%perl_convert_version %{upstream_version}
Release:	1
URL:		http://search.cpan.org/~corion/Sniffer-HTTP-0.22/lib/Sniffer/HTTP.pm
Source0:	http://www.cpan.org/authors/id/C/CO/CORION/Sniffer-HTTP-%{upstream_version}.tar.gz
License:	Artistic

BuildRequires:	perl-devel
BuildRequires:	perl(NetPacket)
BuildRequires:	perl(Net::Pcap)
BuildRequires:	perl(Exporter::Lite)
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Class::Accessor)
BuildArch:	noarch

%description
This driver gives you callbacks with the completely accumulated
HTTP::Requests or HTTP::Responses as sniffed from the TCP traffic.
You need to feed it the Ethernet, IP or TCP packets either from
a dump file or from Net::Pcap by unpacking them via NetPacket.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%files
%doc Changes MANIFEST META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#--------------------------------------------------------------

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# need internet connection
#make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5596 |21cr|perl-SNMP-Info-3.260.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SNMP-Info
%define upstream_version 3.26
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Object Oriented Perl5 Interface to Network devices and MIBs through SNMP



License:	BSD
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/SNMP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(SNMP)
BuildArch:	noarch

%description
SNMP::Info gives an object oriented interface to information obtained
through SNMP.

This module lives at http://snmp-info.sourceforge.net Check for newest
version and documentation.

This module is geared towards network devices. Subclasses exist for a
number of network devices and common MIBs.

The idea behind this module is to give a common interface to data from
network devices, leaving the device-specific hacks behind the scenes in
subclasses.

In the SYNOPSIS example we fetch the name of all the ports on the device
and the duplex setting for that port with two methods -- interfaces()
and i_duplex().

The information may be coming from any number of MIB files and is very
vendor specific. SNMP::Info provides you a common method for all
supported devices.
                                
Adding support for your own device is easy, and takes little much SNMP
knowledge.
                                    
The module is not limited to network devices. Any MIB or device can be
given an objected oriented front-end by making a module that consists of
a couple hashes. See EXTENDING SNMP::INFO.
                                    

%prep
%setup -qn %{upstream_name}-%{upstream_version}
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc COPYRIGHT ChangeLog DeviceMatrix.txt README
%{perl_vendorlib}/SNMP
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5597 |21cr|perl-SNMP-Info-3.850.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SNMP-Info
%define upstream_version 3.85

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Object Oriented Perl5 Interface to Network devices and MIBs through SNMP

License:	BSD
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/SNMP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(SNMP)
BuildRequires:	perl(Module::Build)
# test
BuildRequires:	perl(Math::BigInt)
BuildRequires:	perl(NetAddr::IP)
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(File::Slurper)
BuildRequires:	perl(Hook::LexWrap)
BuildRequires:	perl(Module::Find)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::Class::Most)
BuildRequires:	perl(Test::Distribution)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::MockObject::Extends)

BuildArch:	noarch

%description
SNMP::Info gives an object oriented interface to information obtained
through SNMP.

This module lives at http://snmp-info.sourceforge.net Check for newest
version and documentation.

This module is geared towards network devices. Subclasses exist for a
number of network devices and common MIBs.

The idea behind this module is to give a common interface to data from
network devices, leaving the device-specific hacks behind the scenes in
subclasses.

In the SYNOPSIS example we fetch the name of all the ports on the device
and the duplex setting for that port with two methods -- interfaces()
and i_duplex().

The information may be coming from any number of MIB files and is very
vendor specific. SNMP::Info provides you a common method for all
supported devices.
                                
Adding support for your own device is easy, and takes little much SNMP
knowledge.
                                    
The module is not limited to network devices. Any MIB or device can be
given an objected oriented front-end by making a module that consists of
a couple hashes. See EXTENDING SNMP::INFO.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc LICENSE Changes README
%{perl_vendorlib}/SNMP
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5598 |21cr|perl-SNMP-MIB-Compiler-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 SNMP-MIB-Compiler
%define	upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	A MIB Compiler for perl

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/SNMP/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Compare)
BuildRequires:	perl(File::Find::Rule)
BuildArch:	noarch

Requires:	perl(Data::Compare)

%description
SNMP::MIB::Compiler is a MIB compiler that
fully supports both SMI(v1) and SMIv2. This
module can be use to compile MIBs (recursively
or not) or load already compiled MIBs for
later use.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc MANIFEST README
%{perl_vendorlib}/Bundle
%{perl_vendorlib}/SNMP
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5599 |21cr|perl-SNMP_Session-1.13-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SNMP support for Perl 5

Name:		perl-SNMP_Session
Version:	1.13
Release:	6
Group:		Development/Perl
License:	Artistic
URL:		http://code.google.com/p/snmp-session/
Source0:	http://snmp-session.googlecode.com/files/SNMP_Session-%{version}.tar.gz
Patch:      SNMP_Session-1.13-fix-ipv6-error-messages.patch

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Pure Perl SNMP v1 and SNMP v2 support for Perl 5.

The SNMP operations currently supported are "get", "get-next", "get-bulk"
and "set", as well as trap generation and reception. 

%prep
%setup -q -n SNMP_Session-%{version}
%patch -p 1
perl -pi -e 's|^#!/usr/local/bin/perl\b|#!%{__perl}|' test/*

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Artistic README README.SNMP_util index.html test
%{perl_vendorlib}/SNMP_Session.pm
%{perl_vendorlib}/SNMP_util.pm
%{perl_vendorlib}/BER.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5600 |21cr|perl-Snowball-Norwegian-1.200.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Snowball-Norwegian
%define upstream_version 1.2

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Porters stemming algorithm for Denmark

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/A/AS/ASKSH/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel

BuildArch:	noarch
Requires:	locales-no
%rename perl-Lingua-Stem-Snowball-No

%description
The stem function takes a scalar as a parameter and stems the word according to
Martin Porters Danish stemming algorithm, which can be found at the Snowball
website: http://snowball.tartarus.org/.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Lingua
%{_bindir}/stemmer-no.pl
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5601 |21cr|perl-Snowball-Swedish-1.200.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Snowball-Swedish
%define upstream_version 1.2

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Porters stemming algorithm for Swedish

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/A/AS/ASKSH/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

Requires:	locales-sv
%rename	perl-Lingua-Stem-Snowball-Se

%description
The stem function takes a scalar as a parameter and stems the word according to
Martin Porters Swedish stemming algorithm, which can be found at the Snowball
website: http://snowball.tartarus.org/.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Lingua
%{_bindir}/stemmer-se.pl
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5602 |21cr|perl-SOAP-Lite-SmartProxy-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SOAP-Lite-SmartProxy
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	SOAP::Transport::HTTPX Server/Client side HTTP Smart Proxy for SOAP::Lite

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DY/DYACOB/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The SmartProxy package is intended for use in a multi-server
setting where one or more servers may not be directly accessible
to client side scripts. The SmartProxy package makes request
redirection and forwarding on a per class basis easy.  Client
scripts need not know which server is appropriate for a specific
request and may make all requests from a single master server
which can be relied upon to redirect clients to the server
currently fulfilling a given request.  The relieves a maintenance
burden on the client side.  The server may also redirect clients
to a new class name or fully qualified action URI (methods and
arguments are assumed to remain constant however).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Apache/SmartProxy.pm
%{perl_vendorlib}/SOAP/Transport/HTTPX.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5603 |21cr|perl-SOAP-payload-1.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SOAP-payload
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl module to send various forms of information as SOAP envelopes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/U/UN/UNIXTOWN/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module can be used in conjunction with other modules such as
DBI, to send data elements as part of a SOAP transaction envelope.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/SOAP/payload.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5604 |21cr|perl-SOAP-WSDL-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SOAP-WSDL
%define upstream_version 3.004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    SOAP Interface for the FullerData_x0020_Fortune_x0020_Cookie Web Service
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/SOAP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Class::Load)
BuildRequires: perl(Class::Std::Fast)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Date::Format)
BuildRequires: perl(Date::Parse)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Storable)
BuildRequires: perl(Template)
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)
BuildRequires: perl(CGI)
BuildRequires: perl(XML::Parser::Expat)
BuildArch: noarch

%description
For creating Perl classes instrumenting a web service with a WSDL
definition, read the SOAP::WSDL::Manual manpage.

For using an interpreting (thus slow and somewhat troublesome) WSDL based
SOAP client, which mimics SOAP::Lite's API, read on.

Creating Interface classes is the recommended usage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std
find %{buildroot} -size 0 -delete

%files
%doc Changes LICENSE README META.json META.yml
%{_bindir}/wsdl2perl.pl
%{_mandir}/man3/*
%{_mandir}/man1/wsdl2perl.pl*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5605 |21cr|perl-Software-License-0.104.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Software-License
%define upstream_version 0.104001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Packages that provide templated software licenses
Group:		Development/Perl
License:	GPL+ or Artistic
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(Class::ISA)
BuildRequires:	perl(Data::Section)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Sub::Install)
BuildRequires:	perl(Text::Template)

# This is noarch
BuildArch:		noarch

%description
This packages provides templated software licenses.

#----------------------------------------------------
%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/Software

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5606 |21cr|perl-Software-License-ISC-0.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Software-License-ISC
%define upstream_version 0.004

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    The ISC License
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Software/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Software::License)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(Test::More)
BuildRequires: perl(warnings)
BuildArch:     noarch

%description
Provide Software::License support for the ISC license.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTORS LEGAL LICENSE META.yml README SIGNATURE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5607 |21cr|perl-Software-License-PublicDomain-0.100.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Software-License-PublicDomain
%define upstream_version 0.1

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    A Public Domain "License"
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Software/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Software::License)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
A Public Domain "License" Software::License definition.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5608 |21cr|perl-Software-Release-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Software-Release
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    A change made in a software release
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Software/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(DateTime)
BuildRequires: perl(Moose)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildArch: noarch

%description
Software::Release is a purely informational collection of objects that you
can use to represent a release of software. Its original use-case was to
provide a contract between a git log parser and a formatter class that
outputs a changelog, but it may be useful to others to create bug trackers,
dashboards or whathaveyou.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5609 |21cr|perl-Sort-Key-1.330.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sort-Key
%define upstream_version 1.33
%global __provides_exclude Key.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Tell Sort::Key how to sort new data types
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sort/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::More) >= 1.1.9

BuildRequires: perl-devel

%description
Sort::Key provides a set of functions to sort lists of values by some
calculated key value.

It is faster (usually *much faster*) and uses less memory than other
alternatives implemented around perl sort function (ST, GRT, etc.).

Multi-key sorting functionality is also provided via the companion modules
the Sort::Key::Multi manpage, the Sort::Key::Maker manpage and the
Sort::Key::Register manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5610 |21cr|perl-Sort-Maker-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sort-Maker
%define upstream_version 0.06

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Simple way to make efficient sort subs
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Sort-Maker
Source0:        https://cpan.metacpan.org/modules/by-module/Sort/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires:  perl(B::Deparse)
BuildRequires:  perl(base)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(strict)
# Tests:
BuildRequires:  perl(Benchmark)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
Requires:       perl(B::Deparse)
Requires:       perl(List::Util)


%description
This module has two main goals: to make it easy to create correct sort
functions, and to make it simple to select the optimum sorting algorithm
for the number of items to be sorted. Sort::Maker generates complete sort
subroutines in one of four styles: plain, Orcish Maneuver, Schwartzian
Transform, and the Guttman-Rosler Transform. You can also get the source for
a sort sub you create via the sorter_source call.


%prep
%setup -q -n Sort-Maker-%{upstream_version}


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}


%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*


%check
make test


%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5611 |21cr|perl-Specio-Library-Path-Tiny-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Specio-Library-Path-Tiny
%define upstream_version 0.04

Name:           perl-Specio-Library-Path-Tiny
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Path::Tiny types and coercions for Specio
Group:          Development/Perl
License:        ASL 2.0
URL:            https://metacpan.org/release/Specio-Library-Path-Tiny
Source0:        https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/Specio-Library-Path-Tiny-%{upstream_version}.tar.gz
BuildArch:      noarch
# Build
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(overload)
BuildRequires:  perl(parent)
BuildRequires:  perl(Path::Tiny) >= 0.087
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Specio) >= 0.29
BuildRequires:  perl(Specio::Declare)
BuildRequires:  perl(Specio::Exporter)
BuildRequires:  perl(Specio::Library::Builtins)
BuildRequires:  perl(Specio::PartialDump)
# Tests
BuildRequires:  perl(File::pushd)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp) >= 0.18
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Test::Specio)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This library provides a set of Path::Tiny types and coercions for Specio.
These types can be used with Moose, Moo, Params::ValidationCompiler, and
other modules.

%prep
%setup -q -n Specio-Library-Path-Tiny-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test


%files
%license LICENSE
%doc Changes CONTRIBUTING.md README.md
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5612 |21cr|perl-Sphinx-Config-0.90.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sphinx-Config
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Sphinx search engine configuration file read/modify/write

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JJ/JJSCHUTZ/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Test::Pod::Coverage)
BuildArch:	noarch

%description
Sphinx search engine configuration file read/modify/write.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Sphinx/Config.pm
%attr(0644,root,root) %{_mandir}/man3/Sphinx::Config.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5613 |21cr|perl-Sphinx-Search-0.280.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sphinx-Search
%define upstream_version 0.28
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.28
Release:	5

Summary:	Sphinx search engine API Perl client

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JJ/JJSCHUTZ/Sphinx-Search-0.28.tar.gz

#BuildRequires:	perl-Test-Pod-Coverage
#BuildRequires:	perl-File-SearchPath
#BuildRequires:	perl-Path-Class
#BuildRequires:	sphinx
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Sphinx search engine API Perl client for Sphinx 0.9.8-svn-r871 and later.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

#%%check
#make \
#    SPHINX_SEARCHD="%{_sbindir}/sphinx-searchd" \
#    SPHINX_INDEXER="%{_bindir}/sphinx-indexer" \
#    SPHINX_PORT="20000" \
#    test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Sphinx/Search.pm
%attr(0644,root,root) %{_mandir}/man3/Sphinx::Search.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5614 |21cr|perl-Spoon-0.240.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Spoon
%define upstream_version 0.24


%if %{_use_internal_dependency_generator}
%global __provides_exclude perl\\(IO::All\\)
%else
%define _provides_exceptions perl(IO::All)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11
Summary:	A Spiffy Application Building Framework 

URL:		http://search.cpan.org/dist/%{upstream_name}
# no available category
Source:		http://search.cpan.org/CPAN/authors/id/I/IN/INGY/%{upstream_name}-%{upstream_version}.tar.gz
License:	GPL
Group:		Development/Perl
BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(IO::All)
BuildRequires:	perl(CGI)
BuildRequires:	perl(DB_File)
BuildRequires:	perl(Template)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Spiffy)
BuildRequires:	perl(URI::Escape)
BuildArch:	noarch

%description
Spoon is an Application Framework that is designed primarily for building
Social Software web applications. The Kwiki wiki software is built on top of
Spoon.

Spoon::Base is the primary base class for all the Spoon::* modules. Spoon.pm
inherits from Spiffy.pm.

Spoon is not an application in and of itself. (As compared to Kwiki) You need
to build your own applications from it.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Spoon
%{perl_vendorlib}/Spoon.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5615 |21cr|perl-Spreadsheet-Read-0.840.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Spreadsheet-Read
%define upstream_version 0.84

%if %{_use_internal_dependency_generator}
%global __requires_exclude /pro/bin/perl
%else
%define _requires_exceptions /pro/bin/perl
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Transparent read the data from a spreadsheet

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Spreadsheet/Spreadsheet-Read-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Spreadsheet::ParseExcel)
BuildRequires:	perl(Spreadsheet::ParseExcel::FmtDefault)
BuildRequires:	perl(Spreadsheet::ReadSXC)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Text::CSV)
BuildRequires:	perl(Text::CSV_PP)
BuildRequires:	perl(Text::CSV_XS)

BuildArch:	noarch

%description
Spreadsheet::Read tries to transparently read *any* spreadsheet and return
its content in a universal manner independent of the parsing module that
does the actual spreadsheet scanning.

For OpenOffice this module uses Spreadsheet::ReadSXC

For Microsoft Excel this module uses Spreadsheet::ParseExcel or
Spreadsheet::XLSX

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
yes | perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*
%{_bindir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5616 |21cr|perl-Spreadsheet-ReadSXC-0.200.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Spreadsheet-ReadSXC
%define upstream_version 0.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Extract OpenOffice 1.x spreadsheet data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Spreadsheet/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Archive::Zip)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(XML::Parser)
BuildArch:	noarch

%description
Spreadsheet::ReadSXC extracts data from OpenOffice 1.x spreadsheet files
(.sxc). It exports the function read_sxc() which takes a filename and an
optional reference to a hash of options as arguments and returns a
reference to a hash of references to two-dimensional arrays. The hash keys
correspond to the names of worksheets in the OpenOffice workbook. The
two-dimensional arrays correspond to rows and cells in the respective
spreadsheets. If you don't like this because the order of sheets is not
preserved in a hash, read on. The 'OrderBySheet' option provides an array
of hashes instead.

If you prefer to unpack the .sxc file yourself, you can use the function
read_xml_file() instead and pass the path to content.xml as an argument. Or
you can extract the XML string from content.xml and pass the string to the
function read_xml_string(). Both functions also take a reference to a hash
of options as an optional second argument.

Spreadsheet::ReadSXC requires XML::Parser to parse the XML contained in
.sxc files. Only the contents of text:p elements are returned, not the
actual values of table:value attributes. For example, a cell might have a
table:value-type attribute of "currency", a table:value attribute of
"-1500.99" and a table:currency attribute of "USD". The text:p element
would contain "-$1,500.99". This is the string which is returned by the
read_sxc() function, not the value of -1500.99.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5617 |21cr|perl-SQL-Abstract-2.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SQL-Abstract
%define upstream_version 2.000001

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Pretty Printing DebugObj
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/SQL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Data::Dumper::Concise)
BuildRequires: perl(Hash::Merge)
BuildRequires: perl(Moo)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Warn)
BuildRequires: perl(Text::Balanced)


BuildArch: noarch

%description
This module was inspired by the excellent the DBIx::Abstract manpage.
However, in using that module I found that what I really wanted to do was
generate SQL, but still retain complete control over my statement handles
and use the DBI interface. So, I set out to create an abstract SQL
generation module.

While based on the concepts used by the DBIx::Abstract manpage, there are
several important differences, especially when it comes to WHERE clauses. I
have modified the concepts used to make the SQL easier to generate from
Perl data structures and, IMO, more intuitive. The underlying idea is for
this module to do what you mean, based on the data structures you provide
it. The big advantage is that you don't have to modify your code every time
your data changes, as this module figures it out.

To begin with, an SQL INSERT is as easy as just specifying a hash of
'key=value' pairs:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5618 |21cr|perl-SQL-Abstract-Classic-1.910.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SQL-Abstract-Classic
%define upstream_version 1.91

%bcond_with test

Name:           perl-SQL-Abstract-Classic
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Generate SQL from Perl data structures
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/SQL-Abstract-Classic/
Source0:        https://cpan.metacpan.org/authors/id/R/RI/RIBASUSHI/SQL-Abstract-Classic-%{upstream_version}.tar.gz
# Inhibit installing dependencies from CPAN, bug #1873016
Patch0:         SQL-Abstract-Classic-1.91-Inhibit-installing-dependencies-from-CPAN.patch
BuildArch:      noarch
# Build
BuildRequires:  make
BuildRequires:  coreutils
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION) >= 5.6.0
BuildRequires:  perl(inc::Module::Install) >= 1.06
BuildRequires:  perl(Module::Install::Makefile)
BuildRequires:  perl(Module::Install::Metadata)
BuildRequires:  perl(Module::Install::WriteAll)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  sed
# Run-time
BuildRequires:  perl(Carp)
BuildRequires:  perl(Exporter) >= 5.57
BuildRequires:  perl(List::Util)
BuildRequires:  perl(mro)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Text::Balanced) >= 2.00
%if %{with test}
# Tests
BuildRequires:  perl(constant)
BuildRequires:  perl(overload)
BuildRequires:  perl(SQL::Abstract::Test)
BuildRequires:  perl(Storable)
BuildRequires:  perl(Test::Exception) >= 0.31
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::Warn)
%endif
Requires:       perl(Exporter) >= 5.57
Requires:       perl(mro)
Requires:       perl(Text::Balanced) >= 2.00
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Exporter\\)

%description
This module was inspired by the excellent DBIx::Abstract. However, in using
that module I found that what I really wanted to do was generate SQL, but
still retain complete control over my statement handles and use the DBI
interface. So, I set out to create an abstract SQL generation module.

%prep
%setup -q -n SQL-Abstract-Classic-%{upstream_version}
%patch0 -p1
# Remove bundled libraries
rm -r inc
sed -i -e '/^inc\// d' MANIFEST

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
%if %{with test}
make test
%endif

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5619 |21cr|perl-SQL-Abstract-Limit-0.143.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 SQL-Abstract-Limit
%define upstream_version 0.143

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Portable LIMIT emulation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/SQL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBI)
BuildRequires:	perl(SQL::Abstract) >= 1.20
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
Portability layer for LIMIT emulation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README*
%{perl_vendorlib}/SQL
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5620 |21cr|perl-SQL-Abstract-Pg-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	SQL-Abstract-Pg
%define upstream_version 1.0

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        PostgreSQL features for SQL::Abstract
Group:          Development/Perl
License:        Artistic 2.0

URL:            https://metacpan.org/release/SQL-Abstract-Pg
Source0:        https://cpan.metacpan.org/authors/id/S/SR/SRI/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:      noarch
# build requirements
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# runtime requirements
BuildRequires:  perl(SQL::Abstract)
BuildRequires:  perl(parent)
BuildRequires:  perl(strict)
BuildRequires:  perl(utf8)
BuildRequires:  perl(warnings)
# test requirements
BuildRequires:  perl(SQL::Abstract::Test)
BuildRequires:  perl(Test::More)
Requires:       perl

%{?perl_default_filter}

%description
SQL::Abstract::Pg extends SQL::Abstract with a few PostgreSQL features used
by Mojo::Pg.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%make_install
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README.md
%license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5621 |21cr|perl-SQLite-Work-0.160.100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 SQLite-Work
%define upstream_version 0.1601

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A Perl module to report on and update an SQLite database

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RU/RUBYKAT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(DBD::SQLite)
BuildRequires:	perl(Getopt::ArgvFile)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Text::NeatTemplate)
BuildRequires:	perl(Test::Pod::Coverage) >= 1.04

BuildArch:	noarch

%description
This generates HTML (and non-HTML) reports from an SQLite database, taking care
of the query-building and the report formatting. This also has methods for
adding and updating the database.

The SQLite::Work::CGI module has extra methods which deal with CGI using the
CGI module; the included "show.cgi" and "edit.cgi" are demonstration CGI
scripts which use the SQLite::Work::CGI module.

The sqlreport script uses SQLite::Work to generate reports from the
command-line.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
find . -type f | xargs chmod +w

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README.pod Changes *.cgi META.yml LICENSE
%{perl_vendorlib}/SQLite
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5622 |21cr|perl-SQL-SplitStatement-1.0.230-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SQL-SplitStatement
%define upstream_version 1.00023

Name:           perl-SQL-SplitStatement
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Split any SQL code into atomic statements
Group:          Development/Perl
License:        GPL+ or Artistic

URL:            https://metacpan.org/release/SQL-SplitStatement
Source0:        https://cpan.metacpan.org/authors/id/V/VE/VEESH/SQL-SplitStatement-%{upstream_version}.tar.gz

BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators

BuildRequires:  perl(Carp)
BuildRequires:  perl(Class::Accessor::Fast)
BuildRequires:  perl(constant)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(List::MoreUtils)
BuildRequires:  perl(Pod::Usage)
BuildRequires:  perl(Regexp::Common)
BuildRequires:  perl(SQL::Tokenizer) >= 0.22
BuildRequires:  perl(Test::Differences)
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Script::Run)
BuildRequires:  perl(base)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This is a simple module which tries to split any SQL code, even including
non-standard extensions (for the details see the "SUPPORTED DBMSs" section
of the module documentation), into the atomic statements it is composed of.

%prep
%setup -q -n SQL-SplitStatement-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
# The LICENSE file is outdated and contains the wrong address for the FSF
# https://rt.cpan.org/Ticket/Display.html?id=107996
%license LICENSE
%{_bindir}/sql-split
%{perl_vendorlib}/SQL
%{_mandir}/man1/sql-split*
%{_mandir}/man3/SQL*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5623 |21cr|perl-SQL-Statement-1.414.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       SQL-Statement
%define upstream_version 1.414

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	SQL parsing and processing engine

License:	GPL
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/SQL/SQL-Statement-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Clone)
BuildRequires:	perl(Params::Util)

BuildArch:	noarch

%description
The SQL::Statement module implements a pure Perl SQL parsing and execution
engine. While it by no means implements full ANSI standard, it does support
many features including column and table aliases, built-in and user-defined
functions, implicit and explicit joins, complexly nested search conditions, and
other features.

%prep 
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
SQL_STATEMENT_WARN_UPDATE=sure perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/SQL
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5624 |21cr|perl-SQL-Tokenizer-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SQL-Tokenizer
%define upstream_version 0.24

Name:           perl-SQL-Tokenizer
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Simple SQL tokenizer
Group:          Development/Perl
License:        GPL+ or Artistic

URL:            https://metacpan.org/release/SQL-Tokenizer
Source0:        https://cpan.metacpan.org/authors/id/I/IZ/IZUT/SQL-Tokenizer-%{upstream_version}.tar.gz

BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod) >= 1.14
BuildRequires:  perl(constant)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%{?perl_default_filter}

%description
SQL::Tokenizer is a simple tokenizer for SQL queries. It does not claim to
be a parser or query verifier. It just creates sane tokens from a valid
SQL query.

%prep
%setup -q -n SQL-Tokenizer-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}

# SQL-Tokenizer does not honor ExtUtils::MakeMaker's NO_PACKLIST
# Until this changes, we do things the old-fashioned way
# https://rt.cpan.org/Ticket/Display.html?id=107930
find %{buildroot} -type f -name .packlist -exec rm -f {} \;

%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/SQL*
%{_mandir}/man3/SQL*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5625 |21cr|perl-SQL-Translator-1.620.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 SQL-Translator
%define upstream_version 1.62
%global __requires_exclude ^perl\\(:\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Manipulate structured data definitions (SQL and more)

License:	GPL+ or Artistic
Group:		Development/Perl
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/SQL/SQL-Translator-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{upstream_name}

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(Carp::Clan)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Class::Base)
BuildRequires:	perl(Class::Data::Inheritable) >= 0.02
BuildRequires:	perl(Class::MakeMethods)
BuildRequires:	perl(DBI)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(File::ShareDir::Install)
BuildRequires:	perl(IO::Dir)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Log::Log4perl)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Parse::RecDescent) >= 1.94
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 0.6
BuildRequires:	perl(XML::Writer)
BuildRequires:	perl(YAML) >= 0.39
BuildRequires:	perl(strictures)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Package::Variant)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Text::RecordParser)
BuildRequires:	perl(GD)
BuildRequires:	perl(Graph::Directed)
BuildRequires:	perl(Spreadsheet::ParseExcel)
BuildRequires:	perl(Template)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(DBD::Pg)
BuildRequires:	perl(Test::PostgreSQL)

Requires:	perl(Class::Method::Modifiers)

BuildArch:	noarch

%description
SQL::Translator is a group of Perl modules that converts
vendor-specific SQL table definitions into other formats, such as
other vendor-specific SQL, ER diagrams, documentation (POD and HTML),
XML, and Class::DBI classes. The main focus of SQL::Translator is SQL,
but parsers exist for other structured data formats, including Excel
spreadsheets and arbitrarily delimited text files. Through the
separation of the code into parsers and producers with an object model
in between, it's possible to combine any parser with any producer, to
plug in custom parsers or producers, or to manipulate the parsed data
via the built-in object model. Presently only the definition parts of
SQL are handled (CREATE, ALTER), not the manipulation of data (INSERT,
UPDATE, DELETE).


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%attr(0755,root,root) %{_bindir}/sqlt*
%{perl_vendorlib}/*
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5626 |21cr|perl-Starlet-0.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Starlet
%define upstream_version 0.31

Name:           perl-Starlet
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Simple, high-performance PSGI/Plack HTTP server
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Starlet
Source0:        https://cpan.metacpan.org/authors/id/K/KA/KAZUHO/Starlet-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  make
BuildRequires:  %{__perl}
BuildRequires:  %{__make}
BuildRequires:  /usr/bin/start_server
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.59

BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(constant)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(JSON::XS)
BuildRequires:  perl(HTTP::Date)
BuildRequires:  perl(HTTP::Status)
BuildRequires:  perl(IO::Socket::INET)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(LWP::UserAgent) >= 5.8
BuildRequires:  perl(Net::EmptyPort)
BuildRequires:  perl(Parallel::Prefork) >= 0.17
BuildRequires:  perl(Plack) >= 0.992
BuildRequires:  perl(Plack::HTTPParser)
BuildRequires:  perl(Plack::Loader)
BuildRequires:  perl(Plack::TempBuffer)
BuildRequires:  perl(Plack::Test)
BuildRequires:  perl(Plack::Util)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Server::Starter) >= 0.06
BuildRequires:  perl(Socket)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::TCP) >= 2.1
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(Try::Tiny)
BuildRequires:  perl(warnings)

# Eliminate inc/*
BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(Module::Install::ReadmeFromPod)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Starlet is a standalone HTTP/1.0 server with support for keep-alive, prefork,
graceful shutdown, hot deploy, fast HTTP processing, and is suitable for
running HTTP application servers behind a reverse proxy.

%prep
%setup -q -n Starlet-%{upstream_version}
rm -r inc/
sed -i -e '/^inc\/.*$/d' MANIFEST

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
%{__make} pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5627 |21cr|perl-Starman-0.401.500-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Starman
%define upstream_version 0.4015

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Plack adapter for Starman
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/M/MI/MIYAGAWA/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Data::Dump)
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(HTTP::Parser::XS)
BuildRequires: perl(HTTP::Status)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Module::Build::Tiny) >= 0.35.0
BuildRequires: perl(Net::Server) >= 2.7.0
BuildRequires: perl(Plack) >= 0.997.100
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::TCP) >= 2.0.0
BuildRequires: perl(parent)
BuildRequires: perl(TAP::Harness::Env)


BuildArch:  noarch


%description
Starman is a PSGI perl web server that has unique features such as:

* High Performance

  Uses the fast XS/C HTTP header parser.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%perl_vendorlib/*
%{_bindir}/starman
%{_mandir}/man1/starman.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5628 |21cr|perl-Startup-0.103-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name Startup

Summary:	Startup module for perl 

Name:		perl-%{real_name}
Version:	0.103
Release:	10
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{real_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MS/MSCHWARTZ/%{real_name}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Startup module for perl

%prep
%setup -q -n %{real_name}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%{_bindir}/replace
%{perl_vendorlib}/Startup.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5629 |21cr|perl-Statistics-Basic-1.661.100-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Statistics-Basic
%define upstream_version 1.6611

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Epoch:		1

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	A collection of very basic statistics modules

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Statistics/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Number::Format)
BuildRequires:	perl(Scalar::Util)

BuildArch:	noarch

%description
A collection of very basic statistics modules

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 META.json META.yml

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/Statistics

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5630 |21cr|perl-Statistics-CaseResampling-0.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Statistics-CaseResampling
%define upstream_version 0.15

Name:           perl-Statistics-CaseResampling
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Resampling and calculation of medians with confidence intervals
Group:          Development/Perl
# Mersenne Twister is somewhat bundled, CPAN RT#85284
# _mt.c, mt.h:  Copyright only
# <http://www.math.sci.hiroshima-u.ac.jp/~m-mat/MT/MT2002/elicense.html>
# The rest:     GPL+ or Artistic
License:        (GPL+ or Artistic) and (Copyright Only)
URL:            https://metacpan.org/release/Statistics-CaseResampling
Source0:        https://cpan.metacpan.org/authors/id/S/SM/SMUELLER/Statistics-CaseResampling-%{upstream_version}.tar.gz
BuildRequires:  findutils
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# Run-time:
BuildRequires:  perl(Exporter)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(XSLoader)
# Tests:
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Provides:       bundled(mt19937ar)

%{?perl_default_filter}

%description
The purpose of this module is to calculate the median (or in principle also
other statistics) with confidence intervals on a sample. To do that, it uses
a technique called boot-strapping. In a nutshell, it resamples the sample
a lot of times and for each resample, it calculates the median. From the
distribution of medians, it then calculates the confidence limits.

%prep
%setup -q -n Statistics-CaseResampling-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="$RPM_OPT_FLAGS"
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -size 0 -delete
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Statistics*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5631 |21cr|perl-Statistics-Descriptive-3.80.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Statistics-Descriptive
%define upstream_version 3.0800

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Module of basic descriptive statistical functions
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Statistics/Statistics-Descriptive-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Test::CPAN::Changes)
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(Test::TrailingSpace)
BuildRequires:  perl(List::MoreUtils)

BuildArch: noarch

%description
This module provides basic functions used in descriptive statistics. It has an
object oriented design and supports two different types of data storage and
calculation objects: sparse and full. With the sparse method, none of the data
is stored and only a few statistical measures are available. Using the full
method, the entire data set is retained and additional functions are available.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README Changes META.json META.yml
%{perl_vendorlib}/Statistics
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5632 |21cr|perl-Statistics-Distributions-1.20.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Statistics-Distributions
%define	upstream_version 1.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    10
Summary:	Calc critical values & upper probabilities of common statistical distributions
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MI/MIKEK/%{upstream_name}-%{upstream_version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This Perl module calculates percentage points (5 significant digits)
of the u (standard normal) distribution, the student's t distribution,
the chi-square distribution and the F distribution. It can also
calculate the upper probability (5 significant digits) of the u
(standard normal), the chi-square, the t and the F distribution.

These critical values are needed to perform statistical tests, like
the u test, the t test, the F test and the chi-squared test, and to
calculate confidence intervals.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes
%{perl_vendorlib}/Statistics/*.pm
%{perl_vendorlib}/auto/Statistics/Distributions/autosplit.ix
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5633 |21cr|perl-Statistics-TTest-1.1.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Statistics-TTest
%define	upstream_version 1.1.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	18
Summary:	Perl module to perform T-test on 2 independent samples
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Statistics/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Statistics::Descriptive)   >= 2.60.0
BuildRequires:	perl(Statistics::Distributions) >= 0.70.0

BuildArch:	noarch

%description
This is the Statistical T-Test module to compare 2 independent
samples. It takes 2 array of point measures, compute the confidence
intervals using the PointEstimation module (which is also included in
this package) and use the T-statistic to test the null hypothesis. If
the null hypothesis is rejected, the difference will be given as the
lower_clm and upper_clm of the TTest object. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# perl path hack
find -type f | xargs perl -pi -e "s|/usr/local/bin/perl|%{_bindir}/perl|g"

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Statistics/*.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5634 |21cr|perl-STD-20101111.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    STD
%define upstream_version 20101111

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(STD\\)|perl\\(STD_P6\\)|perl\\(RE_ast\\)|perl\\(STD::Cursor\\)|perl\\(STD_P5\\)|perl\\(mangle.pl
%endif

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    10

Summary:	%{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SO/SOREAR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(YAML::XS)

BuildArch:	noarch

%description
%{upstream_name} perl module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc META.yml LICENSE
%{_bindir}/*
%{_mandir}/man1/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5635 |21cr|perl-Stream-Buffered-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Stream-Buffered
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Temporary buffer to save bytes

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Stream/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildArch: noarch

%description
Stream::Buffered is a buffer class to store arbitrary length of byte
strings and then get a seekable filehandle once everything is buffered. It
uses PerlIO and/or temporary file to save the buffer depending on the
length of the size.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5636 |21cr|perl-String-Approx-3.270.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Approx
%define upstream_version 3.27
Name:       perl-%{upstream_name}
Version:    %perl_convert_version 3.27
Release:	6

Summary:    Perl extension for approximate matching (fuzzy matching)

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/String/String-Approx-3.27.tar.gz

BuildRequires:  perl-devel

%description
String::Approx lets you match and substitute strings approximately. With this
you can emulate errors: typing errorrs, speling errors, closely related
vocabularies (colour color), genetic mutations (GAG ACT), abbreviations
(McScot, MacScot).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%check
%make test

%files 
%doc Artistic COPYRIGHT COPYRIGHT.agrep ChangeLog LGPL PROBLEMS README README.apse
%{perl_vendorarch}/auto/String
%{perl_vendorarch}/String
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5637 |21cr|perl-String-BufferStack-1.160.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-BufferStack
%define upstream_version 1.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Nested buffers for templating systems

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/String-BufferStack-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
'String::BufferStack' provides a framework for storing nested buffers. By
default, all of the buffers flow directly to the output method, but
individual levels of the stack can apply filters, or store their output in
a scalar reference.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/String/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5638 |21cr|perl-String-CamelCase-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-CamelCase
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Internal exception class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/H/HI/HIO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5639 |21cr|perl-String-Diff-0.70.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Diff
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Simple diff to String

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		String-Diff-0.07-Fix-the-test-suite-for-YAML-1.21-compatibility.patch
Patch1:		String-Diff-0.07-podspell.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::Diff)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::Install::ReadmeFromPod)
BuildRequires:	perl(Module::Install::ReadmeMarkdownFromPod)
BuildRequires:	perl(Module::Install::Repository)
BuildRequires:	perl(Module::Install::GithubMeta)
BuildRequires:	perl(Test::Base)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(YAML)
BuildArch:	noarch

%description
String::Diff is the difference of a consecutive string is made. after
general diff is done, the difference in the line is searchable.

the mark of the addition and the deletion can be freely changed. the color
is colored to the terminal with ANSI, using the HTML display it.

after the line is divided, diff is taken when 'linebreak' option is
specified.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5640 |21cr|perl-String-Divert-0.960.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Divert
%define upstream_version 0.96

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	String::Divert - String Object supporting Folding and Diversions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RS/RSE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
String::Divert is small Perl 5 module providing a scalar-like string
object with some overloaded operators, supporting the concept of Fold-
ing and Diversion. This allows nested generation of structured output.
The idea is to decouple the sequential generation of output from the
nested and non-sequential structure of the output.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/String/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5641 |21cr|perl-String-Errf-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Errf
%define upstream_version 0.008

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A simple sprintf-like dialect

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/String/String-Errf-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Cpanel::JSON::XS)
BuildRequires:	perl(Date::Format)
BuildRequires:	perl(JSON)
BuildRequires:	perl(JSON::MaybeXS)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(String::Formatter)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::More) >= 0.960.0
BuildRequires:	perl(Time::Piece)
BuildRequires:	perl(autodie)
BuildArch:	noarch

%description
String::Errf provides 'errf', a simple string formatter that works
something like 'perlfunc/sprintf'. It is implemented using the
String::Formatter manpage and the Sub::Exporter manpage. Their
documentation may be useful in understanding or extending String::Errf.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5642 |21cr|perl-String-Escape-2010.2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Escape
%define upstream_version 2010.002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Registry of string functions, including backslash escapes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module provides a flexible calling interface to some
frequently-performed string conversion functions, including applying and
removing C/Unix-style backslash escapes like \n and \t, wrapping and
removing double-quotes, and truncating to fit within a desired length.

Furthermore, the escape() function provides for dynamic selection of
operations by using a package hash variable to map escape specification
strings to the functions which implement them. The lookup imposes a bit
of a performance penalty, but allows for some useful late-binding
behaviour. Compound specifications (ex. 'quoted uppercase') are expanded
to a list of functions to be applied in order. Other modules may also
register their functions here for later general use. (See the "CALLING
BY NAME" section below for more.)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5643 |21cr|perl-String-Flogger-1.101.245-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Flogger
%define upstream_version 1.101245

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	String munging for loggers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(JSON)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(JSON::MaybeXS)

BuildArch:	noarch
Requires:	perl(JSON)

%description
String munging for loggers.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5644 |21cr|perl-String-Format-1.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Format
%define upstream_version 1.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Sprintf-like string formatting capabilities with arbitrary format definitions 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
String::Format lets you define arbitrary printf-like format sequences to be
expanded. This module would be most useful in configuration files and reporting
tools, where the results of a query need to be formatted in a particular way.
It was inspired by mutt's index_format and related directives (see
<URL:http://www.mutt.org/doc/manual/manual-6.html#index_format>).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes README
%{perl_vendorlib}/String
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5645 |21cr|perl-String-Formatter-1.235.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Formatter
%define upstream_version 1.235

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Ways to put String::Formatter to use

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/String-Formatter-%{upstream_version}.tar.gz
Source1:	%{name}.rpmlintrc

BuildRequires:	perl-devel
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Sub::Exporter)
BuildArch:	noarch

%description
String::Formatter is a tool for building sprintf-like formatting routines.
It supports named or positional formatting, custom conversions, fixed
string interpolation, and simple width-matching out of the box. It is easy
to alter its behavior to write new kinds of format string expanders. For
most cases, it should be easy to build all sorts of formatters out of the
options built into String::Formatter.

Normally, String::Formatter will be used to import a sprintf-like routine
referred to as "'stringf'", but which can be given any name you like. This
routine acts like sprintf in that it takes a string and some inputs and
returns a new string:

  my $output = stringf "Some %a format %s for you to %u.\n", { ... };

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5646 |21cr|perl-String-Koremutake-0.300.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Koremutake
%define upstream_version 0.30

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Convert to/from Koremutake Memorable Random Strings

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/L/LB/LBROCARD/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Exception)
BuildRequires:  perl(Error)
BuildArch:	noarch

%description
The String::Koremutake module converts to and from Koremutake Memorable Random
Strings.

The term "Memorable Random String" was thought up by Sean B. Palmer as a name
for those strings like dopynl, glargen, glonknic, spoopwiddle, and kebble etc.
that don't have any conventional sense, but can be used as random identifiers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc README CHANGES
%{perl_vendorlib}/String/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5647 |21cr|perl-String-Perl-Warnings-1.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Perl-Warnings
%define upstream_version 1.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Determine if a string looks like a perl warning

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/String-Perl-Warnings-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Regexp::Assemble)
BuildRequires:	perl(Test::More)
Requires:	perl(Regexp::Assemble)
BuildArch:	noarch

%description
String::Perl::Warnings can be used to determine if a string of arbitary
text appears to look like a warning generated by perl.

It includes all warnings for every stable perl release from '5.6.0' to
'5.12.0'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5648 |21cr|perl-String-Random-0.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Random
%define upstream_version 0.32

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl module to generate random strings based

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/String/String-Random-%{upstream_version}.tar.gz

BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildArch:     noarch

%description
This module makes it trivial to generate random strings.

As an example, let's say you are writing a script that needs to generate a
random password for a user. The relevant code might look something like
this:

  use String::Random;
  $pass = new String::Random;
  print "Your password is ", $pass->randpattern("CCcc!ccn"), "\n";

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/String

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5649 |21cr|perl-String-RewritePrefix-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define upstream_name    String-RewritePrefix
%define upstream_version 0.009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Rewrite strings based on a set of known prefixes

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/String/String-RewritePrefix-%{upstream_version}.tar.gz

BuildRequires: perl(Sub::Exporter)  >= 0.987.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(ExtUtils::MakeMaker)  >= 7.40.0 
BuildRequires: perl(Carp)  >= 1.360.0
BuildRequires: perl(strict)
BuildRequires: perl(warnings)  
BuildRequires: perl-devel

#This is noarch.
BuildArch:	noarch

%description
Rewrite strings based on a set of known prefixes

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5650 |21cr|perl-String-Similarity-1.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Similarity
%define upstream_version 1.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	8

Summary:    Perl extension for calculating the similarity of two strings

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:  perl-devel

%description
$factor = similarity $string1, $string2, [$limit] 

The similarity-function calculates the similarity index of its two arguments. A
value of 0 means that the strings are entirely different. A value of 1 means
that the strings are identical. Everything else lies between 0 and 1 and
describes the amount of similarity between the strings.

It roughly works by looking at the smallest number of edits to change one
string into the other.

You can add an optional argument $limit (default 0) that gives the minimum
similarity the two strings must satisfy. similarity stops analyzing the string
as soon as the result drops below the given limit, in which case the result
will be invalid but lower than the given $limit. You can use this to speed up
the common case of searching for the most similar string from a set by
specifing the maximum similarity found so far.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files 
%doc COPYING Changes README
%{perl_vendorarch}/auto/String
%{perl_vendorarch}/String
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5651 |21cr|perl-String-ToIdentifier-EN-0.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-ToIdentifier-EN
%define upstream_version 0.12

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Convert Strings to Unicode English Program
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Lingua::EN::Inflect::Phrase)
BuildRequires: perl(Package::Stash)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Unidecode)
BuildRequires: perl(Unicode::UCD)
BuildRequires: perl(base)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This module provides a utility method, the /to_identifier manpage for
converting an arbitrary string into a readable representation using the
ASCII subset of '\w' for use as an identifier in a computer program. The
intent is to make unique identifier names from which the content of the
original string can be easily inferred by a human just by reading the
identifier.

If you need the full set of '\w' including Unicode, see the subclass the
String::ToIdentifier::EN::Unicode manpage.

Currently, this process is one way only, and will likely remain this way.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5652 |21cr|perl-String-Tokenizer-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Tokenizer
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A simple string tokenizer

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
A simple string tokenizer which takes a string and splits it on whitespace.
It also optionally takes a string of characters to use as delimiters, and
returns them with the token set as well. This allows for splitting the
string in many different ways.

This is a very basic tokenizer, so more complex needs should be either
addressed with a custom written tokenizer or post-processing of the output
generated by this module. Basically, this will not fill everyones needs,
but it spans a gap between simple 'split / /, $string' and the other
options that involve much larger and complex modules.

Also note that this is not a lexical analyser. Many people confuse
tokenization with lexical analysis. A tokenizer mearly splits its input
into specific chunks, a lexical analyzer classifies those chunks. Sometimes
these two steps are combined, but not here.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/String

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5653 |21cr|perl-String-Trim-0.5.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Trim
%define upstream_version 0.005

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Trim whitespace off your strings
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Exporter)

BuildArch: noarch

%description
'String::Trim' trims whitespace off your strings. the chomp manpage trims
only '$/' (typically, that's newline), but 'trim' will trim all leading and
trailing whitespace.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5654 |21cr|perl-String-Truncate-1.100.603-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Truncate
%define upstream_version 1.100603

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A module for when strings are too long to be displayed in

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Sub::Install)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
A module for when strings are too long to be displayed in.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5655 |21cr|perl-String-Util-1.320.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-Util
%define upstream_version 1.32

%bcond_with bootstrap

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Handy string processing utilities

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/String/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Tiny)
%if %{without bootstrap}
BuildRequires:	perl(Debug::ShowStuff)
%endif

BuildArch:	noarch

%description
String::Util provides a collection of small, handy utilities
for processing strings.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL INSTALLDIRS=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdir=vendor

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5656 |21cr|perl-Sub-Exporter-ForMethods-0.100.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-Exporter-ForMethods
%define upstream_version 0.100055

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Helper routines for using Sub::Exporter to build methods

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Sub/Sub-Exporter-ForMethods-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
The synopsis section, above, looks almost indistinguishable from any other
use of Sub::Exporter, apart from the use of 'method_installer'. It is
nearly indistinguishable in behavior, too. The only change is that
subroutines exported from Method::Builder into named slots in
Vehicle::Autobot will be wrapped in a subroutine called
'Vehicle::Autobot::transform'. This will insert a named frame into stack
traces to aid in debugging.

More importantly (for the author, anyway), they will not be removed by
namespace::autoclean. This makes the following code work:

  package MyLibrary;

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5657 |21cr|perl-Sub-Exporter-GlobExporter-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-Exporter-GlobExporter
%define upstream_version 0.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Export shared globs with Sub::Exporter collectors

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Sub/Sub-Exporter-GlobExporter-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Export shared globs with Sub::Exporter collectors.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5658 |21cr|perl-Sub-HandlesVia-0.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-HandlesVia
%define upstream_version 0.016

Name:           perl-Sub-HandlesVia
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Alternative handles_via implementation
Group:          Development/Perl
License:        GPL+ or Artistic

URL:            https://metacpan.org/dist/Sub-HandlesVia
Source0:        https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/Sub-HandlesVia-%{upstream_version}.tar.gz

BuildArch:      noarch

BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter

BuildRequires:  perl >= 0:5.008
BuildRequires:  perl(Class::Method::Modifiers)
BuildRequires:  perl(Class::Tiny)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Eval::TypeTiny)
BuildRequires:  perl(Exporter::Shiny)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(List::Util) >= 1.54
BuildRequires:  perl(Role::Tiny)
BuildRequires:  perl(Sub::Util)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(Type::Params)
BuildRequires:  perl(Types::Standard)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

# Optional, for improved tests
BuildRequires:  perl(Moo)
BuildRequires:  perl(Moose)
BuildRequires:  perl(MooseX::ArrayRef)
BuildRequires:  perl(MooseX::InsideOut)
BuildRequires:  perl(MooX::TypeTiny)
BuildRequires:  perl(Mouse)
BuildRequires:  perl(Test::Moose)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
If you've used Moose's native attribute traits, or MooX::HandlesVia before,
you should have a fairly good idea what this does.

%prep
%setup -q -n Sub-HandlesVia-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install} DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%license LICENSE
%doc Changes CREDITS README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5659 |21cr|perl-Sub-Info-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-Info
%define upstream_version 0.002

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Tool for inspecting subroutines
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sub/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(B)
BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Importer)
BuildRequires: perl(Test2::Tools::Tiny)
BuildArch: noarch

%description
Tool to inspect subroutines.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5660 |21cr|perl-Sub-Information-0.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-Information
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Get subroutine information

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Sub/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(B)
BuildRequires:	perl(Data::Dump::Streamer)
BuildRequires:	perl(Devel::Peek)
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
Typically, if we need to get information about code references, we have to
remember which of myriad modules to load. Need to know if it's blessed?
'Scalar::Util' will do that. Package it was declared in: 'Sub::Identify'.
Source code: 'Data::Dump::Streamer'. And so on ...

This module integrates those together so that you don't have to remember
them.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5661 |21cr|perl-Sub-Override-0.90.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Sub-Override
%define upstream_version 0.09
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.09
Release:	5

Summary:	Perl extension for easily overriding subroutines

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/O/OV/OVID/Sub-Override-0.09.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildArch:	noarch

%description
Sub::Override is a perl module that allows the programmer to simply name a
subroutine to replace and to supply a sub to replace it with.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Sub/Override.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5662 |21cr|perl-SVG-2.860.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 SVG
%define upstream_version 2.86

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl extension for generating Scalable Vector Graphics (SVG) documents

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

BuildArch:	noarch

%description
SVG is a Perl module which generates a nested data structure containing the
DOM representation of an SVG (Scalable Vector Graphics) image. Using SVG, you
can generate SVG objects, embed other SVG instances into it, access the DOM
object, create and access javascript, and generate SMIL animation content.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl -pi -e 's/\cM//' examples/*.{pl,cgi}
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%files 
%doc README Changes examples
%{perl_vendorlib}/SVG
%{perl_vendorlib}/SVG.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5663 |21cr|perl-SVG-Graph-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 SVG-Graph
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Visualize your data in Scalable Vector Graphics (SVG) format

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/SVG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(SVG)
BuildRequires:	perl(Statistics::Descriptive)
BuildRequires:	perl(Math::Spline)
BuildRequires:	perl(Tree::DAG_Node)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
SVG::Graph is a suite of perl modules for plotting data. SVG::Graph currently
supports plots of one-, two- and three-dimensional data, as well as N-ary
rooted trees. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files 
%doc README Changes
%{perl_vendorlib}/SVG
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5664 |21cr|perl-SVG-Parser-1.30.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 SVG-Parser
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Perl XML Parser for Scalable Vector Graphics (SVG) documents

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/SVG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(SVG)
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(XML::SAX)
BuildRequires:	perl(XML::SAX::Expat)
Buildarch:	noarch

%description
SVG::Parser is an XML parser for SVG Documents. It takes XML as input and
produces an SVG object as its output. SVG::Parser supports both XML::SAX and
XML::Parser (Expat) parsers, with SAX preferred by default.
Only one of these needs to be installed for SVG::Parser to function.

A list of preferred parsers may be specified in the import list.
SVG::Parser will use the first parser that successfully loads.
Some basic measures are taken to provide cross-compatibility.
Applications requiring more advanced parser features should use
the relevant parser module directly; see SVG::Parser::Expat and 
SVG::Parser::SAX.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

%files
%doc README examples
%{perl_vendorlib}/SVG
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5665 |21cr|perl-SVN-Class-0.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SVN-Class
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Represents the repository of a Subversion workspace

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/SVN/SVN-Class-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IPC::Cmd)
BuildRequires:	perl(IPC::Run)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Path::Class::File::Stat)
BuildRequires:	perl(Rose::Object)
BuildRequires:	perl(Rose::URI)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::ParseWords)
BuildRequires:	perl(URI::Escape)
BuildArch:	noarch

%description
SVN::Class extends Path::Class to allow for basic Subversion workspace
management. SVN::Class::File and SVN::Class::Dir are subclasses of
Path::Class::File::Stat and Path::Class::Dir respectively.

SVN::Class does not use the SVN::Core Subversion SWIG bindings. Instead,
the 'svn' binary tool is used for all interactions, using IPC::Cmd. This
design decision was made for maximum portability and to eliminate non-CPAN
dependencies.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5666 |21cr|perl-SVN-Look-0.420.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SVN-Look
%define upstream_version 0.42


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A caching wrapper around the svnlook command
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/SVN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(URI::file)
BuildRequires: perl(XML::Simple)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: subversion
BuildRequires: subversion-tools

Requires: subversion


BuildArch: noarch

%description
The svnlook command is the workhorse of Subversion hook scripts, being used
to gather all sorts of information about a repository, its revisions, and
its transactions. This module provides a simple object oriented interface
to a specific svnlook invocation, to make it easier to hook writers to get
and use the information they need. Moreover, all the information gathered
by calling the svnlook command is cached in the object, avoiding
repetitious calls.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make

%check
#make test

%install
%makeinstall_std

%files
%doc README LICENSE META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5667 |21cr|perl-SVN-Notify-2.870.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SVN-Notify
%define upstream_version 2.87

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Subversion activity notification

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/SVN/SVN-Notify-%{upstream_version}.tar.gz

BuildRequires:  perl(Module::Build)
BuildRequires:  perl(HTML::Parser)
BuildRequires:  perl(Email::Address::XS)
BuildRequires:  perl(Test::More)
BuildRequires:  sendmail-command

BuildArch:      noarch

%description
This class may be used for sending email messages for Subversion repository
activity. There are a number of different modes supported, and SVN::Notify is
fully subclassable, to easily add new functionality. By default, A list of all
the files affected by the commit will be assembled and listed in a single
message.

This package also provides a svnnotify command-line tool that can be directly
used in subversion post-commit scripts.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes
%{perl_vendorlib}/SVN
%{_mandir}/*/*
%{_bindir}/svnnotify

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5668 |21cr|perl-SVN-Notify-Config-0.91.100-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	SVN-Notify-Config
%define upstream_version	0.0911

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Config-driven Subversion notification

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/SVN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(SVN::Notify)
BuildRequires:	perl(YAML)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More)
BuildRequires:	subversion
BuildArch:	noarch

%description
This module is a YAML-based configuration wrapper on SVN::Notify.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
export LC_ALL=C
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{perl_vendorlib}/SVN
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5669 |21cr|perl-SVN-Notify-Mirror-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SVN-Notify-Mirror
%define upstream_version 0.040

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Keep a mirrored working copy of a repository path

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/SVN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(SVN::Notify)
BuildRequires:	subversion-tools
BuildRequires:	sendmail-command
BuildArch:	noarch

%description
Keep a local directory in sync with a portion of a Subversion repository.
Typically used to keep a development web server in sync with the changes made
to the repository.

NOTE: because 'svn export' is not able to be consistently updated, the sync'd
directory must be a full working copy.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor << EOF
y
EOF
./Build

# Fails with modern perl
# %check
# export SVNLOOK=%{_bindir}/svnlook
# export LC_ALL=C
# ./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{perl_vendorlib}/SVN
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5670 |21cr|perl-SVN-Simple-0.280.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SVN-Simple
%define upstream_version 0.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Simple interface to subversion's editor interface

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/C/CL/CLKAO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-SVN
#needed for testing
BuildRequires:  subversion

BuildArch:  noarch

%description
SVN::Simple::Edit wraps the subversion delta editor with 
a perl friendly interface and then you could easily 
drive it for describing changes to a tree.

A common usage is to wrap the commit editor, so you could make 
commits to a subversion repository easily.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES README 
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5671 |21cr|perl-SVN-SVNLook-0.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SVN-SVNLook
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Perl wrapper to the svnlook command

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/SVN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::More)
BuildArch:      noarch

%description
SVN::SVNLook runs the command line client. This module was created to make
adding hooks script easier to manipulate.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
for file in `find lib -type f` Changes README; do
    chmod 644 $file
    perl -pi -e 'tr/\r//d' $file
done

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{perl_vendorlib}/SVN
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5672 |21cr|perl-Switch-2.170.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Switch
%define upstream_version 2.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A switch statement for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/C/CH/CHORNY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Filter::Util::Call)
BuildRequires: perl(Text::Balanced) >= 2.0.0
BuildRequires: perl(base)

BuildArch:	noarch

%description
The Switch.pm module implements a generalized case mechanism that covers
most (but not all) of the numerous possible combinations of switch and case
values described above.

The module augments the standard Perl syntax with two new control
statements: 'switch' and 'case'. The 'switch' statement takes a single
scalar argument of any type, specified in parentheses. 'switch' stores this
value as the current switch value in a (localized) control variable. The
value is followed by a block which may contain one or more Perl statements
(including the 'case' statement described below). The block is
unconditionally executed once the switch value has been cached.

A 'case' statement takes a single scalar argument (in mandatory parentheses
if it's a variable; otherwise the parens are optional) and selects the
appropriate type of matching between that argument and the current switch
value. The type of matching used is determined by the respective types of
the switch value and the 'case' argument, as specified in Table 1. If the
match is successful, the mandatory block associated with the 'case'
statement is executed.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5673 |21cr|perl-Symbol-Global-Name-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Symbol-Global-Name
%define upstream_version 0.05

Name:           perl-Symbol-Global-Name
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Finds name and type of a global variable
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Symbol-Global-Name
Source0:        https://cpan.metacpan.org/authors/id/A/AL/ALEXMV/Symbol-Global-Name-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-interpreter >= 1:5.8.0
BuildRequires:  perl-generators
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(Module::Install::ReadmeFromPod)

%description
Lookups symbol table to find an element by reference.

%prep
%setup -q -n Symbol-Global-Name-%{upstream_version}
rm -rf inc/

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5674 |21cr|perl-syntax-0.4.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    syntax
%define upstream_version 0.004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    Activate syntax extensions
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/P/PH/PHAYLON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Data::OptList) >= 0.104.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(FindBin)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Test::More) >= 0.940.0
BuildRequires: perl(namespace::clean)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Package::Stash)
BuildArch:     noarch

Provides: perl(syntax)

%description
This module activates community provided syntax extensions to Perl. You
pass it a feature name, and optionally a scalar with arguments, and the
dispatching system will load and install the extension in your package.

The import arguments are parsed with the Data::OptList manpage. There are
no standardised options. Please consult the documentation for the specific
syntax feature to find out about possible configuration options.

The passed in feature names are simply transformed: 'function' becomes the
Syntax::Feature::Function manpage and 'foo_bar' would become
'Syntax::Feature::FooBar'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5675 |21cr|perl-Syntax-Highlight-Engine-Kate-0.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define upstream_name    Syntax-Highlight-Engine-Kate
%define upstream_version 0.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A Plugin for Component-Pascal syntax highlighting


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Syntax/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Test::Warn)
BuildRequires: perl(Test::Differences)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(Term::ANSIColor)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel

%description
Syntax::Highlight::Engine::Kate is a port to perl of the syntax highlight
engine of the Kate text editor.

The language xml files of kate have been rewritten to perl modules using a
script. These modules function as plugins to this module.

Syntax::Highlight::Engine::Kate inherits
Syntax::Highlight::Engine::Kate::Template.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5676 |21cr|perl-Syntax-Keyword-Junction-0.3.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Syntax-Keyword-Junction
%define upstream_version 0.003008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Perl6 style Junction operators in Perl5
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Syntax/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Sub::Exporter::Progressive) >= 0.1.6
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(Package::Stash)
BuildRequires: perl(syntax)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This is a lightweight module which provides 'Junction' operators, the most
commonly used being 'any' and 'all'.

Inspired by the Perl6 design docs, the
http://dev.perl.org/perl6/doc/design/exe/E06.html manpage.

Provides a limited subset of the functionality of the
Quantum::Superpositions manpage, see the /"SEE ALSO" manpage for comment.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5677 |21cr|perl-Sysadm-Install-0.480.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Sysadm-Install
%define upstream_version 0.48

Summary:	Typical installation tasks for system administrators



Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Sysadm-Install/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MS/MSCHILLI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(File::Which)
BuildRequires:	perl(Archive::Tar)
BuildRequires:	perl(Config)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Expect)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Temp) >= 0.16
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Status)
BuildRequires:	perl(Log::Log4perl) >= 1.00
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Term::ReadKey)
# For test suite
BuildRequires:	perl(Test::More)
# Runtime deps not automatically picked up by RPM
Requires:	perl(Archive::Tar)
Requires:	perl(Config)
Requires:	perl(Encode)
Requires:	perl(Expect)
Requires:	perl(HTTP::Request)
Requires:	perl(HTTP::Status)
Requires:	perl(LWP::UserAgent)

BuildArch:	noarch

%description
"Sysadm::Install" executes shell-like commands performing typical
installation tasks: Copying files, extracting tarballs, calling "make".
It has a "fail once and die" policy, meticulously checking the result of
every operation and calling "die()" immediately if anything fails,
with optional logging of everything.

"Sysadm::Install" also supports a *dry_run* mode, in which it logs
everything, but suppresses any write actions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test 

%install
%makeinstall_std

%files
%doc Changes README 
%{_bindir}/one-liner
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5678 |21cr|perl-Sys-CPU-0.610.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-CPU
%define upstream_version 0.61

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    9

Summary:    Access CPU info. number, etc on Win and UNIX
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sys/%{upstream_name}-%{upstream_version}.tar.gz
# Support cpu_type on ARM and AArch64, bug #1093266, CPAN RT#95400
Patch0:         Sys-CPU-0.61-Add-support-for-cpu_type-on-ARM-and-AArch64-Linux-pl.patch
# Accept undefined cpu_clock on ARM and AArch64, bug #1093266, CPAN RT#95400
Patch1:         Sys-CPU-0.61-cpu_clock-can-be-undefined-on-an-ARM.patch

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel

%description
In responce to a post on perlmonks.org, a module for counting the number of
CPU's on a system. Support has now also been added for type of CPU and
clock speed. While much of the code is from UNIX::Processors, win32 support
has been added (but not tested).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1
%patch1 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5679 |21cr|perl-Sys-HostIP-2.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-HostIP
%define upstream_version 2.120

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl module to get ip address related info

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/~bluelines/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/X/XS/XSAWYERX/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::TinyMocker)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	/sbin/ip
Requires:	/sbin/ip
BuildArch:	noarch

%description
Sys::HostIP does what it can to determine the ip address of your machine.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5680 |21cr|perl-Sys-Info-0.781.100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-Info
%define upstream_version 0.7811

Summary:	Fetch information from the host system

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/B/BU/BURAK/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Sys::Info::Constants)
BuildRequires:	perl(Test::Sys::Info)
BuildRequires:	perl(Sys::Info::Driver::Linux::OS)
Requires:	perl(Sys::Info::Constants)
Requires:	perl(Sys::Info::Driver::Linux::OS)
BuildArch:	noarch

%description
Perl for fetch system information from the host.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Require ifconfig access etc
rm t/04-driver.t
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5681 |21cr|perl-Sys-Info-Base-0.780.700-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-Info-Base
%define upstream_version 0.7807

%global __requires_exclude perl\\(TARGET_CLASS\\)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Base classes for Sys::Info

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/B/BU/BURAK/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Text::Template::Simple)
BuildRequires:	perl(CGI)

BuildArch:	noarch

%description
Perl base classes for Sys::Info.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5682 |21cr|perl-Sys-Info-Driver-Linux-0.790.500-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-Info-Driver-Linux
%define upstream_version 0.7905

%define debug_package %{nil}

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Linux driver for Sys::Info

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Sys/BURAK/Sys-Info-Driver-Linux-%{upstream_version}.tar.gz

BuildRequires:  lsb-release
BuildRequires:	perl(Test::Sys::Info)
BuildRequires:	perl(Linux::Distribution)
BuildRequires:	perl(Unix::Processors)
BuildRequires:	perl-devel
BuildRequires:  perl(Config::General)

Requires:	lsb-release
Requires:	perl(Linux::Distribution)
Requires:	perl(Sys::Info::Base)
Requires:	perl(Unix::Processors)

%description
Perl module for linux driver for Sys::Info  .

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# (tpg) fails on 5.12.0
rm -rf t/03-basic.t
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5683 |21cr|perl-Sys-Load-0.200.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-Load
%define upstream_version 0.2

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	10

Summary:	A perl5 module that indicate system load

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/B/BA/BARABAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)

%description
getload() returns 3 elements: representing load averages over 
the last 1, 5 and 15 minutes. On failure empty list is returned.
uptime() returns the system uptime in seconds. Returns 0 on 
failure.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# Remove Local from path
find . -type f | xargs perl -p -i -e "s|/usr/local/|/usr/|g"

# lib64 fixes, don't add /usr/lib/X11 to linker search path
perl -pi -e "s|-L/usr/lib/X11||g;s|-L/usr/X11/lib||g;s|-L/usr/lib||g" Makefile.PL
perl -pi -e "s|(/usr/X11R6)/lib|\1/%{_lib}|g" Makefile.PL

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%check
%ifnarch ppc
%make test
%endif

%install
%makeinstall_std

%clean 

%files
%doc README
%{perl_vendorarch}/auto/Sys/Load/Load.so
%{perl_vendorarch}/Sys/Load.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5684 |21cr|perl-Sys-MemInfo-0.990.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-MemInfo
%define upstream_version 0.99

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    No summary found
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sys/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel

%description
Sys::MemInfo return the total amount of free and used physical memory in
bytes in totalmem and freemem variables.

Total amount of free and user swap memory are alse returned in totalswap
and freeswap variables.

This module has been tested on Linux 2.6.10, UnixWare 7.1.2, AIX5, OpenBSD
3.8, NetBSD 2.0.2, FreBSD 5.4, HPUX11, Solaris 9, Tru64 5.1, Irix 6.5, Mac
OS X 10.2 darwin and Windows XP.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5685 |21cr|perl-Sys-Mknod-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Sys-Mknod
%define upstream_version	0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Sys::Mknod - make special files

License:	GPL
Group:		Development/Perl
Url:		http://www.kernel.org/software/mon/
Source0:	http://search.cpan.org/CPAN/authors/id/S/SA/SAMV/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch
   
%description
Sys::Mknod - make special files

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
# I am sorry, we can't make test because because
# it try to run mknod, and we can't be root to
# build the package...
[ $UID -eq 0 ] || exit 0
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5686 |21cr|perl-Sys-Mmap-0.170.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-Mmap
%define upstream_version 0.17

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Uses mmap to map in a file as a Perl variable
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sys/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(DynaLoader)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
BuildRequires: perl-devel

%description
The Mmap module uses the POSIX the mmap manpage call to map in a file as a
Perl variable. Memory access by mmap may be shared between threads or
forked processes, and may be a disc file that has been mapped into memory.
the Sys::Mmap manpage depends on your operating system supporting UNIX or
POSIX.1b mmap, of course.

*Note* that the PerlIO manpage now defines a ':mmap' tag and presents
mmap'd files as regular files, if that is your cup of joe.

Several processes may share one copy of the file or string, saving memory,
and concurrently making changes to portions of the file or string. When not
used with a file, it is an alternative to SysV shared memory. Unlike SysV
shared memory, there are no arbitrary size limits on the shared memory
area, and sparce memory usage is handled optimally on most modern UNIX
implementations.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5687 |21cr|perl-Sys-Proctitle-0.40.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-Proctitle
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Sys::Proctitle - modify proctitle on Linux

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://search.cpan.org/CPAN/authors/id/O/OP/OPI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Class::Member)
BuildRequires:	perl-devel


%description
"Sys::Proctitle" provides an interface for setting the process title
shown by "ps", "top" or similar tools on Linux. Why do we need this? One
could simply change $0 to achieve the same result. Well, first setting
$0 did not work with 5.8.0. Further, setting $0 won't work with
mod_perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
#test fail on abf build, local build OK
#make test

%install
%makeinstall_std


%files
%doc Changes README
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5688 |21cr|perl-Sys-SigAction-0.230.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Sys-SigAction
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Perl extension for Consistent Signal Handling

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Sys/Sys-SigAction-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Time::HiRes)
BuildArch:	noarch

%description
This module implements set_sig_handler(), which sets up a signal handler and
(optionally) returns an object which causes the signal handler to be reset to
the previous value, when it goes out of scope.

Also implemented is timeout_call() which takes a timeout value and a code
reference, and executes the code reference wrapped with an alarm timeout.

Finally, two convenience routines are defined which allow one to get the signal
name from the number -- sig_name(), and get the signal number from the name --
sig_number().

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Sys
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5689 |21cr|perl-Sys-Syscall-0.250.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-Syscall
%define upstream_version 0.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl module to access system calls that Perl doesn't normally provide access to

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Sys/Sys-Syscall-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Use epoll, sendfile, from Perl.

%prep
%setup -q -n Sys-Syscall-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#test fail on aarch64
#make test

%install
%makeinstall_std

%files
%doc CHANGES
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5690 |21cr|perl-Sys-Syslog-0.330.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sys-Syslog
%define upstream_version 0.33

Name:       perl-%{upstream_name}
Version:    %perl_convert_version 0.33
Release:	7

Summary:    Provides same functionality as BSD syslog

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sys/Sys-Syslog-0.33.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(POSIX)
BuildRequires: perl(Socket)
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
BuildRequires: perl-devel

%description
'Sys::Syslog' is an interface to the UNIX 'syslog(3)' program. Call
'syslog()' with a string priority and a list of 'printf()' args just like
'syslog(3)'.

You can find a kind of FAQ in the "THE RULES OF SYS::SYSLOG" manpage.
Please read it before coding, and again before asking questions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5691 |21cr|perl-System-Command-1.121.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    System-Command
%define upstream_version 1.121

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Reap processes started by System::Command
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/System/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Run)
BuildRequires: perl(List::Util)
BuildRequires: perl(POSIX)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Symbol)
BuildRequires: perl(Test::More)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Test::Command)
BuildRequires: perl(Test::Output)
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::CPAN::Meta)


BuildArch: noarch

%description
System::Command is a class that launches external system commands and
return an object representing them, allowing to interact with them through
their 'STDIN', 'STDOUT' and 'STDERR' handles.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5692 |21cr|perl-Sys-Virt-3.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Sys-Virt

Summary:	Interface to libvirt virtual machine management API
Name:		perl-%{upstream_name}
Version:	3.9.1
Release:	1
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Sys/%{upstream_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libvirt) >= %{version}
BuildRequires:	config(libvirt-utils)
BuildRequires:	perl(XML::XPath)
BuildRequires:	perl-devel
BuildRequires:	gettext-devel
BuildRequires:	perl(Test::CPAN::Changes)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	xen-devel

%description
Sys::Virt is an interface to libvirt virtual machine management API.
The Sys::Virt::Domain module represents a guest domain managed by
the virtual machine monitor.

%files
%doc AUTHORS README LICENSE
%{perl_vendorarch}/Sys
%{perl_vendorarch}/auto/Sys
%{_mandir}/man3/Sys::Virt*3pm*

#--------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5693 |21cr|perl-Taint-Util-0.08-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		perl-Taint-Util
Version:	0.08
Release:	1
Summary:	Test for and flip the taint flag without regex matches or eval
Group:		Development/Perl
License:	GPL+ or Artistic
URL:		https://metacpan.org/release/Taint-Util
Source0:	https://cpan.metacpan.org/modules/by-module/Taint/Taint-Util-%{version}.tar.gz
Patch0:		Taint-Util-0.08-utf8.patch
# ============= Module Build ====================
BuildRequires:	coreutils
BuildRequires:	findutils
BuildRequires:	gcc
BuildRequires:	make
BuildRequires:	perl-devel
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Pod::Man) >= 2.26
BuildRequires:	perl(warnings)
# ============= Module Runtime ==================
BuildRequires:	perl(strict)
BuildRequires:	perl(XSLoader)
# ============= Test Suite ======================
BuildRequires:	perl(Test::More)
# ============= Module Runtime ==================
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

# Don't "provide" private Perl libs
%{?perl_default_filter}

%description
Wraps perl's internal routines for checking and setting the taint flag and
thus does not rely on regular expressions for untainting or odd tricks
involving eval and kill for checking whether data is tainted; instead, it
checks and flips a flag on the scalar in-place.

%prep
%setup -q -n Taint-Util-%{version}

# Re-code README as UTF-8
%patch0

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
find %{buildroot} -type f -name '*.bs' -empty -delete
%{_fixperms} -c %{buildroot}

%check
make test

%files
%license LICENSE
%doc ChangeLog README
%{perl_vendorarch}/auto/Taint/
%{perl_vendorarch}/Taint/
%{_mandir}/man3/Taint::Util.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5694 |21cr|perl-TAP-SimpleOutput-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    TAP-SimpleOutput
%define upstream_version 0.009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Simple closure-driven TAP generator
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/TAP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Sub::Exporter::Progressive)
BuildRequires: perl(Test::CheckDeps) >= 0.10.0
BuildRequires: perl(Test::More) >= 0.940.0
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
We provide one function, 'counters()', that returns a number of simple
closures designed to help output TAP easily and correctly, with a minimum
of fuss.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

# %check
# %make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README SIGNATURE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5695 |21cr|perl-Task-Perl-Critic-1.8.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Task-Perl-Critic
%define upstream_version 1.008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Install everything Perl::Critic
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Task/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Perl::Critic)
BuildRequires: perl(Perl::Critic::Bangs)
BuildRequires: perl(Perl::Critic::Compatibility)
BuildRequires: perl(Perl::Critic::Dynamic)
BuildRequires: perl(Perl::Critic::Itch)
BuildRequires: perl(Perl::Critic::Lax)
BuildRequires: perl(Perl::Critic::Moose)
BuildRequires: perl(Perl::Critic::More)
BuildRequires: perl(Perl::Critic::Nits)
BuildRequires: perl(Perl::Critic::PetPeeves::JTRAMMELL)
BuildRequires: perl(Perl::Critic::Pulp)
BuildRequires: perl(Perl::Critic::Storable)
BuildRequires: perl(Perl::Critic::StricterSubs)
BuildRequires: perl(Perl::Critic::Swift)
BuildRequires: perl(Perl::Critic::Tics)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Perl::Critic::Progressive)
BuildRequires: perl(criticism)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)

BuildArch: noarch

%description
This module does nothing but act as a placeholder. See the Task manpage.

*WARNING*: Installing this distribution will install Policies that directly
conflict with each other. If you do not use a _.perlcriticrc_ file, and
your severity is set high enough, there is no way for your code to not have
violations. A specific example: the
Perl::Critic::Policy::Compatibility::ProhibitThreeArgumentOpen manpage and
the Perl::Critic::Policy::InputOutput::ProhibitTwoArgOpen manpage directly
contradict each other.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5696 |21cr|perl-Tee-0.140.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tee
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Pure Perl emulation of GNU tee

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(Probe::Perl)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(IO::CaptureOutput)
BuildArch:	noarch

%description
The 'Tee' distribution provides the the ptee manpage program, a pure Perl
emulation of the standard GNU tool 'tee'. It is designed to be a
platform-independent replacement for operating systems without a native
'tee' program. As with 'tee', it passes input received on STDIN through to
STDOUT while also writing a copy of the input to one or more files. By
default, files will be overwritten.

Unlike 'tee', 'ptee' does not support ignoring interrupts, as signal
handling is not sufficiently portable.

The 'Tee' module provides a convenience function that may be used in place
of 'system()' to redirect commands through 'ptee'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes META.yml
%{perl_vendorlib}/*
%{_bindir}/ptee
%{_mandir}/man1/ptee.1.xz
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5697 |21cr|perl-Template-DBI-2.650.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-DBI
%define upstream_version 2.65

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Template interface to the DBI module

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://www.template-toolkit.org
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(DBI) >= 1.0
BuildRequires:	perl(Template) >= 2.15

BuildArch:	noarch
Requires:	perl(Template) >= 2.15

%description
The Template-DBI distribution contains the DBI plugin for the Template
Toolkit. At some point in the future it is likely to contain other
DBI-related plugins and extension modules for the Template Toolkit.

The DBI plugin was distributed as part of the Template Toolkit until
version 2.15 released in May 2006. At this time it was extracted into
this separate Template-DBI distribution.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

perl Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%check
##make test

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc README
%{perl_vendorlib}/Template
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5698 |21cr|perl-Template-Declare-0.470.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Declare
%define upstream_version 0.47

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Template::Declare TAG set for Mozilla's em-rdf

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/Template-Declare-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Class::ISA)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(HTML::Lint)
BuildRequires:	perl(String::BufferStack)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Warn)
BuildArch:	noarch

%description
'Template::Declare' is a pure-Perl declarative HTML/XUL/RDF/XML templating
system.

Yes. Another one. There are many others like it, but this one is ours.

A few key features and buzzwords:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/Template/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5699 |21cr|perl-Template-GD-2.660.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-GD
%define upstream_version 2.66

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	GD plugin(s) for the Template Toolkit

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Template)
BuildArch:	noarch

%description
The Template-GD distribution provides a number of Template Toolkit plugin
modules to interface with Lincoln Stein's GD modules. These in turn provide an
interface to Thomas Boutell's GD graphics library.

These plugins were distributed as part of the Template Toolkit until version
2.15 released in February 2006. At this time they were extracted into this
separate distribution.

For general information on the Template Toolkit see the documentation for the
Template module or http://template-toolkit.org. For information on using
plugins, see Template::Plugins and "USE" in Template::Manual::Directives.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Template
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5700 |21cr|perl-Template-Multilingual-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  Template-Multilingual
%define upstream_version 1.00

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	8
Summary:	Multilingual templates for Template Toolkit

License:	GPL or Artistic
Group:		Development/Perl
Source:		http://www.cpan.org/modules/by-module/Template/Template-Multilingual-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{module}/
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Template)
BuildArch:	noarch

%description
This subclass of Template Toolkit's Template class supports multilingual
templates: templates that contain text in several languages.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

%files
%doc Changes README
%{perl_vendorlib}/Template/Multilingual.pm
%{perl_vendorlib}/Template/Multilingual
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5701 |21cr|perl-Template-Plugin-Class-0.140.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Plugin-Class
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Allow calling of class methods on arbitrary classes

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Template)
BuildArch:	noarch

%description
Template::Plugin::Class allows you to call class methods on arbitrary classes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL installdirs=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Template
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5702 |21cr|perl-Template-Plugin-Clickable-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Plugin-Clickable
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Make URLs clickable in HTML 

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Template)
BuildRequires:	perl(URI::Find)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
Template::Plugin::Clickable is a plugin for TT, which allows you to filter
HTMLs clickable.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Template
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5703 |21cr|perl-Template-Plugin-Clickable-Email-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Plugin-Clickable-Email
%define upstream_version 0.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Make email addresses in to HTML links

License:    Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:  perl(Module::Build)
Buildrequires:  perl(Template)
Buildrequires:  perl(Test::More)
Buildrequires:  perl(Email::Find)
buildArch:      noarch

%description
Template::Plugin::Clickable::Email converts any e-mail addresses found in the
filtered text in to HTML mailto: links.

This module uses Email::Find, see the documentation for that module for caveats
relating to how addresses are parsed, and why some false positives may occur.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc README Changes
%{perl_vendorlib}/Template
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5704 |21cr|perl-Template-Plugin-JavaScript-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Template-Plugin-JavaScript
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	TT filter to encode text to be safe in JavaScript

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Template::Plugin::JavaScript is a TT filter that filters text so it
can be safely used in JavaScript quotes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Template
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5705 |21cr|perl-Template-Plugin-Latex-3.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Plugin-Latex
%define upstream_version 3.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	LaTeX plugin for the Template Toolkit
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LaTeX::Driver)
BuildRequires:	perl(LaTeX::Encode)
BuildRequires:	perl(LaTeX::Table)
BuildRequires:	perl(Template)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Moose::Policy) perl(Moose)
BuildRequires:	perl(Class::MOP)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(Devel::GlobalDestruction)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	texlive-scheme-tetex
BuildArch:	noarch

%description
The Template::Latex module is a wrapper of convenience around the Template
module, providing additional support for generating PDF, PostScript and DVI
documents from LaTeX templates.

You use the Template::Latex module exactly as you would the Template
module.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5706 |21cr|perl-Template-Plugin-Number-Format-1.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Plugin-Number-Format
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Plugin/filter interface to Number::Format

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Number::Format)
BuildRequires:	perl(Template)
BuildArch:	noarch

%description
Template::Plugin::Number::Format makes the number-munging grooviness of
Number::Format available to your templates. It is used like a plugin, but
installs filters into the current context.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Template
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5707 |21cr|perl-Template-Plugin-Page-0.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Plugin-Page
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A plugin to help when paging through sets of results

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Data::Page)
BuildRequires:  perl(Template)
BuildArch:	noarch

%description
When searching through large amounts of data, it is often the case
that a result set is returned that is larger than we want to display
on one page. This results in wanting to page through various pages of
data. The maths behind this is unfortunately fiddly, hence this
module.

The main concept is that you pass in the number of total entries, the
number of entries per page, and the current page number. You can then
call methods to find out how many pages of information there are, and
what number the first and last entries on the current page really are.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Template/Plugin/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5708 |21cr|perl-Template-Plugin-Subst-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Plugin-Subst
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    S/// functionality for Template Toolkit templates

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Template)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
Template::Plugin::Subst acts as a filter and a virtual method to carry
out regular expression substitutions with back references on text and
variables in the Template Toolkit.

That's the advantage of this approach over the built-in C<replace>
method.  C<replace> doesn't deal with backrefs, so code like this:

  [% str = 'foobar' %]
  [% str.replace('(foo)(bar)', '$2$1') %]

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5709 |21cr|perl-Template-Plugin-YAML-1.230.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Template-Plugin-YAML
%define upstream_version 1.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Plugin interface to YAML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(YAML)
BuildRequires:	perl(Template)
BuildArch:	noarch

%description
This is a simple Template Toolkit Plugin Interface to the YAML module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test 

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Template
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5710 |21cr|perl-Template-Provider-Encoding-0.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Provider-Encoding
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Template plugin to specify encoding

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Encode)
BuildRequires:	perl(Template)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Template::Plugin::encoding is a Template plugin to declare the encoding of
template files. This plugin doesn't actually do anything but
Template::Provider::Encoding scans the usage of this module to find the
encoding of templates. As a bonus, you can use 'encoding' variable in the
template to specify file encoding, which might be useful for XML or HTML
meta tag.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Template

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5711 |21cr|perl-Template-Provider-FromDATA-0.130.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Provider-FromDATA
%define upstream_version 0.13

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4
Summary:    Load templates from your __DATA__ section
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Class::Accessor)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Template)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Install::ExtraTests)
BuildRequires: perl(Test::Harness)

BuildArch: noarch

%description
This module allows you to store your templates inline with your code in the
'__DATA__' section. It will search any number of classes specified.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5712 |21cr|perl-Template-Timer-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Timer
%define upstream_version 1.00

Summary:	Rudimentary profiling for Template Toolkit

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	Artistic/GPL
Group:		Development/Perl
URL:		https://search.cpan.org/dist/%{upstream_name}/
Source:		https://cpan.metacpan.org/authors/id/P/PE/PETDANCE/Template-Timer-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Template::Toolkit)
BuildArch:	noarch

%description
Template::Timer provides inline timings of the template processing througout
your code. It's an overridden version of Template::Context that wraps the
process() and include() methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Template/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5713 |21cr|perl-Template-Tiny-1.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-Tiny
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Template Toolkit reimplemented in as little code as possible

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
*WARNING: THIS MODULE IS EXPERIMENTAL AND SUBJECT TO CHANGE WITHOUT NOTICE*

*YOU HAVE BEEN WARNED!*

*Template::Tiny* is a reimplementation of a partial subset of the the
Template manpage Toolkit, in as few lines of code as possible.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5714 |21cr|perl-Template-Toolkit-2.270.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname Template-Toolkit
%define modver 2.27

%global __requires_exclude 'perl\\(CGI\\)'

Summary:	%{modname} module for perl
Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	3
License:	GPL
Group:		Development/Perl
URL:		http://www.template-toolkit.org
Source0:	http://www.cpan.org/modules/by-module/Template/%{modname}-%{modver}.tar.gz
BuildRequires:	perl-devel >= 0:5.600
BuildRequires:	perl(AppConfig) >= 1.56
BuildRequires:	perl(File::Spec) >= 0.8
BuildRequires:	perl(File::Temp) >= 0.12
BuildRequires:	perl(Pod::POM) >= 0.1
BuildRequires:	perl(Text::Autoformat) >= 1.03

%description
The Template Toolkit is a collection of modules which implement a
fast, flexible, powerful and extensible template processing system.
It was originally designed and remains primarily useful for generating
dynamic web content, but it can be used equally well for processing
any other kind of text based documents: HTML, XML, POD, PostScript,
LaTeX, and so on.

%files
%doc README Changes TODO HACKING
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorarch}/Template*
%{perl_vendorarch}/auto/Template

#----------------------------------------------------------------------------

%prep
%setup -q -n %{modname}-%{modver}

# perl path hack
find ./ -type f | \
    xargs perl -pi -e 's|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|'

%build
perl Makefile.PL \
    TT_XS_ENABLE="y" \
    TT_XS_DEFAULT="y" \
    INSTALLDIRS=vendor </dev/null
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5715 |21cr|perl-Template-XML-2.170.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Template-XML
%define upstream_version 2.17

%if %{_use_internal_dependency_generator}
%global __provides_exclude perl\\(XML::(.*)\\)
%else
%define _provides_exceptions perl(XML::
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	XML plugin for the Template Toolkit

License:	Artistic/GPL
Group:		Development/Perl
URL:		http://www.template-toolkit.org
Source0:	http://www.cpan.org/modules/by-module/Template/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Template) >= 2.15
BuildRequires:	perl(XML::DOM) >= 1.27
BuildRequires:	perl(XML::LibXML)
BuildRequires:	perl(XML::Parser) >= 2.19
BuildRequires:	perl(XML::RSS) >= 0.9
BuildRequires:	perl(XML::Simple) >= 2
BuildRequires:	perl(XML::XPath) >= 1
BuildArch:	noarch

%description
The Template-XML distribution provides a number of Template Toolkit
plugin modules for working with XML.

The basic XML plugins were distributed as part of the Template Toolkit
until version 2.15 released in May 2006. At this time they were
extracted into this separate Template-XML distribution and an alpha
version of this Template::Plugin::XML front-end module was added.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Template
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5716 |21cr|perl-Term-Animation-2.600.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Animation
%define upstream_version 2.6

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	ASCII sprite animation framework 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/K/KB/KBAUCOM/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Curses)

BuildArch:	noarch

%description
This module provides a framework to produce sprite animations using ASCII art.
Each ASCII 'sprite' is given one or more frames, and placed into the animation
as an 'animation object'. An animation object can have a callback routine that
controls the position and frame of the object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Term
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5717 |21cr|perl-Term-ANSIScreen-1.500.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-ANSIScreen
%define upstream_version 1.50

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Term::ANSIScreen - Terminal control using ANSI escape sequences

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/Term-ANSIScreen-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Package)
BuildArch:	noarch

%description
Term::ANSIScreen, a Term::ANSIColor clone with supports for
screen mode, cursor control and keyboard mapping sequences.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Term/ANSIScreen.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5718 |21cr|perl-Term-Clui-1.760.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name		Term-Clui
%define upstream_version 1.76

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	%{upstream_name} module for perl
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Term::ReadLine::Gnu)
BuildArch:	noarch

%description
Term::Clui offers a high-level user interface to give the user of 
command-line applications a consistent "look and feel". Its metaphor 
for the computer is as a human-like conversation-partner, and as each 
question/response is completed it is summarised onto one line, and 
remains on screen, so that the history of the session gradually 
accumulates on the screen and is available for review, or for 
cut/paste. This user interface can therefore be intermixed with 
standard applications which write to STDOUT or STDERR, such as 
make, pgp, rcs etc.

For the user, &choose uses arrow keys (or hjkl) and Return or q; 
also SpaceBar for multiple choices. &confirm expects y, Y, n or N. 
In general, ctrl-L redraws the (currently active bit of the) screen. 
&edit and &view use the default EDITOR and PAGER if possible.

It's fast, simple, and has few external dependencies. It doesn't use curses 
(which is a whole-of-screen interface); it uses a small subset of vt100 
sequences (up down left right normal and reverse) which are very portable.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
pushd examples
find . -type f -exec chmod 755 {} \;
popd

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std


%files
%doc Changes META.yml MYMETA.yml README examples
%{perl_vendorlib}/Term
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5719 |21cr|perl-Term-EditorEdit-0.1.600-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-EditorEdit
%define upstream_version 0.0016

Name:           perl-Term-EditorEdit
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Edit a document via $EDITOR
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Term-EditorEdit
Source0:        https://cpan.metacpan.org/authors/id/R/RO/ROKR/Term-EditorEdit-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(Any::Moose)
BuildRequires:  perl(Carp)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Test::Most)
BuildRequires:  perl(Text::Clip)
BuildRequires:  perl(Try::Tiny)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%{?perl_default_filter}

%description
Term::EditorEdit is a tool for prompting the user to edit a piece of text
via $VISUAL or $EDITOR and return the result.

%prep
%setup -q -n Term-EditorEdit-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

# Not useful to be installed
rm %{buildroot}%{_bindir}/editor-edit

%check
make test

%files
%doc Changes README bin/editor-edit
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5720 |21cr|perl-Term-Encoding-0.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Encoding
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Detect encoding of the current terminal

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Term::Encoding is a simple module to detect an encoding the current
terminal expects, in various ways.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5721 |21cr|perl-Term-InKey-1.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-InKey
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Term::InKey - Perl extension for clearing the screen and receiving a keystroke

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements Clear() to clear screen and ReadKey() to
receive a keystroke, on UNIX and Win32 platforms. As opposed to
Term::ReadKey, it does not contain XSUB code and can be easily
installed on Windows boxes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

# cleanup
rm -f %{buildroot}%{perl_vendorlib}/Term/demo.pl

%files
%doc Changes README
%{perl_vendorlib}/Term/InKey.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5722 |21cr|perl-Term-ProgressBar-2.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Term-ProgressBar
%define upstream_version 2.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Provides a progress meter on a standard terminal


License:	GPL+ or Artistic
Group:		Development/Perl
URL:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::MethodMaker)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Capture::Tiny)
BuildArch:	noarch

%description
Term::ProgressBar provides a simple progress bar on the terminal, to
let the user know that something is happening, roughly how much stuff
has been done, and maybe an estimate at how long remains.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Term/ProgressBar.pm
%{_mandir}/*/*
%{perl_vendorlib}/Term/ProgressBar/IO.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5723 |21cr|perl-Term-ProgressBar-Quiet-0.310.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-ProgressBar-Quiet
%define upstream_version 0.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Provide a progress meter if run interactively

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Interactive)
BuildRequires:	perl(Term::ProgressBar)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
the Term::ProgressBar manpage is a wonderful module for showing progress
bars on the terminal. This module acts very much like that module when it
is run interactively. However, when it is not run interactively (for
example, as a cron job) then it does not show the progress bar.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5724 |21cr|perl-Term-ProgressBar-Simple-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-ProgressBar-Simple
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Simpler progress bars

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Term::ProgressBar::Quiet)
BuildRequires:	perl(Time::HiRes)
BuildArch:	noarch

%description
Progress bars are handy - they tell you how much work has been done, how
much is left to do and estimate how long it will take.

But they can be fiddly!

This module does the right thing in almost all cases in a really convenient
way.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5725 |21cr|perl-Term-Prompt-1.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Prompt
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl extension for prompting a user for information

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Term::ReadKey)
BuildArch:	noarch

%description
A Perl module for prompting a user for information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes README lib/Term/Prompt.pm
perl -pi -e 's/\r\n$/\n/;'  Changes README lib/Term/Prompt.pm

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Term
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5726 |21cr|perl-Term-Query-2.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name Term-Query

Summary:	Term::Query - table-driven query routine

Name:		perl-%{real_name}
Version:	2.0
Release: 11
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{real_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Term/%{real_name}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl(Array::PrintCols)
BuildArch:	noarch

%description
Term::Query is a Perl 5 module, which performs generalized queries on
various kinds of values. Validation and normalization of input, based
on the type, is automated, as is error reporting and re-solicitation
of input.

%prep
%setup -q -n %{real_name}-%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# make test don't work
# make test

%install
%makeinstall_std

%clean 

%files
%doc ChangeLog README
%{perl_vendorlib}/Term/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5727 |21cr|perl-Term-ReadLine-Perl-1.30.300-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-ReadLine-Perl
%define upstream_version 1.0303

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Epoch:		1

Summary:	Perl interface to readline libraries

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

BuildArch:	noarch

%description
This is a quick implementation of the minimal interface to Readline
libraries. The implementation is made in Perl (mostly) by Jeffrey
Friedl. The only thing this library does is to make it conformant (and
add some minimal changes, like using Term::ReadKey if present, and
correct work under xterm). 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# useless in non-interactive context

%install
%makeinstall_std

%files
%doc CHANGES README
%{perl_vendorlib}/Term

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5728 |21cr|perl-Term-ReadPassword-0.110.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-ReadPassword
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Asking the user for a password

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module lets you ask the user for a password in the traditional way,
from the keyboard, without echoing.

This is not intended for use over the web; user authentication over the web
is another matter entirely. Also, this module should generally be used in
conjunction with Perl's *crypt()* function, sold separately.

The *read_password* function prompts for input, reads a line of text from
the keyboard, then returns that line to the caller. The line of text
doesn't include the newline character, so there's no need to use *chomp*.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#Commenting-out because it's interactive.
#make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5729 |21cr|perl-Term-Report-1.180.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Report
%define upstream_version 1.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Easy way to create dynamic 'reports' from within scripts

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Term::Report can be used to generate nicely formatted dynamic output. It can
also use Term::StatusBar to show progress and Number::Format so numbers show up
more readable. All output is sent to STDOUT by default.

The current release may not be compatible with previous code. Many changes were
made with regards to how output could be formatted.

%prep
%setup -q -n %{upstream_name}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Term*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5730 |21cr|perl-Term-Screen-1.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Screen
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A simple all-Perl Term::Cap based screen positioning module

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Term::Screen is a very simple screen positioning module that should
work wherever C<Term::Cap> does. It is set up for Unix using stty's but
these dependences are isolated by evals in the C<new> constructor. Thus
you may create a child module implementing Screen with MS-DOS, ioctl,
or other means to get raw and unblocked input. This is not a replacement
for Curses -- it has no memory.  This was written so that it could be
easily changed to fit nasty systems, and to be available first thing.

The input functions getch, key_pressed, echo, and noecho are implemented
so as to work under a fairly standard Unix system. They use 'stty'
to set raw and no echo modes and turn on auto flush. All of these are
'eval'ed so that this class can be inherited for new definitions easily.

Term::Screen was designed to be "required", then used with object syntax
as shown above. One quirk (which the author was used to so he didn't
care) is that for function key translation, no delay is set. So for many
terminals to get an esc character, you have to hit another char after it,
generally another esc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests seems to be interactive only
#make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Term
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5731 |21cr|perl-Term-Shell-0.130.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Shell
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Write command-line shells in Perl


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildArch:	noarch

%description
Term::Shell makes it joyfully easy to write command-line interfaces in Perl.
All the boring details like command-line parsing and terminal handling are
done for you.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{perl_vendorlib}/Term/Shell*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5732 |21cr|perl-Term-ShellUI-0.920.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-ShellUI
%define upstream_version 0.92

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Parse a string into tokens

License:    MIT
Group:      Development/Perl
Url:        https://github.com/bronson/Term-ShellUI
Source0:    http://search.cpan.org/CPAN/authors/id/B/BR/BRONSON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildArch: noarch

%description
Term::ShellUI uses the history and autocompletion features of the
Term::ReadLine manpage to present a sophisticated command-line interface to
the user. It tries to make every feature that one would expect to see in a
fully interactive shell trivial to implement. You simply declare your
command set and let ShellUI take care of the heavy lifting.

This module was previously called the Term::GDBUI manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5733 |21cr|perl-Term-StatusBar-1.180.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-StatusBar
%define upstream_version 1.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Dynamic progress bar

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Term::Size)

BuildArch:	noarch

%description
Term::StatusBar provides an easy way to create a terminal status bar, much
like those found in a graphical environment. Term::Size is used to ensure
the bar does not extend beyond the terminal's width. All outout is sent to
STDOUT by default.

%prep
%setup -q -n %{upstream_name}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5734 |21cr|perl-Term-Twiddle-2.730.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Twiddle
%define upstream_version 2.73

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 2.73
Release:	6

Summary:	Twiddles baton while-u-wait for long subrout

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/Term-Twiddle-2.73.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Time::HiRes)
BuildArch:	noarch

%description
Always fascinated by the spinner during FreeBSD's loader bootstrap, I
wanted to capture it so I could view it any time I wanted to--and I wanted
to make other people find that same joy I did. Now, anytime you or your
users have to wait for something to finish, instead of twiddling their
thumbs, they can watch the computer twiddle its thumbs.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test </dev/null

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5735 |21cr|perl-Term-Twiddle-Quiet-1.100.110-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Twiddle-Quiet
%define upstream_version 1.100110

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Twiddles a thingy while-u-wait if run interactively

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(English)
BuildRequires: perl(File::Find)
BuildRequires: perl(IO::Interactive)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Term::Twiddle)
BuildRequires: perl(Test::MockObject)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildArch:     noarch

%description
the Term::Twiddle manpage is a nice module for showing spinning thingies on
the terminal while waiting for an action to complete.

the Term::Twiddle::Quiet manpage acts very much like that module when it is
run interactively. However, when it isn't run interactively (for example,
as a cron job) then it does not show the twiddle.

Other than this difference, it really act as a the Term::Twiddle manpage
with all its options, methods and restrictions (of course, it supports the
same API) - cf its documentation for more information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5736 |21cr|perl-Term-VT102-0.910.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-VT102
%define upstream_version 0.91

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Term::VT102 - a class to emulate a DEC VT102 terminal

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The VT102 class provides emulation of most of the functions of a
DEC VT102 terminal. Once initialised, data passed to a VT102
object is processed and the in-memory screen modified accordingly.
This screen can be interrogated by the external program in a
variety of ways.

This allows your program to interface with full-screen console
programs by running them in a subprocess and passing their output
to a VT102 class. You can then see what the application has
written on the screen by querying the class appropriately.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%dir %{perl_vendorlib}/Term/VT102
%dir %{perl_vendorlib}/Term/VT102/examples
%{perl_vendorlib}/Term/VT102.pm
%{perl_vendorlib}/Term/VT102/examples/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5737 |21cr|perl-Test2-Suite-0.0.144-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test2-Suite
%define upstream_version 0.000144

Name:		perl-Test2-Suite
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Set of tools built upon the Test2 framework
Group:		Development/Perl
License:	GPL+ or Artistic
URL:		https://search.cpan.org/dist/Test2-Suite/
Source0:	https://www.cpan.org/authors/id/E/EX/EXODIST/Test2-Suite-%{upstream_version}.tar.gz

BuildArch:      noarch

BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(B)
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Importer)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Sub::Info)
BuildRequires:  perl(Term::Table)
BuildRequires:  perl(Term::Table::Cell)
BuildRequires:  perl(Term::Table::LineBreak)
BuildRequires:  perl(Term::Table::Util)
# Test2::API version from Test2 in META
BuildRequires:  perl(Test2::API)
BuildRequires:  perl(Test2::Hub::Interceptor)
BuildRequires:  perl(Test2::Util)
BuildRequires:  perl(Test2::Util::HashBase)
BuildRequires:  perl(Test2::Util::Trace)
BuildRequires:  perl(Scope::Guard)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(Module::Pluggable)
BuildRequires:  perl(utf8)
# Optional run-time:
BuildRequires:  perl(Term::ReadKey)
BuildRequires:  perl(Unicode::GCString)
# Tests:
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(PerlIO)
Requires:       perl(Importer)
Requires:       perl(Sub::Info)
Requires:       perl(Term::Table)
# Test2 not used in any useful way
# Test2::API version from Test2 in META
Requires:       perl(Test2::API)
Requires:       perl(utf8)
# Unicode::GCString for formating double-width strings
Recommends:     perl(Unicode::GCString)

# Remove under-specified dependencies
%global __requires_exclude ^perl\\((Importer|Sub::Info|Term::Table|Test2::API)\\)$

%description
Rich set of tools, plugins, bundles, etc. built upon the Test2 testing
library. If you are interested in writing Perl tests this is the distribution
for you.

%prep
%setup -q -n Test2-Suite-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install DESTDIR=%{buildroot}

%check
#2 test fail on mock build
#make test

%files
%doc Changes README LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5738 |21cr|perl-Test-Aggregate-0.375.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Aggregate
%define upstream_version 0.375

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Internal overrides for Test::Builder
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(FindBin) >= 1.470.0
BuildRequires: perl(Module::Build) >= 0.400.0
BuildRequires: perl(Test::Harness) >= 3.90.0
BuildRequires: perl(Test::Most) >= 0.210.0
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Test::Simple) >= 0.940.0
BuildRequires: perl(Test::Trap)
BuildRequires: perl-devel
BuildArch:     noarch

%description
*WARNING*: this is ALPHA code. The interface is not guaranteed to be
stable. Further, check out the Test::Aggregate::Nested manpage (included
with this distribution). It's a more robust implementation which does not
have the same limitations as 'Test::Aggregate'.

A common problem with many test suites is that they can take a long time to
run. The longer they run, the less likely you are to run the tests. This
module borrows a trick from 'Apache::Registry' to load up your tests at
once, create a separate package for each test and wraps each package in a
method named 'run_the_tests'. This allows us to load perl only once and
related modules only once. If you have modules which are expensive to load,
this can dramatically speed up a test suite.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
#work with Test::More < 1.3
#make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5739 |21cr|perl-Test-API-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name   Test-API
%define upstream_version 0.010


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Test a list of subroutines provided by a module
License:	ASL 2.0
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Test-API/
Source0:	http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(strict)
BuildRequires:	perl(Symbol)
BuildRequires:	perl(Test::Builder::Module)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(version)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(CPAN::Meta::Requirements)

BuildArch:	noarch

%description
This simple test module checks the subroutines provided by a module. This is
useful for confirming a planned API in testing and ensuring that other
functions aren't unintentionally included via import.

%prep
%setup -qn  %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std


%files
%doc Changes LICENSE README META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5740 |21cr|perl-Test-Apocalypse-1.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Apocalypse
%define upstream_version 1.006

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Plugin for Test::Pod::Spelling::CommonMistakes
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Devel::PPPort)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Find::Rule)
BuildRequires: perl(File::Slurp)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::Which)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(JSON::Any)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::CPANTS::Analyse) >= 0.960.0
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(Perl::Critic::Deprecated)
BuildRequires: perl(Perl::Critic::Itch) >= 0.70.0
BuildRequires: perl(Perl::Critic::Utils::Constants)
BuildRequires: perl(Perl::Metrics::Simple)
BuildRequires: perl(Perl::PrereqScanner)
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Task::Perl::Critic)
BuildRequires: perl(Test::AutoLoader) >= 0.30.0
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::CPAN::Meta)
BuildRequires: perl(Test::CPAN::Meta::JSON) >= 0.160.0
BuildRequires: perl(Test::CPAN::Meta::YAML)
BuildRequires: perl(Test::Compile)
BuildRequires: perl(Test::ConsistentVersion)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Dir)
BuildRequires: perl(Test::DistManifest)
BuildRequires: perl(Test::EOL)
BuildRequires: perl(Test::FailWarnings)
BuildRequires: perl(Test::File)
BuildRequires: perl(Test::Fixme)
BuildRequires: perl(Test::HasVersion)
BuildRequires: perl(Test::MinimumVersion)
BuildRequires: perl(Test::Mojibake) >= 1.0.0
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::NoBreakpoints) >= 0.150.0
BuildRequires: perl(Test::NoPlan) >= 0.0.6
BuildRequires: perl(Test::Perl::Critic)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod::LinkCheck)
BuildRequires: perl(Test::Pod::No404s)
BuildRequires: perl(Test::Pod::Spelling::CommonMistakes)
BuildRequires: perl(Test::Portability::Files)
BuildRequires: perl(Test::Script)
BuildRequires: perl(Test::Signature)
BuildRequires: perl(Test::Spelling)
BuildRequires: perl(Test::Strict)
BuildRequires: perl(Test::Synopsis)
BuildRequires: perl(Test::Vars)
BuildRequires: perl(YAML)
BuildRequires: perl(YAML::Any)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Perl::PrereqScanner)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(File::HomeDir)

BuildArch: noarch

%description
This module greatly simplifies common author tests for modules heading
towards CPAN. I was sick of copy/pasting the tons of t/foo.t scripts +
managing them in every distro. I thought it would be nice to bundle all of
it into one module and toss it on CPAN :) That way, every time I update
this module all of my dists would be magically updated!

This module respects the RELEASE_TESTING/AUTOMATED_TESTING env variable, if
it is not set it will skip the entire testsuite. Normally end-users should
not run it; but you can if you want to see how bad my dists are, ha! The
scheme is exactly the same as the one Alias proposed in the Test::XT
manpage and in his blog post, the
http://use.perl.org/use.perl.org/_Alias/journal/38822.html manpage.

This module uses the Module::Pluggable manpage to have custom "backends"
that process various tests. We wrap them in a hackish the Test::Block
manpage block per-plugin and it seems to work nicely. If you want to write
your own, it should be a breeze once you look at some of my plugins and see
how it works. ( more documentation to come )

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5741 |21cr|perl-Test-Assertions-1.54.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Assertions
%define upstream_version 1.054

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Base for test scripts

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(Log::Trace)
BuildArch:	noarch

%description
Test::Assertions provides a convenient set of tools for constructing tests,
such as unit tests or run-time assertion checks (like C's ASSERT macro).
Unlike some of the Test:: modules available on CPAN, Test::Assertions is
not limited to unit test scripts; for example it can be used to check
output is as expected within a benchmarking script. When it is used for
unit tests, it generates output in the standard form for CPAN unit testing
(under Test::Harness).

The package's import method is used to control the behaviour of ASSERT:
whether it dies, warns, prints 'ok'/'not ok', or does nothing.

In 'test' mode the script also exports plan(), only() and ignore()
functions. In 'test/ok' mode an ok() function is also exported for
compatibility with Test/Test::Harness. The plan function attempts to count
the number of tests if it isn't told a number (this works fine in simple
test scripts but not in loops/subroutines). In either mode, a warning will
be emitted if the planned number of tests is not the same as the number of
tests actually run, e.g.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5742 |21cr|perl-Test-AutoLoader-0.30.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-AutoLoader
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    A testing utility for autosplit/autoloaded modules
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:     Test-AutoLoader-0.03-Fix-test-plan-number.patch
Patch1:     Test-AutoLoader-0.03-Skip-POSIX-tests-with-perl-5.16.patch
BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Builder)

BuildArch: noarch

%description
This single-purpose module attempts to eliminate uncaught syntax errors or
other obvious goofs in subroutines that are autosplit, and hence not looked
at by 'perl -c Module.pm'. Ideally, this module will become unnecessary as
you reach full coverage of those subroutines in your unit tests. Until that
happy day, however, this should provide a quick and dirty backstop for
embarrassing typos.

Test::AutoLoader is built on Test::Builder, and should interoperate
smoothly with other such modules (e.g. Test::Simple, Test::More).

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5743 |21cr|perl-Test-Benchmark-0.004-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname   Test-Benchmark

Name:		perl-%{realname}
Version:	0.004
Release:    12
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Make sure something really is faster

Source:		http://www.cpan.org/modules/by-module/Test/%{realname}-%{version}.tar.gz
Url:		http://search.cpan.org/dist/%{realname}

BuildRequires:	perl-devel
BuildRequires:	perl(Benchmark)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::Tester)

BuildArch:	noarch

%description
Sometimes you want to make sure that your "faster" algorithm really is
faster than the old way. This lets you check. It might also be useful to
check that your super whizzo XS or Inline::C version is actually faster.

This module is based on the standard L<Benchmark> module. If you have lots
of timings to compare and you don't want to keep running the same benchmarks
all the time, you can pass in a result object from C<Benchmark::timethis()>
instead of sub routine reference.

%prep
%setup -q -n %{realname}-%{version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# Disable test - they are not so predictable inside ABF LXC containers
# %check
# %make test

%install
%makeinstall_std

%files
%doc META.yml CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5744 |21cr|perl-Test-CheckChanges-0.140.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-CheckChanges
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Check that the Changes file matches the dist

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This module checks that you _Changes_ file has an entry for the current
version of the *Module* being tested.

The version information for the distribution being tested is taken out of
the Build data, or if that is not found, out of the Makefile.

It then attempts to open, in order, a file with the name _Changes_ or
_CHANGES_.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
# 7 years old release, no updates since 2010, drop tests .Sflo
# https://rt.cpan.org/Public/Bug/Display.html?id=78561
%make test || :

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5745 |21cr|perl-Test-CheckDeps-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-CheckDeps
%define upstream_version 0.010

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Check for presence of dependencies

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-CheckDeps-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-CPAN-Meta
BuildRequires:	perl(CPAN::Meta::Check)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Module::Metadata)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module adds a test that assures all dependencies have been installed
properly. If requested, it can bail out all testing on error.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc INSTALL LICENSE META.json Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5746 |21cr|perl-Test-CheckManifest-1.420.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-CheckManifest
%define upstream_version 1.42

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Check if your Manifest matches your distro
License:    Artistic 2.0
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Builder)
BuildArch:  noarch

%description
'Test::CheckManifest'

EXPORT
    There is only one method exported: 'ok_manifest'

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

# We need debug enbled by default here, should be safe to skip tests.Sflo
# The following files are not named in the MANIFEST file: 
#/home/symbianflo/rpmbuild/BUILD/Test-CheckManifest-1.28/debugsources.list, 
#/home/symbianflo/rpmbuild/BUILD/Test-CheckManifest-1.28/debugfiles.list, 
#/home/symbianflo/rpmbuild/BUILD/Test-CheckManifest-1.28/debuglinks.list
#check
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5747 |21cr|perl-Test-Class-0.520.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Class
%define upstream_version 0.52

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Write Perl test suites in xUnit style
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Attribute::Handlers)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Contextual::Return)

BuildArch:	noarch

%description
Test::Class provides a simple way of creating classes and objects to test
your code in an xUnit style.

Built using the Test::Builder manpage, it was designed to work with other
Test::Builder based modules (the Test::More manpage, the Test::Differences
manpage, the Test::Exception manpage, etc.).

_Note:_ This module will make more sense, if you are already familiar with
the "standard" mechanisms for testing perl code. Those unfamiliar with the
Test::Harness manpage, the Test::Simple manpage, the Test::More manpage and
friends should go take a look at them now. the Test::Tutorial manpage is a
good starting point.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes META.yml META.json
iconv -f iso8859-1 -t utf-8 Changes > \
  Changes.conv && mv -f Changes.conv Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5748 |21cr|perl-Test-Class-Most-0.80.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Class-Most
%define upstream_version 0.08

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Test Classes the easy way
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Module::Build) >= 0.400.0
BuildRequires: perl(Test::Class) >= 0.380.0
BuildRequires: perl(Test::Most) >= 0.310.0
BuildRequires: perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires: perl-devel

BuildArch:  noarch

%description
When people write test classes with the excellent 'Test::Class', you often
see the following at the top of the code:

  package Some::Test::Class;

  use strict;
  use warnings;
  use base 'My::Test::Class';
  use Test::More;
  use Test::Exception;

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5749 |21cr|perl-Test-Cmd-1.80.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Cmd
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Perl module for portable testing of commands and scripts


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test)
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Config)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Copy)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

BuildArch:	noarch

%description 
The Test::Cmd module provides a low-level framework for portable automated
testing of executable commands and scripts (in any language, not just Perl),
especially commands and scripts that interact with the file system.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5750 |21cr|perl-Test-Command-0.110.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Command
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.11
Release:	5

Summary:	Test routines for external commands

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Command-0.11.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Simple)
BuildArch:	noarch

%description
'Test::Command' intends to bridge the gap between the well tested functions
and objects you choose and their usage in your programs. By examining the
exit status, terminating signal, STDOUT and STDERR of your program you can
determine if it is behaving as expected.

This includes testing the various combinations and permutations of options
and arguments as well as the interactions between the various functions and
objects that make up your program.

The various test functions below can accept either a command string or an
array reference for the first argument. If the command is expressed as a
string it is passed to 'system' as is. If the command is expressed as an
array reference it is dereferenced and passed to 'system' as a list. See
''perldoc -f system'' for how these may differ.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5751 |21cr|perl-Test-Compile-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Compile
%define upstream_version 3.0.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Check whether Perl module files compile correctly

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Devel::CheckOS)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(URI::Escape)
BuildRequires:  perl(Test::Pod::Coverage)
BuildRequires:  perl(UNIVERSAL::require)
BuildRequires:  perl(Test::Warnings)

BuildArch:	noarch

%description
Check Perl module files for errors or warnings in a test file.


%prep
%setup -qn %{upstream_name}-v%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5752 |21cr|perl-Test-ConsistentVersion-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-ConsistentVersion
%define upstream_version v0.3.1

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Ensures distribution versions are consistent

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::Builder)
BuildRequires: perl(autodie)
BuildRequires: perl(version)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Pod::Content)


BuildArch: noarch

%description
The purpose of this module is to make it easy for other distribution
authors to have consistent version numbers within the modules (as well as
readme file and changelog) of the distribution.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}


%files
%doc Changes META.yml README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5753 |21cr|perl-Test-Corpus-Audio-MPD-1.120.990-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Corpus-Audio-MPD
%define upstream_version 1.120990

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.120990
Release:	5

Summary:	Automate launching of fake mdp for testing purposes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Corpus-Audio-MPD-1.120990.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(English)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(File::ShareDir::PathClass)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module will try to launch a new mpd server for testing purposes. This
mpd server will then be used during the POE::Component::Client::MPD manpage
or the Audio::MPD manpage tests.

In order to achieve this, the module will create a fake _mpd.conf_ file
with the correct pathes (ie, where you untarred the module tarball). It
will then check if some mpd server is already running, and stop it if the
'MPD_TEST_OVERRIDE' environment variable is true (die otherwise). Last it
will run the test mpd with its newly created configuration file.

Everything described above is done automatically when the module is
'use'-d.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5754 |21cr|perl-Test-CPAN-Meta-JSON-0.160.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-CPAN-Meta-JSON
%define upstream_version 0.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Validate CPAN META data against the specification
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::File)
BuildRequires: perl(JSON)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::More)

BuildArch: noarch

%description
This module was written to ensure that a META.json file, provided with a
standard distribution uploaded to CPAN, meets the specifications that are
slowly being introduced to module uploads, via the use of package makers
and installers such as the ExtUtils::MakeMaker manpage, the Module::Build
manpage and the Module::Install manpage.

See the CPAN::Meta manpage for further details of the CPAN Meta
Specification.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.json LICENSE META.yml examples/
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5755 |21cr|perl-Test-CPAN-Meta-YAML-0.250.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-CPAN-Meta-YAML
%define upstream_version 0.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Validate META.json elements

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::YAML::Valid)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(YAML)
BuildRequires:	perl(YAML::Syck)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
This module was written to ensure that a META.yml file, provided with a
standard distribution uploaded to CPAN, meets the specifications that
slowly being introduced to module uploads, via the use of the
ExtUtils::MakeMaker manpage, the Module::Build manpage and the
Module::Install manpage.

See the CPAN::Meta manpage for further details of the CPAN Meta
Specification.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
for file in Changes LICENSE ; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5756 |21cr|perl-Test-Cukes-0.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Cukes
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A BBD test tool inspired by Cucumber

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moose)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Carp::Assert)
BuildArch:	noarch

%description
Test::Cukes is a testing tool inspired by Cucumber (the http://cukes.info
manpage). It lets your write your module test with scenarios. It may be
used with the Test::More manpage or other family of TAP 'Test::*' modules.
It uses the Test::Builder::note manpage function internally to print
messages.

This module implements the Given-When-Then clause only in English. To uses
it in the test programs, feed the feature text into 'feature' function,
defines your step handlers, and then run all the tests by calling
'runtests'. Step handlers may be defined in separate modules, as long as
those modules are included before 'runtests' is called. Each step may use
either 'assert' or standard TAP functions such as 'Test::Simple''s 'ok' or
'Test::More''s 'is' to verify desired result. If you specify a plan
explicitly, you should be aware that each step line in your scenario runs
an additional test, and will therefore add to the number of tests you must
indicate.

If any assertion in the Given block failed, the following 'When' and 'Then'
blocks are all skipped.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot} --prefix=%{_prefix} --installdirs=vendor

%files
%doc Changes META.yml README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5757 |21cr|perl-Test-DBIC-ExpectedQueries-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name   Test-DBIC-ExpectedQueries
%define upstream_version 2.002


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Test::DBIC::ExpectedQueries - Test that only expected DBIx::Class queries are run
License:	Perl
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Test-API/
Source0:	https://cpan.metacpan.org/authors/id/J/JO/JOHANL//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Exporter::Tiny)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(DBIx::Class)
BuildRequires:	perl(autobox::Core)
BuildRequires:	perl(autobox::Transform)

BuildArch:	noarch

%description
Ensure that only the DBIx::Class SQL queries you expect are executed 
while a particular piece of code under test is run. Find the places 
in your code where the unexpected queries are executed.

%prep
%setup -qn  %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std


%files
%doc Changes LICENSE README META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5758 |21cr|perl-Test-Deep-JSON-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Deep-JSON
%define upstream_version 0.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Compare JSON with Test::Deep
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter::Lite)
BuildRequires: perl(JSON::MaybeXS)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(Test::Tester)
BuildRequires: perl-devel
BuildRequires: perl-CPAN-Meta

BuildArch: noarch

%description
Test::Deep::JSON provides 'json($expected)' function to expect that target
can be parsed as a JSON string and matches (by 'cmp_deeply') with
_$expected_.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5759 |21cr|perl-Test-Deep-Type-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Deep-Type
%define upstream_version 0.008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A Test::Deep plugin for validating type constraints
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Exporter) >= 5.720.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec) >= 3.470.0
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(MooseX::Types::Moose)
BuildRequires: perl(Safe::Isa)
BuildRequires: perl(Scalar::Util) >= 1.420.0
BuildRequires: perl(Test::Deep) >= 0.115.0
BuildRequires: perl(Test::Deep::Cmp)
BuildRequires: perl(Test::Fatal) >= 0.14.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Tester)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(overload)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
'Test::Deep::Type' provides the sub 'is_type' to indicate that the data
being tested must validate against the passed type. This is an actual type
_object_, not a string name -- for example something provided via the
MooseX::Types manpage, or a plain old coderef that returns a bool (such as
what might be used in a the Moo manpage type constraint).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENCE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5760 |21cr|perl-Test-Dependencies-0.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Dependencies
%define upstream_version 0.30

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Ensure that your Makefile.PL specifies all module dependencies

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(B::PerlReq)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::Find::Rule::Perl)
BuildRequires:	perl(IPC::Cmd)
BuildRequires:	perl(Module::CoreList)
BuildRequires:	perl(PerlReq::Utils)
BuildRequires:	perl(Pod::Strip)
BuildRequires:	perl(Test::Needs)
BuildRequires:	perl(Test::Builder::Module)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(YAML)
BuildArch:	noarch

%description
Makes sure that all of the modules that are 'use'd are listed in the
Makefile.PL as dependencies.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5761 |21cr|perl-Test-DiagINC-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-DiagINC
%define upstream_version 0.008

Name:           perl-Test-DiagINC
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        List modules and versions loaded if tests fail
Group:          Development/Perl
License:        ASL 2.0

URL:            https://metacpan.org/release/Test-DiagINC
Source0:        https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/Test-DiagINC-%{upstream_version}.tar.gz

BuildArch:      noarch
# build requirements
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# runtime requirements
BuildRequires:  perl(B)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# test requrements
BuildRequires:  perl(Capture::Tiny) >= 0.21
BuildRequires:  perl(Config)
BuildRequires:  perl(Test::More)
Requires:       perl(B)
Requires:       perl(Cwd)
Requires:       perl(File::Spec)
Requires:       perl(strict)
Requires:       perl(warnings)
Requires:       perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))

%{?perl_default_filter}

%description
Assuming you shipped your module to CPAN with working tests, test failures
from CPAN Testers might be due to platform issues, Perl version issues or
problems with dependencies. This module helps you diagnose deep dependency
problems by showing you exactly what modules and versions were loaded
during a test run.

%prep
%setup -q -n Test-DiagINC-%{upstream_version}

%build
/usr/bin/perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
%{make_build} test

%files
%doc Changes CONTRIBUTING.mkdn README examples
%license LICENSE
%{perl_vendorlib}/Test*
%{_mandir}/man3/Test*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5762 |21cr|perl-Test-Dir-1.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Dir
%define upstream_version 1.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Test folder attributes
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Path)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)

BuildArch: noarch

%description
This modules provides a collection of test utilities for directory
attributes. Use it in combination with Test::More in your test programs.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x README META.yml Changes 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5763 |21cr|perl-Test-DistManifest-1.14.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-DistManifest
%define upstream_version 1.014

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    Verify MANIFEST as an author test
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::Manifest)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(Module::Manifest)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(CPAN::Meta) >= 2.150.5

BuildArch: noarch

%description
This module provides a simple method of testing that a MANIFEST matches the
distribution.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
rm *.list
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README META.json examples
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5764 |21cr|perl-Test-Distribution-2.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Test-Distribution
%define upstream_version 2.00

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Perform tests on all modules of a distribution 

License:	GPLv2 or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}/
Source: 	http://www.cpan.org/modules/by-module/Test/Test-Distribution-%{upstream_version}.tar.gz
Buildrequires:	perl(Module::Build)
Buildrequires:	perl(Module::Signature)
Buildrequires:	perl(Module::CoreList)
Buildrequires:	perl(File::Find::Rule)
Buildrequires:	perl(Test::More)
Requires:	perl(File::Find::Rule)
BuildArch:	noarch

%description
When using this module in a test script, it goes through all the modules in
your distribution, checks their POD, checks that they compile OK and checks
that they all define a $VERSION.

This module also performs a number of test on the distribution itself. 
It checks that your files match your SIGNATURE file if you have one. It 
checks that your distribution isn't missing certain 'core' description 
files. It checks to see you haven't missed out listing any prerequisites 
in Makefile.PL.

It defines its own testing plan, so you usually don't use it in conjunction
with other Test::* modules in the same file. It's recommended that you just
create a one-line test script as shown in the SYNOPSIS above. However, there
are options...

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes.pod README
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5765 |21cr|perl-Test-Email-0.70.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Email
%define upstream_version 0.07

Name:           perl-Test-Email
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Test Email Contents
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Test-Email
Source0:        https://cpan.metacpan.org/authors/id/J/JA/JAMES/Test-Email-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Mail::POP3Client)
BuildRequires:  perl(Mail::Sendmail)
BuildRequires:  perl(MIME::Entity)
BuildRequires:  perl(MIME::Parser)
BuildRequires:  perl(Test::Builder)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Test::Email is a subclass of MIME::Entity, with the above methods.
If you want the messages fetched from a POP3 account, use Test::POP3.

%prep
%setup -q -n Test-Email-%{upstream_version}

# Fix permissions
find -type f -exec chmod -x {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5766 |21cr|perl-Test-EOL-2.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-EOL
%define upstream_version 2.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Check the correct line endings in your project

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Cwd)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(vars)

BuildArch:	noarch

%description
This module scans your project/distribution for any perl files (scripts,
modules, etc) for the presence of windows line endings.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENCE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5767 |21cr|perl-Test-Expect-0.340.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Expect
%define upstream_version 0.34

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Automated driving and testing of terminal-based programs
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:  perl
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(strict)
BuildRequires:  perl(base)
BuildRequires:  perl(Class::Accessor::Chained::Fast)
BuildRequires:  perl(Expect::Simple)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Test::Builder)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Expect)
BuildRequires:  perl(Test::More) >= 1.1.9


BuildArch: noarch

%description
the Test::Expect manpage is a module for automated driving and testing of
terminal-based programs. It is handy for testing interactive programs which
have a prompt, and is based on the same concepts as the Tcl Expect tool. As
in the Expect::Simple manpage, the the Expect manpage object is made
available for tweaking.

the Test::Expect manpage is intended for use in a test script.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL INSTALLDIRS=vendor
./Build

%check
./Build test

%install
./Build install destdir=%buildroot installdirs=vendor

%files
%doc META.yml README META.json CHANGES
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5768 |21cr|perl-Test-File-Contents-0.241.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-File-Contents
%define upstream_version 0.241

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	%{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-File-Contents-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Diff)
BuildArch:	noarch

%description
%{upstream_name} perl module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5769 |21cr|perl-Test-Filename-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Filename
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Portable filename comparison
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Builder::Module)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Tester)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
Many cross-platform test failures -- particularly on Win32 -- are due to
hard-coded file paths being used in comparison tests.

  my $file = get_file();     # returns "foo\bar.t";
  is( $file, "foo/bar.t" );  # fails on Win32

This simple module provides some handy functions to convert all those path
separators automatically so filename tests will just DWIM.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5770 |21cr|perl-Test-Fixme-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Fixme
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Check code for FIXMEs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Fixme-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Finder)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More) >= 1.1.9

BuildArch:	noarch

%description
When coding it is common to come up against problems that need to be
addressed but that are not a big deal at the moment. What generally happens
is that the coder adds comments like:

 # FIXME - what about windows that are bigger than the screen?

 # FIXME - add checking of user priviledges here.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README META.json LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5771 |21cr|perl-Test-Harness-Straps-0.300.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Harness-Straps
%define upstream_version 0.30

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    Internal Test::Harness Iterator

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(File::Spec)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
The construct

  use if CONDITION, MODULE => ARGUMENTS;

has no effect unless 'CONDITION' is true. In this case the effect is the
same as of

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5772 |21cr|perl-Test-HasVersion-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-HasVersion
%define upstream_version 0.014

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Check Perl modules have version numbers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Do you wanna check that every one of your Perl modules in a distribution
has a version number? You wanna make sure you don't forget the brand new
modules you just added? Well, that's the module you have been looking for.
Use it!

Do you wanna check someone else's distribution to make sure the author have
not commited the sin of leaving Perl modules without a version that can be
used to tell if you have this or that feature? 'Test::HasVersion' is also
for you, nasty little fellow.

There's a script _test_version_ which is installed with this distribution.
You may invoke it from within the root directory of a distribution you just
unpacked, and it will check every _.pm_ file in the directory and under
_lib/_ (if any).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/test_version

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5773 |21cr|perl-Test-HTML-Tidy-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-HTML-Tidy
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Test::More-style wrapper around HTML::Tidy 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Tidy)

BuildArch:	noarch

%description 
Handy way to check that HTML is valid, according to HTML::Tidy. It is built
with Test::Builder and plays happily with Test::More and friends.

If you are not already familiar with Test::More now would be the time to go
take a look.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%files
%doc Changes
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5774 |21cr|perl-Test-HTTP-LocalServer-0.740.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-HTTP-LocalServer
%define upstream_version 0.74

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Spawn a local HTTP server for testing
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CGI)
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(HTTP::Daemon) >= 6.50.0
BuildRequires: perl(HTTP::Request::AsCGI)
BuildRequires: perl(HTTP::Response)
BuildRequires: perl(HTTP::Tiny)
BuildRequires: perl(HTML::Entities)
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(IO::Socket::IP) >= 0.250.0
BuildRequires: perl(Socket)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(URI)
BuildRequires: perl(URI::URL)
BuildArch:     noarch

%description
This module implements a tiny web server suitable for running "live" tests
of HTTP clients against it. It also takes care of cleaning ENV from
settings that influence the use of a local proxy etc.

Use this web server if you write an HTTP client and want to exercise its
behaviour in your test suite without talking to the outside world.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
make test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5775 |21cr|perl-Test-HTTP-Server-Simple-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-HTTP-Server-Simple
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Test::More functions for HTTP::Server::Simple

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTTP::Server::Simple)
BuildRequires:	perl(NEXT)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This mixin class provides methods to test an the HTTP::Server::Simple
manpage-based web server. Currently, it provides only one such method:
'started_ok'.

started_ok [$text]
    'started_ok' takes an optional test description. The server needs to
    have been configured (specifically, its port needs to have been set),
    but it should not have been run or backgrounded. 'started_ok' calls
    'background' on the server, which forks it to run in the background.
    the Test::HTTP::Server::Simple manpage takes care of killing the server
    when your test script dies, even if you kill your test script with an
    interrupt. 'started_ok' returns the URL 'http://localhost:$port' which
    you can use to connect to your server.

    Note that if the child process dies, or never gets around to listening
    for connections, this just hangs. (This may be fixed in a future
    version.)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Test/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5776 |21cr|perl-Test-Image-GD-0.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Image-GD
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A module for testing images using GD

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(GD)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module is meant to be used for testing custom graphics, it attempts to
"visually" compare the images, this means it ignores invisible differences
like color palettes and metadata. It also provides some extra functions to
check the size of the image.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5777 |21cr|perl-Test-InDistDir-1.112.71-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-InDistDir
%define upstream_version 1.112071

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Test environment setup for development with IDE

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch: noarch

%description
This module helps run test scripts in IDEs like Komodo.

When running test scripts in an IDE i have to set up a project file
defining the dist dir to run tests in and a lib dir to load additional
modules from. Often I didn't feel like doing that, especially when i only
wanted to do a small patch to a dist. In those cases i added a BEGIN block
to mangle the environment for me.

This module basically is that BEGIN block. It automatically moves up one
directory when it cannot see the test script in "t/$scriptname" and
includes 'lib' in @INC when there's no blib present. That way the test ends
up with almost the same environment it'd get from EUMM/prove/etc., even
when it's actually run inside the t/ directory.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5778 |21cr|perl-Test-JSON-0.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-JSON
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Test JSON data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(JSON)
BuildRequires:	perl(JSON::Any)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Test::Tester)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
JavaScript Object Notation (JSON) is a lightweight data interchange format.
the Test::JSON manpage makes it easy to verify that you have built valid
JSON and that it matches your expected output.

See the http://www.json.org/ manpage for more information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5779 |21cr|perl-Test-Kwalitee-1.280.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Kwalitee
%define upstream_version 1.28

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Test the Kwalitee of a distribution before you release it
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta::Check)
BuildRequires: perl(CPAN::Meta::Requirements)
BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Module::CPANTS::Analyse)
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(Package::Stash)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Tester)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(version)
BuildRequires: perl(namespace::clean)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Tiny)

BuildRequires: perl-devel
BuildArch:     noarch

%description
Kwalitee is an automatically-measurable gauge of how good your software is.
That's very different from quality, which a computer really can't measure
in a general sense. (If you can, you've solved a hard problem in computer
science.)

In the world of the CPAN, the CPANTS project (CPAN Testing Service; also a
funny acronym on its own) measures Kwalitee with several metrics. If you
plan to release a distribution to the CPAN -- or even within your own
organization -- testing its Kwalitee before creating a release can help you
improve your quality as well.

'Test::Kwalitee' and a short test file will do this for you automatically.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_bindir}/kwalitee-metrics
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5780 |21cr|perl-Test-LectroTest-0.5001-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-LectroTest
%define upstream_version 0.5001

Name:       perl-%{upstream_name}
# the old is not converted
#Version:    %perl_convert_version %{upstream_version}
#
Version:	%{upstream_version}
Release:    3

Summary:    How to do regression testing (for free!)
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Class::Struct)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Filter::Util::Call)
BuildRequires: perl(POSIX)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl-devel

BuildArch: noarch

%description
This module exports a single function 'capture' that allows you to
temporarily capture output from a given filehandle. The function returns an
anonymous function that can be used to restore the filehandle to its
previous condition and return any captured output.

For example, the output of the code in the Synopsis is as follows:

    before redirection
    after redirection
    Saved output = during redirection.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5781 |21cr|perl-Test-Lib-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Lib
%define upstream_version 0.002

Name:           perl-Test-Lib
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Use libraries from a t/lib directory
Group:          Development/Perl
License:        GPL+ or Artistic

URL:            https://metacpan.org/release/Test-Lib
Source0:        https://cpan.metacpan.org/authors/id/H/HA/HAARG/Test-Lib-%{upstream_version}.tar.gz

BuildArch:      noarch
# build dependencies
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# runtime dependencies
BuildRequires:  perl(Cwd)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(lib)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# test dependencies
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`/usr/bin/perl -V:version`"; echo $version))

%{?perl_default_filter}

%description
Searches upward from the calling module for a directory t with a lib
directory inside it, and adds it to the module search path. Looks upward up
to 5 directories. This is intended to be used in test modules either
directly in t or in a sub-directory to find their included testing libraries
located in t/lib.

%prep
%setup -q -n Test-Lib-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install
%{_fixperms} %{buildroot}/*

%check
%make_build test

%files
%doc Changes README
%{perl_vendorlib}/Test*
%{_mandir}/man3/Test*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5782 |21cr|perl-Test-Log-Dispatch-0.30.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Log-Dispatch
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	A Log::Dispatch object that keeps track of everything logged to it in memory

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Log::Dispatch::Array)
BuildRequires:	perl(Log::Dispatch::Output)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Tester)
BuildArch:	noarch

%description
'Test::Log::Dispatch' is a 'Log::Dispatch' object that keeps track of
everything logged to it in memory, and provides convenient tests against
what has been logged.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5783 |21cr|perl-Test-Log-Log4perl-0.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Log-Log4perl
%define upstream_version 0.32

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Test log4perl
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(Devel::Peek)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Log::Log4perl)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
This module can be used to test that you're logging the right thing with
Log::Log4perl. It checks that we get what, and only what, we expect logged
by your code.

The basic process is very simple. Within your test script you get one or
more loggers from *Test::Log::Log4perl* with the 'get_logger' method just
like you would with *Log::Log4perl*. You're going to use these loggers to
declare what you think the code you're going to test should be logging.

  # declare a bunch of test loggers
  my $tlogger = Test::Log::Log4perl->get_logger("Foo::Bar");

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
export PERL5LIB="`pwd`"
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%check
%__make test

%install
%make_install

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%perl_vendorlib/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5784 |21cr|perl-Test-LWP-UserAgent-0.36.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-LWP-UserAgent
%define upstream_version 0.036

Name:           perl-Test-LWP-UserAgent
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        LWP::UserAgent suitable for simulating and testing network calls
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Test-LWP-UserAgent
Source0:        https://cpan.metacpan.org/authors/id/E/ET/ETHER/Test-LWP-UserAgent-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(CPAN::Meta::Requirements)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(Module::Metadata)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Runtime
BuildRequires:  perl(Carp)
BuildRequires:  perl(HTTP::Date)
BuildRequires:  perl(HTTP::Request)
BuildRequires:  perl(HTTP::Response)
BuildRequires:  perl(HTTP::Status)
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(namespace::clean) >= 0.19
BuildRequires:  perl(parent)
BuildRequires:  perl(Safe::Isa)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Storable)
BuildRequires:  perl(Try::Tiny)
BuildRequires:  perl(URI)
# Tests
BuildRequires:  perl(Cpanel::JSON::XS)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(HTTP::Message::PSGI)
BuildRequires:  perl(HTTP::Request::Common)
BuildRequires:  perl(if)
BuildRequires:  perl(JSON::MaybeXS)
BuildRequires:  perl(lib)
BuildRequires:  perl(Moose)
BuildRequires:  perl(overload)
BuildRequires:  perl(Path::Tiny)
BuildRequires:  perl(Test::Deep) >= 0.110
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Test::RequiresInternet)
BuildRequires:  perl(Test::Needs)
BuildRequires:  perl(Test::Warnings) >= 0.009
# Optional tests
BuildRequires:  perl(Module::Runtime::Conflicts)

Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%define __provides_exclude ^perl\\(MyApp::Client\\)
%define __requires_exclude ^perl\\(MyApp::Client\\)

%description
This module is a subclass of LWP::UserAgent which overrides a few key low-
level methods that are concerned with actually sending your request over
the network, allowing an interception of that request and simulating a
particular response. This greatly facilitates testing of client networking
code where the server follows a known protocol.

%package tests
Summary:        Tests for %{name}
Requires:       %{name} = %{EVRD}
Requires:       perl(HTTP::Message::PSGI)
Requires:       perl(Module::Runtime::Conflicts)
Requires:       perl(Moose)
Requires:       perl-Test-Harness

%description tests
Tests from %{name}. Execute them
with "%{_libexecdir}/%{name}/test".

%prep
%setup -q -n Test-LWP-UserAgent-%{upstream_version}

# Help generators to recognize Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

# Install tests
mkdir -p %{buildroot}%{_libexecdir}/%{name}
cp -a t %{buildroot}%{_libexecdir}/%{name}
mkdir %{buildroot}%{_libexecdir}/%{name}/examples
cp -a examples/MyApp %{buildroot}%{_libexecdir}/%{name}/examples
cat > %{buildroot}%{_libexecdir}/%{name}/test << 'EOF'
#!/bin/sh
cd %{_libexecdir}/%{name} && exec prove -I . -j "$(getconf _NPROCESSORS_ONLN)"
EOF
chmod +x %{buildroot}%{_libexecdir}/%{name}/test

%check
NO_NETWORK_TESTING=1 make test

%files
%license LICENCE
%doc Changes CONTRIBUTING docs examples README
%{perl_vendorlib}/*
%{_mandir}/man3/*

%files tests
%{_libexecdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5785 |21cr|perl-Test-MinimumVersion-0.101.82-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-MinimumVersion
%define upstream_version 0.101082

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Does your code require newer perl than you think?

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(File::Find::Rule::Perl)
BuildRequires:	perl(Perl::MinimumVersion)
BuildRequires:	perl(Test::Tester)
BuildRequires:	perl(YAML::Tiny)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Does your code require newer perl than you think?

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5786 |21cr|perl-Test-MockDBI-0.650.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-MockDBI
%define upstream_version 0.65

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6
Summary:    Test by mocking-up DBI 

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/A/AF/AFF/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  perl
BuildRequires:  perl-devel
BuildRequires:  perl(DBI)
BuildRequires:  perl(Test::MockObject)
Requires:       perl(DBI)
BuildArch: noarch

%description
Test::MockDBI provides a way to test DBI interfaces by creating rules for
changing the DBI\'s behavior, then examining the standard output for
matching patterns. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find . -type f -print0 | xargs -0 chmod 644

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%defattr(-,root,root,755)
%doc Changes HISTORY README TODO
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5787 |21cr|perl-Test-Mock-LWP-0.80.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Mock-LWP
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Mocks LWP::UserAgent

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Test/Test-Mock-LWP-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This package arises from duplicating the same code to mock LWP et al in
several different modules I've written. This version is very minimalist,
but works for my needs so far. I'm very open to new suggestions and
improvements.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5788 |21cr|perl-Test-MockModule-0.100.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-MockModule
%define upstream_version 0.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Override subroutines in a module for unit testing
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(SUPER)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)

BuildArch: noarch

%description
'Test::MockModule' lets you temporarily redefine subroutines in other
packages for the purposes of unit testing.

A 'Test::MockModule' object is set up to mock subroutines for a given
module. The object remembers the original subroutine so it can be easily
restored. This happens automatically when all MockModule objects for the
given module go out of scope, or when you 'unmock()' the subroutine.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc LICENSE META.yml Changes README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5789 |21cr|perl-Test-MockTime-0.170.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-MockTime
%define upstream_version 0.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Mock time/localtime for testing

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Time::Local)
BuildRequires:	perl(Time::Piece) >= 1.300.0
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module was created to enable test suites to test code at specific
points in time. Specifically it overrides localtime, gmtime and time at
compile time and then relies on the user supplying a mock time via
set_relative_time, set_absolute_time or set_fixed_time to alter future
calls to gmtime,time or localtime.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
chmod -x %{buildroot}%{perl_vendorlib}/Test/MockTime.pm

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5790 |21cr|perl-Test-Modern-0.13.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  Test-Modern
%define upstream_version 0.013

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Precision testing for modern perl
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Test-Modern/
Source0:	http://search.cpan.org/CPAN/authors/id/T/TO/TOBYINK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::Meta::Requirements)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(B)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Exporter::Tiny)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(Import::Into)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Moose::Util)
BuildRequires:	perl(Mouse::Util)
BuildRequires:	perl(Role::Tiny)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(strict)
BuildRequires:	perl(Test::API)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::LongString)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Version)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(warnings)
BuildRequires:	perl(base)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Moose)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(aliased)

BuildArch:	noarch

%description
Test::Modern provides the best features of Test::More, Test::Fatal,
Test::Warnings, Test::API, Test::LongString, and Test::Deep, as well as ideas
from Test::Requires, Test::DescribeMe, Test::Moose, and Test::CleanNamespaces.

Test::Modern also automatically imposes strict and warnings on your script,
and loads IO::File (much of the same stuff Modern::Perl does).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTING CREDITS README COPYRIGHT LICENSE META.json META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5791 |21cr|perl-Test-Mojibake-1.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Mojibake
%define upstream_version 1.3

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Check your source for encoding misbehavior
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(integer)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
Many modern text editors automatically save files using UTF-8 codification,
however, the perl manpage interpreter does not expects it _by default_.
Whereas this does not represent a big deal on (most) backend-oriented
programs, Web framework (http://www.catalystframework.org/,
http://mojolicio.us/) based applications will suffer of so-called
http://en.wikipedia.org/wiki/Mojibake (lit. "unintelligible sequence of
characters").

Even worse: if an editor saves BOM (Byte Order Mark, 'U+FEFF' character in
Unicode) at the start of the script with executable bit set (on Unix
systems), it won't execute at all, due to shebang corruption.

Avoiding codification problems is quite simple:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_bindir}/scan_mojibake
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5792 |21cr|perl-Test-Moose-More-0.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Moose-More
%define upstream_version 0.050

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    More tools for testing Moose packages
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/authors/id/R/RS/RSRCHBOY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Data::OptList)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Moose) >= 2.140.500
BuildRequires: perl(Moose::Autobox)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(Moose::Util)
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(Perl::Version)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Exporter)
BuildRequires: perl(Syntax::Keyword::Junction)
BuildRequires: perl(TAP::SimpleOutput)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::CheckDeps) >= 0.10.0
BuildRequires: perl(Test::Moose)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(aliased)
BuildRequires: perl(constant)
BuildRequires: perl(namespace::autoclean) >= 0.270.0
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta::Check) >= 0.12.0
BuildRequires: perl(CPAN::Meta) >= 2.150.5

BuildArch:  noarch

%description
This package contains a number of additional tests that can be employed
against Moose classes/roles. It is intended to replace the Test::Moose
manpage in your tests, and reexports any tests that it has and we do not,
yet.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README SIGNATURE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5793 |21cr|perl-Test-Most-0.370.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Most
%define upstream_version 0.37

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Most commonly needed test functions and features
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Module::Build::Compat)
Requires:	perl(Exception::Class)
Requires:	perl(Test::Deep)
Requires:	perl(Test::Differences)
Requires:	perl(Test::Exception)
Requires:	perl(Test::Warn)
BuildArch: noarch

%description
Most commonly needed test functions and features.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5794 |21cr|perl-Test-NeedsDisplay-1.70.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-NeedsDisplay
%define upstream_version 1.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Ensure that tests needing a display have one

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)
BuildRequires:	x11-server-xvfb
BuildArch:	noarch
Requires:	x11-server-xvfb

%description
When testing GUI applications, sometimes applications or modules absolutely
insist on a display, even just to load a module without actually showing
any objects.

Regardless, this makes GUI applications pretty much impossible to build and
test on headless or automated systems. And it fails to the point of not
even running the Makefile.PL script because a dependency needs a display so
it can be loaded to find a version.

In these situations, what is needed is a fake display.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5795 |21cr|perl-Test-NoBreakpoints-0.170.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-NoBreakpoints
%define upstream_version 0.17

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Test that files do not contain soft breakpoints
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Tester)
BuildRequires: perl(Test::UseAllModules)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
I love soft breakpoints ('$DB::single = 1') in the Perl debugger.
Unfortunately, I have a habit of putting them in my code during development
and forgetting to take them out before I upload it to CPAN, necessitating a
hasty fix/package/bundle cycle followed by much cursing.

Test::NoBreakpoints checks that files contain neither the string
'$DB::single = 1' nor '$DB::signal = 1'. By adding such a test to all my
modules, I swear less and presumably lighten the load on the CPAN in some
small way.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5796 |21cr|perl-Test-NoPlan-0.0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-NoPlan
%define upstream_version v0.0.6

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Check perl test files for 'no_plan'
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(version)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)

BuildArch: noarch

%description
no description found

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5797 |21cr|perl-Test-NoTabs-2.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-NoTabs
%define upstream_version 2.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Check the presence of tabs in your project

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module scans your project/distribution for any perl files (scripts,
modules, etc) for the presence of tabs.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5798 |21cr|perl-Test-Parser-1.9-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  Test-Parser
%define debug_package %{nil}

Name:		perl-%{module}
Version:	1.9
Release:	8
Summary:	Base class for parsing log files from test runs, and displays in an XML syntax 

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Test/%{module}-%{version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(XML::Simple)
BuildRequires:	perl(XML::Twig)

%description 
This module serves as a common base class for test log parsers. These tools are
intended to be able to parse output from a wide variety of tests - including
non-Perl tests.

The parsers also write the test data into the 'Test Result Publication
Interface' (TRPI) XML schema, developed by SpikeSource.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%files
%doc ChangeLog INSTALL README
%{perl_vendorlib}/Test
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5799 |21cr|perl-Test-Perl-Critic-1.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Perl-Critic
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Use Perl::Critic in test programs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Carp)
BuildRequires:	perl(English)
BuildRequires:	perl(MCE)
BuildRequires:	perl(Perl::Critic::Utils)
BuildRequires:	perl(Perl::Critic::Violation)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(File::HomeDir)

BuildArch:	noarch

%description 
Test::Perl::Critic wraps the Perl::Critic engine in a convenient subroutine
suitable for test programs written using the Test::More framework. This makes
it easy to integrate coding-standards enforcement into the build process. For
ultimate convenience (at the expense of some flexibility), see the criticism
pragma.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot}

%check
./Build test


%files
%doc Changes LICENSE README META.json META.yml
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5800 |21cr|perl-Test-Perl-Critic-Progressive-0.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Perl-Critic-Progressive
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Gradually enforce coding standards

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(English)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Perl::Critic::Utils)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
Applying coding standards to large amounts of legacy code is a daunting
task. Often times, legacy code is so non-compliant that it seems downright
impossible. But, if you consistently chip away at the problem, you will
eventually succeed! Test::Perl::Critic::Progressive uses the the
Perl::Critic manpage engine to prevent further deterioration of your code
and *gradually* steer it towards conforming with your chosen coding
standards.

The most effective way to use Test::Perl::Critic::Progressive is as a unit
test that is run under a continuous-integration system like CruiseControl
or AntHill. Each time a developer commits changes to the code, this test
will fail and the build will break unless it has the same (or fewer)
Perl::Critic violations than the last successful test.

See the the "NOTES" manpage for more details about how this test works.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5801 |21cr|perl-Test-Pod-Content-0.0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Pod-Content
%define upstream_version 0.0.6

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Test a Pod's content

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/Test-Pod-Content-v%{upstream_version}.tar.gz

BuildRequires: perl(Pod::Simple)
BuildRequires: perl(Test::More)
BuildRequires: perl(version)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This is a very simple module for testing a Pod's content. It is mainly
intended for testing the content of generated Pod - that is, the Pod
included in perl modules generated by some mechanism.

Another usage example is to test whether all files contain the same
copyright notice:

 plan tests => scalar @filelist;

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5802 |21cr|perl-Test-Pod-LinkCheck-0.8.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Pod-LinkCheck
%define upstream_version 0.008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Tests POD for invalid links
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(App::PodLinkCheck::ParseLinks)
BuildRequires: perl(App::PodLinkCheck::ParseSections)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Config)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moose) >= 1.10.0
BuildRequires: perl(Moose::Util::TypeConstraints)
BuildRequires: perl(Pod::Find)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Tester)
BuildRequires: perl(parent)
BuildRequires: man
BuildRequires: perl(Module::Build::Tiny)

BuildArch:  noarch

%description
This module looks for any links in your POD and verifies that they point to
a valid resource. It uses the the Pod::Simple manpage parser to analyze the
pod files and look at their links. In a nutshell, it looks for 'L<Foo>'
links and makes sure that Foo exists. It also recognizes section links,
'L</SYNOPSIS>' for example. Also, manpages are resolved and checked.

This module does *NOT* check "http" links like 'L<http://www.google.com>'
in your pod. For that, please check out the Test::Pod::No404s manpage.

Normally, you wouldn't want this test to be run during end-user
installation because they might not have the modules installed! It is
HIGHLY recommended that this be used only for module authors'
RELEASE_TESTING phase. To do that, just modify the synopsis to add an env
check :)

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# prevent test to reach network (for cpan)
perl -pi -e 's/Acme::Drunk/Test::More/' t/simple.t
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README SIGNATURE examples
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5803 |21cr|perl-Test-Pod-No404s-0.20.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Pod-No404s
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Using this test module will check your POD for any http 404 links
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Pod::Simple::Text)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(URI::Find)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Tiny)

BuildArch: noarch

%description
This module looks for any http(s) links in your POD and verifies that they
will not return a 404. It uses the LWP::UserAgent manpage for the heavy
lifting, and simply lets you know if it failed to retrieve the document.
More specifically, it uses $response->is_error as the "test."

This module does *NOT* check "pod" or "man" links like 'L<Test::Pod>' in
your pod. For that, please check out the Test::Pod::LinkCheck manpage.

Normally, you wouldn't want this test to be run during end-user
installation because they might have no internet! It is HIGHLY recommended
that this be used only for module authors' RELEASE_TESTING phase. To do
that, just modify the synopsis to add an env check :)

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5804 |21cr|perl-Test-Pod-Spelling-CommonMistakes-1.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Pod-Spelling-CommonMistakes
%define upstream_version 1.001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Checks POD for common spelling mistakes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Pod::Spell::CommonMistakes)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(version)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(Module::Runtime)

BuildArch:	noarch

%description
This module checks your POD for common spelling errors. This differs than
the Test::Spelling manpage because it doesn't use your system spellchecker
and instead uses the Pod::Spell::CommonMistakes manpage for the heavy
lifting. Using it is the same as any standard Test::* module, as seen here.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README META.yml Changes META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5805 |21cr|perl-Test-POE-Client-TCP-1.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-POE-Client-TCP
%define upstream_version 1.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A POE Component providing TCP client services for test cases

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-POE-Client-TCP-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Filter)
BuildRequires:	perl(POE::Filter::Line)
BuildRequires:	perl(POE::Wheel::ReadWrite)
BuildRequires:	perl(POE::Wheel::SocketFactory)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::ParseWords)
BuildArch:	noarch

%description
Test::POE::Client::TCP is a the POE manpage component that provides a TCP
client framework for inclusion in client component test cases, instead of
having to roll your own.

Once registered with the component, a session will receive events related
to connections made, disconnects, flushed output and input from the
specified server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#need internet connection?
#make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/Test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5806 |21cr|perl-Test-POE-Server-TCP-1.200.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-POE-Server-TCP
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A POE Component providing TCP server services for test cases

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(POE)
BuildRequires:	perl(POE::Filter)
BuildRequires:	perl(POE::Filter::Line)
BuildRequires:	perl(POE::Wheel::ReadWrite)
BuildRequires:	perl(POE::Wheel::SocketFactory)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Text::ParseWords)
BuildRequires:	perl(Pod::Coverage::TrustPod)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)

BuildArch:	noarch

%description
Test::POE::Server::TCP is a the POE manpage component that provides a TCP
server framework for inclusion in client component test cases, instead of
having to roll your own.

Once registered with the component, a session will receive events related
to client connects, disconnects, input and flushed output. Each of these
events will refer to a unique client ID which may be used in communication
with the component when sending data to the client or disconnecting a
client connection.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/Test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5807 |21cr|perl-Test-PostgreSQL-1.290.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-PostgreSQL
%define upstream_version 1.29

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    PostgreSQL runner for tests
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(DBD::Pg)
BuildRequires: perl(DBI)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Moo)
BuildRequires: perl(Test::SharedFork)
BuildRequires: perl(Types::Standard)
BuildRequires: perl(Function::Parameters)
BuildRequires: perl(Tie::Hash::Method)

BuildArch: noarch

# The DBD::Pg is used via DBI->connect() first argument
Requires:       perl(DBD::Pg)
# initdb, pg_ctl, and postgres or postmaster tools are used
Requires:       postgresql-server

# Remove under-specified dependencies
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^perl\\(Test::SharedFork\\)$

%description
'Test::PostgreSQL' automatically setups a PostgreSQL instance in a
temporary directory, and destroys it when the perl script exits.

This module is a fork of Test::postgresql, which was abandoned by its
author several years ago.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

# Help generators to recognize Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!\s*perl}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
%{__perl} Build.PL --installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
unset POSTGRES_HOME TEST_POSTGRESQL_PRESERVE
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
./Build test

%install
./Build install --destdir=%{buildroot} --prefix=%{_prefix} --create_packlist=0
%_fixperms %{buildroot}/*

%files
%doc META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5808 |21cr|perl-Test-Prereq-1.39.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Prereq
%define upstream_version 1.039

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Check if Makefile.PL has the right pre-requisites

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Prereq-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Module::CoreList)
BuildRequires:	perl(Module::Info)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Info)
BuildRequires:	perl(Module::CoreList)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)



BuildArch:	noarch

%description 
The prereq_ok() function examines the modules it finds in blib/lib/,
blib/script, and the test files it finds in t/ (and test.pl). It figures out
which modules they use, skips the modules that are in the Perl core, and
compares the remaining list of modules to those in the PREREQ_PM section of
Makefile.PL.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
# Currently fails, should recheck later
rm -f t/get_loaded_modules.t
perl -pi -e 's/get_loaded_modules.t//' t/test_manifest
%make test

%files
%doc Changes README.* LICENSE META.json META.yml
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5809 |21cr|perl-Test-RandomResult-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-RandomResult
%define upstream_version 0.001

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Test that results of a running code look random
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Test-RandomResult/
Source0:        https://cpan.metacpan.org/authors/id/P/PE/PERLANCAR/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires: make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Exporter) >= 5.57
BuildRequires:  perl(Test2::API)
# Tests
BuildRequires:  perl(blib)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Test::More)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Exporter) >= 5.57

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Exporter\\)\\s*$

%description
Test that results of a running code look random

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
make test


%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5810 |21cr|perl-Test-Regression-0.70.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Regression
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.07
Release:	5

Summary:	Test library to generate and compare output

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Regression-0.07.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::Diff)
BuildRequires:	perl(DirHandle)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(FileHandle)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Diff)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
Using the various Test:: modules you can compare the output of a function
against what you expect. However if the output is complex and changes from
version to version, maintenance of the expected output could be costly.
This module allows one to use the test code to generate the expected
output, so that if the differences with model output are expected, one can
easily refresh the model output.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5811 |21cr|perl-Test-Reporter-1.620.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Reporter
%define upstream_version 1.62

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Sends test results to cpan-testers@perl.org

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Reporter-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(FileHandle)
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(Net::SMTP)
BuildRequires:	perl(Sys::Hostname)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Time::Local)
BuildRequires:	perl(base)
BuildRequires:	perl(constant)

BuildArch:	noarch

%description
Test::Reporter reports the test results of any given distribution to the
CPAN Testers project. Test::Reporter has wide support for various perl5's
and platforms.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5812 |21cr|perl-Test-Requires-Git-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Requires-Git
%define upstream_version 1.008

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Check your test requirements against the available version of Git
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Test-Requires-Git
Source0:        https://cpan.metacpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  findutils
BuildRequires:  perl-devel
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(Git::Version::Compare)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::Builder::Module)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(warnings)

%global __requires_exclude ^perl\\(Git::Version::Compare\\)$
Requires:       perl(Git::Version::Compare) >= 1.001
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Test::Requires::Git checks if the version of Git available for testing
meets the given requirements.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}

find %{buildroot} -type f -name .packlist -delete

%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5813 |21cr|perl-Test-RequiresInternet-0.50.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-RequiresInternet
%define upstream_version 0.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Easily test network connectivity
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Socket)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch: noarch

%description
This module is intended to easily test network connectivity before
functional tests begin to non-local Internet resources. It does not
require any modules beyond those supplied in core Perl.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5814 |21cr|perl-Test-Roo-1.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Roo
%define upstream_version 1.004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Test::Roo examples

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(List::Util)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Moo)
BuildRequires: perl(MooX::Types::MooseLike::Base)
BuildRequires: perl(Sub::Install)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildRequires: perl(strict)
BuildRequires: perl(strictures)
BuildRequires: perl(warnings)
BuildRequires: perl(bareword::filehandles)
BuildRequires: perl(indirect)
BuildRequires: perl(multidimensional)

BuildArch: noarch

%description
This module allows you to compose the Test::More manpage tests from roles.
It is inspired by the excellent the Test::Routine manpage module, but uses
the Moo manpage instead of the Moose manpage. This gives most of the
benefits without the need for the Moose manpage as a test dependency.

Test files are Moo classes. You can define any needed test fixtures as Moo
attributes. You define tests as method modifiers -- similar in concept to
'subtest' in the Test::More manpage, but your test method will be passed
the test object for access to fixture attributes. You may compose any the
Moo::Role manpage into your test to define attributes, require particular
methods, or define tests.

This means that you can isolate test _behaviors_ into roles which require
certain test _fixtures_ in order to run. Your main test file will provide
the fixtures and compose the roles to run. This makes it easy to reuse test
behaviors.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README CONTRIBUTING.mkdn
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5815 |21cr|perl-Test-Script-Run-0.80.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Script-Run
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Test the script with run

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Script-Run-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module exports some subs to help test and run scripts in your dist's
bin/ directory, if the script path is not absolute.

Nearly all the essential code is stolen from Prophet::Test, we think subs
like those should live below 'Test::' namespace, that's why we packed them
and created this module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/Test/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5816 |21cr|perl-Test-SharedFork-0.350.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-SharedFork
%define upstream_version 0.35

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Fork test

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Storable)
BuildRequires:  perl(Test::Builder)
BuildRequires:  perl(Test::Builder::Module)
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(Tie::Array)
BuildRequires:  perl(Tie::Scalar)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(base)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl-devel

BuildArch:  noarch

%description
Test::SharedFork is utility module for Test::Builder.

This module makes the fork(2) manpage safety in your test case.

This module merges test count with parent process & child process.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml 
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5817 |21cr|perl-Test-Signature-1.110.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Signature
%define upstream_version 1.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Automated SIGNATURE testing
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(Test::Builder)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Config)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(ExtUtils::Manifest)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(FindBin)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Module::Signature)
BuildRequires:  perl(Socket)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::Builder)
BuildRequires:  perl(vars)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(File::Find::Rule)
BuildRequires:  perl(Test::Pod)
BuildRequires:  perl(inc::Module::Install)

BuildArch: noarch

%description
'Module::Signature' allows you to verify that a distribution has not been
tampered with. 'Test::Signature' lets that be tested as part of the
distribution's test suite.

By default, if 'Module::Signature' is not installed then it will just say
so and not fail the test. That can be overridden though.

*IMPORTANT*: This is not a substitute for the users verifying the
distribution themselves. By the time this module is run, the users will
have already run your _Makefile.PL_ or _Build.PL_ scripts which could have
been compromised.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make


%check
# Need to import and check online the signature.
#make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5818 |21cr|perl-Test-Simple-1.302.188-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-Simple
%define upstream_version 1.302188

# exclude self provided
%define __requires_exclude perl\\(Test2::API::InterceptResult.*\\)

Summary:	Basic utilities for writing tests
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description 
This is an extremely simple, extremely basic module for writing tests suitable
for CPAN modules and other pursuits. If you wish to do more complicated
testing, use the Test::More module (a drop-in replacement for this one).

%files
%doc Changes README
%{perl_vendorlib}/Test
%{perl_vendorlib}/Test2
%{perl_vendorlib}/*.pm
%{_mandir}/man3/*

#---------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5819 |21cr|perl-Test-Spec-0.510.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Spec
%define upstream_version 0.51

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	RSpec-like testing for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Spec-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(TAP::Parser)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Trap)
BuildRequires:	perl(Tie::IxHash)
BuildRequires:	perl(constant)

BuildArch:	noarch

%description
This is a declarative specification-style testing system for
behavior-driven development (BDD) in Perl. The tests (a.k.a. examples) are
named with strings instead of subroutine names, so your fingers will suffer
less fatigue from underscore-itis, with the side benefit that the test
reports are more legible.

This module is inspired by and borrows heavily from RSpec
(http://rspec.info/documentation/), a BDD tool for the Ruby programming
language.

EXPORTS
    When given *no list* (i.e. 'use Test::Spec;'), this class will export:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json README.*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5820 |21cr|perl-Test-Spelling-0.250.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Spelling
%define upstream_version 0.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Check for spelling errors in POD
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Pod::Spell)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Tester)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Module::Runtime)

BuildArch:	noarch

Requires:	aspell-en

%description
Check POD files for spelling mistakes, using the Pod::Spell manpage and
_spell_ to do the heavy lifting.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/Test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5821 |21cr|perl-Test-Strict-0.520.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Strict
%define upstream_version 0.52

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Check syntax, presence of use strict; and test coverage

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Devel::Cover)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(IO::Scalar)


BuildArch:	noarch

%description
The most basic test one can write is "does it compile ?". This module tests if
the code compiles and play nice with Test::Simple modules.

Another good practice this module can test is to "use strict;" in all perl
files.

By setting a minimum test coverage through all_cover_ok(), a code author can
ensure his code is tested above a preset level of kwality throughout the
development cycle.

Along with Test::Pod, this module can provide the first tests to setup for a
module author.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml 
%{_mandir}/man3/*
%{perl_vendorlib}/Test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5822 |21cr|perl-Test-Synopsis-0.170.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Synopsis
%define upstream_version 0.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Test your SYNOPSIS code

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Synopsis-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Filter::Util::Call)
BuildRequires:	perl(Test::Builder)

BuildArch:	noarch

%description
Test::Synopsis is an (author) test module to find .pm or .pod files under
your _lib_ directory and then make sure the example snippet code in your
_SYNOPSIS_ section passes the perl compile check.

Note that this module only checks the perl syntax (by wrapping the code
with 'sub') and doesn't actually run the code.

Suppose you have the following POD in your module.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5823 |21cr|perl-Test-Sys-Info-0.230.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Sys-Info
%define upstream_version 0.23

%define debug_package %{nil}

Summary:	Centralized test suite for Sys::Info

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/B/BU/BURAK/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
Requires:	perl-Sys-Info-Base

%description
Perl centralized test suite for Sys::Info.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5824 |21cr|perl-Test-TCP-2.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-TCP
%define upstream_version 2.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Testing TCP program
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Config)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(File::Which)
BuildRequires:  perl(IO::Socket::INET)
BuildRequires:  perl(IO::Socket::IP)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(Socket)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More) >= 1.1.9
BuildRequires:  perl(Test::SharedFork)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(warnings)

BuildArch:  noarch

%description
Test::TCP is test utilities for TCP/IP programs.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json README.md
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5825 |21cr|perl-Test-TempDir-0.100.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-TempDir
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A factory for creating L<Test::TempDir::Handle>

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl-devel
BuildRequires:	perl(File::NFSLock)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Types::Path::Class)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::CheckDeps)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Test::More) >= 1.1.9 
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Directory::Scratch)

BuildArch:	noarch

%description
Test::TempDir provides temporary directory creation with testing in mind.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5826 |21cr|perl-Test-TempDir-Tiny-0.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-TempDir-Tiny
%define upstream_version 0.003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Temporary directories that stick around when tests fail
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(B)
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::More)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
This module works with the Test::More manpage to create temporary
directories that stick around if tests fail.

It is loosely based on the Test::TempDir manpage, but with less complexity,
greater portability and zero non-core dependencies. (the Capture::Tiny
manpage is recommended for testing.)

The the /tempdir manpage function is exported by default. When called, it
constructs a directory tree to hold temporary directories.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5827 |21cr|perl-Test-Time-0.92.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-Time
%define upstream_version 0.092

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Overrides the time() and sleep() core functions for testing


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:	perl-devel
Buildrequires:	perl(CPAN::Meta)
BuildArch:	noarch

%description
Test::Time can be used to test modules that deal with time. Once you
"use" this module, all references to "time" and "sleep" will be
internalized. You can set custom time by passing time => number after
the "use" statement:

    use Test::Time time => 1;

    my $now = time;    # $now is equal to 1
    sleep 300;         # returns immediately, displaying a note
    my $then = time;   # $then equals to 301

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5828 |21cr|perl-Test-Timer-2.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Timer
%define upstream_version 2.12

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Exception class for Test::Timer
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Benchmark)
BuildRequires: perl(Carp)
BuildRequires: perl(English)
BuildRequires: perl(Error)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Pod::Coverage::TrustPod)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Module)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Kwalitee)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Tester)
BuildArch:     noarch

%description
Test::Timer implements a set of test primitives to test and assert test
times from bodies of code.

The key features are subroutines to assert or test the following:

* * that a given piece of code does not exceed a specified time limit

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# Timeout tests fail in ABF because they last for too long
#make test

%install
%makeinstall_std

%files
%doc README LICENSE CHANGELOG* META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5829 |21cr|perl-Test-TinyMocker-0.50.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-TinyMocker
%define upstream_version 0.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A very simple tool to mock external modules

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-TinyMocker-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5830 |21cr|perl-Test-Toolbox-0.400.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Toolbox
%define upstream_version 0.4

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Tools for testing
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Builder::Module)
BuildArch:     noarch

%description
no description found

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5831 |21cr|perl-Test-TrailingSpace-0.60.100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-TrailingSpace
%define upstream_version 0.0601

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Test for trailing space in source files
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find::Object::Rule)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::TreeCreate)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::More)
BuildRequires: perl(autodie)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Class::XSAccessor)


BuildArch:  noarch

%description
This module is used to test for lack of trailing space. See the synopsis
for more details.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5832 |21cr|perl-Test-Trap-0.3.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Trap
%define upstream_version 0.3.2

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Trap exit codes, exceptions, output


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/E/EB/EBHANSSEN/%{upstream_name}-v%{upstream_version}.tar.gz

BuildRequires:	perl(Carp)
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Test::Tester)
BuildRequires:	perl(version)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(base)
BuildRequires:	perl(constant)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
Primarily (but not exclusively) for use in test scripts: A block eval on
steroids, configurable and extensible, but by default trapping (Perl)
STDOUT, STDERR, warnings, exceptions, would-be exit codes, and return
values from boxed blocks of test code.

The values collected by the latest trap can then be queried or tested
through a special trap object.

%prep
%setup -qn %{upstream_name}-v%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5833 |21cr|perl-Test-Type-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Type
%define upstream_version v1.3.0

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Functions to validate data types in test files
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Data::Validate::Type)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::FailWarnings)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
no description found

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5834 |21cr|perl-Test-Unit-Lite-0.120.200-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Unit-Lite
%define upstream_version 0.1202

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Unit testing without external dependencies
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This framework provides lighter version of the Test::Unit manpage
framework. It implements some of the the Test::Unit manpage classes and
methods needed to run test units. The the Test::Unit::Lite manpage tries to
be compatible with public API of the Test::Unit manpage. It doesn't
implement all classes and methods at 100% and only those necessary to run
tests are available.

The the Test::Unit::Lite manpage can be distributed as a part of package
distribution, so the package can be distributed without dependency on
modules outside standard Perl distribution. The the Test::Unit::Lite
manpage is provided as a single file.

Bundling the the Test::Unit::Lite manpage as a part of package distribution
    The the Test::Unit::Lite manpage framework can be bundled to the
    package distribution. Then the the Test::Unit::Lite manpage module is
    copied to the _inc_ directory of the source directory for the package
    distribution.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README META.yml Changes META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5835 |21cr|perl-Test-URI-1.80.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-URI
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Check Uniform Resource Identifiers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description 
Check various parts of Uniform Resource Locators.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5836 |21cr|perl-Test-UseAllModules-0.170.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-UseAllModules
%define upstream_version 0.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Do use_ok() for all modules MANIFESTed

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::Manifest)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
I'm sick of writing 00_load.t (or something like that) that'll do use_ok()
for every module I write. I'm sicker of updating 00_load.t when I add
another file to the distro. This module reads MANIFEST to find modules to
be tested and does use_ok() for each of them. Now all you have to do is
update MANIFEST. You don't have to modify the test any more (hopefully).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5837 |21cr|perl-Test-Vars-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Vars
%define upstream_version 0.015

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Detects unused variables

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/G/GF/GFUJI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(B)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(parent)

BuildArch:	noarch

%description
Test::Vars finds unused variables in order to keep the source code tidy.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --prefix=%{_prefix} --installdirs=vendor

%files
%doc Changes README.* META.json META.yml LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5838 |21cr|perl-Test-WWW-Mechanize-1.540.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Test-WWW-Mechanize
%define upstream_version 1.54

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Testing-specific WWW::Mechanize subclass

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-WWW-Mechanize-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(LWP)
BuildRequires:	perl(Carp::Assert::More)
BuildRequires:	perl(CGI)
BuildRequires:	perl(HTML::Lint)
BuildRequires:	perl(HTTP::Server::Simple)
BuildRequires:	perl(HTML::TreeBuilder)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::LongString)
BuildRequires:	perl(URI)
BuildRequires:	perl(WWW::Mechanize) 

BuildArch:	noarch

%description
Test::WWW::Mechanize is a subclass of WWW::Mechanize that incorporates features
for web application testing.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# change listening port
#perl -pi -e 's/13432/17987/' t/TestServer.pm
#%%make test

%install
%makeinstall_std

%files
%doc Changes 
%{perl_vendorlib}/Test
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5839 |21cr|perl-Test-WWW-Mechanize-Catalyst-0.620.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-WWW-Mechanize-Catalyst
%define upstream_version 0.62

# test fail on abf build
%bcond_without bootstrap

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Test::WWW::Mechanize for Catalyst
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
%if %{without bootstrap}
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Plugin::Session)
BuildRequires:	perl(Catalyst::Plugin::Session::State::Cookie)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::WWW::Mechanize) >= 1.04
BuildRequires:	perl(Test::utf8)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Term::Size::Perl)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
%endif

BuildArch:	noarch

%description
Catalyst is an elegant MVC Web Application
Framework. Test::WWW::Mechanize is a subclass of WWW::Mechanize that
incorporates features for web application testing. The
Test::WWW::Mechanize::Catalyst module meshes the two to allow easy
testing of Catalyst applications without starting up a web server.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL installdirs=vendor
%make

%check
%if %{without bootstrap}
%make test
%endif

%install
%makeinstall_std

%files
%doc CHANGES README META.yml
%{_mandir}/*/*
%{perl_vendorlib}/Test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5840 |21cr|perl-Test-WWW-Mechanize-CGI-0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module   Test-WWW-Mechanize-CGI

Name:		perl-%{module}
Version:	0.1
Release:	8
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Test CGI applications with Test::WWW::Mechanize

Url:		http://search.cpan.org/dist/%{module}
Source:	http://www.cpan.org/modules/by-module/Test/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(WWW::Mechanize::CGI)
BuildRequires:	perl(CGI)
BuildArch:	noarch

%description
Provides a convenient way of testing CGI applications without a external
daemon.

%prep
%setup -q -n %{module}-%{version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5841 |21cr|perl-Test-WWW-Mechanize-LibXML-0.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-WWW-Mechanize-LibXML
%define upstream_version 0.0.6

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Use HTML::TreeBuilder::LibXML for testing

License:	MIT
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::TreeBuilder::LibXML)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Test::CPAN::Changes)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::TrailingSpace)

BuildArch:	noarch

%description
This module inherits from the Test::WWW::Mechanize manpage, and allows one
to utilize the HTML::TreeBuilder::LibXML manpage to perform XPath and the
HTML::TreeBuilder manpage queries on the tree.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5842 |21cr|perl-Test-WWW-Mechanize-PSGI-0.390.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-WWW-Mechanize-PSGI
%define upstream_version 0.39

Name:           perl-Test-WWW-Mechanize-PSGI
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Test PSGI programs using WWW::Mechanize
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Test-WWW-Mechanize-PSGI
Source0:        https://cpan.metacpan.org/authors/id/O/OA/OALDERS/Test-WWW-Mechanize-PSGI-%{upstream_version}.tar.gz
BuildArch:      noarch

BuildRequires:  make
BuildRequires:  %{__perl}

BuildRequires:  perl-generators
BuildRequires:  perl(Carp)
BuildRequires:  perl(CGI::Cookie)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(HTTP::Message::PSGI)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Pod) >= 1.14
BuildRequires:  perl(Test::WWW::Mechanize)
BuildRequires:  perl(Try::Tiny)

BuildRequires:  perl(base)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
PSGI is a specification to decouple web server environments from web
application framework code. Test::WWW::Mechanize is a subclass of
WWW::Mechanize that incorporates features for web application testing. The
Test::WWW::Mechanize::PSGI module meshes the two to allow easy testing of
PSGI applications.

%prep
%setup -q -n Test-WWW-Mechanize-PSGI-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
%{__make} pure_install DESTDIR=%{buildroot}
find %{buildroot} -depth -type d -exec rmdir {} 2>/dev/null \;

%{_fixperms} %{buildroot}/*

%check
%{__make} test

%files
%doc Changes
%license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5843 |21cr|perl-Test-WWW-Selenium-1.360.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-WWW-Selenium
%define upstream_version 1.36

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.36
Release:	6

Summary:	Test applications using Selenium Remote Control

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-WWW-Selenium-1.36.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Mock::LWP)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(URI::Escape)
BuildArch:	noarch

%description
Selenium Remote Control (SRC) is a test tool that allows you to write
automated web application UI tests in any programming language against any
HTTP website using any mainstream JavaScript-enabled browser. SRC provides
a Selenium Server, which can automatically start/stop/control any supported
browser. It works by using Selenium Core, a pure-HTML+JS library that
performs automated tasks in JavaScript; the Selenium Server communicates
directly with the browser using AJAX (XmlHttpRequest).

http://www.openqa.org/selenium-rc/

This module sends commands directly to the Server using simple HTTP
GET/POST requests. Using this module together with the Selenium Server, you
can automatically control any supported browser.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5844 |21cr|perl-Test-WWW-Selenium-Catalyst-0.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-WWW-Selenium-Catalyst
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Test your Catalyst app with Selenium


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Alien::SeleniumRC)
BuildRequires:	perl(Catalyst::Runtime) >= 5.900.930
BuildRequires:	perl(Catalyst::Utils)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(IPC::Cmd)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::WWW::Selenium)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)

BuildArch:	noarch

%description
Use Selenium to test your Catalyst application.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5845 |21cr|perl-Test-XT-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-XT
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Generate best practice author tests

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Remove)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Perl::MinimumVersion)
BuildRequires:	perl(Pod::Simple)
BuildRequires:	perl(Test::CPAN::Meta)
BuildRequires:	perl(Test::MinimumVersion)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildArch:	noarch

%description
A number of Test modules have been written over the years to support
authors. Typically, these modules have standard short test scripts
documented in them that you can cut and paste into your distribution.

Unfortunately almost all of these cut-and-paste test scripts are wrong.

Either the test script runs during install time, or it runs with an
out-of-date version of the test module, or the author adds the test modules
as an (unnecesary) dependency at install time, or for automated testing.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5846 |21cr|perl-Test-YAML-Valid-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-YAML-Valid
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Test for valid YAML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(YAML)
BuildRequires:	perl(YAML::Syck)
BuildRequires:	perl(YAML::XS)
BuildRequires:	perl(YAML::Tiny)
BuildRequires:	perl(inc::Module::Install)
Requires:	perl(YAML)
BuildArch:	noarch

%description
This module lets you easily test the validity of YAML.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5847 |21cr|perl-Text-Aligner-0.120.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Aligner
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A single function to justify strings to various alignment styles

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Term::ANSIColor)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
Text::Aligner exports a single function, align(), which is used to justify
strings to various alignment styles. The alignment specification is the
first argument, followed by any number of scalars which are subject to
alignment.

The operation depends on context. In list context, a list of the justified
scalars is returned. In scalar context, the justified arguments are joined
into a single string with newlines appended. The original arguments remain
unchanged. In void context, in-place justification is attempted. In this
case, all arguments must be lvalues.

Align() also does one level of scalar dereferencing. That is, whenever one
of the arguments is a scalar reference, the scalar pointed to is aligned
instead. Other references are simply stringified. An undefined argument is
interpreted as an empty string without complaint.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5848 |21cr|perl-Text-ASCIITable-0.200.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-ASCIITable
%define upstream_version 0.20
Name:       perl-%{upstream_name}
Version:    %perl_convert_version 0.20
Release:    5

Summary:    Create a nice formatted table using ASCII characters

License:    Artistic/GPL
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Text/Text-ASCIITable-0.20.tar.gz

BuildRequires:  perl(Module::Build)
BuildArch:      noarch

%description
Pretty nifty if you want to output dynamic text to your console or other
fixed-size-font displays, and at the same time it will display it in a nice
human-readable, or "cool" way.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README Changes
%{perl_vendorlib}/Text
%{_mandir}/*/*

%clean

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5849 |21cr|perl-Text-Aspell-0.90.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Aspell
%define upstream_version 0.09

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	8

Summary:    Perl interface to the GNU Aspell library

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  aspell-devel 

%description
This module provides a Perl interface to the GNU Aspell library. The GNU Aspell
library provides access to system spelling libraries, including a spell
checker. This module is to meet the need of looking up many words, one at a
time, in a single session.

This is a Perl xs interface which should provide good performance compared to
forking the aspell program for every word.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#make test

%clean 

%files
%doc Changes README
%{perl_vendorarch}/Text
%{perl_vendorarch}/auto/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5850 |21cr|perl-Text-Balanced-2.30.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Balanced
%define upstream_version 2.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Extract balanced-delimiter substrings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SH/SHAY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(SelfLoader) >= 1.1.9

BuildArch:	noarch

%description
The various 'extract_...' subroutines may be used to extract a delimited
substring, possibly after skipping a specified prefix string. By default,
that prefix is optional whitespace ('/\s*/'), but you can change it to
whatever you wish (see below).

The substring to be extracted must appear at the current 'pos' location of
the string's variable (or at index zero, if no 'pos' position is defined).
In other words, the 'extract_...' subroutines _don't_ extract the first
occurrence of a substring anywhere in a string (like an unanchored regex
would). Rather, they extract an occurrence of the substring appearing
immediately at the current matching position in the string (like a
'\G'-anchored regex would).

General behaviour in list contexts
    In a list context, all the subroutines return a list, the first three
    elements of which are always:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5851 |21cr|perl-Text-BibTeX-0.760.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname libbtparse %{major}

%define upstream_name    Text-BibTeX
%define upstream_version 0.76
%global __provides_exclude BibTeX.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Interface to read and parse BibTeX files 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Config::AutoConf)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(ExtUtils::LibBuilder)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl-devel

Requires:	%{libname} = %{EVRD}

%description
The Text::BibTeX module serves mainly as a high-level introduction to the
Text::BibTeX library, for both code and documentation purposes. The code loads
the two fundamental modules for processing BibTeX files (Text::BibTeX::File and
Text::BibTeX::Entry), and this documentation gives a broad overview of the
whole library that isn't available in the documentation for the individual
modules that comprise it.
#-------------------------------------
%package -n %{libname}

Summary:	This package contains shared libs for %{name}
Group:		Development/Perl

%description -n %{libname}
This package contains shared libs for %{name}.

%files -n %{libname}
%doc README README.OLD scripts THANKS btool_faq.pod
%{_libdir}/libbtparse.so

#-------------------------------------
%prep
%setup -q -n %{upstream_name}-%{upstream_version} 
perl -pi -e 's|#!/usr/local/bin/perl5?|#!%{__perl}|' scripts/* examples/*
chmod a-x scripts/* examples/*

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}
mv %{buildroot}%{_bindir}/bibparse %{buildroot}%{_bindir}/bibparse-perl


%files
%doc Changes examples README META.json META.yml
%{perl_vendorarch}/Text
%{perl_vendorarch}/auto/Text
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5852 |21cr|perl-Text-Bidi-2.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Bidi
%define upstream_version 2.15

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Dual-life long arrays

License:    GPL or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl
BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Tie::Array)
BuildRequires: perl(base)
BuildRequires: perl(integer)
BuildRequires: perl(overload)
BuildRequires: perl(open)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: pkgconfig(fribidi)

%description
This module provides basic support for the Unicode bidirectional (Bidi)
text algorithm, for displaying text consisting of both left-to-right and
right-to-left written languages (such as Hebrew and Arabic.) It does so via
a _swig_ interface file to the _libfribidi_ library.

The fundamental purpose of the bidi algorithm is to reorder text given in
logical order into text in visually correct order, suitable for display
using standard printing commands. ``Logical order'' means that the
characters are given in the order in which they would be read if printed
correctly. The direction of the text is determined by properties of the
Unicode characters, usually without additional hints. See the
http://www.unicode.org/unicode/reports/tr9/ manpage for more details on the
problem and the algorithm.

Standard usage
    The bidi algorithm works in two stages. The first is on the level of a
    paragraph, where the direction of each character is computed. The
    second is on the level of the lines to be displayed. The main practical
    difference is that the first stage requires only the text of the
    paragraph, while the second requires knowledge of the width of the
    displayed lines. The module (or the library) does not determine how the
    text is broken into paragraphs.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE Changes META.json
%{_bindir}/fribidi.pl
%{_mandir}/man3/*
%{perl_vendorarch}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5853 |21cr|perl-Text-Brew-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Brew
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	An implementation of the Brew edit distance

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements the Brew edit distance that is very close to the dynamic
programming technique used for the Wagner-Fischer (and so for the Levenshtein)
edit distance. Please look at the module references below. For more information
about the Brew edit distance see:
http://ling.ohio-state.edu/~cbrew/795M/string-distance.html

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5854 |21cr|perl-Text-Clip-0.1.400-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Clip
%define upstream_version 0.0014

Name:           perl-Text-Clip
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Clip and extract text in clipboard-like way
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Text-Clip
Source0:        https://cpan.metacpan.org/authors/id/R/RO/ROKR/Text-Clip-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl(Any::Moose)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::Most)
Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
Text::Clip allows you to mark/slice up a piece of text. String matching (by
regular expression, etc.) is used to place marks. The first mark lets you
access the text preceding and following the mark. Subsequent marks allow
you to slurp up the text "clipped" between the marks.

%prep
%setup -q -n Text-Clip-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install PERL_INSTALL_ROOT=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5855 |21cr|perl-Text-Conjunct-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Conjunct
%define upstream_version 1.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Join lists of items together

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Text::Conjunct joins strings together with a conjunction, typically "and"
or "or".

* *

  If there is only one string, it is just returned.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5856 |21cr|perl-Text-Context-3.700.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Context
%define upstream_version 3.7

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A paragraph in context

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(Text::Context::EitherSide)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
Given a piece of text and some search terms, produces an object which
locates the search terms in the message, extracts a reasonable-length
string containing all the search terms, and optionally dumps the string out
as HTML text with the search terms highlighted in bold.

new
    Creates a new snippet object for holding and formatting context for
    search terms.

keywords
    Accessor method to get/set keywords. As the context search is done
    case-insensitively, the keywords will be lower-cased.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5857 |21cr|perl-Text-Context-EitherSide-1.400.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Context-EitherSide
%define upstream_version 1.4

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Get n words either side of search keywords

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Suppose you have a large piece of text - typically, say, a web page or a
mail message. And now suppose you've done some kind of full-text search on
that text for a bunch of keywords, and you want to display the context in
which you found the keywords inside the body of the text.

A simple-minded way to do that would be just to get the two words either
side of each keyword. But hey, don't be too simple minded, because you've
got to make sure that the list doesn't overlap. If you have

    the quick brown fox jumped over the lazy dog

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5858 |21cr|perl-Text-CSV-Slurp-1.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-CSV-Slurp
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Convert CSV into an array of hashes, or an array of hashes into CSV

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/Text-CSV-Slurp-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Test::Most)
BuildRequires:	perl(Text::CSV)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Deep)

BuildArch:	noarch

%description
Convert CSV into an array of hashes, or an array of hashes into CSV.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml META.json README Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5859 |21cr|perl-Text-Emoticon-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Emoticon
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Factory class for Yahoo! and MSN emoticons

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
Text::Emoticon is a factory class to dispatch MSN/YIM emoticon set. It's
made to become handy to be used in other applications like Kwiki/MT
plugins.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5860 |21cr|perl-Text-Emoticon-MSN-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Emoticon-MSN
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Emoticon filter of MSN Messenger

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Emoticon)
BuildArch:	noarch

%description
Text::Emoticon::MSN is a text filter that replaces text emoticons like
":-)", ";-P", etc. to the icons of MSN Messenger, detailed in
http://messenger.msn.com/Resource/Emoticons.aspx

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5861 |21cr|perl-Text-EtText-2.200.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  Text-EtText
%define upstream_version	2.2

Summary:	%{module} module for perl 

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	14
License:	GPL
Group:		Development/Perl
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Text/Text-EtText-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{module}
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Text::EtText - A perl module to edit html as plain text.

%prep
%setup -q -n Text-EtText-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%install
%makeinstall_std

%files
%doc README doc/* Changes TODO
%{_bindir}/*
%{perl_vendorlib}/Text/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5862 |21cr|perl-Text-FindIndent-0.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-FindIndent
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Heuristically determine the indent style

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This is an experimental distribution that attempts to intuit the underlying
indent "policy" for a text file (most likely a source code file).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5863 |21cr|perl-Text-FixEOL-1.60.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-FixEOL
%define upstream_version 1.06
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.06
Release:	5

Summary:	Canonicalizes mixed convention EOL/EOF

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/Text-FixEOL-1.06.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Converts the EOL and EOF conventions in the passed string to a canonicalization
form that handles 'mixed' EOL conventions.

It canonicalizes EOL as \n (the platform defined EOL) if it does not know the
particular platform. Can also 'fix' the end-of-file mark if needed and ensure
that the last line of the string is EOL terminated.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5864 |21cr|perl-Text-German-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-German
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	German grundform reduction

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a rather incomplete implementaion of work done by Gudrun Putze-Meier. I
have to confess that I never read her original paper. So all credit belongs to
her, all bugs are mine. I tried to get some insight from an implementation of
two students of mine. They remain anonymous because their work was the wost
piece of code I ever saw. My code behaves mostly as their implementation did
except it is about 75 times faster.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Text
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5865 |21cr|perl-Text-Greeking-0.140.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Greeking
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A module for generating meaningless text

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

BuildArch: noarch

%description
Greeking is the use of random letters or marks to show the overall
appearance of a printed page without showing the actual text. Greeking is
used to make it easy to judge the overall appearance of a document without
being distracted by the meaning of the text.

This is a module is for quickly generating varying meaningless text from
any source to create this illusion of the content in systems.

This module was created to quickly give developers simulated content to
fill systems with simulated content. Instead of static Lorem Ipsum text, by
using randomly generated text and optionally varying word sources,
repetitive and monotonous patterns that do not represent real system usage
is avoided.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5866 |21cr|perl-Text-Haml-0.990.118-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Haml
%define upstream_version 0.990118

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Haml Perl implementation

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta) >= 2.150.10
BuildRequires: perl(Carp)
BuildRequires: perl(Data::Section::Simple)
BuildRequires: perl(Encode)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Module::Build::Tiny)
BuildRequires: perl(IO::File)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI::Escape)
BuildArch:  noarch

%description
the Text::Haml manpage implements Haml the
http://haml-lang.com/docs/yardoc/file.HAML_REFERENCE.html manpage
specification.

the Text::Haml manpage passes specification tests written by Norman Clarke
http://github.com/norman/haml-spec and supports only cross-language Haml
features. Do not expect Ruby specific things to work.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}
rm -f %{buildroot}/%{perl_vendorlib}/Text/README.pod

%files
%doc META.json META.yml MYMETA.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5867 |21cr|perl-Text-Kakasi-2.40.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Kakasi
%define upstream_version 2.04

Summary:	Perl binding for KAKASI the kanji kana simple inverter
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9
License:	GPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/D/DA/DANKOGAI/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	kakasi
BuildRequires:	kakasi-dict
BuildRequires:	kakasi-devel >= 2.3.1
Requires:	kakasi >= 2.3.1
Requires:	kakasi-dict

%description
This module provides libkakasi interface for perl. libkakasi is a part
of KAKASI. KAKASI is the language processing filter to convert Kanji
characters to Hiragana, Katakana or Romaji and may be helpful to read
Japanese documents.

More information about KAKASI is available at <http://kakasi.namazu.org/>.

%files
%doc COPYING README README.jp
%{_mandir}/*/*
%{perl_vendorarch}/Text
%{perl_vendorarch}/auto/Text

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5868 |21cr|perl-Text-LevenshteinXS-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-LevenshteinXS
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	8

Summary:    An XS implementation of the Levenshtein edit distance

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Test)

%description
This module implements the Levenshtein edit distance in a XS way.

The Levenshtein edit distance is a measure of the degree of proximity between
two strings. This distance is the number of substitutions, deletions or
insertions ("edits") needed to transform one string into the other one (and
vice versa). When two strings have distance 0, they are the same. A good point
to start is: <http://www.merriampark.com/ld.htm>

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/Text
%{perl_vendorarch}/auto/Text

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5869 |21cr|perl-Text-Markdown-1.0.31-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Markdown
%define upstream_version 1.000031

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Convert Markdown syntax to (X)HTML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Balanced)

BuildArch:	noarch

%description
Markdown is a text-to-HTML filter; it translates an easy-to-read /
easy-to-write structured text format into HTML. Markdown's text format is
most similar to that of plain text email, and supports features such as
headers, *emphasis*, code blocks, blockquotes, and links.

Markdown's syntax is designed not as a generic markup language, but
specifically to serve as a front-end to (X)HTML. You can use span-level
HTML tags anywhere in a Markdown document, and you can use block level HTML
tags (like <div> and <table> as well).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5870 |21cr|perl-Text-MultiMarkdown-1.0.35-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-MultiMarkdown
%define upstream_version 1.000035

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Convert MultiMarkdown syntax to (X)HTML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Markdown)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(Text::Diff)
BuildRequires:	perl(HTML::Tidy)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Spelling)

BuildArch:	noarch

%description
Markdown is a text-to-HTML filter; it translates an easy-to-read /
easy-to-write structured text format into HTML. Markdown's text format is
most similar to that of plain text email, and supports features such as
headers, *emphasis*, code blocks, blockquotes, and links.

Markdown's syntax is designed not as a generic markup language, but
specifically to serve as a front-end to (X)HTML. You can use span-level
HTML tags anywhere in a Markdown document, and you can use block level HTML
tags ('<div>', '<table>' etc.). Note that by default Markdown isn't
interpreted in HTML block-level elements, unless you add a 'markdown=1"'
attribute to the element. See the Text::Markdown manpage for details.

This module implements the MultiMarkdown markdown syntax extensions from:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml License.text
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5871 |21cr|perl-Text-NeatTemplate-0.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-NeatTemplate
%define upstream_version 0.1400

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A fast, middleweight template engine

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Text/Text-NeatTemplate-%{upstream_version}.tar.gz

BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::More)
BuildArch:     noarch

%description
This module provides a simple, middleweight but fast template engine,
for when you need speed rather than complex features, yet need more features
than simple variable substitution.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find . -type f | xargs chmod +w

%build
%{__perl} Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Text

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5872 |21cr|perl-Text-NSP-1.310.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Text-NSP
%define upstream_version 1.31
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	The Ngram Statistics Package 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/Text-NSP-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
The module NSP.pm is a stub that doesn't have any real functionality. The real
work is done by five programs:
- count.pl
- statistic.pl
- rank.pl
- combig.pl
- kocos.pl
These are not modules, and are run from the command line. All have extensive
command line help and documentation.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README META.json META.yml doc/*
%{perl_vendorlib}/Text
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5873 |21cr|perl-Text-Padding-1.110.170-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Padding
%define upstream_version 1.110170

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Simple way of formatting a text
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Has::Sugar)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Truncate)
BuildRequires: perl(Module::Build)
BuildRequires: perl-devel
BuildArch: noarch

%description
This module provides a simple way to align a text on the left, right or
center. If left & right are easy to achieve (see 'sprintf()'), i found no
cpan module that achieved a simple text centering. Well, of course, the
Perl6::Form manpage provides it, but it's incredibly slow during startup /
destroy time. And the Text::Reform manpage was segfaulting during destroy
time.

Hence this module, which aims to provide only those 3 methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5874 |21cr|perl-Text-ParseWords-3.300.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-ParseWords
%define upstream_version 3.30

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Parse strings containing shell-style quoting

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
The &nested_quotewords() and &quotewords() functions accept a delimiter
(which can be a regular expression) and a list of lines and then breaks
those lines up into a list of words ignoring delimiters that appear inside
quotes. &quotewords() returns all of the tokens in a single long list,
while &nested_quotewords() returns a list of token lists corresponding to
the elements of @lines. &parse_line() does tokenizing on a single string.
The &*quotewords() functions simply call &parse_line(), so if you're only
splitting one line you can call &parse_line() directly and save a function
call.

The $keep argument is a boolean flag. If true, then the tokens are split on
the specified delimiter, but all other characters (quotes, backslashes,
etc.) are kept in the tokens. If $keep is false then the &*quotewords()
functions remove all quotes and backslashes that are not themselves
backslash-escaped or inside of single quotes (i.e., &quotewords() tries to
interpret these characters just like the Bourne shell). NB: these semantics
are significantly different from the original version of this module
shipped with Perl 5.000 through 5.004. As an additional feature, $keep may
be the keyword "delimiters" which causes the functions to preserve the
delimiters in each string as tokens in the token lists, in addition to
preserving quote and backslash characters.

&shellwords() is written as a special case of &quotewords(), and it does
token parsing with whitespace as a delimiter-- similar to most Unix shells.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5875 |21cr|perl-Text-Password-Pronounceable-0.300.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Password-Pronounceable
%define upstream_version 0.30

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Generate pronounceable passwords

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
This module generates pronuceable passwords, based the the English digraphs
by D Edwards.

METHODS
    * new($min, $max)

      Construct a password factory with length limits of $min and $max. If
      $max is omitted, it defaults to $min.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5876 |21cr|perl-Text-Patch-1.800.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Patch
%define upstream_version 1.8

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Patches text with given patch

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Diff)
BuildArch:	noarch

%description
Text::Patch combines source text with given diff (difference) data. Diff
data is produced by Text::Diff module or by the standard diff utility (man
diff, see -u option).

* patch( $source, $diff, options... )

  First argument is source (original) text. Second is the diff data. Third
  argument can be either hash reference with options or all the rest
  arguments will be considered patch options:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml ChangeLog
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5877 |21cr|perl-Text-PDF-0.290.0a-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Text-PDF
%define vers 0.29
%define subv a

Summary:	 %{module} Perl module

Version:	 %perl_convert_version 0.29a
Name:        perl-%{module}
Release:     5
License:	 Artistic
Group:		 Development/Perl
Source0:     ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Text/Text-PDF-0.29a.tar.gz
URL:		 http://search.cpan.org/dist/%{module}
BuildRequires: perl-devel
BuildArch: noarch

%description
Perl module to manipulate PDF files.

%prep
%setup -q -n %{module}-%{vers}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%check
# no test defined yet
%make test

%install
%makeinstall_std

%clean

%files
%doc examples readme.txt 
%{_mandir}/*/*
%{perl_vendorlib}/Text/
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5878 |21cr|perl-Text-Pipe-0.100.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Pipe
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Common text filter API

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Accessor::Complex)
BuildRequires:	perl(Class::Accessor::Constructor)
BuildRequires:	perl(Class::Accessor::Installer)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::AutoInstall)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(UNIVERSAL::require)
BuildArch:	noarch

%description
This class is a factory for text pipes. A pipe has a 'filter()' method
through which input can pass. The input can be a string or a reference to
an array of strings. Pipes can be stacked together using the
Text::Pipe::Stackable manpage.

The problem that this distribution tries to solve is that there are several
distributions on CPAN which use text filtering in some way or other, for
example the Template Toolkit. But each distribution is somewhat different,
and they have to reimplement the same text filters over and over again.

This distribution aims at offering a common text filter API. So if you want
to use text pipes with Template Toolkit, you just need to write an adapter.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# wants to download junk from Internet
rm -f inc/Module/AutoInstall.pm

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5879 |21cr|perl-Text-Query-0.90.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Text-Query
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Query processing framework

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides an object that matches a data source against a query
expression.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
# Seem to fail for no real reason
#make test

%files
%doc ChangeLog README
%{perl_vendorlib}/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5880 |21cr|perl-Text-Quoted-2.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Quoted
%define upstream_version 2.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl module to extract the structure of a quoted mail message

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/B/BP/BPS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Text::Autoformat) >= 1.1.9
BuildRequires: perl(Text::Tabs)

BuildArch:	noarch

%description
Text::Quoted examines the structure of some text which may contain multiple 
different levels of quoting, and turns the text into a nested data structure.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorarch}

%files
%doc Changes README META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5881 |21cr|perl-Text-RecordParser-1.6.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Text-RecordParser
%define upstream_version 1.6.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Read record-oriented files

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/K/KC/KCLARK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Text::TabularDisplay)
BuildRequires:	perl(Readonly)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(version)
BuildRequires:	perl(Pod::Markdown)
BuildRequires:	perl(Pod::Readme)
BuildRequires:	perl(Text::Autoformat)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
This module is for reading record-oriented data in a delimited text
file. The most common example have records separated by newlines and
fields separated by commas or tabs, but this module aims to provide a
consistent interface for handling sequential records in a file however
they may be delimited. Typically this data lists the fields in the
first line of the file, in which case you should call bind_header to
bind the field name (or not, and it will be called implicitly). If the
first line contains data, you can still bind your own field names via
bind_fields. Either way, you can then use many methods to get at the
data as arrays or hashes.

%prep
%setup -qn %{upstream_name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_bindir}/tab*
%{perl_vendorlib}/Text
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5882 |21cr|perl-Text-Roman-3.500.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Roman
%define upstream_version 3.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Allows conversion between Roman and Arabic algarisms

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/Text-Roman-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This package supports both conventional Roman algarisms (which range from 1 to
3999) and Milhar Romans, a variation which uses a bar across the algarism to
indicate multiplication by 1,000. For the purposes of this module, acceptable
syntax consists of an underscore suffixed to the algarism e.g. IV_V = 4,005.
The term Milhar apparently derives from the Portuguese word for "thousands" and
the range of this notation extends the range of Roman numbers to 3999 x 1000 +
3999 = 4,002,999.

Note: the functions in this package treat Roman algarisms in a case-insensitive
manner such that "VI" == "vI" == "Vi" == "vi".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{perl_vendorlib}/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5883 |21cr|perl-Text-Shellwords-1.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Shellwords
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Thin wrapper around shellwords.pl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This used to be a wrapper around shellwords.pl, but has now been superseded by
Text::ParseWords. Use that module instead. If you use this module, it will
simply report the shellwords() function from Text::ParseWords.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5884 |21cr|perl-Text-SimpleTable-2.70.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Text-SimpleTable
%define upstream_version 2.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Simple Eyecandy ASCII Tables

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Simple eyecandy ASCII tables, as seen in Catalyst.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL -n INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Text/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5885 |21cr|perl-Text-SimpleTable-AutoWidth-0.90.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Text-SimpleTable-AutoWidth
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Simple eyecandy ASCII tables with auto-width selection
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(List::Util)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Text::SimpleTable)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Simple eyecandy ASCII tables with auto-width selection.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5886 |21cr|perl-Text-Table-1.130.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Table
%define upstream_version 1.130

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Organize Data in Tables


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Aligner)
BuildArch:	noarch

%description
Organization of data in table form is a time-honored and useful method of
data representation. While columns of data are trivially generated by
computer through formatted output, even simple tasks like keeping titles
aligned with the data columns are not trivial, and the one-shot solutions
one comes up with tend to be particularly hard to maintain. Text::Table
allows you to create and maintain tables that adapt to alignment
requirements as you use them.

Overview
    The process is simple: you create a table (a Text::Table object) by
    describing the columns the table is going to have. Then you load lines
    of data into the table, and finally print the resulting output lines.
    Alignment of data and column titles is handled dynamically in
    dependence on the data present.

Table Creation
    In the simplest case, if all you want is a number of (untitled)
    columns, you create an unspecified table and start adding data to it.
    The number of columns is taken fronm the first line of data.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5887 |21cr|perl-Text-Tabs+Wrap-2013.52.300-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname   Text-Tabs+Wrap
%define upstream_version 2013.0523

Name:       perl-%{realname}
Version:    %perl_convert_version %{upstream_version}
Release:    5
Epoch:	1
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Wraps lines to make simple paragraphs

Source:     http://www.cpan.org/modules/by-module/Text/Text-Tabs+Wrap-%{upstream_version}.tar.gz
Url:        http://search.cpan.org/dist/%{realname}
BuildRequires: perl-devel


BuildArch: noarch

%description
Text::Tabs does about what the unix utilities expand(1) and unexpand(1) do.
Given a line with tabs in it, expand will replace the tabs with the
appropriate number of spaces. Given a line with or without tabs in it,
unexpand will add tabs when it can save bytes by doing so (just like
'unexpand -a'). Invisible compression with plain ASCII!



%prep
%setup -q -n %{realname}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGELOG README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5888 |21cr|perl-Text-TabularDisplay-1.380.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version 1.38

Name:		perl-Text-TabularDisplay
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Display text in formatted table output

# see TabularDisplay.pm's header
License:	GPLv2
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Text-TabularDisplay/
Source0:	http://www.cpan.org/authors/id/D/DA/DARREN/Text-TabularDisplay-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Text::TabularDisplay simplifies displaying textual data in a table. The
output is identical to the columnar display of query results in the mysql
text monitor. For example, this data:

%prep
%setup -q -n Text-TabularDisplay-%{upstream_version}
chmod -c -x t/* examples/*

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc COPYING README examples/
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5889 |21cr|perl-Text-Tags-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Text-Tags
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl module to parse "folksonomy" space-separated tags

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Parses "folksonomies", which are 
simple space-or-comma-separated-but-optionally-quoted tag lists.

Specifically, tags can be any string, as long as they don't contain both a 
single and a double quote. Hopefully, this is a pretty obscure restriction. 
In addition, all whitespace inside tags is normalized to a single space 
(with no leading or trailing whitespace).

In a tag list string, tags can optionally be quoted with either single or 
double quotes. There is no escaping of either kind of quote, although you 
can include one type of quote inside a string quoted with the other. Quotes 
can also just be included inside tags, as long as they aren't at the 
beginning; thus a tag like joe's can just be entered without any extra quoting.
Tags are separated by whitespace and/or commas, though quoted tags can run into
each other without whitespace. Empty tags (put in explicitly with "" or '') are
ignored. (Note that commas are not normalized with whitespace, and can be 
included in a tag if you quote them.)

Why did the previous paragraph need to be so detailed? Because 
Text::Tags::Parser always successfully parses every line. That is, every single
tags line converts into a list of tags, without any error conditions. For 
general use, you can just understand the rules as being separate tags with 
spaces or commas, and put either kind of quotes around tags that need to have 
spaces.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Text
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5890 |21cr|perl-Text-TagTemplate-1.830.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version 1.83
%define upstream_name Text-TagTemplate

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Designed to make the process of constructing web-based applications
Group:		Development/Perl
License:	perl
Url:		https://metacpan.org/pod/Text::TagTemplate
Source0:	http://cpan.org.ua/authors/id/M/MA/MATISSE/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module is designed to make the process of constructing web-based applications 
(such as CGI programs and Apache::Registry scripts) much easier, by separating 
the logic and application development from the HTML coding, and allowing 
ongoing changes to the HTML without requiring non-programmers to modify HTML 
embedded deep inside Perl code.

This module provides a mechanism for including special HTML-like tags 
in a file (or scalar) and replacing those tags at run-time with dynamically 
generated content. For example the special tag <#USERINFO FIELD="favorite_color">

might be replaced by "green" after doing a database lookup. Usually each 
special tag will have its own subroutine which is executed every time the tag is seen.

%prep
%setup -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_mandir}

%files
%doc CHANGES LICENSE README example
%{perl_vendorlib}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5891 |21cr|perl-Text-Template-1.610.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Template
%define upstream_version 1.61

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Text::Template module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source:		http://www.cpan.org/modules/by-module/Text/Text-Template-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a library for generating form letters, building HTML pages, or
filling in templates generally.  A `template' is a piece of text that
has little Perl programs embedded in it here and there.  When you
`fill in' a template, you evaluate the little programs and replace
them with their values.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc INSTALL Changes README
%{perl_vendorlib}/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5892 |21cr|perl-Text-Template-Simple-0.910.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Template-Simple
%define upstream_version 0.91


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Simple text template engine
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)

BuildArch: noarch

%description
This document describes version '0.86' of 'Text::Template::Simple' released
on '5 March 2012'.

This is a simple template module. There is no extra template/mini language.
Instead, it uses Perl as the template language. Templates can be cached on
disk or inside the memory via the internal cache manager. It is also
possible to use static/dynamic includes, pass parameters to includes and
apply filters on them. Also see the Text::Template::Simple::API manpage for
the full API definiton.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml TODO
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/tts


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5893 |21cr|perl-Text-Textile-2.130.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Textile
%define upstream_version 2.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Transforms text in Textile format to HTML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Transforms text in Textile format to HTML.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes ARTISTIC META.yml README.textile META.json
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5894 |21cr|perl-Text-Tiki-0.730.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Text-Tiki
%define upstream_version 0.73

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	TikiText - Text Formatting Engine

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
TikiText is a text formatting notation and engine, with the following
design goals:
* Leverage existing text formatting notions.
* Least amount of characters from plain text.
* Use more intuitive and common plain text email conventions.
* Abstract users from needing to know or understand markup whenever
  possible.
* Make valid and semantical XHTML markup easy.
  (And let CSS do its job!)
* Easy to learn the basics. Richer functionality for those who want to
  dive in.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc Changes
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5895 |21cr|perl-Text-Trac-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Trac
%define upstream_version 0.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl extension for formatting text with Trac Wiki Style

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Path::Tiny) >= 0.68.0
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Test::Base)
BuildRequires:	perl(Tie::IxHash)
BuildRequires:	perl(UNIVERSAL::require) >= 0.180.0
BuildRequires:	perl(Test::Code::TidyAll) >= 0.260.0
BuildRequires:	perl(Test::Perl::Critic) >= 1.20.0
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Version)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(Code::TidyAll)

BuildArch:	noarch

%description
Text::Trac parses text with Trac WikiFormatting and convert it to html
format.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
# tidy all first
tidyall -a

%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test


%install
%makeinstall_std
find %{buildroot} -name '*.pm' -exec chmod -x {} \;

%files
%doc Changes README.* META.yml
%{_bindir}/trac2html
%{_mandir}/man3/*
%{perl_vendorlib}/Text

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5896 |21cr|perl-Text-Trim-1.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Trim
%define upstream_version 1.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Remove leading and/or trailing whitespace from strings

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
This module provides functions for removing leading and/or trailing
whitespace from strings. It is basically a wrapper around some simple
regexes with a flexible context-based interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5897 |21cr|perl-Text-Truncate-1.60.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Text-Truncate

Name:		perl-%{module}
Version:	%perl_convert_version 1.06
Release:	5

Summary:	Perl module with simple string truncating routine

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source0:	http://www.cpan.org/modules/by-module/Text/Text-Truncate-1.06.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch


%description
This is a simple, no-brainer subroutine to truncate a string and add an
optional cutoff marker (defaults to ``...'').

(Yes, this is a really brain-dead sort of thing to make a module out of,
but then again, I use it so often that it might as well be in a module.)

The synopsis gives examples of how to use it.

%prep
%setup -qn Text-Truncate-1.06

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5898 |21cr|perl-Text-UpsideDown-1.220.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-UpsideDown
%define upstream_version 1.22

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Flip text upside-down using Unicode


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(open)
BuildRequires:	perl(Test::Script)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Carp)
BuildRequires:	perl(English)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module exports only one function.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/ud
%{_mandir}/man1/ud.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5899 |21cr|perl-Text-vFile-asData-0.80.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-vFile-asData
%define upstream_version 0.08
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.08
Release:	6

Summary:	Parse vFile formatted files into data structures

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Text/Text-vFile-asData-0.08.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor::Chained)

BuildArch:	noarch

%description
Text::vFile::asData - parse vFile formatted files into data structures

%prep
%setup -q -n Text-vFile-asData-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{perl_vendorlib}/Text/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5900 |21cr|perl-Text-WagnerFischer-0.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-WagnerFischer
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	An implementation of the Wagner-Fischer edit distance

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements the Wagner-Fischer dynamic programming technique, used
here to calculate the edit distance of two strings. The edit distance is a
measure of the degree of proximity between two strings, based on ``edits'': the
operations of substitutions, deletions or insertions needed to transform the
string into the other one (and vice versa).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5901 |21cr|perl-Text-WikiFormat-0.810.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-WikiFormat
%define upstream_version 0.81

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Module for translating Wiki formatted text into other formats

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Text/Text-WikiFormat-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
Text::WikiFormat converts text in a simple Wiki markup language to whatever
your little heart desires, provided you can describe it accurately in a
semi-regular tag language.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Text
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5902 |21cr|perl-Text-Wrapper-1.50.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Wrapper
%define upstream_version 1.05
Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:    Simple word wrapping routine perl module

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:    ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Text/Text-Wrapper-%{upstream_version}.tar.gz

BuildRequires:	perl(Module::Build)
BuildRequires:	perl-devel
BuildArch: noarch

%description
Text::Wrapper provides simple word wrapping. It breaks long lines, but does 
not alter spacing or remove existing line breaks. If you're looking for more 
sophisticated text formatting, try the Text::Format module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}/%{perl_vendorarch}

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5903 |21cr|perl-TFTP-1-0.0b3.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  TFTP
%define	modprefix TFTP/GSM
%define beta 0b3

Name:		perl-%{module}
Version:	1
Release:	0.%{beta}.5
Summary:	TFTP Client class

License:	GPL or Artistic
Group:		Development/Perl
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/%{modprefix}/%{module}-%{version}.%{beta}.tar.bz2
Url:		http://search.cpan.org/dist/%{module}/

BuildRequires:	perl-devel
BuildArch:	noarch

%description 
TFTP is a class implementing a simple TFTP client in Perl as described
in RFC783.

%prep
%setup -q -n %{module}-%{version}.%{beta}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%defattr(444,root,root,755)
%doc README
%{perl_vendorlib}/%{module}.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5904 |21cr|perl-Thread-Queue-3.60.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Thread-Queue
%define upstream_version 3.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Thread-safe queues

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Thread/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Thread::Semaphore)
BuildRequires:	perl(threads::shared) >= 1.480.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

Provides:	perl(Thread::Queue) = %{version}

BuildArch:	noarch

%description
This module provides thread-safe FIFO queues that can be accessed safely by
any number of threads.

Any data types supported by the threads::shared manpage can be passed via
queues:

* Ordinary scalars

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5905 |21cr|perl-Thread-Semaphore-2.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Thread-Semaphore
%define upstream_version 2.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Thread-safe semaphores

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Thread/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(threads::shared)
BuildArch:	noarch

%description
Semaphores provide a mechanism to regulate access to resources. Unlike
locks, semaphores aren't tied to particular scalars, and so may be used to
control access to anything you care to use them for.

Semaphores don't limit their values to zero and one, so they can be used to
control access to some resource that there may be more than one of (e.g.,
filehandles). Increment and decrement amounts aren't fixed at one either,
so threads can reserve or return multiple resources at once.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5906 |21cr|perl-Thread-SigMask-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Thread-SigMask
%define upstream_version 0.004

Name:           perl-Thread-SigMask
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Thread specific signal masks
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Thread-SigMask
Source0:        https://cpan.metacpan.org/authors/id/L/LE/LEONT/Thread-SigMask-%{upstream_version}.tar.gz
BuildRequires:  perl-interpreter >= 0:5.006
BuildRequires:  perl-devel
BuildRequires:  perl-generators
BuildRequires:  perl(blib)
BuildRequires:  perl(Exporter) >= 5.57
BuildRequires:  perl(ExtUtils::CBuilder)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(POSIX)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(warnings)
BuildRequires:  perl(XSLoader)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This module provides per-thread signal masks. On non-threaded perls it will
be effectively the same as POSIX::sigprocmask. The interface works exactly
the same as sigprocmask.

%prep
%setup -q -n Thread-SigMask-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor optimize="$RPM_OPT_FLAGS"
./Build

%install
./Build install destdir=%{buildroot} create_packlist=0
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;

%{_fixperms} %{buildroot}/*

%check
./Build test

%files
%doc Changes README
%license LICENSE
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/Thread*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5907 |21cr|perl-Throwable-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Throwable
%define upstream_version 1.001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	An easy-to-use class for error objects

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Devel::StackTrace)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Moo::Role)
BuildRequires:	perl(Sub::Quote)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Class::Method::Modifiers)

Requires:	perl(Devel::StackTrace)

BuildArch:	noarch


%description
Throwable is a role for classes that are meant to be thrown as exceptions
to standard program flow. It is very simple and does only two things: saves
any previous value for '$@' and calls 'die $self'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5908 |21cr|perl-Tie-Array-Iterable-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-Array-Iterable
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Forward Iterator object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
'Tie::Hash::Iterable' allows one to create iterators for lists and arrays.
The concept of iterators is borrowed from the C++ STL [1], in which most of
the collections have iterators, though this class does not attempt to fully
mimic it.

Typically, in C/C++ or Perl, the 'easy' way to visit each item on a list is
to use a counter, and then a for( ;; ) loop. However, this requires
knowledge on how long the array is to know when to end. In addition, if
items are removed or inserted into the array during the loop, then the
counter will be incorrect on the next run through the loop, and will cause
problems.

While some aspects of this are fixed in Perl by the use of for or foreach,
these commands still suffer when items are removed or added to the array
while in these loops. Also, if one wished to use break to step out of a
foreach loop, then restart where they left at some later point, there is no
way to do this without maintaining some additional state information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5909 |21cr|perl-Tie-Cache-0.210.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Tie-Cache
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	LRU Cache in Memory

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/C/CH/CHAMAS/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		perl-Tie-Cache-bindir.patch

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements a least recently used (LRU) cache in memory through a
tie interface. Any time data is stored in the tied hash, that key/value pair
has an entry time associated with it, and as the cache fills up, those members
of the cache that are the oldest are removed to make room for new entries.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
%patch0 -p0

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std


%files
%doc CHANGES README META.yml 
%{_mandir}/*/*
%{perl_vendorlib}/Tie

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5910 |21cr|perl-Tie-Cache-LRU-20150301.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-Cache-LRU
%define upstream_version 20150301

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Tie::Cache::LRU implemented using a linked list
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp::Assert)
BuildRequires: perl(Class::Data::Inheritable)
BuildRequires: perl(Class::Virtual)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(enum)
BuildRequires: perl-devel

BuildArch: noarch

%description
*NOTE* There are no plans to update this module. Please consider using the
CHI manpage or other caching framework.

This is an implementation of a least-recently used (LRU) cache keeping the
cache in RAM.

A LRU cache is similar to the kind of cache used by a web browser. New
items are placed into the top of the cache. When the cache grows past its
size limit, it throws away items off the bottom. The trick is that whenever
an item is -accessed-, it is pulled back to the top. The end result of all
this is that items which are frequently accessed tend to stay in the cache.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5911 |21cr|perl-Tie-Cycle-1.227.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-Cycle
%define upstream_version 1.227

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Cycle through a list of values via a scalar
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel
BuildArch: noarch

%description
You use 'Tie::Cycle' to go through a list over and over again. Once you get
to the end of the list, you go back to the beginning. You don't have to
worry about any of this since the magic of tie does that for you.

The tie takes an array reference as its third argument. The tie should
succeed unless the argument is not an array reference. Previous versions
required you to use an array that had more than one element (what's the
pointing of looping otherwise?), but I've removed that restriction since
the number of elements you want to use may change depending on the
situation.

During the tie, this module makes a shallow copy of the array reference. If
the array reference contains references, and those references are changed
after the tie, the elements of the cycle will change as well. See the
included _test.pl_ script for an example of this effect.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5912 |21cr|perl-Tie-DBI-1.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Tie-DBI
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Tie hashes to DBI relational databases 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Tie/Tie-DBI-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(DBD::SQLite)
BuildArch:	noarch

%description
This module allows you to tie Perl associative arrays (hashes) to SQL databases
using the DBI interface. The tied hash is associated with a table in a local or
networked database. One column becomes the hash key. Each row of the table
becomes an associative array, from which individual fields can be set or
retrieved.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make 

%check
# test require a real database

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Tie
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5913 |21cr|perl-Tie-EncryptedHash-1.240.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-EncryptedHash
%define upstream_version 1.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Hashes (and objects based on hashes) with encrypting fields

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/V/VI/VIPUL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Crypt::CBC)
BuildRequires:	perl(Crypt::Blowfish)
BuildRequires:	perl(Crypt::DES)
BuildArch:	noarch

%description
Tie::EncryptedHash augments Perl hash semantics to build
secure, encrypting containers of data. Tie::EncryptedHash
introduces special hash fields that are coupled with
encrypt/decrypt routines to encrypt assignments at STORE()
and decrypt retrievals at FETCH(). By design, encrypting
fields are associated with keys that begin in single
underscore. The remaining keyspace is used for accessing
normal hash fields, which are retained without
modification.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" echo | %__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README.html
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5914 |21cr|perl-Tie-Hash-Method-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    foo
%define upstream_version 0.02

Name:           perl-Tie-Hash-Method
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Tied hash with specific methods overridden by callbacks
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Tie-Hash-Method
Source0:        https://cpan.metacpan.org/authors/id/Y/YV/YVES/Tie-Hash-Method-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Runt-time:
BuildRequires:  perl(base)
BuildRequires:  perl(constant)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Exporter)
# Tests:
BuildRequires:  perl(Test::More)
# Optional tests:
BuildRequires:  perl(Pod::Coverage) >= 0.18
BuildRequires:  perl(Test::Pod) >= 1.22
BuildRequires:  perl(Test::Pod::Coverage) >= 1.08
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
Perl Tie::Hash::Method module provides a way to create a tied hash with
specific overridden behavior without having to create a new class to do it.
A tied hash with no methods overridden is functionally equivalent to a normal
hash.

%prep
%setup -q -n Tie-Hash-Method-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -exec rm -f {} \;
%{_fixperms} %{buildroot}/*

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5915 |21cr|perl-Tie-Hash-MultiValue-1.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-Hash-MultiValue
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Hash w/multiple items under a single key

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Tie::Hash)

BuildArch:	noarch

%description
'Tie::Hash::MultiValue' allows you to have hashes which store their values
in anonymous arrays, appending any new value to the already-existing ones.

This means that you can store as many items as you like under a single key,
and access them all at once by accessing the value stored under the key.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5916 |21cr|perl-Tie-LogFile-0.100.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Tie-LogFile
%define upstream_version	0.1

Summary:	Interface for maintaining a log

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Tie/%{module}-%{upstream_version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Tie::LogFile gives a easy interface for maintaining a well formated log. Using
user tweakable sprintf like tags, Tie::LogFile is flexible, and probably a
little overkill for keeping a log.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Tie
%{_mandir}/man3/Tie*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5917 |21cr|perl-Tie-RefHash-1.390.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-RefHash
%define upstream_version 1.39

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Use references as hash keys
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides the ability to use references as hash keys if you
first 'tie' the hash variable to this module. Normally, only the keys of
the tied hash itself are preserved as references; to use references as keys
in hashes-of-hashes, use Tie::RefHash::Nestable, included as part of
Tie::RefHash.

It is implemented using the standard perl TIEHASH interface. Please see the
'tie' entry in perlfunc(1) and perltie(1) for more information.

The Nestable version works by looking for hash references being stored and
converting them to tied hashes so that they too can have references as
keys. This will happen without warning whenever you store a reference to
one of your own hashes in the tied hash.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5918 |21cr|perl-Tie-RefHash-Weak-0.90.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-RefHash-Weak
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A Tie::RefHash subclass with weakened references in the keys

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Tie::RefHash)
BuildRequires:	perl(Variable::Magic)
BuildArch:	noarch

%description
The the Tie::RefHash manpage module can be used to access hashes by
reference. This is useful when you index by object, for example.

The problem with the Tie::RefHash manpage, and cross indexing, is that
sometimes the index should not contain strong references to the objecs. the
Tie::RefHash manpage's internal structures contain strong references to the
key, and provide no convenient means to make those references weak.

This subclass of the Tie::RefHash manpage has weak keys, instead of strong
ones. The values are left unaltered, and you'll have to make sure there are
no strong references there yourself.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5919 |21cr|perl-Tie-Simple-1.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-Simple
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Create ties without creating full packages
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module adds the ability to quickly create new types of tie objects
without creating a complete class. It does so in such a way as to try and
make the programmers life easier when it comes to single-use ties that I
find myself wanting to use from time-to-time.

The 'Tie::Simple' package is actually a front-end to other classes which
really do all the work once tied, but this package does the dwimming to
automatically figure out what you're trying to do.

I've tried to make this as intuitive as possible and dependent on other
bits of Perl where I can to minimize the need for documentation and to make
this extra, extra spiffy.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5920 |21cr|perl-Tie-TextDir-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Tie-TextDir
%define upstream_version    0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL or Artistic
Summary:	Interface to directory of file

Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Tie::TextDir module is a TIEHASH interface which lets you tie a Perl hash
to a directory on the filesystem. Each entry in the hash represents a file in
the directory.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
make

# Old package, now some tests fail erroneously
# %check
# make test

%install
%makeinstall_std

%files
%doc Changes MANIFEST README
%{_mandir}/*/*
%{perl_vendorlib}/Tie

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5921 |21cr|perl-Tie-ToObject-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Tie-ToObject
%define upstream_version 0.03

Summary:	Tie to an existing object
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tie/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::use::ok)
BuildArch:	noarch

%description
While "tie" in perldoc allows tying to an arbitrary object, the class in
question must support this in it's implementation of TIEHASH, TIEARRAY or
whatever.

This class provides a very tie constructor that simply returns the object it
was given as it's first argument.

%files
%{_mandir}/man3/*
%{perl_vendorlib}/Tie

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5922 |21cr|perl-Time-Clock-1.30.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-Clock
%define upstream_version 1.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Twenty-four hour clock object with nanosecond precision
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildArch:     noarch

%description
A the Time::Clock manpage object is a twenty-four hour clock with
nanosecond precision and wrap-around. It is a clock only; it has absolutely
no concept of dates. Vagaries of date/time such as leap seconds and
daylight savings time are unsupported.

When a the Time::Clock manpage object hits 23:59:59.999999999 and at least
one more nanosecond is added, it will wrap around to 00:00:00.000000000.
This works in reverse when time is subtracted.

the Time::Clock manpage objects automatically stringify to a user-definable
format.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5923 |21cr|perl-Time-Duration-1.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-Duration
%define upstream_version 1.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Rounded or exact English expression of durations

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildArch:	noarch

%description
This module provides functions for expressing durations in rounded or exact
terms.

In the first example in the Synopsis, using duration($interval_seconds):

If the 'time() - $start_time' is 3 seconds, this prints "Runtime: *3
seconds*.". If it's 0 seconds, it's "Runtime: *0 seconds*.". If it's 1
second, it's "Runtime: *1 second*.". If it's 125 seconds, you get "Runtime:
*2 minutes and 5 seconds*.". If it's 3820 seconds (which is exactly 1h, 3m,
40s), you get it rounded to fit within two expressed units: "Runtime: *1
hour and 4 minutes*.". Using duration_exact instead would return "Runtime:
*1 hour, 3 minutes, and 40 seconds*".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5924 |21cr|perl-Time-Duration-Parse-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-Duration-Parse
%define upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Parse string that represents time duration


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Exporter::Lite)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Time::Duration)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Carp)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
Time::Duration::Parse is a module to parse human readable duration strings
like _2 minutes and 3 seconds_ to seconds.

It does the opposite of _duration_exact_ function in Time::Duration and is
roundtrip safe. So, the following is always true.

  use Time::Duration::Parse;
  use Time::Duration;

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml META.json README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5925 |21cr|perl-Time-Format-1.120.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Time-Format
%define upstream_version 1.12
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 1.12
Release:	5

Summary:	Perl module for date and time formatting

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Time/Time-Format-1.12.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Time::Format provides a very easy way to format dates and times. The
formatting functions are tied to hash variables, so they can be used
inside strings as well as in ordinary expressions. The formatting
codes used are meant to be easy to remember, use, and read. They
follow a simple, consistent pattern. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README Changes quickref.*
%{perl_vendorlib}/Time
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5926 |21cr|perl-Time-HiRes-1.972.600-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-HiRes
%define upstream_version 1.9726
Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	6
Epoch:      1

Summary:    High resolution time, sleep, and alarm

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Time/Time-HiRes-%{upstream_version}.tar.gz

BuildRequires: perl-devel

%description
The 'Time::HiRes' module implements a Perl interface to the 'usleep',
'nanosleep', 'ualarm', 'gettimeofday', and 'setitimer'/'getitimer' system
calls, in other words, high resolution time and timers. See the the
/EXAMPLES manpage section below and the test scripts for usage; see your
system documentation for the description of the underlying 'nanosleep' or
'usleep', 'ualarm', 'gettimeofday', and 'setitimer'/'getitimer' calls.

If your system lacks 'gettimeofday()' or an emulation of it you don't get
'gettimeofday()' or the one-argument form of 'tv_interval()'. If your
system lacks all of 'nanosleep()', 'usleep()', 'select()', and 'poll', you
don't get 'Time::HiRes::usleep()', 'Time::HiRes::nanosleep()', or
'Time::HiRes::sleep()'. If your system lacks both 'ualarm()' and
'setitimer()' you don't get 'Time::HiRes::ualarm()' or
'Time::HiRes::alarm()'.

If you try to import an unimplemented function in the 'use' statement it
will fail at compile time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5927 |21cr|perl-Time-modules-2011.0517-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Time modules for perl

Name:		perl-Time-modules
Version:	2011.0517
Release:	9
License:	distributable
Group:		Development/Perl
Source:		Time-modules-%{version}.tar.bz2
URL:		http://www.cpan.org/modules/by-module/Time/
Requires:	perl
BuildRequires:	perl-devel >= 5.8.0
BuildArch:	noarch

%description
This package contains the following perl5 modules:

        Time::CTime.pm
                ctime, strftime, and asctime
        Time::JulianDay.pm
                Julian Day conversions
        Time::ParseDate.pm
                Reverses strftime and also understands relative times
        Time::Timezone.pm
        Time::DaysInMonth.pm

%prep
%setup -q -n Time-modules-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
%make

%install
%make PREFIX=%{buildroot}%{_prefix} install

%clean

%files
%doc README MANIFEST CHANGELOG
%{_mandir}/*/*
%{perl_vendorlib}/Time/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5928 |21cr|perl-Time-Moment-0.440.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude Moment.so

%define upstream_name    Time-Moment
%define upstream_version 0.44

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Adjusters for Time::Moment
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Number::Delta)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(XSLoader)
BuildRequires: perl-devel
BuildRequires: perl(JSON::XS)
BuildRequires: perl(Params::Coerce)


%description
'Time::Moment' is an immutable object representing a date and time of day
with an offset from UTC in the ISO 8601 calendar system.

Time is measured in nanoseconds since '1970-01-01T00Z'. In 'Time:Moment'
leap seconds are ignored. It is assumed that there are exactly
'86,400,000,000,000' nanoseconds per day. 'Time::Moment' can represent all
epoch integers from '-62,135,596,800' to '2,534,02,300,799'; this range
suffices to measure times to nanosecond precision for any instant that is
within '0001-01-01T00:00:00Z' to '9999-12-31T23:59:59Z'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5929 |21cr|perl-Time-Out-0.110.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-Out
%define upstream_version 0.11

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Easily timeout long running operations
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
'Time::Out' provides an easy interface to _alarm(2)_ based timeouts. Nested
timeouts are supported.

RETURN VALUE
    'timeout' returns whatever the code placed inside the block returns:

      use Time::Out qw(timeout) ;
    
      my $rc = timeout 5 => sub {
    	return 7 ;
      } ;
      # $rc == 7

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5930 |21cr|perl-Time-Piece-MySQL-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-Piece-MySQL
%define upstream_version 0.06

Name:           perl-Time-Piece-MySQL
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        MySQL-specific methods for Time::Piece
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Time-Piece-MySQL
Source0:        https://cpan.metacpan.org/modules/by-module/Time/Time-Piece-MySQL-%{upstream_version}.tar.gz
BuildArch:      noarch
# Build:
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(ExtUtils::MakeMaker)
# Run-time:
BuildRequires:  perl(Time::Piece) >= 1.03
BuildRequires:  perl(Time::Seconds)
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
# Tests:
BuildRequires:  perl(Test::More) >= 0.47
BuildRequires:  perl(warnings)
# Dependencies:
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Time::Piece) >= 1.03

%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Time::Piece\\)
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Time::Piece\\)\s*$

%description
The Time::Piece::MySQL module can be used instead of, or in addition to,
Time::Piece to add MySQL-specific date-time methods to Time::Piece objects.

%prep
%setup -q -n Time-Piece-MySQL-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
find %{buildroot} -type f -name .packlist -delete
%{_fixperms} -c %{buildroot}

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/Time/
%{_mandir}/man3/Time::Piece::MySQL.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5931 |21cr|perl-Time-Progress-2.140.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Time-Progress
%define upstream_version    2.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Elapsed and estimated finish time reporting

Url:        http://search.cpan.org/dist/%{upstream_name}
Source:     https://cpan.metacpan.org/authors/id/C/CA/CADE/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  perl-devel
BuildRequires:  perl(Carp)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(strict)
BuildRequires:  perl(Test)
BuildRequires:  perl(warnings)
BuildRequires:  perl(Test::More) >= 1.1.9


BuildArch: noarch

%description
Elapsed and estimated finish time reporting.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes  META.json META.yml
%{perl_vendorlib}/Time/Progress.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5932 |21cr|perl-Time-Warp-0.540.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-Warp
%define upstream_version 0.54
%global __provides_exclude Warp.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Change the start and speed of Event time

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz


BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9



%description
Our external experience unfolds in 3 1/2 dimensions (time has a
dimensionality of 1/2). The Time::Warp module offers developers control
over the measurement of time.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5933 |21cr|perl-Time-y2038-20100403.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-y2038
%define upstream_version 20100403

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9

Summary:    Use Time::y2038's gmtime and localtime everywhere

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(JSON)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warn)
BuildRequires: perl(Module::Build)
BuildRequires: perl-devel

%description
On many computers, Perl's time functions will not work past the year 2038.
This is a design fault in the underlying C libraries Perl uses. Time::y2038
provides replacements for those functions which will work accurately +/1
142 million years.

This only imports the functions into your namespace. To replace it
everywhere, see the Time::y2038::Everywhere manpage.

Replaces the following functions:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5934 |21cr|perl-Tk-Action-1.93.390-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-Action
%define upstream_version 1.093390

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Action abstraction for tk

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(English)
BuildRequires: perl(File::Find)
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::Has::Sugar)
BuildRequires: perl(MooseX::SemiAffordanceAccessor)
BuildRequires: perl(Test::More)
BuildRequires: perl(Tk::Sugar)
BuildRequires: perl(Module::Build)

BuildArch: noarch

%description
Menu entries are often also available in toolbars or other widgets. And
sometimes, we want to enable or disable a given action, and this means
having to update everywhere this action is allowed.

This module helps managing actions in a the Tk manpage GUI: just create a
new object, associate some widgets and bindings with 'add_widget()' and
then de/activate the whole action at once with 'enable()' or 'disable()'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5935 |21cr|perl-Tk-Clock-0.390.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-Clock
%define upstream_version 0.39
%global __requires_exclude /pro/bin/perl


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Canvas based Clock widget


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Tk)
BuildRequires:	perl(Tk::Canvas)
BuildRequires:	perl(Tk::Derived)
BuildRequires:	perl(Tk::Widget)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Encode)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Tk::PNG)
BuildRequires:	x11-server-xvfb

BuildArch:	noarch

%description
This module implements a Canvas-based clock widget for perl-Tk with lots of
options to change the appearance.

Both analog and digital clocks are implemented.

Options
    Below is a description of the options currently available. Their
    default value is in between parenthesis.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
xvfb-run %make test

%install
%makeinstall_std
chmod -x %{buildroot}%{perl_vendorlib}/Tk/Clock.pm

%files
%doc META.json META.yml ChangeLog README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5936 |21cr|perl-Tk-CursorControl-0.400.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-CursorControl
%define upstream_version 0.4

%define debug_package %{nil}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    11

Summary:    Manipulate the mouse cursor programmatically

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz
Patch1:     fix-cursor-widget-demo-conflict.patch
BuildRequires: perl(Tk)
BuildRequires: perl-devel

%description
Tk::CursorControl is -NOT- a Tk::Widget. Rather, it uses Tk and
encompasses a collection of methods used to manipulate the cursor (aka
pointer) programmatically from a Tk program.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5937 |21cr|perl-Tk-DirSelect-1.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Tk-DirSelect
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Cross-platform directory selection widget

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Tk)

BuildArch:	noarch

%description
This module provides a cross-platform directory selection widget. For
systems running Microsoft Windows, this includes selection of local and
mapped network drives. A context menu (right-click or <Button3>) allows the
creation, renaming, and deletion of directories while browsing.

Note: Perl/Tk 804 added the 'chooseDirectory' method which uses native
system dialogs where available. (i.e. Windows) If you want a native feel
for your program, you probably want to use that method instead -- possibly
using this module as a fallback for systems with older versions of Tk
installed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5938 |21cr|perl-Tk-DoubleClick-0.40.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-DoubleClick
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Group:      Development/Perl
Summary:        Correctly handle single-click vs double-click events
License:        GPL+ or Artistic
URL:            http://search.cpan.org/dist/Tk-DoubleClick/
Source0:        http://www.cpan.org/authors/id/D/DD/DDUMONT/Tk-DoubleClick-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(Exporter)
# Tests
BuildRequires:  perl(Test::More)
# Optional tests
BuildRequires:  perl(Test::Pod) >= 1.22
Requires:       perl(Tk)

%description
Tk::DoubleClick module correctly handle single-click vs double-click
events, calling only the appropriate callback for the given event.

%prep
%setup -q -n Tk-DoubleClick-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
make pure_install DESTDIR=%{buildroot}

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5939 |21cr|perl-Tk-FileDialog-1.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Tk::FileDialog Perl module

Name:		perl-Tk-FileDialog
Version:	1.3
Release:	14
License:	GPL
Group:		Development/Perl
Source0:	https://cpan.metacpan.org/authors/id/B/BP/BPOWERS/Tk-FileDialog-%{version}.tar.gz
Url:		http://www.cpan.org
BuildRequires:	perl-devel
BuildArch:	noarch

%description
A highly configurable File Dialog widget for Perl/Tk.

%prep
%setup -q -n Tk-FileDialog-%{version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%install
make PREFIX=%{buildroot}%{_prefix} install DESTDIR=%{buildroot}

%clean

%files
%doc README
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5940 |21cr|perl-Tk-FontDialog-0.180.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-FontDialog
%define upstream_version 0.18

%global use_x11_tests 1

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Font dialog widget for perl/Tk
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/Tk-FontDialog
Source0:        https://cpan.metacpan.org/authors/id/S/SR/SREZIC/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION) >= 5.4
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
# Run-time
BuildRequires:  perl(strict)
BuildRequires:  perl(Tk) >= 800
BuildRequires:  perl(Tk::Font)
BuildRequires:  perl(Tk::HList)
BuildRequires:  perl(Tk::ItemStyle)
BuildRequires:  perl(vars)
# Tests
BuildRequires:  perl(charnames)
BuildRequires:  perl(Test::More)
%if %{use_x11_tests}
# X11 tests:
BuildRequires:  x11-server-xvfb
BuildRequires:  font(:lang=en)
%endif
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(Tk::HList)
Requires:       perl(Tk::ItemStyle)

%description
This module implements a font dialog widget for perl/Tk.

%prep
%setup -q -n Tk-FontDialog-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
%if %{use_x11_tests}
    xvfb-run -d make test
%else
    make test
%endif

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5941 |21cr|perl-Tk-Gauge-0.300.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-Gauge
%define upstream_version 0.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Create a multitude of analog gauge widgets

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Tk)
BuildRequires:	perl(Test)
BuildRequires:	perl-Tk-devel
BuildRequires:	x11-server-xvfb

BuildArch:	noarch

%description
This widget creates an analog gauge. A gauge has various components: a
radius highlighted by a circumference, one or more needles, a hub, three
granularities of tick marks, one of which has a value label, a caption,
title and specialized bands that visually compartmentalize the gauge.

A gauge's appearance is specified by manipulating a set of approximately 60
options, all described below. Given this flexibility one may create
instruments including, but not limited to, a 12 or 24 hour clock, CPU
meter, voltmeter, fuel and temperature gauge, speedometer and tachometer.

The following option/value pairs are supported (default value in
parentheses):

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
xvfb-run %make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5942 |21cr|perl-Tk-HistEntry-0.430.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-HistEntry
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	An entry widget with history capability

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Tk)
BuildRequires:	x11-server-xvfb

BuildArch:	noarch

%description
'Tk::HistEntry' defines entry widgets with history capabilities. The
widgets come in two flavours:

* 'HistEntry' (in package 'Tk::HistEntry::Browse') - with associated
  browse entry

* 'SimpleHistEntry' (in package 'Tk::HistEntry::Simple') - plain widget
  without browse entry

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
xvfb-run %make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5943 |21cr|perl-Tk-ObjScanner-2.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Tk-ObjScanner
%define upstream_version    2.017

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Tk data or object scanner

Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Tk)
BuildRequires:	perl(Tk::Adjuster)
BuildRequires:	perl(Tk::HList)
BuildRequires:	perl(Tk::ROText)
BuildRequires:	perl(Math::BigInt)
BuildRequires:	x11-server-xvfb
BuildArch:	noarch

%description
The scanner provides a GUI to scan the attributes of an object. It can also
be used to scan the elements of a hash or an array.

This widget can be used as a regular widget in a Tk application or can be
used as an autonomous popup widget that will display the content of a data
structure. The latter is like a call to a graphical the Data::Dumper
manpage. The scanner can be used in an autonomous way with the
'scan_object' function.

The scanner is a composite widget made of a menubar and the Tk::HList
manpage. This widget acts as a scanner to the object (or hash ref) passed
with the 'caller' parameter. The scanner will retrieve all keys of the
hash/object and insert them in the HList.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
xvfb-run make test

%install
%makeinstall_std

%files
%doc Changes README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5944 |21cr|perl-Tk-Pod-0.994.300-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-Pod
%define upstream_version 0.9943

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Simple Pod browser with hypertext capabilities

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/Tk/Tk-Pod-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Pod::Simple)
BuildRequires:	perl(Text::English)
BuildRequires:	perl(Tk)
BuildRequires:	perl(Tk::HistEntry)

BuildArch:	noarch

%description
Simple Pod browser with hypertext capabilities in a 'Toplevel' widget

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests hang on build-system
#xvfb-run %make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_bindir}/tk*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5945 |21cr|perl-Tk-Role-Dialog-1.112.380-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-Role-Dialog
%define upstream_version 1.112380

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Moose role for enhanced tk dialogs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Tk::Role::HasWidgets)
BuildRequires:	perl(Carp)
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moose::Role)
BuildRequires:	perl(MooseX::Has::Sugar)
BuildRequires:	perl(MooseX::Types::Path::Class)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Tk)
BuildRequires:	perl(Tk::JPEG)
BuildRequires:	perl(Tk::PNG)
BuildRequires:	perl(Tk::Sugar)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(namespace::autoclean)

BuildArch:	noarch

%description
the Tk::Role::Dialog manpage is meant to be used as a the Moose manpage
role to be composed for easy the Tk manpage dialogs creation.

It will create a new toplevel with a title, and possibly a header as well
as some buttons.

The attributes (see below) can be either defined as defaults using the
'_build_attr()' methods, or passed arguments to the constructor call. The
only mandatory attribute is 'parent', but you'd better provide some other
attributes if you want your dialog to be somehow usable! :-)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5946 |21cr|perl-Tk-Role-HasWidgets-1.112.380-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-Role-HasWidgets
%define upstream_version 1.112380

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Keep track of your tk widgets
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(namespace::clean)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Moose::Role)
BuildRequires: perl(MooseX::Has::Sugar)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildArch: noarch

%description
When programming the Tk manpage, it's almost always a good idea to keep a
reference to the widgets that you created in the interface. Most of the
time, a simple hash is enough; but it is usually wrapped up in methods to
make the hash private to the window object. And of course, those methods
are duplicated in all modules, under a form or another.

Since duplication is bad, this module implements a the Moose manpage role
implementing those methods once and forever. This implies that your class
is using the Moose manpage in order to consume the role.

About the method names
    The methods featured in this role begin with '_', that is, they are
    following Perl convention of private methods. This is on purpose:
    remember that this method is a role, consumed by your class. And you
    don't want those methods to be available outside of the window class,
    do you?

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5947 |21cr|perl-Tk-Sugar-1.93.190-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tk-Sugar
%define upstream_version 1.093190

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Sugar syntax for Tk

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(English)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
the Tk manpage is a great graphical toolkit to write desktop applications.
However, one can get bothered with the constant typing of quotes and
options. the Tk::Sugar manpage provides handy subs for common options used
when programming Tk.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5948 |21cr|perl-Tk-TableMatrix-1.290.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Tk-TableMatrix
%define upstream_version 1.29

Name: 		perl-%{upstream_name}
Version: 	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Tk-TableMatrix perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/C/CA/CAC/%{upstream_name}-%{upstream_version}.tar.gz

# for fake X display:
BuildRequires:	perl-Tk-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(x11)
Obsoletes:	%{name}-devel < %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}


%description
Tk::TableMatrix is a table/matrix widget extension to perl/tk
for displaying data in a table (or spreadsheet) format.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# DISABLE the check for now. It's won't work with build bots. 20061104.SE
#XDISPLAY=$(i=2; while [ -f /tmp/.X$i-lock ]; do i=$(($i+1)); done; echo $i)
#{_prefix}/X11R6/bin/Xvfb :$XDISPLAY &
#export DISPLAY=:$XDISPLAY
#xauth add $DISPLAY . EE
#{__make} test

#xauth remove $DISPLAY
#kill $(cat /tmp/.X$XDISPLAY-lock)

%install
%makeinstall_std

# 20070818 remove file owned by perl-Tk-804.027-7mdv2007.0.i586
rm -rf %{buildroot}/%{perl_vendorarch}/Tk/pTk/extralibs.ld

%clean

%files
%doc README Changes
%{perl_vendorarch}/Tk
%{perl_vendorarch}/auto/Tk
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5949 |21cr|perl-Tk-ToolBar-0.120.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Tk-ToolBar
%define upstream_version 0.12

%global	debug_package %{nil}

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	A toolbar widget for Perl/Tk

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tk/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Tk::CursorControl)
BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Tk)
BuildRequires:	perl(Test::Pod)

%description
This module implements a dockable toolbar. It is in the same spirit as the
"short-cut" toolbars found in most major applications, such as most web
browsers and text editors (where you find the "back" or "save" and other
shortcut buttons).

Buttons of any type (regular, menu, check, radio) can be created inside this
widget.  You can also create Label, Entry and LabEntry widgets.  Moreover, the
ToolBar itself can be made dockable, such that it can be dragged to any edge of
your window. Dragging is done in "real-time" so that you can see the contents
of your ToolBar as you are dragging it. Furthermore, if you are close to a
stickable edge, a visual indicator will show up along that edge to guide you.
ToolBars can be made "floatable" such that if they are dragged beyond their
associated window, they will detach and float on the desktop.
Also, multiple ToolBars are embeddable inside each other.

If you drag a ToolBar to within 15 pixels of an edge, it will stick to that
edge. If the ToolBar is further than 15 pixels away from an edge and still
inside the window, but you release it over another ToolBar widget, then it will
be embedded inside the second ToolBar. You can "un-embed" an embedded ToolBar
simply by dragging it out. You can change the 15 pixel limit using the
-close option.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5950 |21cr|perl-Tree-1.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tree
%define upstream_version 1.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A tree datastructure

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RS/RSAVAGE/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::Pod::Coverage) >= 1.08
BuildArch:	noarch

%description
This is meant to be a full-featured N-ary tree representation with
configurable error-handling and a simple events system that allows for
transparent persistence to a variety of datastores. It is derived from the
Tree::Simple manpage, but has a simpler interface and much, much more.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5951 |21cr|perl-Tree-BPTree-1.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tree-BPTree
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Perl implementation of B+ trees

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Tree/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
This is a Perl implementation of B+ trees. I have based this
implementation on a couple of sources. See the documentation of
Tree::BPTree for those details. A B+ tree is essentially an order
map from keys to values. Keys are multivalued so that there may be
more than one value per key. This implementation will enforce
uniqueness of keys, if requested.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Tree
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5952 |21cr|perl-Tree-Nary-1.300.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tree-Nary
%define upstream_version 1.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Tree::Nary - Perl implementation of N-ary search trees

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/F/FS/FSORIANO/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Tree::Nary class implements N-ary trees (trees of data with any 
number of branches), providing the organizational structure for a tree
(collection) of any number of nodes, but knowing nothing about the specific
type of node used.  It can be used to display hierarchical database entries in
an internal application (the NIS netgroup file is an example of such a
database). It offers the capability to select nodes on the tree, and attachment
points for nodes on the tree. Each attachment point can support multiple child
nodes.

The data field contains the actual data of the node. The next and previous
fields point to the node's siblings (a sibling is another node with the same
parent). The parent field points to the parent of the node, or is undef if the
node is the root of the tree. The children field points to the first child of
the node. The other children are accessed by using the next pointer of each
child.  This module is a translation (albeit not a direct one) from the C
implementation of N-ary trees, available in the GLIB distribution (see SEE
ALSO).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{perl_vendorlib}/Tree/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5953 |21cr|perl-Tree-R-0.72.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tree-R
%define upstream_version 0.072

Summary:	Perl extension for the Rtree data structure and algorithms

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL+ or Artistic
Group:		Development/Perl
Url:        	http://search.cpan.org/dist/%{upstream_name}
Source0:    	http://www.cpan.org/modules/by-module/Tree/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel >= 1:5.8.0
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
R-tree is a data structure for storing and indexing and efficiently looking
up non-zero-size spatial objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README.* META.json META.yml
%{perl_vendorlib}/Tree/R.pm
%{perl_vendorlib}/auto/Tree/R
%{_mandir}/man3/Tree::R.3pm.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5954 |21cr|perl-Tree-Simple-1.340.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tree-Simple
%define upstream_version 1.34

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A simple tree object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Tree/Tree-Simple-%{upstream_version}.tgz

BuildRequires:	perl(Test::Exception)
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Memory::Cycle)
BuildArch:	noarch

%description
This module in an fully object-oriented implementation of a simple n-ary tree.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{perl_vendorlib}/Tree/Simple/*
%{perl_vendorlib}/Tree/Simple.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5955 |21cr|perl-Tree-Simple-VisitorFactory-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tree-Simple-VisitorFactory
%define upstream_version 0.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A Visitor for sorting a Tree::Simple object hierarchy

License:    Artistic/GPL
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Tree/Tree-Simple-VisitorFactory-%{upstream_version}.tgz

BuildRequires:  perl-devel
BuildRequires:  perl(Test::Exception)
BuildRequires:  perl(Tree::Simple)
BuildArch:      noarch

%description
This implements a recursive multi-level sort of a Tree::Simple hierarchy.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Tree
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5956 |21cr|perl-Tree-Trie-1.900.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Tree-Trie
%define upstream_version 1.9

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	A data structure optimized for prefix lookup

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tree/Tree-Trie-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CPAN)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)

BuildArch:	noarch

%description
This module implements a trie data structure.  The term "trie"
comes from the word retrieval, but is generally pronounced like
"try".  A trie is a tree structure (or directed acyclic graph),
the nodes of which represent letters in a word.  For example, the
final lookup for the word 'bob' would look something like
"$ref->{'b'}{'o'}{'b'}{HASH(0x80c6bbc)}" (the HASH being an end
marker).  Only nodes which would represent words in the trie
exist, making the structure slightly smaller than a hash of the
same data set.

The advantages of the trie over other data storage methods is that lookup times
are O(1) WRT the size of the index. For sparse data sets, it is probably not as
efficient as performing a binary search on a sorted list, and for small files,
it has a lot of overhead.  The main advantage (at least from my perspective) is
that it provides a relatively cheap method for finding a list of words in a
large, dense data set which begin with a certain string.

As of version 0.3 of this module, the term "word" in this documentation can
refer to one of two things: either a refeence to an array of strings, or a
scalar which is not an array ref.  In the case of the former, each element of
the array is treated as a "letter" of the "word".  In the case of the latter,
the scalar is evaluated in string context and it is split into its component
letters.  Return values of methods match the values of what is passed in --
that is, if you call lookup() with an array reference, the return value will be
an array reference (if appropriate).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm -f t/02_pod_cover.t

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Tree
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5957 |21cr|perl-TryCatch-1.3.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	TryCatch
%define	upstream_version 1.003002

%global __provides_exclude TryCatch.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Easily build XS extensions that depend on XS extensions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/A/AS/ASH/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(B::Hooks::EndOfScope)
BuildRequires:	perl(B::Hooks::OP::Check)
BuildRequires:	perl(B::Hooks::OP::PPAddr)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Devel::Declare)
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Types)
BuildRequires:	perl(Parse::Method::Signatures)
BuildRequires:	perl(Scope::Upper)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Variable::Magic)
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl-devel

%description
This module aims to provide a nicer syntax and method to catch errors in
Perl, similar to what is found in other languages (such as Java, Python or
C++). The standard method of using 'eval {}; if ($@) {}' is often prone to
subtle bugs, primarily that its far too easy to stomp on the error in error
handlers. And also eval/if isn't the nicest idiom.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std

%files
%doc Changes README META.yml 
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5958 |21cr|perl-Types-Path-Tiny-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Types-Path-Tiny
%define upstream_version 0.006

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        Path::Tiny types and coercions for Moose and Moo
Group:          Development/Perl
License:        ASL 2.0
URL:            https://metacpan.org/release/Types-Path-Tiny
Source0:        https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:      noarch

BuildRequires:  make
BuildRequires:  %{__perl}
BuildRequires:  %{__make}

BuildRequires:  perl-interpreter >= 0:5.008001
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::pushd)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Spec::Functions)
BuildRequires:  perl(File::Temp) >= 0.18
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Path::Tiny)
BuildRequires:  perl(Test::More) >= 0.96
BuildRequires:  perl(Type::Library) >= 0.008
BuildRequires:  perl(Types::Standard)
BuildRequires:  perl(Types::TypeTiny) >= 0.004
BuildRequires:  perl(Type::Utils)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
This module provides Path::Tiny types for Moose, Moo, etc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%{__make} %{?_smp_mflags}

%install
%{__make} pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5959 |21cr|perl-UDCode-1.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    UDCode
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Does a set of code words form a uniquely decodable code?

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MJ/MJD/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
A code is a set of strings, called the _code words_. A code is "uniquely
decodable" if any string _S_ that is a concatenation of code words is so in
_exactly one way_.

For example, the code '"ab", "abba", "b"' is _not_ uniquely decodable,
because '"abba" . "b" eq "ab" . "b" . "ab"'. But the code '"a", "ab",
"abb"' _is_ uniquely decodable, because there is no such pair of sequences
of code words.

'is_udcode'
    'is_udcode(@words)' returns true if and only if the specified code is
    uniquely decodable.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5960 |21cr|perl-UI-Dialog-1.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    UI-Dialog
%define upstream_version 1.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	OOPerl wrapper for the various dialog applications

License:	GPL
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/K/KC/KCK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(String::ShellQuote)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(File::Slurp)
BuildArch:	noarch

Requires:	cdialog

%description
UI::Dialog is a OOPerl wrapper for the various dialog applications. These
dialog backends are currently supported: Zenity, GDialog, XDialog, KDialog,
CDialog, and Whiptail. There is also an ASCII backend provided as a last
resort interface for the console based dialog variants. UI::Dialog is a
class that provides a strict interface to these various backend modules.
By using UI:Dialog (with it's imposed limitations on the widgets) you can
ensure that your Perl program will function with any available interfaces.

UI::Dialog supports priority ordering of the backend detection process. So
if you'd prefer that Xdialog should be used first if available, simply
designate the desired order when creating the new object. The default order
for detecting and utilization of the backends are as follows:
  (with DISPLAY env): Zenity, GDialog, XDialog, KDialog
  (without DISPLAY): CDialog, Whiptail, ASCII

UI::Dialog is the result of a complete re-write of the UDPM CPAN module. This
was done to break away from the bad choice of name (UserDialogPerlModule) and
to implement a cleaner, more detached, OOPerl interface.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc examples README CONTRIBUTORS Changes TODO META.yml
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5961 |21cr|perl-Unicode-Collate-1.140.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Unicode-Collate
%define upstream_version 1.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Weighting JIS KANJI for Unicode::Collate
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Unicode/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

%description
This module is an implementation of Unicode Technical Standard #10 (a.k.a.
UTS #10) - Unicode Collation Algorithm (a.k.a. UCA).

Constructor and Tailoring
    The 'new' method returns a collator object. If new() is called with no
    parameters, the collator should do the default collation.

       $Collator = Unicode::Collate->new(
          UCA_Version => $UCA_Version,
          alternate => $alternate, # alias for 'variable'
          backwards => $levelNumber, # or \@levelNumbers
          entry => $element,
          hangul_terminator => $term_primary_weight,
          highestFFFF => $bool,
          identical => $bool,
          ignoreName => qr/$ignoreName/,
          ignoreChar => qr/$ignoreChar/,
          ignore_level2 => $bool,
          katakana_before_hiragana => $bool,
          level => $collationLevel,
          long_contraction => $bool,
          minimalFFFE => $bool,
          normalization  => $normalization_form,
          overrideCJK => \&overrideCJK,
          overrideHangul => \&overrideHangul,
          preprocess => \&preprocess,
          rearrange => \@charList,
          rewrite => \&rewrite,
          suppress => \@charList,
          table => $filename,
          undefName => qr/$undefName/,
          undefChar => qr/$undefChar/,
          upper_before_lower => $bool,
          variable => $variable,
       );

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5962 |21cr|perl-Unicode-Stringprep-1.105.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Unicode-Stringprep
%define upstream_version 1.105

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Prepare Internationalized Strings (RFC 3454)

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Unicode/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build) >= 0.380.0
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::NoWarnings)
BuildRequires: perl(Unicode::Normalize) >= 1.0.0
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl-devel
BuildArch:     noarch

%description
This module implements the _stringprep_ framework for preparing Unicode
text strings in order to increase the likelihood that string input and
string comparison work in ways that make sense for typical users throughout
the world. The _stringprep_ protocol is useful for protocol identifier
values, company and personal names, internationalized domain names, and
other text strings.

The _stringprep_ framework does not specify how protocols should prepare
text strings. Protocols must create profiles of stringprep in order to
fully specify the processing options.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
iconv -f iso8859-1 -t utf-8 README > README.conv && mv -f README.conv README

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README SIGNATURE eg
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5963 |21cr|perl-Unicode-UTF8simple-1.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Unicode-UTF8simple
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Conversions to/from UTF8 from/to charactersets

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/G/GU/GUS/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl-Unicode-Map
BuildRequires:	perl-Unicode-Map8
BuildRequires:	perl-Jcode
BuildArch:	noarch

%description
This utf-8 converter is written in plain perl and works with hopefully
any perl 5 version. It was mainly written because more recent modules
such as Encode do not work under older Perl 5.0 installations.

%prep
%setup -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Unicode
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5964 |21cr|perl-UNIVERSAL-exports-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 UNIVERSAL-exports
%define upstream_version 0.05

%if %{_use_internal_dependency_generator}
%global __provides_exclude perl\\(UNIVERSAL\\)
%else
%define _provides_exceptions perl(UNIVERSAL)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Lightweight, universal exporting of variables

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/UNIVERSAL/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Exporter::Lite)
BuildArch:	noarch

%description
This is an alternative to Exporter intended to provide a universal, lightweight
subset of its functionality.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/UNIVERSAL
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5965 |21cr|perl-UNIVERSAL-moniker-0.80.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    UNIVERSAL-moniker
%define upstream_version 0.08

%if %{_use_internal_dependency_generator}
%global __provides_exclude perl\\(UNIVERSAL\\)
%else
%define _provides_exceptions perl(UNIVERSAL)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	UNIVERSAL::moniker

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/UNIVERSAL/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Class names in Perl often don't sound great when spoken, or look
good when written in prose. For this reason, we tend to say things
like "customer" or "basket" when we are referring to 
My::Site::User::Customer or My::Site::Shop::Basket. We thought it
would be nice if our classes knew what we would prefer to call
them. This module will add a moniker (and plural_moniker) method
to UNIVERSAL, and so to every class or module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/UNIVERSAL/moniker.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5966 |21cr|perl-UNIVERSAL-require-0.190.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 UNIVERSAL-require
%define upstream_version 0.19

%global __provides_exclude perl\\(UNIVERSAL\\)

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:	Require modules from a variable


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/UNIVERSAL/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Carp)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0

Conflicts:	    perl-UNIVERSAL-exports < 0.03-3mdk

BuildArch:	    noarch

%description
This module creates a universal require() class method that will work with
every Perl module and is secure.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{perl_vendorlib}/UNIVERSAL
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5967 |21cr|perl-Unix-Mknod-0.40.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Unix-Mknod
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Perl extension for mknod, major, minor, and makedev
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Unix/%{upstream_name}-%{upstream_version}.tar.gz
# https://rt.cpan.org/Public/Bug/Display.html?id=124687
Patch0:     Unix-Mknod-0.04-Include-sys-sysmacros.h-on-glibc.patch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test)
BuildRequires: perl-devel

%description
This module allows access to the device routines major()/minor()/makedev()
that may or may not be macros in .h files.

It also allows access to the 'mknod(2)' system call.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
%patch0 -p1

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5968 |21cr|perl-Unix-Processors-2.46.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Unix-Processors
%define upstream_version 2.046

%global __provides_exclude Processors.so

Summary:	Interface to processor (CPU) information

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:        GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source:		https://cpan.metacpan.org/authors/id/W/WS/WSNYDER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0


%description
Perl interface to processor (CPU) information.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc COPYING README Changes META.yml
%{perl_vendorarch}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5969 |21cr|perl-Unix-Syslog-1.100.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define	module	Unix-Syslog
%define upstream_version 1.1

Summary:	Perl interface to the UNIX system logger

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	21
License:	GPLv2
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}/
Source0:	http://www.cpan.org/modules/by-module/Unix/%{module}-%{upstream_version}.tar.gz
Buildrequires:	perl-devel

%description
This module provides access to the system logger available on most
UNIX systems via perl XSUBs (perl's C interface).

%prep
%setup -qn %{module}-%{upstream_version}

%build
CFLAGS="%{optflags}" %__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorarch}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5970 |21cr|perl-UPS-Nut-0.04-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module UPS-Nut
%define pmodule UPS/Nut

Summary: A  perl module to talk to a UPS via NUT upsd

Name:    perl-%module
Version: 0.04
Release: 10
License: GPL or Artistic
Group:   Monitoring
Source:  %module-%{version}.tar.bz2
BuildRequires: perl-devel
BuildArch: noarch

%description
This is an object-oriented interface between Perl and upsd (Network UPS
Tools package).

%prep
%setup -q -n %module-%{version}

%build
RPM_OPT_FLAGS="%{optflags} -Os -s"
perl Makefile.PL INSTALLDIRS=vendor
%make 

%install
%makeinstall_std

%clean

%files
%defattr(-, root, root)
%doc Changes LICENSE README
%{_mandir}/*/*
%{perl_vendorlib}/UPS/Nut.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5971 |21cr|perl-URI-cpan-1.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    URI-cpan
%define upstream_version 1.008

Name:		perl-URI-cpan
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	URLs that refer to things on the CPAN
Group:		Development/Perl
License:	GPL+ or Artistic
URL:		https://metacpan.org/release/URI-cpan
Source0:	https://cpan.metacpan.org/modules/by-module/URI/URI-cpan-%{upstream_version}.tar.gz
BuildArch:	noarch
# Build
BuildRequires:	coreutils
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.78
# Module
BuildRequires:	perl(Carp)
BuildRequires:	perl(CPAN::DistnameInfo)
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(URI::_generic)
BuildRequires:	perl(warnings)
# Test Suite
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More) >= 0.96
BuildRequires:	perl(URI)
# Optional Tests
BuildRequires:	perl(CPAN::Meta) >= 2.120900
BuildRequires:	perl(CPAN::Meta::Prereqs)
# Runtime
Requires:	perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))

%description
This module is for handling URLs that refer to things on the CPAN.

%prep
%setup -q -n URI-cpan-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} -c %{buildroot}

%check
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/URI/
%{_mandir}/man3/URI::cpan.3*
%{_mandir}/man3/URI::cpan::author.3*
%{_mandir}/man3/URI::cpan::dist.3*
%{_mandir}/man3/URI::cpan::distfile.3*
%{_mandir}/man3/URI::cpan::module.3*
%{_mandir}/man3/URI::cpan::package.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5972 |21cr|perl-URI-Encode-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    URI-Encode
%define upstream_version v1.1.1

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Simple percent Encoding/Decoding
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/URI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Encode) >= 2.120.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(version)
BuildArch:     noarch

%description
This modules provides simple URI (Percent) encoding/decoding

The main purpose of this module (at least for me) was to provide an easy
method to encode strings (mainly URLs) into a format which can be pasted
into a plain text emails, and that those links are 'click-able' by the
person reading that email. This can be accomplished by NOT encoding the
reserved characters.

This module can also be useful when using the HTTP::Tiny manpage to ensure
the URLs are properly escaped.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes INSTALL LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5973 |21cr|perl-URI-Fetch-0.150.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    URI-Fetch
%define upstream_version 0.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl Module for Smart URI fetching/caching

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Class::ErrorHandler)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Storable)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)
BuildRequires: perl(base)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)


BuildArch:	noarch

%description
Perl Module for Smart URI fetching/caching.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
SKIP_SAX_INSTALL=1 CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{perl_vendorlib}/URI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5974 |21cr|perl-URI-Find-20160806.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    URI-Find
%define upstream_version 20160806

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Find URIs in arbitrary text

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		https://search.cpan.org/dist/%{upstream_name}/
Source:		https://search.cpan.org/CPAN/authors/id/M/MS/MSCHWERN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)
BuildRequires:	perl(open)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More) > 0.82
BuildArch:	noarch

%description
This module does one thing: Finds URIs and URLs in plain text.
It finds them quickly and it finds them all (or what URI::URL
considers a URI to be.) It only finds URIs which include a scheme
(http:// or the like), for something a bit less strict have
a look at URI::Find::Schemeless.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor destdir=%{buildroot}
./Build

%check
./Build test

%install
./Build install

%files
%doc Changes META.json *META.yml README TODO
%{perl_vendorlib}/URI/*
%{_bindir}/urifind
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5975 |21cr|perl-URI-Find-Simple-1.70.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    URI-Find-Simple
%define upstream_version 1.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A simple interface to URI::Find 

License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI::Find)

BuildArch:	noarch

%description
URI::Find is all very well, but sometimes you just want a list of the links 
in a given piece of text, or you want to change all the urls in some text 
somehow, and don't want to mess with callback interfaces.

This module uses URI::Find, but hides the callback interface, providing two 
functions - one to list all the uris, and one to change all the uris.
%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{perl_vendorlib}/URI/
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5976 |21cr|perl-URI-FromHash-0.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    URI-FromHash
%define upstream_version 0.04

%define debug_package %{nil}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Build a URI from a set of named parameters

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/URI/URI-FromHash-%{upstream_version}.tar.gz

BuildRequires: perl(Params::Validate)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel

%description
This module provides a simple one-subroutine "named parameters" style
interface for creating URIs. Underneath the hood it uses 'URI.pm', though
because of the simplified interface it may not support all possible options
for all types of URIs.

It was created for the common case where you simply want to have a simple
interface for creating syntactically correct URIs from known components
(like a path and query string). Doing this using the native 'URI.pm'
interface is rather tedious, requiring a number of method calls, which is
particularly ugly when done inside a templating system such as Mason or
TT2.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5977 |21cr|perl-URI-Query-0.100.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name URI-Query
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Class providing URI query string manipulation
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/URI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
URI::Query provides simple URI query string manipulation, allowing you
to create and manipulate URI query strings from GET and POST requests in
web applications. This is primarily useful for creating links where you 
wish to preserve some subset of the parameters to the current request,
and potentially add or replace others. Given a query string this is 
doable with regexes, of course, but making sure you get the anchoring 
and escaping right is tedious and error-prone - using this module is 
much simpler.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README ChangeLog
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5978 |21cr|perl-URI-Title-1.902.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    URI-Title
%define upstream_version 1.902
%global _smp_build_ncpus 8

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Module to get the titles of things on the web in a sensible way

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/URI/URI-Title-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(File::Type)
BuildRequires:	perl(MP3::Info)
BuildRequires:	perl(Image::Size)
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(Pod::Coverage::TrustPod)
BuildRequires:	perl(Test::CPAN::Meta)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Parse::CPAN::Meta)

BuildArch:	noarch

%description
Perl module to get the titles of things on the web in a sensible way.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make

%check
# drop fail test
rm t/image.t
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README LICENSE
%{perl_vendorlib}/URI/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5979 |21cr|perl-URI-ws-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name		URI-ws   
%define upstream_version	0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:        3
Summary:        WebSocket support for URI package
License:        GPL+ or Artistic
Group:		Development/Perl
URL:            http://search.cpan.org/dist/URI-ws/
Source0:        http://search.cpan.org/CPAN/authors/id/P/PL/PLICEASE/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:      noarch
BuildRequires:  perl-devel
BuildRequires:  perl(base)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(URI)
BuildRequires:  perl(URI::_server)
BuildRequires:  perl(warnings)


%description
After this module is installed, the URI package provides the same set of
methods for WebSocket URIs as it does for HTTP ones. For secure WebSockets,
see URI::wss.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor 
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5980 |21cr|perl-User-1.900.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    User
%define upstream_version 1.9

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	API for locating user information regardless of OS

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/User/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module allows applications to retrieve per-user characteristics.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/User.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5981 |21cr|perl-User-Identity-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    User-Identity
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	%{upstream_name} CPAN Perl module

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/User-Identity/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MARKOV/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildArch:	noarch

%description
This is the User Identity CPAN Perl module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%{_mandir}/*/*
%{perl_vendorlib}/Mail/*
%{perl_vendorlib}/User/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5982 |21cr|perl-UUID-0.280.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#private-shared-object-provides
%global __provides_exclude UUID.so

%define upstream_name    UUID
%define upstream_version 0.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	UUID - Perl extension for using UUID interfaces as defined in e2fsprogs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/J/JR/JRM/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	pkgconfig(uuid)
BuildRequires:	perl(Devel::CheckLib)


%description
With these 3 routines UUID''s can easily be generated and parsed/un-parsed.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes License META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5983 |21cr|perl-UUID-Random-0.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    UUID-Random
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	UUID::Random - Generate random uuid strings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BW/BWATSON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module generates random uuid strings. It does not satisfy any of
the points listed in RFC 4122 but the default format.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5984 |21cr|perl-UUID-Tiny-1.40.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    UUID-Tiny
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Pure Perl UUID functions

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/UUID/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Pod)

BuildArch:	noarch

%description
UUID::Tiny is a lightweight, low dependency Pure Perl module for UUID
creation and testing. This module provides the creation of version 1 time
based UUIDs (using random multicast MAC addresses), version 3 MD5 based
UUIDs, version 4 random UUIDs, and version 5 SHA-1 based UUIDs.

ATTENTION! UUID::Tiny uses Perl's 'rand()' to create the basic random
numbers, so the created v4 UUIDs are *not* cryptographically strong!

No fancy OO interface, no plethora of different UUID representation formats
and transformations - just string and binary. Conversion, test and time
functions equally accept UUIDs and UUID strings, so don't bother to convert
UUIDs for them!

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/UUID/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5985 |21cr|perl-VCG-0.500.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       VCG
%define upstream_version    0.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Interface to to the vcg graphing tool

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		https://cpan.metacpan.org/authors/id/T/TE/TEEJAY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(IPC::Run)

BuildArch:	noarch

%description
This module provides an interface to to the vcg graphing tool. It
supports a limited selection of options and file formats. The vcg
graphing tool homepage is currently
http://rw4.cs.uni-sb.de/users/sander/html/gsvcg1.html but is being
actively developed elsewhere. 


This module is based on Leon Brocard's GraphViz module, it tries to
provide a similar interface to offer some sense of consistency. 


VCG is now in active development and although Graph::Writer::VCG already
exists, this module provides a similar interface to graphviz and will be
more closely tied into vcg as it becomes more actively developed - see
James Micheal DuPont's announcement at
http://mail.gnome.org/archives/dia-list/2003-February/msg00029.html.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/VCG.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5986 |21cr|perl-VCS-Lite-0.120.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 VCS-Lite
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Minimal upstream_version control system

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/I/IV/IVORW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::Diff)
BuildArch:	noarch

%description
This module provides the functions normally associated 
with a version control system, but without needing or 
implementing a version control system. Applications 
include wikis, document management systems and configuration 
management.

It makes use of the module Algorithm::Diff. It provides the 
facility for basic diffing, patching and merging.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

for file in LICENSE README; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_bindir}/*
%{perl_vendorlib}/VCS
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5987 |21cr|perl-Version-Next-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Version-Next
%define upstream_version 1.000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Increment module version numbers simply and correctly

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module provides a simple, correct way to increment a Perl module
version number. It does not attempt to guess what the original version
number author intended, it simply increments in the smallest possible
fashion. Decimals are incremented like an odometer. Dotted decimals are
incremented piecewise and presented in a standardized way.

If more complex version manipulation is necessary, you may wish to consider
the Perl::Version manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml META.json README CONTRIBUTING*
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5988 |21cr|perl-Version-Requirements-0.101.23-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Version-Requirements
%define upstream_version 0.101023

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A set of version requirements for a CPAN dist

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(version)

BuildArch:	noarch

%description
A Version::Requirements object models a set of version constraints like
those specified in the _META.yml_ or _META.json_ files in CPAN
distributions. It can be built up by adding more and more constraints, and
it will reduce them to the simplest representation.

Logically impossible constraints will be identified immediately by thrown
exceptions.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5989 |21cr|perl-VFSsimple-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       VFSsimple
%define upstream_version    0.03

Summary:	A library to magically access to file w/o carry the method

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	WTFPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://search.cpan.org/CPAN/authors/id/N/NA/NANARDON/VFSsimple/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)

BuildArch: noarch

%description
A library to magically access to file w/o carry the method

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%doc META.yml
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5990 |21cr|perl-VFSsimple-Drv-File-0.03-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	VFSsimple-Drv-File

Summary:	A VFSsimple implementation over local files

Name:		perl-%{module}
Version:	0.03
Release:	11
License:	WTFPL
Group:		Development/Perl
URL:		http://nanardon.zarb.org/darcsweb/darcsweb.cgi?r=VFSsimple;a=summary
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/DBI/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)
BuildRequires:	perl(VFSsimple)
BuildArch:	noarch

%description
This module provide access method for VFSsimple module to access to files
on local filesystem.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5991 |21cr|perl-VFSsimple-Drv-Ftp-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       VFSsimple-Drv-Ftp
%define upstream_version    0.03

Summary:	A VFSsimple implementation over ftp protocol

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	WTFPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://search.cpan.org/CPAN/authors/id/N/NA/NANARDON/VFSsimple/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)
BuildRequires:	perl(Net::FTP)
BuildRequires:	perl(VFSsimple)

BuildArch:	noarch

%description
This module provide access method for VFSsimple module to access to file
located on an ftp server.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%doc META.yml
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5992 |21cr|perl-VFSsimple-Drv-Http-0.03-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	VFSsimple-Drv-Http

Summary:	A VFSsimple implementation over Http protocol

Name:		perl-%{module}
Version:	0.03
Release:	11
License:	WTFPL
Group:		Development/Perl
URL:		http://nanardon.zarb.org/darcsweb/darcsweb.cgi?r=VFSsimple;a=summary
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/DBI/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)
BuildRequires:	perl(Net::HTTP)
BuildRequires:	perl(VFSsimple)
BuildArch:	noarch

%description
This module provide access method for VFSsimple module to access to file
on http server.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5993 |21cr|perl-VFSsimple-Drv-Iso-0.03-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	VFSsimple-Drv-Iso

Summary:	A VFSsimple implementation over ISO9660 fs

Name:		perl-%{module}
Version:	0.03
Release:	11
License:	WTFPL
Group:		Development/Perl
URL:		http://nanardon.zarb.org/darcsweb/darcsweb.cgi?r=VFSsimple;a=summary
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/DBI/%{module}-%{version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)
BuildRequires:	perl(Device::Cdio::ISO9660)
BuildRequires:	perl(VFSsimple)
BuildArch:	noarch

%description
This module provide access method for VFSsimple module to access to files
inside ISO9660 CD image.

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5994 |21cr|perl-VFSsimple-Drv-Rsync-0.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       VFSsimple-Drv-Rsync
%define upstream_version    0.03

Summary:	A VFSsimple implementation over rsync protocol
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	WTFPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://search.cpan.org/CPAN/authors/id/N/NA/NANARDON/VFSsimple/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(URI)
BuildRequires:	perl(VFSsimple)
BuildRequires:	rsync

BuildArch:	noarch


%description
This module provide access method for VFSsimple module to access to file
located on rsync server.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make CFLAGS="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%doc META.yml
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5995 |21cr|perl-Video-Frequencies-0.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version	0.03
%define module	Video-Frequencies

Name:		perl-%{module}
Summary:	Perl interface to the Video4linux tuner frequencies

Group:		Development/Perl
Version:	%perl_convert_version %{upstream_version}
Release:       	5
License:	GPL or Artistic
URL:		http://ivtvdriver.org/
Source0:	http://dl.ivtvdriver.org/supporting-tools/Video-Frequencies-%{upstream_version}.tar.gz
BuildArch:	noarch
#Requires: perl, perl-base
BuildRequires:	perl-devel

%description
This package provides a table of hashes that represent all the current
frequency mappings that are used by Video4Linux programs.

Do perldoc Video::Frequencies to get complete instructions, etc.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc README COPYING Changes
%{perl_vendorlib}/Video/Frequencies.pm
%{_mandir}/man3/Video::Frequencies.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5996 |21cr|perl-Video-ivtv-0.130.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version 0.13
%define module	Video-ivtv

Name:		perl-%{module}
Summary:	Perl modules for ivtv support

Group:		Development/Perl
Version:	%perl_convert_version %{upstream_version}
Release:    7
License:	GPL or Artistic
URL:		http://ivtvdriver.org/
Source0:	http://dl.ivtvdriver.org/supporting-tools/Video-ivtv-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

%description
Video::ivtv is designed to be a quick hack at making the record_ivtv.pl
script not have to depend on the test_ioctl program included with the ivtv
utils.  By moving to have the things that have proven difficult to do purely
in perl to C where they currently are being done, I can concentrate on
improving the code rather than hitting my head against the wall trying to
do code cleanups.  ;)

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make
#make test

%install
%makeinstall_std

%files
%doc README MANIFEST Changes
%{perl_vendorarch}/auto/Video
%{perl_vendorarch}/Video/
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5997 |21cr|perl-Vim-Tag-1.110.690-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Vim-Tag
%define upstream_version 1.110690

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Generate perl tags for vim

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Vim/Vim-Tag-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Class::Accessor::Constructor)
BuildRequires:	perl(Class::Accessor::Installer)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(File::Find::Upwards)
BuildRequires:	perl(Getopt::Attribute)
BuildRequires:	perl(Getopt::Inherited)
BuildRequires:	perl(Hash::Rename)
BuildRequires:	perl(Test::Compile)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(URI::Escape)

BuildArch:	noarch

%description
Manage tags for perl code in vim, with ideas on integrating tags with the
bash programmable completion project. See the synopsis.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*
%{_bindir}/ptag*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5998 |21cr|perl-Want-0.290.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Want
%define upstream_version 0.29
%global __provides_exclude Want.so

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	A generalisation of wantarray
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RO/ROBIN/Want-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0


%description
This module generalises the mechanism of the wantarray function, allowing a
function to determine in some detail how its return value is going to be
immediately used.

%prep
%setup -qn %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README TODO META.yml
%{perl_vendorarch}/Want.pm
%{perl_vendorarch}/auto/Want
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 5999 |21cr|perl-WDDX-1.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WDDX
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	WDDX.pm - Module for reading and writing WDDX packets

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/P/PE/PETDANCE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)
BuildArch:	noarch

%description
This module provides a perl interface to WDDX. The latest version
of this module as well as additional information can be found at
http://www.scripted.com/wddx/. For more information about WDDX
please visit http://www.wddx.org/

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%dir %{perl_vendorlib}/WDDX
%{perl_vendorlib}/WDDX/*
%{perl_vendorlib}/WDDX.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6000 |21cr|perl-WebFetch-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WebFetch
%define upstream_version 0.14.0

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl module to download and save information from the Web

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/I/IK/IKLUFT/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Date::Calc)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(LWP)
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(HTML::LinkExtor)
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Test::Exception)
# Just to make sure it exists
BuildRequires:	perl(Locale::Codes)
BuildRequires:	perl(XML::Atom)
BuildRequires:	perl(XML::RSS)
BuildRequires:	perl(Template)


BuildArch:	noarch

Requires:	perl(Locale::Codes)
Requires:	perl(Date::Calc)
Requires:	perl(XML::Parser)

%description
WebFetch is a Perl module to download and save information from the Web, and
to display on the Web.  It will download from sites such as CNet, CNN,
Freshmeat, Slashdot, LinuxToday, Yahoo, and more.  It can even export your
site's news for other sites to include in their web pages.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes META.yml README TODO
%{perl_vendorlib}/WebFetch*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6001 |21cr|perl-Web-Scraper-0.380.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Web-Scraper
%define upstream_version 0.38

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Drop-in replacement for Web::Scraper to use LibXML
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Web/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(base)
BuildRequires:  perl(Module::Build::Tiny)
BuildRequires:  perl(Carp)
BuildRequires:  perl(HTML::Entities)
BuildRequires:  perl(HTML::Selector::XPath)
BuildRequires:  perl(HTML::Tagset)
BuildRequires:  perl(HTML::TreeBuilder)
BuildRequires:  perl(HTML::TreeBuilder::XPath)
BuildRequires:  perl(HTML::TreeBuilder::LibXML)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(LWP)
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::Base)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(UNIVERSAL::require)
BuildRequires:  perl(URI)
BuildRequires:  perl(warnings)
BuildRequires:  perl(XML::XPathEngine) >= 0.08
BuildRequires:  perl(YAML)
BuildRequires:  perl(strict)
BuildRequires:  perl(TAP::Harness::Env)
BuildRequires:  perl-devel

Requires:       perl(LWP::UserAgent)

BuildArch:      noarch

%description
Web::Scraper is a web scraper toolkit, inspired by Ruby's equivalent
Scrapi. It provides a DSL-ish interface for traversing HTML documents and
returning a neatly arranged Perl data structure.

The _scraper_ and _process_ blocks provide a method to define what segments
of a document to extract. It understands HTML and CSS Selectors as well as
XPath expressions.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

# lack in install
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 bin/scraper %{buildroot}%{_bindir}

%files
%doc Changes LICENSE META.json META.yml README
%{_bindir}/scraper
%{perl_vendorlib}/Web/Scraper.pm
%{perl_vendorlib}/Web/Scraper/*.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6002 |21cr|perl-WebService-FreeDB-0.790.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 WebService-FreeDB
%define upstream_version 0.79

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	FreeDB search by keyword	


License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WebService/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP::UserAgent)
BuildArch:	noarch

%description
WebService-FreeDB is a perl module for retrieving entries from FreeDB 
by searching for keywords (artist,track,album,rest) 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
%make

%check
# make test

%install
%makeinstall_std 

%files
%doc README Changes example/cdsearch.pl
%{_mandir}/man3/*
%{perl_vendorlib}/WebService

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6003 |21cr|perl-WebService-MusicBrainz-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name WebService-MusicBrainz
%define upstream_version 1.0.6

Summary:	Search the MusicBrainz database through their web service
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WebService/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildRequires:	perl(XML::LibXML)
BuildArch:	noarch

%description
This module will search the MusicBrainz database through their web service
and return objects with the found data.

%files
%doc Changes META.yml README.md
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Some tests fail
#make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6004 |21cr|perl-WebService-Solr-0.440.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WebService-Solr
%define upstream_version 0.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Module to interface with the Solr (Lucene) webservice

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/WebService/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Moo)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Data::Page)
BuildRequires:	perl(Data::Pageset)
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Types::Standard)
BuildRequires:	perl(Test::Mock::LWP)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(XML::Simple)
BuildRequires:	perl(XML::Easy::Element)
BuildArch:	noarch

%description
WebService::Solr is a client library for Apache Lucene's Solr; an
enterprise-grade indexing and searching platform.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6005 |21cr|perl-WebService-Validator-CSS-W3C-0.300.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WebService-Validator-CSS-W3C
%define upstream_version 0.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Interface to the W3C CSS Validator

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WebService/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(SOAP::Lite)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::QueryParam)
BuildArch:	noarch

%description
This module is an interface to the W3C CSS Validation online service the
http://jigsaw.w3.org/css-validator/ manpage, based on its SOAP 1.2 support.
It helps to find errors in Cascading Style Sheets.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6006 |21cr|perl-WebService-Validator-HTML-W3C-0.280.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WebService-Validator-HTML-W3C
%define upstream_version 0.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Warning messages from the W3Cs online Validator


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WebService/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(LWP)
BuildRequires:	perl(XML::XPath)
BuildArch:	noarch

%description
WebService::Validator::HTML::W3C provides access to the W3C's online Markup
validator. As well as reporting on whether a page is valid it also provides
access to a detailed list of the errors and where in the validated document
they occur.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6007 |21cr|perl-WWW-Babelfish-0.160.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 WWW-Babelfish
%define	upstream_version 0.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl extension for translation via Babelfish or Google

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(HTML::TokeParser)
BuildRequires:	perl(IO::String)
BuildArch:	noarch

%description
Perl interface to the WWW babelfish translation server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOD
n
EOD
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/WWW
%{perl_vendorlib}/auto/WWW
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6008 |21cr|perl-WWW-Form-UrlEncoded-0.260.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Form-UrlEncoded
%define upstream_version 0.26

Name:           perl-WWW-Form-UrlEncoded
Version:        %perl_convert_version %{upstream_version}
Release:        2
Summary:        Parser and builder for application/x-www-form-urlencoded
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/WWW-Form-UrlEncoded
Source0:        https://cpan.metacpan.org/authors/id/K/KA/KAZEBURO/WWW-Form-UrlEncoded-%{upstream_version}.tar.gz

BuildArch:      noarch

BuildRequires:  perl-generators
BuildRequires:  perl-interpreter >= 0:5.008001

BuildRequires:  perl(Exporter)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(File::Copy)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(JSON::PP) >= 2
BuildRequires:  perl(Module::Build)
BuildRequires:  perl(Test::More) >= 0.98

BuildRequires:  perl(base)
BuildRequires:  perl(bytes)
BuildRequires:  perl(strict)
BuildRequires:  perl(utf8)
BuildRequires:  perl(warnings)

Requires:       perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# N/A in Fedora
# Suggests: perl(WWW::Form::UrlEncoded::XS)

%description
WWW::Form::UrlEncoded provides application/x-www-form-urlencoded parser and
builder. This module aims to have compatibility with other CPAN modules
like HTTP::Body's urlencoded parser.
%files
%doc Changes README.md
%license LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*

#---------------------------------------------------------------
%prep
%setup -q -n WWW-Form-UrlEncoded-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
BREAK_BACKWARD_COMPAT=1 ./Build

%install
BREAK_BACKWARD_COMPAT=1 ./Build install --destdir=%{buildroot} --create_packlist=0
%{_fixperms} %{buildroot}/*

%check
BREAK_BACKWARD_COMPAT=1 ./Build test



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6009 |21cr|perl-WWW-HostipInfo-0.140.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 WWW-HostipInfo
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Get a country and city information from ip address

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/modules/by-module/WWW/WWW-HostipInfo-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP::UserAgent)
BuildArch:	noarch

%description
Get a country and city information from ip address via www.hostip.info API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Of course network test don't work on cluster...
# %%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/WWW
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6010 |21cr|perl-WWW-Mechanize-Cached-1.560.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       WWW-Mechanize-Cached
%define upstream_version 1.56

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Cache response to be polite
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Cache::FileCache)
BuildRequires: perl(Carp)
BuildRequires: perl(Cache::BaseCache)
BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Data::Dump)
BuildRequires: perl(Devel::SimpleTrace)
BuildRequires: perl(English)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Spec)
BuildRequires: perl(Find::Lib)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(LWP::ConsoleLogger::Easy)
BuildRequires: perl(Module::Build) >= 0.360.100
BuildRequires: perl(Moose)
BuildRequires: perl(Path::Class)
BuildRequires: perl(Storable) >= 2.210.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::RequiresInternet)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Test::Needs)
BuildRequires: perl(WWW::Mechanize)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(vars)
BuildRequires: perl(warnings)
BuildRequires: perl(Moo)
BuildRequires: perl(strictures)
BuildRequires: perl(MooX::Types::MooseLike::Base)
BuildRequires: perl(Test::Warn)
BuildRequires: perl(Term::Size::Perl)
BuildRequires: perl(CHI)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(Mozilla::CA)

BuildArch:  noarch

%description
Uses the Cache::Cache hierarchy to implement a caching Mech. This
lets one perform repeated requests without hammering a server
impolitely.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc AUTHORS Changes LICENSE META.json README examples
%{perl_vendorlib}/WWW/Mechanize/Cached.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6011 |21cr|perl-WWW-Mechanize-CGI-0.300.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Mechanize-CGI
%define upstream_version 0.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Use WWW::Mechanize with CGI applications

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(HTTP::Request::AsCGI)
BuildRequires:	perl(IO::Pipe)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(WWW::Mechanize)

BuildArch:	noarch
Requires:	perl(Class::Accessor::Fast)

%description
Provides a convenient way of using CGI applications with the WWW::Mechanize, 
without setting a webrowser.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/WWW

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6012 |21cr|perl-WWW-Mechanize-FormFiller-0.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Mechanize-FormFiller
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	WWW::Mechanize::FormFiller - framework to automate HTML forms

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/WWW/WWW-Mechanize-FormFiller-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(Data::Random)
BuildRequires:	perl(HTML::Form)
BuildRequires:	perl(HTML::TokeParser)
BuildRequires:	perl(Test::MockObject)
BuildRequires:	perl(Test::Inline)
BuildArch:	noarch

%description
WWW::Mechanize::FormFiller and its submodules are useful to automate
web forms. The FormFiller object is filled with a set of rules how to
fill out HTML form field and then let loose on a HTML form. It fills
in the fields according to the preset rules.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# pod2test is gone in perl-Test-Inline
perl -pi -e "s|pod2test|/bin/true|g" Makefile.PL

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%dir %{perl_vendorlib}/WWW/Mechanize/FormFiller
%dir %{perl_vendorlib}/WWW/Mechanize/FormFiller/Value
%dir %{perl_vendorlib}/WWW/Mechanize/FormFiller/Value/Random
%{perl_vendorlib}/WWW/Mechanize/FormFiller.pm
%{perl_vendorlib}/WWW/Mechanize/FormFiller/*.pm
%{perl_vendorlib}/WWW/Mechanize/FormFiller/Value/*.pm
%{perl_vendorlib}/WWW/Mechanize/FormFiller/Value/Random/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6013 |21cr|perl-WWW-Mechanize-GZip-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Mechanize-GZip
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Tries to fetch webpages with gzip-compression

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(WWW::Mechanize)
BuildArch:	noarch

%description
The the WWW::Mechanize::GZip manpage module tries to fetch a URL by
requesting gzip-compression from the webserver.

If the response contains a header with 'Content-Encoding: gzip', it
decompresses the response in order to get the original (uncompressed)
content.

This module will help to reduce bandwith fetching webpages, if supported by
the webeserver. If the webserver does not support gzip-compression, no
decompression will be made.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/WWW/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6014 |21cr|perl-WWW-Mechanize-Shell-0.590.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Mechanize-Shell
%define upstream_version 0.59

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	An interactive shell for WWW::Mechanize

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(HTML::Display)
BuildRequires:	perl(HTTP::Daemon)
BuildRequires:	perl(Hook::LexWrap)
BuildRequires:	perl(HTML::TokeParser::Simple)
BuildRequires:	perl(LWP)
BuildRequires:	perl(HTTP::Request::AsCGI)
BuildRequires:	perl(Term::Shell)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::HTTP::LocalServer)
BuildRequires:	perl(URI::URL)
BuildRequires:	perl(WWW::Mechanize::FormFiller)
BuildRequires:	perl(WWW::Mechanize)
BuildRequires:	perl(parent)
BuildRequires:	perl(CGI)

BuildArch:	noarch

%description
This module implements a www-like shell above WWW::Mechanize
and also has the capability to output crude Perl code that recreates
the recorded session. Its main use is as an interactive starting point
for automating a session through WWW::Mechanize.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# build on abf failed
#make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/WWW/Mechanize/Shell.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6015 |21cr|perl-WWW-Mechanize-Sleepy-0.700.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Mechanize-Sleepy
%define upstream_version 0.7

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	WWW::Mechanize::Sleepy - A Sleepy Mechanize Agent

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Sometimes when testing the behavior of a webserver it is important
to be able to space out your requests in order to simulate a
person reading, thinking (or sleeping) at the keyboard.

WWW::Mechanize::Sleepy subclasses WWW::Mechanize to provide pauses
between your server requests. Use it just like you would use
WWW::Mechanize.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# make test don't work...
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/WWW/Mechanize/Sleepy.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6016 |21cr|perl-WWW-Mechanize-TreeBuilder-1.200.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Mechanize-TreeBuilder
%define upstream_version 1.20000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Combine WWW::Mechanize and HTML::TreeBuilder
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(HTML::TreeBuilder)
BuildRequires:	perl(Moose)
BuildRequires:	perl(MooseX::Role::Parameterized)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(aliased)
BuildRequires:	perl(HTML::TreeBuilder::XPath)

BuildArch:	noarch
Requires:	perl(HTML::TreeBuilder)

%description
This module combines the WWW::Mechanize manpage and the HTML::TreeBuilder
manpage. Why? Because I've seen too much code like the following:

 like($mech->content, qr{<p>some text</p>}, "Found the right tag");

Which is just all flavours of wrong - its akin to processing XML with
regexps.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6017 |21cr|perl-WWW-Mediawiki-Client-0.310.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Mediawiki-Client
%define upstream_version 0.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Simple cvs-like interface for Mediawiki driven WikiWiki websites

License:	Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(HTML::TokeParser)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(VCS::Lite)
BuildRequires:	perl(XML::LibXML)
BuildArch:	noarch

%description
WWW::Mediawiki::Client provides a very simple cvs-like interface for
Mediawiki driven WikiWiki websites, such as http://www.wikitravel.org or
http://www.wikipedia.org.  The interface mimics the two most basic cvs
commands: update and commit with similarly named methods.  Each of these has a
shorter alias, as in cvs.  Verbosity is controled through an output_level
accessor method.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make 

%check
make test

%install
%makeinstall_std

%files 
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/WWW

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6018 |21cr|perl-WWW-Search-2.519.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Search
%define upstream_version 2.519

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Virtual base class for WWW searches

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/WWW-Search-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MM_Unix)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Capture::Stderr)
BuildRequires:	perl(Test::File)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Email::MIME)
BuildRequires:	perl(Email::MIME::Creator)
BuildRequires:	perl(Email::Send)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Bit::Vector)
BuildRequires:	perl(CGI)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Date::Manip)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTML::TreeBuilder)
BuildRequires:	perl(LWP::MemberMixin)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Net::Domain)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(URI)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(User)

BuildArch:	noarch

%description
This class is the parent for all access methods supported by the WWW::Search
library. This library implements a Perl API to web-based search engines.

See README for a list of search engines currently supported, and for a lot of
interesting high-level information about this distribution.

Search results can be limited, and there is a pause between each request to
avoid overloading either the client or the server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 
for file in `find lib -type f` Changes README META.yml; do
    chmod 644 $file
done
perl -pi -e 's|/usr/local/bin/perl|/usr/bin/perl|' lib/WWW/Search/*.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
export PATH=$PATH:%{buildroot}%{_bindir}
make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_bindir}/*
%{perl_vendorlib}/WWW
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6019 |21cr|perl-WWW-Shorten-3.94.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Shorten
%define upstream_version 3.094

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Perl interface to makeashorterlink.com
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Config::Auto)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(LWP) >= 5.750.0
BuildRequires:	perl(LWP::UserAgent) >= 2.23.0
BuildRequires:	perl(Module::Build) >= 0.380.0
BuildRequires:	perl(Test::More) >= 0.470.0
BuildRequires:	perl(URI) >= 1.270.0
BuildRequires:	perl(Try::Tiny)
BuildArch:	noarch

%description
The function 'makeashorterlink' will call the relevant web site passing it
your long URL and will return the shorter version.

The function 'makealongerlink' does the reverse. 'makealongerlink' will
accept as an argument either the full shortened URL or just the identifier.

If anything goes wrong, then either function will return 'undef'.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

# remove executable bit
find . -type f -exec chmod -x {} \;

iconv --from=ISO-8859-1 --to=UTF-8 LICENSE > LICENSE.conv && \
  touch -r LICENSE LICENSE.conv && mv -f LICENSE.conv LICENSE

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README* Changes META.yml META.json LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/shorten
%{_mandir}/man1/shorten.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6020 |21cr|perl-WWW-Shorten-Simple-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Shorten-Simple
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Factory wrapper around WWW::Shorten to avoid imports

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(LWP)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(URI)
BuildRequires:	perl(Module::Build::Tiny)
BuildArch:	noarch

%description
WWW::Shorten::Simple is a wrapper (factory) around WWW::Shorten
so that you can create an object representing each URL shortening
service, instead of importing makeashorterlink function into your
namespace.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6021 |21cr|perl-WWW-Wikipedia-2.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-Wikipedia
%define upstream_version 2.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Automated interface to the Wikipedia
License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/WWW-Wikipedia-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-libwww-perl
BuildRequires:	perl(CGI)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Text::Autoformat)
BuildArch:	noarch

%description
WWW::Wikipedia provides an automated interface to the Wikipedia 
http://www.wikipedia.org, which is a free, collaborative, online 
encyclopedia. This module allows you to search for a topic and return the 
resulting entry. It also gives you access to related topics which are also 
available via the Wikipedia for that entry.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# need internet connection
#make test

%install
%makeinstall_std

%files
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/WWW

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6022 |21cr|perl-Wx-0.993.200-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Wx
%define upstream_version 0.9932

%define __provides_exclude Wx.so|MDI.so|FS.so|IPC.so|Print.so|Media.so|DocView.so|Help.so|RichText.so|XRC.so|Socket.so|DND.so|Html.so|AUI.so|DateTime.so|Grid.so|Calendar.so|PerlTest.so|STC.so
%define __requires_exclude perl\\(Wx::PlValidator\\)

%bcond_with check

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Interface to the wxWidgets GUI toolkit

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz
Source1:	%{name}.rpmlintrc
# Work around BOM_UTF8 clash between wxGTK and Perl. Should be fixed in newer
# wxGTK, CPAN RT#121464, <http://trac.wxwidgets.org/ticket/13599>.
Patch0:		Wx-0.9932-Undefine-BOM_UTF8.patch
Patch1:		gtk3.patch
BuildRequires:	perl(Alien::wxWidgets)
BuildRequires:	perl(ExtUtils::ParseXS)
BuildRequires:	perl(ExtUtils::XSpp)
BuildRequires:	wxgtku3.0-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(YAML)
### for tests
%if %{with check}
BuildRequires:  x11-server-xvfb
%define         X_display         ":99"
%endif

%description
The Wx module is a wrapper for the wxWidgets (formerly known as wxWindows)
GUI toolkit.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

chmod -c a-x README.txt docs/todo.txt samples/*/*.pl
find . -type f -name "*.pm" -o -name "*.h" -o -name "*.cpp" |
    xargs chmod -c a-x


%build
%{__perl} Makefile.PL  --wx-unicode \
  --wx-version=`wx-config --version | cut -d . -f 1-2` \
  --wx-toolkit=gtk \
  INSTALLDIRS=vendor \
  OPTIMIZE="$RPM_OPT_FLAGS -Wno-unused-variable -Wno-unused-but-set-variable -Wno-unused-local-typedefs"

%make

%check
### This will need X server up and running. Symbianflo ###
%if %{with check}
export DISPLAY=%{X_display}
Xvfb %{X_display} -screen 0 1024x768x24 -extension RANDR & >& Xvfb.log &
trap "kill $! || true" EXIT
sleep 10
make test
%endif

%install
%makeinstall_std

%files
%doc Changes README.txt META.json META.yml samples/
%{perl_vendorarch}/Wx.pm
%{perl_vendorarch}/Wx
%{perl_vendorarch}/auto/Wx
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6023 |21cr|perl-Wx-Perl-DataWalker-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Wx-Perl-DataWalker
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl extension for blah blah blah

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Wx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(Devel::Size)
BuildRequires:	perl(Wx)
BuildRequires:	perl(YAML::XS)
BuildArch:	noarch

%description
'Wx::Perl::DataWalker' implements a 'Wx::Frame' subclass that shows a
relatively simple Perl data structure browser. After opening such a frame
and supplying it with a reference to an essentially arbitrary data
structure, you can visually browse it by double-clicking references.

So far, there is no tree view but only a display of the current level of
the data structure. You can traverse back up the structure with a _back_
button.

Optionally, 'Wx::Perl::DataWalker' displays the (approximate!) size of the
data structure using 'Devel::Size'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# requires GTK display
#make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6024 |21cr|perl-X10-0.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    X10
%define upstream_version 0.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    No summary found
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/X10/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Astro::SunTime)
BuildRequires: perl(Device::SerialPort)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Basename)
BuildRequires: perl(FileHandle)
BuildRequires: perl(IO::Select)
BuildRequires: perl(IO::Socket)
BuildRequires: perl(POSIX)
BuildRequires: perl(Storable)
BuildRequires: perl(Time::ParseDate)
BuildArch: noarch

%description
no description found

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

#fix shebangs
sed -i -e 's|/usr/local/bin/perl|%{_bindir}/perl|g' x10*

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README TODO Changes
%{_bindir}/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6025 |21cr|perl-X11-GUITest-0.280.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name X11-GUITest
%define upstream_version 0.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Provides GUI testing/interaction facilities
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/X11/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		X11-GUITest-0.28-debug.patch

BuildRequires:	perl-devel
BuildRequires:	pkgconfig(xextproto)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xi)

%description
This Perl package is intended to facilitate the testing of GUI applications
by means of user emulation. It can be used to test/interact with GUI
applications; which have been built upon the X library or toolkits (i.e.,
GTK+, Xt, Qt, Motif, etc.) that "wrap" the X library's functionality.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%apply_patches

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
if [ x${DISPLAY} != 'x' ]; then 
    make test
else
    exit 0
fi

%install
%makeinstall_std

%files
%doc docs/*
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6026 |21cr|perl-X11-Protocol-0.560.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    X11-Protocol
%define upstream_version 0.56

Summary:	Perl module for the X Window System Protocol
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/X11/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a module for the X Window System Protocol.

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/X11

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS="vendor"
%make

%install
%makeinstall_std

%check
# test needs a running X server

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6027 |21cr|perl-X11-Protocol-Other-31.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    X11-Protocol-Other
%define upstream_version 31

Summary:	Video modes perl module
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPLv1+ or Artistic
Group:		Development/Perl
Url:		http://metacpan.org/release/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/X11/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test)
BuildRequires:	perl(X11::Protocol)
BuildArch:	noarch

%description
This module encodes and decodes X11 ICCCM "compound text" strings.

    x11-compound-text

Compound text is found in window properties of type 'COMPOUND_TEXT'. It's
not usual to use it outside that context. Compound text consists of
ISO-2022 style escape sequences switching among various basic charsets,
including the ISO-8859 series, JIS, KSC, and GB.

%files
%doc COPYING Changes META.json META.yml SIGNATURE
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6028 |21cr|perl-XML-Atom-0.430.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Atom
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl Module for Processing Atom Feeds

License:	GPLv1+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/XML/XML-Atom-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(URI)
BuildRequires:	perl(Class::Data::Inheritable)
BuildRequires:	perl(XML::LibXML)
BuildRequires:	perl(XML::XPath)
BuildRequires:	perl(LWP)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(HTML::TokeParser)

BuildArch:	noarch
Requires:	perl(XML::LibXML)

%description
Perl Module for processing Atoms feed and that provides access to the Atom
API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL --installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes README
%{perl_vendorlib}/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6029 |21cr|perl-XML-Atom-SimpleFeed-0.905.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Atom-SimpleFeed
%define upstream_version 0.905

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	No-fuss generation of Atom syndication feeds

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Class::Date)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Time::Moment)
BuildRequires:	perl(Time::Piece)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Carp)
BuildRequires:	perl(Encode)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)


BuildArch:	noarch

%description
This module provides a minimal API for generating Atom syndication feeds
quickly and easily. It supports all aspects of the Atom format, but has no
provisions for generating feeds with extension elements.

You can supply strings for most things, and the module will provide useful
defaults. When you want more control, you can provide data structures, as
documented, to specify more particulars.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# Cannot determine local time zone on abf
# if somebody can please do it.Sflo
rm -fr t/date_construct.t
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml META.json LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/XML/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6030 |21cr|perl-XML-Catalog-1.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name XML-Catalog
%define upstream_version 1.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Resolve public identifiers and remap system identifiers
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Cwd)
BuildRequires: perl(LWP::Simple)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(URI::URL)
BuildRequires: perl(XML::Parser)
BuildArch:  noarch

%description
Resolve public identifiers and remap system identifiers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json *META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6031 |21cr|perl-XML-Checker-0.130.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Checker
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	XML::Checker - a Perl module for validating XML

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TJ/TJMATHER/%{upstream_name}-%{upstream_version}.tar.bz2
Patch0:		XML-Checker-0.13-fix_carp_1.25_output.patch

BuildRequires:	perl-devel
BuildRequires:	perl-XML-Parser >= 2.30
BuildRequires:	perl-XML-DOM >= 1.29
BuildRequires:	perl-libxml-perl >= 0.07
BuildArch:	noarch
Provides:	perl-libxml-enno = %{version}-%{release}

%description
XML::Checker can be used in different ways to validate XML. See the
manual pages of XML::Checker::Parser and XML::DOM::ValParser for more
information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p0 -b .carp

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML/Checker*
%{perl_vendorlib}/XML/DOM/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6032 |21cr|perl-XML-DOM-XPath-0.140.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-DOM-XPath
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	XPath support to XML::DOM, using XML::XPath engine

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MI/MIROD/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(XML::XPath)
BuildRequires:	perl(XML::XPathEngine)
BuildRequires:	perl(XML::DOM)
BuildRequires:	perl(Test)
BuildArch:	noarch
Provides:	perl-libxml-enno = %{version}-%{release}

%description
XML::DOM::XPath allows you to use XML::XPath methods to query a DOM. This is
often much easier than relying only on getElementsByTagName.

It lets you use all of the XML::DOM methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#make test

%files
%{perl_vendorlib}/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6033 |21cr|perl-XML-Driver-HTML-0.60.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-Driver-HTML
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	SAX Driver for non wellformed HTML

License:	GPL	
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
XML::Driver::HTML is a SAX Driver for HTML. There is no need
for the HTML input to be weel formed, as XML::Driver::HTML
is generating its SAX events by walking a HTML::TreeBuilder object.
The simplest kind of use, is a filter from HTML to XHTML
using XML::Handler::YAWriter as a SAX Handler.

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make


%install
install -d %{buildroot}%{perl_archlib}
%makeinstall_std
rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc README MANIFEST 
%{perl_vendorlib}/XML/Driver/HTML.pm
%{_mandir}/man1/html2xhtml.*
%{_mandir}/man3/XML::Driver::HTML.*
%{_bindir}/html2xhtml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6034 |21cr|perl-XML-DT-0.690.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-DT
%define upstream_version 0.69

%define req_xml_libxml_version %perl_convert_version 2.0000

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A perl XML down translate module

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(LWP::Simple)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(XML::LibXML) >= %{req_xml_libxml_version}
BuildRequires:	perl(XML::DTDParser)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Pod)

Requires: 	perl(XML::LibXML) >= %{req_xml_libxml_version}

BuildArch:	noarch

%description
The XML::DT module is a perl module that does XML down translation.
Based on XML::LibXML, it is designed to perform simple and
compact translation/processing of XML documents.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
pushd examples
for file in ex3.xml ex.xml arq.xml 10nov.sgm; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
chmod 755 examples/*.pl
%{__perl} Makefile.PL INSTALLDIRS=vendor <<EOF
XML::LibXML
EOF
%make

%check
make test

%install
%makeinstall_std
chmod -x examples/ex11.5.pl

%files
%doc README Changes META.json META.yml examples
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6035 |21cr|perl-XML-DTD-0.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-DTD
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Parse and process an XML DTD
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Error)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::ShareDir::Install)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(LWP::Simple)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI::file)
BuildArch:     noarch

%description
  XML::DTD is a Perl module for parsing XML DTDs. The following
  methods are provided.

* *new*

    $dtd = new XML::DTD [ ($val) ];

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes GPL README
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/dtdto
%{_mandir}/man1/dtdto.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6036 |21cr|perl-XML-DTDParser-2.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-DTDParser
%define upstream_version 2.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Quick and dirty DTD parser

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This perl module parses a DTD file and creates a data structure containing info
about all tags, their allowed parameters, children, parents, optionality etc.
etc. etc.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6037 |21cr|perl-XML-Dumper-0.810.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 XML-Dumper
%define	upstream_version 0.81

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:	Perl module for dumping Perl objects from/to XML

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(Test)
BuildRequires:	perl(XML::Parser)
BuildArch: 	noarch

%description
Perl module for dumping Perl objects from/to XML.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6038 |21cr|perl-XML-Easy-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Easy
%define upstream_version 0.011

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Basic manipulation of XML data nodes

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/XML/XML-Easy-%{upstream_version}.tar.gz
Patch0:     syntax_main.t.diff
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
#BuildRequires: perl(IO::File)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Params::Classify)
#BuildRequires: perl(Scalar::Util)
#BuildRequires: perl(Test::More)
#BuildRequires: perl(parent)
#BuildRequires: perl(strict)
#BuildRequires: perl(utf8)
#BuildRequires: perl(warnings)
#BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel

%description
the XML::Easy manpage is a collection of modules relating to the
processing, parsing, and serialisation of XML data. It is oriented towards
the use of XML to represent data for interchange purposes, rather than the
use of XML as markup of principally textual data. It does not perform any
schema processing, and does not interpret DTDs or any other kind of schema.
It adheres strictly to the XML specification, in all its awkward details,
except for the aforementioned DTDs.

the XML::Easy manpage strictly separates the in-program manipulation of XML
data from the processing of the textual form of XML. This shields the XML
user from the inconvenient and obscure aspects of XML syntax. XML data
nodes are mainly processed in a clean functional style, using the the
XML::Easy::NodeBasics manpage module. In the (very likely) event that an
application requires some more purpose-specific XML data processing
facilities, they are readily built on top of the XML::Easy::NodeBasics
manpage, retaining the abstraction from textual XML.

When XML must be handled in textual form, for input and output, the the
XML::Easy::Text manpage module supplies a parser and a serialiser. The
interfaces here, too, are functional in nature.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6039 |21cr|perl-XML-EasyOBJ-1.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-EasyOBJ
%define upstream_version 1.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch
Requires:	perl(XML::Parser)
Requires:	perl(XML::XSLT)

%description
%{upstream_name} - Easy XML object navigation

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix} 
make

%install
make PREFIX=%{buildroot}%{_prefix} install

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6040 |21cr|perl-XML-Elemental-2.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Elemental
%define upstream_version 2.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Simplistic and perlish handling of XML data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(XML::SAX)

BuildArch:	noarch

%description
XML::Elemental is a SAX-based package for easily parsing XML documents into a
more native and mostly object-oriented perl form.

The development of this package grew out of the desire for something more
object-oriented then XML::Simple and was more simplistic and perlish then the
various standard XML API modules such as XML::DOM. Easier installation of
modules was also a contributing factor.

Original this package began as a style plugin to XML::Parser. That proved to be
too limiting that it was expanded. With the release of version 2.0 the package
was refactored to take advantage of any parser supporting SAX that includes the
pure perl option that ships with XML::SAX.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6041 |21cr|perl-XML-Encoding-2.90.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-Encoding
%define upstream_version 2.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A perl module for parsing XML encoding maps

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)
BuildArch:	noarch

%description
This module, which is built as a subclass of XML::Parser, provides a parser for
encoding map files, which are XML files. The file maps/encmap.dtd in the
distribution describes the structure of these files. Calling a parse method
returns the name of the encoding map (obtained from the name attribute of the
root element). The contents of the map are processed through the callback
functions push_prefix, pop_prefix, and range_set.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%{_mandir}/*/*
%{_bindir}/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6042 |21cr|perl-XML-Entities-1.0.200-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Entities
%define upstream_version 1.0002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Mapping of XML entities to Unicode

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/XML-Entities-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(open)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Fatal)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Test::More)

BuildArch:	noarch

%description
This module deals with decoding of strings with XML character entities.
Based upon the HTML::Entities module by Gisle Aas

%prep
%setup -q -n %{upstream_name}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_bindir}/download-entities.pl
%{perl_vendorlib}/XML
%{_mandir}/man1/download-entities.pl.1*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6043 |21cr|perl-XML-EP-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-EP
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
Requires:	perl(XML::Parser)
Requires:	perl(XML::XSLT)
BuildArch:	noarch

%description
%{upstream_name} attempts to follow the Cocoon ideas and principles, 
but in a Perl environment.

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%files 
%doc ChangeLog README MANIFEST examples
%{_bindir}/*
%{perl_vendorlib}/XML/*.pm
%{perl_vendorlib}/XML/EP/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6044 |21cr|perl-XML-Fast-0.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define cpan_name XML-Fast

Name:           perl-XML-Fast
Version:        0.17
Release:        1
Summary:        Simple and very fast XML to hash conversion
License:        Artistic-1.0 or GPL-1.0+
Group:          Development/Perl
URL:            http://search.cpan.org/dist/XML-Fast/
Source:         http://www.cpan.org/authors/id/M/MO/MONS/%{cpan_name}-%{version}.tar.gz
BuildRequires:  perl-devel
BuildRequires:  perl


%description
This module implements simple, state machine based, XML parser written in
C.

It could parse and recover some kind of broken XML's. If you need XML
validator, use the XML::LibXML manpage.

%prep
%setup -q -n %{cpan_name}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std


%files 
%doc Changes LICENSE README
%{perl_vendorarch}/XML/*
%{perl_vendorarch}/auto/XML/Fast/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6045 |21cr|perl-XML-Feed-0.630.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Feed
%define upstream_version 0.63

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		2

Summary:	Perl Module for Syndication feed parsing and auto-discovery 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}/
Source0:	https://www.cpan.org/modules/by-module/XML/XML-Feed-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::ErrorHandler)
BuildRequires:	perl(Feed::Find)
BuildRequires:	perl(URI::Fetch)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Flexible)
BuildRequires:	perl(DateTime::Format::ISO8601)
BuildRequires:	perl(DateTime::Format::Natural)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(LWP)
BuildRequires:	perl(HTML::TokeParser)
BuildRequires:	perl(XML::XPath)
BuildRequires:	perl(XML::RSS) >= 1.01
BuildRequires:	perl(XML::Atom) >= 0.08
BuildArch:	noarch
# (misc) not found by find-provides, as it can be changed at runtime with a 
# variable $PREFERED_PARSER
Requires:	perl(XML::RSS)

%description
XML::Feed is a syndication feed parser for both RSS and Atom feeds. It also
implements feed auto-discovery for finding feeds, given a URI.

XML::Feed supports the following syndication feed formats:

* RSS 0.91
* RSS 1.0
* RSS 2.0
* Atom

The goal of XML::Feed is to provide a unified API for parsing and using the
various syndication formats.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
SKIP_SAX_INSTALL=1 CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6046 |21cr|perl-XML-FeedPP-0.430.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-FeedPP
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Parse/write/merge/edit RSS/RDF/Atom syndication feeds

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(XML::TreePP)
BuildArch:	noarch

%description
'XML::FeedPP' is an all-purpose syndication utility that parses and
publishes RSS 2.0, RSS 1.0 (RDF), Atom 0.3 and 1.0 feeds. It allows you to
add new content, merge feeds, and convert among these various formats. It
is a pure Perl implementation and does not require any other module except
for XML::TreePP.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6047 |21cr|perl-XML-Generator-1.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name 	 XML-Generator
%define upstream_version 1.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A module to help in generating XML documents from perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} is a module to help in generating XML documents or in
producing DOM trees .

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc README Changes 
%{perl_vendorlib}/XML/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6048 |21cr|perl-XML-Grove-0.460.0alpha-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-Grove
%define upstream_version 0.46alpha

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Provides the information set of parsed XML/HTML/SGML trees

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The XML::Grove Perl module provides simple access to the information
set of parsed XML, HTML, or SGML instances using a tree of Perl
hashes.  This package also includes several extensions to XML::Grove
that provide the following:

   - returning element contents as a string
   - returning element contents as XML, HTML, or Canonical XML
   - processing entire groves using the visitor pattern
   - processing entire groves using PerlSAX
   - running a filter over all nodes in the grove
   - substituting values into an XML template grove
   - indexing a grove by ID or other attributes
   - accessing elements and objects via URL-like paths
   - create grove objects using an easy shorthand

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%files
%{_mandir}/*/*
%{perl_vendorlib}/XML/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6049 |21cr|perl-XML-LibXML-Iterator-1.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-LibXML-Iterator
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	XML::LibXML's Tree Iteration Class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::LibXML)
BuildRequires:	perl(Module::Build) >= 0.28
BuildRequires:	perl(XML::NodeFilter)
BuildArch:	noarch

%description
XML::LibXML::Iterator is an iterator class for XML::LibXML parsed documents.
This class allows to iterate the document tree as it were a linear data
structure.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6050 |21cr|perl-XML-LibXML-Simple-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-LibXML-Simple
%define upstream_version 1.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    XML::LibXML clone of XML::Simple::XMLin()
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Slurp::Tiny)
BuildRequires: perl(Test::More)
BuildRequires: perl(XML::LibXML)
BuildRequires: perl-devel
BuildArch:     noarch

%description
This module is a blunt rewrite of XML::Simple (by Grant McLean) to use the
XML::LibXML parser for XML structures, where the original uses plain Perl
or SAX parsers.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml README ChangeLog META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6051 |21cr|perl-XML-LibXSLT-1.990.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-LibXSLT
%define upstream_version 1.99

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Perl interface to the gnome libxslt library

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:     XML-LibXSLT-nocheck-lib.patch
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Devel::Peek)
BuildRequires:  pkgconfig
BuildRequires:  perl-devel
BuildRequires:  perl(XML::LibXML) >= %{version}
Requires:       perl(XML::LibXML) >= %{version}

%description
This module is a fast XSLT library, based on the Gnome libxslt engine.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 OPTIMIZE="%{optflags}"
%make

%check
%ifnarch %{ix86}
%make test
%endif

%install
%makeinstall_std

%files
%doc Changes README example/*
%{_mandir}/*/*
%{perl_vendorarch}/XML
%{perl_vendorarch}/auto/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6052 |21cr|perl-XML-Mini-1.380.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Mini
%define upstream_version 1.38

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Perl implementation of the XML::Mini XML create/parse interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Text::Balanced)
BuildArch:	noarch

%description
XML::Mini is a set of Perl classes that allow you to access XML data and create
valid XML output with a tree-based hierarchy of elements. The MiniXML API has
both Perl and PHP implementations.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML/Mini.pm
%{perl_vendorlib}/XML/Mini/*.pm
%{perl_vendorlib}/XML/Mini/Element/*.pm
%{_mandir}/man3*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6053 |21cr|perl-XML-miniXQL-0.40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-miniXQL
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} perl module

License: 	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)
BuildArch:	noarch
Requires:	perl(XML::Parser)

%description
This module provides a simplistic XQL like search engine for XML files.

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std PREFIX=%{buildroot}%{_prefix}

%files 
%doc README MANIFEST Changes 
%{perl_vendorlib}/XML/*
%{perl_vendorlib}/auto/XML/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6054 |21cr|perl-XMLNews-HTMLTemplate-0.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name XMLNews-HTMLTemplate
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	A module for converting NITF to HTML
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://search.cpan.org/CPAN/authors/id/D/DM/DMEGG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XMLNews::Meta)

Requires:	perl(XMLNews::Meta)
BuildArch:	noarch

%description
Perl module designed to create template-based HTML pages 
using news documents in XMLNews-Meta and XMLNews-Story format.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std


%files
%doc README MANIFEST Changes
%{perl_vendorlib}/XMLNews
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6055 |21cr|perl-XMLNews-Meta-0.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name XMLNews-Meta
%define upstream_version 0.01

Name: 		perl-%{upstream_name}
Version: 	%perl_convert_version %{upstream_version}
Release: 	4
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	R/W an XML-based news metadata
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://search.cpan.org/CPAN/authors/id/D/DM/DMEGG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)

Requires:	perl

BuildArch:	noarch

%description
XMLNews-Meta - module designed to read and write 
an XML-based news metadata.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
make PREFIX=%{buildroot}%{_prefix} install DESTDIR=%{buildroot}

%files 
%doc README MANIFEST Changes
%{perl_vendorlib}/XMLNews/
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6056 |21cr|perl-XML-NodeFilter-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-NodeFilter
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	XML::LibXML's utility class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This is a utility class used by XML::LibXML for parsing XML documents in perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6057 |21cr|perl-XML-OPML-SimpleGen-0.70.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-OPML-SimpleGen
%define upstream_version 0.07
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Create OPML using XML::Simple

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/XML-OPML-SimpleGen-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(DateTime)
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(XML::Simple)
BuildRequires:	perl(version)
# These requires are not detected automatically.
Requires:	perl(Class::Accessor)
Requires:	perl(XML::Simple)
BuildArch:	noarch

%description
XML::OPML::SimpleGen lets you simply generate OPML documents without having
too much to worry about. It is a drop-in replacement for XML::OPML in
regards of generation. As this module uses XML::Simple it is rather
generous in regards of attribute or element names.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6058 |21cr|perl-XML-Parser-EasyTree-0.10.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-Parser-EasyTree
%define upstream_version 0.01

Name: 		perl-%{upstream_name}
Version: 	%perl_convert_version %{upstream_version}
Release: 	5

Summary:	%{upstream_name} perl module

License: 	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel >= 5.6
BuildRequires:	perl(XML::Parser)
BuildArch: noarch

%description
XML-Parser-EasyTree - adds a new "built-in" style called "EasyTree" to 
XML::Parser.  Like XML::Parser's "Tree" style, setting this style causes 
the parser to build a lightweight tree structure representing the XML document.

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix} 
%make

%install
%make PREFIX=%{buildroot}%{_prefix} install

%clean 

%files
%doc README MANIFEST Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6059 |21cr|perl-XML-Parser-Lite-Tree-0.140.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Parser-Lite-Tree
%define	upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Lightweight XML tree builder

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(SOAP::Lite)
BuildArch:	noarch

%description
This is a singleton class for parsing XML into a tree structure. How does this
differ from other XML tree generators? By using XML::Parser::Lite, which is a
pure perl XML parser. Using this module you can tree-ify simple XML without
having to compile any C.

Each node contains a "type" key, one of "root", "tag" and "data". "root" is the
document root, and only contains an array ref "children". "tag" represents a
normal tag, and contains an array ref "children", a hash ref "attributes" and a
string "name". "data" nodes contain only a "content" string.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std
# duplicated from SOAP::Lite
rm -f %{buildroot}%{perl_vendorlib}/XML/Parser/Lite.pm

%files
%{perl_vendorlib}/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6060 |21cr|perl-XML-PYX-0.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-PYX
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} perl module

License: 	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name} 
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)
BuildArch: 	noarch

%description
%{upstream_name} perl module

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std PREFIX=%{buildroot}%{_prefix}

%files 
%doc README MANIFEST 
%{perl_vendorlib}/XML/*
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6061 |21cr|perl-XML-QL-0.70.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-QL
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl-libwww-perl
BuildArch:	noarch

%description
%{upstream_name} - An XML query language.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%files
%doc README MANIFEST Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6062 |21cr|perl-XML-Records-0.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-Records
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(XML::TokeParser)
BuildArch:	noarch

%description
%{upstream_name} - module for perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%files
%doc README MANIFEST Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6063 |21cr|perl-XML-Registry-0.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-Registry
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} - module for loading and saving an XML registry.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build

CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README MANIFEST Changes  examples
%{perl_vendorlib}/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6064 |21cr|perl-XMLRPC-Lite-0.717.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name XMLRPC-Lite
%define upstream_version 0.717

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Client and server implementation of XML-RPC protocol
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XMLRPC/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(SOAP::Lite)
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
XMLRPC::Lite is a Perl modules which provides a simple interface to the
XML-RPC protocol both on client and server side. Based on SOAP::Lite
module, it gives you access to all features and transports available in
that module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6065 |21cr|perl-XML-RSS-1.620.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-RSS
%define upstream_version 1.62

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Creates and updates RSS files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::Mail)
BuildRequires: perl(DateTime::Format::W3CDTF)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(HTML::Entities)
BuildRequires: perl(Test::Manifest) >= 0.900.0
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(XML::Parser) >= 2.230.0
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::CPAN::Changes)
BuildRequires: perl(Test::TrailingSpace)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Differences)

BuildArch:	noarch

%description
Creates and updates RSS files.
This module supports versions 0.9, 0.91 and 1.0 of RSS.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x README Changes

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml TODO examples
%{_mandir}/*/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6066 |21cr|perl-XML-RSS-LibXML-0.310.500-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-RSS-LibXML
%define upstream_version 0.3105
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Epoch:		1

Summary:	Represent A Non-Trivial RSS Element


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Class::Accessor::Fast)
BuildRequires:	perl(DateTime::Format::Mail)
BuildRequires:	perl(DateTime::Format::W3CDTF)
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(XML::LibXML)
BuildRequires:	perl(XML::LibXML::XPathContext)
BuildRequires:	perl-CPAN-Meta

BuildArch:	noarch

%description
XML::RSS::LibXML uses XML::LibXML (libxml2) for parsing RSS instead of
XML::RSS' XML::Parser (expat), while trying to keep interface compatibility
with XML::RSS.

XML::RSS is an extremely handy tool, but it is unfortunately not exactly
the most lean or efficient RSS parser, especially in a long-running
process. So for a long time I had been using my own version of RSS parser
to get the maximum speed and efficiency - this is the re-packaged version
of that module, such that it adheres to the XML::RSS interface.

Use this module when you have severe performance requirements working with
RSS files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6067 |21cr|perl-XML-RSS-SimpleGen-11.110.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-RSS-SimpleGen
%define upstream_version 11.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Really Simple RSS Generator
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

Recommends:	perl(LWP::Simple)

%description
An easy-to-use screen scraper and RSS generator module. It transparently
handles all the unpleasant details of RSS, like proper XML escaping, and also
has a good number of Do-What-I-Mean features, like not changing the modtime on
a written-out RSS file if the file content hasn't changed, and like
automatically removing any HTML tags from content you might pass in.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# Seems to depend on site content which changed
#make test

%install
%makeinstall_std

%files
%doc ChangeLog README
%{perl_vendorlib}/XML/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6068 |21cr|perl-XML-Sablotron-1.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name XML-Sablotron
%define upstream_version 1.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	Sablotron XSLT processor encapsulation

License:	MPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		XML-Sablotron-1.01-perl5.14-build-fixes.patch
BuildRequires:	expat-devel
BuildRequires:	sablotron-devel >= 0.95	
BuildRequires:	perl-devel 
BuildRequires:	pkgconfig(mozjs185)

%description
This package is a interface to the Sablotron API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1 -b .perl514~

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorarch}/XML
%{perl_vendorarch}/auto/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6069 |21cr|perl-XML-SimpleObject-LibXML-0.600.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkg_name        XML-SimpleObject-LibXML
%define pkg_version     0.60

Summary:       Simple object representation of an XML::LibXML DOM object

Name:          perl-%{pkg_name}
Version:       %perl_convert_version %{pkg_version}
Release:       7
Group:         Development/Perl
License:       Artistic
URL:           http://search.cpan.org/dist/%{pkg_name}/
Source0:       http://www.cpan.org/authors/id/D/DB/DBRIAN/%{pkg_name}-%{pkg_version}.tar.gz
BuildArch:     noarch
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(XML::LibXML)
BuildRequires: perl-devel

%description
This is a short and simple class allowing simple object access to a parsed
XML::LibXML tree, with methods for fetching children and attributes in as
clean a manner as possible.

%prep
%setup -q -n %{pkg_name}-%{pkg_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
sed -i 's%/usr/local%/usr%g' Makefile
%make OPTMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{perl_vendorlib}/XML/SimpleObject/*.pm
%{perl_vendorlib}/XML/SimpleObject/*.pl
%{_mandir}/man3/*.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6070 |21cr|perl-XML-Smart-1.780.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module 	XML-Smart
%define upstream_version 1.78

Summary:	A Smart, easy and powerful way to access/create XML files/data

Name: 		perl-%{module}
Version: 	%perl_convert_version %{upstream_version}
Release: 	6
License: 	GPL
Url:		http://search.cpan.org/dist/%{module}
Group:		Development/Perl
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/XML/XML-Smart-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Object::MultiType)
BuildRequires:	perl(open)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module has an easy way to access/create XML data. It's based on the HASH
tree that is made of the XML data, and enable a dynamic access to it with the
Perl syntax for Hashe and Array, without needing to care if you have a Hashe or
an Array in the tree. In other words, each point in the tree work as a Hash 
and an Array at the same time!
%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test <<EOF
n
EOF

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML/Smart
%{perl_vendorlib}/XML/Smart.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6071 |21cr|perl-XML-Stream-1.240.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	XML-Stream
%define upstream_version 1.24

Summary:	%{upstream_name} perl module
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License: 	LGPL
Group:		Development/Perl
Url:		http://www.cpan.org/
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Authen::SASL)
Buildrequires:	perl(Unicode::String)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides you with access to XML Streams.  An XML Stream
is just that.  A stream of XML over a connection between two computers.

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
make

%check
make test

%install
%makeinstall_std

%files
%doc README CHANGES
%{_mandir}/*/*
%{perl_vendorlib}/XML/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6072 |21cr|perl-XML-TreeBuilder-5.400.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-TreeBuilder
%define upstream_version 5.4

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Build a tree of XML::Element objects

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/XML-TreeBuilder-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(HTML::Element)
BuildRequires:	perl(HTML::Tagset)
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(XML::Catalog)

BuildArch:	noarch

%description
This is just a subclass of HTML::Element. It works basically the same as
HTML::Element, except that tagnames and attribute names aren't forced to
lowercase, as they are in HTML::Element.

the HTML::Element manpage describes everything you can do with this class.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6073 |21cr|perl-XML-TreePP-0.430.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-TreePP
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Pure Perl implementation for parsing/writing XML documents
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/XML-TreePP-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(LWP)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(HTTP::Lite)
BuildRequires:	perl(Tie::IxHash)
BuildRequires:	perl(Jcode)

BuildArch:	noarch

%description
XML::TreePP module parses an XML document and expands it for a hash tree.
This generates an XML document from a hash tree as the opposite way around.
This is a pure Perl implementation and requires no modules depended. This
can also fetch and parse an XML document from remote web server like the
XMLHttpRequest object does at JavaScript language.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod -x Changes lib/XML/TreePP.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml Changes META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6074 |21cr|perl-XML-Writer-Simple-0.120.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-Writer-Simple
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Module for writing XML documents

License:	GPL+ or Artistic
URL:		http://search.cpan.org/dist/%{upstream_name}
Group:		Development/Perl
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Exporter)
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(XML::DTDParser)
BuildRequires:	perl(XML::DT)
BuildRequires:	perl(strict)
BuildRequires:	perl(vars)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
XML-Writer-Simple is a simple Perl module to write XML. It takes some
ideas from CGI and applies them for the XML World.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.json META.yml
%{perl_vendorlib}/XML/Writer*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6075 |21cr|perl-XML-XPathScript-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-XPathScript
%define upstream_version 2.00

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A Perl framework for XML stylesheets

License:    Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(XML::XPath)
BuildRequires:  perl(XML::LibXML)
BuildRequires:  perl(Readonly)
BuildRequires:  perl(Clone)
BuildRequires:  perl(Test)
BuildRequires:  perl(Test::More)
BuildArch:      noarch

%description
%{upstream_name} is an XML templating language that has some concepts from ASP
and some from XSLT. This makes for a very flexible option for transforming
XML to HTML or text or just about any other format.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes script
%{_mandir}/*/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6076 |21cr|perl-XML-XSLT-0.480.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-XSLT
%define upstream_version 0.48

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	XML::XSLT - A perl module for processing XSLT

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://www.cpan.org/
Source0:	http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl-XML-Parser
BuildRequires:	perl-XML-DOM
BuildArch:	noarch

%description
This module implements the W3C's XSLT specification. The goal is
full implementation of this spec, but we have not yet achieved
that. However, it already works well. See XML::XSLT Commands for
the current status of each command.

XML::XSLT makes use of XML::DOM and LWP::Simple, while XML::DOM
uses XML::Parser.  Therefore XML::Parser, XML::DOM and LWP::Simple
have to be installed properly for XML::XSLT to run.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# (tv) fix doc permissions:
chmod 755 examples

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc ChangeLog MANIFEST README examples
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6077 |21cr|perl-XML-XUpdate-LibXML-0.6.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-XUpdate-LibXML
%define upstream_version 0.6.0

Summary:	%{upstream_name} upstream_name for perl

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12
License:	MPL
Group:		Development/Perl
Source0:	https://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz
Url:		https://search.cpan.org/dist/%{upstream_name}
BuildArch:	noarch
BuildRequires:	libxml2-devel >= 2.4.20
BuildRequires:	perl-devel
BuildRequires:	perl(XML::LibXML)
BuildRequires:	perl(XML::LibXML::XPathContext)
Requires(pre):	libxml2
Requires(pre):	perl(XML::LibXML)
Requires(pre):	perl(XML::SAX)

%description
%{upstream_name} upstream_name for perl
Simple implementation of XUpdate format

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
eval `perl '-V:installarchlib'`
mkdir -p %{buildroot}/$installarchlib
%makeinstall_std

%preun -p /usr/bin/perl
use XML::SAX;
XML::SAX->remove_parser(q(XML::LibXML::SAX::Parser))->save_parsers();

%post -p /usr/bin/perl
use XML::SAX;
XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers();

%clean

%files
%doc Changes
%{_bindir}/xupdate
%{_mandir}/*/*
%{perl_vendorlib}/XML/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6078 |21cr|perl-XSLoader-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XSLoader
%define upstream_version 0.24

%define debug_package %{nil}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Dynamically load C libraries into Perl code

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/S/SA/SAPER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.470.0
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Portability::Files)
BuildRequires: perl(Test::Distribution)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl-devel

%description
This module defines a standard simplified interface to the dynamic
linking mechanisms available on many platforms. Its primary purpose is
to implement cheap automatic dynamic loading of Perl modules.

For a more complicated interface, see DynaLoader. Many (most) features
of DynaLoader are not implemented in XSLoader, like for example the
dl_load_flags, not honored by XSLoader.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README eg
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6079 |21cr|perl-XXX-0.380.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XXX
%define upstream_version 0.38

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1
Summary:        See Your Data in the Nude
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/XXX
Source0:        https://cpan.metacpan.org/authors/id/I/IN/INGY/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  coreutils
BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(base)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(JSON::Color)
BuildRequires:  perl(YAML::PP)
# Tests
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(Test::More)
# Test::Pod - optional
Requires:       perl(:MODULE_COMPAT_%(eval "$(perl -V:version)"; echo $version))
Requires:       perl(Data::Dumper)
Requires:       perl(YAML::PP)
# Optional, not package yet
# perl(Enbugger)

%description
XXX.pm exports a function called XXX that you can put just about
anywhere in your Perl code to make it die with a YAML dump of the
arguments to its right.

The charm of XXX-debugging is that it is easy to type and rarely
requires parens and stands out visually so that you remember to remove
it.

XXX.pm also exports WWW, YYY and ZZZ which do similar debugging things.

To use Data::Dumper instead of YAML:
   use XXX -dumper;

%prep
%setup -q -n XXX-%{upstream_version}

# Help file to recognise the Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%{make_build}

%install
%{make_install}
%{_fixperms} %{buildroot}/*

%check
unset AUTHOR_TESTING
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test

%files
%license LICENSE
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6080 |21cr|perl-YAML-AppConfig-0.190.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 YAML-AppConfig
%define upstream_version 0.19

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Manage configuration files with YAML and variable reference

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/X/XA/XAERXESS/%{upstream_name}-%{upstream_version}.tar.gz

Requires:      perl-YAML-parser
BuildRequires: perl(Carp)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Storable)
BuildRequires: perl(Test::More)
BuildRequires: perl(YAML) >= 0.380.0
BuildRequires: perl(YAML::Syck)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-YAML-parser
BuildRequires: perl-devel
BuildArch:     noarch

%description
YAML::AppConfig extends the work done in Config::YAML and YAML::ConfigFile to
allow more flexiable configuration files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/*/*
%{perl_vendorlib}/YAML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6081 |21cr|perl-YAML-Old-1.70.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    YAML-Old
%define upstream_version 1.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Old YAML.pm Legacy Code
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/YAML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::YAML)
BuildRequires: perl-devel
BuildArch: noarch

%description
The YAML.pm module implements a YAML Loader and Dumper based on the YAML
1.0 specification. the http://www.yaml.org/spec/ manpage

YAML is a generic data serialization language that is optimized for human
readability. It can be used to express the data structures of most modern
programming languages. (Including Perl!!!)

For information on the YAML syntax, please refer to the YAML specification.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE README Changes META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6082 |21cr|perl-YAML-PP-0.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    YAML-PP
%define upstream_version 0.030

Name:           perl-YAML-PP
Version:        %perl_convert_version %{upstream_version}
Release:        1%{?dist}
Summary:        YAML 1.2 processor
Group:          Development/Perl
License:        GPL+ or Artistic
URL:            https://metacpan.org/release/YAML-PP/
Source0:        https://cpan.metacpan.org/authors/id/T/TI/TINITA/YAML-PP-%{upstream_version}.tar.gz
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl-generators
BuildRequires:  perl-interpreter
BuildRequires:  perl(:VERSION) >= 5.8.0
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time
BuildRequires:  perl(B)
BuildRequires:  perl(B::Deparse)
BuildRequires:  perl(base)
BuildRequires:  perl(boolean)
BuildRequires:  perl(Carp)
BuildRequires:  perl(constant)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Encode)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(File::Basename)
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(HTML::Entities)
BuildRequires:  perl(JSON::PP)
BuildRequires:  perl(MIME::Base64)
BuildRequires:  perl(Module::Load)
BuildRequires:  perl(overload)
BuildRequires:  perl(Scalar::Util) >= 1.07
BuildRequires:  perl(Term::ANSIColor) >= 4.02
BuildRequires:  perl(Tie::Array)
BuildRequires:  perl(Tie::Hash)
BuildRequires:  perl(Tie::StdArray)
BuildRequires:  perl(Tie::StdHash)
# Tests
BuildRequires:  perl(blib) >= 1.01
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(FindBin)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(IO::Handle)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(lib)
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl(Test::More) >= 0.98
BuildRequires:  perl(Test::Warn)
BuildRequires:  perl(Tie::IxHash)
Requires:       perl(:MODULE_COMPAT_%(eval "`perl -V:version`"; echo $version))
Requires:       perl(boolean)
Requires:       perl(B::Deparse)
Requires:       perl(Cpanel::JSON::XS)
Requires:       perl(HTML::Entities)
Requires:       perl(JSON::PP)
Requires:       perl(JSON::XS)
Requires:       perl(Scalar::Util) >= 1.07
Requires:       perl(Term::ANSIColor)
Requires:       perl(Tie::IxHash)
Requires:       perl(YAML::PP::Schema::Include)
# bin/yamlpp-load can use various YAML implementations on user's request:
Suggests:       perl(YAML)
Suggests:       perl(YAML::PP::LibYAML)
Suggests:       perl(YAML::PP::LibYAML::Parser)
Suggests:       perl(YAML::Syck)
Suggests:       perl(YAML::Tiny)
Suggests:       perl(YAML::XS)
BuildArch:      noarch

%global __requires_exclude %{?__requires_exclude:__requires_exclude|}^perl\\(Scalar::Util\\)$
%global __requires_exclude %{__requires_exclude}|^perl\\(YAML::PP::Test)\s*$
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}^%{_libexecdir}

%description
YAML::PP is a modern, modular YAML processor.
It aims to support YAML 1.2 and YAML 1.1. See http://yaml.org/.

%files
%license LICENSE
%doc Changes CONTRIBUTING.md etc examples README.md
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man3/*

#------------------------------------------------------------------
%prep
%setup -q -n YAML-PP-%{upstream_version}

for i in $(find e* -type f); do
    chmod -x "$i"
    perl -i -MConfig -pe 's{\A#!.*perl}{$Config{startperl}}' "$i"
done

# Help file to recognise the Perl scripts
for F in t/*.t; do
    perl -i -MConfig -ple 'print $Config{startperl} if $. == 1 && !s{\A#!.*perl\b}{$Config{startperl}}' "$F"
    chmod +x "$F"
done

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make_build

%install
%make_install
%_fixperms %{buildroot}/*

%check
export HARNESS_OPTIONS=j$(perl -e 'if ($ARGV[0] =~ /.*-j([0-9][0-9]*).*/) {print $1} else {print 1}' -- '%{?_smp_mflags}')
make test



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6083 |21cr|perl-ZMQ-Constants-1.04-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-ZMQ-Constants
Version:        1.04
Release:        3
Summary:        Constants for the libzmq library

License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/ZMQ-Constants/
Source0:        http://search.cpan.org/CPAN/authors/id/D/DM/DMAKI/ZMQ-Constants-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  perl(Cwd)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Storable)
BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl-devel

%description
libzmq is a fast-changing beast and constants get renamed, new one gets
removed, etc...


%prep
%setup -q -n ZMQ-Constants-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
make pure_install DESTDIR=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} \;

%check
make test


%files
%doc Changes
%{perl_vendorlib}/ZMQ/
%{_mandir}/man3/*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6084 |21cr|perl-ZMQ-LibZMQ3-1.19-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           perl-ZMQ-LibZMQ3
Version:        1.19
Release:        4
Summary:        Perl wrapper for the libzmq 3.x library

License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/ZMQ-LibZMQ3/
Source0:        http://search.cpan.org/CPAN/authors/id/D/DM/DMAKI/ZMQ-LibZMQ3-%{version}.tar.gz
# Fix local build from dist-git
Patch0:         ZMQ-LibZMQ3-1.16-Correct-check-for-.git.patch
Patch1:         zmq-tools.patch

BuildRequires:  perl(AnyEvent)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Devel::PPPort) >= 3.19
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(inc::Module::Install)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More) >= 0.98
BuildRequires:  perl(Test::Requires)
BuildRequires:  perl(Test::SharedFork)
BuildRequires:  perl(Test::TCP) >= 1.08
BuildRequires:  perl(threads)
BuildRequires:  perl(ZMQ::Constants)
BuildRequires:  pkgconfig(libzmq)
BuildRequires:  perl-devel

%description
The ZMQ::LibZMQ3 module is a wrapper of the 0MQ message passing library for
Perl. It's a thin wrapper around the C API. Please read http://zeromq.org
for more details on 0MQ.


%prep
%autosetup -p1 -n ZMQ-LibZMQ3-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make

%install
make pure_install DESTDIR=%{buildroot}

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -type f -name '*.bs' -size 0 -exec rm -f {} \;

%check
make test

%files
%doc Changes
%{perl_vendorarch}/auto/*
%{perl_vendorarch}/ZMQ*
%{_mandir}/man3/*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6085 |21cr|perroquet-1.1.2-0.20150305.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot 20150305

Name:		perroquet
Version:	1.1.2
Release:	0.%{snapshot}.1
Summary:	A listening comprehension tutor
Group:		Education
License:	GPLv3+
URL:		http://perroquet.niavok.com
#Source0:	http://launchpad.net/perroquet/1.1/%{version}/+download/%{name}-%{version}.tar.gz
Source0:	%{name}-%{version}-%{snapshot}.tar.xz

BuildRequires:	python-devel
BuildRequires:	intltool
BuildRequires:	python-setuptools
BuildRequires:	desktop-file-utils
Requires:	gtk+2.0
Requires:	gstreamer0.10-plugins-good
Requires:	gstreamer0.10-soundtouch
Requires:	gstreamer0.10-python
Requires:	pygtk2.0
BuildArch:	noarch

%description
Perroquet is a educational program to improve playfully your listening in a
foreign language.

The principle of Perroquet is to use a video or audio file and the associated
subtitles to make you listen and understand the dialogue or lyrics. After
having identified the files to use, Perroquet will read a piece of video then
pause. It will show you the number of words to find and you will have to type
them to continue. You can listen a sequence as many times as necessary.
If you do not understand, Perroquet offers several means to help you.

%prep
%setup -q -n %{name}-%{version}-%{snapshot}

%build
python setup.py build

%install
python setup.py \
	--without-icon-cache \
	--without-mime-database \
	--without-desktop-database \
	install --root=%{buildroot}

desktop-file-install \
	--remove-key=Encoding \
	--remove-category=Application \
	--add-category=Languages \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

rm -rf %{buildroot}%{_datadir}/pixmaps

%find_lang %{name}

%files -f %{name}.lang
%doc README AUTHORS ChangeLog NEWS MAINTAINERS
%{_bindir}/%{name}
%{py_puresitedir}/%{name}lib
%{py_puresitedir}/%{name}-%{version}_dev-py%{py_ver}.egg-info
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/*/*.*
%{_datadir}/%{name}/
%{_datadir}/mime/packages/%{name}.xml
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*.ini
%config(noreplace) %{_sysconfdir}/%{name}/*.conf



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6086 |21cr|persepolis-2.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Persepolis Download Manager is a GUI for aria2
Name:		persepolis
Version:	2.4.2
Release:	1
License:	GPLv3
Group:		Networking/File transfer
Url:		https://github.com/persepolisdm/persepolis
Source0:	https://github.com/persepolisdm/persepolis/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-qt5
BuildRequires:	python3egg(lxml)
BuildRequires:	python3egg(requests)
BuildRequires:	python3egg(urllib3)
Requires:	aria2
Requires:	python3-qt5
Requires:	python3egg(lxml)
Requires:	python3egg(requests)
Requires:	python3egg(setproctitle)
Requires:	python3egg(urllib3)
BuildArch:	noarch

%description
Persepolis Download Manager is a GUI for aria2.

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./checkpyqt.py
./check_request.py

%install
install -d 755 %{buildroot}%{_datadir}/%{name}
install -d 755 %{buildroot}%{_bindir}/
install -d 755 %{buildroot}%{_datadir}/applications
install -d 755 %{buildroot}%{_datadir}/pixmaps
install -d 755 %{buildroot}%{_mandir}/man1

cp -a files/* %{buildroot}%{_datadir}/%{name}/

install -m 0755 %{name} %{buildroot}%{_bindir}/
install -m 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m 0644 files/icon.svg %{buildroot}%{_datadir}/pixmaps/%{name}.svg
install -m 0644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6087 |21cr|pflogsumm-1.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Postfix Log Entry Summarizer
Name: 		pflogsumm
Version: 	1.1.5
Release:	4
License: 	GPL
Group:		Monitoring
Source0:	http://jimsun.LinxNet.com/downloads/pflogsumm-%{version}.tar.gz
Url:		http://jimsun.LinxNet.com/
Buildarch:	noarch

%description
Pflogsumm is a log analyzer/summarizer for the Postfix MTA.  It is
designed to provide an over-view of Postfix activity, with just enough
detail to give the administrator a "heads up" for potential trouble
spots.
Pflogsumm generates summaries and, in some cases, detailed reports of
mail server traffic volumes, rejected and bounced email, and server
warnings, errors and panics.

%prep
%setup -q

%install
mkdir -p %buildroot/%{_sbindir}
mkdir -p %buildroot/%{_mandir}/man1
install -m755 pflogsumm.pl %buildroot/%{_sbindir}/pflogsumm
install -m644 pflogsumm.1 %buildroot/%{_mandir}/man1/pflogsumm.1

%files
%defattr(-,root,root,755)
%doc ChangeLog pflogsumm-faq.txt README ToDo
%{_sbindir}/pflogsumm
%{_mandir}/man1/pflogsumm.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6088 |21cr|pfs-utils-0-0.git7afa88.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# branch pfsget
%global commit 7afa887f60ad0c81e3f1083d5cb84b6dabfeea4b
%global commit_short %(echo %{commit} | head -c 6)
%global oname %{name}-cli

Summary:	Scripts for managing squashfs modules in a live Linux distribution
Name:		pfs-utils
Version:	0
Release:	0.git%{commit_short}.1
License:	GPLv3
Group:		File tools
Url:		https://github.com/pfs-utils/pfs-utils-cli
Source0:	https://github.com/pfs-utils/pfs-utils-cli/archive/%{commit}/%{name}-%{commit_short}.tar.gz
Source1:	pfs.cfg
Requires:	squashfs-tools
BuildArch:	noarch

%description
A collection of bash scripts for creating, merging,
extracting and loading/unloading pfs modules

%files
%config(noreplace) %{_sysconfdir}/pfs.cfg
%config(noreplace) %{_sysconfdir}/pfsget/
%{_bindir}/*
%{_mandir}/man8/%{name}.8*
%{_mandir}/ru/man8/%{name}.8*
%{_sysconfdir}/bash_completion.d/

#------------------------------------------------------------------

%prep
%autosetup -n %{oname}-%{commit}

%build

%install
cp -r project-files/* %{buildroot}
cp %{SOURCE1} %{buildroot}%{_sysconfdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6089 |21cr|pftp-1.1.6-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary: 	Port-File-Transfer-Program not to muddle up with standard FTP
Name: 		pftp
Version: 	1.1.6
Release: 	20
Group: 		Networking/File transfer
License: 	GPL
URL: 		http://www.pftp.de/
Source0: 	%{name}-%{version}.tar.bz2
Source1:	faq.html.bz2
Source2:	pftp-xinetd
Patch0:		pftp-include.patch
Patch1:		%{name}-mdk.patch.bz2
BuildRequires:	openssl-static-devel
BuildRequires:	glibc-static-devel


%description
pftp allows you to send and receive files and directories recursively, 
send and receive standard input and ouput, filter your connection, set 
the net buffer size, set the bandwidth, send UDP datagrams unicasted, 
broadcasted, and multicasted (which is meant for AUDIO and VIDEO streaming), 
send data to another user and manage that data, perform a network test 
based on either UDP or TCP, and use optimized buffers for your Gigabit 
Ethernet links. pftp can start from command line, as a daemon, or by
inetd. All features are supported for IPv4 and IPv6.

%prep
%autosetup -p1

# find lib in right dir
sed -i 's|/usr/lib|/usr/%{_lib}|g' Makefile

%build
%make

%install
install -d %{buildroot}{%{_bindir},%{_mandir}/man1,%{_sysconfdir}/xinetd.d}

install -m644 pftp.conf %{buildroot}%{_sysconfdir}
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/xinetd.d/pftp
bzcat %{SOURCE1} > faq.html

%makeinstall_std  BINDIR=%{buildroot}%{_sbindir} MANDIR=%{buildroot}%{_mandir}

%post
cp /etc/services /etc/services.pftp.save
cat /etc/services.pftp.save | \
grep -v "^"pftp | grep -v "^#pftp"  > /etc/services
echo "pftp      662/tcp		# pftp service" >> /etc/services 
rm -f /etc/services.pftp.save 

%files
%config(noreplace) %{_sysconfdir}/xinetd.d/pftp
%config(noreplace) %{_sysconfdir}/pftp.conf
%{_sbindir}/*
%defattr(644,root,root,755)
%doc INSTALL README TODO COPYING CREDITS Changes faq.html pftp.conf
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6090 |21cr|pgaccess-0.99.0.20081028-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Tcl/Tk client for postgresql
Name:		pgaccess
# Just a CVS snapshot, versioning is historical
Version:	0.99.0.20081028
Release:	%{mkrel 9}
Source0:	%{name}-%{version}.tar.lzma
Source20:	pgaccess-16.png
Source21:	pgaccess-32.png
Source22:	pgaccess-48.png
License:	GPL
Group:		Databases
URL:		http://pgfoundry.org/projects/pgaccess/
# For the macros
BuildRequires:	tcl-devel
Requires:	tk >= 8.0
Requires:	tcl >= 8.0
Requires:	tcl-tcllib
BuildArch:	noarch

%description
Graphical database management tool for PostgreSQL.

%prep
%setup -q -n %{name}
sed -i -e 's,list frame none underline,list dotbox none underline,g' lib/widgets/tablelist3.8/scripts/tablelistWidget.tcl
rm -rf op_sys

%build

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{tcl_sitelib}/%{name}

perl -pi -e 's|/usr/local|%{tcl_sitelib}|' pgaccess

cat <<EOF >%{buildroot}%{_bindir}/pgaccess
#!/bin/sh
export PGACCESS_HOME="/usr/share/tcl%{tcl_version}/pgaccess"

\$PGACCESS_HOME/pgaccess.tcl $* &
EOF

cp -vfr * %{buildroot}%{tcl_sitelib}/%{name}
rm -fr %{buildroot}%{tcl_sitelib}/%{name}/doc

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=PostgreSQL Access
Comment=PostgreSQL Tcl/Tk front-end
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;Database;
EOF

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -D -m644 %{SOURCE20} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/pgaccess.png
install -D -m644 %{SOURCE21} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/pgaccess.png
install -D -m644 %{SOURCE22} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/pgaccess.png

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc doc/ README
%attr(755,root,root) %{_bindir}/%{name}
%{tcl_sitelib}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/*/apps/pgaccess.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6091 |21cr|pgadmin3-20220717-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Summary Graphical client for PostgreSQL

%global commit 39074e9c6fb89443a0cde1740016d8e28084569f
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Summary:        %{Summary}
Name:           pgadmin3
Version:	20220717
Release:	2
License:        Artistic
Group:          Databases
URL:            https://github.com/allentc/pgadmin3-lts
Source0:        https://github.com/allentc/pgadmin3-lts/archive/%{commit}/%{name}-lts-%{shortcommit}.tar.gz
Source1:        pgadmin3.appdata.xml
# Use a more readable icon
Patch5:         pgadmin3-1.12.2-desktop-file.patch
# Fix data view on High-DPI screens (from pgadmin-hacker list)
Patch6:         pgadmin3_row-heights.patch
BuildRequires:  appstream-util
BuildRequires:  wxgtku-devel
BuildRequires:  postgresql-devel
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(libssh2)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  imagemagick
# for check
BuildRequires:  gsettings-desktop-schemas

%description
PostgreSQL Tools.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_metainfodir}/org.postgresql.pgadmin3.appdata.xml

#---------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-lts-%{commit}
# remove embedded libssh2
rm -rf pgadmin/libssh2 pgadmin/include/libssh2

%build
./bootstrap
%configure --with-wx-version=2.8
%make

%install
%makeinstall_std

desktop-file-install --dir %{buildroot}/%{_datadir}/applications/ \
	--remove-category=Application \
	--add-category=Database \
	pkg/%{name}.desktop

install -d %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert -size 16x16 pgadmin/include/images/pgAdmin3.png %{buildroot}%{_miconsdir}/%{name}.png
convert -size 32x32 pgadmin/include/images/pgAdmin3.png %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 pgadmin/include/images/pgAdmin3.png %{buildroot}%{_liconsdir}/%{name}.png

# Install appdata file
install -d %{buildroot}%{_datadir}/appdata
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_metainfodir}/org.postgresql.pgadmin3.appdata.xml

# Properly install locales
mkdir -p %{buildroot}%{_datadir}/locale
rm -f %{buildroot}%{_datadir}/%{name}/i18n/{*,.}/wxstd.mo
mv -f %{buildroot}%{_datadir}/%{name}/i18n/??_?? %{buildroot}%{_datadir}/locale

%find_lang %{name}

%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.postgresql.pgadmin3.appdata.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6092 |21cr|pgadmin4-6.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tag_ver %(echo %{version} | awk -F. '{print $1"_"$2}')

Name:           pgadmin4
# NOTE: Also regenerate requires as indicated below when updating!
Version:        6.18
Release:        1
Summary:        Administration tool for PostgreSQL
Group:          Databases
# i686, armv7hl: The webpack terser plugin aborts with JS heap memory exhaustion on these arches
# s390x: wasm aborts with RuntimeError: memory access out of bounds when attempting to build webfonts-loader
# ppc64le: wasm aborts with RuntimeError: float unrepresentable in integer range
ExcludeArch:    i686 armv7hl s390x ppc64le

# PostgreSQL ist the main license, rest the bundled JS code (see %%{name}-%%{version}-vendor-licenses.txt)
License:        PostgreSQL and MIT and ISC and BSD and ASL 2.0 and CC-BY and CC0 and WTFPL and zlib and GPLv2 and GPLv3+ and Python
URL:            https://www.pgadmin.org/
Source0:        https://ftp.postgresql.org/pub/pgadmin/pgadmin4/v6.18/source/%{name}-%{version}.tar.gz

# ./prepare_vendor.sh
Source1:        %{name}-%{version}-vendor.tar.xz
Source2:        %{name}-%{version}-vendor-licenses.txt

# Unofficial qt runtime
Source3:        pgadmin4-qt.cpp
Source4:        org.postgresql.pgadmin4.metainfo.xml
Source5:        pgadmin4-qt.svg

# Apache/WSGI config
Source6:        pgadmin4.conf

# Patch requirements for Fedora compat
Patch0:         pgadmin4_requirements.patch
# Don't error out on sphinx warnings
Patch1:         pgadmin4_sphinx_werror.patch
# Pass allow_unsafe_werkzeug=True to socketio.run
Patch2:         pgadmin4-socketio.patch
# Flask 2.2 compatibility
Patch3:         pgadmin4_flask22.patch
# Fix python-azure-mgmt-rdbms-10.2.0~b5+ compatibility
Patch4:         pgadmin4_azure-mgmt-rdbms.patch
# ??? FIXME Fix crash on None username, retest with 6.16
Patch10:        pgadmin4_username.patch

# Patch for building bundled mozjpeg
%global mozjpeg_ver 4.1.1
Source7:        https://github.com/mozilla/mozjpeg/archive/v%{mozjpeg_ver}/mozjpeg-%{mozjpeg_ver}.tar.gz
Patch100:       mozjpeg.patch
# Backport fix for CVE-2021-35065 for bundled glob-parent
Patch101:       glob-parent-CVE-2021-35065.patch

BuildRequires:  python3-devel
BuildRequires:  python3-sphinx
BuildRequires:  pyproject-rpm-macros
BuildRequires:  yarn

# For node dependencies
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libpng-devel
BuildRequires:  libtool
BuildRequires:  yasm
BuildRequires:  optipng

# cd pgadmin4-<ver>
# patch -p1 < pgadmin4_requirements.patch
# python3 /usr/lib/rpm/redhat/pyproject_buildrequires.py -N requirements.txt 2>/dev/null | awk '{print "Requires: "$0}'
Requires: python3dist(flask) >= 2.1
Requires: (python3dist(flask-gravatar) >= 0 with python3dist(flask-gravatar) < 1)
Requires: (python3dist(flask-login) >= 0 with python3dist(flask-login) < 1)
Requires: (python3dist(flask-mail) >= 0 with python3dist(flask-mail) < 1)
Requires: (python3dist(flask-migrate) >= 3 with python3dist(flask-migrate) < 4)
Requires: python3dist(flask-sqlalchemy) >= 2.5
Requires: (python3dist(flask-wtf) >= 1 with python3dist(flask-wtf) < 2)
Requires: (python3dist(flask-compress) >= 1 with python3dist(flask-compress) < 2)
Requires: (python3dist(flask-paranoid) >= 0 with python3dist(flask-paranoid) < 1)
Requires: (python3dist(flask-babel) >= 2 with python3dist(flask-babel) < 3)
Requires: (python3dist(flask-security-too) >= 4.1 with python3dist(flask-security-too) < 4.2)
Requires: python3dist(flask-socketio)
Requires: (python3dist(wtforms) >= 3 with python3dist(wtforms) < 4)
Requires: (python3dist(passlib) >= 1 with python3dist(passlib) < 2)
Requires: python3dist(pytz) >= 2021
Requires: (python3dist(simplejson) >= 3 with python3dist(simplejson) < 4)
Requires: (python3dist(sqlparse) >= 0 with python3dist(sqlparse) < 1)
Requires: python3dist(psutil)
Requires: (python3dist(psycopg2) >= 2.9 with python3dist(psycopg2) < 2.10)
Requires: (python3dist(python-dateutil) >= 2 with python3dist(python-dateutil) < 3)
Requires: (python3dist(sqlalchemy) >= 1.4 with python3dist(sqlalchemy) < 1.5)
Requires: (python3dist(bcrypt) >= 3 with python3dist(bcrypt) < 4)
Requires: python3dist(cryptography) >= 3
Requires: (python3dist(sshtunnel) >= 0 with python3dist(sshtunnel) < 1)
Requires: (python3dist(ldap3) >= 2 with python3dist(ldap3) < 3)
Requires: python3dist(gssapi) >= 1.7
Requires: (python3dist(eventlet) >= 0.33 with python3dist(eventlet) < 0.34)
Requires: (python3dist(httpagentparser) >= 1.9 with python3dist(httpagentparser) < 1.10)
Requires: python3dist(user-agents) = 2.2
Requires: python3dist(authlib) >= 0.15
Requires: python3dist(requests) >= 2.25
Requires: (python3dist(pyotp) >= 2 with python3dist(pyotp) < 3)
Requires: (python3dist(qrcode) >= 7 with python3dist(qrcode) < 8)
Requires: (python3dist(pillow) >= 9 with python3dist(pillow) < 10)
Requires: python3dist(boto3) >= 1.20
Requires: python3dist(botocore) >= 1.23
Requires: (python3dist(urllib3) >= 1.26 with python3dist(urllib3) < 1.27)
Requires: python3dist(werkzeug) >= 2.1.2
Requires: python3dist(azure-mgmt-rdbms) >= 10.1
Requires: python3dist(azure-mgmt-resource) >= 21
Requires: python3dist(azure-mgmt-subscription) >= 3
Requires: python3dist(azure-identity) >= 1.9
Requires: python3dist(ua-parser) >= 0.15

Obsoletes: pgadmin3 < 1.23.0
Provides:  pgadmin3 = %{version}-%{release}

%description
pgAdmin is the most popular and feature rich Open Source administration and development
platform for PostgreSQL, the most advanced Open Source database in the world.

%files
%license LICENSE %{name}-%{version}-vendor-licenses.txt
%doc docs/en_US/_build/html README.md
%{_prefix}/lib/%{name}
# Packaged by separate langpack subpackages
%exclude %{_prefix}/lib/%{name}/pgadmin/translations/*

#---------------------------------------------------------------------------
%package qt
Summary:        Unofficial Qt runtime for pgadmin4
Group:          Databases
Requires:       %{name} = %{version}-%{release}
BuildRequires:  appstream-util
BuildRequires:  gcc-c++
BuildRequires:  desktop-file-utils
BuildRequires:  qt5-qtbase-devel
BuildRequires:  qt5-qtwebengine-devel
# for check
BuildRequires:  gsettings-desktop-schemas

%description qt
This package contains an unofficial Qt runtime for pgadmin4.

%files qt
%{_bindir}/%{name}-qt
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/pgadmin4-qt/
%{_metainfodir}/org.postgresql.pgadmin4.metainfo.xml

#---------------------------------------------------------------------------
%package httpd
Summary:        Apache/WSGI configuration for pgadmin4
Group:          Databases
Requires:       python3-mod_wsgi
Requires:       %{name} = %{version}-%{release}

%description httpd
This package contains the Apache/WSGI configuration for serving pgadmin4 from Apache.

%files httpd
%config(noreplace) %{_sysconfdir}/httpd/conf.d/pgadmin4.conf
%attr(0700,apache,apache) %dir %{_localstatedir}/lib/pgadmin
%attr(0700,apache,apache) %dir %{_localstatedir}/var/log/pgadmin

#---------------------------------------------------------------------------
%define lang_subpkg() \
%package langpack-%{1}\
Summary:       %{2} language data for %{name}\
Group:         Databases\
BuildArch:     noarch\
Requires:      %{name} = %{version}-%{release}\
Supplements:   (%{name} = %{version}-%{release} and langpacks-%{1})\
\
%description langpack-%{1}\
%{2} language data for %{name}.\
\
%files langpack-%{1}\
%{_prefix}/lib/%{name}/pgadmin/translations/%{1}/

%lang_subpkg cs Czech
%lang_subpkg de German
%lang_subpkg es Spanish
%lang_subpkg fr French
%lang_subpkg it Italian
%lang_subpkg ja Japanese
%lang_subpkg ko Korean
%lang_subpkg pl Polish
%lang_subpkg ru Russian
%lang_subpkg zh Chinese

#---------------------------------------------------------------------------

%generate_buildrequires
%pyproject_buildrequires -N requirements.txt


%prep
%setup -q  -a1
%autopatch -M99 -p1

sed -i 's|Exec=.*|Exec=%{_bindir}/%{name}-qt|' pkg/linux/%{name}.desktop
cp -a %{SOURCE2} .

# Use system optipng, remove bundled source code
find .package-cache -name optipng.tar.gz -delete
ln -s %{_bindir}/optipng $(readlink -f .package-cache/v6/npm-optipng-bin-*/node_modules/optipng-bin/vendor)/optipng-bin
ln -s %{_bindir}/optipng $(readlink -f .package-cache/v6/npm-optipng-bin-*/node_modules/optipng-bin/vendor)/optipng


# Update bundled mozjpeg
mozjpeg_dir=$(readlink -f .package-cache/v6/npm-mozjpeg-*/node_modules/mozjpeg/)
cp -a %{SOURCE7} ${mozjpeg_dir}/vendor/source/mozjpeg.tar.gz
%patch100 -p0 -d ${mozjpeg_dir}/lib

# Patch glob-parent
globparent_dir=$(readlink -f .package-cache/v6/npm-glob-parent-*/node_modules/glob-parent/)
%patch101 -p0 -d ${globparent_dir}

%build
(
cd web
YARN_CACHE_FOLDER="$PWD/../.package-cache" yarn install --offline
yarn run bundle
rm -rf node_modules
)

g++ -o %{name}-qt %{SOURCE3} %{optflags} $(pkg-config --cflags --libs Qt5Core Qt5Widgets Qt5Network Qt5WebEngineWidgets)
make docs


%install
mkdir -p %{buildroot}%{_prefix}/lib/
cp -a web %{buildroot}%{_prefix}/lib/%{name}

# Local config
cat > %{buildroot}%{_prefix}/lib/%{name}/config_local.py <<EOF
from config import *
HELP_PATH = '%{_defaultdocdir}/%{name}/html/'
EOF

for size in 16 32 48 64 128; do
    install -Dpm 0644 pkg/linux/%{name}-${size}x${size}.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
done
install -Dpm 0755 %{name}-qt %{buildroot}%{_bindir}/%{name}-qt
install -Dpm 0644 pkg/linux/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dpm 0644 %{SOURCE4} %{buildroot}%{_metainfodir}/org.postgresql.pgadmin4.metainfo.xml
install -Dpm 0644 %{SOURCE5} %{buildroot}%{_datadir}/pgadmin4-qt/pgadmin4-qt.svg

# Apache/WSGI config
mkdir -p %{buildroot}%{_localstatedir}/lib/pgadmin
mkdir -p %{buildroot}%{_localstatedir}/var/log/pgadmin
install -Dpm 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/httpd/conf.d/pgadmin4.conf

%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.postgresql.pgadmin4.metainfo.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6093 |21cr|pgagent-4.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Job scheduler for PostgreSQL
Name:		pgagent
Version:	4.2.2
Release:	1
License:	PostgreSQL and MIT and ISC and BSD and ASL 2.0 and CC-BY and CC0 and WTFPL and zlib and GPLv2 and GPLv3+ and Python
Group:		Databases
Url:		https://github.com/pgadmin-org/pgagent
Source0:	https://github.com/pgadmin-org/pgagent/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	pkgconfig(libpq)

%description
Job scheduler for PostgreSQL.

%files
%doc README
%doc LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}.sql
%{_datadir}/postgresql/extension/%{name}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_prefix}/{LICENSE,README}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6094 |21cr|pgfouine-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude /usr/bin/php

Name:	 pgfouine
Version: 1.2
Release: 7
Summary: PostgreSQL log analyzer

License: GPL
Group:   System/Servers
Source0: %{name}-%{version}.tar.gz
URL:     http://pgfouine.projects.postgresql.org
Requires: postgresql-server
Requires: php-cli
Buildarch: noarch

%description
pgFouine is a PostgreSQL log analyzer used to generate 
detailed reports from a PostgreSQL log file. pgFouine 
can help you to determine which queries you should
optimize to speed up your PostgreSQL based application.

%prep
%setup -q -n  %{name}-%{version}

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
mkdir -p %{buildroot}%{_libdir}/%{name}
install -m 755 pgfouine.php %{buildroot}%{_bindir}
cp -r include %{buildroot}%{_libdir}/%{name}
install -m 644 AUTHORS ChangeLog COPYING INSTALL README THANKS %{buildroot}%{_docdir}/%{name}-%{version}
cp -r tests %{buildroot}%{_docdir}/%{name}-%{version}

%clean

%files
%{_bindir}/*
%{_docdir}/%{name}-%{version}
%{_libdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6095 |21cr|pgmfindclip-1.13-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pgmfindclip
Version:	1.13
Release:	6
Summary:	A clipping values calculator for your ripping tasks
License:	GPL
Group:		Video
URL:		http://www.lallafa.de/bp/pgmfindclip.html
Source0:	http://www.lallafa.de/bp/files/%{name}-%{version}.tar.bz2
Source1:	http://www.lallafa.de/bp/pgmfindclip.html.bz2
Requires:	transcode

%description
This tool tries to find a suitable clipping border for a series of gray
images. It is very useful to automatically extract clipping values for
transcoding a movie if the source frame is encoded with black bars.

A border around an image is defined by a rectangular and homogenous
valued area extending from each edge of the image (e.g. the black bars
around a movie frame). For each image the largest clip border is
determined and the smallest common region of the image series is
returned. Empty images or images with no valid clipping region are
ignored.

To cope with noisy regions in the black border areas, the region finding
algorithm does not simply cut away all regions with purely zero values,
but it uses a threshold in the absolut gradient sum along rows and
columns as a hint for the begin of real image contents.

You need a frame processing tool like transcode to actually perform the
clipping operation.

The program assumes that all images have the same size!

This package is in restricted because it is related to DVD ripping.

%prep
%setup -c
bzcat %{SOURCE1} > index.html

%build
%__perl -pi -e 's/gcc/gcc %{optflags}/' Makefile
%make

%install
%__rm -rf %{buildroot}
%__install -d -m 755 %{buildroot}%{_bindir}
%__install -m 755 %{name} %{buildroot}%{_bindir}

%clean
%__rm -rf %{buildroot}

%files
%doc *.html
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6096 |21cr|pgmodeler-0.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             pgmodeler
Version:          0.9.4
Release:          1
Summary:          PostgreSQL Database Modeler
License:          GPLv3
URL:              https://pgmodeler.io/
Group:            Development/Databases
Source0:          https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# https://github.com/pgmodeler/pgmodeler/issues/618
Source1:          %{name}.desktop
Source2:          %{name}-mime-dbm.xml

BuildRequires:    qt5-devel
BuildRequires:    pkgconfig(gl)
BuildRequires:    pkgconfig(Qt5Svg)
BuildRequires:    pkgconfig(libxml-2.0)
BuildRequires:    pkgconfig(libpq)
BuildRequires:    desktop-file-utils, gettext

# subpackage devel was removed
Obsoletes: %{name}-devel < 0.9.4
Conflicts: %{name}-devel < 0.9.4

%description
PostgreSQL Database Modeler, or simply, pgModeler is an
open source tool for modeling databases that merges the classical
concepts of entity-relationship diagrams with specific features that
only PostgreSQL implements. The pgModeler translates the models created
by the user to SQL code and apply them onto database clusters (Version
9.x).

%prep
%autosetup -p1

grep -q 'check-update="true"' assets/conf/pgmodeler.conf
sed -i'' -e 's,check-update="true",check-update="false",g' assets/conf/pgmodeler.conf

%build
%qmake_qt5 -recursive \
    PREFIX=%{_prefix} \
    BINDIR=%{_bindir} \
    PRIVATEBINDIR+=%{_libexecdir} \
    PLUGINSDIR=%{_libdir}/%{name}/plugins \
    SHAREDIR=%{_datadir}/%{name} \
    DOCDIR=%{_docdir}/%{name} \
    PRIVATELIBDIR+=%{_libdir}/%{name} \
        %{name}.pro

%make

%install
%makeinstall_qt

desktop-file-install --mode 644 \
    --dir %{buildroot}%{_datadir}/applications/ %{SOURCE1}

install -p -dm 755 %{buildroot}%{_datadir}/icons
install -p -m 644 assets/conf/%{name}_logo.png %{buildroot}%{_datadir}/icons/%{name}.png

install -p -dm 755 %{buildroot}%{_datadir}/mime/packages
install -p -m 644 %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/%{name}.xml

rm -f %{buildroot}%{_datadir}/%{name}/conf/%{name}.conf.0000
# installed by %%license
rm -fv %{buildroot}%{_datadir}/doc/%{name}/LICENSE

%files
%license
%doc CHANGELOG.md README.md RELEASENOTES.md
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_libexecdir}/%{name}-ch
%{_libexecdir}/%{name}-se
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/icons/%{name}.png
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6097 |21cr|pgn-extract-17.14-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarballversion %(echo %{version}|sed -e 's|\\.|-|') 

Summary:	Portable Game Notation (PGN) Manipulator for Chess Games
Name:		pgn-extract
Version:	17.14
Release:	6
License:	GPLv2
Group:		Games/Boards
URL:		http://www.cs.kent.ac.uk/people/staff/djb/pgn-extract/
Source0:	pgn-extract-%{tarballversion}.tgz
# (Abel) 15.0-1mdk neater help message
#Patch1:		pgn-extract-15.0-help-mesg.patch

%description
Its purpose is for manipulating chess games written in the Portable
Game Notation (PGN).

There are several ways to specify the criteria on which to extract:
textual move sequences, the position reached after a sequence
of moves, information in the tag fields, and material balance in
the ending.

Extracted games may be written out either including or
excluding comments, NAGs, and variations. Games may be given ECO
classifications derived from the accompanying file eco.pgn, or a
customised version provided by the user.

%prep
%setup -q -n %{name}-%{tarballversion}
#patch1 -p1 -b .helpmsg

%build
%make OPTIMIZE="%{optflags}"

%install
install -D -m 755 pgn-extract %{buildroot}%{_gamesbindir}/pgn-extract

%files
%doc help.html eco.pgn
%{_gamesbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6098 |21cr|pg_pathman-1.5.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pgmajorversion 12

Summary:	Partitioning tool for PostgreSQL
Name:		pg_pathman
Version:	1.5.12
Release:	1
Group:		Databases
License:	PostgreSQL
Source0:	https://github.com/postgrespro/%{name}/archive/%{version}.tar.gz
URL:		https://github.com/postgrespro/%{name}
BuildRequires:	postgresql-devel >= 12.0
Requires:	postgresql-server >= 12.0
Requires:	python3-psycopg2

%description
The pg_pathman module provides optimized partitioning mechanism and functions
to manage partitions.

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%make USE_PGXS=1 %{?_smp_mflags}

%install
mkdir -p  %{buildroot}%{_datadir}/postgresql/doc/extension/
cp README.md %{buildroot}%{_datadir}/postgresql/doc/extension/README-%{name}.md

make USE_PGXS=1 %{?_smp_mflags} install DESTDIR=%{buildroot}

%files
%defattr(644,root,root,755)
%doc %{_datadir}/postgresql/doc/extension/README-%{name}.md
%{_libdir}/postgresql/pg_pathman.so
%{_datadir}/postgresql/extension/pg_pathman*.sql
%{_datadir}/postgresql/extension/pg_pathman.control

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6099 |21cr|phalanx-25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Chess Engine
Name:		phalanx
Version:	25
Release:	1
License:	GPLv2
Group:		Games/Boards
URL:		http://dusan.freeshell.org/phalanx/
Source0:	http://downloads.sourceforge.net/project/phalanx/Version%20XXIII%20Beta/phalanx-XXIII-beta.tgz
Source1:	sbook.phalanx.bz2
Source2:	learn.phalanx.bz2
Source3:	phalanx.sh.bz2
Patch0:		phalanx-23-rosa-format-security.patch
Provides:	chessengine

# TODO: either exclusivearch or regen opening books.
#       phalanx opening books are big/little endian sensitive

%description
Phalanx is a chess engine. It contains a text interface for playing
chess. Though it does not have any graphical interface, one can use
it inside some GUI chess interface such as Xboard or CSBoard,
serving as a chess engine.

%prep
%setup -q -n phalanx-XXIII

mv sbook.phalanx sbook.phalanx.bak
bzip2 -dc %{SOURCE1} > sbook.phalanx
bzip2 -dc %{SOURCE2} > learn.phalanx
bzip2 -dc %{SOURCE3} > phalanx.sh

%patch0 -p1

%build
%make CFLAGS='%optflags -ffast-math' \
	DEFINES='-DGNUFUN -DPBOOK_DIR=\"%{_gamesdatadir}/%{name}\" -DSBOOK_DIR=\"%{_gamesdatadir}/%{name}\" -DECO_DIR=\"%{_gamesdatadir}/%{name}\"'

%install
install -D -m 755 phalanx %{buildroot}%{_gamesbindir}/phalanx.real
install -D -m 755 phalanx.sh %{buildroot}%{_gamesbindir}/phalanx

# install opening books
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
install -m 644 eco.phalanx pbook.phalanx sbook.phalanx learn.phalanx %{buildroot}%{_gamesdatadir}/%{name}/

%files
%doc HISTORY README
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6100 |21cr|phasex-0.14.97-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Phase Harmonic Advanced Synthesis EXperiment
Name:		phasex
Version:	0.14.97
Release:	3
License:	GPLv3+
Group:		Sound
Url:		https://github.com/williamweston/phasex
Source0:	https://github.com/williamweston/phasex/archive/%{name}-%{version}.tar.gz
Patch0:		phasex-0.14.97-use-ladish-instead-of-lash.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(liblash)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(uuid) >= 2.16
ExclusiveArch:	%{ix86} %{x86_64}

%description
Experimental JACK audio / ALSA MIDI softsynth for Linux with a synth engine
built around flexible phase modulation and flexible oscillator/LFO sourcing.
Modulations include AM, FM, offset PM, and wave select. It comes equipped with
a 12db/octave filter with two distortion curves, a stereo crossover delay and
chorus with phaser, ADSR envelopes for amplifier and filter, real-time audio
input processing capabilities, velocity/aftertouch sensitivity, and more.

%files
%doc AUTHORS ChangeLog COPYING GPL-3.0.txt LICENSE README TODO doc/ROADMAP
%{_bindir}/%{name}
%{_bindir}/%{name}-convert-patch
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/help
%dir %{_datadir}/%{name}/pixmaps
%dir %{_datadir}/%{name}/sys-midimaps
%dir %{_datadir}/%{name}/sys-patches
%dir %{_datadir}/%{name}/sys-samples
%dir %{_datadir}/themes/Phasex-Dark
%dir %{_datadir}/themes/Phasex-Light
%{_datadir}/%{name}/patchbank
%{_datadir}/%{name}/gtkenginerc
%{_datadir}/%{name}/help/*
%{_datadir}/%{name}/pixmaps/*
%{_datadir}/%{name}/sys-midimaps/*
%{_datadir}/%{name}/sys-patches/*
%{_datadir}/%{name}/sys-samples/*
%{_datadir}/themes/Phasex-Dark/*
%{_datadir}/themes/Phasex-Light/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}-icon.png
%{_datadir}/icons/hicolor/*/apps/%{name}-icon.svg
%{_datadir}/pixmaps/*.png
%{_datadir}/pixmaps/*.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure --enable-arch=native
%make


%install
%makeinstall_std

# Rename and put icon files in the right place...
for s in 16 22 24 32 36 48 64 72 96 128 256 512; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
	cp %{buildroot}%{_datadir}/%{name}/pixmaps/%{name}-icon-${s}x${s}.png \
		%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}-icon.png
done
# ... and drop the old ones
for s in 16 22 24 32 36 48 64 72 96 128 256 512; do
	rm -f %{buildroot}%{_datadir}/%{name}/pixmaps/%{name}-icon-${s}x${s}.png
done

# Remove wrongly installed files from autotools...
rm -f %{buildroot}%{_datadir}/%{name}/{compile,depcomp,install-sh,missing,version-sh}
# ...and useless developer doc
rm -f %{buildroot}%{_datadir}/doc/%{name}/release-checklist.txt
rm -f %{buildroot}%{_datadir}/doc/%{name}/signal-diagram.txt

# Fix the provided desktop file
desktop-file-edit	--set-icon="%{name}-icon" \
					--remove-key=Version \
					%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6101 |21cr|phat-0.3.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Widgets for audio applications
Name:		phat
Version:	0.3.1
Release:	12
License:	GPL+
Group:		System/Libraries
# Upstream's dead, RIP...no source location
Source0:	%{name}-%{version}.tar.bz2
Patch0:		phat-0.3.1-configure.patch
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libgnomecanvas-2.0)

%description
PHAT is a collection of GTK+ widgets geared toward pro-audio apps. The goal
is to eliminate duplication of effort and provide some standardization
(well, at least for GTK+ apps).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Widgets for audio applications
Group:		System/Libraries

%description -n %{libname}
PHAT is a collection of GTK+ widgets geared toward pro-audio apps. The goal
is to eliminate duplication of effort and provide some standardization
(well, at least for GTK+ apps).

%files -n %{libname}
%{_libdir}/libphat.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libraries from %{name}.

%files -n %{devname}
%{_bindir}/*
%{_libdir}/libphat.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6102 |21cr|phlipple-0.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           phlipple
Version:        0.8.5
Release:        1
Summary:        Phlipping squares will never be the same again
License:        GPLv3+
Group:          Games/Puzzles
Url:            https://sourceforge.net/projects/phlipple/
# http://downloads.sourceforge.net/project/phlipple/phlipple-0.8.5.tar.gz
Source0:         %{name}-%{version}.tar.gz
# import from Sid
Source1:        %{name}.6
Patch0:         gcc10.patch
Patch1:         link-libm.patch

BuildRequires:  pkgconfig(osmesa)
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  imagemagick
BuildRequires:  desktop-file-utils

%description
Phlipple is a unique puzzle game. 
The goal of every level is to reduce a 
3D shape to a single square. 
Elimination of squares is done by 
flipping edges around just like in a cardboard box.
It starts off relatively easy to teach the 
basics just to later on serve hours of brain 
tickling fun. It's a great way to train 
memory as well as orientation in 3D.

%files
%{_defaultdocdir}/%{name}/
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/phlipple.6*
#--------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure docdir="%{_docdir}/%{name}" \
      bindir=%{_gamesbindir} \
      datadir=%{_gamesdatadir} \
      --disable-dependency-tracking
%make

%install
%makeinstall_std
# Icons
rm -fr %{buildroot}%{_gamesdatadir}/{pixmaps,applications}
for size in 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size extra/%{name}.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done
# Menu entry
desktop-file-install extra/%{name}.desktop \
    --dir=%{buildroot}%{_datadir}/applications
    
# Man pages
mkdir -p %{buildroot}%{_mandir}/man6
install -m644 %{S:1} %{buildroot}%{_mandir}/man6/


rm %{buildroot}%{_docdir}/%{name}/{NEWS,INSTALL}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6103 |21cr|phmap-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A war dialer
Name:		phmap
Version:	1.0
Release:	13
Group:		Monitoring
License:	GPL
URL:		http://www.atnum.com/~sephail/devel/proj/phmap.htm
Source0:	%{name}-%{version}.tar.bz2

%description
Phmap is a "war dialer" used for detecting which phone numbers in
a list have an active carrier signal. An example use of this
program is detecting which local BBS servers still exist.

%prep

%setup -q -n %{name}-%{version}

%build

%make CFLAGS="%{optflags}"

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m755 %{name} %{buildroot}%{_bindir}/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%attr(755,root,root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6104 |21cr|phoc-0.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with system_wlroots

Summary:	Pure wayland shell for mobile devices
Name:		phoc
Version:	0.26.0
Release:	1
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/World/Phosh/phoc
Source0:	https://gitlab.gnome.org/World/Phosh/phoc/-/archive/v%{version}/%{name}-v%{version}.tar.gz
# see commits hash in https://gitlab.gnome.org/World/Phosh/phoc/-/tree/main/subprojects
Source1:	https://gitlab.gnome.org/guidog/gmobile/-/archive/f4d4e5740c3e4b2de40864ab8a9e7b7f957d6aec/gmobile-f4d4e5740c3e4b2de40864ab8a9e7b7f957d6aec.tar.gz
Source2:	https://source.puri.sm/Librem5/wlroots/-/archive/1f8bb9e0e3058fc31a14866dc52e8f83c1287a09/wlroots-1f8bb9e0e3058fc31a14866dc52e8f83c1287a09.tar.gz
BuildRequires:	glslang
BuildRequires:	meson
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(libseat)
BuildRequires:	pkgconfig(vulkan)
#BuildRequires:	pkgconfig(xcb-errors) # not in repo
%if %{with system_wlroots}
BuildRequires:	pkgconfig(wlroots)
%endif
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-renderutil)
BuildRequires:	pkgconfig(xwayland)

%description
Pure wayland shell for mobile devices.

%files
%doc README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/glib-2.0/schemas/sm.puri.%{name}.gschema.xml

#----------------------------------------------------------------------------
%if %{without system_wlroots}
%define major 10
%define libname %mklibname wlroots %{major}

%package -n %{libname}
Summary:	Lightweight KMS plane library
Group:		System/Libraries

%description -n %{libname}
A modular Wayland compositor library.
Additional version for phoc.

%files -n %{libname}
%{_libdir}/libwlroots.so.%{major}*
%endif
#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-v%{version} -a1 -a2
%apply_patches

cp -r ./gmobile*/* ./subprojects/gmobile/
cp -r ./wlroots*/* ./subprojects/wlroots/

%build
%meson	\
	-Ddev-uid=500	\
%if %{with system_wlroots}
	-Dembed-wlroots=disabled
%else
	-Dembed-wlroots=enabled
%endif

%meson_build

%install
%meson_install

%if %{without system_wlroots}
# drop wlroots devel, its provided in system wlroots project
rm -r %{buildroot}%{_includedir}
rm -r %{buildroot}%{_libdir}/pkgconfig
rm -r %{buildroot}%{_libdir}/libwlroots.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6105 |21cr|phonon-vlc-0.11.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	VLC back-end to Phonon
Name:		phonon-vlc
Version:	0.11.3
Release:	2
License:	LGPLv2+
Group:		Video
Url:		https://github.com/KDE/phonon-vlc
Source0:	https://github.com/KDE/phonon-vlc/archive/%{name}-%{version}.tar.gz
BuildRequires:	automoc4
BuildRequires:	cmake >= 3.5
BuildRequires:	extra-cmake-modules >= 5.60
BuildRequires:	pkgconfig(libvlc) >= 2.1.0
BuildRequires:	pkgconfig(phonon) >= 4.6.0
BuildRequires:	pkgconfig(phonon4qt5) >= 4.10.60
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
This package allows Phonon (the KDE media library) to use VLC for audio and
video playback.

# Support for kde4 was dropped
#files
#doc Qt4/AUTHORS Qt4/COPYING.LIB
#{_libdir}/kde4/plugins/phonon_backend/phonon_vlc.so
#{_datadir}/kde4/services/phononbackends/vlc.desktop

#----------------------------------------------------------------------------

%package -n phonon4qt5-vlc
Summary:	VLC back-end to Phonon (Qt5)
Group:		Sound
Provides:	phonon-backend = %{EVRD}
Provides:	phonon4qt5-backend = %{EVRD}
# Making this a Requires pulls in all vlc when building
Recommends:	vlc-plugin-pulse
%rename	phonon-vlc

%description -n phonon4qt5-vlc
This package allows Phonon Qt5 (the KDE media library) to use VLC for audio
and video playback.

%files -n phonon4qt5-vlc
%doc AUTHORS COPYING.LIB
%{_qt5_plugindir}/phonon4qt5_backend/phonon_vlc.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
%cmake_qt5
%make


%install
%makeinstall_std -C build

# Put the plugin in the right place
mkdir -p %{buildroot}%{_qt5_plugindir}
mv %{buildroot}%{_libdir}/plugins/phonon4qt5_backend %{buildroot}%{_qt5_plugindir}
rmdir %{buildroot}%{_libdir}/plugins

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6106 |21cr|phoronix-test-suite-10.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Comprehensive Linux Benchmarking System
Name:		phoronix-test-suite
Version:	10.8.4
Release:	1
License:	GPLv3
Group:		Publishing
Url:		http://www.phoronix-test-suite.com
Source0:	https://github.com/phoronix-test-suite/phoronix-test-suite/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		phoronix-test-suite-5.8.1-install.patch
Requires:	php-cli
Requires:	php-fpdf
Recommends:	git
Recommends:	gcc-gfortran
Recommends:	java
Recommends:	php-gd
Recommends:	scons
Recommends:	tcsh
Recommends:	freeimage-devel
Recommends:	libaio-devel
Recommends:	perl-devel
Recommends:	SDL_sound-devel
Recommends:	task-c-devel
Recommends:	task-c++-devel
Recommends:	X11-devel
Recommends:	pkgconfig(fftw3)
Recommends:	pkgconfig(glew)
Recommends:	pkgconfig(gtk+-2.0)
Recommends:	pkgconfig(imlib2)
Recommends:	pkgconfig(libcurl)
Recommends:	pkgconfig(libopenjpeg1)
Recommends:	pkgconfig(libpng)
Recommends:	pkgconfig(openal)
Recommends:	pkgconfig(popt)
Recommends:	pkgconfig(portaudio-2.0)
Recommends:	pkgconfig(sdl)
Recommends:	pkgconfig(SDL_gfx)
Recommends:	pkgconfig(SDL_image)
Recommends:	pkgconfig(SDL_net)
Recommends:	pkgconfig(SDL_ttf)
Recommends:	pkgconfig(vorbis)
BuildArch:	noarch

%description
The Phoronix Test Suite is the most comprehensive testing and benchmarking 
platform available for Linux and is designed to carry out qualitative and 
quantitative benchmarks in a clean, reproducible, and easy-to-use manner.

%files
%doc AUTHORS ChangeLog README.md documentation/*
%license COPYING
%{_bindir}/%{name}
%{_datadir}/appdata/*.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/phoronix-test-suite-launcher.desktop
%{_datadir}/mime/packages/openbenchmarking-mime.xml
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_iconsdir}/hicolor/64x64/mimetypes/application-x-openbenchmarking.png
%{_mandir}/man1/%{name}.1*
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
%{_unitdir}/phoromatic-client.service
%{_unitdir}/phoromatic-server.service
%{_unitdir}/phoronix-result-server.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i "s:^#!/bin/s$:#!/bin/sh:" ob-cache/test-profiles/pts/natron-1.0.0/install.sh
sed -i "s:#!/usr/bin/env bash$:#!/bin/sh:" \
	ob-cache/test-profiles/pts/build-clash-1.0.1/install.sh	\
	ob-cache/test-profiles/pts/build-clash-1.0.2/install.sh	\
	ob-cache/test-profiles/pts/ddnet-1.2.1/install.sh
sed -i "1i#!/bin/sh" \
	ob-cache/test-profiles/pts/rav1e-1.2.0/install.sh	\
	ob-cache/test-profiles/pts/rav1e-1.3.0/install.sh	\
	ob-cache/test-profiles/pts/rav1e-1.3.1/install.sh	\
	ob-cache/test-profiles/pts/wrf-1.0.0/install.sh		\
	ob-cache/test-profiles/pts/wrf-1.0.1/install.sh

%build

%install
mkdir -p %{buildroot}%{_prefix}
./install-sh %{buildroot}%{_prefix}
sed -i "s|%{buildroot}||g" %{buildroot}%{_bindir}/%{name}

chmod +x %{buildroot}%{_datadir}/%{name}/*/*/*/*/*.sh

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Phoronix Test Suite
Comment=Phoronix Test Suite Benchmarking Utility
Exec=%{_bindir}/%{name} gui
Icon=%{name}
Terminal=false
Type=Application
Encoding=UTF-8
StartupNotify=true
Categories=GTK;System;Monitor;X-MandrivaLinux-CrossDesktop;
EOF

rm -f %{buildroot}%{_datadir}/%{name}/pts-core/static/dynamic-result-viewer/.htaccess
rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6107 |21cr|phosh-0.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Pure wayland shell for mobile devices
Name:		phosh
Version:	0.26.0
Release:	2
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/phosh
Source0:	https://download.gnome.org/sources/phosh/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	phosh
BuildRequires:	meson
BuildRequires:	pkgconfig(evince-document-3.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcallaudio-0.1)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libfeedback-0.0)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(upower-glib)
Requires:	phoc

%description
Pure wayland shell for mobile devices.

%files -f %{name}.lang -f call-ui.lang
%doc README.md
%license COPYING
%{_bindir}/%{name}-session
%{_datadir}/applications/sm.puri.Phosh.desktop
%{_datadir}/dbus-1/services/sm.puri.Phosh.CalendarServer.service
%{_datadir}/glib-2.0/schemas/00_sm.puri.Phosh.gschema.override
%{_datadir}/glib-2.0/schemas/sm.puri.%{name}.*.xml
%{_datadir}/gnome-session/sessions/%{name}.session
%{_datadir}/%{name}
%{_datadir}/wayland-sessions/%{name}.desktop
%{_datadir}/xdg-desktop-portal/portals/%{name}.portal
%{_iconsdir}/hicolor/symbolic/apps/sm.puri.Phosh-symbolic.svg
%{_libdir}/%{name}
%{_libexecdir}/%{name}*
%{_sysconfdir}/pam.d/%{name}
%{_unitdir}/%{name}.service
%{_userunitdir}/gnome-session@phosh.target.d
%{_userunitdir}/sm.puri.Phosh.*

#----------------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/Other

%description devel
Pure wayland shell for mobile devices. Development files.

%files devel
%{_libdir}/pkgconfig/phosh-plugins.pc
%{_includedir}/phosh/phosh-plugin.h
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
	-Dcallui-i18n=true	\
	-Dsystemd=true		\
	-Dtools=true
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}/pam.d
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d

mkdir -p %{buildroot}%{_unitdir}
cp data/%{name}.service %{buildroot}%{_unitdir}/%{name}.service

%find_lang %{name}
%find_lang call-ui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6108 |21cr|photofilmstrip-4.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	PFS

Summary:	A program to make slide-show from pictures
Name:		photofilmstrip
Version:	4.0.0
Release:	3
License:	GPLv2+
Group:		Video
Url:		http://www.photofilmstrip.org/1-1-Home.html
Source0:	https://github.com/PhotoFilmStrip/PFS/releases/download/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	python3-sphinx
BuildRequires:	pkgconfig(python3)
Requires:	python3
Requires:	python3-gstreamer1.0
Requires:	python3dist(pillow)
Requires:	python3dist(wxpython)
Requires:	typelib(GES) = 1.0
Requires:	typelib(Gst) = 1.0
Requires:	typelib(GstVideo) = 1.0
BuildArch:	noarch

%description
PhotoFilmStrip is a software to make movies out of your pictures in just 3
steps. First select your photos, customize the motion path and render the
video. There are several output possibilities for VCD, SVCD, DVD up to
FULL-HD. The effect of the slide-show is known as "Ken Burns". Comments of the
pictures are generated into a subtitle file. Furthermore an audio file can be
specified to setup the background music for the slide show. It has also the
opportunity to render slide shows in Full-HD (1920x1080) resolution.

%files
%doc build/sphinx/html/*
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/%{name}-*.egg-info
%{_datadir}/%{name}/audio/*.mp3
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-cli.1*

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}


%build
#py3_build
%{_bindir}/python3 setup.py build sdist


%install
%py3_install

# Install the man pages provided by the sources
mkdir -p %{buildroot}%{_mandir}/man1
cp docs/manpage/*.1 %{buildroot}%{_mandir}/man1/

# Fix .desktop file
desktop-file-edit --remove-key="Version" %{buildroot}%{_datadir}/applications/%{name}.desktop

# Fix perms
chmod +x %{buildroot}%{py3_puresitedir}/%{name}/{CLI,GUI}.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6109 |21cr|photoflare-1.6.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:           photoflare
Version:	1.6.10
Release:	1
Summary:        Quick, simple but powerful Cross Platform image editor
License:        GPL3
Group:          Graphics
URL:            http://photoflare.io/
Source0:        https://github.com/PhotoFlare/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  qt5-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  desktop-file-utils
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig(GraphicsMagick)
BuildRequires:  qmake5
BuildRequires:  rpm-helper
BuildRequires:  qt5-tools
BuildRequires:  qt5-qttranslations
BuildRequires:  qt5-linguist-tools

%description
Quick, simple but powerful Cross Platform image editor.

%prep
%setup -q

%build
%qmake_qt5 PREFIX=/usr
%make

%install
mkdir -p %{buildroot}%{_bindir}
%makeinstall_std INSTALL_ROOT=%{buildroot}

# We dont need this:
rm -rf %{buildroot}%{_datadir}/pixmaps/photoflare.png

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/photoflare.png
%{_mandir}/man1/%{name}.1.xz
%{_datadir}/metainfo/io.%{name}.%{name}.appdata.xml
%{_datadir}/%{name}/languages/*.qm
#{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6110 |21cr|photon-0.4.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname    Photon

Name:           photon
Version:        0.4.6
Release:        12
Summary:        Static HTML gallery generator
Source:         http://www.saillard.org/programs_and_patches/photon/files/%{srcname}-%{version}.tar.bz2
Url:            http://www.saillard.org/photon/
License:        GPL
Group:          Graphics
BuildRequires:  python2-devel
BuildArch:      noarch

%description
Photon is a photo album with a clean design.
Features:
* static HTML pages (you can put all pages and images on a CD-ROM)
* slideshow (use javascript optional)
* can use gimp to resize picture
* navigation between the image can use the keyboard (use javascript optional)
* works in any browser (Mozilla, Netscape Navigator 4.x, Konqueror, Opera)
* Each image can have a comment (with HTML tags)
* Information about the image (if taken from a digital picture) can be draw
* thumbnail image size can be chosen by the user
* output images can be scalled down
* control the number of thumbnail in a page.

%prep
%setup -q -n %{srcname}-%{version}

%build
%py2_build

%install
%py2_install

%files
%doc ChangeLog README BUGS
%{_bindir}/%{name}
%{python2_sitelib}/%{srcname}
%{python2_sitelib}/Photon-%{version}-py*.egg-info
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6111 |21cr|photoqt-2.9.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Image viewer with a simple and fast interface
Name:		photoqt
Version:	2.9.1
Release:	5
License:	GPLv3+
Group:		Graphics
Url:		https://photoqt.org/
Source0:	https://photoqt.org/downloads/source/%{name}-%{version}.tar.gz
BuildRequires:	appstream-util
BuildRequires:	cmake >= 3.16
BuildRequires:	desktop-file-utils
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	python3egg(pychromecast)
# Dependencies conflict with openexr-devel
#BuildRequires:	freeimage-devel
BuildRequires:	qt5-qtimageformats-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(IL)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(mpv)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(vips)

Requires:	graphicsmagick
Requires:	kimageformats
Requires:	qt5-database-plugin-sqlite
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols-qml
Requires:	qml(QtMultimedia)
Recommends:		unrar

%description
Image viewer with a simple and fast interface, being good looking and highly
configurable.

%files
%doc CHANGELOG README.md
%license COPYING
%{_bindir}/%{name}
%{_appdatadir}/*.xml
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png

#---------------------------------------------------

%prep
%setup -q


%build
%cmake_qt5 -DFREEIMAGE=OFF \
    -DVIDEO_MPV=ON \
    -DLIBVIPS=ON
%make


%install
%makeinstall_std -C build


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6112 |21cr|photostock-helper-0.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GTK2 tool to define photostock IPTC tags and upload images to many photostocks
Name:		photostock-helper
Version:	0.0.1
Release:	4
License:	GPLv3
Group:		Graphics
Url:		https://launchpad.net/photostock-helper
# repack from launchpad
Source0:	%{name}-%{version}.tar.bz2
Patch0:		photostock-helper-0.0.1-datapath.patch
BuildArch:	noarch

%description
PhotoStock Helper is a small GTK2-perl application that helps to define usual
photostock IPTC tags (headline, description, keywords) and upload photographs
to many photostocks at once.

%prep
%setup -q
%patch0 -p1

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{name}.pl %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 0644 %{name}.glade %{buildroot}%{_datadir}/%{name}/%{name}.glade

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=PhotoStock Helper
Comment=GTK2 tool to define photostock IPTC tags and upload images to many photostocks
Exec=%{_bindir}/%{name}
Icon=go-up
Terminal=false
Type=Application
Categories=Graphics;
EOF

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6113 |21cr|phototonic-2.1.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# gitrev (as reported by git describe) is used as version minor for snapshots
%define gitrev %(echo %{version} |cut -d. -f3)

Summary:	An image viewer and organizer
Name:		phototonic
Version:	2.1.10
Release:	2
License:	GPLv3+
Group:		Graphics
Url:		https://github.com/oferkv/phototonic
Source0:	%{name}-%{version}.tar.gz
# Run ./mk-tar-git-rev in SOURCES to create snapshot tarball
Source1:	mk-tar-git-rev
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
Recommends:	%{_lib}qt5svg5
Recommends:	qt5-imageformats-plugins

%description
Phototonic is an image viewer and organizer with the following features:
* Light weight with a smooth and clear user interface
* Does not depend on any desktop environment
* Supports several customized thumbnail layouts
* Load thumbnails and browse images recursively
* Dynamic thumbnails loading, enabling fast browsing of very large folders
* Filter thumbnails
* Image navigation and file management
* Slide show
* View random image
* Transformation: rotation, flipping, cropping, image mirroring
* Adjust image colors
* Keep transformations zoom and colors while browsing multiple images
* Extensive automatic and manual zoom options
* Supported image formats:
  BMP, GIF, ICO, JPEG, MNG, PBM, PGM, PNG, PPM, SVG, SVGZ, TGA, TIFF, XBM, XPM
* Supports GIF animations
* Keyboard shortcuts and mouse behavior customization
* Load image files or folders from command line
* Open images with external applications

%files
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*x*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5
%make

%install
%makeinstall_qt

# Tweak upstream desktop file
desktop-file-install \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6114 |21cr|php-adodb-5.22.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Active Data Objects Data Base (ADOdb)
Name:		php-adodb
Version:	5.22.5
Release:	1
License:	BSD
Group:		Development/PHP
URL:		http://adodb.sourceforge.net/
Source0:	http://downloads.sourceforge.net/adodb/adodb-%{version}.tar.gz
BuildRequires:	unzip
BuildArch:	noarch
Epoch:		2

%description
PHP is a wonderful language for building dynamic web pages. Unfortunately,
PHP's database access functions are not standardised. Every database
extension uses a different and incompatibile API. This creates a need for a
database class library to hide the differences between the different databases
(encapsulate the differences) so we can easily switch databases. 

%prep
%setup -q -n adodb5

%build

%install
install -d %{buildroot}/var/www/icons
install -d %{buildroot}%{_datadir}/php/adodb
cp -aRf * %{buildroot}%{_datadir}/php/adodb

#install -m644 cute_icons_for_site/* %{buildroot}/var/www/icons/

# cleanup
rm -rf %{buildroot}%{_datadir}/php/adodb/cute_icons_for_site
rm -rf %{buildroot}%{_datadir}/php/adodb/docs
rm -f %{buildroot}%{_datadir}/php/adodb/*.txt

%clean

%files
%doc docs/*
%{_datadir}/php/adodb
#/var/www/icons/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6115 |21cr|php-apcu-5.1.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname apcu (APC User Cache)
%define modname apcu
%define soname %{modname}.so
%define inifile 99_%{modname}.ini

Summary:	The %{realname} module for PHP
Name:		php-apcu
Version:	5.1.21
Release:	1
License:	PHP License
Group:		Development/PHP
Url:		http://pecl.php.net/package/APCu
Source0:	http://pecl.php.net/get/apcu-%{version}.tgz
Source1:	apcu.ini
Source2:	php-apcu.config.php
Patch0:		apcu-5.1.21-default_lock_dir.patch
Patch1:		apcu-5.1.21-default_config.patch
BuildRequires:	php-devel
BuildRequires:	pkgconfig(libpcre)
Provides:	php-apc = %{EVRD}
Requires:	php(zend-abi)

%description
APCu is userland caching: APC stripped of opcode caching in preparation
for the deployment of Zend OPcache as the primary solution to opcode
caching in future versions of PHP.

APCu has a revised and simplified codebase, by the time the PECL release
is available, every part of APCu being used will have received review and
where necessary or appropriate, changes.

Simplifying and documenting the API of APCu completely removes the barrier
to maintenance and development of APCu in the future, and additionally allows
us to make optimizations not possible previously because of APC's inherent
complexity.

APCu only supports userland caching (and dumping) of variables, providing an
upgrade path for the future. When O+ takes over, many will be tempted to use
3rd party solutions to userland caching, possibly even distributed solutions;
this would be a grave error. The tried and tested APC codebase provides far
superior support for local storage of PHP variables.

%package admin
Summary:	Web admin GUI for %{realname}
Group:		Development/PHP
Requires:	%{name}
Provides:	php-apc-admin = 1:%{version}
Obsoletes:	php-apc-admin < 1:4.0

%description admin
This package contains a Web admin GUI for %{realname}.

To access the web GUI please open up your favourite web browser and point to:

http://localhost/%{name}/

%prep
%autosetup -p1 -n apcu-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

cp %{SOURCE1} %{inifile}
cp %{SOURCE2} php-apc.config.php

%build
%serverbuild

phpize

%configure

%make

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}/var/lib/php-apcu

install -m0644 %{inifile} %{buildroot}%{_sysconfdir}/php.d/%{inifile}

install -m0755 modules/apcu.so %{buildroot}%{_libdir}/php/extensions/

install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf << EOF
Alias /%{name} %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Require local granted
    ErrorDocument 403 "Access denied per %{_webappconfdir}/%{name}.conf"
</Directory>
EOF

install -m0644 apc.php %{buildroot}%{_datadir}/%{name}/index.php
install -m0644 php-apc.config.php %{buildroot}%{_sysconfdir}/%{name}/config.php

cat > README.urpmi << EOF
The actual configuration file is /etc/php-apcu/config.php.
EOF

%post admin
# generate random secret
secret=%_get_password 46

# blowfish secret
perl -pi -e "s|_PASSWORD_|$secret|g" %{_sysconfdir}/%{name}/config.php

%files
%doc tests LICENSE NOTICE TECHNOTES.txt package*.xml README.md
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/apcu.so
%attr(0755,apache,apache) /var/lib/php-apcu

%files admin
%doc README.urpmi
%config(noreplace) %{_webappconfdir}/%{name}.conf
%attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/config.php
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/index.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6116 |21cr|php-apm-2.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%global optflags %{optflags} -fcommon

%define modname apm
%define soname %{modname}.so
%define inifile B10_%{modname}.ini

Summary:	Alternative PHP Monitor
Name:		php-%{modname}
Version:	2.1.3
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/APM/
Source0:	http://pecl.php.net/get/APM-%{version}.tgz
Patch0:		APM-2.1.3-default_path.diff
Patch1:		APM-2.1.3-php7.3.patch
BuildRequires:	sqlite3-devel
BuildRequires:	mysql-devel
BuildRequires:	php-devel >= 3:5.2.0
Requires(pre):	user(apache)
Requires:	php(zend-abi) = %{php_zend_api}

%description
Monitoring extension for PHP, collects error events and store them in a local
SQLite database.

%files
%doc AUTHORS LICENSE NEWS apm.ini package*.xml
%config(noreplace) %attr(0640,apache,apache) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}
%attr(0750,apache,apache) /var/lib/php-apm

#-------------------------------------------------------------
%prep

%autosetup -p1 -n APM-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .


%build
%serverbuild

export APM_SHARED_LIBADD="-lmysqlclient -lz -lsqlite3"
phpize
%configure \
    --with-libdir=%{_lib} \
    --with-sqlite3=%{_prefix} \
    --with-mysql=%{_prefix} \
    --with-zlib-dir=%{_prefix} \
    --with-%{modname}=shared,%{_prefix}

# use the correct version
echo "#define APM_VERSION \"%{version}%{pre_rel}\"" >> config.h

%make
mv modules/*.so .

%install

install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}/var/lib/php-apm

install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/
install -m0644 apm.ini %{buildroot}%{_sysconfdir}/php.d/%{inifile}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6117 |21cr|php-bitset-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname bitset
%define soname %{modname}.so
%define inifile A84_%{modname}.ini

Summary:	BITSET library
Name:		php-%{modname}
Version:	3.0.1
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/bitset/
Source0:	http://pecl.php.net/get/bitset-%{version}.tgz
BuildRequires:	php-devel >= 3:5.2.0
Requires:	php(zend-abi) = %{php_zend_api}

%description
Sets of bits manipuliting library.

%prep

%setup -q -n %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv -f ../package*.xml .

# lib64 fixes
perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install

install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

%files 
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6118 |21cr|php-channel-horde-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pear_xmldir %{_datadir}/pear/packages

Name:           php-channel-horde
Version:        1.0
Release:        2
Summary:        Adds pear.horde.org channel to PEAR
Group:          Development/PHP
License:        Public Domain
URL:            http://pear.horde.org/
Source0:        http://pear.horde.org/channel.xml

BuildArch:      noarch
BuildRequires:  php-pear
Requires:       php-pear
Requires(post): /usr/bin/pear
Requires(postun): /usr/bin/pear
Provides:       php-channel(pear.horde.org)

%description
This package adds the pear.horde.org channel which allows PEAR packages
from this channel to be installed.


%prep
%setup -q -c -T


%build
# Empty build section, nothing to build


%install
# see https://abf.io/import/php-pear/blob/rosa2021.1/php-pear.spec#lc-182
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{SOURCE0} %{buildroot}%{pear_xmldir}/pear.horde.org.xml


%post
if [ $1 -eq  1 ] ; then
   pear channel-add %{pear_xmldir}/pear.horde.org.xml > /dev/null || :
else
   pear channel-update %{pear_xmldir}/pear.horde.org.xml > /dev/null ||:
fi


%postun
if [ $1 -eq 0 ] ; then
   pear channel-delete pear.horde.org > /dev/null || :
fi


%files
%{pear_xmldir}/pear.horde.org.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6119 |21cr|php-channel-phpunit-1.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define pear_xmldir  /var/lib/pear

Name:		php-channel-phpunit
Version:		1.3
Release:		12
Summary:		Adds phpunit channel to PEAR
Group:		Development/PHP
License:		BSD
URL:		http://pear.phpunit.de
Source0:		http://pear.phpunit.de/channel.xml
BuildRequires:	php-pear
Requires(pre): php-cli
Requires(pre): php-pear
Requires(postun): php-pear
Requires:	php-pear
BuildArch:	noarch


%description
This package adds the phpunit channel which allows PEAR packages from this
channel to be installed.

%prep

%setup -q -c -T

%build
# Empty build section, nothing to build

%install

%{__mkdir_p} %{buildroot}%{_datadir}/pear/packages/
%{__install} -pm 644 %{SOURCE0} %{buildroot}%{_datadir}/pear/packages/pear.phpunit.de.xml


%post
if [ $1 -eq  1 ] ; then
    pear channel-add %{_datadir}/pear/packages/pear.phpunit.de.xml
else
    pear channel-update %{_datadir}/pear/packages/pear.phpunit.de.xml
fi

%preun
if [ $1 -eq 0 ] ; then
    pear channel-delete pear.phpunit.de
fi


%files
%{_datadir}/pear/packages/pear.phpunit.de.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6120 |21cr|php-channel-symfony-1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The symfony project PEAR channel
Name:		php-channel-symfony
Version:	1.3
Release:	5
Group:		Development/PHP
License:	MIT
URL:		http://pear.symfony-project.com/
Source0:	http://pear.symfony-project.com/channel.xml
BuildRequires:	php-pear
Requires:	php-pear
Requires(pre): php-cli
Requires(pre): php-pear
Requires(postun): php-pear
BuildArch:	noarch

%description
This package adds The symfony project PEAR channel which allows PEAR packages
from this channel to be installed.

%prep

%setup -q -c -T

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_datadir}/pear/packages

install -m0644 %{SOURCE0} %{buildroot}%{_datadir}/pear/packages/pear.symfony-project.com.xml

%post
if [ $1 -eq  1 ] ; then
    %{_bindir}/pear channel-add %{_datadir}/pear/packages/pear.symfony-project.com.xml > /dev/null || :
else
    %{_bindir}/pear channel-update %{_datadir}/pear/packages/.xml > /dev/null ||:
fi

%postun
if [ $1 -eq 0 ] ; then
    %{_bindir}/pear channel-delete pear.symfony-project.com > /dev/null || :
fi

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{_datadir}/pear/packages/pear.symfony-project.com.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6121 |21cr|php-christianriesen-base32-1.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Spec file for php-christianriesen-base32
#
# Copyright (c) 2013-2014 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/3.0/
#
# Please, preserve the changelog entries
#
#%%global gh_commit    6a8aec204688d36681e0185fbaf1974b97e4a070
%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner     christianriesen
%global gh_project   christianriesen-base32
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}

Name:           php-%{gh_project}
Summary:        Base32 Encoder/Decoder for PHP according to RFC 4648
Version:        1.2.1
Release:        3

URL:            https://github.com/%{gh_owner}/%{gh_project}
Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
License:        MIT
Group:          Development/PHP
BuildArch:      noarch
%if %{with_tests}
BuildRequires:  php >= 5.4
%endif

Provides:       php-composer(christianriesen/base32) = %{version}-%{release}

# From composer.json
Requires:       php >= 5.4

%description
Base32 Encoder/Decoder for PHP according to RFC 4648.

%prep
%setup -q -n %{gh_project}-%{?gh_commit:%{gh_commit}}%{!?gh_commit:%{version}}

%build
# nothing to build

%install
# Install as a PSR-0 library
mkdir -p %{buildroot}%{_datadir}/php/Base32/
cp -pr src/* %{buildroot}%{_datadir}/php/Base32/.

%check

%files
%doc composer.json LICENSE README.md
%{_datadir}/php/Base32

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6122 |21cr|php-dio-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname dio
%define soname %{modname}.so
%define inifile 17_%{modname}.ini

Summary:	Direct I/O extension module for PHP
Name:		php-%{modname}
Version:	0.1.0
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/dio
Source0:	http://pecl.php.net/get/dio-%{version}.tgz
BuildRequires:	php-devel >= 3:5.2.0
Epoch:		2
Requires:	php(zend-abi) = %{php_zend_api}

%description
PHP supports the direct io functions as described in the Posix Standard
(Section 6) for performing I/O functions at a lower level than the C-Language
stream I/O functions (fopen(), fread(),..). The use of the DIO functions should
be considered only when direct control of a device is needed. In all other
cases, the standard filesystem functions are more than adequate.

%prep

%setup -q -n dio-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

%files
%doc package.xml
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6123 |21cr|php-endroid-qrcode-1.5.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Spec file for php-endroid-qrcode
#
# Copyright (c) 2013-2014 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/3.0/
#
# Please, preserve the changelog entries
#
#%%global gh_commit    6a8aec204688d36681e0185fbaf1974b97e4a070
%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner     endroid
%global gh_project   endroid-qrcode
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}

Name:           php-%{gh_project}
Summary:        Endroid QR Code Generator
Version:        1.5.4
Release:        3

URL:            https://github.com/%{gh_owner}/%{gh_project}
Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
License:        MIT
Group:          Development/PHP
BuildArch:      noarch

%if %{with_tests}
BuildRequires:  php >= 5.4
%endif

# From composer.json
Requires:       php >= 5.4
Requires:       php-gd

%description
This library based on QRcode Perl CGI & PHP scripts by Y.
Swetake helps you generate images containing a QR code.

%prep
%setup -q -n %{gh_project}-%{?gh_commit:%{gh_commit}}%{!?gh_commit:%{version}}

%build
# nothing to build

%install
# Install as a PSR-0 library
mkdir -p %{buildroot}%{_datadir}/php/Endroid/QrCode/
cp -pr assets %{buildroot}%{_datadir}/php/Endroid/.
cp -pr src/* %{buildroot}%{_datadir}/php/Endroid/QrCode/.

%check

%files
%doc composer.json LICENSE README.md
%dir %{_datadir}/php/Endroid
%{_datadir}/php/Endroid/assets
%{_datadir}/php/Endroid/QrCode

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6124 |21cr|php-enygma-yubikey-3.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Spec file for php-enygma-yubikey
#
# Copyright (c) 2013-2014 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/3.0/
#
# Please, preserve the changelog entries
#
#%%global gh_commit    6a8aec204688d36681e0185fbaf1974b97e4a070
%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner     enygma
%global gh_project   enygma-yubikey
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}

Name:           php-%{gh_project}
Summary:        PHP library to interface with the Yubikey REST API
Version:        3.2
Release:        3

URL:            https://github.com/%{gh_owner}/%{gh_project}
Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
License:        MIT
Group:          Development/PHP
BuildArch:      noarch

%if %{with_tests}
BuildRequires:  php >= 5.4
%endif

# From composer.json
Requires:       php >= 5.4

%description
PHP library to interface with the Yubikey REST API

%prep
%setup -q -n %{gh_project}-%{?gh_commit:%{gh_commit}}%{!?gh_commit:%{version}}

%build
# nothing to build

%install
# Install as a PSR-0 library
mkdir -p %{buildroot}%{_datadir}/php/
cp -pr src/* %{buildroot}%{_datadir}/php/

%check

%files
%doc composer.json README.md
%{_datadir}/php/Yubikey

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6125 |21cr|php-event-2.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname event
%define soname %{modname}.so
%define inifile A35_%{modname}.ini

Summary:	Event Scheduling Engine for PHP
Name:		php-%{modname}
Version:	2.3.0
Release:	5
Epoch:		1
License:	PHP License
Group:		Development/PHP
Url:		http://pecl.php.net/package/event
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
BuildRequires:	php-devel
BuildRequires:	pkgconfig(libevent)
Requires:	php(zend-abi) = %{php_zend_api}

%description
This is an extension to efficiently schedule IO, time and signal based events
using the best available IO notification mechanism for your system. This is a
port of libevent to the PHP infrastructure; the API is similar but not
identical.

%files
%doc CREDITS
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

#----------------------------------------------------------------------------

%prep
%setup -qn %{modname}-%{version}

%build
%serverbuild

phpize
%configure \
	--with-libdir=%{_lib} \
	--with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6126 |21cr|php-firebird-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname firebird
%define soname interbase.so
%define inifile 42_%{modname}.ini

Summary:	Firebird database module for PHP
Name:		php-%{modname}
Epoch:		3
Version:	1.1.1
Release:	1
Group:		Development/PHP
URL:		https://github.com/FirebirdSQL/php-firebird
License:	PHP License
Source0:	https://github.com/FirebirdSQL/php-firebird/archive/refs/tags/v1.1.1.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	php-devel
BuildRequires:	firebird-devel
BuildRequires:	pkgconfig(fbclient)
Provides:	php-interbase = %{version}-%{release}

%description
This is a dynamic shared object (DSO) for PHP that will add Firebird
database support.

%prep

%setup -q

%build
phpize
CPPFLAGS=-I/usr/include/firebird %configure
%make

%install
INSTALL_ROOT=%{buildroot} %makeinstall_std

%files
%doc README*
%license LICENSE
%{_libdir}/php/extensions/interbase.so



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6127 |21cr|php-fpdf-1.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PHP class to generate PDF files
Name:		php-fpdf
Version:	1.7
Release:	3
License:	MIT
Group:		Development/PHP
Source0:	fpdf17.tgz
URL:		http://www.fpdf.org

BuildArch:	noarch
BuildRequires:	dos2unix


%description
FPDF is a PHP class that allow generating PDF files with pure PHP, that is to
say without using the PDFlib library. FPDF provides high-level functions and 
has the following main features:

 - Choice of measure unit, page format, and margins
 - Page header and footer management
 - Automatic page break
 - Automatic line break and text justification
 - Image support (JPEG and PNG)
 - Colors
 - Links
 - TrueType, Type1, and encoding support
 - Page compression

%prep

%setup -q -n fpdf17

find . -name "*.htm" \
     -name "*.css" \
     -name "*.txt" \
     -name "*.ini" \
     -name "*.mat" \
     -name "*.afm" \
     -name "*.ttf" \
     -name "*.z" \
     -name "*.png" \
     -exec chmod 644 {} \;

find . -name "*.txt" -name "*.ini" -exec dos2unix {} \;

%install

install -d %{buildroot}%{_datadir}/php/fpdf
cp -a fpdf.php %{buildroot}%{_datadir}/php/fpdf/
cp -pR font %{buildroot}%{_datadir}/php/fpdf/

install -d %{buildroot}%{_docdir}/php-fpdf
cp -pR doc %{buildroot}%{_docdir}/php-fpdf/
cp -pR tutorial %{buildroot}%{_docdir}/php-fpdf/
cp -p FAQ.htm fpdf.css fpdf.php changelog.htm install.txt license.txt %{buildroot}%{_docdir}/php-fpdf/

%clean

%files 
%{_datadir}/php/fpdf
%{_docdir}/php-fpdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6128 |21cr|php-gd-bundled-7.4.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GD extension module for PHP
Name:		php-gd-bundled
Version:	7.4.26
Release:	1
Group:		Development/PHP
URL:		http://www.php.net
License:	PHP License
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	pkgconfig(x11)
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	t1lib-devel
Provides:	php-gd = %{EVRD}
Requires:	php(zend-abi) = %{php_zend_api}

%description
This is a dynamic shared object (DSO) for PHP that will add GD support,
allowing you to create and manipulate images with PHP using the gd library.

PHP is not limited to creating just HTML output. It can also be used to create
and manipulate image files in a variety of different image formats, including
gif, png, jpg, wbmp, and xpm. Even more convenient, PHP can output image
streams directly to a browser. You will need to compile PHP with the GD library
of image functions for this to work. GD and PHP may also require other
libraries, depending on which image formats you want to work with.
 
You can use the image functions in PHP to get the size of JPEG, GIF, PNG, SWF,
TIFF and JPEG2000 images. 

This package is built against the bundled gd library that comes with the php
source. Currently it has some additional features, but I expect the extra
features to be merged upstream into the "official" libgd very soon. 

%prep

%setup -c -T
cp -dpR %{_usrsrc}/php-devel/extensions/gd/* .

%build
%serverbuild

export LIBS="$LIBS -lm"

phpize
%configure --with-libdir=%{_lib} \
    --with-gd \
    --with-jpeg-dir=%{_prefix} \
    --with-png-dir=%{_prefix} \
    --with-zlib-dir=%{_prefix} \
    --with-xpm-dir=%{_prefix}/X11R6 \
    --with-ttf=%{_prefix} \
    --with-freetype-dir=%{_prefix} \
    --enable-gd-native-ttf \
    --with-t1lib=%{_prefix}

%make

mv modules/*.so .
chrpath -d gd.so

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m755 gd.so %{buildroot}%{_libdir}/php/extensions/gd-bundled.so

cat > %{buildroot}%{_sysconfdir}/php.d/23_gd-bundled.ini << EOF
extension = gd-bundled.so
EOF

%files 
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/23_gd-bundled.ini
%attr(0755,root,root) %{_libdir}/php/extensions/gd-bundled.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6129 |21cr|php-geshi-1.0.8.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name geshi

Name:		php-%{upstream_name}
Version:	1.0.8.11
Release:	4
Summary:	Generic Syntax Highlighter
License:	PHP License
Group:		Development/PHP
URL:		http://qbnz.com/highlighter/
Source0:	https://sourceforge.net/projects/geshi/files/geshi/GeSHi%201.0.8.11/GeSHi-%{version}.tar.bz2
BuildArch:	noarch

%description
Generic Syntax Highlighter for PHP. Used to highlight almost any code
for the web. Nearly 100 supported languages: PHP, HTML, C and more. Styles can
be changed on the fly and CSS classes can be used to reduce the amount of XHTML
compliant output.

%prep
%setup -q -n %{upstream_name}

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_datadir}/php
cp -p geshi.php %{buildroot}%{_datadir}/php
cp -pr geshi %{buildroot}%{_datadir}/php
cp -pr contrib %{buildroot}%{_datadir}/php/geshi

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc docs
%{_datadir}/php/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6130 |21cr|php-gmagick-2.0.6RC1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modname gmagick
%define	soname %{modname}.so
%define	inifile B01_%{modname}.ini

Summary:	Provides a wrapper to the GraphicsMagick library
Name:		php-%{modname}
Version:	2.0.6RC1
Release:	2
Group:		Development/PHP
License:	PHP License
Url:		http://pecl.php.net/package/gmagick/
Source0:	http://pecl.php.net/get/gmagick-%{version}.tgz
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(sm)
Requires:	php(zend-abi) = %{php_zend_api}

%description
Gmagick is a php extension to create, modify and obtain meta information of
images using the GraphicsMagick API. This extension requires GraphicsMagick
version 1.2.6+ and PHP 5.1.3+.

%files
%doc README* package*.xml
%config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%{_libdir}/php/extensions/%{soname}


#-----------------------------------------------------------------------------

%prep
%setup -qn %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

find -type f | xargs chmod 644

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4


%build
%serverbuild
phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}
%make
mv modules/*.so .


%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d
install -m755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6131 |21cr|php-gtk2-2.0.3-0.svn20130225.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot 20130225

Summary:	GTK+2 toolkit for php
Name:		php-gtk2
Version:	2.0.3
Release:	0.svn%{snapshot}.5
Epoch:		2
License:	LGPLv2.1
Group:		Development/PHP
Url:		http://gtk.php.net/
Source0:	https://github.com/php/php-gtk-src/php-gtk2-%{version}-0.git%{snapshot}.tar.gz
Source1:	php_cairo_api.h
Patch0:		cairo_local_path.patch
Patch1:		php-gtk2-automake1.13.patch
Patch2:         php-gtk2-2.0.3-fix-php5.5.patch
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	php-mbstring
BuildRequires:	php-cairo
BuildRequires:	php-cli >= 3:5.3.0
BuildRequires:	libtool
Requires:	php-cli >= 3:5.3.0
Requires:	php-cairo
Requires:	php(zend-abi) = %{php_zend_api}

%description
PHP-GTK is an extension for PHP programming language that implements language
bindings for GTK+ toolkit. It provides an object-oriented interface to GTK+
classes and functions and greatly simplifies writing client side cross-platform
GUI applications.

%prep
%setup -q -n php-gtk2
%patch0 -p0
%patch1 -p1
%patch2 -p1

cp %{SOURCE1} main/php_cairo_api.h

for i in `find . -type d -name .git`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%build
%serverbuild
rm -f configure
rm -rf autom4te.cache
./buildconf
%configure \
    --with-libdir=%{_lib}

# We use our own libtool, and apply some fixes
rm libtool
ln -s %{_bindir}/libtool libtool

sed -i.orig 's/compile $(CC)/compile --tag=CC $(CC)/g' Makefile
sed -i.orig 's/link $(CC)/link --tag=CC $(CC)/g' Makefile

make

%install
install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}%{_libdir}/php/extensions

install -m0755 modules/php_gtk2.so %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/A99_gtk2.ini << EOF
extension = php_gtk2.so

[php-gtk]

;php-gtk.codepage = iso-8859-1
;php-gtk.extensions = 

EOF

%files
%doc demos AUTHORS ChangeLog NEWS README* TODO2
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/*
%{_libdir}/php/extensions/php_gtk2.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6132 |21cr|php-horde-Horde-ElasticSearch-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pear_phpdir %(pear config-get php_dir 2> /dev/null || echo undefined)
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_docdir %(pear config-get doc_dir 2> /dev/null || echo undefined)

%global pear_name    Horde_ElasticSearch
%global pear_channel pear.horde.org

Name:           php-horde-Horde-ElasticSearch
Version:        1.0.4
Release:        1
Summary:        Horde ElasticSearch client

Group:          Development/PHP
License:        BSD
URL:            http://%{pear_channel}
Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz

BuildArch:      noarch
BuildRequires:  php >= 5.3.0
BuildRequires:  php-pear >= 1.7.0
BuildRequires:  php-channel(%{pear_channel})

Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires:       php >= 5.3.0
Requires:       php-json
Requires:       php-pear >= 1.7.0
Requires:       php-channel(%{pear_channel})
Requires:       php-pear(%{pear_channel}/Horde_Exception) >= 2.0.0
Conflicts:      php-pear(%{pear_channel}/Horde_Exception) >= 3.0.0
Requires:       php-pear(%{pear_channel}/Horde_Http) >= 2.0.0
Conflicts:      php-pear(%{pear_channel}/Horde_Http) >= 3.0.0

Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}


%description
Lightweight API for ElasticSearch (http://www.elasticsearch.org/).

%prep
%setup -q -c

cd %{pear_name}-%{version}
mv ../package.xml %{name}.xml


%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.


%install
rm -rf %{buildroot}
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml

# Clean up unnecessary files
rm -rf %{buildroot}%{pear_metadir}/.??*

# Install XML package description
mkdir -p %{buildroot}%{_datadir}/pear/packages
install -pm 644 %{name}.xml %{buildroot}%{_datadir}/pear/packages


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{_datadir}/pear/packages/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_channel}/%{pear_name} >/dev/null || :
fi


%files
%doc %{pear_docdir}/%{pear_name}
%{_datadir}/pear/packages/%{name}.xml
%{pear_phpdir}/Horde/ElasticSearch
%exclude  %{_datadir}/pear/.channels
%exclude  %{_datadir}/pear/.registry
%exclude  %{_datadir}/pear/.depdb
%exclude  %{_datadir}/pear/.depdblock
%exclude  %{_datadir}/pear/.filemap
%exclude  %{_datadir}/pear/.lock
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6133 |21cr|php-horde-Horde-Exception-2.0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bootstrap    1

%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_name    Horde_Exception
%global pear_channel pear.horde.org

%if %{bootstrap}
%global with_tests   %{?_with_tests:1}%{!?_with_tests:0}
%else
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}
%endif

%global pear_phpdir %(pear config-get php_dir 2> /dev/null || echo undefined)
%global pear_docdir %(pear config-get doc_dir 2> /dev/null || echo undefined)
%global pear_datadir %(pear config-get data_dir 2> /dev/null || echo undefined)
%global pear_metadir %(pear config-get metadata_dir 2> /dev/null || echo undefined)
%global pear_testdir %(pear config-get test_dir 2> /dev/null || echo undefined)
%global pear_xmldir %{_datadir}/pear/packages

Name:           php-horde-Horde-Exception
Version:        2.0.8
Release:        2
Summary:        Horde Exception Handler
Group:          Development/PHP
License:        LGPLv2
URL:            http://%{pear_channel}
Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz

BuildArch:      noarch
BuildRequires:  gettext
BuildRequires:  php >= 5.3.0
BuildRequires:  php-pear >= 1.7.0
BuildRequires:  php-channel(%{pear_channel})

%if %{with_tests}
# To run unit tests
BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
%endif

Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires:       php >= 5.3.0
Requires:       php-pear >= 1.7.0
Requires:       php-channel(%{pear_channel})
Requires:       php-pear(%{pear_channel}/Horde_Translation) >= 2.0.0
Requires:       php-pear(%{pear_channel}/Horde_Translation) <  3.0.0

Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}
Provides:       php-composer(horde/horde-exception) = %{version}


%description
This class provides the default exception handlers for the Horde
Application Framework.


%prep
%setup -q -c

cd %{pear_name}-%{version}

# Don't install .po and .pot files
# Remove checksum for .mo, as we regenerate them
sed -e '/%{pear_name}.po/d' \
    -e '/%{pear_name}.mo/s/md5sum=.*name=/name=/' \
    ../package.xml >%{name}.xml


%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.

# Regenerate the locales
for po in $(find locale -name \*.po)
do
   msgfmt $po -o $(dirname $po)/$(basename $po .po).mo
done


%install
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml

# Clean up unnecessary files
rm -rf %{buildroot}%{pear_metadir}/.??*

# Install XML package description
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}

# Locales
for loc in locale/{??,??_??}
do
    lang=$(basename $loc)
    test -d $loc && echo "%%lang(${lang%_*}) %{pear_datadir}/%{pear_name}/$loc"
done | tee ../%{pear_name}.lang


%check
%if %{with_tests}
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
phpunit -d date.timezone=UTC .
%else
: run with --with tests
%endif

%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_channel}/%{pear_name} >/dev/null || :
fi


%files -f %{pear_name}.lang
%doc %{pear_docdir}/%{pear_name}
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Horde/Exception
%{pear_phpdir}/Horde/Exception.php
%dir %{pear_datadir}/%{pear_name}
%dir %{pear_datadir}/%{pear_name}/locale
%{pear_testdir}/%{pear_name}
%exclude  %{_datadir}/pear/.channels
%exclude  %{_datadir}/pear/.registry
%exclude  %{_datadir}/pear/.depdb
%exclude  %{_datadir}/pear/.depdblock
%exclude  %{_datadir}/pear/.filemap
%exclude  %{_datadir}/pear/.lock

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6134 |21cr|php-horde-Horde-Http-2.1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_name    Horde_Http
%global pear_channel pear.horde.org

%global pear_phpdir %(pear config-get php_dir 2> /dev/null || echo undefined)
%global pear_docdir %(pear config-get doc_dir 2> /dev/null || echo undefined)
%global pear_metadir %(pear config-get metadata_dir 2> /dev/null || echo undefined)
%global pear_testdir %(pear config-get test_dir 2> /dev/null || echo undefined)
%global pear_xmldir %{_datadir}/pear/packages

# Can run test because of circular dependency with Horde_Test
%global with_tests   %{?_with_tests:1}%{!?_with_tests:0}

Name:           php-horde-Horde-Http
Version:        2.1.7
Release:        1
Summary:        Horde HTTP libraries
Group:          Development/PHP
License:        BSD
URL:            http://%{pear_channel}
Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root
BuildArch:      noarch
BuildRequires:  php >= 5.3.0
BuildRequires:  php-pear >= 1.7.0
BuildRequires:  php-channel(%{pear_channel})
%if %{with_tests}
# To run unit tests
BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
%endif

Requires(post): %{__pear}
Requires(postun): %{__pear}

Requires:       php >= 5.3.0
Requires:       php-pcre
Requires:       php-pear >= 1.7.0
Requires:       php-channel(%{pear_channel})
Requires:       php-pear(%{pear_channel}/Horde_Exception) >= 2.0.0
Requires:       php-pear(%{pear_channel}/Horde_Exception) <  3.0.0
Requires:       php-pear(%{pear_channel}/Horde_Support) >= 2.0.0
Requires:       php-pear(%{pear_channel}/Horde_Support) <  3.0.0
# Optionnal
Requires:       php-curl
# php-pecl-http v1 optional but not available (only v2)

Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}
Provides:       php-composer(horde/horde-http) = %{version}

%description
This package provides a set of classes for making HTTP requests.

Optional dependency: php-pecl-http1


%prep
%setup -q -c

cd %{pear_name}-%{version}
mv ../package.xml %{name}.xml


%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.


%install
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml

# Clean up unnecessary files
rm -rf %{buildroot}%{pear_metadir}/.??*

# Install XML package description
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}


%check
%if %{with_tests}
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
phpunit\
    -d include_path=%{buildroot}%{pear_phpdir}:.:%{pear_phpdir} \
    -d date.timezone=UTC \
    .
%else
: Test disabled, missing '--with tests' option.
%endif


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_channel}/%{pear_name} >/dev/null || :
fi


%files
%doc %{pear_docdir}/%{pear_name}
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Horde/Http
%{pear_phpdir}/Horde/Http.php
%{pear_testdir}/%{pear_name}
%exclude  %{_datadir}/pear/.channels
%exclude  %{_datadir}/pear/.registry
%exclude  %{_datadir}/pear/.depdb
%exclude  %{_datadir}/pear/.depdblock
%exclude  %{_datadir}/pear/.filemap
%exclude  %{_datadir}/pear/.lock

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6135 |21cr|php-horde-Horde-Mongo-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pear_name    Horde_Mongo
%global pear_channel pear.horde.org

%global pear_phpdir %(pear config-get php_dir 2> /dev/null || echo undefined)
%global pear_docdir %(pear config-get doc_dir 2> /dev/null || echo undefined)
%global pear_metadir %(pear config-get metadata_dir 2> /dev/null || echo undefined)
%global pear_xmldir %{_datadir}/pear/packages

Name:           php-horde-Horde-Mongo
Version:        1.1.0
Release:        2
Summary:        Horde Mongo Configuration

Group:          Development/PHP
License:        LGPLv2
URL:            http://%{pear_channel}
Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz

# Fix autoloader path
Patch0:         %{name}-rpm.patch

BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:      noarch
BuildRequires:  php >= 5.3.0
BuildRequires:  php-pear >= 1.7.0
BuildRequires:  php-channel(%{pear_channel})

Requires(post): /usr/bin/pear
Requires(postun): /usr/bin/pear
Requires:       php >= 5.3.0
Requires:       php-pear >= 1.7.0
Requires:       php-channel(%{pear_channel})

Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}
Provides:       php-composer(horde/horde-mongo) = %{version}


%description
Provides an API to ensure that the PECL Mongo extension can be used
consistently across various Horde packages.
To use this module, you also need to install
 - php-pecl-mongo (PHP 5 only)
or
 - php-pecl-mongodb (PHP 5 or 7)
 - php-alcaeus-mongo-php-adapter

%prep
%setup -q -c

cd %{pear_name}-%{version}
mv ../package.xml %{name}.xml
%patch0 -p1 -b .rpm
sed -e '/Client.php/s/md5sum="[^"]*"//' \
    -e '/name="bundle/d' \
    -i %{name}.xml

%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.


%install
cd %{pear_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{name}.xml

# Clean up unnecessary files
rm -rf %{buildroot}%{pear_metadir}/.??*

# Install XML package description
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}

%post
pear install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    pear uninstall --nodeps --ignore-errors --register-only \
        %{pear_channel}/%{pear_name} >/dev/null || :
fi


%files
%doc %{pear_docdir}/%{pear_name}
%{pear_xmldir}/%{name}.xml
%dir %{pear_phpdir}/Horde
%{pear_phpdir}/Horde/Mongo
%exclude  %{_datadir}/pear/.channels
%exclude  %{_datadir}/pear/.registry/.channel.pear.horde.org/horde_mongo.reg
%exclude  %{_datadir}/pear/.depdb
%exclude  %{_datadir}/pear/.depdblock
%exclude  %{_datadir}/pear/.filemap
%exclude  %{_datadir}/pear/.lock


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6136 |21cr|php-horde-Horde-Stream-Wrapper-2.1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bootstrap    1

%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_name    Horde_Stream_Wrapper
%global pear_channel pear.horde.org

%global pear_phpdir %(pear config-get php_dir 2> /dev/null || echo undefined)
%global pear_docdir %(pear config-get doc_dir 2> /dev/null || echo undefined)
%global pear_metadir %(pear config-get metadata_dir 2> /dev/null || echo undefined)
%global pear_testdir %(pear config-get test_dir 2> /dev/null || echo undefined)
%global pear_xmldir %{_datadir}/pear/packages

%if %{bootstrap}
%global with_tests   %{?_with_tests:1}%{!?_with_tests:0}
%else
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}
%endif

Name:           php-horde-Horde-Stream-Wrapper
Version:        2.1.5
Release:        2
Summary:        Horde Stream wrappers
Group:          Development/PHP
License:        LGPLv2+
URL:            http://pear.horde.org
Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz

BuildArch:      noarch
BuildRequires:  php-pear >= 1.7.0
BuildRequires:  php-channel(%{pear_channel})
BuildRequires:  php-pear >= 1.7.0

Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires:       php >= 5.3.0
Requires:       php-channel(%{pear_channel})

Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}


%if %{with_tests}
# To run unit tests
BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
%endif

%description
This package provides various stream wrappers.

%prep
%setup -q -c

cd %{pear_name}-%{version}
mv ../package.xml %{name}.xml


%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.


%install
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml

# Clean up unnecessary files
rm -rf %{buildroot}%{pear_metadir}/.??*

# Install XML package description
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}

%check
%if %{with_tests}
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
phpunit -d date.timezone=UTC --bootstrap bootstrap.php .
%else
: Tests disabled, use --with tests to enable them
%endif


%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_channel}/%{pear_name} >/dev/null || :
fi


%files
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Horde
%doc %{pear_docdir}/%{pear_name}
%{pear_testdir}/%{pear_name}
%exclude  %{_datadir}/pear/.channels
%exclude  %{_datadir}/pear/.registry
%exclude  %{_datadir}/pear/.depdb
%exclude  %{_datadir}/pear/.depdblock
%exclude  %{_datadir}/pear/.filemap
%exclude  %{_datadir}/pear/.lock

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6137 |21cr|php-horde-Horde-Support-2.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?pear_metadir: %global pear_metadir %{pear_phpdir}}
%{!?__pear: %{expand: %%global __pear %{_bindir}/pear}}
%global pear_channel pear.horde.org
%global pear_name    Horde_Support

%global pear_phpdir %(pear config-get php_dir 2> /dev/null || echo undefined)
%global pear_docdir %(pear config-get doc_dir 2> /dev/null || echo undefined)
%global pear_metadir %(pear config-get metadata_dir 2> /dev/null || echo undefined)
%global pear_testdir %(pear config-get test_dir 2> /dev/null || echo undefined)
%global pear_xmldir %{_datadir}/pear/packages

Name:           php-horde-Horde-Support
Version:        2.2.2
Release:        1
Summary:        Horde support package
Group:          Development/PHP
License:        BSD
URL:            http://%{pear_channel}
Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz

BuildArch:      noarch
BuildRequires:  php >= 5.3.0
BuildRequires:  php-pear >= 1.7.0
BuildRequires:  php-channel(%{pear_channel})
#BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.1.0

Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires:       php >= 5.3.0
Requires:       php-pcre
Requires:       php-pear >= 1.7.0
Requires:       php-channel(%{pear_channel})
Requires:       php-pear(%{pear_channel}/Horde_Exception) >= 2.0.0
Requires:       php-pear(%{pear_channel}/Horde_Exception) <  3.0.0
Requires:       php-pear(%{pear_channel}/Horde_Stream_Wrapper) >= 2.0.0
Requires:       php-pear(%{pear_channel}/Horde_Stream_Wrapper) <  3.0.0

Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}
Provides:       php-composer(horde/horde-support) = %{version}


%description
Support classes not tied to Horde but is used by it. These classes can be
used outside of Horde as well.

Optional dependencies:
- uuid-php or php-pecl-uuid


%prep
%setup -q -c

cd %{pear_name}-%{version}
cp ../package.xml %{name}.xml


%build
cd %{pear_name}-%{version}
# Empty build section, most likely nothing required.


%install
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml

# Clean up unnecessary files
rm -rf %{buildroot}%{pear_metadir}/.??*

# Install XML package description
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}


#%check
#cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
#phpunit -d date.timezone=UTC --bootstrap bootstrap.php .

%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_channel}/%{pear_name} >/dev/null || :
fi


%files
%doc %{pear_docdir}/%{pear_name}
%{pear_xmldir}/%{name}.xml
%{pear_phpdir}/Horde/Support
%{pear_testdir}/%{pear_name}
%exclude  %{_datadir}/pear/.channels
%exclude  %{_datadir}/pear/.registry
%exclude  %{_datadir}/pear/.depdb
%exclude  %{_datadir}/pear/.depdblock
%exclude  %{_datadir}/pear/.filemap
%exclude  %{_datadir}/pear/.lock

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6138 |21cr|php-horde-Horde-Translation-2.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?__pear:       %global __pear       %{_bindir}/pear}
# bootstrap when dependency on Horde_Test requires a new version
%global bootstrap    1
%global pear_name    Horde_Translation
%global pear_channel pear.horde.org

%global pear_phpdir %(pear config-get php_dir 2> /dev/null || echo undefined)
%global pear_docdir %(pear config-get doc_dir 2> /dev/null || echo undefined)
%global pear_metadir %(pear config-get metadata_dir 2> /dev/null || echo undefined)
%global pear_testdir %(pear config-get test_dir 2> /dev/null || echo undefined)
%global pear_xmldir %{_datadir}/pear/packages

%if %{bootstrap}
%global with_tests   %{?_with_tests:1}%{!?_with_tests:0}
%else
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}
%endif

Name:           php-horde-Horde-Translation
Version:        2.2.2
Release:        2
Summary:        Horde translation library
Group:          Development/PHP
License:        LGPLv2+
URL:            http://pear.horde.org
Source0:        http://%{pear_channel}/get/%{pear_name}-%{version}.tgz

BuildArch:      noarch
BuildRequires:  gettext
BuildRequires:  php >= 5.3.0
BuildRequires:  php-pear >= 1.7.0
BuildRequires:  php-channel(%{pear_channel})

%if %{with_tests}
# To run unit tests
BuildRequires:  php-pear(%{pear_channel}/Horde_Test) >= 2.1.0
%endif

Requires(post): %{__pear}
Requires(postun): %{__pear}
Requires:       php-pear >= 1.7.0
Requires:       php-channel(%{pear_channel})
Requires:       php >= 5.3.0
Requires:       php-gettext

Provides:       php-pear(%{pear_channel}/%{pear_name}) = %{version}


%description
Translation wrappers.

%prep
%setup -q -c

cd %{pear_name}-%{version}
# Install .po and .pot files, only part of test suite
# Remove checksum for .mo, as we regenerate them
sed -e '/Horde.*\.mo/s/md5sum=.*name=/name=/' \
    ../package.xml >%{name}.xml
touch -r ../package.xml %{name}.xml

%build
cd %{pear_name}-%{version}

# Regenerate the locales
for po in $(find test -name \*.po)
do
   msgfmt $po -o $(dirname $po)/$(basename $po .po).mo
done


%install
cd %{pear_name}-%{version}
%{__pear} install --nodeps --packagingroot %{buildroot} %{name}.xml

# Clean up unnecessary files
rm -rf %{buildroot}%{pear_metadir}/.??*

# Install XML package description
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{name}.xml %{buildroot}%{pear_xmldir}

%check
%if %{with_tests}
cd %{pear_name}-%{version}/test/$(echo %{pear_name} | sed -e s:_:/:g)
phpunit -d date.timezone=UTC --bootstrap bootstrap.php .
%else
: Tests disabled, use --with tests to enable them
%endif

%post
%{__pear} install --nodeps --soft --force --register-only \
    %{pear_xmldir}/%{name}.xml >/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    %{__pear} uninstall --nodeps --ignore-errors --register-only \
        %{pear_channel}/%{pear_name} >/dev/null || :
fi


%files
%{pear_xmldir}/%{name}.xml
%dir %{pear_phpdir}/Horde
%{pear_phpdir}/Horde/Translation
%{pear_phpdir}/Horde/Translation.php
%doc %{pear_docdir}/%{pear_name}
%{pear_testdir}/%{pear_name}
%exclude  %{_datadir}/pear/.channels
%exclude  %{_datadir}/pear/.registry
%exclude  %{_datadir}/pear/.depdb
%exclude  %{_datadir}/pear/.depdblock
%exclude  %{_datadir}/pear/.filemap
%exclude  %{_datadir}/pear/.lock

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6139 |21cr|php-imagick-3.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname Imagick
%define modname imagick
%define soname %{modname}.so
%define inifile 55_%{modname}.ini
%define mod_src %{modname}.c

Summary:	Provides a wrapper to the ImageMagick library for PHP
Name:		php-%{modname}
Version:	3.7.0
Release:	2
Epoch:		1
License:	PHP License
Group:		Development/PHP
Url:		http://pecl.php.net/package/imagick
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	imagemagick-devel >= 6.3.8
Requires:	imagemagick >= 6.3.8
Requires:	php(zend-abi) = %{php_zend_api}

%description
Imagick is a native php extension to create and modify images using the
ImageMagick API.

imagick is a native php-extension. See the examples in the
%{_docdir}/%{name}/examples directory for some hints on
how to use it.

%files
%doc examples CREDITS  README*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

#----------------------------------------------------------------------

%prep

%setup -qn %{modname}-%{version}
[ "../package.xml" != "/" ] && mv -f ../package.xml .

# lib64 fixes
perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
	--with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > README.%{modname} <<EOF
The %{name} package contains a dynamic shared object (DSO) for PHP. 
To activate it, make sure a file /etc/php.d/%{inifile} is present and
contains the line 'extension = %{soname}'.
EOF

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}

[imagick]
imagick.locale_fix = 0
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6140 |21cr|php-inotify-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname inotify
%define soname %{modname}.so
%define inifile A82_%{modname}.ini

Summary:	Provides inotify functions for PHP
Name:		php-%{modname}
Version:	3.0.0
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/inotify/
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
BuildRequires:	php-devel >= 3:5.2.0
Requires:	php(zend-abi) = %{php_zend_api}

%description
The inotify extension allows to use inotify functions in a PHP script.

%prep

%setup -q -n %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv -f ../package*.xml .

# lib64 fixes
perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install

install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

%files
%doc tests CREDITS README* inotify.php tail.php package.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6141 |21cr|phpipam-0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude_from %{_datadir}/%{name}/functions
%global __requires_exclude pear.functions.PEAR.OLE.php|pear.functions.PEAR.PEAR.php

Name:           phpipam
Version:        0.4
Release:        6
Summary:     	Open-source web IP address management application
License:     	GPLv2+
Group:       	Networking/Other
URL:         	http://phpipam.sourceforge.net/
Source0:     	%{name}-%{version}.tar
Requires:       apache-mod_php
Requires:       php-mysqli
Requires:	php-session
Requires:       php-gmp
Requires:       php-pear
BuildArch:      noarch
AutoReqProv: 	1
Recommends:	mysql
Requires(post): rpm-helper

%description
phpipam is an open-source web IP address management application. Its goal is 
to provide light and simple IP address management. It is ajax-based using 
jQuery libraries, php scripts, javascript and some HTML5/CSS3 features

%prep
%setup -q -n %{name}

%build

%install
install -d %{buildroot}%{_datadir}/%{name}
cp -aRf * %{buildroot}%{_datadir}/%{name}/

pushd %{buildroot}%{_datadir}/%{name}
    rm -f INSTALL UPDATE README 
popd


# provide a simple apache config
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d -m 755 %{buildroot}%{_webappconfdir}

pushd  %{buildroot}%{_sysconfdir}/%{name}
    ln -s ../../%{_datadir}/%{name}/config.php config.php
popd

cat > %{buildroot}%{_webappconfdir}/%{name}.conf << EOF
Alias /%{name} %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Require local granted
    ErrorDocument 403 "Access denied per %{_webappconfdir}/%{name}.conf"
</Directory>
EOF


%files
%defattr(0755,root,root)
%doc INSTALL README UPDATE
%attr(-,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/config.php
%config(noreplace) %{_webappconfdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6142 |21cr|php-jpgraph-3.5.0-0.b1.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine __find_provides
%undefine __find_requires

%define prerel b1

Summary:	An OO graph drawing class library for PHP5
Name:		php-jpgraph
Version:	3.5.0
Release:	0.%{prerel}.3
License:	QPL
Group:		Networking/Other
Url:		http://jpgraph.net/
# no direct download link available on website
# md5 checksum: 7237ef5dc19ad8bb67197a19782e950c
Source0:	jpgraph-%{version}%{prerel}.tar.gz
Patch0:		jpgraph-3.0.6-CVE-2009-4422.diff
Requires:	fonts-ttf-bitstream-vera
Requires:	gd
Requires:	php-gd
BuildArch:	noarch

%description
JpGraph is a OO Graph drawing library for PHP 5.0.x and above.
Highlights of the available features are: text, linear, and log
scales for both the X and Y axes, anti-aliasing of lines,
color-gradient fills, support for GIF, JPG, and PNG formats,
support for two Y axes, spider plots (a.k.a Web plots),
pie-charts, lineplots, filled line plots, impulse plots, bar
plots, and error plots, support for multiple plot types in one
graph, intelligent autoscaling.

Extensive documentations are available at:
http://jpgraph.net/doc/

%files
%{_docdir}/%{name}
%{_datadir}/php/jpgraph
%exclude %{_docdir}/%{name}/Examples
%exclude %{_docdir}/%{name}/docs

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for JpGraph
Group:		Documentation

%description doc
JpGraph is a OO Graph drawing library for PHP 5.0.x and above.
Highlights of the available features are: text, linear, and log
scales for both the X and Y axes, anti-aliasing of lines,
color-gradient fills, support for GIF, JPG, and PNG formats,
support for two Y axes, spider plots (a.k.a Web plots),
pie-charts, lineplots, filled line plots, impulse plots, bar
plots, and error plots, support for multiple plot types in one
graph, intelligent autoscaling.

This package contains the documentation for %{name}.

%files doc
%{_docdir}/%{name}/Examples
%{_docdir}/%{name}/docs

#----------------------------------------------------------------------------

%prep
%setup -q -n jpgraph-%{version}%{prerel}
%patch0 -p0

%build

%install
install -d %{buildroot}%{_datadir}/php/jpgraph
cp -aRf src/* %{buildroot}%{_datadir}/php/jpgraph/

install -d -m 755 %{buildroot}%{_docdir}/%{name}
cp -r docs %{buildroot}%{_docdir}/%{name}
cp -r src/Examples %{buildroot}%{_docdir}/%{name}
install -m 644 README VERSION %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6143 |21cr|php-layersmenu-3.2.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%undefine __find_provides
#%undefine __find_requires
%define preversion rc

Summary:	Hierarchical menu system to prepare "on the fly" DHTML menus
Name:		php-layersmenu
Version:	3.2.0
Release:	11
License:	GPL
Group:		Networking/Other
URL:		http://phplayersmenu.sourceforge.net/
Source0:	phplayersmenu-%version-%preversion.tar.bz2
Requires:	php
BuildArch:	noarch

%description
PHP Layers Menu is a hierarchical menu system to prepare "on the fly" DHTML 
menus relying on the PHP scripting engine for the processing of data items.
It is released under the GNU Lesser General Public License (LGPL), either 
Version 2.1, or (at your option) any later version.
It supports a wide range of browsers: Mozilla, Konqueror, Netscape, Safari, 
Opera, Internet Explorer; rather old browser versions are supported, too; 
accessibility is provided for text-only browsers.
It achieves a compact layout and a compact output code also for menus with 
a large number of entries.
It provides horizontal and vertical layers-based menus whose behavior is 
analogous to menus of commonly used GUI-based applications. It also provides 
JavaScript-based tree menus, whose look is analogous to the most widely used 
file managers and bookmark handling tools. 
%prep

%setup -q -n phplayersmenu-%{version}

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
install -d %{buildroot}%{_datadir}/%name
cp -aRf *.php *html DUMPS images lib libjs LOGOS menuicons menuimages templates %{buildroot}%{_datadir}/%name

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README* LICENSE TODO ACKNOWLEDGEMENTS CHANGELOG CHANGE_TEMPLATE_CLASS_NAME.sh COPYING THEMES PATCHES
%dir %{_datadir}/%name
%{_datadir}/%name/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6144 |21cr|phpldapadmin-1.2.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (oe) undefining these makes the build _real_ quick.
%undefine __find_provides
%undefine __find_requires

%define rname	phpLDAPAdmin

Summary:	A web-based LDAP administration tool
Name:		phpldapadmin
Version:	1.2.6.4
Release:	1
License:	GPLv2+
Group:		System/Servers
URL:		https://github.com/leenooks/phpLDAPadmin
Source0:	https://github.com/leenooks/phpLDAPadmin/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	rosaDSPerson.xml
Source2:	phpldapadmin-16x16.png
Source3:	phpldapadmin-32x32.png
Source4:	phpldapadmin-48x48.png
Patch0:		phpldapadmin-1.2.0.4-default-config.patch
Requires:	apache-mod_php
Requires:	php-ldap
Requires:	php-xml
Requires:	php-mcrypt
Requires:	php-gettext
BuildArch:	noarch

%description
phpldapadmin is a web-based LDAP administration tool, written in PHP. You can
browse your LDAP tree, create, delete, edit, and copy entries, perform
searches, and view your server's schema. You can even copy objects between two
LDAP servers and recursively delete or copy entire trees. All this from the
comfort of your web browser.

%prep

%autosetup -p1 -n phpLDAPadmin-%{version}

cp %{SOURCE1} templates/creation/

%build

%install

install -d %{buildroot}%{_localstatedir}/lib/%{name}

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 644 index.php %{buildroot}%{_datadir}/%{name}
install -m 644 VERSION %{buildroot}%{_datadir}/%{name}
cp -pr hooks %{buildroot}%{_datadir}/%{name}
cp -pr htdocs %{buildroot}%{_datadir}/%{name}
cp -pr lib %{buildroot}%{_datadir}/%{name}
cp -pr locale %{buildroot}%{_datadir}/%{name}
cp -pr queries %{buildroot}%{_datadir}/%{name}
cp -pr templates %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/%{name}/tools
install -m 644 tools/unserialize.php %{buildroot}%{_datadir}/%{name}/tools

install -d %{buildroot}%{_sysconfdir}/%{name}
install -m 640 config/config.php.example \
    %{buildroot}%{_sysconfdir}/%{name}/config.php

install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf << EOF
Alias /%{name} %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Require local granted
    ErrorDocument 403 "Access denied per %{_webappconfdir}/%{name}.conf"
</Directory>
EOF

# ROSA Icons
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_liconsdir}

install -m0644 %{SOURCE2} %{buildroot}%{_miconsdir}/%{name}.png
install -m0644 %{SOURCE3} %{buildroot}%{_iconsdir}/%{name}.png
install -m0644 %{SOURCE4} %{buildroot}%{_liconsdir}/%{name}.png

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{rname}
Name[ru]=%{rname}
Comment=%{rname} is a web adminstration GUI for OpenLDAP
Comment[ru]=%{rname} - Web-интерфейс для администрирования OpenLDAP
Exec=%{_bindir}/www-browser https://localhost/%{name}/
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Databases;
EOF

# cleanup
rm -rf doc/certs
chmod 644 doc/*

%files
%doc INSTALL* LICENSE doc/*
%config(noreplace) %{_webappconfdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%attr(0640,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/config.php
%{_datadir}/%{name}
%attr(-,apache,apache) %{_localstatedir}/lib/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6145 |21cr|phplot-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dynamic plots, charts, and graphs in PHP
Name:		phplot
Version:	6.2.0
Release:	1
License:	BSD
Group:		Networking/Other
URL:		http://phplot.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/phplot/%name/%version/%name-%version.tar.gz
Requires:	php-session php-gd 
BuildArch:	noarch

%description
A graph library for dynamic scientific, business, and
stock-market charts. Written in PHP and supports, PHP3,
PHP4, TTF (or no ttf), and GD versions 1.2 - latest
version. Includes Pie, Bar, Line, Area, Point and
combination plots.

%prep
%setup -q

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_datadir}/phplot
install -m644 *.php %{buildroot}%{_datadir}/phplot/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README.txt contrib
%{_datadir}/phplot

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6146 |21cr|php-manual-en-5.5.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (oe) undefining these makes the build _real_ quick.
%undefine __find_provides
%undefine __find_requires

Summary:	The PHP Manual in the English language
Name:		php-manual-en
Version:	5.5.7
Release:	4
Group:		Books/Other
License:	PHP License
URL:		http://www.php.net/download-docs.php
Source:		http://fr2.php.net/distributions/manual/php_manual_en.tar.gz
Requires:       apache-mod_php
BuildArch:	noarch

%description
The PHP Manual in the English (en) language.

%prep

%setup -q -c -n php_manual_en

# fix perms
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

# clean up cvs junk
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%install
install -d %{buildroot}%{_docdir}/%{name}
cp -aRf php-chunked-xhtml/* %{buildroot}%{_docdir}/%{name}/

install -d %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf << EOF
Alias /%{name} %{_docdir}/%{name}

<Directory %{_docdir}/%{name}>
    Require all granted
</Directory>
EOF

install -d %{buildroot}%{_sysconfdir}/php.d
cat > %{buildroot}%{_sysconfdir}/php.d/%{name}.ini << EOF
docref_root = /%{name}/
docref_ext = .html
EOF

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=The PHP %{version} HTML manual in English
Comment=The PHP %{version} HTML manual in English
Exec=%{_bindir}/www-browser %{_docdir}/%{name}/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

%files
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/*
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/php.d/%{name}.ini
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6147 |21cr|php-mcrypt-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname mcrypt
%define soname %{modname}
%define inifile 30_%{modname}.ini

Summary:	Bindings for the libmcrypt library
Name:		php-%{modname}
Version:	1.0.4
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		https://pecl.php.net/package/mcrypt
Source0:	https://pecl.php.net/get/mcrypt-%{version}.tgz
BuildRequires:	libmcrypt-devel
BuildRequires:	mercurial
BuildRequires:	php-devel >= 7.2.0
Requires:	php >= 7.2.0
Provides:	php-%{modname} = %{version}-%{release}

%description
Provides bindings for the unmaintained libmcrypt.

%files
%config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%{_libdir}/php/extensions/%{soname}.so

#------------------------------------------------------------------
%prep
%autosetup -S hg -n %{modname}-%{version}

%build
%serverbuild

export EXTENSION_DIR="%{_libdir}/php/extensions"
phpize

rm build/libtool.m4
cp %{_datadir}/aclocal/libtool.m4 build
autoreconf -vfi

%configure --with-libdir=%{_lib} \
	--with-%{modname}=shared,%{_prefix}

%make_build

%install
install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}%{_libdir}/php/extensions
install -m0755 modules/%{soname}.so %{buildroot}%{_libdir}/php/extensions/

echo "extension = %{modname}" > %{buildroot}%{_sysconfdir}/php.d/%{inifile}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6148 |21cr|phpmyadmin-5.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name phpMyAdmin
%global __requires_exclude_from %{_datadir}/phpmyadmin/libraries/plugins/transformations/TEMPLATE.*

Summary:	Handles the administration of MySQL over the web
Name:		phpmyadmin
Version:	5.2.1
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.phpmyadmin.net/
Source0:	https://files.phpmyadmin.net/%{upstream_name}/%{version}/%{upstream_name}-%{version}-all-languages.tar.xz
Source1:	%{name}-16x16.png
Source2:	%{name}-32x32.png
Source3:	%{name}-48x48.png
Source4:	%{name}.conf
Source5:	%{name}.desktop
Source100:	%{name}.rpmlintrc
Patch1:		%{name}-4.6.1-CVE-2015-6830.patch
Requires:	apache-mod_php
Requires:	php-mysqli
Requires:	php-mbstring
Requires:	php-mcrypt
# used by setup
Recommends:	php-bz2
Recommends:	php-zip
Requires(pre,post):	rpm-helper
BuildArch:	noarch

%description
phpMyAdmin is intended to handle the administration of MySQL over the web.
Currently it can : create and drop databases, create, copy, drop and alter
tables, delete, edit and add fields, execute any SQL-statement, even
batch-queries, manage keys on fields, load text files into tables, create and
read dumps of tables, export data to CSV value, administer multiple servers
and single databases.

%files
%doc ChangeLog LICENSE README RELEASE-DATE-* README.urpmi
%config(noreplace) %{_webappconfdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%attr(-,root,apache) %config(noreplace) %{_sysconfdir}/%{name}/config.inc.php
%{_datadir}/%{name}
%dir %{_localstatedir}/lib/%{name}/
%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/upload
%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/save
%dir %attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/config
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*.desktop

#---------------------------------------------------------------------

%prep
%autosetup -p1 -n %{upstream_name}-%{version}-all-languages

# Setup vendor config file
sed -e "/'CHANGELOG_FILE'/s@./ChangeLog@%{_datadir}/doc/%{name}/ChangeLog@" \
	-e "/'LICENSE_FILE'/s@./LICENSE@%{_datadir}/doc/%{name}/LICENSE@" \
	-e "/'CONFIG_DIR'/s@'./'@'%{_sysconfdir}/%{name}/'@" \
	-e "/'SETUP_CONFIG_FILE'/s@./config/config.inc.php@%{_localstatedir}/lib/%{name}/config/config.inc.php@" \
	-i libraries/vendor_config.php

%build

%install
export DONT_RELINK=1

install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}

cp -aRf * %{buildroot}%{_datadir}/%{name}/

# Cleanup
pushd %{buildroot}%{_datadir}/%{name}
	rm -f CREDITS ChangeLog Documentation.txt INSTALL LICENSE README 
	rm -f README.VENDOR RELEASE-DATE-* TODO
	rm -rf scripts
	rm -rf contrib
	rm -rf doc
	rm -f lang/*.sh libraries/transformations/*.sh
	rm -rf phpunit.xml.nocoverage
# Nuke the patch backup, if any
	rm -f config.sample.inc.php.*
# Kill various hidden files and dirs
	find -name "\.htaccess" | xargs rm -f
	find -name "\.gitkeep" | xargs rm -f
	find -name "\.travis.yml" | xargs rm -f
	find -name "\.github" | xargs rm -rf
popd

# Fix docs
install -d %{buildroot}%{_datadir}/%{name}/doc/html/_static
install -m0644 doc/html/*.html doc/html/*.js %{buildroot}%{_datadir}/%{name}/doc/html/
install -m0644 doc/html/_static/* %{buildroot}%{_datadir}/%{name}/doc/html/_static/

# Fix config file location and keep the "config.inc.php" filename
# as this is hard coded everywhere.
mv %{buildroot}%{_datadir}/%{name}/config.sample.inc.php \
	%{buildroot}%{_sysconfdir}/%{name}/config.inc.php

chmod 640 %{buildroot}%{_sysconfdir}/%{name}/config.inc.php

install -d %{buildroot}%{_localstatedir}/lib/%{name}/{upload,save,config}

cat > README.urpmi << EOF
The actual configuration file is /etc/phpmyadmin/config.inc.php
The %{_datadir}/%{name}/config.default.inc.php file contains default
values, and is not supposed to be modified.
EOF

# Install cons
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_liconsdir}

install -m0644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -m0644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -m0644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

# Install menu entry (XDG menu)
install -d %{buildroot}%{_datadir}/applications
install -m0644 %{SOURCE5} %{buildroot}%{_datadir}/applications/%{vendor}-%{name}.desktop

# Install conf file
install -d -m 755 %{buildroot}%{_webappconfdir}
install -m0644 %{SOURCE4} %{buildroot}%{_webappconfdir}/%{name}.conf

# Fix borked permissions
find %{buildroot}%{_datadir}/%{name} -type d -exec chmod 755 {} \;
find %{buildroot}%{_datadir}/%{name} -type f -exec chmod 644 {} \;
# The above statement is too broad: kill exec bits also on executable scripts
#chmod +x %{buildroot}%{_datadir}/%{name}/vendor/%{name}/sql-parser/bin/*
#chmod +x %%{buildroot}%%{_datadir}/%%{name}/vendor/paragonie/random_compat/build-phar.sh

%pretrans
# fix configuration file name change
if [ -f %{_sysconfdir}/phpmyadmin/config.default.php ]; then
	mv %{_sysconfdir}/phpmyadmin/config.default.php \
		%{_sysconfdir}/phpmyadmin/config.php
fi
# use the default file name
if [ -f %{_sysconfdir}/phpmyadmin/config.php ]; then
	mv %{_sysconfdir}/phpmyadmin/config.php \
		%{_sysconfdir}/phpmyadmin/config.inc.php
fi
if [ -L /var/www/phpmyadmin/libraries/config.default.php ]; then
	rm -f /var/www/phpmyadmin/libraries/config.default.php
fi
if [ -L %{_datadir}/phpmyadmin/libraries/config.default.php ]; then
	rm -f %{_datadir}/phpmyadmin/libraries/config.default.php
fi

%post
# generate random secret
secret=%_get_password 46

# blowfish secret
perl -pi \
	-e "s|\\\$cfg\\['blowfish_secret'\\] = ''|\\\$cfg\\['blowfish_secret'\\] = '$secret'|" \
	%{_sysconfdir}/%{name}/config.inc.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6149 |21cr|php-pear-1.10.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude pear\\\\((PHPUnit.*|PEAR.*)\\\\)
%define Archive_Tar_version 1.4.13
%define Console_Getopt_version 1.4.3
%define Structures_Graph_version 1.1.1
%define XML_RPC_version 1.5.5
%define XML_Util_version 1.4.5

Summary:	PHP Extension and Application Repository
Name:		php-pear
Epoch:		1
Version:	1.10.12
Release:	2
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PEAR/
Source0:	http://pear.php.net/get/PEAR-%{version}.tgz
Source1:	install-pear.php
Source2:	relocate.php
Source3:	strip.php
Source4:	LICENSE
Source5:	pear.script
Source10:	pear.sh
Source11:	pecl.sh
Source12:	peardev.sh
Source20:	http://pear.php.net/get/XML_RPC-%{XML_RPC_version}.tgz
Source21:	http://pear.php.net/get/Archive_Tar-%{Archive_Tar_version}.tgz
Source22:	http://pear.php.net/get/Console_Getopt-%{Console_Getopt_version}.tgz
Source23:	http://pear.php.net/get/Structures_Graph-%{Structures_Graph_version}.tgz
Source24:	http://pear.php.net/get/XML_Util-%{XML_Util_version}.tgz
BuildRequires:	php-cli
BuildRequires:	php-xml
Requires:	php-cli
Requires:	php-xml
Provides:	php-pear-Console_Getopt = %{Console_Getopt_version}
Provides:	php-pear-Archive_Tar = %{Archive_Tar_version}
Provides:	php-pear-Structures_Graph = %{Structures_Graph_version}
Provides:	php-pear-XML_RPC = %{XML_RPC_version}
Provides:	php-pear-XML_Util = %{XML_Util_version}
Obsoletes:	php-pear-XML_Util < %{XML_Util_version}
# the russian roulette fix - start
# this reduces breakage going from php-pear-5.2.x
Provides:	pear = %{EVRD}
Provides:	php-pear-PEAR = %{EVRD}
Provides:	php-pear-PEAR-Command = %{EVRD}
Provides:	php-pear-PEAR-Frontend_CLI = %{EVRD}
Provides:	php-pear-PEAR-OS = %{EVRD}
# the russian roulette fix - end
Recommends:	php-pear-DB
Recommends:	php-pear-Log
Recommends:	php-pear-Mail
Recommends:	php-pear-Mail_Mime
Recommends:	php-pear-Mail_mimeDecode
Recommends:	php-pear-Net_SMTP
Recommends:	php-pear-Net_Socket
Recommends:	php-pear-XML_Parser
BuildArch:	noarch

%description
PEAR is short for "PHP Extension and Application Repository" and is pronounced
just like the fruit. The purpose of PEAR is to provide:

 * A structured library of open-sourced code for PHP users
 * A system for code distribution and package maintenance
 * A standard style for code written in PHP
 * The PHP Foundation Classes (PFC)
 * The PHP Extension Code Library (PECL)
 * A web site, mailing lists and download mirrors to support the PHP/PEAR
   community

%files
%doc LICENSE README
%dir %{_sysconfdir}/pear
%config(noreplace) %{_sysconfdir}/pear.conf
%{_datadir}/pear
%{_bindir}/*
%dir %{_localstatedir}/cache/php-pear
%{_localstatedir}/lib/rpm/filetriggers/pear.*


%prep
%setup -q -cT

# Create a usable PEAR directory (used by install-pear.php)
for archive in %{SOURCE0} %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24}; do
    tar xzf $archive --strip-components 1
    cp $archive .
    gunzip `basename $archive`
done
tar xzf %{SOURCE24} package.xml
mv package.xml XML_Util.xml

%build

%install
export PHP_PEAR_SYSCONF_DIR=%{_sysconfdir}
export PHP_PEAR_SIG_KEYDIR=%{_sysconfdir}/pearkeys
export PHP_PEAR_SIG_BIN=%{_bindir}/gpg
export PHP_PEAR_INSTALL_DIR=%{_datadir}/pear

# 1.4.11 tries to write to the cache directory during installation
# so it's not possible to set a sane default via the environment.
# The ${PWD} bit will be stripped via relocate.php later.
export PHP_PEAR_CACHE_DIR=${PWD}%{_localstatedir}/cache/php-pear
export PHP_PEAR_TEMP_DIR=/var/tmp

install -d \
    %{buildroot}%{_datadir}/pear \
    %{buildroot}%{_localstatedir}/cache/php-pear \
    %{buildroot}%{_localstatedir}/www/html \
    %{buildroot}%{_datadir}/pear/.pkgxml \
    %{buildroot}%{_sysconfdir}/rpm \
    %{buildroot}%{_sysconfdir}/pear \
	%{buildroot}%{_bindir}

export INSTALL_ROOT=%{buildroot}

%{_bindir}/php \
    -n -dmemory_limit=64M -dshort_open_tag=0 -dsafe_mode=0 \
    -derror_reporting=E_ALL -ddetect_unicode=0 \
    %{SOURCE1} --force \
    --dir		%{buildroot}%{_datadir}/pear \
    --config	%{buildroot}%{_sysconfdir}/pear \
    --cache		%{buildroot}%{_localstatedir}/cache/php-pear \
    --bin		%{buildroot}%{_bindir} \
    --metadatadir %{buildroot}%{_datadir}/pear \
    --www		%{buildroot}%{_localstatedir}/www/html \
    `basename -s .tgz %{SOURCE0}`.tar `basename -s .tgz %{SOURCE20}`.tar `basename -s .tgz %{SOURCE21}`.tar `basename -s .tgz %{SOURCE22}`.tar `basename -s .tgz %{SOURCE23}`.tar `basename -s .tgz %{SOURCE24}`.tar

# Replace /usr/bin/* with simple scripts:
install -m 755 %{SOURCE10} %{buildroot}%{_bindir}/pear
install -m 755 %{SOURCE11} %{buildroot}%{_bindir}/pecl
install -m 755 %{SOURCE12} %{buildroot}%{_bindir}/peardev
install -m 644 scripts/*.php %{buildroot}%{_datadir}/pear

# Sanitize the pear.conf
%{_bindir}/php -n %{SOURCE2} %{buildroot}%{_sysconfdir}/pear.conf %{buildroot} |
%{_bindir}/php -n %{SOURCE2} php://stdin $PWD > new-pear.conf
%{_bindir}/php -n %{SOURCE3} new-pear.conf ext_dir |
%{_bindir}/php -n %{SOURCE3} php://stdin http_proxy > %{buildroot}%{_sysconfdir}/pear.conf

%{_bindir}/php -r "print_r(unserialize(substr(file_get_contents('%{buildroot}%{_sysconfdir}/pear.conf'),17)));"

#Sanitize the registry
for file in `ls %{buildroot}%{_datadir}/pear/.registry/*.reg`; do
	%{_bindir}/php -n %{SOURCE2} ${file} %{buildroot} |
	%{_bindir}/php -n %{SOURCE2} php://stdin $PWD > tmp.reg
	mv tmp.reg ${file}
done

install -m 644 -c %{SOURCE4} LICENSE

# apply patches on installed PEAR tree
#pushd %{buildroot}%{_datadir}/pear
#patch -p1 <%{PATCH0}
#popd

# Why this file here ?
rm -rf %{buildroot}/.depdb* %{buildroot}/.lock %{buildroot}/.channels %{buildroot}/.filemap

#remove buildroot duplicate
rm -rf %{buildroot}/%{buildroot}
rm -rf %{buildroot}%{_datadir}/pear/test

# Need for re-registrying XML_Util
install -m 644 XML_Util.xml %{buildroot}%{_datadir}/pear/.pkgxml/

# for filetriggers:
install -d -m 755 %{buildroot}%{_localstatedir}/lib/rpm/filetriggers
install -m 755 %{SOURCE5} \
    %{buildroot}%{_localstatedir}/lib/rpm/filetriggers/pear.script

%check
# Check that no bogus paths are left in the configuration, or in
# the generated registry files.
[ `grep -c %{buildroot} %{buildroot}%{_sysconfdir}/pear.conf` -eq 0 ]
[ `grep -c %{_libdir} %{buildroot}%{_sysconfdir}/pear.conf` -eq 0 ]
[ `grep -c '"/tmp"' %{buildroot}%{_sysconfdir}/pear.conf` -eq 0 ]
[ `grep -c /usr/local %{buildroot}%{_sysconfdir}/pear.conf` -eq 0 ]
[ `grep -rl %{buildroot} %{buildroot}|wc -l` -eq 0 ]

# rpm filetriggers
%transfiletriggerin --  %{_datadir}/pear/packages/
%{_localstatedir}/lib/rpm/filetriggers/pear.script

%triggerpostun -- php-pear-XML-Util
# re-register extension unregistered during postun of obsoleted
# package php-pear-XML-Util
%{_bindir}/pear install --nodeps --soft --force --register-only \
    %{_datadir}/pear/packages/XML_Util.xml >/dev/null || :

%files
%doc LICENSE README.rst
%dir %{_sysconfdir}/pear
%config(noreplace) %{_sysconfdir}/pear.conf
%{_datadir}/pear
%{_bindir}/*
%dir %{_localstatedir}/cache/php-pear
%{_localstatedir}/lib/rpm/filetriggers/pear.*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6150 |21cr|php-pear-Archive_Tar-1.3.13-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Archive_Tar
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define xmldir  /var/lib/pear

Summary: 	Tar file management class
Name: 		php-pear-%{upstream_name}
Version: 	1.3.13
Release: 	3
License: 	New BSD License
Group: 		Development/PHP
URL: http://pear.php.net/package/Archive_Tar
Source0: http://pear.php.net/get/Archive_Tar-%{version}.tgz
BuildRequires:  php-pear >= 1.4.7
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch: 	noarch

%description
This class provides handling of tar files in PHP.
It supports creating, listing, extracting and adding to tar files.
Gzip support is available if PHP has the zlib extension built-in or
loaded. Bz2 compression is also supported with the bz2 extension loaded.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s

%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
        
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

mv %{buildroot}/docs .


# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Archive_Tar.xml


%post
pear install --nodeps --soft --force --register-only %{xmldir}/Archive_Tar.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Archive_Tar
fi

%files
%doc docs/Archive_Tar/*
%{peardir}/*
%{xmldir}/Archive_Tar.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6151 |21cr|php-pear-Auth-1.6.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Auth
%define		upstream_name	%{_class}

Name:       php-pear-%{upstream_name}
Version:	1.6.4
Release:	8
Summary:	PHP PEAR authentication class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Auth/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
The PEAR::Auth package provides methods for creating an authentication
system using PHP.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages


%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/README*
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}*
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6152 |21cr|php-pear-Auth_HTTP-2.1.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Auth
%define		_subclass	HTTP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	2.1.8
Release:	5
Summary:	HTTP authentication system using PHP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Auth_HTTP/
Source0:	http://download.pear.php.net/package/Auth_HTTP-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
The PEAR::Auth_HTTP class provides methods for creating an HTTP
authentication system using PHP, that is similar to Apache's
realm-based .htaccess authentication.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{_class}_%{_subclass}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6153 |21cr|php-pear-Auth_OpenID-2.2.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude pear(config.php)
%else
%define		_requires_exceptions 'pear(config.php)'
%endif

%define		_class		Auth
%define		_pearname	%{_class}_OpenID

Summary:	PHP OpenID
Name:		php-pear-%{_pearname}
Version:	2.2.2
Release:	9
Group:		Development/PHP
License:	Apache License
URL:		http://www.openidenabled.com/openid/libraries/php
Source0:	http://download.pear.php.net/package/php-openid-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-pgsql
Requires:	php-mysql
Requires:	php-bcmath
BuildArch:	noarch
BuildRequires:	dos2unix

%description
An implementation of the OpenID single sign-on authentication protocol.

This package also supports yubico:
http://code.google.com/p/yubico-openid-server/

%prep

%setup -q -n php-openid-%{version}

# strip away annoying ^M
find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix

%build

%install
install -d %{buildroot}%{_datadir}/pear/%{_class}/OpenID
install -d %{buildroot}%{_datadir}/pear/%{_class}/Yadis

install -m0644 Auth/OpenID.php %{buildroot}%{_datadir}/pear/%{_class}/
install -m0644 Auth/OpenID/*.php %{buildroot}%{_datadir}/pear/%{_class}/OpenID/
install -m0644 Auth/Yadis/*.php %{buildroot}%{_datadir}/pear/%{_class}/Yadis/

%files
%defattr(644,root,root,755)
%doc NEWS COPYING README CHANGES-2.1.0 examples
%dir %{_datadir}/pear/%{_class}/OpenID
%dir %{_datadir}/pear/%{_class}/Yadis
%{_datadir}/pear/%{_class}/OpenID.php
%{_datadir}/pear/%{_class}/OpenID/*.php
%{_datadir}/pear/%{_class}/Yadis/*.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6154 |21cr|php-pear-Auth_PrefManager-1.2.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Auth
%define		_subclass	PrefManager
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.0
Release:	12
Summary:	Preferences management class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Auth_PrefManager/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Preference Manager is a class to handle user preferences in a web
application, looking them up in a table using a combination of their
userid, and the preference name to get a value, and (optionally)
returning a default value for the preference if no value could be
found for that user. It is designed to be used alongside the PEAR Auth
class, but can be used with anything that allows you to obtain the
user's id - including your own code.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6155 |21cr|php-pear-Auth_RADIUS-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Auth
%define		_subclass	RADIUS
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.0
Release:	1
Summary:	Wrapper Classes for the RADIUS PECL
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Auth_RADIUS/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-radius
BuildRequires:	php-pear
BuildArch:	noarch

%description
This package provides wrapper-classes for the RADIUS PECL. There are
different Classes for the different authentication methods. If you are
using CHAP-MD5 or MS-CHAP you need also the Crypt_CHAP package. If you
are using MS-CHAP you need also the mhash extension.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6156 |21cr|php-pear-Auth_SASL-1.0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Auth
%define		_subclass	SASL
%define		upstream_name	%{_class}_%{_subclass}

Summary:	Generate responses to common SASL mechanisms
Name:		php-pear-%{upstream_name}
Version:	1.0.6
Release:	7
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Auth_SASL/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Provides code to generate responses to common SASL mechanisms,
including: Digest-MD5, CramMD5, Plain, Anonymous, Login (Pseudo
mechanism).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6157 |21cr|php-pear-Benchmark-1.2.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Benchmark
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.2.9
Release:	6
Summary:	Benchmark PHP scripts or function calls
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Benchmark/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Framework to benchmark PHP scripts or function calls.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages


%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/doc/*.php
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6158 |21cr|php-pear-bytekit-1.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name bytekit
%global __requires_exclude /usr/bin/php

Summary:	A command-line tool built on the PHP Bytekit extension

Name:		php-pear-%{upstream_name}
Version:	1.1.2
Release:	6
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/bytekit-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-pear-File_Iterator >= 1.3.0

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides A command-line tool built on the PHP Bytekit
extension for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_bindir}/bytekit
%{_datadir}/pear/Bytekit
%{_datadir}/pear/packages/bytekit.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6159 |21cr|php-pear-Cache-1.5.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Cache
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.5.6
Release:	9
Summary:	Framework for caching of arbitrary data
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Cache/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires:	php-pear
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear-HTTP_Request
BuildArch:	noarch
BuildRequires:	php-pear

%description
With the PEAR Cache you can cache the result of certain function
calls, as well as the output of a whole script run or share data
between applications.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6160 |21cr|php-pear-Cache_Lite-1.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Cache
%define		_subclass	Lite
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.8.3
Release:	1
Summary:	Fast and Safe little cache system
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Cache_Lite/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Source1:	Hashed_Cache_Lite.php.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package is a little cache system optimized for file containers.
It is fast and safe (because it uses file locking and/or
anti-corruption tests).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean

%files
%doc %{upstream_name}-%{version}/docs/*
%doc %{upstream_name}-%{version}/TODO
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6161 |21cr|php-pear-Calendar-0.5.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Calendar
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.5.5
Release:	5
Summary:	Building calendar data structures (irrespective of output)
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Calendar/
Source0:	http://download.pear.php.net/package/Calendar-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Calendar provides an API for building calendar data structures. Using
the simple iterator and it's "query" API, a user interface can easily be
built on top of the calendar data structure, at the same time easily
connecting it to some kind of underlying data store, where "event"
information is being held.

It provides different calculation "engines" the default being based on
Unix timestamps (offering fastest performance) with an alternative using
PEAR::Date which extends the calendar past the limitations of Unix
timestamps. Other engines should be implementable for other types of
calendar (e.g. a Chinese Calendar based on lunar cycles).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6162 |21cr|php-pear-CAS-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

#define _requires_exceptions  pear(CAS.php/CAS/Autoload.php)
%define upstream_name CAS
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Name:       php-pear-%{upstream_name}
Summary:    Central Authentication Service client library in php
Version:	1.5.0
Release:	1
License:    ASL 2.0
Group:      Development/PHP
URL:        https://apereo.atlassian.net/wiki/spaces/CASC/pages/103252517/phpCAS
Source0:    https://github.com/apereo/phpCAS/releases/download/1.4.0/CAS-1.4.0.tgz

BuildRequires:  php >= 5.4
BuildRequires:  php-pear >= 1.4.7
BuildRequires:  config(php-curl) config(php-openssl) config(php-dom) config(php-zlib)

BuildArch:  noarch

%description
This package is a PEAR installable library for using a Central
Authentication Service.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s
%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
        
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

mv %{buildroot}/docs/CAS/* .

# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/CAS.xml

%post
pear install --nodeps --soft --force --register-only %{xmldir}/CAS.xml

%preun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only __uri/CAS
fi

%files
%doc docs LICENSE NOTICE README.md
%{peardir}/CAS
%{peardir}/CAS.php
%{xmldir}/CAS.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6163 |21cr|php-pear-channel-horde-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define pear_xmldir  %{_datadir}/pear/packages

Name:           php-pear-channel-horde
Version:        1.0
Release:        14
Summary:        Adds pear.horde.org channel to PEAR
Group:          System/Libraries
License:        BSD
URL:            http://pear.horde.org/
Source0:        http://pear.horde.org/channel.xml
BuildArch:      noarch
BuildRequires:  php-pear >= 5.1.1
Requires(pre):	php-cli
Requires(pre):	php-pear
Requires:	php-mbstring
Requires:	php-mysql
Requires:	php-session
Requires:	php-sysvsem
Requires:	php-tokenizer




%description
This package adds the pear.horde.org channel which allows PEAR packages
from this channel to be installed.


%prep
%setup -q -c -T


%build
# Empty build section, nothing to build


%install

%{__mkdir_p} %{buildroot}%{pear_xmldir}
%{__install} -pm 644 %{SOURCE0} %{buildroot}%{pear_xmldir}/pear.horde.org.xml



%post
if [ $1 -gt  1 ] ; then
   pear channel-update pear.horde.org
else
   pear channel-add %{pear_xmldir}/pear.horde.org.xml
fi

%preun
if [ $1 -eq 0 ] ; then
   pear channel-delete pear.horde.org
fi


%files
%defattr(-,root,root,-)
%{pear_xmldir}/pear.horde.org.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6164 |21cr|php-pear-channel-symfony2-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define pear_xmldir  /var/lib/pear

Summary:	Adds pear.symfony.com channel to PEAR
Name:		php-pear-channel-symfony2
Version:	1.0
Release:	5
License:	MIT
Group:		System/Libraries
Url:		http://pear.symfony.com/
Source0:	http://pear.symfony.com/channel.xml
BuildRequires:	php-pear
Requires(post,preun):	php-pear
BuildArch:	noarch

%description
This package adds the pear.symfony-project.com channel.

%files
%{pear_xmldir}/pear.symfony.com.xml

%post
if [ $1 -gt  1 ] ; then
   pear channel-update %{pear_xmldir}/pear.symfony.com.xml
else
   pear channel-add %{pear_xmldir}/pear.symfony.com.xml
fi

%preun
if [ $1 -eq 0 ] ; then
   pear channel-delete pear.symfony.com > /dev/null || :
fi

#----------------------------------------------------------------------------

%prep
%setup -q -c -T

%build
# Empty build section, nothing to build

%install
mkdir -p %{buildroot}%{pear_xmldir}
install -pm 644 %{SOURCE0} %{buildroot}%{pear_xmldir}//pear.symfony.com.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6165 |21cr|php-pear-Config-1.10.12-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Config
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.10.12
Release:	10
Summary:	Class for reading and writing Config-"files"
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Config/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The Config package provides methods for editing configuration
datasources. It does so in an object oriented manner, defining each
and every items found in the config datasource as a Config_Container
of various types (comments, sections, directives, blanks, ...). Items
can then be edited, added, removed, inserted. This package is not
intended for reading configuration data only, but for editing them. If
you only want to read your configuration data, use functions like
parse_ini_file() and the like instead, they are much faster.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6166 |21cr|php-pear-Console_Color2-0.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Console_Color2
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Summary:	This Class allows you to easily use ANSI console colors in your application
Name:		php-pear-%{upstream_name}
Version:	0.1.2
Release:	5
License:	MIT
Group:		Development/PHP
Url:		http://pear.phpunit.de/package/%upstream_name
Source0:	http://pear.phpunit.de/get/%upstream_name-%{version}.tgz
BuildRequires:	php-pear >= 1.4.7
Requires(post,preun):	php-pear
Obsoletes:	php-pear-Console_Color < 1.0.4
BuildArch:	noarch

%description
You can use Console_Color::convert to transform colorcodes like /r into
ANSI
control codes. $console = new Console_Color2(); print
$console->convert("/rHello World!/n"); would print
"Hello World" in red, for example.

%files
%doc docs/Console_Color2/*
%{peardir}/*
%{xmldir}/Console_Color2.xml

%post
pear install --nodeps --soft --force --register-only %{xmldir}/Console_Color2.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Console_Color2
fi

#----------------------------------------------------------------------------

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s

%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}

# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

mv %{buildroot}/docs .


# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Console_Color2.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6167 |21cr|php-pear-Console_Getargs-1.3.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Console
%define		_subclass	Getargs
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.5
Release:	8
Summary:	A command-line arguments parser
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Console_Getargs/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The Console_Getargs package implements a Command Line arguments parser
that your CLI applications can use to parse arguments found in
\$_SERVER['argv']. It performs some basic arguments validation and is
capable to return a formatted help text to the user, based on the
configuration it is given.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6168 |21cr|php-pear-Console_Getopt-1.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Console_Getopt
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define xmldir  /var/lib/pear

Summary:	Command-line option parser
Name: 		php-pear-%{upstream_name}
Version: 	1.3.1
Release: 	3
License: 	PHP License
Group: 		Development/PHP
URL: 		http://pear.php.net/package/Console_Getopt
Source0: 	http://pear.php.net/get/Console_Getopt-%{version}.tgz
BuildRequires:  php-pear >= 1.4.7
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch: 	noarch

%description
This is a PHP implementation of "getopt" supporting both
short and long options.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s

%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
        
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock



# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Console_Getopt.xml


%post
pear install --nodeps --soft --force --register-only %{xmldir}/Console_Getopt.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Console_Getopt
fi

%files
%{peardir}/*
%{xmldir}/Console_Getopt.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6169 |21cr|php-pear-Console_ProgressBar-0.5.2beta-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Console
%define		_subclass	ProgressBar
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.5.2beta
Release:	13
Summary:	Provides an easy-to-use interface to progress bars
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Console_ProgressBar/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The class allows you to display progress bars in your terminal. You can
use this for displaying the status of downloads or other tasks that take
some time.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6170 |21cr|php-pear-Console_Table-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define _class      Console
%define _subclass   Table
%define upstream_name   %{_class}_%{_subclass}
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Name:       php-pear-%{upstream_name}
Version:    1.3.1
Release:    1
Summary:    Makes it easy to build console style tables
License:    PHP License
Group:      Development/PHP
URL:        http://pear.php.net/package/Console_Table/
Source0:    http://download.pear.php.net/package/Console_Table-%{version}.tgz

BuildRequires:  php >= 5.4
BuildRequires:  php-pear >= 1.4.7
BuildRequires:  php-pear-Console_Color2

Requires(post,preun):   php-pear >= 1.4.7

BuildArch:  noarch

%description
Provides methods such as addRow(), insertRow(), addCol() etc to build
Console tables. Can be with or without headers, and has various
configurable options.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s
%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}

rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Console_Table.xml

%post
pear install --nodeps --soft --force --register-only %{xmldir}/Console_Table.xml

%preun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Console_Table
fi

%files
%{peardir}/%{_class}
%{peardir}/tests/%{upstream_name}
%{xmldir}/Console_Table.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6171 |21cr|php-pear-Contact_AddressBook-0.5.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Contact
%define		_subclass	AddressBook
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.5.1
Release:	13
Summary:	Address book export-import class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Contact_AddressBook/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Package provides export-import address book mechanism.
Contact_AddressBook refers to needed structure, convert the various
address book structure format into it, then you can easily store it
into file, database or another storage media.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages


%files
%doc %{upstream_name}-%{version}/docs/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6172 |21cr|php-pear-Crypt_Blowfish-1.0.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Crypt
%define		_subclass	Blowfish
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	17
Summary:	Quick two-way blowfish encryption
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Crypt_Blowfish/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
BuildRequires:	sed >= 4.0.0
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package allows you to preform two-way blowfish on the fly using
only PHP. This package does not require the Mcrypt PHP extension to
work.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6173 |21cr|php-pear-Crypt_CBC-1.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Crypt
%define		_subclass	CBC
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	5
Summary:	A class to emulate Perl's Crypt::CBC module
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Crypt_CBC/
Source0:	http://download.pear.php.net/package/Crypt_CBC-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A class to emulate Perl's Crypt::CBC module.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6174 |21cr|php-pear-Crypt_CHAP-1.5.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Crypt
%define		_subclass	CHAP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.5.0
Release:	8
Summary:	Generating CHAP packets
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Crypt_CHAP/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides Classes for generating CHAP packets. Currently
these types of CHAP are supported:
 - CHAP-MD5
 - MS-CHAPv1
 - MS-CHAPv2
For MS-CHAP the php-mhash extension must be loaded.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6175 |21cr|php-pear-Crypt_GPG-1.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define upstream_name Crypt_GPG
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)

Name:		php-pear-%{upstream_name}
Version: 	1.6.3
Release:	1
Summary: 	GNU Privacy Guard (GnuPG)
License: 	LGPLv2.1
Group: 		Development/PHP
URL: 		http://pear.php.net/package/Crypt_GPG
Source0:    http://download.pear.php.net/package/Crypt_GPG-%{version}.tgz

BuildRequires:  php >= 5.4.8
BuildRequires:  php-pear >= 1.4.0
BuildRequires:  config(php-mbstring)

Requires(post,preun):   php-pear >= 1.4.7

BuildArch: noarch

%description
This package provides an object oriented interface to GNU Privacy Guard
(GnuPG). It requires the GnuPG executable to be on the system.

Though GnuPG can support symmetric-key cryptography, this package is
intended only to facilitate public-key cryptography.

This package requires PHP version 5.4.8 or greater.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s
%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}

rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

mv %{buildroot}/docs/Crypt_GPG/* .

# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Crypt_GPG.xml

%post
pear install --nodeps --soft --force --register-only %{xmldir}/Crypt_GPG.xml

%preun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Crypt_GPG
fi

%files
%doc LICENSE README.md
%{_bindir}/crypt-gpg-pinentry
%{peardir}/Crypt/GPG.php
%{peardir}/Crypt/GPGAbstract.php
%{peardir}/Crypt/GPG
%{peardir}/data/Crypt_GPG
%{peardir}/tests/Crypt_GPG
%{xmldir}/Crypt_GPG.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6176 |21cr|php-pear-Crypt_HMAC-1.0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Crypt
%define		_subclass	HMAC
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	19
Summary:	A class to calculate RFC 2104 compliant hashes
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Crypt_HMAC/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A class to calculate RFC 2104 compliant hashes.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6177 |21cr|php-pear-Crypt_Rc4-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Crypt
%define		_subclass	Rc4
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.3
Release:	5
Summary:	Encryption class for RC4 encryption
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Crypt_Rc4/
Source0:	http://download.pear.php.net/package/Crypt_RC4-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
RC4 encryption class.

%prep
%setup -q -c
mv package.xml Crypt_RC4-%{version}/%{upstream_name}.xml

%install

cd Crypt_RC4-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages


%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6178 |21cr|php-pear-Crypt_RSA-1.0.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Crypt
%define		_subclass	RSA
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	21
Summary:	Provides RSA-like encryption support
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Crypt_RSA/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package allows you to use two-key strong cryptography like RSA
with arbitrary key length. It uses one of the following extensions for
math calculations:
- PECL big_int extension version greater than or equal to 1.0.3
- PHP GMP extension
- PHP BCMath extension

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6179 |21cr|php-pear-Crypt_Xtea-1.1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Crypt
%define		_subclass	Xtea
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.0
Release:	14
Summary:	The Tiny Encryption Algorithm (TEA) (New Variant)
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Crypt_Xtea/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A class that implements the Tiny Encryption Algorithm (TEA) (New
Variant). This class does not depend on mcrypt. Encryption is
relatively fast, decryption relatively slow. Original code from
http://vader.brad.ac.uk/tea/source.shtml#new_ansi

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6180 |21cr|php-pear-Date-1.5.0-0.a4.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define upstream_name Date
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)

%define pre_rel a4

Name:		php-pear-%{upstream_name}
Version:	1.5.0
Release:	0.%{pre_rel}.1
Summary:	Date and time zone classes
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Date/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}%{pre_rel}.tgz

BuildRequires:  php >= 4.3
BuildRequires:  php-pear >= 1.4.0

Requires(post,preun):   php-pear >= 1.4.0

BuildArch:	noarch

%description
Generic classes for representation and manipulation of dates, times
and time zones without the need of timestamps, which is a huge
limitation for PHP programs. Includes time zone data, time zone
conversions and many date/time conversions. It does not rely on 32-bit
system date stamps, so you can display calendars and compare dates
that date pre 1970 and post 2038. This package also provides a class
to convert date strings between Gregorian and Human calendar formats.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s

%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}

rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock
rm %{buildroot}%{peardir}/buildPackageXML.php

mv %{buildroot}/docs/%{upstream_name}/docs/* .
mv %{buildroot}%{peardir}/data/%{upstream_name}/README .

mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Date.xml

%files
%doc examples README LICENSE
%{peardir}/%{upstream_name}.php
%{peardir}/%{upstream_name}
%{peardir}/tests/%{upstream_name}
%{xmldir}/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6181 |21cr|php-pear-Date_Holidays-0.21.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _class		Date
%define _subclass	Holidays
%define modname	%{_class}_%{_subclass}
%define pear_deps php-pear-Date_Holidays_Austria php-pear-Date_Holidays_Brazil php-pear-Date_Holidays_Denmark php-pear-Date_Holidays_Discordian php-pear-Date_Holidays_EnglandWales php-pear-Date_Holidays_Germany php-pear-Date_Holidays_Iceland php-pear-Date_Holidays_Ireland php-pear-Date_Holidays_Italy php-pear-Date_Holidays_Japan php-pear-Date_Holidays_Netherlands php-pear-Date_Holidays_Norway php-pear-Date_Holidays_PHPdotNet php-pear-Date_Holidays_Romania php-pear-Date_Holidays_Slovenia php-pear-Date_Holidays_Sweden php-pear-Date_Holidays_UNO php-pear-Date_Holidays_USA php-pear-Date_Holidays_Ukraine

%global __requires_exclude /usr/bin/php

Summary:	Driver based class to calculate holidays
Name:		php-pear-%{modname}
Version:	0.21.8
Release:	11
License:	PHP License
Group:		Development/PHP
Url:		http://pear.php.net/package/Date_Holidays/
Source0:	http://download.pear.php.net/package/Date_Holidays-%{version}.tgz
BuildArch:	noarch
BuildRequires:	php-pear
Requires(post,preun):	php-pear
Requires:	php-pear
Recommends:	%{pear_deps}

%description
Date_Holidays helps you calculating the dates and titles of
holidays and other special celebrations. The calculation is
driver-based so it is easy to add new drivers that calculate
a country's holidays. The methods of the class can be used
to get a holiday's date and title in various languages.

%prep
%setup -qc
mv package.xml %{modname}-%{version}/%{modname}.xml

%install
cd %{modname}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{modname}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{modname}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{modname}-%{version}/examples
%{_bindir}/pear-dh-*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{modname}
%{_datadir}/pear/packages/%{modname}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6182 |21cr|php-pear-Date_Holidays_USA-0.1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Date
%define		_subclass	Holidays
%define		_region		USA
%define		upstream_name	%{_class}_%{_subclass}_%{_region}

Name:		php-pear-%{upstream_name}
Version:	0.1.1
Release:	11
Summary:	Driver based class to calculate holidays in %{_region}
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-pear-Date_Holidays >= 0.21.1
BuildArch:	noarch
BuildRequires:	php-pear

%description
%{upstream_name} is the Date_Holidays driver for %{_region} region.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6183 |21cr|php-pear-DB-1.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		    DB
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.11.0
Release:	1
Summary:	Database Abstraction Layer
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/DB-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
DB is a database abstraction layer providing:
* an OO-style query API
* portability features that make programs written for one DBMS work with other
  DBMS's
* a DSN (data source name) format for specifying database servers
* prepare/execute (bind) emulation for databases that don't support it natively
* a result object for each query response
* portable error codes
* sequence emulation
* sequential and non-sequential row fetching as well as bulk fetching
* formats fetched rows as associative arrays, ordered arrays or objects
* row limit support
* transactions support
* table information interface
* DocBook and phpDocumentor API documentation

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean

%files
%doc %{upstream_name}-%{version}/doc/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6184 |21cr|php-pear-DBA-1.1.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DBA
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.1.1
Release:	14
Summary:	Berkeley-style Database Class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DBA/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Implements a DBM-style database using either PHP's DBA functions or a
simple DBM class written in PHP. Also provides a relational database
system with support for selects, joins, sorts, projects, multiple
tables, type checking, autoincrements and more.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{_class}-%{version}/docs/*
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6185 |21cr|php-pear-DB_ado-1.3.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	ado
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.1
Release:	11
Summary:	DB driver which use MS ADODB library
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_ado/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
DB_ado is a database independent query interface definition for
Microsoft's ADODB library using PHP's COM extension. This class allows
you to connect to different data sources like MS Access, MS SQL
Server, Oracle and other RDBMS on a Win32 operating system. Moreover
the possibility exists to use MS Excel spreadsheets, XML, text files
and other not relational data as data source.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6186 |21cr|php-pear-DBA_Relational-0.2.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DBA
%define		_subclass	Relational
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	14
Epoch:		1
Summary:	Berkeley-style database abstraction class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DBA_Relational/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Table management extension for DBA.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6187 |21cr|php-pear-DB_DataObject-1.11.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	DataObject
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.11.5
Release:	4
Summary:	An SQL builder, object interface to database tables

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_DataObject/
Source0:	http://download.pear.php.net/package/DB_DataObject-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The core class is designed to be extended for each of your tables so
that you put the data logic inside the data classes. Included is a
Generator to make your configuration files and your base classes.
DataObject performs 2 tasks:
- Builds SQL statements based on the objects vars and the builder
  methods,
- acts as a datastore for a table row.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_bindir}/DB

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/example.ini
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6188 |21cr|php-pear-DB_DataObject_FormBuilder-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	DataObject_FormBuilder
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	5
Summary:	Automatically build HTML_QuickForm object from a DB_DataObject derived class
Epoch:		1
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_DataObject_FormBuilder/
Source0:	http://download.pear.php.net/package/DB_DataObject_FormBuilder-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
%{upstream_name} will aid you in rapid application development
using the packages DB_DataObject and HTML_QuickForm. For having quick but
working prototype of your application, simply model the database, run
DataObject`s CreateTable script over it and write a script that passes
one of the resulting objects to the FormBuilder class. The FormBuilder
class will automatically generate a simple but working HTML_QuickForm
object that you can use to test your application. It also provides a
processing method that will automatically detect if an insert() or
update() command has to be executed after the form has been submitted.
If you have set DataObject`s links.ini file correctly, it will also
automatically detect if a table field is a foreign key and will populate
a selectbox with the linked table`s entry. There are many optional
parameteres that you can place in DataObjects.ini or in properties of
your derived classes, that you can use to fine-tune the form generation,
gradually turning the prototypes into fully features forms and you can
take control of any stage at the process.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

rm -f %{buildroot}%{_datadir}/pear/package.php


%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6189 |21cr|php-pear-DB_ldap-1.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	ldap
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.1
Release:	6
Summary:	DB interface to LDAP server
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_ldap/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The PEAR::DB_ldap class provides a DB compliant interface to LDAP
servers.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6190 |21cr|php-pear-DB_ldap2-0.5.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	ldap2
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.5.1
Release:	12
Summary:	DB drivers for LDAP v2 and v3 database
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_ldap2/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
DB_ldap2 and DB_ldap3 classes extend DB_common to provide DB compliant
access to LDAP servers with protocol version 2 and 3. The drivers
provide common DB interface as much as possible and support
prepare/execute statements.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6191 |21cr|php-pear-DB_NestedSet-1.4.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	NestedSet
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.4.1
Release:	9
Summary:	API to build and query nested sets
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_NestedSet/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
DB_NestedSet lets you create trees with infinite depth inside a
relational database. The package provides a way to:
- create/update/delete nodes
- query nodes, trees and subtrees
- copy (clone) nodes, trees and subtrees
- move nodes, trees and subtrees
- call event handlers on specific events like on node deletion
- output the tree with
  - PEAR::HTML_TreeMenu
  - TigraMenu (http://www.softcomplex.com/products/tigra_menu/)
- It also features caching of SQL queries using PEAR::Cache.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6192 |21cr|php-pear-DB_odbtp-1.0.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	odbtp
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.4
Release:	12
Summary:	DB interface for ODBTP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_odbtp/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
DB_odbtp is a PEAR DB driver that uses the ODBTP extension to connect
to a database. It can be used to remotely access any Win32-ODBC
accessible database from any platform.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/* %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6193 |21cr|php-pear-DB_Pager-0.7-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	Pager
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.7
Release:	19
Summary:	Retrieve and return information of database result sets
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_Pager/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class handles all the stuff needed for displaying paginated
results from a database query of PEAR DB, including fetching only the
needed rows and giving extensive information for helping build an HTML
or GTK+ query result display.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6194 |21cr|php-pear-DB_QueryTool-1.1.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	QueryTool
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.2
Release:	13
Summary:	An OO-interface for easily retrieving and modifying data in a DB
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_QueryTool/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package is an OO-abstraction to the SQL-Query language, it
provides methods such as setWhere, setOrder, setGroup, setJoin, etc.
to easily build queries. It also provides an easy to learn interface
that interacts nicely with HTML-forms using arrays that contain the
column data, that shall be updated/added in a DB. This package bases
on an SQL-Builder which lets you easily build SQL-Statements and
execute them.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6195 |21cr|php-pear-DB_Sqlite_Tools-0.1.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	Sqlite
%define		_ssclass	Tools
%define		upstream_name	%{_class}_%{_subclass}_%{_ssclass}

Name:		php-pear-%{upstream_name}
Version:	0.1.7
Release:	5
Summary:	OO interface designed to effectively manage and backup Sqlite databases
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_Sqlite_Tools/
Source0:	http://download.pear.php.net/package/DB_Sqlite_Tools-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
DB_Sqlite_Tools is extends the native PHP-sqlite function by providing
a comprehensive solution for database backup, live replication, export
in XML format, performance optmization and more. It is designed for
the maintenance and optimisation of several sqlite databases.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -f %{buildroot}%{_datadir}/pear/generate_package_xml.php

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6196 |21cr|php-pear-DB_Table-1.5.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		DB
%define		_subclass	Table
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.5.6
Release:	12
Summary:	Automate table creation
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/DB_Table/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Builds on PEAR DB to abstract datatypes and automate table creation,
data validation, insert, update, delete, and select; combines these
with PEAR HTML_QuickForm to automatically generate input forms that
match the table column definitions.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6197 |21cr|php-pear-DbUnit-1.3.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name DbUnit
%global __requires_exclude /usr/bin/php

Summary:	DbUnit port for PHP/PHPUnit to support database interaction testing

Name:		php-pear-%{upstream_name}
Version:	1.3.1
Release:	8
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/DbUnit-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-symfony-YAML >= 1.0.2

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides DbUnit port for PHP/PHPUnit to support database
interaction testing.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_bindir}/dbunit
%{_datadir}/pear/PHPUnit/Extensions/Database
%{_datadir}/pear/packages/DbUnit.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6198 |21cr|php-pear-Event_Dispatcher-1.1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Event
%define		_subclass	Dispatcher
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.0
Release:	11
Summary:	Dispatch notifications using PHP callbacks
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Event_Dispatcher/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The Event_Dispatcher acts as a notification dispatch table. It is used
to notify other objects of interesting things. This information is
encapsulated in Event_Notification objects. Client objects register
themselves with the Event_Dispatcher as observers of specific
notifications posted by other objects. When an event occurs, an object
posts an appropriate notification to the Event_Dispatcher. The
Event_Dispatcher dispatches a message to each registered observer,
passing the notification as the sole argument.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6199 |21cr|php-pear-File-1.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		upstream_name	%{_class}

Summary:	Common file and directory routines
Name:		php-pear-%{upstream_name}
Version:	1.4.1
Release:	5
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File/
Source0:	http://download.pear.php.net/package/File-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear
Recommends:	php-pear-File_Util
Recommends:	php-pear-File_CSV

%description
Provides easy access to read/write to files along with some common routines
to deal with paths.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6200 |21cr|php-pear-File_Bittorrent-1.1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	Bittorrent
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.0
Release:	14
Summary:	Decode and Encode data in Bittorrent format
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_Bittorrent/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package consists of two classes which handles the encoding and
decoding of data in Bittorrent format.

You can also extract useful informations from .torrent files.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6201 |21cr|php-pear-File_CSV-1.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		upstream_name	%{_class}_CSV

Summary:	Read and write of CSV files
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	9
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_CSV/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear
Conflicts:	php-pear-File < 1.4.0

%description
Read and write of CSV files as well as discovering the format the CSV file is
in.

Supports headers and is excel compatible, i.e. ="0004" outputs as 0004 (only
read wise)

For more information on CSV: http://rfc.net/rfc4180.html

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}/CSV.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6202 |21cr|php-pear-File_DICOM-0.3-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	DICOM
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3
Release:	19
Summary:	Package for reading and modifying DICOM files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_DICOM/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
File_DICOM allows reading and modifying of DICOM files.

DICOM stands for Digital Imaging and COmmunications in Medicine, and
is a standard for creating, storing and transfering digital images
(X-rays, tomography) and related information used in medicine. This
package in particular does not support the exchange/transfer of DICOM
data, nor any network related functionality. More information on the
DICOM standard can be found at: http://medical.nema.org/.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6203 |21cr|php-pear-File_DNS-0.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	DNS
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.1.0
Release:	5
Summary:	Manipulate RFC1033-style DNS Zonefiles
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_DNS/
Source0:	http://download.pear.php.net/package/File_DNS-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The File_DNS class provides a way to read, edit and write RFC1033
style DNS Zones.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6204 |21cr|php-pear-File_Find-1.3.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	Find
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.3
Release:	9
Summary:	A class that facillitates the search of filesystems
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_Find/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
File_Find, created as a replacement for its Perl counterpart, also
named File_Find, is a directory searcher, which handles globbing,
recursive directory searching, as well as a slew of other cool
features.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6205 |21cr|php-pear-File_Fstab-2.0.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	Fstab
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	2.0.3
Release:	8
Summary:	Read and write fstab files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_Fstab/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
File_Fstab is an easy-to-use package which can read & write UNIX fstab
files. It presents a pleasant object-oriented interface to the fstab.
Features:
- Supports blockdev, label, and UUID specification of mount device.
- Extendable to parse non-standard fstab formats by defining a new
  Entry class for that format.
- Easily examine and set mount options for an entry.
- Stable, functional interface.
- Fully documented with PHPDoc.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -f %{buildroot}%{_datadir}/pear/example.php
rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/example.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6206 |21cr|php-pear-File_Gettext-0.4.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	Gettext
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.2
Release:	5
Summary:	GNU Gettext file parser
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_Gettext/
Source0:	http://download.pear.php.net/package/File_Gettext-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Reader and writer for GNU PO and MO files.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6207 |21cr|php-pear-File_HtAccess-1.2.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	HtAccess
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.1
Release:	12
Summary:	Manipulate .htaccess files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_HtAccess/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides methods to manipulate .htaccess files.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6208 |21cr|php-pear-File_IMC-0.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	IMC
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.5.0
Release:	5
Summary:	Create and parse Internet Mail Consortium-style files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_IMC/
Source0:	http://download.pear.php.net/package/File_IMC-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Allows you to programmatically create a vCard or vCalendar, and fetch
the text.

IMPORTANT: The array structure has changed slightly from
Contact_Vcard_Parse. See the example output for the new structure.
Also different from Contact_Vcard is the use of a factory pattern.
Again, see the examples.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6209 |21cr|php-pear-File_Iterator-1.3.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name File_Iterator

Summary:	FilterIterator implementation that filters files based on a list of suffixes
Name:		php-pear-%{upstream_name}
Version:	1.3.4
Release:	8
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/File_Iterator-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides FilterIterator implementation that filters files based
on a list of suffixes for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%doc %{upstream_name}-%{version}/README.markdown
%{_datadir}/pear/File/Iterator
%{_datadir}/pear/File/*.php
%{_datadir}/pear/packages/File_Iterator.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6210 |21cr|php-pear-File_Ogg-0.3.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	Ogg
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.1
Release:	13
Summary:	Access Ogg bitstreams
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_Ogg/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides access to various media types inside an Ogg
bitstream.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6211 |21cr|php-pear-File_Passwd-1.1.7-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	Passwd
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.7
Release:	12
Summary:	Manipulate password files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_Passwd/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides methods to manipulate standard Unix, SMB server,
AuthUser (.htpasswd), AuthDigest (.htdigest) and CVS pserver password
files.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6212 |21cr|php-pear-File_PDF-0.3.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	PDF
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.3
Release:	8
Summary:	PDF generation using only PHP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_PDF/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides PDF generation using only PHP, without requiring
any external libraries.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6213 |21cr|php-pear-File_SearchReplace-1.1.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	SearchReplace
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.4
Release:	8
Summary:	Performs search and replace routines
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_SearchReplace/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides various functions to perform search/replace on files.
Preg/Ereg regex supported along with faster but more basic str_replace
routine.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6214 |21cr|php-pear-File_SMBPasswd-1.0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		_subclass	SMBPasswd
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.3
Release:	12
Summary:	Class for managing SAMBA style password files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_SMBPasswd/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
With this package, you can maintain smbpasswd-files, usualy used by
SAMBA.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6215 |21cr|php-pear-File_Util-1.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		File
%define		upstream_name	%{_class}_Util

Summary:	Common file and directory utility functions
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	9
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/File_Util/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear
Conflicts:	php-pear-File < 1.4.0

%description
Common file and directory utility functions. Path handling, temp dir/file,
sorting of files, listDirs, isIncludable and more.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}/Util.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6216 |21cr|php-pear-FSM-1.3.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		FSM
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.3.1
Release:	9
Summary:	Finite State Machine
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/FSM/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The FSM package provides a simple class that implements a Finite State
Machine.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6217 |21cr|php-pear-Games_Chess-1.0.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Games
%define		_subclass	Chess
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	14
Summary:	Construct and validate a logical chess game, does not display
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Games_Chess/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The logic of handling a chessboard and parsing standard FEN
(Farnsworth-Edwards Notation) for describing a position as well as SAN
(Standard Algebraic Notation) for describing individual moves is
handled. This class can be used as a backend driver for playing chess,
or for validating and/or creating PGN files using the File_ChessPGN
package.

Although this package is alpha, it is fully unit-tested. The code
works, but the API is fluid, and may change dramatically as it is put
into use and better ways are found to use it. When the API stabilizes,
the stability will increase.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6218 |21cr|php-pear-Gtk_FileDrop-1.0.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Gtk
%define		_subclass	FileDrop
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.3
Release:	8
Summary:	Make Gtk widgets accept file drops
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Gtk_FileDrop/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A class which makes it easy to make a GtkWidget accept the dropping of
files or folders.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6219 |21cr|php-pear-Gtk_MDB_Designer-0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Gtk
%define		_subclass	MDB
%define		upstream_name	%{_class}_%{_subclass}_Designer
%global __requires_exclude /usr/bin/php

Name:		php-pear-%{upstream_name}
Version:	0.1
Release:	19
Summary:	An GTK+ Database schema designer


License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Gtk_MDB_Designer/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Patch0:		php-pear-Gtk_MDB_Designer-php-gtk2.patch
Requires:	php-gtk2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A graphical database schema designer, based loosely around the MDB
schema, it features:
- table boxes which are dragged around a window to layout your
  database
- add/delete tables
- add/delete columns
- support for NotNull, Indexes, Sequences, Unique Indexes and
  defaults
- works totally in non-connected mode (eg. no database or setting up
  required)
- stores in MDB like xml file
- saves to any supported database SQL create tables files
- screenshots at http://devel.akbkhome.com/Gtk_MDB/.

%prep
%setup -q -c
%patch0 -p1
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_bindir}/gtkmdbdesigner
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6220 |21cr|php-pear-Gtk_ScrollingLabel-1.0.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Gtk
%define		_subclass	ScrollingLabel
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	20
Summary:	A scrolling label for PHP-Gtk
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Gtk_ScrollingLabel/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This is a class to encapsulate the functionality needed for a
scrolling GTK+ label. This class provides a simple, easy to understand
API for setting up and controlling the label. It allows for the
ability to scroll in either direction, start and stop the scroll,
pause and unpause the scroll, get and set the text, and set display
properties of the text.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/example.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6221 |21cr|php-pear-Gtk_VarDump-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Gtk
%define		_subclass	VarDump
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	7
Summary:	A simple GUI to example PHP data trees
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Gtk_VarDump/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Patch0:		php-pear-Gtk_VarDump-1.0.1-php_gtk2.patch
Requires:	php-gtk2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Just a regedit type interface to examine PHP data trees.

%prep
%setup -q -c
%patch0 -p1
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6222 |21cr|php-pear-HTML_Common-1.2.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTML
%define		_subclass	Common
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.5
Release:	10
Summary:	Base class for other HTML classes
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTML_Common/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The PEAR::HTML_Common package provides methods for HTML code display
and attributes handling:
- Methods to set, remove, update HTML attributes.
- Handles comments in HTML code.
- Handles layout and tabs for nicer HTML code.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6223 |21cr|php-pear-HTML_Progress2-2.4.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         _class          HTML
%define         _subclass       Progress2
%define         upstream_name   %{_class}_%{_subclass}

Summary:	How to include a loading bar in your XHTML documents quickly and easily
Name:		php-pear-%{upstream_name}
Version:	2.4.1
Release:	13
License:	PHP License
Group:		Development/PHP
Url:		http://pear.php.net/package/HTML_Progress2
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
BuildRequires:	php-pear
Requires:	php-pear
Requires:	php-smarty2
Requires(post,preun):	php-pear
BuildArch:	noarch

%description
This package provides a way to add a loading bar fully customizable in existing
XHTML documents.
Your browser should accept DHTML feature.

Features:
- create horizontal, vertival bar and also circle, ellipse and polygons
  (square, rectangle).
- allows usage of existing external StyleSheet and/or JavaScript.
- all elements (progress, cells, labels) are customizable by their html
  properties.
- percent/labels are floating all around the progress meter.
- compliant with all CSS/XHMTL standards.
- integration with all template engines is very easy.
- implements Observer design pattern. It is possible to add Listeners.
- adds a customizable monitor pattern to display a progress bar.
  User-end can abort progress at any time.
- allows many progress meter on same page without uses of iframe solution.
- error handling system that support native PEAR_Error, but also
  PEAR_ErrorStack, and any other system you might want to plug-in.
- PHP 5 ready.

%files
%doc %{upstream_name}-%{version}/ChangeLog
%doc %{upstream_name}-%{version}/NEWS
%doc %{upstream_name}-%{version}/docs
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

#----------------------------------------------------------------------------

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6224 |21cr|php-pear-HTML_QuickForm-3.2.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTML
%define		_subclass	QuickForm
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	3.2.16
Release:	1
Summary:	Methods for creating, validating, processing HTML forms
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTML_QuickForm/
Source0:	http://download.pear.php.net/package/HTML_QuickForm-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The PEAR::HTML_QuickForm package provides methods for creating,
validating, processing HTML forms. Features:
- Creates xHTML compliant form elements of various type.
- Allows you to choose an unlimited number of html attributes.
- Allows you to create your own custom elements using your own
  classes.
- Process form values (you should override the process method).
- Creates javascript validation code using regular expression.
- Server-side validation too.
- Allows you to create your own validation rules.
- Manages file uploads.
- Allows you to freeze some elements in your form.
- Allows you to customize the look of your form in many ways.
- Template-like form elements customization...

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6225 |21cr|php-pear-HTML_QuickForm_DHTMLRulesTableless-0.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTML
%define		_subclass	QuickForm
%define		upstream_name	%{_class}_%{_subclass}_DHTMLRulesTableless

Name:		php-pear-%{upstream_name}
Version:	0.3.3
Release:	5
Summary:	DHTML replacement for the standard JavaScript alert window 
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTML_QuickForm_DHTMLRulesTableless
Source0:	http://download.pear.php.net/package/HTML_QuickForm_DHTMLRulesTableless-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
DHTML replacement for the standard JavaScript alert window for client-side
validation using the tableless renderer

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6226 |21cr|php-pear-HTTP-1.4.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.4.1
Release:	10
Summary:	Miscellaneous HTTP utilities
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The HTTP class is a class with static methods for doing miscellaneous
HTTP-related stuff like date formatting or language negotiation.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6227 |21cr|php-pear-HTTP_Client-1.2.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	Client
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.1
Release:	12
Summary:	Easy way to perform multiple HTTP requests
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_Client/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class provides an easy way to perform multiple HTTP requests and
process their resulsts.
Features:
- manage cookies and referrers between requests
- handles HTTP redirection
- has methods to set default headers and request parameters
- implements the Subject-Observer design pattern: the base class sends
  events to listeners that do the response processing

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6228 |21cr|php-pear-HTTP_Download-1.1.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	Download
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.4
Release:	8
Summary:	Send HTTP Downloads
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_Download/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides an easy interface to send hidden files or any arbitrary data to
the client over HTTP. It features HTTP Caching, Compression and Ranges
(partial downloads and resuming).

NOTE: Don't use with PHP's on-the-fly output compression, because files
may be sent coruppted.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6229 |21cr|php-pear-HTTP_Header-1.2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	Header
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.1
Release:	8
Summary:	OO-Interface to modify HTTP-Headers easily
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_Header/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires(post):	php-pear
Requires(preun): php-pear-HTTP >= 1.2
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class provides methods to set/modify HTTP-Headers. To abstract
common things, like caching etc. some sub classes are provided that
handle special cases (i.e. HTTP_Header_Cache).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6230 |21cr|php-pear-HTTP_OAuth-0.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     _class      HTTP
%define     _subclass   OAuth
%define     upstream_name   %{_class}_%{_subclass}

Name:       php-pear-%{upstream_name}
Version:    0.3.2
Release:    5
Summary:    PEAR implementation of the OAuth 1.0a specification
License:    LGPL
Group:      Development/PHP
URL:        http://pear.php.net/package/%{upstream_name}
Source0:    http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):  php-pear
Requires(preun): php-pear
Requires:        php-pear
BuildArch:       noarch
BuildRequires:   php-pear

%description
PEAR implementation of the OAuth 1.0a specification

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6231 |21cr|php-pear-HTTP_Request-1.4.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	Request
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.4.4
Release:	12
Summary:	Provides an easy way to perform HTTP requests
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_Request/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-pear-Net_URL >= 1.0.12
Requires:	php-pear-Net_Socket >= 1.0
BuildArch:	noarch
BuildRequires:	php-pear

%description
Supports GET/POST/HEAD/TRACE/PUT/DELETE, Basic authentication, Proxy,
Proxy Authentication etc.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6232 |21cr|php-pear-HTTP_Request2-2.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	Request2
%define		upstream_name	%{_class}_%{_subclass}

%define		__noautoreq 'pear\\(PHPUnit'

Summary:	Provides an easy way to perform HTTP requests
Name:		php-pear-%{upstream_name}
Version:	2.0.0
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_Request2/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
PHP5 rewrite of HTTP_Request package (with parts of HTTP_Client). Provides
cleaner API and pluggable Adapters:
* Socket adapter, based on old HTTP_Request code,
* Curl adapter, wraps around PHP's cURL extension,
* Mock adapter, to use for testing packages dependent on HTTP_Request2.
Supports POST requests with data and file uploads, basic and digest
authentication, cookies, managing cookies across requests, proxies, gzip and
deflate encodings, redirects, monitoring the request progress with Observers...

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/%{upstream_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6233 |21cr|php-pear-HTTP_Server-0.4.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	Server
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.1
Release:	19
Summary:	HTTP server class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_Server/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
%{upstream_name} class that allows you to easily implement HTTP servers by
supplying callbacks. The base class will parse the request, call the
apropriate callback and build a response based on an array that the
callbacks have to return.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6234 |21cr|php-pear-HTTP_Session-0.5.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	Session
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.5.6
Release:	13
Summary:	Object-oriented interface to the session_* family functions
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_Session/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Object-oriented interface to the session_* family functions; it
provides extra features such as database storage for session data
using DB package. It introduces new methods like isNewSession(),
setCookieless(), abandon(), setExpire(), setIdle(), isExpired(),
isIdled() and others.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6235 |21cr|php-pear-HTTP_SessionServer-0.5.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	SessionServer
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.5.0
Release:	13
Summary:	Daemon to store session data
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_SessionServer/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
HTTP_SessionServer is a simple PHP based daemon that helps you
maintaining state between physically different hosts.

HTTP_SessionServer implements a very simple protocol to store and
retrieve data on the server. The storage backend is driver based,
currently only a storage for the filesystem has been implemented, but
you may easily change this.

HTTP_SessionServer comes with a matching client implementation using
Net_Socket as well as a session save handler.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6236 |21cr|php-pear-HTTP_Upload-0.9.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	Upload
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.1
Release:	20
Summary:	Easy and secure managment of files submitted via HTML Forms
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_Upload/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class provides an advanced file uploader system for file uploads
made from html forms. Features:
- Can handle from one file to multiple files.
- Safe file copying from tmp dir.
- Easy detecting mechanism of valid upload, missing upload or error.
- Gives extensive information about the uploaded file.
- Rename uploaded files in different ways: as it is, safe or unique.
- Validate allowed file extensions.
- Multiple languages error messages support.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6237 |21cr|php-pear-HTTP_WebDAV_Client-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	WebDAV
%define		upstream_name	%{_class}_%{_subclass}_Client

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	6
Summary:	WebDAV stream wrapper class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_WebDAV_Client/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
RFC2518 compliant stream wrapper that allows to use WebDAV server
resources like a regular file system from within PHP.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6238 |21cr|php-pear-HTTP_WebDAV_Server-0.99.1-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		HTTP
%define		_subclass	WebDAV
%define		upstream_name	%{_class}_%{_subclass}_Server

Name:		php-pear-%{upstream_name}
Version:	0.99.1
Release:	22
Summary:	WebDAV Server Baseclass
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/HTTP_WebDAV_Server/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear-HTTP >= 1.0
BuildArch:	noarch
BuildRequires:	php-pear

%description
Mostly RFC2518 compliant helper class for WebDAV server
implementation.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6239 |21cr|php-pear-I18N-1.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		I18N
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	9
Summary:	Internationalization package
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/I18N/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package supports you to localize your applications. Currently
multiple ways of supporting translation are implemented and methods to
determine the current users (browser-)language.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6240 |21cr|php-pear-I18N_UnicodeString-0.3.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		I18N
%define		_subclass	UnicodeString
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.1
Release:	13
Summary:	Provides a way to work with self contained multibyte strings
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/I18N_UnicodeString/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides a method of storing and manipulating multibyte strings in PHP
without using ext/mbstring. Also allows conversion between various
methods of storing Unicode in 1-byte strings like UTF-8 and HTML
entities.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/I18N_UnicodeString/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6241 |21cr|php-pear-I18Nv2-0.11.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		I18Nv2
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.11.4
Release:	16
Summary:	Internationalization
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/I18Nv2/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-iconv
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides basic support to localize your application, like
locale based formatting of dates, numbers and currency.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/examples
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6242 |21cr|php-pear-Image_Color-1.0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	Color
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.4
Release:	8
Summary:	Manage and handles color data and conversions
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_Color/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires:	php-gd
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Manage and handles color data and conversions.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests
rm -rf %{buildroot}%{_datadir}/pear/%{_class}/Tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6243 |21cr|php-pear-Image_GIS-1.1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	GIS
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.2
Release:	7
Summary:	Visualization of GIS data
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_GIS/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires:	php-gd
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Generating maps on demand can be a hard job as most often you don't
have the maps you need in digital form. But you can generate your own
maps based on raw, digital data description files which are available
for free on the net. This package provides a parser for the most
common format for geographical data, the Arcinfo/E00 format as well as
renderers to produce images using GD or Scalable Vector Graphics
(SVG).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6244 |21cr|php-pear-Image_Graph-0.8.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	Graph
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.8.0
Release:	5
Summary:	A package for displaying (numerical) data as a graph/chart/plot
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_Graph
Source0:	http://download.pear.php.net/package/Image_Graph-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires(post):	php-gd
Requires(preun): php-gd
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Image_Graph provides a set of classes that creates
graphs/plots/charts based on (numerical) data. Many different plot
types are supported: Bar, line, area, step, impulse, scatter,
radar, pie, map, candlestick, band, box & whisker and smoothed
line, area and radar plots. The graph is highly customizable,
making it possible to get the exact look and feel that is
required. The output is controlled by a driver mechanism, which
facilitates easy output to many different output formats, amongst
others, GD (PNG, JPEG, GIF, WBMP), PDF (using PDFLib), ShockWave
Flash (using Ming) and Scalable Vector Graphics (SVG). Image_Graph
is compatible with both PHP4 and PHP5 and can be used with both
GD1 and GD2 (GD2 is recommended)

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6245 |21cr|php-pear-Image_GraphViz-1.3.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	GraphViz
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.0
Release:	8
Summary:	Interface to AT&T's GraphViz tools
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_GraphViz/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The GraphViz class allows for the creation of and the work with
directed and undirected graphs and their visualization with AT&T's
GraphViz tools.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6246 |21cr|php-pear-Image_IPTC-1.0.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	IPTC
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	18
Summary:	Extract, modify, and save IPTC data
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_IPTC/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides a mechanism for modifying IPTC header
information. The class abstracts the functionality of iptcembed() and
iptcparse() in addition to providing methods that properly handle
replacing IPTC header fields back into image files.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6247 |21cr|php-pear-Image_Remote-1.0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	Remote
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	10
Summary:	Retrieve information on remote image files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_Remote/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class can be used for retrieving size information of remote image
files via HTTP without downloading the whole image.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6248 |21cr|php-pear-Image_Text-0.7.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	Text
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.7.0
Release:	5
Summary:	Comfortable processing of texts in images
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_Text/
Source0:	http://download.pear.php.net/package/Image_Text-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class allows you to add text to dynamic generated images more
comfortable. It allows you to process multiline text and manipulate:
- Border
- Shading
- Alignment
Another nice feature is to let the class measurize your text in respect
to font size and line splitting to fit a given text box.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}/*.php
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/Image/Text/Exception.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6249 |21cr|php-pear-Image_Tools-0.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	Tools 
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.2
Release:	13
Summary:	Tool collection for images
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_Tools/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A collection of common image manipulations.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6250 |21cr|php-pear-Image_Transform-0.9.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	Transform
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.5
Release:	13
Summary:	Standard interface to manipulate images using different libraries
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_Transform/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package was written to provide a simpler and cross-library
interface to doing image transformations and manipulations.

It provides :
 - support for GD, ImageMagick, Imagick and NetPBM,
 - files related functions,
 - addText,
 - Scale (by length, percentage, maximum X/Y),
 - Resize,
 - Rotate (custom angle),
 - Add border (soon),
 - Add shadow (soon).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/Examples/resize.php
%{_datadir}/pear/Examples/test.php
%{_datadir}/pear/Examples/test_netpbm.php
%{_datadir}/pear/data/Image_Transform/Docs/README
%{_datadir}/pear/data/Image_Transform/Examples/test.gif
%{_datadir}/pear/data/Image_Transform/Examples/test.jpg
%{_datadir}/pear/data/Image_Transform/Examples/test.png
%{_datadir}/pear/data/Image_Transform/Examples/test.tif
%{_datadir}/pear/data/Image_Transform/imgtests/images/image1.jpg
%{_datadir}/pear/data/Image_Transform/imgtests/images/norfolk_broads.jpg
%{_datadir}/pear/data/Image_Transform/imgtests/images/norfolk_broads.png
%{_datadir}/pear/data/Image_Transform/imgtests/norfolk_broads.jpg-GD
%{_datadir}/pear/imgtests/index.php
%{_datadir}/pear/imgtests/test.php
%{_datadir}/pear/imgtests/text.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6251 |21cr|php-pear-Image_XBM-0.9.0-0.RC1.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Image
%define		_subclass	XBM
%define		pre         RC1
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.0
Release:	0.%{pre}.7
Summary:	Manipulate XBM images
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Image_XBM/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}%{pre}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Package for manipulate XBM images.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}%{pre}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}%{pre}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}%{pre}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6252 |21cr|php-pear-LiveUser-0.16.14-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		LiveUser
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.16.14
Release:	13
Summary:	User authentication and permission management framework
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/LiveUser/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Perm_LiveUser is a set of classes for dealing with user authentication
and permission management. Basically, there are three main elements
that make up this package:
- The LoginManager,
- The Auth containers,
- The Perm containers.

The LoginManager class takes care of the login process and can be
configured to use a certain permission container and one or more
different auth containers. That means, you can have your users' data
scattered amongst many data containers and have the LoginManager try
each defined container until the user is found. For example, you can
have all website users who can apply for a new account online on the
webserver's local database. Also, you want to enable all your
company's employees to login to the site without the need to create
new accounts for all of them. To achieve that, a second container can
be defined to be used by the LoginManager. You can also define a
permission container of your choice that will manage the rights for
each user. Depending on the container, you can implement any kind of
permission schemes for your application while having one consistent
API. Using different permission and auth containers, it's easily
possible to integrate newly written applications with older ones that
have their own ways of storing permissions and user data. Just make a
new container type and you're ready to go! Currently available are
RDBMS containers using PEAR::DB. More are soon to follow.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%doc %{upstream_name}-%{version}/sql
%{_datadir}/pear/%{_class}
%{_datadir}/pear/LiveUser.php
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6253 |21cr|php-pear-LiveUser_Admin-0.4.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		LiveUser
%define		_subclass	Admin
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.0
Release:	14
Summary:	User authentication and permission management framework
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/LiveUser_Admin/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
LiveUser_Admin is meant to be used with the LiveUser package. It is
composed of all the classes necessary to administrate data used by
LiveUser.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/*.txt
%doc %{upstream_name}-%{version}/docs/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6254 |21cr|php-pear-Log-1.13.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		    Log
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.13.1
Release:	2
Summary:	Logging Framework
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/Log-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch
# because it was broken out and the one doing it was pretty careless...
Conflicts:	php-pear < 1:1.9

%description
The Log package provides an abstracted logging framework. It includes output
handlers for log files, databases, syslog, email, Firebug, and the console. It
also provides composite and subject-observer logging mechanisms.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/* %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6255 |21cr|php-pear-Mail-1.2.0-0.b1.11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Mail
%define		pre		        b1
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.2.0
Release:	0.%{pre}.11
Summary:	Class that provides multiple interfaces for sending emails
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}%{pre}.tgz
Patch0:		Mail-1.2.0b1-CVE-2009-4023,4111.diff
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
PEAR's Mail package defines an interface for implementing mailers under the
PEAR hierarchy. It also provides supporting functions useful to multiple mailer
backends. Currently supported backends include: PHP's native mail() function,
sendmail, and SMTP. This package also provides a RFC822 email address list
validation utility class.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}%{pre}/%{upstream_name}.xml

%patch0 -p0 -b .CVE-2009-4023,4111

%install

cd %{upstream_name}-%{version}%{pre}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6256 |21cr|php-pear-Mail_IMAP-0.2.0A-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         _class          Mail
%define         _subclass       IMAP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0A
Release:	19
Summary:	A c-client webmail backend
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Mail_IMAP/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Mail_IMAP provides a simplifed backend for working with the c-client
(IMAP) extension.  It serves as an OO wrapper for commonly used
c-client functions. It provides structure and header parsing as well
as body retrieval.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6257 |21cr|php-pear-Mail_IMAPv2-0.2.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Mail
%define		_subclass	IMAPv2
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.1
Release:	12
Summary:	Provides a c-client backend for webmail
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Mail_IMAPv2/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires:	php-imap
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Mail_IMAPv2 provides a simplified backend for working with the
c-client (IMAP) extension. It serves as an OO wrapper for commonly
used c-client functions. It provides structure and header parsing as
well as body retrieval.

Mail_IMAPv2 may be used as a webmail backend or as a component in a
mailing list manager.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6258 |21cr|php-pear-Mail_Mbox-0.6.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Mail
%define		_subclass	Mbox
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.6.3
Release:	13
Summary:	Mbox PHP class to Unix MBOX parsing and using
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Mail_Mbox/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
It can split messages inside a Mbox, return the number of messages,
return, update or remove an specific message or add a message on the
Mbox.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6259 |21cr|php-pear-Mail_Mime-1.10.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Mail
%define		_subclass	Mime
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.10.11
Release:	1
Summary:	Mail_Mime provides classes to create mime messages

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/Mail_Mime-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Mail_Mime provides classes to deal with the creation and manipulation of mime
messages. It allows people to create Email messages consisting of:
* Text Parts
* HTML Parts
* Inline HTML Images
* Attachments
* Attached messages

Starting with version 1.4.0, it also allows non US-ASCII chars in filenames,
subjects, recipients, etc, etc.

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

#-----------------------------------------------------------------
%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6260 |21cr|php-pear-Mail_mimeDecode-1.5.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Mail
%define		_subclass	mimeDecode
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.5.6
Release:	1
Summary:	Provides a class to decode mime messages
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/Mail_mimeDecode-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Provides a class to deal with the decoding and interpreting of mime messages.
This package used to be part of the Mail_Mime package, but has been split off.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/%{upstream_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6261 |21cr|php-pear-Mail_Queue-1.2.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Mail
%define		_subclass	Queue
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.7
Release:	7
Summary:	Put mails in queue and send them later in background
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Mail_Queue/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Class for handle mail queue managment. Wrapper for PEAR::Mail and
PEAR::DB. Could load, save and send saved mails in background and also
backup some mails. Mail queue class put mails in a temporary container
waiting to be fed to the MTA (Mail Transport Agent) and send them
later (eg. every few minutes) by crontab or in other way.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6262 |21cr|php-pear-Math_Basex-0.3.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Basex
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.1
Release:	19
Summary:	%{_class}_%{_subclass} - Base X conversion class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Basex/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Simple class for converting base set of numbers with a customize
character base set.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6263 |21cr|php-pear-Math_BigInteger-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	BigInteger
%define		upstream_name	%{_class}_%{_subclass}

Summary:	Arbitrary precission integer arithmetic library
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	5
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_BigInteger/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Pure-PHP arbitrary precission integer arithmetic library.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6264 |21cr|php-pear-Math_BinaryUtils-0.3.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	BinaryUtils
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.0
Release:	18
Summary:	Collection of helper methods for easy handling of binary data
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_BinaryUtils/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Collection of helper methods for dealing with binary data (add,
subtract, converting functions, endianess functions etc.).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6265 |21cr|php-pear-Math_Complex-0.8.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Complex
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.8.6
Release:	5
Summary:	Classes that define complex numbers and their operations
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Complex/
Source0:	http://download.pear.php.net/package/Math_Complex-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Classes that represent and manipulate complex numbers. Contain
definitions for basic arithmetic functions, as well as trigonometric,
inverse trigonometric, hyperbolic, inverse hyperbolic, exponential and
logarithms of complex numbers.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6266 |21cr|php-pear-Math_Fibonacci-0.8-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Fibonacci
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.8
Release:	18
Summary:	Package to calculat and manipulate Fibonacci numbers
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Fibonacci/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The Fibonacci series is constructed using the formula:
F(n) = F(n - 1) + F(n - 2),
By convention F(0) = 0, and F(1) = 1.
An alternative formula that uses the Golden Ratio can also be used:
F(n) = (PHI^n - phi^n)/sqrt(5) [Lucas' formula],
where PHI = (1 + sqrt(5))/2 is the Golden Ratio, and phi = (1 - sqrt(5))/2
is its reciprocal.

Requires Math_Integer, and can be used with big integers if the GMP or
the BCMATH libraries are present.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6267 |21cr|php-pear-Math_Fraction-0.4.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Fraction
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.0
Release:	13
Summary:	Classes that represent and manipulate fractions
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Fraction/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Classes that represent and manipulate fractions (x = a/b).

The Math_FractionOp static class contains definitions for:
- basic arithmetic operations,
- comparing fractions,
- greatest common divisor (gcd) and least common multiple (lcm) of two
  integers,
- simplifying (reducing) and getting the reciprocal of a fraction,
- converting a float to fraction.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6268 |21cr|php-pear-Math_Histogram-0.9.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Histogram
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.0
Release:	20
Summary:	Classes to calculate histogram distributions
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Histogram/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Classes to calculate histogram distributions and associated
statistics. Supports simple and cummulative histograms. You can
generate regular (2D) histograms, 3D, or 4D histograms. Data must not
have nulls.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/README*
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6269 |21cr|php-pear-Math_Integer-0.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Integer
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.0
Release:	5
Summary:	Package to represent and manipulate integers
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Integer/
Source0:	http://download.pear.php.net/package/Math_Integer-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The class Math_Integer can represent integers bigger than the signed
longs that are the default of PHP, if either the GMP or the BCMATH
(bundled with PHP) are present. Otherwise it will fall back to the
internal integer representation. The Math_IntegerOp class defines
operations on Math_Integer objects.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6270 |21cr|php-pear-Math_Matrix-0.8.7-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Matrix
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.8.7
Release:	20
Summary:	Class to represent matrices and matrix operations
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Matrix/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Matrices are represented as 2 dimensional arrays of numbers.
This class defines methods for matrix objects, as well as static
methods to read, write and manipulate matrices, including methods to
solve systems of linear equations (with and without iterative error
correction).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/Math_Matrix/contrib/eigen_math_matrix.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6271 |21cr|php-pear-Math_Numerical_RootFinding-1.1.0a2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Numerical
%define		_subsubclass	RootFinding
%define		upstream_name	%{_class}_%{_subclass}_%{_subsubclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.0a2
Release:	5
Summary:	Numerical analysis root finding methods
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Numerical_RootFinding/
Source0:	http://download.pear.php.net/package/Math_Numerical_RootFinding-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provide various numerical analysis methods for find root
Available Methods:
- Bisection
- False Position
- Fixed Point
- Newton-Raphson
- Secant

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/README.txt
%doc %{upstream_name}-%{version}/docs/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/buildPackageXML.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6272 |21cr|php-pear-Math_Quaternion-0.8.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Quaternion
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.8.0
Release:	19
Summary:	Classes that define Quaternions and their operations
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Quaternion/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Classes that represent and manipulate quaternions. Contain definitions
for basic arithmetic functions in a static class. Quaternions are an
extension of the idea of complex numbers, and a quaternion is defined as:
q = a + b*i + c*j + d*k
In 1844 Hamilton described a system in which numbers were composed of
a real part and 3 imaginary and independent parts (i,j,k), such that:
i^2 = j^2 = k^2 = -1 and
ij = k, jk = i, ki = j and
ji = -k, kj = -i, ik = -j
The above are known as "Hamilton's rules".

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/Math_Quaternion/uml/Math_Quaternion.dia
%{_datadir}/pear/data/Math_Quaternion/uml/Math_Quaternion.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6273 |21cr|php-pear-Math_RPN-1.1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	RPN
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.2
Release:	9
Summary:	RPN (Reverse Polish Notation) support
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_RPN/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
%{upstream_name} provides an easy way to change given expression to RPN
(Reverse Polish Notation) and evaluate it.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6274 |21cr|php-pear-Math_Stats-0.9.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Stats
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.1
Release:	20
Summary:	Classes to calculate statistical parameters
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Stats/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Classes to calculate statistical parameters of numerical arrays of
data. The data can be in a simple numerical array, or in a cummulative
numerical array. A cummulative array, has the value as the index and
the number of repeats as the value for the array item, e.g. $data =
array(3=>4, 2.3=>5, 1.25=>6, 0.5=>3). Nulls can be rejected, ignored
or handled as zero values.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/%{_class}/examples
rm -rf %{buildroot}%{_datadir}/pear/%{_class}/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/contrib/ignatius_reilly/f_cumulative_normal_dist.php
%{_datadir}/pear/contrib/ignatius_reilly/ndist_tabulated.php
%{_datadir}/pear/data/Math_Stats/contrib/ignatius_reilly/msg.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6275 |21cr|php-pear-Math_TrigOp-1.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	TrigOp
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0
Release:	18
Summary:	Supplementary trigonometric functions
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_TrigOp/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Static class with methods that implement supplementary trigonometric,
inverse trigonometric, hyperbolic, and inverse hyperbolic functions.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6276 |21cr|php-pear-Math_Vector-0.7.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Math
%define		_subclass	Vector
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.7.0
Release:	20
Summary:	Vector and vector operation classes
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Math_Vector/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Classes to represent Tuples, general Vectors, and 2D-/3D-vectors, as
well as a static class for vector operations.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6277 |21cr|php-pear-MDB-1.3.0-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		MDB
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.3.0
Release:	25
Summary:	Unified database API
Epoch:		1
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/MDB/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
MDB is a merge of PEAR's DB and Metabases that provides a unified DB
API. It also provides methods for DB portability and DB feature
emulation. Most notably it features a DB independent XML-Schema
manager.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/MAINTAINERS
%doc %{upstream_name}-%{version}/README
%doc %{upstream_name}-%{version}/TODO
%doc %{upstream_name}-%{version}/doc/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6278 |21cr|php-pear-MDB2-2.5.0-0.0.b5.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		MDB2
%define		upstream_name	%{_class}
%define		beta b5

Name:		php-pear-%{upstream_name}
Version:	2.5.0
Release:	0.0.%{beta}.2
Summary:	Unified database API
Epoch:		2
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/MDB2/
Source0:	http://download.pear.php.net/package/MDB2-%{version}%{beta}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch
Recommends:	php-pear-MDB2_Driver_mysql
Recommends:	php-pear-MDB2_Driver_mysqli
Recommends:	php-pear-MDB2_Driver_pgsql
Recommends:	php-pear-MDB2_Driver_sqlite

%description
MDB2 is a merge of PEAR's DB and Metabases that provides a unified DB
API. It also provides methods for DB portability and DB feature
emulation. Most notably it features a DB independent XML-Schema
manager.

%prep
%setup -q -c -n %{name}-%{version}%{beta}
mv package.xml %{upstream_name}-%{version}%{beta}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}%{beta}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data/%{upstream_name}/LICENSE

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%doc %{upstream_name}-%{version}%{beta}/docs/*
%doc %{upstream_name}-%{version}%{beta}/LICENSE
%{_datadir}/pear/%{_class}
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6279 |21cr|php-pear-MDB2_Driver_mysql-1.5.0-0.0.b4.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define        _class           MDB2
%define        _subclass        Driver_mysql
%define        upstream_name    %{_class}_%{_subclass}

%define        beta b4

Name:           php-pear-%{upstream_name}
Version:        1.5.0
Release:        0.0.%{beta}.2
Epoch:          1
Summary:        Mysql MDB2 driver
License:        PHP License
Group:          Development/PHP
URL:            http://pear.php.net/package/MDB2_Driver_mysql/
Source0:        http://download.pear.php.net/package/MDB2_Driver_mysql-%{version}%{beta}.tgz
Requires:       php-mysql
Requires(post): php-pear
Requires(preun): php-pear
Requires:       php-pear
BuildRequires:  php-pear
BuildArch:      noarch

%description
MDB2 MySQL driver.

%prep
%setup -q -c -n %{name}-%{version}%{beta}
mv package.xml %{upstream_name}-%{version}%{beta}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}%{beta}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6280 |21cr|php-pear-MDB2_Driver_mysqli-1.5.0-0.0.b4.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define        _class           MDB2
%define        _subclass        Driver_mysqli
%define        upstream_name    %{_class}_%{_subclass}
%define        beta b4

Name:           php-pear-%{upstream_name}
Version:        1.5.0
Release:        0.0.%{beta}.2
Summary:        Mysqli MDB2 driver
Epoch:          1
License:        PHP License
Group:          Development/PHP
URL:            http://pear.php.net/package/MDB2_Driver_mysqli/
Source0:        http://download.pear.php.net/package/MDB2_Driver_mysqli-%{version}%{beta}.tgz
Requires:       php-mysqli
Requires(post): php-pear
Requires(preun): php-pear
Requires:       php-pear
BuildRequires:  php-pear
BuildArch:      noarch

%description
MDB2 MySQLi driver.

%prep
%setup -q -c -n %{name}-%{version}%{beta}
mv package.xml %{upstream_name}-%{version}%{beta}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}%{beta}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6281 |21cr|php-pear-MDB2_Driver_pgsql-1.5.0-0.0.b4.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define        _class           MDB2
%define        _subclass        Driver_pgsql
%define        upstream_name    %{_class}_%{_subclass}
%define        beta             b4

Name:           php-pear-%{upstream_name}
Version:        1.5.0
Release:        0.0.%{beta}.2
Summary:        Pgsql MDB2 driver
Epoch:          1
License:        PHP License
Group:          Development/PHP
URL:            http://pear.php.net/package/MDB2_Driver_pgsql/
Source0:        http://download.pear.php.net/package/MDB2_Driver_pgsql-%{version}%{beta}.tgz
Requires:       php-pgsql
Requires(post): php-pear
Requires(preun): php-pear
Requires:       php-pear
BuildRequires:  php-pear
BuildArch:      noarch

%description
MDB2 pgsql driver.

%prep
%setup -q -c -n %{name}-%{version}%{beta}
mv package.xml %{upstream_name}-%{version}%{beta}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}%{beta}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6282 |21cr|php-pear-MDB2_Schema-0.8.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		MDB2
%define		_subclass	Schema
%define		upstream_name	%{_class}_%{_subclass}
%global __requires_exclude /usr/bin/php

Name:		php-pear-%{upstream_name}
Version:	0.8.5
Release:	13
Summary:	XML based database schema manager
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/MDB2_Schema/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
PEAR::MDB2_Schema enables users to maintain RDBMS independant schema
files in XML that can be used to create, alter and drop database
entities and insert data into a database. Reverse engineering database
schemas from existing databases is also supported. The format is
compatible with both PEAR::MDB and Metabase.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_bindir}/mdb2_schematool
%{_localstatedir}/www/html/mdb2_schematool/action.php
%{_localstatedir}/www/html/mdb2_schematool/class.inc.php
%{_localstatedir}/www/html/mdb2_schematool/index.php
%{_localstatedir}/www/html/mdb2_schematool/result.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6283 |21cr|php-pear-MDB_QueryTool-1.2.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		MDB
%define		_subclass	QueryTool
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.3
Release:	12
Summary:	An OO-interface for easily retrieving and modifying data in a DB
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/MDB_QueryTool/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package is an OO-abstraction to the SQL-Query language, it
provides methods such as setWhere, setOrder, setGroup, setJoin, etc.
to easily build queries. It also provides an easy to learn interface
that interacts nicely with HTML-forms using arrays that contain the
column data, that shall be updated/added in a DB. This package bases
on an SQL-Builder which lets you easily build SQL-Statements and
execute them. NB: this is just a MDB porting from the original
DB_QueryTool written by Wolfram Kriesing and Paolo Panto
(vision:produktion, wk@visionp.de).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6284 |21cr|php-pear-Message-0.6-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Message
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.6
Release:	18
Summary:	Message hash and digest (HMAC) generation methods and classes
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Message/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Classes for message hashing and HMAC signature generation using the
mhash functions.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/README
%doc %{upstream_name}-%{version}/misc
%{_datadir}/pear/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6285 |21cr|php-pear-MIME_Type-1.3.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		MIME
%define		_subclass	Type
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.4
Release:	8
Summary:	Utility class for dealing with MIME types
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/MIME_Type/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides functionality for dealing with MIME types.
- Parse MIME type.
- Supports full RFC2045 specification.
- Many utility functions for working with and determining info about
  types.
- Most functions can be called statically.
- Autodetect a file's MIME-type, either with mime_content_type() or
  the 'file' command.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6286 |21cr|php-pear-MP3_Id-1.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		MP3
%define		_subclass	Id
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.2
Release:	4
Summary:	Read/write MP3-Tags
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/MP3_Id/
Source0:	http://download.pear.php.net/package/MP3_Id-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The class offers methods for reading and writing information tags
(version 1) in MP3 files

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6287 |21cr|php-pear-Net_CheckIP-1.2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	CheckIP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.2
Release:	7
Summary:	Check the syntax of IPv4 adresses
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_CheckIP/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package validates IPv4 internet adresses.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6288 |21cr|php-pear-Net_Curl-1.2.5-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Curl
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.5
Release:	12
Summary:	An OO interface to the cURL extension
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Curl/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Net_Curl is an object oriented interface which abstracts away the
messy parts of dealing with PHP's cURL extension.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6289 |21cr|php-pear-Net_Cyrus-0.3.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Cyrus
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.2
Release:	6
Summary:	An API for the administration of Cyrus IMAP servers
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Cyrus/
Source0:	http://download.pear.php.net/package/Net_Cyrus-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
API for the administration of Cyrus IMAP servers. It can be used to
create,delete and modify users and it's properties (Quota and ACL)

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/tests
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6290 |21cr|php-pear-Net_Dict-1.0.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Dict
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.7
Release:	8
Summary:	Interface to the DICT protocol
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Dict/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class provides a simple API to the DICT Protocol handling all the
network related issues and providing DICT responses in PHP datatypes
to make it easy for a developer to use DICT servers in their programs.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6291 |21cr|php-pear-Net_Dig-0.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Dig
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.1
Release:	18
Summary:	Interface to the dig command
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Dig/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The PEAR::Net_Dig class should be a nice, friendly OO interface to the
dig command.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6292 |21cr|php-pear-Net_DIME-1.0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	DIME
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	9
Summary:	Implements DIME encoding
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_DIME/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides an implementation of DIME as defined at
http://search.ietf.org/internet-drafts/draft-nielsen-dime-02.txt

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6293 |21cr|php-pear-Net_DNS-1.0.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	DNS
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.7
Release:	8
Summary:	Resolver library to communicate with a DNS server
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_DNS/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A resolver library used to communicate with a name server to perform
DNS queries, zone transfers, dynamic DNS updates, etc. Creates an
object hierarchy from a DNS server's response, which allows you to
view all of the information given by the DNS server. It bypasses the
system's resolver library and communicates directly with the server.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6294 |21cr|php-pear-Net_DNSBL-1.3.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	DNSBL
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.7
Release:	8
Summary:	DNSBL Checker
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_DNSBL/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Checks if a given Host or URL is listed on an DNSBL or SURBL.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

# nuke useless(?) files
rm -rf %{buildroot}%{_datadir}/pear/data/Net_DNSBL/build.xml

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6295 |21cr|php-pear-Net_Finger-1.0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Finger
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	12
Summary:	Querying finger servers
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Finger/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The PEAR::Net_Finger class provides a tool for querying Finger
Servers.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6296 |21cr|php-pear-Net_FTP-1.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	FTP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.4.0
Release:	4
Summary:	Comfortable communication with FTP-servers
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_FTP/
Source0:	http://download.pear.php.net/package/Net_FTP-%{version}.tgz
Requires:	php-ftp
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class allows you to communicate with FTP-servers more comfortable
that the ftp-functions of PHP. Especially you can up- and download
recursively.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data/%{upstream_name}/CHANGELOG

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/example
%doc %{upstream_name}-%{version}/CHANGELOG
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/%{upstream_name}/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6297 |21cr|php-pear-Net_Geo-1.0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Geo
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.5
Release:	8
Summary:	Geographical locations based on Internet address
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Geo/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Obtains geographical information based on IP number, domain name, or
AS number. Makes use of CAIDA Net_Geo lookup or locaizer extension.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/README
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6298 |21cr|php-pear-Net_GeoIP-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define	_requires_exceptions  	pear(PHPUnit/Framework.php)
%define upstream_name Net_GeoIP
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Name: 		php-pear-%{upstream_name}
Version:     	1.0.0
Release:     	5
Summary:    	Library to perform geo-location lookups of IP addresses
License: 	LGPL 2.1
Group: 		Development/PHP
URL: 		http://pear.php.net/package/Net_GeoIP
Source0: 	http://pear.php.net/get/Net_GeoIP-%{version}.tgz
BuildRequires: 	php-pear >= 1.4.7
BuildArch: 	noarch

%description
A library that uses Maxmind's GeoIP databases to accurately determine
geographic location of an IP address.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s

%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
        
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock



# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Net_GeoIP.xml


%post
pear install --nodeps --soft --force --register-only %{xmldir}/Net_GeoIP.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Net_GeoIP
fi

%files
%{peardir}/*
%{xmldir}/Net_GeoIP.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6299 |21cr|php-pear-Net_HL7-0.1.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	HL7
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.1.1
Release:	18
Summary:	HL7 messaging API
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_HL7/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides an HL7 API for creating, sending and
manipulating HL7 messages. HL7 is a protocol on the 7th OSI layer
(hence the '7' in HL7) for messaging in Health Care environments. HL7
means 'Health Level 7'. HL7 is a protocol with a wealth of semantics
that defines hundreds of different messages and their meaning, but
also defines the syntactics of composing and sending messages. The API
is focused on the syntactic level of HL7, so as to remain as flexible
as possible. The package is a translation of the Perl HL7 Toolkit and
will be kept in sync with this initiative.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6300 |21cr|php-pear-Net_Ident-1.1.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Ident
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.0
Release:	18
Summary:	Identification protocol implementation
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Ident/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The PEAR::Net_Ident implements Identification Protocol according to
RFC 1413. The Identification Protocol (a.k.a., "ident", a.k.a., "the
Ident Protocol") provides a means to determine the identity of a user
of a particular TCP connection. Given a TCP port number pair, it
returns a character string which identifies the owner of that
connection on the server's system.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6301 |21cr|php-pear-Net_IDNA-0.8.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	IDNA
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.8.1
Release:	8
Summary:	Punycode encoding and decoding
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_IDNA/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package helps you to encode and decode punycode strings easily.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6302 |21cr|php-pear-Net_IDNA2-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	IDNA2
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	1
Summary:	Punycode encoding and decoding
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_IDNA2/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package helps you to encode and decode punycode strings easily.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6303 |21cr|php-pear-Net_IMAP-1.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	IMAP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.3
Release:	5
Summary:	An implementation of the IMAP protocol

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_IMAP/
Source0:	http://download.pear.php.net/package/Net_IMAP-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides an implementation of the IMAP4Rev1 protocol using PEAR's
Net_Socket and Auth_SASL class.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6304 |21cr|php-pear-Net_IMSP-0.0.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prj    Net_IMSP

%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Name:          php-pear-Net_IMSP
Version:       0.0.6
Release:       6
Summary:       Net_IMSP
License:       LGPL
Group:         Networking/Mail
Url:           http://pear.horde.org/index.php?package=%{prj}
Source0:       %{prj}-%{version}.tgz
BuildArch:     noarch
Requires(pre): php-pear
Requires:      php-pear
Requires:      php-pear-channel-horde
BuildRequires: php-pear
BuildRequires: php-pear-channel-horde


%description
Provides an API into an IMSP server for Addressbooks and Options

%prep
%setup -q -n %{prj}-%{version}

%build
%__mv ../package.xml .

%install
pear install --packagingroot %{buildroot} --nodeps package.xml

%__rm -rf %{buildroot}/%{peardir}/.{filemap,lock,registry,channels,depdb,depdblock}

%__mkdir_p %{buildroot}%{xmldir}
%__cp package.xml %{buildroot}%{xmldir}/%{prj}.xml

%clean
%__rm -rf %{buildroot}

%post
pear install --nodeps --soft --force --register-only %{xmldir}/%{prj}.xml

%postun
if [ "$1" -eq "0" ]; then
  pear uninstall --nodeps --ignore-errors --register-only pear.horde.org/%{prj}
fi

%files
%defattr(-, root, root)
%{xmldir}/%{prj}.xml
%dir %{peardir}/Net/IMSP
%{peardir}/Net/IMSP.php
%{peardir}/Net/IMSP/Auth.php
%{peardir}/Net/IMSP/Auth/imtest.php
%{peardir}/Net/IMSP/Auth/plaintext.php
%{peardir}/Net/IMSP/Auth/cram_md5.php
%{peardir}/Net/IMSP/Book.php
%{peardir}/Net/IMSP/Utils.php
%{peardir}/Net/IMSP/Options.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6305 |21cr|php-pear-Net_IPv4-1.3.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	IPv4
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.4
Release:	8
Summary:	IPv4 network calculations and validation
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_IPv4/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Class used for calculating IPv4 (AF_INET family) address information
such as network addresses as well as IP address validity.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6306 |21cr|php-pear-Net_IPv6-1.2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	IPv6
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.1
Release:	8
Summary:	Check and validate IPv6 addresses
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_IPv6/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The class allows you to:
- check if an address is an IPv6 address
- compress/uncompress IPv6 addresses
- check for an IPv4 compatible ending in an IPv6 address

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6307 |21cr|php-pear-Net_IRC-0.0.7-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	IRC
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.0.7
Release:	19
Summary:	IRC client class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_IRC/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Experimental IRC Class suitable for both client or bots applications.
Features are:
 - Non-blocking sockets
 - Server messages handled by a callback system
 - Full logging capabilities
 - Full statistic collector
 - API Doc and Usage Manual

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/doc/README
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6308 |21cr|php-pear-Net_LDAP-1.1.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	LDAP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.5
Release:	10
Summary:	OO interface for searching and manipulating LDAP-entries
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_LDAP/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
%{upstream_name} is a clone of Perl's Net::LDAP object interface to
ldapservers. It does not contain all of Net::LDAP features (ldif
handling, schemas, etc), but has:
- a simple OO interface to connections, searches and entries
- support for TLS and ldap v3
- simple modification, deletion and creation of ldapentries

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/doc/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6309 |21cr|php-pear-Net_LDAP2-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	LDAP2
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	2.2.0
Release:	1
Summary:	OO interface for searching and manipulating LDAP-entries
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_LDAP2
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
%{upstream_name} is a clone of Perl's Net::LDAP object interface to
ldapservers. It does not contain all of Net::LDAP features (ldif
handling, schemas, etc), but has:
- a simple OO interface to connections, searches and entries
- support for TLS and ldap v3
- simple modification, deletion and creation of ldapentries

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%doc %{upstream_name}-%{version}/doc/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6310 |21cr|php-pear-Net_LDAP3-1.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)

%global pear_name Net_LDAP3
%global php php

# Not yet an actual PEAR package ...

Name:               php-pear-Net_LDAP3
Version:            1.0.4
Release:            4
Summary:            Object oriented interface for searching and manipulating LDAP-entries
Group:              Development/PHP
License:            LGPLv3
URL:                http://kolab.org
Source0:            pear-Net-LDAP3-%{version}.tar.gz
BuildArch:          noarch

Requires:           mozldap-tools >= 6.0.5
Requires:           php-ldap
Requires:           php-pear-Net_LDAP2
Provides:           php-pear(%{pear_name}) = %{version}-%{release}

%description
Net_LDAP3 is an LDAPv3 compatible enhancement to Net_LDAP2

%prep
%setup -qn pear-Net-LDAP3-%{version}

%build

%install
mkdir -p %{buildroot}%{peardir}
cp -a lib/Net %{buildroot}%{peardir}/.

%files
%doc LICENSE
%{peardir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6311 |21cr|php-pear-Net_LMTP-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	LMTP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	6
Summary:	An implementation of the RFC2033 LMTP protocol
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_LMTP/
Source0:	http://download.pear.php.net/package/Net_LMTP-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides an implementation of the RFC2033 LMTP using
PEAR's Net_Socket and Auth_SASL class.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/test_lmtp.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6312 |21cr|php-pear-Net_Monitor-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Monitor
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.0
Release:	4
Summary:	Remote service monitor

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Monitor/
Source0:	http://download.pear.php.net/package/Net_Monitor-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A unified interface for checking the availability services on external
servers and sending meaningful alerts through a variety of media if a
service becomes unavailable.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%doc %{upstream_name}-%{version}/doc/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/Net_Monitor/README
%{_datadir}/pear/data/Net_Monitor/build.xml
%{_datadir}/pear/data/Net_Monitor/composer.json

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6313 |21cr|php-pear-Net_NNTP-1.5.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	NNTP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.5.0
Release:	12
Summary:	Communicate with an NNTP server
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_NNTP/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Complete class for communicating with an NNTP server (this is: the
USENET), including: post, view, list, authentication, overview, header
manipulation, NNTP commands debugger, etc.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6314 |21cr|php-pear-Net_Ping-2.4.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Ping
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	2.4.5
Release:	9
Summary:	Execute ping
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Ping/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides a PHP wrapper around the ping command.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6315 |21cr|php-pear-Net_POP3-1.3.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	POP3
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.8
Release:	7
Summary:	POP3 class to access POP3 server
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_POP3/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides a POP3 class to access POP3 server. Support all POP3 commands
including UIDL listings, APOP authentication, DIGEST-MD5 and CRAM-MD5
using optional Auth_SASL package.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6316 |21cr|php-pear-Net_Portscan-1.0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Portscan
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.3
Release:	9
Summary:	Portscanner utilities
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Portscan/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The Net_Portscan package allows one to perform basic portscanning
functions with PHP. It supports checking an individual port or
checking a whole range of ports on a machine.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/README*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6317 |21cr|php-pear-Net_Server-1.0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Server
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.3
Release:	12
Summary:	Generic server class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Server/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Generic server class based on ext/sockets, used to develop any kind of
server.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/Net_Server/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6318 |21cr|php-pear-Net_Sieve-1.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Sieve
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.4.5
Release:	1
Summary:	Handles talking to timsieved
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Sieve/
Source0:	http://download.pear.php.net/package/Net_Sieve-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-pear-Net_Socket >= 1.0
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides an API to talk to the timsieved server that comes with Cyrus
IMAPd. Can be used to install, remove, mark active etc sieve scripts.

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

#-----------------------------------------------------------------
%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6319 |21cr|php-pear-Net_SmartIRC-1.1.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	SmartIRC
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.4
Release:	8
Summary:	IRC client class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_SmartIRC/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Net_SmartIRC is a PHP class for communication with IRC networks, which
conforms to the RFC 2812 (IRC protocol). It's an API that handles all
IRC protocol messages. This class is designed for creating IRC bots,
chats and show irc related info on webpages.

Featurelist:
- actionhandler for the API
- messagehandler for the API
- send/receive floodprotection
- detects and changes nickname on nickname collisions
- time events
- full object oriented programmed
- autoreconnect
- debugging/logging system
- supports fsocks and PHP socket extension
- supports PHP 4.1.x to 4.3.0
- sendbuffer with priority levels
- channel synching (tracking of users/modes/topic etc in variables)
- IRC functions: op, deop, voice, devoice, ban, unban, join, part,
  action, message, query, ctcp, mode, topic, nick, invite

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6320 |21cr|php-pear-Net_SMPP-0.4.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	SMPP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.5
Release:	7
Summary:	SMPP v3.4 protocol implementation
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires: php-pear
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}

%description
Net_SMPP is an implementation of the SMPP (Short Message Peer-to-Peer)
v3.4 protocol. SMPP is an open protocol used in the wireless industry
to send and recieve SMS messages.

Net_SMPP does not provide a SMPP client or server, but they can easily
be built with it.

%prep
%setup -qc
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6321 |21cr|php-pear-Net_SMPP_Client-0.4.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	SMPP
%define		upstream_name	%{_class}_%{_subclass}_Client

Name:		php-pear-%{upstream_name}
Version:	0.4.1
Release:	12
Summary:	SMPP v3.4 client
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_SMPP_Client/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires: php-pear
BuildArch:	noarch

%description
Net_SMPP_Client is a package for communicating with SMPP servers,
built with Net_SMPP. It can be used to send SMS messages, among other
things.

Features:
- PDU stack keeps track of which PDUs have crossed the wire
- Keeps track of the connection state, and won't let you send PDUs if
  the state is incorrect.
- Supports SMPP vendor extensions.

%prep
%setup -qc
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/Net_SMPP_Client/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6322 |21cr|php-pear-Net_SMS-0.2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	SMS
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.1
Release:	5
Summary:	SMS functionality

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_SMS/
Source0:	http://download.pear.php.net/package/Net_SMS-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides SMS functionality and access to SMS gateways.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/Net_SMS/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6323 |21cr|php-pear-Net_SMTP-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	SMTP
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.10.0
Release:	1
Summary:	An implementation of the SMTP protocol
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/Net_SMTP-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Provides an implementation of the SMTP protocol using PEAR's Net_Socket class.

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

#-----------------------------------------------------------------------
%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6324 |21cr|php-pear-Net_Socket-1.0.14-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Socket
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.14
Release:	4
Summary:	Network Socket Interface
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_LDAP2
Source0:	http://download.pear.php.net/package/Net_Socket-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Net_Socket is a class interface to TCP sockets. It provides blocking
and non-blocking operation, with different reading and writing modes
(byte-wise, block-wise, line-wise and special formats like network
byte-order ip addresses).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6325 |21cr|php-pear-Net_Traceroute-0.21.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Traceroute
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.21.3
Release:	6
Summary:	Execute traceroute
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Traceroute/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
OS independent wrapper class for executing traceroute calls.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6326 |21cr|php-pear-Net_URL-1.0.15-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	URL
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.15
Release:	14
Summary:	Easy parsing of URLs
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_URL/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides easy parsing of URLs and their constituent parts.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6327 |21cr|php-pear-Net_URL2-2.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	URL2
%define		upstream_name	%{_class}_%{_subclass}

Summary:	Class for parsing and handling URL
Name:		php-pear-%{upstream_name}
Version:	2.1.1
Release:	6
License:	BSD
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_URL2/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides parsing of URLs into their constituent parts (scheme, host, path
etc.), URL generation, and resolving of relative URLs.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6328 |21cr|php-pear-Net_URL_Mapper-0.9.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define _requires_exceptions 	pear(PHPUnit/Framework.php)
%define upstream_name Net_URL_Mapper
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Name: 		php-pear-%{upstream_name}
Version:     	0.9.1
Release:     	5
Summary:    	Provides a simple and flexible way to build nice URLs for web applications
License: 	New BSD License
Group: 		Development/PHP
Source0: 	http://pear.php.net/get/Net_URL_Mapper-%{version}.tgz
URL: 		http://pear.php.net/package/Net_URL_Mapper
BuildRequires:	php-pear >= 1.4.7
Requires:	php-pear-Net_URL >= 1.0.14
Requires:	php-pear >= 1.4.3
BuildArch: 	noarch

%description
Net_URL_Mapper provides a simple and flexible way to build nice URLs for
your web applications.

The URL syntax is similar to what can be found in Ruby on Rails or Python
Routes module 
and as such, this package can be compared to what they call a router.
Still, Net_URL_Mapper 
does not perform the dispatching like these frameworks and therefore can be
used with your 
own router.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s

%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
        
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock



# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Net_URL_Mapper.xml

%clean

%post
pear install --nodeps --soft --force --register-only %{xmldir}/Net_URL_Mapper.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.php.net/Net_URL_Mapper
fi

%files
%{peardir}/*
%{_bindir}/*
%{xmldir}/Net_URL_Mapper.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6329 |21cr|php-pear-Net_UserAgent_Detect-2.5.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	UserAgent
%define		upstream_name	%{_class}_%{_subclass}_Detect

Name:		php-pear-%{upstream_name}
Version:	2.5.2
Release:	9
Summary:	Determines the Web browser
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_UserAgent_Detect/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The Net_UserAgent object does a number of tests on an HTTP User-Agent
string. The results of these tests are available via methods of the
object. This module is based upon the JavaScript browser detection
code available at
http://www.mozilla.org/docs/web-developer/sniffer/browser_type.html.
This module had many influences from the lib/Browser.php code in
version 1.3 of Horde.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}

pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6330 |21cr|php-pear-Net_UserAgent_Mobile-1.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	UserAgent
%define		upstream_name	%{_class}_%{_subclass}_Mobile

Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	10
Summary:	HTTP mobile user agent string parser
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_UserAgent_Mobile/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Net_UserAgent_Mobile parses HTTP_USER_AGENT strings of (mainly
Japanese) mobile HTTP user agents. It'll be useful in page dispatching
by user agents. This package was ported from Perl's HTTP::MobileAgent.
See http://search.cpan.org/search?mode=module&query=HTTP-MobileAgent.
The author of the HTTP::MobileAgent module is Tatsuhiko Miyagawa.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6331 |21cr|php-pear-Net_Vpopmaild-0.3.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Vpopmaild
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.2
Release:	7
Summary:	Class for accessing Vpopmail's vpopmaild daemon
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Vpopmaild/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Supports all vpopmaild commands, such as adding/removing domains, users, robots
(autoresponders), and ezmlm lists (todo), as well as modifying domain limits,
ip maps, etc

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6332 |21cr|php-pear-Net_Whois-1.0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Net
%define		_subclass	Whois
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.5
Release:	7
Summary:	PEAR::Net_Whois class
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Net_Whois/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The PEAR::Net_Whois looks up records in the databases maintained by
several Network Information Centers (NICs).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6333 |21cr|php-pear-Numbers_Roman-1.0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Numbers
%define		_subclass	Roman
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	12
Summary:	Converting to and from Roman numerals
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Numbers_Roman/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-gd
BuildArch:	noarch
BuildRequires:	php-pear

%description
A class for converting to and from Roman numerals.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6334 |21cr|php-pear-Numbers_Words-0.18.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Numbers
%define		_subclass	Words
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.18.1
Release:	8
Summary:	Provides methods for spelling numerals in words
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Numbers_Words/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-gd
BuildArch:	noarch
BuildRequires:	php-pear

%description
With Numbers_Words class you can convert numbers written in arabic
digits to words in several languages. You can convert an integer
between -infinity and infinity. If your system does not support such
long numbers you can call Numbers_Words::toWords() with just a string.

The following languages are supported (in alphabetical order):
- bg (Bulgarian) by Kouber Saparev
- de (German)
- ee (Estonian) by Erkki Saarniit
- en_100 (Donald Knuth system, English)
- en_GB (Britich English)
- en_US (American English)
- es (Spanish Castellano) by Xavier Noguer
- es_AR (Argentinian Spanish) by Martin Marrese
- fr (French) by Kouber Saparev
- id (Indonesian) by Ernas M. Jamil
- it_IT (Italian) by Filippo Beltramini and Davide Caironi
- pl (Polish)
- pt_BR (Brazilian Portuguese) by Marcelo Subtil Marcal
- ru (Russian) by Andrey Demenev
- sv (Swedish) by Robin Ericsson


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/README
%doc %{upstream_name}-%{version}/ChangeLog
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6335 |21cr|php-pear-Object_Freezer-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name Object_Freezer

Summary:	Library that faciliates PHP object stores
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	6
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/Object_Freezer-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
BuildRequires:	php-cli

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a Library that provides the low-level functionality
required to store ("freeze") PHP objects to and fetch ("thaw") PHP objects
from an object store for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/Object/Freezer
%{_datadir}/pear/Object/*.php
%{_datadir}/pear/packages/Object_Freezer.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6336 |21cr|php-pear-OLE-1.0.0-0.RC1.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		OLE
%define		upstream_name	%{_class}
%define		pre       RC1

Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	0.%{pre}.6
Summary:	Package for reading and writing OLE containers
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/OLE/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}%{pre}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
This package allows reading and writing of OLE (Object Linking and
Embedding) files, the format used as container for Excel, Word and
other MS file formats. Documentation for the OLE format can be found
at: http://user.cs.tu-berlin.de/~schwartz/pmh/guide.html .

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}%{pre}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}%{pre}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6337 |21cr|php-pear-Pager-2.4.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Pager
%define		upstream_name	%{_class}

Summary:	Generic data paging class
Name:		php-pear-%{upstream_name}
Version:	2.4.9
Release:	7
License:	PHP License
Group:		Development/PHP
Url:		http://pear.php.net/package/Pager/
Source0:	http://download.pear.php.net/package/Pager-%{version}.tgz
BuildRequires:	php-pear
Requires:	php-pear
Requires(post,preun):	php-pear
Provides:	pear(Pager/Wrapper.php) = %{EVRD}
BuildArch:	noarch

%description
If you have data that needs paging (ie 1-10 on page one, 11-20 on page
two) this class can help. Pass it an array of data and it will sort it
into pages, picking up the current page id from the url. It can also
give you back/next and page number links taking the current url and
adding the correct page id to it.

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

#----------------------------------------------------------------------------

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6338 |21cr|php-pear-Payment_Clieop-0.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Payment
%define		_subclass	Clieop
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	5
Summary:	Create clieop03 file to send to Dutch Bank
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Payment_Clieop/
Source0:	http://download.pear.php.net/package/Payment_Clieop-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
These classes can create a clieop03 file for you which you can send to
a Dutch Bank. Ofcourse you need also a Dutch bank account.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/%{upstream_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6339 |21cr|php-pear-Payment_DTA-1.4.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Payment
%define		_subclass	DTA
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.4.3
Release:	7
Summary:	Creates DTA files containing money transactions (Germany)
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Payment_DTA/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
%{upstream_name} provides function to create DTA files used in Germany to
exchange information about money transactions with banks or online
banking programs.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}/*.php
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/Payment_DTA/nbproject/private/config.properties
%{_datadir}/pear/data/Payment_DTA/nbproject/private/private.properties
%{_datadir}/pear/data/Payment_DTA/nbproject/project.properties
%{_datadir}/pear/data/Payment_DTA/nbproject/project.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6340 |21cr|php-pear-PEAR_Command_Packaging-0.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PEAR
%define		_subclass	Command
%define		upstream_name	%{_class}_%{_subclass}_Packaging

Name:		php-pear-%{upstream_name}
Version:	0.3.0
Release:	6
Summary:	Create RPM spec files from PEAR modules
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PEAR_Command_Packaging
Source0:	http://download.pear.php.net/package/PEAR_Command_Packaging-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This command is an improved implementation of the standard PEAR "makerpm" 
command, and contains several enhancements that make it far more flexible. 
Similar functions for other external packaging mechanisms may be added at
a later date.

Enhanced features over the original PEAR "makerpm" command include:

- Ability to define a release on the command line
- Allows more advanced customisation of the generated package name
- Allows virtual Provides/Requires that differ in format from the package name
  format
- tries to intelligently distinguish between PEAR and PECL when generating
  packages

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6341 |21cr|php-pear-PEAR_RemoteInstaller-0.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PEAR
%define		_subclass	Command
%define		upstream_name	%{_class}_RemoteInstaller

Name:		php-pear-%{upstream_name}
Version:	0.3.2
Release:	5
Summary:	PEAR Remote installation plugin through FTP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PEAR_RemoteInstaller/
Source0:	http://download.pear.php.net/package/PEAR_RemoteInstaller-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Originally part of the 1.4.0 new features, remote installation
through FTP is now its own package. This package adds the commands
"remote-install" "remote-upgrade" "remote-uninstall" and 
"remote-upgrade-all" to the PEAR core.
    
To take advantage, you must have a config file on the remote ftp
server and full access to the server to create and remove files.
The config-create command can be used to get started, and the
remote_config configuration variable is set to the full URL as
in "ftp://ftp.example.com/path/to/pear.ini"
 
After this is done, install/upgrade as normal using the remote*
commands as if they were local.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6342 |21cr|php-pear-PHP_Archive-0.11.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PHP
%define		_subclass	Archive
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.11.4
Release:	11
Summary:	Create and use PHP Archive files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PHP_Archive/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
PHP_Archive allows you to create a single .phar file containing an
entire application. 

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6343 |21cr|php-pear-PHP_Beautifier-0.1.15-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PHP
%define		_subclass	Beautifier
%define		upstream_name	%{_class}_%{_subclass}
%global __requires_exclude /usr/bin/php

Name:		php-pear-%{upstream_name}
Version:	0.1.15
Release:	11
Summary:	Beautifier for PHP

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PHP_Beautifier/
Source0:	http://pecl.php.net/get/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This program reformat and beautify PHP source code files
automatically.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data/%{upstream_name}/licenses
rm -f %{buildroot}%{_bindir}/*.bat

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%doc %{upstream_name}-%{version}/licenses
%{_bindir}/php_beautifier
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/PHP_Beautifier/tests/Beautifier/Beautifier.tar.bz2
%{_datadir}/pear/data/PHP_Beautifier/tests/Beautifier/Beautifier.tar.gz
%{_datadir}/pear/data/PHP_Beautifier/tests/Beautifier/Filter/pear_sample_file.phps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6344 |21cr|php-pear-PHP_CodeBrowser-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHP_CodeBrowser
%global __requires_exclude /usr/bin/php

Summary:	A code browser that augments the code with information from various QA tools

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHP_CodeBrowser-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a code browser that augments the code with information
from various QA tools for PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/CHANGELOG.markdown
%doc %{upstream_name}-%{version}/LICENSE
%doc %{upstream_name}-%{version}/README.markdown
%{_bindir}/phpcb
%{_datadir}/pear/PHP_CodeBrowser
%{_datadir}/pear/packages/PHP_CodeBrowser.xml
%{_datadir}/pear/data/PHP_CodeBrowser

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6345 |21cr|php-pear-PHP_CodeCoverage-1.2.17-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHP_CodeCoverage

Summary:	Library that provides collection, processing, and rendering functionality
Name:		php-pear-%{upstream_name}
Version:	1.2.17
Release:	5
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHP_CodeCoverage-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-pear-File_Iterator >= 1.3.0
Recommends:	php-pear-PHP_TokenStream >= 1.1.0
Recommends:	php-pear-Text_Template >= 1.1.1
Recommends:	php-dom
Recommends:	php-xdebug >= 2.0.5

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a Library that provides collection, processing, and
rendering functionality for PHP code coverage information for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHP/CodeCoverage
%{_datadir}/pear/PHP/*.php
%{_datadir}/pear/packages/PHP_CodeCoverage.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6346 |21cr|php-pear-PHP_Compat-1.6.0a3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PHP
%define		_subclass	Compat
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.6.0a3
Release:	6
Summary:	Provides missing functionality for older versions of PHP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PHP_Compat/
Source0:	http://download.pear.php.net/package/PHP_Compat-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
PHP_Compat provides missing functionality in the form of Constants and
Functions for older versions of PHP.

Constants:
- E_STRICT
- PATH_SEPERATOR
- ...

Functions:
- file_get_contents
- file_put_contents
- is_a
- scandir
- array_combine
- ...

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6347 |21cr|php-pear-PHP_CompatInfo-1.9.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PHP
%define		_subclass	CompatInfo
%define		upstream_name	%{_class}_%{_subclass}
%global __requires_exclude /usr/bin/php

Name:		php-pear-%{upstream_name}
Version:	1.9.0
Release:	11
Summary:	Determine minimal requirements for a program

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PHP_CompatInfo/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
PHP_CompatInfo will parse a file/folder/script/array to find out the
minimum version and extensions required for it to run. Features
advanced debug output which shows which functions require which
version.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_bindir}/scripts

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_bindir}/pci
%{_bindir}/pciconf
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6348 |21cr|php-pear-phpcov-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name phpcov
%global __requires_exclude /usr/bin/php

Summary:	TextUI frontend for PHP_CodeCoverage

Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/phpcov-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-pear-PHP_CodeCoverage >= 1.1.0

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides TextUI frontend for PHP_CodeCoverage for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_bindir}/phpcov
%{_datadir}/pear/PHP/CodeCoverage/TextUI
%{_datadir}/pear/packages/phpcov.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6349 |21cr|php-pear-phpcpd-1.3.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name phpcpd
%global __requires_exclude /usr/bin/php

Summary:	Copy/Paste Detector (CPD) for PHP code

Name:		php-pear-%{upstream_name}
Version:	1.3.5
Release:	5
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/phpcpd-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-pear-File_Iterator >= 1.3.0
Recommends:	php-pear-PHP_Timer >= 1.0.2
Recommends:	php-tokenizer

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides Copy/Paste Detector (CPD) for PHP code for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_bindir}/phpcpd
%{_datadir}/pear/PHPCPD
%{_datadir}/pear/packages/phpcpd.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6350 |21cr|php-pear-PhpDocumentor-1.4.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _class PhpDocumentor
%define upstream_name %{_class}
%global __requires_exclude /usr/bin/php

Summary:	Provides automatic documenting of PHP API directly from source
Name:		php-pear-%{upstream_name}
Version:	1.4.4
Release:	7
License:	LGPLv2+
Group:		Development/PHP
Url:		http://pear.php.net/package/PhpDocumentor/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Patch0:		PhpDocumentor-1.4.3-use-system-smarty.patch
BuildRequires:	php-pear
Requires:	apache-mod_php
Requires:	php-pear
Requires:	php-smarty2
Requires(post,preun):	php-pear
BuildArch:	noarch

%description
The phpDocumentor tool is a standalone auto-documentor similar to
JavaDoc written in PHP. It differs from PHPDoc in that it is MUCH
faster, parses a much wider range of php files, and comes with many
customizations including 11 HTML templates, windows help file CHM
output, PDF output, and XML DocBook peardoc2 output for use with
documenting PEAR. In addition, it can do PHPXref source code
highlighting and linking.

Features (short list):
- output in HTML, PDF (directly), CHM (with windows help compiler),
  XML DocBook
- very fast
- web and command-line interface
- fully customizable output with Smarty-based templates
- recognizes JavaDoc-style documentation with special tags customized
  for PHP 4
- automatic linking, class inheritance diagrams and intelligent
  override
- customizable source code highlighting, with phpxref-style
  cross-referencing
- parses standard README/CHANGELOG/INSTALL/FAQ files and includes them
  directly in documentation
- generates a todo list from @todo tags in source
- generates multiple documentation sets based on @access private,
  @internal and {@internal} tags
- example php files can be placed directly in documentation with
  highlighting and phpxref linking using the @example tag
- linking between external manual and API documentation is possible at
  the sub-section level in all output formats
- easily extended for specific documentation needs with Converter
- full documentation of every feature, manual can be generated
  directly from the source code with "phpdoc -c makedocs" in any format
  desired.
- current manual always available at http://www.phpdoc.org/manual.php
- user .ini files can be used to control output, multiple outputs can
  be generated at once

%files
%{_bindir}/phpdoc
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

#----------------------------------------------------------------------------

%prep
%setup -q -c
# %%patch0 -p1 <- needs testing
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6351 |21cr|php-pear-PHP_Fork-0.3.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PHP
%define		_subclass	Fork
%define		_status		beta
%define		_pearname	%{_class}_%{_subclass}

%if %{_use_internal_dependency_generator}
%global __requires_exclude pear(Snoopy.class.php)
%else
%define		_requires_exceptions pear(Snoopy.class.php)
%endif

Summary:	%{_pearname} - Wrapper for pcntl_fork() with Java-like API
Name:		php-pear-%{_pearname}
Version:	0.3.2
Release:	14
License:	PHP License
Group:		Development/PHP
Source0:	http://pear.php.net/get/%{_pearname}-%{version}.tgz
URL:		http://pear.php.net/package/PHP_Fork/
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-shmop
Requires:	php-pcntl
BuildArch:	noarch
BuildRequires:	dos2unix

%description
PHP_Fork class. Wrapper around the pcntl_fork() stuff with a API set
like Java language. Practical usage is done by extending this class,
and re-defining the run() method.

This way PHP developers can enclose logic into a class that extends
PHP_Fork, then execute the start() method that forks a child process.
Communications with the forked process is ensured by using a Shared
Memory Segment; by using a user-defined signal and this shared memory
developers can access to child process methods that returns a
serializable variable.

The shared variable space can be accessed with the two methods:
- void setVariable($name, $value)
- mixed getVariable($name)

$name must be a valid PHP variable name;
$value must be a variable or a serializable object.

Resources (db connections, streams, etc.) cannot be serialized and so
they're not correctly handled.

In PEAR status of this package is: %{_status}.

%prep

%setup -q -c

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

# strip away annoying ^M
find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix

%install
install -d %{buildroot}%{_datadir}/pear/%{_class}

install %{_pearname}-%{version}/*.php %{buildroot}%{_datadir}/pear/%{_class}

install -d %{buildroot}%{_datadir}/pear/packages
install -m0644 package.xml %{buildroot}%{_datadir}/pear/packages/%{_pearname}.xml

%post
if [ "$1" = "1" ]; then
	if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then
		%{_bindir}/pear install --nodeps -r %{_datadir}/pear/packages/%{_pearname}.xml
	fi
fi
if [ "$1" = "2" ]; then
	if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then
		%{_bindir}/pear upgrade -f --nodeps -r %{_datadir}/pear/packages/%{_pearname}.xml
	fi
fi

%preun
if [ "$1" = 0 ]; then
	if [ -x %{_bindir}/pear -a -f %{_datadir}/pear/packages/%{_pearname}.xml ]; then
		%{_bindir}/pear uninstall --nodeps -r %{_pearname}
	fi
fi

%files
%defattr(644,root,root,755)
%doc %{_pearname}-%{version}/examples
%{_datadir}/pear/%{_class}/*.php
%{_datadir}/pear/packages/%{_pearname}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6352 |21cr|php-pear-PHP_Invoker-1.1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHP_Invoker

Summary:	Utility class for invoking callables with a timeout
Name:		php-pear-%{upstream_name}
Version:	1.1.3
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHP_Invoker-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-pcntl
BuildRequires:	php-cli

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a Utility class for invoking callables with a timeout for
PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%doc %{upstream_name}-%{version}/README.markdown
%{_datadir}/pear/PHP/Invoker
%{_datadir}/pear/PHP/*.php
%{_datadir}/pear/packages/PHP_Invoker.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6353 |21cr|php-pear-phploc-1.6.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name phploc
%global __requires_exclude /usr/bin/php

Summary:	A tool for quickly measuring the size of a PHP project

Name:		php-pear-%{upstream_name}
Version:	1.6.4
Release:	5
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/phploc-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-pear-File_Iterator >= 1.3.0
Recommends:	php-pear-bytekit
Recommends:	php-tokenizer

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a tool for quickly measuring the size of a PHP project
for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_bindir}/phploc
%{_datadir}/pear/PHPLOC
%{_datadir}/pear/packages/phploc.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6354 |21cr|php-pear-PHP_Parser-0.2.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PHP
%define		_subclass	Parser
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.2
Release:	5
Summary:	A PHP grammar parser
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PHP_Parser/
Source0:	http://download.pear.php.net/package/PHP_Parser-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
PHP_Parser is a source code analysis tool based around a real Parser
generated by phpJay. The parser uses the same EBNF source that PHP
uses to parse itself, and it therefore as robust as PHP itself.
This version has full support for parsing out every re-usable element
in PHP 5 as of beta 1:
- classes
- abstract classes
- inheritance, implements
- interfaces
- methods
- exception parsing directly from source
- static variables declared
- global and superglobal ($_GET) variables used
and declared
- variables
- constants
- functions (same information as methods)
- defines
- global variables (with help of the Tokenizer Lexer)
- superglobal variables used in global code
- include statements

The output can be customized to return an array, return
objects of user-specified classes, and can also be
customized to publish each element as it is parsed, allowing
hooks into parsing to catch information.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
rm -rf %{buildroot}

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages


%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6355 |21cr|php-pear-PHPTAL-1.0.10-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name PHPTAL

Name:		php-pear-%{upstream_name}
Version:	1.0.10
Release:	16
Summary:	Implementation of Zope Page Templates (ZPT) for PHP
License:	PHP License
Group:		Development/PHP
URL:		http://phptal.motion-twin.com/
Source0:	http://phptal.motion-twin.com/files/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-gettext
BuildArch:	noarch
BuildRequires:	php-pear

%description
PHPTAL is an implementation of Zope Page Templates (ZPT) for PHP.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/README
%{_datadir}/pear/PHPTAL
%{_datadir}/pear/PHPTAL.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6356 |21cr|php-pear-PHP_Timer-1.0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHP_Timer

Summary:	Utility class for timing
Name:		php-pear-%{upstream_name}
Version:	1.0.5
Release:	6
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHP_Timer-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a Utility class for timing for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHP/Timer
%{_datadir}/pear/PHP/*.php
%{_datadir}/pear/packages/PHP_Timer.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6357 |21cr|php-pear-PHP_TokenStream-1.2.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHP_TokenStream

Summary:	Wrapper around PHP's tokenizer extension
Name:		php-pear-%{upstream_name}
Version:	1.2.2
Release:	6
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHP_TokenStream-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-tokenizer

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a Wrapper around PHP's tokenizer extension for PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHP/Token
%{_datadir}/pear/PHP/*.php
%{_datadir}/pear/packages/PHP_TokenStream.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6358 |21cr|php-pear-PHPUnit2-2.3.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		PHPUnit2
%define		upstream_name	%{_class}
%global __requires_exclude /usr/bin/php

Name:		php-pear-%{upstream_name}
Version:	2.3.6
Release:	9
Summary:	Regression testing framework for unit tests

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/PHPUnit2/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
PHPUnit2 is a regression testing framework used by the developer who
implements unit tests in PHP. It is based upon JUnit, which can be
found at http://www.junit.org/ .

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_bindir}/phpunit
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6359 |21cr|php-pear-PHPUnit-3.7.34-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit
%define xmldir  %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

%global __requires_exclude /usr/bin/php

Name:		php-pear-%{upstream_name}
Version:	3.7.34
Release:	6
Summary:	Regression testing framework for unit tests

License:	BSD License
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear >= 1.9.4
Requires:	php-channel-phpunit
Requires:	php-pear-File_Iterator >= 1.3.0
Requires:	php-pear-Text_Template >= 1.1.1
Requires:	php-pear-PHP_CodeCoverage
Requires:	php-pear-PHP_CodeCoverage >= 1.2.1
Requires:	php-pear-PHP_CodeCoverage <= 1.2.99
Requires:	php-pear-PHP_Timer >= 1.0.2
Requires:	php-pear-PHP_Timer <= 1.0.99
Requires:	php-pear-PHPUnit_MockObject >= 1.2.0
Requires:	php-pear-Symfony2_Yaml >= 2.0.0
Requires:	php-pear-Symfony2_Yaml <= 2.99.99
BuildArch:	noarch
BuildRequires:	php-pear >= 1.9.4
BuildRequires:	php-channel-phpunit


%description
The PHP Unit Testing framework.

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s

%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
        
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

mv %{buildroot}/docs .


# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/PHPUnit.xml


%post
pear install --nodeps --soft --force --register-only %{xmldir}/PHPUnit.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.phpunit.de/PHPUnit
fi

%files
%doc docs/PHPUnit/*
%{peardir}/*
%{_bindir}/phpunit
%{xmldir}/PHPUnit.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6360 |21cr|php-pear-PHPUnit_MockObject-1.2.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_MockObject
%define peardir %(pear config-get php_dir 2> /dev/null || echo %{_datadir}/pear)
%define xmldir  /var/lib/pear

Summary: 	Mock Object library for PHPUnit
Name: 		php-pear-%{upstream_name}
Version: 	1.2.3
Release: 	4
License: 	BSD
Group: 		Development/PHP
Source0: 	http://pear.phpunit.de/get/PHPUnit_MockObject-%{version}.tgz
URL: 		http://pear.phpunit.de/package/PHPUnit_MockObject
BuildRequires: 	php-pear >= 1.4.7
BuildRequires: 	php-channel-phpunit
Requires: 	php-pear-Text_Template >= 1.1.1
Requires:	php-pear >= 1.9.4
Requires: 	php-channel-phpunit
BuildArch: 	noarch

%description
Mock Object library for PHPUnit

%prep
%setup -c -T
pear -v -c pearrc \
        -d php_dir=%{peardir} \
        -d doc_dir=/docs \
        -d bin_dir=%{_bindir} \
        -d data_dir=%{peardir}/data \
        -d test_dir=%{peardir}/tests \
        -d ext_dir=%{_libdir} \
        -s

%build

%install
rm -rf %{buildroot}
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}
        
# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

mv %{buildroot}/docs .


# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/PHPUnit_MockObject.xml

%clean
rm -rf %{buildroot}

%post
pear install --nodeps --soft --force --register-only %{xmldir}/PHPUnit_MockObject.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.phpunit.de/PHPUnit_MockObject
fi

%files
%defattr(-,root,root)
%doc docs/PHPUnit_MockObject/*
%{peardir}/*
%{xmldir}/PHPUnit_MockObject.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6361 |21cr|php-pear-PHPUnit_Selenium-1.3.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_Selenium

Summary:	Selenium RC integration for PHPUnit
Name:		php-pear-%{upstream_name}
Version:	1.3.3
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit_Selenium-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides Selenium RC integration for PHPUnit for PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/packages/PHPUnit_Selenium.xml
%{_datadir}/pear/PHPUnit/Extensions/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6362 |21cr|php-pear-PHPUnit_Story-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_Story

Summary:	Story extension for PHPUnit to facilitate Behaviour-Driven Development
Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	6
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit_Story-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides Story extension for PHPUnit to facilitate
Behaviour-Driven Development.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHPUnit/Extensions/Story
%{_datadir}/pear/packages/PHPUnit_Story.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6363 |21cr|php-pear-PHPUnit_TestListener_DBUS-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_TestListener_DBUS

Summary:	A TestListener for PHPUnit that sends events to DBUS
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit_TestListener_DBUS-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-dbus
BuildRequires:	php-cli

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a TestListener for PHPUnit that sends events to DBUS for
PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHPUnit/Util/Log/DBUS.php
%{_datadir}/pear/packages/PHPUnit_TestListener_DBUS.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6364 |21cr|php-pear-PHPUnit_TestListener_XHProf-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_TestListener_XHProf

Summary:	A TestListener that uses XHProf for automated profiling of the tested code
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit_TestListener_XHProf-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-xhprof

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a TestListener for PHPUnit that uses XHProf for automated
profiling of the tested code for PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHPUnit/Util/Log/XHProf.php
%{_datadir}/pear/packages/PHPUnit_TestListener_XHProf.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6365 |21cr|php-pear-PHPUnit_TicketListener_Fogbugz-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_TicketListener_Fogbugz

Summary:	A ticket listener for PHPUnit that interacts with the Fogbugz issue API
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit_TicketListener_Fogbugz-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-curl

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a ticket listener for PHPUnit that interacts with the
Fogbugz issue API for PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHPUnit/Extensions/TicketListener/Fogbugz.php
%{_datadir}/pear/packages/PHPUnit_TicketListener_Fogbugz.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6366 |21cr|php-pear-PHPUnit_TicketListener_GitHub-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_TicketListener_GitHub

Summary:	A ticket listener for PHPUnit that interacts with the GitHub issue API
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit_TicketListener_GitHub-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-curl
Recommends:	php-json

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a ticket listener for PHPUnit that interacts with the
GitHub issue API for PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHPUnit/Extensions/TicketListener/GitHub.php
%{_datadir}/pear/packages/PHPUnit_TicketListener_GitHub.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6367 |21cr|php-pear-PHPUnit_TicketListener_GoogleCode-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_TicketListener_GoogleCode

Summary:	A ticket listener for PHPUnit that interacts with the Google Code issue API
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit_TicketListener_GoogleCode-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-curl

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a ticket listener for PHPUnit that interacts with the
Google Code issue API for PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHPUnit/Extensions/TicketListener/GoogleCode.php
%{_datadir}/pear/packages/PHPUnit_TicketListener_GoogleCode.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6368 |21cr|php-pear-PHPUnit_TicketListener_Trac-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name PHPUnit_TicketListener_Trac

Summary:	A ticket listener for PHPUnit that interacts with the Trac issue API
Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	6
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/PHPUnit_TicketListener_Trac-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-pear-XML_RPC2

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides a ticket listener for PHPUnit that interacts with the
Trac issue API for PHPUnit.

%prep

%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/ChangeLog.markdown
%doc %{upstream_name}-%{version}/LICENSE
%{_datadir}/pear/PHPUnit/Extensions/TicketListener/Trac.php
%{_datadir}/pear/packages/PHPUnit_TicketListener_Trac.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6369 |21cr|php-pear-ppw-1.0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name ppw
%global __requires_exclude /usr/bin/php

Summary:	PHP Project Wizard

Name:		php-pear-%{upstream_name}
Version:	1.0.4
Release:	6
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/ppw-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-pear-Text_Template >= 1.1.0

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides the PHP Project Wizard for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_bindir}/ppw
%{_datadir}/pear/PPW
%{_datadir}/pear/packages/ppw.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6370 |21cr|php-pear-RDF-0.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		RDF
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	5
Summary:	Port of the core RAP API
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/RDF
Source0:	http://download.pear.php.net/package/RDF-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
This package is a port of the core components of the RDF API for PHP (aka RAP):
http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi/.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6371 |21cr|php-pear-Science_Chemistry-1.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Science
%define		_subclass	Chemistry
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.2
Release:	5
Summary:	Manipulate chemical objects: atoms, molecules, etc
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Science_Chemistry/
Source0:	http://download.pear.php.net/package/Science_Chemistry-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
General classes to represent Atoms, Molecules and Macromolecules. Also
parsing code for PDB, CML and XYZ file formats. Examples of parsing
and conversion to/from chemical structure formats.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

# nuke useless files
rm -f %{buildroot}%{_datadir}/pear/data/%{upstream_name}/*

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6372 |21cr|php-pear-Search_Mnogosearch-0.1.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Search
%define		_subclass	Mnogosearch
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.1.1
Release:	18
Summary:	Wrapper classes for the mnoGoSearch extention
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Search_Mnogosearch/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides wrapper classes for the mnoGoSearch search
engine. The package has two central classes "Search_Mnogosearch" and
"Search_Mnogosearch_Result". The class "Search_Mnogosearch" gives an
object that represents the search and the "Search_Mnogosearch_Result"
the result. The usage is just like the usage in the "DB" and
"DB_result" classes.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6373 |21cr|php-pear-Services_Amazon-0.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Services
%define		_subclass	Amazon
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.0
Release:	5
Summary:	Access to Amazon.com's web services
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Services_Amazon/
Source0:	http://download.pear.php.net/package/Services_Amazon-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Services_Amazon uses Amazon.com's web services to allow developers to
search and provide associate links for specific ISBN numbers, authors,
artist, directors, and publishers among other things.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6374 |21cr|php-pear-Services_Delicious-0.6.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Services
%define		_subclass	Delicious
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.6.0
Release:	13
Summary:	Client for the del.icio.us web service
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Services_Delicious/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Services_Delicious is a client for the REST-based web service of
del.icio.us.

del.icio.us is a social bookmarks manager. It allows you to easily add
sites you like to your personal collection of links, to categorize
those sites with keywords, and to share your collection not only
between your own browsers and machines, but also with others.

Services_Delicious allows you to select, add and delete your bookmarks
from any PHP script.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6375 |21cr|php-pear-Services_Ebay-0.13.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Services
%define		_subclass	Ebay
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.13.1
Release:	5
Summary:	Interface to eBay's XML-API
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Services_Ebay/
Source0:	http://download.pear.php.net/package/Services_Ebay-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This is interface to eBay's XML-API. It provides objects that are able
to communicate with eBay as well as models that help you working with
the return values like User or Item models.

The Services_Ebay class provides a unified method to use all objects.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6376 |21cr|php-pear-Services_ExchangeRates-0.8.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Services
%define		_subclass	ExchangeRates
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.8.0
Release:	5
Summary:	Performs currency conversion
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Services_ExchangeRates/
Source0:	http://download.pear.php.net/package/Services_ExchangeRates-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Extendable to work with any source that provides exchange rate data,
this class downloads exchange rates and the name of each currency (US
Dollar, Euro, Maltese Lira, etc.) and converts between any two of the
available currencies (the actual number of currencies supported
depends on the exchange rate feed used).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/example.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6377 |21cr|php-pear-Services_Google-0.2.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Services
%define		_subclass	Google
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	13
Summary:	Provides access to the Google Web APIs
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Services_Google/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Allows easy access to the Google Web APIs for the search engine,
spelling suggestions, and cache.

To use the package you'll need an API key from
http://www.google.com/apis/ .

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6378 |21cr|php-pear-Services_JSON-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Services
%define		_subclass	JSON
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.3
Release:	5
Summary:	PHP implementaion of json_encode/decode
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
This package provides a simple encoder and decoder for JSON notation. It is
intended for use with client-side Javascript applications that make use of
HTTPRequest to perform server communication functions - data can be encoded
into JSON notation for use in a client-side javascript, or decoded from
incoming Javascript requests. JSON format is native to Javascript, and can be
directly eval()'ed with no further parsing overhead.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install
rm -rf %{buildroot}

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean
rm -rf %{buildroot}

%post
pear install --nodeps --soft --force --register-only \
    %{_datadir}/pear/packages/%{upstream_name}.xml >/dev/null || :

%preun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only \
        %{pear_name} >/dev/null || :
fi

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6379 |21cr|php-pear-Services_Trackback-0.7.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Services
%define		_subclass	Trackback
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.7.1
Release:	5
Summary:	A generic class for sending and receiving trackbacks
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Services_Trackback/
Source0:	http://download.pear.php.net/package/Services_Trackback-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
A generic class for sending and receiving trackbacks.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6380 |21cr|php-pear-Services_W3C_CSSValidator-0.2.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Services
%define		_subclass	W3C_CSSValidator
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.3
Release:	10
Summary:	Network Socket Interface
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
Net_Socket is a class interface to TCP sockets. It provides blocking
and non-blocking operation, with different reading and writing modes
(byte-wise, block-wise, line-wise and special formats like network
byte-order ip addresses).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/Services_W3C_CSSValidator/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6381 |21cr|php-pear-SOAP-0.13.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		SOAP
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.13.0
Release:	5
Summary:	Client/Server for PHP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/SOAP/
Source0:	http://download.pear.php.net/package/SOAP-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
Requires:	php-bcmath
Requires:	php-pear-HTTP_Request
Requires:	php-pear-Net_URL
Requires:	php-pear-Net_DIME
BuildArch:	noarch
BuildRequires:	php-pear

%description
Implementation of SOAP protocol and services.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/example
%{_datadir}/pear/%{_class}
%{_datadir}/pear/tools/genproxy.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6382 |21cr|php-pear-Spreadsheet_Excel_Writer-0.9.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Spreadsheet
%define		_subclass	Excel
%define		upstream_name	%{_class}_%{_subclass}_Writer

Name:		php-pear-%{upstream_name}
Version:	0.9.3
Release:	4
Summary:	Package for generating Excel spreadsheets
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Spreadsheet_Excel_Writer/
Source0:	http://download.pear.php.net/package/Spreadsheet_Excel_Writer-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Spreadsheet_Excel_Writer was born as a porting of the
Spreadsheet::WriteExcel Perl module to PHP. It allows writing of Excel
spreadsheets without the need for COM objects. It supports formulas,
images (BMP) and all kinds of formatting for text and cells. It
currently supports the BIFF5 format (Excel 5.0), so functionality
appeared in the latest Excel versions is not yet available.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6383 |21cr|php-pear-SQL_Parser-0.5-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		SQL
%define		_subclass	Parser
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.5
Release:	20
Summary:	An SQL Parser
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/SQL_Parser/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class is primarily an SQL parser, written with influences from a
variety of sources (mSQL, CPAN's SQL-Statement, mySQL). It also
includes a tokenizer (lexer) class and a reimplementation of the ctype
extension in PHP.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6384 |21cr|php-pear-Stream_SHM-1.0.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Stream
%define		_subclass	SHM
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.0
Release:	18
Summary:	Shared memory stream
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Stream_SHM/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The Stream_SHM package provides a class that can be registered with
stream_register_wrapper() in order to have stream-based shared-memory
access.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6385 |21cr|php-pear-Stream_Var-1.1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Stream
%define		_subclass	Var
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.0
Release:	12
Summary:	Allows stream based access to any variable
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Stream_Var/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
%{upstream_name} can be registered as a stream with stream_register_wrapper 
and allows stream based access to any variable in any scope. Arrays are
treated as directories, so it`s possible to replace temporary
directories and files in your applications with variables.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6386 |21cr|php-pear-Structures_DataGrid-0.9.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Structures
%define		_subclass	DataGrid
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.3
Release:	13
Summary:	Create grid like structure based on a record set of data
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Structures_DataGrid/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package offers a toolkit to render out a datagrid in HTML format
as well as many other formats such as an XML Document, an Excel
Spreadsheet, a Smarty Template and more. It also offers paging and
sorting functionality to limit the data that is presented. This
concept is based on the .NET Framework DataGrid.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6387 |21cr|php-pear-Symfony2_Yaml-2.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Symfony2_Yaml
%define xmldir %{_var}/lib/pear
%define peardir %(pear config-get php_dir 2> /dev/null)

Summary:	The Symfony2 YAML Component
Name:		php-pear-%{upstream_name}
Version:	2.4.4
Release:	2
License:	MIT
Group:		Development/PHP
Url:		http://pear.symfony.com/package/Yaml
Source0:	http://pear.symfony.com/get/Yaml-%{version}.tgz
BuildRequires:	php-pear
BuildRequires:	php-pear-channel-symfony2
Requires(post,preun):	php-pear
Requires:	php-pear
Requires:	php-pear-channel-symfony2
Obsoletes:	php-symfony-YAML < 1.0.7
BuildArch:	noarch

%description
Symfony2 Yaml Component

%files
%doc docs/Yaml/*
%{peardir}/*
%{xmldir}/Yaml.xml

%post
pear install --nodeps --soft --force --register-only %{xmldir}/Yaml.xml

%postun
if [ "$1" -eq "0" ]; then
    pear uninstall --nodeps --ignore-errors --register-only pear.symfony.com/Yaml
fi

#--------------------------------------------------------------------

%prep
%setup -c -T
pear -v -c pearrc \
	  -d php_dir=%{peardir} \
	  -d doc_dir=/docs \
	  -d bin_dir=%{_bindir} \
	  -d data_dir=%{peardir}/data \
	  -d test_dir=%{peardir}/tests \
	  -d ext_dir=%{_libdir} \
	  -s

%build

%install
pear -c pearrc install --nodeps --packagingroot %{buildroot} %{SOURCE0}

# Clean up unnecessary files
rm pearrc
rm %{buildroot}/%{peardir}/.filemap
rm %{buildroot}/%{peardir}/.lock
rm -rf %{buildroot}/%{peardir}/.registry
rm -rf %{buildroot}%{peardir}/.channels
rm %{buildroot}%{peardir}/.depdb
rm %{buildroot}%{peardir}/.depdblock

mv %{buildroot}/docs .

# Install XML package description
mkdir -p %{buildroot}%{xmldir}
tar -xzf %{SOURCE0} package.xml
cp -p package.xml %{buildroot}%{xmldir}/Yaml.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6388 |21cr|php-pear-System_Command-1.0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		System
%define		_subclass	Command
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.8
Release:	5
Summary:	Commandline execution interface
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/System_Command/
Source0:	http://download.pear.php.net/package/System_Command-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Running functions from the commandline can be dangerous if the proper
precautions are not taken to escape the shell arguments and reaping
the exit status properly. This class give a formal interface to both,
so that you can run a system command as comfortably as you would run a
PHP function, which full pear error handling as results on failure.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6389 |21cr|php-pear-System_Mount-1.0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		System
%define		_subclass	Mount
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	8
Summary:	Mount and unmount devices in fstab
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/System_Mount/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
ystem_Mount provides a simple interface to deal with mounting and
unmounting devices listed in the system's fstab.

Features:
- Very compact, easy-to-read code, based on File_Fstab,
- Examines mount options to determine if a device can be mounted or
  not,
- Extremely easy to use,
- Fully documented with PHPDoc.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/example.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6390 |21cr|php-pear-System_ProcWatch-0.4.2-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		System
%define		_subclass	ProcWatch
%define		upstream_name	%{_class}_%{_subclass}
%global __requires_exclude /usr/bin/php

Name:		php-pear-%{upstream_name}
Version:	0.4.2
Release:	19
Summary:	Monitor processes

License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/System_ProcWatch/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
With this package you can monitor running processes based upon an XML
configuration file, XML string, INI file or an array where you define
patterns, conditions and actions.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_bindir}/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6391 |21cr|php-pear-System_Socket-0.4.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		System
%define		_subclass	Socket
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.1
Release:	19
Summary:	OO socket API
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/System_Socket/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Aims to provide a thight and robust OO API to PHPs socket extension
(ext/sockets).


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6392 |21cr|php-pear-Testing_Selenium-0.4.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Testing
%define		_subclass	Selenium
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.4
Release:	5
Summary:	PHP Client for Selenium RC
License:	Apache License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_Util/
Source0:	http://download.pear.php.net/package/Testing_Selenium-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Selenium Remote Control (SRC) is a test tool that allows you to write automated
web application UI tests in any programming language against any HTTP website
using any mainstream JavaScript-enabled browser. SRC provides a Selenium
Server, which can automatically start/stop/control any supported browser. It
works by using Selenium Core, a pure-HTML+JS library that performs automated
tasks in JavaScript; the Selenium Server communicates directly with the browser
using AJAX (XmlHttpRequest).

http://www.openqa.org/selenium-rc/

This module sends commands directly to the Server using simple HTTP GET/POST
requests. Using this module together with the Selenium Server, you can
automatically control any supported browser.

To use this module, you need to have already downloaded and started the
Selenium RC Server.  (The Selenium Server is a Java application.)

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%doc %{upstream_name}-%{version}/ChangeLog
%doc %{upstream_name}-%{version}/README
%doc %{upstream_name}-%{version}/TODO
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/%{upstream_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6393 |21cr|php-pear-Text_CAPTCHA-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	CAPTCHA
%define		upstream_name	%{_class}_%{_subclass}
Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	5
Summary:	Generation of CAPTCHA imgaes
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_CAPTCHA/
Source0:	http://download.pear.php.net/package/Text_CAPTCHA-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Implementation of CAPTCHA (completely automated public Turing test to
tell computers and humans apart) images.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6394 |21cr|php-pear-Text_Diff-1.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	Diff
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.2
Release:	2
Summary:	Engine for performing and rendering text diffs
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_Diff/
Source0:	http://download.pear.php.net/package/Text_Diff-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch


%description
This package provides a text-based diff engine and renderers for
multiple diff output formats.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6395 |21cr|php-pear-Text_Figlet-1.0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	Figlet
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	8
Summary:	Render text using FIGlet fonts
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_Figlet/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear


%description
Engine for use FIGlet fonts to rendering text.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6396 |21cr|php-pear-Text_Highlighter-0.7.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	Highlighter
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.7.3
Release:	6
Summary:	Syntax highlighting
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_Highlighter/
Source0:	http://download.pear.php.net/package/Text_Highlighter-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Text_Highlighter is a package for syntax highlighting.

It provides a base class providing all the functionality, and a
descendent classes geneator class.

The main idea is to simplify creation of subclasses implementing
syntax highlighting for particular language. Subclasses do not
implement any new functionality, they just provide syntax
highlighting rules. The rules sources are in XML format.

To create a highlighter for a language, there is no need to code a new
class manually. Simply describe the rules in XML file and use
Text_Highlighter_Generator to create a new class.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data/TODO

rm -f %{buildroot}%{_bindir}/generate*

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/README
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6397 |21cr|php-pear-Text_Huffman-0.2.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	Huffman
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	20
Summary:	Lossless compression algorithm
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_Huffman/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Huffman compression is a lossless compression algorithm that is ideal
for compressing textual data.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6398 |21cr|php-pear-Text_Password-1.1.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	Password
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.1
Release:	12
Summary:	Creating passwords with PHP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_Password/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Text_Password allows one to create pronounceable and unpronounceable
passwords. The full functional range is explained in the manual at
http://pear.php.net/manual/.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6399 |21cr|php-pear-Text_Statistics-1.0.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	Statistics
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.1
Release:	9
Summary:	Compute readability indexes for documents
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_Statistics/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Text_Statistics allows for computation of readability indexes for text
documents.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6400 |21cr|php-pear-Text_Template-1.2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  upstream_name Text_Template

Summary:	Simple template engine for PHPUnit
Name:		php-pear-%{upstream_name}
Version:	1.2.0
Release:	7
License:	BSD
Group:		Development/PHP
URL:		http://www.phpunit.de/
Source0:	http://pear.phpunit.de/get/Text_Template-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-cli >= 3:5.2.1
Requires:	php-pear >= 1:1.9.4
Requires:	php-channel-phpunit
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	php-channel-phpunit
Recommends:	php-pear-PHPUnit >= 3.6.3
Recommends:	php-soap

%description
PHPUnit is a regression testing framework used by the developer who implements
unit tests in PHP.

This package provides the Simple template engine for PHPUnit.

%prep

%setup -q -c 
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%build

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/ChangeLog.md
%doc %{upstream_name}-%{version}/LICENSE
%doc %{upstream_name}-%{version}/README.md
%{_datadir}/pear/Text/Template
%{_datadir}/pear/Text/*.php
%{_datadir}/pear/packages/Text_Template.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6401 |21cr|php-pear-Text_TeXHyphen-0.1.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	TeXHyphen
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.1.0
Release:	21
Summary:	Automated word hyphenation with the TeX algorithm
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_TeXHyphen/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package implements the TeX hyphenation algorithm based on
pattern.

The package can support various backends for pattern retrieval. At
this stage only flat files with TeX pattern were implemented. The
advantage of the TeX pattern is the available multi-language support.
Currently German, Oxford and American English are supported.

For speed purposes an interface for a cache of hyphenated words was
implemented.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6402 |21cr|php-pear-Text_Wiki-1.2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	Wiki
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.1
Release:	8
Summary:	Parsing and rendering rules for Wiki markup in structured text
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_Wiki/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Abstracts parsing and rendering rules for Wiki markup in structured
plain text.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6403 |21cr|php-pear-Text_Wiki_Mediawiki-0.2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Text
%define		_subclass	Wiki_Mediawiki
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	8
Summary:	Mediawiki parser for Text_Wiki
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Text_Wiki/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Parses Mediawiki mark-up to tokenize the text for Text_Wiki renderings.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6404 |21cr|php-pear-Translation-1.2.6pl1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Translation
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.2.6pl1
Release:	20
Summary:	Class for creating multilingual websites
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Translation/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear
BuildRequires:	recode

%description
Class allows to store and retrieve all the strings on multilingual
site in the database. Class connects to any database using PHP PEAR
extension. The object should be created for every page. While creation
all the strings connected with specific page and the strings connected
with all the pages on the site are loaded into variable, so access to
them is quite fast and does not overload database server connection.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6405 |21cr|php-pear-Translation2-2.0.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_class	Translation2
%define	modname	%{_class}
%global __requires_exclude /usr/bin/php

Summary:	Class for multilingual applications management
Name:		php-pear-%{modname}
Version:	2.0.4
Release:	12
License:	PHP License
Group:		Development/PHP
Url:		http://pear.php.net/package/Translation2/
Source0:	http://download.pear.php.net/package/%{modname}-%{version}.tgz
BuildArch:	noarch
BuildRequires:	php-pear
Requires(post,preun):	php-pear
Requires:	php-pear

%description
This class provides an easy way to retrieve all the strings for a
multilingual site from a data source (i.e. db). A PEAR::DB and a
PEAR::MDB container are provided, more containers will follow. It is
designed to reduce the number of queries to the db, caching the
results when possible. An Admin class is provided to easily manage
translations (add/remove a language, add/remove a string).

%prep
%setup -qc
mv package.xml %{modname}-%{version}/%{modname}.xml

%install
cd %{modname}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{modname}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{modname}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{modname}-%{version}/docs/*
%{_bindir}/t2xmlchk.php
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{modname}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6406 |21cr|php-pear-Tree-0.3.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Tree
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.3.7
Release:	6
Summary:	Generic tree management
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Tree/
Source0:	http://download.pear.php.net/package/Tree-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Provides methods to read and manipulate trees, which are stored in the
DB or an XML file. The trees can be stored in the DB either as nested
trees or as simple trees ('brain dead method'), which use
parentId-like structure. Currently XML data can only be read from a
file and accessed. The package offers a big number of methods to
access and manipulate trees. For example methods like: getRoot,
getChild[ren], getParent, getPath and many more. There are two ways of
retrieving the data from the place where they are stored, one is by
reading the entire tree into the memory - the Memory way. The other is
reading the tree nodes as needed (very useful in combination with huge
trees and the nested set model). The package is designed that way that
it is possible to convert/copy tree data from either structure to
another (from XML into DB).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6407 |21cr|php-pear-UDDI-0.2.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		UDDI
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.2.4
Release:	10
Summary:	API for PHP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/UDDI/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Implementation of Universal Description, Discovery and Integration API
for locating and publishing Web Services in a UBR (UDDI Business
Registry).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}/*.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6408 |21cr|php-pear-Validate-0.8.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Validate
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	0.8.5
Release:	6
Summary:	Validation class
License:	BSD
Group:		Development/PHP
URL:		http://pear.php.net/package/Validate/
Source0:	http://download.pear.php.net/package/Validate-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Package to validate various datas. It includes :
- numbers (min/max, decimal or not),
- email (syntax, domain check),
- string (predifined type alpha upper and/or lowercase, numeric,...),
- date (min, max),
- Credit cards,
- possibility valid multiple data with a single method call
  (::multiple).

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}.php
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6409 |21cr|php-pear-Var_Dump-1.0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		Var_Dump
%define		upstream_name	%{_class}

Name:		php-pear-%{upstream_name}
Version:	1.0.4
Release:	8
Summary:	Methods for dumping information about a variable
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/Var_Dump/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Displays informations about the values of variables on a graphical
way:
- If given a simple variable (string, integer, double, ressource), the
  value itself is printed,
- If given an array, it is explored recursively and values are
  presented in a format that shows keys and elements,
- If given an object, informations about the object and the class are
  printed.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_bindir}/gen_php_doc.sh
%{_datadir}/pear/*.php
%{_datadir}/pear/%{upstream_name}
%{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6410 |21cr|php-pear-XML_Beautifier-1.2.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	Beautifier
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.2.2
Release:	8
Summary:	Class to format XML documents
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_Beautifier/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
XML_Beautifier will add indentation and linebreaks to you XML files,
replace all entities, format your comments and makes your document
easier to read. You can influence the way your document is beautified
with several options. 

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6411 |21cr|php-pear-XML_CSSML-1.1.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	CSSML
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.1
Release:	12
Summary:	Methods for creating cascading style sheets (CSS)
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_CSSML/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The best way to describe this library is to classify it as a template
system for generating cascading style sheets (CSS). It is ideal for
storing all of the CSS in a single location and allowing it to be
parsed as needed at runtime (or from cache) using both general and
browser filters specified in the attribute for the style tags. It can
be driven with either the libxslt pear extenstion (part of xmldom) or
the xslt extension (part of the sablotron libraries). You may see an
example usage of this class at the follow url:
http://mojave.mojavelinux.com/forum/viewtopic.php?p=22#22

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

install -d %{buildroot}%{_datadir}/pear/%{_class}/%{_subclass}

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/%{_class}_%{_subclass}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6412 |21cr|php-pear-XML_DTD-0.5.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	DTD
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.5.2
Release:	5
Summary:	Parsing of DTD files and DTD validation of XML files
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_DTD/
Source0:	http://download.pear.php.net/package/XML_DTD-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Parsing of DTD files and DTD validation of XML files. The XML
validation is done with the PHP sax parser, the xml extension, it does
not use the domxml extension.

Currently supports most of current XML specification, including
entities, elements and attributes. Some uncommon parts of the
specification may still be unsupported.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/*.txt
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6413 |21cr|php-pear-XML_FastCreate-1.0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	FastCreate
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.4
Release:	6
Summary:	Fast creation of valid XML with DTD control and translation options
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_FastCreate/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Key features of this package include:
- Easy way to make valid XML :
	\$x->div(
	\$x->h1("Example"),
	\$x->p("Hello"),
	\$x->p(array('class'=>'example'), "World !")
	)

- Option to report DTD errors in your XML :
Use internal tool or external program [ Require XML_DTD package ]

- Use output driver of your choice :
Text : return string
XML_Tree : return XML_Tree object [ Require XML_Tree package ]

- Translate option to quickly transform tags by anothers :
ex: Convert your XML to XHTML :
<news><title>Example</title></news>
to :
<div class="news"><h1>Example</h1></div>

- Include a PHP program to quickly transform HTML to FastCreate syntax.
[ Require XML_HTMLSax package ]

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/script/*
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6414 |21cr|php-pear-XML_fo2pdf-0.98-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	fo2pdf
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.98
Release:	18
Summary:	Converts a xsl-fo file to pdf/ps/pcl/text/etc
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_fo2pdf/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Converts a xsl-fo file to pdf/ps/pcl/text/etc with the help of
apache-fop.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/README*
%doc %{upstream_name}-%{version}/*.fo
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6415 |21cr|php-pear-XML_FOAF-0.4.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	FOAF
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.4.0
Release:	11
Summary:	Provides the ability to manipulate FOAF RDF/XML
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_FOAF/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
XML_FOAF allows advanced users to create advanced FOAF files.
The FOAF Project can be found at http://www.foaf-project.org/ -
XML_FOAF_Parser and XML_FOAF_Lite will follow before 1.0.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml
%{_datadir}/pear/data/XML_FOAF/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6416 |21cr|php-pear-XML_HTMLSax-3.0.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	HTMLSax
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	3.0.0
Release:	19
Summary:	A SAX based parser for HTML and other badly formed XML documents
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_HTMLSax/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
XML_HTMLSax is a SAX based XML parser for badly formed XML documents,
such as HTML. The original code base was developed by Alexander Zhukov
and published at http://sourceforge.net/projects/phpshelve/, who in
turn was inspired by the Python HTMLSax package. Alexander kindly gave
permission to modify the code and license for inclusion in PEAR.
PEAR::XML_HTMLSax takes the last release from Sourceforge
(HTMLSax2002082201) and changes the API to make using HTMLSax very
similar to using the native PHP Expat extension, opening it up for use
with projects like SAX filters:
http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html.
This version also fixes some bugs and adds further features such as
the ability to handle processing instructions and JSP/ASP markup.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6417 |21cr|php-pear-XML_HTMLSax3-3.0.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	HTMLSax3
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	3.0.0
Release:	12
Summary:	A SAX parser for HTML and other badly formed XML documents
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_HTMLSax3/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
XML_HTMLSax3 is a SAX based XML parser for badly formed XML documents, such as
HTML. The original code base was developed by Alexander Zhukov and published at
http://sourceforge.net/projects/phpshelve/. Alexander kindly gave permission to
modify the code and license for inclusion in PEAR.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6418 |21cr|php-pear-XML_image2svg-0.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	image2svg
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.1.1
Release:	5
Summary:	Image to SVG conversion
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_image2svg/
Source0:	http://download.pear.php.net/package/XML_image2svg-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The class converts images, such as of the format JPEG, PNG and GIF to
a standalone SVG representation. The image is being encoded by the PHP
native encode_base64() function. You can use it to get back a complete
SVG file, which is based on a predefinded, easy adaptable template
file, or you can take the encoded file as a return value, using the
get() method. Due to the encoding by base64, the SVG files will
increase approx. 30% in size compared to the conventional image.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/package.php

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6419 |21cr|php-pear-XML_Indexing-0.3.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	Indexing
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.6
Release:	12
Summary:	XML Indexing support
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_Indexing/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides support for indexing XML files. It assists you
in creating and using such indexes in order to reduce access-time to
local XML files.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6420 |21cr|php-pear-XML_MXML-0.3.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	MXML
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.0
Release:	19
Summary:	Framework to build Macromedia Flex applications
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_MXML/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Flex enables enterprise-class Rich Internet Applications and is
designed to address a certain class of problems around multistep
processes, client-side validation, data manipulation, and data
visualization. This package allows you to build Flex documents
programatically.

MXML is the XML language for writing Macromedia Flex applications that
you can use to lay out user-interface components.

You can also use MXML to declaratively define nonvisual aspects of an
application, such as access to server-side data sources and data
bindings between user-interface components and server-side data
sources.

The API follows closely Stephan Schmidts XUL-Package.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6421 |21cr|php-pear-XML_NITF-1.1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	NITF
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.1
Release:	7
Summary:	Parse NITF documents
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_NITF/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides a NITF XML parser. The parser was designed with
NITF version 3.1, but should be forward-compatible when new versions
of the NITF DTD are produced. Various methods for accessing the major
elements of the document, such as the hedline(s), byline, and lede are
provided. This class was originally tested against the Associated
Press's (AP) XML data feed.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/docs
rm -rf %{buildroot}%{_datadir}/pear/tests

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

# nuke useless(?) files
rm -rf %{buildroot}%{_datadir}/pear/data/XML_NITF/.buildpath
rm -rf %{buildroot}%{_datadir}/pear/data/XML_NITF/.project
rm -rf %{buildroot}%{_datadir}/pear/data/XML_NITF/.settings/org.eclipse.php.core.prefs

%clean



%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6422 |21cr|php-pear-XML_Parser-1.3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	Parser
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.3.8
Release:	1
Summary:	XML parsing class based on PHP's bundled expat
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/%{upstream_name}
Source0:	http://download.pear.php.net/package/XML_Parser-%{version}.tgz
Requires(post): php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
This is an XML parser based on PHPs built-in xml extension.  It supports two
basic modes of operation: "func" and "event".  In "func" mode, it will look for
a function named after each element (xmltag_ELEMENT for start tags and
xmltag_ELEMENT_ for end tags), and in "event" mode it uses a set of generic
callbacks.

Since version 1.2.0 there's a new XML_Parser_Simple class that makes parsing of
most XML documents easier, by automatically providing a stack for the elements.
Furthermore its now possible to split the parser from the handler object, so
you do not have to extend XML_Parser anymore in order to parse a document with
it.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%clean



%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6423 |21cr|php-pear-XML_RDDL-0.9-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	RDDL
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9
Release:	19
Summary:	Read RDDL (Resource Directory Description Language) documents
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_RDDL/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class provides an easy-to-use interface to extract RDDL resources
from XML documents. More on RDDL can be found at http://www.rddl.org/

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6424 |21cr|php-pear-XML_RPC2-1.1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	RPC2
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.2
Release:	7
Summary:	XML-RPC client/server library
License:	LGPL
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_RPC2/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildRequires:	php-pear
BuildArch:	noarch

%description
XML_RPC2 is a pear package providing XML_RPC client and server services. 
XML-RPC is a simple remote procedure call protocol built using HTTP as 
transport and XML as encoding.

As a client library, XML_RPC2 is capable of creating a proxy class which 
exposes the methods exported by the server. As a server library, XML_RPC2 
is capable of exposing methods from a class or object instance, seamlessly 
exporting local methods as remotely callable procedures.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6425 |21cr|php-pear-XML_RSS-1.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	RSS
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	7
Summary:	RSS parser
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_RSS/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Parser for Resource Description Framework (RDF) Site Summary (RSS)
documents.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6426 |21cr|php-pear-XML_SaxFilters-0.3.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	SaxFilters
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.0
Release:	19
Summary:	A framework for building XML filters using the SAX API
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_SaxFilters/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
XML_SaxFilters provides a foundation for using Sax filters in PHP. The
original code base was developed by Luis Argerich and published at
http://phpxmlclasses.sourceforge.net/show_doc.php?class=class_sax_filters.html.
Luis discussed how SaxFilters work, using the Sourceforge classes as
an example, in Chapter 10 of Wrox "PHP 4 XML". Luis kindly gave
permission to modify the code and license for inclusion in PEAR.

This version of the Sax Filters makes significant changes to Luis's
original code (backwards compatibility is definately broken),
seperating abstract classes from interfaces, providing interfaces for
data readers and writers and providing methods to help parse XML
documents recursively with filters (for example
AbstractFilter::setParent()) for documents where the structure can
vary significantly.

Sax Filtering is an approach to making parsing XML documents with Sax
modular and easy to maintain. The parser delegates events to a child
filter which may in turn delegate events to another filter. In general
it's possible to implement filters for a document which are as
flexible and powerful as DOM.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/docs/*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6427 |21cr|php-pear-XML_Serializer-0.21.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	Serializer
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.21.0
Release:	2
Summary:	Class to build XML documents from data structures
License:	BSD
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_Serializer/
Source0:	http://download.pear.php.net/package/XML_Serializer-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
%{upstream_name} serializes complex data structures like arrays or objects
as XML documents. This class helps you generating any XML document you
require without the need for DOM.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/doc
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6428 |21cr|php-pear-XML_sql2xml-0.3.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	sql2xml
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.3.4
Release:	13
Summary:	Returns XML from a SQL-query
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_sql2xml/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This class takes a PEAR::DB-Result Object, a sql-query-string, an
array and/or an xml-string/file and returns a xml-representation of
it.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/doc/*
%doc %{upstream_name}-%{version}/%{_subclass}_ext.php
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6429 |21cr|php-pear-XML_Statistics-0.2.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	Statistics
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	19
Summary:	Obtain statistical information from an XML documents
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_Statistics/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
XML_Statistics is able to retrieve statistics about tags, attributes,
entities, processing instructions and CDaata chunks in any XML document.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6430 |21cr|php-pear-XML_SVG-1.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	SVG
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.0
Release:	6
Summary:	XML_SVG API
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_SVG/
Source0:	http://download.pear.php.net/package/XML_SVG-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package provides and object-oriented way of building SVG
documents.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{_datadir}/pear/data/%{upstream_name}
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6431 |21cr|php-pear-XML_svg2image-0.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	svg2image
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.2.0
Release:	5
Summary:	Converts a SVG file to a PNG/JPEG image
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_svg2image/
Source0:	http://download.pear.php.net/package/XML_svg2image-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Converts a SVG file to a PNG/JPEG image with the help of apache-batik
(java-program), needs therefore a PHP with ext/java compiled-in and
the batik files from http://xml.apache.org/batik/.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
#%doc %{upstream_name}-%{version}/README*
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6432 |21cr|php-pear-XML_Transformer-1.1.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	Transformer
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.1.2
Release:	12
Summary:	XML transformations in PHP
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_Transformer/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
With the XML_Transformer class one can easily bind PHP functionality
to XML tags, thus transforming the input XML tree into an output XML
tree without the need for XSLT. Single XML elements can be overloaded
with PHP functions, methods and static method calls, XML namespaces
can be registered to be handled by PHP classes.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

perl -pi -e "s|PHPUnit2|PHPUnit|g" %{upstream_name}-%{version}/Transformer/Tests/*

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/README
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6433 |21cr|php-pear-XML_Tree-2.0.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	Tree
%define		upstream_name	%{_class}_%{_subclass}
%define		_rc		RC2

Name:		php-pear-%{upstream_name}
Version:	2.0.0
Summary:	Represent XML data in a tree structure
Release:	20
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_Tree/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}%{_rc}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
Allows for the building of XML data structures using a tree
representation, without the need for an extension like DOMXML.


%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}%{_rc}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}%{_rc}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test
rm -rf %{buildroot}%{_datadir}/pear/data

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}%{_rc}/README.txt
%doc %{upstream_name}-%{version}%{_rc}/docs
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6434 |21cr|php-pear-XML_Wddx-1.0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	Wddx
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	1.0.2
Release:	8
Summary:	Wddx pretty serializer and deserializer
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_Wddx/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tar.bz2
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
XML_Wddx does 2 things:
- a drop in replacement for the XML_Wddx extension (if it's not built
  in)
- produce an editable wddx file (with indenting etc.) and uses CDATA,
  rather than char tags

This package contains 2 static method:
- XML_Wddx:serialize(\$value)
- XML_Wddx:deserialize(\$value)

And should be 90% compatible with wddx_deserialize(), and the
deserializer will use wddx_deserialize if it is built in.

No support for recordsets is available at present in the PHP version
of the deserializer.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%defattr(-,root,root)
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6435 |21cr|php-pear-XML_XSLT_Wrapper-0.2.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	XSLT
%define		upstream_name	%{_class}_%{_subclass}_Wrapper

Name:		php-pear-%{upstream_name}
Version:	0.2.2
Release:	11
Summary:	Single interface to the different XSLT interface or commands
License:	PHP License
Group:		Development/PHP
Source0:	http://pear.php.net/get/%{upstream_name}-%{version}.tgz
URL:		http://pear.php.net/package/XML_XSLT_Wrapper/
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
This package was written to provide a simpler, cross-library and cross
commands interface to doing XSL transformations. It provides support
for: DOM XSLT PHP extension, XSLT PHP extension, MSXML using COM PHP
extension, XT command line
(http://www.blnz.com/xt/xt-20020426a-src/index.html), Sablotron
command line
(http://www.gingerall.com/charlie/ga/act/gadoc.act?pg=sablot#i__1940),
XT java interface, xml.apache.org java and C interface
(http://xml.apache.org/), Instant Saxon
(http://users.iclway.co.uk/mhkay/saxon/instant.html). Batch mode: XML:
multiple transformations of a single XML file, XSL: multiple
transformations of multiple XML files using a single XSL.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

# remove windows class:
rm %{buildroot}%{_datadir}/pear/%{_class}/%{_subclass}/Wrapper/Backend/*Com.php

%files
%defattr(-,root,root)
%doc %{upstream_name}-%{version}/TODO
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6436 |21cr|php-pear-XML_XUL-0.9.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		_class		XML
%define		_subclass	XUL
%define		upstream_name	%{_class}_%{_subclass}

Name:		php-pear-%{upstream_name}
Version:	0.9.1
Release:	12
Summary:	Class to build Mozilla XUL applications
License:	PHP License
Group:		Development/PHP
URL:		http://pear.php.net/package/XML_XUL/
Source0:	http://download.pear.php.net/package/%{upstream_name}-%{version}.tgz
Requires(post):	php-pear
Requires(preun): php-pear
Requires:	php-pear
BuildArch:	noarch
BuildRequires:	php-pear

%description
The XML User Interface Language (XUL) is a markup language for
describing user interfaces. With XUL you can create rich, sophisticated
cross-platform web applications easily. XML_XUL provides a API similar
to DOM to create XUL applications. There's a PHP object for each XUL
element, and the more complex widgets like grids, trees and tabboxes can
easily be created with these objects.

%prep
%setup -q -c
mv package.xml %{upstream_name}-%{version}/%{upstream_name}.xml

%install

cd %{upstream_name}-%{version}
pear install --nodeps --packagingroot %{buildroot} %{upstream_name}.xml
rm -rf %{buildroot}%{_datadir}/pear/.??*

rm -rf %{buildroot}%{_datadir}/pear/doc
rm -rf %{buildroot}%{_datadir}/pear/test

install -d %{buildroot}%{_datadir}/pear/packages
install -m 644 %{upstream_name}.xml %{buildroot}%{_datadir}/pear/packages

%files
%doc %{upstream_name}-%{version}/examples
%{_datadir}/pear/%{_class}
%{_datadir}/pear/packages/%{upstream_name}.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6437 |21cr|phppgadmin-5.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname phpPgAdmin

Summary:	PostgreSQL database adminstration over the web interface
Name:		phppgadmin
Version:	5.1
Release:	4
License:	GPLv2+
Group:		System/Servers
Url:		http://sourceforge.net/projects/phppgadmin
Source0:	http://prdownloads.sourceforge.net/phppgadmin/%{rname}-%{version}.tar.bz2
Patch0:		phpPgAdmin-4.1.1-mdv_conf.diff
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(jasper)
BuildRequires:	recode
Requires:	apache-mod_php
Requires:	php-pgsql
Requires:	php-gettext
BuildArch:	noarch

%description
phpPgAdmin is phpMyAdmin (for MySQL) ported to PostgreSQL.
phpPgAdmin is a fully functional PostgreSQL administration
utility. You can use it to  create and maintain multiple databases
and even multiple servers.

%files
%doc CREDITS DEVELOPERS FAQ HISTORY INSTALL LICENSE TODO TRANSLATORS plugins/Report/sql/reports-pgsql.sql
%config(noreplace) %{_webappconfdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%attr(0640,apache,root) %config(noreplace) %{_sysconfdir}/%{name}/config.inc.php
/var/www/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*.desktop

#------------------------------------------------------------------------------

%prep
%setup -q -n %{rname}-%{version}
%patch0 -p0

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
	if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

%build

%install
export DONT_RELINK=1

install -d %{buildroot}%{_webappconfdir}
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}/var/www/%{name}

cp -aRf * %{buildroot}/var/www/%{name}/

mv %{buildroot}/var/www/%{name}/conf/config.inc.php-dist %{buildroot}%{_sysconfdir}/%{name}/config.inc.php
rm -rf %{buildroot}/var/www/%{name}/conf

# generate UTF-8 files
pushd lang
#	make DESTDIR=./recoded
popd
install -m0644 lang/*.php  %{buildroot}/var/www/%{name}/lang/

# cleanup
pushd %{buildroot}/var/www/%{name}
	rm -rf sql
	rm -f CREDITS DEVELOPERS FAQ HISTORY INSTALL LICENSE TODO TRANSLATORS
	rm -f lang/Makefile lang/convert.awk lang/php2po lang/po2php lang/synch lang/langcheck
popd

cat > %{buildroot}%{_webappconfdir}/%{name}.conf << EOF
Alias /%{name} /var/www/%{name}

<Directory /var/www/%{name}>
	Require local granted
	ErrorDocument 403 "Access denied per %{_webappconfdir}/%{name}.conf"
</Directory>
EOF

# fix dir perms
find %{buildroot} -type d | xargs chmod 755

# fix file perms
find %{buildroot} -type f | xargs chmod 644

# Mandriva Icons
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_liconsdir}

convert images/themes/default/title.png -resize 16x16  %{buildroot}%{_miconsdir}/%{name}.png
convert images/themes/default/title.png -resize 32x32  %{buildroot}%{_iconsdir}/%{name}.png
convert images/themes/default/title.png -resize 48x48  %{buildroot}%{_liconsdir}/%{name}.png

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=phpPgAdmin
Name[ru]=phpPgAdmin
Comment=phpPgAdmin is a web administration GUI for PostgreSQL.
Comment[ru]=Администрирование PostgreSQL через Web-интерфейс.
Exec=%{_bindir}/www-browser http://localhost/%{name}/
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Databases;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6438 |21cr|php-phpmailer-6.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^pear\\(.*\\)
%define base_name phpmailer

Summary:	Full featured email transfer class for PHP
Name:		php-%{base_name}
Version:	6.6.4
Release:	1
License:	LGPL
Group:		Development/Other
Url:		http://phpmailer.sourceforge.net/
Source:		https://github.com/PHPMailer/PHPMailer/archive/v%{version}.tar.gz?/PHPMailer-%{version}.tar.gz
BuildArch:	noarch

%description
PHP email transport class featuring multiple file attachments, SMTP servers,
CCs, BCCs, HTML messages, and word wrap, and more. It can send email via
sendmail, PHP mail(), or with SMTP. Methods are based on the popular AspEmail
active server component.

%files
%doc LICENSE
%{_datadir}/php/PHPMailer

#---------------------------------------------------------

%prep
%setup -q -n PHPMailer-%{version}

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/php/PHPMailer
install -d -m 755 %{buildroot}%{_datadir}/php/PHPMailer/language
install -d -m 755 %{buildroot}%{_datadir}/php/PHPMailer/src
install -m 644 *.php %{buildroot}%{_datadir}/php/PHPMailer
install -m 644 src/*.php %{buildroot}%{_datadir}/php/PHPMailer/src
install -m 644 language/*.php %{buildroot}%{_datadir}/php/PHPMailer/language

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6439 |21cr|php-pluf-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    php-pluf
%define version 0.1
%define release 9

Summary:    PHP WebApp Framework
Name:       %{name}
Version:    1.0
Release:    5
License:    GPLv2
Group:      Development/PHP
Url:        http://www.pluf.org/
Source0:    http://projects.ceondo.com/p/pluf/source/download/master/pluf-master.zip
Requires(pre):  rpm-helper   
Requires:       mod_php
BuildArch:  noarch

%description
Simple, elegant and easy for people used to Django but in PHP5 so easy
to deploy all over the world.

%prep
%setup -q -n pluf-master

%build


%install
%__install -d -m 755 %{buildroot}%_defaultdocdir/%{name}
%__install -m 755 COPYING CONTRIBUTORS 
cp -aRf apps %{buildroot}%_defaultdocdir/%{name}
cp -aRf tests %{buildroot}%_defaultdocdir/%{name}

%__install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -aRf src/* %{buildroot}%{_datadir}/%{name}
# Remove developper script
rm %{buildroot}%{_datadir}/%{name}/makepot.sh

# remove .htaccess files
find %{buildroot}%{_datadir}/%{name} -name .htaccess -exec rm -f {} \;


%files
%defattr(0644,root,root,0755)
%doc COPYING CONTRIBUTORS apps tests
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6440 |21cr|php-proctitle-0.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname proctitle
%define soname %{modname}.so
%define inifile A92_%{modname}.ini

Summary:	Allows setting the current process name on Linux and BSD
Name:		php-%{modname}
Version:	0.1.2
Release:	5
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/proctitle
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
Source1:	%{modname}.ini
BuildRequires:	php-devel >= 3:5.2.1
BuildRequires:	dos2unix
Requires:	php(zend-abi) = %{php_zend_api}

%description
This extension allows changing the current process' name on Linux and *BSD
systems. This is useful when using pcntl_fork() to identify running processes
in process list

%prep

%setup -q -n %{modname}-%{version}
[ "../package.xml" != "/" ] && mv ../package.xml .

cp %{SOURCE1} %{inifile}

find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;

# strip away annoying ^M
find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --enable-%{modname}=shared,%{_prefix} \

%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/
install -m0644 %{inifile} %{buildroot}%{_sysconfdir}/php.d/%{inifile}

%files
%doc LICENSE README package*.xml
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6441 |21cr|php-radius-1.4.0-0.b1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname radius
%define soname %{modname}.so
%define inifile A13_%{modname}.ini

%define beta b1

Summary:	Radius client library for PHP
Name:		php-%{modname}
Version:	1.4.0
Release:	0.%{beta}.1
Group:		Development/PHP
License:	BSD
URL:		http://pecl.php.net/package/radius
Source0:	%{modname}-%{version}%{?beta}.tgz
Source1:	%{modname}.ini
BuildRequires:	php-devel
Epoch:		1
Requires:	php(zend-abi) = %{php_zend_api}

%description
This package is based on the libradius of FreeBSD, with some modifications and
extensions. This PECL provides full support for RADIUS authentication (RFC
2865) and RADIUS accounting (RFC 2866), works on Unix and on Windows. Its an
easy way to authenticate your users against the user-database of your OS (for
example against Windows Active-Directory via IAS). 

%prep

%setup -q -n %{modname}-%{version}%{?beta}

cp %{SOURCE1} %{inifile}

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m0644 %{inifile} %{buildroot}%{_sysconfdir}/php.d/%{inifile}
install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/

%files 
%doc examples CREDITS radius.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6442 |21cr|php-rap-0.9.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name rap 
%define fileversion 096

Summary:	RDF API for PHP
Name:		php-%{base_name}
Version:	0.9.6
Release:	13
License:	LGPL
Group:		Development/Other
URL:		http://www.wiwiss.fu-berlin.de/suhl/bizer/rdfapi
Source:		http://prdownloads.sourceforge.net/rdfapi-php/%{base_name}-v%{fileversion}.zip
Patch0:		%{name}-fhs.diff
Patch1:		%{name}-0.9.4.external-adodb.patch
Patch2:		%{name}-0.9.6.MoveNext.patch
Patch3:		%{name}-add.diff
Requires:	php-adodb
BuildArch:	noarch

%description
RAP is a software package for parsing, searching, manipulating, serializing and
serving RDF models.

Its features include:
* statement-centric methods for manipulating an RDF model as a set of RDF
  triples
* resource-centric methods for manipulating an RDF model as a set of resources
* ontology-centric methods for manipulating an RDF model through vocabulary
  specific methods
* integrated RDF/XML, N3 and N-TRIPLE and GRDDL parser
* integrated RDF/XML, N3 and N-TRIPLE serializer
* in-memory or database model storage
* support for the RDQL query language
* inference engine supporting RDF-Schema reasoning and some OWL entailments
* integrated RDF server providing similar functionality as the Joseki RDF
  server
* graphical user-interface for managing database-backed RDF models
* support for common vocabularies
* drawing graph visualizations

%prep

%setup -q -n rdfapi-php

for i in `find . -type d -name .svn`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%patch0 -p 1
%patch1 -p 1
%patch2 -p 1
%patch3 -p 0

find . -type f | perl -ne 'chomp; print "$_\n" if -T $_' | xargs perl -pi -e 'tr/\r//d'
rm -rf api/util/adodb

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
cp -pr api %{buildroot}%{_datadir}/%{name}
cp -pr netapi %{buildroot}%{_datadir}/%{name}
cp -pr test %{buildroot}%{_datadir}/%{name}
cp -pr tools %{buildroot}%{_datadir}/%{name}

install -d -m 755 %{buildroot}%{_sysconfdir}
mv %{buildroot}%{_datadir}/%{name}/netapi/config.inc \
    %{buildroot}%{_sysconfdir}/%{name}/netapi.conf
mv %{buildroot}%{_datadir}/%{name}/tools/rdfdb-utils/config.inc.php \
    %{buildroot}%{_sysconfdir}/%{name}/rdfdb-utils.conf
rm -f %{buildroot}%{_datadir}/%{name}/netapi/.htaccess
rm -f %{buildroot}%{_datadir}/%{name}/netapi/apache.htaccess

%files 
%doc doc/*
%{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6443 |21cr|php-rar-4.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname rar
%define soname %{modname}.so
%define inifile A75_%{modname}.ini

Summary:	RAR extension for PHP
Name:		php-%{modname}
Version:	4.2.0
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/rar/
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
Requires(pre): rpm-helper
Requires(postun): rpm-helper
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	file
Requires:	php(zend-abi) = %{php_zend_api}

%description
PHP extension for reading Rar archives using bundled unRAR library.

%prep

%setup -q -n %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

# fix permissions
find . -type f | xargs chmod 644

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%serverbuild
export CXXFLAGS="$CXXFLAGS -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make

%install
install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}/var/log/httpd

install -m0755 modules/%{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

%files
%doc package*.xml tests CREDITS example.php
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6444 |21cr|phpseclib-3.0.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PHP Secure Communications Library
Name:		phpseclib
Version:	3.0.16
Release:	1
Group:		Development/PHP
License:	LGPL
Url:		https://github.com/phpseclib/%{name}
Source:		https://github.com/phpseclib/phpseclib/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	unzip
BuildRequires:	dos2unix
BuildArch:	noarch

%description
Easy to use, easy to install, actively maintained and actively supported, 
phpseclib is the best way to utilize SSH, SFTP and RSA in PHP.

%files
%{_datadir}/%{name}

#-------------------------------------------------------------

%prep
%setup -c -q -n %{name}%{version}
# fixup
find . -type d | xargs chmod 755
find . -type f | xargs chmod 644
find . -type f | xargs dos2unix

%build

%install

install -d %{buildroot}%{_datadir}/%{name}
cp -aRf * %{buildroot}%{_datadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6445 |21cr|php-smarty2-2.6.28-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (oe) undefining these makes the build _real_ quick.
%undefine __find_provides
%undefine __find_requires

Summary:	The compiling PHP template engine
Name:		php-smarty2
Version:	2.6.28
Release:	6
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.smarty.net/
Source0:	http://www.smarty.net/distributions/Smarty-%{version}.tar.gz
Source1:	http://www.smarty.net/distributions/manual/en/Smarty-2.6.14-docs.tar.gz
Source2:	smarty.gif
Obsoletes:	php-smarty < 3.2
BuildArch:	noarch

%description
Smarty is a template engine for PHP.  More specifically, it
facilitates a manageable way to separate application logic and
content from its presentation.  This is best described in a
situation where the application programmer and the template
designer play different roles, or in most cases are not the same
person.  For example, let's say you are creating a web page that
is displaying a newspaper article.  The article headline, tagline,
author and body are content elements, they contain no information
about how they will be presented.  They are passed into Smarty by
the application, then the template designer edits the templates
and uses a combination of HTML tags and template tags to format
the presentation of these elements (HTML tables, background
colors, font sizes, style sheets, etc.) One day the programmer
needs to change the way the article content is retrieved (a change
in application logic.)  This change does not affect the template
designer, the content will still arrive in the template exactly
the same.  Likewise, if the template designer wants to completely
redesign the templates, this requires no changes to the
application logic.  Therefore, the programmer can make changes to
the application logic without the need to restructure templates,
and the template designer can make changes to templates without
breaking application logic.

%files
%doc BUGS COPYING.lib ChangeLog FAQ INSTALL NEWS README RELEASE_NOTES TODO
%{_datadir}/php/smarty
%{_var}/www/icons/smarty.gif

#----------------------------------------------------------------------------

%package doc
Summary:	The HTML manual for Smarty
Group:		Documentation

%description doc
The HTML manual for Smarty.

%files doc
%doc manual/*

#----------------------------------------------------------------------------

%prep
%setup -q -n Smarty-%{version} -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}/php/smarty
mkdir -p %{buildroot}%{_var}/www/icons

cp -aRf libs/* %{buildroot}%{_datadir}/php/smarty
install -m0644 %{SOURCE2} %{buildroot}/var/www/icons/smarty.gif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6446 |21cr|php-smarty-3.1.32-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The compiling PHP template engine
Name:		php-smarty
Version:	3.1.32
Release:	1
License:	LGPL
Group:		Development/Other
URL:		http://www.smarty.net/
Source0:	https://github.com/smarty-php/smarty/archive/v%{version}.tar.gz
BuildArch:	noarch
Buildrequires:	unzip

%description
Smarty is a template engine for PHP.  More specifically, it 
facilitates a manageable way to separate application logic and
content from its presentation.  This is best described in a
situation where the application programmer and the template 
designer play different roles, or in most cases are not the same
person.  For example, let's say you are creating a web page that
is displaying a newspaper article.  The article headline, tagline,
author and body are content elements, they contain no information
about how they will be presented.  They are passed into Smarty by
the application, then the template designer edits the templates
and uses a combination of HTML tags and template tags to format 
the presentation of these elements (HTML tables, background
colors, font sizes, style sheets, etc.) One day the programmer
needs to change the way the article content is retrieved (a change
in application logic.)  This change does not affect the template
designer, the content will still arrive in the template exactly
the same.  Likewise, if the template designer wants to completely
redesign the templates, this requires no changes to the
application logic.  Therefore, the programmer can make changes to
the application logic without the need to restructure templates,
and the template designer can make changes to templates without
breaking application logic. 

%prep
%setup -qn smarty-%{version}

%build

%install
install -d %{buildroot}%{_datadir}/php/smarty

cp -rp libs/* %{buildroot}%{_datadir}/php/smarty

# fix attribs
find %{buildroot}%{_datadir}/php/smarty -type d -exec chmod 755 {} \;
find %{buildroot}%{_datadir}/php/smarty -type f -exec chmod 644 {} \;

%files
%doc *.txt demo README
%{_datadir}/php/smarty

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6447 |21cr|php-spomky-labs-otphp-4.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Spec file for php-spomky-labs-otphp
#
# Copyright (c) 2013-2014 Remi Collet
# License: CC-BY-SA
# http://creativecommons.org/licenses/by-sa/3.0/
#
# Please, preserve the changelog entries
#
#%%global gh_commit    6a8aec204688d36681e0185fbaf1974b97e4a070
%global gh_short     %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner     spomky-labs
%global gh_project   spomky-labs-otphp
%global with_tests   %{?_without_tests:0}%{!?_without_tests:1}

Name:           php-%{gh_project}
Summary:        Generate One Time Passwords
Version:        4.0.2
Release:        3

URL:            https://github.com/%{gh_owner}/%{gh_project}
Source0:        https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}.tar.gz
License:        MIT
Group:          Development/PHP

BuildArch:      noarch
%if %{with_tests}
BuildRequires:  php >= 5.4
%endif

Provides:       php-composer(spomky-labs/otphp) = %{version}

# From composer.json
Requires:       php >= 5.4
Requires:       php-composer(christianriesen/base32)

%description
A php library for generating one time passwords according to RFC 4226
(HOTP Algorithm) and the RFC 6238 (TOTP Algorithm).

%prep
%setup -q -n %{gh_project}-%{?gh_commit:%{gh_commit}}%{!?gh_commit:%{version}}

%build
# nothing to build

%install
# Install as a PSR-0 library
mkdir -p %{buildroot}%{_datadir}/php/OTPHP/
cp -pr lib/* %{buildroot}%{_datadir}/php/OTPHP/.

%check

%files
%doc composer.json LICENCE README.md
%{_datadir}/php/OTPHP

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6448 |21cr|php-stribog-1.1.0-0.gitab2c0c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit ab2c0cb42d9fec5c4fe7913679d64ae883954912
%define commit_short %(echo %{commit} | head -c6)

Summary:	GOST R 34.11-2012 (Stribog) Hash Function Implementation for PHP
Name:		php-stribog
Version:	1.1.0
Release:	0.git%{commit_short}.1
License:	MIT
Group:		Development/PHP
Url:		https://github.com/sjinks/php-stribog
Source0:	https://github.com/sjinks/php-stribog/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	php-devel
Requires:	php-openssl

%description
GOST R 34.11-2012 (Stribog) Hash Function Implementation for PHP

Usage example:

Hash calculation:
$data = '012345678901234567890123456789012345678901234567890123456789012';
echo hash('stribog256', $data), PHP_EOL;
echo hash('stribog512', $data), PHP_EOL;
echo hash('stribog', $data), PHP_EOL;

HMAC calculation:

$data = 'Very secret data';
$key  = 'password';
echo hash_hmac('stribog', $data, $key);

%files
%license LICENSE*
%doc *.md
%{_libdir}/php/extensions/stribog.so
%config(noreplace) %{_sysconfdir}/php.d/22_stribog.ini

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
phpize
%configure
%make

%install
mkdir -p %{buildroot}%{_libdir}/php/extensions/
install -m755 ./modules/stribog.so %{buildroot}%{_libdir}/php/extensions/

# openssl is 21, load stribog after openssl
mkdir -p %{buildroot}%{_sysconfdir}/php.d/
echo "extension = stribog.so" > %{buildroot}%{_sysconfdir}/php.d/22_stribog.ini

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6449 |21cr|php-sysload-1.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname sysload
%define soname %{modname}.so
%define inifile B20_%{modname}.ini

Summary:	PHP Sysload extension
Name:		php-%{modname}
Version:	1.0.0
Release:	10
Group:		Development/PHP
License:	PHP
URL:		http://www.xarg.org/project/php-sysload/
Source0:	http://www.xarg.org/download/sysload-%{version}.tar.gz
Source1:	B20_sysload.ini
Patch0:		sysload-1.0.0-php54x.diff
BuildRequires:	php-devel >= 3:5.2.0
Requires:	php(zend-abi) = %{php_zend_api}

%description
PHP Sysload is a simple monitoring Extension for PHP backends behind a reverse
proxy server or for other tasks where you have a need to send a specified HTTP
header on overrun.

%prep

%setup -q -n %{modname}-%{version}
%patch0 -p0

cp %{SOURCE1} %{inifile}

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}
%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/
install -m0644 %{inifile} %{buildroot}%{_sysconfdir}/php.d/%{inifile}

%files
%doc CREDIT
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6450 |21cr|php-tcpdf-6.2.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude pear\\(.*\\)|php-cli|/usr/bin/php

%define base_name       tcpdf
%define version_        %(echo %{version} | tr . _)

Name:       php-%{base_name}
Version:    6.2.26
Release:    1
Summary:    PHP class for generating PDF documents
License:    GPLv3
Group:      Development/Other
URL:        http://www.tcpdf.org/
Source:     http://sourceforge.net/projects/tcpdf/files/TCPDF-%{version}.tar.gz
BuildArch:  noarch

%description
TCPDF is a FLOSS PHP class for generating PDF documents.

%prep
%setup -qn TCPDF-%{version}

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/php/tcpdf
cp -pr *.php   %{buildroot}%{_datadir}/php/tcpdf
cp -pr include %{buildroot}%{_datadir}/php/tcpdf
cp -pr fonts   %{buildroot}%{_datadir}/php/tcpdf
install -d -m 755 %{buildroot}%{_datadir}/php/tcpdf/images
install -m 644 examples/images/_blank.png \
    %{buildroot}%{_datadir}/php/tcpdf/images/

install -d -m 755 %{buildroot}%{_sysconfdir}/tcpdf
install -m 644 config/*.php %{buildroot}%{_sysconfdir}/tcpdf

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 tools/tcpdf_addfont.php \
           %{buildroot}%{_bindir}/tcpdf_addfont

%files
%doc CHANGELOG.TXT LICENSE.TXT README.md examples
%{_datadir}/php/tcpdf
%{_bindir}/tcpdf_addfont
%dir %{_sysconfdir}/tcpdf
%config(noreplace) %{_sysconfdir}/tcpdf/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6451 |21cr|php-tcpwrap-1.1.3-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname tcpwrap
%define soname %{modname}.so
%define inifile A24_%{modname}.ini

Summary:	Tcpwrappers bindings for PHP
Name:		php-%{modname}
Version:	1.1.3
Release:	25
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/tcpwrap
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
Source1:	%{modname}.ini
Patch0:		tcpwrap-1.1.3-php54x.diff
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	tcp_wrappers-devel
Requires:	tcp_wrappers
Epoch:		1
Requires:	php(zend-abi) = %{php_zend_api}

%description
This package handles /etc/hosts.allow and /etc/hosts.deny files.

%prep

%setup -q -n %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

%patch0 -p0

cp %{SOURCE1} %{inifile}

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

cat > README.%{modname} << EOF
The %{name} package contains a dynamic shared object (DSO) for PHP. 
EOF

install -m0644 %{inifile} %{buildroot}%{_sysconfdir}/php.d/%{inifile}
install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/

%files
%doc README* package*.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6452 |21cr|php-uploadprogress-2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname uploadprogress
%define soname %{modname}.so
%define inifile A78_%{modname}.ini

Summary:	Uploadprogress extension
Name:		php-%{modname}
Version:	2.0.2
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/uploadprogress/
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
Requires(pre):	rpm-helper
Requires(postun): rpm-helper
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	file
Requires:	php(zend-abi) = %{php_zend_api}

%description
An extension to track progress of a file upload.

%prep

%setup -q -n %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

# fix permissions
find . -type f | xargs chmod 644

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

# lib64 fix
perl -p -i -e "s|/lib\b|/%{_lib}|g" *.m4

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make

%install
install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}%{_libdir}/php/extensions

install -m0755 modules/%{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}

[%{modname}]
EOF

%files
%doc package*.xml examples
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6453 |21cr|php-vld-0.17.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname vld
%define soname %{modname}.so
%define inifile 98_%{modname}.ini

Summary:	Provides functionality to dump the internal representation of PHP scripts
Name:		php-%{modname}
Version:	0.17.2
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/vld
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	file
Requires:	php(zend-abi) = %{php_zend_api}

%description
The Vulcan Logic Disassembler hooks into the Zend Engine and dumps all the
opcodes (execution units) of a script.

%prep

%setup -q -n %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

# fix permissions
find . -type f | xargs chmod 644

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make

%install
install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}/var/log/httpd

install -m0755 modules/%{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}

[vld]
vld.active = 0
vld.execute = 1
vld.skip_append = 0
vld.skip_prepend = 0
vld.verbosity = 1
EOF

%files
%doc package*.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6454 |21cr|php-xattr-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname xattr
%define soname %{modname}.so
%define inifile A27_%{modname}.ini

Summary:	Provides a interface to Extended attributes for PHP
Name:		php-%{modname}
Version:	1.3.0
Release:	1
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/xattr
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	attr-devel
Epoch:		1
Requires:	php(zend-abi) = %{php_zend_api}

%description
This package allows to manipulate extended attributes on filesystems that
support them. Requires libattr from Linux XFS project.

%prep

%setup -q -n xattr-%{version}
[ "../package.xml" != "/" ] && mv ../package.xml .

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}

%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

%files
%doc tests CREDITS package.xml
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6455 |21cr|php-xdiff-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname xdiff
%define soname %{modname}.so
%define inifile A64_%{modname}.ini

Summary:	File differences/patches
Name:		php-%{modname}
Version:	2.1.0
Release:	2
Group:		Development/PHP
License:	PHP License
URL:		http://pecl.php.net/package/xdiff
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
Requires:	php-bz2
BuildRequires:	php-devel >= 3:5.2.0
BuildRequires:	file
BuildRequires:	libxdiff-devel
Requires:	php(zend-abi) = %{php_zend_api}

%description
This extension creates and applies patches to both text and binary files.

%prep

%setup -q -n %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

# fix permissions
find . -type f | xargs chmod 644

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" config.m4

%build
%serverbuild

phpize
%configure --with-libdir=%{_lib} \
    --with-%{modname}=shared,%{_prefix}
%make

%install

install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}%{_libdir}/php/extensions

install -m0755 modules/%{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

%files
%doc CREDITS README.API package*.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6456 |21cr|php-ZendFramework2-2.4.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define php_name ZendFramework

Summary:	Zend Framework 2
Name:		php-ZendFramework2
Version:	2.4.13
Release:	2
License:	BSD
Group:		Development/PHP
URL:		http://framework.zend.com/
Source0:	https://packages.zendframework.com/releases/%{php_name}-%{version}/%{php_name}-%{version}.tgz
Requires:	php
Requires:	php-bcmath
Requires:	php-ctype
Requires:	php-curl
Requires:	php-dom
Requires:	php-fileinfo
Requires:	php-iconv
Requires:	php-json
Requires:	php-pcre
Requires:	php-pdo
Requires:	php-posix
Requires:	php-session
Requires:	php-simplexml
Requires:	php-xml
Requires:	php-zlib
Obsoletes:	php-ZendFramework < 2.0
## Let's add the obsoletes that have no specific place
Obsoletes:	php-ZendFramework-Dojo < 2.0
Obsoletes:	php-ZendFramework-Gdata < 2.0
Obsoletes:	php-ZendFramework-Pdf < 2.0
Obsoletes:	php-ZendFramework-Search-Lucene < 2.0
Obsoletes:	php-ZendFramework-Services < 2.0
Obsoletes:	php-ZendFramework-demos < 2.0
Obsoletes:	php-ZendFramework-extras < 2.0
AutoReqProv:	no
BuildArch:	noarch

%description
Zend Framework 2 is an open source framework for developing web applications
and services using PHP 5.3+. Zend Framework 2 uses 100% object-oriented code
and utilizes most of the new features of PHP 5.3, namely namespaces, late
static binding, lambda functions and closures.

%package  Authentication
Summary:  Zend Framework 2: Authentication Component
Requires: %{name} = %{version}-%{release}
Requires: php-ctype
Requires: php-pcre

%description Authentication
The Zend\Authentication component provides an API for authentication and
includes concrete authentication adapters for common use case scenarios.

Zend\Authentication is concerned only with authentication and not with
authorization. Authentication is loosely defined as determining whether
an entity actually is what it purports to be (i.e., identification),
based on some set of credentials. Authorization, the process of deciding
whether to allow an entity access to, or to perform operations upon, other
entities is outside the scope of Zend\Authentication. For more information
about authorization and access control with Zend Framework, please see the
Zend\Permissions\Acl or Zend\Permissions\Rbac component.

%package  Barcode
Summary:  Zend Framework 2: Barcode Component
Requires: %{name} = %{version}-%{release}
Requires: php-dom
Requires: php-gd
Requires: php-iconv
Requires: php-pcre

%description Barcode
Zend\Barcode\Barcode provides a generic way to generate barcodes. The
Zend\Barcode component is divided into two subcomponents: barcode objects
and renderers. Objects allow you to create barcodes independently of the
renderer. Renderer allow you to draw barcodes based on the support required.

%package  Cache
Summary:  Zend Framework 2: Cache Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre
Obsoletes: php-ZendFramework-Cache-Backend-Apc < 2.4.13
Obsoletes: php-ZendFramework-Cache-Backend-Memcached < 2.4.13

%description Cache
Optional:
* APC (php-pecl-apc)
* DBA (php-dba)
* Memcache (php-pecl-memcache)
* Memcached (php-pecl-memcached)
* Redis (php-pecl-redis)
* XCache (php-xcache)

%package  Captcha
Summary:  Zend Framework 2: CAPTCHA Component
Requires: %{name} = %{version}-%{release}
Requires: php-gd
Obsoletes: php-ZendFramework-Captcha < 2.4.13

%description Captcha
CAPTCHA stands for "Completely Automated Public Turing test to tell Computers
and Humans Apart"; it is used as a challenge-response to ensure that the
individual submitting information is a human and not an automated process.
Typically, a CAPTCHA is used with form submissions where authenticated users
are not necessary, but you want to prevent spam submissions.

CAPTCHAs can take a variety of forms, including asking logic questions,
presenting skewed fonts, and presenting multiple images and asking how they
relate. The Zend\Captcha component aims to provide a variety of back ends
that may be utilized either standalone or in conjunction with the Zend\Form
component.

%package  Code
Summary:  Zend Framework 2: Code Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre
Requires: php-tokenizer

%description Code
Provides facilities to generate arbitrary code using an object oriented
interface.

%package  Config
Summary:  Zend Framework 2: Config Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre
Requires: php-xmlreader
Requires: php-xmlwriter

%description Config
Zend\Config is designed to simplify access to configuration data within
applications. It provides a nested object property-based user interface
for accessing this configuration data within application code. The
configuration data may come from a variety of media supporting hierarchical
data storage. Currently, Zend\Config provides adapters that read and write
configuration data stored in .ini, JSON, YAML and XML files.

%package  Console
Summary:  Zend Framework 2: Console Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre
Requires: php-xml

%description Console
Zend Framework 2 features built-in console support.

When a Zend\Application is run from a console window (a shell window), it will
recognize this fact and prepare Zend\Mvc components to handle the request.
Console support is enabled by default, but to function properly it requires at
least one console route and one action controller to handle the request.

* Console routing allows you to invoke controllers and action depending on
  command line parameters provided by the user.
* Module Manager integration allows ZF2 applications and modules to display
  help and usage information, in case the command line has not been understood
  (no route matched).
* Console-aware action controllers will receive a console request containing
  all named parameters and flags. They are able to send output back to the
  console window.
* Console adapters provide a level of abstraction for interacting with console
  on different operating systems.
* Console prompts can be used to interact with the user by asking him questions
  and retrieving input.

%package  Crypt
Summary:  Zend Framework 2: Crypt Component
Requires: %{name} = %{version}-%{release}
Requires: php-openssl
Requires: php-pcre

%description Crypt
Zend\Crypt provides support of some cryptographic tools. The available
features are:

* encrypt-then-authenticate using symmetric ciphers (the authentication step is
  provided using HMAC)
* encrypt/decrypt using symmetric and public key algorithm (e.g. RSA algorithm)
* generate digital sign using public key algorithm (e.g. RSA algorithm)
* key exchange using the Diffie-Hellman method
* Key derivation function (e.g. using PBKDF2 algorithm)
* Secure password hash (e.g. using Bcrypt algorithm)
* generate Hash values
* generate HMAC values

The main scope of this component is to offer an easy and secure way to protect
and authenticate sensitive data in PHP. Because the use of cryptography is not
so easy we recommend to use the Zend\Crypt component only if you have a minimum
background on this topic.

%package  Db
Summary:  Zend Framework 2: DB Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre
Requires: php-pdo

%description Db
Optional:
* ibm_db2 (http://pecl.php.net/package/ibm_db2)
* mysqli (php-mysql)
* oci8 (http://pecl.php.net/package/oci8)
* pgsql (php-pgsql)
* sqlsrv (http://pecl.php.net/package/sqlsrv)

%package  Debug
Summary:  Zend Framework 2: Debug Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre

%description Debug
Optional: XDebug (php-pecl-xdebug)

%package  Di
Summary:  Zend Framework 2: DI Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre

%description Di
Dependency Injection (here-in called DI) is a concept that has been talked
about in numerous places over the web. Simply put, we’ll explain the act of
injecting dependencies simply with this below code:

$b = new MovieLister(new MovieFinder());

Above, MovieFinder is a dependency of MovieLister, and MovieFinder was
injected into MovieLister.

%package  Dom
Summary:  Zend Framework 2: DOM Component
Requires: %{name} = %{version}-%{release}
Requires: php-dom
Requires: php-pcre

%description Dom
The Zend\Dom component provides tools for working with DOM documents and
structures. Currently, we offer Zend\Dom\Query, which provides a unified
interface for querying DOM documents utilizing both XPath and CSS selectors.

%package  Escaper
Summary:  Zend Framework 2: Escaper Component
Requires: %{name} = %{version}-%{release}
Requires: php-ctype
Requires: php-iconv
Requires: php-mbstring
Requires: php-pcre

%description Escaper
The OWASP Top 10 web security risks study lists Cross-Site Scripting (XSS)
in second place. PHP’s sole functionality against XSS is limited to two
functions of which one is commonly misapplied. Thus, the Zend\Escaper component
was written. It offers developers a way to escape output and defend from XSS
and related vulnerabilities by introducing contextual escaping based on
peer-reviewed rules.

%package  EventManager
Summary:  Zend Framework 2: EventManager Component
Requires: %{name} = %{version}-%{release}

%description EventManager
The EventManager is a component designed for the following use cases:

* Implementing simple subject/observer patterns.
* Implementing Aspect-Oriented designs.
* Implementing event-driven architectures.

The basic architecture allows you to attach and detach listeners to named
events, both on a per-instance basis as well as via shared collections;
trigger events; and interrupt execution of listeners.

%package  Feed
Summary:  Zend Framework 2: Feed Component
Requires: %{name} = %{version}-%{release}
Requires: php-ctype
Requires: php-dom
Requires: php-pcre
Requires: php-tidy
Obsoletes: php-ZendFramework-Feed < 2.4.13

%description Feed
Zend\Feed provides functionality for consuming RSS and Atom feeds. It provides
a natural syntax for accessing elements of feeds, feed attributes, and entry
attributes. Zend\Feed also has extensive support for modifying feed and entry
structure with the same natural syntax, and turning the result back into XML.
In the future, this modification support could provide support for the Atom
Publishing Protocol.

Zend\Feed consists of Zend\Feed\Reader for reading RSS and Atom feeds,
Zend\Feed\Writer for writing RSS and Atom feeds, and Zend\Feed\PubSubHubbub
for working with Hub servers. Furthermore, both Zend\Feed\Reader and
Zend\Feed\Writer support extensions which allows for working with additional
data in feeds, not covered in the core API but used in conjunction with RSS
and Atom feeds.

%package  File
Summary:  Zend Framework 2: File Component
Requires: %{name} = %{version}-%{release}
Requires: php-fileinfo
Requires: php-pcre
Requires: php-tokenizer

%description File
%{summary}

%package  Filter
Summary:  Zend Framework 2: Filter Component
Requires: %{name} = %{version}-%{release}
Requires: php-bz2
Requires: php-iconv
Requires: php-mbstring
Requires: php-openssl
Requires: php-pcre
Requires: php-zip
Requires: php-zlib

%description Filter
The Zend\Filter component provides a set of commonly needed data filters.
It also provides a simple filter chaining mechanism by which multiple filters
may be applied to a single datum in a user-defined order.

%package  Form
Summary:  Zend Framework 2: Form Component
Requires: %{name} = %{version}-%{release}
Requires: php-intl
Requires: php-pcre

%description Form
Zend\Form is intended primarily as a bridge between your domain models and the
View Layer. It composes a thin layer of objects representing form elements, an
InputFilter, and a small number of methods for binding data to and from the
form and attached objects.

The Zend\Form component consists of the following objects:

* Elements, which simply consist of a name and attributes.
* Fieldsets, which extend from Elements, but allow composing other fieldsets
  and elements.
* Forms, which extend from Fieldsets (and thus Elements). They provide data
  and object binding, and compose InputFilters. Data binding is done via
  ZendStdlibHydrator.

%package  Http
Summary:  Zend Framework 2: HTTP Component
Requires: %{name} = %{version}-%{release}
Requires: php-ctype
Requires: php-curl
Requires: php-fileinfo
Requires: php-openssl
Requires: php-pcre
Requires: php-zlib

%description Http
Zend\Http is a primary foundational component of Zend Framework. Since much
of what PHP does is web-based, specifically HTTP, it makes sense to have a
performant, extensible, concise and consistent API to do all things HTTP.
In nutshell, there are several parts of Zend\Http:

* Context-less Request and Response classes that expose a fluent API for
  introspecting several aspects of HTTP messages:
  ** Request line information and response status information
  ** Parameters, such as those found in POST and GET
  ** Message Body
  ** Headers
* A Client implementation with various adapters that allow for sending requests
  and introspecting responses.

%package  I18n
Summary:  Zend Framework 2: i18n Component
Requires: %{name} = %{version}-%{release}
Requires: php-ctype
Requires: php-pcre

%description I18n
ZendI18n comes with a complete translation suite which supports all major
formats and includes popular features like plural translations and text
domains. The Translator component is mostly dependency free, except for
the fallback to a default locale, where it relies on the Intl PHP extension.

The translator itself is initialized without any parameters, as any
configuration to it is optional. A translator without any translations
will actually do nothing but just return the given message IDs.

%package  InputFilter
Summary:  Zend Framework 2: InputFilter Component
Requires: %{name} = %{version}-%{release}

%description InputFilter
The Zend\InputFilter component can be used to filter and validate generic sets
of input data. For instance, you could use it to filter $_GET or $_POST values,
CLI arguments, etc.

%package  Json
Summary:  Zend Framework 2: JSON Component
Requires: %{name} = %{version}-%{release}
Requires: php-json
Requires: php-mbstring
Requires: php-pcre

%description Json
Zend\Json provides convenience methods for serializing native PHP to JSON
and decoding JSON to native PHP.

JSON, JavaScript Object Notation, can be used for data interchange between
JavaScript and other languages. Since JSON can be directly evaluated by
JavaScript, it is a more efficient and lightweight format than XML for
exchanging data with JavaScript clients.

In addition, Zend\Json provides a useful way to convert any arbitrary XML
formatted string into a JSON formatted string. This built-in feature will
enable PHP developers to transform the enterprise data encoded in XML format
into JSON format before sending it to browser-based Ajax client applications.
It provides an easy way to do dynamic data conversion on the server-side code
thereby avoiding unnecessary XML parsing in the browser-side applications. It
offers a nice utility function that results in easier application-specific
data processing techniques.

%package  Ldap
Summary:  Zend Framework 2: LDAP Component
Requires: %{name} = %{version}-%{release}
Requires: php-iconv
Requires: php-json
Requires: php-ldap
Requires: php-mbstring
Requires: php-pcre

%description Ldap
Zend\Ldap\Ldap is a class for performing LDAP operations including but not
limited to binding, searching and modifying entries in an LDAP directory.

%package  Loader
Summary:  Zend Framework 2: Loader Component
Requires: %{name} = %{version}-%{release}
Requires: php-bz2
Requires: php-pcre

%description Loader
%{summary}

%package  Log
Summary:  Zend Framework 2: Log Component
Requires: %{name} = %{version}-%{release}
Requires: php-dom
Requires: php-json
Requires: php-pcre

%description Log
Zend\Log\Logger is a component for general purpose logging. It supports
multiple log backends, formatting messages sent to the log, and filtering
messages from being logged. These functions are divided into the following
objects:

* A Logger (instance of Zend\Log\Logger) is the object that your application
  uses the most. You can have as many Logger objects as you like; they do not
  interact. A Logger object must contain at least one Writer, and can
  optionally contain one or more Filters.
* A Writer (inherits from Zend\Log\Writer\AbstractWriter) is responsible for
  saving data to storage.
* A Filter (implements Zend\Log\Filter\FilterInterface) blocks log data from
  being saved. A filter is applied to an individual writer. Filters can be
  chained.
* A Formatter (implements Zend\Log\Formatter\FormatterInterface) can format the
  log data before it is written by a Writer. Each Writer has exactly one
  Formatter.

Optional: MongoDB (php-pecl-mongo)

%package  Mail
Summary:  Zend Framework 2: Mail Component
Requires: %{name} = %{version}-%{release}
Requires: php-ctype
Requires: php-iconv
Requires: php-pcre

%description Mail
Zend\Mail provides generalized functionality to compose and send both text
and MIME-compliant multipart email messages. Mail can be sent with Zend\Mail
via the Mail\Transport\Sendmail, Mail\Transport\Smtp or the Mail\Transport\File
transport. Of course, you can also implement your own transport by implementing
the Mail\Transport\TransportInterface.

%package  Math
Summary:  Zend Framework 2: Math Component
Requires: %{name} = %{version}-%{release}
Requires: php-bcmath
Requires: php-gmp
Requires: php-openssl
Requires: php-pcre

%description Math
Zend\Math namespace provides general mathematical functions. So far the
supported functionalities are:

* Zend\Math\Rand: A random number generator
* Zend\Math\BigInteger: A library to manage big integers

%package  Memory
Summary:  Zend Framework 2: Memory Component
Requires: %{name} = %{version}-%{release}

%description Memory
%{summary}

%package  Mime
Summary:  Zend Framework 2: MIME Component
Requires: %{name} = %{version}-%{release}
Requires: php-iconv
Requires: php-pcre

%description Mime
Zend\Mime\Mime is a support class for handling multipart MIME messages. It
is used by Zend\Mail and Zend\Mime\Message and may be used by applications
requiring MIME support.

Optional: %{name}-Mail

%package  ModuleManager
Summary:  Zend Framework 2: ModuleManager Component
Requires: %{name} = %{version}-%{release}

%description ModuleManager
Zend Framework 2.0 introduces a new and powerful approach to modules. This new
module system is designed with flexibility, simplicity, and re-usability in
mind. A module may contain just about anything: PHP code, including MVC
functionality; library code; view scripts; and/or public assets such as images,
CSS, and JavaScript.

%package  Mvc
Summary:  Zend Framework 2: MVC Component
Requires: %{name} = %{version}-%{release}
Requires: php-intl
Requires: php-pcre

%description Mvc
Zend\Mvc is a brand new MVC implementation designed from the ground up for
Zend Framework 2, focusing on performance and flexibility.

The MVC layer is built on top of the following components:

* Zend\ServiceManager - Zend Framework provides a set of default service
  definitions set up at Zend\Mvc\Service. The ServiceManager creates and
  configures your application instance and workflow.
* Zend\EventManager - The MVC is event driven. This component is used
  everywhere from initial bootstrapping of the application, through returning
  response and request calls, to setting and retrieving routes and matched
  routes, as well as render views.
* Zend\Http - specifically the request and response objects.
* Zend\Stdlib\DispatchableInterface. All "controllers" are simply dispatchable
  objects.

%package  Navigation
Summary:  Zend Framework 2: Navigation Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre

%description Navigation
Zend\Navigation is a component for managing trees of pointers to web pages.
Simply put: It can be used for creating menus, breadcrumbs, links, and
sitemaps, or serve as a model for other navigation related purposes.

%package  Paginator
Summary:  Zend Framework 2: Paginator Component
Requires: %{name} = %{version}-%{release}

%description Paginator
Zend\Paginator is a flexible component for paginating collections of data and
presenting that data to users.

The primary design goals of Zend\Paginator are as follows:

* Paginate arbitrary data, not just relational databases
* Fetch only the results that need to be displayed
* Do not force users to adhere to only one way of displaying data or rendering
  pagination controls
* Loosely couple Zend\Paginator to other Zend Framework components so that
  users who wish to use it independently of Zend\View, Zend\Db, etc. can do so

%package  Permissions-Acl
Summary:  Zend Framework 2: Permissions ACL Component
Requires: %{name} = %{version}-%{release}

%description Permissions-Acl
The Zend\Permissions\Acl component provides a lightweight and flexible access
control list (ACL) implementation for privileges management. In general, an
application may utilize such ACL‘s to control access to certain protected
objects by other requesting objects.

For the purposes of this documentation:

* a resource is an object to which access is controlled.
* a role is an object that may request access to a Resource.

Put simply, roles request access to resources. For example, if a parking
attendant requests access to a car, then the parking attendant is the
requesting role, and the car is the resource, since access to the car may not
be granted to everyone.

Through the specification and use of an ACL, an application may control how
roles are granted access to resources.

%package  Permissions-Rbac
Summary:  Zend Framework 2: Permissions RBAC Component
Requires: %{name} = %{version}-%{release}

%description Permissions-Rbac
The Zend\Permissions\Rbac component provides a lightweight role-based access
control implementation based around PHP 5.3’s SPL RecursiveIterator and
RecursiveIteratorIterator. RBAC differs from access control lists (ACL) by
putting the emphasis on roles and their permissions rather than objects
(resources).

%package  ProgressBar
Summary:  Zend Framework 2: ProgressBar Component
Requires: %{name} = %{version}-%{release}
#     uploadprogress
Requires: php-pcre

%description ProgressBar
Zend\ProgressBar is a component to create and update progress bars in different
environments. It consists of a single backend, which outputs the progress
through one of the multiple adapters. On every update, it takes an absolute
value and optionally a status message, and then calls the adapter with some
precalculated values like percentage and estimated time left.

%package  Serializer
Summary:  Zend Framework 2: Serializer Component
Requires: %{name} = %{version}-%{release}
Requires: php-dom
Requires: php-pcre
Requires: php-simplexml

%description Serializer
The Zend\Serializer component provides an adapter based interface to simply
generate storable representation of PHP types by different facilities, and
recover.

Optional: msgpack (php-pecl-msgpack)

%package  Server
Summary:  Zend Framework 2: Server Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre

%description Server
The Zend\Server family of classes provides functionality for the various server
classes, including Zend\XmlRpc\Server and Zend\Json\Server. Zend\Server\Server
provides an interface that mimics PHP 5 SoapServer class; all server classes
should implement this interface in order to provide a standard server API.

The Zend\Server\Reflection tree provides a standard mechanism for performing
function and class introspection for use as callbacks with the server classes,
and provides data suitable for use with Zend\Server\Server‘s getFunctions()
and loadFunctions() methods.

%package  ServiceManager
Summary:  Zend Framework 2: ServiceManager Component
Requires: %{name} = %{version}-%{release}

%description ServiceManager
The Service Locator design pattern is implemented by the Zend\ServiceManager
component. The Service Locator is a service/object locator, tasked with
retrieving other objects.

%package  Session
Summary:  Zend Framework 2: Session Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre
Requires: php-session

%description Session
Manage and preserve session data, a logical complement of cookie data, across
multiple page requests by the same client.

Optional: MongoDB (php-pecl-mongo)

%package  Soap
Summary:  Zend Framework 2: SOAP Component
Requires: %{name} = %{version}-%{release}
Requires: php-curl
Requires: php-dom
Requires: php-pcre
Requires: php-simplexml
Requires: php-soap

%description Soap
%{summary}

%package  Stdlib
Summary:  Zend Framework 2: Stdlib Component
Requires: %{name} = %{version}-%{release}
Requires: php-iconv
Requires: php-intl
Requires: php-json
Requires: php-mbstring
Requires: php-pcre

%description Stdlib
%{summary}

%package  Tag
Summary:  Zend Framework 2: Tag Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre

%description Tag
Zend\Tag is a component suite which provides a facility to work with taggable
Items. As its base, it provides two classes to work with Tags, Zend\Tag\Item
and Zend\Tag\ItemList. Additionally, it comes with the interface
Zend\Tag\TaggableInterface, which allows you to use any of your models as a
taggable item in conjunction with Zend\Tag.

Zend\Tag\Item is a basic taggable item implementation which comes with the
essential functionality required to work with the Zend\Tag suite. A taggable
item always consists of a title and a relative weight (e.g. number of
occurrences). It also stores parameters which are used by the different
sub-components of Zend\Tag.

To group multiple items together, Zend\Tag\ItemList exists as an array iterator
and provides additional functionality to calculate absolute weight values based
on the given relative weights of each item in it.

%package  Test
Summary:  Zend Framework 2: Test Component
Requires: %{name} = %{version}-%{release}
Requires: php-pear-PHPUnit >= 3.7.0
Requires: php-pcre
Obsoletes: php-ZendFramework-tests < 2.4.13

%description Test
The Zend\Test component provides tools to facilitate unit testing of your Zend
Framework applications. At this time, we offer facilities to enable testing of
your Zend Framework MVC applications.

PHPUnit is the only library supported currently.

%package  Text
Summary:  Zend Framework 2: Text Component
Requires: %{name} = %{version}-%{release}
Requires: php-ctype
Requires: php-pcre

%description Text
%{summary}

%package  Uri
Summary:  Zend Framework 2: URI Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre

%description Uri
Zend\Uri is a component that aids in manipulating and validating Uniform
Resource Identifiers (URIs) [1]. Zend\Uri exists primarily to service other
components, such as Zend\Http\, but is also useful as a standalone utility.

URIs always begin with a scheme, followed by a colon. The construction of the
many different schemes varies significantly. The Zend\Uri component provides
the Zend\Uri\UriFactory that returns a class implementing the
Zend\Uri\UriInterface which specializes in the scheme if such a class is
registered with the Factory.

[1] http://www.ietf.org/rfc/rfc3986.txt

%package  Validator
Summary:  Zend Framework 2: Validator Component
Requires: %{name} = %{version}-%{release}
Requires: php-ctype
Requires: php-fileinfo
Requires: php-pcre

%description Validator
The Zend\Validator component provides a set of commonly needed validators.
It also provides a simple validator chaining mechanism by which multiple
validators may be applied to a single datum in a user-defined order.

%package  Version
Summary:  Zend Framework 2: Version Component
Requires: %{name} = %{version}-%{release}
Requires: php-pcre

%description Version
Zend\Version provides a class constant Zend\Version\Version::VERSION that
contains a string identifying the version number of your Zend Framework
installation. Zend\Version\Version::VERSION might contain "1.7.4", for
example.

The static method Zend\Version\Version::compareVersion($version) is based on
the PHP function version_compare(). This method returns -1 if the specified
version is older than the installed Zend Framework version, 0 if they are the
same and +1 if the specified version is newer than the version of the Zend
Framework installation.

%package  View
Summary:  Zend Framework 2: View Component
Requires: %{name} = %{version}-%{release}
Requires: php-dom
Requires: php-filter
Requires: php-pcre

%description View
Zend\View provides the "View" layer of Zend Framework 2’s MVC system. It
is a multi-tiered system allowing a variety of mechanisms for extension,
substitution, and more.

%package  XmlRpc
Summary:  Zend Framework 2: XML-RPC Component
Requires: %{name} = %{version}-%{release}
Requires: php-dom
Requires: php-iconv
Requires: php-pcre
Requires: php-simplexml
Requires: php-xmlwriter

%description XmlRpc
From its home page, XML-RPC is described as a "...remote procedure calling
using HTTP as the transport and XML as the encoding. XML-RPC is designed to
be as simple as possible, while allowing complex data structures to be
transmitted, processed and returned."

Zend Framework provides support for both consuming remote XML-RPC services
and building new XML-RPC servers.

[1] http://www.xmlrpc.com/

%package  ZendXml
Summary:  Zend Framework 2: XML usage, best practices, and security in PHP
Requires: %{name} = %{version}-%{release}
Requires: php-dom
Requires: php-simplexml

%description ZendXml
This is a security component to prevent XML eXternal Entity (XXE) and
XML Entity Expansion (XEE) attacks on XML documents.

The XXE attack is prevented disabling the load of external entities in
the libxml library used by PHP, using the function
libxml_disable_entity_loader.

The XEE attack is prevented looking inside the XML document for ENTITY usage.
If the XML document uses ENTITY the library throw an Exception.

%prep
%setup -q -n ZendFramework-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/php
cp -pr -pr library/* %{buildroot}%{_datadir}/php
find %{buildroot}%{_datadir}/php/Zend/ -name composer.json -delete
find %{buildroot}%{_datadir}/php/Zend/ -name "*.md" -delete

%files
%doc LICENSE.txt
%doc *.md composer.json
%dir %{_datadir}/php/Zend

%files Authentication
%doc library/Zend/Authentication/*.md
%doc library/Zend/Authentication/composer.json
%{_datadir}/php/Zend/Authentication

%files Barcode
%doc library/Zend/Barcode/*.md
%doc library/Zend/Barcode/composer.json
%{_datadir}/php/Zend/Barcode

%files Cache
%doc library/Zend/Cache/*.md
%doc library/Zend/Cache/composer.json
%{_datadir}/php/Zend/Cache

%files Captcha
%doc library/Zend/Captcha/*.md
%doc library/Zend/Captcha/composer.json
%{_datadir}/php/Zend/Captcha

%files Code
%doc library/Zend/Code/*.md
%doc library/Zend/Code/composer.json
%{_datadir}/php/Zend/Code

%files Config
%doc library/Zend/Config/*.md
%doc library/Zend/Config/composer.json
%{_datadir}/php/Zend/Config

%files Console
%doc library/Zend/Console/*.md
%doc library/Zend/Console/composer.json
%{_datadir}/php/Zend/Console

%files Crypt
%doc library/Zend/Crypt/*.md
%doc library/Zend/Crypt/composer.json
%{_datadir}/php/Zend/Crypt

%files Db
%doc library/Zend/Db/*.md
%doc library/Zend/Db/composer.json
%{_datadir}/php/Zend/Db

%files Debug
%doc library/Zend/Debug/*.md
%doc library/Zend/Debug/composer.json
%{_datadir}/php/Zend/Debug

%files Di
%doc library/Zend/Di/*.md
%doc library/Zend/Di/composer.json

%{_datadir}/php/Zend/Di

%files Dom
%doc library/Zend/Dom/*.md
%doc library/Zend/Dom/composer.json
%{_datadir}/php/Zend/Dom

%files Escaper
%doc library/Zend/Escaper/*.md
%doc library/Zend/Escaper/composer.json
%{_datadir}/php/Zend/Escaper

%files EventManager
%doc library/Zend/EventManager/*.md
%doc library/Zend/EventManager/composer.json
%{_datadir}/php/Zend/EventManager

%files Feed
%doc library/Zend/Feed/*.md
%doc library/Zend/Feed/composer.json
%{_datadir}/php/Zend/Feed

%files File
%doc library/Zend/File/*.md
%doc library/Zend/File/composer.json
%{_datadir}/php/Zend/File

%files Filter
%doc library/Zend/Filter/*.md
%doc library/Zend/Filter/composer.json
%{_datadir}/php/Zend/Filter

%files Form
%doc library/Zend/Form/*.md
%doc library/Zend/Form/composer.json
%{_datadir}/php/Zend/Form

%files Http
%doc library/Zend/Http/*.md
%doc library/Zend/Http/composer.json
%{_datadir}/php/Zend/Http

%files I18n
%doc library/Zend/I18n/*.md
%doc library/Zend/I18n/composer.json
%{_datadir}/php/Zend/I18n

%files InputFilter
%doc library/Zend/InputFilter/*.md
%doc library/Zend/InputFilter/composer.json
%{_datadir}/php/Zend/InputFilter


%files Json
%doc library/Zend/Json/*.md
%doc library/Zend/Json/composer.json
%{_datadir}/php/Zend/Json

%files Ldap
%doc library/Zend/Ldap/*.md
%doc library/Zend/Ldap/composer.json
%{_datadir}/php/Zend/Ldap

%files Loader
%doc library/Zend/Loader/*.md
%doc library/Zend/Loader/composer.json
%{_datadir}/php/Zend/Loader

%files Log
%doc library/Zend/Log/*.md
%doc library/Zend/Log/composer.json
%{_datadir}/php/Zend/Log

%files Mail
%doc library/Zend/Mail/*.md
%doc library/Zend/Mail/composer.json
%{_datadir}/php/Zend/Mail

%files Math
%doc library/Zend/Math/*.md
%doc library/Zend/Math/composer.json
%{_datadir}/php/Zend/Math

%files Memory
%doc library/Zend/Memory/*.md
%doc library/Zend/Memory/composer.json
%{_datadir}/php/Zend/Memory

%files Mime
%doc library/Zend/Mime/*.md
%doc library/Zend/Mime/composer.json
%{_datadir}/php/Zend/Mime

%files ModuleManager
%doc library/Zend/ModuleManager/*.md
%doc library/Zend/ModuleManager/composer.json
%{_datadir}/php/Zend/ModuleManager

%files Mvc
%doc library/Zend/Mvc/*.md
%doc library/Zend/Mvc/composer.json
%{_datadir}/php/Zend/Mvc

%files Navigation
%doc library/Zend/Navigation/*.md
%doc library/Zend/Navigation/composer.json
%{_datadir}/php/Zend/Navigation

%files Paginator
%doc library/Zend/Paginator/*.md
%doc library/Zend/Paginator/composer.json
%{_datadir}/php/Zend/Paginator

%files Permissions-Acl
%doc library/Zend/Permissions/Acl/*.md
%doc library/Zend/Permissions/Acl/composer.json
%dir %{_datadir}/php/Zend/Permissions
     %{_datadir}/php/Zend/Permissions/Acl

%files Permissions-Rbac
%doc library/Zend/Permissions/Rbac/*.md
%doc library/Zend/Permissions/Rbac/composer.json
%dir %{_datadir}/php/Zend/Permissions
     %{_datadir}/php/Zend/Permissions/Rbac

%files ProgressBar
%doc library/Zend/ProgressBar/*.md
%doc library/Zend/ProgressBar/composer.json
%{_datadir}/php/Zend/ProgressBar

%files Serializer
%doc library/Zend/Serializer/*.md
%doc library/Zend/Serializer/composer.json
%{_datadir}/php/Zend/Serializer

%files Server
%doc library/Zend/Server/*.md
%doc library/Zend/Server/composer.json
%{_datadir}/php/Zend/Server

%files ServiceManager
%doc library/Zend/ServiceManager/*.md
%doc library/Zend/ServiceManager/composer.json
%{_datadir}/php/Zend/ServiceManager

%files Session
%doc library/Zend/Session/*.md
%doc library/Zend/Session/composer.json
%{_datadir}/php/Zend/Session

%files Soap
%doc library/Zend/Soap/*.md
%doc library/Zend/Soap/composer.json
%{_datadir}/php/Zend/Soap

%files Stdlib

%doc library/Zend/Stdlib/*.md
%doc library/Zend/Stdlib/composer.json
%{_datadir}/php/Zend/Stdlib

%files Tag
%doc library/Zend/Tag/*.md
%doc library/Zend/Tag/composer.json
%{_datadir}/php/Zend/Tag

%files Test
%doc library/Zend/Test/*.md
%doc library/Zend/Test/composer.json
%{_datadir}/php/Zend/Test

%files Text
%doc library/Zend/Text/*.md
%doc library/Zend/Text/composer.json
%{_datadir}/php/Zend/Text

%files Uri
%doc library/Zend/Uri/*.md
%doc library/Zend/Uri/composer.json
%{_datadir}/php/Zend/Uri

%files Validator
%doc library/Zend/Validator/*.md
%doc library/Zend/Validator/composer.json

%{_datadir}/php/Zend/Validator

%files Version
%doc library/Zend/Version/*.md
%doc library/Zend/Version/composer.json
%{_datadir}/php/Zend/Version

%files View
%doc library/Zend/View/*.md
%doc library/Zend/View/composer.json
%{_datadir}/php/Zend/View

%files XmlRpc
%doc library/Zend/XmlRpc/*.md
%doc library/Zend/XmlRpc/composer.json
%{_datadir}/php/Zend/XmlRpc

%files ZendXml
%{_datadir}/php/ZendXml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6457 |21cr|phylip-3.697-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Phylogeny Inference Package
Name:		phylip
Version:	3.697
Release:	1
License:	Freeware
Group:		Sciences/Biology
URL:		http://evolution.genetics.washington.edu/phylip.html
Source:		http://evolution.gs.washington.edu/phylip/download/%{name}-%{version}.tar.gz
Patch0:		phylip-build.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
PHYLIP (the PHYLogeny Inference Package) is a package of programs for
inferring phylogenies (evolutionary trees). Methods that are available
in the package include parsimony, distance matrix, and likelihood methods,
including bootstrapping and consensus trees.
Data types that can be handled include molecular sequences, gene frequencies,
restriction sites, distance matrices, and 0/1 discrete characters.

This package is in restricted because of its non-free license.

%files
%doc phylip.html doc
%{_libdir}/%{name}
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
cd src
cp Makefile.unx Makefile
%make CFLAGS="%{optflags}" DLIBS="-lX11 -lXaw -lXt -lm" all

%install
cd src
%make BINDIR=%{buildroot}%{_libdir}/%{name} DATADIR=%{buildroot}%{_datadir} put
# symlink default font file
cd %{buildroot}%{_datadir}/%{name} && ln -s font1 fontfile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6458 |21cr|pianobar-2022.04.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No sources for debug package
%global	debug_package %{nil}

Summary:	A native CLI client to Pandora.com
Name:		pianobar
Version:	2022.04.01
Release:	1
Group:		Sound
License:	AS-IS
Url:		http://6xq.net/html/00/17.html
Source0:	http://6xq.net/static/projects/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	make
BuildRequires:	libfaad2-devel
BuildRequires:	ffmpeg-devel >= 3.3
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libxml-2.0)

%description
This software supports all important features Pandora has:
 * Create, delete, rename stations and add more music.
 * Rate and temporary ban tracks as well as move them to another station.
 * "Shared stations".
 * last.fm scrobbling.
 * Proxy support for non-Americans.

%files
%doc ChangeLog COPYING README.rst
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------- 

%prep
%setup -q


%build
%make


%install
%makeinstall_std PREFIX=%{_prefix} DESTDIR=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6459 |21cr|pianobooster-1.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname PianoBooster

Summary:	 A MIDI file player that teaches you how to play the piano
Name:		pianobooster
Version:	1.0.0
Release:	3
License:	GPLv3+
Group:		Sound
Url:		https://www.pianobooster.org/index.html
Source0:	https://github.com/pianobooster/PianoBooster/archive/refs/tags/%{oname}-%{version}.tar.gz
BuildRequires:	cmake >= 3.13.0
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(ftgl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(rtmidi)
Requires:	fonts-ttf-dejavu
Recommends:		fluid-soundfont-gm

%description
A MIDI file player/game that displays the musical notes AND teaches you how to
play the piano. 
It's a fun way of playing along with a musical accompaniment and at the same
time learning the basics of reading musical notation.
The difference between playing along to a CD or a standard MIDI file is that
PianoBooster listens and reacts to what you are playing on a MIDI keyboard.

%files
%doc Changelog.txt gplv3.txt license.txt README.md TODO.md
%doc doc/faq.md doc/pianohints.md doc/courses doc/images
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/music/BoosterMusicBooks.zip
# FIXME: This is not the right place for translation files, but the sources hardcode this path:
# put the files in the right spot and fix the program search paths
%{_datadir}/translations/*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6*
%{_sysconfdir}/modules-load.d/%{name}.conf

#-----------------------------------------------------------------------------


%prep
%setup -qn %{oname}-%{version}


%build
%cmake	.. \
			-DUSE_BUNDLED_RTMIDI="OFF" \
			-DUSE_SYSTEM_FONT=ON \
			-DWITH_INTERNAL_FLUIDSYNTH="OFF" \
			-DWITH_MAN="ON" \
			-DDATA_DIR="%{_datadir}"
%make


%install
%makeinstall_std -C build

# Drop stuff we take elsewhere
rm -rf %{buildroot}%{_docdir}/%{name}/*
rm -rf %{buildroot}%{_datadir}/licenses/*

# Provide auto-load for alsa sequencer module
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
echo "snd_seq" > %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6460 |21cr|picard-2.7.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: avoid providing internal libraries
#%%define __noautoreq 'libdeviceclient.*'

Summary:	The official MusicBrainz tagger
Name:		picard
Version:	2.7.3
Release:	2
License:	GPLv2+
Group:		Sound
Url:		https://picard.musicbrainz.org/
#See also: https://github.com/metabrainz/picard
Source0:	https://musicbrainz.osuosl.org/pub/musicbrainz/picard/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	gettext
BuildRequires:	mutagen >= 1.37
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(python3) >= 3.6
BuildRequires:	python3-dateutil
BuildRequires:	python3-discid
BuildRequires:	python3-fasteners
BuildRequires:	python3-jwt
BuildRequires:	python3-markdown
BuildRequires:	python3-qt5 >= 5.11
BuildRequires:	python3-setuptools
BuildRequires:	python3-yaml >= 5.1
Requires:	mutagen >= 1.37
Requires:	python3-qt5 >= 5.11
Requires:	python3-fasteners
#gw for fpcalc (AcoustID calculation)
Requires:	chromaprint
#gw for metaflac:
Recommends:	flac
#gw for wvgain:
Recommends:	wavpack
Recommends:	mp3gain

%description
MusicBrainz Picard is the official MusicBrainz tagger, written in Python. It
supports the majority of audio file formats, is capable of using audio
fingerprints (PUIDs), performing CD lookups and disc ID submissions, and it
has excellent Unicode support. Additionally, there are several plugins
available that extend Picard's features.
When tagging files, Picard uses an album-oriented approach. This approach
allows it to utilize the MusicBrainz data as effectively as possible and
correctly tag your music. For more information, see the illustrated quick
start guide to tagging.
Picard is named after Captain Jean-Luc Picard from the TV series Star Trek:
The Next Generation.

%files -f %{name}.lang
%doc AUTHORS.txt COPYING.txt NEWS.md README.md
%{_bindir}/%{name}
%{py3_platsitedir}/%{name}/*
%{py3_platsitedir}/%{name}-%{version}-py%{py3_ver}.egg-info/*
%{_datadir}/applications/org.musicbrainz.Picard.desktop
%{_datadir}/metainfo/org.musicbrainz.Picard.appdata.xml
%{_datadir}/locale/*/LC_MESSAGES/%{name}-*.mo
%{_iconsdir}/hicolor/*x*/apps/org.musicbrainz.Picard.png
%{_iconsdir}/hicolor/scalable/apps/org.musicbrainz.Picard.svg

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{version}


%build
python3 setup.py config
%py3_build


%install
%py3_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6461 |21cr|picocom-3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Minimal serial communications program
Name:		picocom
Version:	3.1
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://code.google.com/p/picocom/
Source0:	http://picocom.googlecode.com/files/picocom-%{version}.tar.gz
# for groupadd
Requires(pre):	shadow-utils

%description
As its name suggests, [picocom] is a minimal dumb-terminal emulation
program. It is, in principle, very much like minicom, only it's "pico"
instead of "mini"! It was designed to serve as a simple, manual, modem
configuration, testing, and debugging tool. It has also served (quite
well) as a low-tech "terminal-window" to allow operator intervention
in PPP connection scripts (something like the ms-windows "open
terminal window before / after dialing" feature).  It could also prove
useful in many other similar tasks. It is ideal for embedded systems
since its memory footprint is minimal (less than 20K, when
stripped).

%files
%doc  CONTRIBUTORS README.md
%license LICENSE.txt
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_prefix}/lib/tmpfiles.d/%{name}.conf

%pre
getent group dialout >/dev/null || groupadd -g 18 -r -f dialout || :

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make	\
	CC="%{__cc}"	\
	CFLAGS="$RPM_OPT_FLAGS"	\
	UUCP_LOCK_DIR=%{_rundir}/lock/%{name}

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 755 %{name} %{buildroot}%{_bindir}/
install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/
mkdir -p %{buildroot}%{_prefix}/lib/tmpfiles.d
cat > %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf << EOF
d %{_rundir}/lock/%{name} 0775 root dialout - -
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6462 |21cr|picosat-965-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define	libname %mklibname %{name} %{major}
%define	libnamedevel %mklibname %{name} -d

Name:           picosat
Summary:        Lightweight SAT solver
Version:	965
Release:	1
Source0:        http://fmv.jku.at/%{name}/%{name}-%{version}.tar.gz
URL:            http://fmv.jku.at/picosat/
# Thanks to David Wheeler for the man page.
Source1:        picosat.1
# Man page link for picosat.trace
Source2:        picosat.trace.1
# Man page for picomus
Source3:        picomus.1

Group:          Sciences/Computer science
License:        MIT-like
# gzip required (see app.c); find-requires can't see into C code to find it
Requires:       gzip, %{libname} = %{version}-%{release}

%description
The SAT problem is the classical NP complete problem of searching
for a satisfying assignment of a propositional formula in
conjunctive normal form (CNF). General information on SAT can be
found at http://www.satlive.org or http://www.satlib.org.

%package -n	%{libname}
Group:          Development/C
Summary:        A SAT solver library

%description -n	%{libname}
The PicoSAT library, which contains routines that solve the SAT problem.
The library has a simple API which is similar to that of previous
solvers by the same authors.

%package -n	%{name}-devel
Group:          Development/C
Summary:        Development files for PicoSAT
Requires:       %{libname} = %{version}-%{release}

%description -n	%{name}-devel
Headers and other development files for PicoSAT.

%prep
%setup -q -n %{name}-%{version}

%build
# The configure script is NOT autoconf-generated and chooses its own CFLAGS,
# so we mimic its effects instead of using it.

# Build the version with trace support
sed -e "s/@CC@/gcc/" \
    -e "s/@CFLAGS@/${RPM_OPT_FLAGS} -DTRACE -DNDEBUG/" \
    -e "s/-Xlinker libpicosat.so/-Xlinker libpicosat.so.%{major}/" \
    -e "s/libpicosat/libpicosat-trace/g" \
    -e "s/-lpicosat/-lpicosat-trace/g" \
    -e "s/@TARGETS@/libpicosat-trace.so picosat picomus/" \
  makefile.in > makefile
make
mv picosat picosat.trace

# Build the fast version.
# Note that picomus needs trace support, so we don't rebuild it.
rm -f *.o *.s config.h
sed -e "s/@CC@/gcc/" \
    -e "s/@CFLAGS@/${RPM_OPT_FLAGS} -DNDEBUG/" \
    -e "s/-Xlinker libpicosat.so/-Xlinker libpicosat.so.%{major}/" \
    -e "s/@TARGETS@/libpicosat.so picosat/" \
  makefile.in > makefile
make

%install
# Install the header file
mkdir -p %{buildroot}%{_includedir}/%{name}
cp -p picosat.h %{buildroot}%{_includedir}/%{name}

# Install the libraries
mkdir -p %{buildroot}%{_libdir}
cp -p libpicosat-trace.so %{buildroot}%{_libdir}/libpicosat-trace.so.%{major}.0.%{version}
ln -s libpicosat-trace.so.%{major}.0.%{version} %{buildroot}%{_libdir}/libpicosat-trace.so.%{major}
ln -s libpicosat-trace.so.%{major} %{buildroot}%{_libdir}/libpicosat-trace.so
cp -p libpicosat.so %{buildroot}%{_libdir}/libpicosat.so.%{major}.0.%{version}
ln -s libpicosat.so.%{major}.0.%{version} %{buildroot}%{_libdir}/libpicosat.so.%{major}
ln -s libpicosat.so.%{major} %{buildroot}%{_libdir}/libpicosat.so

# Install the binaries
mkdir -p %{buildroot}%{_bindir}
cp -p picosat picosat.trace picomus %{buildroot}%{_bindir}

# Install the man pages
mkdir -p %{buildroot}%{_mandir}/man1
cp -p %{SOURCE1} %{SOURCE2} %{SOURCE3} %{buildroot}%{_mandir}/man1

# The LICENSE file is placed in the -libs package rather than the base package,
# because the -libs package is always installed when the base package is
# installed, but not vice versa.
%files
%defattr(-,root,root,-)
%{_bindir}/picosat*
%{_bindir}/picomus
%{_mandir}/man1/picosat*
%{_mandir}/man1/picomus*

%files -n %{libname}
%defattr(-,root,root,-)
%doc LICENSE NEWS
%{_libdir}/libpicosat-trace.so.*
%{_libdir}/libpicosat.so.*

%files -n %{name}-devel
%defattr(-,root,root,-)
%{_includedir}/%{name}/picosat.h
%{_libdir}/libpicosat-trace.so
%{_libdir}/libpicosat.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6463 |21cr|pidgin-encryption-3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       pidgin-encryption
Version:    3.1
Release:    5
Summary:    Pidgin extension, to use end to end encryption
Group:      Networking/Instant messaging
License:    GPLv2
Url:        http://pidgin-encrypt.sourceforge.net/

Source0:    http://sourceforge.net/projects/pidgin-encrypt/files/Releases/%version/pidgin-encryption-%version.tar.gz
Patch1:     pidgin-encryption-new_glib-fix.patch

BuildRequires:  nss-devel
BuildRequires:  nspr-devel
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pidgin-devel

Requires:   pidgin

# Not sure what to do with these ?
#Obsoletes: gaim-encryption gaim-encrypt
#Provides:  gaim-encryption gaim-encrypt

%description
This Pidgin plug-in allows you to encrypt the message,
only if the person on the other end use the same plug-in.

%prep
%setup -q
%patch1 -p1
chmod 0644 README

%build
#(peroyvind) glib/gstdio.h doesn't exist in older releases
export LD_LIBRARY_PATH=/usr/X11R6/%{_lib}
%configure
%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_libdir}/pidgin/encrypt.{l,}a

%find_lang %name

%files -f %name.lang
%doc NOTES CHANGELOG TODO README WISHLIST
%{_libdir}/pidgin/encrypt.so
%{_datadir}/pixmaps/pidgin-encryption/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6464 |21cr|pidgin-festival-2.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pidgin extension, to use speech synthetisis
Name:		pidgin-festival
Version:	2.4
Release:	6
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://pidgin-festival.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		pidgin-festival-2.4-str-fmt.patch
Patch1:		pidgin-festival-errno.patch
# force use mkdir -p for create dirs
Patch2:		pidgin-festival-mkdir.patch
BuildRequires:	pkgconfig(purple)
Requires:	festival
Requires:	pidgin

%description
Pidgin allows you to talk to anyone using a variety of messaging  
protocols, including AIM (Oscar and TOC), ICQ, IRC, Yahoo!,
MSN Messenger, Jabber, Gadu-Gadu, Napster, and Zephyr.  These
protocols are implemented using a modular, easy to use design.  

This package is a Pidgin plugin, to allow you using the Festival
speech system to read your message aloud.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/purple-2/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

# remove files not bundled
rm -f %{buildroot}%{_libdir}/purple-2/*.a

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6465 |21cr|pidgin-guifications-2.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	MSN Style Popup for Pidgin
Name:		pidgin-guifications
Version:	2.17.0
Release:	1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://plugins.guifications.org/trac/wiki/Guifications
# hg clone https://keep.imfreedom.org/grim/guifications2/ and make tar.gz
# commit e60a596742b7869238a5443f8bddecab2e27bbda
Source0:	guifications2.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(purple)
BuildRequires:	perl-XML-Parser
Requires:	pidgin

%description
Guifications is a Pidgin plugin that displays msn style "toaster" popups
in a user defined corner of the screen. It's highly configurable,
easy to use, and has theme support.

%files -f guifications.lang
%doc %{_docdir}/guifications2
%{_libdir}/pidgin/*.so
%{_datadir}/pixmaps/pidgin/*

#----------------------------------------------------------------------------

%prep
%setup -q -n guifications2

#fix install dir
sed -i 's|lib/pidgin|%{_lib}/pidgin|' src/meson.build

%build
%meson

%meson_build

%install
%meson_install

%find_lang guifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6466 |21cr|pidgin-icb-20100207-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _prel 20070505

Summary:	ICB protocol plugin for Pidgin
Name:		pidgin-icb
Version:	20100207
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://nic.com.pl/~alek/
Source0:	http://nic.com.pl/~alek/gaim-icb/%{name}-%{_prel}.tar.bz2
Patch0:		pidgin-icb-20070505-debug.patch
BuildRequires:	pkgconfig(purple)
Requires:	pidgin

%description
ICB (Internet Citizen's Band) plugin for Pidgin.

%files
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_libdir}/purple-2/libicb.so
%{_datadir}/pixmaps/pidgin/protocols/*/icb.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{_prel}
%patch0 -p1

%build
%make LOCALBASE=%{_prefix}

%install
mkdir -p %{buildroot}%{_libdir}/purple-2
install libicb.so %{buildroot}%{_libdir}/purple-2/

for i in 16 22 48; do \
    install -D icb_$i.png \
	 %{buildroot}%{_datadir}/pixmaps/pidgin/protocols/$i/icb.png; \
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6467 |21cr|pidgin-lastfm-0.4a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:  Last.fm Plugin for Pidgin
Group:    Networking/Instant messaging
Name:     pidgin-lastfm
Version:  0.4a
Release:  7
License:  GPLv3+
Requires: pidgin-perl
Source: http://downloads.sourceforge.net/pidgin-lastfm/pidgin-lastfm_%{version}_all.tar.gz
URL: http://pidgin-lastfm.naturalnet.de

#not noarch as the plugin dir is different on x86_64
#BuildArch: noarch
%define debug_package %{nil}

%description
The Pidgin Last.fm Plugin can display information from your Last.fm profile
as a status message in the multi-protocol instant messenger Pidgin.
The most important information might be the most recently scrobbled track.

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_libdir}/pidgin
cp src/lastfm.pl %{buildroot}%{_libdir}/pidgin

%files
%doc docs/*
%attr(755,root,root) %{_libdir}/pidgin/lastfm.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6468 |21cr|pidgin-microblog-0.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mbpurple
%define _disable_ld_no_undefined 1

Summary:	Libpurple plug-in supporting microblog services like Twitter
Name:		pidgin-microblog
Version:	0.3.0
Release:	5
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		http://code.google.com/p/microblog-purple/
Source0:	http://microblog-purple.googlecode.com/files/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(purple)

%description
The project aims is to develop a set of microblog support in LibPurple base
client like Pidgin. Currently it only support Twitter through the conversation
windows.

Currently the source can be built and run on Windows Vista and Ubuntu 8.04.1.
Other platform with LibPurple should works, but we don't have time (yet) to
test it.

%files
%doc README.txt
%{_libdir}/purple-2/*.so
%{_datadir}/pixmaps/pidgin/protocols/*/*.png
%{_datadir}/purple/ca-certs/EquifaxSecureGlobaleBusinessCA.pem

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
export CFLAGS="%{optflags}"
make LIBDIR=%{_libdir} LDFLAGS="%{ldflags}"

%install
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6469 |21cr|pidgin-msn-pecan-0.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Implementation of the MSN protocol plug-in for libpurple
Name:		pidgin-msn-pecan
Version:	0.1.4
Release:	2
License:	GPLv2+
Group:		Networking/Instant messaging
Source0:	https://github.com/felipec/msn-pecan/archive/v%{version}.zip?/msn-pecan-%{version}.zip
Patch0:		msn-pecan-0.1.4-adapt-to-escagot-server.patch
# Our system library is more recent than the embedded one
Patch1:		msn-pecan-0.1.3-use-system-libmspack.patch
Url:		https://github.com/felipec/msn-pecan
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libmspack)
BuildRequires:	pkgconfig(purple)

%description
msn-pecan is a "fork" of libpurple's MSN plug-in with a different development
process, clear priorities, and plan forward. It's more fair to call libpurple's
stock msn protocol the fork, and msn-pecan the trunk, as the main development
has moved.
Compared to libpurple's stock plug-in:
 * Faster log-in.
 * Fewer crashes and connection issues.
 * Support for direct file transfers.
 * Support for winks (animoticons) (view-only) (Pidgin).
 * Support for Plus! sounds (receive-only).
 * Option to hide Plus! tags.
Other features (which the stock plug-in also has):
 * No timeout issues.
 * Server-side storage for display names (private alias).
 * Support for personal status messages.
 * Support for offline messaging.
 * Send custom emoticons (Pidgin >= 2.5).
 * Support for handwritten messages (read-only).
 * Support for voice clips (receive-only).

%files
%doc COPYING README TODO
%{_libdir}/purple-2/libmsn-pecan.so

#-----------------------------------------------------------------------------

%prep
%setup -qn msn-pecan-%{version}
%patch0 -p1
rm -rf ext/libmspack
%patch1 -p1 -b .bundled-libmspack


%build
%setup_compile_flags
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6470 |21cr|pidgin-musictracker-0.4.22-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary: Plugin for Pidgin that displays the current song in the status
Name: pidgin-musictracker
Version: 0.4.22
Release: 6
Source0: http://pidgin-musictracker.googlecode.com/files/%{name}-%{version}.tar.bz2
License: GPLv2+
Group: Networking/Instant messaging
Url: http://code.google.com/p/pidgin-musictracker/
BuildRequires: pidgin-devel
BuildRequires: dbus-glib-devel >= 0.73
%if %mdvver <= 201000
BuildRequires: xmms2-devel
%endif
Requires: pidgin

%description
Welcome to musictracker, a plugin for Pidgin which displays the music
track currently playing in your status.

Currently supported players: Amarok, Rhythmbox, Audacious, XMMS,
MPC/MPD, Exaile, Banshee, Quod Libet.


%prep
%setup -q

%build
%configure --disable-werror
%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %buildroot%_libdir/pidgin/musictracker.{a,la}

%find_lang musictracker

%clean
rm -rf %{buildroot}

%files -f musictracker.lang
%defattr(-,root,root)
%doc README NEWS  THANKS AUTHORS
%_libdir/pidgin/musictracker.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6471 |21cr|pidgin-otr-4.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pidgin plugin that implements Off-the-Record Messaging
Name:		pidgin-otr
Version:	4.0.2
Release:	3
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://www.cypherpunks.ca/otr/
Source0:	http://www.cypherpunks.ca/otr/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libotr)
BuildRequires:	pkgconfig(pidgin)
Requires:	pidgin

%description
This is a plugin for pidgin which implements Off-the-Record
Messaging over any IM network pidgin supports.

OTR allows you to have private conversations over IM by providing:
 - Encryption
   - No one else can read your instant messages.
 - Authentication
   - You are assured the correspondent is who you think it is.
 - Deniability
   - The messages you send do _not_ have digital signatures that are
     checkable by a third party.  Anyone can forge messages after a
     conversation to make them look like they came from you.  However,
     _during_ a conversation, your correspondent is assured the messages
     he sees are authentic and unmodified.
 - Perfect forward secrecy
   - If you lose control of your private keys, no previous conversation
     is compromised.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/pidgin/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6472 |21cr|pidgin-plugin-fchat-0.7.0-1.git658e5c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 658e5c550ffc0d4fb96ec7b6ca78729c85f190f9
%define commit_short %(echo %{commit} | head -c6)

%define	oname	fchat-pidgin

Summary:	A pidgin/libpurple plugin for the F-List roleplaying webchat
Name:		pidgin-plugin-fchat
Version:	0.7.0
Release:	1.git%{commit_short}.1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://github.com/fchat-pidgin/fchat-pidgin/
Source0:	https://github.com/fchat-pidgin/fchat-pidgin/archive/%{commit}.zip?/%{oname}-%{commit}.zip
Patch0:		%{oname}-0.7.0-no-git-version.patch
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(pidgin)
BuildRequires:	pkgconfig(purple)
Requires:	pidgin

%description
A pidgin/libpurple plugin for the F-List roleplaying webchat.

%files
%doc CHANGELOG.md LICENSE README.md README_USERS
%{_datadir}/pixmaps/pidgin/protocols/*/flist.png
%{_libdir}/purple-2/flist.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{commit}

%build
%make \
	LINUX_COMPILER="%__cc %{optflags}" \
	DISABLE_NSSFIX=1 \
	FLIST_PURPLE_ONLY=1

	
%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6473 |21cr|pidgin-plugin-guiops-0.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pidgin-guiops

Summary:	GUI customization additional options plugin for pidgin
Name:		pidgin-plugin-guiops
Version:	0.5.1
Release:	2
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://code.google.com/archive/p/pidgin-guiops/
Source0:	https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/%{oname}/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pidgin)
BuildRequires:	pkgconfig(purple)
Requires:	pidgin

%description
The Pidgin GUIOps plugin provides more GUI customization options:
- display buddy status next to buddy name instead of under it in the buddy list
- hide buddy list and conversation menu's with shortcut key
- hide buddy list statusbox with shortcut key
- make conversation window borders thinner
- hide conversation window status box

The buddy icon is also resized to a smaller size, or can even be hidden.

%files
%doc README
%{_libdir}/purple-2/pidgin-guiops.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}

%build
%setup_compile_flags
%make

%install
%makeinstall_std plugin_dir=%{buildroot}%{_libdir}/purple-2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6474 |21cr|pidgin-plugin-matrix-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define oname purple-matrix

Summary:	Purple-matrix is a plugin for Pidgin, which supports matrix.org messaging
Name:		pidgin-plugin-matrix
Version:	0.1.0
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/Instant messaging
URL:		https://github.com/matrix-org/purple-matrix
Source0:	https://github.com/matrix-org/purple-matrix/archive/refs/tags/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	make gcc
BuildRequires:	http-parser-devel
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(sqlite3)

%description
Purple-plugin-matrix is a plugin for Pidgin, which supports
matrix.org messaging

%files
%doc README.md
%license LICENSE
%{_libdir}/purple-2/libmatrix.so
%{_datadir}/pixmaps/pidgin/protocols/*/matrix.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%make MATRIX_NO_E2E=1

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6475 |21cr|pidgin-plugin-mrim-0.1.28.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	PackageName	mrim-prpl
%define debug_package %{nil}

Summary:	MRIM Plugin for libpurple and derived IM clients
Name:		pidgin-plugin-mrim
Version:	0.1.28.1
Release:	6
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://bitbucket.org/mrim-prpl-team/mrim-prpl
Source0:	https://bitbucket.org/%{PackageName}-team/%{PackageName}/downloads/%{PackageName}-%{version}.tar.xz
Patch0:		pidgin-mrim-multiple-definitions.patch
BuildRequires:	pkgconfig(purple)

%description
All the other plugins for all libpurple derived clients.

%prep
%autosetup -p1 -n %{PackageName}-%{version}

%build
./configure --gtk --libdir=%{_libdir}
%make

%install
install -Dm0644 libmrim.so %{buildroot}/%{_libdir}/purple-2/libmrim.so
install -Dm0644 pixmaps/mrim16.png %{buildroot}/%{_datadir}/pixmaps/pidgin/protocols/16/mrim.png
install -Dm0644 pixmaps/mrim22.png %{buildroot}/%{_datadir}/pixmaps/pidgin/protocols/22/mrim.png
install -Dm0644 pixmaps/mrim32.png %{buildroot}/%{_datadir}/pixmaps/pidgin/protocols/32/mrim.png

%files
%doc README LICENSE TODO
%{_libdir}/purple-2/libmrim.so
%{_datadir}/pixmaps/pidgin/protocols/*/mrim.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6476 |21cr|pidgin-plugin-usercast-0.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname usercast

Summary:	User casting plugin for pidgin
Name:		pidgin-plugin-usercast
Version:	0.2.3
Release:	1
License:	MIT
Group:		Networking/Instant messaging
Url:		https://github.com/santa01/usercast/
Source0:	https://github.com/santa01/usercast/archive/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pidgin)
BuildRequires:	pkgconfig(purple)
Requires:	pidgin

%description
Usercast copies the nickname you've double clicked in the conference chat and
pastes it into a conversation's entry field.

%files
%doc COPYING README
%{_libdir}/pidgin/usercast.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%setup_compile_flags
%make

%install
%makeinstall_std LIBDIR=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6477 |21cr|pidgin-plugin-window_merge-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname window_merge

Summary:	Plugin for pidgin that merges the Buddy List window with a conversation window
Name:		pidgin-plugin-window_merge
Version:	0.3
Release:	2
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://github.com/santa01/usercast/
Source0:	https://github.com/downloads/dm0-/window_merge/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pidgin)
BuildRequires:	pkgconfig(purple)
Requires:	pidgin

%description
Enabling this plugin will allow conversations to be attached to the Buddy List
window. Preferences are available to customize the plugin's panel layout.

%files
%doc ChangeLog COPYING NEWS README
%{_libdir}/pidgin/window_merge.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6478 |21cr|pidgin-privacy-please-0.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pidgin plugin to stop spammers from annoying you
Name:		pidgin-privacy-please
Version:	0.7.1
Release:	4
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://code.google.com/p/pidgin-privacy-please/
Source0:	http://pidgin-privacy-please.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	pidgin-devel
BuildRequires:	intltool
Requires:	pidgin

%description
Pidgin-privacy-please offers the following features:

- Block certain users (with an optional auto-reply)
- Block messages from people who are not on your contact 
  list (with an optional auto-reply)
- Suppress repeated authorization requests 

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std
%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_libdir}/pidgin/libpidgin_pp.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6479 |21cr|pidgin-rhythmbox-2.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Update Pidgin user info with music info playing in Rhythmbox
Name:		pidgin-rhythmbox
Version:	2.0
Release:	12
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://jon.oberheide.org/projects/pidgin-rhythmbox/
Source0:	http://jon.oberheide.org/projects/pidgin-rhythmbox/downloads/%{name}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(purple)
Requires:	pidgin
Requires:	rhythmbox

%description
The Pidgin-Rhythmbox plugin will automatically update your Pidgin user
info and/or away message with the currently playing music in Rhythmbox.

If the artist and title are known, it will also attempt to create
a link to the song's lyrics by using Google's "I'm Feeling Lucky"
feature.

Pidgin-Rhythmbox will replace %%rb in your user info and/or away message
with the song information. As of version 1.5.0.1, only oscar protocol
(i.e. AIM/ICQ) is supported, though it is expected to support every
protocol in 2.0.

%files
%doc README
%{_libdir}/pidgin/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6480 |21cr|pidgin-sipe-1.25.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	__libtoolize /bin/true

Summary:	Pidgin protocol (SIP/SIMPLE) plugin to connect to MS Office Communicator
Name:		pidgin-sipe
Version:	1.25.0
Release:	3
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://sipe.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/sipe/sipe/pidgin-sipe-%{version}/%{name}-%{version}.tar.xz
Patch0:		pidgin-sipe-1.25.0-automake.patch
BuildRequires:	appstream
BuildRequires:	intltool
BuildRequires:	flex
BuildRequires:	pkgconfig(farstream-0.2)
BuildRequires:	pkgconfig(freerdp-shadow2)
BuildRequires:	pkgconfig(glib-2.0) >= 2.32.0
BuildRequires:	pkgconfig(gmime-3.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libpsl)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(nice) >= 0.1.0
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(purple) >= 2.7.0
BuildRequires:	pkgconfig(telepathy-glib) >= 0.18.0

%description
This project develops a third-party plugin for the Pidgin  multi-protocol
instant messenger. It implements the extended version of SIP/SIMPLE used by
various products:
    * Microsoft Office Communications Server (OCS 2007 and newer).
    * Microsoft Live Communications Server (LCS 2003/2005).
    * Reuters Messaging.
With this plugin you should be able to replace your Microsoft Office
Communicator client with Pidgin.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING README
%{_libdir}/purple-2/*.so
%{_libexecdir}/telepathy-sipe
%{_datadir}/telepathy/profiles/sipe.profile
%{_datadir}/empathy/icons/hicolor/*/apps/im-sipe.*
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.ConnectionManager.sipe.service
%{_datadir}/pixmaps/pidgin/protocols/*/sipe*
%{_datadir}/metainfo/%{name}.metainfo.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix perms
find . -name "*.c" -o -name "*.h" | xargs chmod 0644


%build
autoreconf -vfi
sed -i 's/-Werror//g' configure.ac configure

%configure \
	--with-krb5 \
	--with-vv \
	--enable-purple \
	--enable-telepathy
%make


%install
%makeinstall_std

# Pidgin doesn't have 24 or 32 pixel icons
rm -f %{buildroot}%{_datadir}/pixmaps/pidgin/protocols/24/sipe.png \
	%{buildroot}%{_datadir}/pixmaps/pidgin/protocols/32/sipe.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6481 |21cr|pidgin-smartear-2.6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fversion %{version}-1

Summary:	Pidgin plugin to assign a different sound to each buddy
Name:		pidgin-smartear
Version:	2.6.5
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://mpcomplete.org/proj/smartear/
Source0:	https://mpcomplete.org/proj/smartear/files/smartear-%{fversion}.tar.gz
#gw add missing internal header
Patch0:		smartear-2.0.0-1-internal.patch
BuildRequires:	libtool
BuildRequires:	pkgconfig(purple)
Requires:	pidgin

%description
This is a plugin for Pidgin, an instant messanger.
With it, you can assign different sounds to play for different buddies
or whole groups of buddies. SmartEar allows you to opt to play sounds
when a buddy sends you an IM, signs on, returns from away or idle, or
any combination of these, so you'll know by the sound what the
important people are doing.

Author suggests turning off default gaim sound event before using this
plugin.

%files
%{_libdir}/pidgin/smartear.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n smartear-%{fversion}

%build
libtool --tag=CC --mode=compile gcc -DPURPLE_PLUGINS -DVERSION=\"%{version}\"  `pkg-config --cflags pidgin gtk+-2.0` %{optflags} -c smartear.c -o smartear.lo
libtool --tag=LD --mode=link    gcc `pkg-config --libs pidgin` %{optflags} -o smartear.la -rpath %{_libdir}/pidgin smartear.lo -module -avoid-version

%install
mkdir -p %{buildroot}%{_libdir}/pidgin
libtool --mode=install /usr/bin/install smartear.la %{buildroot}%{_libdir}/pidgin/smartear.la

# remove files not bundled
rm -f %{buildroot}%{_libdir}/pidgin/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6482 |21cr|pidgin-tlen-20150226-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _prel 20070524

Summary:	Tlen.pl protocol plugin for Pidgin
Name:		pidgin-tlen
Version:	20150226
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://nic.com.pl/~alek
Source0:	http://nic.com.pl/~alek/gaim-tlen/%{name}-%{_prel}.tar.bz2
Patch0:		pidgin-tlen-20070524-debug.patch
BuildRequires:	pkgconfig(purple)
Requires:	pidgin

%description
Tlen.pl is a popular IM protocol in Poland, this plugin provides its
port into Pidgin.

%files
%defattr(644,root,root,755)
%doc README
%attr(755,root,root) %{_libdir}/purple-2/libtlen.so
%{_datadir}/pixmaps/pidgin/protocols/*/tlen.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{_prel}
%patch0 -p1

%build
%make LOCALBASE=%{_prefix}

%install
mkdir -p %{buildroot}%{_libdir}/purple-2
install libtlen.so %{buildroot}%{_libdir}/purple-2/

for i in 16 22 48; do \
    install -D tlen_$i.png \
	 %{buildroot}%{_datadir}/pixmaps/pidgin/protocols/$i/tlen.png; \
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6483 |21cr|pigment-0.3.17-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		api	0.3
%define		major		11
%define		libname		%mklibname %{name} %{api} %{major}
%define		develname	%mklibname %{name} -d

Summary:	User interface library with embedded multimedia
Name:		pigment
Version:	0.3.17
Release:	9
License:	LGPLv2+
Group:		Development/C
URL:		https://code.fluendo.com/pigment/trac
Source0:	http://elisa.fluendo.com/static/download/pigment/%{name}-%{version}.tar.bz2
Patch0:		pigment-0.3.17-redefinition.patch
Patch1:		pigment-0.3.17-gleslib.patch
Patch2:		pigment-0.3.17-install.patch
BuildRequires:	pkgconfig(cairo) >= 1.4
BuildRequires:	pkgconfig(cairo-xlib)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.8.0
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-0.10) >= 0.10.0
BuildRequires:	pkgconfig(gstreamer-base-0.10) >= 0.10.0
BuildRequires:	pkgconfig(gstreamer-check-0.10)  >= 0.10.0
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)  >= 0.10.0
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(pango) >= 1.20
BuildRequires:	pkgconfig(pangocairo) >= 1.20
BuildRequires:	pkgconfig(tslib-0.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	gtk-doc

%description
Pigment is a library designed to easily build user interfaces
with embedded multimedia. Its design allows to use it on several
platforms, thanks to a plugin system allowing to choose the underlying
graphical API. Pigment is the rendering engine of Elisa, the Fluendo
Media Center project.

%package -n %{libname}
Group:		System/Libraries
Summary:	Shared library of Pigment

%description -n %{libname}
Pigment is a library designed to easily build user interfaces
with embedded multimedia. Its design allows to use it on several
platforms, thanks to a plugin system allowing to choose the underlying
graphical API. Pigment is the rendering engine of Elisa, the Fluendo
Media Center project.

%package -n %{develname}
Group:		Development/C
Summary:	Development headers for shared library of Pigment
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
Pigment is a library designed to easily build user interfaces
with embedded multimedia. Its design allows to use it on several
platforms, thanks to a plugin system allowing to choose the underlying
graphical API. Pigment is the rendering engine of Elisa, the Fluendo
Media Center project.

%prep
%setup -q
%patch0 -p2
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
%configure --disable-gtk-doc --disable-static
%make

%install
%makeinstall_std

%files
%dir %{_libdir}/%{name}-%{api}/%{version}
%{_libdir}/%{name}-%{api}/%{version}/*.so
%{_datadir}/gtk-doc/html/%{name}

%files -n %{libname}
%{_libdir}/lib*-%{api}.so.%{major}
%{_libdir}/lib*-%{api}.so.%{major}.*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6484 |21cr|pillowfight-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname libpillowfight
%define oname   pypillowfight

Name:           pillowfight
Version:        0.3.0
Release:        1
Summary:        Various image processing algorithms
Group:          Graphics
License:        GPL-2.0-or-later
URL:            https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight
Source0:        https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/-/archive/%{version}/%{srcname}-%{version}.tar.gz
# https://gitlab.gnome.org/World/OpenPaperwork/libpillowfight/issues/15
Source1:        images.tar.xz

# Because Fedora 32-bit does not necessarily support SSE2.
Patch0001:      0001-Do-not-override-compile-args.patch

%global _description \
Library containing various image processing algorithms: Automatic Color \
Equalization, Unpaper's algorithms, Stroke Width Transformation, etc.

%description 
%{_description}

%package -n     python3-%{name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{name}}

BuildRequires:  gcc
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-nose >= 1.0
BuildRequires:  python3-pillow

Requires:       python3-pillow

%description -n python3-%{name} 
%{_description}

%prep
%autosetup -n libpillowfight-%{version} -p1
%setup -D -T -n libpillowfight-%{version} -q -a 1

# Remove bundled egg-info
rm -rf %{srcname}.egg-info

echo "#define INTERNAL_PILLOWFIGHT_VERSION \"%{version}\"" > src/pillowfight/_version.h

%build
%py3_build

%install
%py3_install

%files -n python3-%{name}
%license LICENSE
%doc README.md
%{python3_sitearch}/%{name}
%{python3_sitearch}/%{oname}-%{version}-py%{python3_version}.egg-info


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6485 |21cr|pine2mutt-0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Pine2mutt makes mutt behave somewhat pine-like
Name: pine2mutt
Version: 0.3
Release: 11
Source0: %{name}-%{version}.tar.bz2
Patch: %name-makefile.patch.bz2
License: GPL
URL: http://www.netmeister.org/apps/pine2mutt/index.html
Group: Networking/Mail
Buildroot: %{_tmppath}/%{name}-buildroot
Buildarch: noarch

%description
Pine2mutt is a simple perl-script interesting to people who switch from using
pine to mutt. It converts pine's .addressbook into mutt-readable aliases,
enables pine-like sent-mail-folder handling and provides pine-like keybindings
by sourcing the file "Pine.rc" which comes with mutt.

%prep
rm -rf $RPM_BUILD_ROOT

%setup

%patch -p1

%build

%install
export DESTDIR=$RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT%_bindir
mkdir -p $RPM_BUILD_ROOT%_mandir/man1

make install

%clean

%files
%defattr(-,root,root)
%doc README COPYING
%_bindir/*
%_mandir/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6486 |21cr|pinfo-0.6.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Przemek's Info Viewer - a (much) better info
Name:		pinfo
Version:	0.6.13
Release:	2
Group:		Development/Other
License:	GPLv2+
Url:		https://github.com/baszoetekouw/pinfo
Source0:	https://github.com/baszoetekouw/pinfo/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		pinfo-0.6.13-lzma-xz-lzip.patch
Patch1:		pinfo-0.6.9-xdg.patch
Patch2:		pinfo-0.6.13-nogroup.patch
Patch3:		pinfo-0.6.9-infopath.patch
Patch4:		pinfo-0.6.10-man.patch
Patch5:		pinfo-0.6.13-gcc10.patch
Patch6:		pinfo-0.6.13-stringop-overflow.patch
Patch7:		pinfo-print-format.patch
BuildRequires:	autoconf
BuildRequires:	bison
BuildRequires:	texinfo
BuildRequires:	gettext-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)

%description
Hypertext info file viewer. User interface similar to lynx.
It is based on ncurses. It can handle now as well info
pages as man pages. Regexp searching included.

%prep
%setup -q
%apply_patches

%build
./autogen.sh --no-configure
%configure --with-readline
%make
%make -C po

%install
%makeinstall_std

%find_lang %{name}

ln -s pinfo %{buildroot}%{_bindir}/pman

%files -f %{name}.lang
%doc AUTHORS README.md TECHSTUFF
%config(noreplace) %{_sysconfdir}/pinforc
%{_bindir}/*
%{_mandir}/*/*
%{_infodir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6487 |21cr|pinpoint-0.1.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

Name:           pinpoint
Version:        0.1.8
Release:        3
Summary:        A tool for making hackers do excellent presentations
Group:          Office
License:        LGPLv2+
URL:            https://wiki.gnome.org/Pinpoint
Source0:        https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		pinpoint-0.1.8-CVE-2013-7447.patch
BuildRequires:	pkgconfig(cairo-pdf) >= 1.9.12
BuildRequires:	pkgconfig(clutter-1.0) >= 1.4
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(clutter-x11-1.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0) >= 2.26
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(pangocairo)

%description
Pinpoint a simple presentation tool that hopes to avoid audience death
by bullet point and instead encourage presentations containing
beautiful images and small amounts of concise text in slides.

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

%files
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/pinpoint
%{_datadir}/pinpoint

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6488 |21cr|pinta-1.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	An easy to use drawing and image editing program
Name:		pinta
Version:	1.6
Release:	4
# the code is licensed under the MIT license while the icons are licensed as CC-BY
License:	MIT and CC-BY
Group:		Graphics
Url:		http://pinta-project.com/
Source0:	https://github.com/PintaProject/Pinta/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	gtk-sharp2
BuildRequires:	intltool
BuildRequires:	pkgconfig(gapi-2.0)
BuildRequires:	pkgconfig(mono)
BuildRequires:	pkgconfig(mono-addins)
Requires:	gtk-sharp2
Requires:	mono-addins

%description
Pinta is an image drawing/editing program.
It's goal is to provide a simplified alternative to GIMP for casual users.

%files -f %{name}.lang
%doc readme.md license-mit.txt license-pdn.txt
%{_libdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_datadir}/man/man1/%{name}*
%{_datadir}/pixmaps/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q

# update the project and solution files for mono4
find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \;
find . \( -name "*.csproj" -o -name "*.proj" \) -print -exec sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g; s#Mono.Posix, Version.*"#Mono.Posix"#g' {} \;

%build
%configure
%make

%install
%make_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6489 |21cr|pioneer-0.20220203-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

# exclude requires libfmt, its bundled version, not system
%global __provides_exclude libfmt.*
%global __requires_exclude libfmt.*

%define oversion %(echo %{version} |cut -d. -f2)

Summary:	Space adventure game, reminiscent of Frontier: Elite 2
Name:		pioneer
Version:	0.20220203
Release:	3
License:	GPLv3+
Group:		Games/Arcade
Url:		http://pioneerspacesim.net/
Source0:	https://github.com/pioneerspacesim/pioneer/archive/%{oversion}.tar.gz?/%{name}-%{oversion}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	cmake
BuildRequires:	patchelf
BuildRequires:	pkgconfig(assimp)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
#BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(vorbisfile)
Requires:	%{name}-data = %{EVRD}

%description
Pioneer is a space adventure game set in the Milky Way galaxy at the turn of
the 31st Century.

The game is open-ended, and you are free to explore the millions of star
systems in the game. You can land on planets, slingshot past gas giants, and
burn yourself to a crisp flying between binary star systems.

When Pioneer is finished there will be many ways to make ends meet: piracy,
smuggling, bounty-hunting, mining, doing missions for the various factions
fighting for power, freedom or self-determination.

Pioneer has a sneaking resemblance to Frontier: Elite 2.

%files
%defattr(644,root,root,755)
%doc Changelog.txt AUTHORS.txt README.md Quickstart.txt
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_bindir}/modelcompiler
%attr(755,root,root) %{_bindir}/savegamedump
%{_datadir}/applications/*.desktop
%{_libdir}/%{name}/libfmt*
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/appdata/net.pioneerspacesim.Pioneer.appdata.xml

#----------------------------------------------------------------------------

%package data
Summary:	Game data files for Pioneer
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description data
Game data files for Pioneer.

%files data
%doc Changelog.txt AUTHORS.txt README.md Quickstart.txt
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{oversion}
for N in 16 32 64 128; do convert data/icons/badge.png -resize ${N}x${N} $N.png; done

%build
#./bootstrap
%cmake \
	-DCMAKE_BUILD_TYPE=Release		\
	-DCMAKE_INSTALL_LIBDIR=%{_lib}/%{name}	\
	-DCMAKE_VERBOSE_MAKEFILE=TRUE		\
	-DFMT_INSTALL=ON			\
	-DPIONEER_DATA_DIR=%{_gamesdatadir}/%{name} \
	-DUSE_SYSTEM_LIBLUA=OFF
%make

%install
%makeinstall_std -C build

# use rpaths versus private libraries
patchelf --set-rpath '$ORIGIN/../%{_lib}/%{name}' %{buildroot}%{_bindir}/*

# remove development files
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_libdir}/%{name}/cmake
rm -rf %{buildroot}%{_libdir}/%{name}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6490 |21cr|pioneers-15.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Playable implementation of the Settlers of Catan 
Name:		pioneers
Version:	15.4
Release:	1
License:	GPLv2+
Group:		Games/Boards
Url:		http://pio.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/pio/Source/%{name}-%{version}.tar.gz
Source2:	pioneers-0.9.55-icons.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	scrollkeeper
BuildRequires:	avahi-client-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)

%description
Pioneers is an Internet playable implementation of the Settlers of
Catan board game. The aim is to remain as faithful to the board game
as is possible.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_bindir}/pioneers
%{_bindir}/pioneers-editor
%{_datadir}/applications/pioneers.desktop
%{_datadir}/applications/pioneers-editor.desktop
%{_datadir}/pixmaps/pioneers.png
%{_datadir}/pixmaps/pioneers-editor.png
%{_datadir}/pixmaps/pioneers/
%dir %{_datadir}/games/pioneers
%{_datadir}/games/pioneers/themes/
%{_mandir}/man6/pioneers.6*
%{_mandir}/man6/pioneers-editor.6*
%{_iconsdir}/hicolor/*/apps/pioneers.*
%{_iconsdir}/hicolor/*/apps/pioneers-editor.*
%{_iconsdir}/hicolor/*/actions/pioneers*.svg
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}-editor.png
%{_liconsdir}/%{name}-editor.png
%{_miconsdir}/%{name}-editor.png

#----------------------------------------------------------------------------

%package server-console
Summary:	Pioneers Console Server
Group:		Games/Boards
Requires:	pioneers-server-data = %{version}

%description server-console
Pioneers is an Internet playable implementation of the Settlers of
Catan board game. The aim is to remain as faithful to the board game
as is possible.

The meta server registers available game servers and offers them to new
players. It can also create new servers on client request.

%files server-console
%doc README
%{_bindir}/pioneers-server-console
%{_bindir}/pioneers-metaserver
%{_mandir}/man6/pioneers-server-console.6*
%{_mandir}/man6/pioneers-metaserver.6*

#----------------------------------------------------------------------------

%package  server-gtk
Summary:	Pioneers GTK Server
Group: 		Games/Boards
Requires:	pioneers-server-data = %{version}

%description server-gtk
Pioneers is an Internet playable implementation of the Settlers of
Catan board game. The aim is to remain as faithful to the board game
as is possible.

The server has a user interface in which you can customise the game
parameters. Customisation is fairly limited at the moment, but this
should change in later versions.  Once you are happy with the game
parameters, press the Start Server button, and the server will start
listening for client connections.

%files server-gtk
%doc README
%{_bindir}/pioneers-server-gtk
%{_datadir}/applications/pioneers-server.desktop
%{_mandir}/man6/pioneers-server-gtk.6*
%{_datadir}/pixmaps/%{name}-server.png
%{_datadir}/icons/hicolor/*/apps/pioneers-server.*
%{_iconsdir}/%{name}-server.png
%{_liconsdir}/%{name}-server.png
%{_miconsdir}/%{name}-server.png

#----------------------------------------------------------------------------

%package server-data
Summary:	Pioneers Data
Group:		Games/Boards

%description server-data
Pioneers is an Internet playable implementation of the Settlers of
Catan board game. The aim is to remain as faithful to the board game
as is possible.

This package contains the data files for a game server, including a
computer player that can take part in Pioneers games.

%files server-data
%doc README
%{_bindir}/pioneersai
%{_mandir}/man6/pioneersai.6*
%dir %{_datadir}/games/pioneers
%{_datadir}/games/pioneers/computer_names
%{_datadir}/games/pioneers/*.game

#----------------------------------------------------------------------------

%prep
%setup -q -a 2
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

desktop-file-install \
	--vendor="" \
	--add-category="X-MandrivaLinux-MoreApplications-Games-Boards" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

cp -r icons %{buildroot}%{_datadir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6491 |21cr|pipewalker-0.9.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A clone of the NetWalk game
Name:		pipewalker
Version:	0.9.4
Release:	3
License:	GPLv3+
Group:		Games/Puzzles
Url:		http://%{name}.sourceforge.net/
Source0:	http://downloads.sourceforge.net/pipewalker/%{name}-%{version}.tar.gz
Patch1:		pipewalker-0.9.4-string-literal.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)

%description
This is a puzzle game where pieces of a computer network are to be turned
in the right/left direction to make all computers connected to the same
network.

%files
%doc README COPYING AUTHORS ChangeLog NEWS
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1

%build
%configure
%make

%install
%makeinstall_std

# remove Debian menu file
rm %{buildroot}/%{_datadir}/menu/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6492 |21cr|pirate-get-0.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          pirate-get
Version:       0.4.2
Release:       1
Summary:       Search on Pirate Bay
Group:         Networking/File transfer
License:       AGPLv3+
Url:           https://github.com/vikstrous/pirate-get
Source0:       https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz  
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(colorama)
BuildRequires: python3egg(beautifulsoup4)
BuildRequires: python3egg(veryprettytable)
BuildRequires: python3egg(pyperclip)

BuildArch:     noarch

%description
pirate-get is a convenient command line tool 
(inspired by APT) to speed up your trip to 
the Pirate Bay and get your 
completely legal torrents more quickly.

%files
%doc README.md
%{_bindir}/%{name}
%{py3_puresitedir}/pirate
%{py3_puresitedir}/pirate_get-%{version}-py*.egg-info

#----------------------------------------------------------------
%prep
%setup -q

%build
%{py3_build}


%install
%{py3_install}

rm -fr %{buildroot}%{py3_puresitedir}/tests

%check
python3 setup.py test || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6493 |21cr|pircbot-1.5.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pircbot
Summary:	Java IRC API
Version:	1.5.0
Release:	4
Source0:	http://www.jibble.org/files/pircbot-1.5.0.zip
Source1:	pircbot.xml
URL:		http://www.jibble.org/pircbot.php

Group:		Development/Java
License:        GPLv2

BuildRequires:	ant
BuildRequires:	java-rpmbuild
BuildRequires:	unzip

Requires:	java

BuildArch:	noarch

%description
PircBot is a Java API for writing IRC bots quickly and easily. 
Its features include an event-driven architecture to handle common IRC events, 
flood protection, DCC resuming support, ident support, and more. 
Its comprehensive logfile format is suitable for use with pisg to generate 
channel statistics.

PircBot is written in pure Java, so it will run on any operating system that 
has a Java Virtual Machine.

%files
%defattr(-,root,root,-)
%_javadir/*.jar

#--------------------------------------------------------------------

%package	javadoc
Summary:	Javadoc for pircbot
Group:		Development/Java

%description javadoc
Javadoc for pircbot.


%files javadoc
%defattr(-,root,root,-)
%_javadocdir/*

#--------------------------------------------------------------------

%prep
%setup -q
%__cp %{SOURCE1} .

%build
export CLASSPATH="." 
%ant -f pircbot.xml all javadoc

%install
rm -rf $RPM_BUILD_ROOT

%__install -dm 755 $RPM_BUILD_ROOT%_javadir
%__install -m 644 dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%_javadir
ln -s %{name}-%{version}.jar $RPM_BUILD_ROOT%_javadir/%{name}.jar

# javadoc
%__install -dm 755 $RPM_BUILD_ROOT%_javadocdir/%{name}-%{version}
pushd javadoc
cp -pr * $RPM_BUILD_ROOT%_javadocdir/%{name}-%{version}
popd
ln -s %{name}-%{version} $RPM_BUILD_ROOT%_javadocdir/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6494 |21cr|pisg-0.73-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An IRC channel statics generator
Name:		pisg
Version:	0.73
Release:	3
License:	GPL
Group:		Networking/IRC
Url:		http://pisg.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/pisg/%{name}-%{version}.tar.gz
BuildRequires:	perl
BuildArch:	noarch

%description
pisg is an IRC channel statics generator written in Perl, it creates
statistics from different logfile formats. It was originally written
because IRCStats wasn't open source. So here's an open source/GPL'ed
version to anyone interested. It's a funny thing for your IRC channel,
and it's highly customizeable.

%prep
%setup -q

%build
# Some default configuration setting
perl -pi -e "s:configfile => 'pisg.cfg':configfile => '%{_sysconfdir}/pisg.cfg':" modules/Pisg.pm
perl -pi -e "s:langfile => 'lang.txt':langfile => '%{_datadir}/%{name}/lang.txt':" modules/Pisg.pm
perl -pi -e "s:cssdir => 'layout/':cssdir => '%{_datadir}/%{name}/layout/':" modules/Pisg.pm

%install

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{perl_vendorlib}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}

install -m 755 pisg %{buildroot}%{_bindir}
cp -ar modules/* %{buildroot}%{perl_vendorlib}
cp -ar lang.txt layout %{buildroot}%{_datadir}/%{name}
cp -a pisg.cfg %{buildroot}%{_sysconfdir}

find %{buildroot}%{perl_vendorlib} -type f -exec chmod 644 {} \;

%files
%doc README docs
%doc scripts gfx
%{_bindir}/%{name}
%{perl_vendorlib}/*
%{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/pisg.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6495 |21cr|pitivi-2021.05-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} |rev |cut -d. -f2- |rev)
%define gstapi 1.0

Summary:	Non linear video editor under linux
Name:		pitivi
Version:	2021.05
Release:	2
License:	LGPLv2+
Group:		Video
Url:		http://www.pitivi.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/pitivi/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	%{name}.rpmlintrc
Patch0:		pitivi-2021.05-fix-positional-arguments.patch
# From Fedora
Patch1:		collections.patch
BuildRequires:	desktop-file-utils
BuildRequires:	git
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	python3-nose
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-transcoder-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-video-%{gstapi})
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(py3cairo)
Requires:	frei0r
Requires:	gnonlin
Requires:	gstreamer%{gstapi}-editing-services
Requires:	gstreamer%{gstapi}-transcoder
Requires:	python3-dbus
Requires:	python3-gi
Requires:	python3-gi-cairo
Requires:	python3-gstreamer%{gstapi}
Requires:	python3-numpy
Requires:	python3-matplotlib-gtk3
Requires:	xdg-utils
Requires:	typelib(Clutter)
Requires:	typelib(ClutterGst) = 2.0
Requires:	typelib(Cogl) = 1.0
Requires:	typelib(Cogl) = 2.0
Requires:	typelib(CoglPango) = 1.0
Requires:	typelib(CoglPango) = 2.0
Requires:	typelib(GES)
Requires:	typelib(Gst) = 1.0
Requires:	typelib(GstAudio) = 1.0
Requires:	typelib(GstVideo) = 1.0
Requires:	typelib(GstTranscoder)
Requires:	typelib(GtkClutter)
Requires:	typelib(PangoFT2)
Recommends:	gstreamer%{gstapi}-libav
Recommends:	gstreamer%{gstapi}-plugins-good
Recommends:	gstreamer%{gstapi}-plugins-bad
Recommends:	gstreamer%{gstapi}-plugins-ugly
Recommends:	gstreamer%{gstapi}-ffmpeg
Requires:	gnome-icon-theme-legacy
Requires:	gnome-icon-theme-symbolic

%description
Pitivi is a Non Linear Video Editor using the popular GStreamer media
framework.

%files -f %{name}.lang
%doc AUTHORS NEWS
%{python3_sitearch}/%{name}/
%{_bindir}/%{name}
%{_datadir}/applications/org.%{name}.Pitivi.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/hicolor/scalable/mimetypes/text-x-xges.svg
%{_datadir}/metainfo/org.%{name}.Pitivi.appdata.xml
%{_datadir}/mime/packages/org.%{name}.Pitivi-mime.xml
%{_datadir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0

# install python files to %%{python3_sitelib}/%{name}
sed -i 's|/%{name}/python/|/python%{py3_ver}/site-packages/|g' meson.build

# https://gitlab.gnome.org/GNOME/pitivi/commit/0f3e399e387e64dcc3c5015a8aacb26fbe49800f
sed -i "/Pycairo_CAPI/d" %{name}/coptimizations/renderer.c

rm -rf subprojects/gst-transcoder
sed -i "/subproject('gst-transcoder')/d" meson.build
sed -i "/gst_transcoder_dep/d" meson.build

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6496 |21cr|pius-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for signing and emailing all UIDs on a set of PGP keys
Name:		pius
Version:	3.0.0
Release:	1
License:	GPLv2
Group:		Networking/Mail
URL:		http://www.phildev.net/pius
Source0:	https://github.com/jaymzh/pius/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
Requires:	python3

%description
The PGP Individual UID Signer (PIUS) is a tool for individually
signing all of the UIDs on a set of keys and encrypt-emailing each
one to it's respective email address. This drastically reduces the time
and errors involved in signing keys after a key signing party.

%prep
%setup -q 

%build

%install
install -pdm 755 %{buildroot}%{_bindir}
install -p  %{name} %{name}-* -t %{buildroot}%{_bindir}

%files
%{_bindir}/%{name}
%{_bindir}/%{name}-keyring-mgr
%{_bindir}/%{name}-report
%{_bindir}/%{name}-party-worksheet
%doc COPYING %{name}.spec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6497 |21cr|pixelart-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 66012
# category Package
# catalogue-ctan /graphics/pgf/contrib/pixelart
# catalog-date 2023-29-12 20:55:09 +0200
# catalogue-license lppl1.3
# catalogue-version 1.0.2
Summary:	Draw pixel-art pictures
Name:		pixelart
Version:	1.0.2
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://ctan.org/tex-archive/graphics/pgf/contrib/pixelart
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pixelart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pixelart.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
BuildArch:	noarch

%description
A LuaLaTeX package to draw pixel-art pictures using TikZ.

%files
%{_texmfdistdir}/tex/latex/pixelart
%doc %{_texmfdistdir}/doc/latex/pixelart

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6498 |21cr|pixelize-1.0.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pixelize
Summary:	A program to build larger pictures from hundreds of smaller images 
Version:	1.0.0
Release:	13
Source0:	ftp://lashwhip.com/pub/%{name}-%{version}.tar.gz
Patch0:		pixelize-1.0.0-fix_overlinking.patch
URL:		http://lashwhip.com/pixelize.html
Group:		Graphics
License:	GPLv2+
BuildRequires:	gtk2-devel

%description
Pixelize is a program that will use many scaled down images to
try to duplicate, as closely as possible, another image. It
works by splitting up the image you want rendered (or duplicated)
into a grid of small rectangular areas. Each area is analyzed,
and replaced with an image chosen from a large database of images.
Pixelize tries to pick images that best match each area. It works
best when it can choose images from a very large database of images.
With about 1000 images, Pixelize can do a reasonable job.

%prep
%setup -q
%patch0 -p0

%build
CFLAGS="%{optflags}" DFLAGS="%{ldflags} -lgdk-x11-2.0 -lgobject-2.0 -lm" %make

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
install -m 755 pixelize %{buildroot}%{_bindir}
install -m 755 make_db	%{buildroot}%{_bindir}

#mdk menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Pixelize
Exec=%{_bindir}/%{name}
Icon=graphics_section
Terminal=false
Type=Application
Categories=Graphics;
MimeType=image/gif;image/jpeg;image/png;image/bmp;image/x-eps;image/x-ico;image/x-portable-bitmap;image/x-portable-pixmap;image/x-xbitmap;image/x-xpixmap;
EOF


%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root) 
%doc README LICENSE  
%{_bindir}/make_db
%{_bindir}/pixelize
%{_datadir}/applications/pixelize.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6499 |21cr|pixiewps-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pixiewps	
Version:	1.4.2
Release:	1
Summary:	An offline Wi-Fi Protected Setup brute-force utility 
Group:		Networking/Other
License:	GPLv3
Url:		https://github.com/wiire-a/pixiewps
Source0:	https://github.com/wiire-a/pixiewps/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(openssl)
BuildRequires:	glibc-devel
BuildRequires:	gcc

%description
Pixiewps is a tool written in C used to bruteforce offline the WPS PIN
exploiting the low or non-existing entropy of some software implementations,
the so-called "pixie-dust attack" discovered by Dominique Bongard in summer
2014.

%files
%doc README.md LICENSE.md
%{_bindir}/pixiewps
%{_mandir}/man1/pixiewps.1.*
#----------------------------------------------------------------------


%prep
%setup -q

%build
%make CFLAGS="%{build_cflags}" OPENSSL=1

%install
%makeinstall_std PREFIX="%{_prefix}"



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6500 |21cr|pjproject-2.12.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%{nil}
%global optflags %{optflags} -fcommon

%define	major 2
%define	libpj %mklibname pj %{major}
%define	libpjlibutil %mklibname pjlib-util %{major}
%define	libpjmedia %mklibname pjmedia %{major}
%define	libpjmediaaudiodev %mklibname pjmedia-audiodev %{major}
%define	liblibpjmediacodec %mklibname libpjmedia-codec %{major}
%define	libpjmediavideodev %mklibname pjmedia-videodev %{major}
%define	libpjnath %mklibname pjnath %{major}
%define	libpjsip %mklibname pjsip %{major}
%define	libpjsipsimple %mklibname pjsip-simple %{major}
%define	libpjsipua %mklibname pjsip-ua %{major}
%define	libpjsua %mklibname pjsua %{major}
%define	libpjsua2 %mklibname pjsua2 %{major}
%define	devname %mklibname %{name} -d

Summary:	Libraries for building embedded/non-embedded VoIP applications
Name:		pjproject
Version:	2.12.1
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.pjsip.org
Source0:	https://github.com/pjsip/pjproject/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Tell the build system not to use most of the third_party directory
Patch0:		pjproject_no_third_party.patch
# Keep the .pc file clean
# see https://bugzilla.redhat.com/show_bug.cgi?id=728302#c66
Patch1:		pjproject_fixup_pc_file.patch
# Add a config_site.h file to increase performance and set reasonable server
# configuration for running as a server and not just a client
Patch2:		pjproject_config_site.patch
BuildRequires:	gsm-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	SDL2-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libbcg729)
BuildRequires:	pkgconfig(libsrtp2)
BuildRequires:	pkgconfig(silk)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libyuv)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(openh264)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(uuid)

%description
This package provides the Open Source, comprehensive, high performance, small
footprint multimedia communication libraries written in C language for
building embedded/non-embedded VoIP applications.
It contains:
- PJSIP - Open Source SIP Stack
- PJMEDIA - Open Source Media Stack
- PJNATH - Open Source NAT Traversal Helper Library
- PJLIB-UTIL - Auxiliary Library
- PJLIB - Ultra Portable Base Framework Library
- PJSUA2 - Object Oriented abstractions layer for PJSUA.

#----------------------------------------------------------------------------

%package -n %{libpj}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpj}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpj}
%{_libdir}/libpj.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjlibutil}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjlibutil}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjlibutil}
%{_libdir}/libpjlib-util.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjmedia}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjmedia}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjmedia}
%{_libdir}/libpjmedia.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjmediaaudiodev}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjmediaaudiodev}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjmediaaudiodev}
%{_libdir}/libpjmedia-audiodev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{liblibpjmediacodec}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{liblibpjmediacodec}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{liblibpjmediacodec}
%{_libdir}/libpjmedia-codec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjmediavideodev}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjmediavideodev}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjmediavideodev}
%{_libdir}/libpjmedia-videodev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjnath}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjnath}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjnath}
%{_libdir}/libpjnath.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjsip}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjsip}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjsip}
%{_libdir}/libpjsip.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjsipsimple}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjsipsimple}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjsipsimple}
%{_libdir}/libpjsip-simple.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjsipua}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjsipua}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjsipua}
%{_libdir}/libpjsip-ua.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjsua2}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjsua2}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjsua2}
%doc COPYING
%{_libdir}/libpjsua2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpjsua}
Summary:	Shared library for building embedded/non-embedded VoIP applications
Group:		System/Libraries

%description -n %{libpjsua}
Shared library for building embedded/non-embedded VoIP applications.

%files -n %{libpjsua}
%{_libdir}/libpjsua.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files to use pjproject
Group:		Development/Other
Requires:	%{libpj} = %{EVRD}
Requires:	%{libpjlibutil} = %{EVRD}
Requires:	%{libpjmedia} = %{EVRD}
Requires:	%{libpjmediaaudiodev} = %{EVRD}
Requires:	%{liblibpjmediacodec} = %{EVRD}
Requires:	%{libpjmediavideodev} = %{EVRD}
Requires:	%{libpjnath} = %{EVRD}
Requires:	%{libpjsip} = %{EVRD}
Requires:	%{libpjsipsimple} = %{EVRD}
Requires:	%{libpjsipua} = %{EVRD}
Requires:	%{libpjsua} = %{EVRD}
Requires:	%{libpjsua2} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for:
- PJSIP - Open Source SIP Stack
- PJMEDIA - Open Source Media Stack
- PJNATH - Open Source NAT Traversal Helper Library
- PJLIB-UTIL - Auxiliary Library
- PJLIB - Ultra Portable Base Framework Library.

%files -n %{devname}
%doc README.txt README-RTEMS
%{_libdir}/lib*.so
%{_includedir}/pj++/
%{_includedir}/pj/
%{_includedir}/pjlib-util/
%{_includedir}/pjmedia-audiodev/
%{_includedir}/pjmedia-codec/
%{_includedir}/pjmedia-videodev/
%{_includedir}/pjmedia/
%{_includedir}/pjnath/
%{_includedir}/pjsip-simple/
%{_includedir}/pjsip-ua/
%{_includedir}/pjsip/
%{_includedir}/pjsua-lib/
%{_includedir}/pjsua2/
%{_includedir}/*.h
%{_includedir}/*.hpp
%{_libdir}/pkgconfig/libpjproject.pc

#----------------------------------------------------------------------------

%package -n pjsua
Summary:	Command line SIP user agent
Group:		Networking/Other

%description -n pjsua
pjsua is an open source command line SIP user agent (softphone) that is used
as the reference implementation for PJSIP, PJNATH, and PJMEDIA.
Despite its simple command line appearance, it does pack many features!

%files -n pjsua
%doc COPYING
%{_bindir}/pjsua

#----------------------------------------------------------------------------

%package -n python2-pjsua
Summary:	PJSUA Python Module
Group:		Development/Python

%description -n python2-pjsua
The PJSUA for Python Module is an object oriented Python wrapper/abstraction/
module for PJSUA API.

%files -n python2-pjsua
%doc pjsip-apps/src/python/samples
%{python2_sitearch}/_pjsua.so
%{python2_sitearch}/pjsua-*.egg-info
%{python2_sitearch}/pjsua.py*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Make sure we don't bundle these third-party libraries
# (They're excluded through ./configure, but this is an 
# additional safety net)
rm -rf third_party/BaseClasses
rm -rf third_party/bdsound
rm -rf third_party/bin
rm -rf third_party/g7221
rm -rf third_party/gsm
rm -rf third_party/milenage
rm -rf third_party/mp3
rm -rf third_party/portaudio
rm -rf third_party/resample
rm -rf third_party/speex
rm -rf third_party/srtp
rm -rf third_party/ilbc
rm -rf third_party/webrtc*
rm -rf third_party/build/baseclasses
rm -rf third_party/build/g7221
rm -rf third_party/build/gsm
rm -rf third_party/build/milenage
rm -rf third_party/build/portaudio/src
rm -rf third_party/build/resample
rm -rf third_party/build/samplerate
rm -rf third_party/build/speex
rm -rf third_party/build/srtp
rm -rf third_party/build/ilbc
rm -rf third_party/build/webrtc*


%build
export CFLAGS="-DPJ_HAS_IPV6=1 -DNDEBUG %{optflags}"

%configure \
	--enable-shared \
	--with-external-gsm \
	--with-external-pa \
	--with-external-speex \
	--with-external-srtp \
	--with-external-yuv \
	--disable-libwebrtc \
	--disable-libwebrtc-aec3 \
	--disable-g7221-codec \
	--disable-ilbc-codec \
	--disable-resample

%make dep
%make

pushd pjsip-apps/src/python
	%py2_build
popd


%install
%makeinstall_std

pushd pjsip-apps/src/python
	%py2_install
popd

install -p -D -m 0755 pjsip-apps/bin/pjsua-* %{buildroot}%{_bindir}/pjsua

# Remove the static libraries, as they aren't wanted
find %{buildroot} -type f -name "*.a" -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6501 |21cr|pkgdiff-1.7.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for analyzing changes in Linux software packages
Name:		pkgdiff
Version:	1.7.2
Release:	3
Group:		Development/Other
License:	GPLv2+
URL:		https://github.com/lvc/pkgdiff
Source0:	https://github.com/lvc/pkgdiff/archive/%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires:	perl
Requires:	wdiff
Requires:	binutils
Requires:	gawk
Recommends:	abi-compliance-checker >= 1.99.1
Recommends:	abi-dumper >= 0.97

%description
Package Changes Analyzer (pkgdiff) - a tool for visualizing changes in Linux
software packages (RPM, DEB, TAR.GZ, etc).

%files
%doc LICENSE README doc/
%{_bindir}/%{name}
%{_datadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q
chmod 0644 LICENSE README


%build
# Nothing to build.


%install
mkdir -p %{buildroot}%{_prefix}
perl Makefile.pl -install --prefix=%{_prefix} --destdir=%{buildroot}

chmod 755 %{buildroot}%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6502 |21cr|pktstat-1.8.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Displays a live list of active connections and what files are being transferred
Name: 		pktstat
Version:	1.8.5
Release:	4
Group: 		Monitoring
Url:		http://www.adaptive-enterprises.com.au/~d/software/pktstat/
License: 	BSD
Source0: 	http://www.adaptive-enterprises.com.au/~d/software/pktstat/%{name}-%{version}.tar.gz
BuildRequires:	libpcap-devel ncurses-devel

%description
Display a real-time list of active connections seen on a network interface, 
and how much bandwidth is being used by what. Partially decodes HTTP and FTP
protocols to show what filename is being transferred. X11 application names 
are also shown. Entries hang around on the screen for a few seconds so you
can see what just happened. Also accepts filter expressions.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

%files
%doc COPYING NEWS README
%{_bindir}/pktstat
%{_mandir}/man1/pktstat*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6503 |21cr|plane-dark-rospo-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Plane-Dark-Rospo

Summary:	%{theme_name} theme
Name:		plane-dark-rospo
Version:	1.0
Release:	4
License:	GPL
Group:		Graphics
Url:		https://www.vk.com/xfce_rospo/
Source0:	Plane-Dark-Rospo.tar.bz2
BuildArch:	noarch
Requires:	plane-dark-rospo-gtk2-theme
Requires:	plane-dark-rospo-gtk3-theme
Requires:	plane-dark-rospo-metacity-theme

%description
Fork Plane-Dark GTK2, GTK3 and Metacity theme from ROSPO.

%files

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires:	gnome-themes-standard
Requires:	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme.

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires:	gnome-themes-standard
Requires:	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme.

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package metacity-theme
Summary:	%{theme_name} Metacity themes
Group:		Graphics
Requires:	metacity

%description metacity-theme
Themes for Metacity as part of the %{theme_name} theme.

%files metacity-theme
%{_datadir}/themes/%{theme_name}/metacity-1/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE0} -C %{buildroot}%{_datadir}/themes
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6504 |21cr|planet-rider-20151103-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Planet-Rider

Name:           planet-rider
Version:        20151103
Release:        2
Summary:        Alien bike racing game
License:        GPLv3+
Group:          Games/Arcade
Url:            https://fede0d.github.io/game/2015/10/31/planet-rider.html
Source0:        https://github.com/FEDE0D/Planet-Rider/archive/master.zip
BuildRequires:  imagemagick
Requires:       godot2-runner
BuildArch:      noarch

%description
A delivery man is lost on this alien planet and the 
only way to return home
is to escape using his hover bike.
Collect gasoline cans and power the engines 
on this long trip to the rescue zone.
The levels are randomly generated so 
each play is different!

%files
%doc LICENSE *.md
%{_gamesbindir}/%{oname}
%{_gamesdatadir}/%{oname}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
#----------------------------------------------------------------

%prep
%setup -qn %{oname}-master

%build

%install
install -dm755 %{buildroot}%{_gamesdatadir}/%{oname}
cp -R -t %{buildroot}%{_gamesdatadir}/%{oname} project/*

# Install Gamewrapper
install -dm755 %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{oname} << EOF
#!/bin/sh
godot2-runner -path "%{_gamesdatadir}/%{oname}" $@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{oname}


for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size design/icon/icon.svg \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done


#menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{oname}
GenericName=%{oname}
Comment=%{name}
Exec=%{oname}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6505 |21cr|plank-0.11.89-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A port of docky to Vala
Name:		plank
Version:	0.11.89
Release:	1
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://launchpad.net/plank
Source0:	https://launchpad.net/%{name}/1.0/%{version}/+download/%{name}-%{version}.tar.xz
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(dbusmenu-gtk3-0.4)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libbamf3)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libgnome-menu-3.0)
Requires:	bamf-daemon
Conflicts:	%{_lib}plank1 < 0.11.2-2

%description
A very simple dock written in Vala.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}
%{_datadir}/metainfo/plank.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/glib-2.0/schemas/net.launchpad.%{name}.gschema.xml
%{_libdir}/%{name}/docklets/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	vala-tools
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}
%{_datadir}/vala/vapi/%{name}.vapi
%{_datadir}/vala/vapi/%{name}.deps

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-dbusmenu
%make LIBS="-lm"

%install
%makeinstall_std
# Don't use apport
rm -f %{buildroot}%{_sysconfdir}/apport/crashdb.conf.d/%{name}-crashdb.conf
rm -f %{buildroot}%{_datadir}/apport/package-hooks/source_%{name}.py

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6506 |21cr|plano-rospo-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Plano-Rospo

Summary:	%{theme_name} theme
Name:		plano-rospo
Version:	1.0
Release:	5
License:        GPLv3+
Group:		Graphics
Url:		https://www.vk.com/xfce_rospo/
Source0:	Plano-Rospo.tar.bz2
BuildArch:	noarch
Requires: 	plano-rospo-common
Requires: 	plano-rospo-gtk2-theme
Requires: 	plano-rospo-gtk3-theme
Requires: 	plano-rospo-gnome-shell-theme
Requires: 	plano-rospo-openbox-theme
Requires: 	plano-rospo-xfwm4-theme

%description
Fork Plano GTK2,GTK3,Gnome Shell,XFWM,Openbox theme from ROSPO

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to %{theme_name} themes
Group:		Graphics

%description common
Files which are common to all %{theme_name} themes

%files common
%{_datadir}/themes/%{theme_name}/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package gnome-shell-theme
Summary:	%{theme_name} gnome-shell themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description gnome-shell-theme
Themes for Gnome Shell as part of the %{theme_name} theme

%files gnome-shell-theme
%{_datadir}/themes/%{theme_name}/gnome-shell/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires: 	gnome-themes-standard
Requires:	%{name}-common = %{EVRD}
Requires: 	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%package openbox-theme
Summary:	%{theme_name} Openbox themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	openbox

%description openbox-theme
Themes for Openbox as part of the %{theme_name} theme

%files openbox-theme
%{_datadir}/themes/%{theme_name}/openbox-3/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {index.theme,gtk-2.0,gtk-3.0,gnome-shell,xfwm4,openbox-3} %{buildroot}%{_datadir}/themes/%{theme_name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6507 |21cr|plano-theme-4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plano theme for GTK+2, GTK+3, Xfwm, GNOME Shell, Openbox
Name:		plano-theme
License:	GPLv3+
Group:		Graphics
Version:	4.0
Release:	1
Url:		https://github.com/lassekongo83/plano-theme
Source0:	https://github.com/lassekongo83/plano-theme/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Recommends:	plano-theme-gtk2
Recommends:	plano-theme-gtk3
Recommends:	plano-theme-gtk4
Recommends:	plano-theme-gnome-shell
Recommends:	plano-theme-openbox
Recommends:	plano-theme-xfwm4
BuildRequires:	%{_bindir}/sassc
BuildRequires:	meson
BuildArch:	noarch

%description
Meta-package of Plano theme for GTK+2, GTK+3, GTK+4, Xfwm, GNOME Shell and Openbox

%files
%license LICENSE
%doc README.md

#----------------------------------------------------------------------------

%package common
Summary:	Files common to Plano themes
Group:		Graphics

%description common
Files which are common to all plano-theme-* packages

%files common
%license LICENSE
%doc README.md
%dir %{_datadir}/themes/{Plano,Plano-dark-titlebar}
%{_datadir}/themes/{Plano,Plano-dark-titlebar}/index.theme

#----------------------------------------------------------------------------

%package gtk2
Summary:	Plano GTK+2 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
# XXX GTK+2 engines (are these deps correct?)
Requires: 	murrine
Requires: 	gdk-pixbuf2.0

%description gtk2
Themes for GTK+2 as part of the Plano theme

%files gtk2
%license LICENSE
%doc README.md
%{_datadir}/themes/{Plano,Plano-dark-titlebar}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3
Summary:	Plano GTK+3 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description gtk3
Themes for GTK+3 as part of the Plano theme

%files gtk3
%license LICENSE
%doc README.md
%{_datadir}/themes/{Plano,Plano-dark-titlebar}/gtk-3.0/

#----------------------------------------------------------------------------

%package gtk4
Summary:	Plano GTK+4 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description gtk4
Themes for GTK+4 as part of the Plano theme

%files gtk4
%license LICENSE
%doc README.md
%{_datadir}/themes/{Plano,Plano-dark-titlebar}/gtk-4.0/

#----------------------------------------------------------------------------

%package gnome-shell
Summary:	Plano gnome-shell themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description gnome-shell
Themes for Gnome Shell as part of the Plano theme

%files gnome-shell
%license LICENSE
%doc README.md
%{_datadir}/themes/{Plano,Plano-dark-titlebar}/gnome-shell/

#----------------------------------------------------------------------------

%package xfwm4
Summary:	Plano Xfwm4 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description xfwm4
Themes for Xfwm4 as part of the Plano theme

%files xfwm4
%license LICENSE
%doc README.md
%{_datadir}/themes/{Plano,Plano-dark-titlebar}/xfwm4/

#----------------------------------------------------------------------------

%package openbox
Summary:	Plano Openbox themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}

%description openbox
Themes for Openbox as part of the Plano theme

%files openbox
%license LICENSE
%doc README.md
%{_datadir}/themes/{Plano,Plano-dark-titlebar}/openbox-3/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6508 |21cr|plasma5-applet-advancedradio-0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define oname plasma-applets-advancedradio

Summary:	Plasma 5 applet for playing internet radio
Name:		plasma5-applet-advancedradio
Version:	0.8
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1313987/
Source0:	plasma-applets-advancedradio-%{version}.tar.xz
Source1:	plasma5-applet-eventcalendar.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	plasma5-workspace-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)
Requires:	%{_lib}qt5multimedia5

%description
Plasma 5 plasmoid for playing internet radio.

%files -f plasma_applet_org.kde.plasma.advancedradio.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.advancedradio/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.advancedradio/*
%{_kde5_services}/plasma-applet-org.kde.plasma.advancedradio.desktop
%{_qt5_plugindir}/plasma/applets/plasma_applet_advancedradio.so
%{_appdatadir}/org.kde.plasma.advancedradio.appdata.xml

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5_kf5locales
%make

%install
%make_install -C build

%find_lang plasma_applet_org.kde.plasma.advancedradio
%kf5locales_fix plasma_applet_org.kde.plasma.advancedradio.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6509 |21cr|plasma5-applet-bumblebee-indicator-0.70-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

Summary:	Plasma 5 applet to display Bumblebee indicator
Name:		plasma5-applet-bumblebee-indicator
Version:	0.70
Release:	1
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/998890
Source0:	https://github.com/bxabi/bumblebee-indicator/archive/refs/tags/%{version}.tar.gz?/bumblebee-indicator-%{version}.tar.gz
Patch0:		plasma5-applet-bumblebee-indicator-0.70-desktop.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5plasma-devel
Recommends:	bumblebee

%description
Plasma 5 applet that indicates the on or off status and temperature
of the Nvidia card on the Optimus systems, when Bumblebee is used.

%files
%doc README.md
%{_kde5_services}/plasma-applet-bumblebee-kde5-plasmoid.desktop
%{_kde5_datadir}/plasma/plasmoids/bumblebee-kde5-plasmoid/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n bumblebee-indicator-%{version}

# fix path for nvidia-smi binary
sed -i -e 's|/usr/lib/nvidia-$version|%{_libdir}/nvidia|' plasmoid/contents/ui/locate-nvidia-smi.sh

sed -i -e 's|/usr/bin/nvidia-smi|%{_libdir}/nvidia/bin/nvidia-smi|' plasmoid/contents/ui/locate-nvidia-smi.sh

%build
%cmake_kde5

%make

%install
%makeinstall_std -C build

chmod +x %{buildroot}%{_kde5_datadir}/plasma/plasmoids/bumblebee-kde5-plasmoid/contents/ui/locate-nvidia-smi.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6510 |21cr|plasma5-applet-csputils-1.0.1-1.git9d7fe0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 9d7fe08b5ba6c350912cba8d841b9f09452adc24
%define commit_short %(echo %{commit} | head -c6)
%define projname plasma-applet-csputils

Summary(ru_RU.UTF-8): Апплет управления сертификатами электронной подписи КриптоПро
Summary:	CryptoPro Electronic Signature Certificate Management
Name:		plasma5-applet-csputils
Version:	1.0.1
Release:	1.git%{commit_short}.1
License:	LGPLv2.1
Group:		Graphical desktop/KDE
Url:		https://hub.mos.ru/vmkspv/%{projname}
Source0:	https://hub.mos.ru/vmkspv/%{projname}/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch:	noarch
Requires:	/opt/cprocsp/bin/amd64/certmgr
Requires:	/opt/cprocsp/bin/amd64/csptest
Requires:	/opt/cprocsp/bin/amd64/csptestf
Requires:	/opt/cprocsp/bin/amd64/cryptcp
Requires:	/opt/cprocsp/bin/amd64/cptools

%description
The applet is designed to manage electronic signature certificates in
a user environment through the CryptoPro cryptoprovider. It is
compatible with Mastech Desktop 12. Packages from
the standard CryptoPro CSP 5.0 package for Linux are required for operation.

Opportunities:
- Displaying data from the cryptoprovider.
- Installing the certificate from the key carrier.
- Output information about the installed certificate.
- Clearing the user's personal certificate storage.
- Local testing of the electronic signature.
- Quick access to CryptoPro Tools.
- Notification of the imminent expiration of the certificate.
- Checking the contents of the key media.

The project is an independent development and has no financial support,
official affiliation or any other connection with CRYPTOPRO LLC.

%description -l ru_RU.UTF-8
Апплет предназначен для управления сертификатами электронной подписи в
пользовательском окружении через криптопровайдер «КриптоПро». Обеспечена
совместимость с MOSTech Desktop 12. Для работы необходимы пакеты из стандартной
поставки «КриптоПро CSP 5.0» для Linux.

Возможности:
- Отображение данных из криптопровайдера.
- Установка сертификата с ключевого носителя.
- Вывод информации об установленном сертификате.
- Очистка личного хранилища сертификатов пользователя.
- Локальное тестирование электронной подписи.
- Быстрый доступ к «Инструментам КриптоПро».
- Уведомление о скором истечении сертификата.
- Проверка содержимого ключевого носителя.

Проект является независимой разработкой и не имеет финансовой поддержки,
официальной аффилиации или любой другой связи с ООО «КРИПТО-ПРО».

%files
%{_datadir}/plasma/plasmoids/ru.mos.mfc.csputils

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{projname}-%{commit}

%install
mkdir -p %{buildroot}%{_datadir}/plasma/plasmoids/ru.mos.mfc.csputils/contents/ui
install -m644 metadata.json %{buildroot}%{_datadir}/plasma/plasmoids/ru.mos.mfc.csputils
install -m644 contents/ui/main.qml  %{buildroot}%{_datadir}/plasma/plasmoids/ru.mos.mfc.csputils/contents/ui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6511 |21cr|plasma5-applet-drawer-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-drawer

Summary:	A fullscreen customizable launcher with application directories and krunner-like search for KDE Plasma
Name:		plasma5-applet-drawer
Version:	1.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1973454
Source0:	https://codeload.github.com/P-Connor/%{oname}/tar.gz/refs/tags/v1.1/%{oname}-%{version}.tar.gz
Patch0:		plasma-drawer-rosa.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	plasma5-workspace-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)

%description
A fullscreen customizable launcher with application
directories and krunner-like search for KDE Plasma.

%files -f plasma_applet_P-Connor.PlasmaDrawer.lang
%dir %{_kde5_datadir}/plasma/plasmoids/P-Connor.PlasmaDrawer/
%{_kde5_datadir}/plasma/plasmoids/P-Connor.PlasmaDrawer/*
%{_qt5_plugindir}/plasma/applets/plasma_applet_drawer.so

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_P-Connor.PlasmaDrawer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6512 |21cr|plasma5-applet-eventcalendar-76-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-applet-eventcalendar

Summary:	Plasma 5 applet for displaying weather information and calendar
Name:		plasma5-applet-eventcalendar
Version:	76
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	plasma-applet-eventcalendar-76.tar.gz
Source1:	plasma-applet-eventcalendar-76_po.tar.gz
Source2:	%{name}.rpmlintrc
Patch0:		plasma-applets-eventcalendar-56-cmake.patch
Patch1:		plasma-applets-eventcalendar-57-locales.patch
Patch2:		plasma-applets-eventcalendar-56-GoogleCalendar.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	plasma5-workspace-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)
Requires:	%{_lib}qt5multimedia5


%description
Plasma 5 plasmoid for a calendar+agenda with 
weather that synchs to Google Calendar.

%files -f plasma_applet_org.kde.plasma.eventcalendar.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.eventcalendar/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.eventcalendar/*
%{_kde5_services}/plasma-applet-org.kde.plasma.eventcalendar.desktop
%{_qt5_plugindir}/plasma/applets/plasma_applet_eventcalendar.so
%{_appdatadir}/org.kde.plasma.eventcalendar.appdata.xml

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

tar -xvzf %{SOURCE1}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_org.kde.plasma.eventcalendar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6513 |21cr|plasma5-applet-navdexiemenu-0.13-0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-navdexie

Summary:	Plasma 5 applet that provides simple menu
Name:		plasma5-applet-navdexiemenu
Version:	0.13
Release:	0.1
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1324206/
Source0:	%{oname}-%{version}.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildArch:	noarch

%description
NavDexie Menu is an intentionally minimal launcher widget for Plasma 5.

%files -f plasma_applet_org.kde.plasma.navdexie.lang
%doc COPYING
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.navdexie
%{_kde5_services}/plasma-applet-org.kde.plasma.navdexie.desktop
%{_appdatadir}/org.kde.plasma.navdexie.appdata.xml

#--------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
find . -type f | xargs chmod 0644

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_org.kde.plasma.navdexie

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6514 |21cr|plasma5-applet-netspeed-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-applet-netspeed-widget

Summary:	Plasma 5 applet netspeed
Name:		plasma5-applet-netspeed
Version:	1.9
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/content/show.php/Netspeed+Widget?content=174753
Source0:	https://github.com/dfaust/%{oname}/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		plasma-applet-netspeed-widget-master-cmake.patch
Patch1:		plasma-applet-netspeed-widget-master-fix_locale_string.patch
Patch2:		plasma-applet-netspeed-widget-master-russian.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
Requires:	qt5-qtquick-qml
BuildArch:	noarch

%description
Plasma 5 widget that displays the currently used network bandwidth.

%files -f plasma_applet_org.kde.netspeedWidget.lang
%{_kde5_datadir}/plasma/plasmoids/org.kde.netspeedWidget/
%{_kde5_services}/plasma-applet-org.kde.netspeedWidget.desktop
%{_appdatadir}/org.kde.netspeedWidget.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_org.kde.netspeedWidget

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6515 |21cr|plasma5-applet-rosaexpo-5.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rosaexpo

Summary:	Plasma 5 show desktop grid applet
Name:		plasma5-applet-%{oname}
Version:	5.1
Release:	7
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://rosalab.ru
# No public Url yet
Source0:	%{oname}-%{version}.tar.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5plasma-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Qml)

%description
Plasma 5 show desktop grid applet. It only calls Show Desktop Grid KWin effect.

%files
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.rosaexpo/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.rosaexpo/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/rosaexpo/
%{_kde5_qmldir}/org/kde/plasma/private/rosaexpo/*
%{_kde5_services}/plasma-applet-org.kde.plasma.rosaexpo.desktop
%{_appdatadir}/org.kde.plasma.rosaexpo.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6516 |21cr|plasma5-applet-simplemenu-1.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-simplemenu

Summary:	Plasma 5 applet that provides simple menu
Name:		plasma5-applet-simplemenu
Version:	1.0.12
Release:	1
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1169537/
# https://github.com/KDE/plasma-simplemenu
Source0:	https://github.com/KDE/plasma-simplemenu/archive/refs/tags/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		plasma-simplemenu-master1.0.4-cmake.patch
Patch1:		plasma-simplemenu-master1.0.4-russian.patch
Patch2:		plasma-simplemenu-master1.0.12-desktop.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildArch:	noarch

%description
Simple Menu is an intentionally minimal launcher widget for Plasma 5.

Powered by the same powerful backend as Plasma 5's bundled launchers, its
UI is similar to the fullscreen Application Dashboard, just in a small,
floating window. In addition to the application grid and filtering, it
supports favorites, search and basic system actions.

%files -f plasma_applet_org.kde.plasma.simplemenu.lang
%doc COPYING
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.simplemenu
%{_kde5_services}/plasma-applet-org.kde.plasma.simplemenu.desktop
%{_appdatadir}/org.kde.plasma.simplemenu.appdata.xml

#--------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
find . -type f | xargs chmod 0644

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_org.kde.plasma.simplemenu

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6517 |21cr|plasma5-applet-supergfxctl-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname supergfxctl-plasmoid

Summary:	KDE Plasma plasmoid for supergfxctl
Name:		plasma5-applet-supergfxctl
Version:	1.2.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1973454
Source0:	https://codeload.github.com/P-Connor/%{oname}/tar.gz/refs/tags/v1.1/%{oname}-v%{version}.tar.gz
Source1:	supergfxctl-plasmoid-ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:	supergfxctl

%description
KDE Plasma plasmoid for supergfxctl.

%files
%dir %{_kde5_datadir}/plasma/plasmoids/dev.jhyub.supergfxctl/
%{_kde5_datadir}/plasma/plasmoids/dev.jhyub.supergfxctl/*
%{_iconsdir}/hicolor/scalable/status/supergfxctl-plasmoid-*
%{_localedir}/*/LC_MESSAGES/plasma_applet_dev.jhyub.supergfxctl.mo
%{_qt5_plugindir}/plasma/applets/plasma_applet_supergfxctl.so
%{_appdatadir}/dev.jhyub.supergfxctl.appdata.xml
%{_kde5_services}/plasma-applet-dev.jhyub.supergfxctl.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-v%{version}

pushd translation
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6518 |21cr|plasma5-applet-tiledmenu-45-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-applet-tiledmenu

Summary:	A menu based on Windows 10's Start Menu
Name:		plasma5-applet-tiledmenu
Version:	45
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://github.com/Zren/plasma-applet-tiledmenu
Source0:	https://github.com/Zren/plasma-applet-tiledmenu/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz

Requires:	plasma5-workspace
Provides:	%{oname} = %{EVRD}
BuildArch:	noarch


%description
A menu based on Windows 10's Start Menu.

%files
%doc Changelog.md ReadMe.md
%{_datadir}/plasma/plasmoids/com.github.zren.tiledmenu

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
chmod +x package/translate/plasmoidlocaletest

%install
mkdir -p %{buildroot}%{_datadir}/plasma/plasmoids/
cp -r package %{buildroot}%{_datadir}/plasma/plasmoids/com.github.zren.tiledmenu

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6519 |21cr|plasma5-applet-weather-widget-1.6.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-applet-weather-widget

Summary:	Plasma 5 weather widget applet
Name:		plasma5-applet-weather-widget
Version:	1.6.10
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://github.com/kotelnik/plasma-applet-weather-widget
Source0:	plasma-applet-weather-widget-master.zip
Patch0:		plasma-applet-weather-widget-master-fix_string_translate.patch
Patch1:		plasma-applet-weather-widget-master-russian.patch
Patch2:		plasma-applet-weather-widget-master-desktop.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
Requires:	%{_lib}qt5xmlpatterns5

%description
Plasma 5 applet for showing weather information from yr.no and
Open Weather Map servers.

%files -f plasma_applet_org.kde.weatherWidget.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.weatherWidget/
%{_kde5_datadir}/plasma/plasmoids/org.kde.weatherWidget/*
%{_kde5_services}/plasma-applet-org.kde.weatherWidget.desktop
%dir %{_kde5_qmldir}/org/kde/private/weatherWidget/
%{_kde5_qmldir}/org/kde/private/weatherWidget/*
%{_appdatadir}/org.kde.weatherWidget.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n plasma-applet-weather-widget-master

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_org.kde.weatherWidget

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6520 |21cr|plasma5-aurorae-theme-neru-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Themes of the top bar for Arorae
Name:		plasma5-aurorae-theme-neru
Version:	1.0
Release:	1
License:	LGPLv3
Group:		Graphical desktop/KDE         
Url:		https://github.com/chistota/plasma5-aurorae-theme-neru/
Source0:	https://github.com/chistota/plasma5-aurorae-theme-neru/archive/v1.0.tar.gz
BuildArch:	noarch



%description
Light and dark themes of the top bar for Arorae.

%files
%doc AUTHORS LICENSE

#----------------------------------------------------------------------------

%package	dark
Summary:	Dark theme of the top bar for Arorae
Group:		Graphical desktop/KDE

%description dark
Dark theme of the top bar for Arorae.

%files dark
%doc AUTHORS LICENSE
%dir %{_datadir}/aurorae/themes/NeruAuroraeDark
%{_datadir}/aurorae/themes/NeruAuroraeDark/*

#----------------------------------------------------------------------------

%package	light
Summary:	Light theme of the top bar for Arorae
Group:		Graphical desktop/KDE

%description light
Light theme of the top bar for Arorae.

%files light
%doc AUTHORS LICENSE
%dir %{_datadir}/aurorae/themes/NeruAurоrаеLight
%{_datadir}/aurorae/themes/NeruAurоrаеLight/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/aurorae/themes/
cp -r {NeruAurоrаеLight,NeruAuroraeDark} %{buildroot}%{_datadir}/aurorae/themes/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6521 |21cr|plasma5-aurorae-theme-rospo-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dname	neru
%define doname	plasma5-aurorae-theme-%{dname}
%define dver	1.0

Summary:	Themes of the top bar for Arorae
Name:		plasma5-aurorae-theme-rospo
Version:	1.1
Release:	3
License:	LGPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/
Source0:	https://github.com/chistota/plasma5-aurorae-theme-rospo/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/chistota/%{doname}/archive/v%{dver}.tar.gz?/%{doname}-%{dver}.tar.gz
BuildRequires:	svgcleaner
Requires:	%{name}-dark
Requires:	%{name}-light
BuildArch:	noarch

%description
Light and dark themes of the top bar for Arorae.

%files
%doc AUTHORS LICENSE

#----------------------------------------------------------------------------

%package	dark
Summary:	Dark theme of the top bar for Arorae
Group:		Graphical desktop/KDE

%description dark
Dark theme of the top bar for Arorae.

%files dark
%doc AUTHORS LICENSE
%dir %{_datadir}/aurorae/themes/RospoAuroraeDark
%{_datadir}/aurorae/themes/RospoAuroraeDark/*

#----------------------------------------------------------------------------

%package	light
Summary:	Light theme of the top bar for Arorae
Group:		Graphical desktop/KDE

%description light
Light theme of the top bar for Arorae.

%files light
%doc AUTHORS LICENSE
%dir %{_datadir}/aurorae/themes/RospoAurоrаеLight
%{_datadir}/aurorae/themes/RospoAurоrаеLight/*

#----------------------------------------------------------------------------

%prep
%setup -q -a1

%build

%install
mv -f %{doname}-%{dver}/NeruAuroraeDark/*.svg RospoAuroraeDark/
mv -f %{doname}-%{dver}/NeruAurоrаеLight/*.svg RospoAurоrаеLight/
install -d %{buildroot}%{_datadir}/aurorae/themes
cp -R RospoAurоrаеLight RospoAuroraeDark %{buildroot}%{_datadir}/aurorae/themes/
find %{buildroot} -type f |grep .svg |grep -v .svgz > filelist.txt
for i in $(cat filelist.txt); do svgcleaner --quiet $i $i; svgcleaner --quiet $i $i; svgcleaner --quiet $i $i; done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6522 |21cr|plasma5-color-scheme-neru-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	White and Dark Neru color theme
Name:		plasma5-color-scheme-neru
Version:	1.0
Release:	1
License:	LGPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-color-scheme-neru
Source0:	https://github.com/chistota/plasma5-color-scheme-neru/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc LICENSE README.md
%dir %{_datadir}/color-schemes
%{_datadir}/color-schemes/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/color-schemes
cp -R color-scheme/* %{buildroot}%{_datadir}/color-schemes/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6523 |21cr|plasma5-color-scheme-rospo-1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dname	neru
%define doname	plasma5-color-scheme-%{dname}
%define dver	1.0

Summary:	ROSPO color theme for plasma5
Name:		plasma5-color-scheme-rospo
Version:	1.5
Release:	2
License:	LGPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/
Source0:	https://github.com/chistota/%{doname}/archive/v%{dver}.tar.gz?/%{doname}-%{dver}.tar.gz
Requires:	%{name}-dark
Requires:	%{name}-light
BuildArch:	noarch

%description
Light and Dark %{summary}.

%files
%doc LICENSE

#----------------------------------------------------------------------------

%package	dark
Summary:	Dark color theme for plasma5
Group:		Graphical desktop/KDE

%description dark
Dark color theme for plasma5.

%files dark
%doc LICENSE
%dir %{_datadir}/color-schemes
%{_datadir}/color-schemes/RospoDark.colors

#----------------------------------------------------------------------------

%package	light
Summary:	Light color theme for plasma5
Group:		Graphical desktop/KDE

%description light
Light color theme for plasma5.

%files light
%doc LICENSE
%dir %{_datadir}/color-schemes
%{_datadir}/color-schemes/RospoWhite.colors

#----------------------------------------------------------------------------

%prep
%setup -qn %{doname}-%{dver}

%build

%install
mv -f color-scheme/NeruDark.colors color-scheme/RospoDark.colors
mv -f color-scheme/NeruLight.colors color-scheme/RospoWhite.colors
install -d %{buildroot}%{_datadir}/color-schemes
cp -R color-scheme/* %{buildroot}%{_datadir}/color-schemes/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6524 |21cr|plasma5-desktoptheme-neru-city-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru desktop themes for plasma5
Name:		plasma5-desktoptheme-neru-city
Version:	1.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-desktoptheme-neru-city
Source0:	https://github.com/chistota/plasma5-desktoptheme-neru-city/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Recommends:	plasma5-wallpaper-neru-city
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/plasma/desktoptheme
%{_datadir}/plasma/desktoptheme/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/plasma/desktoptheme
cp -R neru-city-dark-desktop neru-city-light-desktop %{buildroot}%{_datadir}/plasma/desktoptheme/
rm %{buildroot}%{_datadir}/*/*/*/*/.directory

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6525 |21cr|plasma5-desktoptheme-neru-newyear-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru NewYear desktop themes for plasma5
Name:		plasma5-desktoptheme-neru-newyear
Version:	1.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-desktoptheme-neru-newyear
Source0:	https://github.com/chistota/plasma5-desktoptheme-neru-newyear/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Recommends:	plasma5-wallpaper-neru-newyear
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/plasma/desktoptheme
%{_datadir}/plasma/desktoptheme/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/plasma/desktoptheme
cp -R neru-newyear-dark-desktop neru-newyear-light-desktop %{buildroot}%{_datadir}/plasma/desktoptheme/
rm %{buildroot}%{_datadir}/*/*/*/*/.directory

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6526 |21cr|plasma5-desktoptheme-neru-rospo-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru ROSPO desktop themes for plasma5
Name:		plasma5-desktoptheme-neru-rospo
Version:	1.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-desktoptheme-neru-rospo
Source0:	https://github.com/chistota/plasma5-desktoptheme-neru-rospo/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Recommends:	plasma5-wallpaper-neru-rospo
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/plasma/desktoptheme
%{_datadir}/plasma/desktoptheme/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/plasma/desktoptheme
cp -R neru-rospo-dark-desktop neru-rospo-light-desktop %{buildroot}%{_datadir}/plasma/desktoptheme/
rm %{buildroot}%{_datadir}/*/*/*/*/.directory

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6527 |21cr|plasma5-desktoptheme-rosa-experimental-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 ROSA Experimental desktop theme
Name:		plasma5-desktoptheme-rosa-experimental
Version:	0.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5plasma-devel
BuildArch:	noarch

%description
Plasma 5 ROSA Experimental desktop theme.

%files
%dir %{_kde5_datadir}/plasma/desktoptheme/rosa-experimental
%{_kde5_datadir}/plasma/desktoptheme/rosa-experimental/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6528 |21cr|plasma5-desktoptheme-rospo-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define aname	newyear
%define aver	1.0
%define bname	city
%define bver	1.0

Summary:	ROSPO desktop themes for plasma5
Name:		plasma5-desktoptheme-rospo
Version:	1.6
Release:	2
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/
Source0:	https://github.com/chistota/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/chistota/%{name}-%{aname}/archive/v%{aver}.tar.gz?/%{name}-%{aname}-%{aver}.tar.gz
Source2:	https://github.com/chistota/%{name}-%{bname}/archive/v%{bver}.tar.gz?/%{name}-%{bname}-%{bver}.tar.gz
Source100:	https://github.com/chistota/%{name}/archive/v1.5.tar.gz?/%{name}-1.5.tar.gz
Source101:	https://github.com/chistota/plasma5-desktoptheme-neru-city-1.0/archive/v1.0.tar.gz?/plasma5-desktoptheme-neru-city-1.0.tar.gz
Source102:	https://github.com/chistota/plasma5-desktoptheme-neru-newyear-1.0/archive/v1.0.tar.gz?/plasma5-desktoptheme-neru-newyear-1.0.tar.gz
Source103:	https://github.com/chistota/plasma5-desktoptheme-neru-rospo-1.0/archive/v1.0.tar.gz?/plasma5-desktoptheme-neru-rospo-1.0.tar.gz
BuildRequires:	svgcleaner
Requires:	plasma5-wallpaper-rospo
Recommends:	%{name}-%{aname}
Recommends:	%{name}-%{bname}
BuildArch:	noarch

%description
%{summary}.

%files
%doc AUTHORS LICENSE
%dir %{_datadir}/plasma/desktoptheme/RospoDarkDesktop
%dir %{_datadir}/plasma/desktoptheme/RospoWhiteDesktop
%dir %{_datadir}/plasma/desktoptheme/RospoLightDesktop
%{_datadir}/plasma/desktoptheme/RospoDarkDesktop/*
%{_datadir}/plasma/desktoptheme/RospoWhiteDesktop/*
%{_datadir}/plasma/desktoptheme/RospoLightDesktop/*

#----------------------------------------------------------------------------

%package	%{aname}
Summary:	ROSPO desktop %{aname} themes for plasma5
Group:		Graphical desktop/KDE
Requires:	plasma5-wallpaper-rospo

%description %{aname}
ROSPO desktop %{aname} themes for plasma5.

%files %{aname}
%doc %{name}-%{aname}-%{aver}/{AUTHORS,LICENSE}
%dir %{_datadir}/plasma/desktoptheme/RospoNewYearDarkDesktop
%dir %{_datadir}/plasma/desktoptheme/RospoNewYearWhiteDesktop
%{_datadir}/plasma/desktoptheme/RospoNewYearDarkDesktop/*
%{_datadir}/plasma/desktoptheme/RospoNewYearWhiteDesktop/*

#----------------------------------------------------------------------------

%package	%{bname}
Summary:	ROSPO desktop %{bname} themes for plasma5
Group:		Graphical desktop/KDE
Requires:	plasma5-wallpaper-rospo

%description %{bname}
ROSPO desktop %{bname} themes for plasma5.

%files %{bname}
%doc %{name}-%{bname}-%{bver}/{AUTHORS,LICENSE}
%dir %{_datadir}/plasma/desktoptheme/RospoCityDarkDesktop
%dir %{_datadir}/plasma/desktoptheme/RospoCityWhiteDesktop
%{_datadir}/plasma/desktoptheme/RospoCityDarkDesktop/*
%{_datadir}/plasma/desktoptheme/RospoCityWhiteDesktop/*

#----------------------------------------------------------------------------

%prep
%setup -q -a1 -a2 -a100 -a101 -a102 -a103

%build

%install
mv -f %{name}-%{aname}-%{aver}/RospoNewYear{Dark,White}Desktop ./
mv -f %{name}-%{bname}-%{bver}/RospoCity{Dark,White}Desktop ./
mv -f %{name}-1.5/RospoLightDesktop ./

rm -f */*/{colors,metadata.desktop}
cp -rf plasma5-desktoptheme-neru-city-1.0/neru-city-dark-desktop/* RospoCityDarkDesktop/
cp -rf plasma5-desktoptheme-neru-city-1.0/neru-city-light-desktop/* RospoCityWhiteDesktop/
cp -rf plasma5-desktoptheme-neru-newyear-1.0/neru-newyear-dark-desktop/* RospoNewYearDarkDesktop/
cp -rf plasma5-desktoptheme-neru-newyear-1.0/neru-newyear-light-desktop/* RospoNewYearWhiteDesktop/
cp -rf plasma5-desktoptheme-neru-rospo-1.0/neru-rospo-dark-desktop/* RospoDarkDesktop/
cp -rf plasma5-desktoptheme-neru-rospo-1.0/neru-rospo-light-desktop/* RospoWhiteDesktop/

install -d %{buildroot}%{_datadir}/plasma/desktoptheme
cp -R Rospo{,NewYear,City}{Dark,White}Desktop RospoLightDesktop %{buildroot}%{_datadir}/plasma/desktoptheme/
rm %{buildroot}%{_datadir}/*/*/*/*/.directory
find %{buildroot} -type f |grep .svg |grep -v .svgz > filelist.txt
for i in $(cat filelist.txt); do svgcleaner --quiet $i $i; svgcleaner --quiet $i $i; svgcleaner --quiet $i $i; done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6529 |21cr|plasma5-dolphin-folder-color-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dolphin-folder-color

Summary:	A KDE (Plasma 5) Service Menu for coloring the folders
Name:		plasma5-%{oname}
Version:	2.0.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/audoban/dolphin-folder-color/
Source0:	%{oname}-%{version}.tar.gz
Patch0:		%{oname}.rosa.patch
Requires:	plasma5-dolphin
BuildArch:	noarch

%description
A KDE (Plasma 5) Service Menu for coloring the folders so fast,
also has the ability to color a selected set of folders.

%files
%{_bindir}/%{oname}
%{_datadir}/kservices5/ServiceMenus/plasma5-folder-color.desktop
%doc README.md LICENSE screenshot1.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1


%build

%install
mkdir -p %{buildroot}%{_bindir}
cp %{oname} %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/kservices5/ServiceMenus/
cp plasma5-folder-color.desktop %{buildroot}%{_datadir}/kservices5/ServiceMenus/

mkdir -p %{buildroot}%doc
cp README.md %{buildroot}%doc
cp LICENSE %{buildroot}%doc
cp screenshot1.png %{buildroot}%doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6530 |21cr|plasma5-kcm-drakguard-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching DrakGuard
Name:		plasma5-kcm-drakguard
Version:	1.0
Release:	8
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_drakguard.desktop
BuildRequires:	kde5-macros
Requires:	drakguard
BuildArch:	noarch

%description
DrakGuard launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_drakguard.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/kcm5_drakguard.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6531 |21cr|plasma5-kdiff3-1.10.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kdiff3

Summary:	Utility for comparing/merging up to three text files or directories
Name:		plasma5-kdiff3
Version:	1.10.6
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Development/Tools
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/%{oname}/%{oname}-%{version}.tar.xz
Source1:	kdiff3-1.10.6_ru.tar.gz
BuildRequires:	boost-devel
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	desktop-file-utils
Conflicts:	kdiff3

%description
KDiff3 is a file and directory diff and merge tool which:
   * compares and merges two or three text input files or directories
   * shows the differences line by line and character by character(!)
   * provides an automatic merge-facility
   * has an editor for comfortable solving of merge-conflicts
   * provides networktransparency via KIO
   * has options to highlight or hide changes in white-space or comments

%files -f %{oname}.lang
%doc AUTHORS COPYING
%{_kde5_bindir}/%{oname}
%{_kde5_applicationsdir}/org.kde.kdiff3.desktop
%{_kde5_xmlguidir}/kdiff3part/kdiff3_part.rc
%{_kde5_xmlguidir}/kdiff3/kdiff3_shell.rc
%{_kde5_iconsdir}/hicolor/*/apps/kdiff3.png
%{_kde5_iconsdir}/hicolor/scalable/apps/kdiff3.svgz
%{_qt5_plugindir}/kf5/kfileitemaction/kdiff3fileitemaction.so
%{_qt5_plugindir}/kf5/parts/kdiff3part.so
%{_kde5_mandir}/man1/kdiff3.1.xz
%{_appdatadir}/org.kde.kdiff3.appdata.xml
%{_datadir}/kservices5/kdiff3part.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} diff_ext kdiff3fileitemactionplugin %{oname}.lang --with-kde --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6532 |21cr|plasma5-knemo-0.7.7-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname knemo

Summary:	The KDE Network Monitor for Plasma 5
Name:		plasma5-knemo
Version:	0.7.7
Release:	11
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php/KNemo?content=12956
Source0:	%{oname}-7efb4f6.tar.bz2
Source1:	%{oname}-rpmlintrc
Source2:	%{oname}_po.tar.gz
Patch1:		knemo-cmake_po.patch
Patch2:		knemo-fix_kcm.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5sysguard-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	wireless-tools
Conflicts:	knemo

%description
KNemo offers a network monitor similar to the one found in Windows. For every
network interface it displays an icon in the systray.

%files -f %{name}.lang
%{_kde5_applicationsdir}/knemo.desktop
%{_kde5_autostart}/knemo.desktop
%{_kde5_bindir}/knemo
%{_kde5_datadir}/kconf_update/knemo-*.pl
%{_kde5_datadir}/kconf_update/knemo.upd
%dir %{_kde5_datadir}/knemo/themes/
%{_kde5_datadir}/knemo/themes/*.desktop
%{_kde5_datadir}/plasma/desktoptheme/*/icons/knemo.*
%{_kde5_iconsdir}/breeze/status/panel/knemo-*.*
%{_kde5_iconsdir}/breeze-dark/status/panel/knemo-*.*
%{_kde5_iconsdir}/hicolor/*/apps/knemo.*
%{_kde5_iconsdir}/hicolor/*/status/knemo-*.*
%{_kde5_iconsdir}/oxygen/*/status/knemo-*.*
%{_kde5_notificationsdir}/knemo.notifyrc
%{_kde5_services}/kcm_knemo.desktop
%{_qt5_plugindir}/kcm_knemo.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}

tar -xzf %{SOURCE2}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_knemo knemo %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6533 |21cr|plasma5-look-and-feel-neru-city-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru-City White and Dark look-and-feel themes for plasma5
Name:		plasma5-look-and-feel-neru-city
Version:	1.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-look-and-feel-neru-city
Source0:	https://github.com/chistota/plasma5-look-and-feel-neru-city/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Recommends:	kvantum
Recommends:	plasma5-color-scheme-neru
Recommends:	neru-icon-classic-theme
Recommends:	avatar-theme-neru
Requires:	plasma5-desktoptheme-neru-city
Recommends:	plasma5-aurorae-theme-neru
Recommends:	plasma5-wallpaper-neru
Recommends:	qtcurve-theme-neru
Requires:	sddm-theme-neru-city
BuildArch:	noarch

%description
%{summary}
by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/plasma/look-and-feel
%{_datadir}/plasma/look-and-feel/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/plasma/look-and-feel
cp -R org.kde.neru-city-dark.desktop org.kde.neru-city-light.desktop %{buildroot}%{_datadir}/plasma/look-and-feel/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6534 |21cr|plasma5-look-and-feel-neru-newyear-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru-New Year White and Dark look-and-feel themes for plasma5
Name:		plasma5-look-and-feel-neru-newyear
Version:	1.0
Release:	2
License:	GPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-look-and-feel-neru-newyear
Source0:	https://github.com/chistota/plasma5-look-and-feel-neru-newyear/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Recommends:	kvantum
Recommends:	plasma5-color-scheme-neru
Recommends:	neru-icon-classic-theme
Recommends:	avatar-theme-neru
Recommends:	plasma5-desktoptheme-neru-newyear
Recommends:	plasma5-aurorae-theme-neru
Recommends:	plasma5-wallpaper-neru
Recommends:	qtcurve-theme-neru
Recommends:	sddm-theme-neru-newyear
BuildArch:	noarch

%description
%{summary}
by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/plasma/look-and-feel
%{_datadir}/plasma/look-and-feel/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/plasma/look-and-feel
cp -R org.kde.neru-newyear-dark.desktop org.kde.neru-newyear-light.desktop %{buildroot}%{_datadir}/plasma/look-and-feel/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6535 |21cr|plasma5-nano-5.24.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-nano

Summary:	Plasma interface for embedded devices
Name:		plasma5-nano
Version:	5.24.6
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv2/LGPLv2/LGPLv2.1
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	plasma-framework
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5windowsystem-devel

%description
Plasma interface for embedded devices.

%files -f plasma-nano.lang
%{_kde5_qmldir}/org/kde/plasma/private/nanoshell
%{_appdatadir}/org.kde.plasma.nano.desktoptoolbox.appdata.xml
%{_kde5_datadir}/plasma/packages/org.kde.plasma.nano.desktoptoolbox
%{_kde5_datadir}/plasma/shells/org.kde.plasma.nano
%{_kde5_services}/plasma-applet-org.kde.plasma.nano.desktop
%{_kde5_services}/plasma-package-org.kde.plasma.nano.desktoptoolbox.desktop

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang plasma-nano --all-name --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6536 |21cr|plasma5-thunderbolt-5.24.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-thunderbolt

Summary:	Plasma addons for managing Thunderbolt devices
Name:		plasma5-thunderbolt
Version:	5.24.6
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source1:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:		bolt

%description
Plasma Sytem settings module and a KDED module to handle authorization
of Thunderbolt devices connected to the computer.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kcm_bolt.desktop
%{_kde5_libdir}/libkbolt.so
%{_kde5_plugindir}/kded/kded_bolt.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_bolt.so
%{_kde5_datadir}/kpackage/kcms/kcm_bolt/
%{_kde5_notificationsdir}/kded_bolt.notifyrc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6537 |21cr|plasma5-wallpaper-animatedhue-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define oname animatedhue-v1

Summary:	Plasma 5 applet for displaying image animated hue
Name:		plasma5-wallpaper-animatedhue
Version:	0.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1190533/
Source0:	%{name}-%{version}.tar.xz
Source1:	%{oname}.tar.gz
Source2:    %{name}.rpmlintrc
Patch0:     %{oname}-0.1-russian.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildArch:	noarch

%description
Plasma 5 plasmoid for displaying image animated hue.

%files -n plasma5-wallpaper-animatedhue -f plasma_wallpaper_org.kde.animatedhue.lang
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.animatedhue/
%{_kde5_datadir}/plasma/wallpapers/org.kde.animatedhue/*
%{_kde5_services}/plasma-wallpaper-org.kde.animatedhue.desktop

%prep
%setup -q

pushd wallpapers
tar -xvzf %{SOURCE1}
popd

%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_wallpaper_org.kde.animatedhue

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6538 |21cr|plasma5-wallpaper-coverflow-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define oname CoverFlow

Summary:	Plasma 5 applet for displaying image coverflow
Name:		plasma5-wallpaper-coverflow
Version:	0.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1213486/
Source0:	%{name}-%{version}.tar.xz
Source1:	%{oname}.tar.gz
Source2:    %{name}.rpmlintrc
Patch0:     %{oname}-0.1-russian.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildArch:	noarch

%description
Plasma 5 plasmoid for displaying image coverflow.

%files -n plasma5-wallpaper-coverflow -f plasma_wallpaper_org.kde.coverflow.lang
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.coverflow/
%{_kde5_datadir}/plasma/wallpapers/org.kde.coverflow/*
%{_kde5_services}/plasma-wallpaper-org.kde.coverflow.desktop

%prep
%setup -q

pushd wallpapers
tar -xvzf %{SOURCE1}
popd

%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_wallpaper_org.kde.coverflow

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6539 |21cr|plasma5-wallpaper-effectslideshow-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define oname KenBurnsEffectSlideshow

Summary:	Plasma 5 applet for displaying image effect slideshow
Name:		plasma5-wallpaper-effectslideshow
Version:	0.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1213487/
Source0:	%{name}-%{version}.tar.xz
Source1:	%{oname}.tar.gz
Source2:    %{name}.rpmlintrc
Patch0:     %{oname}-0.1-russian.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildArch:	noarch

%description
Plasma 5 plasmoid for displaying image effect slideshow.

%files -n plasma5-wallpaper-effectslideshow -f plasma_wallpaper_org.kde.effectslideshow.lang
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.effectslideshow/
%{_kde5_datadir}/plasma/wallpapers/org.kde.effectslideshow/*
%{_kde5_services}/plasma-wallpaper-org.kde.effectslideshow.desktop

%prep
%setup -q

pushd wallpapers
tar -xvzf %{SOURCE1}
popd

%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_wallpaper_org.kde.effectslideshow

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6540 |21cr|plasma5-wallpaper-neru-city-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSPO wallpaper themes for plasma5
Name:		plasma5-wallpaper-neru-city
Version:	1.0
Release:	1
License:	CC-BY-SA-4.0
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-wallpaper-neru-city
Source0:	https://github.com/chistota/plasma5-wallpaper-neru-city/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc README.md
%dir %{_datadir}/wallpapers
%{_datadir}/wallpapers/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/wallpapers
cp -R neru-city %{buildroot}%{_datadir}/wallpapers/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6541 |21cr|plasma5-wallpaper-neru-newyear-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSPO wallpaper themes for plasma5
Name:		plasma5-wallpaper-neru-newyear
Version:	1.0
Release:	1
License:	CC-BY-SA-4.0
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-wallpaper-neru-newyear
Source0:	https://github.com/chistota/plasma5-wallpaper-neru-newyear/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc README.md
%dir %{_datadir}/wallpapers
%{_datadir}/wallpapers/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/wallpapers
cp -R neru-newyear %{buildroot}%{_datadir}/wallpapers/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6542 |21cr|plasma5-wallpaper-rospo-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSPO wallpaper themes for plasma5
Name:		plasma5-wallpaper-rospo
Version:	1.3
Release:	1
License:	CC-BY-SA-4.0
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/plasma5-wallpaper-rospo
Source0:	https://github.com/chistota/plasma5-wallpaper-rospo/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc README.md
%dir %{_datadir}/wallpapers
%{_datadir}/wallpapers/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/wallpapers
cp -R ROSPO{,-City,-NewYear,-Night-2} %{buildroot}%{_datadir}/wallpapers/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6543 |21cr|plasma5-wallpaper-videoplaylist-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define oname VideoPlaylist

Summary:	Plasma 5 applet for displaying video videoplaylist
Name:		plasma5-wallpaper-videoplaylist
Version:	0.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1213489/
Source0:	%{name}-%{version}.tar.xz
Source1:	%{oname}.tar.gz
Source2:    %{name}.rpmlintrc
Patch0:     %{oname}-0.1-russian.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildArch:	noarch

%description
Plasma 5 plasmoid for displaying video videoplaylist.

%files -n plasma5-wallpaper-videoplaylist -f plasma_wallpaper_org.kde.videoplaylist.lang
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.videoplaylist/
%{_kde5_datadir}/plasma/wallpapers/org.kde.videoplaylist/*
%{_kde5_services}/plasma-wallpaper-org.kde.videoplaylist.desktop

%prep
%setup -q

pushd wallpapers
tar -xvzf %{SOURCE1}
popd

%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_wallpaper_org.kde.videoplaylist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6544 |21cr|plasma5-wallpaper-videowallpaper-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define oname VideoWallpaper

Summary:	Plasma 5 applet for displaying video wallpaper
Name:		plasma5-wallpaper-videowallpaper
Version:	0.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://store.kde.org/p/1213488/
Source0:	%{name}-%{version}.tar.xz
Source1:	%{oname}.tar.gz
Source2:    %{name}.rpmlintrc
Patch0:     %{oname}-0.1-russian.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildArch:	noarch

%description
Plasma 5 plasmoid for displaying video wallpaper.

%files -n plasma5-wallpaper-videowallpaper -f plasma_wallpaper_org.kde.videowallpaper.lang
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.videowallpaper/
%{_kde5_datadir}/plasma/wallpapers/org.kde.videowallpaper/*
%{_kde5_services}/plasma-wallpaper-org.kde.videowallpaper.desktop

%prep
%setup -q

pushd wallpapers
tar -xvzf %{SOURCE1}
popd

%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_wallpaper_org.kde.videowallpaper

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6545 |21cr|plasma-applet-cwp-1.11.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define kdeappsrel 98925
%define oname	cwp

Summary:        Yet another weather plasmoid highly customizable this time
Name:           plasma-applet-cwp
Version:        1.11.1
Release:        3
Source0:        http://kde-look.org/CONTENT/content-files/%{kdeappsrel}-%{oname}-%{version}.tar.bz2
License:        GPLv3+
Group:          Graphical desktop/KDE
URL:            http://kde-look.org/content/show.php/Customizable+Weather+Plasmoid+(CWP)?content=%{kdeappsrel}
BuildRequires:  kdebase4-workspace-devel
BuildRequires:  desktop-file-utils
Provides:       plasma-applet-customizable-weather
# follow the haders version fom the build
Requires:       kdebase4-workspace >= 4.11.4

%description
This is another weather plasmoid.
It aims to be highly customizable, but a little harder 
to setup than other weather plasmoids.
Nearly any weather forecast provider can be used, 
as long as the data is provided as html files (no flash).
The information how to extract the information 
from these html files is stored inside xml files.
Commands like grep, head, tail, sed, awk, 
... will do this job.

For now, xml files for the weather providers

%prep
%setup -qn %{oname}-%{version}
# deprecated
perl -pi -e "s|Encoding=UTF-8||"  plasma-applet-cwp.desktop
# fix attr
chmod 644 COPYING plasma-cwp.cpp plasma-cwp.h

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_cwp

%files -f plasma_applet_cwp.lang
%doc COPYING ChangeLog README
%dir %{_kde_appsdir}/desktoptheme
%dir %{_kde_appsdir}/desktoptheme/default
%dir %{_kde_appsdir}/desktoptheme/default/widgets
%{_kde_appsdir}/desktoptheme/default/widgets/*.svgz
%{_kde_appsdir}/plasma-cwp/
%{_kde_iconsdir}/oxygen/128x128/status/weather-windy.png
%{_kde_iconsdir}/oxygen/scalable/status/weather-windy.svgz
%{_kde_libdir}/kde4/plasma_applet_cwp.so
%{_kde_services}/plasma-applet-cwp.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6546 |21cr|plasma-applet-daisy-0.0.4.26-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple application launcher for Plasma
Name:		plasma-applet-daisy
Version:	0.0.4.26
Release:	5
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://cdlszm.org/
Source0:	http://cdlszm.org/downloads/%{name}-%{version}.tar.gz
BuildRequires:	kdebase4-workspace-devel
Requires:	kdebase4-workspace
Provides:	plasma-applet

%description
Daisy is a  free open-source widget for Plasma/KDE released under the
GNU General Public License version 3.
Main features:
    * Three types of roles: circular dock, media controller and linear
      dock;
    * Can dock in any screen position and be used in Horizontal or
      Vertical mode (linear dock role);
    * Configuration tools to access all configurable options;
    * Launchers can be edited with a simple right-click;
    * Hybrid launchers to launch applications and control running
      tasks;
    * Plugins to provide information and execute several tasks;
    * Various backgrounds available

%files -f plasma_applet_daisy.lang
%doc README AUTHORS CHANGELOG COPYING INSTALL TODO
%{_kde_appsdir}/desktoptheme/default/widgets/
%{_kde_libdir}/kde4/plasma_applet_daisy.so
%{_kde_services}/plasma-applet-daisy.desktop

#---------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_daisy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6547 |21cr|plasma-applet-eventlist-0.6.97-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	srcname	plasmoid-eventlist

Summary:	This plasmoid show upcoming events from akonadi resources
Name:		plasma-applet-eventlist
Version:	0.6.97
Release:	3
Source0:	http://kde-look.org/CONTENT/content-files/107779-%{srcname}-%{version}.tar.bz2
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		http://kde-look.org/content/show.php/Eventlist?content=107779
BuildRequires:	kdebase4-workspace-devel
BuildRequires:	akonadi
BuildRequires:	kdepimlibs4-devel >= 4.6.0
Provides:	plasma-applet

%description
This is a plasmoid to show the events from Akonadi resources (KOrganizer,
Birthdays etc.). With the googledata resource also Google calendar items can
be shown.


%files  -f plasma_applet_events.lang
%{_kde_libdir}/kde4/plasma_applet_events.so
%{_kde_services}/plasma-applet-events.desktop

#------------------------------------------------------------------------------

%prep
%setup -qn %{srcname}-%{version}


%build
%cmake_kde4
%make


%install
%makeinstall_std -C build

%find_lang plasma_applet_events

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6548 |21cr|plasma-applet-eyasdp-1.2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	shortname	eyasdp
%define	longname	plasma_applet_%{shortname}

Summary:	System buttons plasmoid
Name:		plasma-applet-%{shortname}
Version:	1.2.0
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kde-look.org/content/show.php/eYaSDP?content=146530
Source0:	http://kde-look.org/CONTENT/content-files/146530-%{shortname}-%{version}.tar.bz2
BuildRequires:	kdelibs4-devel
BuildRequires:	kdebase4-workspace-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(phonon)
Requires:	kdebase4-runtime

%description
eYaSDP is a plasmoid that allows to set a number of system buttons in your
panel or desktop for comfortable and quick access.
Features:
  - Actions: Shut-down, Reboot, Log-out, Lock screen, Hibernate, Suspend,
    Switch user and Turn-off screen.
  - Customizable number of buttons.
  - Contextual menu actions.
  - Customizable icons.
  - It scales to fit your panel size.

%files -f %{longname}.lang
%{_kde_libdir}/kde4/plasma_applet_%{shortname}.so
%{_kde_services}/plasma-applet-%{shortname}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{shortname}-%{version}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang %{longname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6549 |21cr|plasma-applet-fancy-tasks-1.1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasmoid-fancy-tasks
%define debug_package	%{nil}

Summary:        Plasmoid providing a fancy representation of your tasks and launchers
Name:           plasma-applet-fancy-tasks
Version:        1.1.2
Release:        3
License:        GPLv2
Group:          Graphical desktop/KDE
Url:            https://github.com/Emdek/%{oname}
Source:         https://github.com/Emdek/%{oname}/archive/v%{version}.tar.gz
BuildRequires:  kdelibs4-devel >= 4.11
BuildRequires:  kdebase4-workspace-devel
Requires:  kdebase4-workspace

%description
Plasmoid providing a fancy representation of your 
tasks and launchers for those who need full power 
of task manager and fresh look.

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build


%files 
%doc CHANGELOG COPYING README TODO
%{_kde_appsdir}/desktoptheme/default/widgets/fancytasks.svgz
%{_kde_libdir}/kde4/*.so
%{_kde_services}/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6550 |21cr|plasma-applet-fancytasks-1.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasmoid for fancy representing your tasks and launchers
Name:		plasma-applet-fancytasks
Version:	1.1.2
Release:	4
License:	GPLv2
Group:		Graphical desktop/KDE
URL:		http://www.kde-look.org/content/show.php/Fancy+Tasks?content=99737
Source0:	http://www.kde-look.org/CONTENT/content-files/99737-fancytasks-%{version}.tar.bz2
BuildRequires:	kdebase4-devel
BuildRequires:	kdebase4-workspace-devel
BuildRequires:	qimageblitz-devel
Requires:	kdebase4-runtime
Provides:	plasma-applet

%description
Plasmoid for fancy representing your tasks and launchers. Inspired by
Avant Window Navigator and other MacOS X like docks.

Features:
- manages your tasks and launchers;
- tasks filtering, grouping (including manual) and sorting;
- launcher to task transition (icons of launchers with running tasks
are hidden);
- preview of windows with (live previews with KWin Taskbar Thumbnail
effect enabled) and without Composite (also for groups, you can click
them to activate window);
- dropping files on launchers runs command with parameters or gives
option to move, copy or link them (if this is directory);
- visual drop indicator that helps in manual tasks sorting and
dropping launchers;
- possibility to browse directories of directory launchers using
context menu;
- menu with list of all icons shown after activating keyboard
shortcut;
- configurable animations (zoom, jump, bounce, highlight, etc.) and
appearance (optional thumbnails, reflections and text label);
- fully animated icons (including animations of starting applications
and tasks needing attention).

%files -f plasma_applet_fancytasks.lang
%doc INSTALL COPYING README TODO CHANGELOG
%{_kde_libdir}/kde4/plasma_applet_fancytasks.so
%{_kde_appsdir}/desktoptheme/default/widgets/fancytasks.svgz
%{_kde_services}/plasma-applet-fancytasks.desktop
%{_kde_libdir}/kde4/plasma_containment_fancypanel.so
%{_kde_services}/plasma-containment-fancypanel.desktop

#--------------------------------------------------------------------

%prep
%setup -q -n fancytasks-%{version}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_fancytasks
# Containement fancy panel now have some localisations, since it's still experimental
# and upstream does not want to split the package i'm merging the language file list
%find_lang plasma_containment_fancypanel
cat plasma_containment_fancypanel.lang >> plasma_applet_fancytasks.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6551 |21cr|plasma-applet-kbirthdayreminder-0.9.73-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	plasma-applet-kbirthdayreminder
%define srcname birthday-plasmoid
%define version	 0.9.73
%define release	6
%define Summary	 A reminder for birthdays and anniversaries


Summary:	%Summary
Name:		%name
Version:	%version
Release:	%release
Source0:	http://kde-look.org/CONTENT/content-files/91641-%srcname-%version.tar.bz2
Patch0:		plasma-applet-kbirthdayreminder-0.9.73-mdv-fix-icon-and-category.patch
License:	GPLv2
Group:		Graphical desktop/KDE
URL:		http://kde-look.org/content/show.php/K+Birthday+Reminder?content=91641
BuildRequires:	kdebase4-workspace-devel
BuildRequires:	kdepimlibs4-devel
Requires:	kdebase4-runtime => 4.3
Requires:	plasma-dataengine-kbirthdayreminder
Provides:	plasma-applet


%description
Plasmoid reminds you of birthdays and anniversaries of contacts[¹] in the
(standard) KDE address book.
Inspired by the KDE3 kicker applet KBirthday from Jan Hambrecht.
As the version number indicates, the plasmoid isn't quite ready yet. Also there
are a few issues I know of. You will find the list in the TODO file.
The popup displayed when clicking on the plasmoid's icon is supposed to show
only when living in a panel. This popup dialog is not ready yet!
Hope you will enjoy using it anyway.


%files  -f plasma_applet_kbirthdayapplet.lang
%defattr(-,root,root)
%doc	ChangeLog LICENSE.GPL README
%_kde_libdir/kde4/plasma_applet_kbirthdayapplet.so
%_kde_services/plasma-applet-kbirthday.desktop
%_kde_datadir/apps/desktoptheme/default/widgets/birthdaycake.svg
%_iconsdir/hicolor/scalable/apps/birthdaycake.svgz

#-----------------------------------------------------------------------
%package -n plasma-dataengine-kbirthdayreminder
Summary:	Data engine for %{name}
Group:		Graphical desktop/KDE
%description -n plasma-dataengine-kbirthdayreminder
This package provides the dataengine for %{name}

%files -n plasma-dataengine-kbirthdayreminder
%defattr(-,root,root)
%_kde_libdir/kde4/plasma_engine_kabc.so
%_kde_services/plasma-dataengine-kabc.desktop

#-----------------------------------------------------------------------

%prep
%setup -q -n KBirthdayPlasma_0_9_73
%patch0 -p 0

%build
%cmake_kde4
%make

%install
%__rm -rf %{buildroot}
%{makeinstall_std} -C build

%find_lang plasma_applet_kbirthdayapplet

%clean
%__rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6552 |21cr|plasma-applet-kwinbutton-0.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kwinbutton
%define sname kwinbuttonapplet-improved
%define kdeid 143971

Summary:	Plasma applet that emulates a button from the window title of the active window
Name:		plasma-applet-%{oname}
Version:	0.6
Release:	4
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://kde-look.org/content/show.php/KWin+Button+applet+improved?content=%{kdeid}
Source0:	http://kde-apps.org/CONTENT/content-files/%{kdeid}-%{sname}-%{version}.tar.gz
BuildRequires:	kdelibs4-devel
BuildRequires:	kdebase4-workspace-devel
Requires:	kdebase4-runtime
Provides:	plasma-applet

%description
Plasma applet that emulates a button from the window title of the active
window. This is forked ("improved") by Alberto Pajuelo Montes version.

%files
%doc COPYING
%{_kde_libdir}/kde4/plasma_applet_kwinbutton.so
%{_kde_services}/%{name}.desktop

#--------------------------------------------------------------------

%prep
%setup -q -n %{sname}-%{version}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6553 |21cr|plasma-applet-launchbutton-0.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: plasma-applet-launchbutton
Version: 0.0.4
Release: 5
Summary: A plasma applet that's a configurable launching button
Group: Graphical desktop/KDE
License: GPLv3+
Source: %{name}-%{version}.tar.bz2
# upstream is maarten.vanraes@gmail.com , URL might be added in later versions

BuildRequires: kdelibs4-devel
BuildRequires: qt4-qtdbus
Requires: kdebase4-workspace
Requires: kdeplasma4
Provides: plasma-applet

%description
Plasma launchbutton applet is a configurable image button to execute a
command or a DBUS function. In addition, you can let it open a configurable
File Dialog to have it's filenames append as arguments.


%files
%defattr(-,root,root)
%{_kde_libdir}/kde4/plasma_applet_launchbutton.so
%{_kde_services}/%{name}.desktop

%prep
%setup -q

%build
%cmake_kde4
%make

%install
rm -fr %{buildroot}
%makeinstall_std -C build

%clean
rm -fr %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6554 |21cr|plasma-applet-minimalistic-clock-fx-1.0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minimalistic_clock_fx
%define kdeid 165712

Summary:	Plasma applet that provides minimalistic clock
Name:		plasma-applet-minimalistic-clock-fx
Version:	1.0.8
Release:	4
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php?action=content&content=%{kdeid}
Source0:	http://kde-apps.org/CONTENT/content-files/%{kdeid}-%{oname}.plasmoid
BuildRequires:	kde4-macros
Provides:	plasma-applet
BuildArch:	noarch

%description
Plasma applet that provides minimalistic clock.

%files
%dir %{_kde_appsdir}/plasma/plasmoids/minimalisticclock
%{_kde_appsdir}/plasma/plasmoids/minimalisticclock/*
%{_kde_services}/minimalisticclock.desktop

#--------------------------------------------------------------------

%prep
%setup -q -c
find . -type f | xargs chmod 0644

%build
# nothing

%install
mkdir -p %{buildroot}%{_kde_appsdir}/plasma/plasmoids/minimalisticclock
cp -r * %{buildroot}%{_kde_appsdir}/plasma/plasmoids/minimalisticclock/
install -D -m 644 metadata.desktop %{buildroot}%{_kde_services}/minimalisticclock.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6555 |21cr|plasma-applet-playbar-0.7.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname playbar
%define debug_package	%{nil}

Name:           plasma-applet-%{oname}
Version:        0.7.1
Release:        3
Summary:        Control your favorite media player
License:        GPLv3+
Group:          Graphical desktop/KDE
Url:            https://github.com/audoban/PlayBar
Source:         PlayBar-%{version}.tar.gz

BuildRequires:  kdelibs4-devel >= 4.11

Requires:       kdebase4-runtime 


%description
MPRIS2 client written in QML for Plasma KDE.

Features:
- Customizable global shortcuts
- Media Player Control in bar
- You can control multiple players
- Very configurable

%prep
%setup -q -n PlayBar-%{version}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_%{oname}


%files 
%doc README.md CHANGELOG.md LICENSE
%{_kde_services}/*.desktop
%{_kde_appsdir}/plasma/plasmoids/
%{_kde_appsdir}/plasma/services/%{oname}service.operations
%{_kde_libdir}/kde4/plasma_engine_%{oname}.so
%lang(es) %{_kde_datadir}/locale/es/LC_MESSAGES/plasma_applet_playbar.mo
%lang(ru) %{_kde_datadir}/locale/ru/LC_MESSAGES/plasma_applet_playbar.mo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6556 |21cr|plasma-applet-quickaccess-0.8.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-widget-quickaccess

Summary:	Quick access the most used folders
Name:		plasma-applet-quickaccess
Version:	0.8.2
Release:	4
License: 	GPLv2+
Group: 		Graphical desktop/KDE
Url:		http://kde-look.org/content/show.php?content=134442
Source0:	http://kde-look.org/CONTENT/content-files/134442-%{oname}-%{version}-2.zip
BuildRequires:	kdebase4-devel
BuildRequires:	kdebase4-workspace-devel
Requires:	kdebase4-runtime

%description
This is a small applet designed for the panel to have quick access
to the most used folders.

%files -f plasma_applet_quickaccess.lang
%{_kde_libdir}/kde4/plasma_applet_*.so
%{_kde_services}/plasma-applet-*.desktop

#--------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}-2

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_quickaccess

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6557 |21cr|plasma-applet-redshift-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname redshift
%define kdeid 148737

Summary:	Plasma applet that allows to control Redshift daemon
Name:		plasma-applet-%{oname}
Version:	1.0
Release:	3
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php/Redshift+plasmoid?content=%{kdeid}
# https://github.com/simgunz/redshift-plasmoid/archive/v%{version}.tar.gz
Source0:	%{oname}-plasmoid-%{version}.tar.gz
BuildRequires:	kdelibs4-devel
Requires:	kdebase4-runtime
Requires:	plasma-dataengine-redshift
Requires:	redshift
Provides:	plasma-applet

%description
Plasma applet that allows to control Redshift daemon.

%files -f plasma_applet_redshift.lang
%doc COPYING README.md
%{_kde_autostart}/RedshiftAutostart.desktop
%{_kde_bindir}/redshiftautostart
%{_kde_datadir}/config.kcfg/redshift.kcfg
%{_kde_iconsdir}/hicolor/*/apps/redshift*.*
%{_kde_libdir}/kde4/plasma_applet_redshift.so
%{_kde_services}/plasma-applet-redshift.desktop

#----------------------------------------------------------------------------

%package -n plasma-dataengine-redshift
Summary:	Plasma redshift dataengine
Group:		Graphical desktop/KDE

%description -n plasma-dataengine-redshift
Plasma redshift dataengine.

%files -n plasma-dataengine-redshift
%{_kde_appsdir}/plasma/services/redshift.operations
%{_kde_libdir}/kde4/plasma_engine_redshift.so
%{_kde_services}/plasma-dataengine-redshift.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-plasmoid-%{version}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_redshift
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6558 |21cr|plasma-applet-steamtime-1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname steamtime
%define kdeid 159747

Summary:	Plasma applet that provides clock via steampunk interface
Name:		plasma-applet-%{oname}
Version:	1.1
Release:	5
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php?content=%{kdeid}
Source0:	http://kde-apps.org/CONTENT/content-files/%{kdeid}-%{oname}-%{version}.plasmoid
BuildRequires:	imagemagick
BuildRequires:	kde4-macros
Requires:	kdebase4-runtime
Provides:	plasma-applet
BuildArch:	noarch

%description
Plasma applet that provides clock functions via steampunk interface.
It is written entirely in QML + JavaScript.

%files
%doc LICENSE.GPL3
%{_kde_appsdir}/plasma/plasmoids/%{oname}
%{_kde_iconsdir}/hicolor/*/apps/%{oname}.png
%{_kde_services}/%{oname}.desktop

#--------------------------------------------------------------------

%prep
%setup -q -c
find . -type f | xargs chmod 0644
sed -i 's;icon.png;%{oname};g' metadata.desktop
find . -type f -name "*.png" -exec convert {} -strip {} \;

%build
# nothing

%install
mkdir -p %{buildroot}%{_kde_appsdir}/plasma/plasmoids/%{oname}
cp -r * %{buildroot}%{_kde_appsdir}/plasma/plasmoids/%{oname}/
install -D -m 644 metadata.desktop %{buildroot}%{_kde_services}/%{oname}.desktop

# install icons
for N in 16 32 48 64 96 128;
do
convert icon.png -resize ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_kde_iconsdir}/hicolor/${N}x${N}/apps/%{oname}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6559 |21cr|plasma-applet-takeoff-1.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname	takeoff

Name:		plasma-applet-takeoff
Summary:	A full screen menu inspired by Slingshot and the OS X Launchpad menu
Version:	1.0.1
Release:	5
Group:		Graphical desktop/KDE
License:	GPLv3+
URL:		https://code.google.com/p/takeoff-launcher/
# Latest SVN snapshot
Source:		%{oname}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	kdelibs4-devel
Requires:	kdebase4-runtime

%description
Takeoff is a full screen menu inspired in the aspect of Slingshot and
the OS X Launchpad menu but adapted to the KDE users in a plasmoid.

%prep
%setup -q -n %{oname}-%{version}

%build
%cmake_kde4
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std -C build
%find_lang plasma_applet_%{oname}

%clean
%__rm -rf %{buildroot}

%files -f plasma_applet_%{oname}.lang
%doc CHANGELOG COPYING COPYRIGHT README
%{_kde_libdir}/kde4/plasma_applet_%{oname}.so
%{_kde_services}/plasma-applet-%{oname}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6560 |21cr|plasma-applet-timekeeper-0.5.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname timekeeper
%define kdeid 159345

Summary:	Plasma applet that provides clock and calendar via steampunk interface
Name:		plasma-applet-%{oname}
Version:	0.5.1
Release:	4
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php/Time+Keeper?content=%{kdeid}
Source0:	http://kde-apps.org/CONTENT/content-files/%{kdeid}-%{oname}-%{version}.plasmoid
BuildRequires:	imagemagick
BuildRequires:	kde4-macros
Requires:	kdebase4-runtime
Requires:	marble-common >= 4.10.5-2
Provides:	plasma-applet
BuildArch:	noarch

%description
Plasma applet that provides clock and calendar functions via steampunk
interface. It is written entirely in QML + JavaScript.

%files
%doc LICENSE.GPL3
%{_kde_appsdir}/plasma/plasmoids/%{oname}
%{_kde_iconsdir}/hicolor/*/apps/%{oname}.png
%{_kde_services}/%{oname}.desktop

#--------------------------------------------------------------------

%prep
%setup -q -c
find . -type f | xargs chmod 0644
sed -i 's;icon.png;%{oname};g' metadata.desktop

%build
# nothing

%install
mkdir -p %{buildroot}%{_kde_appsdir}/plasma/plasmoids/%{oname}
cp -r * %{buildroot}%{_kde_appsdir}/plasma/plasmoids/%{oname}/
install -D -m 644 metadata.desktop %{buildroot}%{_kde_services}/%{oname}.desktop

# install icons
for N in 16 32 48 64 96 128;
do
convert icon.png -resize ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_kde_iconsdir}/hicolor/${N}x${N}/apps/%{oname}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6561 |21cr|plasma-applet-translatoid-1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname translatoid

Name:		plasma-applet-%{oname}
Version:	1.4
Release:	5
Summary:	Plasma widget to translate text using Google Translate
Group:		Graphical desktop/KDE
License:	LGPLv2
URL:		http://kde-look.org/content/show.php/translatoid?content=97511
Source0:	http://212.158.157.7/translatoid/%{oname}-%{version}.tar.xz
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(QJson)
Provides:	plasma-applet

%description
A plasma widget to translate text using Google Translate.

%files
%doc licence.txt
%{_kde_libdir}/kde4/plasma_applet_translatoid.so
%{_kde_services}/plasma-applet-translatoid.desktop
%{_kde_iconsdir}/*/*/*/translator.*
%{_kde_iconsdir}/kbflags/*
%{_kde_appsdir}/translatoid/translatoid.db

%prep
%setup -q -n %{oname}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

# We really don't need it
rm -f %{buildroot}%{_kde_appsdir}/cmake/modules/FindQJSON.cmake
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6562 |21cr|plasma-applet-yasp-scripted-1.0.8a-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	yasp-scripted

Name:		plasma-applet-%{oname}
Version:	1.0.8a
Release:	4
Summary:	Yet Another Systemmonitor Plasmoid (scripted)
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		http://kde-apps.org/content/show.php?content=109367
Source0:	%{oname}-%{version}.tar.bz2
BuildRequires:	kdebase4-workspace-devel
Requires:	kdebase4-runtime
Provides:	plasma-applet

%description
Yet Another Systemmonitor Plasmoid (scripted) is a powerful system monitor.

%files
%doc README* GPLV2 yasp_scripts
%{_kde_libdir}/kde4/*.so
%{_kde_datadir}/kde4/services/*.desktop

#--------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%cmake_kde4
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std -C build

%clean
%__rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6563 |21cr|plasma-desktoptheme-steampunk-3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	"SteampunK Powered Linux" Plasma theme
Name:		plasma-desktoptheme-steampunk
Version:	3.0
Release:	4
License:	Creative Commons Attribution-ShareAlike
Group:		Graphical desktop/KDE
Url:		http://kde-look.org/content/show.php?content=157926
Source:		http://kde-look.org/CONTENT/content-files/157926-SteampunK.tar.gz
Requires:	kdebase4-workspace >= 2:4.10
BuildRequires:	kde4-macros
BuildArch:	noarch

%description
This package contains the "SteampunK Powered Linux" Plasma theme.

%files
%{_kde_appsdir}/desktoptheme/SteampunK

#----------------------------------------------------------------------------

%prep
%setup -q -c
find . -type f | xargs chmod 0644
find . -type d | xargs chmod 0755

%build
# nothing

%install
mkdir -p %{buildroot}%{_kde_appsdir}/desktoptheme/

cp -r SteampunK %{buildroot}%{_kde_appsdir}/desktoptheme/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6564 |21cr|plasma-dialer-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dialer for Plasma Mobile
Name:		plasma-dialer
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	plasma-dialer-22.11_ru.tar.gz
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5people-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	%{_lib}kf5pulseaudioqt-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Feedback)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(mpris-qt5)
BuildRequires:	pkgconfig(libcallaudio-0.1)
BuildRequires:	phonenumber-devel
BuildRequires:	plasma-wayland-protocols-devel
Requires:  kirigami-addons

%description
Dialer for Plasma Mobile.

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name} --all-name

# Not currently used by anything, so no need for
# a -devel package so far
rm -rf %{buildroot}%{_includedir} %{buildroot}%{_libdir}/*.a

%files -f %{name}.lang
%{_kde5_bindir}/plasmaphonedialer
%{_kde5_applicationsdir}/org.kde.phone.dialer.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/dialer.svg
%{_kde5_notificationsdir}/plasma_dialer.notifyrc
%{_appdatadir}/org.kde.phone.dialer.appdata.xml
%{_sysconfdir}/xdg/autostart/org.kde.modem.daemon.desktop
%{_sysconfdir}/xdg/autostart/org.kde.telephony.daemon.desktop
%{_kde5_libexecdir}/kde-telephony-daemon
%{_kde5_libexecdir}/modem-daemon
%{_kde5_qmldir}/org/kde/telephony
%{_datadir}/dbus-1/interfaces/org.kde.telephony.*.xml
%{_datadir}/dbus-1/services/org.kde.modemdaemon.service
%{_datadir}/dbus-1/services/org.kde.telephony.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6565 |21cr|plasma-mediacenter-1.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A mediacenter user interface written with the Plasma framework
Name:		plasma-mediacenter
Version:	1.3.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://community.kde.org/Plasma/Plasma_Media_Center
Source0:	ftp://ftp.kde.org/pub/kde/unstable/%{name}/%{version}/src/%{name}-%{version}.tar.bz2
BuildRequires:	kdelibs4-devel
BuildRequires:	kdebase4-workspace-devel
%if %{mdvver} < 201410
BuildRequires:	nepomuk-core-devel
%else
BuildRequires:	baloo-devel
BuildRequires:	kfilemetadata-devel
%endif
BuildRequires:	qt-mobility-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(taglib)
Requires:	qt-mobility

%description
A mediacenter user interface written with the Plasma framework.

%files -f %{name}.lang
%doc README LICENSE
%{_kde_bindir}/plasma-mediacenter
%{_kde_applicationsdir}/plasma-mediacenter.desktop
%{_kde_appsdir}/plasma/packages/org.kde.plasma.mediacenter/
%{_kde_libdir}/kde4/imports/org/kde/plasma/mediacenter/
%{_kde_libdir}/kde4/pmc_*.so
%{_kde_iconsdir}/hicolor/*/actions/pmc-*.*
%{_kde_iconsdir}/hicolor/*/apps/youtube-pmc.*
%{_kde_iconsdir}/hicolor/*/status/pmcnocover.*
%{_kde_services}/*.desktop
%{_kde_servicetypes}/pmc_browsingbackend.desktop
%{_kde_servicetypes}/pmc_mediasource.desktop

#----------------------------------------------------------------------------

%define plasmamediacenter_major 1.3
%define libplasmamediacenter %mklibname plasmamediacenter %{plasmamediacenter_major}

%package -n %{libplasmamediacenter}
Summary:	Shared library for %{name}
Group:		System/Libraries
# Useless
Obsoletes:	%{_lib}plasmamediacenter0.9 < 1.1.0
Obsoletes:	%{_lib}plasmamediacenter1.1 < 1.1.9
Obsoletes:	%{_lib}plasmamediacenter1.2 < 1.3.0

%description -n %{libplasmamediacenter}
Shared library for %{name}.

%files -n %{libplasmamediacenter}
%{_kde_libdir}/libplasmamediacenter.so.%{plasmamediacenter_major}*

#----------------------------------------------------------------------------

%define libplasmamediacenter_devel %mklibname plasmamediacenter -d

%package -n %{libplasmamediacenter_devel}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libplasmamediacenter} = %{EVRD}

%description -n %{libplasmamediacenter_devel}
Development files for %{name}.

%files -n %{libplasmamediacenter_devel}
%{_kde_includedir}/mediacenter/
%{_kde_libdir}/libplasmamediacenter.so

#----------------------------------------------------------------------------

%prep
%setup -q -n plasma-mediacenter

%build
%cmake_kde4 -DKDE4_BUILD_TESTS=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6566 |21cr|plasma-phonebook-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Phone book application for Plasma Mobile
Name:		plasma-phonebook
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5people-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	kpeoplevcard-devel

%description
Phone book application for Plasma Mobile.


%files -f plasma-phonebook.lang
%{_kde5_bindir}/plasma-phonebook
%{_qt5_plugindir}/kpeople/actions/phonebook_kpeople_plugin.so
%{_kde5_applicationsdir}/org.kde.phonebook.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.phonebook.svg
%{_appdatadir}/org.kde.phonebook.metainfo.xml

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang plasma-phonebook


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6567 |21cr|plasma-phone-settings-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma phone settings configuration module
Name:		plasma-phone-settings
Version:	0.2
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://invent.kde.org/plasma-mobile/plasma-phone-settings
Source1:	kdeglobals
Source2:	kscreenlockerrc
Source3:	kwinrc
Source4:	applications-blacklistrc
Source5:	plasmamobile.json
BuildRequires:	extra-cmake-modules
Conflicts:	plasma5-config-fresh
Conflicts:	plasma5-mobile-config
BuildArch:	noarch

%description
Plasma phone settings configuration module.

%files

%{_kde5_sysconfdir}/xdg/applications-blacklistrc
%{_kde5_sysconfdir}/xdg/kdeglobals
%{_kde5_sysconfdir}/xdg/kscreenlockerrc
%{_kde5_sysconfdir}/xdg/kwinrc
%{_kde5_datadir}/maliit/keyboard2/devices/plasmamobile.json

#----------------------------------------------------------------------------

%prep

%build

%install

mkdir -p %{buildroot}%{_kde5_sysconfdir}/xdg
mkdir -p %{buildroot}%{_kde5_datadir}/maliit/keyboard2/devices
install -m 0644 %{SOURCE1} %{buildroot}%{_kde5_sysconfdir}/xdg/kdeglobals
install -m 0644 %{SOURCE2} %{buildroot}%{_kde5_sysconfdir}/xdg/kscreenlockerrc
install -m 0644 %{SOURCE3} %{buildroot}%{_kde5_sysconfdir}/xdg/kwinrc
install -m 0755 %{SOURCE4} %{buildroot}%{_kde5_sysconfdir}/xdg/applications-blacklistrc
install -m 0755 %{SOURCE5} %{buildroot}%{_kde5_datadir}/maliit/keyboard2/devices/plasmamobile.json

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6568 |21cr|plasma-runner-virtualbox-0.3.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Virtualbox KDE runner
Name:           plasma-runner-virtualbox
Version:        0.3.3
Release:        8
Source:         http://kde-apps.org/CONTENT/content-files/107926-vbox-runner-%{version}.tar.gz
License:        GPLv2+
Group:          Graphical desktop/KDE
URL:            http://kde-apps.org/content/show.php/VBox+Runner?content=107926
BuildRequires:  kdelibs4-devel
Requires:	virtualbox
%rename virtualbox-kde-runner

%description
Allows you to start your VirtualBox virtual machines from Krunner
(the Alt-F2 thing)

%files
%doc COPYING
%{_kde_libdir}/kde4/*.so
%{_kde_services}/*
%{_datadir}/pixmaps/vbox-runner/*
#--------------------------------------------------------------------

%prep
%setup -qn vbox-runner-%{version}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6569 |21cr|plasma-settings-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Settings application for Plasma Mobile
Name:		plasma-settings
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	plasma-settings-22.11_ru.tar.gz
Patch0:	    plasma-settings-string_locale.patch
Patch1:	    plasma-settings-pot.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	cmake
BuildRequires:	kf5auth-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(gobject-2.0)

%description
Settings application for Plasma Mobile

%files -f kcm_cellular_network.lang -f kcm_mobile_info.lang -f kcm_mobile_power.lang -f kcm_mobile_time.lang -f kcm_mobile_virtualkeyboard.lang -f kcm_password.lang -f mobile.plasmasettings.lang
%{_kde5_applicationsdir}/org.kde.mobile.plasmasettings.desktop
%{_kde5_bindir}/plasma-settings
%{_qt5_plugindir}/kcms/kcm_cellular_network.so
%{_qt5_plugindir}/kcms/kcm_mobile_info.so
%{_qt5_plugindir}/kcms/kcm_mobile_time.so
%{_qt5_plugindir}/kcms/kcm_password.so
%{_qt5_plugindir}/kcms/kcm_mobile_onscreenkeyboard.so
%{_qt5_plugindir}/kcms/kcm_mobile_power.so
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_info
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_time
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_virtualkeyboard
%{_kde5_datadir}/kpackage/kcms/kcm_password
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_power
%{_kde5_datadir}/kpackage/kcms/kcm_cellular_network


%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

# Not ported yet
rm -f po/*/kcm_mobile_powermanagement.po

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang kcm_cellular_network
%find_lang kcm_mobile_info
%find_lang kcm_mobile_power
%find_lang kcm_mobile_time
%find_lang kcm_mobile_virtualkeyboard
%find_lang kcm_password
%find_lang mobile.plasmasettings

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6570 |21cr|plasmatube-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	YouTube client for Plasma Mobile
Name:		plasmatube
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(mpv)
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	yt-dlp
Requires:	yt-dlp

%description
YouTube client for Plasma Mobile.

%files -f plasmatube.lang
%{_kde5_bindir}/plasmatube
%{_kde5_applicationsdir}/org.kde.plasmatube.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.plasmatube.svg
%{_appdatadir}/org.kde.plasmatube.appdata.xml


#----------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6571 |21cr|plasma-wallpaper-flymode-0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname	plasma-wallpaper-FlyMode

Summary:	An animated wallpaper
Name:		plasma-wallpaper-flymode
Version:	0.8
Release:	5
License:	GPLv2
Group:		Graphical desktop/KDE
URL:		http://www.kde-look.org
Source0:	http://www.kde-look.org/CONTENT/content-files/119187-%{srcname}_%{version}.tar.gz
BuildRequires:	kdebase4-workspace-devel
Requires:	kdebase4-runtime
Provides:	plasma-applet

%description
The wallpaper plugin moves a seamless wallpaper picture endlessly over the 
desktop, making you feel like flying.

%files  
%{_kde_libdir}/kde4/plasma_wallpaper_FlyMode.so
%{_kde_services}/%{srcname}.desktop

#------------------------------------------------------------------------------

%prep
%setup -q -n %{srcname}

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6572 |21cr|playmidi-2.9-0.20150310.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The latest release was in 2001, but in devel tree
# there are commits from 2015: pick up them
%define	git	1
%define	gitdate	20150310

%if %{git}
%define	ver	2.9
%define	rel	0.%{gitdate}.6
%else
%define	ver	2.5
%define	rel	17
%endif

Summary:	A MIDI sound file player
Name:		playmidi
Version:	%{ver}
Release:	%{rel}
License:	GPLv2+
Group:		Sound
Url:		http://sourceforge.net/projects/playmidi/
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
Patch7:		%{name}-2.9git-CAN-2005-0020.patch
%else
Source0:	http://sourceforge.net/projects/playmidi/files/playmidi/2.5/%{name}-%{version}.tar.bz2
Patch0:		%{name}-2.3-hertz.patch
Patch1:		%{name}-2.3-awe2.patch
Patch2:		%{name}-2.4-lib64.patch
Patch3:		%{name}-2.4-midimap.patch
Patch4:		%{name}-2.4-CAN-2005-0020.patch
Patch5:		%{name}-2.5-fix-str-fmt.patch
Patch6:		%{name}-2.5-fix-overlinking.patch
%endif
BuildRequires:	svgalib-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)
ExclusiveArch:	%{ix86} x86_64

%description
Playmidi plays MIDI (Musicial Instrument Digital Interface) sound files
through a sound card synthesizer. This package includes basic drum samples for
use with simple FM synthesizers. Install playmidi if you want to play MIDI
files using your computer's sound card.

%files
%license COPYING
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/modules-load.d/%{name}.conf
%if !%{git}
%dir %{_sysconfdir}/midi
%config(noreplace) %{_sysconfdir}/midi/std.o3
%config(noreplace) %{_sysconfdir}/midi/std.sb
%config(noreplace) %{_sysconfdir}/midi/drums.o3
%config(noreplace) %{_sysconfdir}/midi/drums.sb
%endif
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%if !%{git}
%package X11
Summary:	An X Window System based MIDI sound file player
Group:		Sound
Requires:	%{name} = %{EVRD}

%description X11
Playmidi-X11 provides an X Window System interface for playing MIDI (Musical
Instrument Digital Interface) sound files through a sound card synthesizer.
This package includes basic drum samples for use with simple FM synthesizers.
Install playmidi-X11 if you want to use an X interface to play MIDI sound
files using your computer's sound card.

%files X11
%license COPYING
%{_bindir}/x%{name}
%{_datadir}/app-defaults/XPlaymidi
%endif

#-----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{name}-%{gitdate}
%patch7 -p1 -b .can-2005-0020
%else
%setup -qn %{name}-2.4
%patch0 -p1 -b .consthertz
%patch1 -p1 -b .awe2
%patch2 -p1 -b .lib64
%patch3 -p1 -b .midimap
%patch4 -p1 -b .can-2005-0020
%patch5 -p1 -b .strfmt
%patch6 -p1 -b .overlinking
%endif

%build
%if %{git}
PATH=.:$PATH
%make all
%else
./Configure << EOF
2
EOF

PATH=.:$PATH
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" LIB="%{_lib}" %{name}
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" LIB="%{_lib}" x%{name}
%endif

%install
# No automated install provided: go manually
%if %{git}
# 1. Prepare needed dirs
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
 # 2. Install files
install -m0755 %{name} %{buildroot}%{_bindir}/%{name}
install -m0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
%else
# 1. Prepare needed dirs
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/app-defaults/XPlaymidi
install -d %{buildroot}%{_mandir}/man1
 # 2. Install files
install -m0755 %{name} %{buildroot}%{_bindir}/%{name}
install -m0755 x%{name} %{buildroot}%{_bindir}/x%{name}
install -m0644 XPlaymidi.ad %{buildroot}%{_datadir}/app-defaults/XPlaymidi
install -m0644 %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
# 3. Install sample drums
install -d %{buildroot}%{_sysconfdir}/midi
for n in std.o3 drums.o3 std.sb drums.sb; do
	install -m 644 $n -D %{buildroot}%{_sysconfdir}/midi/$n
done
%endif

# Autoload seq kernel module on program start
mkdir -p %{buildroot}/etc/modules-load.d
echo "snd_seq" > %{buildroot}/etc/modules-load.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6573 |21cr|playonlinux-4.4-0.git749917.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# upstream has many important changes after release 4.4,
# e.g. python3 support; Fedora also picks them
%define commit 749917b0d0c6d439f71004fdd9bc56992bb91f14
%define commit_short %(echo %{commit} | head -c 6)

%define __python %__python3

Summary:	Play your Windows games on Linux
Name:		playonlinux
Version:	4.4
Release:	0.git%{commit_short}.1
License:	GPLv3+
Group:		Games/Other
Url:		http://www.playonlinux.com
Source0:	https://github.com/PlayOnLinux/POL-POM-4/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		PlayOnLinux_4.2.5-disable-update.patch
Patch1:		PlayOnLinux-4.3.4-disable-GL-checks.patch
Patch2:		PlayOnLinux-4.3.4-use-systemwide-locales-path.patch
Patch3:		PlayOnLinux-4.2.11-fix-desktop-file.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	python3
BuildRequires:	python3-devel
BuildRequires:	python3-natsort
BuildRequires:	python3-wxpython4
# for ar
Requires:	binutils
Requires:	cabextract
Requires:	gettext
Requires:	gnupg
Requires:	glxinfo
Requires:	imagemagick
Requires:	jq
Requires:	lzma
# http://bugs.rosalinux.ru/show_bug.cgi?id=2208
Requires:	p7zip
Requires:	unzip
Requires:	wget
Requires:	xterm
Requires:	python3
Requires:	python3-natsort
Requires:	python3-wxpython4
# used to extract icons for applications, otherwise the default icon is used
Recommends:	icoutils >= 0.29

%description
PlayOnLinux is a piece of sofware which allows you to install and use easily
numerous games and software designed to run with Microsoft(R)'s Windows(R).
Indeed, currently, still few games are compatible with GNU/Linux, and it could
be a factor preventing from migrating to this system. PlayOnLinux brings an 
accessible and efficient solution to this problem, cost-free and respectful of
the free software.

%files -f pol.lang
%license LICENCE doc/copyright
%doc CHANGELOG.md README.md TRANSLATORS
%{_bindir}/%{name}
%{_bindir}/%{name}-pkg
%{_libexecdir}/%{name}-check_dd
%{_datadir}/%{name}/
%{_datadir}/appdata/PlayOnLinux.appdata.xml
%{_datadir}/applications/PlayOnLinux.desktop
%{_datadir}/pixmaps/%{name}*.png
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-pkg.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n POL-POM-4-%{commit}

%build
%make_build \
	CFLAGS="%{optflags} %{ldflags}" \
	PYTHON="%{__python3} -m py_compile"

%install
%make_install

# (Based on Fedora spec)

# Remove shebang from Python library
sed '1{/^#!\//d}' -i %{buildroot}%{_datadir}/%{name}/python/setupwindow/gui_server.py

# Remove misplaced files and directories
rm -rf %{buildroot}%{_datadir}/%{name}/{bin,tests,CHANGELOG.md,LICENCE,README.md,TRANSLATORS}
rm -f %{buildroot}%{_datadir}/%{name}/etc/PlayOnLinux.{appdata.xml,desktop}

# Byte compile importable Python modules outside of standard paths
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/%{name}/python/

%find_lang pol

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6574 |21cr|plexus-ant-factory-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}

%define without_maven 1
%define with_maven 0

%define parent plexus
%define subname ant-factory

Name:           %{parent}-%{subname}
Version:        1.0
Release:        4
Epoch:          0
Summary:        Plexus Ant component factory
License:        MIT-Style
Group:          Development/Java
URL:            http://plexus.codehaus.org/
Source0:        %{name}-src.tar.gz
# svn export svn://svn.plexus.codehaus.org/plexus/tags/
#            plexus-ant-factory-1.0-alpha-1 plexus-ant-factory/
# tar czf plexus-ant-factory-src.tar.gz plexus-ant-factory/
Source1:        %{name}-jpp-depmap.xml
Source2:        %{name}-build.xml

BuildArch:      noarch

BuildRequires:  java-rpmbuild >= 0:1.7.2
%if %{with_maven}
BuildRequires:    maven2 >= 2.0.4-9
BuildRequires:    maven2-plugin-compiler
BuildRequires:    maven2-plugin-install
BuildRequires:    maven2-plugin-jar
BuildRequires:    maven2-plugin-javadoc
BuildRequires:    maven2-plugin-release
BuildRequires:    maven2-plugin-resources
BuildRequires:    maven2-plugin-surefire
BuildRequires:    maven2-common-poms >= 1.0-2
%endif
BuildRequires:    ant
BuildRequires:    classworlds
BuildRequires:    plexus-container-default
BuildRequires:    plexus-utils

Requires:    ant
Requires:    classworlds
Requires:    plexus-container-default
Requires:    plexus-utils

Requires(post):    jpackage-utils >= 0:1.7.2
Requires(postun):  jpackage-utils >= 0:1.7.2

%description
Ant component class creator for Plexus.

%if %{with_maven}
%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.
%endif

%prep
%setup -q -n %{name}

%if %{without_maven}
    cp -p %{SOURCE2} build.xml
%endif


%build
%if %{with_maven}
    export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
    mkdir -p $MAVEN_REPO_LOCAL

    mvn-jpp \
        -e \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        install javadoc:javadoc

%else

    mkdir lib
    build-jar-repository \
                             -s -p \
                            lib ant ant-launcher \
                            classworlds \
                            plexus/container-default \
                            plexus/utils
    %{ant} -Dmaven.mode.offline=true

%endif

%install
# jars
install -d -m 755 %{buildroot}%{_javadir}/plexus
install -pm 644 target/*.jar \
      %{buildroot}%{_javadir}/%{parent}/%{subname}-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name} 1.0-alpha-1 JPP/%{parent} %{subname}

(cd %{buildroot}%{_javadir}/%{parent} && for jar in *-%{version}*; \
  do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# pom
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
install -pm 644 pom.xml \
          %{buildroot}%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}.pom

# javadoc
%if %{with_maven}
    install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}

    cp -pr target/site/apidocs/* \
        %{buildroot}%{_javadocdir}/%{name}-%{version}/

    ln -s %{name}-%{version} \
                $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
%endif

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%{_javadir}/plexus
%{_datadir}/maven2
%config(noreplace) %{_mavendepmapfragdir}/*

%if %{with_maven}
%files javadoc
%doc %{_javadocdir}/*
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6575 |21cr|plexus-bsh-factory-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _without_maven 1
%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}

%define parent plexus
%define subname bsh-factory

Name:           %{parent}-%{subname}
Version:        1.0
Release:        4
Epoch:          0
Summary:        Plexus Bsh component factory
License:        MIT-Style
Group:          Development/Java
URL:            http://plexus.codehaus.org/
Source0:        %{name}-src.tar.gz
# svn export svn://svn.plexus.codehaus.org/plexus/tags/plexus-bsh-factory-1.0-alpha-7-SNAPSHOT plexus-bsh-factory/
# tar czf plexus-bsh-factory-src.tar.gz plexus-bsh-factory/
Source1:        %{name}-jpp-depmap.xml
Source2:        %{name}-build.xml

Patch1:         %{name}-encodingfix.patch

BuildArch:      noarch

BuildRequires:     java-rpmbuild 
%if %{with_maven}
BuildRequires:     maven2 >= 2.0.4-9
BuildRequires:     maven2-plugin-compiler
BuildRequires:     maven2-plugin-install
BuildRequires:     maven2-plugin-jar
BuildRequires:     maven2-plugin-javadoc
BuildRequires:     maven2-plugin-release
BuildRequires:     maven2-plugin-resources
BuildRequires:     maven2-plugin-surefire
BuildRequires:     maven2-common-poms >= 1.0-2
%else
BuildRequires:     ant
%endif
BuildRequires:     bsh
BuildRequires:     classworlds
BuildRequires:     plexus-container-default
BuildRequires:     plexus-utils

Requires:          bsh
Requires:          classworlds
Requires:          plexus-container-default
Requires:          plexus-utils

Requires(post):    jpackage-utils >= 0:1.7.2
Requires(postun):  jpackage-utils >= 0:1.7.2

%description
Bsh component class creator for Plexus.

%if %{with_maven}
%package javadoc
Summary:        Javadoc for %{name}
Group:          Documentation

%description javadoc
Javadoc for %{name}.
%endif

%prep
%setup -q -n %{name}

%patch1 -b .sav

%if %{without_maven}
    cp -p %{SOURCE2} build.xml
%endif


%build

%if %{with_maven}
    export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
    mkdir -p $MAVEN_REPO_LOCAL

    mvn-jpp \
        -e \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        install javadoc:javadoc

%else

    mkdir lib
    build-jar-repository \
                             -s -p \
                             lib bsh classworlds \
                             plexus/container-default \
                             plexus/utils
    %{ant} -Dmaven.mode.offline=true

%endif

%install
# jars
install -d -m 755 %{buildroot}%{_javadir}/plexus
install -pm 644 target/*.jar \
      %{buildroot}%{_javadir}/%{parent}/%{subname}-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name} 1.0-alpha-7 JPP/%{parent} %{subname}

(cd %{buildroot}%{_javadir}/%{parent} && for jar in *-%{version}*; \
  do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# pom
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
install -pm 644 \
  pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}.pom

# javadoc
%if %{with_maven}
    install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}

    cp -pr target/site/apidocs/* \
        %{buildroot}%{_javadocdir}/%{name}-%{version}/

    ln -s %{name}-%{version} \
                $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
%endif

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%{_javadir}/plexus
%{_datadir}/maven2
%config(noreplace) %{_mavendepmapfragdir}/*

%if %{with_maven}
%files javadoc
%doc %{_javadocdir}/*
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6576 |21cr|plexus-interactivity-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We just want to use ant
%define _without_maven 1

# If you don't want to build with maven, and use straight ant instead,
# give rpmbuild option '--without maven'

%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}

Name:           plexus-interactivity
Version:        1.0
Release:        6
Epoch:          0
Summary:        Plexus Interactivity Handler Component
License:        Apache License
Group:          Development/Java
URL:            http://plexus.codehaus.org/
# svn export \
#   svn://svn.plexus.codehaus.org/plexus/tags/plexus-interactivity-1.0-alpha-5/
# tar cjf plexus-interactivity-1.0-alpha-5-src.tar.bz2 \
#   plexus-interactivity-1.0-alpha-5
# md5sum 7b2a814da29fc1118bc5b4e4bc6225eb
Source0:        plexus-interactivity-1.0-alpha-5-src.tar.bz2

Source1:        plexus-interactivity-1.0-api-build.xml
Source2:        plexus-interactivity-1.0-jline-build.xml
%if %{with_maven}
Source3:        plexus-interactivity-1.0-api-project.xml
Source4:        plexus-interactivity-1.0-jline-project.xml
%endif


BuildArch:      noarch
BuildRequires:  java-devel
BuildRequires:  java-rpmbuild >= 0:1.6
BuildRequires:  ant >= 0:1.6
BuildRequires:  ant-nodeps 
%if %{with_maven}
BuildRequires:  maven
%endif
BuildRequires:  jline
BuildRequires:  plexus-container-default
BuildRequires:  plexus-utils

Requires:  plexus-container-default
Requires:  plexus-utils
Requires:  jline

%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n plexus-interactivity-1.0-alpha-5
cp %{SOURCE1} plexus-interactivity-api/build.xml
cp %{SOURCE2} plexus-interactivity-jline/build.xml
%if %{with_maven}
cp %{SOURCE3} plexus-interactivity-api/project.xml
cp %{SOURCE4} plexus-interactivity-jline/project.xml
%endif

%build
%if %{with_maven}
mkdir -p .maven/repository/maven/jars
build-jar-repository .maven/repository/maven/jars \
maven-jelly-tags

mkdir -p .maven/repository/JPP/jars
build-jar-repository -s -p .maven/repository/JPP/jars \
jline plexus/container-default plexus/utils
export MAVEN_HOME_LOCAL=$(pwd)/.maven
%endif

pushd plexus-interactivity-api
%if %{with_maven}
maven \
        -Dmaven.repo.remote=file:/usr/share/maven/repository \
        -Dmaven.home.local=$MAVEN_HOME_LOCAL \
        jar:install javadoc

%else

mkdir -p target/lib
build-jar-repository -s -p target/lib plexus/container-default plexus/utils
%{ant} jar javadoc
%endif
popd

pushd plexus-interactivity-jline
%if %{with_maven}
maven \
        -Dmaven.repo.remote=file:/usr/share/maven/repository \
        -Dmaven.home.local=$MAVEN_HOME_LOCAL \
        jar:install javadoc

%else

mkdir -p target/lib
cp \
  ../plexus-interactivity-api/target/plexus-interactivity-api-1.0-alpha-5.jar \
  target/lib
build-jar-repository -s -p target/lib jline plexus/container-default
ant jar javadoc
%endif
popd

%install
# jars
install -d -m 755 %{buildroot}%{_javadir}/plexus
install -pm 644 \
  plexus-interactivity-api/target/%{name}-api-%{version}-alpha-5.jar \
  %{buildroot}%{_javadir}/plexus/interactivity-api-%{version}.jar
install -pm 644 \
  plexus-interactivity-jline/target/%{name}-jline-%{version}-alpha-5.jar \
  %{buildroot}%{_javadir}/plexus/interactivity-jline-%{version}.jar
(cd %{buildroot}%{_javadir}/plexus && \
 for jar in *-%{version}*; do \
     ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; \
 done \
)

# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}/api
cp -pr plexus-interactivity-api/target/docs/apidocs/* \
  %{buildroot}%{_javadocdir}/%{name}-%{version}/api
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}/jline
cp -pr plexus-interactivity-jline/target/docs/apidocs/* \
  %{buildroot}%{_javadocdir}/%{name}-%{version}/jline
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%files
%{_javadir}/*

%files javadoc
%doc %{_javadocdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6577 |21cr|plexus-utils-3.0.24-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define with_maven 0

%define parent plexus
%define subname utils

Name:           plexus-utils
Version:        3.0.24
Release:        4
Epoch:          0
Summary:        Plexus Common Utilities
License:        Apache License
Group:          Development/Java
URL:            http://plexus.codehaus.org/
# svn export svn://svn.plexus.codehaus.org/plexus/tags/plexus-utils-1.8/
# tar xzf plexus-utils-1.8.tar.gz plexus-utils-1.8
Source0:        plexus-utils-3.0.24.tar.gz
Source1:        plexus-utils-3.0.24-build.xml
Source2:        http://apache.org/licenses/LICENSE-2.0.txt
# build it with maven2-generated ant build.xml
BuildArch:      noarch
BuildRequires:  java-devel

BuildRequires:  ant >= 0:1.6.5
BuildRequires:  locales-en
BuildRequires:  java-rpmbuild >= 0:1.6
Requires:       jpackage-utils
Requires(postun): jpackage-utils
%if %{with_maven}
BuildRequires:  maven2 >= 0:2.0.4
BuildRequires:  maven2-plugin-surefire
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-release
BuildRequires:  maven2-plugin-javadoc
%endif

%description
The Plexus project seeks to create end-to-end developer tools for 
writing applications. At the core is the container, which can be 
embedded or for a full scale application server. There are many 
reusable components for hibernate, form processing, jndi, i18n, 
velocity, etc. Plexus also includes an application server which 
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:          Javadoc for %{name}
Group:            Development/Java
Requires:         jpackage-utils
Requires(postun): jpackage-utils

%description javadoc
Javadoc for %{name}.


%prep
%setup -q -n %{name}-%{name}-%{version}
cp %{SOURCE1} build.xml
cp %{SOURCE2} LICENSE-2.0.txt

%build
export LC_ALL=en_US.ISO-8859-1
%if %{with_maven}
export MAVEN_REPO_LOCAL=`pwd`/.m2/repository

mvn-jpp -e \
    -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
    install javadoc:javadoc


%else
export CLASSPATH=target/classes:target/test-classes
%{ant} -Dbuild.sysclasspath=only jar javadoc
%endif

%install
# jars
install -d -m 755 %{buildroot}%{_javadir}/plexus
install -pm 644 target/%{name}-%{version}.jar \
  %{buildroot}%{_javadir}/plexus/utils-%{version}.jar
%add_to_maven_depmap org.codehaus.plexus %{name} %{version} JPP/%{parent} %{subname}
(cd %{buildroot}%{_javadir}/plexus && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# pom
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
install -pm 644 pom.xml %{buildroot}%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}.pom

# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%doc LICENSE-2.0.txt
%{_javadir}/*
%{_datadir}/maven2
%config(noreplace) %{_mavendepmapfragdir}/*

%files javadoc
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6578 |21cr|plexus-velocity-1.1.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If you don't want to build with maven, and use straight ant instead,
# give rpmbuild option '--without maven'
%define with_maven 0
%define without_maven 1

%define section     free
%define parent plexus
%define subname velocity

Name:           plexus-velocity
Version:        1.1.7
Release:        4
Epoch:          0
Summary:        Plexus Velocity Component
License:         Apache Software License
Group:          Development/Java
URL:            http://plexus.codehaus.org/
# svn export http://svn.codehaus.org/plexus/plexus-components/tags/plexus-velocity-1.1.6/ && tar cvvzf plexus-velocity-1.1.6.tar.gz plexus-velocity-1.1.7/
Source0:        plexus-velocity-%{version}.tar.gz
Source1:        plexus-velocity-1.1.7-build.xml
#Source2:        plexus-velocity-1.1.7-project.xml
Source3:        plexus-velocity-settings.xml
Source4:        plexus-velocity-1.1.7-jpp-depmap.xml


BuildArch:      noarch
BuildRequires:  java-rpmbuild >= 0:1.7.2
BuildRequires:  ant >= 0:1.6
%if %{with_maven}
BuildRequires:  maven2 >= 2.0.4-10jpp
BuildRequires:  maven2-plugin-compiler
BuildRequires:  maven2-plugin-install
BuildRequires:  maven2-plugin-jar
BuildRequires:  maven2-plugin-javadoc
BuildRequires:  maven2-plugin-resources
BuildRequires:  maven2-plugin-surefire
BuildRequires:  maven2-plugin-release
%endif
BuildRequires:  ant-nodeps
BuildRequires:  classworlds >= 0:1.1
BuildRequires:  jakarta-commons-collections
BuildRequires:  jakarta-commons-logging
BuildRequires:  plexus-container-default
BuildRequires:  plexus-utils
BuildRequires:  velocity
Requires:  classworlds >= 0:1.1
Requires:  jakarta-commons-collections
Requires:  plexus-container-default
Requires:  plexus-utils
Requires:  velocity
Requires(post):    jpackage-utils >= 0:1.7.2
Requires(postun):  jpackage-utils >= 0:1.7.2

%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
for j in $(find . -name "*.jar"); do
        rm $j
done
cp %{SOURCE1} build.xml
#cp %{SOURCE2} project.xml
cp %{SOURCE3} settings.xml

%build
sed -i -e "s|<url>__JPP_URL_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
sed -i -e "s|<url>__JAVADIR_PLACEHOLDER__</url>|<url>file://`pwd`/external_repo</url>|g" settings.xml
sed -i -e "s|<url>__MAVENREPO_DIR_PLACEHOLDER__</url>|<url>file://`pwd`/.m2/repository</url>|g" settings.xml
sed -i -e "s|<url>__MAVENDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/maven2/plugins</url>|g" settings.xml
sed -i -e "s|<url>__ECLIPSEDIR_PLUGIN_PLACEHOLDER__</url>|<url>file:///usr/share/eclipse/plugins</url>|g" settings.xml

export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
mkdir -p $MAVEN_REPO_LOCAL

mkdir external_repo
ln -s %{_javadir} external_repo/JPP

%if %{with_maven}
    mvn-jpp \
        -e \
        -s $(pwd)/settings.xml \
        -Dmaven2.jpp.depmap.file=%{SOURCE4} \
        -Dmaven.repo.local=$MAVEN_REPO_LOCAL \
        install javadoc:javadoc

%else

mkdir -p target/lib
build-jar-repository -s -p target/lib \
classworlds \
commons-collections \
commons-logging-api \
plexus/container-default \
plexus/utils \
velocity \

%{ant} jar javadoc

%endif

%install

# jars
install -d -m 755 %{buildroot}%{_javadir}/plexus
install -pm 644 target/%{name}-%{version}.jar \
  %{buildroot}%{_javadir}/plexus/velocity-%{version}.jar
(cd %{buildroot}%{_javadir}/plexus && for jar in *-%{version}*; \
do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)
%add_to_maven_depmap org.codehaus.plexus %{name} %{version} JPP/%{parent} %{subname}

(cd %{buildroot}%{_javadir}/plexus && for jar in *-%{version}*; do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`; done)

# poms
%if %{with_maven}
install -d -m 755 %{buildroot}%{_datadir}/maven2/poms
install -pm 644 pom.xml \
    %{buildroot}%{_datadir}/maven2/poms/JPP.%{parent}-%{subname}.pom
%endif

# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%{_javadir}/*
%if %{with_maven}
%{_datadir}/maven2/poms/*
%endif
%config(noreplace) %{_mavendepmapfragdir}/*

%files javadoc
%doc %{_javadocdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6579 |21cr|plib-1.8.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Steve's Portable Game Library
Name:		plib
Version:	1.8.5
Release:	9
License:	LGPLv2+
Group:		Development/C++
URL:		http://plib.sourceforge.net/
Source0:	http://plib.sourceforge.net/dist/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)

%description
Write games and other realtime interactive applications that are 100% portable
across a wide range of hardware and operating systems.

#----------------------------------------------------

%package devel
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++

%description devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files devel
%doc README ChangeLog AUTHORS KNOWN_BUGS
%{_libdir}/lib%{name}*.a
%{_includedir}/plib/

#----------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fPIC"
export LDFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} -fPIC"
%configure
%make

%install
%makeinstall \
	includedir=%{buildroot}%{_includedir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6580 |21cr|plog-1.1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Portable, simple and extensible C++ logging library
Name:		plog
Version:	1.1.10
Release:	1
License:	MIT
Group:		Development/C
Url:		https://github.com/SergiusTheBest/plog
Source0:	https://github.com/SergiusTheBest/plog/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
Provides:	%{name}-devel = %{EVRD}

%description
Portable, simple and extensible C++ logging library.

%files
%doc README.md
%license LICENSE
%{_includedir}/plog
%{_libdir}/cmake/plog

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build
mkdir -p %{buildroot}/%{_includedir}
cp -R include %{buildroot}/%{_prefix}
rm -f %{buildroot}%{_datadir}/doc/plog/LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6581 |21cr|pluma-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define _disable_rebuild_configure 1
%define oname mate-text-editor
%define gmajor 1.0
%define girname %mklibname %{name}-gir %{gmajor}
%global __requires_exclude ^/usr/bin/python33$

Summary:	Small but powerful text editor for MATE
Name:		pluma
Version:	1.26.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Patch1:		pluma-1.12.2-win1251-detect.patch
Patch2:		1.26-pluma-ru.patch
BuildRequires:	autoconf-archive
BuildRequires:	docbook-dtd412-xml
BuildRequires:	intltool
BuildRequires:	iso-codes
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	xml2po
BuildRequires:	yelp-tools
BuildRequires:	aspell-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
Recommends:	mate-desktop
# the run-command plugin uses zenity
Requires:	zenity
%rename %{oname}

%description
Pluma is a small but powerful text editor designed expressly
for MATE.

It includes such features as split-screen mode, a plugin
API, which allows Pluma to be extended to support many
features while remaining small at its core, multiple
document editing through the use of a 'tabbed' notebook and
many more functions.

%files  -f %{name}.lang
%doc README* COPYING AUTHORS
%{_bindir}/pluma
%{_libdir}/pluma/plugins
%{_datadir}/pluma
%{_datadir}/applications/pluma.desktop
%{_mandir}/man1/*
%{_libexecdir}/pluma
%{_datadir}/glib-2.0/schemas/org.mate.pluma.gschema.xml
%{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.filebrowser.gschema.xml
%{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.time.gschema.xml
%{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.spell.gschema.xml
%{_datadir}/glib-2.0/schemas/org.mate.pluma.plugins.pythonconsole.gschema.xml
%{_metainfodir}/pluma.appdata.xml

#----------------------------------------------------------------------------

%package devel
Summary:	Headers for writing Pluma plugins
Group:		Development/GNOME and GTK+
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description devel
Pluma is a small but powerful text editor designed expressly
for MATE.

It includes such features as split-screen mode, a plugin
API, which allows Pluma to be extended to support many
features while remaining small at its core, multiple
document editing through the use of a 'tabbed' notebook and
many more functions.

Install this if you want to build plugins that use Pluma's API.

%files devel
%doc README* COPYING AUTHORS
%{_includedir}/pluma
%{_libdir}/pkgconfig/pluma.pc
%{_datadir}/gtk-doc/html/*
%{_datadir}/gir-1.0/Pluma-%{gmajor}.gir

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Pluma-%{gmajor}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

# shebang fix
sed -i -e "s/python/python3/" plugins/externaltools/data/switch-c.tool.in

%build
export LDFLAGS="-L%{_libdir}/"
%configure \
	--enable-gtk-doc \
	--enable-gvfs-metadata \
	--enable-introspection="yes"
%make 

%install

%makeinstall_std

%find_lang %{name} --with-gnome --all-name


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6582 |21cr|plymouth-theme-steampunk-3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# noarch package but uses _lib macro in post scripts
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	"SteampunK Powered Linux" Plymouth theme
Name:		plymouth-theme-steampunk
Version:	3.0
Release:	4
License:	Creative Commons Attribution-ShareAlike
Group:		System/Kernel and hardware
Url:		http://kde-look.org/content/show.php?content=146030
Source0:	http://sites.google.com/site/binaryinspiration/download/SPL_Plymouth.tar.gz
Requires:	plymouth
Requires(post,postun):	plymouth-scripts

%description
This package contains the "SteampunK Powered Linux" Plymouth theme.

%files
%{_datadir}/plymouth/themes/SteampunK

%post
if [ -x %{_sbindir}/plymouth-set-default-theme ]; then
    export LIB=%{_lib}
    if [ $1 -eq 1 ]; then
        %{_sbindir}/plymouth-set-default-theme --rebuild-initrd SteampunK
    else
        THEME=$(%{_sbindir}/plymouth-set-default-theme)
        if [ "$THEME" == "text" -o "$THEME" == "SteampunK" ]; then
            %{_sbindir}/plymouth-set-default-theme --rebuild-initrd SteampunK
        fi
    fi
fi

%postun
export LIB=%{_lib}
if [ $1 -eq 0 -a -x %{_sbindir}/plymouth-set-default-theme ]; then
    if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "SteampunK" ]; then
        %{_sbindir}/plymouth-set-default-theme --reset --rebuild-initrd
    fi
fi

#----------------------------------------------------------------------------

%prep
%setup -q -c
find . -type f | xargs chmod 0644

%build
# nothing

%install
mkdir -p %{buildroot}%{_datadir}/plymouth/themes/

cp -r SteampunK %{buildroot}%{_datadir}/plymouth/themes/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6583 |21cr|plzip-1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Multi-threaded LZMA archiver
Name:		plzip
Version:	1.10
Release:	1
License:	GPLv3+
Group:		Archiving/Compression
Url:		http://www.nongnu.org/lzip/plzip.html
Source0:	http://download.savannah.gnu.org/releases/lzip/%{name}/%{name}-%{version}.tar.lz
BuildRequires:	lzip
BuildRequires:	lzlib-devel

%description
Plzip is a massively parallel (multi-threaded), lossless data compressor based
on the LZMA algorithm, with very safe integrity checking and a user interface
similar to the one of gzip or bzip2. Plzip uses the lzip file format; the files
produced by plzip are fully compatible with lzip-1.4 or newer, and can be
rescued with lziprecover.

Plzip is intended for faster compression/decompression of big files
on multiprocessor machines, which makes it specially well suited
for distribution of big software files and large scale data archiving. On files
big enough, plzip can use hundreds of processors. 

%files
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/plzip
%{_mandir}/man1/plzip.1*
%{_infodir}/plzip.info*

#---------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6584 |21cr|pmacct-1.7.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%bcond_with pgsql
%bcond_with sqlite

Summary:	Promiscuous mode IP Accounting package
Name:		pmacct
Version:	1.7.6
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		http://www.pmacct.net/
Source0:	http://www.pmacct.net/%{name}-%{version}.tar.gz
# From Debian
Source1:	nfacctd.conf
Source2:	pmacctd.conf
Source3:	sfacctd.conf
Source4:	uacctd.conf
Source5:	pmacct.nfacctd.default
Source6:	pmacct.pmacctd.default
Source7:	pmacct.sfacctd.default
Source8:	pmacct.uacctd.default
Source9:	pmacct.nfacctd.service
Source10:	pmacct.pmacctd.service
Source11:	pmacct.sfacctd.service
Source12:	pmacct.uacctd.service
Patch0:		pmacct-not-build-examples.patch
BuildRequires:	mysql-devel
BuildRequires:	pcap-devel
BuildRequires:	numa-devel
BuildRequires:	procps-ng
%if %{with pgsql}
BuildRequires:	pkgconfig(libpq)
%endif
%if %{with sqlite}
BuildRequires:	pkgconfig(sqlite3)
%endif

%description
pmacct is a small set of passive network monitoring tools to measure, account,
classify and aggregate IPv4 and IPv6 traffic; a pluggable and flexible
architecture allows to store the collected traffic data into memory tables or
SQL (MySQL, SQLite, PostgreSQL) databases. pmacct supports fully customizable
historical data breakdown, flow sampling, filtering and tagging, recovery
actions, and triggers. Libpcap, sFlow v2/v4/v5 and NetFlow v1/v5/v7/v8/v9 are
supported, both unicast and multicast. Also, a client program makes it easy to
export data to tools like RRDtool, GNUPlot, Net-SNMP, MRTG, and Cacti.

%files
%doc %{_docdir}/pmacct
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/*
%dir %{_sysconfdir}/pmacct
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/nfacctd.conf
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/pmacctd.conf
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/sfacctd.conf
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/pmacct/uacctd.conf
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/default/nfacctd.default
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/default/pmacctd.default
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/default/sfacctd.default
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/default/uacctd.default
%{_unitdir}/nfacctd.service
%{_unitdir}/pmacctd.service
%{_unitdir}/sfacctd.service
%{_unitdir}/uacctd.service
%dir %{_var}/lib/pmacct

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
%if %{with pgsql}
	--enable-pgsql \
	--with-pgsql-includes=/usr/include/pgsql/ \
%endif
%if %{with sqlite}
	--enable-sqlite3 \
%endif
	--enable-mysql

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/pmacct/
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pmacct/nfacctd.conf
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pmacct/pmacctd.conf
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/pmacct/sfacctd.conf
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pmacct/uacctd.conf

mkdir -p %{buildroot}%{_sysconfdir}/default/
install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/default/nfacctd.default
install -m 0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/default/pmacctd.default
install -m 0644 %{SOURCE7} %{buildroot}%{_sysconfdir}/default/sfacctd.default
install -m 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/default/uacctd.default

mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE9} %{buildroot}%{_unitdir}/nfacctd.service
install -m 0644 %{SOURCE10} %{buildroot}%{_unitdir}/pmacctd.service
install -m 0644 %{SOURCE11} %{buildroot}%{_unitdir}/sfacctd.service
install -m 0644 %{SOURCE12} %{buildroot}%{_unitdir}/uacctd.service

mkdir -p %{buildroot}%{_var}/lib/pmacct

# remove unneeded examples
rm -rd %{buildroot}%{_libdir}

# move docs and examples
mkdir -p %{buildroot}%{_docdir}
mv  %{buildroot}%{_datadir}/%{name} -t %{buildroot}%{_docdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6585 |21cr|pmount-0.9.23-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pmount allow mounting devices without fstab modifications
Name:		pmount
Version:	0.9.23
Release:	7
License:	GPLv2+
Group:		System/Base
Url:		http://packages.debian.org/unstable/utils/pmount
Source0:	http://ftp.de.debian.org/debian/pool/main/p/%{name}/%{name}_%{version}.orig.tar.bz2
Patch0:		pmount-0.9.17-no-user-change-during-install.patch
Buildrequires:	glib-gettextize
Buildrequires:	intltool
BuildRequires:	libtool
Buildrequires:	perl-XML-Parser
Buildrequires:	gettext-devel
Buildrequires:	sysfsutils-devel
Buildrequires:	pkgconfig(blkid)

%description
Pmount allow mounting usb, firewire and pcmci media without modifying
/etc/fstab. It's a good base for automount software.

%files -f %{name}.lang
%{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/pmount.allow
%attr(4755,root,root) %{_bindir}/pmount
%attr(4755,root,root) %{_bindir}/pumount

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .no-user-change-during-install

%build
autoreconf -fi
libtoolize
%configure --disable-hal
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6586 |21cr|pmtools-20110323-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for examining kernel ACPI tables
Name:		pmtools
Version:	20110323
Release:	3
License:	GPLv2+
Group:		Development/Kernel
Url:		http://www.lesswatts.org
Source0:	http://www.lesswatts.org/patches/linux_acpi/%{name}-%{version}.tar.bz2

%description
This is a small collection of power management test and
investigation tools. See http://acpi.sourceforge.net
for more information on ACPI for Linux.

%files
%doc README COPYING madt/README.madt
%{_sbindir}/madt
%{_sbindir}/acpidump
%{_sbindir}/acpixtract

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
cp madt/README madt/README.madt

%build
%setup_compile_flags
%make -C acpidump
%make -C acpixtract
%make -C madt

%install
install -d %{buildroot}%{_sbindir}
install madt/madt %{buildroot}%{_sbindir}
install acpidump/acpidump %{buildroot}%{_sbindir}
install acpixtract/acpixtract %{buildroot}%{_sbindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6587 |21cr|pm-utils-1.4.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global quirkdbver 20100619

Summary:	Power management utilities and scripts
Name:		pm-utils
License:	GPLv2
Version:	1.4.1
Release:	19
Group:		System/Kernel and hardware
Url:		http://pm-utils.freedesktop.org
Source0:	http://pm-utils.freedesktop.org/releases/pm-utils-%{version}.tar.gz
Source1:	http://pm-utils.freedesktop.org/releases/pm-quirks-%{quirkdbver}.tar.gz
Source23:	pm-utils-bugreport-info.sh
# Use append instead of write for init_logfile (#660329)
Patch0:		pm-utils-1.4.1-init-logfile-append.patch
# Fix typo in 55NetworkManager (#722759)
Patch1:		pm-utils-1.4.1-networkmanager-typo-fix.patch
# Add support for grub2 in 01grub hook
Patch2:		pm-utils-1.4.1-grub2.patch
# Fix hooks exit code logging
Patch3:		pm-utils-1.4.1-hook-exit-code-log.patch
# Fix line spacing in logs to be easier to read (#750755)
Patch4:		pm-utils-1.4.1-log-line-spacing-fix.patch
# Fix NetworkManager dbus methods (fd.o #42500 / RH #740342)
Patch5:		pm-utils-1.4.1-nm_method.patch
# Add support for in-kernel (from kernel 3.6) suspend to both (#843657)
Patch6:		pm-utils-1.4.1-add-in-kernel-suspend-to-both.patch
BuildRequires:	xmlto
BuildRequires:	pkgconfig(dbus-1)
Requires:	usermode-consoleonly
Requires:	pciutils
%ifnarch %{armx} %{mips} %{e2k}
Requires:	vbetool
%endif

%description
The pm-utils package contains utilities and scripts useful for tasks related
to power management.

%files
%{_docdir}/%{name}-%{version}
%{_libdir}/pm-utils/bin/
%{_libdir}/pm-utils/defaults
%{_libdir}/pm-utils/functions
%{_libdir}/pm-utils/module.d/*
%{_libdir}/pm-utils/pm-functions
%{_libdir}/pm-utils/sleep.d/*
%{_bindir}/on_ac_power
%{_bindir}/pm-is-supported
%{_sbindir}/pm-utils-bugreport-info.sh
%{_sbindir}/pm-hibernate
%{_sbindir}/pm-powersave
%{_sbindir}/pm-suspend
%{_sbindir}/pm-suspend-hybrid
%{_mandir}/man1/*.1.xz
%{_mandir}/man8/*.8.xz
%ghost %{_localstatedir}/run/pm-utils
%{_libdir}/pm-utils/video-quirks
# no logrotate needed, because only one run of pm-utils is stored
# in the logfile
%ghost %verify(not md5 size mtime) %{_localstatedir}/log/pm-suspend.log

%preun
# Clean storage to prevent left-behind files. These files are dynamically
# created in runtime (also with dynamic names), thus it is hard to track
# them individually.
rm -rf %{_localstatedir}/run/pm-utils/{pm-suspend,pm-powersave}/storage/*

#----------------------------------------------------------------------------

%package devel
Summary:	Files for development using %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
This package contains the pkg-config files for development
when building programs that use %{name}.

%files devel
%{_libdir}/pkgconfig/pm-utils.pc

#----------------------------------------------------------------------------

%prep
%setup -q
tar -xzf %{SOURCE1}
%patch0 -p1 -b .init-logfile-append
%patch1 -p1 -b .network-manager-typo-fix.patch
%patch2 -p1 -b .grub2
%patch3 -p1 -b .hook-exit-code-log
%patch4 -p1 -b .log-line-spacing-fix
%patch5 -p1 -b .nm_method
%patch6 -p1 -b .add-in-kernel-suspend-to-both

%build
%configure \
	--docdir=%{_docdir}/%{name}-%{version}
make

%install
%makeinstall_std

install -D -m 0600 /dev/null %{buildroot}%{_localstatedir}/log/pm-suspend.log
mkdir -p %{buildroot}%{_localstatedir}/run/pm-utils/{locks,pm-suspend,pm-powersave}
touch %{buildroot}%{_localstatedir}/run/pm-utils/locks/{pm-suspend.lock,pm-powersave.lock}
mkdir -p %{buildroot}%{_localstatedir}/run/pm-utils/{pm-suspend,pm-powersave}/storage
install -D -m 0755 %{SOURCE23} %{buildroot}%{_sbindir}/pm-utils-bugreport-info.sh

# Install quirks
cp -r video-quirks %{buildroot}%{_libdir}/pm-utils

# Install extra documentation
cp -p COPYING AUTHORS ChangeLog %{buildroot}%{_docdir}/%{name}-%{version}/

#drop power.s stuff
rm -rf %{buildroot}%{_libdir}/pm-utils/power.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6588 |21cr|pmw-4.240-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion 4.24
%define version 4.240
%define rel 1
%if %{mdvver} >= 2011
%define release %rel
%else
%define release %mkrel %rel
%endif

Summary:	A program to typeset music scores into Postscript
Name:		pmw
Version:	%{version}
Release:	%{release}
License:	GPLv2+
Group:		Publishing
URL:		http://www.quercite.com/pmw.html
Source0:	http://www.quercite.com/%{name}-%{oversion}.tar.gz

%description
Philip's Music Writer is a program for typesetting music. It reads text files
as input, and generates PostScript as output. It can also write simple MIDI
files for proofhearing purposes. PMW is written in C and is freestanding; that
is, it does not require additional processing software. It is a Linux/Unix
port of a program that has run for over a decade on Acorn systems, where it
was known as Philip's Music Scribe.

%prep
%setup -q -n %{name}-%{oversion}

%build
%configure
%make

%check
make test

%install
%makeinstall_std \
	BINDIR=%{buildroot}%{_bindir} \
	DATADIR=%{buildroot}%{_datadir}/pmw \
	MANDIR=%{buildroot}%{_mandir}

rm -rf examples
mkdir examples
cp testdist/infiles/* examples/

# link fonts to ghostscript dir
mkdir -p %{buildroot}%{_datadir}/ghostscript/Resource/Font
ln -s ../../../pmw/psfonts/PMW-Alpha %{buildroot}%{_datadir}/ghostscript/Resource/Font/PMW-Alpha
ln -s ../../../pmw/psfonts/PMW-Music.pfa %{buildroot}%{_datadir}/ghostscript/Resource/Font/PMW-Music

%files
%defattr(-,root,root)
%doc doc/ChangeLog doc/spec.pdf contrib doc/examples
%{_bindir}/*
%{_datadir}/pmw
%{_datadir}/ghostscript/Resource/Font/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6589 |21cr|png2ico-20021208-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 2002-12-08

Summary:	PNG to icon converter
Name:		png2ico
Version:	20021208
Release:	17
License:	GPLv2+
Group:		Graphics
Url:		http://www.winterdrache.de/freeware/png2ico/index.html
Source0:	http://www.winterdrache.de/freeware/png2ico/data/%{name}-src-%{date}.tar.bz2
Patch0:		png2ico-20021208-gcc49.patch
BuildRequires:	pkgconfig(libpng)

%description
Converts PNG files to Windows icon resource files. If you're looking
for a program to create a favicon.ico for your website, look no
further. If you need instructions or don't even know what a favicon is,
check out this short tutorial on how to create and install a favicon.ico
http://www.winterdrache.de/freeware/png2ico/favicon.html

%files
%doc LICENSE VERSION README README.unix doc/bmp.txt
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -n %{name}
%patch0 -p1

%build
make CPPFLAGS="%{optflags}"

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 755 %{name} %{buildroot}%{_bindir}
install -m 644 doc/%{name}.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6590 |21cr|pngcheck-2.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PNG tester and debugger
Name:		pngcheck
Version:	2.3.0
Release:	5
License:	BSD
Group:		Graphics
URL:		http://www.libpng.org/pub/png/apps/pngcheck.html
Source0:	http://dl.sf.net/png-mng/pngcheck-%{version}.tar.gz
Patch0:		pngcheck-2.3.0-ldflags_fix.diff
Patch1:		pngcheck-2.3.0-format_not_a_string_literal_and_no_format_arguments.diff
BuildRequires:	zlib-devel

%description
pngcheck is the official PNG tester and debugger. Originally designed simply
to test the CRCs within a PNG image file (e.g., to check for ASCII rather
than binary transfer), it has since been extended to check and optionally
print almost all the information about a PNG image and to verify that it
conforms to the PNG specification. It also includes partial support for MNG
animations.

%prep

%setup -q
%patch0 -p0
%patch1 -p0

%build
%make -f Makefile.unx CFLAGS="%{optflags} -DUSE_ZLIB" LDFLAGS="%{ldflags}" LIBS="-lz"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 png-fix-IDAT-windowsize %{buildroot}%{_bindir}/
install -m0755 pngcheck %{buildroot}%{_bindir}/
install -m0755 pngsplit %{buildroot}%{_bindir}/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%doc CHANGELOG README
%{_bindir}/png-fix-IDAT-windowsize
%{_bindir}/pngcheck
%{_bindir}/pngsplit

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6591 |21cr|pngcrush-1.8.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to compress PNG files
Name:		pngcrush
Version:	1.8.13
Release:	1
License:	zlib
Group:		Graphics
URL:		http://pmt.sourceforge.net/%{name}/
Source0:	http://downloads.sourceforge.net/project/pmt/%{name}/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libpng)

%description
pngcrush is an optimizer for PNG (Portable Network Graphics) files. It can
compress them as much as 40% losslessly.

%files 
%doc ChangeLog.html
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q
# force using system headers
rm z*.h crc32.h deflate.h inf*.h trees.h png*.h
chmod og+r *

%build
gcc %{optflags} -O3 -funroll-loops -fomit-frame-pointer -Wall -Wshadow %{ldflags} -o pngcrush pngcrush.c $(pkg-config --cflags --libs libpng zlib) -lm

%install
install -m0755 %{name} -D %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6592 |21cr|pnglite-0.1.17-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Upstream doesn't use a SONAME and nobody knows how stable the interface is
# Please take extra care when updating this package -- bump the following
# and rebuild dependencies (shouldn't be many) if you suspect an ABI change:
%define abi_major 0
%define abi_minor 1
%define libname %mklibname %name %abi_major
%define libnamedevel %mklibname -d %name

Name:           pnglite
Version:        0.1.17
Release:        5
Summary:        A lightweight C library for loading PNG images

Group:          System/Libraries
License:        Zlib
URL:            http://www.karlings.com/~danne/pnglite/
Source0:        http://downloads.sourceforge.net/pnglite/%{name}-%{version}.zip
Patch0:         pnglite-0.1.17-zlib.patch

BuildRequires:  zlib-devel

%description
pnglite is a C library for loading PNG images. It was created as a
substitute for libpng in situations when libpng is more than enough. It
currently requires zlib for inflate and crc checking and it can read the
most common types of PNG images. The library has a small and simple to use
interface.

%package -n %libname
Summary:        A lightweight C library for loading PNG images
Group:          System/Libraries
Provides:       pnglite = %{version}-%{release}

%description -n %libname
pnglite is a C library for loading PNG images. It was created as a
substitute for libpng in situations when libpng is more than enough. It
currently requires zlib for inflate and crc checking and it can read the
most common types of PNG images. The library has a small and simple to use
interface.

%package -n %libnamedevel
Summary:        Files needed to build and link programs with pnglite
Group:          Development/C
Requires:       %libname = %{version}-%{release}
Provides:       pnglite-devel = %{version}-%{release}

%description -n %libnamedevel
This contains a header file and a link to library for the linker
to link against pnglite.

%prep
%setup -q -c
%patch0 -p1 -b .zlib
sed 's/\r//' -i pnglite.h

%build
gcc %{optflags} -shared -fPIC -Wl,--soname,libpnglite.so.%{abi_major} \
       -o libpnglite.so.%{abi_major}.%{abi_minor} pnglite.c

%install
rm -rf $RPM_BUILD_ROOT

install -d $RPM_BUILD_ROOT%{_libdir}
install -d $RPM_BUILD_ROOT%{_includedir}

install -pm 0644 pnglite.h $RPM_BUILD_ROOT%{_includedir}
install libpnglite.so.%{abi_major}.%{abi_minor} $RPM_BUILD_ROOT%{_libdir}
ln -s libpnglite.so.%{abi_major}.%{abi_minor} $RPM_BUILD_ROOT%{_libdir}/libpnglite.so.%{abi_major}
ln -s libpnglite.so.%{abi_major}.%{abi_minor} $RPM_BUILD_ROOT%{_libdir}/libpnglite.so

%clean
rm -rf $RPM_BUILD_ROOT

%files -n %libname
%defattr(-,root,root,-)
%{_libdir}/*.so.*

%files -n %libnamedevel
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_includedir}/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6593 |21cr|pngnq-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pngnq
Summary:	Pngnq is a tool for quantizing PNG images in RGBA format
Version:	1.1
Release:	6
License:	BSD with advertising and MIT and BSD
Group:		Graphics
URL:		http://pngnq.sourceforge.net/
Source0:	http://dl.sf.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		pngnq-libpng15.patch
BuildRequires:	pkgconfig(libpng)

%description
Pngnq is a tool for quantizing PNG images in RGBA format.

The neuquant algorithm uses a neural network to optimize the color
map selection. This is fast and quite accurate, giving good results
on many types of images.

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

%files
%doc README COPYING ChangeLog NEWS
%{_bindir}/*
%{_mandir}/man1/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6594 |21cr|pngquant-2.15.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		pngquant
Version:	2.15.1
Release:	1
Summary:	PNG quantization tool for reducing image file size
Group:		System/Libraries
License:	GPLv3+

URL:		http://%{name}.org
Source0:	https://github.com/pornel/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	libpng-devel >= 1.2.46-1
BuildRequires:	zlib-devel >= 1.2.3-1
BuildRequires:	lcms2-devel
BuildRequires:	libimagequant-devel >= %{version}
BuildRequires:	gomp-devel

%description
%{name} converts 24/32-bit RGBA PNG images to 8-bit palette with alpha channel
preserved.  Such images are compatible with all modern web browsers and a
compatibility setting is available to help transparency degrade well in
Internet Explorer 6.  Quantized files are often 40-70 percent smaller than
their 24/32-bit version. %{name} uses the median cut algorithm.

%files
%doc README.md CHANGELOG
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#--------------------------------------------------------------------------
%prep
%autosetup -p1

%build
# add some speed-relevant compiler-flags
export CFLAGS="%{optflags} -fno-math-errno -funroll-loops -fomit-frame-pointer -fPIC"
%configure --with-openmp --with-libimagequant
%make_build

%install
%make_install

%check
%make_build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6595 |21cr|pngrewrite-1.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pngrewrite
Version:	1.4.0
Release:	6
License:	BSD
Group:		Graphics
Source0:	%{name}-%{version}.tar.xz
URL:		http://entropymine.com/jason/pngrewrite/
Summary:	PNG size optimizer
BuildRequires:	pkgconfig(libpng)

%description
Pngrewrite is little utility that reduces the unnecessarily large
palettes that too many programs write into PNG files. It also
optimizes transparency settings, and reduces the bits-per-pixel
if possible. Handy for post-processing images before putting them
on a web site. 

%prep
%setup -q

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}

%files
%doc readme.txt
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6596 |21cr|pnmixer-0.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pnmixer
Version:	0.7.2
Release:	1
Summary:	Lightweight mixer applet
Group:		Sound
License:	GPLv3
URL:		https://github.com/nicklan/pnmixer/wiki
Source0:	https://github.com/nicklan/pnmixer/archive/v%{version}%{?prel:-%prel}/%{name}-%{version}.tar.gz
Patch0:		0001-Try-to-use-pavucontrol-also-as-a-mixer-app-if-Volume.patch
Patch1:		pnmixer-alsa-reload-card.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(alsa)
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	git-core
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
Recommends:	pavucontrol

%description
PNMixer is system tray sound mixer. Currently it supports ALSA and PulseAudio.
It is written in C, depends only on GTK+, and does not require Gnome.

PNMixer is a fork of OBMixer with a number of additions. These include:
* Volume adjustment with the scroll wheel
* Textual display of volume level in popup window
* Continuous volume adjustment when dragging the slider (not just when you let
  go)
* Use system icon theme for icons and use mute/low/medium/high volume icons
* Configurable middle click action (default is mute/unmute)
* Preferences for:
  * volume text display
  * volume text position
  * icon theme
  * amount to adjust per scroll
  * middle click action

%files -f %{name}.lang
%doc AUTHORS README.md
%{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------
%prep
%autosetup -p1 -S git_am

%build
%cmake
%make_build

%install
%make_install -C build

# minor fixes for the desktop file
desktop-file-install \
    --dir=%{buildroot}%{_sysconfdir}/xdg/autostart \
    --add-category="Audio" \
    build/data/desktop/pnmixer.desktop

%find_lang %{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6597 |21cr|pocketsphinx-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 5
%define	devname %mklibname %{name} -d
%define	libname %mklibname %{name} %{major}

%define	oldgstname gstreamer0.10-%{name}
%define	gstname gstreamer1.0-%{name}

Summary:	Real-time speech recognition
Name:		pocketsphinx
Version:	5.0.0
Release:	1
License:	BSD and LGPLv2+
Group:		Sound
Url:		https://github.com/cmusphinx/pocketsphinx
Source0:	https://github.com/cmusphinx/pocketsphinx/archive/refs/tags/v5.0.0.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		pocketsphinx-headers-dir.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ninja
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(python3) >= 2.6
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	python3egg(cython)
BuildRequires:	python3-scikit-build

%description
PocketSphinx is a version of the open-source Sphinx-II speech recognition
system which is able to recognize speech in real-time. While it may be
somewhat less accurate than the offline speech recognizers, it is lightweight
enough to run on handheld and embedded devices.

%files
%doc AUTHORS LICENSE NEWS README.md
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for pocketsphinx executables
Group:		System/Libraries

%description -n %{libname}
Shared libraries for pocketsphinx executables.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for developing with pocketsphinx
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for developing with pocketsphinx.

%files -n %{devname}
%{_includedir}/%{name}
%{_includedir}/pocketsphinx.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python interface to pocketsphinx
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Provides:	python-%{name} = %{EVRD}

%description -n python3-%{name}
Python interface to pocketsphinx.

%files -n python3-%{name}
%{python3_sitelib}/*

#-----------------------------------------------------------------------------

%package -n %{gstname}
Summary:	Gstreamer plugin for pocketsphinx
Group:		Sound
Requires:	%{name} = %{EVRD}
%rename		%{oldgstname}

%description -n %{gstname}
Gstreamer plugin for pocketsphinx.

%files -n %{gstname}
%{_libdir}/gstreamer-1.0/libgst%{name}.so

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}


%build
# build python
%py3_build
# build library
%cmake -DBUILD_GSTREAMER=ON

%install
%py3_install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6598 |21cr|poco-1.11.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global cmake_build_dir cmake-build
%global cmake_debug_dir cmake-debug

%bcond_with tests

%bcond_without samples

# mongodb still available only on little endian arches
%ifarch aarch64 %{arm} %{ix86} x86_64 ppc64le
%bcond_without mongodb
%endif

%global mysql_devel_pkg mysql-devel
%global mysql_lib_dir %{_libdir}/mysql

Name:             poco
Version:          1.11.0
Release:          2
Summary:          C++ class libraries for network-centric applications
Group:            System/Libraries
License:          Boost
URL:              https://pocoproject.org

Source0:          https://github.com/pocoproject/%{name}/archive/%{name}-%{version}-release.tar.gz#/%{name}-%{version}.tar.gz

# Disable the tests that will fail under Koji (mostly network)
Patch0:           disable-tests.patch
# Fix XML compilation due to new methods being guarded by XML_DTD
Patch1:           define-xml-dtd.patch

BuildRequires:    cmake
BuildRequires:    openssl-devel
BuildRequires:    libiodbc-devel
BuildRequires:    %{mysql_devel_pkg}
BuildRequires:    zlib-devel
BuildRequires:    pcre-devel
BuildRequires:    sqlite-devel
BuildRequires:    expat-devel
BuildRequires:    libtool-devel

# We build poco to unbundle as much as possible, but unfortunately, it uses
# some internal functions of pcre so there are a few files from pcre that are
# still bundled.  See https://github.com/pocoproject/poco/issues/120.
Provides:         bundled(pcre) = 8.35

%description
The POCO C++ Libraries (POCO stands for POrtable COmponents) 
are open source C++ class libraries that simplify and accelerate the 
development of network-centric, portable applications in C++. The 
POCO C++ Libraries are built strictly on standard ANSI/ISO C++, 
including the standard library.

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}-release

/bin/sed -i.orig -e 's|$(INSTALLDIR)/lib\b|$(INSTALLDIR)/%{_lib}|g' Makefile
/bin/sed -i.orig -e 's|ODBCLIBDIR = /usr/lib\b|ODBCLIBDIR = %{_libdir}|g' Data/ODBC/Makefile Data/ODBC/testsuite/Makefile
/bin/sed -i.orig -e 's|flags=""|flags="%{optflags}"|g' configure
/bin/sed -i.orig -e 's|SHAREDOPT_LINK  = -Wl,-rpath,$(LIBPATH)|SHAREDOPT_LINK  =|g' build/config/Linux
/bin/sed -i.orig -e 's|"Poco/zlib.h"|<zlib.h>|g' Zip/src/ZipStream.cpp
/bin/sed -i.orig -e 's|#endif|#define POCO_UNBUNDLED 1\n\n#endif|g' Foundation/include/Poco/Config.h

rm -f Foundation/src/MSG00001.bin
rm -f Foundation/include/Poco/zconf.h
rm -f Foundation/include/Poco/zlib.h
rm -f Foundation/src/adler32.c
rm -f Foundation/src/compress.c
rm -f Foundation/src/crc32.c
rm -f Foundation/src/crc32.h
rm -f Foundation/src/deflate.c
rm -f Foundation/src/deflate.h
rm -f Foundation/src/gzguts.h
rm -f Foundation/src/gzio.c
rm -f Foundation/src/infback.c
rm -f Foundation/src/inffast.c
rm -f Foundation/src/inffast.h
rm -f Foundation/src/inffixed.h
rm -f Foundation/src/inflate.c
rm -f Foundation/src/inflate.h
rm -f Foundation/src/inftrees.c
rm -f Foundation/src/inftrees.h
rm -f Foundation/src/trees.c
rm -f Foundation/src/trees.h
rm -f Foundation/src/zconf.h
rm -f Foundation/src/zlib.h
rm -f Foundation/src/zutil.c
rm -f Foundation/src/zutil.h
# PCRE files that can't be removed due to still being bundled:
#   pcre.h pcre_config.h pcre_internal.h pcre_tables.c pcre_ucd.c
rm -f Foundation/src/pcre_byte_order.c
rm -f Foundation/src/pcre_chartables.c
rm -f Foundation/src/pcre_compile.c
rm -f Foundation/src/pcre_config.c
rm -f Foundation/src/pcre_dfa_exec.c
rm -f Foundation/src/pcre_exec.c
rm -f Foundation/src/pcre_fullinfo.c
rm -f Foundation/src/pcre_get.c
rm -f Foundation/src/pcre_globals.c
rm -f Foundation/src/pcre_jit_compile.c
rm -f Foundation/src/pcre_maketables.c
rm -f Foundation/src/pcre_newline.c
rm -f Foundation/src/pcre_ord2utf8.c
rm -f Foundation/src/pcre_refcount.c
rm -f Foundation/src/pcre_string_utils.c
rm -f Foundation/src/pcre_study.c
rm -f Foundation/src/pcre_try_flipped.c
rm -f Foundation/src/pcre_valid_utf8.c
rm -f Foundation/src/pcre_version.c
rm -f Foundation/src/pcre_xclass.c
rm -f Data/SQLite/src/sqlite3.h
rm -f Data/SQLite/src/sqlite3.c
rm -f XML/include/Poco/XML/expat.h
rm -f XML/include/Poco/XML/expat_external.h
rm -f XML/src/ascii.h
rm -f XML/src/asciitab.h
rm -f XML/src/expat_config.h
rm -f XML/src/iasciitab.h
rm -f XML/src/internal.h
rm -f XML/src/latin1tab.h
rm -f XML/src/nametab.h
rm -f XML/src/utf8tab.h
rm -f XML/src/xmlparse.cpp
rm -f XML/src/xmlrole.c
rm -f XML/src/xmlrole.h
rm -f XML/src/xmltok.c
rm -f XML/src/xmltok.h
rm -f XML/src/xmltok_impl.c
rm -f XML/src/xmltok_impl.h
rm -f XML/src/xmltok_ns.c

%build
%if %{with tests}
  %global poco_tests -DENABLE_TESTS=ON
%endif
%if %{without samples}
  %global poco_samples --no-samples
%endif
%if %{without mongodb}
  %global poco_mongodb -DENABLE_MONGODB=OFF
%endif
%cmake -DPOCO_UNBUNDLED=ON %{?poco_tests} %{?poco_mongodb} -DENABLE_REDIS=OFF -DODBC_INCLUDE_DIR=%{_includedir}/iodbc -B %{cmake_build_dir}
%make_build -C %{cmake_build_dir}


%install
%make_install -C build/%{cmake_build_dir}
rm -f %{buildroot}%{_prefix}/include/Poco/Config.h.orig
rm -f %{buildroot}%{_bindir}/arc

%check
%if %{with tests}
export POCO_BASE="$(pwd)"
export LD_LIBRARY_PATH="%{buildroot}%{_libdir}:${LD_LIBRARY_PATH}"
pushd build/%{cmake_build_dir}
ctest -V %{?_smp_mflags} -E "MongoDB|Redis|DataMySQL|DataODBC"
popd
%endif

# -----------------------------------------------------------------------------
%define major 80
%define PocoFoundation %mklibname PocoFoundation %{major}

%package -n %{PocoFoundation}
Summary:          The Foundation POCO component
Group:            System/Libraries
Provides:         %{name}-foundation = %{EVRD}

%description -n %{PocoFoundation}
This package contains the Foundation component of POCO. (POCO is a set 
of C++ class libraries for network-centric applications.)

%files -n %{PocoFoundation}
%{_libdir}/libPocoFoundation.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoXML %mklibname PocoXML %{major}

%package -n %{PocoXML}
Summary:          The XML POCO component
Group:            System/Libraries
Provides:         %{name}-xml = %{EVRD}

%description -n %{PocoXML}
This package contains the XML component of POCO. (POCO is a set of C++ 
class libraries for network-centric applications.)

%files -n %{PocoXML}
%{_libdir}/libPocoXML.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoUtil %mklibname PocoUtil %{major}

%package -n %{PocoUtil}
Summary:          The Util POCO component
Group:            System/Libraries
Provides:         %{name}-util = %{EVRD}

%description -n %{PocoUtil}
This package contains the Util component of POCO. (POCO is a set of C++ 
class libraries for network-centric applications.)

%files -n %{PocoUtil}
%{_libdir}/libPocoUtil.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoNet %mklibname PocoNet %{major}

%package -n %{PocoNet}
Summary:          The Net POCO component
Group:            System/Libraries
Provides:         %{name}-net = %{EVRD}

%description -n %{PocoNet}
This package contains the Net component of POCO. (POCO is a set of C++ 
class libraries for network-centric applications.)

%files -n %{PocoNet}
%{_libdir}/libPocoNet.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoCrypto %mklibname PocoCrypto %{major}

%package -n %{PocoCrypto}
Summary:          The Crypto POCO component
Group:            System/Libraries
Provides:         %{name}-crypto = %{EVRD}

%description -n %{PocoCrypto}
This package contains the Crypto component of POCO. (POCO is a set of 
C++ class libraries for network-centric applications.)

%files -n %{PocoCrypto}
%{_libdir}/libPocoCrypto.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoNetSSL %mklibname PocoNetSSL %{major}

%package -n %{PocoNetSSL}
Summary:          The NetSSL POCO component
Group:            System/Libraries
Provides:         %{name}-netssl = %{EVRD}

%description -n %{PocoNetSSL}
This package contains the NetSSL component of POCO. (POCO is a set of 
C++ class libraries for network-centric applications.)

%files -n %{PocoNetSSL}
%{_libdir}/libPocoNetSSL.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoData %mklibname PocoData %{major}

%package -n %{PocoData}
Summary:          The Data POCO component
Group:            System/Libraries
Provides:         %{name}-data = %{EVRD}

%description -n %{PocoData}
This package contains the Data component of POCO. (POCO is a set of 
C++ class libraries for network-centric applications.)

%files -n %{PocoData}
%{_libdir}/libPocoData.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoDataSQLite %mklibname PocoDataSQLite %{major}

%package -n %{PocoDataSQLite}
Summary:          The Data/SQLite POCO component
Group:            System/Libraries
Provides:         %{name}-sqlite = %{EVRD}

%description -n %{PocoDataSQLite}
This package contains the Data/SQLite component of POCO. (POCO is a set 
of C++ class libraries for network-centric applications.)

%files -n %{PocoDataSQLite}
%{_libdir}/libPocoDataSQLite.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoDataODBC %mklibname PocoDataODBC %{major}

%package -n %{PocoDataODBC}
Summary:          The Data/ODBC POCO component
Group:            System/Libraries
Provides:         %{name}-odbc = %{EVRD}

%description -n %{PocoDataODBC}
This package contains the Data/ODBC component of POCO. (POCO is a set 
of C++ class libraries for network-centric applications.)

%files -n %{PocoDataODBC}
%{_libdir}/libPocoDataODBC.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoDataMySQL %mklibname PocoDataMySQL %{major}

%package -n %{PocoDataMySQL}
Summary:          The Data/MySQL POCO component
Group:            System/Libraries
Provides:         %{name}-mysql = %{EVRD}

%description -n %{PocoDataMySQL}
This package contains the Data/MySQL component of POCO. (POCO is a set 
of C++ class libraries for network-centric applications.)
%files -n %{PocoDataMySQL}
%{_libdir}/libPocoDataMySQL.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoZip %mklibname PocoZip %{major}

%package -n %{PocoZip}
Summary:          The Zip POCO component
Group:            System/Libraries
Provides:         %{name}-zip = %{EVRD}

%description -n %{PocoZip}
This package contains the Zip component of POCO. (POCO is a set of C++ 
class libraries for network-centric applications.)

%files -n %{PocoZip}
%{_libdir}/libPocoZip.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoJSON %mklibname PocoJSON %{major}

%package -n %{PocoJSON}
Summary:          The JSON POCO component
Group:            System/Libraries
Provides:         %{name}-json = %{EVRD}

%description -n %{PocoJSON}
This package contains the JSON component of POCO. (POCO is a set of C++
class libraries for network-centric applications.)

%files -n %{PocoJSON}
%{_libdir}/libPocoJSON.so.%{major}*

# -----------------------------------------------------------------------------
%if %{with mongodb}
%define PocoMongoDB %mklibname PocoMongoDB %{major}

%package -n %{PocoMongoDB}
Summary:          The MongoDB POCO component
Group:            System/Libraries
Provides:         %{name}-mongodb = %{EVRD}

%description -n %{PocoMongoDB}
This package contains the MongoDB component of POCO. (POCO is a set of C++
class libraries for network-centric applications.)

%files -n %{PocoMongoDB}
%{_libdir}/libPocoMongoDB.so.%{major}*
%endif

# -----------------------------------------------------------------------------
%package pagecompiler
Summary:          The PageCompiler POCO component
Group:            System/Libraries

%description pagecompiler
This package contains the PageCompiler component of POCO. (POCO is a 
set of C++ class libraries for network-centric applications.)

%files pagecompiler
%{_bindir}/cpspc
%{_bindir}/f2cpsp

# -----------------------------------------------------------------------------
%define PocoEncodings %mklibname PocoEncodings %{major}

%package -n %{PocoEncodings}
Summary:          The Encodings POCO component
Group:            System/Libraries
Provides:         %{name}-encodings = %{EVRD}

%description -n %{PocoEncodings}
This package contains the Encodings component of POCO. (POCO is a set of C++
class libraries for network-centric applications.)

%files -n %{PocoEncodings}
%{_libdir}/libPocoEncodings.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoJWT %mklibname PocoJWT %{major}

%package -n %{PocoJWT}
Summary:          The JWT POCO component
Group:            System/Libraries
Provides:         %{name}-jwt = %{EVRD}

%description -n %{PocoJWT}
This package contains the JWT component of POCO. (POCO is a set of C++
class libraries for network-centric applications.)

%files -n %{PocoJWT}
%{_libdir}/libPocoJWT.so.%{major}*

# -----------------------------------------------------------------------------
%define PocoActiveRecord %mklibname PocoActiveRecord %{major}

%package -n %{PocoActiveRecord}
Summary:          The ActiveRecord POCO component
Group:            System/Libraries
Provides:         %{name}-activerecord = %{EVRD}

%description -n %{PocoActiveRecord}
This package contains the ActiveRecord component of POCO. (POCO is a set of C++
class libraries for network-centric applications.)
%files -n %{PocoActiveRecord}
%{_libdir}/libPocoActiveRecord.so.%{major}*

# -----------------------------------------------------------------------------
%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:          Headers for developing programs that will use POCO
Group:            Development/Other
Requires:         %{PocoFoundation} = %{EVRD}
Requires:         %{PocoXML} = %{EVRD}
Requires:         %{PocoUtil} = %{EVRD}
Requires:         %{PocoNet} = %{EVRD}
Requires:         %{PocoCrypto} = %{EVRD}
Requires:         %{PocoNetSSL} = %{EVRD}
Requires:         %{PocoData} = %{EVRD}
Requires:         %{PocoDataSQLite} = %{EVRD}
Requires:         %{PocoDataODBC} = %{EVRD}
Requires:         %{PocoDataMySQL} = %{EVRD}
Requires:         %{PocoZip} = %{EVRD}
Requires:         %{PocoJSON} = %{EVRD}
%if %{with mongodb}
Requires:         %{PocoMongoDB} = %{EVRD}
%endif
Requires:         poco-pagecompiler%{?_isa} = %{EVRD}
Requires:         %{PocoEncodings} = %{EVRD}
Requires:         %{PocoJWT} = %{EVRD}
Requires:         %{PocoActiveRecord} = %{EVRD}

Requires:         zlib-devel
Requires:         expat-devel
Requires:         openssl-devel
Provides:         %{name}-devel = %{EVRD}

%description -n %{devname}
The POCO C++ Libraries (POCO stands for POrtable COmponents) 
are open source C++ class libraries that simplify and accelerate the 
development of network-centric, portable applications in C++. The 
POCO C++ Libraries are built strictly on standard ANSI/ISO C++, 
including the standard library.

This package contains the header files needed for developing 
POCO applications.

%files -n %{devname}
%{_includedir}/Poco
%{_libdir}/libPocoFoundation.so
%{_libdir}/libPocoXML.so
%{_libdir}/libPocoUtil.so
%{_libdir}/libPocoNet.so
%{_libdir}/libPocoCrypto.so
%{_libdir}/libPocoNetSSL.so
%{_libdir}/libPocoData.so
%{_libdir}/libPocoDataSQLite.so
%{_libdir}/libPocoDataODBC.so
%{_libdir}/libPocoDataMySQL.so
%{_libdir}/libPocoZip.so
%{_libdir}/libPocoJSON.so
%if %{with mongodb}
%{_libdir}/libPocoMongoDB.so
%endif
%{_libdir}/libPocoEncodings.so
%{_libdir}/libPocoJWT.so
%{_libdir}/libPocoActiveRecord.so
%{_libdir}/cmake/Poco

# -----------------------------------------------------------------------------
%package doc
Summary:          The POCO API reference documentation
Group:            Documentation

%description doc
The POCO C++ Libraries (POCO stands for POrtable COmponents) 
are open source C++ class libraries that simplify and accelerate the 
development of network-centric, portable applications in C++. The 
POCO C++ Libraries are built strictly on standard ANSI/ISO C++, 
including the standard library.

This is the complete POCO class library reference documentation in 
HTML format.

%files doc
%doc README NEWS LICENSE CONTRIBUTORS CHANGELOG doc/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6599 |21cr|pod2pdf-0.42-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       pod2pdf
Version:    0.42
Release:    7
License:    Artistic
Group:      Publishing
Summary:    Converts Pod to PDF format

Url:        http://perl.jonallen.info/projects/pod2pdf
Source:     http://perl.jonallen.info/attachment/24/pod2pdf-%{version}.tar.gz
Requires: perl(PDF::API2)
BuildRequires: perl-devel
BuildRequires: perl(PDF::API2)
BuildRequires: perl(Getopt::ArgvFile)
BuildRequires: perl(Pod::Parser)
BuildArch: noarch

%description
Converts Pod to PDF format with extensions to include inline images.

%prep
%setup -q

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_bindir}/pod2pdf
%{_mandir}/man1/pod2pdf.1*
%{perl_vendorlib}/App

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6600 |21cr|podget-0.8.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple podcast aggregator
Name:		podget
Version:	0.8.10
Release:	1
License:	GPLv2+
Group:		Networking/News
URL:		https://podget.sourceforge.net
Source0:	https://sourceforge.net/projects/podget/files/podget/podget-%{version}/%{name}-%{version}.tar.gz
Requires:	screen
Requires:	wget
BuildArch:	noarch

%description
Podget is a simple podcast aggregator with support for RSS and Bittorrent
feeds, folders and categories, and automatic playlist creation.

%files
%doc README
%{_bindir}/%{name}

#----------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}/%{_bindir}
cp %{name} %{buildroot}/%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6601 |21cr|podiff-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Program for comparing *.po files
Name:		podiff
Version:	1.3
Release:	1
License:	GPLv3
Group:		Documentation
Url:		https://puszcza.gnu.org.ua/projects/podiff
Source0:	ftp://download.gnu.org.ua/pub/release/podiff/podiff-%{version}.tar.gz

%description
Program for comparing *.po files

%files
%license COPYING
%doc README NEWS
%{_bindir}/podiff
%{_mandir}/man1/podiff.1*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6602 |21cr|podman-compose-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit ae3deb19dcce2a365eb54f05016de87a65cce43a
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           podman-compose
Version:        1.0.3
Release:        1
Summary:        Run docker-compose.yml using podman
Group:          Development/Python
License:        GPLv2
URL:            https://github.com/containers/podman-compose
Source0:        https://github.com/containers/podman-compose/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
#iSource0:        https://github.com/containers/podman-compose/archive/%{commit}/%{name}-%{shortcommit}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pyyaml
Requires:       python3
Requires:       python3-pyyaml
Requires:       podman
BuildArch:      noarch

%description
An implementation of docker-compose with podman backend.
The main objective of this project is to be able to run docker-compose.yml
unmodified and rootless.

%files
%doc README.md CONTRIBUTING.md docs/ examples
%license LICENSE
%{_bindir}/podman-compose
%{python3_sitelib}/__pycache__/podman_compose*pyc
%{python3_sitelib}/podman_compose*

#---------------------------------------------------------------
%prep
%autosetup

%build
%py3_build

%install
%py3_install

#Drop spurious shebang
sed -i /python3/d %{buildroot}%{python3_sitelib}/podman_compose.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6603 |21cr|podofo-0.10.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Tools and libraries to work with the PDF file format
Name:		podofo
Version:	0.10.3
Release:	1
Group:		Publishing
License:	GPL and LGPL
Url:		http://podofo.sourceforge.net
Source0:	https://github.com/podofo/podofo/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	podofo-resources-d4f58d77e7ba00495efbce4ee4805f24dc527fcc.zip
# From Fedora:
# Downstream patch for CVE-2019-20093
# https://sourceforge.net/p/podofo/tickets/75/
# CVE-2019-20093
# CVE-2018-5783
# CVE-2018-11254
# CVE-2018-11255
# CVE-2018-11256
# CVE-2018-12982
# CVE-2018-14320
# CVE-2018-19532
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	jpeg-devel
BuildRequires:	fontconfig
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
PoDoFo is a library to work with the PDF file format. The name comes from
the first letter of PDF (Portable Document Format). A few tools to work
with PDF files are already included in the PoDoFo package.

The PoDoFo library is a free, portable C++ library which includes classes
to parse PDF files and modify their contents into memory. The changes can be
written back to disk easily. The parser can also be used to extract
information from a PDF file (for example the parser could be used in a PDF
viewer). Besides parsing PoDoFo includes also very simple classes to create
your own PDF files. All classes are documented so it is easy to start writing
your own application using PoDoFo.

%files
%{_bindir}/%{name}*
%doc %{_mandir}/man1/%{name}*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime library for %{name}
Group:		System/Libraries
License:	LGPLv2+
# We had wrong major used for library package
Obsoletes:	%{_lib}podofo0 < 0.9.2
Conflicts:	%{_lib}podofo0 < 0.9.2

%description -n %{libname}
Runtime library for %{name}.

%files -n %{libname}
%doc AUTHORS* CHANGELOG* README* TODO*
%{_libdir}/libpodofo.so.%{major}*
%{_libdir}/libpodofo.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name} library
Group:		Development/C
License:	LGPLv2+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and documentation for the %{name} library.

%files -n %{devname}
%doc build/html
%{_includedir}/%{name}
%{_libdir}/libpodofo.so
%{_libdir}/pkgconfig/libpodofo.pc
%{_libdir}/cmake/podofo

#----------------------------------------------------------------------------

%prep
%setup -q -a1
%apply_patches

cp -r podofo-resources-*/* extern/resources

# fix install cmake files to roght place
sed -i 's|DESTINATION share/podofo|DESTINATION %{_lib}/cmake/podofo|' ./src/podofo/CMakeLists.txt

%build
#global optflags %{optflags} -std=c++11
%cmake \
	-DPODOFO_BUILD_STATIC=FALSE \
	-DPODOFO_BUILD_TOOLS=TRUE

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/target
%make

# build the docs
doxygen ../

%install
%makeinstall_std -C build

# install man
install -d %{buildroot}%{_mandir}/man1
install -m0644 man/%{name}*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6604 |21cr|podtohtml-0.09-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Name	PodToHTML

Summary:	Convert POD documentation to HTML
Name:		podtohtml
Version:	0.09
Release:	3
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/~adoptme/
Source:		http://search.cpan.org/CPAN/authors/id/A/AD/ADOPTME/%{Name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-HTML-Tree
BuildRequires:	perl-HTML-Format
BuildRequires:	perl-devel


%description
podtohtml converts POD documentation to HTML. It is based on the generic
Pod::Parser. It works by making two passes over the selected pods, the fisrt
pass uses Pod::Links to pre-scan for L<> links and =head1 NAME sections, and
then a second to build a tree of HTML::Elements for each POD and calling the
as_HTML method on the resulting tree.

The Generated HTML uses relative links.

%prep
%setup -q -n %{Name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/Pod

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6605 |21cr|poedit-3.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gettext translation file editor
Name:		poedit
Version:	3.2.2
Release:	2
License:	MIT
Group:		Editors
URL:		http://www.poedit.net
Source0:	https://github.com/vslavik/poedit/releases/download/v%{version}-oss/poedit-%{version}.tar.gz
Patch0:		poedit-desktop.patch
Requires:	gettext
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	wxgtku3.0-devel
BuildRequires:	db-devel
BuildRequires:	gtkspell3-devel
BuildRequires:	zip
BuildRequires:	desktop-file-utils
BuildRequires:	boost-devel
BuildRequires:	lucene++-devel
Requires(pre):	shared-mime-info

%description
Poedit is cross-platform gettext catalogs (.po files) editor. It is built with
wxWindows toolkit and can run on Unix or Windows. It aims to provide convenient
way of editing gettext catalogs. It features UTF-8 support, fuzzy and
untranslated records highlighting, whitespaces highlighting, references
browser, headers editing and can be used to create new catalogs or update
existing catalogs from source code by single click.

%prep
%setup -q
%patch0 -p1

%build
%configure
#configure --disable-legacytm
%make_build

%install
%make_install

# remove files not bundled
rm -f %{buildroot}%{_iconsdir}/poedit.xpm

%find_lang %{name}

%files -f %{name}.lang
%doc NEWS AUTHORS
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_metainfodir}/net.%{name}.Poedit.appdata.xml
%{_datadir}/applications/*%{name}*.desktop
%{_iconsdir}/hicolor/*/apps/*%{name}*.png
%{_iconsdir}/hicolor/scalable/apps/net.poedit.Poedit.svg
%{_mandir}/man1/%{name}.1.*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6606 |21cr|pokerth-1.1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Play Texas Holdem Poker alone or on-line
Name:		pokerth
Version:	1.1.2
Release:	3
License:	GPLv2+
Group:		Games/Cards
Url:		http://www.pokerth.net/
Source0:	https://sourceforge.net/projects/pokerth/files/pokerth/%{version}/%{name}-%{version}.tar.gz
Patch0:		pokerth-1.1.1-link.patch
Patch1:		pokerth-1.1.1-use-system-qtsingleapplication.patch
Patch2:		pokerth-1.1.1-boost-1.65-ambiguous-advance.patch
Patch3:		pokerth-1.1.2-enable-compile-of-server-part.patch
#From upstream bug report
# https://github.com/pokerth/pokerth/issues/338#issuecomment-353750015
Patch4:		pokerth-1.1.2-boost-1.66.patch
Patch5:		pokerth-1.1.2-protobuf-3.patch
Patch6:		pokerth-1.1.2-boost-1.70.patch
#
Patch10:	pokerth-boost-placeholders.patch
BuildRequires:	gnutls-devel
BuildRequires:	boost-devel
BuildRequires:	tinyxml-devel
BuildRequires:	libircclient-static-devel
BuildRequires:	libgcrypt-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgsasl)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	%{_lib}qtsingleapplication-qt5-devel

%description
PokerTH is a multi-platform poker game.
It allows you to play the popular "Texas Hold'em" poker variant against up to 
six computer-opponents or play network games with people all over the world.

%files
%doc ChangeLog docs/gui_styling_howto.txt
%attr(0755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png

#----------------------------------------------------------------------------

%package server
Summary:	PokerTH server
Group:		Games/Cards

%description server
PokerTH server.

%files server
%doc ChangeLog COPYING docs/server_setup_howto.txt
%attr(0755,root,root) %{_bindir}/%{name}_server

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-rc
%autopatch -p1
# remove bundled qtsingleapplication
rm -r src/third_party/qtsingleapplication

%build
%qmake_qt5 \
	QMAKE_CFLAGS_ISYSTEM="" \
	CONFIG+=client \
	pokerth.pro
%make

%install
# data
%make INSTALL_ROOT=%{buildroot} install
# man page
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 docs/%{name}.1 %{buildroot}%{_mandir}/man1/
# icon
install -d -m 755 %{buildroot}%{_iconsdir}
install -m 644 %{name}.png %{buildroot}%{_iconsdir}/%{name}.png

chmod -x %{buildroot}%{_datadir}/pokerth/data/misc/agpl.html
chmod -x %{buildroot}%{_datadir}/pokerth/data/gfx/gui/table/default_800x480/defaulttablestyle_800x480.xml
chmod -x %{buildroot}%{_datadir}/pokerth/data/gfx/gui/table/default_800x480/android_tablestyle_800x480.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6607 |21cr|polipo-1.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		polipo
Summary:	Lightweight caching web proxy
Group:		System/Servers
Version:	1.1.1
Release:	4
License:	MIT
URL:		http://www.pps.jussieu.fr/~jch/software/%{name}/
Source0:	http://freehaven.net/~chrisd/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.config
Source3:	%{name}.forbidden
Source4:	%{name}.logrotate
Source5:	%{name}.nm
Source6:	%{name}.tmpfiles
Source8:	%{name}.sysconfig
Source9:	%{name}.cron

Patch0:		polipo-1.0.4.1-fix-Makefile-to-access-install-info.patch
BuildRequires:	texinfo
BuildRequires:	info
Requires:	chkconfig
Requires:	logrotate

%description
Polipo is a lightweight caching web proxy that was designed as a personal
cache. It is able to cache incomplete objects and will complete them using
range requests. It will use HTTP/1.1 pipelining if supported by the remote
server.

%files
%doc README CHANGES COPYING config.sample
%attr(0750,%{name},%{name}) %dir %{_var}/cache/%{name}
%attr(0750,%{name},%{name}) %{_logdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_infodir}/%{name}.info*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/config
%config(noreplace) %{_sysconfdir}/%{name}/forbidden
%attr(0755,root,%{name}) %{_unitdir}/%{name}.service
%attr(0755,root,%{name}) %{_sysconfdir}/NetworkManager/dispatcher.d
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_tmpfilesdir}/%{name}.conf
%attr(0755,root,root) %{_sysconfdir}/cron.daily/%{name}
%{_sysconfdir}/sysconfig/%{name}

#--------------------------------------------------------------------
%prep
%setup -q
%patch0 -p0 -b .fix_makefile

%build
%make CDEBUGFLAGS="%{optflags}"

%install
%makeinstall \
	TARGET=%{buildroot} \
	PREFIX=%{_prefix} \
	BINDIR=%{_bindir} \
	MANDIR=%{_mandir} \
	INFODIR=%{_infodir}

install -m 0755 -d %{buildroot}%{_sysconfdir}/%{name}
install -m 0750 -d %{buildroot}%{_var}/cache/%{name}
install -m 0750 -d %{buildroot}%{_logdir}
touch %{buildroot}%{_logdir}/%{name}

install -D -pm 0644 %{SOURCE6} %{buildroot}/%{_tmpfilesdir}/%{name}.conf
install -D -pm 0755 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -pm 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/config
install -D -pm 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/forbidden
install -D -pm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -D -pm 0755 %{SOURCE5} %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/25-%{name}
install -D -pm 0644 %{SOURCE8} %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
install -D -pm 0755 %{SOURCE9} %{buildroot}/%{_sysconfdir}/cron.daily/%{name}

rm -f %{buildroot}%{_infodir}/dir

%pre
%_pre_useradd %{name} %{_var}/cache/%{name} /bin/false

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service %{name}.service

%preun
%_preun_service %{name}.service

%postun
%_postun_userdel %{name}
%systemd_postun_with_restart %{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6608 |21cr|polkit-qt-1-0.112.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libpolkit_qt_core_1 %mklibname polkit-qt-core-1_ %{major}
%define libpolkit_qt_gui_1 %mklibname polkit-qt-gui-1_ %{major}
%define libpolkit_qt_agent_1 %mklibname polkit-qt-agent-1_ %{major}

Summary:	Library that allows developer to access PolicyKit-1 API
Name:		polkit-qt-1
# last version with qt4 support
Version:	0.112.0
Release:	4
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/kdesupport/polkit-qt-1
Source0:	http://fr2.rpmfind.net/linux/KDE/stable/apps/KDE4.x/admin/%{name}-%{version}.tar.bz2
BuildRequires:	automoc4
BuildRequires:	cmake
BuildRequires:	pkgconfig(polkit-agent-1) >= 0.98.1
BuildRequires:	qt4-devel

%description
Polkit-qt is a library that allows developer to access PolicyKit-1 API with
a nice Qt-style API.

#----------------------------------------------------------------------------

%package -n %{libpolkit_qt_core_1}
Summary:	Polkit-Qt core library
Group:		System/Libraries
Obsoletes:	%{_lib}polkit-qt-core-10 < 0.103.0-7

%description -n %{libpolkit_qt_core_1}
Polkit-Qt core library.

%files -n %{libpolkit_qt_core_1}
%{_libdir}/libpolkit-qt-core-1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpolkit_qt_gui_1}
Summary:	Polkit-Qt core library
Group:		System/Libraries
Obsoletes:	%{_lib}polkit-qt-gui-10 < 0.103.0-7

%description -n %{libpolkit_qt_gui_1}
Polkit-Qt core library.

%files -n %{libpolkit_qt_gui_1}
%{_libdir}/libpolkit-qt-gui-1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpolkit_qt_agent_1}
Summary:	Polkit-Qt core library
Group:		System/Libraries
Obsoletes:	%{_lib}polkit-qt-agent-10 < 0.103.0-7

%description -n %{libpolkit_qt_agent_1}
Polkit-Qt core library.

%files -n %{libpolkit_qt_agent_1}
%{_libdir}/libpolkit-qt-agent-1.so.%{major}*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for polkit-Qt
Group:		Development/KDE and Qt
Requires:	%{libpolkit_qt_core_1} = %{EVRD}
Requires:	%{libpolkit_qt_gui_1} = %{EVRD}
Requires:	%{libpolkit_qt_agent_1} = %{EVRD}

%description devel
This package contains header files needed if you wish to build applications
based on %{name}.

%files devel
%{_includedir}/polkit-qt-1
%{_libdir}/libpolkit-qt-agent-1.so
%{_libdir}/libpolkit-qt-core-1.so
%{_libdir}/libpolkit-qt-gui-1.so
%{_libdir}/pkgconfig/polkit-qt-1.pc
%{_libdir}/pkgconfig/polkit-qt-agent-1.pc
%{_libdir}/pkgconfig/polkit-qt-core-1.pc
%{_libdir}/pkgconfig/polkit-qt-gui-1.pc
%{_libdir}/cmake/PolkitQt-1/*.cmake

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_qt4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6609 |21cr|polybar-3.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Git субмодули
#   * i3ipcpp
%global i3ipcpp_commit 21ce9060ac7c502225fdbd2f200b1cbdd8eca08d
%global i3ipcpp_shortcommit %(c=%{i3ipcpp_commit}; echo ${c:0:7})
#   * xpp
%global xpp_commit 044e69d05db7f89339bda1ccd1efe0263b01c8f6
%global xpp_shortcommit %(c=%{xpp_commit}; echo ${c:0:7})

Summary:    Fast and easy-to-use status bar
Summary(ru_RU.UTF-8):   Быстрая и простая в использовании строка состояния
Name:       polybar
Version:    3.7.1
Release:    1
License:    MIT
# BSD 2-clause "Simplified" License
# ---------------------------------
# lib/concurrentqueue/
#
# Expat License
# -------------
# lib/i3ipcpp/
# lib/xpp/
Group:      System/X11
Url:        https://github.com/polybar/polybar
Source0:    https://github.com/polybar/polybar/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:    https://github.com/polybar/i3ipcpp/archive/%{i3ipcpp_commit}/i3ipcpp-%{i3ipcpp_shortcommit}.zip
Source2:    https://github.com/polybar/xpp/archive/%{xpp_commit}/xpp-%{xpp_shortcommit}.zip

BuildRequires:	clang >= 3.4
BuildRequires:	cmake >= 3.1
BuildRequires:	%{_lib}xcb-util-image-devel
BuildRequires:	%{_lib}xcb-util-wm-devel
BuildRequires:	pkgconfig(xcb-xrm)
BuildRequires:	x11-proto-devel
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libuv)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-proto)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcb-cursor)
BuildRequires:	python3egg(sphinx)
BuildRequires:	wireless-tools
BuildRequires:	i3-devel
Requires:	siji-font

%description
Polybar aims to help users build beautiful and highly customizable status bars
for their desktop environment, without the need of having a black belt in shell
scripting.

%description -l ru_RU.UTF-8
Polybar стремится помочь пользователям создавать красивые и легко настраиваемые строки состояния
для своего рабочего стола без необходимости иметь черный пояс по написанию сценариев оболочки.

#-------------------------------------
%files
%{_sysconfdir}/polybar/config.ini
%{_bindir}/polybar
%{_bindir}/polybar-msg
%{_datadir}/bash-completion/completions/polybar
%{_docdir}/polybar
%{_datadir}/zsh/
%{_mandir}/man1/%{name}*
%{_mandir}/man5/%{name}*
#-------------------------------------
%prep
# Основной тарбалл
%setup -q
# Распаковка i3ipcpp
%setup -q -D -T -a1
# Распаковка xpp
%setup -q -D -T -a2

# Копирование субмодулей
rm -rf lib/i3ipcpp
mv i3ipcpp-%{i3ipcpp_commit} lib/i3ipcpp

rm -rf lib/xpp
mv xpp-%{xpp_commit} lib/xpp

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6610 |21cr|polychromatic-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RGB lighting interface utilites
Name:		polychromatic
Version:	0.8.3
Release:	1
License:	GPLv3
Group:		System/Configuration/Hardware
Url:		https://github.com/polychromatic/polychromatic
Source0:	https://github.com/polychromatic/polychromatic/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	python3
BuildRequires:	rsync
BuildRequires:	sassc
Requires:	openrazer
Requires:	qt5-qtsvg-examples
Requires:	python3-gobject
Requires:	python3-qt5-svg
Requires:	python3-qt5-webenginewidgets
Requires:	python3dist(colorama)
Requires:	python3dist(colour)
Requires:	python3dist(pyqt5)
Requires:	python3dist(pyqtwebengine)
Requires:	python3dist(requests)
Requires:	python3dist(setproctitle)
Requires:	typelib(AppIndicator3)
BuildArch:	noarch

%description
A vendor agnostic suite of front-end applications that configures peripheral
lighting (such as RGB keyboards and mice) via a graphical, command line or
tray applet interface.

%files -f %{name}.lang
%doc README.md
%license LICENSE
%{_bindir}/%{name}-*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/*
%{_mandir}/man1/%{name}-*
%{python3_sitelib}/%{name}/*
%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6611 |21cr|ponyprog2000-3.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		ponyprog2000
Version:	3.0.0
Release:	2
Summary:	Serial device programmer
#Source0:	https://netix.dl.sourceforge.net/project/ponyprog/PonyProg%20sources/3.0.0/ponyprog-3.0.0.tar.gz
Source0:	ponyprog-%{version}.tar.gz
Url:		https://sourceforge.net/projects/ponyprog
# ponyprog 2000 is under GPL according to Author message:
# http://ponyprog1.sourceforge.net/phorum/read.php?f=1&i=4096&t=4096
#Url:		http://www.lancos.com/prog.html
License:	GPLv2
Group:		Development/Other
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5PrintSupport)
Provides:	ponyprog = %{EVRD}
ExclusiveArch:	%{ix86} %{x86_64}

%description
PonyProg is a serial device programmer software with a user friendly GUI 
framework available for Windows95, 98, 2000 & NT and Intel Linux. Its purpose 
is reading and writing every serial device. At the moment it supports I2C Bus,
Microwire, SPI eeprom, the Atmel AVR and Microchip PIC micro.

%files
%defattr(-,root,root,755)
%doc README
%{_bindir}/ponyprog
%{_miconsdir}/ponyprog.png
%{_liconsdir}/ponyprog.png
%{_iconsdir}/ponyprog.png
%{_datadir}/applications/*
%{_datadir}/ponyprog/lang/*

%prep
%setup -q -n ponyprog

%build
%cmake -DUSE_DEBUGGER=OFF -DUSE_QT5=ON
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}%{_miconsdir}
mkdir -p %{buildroot}%{_liconsdir}
mkdir -p %{buildroot}%{_datadir}/ponyprog/lang

cp build/ponyprog %{buildroot}%{_bindir}
cp lang/*utf %{buildroot}%{_datadir}/ponyprog/lang

convert -resize 16x16 icons/ponyprog.png %{buildroot}%{_miconsdir}/ponyprog.png
convert -resize 32x32 icons/ponyprog.png %{buildroot}%{_iconsdir}/ponyprog.png
convert -resize 48x48 icons/ponyprog.png %{buildroot}%{_liconsdir}/ponyprog.png

# menu entry

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/ponyprog.desktop << EOF
[Desktop Entry]
Name=Ponyprog2000
Comment=Serial device programmer
Exec=%{_bindir}/ponyprog
Icon=ponyprog
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Sciences-Robotics;Science;Electronics;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6612 |21cr|pootling-0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name pootling
%define version 0.2
%define release 9

Summary: GUI editor for offline translation editing
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://downloads.sourceforge.net/translate/%{name}-%{version}.tar.gz
# (blino) fix importing __version__
Patch0: pootling-0.2-version.patch
License: GPL
Group: Editors
Url: http://translate.sourceforge.net/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
BuildRequires: python-devel
Requires: python-translate python-qt4

%description
Pootling is an user-friendly offline translation editor that make the
translation process with a bundle of files more easier for you!

Pootling is also one aspect of the Translate project at Sourceforge,
along with the Translate Toolkit (a technical/conversion base for
Pootling and other translation processes (Pootle)) and this
TranslateWiki. Together, these three parts of the Translate Project
offer you easier translation, better tools and user-friendly.

%prep
%setup -q
%patch0 -p1 -b .version
# fix prefix path for images
perl -pi -e 's,/usr/local,%{_prefix},' %{name}/modules/MainEditor.py 

%build
python %{name}setup.py build

%install
rm -rf %{buildroot}
python %{name}setup.py install --root=%{buildroot}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/%{name}-editor.py
%{python_sitelib}/%{name}-%{version}-*.egg-info
%{python_sitelib}/%{name}


%changelog
* Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 0.2-6mdv2010.0
+ Revision: 441898
- rebuild

* Tue Jan 06 2009 Funda Wang <fwang@mandriva.org> 0.2-5mdv2009.1
+ Revision: 325806
- rebuild

* Fri Aug 01 2008 Thierry Vignaud <tv@mandriva.org> 0.2-4mdv2009.0
+ Revision: 259186
- rebuild

* Thu Jul 24 2008 Thierry Vignaud <tv@mandriva.org> 0.2-3mdv2009.0
+ Revision: 247129
- rebuild

* Thu Jan 17 2008 Olivier Blin <oblin@mandriva.com> 0.2-1mdv2008.1
+ Revision: 154352
- require python-translate
- buildrequire python-devel
- fix prefix path for images
- fix importing __version__
- initial pootling package
- create pootling


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6613 |21cr|pop-before-smtp-1.42-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pop-before-smtp
Version:	1.42
Release:	5
Summary:	Watch log for pop/imap auth, notify Postfix to allow relay
License:	BSD like
Group:		System/Servers
URL:		http://popbsmtp.sourceforge.net/
Source:		http://prdownloads.sourceforge.net/popbsmtp/pop-before-smtp-%{version}.tar.bz2
Requires(pre):		rpm-helper
BuildArch:	noarch

%description
Spam prevention requires preventing open relaying through email
servers. However, legit users want to be able to relay. If legit
users always stayed in one spot, they'd be easy to describe to the
daemon. However, what with roving laptops, logins from home, etc.,
legit users refuse to stay in one spot.

pop-before-smtp watches the mail log, looking for successful
pop/imap logins, and posts the originating IP address into a
database which can be checked by Postfix, to allow relaying for
people who have recently downloaded their email.

%prep
%setup -q
#%patch1 -p 1 -b .init-with-reload-and-maillog-location
perl -pi -e 's|/var/log/maillog|/var/log/mail/info|' README pop-before-smtp pop-before-smtp-conf.pl pop-before-smtp.init
%build
rm -rf %{buildroot}
pod2man pop-before-smtp > pop-before-smtp.8 2>/dev/null

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}{%{_initrddir},%{_sysconfdir},%{_sbindir},%{_mandir}/man8}
#cp pop-before-smtp.init	%{buildroot}%{_initrddir}/pop-before-smtp
cp contrib/init-redhat-alex	%{buildroot}%{_initrddir}/pop-before-smtp
cp pop-before-smtp-conf.pl	%{buildroot}%{_sysconfdir}
cp pop-before-smtp		%{buildroot}%{_sbindir}
cp pop-before-smtp.8		%{buildroot}%{_mandir}/man8

%post
%_post_service pop-before-smtp

%preun
%_post_service pop-before-smtp

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc README TODO COPYING contrib
%doc %{_mandir}/man8/*
%{_sbindir}/pop-before-smtp
%config(noreplace) %{_initrddir}/pop-before-smtp
%config(noreplace) %{_sysconfdir}/pop-before-smtp-conf.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6614 |21cr|pop-before-smtp-in-c-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#there's already a pop-before-smtp package in contribs, but this is another one written in c
%define altname	pop-before-smtp

Summary:	Watch log for pop/imap auth, notify Postfix to allow relay
Name:		pop-before-smtp-in-c
Version:	1.0
Release:	4
Source0:	%{altname}-%{version}.tar.bz2
Source1:	%{altname}.init.bz2
Patch0:		%{altname}-maillog.patch.bz2
URL:		http://www.bluelavalamp.net/pop-before-smtp/
License:	GPL
Group:		System/Servers
Requires(post,preun):	rpm-helper
Requires:	postfix vm-pop3d
Conflicts:	%{altname}

%description
Spam prevention requires preventing open relaying through email
servers. However, legit users want to be able to relay. If legit
users always stayed in one spot, they'd be easy to describe to the
daemon. However, what with roving laptops, logins from home, etc.,
legit users refuse to stay in one spot.

pop-before-smtp watches the mail log, looking for successful
pop/imap logins, and posts the originating IP address into a
database which can be checked by Postfix, to allow relaying for
people who have recently downloaded their email.

%prep
%setup -q -n %{altname}-%{version}
bzcat %{SOURCE1} > %{altname}.init
%patch0 -p0

%build
%{__cc} -DOPTIMIZE $RPM_OPT_FLAGS -o %{altname} %{altname}.c

%install
rm -rf $RPM_BUILD_ROOT
install -m755 %{altname} -D %{buildroot}%{_sbindir}/%{altname}
install -m755 %{altname}.init -D %{buildroot}%{_initrddir}/%{altname}

%post
%_post_service %{altname}

%preun
%_post_service %{altname}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CHANGES %{altname}.html
%{_sbindir}/%{altname}
%config(noreplace) %{_initrddir}/%{altname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6615 |21cr|popcorntime-0.3.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __strip /bin/true
%define	debug_package	%{nil}
%define	oname Popcorn-Time
#define	oversion 0.3.10
# useless provides
%global __provides_exclude 'npm\\(ansi-regex|asap|async|bencode|bncode|boom|castv2-client|combined-stream|cryptiles|debug|delayed-stream|end-of-stream|extend|forever-agent|form-data|glob|graceful-fs|hawk|hoek|inherits|json-stringify-safe|lodash|magnet-uri|mime|mime-db|mime-types|minimatch|minimist|mkdirp|ms|network-address|oauth-sign|once|q|qs|readable-stream|request|rimraf|sax|sntp|strip-ansi|tunnel-agent|underscore|upnp-device-client|upnp-mediarenderer-client|xmlbuilder\\)'
# self provided requires
%global __requires_exclude  'npm\\(ansi-regex|asap|async|bencode|bncode|boom|browserify|buffer-equal|castv2-client|combined-stream|cryptiles|debug|deep-extend|delayed-stream|end-of-stream|extend|extend.js|forever-agent|form-data|fs-extra|glob|graceful-fs|hawk|inherits|inquirer|json-stringify-safe|lodash|lru-queue|magnet-uri|mime|mime-db|mime-types|minimatch|minimist|mkdirp|ms|network-address|oauth-sign|once|q|qap|qs|querystring|readable-stream|request|rimraf|sax|sntp|strip-ansi|tunnel-agent|uglify-js|underscore|underscore.string|upnp-device-client|upnp-mediarenderer-client|xmlbuilder|hoek\\)|nodejs\\(engine\\)'

Summary:	Watch movies in steaming
Name:		popcorntime
Version:	0.3.10
Release:	1
License:	GPLv3+
Group:		Video
Url:		https://popcorntime.sh/
# git clone https://github.com/popcorn-official/popcorn-desktop
%ifarch %{ix86}
Source0:	https://get.popcorntime.sh/build/%{oname}-%{version}-Linux-32.tar.xz
%else
Source0:	https://get.popcorntime.sh/build/%{oname}-%{version}-Linux-64.tar.xz
%endif
Source1:	https://github.com/popcorn-official/popcorn-desktop/blob/development/CHANGELOG.md
Source100:	popcorntime.rpmlintrc

%description
Allow any computer user to watch movies easily streaming from torrents,
without any particular knowledge.

%files
%doc CHANGELOG.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -qcn %{name}-%{version}
cp -R %{SOURCE1} CHANGELOG.md


%build
# Nothing to build


%install
# Install manually all:
# 1. Create the needed dirs
install -dm755 %{buildroot}%{_datadir}
install -dm755 %{buildroot}%{_datadir}/pixmaps
install -dm755 %{buildroot}%{_bindir}

# 2. Copy all the "source" files
cd ..
cp -a "popcorntime-%{version}" "%{buildroot}%{_datadir}/%{name}"

cd popcorntime-%{version}

# 3. Install the icon
install -Dm644 src/app/images/icon.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

# 4. Make a menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=%{name}
Comment=Watch movies in steaming
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-Multimedia-Video;AudioVideo;Video;
EOF

# 5. Create a wrapper script
cat << EOF > %{buildroot}%{_bindir}/%{name}
#!/bin/bash
cd %{_datadir}/%{name} && ./Popcorn-Time
EOF
chmod +x %{buildroot}%{_bindir}/%{name} 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6616 |21cr|popfile-1.1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automatic Email Classification
Name:		popfile
Version:	1.1.3
Release:	3
License:	GPL
Group:		Networking/Mail
URL:		http://getpopfile.org
Source0:	http://getpopfile.org/downloads/popfile-%{version}.zip
Source1:	popfile_16x16.png
Source2:	popfile_32x32.png
Source3:	popfile_48x48.png
Source4:	popfile.init.bz2	
Requires(post,preun):	rpm-helper
BuildRequires:	perl
BuildRequires:	unzip
BuildArch:	noarch

%description
POPFile is an email classification tool with a Naive Bayes
classifier, a POP3 proxy and a web interface. It runs on most
platforms and with most email clients.

%prep

%setup -q -c %{name}-%{version}

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

# fix exec file perms
find . -type f -name "*.pl" | xargs chmod 755

# strip away annoying ^M
for i in pm pl html css msg; do
    find . -type f -name "*.${i}" | xargs perl -p -i -e 's/\r//'
done

%build

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_menudir}
install -d %{buildroot}%{_liconsdir}
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_datadir}/%{name}

bzcat %{SOURCE4} > %{buildroot}%{_initrddir}/%{name}
chmod 755 %{buildroot}%{_initrddir}/%{name}

cp -aRf * %{buildroot}%{_datadir}/%{name}/

# install script to call the web interface from the menu.
cat > %{buildroot}%{_datadir}/%{name}/%{name} << EOF
#!/bin/sh
url='http://localhost:8080/'
if ! [ -z "\$BROWSER" ] && ( which \$BROWSER ); then
  browser=\`which \$BROWSER\`
elif [ -x /usr/bin/netscape ]; then
  browser=/usr/bin/netscape
elif [ -x /usr/bin/konqueror ]; then
  browser=/usr/bin/konqueror
elif [ -x /usr/bin/lynx ]; then
  browser='xterm -bg black -fg white -e lynx'
elif [ -x /usr/bin/links ]; then
  browser='xterm -bg black -fg white -e links'
else
  xmessage "No web browser found, install one or set the BROWSER environment variable!"
  exit 1
fi
\$browser \$url
EOF
chmod 755 %{buildroot}%{_datadir}/%{name}/%{name}

# fix menu stuff
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=POPFile - Automatic Email Classification
Comment=An email classification tool with a Naive Bayes classifier
Exec=%{_datadir}/%{name}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=
EOF


install -m0644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -m0644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -m0644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

# clean up
rm -f %{buildroot}%{_datadir}/%{name}/v%{version}.change

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%clean 
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc *.change
%config(noreplace) %attr(0755,root,root) %{_initrddir}/%{name}
%{_iconsdir}/*
%{_datadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6617 |21cr|poppassd-ceti-1.8.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An Eudora and NUPOP change password server
Name:		poppassd-ceti
Version:	1.8.5
Release:	7
Group:		Networking/Remote access
License:	Distributable
URL:		http://echelon.pl/pubs/poppassd.html
Source0:	http://echelon.pl/pubs/poppassd-%{version}.tar.bz2
Source1:	poppassd.pam.bz2
Source2:	poppassd.xinetd.bz2
Source100:	%{name}.rpmlintrc
Patch1:		poppassd-1.8.5-debug.patch
Patch2:		poppassd-buildroot.patch
Patch3:		poppassd-ceti-1.8-uid500.patch
Provides:	poppassd
Requires:	net-tools
Requires:	pam
Requires:	tcp_wrappers
BuildRequires:	pam-devel

%description
Poppassd is a daemon allowing users to change their password via Eudora 
or NUPOP using a network protocol on port 106. This package uses PAM.

Original version based on John Norstad's poppassd code. John
Norstad's program ran the regular unix "passwd" command. This version
calls PAM to change the password.

Examine the (un)install scripts with "rpm --scripts <package>" before
(de)installation. They modify some system configuration files.

(See also ftp://ftp.nwu.edu/pub/poppassd for Norstad's original code).

[Note, to log poppassd password changes, add the following line:

	local4.err 	-/var/log/poppassd.log

to your /etc/syslog.conf file.]

%prep

%setup -n poppassd-%{version}
%patch1 -p1
%patch2 -p0
%patch3 -p1

%build
%serverbuild
CFLAGS="%{optflags}" %make

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_sysconfdir}/pam.d
install -d %{buildroot}%{_sysconfdir}/xinetd.d

make BINDIR=%{buildroot}%{_sbindir} install

bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/pam.d/poppassd
bzcat %{SOURCE2} > %{buildroot}%{_sysconfdir}/xinetd.d/poppassd
chmod 644 README

%clean

%files
%doc README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/poppassd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/xinetd.d/poppassd
%attr(0700,root,root) %{_sbindir}/poppassd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6618 |21cr|portmixer-18.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname	%mklibname portmixer %{major}

Summary:	Shared PortMixer library
Name:		portmixer
Version:	18.1
Release:	11
License:	BSD
Group:		System/Libraries
URL:		http://www.portaudio.com/
Source0:	%{name}_v18_1.tar.bz2
Patch0:		portmixer_v18_1-mdk.diff
BuildRequires:	file
BuildRequires:	libportaudio-devel

%description
PortMixer is intended to work side-by-side with PortAudio,
the Portable Real-Time Audio Library by Ross Bencina and
Phil Burk.

%package -n	%{libname}
Summary:	Shared PortMixer library
Group:          System/Libraries

%description -n	%{libname}
PortMixer is intended to work side-by-side with PortAudio,
the Portable Real-Time Audio Library by Ross Bencina and
Phil Burk.

%package -n	%{libname}-devel
Summary:	Static library and header files for the PortMixer library
Group:		Development/C
Provides:	%{name}-devel = %{version}
Provides:	lib%{name}-devel  = %{version}
Requires:	%{libname} = %{version}
Requires:	libportaudio-devel

%description -n	%{libname}-devel
PortMixer is intended to work side-by-side with PortAudio,
the Portable Real-Time Audio Library by Ross Bencina and
Phil Burk.

This package contains the static PortMixer development library and
the PortMixer API Header File.

%prep

%setup -q -n %{name}
%patch0 -p1

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

%make CC="gcc" \
    CFLAGS="%{optflags} -fPIC -DPIC -D_REENTRANT -D_GNU_SOURCE -Ipx_common"

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}/%{_includedir}
install -d %{buildroot}/%{_libdir}

install -m0755 libportmixer.so.%{major}.%{version} %{buildroot}/%{_libdir}/
ln -snf libportmixer.so.%{major}.%{version} %{buildroot}%{_libdir}/libportmixer.so.%{major}
ln -snf libportmixer.so.%{major}.%{version} %{buildroot}%{_libdir}/libportmixer.so
install -m0644 libportmixer.a %{buildroot}%{_libdir}/
install -m0644 px_common/portmixer.h %{buildroot}%{_includedir}/

cat > README.MDK << EOF
P O R T M I X E R
-----------------

This (old) code was taken from the iaxclient codebase, I was not able
to find a tarball nor a version, so I used the same versioning as in 
portaudio. It seems Audacity uses a bundled version of this code, and
there could be other softwares doing that as well.

Regards // Oden Eriksson
EOF


%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%doc LICENSE.txt README.MDK
%{_libdir}/*.so.*

%files -n %{libname}-devel
%defattr(-,root,root)
%doc px_tests/Makefile px_tests/px_test.c
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6619 |21cr|portproton-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global oname PortProton_ALT

Summary:	Installer for PortProton
Name:		portproton
Version:	1.7.1
Release:	1
License:	MIT
Group:		Games/Other
Url:		https://github.com/Castro-Fidel/PortProton_ALT
Source0:	https://github.com/Castro-Fidel/PortProton_ALT/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Requires:	bubblewrap
Requires:	cabextract
Requires:	coreutils
Requires:	curl
Requires:	file
Requires:	icoutils
Requires:	lib64backtrace0
Requires:	lib64drm2
Requires:	lib64freetype6
Requires:	lib64opencl1
Requires:	openssl
Requires:	sysvinit-tools
Requires:	tar
Requires:	vkd3d(x86-64)
Requires:	vulkan(x86-64)
Requires:	xdg-utils
Requires:	xz
Requires:	yad
Requires:	zstd
Recommends:	gamemode
Recommends:	lib64d3dadapter9_1
Recommends:	lib64txc-dxtn
Recommends:	libcurl4(x86-32)
Recommends:	libd3dadapter9_1(x86-32)
Recommends:	libdrm2(x86-32)
Recommends:	libfreetype2(x86-32)
Recommends:	libGL1(x86-32)
Recommends:	libnss3(x86-32)
Recommends:	libopencl1(x86-32)
Recommends:	libtxc-dxtn(x86-32)
Recommends:	libvulkan1(x86-32)
Recommends:	mesa(x86-32)
Recommends:	vkd3d(x86-32)
Recommends:	vulkan(x86-32)
ExclusiveArch:	x86_64

%description
Installer PortProton for Windows games.

%files
%license LICENSE
%{_appdatadir}/ru.linux_gaming.PortProton.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/ru.linux_gaming.PortProton.desktop
%{_iconsdir}/hicolor/scalable/apps/ru.linux_gaming.PortProton.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build

%install
install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dm644 ru.linux_gaming.PortProton.desktop %{buildroot}%{_datadir}/applications/ru.linux_gaming.PortProton.desktop
install -Dm644 ru.linux_gaming.PortProton.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/ru.linux_gaming.PortProton.svg
install -Dm644 ru.linux_gaming.PortProton.metainfo.xml %{buildroot}%{_appdatadir}/ru.linux_gaming.PortProton.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6620 |21cr|portwows-install-2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	PortWoWS
%define avers	28

Summary:	Fidblog's PortWoWS is installer for World Of Warships
Name:		portwows-install
Version:	2.8
Release:	1
License:	Proprietary
Group:		Games/Arcade
Url:		http://portwine-linux.ru/world-of-warships-linux/
Source0:	http://portwine-linux.ru/download/%{oname}-%{avers}/%{oname}-%{avers}
Source1:	%{name}.png
%ifarch %{ix86}
Requires:	wine
%endif
%ifarch	x86_64
Requires:	wine64
%endif
Requires:	zenity

%description
%{summary}

%files
%{_bindir}/%{name}
%{_bindir}/%{oname}-%{avers}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep

%build
# Nothing to build yet

%install
# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=PortWoWS install
Name[ru]=Установка WoWs
Comment=PortWoWS Installer for World Of Warships
Comment[ru]=Установка и настройка PortWoT World Of Warships
Exec=portwows-install
Icon=portwows-install
StartupNotify=false
Terminal=false
Categories=Game;
EOF

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

# script files
mkdir -p %{buildroot}%{_bindir}/
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh
%{_bindir}/%{oname}-%{avers}
EOF
chmod 755 %{buildroot}%{_bindir}/%{name}
install -m755 %{SOURCE0} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6621 |21cr|postddns-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Periodically (or one-time) updates the DNS IP address by link
Summary(ru_RU.UTF-8):	Периодически (или разово) обновляет IP адрес DDNS по ссылке
Name:		postddns
Version:	1.0
Release:	1
License:	GPLv3
Group:		Networking/WWW
Url:		https://gitflic.ru/project/don_venchenzo/postddns
Source0:	https://gitflic.ru/project/don_venchenzo/postddns/blob/raw?file=SOURSE%2FPostDDNS.tar.gz
BuildRequires:	gettext
BuildRequires:	lazarus
Requires:	systemd

%description
Periodically (or one-time) updates the DNS IP address. PostDDNS uses the update
link provided by the DNS service provider over the http/https protocol.

%description -l ru_RU.UTF-8
Периодически(или разово) обновляет IP адрес DDNS. PostDDNS использует ссылку
для обновления, предоставляемую поставщиком услуги DDNS по протоколу http/https.

%files
%{_bindir}/%{name}
%{_bindir}/%{name}_gui
%{_datadir}/applications/postddns.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/256x256/apps/%{name}_gui.png
%{_unitdir}/%{name}.service

%preun
#Останавливаем сервис %{name}.timer
status="$(systemctl status %{name}.timer | grep Active: | cut -b 14-19)"
if [[ $status == "active" ]]; then
systemctl stop %{name}.timer
systemctl disable %{name}.timer
fi

#Останавливаем сервис postddnsboot.timer
status="$(systemctl status postddnsboot.timer | grep Active: | cut -b 14-19)"
if [[ $status == "active" ]]; then
systemctl stop postddnsboot.timer
systemctl disable postddnsboot.timer
fi

#Удаляем файл логов
if [ -f %{_logdir}/%{name}.log ]; then rm -rf %{_logdir}/%{name}.log; fi

#Удаляем файл сервиса %{name}.timer
if [ -f %{_unitdir}/%{name}.timer ]; then rm -rf %{_unitdir}/%{name}.timer; fi

#Удаляем файл сервиса postddnsboot.timer
if [ -f %{_unitdir}/%{name}boot.timer ]; then rm -rf %{_unitdir}/%{name}boot.timer; fi

#------------------------------------------------------------------

%prep
%autosetup -p1 -n PostDDNS
# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all GUI/*.lpi
lazbuild --build-all Konsole/*.lpi
lazbuild --build-all CopyF/*.lpi
lazbuild --build-all Shadow/*.lpi

%install
install -Dm0755 ./GUI/%{name}_gui %{buildroot}%{_datadir}/%{name}/%{name}_gui
install -Dm0755 ./CopyF/copyf %{buildroot}%{_datadir}/%{name}/copyf
install -Dm0755 ./Konsole/%{name} %{buildroot}%{_datadir}/%{name}/%{name}
install -Dm0755 ./Shadow/shadow %{buildroot}%{_datadir}/%{name}/shadow
install -Dm0755 ./BUILD/PostDDNS_86x64/src/usr/bin/%{name}_gui %{buildroot}%{_bindir}/%{name}_gui
install -Dm0755 ./BUILD/PostDDNS_86x64/src/usr/bin/%{name} %{buildroot}%{_bindir}/%{name}
install -Dm0755 ./BUILD/PostDDNS_86x64/src/usr/share/%{name}/config.ini %{buildroot}%{_datadir}/%{name}/config.ini
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/icons/%{name}_gui.png %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}_gui.png
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/postddns/languages/%{name}_gui.ru.po %{buildroot}%{_datadir}/%{name}/languages/%{name}_gui.ru.po
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/postddns/languages/%{name}_gui.en.po %{buildroot}%{_datadir}/%{name}/languages/%{name}_gui.en.po
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/postddns/languages/%{name}.ru.po %{buildroot}%{_datadir}/%{name}/languages/%{name}.ru.po
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/postddns/languages/%{name}.en.po %{buildroot}%{_datadir}/%{name}/languages/%{name}.en.po
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/postddns/languages/copyf.ru.po %{buildroot}%{_datadir}/%{name}/languages/copyf.ru.po
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/postddns/languages/copyf.en.po %{buildroot}%{_datadir}/%{name}/languages/copyf.en.po
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/postddns/languages/copyf.ru.po %{buildroot}%{_datadir}/%{name}/languages/shadow.ru.po
install -Dm0644 ./BUILD/PostDDNS_86x64/src/usr/share/postddns/languages/copyf.en.po %{buildroot}%{_datadir}/%{name}/languages/shadow.en.po
install -Dm0644 ./BUILD/PostDDNS_86x64/src/lib/systemd/system/%{name}.service %{buildroot}%{_unitdir}/%{name}.service

sed -i -e "s,\(Icon=.*\).png,\1," -e "s,Exec=/usr/bin/,Exec=," %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6622 |21cr|PosteRazor-1.9.7-0.git53661c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 53661c3b09c0fd07c393bf43df2890e4d041b5d6
%define commit_short %(echo %{commit} | head -c6)

Name:		PosteRazor
Summary:	PosteRazor cuts a raster image into pieces
Version:	1.9.7
Release:	0.git%{commit_short}.1
License:	GPLv3+
Group:		Graphics
URL:		http://posterazor.sourceforge.net 
Source0:	posterazor-%{commit}.zip
Source1:	posterazor.desktop
Patch0:		posterazor-qt.patch

#BuildRequires:	qmake-qt5
BuildRequires:	qt5-devel
Provides:	posterazor = %{EVRD}

%description
PosteRazor takes a raster image. The resulting poster is saved as a 
multipage PDF document. An easy to use, wizard like user interface 
guides through 5 steps.

%files
%doc ../CHANGES ../LICENSE ../README
%{_bindir}/PosteRazor
%{_datadir}/pixmaps/posterazor.png
%{_datadir}/applications/posterazor.desktop
%{_datadir}/%{name}
#-----------------------------------------------------------
%prep
%autosetup -p1 -n posterazor-%{commit}/src

%build
%setup_compile_flags

%qmake_qt5 \
    QMAKE_CFLAGS_RELEASE="$CPPFLAGS $CFLAGS" \
    QMAKE_CXXFLAGS_RELEASE="$CPPFLAGS $CXXFLAGS" \
    QMAKE_LFLAGS_RELEASE="$LDFLAGS" \
    posterazor.pro
%make

%install
# install binary
install -D -m755 PosteRazor %{buildroot}%{_bindir}/PosteRazor

# install icon
install -Dm644 posterazor.png %{buildroot}%{_datadir}/pixmaps/posterazor.png

# desktop file
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/posterazor.desktop

# install locales
install -d %{buildroot}%{_datadir}/PosteRazor/translations
install -m644 *.qm %{buildroot}%{_datadir}/PosteRazor/translations

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6623 |21cr|postfixadmin-3.3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude_from ^%{_prefix}/lib/%{name}/ADDITIONS/.*$

Summary:	Web-based management tool for Postfix
Name:		postfixadmin
Version:	3.3.14
Release:	1
License:	GPLv2.0+
Group:		System/Servers
Url:		https://github.com/postfixadmin/postfixadmin
Source0:	https://github.com/postfixadmin/postfixadmin/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
Source1:	config.local.php
Source2:	apache-postfixadmin.conf
Source3:	postfixadmin-user.conf
Requires:	php
Requires:	php-mbstring
Requires:	(php-mysqli or php-pgsql)
Requires:	(php-pdo_mysql if php-mysqli)
Requires:	php-phar
Requires:	sendmail
Requires:	perl(DBI)
Requires:	perl(Email::Sender::Simple)
Requires:	perl(Email::Sender::Transport::SMTP)
Requires:	perl(Email::Simple)
Requires:	perl(Email::Simple::Creator)
Requires:	perl(Email::Valid)
Requires:	perl(Encode)
Requires:	perl(Fcntl)
Requires:	perl(File::Basename)
Requires:	perl(File::Path)
Requires:	perl(File::Temp)
Requires:	perl(Getopt::Long)
Requires:	perl(Getopt::Std)
Requires:	perl(IO)
Requires:	perl(IO::File)
Requires:	perl(LockFile::Simple)
Requires:	perl(Log::Log4perl)
Requires:	perl(MIME::EncWords)
Requires:	perl(POSIX)
Requires:	perl(strict)
Requires:	perl(Sys::Syslog)
Requires:	perl(Time::Local)
Requires:	perl(Try::Tiny)
Recommends:	php-imap
Recommends:	postfix
Recommends:	%{name}-apache = %{EVRD}
BuildArch:	noarch

%description
PostfixAdmin is a PHP based application that handles Postfix Style Virtual Domains and
Users that are stored in MySQL or PostgreSQL.

Postfix Admin supports:
- Virtual Mailboxes / Virtual Aliases / Forwarders
- Alias domains (Domain to Domain forwarding with recipient validation)
- Vacation (auto-response) for Virtual Mailboxes.
- Quota / Alias & Mailbox limits per domain.
- Fetchmail integration
- Packaged with over 25 languages.

%files
%doc DOCUMENTS/* *.TXT README.md VIRTUAL_VACATION
%license *LICENSE.TXT
%attr(1770,root,vacation) %dir %{_localstatedir}/spool/vacation
%attr(640,root,www) %config(noreplace) %{_sysconfdir}/%{name}/config.local.php
%attr(640,root,www) %config %{_sysconfdir}/%{name}/config.inc.php
%attr(750,root,vacation) %{_prefix}/lib/%{name}/vacation.pl
%attr(770,root,apache) %dir %{_localstatedir}/cache/%{name}
%attr(770,root,apache) %dir %{_localstatedir}/cache/%{name}/sessions
%attr(770,root,apache) %dir %{_localstatedir}/cache/%{name}/templates_c
%{_bindir}/%{name}-cli
%config %dir %{_sysconfdir}/%{name}
%{_datadir}/%{name}
%dir %{_prefix}/lib/%{name}
%{_localstatedir}/spool/vacation/vacation.pl
%{_prefix}/lib/%{name}/ADDITIONS
%{_sysusersdir}/%{name}.conf

#------------------------------------------------------------------

%package apache
Summary:	Postfixadmin - Apache configuration
Group:		System/Servers
Requires:	apache-base

%description apache
PostfixAdmin is a PHP based application that handles Postfix Style Virtual
Domains and Users that are stored in MySQL or PostgreSQL.

This package holds the apache configuration.

%files apache
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}/sessions
mkdir -p %{buildroot}%{_localstatedir}/cache/%{name}/templates_c
mkdir -p %{buildroot}%{_localstatedir}/spool/vacation
mkdir -p %{buildroot}%{_prefix}/lib/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_sysusersdir}

cp %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf

mv VIRTUAL_VACATION/vacation.pl %{buildroot}%{_prefix}/lib/%{name}
# compatibility symlink to match documentation
ln -s %{_prefix}/lib/%{name}/vacation.pl %{buildroot}%{_localstatedir}/spool/vacation/vacation.pl

install -m 0644 *.php composer.* %{buildroot}%{_datadir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/config.inc.php %{buildroot}%{_sysconfdir}/%{name}
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/config.local.php
# not copied here: ADDITIONS debian DOCUMENTS tests VIRTUAL_VACATION
cp -rp configs languages lib model public scripts templates %{buildroot}%{_datadir}/%{name}

chmod +x %{buildroot}%{_datadir}/%{name}/scripts/%{name}-cli
ln -s %{_datadir}/%{name}/scripts/%{name}-cli %{buildroot}%{_bindir}/%{name}-cli

ln -s %{_sysconfdir}/%{name}/config.inc.php %{buildroot}%{_datadir}/%{name}/config.inc.php
ln -s %{_sysconfdir}/%{name}/config.local.php %{buildroot}%{_datadir}/%{name}/config.local.php
ln -s %{_localstatedir}/cache/%{name}/templates_c %{buildroot}%{_datadir}/%{name}/templates_c

# remove files related to debian packaging (to avoid it's copied as %%doc)
rm -rf ADDITIONS/squirrelmail-plugin/debian
cp -rp ADDITIONS %{buildroot}%{_prefix}/lib/%{name}
chmod +x %{buildroot}%{_prefix}/lib/%{name}/ADDITIONS/*.{pl,sh,py} %{buildroot}%{_prefix}/lib/%{name}/ADDITIONS/squirrelmail-plugin/locale/build.sh

# install the apache config file
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf

sed -i -e "/except / s/\( ,\|, \)e:/ as e:/" -e "s/print \(.*\)/print(\1)/" -e "s,/usr/bin/env python$,/usr/bin/python3," %{buildroot}%{_prefix}/lib/%{name}/ADDITIONS/import_users_from_csv.py

chmod +x %{buildroot}%{_prefix}/lib/postfixadmin/ADDITIONS/cyrus/cyrus.conf
chmod +x %{buildroot}%{_prefix}/share/postfixadmin/scripts/postfixadmin-cli.php

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6624 |21cr|postgis-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Geographic objects to the PostgreSQL object-relational database
Name:		postgis
Version:	3.3.2
Release:	1
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		http://www.postgis.net
Source0:	http://download.osgeo.org/postgis/source/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	libxslt-proc
BuildRequires:	protobuf-compiler
BuildRequires:	/usr/bin/protoc-c
BuildRequires:	proj
BuildRequires:	geos-devel
BuildRequires:	pkgconfig(gdal)
BuildRequires:	pkgconfig(cunit)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(libprotobuf-c)
BuildRequires:	pkgconfig(proj)
Requires:	%{_libdir}/postgresql/plpgsql.so
Requires:	proj

%description
Geographic objects to the PostgreSQL object-relational database.

%files
%doc COPYING README.postgis
%{_bindir}/*
%{_datadir}/doc/*
%{_datadir}/postgresql/*
%{_libdir}/postgresql/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--datadir=%{_datadir}/postgis
%make

%install
%makeinstall_std

cp utils/postgis*.pl %{buildroot}/%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6625 |21cr|postgresql14-14.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude devel\\(libtcl)

%define oname postgresql

%define major 5
%define major_ecpg 6
%define libname %mklibname pq14 %{major}
%define libecpg %mklibname ecpg14 %{major_ecpg}

%define majorver %(echo %{version} | cut -d. -f1)
%define minorver %(echo %{version} | cut -d. -f2)

%bcond_without uuid

Summary:	PostgreSQL client programs and libraries
Name:		postgresql14
Version:	14.7
Release:	1
Epoch:		1
License:	BSD
Group:		Databases
Url:		http://www.postgresql.org/
Source0:	https://ftp.postgresql.org/pub/source/v%{version}/%{oname}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Source10:	postgres.profile
Source11:	%{oname}.service
Source12:	%{oname}.tmpfiles.d
Source14:	%{oname}_initdb.sh
Patch0:		postgresql-14.2-ossp-uuid-dir.patch
Patch1:		e2k-spinlock.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	perl-devel
BuildRequires:	readline-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(openssl)
%if %{with uuid}
BuildRequires:	pkgconfig(ossp-uuid)
%endif
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(zlib)
# Need to build doc
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-dtd42-sgml
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-utils
BuildRequires:	openjade
BuildRequires:	xmlto
BuildRequires:	xsltproc
Provides:	%{name}-clients = %{EVRD}
Conflicts:	postgresql
Conflicts:	postgresql15

%description
PostgreSQL is an advanced Object-Relational database management system (DBMS)
that supports almost all SQL constructs (including transactions, subselects and
user-defined types and functions). The postgresql package includes the client
programs and libraries that you'll need to access a PostgreSQL DBMS server.
These PostgreSQL client programs are programs that directly manipulate the
internal structure of PostgreSQL databases on a PostgreSQL server. These client
programs can be located on the same machine with the PostgreSQL server, or may
be on a remote machine which accesses a PostgreSQL server over a network
connection. This package contains the client libraries for C and C++, as well
as command-line utilities for managing PostgreSQL databases on a PostgreSQL
server.

If you want to manipulate a PostgreSQL database on a remote PostgreSQL server,
you need this package. You also need to install this package if you're
installing the postgresql-server package.

%files -f main.lst
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES
%doc README HISTORY
%license COPYRIGHT
%{_bindir}/clusterdb
%{_bindir}/createdb
%{_bindir}/createuser
%{_bindir}/dropdb
%{_bindir}/dropuser
%{_bindir}/pg_basebackup
%{_bindir}/pg_dump
%{_bindir}/pg_dumpall
%{_bindir}/pg_isready
%{_bindir}/pg_restore
%{_bindir}/pg_rewind
%{_bindir}/pg_test_fsync
%{_bindir}/pg_test_timing
%{_bindir}/pg_verifybackup
%{_bindir}/psql
%{_bindir}/reindexdb
%{_bindir}/vacuumdb
%{_mandir}/man1/clusterdb.*
%{_mandir}/man1/createdb.*
%{_mandir}/man1/createuser.*
%{_mandir}/man1/dropdb.*
%{_mandir}/man1/dropuser.*
%{_mandir}/man1/pg_basebackup.*
%{_mandir}/man1/pg_dump.*
%{_mandir}/man1/pg_dumpall.*
%{_mandir}/man1/pg_isready.1*
%{_mandir}/man1/pg_restore.1*
%{_mandir}/man1/pg_rewind.1*
%{_mandir}/man1/pg_test_fsync.1*
%{_mandir}/man1/pg_test_timing.1*
%{_mandir}/man1/pg_verifybackup.1.xz
%{_mandir}/man1/psql.*
%{_mandir}/man1/reindexdb.*
%{_mandir}/man1/vacuumdb.*
%{_mandir}/man7/*
%{_rpmmacrodir}/*%{oname}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The shared libraries required for any PostgreSQL clients
Group:		System/Libraries
Provides:	%{name}-libs = %{EVRD}
%rename	%{_lib}pq9.0_5
Conflicts:	%{mklibname pq 5}
Conflicts:	%{mklibname pq15 5}

%description -n %{libname}
C and C++ libraries to enable user programs to communicate with the PostgreSQL
database backend. The backend can be on another machine and accessed through
TCP/IP.

%files -n %{libname} -f %{libname}.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/libpq.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecpg}
Summary:	Shared library libecpg for PostgreSQL
Group:		System/Libraries
Conflicts:	%{_lib}ecpg5
%rename	%{_lib}ecpg9.0_6
Conflicts:	%{mklibname ecpg 5}
Conflicts:	%{mklibname ecpg15 5}

%description -n %{libecpg}
Libecpg is used by programs built with ecpg (Embedded PostgreSQL for C) Use
postgresql-dev to develop such programs.

%files -n %{libecpg} -f %{libecpg}.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/libecpg.so.%{major_ecpg}*
%{_libdir}/libecpg_compat.so.*
%{_libdir}/libpgtypes.so.*

#----------------------------------------------------------------------------

%package server
Summary:	The programs needed to create and run a PostgreSQL server
Group:		Databases
Provides:	%{name}-server = %{EVRD}
# the client bins are needed for upgrading
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-plpgsql >= %{EVRD}
# add/remove services
Requires(post,preun):	rpm-helper
# add/del user
Requires(pre,postun):	rpm-helper
Requires(post,preun):	update-alternatives
Conflicts:	postgresql-server
Conflicts:	postgresql15-server

%description server
The postgresql-server package includes the programs needed to create and run a
PostgreSQL server, which will in turn allow you to create and maintain
PostgreSQL databases.  PostgreSQL is an advanced Object-Relational database
management system (DBMS) that supports almost all SQL constructs (including
transactions, subselects and user-defined types and functions). You should
install postgresql-server if you want to create and maintain your own
PostgreSQL databases and/or your own PostgreSQL server. You also need to
install the postgresql and postgresql-devel packages.

%files server -f server.lst
%doc README HISTORY
%license COPYRIGHT
%{_unitdir}/%{oname}%{majorver}.service
%{_tmpfilesdir}/%{oname}%{majorver}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{oname}
%{_bindir}/initdb
%{_bindir}/pg_controldata
%{_bindir}/pg_ctl
%{_bindir}/pg_resetwal
%{_bindir}/pg_receivewal
%{_bindir}/pg_checksums
%{_bindir}/postgres
%{_bindir}/postmaster
%{_bindir}/pg_archivecleanup
%{_bindir}/pg_upgrade
%{_libdir}/%{oname}_initdb.sh
%{_mandir}/man1/initdb.1*
%{_mandir}/man1/pg_controldata.*
%{_mandir}/man1/pg_ctl.1*
%{_mandir}/man1/pg_resetwal.*
%{_mandir}/man1/pg_upgrade.1*
%{_mandir}/man1/postgres.1*
%{_mandir}/man1/postmaster.1*
%dir %{_libdir}/%{oname}
%dir %{_datadir}/%{oname}
%attr(755,postgres,postgres) %config(noreplace) %{_localstatedir}/lib/pgsql/.bashrc
%attr(-,postgres,postgres) %{_localstatedir}/lib/pgsql/.profile
%attr(700,postgres,postgres) %dir %{_localstatedir}/lib/pgsql
%attr(-,postgres,postgres) %{_localstatedir}/lib/pgsql/data
%attr(700,postgres,postgres) %dir %{_localstatedir}/lib/pgsql/backups
%{_libdir}/%{oname}/*_and_*.so
%{_libdir}/%{oname}/auth_delay.so
%{_libdir}/%{oname}/auto_explain.so
%{_libdir}/%{oname}/btree_gin.so
%{_libdir}/%{oname}/citext.so
%{_libdir}/%{oname}/dict_int.so
%{_libdir}/%{oname}/dict_snowball.so
%{_libdir}/%{oname}/dict_xsyn.so
%{_libdir}/%{oname}/euc2004_sjis2004.so
%{_libdir}/%{oname}/file_fdw.so
%{_libdir}/%{oname}/libpqwalreceiver.so
%{_libdir}/%{oname}/passwordcheck.so
%{_libdir}/%{oname}/pg_stat_statements.so
%{_libdir}/%{oname}/pgoutput.so
%{_libdir}/%{oname}/pgxml.so
%{_libdir}/%{oname}/sepgsql.so
%{_libdir}/%{oname}/unaccent.so
%if %{with uuid}
%{_libdir}/%{oname}/uuid-ossp.so
%endif
%{_datadir}/%{oname}/errcodes.txt
%{_datadir}/%{oname}/postgres.bki
%{_datadir}/%{oname}/*.sample
%{_datadir}/%{oname}/timezone
%{_datadir}/%{oname}/system_constraints.sql
%{_datadir}/%{oname}/system_functions.sql
%{_datadir}/%{oname}/system_views.sql
%{_datadir}/%{oname}/information_schema.sql
%{_datadir}/%{oname}/snowball_create.sql
%{_datadir}/%{oname}/sql_features.txt
%dir %{_datadir}/%{oname}/timezonesets
%{_datadir}/%{oname}/timezonesets/Africa.txt
%{_datadir}/%{oname}/timezonesets/America.txt
%{_datadir}/%{oname}/timezonesets/Antarctica.txt
%{_datadir}/%{oname}/timezonesets/Asia.txt
%{_datadir}/%{oname}/timezonesets/Atlantic.txt
%{_datadir}/%{oname}/timezonesets/Australia
%{_datadir}/%{oname}/timezonesets/Australia.txt
%{_datadir}/%{oname}/timezonesets/Default
%{_datadir}/%{oname}/timezonesets/Etc.txt
%{_datadir}/%{oname}/timezonesets/Europe.txt
%{_datadir}/%{oname}/timezonesets/India
%{_datadir}/%{oname}/timezonesets/Indian.txt
%{_datadir}/%{oname}/timezonesets/Pacific.txt
%{_datadir}/%{oname}/tsearch_data
%dir %{_datadir}/%{oname}/extension
%{_datadir}/%{oname}/extension/*
%{_defaultdocdir}/%{oname}/extension/*.example
%attr(700,postgres,postgres) %dir /var/log/postgres
%{_sysconfdir}/logrotate.d/%{oname}
%{_mandir}/man1/pg_archivecleanup.1*
%{_mandir}/man1/pg_receivewal.1*
%{_mandir}/man1/pg_checksums.1*

%pre server
%_pre_useradd postgres %{_localstatedir}/lib/pgsql /bin/bash
# if upgrade

[ ! -f %{_localstatedir}/lib/pgsql/data/PG_VERSION ] && exit 0
mypgversion=`cat %{_localstatedir}/lib/pgsql/data/PG_VERSION`
[ $mypgversion = %{majorver} ] && exit 0

echo ""
echo "You currently have database tree for Postgresql $mypgversion"
echo "You must use postgresql${mypgversion}-server"
echo "To update you Postgresql server, dump your databases"
echo "delete /var/lib/pgsql/data/ content, upgrade the server, then"
echo "restore your databases from your backup"
echo ""

exit 1

%posttrans server
%_post_service %{oname}%{majorver}
%tmpfiles_create %{oname}%{majorver}.conf

%preun server
%_preun_service %{oname}%{majorver}

%postun server
%_postun_userdel postgres

#----------------------------------------------------------------------------

%package docs
Summary:	Extra documentation for PostgreSQL
Group:		Documentation
Conflicts:	postgresql-docs
Conflicts:	postgresql15-docs

%description docs
The postgresql-docs package includes the SGML source for the documentation as
well as the documentation in other formats, and some extra documentation.
Install this package if you want to help with the PostgreSQL documentation
project, or if you want to generate printed documentation.

%files docs
%doc %{_docdir}/%{oname}-docs-%{version}

#----------------------------------------------------------------------------

%package contrib
Summary:	Contributed binaries distributed with PostgreSQL
Group:		Databases
Conflicts:	postgresql-contrib
Conflicts:	postgresql15-contrib

%description contrib
The postgresql-contrib package includes the contrib tree distributed with the
PostgreSQL tarball. Selected contrib modules are prebuilt.

%files contrib -f contrib.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/_int.so
%{_libdir}/%{oname}/adminpack.so
%{_libdir}/%{oname}/amcheck.so
%{_libdir}/%{oname}/autoinc.so
%{_libdir}/%{oname}/bloom.so
%{_libdir}/%{oname}/btree_gist.so
%{_libdir}/%{oname}/cube.so
%{_libdir}/%{oname}/dblink.so
%{_libdir}/%{oname}/earthdistance.so
%{_libdir}/%{oname}/fuzzystrmatch.so
%{_libdir}/%{oname}/hstore.so
%{_libdir}/%{oname}/insert_username.so
%{_libdir}/%{oname}/isn.so
%{_libdir}/%{oname}/lo.so
%{_libdir}/%{oname}/ltree.so
%{_libdir}/%{oname}/moddatetime.so
%{_libdir}/%{oname}/old_snapshot.so
%{_libdir}/%{oname}/pageinspect.so
%{_libdir}/%{oname}/pg_buffercache.so
%{_libdir}/%{oname}/pg_freespacemap.so
%{_libdir}/%{oname}/pg_prewarm.so
%{_libdir}/%{oname}/pg_surgery.so
%{_libdir}/%{oname}/pg_trgm.so
%{_libdir}/%{oname}/pg_visibility.so
%{_libdir}/%{oname}/pgcrypto.so
%{_libdir}/%{oname}/pgrowlocks.so
%{_libdir}/%{oname}/pgstattuple.so
%{_libdir}/%{oname}/postgres_fdw.so
%{_libdir}/%{oname}/refint.so
%{_libdir}/%{oname}/seg.so
%{_libdir}/%{oname}/sslinfo.so
%{_libdir}/%{oname}/tablefunc.so
%{_libdir}/%{oname}/tcn.so
%{_libdir}/%{oname}/test_decoding.so
%{_libdir}/%{oname}/tsm_system_rows.so
%{_libdir}/%{oname}/tsm_system_time.so
%{_datadir}/%{oname}/contrib/sepgsql.sql
%{_bindir}/oid2name
%{_bindir}/pg_amcheck
%{_bindir}/pg_recvlogical
%{_bindir}/pg_waldump
%{_bindir}/pgbench
%{_bindir}/vacuumlo
%{_mandir}/man1/oid2name.1*
%{_mandir}/man1/pg_amcheck.1.*
%{_mandir}/man1/pg_recvlogical.1*
%{_mandir}/man1/pg_waldump.1*
%{_mandir}/man1/pgbench.1*
%{_mandir}/man1/vacuumlo.1*

#----------------------------------------------------------------------------

%package devel
Summary:	PostgreSQL development header files and libraries
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Requires:	%{libecpg} = %{EVRD}
Conflicts:	postgresql-devel
Conflicts:	postgresql15-devel

%description devel
The postgresql-devel package contains the header files and libraries needed to
compile C or C++ applications which will directly interact with a PostgreSQL
database management server and the ecpg Embedded C Postgres preprocessor. You
need to install this package if you want to develop applications which will
interact with a PostgreSQL server. If you're installing postgresql-server, you
need to install this package.

%files devel -f devel.lst
%doc README HISTORY
%license COPYRIGHT
%{_includedir}/*
%{_bindir}/ecpg
%{_bindir}/pg_config
%{_libdir}/libecpg_compat.so
%{_libdir}/libecpg.so
%{_libdir}/libpgtypes.so
%{_libdir}/libpq.so
%{_libdir}/%{oname}/pgxs/
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/ecpg.1*
%{_mandir}/man1/pg_config.1*
%{_mandir}/man3/SPI_*.3*
%{_mandir}/man3/dblink*.3*

#----------------------------------------------------------------------------

%package pl
Summary:	Procedurals languages for PostgreSQL
Group:		Databases
Provides:	%{name}-pl = %{EVRD}
Requires:	%{name}-plpython >= %{EVRD}
Requires:	%{name}-plperl >= %{EVRD}
Requires:	%{name}-pltcl >= %{EVRD}
Requires:	%{name}-plpgsql >= %{EVRD}
Conflicts:	postgresql-pl
Conflicts:	postgresql15-pl

%description pl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-pl will install the the PL/Perl, PL/Tcl, and PL/Python procedural
languages for the backend. PL/Pgsql is part of the core server package.

%files pl
%doc COPYRIGHT
# metapkg

#----------------------------------------------------------------------------

%package plpython
Summary:	The PL/Python procedural language for PostgreSQL
Group:		Databases
Conflicts:	postgresql-plpython
Conflicts:	postgresql15-plpython

%description plpython
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plpython package contains the the PL/Python procedural languages for
the backend. PL/Python is part of the core server package.

%files plpython -f plpython.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/*python*.so

#----------------------------------------------------------------------------

%package plperl
Summary:	The PL/Perl procedural language for PostgreSQL
Group:		Databases
Conflicts:	postgresql-plperl
Conflicts:	postgresql15-plperl

%description plperl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plperl package contains the the PL/Perl procedural languages for the
backend. PL/Perl is part of the core server package.

%files plperl -f plperl.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/*perl.so

#----------------------------------------------------------------------------

%package pltcl
Summary:	The PL/Tcl procedural language for PostgreSQL
Group:		Databases
Conflicts:	postgresql-pltcl
Conflicts:	postgresql15-pltcl

%description pltcl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-pltcl package contains the the PL/Tcl procedural languages for the
backend. PL/Tcl is part of the core server package.

%files pltcl -f pltcl.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/pltcl.so

#----------------------------------------------------------------------------

%package plpgsql
Summary:	The PL/PgSQL procedural language for PostgreSQL
Group:		Databases
Conflicts:	postgresql-plpgsql
Conflicts:	postgresql15-plpgsql

%description plpgsql
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plpgsql package contains the the PL/PgSQL procedural languages for
the backend. PL/PgSQL is part of the core server package.

%files plpgsql -f plpgsql.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/plpgsql.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%serverbuild
# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

%configure	\
	--disable-rpath		\
	--enable-nls		\
	--libdir=%{_libdir}	\
	--libexecdir=%{_libexecdir}		\
	--mandir=%{_mandir}	\
	--prefix=%{_prefix}	\
	--sysconfdir=%{_sysconfdir}/pgsql	\
	--with-gssapi		\
	--with-icu		\
	--with-ldap		\
	--with-libxml		\
	--with-libxslt		\
	--with-openssl		\
%if %{with uuid}
	--with-ossp-uuid	\
%endif
	--with-pam		\
	--with-perl		\
	--with-python		\
	--with-selinux		\
	--with-systemd		\
	--with-tcl		\
	--with-tclconfig=%{_libdir}

# nuke -Wl,--no-undefined
perl -pi -e "s|-Wl,--no-undefined||g" src/Makefile.global

%if %{with uuid}
# bork...
echo "#define HAVE_OSSP_UUID_H 1" >> src/include/pg_config.h
%endif

%make world

pushd src/test
%make all
popd

%check
cp -f %{buildroot}%{_localedir}/ru/LC_MESSAGES/pg_reset{wal,xlog}-%{majorver}.mo
make check || :
rm -f %{buildroot}%{_localedir}/ru/LC_MESSAGES/pg_resetxlog-%{majorver}.mo

%install
make DESTDIR=%{buildroot} install-world install-docs

# install odbcinst.ini
mkdir -p %{buildroot}%{_sysconfdir}/pgsql

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -d -m 700 %{buildroot}%{_localstatedir}/lib/pgsql/data

# backups of data go here...
install -d -m 700 %{buildroot}%{_localstatedir}/lib/pgsql/backups

# Create the multiple postmaster startup directory
install -d -m 700 %{buildroot}/etc/sysconfig/pgsql

# install systemd units
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{oname}%{majorver}.service
sed -i "s|/usr/libexec|%{_libdir}|" %{buildroot}%{_unitdir}/%{oname}%{majorver}.service

# Create the directory for sockets.
install -d -m 755 %{buildroot}/var/run/%{oname}

# ... and make a tmpfiles script to recreate it at reboot.
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE12} %{buildroot}%{_tmpfilesdir}/%{oname}%{majorver}.conf

# install helper script for env initialisation
install -m 755 %{SOURCE14} %{buildroot}%{_libdir}

mkdir -p %{buildroot}/var/log/postgres

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{oname} <<EOF
/var/log/postgres/%{oname} {
    notifempty
    missingok
    copytruncate
}
EOF

mv %{buildroot}%{_docdir}/%{oname}/html %{buildroot}%{_docdir}/%{oname}-docs-%{version}

echo -n "" > %{libname}.lst
echo -n "" > %{libecpg}.lst
echo -n "" > server.lst
echo -n "" > main.lst
echo -n "" > contrib.lst
echo -n "" > devel.lst
echo -n "" > plperl.lst
echo -n "" > plpython.lst
echo -n "" > pltcl.lst
echo -n "" > plpgsql.lst

# libs
%find_lang libpq%{major}-%{majorver}
cat libpq%{major}-%{majorver}.lang >> %{libname}.lst
%find_lang ecpglib%{major_ecpg}-%{majorver}
cat ecpglib%{major_ecpg}-%{majorver}.lang >> %{libecpg}.lst

# server
%find_lang initdb-%{majorver}
cat initdb-%{majorver}.lang >> server.lst
%find_lang pg_archivecleanup-%{majorver}
cat pg_archivecleanup-%{majorver}.lang >> server.lst
%find_lang pg_basebackup-%{majorver}
cat pg_basebackup-%{majorver}.lang >> server.lst
%find_lang pg_verifybackup-%{majorver}
cat pg_verifybackup-%{majorver}.lang >> server.lst
%find_lang pg_controldata-%{majorver}
cat pg_controldata-%{majorver}.lang >> server.lst
%find_lang pg_ctl-%{majorver}
cat pg_ctl-%{majorver}.lang >> server.lst
%find_lang pg_resetwal-%{majorver}
cat pg_resetwal-%{majorver}.lang >> server.lst
%find_lang pg_upgrade-%{majorver}
cat pg_upgrade-%{majorver}.lang >> server.lst
%find_lang pg_checksums-%{majorver}
cat pg_checksums-%{majorver}.lang >> server.lst
%find_lang postgres-%{majorver}
cat postgres-%{majorver}.lang >> server.lst

# main
%find_lang pg_config-%{majorver}
cat pg_config-%{majorver}.lang >> main.lst
%find_lang pg_dump-%{majorver}
cat pg_dump-%{majorver}.lang >> main.lst
%find_lang pg_rewind-%{majorver}
cat pg_rewind-%{majorver}.lang >> main.lst
%find_lang pg_test_fsync-%{majorver}
cat pg_test_fsync-%{majorver}.lang >> main.lst
%find_lang pg_test_timing-%{majorver}
cat pg_test_timing-%{majorver}.lang >> main.lst
%find_lang pgscripts-%{majorver}
cat pgscripts-%{majorver}.lang >> main.lst
%find_lang psql-%{majorver}
cat psql-%{majorver}.lang >>main.lst

#contrib
%find_lang pg_waldump-%{majorver}
cat pg_waldump-%{majorver}.lang >>contrib.lst
%find_lang pg_amcheck-%{majorver}
cat pg_amcheck-%{majorver}.lang >>contrib.lst

# devel
%find_lang ecpg-%{majorver}
cat ecpg-%{majorver}.lang >> devel.lst

# perl
%find_lang plperl-%{majorver}
cat plperl-%{majorver}.lang >> plperl.lst

# python
%find_lang plpython-%{majorver}
cat plpython-%{majorver}.lang >> plpython.lst

# tcl
%find_lang pltcl-%{majorver}
cat pltcl-%{majorver}.lang >> pltcl.lst

# plpgsql
%find_lang plpgsql-%{majorver}
cat plpgsql-%{majorver}.lang >> plpgsql.lst

# taken directly in build dir.
rm -fr %{buildroot}%{_datadir}/doc/%{oname}/contrib/

cat > macro <<EOF
%%postgresql_version %{version}
%%postgresql_major   %{majorver}
%%postgresql_minor   %{minorver}
%%pgmodules_req Requires: %{?arch_tagged:%{arch_tagged} %{oname}-server-ABI}%{?!arch_tagged:%{oname}-server-ABI} >= %{majorver}
EOF

%install_macro %{oname} macro

# postgres' .profile and .bashrc
install -D -m 700 %{SOURCE10} %{buildroot}%{_localstatedir}/lib/pgsql/.profile
(
cd %{buildroot}%{_localstatedir}/lib/pgsql/
ln -s .profile .bashrc
)

cat > %{buildroot}%{_sysconfdir}/sysconfig/%{oname} <<EOF
# Olivier Thauvin <nanardon@mandriva.org>

# The database location:
# You probably won't change this
PGDATA=%{_localstatedir}/lib/pgsql/data

# What is the based locales for postgresql
# Setting locales to C allow to use any encoding
# ISO or UTF, any other choice will restrict you
# either ISO or UTF.
LC_ALL=UTF-8

# These are additional to pass to pg_ctl when starting/restarting postgresql.
# PGOPTIONS=
EOF

# cleanup
find %{buildroot} -type f -name "*.a" -exec rm -f {} ';'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6626 |21cr|postgresql15-15.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude devel\\(libtcl)

%define oname postgresql

%define major 5
%define major_ecpg 6
%define libname %mklibname pq15 %{major}
%define libecpg %mklibname ecpg15 %{major_ecpg}

%define majorver %(echo %{version} | cut -d. -f1)
%define minorver %(echo %{version} | cut -d. -f2)

%bcond_without uuid

Summary:	PostgreSQL client programs and libraries
Name:		postgresql15
Version:	15.8
Release:	1
Epoch:		1
License:	BSD
Group:		Databases
Url:		http://www.postgresql.org/
Source0:	https://ftp.postgresql.org/pub/source/v%{version}/%{oname}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Source10:	postgres.profile
Source11:	%{oname}.service
Source12:	%{oname}.tmpfiles.d
Source14:	%{oname}_initdb.sh
Patch0:		postgresql-14.2-ossp-uuid-dir.patch
Patch1:		e2k-spinlock.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	perl-devel
BuildRequires:	readline-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(openssl)
%if %{with uuid}
BuildRequires:	pkgconfig(ossp-uuid)
%endif
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(zlib)
# Need to build doc
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-dtd42-sgml
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-utils
BuildRequires:	openjade
BuildRequires:	xmlto
BuildRequires:	xsltproc
Provides:	%{name}-clients = %{EVRD}
Conflicts:	postgresql
Conflicts:	postgresql14

%description
PostgreSQL is an advanced Object-Relational database management system (DBMS)
that supports almost all SQL constructs (including transactions, subselects and
user-defined types and functions). The postgresql package includes the client
programs and libraries that you'll need to access a PostgreSQL DBMS server.
These PostgreSQL client programs are programs that directly manipulate the
internal structure of PostgreSQL databases on a PostgreSQL server. These client
programs can be located on the same machine with the PostgreSQL server, or may
be on a remote machine which accesses a PostgreSQL server over a network
connection. This package contains the client libraries for C and C++, as well
as command-line utilities for managing PostgreSQL databases on a PostgreSQL
server.

If you want to manipulate a PostgreSQL database on a remote PostgreSQL server,
you need this package. You also need to install this package if you're
installing the postgresql-server package.

%files -f main.lst
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES
%doc README HISTORY
%license COPYRIGHT
%{_bindir}/clusterdb
%{_bindir}/createdb
%{_bindir}/createuser
%{_bindir}/dropdb
%{_bindir}/dropuser
%{_bindir}/pg_basebackup
%{_bindir}/pg_dump
%{_bindir}/pg_dumpall
%{_bindir}/pg_isready
%{_bindir}/pg_restore
%{_bindir}/pg_rewind
%{_bindir}/pg_test_fsync
%{_bindir}/pg_test_timing
%{_bindir}/pg_verifybackup
%{_bindir}/psql
%{_bindir}/reindexdb
%{_bindir}/vacuumdb
%{_mandir}/man1/clusterdb.*
%{_mandir}/man1/createdb.*
%{_mandir}/man1/createuser.*
%{_mandir}/man1/dropdb.*
%{_mandir}/man1/dropuser.*
%{_mandir}/man1/pg_basebackup.*
%{_mandir}/man1/pg_dump.*
%{_mandir}/man1/pg_dumpall.*
%{_mandir}/man1/pg_isready.1*
%{_mandir}/man1/pg_restore.1*
%{_mandir}/man1/pg_rewind.1*
%{_mandir}/man1/pg_test_fsync.1*
%{_mandir}/man1/pg_test_timing.1*
%{_mandir}/man1/pg_verifybackup.1.xz
%{_mandir}/man1/psql.*
%{_mandir}/man1/reindexdb.*
%{_mandir}/man1/vacuumdb.*
%{_mandir}/man7/*
%{_rpmmacrodir}/*%{oname}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The shared libraries required for any PostgreSQL clients
Group:		System/Libraries
Provides:	%{name}-libs = %{EVRD}
%rename	%{_lib}pq9.0_5
Conflicts:	%{mklibname pq 5}
Conflicts:	%{mklibname pq14 5}

%description -n %{libname}
C and C++ libraries to enable user programs to communicate with the PostgreSQL
database backend. The backend can be on another machine and accessed through
TCP/IP.

%files -n %{libname} -f %{libname}.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/libpq.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecpg}
Summary:	Shared library libecpg for PostgreSQL
Group:		System/Libraries
Conflicts:	%{_lib}ecpg5
%rename	%{_lib}ecpg9.0_6
Conflicts:	%{mklibname ecpg 5}
Conflicts:	%{mklibname ecpg14 5}

%description -n %{libecpg}
Libecpg is used by programs built with ecpg (Embedded PostgreSQL for C) Use
postgresql-dev to develop such programs.

%files -n %{libecpg} -f %{libecpg}.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/libecpg_compat.so.*
%{_libdir}/libecpg.so.%{major_ecpg}*
%{_libdir}/libpgtypes.so.*

#----------------------------------------------------------------------------

%package server
Summary:	The programs needed to create and run a PostgreSQL server
Group:		Databases
Provides:	%{name}-server = %{EVRD}
# the client bins are needed for upgrading
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-plpgsql >= %{EVRD}
# add/remove services
Requires(post,preun):	rpm-helper
# add/del user
Requires(pre,postun):	rpm-helper
Requires(post,preun):	update-alternatives
Conflicts:	postgresql-server
Conflicts:	postgresql14-server

%description server
The postgresql-server package includes the programs needed to create and run a
PostgreSQL server, which will in turn allow you to create and maintain
PostgreSQL databases.  PostgreSQL is an advanced Object-Relational database
management system (DBMS) that supports almost all SQL constructs (including
transactions, subselects and user-defined types and functions). You should
install postgresql-server if you want to create and maintain your own
PostgreSQL databases and/or your own PostgreSQL server. You also need to
install the postgresql and postgresql-devel packages.

%files server -f server.lst
%doc README HISTORY
%license COPYRIGHT
%attr(700,postgres,postgres) %dir %{_localstatedir}/lib/pgsql
%attr(700,postgres,postgres) %dir %{_localstatedir}/lib/pgsql/backups
%attr(700,postgres,postgres) %dir /var/log/postgres
%attr(755,postgres,postgres) %config(noreplace) %{_localstatedir}/lib/pgsql/.bashrc
%attr(-,postgres,postgres) %{_localstatedir}/lib/pgsql/data
%attr(-,postgres,postgres) %{_localstatedir}/lib/pgsql/.profile
%{_bindir}/initdb
%{_bindir}/pg_archivecleanup
%{_bindir}/pg_checksums
%{_bindir}/pg_controldata
%{_bindir}/pg_ctl
%{_bindir}/pg_receivewal
%{_bindir}/pg_resetwal
%{_bindir}/pg_upgrade
%{_bindir}/postgres
%{_bindir}/postmaster
%config(noreplace) %{_sysconfdir}/sysconfig/%{oname}
%{_datadir}/%{oname}/errcodes.txt
%{_datadir}/%{oname}/extension/*
%{_datadir}/%{oname}/fix-CVE-2024-4317.sql
%{_datadir}/%{oname}/information_schema.sql
%{_datadir}/%{oname}/postgres.bki
%{_datadir}/%{oname}/*.sample
%{_datadir}/%{oname}/snowball_create.sql
%{_datadir}/%{oname}/sql_features.txt
%{_datadir}/%{oname}/system_constraints.sql
%{_datadir}/%{oname}/system_functions.sql
%{_datadir}/%{oname}/system_views.sql
%{_datadir}/%{oname}/timezone
%{_datadir}/%{oname}/timezonesets/Africa.txt
%{_datadir}/%{oname}/timezonesets/America.txt
%{_datadir}/%{oname}/timezonesets/Antarctica.txt
%{_datadir}/%{oname}/timezonesets/Asia.txt
%{_datadir}/%{oname}/timezonesets/Atlantic.txt
%{_datadir}/%{oname}/timezonesets/Australia
%{_datadir}/%{oname}/timezonesets/Australia.txt
%{_datadir}/%{oname}/timezonesets/Default
%{_datadir}/%{oname}/timezonesets/Etc.txt
%{_datadir}/%{oname}/timezonesets/Europe.txt
%{_datadir}/%{oname}/timezonesets/India
%{_datadir}/%{oname}/timezonesets/Indian.txt
%{_datadir}/%{oname}/timezonesets/Pacific.txt
%{_datadir}/%{oname}/tsearch_data
%{_defaultdocdir}/%{oname}/extension/*.example
%dir %{_datadir}/%{oname}
%dir %{_datadir}/%{oname}/extension
%dir %{_datadir}/%{oname}/timezonesets
%dir %{_libdir}/%{oname}
%{_libdir}/%{oname}/*_and_*.so
%{_libdir}/%{oname}/auth_delay.so
%{_libdir}/%{oname}/auto_explain.so
%{_libdir}/%{oname}/btree_gin.so
%{_libdir}/%{oname}/citext.so
%{_libdir}/%{oname}/dict_int.so
%{_libdir}/%{oname}/dict_snowball.so
%{_libdir}/%{oname}/dict_xsyn.so
%{_libdir}/%{oname}/euc2004_sjis2004.so
%{_libdir}/%{oname}/file_fdw.so
%{_libdir}/%{oname}_initdb.sh
%{_libdir}/%{oname}/libpqwalreceiver.so
%{_libdir}/%{oname}/passwordcheck.so
%{_libdir}/%{oname}/pgoutput.so
%{_libdir}/%{oname}/pg_stat_statements.so
%{_libdir}/%{oname}/pgxml.so
%{_libdir}/%{oname}/sepgsql.so
%{_libdir}/%{oname}/unaccent.so
%if %{with uuid}
%{_libdir}/%{oname}/uuid-ossp.so
%endif
%{_mandir}/man1/initdb.1*
%{_mandir}/man1/pg_archivecleanup.1*
%{_mandir}/man1/pg_checksums.1*
%{_mandir}/man1/pg_controldata.*
%{_mandir}/man1/pg_ctl.1*
%{_mandir}/man1/pg_receivewal.1*
%{_mandir}/man1/pg_resetwal.*
%{_mandir}/man1/pg_upgrade.1*
%{_mandir}/man1/postgres.1*
%{_mandir}/man1/postmaster.1*
%{_sysconfdir}/logrotate.d/%{oname}
%{_tmpfilesdir}/%{oname}%{majorver}.conf
%{_unitdir}/%{oname}%{majorver}.service

%pre server
%_pre_useradd postgres %{_localstatedir}/lib/pgsql /bin/bash
# if upgrade

[ ! -f %{_localstatedir}/lib/pgsql/data/PG_VERSION ] && exit 0
mypgversion=`cat %{_localstatedir}/lib/pgsql/data/PG_VERSION`
[ $mypgversion = %{majorver} ] && exit 0

echo ""
echo "You currently have database tree for Postgresql $mypgversion"
echo "You must use postgresql${mypgversion}-server"
echo "To update you Postgresql server, dump your databases"
echo "delete /var/lib/pgsql/data/ content, upgrade the server, then"
echo "restore your databases from your backup"
echo ""

exit 1

%posttrans server
%_post_service %{oname}%{majorver}
%tmpfiles_create %{oname}%{majorver}.conf

%preun server
%_preun_service %{oname}%{majorver}

%postun server
%_postun_userdel postgres

#----------------------------------------------------------------------------

%package docs
Summary:	Extra documentation for PostgreSQL
Group:		Documentation
Conflicts:	postgresql-docs
Conflicts:	postgresql14-docs

%description docs
The postgresql-docs package includes the SGML source for the documentation as
well as the documentation in other formats, and some extra documentation.
Install this package if you want to help with the PostgreSQL documentation
project, or if you want to generate printed documentation.

%files docs
%doc %{_docdir}/%{oname}-docs-%{version}

#----------------------------------------------------------------------------

%package contrib
Summary:	Contributed binaries distributed with PostgreSQL
Group:		Databases
Conflicts:	postgresql-contrib
Conflicts:	postgresql14-contrib

%description contrib
The postgresql-contrib package includes the contrib tree distributed with the
PostgreSQL tarball. Selected contrib modules are prebuilt.

%files contrib -f contrib.lst
%doc README HISTORY
%license COPYRIGHT
%{_bindir}/oid2name
%{_bindir}/pg_amcheck
%{_bindir}/pgbench
%{_bindir}/pg_recvlogical
%{_bindir}/pg_waldump
%{_bindir}/vacuumlo
%{_datadir}/%{oname}/contrib/sepgsql.sql
%{_libdir}/%{oname}/adminpack.so
%{_libdir}/%{oname}/amcheck.so
%{_libdir}/%{oname}/autoinc.so
%{_libdir}/%{oname}/basebackup_to_shell.so
%{_libdir}/%{oname}/basic_archive.so
%{_libdir}/%{oname}/bloom.so
%{_libdir}/%{oname}/btree_gist.so
%{_libdir}/%{oname}/cube.so
%{_libdir}/%{oname}/dblink.so
%{_libdir}/%{oname}/earthdistance.so
%{_libdir}/%{oname}/fuzzystrmatch.so
%{_libdir}/%{oname}/hstore.so
%{_libdir}/%{oname}/insert_username.so
%{_libdir}/%{oname}/_int.so
%{_libdir}/%{oname}/isn.so
%{_libdir}/%{oname}/lo.so
%{_libdir}/%{oname}/ltree.so
%{_libdir}/%{oname}/moddatetime.so
%{_libdir}/%{oname}/old_snapshot.so
%{_libdir}/%{oname}/pageinspect.so
%{_libdir}/%{oname}/pg_buffercache.so
%{_libdir}/%{oname}/pgcrypto.so
%{_libdir}/%{oname}/pg_freespacemap.so
%{_libdir}/%{oname}/pg_prewarm.so
%{_libdir}/%{oname}/pgrowlocks.so
%{_libdir}/%{oname}/pgstattuple.so
%{_libdir}/%{oname}/pg_surgery.so
%{_libdir}/%{oname}/pg_trgm.so
%{_libdir}/%{oname}/pg_visibility.so
%{_libdir}/%{oname}/pg_walinspect.so
%{_libdir}/%{oname}/postgres_fdw.so
%{_libdir}/%{oname}/refint.so
%{_libdir}/%{oname}/seg.so
%{_libdir}/%{oname}/sslinfo.so
%{_libdir}/%{oname}/tablefunc.so
%{_libdir}/%{oname}/tcn.so
%{_libdir}/%{oname}/test_decoding.so
%{_libdir}/%{oname}/tsm_system_rows.so
%{_libdir}/%{oname}/tsm_system_time.so
%{_mandir}/man1/oid2name.1*
%{_mandir}/man1/pg_amcheck.1.*
%{_mandir}/man1/pgbench.1*
%{_mandir}/man1/pg_recvlogical.1*
%{_mandir}/man1/pg_waldump.1*
%{_mandir}/man1/vacuumlo.1*

#----------------------------------------------------------------------------

%package devel
Summary:	PostgreSQL development header files and libraries
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Requires:	%{libecpg} = %{EVRD}
Conflicts:	postgresql-devel
Conflicts:	postgresql14-devel

%description devel
The postgresql-devel package contains the header files and libraries needed to
compile C or C++ applications which will directly interact with a PostgreSQL
database management server and the ecpg Embedded C Postgres preprocessor. You
need to install this package if you want to develop applications which will
interact with a PostgreSQL server. If you're installing postgresql-server, you
need to install this package.

%files devel -f devel.lst
%doc README HISTORY
%license COPYRIGHT
%{_bindir}/ecpg
%{_bindir}/pg_config
%{_includedir}/*
%{_libdir}/libecpg_compat.so
%{_libdir}/libecpg.so
%{_libdir}/libpgtypes.so
%{_libdir}/libpq.so
%{_libdir}/%{oname}/pgxs/
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/ecpg.1*
%{_mandir}/man1/pg_config.1*
%{_mandir}/man3/dblink*.3*
%{_mandir}/man3/SPI_*.3*

#----------------------------------------------------------------------------

%package pl
Summary:	Procedurals languages for PostgreSQL
Group:		Databases
Provides:	%{name}-pl = %{EVRD}
Requires:	%{name}-plpython >= %{EVRD}
Requires:	%{name}-plperl >= %{EVRD}
Requires:	%{name}-pltcl >= %{EVRD}
Requires:	%{name}-plpgsql >= %{EVRD}
Conflicts:	postgresql-pl
Conflicts:	postgresql14-pl

%description pl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-pl will install the the PL/Perl, PL/Tcl, and PL/Python procedural
languages for the backend. PL/Pgsql is part of the core server package.

%files pl
%doc COPYRIGHT
# metapkg

#----------------------------------------------------------------------------

%package plpython
Summary:	The PL/Python procedural language for PostgreSQL
Group:		Databases
Conflicts:	postgresql-plpython
Conflicts:	postgresql14-plpython

%description plpython
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plpython package contains the the PL/Python procedural languages for
the backend. PL/Python is part of the core server package.

%files plpython -f plpython.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/*python*.so

#----------------------------------------------------------------------------

%package plperl
Summary:	The PL/Perl procedural language for PostgreSQL
Group:		Databases
Conflicts:	postgresql-plperl
Conflicts:	postgresql14-plperl

%description plperl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plperl package contains the the PL/Perl procedural languages for the
backend. PL/Perl is part of the core server package.

%files plperl -f plperl.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/*perl.so

#----------------------------------------------------------------------------

%package pltcl
Summary:	The PL/Tcl procedural language for PostgreSQL
Group:		Databases
Conflicts:	postgresql-pltcl
Conflicts:	postgresql14-pltcl

%description pltcl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-pltcl package contains the the PL/Tcl procedural languages for the
backend. PL/Tcl is part of the core server package.

%files pltcl -f pltcl.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/pltcl.so

#----------------------------------------------------------------------------

%package plpgsql
Summary:	The PL/PgSQL procedural language for PostgreSQL
Group:		Databases
Conflicts:	postgresql-plpgsql
Conflicts:	postgresql14-plpgsql

%description plpgsql
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plpgsql package contains the the PL/PgSQL procedural languages for
the backend. PL/PgSQL is part of the core server package.

%files plpgsql -f plpgsql.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{oname}/plpgsql.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%serverbuild
# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

%configure	\
	--disable-rpath		\
	--enable-nls		\
	--libdir=%{_libdir}	\
	--libexecdir=%{_libexecdir}		\
	--mandir=%{_mandir}	\
	--prefix=%{_prefix}	\
	--sysconfdir=%{_sysconfdir}/pgsql	\
	--with-gssapi		\
	--with-icu		\
	--with-ldap		\
	--with-libxml		\
	--with-libxslt		\
	--with-openssl		\
%if %{with uuid}
	--with-ossp-uuid	\
%endif
	--with-pam		\
	--with-perl		\
	--with-python		\
	--with-selinux		\
	--with-systemd		\
	--with-tcl		\
	--with-tclconfig=%{_libdir}

# nuke -Wl,--no-undefined
perl -pi -e "s|-Wl,--no-undefined||g" src/Makefile.global

%if %{with uuid}
# bork...
echo "#define HAVE_OSSP_UUID_H 1" >> src/include/pg_config.h
%endif

%make world

pushd src/test
%make all
popd

%check
cp -f %{buildroot}%{_localedir}/ru/LC_MESSAGES/pg_reset{wal,xlog}-%{majorver}.mo
make check || :
rm -f %{buildroot}%{_localedir}/ru/LC_MESSAGES/pg_resetxlog-%{majorver}.mo

%install
make DESTDIR=%{buildroot} install-world install-docs

# install odbcinst.ini
mkdir -p %{buildroot}%{_sysconfdir}/pgsql

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -d -m 700 %{buildroot}%{_localstatedir}/lib/pgsql/data

# backups of data go here...
install -d -m 700 %{buildroot}%{_localstatedir}/lib/pgsql/backups

# Create the multiple postmaster startup directory
install -d -m 700 %{buildroot}/etc/sysconfig/pgsql

# install systemd units
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{oname}%{majorver}.service
sed -i "s|/usr/libexec|%{_libdir}|" %{buildroot}%{_unitdir}/%{oname}%{majorver}.service

# Create the directory for sockets.
install -d -m 755 %{buildroot}/var/run/%{oname}

# ... and make a tmpfiles script to recreate it at reboot.
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE12} %{buildroot}%{_tmpfilesdir}/%{oname}%{majorver}.conf

# install helper script for env initialisation
install -m 755 %{SOURCE14} %{buildroot}%{_libdir}

mkdir -p %{buildroot}/var/log/postgres

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{oname} <<EOF
/var/log/postgres/%{oname} {
    notifempty
    missingok
    copytruncate
}
EOF

mv %{buildroot}%{_docdir}/%{oname}/html %{buildroot}%{_docdir}/%{oname}-docs-%{version}

echo -n "" > %{libname}.lst
echo -n "" > %{libecpg}.lst
echo -n "" > server.lst
echo -n "" > main.lst
echo -n "" > contrib.lst
echo -n "" > devel.lst
echo -n "" > plperl.lst
echo -n "" > plpython.lst
echo -n "" > pltcl.lst
echo -n "" > plpgsql.lst

# libs
%find_lang libpq%{major}-%{majorver}
cat libpq%{major}-%{majorver}.lang >> %{libname}.lst
%find_lang ecpglib%{major_ecpg}-%{majorver}
cat ecpglib%{major_ecpg}-%{majorver}.lang >> %{libecpg}.lst

# server
%find_lang initdb-%{majorver}
cat initdb-%{majorver}.lang >> server.lst
%find_lang pg_archivecleanup-%{majorver}
cat pg_archivecleanup-%{majorver}.lang >> server.lst
%find_lang pg_basebackup-%{majorver}
cat pg_basebackup-%{majorver}.lang >> server.lst
%find_lang pg_verifybackup-%{majorver}
cat pg_verifybackup-%{majorver}.lang >> server.lst
%find_lang pg_controldata-%{majorver}
cat pg_controldata-%{majorver}.lang >> server.lst
%find_lang pg_ctl-%{majorver}
cat pg_ctl-%{majorver}.lang >> server.lst
%find_lang pg_resetwal-%{majorver}
cat pg_resetwal-%{majorver}.lang >> server.lst
%find_lang pg_upgrade-%{majorver}
cat pg_upgrade-%{majorver}.lang >> server.lst
%find_lang pg_checksums-%{majorver}
cat pg_checksums-%{majorver}.lang >> server.lst
%find_lang postgres-%{majorver}
cat postgres-%{majorver}.lang >> server.lst

# main
%find_lang pg_config-%{majorver}
cat pg_config-%{majorver}.lang >> main.lst
%find_lang pg_dump-%{majorver}
cat pg_dump-%{majorver}.lang >> main.lst
%find_lang pg_rewind-%{majorver}
cat pg_rewind-%{majorver}.lang >> main.lst
%find_lang pg_test_fsync-%{majorver}
cat pg_test_fsync-%{majorver}.lang >> main.lst
%find_lang pg_test_timing-%{majorver}
cat pg_test_timing-%{majorver}.lang >> main.lst
%find_lang pgscripts-%{majorver}
cat pgscripts-%{majorver}.lang >> main.lst
%find_lang psql-%{majorver}
cat psql-%{majorver}.lang >>main.lst

#contrib
%find_lang pg_waldump-%{majorver}
cat pg_waldump-%{majorver}.lang >>contrib.lst
%find_lang pg_amcheck-%{majorver}
cat pg_amcheck-%{majorver}.lang >>contrib.lst

# devel
%find_lang ecpg-%{majorver}
cat ecpg-%{majorver}.lang >> devel.lst

# perl
%find_lang plperl-%{majorver}
cat plperl-%{majorver}.lang >> plperl.lst

# python
%find_lang plpython-%{majorver}
cat plpython-%{majorver}.lang >> plpython.lst

# tcl
%find_lang pltcl-%{majorver}
cat pltcl-%{majorver}.lang >> pltcl.lst

# plpgsql
%find_lang plpgsql-%{majorver}
cat plpgsql-%{majorver}.lang >> plpgsql.lst

# taken directly in build dir.
rm -fr %{buildroot}%{_datadir}/doc/%{oname}/contrib/

cat > macro <<EOF
%%postgresql_version %{version}
%%postgresql_major   %{majorver}
%%postgresql_minor   %{minorver}
%%pgmodules_req Requires: %{?arch_tagged:%{arch_tagged} %{oname}-server-ABI}%{?!arch_tagged:%{oname}-server-ABI} >= %{majorver}
EOF

%install_macro %{oname} macro

# postgres' .profile and .bashrc
install -D -m 700 %{SOURCE10} %{buildroot}%{_localstatedir}/lib/pgsql/.profile
(
cd %{buildroot}%{_localstatedir}/lib/pgsql/
ln -s .profile .bashrc
)

cat > %{buildroot}%{_sysconfdir}/sysconfig/%{oname} <<EOF
# Olivier Thauvin <nanardon@mandriva.org>

# The database location:
# You probably won't change this
PGDATA=%{_localstatedir}/lib/pgsql/data

# What is the based locales for postgresql
# Setting locales to C allow to use any encoding
# ISO or UTF, any other choice will restrict you
# either ISO or UTF.
LC_ALL=UTF-8

# These are additional to pass to pg_ctl when starting/restarting postgresql.
# PGOPTIONS=
EOF

# cleanup
find %{buildroot} -type f -name "*.a" -exec rm -f {} ';'


### CVE's
# fixed CVE-2023-5868
# fixed CVE-2023-5869
# fixed CVE-2023-5870
# version 15.5 -----^

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6627 |21cr|postgrey-1.37-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define confdir /etc/postfix
%define queue_directory %{_var}/spool/postfix

Summary:	Postfix Greylisting Policy Server
Name:		postgrey
Version:	1.37
Release:	3
License:	GPLv2+
Group:		System/Servers
Url:		http://postgrey.schweikert.ch/
Source0:	http://postgrey.schweikert.ch/pub/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.sysconfig
# use postgrey group by default
# use /var/lib/postgrey instead of /var/spool/postfix/postgrey
Patch0:		postgrey-1.37-defaults.patch
BuildRequires:	systemd-units
Requires:	postfix
Requires(post):	systemd
Requires(pre,post,preun,postun):	rpm-helper
BuildArch:	noarch

%description
Postgrey is a Postfix policy server implementing greylisting. When a request
for delivery of a mail is received by Postfix via SMTP, the triplet CLIENT_IP
/ SENDER / RECIPIENT is built. If it is the first time that this triplet is
seen, or if the triplet was first seen less than 5 minutes, then the mail gets
rejected with a temporary error. Hopefully spammers or viruses will not try
again later, as it is however required per RFC.

%files
%doc README Changes
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{confdir}/postgrey_whitelist_clients
%config(noreplace) %{confdir}/postgrey_whitelist_recipients
%config(noreplace) %{confdir}/postgrey_whitelist_clients.local
%{_sbindir}/postgrey
%{_sbindir}/postgreyreport
%{_mandir}/man8/postgrey.8*
%{_mandir}/man8/postgreyreport.8*
%dir %attr(0750, postgrey, postfix) %{queue_directory}/extern/%{name}
%dir %attr(0750, postgrey, postgrey) %{_localstatedir}/lib/%{name}

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/false

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
pod2man -s 8 -c "" postgrey > postgrey.8
pod2man -s 8 -c "" contrib/postgreyreport > contrib/postgreyreport.8

%install
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

mkdir -p %{buildroot}%{_sysconfdir}/postfix
cp postgrey_whitelist_clients %{buildroot}%{_sysconfdir}/postfix
cp postgrey_whitelist_recipients %{buildroot}%{_sysconfdir}/postfix
touch %{buildroot}%{_sysconfdir}/postfix/postgrey_whitelist_clients.local

mkdir -p %{buildroot}%{_sbindir}
install postgrey %{buildroot}%{_sbindir}/postgrey
install contrib/postgreyreport %{buildroot}%{_sbindir}/postgreyreport

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
cp -p %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

mkdir -p %{buildroot}%{queue_directory}/extern/%{name}
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}

mkdir -p %{buildroot}%{_mandir}/man8
cp postgrey.8 contrib/postgreyreport.8 %{buildroot}%{_mandir}/man8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6628 |21cr|pound-3.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A reverse-proxy and load-balancer
Name:		pound
Version:	3.0.2
Release:	1
Group:		System/Servers
License:	GPLv2
URL:		http://www.apsis.ch/pound/
Source0:	http://www.apsis.ch/pound/Pound-%{version}.tgz
Source1:	pound.cfg
Source2:	pound.service
Source3:	pound-openssl.cnf
Source4:	%{name}.tmpfiles.d
Source5:	pound.sysusers.conf
BuildRequires:	cmake
BuildRequires:	openssl-devel
BuildRequires:	mbedtls-devel
BuildRequires:	pkgconfig(nanomsg)
BuildRequires:	yaml-devel
BuildRequires:	pcre-devel
Requires:	openssl
Requires(pre):	/bin/systemd-sysusers

%description
The Pound program is a reverse proxy, load balancer and HTTPS
front-end for Web server(s).

%prep
%setup -q -n Pound-%{version}

%build
%cmake
%make

%install
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}%{_sysconfdir}/pound
install -d %{buildroot}%{_sysconfdir}/pki/%{name}/certs

install -m0755 build/pound %{buildroot}%{_sbindir}
#install -m0755 poundctl %{buildroot}%{_sbindir}
install -m0644 man/*.8 %{buildroot}%{_mandir}/man8/

install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pound/pound.cfg
install -m0755 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/pki/%{name}/%{name}.cnf
install -p -D -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf

touch %{buildroot}%{_sysconfdir}/pki/%{name}/certs/%{name}.pem
chmod 600 %{buildroot}%{_sysconfdir}/pki/%{name}/certs/%{name}.pem

# install sysusers config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/pound.conf

#---------------------------------------------------------------
%pre
%sysusers_create_package pound %{SOURCE5}

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post pound.service
# create a ssl cert
if [ ! -f %{_sysconfdir}/pki/%{name}/certs/%{name}.pem ]; then
    echo "Generating a SSL certificate for %{name}"
    openssl req -x509 -newkey rsa:1024 -batch -keyout \
    %{_sysconfdir}/pki/%{name}/certs/%{name}.pem \
    -out %{_sysconfdir}/pki/%{name}/certs/%{name}.pem \
    -days 365 -nodes -config %{_sysconfdir}/pki/%{name}/%{name}.cnf
    chmod 600 %{_sysconfdir}/pki/%{name}/certs/%{name}.pem
fi

%preun
%systemd_preun pound.service

%postun
%systemd_postun_with_restart pound.service

%files
%defattr(644,root,root,755)
%doc README*
%{_unitdir}/%{name}.service
%attr(0755,root,root) %{_sbindir}/*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/%{name}.cfg
%attr(0600,root,root) %ghost %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pki/%{name}/certs/%{name}.pem
%attr(0644,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/pki/%{name}/%{name}.cnf
%{_mandir}/man8/*
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/pound.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6629 |21cr|povray-3.7.0.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_rebuild_configure 1
%global	debug_package %{nil}

%define	PKGRELEASE 3.7

Summary:	The Persistence of Vision Raytracer
Name:		povray
Version:	3.7.0.10
Release:	2
License:	AGPLv3+
Group:		Sciences/Computer science
Url:		http://www.povray.org
Source0:	https://github.com/POV-Ray/povray/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.bash-completion
Patch0:		povray-3.7.0.8-link.patch
Patch1:		povray-3.7.0.8-install.patch
BuildRequires:	boost-devel >= 1.37
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(zlib)

%description
The Persistence of Vision Ray tracer creates three-dimensional,
photo-realistic images using a rendering technique called ray tracing. It
reads in a text file containing information describing the objects and
lighting in a scene and generates an image of that scene from the view
point of a camera also described in the text file. Ray tracing is not
a fast process by any means, (the generation of a complex image can
take several hours) but it produces very high quality images with realistic
reflections, shading, perspective, and other effects.

%files
%doc doc/*
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{PKGRELEASE}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{PKGRELEASE}/%{name}.ini
%{_bindir}/%{name}
%{_defaultdocdir}/%{name}-%{PKGRELEASE}
%{_datadir}/%{name}-%{PKGRELEASE}
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1
# Prepare the build files
pushd unix
	./prebuild.sh
popd
%patch1 -p1


%build
%configure COMPILED_BY="%{_vendor}" \
	--with-x \
	--disable-optimiz \
	--with-boost-libdir=%{_libdir}
%make


%install
%makeinstall_std

# Install our bash_completion file
install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6630 |21cr|powdertoy-96.2.350-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname The-Powder-Toy

Summary:	Falling-sand physics sandbox game
Name:		powdertoy
Version:	96.2.350
Release:	1
License:	GPLv3+
Group:		Games/Simulation
Url:		http://powdertoy.co.uk
Source0:	https://github.com/simtr/The-Powder-Toy/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	meson
BuildRequires:	bzip2-devel
BuildRequires:	lua-devel
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(zlib)

%description
The Powder Toy is a free physics sandbox game, which simulates
air pressure and velocity, heat, gravity and a countless number
of interactions between different substances! The game provides
you with various building materials, liquids, gases and electronic
components which can be used to construct complex machines, guns,
bombs, realistic terrains and almost anything else.

%files
%doc LICENSE README*
%{_gamesbindir}/%{name}
%{_libexecdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/*.appdata.xml
%{_datadir}/mime/application/%{name}-save.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%apply_patches

%build
%meson -Dignore_updates=true \
	-Dhttp=true

%meson_build

%install
install -D -m755 *linux-gnu/powder %{buildroot}%{_libexecdir}/%{name}/powder

# Wrapper script
cat << EOF > %{name}.sh
#!/bin/sh
CONFIGDIR=\$HOME"/.config/%{name}"

if [ ! -e \$CONFIGDIR ];
then
    echo -e "Creating the config directory for The Powder Toy in\n\$CONFIGDIR"
    mkdir -p \$CONFIGDIR
fi

pushd \$CONFIGDIR
exec %{_libexecdir}/%{name}/powder \$@
popd
EOF

install -D -m755 %{name}.sh %{buildroot}%{_gamesbindir}/%{name}

# Icons
pushd resources/icon
  install -D -m644 powder-256.png %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png
  install -D -m644 powder-128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
  install -D -m644 powder-48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
  install -D -m644 powder-32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
  install -D -m644 powder-24.png %{buildroot}%{_iconsdir}/hicolor/24x24/apps/%{name}.png
  install -D -m644 powder-16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
popd

# Desktop entry
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=The Powder Toy
GenericName=Physics sandbox
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;Simulation;
EOF

# appdata xml, fix desktop name in xml
sed -i 's/powder.desktop/%{name}.desktop/' resources/powder.appdata.xml
install -d %{buildroot}%{_datadir}/metainfo
install -m0644 resources/powder.appdata.xml %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml

# mime xml
install -d %{buildroot}%{_datadir}/mime/application
install -m0644 resources/%{name}-save.xml %{buildroot}%{_datadir}/mime/application/%{name}-save.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6631 |21cr|powermanga-0.93.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Shoot 'em up game with 3D graphics
Name:		powermanga
Version:	0.93.1
Release:	3
License:	GPLv3+
Group:		Games/Arcade
Url:		http://linux.tlk.fr/games/Powermanga/
Source0:	http://linux.tlk.fr/games/Powermanga/download/%{name}-%{version}.tgz
Source11:	%{name}.16.png
Source12:	%{name}.32.png
Source13:	%{name}.48.png
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
Requires(post):	rpm-helper

%description
In this "shoot 'em up" with 3d graphics, you'll have to face and destroy
more than 60 different types of opponents. Nice musics, many weapons, and
a ton of surprises.

%files -f %{name}.lang
%doc README
%attr(755, root, games) %{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%attr(775, root, games) %dir %{_localstatedir}/games/%{name}
%attr(664, root, games) %ghost %{_localstatedir}/games/%{name}/%{name}.hi
%attr(664, root, games) %ghost %{_localstatedir}/games/%{name}/%{name}.hi-easy
%attr(664, root, games) %ghost %{_localstatedir}/games/%{name}/%{name}.hi-hard

%post
%create_ghostfile %{_localstatedir}/games/%{name}/%{name}.hi root games 664
%create_ghostfile %{_localstatedir}/games/%{name}/%{name}.hi-easy root games 664
%create_ghostfile %{_localstatedir}/games/%{name}/%{name}.hi-hard root games 664

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

install -d install %{buildroot}%{_gamesdatadir}/%{name}/texts
install -m 644 texts/*.txt texts/*.ini %{buildroot}%{_gamesdatadir}/%{name}/texts

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=PowerManga
Comment=Shoot 'em up game with 3D graphics
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6632 |21cr|power-profiles-daemon-0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           power-profiles-daemon
Version:        0.12
Release:        1
Summary:        Makes power profiles handling available over D-Bus
Group:          System/Configuration/Hardware
License:        GPLv3+
URL:            https://gitlab.freedesktop.org/hadess/power-profiles-daemon
Source0:        https://gitlab.freedesktop.org/hadess/power-profiles-daemon/uploads/3ef8a68ea5d23e23d893a688b63079d0/power-profiles-daemon-0.12.tar.bz2
BuildRequires:  meson
BuildRequires:  cmake
BuildRequires:  gtk-doc
BuildRequires:  pkgconfig(udev)
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(upower-glib)
BuildRequires:  pkgconfig(polkit-gobject-1)
BuildRequires:  systemd
BuildRequires:  umockdev
BuildRequires:  python3-dbusmock

%description
%{summary}.

%files
%license COPYING
%doc README.md
%{_bindir}/powerprofilesctl
%{_libexecdir}/%{name}
%{_unitdir}/%{name}.service
%{_datadir}/dbus-1/system.d/net.hadess.PowerProfiles.conf
%{_datadir}/dbus-1/system-services/net.hadess.PowerProfiles.service
%{_datadir}/polkit-1/actions/net.hadess.PowerProfiles.policy
%{_localstatedir}/lib/power-profiles-daemon

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#------------------------------------------------------
%package docs
Summary:        Documentation for %{name}
Group:          Documentation
BuildArch:      noarch

%description docs
This package contains the documentation for %{name}.

%files docs
%dir %{_datadir}/gtk-doc/
%dir %{_datadir}/gtk-doc/html/
%{_datadir}/gtk-doc/html/%{name}/

#------------------------------------------------------

%prep
%autosetup

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install
mkdir -p $RPM_BUILD_ROOT/%{_localstatedir}/lib/power-profiles-daemon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6633 |21cr|pp3-1.3.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Creation of sky charts in Postscript or PDF format
Name: pp3
Version: 1.3.3
Release: 10
License: MIT
Group: Sciences/Astronomy
Source0: http://prdownloads.sourceforge.net/pp3/pp3-%{version}.tar.bz2
Url: http://pp3.sourceforge.net
Patch0:	gcc47.patch

%description
PP3 creates celestial charts. It generates resolution independent
maps of very high graphical quality in Postscript or PDF format.
They can be used for example as illustrations in books or on web
pages. You may use the databases of the distribution or your own
databases converted to PP3's simple text format.

PP3 uses LaTeX+pstricks as the backend for generating the vector
graphics. You can add arbitrary labels to the map. The output is
configurable in many ways.

%prep
%setup -q
%patch0 -p1

%build
%make LOCAL="" CHANGEFILE=fmax.ch CXXFLAGS="$RPM_OPT_FLAGS"

%install
mkdir -p  %buildroot%_bindir
install -m755 pp3 %buildroot%_bindir/pp3
mkdir -p %buildroot%_datadir/%name
for i in *.dat; do
    install -m644 $i %buildroot%_datadir/%name/$i
done

%files
%doc COPYING README WHATSNEW
%doc examples
%{_bindir}/%name
%{_datadir}/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6634 |21cr|ppsspp-1.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Internal ffmpeg works better because it's optimized for PPSSPP
%bcond_with system_ffmpeg

Summary:	Sony PlayStation Portable (PSP) emulator
Name:		ppsspp
Version:	1.17
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://www.ppsspp.org
Source0:	https://github.com/hrydgard/ppsspp/releases/download/v%{version}/%{name}-%{version}.tar.xz
Patch0:		ppsspp-1.17-git-version.patch
Patch1:		ppsspp-1.15.4-datapath.patch
Patch2:		ppsspp-1.15.4-optflags.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	python3
%if %{with system_ffmpeg}
BuildRequires:	ffmpeg-devel
%endif
BuildRequires:	snappy-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
#Requires system libpng17, otherwise uses internal static build
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(RapidJSON)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)
ExclusiveArch:	%{ix86} %{x86_64}

%description
PPSSPP is a cross-platform Sony PlayStation Portable (PSP) emulator.

PPSSPP can run your PSP games on your PC in full HD resolution, and play
them on Android too. It can even upscale textures that would otherwise be
too blurry as they were made for the small screen of the original PSP.

%files
%{_gamesbindir}/%{name}-sdl
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_gamesdatadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%if %{without system_ffmpeg}
pushd ffmpeg
%ifarch %{ix86}
./linux_x86.sh
%else
./linux_x86-64.sh
%endif
popd
%endif

%cmake \
	-DHEADLESS:BOOL=OFF \
	-DUSE_FFMPEG:BOOL=ON \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_STATIC_LIBS:BOOL=ON \
%if %{with system_ffmpeg}
	-DUSE_SYSTEM_FFMPEG:BOOL=ON
%else
	-DUSE_SYSTEM_FFMPEG:BOOL=OFF
%endif

%make

%install
mkdir -p %{buildroot}%{_gamesbindir}
install -m 0755 build/PPSSPPSDL %{buildroot}%{_gamesbindir}/%{name}-sdl
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -r build/assets %{buildroot}%{_gamesdatadir}/%{name}

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=PPSSPP
Comment=Sony PSP emulator
Exec=%{_gamesbindir}/%{name}-sdl
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert icons/icon-114.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6635 |21cr|pptpd-server-1.4.0-1.git.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 3b7a80c3b63a9f9388991299f76c245bb900875e
%define	realname	pptpd
%define buildlibwrap 1
%define buildbsdppp 0
%define buildslirp 0
%define buildipalloc 0
%define buildbcrelay 1
%define buildpnsmode 0

Summary:	PoPToP Linux VPN server 
Name:		pptpd-server
Version:	1.4.0
Release:	1.git.1
License:	GPL
Group:		Networking/Other
Source0:	https://sourceforge.net/code-snapshots/git/p/po/poptop/git.git/poptop-git-%{commit}.zip?/%{realname}-%{commit}.zip
Source1:	%{realname}-init
URL:		http://poptop.sourceforge.net/
BuildRequires:	ppp-devel
Provides:	%{realname} = %{EVRD}
Provides:	poptop = %{EVRD}
Requires:	ppp
Requires:	tcp_wrappers
Requires(post):	rpm-helper
Requires(preun):	rpm-helper

%description
PoPToP is the PPTP server solution for Linux (ports exist for Solaris
2.6, OpenBSD and FreeBSD and other). To date no real solution existed
if you wished to include Linux server in PPTP established VPNs. PoPToP
resolves that problem by allowing Linux servers to function seamlessly
in the PPTP VPN environment. This enables administrators to leverage
the considerable benifits of both Microsoft and Linux. The current
release supports Windows 9x/NT/2000 PPTP clients and PPTP Linux
clients. PoPToP is free GNU software.

# allow --with[out] <feature> at rpm command line build
# e.g. --with ipalloc --without libwrap
# --with overrides --without
%{?_without_libwrap: %{expand: %%define buildlibwrap 0}}
%{?_without_bsdppp: %{expand: %%define buildbsdppp 0}}
%{?_without_slirp: %{expand: %%define buildslirp 0}}
%{?_without_ipalloc: %{expand: %%define buildipalloc 0}}
%{?_without_bcrelay: %{expand: %%define buildbcrelay 0}}
%{?_without_pnsmode: %{expand: %%define buildpnsmode 0}}
%{?_with_libwrap: %{expand: %%define buildlibwrap 1}}
%{?_with_bsdppp: %{expand: %%define buildbsdppp 1}}
%{?_with_slirp: %{expand: %%define buildslirp 1}}
%{?_with_ipalloc: %{expand: %%define buildipalloc 1}}
%{?_with_bcrelay: %{expand: %%define buildbcrelay 1}}
%{?_with_pnsmode: %{expand: %%define buildpnsmode 1}}

%files
%defattr(644,root,root,755)
%doc AUTHORS README* TODO ChangeLog* samples
%{_mandir}/man[58]/pptp*
%{_mandir}/man8/bcrelay.8*
%config(noreplace) %{_sysconfdir}/%{realname}.conf
%config(noreplace) %{_sysconfdir}/ppp/options.%{realname}
%defattr(755,root,root,755)
%{_initrddir}/%{realname}
%{_sbindir}/*
%{_bindir}/*
%{_libdir}/pptpd

%post
%_post_service	%{realname}

%preun
%_preun_service	%{realname}

#----------------------------------------------------------------
%prep
%setup -q -n poptop-git-%{commit}

rm -rf `find -name CVS`

%build
buildopts=""
%if %{buildlibwrap}
buildopts="$buildopts --with-libwrap"
%endif
%if %{buildbsdppp}
buildopts="$buildopts --with-bsdppp"
%endif
%if %{buildslirp}
buildopts="$buildopts --with-slirp"
%endif
%if %{buildipalloc}
buildopts="$buildopts --with-pppd-ip-alloc"
%endif
%if %{buildbcrelay}
buildopts="$buildopts --with-bcrelay"
%endif
%if %{buildpnsmode}
buildopts="$buildopts --with-pns-mode"
%endif
%configure $buildopts
echo '#undef VERSION' >> plugins/patchlevel.h
echo '#define VERSION "%{pppver}"' >> plugins/patchlevel.h

perl -pi -e 's|-o root||' plugins/Makefile
perl -pi -e 's|/lib/pptpd|/%{_lib}/pptpd|' plugins/Makefile
perl -pi -e 's|/usr/lib/pptpd|%{_libdir}/pptpd|' pptpctrl.c

%make CFLAGS="%{optflags} -fPIC -fno-builtin -Wall -DSBINDIR='\"%{_sbindir}\"'" 

%install
%makeinstall

install -m0644 samples/%{realname}.conf -D %{buildroot}%{_sysconfdir}/%{realname}.conf
install -m0644 samples/options.%{realname} -D %{buildroot}%{_sysconfdir}/ppp/options.%{realname}
install -m0755 %{SOURCE1} -D %{buildroot}%{_initrddir}/%{realname}
install -m0755 tools/vpnuser -D %{buildroot}%{_bindir}/vpnuser
install -m0755 tools/vpnstats -D %{buildroot}%{_bindir}/vpnstats
install -m0755 tools/vpnstats.pl -D %{buildroot}%{_bindir}/vpnstats.pl
install -m0755 tools/pptp-portslave -D %{buildroot}%{_sbindir}/pptp-portslave



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6636 |21cr|praat-6.0.21-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Praat: doing phonetics, speech analysis and synthesis by computer
Name:		praat
Version:	6.0.21
Release:	3
License:	GPLv2
Group:		Sciences/Other
Url:		http://www.fon.hum.uva.nl/praat/
Source0:	https://github.com/praat/praat/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	lesstif-devel
BuildRequires:	gtk2-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libpulse)
Source1:	praat.png
Source2:	praat_mini.png
Source3:	praat_large.png
Source4:	praat.desktop

%description
According to its authors, praat is "doing phonetics by computer". There are
several speech analysis functionalities available: spectrograms, cochleograms,
and pitch and formant extraction. Articulatory synthesis, as well as synthesis
from pitch, formant, and intensity are also available. Other features are
segmentation, labelling using the phonetic alphabet, and computation of
statistics.

%prep
%setup -q

%build
ln -fs makefiles/makefile.defs.linux.pulse makefile.defs
%make

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/{applications,icons}
mkdir -p %{buildroot}/%{_datadir}/icons/{mini,large}

# the application itself
cp -vf ./praat %{buildroot}/usr/bin/

# icons provided by antonino mingoia from www.ozzpot.com
cp -vf %{SOURCE1} %{buildroot}/%{_datadir}/icons/praat.png
cp -vf %{SOURCE2} %{buildroot}/%{_datadir}/icons/mini/praat.png
cp -vf %{SOURCE3} %{buildroot}/%{_datadir}/icons/large/praat.png

# our own desktop entry
cp -vf %{SOURCE4} %{buildroot}/%{_datadir}/applications/

%files
%{_bindir}/praat
%{_datadir}/icons/*
%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6637 |21cr|pragha-1.3.99.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# To avoid wrong failed dependencies errors on install
%global	__provides_exclude_from %{_libdir}/%{name}/plugins
%global	__requires_exclude libdeviceclient.*

Summary:	Lightweight GTK+ music manager
Name:		pragha
Version:	1.3.99.1
Release:	1
License:	GPLv3+
Group:		Sound
Url:		https://github.com/pragha-music-player/pragha
Source0:	https://github.com/pragha-music-player/pragha/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	exo
BuildRequires:	intltool
BuildRequires:	xfce4-dev-tools
BuildRequires:	alsa-oss-devel
BuildRequires:	liblastfm-devel >= 0.5.0
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(glib-2.0) >= 2.42
BuildRequires:	pkgconfig(grilo-0.3)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.14.0
BuildRequires:	pkgconfig(gudev-1.0) >= 145
BuildRequires:	pkgconfig(gupnp-1.2)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(keybinder-3.0) >= 0.2.0
BuildRequires:	pkgconfig(libcddb) >= 1.3.0
BuildRequires:	pkgconfig(libcdio) >= 0.80
BuildRequires:	pkgconfig(libcdio_paranoia) >= 0.90
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libglyr) >= 1.0.1
BuildRequires:	pkgconfig(libmtp) >= 1.1.0
BuildRequires:	pkgconfig(libnotify) >= 0.7.5
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.38
BuildRequires:	pkgconfig(rygel-server-2.6) >= 0.26.0
BuildRequires:	pkgconfig(sqlite3) >= 3.4
BuildRequires:	pkgconfig(taglib) >= 1.8
BuildRequires:	pkgconfig(totem-plparser) >= 2.26
Requires:	gstreamer1.0-plugins-base

%description
Pragha is is a lightweight GTK+ music manager that aims to be fast, bloat-free
and light on memory consumption. It is written completely in C and GTK+.
Pragha is a fork of Consonance Music Manager, discontinued by the original
author.

%files -f %{name}.lang
# FIXME: Add AUTHORS if not empty
%doc ChangeLog FAQ NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}/style/%{name}.css
%{_datadir}/metainfo/*.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/*/apps/%{name}-panel.png
%{_datadir}/icons/hicolor/symbolic/apps/%{name}-panel-symbolic.svg
%{_datadir}/pixmaps/%{name}/
%{_mandir}/man1/%{name}.1.*
%{_libdir}/%{name}/lib%{name}.so
%{_libdir}/%{name}/plugins/acoustid
%{_libdir}/%{name}/plugins/ampache
%{_libdir}/%{name}/plugins/cdrom
#{_libdir}/%%{name}/plugins/devices
%{_libdir}/%{name}/plugins/dlna-renderer
# Still broken in 1.4RC2
#{_libdir}/%%{name}/plugins/dlna
%{_libdir}/%{name}/plugins/keybinder
%{_libdir}/%{name}/plugins/koel
%{_libdir}/%{name}/plugins/gnome-media-keys
%{_libdir}/%{name}/plugins/mpris2
%{_libdir}/%{name}/plugins/mtp
%{_libdir}/%{name}/plugins/notify
%{_libdir}/%{name}/plugins/removable
%{_libdir}/%{name}/plugins/song-info
%{_libdir}/%{name}/plugins/tunein
%{_libdir}/%{name}/plugins/visualizer

#----------------------------------------------------------------------------

%prep
%setup -q


%build
./autogen.sh
# In 1.4RC2 dlna plugin does not build because the header for rygel-server
# searches for gupnp.h in /usr/include/libgupnp and does not find it (it is in /usr/include/gupnp-1.2/libgupnp)
%configure	--disable-libxfce4ui --disable-rygel-server-2.6
%make


%install
%makeinstall_std

# Remove duplicate docs
rm -rf %{buildroot}%{_datadir}/%{name}/doc

# We don't plan to build experimental plugins for now
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_libdir}/pkgconfig

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6638 |21cr|prboom-2.5.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	An enhanced version of DooM - classic 3D shoot-em-up game
Name:		prboom
Version:	2.5.0
Release:	11
License:	GPL
Group:		Games/Arcade
URL:		http://prboom.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/prboom/%{name}-%{version}.tar.bz2
Source1:	%{name}-game-server.sysconfig
Source2:	%{name}-game-server.service
Source3:	doom2-newcaco16.png
Source4:	doom2-newcaco32.png
Source5:	doom2-newcaco48.png
Source6:	%{name}-game-server.wrapper
BuildRequires:	smpeg-devel
BuildRequires:	sed
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(SDL_mixer)
Requires:	TiMidity++
Requires:	doom-iwad

%description
Doom is the classic 3D shoot-em-up game. It must have been one of the best
selling games ever; it totally outclassed any 3D world games that preceded
it, with amazing speed, flexibility, and outstanding gameplay. The specs
to the game were released, and thousands of extra levels were written by
fans of the game; even today new levels are written for Doom faster then
any one person could play them.

-- NOTE : YOU NEED TO DOWNLOAD WAD FILES --
http://www.idsoftware.com/

%files
%doc AUTHORS NEWS README TODO
%doc doc/*.txt doc/README.*
%{_gamesbindir}/%{name}
%dir %{_gamesdatadir}/doom
%{_gamesdatadir}/doom/%{name}.wad
%{_mandir}/man5/*
%{_mandir}/man6/%{name}.6*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/applications/mandriva-%{name}-multiplayer.desktop
%{_iconsdir}/doom2-newcaco.png
%{_miconsdir}/doom2-newcaco.png
%{_liconsdir}/doom2-newcaco.png

#-----------------------------------------------------------------------

%package gl
Summary:	OpenGL version
Group:		Games/Arcade
Requires:	%{name}

%description gl
This package contains the PrBooM binary that runs accelerated through
OpenGL.

%files gl
%{_gamesbindir}/%{name}-gl
%{_datadir}/applications/mandriva-%{name}-gl.desktop
%{_datadir}/applications/mandriva-%{name}-gl-multiplayer.desktop

#-----------------------------------------------------------------------

%package server
Summary:	PrBooM game server
Group:		Games/Arcade
Requires(pre):	rpm-helper
Requires:	%{name}

%description server
This package contains the PrBooM server binary, that is the program 
that passes data between the different players in the game.

%files server
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-game-server
%{_unitdir}/%{name}-game-server*
%{_gamesbindir}/%{name}-game-server*
%{_mandir}/man6/%{name}-game-server*

#-----------------------------------------------------------------------

%prep
%setup -q

%build
%define common_conf_flags --disable-cpu-opt --disable-i386-asm
%configure \
	%{common_conf_flags} \
	--enable-gl
%make
cp src/prboom prboom-gl

make clean

%configure \
	%{common_conf_flags} \
	--disable-cpu-opt
%make

%install
%makeinstall_std
install -m755 prboom-gl %{buildroot}%{_gamesbindir}

# delete unwanted files
rm -fr %{buildroot}%{_datadir}/doc/

#
# Initscript
install -d %{buildroot}%{_sysconfdir}/sysconfig \
	   %{buildroot}%{_unitdir}

cp %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}-game-server
cp %{SOURCE2} %{buildroot}%{_unitdir}/%{name}-game-server.service

sed -i "s|/etc/sysconfig|%{_sysconfdir}/sysconfig| ; s|/usr/games|%{_gamesbindir}|" \
%{buildroot}%{_unitdir}/%{name}-game-server.service

#
# Icons
install -m644 %{SOURCE3} -D %{buildroot}%{_miconsdir}/doom2-newcaco.png
install -m644 %{SOURCE4} -D %{buildroot}%{_iconsdir}/doom2-newcaco.png
install -m644 %{SOURCE5} -D %{buildroot}%{_liconsdir}/doom2-newcaco.png

#
# Wrapper to launch server
install -m755 %{SOURCE6} -D %{buildroot}%{_gamesbindir}/%{name}-game-server.wrapper

#
# Menus

mkdir -p %{buildroot}%{_datadir}/applications/

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Categories=Game;ArcadeGame;
Name=PrBooM
Comment=%{Summary}
Icon=doom2-newcaco
Exec=%{_gamesbindir}/%{name}
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}-multiplayer.desktop
[Desktop Entry]
Type=Application
Categories=Game;ArcadeGame;
Name=PrBooM Multiplayer
Comment=%{Summary}
Icon=doom2-newcaco
Exec=sh -c "%{_gamesbindir}/%{name} -net \`hostname\`"
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}-gl.desktop
[Desktop Entry]
Type=Application
Categories=Game;ArcadeGame;
Name=PrBooM-GL
Comment=%{Summary}
Icon=doom2-newcaco
Exec=%{_gamesbindir}/%{name}-gl
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}-gl-multiplayer.desktop
[Desktop Entry]
Type=Application
Categories=Game;ArcadeGame;
Name=PrBooM-GL Multiplayer
Comment=%{Summary}
Icon=doom2-newcaco
Exec=sh -c "%{_gamesbindir}/%{name}-gl -net \`hostname\`"
EOF


%post server
%systemd_post %{name}-game-server.service

%preun server
%systemd_preun %{name}-game-server.service

%postun server
%systemd_postun_with_restart %{name}-game-server.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6639 |21cr|prboom-plus-2.5.1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define		Werror_cflags %nil

Summary:	Open source port of the DOOM game engine
Name:		prboom-plus
Version:	2.5.1.4
Release:	4
Group:		Games/Arcade
License:	GPLv2+
Url:		http://prboom-plus.sourceforge.net/
Source0:	https://sourceforge.net/projects/prboom-plus/files/prboom-plus/%{version}/%{name}-%{version}.tar.gz
Source2:	clean_source.sh
BuildRequires:	xz
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(vorbis)
Recommends:	freedoom

%description
PrBoom+ is a Doom source port developed from the original PrBoom
project.

prboom is an open-source port of Doom, the classic 3D first-person
shooter game. It totally outclassed any 3D world games that preceded
it, with amazing speed, flexibility, and outstanding gameplay. The
specs to the game were released, and thousands of extra levels were
written by fans of the game; even today new levels are written for
Doom faster then any one person could play them.

The target of the prboom-plus project is to extend the original port
with features that are necessary or useful to the developers and all
those interested in their work. It is worth noting that all changes
introduced in no way break PrBoom's compatibility with the original
Doom/Doom2 engines, and it is possible to be confident this will
never happen in the future since compatibility is as important.

Author(s):
----------
	Andrey "e6y" Budko

%files
%doc NEWS AUTHORS README
%doc doc/MBF.txt doc/MBFFAQ.txt doc/README.compat doc/README.demos doc/boom.txt
%{_docdir}/prboom-plus-%{version}/*
%{_gamesbindir}/*
%{_gamesdatadir}/doom
%{_mandir}/*/*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./bootstrap;
# rpm has its own optimizations, so turn off shipped defaults
%configure	\
	--disable-cpu-opt	\
	--enable-gl		\
	--program-prefix=''	\
	--with-waddir=%{_gamesdatadir}/doom
%make

%install
%makeinstall_std
# Will manually package docs (see %%files)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6640 |21cr|prelude-correlator-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Correlates events from the prelude manager
Name:           prelude-correlator
Version:        5.2.0
Release:        1
License:        GPLv2+
Group:          System/Servers
URL:            https://www.prelude-siem.org/
Source0:        http://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz
Source1:        prelude-correlator.service
BuildRequires:  systemd
BuildRequires:  pkgconfig(libprelude) >= %{version}
BuildRequires:  python3-setuptools
BuildRequires:  python3-devel
Requires:       python3-prelude >= %{version}
Requires:       python3-netaddr
BuildArch:      noarch

%description
Prelude-Correlator allows conducting multi-stream correlations
thanks to a powerful programming language for writing correlation
rules. With any type of alert able to be correlated, event
analysis becomes simpler, quicker and more incisive. This
correlation alert then appears within the Prewikka interface
and indicates the potential target information via the set of
correlation rules.

%files
%license COPYING
%doc AUTHORS NEWS HACKING.README
%dir %{_sysconfdir}/%{name}/
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%dir %{_sysconfdir}/%{name}/rules
%dir %{_sysconfdir}/%{name}/rules/python
%config(noreplace) %{_sysconfdir}/%{name}/rules/python/*.py*
%{_sysconfdir}/%{name}/rules/python/__pycache__
%dir %{_sysconfdir}/%{name}/conf.d
%config %{_sysconfdir}/%{name}/conf.d/README
%{_localstatedir}/lib/%{name}/
%{_unitdir}/%{name}.service
%{_sbindir}/%{name}
%{_sbindir}/%{name}-3
%{_sbindir}/%{name}-%{python3_version}
%{python3_sitelib}/preludecorrelator/
%{python3_sitelib}/prelude_correlator-%{version}-py%{python3_version}.egg-info

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#---------------------------------------------------------------
%prep
%autosetup -p1


%build
%py3_build

%install
install -d -m 0755 %{buildroot}%{_sbindir}
# We have to use this because py3_install do other things and siteconfig.py
# will be not installed
%__python3 setup.py install --root=%{buildroot}
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}-%{python3_version}

ln -s ./%{name}-%{python3_version} %{buildroot}%{_sbindir}/%{name}-3
ln -s ./%{name}-3 %{buildroot}%{_sbindir}/%{name}

# Systemd configuration file
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6641 |21cr|prey-0.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Prey is a lightweight application for tracking your stolen laptop
Name:		prey
Version:	0.6.2
Release:	3
License:	GPLv3+
Group:		Monitoring
Url:		http://preyproject.com/
# Re-pack of Debian package sources because original source URL is dead
Source0:	%{name}-%{version}.tar.bz2
Source1:	prey-config.desktop
Requires:	curl
Requires:	gksu
Requires:	groff
Requires:	imagemagick
Requires:	mpg123
Requires:	perl-IO-Socket-SSL
Requires:	perl-Net-SSLeay
Requires:	pygtk2
Requires:	scrot
Requires:	streamer
Requires:	traceroute
BuildArch:	noarch

%description
Prey is a lightweight application for tracking your stolen laptop.

Prey comprises a shell scripts which calls out on a regular basis
to either a server run by prey project, or a url nominated by 
system administration. A graphical configuration tool is also provided
which is used to maintain the simple config file.

%files
%{_datadir}/%{name}
%{_datadir}/applications/prey-config.desktop
%{_sysconfdir}/cron.d/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/cron.d/
mkdir -p %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/

mv * %{buildroot}%{_datadir}/%{name}/

cat << EOF > %{buildroot}%{_sysconfdir}/cron.d/%{name}
 */20 * * * * root /usr/share/prey/prey.sh > /var/log/prey.log
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6642 |21cr|printer-driver-brlaser-6-3.gitbfaf93.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit bfaf936bf46f7d3a8a993352fbbb9615b4fc532a
%define commit_short %(echo %{commit} | head -c6)

Summary:	Brother laser printer driver
Name:		printer-driver-brlaser
Version:	6
Release:	3.git%{commit_short}.1
Group:		System/Printing
License:	GPLv2+
# https://github.com/pdewacht/brlaser
# See https://github.com/pdewacht/brlaser/issues/145
# https://github.com/ondrejbudai/brlaser
Url:		https://github.com/Owl-Maintain/brlaser
Source0:	https://github.com/Owl-Maintain/brlaser/archive/%{commit}.tar.gz?/brlaser-%{commit}.tar.gz
BuildRequires:	cmake
BuildRequires:	gcc-c++
BuildRequires:	cups-devel
Requires:	cups-filters
Requires:	ghostscript

%description
brlaser is a CUPS driver for Brother laser printers.

Although most Brother printers support a standard printer language
such as PCL or PostScript, not all do. If you have a monochrome
Brother laser printer (or multi-function device) and the other open
source drivers don't work, this one might help.

For a detailed list of supported printers, please refer to
https://github.com/Owl-Maintain/brlaser

%files
%doc README.md
%license COPYING
%{_datadir}/cups/drv/brlaser.drv
%{_prefix}/lib/cups/filter/rastertobrlaser

#----------------------------------------------------------------
%prep
%autosetup -p1 -n brlaser-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6643 |21cr|privoxy-3.0.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define privoxyconf %{_sysconfdir}/%{name}
%define reltype stable

Summary:	Privacy enhancing HTTP proxy
Name:		privoxy
Version:	3.0.33
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.privoxy.org/
Source0:	http://prdownloads.sf.net/ijbswa/%{name}-%{version}-%{reltype}-src.tar.gz
Source2:	privoxy.logrotate
Source4:	%{name}.service
Patch0:		privoxy-3.0.23-mga-mdv-missing-user.filter.patch
BuildRequires:	docbook-dtd31-sgml
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-style-dsssl
BuildRequires:	lynx
BuildRequires:	man
BuildRequires:	pkgconfig(libpcreposix)
BuildRequires:	pkgconfig(zlib)
Requires(post,preun):	rpm-helper
Provides:	junkbuster = %{EVRD}
Provides:	webproxy = %{EVRD}

%description
Privoxy is a web proxy with advanced filtering capabilities for protecting
privacy, filtering web page content, managing cookies, controlling access, and
removing ads, banners, pop-ups and other obnoxious Internet Junk. Privoxy has a
very flexible configuration and can be customized to suit individual needs and
tastes. Privoxy has application for both stand-alone systems and multi-user
networks.

Privoxy was previously called Internet Junkbuster.

To configure privoxy, go to http://config.privoxy.org/

Privoxy proxy is running on port 8118

%files
%doc AUTHORS ChangeLog README  
%doc doc/webserver
%attr (0700,daemon,daemon) /var/log/privoxy
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_sbindir}/*
%{_mandir}/man8/*
%defattr(664,daemon,daemon,755)
%dir %{privoxyconf}
%config(noreplace) %{privoxyconf}/config
%config %{privoxyconf}/default.action
%config(noreplace) %{privoxyconf}/default.filter
%config(noreplace) %{privoxyconf}/templates
%config(noreplace) %{privoxyconf}/match-all.action
%config(noreplace) %{privoxyconf}/trust
%config(noreplace) %{privoxyconf}/user.action
%config(noreplace) %{privoxyconf}/regression-tests.action
%{privoxyconf}/standard.action
%{_unitdir}/%{name}.service

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -n %{name}-%{version}-%{reltype} -q

# privoxy.missing.user.filter.patch
%patch0 -p1
#needed for build
autoreconf

%build
find . -type f -perm 0640 -exec chmod 644 {} \;

%serverbuild
%configure \
	--with-user=daemon \
	--with-group=daemon
%make

%install
mkdir -p %{buildroot}%{_sbindir} \
	  %{buildroot}%{_mandir}/man8 \
	  %{buildroot}/var/log/privoxy \
	  %{buildroot}%{privoxyconf}/templates \
	  %{buildroot}%{_sysconfdir}/logrotate.d

install -m 755 privoxy %{buildroot}%{_sbindir}/privoxy
install -m 644 privoxy.8 %{buildroot}%{_mandir}/man8/privoxy.8

# Install various config files
for i in *.action default.filter trust; do
	install -m 644 $i %{buildroot}%{privoxyconf}/
done
for i in templates/*; do
	install -m 644 $i %{buildroot}%{privoxyconf}/templates/
done
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -d -m 755 %{buildroot}%{_unitdir}
install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service

# verify all file locations, etc. in the config file
# don't start with ^ or commented lines are not replaced
sed -e 's!^confdir.*!confdir /etc/privoxy!g' \
    -e 's!^logdir.*!logdir /var/log/privoxy!g' \
    < config  > %{buildroot}%{privoxyconf}/config

#remove backup files
rm -f doc/privoxy/webserver/user-manual/*.bak

# create compatibility symlink
ln -s match-all.action %{buildroot}/%{privoxyconf}/standard.action

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6644 |21cr|proftpd-1.3.8b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define flag_gss 0
%define flag_vroot 0

%define mod_autohost_version 0.4
%define mod_case_version 0.7
%if %{flag_vroot}
%define mod_vroot_version 0.9.2
%endif
%if %{flag_gss}
%define mod_gss_version 1.3.7
%endif

Summary:	Professional FTP Server
Name:		proftpd
Version:	1.3.8b
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://proftpd.org/
Source0:	https://github.com/proftpd/proftpd/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	proftpd.logrotate
Source2:	proftpd.xinetd
Source3:	proftpd.init
Source4:	proftpd.service
Source5:	basic.conf
Source7:	welcome.msg
Source32:	32_mod_shaper.conf
%if %{flag_gss}
# http://sourceforge.net/projects/gssmod/
Source100:	http://prdownloads.sourceforge.net/gssmod/mod_gss-%{mod_gss_version}.tar.gz
%endif
# from http://www.castaglia.org/proftpd/
Source102:	http://www.castaglia.org/proftpd/modules/proftpd-mod-autohost-%{mod_autohost_version}.tar.gz
Source103:	http://www.castaglia.org/proftpd/modules/proftpd-mod-case-%{mod_case_version}.tar.gz
%if %{flag_vroot}
Source108:	http://www.castaglia.org/proftpd/modules/proftpd-mod-vroot-%{mod_vroot_version}.tar.gz
%endif
Source150:	%{name}-tmpfiles.conf
Source200:	anonymous.conf
Patch0:		proftpd-1.3.4b-mdv-xferstats_logfile_location.diff
Patch2:		proftpd-1.3.4b-mdv-use-system-auth-instead-of-pam_unix.diff
Patch4:		proftpd-1.3.8-mdv-installfix.diff
Patch7:		proftpd-1.3.4b-mdv-change_pam_name.diff
%if %{flag_gss}
Patch40:	proftpd-1.3.4b-mdv-mod_gss-format_not_a_string_literal_and_no_format_arguments.diff
%endif
Requires:	pam >= 0.59
Requires:	setup
Requires(post): systemd
Requires(post):	rpm-helper
Requires(postun):	rpm-helper
Requires(preun):	rpm-helper
Requires(pre):	rpm-helper
BuildRequires:	cap-devel
BuildRequires:	gettext-devel
BuildRequires:	acl-devel
BuildRequires:	attr-devel
BuildRequires:	krb5-devel
BuildRequires:	libtool
BuildRequires:	libtool-devel
BuildRequires:	mysql-devel
BuildRequires:	ncurses-devel
BuildRequires:	openldap-devel
BuildRequires:	openssl-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig
BuildRequires:	postgresql-devel
BuildRequires:	sasl-plug-gssapi
BuildRequires:	sqlite3-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(libmemcached)
BuildRequires:	pcre-devel
#BuildRequires:	pcreposix-devel
Conflicts:	vsftpd
Conflicts:	wu-ftpd
Conflicts:	pure-ftpd
Conflicts:	ncftpd
Conflicts:	anonftp

Obsoletes:	proftpd-mod_time < 1.3.5-1

%description
ProFTPd is an enhanced FTP server with a focus toward simplicity, security, and
ease of configuration.  It features a very Apache-like configuration syntax,
and a highly customizable server infrastructure, including support for multiple
'virtual' FTP servers, anonymous FTP, and permission-based directory
visibility.

This version supports both standalone and xinetd operation.

%files -f %{name}.lang
%doc README* NEWS CREDITS COPYING doc/*
%doc sample-configurations/*
%dir %{_sysconfdir}/proftpd.d
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}-anonymous.conf
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/xinetd.d/%{name}-xinetd
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/ftpusers
%{_initrddir}/%{name}
%{_sbindir}/%{name}
%{_sbindir}/ftpscrub
%{_sbindir}/ftpshut
%{_sbindir}/in.ftpd
%{_sbindir}/in.%{name}
%{_sbindir}/xferstats.holger-preiss
%{_bindir}/ftpasswd
%{_bindir}/ftpcount
%{_bindir}/ftpdctl
%{_bindir}/ftpmail
%{_bindir}/ftpquota
%{_bindir}/ftptop
%{_bindir}/ftpwho
%{_bindir}/prxs
%dir %{_libdir}/%{name}
%dir %{_localstatedir}/ftp
%dir %{_localstatedir}/ftp/pub
%config(noreplace) %{_localstatedir}/ftp/pub/welcome.msg
%{_tmpfilesdir}/%{name}.conf
%dir %{_localstatedir}/log/%{name}
%{_mandir}/man*/*
%{_var}/lib/rpm/filetriggers/proftpd.*

#------------------------------------------------------------------

%package devel
Summary:	Development files for ProFTPD
Group:		Development/C

%description devel
This package contains the development headers for ProFTPD

%files devel
%doc ChangeLog
%{_includedir}/%{name}
%{_libdir}/pkgconfig/*.pc
#------------------------------------------------------------------

%package mod_ctrls_admin
Summary:	Module implementing admin control handlers
Group:		System/Servers
Requires(post): %{name} >= %{EVRD}
Requires(preun): %{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_ctrls_admin
This module implements administrative control actions for the ftpdctl program.

%files mod_ctrls_admin
%doc doc/contrib/mod_ctrls_admin.html
%config(noreplace) %{_sysconfdir}/%{name}.d/10_mod_ctrls_admin.conf
%{_libdir}/%{name}/mod_ctrls_admin.so

#------------------------------------------------------------------

%package mod_ifsession
Summary:	Module supporting conditional per-user/group/class configuration contexts
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_ifsession
Module supporting conditional per-user/group/class configuration contexts

%files mod_ifsession
%doc doc/contrib/mod_ifsession.html
%config(noreplace) %{_sysconfdir}/%{name}.d/99_mod_ifsession.conf
%{_libdir}/%{name}/mod_ifsession.so

#------------------------------------------------------------------

%package mod_ldap
Summary:	LDAP password lookup module for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_ldap
LDAP password lookup module for ProFTPD

%files mod_ldap
%config(noreplace) %{_sysconfdir}/%{name}.d/13_mod_ldap.conf
%{_libdir}/%{name}/mod_ldap.so

#------------------------------------------------------------------

%package mod_quotatab
Summary:	Module for managing FTP byte/file quotas via centralized tables
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-mod_quotatab_driver = %{EVRD}

%description mod_quotatab
Module for managing FTP byte/file quotas via centralized tables

%files mod_quotatab
%doc doc/contrib/mod_quotatab.html
%config(noreplace) %{_sysconfdir}/%{name}.d/16_mod_quotatab.conf
%{_libdir}/%{name}/mod_quotatab.so

#------------------------------------------------------------------

%package mod_quotatab_file
Summary:	Sub-module for managing quota data via file-based tables
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name}-mod_quotatab = %{EVRD}
Provides:	%{name}-mod_quotatab_driver = %{EVRD}

%description mod_quotatab_file
Sub-module for managing quota data via file-based tables

%files mod_quotatab_file
%doc doc/contrib/mod_quotatab_file.html
%config(noreplace) %{_sysconfdir}/%{name}.d/17_mod_quotatab_file.conf
%{_libdir}/%{name}/mod_quotatab_file.so

#------------------------------------------------------------------

%package mod_quotatab_ldap
Summary:	Sub-module for obtaining quota information from an LDAP directory
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name}-mod_quotatab = %{EVRD}
Provides:	%{name}-mod_quotatab_driver = %{EVRD}

%description mod_quotatab_ldap
Sub-module for obtaining quota information from an LDAP directory

%files mod_quotatab_ldap
%doc doc/contrib/mod_quotatab_ldap.html
%config(noreplace) %{_sysconfdir}/%{name}.d/18_mod_quotatab_ldap.conf
%{_libdir}/%{name}/mod_quotatab_ldap.so

#------------------------------------------------------------------

%package mod_quotatab_sql
Summary:	Sub-module for managing quota data via SQL-based tables
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name}-mod_quotatab = %{EVRD}
Provides:	%{name}-mod_quotatab_driver = %{EVRD}

%description mod_quotatab_sql
Sub-module for managing quota data via SQL-based tables

%files mod_quotatab_sql
%doc doc/contrib/mod_quotatab_sql.html
%config(noreplace) %{_sysconfdir}/%{name}.d/19_mod_quotatab_sql.conf
%{_libdir}/%{name}/mod_quotatab_sql.so

#------------------------------------------------------------------

%package mod_quotatab_radius
Summary:	Sub-module for managing quota data via radius
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name}-mod_quotatab = %{EVRD}
Provides:	%{name}-mod_quotatab_driver = %{EVRD}

%description mod_quotatab_radius
Sub-module for managing quota data via radius

%files mod_quotatab_radius
%doc doc/contrib/mod_quotatab_radius.html
%config(noreplace) %{_sysconfdir}/%{name}.d/20_mod_quotatab_radius.conf
%{_libdir}/%{name}/mod_quotatab_radius.so

#------------------------------------------------------------------

%package mod_radius
Summary:	Module for RADIUS authentication and accounting
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_radius
Module for RADIUS authentication and accounting

%files mod_radius
%doc doc/contrib/mod_radius.html
%config(noreplace) %{_sysconfdir}/%{name}.d/20_mod_radius.conf
%{_libdir}/%{name}/mod_radius.so

#------------------------------------------------------------------

%package mod_ratio
Summary:	Support upload/download ratios
Group:		System/Servers
Requires(post): %{name} >= %{EVRD}
Requires(preun): %{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_ratio
Support upload/download ratios

%files mod_ratio
%doc contrib/README.ratio
%config(noreplace) %{_sysconfdir}/%{name}.d/25_mod_ratio.conf
%{_libdir}/%{name}/mod_ratio.so

#------------------------------------------------------------------

%package mod_rewrite
Summary:	Module for rewriting FTP commands
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_rewrite
Module for rewriting FTP commands

%files mod_rewrite
%doc doc/contrib/mod_rewrite.html
%config(noreplace) %{_sysconfdir}/%{name}.d/24_mod_rewrite.conf
%{_libdir}/%{name}/mod_rewrite.so

#------------------------------------------------------------------

%package mod_site_misc
Summary:	Module implementing miscellaneous SITE commands
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_site_misc
Module implementing miscellaneous SITE commands

%files mod_site_misc
%doc doc/contrib/mod_site_misc.html
%config(noreplace) %{_sysconfdir}/%{name}.d/33_mod_site_misc.conf
%{_libdir}/%{name}/mod_site_misc.so

#------------------------------------------------------------------

%package mod_sql
Summary:	SQL frontend
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-mod_sql_driver = %{EVRD}

%description mod_sql
SQL frontend

%files mod_sql
%doc doc/contrib/mod_sql.html
%config(noreplace) %{_sysconfdir}/%{name}.d/12_mod_sql.conf
%{_libdir}/%{name}/mod_sql.so

#------------------------------------------------------------------

%package mod_sql_mysql
Summary:	Support for connecting to MySQL databases
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name}-mod_sql = %{EVRD}
Provides:	%{name}-mod_sql_driver = %{EVRD}

%description mod_sql_mysql
Support for connecting to MySQL databases

%files mod_sql_mysql
%config(noreplace) %{_sysconfdir}/%{name}.d/14_mod_sql_mysql.conf
%{_libdir}/%{name}/mod_sql_mysql.so

#------------------------------------------------------------------

%package mod_sql_postgres
Summary:	Support for connecting to Postgres databases
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name}-mod_sql = %{EVRD}
Provides:	%{name}-mod_sql_driver = %{EVRD}

%description mod_sql_postgres
Support for connecting to Postgres databases

%files mod_sql_postgres
%config(noreplace) %{_sysconfdir}/%{name}.d/15_mod_sql_postgres.conf
%{_libdir}/%{name}/mod_sql_postgres.so

#------------------------------------------------------------------

%package mod_sql_sqlite
Summary:	Support for connecting to SQLite3 databases
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name}-mod_sql = %{EVRD}
Provides:	%{name}-mod_sql_driver = %{EVRD}

%description mod_sql_sqlite
Support for connecting to SQLite3 databases

%files mod_sql_sqlite
%config(noreplace) %{_sysconfdir}/%{name}.d/16_mod_sql_sqlite.conf
%{_libdir}/%{name}/mod_sql_sqlite.so

#------------------------------------------------------------------

%package mod_sql_passwd
Summary:	Various SQL password handlers
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name}-mod_sql = %{EVRD}
Provides:	%{name}-mod_sql_driver = %{EVRD}

%description mod_sql_passwd
Various SQL password handlers

%files mod_sql_passwd
%config(noreplace) %{_sysconfdir}/%{name}.d/17_mod_sql_passwd.conf
%{_libdir}/%{name}/mod_sql_passwd.so

#------------------------------------------------------------------

%package mod_tls
Summary:	An RFC2228 SSL/TLS module for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_tls
An RFC2228 SSL/TLS module for ProFTPD

%files mod_tls
%doc doc/contrib/mod_tls.html
%config(noreplace) %{_sysconfdir}/%{name}.d/11_mod_tls.conf
%{_libdir}/%{name}/mod_tls.so

#------------------------------------------------------------------

%package mod_tls_shmcache
Summary:	A module which provides a shared SSL session cache using SysV shared memory
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-mod_tls = %{EVRD}

%description mod_tls_shmcache
This submodule provides a SysV shared memory-based implementation of an
external SSL session cache for use by the mod_tls module's TLSSessionCache
directive.

%files mod_tls_shmcache
%doc doc/contrib/mod_tls_shmcache.html
%config(noreplace) %{_sysconfdir}/%{name}.d/12_mod_tls_shmcache.conf
%{_libdir}/%{name}/mod_tls_shmcache.so

#------------------------------------------------------------------

%package mod_tls_memcache
Summary:	A module which provides a shared SSL session cache using memcached servers
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-mod_tls = %{EVRD}
Recommends:	memcached

%description mod_tls_memcache
This submodule a memcached-based implementation of an external SSL session
cache for use by the mod_tls module's TLSSessionCache directive.

%files mod_tls_memcache
%doc doc/contrib/mod_tls_memcache.html
%config(noreplace) %{_sysconfdir}/%{name}.d/41_mod_tls_memcache.conf
%{_libdir}/%{name}/mod_tls_memcache.so

#------------------------------------------------------------------

%package mod_autohost
Summary:	An autohost module for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_autohost
For sites that run a large number of <VirtualHost>s for proftpd, it can be
cumbersome to configure them all in the proftpd.conf file. Adding or removing
virtual server configurations require restarting the daemon, as do changes to
one of the server configurations. The daemon also consumes memory for each
server configuration, and the memory footprint for the daemon process can grow
large for large numbers of servers.

The mod_autohost module allows for server configurations to be configured in
individual files, and for those configuration to be used in an "on demand"
fashion. Rather than loading the configurations into memory when the daemon
starts up, the daemon will check the IP address and port being contacted by a
connecting client, check in the filesystem for a mod_autohost configuration
file for that address/port, dynamically parse the configuration, and insert
the configuration into the session's process space. Thus changes to the
configuration are seen whenever a client connects, without requiring a daemon
restart. The memory footprint is reduced because proftpd, via mod_autohost,
only reads and uses the needed configuration.

%files mod_autohost
%doc mod_autohost/mod_autohost.html
%config(noreplace) %{_sysconfdir}/%{name}.d/27_mod_autohost.conf
%{_libdir}/%{name}/mod_autohost.so

#------------------------------------------------------------------

%package mod_case
Summary:	Makes ProFTPD case insensitive
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_case
The mod_case module is designed to help ProFTPD be case-insensitive, for those
sites that may need it (e.g. those that are migrating from a Windows
environment or have mounted Windows filesystems).

mod_case works by performing two checks on the filename used in FTP commands.
First, mod_case will scan the directory to see if there is already a file whose
name exactly matches the given filename. If not, mod_case will scan the
directory again, this time looking for case-insensitive matches. 

%files mod_case
%doc mod_case/mod_case.html
%config(noreplace) %{_sysconfdir}/%{name}.d/28_mod_case.conf
%{_libdir}/%{name}/mod_case.so

#------------------------------------------------------------------
%if %{flag_gss}
%package mod_gss
Summary:	A Kerberos 5 GSS module for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_gss
A Kerberos 5 GSS module for ProFTPD
mod_case.so

%files mod_gss
%doc mod_gss-*/COPYING mod_gss-*/mod_gss.html mod_gss-*/README.mod_gss mod_gss-*/rfc1509.txt mod_gss-*/rfc2228.txt
%config(noreplace) %{_sysconfdir}/%{name}.d/26_mod_gss.conf
%{_libdir}/%{name}/mod_gss.so
%endif
#------------------------------------------------------------------

%package mod_load
Summary:	A module that determines average load for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_load
The code for determining load average on a given system is hairy, to say the
least. Unfortunately, it is necessary to do it this way, as there is no
standard method for extracting such information from the kernel. This module
uses code from GNU's make application, which should function properly. If not,
please contact the author as soon as possible.

%files mod_load
%doc doc/contrib/mod_load.html
%config(noreplace) %{_sysconfdir}/%{name}.d/31_mod_load.conf
%{_libdir}/%{name}/mod_load.so

#------------------------------------------------------------------

%package mod_shaper
Summary:	A shaping module for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_shaper
The mod_shaper module is designed to split overall rates, both download and
upload, for the proftpd daemon among all connected FTP clients, shaping each
session to use only a portion of the overall rate. mod_shaper shapes both
transmitted traffic, e.g. bits being downloaded via the RETR command, and
received traffic, e.g. bits being uploaded via the APPE, STOR, and STOU
commands.

%files mod_shaper
%doc doc/contrib/mod_shaper.html
%config(noreplace) %{_sysconfdir}/%{name}.d/32_mod_shaper.conf
%{_libdir}/%{name}/mod_shaper.so

#------------------------------------------------------------------

%package mod_wrap
Summary:	Provides tcpwrapper-like access control rules for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-mod_wrap_driver = %{EVRD}
Requires:	tcp_wrappers

%description mod_wrap
The mod_wrap package allows the proftpd daemon to provide tcpwrapper-like
access control rules while running in standalone mode. It also allows for those
access rules to be stored in various formats, such as files (e.g.
/etc/hosts.allow and /etc/hosts.deny) or in SQL tables.

The most current version of mod_wrap's submodules supports storage of access
table information in various formats:

 o mod_wrap_file for file-based access tables
 o mod_wrap_sql for SQL-based access tables

%files mod_wrap
%doc doc/contrib/mod_wrap2.html
%config(noreplace) %{_sysconfdir}/%{name}.d/21_mod_wrap2.conf
%{_libdir}/%{name}/mod_wrap2.so

#------------------------------------------------------------------

%package mod_wrap_file
Summary:	A file-specific driver for the mod_wrap module for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Provides:	%{name}-mod_wrap_driver = %{EVRD}

%description mod_wrap_file
This submodule provides the file-specific "driver" for storing IP/DNS-based
access control information in files.

%files mod_wrap_file
%doc doc/contrib/mod_wrap2_file.html
%config(noreplace) %{_sysconfdir}/%{name}.d/22_mod_wrap2_file.conf
%{_libdir}/%{name}/mod_wrap2_file.so


#------------------------------------------------------------------

%package mod_wrap_sql
Summary:	A SQL database driver for the mod_wrap module for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Provides:	%{name}-mod_wrap_driver = %{EVRD}

%description mod_wrap_sql
This submodule provides the SQL database "driver" for storing IP/DNS-based
access control information in SQL tables.

%files mod_wrap_sql
%doc doc/contrib/mod_wrap2_sql.html
%config(noreplace) %{_sysconfdir}/%{name}.d/23_mod_wrap2_sql.conf
%{_libdir}/%{name}/mod_wrap2_sql.so

#------------------------------------------------------------------

%package mod_ban
Summary:	Adds dynamic "ban" lists to ProFTPD
Group:		System/Servers
Requires(post): %{name} >= %{EVRD}
Requires(preun): %{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_ban
The mod_ban module is designed to add dynamic "ban" lists to proftpd. A ban
prevents the banned user, host, or class from logging in to the server; it does
not prevent the banned user, host, or class from connecting to the server.
mod_ban is not a firewall. The module also provides automatic bans that are
triggered based on configurable criteria.

%files mod_ban
%doc doc/contrib/mod_ban.html
%config(noreplace) %{_sysconfdir}/%{name}.d/35_mod_ban.conf
%{_libdir}/%{name}/mod_ban.so

#------------------------------------------------------------------
%if %{flag_vroot}
%package mod_vroot
Summary:	Adds virtual chroot capability to ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_vroot
The purpose of this module to is to implement a virtual chroot capability that
does not require root privileges. The mod_vroot module provides this capability
by using ProFTPD's FS API, available as of 1.2.8rc1.

%files mod_vroot
%doc mod_vroot/mod_vroot.html
%config(noreplace) %{_sysconfdir}/%{name}.d/36_mod_vroot.conf
%{_libdir}/%{name}/mod_vroot.so
%endif
#------------------------------------------------------------------

%package mod_sftp
Summary:	Implements the SSH2 protocol and its SFTP subsystem for ProFTPD
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_sftp
The mod_sftp module implements the SSH2 protocol and its SFTP subsystem, for
secure file transfer over an SSH2 connection. The mod_sftp module supports:

 o Public key authentication
 o Password authentication (e.g. user authentication via mod_sql, mod_ldap,
   mod_auth_file, mod_auth_unix, mod_auth_pam)
 o SCP support
 o Quotas (via the mod_quotatab module)
 o FIPS support (see Usage section)
 o Throttled transfers (via TransferRate, and/or the mod_shaper module)
 o Blacklisted public keys
 o Configurable traffic analysis protection
 o Passphrase-protected host keys 

%files mod_sftp
%doc doc/contrib/mod_sftp.html
%config(noreplace) %{_sysconfdir}/blacklist.dat
%config(noreplace) %{_sysconfdir}/dhparams.pem
%config(noreplace) %{_sysconfdir}/%{name}.d/37_mod_sftp.conf
%{_libdir}/%{name}/mod_sftp.so

#------------------------------------------------------------------

%package mod_sftp_pam
Summary:	A module which provides an SSH2 "keyboard-interactive" driver using PAM
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-mod_sftp >= %{EVRD}

%description mod_sftp_pam
The mod_sftp_pam module provides support for the "SSH Keyboard-Interactive
Authentication" RFC (RFC4256).

%files mod_sftp_pam
%doc doc/contrib/mod_sftp_pam.html
%config(noreplace) %{_sysconfdir}/%{name}.d/38_mod_sftp_pam.conf
%{_libdir}/%{name}/mod_sftp_pam.so

#------------------------------------------------------------------

%package mod_sftp_sql
Summary:	SQL backend module for retrieving authorized keys
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-mod_sftp >= %{EVRD}
Requires:	%{name}-mod_sql >= %{EVRD}

%description mod_sftp_sql
The mod_sftp module for ProFTPD can support different storage formats for its
user- and host-based authorized keys. By default, the mod_sftp module supports
storing authorized keys in flats. This mod_sftp_sql module allows for
authorized SSH keys to be stored in SQL tables.

%files mod_sftp_sql
%doc doc/contrib/mod_sftp_sql.html
%config(noreplace) %{_sysconfdir}/%{name}.d/39_mod_sftp_sql.conf
%{_libdir}/%{name}/mod_sftp_sql.so

#------------------------------------------------------------------

%package mod_memcache
Summary:	A module for managing memcache data
Group:		System/Servers
Requires(post):	%{name} >= %{EVRD}
Requires(preun):	%{name} >= %{EVRD}
Requires:	%{name} >= %{EVRD}

%description mod_memcache
The mod_memcache module enables ProFTPD support for caching data in memcached
servers, using the libmemcached client library.

%files mod_memcache
%doc doc/modules/mod_memcache.html
%config(noreplace) %{_sysconfdir}/%{name}.d/40_mod_memcache.conf
%{_libdir}/%{name}/mod_memcache.so

#------------------------------------------------------------------

%prep
%if %{flag_gss}
%setup -q -n %{name}-%{version} -a100 -a102 -a103 -a108
%else
%setup -q -n %{name}-%{version} -a102 -a103
%endif
%patch0 -p0 -b .logfile_location
%patch2 -p0 -b .pam
%patch4 -p1 -b .installfix
%patch7 -p0 -b .change_pam_name
%if %{flag_gss}
pushd mod_gss-%{mod_gss_version}
%patch40 -p1 -b .format_not_a_string_literal_and_no_format_arguments
popd
%endif

# ours config
mkdir -p %{_vendor}
install -m0644 %{SOURCE1} %{_vendor}/proftpd.logrotate
install -m0644 %{SOURCE2} %{_vendor}/proftpd.xinetd
install -m0644 %{SOURCE3} %{_vendor}/proftpd.init
install -m0644 %{SOURCE4} %{_vendor}/proftpd.service
install -m0644 %{SOURCE5} %{_vendor}/basic.conf
install -m0644 %{SOURCE7} %{_vendor}/welcome.msg
install -m0644 %{SOURCE32} %{_vendor}/32_mod_shaper.conf

# lib64 fix
perl -pi -e "s|/usr/lib|%{_libdir}|g" %{_vendor}/basic.conf

# fix includes, instead of a patch
perl -pi -e "s|\<mysql\.h\>|\<mysql\/mysql\.h\>|g" contrib/mod_sql_mysql.c


%build

%serverbuild

export CFLAGS="$CFLAGS -DLDAP_DEPRECATED -DUSE_LDAP_TLS -DHAVE_OPENSSL"

%if %{flag_gss}
pushd mod_gss-%{mod_gss_version}
perl -pi -e "s|<gssapi.h>|<gssapi/gssapi.h>|" configure*
perl -pi -e "s|NULL,code|kc,code|" *.in

%configure \
	--disable-static

# Workaround a missing dcl in kerberos...
cat >> mod_gss.h <<EOF
#ifndef GSS_C_AF_INET6
#define GSS_C_AF_INET6 24
#endif
EOF
popd
%endif

pushd contrib/mod_load
%configure
popd

pushd contrib/mod_wrap2
%configure
popd

# put extra modules in place 
for i in `find mod_* -type f -name "*.c"` `find mod_* -type f -name "*.h"`; do
    cp $i contrib/
done


%configure \
	--libexecdir=%{_libdir}/%{name} \
	--enable-auth-pam \
	--enable-cap \
	--disable-facl \
	--enable-dso \
	--enable-nls \
	--enable-openssl \
	--with-lastlog=/var/log/lastlog \
	--enable-ipv6 \
	--enable-shadow \
	--enable-ctrls \
%if %{flag_gss}
	--with-shared="mod_gss" \
%endif
%if %{flag_vroot}
	--with-shared="mod_vroot" \
%endif
	--with-shared="mod_ratio:mod_tls:mod_tls_shmcache:mod_radius:mod_ldap:mod_sql:mod_sql_mysql:mod_sql_postgres:mod_sql_sqlite:mod_sql_passwd:mod_rewrite:mod_load:mod_ctrls_admin:mod_quotatab:mod_quotatab_file:mod_quotatab_ldap:mod_quotatab_sql:mod_quotatab_radius:mod_site_misc:mod_wrap2:mod_wrap2_file:mod_wrap2_sql:mod_autohost:mod_case:mod_shaper:mod_ban:mod_sftp:mod_sftp_pam:mod_sftp_sql:mod_ifsession:mod_memcache:mod_tls_memcache" \
	--with-modules="mod_readme:mod_auth_pam" \
	--disable-strip \
	--enable-pcre


# libcap hack
perl -pi -e "s|/lib/libcap|/blabla|g" Make.rules
echo "#define HAVE_LINUX_CAPABILITY_H 1" >> config.h

%make


%install
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_libdir}/%{name}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/%{name}.d
install -d %{buildroot}%{_sysconfdir}/pam.d
install -d %{buildroot}%{_sysconfdir}/xinetd.d
install -d %{buildroot}%{_localstatedir}/ftp/pub
install -d %{buildroot}%{_localstatedir}/log/%{name}
install -D -p -m 0644 %{SOURCE150} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%makeinstall \
	LIBEXECDIR=%{buildroot}%{_libdir}/%{name} \
	SHARED_MODULE_DIRS="" \
	pkgconfigdir=%{buildroot}%{_libdir}/pkgconfig

# fix borked pkgconfig file
perl -pi -e "s|^prefix.*|prefix=%{_prefix}|g" %{buildroot}%{_libdir}/pkgconfig/*.pc
perl -pi -e "s|/lib/|/%{_lib}/|g" %{buildroot}%{_libdir}/pkgconfig/*.pc

%makeinstall -C contrib/mod_wrap2 LIBEXECDIR=%{buildroot}%{_libdir}/%{name}
%makeinstall -C contrib/mod_load LIBEXECDIR=%{buildroot}%{_libdir}/%{name}
%makeinstall -C contrib/mod_sftp LIBEXECDIR=%{buildroot}%{_libdir}/%{name}

install -m0644 contrib/dist/rpm/ftp.pamd %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m0755 contrib/xferstats.holger-preiss %{buildroot}%{_sbindir}

install -m0644 %{_vendor}/proftpd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -m0644 %{_vendor}/proftpd.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/%{name}-xinetd
install -m0755 %{_vendor}/proftpd.init %{buildroot}%{_initrddir}/%{name}
install -m0644 %{_vendor}/basic.conf %{buildroot}%{_sysconfdir}/%{name}.conf
install -m0644 %{_vendor}/welcome.msg %{buildroot}%{_localstatedir}/ftp/pub/welcome.msg

install -m0644 %{SOURCE200} %{buildroot}%{_sysconfdir}/proftpd-anonymous.conf

ln -snf %{name} %{buildroot}%{_sbindir}/in.%{name}
ln -snf %{name} %{buildroot}%{_sbindir}/in.ftpd

# config
echo "LoadModule mod_ctrls_admin.c" > %{buildroot}%{_sysconfdir}/%{name}.d/10_mod_ctrls_admin.conf
echo "LoadModule mod_tls.c" > %{buildroot}%{_sysconfdir}/%{name}.d/11_mod_tls.conf
echo "LoadModule mod_tls_shmcache.c" > %{buildroot}%{_sysconfdir}/%{name}.d/12_mod_tls_shmcache.conf
echo "LoadModule mod_sql.c" > %{buildroot}%{_sysconfdir}/%{name}.d/12_mod_sql.conf
echo "LoadModule mod_ldap.c" > %{buildroot}%{_sysconfdir}/%{name}.d/13_mod_ldap.conf
echo "LoadModule mod_sql_mysql.c" > %{buildroot}%{_sysconfdir}/%{name}.d/14_mod_sql_mysql.conf
echo "LoadModule mod_sql_postgres.c" > %{buildroot}%{_sysconfdir}/%{name}.d/15_mod_sql_postgres.conf
echo "LoadModule mod_sql_sqlite.c" > %{buildroot}%{_sysconfdir}/%{name}.d/16_mod_sql_sqlite.conf
echo "LoadModule mod_sql_passwd.c" > %{buildroot}%{_sysconfdir}/%{name}.d/17_mod_sql_passwd.conf
echo "LoadModule mod_quotatab.c" > %{buildroot}%{_sysconfdir}/%{name}.d/16_mod_quotatab.conf
echo "LoadModule mod_quotatab_file.c" > %{buildroot}%{_sysconfdir}/%{name}.d/17_mod_quotatab_file.conf
echo "LoadModule mod_quotatab_ldap.c" > %{buildroot}%{_sysconfdir}/%{name}.d/18_mod_quotatab_ldap.conf
echo "LoadModule mod_quotatab_sql.c" > %{buildroot}%{_sysconfdir}/%{name}.d/19_mod_quotatab_sql.conf
echo "LoadModule mod_quotatab_radius.c" > %{buildroot}%{_sysconfdir}/%{name}.d/20_mod_quotatab_radius.conf
echo "LoadModule mod_radius.c" > %{buildroot}%{_sysconfdir}/%{name}.d/20_mod_radius.conf
echo "LoadModule mod_wrap2.c" > %{buildroot}%{_sysconfdir}/%{name}.d/21_mod_wrap2.conf
echo "LoadModule mod_wrap2_file.c" > %{buildroot}%{_sysconfdir}/%{name}.d/22_mod_wrap2_file.conf
echo "LoadModule mod_wrap2_sql.c" > %{buildroot}%{_sysconfdir}/%{name}.d/23_mod_wrap2_sql.conf
echo "LoadModule mod_rewrite.c" > %{buildroot}%{_sysconfdir}/%{name}.d/24_mod_rewrite.conf
echo "LoadModule mod_ratio.c" > %{buildroot}%{_sysconfdir}/%{name}.d/25_mod_ratio.conf
%if %{flag_gss}
echo "LoadModule mod_gss.c" > %{buildroot}%{_sysconfdir}/%{name}.d/26_mod_gss.conf
%endif
echo "LoadModule mod_autohost.c" > %{buildroot}%{_sysconfdir}/%{name}.d/27_mod_autohost.conf
echo "LoadModule mod_case.c" > %{buildroot}%{_sysconfdir}/%{name}.d/28_mod_case.conf
echo "LoadModule mod_load.c" > %{buildroot}%{_sysconfdir}/%{name}.d/31_mod_load.conf
install -m0644 %{_vendor}/32_mod_shaper.conf %{buildroot}%{_sysconfdir}/%{name}.d/32_mod_shaper.conf
echo "LoadModule mod_site_misc.c" > %{buildroot}%{_sysconfdir}/%{name}.d/33_mod_site_misc.conf
echo "LoadModule mod_ban.c" > %{buildroot}%{_sysconfdir}/%{name}.d/35_mod_ban.conf
%if %{flag_vroot}
echo "LoadModule mod_vroot.c" > %{buildroot}%{_sysconfdir}/%{name}.d/36_mod_vroot.conf
%endif
echo "LoadModule mod_sftp.c" > %{buildroot}%{_sysconfdir}/%{name}.d/37_mod_sftp.conf
echo "LoadModule mod_sftp_pam.c" > %{buildroot}%{_sysconfdir}/%{name}.d/38_mod_sftp_pam.conf
echo "LoadModule mod_sftp_sql.c" > %{buildroot}%{_sysconfdir}/%{name}.d/39_mod_sftp_sql.conf
echo "LoadModule mod_memcache.c" > %{buildroot}%{_sysconfdir}/%{name}.d/40_mod_memcache.conf
echo "LoadModule mod_tls_memcache.c" > %{buildroot}%{_sysconfdir}/%{name}.d/41_mod_tls_memcache.conf

cat > %{buildroot}%{_sysconfdir}/%{name}.d/99_mod_ifsession.conf << EOF
# keep this module the last one
LoadModule mod_ifsession.c
EOF

# automatic reloading for new plugins
install -d %{buildroot}%{_var}/lib/rpm/filetriggers
cat > %{buildroot}%{_var}/lib/rpm/filetriggers/%{name}.filter << EOF
^.%{_sysconfdir}/proftpd.d/.*\.conf$
EOF
cat > %{buildroot}%{_var}/lib/rpm/filetriggers/%{name}.script << EOF
#!/bin/sh
systemctl try-restart proftpd.service
EOF
chmod 755 %{buildroot}%{_var}/lib/rpm/filetriggers/%{name}.script


%find_lang %{name}

# cleanup
find %{buildroot} -name '*.la' -delete
find %{buildroot} -name '*.a' -delete
rm -f contrib/README.mod_sql contrib/README.linux-privs

cat > %{buildroot}%{_sysconfdir}/ftpusers << EOF
root
bin
daemon
adm
lp
sync
shutdown
halt
mail
news
uucp
operator
games
nobody
EOF

%post
%tmpfiles_create %{name}
%_post_service %{name}

%pre
%_pre_useradd ftp /var/ftp /bin/false

%postun
%_postun_userdel ftp

%preun
%_preun_service %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6645 |21cr|project-builder-0.14.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# $Id$
#
%define perlvendorlib %(eval "`%{__perl} -V:installvendorlib`"; echo $installvendorlib)
%define srcname project-builder

Summary:	Project Builder helps providing multi-OSes Continuous Packaging
Summary(fr):	Project Builder ou pb produit des paquets pour diverses distributions
Name:		project-builder
Version:	0.14.1
Release:	3
License:	GPL
Group:		System/Configuration/Packaging
Url:		http://trac.project-builder.org
Source:		ftp://ftp.project-builder.org/src/%{name}-%{version}.tar.gz
BuildRequires: perl-devel
Requires:	perl >= 5.8.4
Requires:	perl-Date-Manip
Requires:	perl-ProjectBuilder >= 0.10.1
Requires:	rpm-build
BuildArch:	noarch

%description
ProjectBuilder aka pb helps producing packages
for multiple OSes (Linux distributions, Solaris, ...).
It does that by minimizing
the duplication of information required and
a set a very simple configuration files.
It implements a Continuous Packaging approach.

%prep
%setup -q

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor destdir=%{buildroot}
make

%install
%makeinstall_std
find %{buildroot} -type f -name perllocal.pod -o -name .packlist -o -name '*.bs' -a -size 0 | xargs rm -f
find %{buildroot} -type d -depth | xargs rmdir --ignore-fail-on-non-empty

%check
make test

%files
%doc NEWS AUTHORS
%doc INSTALL COPYING README

%{perlvendorlib}/*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6646 |21cr|prometheus-2.52.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Monitoring system
Name:		prometheus
Version:	2.52.0
Release:	2
License:	ASL 2.0
Group:		Monitoring
Url:		https://prometheus.io
Source0:	https://github.com/prometheus/prometheus/archive/v%{version}/%{name}-%{version}.tar.gz
# make it with go mod vendor
Source1:	vendor.tar.gz
# cd web/ui && npm install
# gzip node_modules directory
Source2:	node_modules.tar.gz
Source3:	react-17.0.60.tgz
# we use system promu
Patch0:		prometheus-2.45.3-promu.patch
BuildRequires:	go >= 1.11
BuildRequires:	yarn
BuildRequires:	curl
BuildRequires:	promu
# golang not avail for this arch
ExcludeArch:	%{e2k} %{riscv}

%description
Prometheus, a Cloud Native Computing Foundation project,
is a systems and service monitoring system. It collects
metrics from configured targets at given intervals,
evaluates rule expressions, displays the results,
and can trigger alerts when specified conditions are
observed.

The features that distinguish Prometheus from other
metrics and monitoring systems are:

 - A multi-dimensional data model (time series defined
by metric name and set of key/value dimensions)
 - PromQL, a powerful and flexible query language to
leverage this dimensionality
 - No dependency on distributed storage; single server
nodes are autonomous
 - An HTTP pull model for time series collection
 - Pushing time series is supported via an intermediary
gateway for batch jobs
 - Targets are discovered via service discovery or static
configuration
 - Multiple modes of graphing and dashboarding support
 - Support for hierarchical and horizontal federation

%files
%doc README.md LICENSE docs
%{_bindir}/%{name}

#------------------------------------------------------------

%package -n promtool
Summary:	Prometheus tool
Group:		Monitoring

%description -n promtool
Prometheus tool.

%files -n promtool
%doc LICENSE
%{_bindir}/promtool

#------------------------------------------------------------
%prep
%setup -q -a1 -a2 -a3
%apply_patches

mv ./node_modules ./web/ui/
#mkdir ./web/ui/static/react
#cp -r react*/* ./web/ui/static/react/
mkdir -p ./web/ui/react-app/node_modules/@types/react/
cp -r react*/* ./web/ui/react-app/node_modules/@types/react/

%build
make build

%install
install -Dm0755 %{name}  %{buildroot}%{_bindir}/%{name}
install -Dm0755 promtool %{buildroot}%{_bindir}/promtool


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6647 |21cr|promu-0.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug_package %nil

Name:		promu
Version:	0.17.0
Release:	1
Summary:	Prometheus Utility Tool 
Group:		Development/Other
License:	Apache-2.0
URL:		https://prometheus.io
Source0:	https://github.com/prometheus/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
# create with 'go mod vendor' and tar.gz vendor directory
Source1:	vendor.tar.gz
BuildRequires:	go >= 1.11
BuildRequires:	upx
# golang not avail for this arch
ExcludeArch:	%{e2k} %{riscv}

%description
Prometheus Alertmanager

%prep
%setup -q -a1

%build
make build
upx %{name}-%{version}

%install
install -Dm0755 %{name}-%{version} %{buildroot}%{_bindir}/%{name}

%files
%doc README.md LICENSE
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6648 |21cr|Propaganda-1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Desktop Enhancements For Linux
Name:		Propaganda
Version:	1
Release:	21
License:	GPL
Group:		Graphical desktop/Other
Url:		http://propaganda.system12.com/
Source0:	Propaganda-EVERYTHING.tar.bz2
Source1:	Desktop-Propaganda
Source2:	Propaganda-Vol13.tar.bz2
Source3:	Propaganda-Vol14.tar.bz2
BuildRequires:	findutils
BuildArch:	noarch

%description
Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol1
Summary:	Propaganda Volume 1 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol1
This is Volume 1 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol2
Summary:	Propaganda Volume 2 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol2
This is Volume 2 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol3
Summary:	Propaganda Volume 3 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol3
This is Volume 3 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol4
Summary:	Propaganda Volume 4 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol4
This is Volume 4 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol5
Summary:	Propaganda Volume 5 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol5
This is Volume 5 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol6
Summary:	Propaganda Volume 6 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol6
This is Volume 6 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol7
Summary:	Propaganda Volume 7 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol7
This is Volume 7 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol8
Summary:	Propaganda Volume 8 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol8
This is Volume 8 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol9
Summary:	Propaganda Volume 9 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol9
This is Volume 9 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol10
Summary:	Propaganda Volume 10 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol10
This is Volume 10 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol11
Summary:	Propaganda Volume 11 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol11
This is Volume 11 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol12
Summary:	Propaganda Volume 12 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol12
This is Volume 12 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol13
Summary:	Propaganda Volume 13 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol13
This is Volume 13 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package Vol14
Summary:	Propaganda Volume 14 - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description Vol14
This is Volume 14 of Propaganda Collection.

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%package For-E
Summary:	Propaganda For E - Desktop Enhancements For Linux
Group:		Graphical desktop/Other

%description For-E
This is Volume "For-E" (Enlightenment) of Propaganda Collection. Althought
is name is "For-E", you can use it for another Window Mangager (of course).

Propaganda, at its core, is basically a collection of "seamless tiles"..
Graphics which are drawn in such a way that they do not appear to repeat
at the edges. All the graphics for Propaganda are drawn with GIMP, an
excellent paint program also made available under the GNU GPL. Propaganda
tiles are painted in a wide variety of styles, textures and sizes, making
them ideal for use in 3D applications, or simply as desktop wallpaper.

%prep
%setup -q -c -n %{name}-1 -a 0 -a 2 -a 3

cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol1/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol2/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol3/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol4/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol5/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol6/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol7/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol8/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol9/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol10/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol11/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol12/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol13/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-Vol14/.directory
cp %{SOURCE1} $RPM_BUILD_DIR/%{name}-1/Propaganda-For-E/.directory


%install
mkdir -p %{buildroot}%{_datadir}/wallpapers
cp -ar $RPM_BUILD_DIR/%{name}-1/Propaganda* %{buildroot}%{_datadir}/wallpapers
find %{buildroot}%{_datadir}/wallpapers -type f -not \
	\( -name .directory -or -iname \*.html -or -iname \*.JPG \) | xargs rm

%files Vol1
%{_datadir}/wallpapers/%{name}-Vol1
%doc README README-PROPAGANDA COPYING %{name}-Vol1/script.perl

%files Vol2
%{_datadir}/wallpapers/%{name}-Vol2
%doc README README-PROPAGANDA COPYING %{name}-Vol2/script.perl

%files Vol3
%{_datadir}/wallpapers/%{name}-Vol3
%doc README README-PROPAGANDA COPYING %{name}-Vol3/script.perl

%files Vol4
%{_datadir}/wallpapers/%{name}-Vol4
%doc README README-PROPAGANDA COPYING %{name}-Vol4/script.perl

%files Vol5
%{_datadir}/wallpapers/%{name}-Vol5
%doc README README-PROPAGANDA COPYING %{name}-Vol5/script.perl

%files Vol6
%{_datadir}/wallpapers/%{name}-Vol6
%doc README README-PROPAGANDA COPYING %{name}-Vol6/script.perl

%files Vol7
%{_datadir}/wallpapers/%{name}-Vol7
%doc README README-PROPAGANDA COPYING %{name}-Vol7/script.perl

%files Vol8
%{_datadir}/wallpapers/%{name}-Vol8
%doc README README-PROPAGANDA COPYING %{name}-Vol8/script.perl

%files Vol9
%{_datadir}/wallpapers/%{name}-Vol9
%doc README README-PROPAGANDA COPYING %{name}-Vol9/script.perl

%files Vol10
%{_datadir}/wallpapers/%{name}-Vol10
%doc README README-PROPAGANDA COPYING %{name}-Vol10/script.perl

%files Vol11
%{_datadir}/wallpapers/%{name}-Vol11
%doc README README-PROPAGANDA COPYING %{name}-Vol11/script.perl

%files Vol12
%{_datadir}/wallpapers/%{name}-Vol12
%doc README README-PROPAGANDA COPYING %{name}-Vol12/script.perl

%files Vol13
%{_datadir}/wallpapers/%{name}-Vol13
%doc README README-PROPAGANDA COPYING %{name}-Vol13/script.perl

%files Vol14
%{_datadir}/wallpapers/%{name}-Vol14
%doc README README-PROPAGANDA COPYING %{name}-Vol14/script.perl

%files For-E
%{_datadir}/wallpapers/%{name}-For-E
%doc README README-PROPAGANDA COPYING %{name}-For-E/script.perl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6649 |21cr|properties-cpp-0.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define devname %mklibname properties-cpp -d

Name: properties-cpp
Version: 0.0.1
Release: 1
Source0: %{name}-%{version}.tar.xz
# https://git.alpinelinux.org/aports/tree/community/properties-cpp?h=master
Patch0: cmake-cleanup.patch
Summary: C++11 implementation of properties and signals
URL: http://launchpad.net/properties-cpp
License: LGPLv3
Group: System/Libraries
BuildRequires: cmake
BuildRequires: pkgconfig(gmock)
BuildRequires: doxygen

%description
process-cpp is a simple header-only implementation of properties and
signals. It is meant to be used for developing low-level system
services. Its main features include:

 - Thread-safe signal invocation and observer mgmt.
 - The ability to dispatch signal invocations via arbitrary event loops.
 - Typed properties with an in-place update mechanism that avoids unneccessary
   deep copies.
 - Well tested and documented.

#-----------------------------------------------------------------------

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/core
%{_libdir}/pkgconfig/properties-cpp.pc
%doc %{_docdir}/properties-cpp

#-----------------------------------------------------------------------

%prep
%setup -qn %{name}
%autopatch -p1

%cmake

%build
%cmake

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6650 |21cr|prosody-0.11.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Light Lua Jabber/XMPP server
Name:		prosody
Version:	0.11.10
Release:	1
License:	MIT
Group:		System/Servers
URL:		http://prosody.im
Source0:	http://prosody.im/downloads/source/%{name}-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.sysconfig
Source3:	%{name}.config
Source5:	prosody.tmpfilesd
Source6:	prosody.sysusers.conf
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	idn-devel
Requires(pre):	/bin/systemd-sysusers
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires(postun):	rpm-helper
Requires:	lua5.3
Recommends:	lua5.3-luasec

%description
Prosody is an exciting new server for Jabber/XMPP written in Lua. It aims to 
be easy to use, and light on resources. For developers it aims to give a 
flexible system on which to rapidly develop added functionality, or 
prototype new protocols

%prep
%setup -q

%build
./configure \
    --prefix=/usr \
    --runwith=%{_bindir}/lua5.3
%make

%install
%makeinstall_std


mkdir -p %{buildroot}%{_unitdir}
cat %{SOURCE1} > %{buildroot}%{_unitdir}/%{name}.service

install -D -p -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
cat %{SOURCE2} > %{buildroot}%{_sysconfdir}/sysconfig/%{name}

cat %{SOURCE3} > %{buildroot}%{_sysconfdir}/%{name}/%{name}.cfg.lua 

mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}

# install sysuser config
install -d %{buildroot}/%{_sysusersdir}
install -m0644 %{SOURCE6} %{buildroot}/%{_sysusersdir}/prosody.conf

%pre
%sysusers_create_package prosody %{SOURCE6}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}
%systemd_postun_with_restart %{name}.service

%files
%doc doc/*
%config(noreplace) %{_sysconfdir}/%{name}/
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(755,root,root) %config(noreplace) %{_unitdir}/%{name}.service
%attr(700,%{name},%{name}) %{_localstatedir}/lib/%{name}
%{_bindir}/%{name}ctl
%{_bindir}/%{name}
%{_prefix}/lib/%{name}
%{_mandir}/man1/%{name}ctl.*
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/prosody.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6651 |21cr|protontricks-1.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Winetricks wrapper for Valve's Proton games
Name:		protontricks
Version:	1.12.0
Release:	1
License:	GPLv3+
Group:		Games/Other
Url:		https://github.com/Matoking/protontricks
# Take the sources from PyPI archive: the ones from github won't work
Source0:	%{pypi_source %{name}}
BuildRequires:	git
BuildRequires:	python3dist(pip)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-scm)
BuildRequires:	python3dist(vdf)
BuildRequires:	pkgconfig(python3)
Requires:	winetricks
Requires:	yad
Requires:	python3dist(vdf)
# This is really a Requires, but Steam is in Non-free
Recommends:	steam
BuildArch:	noarch
ExclusiveArch:	%{x86_64} %{ix86}

%description
A simple wrapper that does winetricks things for Steam Play/Proton enabled
games. Since this is a wrapper, all commands that work for Winetricks will
likely work for %{name} as well.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}*
%{_datadir}/applications/*.desktop
%{py3_puresitedir}/%{name}/*
%{py3_puresitedir}/%{name}-*-py*.*.egg-info

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%py3_build


%install
%py3_install

# Fix perms
chmod -x %{buildroot}%{py3_puresitedir}/%{name}/cli/main.py
chmod +x %{buildroot}%{py3_puresitedir}/%{name}/data/scripts/*.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6652 |21cr|protonvpn-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		protonvpn
Version:	1.1
Release:	1
Summary:	ProtonVPN-GUI (Proton VPN Connector)
Group:		System/Configuration/Networking
License:	GPLv3+
URL:		https://github.com/AKotov-dev/protonvpn-gui
Source0:	https://github.com/AKotov-dev/protonvpn-gui/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	protonvpn
Source2:	protonvpn.png
Source3:	protonvpn.desktop
Source4:	protonvpn.policy
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	openvpn
Requires:	systemd
Requires:	polkit
Requires:	unzip
Requires:	fping
Requires:	procps-ng
Requires:	gtk2

%description
Download the archive of vpn configurations from Proton's personal account and upload them to the program

%files
%doc ../README.md
%license ../LICENSE
%{_sysconfdir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}
%{_unitdir}/%{name}.service
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/%{name}.policy

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------
%prep
%setup -n protonvpn-gui-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp etc/%{name}/* %{buildroot}%{_sysconfdir}/%{name}/
cp %{name} %{buildroot}%{_datadir}/%{name}/
cp etc/systemd/system/%{name}.service %{buildroot}%{_unitdir}/
cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp %{SOURCE4} %{buildroot}%{_datadir}/polkit-1/actions

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6653 |21cr|proxychains-3.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 3
%define libname %mklibname %name %major
%define develname %mklibname %name -d 

Name:		proxychains
Version:	3.1
Release:	9
Summary:	This program forces any tcp connection to follow through proxy
License:	GPL
Group:		Networking/Other 
URL:		http://proxychains.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/proxychains/%{name}-%{version}.tar.gz
Patch0:		proxychains-3.1-ld_preload.patch
Patch1:		glibc215.patch
Requires:	%{libname} = %{EVRD}

%package -n %{libname}
Summary:	This program forces any tcp connection to follow through proxy
Group:		System/Libraries
Obsoletes:	%{_lib}proxychains1 < 3.1-5

%package -n %{develname}
Summary:	This program forces any tcp connection to follow through proxy
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description
This program forces any tcp connection made by any given tcp client
to follow through proxy (or proxy chain). It is a kind of proxifier.
It acts like sockscap / permeo / eborder driver ( intercepts TCP calls )
It is FREE.
This version (1.8.x)  supports SOCKS4, SOCKS5 and HTTP CONNECT proxy servers.
Auth-types: socks - "user/pass" , http - "basic".

%description -n %{libname}
This program forces any tcp connection made by any given tcp client
to follow through proxy (or proxy chain). It is a kind of proxifier.
It acts like sockscap / permeo / eborder driver ( intercepts TCP calls )
It is FREE.
This version (1.8.x)  supports SOCKS4, SOCKS5 and HTTP CONNECT proxy servers.
Auth-types: socks - "user/pass" , http - "basic".

%description -n %{develname}
Devel package for proxychains.

%prep
%setup -q 
%patch0 -p1
%patch1 -p1

%build
%configure --disable-static

%make

%install
%makeinstall_std

%files 
%doc README AUTHORS COPYING ChangeLog
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/*

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6654 |21cr|proxychains-ng-4.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname proxychains
%define ver 4

Summary:	ProxyChains this proxying for tor
Name:		proxychains-ng
Version:	4.16
Release:	2
License:	GPLv2+
Group:		Networking/Other
Url:		https://github.com/rofl0r/proxychains-ng
Source0:	https://github.com/rofl0r/proxychains-ng/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source10:	%{name}.rpmlintrc

%description
ProxyChains is a UNIX program, that hooks network-related libc functions
in DYNAMICALLY LINKED programs via a preloaded DLL (dlsym(), LD_PRELOAD)
and redirects the connections through SOCKS4a/5 or HTTP proxies.
It supports TCP only (no UDP/ICMP etc).

The way it works is basically a HACK; so it is possible that it doesn't
work with your program, especially when it's a script, or starts
numerous processes like background daemons or uses dlopen() to load
"modules" (bug in glibc dynlinker).

If your program doesn't work with proxychains, consider using an
iptables based solution instead; this is much more robust.

%files
%doc README COPYING
%config(noreplace) %{_sysconfdir}/%{name}/%{oname}.conf
%{_bindir}/%{oname}%{ver}
%{_bindir}/proxychains4-daemon
%{_libdir}/lib%{oname}%{ver}.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

install -Dm0644 src/%{oname}.conf %{buildroot}%{_sysconfdir}/%{name}/%{oname}.conf

# fix rpmlint error
strip %{buildroot}%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6655 |21cr|proxycheck-0.49a-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		proxycheck
Version:	0.49a
Release:	12
Summary:	A quick open proxy scanner
Epoch:		1
License:	GPL
Group:		Networking/Other
URL:		http://www.corpit.ru/mjt/proxycheck.html
Source0:	http://www.corpit.ru/mjt/proxycheck/%{name}-%{version}.tar.gz
Source1:	%{name}.logrotate.bz2
Requires(pre):	rpm-helper

%description
Proxycheck is a simple tool to quickly check whenever a given host or set of
hosts has open proxy server running. Open proxies of various kinds are (ab)used
nowadays for various evil things like sending mass spam, hacking into your
machine, making denial of service attacks (DoS) and the like. To stop the abuse
of open proxy servers, one need to know whenever any machine runs such service
or not.
This command-line tool, proxycheck, may be used for such purpose. Currently, it
understands 3 types of proxy servers: HTTP proxies that allows you to CONNECT
to any host:port, SOCKS v4 and v5 proxies (www.socks.nec.com), and wingate
"telnet" proxy servers.

%package proxylogger
Summary:	Receiving part of proxycheck
Group:		Networking/Other
Requires:	xinetd
Requires(post,preun):	rpm-helper

%description proxylogger
Proxylogger is a trivial program (invoked from xinetd) that writes out a string
"550 ESMTP_unwelcome [peer.ip.add.ress]" to the network and optionally waits
for a string in form
    [junk]protocol:ip.add.re.ss:port\n
from the remote system.  May be used as a destination for proxycheck program.
All connections (together with the information in the above form, if given) are
optionally logged to a specified file.

To use proxylogger from proxycheck, use a command like:
  proxycheck -c chat::ESMTP_unwelcome -d your.ip.add.ress:25 host-to-be-checked

%prep
%setup -q
bzcat %{SOURCE1} > %{name}.logrotate

%build
./configure
%make CFLAGS="%{optflags}" proxycheck proxylogger

%install

# Makefile lacks install fase
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 755 %{name} proxylogger %{buildroot}%{_bindir}
install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1

install -d -m 755 %{buildroot}%{_sysconfdir}/xinetd.d
cat <<EOF > %{buildroot}%{_sysconfdir}/xinetd.d/proxylogger
# default: off
# description: Proxylogger is the receiving part of proxycheck, \
# to be used from (x)inetd and with -c chat
#

service smtp
{
    disable             = yes
    socket_type         = stream
    wait                = no
    protocol            = tcp
    user                = proxylogger
    group               = proxylogger
    server              = %{_bindir}/proxylogger
    server_args         = -l /var/log/proxylogger/info
}

EOF
install -d -m 755 %{buildroot}%{_var}/log/%{name}

install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 %{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

%pre proxylogger
%_pre_useradd proxylogger /var/log/proxylogger /bin/false

%postun proxylogger
%_postun_userdel proxylogger

%files
%doc CHANGES
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

%files proxylogger
%{_bindir}/proxylogger
%config(noreplace) %{_sysconfdir}/xinetd.d/proxylogger
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(-,proxylogger,proxylogger) %{_var}/log/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6656 |21cr|proxy-connect-1.95-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: proxy-connect
Version: 1.95
Release: 8
Summary: Establish TCP connection using SOCKS4/5 and HTTP tunnel
URL: http://www.taiyo.co.jp/~gotoh/ssh/connect.html
Group: Networking/Other
License: GPL
Source0: connect.c
Source1: connect.html

%description
connect-proxy is a simple relaying command to make TCP network connection
via SOCKS or https proxies.
It is mainly intended to be used as proxy command of OpenSSH.

%prep
rm -rf %name
mkdir %name
cd %name
cp %{SOURCE0} .
cp %{SOURCE1} .

%build
cd %name
gcc -o %name connect.c

%install
cd %name
mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
cp proxy-connect ${RPM_BUILD_ROOT}%{_bindir}
chmod 0755 ${RPM_BUILD_ROOT}%{_bindir}/%name

%clean
[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(-,root,root)
%doc proxy-connect/connect.html
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6657 |21cr|proxytunnel-1.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Proxytunnel SSH to connect through HTTPS proxies
Name:		proxytunnel
Version:	1.9.1
Release:	2
License:	GPLv2+
Group:		Communications
Url:		http://proxytunnel.sourceforge.net/
Source0:	https://github.com/proxytunnel/proxytunnel/archive/%{version}.tar.gz
# Support TLS
# https://github.com/proxytunnel/proxytunnel/pull/9
Patch0:		proxytunnel-1.9.1-tls.patch
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	xmlto
BuildRequires:	pkgconfig(openssl)
Requires:	ssh-clients

%description
Proxytunnel is a program that connects stdin and stdout to an origin
server somewhere in the Internet through an industry standard HTTPS
proxy. This will allow you for example to access SSH servers when you
normally only have http(s) access.

%files
%doc CHANGES CREDITS KNOWN_ISSUES LICENSE.txt README RELNOTES TODO
%{_bindir}/proxytunnel
%{_mandir}/man1/proxytunnel.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%make CFLAGS="%{optflags}"

%install
%makeinstall_std prefix=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6658 |21cr|prozilla-2.0.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A multithreaded download accelerator
Name:		prozilla
Version:	2.0.4
Release:	11
License: 	GPLv2+
Group:		Networking/File transfer
Url:		http://prozilla.genesys.ro/
Source0:	http://prozilla.genesys.ro/downloads/prozilla/tarballs/%{name}-%{version}.tar.bz2
Patch0:		prozilla_download_win.h.patch
BuildRequires:	pkgconfig(ncurses)

%description
ProZilla is a multithreaded download accelerator for Linux which supports
both HTTP and FTP protocols. It makes multiple connections to the server
and downloads the file in portions, thus giving a much better speed rate
than the conventional download programs which use a single connection.
Resuming connections is fully supported and customisable.

%files
%doc AUTHORS ChangeLog CREDITS COPYING NEWS README TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package devel
Summary:	Header files and development files for %{name}
Group:		Networking/File transfer

%description devel
Header files and development files for %{name}

%files devel
%{_includedir}/*
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%configure
%make

%install
%makeinstall_std

# (mpol) remove unwanted locale files
rm -f %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/.mo
[ -f %{buildroot}%{_datadir}/locale/locale.alias ] && rm -f %{buildroot}%{_datadir}/locale/locale.alias

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6659 |21cr|p-run-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary: Runs program, script or commands on large number of hosts in parallel
Name: p-run
Version: 0.1
Release: 11
Source0: %{name}-%{version}.tar.bz2
Patch0:	p-run-Makefile.patch
License: GPLv2
Group: Networking/Remote access
Url: http://www.sorensonfamily.com/~frank/projects/p-run/

BuildRequires: expect-devel

%description
p-run is a utility that runs a program, script, or series of commands on
a large number of hosts in parallel. It simplifies management of machines
in computer labs. It uses ssh, and supports password and key-based 
authentication. p-run uses libexpect, and will run in parallel across as 
many processes as specified. When run on a large number of hosts, its 
parallel nature significantly speeds up administration.

%files
%doc Copying README TODO
%attr(755,root,root) %{_bindir}/*

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
cp -v %name %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6660 |21cr|ps2eps-1.64-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	ps2eps
Summary: 	Converts standard PostScript documents to EPS
Version: 	1.64
Release: 	8

Source:		http://www.telematik.informatik.uni-karlsruhe.de/~bless/%{name}-%{version}.tar.bz2
URL:		http://www.telematik.informatik.uni-karlsruhe.de/~bless/ps2eps.html
License:	GPL
Group:		Publishing

%description
Ps2eps is a tool (written in Perl) to produce Encapsulated PostScript Files
(EPS/EPSF) from usual one-paged Postscript documents. It calculates correct
Bounding Boxes for those EPS files and filters some special postscript
command sequences that can produce erroneous results on printers. EPS files
are often needed for including (scalable) graphics of high quality into
TeX/LaTeX (or even Word) documents.

%prep
%setup -q -n %name

%build
cd src/C
gcc $RPM_OPT_FLAGS -o bbox bbox.c
chmod 755 bbox
										
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot/%_bindir
cp bin/%name %buildroot/%_bindir
cp src/C/bbox %buildroot/%_bindir
mkdir -p %buildroot/%_mandir/man1
cp doc/man/man1/* %buildroot/%_mandir/man1/
bzip2 %buildroot/%_mandir/man1/*

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc *.txt doc/html doc/pdf
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6661 |21cr|psad-2.4.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

# deleted from repo

Summary:	Port Scan Attack Detector (psad) watches for suspect traffic
Name:		psad
Version:	2.4.6
Release:	5
Group:		System/Servers
License:	GPLv2+
URL:		https://www.cipherdyne.org/psad/
Source0:	https://www.cipherdyne.org/psad/download/psad-%{version}.tar.bz2
Source3:	psad.rpmlintrc
Source4:	psad-tmpfiles.conf
# patch to:
# * allow specifying Fedora CFLAGS
# * use system whois
# * set some sensible defaults in /etc/psad/psad.conf
Patch0:		psad-fedora.patch
# https://github.com/mrash/psad/issues/53
Patch1:		psad-issue53.patch
BuildArch:	noarch
Obsoletes:	psad < %{EVRD}
BuildRequires:	perl-generators
BuildRequires:	systemd
# works with system one, but doesn't crash or break without it
Recommends:	%{_bindir}/whois
Recommends:	%{_sbindir}/sendmail.sendmail
Recommends:	/bin/mail
Requires:	%{_bindir}/killall
Requires:	/bin/ps
Requires:	gzip
Requires:	iproute
Requires:	iptables
# The automatic dependency generator doesn't find these
Requires:	perl(Bit::Vector)
Requires:	perl(Carp::Clan)
Requires:	perl(Date::Calc)
Requires:	perl(IPTables::ChainMgr)
Requires:	perl(IPTables::Parse)
Requires:	perl(NetAddr::IP)
Requires:	perl(Storable)
Requires:	perl(Unix::Syslog)
Requires(post):	policycoreutils >= 2.4
Requires(post):	%{_sbindir}/semodule
Requires(postun): %{_sbindir}/semodule

%description
Port Scan Attack Detector (psad) is a lightweight
system daemon written in Perl designed to work with Linux
iptables firewalling code to detect port scans and other suspect traffic.  It
features a set of highly configurable danger thresholds (with sensible
defaults provided), verbose alert messages that include the source,
destination, scanned port range, begin and end times, tcp flags and
corresponding nmap options, reverse DNS info, email and syslog alerting,
automatic blocking of offending ip addresses via dynamic configuration of
iptables rulesets, and passive operating system fingerprinting.  In addition,
psad incorporates many of the tcp, udp, and icmp signatures included in the
snort intrusion detection system (https://www.snort.org) to detect highly
suspect scans for various backdoor programs (e.g. EvilFTP, GirlFriend,
SubSeven), DDoS tools (mstream, shaft), and advanced port scans (syn, fin,
xmas) which are easily leveraged against a machine via nmap.  psad can also
alert on snort signatures that are logged via fwsnort
(https://www.cipherdyne.org/fwsnort/), which makes use of the
iptables string match module to detect application layer signatures.

%files
%license LICENSE
%doc doc/BENCHMARK ChangeLog CREDITS doc/FW_EXAMPLE_RULES README.md doc/README.SYSLOG doc/SCAN_LOG
%{_bindir}/nf2csv
%{_sbindir}/fwcheck_psad
%{_sbindir}/psad
%{_mandir}/man1/nf2csv.1*
%{_mandir}/man8/fwcheck_psad.8*
%{_mandir}/man8/psad.8*
%{_tmpfilesdir}/psad.conf
%{_unitdir}/psad.service
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/logrotate.d
%config(noreplace) %{_sysconfdir}/logrotate.d/psad
%config(noreplace) %{_sysconfdir}/%{name}/psad.conf
%config(noreplace) %{_sysconfdir}/%{name}/signatures
%config(noreplace) %{_sysconfdir}/%{name}/auto_dl
%config(noreplace) %{_sysconfdir}/%{name}/ip_options
%config(noreplace) %{_sysconfdir}/%{name}/snort_rule_dl
%config(noreplace) %{_sysconfdir}/%{name}/posf
%config(noreplace) %{_sysconfdir}/%{name}/pf.os
%config(noreplace) %{_sysconfdir}/%{name}/icmp_types
%config(noreplace) %{_sysconfdir}/%{name}/icmp6_types
%config(noreplace) %{_sysconfdir}/%{name}/protocols
%dir %{_sysconfdir}/%{name}/snort_rules
%config(noreplace) %{_sysconfdir}/%{name}/snort_rules/*
%dir /var/lib/%{name}
%ghost %attr(0700,root,root) /var/lib/%{name}/psadfifo
%dir /var/log/%{name}
%ghost %dir /var/run/%{name}
%ghost %attr(0700,root,root) /var/run/%{name}/psad.cmd

%post
# missing from current SELinux policy (Fedora: #1174309, RHEL7: #1389191)
TMPDIR=$(%{_bindir}/mktemp -d)
cat >> $TMPDIR/psad-rpm.cil << __EOF__
(allow firewalld_t psad_t(dbus (send_msg)))
(allow psad_t firewalld_t(dbus (send_msg)))
(allow psad_t journalctl_exec_t(file (execute execute_no_trans map open read)))
(allow psad_t kernel_t (system (module_request)))
(allow psad_t psad_var_log_t(file (read rename unlink write)))
(allow psad_t self (netlink_tcpdiag_socket (bind create setopt)))
(dontaudit psad_t load_policy_t (dir (getattr search)))
(dontaudit psad_t load_policy_t (file (open read)))
(dontaudit psad_t load_policy_t (lnk_file (read)))
(dontaudit psad_t mandb_t (dir (getattr search)))
(dontaudit psad_t mandb_t (file (open read)))
(dontaudit psad_t radvd_exec_t (file (getattr)))
(dontaudit psad_t rngd_exec_t (file (getattr)))
(dontaudit psad_t rpcd_exec_t (file (getattr)))
(dontaudit psad_t self (capability (dac_override sys_ptrace sys_resource)))
(dontaudit psad_t self (cap_userns (sys_ptrace)))
(dontaudit psad_t sshd_exec_t (file (getattr)))
(dontaudit psad_t syslogd_exec_t (file (getattr)))
(dontaudit psad_t systemd_logind_exec_t (file (getattr)))
(dontaudit psad_t systemd_machined_exec_t (file (getattr)))
(dontaudit psad_t udev_exec_t (file (getattr)))
(dontaudit psad_t virtd_exec_t (file (getattr)))
(dontaudit psad_t xserver_log_t (dir (search)))
__EOF__
%{_sbindir}/semodule -i $TMPDIR/psad-rpm.cil
rm -rf $TMPDIR
%systemd_post psad.service
exit 0

%preun
%systemd_preun psad.service

%postun
%systemd_postun_with_restart psad.service
if [ $1 -eq 0 ]; then
  %{_sbindir}/semodule -r psad-rpm > /dev/null || :
fi

#--------------------------------------------------------------------------
%prep
%autosetup -p1
# remove bundled stuff
rm -r deps/{Bit-Vector,Carp-Clan,Date-Calc,IPTables-ChainMgr,IPTables-Parse,NetAddr-IP,Storable,Unix-Syslog,whois}

%build
echo Nothing to build.

%install
install  -dm755 %{buildroot}{%{_mandir}/man{1,8},%{_sbindir},%{_sysconfdir}/%{name}}
install  -pm755 -t %{buildroot}%{_sbindir} psad
install -Dpm755 fwcheck_psad.pl %{buildroot}%{_sbindir}/fwcheck_psad
install -Dpm755 nf2csv %{buildroot}%{_bindir}/nf2csv
install -Dpm644 misc/logrotate.psad %{buildroot}%{_sysconfdir}/logrotate.d/psad
install  -pm644 -t %{buildroot}%{_sysconfdir}/%{name} \
 auto_dl \
 icmp_types \
 icmp6_types \
 ip_options \
 pf.os \
 posf \
 protocols \
 psad.conf \
 signatures \
 snort_rule_dl \

install -pm644 -t %{buildroot}%{_mandir}/man8 doc/{fwcheck_psad,psad}.8
install -pm644 -t %{buildroot}%{_mandir}/man1 doc/nf2csv.1

cp -pr deps/snort_rules %{buildroot}%{_sysconfdir}/%{name}

install -Dpm644 init-scripts/systemd/psad.service %{buildroot}%{_unitdir}/psad.service
install -Dpm644 %{S:4} %{buildroot}%{_tmpfilesdir}/psad.conf

# upstream's installer creates those as root-accessible only
install  -dm700 %{buildroot}/var/{lib,log,run}/%{name}
touch %{buildroot}/var/lib/%{name}/psadfifo
touch %{buildroot}/var/run/%{name}/psad.cmd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6662 |21cr|pscyr-0.4d-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define texmfdistdir		%{_datadir}/texmf-dist

Name:       pscyr 
Version:    0.4d
Release:    8
License:    PSCyr License
Group:      Publishing
Source0:    ftp://scon155.phys.msu.su/pub/russian/psfonts/0.4d-beta/PSCyr-0.4-beta9-tex.tar.gz
Source1:    ftp://scon155.phys.msu.su/pub/russian/psfonts/0.4d-beta/PSCyr-0.4-beta9-type1.tar.gz
Summary:    PSCyr Type1 Font Collection
URL:        ftp://scon155.phys.msu.su/pub/russian/psfonts/  
BuildArch:  noarch
BuildRequires: texlive 
BuildRequires: mkfontdir, mkfontscale 

%description
PSCyr Type1 Font Collection

%prep
mkdir -p %{name}-%{version}
pushd %{name}-%{version}
  tar -xvxf %{SOURCE0}
  tar -xvxf %{SOURCE1}
popd

%build

%install
export TEXMFMAIN=%{buildroot}/%{texmfdistdir} 
cd %{name}-%{version}
cd PSCyr

#Scalable PSCyr fonts
install -d %buildroot/%_datadir/fonts/type1/pscyr
install -m 0644 fonts/type1/public/pscyr/*.pfb %buildroot/%_datadir/fonts/type1/pscyr/

mkfontdir %buildroot/%_datadir/fonts/pscyr 
mkfontscale %buildroot/%_datadir/fonts/pscyr 

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/pscyr \
    %{buildroot}%_sysconfdir/X11/fontpath.d/type1-pscyr:pri=10

#texmf
mkdir -p $TEXMFMAIN/{tex/latex,fonts/map,fonts/enc,fonts/tfm/public,fonts/vf/public,fonts/type1/public,fonts/afm/public,doc/fonts,dvips}/pscyr
cp dvips/pscyr/* $TEXMFMAIN/dvips/pscyr
mv dvips/pscyr/*.map $TEXMFMAIN/fonts/map/
mv dvips/pscyr/*.enc $TEXMFMAIN/fonts/enc/
mv tex/latex/pscyr/* $TEXMFMAIN/tex/latex/pscyr
mv fonts/tfm/public/pscyr/* $TEXMFMAIN/fonts/tfm/public/pscyr
mv fonts/vf/public/pscyr/* $TEXMFMAIN/fonts/vf/public/pscyr
mv fonts/type1/public/pscyr/* $TEXMFMAIN/fonts/type1/public/pscyr
mv fonts/afm/public/pscyr/* $TEXMFMAIN/fonts/afm/public/pscyr
mv LICENSE doc/README.koi doc/PROBLEMS ChangeLog $TEXMFMAIN/doc/fonts/pscyr


%post
texhash
updmap-sys --enable Map=pscyr.map
mktexlsr

%preun
updmap-sys --disable Map=pscyr.map
mktexlsr

%files
%doc %{texmfdistdir}/doc/fonts/pscyr
%{texmfdistdir}/fonts/afm/public/pscyr 
%{texmfdistdir}/fonts/vf/public/pscyr
%{texmfdistdir}/fonts/tfm/public/pscyr
%{texmfdistdir}/fonts/type1/public/pscyr
%{texmfdistdir}/fonts/map/
%{texmfdistdir}/fonts/enc/
%{texmfdistdir}/dvips/pscyr/
%{texmfdistdir}/tex/latex/pscyr
%_datadir/fonts/type1/pscyr
%{_sysconfdir}/X11/fontpath.d/type1-pscyr:pri=10

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6663 |21cr|psensor-1.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Graphical Temperature Monitor
Name:		psensor
Version:	1.2.1
Release:	2
URL:		http://wpitchoune.net/psensor
License:	GNU General Public License version 2
Group:		Monitoring
Source0:	http://wpitchoune.net/psensor/files/%{name}-%{version}.tar.gz
Requires:	lm_sensors hddtemp
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	help2man
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libatasmart)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libmicrohttpd)

%description
Psensor is a graphical hardware temperature monitor for Linux.
It can monitor:
* the temperature of the motherboard and CPU sensors (using lm-sensors).
* the temperature of the NVidia GPUs (using XNVCtrl).
* the temperature of ATI/AMD GPUs (not enabled in Ubuntu PPAs or official
  distribution repositories, see the instructions for enabling its support).
* the temperature of the Hard Disk Drives (using hddtemp or libatasmart).
* the rotation speed of the fans (using lm-sensors).
* the CPU usage (since 0.6.2.10 and using Gtop2).

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -fno-strict-aliasing -Wno-error=incompatible-pointer-types"
%configure
make

%install
%makeinstall_std

%files
%doc %{_docdir}/%{name}
%{_datadir}/glib-2.0/schemas/psensor.gschema.xml
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_datadir}/man/man1/%{name}*.1.*
%{_datadir}/icons/*/*/*/%{name}*
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6664 |21cr|psh-1.8.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version			1.8.1

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Win32.*
%else
%define	_requires_exceptions	perl(Win32)
%endif

Name:		psh
Version:	%perl_convert_version %{version}
Release:	12
Summary:	Developping for Perl Shell
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{name}
Source0:	http://search.cpan.org/CPAN/authors/id/G/GR/GREGOR/%{name}-%{version}.tar.gz
Patch0:		psh-perl5.22-fix.diff
BuildRequires:	perl(Cwd)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
*psh* is a Perl program which executes a read-eval loop with enough options
so that general behavior reasonably similar to more traditional shells like
'*sh*' or '*bash*' can be achieved, while still allowing arbitrary perl
expressions to be evaluated.

By default within *psh*, the Perl *-w* flag and ''use strict'' are not
employed so that the user is not bound by their stipulations. They can both
be turned on via a command-line flag; or setting '$^W = 1' will turn on
warnings, and calling ''use strict'' will (almost) do the usual thing if
called by the user (see LIMITATIONS, below).

Each line of input is read. *psh* knows a number of possible strategies for
evaluating the line, such as "send it to 'system()' if it starts with the
name of an executable visible in '$ENV{PATH}'". (See below for a complete
list.) Each strategy in turn (from a user-definable list) examines the
command line to see if it can apply, and the first matching strategy
evaluates the line. There is a *psh* configuration variable (see below)
which controls whether the perl value of the evaluation is saved and
printed after each command.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%defattr(-,root,root)
%doc README
%{_mandir}/man3/*
%perl_vendorlib/*
%{_bindir}/psh
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6665 |21cr|pshs-0.3.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pretty small HTTP server - a command-line tool to share files
Name:		pshs
Version:	0.3.1
Release:	4
License:	GPL
Group:		Networking/WWW
URL:		https://github.com/mgorny/pshs/
Source0:	https://github.com/mgorny/pshs/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	libevent-devel


%description
Pretty small HTTP server - a command-line tool to share files

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6666 |21cr|psi-1.5-0.git3ef042.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_enable_debug_packages %{nil}
%define	debug_package %{nil}

%define commit 3ef0421e0a7645b8828b94d03a84ba77859af6f6
%define commit_short %(echo %{commit} | head -c6)

Summary:	Jabber client using Qt5
Name:		psi
Version:	1.5
Release:	0.git%{commit_short}.3
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://psi-im.org
# repack archive with git submodule update
Source0:	%{name}-%{commit}.tar.gz
Source1:	%{name}-icons.tar.bz2
Source2:	%{name}-smileysets.tar.bz2
Source3:	%{name}-iconsets.tar.bz2
Source4:	https://github.com/psi-im/plugins/archive/dfdb6d962ac92920861af900f41e8f590e500206.zip?/plugins-%{version}git.zip
Source5:	https://github.com/psi-im/psi-l10n/archive/eb1aa93b59f6285821bbf837059f4e7c8a9066ee.zip?/psi-l10n-%{version}git.zip
Patch0:		psi-minizip.patch
BuildRequires:	cmake >= 3.1.0
BuildRequires:	qt5-linguist-tools
BuildRequires:	tidy-devel
BuildRequires:	blake2-devel
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libotr)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(qca2-qt5) >= 2.0
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.6.0
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(usrsctp)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	signal-protocol-c-devel
Requires:	%{name}-lang-pack = %{EVRD}
Requires:	%{name}-plugins = %{EVRD}
# Required for SSL/TLS connections
Requires:	qca2-qt5-plugin-openssl
# Required for GnuPG encryption
Recommends:	qca2-qt5-plugin-gnupg
# (11/2017) Psi-plus is only the devel version of psi and currently
# is being merged back into the main program, but we have both packages:
# mark psi-plus as obsolete...
%rename		psi-plus
# Now this one is built with the main program
%rename		psi-plugin-media

# To control build of lang packages
%define langlist be bg ca cs de de_AT en el eo es et fa fi fr he hu it kk ja mk nl pl pt pt_BR ru sk sl sr sv sw uk ur_PK vi zh_CN zh_TW
%{expand:%(for lang in %{langlist}; do echo "%%{expand:%%define build_$lang 1}"; done)}

%description
Psi is the premiere Instant Messaging application designed for Microsoft
Windows, Apple Mac OS X and GNU/Linux. Built upon an open protocol named 
Jabber, Psi is a fast and lightweight messaging client that utilises the best
in open source technologies.
The goal of the Psi project is to create a powerful, yet easy-to-use 
Jabber/XMPP client that tries to strictly adhere to the XMPP drafts and Jabber
JEPs. This means that in most cases, Psi will not implement a feature unless
there is an accepted standard for it in the Jabber community. Doing so ensures
that Psi will be compatible, stable, and predictable, both from an end-user and
developer standpoint.

%files
%{_bindir}/%{name}
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/certs/README
%{_datadir}/%{name}/client_icons.txt
%{_datadir}/%{name}/sound/
%{_datadir}/%{name}/iconsets/roster/README
%{_datadir}/%{name}/iconsets/roster/*.jisp
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/metainfo/psi.appdata.xml
%{_datadir}/%{name}/COPYING
%{_datadir}/%{name}/README.html

#----------------------------------------------------------------------------

%package plugins
Summary:	Plugins for Psi Jabber client
License:	GPLv2+
Group:		Networking/Instant messaging
%rename		psi-plus-plugins

%description plugins
Plugins for psi Jabber client. In this package are available:
* Attention (send and receive special messages such as Attentions).
* Autoreply (auto-answering machine).
* Birthday Reminder (show reminders of upcoming birthdays).
* Chess (play chess with your friends).
* Cleaner (clear the avatar cache, saved local copies and history logs).
* Client Switcher (spoof version of the Jabber client and the OS).
* Conference Logger (save conference logs).
* Content Downloader (download and install roster iconsets and emoticons).
* Extended Menu (adds submenu 'Extended Actions' to contact's context menu).
* Extended Options (easy configuration of some advanced options).
* GnuPG (a front-end for gnupg).
* Gomoku game.
* History Keeper (remove the history of selected contacts when closing psi).
* ICQ Must Die (transfer as many contacts as possible from ICQ to Jabber).
* Image (send images to roster contacts).
* Juick (work with the Juick microblogging service).
* Message filter.
* Off-the-Record Messaging: a cryptographic protocol that provides strong
encryption for instant messaging conversations.
* PEP Change Notify (display popup notifications on change of moods,
activities and tunes at the contacts).
* Qip X-statuses (display X-statuses of contacts using the QIP Infium jabber
client).
* Screenshot (make a snapshot of the screen).
* Skins Plugin (create, store and apply skins).
* Stop Spam (block spam messages and unwanted information).
* Storage Notes (Private XML Storage, compatible with Miranda IM).
* Translate (convert selected text into another language).
* Video Status Changer (set the custom status when you see the video in
selected video player).
* Watcher.

%files plugins
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/*.so

#----------------------------------------------------------------------------

%package -n %{name}-lang-pack-en
Summary:	English language pack for psi
Group:		System/Internationalization
Requires:	locales-en
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-en
This package adds support for english to psi.

%files -n %{name}-lang-pack-en
%{_datadir}/%{name}/translations/%{name}_en.qm

#----------------------------------------------------------------------------

%if %{build_be}
%package -n %{name}-lang-pack-be
Summary:	Belarusian language pack for psi
Group:		System/Internationalization
Requires:	locales-be
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-be
This package adds support for belarusian to psi.

%files -n %{name}-lang-pack-be
%{_datadir}/%{name}/translations/%{name}_be.qm
%endif

#----------------------------------------------------------------------------

%if %{build_bg}
%package -n %{name}-lang-pack-bg
Summary:	Bulgarian language pack for psi
Group:		System/Internationalization
Requires:	locales-bg
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-bg
This package adds support for Bulgarian to psi.

%files -n %{name}-lang-pack-bg
%{_datadir}/%{name}/translations/%{name}_bg.qm
%endif

#----------------------------------------------------------------------------

%if %{build_ca}
%package -n %{name}-lang-pack-ca
Summary:	Catalan language pack for psi
Group:		System/Internationalization
Requires:	locales-ca
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-ca
This package adds support for catalan to psi.


%files -n %{name}-lang-pack-ca
%{_datadir}/%{name}/translations/%{name}_ca.qm
%endif

#--------------------------------------------------------------------

%if %{build_cs}
%package -n %{name}-lang-pack-cs
Summary:	Czech language pack for psi
Group:		System/Internationalization
Requires:	locales-cs
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-cs
This package adds support for czech to psi.


%files -n %{name}-lang-pack-cs
%{_datadir}/%{name}/translations/%{name}_cs.qm
%endif

#----------------------------------------------------------------------------

%if %{build_de}
%package -n %{name}-lang-pack-de
Summary:	Deutsch language pack for psi
Group:		System/Internationalization
Requires:	locales-de
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-de
This package adds support for deutsch to psi.

%files -n %{name}-lang-pack-de
%{_datadir}/%{name}/translations/%{name}_de.qm
%endif

#--------------------------------------------------------------------

%if %{build_de_AT}
%package -n %{name}-lang-pack-de_AT
Summary:	Austria language pack for psi
Group:		System/Internationalization
Requires:	locales-de
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-de_AT
This package adds support for Austria to psi.

%files -n %{name}-lang-pack-de_AT
%{_datadir}/%{name}/translations/%{name}_de_AT.qm
%endif

#--------------------------------------------------------------------

%if %{build_eo}
%package -n %{name}-lang-pack-eo
Summary:	Esperanto language pack for psi
Group:		System/Internationalization
Requires:	locales-eo
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-eo
This package adds support for esperanto to psi.

%files -n %{name}-lang-pack-eo
%{_datadir}/%{name}/translations/%{name}_eo.qm
%endif

#--------------------------------------------------------------------

%if %{build_el}
%package -n %{name}-lang-pack-el
Summary:	Greek language pack for psi
Group:		System/Internationalization
Requires:	locales-el
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-el
This package adds support for Greek to psi.

%files -n %{name}-lang-pack-el
%{_datadir}/%{name}/translations/%{name}_el.qm
%endif

#--------------------------------------------------------------------

%if %{build_es}
%package -n %{name}-lang-pack-es
Summary:	Spanish language pack for psi
Group:		System/Internationalization
Requires:	locales-es
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-es
This package adds support for spanish to psi.

%files -n %{name}-lang-pack-es
%{_datadir}/%{name}/translations/%{name}_es.qm
%endif

#--------------------------------------------------------------------

%if %{build_et}
%package -n %{name}-lang-pack-et
Summary:	Estonian language pack for psi
Group:		System/Internationalization
Requires:	locales-et
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-et
This package adds support for estonian to psi.

%files -n %{name}-lang-pack-et
%{_datadir}/%{name}/translations/%{name}_et.qm
%endif

#--------------------------------------------------------------------

%if %{build_fa}
%package -n %{name}-lang-pack-fa
Summary:	Persian language pack for psi
Group:		System/Internationalization
Requires:	locales-fa
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-fa
This package adds support for persian to psi.

%files -n %{name}-lang-pack-fa
%{_datadir}/%{name}/translations/%{name}_fa.qm
%endif

#--------------------------------------------------------------------

%if %{build_fi}
%package -n %{name}-lang-pack-fi
Summary:	Finnish language pack for psi
Group:		System/Internationalization
Requires:	locales-fi
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-fi
This package adds support for finnish to psi.

%files -n %{name}-lang-pack-fi
%{_datadir}/%{name}/translations/%{name}_fi.qm
%endif

#--------------------------------------------------------------------

%if %{build_fr}
%package -n %{name}-lang-pack-fr
Summary:	French language pack for psi
Group:		System/Internationalization
Requires:	locales-fr
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-fr
This package adds support for french to psi.

%files -n %{name}-lang-pack-fr
%{_datadir}/%{name}/translations/%{name}_fr.qm
%endif

#--------------------------------------------------------------------

%if %{build_he}
%package -n %{name}-lang-pack-he
Summary:	Hebrew language pack for psi
Group:		System/Internationalization
Requires:	locales-he
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-he
This package adds support for moderm hebrew to psi.

%files -n %{name}-lang-pack-he
%{_datadir}/%{name}/translations/%{name}_he.qm
%endif

#--------------------------------------------------------------------

%if %{build_hu}
%package -n %{name}-lang-pack-hu
Summary:	Hungarian language pack for psi
Group:		System/Internationalization
Requires:	locales-hu
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-hu
This package adds support for hungarian to psi.

%files -n %{name}-lang-pack-hu
%{_datadir}/%{name}/translations/%{name}_hu.qm
%endif

#--------------------------------------------------------------------

%if %{build_it}
%package -n %{name}-lang-pack-it
Summary:	Italian language pack for psi
Group:		System/Internationalization
Requires:	locales-it
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-it
This package adds support for italian to psi.

%files -n %{name}-lang-pack-it
%{_datadir}/%{name}/translations/%{name}_it.qm
%endif

#--------------------------------------------------------------------

%if %{build_ja}
%package -n %{name}-lang-pack-ja
Summary:	Japanese language pack for psi
Group:		System/Internationalization
Requires:	locales-ja
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-ja
This package adds support for japanese to psi.

%files -n %{name}-lang-pack-ja
%{_datadir}/%{name}/translations/%{name}_ja.qm
%endif

#--------------------------------------------------------------------

%if %{build_kk}
%package -n %{name}-lang-pack-kk
Summary:	Kazakh language pack for psi
Group:		System/Internationalization
Requires:	locales-kk
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-kk
This package adds support for kazakh to psi.

%files -n %{name}-lang-pack-kk
%{_datadir}/%{name}/translations/%{name}_kk.qm
%endif

#--------------------------------------------------------------------

%if %{build_mk}
%package -n %{name}-lang-pack-mk
Summary:	Macedonia language pack for psi
Group:		System/Internationalization
Requires:	locales-mk
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-mk
This package adds support for macedonia to psi.

%files -n %{name}-lang-pack-mk
%{_datadir}/%{name}/translations/%{name}_mk.qm
%endif

#--------------------------------------------------------------------

%if %{build_nl}
%package -n %{name}-lang-pack-nl
Summary:	Dutch language pack for psi
Group:		System/Internationalization
Requires:	locales-nl
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-nl
This package adds support for dutch to psi.

%files -n %{name}-lang-pack-nl
%{_datadir}/%{name}/translations/%{name}_nl.qm
%endif

#--------------------------------------------------------------------

%if %{build_pl}
%package -n %{name}-lang-pack-pl
Summary:	Polish language pack for psi
Group:		System/Internationalization
Requires:	locales-pl
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-pl
This package adds support for polish to psi.

%files -n %{name}-lang-pack-pl
%{_datadir}/%{name}/translations/%{name}_pl.qm
%endif

#--------------------------------------------------------------------

%if %{build_pt}
%package -n %{name}-lang-pack-pt
Summary:	Portuguese language pack for psi
Group:		System/Internationalization
Requires:	locales-pt
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-pt
This package adds support for portuguese to psi.

%files -n %{name}-lang-pack-pt
%{_datadir}/%{name}/translations/%{name}_pt.qm
%endif

#--------------------------------------------------------------------

%if %{build_pt_BR}
%package -n %{name}-lang-pack-pt_br
Summary:	Portuguese brazilian language pack for psi
Group:		System/Internationalization
Requires:	locales-pt
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-pt_br
This package adds support for portuguese brazilian to psi.

%files -n %{name}-lang-pack-pt_br
%{_datadir}/%{name}/translations/%{name}_pt_BR.qm
%endif

#--------------------------------------------------------------------

%if %{build_ru}
%package -n %{name}-lang-pack-ru
Summary:	Russian language pack for psi
Group:		System/Internationalization
Requires:	locales-ru
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-ru
This package adds support for russian to psi.

%files -n %{name}-lang-pack-ru
%{_datadir}/%{name}/translations/%{name}_ru.qm
%endif

#--------------------------------------------------------------------

%if %{build_sk}
%package -n %{name}-lang-pack-sk
Summary:	Slovak language pack for psi
Group:		System/Internationalization
Requires:	locales-sk
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-sk
This package adds support for slovak to psi.

%files -n %{name}-lang-pack-sk
%{_datadir}/%{name}/translations/%{name}_sk.qm
%endif

#--------------------------------------------------------------------

%if %{build_sl}
%package -n %{name}-lang-pack-sl
Summary:	Slovenian language pack for psi
Group:		System/Internationalization
Requires:	locales-sl
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-sl
This package adds support for slovenian to psi.

%files -n %{name}-lang-pack-sl
%{_datadir}/%{name}/translations/%{name}_sl.qm
%endif

#--------------------------------------------------------------------

%if %{build_sr}
%package -n %{name}-lang-pack-sr
Summary:	Serbian latin language pack for psi
Group:		System/Internationalization
Requires:	locales-sr
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-sr
This package adds support for serbian latin to psi.

%files -n %{name}-lang-pack-sr
%{_datadir}/%{name}/translations/%{name}_sr@latin.qm
%endif

#--------------------------------------------------------------------

%if %{build_sv}
%package -n %{name}-lang-pack-sv
Summary:	Swedish language pack for psi
Group:		System/Internationalization
Requires:	locales-sv
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-sv
This package adds support for swedish to psi.

%files -n %{name}-lang-pack-sv
%{_datadir}/%{name}/translations/%{name}_sv.qm
%endif

#--------------------------------------------------------------------

%if %{build_sw}
%package -n %{name}-lang-pack-sw
Summary:	Swahili language pack for psi
Group:		System/Internationalization
Requires:	locales-sw
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-sw
This package adds support for swahili to psi.

%files -n %{name}-lang-pack-sw
%{_datadir}/%{name}/translations/%{name}_sw.qm
%endif

#--------------------------------------------------------------------

%if %{build_uk}
%package -n %{name}-lang-pack-uk
Summary:	Ukrainian language pack for psi
Group:		System/Internationalization
Requires:	locales-uk
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-uk
This package adds support for ukrainian to psi.

%files -n %{name}-lang-pack-uk
%{_datadir}/%{name}/translations/%{name}_uk.qm
%endif

#--------------------------------------------------------------------

%if %{build_ur_PK}
%package -n %{name}-lang-pack-ur_PK
Summary:	Urdu language pack for psi
Group:		System/Internationalization
Requires:	locales-ur
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-ur_PK
This package adds support for urdu to psi.

%files -n %{name}-lang-pack-ur_PK
%{_datadir}/%{name}/translations/%{name}_ur_PK.qm
%endif

#--------------------------------------------------------------------

%if %{build_vi}
%package -n %{name}-lang-pack-vi
Summary:	Vietnamese language pack for psi
Group:		System/Internationalization
Requires:	locales-vi
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-vi
This package adds support for vietnamese to psi.

%files -n %{name}-lang-pack-vi
%{_datadir}/%{name}/translations/%{name}_vi.qm
%endif

#--------------------------------------------------------------------

%if %{build_zh_TW}
%package -n %{name}-lang-pack-zh
Summary:	Chinese language pack for psi
Group:		System/Internationalization
Requires:	locales-zh
Provides:	%{name}-lang-pack = %{EVRD}
BuildArch:	noarch

%description -n %{name}-lang-pack-zh
This package adds support for Chinese to psi.

%files -n %{name}-lang-pack-zh
%{_datadir}/%{name}/translations/%{name}_zh_TW.qm
%{_datadir}/%{name}/translations/%{name}_zh_CN.qm
%endif

#--------------------------------------------------------------------

%prep
%setup -q -a1 -a2 -a3 -a4 -a5 -n %{name}-%{commit}

# 1. Put in place our smileysets and iconsets
# WARNING: If some set is added/removed remember to update files section too
cp %{name}-smileysets/* iconsets/emoticons
cp %{name}-iconsets/* iconsets/system
rm -rf %{name}-iconsets %{name}-smileysets

# 2. Copy plugins sources to psi source dir
cp -r plugins-*/* plugins
rm -rf plugins-*

# 3. Put in place translation source files
mkdir -p src/translations/
cp %{name}-l10n-*/translations/*.ts src/translations/
rm -rf %{name}-l10n-*

%apply_patches

%build
%cmake .. \
	-DENABLE_PLUGINS=ON \
	-DUSE_HUNSPELL=ON \
	-DPLUGINS_PATH="%{_lib}/%{name}/plugins"
%make

# Make translations
pushd ../src/translations
	lrelease-qt5 *.ts
popd


%install
%makeinstall_std -C build

# Install translation files (see update_translations.sh in Source5)
mkdir -p %{buildroot}%{_datadir}/%{name}/translations
cp src/translations/*.qm %{buildroot}%{_datadir}/%{name}/translations

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6667 |21cr|psindustrializer-0.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname psphymod %{major}
%define	devname %mklibname psphymod -d

Summary:	Percussion Sample Generator (Discrete Mass Physical Modelling)
Name:		psindustrializer
Version:	0.2.7
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/industrializer/
Source0:	https://sourceforge.net/projects/industrializer/files/industrializer/%{name}-%{version}/%{name}-%{version}.tar.xz
Source1:	%{name}48.png
Source2:	%{name}32.png
Source3:	%{name}16.png
Patch0:		psindustrializer-0.2.7-fix-include-build.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext >= 0.19.8
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.24.0
BuildRequires:	pkgconfig(gtkglext-1.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse-simple)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.6.0

%description
Industrializer is a program for generating percussion sounds for musical
purposes. Try using the sounds in your favorite tracker, or the upcoming Beast
/ BSE tracker and modular synthesizer. This program is great for generating
new techno sounds, industrial sounds in particular. But it's not limited to
industrial crashes, it can produce chimes, bubbles, gongs, hammer hits on
different materials, and a variety of other sounds. 

%files -f %{name}.lang
%doc ChangeLog COPYING README.md TODO
%{_bindir}/%{name}
%{_datadir}/%{name}/power_station_logo.xpm
%{_datadir}/%{name}/save-wav-*.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/libpsphymod.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}psphymod0-devel < 0.2.5-9
Obsoletes:	%{_lib}psphymod0-devel < 0.2.5-9

%description -n %{devname}
Development libraries and includes files for building programs based on
%{name}.

%files -n %{devname}
%doc COPYING
%{_includedir}/psphymod
%{_libdir}/libpsphymod.so

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%configure --disable-static
%make


%install
%makeinstall_std

# Fix desktop file location & contents by providing one ourself
mkdir -p %{buildroot}%{_datadir}/applications

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=%{name}
GenericName=Sound Editor
Comment=Power Station Industrializer
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Audio;Sequencer;Video;Player;GTK;X-MandrivaLinux-Multimedia-Sound;
EOF

rm -f %{buildroot}%{_datadir}/gnome/apps/Multimedia/%{name}.desktop

# Install our icons
mkdir -p %{buildroot}%{_liconsdir}
cat %{SOURCE1} > %{buildroot}%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}%{_iconsdir}
cat %{SOURCE2} > %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_miconsdir}
cat %{SOURCE3} > %{buildroot}%{_miconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6668 |21cr|pslib-0.4.5-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ps %{major}
%define devname %mklibname ps -d

Summary:	C-library for generating multi page PostScript documents
Name:		pslib
Version:	0.4.5
Release:	12
License:	LGPLv2+
Group:		System/Libraries
Url:		http://pslib.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/pslib/pslib-%{version}.tar.gz
Source1:	pslib-0.4.1-manpages.tar.gz
Patch0:		pslib-0.4.1-linkage_fix.diff
Patch1:		pslib-0.4.5-giflib5.patch
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	perl-XML-Parser
BuildRequires:	gettext-devel
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
Conflicts:	%{_lib}pslib0 < 0.4.5-10

%description
PSlib is a C-library for generating multi page PostScript documents. There are
functions for drawing lines, arcs, rectangles, curves, etc. PSlib also provides
very sophisticated functions for text output including hyphenation and kerning.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C-library for generating multi page PostScript documents
Group:		System/Libraries
Conflicts:	%{_lib}pslib0 < 0.4.5-10
Obsoletes:	%{_lib}pslib0 < 0.4.5-10

%description -n %{libname}
PSlib is a C-library for generating multi page PostScript documents. There are
functions for drawing lines, arcs, rectangles, curves, etc. PSlib also provides
very sophisticated functions for text output including hyphenation and kerning.

%files -n %{libname}
%{_libdir}/libps.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the PSlib library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}pslib-devel < 0.4.5-10
Obsoletes:	%{_lib}pslib-devel < 0.4.5-10

%description -n %{devname}
PSlib is a C-library for generating multi page PostScript documents. There are
functions for drawing lines, arcs, rectangles, curves, etc. PSlib also provides
very sophisticated functions for text output including hyphenation and kerning.

This package contains the statis library and header files for the PSlib
library.

%files -n %{devname}
%dir %{_includedir}/libps
%{_includedir}/libps/*
%{_libdir}/libps.so
%{_libdir}/pkgconfig/libps.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -a1
%patch0 -p0
%patch1 -p1

chmod 644 AUTHORS COPYING ChangeLog README

autoreconf -fis

%build
%configure

# borkiness
find -type f -name "Makefile" | xargs perl -pi -e "s|/usr/lib\b|%{_libdir}|g"

%make

%install
%makeinstall_std

install -d %{buildroot}%{_mandir}/man3
install -m0644 doc/man/*.3 %{buildroot}%{_mandir}/man3/

%find_lang %{name}

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6669 |21cr|pspp-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary(ru_RU.UTF-8): Программа для статистического анализа выборочных данных 
Summary: A program for statistical analysis of sampled data

Name: pspp
Version: 1.6.2
Release: 1

License: GPLv3+
Group: Sciences/Mathematics
Url: http://www.gnu.org/software/pspp

Source: https://ftp.gnu.org/gnu/pspp/%{name}-%{version}.tar.gz?/%name-%version.tar.gz

BuildRequires: pkgconfig(gsl)
BuildRequires: perl-devel
BuildRequires: perl-Text-Diff
BuildRequires: perl(Config::Perl::V)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(pango)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(gtksourceview-4)
BuildRequires: pkgconfig(spread-sheet-widget)
BuildRequires: pkgconfig(readline)
BuildRequires: gettext-devel
BuildRequires: texinfo
BuildRequires: fonts-ttf-liberation
BuildRequires: texlive

%description
GNU PSPP is a program for statistical analysis of sampled data. It is a free as
in freedom replacement for the proprietary program SPSS, and appears very
similar to it with a few exceptions.

%description -l ru_RU.UTF-8
GNU PSPP - это программа для статистического анализа выборочных данных.
Это бесплатная замена проприетарной программы SPSS, и внешне она очень похожа на нее,
за некоторыми исключениями.

%files -f %{name}.lang
%license COPYING
%doc NEWS ONEWS THANKS AUTHORS README 
%doc %{_datadir}/doc/%{name}/*
%{_bindir}/pspp
%{_bindir}/pspp-convert
%{_bindir}/pspp-dump-sav
%{_bindir}/pspp-output
%{_bindir}/psppire
%{_libdir}/%{name}/
%{_iconsdir}/hicolor/*/mimetypes/application-x-spss-*.png
%{_iconsdir}/hicolor/*/apps/org.gnu.pspp.*
%{_datadir}/applications/org.gnu.%{name}.desktop
%{_datadir}/metainfo/org.gnu.pspp.metainfo.xml
%{_datadir}/mime/packages/org.gnu.pspp.xml
%{_infodir}/pspp*
%{_mandir}/man1/*.1*
%{_datadir}/%{name}/

# ------------------------------------------------------------------------------

%prep
%setup -q 

%build
autoreconf -if
%configure \
       --disable-static --disable-rpath

%make_build

%install
%makeinstall_std
%makeinstall_std install-html

rm -rf %{buildroot}%{_infodir}/screenshots
rm -rf %{buildroot}%{_infodir}/pspp-figures

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6670 |21cr|psqlodbc-13.02.0000-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# do not generate devel() reqs from symlink, libraries are not versioned
%define __develgen_path %{nil}

Summary:	PostgreSQL ODBC driver
Name:		psqlodbc
Version:	13.02.0000
Release:	1
License:	LGPLv2+
Group:		Databases
Url:		https://odbc.postgresql.org
Source0:	http://ftp.postgresql.org/pub/odbc/versions/src/psqlodbc-%{version}.tar.gz
BuildRequires:	gcc
BuildRequires:	make
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(libpq)
# package was renamed, lib64 prefix makes no sense in rosa2021.1+, https://nixtux.ru/1085
Provides:	%{_lib}psqlodbc = %{EVRD}
Conflicts:	%{_lib}psqlodbc < 13.02.0000-2
Obsoletes:	%{_lib}psqlodbc < 13.02.0000-2
# compat with Fedora/RH
Provides:	postgresql-odbc = %{EVRD}

%description
This package includes the driver needed for applications to access a
PostgreSQL system via ODBC (Open Database Connectivity).

%files
%license license.txt
%doc readme.txt docs/*
%{_libdir}/psqlodbc.so
%{_libdir}/psqlodbca.so
%{_libdir}/psqlodbcw.so

#------------------------------------------------------------------

%prep
%autosetup -p1 -n psqlodbc-%{version}

%build
%configure
%make

%install
%makeinstall_std
# compat symlink, as in Fedora/RH
( cd %{buildroot}%{_libdir}
  ln -s psqlodbcw.so psqlodbc.so
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6671 |21cr|pssh-2.3.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Parallel SSH tools
Name:		pssh
Version:	2.3.4
Release:	3
Group:		Networking/Remote access
License:	BSD
Url:		https://github.com/lilydjwg/pssh
Source:		https://github.com/lilydjwg/pssh/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	openssh
Requires:	python3-psshlib = %{EVRD}
Buildarch:	noarch

%description
PSSH provides parallel versions of OpenSSH and related tools. Included
are pssh, pscp, prsync, pnuke, and pslurp.

%files
%doc ChangeLog AUTHORS
%license COPYING
%{_bindir}/p*
%{_mandir}/man1/p*

#----------------------------------------------------------
%package -n python3-psshlib
Summary:	Parallel SSH library for Python
Group:		Development/Python
Provides:	python-psshlib = %{EVRD}

%description -n python3-psshlib
The psshlib library enables custom applications to use PSSH.

%files -n python3-psshlib
%{python3_sitelib}/psshlib
%{python3_sitelib}/*.egg-info

#----------------------------------------------------------

%prep
%setup -q

%install
PYTHONDONTWRITEBYTECODE= %__python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6672 |21cr|pst-antiprism-20180215-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pst-antiprism
Version:	20180215
Release:	1
Summary:	A PSTricks related package which draws an antiprism
Group:		Publishing
URL:		https://ctan.org/pkg/pst-antiprism
License:	LPPL
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/pst-antiprism.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/pst-antiprism.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
pst-antiprism is a PSTricks related package which draws an
antiprism, which is a semiregular polyhedron constructed with
2-gons and triangles.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%{_texmfdistdir}/dvips
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex dvips doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6673 |21cr|pst-dart-0.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pst-dart
Version:	0.03
Release:	1
Summary:	Plotting dart boards
Group:		Publishing
URL:		https://ctan.org/pkg/pst-dart
License:	lppl
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-dart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-dart.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
pst-dart is a PSTricks related package and draws Dart Boards.
Optional arguments are the unit and the fontsize.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-dart/pst-dart.sty
%{_texmfdistdir}/tex/generic/pst-dart/pst-dart.tex
%doc %{_texmfdistdir}/doc/generic/pst-dart/README.md
%doc %{_texmfdistdir}/doc/generic/pst-dart/pst-dart-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-dart/pst-dart-doc.tex
%doc %{_texmfdistdir}/doc/generic/pst-dart/pst-dart-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-dart/Changes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6674 |21cr|pstotext-1.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Extract text from PostScript files
Name:		pstotext
Version:	1.9
Release:	4
Source0:	ftp://mirror.cs.wisc.edu/pub/mirrors/ghost/contrib/%{name}-%{version}.tar.gz
Patch0:		pstotext-1.9-debug.patch
License:	GPL
Group:		Publishing
Url:		http://pages.cs.wisc.edu/~ghost/doc/pstotext.htm
Requires: 	ghostscript

%description
pstotext extracts plain text from PostScript files using GhostScript.

%prep
%setup -q
%patch0 -p1

%build
CFLAGS="%{optflags}" %make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 pstotext %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 755 pstotext.1 %{buildroot}%{_mandir}/man1

%files
%{_bindir}/pstotext
%{_mandir}/man1/pstotext.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6675 |21cr|pstreams-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	POSIX Process Control in C++
Name:		pstreams
Version:	1.0.3
Release:	1
License:	LGPLv3+
Group:		Development/C++
Url:		http://pstreams.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildArch:	noarch

%description
PStreams class is like a C++ wrapper for the POSIX.2 functions popen(3) and
pclose(3), using C++ iostreams instead of C's stdio library.

#----------------------------------------------------------------------------

%package devel
Summary:	POSIX Process Control in C++
Group:		Development/C++
BuildArch:	noarch

%description devel
PStreams class is like a C++ wrapper for the POSIX.2 functions popen(3) and
pclose(3), using C++ iostreams instead of C's stdio library.

%files devel
%doc README AUTHORS ChangeLog
%{_includedir}/pstreams

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6676 |21cr|pst-utils-0.5.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname libpst

Summary:	Extracts emails from MS Outlook PST files
Name:   	pst-utils
Version: 	0.5.2
Release: 	8
License:	GPL
Group:		Networking/Mail
URL:		http://alioth.debian.org/projects/libpst/
Source0:	http://alioth.debian.org/download.php/844/libpst-%{version}.tar.bz2

%description
LibPST provides functions in library form for accessing Outlook's
Personal Folders. Included with this library is a program that
will take a PST file and convert it to an mbox format. 

%prep

%setup -q -n %{rname}-%{version}

%build

#make CFLAGS="%{optflags} -Wall -DVERSION=\"%{version}\""
make

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 readpst %{buildroot}%{_bindir}/
install -m0755 readpstlog %{buildroot}%{_bindir}/

install -m0644 readpst.1 %{buildroot}%{_mandir}/man1/
install -m0644 readpstlog.1 %{buildroot}%{_mandir}/man1/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS CREDITS ChangeLog FILE-FORMAT* LICENSE TODO
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6677 |21cr|pth-2.0.7-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 20
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GNU Pth - GNU Portable Threads
Name:		pth
Version:	2.0.7
Release:	31
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnu.org/software/pth/
Source0:	ftp://ftp.gnu.org/pub/gnu/pth/%{name}-%{version}.tar.gz
Source1:	ftp://ftp.gnu.org/pub/gnu/pth/%{name}-%{version}.tar.gz.sig
Patch0:		pth-2.0.0-pth-config.in.patch
Patch1:		pth-2.0.7-linux3.patch

# mcst patches
Patch10:       0006-modify-aclocal.m4-and-add-configure.ac.mod.patch
Patch11:       0009-modify-pth_mctx.c.patch
Patch12:       0010-modify-pth_tcb.c.patch
Patch13:       0011-modify-pth_uctx.c.patch

%description
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
which provides non-preemptive priority-based scheduling for multiple
threads of execution ("multithreading") inside server applications.
All threads run in the same address space of the server application,
but each thread has it's own individual program-counter, run-time
stack, signal mask and errno variable.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNU Portable Threads shared library
Group:		System/Libraries

%description -n %{libname}
Pth is a very portable POSIX/ANSI-C based library for Unix platforms
which provides non-preemptive priority-based scheduling for multiple
threads of execution ("multithreading") inside server applications.
All threads run in the same address space of the server application,
but each thread has it's own individual program-counter, run-time
stack, signal mask and errno variable.

This package provides the main %{name} library.

%files -n %{libname}
%{_libdir}/libpth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GNU Portable Threads development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Pth is a very portable POSIX/ANSI-C based library for Unix platforms.

This package provides all necessary files to develop or compile any
applications or libraries that use %{name} library.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS PORTING README THANKS
%{_bindir}/pth-config
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%{_libdir}/libpth.*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .cflags-ldflags
%patch1 -p1 -b .linux3
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1


%configure \
%ifarch %{e2k}
    --with-mctx-dsp=sc \
    --with-mctx-stk=mc \
    --with-mctx-mth=mcsc \
%endif
    --enable-optimize=yes \
    --enable-pthread=no

%ifarch %{e2k}
# dirty hack
sed -i '0,/\/\*N\.A\.\*\// s//(skaddr)/' pth_acmac.h
sed -i '0,/\/\*N\.A\.\*\// s//(sksize)/' pth_acmac.h
%endif

# (tpg) without this parallel make fails
%make pth_p.h

%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6678 |21cr|pudb-2012.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	pudb
%define version	2012.3
%define	rel		1
%if %mdkversion < 201100
%define release %mkrel %rel
%else
%define	release	%rel
%endif

Summary:	Full-screen, console-based visual debugger for Python
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	http://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
Source1:	pudb
Patch0:		setup.patch
License:	MIT
Group:		Development/Python
Url:		http://pypi.python.org/pypi/pudb/
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch:	noarch
Requires:	python-urwid >= 0.9.9.2
Requires:	python-pygments >= 1.0
BuildRequires:	python-setuptools

%description
PuDB is a full-screen, console-based visual debugger for Python.
It aims to provide all the niceties of modern GUI-based debuggers
in a lightweight and keyboard-friendly package. PuDB allows you
to debug code right where you write and test it - in a terminal. If
you've worked with the excellent (but nowadays ancient) DOS-based
Turbo Pascal or C tools, PuDB's UI might look familiar.

%prep
%setup -q
%patch0 -p0

%install
%__rm -rf %{buildroot}
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot} --record=FILE_LIST

%__mkdir -p %{buildroot}%{_bindir}
%__install -m 755 %SOURCE1 %{buildroot}%{_bindir}

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%_bindir/pudb
%py_puresitedir/*


%changelog
* Tue Aug 07 2012 Lev Givon <lev@mandriva.org> 2012.3-1
+ Revision: 812367
- Update to 2012.3.

* Wed Jun 06 2012 Lev Givon <lev@mandriva.org> 2012.2.1-1
+ Revision: 802974
- Update to 2012.2.1.
- Don't try to download setuptools when building.

* Wed Feb 01 2012 Lev Givon <lev@mandriva.org> 2012.1-1
+ Revision: 770517
- Update to 2012.1.

* Mon Dec 05 2011 Lev Givon <lev@mandriva.org> 2011.3.1-1
+ Revision: 737944
- Update to 2011.3.1.

* Mon Aug 29 2011 Lev Givon <lev@mandriva.org> 2011.3-1
+ Revision: 697395
- Update to 2011.3.

* Wed Jun 22 2011 Lev Givon <lev@mandriva.org> 2011.2-1
+ Revision: 686707
- Update to 2011.2.

* Fri Mar 18 2011 Lev Givon <lev@mandriva.org> 2011.1-1
+ Revision: 646453
- Update to 2011.1.

* Mon Feb 14 2011 Lev Givon <lev@mandriva.org> 0.93.1-1
+ Revision: 637745
- Update to 0.93.1.

* Sun Nov 07 2010 Funda Wang <fwang@mandriva.org> 0.92.15-1mdv2011.0
+ Revision: 594707
- update file list

* Tue Jan 19 2010 Lev Givon <lev@mandriva.org> 0.92.15-1mdv2010.1
+ Revision: 493639
- Update to 0.92.15.

* Mon Dec 21 2009 Lev Givon <lev@mandriva.org> 0.92.14-1mdv2010.1
+ Revision: 480619
- Update to 0.92.14.

* Tue Nov 10 2009 Lev Givon <lev@mandriva.org> 0.92.13-1mdv2010.1
+ Revision: 464323
- Update to 0.92.13.

* Mon Sep 14 2009 Lev Givon <lev@mandriva.org> 0.92.12-1mdv2010.0
+ Revision: 441033
- Update to 0.92.12.

* Sun Jul 26 2009 Lev Givon <lev@mandriva.org> 0.92.11-1mdv2010.0
+ Revision: 399938
- Update to 0.92.11.

* Mon Jul 20 2009 Lev Givon <lev@mandriva.org> 0.92.9-1mdv2010.0
+ Revision: 398183
- Update to 0.92.9.

* Mon Jul 13 2009 Lev Givon <lev@mandriva.org> 0.92.8-1mdv2010.0
+ Revision: 395667
- imported package pudb



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6679 |21cr|puddletag-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pyqt 5.15

Summary:	Feature rich, easy to use tag editor
Name:		puddletag
Version:	2.1.1
Release:	1
Group:		Sound
License:	GPLv2+ and GPLv3+
Url:		https://docs.puddletag.net/
Source0:	https://github.com/puddletag/puddletag/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		puddletag-2.1.0-fix-env-shebangs.patch
Patch1:		puddletag-requirements.patch
BuildRequires:	desktop-file-utils
BuildRequires:	python3 >= 3.8
BuildRequires:	python3-setuptools
BuildArch:	noarch
Requires:	chromaprint >= 0.4
Requires:	mutagen >= 1.45
Requires:	python3-configobj >= 5.0
Requires:	python3-musicbrainzngs >= 0.6
Requires:	python3-parsing >= 2.4.7
Requires:	python3-pillow
# Dependencies on Python modules are not automatic yet.
Requires:	python3-qt5-gui >= %{pyqt}
Requires:	python3-qt5-svg >= %{pyqt}


%description
Puddletag is an audio tag editor.
Unlike most taggers, it uses a spreadsheet-like layout so that all the tags
you want to edit by hand are visible and easily editable. The usual tag editor
features are supported like extracting tag information from filenames,
renaming files based on their tags by using patterns (that you define, not
crappy, uneditable ones).
Then there're Functions, which can do things like replace text, trim, change
the case of tags, etc. Actions can automate repetitive tasks. You can import
your QuodLibet library, lookup tags using MusicBrainz, FreeDB or Amazon
(though it's only good for cover art) and more.
Supported formats: ID3v1, ID3v2 (mp3), MP4 (mp4, m4a, etc.), VorbisComments
(ogg, flac), Musepack (mpc), Monkey's Audio (.ape) and WavPack (wv).

%files
%doc changelog copyright NEWS README.md THANKS TODO 
%{_bindir}/%{name}
%_mandir/man1/%{name}.1*
%{py3_puresitedir}/puddlestuff/
%{py3_puresitedir}/%{name}-%{version}-py*.egg-info
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%py3_build


%install
%__python3 setup.py install -O1 --skip-build --root %{buildroot}

desktop-file-edit	--add-category="Utility" \
			%{buildroot}%{_datadir}/applications/%{name}.desktop

# Fix perms
chmod +x %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6680 |21cr|pulseaudio-dlna-0.6.0+git20190209.b0db813-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgversion 0.6.0

Name:           pulseaudio-dlna
Version:        0.6.0+git20190209.b0db813
Release:        1
Summary:        A DLNA server which brings DLNA/UPnP support to PulseAudio
License:        GPL-3.0
Group:          Sound
Url:            https://github.com/masmu/%{name}
Source:         %{name}-%{version}.tar.xz
BuildRequires:  python3-setuptools
Requires:       python3-dbus >= 1.2.0
Requires:       faac >= 1.28
Requires:       flac >= 1.3.0
Requires:       lame >= 3.99.0
Requires:       opus-tools >= 0.1.8
Requires:       pulseaudio
Requires:       python3 >= 3.6
Requires:       python3-chardet >= 3.0.4
Requires:       python3-docopt >= 0.6.1
Requires:       python3-gobject3 >= 3.12.0
Requires:       python3-lxml >= 3
Requires:       python3-netifaces >= 0.10
Requires:       python3-notify2 >= 0.3
Requires:       python3-psutil >= 5.4.7
Requires:       python3-pychromecast >= 2.3.0
Requires:       python3-pyroute2 >= 0.3.5
Requires:       python3-requests >= 2.2.1
Requires:       python3-setproctitle >= 1.1.10
Requires:       python3-setuptools
Requires:       sox >= 14.4.1
Requires:       vorbis-tools >= 1.4.0
Recommends:     ffmpeg
Suggests:       python3-cairo >= 1.8.8
Suggests:       python3-rsvg >= 2.32.0
Suggests:       python3-gtk >= 2.24.0
Suggests:       python3-PyChromecast >= 2.24.0
BuildArch:      noarch

%description
This is pulseaudio-dlna. A small DLNA server which brings DLNA / UPnP and
Chromecast support to PulseAudio and Linux.

It can stream your current PulseAudio playback to different UPnP devices (UPnP
Media Renderers) in your network. Its main goals are: easy to use, no
configuration hassle, no big dependencies.

%prep
%setup -q

%build
%py3_build

%install
%py3_install

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{python3_sitelib}/pulseaudio_dlna-%{pkgversion}-py%{py3_ver}.egg-info/
%{python3_sitelib}/pulseaudio_dlna/
%{_mandir}/man1/%{name}.1*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6681 |21cr|pulseaudio-equalizer-2.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This file based on Fedora specfile for package pulseaudio-equalizer


%define rev 4

Summary:        A 15 Bands Equalizer for PulseAudio
Name:           pulseaudio-equalizer
Version:        2.7
Release:        4
Group:          Sound
License:        GPLv3+
URL:            https://code.launchpad.net/~psyke83/+junk/%{name}
# This is a bzr checkout, to obtain the used tarball in this spec :
# bzr branch -r %%{rev} lp:~psyke83/+junk/pulseaudio-equalizer
# mv %%{name} %%{name}-%%{version}
# tar cjf %%{name}-%%{version}.tar.bz2 %%{name}-%%{version}
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.1
Source2:        %{name}-gtk.1
BuildRequires:  desktop-file-utils
Requires:       swh-plugins
Requires:       gnome-icon-theme
Requires:       pulseaudio-utils >= 0.9.19
# Force default equalizer persistence value, fixes rhbz #635400
Patch0:         %{name}-%{version}-force-default-persistence-value.patch
# Remove preamp per discussion with upstrem, fixes rhbz #639604
Patch1:         %{name}-%{version}-remove-preamp.patch
# Better search for the window icon, fixes rhbz #632940
Patch2:         %{name}-%{version}-window-icon.patch
# Do not crash on missing preset, fixes rhbz ##679005
Patch3:         %{name}-%{version}-do-not-crash-on-missing-preset.patch
# The config files/presets not created when $HOME/.pulse missing (#1183283)
Patch4:         pulseaudio-equalizer-2.7-fix-missing-config-dir.patch
# Enable/disable/adjust pulseaudio-equalizer and audio mutes (#1046589)
Patch5:         pulseaudio-equalizer-2.7-get-cur-volume-fix.patch
BuildArch:      noarch

%description
PulseAudio Equalizer is a 15 bands system wide equalizer, that means
any application that is using PulseAudio, will benefit from the sound
improvement.


%prep
%setup -q
cp debian/copyright COPYING
cp debian/changelog ChangeLog
sed -i 's|gnome-volume-control|multimedia-volume-control|g' usr/share/applications/pulseaudio-equalizer.desktop
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1


%install
mkdir -p %{buildroot}/usr
cp -rfp usr %{buildroot}
install -Dpm 644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/%{name}.1
install -Dpm 644 %{SOURCE2} %{buildroot}/%{_mandir}/man1/%{name}-gtk.1

desktop-file-validate %{buildroot}/%{_datadir}/applications/%{name}.desktop

%files
%doc COPYING ChangeLog
%{_bindir}/%{name}
%{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-gtk.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6682 |21cr|pulseeffects-3.2.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname PulseEffects

Summary:	Audio equalizer, filters and effects for Pulseaudio applications
Name:		pulseeffects
Version:	3.2.3
Release:	5
License:	GPLv3+
Group:		Sound
Url:		https://github.com/wwmm/pulseeffects
Source0:	https://github.com/wwmm/pulseeffects/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	meson >= 0.40.0
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gstreamer-1.0) >= 1.12
BuildRequires:	pkgconfig(gstreamer-insertbin-1.0) >= 1.12
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0) >= 1.12
BuildRequires:	pkgconfig(libbs2b)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(lilv-0) >= 0.22
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(py3cairo)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-numpy-devel >= 1.13
BuildRequires:	python3-scipy >= 1.0
Requires:	python3-gi-cairo
Requires:	python3-gstreamer1.0
Requires:	python3-numpy >= 1.13
Requires:	python3-scipy >= 1.0
Requires:	gstreamer1.0-python >= 1.12
Requires:	gstreamer1.0-ladspa >= 1.12
Requires:	gstreamer1.0-lv2
Requires:	gstreamer1.0-plugins-good >= 1.12
Requires:	lv2
Requires:	lv2-calf-plugins
Requires:	rubberband
Requires:	%{_lib}pangoft2-gir1.0
Requires:	typelib(GstInsertBin)
Requires:	typelib(GstBase)
# Maximizer plugin requires zam-plugins, we don't have it yet
BuildArch:	noarch

%description
Limiters, compressor, reverberation, high-pass filter, low pass filter,
equalizer and auto volume effects for PulseAudio applications.

%files -f %{oname}.lang
%doc CHANGELOG.md LICENSE.md README.md
%{_appdatadir}/com.github.wwmm.pulseeffects.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%dir %{py3_puresitedir}/%{oname}
%dir %{py3_puresitedir}/%{oname}Test
%{py3_puresitedir}/%{oname}/*
%{py3_puresitedir}/%{oname}Test/*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%meson
%meson_build


%install
%meson_install

mv %{buildroot}%{_datadir}/applications/com.github.wwmm.pulseeffects.desktop \
   %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6683 |21cr|pulsejoin-2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI for making a virtual PulseAudio microphone
Name:		pulsejoin
Version:	2.4
Release:	2
License:	GPL
Group:		Sound
Url:		https://gitlab.com/mikhailnov/pulsejoin/-/archive/v%{version}/
Source0:	%{url}/pulsejoin-v%{version}.tar.gz
Requires:	yad
Recommends:	pavucontrol
BuildArch:	noarch

%description
GUI for making a virtual PulseAudio microphone,
from which sound from both microphone
and audio output can be recorded.

%files -f pulsejoin.lang
%{_bindir}/pulsejoin
%{_datadir}/applications/pulsejoin.desktop

#------------------------------------------------------------------

%prep
%setup -n %{name}-v%{version}

%build

%install
%makeinstall_std
%find_lang pulsejoin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6684 |21cr|punes-0.106-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname puNES

Summary:	Nintendo Entertaiment System (NES) emulator
Name:		punes
Version:	0.106
Release:	2
License:	GPLv2+
Group:		Emulators
Url:		http://nesdev.parodius.com/bbs/viewtopic.php?t=6928
# From github by tag, https://github.com/punesemu/puNES/archive/v%{version}.tar.gz
Source0:	%{oname}-%{version}.tar.gz
BuildRequires:	autoconf-archive
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Nintendo Entertaiment System (NES) emulator with GUI.

Among other features it has Dendy mode support.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
autoreconf -fi
%configure \
	--enable-qt5 \
	--without-opengl-nvidia-cg
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6685 |21cr|puppet-6.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	ppconfdir conf/redhat

Name:		puppet
Version:	6.18.0
Release:	1
Summary:	System Automation and Configuration Management Software
License:	Apache Software License
Group:		Monitoring
Url:		https://www.puppetlabs.com/
Source0:	https://downloads.puppetlabs.com/%{name}/%{name}-%{version}.tar.gz
Source1:	puppetmaster.service
Source2:	%{name}-tmpfiles.conf
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-5.5.1-fix-systemd-unit.patch
BuildArch:	noarch
BuildRequires:	ruby-devel
BuildRequires:	hiera
BuildRequires:	facter >= 1.5
Requires:	facter
Requires:	rubygem-concurrent-ruby
Requires:	rubygem-semantic_puppet
Requires:	rubygem-deep_merge
Requires(post):	systemd
Requires(pre,post,preun):	rpm-helper
%rename	vim-puppet
%rename	emacs-puppet

%description
Puppet lets you centrally manage every important aspect of your system using a
cross-platform specification language that manages all the separate elements
normally aggregated in different files, like users, cron jobs, and hosts,
along with obviously discrete elements like packages, services, and files.
This package provide the puppet client daemon.

%files
%doc LICENSE README.md examples
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/modules
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
%exclude %{_sysconfdir}/%{name}/fileserver.conf
#config(noreplace) %%{_sysconfdir}/puppetlabs/puppet/*.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/puppetagent
%{_sysconfdir}/logcheck/ignore.d.workstation/%{name}
%{_sysconfdir}/logcheck/ignore.d.server/%{name}
%{_tmpfilesdir}/%{name}.conf
%attr(-,puppet,puppet) %{_localstatedir}/log/%{name}
%attr(-,puppet,puppet) %{_localstatedir}/lib/%{name}
%{_unitdir}/%{name}.service
%{_bindir}/%{name}
%{ruby_vendorlibdir}/hiera
%{ruby_vendorlibdir}/hiera_puppet.rb
%{ruby_vendorlibdir}/%{name}
%{ruby_vendorlibdir}/%{name}.rb
%{ruby_vendorlibdir}/%{name}_pal.rb
%{ruby_vendorlibdir}/%{name}_x.rb
%{_datadir}/%{name}
%{_localedir}/*/%{name}.po
%{_mandir}/man5/puppet.conf.5.*
%{_mandir}/man8/puppet.8.*
%{_mandir}/man8/puppet-agent.8.*
%{_mandir}/man8/puppet-apply.8.*
%{_mandir}/man8/puppet-catalog.8.*
%{_mandir}/man8/puppet-describe.8.*
%{_mandir}/man8/puppet-epp.8.xz
%{_mandir}/man8/puppet-config.8.*
%{_mandir}/man8/puppet-device.8.*
%{_mandir}/man8/puppet-doc.8.*
%{_mandir}/man8/puppet-facts.8.*
%{_mandir}/man8/puppet-filebucket.8.*
%{_mandir}/man8/puppet-generate.8.*
%{_mandir}/man8/puppet-help.8.*
%{_mandir}/man8/puppet-key.8.*
%{_mandir}/man8/puppet-lookup.8.*
%{_mandir}/man8/puppet-man.8.*
%{_mandir}/man8/puppet-module.8.*
%{_mandir}/man8/puppet-node.8.*
%{_mandir}/man8/puppet-parser.8.*
%{_mandir}/man8/puppet-plugin.8.*
%{_mandir}/man8/puppet-report.8.*
%{_mandir}/man8/puppet-resource.8.*
%{_mandir}/man8/puppet-script.8.*
%{_mandir}/man8/puppet-status.8.*
%{_mandir}/man8/puppet-ssl.8.*


%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /sbin/nologin

%post
%tmpfiles_create %{name}
%_post_service %{name}

%preun
%_preun_service %{name}

#-----------------------------------------------------------------------------

%package server
Summary:	Server for the puppet system management tool
Group:		Monitoring
Requires:	%{name} = %{EVRD}
Requires(post,preun):	rpm-helper

%description server
Provides the central puppet server daemon (puppetmaster) which provides
manifests to clients.
The server can also function as a certificate authority and file server.

%files server
%doc LICENSE
%config(noreplace) %{_sysconfdir}/%{name}/fileserver.conf
%dir %{_sysconfdir}/%{name}/manifests
%config(noreplace) %{_sysconfdir}/logrotate.d/puppetmaster
%{_unitdir}/puppetmaster.service

%post server
%_post_service puppetmaster

%preun server
%_preun_service puppetmaster

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# Nothing to do


%install
ruby install.rb \
    --destdir=%{buildroot} \
    --sitelibdir=%{ruby_vendorlibdir} \
    --localedir=%{_localedir} \
    --vardir=%{_localstatedir} \
    --configdir="%{_sysconfdir}/puppet" \
    --codedir="%{_sysconfdir}/puppet" \
    --rundir="/run/puppet" \
    --quick \
    --no-rdoc

# Prepare the needed directories
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}/manifests
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}/modules
install -d -m 0755 %{buildroot}%{_datadir}/%{name}/modules
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name}

# Copy all ext files
install -d %{buildroot}%{_datadir}/%{name}
cp -a ext/ %{buildroot}%{_datadir}/%{name}


# Install systemd units
install -D -m 644 ext/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/puppetmaster.service


# Install also tmpfiles config
install -D -m 644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf


# Install config files for the server
install -D -m 644 ext/redhat/fileserver.conf \
	%{buildroot}%{_sysconfdir}/%{name}/fileserver.conf


# Provide our logrotate config files since the one in ext/redhat
# is not useful for us
install -d  %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/puppetagent <<EOF
/var/log/puppet/*log {
    create 0644 puppet puppet
    sharedscripts
    postrotate
        /bin/systemctl reload puppet.service > /dev/null 2>&1 || true
    endscript
}
EOF

cat > %{buildroot}%{_sysconfdir}/logrotate.d/puppetmaster <<EOF
/var/log/puppet/*log {
    create 0644 puppet puppet
    sharedscripts
    postrotate
        /bin/systemctl reload puppetmaster.service > /dev/null 2>&1 || true
    endscript
}
EOF


# Install logcheck files
logcheckdir=%{buildroot}%{_sysconfdir}/logcheck/
install -D -m 644 ext/logcheck/puppet $logcheckdir/ignore.d.server/%{name}
install -D -m 644 ext/logcheck/puppet $logcheckdir/ignore.d.workstation/%{name}


# Remove misc packaging artifacts in source, not applicables to rpm
rm -rf %{buildroot}%{_datadir}/puppet/ext/{gentoo,freebsd,solaris,suse,windows,osx,ips,debian}
rm -f %{buildroot}%{_datadir}/puppet/ext/{build_defaults.yaml,project_data.yaml}
rm -f %{buildroot}%{_datadir}/puppet/ext/hiera/hiera.yaml
rm -f %{buildroot}%{_sysconfdir}/puppet/hiera.yaml
rm -f %{buildroot}%{_datadir}/puppet/ext/redhat/*.init
rm -f %{buildroot}%{_datadir}/locale/config.yaml
rm -f %{buildroot}%{_datadir}/locale/puppet.pot


# Fix perms
chmod +x %{buildroot}%{_datadir}/puppet/ext/regexp_nodes/regexp_nodes.rb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6686 |21cr|pureadmin-0.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil

Summary:	PureFTPd graphical manager
Name:		pureadmin
Version:	0.4
Release:	9
License:	GPL
Group:		Networking/File transfer
Url:		http://purify.sourceforge.net/
Source0:	http://dl.sourceforge.net/purify/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	autoconf2.5
BuildRequires:	fam-devel
BuildRequires:	pkgconfig(libglade-2.0)
Requires:	pure-ftpd

%description
PureAdmin is a graphical tool used to make the management of PureFTPd
a little easier. It uses the GTK+2.x widgets for its GUI and thus are
not dependent on a specific desktop environment such as GNOME or KDE.
It is, however, designed with the GNOME Human Interface Guidelines in
mind so it should integrate nicely with at least GNOME.

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/*/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/pureadmin.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fcommon
%configure
%make LIBS="-lX11 -lpthread -lfam -ldl -lcrypt -lm"

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6687 |21cr|purple-battlenet-0.9-0.20201219
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	plugin_name battlenet
%define	gitdate 20201219

Summary:	Battlenet plugin for libpurple
Name:		purple-%{plugin_name}
Version:	0.9
Release:	0.%{gitdate}
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/EionRobb/purple-battlenet
# Clone https://github.com/EionRobb/purple-battlenet.git and export master HEAD (at %%{gitdate})
Source0:	purple-%{plugin_name}-%{gitdate}.tar.xz
BuildRequires:	protobuf-c
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libprotobuf-c)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(zlib)
Requires:	pidgin

%description
Adds support for battlenet to Pidgin, Adium, Finch and other libpurple-based
messengers.

%files
%doc README.md
%{_libdir}/purple-2/lib%{plugin_name}.so
%{_datadir}/pixmaps/pidgin/protocols/*/%{plugin_name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn purple-%{plugin_name}-%{gitdate}


%build
%setup_compile_flags
export LDFLAGS="$LDFLAGS -Wl,-lz"
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6688 |21cr|purple-carbons-0.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_ld_no_undefined 1
%global debug_package %{nil}

%define	oname	carbons
%define	purple_plugindir	%(pkg-config --variable plugindir purple)

Summary:	Message Carbons plugin for libpurple
Name:		purple-%{oname}
Version:	0.2.3
Release:	1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://github.com/gkdr/carbons
Source0:	https://github.com/gkdr/%{oname}/archive/v%{version}.tar.gz/%{oname}-%version.tar.gz
BuildRequires:	pidgin-plugins
BuildRequires:	libgcrypt-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(purple)


%description
Experimental XEP-0280: Message Carbons plugin for libpurple (Pidgin, Finch..).

%files
%doc README.md
%{purple_plugindir}/%{oname}.so

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

# Fix perms
find . -name "*.h" | xargs chmod -x


%build
%setup_compile_flags
%make


%install
%makeinstall_std PURPLE_PLUGIN_DIR="%{purple_plugindir}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6689 |21cr|purple-discord-20220514-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gitdate 20210506

Summary:	Discord Plugin for Pidgin and Spectrum
Name:		purple-discord
Version:	20220514
Release:	1
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/EionRobb/purple-discord
# No releases or tags: user master HEAD at %%{gitdate}
Source0:	%{name}-%{gitdate}.tar.xz
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	protobuf-c
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(zlib)

%description
Discord Plugin for Pidgin and Spectrum.

%files -f %{name}.lang
%doc README.md LICENSE
%{_libdir}/purple-2/libdiscord.so
%{_datadir}/pixmaps/pidgin/protocols/*/discord.png

#--------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}


%build
%setup_compile_flags
export LDFLAGS="%{ldflags} -lz"
%make 


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6690 |21cr|purple-facebook-0.9.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	rgitrev	0

Summary:	Facebook chat plugin for libpurple IM clients
Name:		purple-facebook
# Version should be greater than "0.0" erroneously used in initial build pushed to repos
Version:	0.9.6
Release:	2
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://github.com/jgeboski/purple-facebook
Source0:	https://github.com/dequis/purple-facebook/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(purple)
%rename	pidgin-facebookchat

%description
Purple Facebook implements the Facebook Messenger protocol into Pidgin, Finch
and libpurple.

%files
%doc AUTHORS COPYING README
%{_libdir}/purple-2/libfacebook.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6691 |21cr|purple-funyahoo-plusplus-0.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname funyahoo-plusplus

Summary:	A replacement Yahoo prpl (protocol plugin) for Pidgin/libpurple
Name:		purple-funyahoo-plusplus
Version:	0.9
Release:	4
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/EionRobb/funyahoo-plusplus
Source0:	https://github.com/EionRobb/%{oname}/archive/master.zip
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(purple)

%description
A replacement Yahoo prpl (protocol plugin) for Pidgin/libpurple compatible with
the new protocol enforced by Yahoo since Sept 2016

%files
%doc README.md LICENSE
%{_libdir}/purple-2/libyahoo-plusplus.so

#----------------------------------------------------------------------------

%prep
%setup -n funyahoo-plusplus-master -q

%build
%make

%install
mkdir -p %{buildroot}/%{_libdir}/purple-2/
mv libyahoo-plusplus.so %{buildroot}/%{_libdir}/purple-2/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6692 |21cr|purple-hangouts-1.0-0.20190607.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	plugin_name hangouts

%global	commit 3f7d89bf9ce2
%global	date 20190607

Summary:	Hangouts plugin for libpurple
Name:		purple-%{plugin_name}
Version:	1.0
Release:	0.%{date}.1
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://bitbucket.org/EionRobb/purple-hangouts/
Source0:	https://bitbucket.org/EionRobb/purple-hangouts/get/default.tar.gz?/EionRobb-purple-%{plugin_name}-%{commit}.tar.bz2
BuildRequires:	protobuf-c
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libprotobuf-c)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(zlib)

%description
Adds support for Hangouts to Pidgin, Adium, Finch and other libpurple-based
messengers.

%files
%doc gpl3.txt README.md
%{_libdir}/purple-2/lib%{plugin_name}.so

#----------------------------------------------------------------------------

%package -n pidgin-%{plugin_name}
Summary:	Adds pixmaps, icons and smileys for Hangouts protocol
Group:		Networking/Instant messaging
Requires:	%{name} = %{EVRD}
Requires:	pidgin
BuildArch:	noarch

%description -n pidgin-%{plugin_name}
Adds pixmaps, icons and smileys for Hangouts protocol inplemented by
purple-hangouts.

%files -n pidgin-%{plugin_name}
%doc gpl3.txt README.md
%{_datadir}/pixmaps/pidgin/protocols/*/%{plugin_name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn EionRobb-purple-%{plugin_name}-%{commit}


%build
export CFLAGS="%{build_cflags}"
export LDFLAGS="%{build_ldflags}"
%make


%install
%makeinstall_std

# Installing one more icon...
mkdir -p %{buildroot}%{_datadir}/pixmaps/pidgin/protocols/24/
install -p hangouts24.png %{buildroot}%{_datadir}/pixmaps/pidgin/protocols/24/%{plugin_name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6693 |21cr|purple-icyque-0.1-1.git.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname icyque
%define plugin_name icyque

Summary:	Adds support for icyque WIM to Pidgin
Name:		purple-%{plugin_name}
Version:	0.1
Release:	1.git.1
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/EionRobb/icyque
# From git by tag
Source0:	https://github.com/EionRobb/icyque/archive/master.zip?/%{oname}-master.zip
BuildRequires:	cmake
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(zlib)

%description
Adds support for Skype to Pidgin, Adium, Finch and other libpurple 
based messengers.

%files
%doc README.md
%{_libdir}/purple-2/lib%{plugin_name}.so

#----------------------------------------------------------------------------

%package -n pidgin-%{plugin_name}
Summary:	Adds pixmaps, icons and smileys for Skype protocol
Requires:	%{name} = %{EVRD}
Requires:	pidgin
BuildArch:	noarch

%description -n pidgin-%{plugin_name}
Adds pixmaps, icons and smileys for icyque

%files -n pidgin-%{plugin_name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-master

%build
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6694 |21cr|purple-mattermost-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	plugin_name mattermost

Summary:	Adds support for Mattermost to Pidgin
Name:		purple-%{plugin_name}
Version:	2.0
Release:	1
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/EionRobb/purple-mattermost
Source0:	https://github.com/EionRobb/purple-mattermost/archive/refs/tags/%{name}-%{version}.tar.gz
Patch0:		purple-mattermost-2.0-fix-linkage.patch
# From upstream
Patch1:		purple-mattermost-2.0-fix-edited-and-deleted-message.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libmarkdown)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(zlib)

%description
Adds support for Mattermost to Pidgin, Adium, Finch and other libpurple based
messengers.

%files
%doc AUTHORS LICENSE README.md
%{_libdir}/purple-2/lib%{plugin_name}.so

#----------------------------------------------------------------------------

%package -n pidgin-%{plugin_name}
Summary:	Adds pixmaps for Mattermost protocol
Requires:	%{name} = %{EVRD}
Requires:	pidgin
BuildArch:	noarch

%description -n pidgin-%{plugin_name}
Adds pixmaps for Mattermost protocol inplemented by libmattermost.

%files -n pidgin-%{plugin_name}
%doc LICENSE
%{_datadir}/pixmaps/pidgin/protocols/*/%{plugin_name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%setup_compile_flags
%make


%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6695 |21cr|purple-plugin-pack-2.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Compilation of plugins for libpurple and Pidgin
Name:		purple-plugin-pack
Version:	2.8.0
Release:	1
License:	GPLv2+ and GPLv3+
Group:		Networking/Instant messaging
Url:		https://keep.imfreedom.org/pidgin/purple-plugin-pack/
Source0:	https://downloads.sourceforge.net/pidgin/purple%20plugin%20pack/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(finch)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnt)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkspell-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pidgin)
BuildRequires:	pkgconfig(purple)
Recommends:	pidgin-plugin-pack
Conflicts:	pidgin-plugin-pack < 2.7.0-4

%description
The Purple Plugin Pack is a compilation of plugins for the libpurple
family of IM clients.

%files -f plugin_pack.lang
%doc AUTHORS ChangeLog COPYING README.md
%{_datadir}/metainfo/purple-plugin-pack.metainfo.xml
%{_libdir}/purple-2/autoreply.so
%{_libdir}/purple-2/bash.so
%{_libdir}/purple-2/capsnot.so
%{_libdir}/purple-2/colorize.so
%{_libdir}/purple-2/dewysiwygification.so
%{_libdir}/purple-2/dice.so
%{_libdir}/purple-2/eight_ball.so
%{_libdir}/purple-2/flip.so
%{_libdir}/purple-2/google.so
%{_libdir}/purple-2/groupmsg.so
%{_libdir}/purple-2/highlight.so
%{_libdir}/purple-2/ignore.so
%{_libdir}/purple-2/irchelper.so
%{_libdir}/purple-2/irc-more.so
%{_libdir}/purple-2/listhandler.so
%{_libdir}/purple-2/ning.so
%{_libdir}/purple-2/okcupid.so
%{_libdir}/purple-2/oldlogger.so
%{_libdir}/purple-2/omegle.so
%{_libdir}/purple-2/showoffline.so
%{_libdir}/purple-2/simfix.so
%{_libdir}/purple-2/slashexec.so
%{_libdir}/purple-2/snpp.so
%{_libdir}/purple-2/splitter.so
%{_libdir}/purple-2/sslinfo.so
%{_libdir}/purple-2/translate.so
%{_libdir}/purple-2/xmppprio.so

#----------------------------------------------------------------------------

%package -n pidgin-plugin-pack
Summary:	Compilation of plugins for Pidgin
Group:		Networking/Instant messaging
Requires:	%{name}
Requires:	pidgin

%description -n pidgin-plugin-pack
The Purple Plugin Pack is a compilation of plugins for the
libpurple family of IM clients.

This package provides the Pidgin plugins from the Purple Plugin Pack.

%files -n pidgin-plugin-pack
%doc AUTHORS ChangeLog COPYING README.md
%{_libdir}/pidgin/album.so
%{_libdir}/pidgin/blistops.so
%{_libdir}/pidgin/convbadger.so
%{_libdir}/pidgin/difftopic.so
%{_libdir}/pidgin/enhancedhist.so
%{_libdir}/pidgin/gRIM.so
%{_libdir}/pidgin/icon-override.so
%{_libdir}/pidgin/irssi.so
%{_libdir}/pidgin/lastseen.so
%{_libdir}/pidgin/listlog.so
%{_libdir}/pidgin/mystatusbox.so
%{_libdir}/pidgin/nicksaid.so
%{_libdir}/pidgin/plonkers.so
%{_libdir}/pidgin/schedule.so
%{_libdir}/pidgin/sepandtab.so
%{_libdir}/pidgin/timelog.so
%{_datadir}/pixmaps/pidgin/protocols/*/okcupid.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang plugin_pack

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6696 |21cr|purple-rocketchat-0.20220130-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	plugin_name	rocketchat
# No releases tagged: use HEAD at %%gitdate
%define	gitdate	20200717

Summary:	Rocket.Chat plugin for Pidgin and Spectrum
Name:		purple-%{plugin_name}
Version:	0.20220130
Release:	1
Group:		Networking/Instant messaging
License:	GPLv3+
Url:		https://github.com/EionRobb/purple-rocketchat
# Original tarball: https://github.com/EionRobb/purple-rocketchat/archive/master.zip
Source0:	purple-%{plugin_name}-%{gitdate}.tar.xz
Patch0:		purple-rocketchat-20200717-handle-newer-servers.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libmarkdown)
BuildRequires:	pkgconfig(purple)
Requires:	pidgin

%description
Plugin for Pidgin and Spectrum that adds support for Rochet.Chat.

%files
%doc README.md LICENSE
%{_libdir}/purple-2/lib%{plugin_name}.so
%{_datadir}/pixmaps/pidgin/protocols/*/%{plugin_name}.png

#-----------------------------------------------------------------------------

%prep
%setup -qn purple-%{plugin_name}-%{gitdate}
%patch0 -p1


%build
%setup_compile_flags
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6697 |21cr|purple-skypeweb-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname skype4pidgin
%define plugin_name skypeweb

Summary:	Adds support for Skype to Pidgin
Name:		purple-%{plugin_name}
Version:	1.7
Release:	1
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/EionRobb/skype4pidgin
Source0:	https://github.com/EionRobb/skype4pidgin/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		purple-skypeweb-linkage.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(zlib)

%description
Adds support for Skype to Pidgin, Adium, Finch and other libpurple 
based messengers.

%files
%doc README.md
%{_libdir}/purple-2/lib%{plugin_name}.so

#----------------------------------------------------------------------------

%package -n pidgin-%{plugin_name}
Summary:	Adds pixmaps, icons and smileys for Skype protocol
Requires:	%{name} = %{EVRD}
Requires:	pidgin
BuildArch:	noarch

%description -n pidgin-%{plugin_name}
Adds pixmaps, icons and smileys for Skype protocol inplemented by libskypeweb.

%files -n pidgin-%{plugin_name}
%{_datadir}/pixmaps/pidgin/protocols/*/skype*.png
%{_datadir}/pixmaps/pidgin/emotes/skype/theme

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}/skypeweb

%build
%cmake
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/pixmaps/pidgin/emotes/skype/
install theme %{buildroot}%{_datadir}/pixmaps/pidgin/emotes/skype/theme

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6698 |21cr|purple-slack-0.1-1git657bf33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname slack
%define plugin_name slack

Summary:	Pidgin/libpurple plugin for Slack
Name:		purple-%{plugin_name}
Version:	0.1
Release:	1git657bf33
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/EionRobb/slack-libpurple 
Source0:	https://github.com/EionRobb/slack-libpurple/archive/master.zip?/%{name}.zip
BuildRequires:	cmake
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(zlib)

%description
Adds support for Skype to Pidgin, Adium, Finch and other libpurple 
based messengers

%files
%doc README.md
%{_libdir}/purple-2/lib%{plugin_name}.so

#----------------------------------------------------------------------------

%package -n pidgin-%{plugin_name}
Summary:	Adds pixmaps, icons and smileys for Slack protocol
Requires:	%{name} = %{EVRD}
Requires:	pidgin

%description -n pidgin-%{plugin_name}
Adds pixmaps, icons and smileys for slack

%files -n pidgin-%{plugin_name}
%{_datadir}/pixmaps/pidgin/protocols/*/slack*.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-libpurple-master

%build
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6699 |21cr|purple-telegram-1.4.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define oname	telegram-purple

Summary:	Adds support for Libpurple based messengers
Name:		purple-telegram
Version:	1.4.7
Release:	1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://github.com/majn/telegram-purple
Source0:	https://github.com/majn/telegram-purple/releases/download/v%{version}/%{oname}_%{version}.orig.tar.gz
BuildRequires:	gettext
BuildRequires:	libgcrypt-devel
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(zlib)

%description
Adds support for Telegram to Pidgin, Adium, Finch
and other Libpurple based messengers.

%files -f %{oname}.lang
%doc README* CHANGELOG*
%{_appdatadir}/%{oname}.metainfo.xml
%{_datadir}/pixmaps/pidgin/protocols/*/telegram.png
%{_libdir}/purple-2/%{oname}.so

#----------------------------------------------------

%prep
%setup -q -n %{oname}

%build
export optflags="%{optflags} -Wno-cast-function-type"
%configure
%make

%install
%makeinstall_std
chmod 755 %{buildroot}/%{_libdir}/purple-2/%{oname}.so
%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6700 |21cr|purple-vk-plugin-0.9+r346-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Purple-vk is a plugin for Pidgin, which supports vk.com messaging
Name:		purple-vk-plugin
Version:	0.9+r346
Release:	4
License:	GPLv2+
Group:		Networking/WWW
Url:		https://bitbucket.org/olegoandreev/purple-vk-plugin
Source0:	%{name}-%{version}.tar.gz
Buildrequires:	cmake
Buildrequires:	pkgconfig(libxml-2.0)
Buildrequires:	pkgconfig(pidgin)

%description
Purple-vk-plugin is a plugin for Pidgin, which supports Vk.com
(Vkontakte) messaging

%files
%{_libdir}/purple-2/libpurple-vk-plugin.so
%{_datadir}/pixmaps/pidgin/emotes/vk/*
%{_datadir}/pixmaps/pidgin/protocols/16/*
%{_datadir}/pixmaps/pidgin/protocols/22/*
%{_datadir}/pixmaps/pidgin/protocols/48/*

#------------------------------------------------------------------

%prep
%setup -q

%build
cd build
cmake ..
%make 

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6701 |21cr|pushover-0.0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pushover
Version:	0.0.5
Release:	5
Summary:	Fun puzzle game with dominos
Group:		Games/Puzzles
License:	GPLv3
URL:		http://pushover.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop

BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(zlib)

%description
Rearrange the dominoes on the different platforms so that you can start a
chain reaction that makes all dominoes topple over.

%prep
%setup -q

# Fix char encoding
iconv --from=ISO-8859-1 --to=UTF-8 ChangeLog > ChangeLog.utf8
touch -r ChangeLog ChangeLog.utf8
mv ChangeLog.utf8 ChangeLog

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

# Remove installed docs
rm -rf %{buildroot}%{_docdir}/%{name}

# Install icons (16, 32, 48, 64px)
for i in 0 1 2 3; do
    px=$(expr ${i} \* 16 + 16)
    mkdir -p %{buildroot}%{_iconsdir}/hicolor/${px}x${px}/apps
    convert %{name}.ico[${i}] \
	%{buildroot}%{_iconsdir}/hicolor/${px}x${px}/apps/%{name}.png
done

# Install desktop file
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{SOURCE1}

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6702 |21cr|putty-0.80-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SSH, Telnet and Rlogin client
Name:		putty
Version:	0.80
Release:	1
Epoch:		2
License:	MIT
Group:		Networking/Remote access
Url:		http://www.chiark.greenend.org.uk/~sgtatham/putty/
Source0:	https://the.earth.li/~sgtatham/putty/latest/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Source2:	%{name}-icons.tar.bz2
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(gtk+-3.0)

%description
This is the Unix port of the popular Windows ssh client, PuTTY. It
supports flexible terminal setup, mid-session reconfiguration using
Ctrl-rightclick, multiple X11 authentication protocols, and various
other interesting things not provided by ssh in an xterm.

%files
%doc LICENCE README CHECKLST.txt doc/html/*.html
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/putty.png
%{_mandir}/man1/*.1*

#--------------------------------------------------------------

%prep
%autosetup -p1
%setup -q -T -D -a2

%build
%cmake
%make


%install
%makeinstall_std -C build

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{SOURCE1}

install -D -m 644 %{name}48.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -D -m 644 %{name}32.png %{buildroot}/%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -D -m 644 %{name}32.png %{buildroot}/%{_datadir}/icons/%{name}.png
install -D -m 644 %{name}16.png %{buildroot}/%{_datadir}/icons/hicolor/16x16/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6703 |21cr|puzzle-jigsaw-1.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           puzzle-jigsaw
Version:        1.0.2
Release:        2
Summary:        Tiling puzzle that requires the assembly mosaiced pieces
Group:          Games/Puzzles
License:        GPLv3+
Url:            https://bitbucket.org/admsasha/puzzle-jigsaw
Source0:        https://bitbucket.org/admsasha/puzzle-jigsaw/downloads/%{name}-%{version}.tar.gz

BuildRequires:  qt5-linguist-tools
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Multimedia)

%description
puzzle-jigsaw  is a tiling puzzle that requires the assembly 
of often oddly shaped interlocking and mosaiced pieces.

%files
%doc README* CONTRIBUTORS
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
lrelease-qt5 %{name}.pro
%qmake_qt5
%make

%install
%make_install INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6704 |21cr|pvc-3.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pvc
Version:	3.0
Release:	8
Summary:	Stereo LADSPA effects rack for the JACK audio API
License:	GPL
Group:		Sound
# URL is dead
# There is a newer fork at https://sourceforge.net/projects/pvcplus/?source=typ_redirect
URL:	http://www.music.princeton.edu/winham/PPSK/koonce.html
Source0:	PVC-%{version}-linux.tar.gz
Patch0:		PVC-3.0-fileio.patch.bz2
Patch1:		pvc-huge.patch

%description
PVC is a collection of phase vocoder signal processing routines and
accompanying shell scripts for use in the transformation and manipulation of
sounds. It is written in C and designed to be used in a UNIX environment. It
has come about as a result of my (Paul Koonce's) path of education and
research into phase vocoder technology.

%files
%doc README HTML/*
%{_bindir}/*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n PVC-%{version}-linux


%build
make DESTDIR=%{_bindir}

%install
mkdir -p %{buildroot}%{_bindir}
make DESTDIR=%{buildroot}%{_bindir} install
# /usr/bin/filter conflicts with cleanfeed
mv %{buildroot}%{_bindir}/filter %{buildroot}%{_bindir}/pvcfilter

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6705 |21cr|pvoc-0.1.12-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

Summary:	LADSPA plugins for time compression/expansion of sound data
Name:		pvoc
Version:	0.1.12
Release:	8
License:	GPLv2+
Group:		Sound
Url:		http://quitte.de/dsp/pvoc.html
Source0:	http://quitte.de/dsp/%{name}_%{version}.tar.gz
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(sndfile)

%description
pvoc is a collection of LADSPA units and a command line tool for time
compression / expansion of sound data making use of the phase-vocoding
technique.

%files
%doc README
%{_bindir}/stretch
%{_libdir}/ladspa/%{name}.so
%{_mandir}/man1/stretch.1*

#-----------------------------------------------------------------------------

%prep
%setup -q 

%build
make PREFIX=%{_prefix} MAN1DEST=%{_mandir}/man1 PLUGDEST=%{_libdir}/ladspa

%install
make PREFIX=%{buildroot}%{_prefix} MAN1DEST=%{buildroot}%{_mandir}/man1 PLUGDEST=%{buildroot}%{_libdir}/ladspa install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6706 |21cr|pvpgn-1.99.7.1-1.git.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 2f5da2232fc9dd9d518d52f032de8c5834c4dae5
%define support_version 1.3

%define _disable_ld_no_undefined 1

#exclude requires bundled version of lib
%define __requires_exclude libcommon\\.so.*|libcompat\\.so.*|libtinycdb\\.so.*|libwin32\\.so.*

Summary:	PvPGN is a BNETD mod which aims to provide support for all Blizzard clients
Name:		pvpgn
Version:	1.99.7.1
Release:	1.git.2
License:	GPLv2+
Group:		Games/Other
Url:		https://github.com/D2GSE/pvpgn-server
Source0:	https://github.com/D2GSE/pvpgn-server/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source3:	%{name}.service
Source4:	%{name}.logrotate
Source5:	%{name}-tmpfiles.conf
Patch1:		DefineInstallationPaths.cmake.patch
BuildRequires:	cmake
BuildRequires:	mysql-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(zlib)
Requires(pre):	shadow-utils
Requires(post,preun,postun):	systemd
Provides:	pvpgn-server = %{EVRD}

%description
PvPGN is a BNETD mod which aims to provide support for all Blizzard clients
(thus it supports all BNETD supported clients plus the most recent ones).
The list of supported clients and their minimum verion required is:
- Diablo 1 v1.09
- Starcraft v1.08
- BroodWar v1.08
- Warcraft II Battle.Net Edition v2.05
- Diablo 2 v1.10 (*)
- Diablo 2 LOD v1.10
- Warcraft III Reign Of Chao
- Warcraft III Frozen Throne

This build of PvPGN is linked with MySQL libraries.

%files
%config(noreplace) %{_sysconfdir}/%{name}/*
%doc docs/* version-history.txt NEWS README* CREDITS COPYING
%{_bindir}/*
%{_sbindir}/*
%{_sysconfdir}/logrotate.d/%{name}
%{_unitdir}/%{name}.service
%{_mandir}/*
%{_var}/lib/%{name}/*
%{_tmpfilesdir}/%{name}.conf
%attr(750,pvpgn,pvpgn) %dir %{_logdir}/%{name}
%ghost %attr(750,pvpgn,pvpgn) %dir %{_var}/run/%{name}
%attr(750,pvpgn,pvpgn) %dir %{_var}/lib/%{name}

%pre
%{_sbindir}/groupadd -r -f pvpgn 2>/dev/null ||:
%{_sbindir}/useradd -g pvpgn -c 'PvPGN' -d /dev/null -s '' -r pvpgn 2>/dev/null ||:

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-server-%{commit}

%build
%cmake \
	-DWITH_MYSQL=ON
%make

%install
%makeinstall_std -C build
install -d -m755 %{buildroot}%{_sysconfdir}/pvpgn
install -d -m755 %{buildroot}%{_unitdir}
install -d -m755 %{buildroot}%{_var}/log/pvpgn
install -d -m750 %{buildroot}%{_sysconfdir}/logrotate.d
install -d -m755 %{buildroot}%{_tmpfilesdir}
install -m755 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
install -m640 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/pvpgn
install -m644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf
mkdir -p -m750 %{buildroot}%{_var}/run/%{name}

# support files
#mkdir -p %{buildroot}%{_var}/lib/pvpgn/files/
#cp -r %{name}-support-%{support_version}/* %{buildroot}%{_var}/lib/pvpgn/files/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6707 |21cr|pwauth-2.3.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Unix Web Authenticator
Name:		pwauth
Version:	2.3.10
Release:	1
License:	BSD
Group:		System/Servers
URL:		https://github.com/phokz/pwauth
Source0:	https://github.com/phokz/pwauth/archive/pwauth-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	pwauth.pam
Patch0:		pwauth-typo_fix.diff
Patch1:		pwauth-config.diff
Patch2:		pwauth-2.3.2-pam.diff
Patch3:		pwauth-2.3.10-server.diff
Patch4:		pwauth-ldflags_fix.diff
BuildRequires:	pam-devel

%description
Pwauth is an authenticator designed to be used with
mod_auth_external and the Apache HTTP Daemon to support reasonably
secure web authentication out of the system password database on
most versions of Unix. 

What pwauth actually does is very simple. Given a login and a
password, it returns a status code indicating whether it is a
valid login/password or not. It is normally installed as an
suid-root program, so other programs (like Apache or a CGI
program) can run it to check if a login/password is valid even
though they don't themselves have read access to the system
password database.

%prep

%setup -q -n %{name}-%{name}-%{version}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p1
%patch4 -p0

cp %{SOURCE1} pwauth.pam

%build
%serverbuild

%make CFLAGS="$CFLAGS" LDFLAGS="%{ldflags}" LIB="-lpam -ldl"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sysconfdir}/pam.d
install -d %{buildroot}%{_bindir}

install -m0755 pwauth %{buildroot}%{_bindir}/
install -m0755 unixgroup %{buildroot}%{_bindir}/

install -m0644 pwauth.pam %{buildroot}%{_sysconfdir}/pam.d/pwauth
install -m0644 pwauth.pam %{buildroot}%{_sysconfdir}/pam.d/unixgroup

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES FORM_AUTH INSTALL README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/pwauth
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/unixgroup
%attr(04550,root,apache) %{_bindir}/pwauth
%attr(04550,root,apache) %{_bindir}/unixgroup

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6708 |21cr|pwdb-0.62-32
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname pwdb %{major}
%define devname %mklibname pwdb -d
%define sdevname %mklibname pwdb -d -s

Summary:	The password database library
Name:		pwdb
Version:	0.62
Release:	32
License:	GPLv2+
Group:		System/Libraries
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-0.62-includes.patch
Patch1:		pwdb-0.62-makefile.patch
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libnsl)

%description
The pwdb package contains libpwdb, the password database library.
Libpwdb is a library which implements a generic user information
database.  Libpwdb was specifically designed to work with Linux's PAM
(Pluggable Authentication Modules).  Libpwdb allows configurable
access to and management of security tools like /etc/passwd,
/etc/shadow and network authentication systems including NIS and
Radius.

#----------------------------------------------------------------------------

%package conf
Summary:	The password database library config
Group:		System/Base

%description conf
Configuration package for the libpwdb, the password database library.

%files conf
%doc Copyright doc/pwdb.txt doc/html
%config(noreplace) %{_sysconfdir}/pwdb.conf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The password database library
Group:		System/Libraries
Requires:	%{name}-conf
%rename		pwdb

%description -n %{libname}
The pwdb package contains libpwdb, the password database library.
Libpwdb is a library which implements a generic user information
database.  Libpwdb was specifically designed to work with Linux's PAM
(Pluggable Authentication Modules).  Libpwdb allows configurable
access to and management of security tools like /etc/passwd,
/etc/shadow and network authentication systems including NIS and
Radius.

%files -n %{libname}
/%{_lib}/libpwdb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The pwdb include files and link library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	pwdb-devel = %{EVRD}
Conflicts:	%{_lib}pwdb0-devel < 0.62-25
Obsoletes:	%{_lib}pwdb0-devel < 0.62-25

%description -n %{devname}
The development header / link library for pwdb.

%files -n %{devname}
/%{_lib}/libpwdb.so
%{_includedir}/pwdb

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	The pwdb static library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Conflicts:	%{_lib}pwdb0-static-devel < 0.62-25
Obsoletes:	%{_lib}pwdb0-static-devel < 0.62-25

%description -n %{sdevname}
The pwdb static library.

%files -n %{sdevname}
/%{_lib}/libpwdb.a

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

rm default.defs
ln -s defs/redhat.defs default.defs
# checking out of the CVS sometimes preserves the setgid bit on
# directories...
chmod -R g-s .

%build
%setup_compile_flags
export LDLIBS="-ltirpc"

sed -i \
	-e "s/^DIRS = .*/DIRS = libpwdb/" \
	-e "s:EXTRAS += :EXTRAS += %{optflags} :" \
	Makefile


sed -i \
	-e "s:=gcc:=%{__cc}:g" \
	-e "s:=ar:=%{__ar}:g" \
	-e "s:=ranlib:=%{__ranlib}:g" \
	default.defs

%make

%install
mkdir -p %{buildroot}/{%{_lib},%{_sysconfdir},%{_includedir}/pwdb}
make \
	INCLUDED=%{buildroot}%{_includedir}/pwdb \
	LIBDIR=%{buildroot}/%{_lib} \
	LDCONFIG=":" \
	install

install conf/pwdb.conf %{buildroot}%{_sysconfdir}/pwdb.conf

ln -sf lib%{name}.so.%{version} %{buildroot}/%{_lib}/lib%{name}.so.%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6709 |21cr|pwgen-2.07-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:         pwgen
URL:          http://sourceforge.net/projects/pwgen/
License:      GPL
Group:        Text tools
Version:      2.07
Release:      3
Summary:      Password generator
Source:       http://belnet.dl.sourceforge.net/sourceforge/pwgen/pwgen-%{version}.tar.gz
Source1:      ftp://ftp.linpeople.org/pub/People/lilo/source/makepasswd-1.10.tar.bz2
BuildRequires: perl
BuildRequires: zlib-devel

%description
pwgen generates random, meaningless but pronounceable and thus easy to
remember passwords. The also contained makepasswd gives even more
options which are more aimed at security.

Authors:
--------
    Theodore Ts'o <tytso@alum.mit.edu> (this version)
    Brandon S. Allbery <allbery@ncoast.UUCP> (previous version)
    Rob Levin <levin@openproject.net> (previous version)

%prep
%setup -q -b 1
cd ../makepasswd-1.10
chmod 644 *

%build
autoconf
%configure
%make

%install
mkdir -p	%{buildroot}%{_bindir}
mkdir -p	%{buildroot}%{_mandir}/man1
%makeinstall_std
cd ../makepasswd-1.10
install -m 755 makepasswd	%{buildroot}%{_bindir}/makepasswd2
install -m 644 makepasswd.1	%{buildroot}%{_mandir}/man1/makepasswd2.1

%files
%{_mandir}/man1/*
%{_bindir}/makepasswd2
%{_bindir}/pwgen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6710 |21cr|pxmutils-0.7.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define __libtoolize /bin/true

Summary:	A library that's used by the polyxmass framework
Name:		pxmutils
Version:	0.7.0
Release:	13
License:	GPLv2+
Group:		Sciences/Chemistry
Url:		http://polyxmass.org/libpxmutils
Source0:	lib%{name}-%{version}.tar.bz2
Patch0:		libpxmutils-0.7.0-pkgconfig.patch
Patch1:		libpxmutils-0.7.0-glib2.40.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
%{name} is a handy library of helper functions. This C library is
designed to provide a number of useful functionalities which the
programs in the polyxmass(TM) mass spectrometry framework require.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname} -f lib%{name}.lang
%{_libdir}/libpxmutils.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}pxmutils3-devel < 0.7.0-10
Obsoletes:	%{_lib}pxmutils3-devel < 0.7.0-10

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc ABOUT-NLS AUTHORS COPYING NEWS README TODO
%{_includedir}/lib%{name}
%{_mandir}/man1/*
%{_libdir}/libpxmutils.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n lib%{name}-%{version}
%patch0 -p1
%patch1 -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std
rm -fr %{buildroot}/%{_docdir}/lib%{name}

%find_lang lib%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6711 |21cr|pxsup2dast-20120704-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Project X sup to dvdauthor subtitle xml converter
Name:		pxsup2dast
Version:	20120704
Release:	3
Group:		Video
License:	GPLv2+
URL:		http://www.guru-group.fi/~too/sw/m2vmp2cut/
Source0:	http://www.guru-group.fi/~too/sw/m2vmp2cut/pxsup2dast.c
Source100:	%{name}.rpmlintrc
BuildRequires:	zlib-devel

%description
Converts Project X sup files to dvdauthor subtitle xml files.

%files
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T
cp -a %{SOURCE0} .


%build
# and points go to the author for his imaginative build system :)
export CC="%{__cc} %{optflags}"
sh pxsup2dast.c


%install
install -d -m755 %{buildroot}%{_bindir}
install -m755 %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6712 |21cr|pxz-4.999.9-3.beta.20100608git
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_date 20100608

Summary:	Parallel LZMA compressor using XZ
Name:		pxz
Version:	4.999.9
Release:	3.beta.%{git_date}git
License:	GPLv2+
Group:		Archiving/Compression
# source created as "make dist" in checked out GIT tree: git clone git://github.com/jnovy/pxz.git
Source0:	http://jnovy.fedorapeople.org/%{name}/%{name}-%{version}beta.%{git_date}git.tar.xz
URL:		http://jnovy.fedorapeople.org/pxz
BuildRequires:	liblzma-devel libgomp-devel

%description
Parallel XZ is a compression utility that takes advantage of running
XZ compression simultaneously on different parts of an input file on
multiple cores and processors. This significantly speeds up compression time.

%prep
%setup -q -n %{name}-%{version}beta

%build
export CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
%make

%install
%makeinstall_std

%files
%{_mandir}/man1/pxz.1*
%{_bindir}/pxz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6713 |21cr|pyalsa-1.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python ALSA bindings
Name:		pyalsa
Version:	1.2.7
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:        https://www.alsa-project.org/wiki/Download
Source0:	http://www.alsa-project.org/files/pub/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(python2)

%description
This package provides the Python binding to ALSA.

%files
%{py2_platsitedir}/%{name}
%{py2_platsitedir}/*.egg-info

#----------------------------------------------------------------------------


%package -n python3-%{name}
Summary:	Python3 bindings for ALSA
Group:		Development/Python

%description -n python3-%{name}
This package provides the Python3 binding to ALSA.

%files -n python3-%{name}
%{py3_platsitedir}/%{name}
%{py3_platsitedir}/*egg-info

#---------------------------------------------------------------------------


%prep
%setup -q
cp -a . %{py3dir}

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
pushd %{py3dir}
%py3_build
popd

%py2_build


%install
pushd %{py3dir}
%py3_install
popd

%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6714 |21cr|pyao-0.82-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A wrapper for the ao libraries
Name:		pyao
Version:	0.82
Release:	20
License:	GPLv3
Url:	    http://ekyo.nerim.net/software/pyogg/index.html
Source0:	http://ekyo.nerim.net/software/pyogg/%{name}-%{version}.tar.gz
Group:		Development/Python
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)

%description
This is a wrapper for libao, an audio device abstraction
library.

%files
%doc README.* AUTHORS ChangeLog LICENSE
%{py2_platsitedir}/*
#----------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 wrapper for ao libs
Group:		Development/Python

%description -n python3-%{name}
This package provides the Python3 wrapper to ao libs.

%files -n python3-%{name}
%doc README.* AUTHORS ChangeLog LICENSE
%{py3_platsitedir}/*
#---------------------------------------------------------------------------


%prep
%setup -q
cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd

%py2_build

%install
pushd %{py3dir}
%py3_install
popd

%py2_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6715 |21cr|pyaudio-0.2.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkg_name PyAudio

Name:		pyaudio
Version:	0.2.8
Release:	6
License:	MIT
Url:		http://people.csail.mit.edu/hubert/pyaudio/
Source0:	http://people.csail.mit.edu/hubert/pyaudio/packages/%{name}-%{version}.tar.gz
Group:		System/Libraries
Summary:	Python bindings for PortAudio
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(portaudio-2.0)

%description
PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O
library. With PyAudio, you can easily use Python to play and record audio on
a variety of platforms. 

%files
%doc README CHANGELOG docs
%{py2_platsitedir}/*.py*
%{py2_platsitedir}/*.so
%{py2_platsitedir}/*egg-info

#---------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python bindings for PortAudio
Group:		System/Libraries

%description -n python3-%{name}
PyAudio provides Python bindings for PortAudio, the cross-platform audio I/O
library. With PyAudio, you can easily use Python to play and record audio on
a variety of platforms.

%files -n python3-%{name}
%doc README CHANGELOG docs
%{py3_platsitedir}/*.py*
%{py3_platsitedir}/*.so
%{py3_platsitedir}/*egg-info
%{py3_platsitedir}/__pycache__/

#---------------------------------------------------------------------------

%prep
%setup -qn %{pkg_name}-%{version}

cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd

%py2_build

%install
pushd %{py3dir}
%py3_install
popd

%py2_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6716 |21cr|pybik-3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -std=c++11

Name:           pybik
Version:        3.0
Release:        3
License:        GPLv3+
Summary:        Rubik's cube game
Group:          Games/Puzzles
Url:            https://launchpad.net/pybik/
Source:         https://launchpad.net/pybik/trunk/2.1/+download/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(cython)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glut)
BuildRequires:  gettext
BuildRequires:  intltool
BuildRequires:  python3egg(docutils)
BuildRequires:  desktop-file-utils
BuildRequires:  imagemagick

Requires:  python3-qt5-core
Requires:  python3-qt5-gui
Requires:  python3-qt5-widgets
Requires:  python3egg(pyicu)

%description
Pybik is a 3D puzzle game about the cube invented by Ernő Rubik.
* Different 3D puzzles - up to 10x10x10:
  cubes, towers, bricks, tetrahedra and prisms
* Solvers for some puzzles
* Pretty patterns
* Editor for move sequences
* Changeable colors and images

%files -f %{name}.lang
%doc COPYING README NEWS
%{_bindir}/pybik
%{py3_platsitedir}/*
%{_datadir}/pybik/
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/pybik.desktop
#--------------------------------------------------------------------
%prep
%setup -q
sed -i 's|self, args, nargs, NULL|self, args, nargs|' csrc/*
sed -i 's|tstate->exc_|tstate->curexc_|' csrc/_qt_qtwogl.cpp csrc/_qtexec_.cpp

%build
%py3_build

%install
%py3_install

cp -R build/share/models %{buildroot}%{_datadir}/pybik/models
cp -R build/share/locale  %{buildroot}%{_localedir}

mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install data/app-meta/pybik.desktop \
  --dir=%{buildroot}%{_datadir}/applications 

rm -fr %{buildroot}%{_datadir}/pixmaps

for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size data/icons/pybik_whitebg-572.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

chmod 755 %{buildroot}%{py3_platsitedir}/pybiklib/pybik.py
chmod 755 %{buildroot}%{py3_platsitedir}/pybiklib/utils.py
chmod 755 %{buildroot}%{py3_platsitedir}/pybiklib/ext/debug_purepython.py
chmod 755 %{buildroot}%{py3_platsitedir}/pybiklib/model.py
chmod 755 %{buildroot}%{py3_platsitedir}/pybiklib/ext/gldraw.py


%find_lang pybik

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6717 |21cr|pyblosxom-1.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    pyblosxom
%define version 1.5.3

Summary:	Python2 clone of Blosxom, a blogging system
Name:		%{name}
Version:	%{version}
Release:	1
License:	MIT
Group:		Networking/WWW
Url:        https://pyblosxom.github.io/
Source0:	https://github.com/pyblosxom/pyblosxom/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	 pkgconfig(python2)
BuildRequires:	 pythonegg(setuptools)
BuildRequires:	 webserver
Requires:        webserver

BuildArch:	     noarch


%description
Pyblogsxom is a clone of the original Bloxsom.
It is fully compatible with it , and allows you
to publish easily your weblog on your apache webserver.

%files
%doc LICENSE docs/*
%dir  %{_sysconfdir}/%{name}/
%{py2_puresitedir}/%{name}-*
%{_bindir}/*
%{py2_puresitedir}/Pyblosxom/*

#----------------------------------------------

%prep
%setup -q


%build
%py2_build


%install
%py2_install

mkdir -p %{buildroot}/%{_sysconfdir}/httpd/conf/webapps.d
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}

# apache configuration
install -d -m 755 %{buildroot}%{webappconfdir}
cat > %{buildroot}%{webappconfdir}/%{name}.conf << EOF
Alias /pyblosxom /var/www/pyblosxom

<Directory /var/www/pyblosxom>
    Options +ExecCGI
    Order allow,deny
    Allow from all
    DirectoryIndex pyblosxom.cgi
</Directory>
EOF


perl -pi -e "s#py\['datadir'\].*#py['datadir'] = \"/var/pyblosxom/\"# "  %{buildroot}/%{_sysconfdir}/%{name}/config.py
find %{buildroot} -type f -empty -delete


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6718 |21cr|pybowl-0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           pybowl
Version:        0.1
Release:        5
Summary:        Python bowling game using the Blessed terminal library
License:        MIT
Group:          Games/Boards
Url:            https://github.com/haliphax/pybowl
Source0:        https://github.com/haliphax/pybowl/archive/%{name}-master.zip
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
Requires:	python3
Requires:	python3egg(blessed)
BuildArch:	noarch

%description
%{summary}

%files
%doc README.md LICENSE
%{_bindir}/%{name}
#----------------------------------------------

%prep
%setup -qn %{name}-master


%build
sed -i 's#/usr/bin/env python#/usr/bin/python3#' bowling.py

%install
install -Dm 755 bowling.py %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6719 |21cr|pycam-0.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           pycam
Version:        0.5.1
Release:        3
Summary:        Open Source CAM - Toolpath Generation for 3-Axis CNC machining 
Group:          Development/Other
License:        GPLv3+
URL:            http://sourceforge.net/projects/%{name}/
BuildArch:      noarch

Source0:        http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  pkgconfig(python2)
BuildRequires:  ccache
BuildRequires:  desktop-file-utils

Requires:       python-opengl
Requires:       pygtk2
Requires:       python-gtkglext
# Needed because it owns the icon directories
Requires:       hicolor-icon-theme


%description
PyCAM is a toolpath generator for 3-axis CNC machining. It loads 3D
models in STL format or 2D contour models from DXF or SVG files. The
resulting GCode can be used with EMC2 or any other machine controller.

PyCAM supports a wide range of toolpath strategies for 3D models and
2D contour models.


%prep
%setup -q

for f in ./*.{txt,TXT} ./Changelog ./PKG-INFO; do
    iconv -f iso-8859-1 -t utf-8 $f |sed 's|\r||g' > $f.utf8
    touch -c -r $f $f.utf8
    mv $f.utf8 $f
done


%build
python setup.py build


%install
python setup.py install -O1 --skip-build --root %{buildroot}

desktop-file-install  --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
    share/desktop/%{name}.desktop

pushd %{buildroot}%{py_puresitedir}/%{name}/
# remove shebang lines from top of module files
for lib in `find . -path "*.py"`; do
    echo $lib
    sed '/\/usr\/bin\/env/d' $lib > $lib.new && \
        touch -r $lib $lib.new && \
        mv $lib.new $lib
done
popd

# Install icons
install -pD -m 0644 share/mime/application-sla.svg \
	%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/pycam.svg
install -pD -m 0644 share/mime/icons/32x32/application-sla.png \
	%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/pycam.png
install -pD -m 0644 share/mime/icons/64x64/application-sla.png \
	%{buildroot}%{_datadir}/icons/hicolor/64x64/apps/pycam.png
install -pD -m 0644 share/mime/icons/128x128/application-sla.png \
	%{buildroot}%{_datadir}/icons/hicolor/128x128/apps/pycam.png

# Install man page
install -pD -m 0644 man/pycam.1 %{buildroot}%{_mandir}/man1/pycam.1

%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%files
%doc Changelog COPYING.TXT LICENSE.TXT PKG-INFO README.TXT
%{_datadir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/applications/pycam.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_mandir}/man1/%{name}.1.*
%{py_puresitedir}/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6720 |21cr|pydance-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Dance Dance Revolution simulator
Name:		pydance
Version:	1.1.0
Release:	1
License:	MIT
Group:		Games/Other
Url:		http://icculus.org/pyddr/
Source0:	http://icculus.org/pyddr/pydance-%{version}.tar.gz
Source2:	%{name}-README.mandrake.bz2
Patch0:		pydance-1.0.3-fix-desktop-file.patch
Patch1:		pydance-install-cfg.patch
BuildRequires:	imagemagick
BuildRequires:	python2
BuildRequires:	zip
Requires:	pygame
Provides:	pyddr = %{EVRD}
BuildArch:	noarch

%description
pyDDR is a fun dancing game to experience asian dance beat!
Showing friends your hot move with big score!

Highly configurable, colorful animated arrow motion, limitless
numbers of dance steps, 1 or 2 players, professionally written
music, laughter provoking sound effects, and yes, even graphical
transitions.

%files
%defattr(-,root,root,755)
%doc CREDITS ChangeLog LICENSE README TODO
%doc README.mandrake docs/*.txt docs/*.html
%{_gamesdatadir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.cfg
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_mandir}/*/*
%{_datadir}/applications/%{name}.desktop
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
bzcat %{SOURCE2} > README.mandrake

%build
export PYTHON=%{__python2}
%py2_build

%install
make install-zip DESTDIR=%{buildroot} PREFIX=%{_prefix}

#(peroyvind) remove announcer which uses non-free files
rm -rf %{buildroot}%{_gamesdatadir}/%{name}/themes/dj/mrt

install -d %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
convert -size 16x16 icon.png %{buildroot}%{_miconsdir}/%{name}.png
convert -size 32x32 icon.png %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 icon.png %{buildroot}%{_liconsdir}/%{name}.png

install -m644 desktop.pydance -D %{buildroot}%{_datadir}/applications/%{name}.desktop

# fix python shebang
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/findbpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6721 |21cr|pydance-music-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pydance

Summary:	Songs and step patterns for PyDDR
Name:		%{oname}-music
Version:	1.0
Release:	13
License:	MIT
Group:		Games/Other
Url:		http://icculus.org/pyddr/get.php
Source0:	%{name}.tar.bz2
Requires:	%{oname}
Provides:	pyddr-music = %{EVRD}
BuildArch:	noarch

%description
PyDDR is a simulator of the popular arcade game "Dance Dance Revolution",
in which you must step on particular arrows on the floor in time with
music playing in the background. This package contains the following songs,
and step patterns for them:
* "6th, January", by Brendan Becker
* "SyNRG", by Brendan Becker
* "Forkbomb", by Pajama Crisis

%files
%defattr(644,root,root,755)
%{_gamesdatadir}/%{oname}/songs/*

#----------------------------------------------------------------------------

%prep

%build

%install
install -d %{buildroot}%{_gamesdatadir}/%{oname}/songs
tar -xjf %{SOURCE0} -C %{buildroot}%{_gamesdatadir}/%{oname}/songs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6722 |21cr|pyDict-0.2.5.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pydict_version 0.2.5.1
%define pydict_release 16

Summary:	pyDict - An English/Chinese Dictionary written with python/gtk
Name:		pyDict
Version:	%{pydict_version}
Release:	%{pydict_release}
Url:		http://sourceforge.net/projects/pydict/
License:	GPL
Group:		Text tools

Source0:	http://sourceforge.net/projects/pydict/pyDict-%{pydict_version}.tar.bz2
Patch2:		pyDict-C2E.patch
Patch3:		pyDict-data-path.patch
Patch4:		pyDict-desktop.patch

BuildRequires:  desktop-file-utils

Requires:	locales-zh 
Requires:	pygtk2.0

BuildArch:	noarch


%description
This is a English/Chinese Dictionary wirtten by Daniel Gau with python/gtk.
The word base was originally got from xdict, and was converted and modified by
Daniel Gau and bv1al.This program can be run in both console mode and X 
Window GUI mode.

%prep
%setup -q
%patch2 -p1
%patch3 -p0
%patch4 -p0

%install
install -D -m 644 dict.xpm $RPM_BUILD_ROOT%{_iconsdir}/dict.xpm
install -D -m 644 yaba.xpm $RPM_BUILD_ROOT%{_datadir}/%{name}/yaba.xpm
install -D -m 755 dict.py $RPM_BUILD_ROOT%{_bindir}/pydict.real

cat << EOF > pydict.sh
#!/bin/bash
# pydict only works in big5 encoding
export LC_ALL=zh_TW.Big5
exec pydict.real
EOF
install  -m 755  pydict.sh $RPM_BUILD_ROOT%{_bindir}/pydict

for i in a b c d e f g h i j k l m n o p q r s t u v w x y z
	do install -m 644 $i.lib $RPM_BUILD_ROOT%{_datadir}/%{name}
done
install -m 644 HELP $RPM_BUILD_ROOT%{_datadir}/%{name}/

# menu XDG
mkdir -p %buildroot%_datadir/applications
desktop-file-install --vendor='' \
	--remove-category="Application" \
	--add-category="X-MandrivaLinux-Office-Accessories" \
	--add-category="Office" \
	--add-category="Dictionary" \
	--dir $RPM_BUILD_ROOT%{_datadir}/applications %{name}.desktop


%files
%doc CHANGELOG COPYING README
%{_datadir}/%{name}
%{_bindir}/pydict
%{_bindir}/pydict.real
%{_iconsdir}/*
%{_datadir}/applications/pyDict.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6723 |21cr|py-ini-config-2.6-1.git6608a9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6608a9749a21ec88ebe61d27ea0a186104a455c6
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8):	Утилита для правки конфигов ini
Summary:	Ini config editing utility
Name:		py-ini-config
Version:	2.6
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		File tools
Url:		https://hub.mos.ru/mos/src/py-ini-config
Source0:	https://hub.mos.ru/mos/src/py-ini-config/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildArch:	noarch
Recommends:	bash-completion

%description
Ini config editing utility

%description -l ru_RU.UTF-8
Утилита для правки конфигов ini

%files
%{_bindir}/%{name}
%{python3_sitelib}/py_ini_config_modules
%{_mandir}/man1/%{name}.1*
%{_mandir}/ru/man1/%{name}.1*
%{_datadir}/bash-completion/completions/%{name}

#------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 %{name}.py %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{python3_sitelib}/py_ini_config_modules
install -m644 py_ini_config_modules/* %{buildroot}%{python3_sitelib}/py_ini_config_modules
mkdir -p  %{buildroot}%{_datadir}/man/man1
install -m644 %{name}.1  %{buildroot}%{_datadir}/man/man1/
mkdir -p  %{buildroot}%{_datadir}/man/ru/man1
install -m644 %{name}.1.ru  %{buildroot}%{_datadir}/man/ru/man1/%{name}.1
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
install -m644 bash-completion/%{name} %{buildroot}%{_datadir}/bash-completion/completions

%check
cd tests
chmod +x ./tests.py
./tests.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6724 |21cr|pylzma-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python bindings for the LZMA compression library
Name:		pylzma
Version:	0.5.0
Release:	1
License:	GPL
Group:		Development/Python
Url:		http://www.joachim-bauch.de/projects/python/pylzma
Source0:	https://pypi.io/packages/source/p/pylzma/pylzma-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
Python bindings for the LZMA compression library.

%files
%doc
%attr(755,root,root)
%{python3_sitearch}/*.py*
%{python3_sitearch}/%{name}*.egg-info
%{python3_sitearch}/*.so
%{python3_sitearch}/__pycache__/

#---------------------------------------------------------
%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6725 |21cr|pymacs-0.25-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname Pymacs

Summary: Bidirectional communication between Emacs Lisp and Python
Name:	 pymacs
Version: 0.25
Release: 3
Source0: %{tarname}-%{version}.tar.gz
License: GPLv2+
Group:	 Development/Python
Url:	 http://pymacs.progiciels-bpi.ca
BuildArch: noarch
BuildRequires:	emacs, python-devel, python-docutils

%description
Pymacs is a powerful tool for bidirectional communication between
Emacs Lisp and Python. Pymacs aims to provide Python as an extension
language for Emacs; using Pymacs, one may load and use Python modules
within Emacs Lisp code. Python functions may also use Emacs services
and handle objects in the Emacs Lisp space.

%package -n python-%{name}
Summary: Bidirectional communication between Emacs Lisp and Python
Group:	 Development/Python

%description -n python-%{name}
Pymacs is a powerful tool for bidirectional communication between
Emacs Lisp and Python. Pymacs aims to provide Python as an extension
language for Emacs; using Pymacs, one may load and use Python modules
within Emacs Lisp code. Python functions may also use Emacs services
and handle objects in the Emacs Lisp space.

This package contains the Python portion of Pymacs.

%package -n emacs-%{name}
Summary: Bidirectional communication between Emacs Lisp and Python
Group:	 Editors
Requires: emacs

%description -n emacs-%{name}
Pymacs is a powerful tool for bidirectional communication between
Emacs Lisp and Python. Pymacs aims to provide Python as an extension
language for Emacs; using Pymacs, one may load and use Python modules
within Emacs Lisp code. Python functions may also use Emacs services
and handle objects in the Emacs Lisp space.

This package contains the Emacs portion of Pymacs.

%prep
%setup -q -n %{tarname}-%{version}

%build
%__make all

%install
PYTHONDONTWRITEBYTECODE= python setup.py install --root=%{buildroot}
rst2html --input-encoding=UTF-8 pymacs.rst pymacs.html
install -d -m 755 %{buildroot}%{_datadir}/emacs/site-lisp/
emacs -batch --eval '(byte-compile-file "pymacs.el" t)'
install -m 644 pymacs.el pymacs.elc %{buildroot}%{_datadir}/emacs/site-lisp/
install -d -m 755 %{buildroot}%{_sysconfdir}/emacs/site-start.d
echo "(require 'pymacs)" >> %{buildroot}%{_sysconfdir}/emacs/site-start.d/pymacs.el

%clean

%files -n python-%{name} 
%{py_puresitedir}/Pymacs*

%files -n emacs-%{name}
%doc COPYING README THANKS TODO pymacs.html
%{_sysconfdir}/emacs/site-start.d/pymacs.el
%{_datadir}/emacs/site-lisp/pymacs.*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6726 |21cr|pymad-0.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:    A wrapper for the MAD MPEG Audio decoder library
Name:       pymad
Version:    0.10
Release:    2
Url:        http://spacepants.org/src/pymad/
Source0:    https://github.com/jaqx0r/pymad/tree/version/%{version}/%{name}-version-%{version}.tar.gz
License:    GPLv2+
Group:      Development/Python
BuildRequires:  pkgconfig(mad)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)


%description
pymad is a Python wrapper for the MPEG Audio Decoder library.

Access this module via "import mad" or "from mad import *".  To decode
an mp3 stream, you'll want to create a MadFile object and read data from
that.  You can then write the data to a sound device.  See the example
program in test/ for a simple mp3 player that uses libao for the sound
device.

%files
%doc README.md AUTHORS NEWS THANKS COPYING
%{py3_platsitedir}/*
#------------------------------------------------------
%prep
%setup -qn %{name}-version-%{version}

%build
python3 config_unix.py
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6727 |21cr|pyNeighborhood-0.5.0-0.pre3.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prel pre3

Summary:	S GTK+ 2 rewrite of a well-known LinNeighborhood tool
Name:		pyNeighborhood
Version:	0.5.0
Release:	%mkrel -c %prel 6
License:	GPLv3
Group:		Networking/File transfer
Url:		http://pyneighborhood.sourceforge.net/
Source0:	http://downloads.sourceforge.net/pyneighborhood/%{name}-%{version}-%{prel}.tar.bz2
Buildrequires:	python
Requires:	samba-client
Requires:	pygtk2.0
BuildRoot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

%description
pyNeighborhood is a the GUI frontend for samba tools, such as 
smbclient, smbmount etc.

%prep
%setup -q -c

%build
python setup.py build

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

python setup.py install --root=%{buildroot}

rm -fr %buildroot%_datadir/doc/pyneighborhood

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README TODO Changelog
%{_bindir}/*
%{py_sitedir}/pyneighborhood
%{py_sitedir}/*.egg*
%{_datadir}/applications/*.desktop
%{_datadir}/pyneighborhood


%changelog
* Thu Nov 04 2010 Funda Wang <fwang@mandriva.org> 0.5.0-0.pre3.6mdv2011.0
+ Revision: 593081
- rebuild for py2.7

* Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 0.5.0-0.pre3.5mdv2010.0
+ Revision: 441991
- rebuild

* Tue Jan 06 2009 Funda Wang <fwang@mandriva.org> 0.5.0-0.pre3.4mdv2009.1
+ Revision: 325854
- rebuild

* Fri Aug 22 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 0.5.0-0.pre3.3mdv2009.0
+ Revision: 275143
- run scriplets only for mdv older than 200900
- spec file clean

* Thu Aug 21 2008 Funda Wang <fwang@mandriva.org> 0.5.0-0.pre3.2mdv2009.0
+ Revision: 274709
- fix file list
- should be noarch

* Thu Aug 21 2008 Tomasz Pawel Gajc <tpg@mandriva.org> 0.5.0-0.pre3.1mdv2009.0
+ Revision: 274596
- add requires on samba-client and pygtk2.0
- add source and spec file
- Created package structure for pyNeighborhood.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6728 |21cr|pyorbit-2.24.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python bindings for ORBit2
Name:		pyorbit
Version:	2.24.0
Release:	18
License:	LGPLv2.1+
Group:		Development/GNOME and GTK+
Url:		ftp://ftp.gnome.org/pub/GNOME/sources/pyorbit/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		pyorbit-2.24.0-linkage.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	pkgconfig(ORBit-2.0)
BuildRequires:	pkgconfig(python2)
BuildRequires:	clang
Requires:	libIDL
Requires:	ORBit2

%description
pyorbit is an extension module for python that gives you access
to the ORBit2 CORBA ORB.

%files
%doc AUTHORS NEWS README ChangeLog
%{python2_sitearch}/*

#----------------------------------------------------------------------------

%package devel
Summary:	Files needed to build wrappers for ORBit2 addon libraries
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(ORBit-2.0)

%description devel
This package contains files required to build wrappers for ORBit2 addon
libraries so that they interoperate with pyorbit

%files devel
%dir %{_includedir}/pyorbit-2
%{_includedir}/pyorbit-2/*.h
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
export PYTHON=%__python2
%configure
#for passed tests need singlethread build
%make LIBS='-lpython2.7' -j1

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6729 |21cr|pyside-1.2.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

#%%define qtver 4.8
%define pyver python2.7

Summary:	The PySide project provides LGPL-licensed Python bindings for the Qt
Name:		pyside
Version:	1.2.4
Release:	5
License:	LGPLv2+
Group:		Development/KDE and Qt
Url:		http://www.pyside.org
Source0:	https://pypi.io/packages/source/P/PySide/PySide-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
#Patch0:		%{name}-1.2.2-drop-QGtkStyle.patch
BuildRequires:	cmake
BuildRequires:	graphviz
BuildRequires:	python3egg(sphinx)
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(shiboken) >= 1.2.0
Requires:	pyside-phonon
Requires:	pyside-core
Requires:	pyside-declarative
Requires:	pyside-gui
Requires:	pyside-help
Requires:	pyside-multimedia
Requires:	pyside-network
Requires:	pyside-opengl
Requires:	pyside-script
Requires:	pyside-scripttools
Requires:	pyside-sql
Requires:	pyside-test
Requires:	pyside-xmlpatterns
Requires:	pyside-xml
Requires:	pyside-uitools
Requires:	pyside-svg
Requires:	pyside-webkit

%description
The PySide project provides LGPL-licensed Python bindings for the Qt
cross-platform application and UI framework. PySide Qt bindings allow both free
open source and proprietary software development and ultimately aim to support
all of the platforms as Qt itself.

%files

#------------------------------------------------------------------------------

%package phonon
Summary:	PySide phonon module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description phonon
PySide phonon module.

%files phonon
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/phonon.so
%{_datadir}/PySide/typesystems/typesystem_phonon.*

#------------------------------------------------------------------------------

%package core
Summary:	PySide core module
Group:		Development/KDE and Qt

%description core
PySide core module.

%files core
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtCore.so
%{python2_sitearch}/PySide/__init__.py*
%{python2_sitearch}/PySide/_utils.py*
%{_datadir}/PySide/typesystems/typesystem_core*
%{_datadir}/PySide/typesystems/typesystem_templates.*

#------------------------------------------------------------------------------

%package declarative
Summary:	PySide declarative module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description declarative
PySide declarative module.

%files declarative
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtDeclarative.so
%{_datadir}/PySide/typesystems/typesystem_declarative.*

#------------------------------------------------------------------------------

%package gui
Summary:	PySide gui module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description gui
PySide gui module.

%files gui
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtGui.so
%{_datadir}/PySide/typesystems/typesystem_gui*

#------------------------------------------------------------------------------

%package help
Summary:	PySide help module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description help
PySide help module.

%files help
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtHelp.so
%{_datadir}/PySide/typesystems/typesystem_help.*

#------------------------------------------------------------------------------

%package multimedia
Summary:	PySide multimedia module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description multimedia
PySide multimedia module.

%files multimedia
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtMultimedia.so
%{_datadir}/PySide/typesystems/typesystem_multimedia*

#------------------------------------------------------------------------------

%package network
Summary:	PySide network module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description network
PySide network module.

%files network
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtNetwork.so
%{_datadir}/PySide/typesystems/typesystem_network.*

#------------------------------------------------------------------------------

%package opengl
Summary:	PySide opengl module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description opengl
PySide opengl module.

%files opengl
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtOpenGL.so
%{_datadir}/PySide/typesystems/typesystem_opengl*

#------------------------------------------------------------------------------

%package script
Summary:	PySide script module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description script
PySide script module.

%files script
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtScript.so
%{_datadir}/PySide/typesystems/typesystem_script.*

#------------------------------------------------------------------------------

%package scripttools
Summary:	PySide scripttool module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description scripttools
PySide scripttool module.

%files scripttools
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtScriptTools.so
%{_datadir}/PySide/typesystems/typesystem_scripttools.*

#------------------------------------------------------------------------------

%package sql
Summary:	PySide sql module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description sql
PySide sql module.

%files sql
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtSql.so
%{_datadir}/PySide/typesystems/typesystem_sql.*

#------------------------------------------------------------------------------

%package svg
Summary:	PySide svg module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description svg
PySide svg module.

%files svg
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtSvg.so
%{_datadir}/PySide/typesystems/typesystem_svg.*

#------------------------------------------------------------------------------

%package test
Summary:	PySide test module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description test
PySide test module.

%files test
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtTest.so
%{_datadir}/PySide/typesystems/typesystem_test.*

#------------------------------------------------------------------------------

%package uitools
Summary:	PySide uitools module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description uitools
PySide uitools module.

%files uitools
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtUiTools.so
%{_datadir}/PySide/typesystems/typesystem_uitools.*

#------------------------------------------------------------------------------

%package webkit
Summary:	PySide webkit module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description webkit
PySide webkit module.

%files webkit
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtWebKit.so
%{_datadir}/PySide/typesystems/typesystem_webkit*

#------------------------------------------------------------------------------

%package xmlpatterns
Summary:	PySide xmlpatterns module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description xmlpatterns
PySide xmlpatterns module.

%files xmlpatterns
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtXmlPatterns.so
%{_datadir}/PySide/typesystems/typesystem_xmlpatterns*

#------------------------------------------------------------------------------

%package xml
Summary:	PySide xml module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description xml
PySide xml module.

%files xml
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtXml.so
%{_datadir}/PySide/typesystems/typesystem_xml.*

#------------------------------------------------------------------------------

%define major 1
%define libname %mklibname pyside %{pyver} %{major}

%package -n %{libname}
Summary:	PySide core library
Group:		System/Libraries
Conflicts:	%{_lib}pyside1 < 1.2.2-3
Obsoletes:	%{_lib}pyside1 < 1.2.2-3

%description -n %{libname}
PySide core library.

%files -n %{libname}
%doc sources/pyside/COPYING
%{_libdir}/libpyside-%{pyver}.so.%{major}*

#------------------------------------------------------------------------------

%package devel
Summary:	PySide development files
Group:		Development/KDE and Qt
Requires:	%{name} = %{version}
Requires:	%{libname} = %{version}

%description devel
PySide development files.

%files devel
%doc sources/pyside/COPYING
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/*

#------------------------------------------------------------------------------

%prep
%setup -q -n PySide-%{version}
cd sources/pyside
%apply_patches

%build
cd sources/pyside
sed 's/-Wno-strict-aliasing/-fno-strict-aliasing/' -i CMakeLists.txt
%cmake \
	-DQT_SRC_DIR=%{buildroot}%{qt4dir} \
	-DQT_PHONON_INCLUDE_DIR=%{_includedir}/phonon \
	-DPYTHON_BASENAME=%{pyver}
%make

%install
cd sources/pyside
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6730 |21cr|PySolFC-2.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Python solitaire game collection
Name:		PySolFC
Version:	2.14.0
Release:	1
License:	GPLv3+
Group:		Games/Cards
Url:		http://pysolfc.sourceforge.net/
Source0:	https://downloads.sourceforge.net/project/pysolfc/PySolFC/PySolFC-%{version}/%{name}-%{version}.tar.xz
Source1:	PySolFC.rpmlintrc
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
Requires:	python3-pillow
Requires:	tkinter3
Recommends:	freecell-solver
Recommends:	PySolFC-cardsets
Obsoletes:	pysol < 4.82-30
BuildArch:	noarch

%description
PySolFC is a collection of more than 1000 solitaire card games.
Its features include modern look and feel (uses Tile widget set), multiple
card-sets and tableau backgrounds, sound, unlimited undo, player statistics,
a hint system, demo games, a solitaire wizard, support for user written
plug-ins, an integrated HTML help browser, and lots of documentation.

%files -f pysol.lang
%doc COPYING README.md
%{_gamesbindir}/*
%{py3_puresitedir}/*
%{_datadir}/%{name}
%{_datadir}/applications/pysol.desktop
%{_iconsdir}/hicolor/*/apps/*.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

# Hack to put /usr/bin/pysol.py as /usr/games pysol
mkdir -p %{buildroot}/%{_gamesbindir}
mv %{buildroot}%{_bindir}/pysol.py %{buildroot}%{_gamesbindir}/pysol

sed -i -e 's#Exec=.*#Exec=%{_gamesbindir}/pysol#' %{buildroot}%{_datadir}/applications/pysol.desktop

%find_lang pysol

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6731 |21cr|PySolFC-cardsets-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname PySolFC

Summary:	A collection of free cardsets adapted for use with PySolFC
Name:		%{oname}-cardsets
Version:	2.0
Release:	6
License:	GPLv2+
Group:		Games/Cards
Url:		http://pysolfc.sourceforge.net/
Source0:	%{oname}-Cardsets-%{version}.tar.bz2
Requires:	%{oname}
Obsoletes:	pysol-cardsets < 4.41
BuildArch:	noarch

%description
A collection of 153 free cardsets adapted for use with PySolFC.

%files
%{_datadir}/%{oname}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-Cardsets-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{oname}
cp -r cardset* %{buildroot}%{_datadir}/%{oname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6732 |21cr|pysol-music-4.40-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pysolver 4.81-3mdk

Summary: Background music pack for PySol
Name: pysol-music
Version: 4.40
Release: 13
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Games/Cards
URL: http://www.oberhumer.com/opensource/pysol/	
BuildArch: noarch
Requires: pysol >= %pysolver

%description
A collection of additional music adapted for use with PySol.

%prep
%setup -q

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot%_gamesdatadir/pysol
cp -r data/music %buildroot%_gamesdatadir/pysol

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README NEWS
%_gamesdatadir/pysol/music/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6733 |21cr|pysycache-3.1b-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pysycache
Version:	3.1b
Release:	12
Group:		Education
Source0:	http://download.tuxfamily.org/py4childs/pysycache/v3.1/%{name}-src-%{version}.zip
Source1:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-ar-%{version}.zip
Source2:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-cs-%{version}.zip
Source3:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-da-%{version}.zip
Source4:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-de-%{version}.zip
Source5:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-en-%{version}.zip
Source6:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-es-%{version}.zip
Source7:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-fi-%{version}.zip
Source8:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-fr-%{version}.zip
Source9:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-it-%{version}.zip
Source10:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-lt-%{version}.zip
Source11:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-nl-%{version}.zip
Source12:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-pl-%{version}.zip
Source13:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-pt-%{version}.zip
Source14:	http://download.tuxfamily.org/py4childs/themes/themes-move/pack-lang-gpl-ru-%{version}.zip
URL:		http://www.pysycache.org/
Summary:	Educational point-and-click software for young children
License:	GPLv2+
BuildArch:	noarch
Requires:	pygame %{name}-language = %{version}
BuildRequires:	imagemagick

%description
PySyCache is an educational software for the young children (4-7 years old) 
with target to learn them to move the mouse to click with mouse buttons
PySyCache doesn't want some powerful computer, and it can be used 
at home with yours children in the schools

%package	lang-ar
Summary:	Arabic language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-ar
Arabic language pack for %{name}.

%package	lang-cs
Summary:	Czech language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-cs
Czech language pack for %{name}.

%package	lang-da
Summary:	Danish language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-da
Danish language pack for %{name}.

%package	lang-de
Summary:	German language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-de
German language pack for %{name}.

%package	lang-en
Summary:	English language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-en
English language pack for %{name}.

%package	lang-es
Summary:	Spanish language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-es
Spanish language pack for %{name}.

%package	lang-fi
Summary:	Finnish language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-fi
Finnish language pack for %{name}.

%package	lang-fr
Summary:	French language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-fr
French language pack for %{name}.

%package	lang-it
Summary:	Italian language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-it
Italian language pack for %{name}.

%package	lang-lt
Summary:	Lithuanian language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-lt
Lithuanian language pack for %{name}.

%package	lang-nl
Summary:	Dutch language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-nl
Dutch language pack for %{name}.

%package	lang-pl
Summary:	Polish language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description	lang-pl
Polish language pack for %{name}.

%package	lang-pt
Summary:	Portuguese language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description    lang-pt
Portuguese language pack for %{name}.

%package	lang-ru
Summary:	Russian language pack for %{name}
Provides:	%{name}-language = %{version}-%{release}
Requires:	%{name} = %{version}
Group:		Education

%description    lang-ru
Russian language pack for %{name}.

%prep
%setup -q -T -c %{name}-%{version} -a0
pushd pysycache-src/pysycache
for i in %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14}; do
	unzip -qq $i
done
popd

%build

%install
install -d %{buildroot}%{_gamesdatadir}
cp -r pysycache-src/pysycache %{buildroot}%{_gamesdatadir}

install -d %{buildroot}%{_gamesbindir}
cat << EOF > %{buildroot}%{_gamesbindir}/%{name}
#!/bin/bash
cd
python %{_gamesdatadir}/pysycache/pysycache.py \$@
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Education;
Name=PySyCache
Comment=%{summary}
EOF

install -d %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -size 16x16 pysycache-src/pysycache/pysycache.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -size 32x32 pysycache-src/pysycache/pysycache.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -size 48x48 pysycache-src/pysycache/pysycache.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}
#%{_gamesdatadir}/%{name}/themes-move/animals
#%{_gamesdatadir}/%{name}/themes-move/food
#%{_gamesdatadir}/%{name}/themes-move/plants
#%{_gamesdatadir}/%{name}/themes-move/sky
#%{_gamesdatadir}/%{name}/themes-move/sports
%exclude %{_gamesdatadir}/%{name}/themes-move/alphabet*
%exclude %{_gamesdatadir}/%{name}/themes-move/number*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

%files lang-ar
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-ar
%{_gamesdatadir}/%{name}/themes-move/number-ar

%files lang-cs
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-cs
%{_gamesdatadir}/%{name}/themes-move/number-cs

%files lang-da
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-da
%{_gamesdatadir}/%{name}/themes-move/number-da

%files lang-de
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-de
%{_gamesdatadir}/%{name}/themes-move/number-de

%files lang-en
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-en
%{_gamesdatadir}/%{name}/themes-move/number-en

%files lang-es
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-es
%{_gamesdatadir}/%{name}/themes-move/number-es

%files lang-fi
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-fi
%{_gamesdatadir}/%{name}/themes-move/number-fi

%files lang-fr
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-fr
%{_gamesdatadir}/%{name}/themes-move/number-fr

%files lang-it
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-it
%{_gamesdatadir}/%{name}/themes-move/number-it

%files lang-lt
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-lt
%{_gamesdatadir}/%{name}/themes-move/number-lt

%files lang-nl
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-nl
%{_gamesdatadir}/%{name}/themes-move/number-nl

%files lang-pl
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-pl
%{_gamesdatadir}/%{name}/themes-move/number-pl

%files lang-pt
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-pt
%{_gamesdatadir}/%{name}/themes-move/number-pt

%files lang-ru
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}/themes-move/alphabet-ru
%{_gamesdatadir}/%{name}/themes-move/number-ru

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6734 |21cr|pythia-8.3.07-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ver 8307
%define major 8
%define libname		%mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define oname Pythia8

Summary:	High-energy pp and pbarp collisions simulation
Name:		pythia
Version:	8.3.07
Release:	1
License:	GPLv2+
Group:		Sciences/Physics
Url:		https://pythia.org/
Source:         https://pythia.org/download/pythia83/%{name}%{ver}.tgz
BuildRequires:	hepmc-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	rsync
Patch0:         pythia-makefile-destdir-support.patch
Patch1:         pythia-honour-env-cxxflags.patch
Patch2:         pythia-remove-rpaths.patch
Patch3:         pythia-examples-link-gmp.patch
Patch5:         reproducible.patch

%description
Pythia 8 release is focussed towards LHC and Tevatron applications, i.e.
high-energy pp and pbarp collisions. Also e+e- and mu+mu- annihilation
processes may be simulated, but not e.g. ep, gammap or gammagamma collisions.


#----------------------------------------------------------------------------
%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed by %{name}.

%files -n %{libname}
%doc README
%{_libdir}/lib*%{major}.so

#----------------------------------------------------------------------------
%package -n %{devname}
Summary:	Pythia runtime and development files
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}


%description -n %{devname}
Pythia runtime and development files.

%files -n %{devname}
%doc README
%{_bindir}/*
%{_datadir}/%{oname}/
%{_includedir}/%{oname}
%{_includedir}/Pythia8Plugins/
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.*
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}%{ver}

# REMOVE NON-FREE HEADER FILE NOT USED BY PYTHIA DIRECTLY
rm include/Pythia8Plugins/MixMax.h

# FIX EOF ENCODINGS
sed -i 's/\r$//' share/Pythia8/pdfdata/mrstlostarstar.00.dat
sed -i 's/\r$//' share/Pythia8/htmldoc/pythia.css
sed -i 's/\r$//' examples/main29.cc

sed -E -i "s|%{_bindir}/env bash|/bin/bash|" examples/runmains

%build
CXXFLAGS="%{optflags}"

%configure \
  --prefix-lib=%{_libdir} \
  --disable-rpath \
  --with-hepmc2=%{_prefix}

# EXPORT PYTHIA8DATA ENV VARIABLE
cat << EOF >> %{name}.sh
export PYTHIA8DATA=%{_docdir}/%{name}/xmldoc
EOF

cat << EOF >> %{name}.csh
setenv PYTHIA8DATA %{_docdir}/%{name}/xmldoc
EOF

%make


%install
%make_install root=%{buildroot}

install -D -m0644 %{name}.csh %{buildroot}%{_sysconfdir}/profile.d/%{name}.csh
install -D -m0644 %{name}.sh %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh

# REMOVE STATIC LIBRARY
rm %{buildroot}%{_libdir}/libpythia8.a



# FIX env BASED HASHBANG
sed -E -i "s|%{_bindir}/env bash|/bin/bash|" %{buildroot}%{_bindir}/pythia8-config






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6735 |21cr|python3-aiohttp-3.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiohttp
%define debug_package %{nil}

Name:           python3-%{pypi_name}
Version:	3.8.3
Release:	1
Summary:        A Python HTTP client/server for asyncio
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/aio-libs/aiohttp
Source0:	https://files.pythonhosted.org/packages/ff/4f/62d9859b7d4e6dc32feda67815c5f5ab4421e6909e48cbc970b6a40d60b7/aiohttp-3.8.3.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-cython
BuildRequires:  python3-setuptools

%description
A Python HTTP client/server for asyncio

%files
%doc CHANGES.rst CONTRIBUTORS.txt README.rst LICENSE.txt
%{py3_platsitedir}/*

#-----------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install
rm -f %{buildroot}%{py3_platsitedir}/%{pypi_name}/*.{c,pyx}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6736 |21cr|python3-alembic-1.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name alembic

Summary:	A database migration tool for SQLAlchemy
Name:		python3-%{pypi_name}
Version:	1.8.1
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://pypi.python.org/pypi/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/37/ab/80e6d86ca81235ea1a7104089dddf74de4b45f8af0a05d4b265be44d6ff9/alembic-1.8.1.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
Requires:	python3-mako
Requires:	python3-sqlalchemy
BuildArch:	noarch

%files
%{_bindir}/*
%{py3_puresitedir}/%{pypi_name}*

#----------------------------------------------------------------------------

%description
A database migration tool for SQLAlchemy.

%prep
%setup -qn %{pypi_name}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6737 |21cr|python3-alsaaudio-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname		pyalsaaudio

Summary:	ALSA wrapper for Python
Name:		python3-alsaaudio
Version:	0.7
Release:	7
Source0:	http://downloads.sourceforge.net/%{fname}/%{fname}-%{version}.tar.gz
Patch0:		pyalsaaudio-0.7_linkage.patch
License:	Python
URL:		http://sourceforge.net/projects/pyalsaaudio/
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(alsa)
BuildRequires:  python3egg(setuptools)

%description
The goal of this project is to provide a functionality complete Python
wrapper for ALSA. Currently PCM playback and capture, as well as the
mixer API is supported.

%prep
%setup -q -n %{fname}-%{version}
%patch0 -p1

%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files

%doc LICENSE CHANGES README TODO
%{py3_platsitedir}/alsaaudio.cpython-3*.so
%{py3_platsitedir}/%{fname}-%{version}-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6738 |21cr|python3-async_timeout-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name async-timeout
%define modulename async_timeout

Name:           python3-%{modulename}
Summary:        Timeout context manager for asyncio programs
License:        ASL 2.0
Group:          Development/Python
Version:	4.0.2
Release:	1
Url:            https://github.com/aio-libs/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/54/6e/9678f7b2993537452710ffb1750c62d2c26df438aa621ad5fa9d1507a43a/async-timeout-4.0.2.tar.gz
BuildArch:      noarch
Requires:       python3
BuildRequires:  python3-setuptools


%description
asyncio-compatible timeout context manager.

The context manager is useful in cases when you want to apply timeout
logic around block of code or in cases when ``asyncio.wait_for()`` is
not suitable. Also it's much faster than ``asyncio.wait_for()``
because ``timeout`` doesn't create a new task.

%files
%defattr(-,root,root)
%doc CHANGES.rst README.rst LICENSE
%{py3_puresitedir}/%{modulename}-*.egg-info/
%{py3_puresitedir}/%{modulename}/*

#-----------------------------------------------------------
%prep
%setup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%__python3 setup.py install --single-version-externally-managed -O1 --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6739 |21cr|python3-atom-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module atom

Name:		python3-%{module}
Version:	0.6.0
Release:	1
Summary:	Memory efficient Python objects
Source0:	http://pypi.python.org/packages/source/a/%{module}/%{module}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/nucleic/atom
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(wheel)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(pytest)

%description
Welcome to Atom
===============

Atom is a framework for creating memory efficient Python objects with enhanced
features such as dynamic initialization, validation, and change notification
for object attributes. It provides the default model binding behaviour for the
`Enaml <http://nucleic.github.io/enaml/docs>`_ UI framework.

%files
%doc LICENSE *.rst
%{py3_platsitedir}/%{module}/*.py*
%{py3_platsitedir}/%{module}*.egg-info
%{py3_platsitedir}/%{module}/__pycache__
%{py3_platsitedir}/%{module}/catom.cpython-??-*-linux-gnu.so
%{py3_platsitedir}/%{module}/datastructures

#---------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
#bundle egg-info
rm -fr %{module}.egg-info

# Pytest Deprecation Warning fix
perl -pi -e "s|@pytest.yield_fixture|@pytest.fixture|" tests/test_atomlist.py


%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_platsitedir}
pytest-3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6740 |21cr|python3-blessings-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	blessings

Name:		python3-%{oname}
Version:	1.7
Release:	2
Summary:	A thin, practical wrapper around terminal coloring, styling, and positioning
Source0:	http://pypi.python.org/packages/source/b/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/erikrose/blessings
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(nose)

%description
Blessings is a thin, practical wrapper around terminal coloring, styling, and
positioning in Python.

%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
# Passes locally, fails on ABF...
python3 setup.py test || :

%files
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/blessings
%{py3_puresitedir}/blessings*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6741 |21cr|python3-blinker-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	blinker

Name:		python3-%{oname}
Version:	1.4
Release:	2
Summary:	Fast, simple object-to-object and broadcast signaling
Source0:	http://pypi.python.org/packages/source/b/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://pythonhosted.org/blinker/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
[![Build Status](https://travis-ci.org/jek/blinker.svg?branch=master)]
(https://travis-ci.org/jek/blinker)


# Blinker

Blinker provides a fast dispatching system that allows any number of
interested parties to subscribe to events, or "signals".

Signal receivers can subscribe to specific senders or receive signals
sent by any sender.

    >>> from blinker import signal
    >>> started = signal('round-started')
    >>> def each(round):
    ...     print "Round %s!" % round
    ...
    >>> started.connect(each)
    
    >>> def round_two(round):
    ...     print "This is round two."
    ...
    >>> started.connect(round_two, sender=2)
  
    >>> for round in range(1, 4):
    ...     started.send(round)
    ...
    Round 1!
    Round 2!
    This is round two.
    Round 3!

See the [Blinker documentation](https://pythonhosted.org/blinker/)
for more information.

## Requirements

Blinker requires Python 2.4 or higher,
Python 3.0 or higher, or Jython 2.5 or higher.

## Changelog Summary

1.3 (July 3, 2013)

 - The global signal stash behind blinker.signal() is now backed by a
   regular name-to-Signal dictionary. Previously, weak references were
   held in the mapping and ephemeral usage in code like
   ``signal('foo').connect(...)`` could have surprising program behavior
   depending on import order of modules.
 - blinker.Namespace is now built on a regular dict. Use
   blinker.WeakNamespace for the older, weak-referencing behavior.
 - Signal.connect('text-sender') uses an alternate hashing strategy to
   avoid sharp edges in text identity.

1.2 (October 26, 2011)

 - Added Signal.receiver_connected and Signal.receiver_disconnected
   per-Signal signals.
 - Deprecated the global 'receiver_connected' signal.
 - Verified Python 3.2 support (no changes needed!)

1.1 (July 21, 2010)

 - Added ``@signal.connect_via(sender)`` decorator
 - Added ``signal.connected_to`` shorthand name for the
   ``temporarily_connected_to`` context manager.

1.0 (March 28, 2010)

 - Python 3.x compatibility

0.9 (February 26, 2010)

 - Sphinx docs, project website
 - Added ``with a_signal.temporarily_connected_to(receiver): ...`` support

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc AUTHORS
%doc CHANGES
%doc LICENSE
%doc README.md
%doc docs/html/genindex.html
%doc docs/html/index.html
%doc docs/html/search.html
%doc docs/html/_sources/index.txt
%doc docs/text/index.txt
%{py3_puresitedir}/blinker
%{py3_puresitedir}/blinker*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6742 |21cr|python3-boolean.py-4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           python3-boolean.py
Version:        4.0
Release:        1
Group:          Development/Python
Summary:        Define boolean algebras
License:        BSD
URL:            https://github.com/bastikr/boolean.py
Source:         https://files.pythonhosted.org/packages/source/b/boolean.py/boolean.py-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)
BuildArch:      noarch

%description
Define boolean algebras, create and parse boolean
expressions and create custom boolean DSL.

%files
%doc *.rst html/ LICENSE.txt
%{py3_puresitedir}/*

%prep
%setup -qn boolean.py-%{version}

%build
%py3_build
sphinx-build docs html
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install


%check
python3 -m unittest discover -v



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6743 |21cr|python3-bsddb3-6.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python3-bsddb3
Version:        6.1.1
Release:        4
Summary:        Python 3 bindings for BerkleyDB
Group:          Development/Python

License:        BSD
URL:            https://pypi.python.org/pypi/bsddb3/
Source0:        https://pypi.python.org/packages/source/b/bsddb3/bsddb3-%{version}.tar.gz

Requires:       python(abi) >= 3.0
BuildRequires:  python3-devel
BuildRequires:  db-devel

%description
This package contains Python wrappers for Berkeley DB, the Open Source embedded
database system. The Python wrappers allow you to store Python string objects
of any length.

%prep
%setup -q -n bsddb3-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root %{buildroot}
# Get rid of unneeded header
rm -f %{buildroot}%{_includedir}/python3.?/bsddb3/bsddb.h
# Make all scripts executable
chmod 0755 %{buildroot}%{py3_platsitedir}/bsddb3/{dbshelve.py,tests/test_dbtables.py}

%check
#{__python3} test.py

%files 
%doc ChangeLog PKG-INFO README.txt LICENSE.txt
%{py3_platsitedir}/bsddb3/
%{py3_platsitedir}/bsddb3-%{version}-py3.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6744 |21cr|python3-bugz-0.11.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name pybugz
%define shortname bugz

Summary:    A python and command line interface to Bugzilla 
Name:		python3-bugz
Version:	0.11.1
Release:	5
Source0:	http://pybugz.googlecode.com/files/pybugz-%version.tar.gz
License:	GPLv2
Group:		Development/Python
Url:		http://code.google.com/p/pybugz/

BuildRequires: pkgconfig(python3) >= 3.3

BuildArch: noarch

%rename python-bugz 

%description
PyBugz is a python and command line interface to Bugzilla.

It was conceived as a tool to speed up the workflow for Gentoo Linux developers
and contributors when dealing with bugs using Bugzilla. By avoiding the clunky 
web interface, the user quickly search, isolate and contribute to the project 
very quickly. 
Developers alike can easily extract attachments and close bugs all from the 
comfort of the command line.

PyBugz is written in Python and written in a way to be extended easily for 
use on other Bugzillas.  

%prep
%setup -qn %{module_name}-%{version}
perl -pi -e "s|gentoo.org|rosalinux.ru|" bugz/argparsers.py


%build
python3 setup.py build

%check
python3 setup.py check

%install
python3 setup.py install --root=%{buildroot}

install -D -m 0644  contrib/bash-completion  %{buildroot}%{_sysconfdir}/bash_completion.d/%{module_name}
install -D -m 0644  contrib/zsh-completion   %{buildroot}%{_sysconfdir}/zsh_completion.d/%{module_name}

%files
%doc README LICENSE
%{_bindir}/bugz
%{py3_puresitedir}/%{shortname}/
%{py3_puresitedir}/%{module_name}-%{version}-py%{py3_ver}.egg-info
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{module_name}
%config(noreplace) %{_sysconfdir}/zsh_completion.d/%{module_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6745 |21cr|python3-cached-property-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	cached-property

Name:		python3-%{oname}
Version:	1.5.2
Release:	1
Summary:	A decorator for caching properties in classes
Source0:	https://files.pythonhosted.org/packages/61/2c/d21c1c23c2895c091fa7a91a54b6872098fea913526932d21902088a7c41/cached-property-1.5.2.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/pydanny/cached-property
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
===============================
cached-property
===============================

.. image:: https://img.shields.io/pypi/v/cached-property.svg
    :target: https://pypi.python.org/pypi/cached-property

.. image:: https://img.shields.io/travis/pydanny/cached-property/master.svg
    :target: https://travis-ci.org/pydanny/cached-property
        
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/ambv/black
    :alt: Code style: black        


A decorator for caching properties in classes.

Why?
-----

* Makes caching of time or computational expensive properties quick and easy.
* Because I got tired of copy/pasting this code
  from non-web project to non-web project.
* I needed something really simple that worked in Python 2 and 3.

How to use it
--------------

Let's define a class with an expensive property. Every time you stay there the
price goes up by $50!

.. code-block:: python

    class Monopoly(object):

        def __init__(self):
            self.boardwalk_price = 500

        @property
        def boardwalk(self):
            # In reality, this might represent a database call or time
            # intensive task like calling a third-party API.
            self.boardwalk_price += 50
            return self.boardwalk_price

Now run it:

.. code-block:: python

    >>> monopoly = Monopoly()
    >>> monopoly.boardwalk
    550
    >>> monopoly.boardwalk
    600

Let's convert the boardwalk property into a ``cached_property``.

.. code-block:: python

    from cached_property import cached_property

    class Monopoly(object):

        def __init__(self):
            self.boardwalk_price = 500

        @cached_property
        def boardwalk(self):
            # Again, this is a silly example. Don't worry about it, this is
            #   just an example for clarity.
            self.boardwalk_price += 50
            return self.boardwalk_price

Now when we run it the price stays at $550.

.. code-block:: python

    >>> monopoly = Monopoly()
    >>> monopoly.boardwalk
    550
    >>> monopoly.boardwalk
    550
    >>> monopoly.boardwalk
    550

Why doesn't the value of ``monopoly.boardwalk`` change?
Because it's a **cached property**!

Invalidating the Cache
----------------------

Results of cached functions can be invalidated by outside forces.
Let's demonstrate how to force the cache to invalidate:

.. code-block:: python

    >>> monopoly = Monopoly()
    >>> monopoly.boardwalk
    550
    >>> monopoly.boardwalk
    550
    >>> # invalidate the cache
    >>> del monopoly.__dict__['boardwalk']
    >>> # request the boardwalk property again
    >>> monopoly.boardwalk
    600
    >>> monopoly.boardwalk
    600

Working with Threads
---------------------

What if a whole bunch of people want to stay at Boardwalk all at once?
This means using threads, which unfortunately causes problems with
the standard ``cached_property``. In this case, switch to using the
``threaded_cached_property``:

.. code-block:: python

    from cached_property import threaded_cached_property

    class Monopoly(object):

        def __init__(self):
            self.boardwalk_price = 500

        @threaded_cached_property
        def boardwalk(self):
            """threaded_cached_property is really nice for when no one waits
                for other people to finish their turn and rudely start rolling
                dice and moving their pieces."""

            sleep(1)
            self.boardwalk_price += 50
            return self.boardwalk_price

Now use it:

.. code-block:: python

    >>> from threading import Thread
    >>> from monopoly import Monopoly
    >>> monopoly = Monopoly()
    >>> threads = []
    >>> for x in range(10):
    >>>     thread = Thread(target=lambda: monopoly.boardwalk)
    >>>     thread.start()
    >>>     threads.append(thread)

    >>> for thread in threads:
    >>>     thread.join()

    >>> self.assertEqual(m.boardwalk, 550)


Working with async/await (Python 3.5+)
--------------------------------------

The cached property can be async, in which case you have to use await
as usual to get the value. Because of the caching, the value is only
computed once and then cached:

.. code-block:: python

    from cached_property import cached_property

    class Monopoly(object):

        def __init__(self):
            self.boardwalk_price = 500

        @cached_property
        async def boardwalk(self):
            self.boardwalk_price += 50
            return self.boardwalk_price

Now use it:

.. code-block:: python

    >>> async def print_boardwalk():
    ...     monopoly = Monopoly()
    ...     print(await monopoly.boardwalk)
    ...     print(await monopoly.boardwalk)
    ...     print(await monopoly.boardwalk)
    >>> import asyncio
    >>> asyncio.get_event_loop().run_until_complete(print_boardwalk())
    550
    550
    550

Note that this does not work with threading either, most asyncio
objects are not thread-safe. And if you run separate event loops in
each thread, the cached version will most likely have the wrong event
loop. To summarize, either use cooperative multitasking (event loop)
or threading, but not both at the same time.


Timing out the cache
--------------------

Sometimes you want the price of things to reset after a time. Use the ``ttl``
versions of ``cached_property`` and ``threaded_cached_property``.

.. code-block:: python

    import random
    from cached_property import cached_property_with_ttl

    class Monopoly(object):

        @cached_property_with_ttl(ttl=5) # cache invalidates after 5 seconds
        def dice(self):
            # I dare the reader to implement a game using this method of 'rolling dice'.
            return random.randint(2,12)

Now use it:

.. code-block:: python

    >>> monopoly = Monopoly()
    >>> monopoly.dice
    10
    >>> monopoly.dice
    10
    >>> from time import sleep
    >>> sleep(6) # Sleeps long enough to expire the cache
    >>> monopoly.dice
    3
    >>> monopoly.dice
    3

**Note:** The ``ttl`` tools do not reliably allow the clearing of the cache.
This is why they are broken out into seperate tools.
See https://github.com/pydanny/cached-property/issues/16.

Credits
--------

* Pip, Django, Werkzueg, Bottle, Pyramid, and Zope
  for having their own implementations.
  This package originally used an implementation
  that matched the Bottle version.
* Reinout Van Rees for pointing out the `cached_property` decorator to me.
* My awesome wife `@audreyr`_ who created `cookiecutter`_,
  which meant rolling this out took me just 15 minutes.
* @tinche for pointing out the threading issue and providing a solution.
* @bcho for providing the time-to-expire feature

.. _`@audreyr`: https://github.com/audreyr
.. _`cookiecutter`: https://github.com/audreyr/cookiecutter

Support This Project
---------------------------

This project is maintained by volunteers.
Support their efforts by spreading the word about:

.. image:: https://cdn.shopify.com/
	   s/files/1/0304/6901/t/2/assets/logo.png?8399580890922549623
   :name: Two Scoops Press
   :align: center
   :alt: Two Scoops Press
   :target: https://www.twoscoopspress.com




History
-------

1.4.3 (2018-06-14)
++++++++++++++++++

* Catch `SyntaxError` from asyncio import on older
  versions of Python, thanks to @asottile

1.4.2 (2018-04-08)
++++++++++++++++++

* Really fixed tests, thanks to @pydanny

1.4.1 (2018-04-08)
++++++++++++++++++

* Added conftest.py to manifest so tests work
  properly off the tarball,thanks to @dotlambda
* Ensured new asyncio tests didn't break Python 2.7
  builds on Debian, thanks to @pydanny
* Code formatting via black, thanks to @pydanny and @ambv


1.4.0 (2018-02-25)
++++++++++++++++++

* Added asyncio support, thanks to @vbraun
* Remove Python 2.6 support, whose end of
  life was 5 years ago, thanks to @pydanny


1.3.1 (2017-09-21)
++++++++++++++++++

* Validate for Python 3.6


1.3.0 (2015-11-24)
++++++++++++++++++

* Drop some non-ASCII characters from HISTORY.rst, thanks to @AdamWill
* Added official support for Python 3.5, thanks to @pydanny and @audreyr
* Removed confusingly placed lock from example, thanks to @ionelmc
* Corrected invalidation cache documentation, thanks to @proofit404
* Updated to latest Travis-CI environment, thanks to @audreyr

1.2.0 (2015-04-28)
++++++++++++++++++

* Overall code and test refactoring, thanks to @gsakkis
* Allow the del statement for resetting cached properties with
  ttl instead of del obj._cache[attr], thanks to @gsakkis.
* Uncovered a bug in PyPy,
  https://bitbucket.org/pypy/pypy/issue/2033/
  attributeerror-object-attribute-is-read,
  thanks to @gsakkis
* Fixed threaded_cached_property_with_ttl to
  actually be thread-safe, thanks to @gsakkis

1.1.0 (2015-04-04)
++++++++++++++++++

* Regression: As the cache was not always clearing, we've broken
  out the time to expire feature to its own set of specific tools,
  thanks to @pydanny
* Fixed typo in README, thanks to @zoidbergwill

1.0.0 (2015-02-13)
++++++++++++++++++

* Added timed to expire feature to ``cached_property`` decorator.
* **Backwards incompatiblity**: Changed ``del monopoly.boardwalk``
  to ``del monopoly['boardwalk']`` in order to support the new TTL feature.

0.1.5 (2014-05-20)
++++++++++++++++++

* Added threading support with new ``threaded_cached_property`` decorator
* Documented cache invalidation
* Updated credits
* Sourced the bottle implementation

0.1.4 (2014-05-17)
++++++++++++++++++

* Fix the dang-blarged py_modules argument.

0.1.3 (2014-05-17)
++++++++++++++++++

* Removed import of package into ``setup.py``

0.1.2 (2014-05-17)
++++++++++++++++++

* Documentation fixes. Not opening up a RTFD instance for this
  because it's so simple to use.

0.1.1 (2014-05-17)
++++++++++++++++++

* setup.py fix. Whoops!

0.1.0 (2014-05-17)
++++++++++++++++++

* First release on PyPI.

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc AUTHORS.rst
%doc HISTORY.rst
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/cached_property.py*
%{py3_puresitedir}/cached_property*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6746 |21cr|python3-cagraph-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	cagraph

Name:		python3-%{oname}
Version:	1.2
Release:	2
Summary:	Simple chart class using pygtk and cairo
Source0:	http://pypi.python.org/packages/source/c/%{oname}/%{oname}-%{version}.tar.gz
License:	GPLv3
Group:		Development/Python
Url:		http://code.google.com/p/cagraph
BuildArch:	noarch
BuildRequires: python3-devel

%description
A PyGTK widget for ploting charts and graphs using python, gtk and cairo.

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc COPYING
%doc README
%{py3_puresitedir}/cagraph
%{py3_puresitedir}/cagraph*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6747 |21cr|python3-caldav-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	caldav

Name:		python3-%{module}
Version:	0.9.2
Release:	1
Summary:	CalDAV (RFC4791) client library
Source0:	https://files.pythonhosted.org/packages/67/37/ea9d16319bb3d72c9892995b8238bf90ce2148cbc1d1edf941a69aa3beea/caldav-0.9.2.tar.gz
License:	GPLv3+
Group:		Development/Python
Url:		http://bitbucket.org/cyrilrbt/caldav
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(lxml)
BuildRequires:  python3egg(requests)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(vobject)
BuildRequires:  python3egg(mock)

BuildArch:	noarch

%description
This project is a CalDAV (RFC4791) client library for Python.
I started it for my work at the AUF.

A lot of work still needs to be done, but it can read everything,
and write a few things
(create calendars, events, modify events and properties).

%files
%doc COPYING.* *.md
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info
#---------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -fr  %{module}.egg-info
find %{module} -name "*.py" | xargs sed -i '1 {/^#!/d}'

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6748 |21cr|python3-caslib-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	caslib

Name:		python3-%{oname}
Version:	0.3.1
Release:	2
Summary:	Caslib provides a python interface to CAS
Source0:	http://pypi.python.org/packages/source/c/%{oname}/%{oname}-%{version}.tar.gz
License:	GPLv3
Group:		Development/Python
Url:		http://packages.python.org/caslib/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
Overview

caslib provides a python interface to CAS [1].

A validating httplib.HTTPSConnection and urllib2.HTTPSHandler.
Features

    * CASServer.login() Generate the login URL to log into a CASsified service
    * CASServer.validate() Check a CAS service ticket
    (use of ssl [2] is suggested to validate connection to the server)
    * CASService Define a CASsifed service
    * login_to_cas_service() Attempt to authenticate to a CAS /login
      form (may require lxml [3])

Links
[1]	Central Authentication Service <http://www.jasig.org/cas>
[2]	ssl implements certificate validation (included in Python-2.6+)
	<http://pypi.python.org/pypi/ssl>
[3]	lxml provides html support <http://pypi.python.org/pypi/lxml>

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc doc/README.txt
%doc doc/caslib.txt
%doc doc/caslib.validating_https.txt
%doc doc/index.txt
%{py3_puresitedir}/caslib
%{py3_puresitedir}/caslib*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6749 |21cr|python3-cli_helpers-1.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# separate gits ,BR have py2 and py3 binary

%define module cli_helpers

Summary:        Python helpers for common CLI tasks
Name:           python3-%{module}
Version:        1.0.2
Release:        2
Group:          Development/Python
License:        BSD
Url:            https://github.com/dbcli/%{module}
Source0:        https://files.pythonhosted.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(tabulate)
BuildRequires:  python3egg(terminaltables)
BuildRequires:  python3egg(wcwidth)
Requires:       python3egg(pygments)
Requires:       python3egg(tabulate)
Requires:       python3egg(terminaltables)
Requires:       python3egg(wcwidth)

Conflicts:      python-%{module} = %{version}
BuildArch:      noarch


%description
CLI Helpers is a Python package that makes it easy to perform common\
tasks when building command-line apps. Its a helper library for\
command-line interfaces.

%files
%doc AUTHORS CHANGELOG README.rst LICENSE
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
#------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build


%install
%py3_install

%check
PYTHONPATH=build/lib/ python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6750 |21cr|python3-cloud_sptheme-1.9.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	cloud_sptheme

Name:		python3-%{oname}
Version:	1.9.4
Release:	2
Summary:	a nice sphinx theme named 'Cloud', and some related extensions
Source0:	http://pypi.python.org/packages/source/c/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://bitbucket.org/ecollins/cloud_sptheme
BuildArch:	noarch
BuildRequires:	python3egg(setuptools) python3-sphinx

%description
This is a small package containing a Sphinx theme named "Cloud",
along with some related Sphinx extensions. To see an example
of the theme in action, check out it's documentation
at `<https://cloud-sptheme.readthedocs.io>`_.

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc CHANGES
%doc LICENSE
%doc README
%doc cloud_sptheme/ext/autodoc_sections.py
%doc cloud_sptheme/ext/autodoc_sections.pyc
%doc cloud_sptheme/ext/__pycache__/autodoc_sections.cpython-35.pyc
%doc cloud_sptheme/ext/static/auto_redirect.html_t
%doc cloud_sptheme/themes/cloud/globaltoc.html
%doc cloud_sptheme/themes/cloud/layout.html
%doc cloud_sptheme/themes/cloud/localtoc.html
%doc cloud_sptheme/themes/cloud/quicklinks.html
%doc cloud_sptheme/themes/cloud/relations.html
%doc cloud_sptheme/themes/cloud/static/icon-todo.png
%doc docs/copyright.rst
%doc docs/history.rst
%doc docs/requirements.txt
%doc docs/_static/longline.txt
%doc docs/lib/cloud_sptheme.ext.autodoc_sections.rst
%{py3_puresitedir}/cloud_sptheme/*.py*
%{py3_puresitedir}/cloud_sptheme/__pycache__
%{py3_puresitedir}/cloud_sptheme/ext/__pycache__
%{py3_puresitedir}/cloud_sptheme/ext/*.py*
%{py3_puresitedir}/cloud_sptheme/tests/*.py*
%{py3_puresitedir}/cloud_sptheme/tests/__pycache__
%{py3_puresitedir}/cloud_sptheme*.egg-info
%{py3_puresitedir}/cloud_sptheme/ext/static/auto_redirect.css
%{py3_puresitedir}/cloud_sptheme/ext/static/auto_redirect.html_t
%{py3_puresitedir}/cloud_sptheme/ext/static/table_styling.css
%{py3_puresitedir}/cloud_sptheme/themes/cloud/globaltoc.html
%{py3_puresitedir}/cloud_sptheme/themes/cloud/layout.html
%{py3_puresitedir}/cloud_sptheme/themes/cloud/localtoc.html
%{py3_puresitedir}/cloud_sptheme/themes/cloud/quicklinks.html
%{py3_puresitedir}/cloud_sptheme/themes/cloud/relations.html
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/cloud.base.js
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/cloud.css_t
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/cloud.js_t
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/icon-caution.png
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/icon-danger.png
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/icon-deprecated.png
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/icon-note.png
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/icon-seealso.png
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/icon-todo.png
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/icon-warning.png
%{py3_puresitedir}/cloud_sptheme/themes/cloud/static/jquery.cookie.js
%{py3_puresitedir}/cloud_sptheme/themes/cloud/theme.conf
%{py3_puresitedir}/cloud_sptheme/themes/greencloud/theme.conf
%{py3_puresitedir}/cloud_sptheme/themes/redcloud/theme.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6751 |21cr|python3-cram-0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module cram

Name:           python3-%{module}
Version:        0.7
Release:        2
Summary:        Simple testing framework for command line applications
Group:          Development/Python
License:        GPLv2
Url:            https://bitheap.org/cram/
Source0:        http://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
# same binary provided
Conflicts:	python-%{module}

BuildArch:      noarch

%description
Cram tests look like snippets of interactive shell sessions. Cram runs each
command and compares the command output in the test with the command's actual
output.

%files -n python3-%{module}
%doc README.* COPYING.txt NEWS.*
%{_bindir}/cram
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py*.egg-info
#------------------------------------------------------------------------------


%prep
%setup -qn %{module}-%{version}

# remove shebangs
find . -type f -name '*.py' \
  -exec sed -i -e '/^#!/{1D}' {} \;

%build
%py3_build

%install
%py3_install


%check
python3 setup.py check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6752 |21cr|python3-crcmod-1.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname crcmod

Name:           python3-%{oname}
Version:        1.7
Release:        6
Summary:        Creates functions that efficiently compute CRC's using table lookup
URL:            http://crcmod.sourceforge.net/
Source0:        http://garr.dl.sourceforge.net/project/%{oname}/%{oname}/%{oname}-%{version}/%{oname}-%{version}.tar.gz
License:        MIT
Group:          Development/Python
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)

%description
Create functions that efficiently compute the Cyclic Redundancy Check 
(CRC) using table lookup.

Features:

    * Create Python functions for computing the CRC. If the optional 
      extension module is installed, the calculations are preformed 
      using fast C code.
    * Create instances of the Crc class that support the interface 
      used by the md5 and sha modules in the Python standard library.
    * Generate C/C++ code that can be incorporated in another project.
    * Any generator polynomial producing 8, 16, 32, or 64 bit CRCs is 
      allowed.
    * Forward and bit-reverse algorithms are supported.

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}


%files
%doc README changelog
%{py3_platsitedir}/%{oname}
%{py3_platsitedir}/%{oname}-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6753 |21cr|python3-curtsies-0.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	curtsies

Name:		python3-%{oname}
Version:	0.3.0
Release:	2
Summary:	Curses-like terminal wrapper, with colored strings!
Source0:	http://pypi.python.org/packages/source/c/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/bpython/curtsies
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-blessings >= 1.5
BuildRequires:	python3-wcwidth >= 0.1.4
BuildRequires:	python3-typing

%description
[![Build Status](https://travis-ci.org/bpython/curtsies.svg?branch=master)]
(https://travis-ci.org/bpython/curtsies)
[![Documentation Status]
(https://readthedocs.org/projects/curtsies/badge/?version=latest)]
(https://readthedocs.org/projects/curtsies/?badge=latest)
![Curtsies Logo](http://ballingt.com/assets/curtsiestitle.png)

Curtsies is a Python 2.7 & 3.4+ compatible library for interacting
with the terminal.
This is what using (nearly every feature of) curtsies looks like:

```python
from __future__ import unicode_literals  # convenient for Python 2
import random

from curtsies import FullscreenWindow, Input, FSArray
from curtsies.fmtfuncs import red, bold, green, on_blue, yellow

print(yellow('this prints normally, not to the alternate screen'))
with FullscreenWindow() as window:
    with Input() as input_generator:
        msg = red(on_blue(bold('Press escape to exit')))
        a = FSArray(window.height, window.width)
        a[0:1, 0:msg.width] = [msg]
        for c in input_generator:
            if c == '<ESC>':
                break
            elif c == '<SPACE>':
                a = FSArray(window.height, window.width)
            else:
                s = repr(c).decode()
                row = random.choice(range(window.height))
                column = random.choice(range(window.width-len(s)))
                color = random.choice([red, green, on_blue, yellow])
                a[row, column:column+len(s)] = [color(s)]
            window.render_to_terminal(a)
```

Paste it in a `something.py` file and try it out!

Installation: `pip install curtsies`

[Documentation](http://curtsies.readthedocs.org/en/latest/)

Primer
------

[FmtStr](http://curtsies.readthedocs.org/en/latest/FmtStr.html) objects are
strings formatted with colors and styles displayable in a terminal with
[ANSI escape sequences](http://en.wikipedia.org/wiki/ANSI_escape_code>`_).

(the import statement shown below is outdated)

![](http://i.imgur.com/7lFaxsz.png)

[FSArray](http://curtsies.readthedocs.org/en/latest/FSArray.html) objects
contain multiple such strings with each formatted string on its own row,
and FSArray
objects can be superimposed on each other
to build complex grids of colored and styled characters through composition.

(the import statement shown below is outdated)

![](http://i.imgur.com/rvTRPv1.png)

Such grids of characters can be rendered to the terminal in alternate screen
mode (no history, like `Vim`, `top` etc.)by [FullscreenWindow]
(http://curtsies.readthedocs.org/en/latest/window.html#curtsies.window.
FullscreenWindow) objects or normal history-preserving screen
by [CursorAwareWindow](http://curtsies.readthedocs.org/en/latest/window.
html#curtsies.window.CursorAwareWindow) objects.
User keyboard input events like pressing the up arrow key are detected by an
[Input](http://curtsies.readthedocs.org/en/latest/input.html) object.

Examples
--------

* [Tic-Tac-Toe](/examples/tictactoeexample.py)

![](http://i.imgur.com/AucB55B.png)

* [Avoid the X's game](/examples/gameexample.py)

![](http://i.imgur.com/nv1RQd3.png)

* [Bpython-curtsies uses curtsies]
  (http://ballingt.com/2013/12/21/bpython-curtsies.html)

[![](http://i.imgur.com/r7rZiBS.png)]
(http://www.youtube.com/watch?v=lwbpC4IJlyA)

* [More examples](/examples)

About
-----

* [Curtsies Documentation](http://curtsies.readthedocs.org/en/latest/)
* Curtsies was written to for [bpython-curtsies]
  (http://ballingt.com/2013/12/21/bpython-curtsies.html)
* `#bpython` on irc is a good place to talk about Curtsies, but feel free
  to open an issue if you're having a problem!
* Thanks to the many contributors!
* If all you need are colored strings, consider one of these [other libraries]
  (http://curtsies.readthedocs.io/en/latest/FmtStr.html#fmtstr-rationale)!

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc LICENSE
%doc readme.md
%{py3_puresitedir}/curtsies
%{py3_puresitedir}/curtsies*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6754 |21cr|python3-demjson-2.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	demjson

Name:		python3-%{oname}
Version:	2.2.4
Release:	2
Summary:	Encoder, decoder, and lint/validator for JSON  compliant with RFC 7159
Source0:	http://pypi.python.org/packages/source/d/%{oname}/%{oname}-%{version}.tar.gz
License:	GNU LGPL 3.0
Group:		Development/Python
Url:		http://deron.meranda.us/python/demjson/
BuildArch:	noarch
BuildRequires:  python3

%description
The "demjson" module, and the included "jsonlint" script, provide methods
for encoding and decoding JSON formatted data, as well as checking JSON
data for errors and/or portability issues.  The jsonlint command/script
can be used from the command line without needing any programming.

Although the standard Python library now includes basic JSON support
(which it did not when demjson was first written), this module
provides a much more comprehensive implementation with many features
not found elsewhere.  It is especially useful for error checking or
for parsing JavaScript data which may not strictly be valid JSON data.

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc LICENSE.txt
%doc README.md
%doc README.txt
%doc docs/CHANGES.txt
%doc docs/HOOKS.txt
%doc docs/INSTALL.txt
%doc docs/NEWS.txt
%doc docs/PYTHON3.txt
%doc docs/demjson.txt
%doc docs/jsonlint.txt
%{_bindir}/jsonlint
%{py3_puresitedir}/demjson.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/demjson*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6755 |21cr|python3-dib-utils-0.0.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	dib-utils

Name:		python3-%{oname}
Version:	0.0.11
Release:	2
Summary:	Pieces of diskimage-builder that are useful without the rest of the project
Source0:	http://pypi.python.org/packages/source/d/%{oname}/%{oname}-%{version}.tar.gz
License:	Apache License (2.0)
Group:		Development/Python
Url:		https://git.openstack.org/cgit/openstack/dib-utils
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
Standalone tools related to diskimage-builder

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%{_bindir}/dib-run-parts
%{py3_puresitedir}/dib_utils*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6756 |21cr|python3-django-ajax-selects-1.3.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname django-ajax-selects

Name:           python3-%{realname}
Version:        1.3.4
Release:        5
Summary:        JQuery-powered auto-complete fields for ForeignKey and ManyToMany fields

Group:          Development/Python
License:        MIT and GPLv3
URL:            http://pypi.python.org/pypi/django-ajax-selects
Source:         http://pypi.python.org/packages/source/d/django-ajax-selects/django-ajax-selects-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-django

%description
Enables editing of `ForeignKey`, `ManyToMany` and simple text fields using the
Autocomplete - `jQuery` plugin.
        
django-ajax-selects will work in any normal form as well as in the admin.
        
The user is presented with a text field. They type a search term or a few
letters of a name they are looking for, an ajax request is sent to the server,
a search channel returns possible results. Results are displayed as a drop down
menu. When an item is selected it is added to a display area just below the
text field.

%prep
%setup -q -n %{realname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}
rm -rf %{buildroot}/usr/templates

%files
%doc  ajax_select/LICENSE.txt 
%{py3_puresitedir}/ajax_select
%{py3_puresitedir}/django_ajax_selects-%{version}-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6757 |21cr|python3-django-appconf-1.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django-appconf

Name:           python3-%{pypi_name}
Version:	1.0.1
Release:        5
Summary:        A helper class for handling configuration defaults of packaged apps gracefully
Group:		Development/Python

License:        BSD
URL:            http://pypi.python.org/pypi/django-appconf/0.5
Source0:        http://pypi.python.org/packages/source/d/django-appconf/django-appconf-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3-sphinx
BuildRequires:	python3-setuptools

Requires:   python3-django

%description
A helper class for handling configuration
defaults of packaged Django
apps gracefully.

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# generate html docs 
sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%files
%doc html README.rst LICENSE
%{py3_puresitedir}/appconf
%{py3_puresitedir}/django_appconf-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6758 |21cr|python3-django-authority-0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname  django-authority
Name:           python3-%{oname}
Version:        0.4
Release:        5
Summary:        A Django app for generic per-object permissions and custom permission checks

Group:          Development/Python
License:        BSD
URL:            http://bitbucket.org/jezdez/%{oname}/
Source:         http://bitbucket.org/jezdez/%{oname}/downloads/%{oname}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel python3-setuptools
Requires:       python3-django

%description
This is a Django app for generic per-object permissions, custom permission
checks and permission requests. It also includes view decorators and template 
tags for ease of use.

%prep
%setup -q -n %{oname}-%{version}
find . -name \*._* -exec rm {} +
find . -name \*.buildinfo* -exec rm {} +

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%clean

%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE README docs/build/html/
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6759 |21cr|python3-django-classy-tags-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define   module   django-classy-tags

Summary:   Class based template tags for Django
Name:      python3-%{module}
Version:   2.0.0
Release:   1
License:   BSD
Group:     Development/Python
Url:       http://github.com/ojii/django-classy-tags
Source0:   http://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz

BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(django)
Requires:       python3egg(django)

BuildArch:   noarch

%description
The goal of this project is to create a new way of writing Django template tags
which is fully compatible with the current Django templating infrastructure.
This new way should be easy, clean and require as little boilerplate code
as possible while still staying as powerful as possible.

%files
%doc README.rst
%{py3_puresitedir}/classytags/
%{py3_puresitedir}/django_classy_tags*.egg-info
#-------------------------------------------------------
%prep
%setup -qn %{module}-%{version}
rm -fr *.egg-info

%build
%py3_build

%install
%py3_install

find %{buildroot} -size 0 -delete
rm -r %{buildroot}%{py3_puresitedir}/tests

%check
export PYTHONPATH='.'
python3 tests/settings.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6760 |21cr|python3-django-compressor-1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django_compressor

Name:           python3-django-compressor
Version:        1.4
Release:        4
Summary:        Compresses linked and inline JavaScript or CSS into single cached files

Group:		Development/Python

License:        MIT
URL:            http://pypi.python.org/pypi/django_compressor/1.2
Source0:        http://pypi.python.org/packages/source/d/django_compressor/django_compressor-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
 
Requires:       python3-django-appconf >= 0.4
Requires:       python3-versiontools
Requires:   python3-django

%description
Django Compressor combines and compresses linked and inline Javascript
or CSS in a Django templates into cacheable static files by using the
``compress`` template tag.  HTML in between 
``{% compress js/css %}`` and ``{% endcompress %}`` is
parsed and searched for CSS or JS. These styles and scripts are subsequently
processed with optional, configurable compilers and filters.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# remove /usr/bin/env from scripts
for i in compressor/tests/precompiler.py \
         compressor/filters/cssmin/cssmin.py \
         compressor/filters/jsmin/rjsmin.py; 
  do sed -i -e "1d" $i;
done



%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%files
%doc README.rst LICENSE
%{py3_puresitedir}/compressor
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6761 |21cr|python3-django-easy-thumbnails-2.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python3-django-easy-thumbnails
Version:	2.3
Release:        4
Url:            http://github.com/lukaszb/django-guardian
Summary:        A powerful, yet easy to implement thumbnailing application for Django

License:        BSD-3-Clause
Group:          Development/Python
Source0:        https://pypi.python.org/packages/source/e/easy-thumbnails/easy-thumbnails-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-distribute
Requires:       python3-django >= 1.2
BuildArch:      noarch

%description
A powerful, yet easy to implement thumbnailing application for Django.

%prep
%setup -q -n easy-thumbnails-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%doc README.rst
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6762 |21cr|python3-django-filter-22.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname    django-filter

Name: python3-%{realname}
Version:	22.1
Release:	1
Summary:        A Django application for allowing users to filter queryset dynamically
Group:          Development/Python
License:        BSD
URL:            http://pypi.python3.org/pypi/django-filter
Source0:	https://files.pythonhosted.org/packages/c5/8c/d7899a0c3e46993922d7e5f7cdc69da304b89521e371ac63863d418cd0b0/django-filter-22.1.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel python3-setuptools
Requires:       python3-django

%description
Django-filter provides a simple way to filter down a queryset based on
parameters a user provides.


%prep
%setup -q -n %{realname}-%{version}
find . -name \*._* -exec rm {} +
find . -name \*.buildinfo* -exec rm {} +

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%files
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6763 |21cr|python3-django-guardian-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python3-django-guardian
Version:	2.4.0
Release:	1
Url:            http://github.com/lukaszb/django-guardian
Summary:        Implementation of per object permissions for Django 1.2

License:        BSD-3-Clause
Group:          Development/Python
Source0:	https://files.pythonhosted.org/packages/6f/4c/d1f6923a0ad7f16c403a54c09e94acb76ac6c3765e02523fb09b2b03e1a8/django-guardian-2.4.0.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-distribute
Requires:       python3-django >= 1.2
BuildArch:      noarch

%description
django-guardian is implementation of per object permissions as
authorization backend which is supported since Django 1.2. It won't
work with older Django releases.

%prep
%setup -q -n django-guardian-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%doc CHANGES README.rst
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6764 |21cr|python3-django-js-asset-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  django-js-asset

Name:     python3-%{module}
Version:  1.2.2
Release:  1
Summary:  Script tag with additional attributes for django.forms.Media
License:  BSD
Group:    Development/Python
URL:      https://github.com/matthiask/django-js-asset/
Source0:  https://pypi.io/packages/source/d/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(django)
BuildRequires:  python3egg(coverage)
BuildRequires:  python3egg(pytz)

BuildArch:  noarch

%description
Script tag with additional attributes for django.forms.Media.

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir}/js_asset
%{py3_puresitedir}/django_js_asset-%{version}-py?.?.egg-info


#---------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf django_js_asset.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 tests/testapp/settings.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6765 |21cr|python3-django-notification-1.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname django-notification

Name:           python3-django-notification
Version:        1.1.1
Release:        5
Summary:        User notification management for the Django web framework


Group:          Development/Python
License:        MIT
URL:            http://code.google.com/p/django-notification/
Source0:        http://pypi.python.org/packages/source/d/django-notification/django-notification-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel python3-setuptools
Requires:       python3-django

%description
Many sites need to notify users when certain events have occurred and to
allow configurable options as to how those notifications are to be received.

The project aims to provide a Django app for this sort of functionality.
This includes:

    * submission of notification messages by other apps
    * notification messages on signing in
    * notification messages via email (configurable by user)
    * notification messages via feed

%prep
%setup -q -n %{realname}-%{version}
find -name '._*' -exec rm {} \;

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%clean

%files
%defattr(-,root,root,-)
%doc AUTHORS LICENSE  docs/
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6766 |21cr|python3-django-pagination-1.0.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname django-pagination

Name:           python3-django-pagination
Version:        1.0.7
Release:        5
Summary:        Django pagination tools

Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/django-pagination
Source0:        http://pypi.python.org/packages/source/d/django-pagination/%{realname}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel python3-setuptools
Requires:       python3-django

%description
A set of utilities for creating robust pagination tools throughout a Django
application.

%prep
%setup -q -n %{realname}-%{version}
find -name '._*' -exec rm {} \;

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%clean

%files
%defattr(-,root,root,-)
%doc CONTRIBUTORS.txt LICENSE.txt docs/
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6767 |21cr|python3-django-profile-0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname django-profile
%define vcsdate 20090813
%define vcstag r420

Name:           python3-%{realname}
Version:        0.6
Release:        5
Summary:        Django pluggable user profile zone
Group:          Development/Python
License:        BSD
URL:            http://code.google.com/p/django-profile/
Source:         %{realname}-%{version}-%{vcstag}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel python3-setuptools
Requires:       python3-django python3-pillow

%description
This is a user private zone/profile management application, allowing
the user to take control of his account and insert information about
him in his profile.

Inside this package you will find a demo application which will show
you what can be accomplished with the rest of the utilities included
in the package.

%prep
%setup -q -n %{realname}-%{version}-%{vcstag}

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

# delete unpackaged files
rm -rf %{buildroot}%{py3_puresitedir}/demo

%clean

%files
%defattr(-,root,root,-)
%doc INSTALL.txt CHANGELOG.txt LICENSE.txt README.txt TODO.txt demo/
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6768 |21cr|python3-django-registration-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname django-registration

Name:           python3-django-registration
Version:        1.0
Release:        5
Summary:        A user-registration application for Django

Group:          Development/Python
License:        BSD
URL:            http://bitbucket.org/ubernostrum/django-registration
Source0:        https://pypi.python.org/packages/source/d/django-registration/django-registration-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:	python3-setuptools
Requires:       python3-django

%description
This is a fairly simple user-registration application for Django_, designed to
make allowing user signups as painless as possible.

%prep
%setup -q -n %{realname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%clean

%files
%doc docs/
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6769 |21cr|python3-django-sekizai-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define   module   django-sekizai

Summary:   Media framework for Django
Name:      python3-%{module}
Version:   2.0.0
Release:   1
License:   BSD
Group:     Development/Python
Url:       https://github.com/ojii/django-sekizai/
Source0:   https://pypi.python.org/packages/source/d/django-sekizai/%{module}-%{version}.tar.gz
BuildRequires:   python3egg(django-classy-tags)
BuildRequires:   python3egg(setuptools)
BuildRequires:   python3egg(sphinx)
BuildRequires:   python3egg(pycodestyle)

BuildArch:   noarch

%description
Sekizai is media (css/js) framework for Django and Django CMS.

%files
%doc *.rst docs/_build/html *.txt
%{py3_puresitedir}/sekizai
%{py3_puresitedir}/django_sekizai-%{version}-py3.*.egg-info

#----------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}
rm -fr *.egg-info

%build
%py3_build
pushd docs
    make html
    rm _build/html/.buildinfo
popd

%install
%py3_install
find %{buildroot} -size 0 -delete
rm -r %{buildroot}%{py3_puresitedir}/tests


%check
export PYTHONPATH='.'
python3 tests/settings.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6770 |21cr|python3-django-sorting-0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname    django-sorting

Name: python3-%{realname}
Version: 0.1
Release: 5
Summary:        A Django application for easy sorting
Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/django-sorting
Source:         %{realname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel python3-setuptools
Requires:       python3-django

%description
Django-sorting allows for easy sorting, and sorting links generation
without modifying your views.

%prep
%setup -q -n %{realname}-%{version}
find . -name \*._* -exec rm {} +
find . -name \*.buildinfo* -exec rm {} +

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%clean

%files
%defattr(-,root,root,-)
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6771 |21cr|python3-django-south-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname    South

Summary:        Migrations for Django
Name:		    python3-django-south
Version:	    1.0
Release:	    4
Source:         https://pypi.python.org/packages/source/S/South/South-%{version}.tar.gz
Group:          Development/Python
License:        ASL 2.0
URL:            http://south.aeracode.org/
BuildArch:      noarch
Requires:       python3egg(django)
BuildRequires:  pkgconfig(python)
BuildRequires:  python3egg(setuptools)

%description
South is an intelligent database migrations library for the Django web
framework. It is database-independent and DVCS-friendly, as well as a
whole host of other features.

%prep
%setup -q -n %{oname}-%{version}
rm -rf South.egg-info

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} 
find %{buildroot} -size 0 -delete

%files 
%doc README
%{py3_puresitedir}/south
%{py3_puresitedir}/South-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6772 |21cr|python3-django-staticfiles-1.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname    django-staticfiles

Name:		python3-%{realname}
Version:	1.2.1
Release:	4
Summary:        A Django app that provides helpers for serving static files
Group:          Development/Python
License:        BSD
URL:            http://bitbucket.org/jezdez/django-authority/
Source:         https://pypi.python.org/packages/source/d/django-staticfiles/django-staticfiles-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel python3-setuptools
Requires:       python3-django

%description
A Django app that provides helpers for serving static files

%prep
%setup -q -n %{realname}-%{version}
find . -name \*._* -exec rm {} +
find . -name \*.buildinfo* -exec rm {} +

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%clean

%files
%defattr(-,root,root,-)
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6773 |21cr|python3-django-tagging-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname django-tagging

Name:           python3-django-tagging
Version:	0.5.0
Release:	1
Summary:        A generic tagging application for Django projects

Group:          Development/Python
License:        MIT
URL:            http://code.google.com/p/django-tagging/
# svn export -r154 http://django-tagging.googlecode.com/svn/trunk/ django-tagging-0.3-r154
# tar zcf django-tagging-0.3-r154.tar.gz django-tagging-0.3-r154
Source0:	https://files.pythonhosted.org/packages/d2/9b/a137d764eb990ac353399d244aa96c7cf02aabe3c58be5a74418406bb838/django-tagging-0.5.0.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  locales-en
Requires:       python3-django

%description
A generic tagging application for Django projects, which allows association
of a number of tags with any Model instance and makes retrieval of tags
simple.

%prep
%setup -q -n %{realname}-%{version}

%build
export LC_ALL=en_US.utf8
python3 setup.py build

%install
export LC_ALL=en_US.utf8
python3 setup.py install -O1 --skip-build --root %{buildroot}

%files
%doc CHANGELOG.txt LICENSE.txt docs/
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6774 |21cr|python3-django-tagging-autocomplete-0.3.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname django-tagging-autocomplete

Name:           python3-django-tagging-autocomplete
Version:        0.3.1
Release:        6
Summary:        Autocompletion for django-tagging

Group:          Development/Python
License:        MIT
URL:            http://pypi.python.org/pypi/django-tagging-autocomplete
Source0:        http://pypi.python.org/packages/source/d/django-tagging-autocomplete/%{realname}-%{version}.tar.gz


BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-django

%description
Autocompletion for django-tagging

%prep
%setup -q -n %{realname}-%{version}

%build
python3 setup.py build


%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%files
%doc LICENSE.txt README.txt
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6775 |21cr|python3-django-threadedcomments-0.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname    django-threadedcomments

Name: python3-%{realname}
Version: 0.9
Release: 5
Summary:        A simple yet flexible threaded commenting system
Group:          Development/Python
License:        BSD
URL:            http://code.google.com/p/django-threadedcomments/
Source:         %{realname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel python3-setuptools
Requires:       python3-django

%description
A simple yet flexible threaded commenting system.

%prep
%setup -q -n %{realname}-%{version}
find . -name \*._* -exec rm {} +
find . -name \*.buildinfo* -exec rm {} +

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%clean

%files
%defattr(-,root,root,-)
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6776 |21cr|python3-django-userena-1.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	django-userena

Name:		python3-%{module}
Version:	1.4.1
Release:	5
Summary:	Complete user management application for Django
Group:		Development/Python
License:	BSD
URL:		https://github.com/bread-and-pepper/django-userena/
Source0:	https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz
Patch0:		django-userena-1.4.1-mga-fix-setup-install_requires.patch
BuildArch:	noarch
BuildRequires:	python3-setuptools

Requires:	python3-html2text

%description
Userena is a Django application that supplies your Django
project with full account management.
It's a fully customizable application that takes care of the
signup, activation, messaging and more.
It's BSD licensed, which means you can use it commercially for free!

#---------------------------------------------------------------------------
%prep
%setup -q -n %{module}-%{version}
%apply_patches

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} --skip-build

%files
%doc README.mkd docs
# list some files explicitly to avoid listing locale files twice
%{py3_puresitedir}/userena/*py*
%{py3_puresitedir}/userena/contrib/
%{py3_puresitedir}/userena/fixtures/
%{py3_puresitedir}/userena/management/
%{py3_puresitedir}/userena/migrations/
%{py3_puresitedir}/userena/runtests/
%{py3_puresitedir}/userena/south_migrations/
%{py3_puresitedir}/userena/templates/
%{py3_puresitedir}/userena/tests/
%{py3_puresitedir}/django_userena-%{version}-py*.*.egg-info
# locale files
%lang(bg) %{py3_puresitedir}/userena/locale/bg/LC_MESSAGES/django.?o
%lang(de) %{py3_puresitedir}/userena/locale/de/LC_MESSAGES/django.?o
%lang(de_du) %{py3_puresitedir}/userena/locale/de_du/LC_MESSAGES/django.?o
%lang(el) %{py3_puresitedir}/userena/locale/el/LC_MESSAGES/django.?o
%lang(es) %{py3_puresitedir}/userena/locale/es/LC_MESSAGES/django.?o
%lang(fr) %{py3_puresitedir}/userena/locale/fr/LC_MESSAGES/django.?o
%lang(gl) %{py3_puresitedir}/userena/locale/gl/LC_MESSAGES/django.?o
%lang(it) %{py3_puresitedir}/userena/locale/it/LC_MESSAGES/django.?o
%lang(nb) %{py3_puresitedir}/userena/locale/nb/LC_MESSAGES/django.?o
%lang(nl) %{py3_puresitedir}/userena/locale/nl/LC_MESSAGES/django.?o
%lang(pl) %{py3_puresitedir}/userena/locale/pl/LC_MESSAGES/django.?o
%lang(pt) %{py3_puresitedir}/userena/locale/pt/LC_MESSAGES/django.?o
%lang(pt_BR) %{py3_puresitedir}/userena/locale/pt_BR/LC_MESSAGES/django.?o
%lang(ru) %{py3_puresitedir}/userena/locale/ru/LC_MESSAGES/django.?o
%lang(tr) %{py3_puresitedir}/userena/locale/tr/LC_MESSAGES/django.?o
%lang(zh_CN) %{py3_puresitedir}/userena/locale/zh_CN/LC_MESSAGES/django.?o
%lang(zh_TW) %{py3_puresitedir}/userena/locale/zh_TW/LC_MESSAGES/django.?o

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6777 |21cr|python3-dpath-2.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	dpath

Name:		python3-%{oname}
Version:	2.0.6
Release:	1
Summary:	Filesystem-like pathing and searching for dictionaries
Source0:	https://files.pythonhosted.org/packages/a0/cf/cf35f8b7f212be18634970a5b2d7a50adc715e649a0a8fedb06c909603d8/dpath-2.0.6.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://www.github.com/akesterson/dpath-python
BuildArch:	noarch
BuildRequires:  python3

%description
UNKNOWN

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%{py3_puresitedir}/dpath
%{py3_puresitedir}/dpath*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6778 |21cr|python3-editorconfig-0.12.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	EditorConfig
%define	module	editorconfig

Summary:	EditorConfig File Locator and Interpreter for Python
Name:		python3-%{module}
Version:	0.12.4
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://editorconfig.org
Source0:	https://files.pythonhosted.org/packages/source/e/editorconfig/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
EditorConfig Python Core provides the same functionality as the
`EditorConfig C Core <https://github.com/editorconfig/editorconfig-core>`_.
EditorConfig Python core can be used as a command line program or as an
importable library.

EditorConfig makes it easy to maintain the correct coding style when switching
between different text editors and between different projects.  The
EditorConfig project maintains a file format and plugins for various text
editors which allow this file format to be read and used by those editors.  For
information on the file format and supported text editors, see the
`EditorConfig website <http://editorconfig.org>`_.

%files
%license LICENSE.BSD LICENSE.PSF
%doc README.rst
%{_bindir}/editorconfig
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{pypi_name}*.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6779 |21cr|python3-eggtestinfo-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	eggtestinfo

Name:		python3-%{oname}
Version:	0.3
Release:	1
Summary:	Client identification and sessions for Zope
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/eggtestinfo
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
This package provides interfaces for client identification and session
support and their implementations for zope.publisher's request objects.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check

%files
%{py3_puresitedir}/eggtestinfo*
%{py3_puresitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6780 |21cr|python3-emcee-2.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	emcee

Name:		python3-%{oname}
Version:	2.2.1
Release:	2
Summary:	Kick ass affine-invariant ensemble MCMC sampling
Source0:	http://pypi.python.org/packages/source/e/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://dan.iel.fm/emcee/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:  python3

%description
emcee
=====
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc AUTHORS.rst
%doc HISTORY.rst
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/emcee
%{py3_puresitedir}/emcee*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6781 |21cr|python3-fdb-2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  module  fdb

Name:     python3-%{module}
Version:  2.0.2
Release:  1
Summary:  Firebird RDBMS bindings for Python
License:  BSD
Group:    Development/Python
Url:      http://www.firebirdsql.org/en/devel-python-driver/
Source0:  http://pypi.python.org/packages/source/f/%{module}/%{module}-%{version}.tar.gz

BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(future)
BuildRequires:  firebird-devel
BuildRequires:  pkgconfig(fbclient)

Requires:       %{_lib}fbclient2

BuildArch:  noarch

%description
fdb package is a set of Firebird RDBMS bindings for python.
It works on Python 2.6+ and Python 3.x.

%files
%doc *.rst *.txt
%{py3_puresitedir}/fdb
%{py3_puresitedir}/fdb*.egg-info
#-------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -fr fdb.egg-info

%build
%py3_build

%install
%py3_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6782 |21cr|python3-feedgenerator-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	feedgenerator

Name:		python3-%{oname}
Version:	2.0.0
Release:	1
Summary:	Standalone version of django.utils.feedgenerator
Source0:	https://files.pythonhosted.org/packages/69/67/ee0bbc3fd0a2e9e0c02e3bcb3105302c6c88951f3f8e9d86ea81e4f8f293/feedgenerator-2.0.0.tar.gz
License:	BSD License
Group:		Development/Python
Url:		https://github.com/getpelican/feedgenerator
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
FeedGeneratorpy

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
#python3 setup.py test

%files
%doc README.rst
%{py3_puresitedir}/feedgenerator
%{py3_puresitedir}/feedgenerator*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6783 |21cr|python3-firebase-admin-4.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Firebase Admin Python SDK
Name:		python3-firebase-admin
Version:	4.0.1
Release:	1
License:	ASLv2
Group:		Development/Python
Url:		https://firebase.google.com/docs/admin/setup/
Source0:	https://files.pythonhosted.org/packages/5b/5b/b536eeddbb2004870a1fe5b2b7dc8ae0c4c620be8cd05e9884841dd8a5f1/firebase_admin-4.0.1.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
The Firebase Admin Python SDK enables server-side (backend) Python
developers to integrate Firebase into their services and applications.

%files
%doc README.md
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn firebase_admin-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6784 |21cr|python3-firebirdsql-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	firebirdsql

Name:		python3-%{module}
Version:	1.2.2
Release:	1
Summary:	Firebird RDBMS bindings for python
Source0:	https://files.pythonhosted.org/packages/24/44/58551f6b2ac30820247e8302447e33126261757cdc3691018e67e22d828b/firebirdsql-1.2.2.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://github.com/nakagami/pyfirebirdsql/

BuildRequires:  python3egg(setuptools)
BuildRequires:  python3
BuildArch:	noarch

%description
firebirdsql package is a set of Firebird RDBMS
(https://firebirdsql.org/) bindings for
Python (Written in pure Python :
no C compiler needed or fbclient library)

%files
%{py3_puresitedir}/firebirdsql
%{py3_puresitedir}/firebirdsql*.egg-info
#------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}
rm -fr *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6785 |21cr|python3-fudgemsg-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	fudgemsg

Name:		python3-%{module}
Version:	0.1
Release:	2
Summary:	Fudge is a hierarchical
Source0:	http://pypi.python.org/packages/source/f/%{module}/%{module}-%{version}.tar.gz
License:	ASL 2.0
Group:		Development/Python
Url:		http://github.com/joequant/Fudge-Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This is a native python implementation of the Fudge messaging system.

%files
%doc LICENSE README.md
%{py3_puresitedir}/fudgemsg
%{py3_puresitedir}/fudgemsg*.egg-info

%prep
%setup -qn %{module}-%{version}
rm -fr %{module}.egg-info


%build
%py3_build

%install
%py3_install

rm -fr %{buildroot}%{py3_puresitedir}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6786 |21cr|python3-getdist-1.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define   pypi_name GetDist
%define   module getdist

Name:      python3-%{module}
Version:	1.3.4
Release:	1
Summary:   GetDist Monte Carlo sample analysis, plotting and GUI
Source0:	https://files.pythonhosted.org/packages/5b/51/299a1e48cb5f4bc96c0e9706c976b61bf9c4ad55ad386d48a29a05460bb5/GetDist-1.3.4.tar.gz
License:   MIT
Group:     Development/Python
Url:       https://github.com/cmbant/getdist
BuildRequires:   python3
BuildRequires:   python3egg(setuptools)
BuildArch:   noarch

%description
GetDist is a Python package for analysing Monte Carlo samples,
including correlated samples from Markov Chain Monte Carlo 

%files
%doc README.rst
%{_bindir}/getdist*
%{py3_puresitedir}/getdist
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info
#---------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
find . -type f -name "*.py" -exec \
    sed -i -e 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/g' {} \;

%build
%py3_build

%install
%py3_install
chmod +x %{buildroot}%{py3_puresitedir}/getdist/gui/mainwindow.py



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6787 |21cr|python3-gns3-net-converter-1.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python3-gns3-net-converter
Version:        1.3.0
Release:        4
Summary:        Abstract away differences among multiple cloud provider APIs
License:        GPL
Group:          Development/Python
Url:            https://pypi.python.org/pypi/gns3-net-converter/
Source0:        http://pypi.python.org/packages/source/a/gns3-net-converter/gns3-net-converter-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-simplejson
Requires:       python3-qt5
BuildArch:      noarch

%description 
The converter will convert all IOS, 
Cloud and VirtualBoxdevices to the new format.  
It will also convert all QEMU based devices
(QEMU VM, ASA, PIX, JUNOS & IDS).  VPCS nodes 
will be converted to cloud devices due to 
lack of information the 0.8.7 topology files.

%prep
%setup -q -n gns3-net-converter-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

%files
%{py3_puresitedir}/*
%{_bindir}/gns3-converter

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6788 |21cr|python3-google-auth-1.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name google-auth

Name:           python3-google-auth
Version:        1.13.0
Release:        1
Summary:        Google Authentication Library
Group:          Development/Python
License:        ASLv2
URL:            https://github.com/googleapis/google-auth-library-python
Source0:        https://github.com/googleapis/google-auth-library-python/archive/v%{version}.tar.gz?/%{pypi_name}-library-python-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(cachetools) >= 2.0.0
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(pyasn1-modules) >= 0.2.1
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(rsa) >= 3.1.4
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six) >= 1.9.0
Requires:       python3egg(cachetools) >= 2.0.0
Requires:       python3egg(pyasn1-modules) >= 0.2.1
Requires:       python3egg(rsa) >= 3.1.4
Requires:       python3egg(six) >= 1.9.0

%description
Google Auth Python Library simplifies using Google's various server-to-server
authentication mechanisms to access Google.

%prep
%setup -qn %{pypi_name}-library-python-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || true

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/*.pth
%{py3_puresitedir}/google
%{py3_puresitedir}/google_auth-%{version}-py?.?.egg-info



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6789 |21cr|python3-h11-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	h11

Summary:	A pure-Python, bring-your-own-I/O implementation of HTTP/1.1
Name:		python3-%{module}
Version:	0.12.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/python-hyper/h11
Source0:	https://pypi.python.org/packages/source/h/%{module}/%{module}-%{version}.tar.gz

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)

Provides:	    python-%{module} = %{EVRD}

BuildArch:	noarch

%description
This is a little HTTP/1.1 library written from scratch in Python,
heavily inspired by hyper-h2.
It is a "bring-your-own-I/O" library; h11 contains no IO
code whatsoever.  This means you can hook h11 up to your
favorite network API, and that could be anything you want:
synchronous, threaded, asynchronous, or
your own implementation of RFC 6214 -- h11 will not judge you.
This also means that h11 is not immediately useful out of the box:
it is a toolkit for building
programs that speak HTTP, not something that could
directly replace requests or
twisted.web or whatever.  But h11 makes it much
easier to implement something
like requests or twisted.web.

%files
%doc LICENSE.txt README.rst
%{py3_puresitedir}/h11
%{py3_puresitedir}/h11*.egg-info
#----------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%check
pytest-3 --verbose


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6790 |21cr|python3-inflect-0.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	inflect

Name:		python3-%{oname}
Version:	0.2.5
Release:	2
Summary:	Does lots of grammar things
Source0:	http://pypi.python.org/packages/source/i/%{oname}/%{oname}-%{version}.tar.gz
License:	GNU Affero General Public License v3
Group:		Development/Python
Url:		http://pypi.python.org/pypi/inflect
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
The methods of the class ``engine`` in module ``inflect.py`` provide plural
inflections, singular noun inflections, "a"/"an" selection for English words,
and manipulation of numbers as words.

Plural forms of all nouns, most verbs, and some adjectives are
provided. Where appropriate, "classical" variants (for example: "brother" ->
"brethren", "dogma" -> "dogmata", etc.) are also provided.

Single forms of nouns are also provided. The gender of singular pronouns
can be chosen (for example "they" -> "it" or "she" or "he" or "they"). 

Pronunciation-based "a"/"an" selection is provided for all English
words, and most initialisms.

It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd)
and to english words ("one", "two", "three").

In generating these inflections, ``inflect.py`` follows the Oxford
English Dictionary and the guidelines in Fowler's Modern English
Usage, preferring the former where the two disagree.

The module is built around standard British spelling, but is designed
to cope with common American variants as well. Slang, jargon, and
other English dialects are *not* explicitly catered for.

Where two or more inflected forms exist for a single word (typically a
"classical" form and a "modern" form), ``inflect.py`` prefers the
more common form (typically the "modern" one), unless "classical"
processing has been specified

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc CHANGES.txt
%doc COPYING.txt
%doc README.rst
%doc tests/words.txt
%{py3_puresitedir}/inflect.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/inflect*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6791 |21cr|python3-intconv-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python3-intconv
Version:        1.1
Release:        3
Summary:        Simple number systems converter
License:        GPL
Group:          Development/Python
URL:            https://abf.io/import/intconv
Source0:        intconv.py
Requires:       python3
Provides:       intconv = %{EVRD}
BuildArch:      noarch
%description
%summary

%prep

%build

%install
mkdir -p %{buildroot}%{python3_sitelib} \
         %{buildroot}%{_bindir}

install -m 755  %{SOURCE0} %{buildroot}%{python3_sitelib}/
ln -s %{python3_sitelib}/intconv.py  %{buildroot}%{_bindir}/intconv

%files
%{_bindir}/intconv
%{python3_sitelib}/intconv.py
%{python3_sitelib}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6792 |21cr|python3-iptables-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __provides_exclude_from	^(%{py3_platsitedir}/.*\\.so)$

%define	oname	python-iptables
%define	module	iptables

Name:		python3-%{module}
Version:	1.0.0
Release:	1
Summary:	Python bindings for iptables
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/ldx/python3-iptables
Source0:	https://pypi.io/packages/source/p/python-iptables/%{oname}-%{version}.tar.gz
# debian patch
Patch0:		0001-Removed-badges-causing-privacy-breaches.patch

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
Python bindings for iptables
Iptables is the tool that is used to manage netfilter,
the standard packet filtering and manipulation framework under Linux.

%files
%doc NOTICE *.md
%{py3_platsitedir}/iptc
%{py3_platsitedir}/python_iptables*.egg-info
%{py3_platsitedir}/libxtwrapper.cpython-*-linux-gnu.so
#-------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

rm -fr *.egg-info
chmod -x README.md

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6793 |21cr|python3-josepy-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	josepy

Name:		python3-%{oname}
Version:	1.1.0
Release:	2
Summary:	JOSE protocol implementation in Python
Source0:	http://pypi.python.org/packages/source/j/%{oname}/%{oname}-%{version}.tar.gz
License:	Apache License
Group:		Development/Python
Url:		https://github.com/certbot/josepy
BuildArch:	noarch
BuildRequires:	python3egg(setuptools) python3-OpenSSL python3-cryptography python3-six

%description
JOSE protocol implementation in Python using cryptography

.. image:: https://travis-ci.org/certbot/josepy.svg?branch=master
  :target: https://travis-ci.org/certbot/josepy

.. image:: https://codecov.io/gh/certbot/josepy/branch/master/graph/badge.svg
  :target: https://codecov.io/gh/certbot/josepy

.. image:: https://readthedocs.org/projects/josepy/badge/?version=latest
  :target: http://josepy.readthedocs.io/en/latest/?badge=latest

Originally developed as part of the ACME_ protocol implementation.

.. _ACME: https://pypi.python.org/pypi/acme

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc LICENSE.txt
%doc README.rst
%doc docs/changelog.rst
%doc docs/jws-help.txt
%doc docs/requirements.txt
%doc src/josepy/testdata/README
%{_bindir}/jws 
%{py3_puresitedir}/josepy
%{py3_puresitedir}/josepy*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6794 |21cr|python3-jsbeautifier-1.15.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	jsbeautifier

Name:		python3-%{pypi_name}
Version:	1.15.1
Release:	1
Summary:	JavaScript unobfuscator and beautifier
Source0:	%{pypi_source}
License:	MIT
Group:		Development/Python
Url:		http://jsbeautifier.org
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(editorconfig)

%description
Beautify, unpack or deobfuscate JavaScript. Handles popular online obfuscators.

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%files
%{_bindir}/js-beautify
%{py3_puresitedir}/jsbeautifier
%{py3_puresitedir}/jsbeautifier*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6795 |21cr|python3-license-expression-30.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _use_internal_dependency_generator 0

Name:           python3-license-expression
Version:        30.0.0
Release:        1
Group:          Development/Python
Summary:        Utility library to parse, compare, simplify and normalize license expressions
License:        ASL 2.0
Url:            https://github.com/nexB/license-expression
Source:         https://files.pythonhosted.org/packages/source/l/license-expression/license-expression-%{version}.tar.gz
# dies because of double separator in versioning '9999.5f4febb-2022-05-10'
Patch0:         align-provided-rpm.patch

BuildRequires:  pkgconfig(python3) >= 3.6
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(boolean.py) >= 4
BuildRequires:  python3egg(pip)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)

Requires:       python3egg(boolean.py) >= 4

BuildArch:      noarch


%description
license-expression is a comprehensive utility
library to parse, compare, simplify and normalize
license expressions
(such as SPDX license expressions) using boolean logic.


%files
%doc *.rst
%{py3_puresitedir}/*
#------------------------------------------------
%prep
%setup -qn license-expression-%{version}
%patch0 -p1

%build
%py3_build

%install
%py3_install







@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6796 |21cr|python3-lshell-0.9.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname lshell

Name:		python3-lshell
Version:	0.9.18
Release:	2
Summary:	Python-based limited Shell

Group:		Shells
License:	GPLv3+
URL:		https://github.com/ghantoos/lshell
Source:		https://github.com/ghantoos/%{oname}/releases/download/%{version}/%{oname}_%{version}+git279d7ab.zip
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
Requires:	python3

%description
lshell provides a limited shell configured per user. The configuration
is done quite simply using a configuration file.


%prep
%setup -q -n %{oname}-master

#Fix permission
chmod -x CHANGES

%build
python3 setup.py build


%install
python3 setup.py install -O1 --skip-build --root=%{buildroot}
#doc files at the wrong place
rm %{buildroot}%{_defaultdocdir}/lshell/{CHANGES,COPYING,README.md}

%files
%doc CHANGES COPYING README.md
%{_mandir}/man*/*.*
%{_bindir}/%{oname}
%config(noreplace) %{_sysconfdir}/%{oname}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{oname}
%{py3_puresitedir}/%{oname}/
%{py3_puresitedir}/%{oname}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6797 |21cr|python3-markdown-math-0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname python-markdown-math
%define module markdown-math

Name:           python3-%{module}
Version:        0.8
Release:        1
Summary:        Math extension for Python-Markdown
Group:          Development/Python
License:        BSD
URL:            https://github.com/mitya57/python-markdown-math
Source0:        %{url}/archive/%{version}/%{oname}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(markdown)

BuildArch:      noarch

%description
Extension for Python-Markdown: this extension adds math
formulas support to Python-Markdown.

%files
%doc README.md LICENSE
%{py3_puresitedir}/__pycache__
%{py3_puresitedir}/mdx_math.py
%{py3_puresitedir}/python_markdown_math-%{version}-py?.?.egg-info
#--------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}
rm -rf %{oname}.egg-info

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6798 |21cr|python3-markups-3.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Markups
%define module markups

Name:           python3-%{module}
Version:        3.1.3
Release:        1
Group:          Development/Python
License:        BSD
Summary:        A wrapper around various text %{module}
URL:            https://pypi.python.org/pypi/%{oname}
Source0:        http://pypi.python.org/packages/source/M/%{oname}/%{oname}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(docutils)
BuildRequires:  python3egg(markdown)
BuildRequires:  python3egg(pygments)
BuildRequires:  python3egg(python-markdown-math)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(textile)
BuildRequires:  python3egg(sphinx)

BuildArch:      noarch

%description
This module provides a Python 3 wrapper around the various text markup
languages, such as Markdown and reStructuredText (these two are supported
by default).

%files
%doc README.rst LICENSE html
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{oname}-%{version}-py?.?.egg-info
#--------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}
rm -rf %{oname}.egg-info

%build
%py3_build

PYTHONPATH=${PWD} sphinx-build-3 docs html
rm -rf html/.{doctrees,buildinfo}


%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pushd tests
# no network in worker
rm -fr test_markdown.py
python3 -m unittest -vvv test_*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6799 |21cr|python3-msgpack-0.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define tarname	msgpack

Summary:	MessagePack (de)serializer for Python

Name:		python3-msgpack
Version:	0.6.2
Release:	2
Source0:	https://pypi.python.org/packages/source/m/msgpack-python/msgpack-%{version}.tar.gz
License:	Apache License
Group:		Development/Python
Url:		http://msgpack.org/
BuildRequires:	python3-cython
BuildRequires:	python3-setuptools
Provides:	python3egg(msgpack-python)

%description
MessagePack is a binary-based efficient data interchange format that
is focused on high performance. It is like JSON, but very fast and
small.

%prep
%setup -qn %{tarname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%clean

%files 
%doc COPYING README.rst
%{py3_platsitedir}/msgpack*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6800 |21cr|python3-multidict-3.3.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname multidict

Name:           python3-%{modname}
Version:        3.3.2
Release:        3
Summary:        MultiDict implementation
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/aio-libs/%{modname}
Source0:        %{url}/archive/v%{version}%{?rctag:%{rctag}}/%{modname}-%{version}%{?rctag:%{rctag}}.tar.gz
Requires:       python3
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-cython
BuildRequires:  python3-pytest


%description
Multidicts are useful for working with HTTP headers, URL query args etc.
The code was extracted from aiohttp library.

%prep
%setup -qn %{modname}-%{version}

%build
%py3_build

%install
%py3_install
rm -f %{buildroot}%{py3_platsitedir}/%{modname}/*.{c,pyx}

#check
#py3_test || : 

%files
%doc README.rst CHANGES.rst LICENSE
%{py3_platsitedir}/%{modname}-*.egg-info/
%{py3_platsitedir}/%{modname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6801 |21cr|python3-ndg-httpsclient-0.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ndg_httpsclient
%define	module	ndg-httpsclient

Name:		python3-%{module}
Version:	0.4.2
Release:	2
Summary:	Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL
Source0:	https://pypi.python.org/packages/a2/a7/ad1c1c48e35dc7545dab1a9c5513f49d5fa3b5015627200d2be27576c2a0/%{oname}-%{version}.tar.gz
License:	BSD - See ndg/httpsclient/LICENCE file for details
Group:		Development/Python
Url:		https://github.com/cedadev/ndg_httpsclient/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
A HTTPS client implementation for 
 * ``httplib`` (Python 2), ``http.client`` (Python 3) and 
 * ``urllib2`` (Python 2) and ``urllib`` (Python 3)

... based on PyOpenSSL. 
PyOpenSSL provides a more fully featured SSL implementation 
over the default provided with Python and importantly enables full verification 
of the SSL peer using ``pyasn1``.

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc ndg/httpsclient/LICENSE
%doc ndg/httpsclient/test/README
%{_bindir}/ndg_httpclient 
%{py3_puresitedir}/ndg/httpsclient
%{py3_puresitedir}/ndg_httpsclient*.egg-info
%{py3_puresitedir}/ndg_httpsclient-*-nspkg.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6802 |21cr|python3-netaddr-0.7.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module netaddr

Summary:	Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
Name:		python3-%{module}
Version:	0.7.19
Release:	1
License:	BSD3c
Group:		Development/Python
Url:		https://github.com/drkjam/netaddr
Source0:	https://pypi.python.org/packages/source/n/netaddr/%{module}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
A pure Python network address representation and manipulation library.

netaddr provides a Pythonic way of working with:
    - IPv4 and IPv6 addresses and subnets (including CIDR notation);
    - MAC (Media Access Control) addresses in multiple formats;
    - IEEE EUI-64, OUI and IAB identifiers;
    - a user friendly IP glob-style format.

Included are routines for:
    - generating, sorting and summarizing IP addresses;
    - converting IP addresses and ranges between various different formats;
    - performing set based operations on groups of IP addresses and subnets;
    - arbitrary IP address range calculations and conversions;
    - querying IEEE OUI and IAB organisational information;
    - querying of IP standards related data from key IANA data sources.

%files
%doc AUTHORS CHANGELOG COPYRIGHT LICENSE
%{_bindir}/%{module}
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
chmod -x AUTHORS CHANGELOG COPYRIGHT LICENSE # remove executable bit from docs

%build
CFLAGS="%{optflags}" %py3_build

%install
python3 setup.py install --root %{buildroot} --install-purelib=%{py3_puresitedir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6803 |21cr|python3-netifaces-0.10.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	netifaces

Name:		python3-%{oname}
Version:	0.10.4
Release:	5
Summary:	Portable network interface information
Source0:	https://bitbucket.org/al45tair/netifaces/get/release_0_10_4.tar.gz
License:	MIT License
Group:		Development/Python
Url:		http://alastairs-place.net/netifaces
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
netifaces provides a (hopefully portable-ish) way for Python programmers to
get access to a list of the network interfaces on the local machine, and to
obtain the addresses of those network interfaces.

The package has been tested on Mac OS X, Windows XP, Windows Vista, Linux
and Solaris.

It should work on other UNIX-like systems provided they implement
either getifaddrs() or support the SIOCGIFxxx socket options, although the
data provided by the socket options is normally less complete.

%prep
%setup -qn al45tair-netifaces-1d6d179f8bce

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} --install-purelib=%{py_platsitedir}

%files
%{py3_platsitedir}/*.so
%{py3_platsitedir}/netifaces*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6804 |21cr|python3-netifaces-0.10.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	netifaces

Name:		python3-%{oname}
Version:	0.10.4
Release:	6
Summary:	Portable network interface information
Source0:	https://bitbucket.org/al45tair/netifaces/get/release_0_10_4.tar.gz
License:	MIT License
Group:		Development/Python
Url:		http://alastairs-place.net/netifaces
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
netifaces provides a (hopefully portable-ish) way for Python programmers to
get access to a list of the network interfaces on the local machine, and to
obtain the addresses of those network interfaces.

The package has been tested on Mac OS X, Windows XP, Windows Vista, Linux
and Solaris.

It should work on other UNIX-like systems provided they implement
either getifaddrs() or support the SIOCGIFxxx socket options, although the
data provided by the socket options is normally less complete.

%prep
%setup -qn al45tair-netifaces-1d6d179f8bce

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} --install-purelib=%{py3_platsitedir}

%files
%{py3_platsitedir}/*.so
%{py3_platsitedir}/netifaces*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6805 |21cr|python3-offtrac-0.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python3-offtrac
Version:        0.1.0
Release:        6
Summary:        Trac xmlrpc library

Group:          Development/Python
License:        GPLv2+
URL:            http://fedorahosted.org/offtrac
Source0:        https://pypi.python.org/packages/source/o/offtrac/offtrac-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel

%description
There is the offtrac python library which offers the TracServer class. This
object is how one interacts with a Trac instance via xmlrpc.

%files
%doc COPYING LICENSE README
# For noarch packages: sitelib
%{py3_puresitedir}/*

#--------------------------------------------------------------------

%prep
%setup -q -n offtrac-%{version}

%build
%py3_build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6806 |21cr|python3-openid-2.2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python3-openid
Version:	2.2.5
Release:	4
Summary:	Python OpenID libraries
Group:		Development/Python
License:	Apache License
URL:		http://www.openidenabled.com/python-openid/
Source0:	http://openidenabled.com/files/python-openid/packages/python-openid-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
#BuildRequires:	twill

%description
The OpenID library with batteries included.

Features of the 2.x.x series include:

 * Refined and easy-to-use API.

 * Extensive documentation.

 * Many storage implemetations including file-based, sqlite,
   postgresql, and mysql.

 * Simple examples to help you get started.

 * Licensed under the Apache Software License.

 * Includes a Simple Registration API

 * Versions 1.x.x supports protocol version 1; versions 2.x.x support
   both major OpenID protocol versions transparently


%prep
%setup -qn python-openid-%{version}
find . -type f | xargs chmod a-x

%build
python3 setup.py build

%check
#python3 admin/runtests

%install
python3 setup.py install \
	--skip-build --root %{buildroot} --record=INSTALLED_FILES

%files
%doc background-associations.txt LICENSE NEWS README examples
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6807 |21cr|python3-opuscoords-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name opuscoords

Name:           python3-opuscoords
Version:        1.0.1
Release:        1
Group:          Sciences/Astronomy
Summary:        Python Tools for OPUS Coordinate Conversions

License:        BSD
URL:            http://www.stsci.edu/resources/software_hardware/stsci_python
Source0:        https://pypi.python.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
 
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools
BuildRequires:  python3-numpy-devel


Obsoletes: python-stsci <= 2.13-4

%description
Python Tools for OPUS Coordinate Conversions.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files
%doc SP_LICENSE
%{py3_platsitedir}/%{pypi_name}
%{py3_platsitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6808 |21cr|python3-parallax-1.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	parallax

Name:		python3-parallax
Version:	1.0.3
Release:	2
Summary:	Execute commands and copy files over SSH to multiple machines at once
Source0:	https://pypi.python.org/packages/1c/21/acd162b334561a1989310d149407b7d6cd2ac7d51b7fae35cd897ed72ef7/parallax-1.0.3.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/krig/parallax/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
Parallax SSH provides an interface to executing commands. 

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc AUTHORS
%doc COPYING
%doc README
%{_bindir}/parallax-askpass
%{py3_puresitedir}/parallax
%{py3_puresitedir}/parallax*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6809 |21cr|python3-paste-3.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	Paste

Name:           python3-paste
Version:	3.5.2
Release:	1
Summary:        Tools for using a Web Server Gateway Interface stack
Group:          Development/Python
License:        MIT
URL:            http://pythonpaste.org
Source0:	https://files.pythonhosted.org/packages/4c/2b/2e44afea5f8e397a5ce0f7ef78a79647f2c21e3fd7a463bf3be13aa6e819/Paste-3.5.2.tar.gz
BuildArch:      noarch
Requires:	python3-pkg-resources
BuildRequires:  python3-setuptools
BuildRequires:	python3-sphinx

%description
These provide several pieces of "middleware" (or filters) that can be nested
to build web applications.  Each piece of middleware uses the WSGI (PEP 333)
interface, and should be compatible with other middleware based on those
interfaces.

%prep
%setup -q -n %{tarname}-%{version}
%{__sed} -i -e '/^#!.*/,1 d' paste/util/scgiserver.py paste/debug/doctest_webapp.py

%install
PYTHONDONTWRITEBYTECODE=  python3 setup.py install --root=%{buildroot}
sphinx-build -b html docs html
rm -f html/.buildinfo

%files
%doc html/
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6810 |21cr|python3-pep8-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define	debug_package %{nil}
%define oname pep8

Name:           python3-%{oname}
Version:	1.7.0
Release:        1
Summary:        Python3 style guide checker

Group:          Development/Other
License:        MIT
URL:            https://github.com/jcrocholl/pep8
Source0:        https://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  pythonegg(sphinx)
Requires:       python3egg(setuptools)


%description
pep8 is a tool to check your Python code against some of the style conventions
in PEP 8. It has a plug-in architecture, making new checks easy, and its output
is parse-able, making it easy to jump to an error location in your editor.

%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build
cd docs 
make man
cd ..
%install
python3 setup.py install  --prefix=/usr --root %{buildroot}
install -Dm644  docs/_build/man/%{oname}.1 %{buildroot}%{_mandir}/man1/python3-%{oname}*
chmod +x %{buildroot}%{python3_sitelib}/pep8.py

%files
%doc CHANGES.txt 
%{_bindir}/pep8
%{py3_puresitedir}/*
%{_mandir}/man1/python3-%{oname}*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6811 |21cr|python3-pkginfo-1.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	pkginfo

Name:		python3-%{module}
Version:	1.4.2
Release:	2
Summary:	Query metdata from Python3 packages
Source0:	https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/jwilk-mirrors/python-%{module}
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
# provide same binary
Conflicts:	pythonegg(pkginfo)== %{version}
Conflicts:	python-pkginfo == %{EVRD}
Requires:	python3-pkg-resources

%description
This package provides an API for querying the distutils metadata written in
the PKG-INFO file inside a source distriubtion (an sdist) or a
binary distribution (e.g., created by running bdist_egg).  It can
also query the EGG-INFO directory of an installed distribution, and
the *.egg-info stored in a "development checkout"
(e.g, created by running setup.py develop).

%files
%doc CHANGES.txt LICENSE.txt README.txt TODO.txt
%{_bindir}/%{module}
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py*.egg-info

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6812 |21cr|python3-pyenv-2.4.11-1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# spec based on the OpenSuse pyenv project
%define oname pyenv
%define pyenv_dir      %{_libexecdir}/%{oname}
#
%define oname pyenv
Name:           python3-%{oname}
Version:        2.4.11
Release:        1.1
Summary:        Python Version Management
License:        MIT
Group:          Development/Python
URL:            https://github.com/pyenv/pyenv
Source:         https://github.com/pyenv/pyenv/archive/refs/tags/v%{version}.tar.gz#/pyenv-%{version}.tar.gz
#
BuildRequires:  bash-completion
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  pkgconfig

# https://github.com/pyenv/pyenv/wiki#suggested-build-environment
Requires:       pkgconfig
Recommends:     automake
Recommends:     bzip2
Recommends:     findutils
Recommends:     gcc
Recommends:	make
#
Recommends:     gdbm-devel
Recommends:     gmp-devel
Recommends:     openssl-devel
Recommends:     patch
Recommends:     readline-devel
#
Recommends:     pkgconfig(bzip2)
Recommends:     pkgconfig(clzma)
Recommends:     pkgconfig(expat)
Recommends:     pkgconfig(libffi)
Recommends:     pkgconfig(liblzma)
Recommends:     pkgconfig(ncurses)
Recommends:     pkgconfig(sqlite3)
Recommends:     pkgconfig(tcl)
Recommends:     pkgconfig(tk)
Recommends:     pkgconfig(uuid)
Recommends:     pkgconfig(zlib)
#
Provides:	%{oname} == %{EVRD}
%description
Simple Python Version Management

%prep
%autosetup -p1 -n %{oname}-%{version}

sed -i -e '1s,^#!%{_bindir}/env bash,#!/bin/bash,' libexec/* pyenv.d/exec/pip-rehash/* plugins/python-build/bin/*

%build
##
pushd src
%configure
%make_build
popd

%install
mkdir -p %{buildroot}%{pyenv_dir} \
         %{buildroot}%{pyenv_dir}/plugins \
         %{buildroot}%{pyenv_dir}/shims/ \
         %{buildroot}%{pyenv_dir}/share/python-build/ \
         %{buildroot}%{_sysconfdir}/pyenv.d/ \
         %{buildroot}%{_bindir}

cp -R libexec %{buildroot}%{pyenv_dir}
cp -R bin %{buildroot}%{pyenv_dir}
cp -a pyenv.d %{buildroot}%{_sysconfdir}/

install -D -m0644 completions/pyenv.bash %{buildroot}%{_datadir}/bash-completion/completions/pyenv
install -D -m0644 man/man1/%{oname}.1 %{buildroot}%{_mandir}/man1/%{name}.1

ln -s %{pyenv_dir}/bin/pyenv %{buildroot}%{_bindir}/pyenv

## python-build
pushd plugins/python-build
 install -m755 bin/* %{buildroot}%{pyenv_dir}/libexec
 cp -a share/python-build %{buildroot}%{pyenv_dir}/share/
popd

%files
%doc CHANGELOG.md COMMANDS.md README.md
%license LICENSE
%exclude %{_sysconfdir}/pyenv.d/rehash/*/.gitignore

%config %{_sysconfdir}/pyenv.d/rehash/*.d/default.list
%config %{_sysconfdir}/pyenv.d/exec/pip-rehash.bash
%config %{_sysconfdir}/pyenv.d/rehash/*.bash
%config %{_sysconfdir}/pyenv.d/install/*.bash

%{pyenv_dir}
%dir %{_sysconfdir}/pyenv.d
%dir %{_sysconfdir}/pyenv.d/exec/
%dir %{_sysconfdir}/pyenv.d/rehash/
%dir %{_sysconfdir}/pyenv.d/rehash/*.d/
%dir %{_sysconfdir}/pyenv.d/install/

%{_sysconfdir}/pyenv.d/exec/pip-rehash
%{_bindir}/pyenv

%{_mandir}/man1/%{name}.1*
%{_datadir}/bash-completion/completions/pyenv


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6813 |21cr|python3-pyside-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define qtver   4.8
%define py3verflags %(python3 -c "import sysconfig; print(sysconfig.get_config_var('SOABI'))")
%define pyname     PySide
%define tarname    pyside

Name:		python3-pyside
Version:	1.2.4
Release:	1
License:	LGPLv2+
Summary:	The PySide project provides LGPL-licensed Python bindings for the Qt
Group:		Development/KDE and Qt
URL:		http://www.pyside.org
Source0:	https://pypi.io/packages/source/P/PySide/PySide-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(QtWebKit)
BuildRequires:	phonon-devel
BuildRequires:	shiboken-devel >= 1.2.0
BuildRequires:	python3-devel
BuildRequires:	python3-shiboken-devel
Requires:	python3-pyside-phonon
Requires:	python3-pyside-core
Requires:	python3-pyside-declarative
Requires:	python3-pyside-gui
Requires:	python3-pyside-help
Requires:	python3-pyside-multimedia
Requires:	python3-pyside-network
Requires:	python3-pyside-opengl
Requires:	python3-pyside-script
Requires:	python3-pyside-scripttools
Requires:	python3-pyside-sql
Requires:	python3-pyside-test
Requires:	python3-pyside-xmlpatterns
Requires:	python3-pyside-xml
Requires:	python3-pyside-uitools
Requires:	python3-pyside-svg
Requires:	python3-pyside-webkit

%description
The PySide project provides LGPL-licensed Python bindings for the Qt
cross-platform application and UI framework. PySide Qt bindings allow both free
open source and proprietary software development and ultimately aim to support
all of the platforms as Qt itself. This is the Python3 version.

%files

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-phonon
Summary:	PySide phonon module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-phonon
PySide phonon module. This is the Python3 version.

%files -n python3-%{tarname}-phonon
%{python3_sitearch}/PySide/phonon.so
%{_datadir}/PySide/typesystems/typesystem_phonon.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-core
Summary:	PySide core module
Group:		Development/KDE and Qt

%description -n python3-%{tarname}-core
PySide core module. This is the Python3 version.

%files -n python3-%{tarname}-core
%{python3_sitearch}/PySide/QtCore.so
%{python3_sitearch}/PySide/__init__.py*
%{python3_sitearch}/PySide/_utils.py*
%{python3_sitearch}/PySide/__pycache__
%{_datadir}/PySide/typesystems/typesystem_core*
%{_datadir}/PySide/typesystems/typesystem_templates.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-declarative
Summary:	PySide declarative module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-declarative
PySide declarative module. This is the Python3 version.

%files -n python3-%{tarname}-declarative
%{python3_sitearch}/PySide/QtDeclarative.so
%{_datadir}/PySide/typesystems/typesystem_declarative.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-gui
Summary:	PySide gui module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-gui
PySide gui module. This is the Python3 version.

%files -n python3-%{tarname}-gui
%{python3_sitearch}/PySide/QtGui.so
%{_datadir}/PySide/typesystems/typesystem_gui*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-help
Summary:	PySide help module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-help
PySide help module. This is the Python3 version.

%files -n python3-%{tarname}-help
%{python3_sitearch}/PySide/QtHelp.so
%{_datadir}/PySide/typesystems/typesystem_help.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-multimedia
Summary:	PySide multimedia module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-multimedia
PySide multimedia module. This is the Python3 version.

%files -n python3-%{tarname}-multimedia
%{python3_sitearch}/PySide/QtMultimedia.so
%{_datadir}/PySide/typesystems/typesystem_multimedia*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-network
Summary:	PySide network module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-network
PySide network module. This is the Python3 version.

%files -n python3-%{tarname}-network
%{python3_sitearch}/PySide/QtNetwork.so
%{_datadir}/PySide/typesystems/typesystem_network.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-opengl
Summary:	PySide opengl module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-opengl
PySide opengl module. This is the Python3 version.

%files -n python3-%{tarname}-opengl
%{python3_sitearch}/PySide/QtOpenGL.so
%{_datadir}/PySide/typesystems/typesystem_opengl*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-script
Summary:	PySide script module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-script
PySide script module. This is the Python3 version.

%files -n python3-%{tarname}-script
%{python3_sitearch}/PySide/QtScript.so
%{_datadir}/PySide/typesystems/typesystem_script.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-scripttools
Summary:	PySide scripttool module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-scripttools
PySide scripttool module. This is the Python3 version.

%files -n python3-%{tarname}-scripttools
%{python3_sitearch}/PySide/QtScriptTools.so
%{_datadir}/PySide/typesystems/typesystem_scripttools.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-sql
Summary:	PySide sql module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-sql
PySide sql module. This is the Python3 version.

%files -n python3-%{tarname}-sql
%{python3_sitearch}/PySide/QtSql.so
%{_datadir}/PySide/typesystems/typesystem_sql.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-svg
Summary:	PySide svg module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-svg
PySide svg module. This is the Python3 version.

%files -n python3-%{tarname}-svg
%{python3_sitearch}/PySide/QtSvg.so
%{_datadir}/PySide/typesystems/typesystem_svg.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-test
Summary:	PySide test module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-test
PySide test module. This is the Python3 version.

%files -n python3-%{tarname}-test
%{python3_sitearch}/PySide/QtTest.so
%{_datadir}/PySide/typesystems/typesystem_test.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-uitools
Summary:	PySide uitools module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-uitools
PySide uitools module. This is the Python3 version.

%files -n python3-%{tarname}-uitools
%{python3_sitearch}/PySide/QtUiTools.so
%{_datadir}/PySide/typesystems/typesystem_uitools.*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-webkit
Summary:	PySide webkit module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-webkit
PySide webkit module. This is the Python3 version.

%files -n python3-%{tarname}-webkit
%{python3_sitearch}/PySide/QtWebKit.so
%{_datadir}/PySide/typesystems/typesystem_webkit*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-xmlpatterns
Summary:	PySide xmlpatterns module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-xmlpatterns
PySide xmlpatterns module. This is the Python3 version.

%files -n python3-%{tarname}-xmlpatterns
%{python3_sitearch}/PySide/QtXmlPatterns.so
%{_datadir}/PySide/typesystems/typesystem_xmlpatterns*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-xml
Summary:	PySide xml module
Group:		Development/KDE and Qt
Requires:	python3-%{tarname}-core = %{version}

%description -n python3-%{tarname}-xml
PySide xml module. This is the Python3 version.

%files -n python3-%{tarname}-xml
%{python3_sitearch}/PySide/QtXml.so
%{_datadir}/PySide/typesystems/typesystem_xml.*

#------------------------------------------------------------------------------

%define major   1
%define py3libname %mklibname python3-%{tarname} %{major}

%package -n %{py3libname}
Summary:	PySide core library
Group:		Development/KDE and Qt

%description -n %{py3libname}
PySide core library. This is the Python3 version.

%files -n       %{py3libname}
%{_libdir}/libpyside.%{py3verflags}.so.%{major}*

#------------------------------------------------------------------------------

%package -n python3-%{tarname}-devel
Summary:	PySide devel files
Group:		Development/KDE and Qt
Requires:	python3-%{tarname} = %{version}
Requires:	%{py3libname} = %{version}

%description -n python3-%{tarname}-devel
PySide devel files. This is the Python3 version.

%files -n python3-%{tarname}-devel
%{_libdir}/libpyside.%{py3verflags}.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/*

#------------------------------------------------------------------------------

%prep
%setup -q -n PySide-%{version}

%build
cd sources/pyside
%define Werror_cflags %nil
%cmake \
        -DQT_SRC_DIR=%{buildroot}%{qt4dir} \
        -DQT_PHONON_INCLUDE_DIR=%{_includedir}/phonon \
        -DPYTHON_SUFFIX=.%{py3verflags} \
        -DPYTHON_EXECUTABLE=%{__python3}
%make

%install
cd sources/pyside
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6814 |21cr|python3-raven-6.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python3-raven
Version:	6.10.0
Release:	1
Summary:        Python client for Sentry
Group:          Development/Python
License:        BSD
URL:            https://pypi.python.org/pypi/raven/
Source0:	https://files.pythonhosted.org/packages/79/57/b74a86d74f96b224a477316d418389af9738ba7a63c829477e7a86dd6f47/raven-6.10.0.tar.gz
Patch0:         raven-use-system-cacert.patch
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
Raven is a Python client for Sentry <http://getsentry.com>. It provides full
out-of-the-box support for many of the popular frameworks, including Django,
and Flask. Raven also includes drop-in support for any WSGI-compatible web
application.

%prep
%setup -q -n raven-%{version}
%patch0 -p1

rm raven/data/cacert.pem
rmdir raven/data

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root=%{buildroot}

%check
#Disable check for now because of missing dependency pytest-timeout
#python3 setup.py test

%files
%doc README.rst LICENSE
%{_bindir}/raven
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6815 |21cr|python3-rpy2-3.4.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module rpy2
%define r_version 3.5.1
%global __requires_exclude libR.so\\(.*
%define debug_package %{nil}

Summary:	A very simple, yet robust, Python interface to the R Programming Language
Name:		python3-%{module}
Version:	3.4.5
Release:	3
Group:		Development/Python
License:	AGPLv3+
Url:		http://rpy.sourceforge.net/
Source0:	https://pypi.io/packages/source/r/rpy2/rpy2-%{version}.tar.gz
BuildRequires:	lapack-devel
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-numpy-devel
BuildRequires:  python3-pip
BuildRequires:  python3dist(cffi)
BuildRequires:	R-core >= %{r_version}
BuildRequires:	R-devel >= %{r_version}
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pcre-devel
BuildRequires:	lzma-devel
BuildRequires:	bzip2-devel
BuildRequires:	zlib-devel
Requires:	python3-numpy
Requires:	R-core >= %{r_version}
Provides:	rpy = %{EVRD}

%description
RPy is a very simple, yet robust, Python interface to the R Programming
Language. It can manage all kinds of R objects and can execute arbitrary R
functions (including the graphic functions). All errors from the R language
areconverted to Python exceptions. Any module installed for the R system can
be used from within Python. 

This code is inspired by RSPython from the Omegahat project. The main goals of
RPy are: 
 + to have a very robust interface for using R from Python 
 + the interface should be as transparent and easy to use as possible 
 + it should be usable for real scientific and statistical computations

%files -f INSTALLED_FILES
%doc NEWS
%{python3_sitelib}/_rinterface*
%{python3_sitelib}/__pycache__/_rinterface*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
env CFLAGS="%{optflags}" LDFLAGS="%{ldflags} -lreadline" python3 setup.py build

%install
PYTHONDONTWRITEBYTECODE= \
python3 setup.py install -O1 --skip-build --root %{buildroot} --record=INSTALLED_FILES
sed -i '/egg-info$/d' INSTALLED_FILES

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6816 |21cr|python3-scipy-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define module scipy

Summary:	Scientific tools for Python
Name:		python3-%{module}
Version:	1.2.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://www.scipy.org
Source0:	https://github.com/%{module}/%{module}/releases/download/v%{version}/scipy-%{version}.tar.xz
BuildRequires:	gcc-gfortran
BuildRequires:	python3-matplotlib
BuildRequires:	python3-nose
BuildRequires:	python3-pytest
BuildRequires:	python3-sphinx
BuildRequires:	swig
BuildRequires:	amd-devel
BuildRequires:	python3-numpy-devel
BuildRequires:	umfpack-devel
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(python3)
Requires:	python3-numpy

%description
SciPy is an open source library of scientific tools for Python. SciPy
supplements the popular numpy module, gathering a variety of high level
science and engineering modules together as a single package.

SciPy includes modules for graphics and plotting, optimization, integration,
special functions, signal and image processing, genetic algorithms, ODE
solvers, and others.

%files
%doc doc/README.txt THANKS.txt LICENSE.txt
%dir %{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}/*
%{py3_platsitedir}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

cat > site.cfg << EOF
[amd]
library_dirs = %{_libdir}
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
amd_libs = amd

[umfpack]
library_dirs = %{_libdir}
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
umfpack_libs = umfpack
EOF

%build
env \
	FFLAGS="%{optflags} -fPIC -O3 -DNO_ATLAS_INFO" \
	CFLAGS="%{optflags} -fPIC -O3 -DNO_ATLAS_INFO" \
	ATLAS=%{_libdir}/atlas FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
	python3 setup.py config_fc --fcompiler=gnu95 --noarch build

%install
env \
	FFLAGS="%{optflags} -fPIC -O3 -DNO_ATLAS_INFO" \
	CFLAGS="%{optflags} -fPIC -O3 -DNO_ATLAS_INFO" \
	ATLAS=%{_libdir}/atlas FFTW=%{_libdir} BLAS=%{_libdir} LAPACK=%{_libdir} \
	%py3_install

find %{buildroot}%{py3_platsitedir}/scipy -type d -name tests | xargs rm -rf # Don't ship tests
# Don't ship weave examples, they're marked as documentation:
find %{buildroot}%{py3_platsitedir}/scipy/weave -type d -name examples | xargs rm -rf

%check
pushd doc &> /dev/null
PYTHONPATH=%{buildroot}%{py3_platsitedir} python3 -c "import scipy; scipy.test()"
popd &> /dev/null


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6817 |21cr|python3-sortedcontainers-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name sortedcontainers

Name:           python3-sortedcontainers
Version:        2.1.0
Release:        1
Group:          Development/Python
Summary:        Sorted container data types
License:        ASLv2
Source0:        https://files.pythonhosted.org/packages/29/e0/135df2e733790a3d3bcda970fd080617be8cea3bd98f411e76e6847c17ef/sortedcontainers-2.1.0.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)

%description
SortedContainers is an Apache2 licensed containers library, written in
pure-Python, and fast as C-extensions.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build
%py3_build

%install
python3 setup.py install --skip-build --root %{buildroot}


%files
%doc README.rst LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6818 |21cr|python3-sphinx-bootstrap-theme-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module sphinx-bootstrap-theme

Name:           python3-%{module}
Version:	0.8.1
Release:	1
Summary:        A sphinx theme that integrates the Bootstrap framework
Group:          Development/Python
License:        MIT
URL:            http://ryan-roemer.github.com/%{module}
Source0:        https://github.com/ryan-roemer/sphinx-bootstrap-theme/archive/v%{version}/%{module}-%{version}.tar.gz
BuildRequires:  web-assets-devel
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

BuildArch:      noarch

%description
This sphinx theme integrates the Booststrap CSS / Javascript framework \
with various layout options, hierarchical menu navigation, and mobile-friendly \
responsive design.  It is configurable, extensible and can use any number \
of different Bootswatch CSS themes.

%files
%doc *.rst *.txt
%{py3_puresitedir }/sphinx_bootstrap_theme
%{py3_puresitedir }/sphinx_bootstrap_theme-%{version}-py?.?.egg-info
#-------------------------------------------------

%prep
%autosetup -n %{module}-%{version}
rm -rf *.egg-info


%build
%py3_build


%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6819 |21cr|python3-textile-2.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname textile
%define debug_package %{nil}

Name:           python3-%{shortname}
Version:        2.2.2
Release:        4
Summary:        A Humane Web Text Generator

Group:          Development/Python
License:        BSD
URL:            http://dealmeida.net/projects/textile/
Source0:        http://pypi.python.org/packages/source/t/textile/textile-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
Textile is a XHTML generator using a simple markup developed by Dean Allen.
This is a Python port with support for code validation, itex to MathML
translation, Python code coloring and much more.

%prep
%setup -qn %{shortname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot} --install-purelib=%{py3_platsitedir}
 
%files
%{py3_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6820 |21cr|python3-tqdm-4.14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	tqdm

Name:		python3-%{module}
Version:	4.14.0
Release:	2
Summary:	Fast, Extensible Progress Meter
Source0:	https://pypi.python.org/packages/source/t/%{module}/%{module}-%{version}.tar.gz
License:	MPLv2.0
Group:		Development/Python
Url:		https://github.com/tqdm/tqdm
BuildRequires:	python3egg(setuptools) 
BuildRequires:	python3-coverage
# Not ready yet
#BuildRequires:	python3-flake8
Conflicts:	pythonegg(tqdm)
Conflicts:	python-tqdm == %{EVRD}
BuildArch:	noarch

%description
tqdm (read taqadum, تقدّم) means “progress” in Arabic.
tqdm instantly makes your loops show a smart progress
meter, just by wrapping any iterable with "tqdm(iterable)".
This package contains the Python 3 version of tqdm.

%files
%doc README.rst
%{_bindir}/%{module}
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info
#----------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

#%check
# Need flake8
#python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6821 |21cr|python3-trans-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	trans

Name:		python3-%{oname}
Version:	2.1.0
Release:	1
Summary:	Python national characters transcription module

Source0:	https://files.pythonhosted.org/packages/3e/c1/368daee29d1c9b081c8c1eeda2335879c484021d795b12bd116bd134d98f/trans-2.1.0.tar.bz2
License:	MIT
Group:		Development/Python
Url:		http://pypi.python.org/pypi/%{oname}/
BuildArch:	noarch
BuildRequires:  pkgconfig(python3)

%description
This module translates national characters into similar 
sounding latin characters (transliteration). 
At the moment, Czech, Greek, Latvian, Polish, 
Turkish, Russian, Ukrainian and Kazakh alphabets 
are supported (it covers 99% of needs).

%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc README.rst
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6822 |21cr|python3-transaction-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python3-transaction
Version:	2.4.0
Release:	1
Group:		Development/Python
License:	Zope Public License
Summary:	Transaction management for Python
Source:		https://pypi.io/packages/source/t/transaction/transaction-%{version}.tar.gz
URL:		https://pypi.io/project/transaction
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:      noarch

%description
This package contains a generic transaction implementation for Python.
It is mainly used by the ZODB, though.

Note that the data manager API, transaction.interfaces.IDataManager,
is syntactically simple, but semantically complex. The semantics were
not easy to express in the interface. This could probably use more work.
The semantics are presented in detail through examples of a sample data
manager in transaction.tests.test_SampleDataManager.

%prep
%setup -q -n transaction-%{version}

%build

%install
python3 setup.py install --root=%{buildroot}

%files
%{py3_puresitedir}/transaction/
%{py3_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6823 |21cr|python3-twine-1.12.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	twine

Summary:	Collection of utilities for publishing packages on PyPI
Name:		python3-%{module}
Version:	1.12.2
Release:	2
License:	ASL 2.0
Group:		Development/Python
Url:		https://%{module}.readthedocs.io/
Source0:	http://pypi.python.org/packages/source/t/%{module}/%{module}-%{version}.tar.gz
Patch0:		0001-Remove-shebang-from-__main__.py.patch
BuildRequires:	python3egg(setuptools)
# same binary provided
Conflicts:	pythonegg(twine) == %{version}
Conflicts:	python-%{module} == %{EVRD}
BuildArch:	noarch


%description
Twine is `a utility`_ for `publishing`_ Python packages on `PyPI`_.
It provides build system independent uploads of source and binary
`distribution artifacts <distributions>`_ for both new and existing
`projects`_.

%files
%doc AUTHORS LICENSE README.rst docs/changelog.rst docs/requirements.txt
%{_bindir}/%{module} 
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info
#--------------------------------------------
%prep
%setup -qn %{module}-%{version}
%patch0 -p1

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6824 |21cr|python3-tzlocal-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname tzlocal

Name:           python3-tzlocal
Version:        2.0.0
Release:        1
Summary:        A Python module that tries to figure out what your local timezone is
Group:          Development/Python

License:        CC0
URL:            https://github.com/regebro/tzlocal
Source0:        https://files.pythonhosted.org/packages/c6/52/5ec375d4efcbe4e31805f3c4b301bdfcff9dcbdb3605d4b79e117a16b38d/tzlocal-2.0.0.tar.gz

BuildRequires:  python3-devel
BuildRequires:  python3egg(pytz)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
This Python module returns a tzinfo object with the local timezone information. 
It requires pytz, and returns pytz tzinfo objects.  This module attempts to fix 
a glaring hole in pytz, that there is no way to get the local timezone 
information, unless you know the zoneinfo name.

%prep
%setup -q -n %{srcname}-%{version}

rm -rf *.egg-info

%build
%py3_build

%install
python3 setup.py install --skip-build --root %{buildroot}

# Don't install unit tests and test_data
rm -f %{buildroot}%{python3_sitelib}/%{srcname}/__pycache__/tests.cpython*

%files
%doc PKG-INFO README.rst LICENSE.txt CHANGES.txt
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py3.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6825 |21cr|python3-versiontools-1.9.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name versiontools

Name:           python3-versiontools
Version:        1.9.1
Release:        3
Group:          Development/Python
Summary:        Smart replacement for plain tuple used in __version__

License:        LGPLv3
URL:            https://launchpad.net/versiontools
Source0:        http://pypi.python.org/packages/source/v/versiontools/versiontools-1.9.1.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-sphinx
BuildRequires:  python3-nose

%description
Smart replacement for plain tuple used in __version__

%prep
%setup -q -n %{pypi_name}-%{version}
# remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# generate html docs
sphinx-build doc html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%build
%py3_build

%install
%py3_install

%files
%doc html
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6826 |21cr|python3-whoosh-2.7.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	Whoosh

Summary:	Fast, pure Python full text indexing, search, and spell checking library
Name:		python3-whoosh
Version:	2.7.4
Release:	2
Source0:	http://pypi.python.org/packages/source/W/Whoosh/Whoosh-%{version}.zip
License:	BSD
Group:		Development/Python
Url:		http://pypi.python.org/pypi/Whoosh/
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-sphinx

%description
Whoosh is a fast, featureful full-text indexing and searching library
implemented in pure Python. Programmers can use it to easily add
search functionality to their applications and websites. Every part of
how Whoosh works can be extended or replaced to meet your needs
exactly.

Some of Whoosh's features include:

* Pythonic API.
* Pure-Python. No compilation or binary packages needed, no mysterious
  crashes.
* Fielded indexing and search.
* Fast indexing and retrieval -- faster than any other pure-Python,
  scoring, full-text search solution I know of.
* Pluggable scoring algorithm (including BM25F), text analysis,
  storage, posting format, etc.
* Powerful query language parsed by pyparsing.
* Pure Python spell-checker (as far as I know, the only one).

%prep
%setup -q -n %{tarname}-%{version}

%install
PYTHONDONTWRITEBYTECODE=  python3 setup.py install --root=%{buildroot}

PYTHONPATH=`dir -d build/lib*` sphinx-build -b html docs/source html
%__rm -rf html/.buildinfo html/.doctrees

chmod 644 *.txt
chmod 644 %{buildroot}%{py3_puresitedir}/%{tarname}-%{version}-py%{py3_ver}.egg-info/*

%files
%doc *.txt html/
%{py3_puresitedir}/%{tarname}*
%{py3_puresitedir}/whoosh*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6827 |21cr|python3-yarl-1.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define pypi_name yarl

Name:           python3-yarl
Summary:        Yet another URL library
License:        ASL 2.0
Group:          Development/Python
Version:	1.8.1
Release:	1
Url:            https://github.com/aio-libs/yarl/
Source0:	https://files.pythonhosted.org/packages/d6/04/255c68974ec47fa754564c4abba8f61f9ed68b869bbbb854198d6259c4f7/yarl-1.8.1.tar.gz
Requires:       python3-multidict
BuildRequires:  python3-devel
BuildRequires:  python3-cython
BuildRequires:  python3-setuptools

%description
The module provides handy URL class for url parsing and changing.

%prep
%setup -q -n %{pypi_name}-%{version}

%build
env CFLAGS="%{optflags}" %py3_build

%install
python3 setup.py install --single-version-externally-managed -O1 --root=%{buildroot}
rm -rf %{buildroot}/%{py3_platsitedir}/%{pypi_name}/_quoting.c

%files
%doc README.rst LICENSE
%{py3_platsitedir}/%{pypi_name}-*.egg-info/
%{py3_platsitedir}/%{pypi_name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6828 |21cr|python3-zc.customdoctests-1.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zc.customdoctests

Name:		python3-%{pypi_name}
Version:	1.0.1
Release:	3
Summary:	Post-rendering Resource Inclusion
Source0:	http://pypi.python.org/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.zip
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zc.customdoctests
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(manuel)

Requires: python3egg(setuptools)

%description
The resource library is a Zope 3 extension that is designed to make the
inclusion of JavaScript, CSS, and other resources easy, cache-friendly,
and component-friendly.

%files
%{py3_puresitedir}/zc/customdoctests
%{py3_puresitedir}/zc.customdoctests*

#-------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6829 |21cr|python3-zipfile36-0.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zipfile36

Name:		python3-%{oname}
Version:	0.1.3
Release:	2
Summary:	Read and write ZIP files - backport of the zipfile module from Python 3.6
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	Python Software Foundation License
Group:		Development/Python
Url:		https://gitlab.com/takluyver/zipfile36
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
This is a backport of the zipfile module from Python 3.6, which contains some
improvements.

Installation::

    pip install zipfile36

Suggested usage:

.. code:: python

    if sys.version_info >= (3, 6):
        import zipfile
    else:
        import zipfile36 as zipfile

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc README.rst
%{py3_puresitedir}/zipfile36.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/zipfile36*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6830 |21cr|python3-zope.hookable-4.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.hookable

Name:		python3-%{oname}
Version:	4.2.0
Release:	3
Summary:	Zope hookable
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://svn.zope.org/zope.hookable
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
# The package itself provides "4.2" while some other packages require 4.2.0
Provides:	python3egg(zope.hookable) = %{version}
Provides:	python3dist(zope.hookable) = %{version}

%description
``zope.hookable``
=================

Overview
--------

Hookable object support.

Support the efficient creation of hookable objects, which are callable objects
that are meant to be replaced by other callables, at least optionally.

The idea is you create a function that does some default thing and make it
hookable. Later, someone can modify what it does by calling its sethook method
and changing its implementation.  All users of the function, including those
that imported it, will see the change.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test

%files
%{py3_platsitedir}/zope.hookable*
%{py3_platsitedir}/zope/hookable


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6831 |21cr|python-adal-1.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable tests everywhere except EPEL 9, where python-httpretty is not backported.
%bcond_with    tests


%global         srcname     adal
%global         forgeurl    https://github.com/AzureAD/azure-activedirectory-library-for-python
Version:        1.2.7
%global         tag         %{version}
%forgemeta

Name:           python-%{srcname}
Release:        1
Summary:        Microsoft Azure Active Directory Authentication Library (ADAL) for Python
Group:          Development/Python
License:        MIT
URL:            %forgeurl
Source0:        %forgesource
# Fix tests with httpretty >= 0.9.0
Patch0:         %{name}-1.2.0-tests.patch

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(pytest-asyncio)
BuildRequires:  python3dist(httpretty)
BuildRequires:  python3dist(pytest)
%endif

%global _description %{expand:
Microsoft Azure Active Directory Authentication Library (ADAL) for Python.}

%description %{_description}

#------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.md
%license LICENSE

#------------------------------------------------------
%prep
%forgeautosetup -p1


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{srcname}


%if %{with tests}
%check
%pytest
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6832 |21cr|python-aenum-3.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module aenum

Name:           python-%{module}
Version:	3.1.5
Release:	1
Summary:        Advanced Enumerations, NamedTuples and NamedConstants for Python
Group:          Development/Python
License:        BSD
Url:            https://pypi.org/project/aenum/
Source0:	https://files.pythonhosted.org/packages/28/5d/fd9753c16337373376817f61352b624ba8affd33e0f6d1b92e635ffcb0dc/aenum-3.1.5.tar.gz

BuildArch:      noarch

%description
aenum includes a Python stdlib Enum-compatible data type, as well as a
metaclass-based NamedTuple implementation and a NamedConstant class.

An Enum is a set of symbolic names (members) bound to unique, constant values.
Within an enumeration, the members can be compared by identity, and the
enumeration itself can be iterated over. Support exists for unique values,
multiple values, auto-numbering, and suspension of aliasing, plus the ability
to have values automatically bound to attributes.

A NamedTuple is a class-based, fixed-length tuple with a name for each
possible position accessible using attribute-access notation as well as
the standard index notation.

A NamedConstant is a class whose members cannot be rebound; it lacks all other
Enum capabilities, however.
#-------------------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
aenum includes a Python stdlib Enum-compatible data type, as well as a
metaclass-based NamedTuple implementation and a NamedConstant class.

An Enum is a set of symbolic names (members) bound to unique, constant values.
Within an enumeration, the members can be compared by identity, and the
enumeration itself can be iterated over. Support exists for unique values,
multiple values, auto-numbering, and suspension of aliasing, plus the ability
to have values automatically bound to attributes.

A NamedTuple is a class-based, fixed-length tuple with a name for each
possible position accessible using attribute-access notation as well as
the standard index notation.

A NamedConstant is a class whose members cannot be rebound; it lacks all other
Enum capabilities, however.


%files -n python3-%{module}
%doc README aenum/doc aenum/CHANGES aenum/LICENSE
%{py3_puresitedir}/*.egg-info
%{py3_puresitedir}/%{module}/

#-------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6833 |21cr|python-aiofiles-22.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiofiles

Name:           python-%{pypi_name}
Version:	22.1.0
Release:	1
Summary:        File support for asyncio
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/Tinche/aiofiles
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# For tests, from pyproject.toml [tool.poetry.dev-dependencies]:
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-asyncio)
# We do not require coverage and tox simply to run pytest.

%global _description \
aiofiles is an Apache2 licensed library, written in Python, for handling\
local disk files in asyncio applications.

%description %{_description}

%generate_buildrequires
%pyproject_buildrequires -r

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst

#----------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6834 |21cr|python-aiohttp-cors-0.7.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname aiohttp-cors
%global common_desc aiohttp_cors library implements Cross Origin Resource Sharing (CORS) support \
for aiohttp asyncio-powered asynchronous HTTP server.

Name:           python-%{srcname}
Version:        0.7.0
Release:        14%{?dist}
Summary:        CORS (Cross Origin Resource Sharing) support for aiohttp
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/aio-libs/aiohttp-cors
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz

# Fix test failure of test_add_options_route
Patch1:         %{url}/commit/eb4f5a4bb28f8260d4edc32969e838d9abace051.patch

# Fix test failure of test_static_resource
Patch2:         %{url}/pull/278/commits/e64b95848f3253157d831f4934841fceeaf9b2e3.patch

BuildArch:      noarch

%description
%{common_desc}

#-------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python
BuildRequires: python3-devel
BuildRequires: python3egg(setuptools)

# For tes suite
BuildRequires: python3egg(pytest)
BuildRequires: python3egg(pytest-aiohttp)
BuildRequires: python3egg(aiohttp) >= 1.1

# Browser tests not possible yet
# BuildRequires: python3-selenium
#
# ifarch on noarch?
# BuildRequires: chromium
# BuildRequires: chromedriver
# Chrome failed to start: exited abnormally
#     (unknown error: DevToolsActivePort file doesn't exist)
#
# BuildRequires: firefox
# BuildRequires: geckodriver -- not available

%description -n python3-%{srcname}
%{common_desc}

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst CHANGES.rst
%{python3_sitelib}/aiohttp_cors
%{python3_sitelib}/aiohttp_cors-*.egg-info/

#-------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

# remove non-essential pytest plugins
sed -i '/pytest-cov/d' setup.py
sed -i '/pytest-pylint/d' setup.py

# Don't treat warnings as errors, that's what upstream testing is for
# In 0.7.0, nothing else is in this config
rm pytest.ini

# Don't add --cov options to pytest
# In 0.7.0, nothing else is in this config
rm setup.cfg
# tox.ini has this repeated, but we don't need it
rm tox.ini

%build
%py3_build

%install
%py3_install

%check
%__python3 -m pytest -v --ignore tests/integration/test_real_browser.py



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6835 |21cr|python-aiohttp-socks-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiohttp-socks
%global srcname aiohttp_socks

Name:           python-%{pypi_name}
Version:        0.7.1
Release:        1
Summary:        SOCKS proxy connector for aiohttp
Group:          Development/Python
License:        ASL 2.0
URL:            https://pypi.org/project/aiohttp-socks/
Source:         %{pypi_source}
BuildArch:      noarch

%description
SOCKS proxy connector for aiohttp. SOCKS4(a) and SOCKS5 are supported.

#---------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
SOCKS proxy connector for aiohttp. SOCKS4(a) and SOCKS5 are supported.
Python 3 version.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.md
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info/

#---------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}
rm -vrf *.egg-info
sed -i -e 's/\r//' README.md

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6836 |21cr|python-aiomysql-0.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiomysql

Name:           python-%{pypi_name}
Version:        0.1.1
Release:        1
Summary:        MySQL driver for asyncio
Group:          Development/Python
License:        MIT
URL:            https://github.com/aio-libs/aiomysql
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
Patch0:         fix-requirements.patch
BuildRequires:  python3-devel
BuildRequires:  python3-pytest
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%description
aiomysql is a "driver" for accessing a MySQL database from the asyncio 
(PEP-3156/tulip) framework. It depends on and reuses most parts of PyMySQL.
aiomysql tries to be like awesome aiopg library and preserve same api, look
and feel.

%generate_buildrequires
%pyproject_buildrequires -r
#--------------------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
aiomysql is a "driver" for accessing a MySQL database from the asyncio 
(PEP-3156/tulip) framework. It depends on and reuses most parts of PyMySQL.
aiomysql tries to be like awesome aiopg library and preserve same api, look
and feel.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst

#--------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version} -p1

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6837 |21cr|python-aiopg-1.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiopg
%bcond_with docker

Name:           python-%{pypi_name}
Version:	1.3.5
Release:	1
Summary:        Postgres integration with asyncio
Group:          Development/Python
License:        BSD
URL:            https://aiopg.readthedocs.io
Source0:        https://github.com/aio-libs/aiopg/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
aiopg is a library for accessing a PostgreSQL database from the asyncio
(PEP-3156/tulip) framework. It wraps asynchronous features of the Psycopg
database driver.

#---------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
%if %{with docker}
BuildRequires:  python3-sqlalchemy
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-cov
BuildRequires:  python3-pytest-sugar
BuildRequires:  python3-pytest-timeout
%endif

%description -n python3-%{pypi_name}
aiopg is a library for accessing a PostgreSQL database from the asyncio
(PEP-3156/tulip) framework. It wraps asynchronous features of the Psycopg
database driver.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/

#---------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
# Use a different module
sed -i -e "s/psycopg2-binary>=2.8.4/psycopg2/g" setup.py

%build
%py3_build

%install
%py3_install

%if %{with docker}
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6838 |21cr|python-aiorpcx-0.22.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiorpcX
%global srcname aiorpcx

Name:      python-%{srcname}
# electrum is the only consumer of this library and wants a version <23
# TODO: maybe it can work with the latest one?
Version:   0.22.1
Release:   1
Summary:   Generic async RPC implementation
Group:     Development/Python
# https://github.com/kyuupichan/aiorpcX/issues/11
# aiorpcx/curio.py is BSD, rest is MIT
License:   MIT and BSD
URL:       https://pypi.org/project/aiorpcX/
Source0:   %{pypi_source %{pypi_name}}
BuildArch: noarch

%description
Transport, protocol and framing-independent async RPC client
and server implementation.

#-----------------------------------------------------------

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{srcname}
Transport, protocol and framing-independent async RPC client
and server implementation.

%files -n python3-%{srcname}
%doc README.rst
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/

#-----------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}
rm -vrf *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6839 |21cr|python-aiosignal-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiosignal

Name:           python-%{pypi_name}
Version:        1.2.0
Release:        2
Summary:        List of registered asynchronous callbacks
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/aio-libs/aiohttp
Source0:        https://pypi.io/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildArch:      noarch

%description
A project to manage callbacks in asyncio projects.

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        List of registered asynchronous callbacks
Group:          Development/Python

%description -n python3-%{pypi_name}
A project to manage callbacks in asyncio projects.

%files
%doc CHANGES.rst CONTRIBUTORS.txt README.rst LICENSE
%{python3_sitelib}/*

#-----------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6840 |21cr|python-aiosqlite-0.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiosqlite

Name:           python-%{pypi_name}
Version:        0.17.0
Release:        1
Summary:        Asyncio bridge to the standard SQLite3 module
Group:          Development/Python
License:        MIT
URL:            https://github.com/jreese/aiosqlite
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
aiosqlite AsyncIO bridge to the standard SQLite3 module for Python 3.5+.

#---------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(aiounittest)
BuildRequires:  pyproject-rpm-macros

%description -n python3-%{pypi_name}
aiosqlite AsyncIO bridge to the standard SQLite3 module for Python 3.5+.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc CHANGELOG.md README.rst

#---------------------------------------------------------------------

%generate_buildrequires
%pyproject_buildrequires -r

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6841 |21cr|python-aiounittest-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name aiounittest

Name:           python-%{pypi_name}
Version:        1.4.2
Release:        1
Summary:        Test asyncio code more easily
Group:          Development/Python
License:        MIT
URL:            https://github.com/kwarunek/aiounittest
Source0:        https://github.com/kwarunek/aiounittest/archive/%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

%description
The aiounittest is a helper library to ease your pain (and boilerplate),
when writing tests of asynchronous code (:code:asyncio). You can test:

- synchronous code (same as the :code:unittest.TestCase)
- asynchronous code, it supports syntax with async/await (Python 3.5+) and
  asyncio.coroutine/yield from (Python 3.4)

#--------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
The aiounittest is a helper library to ease your pain (and boilerplate),
when writing tests of asynchronous code (:code:asyncio). You can test:

- synchronous code (same as the :code:unittest.TestCase)
- asynchronous code, it supports syntax with async/await (Python 3.5+) and
  asyncio.coroutine/yield from Python 3.4

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6842 |21cr|python-altgraph-0.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module altgraph

Name:           python-%{module}
Version:        0.17
Release:        1
Summary:        Python graph (network) package
Group:          Development/Python
License:        MIT
Url:            https://altgraph.readthedocs.io/
Source0:        https://github.com/ronaldoussoren/altgraph/archive/refs/tags/v%{version}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
altgraph is a fork of graphlib: a graph (network) package for constructing
graphs, BFS, and DFS traversals, topological sort, shortest paths, etc. with
graphviz output.


#-----------------------------------------------------------

%package -n python3-%{module}
Summary:  Python graph (network) package

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)

Requires:       graphviz

%description -n python3-%{module}
altgraph is a fork of graphlib: a graph (network) package for constructing
graphs, BFS, and DFS traversals, topological sort, shortest paths, etc. with
graphviz output.


%files -n python3-%{module}
%doc PKG-INFO README.rst doc/_build/html/ altgraph_tests/ LICENSE
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}*.egg-info/
#-----------------------------------------------------------

%package -n %{name}-doc
Summary:        The %{name} documentation

BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(alabaster)

%description -n %{name}-doc
Documentation for %{name}.

%files -n %{name}-doc
%doc html LICENSE
#-----------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build
PYTHONPATH=${PWD} sphinx-build-3 doc/ html
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{py3_puresitedir} \
    pytest-%{py3_ver} -v altgraph_tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6843 |21cr|python-amqp-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname amqp

Name:		python-%{oname}
Version:	2.6.1
Release:	1
Summary:	Low-level AMQP client for Python (fork of amqplib)
Group:		Development/Python
License:	LGPLv2+
URL:		https://pypi.python.org/pypi/amqp
Source0:	https://pypi.python.org/packages/source/a/amqp/amqp-%{version}.tar.gz
BuildArch:	noarch

%description
Low-level AMQP client for Python

This is a fork of amqplib, maintained by the Celery project.

This library should be API compatible with librabbitmq.

#---------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:        Client library for AMQP

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(nose)

%description -n python3-%{oname}
Low-level AMQP client for Python
This is a fork of amqplib, maintained by the Celery project.
This library should be API compatible with librabbitmq.

%files -n python3-%{oname}
%doc Changelog LICENSE README.rst
%{py3_puresitedir}/%{oname}/
%{py3_puresitedir}/%{oname}*.egg-info

#---------------------------------------------------------------------------

%package doc
Summary:        Documentation for python-amqp
Group:          Books/Computer books
License:        LGPLv2+
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(sphinx-celery)
BuildRequires:  python3egg(vine)
Requires:       python3-%{oname} = %{version}-%{release}

%description doc
Documentation for python-amqp

%files doc
%doc LICENSE
%doc docs/build/html docs/reference

#---------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

#export PYTHONPATH="$( pwd ):$PYTHONPATH"
#chmod -x demo/*.py

pushd docs
sed -i s/^extensions/disable_extensions/ conf.py
SPHINX_DEBUG=1 sphinx-build -b html . build/html
rm -rf build/html/.doctrees build/html/.buildinfo
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6844 |21cr|python-amqplib-1.0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  amqplib

Summary:    Python AMQP (Advanced Message Queuing Protocol) client library
Name:       python-%{module}
Version:    1.0.2
Release:    8
Source0:    https://pypi.python.org/packages/source/a/amqplib/amqplib-%{version}.tgz
License:    LGPLv2.1
Group:      Development/Python
Url:        http://code.google.com/p/py-amqplib/
BuildArch:  noarch
BuildRequires:  python3-devel

%description
amqplib is a Python client library that supports the 0-8 AMQP
(Advanced Message-Queuing Protocol) spec.

%package -n python3-amqplib
Summary:        Python AMQP (Advanced Message Queuing Protocol) client library
Group:          Development/Python
BuildRequires:  python3-devel
Requires:       python3
 
%description -n python3-amqplib
amqplib is a Python client library that supports the 0-8 AMQP
(Advanced Message-Queuing Protocol) spec.

%prep
%setup -qn %{module}-%{version}

%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --root=%{buildroot}

%files -n python3-amqplib
%{python3_sitelib}/amqplib/*
%{python3_sitelib}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6845 |21cr|python-anytree-2.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	anytree
%define commit 65a5d09ce0a592a80918f094ec3fa48b7faca250

Summary:	Powerful and Lightweight Python Tree Data Structure with various plugins
Summary(ru_RU.UTF-8):	Модуль Python, реализующий древовидную структуру данных и поддерживающий различные плагины
Name:		python-%{pypi_name}
Version:	2.12
Release:	2
License:	BSD
Group:		Development/Python
Url:		https://github.com/c0fec0de/%{pypi_name}
Source0:	https://github.com/c0fec0de/%{pypi_name}/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pytest
BuildRequires:	python3-mock
BuildRequires:	python3-pkg-resources
BuildRequires:	python3-setuptools
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3dist(pip)
BuildRequires:	python3dist(poetry-core)

BuildArch:	noarch

%define _description \
%{summary}

%description
%{_description}

%description -l ru_RU.UTF-8
Модуль Python, реализующий древовидную структуру данных и поддерживающий различные плагины

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%description -l ru_RU.UTF-8 -n python3-%{pypi_name}
Модуль Python, реализующий древовидную структуру данных и поддерживающий различные плагины

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}*

#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{commit}

# for autoinstall BuildRequires
%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6846 |21cr|python-apptools-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module apptools

Summary:	Enthought Tool Suite - Application Tools
Name:		python-%{module}
Version:	5.2.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/apptools/
Source0:	https://files.pythonhosted.org/packages/b1/69/d83eaccb74d82755bb96be3996a8386329424ce067aa1e0ab2179108a2f9/apptools-5.2.0.tar.gz
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
The apptools project includes a set of packages that Enthought has found
useful in creating a number of applications. They implement functionality
that is commonly needed by many applications.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Enthought Tool Suite - Application Tools
Group:		Development/Python
Requires:	python3-configobj
Requires:	python3-traitsui >= 4.2.0
Requires:	python3-numpy >= 1.1.0

%description -n python3-%{module}
The apptools project includes a set of packages that Enthought has found
useful in creating a number of applications. They implement functionality
that is commonly needed by many applications.

%files -n python3-%{module}
%doc *.txt *.rst examples/ 
%{py3_puresitedir}/%{module}*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6847 |21cr|python-apsw-3.41.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sqlite_version 3.41.2
%define pkg_version %{sqlite_version}
%define module apsw

Name:           python-apsw
Version:	3.41.2.0
Release:	1
Summary:        Another Python SQLite Wrapper
Group:          Development/Python
License:        zlib
Url:            http://rogerbinns.github.io/apsw/
Source0:        https://github.com/rogerbinns/apsw/releases/download/%{version}/%{module}-%{version}.zip
BuildRequires:  pkgconfig(sqlite3) >= %{sqlite_version}

%description
APSW is a Python wrapper for the SQLite embedded relational database
engine. In contrast to other wrappers such as pysqlite it focuses on
being a minimal layer over SQLite attempting just to translate the
complete SQLite API into Python.
#----------------------------------------------------
%package -n python3-%{module}
Summary:        Another Python3 SQLite Wrapper
Group:          Development/Python
License:        zlib
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
APSW is a Python3 wrapper for the SQLite embedded relational database
engine. In contrast to other wrappers such as pysqlite it focuses on
being a minimal layer over SQLite attempting just to translate the
complete SQLite API into Python.


%files -n python3-%{module}
%doc LICENSE
%{py3_platsitedir}/*

#----------------------------------------------------
%package doc
Summary:        Another Python SQLite Wrapper - Documentation
Group:          Development/Python
License:        zlib
BuildArch:      noarch

%description doc
APSW is a Python wrapper for the SQLite embedded relational database
engine. In contrast to other wrappers such as pysqlite it focuses on
being a minimal layer over SQLite attempting just to translate the
complete SQLite API into Python.

%files doc
%doc doc/*
#----------------------------------------------------


%prep
%setup -qn %{module}-%{version}

%build
%py3_build -- --enable=load_extension

%install
%py3_install


%check
%{__python3} setup.py build_test_extension
PYTHONPATH=%{buildroot}%{py3_platsitedir} %{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6848 |21cr|python-archmage-0.2.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname	archmage
%define debug_package %{nil}

Summary: CHM(Compiled HTML) Decompressor
Name:    python-%{realname}
Epoch:   1
Version: 0.2.4
Release: 6
Source0: %{realname}-%{version}.tar.bz2
License: GPL
Group:   Development/Python
Url:     http://archmage.sf.net/
BuildRequires:	python3-devel

%description
arCHMage - extensible reader/decompiler of files in CHM format 
(Microsoft HTML help, also known as Compiled HTML).
arCHMage is based on chmlib by Jed Wing and is written in python 

%prep
%setup -q -n %{realname}-%{version}

%build
env CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%config %{_sysconfdir}/archmage/arch.conf
%{_bindir}/*
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/archmod
%{_datadir}/archmage
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6849 |21cr|python-argcomplete-1.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global         modname argcomplete

# Currently it's broken: https://github.com/kislyuk/argcomplete/issues/174
%bcond_with check

Name:           python-%{modname}
Summary:        Bash tab completion for argparse
Version:        1.9.2
Release:        2
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/kislyuk/argcomplete
Source0:        %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz

BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)

%if %{with check}
BuildRequires:  pythonegg(pexpect)
BuildRequires:  tcsh
%endif

BuildArch:      noarch

%global _description \
Argcomplete provides easy, extensible command line tab completion of\
arguments for your Python script.\
\
It makes two assumptions:\
\
 * You are using bash as your shell\
 * You are using argparse to manage your command line arguments/options\
\
Argcomplete is particularly useful if your program has lots of\
options or subparsers, and if your program can dynamically suggest\
completions for your argument/option values (for example, if the user\
is browsing resources over the network).

%description %{_description}

Python 2 version.

%package -n python3-%{modname}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%if %{with check}
BuildRequires:  python3egg(3)(pexpect)
BuildRequires:  tcsh
%endif

# pkg_resources module is used from python-argcomplete-check-easy-install-script
Requires:       pythonegg(setuptools)

%description -n python3-%{modname} %{_description}

Python 3 version.

%prep
%setup -n %{modname}-%{version}
# Remove useless BRs
sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
install -p -m0644 %{buildroot}%{py3_puresitedir}/%{modname}/bash_completion.d/python-argcomplete.sh %{buildroot}%{_sysconfdir}/bash_completion.d/

%if %{with check}
%check
export LC_ALL=C.UTF-8
python3 setup.py test
%endif

%files -n python3-%{modname}
%doc LICENSE.rst
%doc README.rst
%{py3_puresitedir}/%{modname}-*.egg-info/
%{py3_puresitedir}/%{modname}/
%{_bindir}/activate-global-python-argcomplete
%{_bindir}/python-argcomplete-check-easy-install-script
%{_bindir}/python-argcomplete-tcsh
%{_bindir}/register-python-argcomplete
%{_sysconfdir}/bash_completion.d/python-argcomplete.sh



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6850 |21cr|python-argh-0.26.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	argh

Name:		python-%{module}
Version:	0.26.2
Release:	3
Summary:	Unobtrusive argparse wrapper with natural syntax
Group:		Development/Python
License:	LGPLv3+
URL:		https://pypi.python.org/pypi/argh
Source0:	https://pypi.io/packages/source/a/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Building a command-line interface? Found yourself uttering "argh!" while
struggling with the API of argparse? Don't like the complexity but need
the power?
Argh is a smart wrapper for argparse. Argparse is a very powerful tool;
Argh just makes it easy to use.

%package -n	python3-%{module}
Summary:	Unobtrusive argparse wrapper with natural syntax
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n	python3-%{module}
Building a command-line interface? Found yourself uttering "argh!" while
struggling with the API of argparse? Don't like the complexity but need
the power?
Argh is a smart wrapper for argparse. Argparse is a very powerful tool;
Argh just makes it easy to use.

This is the Python 3 version of the package.

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6851 |21cr|python-argon2_cffi-21.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name argon2-cffi

Name:		python-argon2_cffi
Version:	21.3.0
Release:	2
Summary:	The secure Argon2 password hashing algorithm
Source0:	https://pypi.python.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://argon2-cffi.readthedocs.io/
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)
BuildRequires:	pyproject-rpm-macros
BuildArch:	noarch

%description
Argon2 won the Password Hashing Competition
and argon2_cffi is the simplest way to use it in Python and PyPy

%generate_buildrequires
%pyproject_buildrequires -R

#-----------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Argon2 won the Password Hashing Competition
and argon2_cffi is the simplest way to use it in Python and PyPy

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc LICENSE *.rst docs
#-------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}


%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files argon2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6852 |21cr|python-argon2-cffi-bindings-21.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name argon2-cffi-bindings

Name:		python-%{pypi_name}
Version:	21.2.0
Release:	1
Summary:	Provides low-level CFFI bindings to the Argon2 password hashing algorithm
Source0:	https://pypi.python.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/hynek/argon2-cffi-bindings
Patch0:		argon2-cffi-bindings-dependensy.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)
BuildRequires:	pyproject-rpm-macros

%description
argon2-cffi-bindings provides low-level CFFI bindings to the Argon2
password hashing algorithm including a vendored version of them.

%generate_buildrequires
%pyproject_buildrequires

#-----------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
argon2-cffi-bindings provides low-level CFFI bindings to the Argon2
password hashing algorithm including a vendored version of them.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README* LICENSE CHANGELOG*
#-------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}


%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files _argon2_cffi_bindings

%check
%pytest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6853 |21cr|python-argparse-manpage-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	argparse-manpage

Summary:	Build manual page from python's ArgumentParser object
Name:		python-%{module}
Version:	1.4
Release:	1
Group:		Development/Python
License:	ASL 2.0
Url:		https://github.com/praiskup/argparse-manpage
Source0:	https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
The initial code was developed for CrunchyFrog, a database query tool for Gnome. 
The frog is now retired and RunSQLRun is it's successor. Then, the build_manpage 
command was developed in andialbrecht and edited slightly in gabrielegiammatteo.
There's even an old blog post about this command.

#----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Build manual page from python's ArgumentParser object
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
The initial code was developed for CrunchyFrog, a database query tool for Gnome. 
The frog is now retired and RunSQLRun is it's successor. Then, the build_manpage 
command was developed in andialbrecht and edited slightly in gabrielegiammatteo.
There's even an old blog post about this command.

%files -n python3-%{module}
%{python3_sitelib}/*
%{_bindir}/argparse-manpage
%{_datadir}/man/man1/argparse-manpage.1.xz

#--------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6854 |21cr|python-arrow-1.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name arrow

Name:               python-%{pypi_name}
Version:	1.2.3
Release:	1
Summary:            Better dates and times for Python
Group:              Development/Python
License:            ASL 2.0
Url:                https://pypi.io/project/arrow
Source0:	https://files.pythonhosted.org/packages/7f/c0/c601ea7811f422700ef809f167683899cdfddec5aa3f83597edf97349962/arrow-1.2.3.tar.gz

BuildArch:          noarch

%description
Arrow is a Python library that offers a sensible, human-friendly approach to
creating, manipulating, formatting and converting dates, times, and timestamps.

It implements and updates the datetime type, plugging gaps in functionality,
and provides an intelligent pypi_name API that supports many common creation
scenarios.

Simply put, it helps you work with dates and times with fewer imports and a lot
less code.
#--------------------------------------------------------------------------------
%package -n         python3-%{pypi_name}
Summary:            Better dates and times for Python

BuildRequires:      pkgconfig(python3)
BuildRequires:      python3egg(setuptools)
BuildRequires:      python3egg(chai)
BuildRequires:      python3egg(python-dateutil)
BuildRequires:      python3egg(pytz)
BuildRequires:      python3egg(pytest)
BuildRequires:      python3egg(pytest-mock)
BuildRequires:      python3egg(pytest-cov)
BuildRequires:      python3egg(six)
BuildRequires:      python3egg(simplejson)
BuildRequires:      python3egg(mock)
BuildRequires:      python3egg(dateparser)

Requires:           python3egg(python-dateutil)
Requires:           python3egg(six)

%description -n python3-%{pypi_name}
Arrow is a Python library that offers a sensible, human-friendly approach to
creating, manipulating, formatting and converting dates, times, and timestamps.

It implements and updates the datetime type, plugging gaps in functionality,
and provides an intelligent pypi_name API that supports many common creation
scenarios.

Simply put, it helps you work with dates and times with fewer imports and a lot
less code.

%files -n python3-%{pypi_name}
%doc README.rst CHANGELOG.rst LICENSE
%{py3_puresitedir}/%{pypi_name}/
%{py3_puresitedir}/%{pypi_name}-%{version}-*
#--------------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

# Don't enforce a certain coverage when we build the RPM, that's an upstream's
# problem
sed -i -e "s|--cov-fail-under=100 ||" tox.ini

# Remove bundled egg-info in case it exists
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6855 |21cr|python-asciidata-1.1.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name asciidata

Name:           python-asciidata
Version:        1.1.1
Release:        15
Group:          Sciences/Astronomy
Summary:        AstroAsciiData is a Python module to handle ASCII tables
Url:            http://www.stecf.org/software/PYTHONtools/astroasciidata
License:        GPLv2
Source0:        http://www.stecf.org/software/PYTHONtools/astroasciidata/source/asciidata-%{version}.tar.gz
Patch0:         python-asciidata-1.1.1-py3support.patch
BuildArch:      noarch


%description
AstroAsciiData is a Python module to handle ASCII tables. The idea to
develop this Python module emerged from the fact that ASCII tables
continue to be one of the most popular and widely used data exchange
formats in astronomy and probably science in general. The development
of the AstroAsciiData module is taking place as part of the AstroLib
project, an open source effort to develop general astronomical
utilities. The prime focus of the module is not computational speed,
since the ASCII tables used in astronomy are rather small (<10MB) and
thus very easy to handle for modern day computers. The main effort was
clearly to maximize the convenience for the user to keep the threshold
for installing and using the AstroAsciiData module as low as possible.


%package -n python3-asciidata
Summary:        Python3 implementation of AstroAsciiData
Group:          Development/Python
BuildArch:      noarch

%description -n python3-asciidata
%{summary}.


%prep
%setup -q -n %{pypi_name}-%{version}
%autopatch -p1

%build
%py3_build

%install
%py3_install

%files -n python3-asciidata
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info
%{py3_puresitedir}/%{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6856 |21cr|python-asgiref-3.2.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module asgiref

%bcond_without  tests

Name:		python-%{module}
Version:	3.2.10
Release:	1
Summary:	ASGI specs, helper code, and adapters
Group:		Development/Python
# This is BSD + bundled async-timeout ASL 2.0
License:	BSD and ASL 2.0
URL:		https://github.com/django/asgiref
# PyPI tarball doesn't have tests
Source0:	https://github.com/django/%{module}/archive/%{version}/%{module}-%{version}.tar.gz
BuildArch:	noarch


%description
ASGI is a standard for Python asynchronous web apps and servers to communicate
with each other, and positioned as an asynchronous successor to WSGI.  This
package includes ASGI base libraries, such as:

* Sync-to-async and async-to-sync function wrappers, asgiref.sync
* Server base classes, asgiref.server
* A WSGI-to-ASGI adapter, in asgiref.wsgi

#-----------------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	%{summary}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
%if %{with tests}
BuildRequires:	python3egg(pytest)
%endif
# https://github.com/django/asgiref/commit/9c6df6e02700092eb19adefff3552d44388f69b8
Provides:	python3dist(async-timeout) == 3.0.1
Provides:	python3egg(async-timeout) == 3.0.1

%description -n python3-%{module}
ASGI is a standard for Python asynchronous web apps and servers to communicate
with each other, and positioned as an asynchronous successor to WSGI.  This
package includes ASGI base libraries, such as:

* Sync-to-async and async-to-sync function wrappers, asgiref.sync
* Server base classes, asgiref.server
* A WSGI-to-ASGI adapter, in asgiref.wsgi

%files -n python3-%{module}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py%{python3_version}.egg-info

#-----------------------------------------------------------------------------------

%prep
%autosetup -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6857 |21cr|python-asn1-modules-0.0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pyasn1-modules
%define	module	asn1-modules

Name:		python-%{module}
Version:	0.0.5
Release:	3
Summary:	A collection of ASN.1-based protocols modules
Source0:	http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://sourceforge.net/projects/pyasn1/
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
A collection of ASN.1 modules expressed 
in form of pyasn1 classes. 
Includes protocols PDUs definition 
(SNMP, LDAP etc.) and various data structures (X.509, PKCS etc.).

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	A collection of ASN.1-based protocols modules

%description -n python2-%{module}
A collection of ASN.1 modules expressed 
in form of pyasn1 classes. 
Includes protocols PDUs definition 
(SNMP, LDAP etc.) and various data structures (X.509, PKCS etc.).


%prep
%setup -q -n %{oname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

%files -n python2-%{module}
%doc CHANGES
%doc LICENSE
%doc README
%{py2_puresitedir}/pyasn1_modules/*.py*
%{py2_puresitedir}/pyasn1_modules*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6858 |21cr|python-asttokens-2.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name asttokens

Name:           python-%{pypi_name}
Version:	2.0.8
Release:	1
Group:          Development/Python
Summary:        Annotates Python abstract syntax trees (ASTs)
License:        Apache License
URL:            https://github.com/gristlabs/asttokens
Source0:	https://files.pythonhosted.org/packages/4d/c8/987ee029c83ad1cddb03bb004e9c7a8de1be4cdbda21122a0b9f639fcc31/asttokens-2.0.8.tar.gz
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-toml
BuildArch:      noarch

%define _description \
The asttokens module annotates Python abstract syntax trees (ASTs) with \
the positions of tokens and text in the source code that generated them. \
\
It makes it possible for tools that work with logical AST nodes to find \
the particular text that resulted in those nodes, for example for \
automated refactoring or highlighting.

%description
%{_description}

%package -n python3-%{pypi_name}
Summary: %{summary}
Group: %{group}

%description -n python3-%{pypi_name}
%{_description}

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info
%{py3_puresitedir}/%{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6859 |21cr|python-async-generator-1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname async_generator
# what it's imported as
%global libname async_generator
# name of egg info directory
%global eggname async_generator
# package name fragment
%global pkgname async-generator

%global _description \
This library generally tries hard to match the semantics of Python 3.6's native\
async generators in every detail (PEP 525), with additional support for yield\
from and for returning non-None values from an async generator (under the\
theory that these may well be added to native async generators one day).


Name:		python-%{pkgname}
Version:	1.10
Release:	1
Summary:	Async generators and context managers
License:	MIT or ASL 2.0
Group:		Development/Python
URL:		https://github.com/python-trio/async_generator
Source0:	https://pypi.io/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch


%description %{_description}

#---------------------------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:        %{summary}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)

%description -n python3-%{pkgname} %{_description}

%files -n python3-%{pkgname}
%license LICENSE LICENSE.MIT LICENSE.APACHE2
%doc README.rst
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}
rm -r %{eggname}.egg-info


%build
%py3_build

%install
%py3_install

%check
py.test-%{python3_version} --verbose

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6860 |21cr|python-asyncmy-0.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Tests require interacting with a temporary MySQL database. We are able to do
# this, but leave a build conditional to fall back to a “smoke test” in case it
# breaks.
%bcond_with tests

Name:           python-asyncmy
Summary:        A fast asyncio MySQL/MariaDB driver
Group:          Development/Python
Version:        0.2.5
Release:        1

License:        ASL 2.0
URL:            https://github.com/long2ice/asyncmy
# The GitHub source includes tests and examples; the PyPI source lacks them.
Source0:        %{url}/archive/v%{version}/asyncmy-%{version}.tar.gz

# Doc/license files installed directly in site-packages
# https://github.com/long2ice/asyncmy/issues/33
Patch:          0001-Do-not-install-text-files-in-site-packages.patch

# Test failures and errors on 32-bit platforms
# https://github.com/long2ice/asyncmy/issues/34
# https://bugzilla.redhat.com/show_bug.cgi?id=2060899
ExcludeArch:    %{ix86} %{arm32}

BuildRequires:  gcc
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  mariadb-server

# pyproject.toml: [tool.poetry.dev-dependencies]
# aiomysql = "*" ← benchmarks only
# bandit = "*" ← linter/analyzer
# black = "*" ← linter/formatter
# cryptography = "*"
BuildRequires:  python3dist(cryptography)
# cython = "*" ← already in [build-system] requires
# flake8 = "*" ← linter
# isort = "*" ← linter/formatter
# mypy = "*" ← linter/typechecker
# mysqlclient = "*" ← benchmarks only
# pymysql = "0.8.1" ← benchmarks only
# pytest = "*"
BuildRequires:  python3dist(pytest)
# pytest-asyncio = "*"
BuildRequires:  python3dist(pytest-asyncio)
# pytest-mock = "*"
BuildRequires:  python3dist(pytest-mock)
# pytest-xdist = "*"
BuildRequires:  python3dist(pytest-xdist)
# uvloop = { version = "*", markers = "…" } ← benchmarks only
%endif

%global common_description %{expand:
asyncmy is a fast asyncio MySQL/MariaDB driver, which reuses most of pymysql
and aiomysql but rewrites the core protocol with Cython to speed it up.}

%description %{common_description}

#---------------------------------------------------------
%package -n     python3-asyncmy
Summary:        %{summary}
Group:          Development/Python

%description -n python3-asyncmy %{common_description}

%files -n python3-asyncmy -f %{pyproject_files}
%license LICENSE
%doc CHANGELOG.md
%doc README.md

#---------------------------------------------------------

%prep
%autosetup -n asyncmy-%{version} -p1


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files asyncmy

# Do not distribute Cython-generated C source files; these are not useful
find '%{buildroot}%{python3_sitearch}/asyncmy' \
    -type f -name '*.c' -print -delete
sed -r -i '/\.c$/d' '%{pyproject_files}'


%check
%if %{with tests}
# Based on rubygem-mysql2 packaging:

# Use a randomized port in case the standard mysqld port 3306 is occupied, and
# to account for multiple simultaneous builds on the same host.
# https://src.fedoraproject.org/rpms/rubygem-pg/pull-request/3
MYSQL_PORT="$((13306 + ${RANDOM} % 1000))"
MYSQL_USER="$(whoami)"
MYSQL_DATA_DIR="${PWD}/data"
MYSQL_SOCKET="${PWD}/mysql.sock"
MYSQL_LOG="${PWD}/mysql.log"
MYSQL_PID_FILE="${PWD}/mysql.pid"

mkdir "${MYSQL_DATA_DIR}"
mysql_install_db --datadir="${MYSQL_DATA_DIR}" --log-error="${MYSQL_LOG}"

%{_libexecdir}/mysqld --port="${MYSQL_PORT}" --ssl \
    --datadir="${MYSQL_DATA_DIR}" --log-error="${MYSQL_LOG}" \
    --socket="${MYSQL_SOCKET}" --pid-file="${MYSQL_PID_FILE}" & :

echo "Waiting for server… ${i}" 1>&2
TIMEOUT=30
while ! grep -q 'ready for connections.' "${MYSQL_LOG}"
do
  sleep 1
  TIMEOUT=$((TIMEOUT - 1))
  if [[ "${TIMEOUT}" = '0' ]]
  then
    echo 'Timed out' 1>&2
    exit 1
  fi
done

echo 'Ready' 1>&2
trap "kill $(cat "${MYSQL_PID_FILE}")" INT TERM EXIT

# See https://github.com/brianmario/mysql2/blob/master/.travis_setup.sh
mysql -u "${MYSQL_USER}" -S "${MYSQL_SOCKET}" -P "${MYSQL_PORT}" \
  -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';"

sed -r -i "s/\b3306\b/${MYSQL_PORT}/" conftest.py
# Make sure we do not import the “un-built” package
rm -rf asyncmy

%pytest

%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6861 |21cr|python-asyncpg-0.27.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# Sphinx-generated HTML documentation is not suitable for packaging; see
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
#
# We can generate PDF documentation as a substitute.
%bcond_with doc_pdf

Name:           python-asyncpg
Summary:        A fast PostgreSQL Database Client Library for Python/asyncio
Group:          Development/Python
Version:        0.27.0
Release:        1

License:        ASL 2.0
URL:            https://github.com/MagicStack/asyncpg
Source0:        %{pypi_source asyncpg}
Patch0:         asyncpg-dependensy.patch
BuildRequires:  gcc
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with doc_pdf}
BuildRequires:  make
BuildRequires:  python3-sphinx-latex
BuildRequires:  latexmk
%endif

# For tests:
#
# For pg_config binary
BuildRequires:  postgresql-devel
# For pg_ctl binary
BuildRequires:  postgresql-server
# For citext extension
BuildRequires:  postgresql-contrib

# Note that asyncpg/pgproto comes from a git submodule referencing a separate
# project, https://github.com/MagicStack/py-pgproto. However, we do not treat
# it as a bundled dependency because it contains only sources; it has no build
# system and is not designed for separate installation; and it is managed as a
# part of the asyncpg package, as evidenced by the comment “This module is part
# of asyncpg” in the file headers.

%global common_description %{expand:
asyncpg is a database interface library designed specifically for PostgreSQL
and Python/asyncio. asyncpg is an efficient, clean implementation of PostgreSQL
server binary protocol for use with Python’s asyncio framework. You can read
more about asyncpg in an introductory blog post
http://magic.io/blog/asyncpg-1m-rows-from-postgres-to-python/.}

%description %{common_description}

#-----------------------------------------------------
%package -n     python3-asyncpg
Summary:        %{summary}
Group:          Development/Python

%description -n python3-asyncpg %{common_description}

%files -n python3-asyncpg -f %{pyproject_files}

#-----------------------------------------------------

%package doc
Summary:        Documentation for %{name}
Group:          Documentation

BuildArch:      noarch

%description doc %{common_description}

%files doc
%license LICENSE
%doc README.rst
%if %{with doc_pdf}
%doc docs/_build/latex/asyncpg.pdf
%endif

#-----------------------------------------------------

%prep
%autosetup -p1 -n asyncpg-%{version}

# Remove pre-generated C sources from Cython to ensure they are re-generated
# and not used in the build. Note that recordobj.c is not a generated source,
# and must not be removed!
find asyncpg -type f -name '*.c' ! -name 'recordobj.c' -print -delete

# Do not put the source directory at the front of the path, as this keeps us
# from using our own PYTHONPATH setting to allow importing the compiled
# extension modules.
sed -r -i 's|(sys\.path\.)insert\(0,[[:blank:]]*|\1append\(|' \
    docs/conf.py
# Drop intersphinx mappings, since we can’t download remote inventories and
# can’t easily produce working hyperlinks from inventories in local
# documentation packages.
echo 'intersphinx_mapping.clear()' >> docs/conf.py

# We will not run style linting tests since they are brittle, so we might as
# well drop the corresponding dependencies.
sed -r -i '/(pycodestyle|flake8)/d' setup.py


%generate_buildrequires
# Note dev extra includes doc and test extras
%pyproject_buildrequires -x dev


%build
%set_build_flags
%pyproject_wheel

%if %{with doc_pdf}
PYTHONPATH="%{pyproject_build_lib}" %make_build -C docs latex \
        SPHINXBUILD='sphinx-build' SPHINXOPTS='%{?_smp_mflags}'
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
%endif


%install
%pyproject_install
%pyproject_save_files asyncpg


%check
# It is not clear why the tests always import asyncpg as ../asyncpg/__init__.py
# even if we set PYTHONPATH to the installed sitearch directory. This
# workaround is ugly, but there is nothing actually wrong with it, as the
# install is already done by the time the check section runs:
rm -rf asyncpg
ln -s %{buildroot}%{python3_sitearch}/asyncpg/

# Do not run flake8 code style tests, which may fail; besides, we have patched
# flake8 and pycodestyle out of the test dependencies
k="${k-}${k+ and }not TestFlake8"

%ifarch s390x
# This appears to be associated with GCC 12.
# https://github.com/MagicStack/asyncpg/issues/877
k="${k-}${k+ and }not (TestPrepare and test_prepare_28_max_args)"
%endif

# on python 3.11 test fail in environment, need update python3.11
#pytest -k "${k}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6862 |21cr|python-asyncssh-2.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name asyncssh

Name:           python-%{pypi_name}
Version:        2.13.2
Release:        1
Summary:        Asynchronous SSHv2 client and server library
Group:          Development/Python
License:        EPL
URL:            https://github.com/ronf/asyncssh
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  python3-cryptography
BuildRequires:  python3-setuptools
BuildArch:      noarch

%define _description %{expand:
AsyncSSH is a Python package which provides an asynchronous client and server
implementation of the SSHv2 protocol on top of the Python 3.6+ asyncio
framework.
}

%description
%{_description}

#----------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        Asynchronous SSHv2 client and server library
Group:          Development/Python
Requires:       python3-cryptography

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name}
%doc CONTRIBUTING.rst README.rst LICENSE
%{py3_puresitedir}

#----------------------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6863 |21cr|python-async-timeout-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname async-timeout
%global common_desc asyncio-compatible timeout context manager\
The context manager is useful in cases when you want to apply timeout\
logic around block of code or in cases when asyncio.wait_for() is not \
suitable. Also it's much faster than asyncio.wait_for() because timeout\
doesn't create a new task.

%bcond_without tests

Name:           python-%{srcname}
Version:        4.0.2
Release:        1
Summary:        An asyncio-compatible timeout context manager
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/aio-libs/async-timeout
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch

%description
%{common_desc}

#------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pytest-runner
%if %{with tests}
BuildRequires: python3-pytest-aiohttp
%endif

%description -n python3-%{srcname}
%{common_desc}

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst CHANGES.rst
%{python3_sitelib}/async_timeout/
%{python3_sitelib}/async_timeout-*.egg-info/

#------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
%{__python3} setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6864 |21cr|python-atom-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	atom

Name:		python-%{pypi_name}
Version:	0.8.0
Release:	1
Summary:	Memory efficient Python objects
Group:		Development/Python
License:	Modified BSD
Url:		https://github.com/nucleic/atom
Source0:	https://pypi.io/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(toml)
BuildRequires:	python3egg(cppy)

%description
Welcome to Atom
===============

Atom is a framework for creating memory efficient Python objects with enhanced
features such as dynamic initialization, validation, and change notification
for object attributes. It provides the default model binding behaviour for the
`Enaml <http://nucleic.github.io/enaml/docs>`_ UI framework.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Memory efficient Python objects
Group:		Development/Python

%description -n python3-%{pypi_name}
Welcome to Atom
===============

Atom is a framework for creating memory efficient Python objects with enhanced
features such as dynamic initialization, validation, and change notification
for object attributes. It provides the default model binding behaviour for the
`Enaml <http://nucleic.github.io/enaml/docs>`_ UI framework.

%files -n python3-%{pypi_name}
%doc README.rst releasenotes.rst
%{py3_platsitedir}/atom
%{py3_platsitedir}/atom-%{version}-*.egg-info

#---------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

rm -r *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6865 |21cr|python-audioread-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:        Multi-library, cross-platform audio decoding in Python
Group:          Development/Python
Name:           python-audioread
Version:	3.0.0
Release:	1
License:        MIT
URL:            http://pypi.python.org/pypi/audioread/
Source0:	https://files.pythonhosted.org/packages/5d/cb/82a002441902dccbe427406785db07af10182245ee639ea9f4d92907c923/audioread-3.0.0.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Buildrequires:  python3-pytest-runner
%global _description \
Decode audio files using whichever backend is available. Among\
currently supports backends are\
 o Gstreamer via PyGObject\
 o MAD via the pymad bindings\
 o FFmpeg or Libav via its command-line interface\
 o The standard library wave, aifc, and sunau modules
%description %_description


#-----------------------------------------------------------------
%package    -n  python3-audioread
Summary:        Multi-library, cross-platform audio decoding in Python
Group:          Development/Python
Requires:       python3-gobject
Requires:       gstreamer1.0-plugins-base
Requires:       gstreamer1.0-plugins-good

%description -n python3-audioread %_description

%files -n python3-audioread
%doc README.rst decode.py
%{python3_sitelib}/audioread/
%{python3_sitelib}/audioread-%{version}-*.egg-info

#-----------------------------------------------------------------

%prep
%setup -q -n audioread-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6866 |21cr|python-authlib-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname authlib
%global pypi_name Authlib

Name:           python-%{srcname}
Version:	1.1.0
Release:	1
Summary:        Build OAuth and OpenID Connect servers in Python
Group:          Development/Python
License:        BSD
URL:            https://github.com/lepture/authlib
Source0:        %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%global _description %{expand:
Python library for building OAuth and OpenID Connect servers. JWS, JWK, JWA,
JWT are included.}

%description %_description

#-------------------------------------------------------------
%package -n     python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{srcname} %_description

%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.md

#-------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%generate_buildrequires
%pyproject_buildrequires -e %{toxenv},%{toxenv}-clients,%{toxenv}-flask,%{toxenv}-django,%{toxenv}-jose


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files authlib


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6867 |21cr|python-autopep8-1.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	autopep8

Name:		python-%{oname}
Version:	1.5.4
Release:	1
Summary:	A tool that formats Python code to conform to the PEP 8 style
Source0:	https://files.pythonhosted.org/packages/94/37/19bc53fd63fc1caaa15ddb695e32a5d6f6463b3de6b0922ba2a3cbb798c8/autopep8-1.5.4.tar.gz
License:	Expat
Group:		Development/Python
Url:		https://github.com/hhatto/autopep8
BuildArch:	noarch
# Ideally should also add python2-pycodestyle so that more tests are successful
BuildRequires:	pythonegg(setuptools)

%description
autopep8 automatically formats Python code to conform to the `PEP 8`_ style
guide. It uses the pycodestyle_ utility to determine what parts of the code
needs to be formatted. autopep8 is capable of fixing most of the formatting
issues_ that can be reported by pycodestyle.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	A tool that formats Python code to conform to the PEP 8 style

%description -n python2-%{oname}
autopep8 automatically formats Python code to conform to the `PEP 8`_ style
guide. It uses the pycodestyle_ utility to determine what parts of the code
needs to be formatted. autopep8 is capable of fixing most of the formatting
issues_ that can be reported by pycodestyle.


%prep
%setup -q -n %{oname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

%check
python2 setup.py test || :

%files -n python2-%{oname}
%doc AUTHORS.rst
%doc LICENSE
%doc README.rst
%{_bindir}/autopep8 
%{py2_puresitedir}/autopep8.py*
%{py2_puresitedir}/autopep8*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6868 |21cr|python-azure-common-1.1.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Tests are not included in the PyPi source, but this PR should include them:
# https://github.com/Azure/azure-sdk-for-python/pull/21543
%bcond_with     tests

%global         pypi_name     azure-common

Name:           python-%{pypi_name}
Version:        1.1.28
Release:        1
Summary:        Microsoft Azure Client Library for Python (Common)
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/%{pypi_name}/
Source0:        %{pypi_source %{pypi_name} %{version} zip}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# Upstream imports adal/msrestazure, but it doesn't include adal/msrestazure in its
# required packages list.
# Bug: https://github.com/Azure/azure-sdk-for-python/issues/24948
Requires:       python3dist(msrestazure)
BuildRequires:  python3dist(msrestazure)

%if %{with tests}
BuildRequires:  python3dist(azure-devtools)
BuildRequires:  python3dist(azure-mgmt-keyvault)
BuildRequires:  python3dist(azure-mgmt-resource)
BuildRequires:  python3dist(azure-sdk-tools)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-aiohttp)
%endif

%global _description %{expand:
Microsoft Azure Client Library for Python (Common)}

%description %{_description}

#------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README* CHANGELOG*

#------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files azure


%check
%if %{with tests}
%pytest
%endif




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6869 |21cr|python-azure-core-1.25.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     tests

%global         srcname     azure-core

Name:           python-%{srcname}
Version:	1.25.1
Release:	1
Summary:        Azure Core shared client library for Python
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/%{srcname}/
Source0:	https://files.pythonhosted.org/packages/8a/02/f855e97cd6f8e3f2726dfa53f080c6d93cd9bb2cf3ab049145a7c38892c8/azure-core-1.25.1.zip
# Werkzeug >= 2.2 Support
Patch01:        Adjust-tests-for-werkzeug-2.2.patch

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(azure-devtools)
BuildRequires:  python3dist(azure-mgmt-keyvault)
BuildRequires:  python3dist(azure-mgmt-resource)
BuildRequires:  python3dist(azure-sdk-tools)
BuildRequires:  python3dist(flask)
BuildRequires:  python3dist(msrest)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-aiohttp)
BuildRequires:  python3dist(python-dotenv)
BuildRequires:  python3dist(trio)
%endif

%global _description %{expand:
Azure Core shared client library for Python}

%description %{_description}

#-----------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.md

#-----------------------------------------------
%prep
%autosetup -n %{srcname}-%{version} -p4

sed -i 's/typing-extensions[>=0-9\.]*/typing-extensions/' setup.py

%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files azure


%check
%if %{with tests}
# azure-core has a flask-based testing server that must be available to run tests.
# Disabling async/streaming tests since they require network connectivity to various
# APIs on Azure's site.
PYTHONPATH=%{buildroot}%{python3_sitelib}:%{buildroot}%{python3_sitearch}:tests/testserver_tests/coretestserver/ \
    %pytest \
        --ignore=tests/async_tests \
        --ignore tests/test_streaming.py \
        -k "not test_decompress_plain_no_header \
            and not test_compress_plain_no_header \
            and not test_decompress_compressed_no_header \
            and not test_text_and_encoding \
            and not test_response_headers" \
        tests
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6870 |21cr|python-azure-identity-1.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with  tests

%global         pypi_name     azure-identity

Name:           python-%{pypi_name}
Version:	1.11.0
Release:	1
Summary:        Microsoft Azure Identity Library for Python
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/%{pypi_name}/
# This source comes from making a git archive of the main azure-sdk-for-python
# repository. To reproduce the source code, run the generate-source.sh script.
Source0:	https://files.pythonhosted.org/packages/20/e8/576ae0ff02631cd395158bc79f2b9c7df2c91e69c5d9c2455cb3da9bd532/azure-identity-1.11.0.zip

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(azure-devtools)
BuildRequires:  python3dist(azure-mgmt-keyvault)
BuildRequires:  python3dist(azure-mgmt-resource)
BuildRequires:  python3dist(azure-sdk-tools)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(aiohttp)
BuildRequires:  python3dist(pytest-asyncio)
BuildRequires:  python3dist(python-dotenv)
%endif

%global _description %{expand:
Microsoft Azure Identity Library for Python}

%description %{_description}

#-----------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md

#-----------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files azure


%check
%if %{with tests}
%pytest -k "not test_timeout"
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6871 |21cr|python-azure-mgmt-core-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     tests

%global         upstream_name     azure-mgmt-core

Name:           python-%{upstream_name}
Version:	1.3.2
Release:	1
Summary:        Azure Management Core Library
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/%{upstream_name}/
Source0:	https://files.pythonhosted.org/packages/ae/18/6f79cfddbf08f233de5a51961323c0b1b2174e06ae9460988091fd012043/azure-mgmt-core-1.3.2.zip

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(azure-devtools)
BuildRequires:  python3dist(azure-mgmt-keyvault)
BuildRequires:  python3dist(azure-mgmt-resource)
BuildRequires:  python3dist(azure-sdk-tools)
BuildRequires:  python3dist(httpretty)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-aiohttp)
BuildRequires:  python3dist(python-dotenv)
%endif

%global _description %{expand:
Azure Management Core Library}

%description %{_description}

#---------------------------------------------------------
%package -n python3-%{upstream_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{upstream_name} %{_description}

%files -n python3-%{upstream_name} -f %{pyproject_files}
%doc README.md
#---------------------------------------------------------

%prep
%autosetup -n %{upstream_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files azure


%check
%if %{with tests}
%pytest
%endif




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6872 |21cr|python-azure-mgmt-rdbms-10.2.0_b3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No tests provided.
%bcond_with    tests

%global         pypi_name     azure-mgmt-rdbms

Name:           python-%{pypi_name}
Version:        10.2.0~b3
%global         pypi_version    10.2.0b3
Release:        1
Summary:        Microsoft Azure RDBMS Management Client Library for Python
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/%{pypi_name}/
Source0:        %{pypi_source %{pypi_name} %{pypi_version} zip}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(azure-devtools)
BuildRequires:  python3dist(azure-mgmt-keyvault)
BuildRequires:  python3dist(azure-mgmt-resource)
BuildRequires:  python3dist(azure-sdk-tools)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-aiohttp)
BuildRequires:  python3dist(python-dotenv)
%endif

%global _description %{expand:
Microsoft Azure RDBMS Management Client Library for Python}

%description %{_description}

#---------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{_description}

# LICENSE missing. Made PR to fix:
# https://github.com/Azure/azure-sdk-for-python/pull/20176
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md CHANGELOG.md

#---------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{pypi_version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files azure

%check
%if %{with tests}
%pytest
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6873 |21cr|python-azure-mgmt-resource-21.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Tests currently require running docker containers.
%bcond_with     tests

%global         pypi_name     azure-mgmt-resource

Name:           python-%{pypi_name}
Version:        21.1.0
Release:        1
Summary:        Microsoft Azure Resource Management Client Library for Python
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/%{pypi_name}/
Source0:        %{pypi_source %{pypi_name} %{version} zip}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(azure-devtools)
BuildRequires:  python3dist(azure-mgmt-keyvault)
BuildRequires:  python3dist(azure-mgmt-resource)
BuildRequires:  python3dist(azure-sdk-tools)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-aiohttp)
BuildRequires:  python3dist(python-dotenv)
%endif

%global _description %{expand:
Microsoft Azure Resource Management Client Library for Python}

%description %{_description}

#-------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md

#-------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files azure


%check
%if %{with tests}
%pytest
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6874 |21cr|python-azure-mgmt-subscription-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Upstream has some basic scaffolding for running tests, but no tests are
# included yet in the 3.0.0 release. 😢
%bcond_with     tests

%global         pypi_name     azure-mgmt-subscription

Name:           python-%{pypi_name}
Version:        3.0.0
Release:        1
Summary:        Microsoft Azure Subscription Management Client Library for Python
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/%{pypi_name}/
Source0:        %{pypi_source %{pypi_name} %{version} zip}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(azure-devtools)
BuildRequires:  python3dist(azure-mgmt-keyvault)
BuildRequires:  python3dist(azure-mgmt-resource)
BuildRequires:  python3dist(azure-sdk-tools)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-aiohttp)
BuildRequires:  python3dist(python-dotenv)
%endif

%global _description %{expand:
Microsoft Azure Subscription Management Client Library for Python}

%description %{_description}

#----------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc CHANGELOG.md README.md

#----------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files azure


%check
%if %{with tests}
%pytest
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6875 |21cr|python-bandit-1.7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bandit

Name:		python-bandit
Version:	1.7.4
Release:	1
Summary:	A framework for performing security analysis of Python source code
Group:		Development/Python
License:	ASL 2.0
URL:		https://wiki.openstack.org/wiki/Security/Projects/Bandit
Source0:	https://files.pythonhosted.org/packages/39/36/a37a2f6f8d0ed8c3bc616616ed5019e1df2680bd8b7df49ceae80fd457de/bandit-1.7.4.tar.gz
BuildArch: noarch

%description
Bandit provides a framework for performing security analysis of Python source
code, utilizing the ast module from the Python standard library.

The ast module is used to convert source code into a parsed tree of Python
syntax nodes. Bandit allows users to define custom tests that are performed
against those nodes. At the completion of testing, a report is generated
that lists security issues identified within the target source code.

#-------------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	A framework for performing security analysis of Python source code
Group:		Development/Python

BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(pbr)
BuildRequires: python3egg(setuptools)
Requires: PyYAML
Requires: python3-stevedore
Requires: python3-appdirs

%description -n python3-%{oname}
Bandit provides a framework for performing security analysis of Python source
code, utilizing the ast module from the Python standard library.

The ast module is used to convert source code into a parsed tree of Python
syntax nodes. Bandit allows users to define custom tests that are performed
against those nodes. At the completion of testing, a report is generated
that lists security issues identified within the target source code.

%files -n python3-%{oname}
%doc AUTHORS ChangeLog README.rst
%doc doc examples
%license LICENSE
%{_bindir}/bandit*
%{python3_sitelib}/%{oname}
%{python3_sitelib}/%{oname}-%{version}-py*.egg-info

#------------------------------------------------------------------------------
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
# the tests requires internet access, with pip install being run
# so they are disabled for now, since koji block outgoing connexion
# tox -epy27

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6876 |21cr|python-batinfo-0.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname batinfo

Name:           python-%{oname}
Version:        0.4.2
Release:        2
Summary:        A simple Python lib to retreive battery information
Source0:        https://pypi.python.org/packages/source/b/%{oname}/%{oname}-%{version}.tar.gz
License:        LGPLv3
Group:          Development/Python
URL:            https://github.com/nicolargo/batinfo
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
A simple Python lib to retreive battery information

%package -n python3-%{oname}
Summary:        %{summary}

%description -n python3-%{oname}
A simple Python module to retrieve battery information on Linux-based
operating system. No ACPI or external software is needed. Only the Linux
kernel and its /sys/class/power_supply folder.

%prep
%setup -q -n %{oname}-%{version}
# Remove bundled egg-info
rm -rf %{oname}.egg-info

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}
rm %{buildroot}/usr/share/doc/batinfo/AUTHORS
rm %{buildroot}/usr/share/doc/batinfo/README.md


%files -n python3-%{oname}
%doc README.md AUTHORS
%{_datadir}/doc/batinfo/LICENSE
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6877 |21cr|python-belonesox-tools-0.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Stas Fomin's small utils library
Name:		python-belonesox-tools
Version:	0.0.1
Release:	3
License:	MIT
Group:		Development/Python
Source0:	https://abf.io/belonesox/python-belonesox-tools/archive/%{name}-v%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Stas Fomin's small utils library.

%files
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6878 |21cr|python-bibtex-1.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        BibTeX and recode bindings for python
Name:           python-bibtex
Version:        1.2.7
Release:        1
License:        GPLv2+
Group:          Development/Python
Source0:        http://prdownloads.sourceforge.net/pybliographer/%{name}-%{version}.tar.gz
Url:            http://pybliographer.org/
BuildRequires: recode-devel
BuildRequires: pkgconfig(python2)
BuildRequires: glib2-devel
BuildRequires: flex bison

%description
This python2 extension contains a BibTeX parser and a simple binding to
the GNU Recode library. They are intended to be used with pybliographer.

#--------------------------------------------
%package -n python2-bibtex
Summary: BibTeX and recode bindings for python

%description -n python2-bibtex
This python extension contains a BibTeX parser and a simple binding to
the GNU Recode library. They are intended to be used with pybliographer.

%files -n python2-bibtex
%doc README
%{py2_platsitedir}/*

#--------------------------------------------------

%prep
%setup -q

%build
%py2_build

%install
%py2_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6879 |21cr|python-bidict-0.22.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	bidict

Summary:	Bidirectional (one-to-one) mapping data structure for Python
Group:		Development/Python
Name:		python-bidict
Version:	0.22.0
Release:	1
License:	MIT
Url:		https://bitbucket.org/jab/bidict/
Source0:	https://pypi.io/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
bidict provides a bidirectional mapping data structure and related
utilities (namedbidict, inverted) to naturally model one-to-one
relations in Python. To keep the learning curve low, it introduces no
new functions to the dict API you're already familiar with. It owes
its simplicity to Python's slice syntax, which provides a handy and
natural way of expressing the inverse mapping in a bidict.

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Bidirectional (one-to-one) mapping data structure for Python
Group:		Development/Python

%description -n python3-%{pypi_name}
bidict provides a bidirectional mapping data structure and related
utilities (namedbidict, inverted) to naturally model one-to-one
relations in Python. To keep the learning curve low, it introduces no
new functions to the dict API you're already familiar with. It owes
its simplicity to Python's slice syntax, which provides a handy and
natural way of expressing the inverse mapping in a bidict.

%files -n python3-%{pypi_name}
%doc README*
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info/
#-----------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6880 |21cr|python-billiard-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name billiard
# debuginfo without sources
%define debug_package	%{nil}

Name:           python-%{pypi_name}
Version:	4.0.2
Release:	1
Summary:        Multiprocessing Pool Extensions
Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/billiard
Source0:	https://files.pythonhosted.org/packages/20/ab/53b46f01cbec1f6c1db30f006c6e4b6b11c8de6ceed3f725abbc61628a08/billiard-4.0.2.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
This package contains extensions to the multiprocessing Pool.

#-------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Multiprocessing Pool Extensions
Group:          Development/Python

%description -n python3-%{pypi_name}
This package contains extensions to the multiprocessing Pool.

%files -n python3-%{pypi_name}
%doc CHANGES.txt LICENSE.txt README.rst
#{py3_platsitedir}/_billiard*
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}*.egg-info

#-------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
chmod 644 README.rst


%build
CFLAGS="%{optflags} -wall" %__python3 setup.py build

%install
%__python3 setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6881 |21cr|python-binaryornot-0.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	binaryornot

Name:		python-%{oname}
Version:	0.4.4
Release:	2
Summary:	Ultra-lightweight pure Python package to check if a file is binary or text
Source0:	https://pypi.python.org/packages/source/b/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/audreyr/binaryornot
BuildArch:	noarch

BuildRequires:      python3egg(sphinx)
BuildRequires:      pkgconfig(python3)
BuildRequires:      python3egg(chardet) >= 2.0.0
BuildRequires:      python3egg(hypothesis)

%description
Ultra-lightweight pure Python package to guess whether a file
is binary or text, using a heuristic similar to
Perl's `pp_fttext` and its analysis by @eliben.

#-----------------------------------------------------------------------------------

%package -n         python3-%{oname}
Summary:            A pure Python 3 package to check if a file is binary or text
Group:              Development/Python

%description -n python3-%{oname}
Ultra-lightweight pure Python package to guess whether a file is binary or
text, using a heuristic similar to Perl's pp_fttext and its analysis by
@eliben.

Has tests for these file types:
* Text: .txt, .css, .json, .svg, .js, .lua, .pl, .rst * Binary: .png, .gif,
.jpg, .tiff, .bmp, .DS_Store, .eot, .otf, .ttf, .woff, .rgb

Has tests for numerous encodings.

%files -n python3-%{oname}
%doc AUTHORS.rst
%doc HISTORY.rst
%doc LICENSE
%doc README.rst
%doc tests docs
%{py3_puresitedir}/binaryornot
%{py3_puresitedir}/binaryornot*.egg-info

#-----------------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6882 |21cr|python-biopython-179-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	biopython
# we don't want to provide private python extension libs
%global __provides_exclude_from %{py2_platsitedir}/.*\\.so\\|%{py3_platsitedir}/.*\\.so

Summary:	The Biopython Project
Name:		python-biopython
Version:	179
Release:	2
Group:		Sciences/Biology
License:	BSD
Url:		http://biopython.org/
Source0:	https://github.com/biopython/biopython/archive/refs/tags/biopython-%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	flex
BuildRequires:	gcc
BuildRequires:	epydoc
Requires:	wise2
Recommends:	ncbi-blast
# don't explicitly require clustalw because it is non-free
Recommends:	clustalw

%description
The Biopython Project is an international association of developers of
freely available Python tools for computational molecular biology.

http://biopython.org provides an online resource for modules,
scripts, and web links for developers of Python-based software for
life science research.

This package provides various Python modules from the Biopython Project 
used to process biological data.

#----------------------------------------------------------------------
%package	-n python3-biopython
Summary:	The Biopython Project for Python3
Group:		Sciences/Biology
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-reportlab
BuildRequires:	python3-numpy
BuildRequires:	python3-numpy-devel
Requires:	python3-numpy
Requires:	wise2
Recommends:	ncbi-blast

%description -n python3-biopython
The Biopython Project is an international association of developers of
freely available Python tools for computational molecular biology.

http://biopython.org provides an online resource for modules,
scripts, and web links for developers of Python-based software for
life science research.

This package provides various Python 3 modules from the Biopython Project 
used to process biological data.

%files -n python3-biopython
%{py3_platsitedir}/Bio
%{py3_platsitedir}/*.egg-info
%doc CONTRIB* DEPRECATED* LICENSE.rst NEWS* README*

#----------------------------------------------------------------------

%package	-n python3-biopython-tools
Summary:	Regression testing code and miscellaneous standalone scripts
Group:		Sciences/Biology
Requires:	python3-biopython = %{EVRD}
Recommends:	python3-tkinter

%description -n python3-biopython-tools
This package provides various scripts and tests that are comprised by the
Biopython Project.

%files -n python3-biopython-tools
%{_datadir}/python3-biopython-%{version}/Tests
%{_datadir}/python3-biopython-%{version}/Scripts

#----------------------------------------------------------------------

%package	-n python3-biopython-sql
Summary:	Code for using Biopython with BioSQL databases
Group:		Development/Python
Requires:	python3-biopython = %{EVRD}
Requires:	python3-psycopg2

%description -n python3-biopython-sql
BioSQL is meant to be a common data storage layer supported by all the
different Bio* projects, Bioperl, Biojava, Biopython, and Bioruby.
Entries stored through an application written in, say, Bioperl could
be retrieved by another written in Biojava.

%files -n python3-biopython-sql
%{py3_platsitedir}/BioSQL
%doc LICENSE.rst

#----------------------------------------------------------------------

%package	doc
Summary:	The Biopython Project documentation
Group:		Development/Python
Requires:	python3-biopython = %{EVRD}
Provides:	biopython-doc = %{EVRD}
Obsoletes:	biopython-doc < 179

%description doc
This package provides the documentation for the various components of the 
Biopython Project.

%files doc
%doc Doc/*.rst Doc/examples/

#----------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{oname}-%{version}

# remove Mac-related files
rm -f Tests/CodonUsage/.DS_Store
# remove CVS dirs
find -type d -name CVS | xargs rm -rf 
cp -a . %{py3dir}

%build
python3 setup.py build_ext -lm build

%install
%py3_install
mkdir -p %{buildroot}/%{_datadir}/python3-biopython-%{version} 
cp -r Tests Scripts %{buildroot}/%{_datadir}/python3-biopython-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6883 |21cr|python-bitarray-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	bitarray

Name:		python-%{oname}
Version:	2.6.0
Release:	1
Summary:	Efficient arrays of booleans -- C extension
Source0:	https://files.pythonhosted.org/packages/80/b8/e81dda81f027e559728f6ee9bea7ec5e1fbf77120afbee4c440d3902d0a8/bitarray-2.6.0.tar.gz
License:	PSF
Group:		Development/Python
Url:		https://github.com/ilanschnell/bitarray
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)

%description
======================================
bitarray: efficient arrays of booleans
======================================

This module provides an object type which efficiently represents an array
of booleans.  Bitarrays are sequence types and behave very much like usual
lists.  Eight bits are represented by one byte in a contiguous block of
memory.  The user can select between two representations; little-endian
and big-endian.  All of the functionality is implemented in C.
Methods for accessing the machine representation are provided.
This can be useful when bit level access to binary files is required,
such as portable bitmap image files (.pbm).  Also, when dealing with
compressed data which uses variable bit length encoding, you may find
this module useful.

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%{py3_platsitedir}/bitarray*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6884 |21cr|python-bitstring-3.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname bitstring

Name:           python-%{srcname}
Version:        3.1.9
Release:        1
Summary:        Simple construction, analysis and modification of binary data
Group:          Development/Python
License:        MIT
URL:            https://github.com/scott-griffiths/bitstring
Source0:        https://github.com/scott-griffiths/bitstring/archive/%{srcname}-%{version}/%{srcname}-%{srcname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  dos2unix

%define _description %{expand:
bitstring is a pure Python module designed to help make the creation and
analysis of binary data as simple and natural as possible.

Bitstrings can be constructed from integers (big and little endian), hex,
octal, binary, strings or files. They can be sliced, joined, reversed,
inserted into, overwritten, etc. with simple functions or slice notation.
They can also be read from, searched and replaced, and navigated in, similar
to a file or stream.}

%description
%_description

#---------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-nose

%description -n python3-%{srcname}
%_description
Python 3 version.

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst release_notes.txt
%{python3_sitelib}/%{srcname}.py
%{python3_sitelib}/__pycache__/%{srcname}.cpython-3*.pyc
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{srcname}-%{version}

dos2unix README.rst release_notes.txt
sed -i '1{s|^#!/usr/bin/env python||}' %{srcname}.py

%build
%py3_build

%install
%py3_install

%check
%{__python3} -m nose -w test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6885 |21cr|python-black-22.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name black

Name:           python-black
Version:        22.12.0
Release:        1
Summary:        The uncompromising code formatter
Group:          Development/Python
License:        MIT
URL:            https://github.com/psf/black
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# test requirements (upstream mixed with coverage, we hand-pick what we need only):
BuildRequires:  python3-pytest

%global _description %{expand:
Black is the uncompromising Python code formatter. By using it, you agree to
cease control over minutiae of hand-formatting. In return, Black gives you
speed, determinism, and freedom from pycodestyle nagging about formatting.
You will save time and mental energy for more important matters.}

%description %_description

#-----------------------------------------------------
%package -n python3-black
Summary:        %{summary}
Group:          Development/Python

%description -n python3-black %_description

%files -n python3-black -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_bindir}/black
%{_bindir}/black-%{python3_version}
%{_bindir}/blackd
%{_bindir}/blackd-%{python3_version}

#-----------------------------------------------------

%prep
%autosetup -n black-%{version} -p1


%generate_buildrequires
%global extras_without_d colorama,uvloop,jupyter}
%pyproject_buildrequires -rx d,%{extras_without_d}


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files 'black*' '_black*' blib2to3

for exe in black blackd; do
  ln -sr %{buildroot}%{_bindir}/${exe}{,-%{python3_version}}
done


%check
export PIP_INDEX_URL=http://host.invalid./
export PIP_NO_DEPS=yes
%pytest -rs --run-optional no_jupyter

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6886 |21cr|python-blessed-1.18.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	blessed

Summary: 	A thin, practical wrapper around terminal
Name: 	 	python-%{module}
Version: 	1.18.1
Release: 	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/jquast/blessed
Source0:	https://github.com/jquast/blessed/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz

BuildArch:	noarch

%description
A thin, practical wrapper around terminal styling, 
screen positioning, and keyboard input.

#------------------------------------------------------------------
%package -n python3-%{module}

Summary:	A thin, practical wrapper around terminal
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(wcwidth)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
A thin, practical wrapper around terminal styling, 
screen positioning, and keyboard input.
This is python3 module.

%files -n python3-%{module}
%doc *.txt docs/
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py*.*.egg-info
#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6887 |21cr|python-blinker-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	blinker

Name:		python-%{oname}
Version:	1.4
Release:	1
Summary:	Fast, simple object-to-object and broadcast signaling
Source0:	http://pypi.python.org/packages/source/b/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT License
Group:		Development/Python
Url:		http://pythonhosted.org/blinker/
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description


# Blinker

Blinker provides a fast dispatching system that allows any number of
interested parties to subscribe to events, or "signals".

Signal receivers can subscribe to specific senders or receive signals
sent by any sender.

    >>> from blinker import signal
    >>> started = signal('round-started')
    >>> def each(round):
    ...     print "Round %s!" % round
    ...
    >>> started.connect(each)
    
    >>> def round_two(round):
    ...     print "This is round two."
    ...
    >>> started.connect(round_two, sender=2)
  
    >>> for round in range(1, 4):
    ...     started.send(round)
    ...
    Round 1!
    Round 2!
    This is round two.
    Round 3!


## Requirements

Blinker requires Python 2.4 or higher
, Python 3.0 or higher, or Jython 2.5 or higher.

## Changelog Summary

1.3 (July 3, 2013)

 - The global signal stash behind blinker.signal() is now backed by a
   regular name-to-Signal dictionary. Previously, weak references were
   held in the mapping and ephemeral usage in code like
   ``signal('foo').connect(...)`` could have surprising program behavior
   depending on import order of modules.
 - blinker.Namespace is now built on a regular dict. Use
   blinker.WeakNamespace for the older, weak-referencing behavior.
 - Signal.connect('text-sender') uses an alternate hashing strategy to
   avoid sharp edges in text identity.

1.2 (October 26, 2011)

 - Added Signal.receiver_connected and Signal.receiver_disconnected
   per-Signal signals.
 - Deprecated the global 'receiver_connected' signal.
 - Verified Python 3.2 support (no changes needed!)

1.1 (July 21, 2010)

 - Added ``@signal.connect_via(sender)`` decorator
 - Added ``signal.connected_to`` shorthand name for the
   ``temporarily_connected_to`` context manager.

1.0 (March 28, 2010)

 - Python 3.x compatibility

0.9 (February 26, 2010)

 - Sphinx docs, project website
 - Added ``with a_signal.temporarily_connected_to(receiver): ...`` support

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc AUTHORS
%doc CHANGES
%doc LICENSE
%doc README.md
%doc docs/html/genindex.html
%doc docs/html/index.html
%doc docs/html/search.html
%doc docs/html/_sources/index.txt
%doc docs/text/index.txt
%{py_puresitedir}/blinker/*.py*
%{py_puresitedir}/blinker*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6888 |21cr|python-blist-1.3.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name blist

Name:           python-blist
Version:        1.3.6
Release:        3
Group:          Development/Python
Summary:        A list-like type with better asymptotic performance and similar performance on small lists
License:        BSD
URL:            http://pypi.python.org/pypi/blist/
Source0:        https://pypi.python.org/packages/source/b/blist/blist-%{version}.tar.gz
Patch1:		py3.7.patch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
The blist is a drop-in replacement for the Python list the
provides better performance when modifying large lists.

The blist package also provides sortedlist, sortedset,
weaksortedlist, weaksortedset, sorteddict, and btuple
types.

%package -n     python3-%{pypi_name}
Summary:        A list-like type with better asymptotic performance and similar performance on small lists

%description -n python3-%{pypi_name}
The blist is a drop-in replacement for the Python list the
provides better performance when modifying large lists.

The blist package also provides sortedlist, sortedset,
weaksortedlist, weaksortedset, sorteddict, and btuple
types.

%prep
%setup -q -n %{pypi_name}-%{version}
%autopatch -p1

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{py3_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6889 |21cr|python-blosc-1.10.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define	pypi_name	blosc

Summary:	Blosc data compressor
Name:		python-%{pypi_name}
Version:	1.10.6
Release:	1
Source0:	%{pypi_source}
Source1:        https://raw.githubusercontent.com/Blosc/python-blosc/f3c5e341a2504a03c225f4f1d9066ccdf4bd31dd/setup.py
License:	BSD
Group:		Development/Python
Url:		http://pypi.io/pypi/blosc/
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	blosc-devel

%description
Blosc is a high performance compressor optimized for binary data.

#----------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Blosc data compressor
Group:		Development/Python

%description -n python3-%{pypi_name}
Blosc is a high performance compressor optimized for binary data.

%files -n python3-%{pypi_name}
%doc LICENSES/BLOSC.txt README*
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-*.egg-info

#----------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

# Remove bundled copy
rm cpuinfo.py

# Overwrite setup.py with the last version that does not use skbuild and cmake
cp %{SOURCE1} .

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6890 |21cr|python-bluepy-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	bluepy

Summary:	Python interface to Bluetooth LE on Linux
Summary(ru_RU.UTF-8):	Bluetooth-интерфейс на Python для Linux
Name:		python-%{pypi_name}
Version:	1.3.0
Release:	1
License:	GNU Public License
Group:		Development/Python
Url:		https://github.com/IanHarvey/%{pypi_name}
Source0:	https://github.com/IanHarvey/%{pypi_name}/archive/refs/tags/v/%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pytest
BuildRequires:	python3-mock
BuildRequires:	python3-setuptools
BuildRequires:  pkgconfig(glib-2.0)

%define _description \
A project to provide an API to allow access to Bluetooth Low Energy devices from Python

%define _description_ru \
API для получения доступа к устройствам низкого энергопотребления \
по Bluetooth с помощью Python

%description
%{_description}

%description -l ru_RU.UTF-8
%{_description_ru}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%description -l ru_RU.UTF-8 -n python3-%{pypi_name}
%{_description_ru}

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
%{_bindir}/*
#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-v-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6891 |21cr|python-boto3-1.14.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module boto3

Summary:	A simple lightweight interface to Amazon Web Services
Name:		python-%{module}
Version:	1.14.30
Release:	1
License:	MIT
Group:		Development/Python
URL:		https://github.com/%{module}/%{module}/
Source:		https://pypi.io/packages/source/b/boto3/boto3-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python3) 
BuildRequires:	python3egg(setuptools)

%description
Boto is a Python package that provides interfaces to Amazon Web Services.
It supports S3 (Simple Storage Service), SQS (Simple Queue Service) via
the REST API's provided by those services and EC2 (Elastic Compute Cloud)
via the Query API. The goal of boto is to provide a very simple, easy to
use, lightweight wrapper around the Amazon services.

#----------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	A simple lightweight interface to Amazon Web Services
Group:		Development/Python

%description -n python3-%{module}
Boto is a Python package that provides interfaces to Amazon Web Services.
It supports S3 (Simple Storage Service), SQS (Simple Queue Service) via
the REST API's provided by those services and EC2 (Elastic Compute Cloud)
via the Query API. The goal of boto is to provide a very simple, easy to
use, lightweight wrapper around the Amazon services.

%files -n python3-%{module}
%{python3_sitelib}/%{module}*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
rm -r %{module}.egg-info

%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6892 |21cr|python-botocore-1.17.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		upstream_name botocore

Name:		python-%{upstream_name}
Version:	1.17.30
Release:	1
Summary:	The low-level, core functionality of boto 3
Group:		Development/Python
License:	Apache License
URL:		https://github.com/boto/botocore
Source:		https://github.com/boto/botocore/archive/%{version}/botocore-%{version}.tar.gz
Patch0:		botocore-docutils.patch
BuildArch:	noarch

%description
A low-level interface to a growing number of Amazon Web Services. The botocore
package is the foundation for the AWS CLI as well as boto3.

#--------------------------------------------------------------------------------------

%package -n python3-%{upstream_name}
License:	Apache License
Summary:	The low-level, core functionality of boto 3
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{upstream_name}
A low-level interface to a growing number of Amazon Web Services. The botocore
package is the foundation for the AWS CLI as well as boto3.

%files -n python3-%{upstream_name}
%{python3_sitelib}/*

#--------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6893 |21cr|python-bottle-0.12.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bottle

Name:           python-%{oname}
Version:	0.12.23
Release:	1
Summary:        Fast and simple WSGI-framework for small web-applications
Group:          Development/Python
License:        MIT
URL:            http://bottlepy.org
Source0:	https://files.pythonhosted.org/packages/7c/58/75f3765b0a3f86ef0b6e0b23d0503920936752ca6e0fc27efce7403b01bd/bottle-0.12.23.tar.gz
# py3
BuildRequires:  python3-devel
BuildRequires:  python3-distribute

BuildArch:      noarch

%description
Bottle is a fast and simple micro-framework for small web-applications. 
It offers request dispatching (Routes) with URL parameter support, Templates, 
a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and 
template engines. All in a single file and with no dependencies other than the 
Python Standard Library.

#####################################
# python3
%package -n python3-%{oname}
Summary:        Fast and simple WSGI-framework for small web-applications

Group:          Development/Python

%description -n python3-%{oname}
Bottle is a fast and simple micro-framework for small web-applications. 
It offers request dispatching (Routes) with URL parameter support, Templates, 
a built-in HTTP Server and adapters for many third party WSGI/HTTP-server and 
template engines. All in a single file and with no dependencies other than the 
Python Standard Library.

%files -n python3-%{oname}
%{py3_puresitedir}/*

#####################################
%prep
%setup -q -n %{oname}-%{version}
sed -i '/^#!/d' bottle.py

find . -name '*.py' | xargs sed -i '1s|^#!python|#!python3|'

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}
rm %{buildroot}%{_bindir}/bottle.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6894 |21cr|python-bottleneck-1.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name bottleneck

Name:           python-%{pypi_name}
Version:        1.3.5
Release:        1
Summary:        Fast NumPy array functions written in C
Group:          Development/Python
License:        BSD
URL:            https://github.com/kwgoodman/bottleneck
Source0:        https://pypi.io/packages/source/B/Bottleneck/Bottleneck-%{version}.tar.gz

%description
Bottleneck is a collection of fast NumPy array functions written in C.

#--------------------------------------------------------
%package -n     python3-%{pypi_name}

Summary:        Fast NumPy array functions written in C
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(scipy)

Provides:       python-%{pypi_name} = %{EVRD}

%description -n python3-%{pypi_name}
Bottleneck is a collection of fast NumPy array functions written in C.

%files -n python3-%{pypi_name}
%doc LICENSE *.rst LICENSES
%{py3_platsitedir}/bottleneck
%{py3_platsitedir}/Bottleneck-%{version}-*.egg-info
#--------------------------------------------

%prep
%setup -qn Bottleneck-%{version}
rm -fr *.egg-info
# deprecated
perl -pi -e "s|np.bool_|bool|" bottleneck/slow/*.py

%build
%py3_build

%install
%py3_install

%check
pushd %{buildroot}%{py3_platsitedir}
pytest-3 bottleneck -v
popd

rm -rf %{buildroot}%{py3_platsitedir}/.pytest_cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6895 |21cr|python-browser-cookie3-0.19.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name browser-cookie3

Name:           python-%{pypi_name}
Version:        0.19.1
Release:        1
Summary:        Loads cookies from your browser into a cookiejar object so can download with urllib and other libraries the same content you see in the web browser
Group:          Development/Python
License:        LGPv3
URL:            https://github.com/borisbabic/browser_cookie3
Source0:        %{pypi_source}
Patch0:         browser-cookie3-setup.patch
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
Python3 fork of Richard Penman's Browser Cookie.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Python3 fork of Richard Penman's Browser Cookie.

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc README.md
%{python3_sitelib}/browser_cookie3
%{python3_sitelib}/browser_cookie3-%{version}*-info


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6896 |21cr|python-BTrees-4.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	BTrees

Name:		python-%{pypi_name}
Version:	4.10.1
Release:	1
Summary:	Scalable persistent object containers
Group:		Development/Python
License:	ZPL 2.1
Url:		https://packages.python.org/BTrees
Source0:	https://files.pythonhosted.org/packages/73/18/9161f96071974f016d738fe3a4d37f992a7eac8d717e6041978df29cd533/BTrees-4.10.1.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(persistent)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(transaction)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(wheel)
BuildRequires:	pyproject-rpm-macros
# test
#BuildRequires:	python3egg(tox)
#BuildRequires:	python3egg(pytest)

%description
``BTrees``:  scalable persistent components
===========================================

This package contains a set of persistent object containers built around
a modified BTree data structure.  The trees are optimized for use inside
ZODB's "optimistic concurrency" paradigm, and include explicit resolution
of conflicts detected by that mechannism.

Please see the Sphinx documentation (``docs/index.rst``) for further
information.

#------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Scalable persistent object containers
Group:		Development/Python

%description -n python3-%{pypi_name}
``BTrees``:  scalable persistent components
===========================================

This package contains a set of persistent object containers built around
a modified BTree data structure.  The trees are optimized for use inside
ZODB's "optimistic concurrency" paradigm, and include explicit resolution
of conflicts detected by that mechannism.

Please see the Sphinx documentation (``docs/index.rst``) for further
information.


%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc CHANGES.rst
%doc COPYRIGHT.txt
%license LICENSE.txt

#------------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}
rm -r src/*.egg-info

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%check
# tox test fail unrecognized arguments: --current-env
#%%tox


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6897 |21cr|python-bugzilla-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-bugzilla
Version:	3.2.0
Release:	1
Summary:        Python library for interacting with Bugzilla
Group:          Development/Python
License:        GPLv2+
URL:            https://github.com/python-bugzilla/python-bugzilla
Source0:        https://github.com/python-bugzilla/python-bugzilla/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-requests
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%description
python-bugzilla is a python library for interacting with bugzilla instances
over XMLRPC or REST.

#------------------------------------------------------------------------------

%package -n python3-bugzilla
Summary:        %{summary}
Requires:       python3-requests

%description -n python3-bugzilla
python-bugzilla is a python library for interacting with bugzilla instances
over XMLRPC or REST.

%files -n python3-bugzilla
%license COPYING
%doc README.md NEWS.md
%{python3_sitelib}/*

#------------------------------------------------------------------------------

%package -n bugzilla-cli
Summary:         Command line tool for interacting with Bugzilla
Group:           Networking/WWW
Requires:        python3-bugzilla = %{EVRD}
# compat with Fedora
Provides:        %{name}-cli = %{EVRD}

%description -n bugzilla-cli
This package includes the bugzilla(1) command-line tool
for interacting with bugzilla. Uses the python-bugzilla API.

%files -n bugzilla-cli
%license COPYING
%doc README.md NEWS.md
%{_bindir}/bugzilla
%{_mandir}/man1/bugzilla.1*

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

# Replace '#!/usr/bin/env python' with '#!/usr/bin/python2'
# The format is ideal for upstream, but not a distro. See:
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
%global python_env_path %{__python3}
for f in $(find %{buildroot} -type f -executable -print); do
    sed -i "1 s|^#!/usr/bin/.*|#!%{__python3}|" $f || :
done

%check
pytest-3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6898 |21cr|python-bunch-1.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	bunch

Name:		python-%{pypi_name}
Version:	1.0.1
Release:	4
Summary:	A dot-accessible dictionary (a la JavaScript objects)
Source0:	http://pypi.python.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0:		bunch-python3.11.patch
License:	MIT
Group:		Development/Python
Url:		http://github.com/dsc/bunch
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
Bunch is a dictionary that supports attribute-style access, a la JavaScript.
Bunches happily and transparently serialize to JSON and YAML.
If you have `PyYAML<http://pyyaml.org/wiki/PyYAML>`_ installed,
Bunch attempts to register
itself with the various YAML Representers so that
Bunches can be transparently dumped and loaded.

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A dot-accessible dictionary (a la JavaScript objects)
Group:		Development/Python

%description -n python3-%{pypi_name}
Bunch is a dictionary that supports attribute-style access, a la JavaScript.
Bunches happily and transparently serialize to JSON and YAML.
If you have `PyYAML<http://pyyaml.org/wiki/PyYAML>`_ installed,
Bunch attempts to register
itself with the various YAML Representers so that
Bunches can be transparently dumped and loaded.

%files -n python3-%{pypi_name}
%doc LICENSE.txt
%doc README.rst
%{py3_puresitedir}/bunch/__pycache__
%{py3_puresitedir}/bunch/*.py*
%{py3_puresitedir}/bunch*.egg-info

#----------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6899 |21cr|python-bytecode-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module bytecode

Name:           python-%{module}
Version:        0.13.0
Release:        1
Summary:        Python module to generate and modify %{module}
License:        MIT
Group:          Development/Python
Url:            https://github.com/vstinner/%{module}
Source:         https://files.pythonhosted.org/packages/source/b/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)

BuildArch:      noarch

%description
Python module to generate and modify %{module}.

#-------------------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}

BuildRequires:  python3egg(aenum)
BuildRequires:  python3egg(pytest)
Requires:       python3egg(aenum)

%description -n python3-%{module}
Python module to generate and modify %{module}.

%files -n python3-%{module}
%doc README.rst COPYING
%{py3_puresitedir}/*.egg-info
%{py3_puresitedir}/%{module}/
#-------------------------------------------------------------------


%prep
%setup -qn %{module}-%{version}
# remove use of /usr/bin/env in tests
sed -i -e 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/g' %{module}/tests/*.py

# wrong-file-end-of-line-encoding
perl -i -pe 's/\r\n/\n/gs' {README.rst,COPYING}

# bundled
rm -fr %{module}.egg-info


%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6900 |21cr|python-cached-property-1.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	cached-property

Name:		python-%{oname}
Version:	1.4.3
Release:	1
Summary:	A decorator for caching properties in classes
Source0:	http://pypi.python.org/packages/source/c/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/pydanny/cached-property
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
===============================
cached-property
===============================

.. image:: https://img.shields.io/pypi/v/cached-property.svg
    :target: https://pypi.python.org/pypi/cached-property

.. image:: https://img.shields.io/travis/pydanny/cached-property/master.svg
    :target: https://travis-ci.org/pydanny/cached-property
        
.. image:: https://img.shields.io/badge/code%20style-black-000000.svg
    :target: https://github.com/ambv/black
    :alt: Code style: black        


A decorator for caching properties in classes.

Why?
-----

* Makes caching of time or computational expensive properties quick and easy.
* Because I got tired of copy/pasting this code
  from non-web project to non-web project.
* I needed something really simple that worked in Python 2 and 3.

How to use it
--------------

Let's define a class with an expensive property. Every time you stay there the
price goes up by $50!

.. code-block:: python

    class Monopoly(object):

        def __init__(self):
            self.boardwalk_price = 500

        @property
        def boardwalk(self):
            # In reality, this might represent a database call or time
            # intensive task like calling a third-party API.
            self.boardwalk_price += 50
            return self.boardwalk_price

Now run it:

.. code-block:: python

    >>> monopoly = Monopoly()
    >>> monopoly.boardwalk
    550
    >>> monopoly.boardwalk
    600

Let's convert the boardwalk property into a ``cached_property``.

.. code-block:: python

    from cached_property import cached_property

    class Monopoly(object):

        def __init__(self):
            self.boardwalk_price = 500

        @cached_property
        def boardwalk(self):
            # Again, this is a silly example. Don't worry about it, this is
            #   just an example for clarity.
            self.boardwalk_price += 50
            return self.boardwalk_price

Now when we run it the price stays at $550.

.. code-block:: python

    >>> monopoly = Monopoly()
    >>> monopoly.boardwalk
    550
    >>> monopoly.boardwalk
    550
    >>> monopoly.boardwalk
    550

Why doesn't the value of ``monopoly.boardwalk`` change?
Because it's a **cached property**!

Invalidating the Cache
----------------------

Results of cached functions can be invalidated by outside forces.
Let's demonstrate how to force the cache to invalidate:

.. code-block:: python

    >>> monopoly = Monopoly()
    >>> monopoly.boardwalk
    550
    >>> monopoly.boardwalk
    550
    >>> # invalidate the cache
    >>> del monopoly.__dict__['boardwalk']
    >>> # request the boardwalk property again
    >>> monopoly.boardwalk
    600
    >>> monopoly.boardwalk
    600

Working with Threads
---------------------

What if a whole bunch of people want to stay at Boardwalk all at once?
This means using threads, which unfortunately causes problems with
the standard ``cached_property``. In this case, switch to using the
``threaded_cached_property``:

.. code-block:: python

    from cached_property import threaded_cached_property

    class Monopoly(object):

        def __init__(self):
            self.boardwalk_price = 500

        @threaded_cached_property
        def boardwalk(self):
            """threaded_cached_property is really nice for when no one waits
                for other people to finish their turn and rudely start rolling
                dice and moving their pieces."""

            sleep(1)
            self.boardwalk_price += 50
            return self.boardwalk_price

Now use it:

.. code-block:: python

    >>> from threading import Thread
    >>> from monopoly import Monopoly
    >>> monopoly = Monopoly()
    >>> threads = []
    >>> for x in range(10):
    >>>     thread = Thread(target=lambda: monopoly.boardwalk)
    >>>     thread.start()
    >>>     threads.append(thread)

    >>> for thread in threads:
    >>>     thread.join()

    >>> self.assertEqual(m.boardwalk, 550)


Working with async/await (Python 3.5+)
--------------------------------------

The cached property can be async, in which case you have to use await
as usual to get the value. Because of the caching, the value is only
computed once and then cached:

.. code-block:: python

    from cached_property import cached_property

    class Monopoly(object):

        def __init__(self):
            self.boardwalk_price = 500

        @cached_property
        async def boardwalk(self):
            self.boardwalk_price += 50
            return self.boardwalk_price

Now use it:

.. code-block:: python

    >>> async def print_boardwalk():
    ...     monopoly = Monopoly()
    ...     print(await monopoly.boardwalk)
    ...     print(await monopoly.boardwalk)
    ...     print(await monopoly.boardwalk)
    >>> import asyncio
    >>> asyncio.get_event_loop().run_until_complete(print_boardwalk())
    550
    550
    550

Note that this does not work with threading either, most asyncio
objects are not thread-safe. And if you run separate event loops in
each thread, the cached version will most likely have the wrong event
loop. To summarize, either use cooperative multitasking (event loop)
or threading, but not both at the same time.


Timing out the cache
--------------------

Sometimes you want the price of things to reset after a time. Use the ``ttl``
versions of ``cached_property`` and ``threaded_cached_property``.

.. code-block:: python

    import random
    from cached_property import cached_property_with_ttl

    class Monopoly(object):

        @cached_property_with_ttl(ttl=5) # cache invalidates after 5 seconds
        def dice(self):
            # I dare the reader to implement a game using this method of 'rolling dice'.
            return random.randint(2,12)

Now use it:

.. code-block:: python

    >>> monopoly = Monopoly()
    >>> monopoly.dice
    10
    >>> monopoly.dice
    10
    >>> from time import sleep
    >>> sleep(6) # Sleeps long enough to expire the cache
    >>> monopoly.dice
    3
    >>> monopoly.dice
    3

**Note:** The ``ttl`` tools do not reliably allow the clearing of the cache.
This is why they are broken out into seperate tools.
See https://github.com/pydanny/cached-property/issues/16.

Credits
--------

* Pip, Django, Werkzueg, Bottle, Pyramid, and Zope
  for having their own implementations.
  This package originally used an implementation
  that matched the Bottle version.
* Reinout Van Rees for pointing out the `cached_property` decorator to me.
* My awesome wife `@audreyr`_ who created `cookiecutter`_,
  which meant rolling this out took me just 15 minutes.
* @tinche for pointing out the threading issue and providing a solution.
* @bcho for providing the time-to-expire feature

.. _`@audreyr`: https://github.com/audreyr
.. _`cookiecutter`: https://github.com/audreyr/cookiecutter

Support This Project
---------------------------

This project is maintained by volunteers.
Support their efforts by spreading the word about:

.. image:: https://cdn.shopify.com/
	   s/files/1/0304/6901/t/2/assets/logo.png?8399580890922549623
   :name: Two Scoops Press
   :align: center
   :alt: Two Scoops Press
   :target: https://www.twoscoopspress.com




History
-------

1.4.3 (2018-06-14)
++++++++++++++++++

* Catch `SyntaxError` from asyncio import on older
  versions of Python, thanks to @asottile

1.4.2 (2018-04-08)
++++++++++++++++++

* Really fixed tests, thanks to @pydanny

1.4.1 (2018-04-08)
++++++++++++++++++

* Added conftest.py to manifest so tests work
  properly off the tarball,thanks to @dotlambda
* Ensured new asyncio tests didn't break Python 2.7
  builds on Debian, thanks to @pydanny
* Code formatting via black, thanks to @pydanny and @ambv


1.4.0 (2018-02-25)
++++++++++++++++++

* Added asyncio support, thanks to @vbraun
* Remove Python 2.6 support, whose end of
  life was 5 years ago, thanks to @pydanny


1.3.1 (2017-09-21)
++++++++++++++++++

* Validate for Python 3.6


1.3.0 (2015-11-24)
++++++++++++++++++

* Drop some non-ASCII characters from HISTORY.rst, thanks to @AdamWill
* Added official support for Python 3.5, thanks to @pydanny and @audreyr
* Removed confusingly placed lock from example, thanks to @ionelmc
* Corrected invalidation cache documentation, thanks to @proofit404
* Updated to latest Travis-CI environment, thanks to @audreyr

1.2.0 (2015-04-28)
++++++++++++++++++

* Overall code and test refactoring, thanks to @gsakkis
* Allow the del statement for resetting cached properties with
  ttl instead of del obj._cache[attr], thanks to @gsakkis.
* Uncovered a bug in PyPy,
  https://bitbucket.org/pypy/pypy/issue/2033/
  attributeerror-object-attribute-is-read,
  thanks to @gsakkis
* Fixed threaded_cached_property_with_ttl to
  actually be thread-safe, thanks to @gsakkis

1.1.0 (2015-04-04)
++++++++++++++++++

* Regression: As the cache was not always clearing, we've broken
  out the time to expire feature to its own set of specific tools,
  thanks to @pydanny
* Fixed typo in README, thanks to @zoidbergwill

1.0.0 (2015-02-13)
++++++++++++++++++

* Added timed to expire feature to ``cached_property`` decorator.
* **Backwards incompatiblity**: Changed ``del monopoly.boardwalk``
  to ``del monopoly['boardwalk']`` in order to support the new TTL feature.

0.1.5 (2014-05-20)
++++++++++++++++++

* Added threading support with new ``threaded_cached_property`` decorator
* Documented cache invalidation
* Updated credits
* Sourced the bottle implementation

0.1.4 (2014-05-17)
++++++++++++++++++

* Fix the dang-blarged py_modules argument.

0.1.3 (2014-05-17)
++++++++++++++++++

* Removed import of package into ``setup.py``

0.1.2 (2014-05-17)
++++++++++++++++++

* Documentation fixes. Not opening up a RTFD instance for this
  because it's so simple to use.

0.1.1 (2014-05-17)
++++++++++++++++++

* setup.py fix. Whoops!

0.1.0 (2014-05-17)
++++++++++++++++++

* First release on PyPI.

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc AUTHORS.rst
%doc HISTORY.rst
%doc LICENSE
%doc README.rst
%{py_puresitedir}/cached_property.py*
%{py_puresitedir}/cached_property*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6901 |21cr|python-cachelib-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cachelib

Name:           python-%{pypi_name}
Version:        0.9.0
Release:        1
Summary:        A collection of cache libraries with a common API
Group:          Development/Python
License:        BSD
URL:            https://pypi.org/project/cachelib/
Source0:        %{pypi_source}

BuildArch:      noarch

%global _description %{expand:
A collection of cache libraries with a common API.

Extracted from Werkzeug.}

%description %{_description}
#-----------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  memcached
BuildRequires:  redis
BuildRequires:  python3-devel
BuildRequires:  python3-pylibmc
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-xprocess
BuildRequires:  python3-redis
BuildRequires:  python3dist(setuptools)
BuildRequires:  pyproject-rpm-macros

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc CHANGES.rst
%doc README.rst

#-----------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files cachelib


%check
# uWSGI is not packaged for Fedora so skip tests for that backend.
# on abf build test failed, local build test - OK
#%%pytest -v -r s -k 'not Uwsgi'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6902 |21cr|python-cachetools-4.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name cachetools

Name:           python-cachetools
Version:        4.0.0
Release:        2
Group:          Development/Python
Summary:        Extensible memoizing collections and decorators

License:        MIT
URL:            https://github.com/tkem/cachetools
Source0:        https://pypi.io/packages/source/c/cachetools/cachetools-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)


%description
This module provides various memoizing collections and decorators,
including a variant of the Python 3 Standard Library `@lru_cache`_
function decorator.

%package -n     python3-%{pypi_name}
Summary:        Extensible memoizing collections and decorators
Group:          Development/Python

%description -n python3-%{pypi_name}
This module provides various memoizing collections and decorators,
including a variant of the Python 3 Standard Library `@lru_cache`_
function decorator.


%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc README.rst
%doc LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6903 |21cr|python-cairosvg-1.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cairosvg
%global pypi_oname CairoSVG

Name:           python-%{pypi_name}
Version:        1.0.1
Release:        5
Group:          Development/Python
Summary:        A Simple SVG Converter for Cairo
License:        MIT
URL:            http://pypi.python.org/pypi/%{pypi_name}
Source0:        http://pypi.python.org/packages/source/c/%{pypi_oname}/%{pypi_oname}-%{version}.tar.gz
BuildArch:      noarch

%description
A Simple SVG Converter for Cairo

%package -n %{pypi_name}
Summary:        A Simple SVG Converter for Cairo
Group:          Development/Python

%description -n %{pypi_name}
A Simple SVG Converter for Cairo

%package -n python3-%{pypi_name}
Summary:        A Simple SVG Converter for Cairo
Group:          Development/Python

Requires:       %{pypi_name}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
A Simple SVG Converter for Cairo

%prep
%setup -q -n %{pypi_oname}-%{version}


%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --skip-build --root %{buildroot}

%files -n %{pypi_name}
%_bindir/cairosvg

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}*
%{python3_sitelib}/%{pypi_oname}-%version-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6904 |21cr|python-caja-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Python bindings for MATE's caja
Name:		python-caja
Version:	1.26.0
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Development/Python
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:  autoconf-archive
BuildRequires:	gtk-doc
BuildRequires:	mate-common
BuildRequires:	pkgconfig(libcaja-extension)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)

%description
These are bindings for the caja extension library introduced in MATE.

%package -n python3-caja
Summary:	Python bindings for MATE's caja
Obsoletes:      python-caja < 1.22.0-2

%description -n python3-caja
These are bindings for the caja extension library introduced in MATE.

%files -n python3-caja -f %{name}.lang
%doc AUTHORS ChangeLog NEWS
%{_libdir}/caja/extensions-2.0/*
%{_datadir}/caja/extensions/*

#----------------------------------------------------------------------------

%package -n python3-caja-devel
Summary:	Pkgconfig file and examples for %{name}
Group:		Development/Python
Requires:	python3-caja = %{EVRD}

%description -n python3-caja-devel
Pkgconfig file for %{name}.

%files -n python3-caja-devel
%doc AUTHORS ChangeLog NEWS
%{_libdir}/pkgconfig/caja-python.pc
%{_docdir}/python-caja

#----------------------------------------------------------------------------

%prep
%setup -q

%build
NOCONFIGURE=1 ./autogen.sh
%configure

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6905 |21cr|python-card-0.8.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: python-card
Summary: PythonCard GUI construction toolkit
Version: 0.8.2
Release: 4
Source0: https://sourceforge.net/projects/pythoncard/files/PythonCard/0.8.2/PythonCard-%{version}.tar.gz
Patch1: PythonCardSamples.patch
Patch2: PythonCardConfig.patch
URL: http://pythoncard.sourceforge.net/
Group: Development/Python
License: Python license
Requires: python2-base >= %{py2_ver}, wxPython >= 2.5.2
BuildArch: noarch
BuildRequires: python2-devel 

%description
PythonCard is a GUI construction kit for building cross-platform desktop
applications on Windows, Mac OS X, and Linux, using the Python language.

%package -n python2-card
Summary: PythonCard GUI construction toolkit

%description -n python2-card
PythonCard is a GUI construction kit for building cross-platform desktop
applications on Windows, Mac OS X, and Linux, using the Python language.


%prep
%setup -n PythonCard-%{version} -q
%patch1 -p1
%patch2 -p1

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}
chmod 0755 %{buildroot}%{py2_puresitedir}/PythonCard/gadflyDatabase.py
chmod 0755 %{buildroot}%{py2_puresitedir}/PythonCard/templates/htmlpreview.py
chmod 0755 %{buildroot}%{py2_puresitedir}/PythonCard/build/lib/PythonCard/flatfileDatabase.py
chmod 0755 %{buildroot}%{py2_puresitedir}/PythonCard/build/lib/PythonCard/gadflyDatabase.py
chmod 0755 %{buildroot}%{py2_puresitedir}/PythonCard/build/lib/PythonCard/templates/htmlpreview.py

install -m 0755 -d %{buildroot}%{_datadir}/PythonCard/samples
install -m 0755 -d %{buildroot}%{_datadir}/PythonCard/tools

cp -pr %{buildroot}%{py2_puresitedir}/PythonCard/samples %{buildroot}%{_datadir}/PythonCard
cp -pr %{buildroot}%{py2_puresitedir}/PythonCard/tools %{buildroot}%{_datadir}/PythonCard

# Mark all *py files in tools/ and samples/ that starts with shebang executable
find %{buildroot}%{_datadir}/PythonCard/samples/ \
     %{buildroot}%{_datadir}/PythonCard/tools/ \
     -name "*.py" | while read f
do
    file_start=`head -1 "$f"`
    if [[ $file_start == "#!/usr/bin/python" ]]
    then
	chmod 0755 $f
    fi
done

rm -rf %{buildroot}%{py2_puresitedir}/PythonCard/samples
rm -rf %{buildroot}%{py2_puresitedir}/PythonCard/tools
rm -rf %{buildroot}%{py2_puresitedir}/PythonCard/docs
rm -f %{buildroot}/usr/bin/install-pythoncard.py
rm -f %{buildroot}%{py2_puresitedir}/PythonCard/build/scripts-2.4/install-pythoncard.py

# menu support

# XDG menus
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-resourceEditor.desktop << EOXDG1
[Desktop Entry]
Name=PythonCard Resource Editor
Comment=This represents the beginnings of a GUI resource (layout) editor for PythonCard
Exec=%{_datadir}/PythonCard/tools/resourceEditor/resourceEditor.py
Icon=development_environment_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Development-DevelopmentEnvironments;Development;GUIDesigner;
EOXDG1

cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-codeEditor.desktop << EOXDG2
[Desktop Entry]
Name=PythonCard Code Editor
Comment=The codeEditor sample in PythonCard is focused on being a simple to use Python source code editor
Exec=%{_datadir}/PythonCard/tools/codeEditor/codeEditor.py
Icon=editors_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Development-Tools;Development;
EOXDG2

cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}-samples.desktop << EOXDG3
[Desktop Entry]
Name=PythonCard Samples
Comment=The main purpose of the samples is to "stress" the PythonCard framework and make sure that the framework is robust and full-featured
Exec=%{_datadir}/PythonCard/samples/samples.py
Icon=toys_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Development-Tools;Development;
EOXDG3

%files -n python2-card
%defattr(-,root,root,0755)
%doc docs/* README.txt README_StyleEditor.txt PKG-INFO
%{py2_puresitedir}/PythonCard/*
%{py2_puresitedir}/*.egg-info
%{_datadir}/PythonCard/samples/*
%{_datadir}/PythonCard/tools/*
%{_datadir}/applications/mandriva-%{name}*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6906 |21cr|python-cartopy-0.21.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         pypi_name          Cartopy
%define         module          cartopy

Name:           python-%{module}
Version:	0.21.0
Release:	1
Summary:        A Python package designed to draw maps
License:        LGPLv3
Group:          Development/Python
Url:            https://pypi.python.org/pypi/Cartopy
Source0:	https://files.pythonhosted.org/packages/40/0c/b673fb89eadf798654652df3dda4b8229ca747568976b7a919d7d65e656e/Cartopy-0.21.0.tar.gz

BuildRequires:  pkgconfig(proj) >= 7.2.0
BuildRequires:  geos-devel


%description
Cartopy is a Python package designed to make drawing maps for data
analysis and visualisation easy. Some of the key features of cartopy are:
* object oriented projection definitions
* point, line, vector, polygon and image transformations between projections
* integration to expose advanced mapping in matplotlib with a simple
  and intuitive interface
* powerful vector data handling by integrating shapefile reading with
  Shapely capabilities.
#---------------------------------------------------------

%package -n python3-%{module}
Summary:        Python3 implementation of Cartopy
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(cython)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3-numpy-devel
BuildRequires:  python3egg(matplotlib)
BuildRequires:  python3egg(pyshp) >= 2.1.0

#test
#BuildRequires:  python3egg(shapely)
#BuildRequires:  python3egg(pytest)
#BuildRequires:  python3egg(pip)
#BuildRequires:  python3egg(wheel)
#BuildRequires:  python3egg(pyproj) >= 3.0.0



%description -n python3-%{module}
Cartopy is a Python 3 package designed to make drawing maps for data
analysis and visualisation easy. Some of the key features of cartopy are:
* object oriented projection definitions
* point, line, vector, polygon and image transformations between projections
* integration to expose advanced mapping in matplotlib with a simple
  and intuitive interface
* powerful vector data handling by integrating shapefile reading with
  Shapely capabilities.

%files -n python3-%{module}
%doc *.md CHANGES COPYING
%{_bindir}/%{module}_feature_download.py
%{python3_sitearch}/%{module}/
%{python3_sitearch}/%{pypi_name}-%{version}-*.egg-info/

#---------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf *.egg-info

%build
export FORCE_CYTHON=1 SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%py3_build

%install
%py3_install

%check
# abf build fail - need network connection
#py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6907 |21cr|python-case-1.5.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name case

# docs depend on package sphinx_celery
# https://github.com/celery/sphinx_celery
%bcond_with docs

Name:           python-%{pypi_name}
Version:        1.5.2
Release:        8
Summary:        Python unittest Utilities
Group:          Development/Python
License:        BSD
URL:            http://github.com/celery/case
Source0:        https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
%{summary}


%package -n     python3-%{pypi_name}
Summary:        Python unittest Utilities
Group:          Development/Python
BuildRequires:  python3-sphinx

Requires:       python3-six
Requires:       python3-setuptools >= 0.7
Requires:       python3-nose >= 1.3.7
Requires:       python3-setuptools

BuildRequires:  python3-devel
BuildRequires:  python3-coverage >= 3.0
BuildRequires:  python3-setuptools
BuildRequires:  python3-unittest2
BuildRequires:  python3-nose
BuildRequires:	python3egg(mock)

%description -n python3-%{pypi_name}
%{summary}

%if %{with docs}
%package -n python-%{pypi_name}-doc
Summary:        case documentation
Group:          Development/Python
%description -n python-%{pypi_name}-doc
Documentation for case
%endif

%prep
%setup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%if %{with docs}
# generate html docs
sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install


%check
%{__python3} setup.py test

%files -n python3-%{pypi_name}
%doc LICENSE
%doc docs/templates/readme.txt README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%if %{with docs}
%files -n python-%{pypi_name}-doc
%doc html
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6908 |21cr|python-casttube-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define module	casttube

Summary:	YouTube chromecast api
Name:		python-%{module}
Version:	0.2.0
Release:	1
License:	MIT
Group:		Development/Python
URL:		https://github.com/ur1katz/casttube
Source0:	https://files.pythonhosted.org/packages/source/c/casttube/%{module}-%{version}.tar.gz
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)

%description
Casttube provides a way to interact with the Youtube Chromecast api.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	YouTube chromecast api
Group:		Development/Python

%description -n python3-%{module}
Casttube provides a way to interact with the Youtube Chromecast api.

%files -n python3-%{module}
%doc README.md
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6909 |21cr|python-casuarius-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	casuarius

Summary:	Cython bindings for the Cassowary constraint solver
Name:		python-%{module}
Version:	1.1
Release:	4
Source0:	http://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
License:	LGPLv2.1
Group:		Development/Python
Url:		https://github.com/enthought/casuarius/
BuildRequires:	python-cython >= 0.15.1
BuildRequires:	python-devel

%description
Casuarius is a Cython wrapper for the Cassowary incremental constraint solver.

%prep
%setup -q -n %{module}-%{version}

%build
%__python setup.py build

%install
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot}

%files
%doc COPYING.LGPL LICENSE README.rst
%py_platsitedir/%{module}*


%changelog
* Mon Aug 13 2012 Lev Givon <lev@mandriva.org> 1.0-1
+ Revision: 814682
- imported package python-casuarius


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6910 |21cr|python-catcher-0.1.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name python-catcher

Name:           python-catcher
Version:        0.1.7
Release:        5
Group:          Development/Python
Summary:        Beautiful stack traces for Python
License:        LGPLv3
Source0:        https://pypi.python.org/packages/source/p/python-catcher/python-catcher-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
Beautiful stack traces for Python

%package -n     python3-catcher
Summary:        Beautiful stack traces for Python

%description -n python3-catcher
Beautiful stack traces for Python


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
2to3 -w -n %{py3dir}

%build
pushd %{py3dir}
python3 setup.py build
popd

%install
pushd %{py3dir}
python3 setup.py install --skip-build --root %{buildroot}
popd

%files -n python3-catcher
%{py3_puresitedir}/catcher
%{py3_puresitedir}/python_catcher-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6911 |21cr|python-cdb-0.34-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A python interface to constant database files (cdb)
Name:		python-cdb
Version:	0.34
Release:	16
License:	GPL
Group:		Development/Python
URL:		http://pilcrow.madison.wi.us/
Source0:	http://pilcrow.madison.wi.us/python-cdb/%{name}-%{version}.tar.gz
BuildRequires:	python-devel >= 2.0
Requires:	python >= 2.0
BuildRoot:	%{_tmppath}/%{name}-buildroot

%description
The python-cdb extension module is an adaptation of D. J.
Bernstein's constant database package (see 
http://cr.yp.to/cdb.html).

cdb files are mappings of keys to values, designed for wickedly
fast lookups and atomic updates.  This module mimics the normal
cdb utilities, cdb(get|dump|make), via convenient, high-level
Python objects.

%prep

%setup -q

%build

CFLAGS="%{optflags}" python setup.py build

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

python setup.py install \
    --root="%{buildroot}" \
    --record="INSTALLED_FILES"

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files -f INSTALLED_FILES
%defattr(-,root,root)
%doc ChangeLog README COPYING Example





%changelog
* Thu Sep 17 2009 Bogdano Arendartchuk <bogdano@mandriva.com> 0.34-13mdv2010.0
+ Revision: 444176
- new version 0.34

* Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 0.32-13mdv2010.0
+ Revision: 442053
- rebuild

* Fri Aug 01 2008 Thierry Vignaud <tv@mandriva.org> 0.32-12mdv2009.0
+ Revision: 259520
- rebuild

* Thu Jul 24 2008 Thierry Vignaud <tv@mandriva.org> 0.32-11mdv2009.0
+ Revision: 247390
- rebuild

* Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 0.32-9mdv2008.1
+ Revision: 136447
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request


* Tue Dec 12 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.32-9mdv2007.0
+ Revision: 96021
- Rebuild for new python
- Rebuild for new python
- import python-cdb-0.32-7mdk

* Sun Jan 08 2006 Oden Eriksson <oeriksson@mandriva.com> 0.32-7mdk
- rebuild

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.32-6mdk
- Rebuild for new python

* Sat Oct 16 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 0.32-5mdk
- rpmbuildupdated


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6912 |21cr|python-CDDB-1.4-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname CDDB
%define pyversion 2.4
%define pysystemver 2.4

Summary: Python CDDB module
Name: python-%{oname}
Version: 1.4
Release: 18
Source0: %{oname}-%version.tar.bz2
License: GPL
Group: Development/Python
URL: http://cddb-py.sourceforge.net
BuildRequires: python2-devel
Requires: python2

%description
The dynamic duo of CDDB.py and DiscID.py, along with their side-kick C
module cdrommodule.so, provide an easy way for Python programs to
fetch information on audio CDs from CDDB (http://www.cddb.com/) -- a
very large online database of track listings and other information on
audio CDs.  UNIX platforms and Windows are both supported.


%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary: Python CDDB module

%description -n python2-%{oname}
The dynamic duo of CDDB.py and DiscID.py, along with their side-kick C
module cdrommodule.so, provide an easy way for Python programs to
fetch information on audio CDs from CDDB (http://www.cddb.com/) -- a
very large online database of track listings and other information on
audio CDs.  UNIX platforms and Windows are both supported.



%prep
%setup -q -n %oname-%version

%build
python2 setup.py build

%install
python2 setup.py install --root %buildroot

%files -n python2-%{oname}
%doc CHANGES COPYING README
%py2_platsitedir/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6913 |21cr|python-celery-5.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name celery

Name:           python-%{pypi_name}
Version:        5.2.7
Release:        1
Summary:        Distributed Task Queue
Group:          Development/Python
License:        BSD
URL:            http://%{pypi_name}project.org
Source0:        %{pypi_source}
Patch0:         celery-billiard4.0.2.patch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(click)
BuildRequires:  python3egg(click-didyoumean)
BuildRequires:  python3egg(kombu)
BuildArch:      noarch

%description
An open source asynchronous task queue/job queue based on
distributed message passing. It is focused on real-time
operation, but supports scheduling as well.

The execution units, called tasks, are executed concurrently
on one or more worker nodes using multiprocessing, Eventlet
or gevent. Tasks can execute asynchronously (in the background)
or synchronously (wait until ready).

Celery is used in production systems to process millions of
tasks a day.

Celery is written in Python, but the protocol can be implemented
in any language. It can also operate with other languages using
webhooks.

The recommended message broker is RabbitMQ, but limited support
for Redis, Beanstalk, MongoDB, CouchDB and databases
(using SQLAlchemy or the Django ORM) is also available.

#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Distributed Task Queue
Group:          Development/Python

%description -n python3-%{pypi_name}
An open source asynchronous task queue/job queue based on
distributed message passing. It is focused on real-time
operation, but supports scheduling as well.

The execution units, called tasks, are executed concurrently
on one or more worker nodes using multiprocessing, Eventlet
or gevent. Tasks can execute asynchronously (in the background)
or synchronously (wait until ready).

Celery is used in production systems to process millions of
tasks a day.

Celery is written in Python, but the protocol can be implemented
in any language. It can also operate with other languages using
webhooks.

The recommended message broker is RabbitMQ, but limited support
for Redis, Beanstalk, MongoDB, CouchDB and databases
(using SQLAlchemy or the Django ORM) is also available.

%files -n python3-%{pypi_name}
%doc LICENSE *.txt *.rst
%{_bindir}/%{pypi_name}
%{_bindir}/%{pypi_name}-3*
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-*.egg-info
#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

chmod 644 README.rst
rm -fr %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

pushd %{buildroot}%{_bindir}
mv celery celery-%{py3_ver}
ln -s celery-%{py3_ver} celery-3
ln -s celery-3 celery
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6914 |21cr|python-cftime-1.0.3.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global           pypi_name cftime

Name:             python-cftime
Version:          1.0.3.4
Release:          3

Summary:          Time-handling functionality from netcdf4-python
License:          MIT
Group:            Development/Python

URL:              https://pypi.org/project/cftime/
Source0:          https://pypi.io/packages/source/c/cftime/%{pypi_name}-%{version}.tar.gz

%description
Time-handling functionality from netcdf4-python.

%package -n python3-cftime
Summary:        Python3 implementation of Cftime
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(cython)
BuildRequires:  python3egg(numpy)

%description -n python3-cftime
Time-handling functionality from netcdf4-python.

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-cftime
%doc COPYING README.md
%{py3_platsitedir}/%{pypi_name}
%{py3_platsitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6915 |21cr|python-cgen-2020.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module cgen

Name:           python-%{module}
Version:        2020.1
Release:        1
Summary:        C/C++++ source generation from an AST
License:        MIT
Group:          Development/Python
Url:            http://pypi.python.org/pypi/cgen
Source0:        http://pypi.io/packages/source/c/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(pytools)

BuildArch:      noarch

%description
cgen offers a simple abstract syntax tree for C and related languages
(C++/CUDA/OpenCL) to allow structured code generation from Python.
#------------------------------------------------------------------

%package -n python3-%{module}
Summary:        C/C++++ source generation from an AST
Group:          Development/Python

Provides:       python-cgen = %{version}-%{release}

%description -n python3-%{module}
cgen offers a simple abstract syntax tree for C and related languages
(C++/CUDA/OpenCL) to allow structured code generation from Python.

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info

#------------------------------------------------------------------


%prep
%setup -qn %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3 test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6916 |21cr|python-chaco-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module chaco

Summary:	Enthought Tool Suite - interactive 2D plotting
Name:		python-%{module}
Version:	5.0.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/chaco/
Source0:	http://www.enthought.com/repo/ets/chaco-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(numpy)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(enable)
BuildRequires:	x11-server-xvfb

Provides:       python3-%{module} = %{EVRD}

%description
Chaco is a Python plotting application toolkit that facilitates
writing plotting applications at all levels of complexity, from simple
scripts with hard-coded data to large plotting programs with complex
data interrelationships and a multitude of interactive tools. While
Chaco generates attractive static plots for publication and
presentation, it also works well for interactive data visualization
and exploration.

%files
%doc *.rst
%{py3_platsitedir}/%{module}*

#----------------------------------------------------------------------------
%package -n %{name}-doc
Summary:    Documentation and examples for %{name}

Requires:   %{name} = %{EVRD}
BuildArch:  noarch

%description -n %{name}-doc
Documentation and examples for %{name}.

%files  -n %{name}-doc
%doc docs examples *.txt
#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# fix some linting
sed -i "s|\r||g" docs/source/_static/default.css
rm -fr examples/demo/data/.gitignore
chmod -x docs/datamodel.doc


%build
%py3_build

%install
%py3_install
# remove use of /usr/bin/env in examples/*.py
sed -i -e 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/g' \
    %{buildroot}%{py3_platsitedir}/%{module}/examples/demo/basic/*.py
sed -i -e 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/g' \
    %{buildroot}%{py3_platsitedir}/%{module}/examples/demo/*.py


%check
# skip failed tests due too many missing modules and too old main py3 modules
pushd build/lib.linux*-%py3_ver
  export PYTHONPATH=%{buildroot}%{py3_platsitedir}
  xvfb-run python3 -s -m unittest discover -v || :
popd



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6917 |21cr|python-chai-1.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname chai

Name:               python-%{modname}
Version:            1.1.2
Release:            5
Summary:            Easy to use mocking/stub framework
Group:              Development/Python
License:            BSD
URL:                https://pypi.org/project/chai/
Source0:            https://pypi.io/packages/source/c/%{modname}/%{modname}-%{version}.tar.gz

BuildArch:          noarch

BuildRequires:      pkgconfig(python3)
BuildRequires:      python3egg(nose)

%description
Chai provides a very easy to use api for mocking/stubbing your python
objects, patterned after the Mocha <http://mocha.rubyforge.org/> library
for Ruby.

%package -n         python3-%{modname}
Summary:            Easy to use mocking/stub framework
Group:              Development/Python

%description -n python3-%{modname}
Chai provides a very easy to use api for mocking/stubbing your python
objects, patterned after the Mocha <http://mocha.rubyforge.org/> library
for Ruby.

%prep
%setup -q -n %{modname}-%{version}
rm -rf %{modname}.egg-info

%build
# Remove python2 compatibility files
# Makes tests fail and are not needed on python3
rm chai/python2.py
rm tests/comparator_py2.py
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{modname}
%doc README.rst LICENSE.txt
%{py3_puresitedir}/%{modname}
%{py3_puresitedir}/%{modname}-%{version}-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6918 |21cr|python-charset-normalizer-2.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-charset-normalizer
Version:        2.0.8
Release:        1
Summary:        The Real First Universal Charset Detector
Group:          Development/Python
License:        MIT
URL:            https://github.com/ousret/charset_normalizer
Source0:        %{url}/archive/refs/tags/%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(pytest)

%description
A library that helps you read text from an unknown charset encoding.
Motivated by chardet, trying to resolve the issue by taking
a new approach. All IANA character set names for which the Python core
library provides codecs are supported.

#----------------------------------------------------------------------
%package -n     python3-charset-normalizer
Summary:        %{summary}
Group:          Development/Python

%description -n python3-charset-normalizer
A library that helps you read text from an unknown charset encoding.
Motivated by chardet, trying to resolve the issue by taking
a new approach. All IANA character set names for which the Python core
library provides codecs are supported.

%files -n python3-charset-normalizer
%license LICENSE
%doc README.md
%{_bindir}/normalizer
%{python3_sitelib}/*

#----------------------------------------------------------------------

%prep
%autosetup -n charset_normalizer-%{version}
# Remove pytest-cov settings from setup.cfg
sed -i "/addopts = --cov/d" setup.cfg

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6919 |21cr|python-cheetah3-3.2.6.post1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# pypi_name - name for pypi_source
# mod_name - name of python module
# oname - name for rpm package

%define pypi_name Cheetah3
%define mod_name Cheetah
%define oname cheetah3

Summary:        Cheetah is a template engine and code generation tool
Name:           python-%{oname}
Version:        3.2.6.post1
Release:        1
License:        MIT
Group:          Development/Python
Url:            https://cheetahtemplate.org/
Source0:        %{pypi_source}

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(wheel)
BuildRequires:  python3dist(pip)


%description
%{summary}.

#------------------------------------------------------------------

%package -n python3-%{oname}
Summary:        %{summary}
Group:          Development/Python
Recommends:	python3-markdown

%description -n python3-%{oname}
%{summary}.

%files -n python3-%{oname} -f %{pyproject_files}
%doc README.rst
%{_bindir}/*
#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{mod_name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6920 |21cr|python-chm-0.8.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pychm

Name:           python-chm
Version:        0.8.6
Release:        1
Summary:        Python package for CHM files handling
License:        GPLv2+
Group:          Development/Python
Url:            https://github.com/dottedmag/%{module}/
Source0:        https://github.com/dottedmag/%{module}/archive/v%{version}/%{module}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)
BuildRequires:  chmlib
BuildRequires:  chmlib-devel


%description
The chm package provides three modules, chm, chmlib and extra,
which provide access to the API implemented by the C library
chmlib and some additional classes and functions. They are
used to access MS-ITSS encoded files - Compressed Html Help
files (.chm).
#---------------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}                     
            
Provides: pychm

%description -n python3-%{module}
The chm package provides three modules, chm, chmlib and extra,
which provide access to the API implemented by the C library
chmlib and some additional classes and functions. They are
used to access MS-ITSS encoded files - Compressed Html Help
files (.chm).

%files -n python3-%{module}
%doc NEWS README LICENSE
%{py3_platsitedir}/chm/
%{py3_platsitedir}/%{module}-%{version}-py*.egg-info
#---------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_platsitedir}
pytest-3 tests




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6921 |21cr|python-chromaprint-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name chromaprint


Summary:        Python module to facilitate effortless color terminal output
Group:          Development/Python
Name:           python-%{pypi_name}
Version:        0.5
Release:        1
License:        MIT
URL:            http://pypi.python.org/pypi/%{pypi_name}/
Source0:        https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-m2r
BuildRequires:  python3-setuptools

%description
Python module to facilitate effortless color terminal output.

#-----------------------------------------------------------------
%package    -n  python3-%{pypi_name}
Summary:        Python module to facilitate effortless color terminal output
Group:          Development/Python

%description -n python3-%{pypi_name}
Python module to facilitate effortless color terminal output.

%files -n python3-%{pypi_name}
%doc README*
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info

#-----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6922 |21cr|python-cinemagoer-2022.2.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name cinemagoer

Name:           python-cinemagoer
Version:        2022.2.11
Release:        1
Summary:        Retrieve and manage the data of the IMDb movie database
Group:          Development/Python
License:        GPLv2+
URL:            https://imdbpy.sourceforge.io/
Source0:        https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
IMDbPY is a Python package useful to retrieve and manage the data of
the IMDb movie database about movies, people, characters and companies.

#-----------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Retrieve and manage the data of the IMDb movie database
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
Provides:       python3-imdbpy = %{EVRD}
Provides:       python3-IMDbPY = %{EVRD}

%description -n python3-%{pypi_name}
IMDbPY is a Python package useful to retrieve and manage the data of
the IMDb movie database about movies, people, characters and companies.

This is the Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%{_bindir}/imdbpy
%{_bindir}/*.py
%{python3_sitelib}/imdb/
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6923 |21cr|python-click-7.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	click

Name:		python-%{module}
Version:	7.1.2
Release:	1
Summary:	A simple wrapper around optparse for powerful command line utilities
Group:		Development/Python
License:	BSD
Url:		https://palletsprojects.com/p/click/
Source0:	https://pypi.io/packages/source/c/%{module}/%{module}-%{version}.tar.gz
Provides:	python-click == %{EVRD}
Obsoletes:	python3-click == 7.0.dev0
Obsoletes:	python-click == 7.0.dev0
BuildArch:	noarch

%description
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary.  It's the "Command
Line Interface Creation Kit".  It's highly configurable but comes with
sensible defaults out of the box.

It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.

#-----------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A simple wrapper around optparse for powerful command line utilities
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary.  It's the "Command
Line Interface Creation Kit".  It's highly configurable but comes with
sensible defaults out of the box.

It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.

%files -n python3-%{module}
%doc *.rst
%{python3_sitelib}/click/*.py*
%{python3_sitelib}/click/__pycache__
%{python3_sitelib}/click*.egg-info
#----------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6924 |21cr|python-click-didyoumean-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name click-didyoumean

Name:           python-%{pypi_name}
Version:        0.3.0
Release:        1
Summary:        Enable git-like did-you-mean feature in click
Group:          Development/Python
License:        MIT
URL:            https://github.com/timofurrer/click-didyoumean
Source0:        %{url}/archive/v%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(pytest)
BuildRequires:  pyproject-rpm-macros
%generate_buildrequires
%pyproject_buildrequires -r

%description
%{summary}

#---------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
%{summary}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
%license LICENSE

#---------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files click_didyoumean

%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6925 |21cr|python-click-plugins-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name click-plugins
%global pypi_name_no_dash click_plugins

%global _description \
An extension module for click to register external CLI commands via setuptools \
entry-points.

Name:           python-%{pypi_name}
Version:        1.1.1
Release:        1
Summary:        Click extension to register CLI commands via setuptools
Group:          Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:        %pypi_source

BuildArch:      noarch

%description %{_description}

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(click) >= 4.0
BuildRequires:  python3dist(pytest)

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name_no_dash}
%{python3_sitelib}/%{pypi_name_no_dash}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
export LANG=C.UTF-8
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6926 |21cr|python-click-repl-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name click-repl

Name:           python-%{pypi_name}
Version:        0.2.0
Release:        1
Summary:        REPL plugin for Click
Group:          Development/Python
License:        MIT
URL:            https://github.com/untitaker/click-repl
Source0:        %{url}/archive/%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(click)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(prompt-toolkit)
BuildRequires:  python3egg(six)

%description
%{summary}

#--------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
%{summary}

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/click_repl/
%{python3_sitelib}/click_repl-%{version}-py%{python3_version}.egg-info/

#--------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6927 |21cr|python-cloudpickle-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name cloudpickle
%define desc cloudpickle makes it possible to serialize Python constructs \
not supported by the default pickle module from the Python standard \
library. cloudpickle is especially useful for cluster computing where \
Python expressions are shipped over the network to execute on remote \
hosts, possibly close to the data. Among other things, cloudpickle \
supports pickling for lambda expressions, functions and classes defined \
interactively in the __main__ module.

%define run_test 0

Name:           python-%{pypi_name}
Version:	2.2.0
Release:	1
Summary:        Extended pickling support for Python objects
Group:          Development/Python
License:        BSD
URL:            https://github.com/cloudpipe/cloudpickle
Source0:	https://files.pythonhosted.org/packages/f9/9a/4bbae686297e3af55e08292145dde750999d2652d9fb408e605776c53348/cloudpickle-2.2.0.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

# Test requirements
%if 0%{?run_test}
BuildRequires:  python3dist(mock)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(tornado)
%endif

%description
%{desc}

%package -n     python3-%{pypi_name}
Group:          Development/Python
Summary:        %{summary}

%description -n python3-%{pypi_name}
%{desc}

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%if 0%{?run_test}
%check
python3 setup.py test || :
%endif


%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.md
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6928 |21cr|python-cloud_sptheme-1.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	cloud_sptheme

Name:		python-%{oname}
Version:	1.9.4
Release:	1
Summary:	a nice sphinx theme named 'Cloud', and some related extensions
Source0:	http://pypi.python.org/packages/source/c/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://bitbucket.org/ecollins/cloud_sptheme
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools) python-sphinx

%description
This is a small package containing a Sphinx theme named "Cloud",
along with some related Sphinx extensions. To see an example
of the theme in action, check out it's documentation
at `<https://cloud-sptheme.readthedocs.io>`_.

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc CHANGES
%doc LICENSE
%doc README
%doc cloud_sptheme/ext/autodoc_sections.py
%doc cloud_sptheme/ext/autodoc_sections.pyc
%doc cloud_sptheme/ext/__pycache__/autodoc_sections.cpython-35.pyc
%doc cloud_sptheme/ext/static/auto_redirect.html_t
%doc cloud_sptheme/themes/cloud/globaltoc.html
%doc cloud_sptheme/themes/cloud/layout.html
%doc cloud_sptheme/themes/cloud/localtoc.html
%doc cloud_sptheme/themes/cloud/quicklinks.html
%doc cloud_sptheme/themes/cloud/relations.html
%doc cloud_sptheme/themes/cloud/static/icon-todo.png
%doc docs/copyright.rst
%doc docs/history.rst
%doc docs/requirements.txt
%doc docs/_static/longline.txt
%doc docs/lib/cloud_sptheme.ext.autodoc_sections.rst
%{py_puresitedir}/cloud_sptheme/*.py*
%{py_puresitedir}/cloud_sptheme/ext/*.py*
%{py_puresitedir}/cloud_sptheme/tests/*.py*
%{py_puresitedir}/cloud_sptheme*.egg-info
%{py_puresitedir}/cloud_sptheme/ext/static/auto_redirect.css
%{py_puresitedir}/cloud_sptheme/ext/static/auto_redirect.html_t
%{py_puresitedir}/cloud_sptheme/ext/static/table_styling.css
%{py_puresitedir}/cloud_sptheme/themes/cloud/globaltoc.html
%{py_puresitedir}/cloud_sptheme/themes/cloud/layout.html
%{py_puresitedir}/cloud_sptheme/themes/cloud/localtoc.html
%{py_puresitedir}/cloud_sptheme/themes/cloud/quicklinks.html
%{py_puresitedir}/cloud_sptheme/themes/cloud/relations.html
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/cloud.base.js
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/cloud.css_t
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/cloud.js_t
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/icon-caution.png
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/icon-danger.png
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/icon-deprecated.png
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/icon-note.png
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/icon-seealso.png
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/icon-todo.png
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/icon-warning.png
%{py_puresitedir}/cloud_sptheme/themes/cloud/static/jquery.cookie.js
%{py_puresitedir}/cloud_sptheme/themes/cloud/theme.conf
%{py_puresitedir}/cloud_sptheme/themes/greencloud/theme.conf
%{py_puresitedir}/cloud_sptheme/themes/redcloud/theme.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6929 |21cr|python-cluster-1.4.1.post2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname cluster

Name:           python-%{srcname}
Version:        1.4.1.post2
Release:        1
Summary:        Create several groups (clusters) of objects from a list
Group:          Development/Python
License:        LGPLv2
URL:            https://pypi.python.org/pypi/cluster
Source0:        https://pypi.io/packages/source/c/cluster/cluster-%{version}.tar.gz
BuildArch:      noarch

%description
python-cluster is a "simple" package that allows to create several groups
(clusters) of objects from a list. It's meant to be flexible and able to
cluster any object. To ensure this kind of flexibility, you need not only to
supply the list of objects, but also a function that calculates the similarity
between two of those objects. For simple datatypes, like integers, this can be
as simple as a subtraction, but more complex calculations are possible. Right
now, it is possible to generate the clusters using a hierarchical clustering
and the popular K-Means algorithm. For the hierarchical algorithm there are
different "linkage" (single, complete, average and uclus) methods available.

#------------------------------------------------

%package -n     python3-%{srcname}
Summary:        Create several groups (clusters) of objects from a list
Group:          Development/Python
BuildArch:	noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description -n python3-%{srcname}
python3-cluster is a "simple" package that allows to create several groups
(clusters) of objects from a list. It's meant to be flexible and able to
cluster any object. To ensure this kind of flexibility, you need not only to
supply the list of objects, but also a function that calculates the similarity
between two of those objects. For simple datatypes, like integers, this can be
as simple as a subtraction, but more complex calculations are possible. Right
now, it is possible to generate the clusters using a hierarchical clustering
and the popular K-Means algorithm. For the hierarchical algorithm there are
different "linkage" (single, complete, average and uclus) methods available.

#------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

# drop bundled egg-info
rm -rf %{srcname}.egg-info/

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%doc LICENSE
%doc CHANGELOG README*
%{py3_puresitedir}/cluster
%{py3_puresitedir}/cluster-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6930 |21cr|python-cmdln-2.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 465c412b297da98b6e7a8926644ebf5ecf2faeaf
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Summary:        An improved cmd.py for Writing Multi-command Scripts and Shells
Name:           python-cmdln
Version:        2.0.0
Release:        11
Source0:        https://github.com/trentm/cmdln/archive/%{commit}/cmdln-%{version}-%{shortcommit}.tar.gz
License:        MIT
Group:		Development/Python
BuildRequires:  python3-setuptools
BuildRequires:  python3-devel
URL:            https://github.com/trentm/cmdln
BuildArch:      noarch

%description
`cmdln.py` is an extension of Python's default `cmd.py` module that
provides "a simple framework for writing line-oriented command
interpreters".  The idea (with both cmd.py and cmdln.py) is to be able
to quickly build multi-sub-command tools (think cvs or svn) and/or
simple interactive shells (think gdb or pdb).  Cmdln's extensions make
it more natural to write sub-commands, integrate optparse for simple
option processing, and make having good command documentation easier.

%package doc
License:    MIT
Summary:    An improved cmd.py for Writing Multi-command Scripts and Shells
Requires:   python3-cmdln = %{version}-%{release}

%description doc
`cmdln.py` is an extension of Python's default `cmd.py` module that
provides "a simple framework for writing line-oriented command
interpreters".  The idea (with both cmd.py and cmdln.py) is to be able
to quickly build multi-sub-command tools (think cvs or svn) and/or
simple interactive shells (think gdb or pdb).  Cmdln's extensions make
it more natural to write sub-commands, integrate optparse for simple
option processing, and make having good command documentation easier.

Documentation package.

%package -n python3-cmdln
License:    MIT
Summary:    An improved cmd.py for Writing Multi-command Scripts and Shells

%description -n python3-cmdln
`cmdln.py` is an extension of Python's default `cmd.py` module that
provides "a simple framework for writing line-oriented command
interpreters".  The idea (with both cmd.py and cmdln.py) is to be able
to quickly build multi-sub-command tools (think cvs or svn) and/or
simple interactive shells (think gdb or pdb).  Cmdln's extensions make
it more natural to write sub-commands, integrate optparse for simple
option processing, and make having good command documentation easier.

Python 3 compatible module.

%prep
%setup -q -n cmdln-%{version}

%build
export CFLAGS="%{optflags}"
python3 setup.py build

%install
python3 setup.py install \
   --prefix=%{_prefix} \
   --root=%{buildroot}

%files -n python3-cmdln
%doc LICENSE.txt
%{py3_puresitedir}/*

%files doc
%doc LICENSE.txt
%doc README.md docs/* examples/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6931 |21cr|python-cocos2d-0.6.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module cocos2d

Summary:	A framework for building 2D applications
Name:		python-%{module}
Version:	0.6.9
Release:	1
License:	BSD
Group:		Development/Python
URL:		http://cocos2d.org/
Source0:	https://files.pythonhosted.org/packages/2f/45/d3efb5f3e635adc5b49ee2b890910c672f4c98b927a820230abadde9c9bf/cocos2d-0.6.9.tar.gz
BuildArch:	noarch
BuildRequires:  python3-setuptools
Requires:	python3-pyglet

%description
cocos2d is a framework for building 2D games, demos, and other
graphical/interactive applications.

%prep
%setup -q -n %{module}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root %{buildroot} --prefix /usr

%clean

%files
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6932 |21cr|python-codechat-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
# https://github.com/bjones1/CodeChat
# commit b590b4a4a9f84f1bccf3323df33ba54c7458b208

%global pypi_name CodeChat

Name:           python-codechat
Version:        1.6.1
Release:        1
Group:          Development/Python
Summary:        The CodeChat system for software documentation
License:        GPLv3+
URL:            https://github.com/bjones1/CodeChat
Source0:        https://pypi.io/packages/source/C/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
CodeChat transforms source code into a web page,
allowing developers to view their program as a beautiful
and descriptive document by adding headings, formatting,
hyperlinks, diagrams, images, and other forms of rich content
to capture the ideas and insights that naturally flow
from the process of writing a program.
It also provides a blank slate in which to plan ahead,
by sketching out an algorithm before committing it to code
or laying out a design document which can evolve as the code does.
This literate programming paradigm changes the way developers
think by intermingling ideas with their implementation as code,
dramatically improving a programmer’s abilities.

%package -n python3-codechat
Group:          Development/Python
Summary:        The modular source code checker: pep8, pyflakes and co
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-docutils
BuildRequires:  python3-pygments
Requires:       python3-docutils
Requires:       python3-pygments

%description -n python3-codechat
CodeChat transforms source code into a web page,
allowing developers to view their program as a beautiful
and descriptive document by adding headings, formatting,
hyperlinks, diagrams, images, and other forms of rich content
to capture the ideas and insights that naturally flow
from the process of writing a program.
It also provides a blank slate in which to plan ahead,
by sketching out an algorithm before committing it to code
or laying out a design document which can evolve as the code does.
This literate programming paradigm changes the way developers
think by intermingling ideas with their implementation as code,
dramatically improving a programmer’s abilities.

%prep
%setup -q -n %{pypi_name}-%{version}
# remove bundled egg-info
rm -rf CodeChat.egg-info
sed -i '/'pygments.*'/d' setup.py
sed -i '/'docutils.*'/d' setup.py
sed -i '/'ez_setup.*'/d' setup.py

%build
%py3_build

%install
%py3_install

%files -n python3-codechat
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info
%{py3_puresitedir}/%{pypi_name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6933 |21cr|python-codepy-2019.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	codepy

Name:		python-%{pypi_name}
Version:	2019.1
Release:	2
Summary:	Generate and execute native code at run time
Source0:	https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://mathema.tician.de/software/codepy
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
.. image:: https://badge.fury.io/py/codepy.png
    :target: http://pypi.python.org/pypi/codepy

CodePy is a C/C++ metaprogramming toolkit for Python. It helps you compile
source code and dynamically load it into the Python interpreter.
This facility also works in conjunction with with `PyCuda
<http://mathema.tician.de/software/pycuda>`_.  Dynamic compilation and linking
are so far only supported in Linux with the GNU toolchain.

See also the `documentation <http://documen.tician.de/codepy>`_ and the
`git tree <http://github.com/inducer/codepy>`_.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Generate and execute native code at run time
Group:		Development/Python

%description -n python3-%{pypi_name}
.. image:: https://badge.fury.io/py/codepy.png
    :target: http://pypi.python.org/pypi/codepy

CodePy is a C/C++ metaprogramming toolkit for Python. It helps you compile
source code and dynamically load it into the Python interpreter.
This facility also works in conjunction with with `PyCuda
<http://mathema.tician.de/software/pycuda>`_.  Dynamic compilation and linking
are so far only supported in Linux with the GNU toolchain.

See also the `documentation <http://documen.tician.de/codepy>`_ and the
`git tree <http://github.com/inducer/codepy>`_.

%files -n python3-%{pypi_name}
%doc README.rst
%doc doc/source/faq.rst
%{python3_sitelib}/codepy/*
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info

#----------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

rm -r *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6934 |21cr|python-cogapp-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cogapp

Name:           python-%{pypi_name}
Version:        3.3.0
Release:        1
Summary:        Cog: A content generator for executing Python snippets in source files
Group:          Development/Python
License:        MIT
URL:            https://nedbatchelder.com/code/cog
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(wheel)

%description
Cog content generation tool. Small bits of computation for static files.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Conflicts:      cog

%description -n python3-%{pypi_name}
Cog content generation tool. Small bits of computation for static files.

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE.txt
%doc README.rst
%{_bindir}/cog
%{_bindir}/cog.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6935 |21cr|python-collada-0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname pycollada

Name:           python-collada
Version:        0.6
Release:        5
Summary:        A python module for creating, editing and loading COLLADA
Group:		Development/Python
License:        BSD
URL:            https://github.com/pycollada/pycollada
Source0:        https://github.com/pycollada/pycollada/archive/v0.6/%{realname}-%{version}.tar.gz
# Disable pypi downloads in setup.py to guarantee use of only system libs
Patch0:         python-collada-0.4-disable_unittest_downloads.patch

BuildArch:      noarch

# Python 3
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
# unit test requirements
BuildRequires:  python3-dateutil
BuildRequires:  python3-six
BuildRequires:  python3-numpy


%description
pycollada is a python module for creating, editing and loading COLLADA, which
is a COLLAborative Design Activity for establishing an interchange file format
for interactive 3D applications.

The library allows you to load a COLLADA file and interact with it as a python
object. In addition, it supports creating a collada python object from scratch,
as well as in-place editing.


%package -n python3-collada
Summary:        A python 3 module for creating, editing and loading COLLADA
Requires:       python3-dateutil
Requires:       python3-numpy

%description -n python3-collada
pycollada is a python 3 module for creating, editing and loading COLLADA, which
is a COLLAborative Design Activity for establishing an interchange file format
for interactive 3D applications.

The library allows you to load a COLLADA file and interact with it as a python
object. In addition, it supports creating a collada python object from scratch,
as well as in-place editing.


%prep
%autosetup -n %{realname}-%{version}


%build
%py3_build


%install
%py3_install

 
%check
python3 setup.py test


%files -n python3-collada
%doc COPYING
%doc AUTHORS.md CHANGELOG.rst README.markdown
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6936 |21cr|python-colorama-0.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	colorama

Name:		python-%{module}
Version:	0.4.1
Release:	2
Summary:	Cross-platform colored terminal text
Source0:	https://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/tartley/colorama
BuildArch:	noarch

%description
Makes ANSI escape character sequences (for producing colored
terminal text and cursor positioning) work under MS Windows.

ANSI escape character sequences have long been used to produce
colored terminal text and cursor positioning on Unix and Macs. 
Colorama makes this work on Windows, too, by wrapping stdout,
stripping ANSI sequences it finds (which would appear as gobbledygook
in the output), and converting them into the appropriate win32 calls
to modify the state of the terminal. 
On other platforms, Colorama does nothing.

#---------------------------------------------------

%package -n python3-%{module}

Summary:        Cross-platform colored terminal text
BuildRequires:  pkgconfig(python3)
BuildRequires:  pythonegg(setuptools)

%description -n python3-%{module}
Makes ANSI escape character sequences (for producing colored
terminal text and cursor positioning) work under MS Windows.
ANSI escape character sequences have long been used to produce
colored terminal text and cursor positioning on Unix and Macs. 
Colorama makes this work on Windows, too, by wrapping stdout,
stripping ANSI sequences it finds (which would appear as gobbledygook
in the output), and converting them into the appropriate win32 calls
to modify the state of the terminal. 
On other platforms, Colorama does nothing.

%files -n python3-%{module}
%doc CHANGELOG.rst LICENSE.txt README.rst
%{py3_puresitedir}/colorama
%{py3_puresitedir}/colorama*.egg-info

#---------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6937 |21cr|python-colorclass-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       python-colorclass
Version:	2.2.0
Release:	1
Summary:    Python 2 and 3 compatibility utilities
Group:      Development/Python
License:    MIT
URL:        http://pypi.python.org/pypi/colorclass/
Source0:	https://files.pythonhosted.org/packages/37/ea/ae8dbb956939d4392e6a7fdef87fda273854da1128edae016c4104240be8/colorclass-2.2.0.tar.gz
BuildArch:  noarch

%description
python-colorclass provides a colorful worry-free console applications
Python 2 and Python 3.

%package -n python3-colorclass
BuildRequires: python3-devel
BuildRequires: python3-setuptools
Summary: %{summary} / Python 3 library

%description -n python3-colorclass
python-colorclass provides a colorful worry-free console applications
Python 2 and Python 3.

%prep
%setup -q -n colorclass-%{version}

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%files -n python3-colorclass
%doc README.rst
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6938 |21cr|python-colorlog-6.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	colorlog

Name:		python-%{oname}
Version:	6.7.0
Release:	1
Summary:	Log formatting with colors
Source0:	https://files.pythonhosted.org/packages/78/6b/4e5481ddcdb9c255b2715f54c863629f1543e97bc8c309d1c5c131ad14f2/colorlog-6.7.0.tar.gz
License:	MIT License
Group:		Development/Python
Url:		https://github.com/borntyping/python-colorlog
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel

%description
This module is a formatter for use with Python's logging module that outputs
records using terminal colors.

%files
%doc LICENSE
%doc README.md
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
python3 setup.py build


%install
python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6939 |21cr|python-colour-0.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name colour

Name:           python-%{pypi_name}
Version:        0.1.5
Release:        1
Summary:        Converts and manipulates various color representation
Group:          Development/Python
License:        BSD 3-Clause License
URL:            http://github.com/vaab/colour
Source0:        https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(d2to1)
BuildRequires:  python3dist(setuptools)

%description
Python color representations manipulation library (RGB, HSL, web, ...)

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
Requires:       python3dist(nose)
Conflicts:	python3-py-colour

%description -n python3-%{pypi_name}
Python color representations manipulation library (RGB, HSL, web, ...)

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6940 |21cr|python-comm-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name comm

%global _description %{expand:
It provides a way to register a Kernel Comm implementation, 
as per the Jupyter kernel protocol. It also provides a base 
Comm implementation and a default CommManager that can be used.
}

Name:           python-%{pypi_name}
Version:        0.1.2
Release:        1
Summary:        Jupyter Python Comm implementation, for usage in ipykernel, xeus-python
Group:          Development/Python
License:        BSD
URL:            https://github.com/ipython/comm
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description
%_description

#--------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
%_description

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md

#--------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6941 |21cr|python-configshell-fb-1.1.29-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	configshell-fb

Name:		python-%{pypi_name}
Version:	1.1.29
Release:	2
Summary:	A framework to implement simple but nice CLIs
Group:		Development/Python
License:	Apache
Url:		http://github.com/open-iscsi/configshell-fb
Source0:	%{pypi_source}
Patch0:		configshell-fb-requires.patch
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
configshell-fb is a Python library that provides a framework for
building simple but nice CLI-based applications.
This runs with Python 2 and 2to3 is run by setup.py to run on Python 3.

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A framework to implement simple but nice CLIs
Group:		Development/Python

%description -n python3-%{pypi_name}
configshell-fb is a Python library that provides a framework for
building simple but nice CLI-based applications.
This runs with Python 2 and 2to3 is run by setup.py to run on Python 3.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/configshell
%{py3_puresitedir}/configshell_fb
%{py3_puresitedir}/configshell_fb*.egg-info

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

rm -R *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6942 |21cr|python-confusable-homoglyphs-3.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name confusable-homoglyphs

Name:           python-%{pypi_name}
Version:        3.2.0
Release:        2
Summary:        Detect confusable usage of unicode homoglyphs, prevent homograph attacks
Group:          Development/Python
License:        MIT
URL:            https://github.com/vhf/confusable_homoglyphs
Source0:        https://files.pythonhosted.org/packages/source/c/%{pypi_name}/confusable_homoglyphs-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(click)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(sphinx)

%description
Detect confusable usage of unicode homoglyphs, prevent homograph attacks.

#--------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

Requires:       python3dist(click)
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
Detect confusable usage of unicode homoglyphs, prevent homograph attacks.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst docs/readme.rst
%doc html
%{_bindir}/confusable_homoglyphs
%{python3_sitelib}/confusable_homoglyphs
%{python3_sitelib}/confusable_homoglyphs-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------

%prep
%autosetup -n confusable_homoglyphs-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

# generate html docs
PYTHONPATH=${PWD} sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
%{__python3} setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6943 |21cr|python-construct-2.10.67-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	construct

Name:		python-%{module}
Version:	2.10.67
Release:	1
Summary:	A powerful declarative parser/builder for binary data
License:	MIT
Group:		Development/Python
URL:		http://construct.readthedocs.org
Source0:	https://github.com/construct/construct/archive/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Construct is a powerful declarative parser (and builder) for binary
data.

Instead of writing imperative code to parse a piece of data, you
declaratively define a data structure that describes your data. As
this data structure is not code, you can use it in one direction to
parse data into Pythonic objects, and in the other direction, convert
(build) objects into binary data.

#---------------------------------------------------------------------
%package -n	python3-%{module}
Summary:	A powerful declarative parser/builder for binary data
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Construct is a powerful declarative parser (and builder) for binary
data.

Instead of writing imperative code to parse a piece of data, you
declaratively define a data structure that describes your data. As
this data structure is not code, you can use it in one direction to
parse data into Pythonic objects, and in the other direction, convert
(build) objects into binary data.

This is the Python 3 version of the package.

%files -n python3-%{module}
%doc README.rst LICENSE
%{python3_sitelib}/%{module}/
%{python3_sitelib}/%{module}-%{version}-*.egg-info

#---------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6944 |21cr|python-contextlib2-0.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname contextlib2

Name:               python-contextlib2
Version:            0.4.0
Release:            5
Summary:            Backports and enhancements for the contextlib module
Group:              Development/Python
License:            Python
URL:                http://pypi.python.org/pypi/contextlib2
Source0:            https://pypi.python.org/packages/source/c/%{modname}/%{modname}-%{version}.tar.gz
BuildArch:          noarch
BuildRequires:      python3-devel

%description
contextlib2 is a backport of the standard library's contextlib module to
earlier Python versions.

It also serves as a real world proving ground for possible future
enhancements to the standard library version.

%package -n python3-contextlib2
Summary:            Backports and enhancements for the contextlib module
Group:              Development/Python

%description -n python3-contextlib2
contextlib2 is a backport of the standard library's contextlib module to
earlier Python versions.

It also serves as a real world proving ground for possible future
enhancements to the standard library version.

%prep
%setup -q -n %{modname}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root=%{buildroot}

%check
python3 test_contextlib2.py

%files -n python3-contextlib2
%doc README.txt VERSION.txt NEWS.rst LICENSE.txt
%{py3_puresitedir}/%{modname}.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/%{modname}-%{version}-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6945 |21cr|python-cookiecutter-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name cookiecutter

Summary:	A command-line utility that creates projects from project templates
Name:		python-%{pypi_name}
Version:	2.1.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/audreyr/cookiecutter
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
A command-line utility that creates projects from **cookiecutters**
(project templates), e.g. creating a Python package project
from a Python package project template.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A command-line utility that creates projects from project templates
Group:		Development/Python
# python3 files were in main package
Obsoletes:	python-%{pypi_name} < 2.1.1

%description -n python3-%{pypi_name}
A command-line utility that creates projects from **cookiecutters**
(project templates), e.g. creating a Python package project
from a Python package project template.

%files -n python3-%{pypi_name}
%doc README.md HISTORY.md
%{_bindir}/cookiecutter
%{python3_sitelib}/cookiecutter
%{python3_sitelib}/cookiecutter*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6946 |21cr|python-couchdb-0.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname CouchDB
Name:           python-couchdb
Version:        0.9
Release:        4
Summary:        A Python library for working with CouchDB

Group:          Development/Python
License:        BSD
URL:            http://code.google.com/p/couchdb-python/
Source0:        http://pypi.python.org/packages/source/C/CouchDB/CouchDB-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
Requires:       python2-simplejson
# remove in 2013 once 2010.0 is not supported anymore
Obsoletes:       %{name}-devel < 0.8

%description
Providing a convenient high level interface for the CouchDB server.


%package -n python2-couchdb
%py2_migration_meta python2-couchdb
Summary:        A Python library for working with CouchDB

%description -n python2-couchdb
Providing a convenient high level interface for the CouchDB server.



%prep
%setup -q -n %{srcname}-%{version}

%build
python2 setup.py build


%install
python2 setup.py install --skip-build --root %{buildroot}

# calm rpmlint down
find  %{buildroot}/%{py2_puresitedir}/couchdb -name \*.py -print0 | xargs --null chmod 0644


%clean

%files -n python2-couchdb
%defattr(-,root,root,-)
%doc ChangeLog.txt COPYING README.txt 
%doc doc/
%{_bindir}/couchdb-dump
%{_bindir}/couchdb-load
%{_bindir}/couchdb-replicate
%{_bindir}/couchpy
%{py2_puresitedir}/CouchDB-%{version}-py%{py2_ver}.egg-info
%{py2_puresitedir}/couchdb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6947 |21cr|python-couchdbkit-0.6.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname couchdbkit

Name:		python-%{oname}
Summary:	Framework for your Python application to access and manage Couchdb	
Version:	0.6.5
Release:	5
Group:		Development/Python
URL:            http://couchdbkit.org
License:	MIT
Source0:	http://pypi.python.org/packages/source/c/couchdbkit/couchdbkit-%{version}.tar.gz
BuildRequires:  pkgconfig(python) 
BuildRequires:  pythonegg(setuptools)
BuildRequires:  pythonegg(unittest2)
BuildRequires:  pythonegg(nose)
BuildRequires:  config(couchdb)

Requires:       config(couchdb)
Requires:       pythonegg(anyjson)
Requires:       pythonegg(restkit)

BuildArch:	noarch


%description
Couchdbkit provides you a full featured and easy client to access and manage 
CouchDB. It allows you to manage a CouchDBserver, databases, doc managements 
and view access. All objects mostly reflect python2 objects for convenience. 
Server and Databases objects could be used for example as easy as using dicts.


%package -n python2-%{oname}
Summary:	Framework for your Python application to access and manage Couchdb	

%description -n python2-%{oname}
Couchdbkit provides you a full featured and easy client to access and manage 
CouchDB. It allows you to manage a CouchDBserver, databases, doc managements 
and view access. All objects mostly reflect python objects for convenience. 
Server and Databases objects could be used for example as easy as using dicts.



%prep
%setup -qn %{oname}-%{version}
rm -rf couchdbkit.egg-info
chmod 644 LICENSE

%build
python2 setup.py build

%install
python2 setup.py install --prefix=%{_prefix} -O1 --skip-build --root=%{buildroot}

%files -n python2-%{oname}
%doc LICENSE README.rst
%{py2_puresitedir}/couchdbkit
%{py2_puresitedir}/couchdbkit-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6948 |21cr|python-coveralls-3.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name coveralls

Name:		python-%{pypi_name}
Version:	3.3.1
Release:	1
Summary:	Show coverage stats online via coveralls.io
Group:		Development/Python
License:	MIT
URL:		http://github.com/coveralls-clients/coveralls-python
Source0:	https://files.pythonhosted.org/packages/c2/c5/6b8254092117fa366b022fbee9434224483ba38e0bbf36e80836bf10692a/coveralls-3.3.1.tar.gz
BuildArch:	noarch

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(coverage) >= 3.6
BuildRequires:	python3egg(cryptography)
BuildRequires:	python3dist(pycparser)
BuildRequires:	python3dist(docopt) >= 0.6.1
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3dist(pytest-runner)
BuildRequires:	python3dist(pyyaml) >= 3.10
BuildRequires:	python3dist(requests) >= 1.0.0
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3dist(sh) >= 1.08
BuildRequires:	python3dist(urllib3)
BuildRequires:	python3-sphinxcontrib-trio

%description
coveralls.io is a service for publishing your coverage stats online.

This package provides seamless integration with coverage.py (and thus
pytest, nosetests, etc...) in your Python projects.

#-------------------------------------------------------------------
%package -n  python3-%{pypi_name}
Summary:	%{summary}

Requires:	python3dist(coverage) >= 3.6
Requires:	python3dist(docopt) >= 0.6.1
Requires:	python3dist(pyyaml) >= 3.10
Requires:	python3dist(requests) >= 1.0.0
Requires:	python3egg(setuptools)
Requires:	python3dist(urllib3)

%description -n python3-%{pypi_name}
coveralls.io is a service for publishing your coverage stats online.

This package provides seamless integration with coverage.py (and thus
pytest, nosetests, etc...) in your Python projects.

%files -n python3-%{pypi_name}
%doc LICENSE.txt
%doc README.rst
%{_bindir}/coveralls
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.egg-info

#-------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6949 |21cr|python-cpuinfo-8.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname cpuinfo

Name:           python-%{srcname}
Version:        8.0.0
Release:        1
Summary:        Getting CPU info
Group:          System/Kernel and hardware
License:        MIT
URL:            https://github.com/workhorsy/py-cpuinfo
Source0:        https://pypi.io/packages/source/p/py-%{srcname}/py-%{srcname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without
any extra programs or libraries, beyond what your OS provides.

These approaches are used for getting info:
    Windows Registry
    /proc/cpuinfo
    sysctl
    dmesg
    isainfo and psrinfo
    Querying x86 CPUID register

#---------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:        Getting CPU info
Group:          System/Kernel and hardware

%description -n python3-%{srcname}
Py-cpuinfo gets CPU info with pure Python. Py-cpuinfo should work without
any extra programs or libraries, beyond what your OS provides.

These approaches are used for getting info:
    Windows Registry
    /proc/cpuinfo
    sysctl
    dmesg
    isainfo and psrinfo
    Querying x86 CPUID register

%files -n python3-%{srcname}
%doc README.rst ChangeLog
%doc LICENSE
%{_bindir}/cpuinfo.py3
%{py3_puresitedir}/%{srcname}/
%{py3_puresitedir}/py_%{srcname}-%{version}-py*.egg-info

%post -n python3-%{srcname}
update-alternatives --install %{_bindir}/cpuinfo cpuinfo %{_bindir}/cpuinfo.py3 10

%postun -n python3-%{srcname}
if [ $1 -eq 0 ] ; then
  update-alternatives --remove cpuinfo %{_bindir}/cpuinfo.py3
fi

#---------------------------------------------------------------------------

%prep
%setup -q -n py-%{srcname}-%{version}
rm -rf *.egg-info

sed -i -e '/^#!\//, 1d' cpuinfo/cpuinfo.py


%build
%py3_build

%install
%py3_install
mv %{buildroot}%{_bindir}/cpuinfo %{buildroot}%{_bindir}/cpuinfo.py3

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6950 |21cr|python-cram-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module cram

Name:           python-%{module}
Version:        0.7
Release:        1
Summary:        Simple testing framework for command line applications
Group:          Development/Python
License:        GPLv2
Url:            https://bitheap.org/cram/
Source0:        http://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python)
BuildRequires:  pythonegg(setuptools)
BuildArch:      noarch

%description
Cram tests look like snippets of interactive shell sessions. Cram runs each
command and compares the command output in the test with the command's actual
output.

%files -n python-%{module}
%doc README.* COPYING.txt NEWS.*
%{_bindir}/cram
%{py_puresitedir}/%{module}/
%{py_puresitedir}/%{module}-%{version}-py*.egg-info
#------------------------------------------------------------------------------


%prep
%setup -qn %{module}-%{version}

# remove shebangs
find . -type f -name '*.py' \
  -exec sed -i -e '/^#!/{1D}' {} \;

%build
%py_build

%install
%py_install


%check
python setup.py check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6951 |21cr|python-crcmod-1.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname crcmod

Name:           python-%{oname}
Version:        1.7
Release:        6
Epoch:          0
Summary:        Creates functions that efficiently compute CRC's using table lookup
URL:            http://crcmod.sourceforge.net/
Source0:        http://sourceforge.net/projects/crcmod/files/crcmod/crcmod-%{versio}/crcmod-%{version}.tar.gz
License:        MIT
Group:          Development/Python
BuildRequires:  python-devel

%description
Create functions that efficiently compute the Cyclic Redundancy Check 
(CRC) using table lookup.

Features:

    * Create Python functions for computing the CRC. If the optional 
      extension module is installed, the calculations are preformed 
      using fast C code.
    * Create instances of the Crc class that support the interface 
      used by the md5 and sha modules in the Python standard library.
    * Generate C/C++ code that can be incorporated in another project.
    * Any generator polynomial producing 8, 16, 32, or 64 bit CRCs is 
      allowed.
    * Forward and bit-reverse algorithms are supported.

%prep
%setup -q -n %{oname}-%{version}

%build
CFLAGS="%{optflags}" %{_bindir}/python setup.py build

%install
%{_bindir}/python setup.py install --root=%{buildroot}

%files
%defattr(-,root,root,0755)
%doc README changelog
%{_libdir}/python%{py_ver}/site-packages/*


%changelog
* Fri Nov 19 2010 Funda Wang <fwang@mandriva.org> 0:1.7-2mdv2011.0
+ Revision: 598983
- rebuild for py2.7

* Sun Sep 12 2010 Guillaume Rousse <guillomovitch@mandriva.org> 0:1.7-1mdv2011.0
+ Revision: 577729
- new version

* Tue Mar 09 2010 Sandro Cazzaniga <kharec@mandriva.org> 0:1.6.1-1mdv2010.1
+ Revision: 516848
- update to 1.6.1

* Mon Jan 11 2010 Guillaume Rousse <guillomovitch@mandriva.org> 0:1.5-1mdv2010.1
+ Revision: 489399
- new version

* Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 0:1.4-5mdv2010.0
+ Revision: 442084
- rebuild

* Fri Aug 01 2008 Thierry Vignaud <tv@mandriva.org> 0:1.4-4mdv2009.0
+ Revision: 259527
- rebuild

* Thu Jul 24 2008 Thierry Vignaud <tv@mandriva.org> 0:1.4-3mdv2009.0
+ Revision: 247397
- rebuild

* Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 0:1.4-1mdv2008.1
+ Revision: 136447
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Fri Aug 03 2007 David Walluck <walluck@mandriva.org> 0:1.4-1mdv2008.0
+ Revision: 58731
- 1.4


* Tue Jul 25 2006 David Walluck <walluck@mandriva.com> 0:1.3-1mdv2007.0
- release


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6952 |21cr|python-crypto-1.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module crypto

Name:           python-%{module}
Version:        1.4.1
Release:        2
Summary:        Simply tool for cryptography
License:        LGPLv3.0
Group:          Development/Python
URL:            http://ondrejsika.com/docs/python-crypto
Source0:        https://pypi.python.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  python2-devel
Buildrequires:	python2-setuptools
BuildRequires:  python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pkg-resources
BuildArch:      noarch

%description
Simply tool for cryptography

%package -n python2-%{module}
Summary:        Simply tool for cryptography

%description -n python2-%{module}
Simply tool for cryptography

%files -n python2-%{module}
%{py2_puresitedir}/%{module}*

#--------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Simply tool for cryptography
Provides: python3-%{module}

%description -n python3-%{module}
Simply tool for cryptography

%files -n python3-%{module}
%{_bindir}/%{module}
%{_bindir}/de%{module}
%{py3_puresitedir}/%{module}*

#--------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
rm -fv %{buildroot}%{_bindir}/*
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6953 |21cr|python-cryptodome-3.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pycryptodome
%define	module	cryptodome

Name:		python-%{module}
Version:	3.6.4
Release:	1
Summary:	Cryptographic library for Python
Source0:	https://files.pythonhosted.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
License:	Public Domain
Group:		Development/Python
Url:		http://www.pycryptodome.org
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel

%description
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.

PyCryptodome is a fork of PyCrypto. It brings several enhancements
with respect to the last official version of PyCrypto (2.6.1),
for instance:

* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)
* Accelerated AES on Intel platforms via AES-NI
* First class support for PyPy
* Elliptic curves cryptography (NIST P-256 curve only)
* Better and more compact API (`nonce` and `iv` attributes for ciphers,
  automatic generation of random nonces and IVs, simplified CTR cipher mode,
  and more)
* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms
* Salsa20 and ChaCha20 stream ciphers
* scrypt and HKDF
* Deterministic (EC)DSA
* Password-protected PKCS#8 key containers
* Shamir's Secret Sharing scheme
* Random numbers get sourced directly from the OS
  (and not from a CSPRNG in userspace)
* Simplified install process, including better support for Windows
* Cleaner RSA and DSA key generation (largely based on FIPS 186-4)
* Major clean ups and simplification of the code base

PyCryptodome is not a wrapper to a separate C library like OpenSSL.
To the largest possible extent, algorithms are implemented in pure Python.
Only the pieces that are extremely critical to performance (e.g. block ciphers)
are implemented as C extensions.

%package -n python3-%{module}
Summary:	Cryptographic library for Python

%description -n python3-%{module}
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.

PyCryptodome is a fork of PyCrypto. It brings several enhancements
with respect to the last official version of PyCrypto (2.6.1),
for instance:

* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)
* Accelerated AES on Intel platforms via AES-NI
* First class support for PyPy
* Elliptic curves cryptography (NIST P-256 curve only)
* Better and more compact API (`nonce` and `iv` attributes for ciphers,
  automatic generation of random nonces and IVs, simplified CTR cipher mode,
  and more)
* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms
* Salsa20 and ChaCha20 stream ciphers
* scrypt and HKDF
* Deterministic (EC)DSA
* Password-protected PKCS#8 key containers
* Shamir's Secret Sharing scheme
* Random numbers get sourced directly from the OS
  (and not from a CSPRNG in userspace)
* Simplified install process, including better support for Windows
* Cleaner RSA and DSA key generation (largely based on FIPS 186-4)
* Major clean ups and simplification of the code base

PyCryptodome is not a wrapper to a separate C library like OpenSSL.
To the largest possible extent, algorithms are implemented in pure Python.
Only the pieces that are extremely critical to performance (e.g. block ciphers)
are implemented as C extensions.


%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install
mv %{buildroot}%{py3_platsitedir}/Crypto %{buildroot}%{py3_platsitedir}/Cryptodome

%files -n python3-%{module}
%doc AUTHORS.rst Changelog.rst LICENSE.rst README.rst
%{py3_platsitedir}/Cryptodome
%{py3_platsitedir}/pycryptodome*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6954 |21cr|python-cryptopp-0.6.0.1206569328141510525648634803928199668821045408958-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname pycryptopp

Name:           python-cryptopp
Version:        0.6.0.1206569328141510525648634803928199668821045408958
Release:        5
Summary:        Python Wrappers for the Crypto++ Library


Url:            http://allmydata.org/trac/pycryptopp
License:        GPLv2+
Group:          Development/Python
Source:         http://pypi.python.org/packages/source/p/%{modname}/%{modname}-%{version}.tar.gz
BuildRequires:  pkgconfig(cryptopp)
BuildRequires:  python-setuptools
BuildRequires:  python-pyxml
BuildRequires:  python-devel
Patch0:         pycryptopp-0.5.29-disable-w-flag.patch

%description
pycryptopp is a set of Python wrappers for a few of the best crypto algorithms
from the  Crypto++ library. 

RSA-PSS-SHA256 signatures, ECDSA(1363)/EMSA1(SHA-256) signatures, SHA-256
hashes, and AES-CTR encryption for Python.

%prep
%setup -q -n %{modname}-%{version}
%patch0

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
python setup.py build --disable-embedded-cryptopp

%install
python setup.py install --single-version-externally-managed --prefix=%{_prefix} --root=%{buildroot}
rm -r \
  %{buildroot}%{_datadir}/doc/%{modname} \
  %{buildroot}%{py_platsitedir}/%{modname}/test \
  %{buildroot}%{py_platsitedir}/%{modname}/testvectors

%check
python setup.py test

%files
%doc COPYING.GPL COPYING.TGPPL.html ChangeLog NEWS.rst
%{py_platsitedir}/%{modname}
%{py_platsitedir}/%{modname}-%{version}-*.egg-info




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6955 |21cr|python-cssmin-0.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname	cssmin

Name:       python-cssmin
Summary:    A Python port of the YUI CSS compression algorithm
Version:    0.2.0
Release:    4
URL:        http://github.com/zacharyvoase/cssmin
Source0:    https://pypi.python.org/packages/source/c/%{fname}-%{version}.tar.gz
Group:	    Development/Python
License:    BSD
BuildRequires:  python3egg(setuptools)
BuildArch:  noarch

%description
A Python port of the YUI CSS compression algorithm. The library can be used for
merging and compressing CSS files.

%package -n python3-%{fname}
Summary:  A Python port of the YUI CSS compression algorithm

%description -n python3-%{fname}
A Python port of the YUI CSS compression algorithm. The library can be used for
merging and compressing CSS files.


%prep
%setup -qn %{fname}-%{version}

%build
%py3_build

%install
%py3_install
cp %{buildroot}%{_bindir}/cssmin %{buildroot}%{_bindir}/cssmin3


%files -n python3-%fname
%doc PKG-INFO
%{py3_puresitedir}/%{fname}*
%{py3_puresitedir}/__pycache__/*
%{_bindir}/cssmin*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6956 |21cr|python-css-parser-1.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define css_mod css-parser

Summary:	A CSS Cascading Style Sheets library for Python
Name:		python-%{css_mod}
Version:	1.0.8
Release:	1
License:	LGPLv2
Group:		Development/Python
Url:		https://github.com/ebook-utils/css-parser
Source0:	https://github.com/ebook-utils/css-parser/archive/v%{version}.tar.gz?/%{css_mod}-%{version}.tar.gz

BuildArch:	noarch
BuildRequires:  pkgconfig(python2)
BuildRequires:  python2-setuptools
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description
A fork of the cssutils project based on version 1.0.2. 
This fork includes general bug fixes and extensions 
specific to editing and working with ebooks.

The main python source code has been modified so that it
will run without further conversion on both Python >= 2.7 
and Python 3.X without any further modules required. 
All required modifications are handled local to each file

%package -n python2-%{css_mod}
Summary:	%{summary}
Group:		Development/Python
Requires:	pkgconfig(python)

%description -n python2-%{css_mod}
css-parser [![Build Status]( [![Build Status]( fork of the cssutils project
based on version 1.0.2. This fork includes general bug fixes and extensions
specific to editing and working with ebooks.The main python source code has
been modified so that it will run without further conversion on both Python >
2.7 and Python 3.X without any further modules required. All required
modifications.

%files  -n python2-%{css_mod}
%doc README.md
%{python2_sitelib}/css_parser/
%{python2_sitelib}/css_parser-%{version}*.egg-info

#-----------------------------------------------------------------

%package -n python3-%{css_mod}
Summary:	%{summary}
Group:		Development/Python
Requires:	pkgconfig(python3)

%description -n python3-%{css_mod}
A fork of the cssutils project based on version 1.0.2. 
This fork includes general bug fixes and extensions 
specific to editing and working with ebooks.

The main python source code has been modified so that it
will run without further conversion on both Python >= 2.7 
and Python 3.X without any further modules required. 
All required modifications are handled local to each file

%files -n python3-%{css_mod}
%doc README.md
%{python3_sitelib}/css_parser/
%{python3_sitelib}/css_parser-%{version}*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{css_mod}-%{version}
# Remove bundled egg-info
rm -rf %{css_mod}.egg-info

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6957 |21cr|python-cssselect2-0.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	cssselect2

Summary:	Library for parsing CSS3 selectors and translating them to XPath 1.0
Name:		python-%{module}
Version:	0.2.1
Release:	2
Source0:	https://github.com/Kozea/cssselect2/%{module}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://pypi.org/project/cssselect2/
BuildArch:	noarch

%description
cssselect2 is a straightforward implementation of CSS3 Selectors for markup 
documents (HTML, XML, etc.) that can be read by ElementTree-like parsers 
such as cElementTree, lxml, html5lib, etc.
Unlike cssselect, it doesn't translate selectors to XPath and thus does 
not have all the corner cases that are hard or impossible to fix in cssselect.

#------------------------------------------------------------

%package -n python3-%{module}
BuildRequires:  python3egg(setuptools)
Summary:	Library for parsing CSS3 selectors and translating them to XPath 1.0

%description -n python3-%{module}
cssselect2 is a straightforward implementation of CSS3 Selectors for markup.
documents (HTML, XML, etc.) that can be read by ElementTree-like parsers.
such as cElementTree, lxml, html5lib, etc.
Unlike cssselect, it doesn't translate selectors to XPath and thus does.
not have all the corner cases that are hard or impossible to fix in cssselect.

%files -n python3-%{module}
%{py3_puresitedir}/%{module}*

#------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6958 |21cr|python-cssutils-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	cssutils

Name:		python-%{oname}
Version:	1.0.2
Release:	1
Summary:	Python module for parsing and building CSS 
Group:		Development/Python
License:	LGPLv3+
URL:		http://cthedot.de/cssutils/
Source0:	https://files.pythonhosted.org/packages/source/cs/%{oname}/%{oname}-%{version}.tar.gz
BuildArch:	noarch 
BuildRequires:	python2-devel
BuildRequires:	python2-setuptools
  
%description 
cssutils is a Python module for building and parsing CSS (Cascading
Style Sheets).

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Python module for parsing and building CSS 

%description -n python2-%{oname}
cssutils is a Python module for building and parsing CSS (Cascading
Style Sheets).

%prep
%setup -q -n %{oname}-%{version}

%build 
%py2_build

%install 
%py2_install

%files -n python2-%{oname}
%{_bindir}/css*
%{py2_puresitedir}/%{oname}
%{py2_puresitedir}/encutils
%defattr(755,root,root,-)
%{py2_puresitedir}/%{oname}-%{version}-py%{py2_ver}.egg-info
# %{py2_puresitedir}/tests/*py
# %{py2_puresitedir}/tests/test_encutils/*py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6959 |21cr|python-cysignals-1.11.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	modname	cysignals

# Python files are installed into nonstandard locations
%global _python_bytecompile_extra 0

Name:		python-%{modname}
Version:	1.11.2
Release:	1
Group:		Development/Python
Summary:	Interrupt and signal handling for Cython
License:	LGPLv3+
URL:		https://github.com/sagemath/%{modname}
Source0:	https://github.com/sagemath/%{modname}/releases/download/%{version}/%{modname}-%{version}.tar.gz
BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	libpari-devel
# https://bugzilla.redhat.com/show_bug.cgi?id=1445411#c2
Patch0:		%{name}-gdb.patch
# Linux already clears the FPU state
Patch1:		%{name}-emms.patch
# Counteract _FORTIFY_SOURCE
Patch2:		%{name}-fortify.patch
# Fix underlinked signals.so
Patch3:		%{name}-underlink.patch
# Do not fail if cysignals_crash_logs cannot be created
Patch4:		%{name}-crash-logs.patch
# Remove workaround for Cython bug that is already fixed in Fedora
Patch5:		%{name}-sigismember.patch

%global _description %{expand:
When writing Cython code, special care must be taken to ensure that the
code can be interrupted with CTRL-C. Since Cython optimizes for speed,
Cython normally does not check for interrupts. For example, code like
the following cannot be interrupted in Cython:

while True:
    pass

The cysignals package provides mechanisms to handle interrupts
(and other signals and errors) in Cython code.

See http://cysignals.readthedocs.org/ for the full documentation.}

%description	%{_description}

%package	-n python3-%{modname}
Summary:	%{summary}
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires:	python3-devel
BuildRequires:	python3-docs
BuildRequires:	python3dist(cython)
BuildRequires:	python3dist(setuptools)

%description	-n python3-%{modname} %{_description}

%package	-n python3-%{modname}-devel
Summary:	%{summary} headers files
Requires:	python3-%{modname}

%description	-n python3-%{modname}-devel %{_description}

%package	doc
Summary:	Documentation for %{name}
BuildRequires:	python3dist(sphinx)
Requires:	python3-%{modname}
BuildArch:	noarch
%description	doc
Documentation and examples for %{name}.

%prep
%autosetup -p1 -n %{modname}-%{version}

# Use local objects.inv for intersphinx
sed -i "s|'https://docs\.python\.org/2\.7', None|'https://docs.python.org/3', '%{_docdir}/python3-docs/html/objects.inv'|" docs/source/conf.py

# Build for python 3
sed -i 's/language_level=2/language_level=3/' setup.py

%build
%configure
%py3_build

# Build the documentation
export PYTHONPATH=$PWD/$(ls -1d build/lib.linux*%{python3_version})
%__make -C docs html
rst2html --no-datestamp README.rst README.html

%install
%py3_install
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -farp docs/build/html %{buildroot}%{_docdir}/%{name}
rm %{buildroot}%{_docdir}/%{name}/html/.buildinfo

%check
PATH=%{buildroot}%{_bindir}:$PATH
PYTHONPATH=%{buildroot}%{py3_platsitedir}
export PATH PYTHONPATH
python3 rundoctests.py src/cysignals/*.pyx

%files		-n python3-%{modname}
%doc LICENSE
%doc README.html
%{_bindir}/%{modname}-CSI
%{_datadir}/%{modname}/
%{py3_platsitedir}/%{modname}
%{py3_platsitedir}/%{modname}-*.egg-info
%exclude %{py3_platsitedir}/%{modname}/*.h
%exclude %{py3_platsitedir}/%{modname}/*.pxd

%files		-n python3-%{modname}-devel
%{py3_platsitedir}/%{modname}/*.h
%{py3_platsitedir}/%{modname}/*.pxd

%files		doc
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6960 |21cr|python-daemon-2.2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-daemon
Version:        2.2.4
Release:        3
Summary:        Library to implement a well-behaved Unix daemon process
Group:          Development/Python
License:        Apache Software License and GPLv3+
URL:            http://pypi.python.org/pypi/python-daemon
Source0:        http://pypi.io/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch:      noarch

%define debug_package %{nil}

%description
This library implements the well-behaved daemon specification of
PEP 3143, "Standard daemon process library".

%package -n     python3-daemon
Summary:        Library to implement a well-behaved Unix daemon process
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(nose)
BuildRequires:  python3dist(lockfile)
BuildRequires:  python3dist(minimock)
BuildRequires:  python3dist(docutils)
BuildRequires:  python3dist(twine)

%description -n python3-daemon
This library implements the well-behaved daemon specification of
PEP 3143, "Standard daemon process library".

%prep
%setup -q

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install

%files -n python3-daemon
%doc ChangeLog LICENSE.GPL-3 LICENSE.ASF-2 doc/*
%{py3_puresitedir}/daemon/
%{py3_puresitedir}/python_daemon-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6961 |21cr|python-daemonize-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname daemonize
%global debug_package %{nil}

Name:		python-%{srcname}
Version:	2.5.0
Release:	1
Summary:	Library for writing system daemons in Python
License:	MIT
Group:		Development/Python
URL:		https://github.com/thesharp/daemonize
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%global _description \
daemonize is a library for writing system daemons in Python.

%description %{_description}

#------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}.py
%{python3_sitelib}/__pycache__/%{srcname}.*

#------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6962 |21cr|python-daiquiri-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name daiquiri

Name:		python-%{pypi_name}
Version:	2.1.1
Release:	1
Summary:	Library to configure Python logging easily
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/jd/daiquiri
Source0:	https://pypi.io/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
The %{pypi_name} library provides an easy way to configure Python logging.
It also provides some custom formatters and handlers.

#--------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Library to configure Python logging easily
Group:		Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(pbr)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(six) >= 1.9.0
#fir tests
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(python-json-logger)
BuildRequires:  python3egg(testrepository)
BuildRequires:  python3egg(testtools)

Requires:       python3-json-logger

%description -n python3-%{pypi_name}
The %{pypi_name} library provides an easy way to configure Python logging.
It also provides some custom formatters and handlers.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info


#--------------------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:        daiquiri documentation
Group:		Documentation

BuildRequires:  python3egg(sphinx)

%description -n python-%{pypi_name}-doc
Documentation for daiquiri

%files -n python-%{pypi_name}-doc
%doc html 

#--------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build
# generate html docs 
sphinx-build doc/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
%__python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6963 |21cr|python-databases-0.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# When bootstrapping, break circular dependency on starlette in the tests.
%bcond_without bootstrap

# MySQL tests require interacting with a temporary MySQL database. We are able
# to do this, but leave a build conditional in case it breaks.
%bcond_with mysql_tests

Name:           python-databases
Summary:        Async database support for Python
Group:          Development/Python
Version:	0.6.1
Release:	1

License:        BSD
URL:            https://www.encode.io/databases/
%global forgeurl https://github.com/encode/databases
Source0:        %{forgeurl}/archive/%{version}/databases-%{version}.tar.gz

# This package contains no compiled code and should be inherently noarch, but
# the asyncmy dependency for the mysql_asyncmy/mysql+asyncmy extra is
# ExcludeArch on 32-bit platforms (RHBZ#2060899), which unfortunately means
# this package as a whole must be archful in order to drop that extra on the
# affected platforms. We can still make the binary RPMs noarch, except for the
# affected extra metapackage.
%global debug_package %{nil}
%ifnarch %{ix86} %{arm32}
%global with_asyncmy 1
%endif

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# Additional BR’s for testing, from requirements.txt only (therefore not
# generated):
# “Sync database drivers for standard tooling around
# setup/teardown/migrations.”
BuildRequires:  python3egg(psycopg2)
BuildRequires:  python3egg(pymysql)

# “Testing”
# We have excluded formatters, linters, and analysis tools: autoflake, black,
# codecov, isort, mypy, pytest-cov
BuildRequires:  python3egg(pytest)
%if %{without bootstrap}
BuildRequires:  python3egg(starlette)
# Used only as a soft dependency of starlette
BuildRequires:  python3egg(requests)
%endif

%if %{with mysql_tests}
BuildRequires:  mariadb-server
%endif

%global common_description %{expand:
Databases gives you simple asyncio support for a range of databases.

It allows you to make queries using the powerful SQLAlchemy Core expression
language, and provides support for PostgreSQL, MySQL, and SQLite.

Databases is suitable for integrating against any async Web framework, such as
Starlette, Sanic, Responder, Quart, aiohttp, Tornado, or FastAPI.

Documentation: https://www.encode.io/databases/

Community: https://discuss.encode.io/c/databases}

%description %{common_description}


# README.md:
#
#   Note that if you are using any synchronous SQLAlchemy functions such as
#   `engine.create_all()` or [alembic][alembic] migrations then you still have
#   to install a synchronous DB driver: [psycopg2][psycopg2] for PostgreSQL and
#   [pymysql][pymysql] for MySQL.
#
# Therefore we manually write out the extras metapackages for PostgreSQL and
# MySQL backends so that we can add these drivers as Recommends. We can still
# handle the SQLite extras the easy way—but we don’t, because they would
# inherit the archfulness of the base package, and we want them to be noarch.
#---------------------------------------------------------------------------
%package -n python3-databases+postgresql
Summary:        Metapackage for python3-databases: postgresql extras
Group:          Development/Python
BuildArch:      noarch
Requires:       python3-databases = %{version}-%{release}
Recommends:     python3egg(psycopg2)

%description -n python3-databases+postgresql
This is a metapackage bringing in postgresql extras requires for
python3-databases. It makes sure the dependencies are installed.

%files -n python3-databases+postgresql
%ghost %{python3_sitelib}/*.dist-info

#---------------------------------------------------------------------------
%package -n python3-databases+asyncpg
Summary:        Metapackage for python3-databases: asyncpg extras
Group:          Development/Python
BuildArch:      noarch
Requires:       python3-databases = %{version}-%{release}
Recommends:     python3egg(psycopg2)

%description -n python3-databases+asyncpg
This is a metapackage bringing in asyncpg extras requires for
python3-databases. It makes sure the dependencies are installed.

%files -n python3-databases+asyncpg
%ghost %{python3_sitelib}/*.dist-info

#---------------------------------------------------------------------------
%package -n python3-databases+aiopg
Summary:        Metapackage for python3-databases: aiopg extras
Group:          Development/Python
BuildArch:      noarch
Requires:       python3-databases = %{version}-%{release}
Recommends:     python3egg(psycopg2)

Provides:       python3-databases+postgresql_aiopg = %{version}-%{release}
Obsoletes:      python3-databases+postgresql_aiopg < 0.6.0-1

%description -n python3-databases+aiopg
This is a metapackage bringing in aiopg extras requires for
python3-databases. It makes sure the dependencies are installed.

%files -n python3-databases+aiopg
%ghost %{python3_sitelib}/*.dist-info

#---------------------------------------------------------------------------

%package -n python3-databases+mysql
Summary:        Metapackage for python3-databases: mysql extras
Group:          Development/Python
BuildArch:      noarch
Requires:       python3-databases = %{version}-%{release}
Recommends:     python3egg(pymysql)

%description -n python3-databases+mysql
This is a metapackage bringing in mysql extras requires for
python3-databases. It makes sure the dependencies are installed.

%files -n python3-databases+mysql
%ghost %{python3_sitelib}/*.dist-info

#---------------------------------------------------------------------------

%package -n python3-databases+aiomysql
Summary:        Metapackage for python3-databases: aiomysql extras
Group:          Development/Python
BuildArch:      noarch
Requires:       python3-databases = %{version}-%{release}
Recommends:     python3egg(pymysql)

%description -n python3-databases+aiomysql
This is a metapackage bringing in aiomysql extras requires for
python3-databases. It makes sure the dependencies are installed.

%files -n python3-databases+aiomysql
%ghost %{python3_sitelib}/*.dist-info

#---------------------------------------------------------------------------

%if 0%{?with_asyncmy}
%package -n python3-databases+asyncmy
Summary:        Metapackage for python3-databases: asyncmy extras
Group:          Development/Python
Recommends:     python3egg(pymysql)
Requires: python3-databases = %{version}-%{release}

# Provide upgrade/migration path for three releases:
Provides:       python3-databases+mysql_asyncmy = %{version}-%{release}
Obsoletes:      python3-databases+mysql_asyncmy < 0.6.0-1

%description -n python3-databases+asyncmy
This is a metapackage bringing in asyncmy extras requires for
python3-databases. It makes sure the dependencies are installed.

%files -n python3-databases+asyncmy
%ghost %{python3_sitelib}/*.dist-info
%endif

#---------------------------------------------------------------------------

%package -n python3-databases+sqlite
Summary:        Metapackage for python3-databases: sqlite extras
Group:          Development/Python
BuildArch:      noarch
Requires:       python3-databases = %{version}-%{release}

%description -n python3-databases+sqlite
This is a metapackage bringing in sqlite extras requires for
python3-databases. It makes sure the dependencies are installed.

%files -n python3-databases+sqlite
%ghost %{python3_sitelib}/*.dist-info

#---------------------------------------------------------------------------

%package -n python3-databases+aiosqlite
Summary:        Metapackage for python3-databases: aiosqlite extras
Group:          Development/Python
BuildArch:      noarch
Requires:       python3-databases = %{version}-%{release}

%description -n python3-databases+aiosqlite
This is a metapackage bringing in aiosqlite extras requires for
python3-databases. It makes sure the dependencies are installed.

%files -n python3-databases+aiosqlite
%ghost %{python3_sitelib}/*.dist-info

#---------------------------------------------------------------------------

%package -n     python3-databases
Summary:        %{summary}
Group:          Development/Python
BuildArch:      noarch

%description -n python3-databases %{common_description}

%files -n python3-databases -f %{pyproject_files}
%doc CHANGELOG.md
%doc README.md

#---------------------------------------------------------------------------

%prep
%autosetup -n databases-%{version} -p1
%if !0%{?with_asyncmy}
sed -r -i \
    -e 's/^([[:blank:]]*)(.*import AsyncMyBackend.*)$/# \1\2\n\1pass/' \
    -e 's/^def test_asyncmy_.*$/@pytest.mark.skip("asyncmy does not support 32-bit")\n&/' \
    tests/test_connection_options.py
%endif


%generate_buildrequires
%{pyproject_buildrequires \
    -x postgresql \
    -x asyncpg \
    -x aiopg \
    -x mysql \
    -x aiomysql \
    %{?with_asyncmy:-x asyncmy} \
    -x sqlite \
    -x aiosqlite}


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files databases


%check
%if %{with bootstrap}
rm tests/test_integration.py
%endif

# E   ModuleNotFoundError: No module named 'tests'
touch tests/__init__.py

# We can only easily run the tests with SQLite; other databases require a
# properly configured server, which we cannot in general provide as an
# unprivileged user. However, see the MySQL support below.
#
# The following environment variable is a comma-separated list with (optional?)
# whitespace.
export TEST_DATABASE_URLS="sqlite:///testsuite, sqlite+aiosqlite:///testsuite"

%if %{with mysql_tests}
# Based on rubygem-mysql2 packaging; see also python-asyncmy

# Use a randomized port in case the standard mysqld port 3306 is occupied, and
# to account for multiple simultaneous builds on the same host.
# https://src.fedoraproject.org/rpms/rubygem-pg/pull-request/3
MYSQL_PORT="$((13306 + ${RANDOM} % 1000))"
MYSQL_USER="$(whoami)"
MYSQL_DATA_DIR="${PWD}/data"
MYSQL_SOCKET="${PWD}/mysql.sock"
MYSQL_LOG="${PWD}/mysql.log"
MYSQL_PID_FILE="${PWD}/mysql.pid"

mkdir "${MYSQL_DATA_DIR}"
mysql_install_db --datadir="${MYSQL_DATA_DIR}" --log-error="${MYSQL_LOG}"

%{_libexecdir}/mysqld --port="${MYSQL_PORT}" --ssl \
    --datadir="${MYSQL_DATA_DIR}" --log-error="${MYSQL_LOG}" \
    --socket="${MYSQL_SOCKET}" --pid-file="${MYSQL_PID_FILE}" & :

echo "Waiting for server… ${i}" 1>&2
TIMEOUT=30
while ! grep -q 'ready for connections.' "${MYSQL_LOG}"
do
  sleep 1
  TIMEOUT=$((TIMEOUT - 1))
  if [[ "${TIMEOUT}" = '0' ]]
  then
    echo 'Timed out' 1>&2
    exit 1
  fi
done

echo 'Ready' 1>&2
trap "kill $(cat "${MYSQL_PID_FILE}")" INT TERM EXIT

# See https://github.com/brianmario/mysql2/blob/master/.travis_setup.sh
mysql -u "${MYSQL_USER}" -S "${MYSQL_SOCKET}" -P "${MYSQL_PORT}" \
  -e "ALTER USER 'root'@'localhost' IDENTIFIED BY '123456';"
mysql -u 'root' --password='123456' \
  --protocol='TCP' -h 'localhost' -P "${MYSQL_PORT}" \
  -e 'CREATE DATABASE testsuite;'

for url in \
    "mysql://root:123456@localhost:${MYSQL_PORT}/testsuite" \
%if %{with asyncmy}
    "mysql+asyncmy://root:123456@localhost:${MYSQL_PORT}/testsuite" \
%endif
    "mysql+aiomysql://root:123456@localhost:${MYSQL_PORT}/testsuite"
do
  export TEST_DATABASE_URLS="${TEST_DATABASE_URLS}, ${url}"
done
%endif

%pytest --verbose



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6964 |21cr|python-datamatrix-0.15.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module python_datamatrix

Name:           python-datamatrix
Version:	0.15.3
Release:	1
Summary:        An intuitive, Pythonic way to work with tabular data
License:        GPLv3
Group:          Development/Python
URL:            https://github.com/smathot/python-datamatrix
Source:         https://files.pythonhosted.org/packages/source/p/python-datamatrix/python-datamatrix-%{version}.tar.gz

BuildRequires:  python3egg(setuptools)
Provides:       python3-datamatrix = %{EVRD}
BuildArch:      noarch

%description
An intuitive, Pythonic way to work with tabular data.

%files
%{py3_puresitedir}/datamatrix
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info

#------------------------------------------

%prep
%setup -q
rm -fr *-egg.info

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6965 |21cr|python-dateparser-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module dateparser

Name:           python-%{module}
Version:	1.1.1
Release:	1
Summary:        A Python parser for human readable dates
Group:          Development/Python
License:        BSD
Url:            https://github.com/scrapinghub/%{module}
Source0:        https://github.com/scrapinghub/%{module}/archive/v%{version}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
dateparser provides modules to easily parse localized dates in almost any
string formats commonly found on web pages.

%package -n python3-%{module}
Summary:        %{summary}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(python-dateutil)
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(parameterized)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(regex)
BuildRequires:  python3egg(tzlocal)
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(wheel)
BuildRequires:  python3egg(pytz)


%description -n python3-%{module}
dateparser provides modules to easily parse localized dates in almost any
string formats commonly found on web pages.

%files -n python3-%{module}
%doc *.rst LICENSE
%{_bindir}/%{module}-download
%{py3_puresitedir}/*.egg-info
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}_data/
%{py3_puresitedir}/%{module}_scripts/
%{py3_puresitedir}/%{module}_cli/
#-----------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build


%install
%py3_install

%check
# too many missing modules, skip for now
#%%py3_test
#PYTHONPATH=%%{buildroot}/%%{py3_puresitedir}






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6966 |21cr|python-ddt-1.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ddt

Name:		python-%{oname}
Version:	1.1.1
Release:	4
Summary:	Data-Driven/Decorated Tests
Source0:	http://pypi.python.org/packages/source/d/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/txels/ddt
BuildArch:	noarch

%description
A library to multiply test cases

#---------------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Data-Driven/Decorated Tests
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pyyaml)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(nose)

%description -n python3-%{oname}
A library to multiply test cases

%files -n python3-%{oname}
%{py3_puresitedir}/ddt.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/ddt*.egg-info
#---------------------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install 

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6967 |21cr|python-debian-0.1.36-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-debian
Version:        0.1.36
Release:        1
Group:          Development/Python
Summary:        Modules for Debian-related data formats
License:        GPLv2+ and GPLv3+
Source0:        http://ftp.debian.org/debian/pool/main/p/python-debian/python-debian_%{version}.tar.xz
URL:            https://salsa.debian.org/python-debian-team/python-debian
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools



%description
This package provides Python modules that abstract many formats of Debian\
related files. Currently handled are:\
* Debtags information (debian.debtags module)\
* debian/changelog (debian.changelog module)\
* Packages files, pdiffs (debian.debian_support module)\
* Control files of single or multiple RFC822-style paragraphs, e.g.\
  debian/control, .changes, .dsc, Packages, Sources, Release, etc.\
  (debian.deb822 module)\
* Raw .deb and .ar files, with (read-only) access to contained\
  files and meta-information
#---------------------------------------------------------------


%package -n python3-debian
Summary:        Modules for Debian-related data formats
BuildRequires:  python3-devel
Requires:       python3-chardet
Requires:       xz
Requires:       python3-six
Suggests:       gnupg


%description -n python3-debian
This package provides Python modules that abstract many formats of Debian
related files. Currently handled are:
* Debtags information (debian.debtags module)
* debian/changelog (debian.changelog module)
* Packages files, pdiffs (debian.debian_support module)
* Control files of single or multiple RFC822-style paragraphs, e.g.
  debian/control, .changes, .dsc, Packages, Sources, Release, etc.
  (debian.deb822 module)
* Raw .deb and .ar files, with (read-only) access to contained
  files and meta-information

%files -n python3-debian
%doc README.rst HISTORY.deb822
%dir %{py3_puresitedir}/debian
%dir %{py3_puresitedir}/debian_bundle
%{py3_puresitedir}/*.py*
%{py3_puresitedir}/__pycache__
%{py3_puresitedir}/debian/*.py*
%{py3_puresitedir}/debian/__pycache__
%{py3_puresitedir}/debian_bundle/__init__.py*
%{py3_puresitedir}/debian_bundle/__pycache__
%{py3_puresitedir}/python_debian*

#----------------------------------------------

%prep
%setup -q


%build
sed -e 's/__CHANGELOG_VERSION__/%{version}/' < lib/debian/_version.py.in > lib/debian/_version.py
%py3_build


%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6968 |21cr|python-debtcollector-1.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module debtcollector

Name:        python-%{module}
Version:     1.3.0
Release:     4
Summary:     A collection of Python deprecation patterns and strategies
Group:       Development/Python
License:     ASL 2.0
URL:         https://pypi.python.org/pypi/%{module}
Source0:     http://tarballs.openstack.org/%{module}/%{module}-%{version}.tar.gz
BuildArch:   noarch

%description
It is a collection of functions/decorators 
which is used to signal a user when
*  a method (static method, class method, 
or regular instance method) or a class
    or function is going to be removed at 
    some point in the future.
* to move a instance method/property/class 
from an existing one to a new one
* a keyword is renamed
* further customizing the emitted messages

#---------------------------------------------------------------------

%package -n python3-%{module}
Summary:     A collection of Python deprecation patterns and strategies

BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(pbr)
Requires:    python3egg(babel)
Requires:    python3egg(pbr)
Requires:    python3egg(six)
Requires:    python3egg(wrapt)

%description -n python3-%{module}
It is a collection of functions/decorators 
which is used to signal a user when
*  a method (static method, class method, 
or regular instance method) or a class
    or function is going to be removed at 
    some point in the future.
* to move a instance method/property/class 
from an existing one to a new one
* a keyword is renamed
* further customizing the emitted messages

%files -n python3-%{module}
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info
#---------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# let RPM handle deps
rm -rf %{module}-%{version}/requirements.txt

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6969 |21cr|python-delorean-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Delorean

Name:		python-delorean
Version:	0.6.0
Release:	2
Summary:	Library for manipulating datetimes with ease and clarity
Source0:	http://pypi.python.org/packages/source/D/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT license
Group:		Development/Python
Url:		https://github.com/myusuf3/delorean
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
Provides:	python3-delorean = %{EVRD}

%description

Delorean: Time Travel Made Easy
===============================

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
#python setup.py test

%files
%doc CHANGES.rst
%doc LICENSE.txt
%doc README.rst
%doc dev-requirements.txt
%doc requirements.txt
%doc docs/license.rst
%{py3_puresitedir}/delorean/*.py*
%{py3_puresitedir}/Delorean*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6970 |21cr|python-dialog-3.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pythondialog

Name:		python-dialog
Version:	3.5.2
Release:	1
Summary:	A Python interface to the UNIX dialog utility and mostly-compatible programs
Source0:	https://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
License:	LGPLv2+
Group:		Development/Python
Url:		http://pythondialog.sourceforge.net/
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

BuildArch:	noarch

%description
pythondialog is a Python wrapper for the UNIX dialog_ utility
originally written by Savio Lam and later rewritten by Thomas E. Dickey.
Its purpose is to provide an easy to use, pythonic and as complete as
possible interface to dialog_ from Python code.

#--------------------------------------------
%package -n python3-dialog
Requires:       dialog
Summary:        A Python3 interface to the UNIX dialog utility and mostly-compatible programs

%description -n python3-dialog
pythondialog is a Python3 wrapper for the UNIX dialog_ utility
originally written by Savio Lam and later rewritten by Thomas E. Dickey.
Its purpose is to provide an easy to use, pythonic and as complete as
possible interface to dialog_ from Python code.

%files -n python3-dialog
%doc README.rst COPYING
%{py3_puresitedir}/dialog.py*
%{py3_puresitedir}/__pycache__/
%{py3_puresitedir}/pythondialog-*.egg-info

#--------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{py3_puresitedir}
PYTHONDONTWRITEBYTECODE=1
python3 -c 'import dialog'



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6971 |21cr|python-dicom-2.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	dicom

Summary:	Read, modify and write DICOM files with python code
Name:		python-%{module}
Version:	2.4.4
Release:	1
Source0:	https://github.com/darcymason/pydicom/archive/v%{version}/py%{module}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/darcymason/%{module}
BuildArch:	noarch

%description
pydicom is a pure python package for working with DICOM files. It was made
for inspecting and modifying DICOM data in an easy "pythonic" way. The
modifications can be written again to a new file. As a pure python2 package,
it should run anywhere python2 runs without any other requirements.

%package -n python3-%{module}
Summary:	Read, modify and write DICOM files with python code
BuildRequires:  python3-devel python3-setuptools python3-six
BuildRequires:  python3-sphinx python3-sphinx_rtd_theme python3-sphinx-gallery python3-numpydoc
BuildRequires:  python3-numpy python3-dateutil python3-pytest
Requires:       python3-dateutil
Recommends:     python3-numpy
Recommends:     python3-matplotlib
Recommends:     python3-tkinter
Recommends:     python3-pillow

%description -n python3-%{module}
pydicom is a pure python package for working with DICOM files. It was made
for inspecting and modifying DICOM data in an easy "pythonic" way. The
modifications can be written again to a new file. As a pure python package,
it should run anywhere python runs without any other requirements.


%prep
%setup -q -n py%{module}-%{version}

%build
%py3_build

%install
%py3_install

%clean

%files -n python3-dicom
%{py3_puresitedir}/*
%{_bindir}/pydicom

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6972 |21cr|python-diff-match-patch-20200713-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global        pypi_name diff-match-patch

%global        desc The Diff Match and Patch libraries offer robust algorithms to perform the \
operations required for synchronizing plain text.

Name:          python-%{pypi_name}
Version:       20200713
Release:       1
Summary:       Algorithms for synchronzing plain text
Group:         Development/Python
License:       ASL 2.0
URL:           https://pypi.python.org/pypi/diff-match-patch/
Source0:       https://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildArch:     noarch
BuildRequires: python3-devel
BuildRequires: python3-setuptools

%description
%{desc}

#-------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:       %{summary}
Group:         Development/Python

%description -n python3-%{pypi_name}
%{desc}

%files -n python3-%{pypi_name}
%license LICENSE
%{python3_sitelib}/diff_match_patch*

#-------------------------------------------------------
%prep
%setup -n %{pypi_name}-%{version}

%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6973 |21cr|python-discid-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	discid

Name:		python-%{pypi_name}
Version:	1.2.0
Release:	1
Summary:	Python binding of Libdiscid
Source0:	https://pypi.io/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	LGPLv3+
Group:		Development/Python
Url:		https://python-discid.readthedocs.org/
BuildArch:	noarch
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	python3-devel

%description
Libdiscid Python bindings
-------------------------

Libdiscid's main purpose is the calculation of an identifier of audio
discs (disc ID) to use for the `MusicBrainz database`.

That identifier is calculated from the TOC of the disc, similar to the
freeDB CDDB identifier. Libdiscid can calculate MusicBrainz disc IDs and
freeDB disc IDs.
Additionally the MCN of the disc and ISRCs from the tracks can be extracted.

This module is a close binding that offloads all relevant data
storage and calculation to Libdiscid. On the other hand it gives a
pythonic API and uses objects and exceptions.

The official API documentation can be found at `readthedocs.org`_

For more information on Libdiscid see `libdiscid`_.

For more information about the calculation of these disc ids see `Disc
ID Calculation`_.

Usage
~~~~~
.. code:: python

    # this will load Libdiscid
    import discid

    disc = discid.read()  # use default device
    print "id: %s" % disc.id  # Python 2
    print("id: %s" % disc.id) # Python 3

See also the examples.py.

License
~~~~~~~
This module is released under the GNU Lesser General Public License
Version 3. See COPYING.LESSER for details.

Bugs
~~~~
You can submit tickets at `GitHub`_.

.. _readthedocs.org: https://python2-discid.readthedocs.org/
.. _libdiscid: http://musicbrainz.org/doc/libdiscid
.. _Disc ID Calculation: http://musicbrainz.org/doc/Disc_ID_Calculation
.. _GitHub: https://github.com/JonnyJD/python2-discid

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python binding of Libdiscid

%description -n python3-%{pypi_name}
Libdiscid Python bindings
-------------------------

Libdiscid's main purpose is the calculation of an identifier of audio
discs (disc ID) to use for the `MusicBrainz database`.

That identifier is calculated from the TOC of the disc, similar to the
freeDB CDDB identifier. Libdiscid can calculate MusicBrainz disc IDs and
freeDB disc IDs.
Additionally the MCN of the disc and ISRCs from the tracks can be extracted.

This module is a close binding that offloads all relevant data
storage and calculation to Libdiscid. On the other hand it gives a
pythonic API and uses objects and exceptions.

The official API documentation can be found at `readthedocs.org`_

For more information on Libdiscid see `libdiscid`_.

For more information about the calculation of these disc ids see `Disc
ID Calculation`_.

Usage
~~~~~
.. code:: python

    # this will load Libdiscid
    import discid

    disc = discid.read()  # use default device
    print "id: %s" % disc.id  # Python 2
    print("id: %s" % disc.id) # Python 3

See also the examples.py.

License
~~~~~~~
This module is released under the GNU Lesser General Public License
Version 3. See COPYING.LESSER for details.

Bugs
~~~~
You can submit tickets at `GitHub`_.

.. _readthedocs.org: https://python-discid.readthedocs.org/
.. _libdiscid: http://musicbrainz.org/doc/libdiscid
.. _Disc ID Calculation: http://musicbrainz.org/doc/Disc_ID_Calculation
.. _GitHub: https://github.com/JonnyJD/python-discid

%files -n python3-%{pypi_name}
%doc COPYING
%doc COPYING.LESSER
%doc README.rst
%doc doc/CHANGES.rst
%{py3_puresitedir}/discid
%{py3_puresitedir}/discid*.egg-info

#----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6974 |21cr|python-discover-0.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	discover

Name:		python-%{oname}
Version:	0.4.0
Release:	4
Summary:	Test discovery for unittest. Backported from Python 2.7
Source0:	http://pypi.python.org/packages/source/d/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://pypi.python.org/pypi/discover/
BuildArch:	noarch


%description
This is the test discovery mechanism and ``load_tests`` 
protocol for unittest
backported from Python 2.7 to work with Python 2.4 or 
more recent (including Python 3).

#-------------------------------------------------------------------
%package -n     python3-%{oname}
Summary:	Test discovery for unittest backported for Python3 
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(unittest2)
BuildArch:	noarch

%description -n python3-%{oname}
This is the test discovery mechanism and ``load_tests`` 
protocol for unittest
backported from Python 2.7 to work with Python 2.4 or 
more recent (including Python 3).

%files -n python3-%{oname}
%doc README.txt
%{_bindir}/python3-discover
%{_bindir}/discover
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/discover.py*
%{py3_puresitedir}/discover*.egg-info
#-------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%build
python3 setup.py build

%install
python3 setup.py install --root %{buildroot}
cd %{buildroot}%{_bindir}
cp discover python3-discover

chmod +x %{buildroot}%{py3_puresitedir}/discover.py

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6975 |21cr|python-distutils-extra-2.39-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-distutils-extra
Version:	2.39
Release:	3
Summary:	Enhancements to the Python build system
Group:		Development/Python
License:	GPLv2+
URL:		https://launchpad.net/python-distutils-extra
Source0:	https://launchpad.net/python-distutils-extra/trunk/%{version}/+download/%{name}-%{version}.tar.gz

BuildArch:	noarch
BuildRequires:	python2-setuptools
BuildRequires:	python3-setuptools

%description
python-distutils-extra allows you to easily integrate gettext, themed icons
and GNOME documentation into your build and installation process. 


%package -n python2-distutils-extra
Summary: Enhancements to the Python 3 build system
Group: Development/Python
Obsoletes: python-distutils-extra < %{version}-%{release}
Provides: python-distutils-extra = %{version}-%{release}
BuildRequires:  python2-distribute
BuildRequires:  python2-devel

%description -n python2-distutils-extra
python-distutils-extra allows you to easily integrate gettext, themed icons
and GNOME documentation into your build and installation process. 

%package -n python3-distutils-extra
Summary: Enhancements to the Python 3 build system
Group: Development/Python
Provides: python3-distutils-extra = %{version}-%{release}
BuildRequires:  python3-distribute
BuildRequires:  python3-devel

%description -n python3-distutils-extra
python3-distutils-extra allows you to easily integrate gettext, themed icons
and GNOME documentation into your build and installation process. 

%prep
%setup -q -c
mv %{name}-%{version} python2
cp -r python2 python3

%build
pushd python2
%__python2 ./setup.py build
popd

pushd python3
%__python3 ./setup.py build
popd

%install
pushd python2
%__python2 setup.py install --root=%{buildroot} 
popd
chmod a+x %{buildroot}%{python2_sitelib}/DistUtilsExtra/command/build_extra.py

pushd python3
%__python3 setup.py install --root=%{buildroot} 
popd

%files -n python2-distutils-extra
%doc python2/doc/*
%{python2_sitelib}/DistUtilsExtra/
%{python2_sitelib}/python_distutils_extra*.egg-info

%files -n python3-distutils-extra
%doc python3/doc/*
%{python3_sitelib}/DistUtilsExtra/
%{python3_sitelib}/python_distutils_extra*.egg-info



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6976 |21cr|python-django-auth-ldap-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	django-auth-ldap

Name: 		python-%{module}
Version: 	3.0.0
Release: 	1
Summary: 	Django LDAP authentication backend
License:	BSD
Group: 		Development/Python
URL: 		https://github.com/django-auth-ldap/django-auth-ldap
Source0: 	https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
This is a Django authentication backend that authenticates against an LDAP
service. Configuration can be as simple as a single distinguished name
template, but there are many rich configuration options for working with users,
groups, and permissions.

#---------------------------------------------------------------------------

%package -n	python3-%{module}
Summary:	Django LDAP authentication backend
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-setuptools_scm
BuildRequires:	python3-toml
Requires:	python3-ldap

%description -n python3-%{module}
This is a Django authentication backend that authenticates against an LDAP
service. Configuration can be as simple as a single distinguished name
template, but there are many rich configuration options for working with users,
groups, and permissions.
This is the Python 3 build of %{module}.

%files -n python3-%{module}
%doc CHANGES LICENSE README* docs
%{py3_puresitedir}/django_auth_ldap/
%{py3_puresitedir}/django_auth_ldap-%{version}-py*.egg-info

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6977 |21cr|python-django-cache-url-3.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django-cache-url

Name:           python-%{pypi_name}
Version:        3.4.2
Release:        1
Summary:        Use Cache URLs in your Django application
Group:          Development/Python
License:        MIT
URL:            https://github.com/epicserve/django-cache-url
Source0:        %{pypi_source}
BuildArch:      noarch

%description
This simple Django utility allows you to utilize the 12factor inspired
CACHE_URL environment variable to configure your Django application.

#-----------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
This simple Django utility allows you to utilize the 12factor inspired
CACHE_URL environment variable to configure your Django application.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/django_cache_url/__pycache__
%{python3_sitelib}/django_cache_url/*.py
%{python3_sitelib}/django_cache_url-%{version}-py*.egg-info

#-----------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6978 |21cr|python-django-compressor-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django_compressor

Name:		python-django-compressor
Version:	2.4
Release:	1
Summary:	Compresses linked and inline JavaScript or CSS into single cached files
Group:		Development/Python
License:	MIT
URL:		https://pypi.python.org/pypi/django_compressor
Source0:	https://pypi.io/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
 
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
 
%description
Django Compressor combines and compresses linked and inline Javascript
or CSS in a Django templates into cacheable static files by using the
``compress`` template tag.  HTML in between 
``{% compress js/css %}`` and ``{% endcompress %}`` is
parsed and searched for CSS or JS. These styles and scripts are subsequently
processed with optional, configurable compilers and filters.

#-----------------------------------------------------------------------------
%package -n python3-django-compressor
Summary:	Compresses linked and inline JavaScript or CSS into single cached files
Group:		Development/Python

%description -n python3-django-compressor
Django Compressor combines and compresses linked and inline Javascript
or CSS in a Django templates into cacheable static files by using the
``compress`` template tag.  HTML in between 
``{% compress js/css %}`` and ``{% endcompress %}`` is
parsed and searched for CSS or JS. These styles and scripts are subsequently
processed with optional, configurable compilers and filters.

%files -n python3-django-compressor
%doc README.rst LICENSE
%{python3_sitelib}/compressor
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#-----------------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6979 |21cr|python-django-configurations-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django-configurations

Name:           python-%{pypi_name}
Version:	2.4
Release:	1
Summary:        A helper for organizing Django settings
Group:          Development/Python
License:        BSD
URL:            https://django-configurations.readthedocs.io/
Source0:	https://files.pythonhosted.org/packages/9b/09/298dc223f7063af32a2ab06a3f2e33baab8cb8be2854b71ce2e03924c969/django-configurations-2.4.tar.gz
BuildArch:      noarch

%description
django-configurations eases Django project configuration by relying on the
composability of Python classes. It extends the notion of Django's module
based settings loading with well established object oriented programming
patterns.

#------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3-django-database-url
BuildRequires:  python3-django-email-url
BuildRequires:  python3-django-search-url
BuildRequires:  python3-django-cache-url
BuildRequires:  python3-django
BuildRequires:  python3-mock
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-six

%description -n python3-%{pypi_name}
django-configurations eases Django project configuration by relying on the
composability of Python classes. It extends the notion of Django's module
based settings loading with well established object oriented programming
patterns.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/django-cadmin
%{python3_sitelib}/configurations
%{python3_sitelib}/django_configurations-%{version}-py*.egg-info

#------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:        The documentation for %{name}
Group:          Documentation
BuildRequires:  python3-sphinx

%description -n python-%{pypi_name}-doc
Documentation for %{name}.

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE

#------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build
PYTHONPATH=${PWD} sphinx-build-3 docs html
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

# Tests are failing
# https://github.com/jazzband/django-configurations/issues/249
#%check
#export DJANGO_CONFIGURATION="Test"
#export DJANGO_SETTINGS_MODULE="tests.settings.main"
#PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} setup.py test



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6980 |21cr|python-django-contact-form-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module django-contact-form

Summary:	An extensible contact-form application for Django
Name:		python-%{module}
Version:	2.0.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/ubernostrum/%{module}
Source0:	https://github.com/ubernostrum/%{module}/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(django)
BuildArch:	noarch

%description
An extensible contact-form application for Django.

#-----------------------------------------------------------------

%package -n python3-%{module}
Summary:  An extensible contact-form application for Django

Requires:	python3egg(django)

%description -n python3-%{module}
An extensible contact-form application for Django.

%files -n python3-%{module}
%doc LICENSE *.rst
%{py3_puresitedir}/*

#-----------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
%{__python3} runtests.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6981 |21cr|python-django-crispy-forms-1.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module django-crispy-forms

Name:           python-%{module}
Version:	1.14.0
Release:	1
Summary:        Best way to have Django DRY forms
Group:          Development/Python
License:        MIT
Url:            http://pypi.python.org/pypi/%{module}/%{version}
Source0:	https://files.pythonhosted.org/packages/60/96/56854b9f0b437454cef5dd5e9977017a81c23e235eceb6f7ea9c7848d06d/django-crispy-forms-1.14.0.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:	python3egg(pytest)
Requires:       python3egg(django)
Requires:	python3egg(coverage)
Requires:	python3egg(pytest-cov)
Requires:	python3egg(wheel)
Requires:	python3egg(twine)
Requires:	python3egg(pytest)

BuildArch:      noarch

%description
The best way to have Django DRY forms. Build programmatic reusable layouts out
of components, having full control of the rendered HTML without writing HTML in
templates. All this without breaking the standard way of doing things in Django,
so it plays nice with any other form application.
#------------------------------------------------------

%package -n python3-%{module}
Summary: %{summary} - Python 3 version


%description -n python3-%{module}
The best way to have Django DRY forms. Build programmatic reusable layouts out
of components, having full control of the rendered HTML without writing HTML in
templates. All this without breaking the standard way of doing things in Django,
so it plays nice with any other form application.

%files -n python3-%{module}
%license LICENSE.txt
%doc README.rst
%{py3_puresitedir}/crispy_forms/
%{py3_puresitedir}/django_crispy_forms-*.egg-info
#------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install
 


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6982 |21cr|python-django-database-url-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name dj_database_url

Name:           python-django-database-url
Version:        0.5.0
Release:        1
Summary:        Use Database URLs in your Django Application
Group:          Development/Python
License:        BSD
URL:            https://github.com/kennethreitz/dj-database-url
Source0:        https://github.com/kennethreitz/dj-database-url/archive/v%{version}.tar.gz#/dj-database-url-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%global _description\
This simple Django utility allows you to utilize the 12factor inspired\
DATABASE_URL environment variable to configure your Django application.

%description %_description

#--------------------------------------------------------------
%package -n python3-django-database-url
Summary:        %summary
Group:          Development/Python
Requires:       python3-django

%description -n python3-django-database-url %_description
This simple Django utility allows you to utilize the 12factor inspired
DATABASE_URL environment variable to configure your Django application.

%files -n python3-django-database-url
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/__pycache__/%{pypi_name}.cpython-*.py*
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#--------------------------------------------------------------

%prep
%autosetup -n dj-database-url-%{version}

%build
%py3_build

%install
%py3_install

%check
%__python3 test_dj_database_url.py



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6983 |21cr|python-django-email-url-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name dj-email-url
%global pkg_name django-email-url

Name:           python-%{pkg_name}
Version:        1.0.5
Release:        1
Summary:        Use an URL to configure email backend settings in your Django Application
Group:          Development/Python
License:        BSD
URL:            https://github.com/migonzalvar/dj-email-url
Source0:        %{pypi_source}
BuildArch:      noarch

%description
This utility allows to utilize the 12factor inspired environments variable to
configure the email backend in a Django application.

#-------------------------------------------------------------
%package -n     python3-%{pkg_name}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pkg_name}
This utility allows to utilize the 12factor inspired environments variable to
configure the email backend in a Django application.

%files -n python3-%{pkg_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/dj_email_url.py
%{python3_sitelib}/dj_email_url-%{version}-py*.egg-info

#-------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6984 |21cr|python-django-filter-21.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module django-filter

Name:           python-%{module}
Version:        21.1
Release:        1
Summary:        A Django application for allowing users to filter queryset dynamically
Group:          Development/Python
License:        BSD
Url:            https://github.com/carltongibson/django-filter
Source0:        https://github.com/carltongibson/django-filter/archive/refs/tags/%{version}#/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(django)
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(djangorestframework)
BuildRequires:  python3egg(django-crispy-forms)
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(sphinx-rtd-theme)
BuildArch:      noarch

%description
Django-filter provides a simple way to filter down a queryset based on
parameters a user provides.

#------------------------------------------------------

%package -n python3-%{module}
Summary:        %summary
Requires:       python3-django-rest-framework


%description -n python3-%{module}
Django-filter provides a simple way to filter down a queryset based on
parameters a user provides.

%files -n python3-%{module} -f django.lang
%doc CHANGES.rst README.rst LICENSE docs/
%{py3_puresitedir}/django_filters/__pycache__
%{py3_puresitedir}/django_filters/rest_framework
%{py3_puresitedir}/django_filters/templates
%{py3_puresitedir}/django_filters/*.py*
%dir %{py3_puresitedir}/django_filters/locale
%dir %{py3_puresitedir}/django_filters/locale/??/
%dir %{py3_puresitedir}/django_filters/locale/??/LC_MESSAGES
%dir %{py3_puresitedir}/django_filters/locale/??_??/
%dir %{py3_puresitedir}/django_filters/locale/??_??/LC_MESSAGES
%{py3_puresitedir}/django_filter-%{version}-py%{py3_ver}.egg-info
#------------------------------------------------------

%package -n python-%{module}-doc
Summary:        django-filter documentation

%description -n python-%{module}-doc
Documentation for django-filter

%files -n python-%{module}-doc
%doc html LICENSE
#------------------------------------------------------
%prep
%setup -qn %{module}-%{version}
echo "recursive-include django_filter/locale *.mo" >> MANIFEST.in
# remove .po files
find . -name *.po -exec rm -f '{}' \;


%build
%py3_build
# generate html docs 
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install
%find_lang django

%check
python3 runtests.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6985 |21cr|python-django-haystack-3.0-0.1.b2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module django-haystack

%define betaver b2
%define dotbetaver %{?betaver:.%{betaver}}

Name:           python-%{module}
Version:        3.0
Release:        %{?betaver:0.}1%{dotbetaver}.1
Summary:        Pluggable search for Django
Group:          Development/Python
License:        BSD
Url:            http://haystacksearch.org/
Source0:        https://files.pythonhosted.org/packages/source/d/%{module}/%{module}-%{version}%{?betaver}.tar.gz

BuildArch:      noarch

%description
Haystack provides modular search for Django. It features a unified, familiar
API that allows you to plug in different search backends (such as Solr,
Elasticsearch, Whoosh, Xapian, etc.) without having to modify your code.

Haystack is BSD licensed, plays nicely with third-party app without needing to
modify the source and supports advanced features like faceting, More Like This,
highlighting, spatial search and spelling suggestions.

You can find more information at http://haystacksearch.org/.
#-------------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Haystack provides modular search for Django - Python 3 version


BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(django)

Requires:       python3egg(django)

%description -n python3-%{module}
Haystack provides modular search for Django. It features a unified, familiar
API that allows you to plug in different search backends (such as Solr,
Elasticsearch, Whoosh, Xapian, etc.) without having to modify your code.

Haystack is BSD licensed, plays nicely with third-party app without needing to
modify the source and supports advanced features like faceting, More Like This,
highlighting, spatial search and spelling suggestions.

You can find more information at http://haystacksearch.org/.

This package provides Python 3 build of %{module}.


%files -n python3-%{module}
%doc PKG-INFO README.rst AUTHORS LICENSE
%{py3_puresitedir}/haystack
%{py3_puresitedir}/django_haystack-%{version}*.egg-info/

#-------------------------------------------------------------------------

%package docs
Summary: Documentation for Django Haystack pluggable search
# Not requiring the main package, as users may wish to install
# the documentation separately.

%description docs
Documentation for Django Haystack pluggable search

Haystack provides modular search for Django. It features a unified, familiar
API that allows you to plug in different search backends (such as Solr,
Elasticsearch, Whoosh, Xapian, etc.) without having to modify your code.

Haystack is BSD licensed, plays nicely with third-party app without needing to
modify the source and supports advanced features like faceting, More Like This,
highlighting, spatial search and spelling suggestions.

You can find more information at http://haystacksearch.org/.

%files docs
%doc docs/

#-------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}%{?betaver}

%build
%py3_build

pushd docs
make clean html htmlhelp latex json pickle changes
popd
# clean
rm -fr docs/_build

%install
%py3_install
# linting
find . -name ".gitignore" -exec rm -f {} \;
find . -name ".buildinfo" -exec rm -f {} \;
find . -name ".DS_Store" -exec rm -f {} \;
find . -name "last_build" -exec rm -f {} \;


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6986 |21cr|python-django-js-asset-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name  django_js_asset
%define pkgname django-js-asset

Name:		python-%{pkgname}
Version:	2.0.0
Release:	1
Summary:	Script tag with additional attributes for django.forms.Media
License:	BSD
Group:		Development/Python
URL:		https://github.com/matthiask/django-js-asset/
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(django)
BuildRequires:	python3egg(coverage)
BuildRequires:	python3egg(pytz)

BuildArch:  noarch

%description
Script tag with additional attributes for django.forms.Media.

#---------------------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:	Script tag with additional attributes for django.forms.Media
Group:		Development/Python

%description -n python3-%{pkgname}
Script tag with additional attributes for django.forms.Media.

%files -n python3-%{pkgname}
%doc README.rst LICENSE
%{py3_puresitedir}/js_asset
%{py3_puresitedir}/django_js_asset-%{version}-py%{py3_ver}.egg-info

#---------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf django_js_asset.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6987 |21cr|python-django-mptt-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  pypi_name  django-mptt

Summary:	Modified Preorder Tree Traversal for Django models
Name:		python-%{pypi_name}
Version:	0.14.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://github.com/django-mptt/django-mptt
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(django)
BuildRequires:	python3egg(django-js-asset)

BuildArch:  noarch

%description
Utilities for implementing Modified Preorder Tree Traversal
with your Django Models and working with trees of Model instances.

#-----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Modified Preorder Tree Traversal for Django models
Group:		Development/Python

%description -n python3-%{pypi_name}
Utilities for implementing Modified Preorder Tree Traversal
with your Django Models and working with trees of Model instances.

%files -n python3-%{pypi_name} -f django.lang
%doc README.rst NOTES LICENSE
%{py3_puresitedir}/django_mptt-*.egg-info/
%{py3_puresitedir}/mptt/*.py
%{py3_puresitedir}/mptt/__pycache__
%{py3_puresitedir}/mptt/static
%{py3_puresitedir}/mptt/templatetags
%{py3_puresitedir}/mptt/templates

#-----------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

# remove unnecessary language ressources:
rm mptt/locale/*/LC_MESSAGES/django.po

%build
%py3_build

%install
%py3_install

%find_lang django



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6988 |21cr|python-django-notification-1.3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name django-notification

Name:		python-django-notification
Version:	1.3.3
Release:	3
Summary:	User notification management for the Django web framework
Group:		Development/Python
License:	MIT
URL:		http://code.google.com/p/django-notification/
Source0:	%{pypi_source}
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Requires:	python3-django

%description
Many sites need to notify users when certain events have occurred and to
allow configurable options as to how those notifications are to be received.

The project aims to provide a Django app for this sort of functionality.
This includes:

    * submission of notification messages by other apps
    * notification messages on signing in
    * notification messages via email (configurable by user)
    * notification messages via feed

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	User notification management for the Django web framework
Group:		Development/Python

%description -n python3-%{pypi_name}
Many sites need to notify users when certain events have occurred and to
allow configurable options as to how those notifications are to be received.

The project aims to provide a Django app for this sort of functionality.
This includes:

    * submission of notification messages by other apps
    * notification messages on signing in
    * notification messages via email (configurable by user)
    * notification messages via feed

%files -n python3-%{pypi_name}
%doc AUTHORS LICENSE  docs/
%{py3_puresitedir}/*

#---------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
find -name '._*' -exec rm {} \;

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6989 |21cr|python-django-registration-3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name django-registration

Name:		python-django-registration
Version:	3.3
Release:	3
Summary:	A user-registration application for Django
Group:		Development/Python
License:	BSD
URL:		http://bitbucket.org/ubernostrum/django-registration
Source0:	%{pypi_source}
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Requires:	python3-django

%description
This is a fairly simple user-registration application for Django_, designed to
make allowing user signups as painless as possible.

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A user-registration application for Django
Group:		Development/Python

%description -n python3-%{pypi_name}
This is a fairly simple user-registration application for Django_, designed to
make allowing user signups as painless as possible.

%files -n python3-%{pypi_name}
%doc docs/
%{py3_puresitedir}/*
#----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6990 |21cr|python-django-rest-framework-3.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module django-rest-framework
%define omodule djangorestframework

Name:           python-django-rest-framework
Version:	3.14.0
Release:	1
Summary:        Web APIs for Django, made easy
Group:          Development/Python
License:        BSD
Url:            http://www.django-rest-framework.org
Source0:        https://github.com/encode/django-rest-framework/archive/%{version}.tar.gz#/%{module}-%{version}.tar.gz

BuildArch:      noarch

%description
Django REST framework is a powerful and flexible toolkit that makes it easy
to build Web APIs.

Some reasons you might want to use REST framework:

* The Web browsable API is a huge usability win for your developers.
* Authentication policies including OAuth1a and OAuth2 out of the box.
* Serialization that supports both ORM and non-ORM data sources.
* Customizable all the way down - just use regular function-based views if
  you don't need the more powerful features.
* Extensive documentation, and great community support.
#-------------------------------------------------------

%package -n python3-%{module}
Summary:        Web APIs for Django, made easy
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)

%description -n python3-%{module}
Django REST framework is a powerful and flexible toolkit that makes it easy
to build Web APIs.

Some reasons you might want to use REST framework:

* The Web browsable API is a huge usability win for your developers.
* Authentication policies including OAuth1a and OAuth2 out of the box.
* Serialization that supports both ORM and non-ORM data sources.
* Customizable all the way down - just use regular function-based views if
  you don't need the more powerful features.
* Extensive documentation, and great community support.

%files -n python3-%{module} -f django.lang
%doc *.md
%{py3_puresitedir}/rest_framework/__pycache__
%dir %{py3_puresitedir}/rest_framework/
%{py3_puresitedir}/rest_framework/authtoken
%dir %{py3_puresitedir}/rest_framework/locale
%dir %{py3_puresitedir}/rest_framework/locale/??/
%dir %{py3_puresitedir}/rest_framework/locale/??/LC_MESSAGES
%dir %{py3_puresitedir}/rest_framework/locale/??_??/
%dir %{py3_puresitedir}/rest_framework/locale/??_??/LC_MESSAGES
%{py3_puresitedir}/rest_framework/management
%{py3_puresitedir}/rest_framework/schemas
%{py3_puresitedir}/rest_framework/static
%{py3_puresitedir}/rest_framework/templates
%{py3_puresitedir}/rest_framework/templatetags
%{py3_puresitedir}/rest_framework/utils
%{py3_puresitedir}/rest_framework/*.py*
%{py3_puresitedir}/%{omodule}-%{version}-py%{py3_ver}.egg-info

#-------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

echo "recursive-include rest_framework/locale *.mo" >> MANIFEST.in

# Remove bundled egg-info
rm -rf %{module}.egg-info

# remove .po files
find . -name *.po -exec rm -f '{}' \;

%build
%py3_build

%install
%py3_install

%find_lang django




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6991 |21cr|python-django-search-url-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name dj-search-url
%global pkg_name django-search-url

Name:           python-%{pkg_name}
Version:        0.1
Release:        1
Summary:        Use Search URLs in your Django Application
Group:          Development/Python
License:        BSD
URL:            https://github.com/dstufft/dj-search-url
Source0:        %{pypi_source}
BuildArch:      noarch

%description
This simple Django utility allows you to utilize the 12factor inspired
SEARCH_URL environment variable to configure your application.

#-------------------------------------------------------------
%package -n     python3-%{pkg_name}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pkg_name}
This simple Django utility allows you to utilize the 12factor inspired
SEARCH_URL environment variable to configure your application.

%files -n python3-%{pkg_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/dj_search_url.py
%{python3_sitelib}/dj_search_url-%{version}-py*.egg-info
#-------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6992 |21cr|python-django-user-accounts-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name django-user-accounts

Name:           python-django-user-accounts
Version:        3.2.0
Release:        1
Group:          Development/Python
Summary:        a Django user account app
License:        MIT
URL:            https://github.com/pinax/django-user-accounts
Source0:        https://pypi.python.org/packages/source/d/django-user-accounts/django-user-accounts-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pip
BuildRequires:  python3-wheel
BuildRequires:  python3-sphinx

%description
Provides a Django project with a very extensible infrastructure for dealing with user accounts.

#------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        a Django user account app
Group:          Development/Python

%description -n python3-%{pypi_name}
Provides a Django project with a very extensible infrastructure for dealing with user accounts.

%files -n python3-%{pypi_name}
#doc docs/_build/html
%{python3_sitelib}/account
%{python3_sitelib}/django_user_accounts-%{version}*.dist-info

#------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%pyproject_wheel

#make man -C docs
#make html -C docs

%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6993 |21cr|python-docker-4.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name docker

Name:           python-%{pypi_name}
Version:	4.3.1
Release:	1
Summary:        A Python library for the Docker Engine API
Group:          Development/Python

License:        MIT
URL:            https://pypi.python.org/pypi/docker
Source0:	https://files.pythonhosted.org/packages/b3/48/014af5285463adb8079f32f603c0d6d19c16d92a113ebacc6b07522dcff5/docker-4.3.1.tar.gz
BuildArch:      noarch

%description
A Python library for the Docker Engine API.

%package -n python3-%{pypi_name}
Summary:        A Python 3 library for the Docker Engine API
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pip)
Obsoletes:      python3-docker-py < 3.6.0-3
Provides:       python3-docker-py = %{version}-%{release}

%description -n python3-%{pypi_name}
A Python 3 library for the Docker Engine API.

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Remove reundant script header to avoid rpmlint warnings
find -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +

%build
%py3_build

%install
%py3_install

rm -f %{buildroot}/%{py3_puresitedir}/docker/api/mixin.py

%files -n python3-%{pypi_name}
%doc README.md
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6994 |21cr|python-dockerpty-0.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	dockerpty

Name:		python-%{oname}
Version:	0.4.1
Release:	2
Summary:	Python library to use the pseudo-tty of a docker container
Source0:	https://pypi.python.org/packages/source/d/%{oname}/%{oname}-%{version}.tar.gz
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/d11wtq/dockerpty
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
Requires:	python3-docker-py

%description
Provides the functionality needed to operate the pseudo-tty (PTY) allocated to
a docker container, using the Python client.

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%check
python3 setup.py test

%install
python3 setup.py install --root=%{buildroot}

%files
%doc LICENSE.txt
%doc README.md
%doc PKG-INFO 
%{py3_puresitedir}/dockerpty
%{py3_puresitedir}/dockerpty*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6995 |21cr|python-docker-pycreds-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	docker-pycreds

Name:		python-%{oname}
Version:	0.4.0
Release:	1
Summary:	Python bindings for the docker credentials store API
Source0:	https://files.pythonhosted.org/packages/c5/e6/d1f6c00b7221e2d7c4b470132c931325c8b22c51ca62417e300f5ce16009/docker-pycreds-0.4.0.tar.gz
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/shin-/dockerpy-creds
BuildArch:	noarch

%description
Python bindings for the docker credentials store API

#-------------------------------------------------------------------

%package -n     python3-%{oname}
Summary:        Python bindings for the docker credentials store API
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(pytools)

%description -n python3-%{oname}
Python bindings for the docker credentials store API

%files -n python3-%{oname}
%doc LICENSE
%doc README.md
%doc requirements.txt
%doc test-requirements.txt
%{py3_puresitedir}/dockerpycreds
%{py3_puresitedir}/docker_pycreds*.egg-info

#-------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6996 |21cr|python-docker-scripts-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	docker-scripts

Name:		python-%{oname}
Version:	1.0.9
Release:	1
Summary:	A swiss-knife tool that could be useful for people working with Docker
Group:		Development/Python
License:	MIT
Url:		https://github.com/goldmann/docker-scripts
Source0:	https://github.com/goldmann/docker-squash/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-mock


%description
A swiss-knife tool that could be useful for people working with Docker

#-------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	A swiss-knife tool that could be useful for people working with Docker
Group:		Development/Python
Requires:	python3-setuptools

%description -n python3-%{oname}
A swiss-knife tool that could be useful for people working with Docker

%files -n python3-%{oname}
%doc LICENSE
%doc README.rst
%doc requirements.txt
%{_bindir}/docker-squash
%{py3_puresitedir}/docker_squash
%{py3_puresitedir}/docker_squash*.egg-info

#-------------------------------------------------------------------------

%prep
%setup -qn docker-squash-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6997 |21cr|python-docstring-to-markdown-0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name docstring-to-markdown

Name:           python-docstring-to-markdown
Version:        0.12
Release:        1
Summary:        On the fly conversion of Python docstrings to markdown
Group:          Development/Python
License:        LGPL-2.1-only
URL:            https://github.com/python-lsp/docstring-to-markdown
Source:         %{pypi_source}
BuildRequires:  pyproject-rpm-macros
BuildRequires:  pkgconfig(python3)
BuildArch:      noarch

%description
On the fly conversion of Python docstrings to markdown
  - Python 3.6+
  - currently can recognise reStructuredText and convert
    multiple of its features to Markdown
  - in the future will be able to convert Google docstrings too

#--------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        On the fly conversion of Python docstrings to markdown
Group:          Development/Python
Provides:       python-docstring_to_markdown = %{EVRD}

%description -n python3-%{pypi_name}
On the fly conversion of Python docstrings to markdown
  - Python 3.6+
  - currently can recognise reStructuredText and convert
    multiple of its features to Markdown
  - in the future will be able to convert Google docstrings too

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md
%license LICENSE

#--------------------------------------------------------------
%prep
%setup -q -n docstring-to-markdown-%{version}
sed -i -e '/--cov/d' -e '/-flake8/d' setup.cfg

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files docstring_to_markdown

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6998 |21cr|python-dogpile-cache-0.6.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	dogpile.cache

Name:		python-dogpile-cache
Version:	0.6.7
Release:	2
Summary:	A caching front-end based on the Dogpile lock
Source0:	http://pypi.python.org/packages/source/d/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://bitbucket.org/zzzeek/dogpile.cache
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python-dogpile-core

%description
A caching API built around the concept of a "dogpile lock", which allows
continued access to an expiring data value while a single thread generates
a new value.
dogpile.cache builds on the `dogpile.core
<http://pypi.python.org/pypi/dogpile.core>`_ locking system, which
implements the idea of "allow one creator to write while others read" in
the abstract.
Overall, dogpile.cache is intended as a replacement to the
`Beaker <http://beaker.groovie.org>`_ caching system, the internals of
which are written by the same author.
All the ideas of Beaker which
"work" are re-implemented in dogpile.cache in a more efficient and succinct
manner, and all the cruft (Beaker's internals were first written in 2005)
relegated to the trash heap.

#------------------------------------------------------------------

%package -n python3-dogpile-cache
Summary:            A caching front-end based on the Dogpile lock
Group:              Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-dogpile-core

%description -n python3-dogpile-cache
A caching API built around the concept of a "dogpile lock", which allows
continued access to an expiring data value while a single thread generates
a new value.
dogpile.cache builds on the `dogpile.core
<http://pypi.python.org/pypi/dogpile.core>`_ locking system, which
implements the idea of "allow one creator to write while others read" in
the abstract.
Overall, dogpile.cache is intended as a replacement to the
`Beaker <http://beaker.groovie.org>`_ caching system, the internals of
which are written by the same author.
All the ideas of Beaker which
"work" are re-implemented in dogpile.cache in a more efficient and succinct
manner, and all the cruft (Beaker's internals were first written in 2005)
relegated to the trash heap.

%files -n python3-dogpile-cache
%doc LICENSE
%doc README.rst
%doc docs
%{py3_puresitedir}/dogpile
%{py3_puresitedir}/dogpile.cache*.egg-info

#------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 6999 |21cr|python-dogpile-core-0.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname dogpile.core

Name:               python-dogpile-core
Version:            0.4.1
Release:            2
Summary:            A 'dogpile' lock, typically used as a component of a larger caching solution

Group:              Development/Python
License:            BSD
URL:                http://pypi.python.org/pypi/dogpile.core
Source0:            http://pypi.python.org/packages/source/d/%{modname}/%{modname}-%{version}.tar.gz
BuildArch:          noarch
BuildRequires:      python3-devel
BuildRequires:      python3-setuptools
BuildRequires:      python3-nose

%description
A "dogpile" lock, one which allows a single thread to generate an expensive
resource while other threads use the "old" value, until the "new" value is
ready.

Dogpile is basically the locking code extracted from the Beaker package,
for simple and generic usage.

#------------------------------------------------------------------

%package -n python3-dogpile-core
Summary:            A 'dogpile' lock, typically used as a component of a larger caching solution
Group:              Development/Python

%description -n python3-dogpile-core
A "dogpile" lock, one which allows a single thread to generate an expensive
resource while other threads use the "old" value, until the "new" value is
ready.

Dogpile is basically the locking code extracted from the Beaker package,
for simple and generic usage.

%files -n python3-dogpile-core
%doc README.rst LICENSE
%{py3_puresitedir}/dogpile/
%{py3_puresitedir}/%{modname}-%{version}-*

#------------------------------------------------------------------

%prep
%setup -q -n %{modname}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info

%build
python3 setup.py build


%install
python3 setup.py install -O1 --skip-build --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7000 |21cr|python-dpkt-1.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
Summary:	Fast, simple packet creation and parsing
Name:		python-dpkt
Version:	1.9.2
Release:	1
License:	BSD
Group:		Development/Python
URL:		http://code.google.com/p/dpkt/
Source0:	https://pypi.python.org/packages/source/d/dpkt/dpkt-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
Fast, simple packet creation and parsing

%package -n python3-dpkt
Summary:	Fast, simple packet creation and parsing

%description -n python3-dpkt
Fast, simple packet creation and parsing


%prep
%setup -q -n dpkt-%{version}

%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-dpkt
%doc AUTHORS CHANGES  LICENSE 
%{py3_puresitedir}/dpkt*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7001 |21cr|python-dropbox-3.41-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name dropbox

Name:           python-%{pypi_name}
Version:        3.41
Release:        5
Summary:        Official Dropbox REST API Client
License:        MIT
Group:          Development/Python
URL:            https://www.dropbox.com/developers/core/sdks
Source0:        https://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

# Don't install tests
Patch0:         %{pypi_name}-setuptools.patch

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-urllib3

%description
A Python library for Dropbox's HTTP-based Core and Datastore APIs.

%package -n python3-%{pypi_name}
Group:          Development/Python
Summary:        Official Dropbox REST API Client

%description -n python3-%{pypi_name}
A Python library for Dropbox's HTTP-based Core and Datastore APIs.

%prep
%setup -qn %{pypi_name}-%{version}
%patch0 -p1
rm -rf %{pypi_name}.egg-info

cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'

%build
pushd %{py3dir}
python3 setup.py build
popd

%install

pushd %{py3dir}
python3 setup.py install --root %{buildroot}
popd

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7002 |21cr|python-dtopt-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module dtopt

Name:           python-%{module}
Version:        0.1
Release:        6
Summary:        Add options to doctest examples while they are running
Group:          Development/Python
License:        MIT License
URL:            http://pypi.python.org/pypi/dtopt
Source0:        %{module}-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Buildarch:      noarch

%description
When using the doctest module it's often convenient to use the ELLIPSIS option,
which allows you to use ... as a wildcard.But you either have to setup the test
runner to use this option, or you must put #doctest: +ELLIPSIS on every example
that uses this feature.

%package -n python3-%{module}
Summary:        Add options to doctest examples while they are running
Group:          Development/Python

%description -n python3-%{module}
When using the doctest module it's often convenient to use the ELLIPSIS option,
which allows you to use ... as a wildcard.But you either have to setup the test
runner to use this option, or you must put #doctest: +ELLIPSIS on every example
that uses this feature.

%prep
%setup -qn %{module}-%{version}
find -name '*.py' | xargs sed -i '1s|^#!%{__python}|#!%{__python3}|'

%build
CFLAGS="%{optflags}" %{__python3} setup.py build

%install
%{__python3} setup.py install --root %{buildroot} --install-purelib=%{py3_puresitedir}

%files -n python3-%{module}
%doc docs/*
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7003 |21cr|python-dulwich-0.20.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	dulwich

Name:		python-%{module}
Version:	0.20.5
Release:	1
Summary:	Python implementation of the Git file formats and protocols
Group:		Development/Python
License:	GPLv2
Url:		https://launchpad.net/dulwich/
Source0:	https://pypi.python.org/packages/source/d/dulwich/dulwich-%{version}.tar.gz

BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(nose)
BuildRequires:  pkgconfig(python3)

%description
Dulwich is a pure-Python implementation of the Git file formats and protocols.

#------------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Python implementation of the Git file formats and protocols
Group:		Development/Python

%description -n python3-%{module}
Dulwich is a pure-Python implementation of the Git file formats and protocols.

%files -n python3-%{module}
%doc  COPYING  NEWS  docs/tutorial
%{_bindir}/dul*
%{python3_sitearch}/%{module}*

#------------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

#remove unneeded git info
rm -f docs/tutorial/.gitignore

%build
%py3_build

%install
%py3_install

#pushd docs
#%__make html
#popd

rm -rf %{buildroot}/%{python3_sitearch}/docs/tutorial

# Tests require unittest2 to run:
%check
make check


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7004 |21cr|python-easygui-0.98.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name easygui

Name:           python-%{pypi_name}
Version:        0.98.1
Release:        %mkrel 1
Summary:        EasyGUI is a module for very simple, very easy GUI programming in Python
Group:          Development/Python
License:        BSD
URL:            https://github.com/robertlugg/easygui
Source0:        https://pypi.io/packages/source/e/easygui/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  pythonegg(setuptools)
 
BuildRequires:  python3egg(setuptools)

%description
EasyGui provides an easy-to-use interface for simple GUI
interaction with a user. It does not require the programmer to know anything
about tkinter, frames, widgets, callbacks or lambda. All GUI interactions are
invoked by simple function calls that return results.

%package -n     python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}

%description -n python2-%{pypi_name}
EasyGui provides an easy-to-use interface for simple GUI
interaction with a user. It does not require the programmer to know anything
about tkinter, frames, widgets, callbacks or lambda. All GUI interactions are
invoked by simple function calls that return results.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
EasyGui provides an easy-to-use interface for simple GUI
interaction with a user. It does not require the programmer to know anything
about tkinter, frames, widgets, callbacks or lambda. All GUI interactions are
invoked by simple function calls that return results.

%prep
%setup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py2_build
%py3_build

%install
# Must do the default python version install last because
# the scripts in /usr/bin are overwritten with every setup.py install.
%py2_install
%py3_install

%files -n python2-%{pypi_name}
%doc README.txt
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7005 |21cr|python-editorconfig-0.12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	EditorConfig

Name:		python-editorconfig
Version:	0.12.1
Release:	1
Summary:	EditorConfig File Locator and Interpreter for Python
Source0:	http://pypi.python.org/packages/source/E/%{oname}/%{oname}-%{version}.tar.gz
License:	LICENSE.txt
Group:		Development/Python
Url:		http://editorconfig.org/
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
========================
EditorConfig Python Core
========================

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc LICENSE.txt
%doc README.rst
%{_bindir}/editorconfig 
%{py_puresitedir}/editorconfig/*.py*
%{py_puresitedir}/EditorConfig*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7006 |21cr|python-efl-1.26.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude (.*)\\.so(.*)
%define module  efl

Summary:	Python bindings for the EFL
Name:		python-%{module}
Version:	1.26.1
Release:	1
License:	LGPLv3+
Group:		Development/Python
Url:		https://download.enlightenment.org/rel/bindings/python
Source0:	https://download.enlightenment.org/rel/bindings/python/python-%{module}-%{version}.tar.xz
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(ecore)
BuildRequires:	pkgconfig(elementary)
BuildRequires:	pkgconfig(dbus-python)
BuildRequires:	pkgconfig(python3)

%description
Python bindings for the EFL library.

#--------------------------------------------------------

%package -n python3-%{module}
Summary:	Python3 bindings for the EFL library
Group:		Development/Python

%description -n python3-%{module}
Python3 bindings for the EFL library

%files -n python3-%{module}
%{py3_platsitedir }/efl
%{py3_platsitedir }/python_efl-*.egg-info

#--------------------------------------------------------

%prep
%autosetup

%build
%ifarch %ix86
export CFLAGS="$CFLAGS -O1"
%endif
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7007 |21cr|python-elements-0.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	elements

Name:		python-elements
Version:	0.3.2
Release:	1
Summary:	Python XML Elements Library
Source0:	%{pypi_source}
License:	Apache 2.0
Group:		Development/Python
Url:		http://github.com/danijar/elements
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
The Python XML elements library makes it easy to parse XML.

#----------------------------------------------------------
%package -n python3-elements
Summary:	Python XML Elements Library
Group:		Development/Python

%description -n python3-elements
The Python XML elements library makes it easy to parse XML.

%files -n python3-elements
%doc README*
%{python3_sitelib}/elements/__pycache__
%{python3_sitelib}/elements/*.py*
%{python3_sitelib}/elements-%{version}*.egg-info

#----------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7008 |21cr|python-elib.intl-0.0.3-0.20110711.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	elib.intl

%define gdate	20110711

Name:		python-%{oname}
Version:	0.0.3
Release:	0.%{gdate}.1
Summary:	Enhanced internationalization (I18N) for Python
License:	LGPLv3+
Group:		Development/Python
Url:		https://github.com/dieterv/elib.intl
Source0:	%{oname}-%{gdate}.tar.xz
BuildArch:	noarch
BuildRequires:	python2-setuptools
#BuildRequires:	python2-sphinx
Provides:	%{oname} = %{version}-%{release}

%description
The elib.intl module provides enhanced internationalization (I18N) services
for your Python modules and applications.

elib.intl wraps Python's :func:`gettext` functionality.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Enhanced internationalization (I18N) for Python

%description -n python2-%{oname}
The elib.intl module provides enhanced internationalization (I18N) services
for your Python modules and applications.

elib.intl wraps Python's :func:`gettext` functionality.


%prep
%setup -qn %{oname}-%{gdate}

%build
python2 setup.py build

#pushd doc/reference
#        make html
#	rm -rf build/html/.buildinfo
#popd

%install
python2 setup.py install \
	--root %{buildroot}

%files -n python2-%{oname}
#%doc doc/reference/build/html
%{py2_puresitedir}/%{oname}*
%{py2_puresitedir}/elib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7009 |21cr|python-elixir-0.7.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Elixir

Summary:	Declarative mapper on top of SQLAlchemy
Name:		python-elixir
Version:	0.7.1
Release:	5
License:	MIT
Group:		Development/Python
URL:		http://www.sqlalchemy.org/
Source0:	http://pypi.python.org/packages/source/E/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0:		elixir-python3.patch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
A declarative layer on top of SQLAlchemy. It is a fairly thin wrapper, which 
provides the ability to create simple Python classes that map directly to 
relational database tables (this pattern is often referred to as the Active 
Record design pattern), providing many of the benefits of traditional databases
without losing the convenience of Python objects.

Elixir is intended to replace the ActiveMapper SQLAlchemy extension, and the 
TurboEntity project but does not intend to replace SQLAlchemy's core features, 
and instead focuses on providing a simpler syntax for defining model objects 
when you do not need the full expressiveness of SQLAlchemy's manual mapper 
definitions.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Declarative mapper on top of SQLAlchemy
Group:		Development/Python

%description -n python3-%{pypi_name}
A declarative layer on top of SQLAlchemy. It is a fairly thin wrapper, which 
provides the ability to create simple Python classes that map directly to 
relational database tables (this pattern is often referred to as the Active 
Record design pattern), providing many of the benefits of traditional databases
without losing the convenience of Python objects.

Elixir is intended to replace the ActiveMapper SQLAlchemy extension, and the 
TurboEntity project but does not intend to replace SQLAlchemy's core features, 
and instead focuses on providing a simpler syntax for defining model objects 
when you do not need the full expressiveness of SQLAlchemy's manual mapper 
definitions.

%files -n python3-%{pypi_name}
%doc README*
%{python3_sitelib}/elixir
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/
#---------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7010 |21cr|python-email-validator-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name email-validator

Name:           python-%{pypi_name}
Version:        1.1.1
Release:        1
Summary:        A robust email syntax and deliverability validation library
Group:          Development/Python
License:        CC0
URL:            https://github.com/JoshData/python-email-validator
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch

%description
This library validates that address are of the form x@y.com. This is the sort
of validation you would want for a login form on a website.

Key features:

- Good for validating email addresses used for logins/identity.
- Friendly error messages when validation fails (appropriate to show to end
  users).
- (optionally) Checks deliverability: Does the domain name resolve?
- Supports internationalized domain names and (optionally) internationalized
  local parts.
- Normalizes email addresses (important for internationalized addresses!).

#----------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-dns
BuildRequires:  python3-idna
BuildRequires:  python3-coverage
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-cov

%description -n python3-%{pypi_name}
This library validates that address are of the form x@y.com. This is the sort
of validation you would want for a login form on a website.

Key features:

- Good for validating email addresses used for logins/identity.
- Friendly error messages when validation fails (appropriate to show to end
  users).
- (optionally) Checks deliverability: Does the domain name resolve?
- Supports internationalized domain names and (optionally) internationalized
  local parts.
- Normalizes email addresses (important for internationalized addresses!).

%files -n python3-%{pypi_name}
%license LICENSE
%doc CONTRIBUTING.md README.md
%{_bindir}/email_validator
%{python3_sitelib}/email_validator/
%{python3_sitelib}/email_validator-%{version}-py*.egg-info

#----------------------------------------------------------------------

%prep
%autosetup -n python-%{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \
  -k "not test_deliverability"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7011 |21cr|python-emcee-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	emcee

Name:		python-%{oname}
Version:	2.2.1
Release:	1
Summary:	Kick ass affine-invariant ensemble MCMC sampling
Source0:	http://pypi.python.org/packages/source/e/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://dan.iel.fm/emcee/
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
emcee
=====
%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc AUTHORS.rst
%doc HISTORY.rst
%doc LICENSE
%doc README.rst
%{py_puresitedir}/emcee/*.py*
%{py_puresitedir}/emcee*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7012 |21cr|python-enable-5.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module enable

Summary:	Enthought Tool Suite - low-level drawing and interaction
Name:		python-%{module}
Version:	5.2.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/enable/
Source0:	https://github.com/enthought/enable/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildRequires:	swig3
BuildRequires:	python3egg(numpy)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(traits)
BuildRequires:	python3egg(pyface)
BuildRequires:	python3egg(fonttools)
BuildRequires:	x11-server-xvfb


Requires:	python3egg(cython)
Requires:	python3egg(numpy)
Requires:	python3egg(pyopengl)
Requires:	python3egg(pyface)
Requires:	python3egg(reportlab)
Requires:	python3egg(traitsui)

%description
The Enable project provides two related multi-platform packages for
drawing GUI objects.

* Enable: An object drawing library that supports containment and
  event notification.
* Kiva: A multi-platform DisplayPDF vector drawing engine.

#--------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Enthought Tool Suite - low-level drawing and interaction

%description -n python3-%{module}
The Enable project provides two related multi-platform packages for
drawing GUI objects.

* Enable: An object drawing library that supports containment and
  event notification.
* Kiva: A multi-platform DisplayPDF vector drawing engine.

%files -n python3-%{module}
%doc *.txt *.rst
%{py3_platsitedir}/%{module}*
%{py3_platsitedir}/kiva*

#----------------------------------------------------------------

%package -n python3-%{module}-doc
Summary:	Docs gadgets and examples for %{module}

Requires:   python3-%{module} = %{EVRD}
BuildArch:  noarch

%description -n python3-%{module}-doc
Documentation, examples ,gadgets and drawings for %{module}

%files -n python3-%{module}-doc
%doc enable/drawing enable/gadgets enable/examples

#----------------------------------------------------------------


%prep
%setup -q -n %{module}-%{version}
sed -i '27i import distutils.command.clean' setup.py
# happy linting ..
find . -name "*.c" -o -name "*.h" -o -name "*.cpp" | xargs chmod 0644

for file in image_LICENSE_OOo.txt image_LICENSE_Eclipse.txt; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%py3_build

%install
%py3_install


%check
# skip failed tests due too many missing modules and too old main py3 modules
pushd build/lib.linux*-%py3_ver
  export PYTHONPATH=%{buildroot}%{py3_platsitedir}
  xvfb-run python3 -s -m unittest discover -v || :
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7013 |21cr|python-enaml-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	enaml

Name:		python-%{pypi_name}
Version:	0.14.0
Release:	1
Summary:	ETS declarative language for building dynamic user interfaces
Group:		Development/Python
License:	BSD
Url:		https://github.com/enthought/enaml/
Source0:	https://pypi.io/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz


%description
Enaml is a framework for writing declarative user interfaces in
Python. It provides a Yaml-ish/Pythonic syntax language for declaring
a ui that binds and reacts to changes in the user's models. Code can
freely call back and forth between Python and Enaml.

Enaml is heavily inspired by Qt's QML system, but Enaml uses native
widgets (as opposed to drawing on a 2D canvas) and is toolkit
independent. Currently supported/in-development toolkits include Wx
and Qt5 via PySide.

Enaml is extensible and makes it extremely easy for the user to define
their own widgets, override existing widgets, create a new backend
toolkit, or even hook the runtime to apply their own expression
dependency behavior. Indeed, about the only thing not hookable is the
Enaml langauge syntax itself.

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(bytecode)
BuildRequires:	python3egg(atom)
BuildRequires:	python3egg(cppy)
BuildRequires:	python3egg(qtpy)
BuildRequires:	python3-pyside2
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(pytest-qt)
BuildRequires:	python3egg(kiwisolver)
BuildRequires:	python3egg(wheel)

Requires:	python3egg(qtpy)
Requires:	python3-pyside2
Requires:	python3egg(atom)
Requires:	python3egg(bytecode)

%description -n python3-%{pypi_name}
Enaml is a framework for writing declarative user interfaces in
Python. It provides a Yaml-ish/Pythonic syntax language for declaring
a ui that binds and reacts to changes in the user's models. Code can
freely call back and forth between Python and Enaml.

Enaml is heavily inspired by Qt's QML system, but Enaml uses native
widgets (as opposed to drawing on a 2D canvas) and is toolkit
independent. Currently supported/in-development toolkits include Wx
and Qt5 via PySide.

Enaml is extensible and makes it extremely easy for the user to define
their own widgets, override existing widgets, create a new backend
toolkit, or even hook the runtime to apply their own expression
dependency behavior. Indeed, about the only thing not hookable is the
Enaml langauge syntax itself.

%files -n python3-%{pypi_name}
%doc LICENSE *.rst examples/
%{_bindir}/enaml-*
%{python3_sitearch}/enaml*

#-----------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7014 |21cr|python-encore-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	encore

Summary:	Enthought Tool Suite - scimath project
Name:		python-%{module}
Version:	0.8.0
Release:	1
Source0:	https://files.pythonhosted.org/packages/ac/25/cd78c60c1965d41055a1bbdb98f450ae883092364607e6c226da7f0ada24/encore-0.8.0.tar.gz
License:	LGPLv2+ and ASL 2.0
Group:		Development/Python
Url:		https://github.com/enthought/%{module}/

BuildArch:      noarch

%description
This package consists of a collection of core utility packages useful for
building Python applications.  This package is intended to be at the
bottom of the software stack and have zero required external dependencies
aside from the Python Standard Library.

Part of the Enthought Tool Suite (ETS).

#-----------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(requests)


%description -n python3-%{module}
This package consists of a collection of core utility packages useful for
building Python applications.  This package is intended to be at the
bottom of the software stack and have zero required external dependencies
aside from the Python Standard Library.

Part of the Enthought Tool Suite (ETS).

%files -n python3-%{module}
%doc *.txt *.rst examples
%{py3_puresitedir}/*.egg-info
%{py3_puresitedir}/%{module}

#-----------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%check
pytest-3


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7015 |21cr|python-engineio-4.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# Sphinx-generated HTML documentation is not suitable for packaging; see
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
#
# We can generate PDF documentation as a substitute.
%bcond_with doc_pdf

Name:           python-engineio
Version:        4.3.4
Release:        1
Summary:        Python Engine.IO server and client
Group:          Development/Python
# SPDX
License:        MIT
URL:            https://github.com/miguelgrinberg/python-engineio/
Source0:        %{url}/archive/v%{version}/python-engineio-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# Documentation
%if %{with doc_pdf}
BuildRequires:  make
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3-sphinx-latex
BuildRequires:  latexmk
%endif

%global common_description %{expand:
Engine.IO is a lightweight transport protocol that enables real-time
bidirectional event-based communication between clients (typically, though not
always, web browsers) and a server. The official implementations of the client
and server components are written in JavaScript. This package provides Python
implementations of both, each with standard and asyncio variants.}

%description %{common_description}

#---------------------------------------------------------------
%package -n     python3-engineio
Summary:        %{summary}
Group:          Development/Python

%description -n python3-engineio %{common_description}


%pyproject_extras_subpkg -n python3-engineio client asyncio_client

%files -n python3-engineio -f %{pyproject_files}

#---------------------------------------------------------------

%package        doc
Summary:        Documentation for python-engineio
Group:          Documentation

%description    doc %{common_description}

%files doc
%license LICENSE
%doc CHANGES.md
%doc README.md
%doc SECURITY.md
%if %{with doc_pdf}
%doc docs/_build/latex/python-engineio.pdf
%endif
# Bundled pre-compiled engine.io.js has been removed:
%doc examples

#---------------------------------------------------------------

%prep
%autosetup -p1

# Remove pre-compiled/pre-minified browser build of
# https://github.com/socketio/engine.io from the examples. This makes them less
# useful, but satisfies
# https://docs.fedoraproject.org/en-US/packaging-guidelines/JavaScript/ and
# https://docs.fedoraproject.org/en-US/packaging-guidelines/#bundling. It
# doesn’t seem worth it to package the JavaScript implementation of Engine.IO
# just for the sake of these examples.
find examples -type f -name 'engine.io.js' -print -delete


%generate_buildrequires
%pyproject_buildrequires -x client,asyncio_client -t


%build
%pyproject_wheel
%if %{with doc_pdf}
PYTHONPATH="${PWD}/src" %make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}'
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
%endif


%install
%pyproject_install
%pyproject_save_files engineio









@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7016 |21cr|python-envisage-6.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name envisage

Summary:	Enthought Tool Suite - extensible application framework
Name:		python-%{pypi_name}
Version:	6.1.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/envisage/
Source0:	https://files.pythonhosted.org/packages/3c/90/b25c9fbb474c5cac85fc8a3c6c55beb78398c4a3fe461994ce7f99180bd0/envisage-6.1.0.tar.gz
BuildRequires:	python3-setuptools >= 0.6c8
Requires:	python3-apptools >= 4.1.0
Requires:	python3-traitsui >= 4.2.0
BuildArch:	noarch

%description
Envisage is a Python-based framework for building extensible
applications, that is, applications whose functionality can be
extended by adding "plug-ins". Envisage provides a standard mechanism
for features to be added to an application, whether by the original
developer or by someone else. In fact, when you build an application
using Envisage, the entire application consists primarily of
plug-ins. In this respect, it is similar to the Eclipse and Netbeans
frameworks for Java applications.

Each plug-in is able to:

* Advertise where and how it can be extended (its "extension points").
* Contribute extensions to the extension points offered by other plug-ins.
* Create and share the objects that perform the real work of the 
  application ("services").

The EnvisageCore project provides the basic machinery of the Envisage
framework. This project contains no plug-inn. You are free to use:

* plug-ins from the EnvisagePlugins project
* plug-ins from other ETS projects that expose their functionality as plug-ins
* plug-ins that you create yourself

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Enthought Tool Suite - extensible application framework
Group:		Development/Python

%description -n python3-%{pypi_name}
Envisage is a Python-based framework for building extensible
applications, that is, applications whose functionality can be
extended by adding "plug-ins". Envisage provides a standard mechanism
for features to be added to an application, whether by the original
developer or by someone else. In fact, when you build an application
using Envisage, the entire application consists primarily of
plug-ins. In this respect, it is similar to the Eclipse and Netbeans
frameworks for Java applications.

Each plug-in is able to:

* Advertise where and how it can be extended (its "extension points").
* Contribute extensions to the extension points offered by other plug-ins.
* Create and share the objects that perform the real work of the 
  application ("services").

The EnvisageCore project provides the basic machinery of the Envisage
framework. This project contains no plug-inn. You are free to use:

* plug-ins from the EnvisagePlugins project
* plug-ins from other ETS projects that expose their functionality as plug-ins
* plug-ins that you create yourself

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/%{pypi_name}*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7017 |21cr|python-ephem-3.7.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname ephem

Summary:	Scientific-grade astronomical computations for python
Name:		python-ephem
Version:	3.7.6.0
License:	LGPLv3
Group:		Development/Python
Release:	1
URL:		http://rhodesmill.org/pyephem/
Source:		http://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
Patch0:		ephem-3.7.6.0-linking.patch

%description
PyEphem provides scientific-grade astronomical computations for the
Python programming language. Given a date and location on the Earth’s
surface, it can compute the positions of the Sun and Moon, of the
planets and their moons, and of any asteroids, comets, or earth
satellites whose orbital elements the user can provide. Additional
functions are provided to compute the angular separation between two
objects in the sky, to determine the constellation in which an object
lies, and to find the times at which an object rises, transits, and
sets on a particular day. The numerical routines that lie behind
PyEphem are those from the wonderful XEphem astronomy application,
whose author, Elwood Downey, generously gave permission for us to use
them as the basis for PyEphem.



%package -n python3-ephem
Summary:        Python3 implementation of Ephem
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
Provides:       ephem = %{version}-%{release}

%description -n python3-ephem
%{summary}.


%prep
%autosetup -n %{srcname}-%{version} -p1


%build
%py3_build


%install
%py3_install

%files -n python3-ephem
%doc COPYING LICENSE-GPL LICENSE-LGPL
%{py3_platsitedir}/ephem
%{py3_platsitedir}/%{srcname}-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7018 |21cr|python-epub-0.5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module epub

Summary:        Python library for reading EPUB files
Name:           python-%{module}
Version:        0.5.2
Release:        2
Group:          Development/Python
License:        LGPLv3+
Url:            http://epub.exirel.me
Source0:        http://pypi.python.org/packages/source/e/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  python3egg(sphinx)
BuildArch:      noarch


%description
Epub is a Python library for reading e-book files in the EPUB (version 2)
format.

#------------------------------------------------------
%package -n python3-%{module}
Summary:        Python library for reading EPUB files
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
Epub is a Python library for reading e-book files in the EPUB (version 2)
format.


%files -n python3-%{module}
%doc README.txt LICENSE.txt
%{py3_puresitedir}/*
#------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%make -C docs html
rm -f docs/_build/html/.buildinfo

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7019 |21cr|python-et_xmlfile-1.0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name et_xmlfile
%global sum An implementation of lxml.xmlfile for the standard library
%global desc et_xmlfile is a low memory library for creating large XML files.\
\
It is based upon the xmlfile module from lxml with the aim of allowing code to\
be developed that will work with both libraries. It was developed initially for\
the openpyxl project but is now a standalone module.

Name:           python-%{pypi_name}
Version:        1.0.1
Release:        12
Summary:        %{sum}
Group:		Office
License:        MIT
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:        https://pypi.python.org/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:        https://bitbucket.org/openpyxl/et_xmlfile/raw/8c7ad6904ebe0ff98c204a3e77d7e78528b10ffe/LICENCE.rst

BuildArch:      noarch

%description
%{desc}

%package -n     python2-%{pypi_name}
BuildRequires:  pkgconfig(python2)
BuildRequires:  python2-lxml
BuildRequires:  pythonegg(setuptools)
Requires:       python2-jdcal
Summary:        %{sum}
Provides:	python2-%{pypi_name}

%description -n python2-%{pypi_name}
%{desc}


%package -n     python3-%{pypi_name}
Summary:        %{sum}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3-lxml
Requires:       python3-jdcal

%description -n python3-%{pypi_name}
%{desc}


%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf *.egg-info
cp -a %{SOURCE1} .


%build
%py2_build
%py3_build


%install
%py2_install
%py3_install


%check
cd et_xmlfile
py.test-%{py3_ver}


%files -n python2-%{pypi_name}
%doc LICENCE.rst
%doc README.rst
%{python2_sitelib}/%{pypi_name}-%{version}-py%{py2_ver}.egg-info/
%{python2_sitelib}/%{pypi_name}/

%files -n python3-%{pypi_name}
%doc LICENCE.rst
%doc README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{py3_ver}.egg-info/
%{python3_sitelib}/%{pypi_name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7020 |21cr|python-evdev-1.7.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	evdev

Name:		python-%{pypi_name}
Version:	1.7.1
Release:	3
Summary:	Bindings to the Linux input handling subsystem
Group:		Development/Python
Url:		https://github.com/gvalkov/python-evdev
Source0:	%{pypi_source}
Patch0:		evdev-requirements.patch
License:	Revised BSD License
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3-devel

%description
*evdev*
-------

This package provides bindings to the generic input event interface in
Linux. The *evdev* interface serves the purpose of passing events
generated in the kernel directly to userspace through character
devices that are typically located in ``/dev/input/``.

This package also comes with bindings to *uinput*, the userspace input
subsystem. *Uinput* allows userspace programs to create and handle
input devices that can inject events directly into the input
subsystem.

Documentation:
    http://python-evdev.readthedocs.io/en/latest/

Development:
    https://github.com/gvalkov/python-evdev

Package:
    http://pypi.python.org/pypi/evdev

Changelog:
    http://python-evdev.readthedocs.io/en/latest/changelog.html
#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Bindings to the Linux input handling subsystem
Group:		Development/Python
# old setuptools set version to 0
Provides:	python%{py3_ver}dist(evdev) = %{EVRD}
Provides:	python3dist(evdev) = %{EVRD}
Provides:	python3egg(evdev) = %{EVRD}

%description -n python3-%{pypi_name}
*evdev*
-------

This package provides bindings to the generic input event interface in
Linux. The *evdev* interface serves the purpose of passing events
generated in the kernel directly to userspace through character
devices that are typically located in ``/dev/input/``.

This package also comes with bindings to *uinput*, the userspace input
subsystem. *Uinput* allows userspace programs to create and handle
input devices that can inject events directly into the input
subsystem.

Documentation:
    http://python-evdev.readthedocs.io/en/latest/

Development:
    https://github.com/gvalkov/python-evdev

Package:
    http://pypi.python.org/pypi/evdev

Changelog:
    http://python-evdev.readthedocs.io/en/latest/changelog.html

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc LICENSE
%doc README.md

#---------------------------------------------------------------


%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7021 |21cr|python-events-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name events

Summary:	C# language provides a handy way to declare, subscribe to and fire events
Name:		python-%{pypi_name}
Version:	0.5
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://pypi.org/project/Events
Source0:	https://github.com/pyeve/events/archive/v%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
The C# language provides a handy way to declare, subscribe to and fire events.
Technically, an event is a "slot" where callback functions (event handlers) can be
attached to - a process referred to as subscribing to an event. Here is a handy
package that encapsulates the core to event subscription and event firing and feels
like a "natural" part of the language.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	C# language provides a handy way to declare, subscribe to and fire events
Group:		Development/Python

%description -n python3-%{pypi_name}
The C# language provides a handy way to declare, subscribe to and fire events.
Technically, an event is a "slot" where callback functions (event handlers) can be
attached to - a process referred to as subscribing to an event. Here is a handy
package that encapsulates the core to event subscription and event firing and feels
like a "natural" part of the language.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/Events-*.egg-info
%{python3_sitelib}/%{pypi_name}*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7022 |21cr|python-exceptiongroup-1.0.0rc9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name exceptiongroup

Name:           python-%{pypi_name}
Version:        1.0.0rc9
Release:        1
Summary:        Backport of PEP 654 (exception groups)
Group:          Development/Python
License:        MIT
URL:            https://github.com/agronholm/exceptiongroup
Source0:        %{pypi_source}
BuildRequires:  pkgconfig(python3) < 3.11
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%description
This is a backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11.

#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Backport of PEP 654 (exception groups)
Group:          Development/Python

%description -n python3-%{pypi_name}
This is a backport of the BaseExceptionGroup and ExceptionGroup classes from Python 3.11.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc LICENSE *.rst
#-----------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7023 |21cr|python-exconsole-0.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name python-exconsole

Name:           python-exconsole
Version:        0.1.5
Release:        4
Group:          Development/Python
Summary:        Emergency/postmortem Python console

License:        LGPLv3
URL:            TODO:
Source0:        https://pypi.python.org/packages/source/p/python-exconsole/python-exconsole-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
Emergency/postmortem Python console

%package -n     python3-exconsole
Summary:        Emergency/postmortem Python console

%description -n python3-exconsole
Emergency/postmortem Python console

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
pushd %{py3dir}
python3 setup.py build
popd

%install
pushd %{py3dir}
python3 setup.py install --skip-build --root %{buildroot}
popd

%files -n python3-exconsole
%{py3_puresitedir}/exconsole
%{py3_puresitedir}/python_exconsole-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7024 |21cr|python-execnet-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-2.0.0
%global pypi_name execnet

Name:           python-%{pypi_name}
Version:	1.7.1
Release:	1
Group:          Development/Python
Summary:        Interact with interpreters across version, platform and network barriers

License:        MIT
URL:            https://codespeak.net/execnet/
Source0:	https://files.pythonhosted.org/packages/5a/61/1b50e0891d9b934154637fdaac88c68a82fd8dc5648dfb04e65937fc6234/execnet-1.7.1.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3egg(setuptools-scm)


%description
Execnet provides carefully tested means to ad-hoc interact with Python
interpreters across version, platform and network barriers. It provides
a minimal and fast API targetting the following uses:
To distribute tasks to local or remote processes, write and deploy
hybrid multi-process applications and to write scripts to administer
multiple hosts


%package -n     python3-%{pypi_name}
Summary:        Interact with interpreters across version, platform and network barriers

%description -n python3-%{pypi_name}
Execnet provides carefully tested means to ad-hoc interact with Python
interpreters across version, platform and network barriers. It provides
a minimal and fast API targetting the following uses:
To distribute tasks to local or remote processes, write and deploy
hybrid multi-process applications and to write scripts to administer
multiple hosts

%prep
%setup -q -n %{pypi_name}-%{version}

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%files -n python3-%{pypi_name}
%doc  ISSUES.txt README.rst CHANGELOG.rst LICENSE
%{py3_puresitedir}/*/*
#%%{python2_sitelib}/pep8.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7025 |21cr|python-executing-0.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name executing

Name:           python-%{pypi_name}
Version:        0.8.2
Release:        1
Summary:        Get the currently executing AST node of a frame, and other information
Group:          Development/Python
License:        MIT
URL:            https://github.com/alexmojaki/executing
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)
BuildRequires:  python3egg(asttokens)

%global _description \
This mini-package lets you get information about what a frame is \
currently doing, particularly the AST node being executed.

%description %{_description}

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name}
%license LICENSE*
%doc README*
%{python3_sitelib}/*

#----------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7026 |21cr|python-exiv2-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define __provides_exclude libexiv2.so.*
%define pypi_name py3exiv2

Summary:	Python binding to exiv2
Name:		python-exiv2
Version:	0.11.0
Release:	1
License:	GPLv2+
Group:		Development/Python
#Url:		https://github.com/LeoHsiao1/pyexiv2
Url:		https://launchpad.net/py3exiv2
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	boost-python-devel
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(exiv2)

%description
A Python 3 binding to the library exiv2.

python3-exiv2 is a Python 3 binding to exiv2, the C++ library 
for manipulation of EXIF, IPTC and XMP image metadata. 
It is a python 3 module that allows your scripts to read 
and write metadata (EXIF, IPTC, XMP, thumbnails) embedded 
in image files (JPEG, TIFF, …).

It is designed as a high-level interface to the functionalities 
offered by libexiv2. Using python’s built-in data types and 
standard modules, it provides easy manipulation of image metadata.

python3-exiv2 is distributed under the GPL version 3 license.
#----------------------------------------------------------------
%package -n python3-exiv2
Summary:	Python binding to exiv2
Group:		Development/Python
Provides:	py3exiv2 = %{EVRD}
Provides:	pyexiv2 = %{EVRD}

%description -n python3-exiv2
A Python 3 binding to the library exiv2.

python3-exiv2 is a Python 3 binding to exiv2, the C++ library 
for manipulation of EXIF, IPTC and XMP image metadata. 
It is a python 3 module that allows your scripts to read 
and write metadata (EXIF, IPTC, XMP, thumbnails) embedded 
in image files (JPEG, TIFF, …).

It is designed as a high-level interface to the functionalities 
offered by libexiv2. Using python’s built-in data types and 
standard modules, it provides easy manipulation of image metadata.

python3-exiv2 is distributed under the GPL version 3 license.

%files -n python3-exiv2
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%setup -qn py3exiv2-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7027 |21cr|python-extension-helpers-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define module	extension-helpers

Summary:	A build time package to simplify C/Cython extensions
Name:		python-%{module}
Version:	0.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://pypi.python.org/pypi/extension-helpers
Source0:	https://github.com/astropy/extension-helpers/archive/refs/tags/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildRequires:	python3dist(setuptools)

%description
The extension-helpers package includes convenience helpers to assist with
building Python packages with compiled C/Cython extensions. It is developed
by the Astropy project but is intended to be general and usable by any
Python package.

This is not a traditional package in the sense that it is not intended to be
installed directly by users or developers. Instead, it is meant to be accessed
when the setup.py command is run and should be defined as a build-time
dependency in pyproject.toml files.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Community-developed python astronomy tools
Group:		Development/Python
BuildArch:	noarch

%description -n python3-%{module}
The extension-helpers package includes convenience helpers to assist with
building Python packages with compiled C/Cython extensions. It is developed
by the Astropy project but is intended to be general and usable by any
Python package.

This is not a traditional package in the sense that it is not intended to be
installed directly by users or developers. Instead, it is meant to be accessed
when the setup.py command is run and should be defined as a build-time
dependency in pyproject.toml files.

%files -n python3-%{module}
%doc README.rst
%license LICENSE.rst licenses/LICENSE_ASTROSCRAPPY.rst
%{python3_sitelib}/extension_helpers
%{python3_sitelib}/extension_helpers-*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7028 |21cr|python-eyed3-0.9.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name eyeD3

Summary:	ID3 tag module
Name:		python-eyed3
Version:	0.9.7
Release:	1
Group:		Development/Python
License:	GPL
Url:		https://eyed3.readthedocs.io/en/latest/
Source0:	%{pypi_source}
BuildRequires:	python3-devel
BuildRequires:	python3-magic
BuildRequires:	python3-distribute
BuildArch:	noarch

%description
eyeD3 is a Python module and program for processing ID3
tags. Information about mp3 files (i.e bit rate, sample frequency,
play time, etc.) is also provided. The formats supported are ID3
v1.0/v1.1 and v2.3/v2.4.

#-----------------------------------------------------------------
%package -n python3-eyed3
Summary:	ID3 tag module
Group:		Development/Python

%description -n python3-eyed3
eyeD3 is a Python module and program for processing ID3
tags. Information about mp3 files (i.e bit rate, sample frequency,
play time, etc.) is also provided. The formats supported are ID3
v1.0/v1.1 and v2.3/v2.4.

%files -n python3-eyed3
%{py3_puresitedir}/*
%{_bindir}/*

#-----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7029 |21cr|python-fabulous-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname fabulous

Name:          python-%{srcname}
Version:	0.4.0
Release:	1
Summary:       Makes your terminal output totally fabulous
Group:         Development/Python
License:       MIT
URL:           https://pypi.python.org/pypi/fabulous
Source0:	https://files.pythonhosted.org/packages/ec/b3/38ce860b1abeb58b998db83a244239dd716308499e359fa077b0a4d0d244/fabulous-0.4.0.tar.gz
Patch0:        python-fabulous-unbundle-fonts.patch
Patch1:        python-fabulous-unbundle-grapefruit.patch
BuildArch:     noarch
BuildRequires: dos2unix
BuildRequires: gcc
BuildRequires: make

%description
fabulous is a python module for producing fabulously colored terminal output.

Run the demo to see what's available::

    $ python -m fabulous.demo

%package -n python3-%{srcname}
Summary:       Makes your terminal output totally fabulous
BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(sphinx)
Requires:      python3dist(pillow)
Requires:      fonts-ttf-liberation

%description -n python3-%{srcname}
fabulous is a python3 module for producing fabulously colored terminal output.

Run the demo to see what's available::

    $ python3 -m fabulous.demo

%prep
%setup -q -n %{srcname}-%{version}
%autopatch -p1
rm -f fabulous/fonts/*
rm fabulous/_xterm256.c
rm fabulous/grapefruit.py
dos2unix README.rst

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%doc README.rst CONTRIBUTORS AUTHORS
%doc LICENSE.txt
%{py3_puresitedir}/%{srcname}/
%{py3_puresitedir}/%{srcname}-%{version}-*
%{_bindir}/fabulous-demo
%{_bindir}/fabulous-gotham
%{_bindir}/fabulous-image
%{_bindir}/fabulous-rotatingcube
%{_bindir}/fabulous-text

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7030 |21cr|python-fastjsonschema-2.16.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name fastjsonschema

Name:           python-fastjsonschema
Version:        2.16.2
Release:        1
Summary:        Fastest Python implementation of JSON schema
Group:          Development/Python
License:        BSD
URL:            https://github.com/horejsek/%{name}
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%global _description %{expand:
fastjsonschema implements validation of JSON documents by JSON schema.
The library implements JSON schema drafts 04, 06 and 07.
The main purpose is to have a really fast implementation.}

%description %_description

#----------------------------------------------------------
%package -n     python3-fastjsonschema
Summary:        %{summary}
Group:          Development/Python

%description -n python3-fastjsonschema %_description

%files -n python3-fastjsonschema -f %{pyproject_files}
%license LICENSE
%doc README.rst

#----------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files fastjsonschema




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7031 |21cr|python-fastnumbers-5.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module fastnumbers

Name:           python-%{module}
Version:        5.0.1
Release:        1
Summary:        Drop-in replacement for Python's int and float
Group:          Development/Python
License:        MIT
URL:            https://github.com/SethMMorton/%{module}
Source:         https://files.pythonhosted.org/packages/source/f/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(hypothesis)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(typing-extensions)
BuildRequires:  python3

Provides:       python3-%{module} = %{EVRD}

%description
%{module} is a Python module with three objectives:

1. To provide drop-in replacements for the Python built-in `int` and
   `float` that, on average, are around 2x faster. These functions
   should behave identically to the Python built-ins except for a few
   specific corner-cases as mentioned in the API documentation.
2. To provide a set of convenience functions that wrap the above int
   and float replacements and provide error handling.
3. To provide a set of functions that can be used to identify whether
   an input could be converted to int or float.

%files
%doc *.rst LICENSE *.md
%{py3_platsitedir}/%{module}-%{version}-py%{py3_ver}.egg-info
%{py3_platsitedir}/%{module}
#---------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
export CFLAGS="%{optflags}"
%py3_build

%install
%py3_install
find %{buildroot} -type f -empty -delete

%check
export PYTHONPATH=%{buildroot}%{py3_platsitedir}
pytest-3


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7032 |21cr|python-fcgi-2000.09.21-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-fcgi
Version:        2000.09.21
Release:        10
Epoch:          0
Summary:        Python FastCGI Module

Group:          Development/Python
License:        BSD
URL:            http://alldunn.com/python/
Source0:        http://alldunn.com/python/fcgi.py
BuildRequires:  python2-devel
BuildArch:      noarch

%description
The fcgi.py Python module handles communication with the FastCGI module
from the Apache or Stronghold web server without using the FastCGI
developers kit. It will also work in a non-FastCGI environment,
(straight CGI).

%package -n python2-fcgi
Summary:        Python FastCGI Module

%description -n python2-fcgi
The fcgi.py Python module handles communication with the FastCGI module
from the Apache or Stronghold web server without using the FastCGI
developers kit. It will also work in a non-FastCGI environment,
(straight CGI).


%prep

%build

%install
%{__mkdir_p} %{buildroot}%{py2_puresitedir}
%{__install} -m 0755 %{SOURCE0} %{buildroot}%{py2_puresitedir}/
python2 %{_libdir}/python%{py2_ver}/compileall.py -d %{py_puresitedir}/ %{buildroot}%{py_puresitedir}

%clean

%files -n python2-fcgi
%defattr(-,root,root,0755)
%{py2_puresitedir}/fcgi.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7033 |21cr|python-fchksum-1.7.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python C extension to (quickly) find the checksum of files
Name:		python-fchksum
Version: 1.7.1
Release: 13
Source0:	http://www.dakotacom.net/~donut/programs/fchksum/%{name}-%{version}.tar.bz2
License:	GPL
Group:		Development/Python
URL:		http://www.dakotacom.net/~donut/programs/fchksum.html
BuildRequires:  python2-devel
BuildRequires:	zlib-devel

%description
This module provides quick and easy functions to find checksums of files.
It supports md5, crc32, cksum, bsd-style sum, and sysv-style sum.
The advantage of using fchksum over the python2 md5 and zlib(.crc32)
modules is both ease of use and speed.  You only need to tell it the
filename and the actual work is done by C code.  Compared to the
implementing a read loop in python2 with the standard python modules,
fchksum is up to 2.0x faster in md5 and 1.1x faster in crc32.

All checksum functions take a filename as a string, and optional callback
function, and callback delay (in seconds), and return a tuple (checksum,
size).  An empty string may be substituted for filename to read from
stdin.  The returned size is always a python2 Long, and the checksum
return type varies depending on the function.

%package -n python2-fchksum
Summary:	Python C extension to (quickly) find the checksum of files

%description -n python2-fchksum
This module provides quick and easy functions to find checksums of files.
It supports md5, crc32, cksum, bsd-style sum, and sysv-style sum.
The advantage of using fchksum over the python md5 and zlib(.crc32)
modules is both ease of use and speed.  You only need to tell it the
filename and the actual work is done by C code.  Compared to the
implementing a read loop in python with the standard python modules,
fchksum is up to 2.0x faster in md5 and 1.1x faster in crc32.

All checksum functions take a filename as a string, and optional callback
function, and callback delay (in seconds), and return a tuple (checksum,
size).  An empty string may be substituted for filename to read from
stdin.  The returned size is always a python Long, and the checksum
return type varies depending on the function.


%package	-n python2-fchksum-devel
Group:		Development/Python
Summary:	Python C extension to (quickly) find the checksum of files


%description	-n python2-fchksum-devel
Development files for Python fast checksum

%prep
%setup -q

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}
mkdir -p %{buildroot}/%{_includedir}/python%{py2_ver}
install *.h %{buildroot}/%{_includedir}/python%{py2_ver}/

%files -n python2-fchksum
%doc README COPYING Changelog PKG-INFO
%{py2_platsitedir}/*

%files -n python2-fchksum-devel
%doc test
%{_includedir}/python%{py2_ver}/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7034 |21cr|python-ffmpeg-normalize-1.25.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	ffmpeg-normalize

Name:		python-%{pypi_name}
Version:	1.25.2
Release:	1
Summary:	Normalize audio via ffmpeg
Source0:	https://files.pythonhosted.org/packages/8b/fc/cea1775f6a9d539defa564e4fb40015ffda86810980273fdc34e6e454e50/ffmpeg-normalize-1.25.2.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/slhck/ffmpeg-normalize
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel

%description
A utility for batch-normalizing audio using ffmpeg.
This program normalizes media files to a certain LUFS level using the EBU R128
loudness normalization procedure. It can also perform RMS-based normalization
(where the mean is lifted or attenuated), or peak normalization to a certain
target level.
Batch processing of several input files is possible, including video files.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Normalize audio via ffmpeg
Group:		Development/Python
Requires:	ffmpeg

%description -n python3-%{pypi_name}
A utility for batch-normalizing audio using ffmpeg.
This program normalizes media files to a certain LUFS level using the EBU R128
loudness normalization procedure. It can also perform RMS-based normalization
(where the mean is lifted or attenuated), or peak normalization to a certain
target level.
Batch processing of several input files is possible, including video files.

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.md
%{_bindir}/ffmpeg-normalize 
%{py3_puresitedir}/ffmpeg_normalize
%{py3_puresitedir}/ffmpeg_normalize*.egg-info

#---------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7035 |21cr|python-ffmpeg-progress-yield-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ffmpeg-progress-yield

Name:           python-%{pypi_name}
Version:	0.3.0
Release:	1
Summary:        Run an ffmpeg command with progress
Group:          Development/Python
License:        MIT
URL:            https://github.com/slhck/ffmpeg-progress-yield
Source0:	https://files.pythonhosted.org/packages/3f/12/bdc0c5cc27b725b68a1ab1236644433cac36e7f1ea2250662451c56aaddb/ffmpeg-progress-yield-0.3.0.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
Run an ffmpeg command with its progress yielded.

#-------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
Run an ffmpeg command with its progress yielded.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{_bindir}/ffmpeg-progress-yield
%{python3_sitelib}/ffmpeg_progress_yield
%{python3_sitelib}/ffmpeg_progress_yield-%{version}-*.egg-info

#-------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7036 |21cr|python-fido2-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name fido2

Name:           python-%{pypi_name}
Version:        1.1.3
Release:        1
Summary:        FIDO2/WebAuthn library for implementing clients and servers
Group:          Development/Python
License:        BSD
URL:            https://github.com/Yubico/python-fido2
Source0:        %{pypi_source}
Requires:       python3-cryptography
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-pytest
BuildArch:      noarch

%define _description %{expand:
Provides library functionality for communicating with a FIDO device
over USB as well as verifying attestation and assertion signatures.

This library aims to support the FIDO U2F and FIDO 2 protocols for
communicating with a USB authenticator via the Client-to-Authenticator
Protocol (CTAP 1 and 2). In addition to this low-level device access,
classes defined in the fido2.client and fido2.server modules implement
higher level operations which are useful when interfacing with an
Authenticator, or when implementing WebAuthn support for a Relying Party.
}

%description
%{_description}

#----------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        FIDO2/WebAuthn library for implementing clients and servers
Group:          Development/Python
License:        BSD

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.adoc

#----------------------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

# for autoinstall BuildRequires
%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7037 |21cr|python-fileinspector-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           python-fileinspector
Version:        1.0.2
Release:        1
Summary:        A module to determine file mimetypes
License:        GPLv3
Group:          Development/Python
URL:            https://github.com/dschreij/fileinspector
Source0:         https://files.pythonhosted.org/packages/source/p/python-fileinspector/python-fileinspector-%{version}.tar.gz
Source1:         https://raw.githubusercontent.com/open-cogsci/fileinspector/master/README.md
Source2:         https://raw.githubusercontent.com/open-cogsci/fileinspector/master/copyright
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

Provides:       python3-fileinspector = %{EVRD}

BuildArch:      noarch

%description
A module to determine file mimetypes.

%files
%doc README.md copyright
%{py3_puresitedir}/python_fileinspector-%{version}-py?.?.egg-info
%{py3_puresitedir}/__pycache__
%{py3_puresitedir}/fileinspector.py
#--------------------------------------------------
%prep
%setup -q
rm -fr python_fileinspector.egg-info
cp -a %{SOURCE1} %{SOURCE2} .

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7038 |21cr|python-filetype-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name filetype

Name:		python-%{pypi_name}
Version:	1.0.9
Release:	1
Summary:	Infer file type and MIME type of any file/buffer
Group:		Development/Python
License:	MIT
URL:		https://github.com/h2non/filetype.py
Source0:	%{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Small and dependency free Python package to infer file type and MIME type
checking the magic numbers signature of a file or buffer.

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Buildrequires:	python3-pytest

%description -n python3-%{pypi_name}
Small and dependency free Python package to infer file type and MIME type
checking the magic numbers signature of a file or buffer.

%files -n python3-%{pypi_name}
%doc README.rst History.md examples
%license LICENSE
%{_bindir}/filetype
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}.py-%{version}
sed -i -e '/^#!\//, 1d' examples/*.py
rm -rf examples/__init__.py

%build
%py3_build

%install
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/examples

%check
pytest-%{python3_version} -v tests --ignore tests/test_benchmark.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7039 |21cr|python-FinDates-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	FinDates

Name:		python-%{pypi_name}
Version:	0.2
Release:	2
Summary:	Dealing with dates in finance
Source0:	http://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	OSI Approved
Group:		Development/Python
BuildArch:	noarch

%description
Findates is a python package for dealing with dates in finance. It provides
functionality to do day counting in various conventions, business day rolling
rules, creating holiday calendars, routines for calculation of Easter and
other religious holidays, routines for calculation of holidays falling on a
specific weekday in a month (e.g. Thanksgving), moving holidays happening on
a weekend. It also provides various utility functions for dealing with dates,
including automatic parsing of various string formats.

#---------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Dealing with dates in finance
Group:		Development/Python

%description -n python3-%{pypi_name}
Findates is a python package for dealing with dates in finance. It provides
functionality to do day counting in various conventions, business day rolling
rules, creating holiday calendars, routines for calculation of Easter and
other religious holidays, routines for calculation of holidays falling on a
specific weekday in a month (e.g. Thanksgving), moving holidays happening on
a weekend. It also provides various utility functions for dealing with dates,
including automatic parsing of various string formats.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/findates/*
%{python3_sitelib}/FinDates-%{version}-*.egg-info

#---------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7040 |21cr|python-flake8-docstrings-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name flake8-docstrings

Name:           python-%{pypi_name}
Version:	1.6.0
Release:	1
Summary:        Extension for flake8 which uses pydocstyle to check docstrings
Group:          Development/Python
License:        MIT
URL:            https://gitlab.com/pycqa/flake8-docstrings
Source0:	https://files.pythonhosted.org/packages/c1/a6/b8a953fb256ee383fed9094f7270ab75cd637c23749c211f0e6b3552a31e/flake8-docstrings-1.6.0.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pydocstyle)

%description
flake8-docstrings A simple module that adds an extension for the fantastic
pydocstyle_ tool to Simply install this extension:: pip install
flake8-docstringsand run flake8.Report any issues on our bug tracker_...
_pydocstyle: .. _flake8: .. _bug tracker: History/Changelog 1.3.0 - Bump
minimum pydocstyle version to 2.1.01.2.0 - Fix EnvironError and AllError
invocations- Avoid Flake8 warning for...

%package -n     python3-%{pypi_name}
Summary:        %{summary}
BuildArch:      noarch
 
Requires:       python3dist(flake8)
Requires:       python3dist(flake8-polyfill)
Requires:       python3dist(pydocstyle) >= 2.1
Requires:       python3dist(setuptools)
%description -n python3-%{pypi_name}
flake8-docstrings A simple module that adds an extension for the fantastic
pydocstyle_ tool to Simply install this extension:: pip install
flake8-docstringsand run flake8.Report any issues on our bug tracker_...
_pydocstyle: .. _flake8: .. _bug tracker: History/Changelog 1.3.0 - Bump
minimum pydocstyle version to 2.1.01.2.0 - Fix EnvironError and AllError
invocations- Avoid Flake8 warning for...

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/flake8_docstrings.py*
%{py3_puresitedir}/flake8_docstrings-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7041 |21cr|python-flake8-polyfill-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name flake8-polyfill

Name:           python-%{pypi_name}
Version:        1.0.2
Release:        5
Summary:        Polyfill package for Flake8 plugins
Group:          Development/Python
License:        MIT
URL:            https://gitlab.com/pycqa/flake8-polyfill
Source0:        %{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(flake8)
BuildRequires:  python3dist(setuptools)

%description
flake8-polyfill is a package that provides some compatibility helpers for
Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Requires:       python3dist(flake8)

%description -n python3-%{pypi_name}
flake8-polyfill is a package that provides some compatibility helpers for
Flake8 plugins that intend to support Flake8 2.x and 3.x simultaneously.

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/flake8_polyfill
%{py3_puresitedir}/flake8_polyfill-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7042 |21cr|python-flask-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	flask
%define	soname	Flask

Name:		python-%{oname}
Version:	1.1.2
Release:	1
Summary:	A microframework based on Werkzeug, Jinja2 and good intentions
Group:		Development/Python
License:	BSD
Url:		http://github.com/mitsuhiko/flask/
Source0:	https://pypi.python.org/packages/source/F/%{soname}/%{soname}-%{version}.tar.gz
BuildArch:	noarch

%description
Flask
-----
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good
intentions. 

#-------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	A microframework based on Werkzeug, Jinja2 and good intentions
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(click)
BuildRequires:	python3egg(itsdangerous) >= 0.21
BuildRequires:	python3egg(jinja2) >= 2.4 
BuildRequires:	python3egg(werkzeug) >= 0.7
Requires:	python3egg(itsdangerous) >= 0.21
Requires:	python3egg(jinja2) >= 2.4 
Requires:	python3egg(werkzeug) >= 0.7

%description -n python3-%{oname}
Flask
-----
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good
intentions.

%files -n python3-%{oname}
%doc docs examples
%{_bindir}/*
%{python3_sitelib}/flask
%{python3_sitelib}/Flask*.egg-info
#-------------------------------------------------------------------

%prep
%setup -q -n %{soname}-%{version}

rm -fr docs/.gitignore  docs/_themes/.git examples/.DS_Store \
  examples/persona/static/.DS_Store docs/_themes/.gitignore  \
  examples/persona/.DS_Store

%build
%py3_build

%install
%py3_install

# clean
find %{buildroot} -size 0 -delete

%check
%__python3 setup.py test
rm -fr flask/testsuite/test_apps/flask_broken/b.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7043 |21cr|python-flask-babel-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkg_name	flask-babel
%global mod_name	Flask-Babel

Name:		python-%{pkg_name}
Version:	2.0.0
Release:	2
Summary:	Adds i18n/l10n support to Flask applications
Group:		Development/Python
License:	BSD
URL:		http://github.com/mitsuhiko/%{pkg_name}/
Source0:	https://pypi.python.org/packages/source/F/%{mod_name}/%{mod_name}-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	make
BuildRequires:	python3-babel
BuildRequires:	python3-devel
BuildRequires:	python3-flask
BuildRequires:	python3-jinja2
BuildRequires:	python3-setuptools
BuildRequires:	python3-pytz

# For documentation
BuildRequires:  python3-docs
BuildRequires:  python3-sphinx
BuildRequires:  python3-Pallets-Sphinx-Themes

%global _description\
Adds i18n/l10n support to Flask applications with the help of the Babel library.

%description %_description

#-----------------------------------------------------------------------
%package -n python3-%{pkg_name}
Summary:	Adds i18n/l10n support to Flask applications
Group:		Development/Python
# A modified version of speaklater is bundled
Provides:	bundled(python3-speaklater)

%description -n python3-%{pkg_name} %_description

%files -n python-%{pkg_name}
%doc docs/_build/html README.md
%license LICENSE
%{python3_sitelib}/*.egg-info/
%{python3_sitelib}/flask_babel

#-------------------------------------------------------------------------
%prep
%setup -q -n %{mod_name}-%{version}

# Use local objects.inv for intersphinx
# FIXME: the main flask package does not provide objects.inv (bz 1837646)
sed -e "s|\('http://docs\.python\.org/': \)None|\1'%{_docdir}/python3-docs/html/objects.inv'|" \
    -i docs/conf.py

# Update a call to a deprecated babel function
sed -i 's/\(numbers\.format_\)number/\1decimal/' flask_babel/__init__.py

%build
%py3_build

# Build the documentation
make -C docs html

# We do not want the sphinx marker
rm -f docs/_build/html/.buildinfo

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7044 |21cr|python-flask-compress-1.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name flask-compress

%global _description %{expand:
Flask-Compress allows you to easily compress your Flask application's
responses with gzip.

The preferred solution is to have a server (like Nginx) automatically
compress the static files for you. If you don't have that option
Flask-Compress will solve the problem for you.}

Name:           python-%{pypi_name}
Version:	1.13
Release:	1
Summary:        Compress responses in your Flask app with gzip or brotli
Group:          Development/Python
License:        MIT
URL:            https://github.com/colour-science/flask-compress
Source0:	https://files.pythonhosted.org/packages/4d/07/d2a0a1adc4111000519b9beca7cea1ac7a6065f3b121bb0280eca79f2edb/Flask-Compress-1.13.tar.gz
Patch0:         flask-compress-requirements.patch
BuildArch:      noarch

BuildRequires:  make
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(tox)
%endif

%description %_description

#---------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3dist(brotli)
Requires:       python3dist(flask)
%description -n python3-%{pypi_name} %_description

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE.txt
%doc README.md

#---------------------------------------------------------------

%prep
%autosetup -p1 -n Flask-Compress-%{version}
rm -rf %{pypi_name}.egg-info

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files flask_compress

%check
%if %{with tests}
%{__python3} setup.py test
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7045 |21cr|python-Flask-Gravatar-0.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	Flask-Gravatar

Name:		python-%{pypi_name}
Version:	0.5.0
Release:	2
Summary:	Small extension for Flask to make usage of Gravatar service easy
Source0:	http://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/zzzsochi/Flask-Gravatar/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(flask)
BuildRequires:	python3egg(pytest-runner)

%description
This is small and simple integration `gravatar`_ into `flask`_.

#-------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Small extension for Flask to make usage of Gravatar service easy
Group:		Development/Python

%description -n python3-%{pypi_name}
This is small and simple integration `gravatar`_ into `flask`_.

%files -n python3-%{pypi_name}
%doc AUTHORS
%doc CHANGES.rst
%doc LICENSE
%doc README.rst
%doc docs/_themes/README
%doc docs/_themes/flask_small/layout.html
%{python3_sitelib}/flask_gravatar/*.py*
%{python3_sitelib}/Flask_Gravatar*.egg-info
%{python3_sitelib}/flask_gravatar/__pycache__
#-------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

rm -r *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7046 |21cr|python-flask-login-0.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name Flask-Login

Name:           python-flask-login
Version:        0.6.2
Release:        1
Summary:        User session management for Flask
Group:          Development/Python
License:        MIT
URL:            https://github.com/maxcountryman/flask-login
Source0:        https://files.pythonhosted.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%global _description\
Flask-Login provides user session management for Flask. It handles the common\
tasks of logging in, logging out, and remembering your users' sessions over\
extended periods of time.

%description %_description
#-------------------------------------------------------------------------

%package -n     python3-flask-login
Summary:        User session management for Flask
Group:          Development/Python
Requires:       python3-flask

%description -n python3-flask-login
Flask-Login provides user session management for Flask. It handles the common
tasks of logging in, logging out, and remembering your users' sessions over
extended periods of time.

%files -n python3-flask-login
%doc README.md
%license LICENSE
%{python3_sitelib}/flask_login/
%{python3_sitelib}/Flask_Login-*.egg-info/

#-------------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}


%build
%py3_build


%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7047 |21cr|python-Flask-Mail-0.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	Flask-Mail

Name:		python-%{pypi_name}
Version:	0.9.1
Release:	2
Summary:	Flask extension for sending email
Source0:	http://pypi.python.org/packages/source/F/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/rduplain/flask-mail
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
A Flask extension for sending email messages.

#-------------------------------------------------------
%package -n python3-flask-mail
Summary:	Flask extension for sending email
Group:		Development/Python

%description -n python3-flask-mail
A Flask extension for sending email messages.

%files -n python3-flask-mail
%doc LICENSE
%doc README.rst
%doc docs/changelog.rst
%{py3_puresitedir}/flask_mail.py*
%{py3_puresitedir}/Flask_Mail*.egg-info
%{py3_puresitedir}/__pycache__
#-------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7048 |21cr|python-flask-migrate-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with tests

# Sphinx-generated HTML documentation is not suitable for packaging; see
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
#
# We can generate PDF documentation as a substitute.
%bcond_with doc_pdf

Name:               python-flask-migrate
Version:            3.1.0
Release:            1
Summary:            SQLAlchemy database migrations for Flask applications using Alembic
Group:              Development/Python
License:            MIT
URL:                https://github.com/miguelgrinberg/Flask-Migrate
Source0:            %{url}/archive/v%{version}/Flask-Migrate-%{version}.tar.gz
BuildArch:          noarch

BuildRequires:      python3-devel
BuildRequires:      pyproject-rpm-macros

# Documentation
%if %{with doc_pdf}
BuildRequires:      python3dist(sphinx)
BuildRequires:      make
BuildRequires:      python3-sphinx-latex
BuildRequires:      latexmk
%endif

%global common_description %{expand:
SQLAlchemy database migrations for Flask applications using Alembic.}

%description %{common_description}

#------------------------------------------------------------------
%package -n python3-flask-migrate
Summary:            %{summary}
Group:              Development/Python

%description -n python3-flask-migrate %{common_description}

%files -n python3-flask-migrate -f %{pyproject_files}

#------------------------------------------------------------------

%package doc
Summary:            Documentation for Flask-Migrate
Group:              Documentation

%description doc
Documentation for Flask-Migrate.

%files doc
%license LICENSE
%doc README.md
%if %{with doc_pdf}
%doc docs/_build/latex/Flask-Migrate.pdf
%endif

#------------------------------------------------------------------

%prep
%autosetup -n Flask-Migrate-%{version}
# Fix shebangs that use /bin/env and unversioned Python
%py3_shebang_fix tests/app*.py


%generate_buildrequires
%pyproject_buildrequires -t


%build
%pyproject_wheel
%if %{with doc_pdf}
%make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}'
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
%endif


%install
%pyproject_install
%pyproject_save_files flask_migrate


%check
%if %{with tests}
env PYTHONPATH="${PYTHONPATH:-%{buildroot}%{python3_sitelib}}" \
    PYTHONDONTWRITEBYTECODE=1 \
    %{python3} -m unittest discover -v
%else
echo 'Tests are disabled'
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7049 |21cr|python-flask-paranoid-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkg_name flask-paranoid

Name:           python-%{pkg_name}
Version:        0.3.0
Release:        1
Summary:        Flask Simple user session protection
Group:          Development/Python
License:        MIT

URL:            https://github.com/miguelgrinberg/%{pkg_name}
Source0:        %{url}/archive/v%{version}/%{pkg_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(pytest)
BuildRequires:  pyproject-rpm-macros

%description
Flask Simple user session protection.

#-------------------------------------------------------------
%package -n python3-%{pkg_name}
Summary:        Flask Simple user session protection
Group:          Development/Python

%description -n python3-%{pkg_name}
Flask Simple user session protection.

%files -n python3-%{pkg_name} -f %{pyproject_files}
%doc README.md
%license LICENSE
#-------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkg_name}-%{version}

# Fix incorrect date format in test
sed -r -i 's/01-Jan-1970/01 Jan 1970/' tests/test_paranoid.py


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files flask_paranoid


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7050 |21cr|python-flask-principal-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkg_name flask-principal

Name:           python-flask-principal
Version:        0.4.0
Release:        1
Summary:        Identity management for Flask applications
Group:          Development/Python
License:        MIT

BuildArch:      noarch
URL:            https://pythonhosted.org/Flask-Principal/
Source0:        https://github.com/mattupstate/%{pkg_name}/archive/%{version}/%{pkg_name}-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(pytest)


%description
Flask-Principal provides a very loose framework to tie in authentication
and user information providers, often located in different parts of a web
application.

#-----------------------------------------------------------------------
%package -n python3-flask-principal
Summary:        Identity management for Flask applications
Group:          Development/Python


%description -n python3-flask-principal
Flask-Principal provides a very loose framework to tie in authentication
and user information providers, often located in different parts of a web
application.

%files -n python3-flask-principal -f %{pyproject_files}
%doc README.rst CHANGES
%license LICENSE

#-----------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pkg_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files flask_principal


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7051 |21cr|python-flask-security-too-4.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkg_name flask-security-too


Name:           python-%{pkg_name}
Version:        4.1.5
Release:        1
Summary:        Simple security for Flask apps
Group:          Development/Python
License:        MIT

BuildArch:      noarch
URL:            https://github.com/Flask-Middleware/flask-security
Source0:        %{pypi_source Flask-Security-Too}
# Drop missing test deps
Patch0:         python-flask-security-too_testdeps.patch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description
Flask-Security quickly adds security features to your Flask application.

#-----------------------------------------------------------------------
%package -n python3-%{pkg_name}
Summary:        Simple security for Flask apps
Group:          Development/Python

%description -n python3-%{pkg_name}
Flask-Security quickly adds security features to your Flask application.

# Skipping mfa extra, pyqrcode and phonenumberslite are not packaged
%pyproject_extras_subpkg -n python3-%{pkg_name} babel fsqla common

%files -n python3-%{pkg_name} -f %{pyproject_files} -f flask_security.lang
%license LICENSE
%doc README.rst AUTHORS

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n Flask-Security-Too-%{version}
# Disable tests for unavailable test dependencies
sed -r -i '/\b(two_factor|unified_signin)\b/d' tests/conftest.py

%generate_buildrequires
# Skipping mfa extra, pyqrcode and phonenumberslite are not packaged
#%%pyproject_buildrequires -x babel,fsqla,common -r requirements/tests.txt
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files flask_security

# Work around neither %%pyproject_save_files nor %%find_lang supporting
# language files that are not in a directory named “locale”:
sed -i -r '/\/translations\/.*\.mo/d' %{pyproject_files}
cp -rp %{buildroot}%{python3_sitelib}/flask_security/translations \
    %{buildroot}%{python3_sitelib}/flask_security/locale
find %{buildroot}%{python3_sitelib}/flask_security/locale \
    -type f ! -name *.mo -delete

%find_lang flask_security
rm -rf %{buildroot}/%{python3_sitelib}/flask_security/locale
sed -r -i 's@/locale/@/translations/@' flask_security.lang






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7052 |21cr|python-flask-socketio-5.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Sphinx-generated HTML documentation is not suitable for packaging; see
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
#
# We can generate PDF documentation as a substitute.
%bcond_with doc_pdf

Name:           python-flask-socketio
Version:	5.3.1
Release:	1
Summary:        Socket.IO integration for Flask applications
Group:          Development/Python
License:        MIT
URL:            https://github.com/miguelgrinberg/Flask-SocketIO/
Source0:        %{url}/archive/v%{version}/Flask-SocketIO-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# Documentation
%if %{with doc_pdf}
BuildRequires:  make
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3-sphinx-latex
BuildRequires:  latexmk
%endif

%global common_description %{expand:
Flask-SocketIO gives Flask applications access to low latency bi-directional
communications between the clients and the server. The client-side application
can use any of the SocketIO official clients libraries in Javascript, C++, Java
and Swift, or any compatible client to establish a permanent connection to the
server.}

%description %{common_description}

#-----------------------------------------------------------
%package -n     python3-flask-socketio
Summary:        %{summary}
Group:          Development/Python

%description -n python3-flask-socketio %{common_description}

%files -n python3-flask-socketio -f %{pyproject_files}

#-----------------------------------------------------------

%package        doc
Summary:        Documentation for %{name}
Group:          Documentation

%description    doc %{common_description}

%files doc
%license LICENSE
%doc CHANGES.md
%doc README.md
%doc SECURITY.md
%if %{with doc_pdf}
%doc docs/_build/latex/flask-socketio.pdf
%endif
%doc example

#-----------------------------------------------------------

%prep
%autosetup -n Flask-SocketIO-%{version}
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
sed -r -i \
    -e 's/--cov[^[:blank:]]*//g' \
    -e '/^[[:blank:]]*(pytest-cov)[[:blank:]]*$/d' \
    tox.ini


%generate_buildrequires
%pyproject_buildrequires -t


%build
%pyproject_wheel
%if %{with doc_pdf}
PYTHONPATH="${PWD}/src" %make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}'
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
%endif


%install
%pyproject_install
%pyproject_save_files flask_socketio


%check
# Because of its name, flask_socketio.test_client is mistaken for a test; then,
# pytest fails because of an import path mismatch, since that module is
# available both here in the build directory and in the buildroot. Simply
# ignoring it in test collection is perfectly correct and solves the problem.
%pytest --ignore-glob='*/test_client.py'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7053 |21cr|python-flask-sqlalchemy-3.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define   pypi_name   Flask-SQLAlchemy

Name:      python-flask-sqlalchemy
Version:   3.0.3
Release:   1
Summary:   Adds SQLAlchemy support to your Flask application
Group:     Development/Python
Source0:   %{pypi_source}
License:   BSD
Url:       http://github.com/mitsuhiko/flask-sqlalchemy
Patch0:    flask-sqlalchemy-requirements.patch
BuildRequires:   pkgconfig(python3)
BuildRequires:   pyproject-rpm-macros

BuildArch:   noarch

%description
Flask-SQLAlchemy
----------------
#--------------------------------------------
%package -n python3-flask-sqlalchemy
Summary:   Adds SQLAlchemy support to your Flask application
Group:     Development/Python
Provides:  python3-%{pypi_name} = %{EVRD}

%description -n python3-flask-sqlalchemy
Flask-SQLAlchemy
----------------

%files -n python3-flask-sqlalchemy
%doc *.rst docs
%{python3_sitelib}/*
#--------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
rm -f docs/_static/.DS_Store
rm -f docs/.DS_Store
rm -f docs/_themes/.gitignore

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7054 |21cr|python-flask-wtf-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name Flask-WTF

Name:           python-flask-wtf
Version:        1.0.1
Release:        1
Summary:        Simple integration of Flask and WTForms
Group:          Development/Python
License:        BSD
URL:            https://github.com/lepture/flask-wtf
Source0:        %{pypi_source %pypi_name}

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%description
Flask-WTF offers simple integration with WTForms. This integration
includes optional CSRF handling for greater security.

#-----------------------------------------------------------------
%package -n python3-flask-wtf
Summary:        Simple integration of Flask and WTForms
Group:          Development/Python

%description -n python3-flask-wtf
Flask-WTF offers simple integration with WTForms. This integration 
includes optional CSRF handling for greater security.

%files -n python3-flask-wtf -f %{pyproject_files}
%license LICENSE.rst
%doc README.rst docs/

#-----------------------------------------------------------------


%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files flask_wtf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7055 |21cr|python-flit-scm-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name flit_scm

Name:           python-flit-scm
Version:        1.7.0
Release:        1
Summary:        A PEP 518 build backend that uses setuptools_scm
Group:          Development/Python
License:        MIT
URL:            https://gitlab.com/WillDaSilva/flit_scm
Source0:        %{pypi_source}
Patch0:         flit-scm-requirements.patch
BuildRequires:  pkgconfig(python3) < 3.11
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%description
A PEP 518 build backend that uses setuptools_scm to generate a version 
file from your version control system, then flit_core to build the package.

#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        A PEP 518 build backend that uses setuptools_scm
Group:          Development/Python

%description -n python3-%{pypi_name}
A PEP 518 build backend that uses setuptools_scm to generate a version 
file from your version control system, then flit_core to build the package.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*
#-----------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7056 |21cr|python-flup-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module flup

Summary:    Python module related to FastCGI and WSGI
Name:       python-flup
Version:    1.0.3
Release:    1
Group:      Development/Python
Url:        http://trac.saddi.com/flup
Source0:    http://www.saddi.com/software/%module/dist/%module-%version.tar.gz
License:    BSD

BuildArch: noarch


%description
This Python package is a random
collection of WSGI and FCGI modules.

#-----------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}

BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(sphinx)

%description -n python3-%{module}
This Python3 package is a random
collection of WSGI and FCGI modules.

%files -n python3-%{module}
%doc docs/build/html/
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/*.egg-info/

#-----------------------------------------------------------

%prep
%setup -qn %module-%version

%build
%py3_build
python3 setup.py build_sphinx && \
    rm docs/build/html/.buildinfo

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7057 |21cr|python-foolscap-0.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	foolscap

Summary:	Rewrite of Perspective Broker
Name:		python-%{module}
Version:	0.10.1
Release:	1
Source0:	http://foolscap.lothar.com/releases/foolscap-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://foolscap.lothar.com/
Requires:	python3-twisted >= 2.4.0
Requires:	python3-OpenSSL >= 0.6
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
Foolscap is a ground-up rewrite of Perspective Broker, which itself is
Twisted's native RPC/RMI protocol (Remote Procedure Call / Remote
Method Invocation).  If you have control of both ends of the wire, and
are thus not constrained to use some other protocol like
HTTP/XMLRPC/CORBA/etc, you might consider using Foolscap.

%package -n python3-%{module}
Summary:	Rewrite of Perspective Broker

%description -n python3-%{module}
Foolscap is a ground-up rewrite of Perspective Broker, which itself is
Twisted's native RPC/RMI protocol (Remote Procedure Call / Remote
Method Invocation).  If you have control of both ends of the wire, and
are thus not constrained to use some other protocol like
HTTP/XMLRPC/CORBA/etc, you might consider using Foolscap.


%prep
%setup -q -n %{module}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%clean

%files -n python3-%{module}
%doc LICENSE NEWS README doc
%{_bindir}/*
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7058 |21cr|python-formats-0.1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module formats

Name:       python-%{module}
Version:    0.1.1
Release:    7
Summary:    Python 2 and 3 compatibility utilities
Group:      Development/Python
License:    MIT
Url:        http://pypi.python.org/pypi/%{module}/
Source0:    http://pypi.python.org/packages/source/f/%{module}/%{module}-%{version}.tar.gz
BuildArch:  noarch


%description
python-formats provides support for multiple formats with ease
Python 2 and Python 3.

#------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary} / Python 3 library
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
Support multiple formats with ease.
Formats will provide you with a consistent API to parse and compose data.

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/*
#------------------------------------------------------

%prep
%setup -qn %{module}-%{version}


%build
%py3_build


%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7059 |21cr|python-freezegun-0.3.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	freezegun

Name:		python-%{module}
Version:	0.3.10
Release:	3
Summary:	Let your Python tests travel through time
Source0:	https://pypi.python.org/packages/source/f/%{module}/%{module}-%{version}.tar.gz
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/spulec/freezegun
BuildArch:	noarch


%description
FreezeGun is a library that allows your python tests
to travel through time by mocking the datetime module.

#------------------------------------------------------------------
%package -n python3-%{module}
Summary:Let your Python3 tests travel through time
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
FreezeGun is a library that allows your python3 tests
to travel through time by mocking the datetime module.

%files -n python3-%{module}
%doc *.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7060 |21cr|python-frozenlist-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name frozenlist

Name:           python-%{pypi_name}
Version:	1.3.1
Release:	1
Summary:        A list-like structure which implements collections.abc.MutableSequence
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/aio-libs/aiohttp
Source0:	https://files.pythonhosted.org/packages/8a/95/229aacfe85daa28e2792481a98c336bc30d3729533e6a44db537880aca21/frozenlist-1.3.1.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
A list-like structure which implements collections.abc.MutableSequence.

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        A list-like structure which implements collections.abc.MutableSequence
Group:          Development/Python

%description -n python3-%{pypi_name}
A list-like structure which implements collections.abc.MutableSequence.

%files -n python3-%{pypi_name}
%doc CHANGES.rst CONTRIBUTORS.txt README.rst LICENSE
%{python3_sitearch}/*

#-----------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7061 |21cr|python-fudgemsg-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	fudgemsg

Name:		python-%{oname}
Version:	0.1
Release:	1
Summary:	Fudge is a hierarchical
Source0:	http://pypi.python.org/packages/source/f/%{oname}/%{oname}-%{version}.tar.gz
License:	APL2
Group:		Development/Python
Url:		http://github.com/joequant/Fudge-Python
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
UNKNOWN

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc LICENSE
%doc README.md
%{py_puresitedir}/fudgemsg/*.py*
%{py_puresitedir}/tests/*.py*
%{py_puresitedir}/fudgemsg*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7062 |21cr|python-gammu-3.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module gammu
%define gammu_ver 1.42.0

Name:       python-gammu
Version:    3.2.3
Release:    1
Summary:    Python bindings for Gammu
License:    GPLv2+
Group:      Development/Python
Url:        http://wammu.eu/python-gammu/
Source0:    https://github.com/gammu/%{name}/archive/%{version}/%{name}-%{version}.tar.gz


BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(gammu) >= %{gammu_ver}
BuildRequires:  libdbi-drivers-dbd-sqlite3

%description
Python bindings for Gammu library.
It currently does not support all Gammu features,
but range of covered functions is increasing,
if you need some specific, feel free to use bug tracking
system for feature requests.
#-----------------------------------------

%package -n python3-%{module}
Summary:    %{summary}
Requires:   gammu >= %{gammu_ver}

%description -n python3-%{module}
Python3 bindings for Gammu library.
It currently does not support all Gammu features,
but range of covered functions is increasing,
if you need some specific, feel free to use bug tracking
system for feature requests.

%files -n python3-%{module}
%doc AUTHORS NEWS.rst README.rst COPYING examples/*
%{py3_platsitedir}/gammu
%{py3_platsitedir}/python_gammu-*.egg-info
#-----------------------------------------

%prep
%setup -q
pushd examples
# remove shebang from examples
perl -pi -e "s|#!/usr/bin/env python||" *.py
chmod -x *.py
popd

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7063 |21cr|python-Gato-1.2.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Gato
Name:		python-%{pypi_name}
Group:		Development/Python
License:	LGPLv2
Summary:	Python Gato module
Version:	1.2.7
Release:	4
Source:		%{pypi_source}
URL:		http://gato.sourceforge.net/index.html
Requires:	tcl >= 8.6
Requires:	tk >= 8.6
Requires:	tkinter
BuildRequires:	python2-devel

%description
Gato - the Graph Animation Toolbox - is a software which visualizes
algorithms on graphs. Graphs are mathematical objects consisting of
vertices and edges connecting pairs of vertices: think of cities as
vertices and interstates as edges connecting two cities. Algorithms
might find a shortest path - the fastest route - or a minimal spanning
tree or solve one of other interesting problems on graphs: maximal-flow,
weighted and non-weighted matching and min-cost flow. Visualisation
means linking cause - the statements of an algorithm - immediately to
an effect - changes to the graph the algorithm has as its input - by
terms of blinking, changing colors and other visual effects.

%package -n python2-Gato
%py2_migration_meta python2-%{pypi_name}
Summary:	Python Gato module

%description -n python2-%{pypi_name}
Gato - the Graph Animation Toolbox - is a software which visualizes
algorithms on graphs. Graphs are mathematical objects consisting of
vertices and edges connecting pairs of vertices: think of cities as
vertices and interstates as edges connecting two cities. Algorithms
might find a shortest path - the fastest route - or a minimal spanning
tree or solve one of other interesting problems on graphs: maximal-flow,
weighted and non-weighted matching and min-cost flow. Visualisation
means linking cause - the statements of an algorithm - immediately to
an effect - changes to the graph the algorithm has as its input - by
terms of blinking, changing colors and other visual effects.


%prep
%setup -q -n %{pypi_name}-%{version}
sed -i -e 's:self.overrideredirect(1):self.overrideredirect(0):' GatoDialogs.py

%install
rm -fr %buildroot
mkdir -p %buildroot%{py2_platsitedir}/%{pypi_name}
cp *.py %buildroot%{py2_platsitedir}/%{pypi_name}

mkdir -p %buildroot%{_bindir}
pushd %buildroot%{_bindir}
ln -s %{py2_platsitedir}/Gato/Gato.py gato
ln -s %{py2_platsitedir}/Gato/Gred.py gred
popd

mkdir -p %buildroot%{_datadir}/%{pypi_name}
cp BFS.* DFS.* sample.cat %buildroot%{_datadir}/%{pypi_name}

# fix shebang
for a in $(find %buildroot%{py2_platsitedir}/%{pypi_name} -type f -name '*.py') ; do
    sed -i 's:#!/usr/local/bin/python.*$:#!/usr/bin/python2:' $a
    sed -i 's:#!/usr/bin/env.*python.*$:#!/usr/bin/python2:' $a
done

%clean
%__rm -rf %{buildroot}

%files -n python2-%{pypi_name}
%defattr(-,root,root)
%{_bindir}/*
%{py2_platsitedir}/*
%{_datadir}/Gato

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7064 |21cr|python-gbinder-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: python-gbinder
Version: 1.1.1
Release: 1
Summary: Python bindings for libgbinder
License: GPLv3
Group: Development/Python
URL: https://github.com/erfanoabdi/gbinder-python
Source0: https://github.com/erfanoabdi/gbinder-python/archive/%{version}/gbinder-python-%{version}.tar.gz

BuildRequires: pkgconfig(libgbinder)
BuildRequires: pkgconfig(libglibutil)
BuildRequires: pkgconfig(python3)
BuildRequires: python3dist(cython)

%global _description %{expand:
Cython extension module for libgbinder.
Provides IPC comunication over the /dev/binder protocol for python scripts.}

%description %{_description}

%package -n python3-gbinder
Summary:        %{summary}
Requires:       libgbinder

%description -n python3-gbinder %{_description}

%files -n python3-gbinder
%{python3_sitearch}/gbinder_python-%{version}-py*.*.egg-info
%{python3_sitearch}/gbinder.cpython-*.so

%prep
%autosetup -n gbinder-python-%{version} -p1

%build
%py3_build -- --cython

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7065 |21cr|python-gd-0.56-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	gd

Name:		python-%{module}
Group:		Development/Python
License:	BSD
Summary:	Python GD module
Version:	0.56
Release:	9
Source:		http://newcenturycomputers.net/projects/download.cgi/gdmodule-%{version}.tar.gz
URL:		http://newcenturycomputers.net/projects/gdmodule.html

BuildRequires:	pkgconfig(freetype2)
BuildRequires:	gd-devel >= 2.0.35-21
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	python2-devel
BuildRequires:	zlib-devel
Requires:	gd >= 2.0.35
Requires:	python

%description
This module is a python2 wrapper for the GD library. Due to the constant
change in the GD library API, there are several older versions of this
module available.

%package -n python2-%{module}
Summary:	Python GD module

%description -n python2-%{module}
This module is a python wrapper for the GD library. Due to the constant
change in the GD library API, there are several older versions of this
module available.


%prep
%setup -q -n gdmodule-%{version}
%ifnarch %{ix86}
perl -pi -e 's|"/usr/local/lib"|"%{_libdir}"|;' Setup.py
%endif

%build

%install
PYTHONDONTWRITEBYTECODE= \
%__python2 Setup.py install --root=%{buildroot}

%files -n python2-%{module}
%doc README
%{py2_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7066 |21cr|python-genshi-0.7.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module genshi

Name:		python-genshi
Version:	0.7.5
Release:	1
Summary:	Toolkit for stream-based generation of output for the web
Group:		Development/Python
License:	BSD
URL:		http://genshi.edgewall.org/
Source0:	http://ftp.edgewall.com/pub/%{module}/Genshi-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Genshi is a Python library that provides an integrated set of
components for parsing, generating, and processing HTML, XML or other
textual content for output generation on the web. The major feature is
a template language, which is heavily inspired by Kid.

#-----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Toolkit for stream-based generation of output for the web
Group:		Development/Python

%description -n python3-%{module}
Genshi is a Python library that provides an integrated set of
components for parsing, generating, and processing HTML, XML or other
textual content for output generation on the web. The major feature is
a template language, which is heavily inspired by Kid.

%files -n python3-%{module}
%doc ChangeLog COPYING doc examples README.txt
%{py3_puresitedir}/*

#-----------------------------------------------------------------------


%prep
%setup -q -n Genshi-%{version}
find examples -type f | xargs chmod a-x

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7067 |21cr|python-geoip-1.3.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname GeoIP

Summary: Python bindings for the GeoIP library


Name: python-geoip
Version: 1.3.2
Release: 3
Source0: https://pypi.python.org/packages/source/G/GeoIP/GeoIP-%{version}.tar.gz
URL: http://www.maxmind.com/app/python
License: BSD-like
Group: Development/Python
BuildRequires:  python2-devel
BuildRequires: pkgconfig(geoip)

%description
This is the Python API to the GeoIP library that enables the user to
find the country that any IP address or hostname originates from. It
uses a file based database that is accurate as of March 2003. This
database simply contains IP blocks as keys, and countries as
values. This database should be more complete and accurate than using
reverse DNS lookups. Commercial databases and automatic update
services are available from http://www.maxmind.com/

%package -n python2-geoip
%py2_migration_meta python2-geoip
Summary: Python bindings for the GeoIP library

%description -n python2-geoip
This is the Python API to the GeoIP library that enables the user to
find the country that any IP address or hostname originates from. It
uses a file based database that is accurate as of March 2003. This
database simply contains IP blocks as keys, and countries as
values. This database should be more complete and accurate than using
reverse DNS lookups. Commercial databases and automatic update
services are available from http://www.maxmind.com/


%prep
%setup -q -n %oname-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

%files -n python2-geoip
%{py2_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7068 |21cr|python-gerrit-0.0.1-4.gita7ffd76.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash a7ffd76

Name:           python-gerrit
Version:        0.0.1
Release:        4.git%{githash}.7
Summary:        Python interface to Gerrit

Group:          Development/Python
License:        ASL 2.0
URL:            http://github.com/bcwaldon/python-gerrit
Source0:        http://github.com/bcwaldon/python2-gerrit/tarball/%{githash}/python-gerrit-%{githash}.tar.gz

BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

%description
python2-gerrit is a Python interface to Gerrit, a code review system
for Git.

%package -n python2-gerrit
Summary:        Python interface to Gerrit

%description -n python2-gerrit
python-gerrit is a Python interface to Gerrit, a code review system
for Git.


%prep
%setup -q -n bcwaldon-python-gerrit-%{githash}


%build
%py2_build


%install
python2 setup.py install -O1 --skip-build --root %{buildroot}


%files -n python2-gerrit
%doc README LICENSE
%{py2_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7069 |21cr|python-gerritlib-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name gerritlib
%global desc A Python library for interacting with Gerrit

Name:		python-%{pypi_name}
Version:	0.6.0
Release:	1
Summary:	Client library for accessing Gerrit
Group:		Development/Python
License:	ASL 2.0
URL:		https://pypi.python.org/pypi/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pbr
BuildRequires:	python3-hacking
BuildRequires:	python3-paramiko

%description
%{desc}

%package -n python3-%{pypi_name}
Summary:	%{summary}
Requires:	python3-pbr
Requires:	python3-paramiko

%description -n python3-%{pypi_name}
%{desc}

%prep
%autosetup -n %{pypi_name}-%{version}
sed -i 's/\r//' LICENSE

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# We handle requirements ourselves, remove requirements.txt
rm -rf requirements.txt test-requirements.txt

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{pypi_name}
%doc README.rst AUTHORS ChangeLog
%doc LICENSE
%{py3_puresitedir}/*.egg-info
%{py3_puresitedir}/%{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7070 |21cr|python-gerrit-view-0.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name gerrit-view

Name:		python-gerrit-view 
Version:	0.4.6
Release:	1
Summary:	A set of tools to query/view Gerrit patch reviews and their Zuul status
License:	ASL 2.0 
URL:		https://pypi.org/project/gerrit-view/
Source0:	https://pypi.python.org/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz 
Group:		Development/Python
BuildArch:	noarch

BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3-urwid
BuildRequires:	python3-requests

%global _description\
A set of tools to query/view Gerrit patch reviews and their status.\
Current set of tools: (1) qgerrit -- to query different projects' Gerrit\
reviews based on a set of criteria/filters; (2) cgerrit -- to view (in\
real time) Gerrit reviews on CLI; (3) czuul -- to view Gerrit reviews'\
Zuul (a pipeline oriented project gating and automation system) status\
on CLI.

%description %_description

%package -n python3-gerrit-view
Summary:	%summary
Requires:	python3-gerritlib
Requires:	python3-requests
Requires:	python3-six
Requires:	python3-prettytable
Requires:	python3-urwid
Requires:	python3-paramiko
Requires:	python3-gitpython

%description -n python3-gerrit-view %_description

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf gerrit_view.egg-info

%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%files -n python3-gerrit-view
%doc README.rst
%{_bindir}/*
%{py3_puresitedir}/gerrit_view-%{version}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7071 |21cr|python-getdist-0.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	GetDist
%define	module	getdist

Name:		python-%{module}
Version:	0.2.7
Release:	1
Summary:	GetDist Monte Carlo sample analysis, plotting and GUI
Source0:	https://pypi.python.org/packages/7e/38/b23a6427795d86f3f3c2a9a3e8eaa730bfd0c8e70563550e650c7638aed0/%{oname}-%{version}.zip
License:	UNKNOWN
Group:		Development/Python
Url:		https://github.com/cmbant/getdist
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
GetDist is a Python package for analysing Monte Carlo samples,
including correlated samples from Markov Chain Monte Carlo 

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc README.rst
%{_bindir}/GetDist.py
%{_bindir}/GetDistGUI.py
%{py_puresitedir}/getdist/*.py*
%{py_puresitedir}/getdist/*.ini*
%{py_puresitedir}/getdist/gui/*.py*
%{py_puresitedir}/getdist_tests/*.py*
%{py_puresitedir}/paramgrid/*.py*
%{py_puresitedir}/GetDist*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7072 |21cr|python-gettext-4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	gettext

Name:		python-%{module}
Version:	4.0
Release:	1
Summary:	Python Gettext po to mo file compiler
License:	BSD
Group:		Development/Python
Url:		https://pypi.org/project/python-gettext/
Source0:	https://pypi.io/packages/source/p/python-gettext/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
This implementation of Gettext for Python includes a Msgfmt class which can be
used to generate compiled mo files from Gettext po files and includes support
for the newer msgctxt keyword.

%package -n	python3-%{module}
Summary:	Python 3 Gettext po to mo file compiler
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n	python3-%{module}
This implementation of Gettext for Python 3 includes a Msgfmt class which can
be used to generate compiled mo files from Gettext po files and includes
support for the newer msgctxt keyword.

%prep
%setup -q

# Remove bundled egg-info
rm -rf python_gettext.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc CHANGES.rst README.rst
%doc LICENSE.rst
%{py3_puresitedir}/pythongettext/
%{py3_puresitedir}/python_gettext-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7073 |21cr|python-gevent-socketio-0.3.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name gevent-socketio

Name:           python-gevent-socketio
Version:        0.3.6
Release:        6
Group:          Development/Python
Summary:        SocketIO server based on the Gevent pywsgi server, a Python network library

License:        BSD
Source0:        https://pypi.python.org/packages/source/g/gevent-socketio/gevent-socketio-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-sphinx
BuildRequires:  python3-setuptools
BuildRequires:  python3-versiontools


%description
``gevent-socketio`` is a Python implementation of the Socket.IO
protocol, developed originally for Node.js by LearnBoost and then
ported to other languages.  Socket.IO enables real-time web
communications between a browser and a server, using a WebSocket-like
API.

%package -n     python3-%{pypi_name}
Summary:        SocketIO server based on the Gevent pywsgi server, a Python network library
Provides:	python-gevent-socketio = %{EVRD}
Obsoletes:	python-gevent-socketio < %{EVRD}

%description -n python3-%{pypi_name}
``gevent-socketio`` is a Python implementation of the Socket.IO
protocol, developed originally for Node.js by LearnBoost and then
ported to other languages.  Socket.IO enables real-time web
communications between a browser and a server, using a WebSocket-like
API.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
# generate html docs 
sphinx-build docs/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%files -n python3-%{pypi_name}
%doc html README.rst LICENSE
%{py3_puresitedir}/socketio
%{py3_puresitedir}/gevent_socketio-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7074 |21cr|python-gevent-websocket-0.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name gevent-websocket

Name:           python-gevent-websocket
Version:	0.10.1
Release:	1
Group:          Development/Python
Summary:        Websocket handler for the gevent pywsgi server, a Python network library

License:        ASL 2.0
URL:            https://bitbucket.org/Jeffrey/gevent-websocket/
Source0:	https://files.pythonhosted.org/packages/98/d2/6fa19239ff1ab072af40ebf339acd91fb97f34617c2ee625b8e34bf42393/gevent-websocket-0.10.1.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools


%description
gevent-websocket is a WebSocket library for the gevent networking library.

Features include:

- Integration on both socket level or using an abstract interface.
- RPC and PubSub framework using WAMP (WebSocket Application
  Messaging Protocol).
- Easily extendible using a simple WebSocket protocol plugin API

%package -n     python3-%{pypi_name}
Summary:        Websocket handler for the gevent pywsgi server, a Python network library
Provides:	python-gevent-websocket = %{EVRD}
Provides:	python-gevent-websocket < %{EVRD}

%description -n python3-%{pypi_name}
gevent-websocket is a WebSocket library for the gevent networking library.

Features include:

- Integration on both socket level or using an abstract interface.
- RPC and PubSub framework using WAMP (WebSocket Application
  Messaging Protocol).
- Easily extendible using a simple WebSocket protocol plugin API


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
2to3 -w .


%build
python3 setup.py build


%install
python3 setup.py install --skip-build --root %{buildroot}

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{py3_puresitedir}/geventwebsocket
%{py3_puresitedir}/gevent_websocket-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7075 |21cr|python-gfbi_core-0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name gfbi_core
%define beta    b3

Name: 		python-%{upstream_name}
Version: 	0.5
Release: 	5
Summary: 	Core files for interactive git filter branch
License:	BSD
Group: 		Development/Python
Url: 		http://pypi.python.org/pypi/gfbi_core
Source0: 	http://pypi.python.org/packages/source/g/gfbi_core/gfbi_core-%{version}%{beta}.tar.gz
Requires:       python2-gitpython
BuildRequires:       python2-devel
BuildArch:      noarch

%description
These are the core files for interactive git filter-branch. There are two
frontends : qGitFilterBranch and gfbi.

%package -n python2-%{upstream_name}
Summary: 	Core files for interactive git filter branch

%description -n python2-%{upstream_name}
These are the core files for interactive git filter-branch. There are two
frontends : qGitFilterBranch and gfbi.


%prep
%setup -q -n %{upstream_name}-%{version}%{beta}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

%files -n python2-%{upstream_name}
%doc AUTHORS.txt CHANGELOG README.rst LICENSE.txt
%{python2_sitelib}/gfbi_core
%{python2_sitelib}/gfbi_core-%{version}%{beta}-py%{py2_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7076 |21cr|python-gflags-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module gflags

Name:           python-%{module}
Version:        2.0
Release:        6
Summary:        Commandline flags module for Python
Group:          Development/Python
License:        BSD
URL:            http://code.google.com/p/python-gflags/
Source0:        http://python-gflags.googlecode.com/files/%{name}-%{version}.tar.gz
BuildArch:      noarch

%description
This project is the python equivalent of google-gflags, a Google commandline
flag implementation for C++. It is intended to be used in situations where a
project wants to mimic the command-line flag handling of a C++ app that uses
google-gflags, or for a Python app that, via swig or some other means, is
linked with a C++ app that uses google-gflags.

The gflags package contains a library that implements commandline flags
processing. As such it's a replacement for getopt(). It has increased
flexibility, including built-in support for Python types, and the ability to
define flags in the source file in which they're used. (This last is its major
difference from OptParse.)

%package -n     python3-%{module}
Summary:        Commandline flags module for Python 3
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
This project is the python equivalent of google-gflags, a Google commandline
flag implementation for C++. It is intended to be used in situations where a
project wants to mimic the command-line flag handling of a C++ app that uses
google-gflags, or for a Python app that, via swig or some other means, is
linked with a C++ app that uses google-gflags.

The gflags package contains a library that implements commandline flags
processing. As such it's a replacement for getopt(). It has increased
flexibility, including built-in support for Python types, and the ability to
define flags in the source file in which they're used. (This last is its major
difference from OptParse.)

This is the Python 3 version of the package.

%prep
%setup -q
# Fix non-executable-script error (from SUSE spec file)
sed -i '/^#!\/usr\/bin\/env python$/,+1 d' %{module}.py %{module}_validators.py

sed -i -e 's|#!/usr/bin/env python|#!/usr/bin/env python3|' gflags2man.py
2to3 --write --nobackup .

%build
%py3_build

%install
%py3_install
cp %{buildroot}/%{_bindir}/gflags2man.py %{buildroot}/%{_bindir}/python3-gflags2man.py

%files -n python3-%{module}
%doc AUTHORS ChangeLog COPYING README PKG-INFO 
%{py3_puresitedir}/%{module}.py*
%{py3_puresitedir}/python_gflags-%{version}-*egg-info
%{py3_puresitedir}/gflags_validators.py*
%{py3_puresitedir}/__pycache__/
%{_bindir}/python3-gflags2man.py
%{_bindir}/gflags2man.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7077 |21cr|python-gitdb-4.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name gitdb
%define debug_package	%{nil}

Name: 		python-%{upstream_name}
Version: 	4.0.5
Release: 	1
Summary: 	Git Object Database
License:	BSD
Group: 		Development/Python
Url: 		https://pypi.python.org/pypi/gitdb
Source0: 	https://pypi.io/packages/source/g/gitdb/gitdb-%{version}.tar.gz

%description
GitDB is a Python git object database.

#-----------------------------------------------------------

%package -n python3-gitdb
Summary:       A pure-Python 3 git object database
Group:         Development/Python
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(nose)
BuildRequires: python3egg(async)
BuildRequires: python3egg(smmap)
#gitdb2 project its a mirror if gitdb
Provides:      python3egg(gitdb2) = %{EVRD}
Provides:      python3-gitdb2 = %{EVRD}
Requires:      python3egg(async)
BuildArch:     noarch

%description -n python3-gitdb
GitDB allows you to access bare git repositories for reading and writing. It
aims at allowing full access to loose objects as well as packs with performance
and scalability in mind. It operates exclusively on streams, allowing to
operate on large objects with a small memory footprint.

This is the Python 3 version of the package.

%files -n python3-gitdb
%doc AUTHORS LICENSE
%{python3_sitelib}/gitdb*

#-----------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7078 |21cr|python-gmpy-1.17-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module gmpy

Summary:	Python interface to GMP
Name:		python-%{module}
Version:	1.17
Release:	7
License: 	LGPLv2+
Group: 		Development/Python
Url: 		https://github.com/aleaxit/gmpy
# Source URL from Mageia package, old url on googlecode:
#Source0:	http://gmpy.googlecode.com/files/gmpy-%{version}.zip
Source0:	https://pypi.io/packages/g/%{module}/%{module}-%{version}.zip
BuildRequires:	pkgconfig(gmp) >= 4.2.4
BuildRequires:	pkgconfig(python3)

%description
The General Multiprecision PYthon project (GMPY) focuses on
Python-usable modules providing multiprecision arithmetic
functionality to Python programmers. The project mission includes both
C and C++ Python-modules (for speed) and pure Python modules (for
flexibility and convenience); it potentially includes integral,
rational and floating-point arithmetic in any base. Only
cross-platform functionality is of interest, at least for now.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python 3 interface to GMP
Group:		Development/Python

%description -n python3-%{module}
The General Multiprecision PYthon project (GMPY) focuses on
Python 3 usable modules providing multiprecision arithmetic
functionality to Python 3 programmers. The project mission includes both
C and C++ Python-modules (for speed) and pure Python 3 modules (for
flexibility and convenience); it potentially includes integral,
rational and floating-point arithmetic in any base. Only
cross-platform functionality is of interest, at least for now.

%files -n python3-%{module}
%doc README doc/ test/
%{python3_sitearch}/gmpy*.so
%{python3_sitearch}/gmpy-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
CFLAGS="%{optflags}" %py3_build

%install
%py3_install
chmod 755 %{buildroot}%{python3_sitearch}/gmpy*.so

%check
# Make python see the library that we have just compiled
libdir=`ls build/|grep lib`
export PYTHONPATH=`pwd`/build/$libdir

cd test
%__python3 gmpy_test.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7079 |21cr|python-gmpy2-2.1.0-0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module gmpy2
%define prerel rc1

Name:           python-%{module}
Version:        2.1.0
Release:        0.1
Summary:        Python interface to GMP, MPFR, and MPC
Group:          Development/Python
License:        LGPLv3+
URL:            https://pypi.python.org/pypi/gmpy2
Source0:        https://github.com/aleaxit/gmpy/archive/%{module}-%{version}%{prerel}.tar.gz


%description
This package contains a C-coded Python extension module that supports
multiple-precision arithmetic.  It is the successor to the original
gmpy module.
The gmpy module only supported the GMP multiple-precision
library.
Gmpy2 adds support for the MPFR (correctly rounded real
floating-point arithmetic) and MPC (correctly rounded complex
floating-point arithmetic) libraries.  It also updates the API and
naming conventions to be more consistent and support the additional
functionality.
#---------------------------------------------------------------

%package -n python3-%{module}
Summary:        Python 3 interface to GMP, MPFR, and MPC


BuildRequires:  gmp-devel
BuildRequires:  libmpc-devel
BuildRequires:  pkgconfig(mpfr)
BuildRequires:  python3-devel
BuildRequires:  python3egg(cython)
BuildRequires:  python3egg(pip)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(wheel)


%description -n python3-%{module}
This package contains a C-coded Python extension module that supports
multiple-precision arithmetic.  It is the successor to the original
gmpy module.
The gmpy module only supported the GMP multiple-precision
library.
Gmpy2 adds support for the MPFR (correctly rounded real
floating-point arithmetic) and MPC (correctly rounded complex
floating-point arithmetic) libraries.  It also updates the API and
naming conventions to be more consistent and support the additional
functionality.


%files -n python3-%{module}
%doc COPYING COPYING.LESSER docs/_build/html/*
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}-%{version}%{prerel}-py?.?.egg-info

#---------------------------------------------------------------


%prep
%setup -qn gmpy-%{module}-%{version}%{prerel}

%build
%py3_build
make -C docs html

%install
%py3_install

%check
libdir=`ls build/|grep lib`
export PYTHONPATH=`pwd`/build/$libdir
cd test
python3 runtests.py



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7080 |21cr|python-gnupg-0.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gnupg

Summary:	A Python wrapper for GnuPG
Name:		python-%{oname}
Version:	0.4.5
Release:	1
Epoch:		1
License:	BSD
Group:		Development/Python
Url:		https://github.com/vsajip/python-gnupg
Source0:	http://pypi.python.org/packages/source/g/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pythonegg(setuptools)
Requires:	gnupg2
BuildArch:	noarch

%description
This module implements a Python library which takes care of the internal
details and allows its users to generate and manage keys, encrypt and
decrypt data, and sign and verify messages.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	A Python wrapper for GnuPG

%description -n python2-%{oname}
This module implements a Python library which takes care of the internal
details and allows its users to generate and manage keys, encrypt and
decrypt data, and sign and verify messages.

%files -n python2-%{oname}
%doc LICENSE.txt README.rst
%{py2_puresitedir}/gnupg.py*
%{py2_puresitedir}/python_gnupg-%{version}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7081 |21cr|python-GnuPG-Interface-0.3.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name python-GnuPG-Interface
%define version 0.3.2
%define oname GnuPGInterface

Summary: GnuPG-Interface module for python
Name: %{name}
Version: %{version}
Release: 17
Source0: http://py-gnupg.sourceforge.net/download/%{oname}-%{version}.tar.bz2
License: LGPL
Group: Development/Python
Url: http://py-gnupg.sourceforge.net/
BuildRequires:  python3-devel
BuildRequires:  gnupg
BuildArch:	noarch

%description
This module provides Python bindings for the GnuPG.

%prep
%setup -q -n %oname-%version
chmod 644 ./*

%build
%py3_build

%install
%py3_install

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING ChangeLog MANIFEST NEWS README THANKS
%{py3_puresitedir}/GnuPGInterface.py*
%{py3_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7082 |21cr|python-gnuplot-1.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A Python interface to the gnuplot plotting program
Name:    python-gnuplot
Version: 1.8
Release: 8
Source0: http://downloads.sourceforge.net/gnuplot-py/gnuplot-py-%{version}.tar.gz
Patch0:	gnuplot-py-1.8-StringIO-py3.patch
Patch1: gnuplot-py-1.8-py3-print.patch
License: LGPLv2
Group:   Development/Python
Url:     http://gnuplot-py.sourceforge.net
Requires: gnuplot
Requires: python3-numpy
Provides: gnuplot-py = %{version}
BuildRequires: python3-devel
BuildRequires: gnuplot
BuildRequires: python3-numpy
BuildRequires: pkgconfig(lapack)
BuildArch: noarch


%description
Gnuplot.py is a Python package that interfaces to gnuplot,
the popular open-source plotting program. It allows you
to use gnuplot from within Python to plot arrays of data
from memory, data files, or mathematical functions.
If you use Python to perform computations or as 'glue'
for numerical programs, you can use this package to plot
data on the fly as they are computed. And the combination
with Python makes it is easy to automate things, including
to create crude 'animations' by plotting different datasets
one after another.
The package includes a demonstration that can be run by 
typing 'python3 %{py3_puresitedir}/Gnuplot/demo.py'.

%package -n python3-gnuplot
Summary: A Python interface to the gnuplot plotting program

%description -n python3-gnuplot
Gnuplot.py is a Python package that interfaces to gnuplot,
the popular open-source plotting program. It allows you
to use gnuplot from within Python to plot arrays of data
from memory, data files, or mathematical functions.
If you use Python to perform computations or as 'glue'
for numerical programs, you can use this package to plot
data on the fly as they are computed. And the combination
with Python makes it is easy to automate things, including
to create crude 'animations' by plotting different datasets
one after another.
The package includes a demonstration that can be run by 
typing 'python3 %{py3_puresitedir}/Gnuplot/demo.py'.


%prep
%setup -q -n gnuplot-py-%{version}
%apply_patches

%build
python3 setup.py build

%install
python3 setup.py install --root="%{buildroot}" --prefix="%{_prefix}"

%files -n python3-gnuplot
%doc ANNOUNCE.txt README.txt NEWS.txt FAQ.txt CREDITS.txt TODO.txt LICENSE.txt Gnuplot.html doc/
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7083 |21cr|python-gnutls-3.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name python-gnutls

%define debug_package %{nil}

Name:		%{pypi_name}
Version:	3.1.3
Release:	1
Group:		Development/Python
License:	LGPL
Summary:	Python wrapper for the GNUTLS library
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
URL:		http://pypi.io/pypi/python-gnutls
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	python3-devel

%description
This package provides a high level object oriented wrapper around libgnutls,
as well as low level bindings to the GNUTLS types and functions via ctypes.
The high level wrapper hides the details of accessing the GNUTLS library
via ctypes behind a set of classes that encapsulate GNUTLS sessions,
certificates and credentials and expose them to python2 applications using
a simple API.

#------------------------------------------------------------------------
%package -n python3-gnutls
Summary:	Python wrapper for the GNUTLS library
Group:		Development/Python

%description -n python3-gnutls
This package provides a high level object oriented wrapper around libgnutls,
as well as low level bindings to the GNUTLS types and functions via ctypes.
The high level wrapper hides the details of accessing the GNUTLS library
via ctypes behind a set of classes that encapsulate GNUTLS sessions,
certificates and credentials and expose them to python applications using
a simple API.

%files -n python3-gnutls
%doc LICENSE ChangeLog
%{python3_sitelib}/gnutls
%{python3_sitelib}/*.egg-info

#------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7084 |21cr|python-gpgme-0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_srpm %{nil}

%define mname pygpgme
%define _exclude_files_from_autoprov %{python2_sitearch}/.*\\.so
%define _exclude_files_from_autoprov %{python3_sitearch}/.*\\.so

Name:           python-gpgme
Version:        0.3
Release:        6
Summary:        Python module for working with OpenPGP messages
License:        LGPLv2+
Group:          Development/Python
URL:            https://launchpad.net/pygpgme
Source0:        https://pypi.python.org/packages/source/p/%{mname}/%{mname}-%{version}.tar.gz
Source100:      python-gpgme.rpmlintrc
BuildRequires:  pkgconfig(python2)
BuildRequires:  gpgme-devel

%description
PyGPGME is a Python module that lets you sign, verify, encrypt and decrypt
files using the OpenPGP format.  It is built on top of GNU Privacy Guard and
the GPGME library.

#============================================================================
%package -n python3-gpgme
Summary:	Python 3 module for working with OpenPGP messages
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

%description -n python3-gpgme
PyGPGME is a Python 3 module that lets you sign, verify, encrypt and decrypt
files using the OpenPGP format.  It is built on top of GNU Privacy Guard and
the GPGME library.

%files -n python3-gpgme
%{python3_sitearch}/*
#============================================================================
%prep
%setup -qn %{mname}-%{version}
cp -a . %{py3dir} 

%build
export PYTHON=%__python2
%py2_build

pushd %{py3dir} 
%py3_build
popd


%install
pushd %{py3dir}
%py3_install
popd

%py2_install
# No need to ship the tests
rm -rf %{buildroot}/%{python2_sitearch}/gpgme/tests/
rm -rf %{buildroot}/%{python3_sitearch}/gpgme/tests/


%files
%doc README PKG-INFO
%{python2_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7085 |21cr|python-gphoto2-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name gphoto2

Summary:	Python interface to libgphoto2
Name:		python-%{pypi_name}
Version:	2.2.1
Release:	1
License:	GPLv3+
Group:		Development/Python
Url:		https://github.com/jim-easterbrook/python-gphoto2
Source0:	https://pypi.io/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	swig
BuildRequires:	pkgconfig(libgphoto2)

%description
python-gphoto2 is a comprehensive Python interface (or binding) to libgphoto2.
It is built using SWIG to automatically generate the interface code. This
gives direct access to nearly all the libgphoto2 functions, but sometimes in a
rather un-Pythonic manner.

#-----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:		Python 3 interface to libgphoto2
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)

%description -n python3-%{pypi_name}
python-gphoto2 is a comprehensive Python interface (or binding) to libgphoto2.
It is built using SWIG to automatically generate the interface code. This
gives direct access to nearly all the libgphoto2 functions, but sometimes in a
rather un-Pythonic manner.

%files -n python3-%{pypi_name}
%doc README.rst CHANGELOG*
%{py3_platsitedir}/*

#-----------------------------------------------------------------------------

%package examples
Summary:	Example files for python-gphoto2
BuildArch:	noarch
Requires:	python3-%{pypi_name}

%description examples
python-gphoto2 is a comprehensive Python interface (or binding) to libgphoto2.
It is built using SWIG to automatically generate the interface code. This
gives direct access to nearly all the libgphoto2 functions, but sometimes in a
rather un-Pythonic manner.
This package contains the example files.

%files examples
%doc README.rst
%{_datadir}/%{name}/

#-----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}


%build
python3 setup.py build_swig
%py3_build


%install
%py3_install


%check
python3 setup.py check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7086 |21cr|python-grapefruit-0.1a4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module grapefruit

Name:          python-grapefruit
Version:       0.1a4
Release:       2
Summary:       Python module for easy manipulation of color information
Group:         Development/Python
License:       ASL 2.0
URL:           https://github.com/xav/grapefruit/
Source0:       https://github.com/xav/Grapefruit/releases/download/%{version}/%{module}-%{version}.tar.gz
BuildArch:     noarch

%description
GrapeFruit is a pure python module that let you easily manipulate and convert
color information. It's primary goal is to be natural and flexible.

%package -n     python3-%{module}
Summary:        Python 3 module for easy manipulation of color information
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)

%description -n python3-%{module}
GrapeFruit is a pure python 3 module that let you easily manipulate and convert
color information. It's primary goal is to be natural and flexible.

%prep
%setup -q -c %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

sed -i 's/\r//' CHANGES LICENSE TODO doc/Makefile doc/index.rst doc/conf.py doc/makedoc.cmd

# Fix shebang to avoid auto-generating Python 2 dependency in python3- subpackage.
sed -i '1s=^#!/usr/bin/python=#!%{__python3}=' grapefruit.py

%build
%py3_build

%install
%py3_install
chmod a+x %{buildroot}%{py3_puresitedir}/grapefruit.py

%files -n python3-%{module}
%doc doc/ CHANGES COPYING README.rst TODO
%doc LICENSE
%{py3_puresitedir}/grapefruit-%{version}-py?.?.egg-info
%{py3_puresitedir}/grapefruit.py*
%{py3_puresitedir}/__pycache__/grapefruit*.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7087 |21cr|python-graph-1.5.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name graph

Summary:	Add-on for tkinter Python module allows simple drawing in a window
Summary(ru_RU.UTF-8):	Надстройка для модуля tkinter, позволяющая рисовать в окне
Name:		python-%{module_name}
Version:	1.5.4
Release:	3
License:	GNU Public License
Group:		Development/Python
Url:		https://kpolyakov.spb.ru/school/pycpp.htm
Source0:	%{module_name}.py
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%define _description \
Add-on for tkinter Python module, allows drawing \
with simple commands in a separate window.

%define _description_ru \
Модуль graph - это "обертка" над стандартной библиотекой tkinter, \
позволяющая рисовать простыми командами в отдельном графическом окне.

%description -l ru_RU.UTF-8
%{_description_ru}

%description
%{_description}

#------------------------------------------------------------------

%package -n python3-%{module_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{module_name}
%{_description}

%description -l ru_RU.UTF-8 -n python3-%{module_name}
%{_description_ru}

%files -n python3-%{module_name}
%{python3_sitelib}/%{module_name}.py
%{python3_sitelib}/__pycache__/*
#------------------------------------------------------------------

%prep
cp %sources .

%build

%install
mkdir -p %{buildroot}%{python3_sitelib}
install -m644 %{module_name}.py %{buildroot}%{python3_sitelib}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7088 |21cr|python-graphcanvas-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module graphcanvas

Summary:	Enthought Tool Suite - interactive graph visualization
Name:		python-%{module}
Version:	4.1.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/%{module}/
Source0:	https://github.com/enthought/%{module}/archive/refs/tags/%{version}/%{module}-%{version}.tar.gz

BuildArch:	noarch

%description
graphcanvas is an library for interacting with visualizations of
complex graphs. The aim is to allow the developer to declare the graph
by the simplest means and be able to visualize the graph immediately.


#----------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Enthought Tool Suite - interactive graph visualization
Group:		Development/Python

BuildRequires:	python3egg(setuptools)
Requires:	python3egg(enable)
Requires:	python3egg(networkx)

%description -n python3-%{module}
graphcanvas is an library for interacting with visualizations of
complex graphs. The aim is to allow the developer to declare the graph
by the simplest means and be able to visualize the graph immediately.

%files -n python3-%{module}
%doc examples/ *.rst
%{py3_puresitedir}/%{module}*
#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7089 |21cr|python-grequests-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	grequests

Name:		python-%{pypi_name}
Summary:	Requests + Gevent
Version:	0.6.0
Release:	2
License:	BSD
Group:		Development/Python
Url:		https://github.com/kennethreitz/grequests
Source0:	http://pypi.python.org/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildArch:	noarch

%description
GRequests allows you to use Requests with Gevent to make asynchronous HTTP
Requests easily.


#------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Requests + Gevent
Group:		Development/Python

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(chardet)
BuildRequires:	python3egg(idna)
BuildRequires:	python3egg(requests)
BuildRequires:	python3egg(certifi)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(wheel)

Provides:	python-%{pypi_name}

%description -n python3-%{pypi_name}
GRequests allows you to use Requests with Gevent to make asynchronous HTTP
Requests easily.

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{py3_puresitedir}/grequests.py*
%{py3_puresitedir}/grequests*.egg-info
%{py3_puresitedir}/__pycache__
#------------------------------------------------------


%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7090 |21cr|python-gtkmvc-1.99.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname gtkmvc
%define pyver %(python -V 2>&1 | cut -f2 -d" " | cut -f1,2 -d".")

Name:           python-%{modname}
URL:            http://pygtkmvc.sourceforge.net/
Summary:        Model-View-Controller and Observer patterns for the PyGTK2
Version:        1.99.1
Release:        4
License:        BSD
Group:          Development/Python
Source0:        https://sourceforge.net/projects/pygtkmvc/files/pygtkmvc/1.99.1/%{name}-%{version}.tar.gz
BuildArch:      noarch
Requires:       python pygtk2.0 libglade2.0

BuildRequires:  pkgconfig(python) pkgconfig(libglade-2.0) pygtk2.0-devel

%description
Pygtk MVC is a multiplatform implementation of a dialect
of the Model-View-Controller and Observer patterns for the
PyGTK2 toolkit.

MVC is a pattern that can be successfully used to design
and develop well structured GUI applications.
The MVC pattern basically helps in separating sematics
and data of the application, from their representation.

Within Pygtk MVC the Observer pattern is also embedded.
This pattern allows making separated parts independent,
but still connected each other.

%prep
%setup -q -n python-%{modname}-%{version}

%build
export CFLAGS="$RPM_OPT_FLAGS"
%{__python} setup.py build

export PYTHONPATH="$RPM_BUILD_ROOT%{_libdir}/python%{pyver}/site-packages"

%install
%{__python} setup.py install --root=$RPM_BUILD_ROOT

%files
%doc docs examples AUTHORS COPYING INSTALL NEWS README PKG-INFO
%{_bindir}/gtkmvc-progen
%py_purelibdir/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7091 |21cr|python-gtkspellcheck-4.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# rpmlint just sucks!!!
# enchant.errors.DefaultLanguageNotFoundError: en_US
%define _build_pkgcheck_set %{nil}


%define	oname	pygtkspellcheck
%define	module	gtkspellcheck
%define hash    26d724a887879201fca2c9c4ef5e500436fa4d59a8e949e09b9c34d8b9a4

Summary:	A powerful Python spell checking library for GtkTextViews based on Enchant
Name:		python-%{module}
Version:	4.0.6
Release:	1
License:	GPLv3+
Group:		Development/Python
Url:		http://koehlma.github.com/projects/pygtkspellcheck.html
Source0:	https://files.pythonhosted.org/packages/61/52/%{hash}/%{oname}-%{version}.tar.gz

BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pyenchant)
BuildRequires:	pkgconfig(enchant-2)

BuildArch:	noarch

%description
A simple but quite powerful spellchecking library written in pure
Python for Gtk based on Enchant. It supports PyGObject as well as
PyGtk for Python 2 and 3 with automatic switching and binding detection.
For automatic translation of the user interface it can use Gedit’s
translation files.

#-------------------------------------------------------
%package -n python3-%{module}
Summary:	A powerful Python spell checking library for GtkTextViews based on Enchant

%description -n python3-%{module}
A simple but quite powerful spellchecking library written in pure
Python for Gtk based on Enchant. It supports PyGObject as well as
PyGtk for Python 2 and 3 with automatic switching and binding detection.
For automatic translation of the user interface it can use Gedit’s
translation files.

%files -n python3-%{module} -f py3gtkspellcheck.lang
%doc README.rst LICENSE.txt
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/pylocales/
%{py3_puresitedir}/%{oname}-%{version}-py%{python3_version}.egg-info


#-------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
rm -rf src/pygtkspellcheck.egg-info/


%build
%py3_build

%install
%py3_install

%find_lang py3gtkspellcheck

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7092 |21cr|python-gunicorn-19.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstream_name gunicorn

Name:           python-%{upstream_name}
Version:        19.9.0
Release:        4
Summary:        Python WSGI application server

Group:          Development/Python
License:        MIT
URL:            http://gunicorn.org/
Source0:        https://pypi.io/packages/source/g/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(nose)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-cov)
BuildRequires:  python3dist(mock)

%description
Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It uses the
pre-fork worker model, ported from Ruby's Unicorn project. It supports WSGI,
Django, and Paster applications.

%package -n python3-%{upstream_name}
Summary:        Python3 WSGI application server
Group:          Development/Python
Obsoletes:      python2-%{upstream_name} < 19.9.0-2

%description -n python3-%{upstream_name}
Gunicorn ("Green Unicorn") is a Python3 WSGI HTTP server for UNIX. It uses the
pre-fork worker model, ported from Ruby's Unicorn project. It supports WSGI,
Django, and Paster applications.

%prep
%setup -q -n %{upstream_name}-%{version}

# Tests requires a precise 2.8.3
perl -pi -e 's/pytest==2.8.3/pytest>=2.8.3/' requirements_test.txt
perl -pi -e 's/pytest-cov==1.7.0/pytest-cov>=1.7.0/' requirements_test.txt

%build
%py3_build

%install
%py3_install

%check
%if 0
python3 setup.py test
%endif

%files -n python3-%{upstream_name}
%doc LICENSE NOTICE README.rst THANKS
%{py3_puresitedir}/%{upstream_name}*
%{_bindir}/%{upstream_name}
%{_bindir}/%{upstream_name}_paster

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7093 |21cr|python-gvgen-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname GvGen
%define module gvgen
%define hash bf1fee74afaa055ae999d899369eb3278b55e3503be281a2f2cdf8ae6824

Summary:    Python class to generate dot files for further use with graphviz
Name:       python-%{module}
Version:    1.0
Release:    1
License:    MIT
Group:      Development/Python
Url:        https://github.com/stricaud/gvgen
Source0:    https://files.pythonhosted.org/packages/bb/59/%{hash}/%{oname}-1.0.tar.gz
Source1:    user-guide.tex.lyx

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildArch:  noarch

%description
%{oname} is a python class to generate dot files for further use with graphviz:
    * Edge creation, naming and connection
    * Apply any graphviz property on the fly
    * Apply graphviz properties to a style

#-----------------------------------------------------------
%package -n python3-%{module}
Summary:	Python class to generate dot files for further use with graphviz

%description -n python3-%{module}
%{oname} is a python class to generate dot files for further use with graphviz:
    * Edge creation, naming and connection
    * Apply any graphviz property on the fly
    * Apply graphviz properties to a style

%files -n python3-%{module}
%doc *.md user-guide.tex.lyx
%{py3_puresitedir}/*


#-----------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}
rm -fr GvGen.egg-info

cp -f %{SOURCE1} .

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7094 |21cr|python-h2-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	h2

Name:		python-%{module}
Version:	3.2.0
Release:	1
Summary:	HTTP/2 State-Machine based protocol implementation
Group:		Development/Python
License:	MIT
URL:		https://pypi.python.org/pypi/h2
Source0:	https://pypi.io/packages/source/h/h2/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
This module contains a pure-Python implementation of a HTTP/2 protocol stack.
It’s written from the ground up to be embeddable in whatever program
you choose to use, ensuring that you can speak HTTP/2 regardless of
your programming paradigm.

%package -n	python3-%{module}
Summary:	HTTP/2 State-Machine based protocol implementation
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)

%description -n	python3-%{module}
This module contains a pure-Python implementation of a HTTP/2 protocol stack.
It’s written from the ground up to be embeddable in whatever program
you choose to use, ensuring that you can speak HTTP/2 regardless of
your programming paradigm.

This is the Python 3 version of the package.

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc CONTRIBUTORS.rst HISTORY.rst LICENSE README.rst
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7095 |21cr|python-h5py-3.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define module h5py
# we don't want to provide private python extension libs
%global __provides_exclude .so

Name:           python-%{module}
Version:        3.5.0
Release:        1
Summary:        Read and write HDF5 files from Python
Group:          Development/Python
License:        BSD
URL:            http://www.h5py.org/
Source0:        https://pypi.python.org/packages/source/h/h5py/%{module}-%{version}.tar.gz
Patch0:         h5py-rosa-numpy.patch
BuildRequires:  hdf5-devel

%description
The h5py package provides both a high- and low-level interface to the HDF5
library from Python. The low-level interface is intended to be a complete
wrapping of the HDF5 API, while the high-level component supports  access to
HDF5 files, datasets and groups using established Python and NumPy concepts.

#----------------------------------------------------------------

%package -n     python3-%{module}

Summary:        Read and write HDF5 files from Python 3
Group:          Development/Python
BuildRequires:  python3egg(pytools)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(cython)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(pkgconfig)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(pip)
BuildRequires:  python3egg(wheel)

Requires:       python3egg(numpy)

%description -n python3-h5py
The h5py package provides both a high- and low-level interface to the HDF5
library from Python. The low-level interface is intended to be a complete
wrapping of the HDF5 API, while the high-level component supports  access to
HDF5 files, datasets and groups using established Python and NumPy concepts.
This is the Python 3 version of %{module}.


%files -n python3-h5py
%doc licenses/*.txt *.rst
%{py3_platsitedir}/%{module}/
%{py3_platsitedir}/%{module}-%{version}-py*.*.egg-info

#----------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}
%patch0 -p1

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7096 |21cr|python-hachoir-core-1.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name hachoir-core

Summary:	Python library to edit binary file and metadata
Name:		python-%{module_name}
Version:	1.3.3
Release:	5
License:	GPLv2+
Group:		Development/Python
Url:		http://hachoir.org/
Source0:	http://cheeseshop.python.org/packages/source/h/%{module_name}/%{module_name}-%{version}.tar.gz
BuildRequires:	python2-setuptools
Obsoletes:	python2-hachoir < 0.5.3
BuildArch:	noarch

%description
Hachoir is a library written in Python which allows to see and edit a binary
file (or any binary stream) field per field.

A field is the most basic information: a number, a string of characters,
a flag (yes/no), etc. Only supported formats can be opened, it's not a magic
tool.

It can be used to extract some informations (eg. metadata), edit some fields
of a file without original program, or convert a file from a format to another.

%package -n python2-%{module_name}
Summary:	Python library to edit binary file and metadata

%description -n python2-%{module_name}
Hachoir is a library written in Python which allows to see and edit a binary
file (or any binary stream) field per field.

A field is the most basic information: a number, a string of characters,
a flag (yes/no), etc. Only supported formats can be opened, it's not a magic
tool.

It can be used to extract some informations (eg. metadata), edit some fields
of a file without original program, or convert a file from a format to another.

%files -n python2-%{module_name}
%doc AUTHORS COPYING README
%doc doc/*
%{py2_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module_name}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot} --record=INSTALLED_FILES

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7097 |21cr|python-hachoir-metadata-1.3.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name hachoir-metadata

Summary:	Python library to read metadata file format for the hachoir framework

Name: 		python-%{module_name}
Version: 	1.3.3
Release: 	6
Source0: 	http://cheeseshop.python.org/packages/source/h/%{module_name}/%{module_name}-%{version}.tar.gz
License:	GPLv2
Group: 		Development/Python
URL: 		http://bitbucket.org/haypo/hachoir/wiki/Home
BuildArch:	noarch
Requires:	python2-hachoir-core
Requires:	python2-hachoir-parser
BuildRequires:  python2-devel
BuildRequires:	python2-setuptools

%description
hachoir-metadata is tool to extract metadata from multimedia files 
(sound, video, archives, etc).

%package -n python2-%{module_name}
Summary:	Python library to read metadata file format for the hachoir framework

%description -n python2-%{module_name}
hachoir-metadata is tool to extract metadata from multimedia files 
(sound, video, archives, etc).


%prep
%setup -q -n %{module_name}-%{version}

%build
python2 setup.py build 

%install
python2 setup.py install --root=%{buildroot} --disable-qt

%files -n python2-%{module_name}
%doc AUTHORS COPYING README 
%{py2_puresitedir}/hachoir_metadata
%{py2_puresitedir}/hachoir_metadata-%{version}-py%{py2_ver}.egg-info
%{_bindir}/hachoir-metadata
%{_bindir}/hachoir-metadata-qt
%{_bindir}/hachoir-metadata-gtk

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7098 |21cr|python-hachoir-parser-1.3.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name hachoir-parser

Summary:	Python library to parse file format for the hachoir framework

Name: 		python-%{module_name}
Version: 	1.3.4
Release: 	5
Source0: 	http://cheeseshop.python.org/packages/source/h/%{module_name}/%{module_name}-%{version}.tar.gz
License:	GPLv2
Group: 		Development/Python
URL: 		http://hachoir.org/wiki/hachoir-parser
BuildArch:	noarch
Requires:	python2-hachoir-core
BuildRequires:  python2-devel
BuildRequires:	python2-setuptools python-hachoir-core

%description
hachoir-parser is a package of most common file format parsers written 
using hachoir-core. Not all parsers are complete, some are very good and 
other are poor: only parse first level of the tree for example.

A perfect parser have no "raw" field: with a perfect parser you are able 
to know *each* bit meaning. Some good (but not perfect ;-)) parsers:

    * Matroska video
    * Microsoft RIFF (AVI video, WAV audio, CDA file)
    * PNG picture
    * TAR and ZIP archive 

%package -n python2-%{module_name}
Summary:	Python library to parse file format for the hachoir framework

%description -n python2-%{module_name}
hachoir-parser is a package of most common file format parsers written 
using hachoir-core. Not all parsers are complete, some are very good and 
other are poor: only parse first level of the tree for example.

A perfect parser have no "raw" field: with a perfect parser you are able 
to know *each* bit meaning. Some good (but not perfect ;-)) parsers:

    * Matroska video
    * Microsoft RIFF (AVI video, WAV audio, CDA file)
    * PNG picture
    * TAR and ZIP archive 


%prep
%setup -q -n %{module_name}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot} 

%clean

%files -n python2-%{module_name}
%doc AUTHORS COPYING 
%{py2_puresitedir}/hachoir_parser
%{py2_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7099 |21cr|python-hacking-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	hacking

Name:		python-%{oname}
Version:	3.2.0
Release:	1
Summary:	OpenStack Hacking Guideline Enforcement
Source0:	https://pypi.python.org/packages/source/h/%{oname}/%{oname}-%{version}.tar.gz
License:	Apache Software License
Group:		Development/Python
Url:		https://docs.openstack.org/hacking/latest/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pbr)

%description
hacking is a set of flake8 plugins that test and enforce the
:ref:StyleGuide.Hacking pins its dependencies, as a new release of some
dependency can break hacking based gating jobs. This is because new versions of
dependencies can introduce new rules, or make existing rules
stricter.

%package -n python3-%{oname}
Summary:	OpenStack Hacking Guideline Enforcement

%description -n python3-%{oname}
hacking is a set of flake8 plugins that test and enforce the
:ref:StyleGuide.Hacking pins its dependencies, as a new release of some
dependency can break hacking based gating jobs. This is because new versions of
dependencies can introduce new rules, or make existing rules
stricter.


%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{oname}
%doc AUTHORS
%doc ChangeLog
%doc README.rst
%doc requirements.txt
%doc test-requirements.txt
%doc hacking/__init__.py
%doc hacking/config.py
%doc hacking/core.py
%doc hacking/checks/__init__.py
%doc hacking/checks/comments.py
%doc hacking/checks/dictlist.py
%doc hacking/checks/docstrings.py
%doc hacking/checks/except_checks.py
%doc hacking/checks/imports.py
%doc hacking/checks/localization.py
%doc hacking/checks/mock_checks.py
%doc hacking/checks/other.py
%doc hacking/checks/python23.py
%doc hacking/checks/vim_check.py
%doc hacking/tests/__init__.py
%doc hacking/tests/test_config.py
%doc hacking/tests/test_doctest.py
%doc hacking/tests/test_import_exceptions.py
%doc hacking/tests/checks/__init__.py
%doc hacking/tests/checks/test_comments.py
%{py3_puresitedir}/hacking
%{py3_puresitedir}/hacking*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7100 |21cr|python-helpdev-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name helpdev

Name:           python-%{pypi_name}
Version:        0.7.1
Release:        1
Summary:        Extracts information about the Python environment easily
Group:          Development/Python
License:        MIT
URL:            https://gitlab.com/dpizetta/helpdev
Source0:        https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
Helping users and developers to get information about the environment to report
bugs or even test your system without spending a day on it. It can get
information about hardware, OS, paths, Python distribution and packages,
including Qt-things.

#------------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Extracts information about the Python environment easily
Group:          Development/Python

Requires:       python3dist(psutil) >= 5.6
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
Helping users and developers to get information about the environment to report
bugs or even test your system without spending a day on it. It can get
information about hardware, OS, paths, Python distribution and packages,
including Qt-things.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE.rst
%{_bindir}/helpdev
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7101 |21cr|python-hidapi-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	hidapi
%define postver	post3

Summary:	A Cython interface to the hidapi
Name:		python-%{module}
Version:	0.11.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/trezor/cython-hidapi
# git clone https://github.com/trezor/cython-hidapi.git
# cd cython-hidapi
# git submodule update --init
# git checkout %%{version}.%%{postver}
# tar -czvf ../cython-%%{module}-%%{version}.%%{postver}.tar.gz *
Source0:	cython-%{module}-%{version}.%{postver}.tar.gz
BuildRequires:	python3dist(cython)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(hidapi-libusb)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(python3)

%description
A Cython interface to the hidapi from https://github.com/signal11/hidapi

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A Cython interface to the hidapi
Group:		Development/Python

%description -n python3-%{module}
A Cython interface to the hidapi from https://github.com/signal11/hidapi

%files -n python3-%{module}
%doc README.rst
%license LICENSE.txt LICENSE-bsd.txt LICENSE-gpl3.txt LICENSE-orig.txt
%{py3_platsitedir}/hid*.so
%{py3_platsitedir}/%{module}-%{version}.%{postver}-*.egg-info

#------------------------------------------------------------------

%prep
%setup -qc

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7102 |21cr|python-hpack-3.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	hpack

Name:		python-%{module}
Version:	3.0.0
Release:	3
Summary:	Pure-Python HPACK header compression
Group:		Development/Python
License:	MIT
URL:		http://hyper.rtfd.org/
Source0:	https://pypi.io/packages/source/h/hpack/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
for use in Python programs that implement HTTP/2. It also contains a
compatibility layer that automatically enables the use of nghttp2 if
it’s available.

%package -n	python3-%{module}
Summary:	Pure-Python HPACK header compression
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)

%description -n	python3-%{module}
This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
for use in Python programs that implement HTTP/2. It also contains a
compatibility layer that automatically enables the use of nghttp2 if
it’s available.

This is the Python 3 version of the package.

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc CONTRIBUTORS.rst HISTORY.rst LICENSE README.rst
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7103 |21cr|python-hpilo-4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module hpilo

Name:           python-%module
Version:        4.3
Release:        2
License:        GPLv3+
Summary:        Python tools to configure HP ProLiant servers through the iLO HP RESTful API
Group:          Development/Python
Url:            https://pypi.org/project/python-hpilo/
Source:         https://pypi.io/packages/source/p/python-%{module}/python-%{module}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-cloud_sptheme

# docs
BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme

%description
Python cli and API to control the configuration of HP ProLiant servers
through the HP RESTful API provide by the HP iLO.

%package -n python3-%{module}
Summary:        Python3 tools to configure HP ProLiant servers through the iLO HP RESTful API
Group:          Development/Python
Obsoletes:	python-%{module} < 4.3

%description -n python3-%{module}
Python3 cli and API to control the configuration of HP ProLiant servers
through the HP RESTful API provide by the HP iLO.

%prep
%setup -q -n python-%{module}-%{version}

%build
%py3_build

export PYTHONPATH=$(pwd)
sphinx-build -b html docs html
sphinx-build -b man docs man

%install
%py3_install

install -p -D -m 644 man/python-%{module}.1 %{buildroot}%{_mandir}/man1/python-%{module}.1

%files -n python3-%{module}
%doc COPYING
%doc CHANGES README.md
%doc html
%{_bindir}/%{module}*
%{py3_puresitedir}/*
%{_mandir}/man1/*.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7104 |21cr|python-html2text-2020.1.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name  html2text

Name:           python-%{pypi_name}
Version:        2020.1.16
Release:        1
Summary:        Converts a page of HTML into clean, easy-to-read plain ASCII text
Group:          Development/Python
License:        GPLv3
URL:            http://alir3z4.github.io/html2text/
Source0:        https://pypi.io/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
html2text is a Python script that convers a page of HTML into clean,
easy-to-read plain ASCII text. Better yet, that ASCII also happens to
be valid Markdown (a text-to-HTML format).

Also known as: THE ASCIINATOR, html to text, htm to txt, htm2txt, ...

#------------------------------------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        Converts a page of HTML into clean, easy-to-read plain ASCII text
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{pypi_name}
html2text is a Python script that convers a page of HTML into clean,
easy-to-read plain ASCII text. Better yet, that ASCII also happens to
be valid Markdown (a text-to-HTML format).

Also known as: THE ASCIINATOR, html to text, htm to txt, htm2txt, ...

This package contains python3 version of the package.

%files -n python3-%{pypi_name}
%{_bindir}/%{pypi_name}
%{py3_puresitedir}/*

#------------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install
#mv %{buildroot}%{_bindir}/html2text %{buildroot}%{_bindir}/python3-%{pypi_name}


%check
python3 setup.py test || /bin/true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7105 |21cr|python-html5-parser-0.4.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   html5-parser

Summary:	Fast C based HTML 5 parsing for python
Name:		python-%{oname}
Version:	0.4.10
Release:	1
License:	Apache 2.0
Group:		Development/Python
Url:		https://pypi.python.org/pypi/html5-parser
Source0:	https://files.pythonhosted.org/packages/e0/a1/f4e5d60919e8d1aeffc4aae4b41041b986081691a44798b4c77bf2585bf6/html5-parser-0.4.10.tar.gz
BuildRequires:  python2-devel
BuildRequires:  python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python2-setuptools
BuildRequires:	pkgconfig(libxml-2.0)

%description
Fast C based HTML 5 parsing for python

%package -n python3-%{oname}
Summary:	Fast C based HTML 5 parsing for python

%description -n python3-%{oname}
Fast C based HTML 5 parsing for python

%files -n python3-%{oname}
%doc python3/LICENSE python3/README.rst
%{py3_platsitedir}/html5_parser-%{version}-*.egg-info
%{py3_platsitedir}/html5_parser


%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Fast C based HTML 5 parsing for python

%description -n python2-%{oname}
Fast C based HTML 5 parsing for python

%files -n python2-%{oname}
%doc python2/LICENSE python2/README.rst
%{py2_platsitedir}/html5_parser-%{version}-*.egg-info
%{py2_platsitedir}/html5_parser


###############################################################################

%prep
%setup -qc

mv %{oname}-%{version} python2
cp -a python2 python3

%build
pushd python2
%{__python2} setup.py build
popd

pushd python3
python3 setup.py build
popd

%install
pushd python2
%{__python2} setup.py install --root=%{buildroot}
popd

pushd python3
%{__python3} setup.py install --root=%{buildroot}
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7106 |21cr|python-httpagentparser-1.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name httpagentparser

Name:           python-%{pypi_name}
Version:        1.9.3
Release:        1
Summary:        Extracts OS Browser etc information from http user agent string
Group:          Development/Python
License:        MIT
URL:            https://github.com/shon/httpagentparser
Source0:        %{pypi_source httpagentparser}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%description
Extracts OS Browser etc information from http user agent string.

#--------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        Extracts OS Browser etc information from http user agent string
Group:          Development/Python


%description -n python3-%{pypi_name}
Extracts OS Browser etc information from http user agent string.


%files -n python3-%{pypi_name}  -f %{pyproject_files}
%license LICENSE.txt
%doc README.rst
#--------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files httpagentparser





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7107 |21cr|python-http-parser-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude .so
%define module http-parser

Name:           python-%{module}
Version:        0.9.0
Release:        1
Summary:        HTTP request/response parser for Python
Group:		    Development/Python
License:        MIT
Url:            https://github.com/benoitc/http-parser/
Source0:        http://pypi.python.org/packages/source/h/%{module}/%{module}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(cython)


%description
HTTP request/response parser for Python compatible with Python 2.x
(>=2.5.4), Python 3 and Pypy. If possible a C parser based on
http-parser_ from Ryan Dahl will be used.
#-------------------------------------------------------

%package -n python3-%{module}
Summary:        HTTP request/response parser for Python

%description -n python3-%{module}
HTTP request/response parser for Python compatible with Python 2.x
(>=2.5.4), Python 3 and Pypy. If possible a C parser based on
http-parser_ from Ryan Dahl will be used.

%files -n python3-%{module}
%doc LICENSE README.rst examples
%{py3_platsitedir}/http_parser*
#-------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
chmod a-x examples/*
rm -fr http_parser.egg-info

%build
# cythonize badly generated cyx
find . -name '*.pyx' -exec cython {} \;
export CFLAGS="%{optflags} -fno-strict-aliasing"
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7108 |21cr|python-humanize-4.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name humanize

Name:           python-%{pypi_name}
Version:	4.4.0
Release:	1
Summary:        Turns dates in to human readable format, e.g '3 minutes ago'
Group:          Development/Python
License:        MIT
URL:            https://github.com/jmoiron/humanize
Source0:	https://files.pythonhosted.org/packages/51/19/3e1adf0e7a8c8361496b085edcab2ddcd85410735a2b6fdd044247fc5b75/humanize-4.4.0.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)

%global _description\
This modest package contains various common humanization utilities,\
like turning a number into a fuzzy human readable duration ('3 minutes ago')\
or into a human readable size or throughput.


%description %_description

#----------------------------------------------------------------
%package -n python3-humanize
Summary:        Turns dates in to human readable format, e.g '3 minutes ago'
Group:          Development/Python

%description -n python3-humanize
%_description

%files -n python3-humanize
%doc README* LICENCE
%{py3_puresitedir}/humanize
%{py3_puresitedir}/humanize-%{version}-py*.egg-info

#----------------------------------------------------------------

%prep
%setup -q -n humanize-%{version}

rm -r src/*.egg-info

%build
%py3_build

%install
%py3_install

%find_lang humanize


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7109 |21cr|python-hupper-1.10.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name hupper
%global sum Integrated process monitor for developing servers

Name:           python-%{pypi_name}
Version:        1.10.3
Release:        1
Summary:        %{sum}
Group:          Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:        https://files.pythonhosted.org/packages/source/h/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

# python3 test buildrequires
BuildRequires: python3-pytest
BuildRequires: python3-pytest-cov
BuildRequires: python3-mock
BuildArch:      noarch

%description
hupper is an integrated process monitor that will track changes
to any imported Python files in sys.modules as well as custom paths.
When files are changed the process is restarted.

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{sum}
Group:          Development/Python

%description -n python3-%{pypi_name}
hupper is an integrated process monitor that will track changes
to any imported Python files in sys.modules as well as custom paths.
When files are changed the process is restarted.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc CHANGES.rst CONTRIBUTING.rst docs/ LICENSE.txt PKG-INFO README.rst rtd.txt
%{python3_sitelib}/*
%{_bindir}/hupper

#--------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7110 |21cr|python-hwdata-2.3.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-hwdata
Version:	2.3.7
Release:	2
Summary:	Python bindings to hwdata package
Group:		Development/Python
License:	GPLv2
URL:		https://github.com/xsuchy/python-hwdata
# git clone https://github.com/xsuchy/python-hwdata.git
# cd python-hwdata
# tito build --tgz
Source0:	%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
Provide python interface to database stored in hwdata package.
It allows you to get human readable description of USB and PCI devices.

%package -n python2-hwdata
%py2_migration_meta python2-hwdata
Summary:	Python 2 bindings to hwdata package
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python2)
Requires:	hwdata

Obsoletes:	python-hwdata < 2.3.4-6
Provides:	python-hwdata = %{version}-%{release}

%description -n python2-hwdata
Provide python interface to database stored in hwdata package.
It allows you to get human readable description of USB and PCI devices.

This is the Python 2 build of the module.

%package -n python3-hwdata
Summary:	Python 3 bindings to hwdata package
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
Requires:	hwdata

%description -n python3-hwdata
Provide python interface to database stored in hwdata package.
It allows you to get human readable description of USB and PCI devices.

This is the Python 3 build of the module.

%prep
%setup -q

cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

pushd %{py3dir}
%py3_install
popd

%check
python3-pylint hwdata.py example.py || :

%files -n python2-hwdata
%doc README.md example.py LICENSE
%doc html
%{py2_puresitedir}/*

%files -n python3-hwdata
%doc README.md example.py LICENSE
%doc html
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7111 |21cr|python-hyperframe-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	hyperframe

Name:		python-%{module}
Version:	5.2.0
Release:	1
Summary:	HTTP/2 framing layer for Python
Group:		Development/Python
License:	MIT
URL:		http://hyper.rtfd.org/
Source0:	https://pypi.io/packages/source/h/hyperframe/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
This library contains the HTTP/2 framing code used in the hyper project.
It provides a pure-Python codebase that is capable of decoding a binary
stream into HTTP/2 frames.

This library is used directly by hyper and a number of other projects
to provide HTTP/2 frame decoding logic.

%package -n	python3-%{module}
Summary:	HTTP/2 framing layer for Python 3
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)

%description -n	python3-%{module}
This library contains the HTTP/2 framing code used in the hyper project.
It provides a pure-Python codebase that is capable of decoding a binary
stream into HTTP/2 frames.

This library is used directly by hyper and a number of other projects
to provide HTTP/2 frame decoding logic.

This is the Python 3 version of the package.

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc CONTRIBUTORS.rst HISTORY.rst LICENSE README.rst
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7112 |21cr|python-icalendar-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  icalendar

Name:           python-%{module}
Version:	4.1.0
Release:	1
Summary:        Parser/generator of iCalendar files following the RFC 2445
Group:          Development/Python
License:        BSD
URL:            https://github.com/collective/icalendar
Source0:	https://files.pythonhosted.org/packages/32/26/f6d896b78f21a6eb640dac940abb7617f5a910fd7c9b4c213d7b4261f253/icalendar-4.1.0.tar.gz
BuildArch:      noarch

%description
iCalendar specification (RFC 2445) defines calendaring format used
by many applications (Zimbra, Thunderbird and others). This
module is a parser/generator of iCalendar files for use with
Python. It follows the RFC 2445 (iCalendar) specification.
The aim is to make a package that is fully compliant with RFC 2445,
well designed, simple to use and well documented.

#------------------------------------------------------------------

%package -n     python3-%{module}
Summary:        Parser/generator of iCalendar files following the RFC 2445 for Python 3
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytz)
BuildRequires:  python3egg(python-dateutil)

%description -n python3-%{module}
iCalendar specification (RFC 2445) defines calendaring format used
by many applications (Zimbra, Thunderbird and others). This
module is a parser/generator of iCalendar files for use with
Python 3. It follows the RFC 2445 (iCalendar) specification.
The aim is to make a package that is fully compliant with RFC 2445,
well designed, simple to use and well documented.

#------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 %py2_setup test || :

%files -n python3-%{module}
%doc README.rst CHANGES.rst docs LICENSE.rst
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info
%{_bindir}/icalendar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7113 |21cr|python-icu-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		realname PyICU
%define		module icu
%define debug_package %{nil}

Name:		python-%{module}
Version:	2.3.1
Release:	1
Summary:	Python extension wrapping IBM's ICU C++ libraries
Group:		Development/Python
License:	MIT
URL:		http://pyicu.osafoundation.org/
Source0:	http://pypi.python.org/packages/source/P/%{realname}/%{realname}-%{version}.tar.gz
Patch0:		python3.8.patch
BuildRequires:	pkgconfig(icu-i18n)

%description
PyICU is Python extension wrapping IBM's International Components
for Unicode C++ library (ICU). ICU is a mature, widely used set of
C/C++ and Java libraries providing Unicode and Globalization support
for software applications. ICU is widely portable and gives applications
the same results on all platforms and between C/C++ and Javasoftware.

#---------------------------------------------------------------
%package -n python3-%{module}

Summary:	Python extension wrapping IBM's ICU C++ libraries
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pytest)

%description -n python3-%{module}
PyICU is Python extension wrapping IBM's International Components
for Unicode C++ library (ICU). ICU is a mature, widely used set of
C/C++ and Java libraries providing Unicode and Globalization support
for software applications. ICU is widely portable and gives applications
the same results on all platforms and between C/C++ and Javasoftware.

%files -n python3-%{module}
%doc LICENSE CHANGES CREDITS
%{py3_platsitedir}/*
#-------------------------------------------------------------------------------
%prep
%setup -qn %{realname}-%{version}
%patch0 -p1

%build
%py3_build

%check
python3 setup.py test

%install
%py3_install
# Remove tests
rm -rf %{buildroot}%{py3_platsitedir}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7114 |21cr|python-id3-1.2-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname id3-py
%define oname id3

Name:      python-%{oname}
Version:   1.2
Release:   21
Source0:   http://id3-py.sourceforge.net/%{fname}_%{version}.tar.bz2
Summary:   Python module for manipulating ID3 information tags on MP3 audio files
License:   GPLv2+
Group:     Development/Python
Url:       http://id3-py.sourceforge.net
Requires:  python
BuildArch: noarch
BuildRequires: python2-devel

%description
This is a simple Python module for retrieving and setting so-called ID3
tags on MP3 compressed audio files through an object-oriented interface.
MP3 players generally use this simple information for display track title,
artist name, and album title while playing the sound file.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:   Python module for manipulating ID3 information tags on MP3 audio files

%description -n python2-%{oname}
This is a simple Python module for retrieving and setting so-called ID3
tags on MP3 compressed audio files through an object-oriented interface.
MP3 players generally use this simple information for display track title,
artist name, and album title while playing the sound file.


%prep
%setup -qn %{fname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root %{buildroot}

%files -n python2-%{oname}
%doc CHANGES COPYING README id3-tagger.py
%{py2_puresitedir}/ID3.py*
%{py2_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7115 |21cr|python-ifaddr-0.1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ifaddr
%global _description \
ifaddr is a small Python library that allows you to find all the IP addresses\
of the computer.

Name:		python-%{pypi_name}
Version:	0.1.7
Release:	1
Summary:	Python library that allows you to find all the IP addresses of the computer
Group:		Development/Python
License:	MIT
URL:		https://pypi.org/project/ifaddr/
Source:		%{pypi_source}
BuildArch:      noarch

%description %{_description}

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description -n python3-%{pypi_name} %{_description}

Python 3 version.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/

#------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7116 |21cr|python-imageio-2.22.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module imageio

Name:           python-%{module}
Version:	2.22.1
Release:	1
Group:          Development/Python
Summary:        Python library for reading and writing image data
License:        BSD
URL:            https://imageio.github.io/
Source0:	https://files.pythonhosted.org/packages/61/cb/518080f98b4d3c00b84b0b6521ee924b0cd619fc88cff2da619c6a832d7f/imageio-2.22.1.tar.gz
BuildArch:      noarch

%description
Imageio is a Python library that provides an easy interface to read
and write a wide range of image data, including animated images,
volumetric data, and scientific formats.
#------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Python 3 library for reading and writing image data
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
Imageio is a Python 3 library that provides an easy interface to read
and write a wide range of image data, including animated images,
volumetric data, and scientific formats.

%files -n python3-%{module}
%doc README.md docs LICENSE
%{_bindir}/%{module}_download_bin
%{_bindir}/%{module}_remove_bin
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# use our pillow
perl -pi -e "s|pillow >= 8.3.2|pillow >= 8.3.1|" setup.py

%build
%py3_build

%install
%py3_install

chmod +x %{buildroot}%{py3_puresitedir}/%{module}/plugins/{_bsdf,_tifffile}.py
find %{buildroot} -type f -empty -delete



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7117 |21cr|python-imdb-2022.02.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	imdb
%define oname	IMDbPY

%define oversion 2021.4.18

Summary:	Python module for the IMDb movie database
Name:		python-%{module}
Version:	2022.02.11
Release:	1
License:	GPLv2+
Group:		Development/Python
Source:		https://github.com/alberanid/imdbpy/releases/download/%{version}/IMDbPY-%{oversion}.tar.gz
URL:		http://imdbpy.sourceforge.net/
Provides:	python3-imdbpy
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
IMDbPY is a Python package useful to retrieve and manage the data of
the IMDb movie database.

IMDbPY is mainly a tool intended for programmers and developers, but
some example scripts are included.

#------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Python module for the IMDb movie database
Group:		Development/Python

%description -n python3-%{module}
IMDbPY is a Python package useful to retrieve and manage the data of
the IMDb movie database.

IMDbPY is mainly a tool intended for programmers and developers, but
some example scripts are included.

%files -n python3-%{module}
%{_bindir}/*
%{py3_puresitedir}/*

#------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{oversion}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7118 |21cr|python-img2pdf-0.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	img2pdf

Summary:	Convert images to PDF via direct JPEG inclusion
Name:		python-img2pdf
Version:	0.3.2
Release:	1
Source0:	http://pybrary.net/%{module}/%{module}-%{version}.tar.gz
Patch0:         pdf-cmp.diff
License:	BSD
Group:		Development/Python
Url:		http://pybrary.net/img2pdf/
Provides:	%{module}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
Losslessly convert raster images to PDF. The file size will not 
unnecessarily increase. One major application would be a number of scans
made in JPEG format which should now become part of a single PDF
document. Existing solutions would either re-encode the input JPEG files
(leading to quality loss) or store them in the zip/flate format which
results into the PDF becoming unnecessarily large in terms of its file
size.


%package -n python3-img2pdf
Summary:	Convert images to PDF via direct JPEG inclusion

%description -n python3-img2pdf
Losslessly convert raster images to PDF. The file size will not 
unnecessarily increase. One major application would be a number of scans
made in JPEG format which should now become part of a single PDF
document. Existing solutions would either re-encode the input JPEG files
(leading to quality loss) or store them in the zip/flate format which
results into the PDF becoming unnecessarily large in terms of its file
size.

%files -n python3-img2pdf
%doc README.md
%{_bindir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py%{py3_ver}.egg-info
%{py3_puresitedir}/*.py*
%{py3_puresitedir}/__pycache__/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build

%install
%__python3 setup.py install --root=%{buildroot} --no-compile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7119 |21cr|python-importlib-resources-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define module importlib-resources

Name:           python-%{module}
Version:	5.4.0
Release:	1
Summary:        Read resources from Python packages
Group:          Development/Python
License:        ASL 2.0
Url:            http://importlib-resources.readthedocs.io/
Source0:	https://files.pythonhosted.org/packages/b5/d8/51ace1c1ea6609c01c7f46ca2978e11821aa0efaaa7516002ef6df000731/importlib_resources-5.4.0.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)

BuildArch:      noarch

%description
importlib_resources is a backport of Python standard library
importlib.resources module for Python 2.7, and 3.4 through 3.8.
#-------------------------------------------------------------

%package -n     python3-%{module}
Summary:        %{summary}

%description -n python3-%{module}
importlib_resources is a backport of Python standard library
importlib.resources module for Python 2.7, and 3.4 through 3.8.


%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir }/importlib_resources/
%{py3_puresitedir }/importlib_resources-%{version}-py%{python3_version}.egg-info
#-------------------------------------------------------------

%prep
%setup -qn importlib_resources-%{version}

# Remove bundled egg-info
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7120 |21cr|python-inflect-5.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	inflect

Name:		python-%{module}
Version:	5.3.0
Release:	1
Summary:	Does lots of grammar things
Source0:	http://pypi.python.org/packages/source/i/%{module}/%{module}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://pypi.python.org/pypi/inflect
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(wheel)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(toml)
Requires:       python3egg(toml)

BuildArch:	noarch

%description
The methods of the class ``engine`` in module ``inflect.py`` provide plural
inflections, singular noun inflections, "a"/"an" selection for English words,
and manipulation of numbers as words.

Plural forms of all nouns, most verbs, and some adjectives are
provided. Where appropriate, "classical" variants (for example: "brother" ->
"brethren", "dogma" -> "dogmata", etc.) are also provided.

Single forms of nouns are also provided. The gender of singular pronouns
can be chosen (for example "they" -> "it" or "she" or "he" or "they"). 

Pronunciation-based "a"/"an" selection is provided for all English
words, and most initialisms.

It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd)
and to english words ("one", "two", "three").

In generating these inflections, ``inflect.py`` follows the Oxford
English Dictionary and the guidelines in Fowler's Modern English
Usage, preferring the former where the two disagree.

The module is built around standard British spelling, but is designed
to cope with common American variants as well. Slang, jargon, and
other English dialects are *not* explicitly catered for.

Where two or more inflected forms exist for a single word (typically a
"classical" form and a "modern" form), ``inflect.py`` prefers the
more common form (typically the "modern" one), unless "classical"
processing has been specified

%files
%doc *.rst tests/words.txt LICENSE
%{py3_puresitedir}/inflect.py*
%{py3_puresitedir}/inflect*.egg-info
%{py3_puresitedir}/__pycache__
#------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf inflect.egg-info
sed -i 's/addopts=--doctest-modules --flake8 --black --cov/addopts=--doctest-modules/g' pytest.ini

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3 tests/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7121 |21cr|python-inflection-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name inflection

Name:           python-%{pypi_name}
Version:        0.5.1
Release:        1
Summary:        Port of Ruby on Rails inflector to Python
Group:          Development/Python
License:        MIT
URL:            https://github.com/jpvanhal/inflection
Source:         %{pypi_source}

BuildArch:      noarch

%global _description %{expand:
Inflection is a string transformation library. It singularizes and pluralizes
English words, and transforms strings from CamelCase to underscored string.
Inflection is a port of Ruby on Rails’ inflector to Python.}

%description %{_description}

#---------------------------------------------------
%package     -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description -n python3-%{pypi_name} %{_description}

Python 3 version.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/inflection-*.egg-info/
%{python3_sitelib}/inflection/

#---------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1
rm -vr *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7122 |21cr|python-injector-0.20.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define pypi_name injector

Summary:	Python dependency injection framework inspired by Guice
Name:		python-%{pypi_name}
Version:	0.20.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://mypage.org/mymodule
Source0:	%pypi_source
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3dist(typing-extensions)

%global _description %{expand:
Dependency injection as a formal pattern is less useful in Python than in other
languages, primarily due to its support for keyword arguments, the ease with
which objects can be mocked, and its dynamic nature.

That said, a framework for assisting in this process can remove a lot of
boiler-plate from larger applications. That's where Injector can help. It
automatically and transitively provides keyword arguments with their values. As
an added benefit, Injector encourages nicely compartmentalised code through the
use of `Module` s.

While being inspired by Guice, it does not slavishly replicate its API.
Providing a Pythonic API trumps faithfulness.}

%description %{_description}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name}
%doc README.md
%license COPYING
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
rm -rf %{pypi_name}/py.typed

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7123 |21cr|python-intervaltree-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name intervaltree

Name:           python-%{pypi_name}
Version:        3.1.0
Release:        1
Summary:        A mutable, self-balancing interval tree for Python
Group:          Development/Python
License:        ASL 2.0
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:        https://files.pythonhosted.org/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
A mutable, self-balancing interval tree for Python. Queries may
be by point, by range overlap, or by range envelopment.

#----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3-sortedcontainers

%description -n python3-%{pypi_name}
A mutable, self-balancing interval tree for Python. Queries may
be by point, by range overlap, or by range envelopment.

%files -n python3-%{pypi_name}
%{python3_sitelib}/*
%license LICENSE.txt
%doc README.md CHANGELOG.md

#----------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7124 |21cr|python-ipaddr-2.1.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ipaddr

Summary:	A library for working with IP addresses
Name:		python-%{oname}
Version:	2.1.11
Release:	3
License:	Apache License
Group:		Development/Python
Url:		http://code.google.com/p/ipaddr-py/
Source0:	https://pypi.python.org/packages/source/i/ipaddr/ipaddr-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python)

%description
ipaddr is a library for working with IP addresses, both IPv4 and IPv6.
It was developed by Google for internal use, and is now open source.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	A library for working with IP addresses

%description -n python2-%{oname}
ipaddr is a library for working with IP addresses, both IPv4 and IPv6.
It was developed by Google for internal use, and is now open source.


%prep
%setup -qn %{oname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --skip-build --root=%{buildroot}

%files -n python2-%{oname}
%doc COPYING README RELEASENOTES
%{py2_puresitedir}/%{oname}.py*
%{py2_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7125 |21cr|python-ipdb-0.13.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	ipdb

Summary:	IPython-enabled pdb
Name:		python-%{module}
Version:	0.13.9
Release:	1
Source0:	https://files.pythonhosted.org/packages/fc/56/9f67dcd4a4b9960373173a31be1b8c47fe351a1c9385677a7bdd82810e57/ipdb-0.13.9.tar.gz
License:	GPL
Group:		Development/Python
Url:		https://github.com/gotcha/ipdb
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:  python3egg(ipython)
Requires:       python3egg(ipython)
Provides:	python3-%{module} = %{EVRD}

%description
ipdb provides functions for accessing the IPython debugger's enhanced features
from within a Python program.

%prep
%setup -q -n %{module}-%{version}

# remove bundled egg-info
rm -rf ipdb.egg-info/

%build
%py3_build

%install
%py3_install

%files
%doc COPYING.txt README.rst HISTORY.txt
%{python3_sitelib}/ipdb/
%{python3_sitelib}/ipdb-%{version}*.egg-info/
%{_bindir}/ipdb3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7126 |21cr|python-ipdns-0.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ipdns

Name:		python-%{oname}
Version:	0.1.4
Release:	2
Summary:	Stateless dns server serving ip addresses based on parsing the domain
Source0:	https://pypi.python.org/packages/source/i/%{oname}/%{oname}-%{version}.zip
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/0-complexity/ipdns
BuildArch:	noarch
BuildRequires:	python3-devel

%description
## description
ipdns takes the domain and calculates an IPAddress out of it.

The domain names should be formatted as follows:
```
mylittleserver-2130706433.mydomain.ext
```
ipdns will serve **127.0.0.1** as a result, because ipdns parsed the number
**2130706433**, which represents the ip, in the domain from its decimal
representation in the more familiar IPv4 string format.

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%{py3_puresitedir}/ipdns*
%{py3_puresitedir}/twisted/plugins/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7127 |21cr|python-iptables-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	python-iptables
%define	module	iptables

Name:		python-%{module}
Version:	0.12.0
Release:	1
Summary:	Python bindings for iptables
Source0:	https://pypi.python.org/packages/c9/e6/069a72d0d86d19a7f54c8960c6dd0b65ad0db7e3f5733b715e59e566b39c/%{oname}-%{version}.tar.gz
License:	Apache License, Version 2.0
Group:		Development/Python
Url:		https://github.com/ldx/python-iptables
BuildRequires:	python-devel
BuildRequires:	python-setuptools

%description
Python bindings for iptables
Iptables is the tool that is used to manage netfilter,
the standard packet filtering and manipulation framework under Linux.

%prep
%setup -q -n %{oname}-%{version}

%build
%py_build

%install
%py_install

%files
%{py_platsitedir}/iptc/*.py*
%{py_platsitedir}/python_iptables*.egg-info
%{py_platsitedir}/libxtwrapper*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7128 |21cr|python-ipwhois-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Wrong names, use manual requires instead
%global __requires_exclude python3egg.*

%define module ipwhois

Summary:	Retrieve and parse whois data for IPv4 and IPv6 addresses
Name:		python-%{module}
Version:	1.2.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/secynic/ipwhois
Source0:	https://pypi.python.org/packages/source/i/%{module}/%{module}-%{version}.tar.gz
Patch0:		ipwhois-dnspython.patch
BuildArch:	noarch

%description
Python module that allows you to retrieve and parse whois data for IPv4
and IPv6 addresses.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Retrieve and parse whois data for IPv4 and IPv6 addresses
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
Python module that allows you to retrieve and parse whois data for IPv4
and IPv6 addresses.

%files -n python3-%{module}
%{_bindir}/ipwhois_cli.py
%{_bindir}/ipwhois_utils_cli.py
%dir %{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}/*
%{py3_puresitedir}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7129 |21cr|python-ipykernel-6.19.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname ipykernel

# When we bootstrap new Python, we don't yet have all the documentation packages
%bcond_with intersphinx

Name:           python-%{srcname}
Version:        6.19.4
Release:        1
Summary:        IPython Kernel for Jupyter
Group:          Development/Python
License:        BSD
URL:            https://github.com/ipython/%{srcname}
Source0:        https://github.com/ipython/%{srcname}/releases/download/v%{version}/%{srcname}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  make
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-myst-parser

%global _description \
This package provides the IPython kernel for Jupyter.

%description %{_description}

#----------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python
Requires:       python-jupyter-filesystem

Recommends:     python3-matplotlib
Recommends:     python3-numpy
Recommends:     python3-pandas
Recommends:     python3-scipy
Recommends:     python3-pillow

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname} -f %{pyproject_files}
%license COPYING.md
%doc CONTRIBUTING.md README.md
%{_datadir}/jupyter/kernels/python3

#----------------------------------------------------------
%prep
%autosetup -p1 -n %{srcname}-%{version}

# Remove the dependency on debugpy.
# See https://github.com/ipython/ipykernel/pull/767
sed -i '/"debugpy/d' pyproject.toml

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{srcname} %{srcname}_launcher

# Install the kernel so it can be found
# See https://bugzilla.redhat.com/show_bug.cgi?id=1327979#c19
%__python3 -m ipykernel install --prefix %{buildroot}%{_prefix}
ls %{buildroot}%{_datadir}/jupyter/kernels/python3/
cat %{buildroot}%{_datadir}/jupyter/kernels/python3/kernel.json

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7130 |21cr|python-ipywidgets-8.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	ipywidgets

Name:		python-%{pypi_name}
Version:	8.0.6
Release:	1
Summary:	IPython HTML widgets for Jupyter
Source0:	%{pypi_source}
License:	BSD
Group:		Development/Python
Url:		http://ipython.org
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
.. image:: https://img.shields.io/pypi/v/ipywidgets.svg
   :target: https://pypi.python.org/pypi/ipywidgets/
   :alt: Version Number

.. image:: https://img.shields.io/pypi/dm/ipywidgets.svg
   :target: https://pypi.python.org/pypi/ipywidgets/
   :alt: Number of PyPI downloads

Interactive HTML Widgets
========================

Interactive HTML widgets for Jupyter notebooks and the IPython kernel.

Usage
=====

.. code-block:: python

    from ipywidgets import IntSlider
    IntSlider()

#------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	IPython HTML widgets for Jupyter
Group:		Development/Python

%description -n python3-%{pypi_name}
.. image:: https://img.shields.io/pypi/v/ipywidgets.svg
   :target: https://pypi.python.org/pypi/ipywidgets/
   :alt: Version Number

.. image:: https://img.shields.io/pypi/dm/ipywidgets.svg
   :target: https://pypi.python.org/pypi/ipywidgets/
   :alt: Number of PyPI downloads

Interactive HTML Widgets
========================

Interactive HTML widgets for Jupyter notebooks and the IPython kernel.

Usage
=====

.. code-block:: python

    from ipywidgets import IntSlider
    IntSlider()

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/ipywidgets
%{python3_sitelib}/ipywidgets-%{version}*.egg-info
#------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7131 |21cr|python-irc-19.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	irc
%define hash 5c3f5cb401c228b1d971a531f363aef1be4535f690a9312578ec68316744

Name:		python-%{module}
Version:	19.0.1
Release:	2
Summary:	IRC (Internet Relay Chat) protocol library for Python
Source0:	https://pypi.python.org/packages/01/69/%{hash}/%{module}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/jaraco/irc

BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(wheel)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(toml)
BuildRequires:	python3egg(importlib-metadata)
BuildRequires:	python3egg(more-itertools)
BuildRequires:	python3egg(jaraco.collections)
BuildRequires:	python3egg(jaraco.functools)
BuildRequires:	python3egg(jaraco.logging)
BuildRequires:	python3egg(jaraco.stream)
BuildRequires:	python3egg(jaraco.text)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(pytz)
BuildRequires:	python3egg(tempora)
BuildRequires:	python3egg(jaraco.packaging)

Provides:       python3-%{module} == %{EVRD}

BuildArch:	noarch

%description
Full-featured Python IRC library for Python.

This library provides a low-level implementation of the IRC protocol for
Python.  It provides an event-driven IRC client framework.  It has
a fairly thorough support for the basic IRC protocol, CTCP, and DCC
connections.

In order to understand how to make an IRC client, it's best to read up first
on the `IRC specifications

%files
%doc *.rst LICENSE scripts/
%{py3_puresitedir}/irc*

#----------------------------------------------

%prep
%setup -qn %{module}-%{version}
# remove use of env python
perl -pi -e "s|env python|python3|" scripts/testbot.py
# deprecation fix
perl -pi -e "s|@pytest.yield_fixture|@pytest.fixture|" irc/tests/test_bot.py
rm pytest.ini

%build
%py3_build

%install
%py3_install

%check
export PYTHONDONTWRITEBYTECODE=1
pytest-3


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7132 |21cr|python-iso3166-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module iso3166

Name:           python-%{module}
Version:	2.1.1
Release:	1
Summary:        Self-contained ISO 3166-1 country definitions
Group:		    Development/Python
License:        MIT
URL:            https://github.com/deactivated/python-iso3166/
Source0:	https://files.pythonhosted.org/packages/5c/11/b5023c736a185a88ebd0d38646af6f4d1b4c9b91f2ca84e08e5d2bc7ac3c/iso3166-2.1.1.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(tox)
BuildRequires:  python3egg(pip)
BuildRequires:  python3egg(wheel)
BuildRequires:  python3egg(toml)
BuildRequires:  python3egg(pytest)

BuildArch:      noarch

%description
ISO 3166-1 defines two-letter, three-letter,
and three-digit country
codes. python-iso3166 is a self-contained
module that converts between these
codes and the corresponding country name.

#-----------------------------------------------------------------

%package -n python3-%{module}
Summary:     Self-contained ISO 3166-1 country definitions

%description -n python3-%{module}
ISO 3166-1 defines two-letter, three-letter,
and three-digit country
codes. python-iso3166 is a self-contained
module that converts between these
codes and the corresponding country name.

%files -n python3-%{module}
%doc CHANGES README.rst LICENSE.txt
%{py3_puresitedir}/*
#-----------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}


%build
%py3_build


%install
%py3_install
find %{buildroot} -type f -empty -delete

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7133 |21cr|python-itsdangerous-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	itsdangerous

Name:		python-%{oname}
Version:	2.0.1
Release:	1
Summary:	Various helpers to pass trusted data to untrusted environments and back
Group:		Development/Python
License:	BSD
Url:		http://github.com/mitsuhiko/itsdangerous
Source0:	https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz
BuildArch:	noarch

%description
It's Dangerous
   ... so better sign this

Various helpers to pass data to untrusted environments and to get it back
safe and sound.

This repository provides a module that is a port of the django signing
module.  It's not directly copied but some changes were applied to
make it work better on its own.

#-------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Various helpers to pass trusted data to untrusted environments and back
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{oname}
It's Dangerous
   ... so better sign this

Various helpers to pass data to untrusted environments and to get it back
safe and sound.

This repository provides a module that is a port of the django signing
module.  It's not directly copied but some changes were applied to
make it work better on its own.

%files -n python3-%{oname}
%doc CHANGES.rst LICENSE.rst README.rst
%{python3_sitelib}/%{oname}
%{python3_sitelib}/%{oname}-*.egg-info

#-------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
rm -fr docs/_themes/.gitignore

%build
%py3_build

%install
%py3_install

%check
%__python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7134 |21cr|python-jabber-0.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define version 0.4
%define release 13
%define pkgname jabberpy%{version}-0

Summary: Python jabber protocol module 
Name: python-jabber
Version: %{version} 
Release: %{release}
Source0: %{pkgname}.tar.bz2
License: LGPL
URL: http://jabberpy.sf.net/
Group: Development/Python
BuildRoot: %{_tmppath}/%{name}-%{version}-buildroot
BuildRequires: python-devel
BuildArch: noarch

%description
Python module for jabber protocol support.
You can write client or services with it.

%prep
%setup -q -n %{pkgname}

%build
CFLAGS="$RPM_OPT_FLAGS" python setup.py build

%install
rm -rf $RPM_BUILD_ROOT
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ChangeLog CREDITS README docs/ examples/ util/ 
%py_puresitedir/*


%changelog
* Wed Nov 17 2010 Funda Wang <fwang@mandriva.org> 0.4-10mdv2011.0
+ Revision: 598276
- rebuild for py2.7

* Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 0.4-10mdv2010.0
+ Revision: 442187
- rebuild

* Sat Jan 03 2009 Funda Wang <fwang@mandriva.org> 0.4-9mdv2009.1
+ Revision: 323731
- rebuild

* Fri Aug 01 2008 Thierry Vignaud <tv@mandriva.org> 0.4-8mdv2009.0
+ Revision: 259650
- rebuild

* Fri Jul 25 2008 Thierry Vignaud <tv@mandriva.org> 0.4-7mdv2009.0
+ Revision: 247492
- rebuild

* Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 0.4-5mdv2008.1
+ Revision: 136450
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request


* Wed Dec 20 2006 Nicolas Lécureuil <neoclust@mandriva.org> 0.4-5mdv2007.0
+ Revision: 100500
- Rebuild against new python
- Import python-jabber

* Fri Dec 16 2005 Michael Scherer <misc@mandriva.org> 0.4-4mdk
- Rebuild
- use mkrel
- fix rpmlint warning

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 0.4-3mdk
- Rebuild for new python

* Fri Dec 03 2004 Michael Scherer <misc@mandrake.org> 0.4-2mdk
- Rebuild


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7135 |21cr|python-jaraco.logging-3.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _python_no_extras_requires 1

%define	pypi_name	jaraco.logging

Summary:	Jaraco.logging
Name:		python-%{pypi_name}
Version:	3.1.2
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://github.com/jaraco/jaraco.logging
Source0:	%{pypi_source}

BuildRequires:	python3egg(setuptools)
BuildRequires:	pyproject-rpm-macros

BuildArch:	noarch

%description
Additional facilities to supplement Python's stdlib logging module.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Jaraco.logging
Group:		Development/Python

%description -n python3-%{pypi_name}
Additional facilities to supplement Python's stdlib logging module.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc *.rst LICENSE
#-----------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf jaraco.logging.egg-info

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files jaraco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7136 |21cr|python-jaraco.stream-3.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	jaraco.stream


Summary:	routines for dealing with data streams
Name:		python-%{pypi_name}
Version:	3.0.3
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://github.com/jaraco/jaraco.stream
Source0:	%{pypi_source}

BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(more-itertools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(jaraco.packaging)

BuildArch:	noarch

%description
Routines for handling streaming data, including a
set of generators for loading gzip data on the fly.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Jaraco.stream
Group:		Development/Python

%description -n python3-%{pypi_name}
Routines for handling streaming data, including a
set of generators for loading gzip data on the fly.

%files -n python3-%{pypi_name}
%doc *.rst LICENSE
%{py3_puresitedir}/jaraco/stream
%{py3_puresitedir}/jaraco.stream*.egg-info

#------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf jaraco.stream.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7137 |21cr|python-jarowinkler-1.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define	pypi_name jarowinkler

Summary:	JaroWinkler is a library to calculate the Jaro and Jaro-Winkler similarity
Name:		python-%{pypi_name}
Version:	1.2.3
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/maxbachmann/JaroWinkler
Source0:	https://pypi.io/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0:		jarowinkler-requirements.patch
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(pip)
BuildRequires:	python3dist(scikit-build)
BuildRequires:	python3dist(rapidfuzz-capi)
BuildRequires:	ninja

%description
JaroWinkler is a library to calculate the Jaro and Jaro-Winkler similarity.
It is easy to use, is far more performant than all alternatives and is
designed to integrate seemingless with RapidFuzz.
#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	This package provides the C-API of jarowinkler
Group:		Development/Python

%description -n python3-%{pypi_name}
JaroWinkler is a library to calculate the Jaro and Jaro-Winkler similarity.
It is easy to use, is far more performant than all alternatives and is
designed to integrate seemingless with RapidFuzz.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# FIXME: generate build requires fail
#generate_buildrequires
#pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7138 |21cr|python-jaxml-3.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	jaxml

Name:		python-%{oname}
Version:	3.02
Release:	1
Summary:	a Python module to generate XML easily
Source0:	https://pypi.python.org/packages/ea/5d/b44771123a89a88b9fbf580d9953dc87bc88a0d1b35ea611aaf6804656b3/%{oname}-%{version}.tar.gz
License:	GNU GPL
Group:		Development/Python
Url:		http://www.librelogiciel.com/software/
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
a Python module to generate XML easily

%package -n python2-%{oname}
Summary:	a Python module to generate XML easily

%description -n python2-%{oname}
a Python module to generate XML easily


%prep
%setup -q -n %{oname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

%files -n python2-%{oname}
%doc COPYING
%doc CREDITS
%doc NEWS
%doc README
%{py2_puresitedir}/jaxml.py*
%{py2_puresitedir}/jaxml*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7139 |21cr|python-jedi-0.18.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	jedi

Name:		python-%{module}
Version:	0.18.1
Release:	1
Summary:	An auto completion tool for Python that can be used for text editors
Group:		Development/Python
License:	LGPLv3
Url:		https://jedi.readthedocs.org/en/latest/index.html
Source0:	https://pypi.io/packages/source/j/%{module}/%{module}-%{version}.tar.gz

BuildArch:	noarch

%description
Jedi is an auto completion tool for Python. It works. With and without
syntax errors. Sometimes it sucks, but that's normal in dynamic languages.
But it sucks less than other tools. It understands almost all of the basic
Python syntax elements including many built-ins.

Jedi uses a very simple interface to connect with IDE's. As an reference,
there is a VIM implementation, which uses Jedi's auto completion. However,
I encourage you to use Jedi in your IDEs. Start writing plugins! If there are
problems with licensing, just contact me.
#------------------------------------------------------------
%package -n	python3-%{module}
Summary:	An auto completion tool for Python 3 that can be used for text editors
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(typing)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(parso)

BuildArch:	noarch

#----------------------------------------------------------------------

%description -n	python3-%{module}
Jedi is an auto completion tool for Python 3. It works. With and without
syntax errors. Sometimes it sucks, but that's normal in dynamic languages.
But it sucks less than other tools. It understands almost all of the basic
Python syntax elements including many built-ins.

Jedi uses a very simple interface to connect with IDE's. As an reference,
there is a VIM implementation, which uses Jedi's auto completion. However,
I encourage you to use Jedi in your IDEs. Start writing plugins! If there are
problems with licensing, just contact me.


%files -n python3-%{module}
%doc *.rst *.txt
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info
#------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

find %{buildroot} -type f -empty -delete


%ifarch x86_64 i686
%check
# fail on py3.8
skiptests="test_integration"
skiptests+=" or test_sys_path"

export LANG="en_US.UTF-8"
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3  -k "not ($skiptests)"

%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7140 |21cr|python-jellyfish-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname jellyfish
# Share doc between python-jellyfish and python3-jellyfish
%global _docdir_fmt %{name}

Name:           python-%{srcname}
Version:        0.9.1
Release:        1
Summary:        A python library for doing approximate and phonetic matching of strings
Group:          Development/Python
License:        BSD
URL:            https://github.com/jamesturk/%{srcname}
Source0:        https://github.com/jamesturk/%{srcname}/archive/v%{version}.tar.gz
# git repo is here https://github.com/jamesturk/jellyfish-testdata.git
# tgz created with: git archive HEAD -o jellyfish-testdata-20160204.tgz
Source1:        jellyfish-testdata-20200727.tgz
# We do not use the C binding so we just install everything in site_lib
Patch0:         fix-build.patch
# The following two patches are needed because we do not ship any C implementation so we manually
# disable the tests that check for this C version
Patch1:         test-only-python-implementation.diff
Patch2:         nocimplementation-fix-0.9.1.patch
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%global _description\
Jellyfish does approximate and phonetic string matching. It\
includes the following string comparison algorithms:\
Levenshtein Distance, Damerau-Levenshtein Distance,\
Jaro Distance, Jaro-Winkler Distance, Match Rating Approach\
Comparison and Hamming Distance\
\
And the following phonetic encodings:\
American Soundex, Metaphone, NYSIIS (New York State Identification\
and Intelligence System), Match Rating Codex

%description %_description

#-----------------------------------------------------------
%package -n python3-%{srcname}
Summary:        A python library for doing approximate and phonetic matching of strings
Group:          Development/Python

%description -n python3-%{srcname} %{_description}

Python 3 Version.

%files -n python3-%{srcname}
%license LICENSE
%doc README.md docs/
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}*.egg-info

#-----------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1
tar xf %{SOURCE1} -C testdata

%build
%py3_build

%install
%py3_install

%check
# testdata is here: https://github.com/jamesturk/jellyfish-testdata.git
PYTHONPATH=. pytest-3 jellyfish/test.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7141 |21cr|python-jinja2-time-0.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	jinja2-time

Name:		python-%{module}
Version:	0.2.0
Release:	3
Summary:	Jinja2 Extension for Dates and Times
Source0:	https://pypi.python.org/packages/source/j/%{module}/%{module}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/hackebrot/jinja2-time
BuildArch:	noarch

%description
===========
Jinja2 Time
===========

Jinja2 Python2 Extension for Dates and Times.

#-----------------------------------------
%package -n python3-%{module}
Summary:   Jinja2 Extension for Dates and Times
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
===========
Jinja2 Time
===========

Jinja2 Python3 Extension for Dates and Times.

%files -n python3-%{module}
%doc *.rst
%{py3_puresitedir}/jinja2_time
%{py3_puresitedir}/jinja2_time*.egg-info
#-------------------------------------
%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7142 |21cr|python-jmespath-0.9.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name jmespath

Name:		python-%{upstream_name}
Version:	0.9.3
Release:	3
Source0:	https://github.com/jmespath/jmespath.py/archive/%{version}/jmespath-%{version}.tar.gz
License:	Public Domain
Summary:	JMESPath is a query language for JSON
URL:		https://github.com/jmespath/jmespath.py
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
JMESPath (pronounced "james path") allows you to declaratively specify how to
extract elements from a JSON document.

For example, given this document:

{"foo": {"bar": "baz"}}

The jmespath expression foo.bar will return "baz".

%package -n python3-%{upstream_name}
License:	Public Domain
Summary:	JMESPath is a query language for JSON
Group:		Development/Python

%description -n python3-%{upstream_name}
A low-level interface to a growing number of Amazon Web Services. The botocore
package is the foundation for the AWS CLI as well as boto3.

%prep
%setup -qn %{upstream_name}.py-%{version}

%build
%py3_build

%install
%py3_install

%files
%{_bindir}/jp.py

%files -n python3-%{upstream_name}
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7143 |21cr|python-journalctl-0.7.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname pyjournalctl

Name:           python-journalctl
Version:        0.7.0
Release:        12
Summary:        A python module that reads systemd journald similar to journalctl
License:        GPLv2
Group:          Development/Python
Source0:        https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
Patch0:         pyjournalctl-0.7.0-systemd-216.patch
Url:            https://github.com/kwirk/pyjournalctl
BuildRequires:  pkgconfig(systemd)

%description
A python module that reads systemd journald similar to journalctl

%package -n python3-journalctl
Summary:        Python 3 module that reads systemd journald similar to journalctl
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description -n python3-journalctl
A Python 3 module that reads systemd journald similar to journalctl.

%prep
%setup -q -n %{srcname}-%{version}
%patch0 -p1

%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --root %{buildroot} --skip-build 


%files -n python3-journalctl
%doc README.rst
%{py3_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7144 |21cr|python-jpype-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		JPype1
%define pypi_name	jpype

%define debug_package	%{nil}

Name:		python-%{pypi_name}
Version:	1.4.0
Release:	1
Summary:	A Python to Java bridge
Source0:	%{pypi_source %{oname}}
License:	License :: OSI Approved :: Apache Software License
Group:		Development/Python
Url:		https://github.com/originell/jpype/
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-numpy-devel

%description
JPype is an effort to allow python programs full access to java class
libraries.

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A Python to Java bridge
Group:		Development/Python

%description -n python3-%{pypi_name}
JPype is an effort to allow python programs full access to java class
libraries.

%files -n python3-%{pypi_name}
%doc *.rst
%doc LICENSE
%doc doc/*.rst
%doc examples/linux/README.TXT
%{py3_platsitedir}/_jpype.*.so
%{py3_platsitedir}/jpype
%{py3_platsitedir}/org.jpype.jar
%{py3_platsitedir}/JPype1-%{version}-*.egg-info
#-----------------------------------------------------------
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7145 |21cr|python-json5-0.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	json5

Name:		python-%{oname}
Version:	0.6.1
Release:	1
Summary:	A Python implementation of the JSON5 data format
Source0:	https://files.pythonhosted.org/packages/source/j/%{oname}/%{oname}-%{version}.tar.gz
License:	Apache License
Group:		Development/Python
Url:		https://github.com/dpranke/pyjson5
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
A Python implementation of the JSON5 data format.

JSON5 extends the JSON data interchange format to make it
slightly more usable as a configuration language:
* JavaScript-style comments (both single and multi-line) are legal.
* Object keys may be unquoted if they are legal ECMAScript identifiers
* Objects and arrays may end with trailing commas.
* Strings can be single-quoted, and multi-line string literals are allowed.

There are a few other more minor extensions to JSON

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	A Python implementation of the JSON5 data format

%description -n python2-%{oname}
A Python implementation of the JSON5 data format.

JSON5 extends the JSON data interchange format to make it
slightly more usable as a configuration language:
* JavaScript-style comments (both single and multi-line) are legal.
* Object keys may be unquoted if they are legal ECMAScript identifiers
* Objects and arrays may end with trailing commas.
* Strings can be single-quoted, and multi-line string literals are allowed.

There are a few other more minor extensions to JSON


%prep
%setup -q -n %{oname}-%{version}

%build
%py2_build

%install
%py2_install
rm --force %{buildroot}%{py2_puresitedir}/README.rst

%files -n python2-%{oname}
%doc README.rst
%{_bindir}/pyjson5
%{py2_puresitedir}/%{oname}
%{py2_puresitedir}/%{oname}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7146 |21cr|python-jsonpatch-1.23-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name jsonpatch

Name:           python-jsonpatch
Version:        1.23
Release:        3
Group:          Development/Python
Summary:        Apply JSON-Patches (RFC 6902)
License:        Modified BSD License
URL:            https://github.com/stefankoegl/python-json-patch
Source0:        https://pypi.io/packages/source/j/jsonpatch/jsonpatch-%{version}.tar.gz
#Patch0:		jsonpatch-1.23-encoding.patch
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
Library to apply JSON Patches according to RFC 6902.

%package -n     python3-%{pypi_name}
Summary:        Apply JSON-Patches (RFC 6902)
Group:          Development/Python

%description -n python3-%{pypi_name}
Library to apply JSON Patches according to RFC 6902.

%prep
%setup -q -n %{pypi_name}-%{version}
#%apply_patches

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

# fix shebangs
sed -i 's#usr/bin/env python#usr/bin/python3#' %{buildroot}%{_bindir}/jsondiff %{buildroot}%{_bindir}/jsonpatch

%files -n python3-%{pypi_name}
%doc README.md
%{_bindir}/jsondiff
%{_bindir}/jsonpatch
%{py3_puresitedir}/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7147 |21cr|python-jsonrpclib-0.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name jsonrpclib
%global upstream jsonrpclib-pelix

Name:           python-%{pypi_name}
Version:        0.4.0
Release:        3
Group:          Development/Python
Summary:        This project is an implementation of the JSON-RPC v2.0 specification
License:        ASL2.0
URL:            http://github.com/tcalmant/jsonrpclib/
Source0:        https://pypi.python.org/packages/source/j/%{upstream}/%{upstream}-%{version}.tar.gz
BuildArch:      noarch
%description
This library is an implementation of the JSON-RPC specification. It supports
both the original 1.0 specification, as well as the new (proposed) 2.0
specification, which includes batch submission, keyword arguments, etc.

This is a patched version of the original jsonrpclib project by Josh Marshall.

%package -n python3-%{pypi_name}
Summary:        This project is an implementation of the JSON-RPC v2.0 specification
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description -n python3-%{pypi_name}
This library is an implementation of the JSON-RPC specification. It supports
both the original 1.0 specification, as well as the new (proposed) 2.0
specification, which includes batch submission, keyword arguments, etc.

This is a patched version of the original jsonrpclib project by Josh Marshall.

%prep
%setup -q -n %{upstream}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%{py3_puresitedir}/%{pypi_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7148 |21cr|python-jupyter-client-8.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Unset -s on python shebang - ensure that extensions installed with pip
# to user locations are seen and properly loaded
%undefine _py3_shebang_s

%bcond_with doc
%bcond_with tests

Summary:	Jupyter protocol implementation and client libraries
Name:		python-jupyter-client
Version:	8.2.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://jupyter.org
Source0:	%{pypi_source jupyter_client}
Patch0:		jupyter_client-8.2.0-requirements.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	pyproject-rpm-macros
%if %{with tests}
# The zmq tests are split in RPM only, the dependency is not tracked on Python level:
BuildRequires:	python3-zmq-tests
%endif
BuildArch:	noarch

%description
This package contains the reference implementation of the Jupyter protocol.
It also provides client and kernel management APIs for working with kernels.

It also provides the `jupyter kernelspec` entrypoint for installing kernelspecs
for use with Jupyter frontends.

#----------------------------------------------------------------------------

%package -n python3-jupyter-client
Summary:	Jupyter protocol implementation and client libraries
Group:		Development/Python
# It fallbacks to ifconfig without this, and ifconfig is deprecated
Recommends:	python3-netifaces

%description -n python3-jupyter-client
This package contains the reference implementation of the Jupyter protocol.
It also provides client and kernel management APIs for working with kernels.

It also provides the `jupyter kernelspec` entrypoint for installing kernelspecs
for use with Jupyter frontends.

%files -n python3-jupyter-client -f %{pyproject_files}
%doc README.md
%{_bindir}/jupyter-kernel
%{_bindir}/jupyter-kernelspec
%{_bindir}/jupyter-run

#----------------------------------------------------------------------------

%if %{with doc}
%package -n python-jupyter-client-doc
Summary:	Documentation of the Jupyter protocol reference implementation
Group:		Documentation

%description -n python-jupyter-client-doc
Documentation of the reference implementation of the Jupyter protocol

%files -n python-jupyter-client-doc
%doc html
%endif
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n jupyter_client-%{version}
# Drop dependencies on coverage, linters etc.
sed -Ei '/\b(codecov|coverage|mypy|pre-commit|pytest-cov)\b/d' pyproject.toml
# Delete mypy config options
sed -i '/check_untyped/Q' pyproject.toml


%if %{with doc}
# Use local objects.inv for intersphinx:
sed -i "s|\(('http://ipython.readthedocs.io/en/stable/', \)None)|\1'/usr/share/doc/python3-ipython-doc/html/objects.inv')|" docs/conf.py
%endif


%generate_buildrequires
%pyproject_buildrequires -w %{?with_tests:-x test} %{?with_doc:-x doc}


%build
%pyproject_wheel

%if %{with doc}
PYTHONPATH=build/lib/ sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -r html/.{doctrees,buildinfo}
%endif


%install
%pyproject_install
%pyproject_save_files jupyter_client


%if %{with tests}
%check
# The two tests testing signals for kernels are flaky because
# if it takes the kernel more than one second to respond, it's killed.
# The tests work fine outside mock.
%pytest -v -k "not test_signal_kernel_subprocesses and not test_async_signal_kernel_subprocesses"
%endif


%global _docdir_fmt %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7149 |21cr|python-jupyter-core-5.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Unset -s on python shebang - ensure that extensions installed with pip
# to user locations are seen and properly loaded
%global py3_shebang_flags %(echo %py3_shebang_flags | sed s/s//)

Name:           python-jupyter-core
Version:        5.1.1
Release:        1
Summary:        The base package for Jupyter projects
Group:          Development/Python
License:        BSD
URL:            http://jupyter.org
Source0:        %{pypi_source jupyter_core}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-docs
BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinxcontrib-github-alt
BuildRequires:  python3-myst-parser
BuildRequires:  pyproject-rpm-macros

%bcond_without tests
%if %{with tests}
BuildRequires:  python3-pytest
%endif

%description
Core common functionality of Jupyter projects.

This package contains base application classes and configuration inherited by
other projects.

#----------------------------------------------------
%package -n     python3-jupyter-core
Summary:        The base package for Jupyter projects
Group:          Development/Python

%description -n python3-jupyter-core
Core common functionality of Jupyter projects.

This package contains base application classes and configuration inherited by
other projects.

%files -n python3-jupyter-core -f %{pyproject_files}
%license COPYING.md
%doc README.md
%{_bindir}/jupyter
%{_bindir}/jupyter-migrate
%{_bindir}/jupyter-troubleshoot

#----------------------------------------------------
%package -n python-jupyter-core-doc
Summary:        Documentation of the base package for Jupyter projects
Group:          Documentation

%description -n python-jupyter-core-doc
Core common functionality of Jupyter projects.

This package contains documentation for the base application classes and
configuration inherited by other jupyter projects.

%files -n python-jupyter-core-doc
%doc html

#----------------------------------------------------
%package -n python-jupyter-filesystem
Summary:        Jupyter filesystem layout
Group:          Development/Python

%description -n python-jupyter-filesystem
This package provides directories required by other packages that add
extensions to Jupyter.

%files -n python-jupyter-filesystem
%{_datadir}/jupyter
%{_sysconfdir}/jupyter

#----------------------------------------------------

%prep
%autosetup -p1 -n jupyter_core-%{version}

# Use local objects.inv for intersphinx:
sed -i "s|{'https://docs.python.org/3/': None}|{'https://docs.python.org/3/': '/usr/share/doc/python3-docs/html/objects.inv'}|" docs/conf.py

%py3_shebang_fix jupyter_core/troubleshoot.py


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel

# generate html docs
PYTHONPATH=. sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}


%install
%pyproject_install
%pyproject_save_files jupyter jupyter_core

# Create directories for python-jupyter-filesystem package
mkdir -p %{buildroot}%{_datadir}/jupyter
mkdir %{buildroot}%{_datadir}/jupyter/kernels
mkdir %{buildroot}%{_datadir}/jupyter/labextensions
mkdir %{buildroot}%{_datadir}/jupyter/nbextensions
mkdir -p %{buildroot}%{_sysconfdir}/jupyter
mkdir %{buildroot}%{_sysconfdir}/jupyter/jupyter_notebook_config.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/jupyter_server_config.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/common.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/edit.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/notebook.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/terminal.d
mkdir %{buildroot}%{_sysconfdir}/jupyter/nbconfig/tree.d


%if %{with tests}
%check
# deselected tests unset PATH env variables and can only run when installed
# test_jupyter_path_(no)_user_site are deselected because we change
# user install location path in Fedora, for reference see:
# https://src.fedoraproject.org/rpms/python3.10/blob/rawhide/f/00251-change-user-install-location.patch
%pytest -v \
    --deselect "jupyter_core/tests/test_command.py::test_not_on_path" \
    --deselect "jupyter_core/tests/test_command.py::test_path_priority" \
    --deselect "jupyter_core/tests/test_command.py::test_argv0" \
    --deselect "jupyter_core/tests/test_paths.py::test_jupyter_path_prefer_env" \
    --deselect "jupyter_core/tests/test_paths.py::test_jupyter_path_user_site" \
    --deselect "jupyter_core/tests/test_paths.py::test_jupyter_path_no_user_site" \
;
%endif


%global _docdir_fmt %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7150 |21cr|python-jupyterlab_pygments-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name jupyterlab_pygments

Name:           python-%{pypi_name}
Version:        0.2.2
Release:        1
Summary:        Pygments theme
Group:          Development/Python
License:        BSD
URL:            https://github.com/jupyterlab/jupyterlab_pygments
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(jupyter-packaging)

%description
This package contains a syntax coloring theme for pygments making use of the 
JupyterLab CSS variables.

#-----------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
This package contains a syntax coloring theme for pygments making use of the 
JupyterLab CSS variables.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info
%{_datadir}/jupyter/labextensions/jupyterlab_pygments

#-----------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7151 |21cr|python-jupyterlab-widgets-3.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name jupyterlab-widgets
%global pypi_under jupyterlab_widgets

Name:           python-jupyterlab-widgets
Version:        3.0.7
Release:        1
Summary:        Jupyter Widgets JupyterLab Extension
License:        BSD-3-Clause
Group:          Development/Python
URL:            https://github.com/jupyter-widgets/ipywidgets
Source:         https://files.pythonhosted.org/packages/source/j/jupyterlab-widgets/%{pypi_under}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(jupyter-packaging)
BuildRequires:  python3dist(pip)
BuildRequires:  python3dist(wheel)

%description
A JupyterLab 3.0 extension for Jupyter/IPython widgets.

#------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Jupyter Widgets JupyterLab Extension
Group:          Development/Python

%description -n python3-%{pypi_name}
A JupyterLab 3.0 extension for Jupyter/IPython widgets.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/jupyterlab_widgets/
%{python3_sitelib}/jupyterlab_widgets-%{version}.dist-info/
%{_datadir}/jupyter/labextensions/@jupyter-widgets/

#------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_under}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7152 |21cr|python-jupyter-packaging-0.12.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name jupyter_packaging

Name:           python-jupyter-packaging
Version:        0.12.3
Release:        1
Summary:        Tools to help build and install Jupyter Python packages
Group:          Development/Python
License:        BSD
URL:            https://github.com/jupyter/jupyter-packaging
Source0:        %{pypi_source}
Patch0:         jupyter-packaging-requirements.patch
BuildArch:      noarch

%global _description %{expand:
This package contains utilities for making Python packages with and without
accompanying JavaScript packages.}

%description %_description

#-------------------------------------------------
%package -n python3-jupyter-packaging
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description -n python3-jupyter-packaging %_description

%files -n python3-jupyter-packaging -f %{pyproject_files}
%license LICENSE
%doc README.md

#-------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# Drop dependencies on coverage, linters etc.
sed -Ei 's/"(coverage|pre-commit|pytest-cov)",//g' pyproject.toml

%generate_buildrequires
%pyproject_buildrequires -w

%install
%pyproject_install
%pyproject_save_files %{pypi_name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7153 |21cr|python-kaitaistruct-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	kaitaistruct

Name:		python-%{oname}
Version:	0.9
Release:	1
Summary:	Kaitai Struct declarative parser generator for binary data
Source0:	https://files.pythonhosted.org/packages/33/e1/c75484bce13509d2bb1118585cd832cff228ed99df81753028dbf8f1dbcb/kaitaistruct-0.9.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://kaitai.io
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
Kaitai Struct: runtime library for Python
===========================================

This library implements Kaitai Struct API for Python.

`Kaitai Struct <http://kaitai.io>`_ is a declarative language used for
describe various binary data structures, laid out in files or in memory:
i.e. binary file formats, network stream packet formats, etc.

It is similar to `Python's Construct 2.9 <http://construct.readthedocs.org/>`_
but it is language-agnostic. The format description is done in YAML-based .ksy
format, which then can be compiled into a wide range of target languages.

Further reading:

* `About Kaitai Struct <http://kaitai.io/>`_
* `About API implemented in this library
* <http://doc.kaitai.io/stream_api.html>`_
* `Python specific notes <http://doc.kaitai.io/lang_python.html>`_

Installing
------------------------------

Using `requirements.txt`
------------------------------

If you want to use Kaitai Struct runtime in your project and you use
`requirements.txt` to manage your dependencies, just add the following
line to it:

::

    kaitaistruct

and then run `pip install -r requirements.txt` to update all your
dependencies.

Using `pip` directly
------------------------------

You can use

::

    pip install kaitaistruct

to install the package manually using `pip` Python package manager.

Licensing
------------------------------

Copyright 2015-2018 Kaitai Project: MIT license

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

%package -n python3-%{oname}
Summary:	Kaitai Struct declarative parser generator for binary data

%description -n python3-%{oname}
Kaitai Struct: runtime library for Python
===========================================

This library implements Kaitai Struct API for Python.

`Kaitai Struct <http://kaitai.io>`_ is a declarative language used for
describe various binary data structures, laid out in files or in memory:
i.e. binary file formats, network stream packet formats, etc.

It is similar to `Python's Construct 2.9 <http://construct.readthedocs.org/>`_
but it is language-agnostic. The format description is done in YAML-based .ksy
format, which then can be compiled into a wide range of target languages.

Further reading:

* `About Kaitai Struct <http://kaitai.io/>`_
* `About API implemented in this library
* <http://doc.kaitai.io/stream_api.html>`_
* `Python specific notes <http://doc.kaitai.io/lang_python.html>`_

Installing
------------------------------

Using `requirements.txt`
------------------------------

If you want to use Kaitai Struct runtime in your project and you use
`requirements.txt` to manage your dependencies, just add the following
line to it:

::

    kaitaistruct

and then run `pip install -r requirements.txt` to update all your
dependencies.

Using `pip` directly
------------------------------

You can use

::

    pip install kaitaistruct

to install the package manually using `pip` Python package manager.

Licensing
------------------------------

Copyright 2015-2018 Kaitai Project: MIT license

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
"Software"), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%doc README.rst
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/kaitaistruct.py*
%{py3_puresitedir}/kaitaistruct*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7154 |21cr|python-kapteyn-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module kapteyn

# we don't want to provide private python extension libs
%define __provides_exclude_from ^(%{py3_platsitedir}/.*\\.so)$

Name:    python-kapteyn
Version: 3.0
Release: 1
Summary: The Kapteyn Python Astronomy package
License: BSD
Group:   Sciences/Astronomy
Url:     http://www.astro.rug.nl/software/kapteyn/
Source0: http://www.astro.rug.nl/software/kapteyn/%{module}-%{version}.tar.gz
Patch0:  python-kapteyn-2.3.1-unbundle-wcslib.patch
Patch1:  python-kapteyn-2.3.1-linking.patch

BuildRequires: pkgconfig(wcslib)

%description
The Kapteyn Package is a collection of Python modules and applications
developed by the computer group of the Kapteyn Astronomical Institute,
University of Groningen, The Netherlands. The purpose of the package is
to provide tools for the development of astronomical applications with Python.
#--------------------------------------------------------------

%package -n python3-%{module}
Summary:       Python3 implementatoin of the Kapteyn package
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(cython)
BuildRequires: python3egg(numpy)
BuildRequires: python3egg(sphinx)
BuildRequires: python3egg(matplotlib)

%description -n python3-%{module}
The Kapteyn Package is a collection of Python3 modules and
applications developed by the computer group of the Kapteyn
Astronomical Institute, University of Groningen, The Netherlands. The
purpose of the package is to provide tools for the development of
astronomical applications with Python3.


%files -n python3-%{module}
%doc *.txt
%{py3_platsitedir}/kapteyn
%{py3_platsitedir}/kapteyn-%{version}-*.egg-info
#--------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
%patch0 -p1
%patch1 -p1
# Unbundle wcslib
rm -rf src/wcslib-4.24
rm -rf kapteyn.egg-info
# remove use of /usr/bin/env
pushd kapteyn
perl -pi -e "s|/usr/bin/env python|/usr/bin/python3|" *.py
popd


%build
%py3_build

%install
%py3_install

find %{buildroot}%{py3_platsitedir}/kapteyn -name "*.so" |xargs chmod 755


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7155 |21cr|python-keystoneauth1-4.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	keystoneauth1

Name:		python-%{oname}
Version:	4.2.0
Release:	1
Summary:	Authentication Library for OpenStack Identity
Group:		Development/Python
License:	ASL
Url:		https://docs.openstack.org/keystoneauth/latest/
Source0:	https://pypi.python.org/packages/source/k/%{oname}/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pbr)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This package contains tools for authenticating to an OpenStack-based cloud.
These tools include:

* Authentication plugins (password, token, and federation based)
* Discovery mechanisms to determine API version support
* A session that is used to maintain client settings across requests (based on
  the requests Python library)

#-----------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Authentication Library for OpenStack Identity
Group:		Development/Python

%description -n python3-%{oname}
This package contains tools for authenticating to an OpenStack-based cloud.
These tools include:

* Authentication plugins (password, token, and federation based)
* Discovery mechanisms to determine API version support
* A session that is used to maintain client settings across requests (based on
  the requests Python library)

%files -n python3-%{oname}
%doc README.rst
%doc keystoneauth1/hacking/__init__.py
%doc keystoneauth1/hacking/checks.py
%doc keystoneauth1/tests/unit/test_hacking_checks.py
%{python3_sitelib}/keystoneauth1/*.py*
%{python3_sitelib}/keystoneauth1/__pycache__
%{python3_sitelib}/keystoneauth1/access/*.py*
%{python3_sitelib}/keystoneauth1/access/__pycache__
%{python3_sitelib}/keystoneauth1/exceptions/*.py*
%{python3_sitelib}/keystoneauth1/exceptions/__pycache__
%{python3_sitelib}/keystoneauth1/extras/*.py*
%{python3_sitelib}/keystoneauth1/extras/__pycache__
%{python3_sitelib}/keystoneauth1/extras/_saml2/*.py*
%{python3_sitelib}/keystoneauth1/extras/_saml2/__pycache__
%{python3_sitelib}/keystoneauth1/extras/_saml2/v3/*.py*
%{python3_sitelib}/keystoneauth1/extras/_saml2/v3/__pycache__
%{python3_sitelib}/keystoneauth1/extras/kerberos/*.py*
%{python3_sitelib}/keystoneauth1/extras/kerberos/__pycache__
%{python3_sitelib}/keystoneauth1/extras/oauth1/*.py*
%{python3_sitelib}/keystoneauth1/extras/oauth1/__pycache__
%{python3_sitelib}/keystoneauth1/fixture/*.py*
%{python3_sitelib}/keystoneauth1/fixture/__pycache__
%{python3_sitelib}/keystoneauth1/hacking/*.py*
%{python3_sitelib}/keystoneauth1/hacking/__pycache__
%{python3_sitelib}/keystoneauth1/identity/*.py*
%{python3_sitelib}/keystoneauth1/identity/__pycache__
%{python3_sitelib}/keystoneauth1/identity/generic/*.py*
%{python3_sitelib}/keystoneauth1/identity/generic/__pycache__
%{python3_sitelib}/keystoneauth1/identity/v3/*.py*
%{python3_sitelib}/keystoneauth1/identity/v3/__pycache__
%{python3_sitelib}/keystoneauth1/loading/*.py*
%{python3_sitelib}/keystoneauth1/loading/__pycache__
%{python3_sitelib}/keystoneauth1/loading/_plugins/*.py*
%{python3_sitelib}/keystoneauth1/loading/_plugins/identity/*.py*
%{python3_sitelib}/keystoneauth1/loading/_plugins/identity/__pycache__
%{python3_sitelib}/keystoneauth1/loading/_plugins/__pycache__
%{python3_sitelib}/keystoneauth1/tests/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/access/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/access/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/exceptions/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/exceptions/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/extras/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/extras/kerberos/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/extras/kerberos/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/extras/oauth1/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/extras/oauth1/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/extras/saml2/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/extras/saml2/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/extras/saml2/examples/xml/*.xml*
%{python3_sitelib}/keystoneauth1/tests/unit/extras/saml2/fixtures/templates/*.xml*
%{python3_sitelib}/keystoneauth1/tests/unit/extras/saml2/fixtures/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/extras/saml2/fixtures/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/identity/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/identity/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/loading/*.py*
%{python3_sitelib}/keystoneauth1/tests/unit/loading/__pycache__
%{python3_sitelib}/keystoneauth1/tests/unit/data/README
%{python3_sitelib}/keystoneauth1/tests/unit/data/*.json*
%{python3_sitelib}/keystoneauth1/tests/unit/data/*.yaml*
%{python3_sitelib}/keystoneauth1*.egg-info

#-----------------------------------------------------------------------------
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install
find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7156 |21cr|python-kezmenu3-0.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	kezmenu3

Name:		python-%{module}
Version:	0.3.6
Release:	1
Summary:	KezMenu3 is a KezMenu fork for Python2 
Source0:	http://pypi.python.org/packages/source/k/%{module}/%{module}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/a-tal/kezmenu3/master/LICENSE
Source2:	https://raw.githubusercontent.com/a-tal/kezmenu3/master/README.md
License:	GPLv2+
Group:		Development/Python
Url:		https://github.com/a-tal/kezmenu3

BuildArch:	noarch


%description
KezMenu is a GPL PyGame menu library

#---------------------------------------------------------------------------
%package -n python3-%{module}

Summary:	KezMenu3 is a KezMenu fork for Python3
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
KezMenu is a GPL PyGame menu library

%files -n python3-%{module}
%doc LICENSE README.md
%{py3_puresitedir}/kezmenu3/*.py*
%{py3_puresitedir}/kezmenu3*.egg-info
%{py3_puresitedir}/kezmenu3/__pycache__
#---------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
cp -p %{SOURCE1} .
cp -p %{SOURCE2} .

%build
%py3_build


%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7157 |21cr|python-kickstart-1.68-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname pykickstart

Name:		python-kickstart
Version:	1.68
Release:	5
Summary:	A python library for manipulating kickstart files
License:	GPLv2
Group:		Development/Python
# This is a Red Hat maintained package. Thus the source is only available from
# within the srpm:
# http://download.fedora.redhat.com/pub/fedora/linux/development/source/SRPMS/
# or git git://git.fedorahosted.org/git/pykickstart.git
Source0:	%{srcname}-%{version}.tar.gz
Url:		http://fedoraproject.org/wiki/pykickstart
BuildRequires:	python-devel
BuildRequires:	python-setuptools
BuildRequires:	gettext
BuildArch:	noarch
Requires:	python-urlgrabber

%description
The python-kickstart package is a python library for manipulating kickstart
files.

%prep
%setup -q -n %{srcname}-%{version}

%build
%make

%install
make DESTDIR=%{buildroot} install
%find_lang %{srcname}

%files -f %{srcname}.lang
%defattr(-,root,root,-)
%doc README ChangeLog COPYING docs/programmers-guide
%doc docs/kickstart-docs.txt
%{python_sitelib}/*
%{_bindir}/ksvalidator
%{_bindir}/ksflatten
%{_bindir}/ksverdiff


%changelog
* Thu Feb 25 2010 Ahmad Samir <ahmadsamir@mandriva.org> 1.68-1mdv2011.0
+ Revision: 511247
- adapt spec to package renaming
- rename package to comply with naming policy

* Thu Feb 25 2010 Ahmad Samir <ahmadsamir@mandriva.org> 1.68-1mdv2010.1
+ Revision: 511214
- import pykickstart


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7158 |21cr|python-kiss-headers-2.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name kiss_headers

Name:           python-kiss-headers
Version:        2.4.3
Release:        1
Summary:        Python package for parsing HTTP/1.1 style headers to objects
Group:          Development/Python
License:        MIT
URL:            https://www.kiss-headers.tech/
Source0:        %{pypi_source}
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%description
A Python package for object-oriented HTTP/1.1 style headers. It includes
a parser and serializer for HTTP headers.

#------------------------------------------------------------------

%package -n python3-kiss-headers
Summary:	%{summary}
Group:		Development/Python

%description -n python3-kiss-headers
A Python package for object-oriented HTTP/1.1 style headers. It includes
a parser and serializer for HTTP headers.

%files -n python3-kiss-headers
%doc README.md
%license LICENSE
%{python3_sitelib}/kiss_headers
%{python3_sitelib}/kiss_headers-%{version}*-info
#------------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7159 |21cr|python-kitchen-1.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small, useful pieces of code to make python2 coding easier
Name:		python-kitchen
Version:	1.2.6
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		https://pypi.python.org/pypi/kitchen/
Source0:	https://fedorahosted.org/releases/k/i/kitchen/kitchen-%{version}.tar.gz
BuildRequires:	python3-nose
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(chardet)
Obsoletes:	%{name}-doc < %{EVRD}
Requires:	python3egg(chardet)
BuildArch:	noarch

%description
kitchen includes functions to make gettext easier to use, handling unicode
text easier (conversion with bytes, outputting xml, and calculating how many
columns a string takes), and compatibility modules for writing code that uses
python2-2.7 modules but needs to run on python-2.3.

%package -n python3-kitchen
Summary:	Small, useful pieces of code to make python coding easier

%description -n python3-kitchen
kitchen includes functions to make gettext easier to use, handling unicode
text easier (conversion with bytes, outputting xml, and calculating how many
columns a string takes), and compatibility modules for writing code that uses
python-2.7 modules but needs to run on python-2.3.

%files -n python3-kitchen
%doc COPYING README.rst NEWS.rst COPYING.LESSER
%{python3_sitelib}/*


#----------------------------------------------------------------------------

%prep
%setup -q -n kitchen-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7160 |21cr|python-kivy-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module kivy

%global __provides_exclude _img_sdl2.so|properties.so|opengl_utils.so|vertex_instructions.so|opengl.so|stencil_instructions.so|texture.so|c_opengl_debug.so|transformation.so|tesselator.so|_text_sdl2.so|instructions.so|vertex.so|fbo.so|gl_instructions.so|context_instructions.so|_gstplayer.so|context.so|shader.so|vbo.so|_clipboard_sdl2.so|weakproxy.so|scissor_instructions.so|buffer.so|_window_sdl2.so|audio_sdl2.so|svg.so|compiler.so|text_layout.so|_event.so
# try to enable linting
#%%global LC_ALL=en_US.UTF-8

##########
# rpmlint just sucks!!!
# enchant.errors.DefaultLanguageNotFoundError: en_US
%define _build_pkgcheck_set %{nil}
##########

Summary:	Hardware-accelerated multitouch application library
Name:		python-%{module}
Version:	2.1.0
Release:	2
License:	LGPLv3
Group:		Development/Python
Url:		http://kivy.org/
Source0:	https://github.com/kivy/kivy/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildRequires:	xclip
BuildRequires:	python3dist(coverage)
BuildRequires:	python3dist(cython)
BuildRequires:	python3dist(dbus-python)
BuildRequires:	python3dist(docutils)
BuildRequires:	python3dist(mock)
BuildRequires:	python3dist(pillow)
BuildRequires:	python3dist(pyenchant)
BuildRequires:	python3dist(pygments)
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3dist(wheel)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(osmesa)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(x11)
# try to enable linting
# BuildRequires:	locales-en

%description
Kivy is an open source software library for rapid development of applications
that make use of innovative user interfaces, such as multi-touch apps.

#-----------------------------------------------------------

%package -n python3-%{module}
Summary: Hardware-accelerated multitouch application library
Requires:	mtdev
Requires:	xclip
Requires:	python3dist(docutils)
Requires:	python3dist(pillow)
Requires:	python3dist(pyenchant)
Requires:	python3dist(pygments)
Recommends:	python3-opencv

%description -n python3-%{module}
Kivy is an open source software library for rapid development of applications
that make use of innovative user interfaces, such as multi-touch apps.
This is python3 module

%files -n python3-%{module}
%doc AUTHORS
%license LICENSE
%{py3_platsitedir}/kivy
%{py3_platsitedir}/Kivy-%{version}-py*.egg-info
%exclude %{py3_platsitedir}/kivy/include
%exclude %{py3_platsitedir}/kivy/tools/gles_compat/gl2.h

#-----------------------------------------------------------

%package -n python3-%{module}-devel
Summary:	Development files for %{name}
Requires:	python3-%{module} == %{EVRD}

%description -n python3-%{module}-devel
Kivy is a library for development of applications that make use of
user interfaces, such as multi-touch apps.
This package contains the headers and source files for extending kivy.

%files -n python3-%{module}-devel
%doc doc/sources/changelog.rst
%{py3_platsitedir}/kivy/include
%{py3_platsitedir}/kivy/tools/gles_compat/gl2.h

#-----------------------------------------------------------

%package doc
Summary:	Hardware-accelerated multitouch application library - Documentation
Group:		Development/Python
Requires:	python3-%{module} == %{EVRD}

%description doc
Kivy is an open source software library for rapid development of applications
that make use of innovative user interfaces, such as multi-touch apps.

This package contains the developer documentation and examples.

%files doc
%doc doc/build/html
%{_defaultdocdir}/python-kivy/examples

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}
# docs path
sed -i "s|data_file_prefix = 'share/%{module}-'|data_file_prefix = '%{_docdir}/%{name}/'|" setup.py
# remove shebang
sed -i '1{ /^#!/d; }' kivy/tools/kviewer.py	\
	kivy/tools/pep8checker/pep8.py		\
	kivy/tools/pep8checker/pre-commit.githook
# Remove empty file
rm examples/demo/pictures/images/.empty
# do not upper restrict cython dep
sed -i -e 's:0\.29\.10:1.0.0:' setup.py
# Remove content with non-commercial only license
rm -r examples/audio
# fix shebang
sed -i "/^#!/c#!/usr/bin/python3" kivy/tools/image-testsuite/gimp28-testsuite.py
sed -i "/^#!/c#!`which sh`" kivy/tools/image-testsuite/imagemagick-testsuite.sh
# Remove exec bits
find examples -type f -executable -exec chmod -x {} \;
chmod -x examples/demo/showcase/data/screens/'tabbedpanel + layouts.kv'
chmod -x examples/demo/*/*.{py,txt}
chmod -x %{module}/lib/libtess2/*/*.{c,h}
chmod -x examples/keyboard/{numeric.json,main.py,android.txt}
chmod -x examples/settings/main.py
chmod -x kivy/tools/pep8checker/pre-commit.githook

%build
CFLAGS="%{optflags} -fno-strict-aliasing -Wint-to-pointer-cast=0"
%py3_build

# Build HTML documentation
pushd doc
sed -e '/^PYTHON/s/python/python3/' -e '/^SPHINXOPTS/ s/$/ %{?_smp_mflags}/' -i Makefile
export PYTHONPATH=`ls -d ../build/lib*`
make %{?_smp_mflags} PYTHON=python3 html && rm -r build/html/.buildinfo
popd

%install
%py3_install

rm -rf %{buildroot}%{py3_platsitedir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7161 |21cr|python-kivy-garden-0.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module kivy-garden
%define hash 7d/68/decaee596ff8168a39432eb3949fc7c0be952ebb9467806823bffc165d48

Summary:    The kivy garden installation script
Name:       python-%{module}
Version:    0.1.4
Release:    1
Group:      Development/Python
License:    MIT
Url:        https://github.com/kivy-garden
Source:     https://files.pythonhosted.org/packages/7d/68/%{hash}/kivy-garden-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
Provides:       python3-%{module} == %{EVRD}

BuildArch: noarch

%description
The kivy garden installation script,
split into its own package for convenient use in buildozer.

%files
%doc README.md
%{_bindir}/garden
%{py3_puresitedir}/garden/
%{py3_puresitedir}/*.egg-info/

#---------------------------------------------------
%prep
%setup -qn garden-%{version}

%build
%py3_build

%install
%py3_install

rm -fr %{buildroot}%{_bindir}/garden.bat


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7162 |21cr|python-kiwi-3.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# There are no binary files in package itself,
# but we need to place files to arch-specific glade3 libdir
%define debug_package %{nil}


%define module kiwi

Summary:	A framework and a set of enhanced widgets based on PyGTK
Name:		python-kiwi
Version:	3.0.4
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/stoq/kiwi
Source0:	https://github.com/stoq/kiwi/archive/%{version}.tar.gz?/%{module}-gtk-%{version}.tar.gz


%description
kiwi offers a set of enhanced widgets for
Python3 based on PyGTK. It also includes a framework designed to make
creating Python applications using PyGTK and libglade much
simpler.

#-----------------------------------------------------------------------------
%package -n python3-%{module}

Summary:	A framework and a set of enhanced widgets based on PyGTK
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(distribute)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-gi
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(pygobject)
BuildRequires:	gettext
BuildRequires:	intltool

Requires:	typelib(Gdk)



%description -n python3-%{module}
kiwi offers a set of enhanced widgets for
Python3 based on PyGTK. It also includes a framework designed to make
creating Python applications using PyGTK and libglade much
simpler.

%files -n python3-%{module} -f %{module}.lang
%doc AUTHORS COPYING README NEWS
%{_bindir}/*
%{py3_puresitedir}/*.egg-info
%{py3_puresitedir}/kiwi
%{_datadir}/kiwi
%{_libdir}/glade3/*
%{_datadir}/glade3/*
#-----------------------------------------------------------------------------

%package docs
Group:		Development/Python
Summary:	Documentation related to python3-kiwi
Requires:	python3-%{module} = %{EVRD}

BuildArch:	noarch

%description docs
This package contains documentation that contains APIs and related materials,
useful for reference when writing software using Kiwi.

%files docs
%doc COPYING doc/* examples

#-----------------------------------------------------------------------------

%prep
%setup -qn %{module}-gtk-%{version}
sed -i -e 's|share/doc/kiwi|share/doc/%{name}-%{version}|' setup.py

# bundled
rm -fr *.egg-info
# UTF8-ing
for file in examples/{completion,validation/slaves}.py ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
# remove use of /usr/bin/env in docs
sed -i -e 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/g' \
    examples/framework/diary/{diary,diary2}.py


%build
%py3_build

%install
%py3_install

rm -rf %{buildroot}%{_defaultdocdir}

%ifarch x86_64 aarch64
	%if "%{_lib}" != "lib"
	mkdir -p %{buildroot}%{_libdir}
	mv %{buildroot}%{_prefix}/lib/glade3 %{buildroot}%{_libdir}
	%endif
%endif


%find_lang %{module}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7163 |21cr|python-kiwisolver-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module kiwisolver
%define	oname kiwi

%global __provides_exclude 'kiwisolver.so'

Summary:	A fast implementation of the Cassowary constraint solver
Name:		python-%{module}
Version:	1.1.0
Release:	2
Group:		Development/Python
License:	BSD
Url:		https://github.com/nucleic/kiwi
Source0:	https://github.com/nucleic/kiwi/archive/%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pytest
Provides:	python-%{module} = %{EVRD}

%description
Kiwi is an efficient C++ implementation of the Cassowary constraint solving
algorithm. Is is an implementation of the algorithm based on the seminal
Cassowary paper. It is *not* a refactoring of the original C++ solver. It has
been designed from the ground up to be lightweight and fast.
This package provides the module for Python 2.

#-----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A fast implementation of the Cassowary constraint solver
Group:		Development/Python
Provides:	python3-%{module} = %{EVRD}

%description -n python3-%{module}
Kiwi is an efficient C++ implementation of the Cassowary constraint solving
algorithm. Is is an implementation of the algorithm based on the seminal
Cassowary paper. It is *not* a refactoring of the original C++ solver. It has
been designed from the ground up to be lightweight and fast.
This package provides the module for Python 3.

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_platsitedir}/%{module}.cpython-*.so
%{py3_platsitedir}/%{module}-%{version}-py3.?.egg-info/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install


%check
PYTHONPATH="%{buildroot}%{py3_platsitedir}" py.test-%{py3_ver} py/tests/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7164 |21cr|python-klein-21.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name klein

Name:           python-%{pypi_name}
Version:        21.8.0
Release:        1
Summary:        Python microframework built on werkzeug + twisted.web
Group:          Development/Python
License:        MIT
URL:            https://github.com/twisted/klein
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(attrs)
BuildRequires:  python3egg(hyperlink)
BuildRequires:  python3egg(incremental)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(tubes)
BuildRequires:  python3egg(twisted) >= 15.5
BuildRequires:  python3egg(werkzeug)
BuildRequires:  python3egg(zope.interface)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(sphinx-rtd-theme)

%description
Klein is a Web Micro-Framework built on Twisted and Werkzeug.

#-----------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Klein is a Web Micro-Framework built on Twisted and Werkzeug.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
#-----------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:        klein documentation
Group:          Documentation

%description -n python-%{pypi_name}-doc
Documentation for klein

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE
#-----------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build
# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7165 |21cr|python-kombu-3.0.26-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname kombu

Name:           python-%{oname}
Version:        3.0.26
Release:        4
Summary:        AMQP Messaging Framework for Python

Group:          Development/Python
License:        BSD 
URL:            http://pypi.python.org/pypi/%{oname}
Source0:        http://pypi.python.org/packages/source/k/kombu/kombu-%{version}.tar.gz
BuildArch:      noarch

# python3
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(setuptools)

%description
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
for message orientation, queuing, routing, reliability and security.
One of the most popular implementations of AMQP is RabbitMQ.
The aim of Kombu is to make messaging in Python as easy as possible by
providing an idiomatic high-level interface for the AMQP protocol, and
also provide proven and tested solutions to common messaging problems.

############################
%package -n python3-kombu
Summary:        AMQP Messaging Framework for Python3
Group:          Development/Python

Requires:       python3
Requires:       python3egg(amqp) >= 1.4.2

%description -n python3-kombu
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
for message orientation, queuing, routing, reliability and security.
One of the most popular implementations of AMQP is RabbitMQ.
The aim of Kombu is to make messaging in Python as easy as possible by
providing an idiomatic high-level interface for the AMQP protocol, and
also provide proven and tested solutions to common messaging problems.
Python3 module.

%files -n python3-kombu
%doc AUTHORS Changelog FAQ LICENSE READ* THANKS TODO examples/
%{py3_puresitedir}/%{oname}/
%{py3_puresitedir}/%{oname}*.egg-info

###########################

%prep
%setup -q -n %{oname}-%{version}
chmod 644 README.rst

#python3
mkdir -p python3
cp -a {AUTHORS,Changelog,docs,examples,extra,FAQ,funtests,INSTALL,kombu,kombu.egg-info,LICENSE,MANIFEST.in,PKG-INFO,README.rst,requirements,setup.cfg,setup.py,THANKS,TODO} python3

%build
# python3
pushd python3
python3 setup.py build
popd

%install
# python3
pushd python3
python3 setup.py install --skip-build --root %{buildroot}
chmod +x %{buildroot}%{py3_puresitedir}/%{oname}/tests/test_serialization.py
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7166 |21cr|python-leveldb-0.201-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	leveldb

Name:		python-%{oname}
Version:	0.201
Release:	1
Summary:	Python bindings for leveldb database library
Source0:	http://pypi.python.org/packages/source/l/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://code.google.com/p/py-leveldb/
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)

%description
Python bindings for leveldb database library.

%package -n python3-%{oname}
Summary:	Python bindings for leveldb database library

%description -n python3-%{oname}
Python bindings for leveldb database library.


%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%doc README
%{py3_platsitedir}/leveldb*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7167 |21cr|python-libsass-0.20.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname libsass

Name:           python-%{srcname}
Version:        0.20.0
Release:        2
Summary:        Python bindings for libsass
Group:          Development/Python
License:        MIT
URL:            https://github.com/dahlia/libsass-python
Source0:        %{url}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
# Patch for correct naming of manpages
Patch0:         python-libsass-man.patch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-six
BuildRequires:  python3-pytest
BuildRequires:  python3-werkzeug
BuildRequires:  pkgconfig(libsass)
# Needed for docs
BuildRequires:  python3-sphinx

%description
This package provides a simple Python extension module
sass which is binding Libsass (written in C/C++ by Hampton
Catlin and Aaron Leung).

#-------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3-six

%description -n python3-%{srcname}
This package provides a simple Python extension module
sass which is binding Libsass (written in C/C++ by Hampton
Catlin and Aaron Leung).

#-------------------------------------------------------------

%prep
%autosetup -n %{srcname}-python-%{version} -p1
sed -i -e '/^#!\//, 1d' sassc.py

%build
# Export SYSTEM_SASS environment variable to use the
# system library, not the bundled one
export SYSTEM_SASS="true"
%py3_build
pushd docs
# There are differences between Python's naming of arches and the
# %%{_arch} macro. We need to ask Python for the platform name
PLATFORM=$(python3 -c "import sysconfig; print(sysconfig.get_platform())")
export PYTHONPATH=../build/lib.${PLATFORM}-%{python3_version}
make man    SPHINXBUILD=sphinx-build-3
popd

%install
# Same as above
export SYSTEM_SASS="true"
%py3_install
install -m 644 -D docs/_build/man/pysassc.1 %{buildroot}%{_mandir}/man1/pysassc.1

%check
export PYTHONPATH=%{buildroot}%{python3_sitearch}
py.test-3 sasstests.py

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitearch}/__pycache__/*
%{python3_sitearch}/_sass*.so
%{python3_sitearch}/%{srcname}-%{version}-py%{python3_version}.egg-info/
%{python3_sitearch}/sass.py
%{python3_sitearch}/sassc.py
%{python3_sitearch}/pysassc.py
%{python3_sitearch}/sasstests.py
%{python3_sitearch}/sassutils/
%{_mandir}/man1/pysassc.1.*
%{_bindir}/pysassc
# Collides with libsass.
%exclude %{_bindir}/sassc
# Same thing as %%{python3_sitearch}/sassc.py
# Also, we don't want *.py files in bindir.
%exclude %{_bindir}/sassc.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7168 |21cr|python-libsass-0.20.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname libsass

Name:           python-%{srcname}
Version:        0.20.0
Release:        3
Summary:        Python bindings for libsass
Group:          Development/Python
License:        MIT
URL:            https://github.com/dahlia/libsass-python
Source0:        %{url}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
# Patch for correct naming of manpages
Patch0:         python-libsass-man.patch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-six
BuildRequires:  python3-pytest
BuildRequires:  python3-werkzeug
BuildRequires:  pkgconfig(libsass)
# Needed for docs
BuildRequires:  python3-sphinx

%description
This package provides a simple Python extension module
sass which is binding Libsass (written in C/C++ by Hampton
Catlin and Aaron Leung).

#-------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3-six

%description -n python3-%{srcname}
This package provides a simple Python extension module
sass which is binding Libsass (written in C/C++ by Hampton
Catlin and Aaron Leung).

#-------------------------------------------------------------

%prep
%autosetup -n %{srcname}-python-%{version} -p1
sed -i -e '/^#!\//, 1d' sassc.py

%build
# Export SYSTEM_SASS environment variable to use the
# system library, not the bundled one
export SYSTEM_SASS="true"
%py3_build
pushd docs
# There are differences between Python's naming of arches and the
# %%{_arch} macro. We need to ask Python for the platform name
PLATFORM=$(python3 -c "import sysconfig; print(sysconfig.get_platform())")
export PYTHONPATH=../build/lib.${PLATFORM}-%{python3_version}
make man    SPHINXBUILD=sphinx-build-3
popd

%install
# Same as above
export SYSTEM_SASS="true"
%py3_install
install -m 644 -D docs/_build/man/pysassc.1 %{buildroot}%{_mandir}/man1/pysassc.1

%check
export PYTHONPATH=%{buildroot}%{python3_sitearch}
py.test-3 sasstests.py

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitearch}/__pycache__/*
%{python3_sitearch}/_sass*.so
%{python3_sitearch}/%{srcname}-%{version}-py%{python3_version}.egg-info/
%{python3_sitearch}/sass.py
%{python3_sitearch}/sassc.py
%{python3_sitearch}/pysassc.py
%{python3_sitearch}/sasstests.py
%{python3_sitearch}/sassutils/
%{_mandir}/man1/pysassc.1.*
%{_bindir}/pysassc
# Collides with libsass.
%exclude %{_bindir}/sassc
# Same thing as %%{python3_sitearch}/sassc.py
# Also, we don't want *.py files in bindir.
%exclude %{_bindir}/sassc.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7169 |21cr|python-libvirt-3.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libvirt-python

%define module libvirt

Summary:	The libvirt virtualization API python 2 binding
Name:		python-%{module}
Version:	3.10.0
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		http://libvirt.org
Source0:	http://libvirt.org/sources/python/%{oname}-%{version}.tar.gz
Patch0:		libvirt-python-2.2.0-linkage.patch
BuildRequires:	python-lxml
BuildRequires:	python-nose
BuildRequires:	libvirt-utils
BuildRequires:	libvirt-devel >= %{version}
BuildRequires:	pkgconfig(python)

%description
The libvirt-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).

%files
%doc AUTHORS
%{py_platsitedir}/*

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	The libvirt virtualization API python 3 binding
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-lxml
BuildRequires:	python3-nose

%description -n python3-%{module}
The libvirt-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).

%files -n python3-%{module}
%doc AUTHORS
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

# Unset execute bit for example scripts; it can introduce spurious
# RPM dependencies, like /usr/bin/python which can pull in python2
# for the -python3 package
find examples -type f -exec chmod 0644 \{\} \;

cp -a . %{py3dir}

%build
CFLAGS="%{optflags}" python setup.py build

pushd %{py3dir}
CFLAGS="%{optflags}" python3 setup.py build
popd

%install
python setup.py install --skip-build --root=%{buildroot}

pushd %{py3dir}
python3 setup.py install --skip-build --root=%{buildroot}
popd

rm -f %{buildroot}%{_libdir}/python*/site-packages/*egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7170 |21cr|python-libxml2dom-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module libxml2dom

Summary:	A traditional DOM wrapper around the Python bindings for libxml2
Name:		python-%{module}
Version:	0.5
Release:	1
License:	LGPLv3+
Group:		Development/Python
Url:		http://www.boddie.org.uk/python/libxml2dom.html
Source0:	http://www.boddie.org.uk/python/downloads/%{module}-%{version}.tar.bz2

BuildArch:      noarch


%description
The libxml2dom package provides a traditional DOM wrapper around the
Python bindings for libxml2. In contrast to the standard libxml2 bindings,
libxml2dom provides an API reminiscent of minidom, pxdom and other
Python-based and Python-related XML toolkits. Performance is fairly
respectable since libxml2dom makes direct use of libxml2mod - the
low-level wrapping of libxml2 for Python. Moreover, serialisation of
documents is much faster than many other toolkits because libxml2dom
can make direct use of libxml2 rather than employing Python-level
mechanisms to visit and serialise nodes.

#---------------------------------------------
%package -n python3-%{module}
Summary:  A traditional DOM wrapper around the Python3 bindings for libxml2

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-libxml2
Requires:       python3-libxml2

%description -n python3-%{module}
The libxml2dom package provides a traditional DOM wrapper around the
Python bindings for libxml2. In contrast to the standard libxml2 bindings,
libxml2dom provides an API reminiscent of minidom, pxdom and other
Python-based and Python-related XML toolkits. Performance is fairly
respectable since libxml2dom makes direct use of libxml2mod - the
low-level wrapping of libxml2 for Python. Moreover, serialisation of
documents is much faster than many other toolkits because libxml2dom
can make direct use of libxml2 rather than employing Python-level
mechanisms to visit and serialise nodes.

%files -n python3-%{module}
%doc README.txt docs/*.txt docs/libxml2macro.html docs/styles.css
%{_bindir}/libxml2macro.py
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/*.egg-info

#---------------------------------------------


%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install
# drop env
find %{buildroot} -type f -name "*.py" -exec \
    sed -i -e 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/g' {} \;

find %{buildroot}%{py3_puresitedir}/%{module} \
    -type f -name "*.py" -exec chmod +x {} \;


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7171 |21cr|python-linux-procfs-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	python-linux-procfs

Name:		%{oname}
Version:	0.7.1
Release:	1
Summary:	Linux /proc abstraction classes
Source:		https://cdn.kernel.org/pub/software/libs/python/%{name}/%{name}-%{version}.tar.xz
License:	GPLv2
Group:		Development/Python
Url:		http://userweb.kernel.org/python-linux-procfs
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)

%description
Abstractions to extract information from the Linux kernel /proc files.

%package -n python2-linux-procfs
%py2_migration_meta python2-linux-procfs
Summary:	Linux /proc abstraction classes

%description -n python2-linux-procfs
Abstractions to extract information from the Linux kernel /proc files.

%package -n python3-linux-procfs
Summary:	Linux /proc abstraction classes

%description -n python3-linux-procfs
Abstractions to extract information from the Linux kernel /proc files.

%prep
%setup -q -n %{oname}-%{version}

%build
python2 setup.py build
%py3_build

%install
python2 setup.py install --root=%{buildroot}
%py3_install

%files -n python2-linux-procfs
%{_bindir}/pflags
%{py2_puresitedir}/procfs/*.py*
%{py2_puresitedir}/python_linux_procfs*.egg-info

%files -n python3-linux-procfs
%{_bindir}/pflags
%{py3_puresitedir}/procfs/*.py*
%{py3_puresitedir}/procfs/__pycache__*
%{py3_puresitedir}/python_linux_procfs*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7172 |21cr|python-lirc-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname lirc

Summary:	Python lirc module
Name:		python-lirc
Version:	2.0.1
Release:	1
Group:		Development/Python
License:	LGPL
URL:		https://github.com/eugenetriguba/lirc
Source0:	https://files.pythonhosted.org/packages/da/44/565401bf7b12ecc843f3584f3fb46b679398778f2957d97281dfe3ce2d51/lirc-2.0.1.tar.gz
BuildRequires:	lirc-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Python module for lirc support.

#------------------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:	Python 3 lirc module
Group:		Development/Python

%description -n python3-%{pkgname}
Python 3 module for lirc support.

%files -n python3-%{pkgname}
%{python3_sitelib}/*

#------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pkgname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7173 |21cr|python-lit-0.10.0-0.rc1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	lit

Name:		python-%{oname}
Version:	0.10.0
Release:	0.rc1.1
Summary:	A Software Testing Tool
Source0:	https://pypi.python.org/packages/source/l/%{oname}/%{oname}-%{version}rc1.tar.gz
Patch0:		version.patch
License:	BSD
Group:		Development/Python
Url:		http://llvm.org
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel

%description
*lit* is a portable tool for executing LLVM and Clang style test suites,
summarizing their results, and providing indication of failures. *lit* is
designed to be a lightweight testing tool with as simple a user interface as
possible.

%package -n python3-%{oname}
Summary:	A Software Testing Tool

%description -n python3-%{oname}
*lit* is a portable tool for executing LLVM and Clang style test suites,
summarizing their results, and providing indication of failures. *lit* is
designed to be a lightweight testing tool with as simple a user interface as
possible.

%prep
%setup -q -n %{oname}-%{version}rc1
%apply_patches

%build
%py3_build

%install
%py3_install

# Strip out #!/usr/bin/env python
sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{oname}/*.py

%files -n python3-%{oname}
%{_bindir}/lit 
%{py3_puresitedir}/lit
%{py3_puresitedir}/lit*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7174 |21cr|python-livereload-2.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name livereload

Name:           python-%{pypi_name}
Version:	2.6.3
Release:	1
Summary:        Python LiveReload is an awesome tool for web developers
Group:          Development/Python
License:        BSD
URL:            https://github.com/lepture/python-livereload
Source0:	https://files.pythonhosted.org/packages/bd/60/6640b819e858562ef6684abac60593b7369fe0a8a064df426d3ab0ab894d/livereload-2.6.3.tar.gz
BuildArch:      noarch
 
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description
LiveReload This is a brand new LiveReload in version 2.0.0. Installation Python
LiveReload is designed for web developers who know Python.Install Python
LiveReload with pip:: $ pip install livereloadIf you don't have pip installed,
try easy_install:: $ easy_install livereloadCommand Line Interface -Python
LiveReload provides a command line utility, livereload, for starting a server
in a directory.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
 
Requires:       python3dist(setuptools)
Requires:       python3dist(six)
Requires:       python3dist(tornado)

%description -n python3-%{pypi_name}
LiveReload This is a brand new LiveReload in version 2.0.0. Installation Python
LiveReload is designed for web developers who know Python.Install Python
LiveReload with pip:: $ pip install livereloadIf you don't have pip installed,
try easy_install:: $ easy_install livereloadCommand Line Interface -Python
LiveReload provides a command line utility, livereload, for starting a server
in a directory.


%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{_bindir}/livereload
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7175 |21cr|python-livestreamer-1.12.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name livestreamer

Name:           python-%{pypi_name}
Version:        1.12.2
Release:        7
License:        BSD and MIT
Summary:        Extracts streams and pipes them into a video player of choice
Url:            http://livestreamer.tanuki.se/
Group:          Sound
Source:         https://pypi.python.org/packages/source/l/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(requests)
BuildRequires:  python3-singledispatch
BuildRequires:  python3egg(urllib3)
BuildRequires:  dos2unix
Conflicts:      python-%{pypi_name}
BuildArch:      noarch

%description
Livestreamer is a CLI program that extracts streams from various services and
pipes them into a video player of choice.
Livestreamer is built upon a plugin system which allows support for new
services to be easily added.

#--------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Extracts streams and pipes them into a video player of choice
Group:          Sound

%description -n python3-%{pypi_name}
Livestreamer is a CLI program that extracts streams from various services and
pipes them into a video player of choice.
Livestreamer is built upon a plugin system which allows support for new
services to be easily added.

%files -n python3-%{pypi_name}
%doc *.rst LICENSE*
%{_bindir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}_cli
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.egg-info
#-------------------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# edit .py file and use python3
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

# delete version-control-internal-file
find . -name .gitignore -exec rm -f {} \; >/dev/null
# Remove bundled egg-info
rm -rf src/livestreamer.egg-info

%build
%py3_build

pushd build/lib/livestreamer/packages/flashmedia
find . -type f -name "*.py" -exec chmod +x {} \;
popd

%install
%py3_install

# linting
pushd %{buildroot}%{py3_puresitedir}/%{pypi_name}/packages/flashmedia
chmod -x {types,box,amf,compat,ordereddict}.py
sed -i -e 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/g' *.py
popd

pushd %{buildroot}%{py3_puresitedir}/%{pypi_name}/plugins
sed -i -e 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/g' *.py
popd

chmod +x %{buildroot}%{py3_puresitedir}/%{pypi_name}/plugins/tvplayer.py
chmod +x %{buildroot}%{py3_puresitedir}/%{pypi_name}/plugins/tv3cat.py
#

%check
#export PYTHONPATH=%{buildroot}%{py3_puresitedir}
#pushd tests
#python3 -m unittest -vvv test_*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7176 |21cr|python-llfuse-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module llfuse

Name:               python-%{module}
Version:	1.4.2
Release:	1
Summary:            Python Bindings for the low-level FUSE API
Source0:	https://files.pythonhosted.org/packages/23/98/896217af308e3deafae4f6370748d25fa500165f23d4586c3c993ff4e4ed/llfuse-1.4.2.tar.gz
Url:                http://code.google.com/p/python-%{module}/
Group:              Development/Python
License:            LGPLv2+


%description
LLFUSE is a set of Python bindings for the low level FUSE API. It requires at
least FUSE 2.8.0 and supports both Python 2.x and 3.x.

LLFUSE was originally part of S3QL, but has been factored out so that it can be
used by other projects as well. 
#---------------------------------------

%package -n python3-%{module}
Summary:            Python Bindings for the low-level FUSE API
Group:              Development/Python
BuildRequires:  	pkgconfig(libattr)
BuildRequires:  	pkgconfig(fuse)
BuildRequires:  	python3egg(distribute)
BuildRequires:  	pkgconfig(python3)
BuildRequires:  	python3egg(cython)
BuildRequires:  	python3egg(setuptools)
BuildRequires:  	python3egg(pytest)



%description -n python3-%{module}
LLFUSE is a set of Python bindings for the low level FUSE API. It requires at
least FUSE 2.8.0 and supports both Python 2.x and 3.x.

LLFUSE was originally part of S3QL, but has been factored out so that it can be
used by other projects as well.

This is a package for python3

%files -n python3-%{module}
%doc doc/html LICENSE *.rst
%{py3_platsitedir}/llfuse*.so
%{py3_platsitedir}/llfuse*.egg-info
#---------------------------------------

%prep
%setup -qn %{module}-%{version}
rm doc/html/.buildinfo

# remove bundled
rm -rf src/llfuse.egg-info
rm $(grep -rl '/\* Generated by Cython')

#UTF-8
for file in doc/html/objects.inv ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done



%build
# cythonize first
python3 setup.py build_cython

%py3_build

%install
%py3_install

%check
# fail on abf
###PYTHONPATH=%{buildroot}%{py3_platsitedir} pytest-3 -v test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7177 |21cr|python-logbook-1.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name Logbook

Name:           python-logbook
Version:	1.5.3
Release:	1
Group:          Development/Python
Summary:        A logging replacement for Python

License:        BSD
Url:		https://pypi.org/project/Logbook/
Source0:	https://files.pythonhosted.org/packages/2f/d9/16ac346f7c0102835814cc9e5b684aaadea101560bb932a2403bd26b2320/Logbook-1.5.3.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

# to generate .c
BuildRequires:	python3-cython

%description
An awesome logging implementation that is fun to use.

%package -n     python3-logbook
Summary:        A logging replacement for Python

%description -n python3-logbook
An awesome logging implementation that is fun to use.

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%{_bindir}/cython logbook/_speedups.pyx
%py3_build

%install
%py3_install


%files -n python3-logbook
%doc LICENSE
%doc README.md
%{py3_platsitedir}/logbook/
%{py3_platsitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7178 |21cr|python-logging-0.4.9.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	logging
%define dname	%{oname}-%{version}

Name:		python-%{oname}
Summary:	Fast Python module for rational numbers

Version:	0.4.9.6
Release:	8
Source0:	http://www.red-dove.com/%{dname}.tar.gz
License:	MIT
Group:		Development/Python
URL:		http://www.red-dove.com/python_logging.html
BuildRequires:	python2-devel
BuildArch:	noarch

%description
This is a python2 module that implements a full-featured logging system
in line with PEP 282 (comparable to java.util.logging, log4j, etc.).

%package -n python2-%{oname}
Summary:	Fast Python module for rational numbers

%description -n python2-%{oname}
This is a python module that implements a full-featured logging system
in line with PEP 282 (comparable to java.util.logging, log4j, etc.).


%prep
%setup -q -n %{dname}

%build
python2 setup.py build

%install
python2 setup.py install --root %{buildroot}  --compile --optimize=2

%files -n python2-%{oname}
%doc README.txt LICENSE PKG-INFO python_logging.html default.css
%{py2_puresitedir}/%{oname}
%{py2_puresitedir}/%{oname}-%{version}-py%{py2_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7179 |21cr|python-logging-tree-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name logging-tree
%global mod_name logging_tree

Name:		python-%{pypi_name}
Version:	1.9
Release:	1
Summary:	Introspect and display the logger tree inside "logging"
Group:		Development/Python
License:	BSD
URL:		https://github.com/brandon-rhodes/logging_tree
Source0:	https://github.com/brandon-rhodes/logging_tree/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Introspection for the 'logging' logger tree in the Standard Library.

While you can write programs that call this package's 'tree()'
function and examine the hierarchy of logger objects that it finds
inside of the Standard Library 'logging' module, the simplest use of
this package for debugging is to call 'printout()' to print the
loggers, filters, and handlers that your application has configured::

    >>> logging.getLogger('a')
    >>> logging.getLogger('a.b').setLevel(logging.DEBUG)
    >>> logging.getLogger('x.c')
    >>> from logging_tree import printout
    >>> printout()
       ""
       Level WARNING
       |
       o<--"a"
       |   |
       |   o<--"a.b"
       |       Level DEBUG
       |
       o<--[x]
           |
           o<--"x.c"

%package -n python3-%{pypi_name}
Summary:            Introspect and display the logger tree inside "logging"

BuildRequires:      python3-devel
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
Introspection for the ``logging`` logger tree in the Standard Library.

While you can write programs that call this package's ``tree()``
function and examine the hierarchy of logger objects that it finds
inside of the Standard Library ``logging`` module, the simplest use of
this package for debugging is to call ``printout()`` to print the
loggers, filters, and handlers that your application has configured::

    >>> logging.getLogger('a')
    >>> logging.getLogger('a.b').setLevel(logging.DEBUG)
    >>> logging.getLogger('x.c')
    >>> from logging_tree import printout
    >>> printout()
       ""
       Level WARNING
       |
       o<--"a"
       |   |
       |   o<--"a.b"
       |       Level DEBUG
       |
       o<--[x]
           |
           o<--"x.c"

%prep
%autosetup -n %{mod_name}-%{version}

%build
%py3_build

%install
%py3_install

# Need fixing upstream
#%check
#%{__python3} -v -m unittest discover %{mod_name}

%files -n python3-%{pypi_name}
%doc README.md
%doc COPYRIGHT 
%{py3_puresitedir}/%{mod_name}/
%{py3_puresitedir}/%{mod_name}-%{version}-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7180 |21cr|python-lsp-black-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name lsp-black

%global _description %{expand:
lsp-black is a python-lsp-server plugin that adds support to black
autoformatter. This is forked from pyls-black to be compatible wth
community maintained language-server (python-lsp-server).
}

Name:           python-%{short_name}
Version:        1.2.1
Release:        1
Summary:        A python-lsp-server plugin that adds support to black autoformatter
Group:          Development/Python
License:        MIT
URL:            https://github.com/python-lsp/%{name}
Source0:        %{pypi_source}
Source1:        LICENSE

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description %_description

#----------------------------------------------------
%package -n     python3-%{short_name}
Summary:        %{summary}
Group:          Development/Python
Supplements:    python3dist(python-lsp-server)

%description -n python3-%{short_name} %_description

%files -n python3-%{short_name} -f %{pyproject_files}
%license LICENSE
%doc README.md

#----------------------------------------------------

%prep
%autosetup -n %{name}-%{version}
cp %{SOURCE1} LICENSE

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

%pyproject_save_files pylsp_black

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7181 |21cr|python-lsp-jsonrpc-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name python-lsp-jsonrpc

%global _description %{expand:
A python server implementation of JSON RPC 2.0 protocol. This library
has been pulled out of the python LSP server project (a community maintained
fork of python-language-server).
}

Name:           python-lsp-jsonrpc
Version:        1.0.0
Release:        1
Summary:        Python implementation of JSON RPC 2.0 protocol
Group:          Development/Python
License:        MIT
URL:            https://github.com/python-lsp/python-lsp-jsonrpc
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description %_description

#---------------------------------------------------------
%package -n     python3-lsp-jsonrpc
Summary:        %{summary}
Group:          Development/Python

%description -n python3-lsp-jsonrpc %_description

%files -n python3-lsp-jsonrpc -f %{pyproject_files}
%license LICENSE
%doc README.md

#---------------------------------------------------------
%prep
%autosetup -n %{name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

%pyproject_save_files pylsp_jsonrpc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7182 |21cr|python-lsp-server-1.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name lsp-server

%global _description %{expand:
A python implementation of language server protocol. pylsp provides for 
auto-completion, code linting (via pycodestyle and pyflakes) and other features.

This package provides the python-language-server package maintained by 
spyder-IDE maintainers.
}

Name:           python-%{short_name}
Version:        1.7.2
Release:        1
Summary:        Python implementation of language server protocol
Group:          Development/Python
License:        MIT
URL:            https://github.com/python-lsp/%{name}
Source0:        %{pypi_source}
# new lsp-server >1.5.0 use setuptools >61.2, we have in repo setuptools = 57.4
# backport setup.cfg from lsp-server 1.4.1 and use it for build
Source1:        setup.cfg
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-toml
BuildRequires:  python3-wheel

%description %_description

#------------------------------------------------------
%package -n     python3-%{short_name}
Summary:        %{summary}
Group:          Development/Python
Provides:       pylsp = %{version}-%{release}
Requires:       python3dist(autopep8)
Requires:       python3dist(flake8)
Requires:       python3dist(mccabe)
Requires:       python3dist(pycodestyle)
Requires:       python3dist(pydocstyle)
Requires:       python3dist(pyflakes)
Requires:       python3dist(pylint)
Requires:       python3dist(rope)
Requires:       python3dist(yapf)


%description -n python3-%{short_name} %_description

%files -n python3-%{short_name}
%license LICENSE
%doc README.md
%{_bindir}/pylsp
%{python3_sitelib}/pylsp
%{python3_sitelib}/python_lsp_server-%{version}-py*.egg-info

#------------------------------------------------------
%prep
%autosetup -n %{name}-%{version}
cp -f %{SOURCE1} ./

%build
%py3_build

%install
%py3_install

# drop uneeded test
rm -rf %{buildroot}%{python3_sitelib}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7183 |21cr|python-ly-0.9.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	build_doc	1

Summary:	Tool and library for manipulating LilyPond files
Name:		python-ly
Version:	0.9.7
Release:	2
Group:		Development/Python
License:	GPLv2+
Url:			https://pypi.python.org/pypi/%{name}
Source0:	https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
Patch0:		python_ly-0.9.4-fix-html-theme-with-sphinx3.patch
Patch1:		python_ly-0.9.7-add-new-lilypond-words.patch
Patch2:		python_ly-0.9.7-fix-shebang.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sphinx)
BuildArch:	noarch

%description
This package provides a Python library containing various Python modules to
parse, manipulate or create documents in LilyPond format. A command line
program is also provided that can be used to do various manipulations with
LilyPond files.
This package allows for use of python-ly with Python 3.

#-------------------------------------------------------------------------
%package -n python3-ly
Summary:	Tool and library for manipulating LilyPond files
Group:		Development/Python
Requires:	python3-setuptools
Requires:	python3-tkinter
# provides not autogenerated
Provides:	python3egg(ly) = %{EVRD}
Provides:	python3egg(python-ly) = %{EVRD}
Provides:	python3dist(ly) = %{EVRD}
Provides:	python3dist(python-ly) = %{EVRD}
Provides:	python%{py3_ver}dist(ly) = %{EVRD}
Provides:	python%{py3_ver}dist(python-ly) = %{EVRD}


%description -n python3-ly
This package provides a Python library containing various Python modules to
parse, manipulate or create documents in LilyPond format. A command line
program is also provided that can be used to do various manipulations with
LilyPond files.
This package allows for use of python-ly with Python 3.

%files -n python3-ly
%doc ChangeLog README.rst
%if %{build_doc}
%doc doc/build/html/*
%{_mandir}/man1/*.1*
%endif
%{_bindir}/ly
%{_bindir}/ly-server
%{py3_puresitedir}/ly/*
%{py3_puresitedir}/python_ly-%{version}-py*.egg-info/*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

rm -r *.egg-info

%build
%py3_build

%if %{build_doc}
pushd doc
	make html
	make man
# Leftover from doc build
	rm -f build/html/.buildinfo
popd
%endif


%install
%py3_install

# Man pages don't get installed by default
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 doc/build/man/*.1 %{buildroot}%{_mandir}/man1

# Fix perms to silence rpmlint warning
chmod +x %{buildroot}%{py3_puresitedir}/ly/data/makeschemedata.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7184 |21cr|python-lzo-1.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	LZO bindings for Python
Name:		python-lzo
Version:	1.12
Release:	1
License:	GPLv2
Group:		Development/Python
Url:		https://github.com/jd-boyd/python-lzo
Source0:	https://files.pythonhosted.org/packages/source/p/python-lzo/python-lzo-%{version}.tar.gz

BuildRequires:	 pkgconfig(lzo2)
BuildRequires:	 pkgconfig(python3)
BuildRequires:	 python3egg(pytest)
Provides:       python3-lzo == %{EVRD}

%description
Python-LZO provides Python bindings for LZO, i.e. you can access
the LZO library from your Python scripts thereby compressing ordinary
Python strings.

%files
%doc NEWS COPYING
%{py3_platsitedir}/lzo.cpython-??-*-linux-gnu.so
%{py3_platsitedir}/python_lzo*egg-info


%prep
%setup -q


%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{py3_platsitedir} pytest-3 tests/test.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7185 |21cr|python-m2ext-0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname m2ext

# The pkgconfig bit in this spec file was taken from m2crypto.spec
# https://apps.fedoraproject.org/packages/m2crypto/sources/spec/

Name:           python-m2ext
Version:        0.1
Release:        4
Summary:        M2Crypto Extensions

Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/%{modname}
Source0:        http://pypi.python.org/packages/source/m/%{modname}/%{modname}-%{version}.tar.gz

BuildRequires:  python2-devel
BuildRequires:  openssl-devel
BuildRequires:  swig
BuildRequires:  pkgconfig
BuildRequires:  python2-m2crypto

Requires:       python2-m2crypto


%description
This package contains some extended functions which are not (yet)
available in M2Crypto http://chandlerproject.org/Projects/MeTooCrypto>
trunk.

%package -n python2-m2ext
%py2_migration_meta python2-m2ext
Summary:        M2Crypto Extensions

%description -n python2-m2ext
This package contains some extended functions which are not (yet)
available in M2Crypto http://chandlerproject.org/Projects/MeTooCrypto>
trunk.


%prep
%setup -q -n %{modname}-%{version}

%build
CFLAGS="%{optflags}" ; export CFLAGS
if pkg-config openssl ; then
    CFLAGS="$CFLAGS `pkg-config --cflags openssl`" ; export CFLAGS
    LDFLAGS="$LDFLAGS`pkg-config --libs-only-L openssl`" ; export LDFLAGS
fi

%py2_build 

%install
python2 setup.py install -O1 --skip-build --root %{buildroot}
chmod 755 %{buildroot}/%{py2_platsitedir}/%{modname}/_m2ext.so

%files -n python2-m2ext
%doc README.rst LICENSE
%{py2_platsitedir}/%{modname}
%{py2_platsitedir}/%{modname}-%{version}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7186 |21cr|pythonmagick-0.9.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname PythonMagick

Name:       pythonmagick
Version:    0.9.19
Release:    2
Summary:    Python interface to ImageMagick
Group:      Development/Python
License:    ImageMagick

URL:        http://www.imagemagick.org/script/develop.php#python
Source0:    http://www.imagemagick.org/download/python/%{oname}-%{version}.tar.xz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-numpy-devel
BuildRequires:  pkgconfig(Magick++)
BuildRequires:  libtool
BuildRequires:  pkgconfig(xt)
BuildRequires:  boost-devel

%description
PythonMagick is an object-oriented Python interface to ImageMagick.

%prep
%setup -q -n %{oname}-%{version}

%build
%configure --disable-static
make

%install
%makeinstall_std

find %{buildroot} -name "*.la" -delete

%files
%doc README ChangeLog LICENSE
%{python3_sitearch}/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7187 |21cr|python-manuel-1.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-manuel
Version:	1.10.1
Release:	1
Summary:	Build tested documentation
Group:		Development/Python
License:	ASL 2.0
URL:		https://pypi.python.org/pypi/manuel
Source0:	https://pypi.python.org/packages/source/m/manuel/manuel-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools 
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3-devel
Requires:	python3egg(six)

%description
Manuel lets you mix and match traditional doctests with custom test
syntax.  Several plug-ins are included that provide new test syntax.
You can also create your own plug-ins.
#------------------------------------------------------------------
%package -n python3-manuel
Summary:	Build tested documentation
Group:		Development/Python

%description -n python3-manuel
Manuel lets you mix and match traditional doctests with custom test
syntax.  Several plug-ins are included that provide new test syntax.
You can also create your own plug-ins.

%files -n python3-manuel
%doc docs
%{py3_puresitedir}/*

#------------------------------------------------------------------
%prep
%setup -q -n manuel-%{version}
rm -fr src/manuel.egg-info

%build
%py3_build

# Build the documentation, then remove leftover build files
sphinx-build -c sphinx src/manuel docs
rm -fr docs/.buildinfo docs/.doctrees


%install
%py3_install

# Remove text files that are included as HTML in docs
rm -f %{buildroot}%{python3_sitelib}/manuel/*.txt

%check
python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7188 |21cr|python-markdown-it-py-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name markdown-it-py

Name:           python-%{pypi_name}
Version:        2.1.0
Release:        1
Summary:        Python port of markdown-it
Group:          Development/Python
License:        MIT
URL:            https://github.com/executablebooks/markdown-it-py
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%global _description %{expand:
Markdown parser done right. Its features:
Follows the CommonMark spec for baseline parsing.
Has configurable syntax: you can add new rules and even replace existing ones.
Pluggable: Adds syntax extensions to extend the parser.
High speed & safe by default
}

%description %_description

#----------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %_description

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md
%license LICENSE*
%{_bindir}/markdown-it
#----------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove unnecessary shebang
sed -i '1{\@^#!/usr/bin/env python@d}' markdown_it/cli/parse.py
# Remove coverage (it resides in testing extra which we want to use)
# Upstream issue to move those to another extra:
# https://github.com/executablebooks/markdown-it-py/issues/195
sed -i '/"coverage",/d' pyproject.toml
sed -i '/"pytest-cov",/d' pyproject.toml

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files markdown_it


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7189 |21cr|python-marshmallow-3.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstream_name marshmallow
%global _docdir  %{_datadir}/doc

Name:           python-%{upstream_name}
Version:        3.0.5
Release:        1
Summary:        Python library for converting complex datatypes to and from primitive types
Group:          Development/Python
License:        MIT
URL:            http://marshmallow.readthedocs.org/
# Using Github instead of PyPI because the PyPI tarballs don't include tests,
# docs, or examples, and upstream does not want to change that.
# https://github.com/marshmallow-code/marshmallow/issues/201
Source0:        https://github.com/marshmallow-code/marshmallow/archive/%{version}/%{upstream_name}-%{version}.tar.gz
# remove dependency on bundled ordered_set
Patch0:         ordered_set.patch

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
# for tests
BuildRequires:  python3-pytest
BuildRequires:  python3-pytz
BuildRequires:  python3-dateutil
BuildRequires:  python3-ordered-set
BuildRequires:  python3-tox
BuildRequires:  python3-simplejson

%description
Marshmallow is a framework-agnostic library for converting complex datatypes,
such as objects, to and from primitive Python datatypes.

Marshmallow schemas can be used to:
* Validate input data.
* Deserialize input data to app-level objects.
* Serialize app-level objects to primitive Python types. The serialized objects
  can then be rendered to standard formats such as JSON for use in an HTTP API.

%package -n python3-%{upstream_name}
Summary:        Python 3 library for converting complex datatypes to and from primitive types
Group:          Development/Python
Requires:       python3-dateutil
Requires:       python3-ordered-set

%description -n python3-%{upstream_name}
Marshmallow is a framework-agnostic library for converting complex datatypes,
such as objects, to and from primitive Python datatypes.

Marshmallow schemas can be used to:
* Validate input data.
* Deserialize input data to app-level objects.
* Serialize app-level objects to primitive Python types. The serialized objects
  can then be rendered to standard formats such as JSON for use in an HTTP API.

%package -n python3-%{upstream_name}-doc
Summary: Documentation for python3-%{upstream_name}
Group: Development/Python
BuildArch: noarch

%description -n python3-%{upstream_name}-doc
Documentation for %{name}.


%prep
%autosetup -n %{upstream_name}-%{version} -p1

# remove bundled library
# instead of orderedsett we patch code to usu python-ordered-set
# ordereddict.py is used only for compatibility with python2.6,
# which we do not need
rm -f ./marshmallow/ordereddict.py ./marshmallow/orderedset.py


%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_docdir}/python3-%{upstream_name}
cp -a docs/* examples %{buildroot}%{_docdir}/python3-%{upstream_name}/

%check
python3 setup.py test

%files -n python3-%{upstream_name}
%doc CHANGELOG.rst AUTHORS.rst README.rst
%exclude %{_docdir}/python3-%{upstream_name}/*
%doc LICENSE
%{py3_puresitedir}/%{upstream_name}
%{py3_puresitedir}/%{upstream_name}*.egg-info

%files -n python3-%{upstream_name}-doc
%doc LICENSE
%doc %{_docdir}/python3-%{upstream_name}
%exclude %{_docdir}/python3-%{upstream_name}/CHANGELOG.rst
%exclude %{_docdir}/python3-%{upstream_name}/AUTHORS.rst
%exclude %{_docdir}/python3-%{upstream_name}/README.rst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7190 |21cr|python-matplotlib-inline-0.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name matplotlib-inline

Name:           python-matplotlib-inline
Version:        0.1.6
Release:        1
Summary:        Inline Matplotlib backend for Jupyter
Group:          Development/Python
License:        BSD
URL:            https://github.com/ipython/matplotlib-inline
Source0:        %{pypi_source matplotlib-inline}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description
Inline Matplotlib backend for Jupyter

#-------------------------------------------------------
%package -n     python3-matplotlib-inline
Summary:        %{summary}
Group:          Development/Python

%description -n python3-matplotlib-inline
Inline Matplotlib backend for Jupyter

%files -n python3-matplotlib-inline -f %{pyproject_files}
%license LICENSE
%doc README.md

#-------------------------------------------------------
%prep
%autosetup -n matplotlib-inline-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files matplotlib_inline

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7191 |21cr|python-mcrypt-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: python-mcrypt
Version: 1.1
Release: 10
Source0: %{name}-%{version}.tar.bz2
Summary: Comprehensive Python interface to the mcrypt library
License: GPL
Group: Development/Python
Url: http://labix.org/python-mcrypt
Requires: python2 
BuildRequires: python2-devel
BuildRequires: libmcrypt-devel


%description
Python-mcrypt is a comprehensive Python interface to the mcrypt library, which
provides a uniform interface to several symmetric encryption algorithms.

%package -n python2-mcrypt
Summary: Comprehensive Python interface to the mcrypt library

%description -n python2-mcrypt
Python-mcrypt is a comprehensive Python interface to the mcrypt library, which
provides a uniform interface to several symmetric encryption algorithms.


%prep
%setup -q

%build
python2 setup.py build

%install
python2 setup.py install --root %buildroot

%files -n python2-mcrypt
%doc LICENSE NEWS AUTHORS
%py2_platsitedir/mcrypt.so
%py2_platsitedir/python_mcrypt-*info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7192 |21cr|python-mdit-py-plugins-0.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name mdit-py-plugins

Name:           python-%{pypi_name}
Version:        0.3.3
Release:        1
Summary:        Collection of plugins for markdown-it-py
Group:          Development/Python
# Both the package and its plugins are licensed under MIT
License:        MIT
URL:            https://github.com/executablebooks/mdit-py-plugins
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(pytest)

%global _description %{expand:
Collection of core plugins for markdown-it-py.
}

%description %_description

#--------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %_description

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.md

#--------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files mdit_py_plugins

%check
# Skip tests using pytest-regression which is not available in Fedora
%pytest -k "not test_plugin_parse and not test_no_new_line_issue and not test_tokens"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7193 |21cr|python-mdp-3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name MDP

Summary:	Modular Data Processing Toolkit for Python

Name:		python-mdp
Version:	3.6
Release:	1
Source0:	%{pypi_source}
Source1:	MDP-tutorial.pdf
License:	BSD
Group:		Development/Python
Url:		http://mdp-toolkit.sourceforge.net
BuildArch:	noarch
BuildRequires:	python3-numpy-devel
BuildRequires:	python3-devel


%description
Modular toolkit for Data Processing (MDP) is a Python data processing
framework.

From the user's perspective, MDP is a collection of supervised and
unsupervised learning algorithms and other data processing units that
can be combined into data processing sequences and more complex
feed-forward network architectures.

From the scientific developer's perspective, MDP is a modular
framework, which can easily be expanded. The implementation of new
algorithms is easy and intuitive. The new implemented units are then
automatically integrated with the rest of the library.

The base of available algorithms is steadily increasing and includes
signal processing methods (Principal Component Analysis, Independent
Component Analysis, Slow Feature Analysis), manifold learning methods
([Hessian] Locally Linear Embedding), several classifiers,
probabilistic methods (Factor Analysis, RBM), data pre-processing
methods, and many others.

#---------------------------------------------------------------
%package -n python3-mdp
Summary:	Modular Data Processing Toolkit for Python
Group:		Development/Python
Requires:	python3-numpy
Requires:	python3-scipy

%description -n python3-mdp
Modular toolkit for Data Processing (MDP) is a Python data processing
framework.

From the user's perspective, MDP is a collection of supervised and
unsupervised learning algorithms and other data processing units that
can be combined into data processing sequences and more complex
feed-forward network architectures.

From the scientific developer's perspective, MDP is a modular
framework, which can easily be expanded. The implementation of new
algorithms is easy and intuitive. The new implemented units are then
automatically integrated with the rest of the library.

The base of available algorithms is steadily increasing and includes
signal processing methods (Principal Component Analysis, Independent
Component Analysis, Slow Feature Analysis), manifold learning methods
([Hessian] Locally Linear Embedding), several classifiers,
probabilistic methods (Factor Analysis, RBM), data pre-processing
methods, and many others.

%files -n python3-mdp
%doc README CHANGES COPY* TODO *.pdf
%{py3_puresitedir}/*

#---------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

rm -r *.egg-info

cp -p %{SOURCE1} .

#fix permissions
find . -name \*.py | xargs chmod -x
chmod -x {COPYRIGHT,PKG-INFO,README,CHANGES,MANIFEST.in,pytest.ini,setup.cfg,TODO}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7194 |21cr|python-mdurl-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name mdurl

Name:           python-mdurl
Version:        0.1.2
Release:        1
Summary:        Markdown URL utilities
Group:          Development/Python
License:        MIT
URL:            https://github.com/hukkin/mdurl
Source0:        %{url}/archive/%{version}/mdurl-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%global _description %{expand:
URL utilities for markdown-it parser.}


%description %_description

#---------------------------------------------------
%package -n     python3-mdurl
Summary:        %{summary}
Group:          Development/Python

%description -n python3-mdurl %_description

%files -n python3-mdurl -f %{pyproject_files}
%doc README.md
%license LICENSE

#---------------------------------------------------
%prep
%autosetup -p1 -n mdurl-%{version}

# Remove coverage from the test requirements
sed -i "s/pytest-cov//" tests/requirements.txt


%generate_buildrequires
%pyproject_buildrequires tests/requirements.txt


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files mdurl


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7195 |21cr|python-metaextract-1.0.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define mod_name metaextract
%define pypi_name metaextract

Summary:	Get metadata for python modules
Name:		python-%{mod_name}
Version:	1.0.9
Release:	2
License:	Apache-2.0
Group:		Development/Python
Url:		http://github.com/toabctl/metaextract
Source0:	https://files.pythonhosted.org/packages/source/m/metaextract/metaextract-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-flake8
BuildRequires:	python3-mock
BuildRequires:	python3-setuptools
BuildRequires:	python3-pytest
BuildArch:	noarch

%description
Get metadata for python modules.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Get metadata for python modules
Group:		Development/Python

%description -n python3-%{pypi_name}
Get metadata for python modules.

%files -n python3-%{pypi_name}
%doc README.rst
%{_bindir}/metaextract
%{py3_puresitedir}/%{mod_name}
%{py3_puresitedir}/%{mod_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7196 |21cr|python-milter-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pymilter
%define	module	milter

Name:		python-%{module}
Version:	1.0
Release:	1
Summary:	Python interface to sendmail milter API
Source0:	https://files.pythonhosted.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
License:	GPL
Group:		Development/Python
Url:		https://pythonhosted.org/%{module}/
BuildRequires:	milter-devel
BuildRequires:	python2-devel
Requires:		python2-dns

%description
This is a python2 extension module to enable python scripts to
attach to sendmail's libmilter functionality.  Additional python
modules provide for navigating and modifying MIME parts, and
sending DSNs or doing CBVs.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Python interface to sendmail milter API

%description -n python2-%{module}
This is a python extension module to enable python scripts to
attach to sendmail's libmilter functionality.  Additional python
modules provide for navigating and modifying MIME parts, and
sending DSNs or doing CBVs.


%prep
%setup -q -n %{oname}-%{version}

%build
%py2_build

%install
%py2_install

%files -n python2-%{module}
%doc CREDITS ChangeLog NEWS README TODO
%{py2_platsitedir}/Milter
%{py2_platsitedir}/mime.py*
%{py2_platsitedir}/%{module}.so
%{py2_platsitedir}/%{oname}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7197 |21cr|python-minimock-1.2.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-minimock
Version:        1.2.8
Release:        6
Summary:        The simplest possible mock library
Group:          Development/Python
License:        MIT
URL:            http://pypi.python.org/pypi/MiniMock
Source0:        http://pypi.python.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz
BuildArch:	noarch

%description
Minimock is a simple lbirary for doing Mock objects with doctest.

%package -n python2-minimock
%py2_migration_meta python2-minimock
Summary:        The simplest possible mock library
Group:          Development/Python
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

%description -n python2-minimock
Minimock is a simple lbirary for doing Mock objects with doctest.


%package -n python3-minimock
Summary:        The simplest possible mock library
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-minimock
Minimock is a simple lbirary for doing Mock objects with doctest.

%prep
%setup -q -n MiniMock-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}

%build

%install
pushd %{py3dir}
%{__python3} setup.py install --root=%{buildroot}
popd
python2 setup.py install --root=%{buildroot}

%files -n python2-minimock
%doc docs/*
%{py2_puresitedir}/MiniMock-%{version}-py?.?.egg-info
%{py2_puresitedir}/minimock*

%files -n python3-minimock
%doc docs/*
%{py3_puresitedir}/MiniMock-%{version}-py?.?.egg-info
%{py3_puresitedir}/minimock*
%{py3_puresitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7198 |21cr|python-mmtf-1.1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#check need internet connection
%bcond_with check

%global pypi_name mmtf-python

Name:		python-mmtf
Version:	1.1.3
Release:	3
Group:		Development/Python
Summary:	A decoding library for the macromolecular transmission format (MMTF) 
License:	ASL 2.0
URL:		https://github.com/rcsb/mmtf-python
Source0:	https://files.pythonhosted.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
The Macromolecular Transmission Format (MMTF) is a new compact binary format
to transmit and store biomolecular structures for fast 3D visualization and
analysis.

Bradley AR, Rose AS, Pavelka A, Valasatava Y, Duarte JM, Prlić A, Rose PW
(2017) MMTF - an efficient file format for the transmission, visualization, and
analysis of macromolecular structures. bioRxiv 122689. doi: 10.1101/122689

Valasatava Y, Bradley AR, Rose AS, Duarte JM, Prlić A, Rose PW (2017) Towards
an efficient compression of 3D coordinates of macromolecular structures. PLOS
ONE 12(3): e0174846. doi: 10.1371/journal.pone.01748464

Rose AS, Bradley AR, Valasatava Y, Duarte JM, Prlić A, Rose PW (2016) Web-based
molecular graphics for large complexes. In Proceedings of the 21st
International Conference on Web3D Technology (Web3D '16). ACM, New York, NY,
USA, 185-186.
doi: 10.1145/2945292.2945324

%package -n python3-mmtf
Summary:	%{summary}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
%if %{with check}
BuildRequires:	python3-msgpack
BuildRequires:	python3-nose
BuildRequires:	python3-numpy
%endif
Requires:	python3-msgpack

%description -n python3-mmtf
The Macromolecular Transmission Format (MMTF) is a new compact binary format
to transmit and store biomolecular structures for fast 3D visualization and
analysis.

Bradley AR, Rose AS, Pavelka A, Valasatava Y, Duarte JM, Prlić A, Rose PW
(2017) MMTF - an efficient file format for the transmission, visualization, and
analysis of macromolecular structures. bioRxiv 122689. doi: 10.1101/122689

Valasatava Y, Bradley AR, Rose AS, Duarte JM, Prlić A, Rose PW (2017) Towards
an efficient compression of 3D coordinates of macromolecular structures. PLOS
ONE 12(3): e0174846. doi: 10.1371/journal.pone.01748464

Rose AS, Bradley AR, Valasatava Y, Duarte JM, Prlić A, Rose PW (2016) Web-based
molecular graphics for large complexes. In Proceedings of the 21st
International Conference on Web3D Technology (Web3D '16). ACM, New York, NY,
USA, 185-186.
doi: 10.1145/2945292.2945324


%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with check}
%check
nosetests-%{python3_version}
%endif

%files -n python3-mmtf
%doc LICENSE.txt
%doc CHANGELOG.md README.md
%{py3_puresitedir}/mmtf_python-%{version}-py%{python3_version}.egg-info
%{py3_puresitedir}/mmtf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7199 |21cr|python-module-config-0.3.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname config
%define pkgname module-config

Name:		python-module-config
Version:	0.3.9
Release:	1
License:	GPL
Summary:	A module for configuring Python programs which aims to offer more power and flexibility than the existing ConfigParser module
Group:		Development/Python
URL:		http://www.red-dove.com/python_config.html
Source0:	config-%{version}.tar.gz
BuildArch:	noarch

#BuildRequires: python3-module-setuptools

%description
A module for configuring Python programs which aims to offer more power and flexibility than the existing ConfigParser module. 
Python programs which are designed as a hierarchy of components can use config to configure their various components in a uniform way.

#------------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:	A module for configuring Python programs which aims to offer more power and flexibility than the existing ConfigParser module
Group:		Development/Python

%description -n python3-%{pkgname}
A module for configuring Python programs which aims to offer more power and flexibility than the existing ConfigParser module. 
Python programs which are designed as a hierarchy of components can use config to configure their various components in a uniform way.

%files -n python3-%{pkgname}
%doc README.txt LICENSE
%{python3_sitelib}/config.*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/config-*.egg-info

#------------------------------------------------------------------
%prep
%setup  -q -n config-%{version}

%build
2to3 -w .
2to3 -w -d .
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7200 |21cr|python-money-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name money

Name:		python-money
Version:	1.3.0
Release:	1
Group:		Development/Python
Summary:	Python Money Class
Url:		https://pypi.org/project/money/

License:	MIT
Source0:	https://pypi.python.org/packages/source/m/money/money-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	python3-devel

%description
Money class with optional CLDR-backed locale-aware formatting and an
extensible currency exchange solution.

%package -n	python3-%{pypi_name}
Summary:	Python Money Class

%description -n python3-%{pypi_name}
Money class with optional CLDR-backed locale-aware formatting and an
extensible currency exchange solution.

%prep
%setup -q -n %{pypi_name}-%{version}
find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
python3 setup.py install --skip-build --root %{buildroot}

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7201 |21cr|python-monotonic-0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name monotonic

Name:           python-%{pypi_name}
Version:        0.6
Release:        1
Group:          Development/Python
Summary:        An implementation of time.monotonic() for Python 2 & < 3.3
License:        ASLv2
URL:            https://github.com/atdt/monotonic
Source0:        http://pypi.python.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)

%description
This module provides a monotonic() function which returns the value (in
fractional seconds) of a clock which never goes backwards.

%package -n     python3-%{pypi_name}
Summary:        An implementation of time.monotonic() for Python 2 & < 3.3
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{pypi_name}
This module provides a monotonic() function which returns the value (in
fractional seconds) of a clock which never goes backwards.

This is the Python 3 version of the package.

%prep
%setup -q -n %{pypi_name}-%{version}
%autopatch -p1

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
popd

%py2_install

%files
%{py_puresitedir}/*

%files -n python3-%{pypi_name}
%{py3_puresitedir}/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7202 |21cr|python-mox3-0.13.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module mox3

Name:           python-%{module}
Version:        0.13.0
Release:        4
Group:          Development/Python
Summary:        Mock object framework for Python
License:        ASL 2.0
URL:            http://www.openstack.org/
Source0:        http://pypi.python.org/packages/source/m/%{module}/%{module}-%{version}.tar.gz

BuildArch:	noarch

%description
Mox3 is an unofficial port of the Google mox framework to Python 3. It
was meant to be as compatible with mox as possible, but small enhancements
have been made.

#-------------------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Mock object framework for Python 3
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pbr)
BuildRequires:  python3egg(fixtures)
BuildRequires:  python3-pip
Requires:  python3egg(fixtures)
Requires:  python3egg(pbr)

%description -n python3-%{module}
Mox3 is an unofficial port of the Google mox framework to Python 3. It
was meant to be as compatible with mox as possible, but small enhancements
have been made.


%files -n python3-%{module}
%doc AUTHORS *.rst COPYING.txt
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info/
#-------------------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7203 |21cr|python-mpd-3.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name python-mpd2

Summary:	Python bindings for MPD
Name:		python-mpd
Version:	3.1.0
Release:	3
License:	LGPLv3
Group:		Development/Python
Url:		https://www.musicpd.org/libs/python-mpd2/
Source0:	https://github.com/Mic92/python-mpd2/archive/refs/tags/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
#py_requires -d
BuildArch:	noarch

%description
An MPD (Music Player Daemon) client library written in pure Python.

#----------------------------------------------------------------------------

%package -n python3-mpd
Summary:	Python bindings for MPD
Group:		Development/Python
Obsoletes:	python-mpd < 3.1.0-2

%description -n python3-mpd
An MPD (Music Player Daemon) client library written in pure Python.

%files -n python3-mpd
%doc LICENSE.txt GPL.txt README.rst
%{python3_sitelib}/mpd
%{python3_sitelib}/python_mpd2-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# Fix perms
chmod +x %{buildroot}%{py3_puresitedir}/mpd/tests.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7204 |21cr|python-mpi4py-3.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module  mpi4py
# we don't want to provide private python extension libs
%define	_exclude_files_from_autoprov ^(%{py3_platsitedir}/%{module}/lib-pmpi/.*\\.so|%{py3_platsitedir}/%{module}/.*\\.so)$

Summary:	MPI for Python
Name:		python-%{module}
Version:	3.1.3
Release:	1
License:	Public Domain
Group:		Development/Python
Url:		https://bitbucket.org/mpi4py
Source0:	https://files.pythonhosted.org/packages/20/50/d358fe2b56075163b75eca30c2faa6455c50b9978dd26f0fc4e3879b1062/mpi4py-3.1.3.tar.gz
BuildRequires:	openmpi
BuildRequires:	pkgconfig(ompi)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3dist(cython)

%description
MPI for Python 3 provides bindings of the Message Passing Interface (MPI)
standard for the Python programming language, allowing any Python 3 program to
exploit multiple processors.
This package is constructed on top of the MPI-1/2 specifications and provides
an object oriented interface which closely follows MPI-2 C++ bindings. It
supports point-to-point (sends, receives) and collective (broadcasts,
scatters, gathers) communications of any picklable Python object, as well as
optimized communications of Python object exposing the single-segment buffer
interface (NumPy arrays, builtin bytes/string/array objects).

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for mpi4py
Group:		Development/Python
BuildArch: 	noarch

%description doc
This package contains documentation for MPI for Python.

%files doc
%doc test/ demo/ docs/usrman docs/apiref

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python 3 bindings of the Message Passing Interface (MPI)
Group:		Development/Python
Requires:	openmpi

%description -n python3-%{module}
MPI for Python 3 provides bindings of the Message Passing Interface (MPI)
standard for the Python programming language, allowing any Python 3 program to
exploit multiple processors.
This package is constructed on top of the MPI-1/2 specifications and provides
an object oriented interface which closely follows MPI-2 C++ bindings. It
supports point-to-point (sends, receives) and collective (broadcasts,
scatters, gathers) communications of any picklable Python object, as well as
optimized communications of Python object exposing the single-segment buffer
interface (NumPy arrays, builtin bytes/string/array objects).

%files -n python3-%{module}
%doc LICENSE.rst
%{py3_platsitedir}/%{module}*
%exclude %{py3_platsitedir}/%{module}/include/

#----------------------------------------------------------------------------

%package -n python3-%{module}-devel
Summary:	Mpi4py headers
Group:		Development/Python
Requires:	python3-%{module} = %{version}-%{release}

%description -n python3-%{module}-devel
This package contains header files needed to develop modules in C or
Fortran that can interact with mpi4py.

%files -n python3-%{module}-devel
%{py3_platsitedir}/%{module}/include/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

# Delete docs/source: this is just needed to generate docs/*
rm -r docs/source


%build
export CFLAGS="-Wno-error=format-security"
%py3_build


%install
%py3_install
rm -f %{buildroot}%{py3_platsitedir}/mpi4py/mpi.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7205 |21cr|python-mpmath-0.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	mpmath

Summary:	Python library for symbolic mathematics
Name:		python-%{module}
Version:	0.18
Release:	2
Source0:	http://mpmath.googlecode.com/files/%{module}-%{version}.tar.gz
Source1:	http://mpmath.googlecode.com/files/%{module}-docsrc-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://mpmath.googlecode.com/
BuildArch:	noarch
Recommends:	python3-gmpy
Recommends:	python3-numpy
Recommends:	python3-matplotlib
BuildRequires:	python3
BuildRequires:  python3-sphinx

%description
Mpmath is a pure-Python library for multiprecision floating-point arithmetic.
It provides an extensive set of transcendental functions, unlimited exponent
sizes, complex numbers, interval arithmetic, numerical integration and
differentiation, root-finding, linear algebra, and much more. Almost any
calculation can be performed just as well at 10-digit or 1000-digit precision,
and in many cases mpmath implements asymptotically fast algorithms that scale
well for extremely high precision work. If available, mpmath will (optionally)
use gmpy to speed up high precision operations. 

%package	doc
Group:		Development/Python
Summary:	Documentation for python-%{name}

%description	doc
Documentation for python-%{name}.

%prep
%setup -q -n %{module}-%{version} -a 1

%install
PYTHONDONTWRITEBYTECODE=  python3 setup.py install --root=%{buildroot} 

pushd doc
python3 build.py
rm -rf build/.buildinfo build/.doctrees
mkdir -p %{buildroot}/%{_docdir}/%{module}
cp -far build/* %{buildroot}/%{_docdir}/%{module}
popd

%files
%doc CHANGES LICENSE
%{py3_puresitedir}/*

%files doc
%{_docdir}/%{module}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7206 |21cr|python-mpmath-0.19-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module mpmath

Name:		python-mpmath
Version:	0.19
Release:	5
Summary:	Python library for arbitrary-precision floating-point arithmetic
Group:		Development/Python
License:	BSD
URL:		http://mpmath.org/
Source0:	https://pypi.python.org/packages/source/m/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python-setuptools
Recommends:	python-gmpy
Recommends:	python-matplotlib

%description
A Python library for arbitrary-precision floating-point arithmetic.

%package -n python3-%{module}
Summary:	Python library for arbitrary-precision floating-point arithmetic
Group:		Development/Python
BuildRequires:	python3-setuptools
Recommends:	python3-matplotlib

%description -n python3-%{module}
A Python library for arbitrary-precision floating-point arithmetic.

%prep
%setup -qn %{module}-%{version}
# Convert line encodings
for doc in LICENSE CHANGES PKG-INFO README mpmath/tests/runtests.py; do
 sed "s|\r||g" $doc > $doc.new && \
 touch -r $doc $doc.new && \
 mv $doc.new $doc
done

# Get rid of unnecessary shebangs
for lib in mpmath/elliptic.py mpmath/tests/runtests.py; do
 sed '/#!\/usr\/bin\/env/d' $lib > $lib.new && \
 touch -r $lib $lib.new && \
 mv $lib.new $lib
done
cp -a . %{py3dir}

%build
python setup.py build

pushd %{py3dir}
python3 setup.py build
popd

%install
python setup.py install -O1 --skip-build --root %{buildroot} 

pushd %{py3dir}
python3 setup.py install -O1 --skip-build --root %{buildroot} 
popd

#%py2_install

#pushd %{py3dir}
#%py3_install
#popd

%check

%files
%doc README.new CHANGES
%{py_puresitedir}/%{module}
%{py_puresitedir}/%{module}-%{version}-py*.*.egg-info

%files -n python3-%{module}
%doc README.new CHANGES
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py*.*.egg-info



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7207 |21cr|python-msal-1.18.0_b1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Most of the tests require network access, so they are disabled by default.
%bcond_with     tests

%global         srcname         msal
%global         forgeurl        https://github.com/AzureAD/microsoft-authentication-library-for-python/
Version:        1.18.0~b1
%global         pypi_version    1.18.0b1
%global         tag             %{pypi_version}
%forgemeta

Name:           python-%{srcname}
Release:        1
Summary:        Microsoft Authentication Library (MSAL) for Python
Group:          Development/Python
License:        MIT
URL:            %forgeurl
Source0:        %forgesource
Patch0:         msal-requires.patch
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(pytest)
%endif

%global _description %{expand:
The Microsoft Authentication Library for Python
enables applications to integrate with the Microsoft identity platform. It
allows you to sign in users or apps with Microsoft identities (Azure AD,
Microsoft Accounts and Azure AD B2Caccounts) and obtain tokens to call Microsoft
APIs such as Microsoft Graph or your own APIs registered with the Microsoft
identity platform. It is built using industry standard OAuth2 and OpenID Connect
protocols.}

%description %{_description}

#-------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.md

#-------------------------------------------------------

%prep
%forgeautosetup -p1


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files msal


%if %{with tests}
%check
%pytest --disable-warnings tests
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7208 |21cr|python-msal-1.22.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name msal

# Most of the tests require network access, so they are disabled by default.
%bcond_with tests

Summary:	Microsoft Authentication Library (MSAL) for Python
Name:		python-%{pypi_name}
Version:	1.22.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/AzureAD/microsoft-authentication-library-for-python/
Source0:	%{pypi_source}
Patch0:		msal-1.22.0-requires.patch
BuildRequires:	pyproject-rpm-macros
BuildRequires:	pkgconfig(python3)
%if %{with tests}
BuildRequires:	python3dist(pytest)
%endif
BuildArch:	noarch

%description
The Microsoft Authentication Library for Python enables applications to
integrate with the Microsoft identity platform. It allows you to sign
in users or apps with Microsoft identities (Azure AD, Microsoft Accounts
and Azure AD B2Caccounts) and obtain tokens to call Microsoft APIs such
as Microsoft Graph or your own APIs registered with the Microsoft identity
platform. It is built using industry standard OAuth2 and OpenID Connect
protocols.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Microsoft Authentication Library (MSAL) for Python
Group:		Development/Python

%description -n python3-%{pypi_name}
The Microsoft Authentication Library for Python enables applications to
integrate with the Microsoft identity platform. It allows you to sign
in users or apps with Microsoft identities (Azure AD, Microsoft Accounts
and Azure AD B2Caccounts) and obtain tokens to call Microsoft APIs such
as Microsoft Graph or your own APIs registered with the Microsoft identity
platform. It is built using industry standard OAuth2 and OpenID Connect
protocols.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
%patch0 -p1

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files msal

%if %{with tests}
%check
%pytest --disable-warnings tests
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7209 |21cr|python-msal-extensions-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global         pypi_name     msal-extensions
%global         forgeurl    https://github.com/AzureAD/microsoft-authentication-extensions-for-python/
Version:        1.0.0
%global         tag         %{version}
%forgemeta

Name:           python-%{pypi_name}
Release:        1
Summary:        Microsoft Authentication extensions for MSAL Python
Group:          Development/Python
License:        MIT
URL:            %forgeurl
Source0:        %forgesource

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%global _description %{expand:
The Microsoft Authentication Extensions for Python offers secure mechanisms for
client applications to perform cross-platform token cache serialization and
persistence. It gives additional support to the Microsoft Authentication Library
for Python (MSAL).

MSAL Python supports an in-memory cache by default and provides the
SerializableTokenCache to perform cache serialization. You can read more about
this in the MSAL Python documentation. Developers are required to implement
their own cache persistance across multiple platforms and Microsoft
Authentication Extensions makes this simpler.}

%description %{_description}

#----------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md

#----------------------------------------------------------
%prep
%forgeautosetup -p1

# Remove DOS line endings
sed "s|\r||g" README.md >README.md.new && \
touch -r README.md README.md.new && \
mv README.md.new README.md


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files msal_extensions

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7210 |21cr|python-msg_parser-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	msg_parser
%define commit d16260df42658531a4342baf0d895c3d4ba5d1e4

Summary:	Python module for parsing Outlook msg files
Summary(ru_RU.UTF-8):	Парсер для сообщений Outlook на Python
Name:		python-%{pypi_name}
Version:	1.2.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/vikramarsid/%{pypi_name}
Source0:	https://github.com/vikramarsid/%{pypi_name}/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pytest
BuildRequires:	python3-mock
BuildRequires:	python3-pkg-resources
BuildRequires:	python3-setuptools
BuildRequires:  pkgconfig(glib-2.0)

BuildArch:	noarch

%define _description \
Python module for parsing Outlook msg files

%define _description_ru \
Парсер для сообщений Outlook на Python

%description
%{_description}

%description -l ru_RU.UTF-8
%{_description_ru}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%description -l ru_RU.UTF-8 -n python3-%{pypi_name}
%{_description_ru}

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#------------------------------------------------------------------

%package -n %{pypi_name}
Summary:	Parser and converter of Outlook msg files
Summary(ru_RU.UTF-8):	Парсер и конвертер для сообщений outlook на Python
Group:	Office
Requires:	python3-%{pypi_name} = %{EVRD}
Provides:	msg-parser = %{EVRD}

%description -n %{pypi_name}
Parser and converter of Outlook msg files

%description -l ru_RU.UTF-8 -n %{pypi_name}
Парсер и конвертер для сообщений Outlook на Python

%files -n %{pypi_name}
%{_bindir}/msg_parser

#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{commit}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7211 |21cr|python-msrest-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# tests are enabled by default
%bcond_without  tests

%global         srcname     msrest
%global         forgeurl    https://github.com/Azure/msrest-for-python
Version:        0.7.0
# MSFT isn't making tags any longer in this repo for some reason.
%global         commit      1029bcec2c730303cb1ce7c5ea4a19d9e6579e08
%forgemeta

Name:           python-%{srcname}
Release:        1
Summary:        The runtime library "msrest" for AutoRest generated Python clients
Group:          Development/Python
License:        MIT
URL:            %forgeurl
Source0:        %forgesource

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(aiohttp)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-asyncio)
BuildRequires:  python3dist(trio)
%endif

%global _description %{expand:
The runtime library "msrest" for AutoRest generated Python clients}

%description %{_description}

#----------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.rst

#----------------------------------------------------

%prep
%forgeautosetup


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{srcname}


%check
%if %{with tests}
# Some tests require network connectivity, so they are skipped here.
%pytest \
    --ignore=tests/asynctests/test_pipeline.py \
    --ignore=tests/asynctests/test_universal_http.py \
    --ignore=tests/test_runtime.py
%endif




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7212 |21cr|python-msrestazure-0.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with    tests

%global         srcname     msrestazure
%global         forgeurl    https://github.com/Azure/msrestazure-for-python/
Version:        0.6.4
%global         tag         v%{version}
%forgemeta

Name:           python-%{srcname}
Release:        1
Summary:        The runtime library "msrestazure" for AutoRest generated Python clients
Group:          Development/Python
License:        MIT
URL:            %forgeurl
Source0:        %forgesource

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%if %{with tests}
BuildRequires:  python3dist(pytest-asyncio)
BuildRequires:  python3dist(httpretty)
BuildRequires:  python3dist(pytest)
%endif

%global _description %{expand:
The runtime library "msrest" for AutoRest generated Python clients}

%description %{_description}

#------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname} -f %{pyproject_files}
%doc README.rst
%license LICENSE.md

#------------------------------------------------------------
%prep
%forgeautosetup -p1


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{srcname}


%if %{with tests}
%check
%pytest
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7213 |21cr|python-multi_key_dict-2.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module multi_key_dict
%define hash 6d/97/2e9c47ca1bbde6f09cb18feb887d5102e8eacd82fbc397c77b221f27a2ab

Name:           python-%{module}
Version:        2.0.3
Release:        2
Summary:        Implementation of a multi-key dictionary
Group:          Development/Python
License:        MIT
Url:            https://github.com/formiaczek/%{module}
Source0:        https://files.pythonhosted.org/packages/%{hash}/%{module}-%{version}.tar.gz

BuildArch:      noarch

%description
Implementation of a multi-key dictionary, i.e.:

(key1[,key2, ..]) => value

This dictionary has a similar interface to the standard dictionary => but
is extended to support multiple keys referring to the same element.
#-------------------------------------------------------------

%package -n python3-%{module}
Summary:        Implementation of a multi-key dictionary
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
Implementation of a multi-key dictionary, i.e.:

(key1[,key2, ..]) => value

This dictionary has a similar interface to the standard dictionary => but
is extended to support multiple keys referring to the same element.



%files -n python3-%{module}
%doc README.txt
%{py3_puresitedir}/%{module}.py*
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
%{py3_puresitedir}/__pycache__
#-------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 %{buildroot}%{py3_puresitedir}/%{module}.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7214 |21cr|python-multilib-1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       python-multilib
Version:    1.2
Release:    3
Summary:    A module for determining if a package is multilib or not
Group:      Development/Python
License:    GPLv2
URL:        https://pagure.io/releng/python-multilib
Source0:    https://releases.pagure.org/releng/python-multilib/%{name}-%{version}.tar.bz2

BuildArch:  noarch


%global _description \
A Python module that supports several multilib "methods" useful for \
determining if a 32-bit package should be included with its 64-bit analogue \
in a compose.

%description %{_description}

%package conf
Summary:        Configuration files for %{name}

%description conf
This package provides the configuration files for %{name}.

%package -n python3-multilib
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-six
Requires:       python3-six
Requires:       python3
Requires:       %{name}-conf = %{EVRD}

%description -n python3-multilib %{_description}

%prep
%setup -q

%build
%py3_build

%install
%py3_install

%check
# testing requires complete composes available locally, which no buildsystem
# would ever want included in a build root
#{__python2} setup.py test
#{__python3} setup.py test

%files conf
%config(noreplace) %{_sysconfdir}/multilib.conf

%files -n python3-multilib
%doc LICENSE
%doc README.md
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7215 |21cr|python-multipart-0.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module multipart

Name:           python-%{module}
Version:        0.2.4
Release:        1
Summary:        Parser for %{module}/form-data
Group:          Development/Python
License:        MIT
URL:            http://github.com/defnull/%{module}
Source:         https://files.pythonhosted.org/packages/source/m/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
Provides:       python3-%{module} = %{EVRD}
BuildArch:      noarch


%description
Parser for %{module}/form-data.

%files
%doc README.rst LICENSE
%{py3_puresitedir}/%{module}-%{version}-*.egg-info
%{py3_puresitedir}/__pycache__
%{py3_puresitedir}/multipart.py
#-----------------------------------------------
%prep
%setup -qn %{module}-%{version}
rm -fr %{module}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7216 |21cr|python-musepack-0.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	pymusepack

Name: 	 	python-musepack
Summary: 	Python access for musepack audio files

Version: 	0.4
Release: 	10
License:	GPL
Group:		Development/Python
URL:		http://www.sacredchao.net/
Source:		http://www.sacredchao.net/~piman/software/%{oname}-%{version}.tar.bz2
BuildRequires:	python2-devel libmpcdec-devel swig
BuildRequires:  python2-devel

%description
This Python module lets you load and decode Musepack (MPC/MP+ files). It also
includes a module to read and write APEv2 metadata tags.

%package -n python2-musepack
Summary: 	Python access for musepack audio files

%description -n python2-musepack
This Python module lets you load and decode Musepack (MPC/MP+ files). It also
includes a module to read and write APEv2 metadata tags.


%prep
%setup -qn %{oname}-%{version}

%build
env CFLAGS="%{optflags}" python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

mkdir -p %{buildroot}/%{_bindir}
cp plaympc.py %{buildroot}/%{_bindir}/

%clean

%files -n python2-musepack
%defattr(644,root,root,755)
%doc NEWS README
%attr(755,root,root) %{_bindir}/plaympc.py
%attr(755,root,root) %{_libdir}/python*/site-packages/musepack/mpc.so
%{_libdir}/python*/site-packages/musepack/*.py*
%{_libdir}/python*/site-packages/%{oname}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7217 |21cr|python-musicbrainzngs-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python bindings for the MusicBrainz NGS
Name:		python-musicbrainzngs
Version:	0.7.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://python-musicbrainzngs.readthedocs.org
Source0:	https://github.com/alastair/python-musicbrainzngs/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
# build docs fail on new sphinx
#BuildRequires:	python3-sphinx
BuildArch:	noarch

%description
Python-musicbrainzngs provides simple, object oriented access for Python 3 
to the MusicBrainz NGS and the Cover Art Archive webservices. It is useful
for applications like CD rippers, taggers, media players, and other tools that
need music metadata. The MusicBrainz Project collects music metadata and is
maintained by its large and constantly growing user community.
This package contains the bindings for python 2.

#-----------------------------------------------------------------------------

%package -n python3-musicbrainzngs
Summary:	Python 3 bindings for the MusicBrainz NGS
Requires:	python3-httplib2
Requires:	python3-lxml
Provides:	python3-musicbrainzngs = %{EVRD}

%description -n python3-musicbrainzngs
Python-musicbrainzngs provides simple, object oriented access to the
MusicBrainz NGS and the Cover Art Archive webservices.
This package contains the bindings for python 3.

%files -n python3-musicbrainzngs
%doc CHANGES COPYING README.rst
#doc docs/_build/html/*
%{py3_puresitedir}/musicbrainzngs
%{py3_puresitedir}/*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

# Make docs
#pushd docs
#make html
#popd

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7218 |21cr|python-mwparserfromhell-0.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	mwparserfromhell

Name:		python-%{oname}
Version:	0.5.2
Release:	1
Summary:	MWParserFromHell is a parser for MediaWiki wikicode
Source0:	https://files.pythonhosted.org/packages/source/m/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/earwig/%{oname}
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel

%description
mwparserfromhell (the MediaWiki Parser from Hell) is a Python package
that provides an easy-to-use and outrageously powerful parser for MediaWiki
wikicode.

%package -n python3-%{oname}
Summary:	MWParserFromHell is a parser for MediaWiki wikicode

%description -n python3-%{oname}
mwparserfromhell (the MediaWiki Parser from Hell) is a Python package
that provides an easy-to-use and outrageously powerful parser for MediaWiki
wikicode.


%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{oname}
%doc CHANGELOG LICENSE README.rst
%{py3_platsitedir}/%{oname}
%{py3_platsitedir}/%{oname}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7219 |21cr|python-mygpoclient-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       python-mygpoclient
Version:	1.9
Release:	1
Summary:    Python module to connect to the my.gpodder.org webservice
Group:      Development/Python
License:    GPLv3+
URL:        http://thpinfo.com/2010/mygpoclient/
Source0:	https://files.pythonhosted.org/packages/21/c4/25627af7837020640ec37179d2ed7daa104f73613ded694db34a90f6c5d9/mygpoclient-1.9.tar.gz
BuildArch:  noarch

%global _description\
%{name} is a client-library to connect the my.gpodder.org webservice.

%description %_description

#----------------------------------------------------------------
%package -n python3-mygpoclient
Summary:       %summary
Group:         Development/Python
BuildRequires: python3-devel
#BuildRequires: python3-minimock
#BuildRequires: python3-coverage
#BuildRequires: python3-nose
#BuildRequires: python3-simplejson

%description -n python3-mygpoclient %_description

%files -n python3-mygpoclient
%{python3_sitelib}/mygpoclient
%{python3_sitelib}/mygpoclient*.egg-info
%{_bindir}/mygpo-*
%{_mandir}/man1/mygpo-bpsync.1*
%exclude %{python3_sitelib}/mygpoclient/*test.py*
%doc README.md COPYING AUTHORS

#----------------------------------------------------------------

%prep
%setup -q -n mygpoclient-%{version}
# Leave out http-tests as they currently fail occasionally (reported upstream)
rm mygpoclient/http_test.py

%build
%py3_build

%check
#nosetests-3 --cover-erase --with-coverage --with-doctest --cover-package=mygpoclient

%install
%py3_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7220 |21cr|python-myst-parser-0.18.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name myst-parser

Name:           python-%{pypi_name}
Version:        0.18.1
Release:        1
Summary:        A commonmark compliant parser, with bridges to docutils & sphinx
Group:          Development/Python
License:        MIT
URL:            https://github.com/executablebooks/MyST-Parser
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
Patch0:         myst-parser-requirements.patch
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# Test dependencies- upstream uses tox with complicated matrix
# mixed with coverage, it's easier to set the ones we want here
BuildRequires:  python3-pytest
BuildRequires:  python3-beautifulsoup4
BuildRequires:  python3-docutils
BuildRequires:  python3-pytest-regressions
BuildRequires:  python3-pytest-param-files
BuildRequires:  python3-sphinx-pytest


%global _description %{expand:
A fully-functional markdown flavor and parser for Sphinx.
MyST allows you to write Sphinx documentation entirely in markdown.
MyST markdown provides a markdown equivalent of the reStructuredText syntax,
meaning that you can do anything in MyST that you can do with reStructuredText.
It is an attempt to have the best of both worlds: the flexibility and
extensibility of Sphinx with the simplicity and readability of Markdown.
}

%description %_description

#------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %_description

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_bindir}/myst-anchors
%{_bindir}/myst-docutils-html
%{_bindir}/myst-docutils-html5
%{_bindir}/myst-docutils-latex
%{_bindir}/myst-docutils-xml
%{_bindir}/myst-docutils-pseudoxml

#------------------------------------------------------

%prep
%autosetup -p1 -n MyST-Parser-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files myst_parser


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7221 |21cr|python-natsort-8.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname natsort

Name:           python-%{srcname}
Version:	8.2.0
Release:	1
Summary:        Python library that sorts lists using the "natural order" sort
Group:          Development/Python
License:        MIT
URL:            https://github.com/SethMMorton/%{srcname}
Source0:	https://files.pythonhosted.org/packages/9a/81/50a71d8ac87727ee6213207e30502560ffcf3b72a06b45fbeaa1ed48bec6/natsort-8.2.0.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(coverage)
BuildRequires:  python3dist(hypothesis)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-cov)
BuildRequires:  python3dist(pytest-mock)
BuildRequires:  python3dist(semver)
BuildRequires:  python3dist(setuptools)

%global _description \
Python module which provides "natural sorting".\
\
Under natural sorting, numeric sub-strings are compared numerically,\
and the other word characters are compared lexically.\
\
Example:\
unsorted:           ['a2', 'a9', 'a1', 'a4', 'a10']\
lexicographic sort: ['a1', 'a10', 'a2', 'a4', 'a9']\
natural sort:       ['a1', 'a2', 'a4', 'a9', 'a10']

%description %{_description}

%package -n python3-%{srcname}
Summary:	%{summary}
Group:      Development/Python
%description -n python3-%{srcname}
%{_description}

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{_bindir}/%{srcname}
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7222 |21cr|python-nbclient-0.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Unset -s on python shebang - ensure that extensions installed with pip
# to user locations are seen and properly loaded
%global py3_shebang_flags %(echo %py3_shebang_flags | sed s/s//)

%global pypi_name nbclient

%global _description %{expand:
NBClient, a client library for programmatic notebook execution, is a tool for 
running Jupyter Notebooks in different execution contexts. NBClient was spun 
out of nbconvert (formerly ExecutePreprocessor). NBClient lets you execute notebooks.
}

Name:           python-%{pypi_name}
Version:        0.7.2
Release:        1
Summary:        A client library for executing notebooks
Group:          Development/Python
License:        BSD
URL:            https://jupyter.org
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%bcond_with check

%description
%_description

#--------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
%_description

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md
%{_bindir}/jupyter-execute

#--------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%generate_buildrequires
%pyproject_buildrequires %{?with_check:-x test}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%if %{with check}
%check
%pytest -vv
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7223 |21cr|python-nbconvert-7.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# Unset -s on python shebang - ensure that extensions installed with pip
# to user locations are seen and properly loaded
%undefine _py3_shebang_s

%global pypi_name nbconvert

%bcond_with doc
%bcond_with check

Name:           python-%{pypi_name}
Version:        7.2.7
Release:        1
Summary:        Converting Jupyter Notebooks
Group:          Development/Python
License:        BSD and MIT
URL:            http://jupyter.org
Source0:        %{pypi_source}
# See
# https://github.com/jupyter/nbconvert/blob/main/hatch_build.py
# https://github.com/jupyter/nbconvert/issues/1896
Source1:        https://cdn.jupyter.org/notebook/5.4.0/style/style.min.css

BuildArch:      noarch

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
# Deps not covered by upstream metadata
%if %{with doc}
BuildRequires:  python3-ipython-sphinx
BuildRequires:  pandoc
%endif

%description
The nbconvert tool, jupyter nbconvert, converts notebooks to various other 
formats via Jinja templates. The nbconvert tool allows you to convert an 
.ipynb notebook file into various static formats including HTML, LaTeX, 
PDF, Reveal JS, Markdown (md), ReStructured Text (rst) and executable script.

#------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Converting Jupyter Notebooks
Group:          Development/Python

Recommends:     inkscape
Recommends:     pandoc

%description -n python3-%{pypi_name}

The nbconvert tool, jupyter nbconvert, converts notebooks to various other 
formats via Jinja templates. The nbconvert tool allows you to convert an 
.ipynb notebook file into various static formats including HTML, LaTeX, 
PDF, Reveal JS, Markdown (md), ReStructured Text (rst) and executable script.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc docs/README.md
%{_bindir}/jupyter-nbconvert
%{_bindir}/jupyter-dejavu
%{_datadir}/jupyter/%{pypi_name}/templates/

#------------------------------------------------
%if %{with doc}
%package -n python-%{pypi_name}-doc
Summary:        Documentation for nbconvert
Group:          Documentation

%description -n python-%{pypi_name}-doc
Documentation for nbconvert

%files -n python-%{pypi_name}-doc
%doc html
%endif

#------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
echo "nbsphinx_allow_errors = True" >> docs/source/conf.py
# Packages not available in Fedora
sed -i '/"pytest-dependency",/d' pyproject.toml
sed -i '/pyppeteer/d' pyproject.toml
sed -i 's/"sphinx==.*"/"sphinx"/' pyproject.toml
sed -i 's/"mistune>=.*"/"mistune"/' pyproject.toml

mkdir -p share/templates/classic/static/
cp -v %{SOURCE1} share/templates/classic/static/style.css

%generate_buildrequires
%pyproject_buildrequires %{?with_check:-x test} %{?with_doc:-x docs}


%build
%pyproject_wheel

%if %{with doc}
export PYTHONPATH=$(pwd)
sphinx-build-3 docs/source html
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

# fix permissions and shebangs
%py3_shebang_fix %{buildroot}%{python3_sitelib}/%{pypi_name}/nbconvertapp.py
chmod 755 %{buildroot}%{python3_sitelib}/%{pypi_name}/nbconvertapp.py

%if %{with check}
%check
# Some tests need pyppeteer, some fail on unclosed context zmq.asyncio.Context()
# and some run in subprocess and therefore don't have "nbconvert.tests" in PYTHONPATH
%{__python3} -m pytest -W ignore::DeprecationWarning -k "\
    not test_export and \
    not test_webpdf_without_chromium and \
    not test_webpdf_with_chromium and \
    not test_no_input and \
    not test_basic_execution and \
    not test_mixed_markdown_execution and \
    not test_populate_language_info and \
    not test_preprocess_cell and \
    not test_convert_full_qualified_name and \
    not test_post_processor"
%endif




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7224 |21cr|python-nbformat-5.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Unset -s on python shebang - ensure that extensions installed with pip
# to user locations are seen and properly loaded
%global py3_shebang_flags %(echo %py3_shebang_flags | sed s/s//)

%global srcname nbformat

Name:           python-%{srcname}
Version:        5.7.1
Release:        1
Summary:        The Jupyter Notebook format
Group:          Development/Python
License:        BSD
URL:            https://pypi.python.org/pypi/%{srcname}
Source0:        https://files.pythonhosted.org/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz
# File missing from tarball https://github.com/jupyter/nbformat/issues/213
Source1:        https://raw.githubusercontent.com/jupyter/nbformat/master/nbformat/tests/test4.ipynb
# Add pytest asyncio_mode=strict option
# Removed dependency on hatch-nodejs-version
Patch0:         nbformat-build-test.patch

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description
This package contains the base implementation of the Jupyter Notebook format,
and Python APIs for working with notebooks.

#---------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        The Jupyter Notebook format
Group:          Development/Python

%description -n python3-%{srcname}
This package contains the base implementation of the Jupyter Notebook format,
and Python APIs for working with notebooks.

%files -n python3-%{srcname} -f %pyproject_files
%doc README.md
%license COPYING.md
%{_bindir}/jupyter-trust

#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}
mkdir -p nbformat/tests
cp -a %{SOURCE1} nbformat/tests/

# Remove useless test dependencies
sed -i '/"pre-commit",/d' pyproject.toml
sed -i '/"check-manifest",/d' pyproject.toml

# Set version statically
# {VERSION} is a part of Patch0
sed -i "s/{VERSION}/%{version}/" pyproject.toml

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{srcname}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7225 |21cr|python-nbxmpp-2.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# 2.0.6 latest version with python 3.8 support, 3.x use python-3.9

%global srcname nbxmpp

Name:		python-%{srcname}
Version:	2.0.6
Release:	1
Epoch:		1
Summary:	Non blocking Jabber/XMPP module
Group:		Development/Python
License:	MIT
URL:		https://pypi.python.org/pypi/nbxmpp
Source0:	%{pypi_source}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Requires:	python3-OpenSSL
Requires:	python3-gobject
BuildArch:	noarch

%description
The goal of this python2 library is to provide a way for python applications
to use Jabber/XMPP networks in a non-blocking way. This library is initialy 
a fork of xmpppy one, but using non-blocking sockets.


#--------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        Non blocking Jabber/XMPP module
Group:		Development/Python

%description -n python3-%{srcname}
The goal of this python library is to provide a way for python applications
to use Jabber/XMPP networks in a non-blocking way. This library is initialy 
a fork of xmpppy one, but using non-blocking sockets.

%files -n python3-%{srcname}
%{py3_puresitedir}/%{srcname}/
%{py3_puresitedir}/%{srcname}*.egg-info
#--------------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7226 |21cr|python-ndg-httpsclient-0.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ndg_httpsclient
%define	module	ndg-httpsclient

Name:		python-%{module}
Version:	0.4.2
Release:	1
Summary:	Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL
Source0:	https://pypi.python.org/packages/a2/a7/ad1c1c48e35dc7545dab1a9c5513f49d5fa3b5015627200d2be27576c2a0/%{oname}-%{version}.tar.gz
License:	BSD - See ndg/httpsclient/LICENCE file for details
Group:		Development/Python
Url:		https://github.com/cedadev/ndg_httpsclient/
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
A HTTPS client implementation for 
 * ``httplib`` (Python 2), ``http.client`` (Python 3) and 
 * ``urllib2`` (Python 2) and ``urllib`` (Python 3)

... based on PyOpenSSL. 
PyOpenSSL provides a more fully featured SSL implementation 
over the default provided with Python and importantly enables full verification 
of the SSL peer using ``pyasn1``.

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc ndg/httpsclient/LICENSE
%doc ndg/httpsclient/test/README
%{_bindir}/ndg_httpclient 
%{py_puresitedir}/ndg/httpsclient/*.py*
%{py_puresitedir}/ndg/httpsclient/test/*.py*
%{py_puresitedir}/ndg_httpsclient*.egg-info
#was unpacked
%{py_puresitedir}/ndg/httpsclient/LICENSE
%{py_puresitedir}/ndg/httpsclient/test/README
%{py_puresitedir}/ndg/httpsclient/test/pki/ca/08bd99c7.0
%{py_puresitedir}/ndg/httpsclient/test/pki/ca/ade0138a.0
%{py_puresitedir}/ndg/httpsclient/test/pki/localhost.crt
%{py_puresitedir}/ndg/httpsclient/test/pki/localhost.key
%{py_puresitedir}/ndg/httpsclient/test/scripts/openssl_https_server.sh
%{py_puresitedir}/ndg_httpsclient-0.4.2-py2.7-nspkg.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7227 |21cr|python-ndindex-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name ndindex

Name:           python-ndindex
Version:        1.7
Release:        1
Summary:        A Python library for manipulating indices of ndarrays
Group:          Development/Python
License:        MIT
URL:            https://quansight-labs.github.io/ndindex/
Source:         https://files.pythonhosted.org/packages/source/n/ndindex/ndindex-%{version}.tar.gz
BuildRequires:  python3dist(cython)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(pip)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(wheel)
BuildRequires:  pyproject-rpm-macros
Recommends:     python3-numpy

%description
A Python library for manipulating indices of ndarrays.

#----------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        A Python library for manipulating indices of ndarrays
Group:          Development/Python

%description -n python3-%{pypi_name}
A Python library for manipulating indices of ndarrays.

%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{python3_sitearch}/ndindex
%{python3_sitearch}/ndindex-%{version}.dist-info

#----------------------------------------------------

%prep
%autosetup -p1 -n ndindex-%{version}

%build
export CFLAGS="%{optflags}"
%pyproject_wheel

%install
%pyproject_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7228 |21cr|python-neovim-0.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-neovim
Version:	0.4.3
Release:	1
License:	ASL 2.0
Summary:	Python client for Neovim
Group:		Editors
URL:		https://github.com/neovim/python-client
Source0:	https://github.com/neovim/python-client/archive/%{version}/python-client-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-pkgconfig
BuildRequires:	python3-setuptools

%description
Implements support for python plugins in Nvim. Also works as a library for
connecting to and scripting Nvim processes through its msgpack-rpc API.

%package -n python3-neovim
Summary:	Python client for Neovim
Requires:	neovim

%description -n python3-neovim
Implements support for python plugins in Nvim. Also works as a library for
connecting to and scripting Nvim processes through its msgpack-rpc API.

%prep
%setup -n pynvim-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-neovim
%doc LICENSE
%doc README.md
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7229 |21cr|python-neovim-remote-2.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.0
%global pypi_name neovim-remote

Name:           python-neovim-remote
Version:	2.5.1
Release:	1
Group:          Editors
Summary:        Control nvim processes using "nvr" commandline tool

License:        MIT
URL:            https://github.com/mhinz/neovim-remote
Source0:        https://github.com/mhinz/neovim-remote/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-pkgconfig
BuildRequires:  python3-setuptools
 
Requires:       python3-psutil
Requires:       python3-neovim >= 0.2.3
Requires:       python3-setuptools

%description
This package provides an executable called nvr which solves these cases:
- Controlling nvim processes from the shell. E.g. opening files in another
  terminal window.
- Opening files from within :terminal without starting a nested nvim process.

%package -n	python3-%{pypi_name}
Summary:	Control nvim processes using "nvr" commandline tool

%description -n	python3-%{pypi_name}
This package provides an executable called **nvr** which solves these cases:
- Controlling nvim processes from the shell. E.g. opening files in another
  terminal window.
- Opening files from within :terminal without starting a nested nvim process.

%prep
%setup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n	python3-%{pypi_name}
%doc README.md
%{_bindir}/nvr
%{py3_puresitedir}/nvr
%{py3_puresitedir}/neovim_remote-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7230 |21cr|python-nest-asyncio-1.5.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name nest_asyncio

Name:           python-nest-asyncio
Version:        1.5.6
Release:        1
Summary:        Patch asyncio to allow nested event loops
Group:          Development/Python
License:        BSD
URL:            https://github.com/erdewit/nest_asyncio
Source0:        %{pypi_source}
Patch0:         nest-asyncio-requirements.patch
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%description
By design asyncio does not allow its event loop to be nested.
This presents a practical problem: When in an environment
where the event loop is already running it's impossible to run tasks
and wait for the result. Trying to do so will give the error
"RuntimeError: This event loop is already running".
The issue pops up in various environments, such as web servers,
GUI applications and in Jupyter notebooks.
This module patches asyncio to allow nested use of asyncio.run
and loop.run_until_complete.

#--------------------------------------------------------------
%package -n     python3-nest-asyncio
Summary:        %{summary}
Group:          Development/Python

# This package used to be called python3-nest_asyncio
Obsoletes:      python3-nest_asyncio < 1.4.3-100
Provides:       python3-nest_asyncio = %{EVRD}

%description -n python3-nest-asyncio
By design asyncio does not allow its event loop to be nested.
This presents a practical problem: When in an environment
where the event loop is already running it's impossible to run tasks
and wait for the result. Trying to do so will give the error
"RuntimeError: This event loop is already running".
The issue pops up in various environments, such as web servers,
GUI applications and in Jupyter notebooks.
This module patches asyncio to allow nested use of asyncio.run
and loop.run_until_complete.

%files -n python3-nest-asyncio -f %{pyproject_files}
%doc README.rst

#--------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%check
PYTHONPATH=%{buildroot}%{python3_sitelib} %__python3 tests/nest_test.py



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7231 |21cr|python-neurolab-0.3.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name neurolab
 
Name:		python-neurolab
Version:	0.3.5
Release:	2
Group:		Development/Python
Summary:	Simple and powerfull neural network library for python
License:	LGPLv3
URL:		https://code.google.com/p/neurolab/
Source0:	https://pypi.python.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{pypi_name} is a simple and powerful Neural Network Library for Python.
Contains based neural networks, train algorithms and flexible framework
to create and explore other neural network types.

%package -n python3-neurolab
Summary:	Simple and powerfull neural network library for python
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-numpy-devel

%description -n python3-neurolab
%{pypi_name} is a simple and powerful Neural Network Library for Python.
Contains based neural networks, train algorithms and flexible framework
to create and explore other neural network types.

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-neurolab
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7232 |21cr|python-nevow-0.14.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module nevow

Summary:	Web application construction kit written in Python
Name:		python-%{module}
Version:	0.14.2
Release:	3
License:	MIT
Group:		Development/Python
Url:		https://github.com/twisted/nevow
Source0:	https://github.com/twisted/nevow/archive/%{module}-%{module}-%{version}.tar.gz
BuildRequires:	pkgconfig(python)
BuildRequires:	pythonegg(twisted)
BuildArch:	noarch

%description
Nevow (pronounced as the French "nouveau", or "noo-voh") is a web application
construction kit written in Python. It is designed to allow the programmer to
express as much of the view logic as desired in Python.

%package -n python2-%{module}
Summary:	Web application construction kit written in Python

%description -n python2-%{module}
Nevow (pronounced as the French "nouveau", or "noo-voh") is a web application
construction kit written in Python. It is designed to allow the programmer to
express as much of the view logic as desired in Python.

%files -n python2-%{module}
%doc LICENSE README.rst NEWS.rst examples/
%{_bindir}/nevow-xmlgettext
%{_bindir}/nit
%{py2_puresitedir}/Nevow-*.egg-info
%{py2_puresitedir}/formless/
%{py2_puresitedir}/nevow/
%{py2_puresitedir}/twisted/plugins/nevow_widget.py*
%{_mandir}/man1/nevow-xmlgettext.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{module}-%{version}

#sed -i 's|import setuptools|import setuptoolsBAD|' setup.py

%build
%py2_build

%install
%py2_install

# Install man page
install -D -p -m 0644 doc/man/nevow-xmlgettext.1 \
    %{buildroot}%{_mandir}/man1/nevow-xmlgettext.1

rm -rf %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7233 |21cr|python-newt_syrup-0.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:       Newt Syrup is an app framework built on top of Newt
Name:          python-newt_syrup
Version:       0.2.0
Release:       5
License:       LGPLv2+
Url:           http://newt-syrup.fedorahosted.org/
Source0:        http://mcpierce.fedorapeople.org/rpms/newt_syrup-%{version}.tar.gz
Group:         Development/Python
BuildArch:     noarch
Requires:      newt >= 0.52.11
BuildRequires: python3-devel python3-setuptools

%description
Newt Syrup is an app framework built on top of Newt. It provides a set of
classes for creating text-based applications. Developers can use the widgets
provided by Newt and the framework provided by Syrup to create full text-based
applications in Python.

%package -n python3-newt_syrup
Summary:       Newt Syrup is an app framework built on top of Newt

%description -n python3-newt_syrup
Newt Syrup is an app framework built on top of Newt. It provides a set of
classes for creating text-based applications. Developers can use the widgets
provided by Newt and the framework provided by Syrup to create full text-based
applications in Python.


%prep
%setup -q -n newt_syrup-%{version}

%build
%{__python3} setup.py build

%install
rm -rf %{buildroot}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}

%clean
rm -rf %{buildroot}

%files -n python3-newt_syrup
%doc AUTHORS ChangeLog COPYING
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7234 |21cr|python-nibabel-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	nibabel
# Need git version as the upstream one does not work with invesalius

Summary:	Access a cacophony of neuro-imaging file formats

Name:		python-%{module}
Version:	3.0.1
Release:	1
# git clone http://github.com/hanke/nibabel.git python2-nibabel
# cd python2-nibabel
# git archive --format tar 4f062e8a4f4bcceea4e8e1ff3fc7f897af06fa46 --prefix python2-nibabel-0.2.20100816/ | bzip2 > python-nibabel.tar.bz2
Source0:	https://github.com/nipy/nibabel/archive/%{version}/%{module}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://nipy.sourceforge.net
BuildArch:	noarch

%description
NiBabel is a pure-Python package for reading and writing a variety of
medical and neuro-imaging file formats. This includes: ANALYZE (plain,
SPM99, SPM2), GIFTI, NIfTI1, MINC, as well as PAR/REC. NiBabel is the
successor of PyNIfTI.

%package -n python3-%{module}
Summary:	Access a cacophony of neuro-imaging file formats
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-nose
BuildRequires:  python3-mock
BuildRequires:  python3-six
BuildRequires:  python3-numpy
BuildRequires:  python3-scipy
BuildRequires:  python3-matplotlib
BuildRequires:  python3-pillow
BuildRequires:  python3-pytest
BuildRequires:  python3-h5py
BuildRequires:	python3-dicom
Recommends:	python3-six
Recommends:	python3-numpy
Recommends:	python3-scipy
Recommends:	python3-dicom

%description -n python3-%{module}
NiBabel is a pure-Python package for reading and writing a variety of
medical and neuro-imaging file formats. This includes: ANALYZE (plain,
SPM99, SPM2), GIFTI, NIfTI1, MINC, as well as PAR/REC. NiBabel is the
successor of PyNIfTI.

%prep
%setup -qn %{module}-%{version}
# remove bundled six
rm -vrf %{modname}/externals/six.py
sed -i -e "s/nibabel.externals.six/six/" nibabel/externals/__init__.py
rm -fv nibabel/externals/tests/test_six.py

%build
%py3_build

%install
%py3_install

%clean

%files -n python3-%{module}
%{py3_puresitedir}/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7235 |21cr|python-nltk_lite-0.7.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     doc
%define origname nltk_lite

Name:           python-%{origname}
Version:        0.7.5
Release:        8
Epoch:          0
Summary:        Natural Language Toolkit for Python
License:        CPL
Group:          Development/Python
URL:            http://nltk.sourceforge.net/
Source0:        http://ovh.dl.sourceforge.net/nltk/nltk_lite-%{version}.tar.gz
Source1:        http://ovh.dl.sourceforge.net/nltk/nltk_lite-corpora-%{version}.zip
Source2:        http://ovh.dl.sourceforge.net/nltk/nltk_lite-doc-%{version}.zip
Source3:        http://ovh.dl.sourceforge.net/nltk/nltk_lite-examples-%{version}.zip
Source100:	%{name}.rpmlintrc
Requires:       python2-yaml
%if %with doc
BuildRequires:  epydoc
%endif
BuildRequires:	python2-devel
BuildArch:      noarch

%description
The Natural Langauge Toolkit is a Python package that simplifies the 
construction of programs that process natural language and defines 
standard interfaces between the different components of an NLP system. 

%package -n python2-%{origname}
%py2_migration_meta python2-%{origname}
Summary:        Natural Language Toolkit for Python

%description -n python2-%{origname}
The Natural Langauge Toolkit is a Python package that simplifies the 
construction of programs that process natural language and defines 
standard interfaces between the different components of an NLP system. 


%prep
%setup -q -n %{origname}-%{version}
%setup -q -T -D -a 1 -n %{origname}-%{version}
%setup -q -T -D -a 2 -n %{origname}-%{version}
%setup -q -T -D -a 3 -n %{origname}-%{version}
%{__chmod} -Rf a+rX,u+w,g-w,o-w .
%{_bindir}/find . -name '.DS_Store' -o -name '.api.done' -o -name '.png' | %{_bindir}/xargs %{__rm} -r

%build
%{__python2} setup.py build
%if %with doc
pushd doc
%{__make}
popd
%endif

%install
%{__python2} setup.py install -O2 --root=%{buildroot} --record=INSTALLED_FILES
%{__mkdir_p} %{buildroot}%{_datadir}/nltk_lite
cp -r -a corpora doc examples %{buildroot}%{_datadir}/nltk_lite
%{_bindir}/find %{buildroot} -type f -name '*.txt' | %{_bindir}/xargs %{__perl} -pi -e 's|\r$||g'

%{__chmod} 755 %{buildroot}%{_datadir}/nltk_lite/doc/examples.py \
               %{buildroot}%{_datadir}/nltk_lite/doc/pages.py \
               %{buildroot}%{py2_puresitedir}/nltk_lite/corpora/toolbox.py \
               %{buildroot}%{py2_puresitedir}/nltk_lite/misc/nemo.py \
               %{buildroot}%{py2_puresitedir}/nltk_lite/contrib/toolbox/settings.py \
               %{buildroot}%{py2_puresitedir}/nltk_lite/contrib/toolbox/language.py \
               %{buildroot}%{py2_puresitedir}/nltk_lite/test/doctest_driver.py \
               %{buildroot}%{py2_puresitedir}/nltk_lite/contrib/toolbox/data.py \
               %{buildroot}%{py2_puresitedir}/nltk_lite/stem/porter.py \
               %{buildroot}%{_datadir}/nltk_lite/doc/tree2image.py

rm -fr %{buildroot}%{py2_puresitedir}/yaml

%files -n python2-%{origname}
%defattr(0644,root,root,0755)
%doc *.txt
%defattr(-,root,root,0755)
%{py2_puresitedir}/nltk_lite*
%{_datadir}/nltk_lite

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7236 |21cr|python-nmap-0.3.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Use nmap and access scan results from python
Name:		python-nmap
Version:	0.3.4
Release:	4
Source0:	http://xael.org/norman/python/python2-nmap/%{name}-%{version}.tar.gz
Group:		Development/Python
License:	GPLv3+
URL:		http://xael.org/norman/python/python-nmap/
BuildArch:	noarch
BuildRequires:  python2-devel

%description
python2-nmap is a python2 library which helps in using nmap port scanner.
It allows to easilly manipulate nmap scan results and will be a perfect
tool for systems administrators who want to automatize scanning task
and reports. It also supports nmap script outputs.

It can even be used asynchronously. Results are returned one host at a time
to a callback function defined by the user.

%package -n python2-nmap
%py2_migration_meta python2-nmap
Summary:	Use nmap and access scan results from python

%description -n python2-nmap
python-nmap is a python library which helps in using nmap port scanner.
It allows to easilly manipulate nmap scan results and will be a perfect
tool for systems administrators who want to automatize scanning task
and reports. It also supports nmap script outputs.

It can even be used asynchronously. Results are returned one host at a time
to a callback function defined by the user.


%prep
%setup -q

%build
#nothing to do

%install
python2 setup.py install \
	--root=%{buildroot} \

%files -n python2-nmap
%doc README.txt CHANGELOG
%{py2_puresitedir}/nmap/
%{py2_puresitedir}/python_nmap-%{version}-py%{py2_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7237 |21cr|python-nodeenv-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name nodeenv


Name:           python-%{pypi_name}
Version:	1.7.0
Release:	1
Summary:        Node.js virtual environment builder
Group:		Development/Python
License:        BSD
URL:            https://github.com/ekalinin/nodeenv
Source0:        https://github.com/ekalinin/nodeenv/archive/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
nodeenv (node.js virtual environment) is a tool to create isolated node.js
environments.
It creates an environment that has its own installation directories, that
doesn’t share libraries with other node.js virtual environments.

#------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Node.js virtual environment builder
Group:		Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
# test dependencies
BuildRequires:    python3egg(coverage)
BuildRequires:    python3egg(flake8)
BuildRequires:    python3egg(mock)
BuildRequires:    python3egg(pytest)

Requires:       python3egg(setuptools)

%description -n python3-%{pypi_name}
nodeenv (node.js virtual environment) is a tool to create isolated node.js
environments.
It creates an environment that has its own installation directories, that
doesn’t share libraries with other node.js virtual environments.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7238 |21cr|python-nosexcover-1.0.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name nosexcover

Name:           python-%{pypi_name}
Version:        1.0.11
Release:        2
Summary:        Extends nose.plugins.cover to add Cobertura-style XML reports
Group:          Development/Python
License:        BSD
URL:            http://github.com/cmheisel/nose-xcover/
Source0:        %{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)

%description
A companion to the built-in nose.plugins.cover, this plugin will write out an
XML coverage report to a file named coverage.xml.

It will honor all the options you pass to the Nose coverage plugin, especially
--cover-package.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
 
Requires:       python3egg(coverage) >= 3.4
Requires:       python3egg(nose)
Requires:       python3egg(setuptools)

%description -n python3-%{pypi_name}
A companion to the built-in nose.plugins.cover, this plugin will write out an
XML coverage report to a file named coverage.xml.

It will honor all the options you pass to the Nose coverage plugin, especially
--cover-package.

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7239 |21cr|python-ntlm-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name python-ntlm

Name:           %{upstream_name}
Version:        1.0.1
Release:        10
Summary:        NTLM support for python
Group:          Development/Python
License:        LGPL
URL:            https://pypi.python.org/pypi/python-ntlm
Source0:        https://pypi.python.org/packages/source/p/python2-ntlm/python-ntlm-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

%description
This package allows Python clients running on any operating system to provide
NTLM authentication to a supporting server.

python2-ntlm is probably most useful on platforms that are not Windows, since on
Windows it is possible to take advantage of platform-specific NTLM support.

%package -n python2-ntlm
%py2_migration_meta python2-ntlm
Summary:        NTLM support for python

%description -n python2-ntlm
This package allows Python clients running on any operating system to provide
NTLM authentication to a supporting server.

python-ntlm is probably most useful on platforms that are not Windows, since on
Windows it is possible to take advantage of platform-specific NTLM support.


%prep
%setup -q -n %{upstream_name}-%{version}

%build
CFLAGS="%{optflags}" python2 setup.py build

%install
python2 setup.py install --skip-build --root %{buildroot}

# dont install examples
rm -f %{buildroot}%{_bindir}/*

%files -n python2-ntlm
%doc ntlm_examples
%{py2_puresitedir}/ntlm
%{py2_puresitedir}/python_ntlm-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7240 |21cr|python-numarray-1.5.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	numarray

Name:           python-%{module}
Version:        1.5.2
Release:        12
Summary:        Numarray: array processing for numbers, strings, records and objects

Group:          Development/Python
License:        BSD-like
URL:            http://www.stsci.edu/resources/software_hardware/numarray/
Source0:        http://dl.sourceforge.net/sourceforge/numpy/%{module}-%{version}.tar.bz2
Patch0:		numarray-1.5.2-add_libm.patch

BuildRequires:  python2-devel

%description
Numarray is an array processing package designed to efficiently
manipulate large multi-dimensional arrays.  Numarray is modelled after
Numeric and features c-code generated from python2 template scripts,
the capacity to operate directly on arrays in files, and improved type
promotions.  Numarray provides support for manipulating arrays
consisting of numbers, strings, records, or objects using the same
basic infrastructure and syntax.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:        Numarray: array processing for numbers, strings, records and objects

%description -n python2-%{module}
Numarray is an array processing package designed to efficiently
manipulate large multi-dimensional arrays.  Numarray is modelled after
Numeric and features c-code generated from python template scripts,
the capacity to operate directly on arrays in files, and improved type
promotions.  Numarray provides support for manipulating arrays
consisting of numbers, strings, records, or objects using the same
basic infrastructure and syntax.


%package	-n python2-%{module}-devel
Summary:	Numarray Library C bindings
Group:		Development/Python
Requires:	python2-%{module} = %{version}

%description	-n python2-%{module}-devel
Install this to develop C bindings against the Numarray Python library.

%prep
%setup -n %{module}-%{version} -q
%patch0 -p0

%build
CFLAGS="%{optflags}" %{__python2} setup.py build

%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}

%files -n python2-%{module}
%defattr(-,root,root,-)
%doc *.txt
%exclude %{_includedir}/python%{py2_ver}/numarray
%{py2_platsitedir}/*

%files -n python2-%{module}-devel
%defattr(-,root,root,-)
%{_includedir}/python%{py2_ver}/numarray
%doc *.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7241 |21cr|python-numexpr-2.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	numexpr
%global __provides_exclude .*\\.so

Summary: 	Fast numerical array expression evaluator for Python and NumPy

Name:		python-%{pypi_name}
Version:	2.9.0
Release:	1
Source0:	%{pypi_source}
License:	MIT
Group:		Development/Python
Url:		http://numexpr.googlecode.com/
BuildRequires:	pkgconfig(lapack)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-numpy
BuildRequires:  python3-numpy-devel
BuildRequires:  python3-six
Requires:	python-numpy >= 1.6

%description
The numexpr package evaluates multiple-operator array expressions many
times faster than NumPy can. It accepts the expression as a string,
analyzes it, rewrites it more efficiently, and compiles it to faster
Python code on the fly. It's the next best thing to writing the
expression in C and compiling it with a specialized just-in-time (JIT)
compiler, i.e. it does not require a compiler at runtime.

%package -n python3-%{pypi_name}
Summary:        Fast numerical array expression evaluator for Python3 and NumPy

Group:          Development/Python
Requires:       python3-numpy

%description -n python3-%{pypi_name}
The numexpr package evaluates multiple-operator array expressions many
times faster than NumPy can. It accepts the expression as a string,
analyzes it, rewrites it more efficiently, and compiles it to faster
Python code on the fly. It's the next best thing to writing the
expression in C and compiling it with a specialized just-in-time (JIT)
compiler, i.e. it does not require a compiler at runtime.

%prep
%setup -qn %{pypi_name}-%{version}
sed -i "s|/usr/bin/env |/usr/bin/|" %{pypi_name}/cpuinfo.py

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{pypi_name}
%doc  LICENSE.txt
%dir %{py3_platsitedir}/%{pypi_name}
%{py3_platsitedir}/%{pypi_name}/*
%{py3_platsitedir}/%{pypi_name}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7242 |21cr|python-numpydoc-0.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-numpydoc
Version:        0.9.2
Release:        2
Summary:        Sphinx extension to support docstrings in Numpy format
Group:          Development/Python
License:        BSD
URL:            https://pypi.python.org/pypi/numpydoc
Source0:        https://pypi.io/packages/source/n/numpydoc/numpydoc-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3dist(matplotlib)
# for tests
BuildRequires:  python3dist(nose)
BuildRequires:	python3dist(pytest)

%description
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
following the Numpy/Scipy format to a form palatable to Sphinx.

%package -n python3-numpydoc
Summary:        Sphinx extension to support docstrings in Numpy format
Group:          Development/Python

%description -n python3-numpydoc
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
following the Numpy/Scipy format to a form palatable to Sphinx.

%prep
%setup -q -n numpydoc-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-numpydoc
%doc LICENSE.txt
%doc README.rst
%{py3_puresitedir}/numpydoc/
%{py3_puresitedir}/numpydoc-%{version}-py?.?.egg-info



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7243 |21cr|python-oauth2-1.5.211-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname oauth2

Summary:	Python support for OAuth
Name:		python-%{shortname}
Version:	1.5.211
Release:	5
Source0:	http://pypi.python.org/packages/source/o/%{shortname}/%{shortname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/simplegeo/python-oauth2
BuildArch:	noarch
BuildRequires:	python2-setuptools

%description
A fully tested, abstract interface to creating OAuth clients and servers.

%package -n python2-%{shortname}
%py2_migration_meta python2-%{shortname}
Summary:	Python support for OAuth

%description -n python2-%{shortname}
A fully tested, abstract interface to creating OAuth clients and servers.


%prep
%setup -q -n %{shortname}-%{version}

%build
%{__python2} setup.py build

%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot} --install-purelib=%{py2_puresitedir}
rm -rf %{py2_puresitedir}/tests

%files -n python2-%{shortname}
%{py2_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7244 |21cr|python-oauth2client-4.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname oauth2client

Name:           python-%{srcname}
Version:        4.0.0
Release:        2
Url:            https://github.com/google/oauth2client
Summary:        Python library for accessing resources protected by OAuth 2.0
License:        ASL 2.0
Group:          Networking/Other
Source:         https://github.com/google/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-setuptools
Conflicts:	python-google-api-python-client < 1.4

%description
This is a client library for accessing resources protected by OAuth 2.0.

%package -n python3-%{srcname}
Summary:        Python 3 library for accessing resources protected by OAuth 2.0
Group:          Networking/Other

%description -n python3-%{srcname}
This is a client library for accessing resources protected by OAuth 2.0.

%prep
%setup -q -n %{srcname}-%{version}
%autopatch -p1

%build
%py3_build

%install
%py3_install

# TODO: package tests into a separate package
rm -r $(find %{_buildrootdir} -type d -name 'tests')

%files -n python3-%{srcname}
%{py3_puresitedir}/%{srcname}
%{py3_puresitedir}/%{srcname}-%{version}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7245 |21cr|python-oauthlib-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	oauthlib

Name:		python-%{oname}
Version:	3.1.0
Release:	1
Summary:	Spec-compliant, thorough OAuth request-signing logic
Group:		Development/Python
License:	BSD
Url:		https://github.com/idan/oauthlib
Source0:	https://pypi.python.org/packages/source/o/oauthlib/oauthlib-%{version}.tar.gz
BuildArch:	noarch

%description
OAuthLib is a generic utility which implements the logic of OAuth without
assuming a specific HTTP request object or web framework. Use it to graft OAuth
client support onto your favorite HTTP library, or provider support onto your
favorite web framework. If you're a maintainer of such a library, write a thin
veneer on top of OAuthLib and get OAuth support for very little effort.

#------------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	Spec-compliant, thorough OAuth request-signing logic
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{oname}
OAuthLib is a generic utility which implements the logic of OAuth without
assuming a specific HTTP request object or web framework. Use it to graft OAuth
client support onto your favorite HTTP library, or provider support onto your
favorite web framework. If you're a maintainer of such a library, write a thin
veneer on top of OAuthLib and get OAuth support for very little effort.

%files -n python3-%{oname}
%doc LICENSE
%doc README.rst
%{python3_sitelib}/oauthlib/*.py*
%{python3_sitelib}/oauthlib/__pycache__
%{python3_sitelib}/oauthlib/oauth1/*.py*
%{python3_sitelib}/oauthlib/oauth1/__pycache__
%{python3_sitelib}/oauthlib/oauth1/rfc5849/*.py*
%{python3_sitelib}/oauthlib/oauth1/rfc5849/__pycache__
%{python3_sitelib}/oauthlib/oauth1/rfc5849/endpoints/*.py*
%{python3_sitelib}/oauthlib/oauth1/rfc5849/endpoints/__pycache__
%{python3_sitelib}/oauthlib/oauth2/*.py*
%{python3_sitelib}/oauthlib/oauth2/__pycache__
%{python3_sitelib}/oauthlib/oauth2/rfc6749/*.py*
%{python3_sitelib}/oauthlib/oauth2/rfc6749/__pycache__
%{python3_sitelib}/oauthlib/oauth2/rfc6749/clients/*.py*
%{python3_sitelib}/oauthlib/oauth2/rfc6749/clients/__pycache__
%{python3_sitelib}/oauthlib/oauth2/rfc6749/endpoints/*.py*
%{python3_sitelib}/oauthlib/oauth2/rfc6749/endpoints/__pycache__
%{python3_sitelib}/oauthlib/oauth2/rfc6749/grant_types/*.py*
%{python3_sitelib}/oauthlib/oauth2/rfc6749/grant_types/__pycache__
%{python3_sitelib}/oauthlib*.egg-info
%{python3_sitelib}/oauthlib/openid/connect/core/grant_types/*.py*
%{python3_sitelib}/oauthlib/openid/connect/core/grant_types/__pycache__
%{python3_sitelib}/oauthlib/openid/connect/core/*.py*
%{python3_sitelib}/oauthlib/openid/connect/core/__pycache__
%{python3_sitelib}/oauthlib/openid/connect/core/endpoints/*.py*
%{python3_sitelib}/oauthlib/openid/connect/core/endpoints/__pycache__
%{python3_sitelib}/oauthlib/openid/connect/*.py*
%{python3_sitelib}/oauthlib/openid/connect/__pycache__
%{python3_sitelib}/oauthlib/openid/*.py*
%{python3_sitelib}/oauthlib/openid/__pycache__

#------------------------------------------------------------------------------
%prep
%setup -q -n %{oname}-%{version}
find . -type f -exec chmod 644 {} \;

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7246 |21cr|python-odconverter-1.2-0.r27.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pyodconverter
%define	module	odconverter
%define	user	oooconvert
%define	service	ooo-converter
%define revno	r27

Summary:	Python OpenDocument Converter
Name:		python-%{module}
Version:	1.2
Release:	0.%{revno}.5
License:	LGPLv2.1+
Group:		Development/Python
Url:		http://www.artofsolving.com/opensource/pyodconverter
# Based on my branch at http://launchpad.net/pyodconverter, heavily adapted
# for use with DocMGR package, please don't replace, but rather just merge
# the diff between previous upstream version if ever updating, or even better,
# check with me first. (hopefully upstream author will agree on merging when
# suggested sometime soon...)
Source0:	%{oname}-%{version}.tar.gz
Source1:	ooo-converter.init
Source2:        %{name}.tmpfiles.d
Patch0:		pyodconverter-1.2-py3.patch
BuildArch:	noarch
Requires:	libreoffice-pyuno
Requires:	libreoffice-writer
Requires:	libreoffice-calc
Requires:	libreoffice-impress
Requires:	python3-pkg-resources
Requires(pre):	rpm-helper
Requires(preun):	rpm-helper
BuildRequires:	python3-setuptools

%description
PyODConverter is a Python module for automating office document conversions
from the command line using OpenOffice.org.

%package -n python3-%{module}
Summary:	Python OpenDocument Converter

%description -n python3-%{module}
PyODConverter is a Python module for automating office document conversions
from the command line using OpenOffice.org.


%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
python3 setup.py build

tee %{service}.sysconf << EOH
# OpenOffice.org
OOFFICE_HOST="localhost"
OOFFICE_PORT="8100"
# Any additional options to pass to ooffice can be set here
OOFFICE_OPTIONS="-norestore -nofirststartwizard -invisible -nodefault -nologo -nolockcheck"
EOH

%install
python3 setup.py install --root=%{buildroot}

install -d %{buildroot}%{_localstatedir}/run/%{service}
install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/%{service}
install -m644 %{service}.sysconf -D %{buildroot}%{_sysconfdir}/sysconfig/%{service}

install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%pre
%_pre_useradd %{user} %{_localstatedir}/run/%{service} /sbin/nologin

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service %{service}

%postun
%_postun_userdel %{user}

%preun
%_preun_service %{service}

%files -n python3-%{module}
%{_bindir}/DocumentConverter
%{_initrddir}/%{service}
%{_sysconfdir}/sysconfig/%{service}
%{_tmpfilesdir}/%{name}.conf
%{py3_puresitedir}/%{module}.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/%{oname}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7247 |21cr|python-odf-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	odfpy

Name:		python-odf
Version:	1.4.1
Release:	1
Summary:	Python library for manipulating OpenDocument files
Group:		Development/Python
License:	GPLv2+
URL:		http://forge.osor.eu/projects/odfpy/
Source0:	https://pypi.python.org/packages/source/o/odfpy/odfpy-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
Odfpy aims to be a complete API for OpenDocument in Python. Unlike
other more convenient APIs, this one is essentially an abstraction
layer just above the XML format. The main focus has been to prevent
the programmer from creating invalid documents. It has checks that
raise an exception if the programmer adds an invalid element, adds an
attribute unknown to the grammar, forgets to add a required attribute
or adds text to an element that doesn't allow it.
 
These checks and the API itself were generated from the RelaxNG
schema, and then hand-edited. Therefore the API is complete and can
handle all ODF constructions, but could be improved in its
understanding of data types.

#------------------------------------------------------------------
%package -n python3-odf
Summary:	Python library for manipulating OpenDocument files
Group:		Development/Python

%description -n python3-odf
Odfpy aims to be a complete API for OpenDocument in Python. Unlike
other more convenient APIs, this one is essentially an abstraction
layer just above the XML format. The main focus has been to prevent
the programmer from creating invalid documents. It has checks that
raise an exception if the programmer adds an invalid element, adds an
attribute unknown to the grammar, forgets to add a required attribute
or adds text to an element that doesn't allow it.
 
These checks and the API itself were generated from the RelaxNG
schema, and then hand-edited. Therefore the API is complete and can
handle all ODF constructions, but could be improved in its
understanding of data types.

%files -n python3-odf
%{_bindir}/*
%{_mandir}/man1/*
%{py3_puresitedir}/*egg-info
%{py3_puresitedir}/odf

#------------------------------------------------------------------


%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7248 |21cr|python-offtrac-0.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# sitelib for noarch packages, sitearch for others (remove the unneeded one)
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}

Name:           python-offtrac
Version:        0.1.0
Release:        6
Summary:        Trac xmlrpc library

Group:          Development/Python
License:        GPLv2+
URL:            http://fedorahosted.org/offtrac
Source0:        https://pypi.python.org/packages/source/o/offtrac/offtrac-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python-devel

%description
There is the offtrac python library which offers the TracServer class. This
object is how one interacts with a Trac instance via xmlrpc.

%files
%doc COPYING LICENSE README
# For noarch packages: sitelib
%{py_puresitedir}/*

#--------------------------------------------------------------------

%prep
%setup -q -n offtrac-%{version}

%build
%py_build

%install
python setup.py install -O1 --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7249 |21cr|python-ofxparse-0.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkgname ofxparse
%global sum  Python library fo

Name:           python-%{pkgname}
Version:	0.21
Release:	1
Summary:        %{sum}
License:        MIT
URL:            http://sites.google.com/site/ofxparse
Source0:	https://files.pythonhosted.org/packages/45/ae/98a2acfd06d15869c4b1be7fb74849c8a67cf15b65181f1fe879547e7494/ofxparse-0.21.tar.gz
BuildArch:      noarch
Group:       Development/Python

%description
ofxparse is a parser fo

Summary:        %{sum}

%package -n python3-%{pkgname}
Summary:        %{sum}
BuildRequires:  python3-setuptools
BuildRequires:  python3-nose
BuildRequires:  python3-beautifulsoup4
BuildRequires:  python3-six
Requires:       python3-beautifulsoup4
Requires:       python3-six
Group:          Development/Python

%description -n python3-%{pkgname}
description

%prep
%setup -q -n %{pkgname}-%{version}
rm -rf %{pkgname}.egg-info

%build
%py3_build

%install
%py3_install

%check
# Tests are currently failing (just suncorp.ofx in the default configuration),
# seems to be some kind of BeautifulSoup deficiency:
# https://github.com/jseutter/ofxparse/issues/107
python3 setup.py test || :

%files -n python3-%{pkgname}
%doc LICENSE
%doc README.rst AUTHORS
%{py3_puresitedir}/%{pkgname}
%{py3_puresitedir}/%{pkgname}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7250 |21cr|python-olefile-0.46-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name olefile
%global _description \
olefile is a Python package to parse, read and write Microsoft OLE2 files\
(also called Structured Storage, Compound File Binary Format or Compound\
Document File Format), such as Microsoft Office 97-2003 documents,\
vbaProject.bin in MS Office 2007+ files, Image Composer and FlashPix files,\
Outlook messages, StickyNotes, several Microscopy file formats, McAfee\
antivirus quarantine files, etc.

Name:           python-%{pypi_name}
Version:        0.46
Release:        1
Summary:        Python package to parse, read and write Microsoft OLE2 files
Group:          Development/Python

License:        BSD
URL:            https://pypi.python.org/pypi/olefile/
Source0:        https://files.pythonhosted.org/packages/source/o/%{pypi_name}/%{pypi_name}-%{version}.zip

BuildArch:      noarch


%description %{_description}

#-----------------------------------------------------
%package -n python2-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python2-devel
%{?python_provide:%python_provide python2-%{pypi_name}}

%description -n python2-%{pypi_name} %{_description}

Python2 version.

%files -n python2-%{pypi_name}
%doc README.md
%doc doc/License.rst
%{py2_puresitedir}/olefile-*.egg-info
%{py2_puresitedir}/olefile/

#-----------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name} %{_description}

Python3 version.

%files -n python3-%{pypi_name}
%doc README.md doc/_build_py3/html
%doc doc/License.rst
%{py3_puresitedir}/olefile-*.egg-info
%{py3_puresitedir}/olefile/

#-----------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}


%build
%py2_build

%py3_build
make -C doc html BUILDDIR=_build_py3


%install
%py2_install
%py3_install


%check
# Tests got left out in the 0.44 source archive
# https://github.com/decalage2/olefile/issues/56
# PYTHONPATH=%%{buildroot}%%{python2_sitelib} %%{__python2} tests/test_olefile.py
# PYTHONPATH=%%{buildroot}%%{python3_sitelib} %%{__python3} tests/test_olefile.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7251 |21cr|python-opengl-3.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname PyOpenGL
%define module opengl

Name:           python-%{module}
Version:        3.1.5
Release:        1
Summary:        Python bindings for OpenGL
License:        BSD
Group:          Development/Python
Url:            https://github.com/mcfletch/pyopengl
Source0:        https://pypi.python.org/packages/source/P/%{oname}/%{oname}-%{version}.tar.gz
Source1:        https://pypi.python.org/packages/source/P/%{oname}-accelerate/%{oname}-accelerate-%{version}.tar.gz


%description
PyOpenGL is the cross platform Python binding to OpenGL and related APIs. It
includes support for OpenGL v1.1, GLU, GLUT v3.7, GLE 3 and WGL 4. It also
includes support for dozens of extensions (where supported in the underlying
implementation).

PyOpenGL is inter-operable with a large number of external GUI libraries
for Python including (Tkinter, wxPython, FxPy, PyGame, and Qt). 
#--------------------------------------------------------------

%package -n     python3-%{module}
Summary:        Python 3 bindings for OpenGL

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(cython)
BuildRequires:  python3-numpy-devel
BuildRequires:	pkgconfig(freeglut)
BuildRequires:	swig
BuildRequires:	tcl
BuildRequires:	pkgconfig(tcl)
BuildRequires:	tk
BuildRequires:	pkgconfig(tk)
Requires:       glut
Requires:       python3egg(numpy)


%description -n python3-%{module}
PyOpenGL is the cross platform Python binding to OpenGL and related APIs. It
includes support for OpenGL v1.1, GLU, GLUT v3.7, GLE 3 and WGL 4. It also
includes support for dozens of extensions (where supported in the underlying
implementation).

PyOpenGL is inter-operable with a large number of external GUI libraries
for Python including (Tkinter, wxPython, FxPy, PyGame, and Qt). 

%files -n python3-%{module}
%doc %{oname}-%{version}/license.txt
%{py3_puresitedir}/%{oname}-%{version}-py%{python3_version}.egg-info
%{py3_puresitedir}/OpenGL/
%exclude %{py3_puresitedir}/OpenGL/Tk
%{py3_platsitedir}/OpenGL_accelerate/
%{py3_platsitedir}/%{oname}_accelerate-%{version}-py%{python3_version}.egg-info/
#----------------------------------------------------------------------------------

%package -n     python3-%{module}-tk
Summary:        %{oname} Python 3.x Tk widget
BuildArch:      noarch
Requires:       python3-%{module} = %{EVRD}
Requires:       tkinter3

%description -n python3-%{module}-tk
%{oname} Togl (Tk OpenGL widget) 1.6 support for Python 3.x.

%files -n python3-%{module}-tk
%{py3_puresitedir}/OpenGL/Tk

#----------------------------------------------------------------------------------

%prep
%setup -q -c -n %{oname}-%{version} -T -a0 -a1



%build
for dir in %{oname}-%{version} %{oname}-accelerate-%{version} ; do
    pushd $dir
    %py3_build
    popd
done


%install
for dir in %{oname}-%{version} %{oname}-accelerate-%{version} ; do
    pushd $dir
    %py3_install
    popd
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7252 |21cr|python-openid-3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-openid
Version:	3.2
Release:	1
Summary:	Python OpenID libraries
Group:		Development/Python
License:	ASL 2.0
Url:		Htps://github.com/openid/python-openid
Source0:	https://github.com/openid/python-openid/archive/refs/tags/3.2/%{name}-%{version}.tar.gz

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(django)
BuildRequires:	python3egg(psycopg2)
BuildRequires:	python3egg(defusedxml)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(cryptography)
BuildRequires:	python3egg(lxml)

Provides:	python3-openid == %{EVRD}
BuildArch:	noarch

%description
The OpenID library with batteries included.

Features of the 2.x.x series include:

 * Refined and easy-to-use API.

 * Extensive documentation.

 * Many storage implemetations including file-based, sqlite,
   postgresql, and mysql.

 * Simple examples to help you get started.

 * Licensed under the Apache Software License.

 * Includes a Simple Registration API

 * Versions 1.x.x supports protocol version 1; versions 2.x.x support
   both major OpenID protocol versions transparently

%files
%doc *.md LICENSE *.txt
%{py3_puresitedir}/openid/
%{py3_puresitedir}/python_openid2-*

#----------------------------------------------------------

%prep
%setup -q
rm -rf python3_openid.egg-info/

# remove the use of env python  python3
grep -Erl '^#!/usr/bin/env python$' | xargs \
sed -i -r '1 s|^#!/usr/bin/env python$|#!/usr/bin/python3|g'

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7253 |21cr|python-openpyxl-2.5.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name openpyxl
%global sum Python library to read/write Excel 2010 xlsx/xlsm files
%global desc openpyxl is a Python library to read/write\
Excel 2010 xlsx/xlsm/xltx/xltm files.\
It was born from lack of existing library to read/write natively\
from Python the Office Open XML format.

Name:           python-%{pypi_name}
Version:        2.5.4
Release:        3
Summary:        %{sum}
Group:		Office
License:        MIT and Python
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:        https://files.pythonhosted.org/packages/f6/13/3c1263b852377738eaa60f99602fb58cc8ad2fd1badb0b724b0d5b532727/openpyxl-2.5.4.tar.gz

BuildArch:      noarch

%description
%{desc}

%package -n     python2-%{pypi_name}
BuildRequires:  python-devel
BuildRequires:  python-setuptools
Requires:       python-jdcal
Requires:       python-et_xmlfile
Summary:        %{sum}
Provides:	python-%{pypi_name}

%description -n python2-%{pypi_name}
%{desc}


%package -n     python3-%{pypi_name}
Summary:        %{sum}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-jdcal
Requires:       python3-et_xmlfile

%description -n python3-%{pypi_name}
%{desc}


%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf *.egg-info


%build
%py2_build
%py3_build


%install
%py2_install
%py3_install


# No tests


%files -n python2-%{pypi_name}
%doc LICENCE.rst
%doc README.rst AUTHORS.rst
%{py_puresitedir}/%{pypi_name}-%{version}-py%{python2_version}.egg-info/
%{py_puresitedir}/%{pypi_name}/

%files -n python3-%{pypi_name}
%doc LICENCE.rst
%doc README.rst AUTHORS.rst
%{py3_puresitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%{py3_puresitedir}/%{pypi_name}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7254 |21cr|python-openpyxl-3.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name openpyxl
%global desc openpyxl is a Python library to read/write\
Excel 2010 xlsx/xlsm/xltx/xltm files.\
It was born from lack of existing library to read/write natively\
from Python the Office Open XML format.

Name:           python-%{pypi_name}
Version:        3.0.3
Release:        1
Summary:        Python library to read/write Excel 2010 xlsx/xlsm files
Group:		Office
License:        MIT and Python
URL:            https://openpyxl.readthedocs.io/
Source0:        https://files.pythonhosted.org/packages/95/8c/83563c60489954e5b80f9e2596b93a68e1ac4e4a730deb1aae632066d704/openpyxl-3.0.3.tar.gz

BuildArch:      noarch

%description
%{desc}

%package -n     python3-%{pypi_name}
Summary:        Python library to read/write Excel 2010 xlsx/xlsm files
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
Requires:       python3-jdcal
Requires:       python3-et_xmlfile

%description -n python3-%{pypi_name}
%{desc}


%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf *.egg-info


%build
%py3_build


%install
%py3_install


# No tests


%files -n python3-%{pypi_name}
%doc LICENCE.rst
%doc README.rst AUTHORS.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{py3_ver}.egg-info/
%{python3_sitelib}/%{pypi_name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7255 |21cr|python-opensesame-3.3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name python-opensesame

Name:		python-opensesame
Version:	3.3.14
Release:	1
Summary:	Graphical experiment builder
Group:		Sciences/Other
License:	GPLv2
Url:		http://www.cogsci.nl/software/%{pypi_name}
Source0:	%{pypi_source}
Patch0:		opensesame-3.3.10-desktopfile.patch

BuildArch:	noarch

%description
OpenSesame is a graphical experiment builder. OpenSesame provides an easy
to use, point-and-click interface for creating psychological experiments.
In addition to a powerful sketchpad for creating visual stimuli, OpenSesame
features a sampler and synthesizer for sound playback. For more complex tasks,
OpenSesame supports Python scripting using the built-in editor with syntax
highlighting.
#----------------------------------------

%package -n python3-opensesame
Summary:	Graphical experiment builder

BuildRequires:  python3egg(pyyaml)
BuildRequires:  python3egg(pygame)
BuildRequires:  python3-qt5-qscintilla
BuildRequires:  python3-qt5-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)

Requires:       python3egg(pyyaml)
Requires:       python3egg(markdown)
Requires:       python3egg(numpy)
Requires:       python3egg(pygame)
Requires:       python3egg(pyqt5)
Requires:       python3egg(simplejson)
Requires:       python3egg(webcolors)
Requires:       python3egg(python-fileinspector)
Requires:       python3egg(pyqode.python) >= 3.2.3
Recommends:     ipython
Recommends:     python3egg(pil)
Recommends:     python3egg(pyaudio)
Recommends:     python3egg(pyopengl)

%description -n python3-opensesame
OpenSesame is a graphical experiment builder. OpenSesame provides an easy
to use, point-and-click interface for creating psychological experiments.
In addition to a powerful sketchpad for creating visual stimuli, OpenSesame
features a sampler and synthesizer for sound playback. For more complex tasks,
OpenSesame supports Python scripting using the built-in editor with syntax
highlighting.

%files -n python3-opensesame
%doc readme.md
%{_bindir}/opensesame
%{_bindir}/opensesamerun
%{_datadir}/opensesame_extensions/
%{_datadir}/opensesame_plugins/
%{_datadir}/opensesame_resources/
%{_datadir}/applications/opensesame.desktop
%{_datadir}/icons/hicolor/scalable/apps/opensesame.svg
%{_datadir}/mime/packages/x-opensesame-experiment.xml
%{py3_puresitedir}/openexp/
%{py3_puresitedir}/libopensesame/
%{py3_puresitedir}/libqtopensesame/
%{py3_puresitedir}/python_opensesame-%{version}-*.egg-info
#----------------------------------------

%prep
%setup -q
%patch0 -p1
sed -i -e '1i#!/usr/bin/python3' libopensesame/misc.py

rm -fr *.egg-info

# fixed req ,pyqode3.python
find -type f -exec  sed -i 's/pyqode3.python/pyqode.python/g' {} \;


%build
%py3_build

%install
%py3_install
chmod 755 %{buildroot}%{py3_puresitedir}/libopensesame/misc.py
pushd mime
install -Dm 644 x-opensesame-experiment.xml %{buildroot}%{_datadir}/mime/packages/x-opensesame-experiment.xml
popd
chmod -x %{buildroot}%{_datadir}/opensesame_resources/theme/default/MokaSesame/index.theme

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7256 |21cr|python-orderedmultidict-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global         pypi_name      orderedmultidict

Name:           python-orderedmultidict
Version:	1.0.1
Release:	1
Summary:        An ordered multivalue dictionary
License:        UNLICENSE
Group:          Development/Python
URL:            https://github.com/gruns/orderedmultidict
Source0:	https://files.pythonhosted.org/packages/53/4e/3823a27d764bb8388711f4cb6f24e58453e92d6928f4163fdb01e3a3789f/orderedmultidict-1.0.1.tar.gz
BuildArch:      noarch

%description
A multivalue dictionary is a dictionary that can store multiple values
for the same key. An ordered multivalue dictionary is a multivalue
dictionary that retains the order of insertions and deletions.

%package -n python3-orderedmultidict
Summary:        Python3 implementation of OMDict
Group:          Development/Python
BuildRequires:  python3
BuildRequires:  python3-setuptools
BuildArch:      noarch

%description -n python3-orderedmultidict
%{summary}.

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-orderedmultidict
%doc  README.md LICENSE.md API.md
%{py3_puresitedir}/orderedmultidict
%{py3_puresitedir}/orderedmultidict-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7257 |21cr|python-orderedset-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname orderedset
%global user simonpercivall

Name:           python-%{srcname}
Version:        2.0.3
Release:        1
Summary:        Ordered set implementation in Cython
Group:		Development/Python
License:        BSD
URL:            https://github.com/%{user}/%{srcname}
Source0:        %{srcname}-%{version}.tar.gz
# https://github.com/simonpercivall/orderedset/pull/22
Patch0:         %{name}-comparison.patch

BuildRequires:  gcc
BuildRequires:  python3-devel
BuildRequires:  python3dist(coverage)
BuildRequires:  python3dist(cython)
BuildRequires:  python3dist(docutils)
BuildRequires:  python3dist(pygments)
BuildRequires:  python3dist(setuptools)

%global common_desc \
This package contains an ordered set implementation in Cython.  Features:\
- Works like a regular set, but remembers insertion order;\
- Is approximately 5 times faster than the pure Python implementation\
  overall (and 5 times slower than set);\
- Compatible with Python 2.6 through 3.6.;\
- Supports the full set interface;\
- Supports some list methods, like index and __getitem__.\
- Supports set methods against iterables.

%description
%common_desc

%package -n python3-%{srcname}
Summary:        Ordered set implementation in Cython

Provides:       bundled(jquery)
Provides:       bundled(js-underscore)

%description -n python3-%{srcname}
%common_desc

%prep
%autosetup -n %{srcname}-%{version} -p1

# Set the language level
sed -i "s/pyx'])/&, compiler_directives={'language_level': 3}/" setup.py

%build
%py3_build
rst2html --no-datestamp AUTHORS.rst AUTHORS.html
rst2html --no-datestamp HISTORY.rst HISTORY.html
rst2html --no-datestamp README.rst README.html

%install
%py3_install
chmod 0755 %{buildroot}%{py3_platsitedir}/%{srcname}/*.so

%check
PYTHONPATH=$PWD python3 setup.py test

%files -n python3-%{srcname}
%doc AUTHORS.html HISTORY.html README.html
%doc LICENSE
%{py3_platsitedir}/%{srcname}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7258 |21cr|python-osd-0.2.14-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyosd

Summary:	Python wrapper for libosd
Name:		python-osd
Version:	0.2.14
Release:	11
License:	GPLv2+
Group:		Development/Python
Url:		http://repose.cx/pyosd
Source0:	%{oname}-%{version}.tar.bz2
BuildRequires:	xosd-devel
BuildRequires:	pkgconfig(python)
Provides:	%{oname} = %{EVRD}

%description
PyOSD is a python2 module for displaying text on your X display, much like the
"On Screen Displays" used on TVs and some monitors.

%package -n python2-osd
%py2_migration_meta python2-osd
Summary:	Python wrapper for libosd

%description -n python2-osd
PyOSD is a python module for displaying text on your X display, much like the
"On Screen Displays" used on TVs and some monitors.

%files -n python2-osd
%doc AUTHORS README* ChangeLog COPYING
%dir %{py2_platsitedir}/pyosd
%{py2_platsitedir}/pyosd/*
%{py2_platsitedir}/_pyosd.so
%{py2_platsitedir}/pyosd-%{version}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot} 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7259 |21cr|python-oslo-messaging-12.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname oslo.messaging
%define oname oslo-messaging

Name:		python-%{oname}
Version:	12.2.2
Release:	1
Summary:	OpenStack common messaging library
Group:		Development/Python
License:	ASL 2.0
URL:		https://launchpad.net/oslo
Source0:	http://tarballs.openstack.org/oslo.messaging/%{sname}-%{version}.tar.gz


BuildArch:  noarch

%description
The Oslo project intends to produce a python library containing
infrastructure code shared by OpenStack projects. The APIs provided
by the project should be high quality, stable, consistent and generally
useful.

The Oslo messaging API supports RPC and notifications over a number of
different messaging transports.

#-----------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	OpenStack common messaging library
Group:		Development/Python

BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(pbr)

%description -n python3-%{oname}
The Oslo project intends to produce a python library containing
infrastructure code shared by OpenStack projects. The APIs provided
by the project should be high quality, stable, consistent and generally
useful.

The Oslo messaging API supports RPC and notifications over a number of
different messaging transports.

%files -n python3-%{oname}
%doc README.rst LICENSE
%{python3_sitelib}/oslo_messaging
%{python3_sitelib}/*.egg-info
%{_bindir}/oslo-messaging-send-notification

#-----------------------------------------------------------------------
%prep
%setup -q -n %{sname}-%{version}

# Remove bundled egg-info
rm -rf %{sname}.egg-info


# Remove the requirements file so that pbr hooks don't add it
# to distutils requires_dist config
rm -rf {test-,}requirements.txt

%build
%py3_build

%install
%py3_install

# Delete tests
rm -fr %{buildroot}%{python3_sitelib}/oslo_messaging/tests

#sphinx-build -b html





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7260 |21cr|python-oslo-sphinx-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname oslo.sphinx

Name:		python-oslo-sphinx
Version:	2.0
Release:	1
Summary:	OpenStack Sphinx Extensions
Group:		Development/Python
License:	Apache Software Licene
URL:		https://launchpad.net/oslo
Source0:	https://tarballs.openstack.org/%{oname}/oslosphinx-%{version}.tar.gz

BuildArch:	noarch

%description
The Oslo project intends to produce a python library containing
infrastructure code shared by OpenStack projects. The APIs provided
by the project should be high quality, stable, consistent and generally
useful.

The oslo-sphinx library contains Sphinx theme and extensions support used by
OpenStack.

#--------------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	OpenStack Sphinx Extensions
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pbr)

%description -n python3-%{oname}
The Oslo project intends to produce a python library containing
infrastructure code shared by OpenStack projects. The APIs provided
by the project should be high quality, stable, consistent and generally
useful.

The oslo-sphinx library contains Sphinx theme and extensions support used by
OpenStack.

%files -n python3-%{oname}
%doc LICENSE README.rst
%{python3_sitelib}/oslosphinx
%{python3_sitelib}/oslosphinx/__pycache__
%{python3_sitelib}/oslosphinx/theme
%{python3_sitelib}/*.egg-info

#--------------------------------------------------------------------------------
%prep
%setup -q -n oslosphinx-%{version}
# Remove bundled egg-info
rm -rf oslo_sphinx.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7261 |21cr|python-outcome-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname outcome
# what it's imported as
%global libname outcome
# name of egg info directory
%global eggname outcome
# package name fragment
%global pkgname outcome

%global _description \
Outcome provides a function for capturing the outcome of a Python function\
call, so that it can be passed around.


Name:		python-%{pkgname}
Version:	1.2.0
Release:	1
Summary:	Capture the outcome of Python function calls
Group:		Development/Python
License:	MIT or ASL 2.0
URL:		https://github.com/python-trio/outcome
Source0:	https://files.pythonhosted.org/packages/dd/91/741e1626e89fdc3664169e16300c59eefa4b23540cc6d6c70450f885098f/outcome-1.2.0.tar.gz
BuildArch:	noarch


%description %{_description}

#---------------------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:        %{summary}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
Requires:       python3-attrs

%description -n python3-%{pkgname} %{_description}

%files -n python3-%{pkgname}
%license LICENSE LICENSE.MIT LICENSE.APACHE2
%doc README.rst
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7262 |21cr|python-owslib-0.25.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Works with either ElementTree or python-lxml
%define	oname OWSLib
%define	module owslib

Summary:	Client library for OGC web services
Name:		python-%{module}
Version:	0.25.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://geopython.github.io/OWSLib
Source0:	https://github.com/geopython/OWSLib/archive/%{oname}-%{version}.tar.gz

BuildArch:	noarch

%description
Python2 module for client programming with Open Geospatial Consortium (OGC)
web service (hence OWS) interface standards, and their related content models.

#-----------------------------------------------------------------------------

%package -n     python3-%{module}
Summary:	Client library for OGC web services
Group:		Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
Requires:       python3egg(python-dateutil)
Requires:       python3egg(pyproj)
Requires:       python3egg(pytz)
Requires:       python3egg(requests)

Provides:	python3-%{module} = %{EVRD}

%description -n python3-%{module}
Python3 module for client programming with Open Geospatial Consortium (OGC)
web service (hence OWS) interface standards, and their related content models.

%files -n python3-%{module}
%doc *.rst LICENSE
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{oname}-%{version}-py*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

# Remove bundled egg-info
rm -rf %{oname}.egg-info
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7263 |21cr|python-packaging-20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module packaging

Name:           python-%{module}
Version:	20.0
Release:	1
Summary:        Core utilities for Python packages
License:        BSD or ASL 2.0
Group:          Development/Python
Url:            https://github.com/pypa/packaging
Source0:	https://files.pythonhosted.org/packages/c7/cf/d84b72480a556d9bd4a191a91b0a8ea71cb48e6f6132f12d9d365c51bdb6/packaging-20.0.tar.gz
BuildArch:      noarch

%description
python-packaging provides core utilities for Python
packages like utilities for dealing with versions,
specifiers, markers etc.

%package -n python2-%{module}
Summary:        %{summary}
BuildRequires:  pythonegg(setuptools)
BuildRequires:  pkgconfig(python2)
Requires:       python2egg(six)

%description -n python2-%{module}
python-packaging provides core utilities for Python
packages like utilities for dealing with versions,
specifiers, markers etc.

%files -n python2-%{module}
%doc LICENSE LICENSE.APACHE LICENSE.BSD
%{py2_puresitedir}/%{module}/
%{py2_puresitedir}/%{module}-*.egg-info/

#---------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
Requires:       python3egg(six)

%description -n python3-%{module}
python3-packaging provides core utilities for Python
packages like utilities for dealing with versions,
specifiers, markers etc.

%files -n python3-%{module}
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-*.egg-info/
#---------------------------------------------------------

%prep
%setup -n %{module}-%{version}
rm -rf %{module}.egg-info
cp -a . %{py3dir}

%build
%py2_build
pushd %{py3dir}
%py3_build
popd

rm -rf html/.{doctrees,buildinfo}
rm -rf html/_static/fonts/

%install
%py2_install
pushd %{py3dir}
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7264 |21cr|python-pafy-0.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pafy

Name:           python-%{module}
Version:        0.5.5
Release:        1
Summary:        Python library to download YouTube content and retrieve metadata
Group:          Development/Python
License:        GPLv2
URL:            https://github.com/mps-youtube/pafy
Source0:        https://github.com/mps-youtube/pafy/archive/v%{version}/%{module}-%{version}.tar.gz

BuildArch:      noarch

%description
Features
- Retreive metadata such as viewcount, duration, rating, author, thumbnail,
  keywords
- Download video or audio at requested resolution / bitrate / format /
  filesize
- Command line tool (ytdl) for downloading directly from the command line
- Retrieve the URL to stream the video in a player such as vlc or mplayer
- Works with age-restricted videos and non-embeddable videos
- Small, standalone, single importable module file (pafy.py)
- Select highest quality stream for download or streaming
- Download video only (no audio) in m4v or webm format
- Download audio only (no video) in ogg or m4a format
- Retreive playlists and playlist metadata
- Works with Python 2.6+ and 3.3+
- Optionally depends on youtube-dl (recommended; more stable)
#-------------------------------------------------------------------------------

%package -n     %{module}-ytdl
Summary:        A Youtube downloader


%description -n %{module}-ytdl
Command line tool (ytdl) for downloading directly from the command line

%files -n %{module}-ytdl
%doc README.rst
%{_bindir}/ytdl
#-------------------------------------------------------------------------------
%package -n     python3-%{module}
Summary:        %{summary}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  youtube-dl
BuildRequires:  python3egg(yt-dlp)

Suggests:   %{module}-ytdl = %{EVRD}


%description -n python3-%{module}
Features
- Retreive metadata such as viewcount, duration, rating, author, thumbnail,
  keywords
  - Download video or audio at requested resolution / bitrate / format /
    filesize
    - Command line tool (ytdl) for downloading directly from the command line
    - Retrieve the URL to stream the video in a player such as vlc or mplayer
    - Works with age-restricted videos and non-embeddable videos
    - Small, standalone, single importable module file (pafy.py)
    - Select highest quality stream for download or streaming
    - Download video only (no audio) in m4v or webm format
    - Download audio only (no video) in ogg or m4a format
    - Retreive playlists and playlist metadata
    - Works with Python 2.6+ and 3.3+
    - Optionally depends on youtube-dl (recommended; more stable)

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info

#-------------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# switch to yt-dlp, hell bad choice...
find -type f -exec  sed -i 's/youtube_dl/yt_dlp/g' {} \;

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7265 |21cr|python-Pallets-Sphinx-Themes-1.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Pallets-Sphinx-Themes

Name:		python-%{module}
Version:	1.1.2
Release:	2
Summary:	Sphinx themes for Pallets and related projects
Url:		https://github.com/pallets/pallets-sphinx-themes/
Source0:	http://pypi.python.org/packages/source/P/%{module}/%{module}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
BuildArch:	noarch

%description
Themes for the Pallets projects. If you're writing an extension, use the
appropriate theme to make your documentation look consistent.

Available themes:

-   flask
-   jinja
-   werkzeug
-   click.

#-----------------------------------------------------

%package -n python3-%{module}
Summary:	Sphinx themes for Pallets and related projects
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Themes for the Pallets projects. If you're writing an extension, use the
appropriate theme to make your documentation look consistent.

Available themes:

-   flask
-   jinja
-   werkzeug
-   click.

%files -n python3-%{module}
%{py3_puresitedir}/pallets_sphinx_themes
%{py3_puresitedir}/Pallets_Sphinx_Themes*.egg-info

#-----------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf src/%{module}.egg-info

cp -a . %{py3dir}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7266 |21cr|python-pandas-1.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# filter provided private python extension libs
%define __noautoprov %{python3_sitearch}/.*\\.so
%define module pandas

 
Summary:        Powerful data structures for data analysis, time series,and statistics
Name:           python-%{module}
Version:        1.3.4
Release:        1
Group:          Development/Python
License:        BSD
URL:            http://%{module}.pydata.org/
Source0:        https://pypi.io/packages/source/p/%{module}/%{module}-%{version}.tar.gz

%description
%{module} is a Python package providing fast, flexible, and expressive data
structures designed to make working with structured (tabular, multidimensional,
potentially heterogeneous) and time series data both easy and intuitive. It
aims to be the fundamental high-level building block for doing practical,
real world data analysis in Python. 

#-------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	    Powerful data structures for data analysis, time series,and statistics
Group:		    Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(numpy)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(python-dateutil)
BuildRequires:	python3egg(cython)

Requires: 	python3egg(python-dateutil)
Requires: 	python3egg(xlrd)


%description -n python3-%{module}
%{module} is a Python package providing fast, flexible, and expressive data
structures designed to make working with structured (tabular, multidimensional,
potentially heterogeneous) and time series data both easy and intuitive. It
aims to be the fundamental high-level building block for doing practical,
real world data analysis in Python. 

%files -n python3-%{module}
%doc *.md LICENSE
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}-%{version}-*.egg-info/
#-------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7267 |21cr|python-pandocfilters-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname pandocfilters

Name:       python-%{srcname}
Version:    1.5.0
Release:    1
Summary:    Utilities for writing pandoc filters in python
Source0:    https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
License:    BSD
Group:      Development/Python
Url:        http://github.com/jgm/pandocfilters
BuildArch:  noarch

%description
Pandoc filters are pipes that read a JSON serialization of the Pandoc AST
from stdin, transform it in some way, and write it to stdout.

They can be used with pandoc (>= 1.12) either using pipes ::

    pandoc -t json -s | ./caps.py | pandoc -f json

or using the ``--filter`` (or ``-F``) command-line option. ::

    pandoc --filter ./caps.py -s

For more on pandoc filters, see the pandoc documentation under ``--filter``
and `the tutorial on writing filters`__.

__ http://johnmacfarlane.net/pandoc/scripting.html

For an alternative library for writing pandoc filters, with
a more "Pythonic" design, see `panflute`__.

__ https://github.com/sergiocorreia/panflute

Compatibility
----------------
Pandoc 1.16 introduced link and image `attributes` to the existing
`caption` and `target` arguments, requiring a change in pandocfilters
that breaks backwards compatibility. Consequently, you should use:

- pandocfilters version <= 1.2.4 for pandoc versions 1.12--1.15, and
- pandocfilters version >= 1.3.0 for pandoc versions >= 1.16.

Pandoc 1.17.3 (pandoc-types 1.17.*) introduced a new JSON format.
pandocfilters 1.4.0 should work with both the old and the new
format.

#---------------------------------------------------------------------

%package -n python2-%{srcname}
%py2_migration_meta python2-%{srcname}
Summary:    Utilities for writing pandoc filters in python
Group:      Development/Python
BuildRequires: python2-devel
BuildRequires: python2-setuptools

%description -n python2-%{srcname}
Pandoc filters are pipes that read a JSON serialization of the Pandoc AST
from stdin, transform it in some way, and write it to stdout.

They can be used with pandoc (>= 1.12) either using pipes ::

    pandoc -t json -s | ./caps.py | pandoc -f json

or using the ``--filter`` (or ``-F``) command-line option. ::

    pandoc --filter ./caps.py -s

For more on pandoc filters, see the pandoc documentation under ``--filter``
and `the tutorial on writing filters`__.

__ http://johnmacfarlane.net/pandoc/scripting.html

For an alternative library for writing pandoc filters, with
a more "Pythonic" design, see `panflute`__.

__ https://github.com/sergiocorreia/panflute

Compatibility
----------------
Pandoc 1.16 introduced link and image `attributes` to the existing
`caption` and `target` arguments, requiring a change in pandocfilters
that breaks backwards compatibility. Consequently, you should use:

- pandocfilters version <= 1.2.4 for pandoc versions 1.12--1.15, and
- pandocfilters version >= 1.3.0 for pandoc versions >= 1.16.

Pandoc 1.17.3 (pandoc-types 1.17.*) introduced a new JSON format.
pandocfilters 1.4.0 should work with both the old and the new
format.

%files -n python2-%{srcname}
%doc LICENSE
%doc README.rst
%{py2_puresitedir}/pandocfilters.py*
%{py2_puresitedir}/pandocfilters*.egg-info

#---------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:    Utilities for writing pandoc filters in python
Group:      Development/Python
BuildRequires: python3-devel
BuildRequires: python3-setuptools

%description -n python3-%{srcname}
Pandoc filters are pipes that read a JSON serialization of the Pandoc AST
from stdin, transform it in some way, and write it to stdout.

They can be used with pandoc (>= 1.12) either using pipes ::

    pandoc -t json -s | ./caps.py | pandoc -f json

or using the ``--filter`` (or ``-F``) command-line option. ::

    pandoc --filter ./caps.py -s

For more on pandoc filters, see the pandoc documentation under ``--filter``
and `the tutorial on writing filters`__.

__ http://johnmacfarlane.net/pandoc/scripting.html

For an alternative library for writing pandoc filters, with
a more "Pythonic" design, see `panflute`__.

__ https://github.com/sergiocorreia/panflute

Compatibility
----------------
Pandoc 1.16 introduced link and image `attributes` to the existing
`caption` and `target` arguments, requiring a change in pandocfilters
that breaks backwards compatibility. Consequently, you should use:

- pandocfilters version <= 1.2.4 for pandoc versions 1.12--1.15, and
- pandocfilters version >= 1.3.0 for pandoc versions >= 1.16.

Pandoc 1.17.3 (pandoc-types 1.17.*) introduced a new JSON format.
pandocfilters 1.4.0 should work with both the old and the new
format.

%files -n python3-%{srcname}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/__pycache__
%{py3_puresitedir}/pandocfilters.py*
%{py3_puresitedir}/pandocfilters*.egg-info

#---------------------------------------------------------------------
%prep
%setup -q -n %{srcname}-%{version}

%build
%py3_build
%py2_build

%install
%py2_install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7268 |21cr|python-parallel-0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname parallel
%define pname py%{oname}
%define minversion 2.2

Summary: Python parallel port extension
Name: python-%{oname}
Version: 0.2
Release: 8
Source0: %{pname}-%{version}.tar.bz2
License: GPL
Group: Development/Python
URL: http://pyserial.sourceforge.net/pyparallel.html
BuildRequires: python3-devel
BuildArch: noarch
Requires: python3
Provides: %{pname}

%description
This module encapsulates the access for the parrallel port. It provides 
backends for Python running on Windows, Linux and BSD. Other platforms 
are possible too but not yet integrated.

This module is still under development, but it may be useful for developers.

%package -n python3-%{oname}
Summary: Python parallel port extension

%description -n python3-%{oname}
This module encapsulates the access for the parrallel port. It provides 
backends for Python running on Windows, Linux and BSD. Other platforms 
are possible too but not yet integrated.

This module is still under development, but it may be useful for developers.


%prep
%setup -q -n %{pname}-%{version}

%build
perl -pi -e "s/data_files = None/data_files = {}/" setup.py
perl -pi -e "s/\r\n/\n/" *.txt PKG-INFO %oname/*.py
#python2 setup.py build

%install
python3 setup.py install --root %{buildroot}

%files -n python3-%{oname}
%doc CHANGES.txt LICENSE.txt PKG-INFO README.txt
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7269 |21cr|python-parsedatetime-2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname parsedatetime

Name:           python-%{realname}
Version:        2.4
Release:        3
Summary:        Parse human-readable date/time strings in Python

Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/bear/%{realname}
Source0:        https://github.com/bear/parsedatetime/archive/v2.4.tar.gz
BuildArch:      noarch
BuildRequires:  epydoc

BuildRequires:  python3-coverage
BuildRequires:  python3-devel
BuildRequires:  python3-flake8
BuildRequires:  python3-mccabe
BuildRequires:  python3-icu
#BuildRequires:  python3-pytest
#BuildRequires:  python3-pytest-runner
#BuildRequires:  python3-pytest-cov
BuildRequires:  python3-setuptools
#BuildRequires:  python3-tox

%description
parsedatetime is a python module that can parse human-readable date/time
strings.

%package doc
Summary:       Documentation for the parsedatetime python module

%description doc
This package contains the generated HTML documentation for the 
parsedatetime python module

%package -n python3-%{realname}
Summary:        Parse human-readable date/time strings in Python

%description -n python3-%{realname}
parsedatetime is a python module that can parse human-readable date/time
strings.

%prep
%setup -q -n %{realname}-%{version}

%build
%py3_build

# Build documentation
epydoc --html --config epydoc.conf

%install
python3 setup.py install --skip-build --root %{buildroot}
# It makes no sense to ship all these tests in the package
# just use them during the build
rm -rf %{buildroot}%{py3_puresitedir}/%{realname}/tests

%check
# a bunch of tox tests have been added and not all packaged
# so mockbuild will fail without network.
# comment this next line when rebuilding locally with network
exit 0
tox -e py27 --sitepackages

pushd %{py3dir}
ver=$(python3 -c 'import sys; print("%s.%s" % (sys.version_info.major, sys.version_info.minor))')
if [ $ver == "3.4" ]; then
    tox -e py34 --sitepackages
elif [ $ver == "3.6" ]; then
    tox -e py36 --sitepackages
else
    echo "Wrong python version"
    exit 1
fi

%files doc
%doc docs/ examples/

%files -n python3-%{realname}
%doc LICENSE.txt
%doc AUTHORS.txt CHANGES.txt README.rst
%{py3_puresitedir}/%{realname}
%{py3_puresitedir}/%{realname}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7270 |21cr|python-parsley-1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Parsley

Name:		python-parsley
Version:	1.2
Release:	4
Summary:	Parsing and pattern matching made easy
Source0:	http://pypi.python.org/packages/source/P/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://launchpad.net/parsley
BuildRequires:	python3egg(setuptools)

BuildArch:	noarch

%description
Parsley is a parsing library for people who find parsers scary or
annoying. I wrote it because I wanted to parse a programming language,
and tools like PLY or ANTLR or Bison were very hard to understand and
integrate into my Python code. Most parser generators are based on LL
or LR parsing algorithms that compile to big state machine
tables. It was like I had to wake up a different section of my brain
to understand or work on grammar rules.

Parsley, like pyparsing and ZestyParser, uses the PEG algorithm, so
each expression in the grammar rules works like a Python
expression. In particular, alternatives are evaluated in order, unlike
table-driven parsers such as yacc, bison or PLY.

Parsley is an implementation of OMeta, an object-oriented
pattern-matching language developed by Alessandro Warth at
http://tinlizzie.org/ometa/ . For further reading, see Warth's PhD
thesis, which provides a detailed description of OMeta:
http://www.vpri.org/pdf/tr2008003_experimenting.pdf.


%package -n python3-parsley
Summary:	Parsing and pattern matching made easy

%description -n python3-parsley
Parsley is a parsing library for people who find parsers scary or
annoying. I wrote it because I wanted to parse a programming language,
and tools like PLY or ANTLR or Bison were very hard to understand and
integrate into my Python code. Most parser generators are based on LL
or LR parsing algorithms that compile to big state machine
tables. It was like I had to wake up a different section of my brain
to understand or work on grammar rules.

Parsley, like pyparsing and ZestyParser, uses the PEG algorithm, so
each expression in the grammar rules works like a Python
expression. In particular, alternatives are evaluated in order, unlike
table-driven parsers such as yacc, bison or PLY.

Parsley is an implementation of OMeta, an object-oriented
pattern-matching language developed by Alessandro Warth at
http://tinlizzie.org/ometa/ . For further reading, see Warth's PhD
thesis, which provides a detailed description of OMeta:
http://www.vpri.org/pdf/tr2008003_experimenting.pdf.



%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-parsley
%doc README
%{py3_puresitedir}/ometa
%{py3_puresitedir}/parsley.py*
%{py3_puresitedir}/terml
%{py3_puresitedir}/Parsley*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7271 |21cr|python-parso-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	parso

Name:		python-%{pypi_name}
Version:	0.8.3
Release:	1
Summary:	A Python Parser
Group:		Development/Python
License:	MIT
URL:		https://github.com/davidhalter/parso
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildArch:	noarch

%description
Parso is a Python parser that supports error recovery and round-trip
parsing for different Python versions (in multiple Python versions).
Parso is also able to list multiple syntax errors in your python file.

Parso has been battle-tested by jedi. It was pulled out of jedi to be
useful for other projects as well.

Parso consists of a small API to parse Python and analyse the syntax
tree.
#-------------------------------------------------------------
%package -n	python3-%{pypi_name}
Summary:	A Python 3 Parser
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pytest)

BuildArch:	noarch

%description -n	python3-%{pypi_name}
Parso is a Python 3 parser that supports error recovery and round-trip
parsing for different Python versions (in multiple Python versions).
Parso is also able to list multiple syntax errors in your python file.

Parso has been battle-tested by jedi. It was pulled out of jedi to be
useful for other projects as well.

Parso consists of a small API to parse Python and analyse the syntax
tree.

%files -n python3-%{pypi_name}
%doc *.rst *.txt
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
#-------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

%check
pytest-3



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7272 |21cr|python-passlib-1.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module passlib

Name:		python-passlib
Version:	1.7.2
Release:	1
Summary:	Comprehensive password hashing framework supporting over 20 schemes
Group:		Development/Python
License:	BSD and Beerware and Copyright only
URL:		http://passlib.googlecode.com
Source0:	https://pypi.python.org/packages/source/p/passlib/passlib-%{version}.tar.gz

BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

# docs generation requires python-cloud-sptheme, which isn't packaged yet.
# so we won't generate the docs yet.
#BuildRequires:	python-sphinx >= 1.0
#BuildRequires:	python-cloud-sptheme

%description
Passlib is a password hashing library for Python 2 & 3, which provides
cross-platform implementations of over 20 password hashing algorithms,
as well as a framework for managing existing password hashes. It's
designed to be useful for a wide range of tasks, from verifying a hash
found in /etc/shadow, to providing full-strength password hashing for
multi-user application.

#---------------------------------------------------------------------
%package -n python3-passlib
Summary:	Python library to display tabular data in tables
Group:		Development/Python

%description -n python3-passlib
Passlib is a password hashing library for Python 2 & 3, which provides
cross-platform implementations of over 20 password hashing algorithms,
as well as a framework for managing existing password hashes. It's
designed to be useful for a wide range of tasks, from verifying a hash
found in /etc/shadow, to providing full-strength password hashing for
multi-user application.

%files -n python3-passlib
%doc LICENSE README
%{python3_sitelib}/*

#---------------------------------------------------------------------

%prep
%setup -q -n passlib-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7273 |21cr|python-pastescript-3.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name PasteScript

Summary:	A pluggable command-line frontend
Name:		python-pastescript
Version:	3.2.1
Release:	2
Source0:	https://pypi.io/packages/source/P/PasteScript/PasteScript-%{version}.tar.gz
License:	MIT 
Group:		Development/Python
Url:		http://pythonpaste.org/script/
BuildArch:	noarch

%description
PasteScript is a pluggable command-line tool. Included features:

* Create file layouts for packages. For instance, 
  paster create --template=basic_package MyPackage 
  will create a setuptools-ready file layout.
* Serve up web applications with configurations based on 
  paste.deploy.

#--------------------------------------------------------------------

%package -n python3-pastescript
Summary:	A pluggable command-line frontend
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	python3-sphinx
BuildRequires:	python3-paste-deploy

Requires:	python3-paste >= 1.3
Requires:	python3-paste-deploy
Requires:	python3-pkg-resources

%description -n python3-pastescript
PasteScript is a pluggable command-line tool. Included features:

* Create file layouts for packages. For instance, 
  paster create --template=basic_package MyPackage 
  will create a setuptools-ready file layout.
* Serve up web applications with configurations based on 
  paste.deploy.

%files -n python3-pastescript
%doc html/
%{_bindir}/paster
%{python3_sitelib}/paste/script
%{python3_sitelib}/%{pypi_name}-*.pth
%{python3_sitelib}/%{pypi_name}-*.egg-info

#--------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}


%install
%__python3 setup.py install --root=%{buildroot}
sphinx-build -b html docs html
rm -f %{py3_puresitedir}/tests/__init__.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7274 |21cr|python-pathspec-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pathspec

Name:           python-%{module}
Version:        0.9.0
Release:        1
Summary:        Utility library for gitignore style pattern matching of file paths
Group:          Development/Python
License:        MPLv2.0
URL:            https://github.com/cpburnz/python-path-specification
Source:         https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)
Provides:       python3-%{module} = %{EVRD}

BuildArch:      noarch

%description
Utility library for gitignore style pattern matching of file paths.

%files
%doc *.rst LICENSE
%{py3_puresitedir}/pathspec
%{py3_puresitedir}/pathspec-%{version}-py%{python3_version}.egg-info

#-------------------------------------------------------------------


%prep
%setup -qn %{module}-%{version}
rm -fr *-egg.info

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{py3_puresitedir} pytest-3



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7275 |21cr|python-pathtools-0.1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	pathtools

Name:		python-%{module}
Version:	0.1.2
Release:	3
Summary:	Pattern matching and various utilities for file systems paths
Group:		Development/Python
License:	MIT
URL:		https://github.com/gorakhargosh/pathtools
Source0:	https://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
%{name} is a Python API library for common path
and pattern functionality.

%package -n	python3-%{module}
Summary:	Pattern matching and various utilities for file systems paths
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools

%description -n	python3-%{module}
%{name} is a Python 3 API library for common path
and pattern functionality.

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

# remove hashbang from lib's files
sed -i -e '/#!\//d' pathtools/*.py

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{module}
%doc AUTHORS README
%doc LICENSE
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7276 |21cr|python-pdfkit-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	pdfkit

Summary(ru_RU.UTF-8): Обертка Python для wkhtmltopdf
Summary:        Python wrapper for wkhtmltopdf
Name:           python-%{pypi_name}
Version:        1.0.0
Release:        1
License:        MIT
Group:          Development/Python
URL:            https://github.com/JazzCore/python-pdfkit
Source0:        https://github.com/JazzCore/python-pdfkit/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3-pkg-resources
Requires:       wkhtmltopdf

%description
Python-PDFKit is a wrapper for wkhtmltopdf utility to convert HTML to PDF using Webkit.

%description -l ru_RU.UTF-8
Python-PDFKit - это обертка для утилиты wkhtmltopdf для конвертации HTML в PDF с использованием Webkit.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary(ru_RU.UTF-8): Обертка Python 3 для wkhtmltopdf
Summary:        Python 3 wrapper for wkhtmltopdf
Group:          Development/Python

%description -n python3-%{pypi_name}
Python 3 version of Python-PDFKit, a wrapper for wkhtmltopdf utility to convert HTML to PDF using Webkit.

%description -l ru_RU.UTF-8 -n python3-%{pypi_name}
Версия Python 3 пакета Python-PDFKit, обертки для утилиты wkhtmltopdf для конвертации HTML в PDF с использованием Webkit.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}
%dir %{python3_sitelib}/%{pypi_name}-%{version}.dist-info
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/*

#------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{version}

# for autoinstall BuildRequires
%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7277 |21cr|python-pdfminer-20181108-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name pdfminer.six

Name:           python-pdfminer
Version:        20181108
Release:        3
Summary:        PDF parser and analyzer
Group:          Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/pdfminer.six
Source0:        https://github.com/goulu/pdfminer/archive/%{version}/%{upstream_name}-%{version}.tar.gz
BuildArch:      noarch

%description
PDFMiner is a tool for extracting information from PDF documents. Unlike other
PDF-related tools, it focuses entirely on getting and analyzing text data.
PDFMiner allows to obtain the exact location of texts in a page, as well as
other information such as fonts or lines. It includes a PDF converter that can
transform PDF files into other text formats (such as HTML). It has an
extensible PDF parser that can be used for other purposes instead of text
analysis.

%package -n     python3-%{upstream_name}
Summary:        PDF parser and analyzer for Python 3
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description -n python3-%{upstream_name}
PDFMiner is a tool for extracting information from PDF documents. Unlike other
PDF-related tools, it focuses entirely on getting and analyzing text data.
PDFMiner allows to obtain the exact location of texts in a page, as well as
other information such as fonts or lines. It includes a PDF converter that can
transform PDF files into other text formats (such as HTML). It has an
extensible PDF parser that can be used for other purposes instead of text
analysis.

This is the Python 3 version of the package.

%prep
%setup -q -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{upstream_name}
%{_bindir}/dumppdf.py
%{_bindir}/latin2ascii.py
%{_bindir}/pdf2txt.py
%{py3_puresitedir}/pdfminer
%{py3_puresitedir}/pdfminer.six-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7278 |21cr|python-pdm-pep517-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pdm-pep517

Name:           python-pdm-pep517
Version:        1.0.6
Release:        1
Summary:        Yet another PEP 517 backend
Group:          Development/Python
License:        MIT AND Apache-2.0 AND Public Domain AND BSD-3-Clause AND ISC
URL:            https://pdm.fming.dev
Source0:        %{pypi_source pdm-pep517}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
#BuildRequires:  gcc
#BuildRequires:  git
#BuildRequires:  pytest

%global _description %{expand:
This is the backend for PDM projects, while you can also use it alone. It
reads the metadata of PEP 621 format and coverts it to Core metadata.
}

%description %_description

#------------------------------------------------
%package -n python3-pdm-pep517
Summary:        %{summary}
Group:          Development/Python

%description -n python3-pdm-pep517 %_description

%files -n python3-pdm-pep517 -f %{pyproject_files}
%doc README.md
%license LICENSE

#------------------------------------------------

%prep
%autosetup -p1 -n pdm-pep517-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files pdm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7279 |21cr|python-pecan-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pecan

Name:		python-%{oname}
Version:	1.3.2
Release:	1
Summary:	A WSGI object-dispatching web framework
Source0:	https://files.pythonhosted.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://www.pecanpy.org/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:		python3-logutils >= 0.3
BuildRequires:		python3-mako >= 0.4
BuildRequires:		python3-singledispatch
BuildRequires:		python3-six
BuildRequires:		python3-sqlalchemy
BuildRequires:		python3-webob >= 1.2
BuildRequires:		python3-webtest >= 1.3.3
Requires:		python3-logutils >= 0.3
Requires:		python3-mako >= 0.4
Requires:		python3-singledispatch
Requires:		python3-six
Requires:		python3-webob >= 1.2
Requires:		python3-webtest >= 1.3.3
Provides:		python3-%{oname} = %{EVRD}

%description
A WSGI object-dispatching web framework,
designed to be lean and fast, with few dependencies

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || :

%files
%doc LICENSE README.rst
%{_bindir}/%{oname}
%{_bindir}/gunicorn_pecan
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7280 |21cr|python-peewee-3.15.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name peewee

Summary:	A small, expressive orm
Name:		python-%{pypi_name}
Version:	3.15.3
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://mypage.org/mymodule
Source0:	https://files.pythonhosted.org/packages/b7/4a/ba48c5a99a86cad44f89766dfa9937efe18f8d61d8fb55d0cd9073d2b40c/peewee-3.15.3.tar.gz
BuildRequires:	python3dist(apsw)
BuildRequires:	python3dist(flask)
BuildRequires:	python3dist(psycopg2)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sphinx)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlcipher)
BuildRequires:	pkgconfig(sqlite3)

%description
A small, expressive ORM written in python with built-in support for sqlite,
mysql and postgresql and special extensions like hstore. For flask
integration, including an admin interface and RESTful API, check out
flask-peewee.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A small, expressive orm
Group:		Development/Python

%description -n python3-%{pypi_name}
A small, expressive ORM written in python with built-in support for sqlite,
mysql and postgresql and special extensions like hstore. For flask
integration, including an admin interface and RESTful API, check out
flask-peewee.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/pwiz
%{python3_sitearch}/peewee.py*
%{python3_sitearch}/playhouse/
%{python3_sitearch}/__pycache__/*
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
#Point pwiz.py and pskel to Python 3
sed -i '1s=^#!/usr/bin/\(python\|env python.*\)$=#!%{__python3}=' pwiz.py
chmod -x runtests.py examples/diary.py examples/analytics/run_example.py examples/twitter/run_example.py
%py3_shebang_fix runtests.py examples/diary.py examples/analytics/run_example.py examples/twitter/run_example.py

%build
%py3_build

%install
%py3_install
rm %{buildroot}%{python3_sitearch}/pwiz.*
rm %{buildroot}%{python3_sitearch}/__pycache__/pwiz.*
mv %{buildroot}%{_bindir}/{pwiz.py,pwiz}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7281 |21cr|python-pefile-2022.5.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pefile


Name:           python-pefile
Version:	2022.5.30
Release:	1
Summary:        Python module for working with Portable Executable files
License:        MIT
Group:          Development/Python
Url:            https://github.com/erocarrera/pefile
Source0:        https://github.com/erocarrera/%{module}/releases/download/v%{version}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

BuildArch:      noarch

%description
Pefile is a multi-platform Python module to read and work with Portable
Executable (aka PE) files. Most of the information in the PE Header is
accessible, as well as all the sections, section's information and data.
pefile requires some basic understanding of the layout of a PE file. Armed
with it it's possible to explore nearly every single feature of the file.
Some of the tasks that pefile makes possible are:
* Modifying and writing back to the PE image
* Header Inspection
* Sections analysis
* Retrieving data
* Warnings for suspicious and malformed values
* Packer detection with PEiD’s signatures
* PEiD signature generation.


#--------------------------------------------------------------------------------
%package -n python3-%{module}

Summary:    Python module for working with Portable Executable files
Requires:   python3egg(future)

%description -n python3-%{module}
Pefile is a multi-platform Python module to read and work with Portable
Executable (aka PE) files. Most of the information in the PE Header is
accessible, as well as all the sections, section's information and data.
pefile requires some basic understanding of the layout of a PE file. Armed
with it it's possible to explore nearly every single feature of the file.
Some of the tasks that pefile makes possible are:
* Modifying and writing back to the PE image
* Header Inspection
* Sections analysis
* Retrieving data
* Warnings for suspicious and malformed values
* Packer detection with PEiD’s signatures
* PEiD signature generation.


%files -n python3-%{module}
%doc README* LICENSE
%{py3_puresitedir }/*

#--------------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
sed -i -e '/^#!\//, 1d' pefile.py

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7282 |21cr|python-pep8-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define	debug_package %{nil}
%define module pep8

Name:		python-%{module}
Version:	1.7.1
Release:	1
Summary:	Python3 style guide checker
Group:		Development/Python
License:	MIT
URL:		https://github.com/jcrocholl/pep8
Source0:	https://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)


%description
pep8 is a tool to check your Python code against some of the style conventions
in PEP 8. It has a plug-in architecture, making new checks easy, and its output
is parse-able, making it easy to jump to an error location in your editor.

#-------------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Python3 style guide checker
Group:		Development/Python
Requires:       python3egg(setuptools)

%description -n python3-%{module}
pep8 is a tool to check your Python code against some of the style conventions
in PEP 8. It has a plug-in architecture, making new checks easy, and its output
is parse-able, making it easy to jump to an error location in your editor.


%files -n python3-%{module}
%doc CHANGES.txt 
%{_bindir}/pep8
%{python3_sitelib}/*
%{_mandir}/man1/%{module}.1*

#-------------------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build
pushd docs 
make man
popd

%install
%py3_install
install -Dm644  docs/_build/man/%{module}.1 %{buildroot}%{_mandir}/man1/%{module}.1*
chmod +x %{buildroot}%{python3_sitelib}/pep8.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7283 |21cr|python-perlmodule-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	pyperl

Name:		python-perlmodule
Version:	1.0.3
Release:	1
Summary:	Perl for python2 - use perl code in python
Group:		Development/Python
License:	Artistic
Url:		http://search.cpan.org/dist/%{oname}/
Source0:	https://cpan.metacpan.org/authors/id/S/SH/SHLOMIF/pyperl-%{version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel
BuildRequires:	perl(ExtUtils::Embed)

%description
Perlmodule makes it possible to embed perl interpreters in any
python2 program. It can be used to invoke arbitrary perl code, load
any perl modules, and make calls directly into perl functions. The
perl code invoked can call back into python2 as it sees fit.

#-----------------------------------------------------------------
%package -n python3-perlmodule
Summary:	Perl for python - use perl code in python
Group:		Development/Python
Provides:	%{oname} = %{EVRD}

%description -n python3-perlmodule
Perlmodule makes it possible to embed perl interpreters in any
python program. It can be used to invoke arbitrary perl code, load
any perl modules, and make calls directly into perl functions. The
perl code invoked can call back into python as it sees fit.

%files -n python3-perlmodule
%doc README TODO Changes
%{perl_vendorarch}/auto/Python
%{perl_vendorarch}/Python.pm
%{perl_vendorarch}/Python
%{_mandir}/man3/*
%{py3_platsitedir}/*

#-----------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%check
%__python3 setup.py test

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7284 |21cr|python-persistent-4.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	persistent
%global __provides_exclude cPickleCache.so|_timestamp.so|cPersistence.so

Name:		python-%{oname}
Version:	4.9.1
Release:	1
Summary:	Translucent persistent objects
Group:		Development/Python
Url:		http://www.zope.org/Products/ZODB
Source0:	https://files.pythonhosted.org/packages/ab/67/0ba2d556daf102658a9d990e677179a3389c82a06f288bc818205ba8f7e2/persistent-4.9.1.tar.gz
Source100:	%{name}.rpmlintrc
License:	ZPL 2.1
BuildRequires:	pkgconfig(python3) 
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(manuel)
BuildRequires:	python3-cffi

%description
This package contains a generic persistence implementation for Python. It
forms the core protocol for making objects interact "transparently" with
a database such as the ZODB.

Please see the Sphinx documentation (``docs/index.rst``) for further
information.

#-------------------------------------------------------------

%package -n python3-%{oname}
Summary:	Translucent persistent objects
Group:		Development/Python

%description -n python3-%{oname}
This package contains a generic persistence implementation for Python. It
forms the core protocol for making objects interact "transparently" with
a database such as the ZODB.

Please see the Sphinx documentation (``docs/index.rst``) for further
information.

%files -n python3-%{oname}
%doc *.rst *.txt
%{py3_incdir}/persistent/*
%{py3_platsitedir}/persistent/*
%{py3_platsitedir}/persistent*.egg-info
#-------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7285 |21cr|python-pg-5.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global sourcename	PyGreSQL
%global module	pg
%global pgver	12.7

Name:		python-%{module}
Version:	5.2.2
Release:	1
Summary:	A Python client library for PostgreSQL
Group:		Development/Python
URL:		http://www.pygresql.org/
License:	PostgreSQL or Python
Source0:	http://www.pygresql.org/files/%{sourcename}-%{version}.tar.gz

%description
PostgreSQL is an advanced Object-Relational database management system.
The PyGreSQL package provides a module for developers to use when writing
Python code for accessing a PostgreSQL database.

%package -n python3-%{module}
Summary:	A Python client library for PostgreSQL
Group:		Development/Python
BuildRequires:	postgresql-devel >= %{pgver}
BuildRequires:	pkgconfig(python3)
BuildRequires:  python3egg(setuptools)


%description -n python3-%{module}
PostgreSQL is an advanced Object-Relational database management system.
The PyGreSQL package provides a module for developers to use when writing
Python code for accessing a PostgreSQL database.

%files -n python3-%{module}
%doc docs/*.rst *.txt *.rst
%{py3_platsitedir}/*.so
%{py3_platsitedir}/*.py
%{py3_platsitedir}/__pycache__
%{py3_platsitedir}/*.egg-info

#---------------------------------------------------------
%prep
%setup -qn %{sourcename}-%{version}
rm -fr *.egg-info
# PyGreSQL releases have execute bits on all files
find -type f -exec chmod 644 {} +
# call python3 in all .py files
find -type f -exec  perl -pi -e "s|/usr/bin/python|/usr/bin/python3|" {} \;

%build
%py3_build

%install
%py3_install
chmod +x %{buildroot}%{py3_platsitedir}/{pg,pgdb}.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7286 |21cr|python-phply-1.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name phply

Name:           python-%{upstream_name}
Version:        1.2.5
Release:        1
Summary:        PHP parser written in Python
Group:          Development/Python
License:        LGPL
URL:            https://github.com/ramen/phply
Source0:        https://github.com/viraptor/phply/archive/%{upstream_name}-%{version}.tar.gz
BuildArch:      noarch

%description
phply is a parser for the PHP programming language written using PLY, a
Lex/YACC-style parser generator toolkit for Python.

%package -n     python3-%{upstream_name}
Summary:        PHP parser written in Python
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(ply)

%description -n python3-%{upstream_name}
phply is a parser for the PHP programming language written using PLY, a

%prep
%setup -q -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install
mv %{buildroot}%{_bindir}/phplex %{buildroot}%{_bindir}/phplex3
mv %{buildroot}%{_bindir}/phpparse %{buildroot}%{_bindir}/phpparse3

rm -rf %{buildroot}%{py3_puresitedir}/tests

%files -n python3-%{upstream_name}
%{_bindir}/phplex3
%{_bindir}/phpparse3
%{py3_puresitedir}/phply
%{py3_puresitedir}/phply-%{version}-py%{python3_version}.egg-info
%{py3_puresitedir}/phply-%{version}-py%{python3_version}-nspkg.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7287 |21cr|python-pickleshare-0.7.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pickleshare
%global __noautoreq '.*pathlib2.*

Name:           python-%{pypi_name}
Version:        0.7.4
Release:        2
Group:          Development/Python
Summary:        Tiny 'shelve'-like database with concurrency support
License:        MIT
URL:            https://github.com/pickleshare/pickleshare
Source0:        https://pypi.python.org/packages/3.4/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)

%description
PickleShare - a small 'shelve' like datastore with concurrency support

Like shelve, a PickleShareDB object acts like a normal dictionary.
Unlike shelve, many processes can access the database simultaneously.
Changing a value in database is immediately visible to other processes
accessing the same database.
Concurrency is possible because the values are stored in separate files.


%package -n     python3-%{pypi_name}
Group:          Development/Python
Summary:        Tiny 'shelve'-like database with concurrency support

%description -n python3-%{pypi_name}
PickleShare - a small 'shelve' like datastore with concurrency support

Like shelve, a PickleShareDB object acts like a normal dictionary.
Unlike shelve, many processes can access the database simultaneously.
Changing a value in database is immediately visible to other processes
accessing the same database.
Concurrency is possible because the values are stored in separate files.

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%{py3_puresitedir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7288 |21cr|python-pifpaf-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pifpaf

Name:		python-pifpaf
Version:	2.5.0
Release:	1
Summary:	Pifpaf is a suite of fixtures to manage daemons 
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/jd/pifpaf
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Pifpaf is a suite of fixtures and a command-line tool that allows to start and
stop daemons for a quick throw-away usage. 

#------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Pifpaf is a suite of fixtures to manage daemons
Group:		Development/Python

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pbr)

Requires:	python3-cliff
Requires:	python3-stevedore
Requires:	python3-pbr
Requires:	python3-six
Requires:	python3-fixtures
Requires:	python3-pyxattr
Requires:	python3-click

%description -n python3-%{pypi_name}
Pifpaf is a suite of fixtures and a command-line tool that allows to start and
stop daemons for a quick throw-away usage. 

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/pifpaf*
%{python3_sitelib}/*

#-----------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7289 |21cr|python-pikepdf-5.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pikepdf

Name:           python-%{pypi_name}
Version:        5.6.1
Release:        2
Summary:        Read and write PDFs with Python, powered by qpdf
Group:          Development/Python
License:        MPLv2.0
URL:            https://github.com/pikepdf/pikepdf
Source0:        %{pypi_source}
Patch0:         pikepdf-requirements.patch
# https://github.com/pikepdf/pikepdf/commit/277019d02
Patch0001:		0001-Remove-PointerHolder-for-qpdf11.patch
# https://github.com/pikepdf/pikepdf/commit/600e1fc4a4feda5e
Patch0002:		0002-Adjust-for-other-QPDF-11-API-changes.patch
# https://github.com/pikepdf/pikepdf/commit/1ce12e1155d2
Patch0003:		0003-qpdf-11-getCropBox-and-getTrimBox-take-an-additional.patch
BuildRequires:  pkgconfig(libqpdf) >= 10.4.0
BuildRequires:  pkgconfig(lcms2)
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
# Tests:
BuildRequires:  poppler

%description
pikepdf is a Python library for reading and writing PDF files. pikepdf is
based on QPDF, a powerful PDF manipulation and repair library.

#-------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
pikepdf is a Python library for reading and writing PDF files. pikepdf is
based on QPDF, a powerful PDF manipulation and repair library.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE.txt
%doc README.md

#-------------------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:        pikepdf documentation
Group:          Documentation
# Not autorequired because it's a Fedora-specific subpackage.
BuildRequires:  python3-ipython
BuildRequires:  python3-sphinx
BuildRequires:  python3-tomli
BuildRequires:  python3-sphinx-issues
BuildRequires:  python3-sphinx-design

%description -n python-%{pypi_name}-doc
Documentation for pikepdf

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE.txt

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

# Drop coverage requirements
sed -i -e '/coverage/d' -e '/pytest-cov/d' setup.cfg

# We don't build docs against the installed version, so force the version.
sed -i -e "s/release = .\+/release = '%{version}'/g" docs/conf.py


%generate_buildrequires
%pyproject_buildrequires -r

# Fix building with qpdf 11
# https://github.com/pikepdf/pikepdf/commit/0b0b07924
grep -Irl 'QPDFObject::object_type_e' | xargs sed -i -e 's,QPDFObject::object_type_e,qpdf_object_type_e,g' || :

%build
export PIP_USE_FEATURE="in-tree-build"
%pyproject_wheel

# generate html docs
export PYTHONPATH=%{pyproject_build_lib}
pushd docs
sphinx-build-3 . ../html
popd
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}


%install
%pyproject_install
%pyproject_save_files %{pypi_name}


%check
# test fail on abf build, local build with no error
#%%pytest -ra

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7290 |21cr|python-pivy-0.6.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define srcname pivy

Summary:	Pivy is a Coin binding for Python
Name:		python-%{srcname}
Version:	0.6.8
Release:	2
License:	BSD
Group:		Development/Python
Url:		https://coin3d.github.io/
Source0:	https://github.com/coin3d/pivy/archive/%{version}/%{srcname}-%{version}.tar.gz
Patch0:		pivy-cmake_config.patch
Patch1:		pivy-cmake.patch
Patch2:		0002-Fix-the-qmake-executable-name.patch
BuildRequires:	cmake
BuildRequires:	swig
BuildRequires:	pkgconfig(Coin) >= 4.0.0
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(SoQt) >= 1.6.0
BuildRequires:	pkgconfig(xmu)

%description
Pivy is a Coin binding for Python. Coin is a high-level 3D graphics
library with a C++ Application Programming Interface. Coin uses
scene-graph data structures to render real-time graphics suitable for
mostly all kinds of scientific and engineering visualization applications.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	Pivy is a Coin binding for Python 3
Group:		Development/Python

%description -n python3-%{srcname}
Pivy is a Coin binding for Python3. Coin is a high-level 3D graphics
library with a C++ Application Programming Interface. Coin uses
scene-graph data structures to render real-time graphics suitable for
mostly all kinds of scientific and engineering visualization applications.

%files -n python3-%{srcname}
%{python3_sitearch}/%{srcname}/
%{python3_sitearch}/Pivy-0.6.8*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

sed -i 's|@LIBDIR@|%{_libdir}|g' distutils_cmake/CMakeLists.txt

%build
%cmake
%make

%install
%makeinstall_std -C build
# for generate egg-info
%py3_install

chmod +x %{buildroot}%{python3_sitearch}/%{srcname}/sogui.py

find %{buildroot}%{python3_sitearch} -name "*.py" -exec sed -i "s|#!/usr/bin/env python|#!%{__python3}|" {} \;

%if %{__isa_bits} == 64
# put egg-info to python3_sitearch
mv %{buildroot}%{python3_sitelib}/Pivy-* %{buildroot}%{python3_sitearch}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7291 |21cr|python-pkgconfig-1.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pkgconfig
%global _docdir_fmt %{name}

Name:           python-%{srcname}
Version:        1.1.0
Release:        6
Summary:        A Python interface to the pkg-config command line tool
Group:		Development/Python
License:        MIT
URL:            https://github.com/matze/%{srcname}
Source0:        https://github.com/matze/%{srcname}/archive/v%{version}.tar.gz
BuildArch:      noarch

%description
pkgconfig is a Python module to interface with the pkg-config command line
tool and supports Python 2.6+.

It can be used to

* check if a package exists
* check if a package meets certain version requirements
* query CFLAGS and LDFLAGS
* parse the output to build extensions with setup.py

If pkg-config is not on the path, raises EnvironmentError.

%package -n python3-%{srcname}
Summary:        A Python3 interface to the pkg-config command line tool
Group:		Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
# For tests
BuildRequires:  python3-nose

%description -n python3-%{srcname}
pkgconfig is a Python3 module to interface with the pkg-config command line
tool and supports Python 2.6+.

It can be used to

* check if a package exists
* check if a package meets certain version requirements
* query CFLAGS and LDFLAGS
* parse the output to build extensions with setup.py

If pkg-config is not on the path, raises EnvironmentError.

%prep
%setup -q -n %{srcname}-%{version}
# Strip shbang
find -name \*.py | xargs sed -i '/^#!\/usr\/bin\/.*python/d'

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%check
python3 setup.py test

%files -n python3-%{srcname}
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7292 |21cr|python-planet-2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	planet

Name:		python-%{module}
Summary:	Flexible RDF/RSS/Atom feed aggregator
Version:	2.0
Release:	10
Source:		http://www.planetplanet.org/download/%{module}-%{version}.tar.bz2
Patch1:		planet-1.0-no-shebang.patch
Patch2:		planet-js-sanitize.patch
Patch3:		planet-2.0-media-content-title-fix.patch
URL:		http://www.planetplanet.org/
License:	Python
Group:		Networking/News
BuildArch:	noarch
BuildRequires:	python2-devel
BuildRequires:  python2-setuptools
Requires:	python

%description
Planet is a flexible feed aggregator, this means that it downloads feeds
and aggregates their content together into a single combined feed with
the latest news first.

It uses Mark Pilgrim's Ultra-liberal feed parser so can read from RDF, RSS
and Atom feeds and Tomas Styblo's template library to output static files
in unlimited formats based on a series of templates.

%package -n python2-%{module}
Summary:	Flexible RDF/RSS/Atom feed aggregator

%description -n python2-%{module}
Planet is a flexible feed aggregator, this means that it downloads feeds
and aggregates their content together into a single combined feed with
the latest news first.

It uses Mark Pilgrim's Ultra-liberal feed parser so can read from RDF, RSS
and Atom feeds and Tomas Styblo's template library to output static files
in unlimited formats based on a series of templates.


%prep
%setup -q -n %{module}-%{version}
%apply_patches

%build
%py2_build

%install
python2 setup.py install --skip-build --root=%{buildroot}

# (cg) Calling the binary "planet" breaks the "import planet" in the code itself...
mv %{buildroot}%{_bindir}/planet.py %{buildroot}%{_bindir}/planet-aggregator
rm -rf %{buildroot}%{py2_puresitedir}/planet/tests %{buildroot}%{_bindir}/runtests.py


%files -n python2-%{module}
%doc AUTHORS INSTALL NEWS PKG-INFO THANKS README examples
%{_bindir}/planet*
%dir %{py2_puresitedir}/planet
%{py2_puresitedir}/*.egg-info
%{py2_puresitedir}/planet/*.py*
%dir %{py2_puresitedir}/planet/compat_logging
%{py2_puresitedir}/planet/compat_logging/*.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7293 |21cr|python-plaster-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name plaster
%global sum Application configuration settings abstraction layer
%global desc plaster is a loader interface around multiple \
configuration file formats. It exists to define a common API for \
applications to use when they wish to load configuration. The library \
itself does not aim to handle anything except a basic API that \
applications may use to find and load configuration settings. Any \
specific constraints should be implemented in a loader which can be \
registered via an entry point.

Name:		python-%{pypi_name}
Version:	1.0
Release:	1
License:	MIT
Summary:	%{sum}
Group:		Development/Python
URL:		https://github.com/Pylons/%{pypi_name}
Source0:	%{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz

BuildRequires:	make
BuildRequires:	python3-devel
BuildRequires:	python3-pytest
BuildRequires:	python3-setuptools
BuildRequires:	python3-sphinx
BuildArch:	noarch

%description
%{desc}

#-----------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Documentation

%description doc
Contains the documentation for %{name}.

%files doc
%license LICENSE.txt
%doc docs/_build/html
%doc CHANGES.rst
%doc README.rst

#-----------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{sum}
Group:		Development/Python
Requires:	python3-setuptools

%description -n python3-%{pypi_name}
%{desc}

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/*.egg-info

#-----------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# The plaster docs upstream only build if plaster is installed. Since we are building plaster docs
# from a source checkout, let's insert plaster into the path.
sed -i "s:import plaster:sys.path.insert(0, os.path.join(os.path.dirname(__file__), '..', 'src'))\nimport plaster:" docs/conf.py

# Related to the above, upstream plaster gets the version for the docs by using pkg_resources which
# can only work if plaster is installed. Let's just substitute the version in since we know what it
# is.
sed -i "s/version = pkg_resources.*/version = '%{version}'/" docs/conf.py

# Upstream docs use pylons_sphinx_themes, which isn't packaged for Fedora yet. Let's just convert it
# to use the standard sphinx theme for now.
sed -i "/import pylons_sphinx_themes/d" docs/conf.py
sed -i "/html_theme_path =.*/d" docs/conf.py
sed -i "/html_theme =.*/d" docs/conf.py
sed -i "/.*github_url.*/d" docs/conf.py


%build
make %{?_smp_mflags} -C docs html
rm -rf docs/_build/html/.buildinfo

%py3_build


%install
%py3_install


%check
PYTHONPATH="./src" py.test-3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7294 |21cr|python-plaster-pastedeploy-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name plaster-pastedeploy
%global sum A PasteDeploy binding to the plaster configuration loader

Name:		python-%{pypi_name}
Version:	0.7
Release:	1
License:	MIT
Summary:	%{sum}
Group:		Development/Python
URL:		https://github.com/Pylons/plaster_pastedeploy
Source0:	%{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz

BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-paste-deploy >= 2.0.0
BuildRequires:	python3-plaster >= 0.5
BuildRequires:	python3-pytest
BuildArch:	noarch


%description
plaster_pastedeploy is a plaster plugin that provides a
plaster.Loader that can parse ini files according to the standard set
by PasteDeploy. It supports the wsgi plaster protocol, implementing
the plaster.protocols.IWSGIProtocol interface.

#---------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{sum}
Group:		Development/Python
Requires:	python3-paste-deploy >= 1.5.0
Requires:	python3-plaster >= 0.5
Requires:	python3-setuptools

%description -n python3-%{pypi_name}
plaster_pastedeploy is a plaster plugin that provides a
plaster.Loader that can parse ini files according to the standard set
by PasteDeploy. It supports the wsgi plaster protocol, implementing
the plaster.protocols.IWSGIProtocol interface.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc CHANGES.rst
%doc README.rst
%{python3_sitelib}/plaster_pastedeploy
%{python3_sitelib}/*.egg-info

#---------------------------------------------------------

%prep
%autosetup -n plaster_pastedeploy-%{version}

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH="./src" py.test-3


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7295 |21cr|python-plotly-5.23.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name plotly

# off currently very slow and not needed RPM generator if it is installed during local builds
%global __typelib_requires %{nil}
%global __typelib_provides %{nil}

Summary:	An open-source, interactive data visualization library
Name:		python-%{pypi_name}
Version:	5.23.0
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://plotly.com/python/
Source0:	%pypi_source
BuildRequires:	pkgconfig(python3)
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3dist(packaging)
BuildRequires:	python3dist(pip)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(tenacity)
BuildArch:		noarch

%define _description %{expand:
plotly.py is an interactive, open-source, and browser-based graphing library
for Python.
 
Built on top of plotly.js, plotly.py is a high-level, declarative charting
library. plotly.js ships with over 30 chart types, including scientific charts,
3D graphs, statistical charts, SVG maps, financial charts, and more.
 
plotly.py is MIT Licensed. Plotly graphs can be viewed in Jupyter notebooks,
standalone HTML files, or hosted online using Chart Studio Cloud.
 
Documentation is available at https://plotly.com/python/}

%description
%{_description}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE*
%doc README*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# remove jupyterlab dep, not required for build and not packaged (from Fedora)
sed -i "s/\"jupyterlab~=3.0;python_version>='3.6'\",//" pyproject.toml

# for autoinstall BuildRequires
%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files plotly _plotly_utils _plotly_future_
#jupyterlab_plotly

# Remove not needed files (we do not package Jupyter due to tones of deps).
# Also, /usr/etc is probably an incorrect location.
# Consider not putting /usr/share/jupyter into pythonX-plotly package if
# they get packaged to avoid conficts of pythonX-plotly and pythonY-plotly.
rm -fvr %{buildroot}%{_prefix}/etc/jupyter \
        %{buildroot}%{_datadir}/jupyter \
        %{buildroot}%{python3_sitelib}/jupyterlab*
sed -i '\@^{%python3_sitelib}/jupyterlab@d' %{pyproject_files}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7296 |21cr|python-plyvel-0.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstream_name plyvel
%global module_name plyvel

Name:           python-%{upstream_name}
Version:        0.9
Release:        6
Summary:        Python interface to the LevelDB embedded database library
License:        BSD
Group:		Development/Python
URL:            https://github.com/wbolster/plyvel
Source0:        http://pypi.python.org/packages/source/p/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
Patch0:         0001-py.test.mark.skipif-wants-str-not-bool.patch
BuildRequires:  pkgconfig(leveldb)
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest
BuildRequires:  python3-cython

%description
Plyvel is a fast and feature-rich Python interface to the LevelDB embedded 
database library. It has a rich feature set, high performance, and a friendly 
Pythonic API.

%package -n python3-%{upstream_name}
Summary:        Python 3 interface to the LevelDB embedded database library

%description -n python3-%{upstream_name}
Plyvel is a fast and feature-rich Python interface to the LevelDB embedded 
database library. It has a rich feature set, high performance, and a friendly 
Pythonic API.

%prep
%setup -q -n %{upstream_name}-%{version}
%patch0 -p1
rm -rf *.egg-info

%build
cython --cplus --fast-fail --annotate plyvel/_plyvel.pyx
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%check
python3 setup.py build_ext --inplace || :
py.test-%{python3_version} || :

%files -n python3-%{upstream_name}
%doc README.rst LICENSE.rst NEWS.rst
%{py3_platsitedir}/%{module_name}
%{py3_platsitedir}/%{module_name}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7297 |21cr|python-pmw-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Pmw

Summary:	Python toolkit for building compound Tkinter widgets
Name:		python-pmw
Version:	2.1.1
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://www.dscpl.com.au/pmw
Source0:	https://files.pythonhosted.org/packages/78/c7/d2e18a08af53d64eb658c5ca9b4655317c3d3e54589fe86e3a3bf0b51762/Pmw-2.1.1.tar.gz
Requires:	blt
Provides:	%{oname} = %{EVRD}
Buildarch:	noarch

%description
Pmw is a toolkit for building high-level compound widgets in Python
using the Tkinter module. It consists of a set of base classes and a
library of flexible and extensible megawidgets built on this foundation.
These megawidgets include notebooks, comboboxes, selection widgets, paned
widgets, scrolled widgets and dialog windows. 

#----------------------------------------------------------------------------

%package -n python3-pmw
Summary:	Python 3 toolkit for building compound Tkinter widgets
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
Requires:	blt
Requires:	python3
Requires:	tkinter3

%description -n python3-pmw
Pmw is a toolkit for building high-level compound widgets in Python 3
using the Tkinter module. It consists of a set of base classes and a
library of flexible and extensible megawidgets built on this foundation.
These megawidgets include notebooks, comboboxes, selection widgets, paned
widgets, scrolled widgets and dialog windows.

%files -n python3-pmw
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/*.egg-info

#----------------------------------------------------------------------------

%package -n python2-pmw
%py2_migration_meta python2-pmw
Summary:	Python 3 toolkit for building compound Tkinter widgets
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
Requires:	blt
Requires:	python2
Requires:	tkinter

%description -n python2-pmw
Pmw is a toolkit for building high-level compound widgets in Python 2
using the Tkinter module. It consists of a set of base classes and a
library of flexible and extensible megawidgets built on this foundation.
These megawidgets include notebooks, comboboxes, selection widgets, paned
widgets, scrolled widgets and dialog windows.

%files -n python2-pmw
%{py2_puresitedir}/%{oname}
%{py2_puresitedir}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd

%py2_build

%install
pushd %{py3dir}
%py3_install
popd

%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7298 |21cr|python-podcastparser-0.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module podcastparser

Name:           python-podcastparser
Version:        0.6.8
Release:        1
Group:          Development/Python
Summary:        Simplified, fast RSS parser
License:        ISC License
URL:            https://github.com/gpodder/podcastparser
Source0:        https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch


%description
podcastparser: Simple, fast and efficient podcast parser The podcast parser
project is a library from the gPodder project to provide an easy and reliable
way of parsing RSS- and Atom-based podcast feeds in Python.* Web:
#---------------------------------------------------------------------

%package -n     python3-%{module}
Summary:        Simplified, fast RSS parser
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)

%description -n python3-%{module}
podcastparser: Simple, fast and efficient podcast parser The podcast parser
project is a library from the gPodder project to provide an easy and reliable
way of parsing RSS- and Atom-based podcast feeds in Python.* Web:.

%files -n python3-%{module}
%doc html README.md LICENSE
%{py3_puresitedir}/%{module}.py*
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
%{py3_puresitedir}/__pycache__/
#---------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
rm -fr *-egg.info

find . -type f -name '*.py' -exec perl -pi -e "s|/usr/bin/env python|/usr/bin/python3|" {} \;


%build
%py3_build

# generate html docs
sphinx-build doc html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

# not utf8
for file in html/objects.inv ; do
    iconv -c -t UTF-8 < $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done


%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7299 |21cr|python-poppler-qt5-21.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude popplerqt5.so(.*)

%define _disable_ld_no_undefined 1

%define pypi_name python-poppler-qt5

Summary:	Python bindings for the Qt5 Poppler PDF rendering library
Name:		python-poppler-qt5
Version:	21.3.0
Release:	2
License:	LGPLv2+
Group:		Development/Python
Url:		https://pypi.python.org/pypi/%{pypi_name}/
Source0:	https://pypi.python.org/packages/source/p/python-poppler-qt5/%{pypi_name}-%{version}.tar.gz
BuildRequires:	qmake5
BuildRequires:	python3-qt-builder
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-sip-PyQt5
BuildRequires:	python3-qt5-devel
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(python3)

%description
Python bindings for the Qt5 Poppler PDF rendering library. It is needed to run
programs written in Python and using Poppler set.

#----------------------------------------------------------------------------
%package -n python3-poppler-qt5
Summary:	Python bindings for the Qt5 Poppler PDF rendering library
Group:		Development/Python
Requires:	python3-qt5
Provides:	python-poppler-qt5 = %{EVRD}

%description -n python3-poppler-qt5
Python bindings for the Qt5 Poppler PDF rendering library. It is needed to run
programs written in Python and using Poppler set.

%files -n python3-poppler-qt5
%license LICENSE
%doc README.rst
%{python3_sitearch}/popplerqt5.cpython-*.so
%{python3_sitearch}/python_poppler*
%{python3_sitearch}/PyQt5/bindings/popplerqt5

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
sip-build --qmake=%{_bindir}/qmake-qt5 --verbose --no-make \
  --qmake-setting 'QMAKE_CFLAGS_RELEASE="%{optflags}"' \
  --qmake-setting 'QMAKE_CXXFLAGS_RELEASE="%{optflags}"' \
  --qmake-setting 'QMAKE_LFLAGS_RELEASE="%{?__global_ldflags}"' \
  --qmake-setting 'LIBS += -lpython3'
%make_build -C build

%install
%make_install INSTALL_ROOT=%{buildroot} -C build
chmod +x %{buildroot}/%{python3_sitearch}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7300 |21cr|python-portalocker-2.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# tests are enabled by default
%bcond_without  tests

# python-redis is missing from EPEL 9, but many of the tests will still run without
# it being present at test time. See BZ 2063713.
%if 0%{?el9} || 0%{?centos} >= 9
%global test_with_redis 0
%else
%global test_with_redis 1
%endif

%global         srcname     portalocker
%global         forgeurl    https://github.com/WoLpH/portalocker
Version:        2.5.1
%global         tag         v%{version}
%forgemeta

Name:           python-%{srcname}
Release:        1
Summary:        Library to provide an easy API to file locking
Group:          Development/Python
License:        Python
URL:            %forgeurl
Source:         %forgesource

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  python3dist(pygments)
BuildRequires:  python3dist(pytest)
%if 0%{?test_with_redis}
BuildRequires:  python3dist(redis)
%endif
%endif

%global _description %{expand:
%{summary}}

%description %{_description}

#-------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE
%doc README.rst

#-------------------------------------------------------
%prep
%forgeautosetup

# NOTE(mhayden): Upstream has a custom pytest.ini that requires 100% test
# coverage, but upstream does not have 100% test coverage yet.
mv pytest.ini pytest.ini_disabled


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files portalocker


%check
%if %{with tests}
%pytest %{?test_with_redis:--ignore=portalocker_tests/test_redis.py} portalocker_tests
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7301 |21cr|python-poster-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	poster

Name:		python-%{oname}
Version:	0.8.1
Release:	1
Summary:	Streaming HTTP uploads and multipart/form-data encoding
Source0:	https://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://atlee.ca/software/poster
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
The modules in the Python standard library don't provide a way to upload large
files via HTTP without having to load the entire file into memory first.

%package -n python2-%{oname}
Summary:	Streaming HTTP uploads and multipart/form-data encoding

%description -n python2-%{oname}
The modules in the Python standard library don't provide a way to upload large
files via HTTP without having to load the entire file into memory first.


%prep
%setup -q -n %{oname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}


%files -n python2-%{oname}
%{py2_puresitedir}/poster/*.py*
%{py2_puresitedir}/tests/*.py*
%{py2_puresitedir}/poster*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7302 |21cr|python-power-1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module power

Summary:	Cross-platform system power status information
Name:		python-%{module}
Version:	1.4
Release:	5
License:	MIT
Group:		Development/Python
Url:		https://github.com/Kentzo/Power
Source0:	https://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Python module that allows you to get power and battery status of the system.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Cross-platform system power status information
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
Python module that allows you to get power and battery status of the system.

%files -n python3-%{module}
%dir %{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}/*
%{py3_puresitedir}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build

%install
%__python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7303 |21cr|python-poyo-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	poyo

Name:		python-%{module}
Version:	0.5.0
Release:	1
Summary:	A lightweight YAML Parser for Python
Source0:	https://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/hackebrot/%{module}

BuildArch:	noarch

%description
A lightweight YAML Parser for Python
**Please note that Poyo supports only a chosen subset of the YAML format.**
**It can only read but not write and is not compatible with JSON.**
Poyo does not allow deserialization of arbitrary Python objects. Supported
types are **str**, **bool**, **int**, **float**, **NoneType** as well as
**dict** and **list** values. Please see the examples below to get an idea of
what Poyo understands.

#---------------------------------------------------------
%package -n python3-%{module}
Summary:	A lightweight YAML Parser for Python3
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)

%description -n python3-%{module}
A lightweight YAML Parser for Python
**Please note that Poyo supports only a chosen subset of the YAML format.**
**It can only read but not write and is not compatible with JSON.**
Poyo does not allow deserialization of arbitrary Python objects. Supported
types are **str**, **bool**, **int**, **float**, **NoneType** as well as
**dict** and **list** values. Please see the examples below to get an idea of
what Poyo understands.

%files -n python3-%{module}
%doc *.md
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info
#---------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7304 |21cr|python-pp-1.6.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	pp

Summary:	Parallel Python

Name:		python-%{module}
Version:	1.6.4
Release:	4
Source0:	http://www.parallelpython.com/downloads/pp/%{module}-%{version}.tar.bz2
License:	BSD-like
Group:		Development/Python
Url:		http://www.parallelpython.com/
BuildArch:	noarch
BuildRequires:  python2-devel

%description
Parallel Python (pp) is a pure Python module that provides a parallel
code execution mechanism for SMP or cluster computers. It is lightweight,
easy to install, and integrates well with other Python software.

%package -n python2-%{module}
Summary:	Parallel Python

%description -n python2-%{module}
Parallel Python (pp) is a pure Python module that provides a parallel
code execution mechanism for SMP or cluster computers. It is lightweight,
easy to install, and integrates well with other Python software.


%prep
%setup -q -n %{module}-%{version}

%install
PYTHONDONTWRITEBYTECODE= %__python2 setup.py install --root=%{buildroot}
%__mv %{buildroot}%{_bindir}/ppserver.py %{buildroot}%{_bindir}/ppserver
%__lzma -z doc/ppserver.1
%__install -D -m 644 doc/ppserver.1.lzma %{buildroot}%{_mandir}/man1/ppserver.1.lzma

%clean

%files -n python2-%{module}
%doc COPYING CHANGELOG README examples/
%{_bindir}/*
%{py2_puresitedir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7305 |21cr|python-pplpy-0.8.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pplpy

Name:           python-%{pypi_name}
Version:        0.8.7
Release:        3
Summary:        Python PPL wrapper
Group:          Development/Python
License:        GPLv3+
URL:            https://pypi.org/project/pplpy/
Source0:        http://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# Fix the Cython include path and set the language level to 3
Patch0:         %{name}-cython.patch
#build on aarch64 and e2k, riscv64 fail "ppl-devel not support this architecture"
ExclusiveArch:  %{ix86} %{x86_64}

%description
This package provides a Python wrapper to the C++ Parma Polyhedra
Library (PPL).
#----------------------------------------------------------------
%package     -n python3-%{pypi_name}
Summary:        Python 3 PPL wrapper
Group:          Development/Python

BuildRequires:  libmpc-devel
BuildRequires:  libpari-devel
BuildRequires:  pkgconfig(mpfr)
BuildRequires:  ppl-devel
BuildRequires:  python3-cysignals-devel
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(cython)
BuildRequires:  python3egg(gmpy2) >= 2.0.9
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)

%description -n python3-%{pypi_name}
This package provides a Python 3 wrapper to the C++ Parma Polyhedra
Library (PPL).

%files -n python3-%{pypi_name}
%doc CHANGES.txt README.html docs/build/html/* LICENSE.txt
%{py3_platsitedir}/pplpy*
%{py3_platsitedir}/ppl/
%exclude %{py3_platsitedir}/ppl/*.hh
%exclude %{py3_platsitedir}/ppl/*.pxd
#----------------------------------------------------------------

%package     -n python3-%{pypi_name}-devel
Summary:        Development files for the python 3 PPL wrapper
Group:          Development/Python
Requires:       python3-%{pypi_name}%{?_isa} = %{version}-%{release}

%description -n python3-%{pypi_name}-devel
Development files for the python 3 PPL wrapper.


%files -n python3-%{pypi_name}-devel
%{py3_platsitedir}/ppl/*.hh
%{py3_platsitedir}/ppl/*.pxd

#----------------------------------------------------------------

%prep
%autosetup -p0 -n  %{pypi_name}-%{version}

%build
# Do not pass -pthread to the compiler or linker
export CC=gcc
export LDSHARED="gcc -shared"
%py3_build

# Build the documentation
PYTHONPATH=$(ls -1d $PWD/build/lib.*) make -C docs html
rst2html --no-datestamp README.rst README.html

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_platsitedir}
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7306 |21cr|python-precis-i18n-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name precis_i18n

Name:		python-precis-i18n
Version:	1.0.4
Release:	1
Summary:	Internationalised Usernames and Passwords
Group:		Development/Python
License:	MIT
URL:		https://pypi.python.org/pypi/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
The PRECIS framework makes internationalised user names and
passwords safer for use by applications. PRECIS profiles transform
unicode strings into a canonical form, suitable for comparison.

This module implements the PRECIS Framework as described in:
 - PRECIS Framework: Preparation, Enforcement, and Comparison of
   Internationalized Strings in Application Protocols (RFC 8264).
 - Preparation, Enforcement, and Comparison of Internationalized
   Strings Representing Usernames and Passwords (RFC 8265).
 - Preparation, Enforcement, and Comparison of Internationalized
   Strings Representing Nicknames (RFC 8266).

#----------------------------------------------------------------
%package -n python3-precis-i18n
Summary:	Internationalised Usernames and Passwords
Group:		Development/Python

%description -n python3-precis-i18n
The PRECIS framework makes internationalised user names and
passwords safer for use by applications. PRECIS profiles transform
unicode strings into a canonical form, suitable for comparison.

This module implements the PRECIS Framework as described in:
 - PRECIS Framework: Preparation, Enforcement, and Comparison of
   Internationalized Strings in Application Protocols (RFC 8264).
 - Preparation, Enforcement, and Comparison of Internationalized
   Strings Representing Usernames and Passwords (RFC 8265).
 - Preparation, Enforcement, and Comparison of Internationalized
   Strings Representing Nicknames (RFC 8266).

%files -n python3-precis-i18n
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}*.egg-info

#----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7307 |21cr|python-prettytable-0.7.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module prettytable

Name:           python-prettytable
Version:        0.7.2
Release:        7
Summary:        Python library for displaying data in ASCII table format
License:        BSD
Group:          Development/Python
URL:            http://code.google.com/p/prettytable/
Source0:        http://pypi.python.org/packages/source/P/PrettyTable/prettytable-%{version}.tar.gz
BuildArch:      noarch

%description
PrettyTable is a simple Python library designed to make
 it quick and easy to represent tabular data in visually
appealing ASCII tables. It was inspired by the ASCII
tables used in the PostgreSQL shell psql. PrettyTable
allows for selection of which columns are to be printed,
independent alignment of columns (left or right justified
or centred) and printing of "sub-tables" by specifying a
row range.

%package -n python3-%{module}

Summary:        Python library for displaying data in ASCII table format
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:	python3-setuptools

%description -n python3-%{module}
PrettyTable is a simple Python library designed to make
 it quick and easy to represent tabular data in visually
appealing ASCII tables. It was inspired by the ASCII
tables used in the PostgreSQL shell psql. PrettyTable
allows for selection of which columns are to be printed,
independent alignment of columns (left or right justified
or centred) and printing of "sub-tables" by specifying a
row range.

%prep
%setup -q -n %{module}-%{version}

%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --root %{buildroot} --install-purelib=%{py3_puresitedir}

%files -n python3-%{module}
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7308 |21cr|python-progressbar2-3.55.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without tests

%define module progressbar2


Name:           python-%{module}
Version:        3.55.0
Release:        1
Summary:        A Progressbar library to provide visual progress to long running operations
Group:          Development/Python
License:        BSD
URL:            https://pypi.python.org/pypi/%{module}
Source0:        https://pypi.python.org/pypi/%{module}-%{version}.tar.gz
BuildArch:      noarch


%description
A text progress bar is typically used to display the progress of a long running
operation, providing a visual cue that processing is underway.

The ProgressBar class manages the current progress, and the format of the line
is given by a number of widgets.

The progressbar module is very easy to use, yet very powerful. It will also
automatically enable features like auto-resizing when the system supports it.
#---------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}

BuildRequires:  python3egg(python-utils)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)
BuildRequires:  pkgconfig(python3)
%if %{with tests}
BuildRequires:  python3egg(freezegun) >= 1.1
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(pytest-cov)
BuildRequires:  python3egg(pytest-runner)
%endif
Requires:  python3egg(python-utils)
Requires:  python3egg(six)

%description -n python3-%{module}
A text progress bar is typically used to display the progress of a long running
operation, providing a visual cue that processing is underway.

The ProgressBar class manages the current progress, and the format of the line
is given by a number of widgets.

The progressbar module is very easy to use, yet very powerful. It will also
automatically enable features like auto-resizing when the system supports it.

%files -n python3-%{module}
%doc *.rst LICENSE
%{py3_puresitedir}/%{module}-%{version}-py3.*.egg-info/
%{py3_puresitedir}/progressbar
#------------------------------------------------------------

%prep
%autosetup -n %{module}-%{version}


rm -rfv %{module}.egg-info

find . -name '*.pyc' -print -delete
find . -name '*.swp' -print -delete
rm -rfv tests/__pycache__/

%build
%py3_build

%install
%py3_install

%check
%if %{with tests}
PYTHONPATH=. pytest-3 tests
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7309 |21cr|python-prompt_toolkit-2.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name prompt_toolkit

Name:           python-%{pypi_name}
Version:        2.0.7
Release:        2
Group:          Development/Python
Summary:        Library for building powerful interactive command lines in Python
License:        BSD
URL:            https://github.com/jonathanslenders/python-prompt-toolkit
Source0:        https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
prompt_toolkit is a library for building powerful interactive command lines
and terminal applications in Python.

%package -n     python3-%{pypi_name}
Summary:        Library for building powerful interactive command lines in Python
Requires:       python3-pygments
Requires:       python3-six >= 1.9.0
Requires:       python3-wcwidth

%description -n python3-%{pypi_name}
prompt_toolkit is a library for building powerful interactive command lines
and terminal applications in Python.

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name} 
%doc README.rst AUTHORS.rst CHANGELOG LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7310 |21cr|python-pseudorandom-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pseudorandom

Name:           python-%{module}
Version:        0.2.2
Release:        1
Summary:        A Python library for generating %{module} condition/ stimulus lists for psychological experiments
License:        GPLv3
Group:          Development/Python
URL:            https://github.com/smathot/python-random
Source:         https://files.pythonhosted.org/packages/source/p/python-%{module}/python-%{module}-%{version}.tar.gz

BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(python-datamatrix)
Requires:       python3egg(python-datamatrix)
Provides:       python3-%{module} = %{EVRD}
BuildArch:      noarch


%description
A Python library for generating %{module} condition/ stimulus
lists for psychological experiments.

%files
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/python_%{module}-%{version}-py?.?.egg-info

#---------------------------------------------------
%prep
%setup -q
rm -fr *-egg.info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7311 |21cr|python-ptrace-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module ptrace

Summary:        Python binding of the ptrace library
Name:		python-%{module}
Version: 	0.7
Release: 	7
Group: 		Development/Python
License:        GPLv2
URL:            http://python-ptrace.hachoir.org/trac/
Source:         http://pypi.python.org/packages/source/p/python-ptrace/%{name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:	python3-devel

%description
python-ptrace is a Python binding of the ptrace library with the
following features:

* High level Python object API: PtraceDebugger and PtraceProcess
* Ability to control multiple processes; can catch fork events on Linux
* Can read/write bytes to arbitrary address; takes care of memory alignment
  and split bytes to cpu word
* Step-by-step execution using ptrace_singlestep() or hardware interruption 3
* Can use distorm disassembler
* Can dump registers, memory mappings, stack, etc.
* Provides system call tracer and parser (strace command)

%package -n python3-%{module}-%{version}

Summary:        Python binding of the ptrace library
Group: 		Development/Python
Provides:	python3-%{module}

%description -n python3-%{module}-%{version}
python-ptrace is a Python binding of the ptrace library with the
following features:

* High level Python object API: PtraceDebugger and PtraceProcess
* Ability to control multiple processes; can catch fork events on Linux
* Can read/write bytes to arbitrary address; takes care of memory alignment
  and split bytes to cpu word
* Step-by-step execution using ptrace_singlestep() or hardware interruption 3
* Can use distorm disassembler
* Can dump registers, memory mappings, stack, etc.
* Provides system call tracer and parser (strace command)

%prep
%setup -q -n %{name}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} --record=FILELIST

%files -n python3-%{module}-%{version}
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/*
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7312 |21cr|python-pudb-2022.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pudb

Name:		python-pudb
Version:	2022.1.2
Release:	1
Summary:	A full-screen, console-based Python debugger
Group:		Development/Python
License:	MIT
URL:		http://mathema.tician.de/software/pudb
Source0:	https://files.pythonhosted.org/packages/8b/ef/6dea7c63fdddd7753e2a2930e59799ef32247f2499c0d9bcd233439e7483/pudb-2022.1.2.tar.gz

BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%global _description\
PuDB is a full-screen, console-based visual debugger for Python.\
\
Its goal is to provide all the niceties of modern GUI-based debuggers in a more\
lightweight and keyboard-friendly package. PuDB allows you to debug code right\
where you write and test it--in a terminal. If you've worked with the excellent\
(but nowadays ancient) DOS-based Turbo Pascal or C tools, PuDB's UI might look\
familiar.

%description %_description

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A full-screen, console-based Python debugger
Group:		Development/Python

%description -n python3-%{pypi_name} %_description

%files -n python3-%{pypi_name}
%doc README.rst
%doc LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}*.egg-info
%{_bindir}/pudb3

#------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf *.egg-info

sed -i '1{\@^#! /usr/bin/env python@d}' pudb/debugger.py

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7313 |21cr|python-pulsectl-24.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pulsectl

Summary:	Python high-level interface and ctypes-based bindings for PulseAudio (libpulse)
Name:		python-%{pypi_name}
Version:	24.4.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/mk-fg/python-pulse-control
Source0:	%pypi_source
BuildArch:	noarch
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(python3)

%define _description \
Python (3.x and 2.x) blocking high-level interface and ctypes-based bindings for \
PulseAudio (libpulse), to use in a simple synchronous code. \
Wrappers are mostly for mixer-like controls and introspection-related operations, \
as opposed to e.g. submitting sound samples to play and player-like client.

%description
%{_description}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name}
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7314 |21cr|python-pulsectl-asyncio-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pulsectl-asyncio

Summary:	Asyncio frontend for pulsectl, a Python bindings library for PulseAudio (libpulse)
Name:		python-%{pypi_name}
Version:	1.2.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/mhthies/pulsectl-asyncio
Source0:	https://github.com/mhthies/pulsectl-asyncio/archive/v%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3dist(pulsectl)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%define _description \
This library provides an Python 3 asyncio interface on top of the pulsectl library \
for monitoring and controlling the PulseAudio sound server.\
pulsectl is a Python ctypes wrapper of the PulseAudio client C library libpulse, \
providing a high-level interface to PulseAudio's source/sink/stream handling and \
volume mixing.

%description
%{_description}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name}
%{python3_sitelib}/pulsectl_asyncio
%{python3_sitelib}/pulsectl_asyncio-%{version}.dist-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# for autoinstall BuildRequires
%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7315 |21cr|python-py2pack-0.9.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name py2pack

Summary:	Generate distribution packages from PyPI
Name:		python-%{pypi_name}
Version:	0.9.0
Release:	6
License:	Apache-2.0
Group:		Development/Python
Url:		http://github.com/openSUSE/py2pack
Source0:	https://files.pythonhosted.org/packages/source/p/py2pack/py2pack-%{version}.tar.gz
Source1:	rosa.spec.template
Patch1:		add_rosa_template.diff
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-pbr >= 1.8
BuildRequires:	python3-coverage
BuildRequires:	python3-ddt
BuildRequires:	python3-flake8
BuildRequires:	python3-metaextract
BuildRequires:	python3-pytest
BuildRequires:	python3-pytest-cov
BuildRequires:	python3-sphinx >= 1.2.1
BuildRequires:	python3-sphinxcontrib-programoutput
BuildArch:	noarch

%description
Py2pack: Generate distribution packages from PyPI.

This script allows to generate RPM spec or DEB dsc files from Python modules.
It allows to list Python modules or search for them on the Python Package Index
(PyPI). Conveniently, it can fetch tarballs and changelogs making it an
universal tool to package Python modules.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Generate distribution packages from PyPI
Group:		Development/Python
Provides:	%{pypi_name} == %{EVRD}
Requires:	python3-jinja2
Requires:	python3-metaextract
Requires:	python3-pypi-search
Requires:	python3-requests
Requires:	python3-setuptools
Requires:	python3-typing

%description -n python3-%{pypi_name}
Py2pack: Generate distribution packages from PyPI.

This script allows to generate RPM spec or DEB dsc files from Python modules.
It allows to list Python modules or search for them on the Python Package Index
(PyPI). Conveniently, it can fetch tarballs and changelogs making it an
universal tool to package Python modules.

%files -n python3-%{pypi_name}
%doc AUTHORS ChangeLog README.rst
%{_bindir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
%autopatch -p1

%build
%py3_build

%install
%py3_install
install -m 644 %{SOURCE1}  %{buildroot}/%{python3_sitelib}/%{pypi_name}/templates/rosa.spec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7316 |21cr|python-py3nvml-0.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name py3nvml

Summary:	Python 3 Bindings for the NVIDIA Management Library
Name:		python-%{pypi_name}
Version:	0.2.7
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://mypage.org/mymodule
Source0:	%pypi_source
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3dist(sphinx-rtd-theme)
BuildArch:	noarch
Requires:	python3dist(xmltodict)

%global _description \
Python 3 compatible bindings to the NVIDIA Management Library. Can be used to \
query the state of the GPUs on your system

%description %{_description}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/py3smi
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{pypi_name}/


#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7317 |21cr|python-pyacoustid-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pyacoustid

Name:           python-pyacoustid
Version:        1.2.2
Release:        1
Summary:        Bindings for Chromaprint acoustic fingerprinting and the Acoustid API
License:        MIT
Group:          Development/Python
URL:            https://github.com/sampsyo/pyacoustid
Source:         https://pypi.io/packages/source/p/pyacoustid/pyacoustid-%{version}.tar.gz
BuildRequires:  python3egg(audioread)
BuildRequires:  python3egg(requests)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
Chromaprint and Acoustid for Python

Chromaprint and its associated Acoustid Web service make up a
high-quality, open-source acoustic fingerprinting system. This package provides
Python bindings for both the fingerprinting algorithm library, which is written
in C but portable, and the Web service, which provides fingerprint lookups.

#----------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Bindings for Chromaprint acoustic fingerprinting and the Acoustid API
Group:          Development/Python

%description -n python3-%{pypi_name}
Chromaprint and Acoustid for Python

Chromaprint and its associated Acoustid Web service make up a
high-quality, open-source acoustic fingerprinting system. This package provides
Python bindings for both the fingerprinting algorithm library, which is written
in C but portable, and the Web service, which provides fingerprint lookups.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/*

#----------------------------------------------------------------------------
%prep
%setup -q -n pyacoustid-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7318 |21cr|python-pybeam-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	pybeam

Name:		python-%{module}
Version:	0.7
Release:	1
Summary:	Python module to parse Erlang BEAM files
License:	MIT
Group:		Development/Python
URL:		https://github.com/matwey/%{module}
Source0:	https://github.com/matwey/%{module}/archive/%{version}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Python module to parse Erlang BEAM files.
#----------------------------------------------------------

%package -n	python3-%{module}
Summary:	Python 3 module to parse Erlang BEAM files
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(construct)
BuildRequires:	python3egg(sphinx)
BuildArch:	noarch

%description -n python3-%{module}
Python 3 module to parse Erlang BEAM files.

%files -n python3-%{module}
%doc README.md LICENSE
%{python3_sitelib}/*

#----------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7319 |21cr|python-pybloomfiltermmap3-0.5.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pybloomfiltermmap3
%define _exclude_files_from_autoprov %{py3_platsitedir}/.*\\.so

Summary:	A Bloom filter (bloomfilter) for Python built on mmap
Name:		python-%{pypi_name}
Version:	0.5.7
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://pypi.python.org/pypi/pybloomfiltermmap
Source0:	http://pypi.python.org/packages/source/p/pybloomfiltermmap/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	python3-cython
BuildRequires:	python3-setuptools

%description
The goal of `pybloomfiltermmap` is simple: to provide a fast, simple, scalable,
correct library for Bloom Filters in Python.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A Bloom filter (bloomfilter) for Python 3 built on mmap
Group:		Development/Python
Obsoletes:	python3-pybloomfiltermmap < 0.5

%description -n python3-%{pypi_name}
The goal of pybloomfiltermmap is simple: to provide a fast, simple, scalable,
correct library for Bloom Filters in Python3.

%files -n python3-%{pypi_name}
%doc AUTHORS CHANGELOG LICENSE
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7320 |21cr|python-pycdio-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module pycdio

Name:		python-%{module}
Version:	2.1.1
Release:	1
Summary:	Python bindings to libcdio (CD Input and Control library)
Group:		Development/Python 
License:	GPLv3+
Url:		http://www.gnu.org/software/libcdio/
Source0:	%pypi_source %{module}

%description
The pycdio (and libcdio) libraries encapsulate CD-ROM reading and control.
Python programs wishing to be oblivious of the OS- and device-dependent
properties of a CD-ROM can interfeace to libcdio by using this module.
This package contains the bindings for python 2.

#-----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python 3 bindings to libcdio (CD Input and Control library)
Group:		Development/Python 

BuildRequires:	python3egg(setuptools)
BuildRequires:	swig3
BuildRequires:	pkgconfig(libcdio) >= 2.0.0
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(nose)

Provides:	python3-%{module} = %{EVRD}

%description -n python3-%{module}
The pycdio (and libcdio) libraries encapsulate CD-ROM reading and control.
Python programs wishing to be oblivious of the OS- and device-dependent
properties of a CD-ROM can interfeace to libcdio by using this module.
This package contains the bindings for python 3.

%files -n python3-%{module}
%doc README.rst ChangeLog AUTHORS NEWS.md THANKS COPYING
%{py3_platsitedir}/__pycache__/*
%{py3_platsitedir}/_pycdio*
%{py3_platsitedir}/_pyiso9660*
%{py3_platsitedir}/cdio.py
%{py3_platsitedir}/iso9660.py
%{py3_platsitedir}/pycdio.py
%{py3_platsitedir}/pyiso9660.py
%{py3_platsitedir}/pycdio-%{version}-py3*.egg-info/

#-----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build


%install
%py3_install
chmod 755 %{buildroot}%{py3_platsitedir}/*.so

%check
python3 setup.py nosetests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7321 |21cr|python-pycha-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pycha

Name:           python-%{srcname}
Version:        0.8.1
Release:        1
Summary:        A library for drawing charts with Python and Cairo
Group:          Development/Python
License:        LGPLv3+
URL:            https://bitbucket.org/lgs/pycha/
Source0:        https://files.pythonhosted.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
Source1:        chavier.desktop

BuildArch:      noarch
BuildRequires:  desktop-file-utils
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  pkgconfig(cairo)
BuildRequires:  python3egg(cairocffi)

%description
Pycha is a very simple Python package for drawing charts using the great Cairo
library. Its goals are:
    * Lightweight
    * Simple to use
    * Nice looking with default values
    * Customization
It won't try to draw any possible chart on earth but draw the most common ones
nicely.

#-------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        A library for drawing charts with Python and Cairo
Group:          Development/Python
Requires:       python3egg(cairocffi)

%description -n python3-%{srcname}
Pycha is a very simple Python package for drawing charts using the great Cairo
library. Its goals are:
    * Lightweight
    * Simple to use
    * Nice looking with default values
    * Customization 
It won't try to draw any possible chart on earth but draw the most common ones
nicely.

%files -n python3-%{srcname}
%doc examples/ AUTHORS README.txt
%license COPYING
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-*.egg-info

#-------------------------------------------------------------------

%package -n     chavier
Summary:        GUI application for exploring the pycha library
Group:          Development/Python
Requires:       python3-%{srcname} = %{EVRD}

%description -n chavier
Chavier allows the user to generate random data sets or use existing data to
test the various options that pycha provides in an interactive GUI
application. Various chart types can be plotted and their options adjusted
from the interface.

%files -n chavier
%{_bindir}/chavier
%{_datadir}/applications/chavier.desktop
%{python3_sitelib}/chavier

#-------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

# remove upstream egg-info
rm -rf *.egg-info


%build
2to3 --no-diffs -w chavier pycha tests

# for i in range(len(flat_y) / n_stores)
# TypeError: 'float' object cannot be interpreted as an integer
sed -i 's@ / n_stores@ // n_stores@g' pycha/stackedbar.py

%py3_build


%install
%py3_install

desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications %{SOURCE1}


%check
%__python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7322 |21cr|python-pychromecast-9.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define module	pychromecast
%define oname	PyChromecast

Summary:	Python module to talk to Google Chromecast
Name:		python-%{module}
Version:	9.1.1
Release:	1
License:	MIT
Group:		Development/Python
URL:		https://github.com/balloob/pychromecast
Source0:	https://files.pythonhosted.org/packages/source/P/PyChromecast/%{oname}-%{version}.tar.gz
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)

%description
Library to communicate with the Google Chromecast. It currently supports
Auto discovering connected Chromecasts on the network, start the default
media receiver and play any online media, control playback of current
playing media, implement Google Chromecast api v2, communicate with apps
via channels, easily extendable to add support for unsupported namespaces,
multi-room setups with Audio cast devices.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python3 module to talk to Google Chromecast
Group:		Development/Python

%description -n python3-%{module}
Library to communicate with the Google Chromecast. It currently supports
Auto discovering connected Chromecasts on the network, start the default
media receiver and play any online media, control playback of current
playing media, implement Google Chromecast api v2, communicate with apps
via channels, easily extendable to add support for unsupported namespaces,
multi-room setups with Audio cast devices.

%files -n python3-%{module}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{oname}-%{version}-*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7323 |21cr|python-pycotap-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pycotap

Name:		python-%{pypi_name}
Version:	1.2.2
Release:	1
Summary:	A tiny test runner that outputs TAP results to standard output
Group:		Development/Python
License:	MIT
URL:		https://el-tramo.be/pycotap
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
pycotap is a simple Python test runner for unit tests that outputs Test Anything
Protocol results directly to standard output.Contrary to other TAP runners
for Python, pycotap prints TAP (and *only* TAP) to standard output
instead of to a separate file, allowing you to pipe it directly to TAP pretty
printers and processors.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
pycotap is a simple Python test runner for unit tests that outputs Test Anything
Protocol results directly to standard output.Contrary to other TAP runners
for Python, pycotap prints TAP (and *only* TAP) to standard output
instead of to a separate file, allowing you to pipe it directly to TAP pretty
printers and processors.

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install
find %{buildroot}/%{python3_sitelib} -name '*.py' | xargs sed -i '/^#!/d'

rm %{buildroot}/usr/COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7324 |21cr|python-pycountry-1.18-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name pycountry

Name:           python-%{pypi_name}
Version:        1.18
Release:        4
Group:          Development/Python
Summary:        ISO databases accessible from Python
License:        LGPLv2+
URL:            https://pypi.python.org/pypi/pycountry/
Source0:        https://pypi.python.org/packages/source/p/pycountry/pycountry-%{version}.tar.gz
BuildArch:      noarch

%description
pycountry provides the ISO databases for the standards:
 639 Languages
 3166 Countries
 3166-2 Subdivisions of countries
 4217 Currencies
 15924 Scripts

The package includes a copy from Debian\'s \`pkg-isocodes\` and makes the data
accessible through a Python API.
Translation files for the various strings are included as well.

%package -n python3-%{pypi_name}
Summary:        ISO databases accessible from Python
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
pycountry provides the ISO databases for the standards:
 639 Languages
 3166 Countries
 3166-2 Subdivisions of countries
 4217 Currencies
 15924 Scripts

The package includes a copy from Debian\'s \`pkg-isocodes\` and makes the data
accessible through a Python API.
Translation files for the various strings are included as well.

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%files -n python3-%{pypi_name}
%doc HISTORY.txt README LICENSE.txt TODO.txt
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/*egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7325 |21cr|python-pydantic-1.10.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pydantic

Summary:	Data validation and settings management using Python type hints
Name:		python-%{pypi_name}
Version:	1.10.4
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/pydantic
Source0:	%pypi_source
BuildRequires:	pyproject-rpm-macros
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
%{summary}.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{summary}.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7326 |21cr|python-pydns-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#This is Python3 version of pydns

Name:           python-pydns
Version:        3.2.1
Release:        1
Summary:        Python3 module for DNS (Domain Name Service)
Group:          Development/Python
License:        Python Software Foundation License
URL:            https://launchpad.net/py3dns
Source0:        https://launchpad.net/py3dns/trunk/%{version}/+download/py3dns-%{version}.tar.gz
# At buildtime, py3dns tries to read in /etc/resolv.conf and crashes if it
# doesn't exist.  Our koji builders don't have that file.  This patch just
# avoids the crash if that file is absent.
Patch0:             python3-py3dns-handle-absent-resolv.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1561187
Patch1:             python3-py3dns-py3_friendly_warning.patch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
This Python 3 module provides an DNS API for looking up DNS entries from
within Python 3 modules and applications. This module is a simple,
lightweight implementation.

#-------------------------------------------------------------------
%package -n python3-pydns
Summary:        Python3 module for DNS (Domain Name Service)
Group:          Development/Python
Provides:	python3-py3dns = %{EVRD}

%description -n python3-pydns
This Python 3 module provides an DNS API for looking up DNS entries from
within Python 3 modules and applications. This module is a simple,
lightweight implementation.

%files -n python3-pydns
%defattr(0644,root,root,0755)
%doc CREDITS.txt PKG-INFO README-guido.txt README.txt
%{python3_sitelib}/*

#-------------------------------------------------------------------
%prep
%autosetup -p1 -n py3dns-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{distname}.egg-info

# Some files are latin-1 encoded but are incorrectly labelled as UTF-8 by
# upstream (see rhbz:620265)
#
# Convert them to actually be UTF-8, preserving the (now-correct) encoding
# declaration (preserving timestamps):
for file in DNS/Lib.py DNS/Type.py ; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7327 |21cr|python-pydocstyle-6.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name pydocstyle

Name:           python-%{pypi_name}
Version:	6.1.1
Release:	1
Summary:        Python docstring style checker
Group:          Development/Python
License:        MIT
URL:            https://github.com/PyCQA/pydocstyle/
Source0:	https://files.pythonhosted.org/packages/4c/30/4cdea3c8342ad343d41603afc1372167c224a04dc5dc0bf4193ccb39b370/pydocstyle-6.1.1.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
pydocstyle - docstring style checker (formerly pep257)**pydocstyle** is a
static analysis tool for checking compliance with Python docstring
conventions.**pydocstyle** supports most of PEP 257 < out of the box, but it
should not be considered a reference implementation.**pydocstyle** supports
Python 2.7, 3.3, 3.4, 3.5, 3.6 and pypy.Quick Start --Install .. code:: pip
install pydocstyle^^^^.....

%package -n     python3-%{pypi_name}
Summary:        %{summary}

Requires:       python3dist(setuptools)
Requires:       python3dist(six)
Requires:       python3dist(snowballstemmer)

%description -n python3-%{pypi_name}
pydocstyle - docstring style checker (formerly pep257)**pydocstyle** is a
static analysis tool for checking compliance with Python docstring
conventions.**pydocstyle** supports most of PEP 257 < out of the box, but it
should not be considered a reference implementation.**pydocstyle** supports
Python 2.7, 3.3, 3.4, 3.5, 3.6 and pypy.Quick Start --Install .. code:: pip
install pydocstyle^^^^.....

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc LICENSE-MIT
%doc README.rst
%{_bindir}/pydocstyle
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7328 |21cr|python-pydyf-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global pypi_name pydyf

Name:           python-pydyf
Version:        0.1.2
Release:        1
Summary:        Low-level PDF creator
Group:          Development/Python
# The test suite is released under the AGPL but we are not shipping any test
# code in the "binary" (noarch) RPM so we can just use the 3-clause BSD.
License:        BSD
URL:            https://www.courtbouillon.org/pydyf
Source0:        %{pypi_source}
# remove some dependency/pytest options which are mostly useful for developers
# (e.g. style checks) but may cause unnecessary issues for distro-level testing
Patch0:         %{name}-no-developer-testing-options.patch

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
# used as "build-backend" in pyproject.toml but not detected by Fedora's
# macros to generate build requirements
BuildRequires:  python3-flit
# test suite calls the "gs" binary to verify outputs, not detectable by
# Fedora's macros
BuildRequires:  ghostscript


%description
pydyf is a low-level PDF generator written in Python and based on PDF
specification 1.7.

#--------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
pydyf is a low-level PDF generator written in Python and based on PDF
specification 1.7.

%files -n  python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/

#--------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r -x test


%build
%pyproject_wheel


%install
%pyproject_install


%check
%pytest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7329 |21cr|python-pyelftools-0.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  pyelftools

Name:           python-%{module}
Version:        0.25
Release:        2
Summary:        Pure-python library for parsing ELF and DWARF
Group:          Development/Python
License:        Public Domain
URL:            https://github.com/eliben/pyelftools
Source0:        https://github.com/eliben/pyelftools/archive/v%{version}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
pyelftools is a pure-Python library for parsing and analyzing ELF files
and DWARF debugging information.

%package -n     python3-%{module}
Summary:        Pure-python library for parsing ELF and DWARF for Python 3
Group:          Development/Python
BuildRequires:  python3-setuptools

%description -n python3-%{module}
pyelftools is a pure-Python library for parsing and analyzing ELF files
and DWARF debugging information.

This is the Python 3 module of pyelftools.

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%files -n       python3-%{module}
%doc CHANGES README.rst
%doc LICENSE
%{_bindir}/readelf.py
%{py3_puresitedir}/elftools/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7330 |21cr|python-pyexcelerator-0.6.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyexcelerator
# we don't want to provide private python extension libs
%define __provides_exclude_from ^(%{py2_platsitedir}/.*\\.so\\|%{py3_platsitedir}/.*\\.so)$

Summary:       Generating Excel 97+ files
Name:          python-pyexcelerator
Version:       0.6.4.1
Release:       2
Group:         Development/Python
License:       LGPLv2+
URL:           https://pypi.python.org/pypi/pyExcelerator
Source0:       https://pypi.python.org/packages/source/p/pyexcelerator/%{module}-%{version}.tar.bz2
BuildRequires: pkgconfig(python)
BuildRequires: python3-devel

BuildArch:     noarch

%description
Generating Excel 97+ files; importing Excel 95+ files; Excel files dumper; 
OLE2 files dumper; xls2txt, xls2csv, xls2html

%package -n python3-pyexcelerator
Summary:       Generating Excel 97+ files
Group:         Development/Python

%description -n python3-pyexcelerator
Generating Excel 97+ files; importing Excel 95+ files; Excel files dumper; 
OLE2 files dumper; xls2txt, xls2csv, xls2html

%prep
%setup -qn %{module}-%{version}

%build
export CFLAGS="%{optflags}"
%py3_build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%files -n python3-pyexcelerator
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7331 |21cr|python-pyface-7.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyface
%define bootstrap 0

Summary:	Enthought Tool Suite - traits-capable windowing framework
Name:		python-%{module}
Version:	7.4.2
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/pyface/
Source0:	https://files.pythonhosted.org/packages/a7/e6/2143b45ce06572740e4c1623c9ff2b800a1269558da6c8efd6ffdf4534f9/pyface-7.4.2.tar.gz
BuildRequires:	procps
BuildRequires:	x11-server-xvfb
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(traits)
BuildRequires:  python3egg(wxpython)
BuildRequires:  python3egg(pygments)
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(packaging)
BuildRequires:  python3egg(qtpy)
BuildRequires:  python3egg(importlib-resources)
%if ! 0%{?bootstrap}
BuildRequires:  python3egg(traitsui)
%endif

Requires:       python3egg(traits)
Requires:       python3egg(pygments)
Requires:       python3-%{module}-backend
Requires:       python3egg(six)
%if ! 0%{?bootstrap}
Requires:       python3egg(traitsui)
%endif

Provides:       python3-%{module} = %{EVRD}

BuildArch:	noarch

%description
The pyface project contains a toolkit-independent GUI abstraction layer,
which is used to support the "visualization" features of the Traits package.
Thus, you can write code in terms of the Traits API (views, items, editors,
etc.), and let pyface and your selected toolkit and back-end take care of
the details of displaying them.

The following GUI backends are supported:

- wxPython
- PyQt
- PySide

%files
%doc *.txt *.rst
%{py3_puresitedir}/%{module}*

#----------------------------------------------------------------------------
%package -n python3-%{module}-qt

Summary:        Qt backend placeholder for pyface
Requires:       python3-%{module} = %{version}-%{release}
BuildRequires:  python3egg(pyqt5)
BuildRequires:  python3-qt5-webkit
BuildRequires:  python3egg(sip)
Requires:       python3egg(pyqt5)
Requires:       python3-qt5-webkit
Provides:       python3-%{module}-backend

%description -n python3-%{module}-qt
Qt backend placeholder for pyface.

%files -n python3-%{module}-qt

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

rm pyface/tests/test_python_shell.py
# file not utf-8
for f in image_LICENSE_{Eclipse,OOo}.txt
do
  iconv -f iso8859-1 -t utf-8 ${f} > ${f}.conv && mv -f ${f}.conv ${f}
done



%build
%py3_build

%install
%py3_install
find %{buildroot} -type f -empty -delete

%check
#tests still need py3qt4 and newer pyton3-zipp from main...
#PYTHONPATH=%{buildroot}%%{py3_puresitedir} xvfb-run python3 -s -m unittest discover -v



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7332 |21cr|python-pyfltk-1.3.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pyFltk

Summary:	Python wrapper for the FLTK library
Name:		python-pyfltk
Version:	1.3.9
Release:	1
License:	GPLv2
Group:		Development/Python
Url:		http://pyfltk.sourceforge.net/
Source0:	%{pypi_source}
# patch update sources to commit r629
Patch0:		0001-patch-for-swig4.2.patch
BuildRequires:	fltk-devel >= 1.3.7
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	python3egg(setuptools)
BuildRequires:	swig
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
%description
pyFLTK is a Python wrapper for the Fast Light Tool Kit
cross-platform graphical user-interface library.

#--------------------------------------------------------
%package -n python3-pyfltk
Summary:	Python wrapper for the FLTK library

%description -n python3-pyfltk
pyFLTK is a Python wrapper for the Fast Light Tool Kit
cross-platform graphical user-interface library.

%files -n python3-pyfltk
%doc CHANGES COPYING README*
%dir %{_datadir}/doc/pyfltk
%{_datadir}/doc/pyfltk/*
%{py3_platsitedir}/fltk/*
%{py3_platsitedir}/*info

#-----------------------------------------------------------------
%prep
%autosetup  -p1 -n %{pypi_name}-%{version}

%build
%__python3 setup.py swig
%__python3 setup.py build

%install
%py3_install
mkdir -p %{buildroot}/%{_datadir}/doc/pyfltk
mv %{buildroot}%{py3_platsitedir}/fltk/docs %{buildroot}/%{_datadir}/doc/pyfltk/
mv %{buildroot}%{py3_platsitedir}/fltk/test %{buildroot}/%{_datadir}/doc/pyfltk/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7333 |21cr|python-pyftpdlib-1.5.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pyftpdlib

Name:		python-%{pypi_name}
Version:	1.5.6
Release:	1
Summary:	Python FTP server library
Group:		System/Libraries
License:	MIT
URL:		https://github.com/giampaolo/pyftpdlib
Source0:	%{pypi_source}
BuildArch:	noarch

%description
Python FTP server library provides a high-level portable interface to easily
write asynchronous FTP servers with Python. pyftpdlib is currently the most
complete RFC-959 FTP server implementation available for Python programming
language.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python FTP server library
Group:		System/Libraries
BuildRequires:	python3

%description -n python3-%{pypi_name}
Python FTP server library provides a high-level portable interface to easily
write asynchronous FTP servers with Python. pyftpdlib is currently the most
complete RFC-959 FTP server implementation available for Python programming
language.

%files -n python3-%{pypi_name}
%doc CREDITS HISTORY.rst LICENSE README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{_bindir}/ftpbench

#---------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
python3 setup.py install --root=%{buildroot} --compile --optimize=2


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7334 |21cr|python-pyfuse3-3.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Python3 binding for Fuse (Filesystem in Userspace)
Name:		python-pyfuse3
Version:	3.2.2
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/libfuse/python-pyfuse3
Source0:	https://files.pythonhosted.org/packages/b0/1b/a5758094d440389730304027c7229a92cd6ab2616ef928a8fe695f31dad3/pyfuse3-3.2.2.tar.gz
BuildRequires:	pkgconfig(fuse3)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	fuse3

%description
Set of Python 3 bindings for libfuse 3. It provides an asynchronous API
compatible with Trio and asyncio, and enables you to easily write a full-featured 
Linux filesystem in Python.

#----------------------------------------------------------------------------

%package -n python3-pyfuse3
Summary:	Python 3 binding for Fuse (Filesystem in Userspace)
Group:		Development/Python

%description -n python3-pyfuse3
Set of Python 3 bindings for libfuse 3. It provides an asynchronous API
compatible with Trio and asyncio, and enables you to easily write a full-featured 
Linux filesystem in Python.

%files -n python3-pyfuse3
%doc LICENSE README.* Changes.rst
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n pyfuse3-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7335 |21cr|python-pygccxml-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           python-pygccxml
Version:        2.2.1
Release:        1
Summary:        Python package for easy C++ declarations navigation
License:        Boost
Group:          Development/Python
Source:         https://github.com/gccxml/pygccxml/archive/v%{version}.tar.gz#/v%{version}.tar.gz
URL:            https://github.com/gccxml/pygccxml
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
#Requires:       castxml
BuildArch:      noarch


%description
The purpose of the GCC-XML extension is to generate an XML description of a
C++ program from GCC's internal representation. Since XML is easy to parse,
other development tools will be able to work with C++ programs without the
burden of a complicated C++ parser. This is the Python2 version.


%package -n python3-pygccxml
Summary:	Python package for easy C++ declarations navigation
Group:		Development/Python

%description -n python3-pygccxml
The purpose of the GCC-XML extension is to generate an XML description of a
C++ program from GCC's internal representation. Since XML is easy to parse,
other development tools will be able to work with C++ programs without the
burden of a complicated C++ parser. This is the Python3 version.


%prep
%setup -q -n pygccxml-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-pygccxml
%doc README.rst LICENSE.rst
%{py3_puresitedir}/*egg-info
%{py3_puresitedir}/pygccxml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7336 |21cr|python-pygithub-1.43.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   PyGithub

Name:           python-pygithub
Version:        1.43.8
Release:        1
Summary:        Use the full Github API v3
Group:          Development/Python
License:        LGPLv3+
URL:            https://pypi.python.org/pypi/PyGithub
Source0:        https://github.com/%{oname}/%{oname}/archive/v%{version}/%{oname}-%{version}.tar.gz
BuildArch:      noarch

%description
%{oname} is a Python (2 and 3) library to use the Github API v3. With it, you
can manage your Github resources (repositories, user profiles, organizations,
etc.) from Python scripts.

%package -n     python3-pygithub
Summary:        Use the full Github API v3
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description -n python3-pygithub
%{oname} is a Python (2 and 3) library to use the Github API v3. With it, you
can manage your Github resources (repositories, user profiles, organizations,
etc.) from Python scripts.

%prep
%setup -q -n %{oname}-%{version}

# Remove bundled egg-info
rm -rf %{oname}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-pygithub
%doc README.md
%{py3_puresitedir}/github/
%{py3_puresitedir}/%{oname}-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7337 |21cr|python-pyglet-1.5.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name  pyglet

Summary:	A cross-platform windowing and multimedia library for Python
Name:		python-%{pypi_name}
Version:	1.5.27
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://pyglet.org
# repack with script pyglet-get-tarball.sh
Source0:	https://files.pythonhosted.org/packages/44/34/c11af4ae44bdd601e7d837add3d5c11451fe10f8f3d364f0b3ec19dd5f6b/pyglet-1.5.27.zip
Source1:	python-pyglet.rpmlintrc
BuildArch:	noarch

%description
Pyglet provides an object-oriented programming interface for
developing games and other visually-rich applications for Windows, Mac
OS X and Linux. Some of the features of pyglet are:

* No external dependencies or installation requirements. For most
  application and game requirements, pyglet needs nothing else besides
  Python, simplifying distribution and installation.

* Take advantage of multiple windows and multi-monitor
  desktops. pyglet allows you to use as many windows as you need,
  and is fully aware of multi-monitor setups for use with
  fullscreen games.

* Load images, sound, music and video in almost any format. pyglet can
  optionally use AVbin to play back audio formats such as MP3,
  OGG/Vorbis and WMA, and video formats such as DivX, MPEG-2, H.264,
  WMV and Xvid.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}

Summary:	A cross-platform windowing and multimedia library for Python3
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	libglvnd-GL
Requires:	libmesaglu
Requires:	libX11
Requires:	python3-pillow

%description -n python3-%{pypi_name}
Pyglet provides an object-oriented programming interface for
developing games and other visually-rich applications for Windows, Mac
OS X and Linux. Some of the features of pyglet are:

* No external dependencies or installation requirements. For most
  application and game requirements, pyglet needs nothing else besides
  Python, simplifying distribution and installation.

* Take advantage of multiple windows and multi-monitor
  desktops. pyglet allows you to use as many windows as you need,
  and is fully aware of multi-monitor setups for use with
  fullscreen games.

* Load images, sound, music and video in almost any format. pyglet can
  optionally use AVbin to play back audio formats such as MP3,
  OGG/Vorbis and WMA, and video formats such as DivX, MPEG-2, H.264,
  WMV and Xvid.

%files -n python3-%{pypi_name}
%doc README* LICENSE NOTICE
%{py3_puresitedir}/*
#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove the bundled pypng library (python-pillow provides the same functionality)
rm pyglet/image/codecs/png.py
rm pyglet/extlibs/png.py

# Get rid of hashbang lines. This is a library, it has no executable scripts.
# Also remove Windows newlines
find . -name '*.py' | xargs sed --in-place -e's|#!/usr/bin/\(env \)\?python||;s/\r//'

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7338 |21cr|python-pygraphviz-1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pygraphviz
%global __provides_exclude .so

Summary:	Python interface to Graphviz
Name:		python-%{module}
Version:	1.10
Release:	1
Source0:	https://github.com/%{module}/%{module}/archive/%{module}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://networkx.lanl.gov/%{module}

%description
PyGraphviz is a Python interface to the Graphviz graph layout and
visualization package.

With PyGraphviz, you can create, edit, read, write, and draw graphs
using Python to access the Graphviz graph data structure and layout
algorithms.

This package contains the version for Python 2.

%package -n python3-%{module}
Summary:        Create and Manipulate Graphs and Networks
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(numpydoc)
BuildRequires:  pkgconfig(libcdt)
BuildRequires:  swig3


%description -n python3-%{module}
PyGraphviz is a Python interface to the Graphviz graph layout and
visualization package.

With PyGraphviz, you can create, edit, read, write, and draw graphs
using Python to access the Graphviz graph data structure and layout
algorithms.

This package contains the version for Python 3.


%files -n python3-%{module}
%doc README.rst LICENSE examples
%{py3_platsitedir}/%{module}*
%exclude %{py3_platsitedir}/%{module}/graphviz_wrap.c
#---------------------------------------------------

%prep
%setup -qn %{module}-%{module}-%{version}
# Regenerate the swig
swig -python pygraphviz/graphviz.i

# shebangs in the examples
for fil in examples/*.py; do
  sed -i.orig 's,%{_bindir}/env python,%{__python3},' $fil
  touch -r $fil.orig $fil
  rm $fil.orig
done

%build
%py3_build

%install
%py3_install
chmod g-w %{buildroot}%{py3_platsitedir}/%{module}/_graphviz.*.so
#handled by %%doc macro
rm -fr %{buildroot}%{_defaultdocdir}/%{module}-%{version}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7339 |21cr|python-pykdtree-1.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         module pykdtree

Name:           python-%{module}
Version:        1.3.4
Release:        1
Summary:        A Python kd-tree nearest neighbour search
License:        LGPLv3+
Group:          Development/Python
Url:            https://pypi.python.org/pypi/%{module}
Source0:        %pypi_source %{module}

%description
Pykdtree is a kd-tree implementation for fast nearest neighbour search
in Python. The aim is to be the fastest implementation around for
common use cases (low dimensions and low number of neighbours) for
both tree construction and queries. Queries are optionally
multithreaded using OpenMP.
#----------------------------------------------------------

%package -n python3-%{module}
Summary:        A Python3 kd-tree nearest neighbour search
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3-numpy-devel
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(cython)
BuildRequires:  gomp-devel

Requires:       python3egg(numpy)

%description -n python3-%{module}
Pykdtree is a kd-tree implementation for fast nearest neighbour search
in Python. The aim is to be the fastest implementation around for
common use cases (low dimensions and low number of neighbours) for
both tree construction and queries. Queries are optionally
multithreaded using OpenMP.

%files -n python3-%{module}
%doc LICENSE.txt
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}-%{version}-py?.?.egg-info
#----------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info
# we'll cythonize in build
rm $(grep -rl '/\* Generated by Cython')

%build
cython pykdtree/kdtree.pyx
%py3_build

%install
%py3_install

%check
%py3_test




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7340 |21cr|python-pykka-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pykka

Name:		python-pykka
Version:	3.1.1
Release:	1
Group:		Development/Python
Summary:	Pykka is a Python implementation of the actor model

License:	ASL 2.0
URL:		http://www.pykka.org/
Source0:	https://files.pythonhosted.org/packages/45/e9/ba139b5becd0e4bdf10a816af3fc17f788ac630159ca959d6da44d91a7be/pykka-3.1.1.tar.gz
BuildArch:	noarch
 
%description
Pykka is a Python implementation of the actor model.
The actor model introduces some
simple rules to control the sharing of state and cooperation between execution
units, which makes it easier to build concurrent applications.

#--------------------------------------------------------------------
%package -n python3-pykka
Summary:	Pykka is a Python3 implementation of the actor model
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Provides:	python3-Pykka = %{EVRD}

%description -n python3-pykka
Pykka is a Python3 implementation of the actor model.
The actor model introduces some
simple rules to control the sharing of state and cooperation between execution
units, which makes it easier to build concurrent applications.

%files -n python3-pykka
%{py3_puresitedir}/pykka
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.egg-info

#--------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7341 |21cr|python-pylast-1.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pylast

Summary:	Python interface to Last.fm
Name:		python-%{module}
Version:	1.8.0
Release:	2
License:	GPLv2+
Group:		Development/Python
Url:		https://github.com/pylast/pylast
Source0:	%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Python interface to Last.fm and other API-compatible websites
such as Libre.fm.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python 3 interface to Last.fm
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
Python 3 interface to Last.fm and other API-compatible websites
such as Libre.fm.

%files -n python3-%{module}
%{py3_puresitedir}/pylast
%{py3_puresitedir}/pylast-%{version}-py%{py3_ver}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build

%install
%__python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7342 |21cr|python-pylibmc-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pylibmc
%global sum Memcached client for Python

Name:           python-%{pypi_name}
Version:        1.6.1
Release:        1
Summary:        %{sum}
Group:          Development/Python
License:        BSD
URL:            http://sendapatch.se/projects/pylibmc/
Source0:        https://pypi.python.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

# Python 3.11 fix: https://github.com/lericson/pylibmc/commit/22854a4ba8f7e926099219c107104723089bcad8
Patch01:         https://github.com/lericson/pylibmc/commit/22854a4ba8f7e926099219c107104723089bcad8.patch

BuildRequires:  gcc
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  libmemcached-devel
BuildRequires:  zlib-devel

%description
pylibmc is a client in Python for memcached. It is a wrapper
around TangentOrg‘s libmemcached library. The interface is
intentionally made as close to python-memcached as possible,
so that applications can drop-in replace it.

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{sum}
Group:          Development/Python

%description -n python3-%{pypi_name}
pylibmc is a client in Python 3 for memcached. It is a wrapper
around TangentOrg‘s libmemcached library. The interface is
intentionally made as close to python-memcached as possible,
so that applications can drop-in replace it.

%files -n python3-%{pypi_name}
%doc docs/ LICENSE README.rst
%{python3_sitearch}/%{pypi_name}-*.egg-info
%{python3_sitearch}/%{pypi_name}/
%{python3_sitearch}/*.so

#-----------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# there is an asterisk in the name of the file,
# because sometimes the suffix of the architecture is added
chmod 755 %{buildroot}%{python3_sitearch}/_pylibmc.cpython-*.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7343 |21cr|python-pylint-venv-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pylint-venv

Name:           python-pylint-venv
Version:        2.3.0
Release:        1
Summary:        Use the same Pylint installation with different virtual environments
Group:          Development/Python
License:        MIT
URL:            https://github.com/jgosmann/pylint-venv/
Source:         https://files.pythonhosted.org/packages/source/p/pylint-venv/pylint-venv-%{version}.tar.gz
# PATCH-FIX-UPSTREAM pylint-venv-pr13-fixinclude.patch gh#jgosmann/pylint-venv#13
Patch0:         pylint-venv-pr13-fixinclude.patch
BuildRequires:  pkgconfig(python3)
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%description
pylint-venv provides a Pylint init-hook to use the same Pylint 
installation with different virtual environments.


#--------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Provides:       python3-pylint_venv = %{EVRD}
Provides:       python-pylint_venv = %{EVRD}

%description -n python3-%{pypi_name}
pylint-venv provides a Pylint init-hook to use the same Pylint 
installation with different virtual environments.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE.txt
%{python3_sitelib}/*

#--------------------------------------------------------------
%prep
%autosetup -p1 -n pylint-venv-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7344 |21cr|python-pyls-spyder-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pyls-spyder

Name:           python-%{pypi_name}
Version:        0.4.0
Release:        1
Summary:        Spyder extensions for the python-language-server
Group:          Development/Python
License:        MIT
URL:            https://github.com/spyder-ide/pyls-spyder
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
Spyder extensions to the python language server (pyls)

#------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python


%description -n python3-%{pypi_name}
Spyder extensions to the python language server (pyls)

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/pyls_spyder
%{python3_sitelib}/pyls_spyder-%{version}-py*.egg-info

#------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7345 |21cr|python-pymediainfo-5.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	pymediainfo

Summary:	A Python wrapper for the mediainfo library
Name:		python-%{module}
Version:	5.1.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/sbraz/%{module}
Source0:	https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  pkgconfig(libmediainfo)
Requires:	mediainfo
BuildArch:	noarch

%description
This small package is a wrapper around the MediaInfo library.It works on Linux
Mac OS X and Windows and is tested with Python 2.6, 2.7, 3.4, 3.5, 3.6, PyPy
and PyPy3.
See https://pymediainfo.readthedocs.io for more information.

%files
%doc README.rst LICENSE
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
export LANG=en_US.UTF-8

# filter web needed tests.
pytest-3 -k 'not test_parse_url and not test_thread_safety'


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7346 |21cr|python-pymetar-0.19-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	pymetar
  
Name:		python-%{oname}
Version:	0.19
Release:	4
Summary:	Weather report Python module
Group:		Development/Python
License:	GPLv2+
URL:		http://www.schwarzvogel.de/software-pymetar.shtml
Source0:	http://www.schwarzvogel.de/pkgs/pymetar-%{version}.tar.gz
BuildRequires:	python-devel
BuildRequires:	python-setuptools
Requires:	python 
BuildArch:	noarch 
  
%description 
This library downloads the weather report for a given station ID,
decodes it and provides easy access to all the data found in the
report.
  
%prep
%setup -q -n %{oname}-%{version}
  
%build 
  
%install 
python setup.py install --root=%{buildroot} --compile --optimize=2
rm -rf %{buildroot}%{_docdir}
 
%files  
%doc README THANKS librarydoc.txt
%{_bindir}/%{oname}
%{py_puresitedir}/*
%{_mandir}/man1/pymetar*


%changelog
* Mon Nov 29 2010 Guillaume Rousse <guillomovitch@mandriva.org> 0.17-1mdv2011.0
+ Revision: 603072
- update to new version 0.17

* Wed Nov 17 2010 Funda Wang <fwang@mandriva.org> 0.16-1mdv2011.0
+ Revision: 598173
- update file list

  + Sandro Cazzaniga <kharec@mandriva.org>
    - Fix file list
    - update to 0.16

* Sun Jan 10 2010 Guillaume Rousse <guillomovitch@mandriva.org> 0.15-1mdv2010.1
+ Revision: 489358
- new version

* Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 0.14-2mdv2010.0
+ Revision: 442440
- rebuild

* Sat Dec 27 2008 Adam Williamson <awilliamson@mandriva.org> 0.14-1mdv2009.1
+ Revision: 319648
- drop some now non-existent docs
- rebuild with python 2.6
- new release 0.14

* Thu Jul 31 2008 Adam Williamson <awilliamson@mandriva.org> 0.13-1mdv2009.0
+ Revision: 258360
- import python-pymetar




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7347 |21cr|python-pymongo-3.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname    pymongo

Name:           python-%{shortname}
Version:        3.0.3
Release:        3
Summary:        Python driver for MongoDB


Group:          Development/Python
License:        Apache License
URL:            http://api.mongodb.org/python/2.1/
Source0:        http://pypi.python.org/packages/source/p/pymongo/pymongo-%{version}.tar.gz
BuildRequires:  python-setuptools
BuildRequires:  python-devel

%define debug_package %{nil}

%description
The PyMongo distribution contains tools for interacting with MongoDB
database from Python.

The bson package is an implementation of the BSON format for Python.
The pymongo package is a native Python driver for MongoDB.
The gridfs package is a gridfs implementation on top of pymongo.
This driver is build without the C extensions.

%prep
%setup -q -n %{shortname}-%{version}

%build
python setup.py --no_ext build

%install
python setup.py --no_ext install -O1 --skip-build --root %{buildroot} --install-purelib=%{py_platsitedir}

%files
%{py_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7348 |21cr|python-pymssql-2.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pymssql

%global common_summary DB-API interface to Microsoft SQL Server
%global common_description A simple database interface for Python \
that builds on top of FreeTDS to provide\
a Python DB-API (PEP-249) interface to Microsoft SQL Server.

Name:           python-%{srcname}
Version:        2.1.4
Release:        1
Summary:        %{common_summary}
Group:          Development/Python
License:        LGPLv2+
URL:            http://pymssql.org/
Source0:        https://github.com/pymssql/pymssql/archive/v%{version}/%{srcname}-%{version}.tar.gz
# Allow pymssql to be built with current version of Cython provided in EPEL
Patch0:         %{name}-2.1.3-Cython.patch
# Disable dependency on setuptools_git, actually not needed to build the library
Patch1:         %{name}-2.1.3-disable_setuptools_git.patch
Patch2:         %{name}-2.1.4-python38.patch

BuildRequires:  gcc
BuildRequires:  freetds-devel

%description
%{common_description}

#------------------------------------------------------

%package -n python3-%{srcname}
Summary:        %{common_summary}
BuildRequires:  python3-cython
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{srcname}
%{common_description}

%files -n python3-%{srcname}
%doc ChangeLog README.rst
%doc LICENSE
%{py3_platsitedir}/*

#------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
export PYMSSQL_DONT_BUILD_WITH_BUNDLED_FREETDS=1
%py3_build

%install
%py3_install

# No %%check (unit tests require a running SQL Server database)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7349 |21cr|python-pymunk-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude .so
%define	module	pymunk

Summary:	Pymunk is a easy-to-use pythonic 2d physics library
Name:		python-%{module}
# 6.2.0 is the last one to build on cffi > 1.14.0
Version:	6.2.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://www.%{module}.org
Source0:	http://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.zip


%description
Pymunk is a easy-to-use pythonic 2d physics library that can be used whenever 
you need 2d rigid body physics from Python. Perfect when you need 2d physics 
in your game, demo or other application! It is built on top of the very 
capable 2d physics library `Chipmunk <http://chipmunk-physics.net>`_.

#---------------------------------------------------------

%package -n python3-%{module}

Summary:	Pymunk is a easy-to-use pythonic 2d physics library
BuildRequires:	pkgconfig(python3) 
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(cffi) > 1.14.0
BuildRequires:	python3egg(pyglet)
BuildRequires:	chipmunk-devel
Requires:	python3egg(cffi) > 1.14.0

%description -n python3-%{module}
Pymunk is a easy-to-use pythonic 2d physics library that can be used whenever 
you need 2d rigid body physics from Python. Perfect when you need 2d physics 
in your game, demo or other application! It is built on top of the very 
capable 2d physics library `Chipmunk <http://chipmunk-physics.net>`_.

%files -n python3-%{module}
%doc *.rst
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}*.egg-info

#---------------------------------------------------------
%prep
%setup -qn %{module}-%{version}
rm -fr *.egg-info
# too old
sed -i 's/def load_tests/def load_tests_xxx/' pymunk/tests/doctests.py
# wrong-file-end-of-line-encoding
perl -i -pe 's/\r\n/\n/gs' {CHANGELOG,README}.rst

%build
export CFLAGS="-fPIC -O2 -g"
%py3_build

%install
%py3_install
# zero-length
find %{buildroot} -type f -empty -delete


%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7350 |21cr|python-pynacl-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pynacl

Summary:	Python binding to the Networking and Cryptography (NaCl) library
Name:		python-%{pypi_name}
Version:	1.5.0
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/pyca/pynacl/
Source0:	https://files.pythonhosted.org/packages/source/p/%{pypi_name}/PyNaCl-%{version}.tar.gz
BuildRequires:	libsodium-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(cffi) >= 1.4.1
BuildRequires:	python3dist(hypothesis) >= 3.27.0
BuildRequires:	python3dist(pytest) >= 3.2.1
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(six)

%description
PyNaCl is a Python binding to libsodium, which is a fork of the Networking
and Cryptography library.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python binding to the Networking and Cryptography (NaCl) library
Group:		Development/Python

%description -n python3-%{pypi_name}
PyNaCl is a Python binding to libsodium, which is a fork of the Networking
and Cryptography library.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitearch}/nacl/
%{python3_sitearch}/PyNaCl-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------------------

%prep
%autosetup -n PyNaCl-%{version}

# Remove bundled libsodium, to be sure
rm -vrf src/libsodium/

%build
export SODIUM_INSTALL=system
%py3_build

%install
%py3_install

%check
%__python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7351 |21cr|python-pynut-1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NUT (Network UPS Tools) extension for Python
Name:		python-pynut
Version:	1.2
Release:	4
Group:		Development/Python 
License:	GPLv3+
URL:		http://www.lestat.st/informatique/projets/pynut-en
Source0:	http://www.lestat.st/_media/informatique/projets/pynut/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python2-devel

%description
PyNUT is an abstraction class written in Python to access NUT (Network UPS
Tools) server and execute commands without needing to know the communication
protocol. 

%package -n python2-pynut
%py2_migration_meta python2-pynut
Summary:	NUT (Network UPS Tools) extension for Python

%description -n python2-pynut
PyNUT is an abstraction class written in Python to access NUT (Network UPS
Tools) server and execute commands without needing to know the communication
protocol. 


%prep

%setup -q -n %{name}-%{version}
chmod 644 *

%build

%install
install -d %{buildroot}%{py2_puresitedir}
install -m0644 PyNUT.py %{buildroot}%{py2_puresitedir}/

%files -n python2-pynut
%defattr(-,root,root)
%doc copyright README test_nut.py.gz
%{py2_puresitedir}/PyNUT.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7352 |21cr|python-pyocr-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  pyocr

Name:           python-%{module}
Version:	0.8.3
Release:	1
Summary:        OCR tool wrapper for Python
Group:          Development/Python
License:        GPLv3
Url:            https://gitlab.gnome.org/World/OpenPaperwork/pyocr
Source0:	https://files.pythonhosted.org/packages/fc/2b/72d2bc6ac2255bd7b20bd19df36a1b1c37e09d3a18cb522c8017d4b74885/pyocr-0.8.3.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(xt)

Requires:       tesseract

%description
Pyocr is an optical character recognition (OCR) tool wrapper for python.
That is, it helps using OCR tools from a Python program.

Pyocr can be used as a wrapper for google's Tesseract-OCR
( http://code.google.com/p/tesseract-ocr/ ) or Cuneiform. It can read all image
types supported by the Python Imaging Library, including jpeg, png, gif, bmp, tiff,
and others. It also support bounding box data.

%package -n     python3-%{module}
Summary:        OCR tool wrapper for Python 3
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
BuildRequires:  python3dist(setuptools-scm-git-archive)
Requires:       tesseract

%description -n python3-%{module}
Pyocr is an optical character recognition (OCR) tool wrapper for python 3.
That is, it helps using OCR tools from a Python 3 program.

Pyocr can be used as a wrapper for google's Tesseract-OCR
( http://code.google.com/p/tesseract-ocr/ ) or Cuneiform. It can read all image
types supported by the Python Imaging Library, including jpeg, png, gif, bmp, tiff,
and others. It also support bounding box data.

%prep
%setup -q -n %{module}-%{version}

#drop bundled egg-info
rm -rf pyocr.egg-info/

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info
%{py3_puresitedir}/%{module}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7353 |21cr|python-pyotp-2.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pyotp

Name:           python-%{pypi_name}
Version:        2.7.0
Release:        1
Summary:        Python One Time Password library
Group:          Development/Python
BuildArch:      noarch

License:        BSD
URL:            http://pypi.python.org/pypi/pyotp
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
A Python library for generating one time passwords according to
RFC 4226 and the HOTP RFC.

#---------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
PyOTP is a Python library for generating and verifying one-time passwords. It
can be used to implement two-factor (2FA) or multi-factor (MFA) authentication
methods in web applications and in other systems that require users to log in.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/

#---------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}


%build
%py3_build

%check
%{__python3} test.py


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7354 |21cr|python-pypcap-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pypcap

Summary:	Simplified object-oriented Python extension module for libpcap
Name:		python-%{pypi_name}
Version:	1.3.0
Release:	1
License:	BSD
Group:		Development/Python
URL:		https://github.com/pynetwork/pypcap
Source0:	https://files.pythonhosted.org/packages/db/4f/419ad9b163f3e86c32ae3b1e2937709520e24dce589897a26fb875189520/pypcap-1.3.0.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	pcap-devel

%description
Simplified object-oriented Python extension module for libpcap - 
the current tcpdump.org version, the legacy version shipping with
some of the BSD operating systems, and the WinPcap port for
Windows.

#----------------------------------------------------------------
%package -n python3-pypcap
Summary:	Simplified object-oriented Python extension module for libpcap
Group:		Development/Python

%description -n python3-pypcap
Simplified object-oriented Python extension module for libpcap - 
the current tcpdump.org version, the legacy version shipping with
some of the BSD operating systems, and the WinPcap port for
Windows.

%files -n python3-pypcap
%doc README*
%{py3_platsitedir}/*

#----------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

rm -r *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7355 |21cr|python-pypdf3-1.0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name PyPDF3
%define oname pypdf3

Name:		python-%{oname}
Version:	1.0.6
Release:	3
Summary:	Pure-Python PDF toolkit
Group:		Development/Python
Url:		https://github.com/sfneal/PyPDF3
Source0:	%{pypi_source}
License:	BSD
BuildRequires:	python3-devel
BuildArch:	noarch

%description
A Pure-Python library built as a PDF toolkit. It is capable of:
    * extracting document information (title, author, ...),
    * splitting documents page by page,
    * merging documents page by page,
    * cropping pages,
    * merging multiple pages into a single page,
    * encrypting and decrypting PDF files.

#--------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Pure-Python PDF toolkit
Group:		Development/Python
Provides:	%{pypi_name} = %{EVRD}
Provides:	pyPdf = %{EVRD}
Provides:	python3-%{pypi_name} = %{EVRD}
%rename		python3-pypdf

%description -n python3-%{oname}
Fork of PyPDF2 1.26.0 with feature improvements.

A Pure-Python library built as a PDF toolkit. It is capable of:
    * extracting document information (title, author, ...),
    * splitting documents page by page,
    * merging documents page by page,
    * cropping pages,
    * merging multiple pages into a single page,
    * encrypting and decrypting PDF files.


%files -n python3-%{oname}
%doc README.md CHANGELOG
%{py3_puresitedir}/PyPDF3-%{version}-py%{py3_ver}.egg-info
%{py3_puresitedir}/%{pypi_name}/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7356 |21cr|python-pyperclip-1.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	pyperclip

Name:		python-%{module}
Version:	1.7.0
Release:	2
Summary:	A cross-platform clipboard module for Python
License:	MIT
Group:		Development/Python
Url:		https://github.com/asweigart/pyperclip
Source0:	https://pypi.io/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Pyperclip is a cross-platform Python module for copy and paste
clipboard functions.
#-----------------------------------------------------

%package -n	python3-%{module}
Summary:	A cross-platform clipboard module for Python 3
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-sphinx

Provides:	python3-pyperclip = %{EVRD}

%description -n python3-%{module}
Pyperclip is a cross-platform Python 3 module for copy and paste
clipboard functions.


%files -n python3-%{module}
%doc README.md
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py*.egg-info
%{_mandir}/man1/*

#-----------------------------------------------------

%prep
%setup -qn %{module}-%{version}

rm -rf %{module}.egg-info

%build
%py3_build
pushd docs
make man
popd


%install
%py3_install

install -D -m644 docs/_build/man/%{module}.1 %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7357 |21cr|python-pyphen-0.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pyphen
%global pypi_oname Pyphen

Name:           python-%{pypi_name}
Version:        0.9.1
Release:        4
Group:          Development/Python
Summary:        Pure Python module to hyphenate text

License:        MIT
URL:            http://pypi.python.org/pypi/%{pypi_name}
Source0:        http://pypi.python.org/packages/source/P/%{pypi_oname}/%{pypi_oname}-%{version}.tar.gz

BuildArch:      noarch

%description
Pure Python module to hyphenate text

%package -n python3-%{pypi_name}
Summary:        Pure Python module to hyphenate text
Group:          Development/Python
Provides:	 %{pypi_name} = %{version}-%{release}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
Pure Python module to hyphenate text

%prep
%setup -q -n %{pypi_oname}-%{version}

%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --skip-build --root %{buildroot}


%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_oname}-%version-py?.?.egg-info
%{_datadir}/%{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7358 |21cr|python-pypi-search-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define mod_name pypi_search
%define pypi_name pypi-search

Name:           python-%{pypi_name}
Summary:        Get Information on Python Packages From PyPI
Version:        1.2.1
Release:        1
License:        MIT
Group:          Development/Python
Url:            https://github.com/asadmoosvi/pypi-search
Source:         https://files.pythonhosted.org/packages/source/p/pypi-search/pypi-search-%{version}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:  python3-setuptools
Requires:       python3-beautifulsoup4 >= 4.9.2
Requires:       python3-html2text >= 2020.1.16
Requires:       python3-requests >= 2.22.0
BuildArch:      noarch

%define _description Get Information on Python Packages From PyPI
%description
%{_description}


#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name}
%doc README.md
%{_bindir}/pypisearch
%{py3_puresitedir}/%{mod_name}
%{py3_puresitedir}/%{mod_name}-%{version}-py*.egg-info
#------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install
# uncomment for fix rpmlint error "set python3 shebang"
#%%py3_shebang_fix
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7359 |21cr|python-pyprind-2.11.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname PyPrind
%define	module pyprind

Summary:	Python Progress Bar and Percent Indicator Utility
Name:		python-%{module}
Version:	2.11.3
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/rasbt/pyprind
Source0:	%pypi_source %{oname}

BuildArch:	noarch

%description
The Python Progress Indicator module provides a progress bar and a percentage
indicator object that let you track the progress of a loop structure or other
iterative computation. Typical applications include the processing of large
data sets to provide an intuitive estimate at runtime about the progress of
the computation.

#-----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python3 Progress Bar and Percent Indicator Utility
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(psutil)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(py)
BuildRequires:	python3egg(pluggy)


%description -n python3-%{module}
The Python Progress Indicator module provides a progress bar and a percentage
indicator object that let you track the progress of a loop structure or other
iterative computation. Typical applications include the processing of large
data sets to provide an intuitive estimate at runtime about the progress of
the computation.
This package contains the Python3 module.

%files -n python3-%{module}
%doc LICENSE *.md
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{oname}-%{version}-py?.?.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

# Remove bundled egg-info
rm -rf %{oname}.egg-info


%build
%py3_build


%install
%py3_install

%check
# not working on abf.
# export PYTHONPATH=%%{buildroot}%%{py3_puresitedir} && pytest-3



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7360 |21cr|python-pyproj-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define minimal_needed_proj_version 7.2.0
%define module pyproj

Name:           python-%{module}
Version:	3.3.0
Release:	1
Summary:        Cython wrapper to provide python interfaces to Proj
License:        MIT
Group:          Development/Python
Url:            https://github.com/jswhit/%{module}
Source0:	https://files.pythonhosted.org/packages/e4/36/c151d658ca1a1ccfd5ed82ac3b41d13c36cbd0687da97ac1beaeb3381fa8/pyproj-3.3.0.tar.gz
# the old source url still works, but if need be it can be replaced
# with: https://files.pythonhosted.org/packages/source/p/%%{module}/%%{module}-%%{version}.tar.gz
BuildRequires:  pkgconfig(proj) >= %{minimal_needed_proj_version}
BuildRequires:  proj >= %{minimal_needed_proj_version}
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(cython)
BuildRequires:  python3egg(certifi)
BuildRequires:  chrpath

# needed to build the documentation
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(sphinx-argparse)
BuildRequires:  python3egg(sphinx-rtd-theme)

%define _description \
Cython wrapper to provide python interfaces to Proj. \
Performs cartographic transformations between geographic (Lat/Lon) \
and map projection (x/y) coordinates. Can also transform directly \
from one map projection coordinate system to another. \
Coordinates can be given as numpy arrays, python arrays, lists or scalars. \
Optimized for numpy arrays.

%description %_description

#----------------------------------------------------------------
%package -n python3-%{module}

Summary: %summary
Requires:  proj >= %{minimal_needed_proj_version}

%description -n python3-%{module} %_description

%files -n python3-%{module}
%doc README.md
%{_bindir}/%{module}
%{py3_platsitedir }/%{module}/
%{py3_platsitedir }/%{module}-*-py*.egg-info/
%{_mandir}/man1/pyproj*

#----------------------------------------------------------------
%package -n python3-%{module}-doc

Summary:    Documentation and example code
BuildArch:  noarch

%description -n python3-%{module}-doc
This package contains the html documentation for the pyproj module.

%files -n python3-%{module}-doc
%doc %{_datadir}/doc/%{module}/

#----------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# remove use of /usr/bin/env in docs/conf.py
sed -i -e 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/g' docs/conf.py

%build
export PROJ_DIR="%{_usr}/"

%py3_build

# generate documentation
cd docs

# Need to point to the build dir so sphinx can import the module
# before it is installed.
# Note that %%{_arch} does not work for all architectures
# so some if/then's are needed here, since I could not find any
# standard macro that solves this.
%ifarch x86_64 aarch64
  %define py_build_libdir lib.linux-%{_arch}-%{python3_version}
%endif
%ifarch i686
  # %%{_arch} seems to expand to i386 here which does not work
  # so make explicit what we need
  %define py_build_libdir lib.linux-i686-%{python3_version}
%endif


PYTHONPATH=%{_builddir}/%{module}-%{version}/build/%{py_build_libdir}/ make html
PYTHONPATH=%{_builddir}/%{module}-%{version}/build/%{py_build_libdir}/ make man

# rpmlint complains many times with the rather cryptic warning:
#     "a special character is not allowed in a name"
# Actually for this man page this indicates a syntax error, since
# it does not have a space after ".B" in many places.
# (it is not clear to me where this originates, from the sphinx tool
#  or the input sources.)
# This sed command corrects for this problem.
sed -i -e 's/^\.B\\-/\.B \\-/g' %{_builddir}/%{module}-%{version}/docs/_build/man/pyproj.1
 
%install
export PROJ_DIR="%{_usr}/"

%py3_install

# ensure the autogenerated hidden .buildinfo file is not included
# since rpmlint does not like hidden files in the documentation
%{__rm} %{_builddir}/%{module}-%{version}/docs/_build/html/.buildinfo

# move html documentation to datadir/doc
mkdir -p %{buildroot}%{_datadir}/doc/%{module}
mv %{_builddir}/%{module}-%{version}/docs/_build/html \
   %{buildroot}%{_datadir}/doc/%{module}/html

# copy pyproj man page
mkdir -p %{buildroot}/%{_mandir}/man1
cp %{_builddir}/%{module}-%{version}/docs/_build/man/pyproj.1 \
   %{buildroot}/%{_mandir}/man1/

# remove the documentation sources and generated doctrees
# since they dont belong in the main package
%{__rm} -rf %{_builddir}/%{module}-%{version}/docs

# correct wrong write permission for group
%{__chmod} 755 %{buildroot}/%{py3_platsitedir }/%{module}/*.so

# remove the rpath setting from _proj.so
chrpath -d %{buildroot}/%{py3_platsitedir }/%{module}/*.so

find %{buildroot} -type f -empty -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7361 |21cr|python-pypubsub-4.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pypubsub
%define src_name Pypubsub

Name:           python-%{pypi_name}
Version:        4.0.3
Release:        1
Summary:        Python Publish-Subscribe Package
Group:          Development/Python
License:        BSD
Url:            https://github.com/schollii/pypubsub
Source0:        https://github.com/schollii/%{pypi_name}/archive/v%{version}/%{src_name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

BuildArch:      noarch

%description
PyPubSub provides a publish - subscribe API that facilitates the development of
event-based / message-based applications. PyPubSub supports sending and
receiving messages between objects of an application. It is centered on the
notion of a topic; senders publish messages of a given topic, and listeners
subscribe to messages of a given topic. The package also supports a variety of
advanced features that facilitate debugging and maintaining pypubsub topics and
messages in larger applications.
#-------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        Python 3 Publish-Subscribe Package
Group:          Development/Python

%description -n python3-%{pypi_name}
PyPubSub provides a publish - subscribe API that facilitates the development of
event-based / message-based applications. PyPubSub supports sending and
receiving messages between objects of an application. It is centered on the
notion of a topic; senders publish messages of a given topic, and listeners
subscribe to messages of a given topic. The package also supports a variety of
advanced features that facilitate debugging and maintaining pypubsub topics and
messages in larger applications.

%files -n python3-%{pypi_name}
%doc README.rst src/pubsub/RELEASE_NOTES.txt src/pubsub/LICENSE_BSD_Simple.txt
%{py3_puresitedir}/%{src_name}*
%{py3_puresitedir}/pubsub/

#-------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7362 |21cr|python-pyqode-core-3.2.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyqode.core

Name:           python-pyqode-core
Version:        3.2.21
Release:        2
License:        MIT
Summary:        PyQt/PySide Source Code Editor Widget
Group:          Development/Python
URL:            https://github.com/pyQode/%{module}
Source0:        https://files.pythonhosted.org/packages/source/p/pyqode3.core/pyqode3.core-%{version}.tar.gz

BuildRequires:       python3egg(setuptools)
BuildRequires:       pkgconfig(python3)
BuildRequires:       python3egg(pyqode.qt)
BuildRequires:       python3egg(future)
BuildRequires:       python3egg(pathspec)
BuildRequires:       python3egg(pygments)
BuildRequires:       python3egg(qtawesome)
Requires:       python3egg(qtawesome)
BuildArch:      noarch

%description
PyQt/PySide Source Code Editor Widget

#----------------------------------------------

%package -n python3-%{module}
Summary:        PyQt/PySide Source Code Editor Widget
Group:          Development/Python

%description -n python3-%{module}
PyQt/PySide Source Code Editor Widget

%files -n python3-%{module}
%doc *.rst LICENSE
%{_bindir}/pyqode-console
%{py3_puresitedir}/pyqode
%{py3_puresitedir}/pyqode.core-%{version}-py*.egg-info
%{py3_puresitedir}/pyqode.core-%{version}-py*-nspkg.pth
#----------------------------------------------

%prep
%setup -qn pyqode3.core-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7363 |21cr|python-pyqode.python-3.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyqode.python

Name:           python-%{module}
Version:        3.2.3
Release:        1
Summary:        Adds python support to pyqodecore
Group:          Development/Python
License:        MIT
URL:            https://github.com/pyQode/%{module}
Source:         https://files.pythonhosted.org/packages/source/p/pyqode3.python/pyqode3.python-%{version}.tar.gz

BuildRequires:       python3egg(setuptools)
BuildRequires:       pkgconfig(python3)
BuildRequires:       python3egg(autopep8)
BuildRequires:       python3egg(docutils)
BuildRequires:       python3egg(jedi)
BuildRequires:       python3egg(pycodestyle)
BuildRequires:       python3egg(pyflakes)
BuildRequires:       python3egg(pyqode.qt)
BuildRequires:       python3egg(pyqode.core)

Requires:       python3egg(autopep8)
Requires:       python3egg(docutils)
Requires:       python3egg(jedi)
Requires:       python3egg(pycodestyle)
Requires:       python3egg(pyflakes)
Requires:       python3egg(pyqode.qt)
Requires:       python3egg(pyqode.core)

Provides:       python3-%{module} = %{EVRD}

BuildArch:      noarch


%description
Adds python support to pyqode.core

%files
%doc *.rst LICENSE
%{py3_puresitedir}/pyqode
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
%{py3_puresitedir}/pyqode.python-3.2.3-py3.8-nspkg.pth
#--------------------------------------------

%prep
%setup -qn pyqode3.python-%{version}
rm -fr *.egg-info

%build
%py3_build

%install
%py3_install

# remove use of env
pushd %{buildroot}%{py3_puresitedir}/pyqode/python/backend
sed -i -e 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/g' {server,workers}.py
chmod +x {server,workers}.py
popd



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7364 |21cr|python-pyqode.qt-2.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  pyqode.qt

Name:           python-%{module}
Version:        2.10.0
Release:        1
Summary:        Shim library that wraps PyQt5, PyQt4 and PySide
License:        MIT
Group:          Development/Python
URL:            https://github.com/pyQode/%{module}
Source:         https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)
Provides:       python3-%{module} == %{EVRD}

BuildArch:      noarch


%description
Shim library that wraps PyQt5, PyQt4 and PySide.

%files
%doc *.rst LICENSE examples
%{py3_puresitedir}/*
#-------------------------------------------------------


%prep
%setup -qn %{module}-%{version}
rm -fr *-egg.info

%build
%py3_build

%install
%py3_install






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7365 |21cr|python-pyqtgraph-0.12.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyqtgraph

Name:           python-%{module}
Version:        0.12.3
Release:        1
Group:          Development/Python
Summary:        Scientific Graphics and GUI Library for Python
License:        MIT
Url:            http://www.%{module}.org/
Source0:        https://pypi.io/packages/source/p/%{module}/%{module}-%{version}.tar.gz

BuildArch:      noarch

%description
PyQtGraph is a pure-python graphics and GUI library built on PyQt4/PySide and
numpy.

It is intended for use in mathematics / scientific / engineering
applications.
Despite being written entirely in python, the library is very
fast due to its
heavy leverage of numpy for number crunching, Qt's GraphicsView
framework for
2D display, and OpenGL for 3D display.

#----------------------------------------------------------------
%package -n python3-%{module}

Summary:        Scientific Graphics and GUI Library for Python 3
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(h5py)
BuildRequires:  python3egg(pyopengl)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(matplotlib)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(six)
BuildRequires:  python3-qt5-devel

Requires:       python3egg(pyqt5)
Requires:       python3egg(h5py)
Requires:       python3egg(pyopengl)

Provides:       python3-%{module} = %{EVRD}

%description -n python3-%{module}
PyQtGraph is a pure-python 3 graphics and GUI library built on
PyQt4/PySide and numpy.

It is intended for use in mathematics / scientific / engineering
applications.
Despite being written entirely in python, the library is very
fast due to its
heavy leverage of numpy for number crunching, Qt's GraphicsView
framework for
2D display, and OpenGL for 3D display.

%files -n python3-%{module}
%doc examples doc/build/html LICENSE.txt CHANGELOG README.md
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
%{py3_puresitedir}/%{module}/

#---------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

chmod -x examples/Symbols.py
perl -i -pe 's/\r\n/\n/gs' examples/DateAxisItem_QtDesigner.ui

%build
%py3_build
make -C doc html
# remove the sphinx-build leftovers
rm -f doc/build/html/.buildinfo
rm -f doc/build/html/objects.inv


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7366 |21cr|python-pyquery-1.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	pyquery

Summary:	JQuery-like library for Python

Name:		python-%{pypi_name}
Version:	1.4.3
Release:	1
Source0:	https://pypi.python.org/packages/source/p/%{pypi_name}/pyquery-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://bitbucket.org/olauzanne/pyquery/
BuildArch:	noarch

%description
pyquery allows you to make jquery queries on xml documents.  The API
is as much as possible the similar to jquery. pyquery uses lxml for
fast xml and html manipulation.

#---------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	JQuery-like library for Python
BuildRequires:	python3-setuptools
BuildRequires:	python3-lxml >= 2.1
Requires:	python3-lxml >= 2.1
Requires:	python3-cssselect

%description -n python3-%{pypi_name}
pyquery allows you to make jquery queries on xml documents.  The API
is as much as possible the similar to jquery. pyquery uses lxml for
fast xml and html manipulation.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/%{pypi_name}*

#---------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%install
PYTHONDONTWRITEBYTECODE= %__python3 setup.py install --root=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7367 |21cr|python-pyramid-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pyramid
%global sum The Pyramid web application framework, a Pylons project
%global desc Pyramid is a small, fast, down-to-earth, open source Python web development\
framework. It makes real-world web application development and deployment more\
fun, more predictable, and more productive.
%{?python_enable_dependency_generator}


Name:           python-%{pypi_name}
Version:        2.0
Release:        1
Summary:        %{sum}
Group:          Development/Python
License:        BSD
URL:            https://trypyramid.com/
Source0:        %pypi_source %{pypi_name}
BuildArch:      noarch



BuildRequires:  python3-devel
BuildRequires:  python3egg(docutils)
BuildRequires:  python3egg(hupper)
BuildRequires:  python3egg(mako)
BuildRequires:  python3egg(plaster)
BuildRequires:  python3egg(plaster-pastedeploy)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(translationstring)
BuildRequires:  python3egg(venusian) >= 1.0
BuildRequires:  python3egg(webtest)
BuildRequires:  python3egg(zope.component) >= 3.6.0
BuildRequires:  python3egg(zope.deprecation) >= 3.5.0
BuildRequires:  python3egg(zope.interface)
BuildRequires:  python3egg(webob) >= 1.8.3

%description
%{desc}

#---------------------------------------------------------------
%package -n python3-pyramid
Summary:        %{sum}
Group:          Development/Python

%description -n python3-pyramid
%{desc}

%files -n python3-pyramid
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}*.egg-info
%{_bindir}/pdistreport-%{python3_version}
%{_bindir}/pdistreport-3
%{_bindir}/pdistreport
%{_bindir}/prequest-%{python3_version}
%{_bindir}/prequest-3
%{_bindir}/prequest
%{_bindir}/proutes-%{python3_version}
%{_bindir}/proutes-3
%{_bindir}/proutes
%{_bindir}/pserve-%{python3_version}
%{_bindir}/pserve-3
%{_bindir}/pserve
%{_bindir}/pshell-%{python3_version}
%{_bindir}/pshell-3
%{_bindir}/pshell
%{_bindir}/ptweens-%{python3_version}
%{_bindir}/ptweens-3
%{_bindir}/ptweens
%{_bindir}/pviews-%{python3_version}
%{_bindir}/pviews-3
%{_bindir}/pviews

#---------------------------------------------------------------

%prep
%autosetup -n pyramid-%{version} -p1

# Remove bundled egg info
rm -rf %{pypi_name}.egg-info


%build
%py3_build


%install
%py3_install

# Create the Python 3 executables.
for e in pserve prequest proutes pshell ptweens pviews pdistreport; do
    mv %{buildroot}/%{_bindir}/$e %{buildroot}/%{_bindir}/$e-%{python3_version};
    ln -s %{_bindir}/$e-%{python3_version} %{buildroot}/%{_bindir}/$e-3;
    ln -s %{_bindir}/$e-%{python3_version} %{buildroot}/%{_bindir}/$e
done;


%check
%__python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7368 |21cr|python-pyrex-0.9.9-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyrex

%{?build_emacs}%{?!build_emacs:%bcond_without emacs}

Summary:	Language for Writing Python Extension Modules
Name:		python-%{module}
Version:	0.9.9
Release:	15
License:	Apache License
Group:		Development/Python
Url:		http://www.cosc.canterbury.ac.nz/~greg/python/Pyrex/
Source0:	Pyrex-%{version}.tar.gz
%if %{with emacs}
BuildRequires:	dos2unix
BuildRequires:	emacs
%endif
BuildRequires:	pkgconfig(python2)
BuildArch:	noarch

%description
Pyrex lets you write code that mixes Python and C data types any way you want,
and compiles it into a C extension for Python. 

#-------------------------------------------------------------
%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Language for Writing Python Extension Modules

%description -n python2-%{module}
Pyrex lets you write code that mixes Python and C data types any way you want,
and compiles it into a C extension for Python. 

%files -n python2-%{module}
%{py2_puresitedir}/*
%{_bindir}/*

%doc *.txt Demos Doc
%if %{with emacs}
%{_sysconfdir}/emacs/site-start.d/*.el*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n Pyrex-%{version}

%install
find -name .*hg* | xargs rm -rf

PYTHONDONTWRITEBYTECODE= python2 setup.py install --root=%{buildroot}
%if %{with emacs}
pushd Tools
dos2unix pyrex-mode.el
emacs -batch -f batch-byte-compile pyrex-mode.el
install -m 755 -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
install -m 644 pyrex-mode.el* %{buildroot}%{_sysconfdir}/emacs/site-start.d
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7369 |21cr|python-pyrfc3339-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name pyrfc3339

Name:           python-%{upstream_name}
Version:        1.0
Release:        3
Summary:        Generate and parse RFC 3339 timestamps
Group:          Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/pyRFC3339
Source0:        https://pypi.python.org/packages/source/a/pyRFC3339/pyRFC3339-%{version}.tar.gz
BuildArch:      noarch

%description
pyRFC3339 parses and generates RFC 3339-compliant timestamps using Python
datetime.datetime objects.

%package -n     python3-%{upstream_name}
Summary:        Generate and parse RFC 3339 timestamps
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description -n python3-%{upstream_name}
pyRFC3339 parses and generates RFC 3339-compliant timestamps using Python
datetime.datetime objects.

This is the Python 3 version of the package.

%prep
%setup -q -n pyRFC3339-%{version}

# Remove bundled egg-info
rm -rf pyRFC3339.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{upstream_name}
%{py3_puresitedir}/pyrfc3339
%{py3_puresitedir}/pyRFC3339-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7370 |21cr|python-pyrite-publisher-2.1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyrite-publisher

Summary:	Content Creation Tools for Palm Computing Platform Users
Name:		python-%{oname}
Version:	2.1.1
Release:	11
License:	GPLv2+
Group:		Development/Python
Url:		http://www.pyrite.org/
Source0:	%{oname}-%{version}.tar.bz2
BuildRequires:	pkgconfig(python)
Provides:	txt2pdbdoc = %{EVRD}

%description
Pyrite Publisher is a data converter for Palm Computing Platform
users.  At the moment it is focused on producing e-books for use with
standard document readers.  It has the following features, and maybe
more:

  - converts text and HTML documents to the standard Doc format or the
    new high-compression zTXT format
  - gathers input from local files or from http/ftp URLs
  - produces rich text markup for RichReader or TealDoc
  - detects and reflows paragraphs in text files
  - automatically bookmarks HTML headers and named anchors
  - automatically bookmarks regular expressions in text files
  - supports zTXT annotations and both compression modes
  - annotates and/or footnotes HTML link targets
  - converts between Doc and zTXT while preserving bookmarks
  - converts Doc or zTXT back to text
  - processes Doc or zTXT content as if it is a regular text file
  - most behavior is configurable
  - architecture is extensible to allow addition of more kinds of
    document markup, more input formats, and even handling entirely
    new types of data

%package -n python2-%{oname}
Summary:	Content Creation Tools for Palm Computing Platform Users

%description -n python2-%{oname}
Pyrite Publisher is a data converter for Palm Computing Platform
users.  At the moment it is focused on producing e-books for use with
standard document readers.  It has the following features, and maybe
more:

  - converts text and HTML documents to the standard Doc format or the
    new high-compression zTXT format
  - gathers input from local files or from http/ftp URLs
  - produces rich text markup for RichReader or TealDoc
  - detects and reflows paragraphs in text files
  - automatically bookmarks HTML headers and named anchors
  - automatically bookmarks regular expressions in text files
  - supports zTXT annotations and both compression modes
  - annotates and/or footnotes HTML link targets
  - converts between Doc and zTXT while preserving bookmarks
  - converts Doc or zTXT back to text
  - processes Doc or zTXT content as if it is a regular text file
  - most behavior is configurable
  - architecture is extensible to allow addition of more kinds of
    document markup, more input formats, and even handling entirely
    new types of data

%files -n python2-%{oname}
%doc ChangeLog NEWS PKG-INFO README.txt
%{_libdir}/python%{py2_ver}/site-packages/*
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7371 |21cr|python-pyro-4.81-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Pyro4
%define module pyro

Name:           python-%{module}
URL:            https://pypi.python.org/pypi/%{oname}
Summary:        PYthon Remote Objects
Version:        4.81
Release:        4
License:        MIT
Group:          Development/Python
Source:         https://pypi.python.org/packages/source/P/%{oname}/%{oname}-%{version}.tar.gz
BuildArch:	noarch


%description
Pyro provides an object-oriented form of RPC. You can use Pyro within a
single system but also use it for IPC. For those that are familiar with
Java, Pyro resembles Java's Remote Method Invocation (RMI). It is less
similar to CORBA - which is a system- and language independent Distributed
Object Technology and has much more to offer than Pyro or RMI.
#----------------------------------------------------------------

%package -n python3-%{module}
Summary:        PYthon Remote Objects
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)

Provides:	python3-Pyro = %{EVRD}

%description -n python3-%{module}
Pyro provides an object-oriented form of RPC. You can use Pyro within a
single system but also use it for IPC. For those that are familiar with
Java, Pyro resembles Java's Remote Method Invocation (RMI). It is less
similar to CORBA - which is a system- and language independent Distributed
Object Technology and has much more to offer than Pyro or RMI.

%files -n python3-%{module}
%doc LICENSE docs/*
%{_bindir}/pyro4*
%{_mandir}/man1/pyro.1*
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-*.egg-info

#----------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
rm -fr src/Pyro4.egg-info

find docs -type f -exec sed -i 's/\r//' {} \;
find docs -type f -exec chmod -x {} \;
sed -i 's/\r//' LICENSE

%build
%py3_build
# man
make -C docs man

%install
%py3_install
# man
install -Dm644 build/sphinx/man/pyro.1 \
    %{buildroot}%{_mandir}/man1/pyro.1



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7372 |21cr|python-pyrtf-0.45-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	PyRTF

Name: 	 	python-pyrtf
Summary: 	Python module to generate RTF documents

Version: 	0.45
Release: 	9
Source0:	http://downloads.sourceforge.net/pyrtf/%{oname}-%{version}.tar.bz2
URL:		http://pyrtf.sourceforge.net/
License:	GPL+
Group:		Development/Python
BuildRequires:	python2-devel
BuildArch:	noarch
%rename	PyRTF

%description
PyRTF is a set of python2 classes that make it possible to produce RTF
documents from python2 programs. The library has no external dependencies
and has proved reliable and fast.

%package -n python2-pyrtf
%py2_migration_meta python2-pyrtf
Summary: 	Python module to generate RTF documents

%description -n python2-pyrtf
PyRTF is a set of python classes that make it possible to produce RTF
documents from python programs. The library has no external dependencies
and has proved reliable and fast.


%prep
%setup -q -n %{oname}-%{version}

%install
python2 setup.py install --root=%{buildroot} --compile --optimize=2

%files -n python2-pyrtf
%{py2_puresitedir}/%{oname}
%{py2_puresitedir}/%{oname}-%{version}-py%{py2_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7373 |21cr|python-pyScanLib-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	pyScanLib

Summary:	An combination of Twain and SANE API
Summary(ru_RU.UTF-8):	Комбинация API для TWAIN и SANE
Name:		python-%{pypi_name}
Version:	1.1
Release:	1
License:	GPL
Group:		Development/Python
Url:		https://github.com/soachishti/%{pypi_name}
Source0:	https://github.com/soachishti/%{pypi_name}/archive/refs/tags/v%{version}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pytest
BuildRequires:	python3-mock
BuildRequires:	python3-pkg-resources
BuildRequires:	python3-setuptools
BuildRequires:  pkgconfig(glib-2.0)

BuildArch:	noarch

%define _description \
An combination of Twain and SANE API

%define _description_ru \
Комбинация API для TWAIN и SANE

%description
%{_description}

%description -l ru_RU.UTF-8
%{_description_ru}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%description -l ru_RU.UTF-8 -n python3-%{pypi_name}
%{_description_ru}

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}*

#------------------------------------------------------------------

%package -n %{pypi_name}
Summary:	An combination of Twain and SANE API
Summary(ru_RU.UTF-8):	Комбинация API для TWAIN и SANE
Group:	Development/Python
Requires:	python3-%{pypi_name} = %{EVRD}
Provides:	%{pypi_name} = %{EVRD}

%description -n %{pypi_name}
%{_description}

%description -l ru_RU.UTF-8 -n %{pypi_name}
%{_description_ru}

%files -n %{pypi_name}
%{python3_sitelib}/%{pypi_name}*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7374 |21cr|python-pyscrlink-0.2.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	pyscrlink

Summary:	 Python module to connect Scratch to Bluetooth devices such as micro:bit
Summary(ru_RU.UTF-8):	Модуль для Scratch в Linux
Name:		python-%{pypi_name}
Version:	0.2.8
Release:	4
License:	BSD License
Group:		Development/Python
Url:		https://github.com/kawasaki/pyscrlink
Source0:	https://github.com/kawasaki/pyscrlink/archive/v%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pytest
BuildRequires:	python3-mock
BuildRequires:	python3-setuptools
Requires:	python3-bluepy
BuildArch:	noarch
Patch0:		0001-Revert-commits-excluding-ev3.patch

%define _description \
Scratch-link is a software module which connects Scratch to Bluetooth devices such as micro:bit.

%define _description_ru \
Модуль Python, позволяющий подключать Scratch к таким устройствам как micro:bit по Bluetooth.

%description
%{_description}

%description -l ru_RU.UTF-8
%{_description_ru}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
Requires:	libcap-utils

%description -n python3-%{pypi_name}
%{_description}

%description -l ru_RU.UTF-8 -n python3-%{pypi_name}
%{_description_ru}

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
%{_bindir}/bluepy_helper_cap
%{_bindir}/scratch_link

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7375 |21cr|python-pysearch-3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:           python-pysearch
Version:        3.1
Release:        5
Summary:        Python API for the Yahoo Search Webservices API
Group:          Development/Python
License:        GPLv2+
URL:            http://sourceforge.net/projects/pysearch/
Source0:        %{name}-%{version}.tar.gz
Provides:       pYsearch
BuildRequires:  python2-devel

%description
pYsearch implements a Python API for the Yahoo Search Webservices API.
 It provides an object orientated abstraction of the web services,
 with emphasis on ease of use and extensibility.

%package -n python2-pysearch
Summary:        Python API for the Yahoo Search Webservices API

%description -n python2-pysearch
pYsearch implements a Python API for the Yahoo Search Webservices API.
 It provides an object orientated abstraction of the web services,
 with emphasis on ease of use and extensibility.


%prep
%setup -q -n %{name}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install -O1 --skip-build --root %{buildroot}

%files -n python2-pysearch
%defattr(-,root,root,-)
%doc ChangeLog README NEWS docs
%{py2_puresitedir}/yahoo/*
%{py2_puresitedir}/pYsearch*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7376 |21cr|python-pyshp-2.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyshp

Name:           python-%{module}
Version:        2.1.3
Release:        1
Summary:        Pure Python read/write support for ESRI Shapefile format
License:        MIT
Group:          Development/Python
Url:            https://github.com/GeospatialPython/%{module}
Source0:        https://github.com/GeospatialPython/%{module}/archive/%{version}/%{module}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

BuildArch:      noarch

#-----------------------------------------------------
%package -n python3-%{module}
Summary:        Pure Python 3 read/write support for ESRI Shapefile format

%description
Pure Python read/write support for ESRI Shapefile format

%description -n python3-%{module}
Pure Python 3 read/write support for ESRI Shapefile format

%files -n python3-%{module}
%doc README.md changelog.txt LICENSE
%{py3_puresitedir }/shapefile.py*
%{py3_puresitedir }/%{module}-%{version}-py*.egg-info
%{py3_puresitedir }/__pycache__/shapefile*
#-----------------------------------------------------

%prep
%setup -qn %{module}-%{version}

#fixed docs ,else test fail
sed -i 's/.$//' changelog.txt
iconv -c -t UTF-8 < LICENSE.TXT > LICENSE
sed -i 's/.$//' LICENSE

rm -rf %{module}.egg-info

%build
%py3_build


%install
%py3_install


%check
python3 shapefile.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7377 |21cr|python-pysocks-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name   PySocks
%global modname     pysocks

Name:               python-%{modname}
Version:            1.7.0
Release:            1
Summary:            A Python SOCKS client module
Group:              Development/Python
License:            BSD
URL:                https://github.com/Anorov/PySocks
Source0:            https://github.com/Anorov/PySocks/archive/refs/tags/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildArch:          noarch

%global _description %{expand:
A fork of SocksiPy with bug fixes and extra features.

Acts as a drop-in replacement to the socket module. Featuring:

- SOCKS proxy client for Python 2.6 - 3.x
- TCP and UDP both supported
- HTTP proxy client included but not supported or recommended (you should use
  urllib2's or requests' own HTTP proxy interface)
- urllib2 handler included
}

%description
%_description

#-----------------------------------------------------------------------------

%package -n python3-%{modname}
Summary:            %{summary}
BuildRequires:      python3-devel
BuildRequires:      python3-setuptools

%description -n python3-%{modname}
%_description
This package is for Python3 version %{python3_version} only.

%files -n python3-%{modname}
%doc README.md
%license LICENSE
%{python3_sitelib}/socks.py*
%{python3_sitelib}/sockshandler.py*
%{python3_sitelib}/__pycache__/*socks*
%{python3_sitelib}/%{pypi_name}-%{version}-*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# drop useless 3rdparty code
rm -rfv test/bin

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7378 |21cr|python-pyspnego-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyspnego

Name:           python-%{module}
Version:        0.3.1
Release:        1
Summary:        Python SPNEGO authentication library
License:        MIT
Group:          Development/Python
URL:            https://github.com/jborean93/%{module}
Source:         https://github.com/jborean93/%{module}/archive/v%{version}.tar.gz#/%{module}-%{version}.tar.gz
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(cryptography)
BuildRequires:  python3egg(pytest-mock)
BuildRequires:  python3egg(pytest)

Provides:       python3-%{module} == %{EVRD}
BuildArch:      noarch


%description
Library to handle SPNEGO (Negotiate, NTLM, Kerberos) authentication.
Also includes a packet parser that can be used to decode raw
NTLM/SPNEGO/Kerberos tokens into a human readable format.

%files
%doc *.md LICENSE
%{_bindir}/%{module}-parse
%{py3_puresitedir}/spnego
%{py3_puresitedir}/%{module}-%{version}*-info
#-----------------------------------------------

%prep
%setup -q -n %{module}-%{version}
sed -i '1{/^#!/ d}' src/spnego/__main__.py

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3 -v


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7379 |21cr|python-pysvn-1.9.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pysvn

Summary:	Highlevel Subversion Python bindings
Name:		python-%{oname}
Version:	1.9.16
Release:	1
License:	Apache License
Group:		Development/Python
Url:		http://pysvn.sourceforge.io
Source0:	http://pysvn.barrys-emacs.org/source_kits/%{oname}-%{version}.tar.gz
BuildRequires:	subversion-tools
BuildRequires:	subversion-devel
BuildRequires:	pkgconfig(apr-1)
BuildRequires:	pkgconfig(apr-util-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-cxx-devel >= 7.1.5

%description
pysvn is a highlevel and easy to use Python bindings to Subversion.

#----------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Highlevel Subversion Python bindings
Group:		Development/Python

%description -n python3-%{oname}
pysvn is a highlevel and easy to use Python bindings to Subversion.

%files -n python3-%{oname}
%doc LICENSE.txt
%{py3_platsitedir}/%{oname}

#----------------------------------------------------------------------------

%package -n python3-%{oname}-docs
Summary:	Programmer's documentation for pysvn
Group:		Documentation
BuildArch:	noarch

%description -n python3-%{oname}-docs
pysvn is a highlevel and easy to use Python bindings to Subversion.

This package contains the pysvn Programmer's Guide and the Programmer's
Reference.

%files -n python3-%{oname}-docs
%doc Docs/*.html Docs/*.js Examples

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

# remove bundled libs
rm -rf Import

%build
cd Source
CFLAGS="%{optflags}" %__python3 setup.py configure --verbose --fixed-module-name --enable-debug --norpath

#fix flags
sed -i -e 's|-Wall -fPIC -fexeptions -frtti|%{optflags} -fPIC -frtti|' Makefile

%make

%install
install -d -m 0755 %{buildroot}%{py3_platsitedir}/%{oname}
cp -a Source/%{oname}/*.py %{buildroot}%{py3_platsitedir}/%{oname}
cp -a Source/%{oname}/_pysvn*.so %{buildroot}%{py3_platsitedir}/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7380 |21cr|python-pytest-aiohttp-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-aiohttp

Name:           python-%{pypi_name}
Version:        0.3.0
Release:        1
Summary:        A pytest plugin for aiohttp support
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/aio-libs/pytest-aiohttp/
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
The library allows to use aiohttp pytest plugin without need for implicitly
loading it like pytest_plugins = 'aiohttp.pytest_plugin'.

#----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
The library allows to use aiohttp pytest plugin without need for implicitly
loading it like pytest_plugins = 'aiohttp.pytest_plugin'.

%files -n python3-%{pypi_name}
%doc CHANGES.rst README.rst
%license LICENSE
%{python3_sitelib}/pytest_aiohttp/
%{python3_sitelib}/pytest_aiohttp*.egg-info

#----------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7381 |21cr|python-pytest-datadir-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-pytest-datadir
Version:        1.4.1
Release:        1
Summary:        Pytest plugin for test data directories and files
Group:          Development/Python
License:        MIT
URL:            https://github.com/gabrielcnr/pytest-datadir
Source0:        %{url}/archive/%{version}/pytest-datadir-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3egg(docutils)
BuildRequires:  python3egg(pip)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(tox)
BuildRequires:  python3egg(tox-current-env)
BuildRequires:  python3egg(wheel)

%global _desc %{expand:
This package contains a pytest plugin for manipulating test data
directories and files.}

%description %_desc

#----------------------------------------------------------

%package     -n python3-pytest-datadir
Summary:        %{summary}
Group:          Development/Python

%description -n python3-pytest-datadir %_desc
%files -n python3-pytest-datadir -f %{pyproject_files}
%doc AUTHORS CHANGELOG.html README.md

#----------------------------------------------------------

%prep
%autosetup -n pytest-datadir-%{version}

# Do not attempt to use git to determine the version
sed -i "s/use_scm_version.*/version='%{version}',/;/setuptools_scm/d" setup.py
cat > src/pytest_datadir/_version.py << EOF
version='%{version}'
EOF

%build
%pyproject_wheel
rst2html --no-datestamp CHANGELOG.rst CHANGELOG.html

%install
%pyproject_install
%pyproject_save_files pytest_datadir


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7382 |21cr|python-pytest-django-4.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-django

Name:           python-%{pypi_name}
Version:        4.5.2
Release:        1
Summary:        A Django plugin for pytest
Group:          Development/Python
License:        BSD
URL:            https://pytest-django.readthedocs.io/
Source0:        %{pypi_source}
BuildArch:      noarch

%description
pytest-django allows you to test your Django project/applications with the
pytest testing tool.

#---------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3-django
BuildRequires:  python3-django-configurations
BuildRequires:  python3-pytest
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-six

%description -n python3-%{pypi_name}
pytest-django allows you to test your Django project/applications with the
pytest testing tool.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/pytest_django/
%{python3_sitelib}/pytest_django-%{version}-py*.egg-info/

#---------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:        Documentation for %{name}
Group:          Documentation

BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme

%description -n python-%{pypi_name}-doc
Documentation for %{name}.

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE

#---------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
sed -i -e '/NAME/s|/|/var/tmp/|' pytest_django_test/settings_sqlite{,_file}.py

%build
%py3_build
PYTHONPATH=${PWD} sphinx-build-3 docs html
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

#%check
#export PYTHONPATH="%{buildroot}%{python3_sitelib}:$PWD"
#for settings in sqlite sqlite_file; do
#  export DJANGO_SETTINGS_MODULE=pytest_django_test.settings_${settings}
#  %python3 -m pytest -v tests
#done




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7383 |21cr|python-pytest-forked-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pytest-forked

Name:           python-%{module}
Version:        1.3.0
Release:        1
Summary:        Run tests in isolated forked subprocesses
License:        MIT
Group:          Development/Python
URL:            https://github.com/pytest-dev/%{module}
Source:         https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(py)
BuildRequires:  python3egg(pytest)

Provides:       python3-%{module} = %{EVRD}

BuildArch:      noarch

%description
Run tests in isolated forked subprocesses.


%files
%doc CHANGELOG README.rst LICENSE
%{py3_puresitedir}/pytest_forked
%{py3_puresitedir}/pytest_forked-%{version}-py?.?.egg-info
#---------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7384 |21cr|python-pytest-localserver-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-localserver

Name:           python-%{pypi_name}
Version:	0.7.0
Release:	1
Summary:        py.test plugin to test server connections locally
Group:          Development/Python
License:        MIT
URL:            https://github.com/pytest-dev/pytest-localserver
Source0:	https://files.pythonhosted.org/packages/81/56/dcfbefe0b7a1f4c8e4f3744cf26207eb5dee0be1920f17641794fa655f26/pytest-localserver-0.7.0.tar.gz
BuildArch:      noarch

%description
pytest-localserver is a plugin for the pytest testing framework 
which enables you to test server connections locally.

#----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
pytest-localserver is a plugin for the pytest testing framework 
which enables you to test server connections locally.

%files -n python3-%{pypi_name}
%doc  README.rst
%license LICENSE
%{python3_sitelib}/*

#----------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7385 |21cr|python-pytest-param-files-0.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-pytest-param-files
Version:        0.3.4
Release:        1
Summary:        Create pytest parametrize decorators from external files
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/pytest_param_files/
Source:         %{pypi_source pytest_param_files}

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%global _description %{expand:
A package to generate parametrized pytests from external files.
Create a text file with the dot format, then use the `param_file` pytest marker
to create a parametrized test.}


%description %_description

#-----------------------------------------------------------
%package -n     python3-pytest-param-files
Summary:        %{summary}
Group:          Development/Python

%description -n python3-pytest-param-files %_description

%files -n python3-pytest-param-files -f %{pyproject_files}
%license LICENSE
%doc README.md

#-----------------------------------------------------------
%prep
%autosetup -p1 -n pytest_param_files-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files pytest_param_files


%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7386 |21cr|python-pytest-qt-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pytest-qt

Name:           python-%{module}
Version:	4.1.0
Release:	1
Summary:        Pytest support for PyQt and PySide applications
License:        MIT
Group:          Development/Python
Url:            http://github.com/pytest-dev/%{module}
Source:         https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz

BuildArch:      noarch


%description
Pytest-qt is a pytest plugin that allows programmers to write tests
for PySide and PyQt applications.

The main usage is to use the `qtbot` fixture, responsible for handling `qApp`
creation as needed and provides methods to simulate user interaction,
like key presses and mouse clicks.
#------------------------------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}

BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(pyqt5)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(setuptools)
BuildRequires:  dos2unix
Requires:       python3egg(pytest)
Requires:       python3egg(pyqt5)

%description -n python3-%{module}
Pytest-qt is a pytest plugin that allows programmers to write tests
for PySide and PyQt applications.

The main usage is to use the `qtbot` fixture, responsible for handling `qApp`
creation as needed and provides methods to simulate user interaction,
like key presses and mouse clicks.

%files -n python3-%{module}
%doc CHANGELOG.rst README.rst LICENSE
%{py3_puresitedir}/pytestqt
%{py3_puresitedir}/*.egg-info

#------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
dos2unix LICENSE
#bundle
rm -fr %{module}-egg.info

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7387 |21cr|python-pytest-regressions-2.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pytest-regressions

Name:           python-pytest-regressions
Version:        2.4.1
Release:        1
Summary:        Pytest fixtures for writing regression tests
Group:          Development/Python
License:        MIT
BuildArch:      noarch
URL:            https://pytest-regressions.readthedocs.io/
Source0:        https://github.com/ESSS/pytest-regressions/archive/%{version}/pytest-regressions-%{version}.tar.gz

BuildRequires:  make
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3egg(matplotlib)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(pandas)
BuildRequires:  python3egg(pillow)
BuildRequires:  python3egg(pip)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(pyyaml)
BuildRequires:  python3egg(restructuredtext-lint)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(sphinx-rtd-theme)
BuildRequires:  python3egg(wheel)

%global _desc %{expand:
This pytest plugin makes it simple to test general data, images, files,
and numeric tables by saving *expected* data in a *data directory*
(courtesy of pytest-datadir) that can be used to verify that future runs
produce the same data.}

%description %_desc

#---------------------------------------------------
%package     -n python3-pytest-regressions
Summary:        %{summary}
Group:          Development/Python

%description -n python3-pytest-regressions %_desc

%files -n python3-pytest-regressions -f %{pyproject_files}
%doc CHANGELOG.html README.html

#---------------------------------------------------
%package        doc
# The content is MIT.  Sphinx copies files into the output with these licenses:
# - searchindex.js: BSD-2-Clause
# - _static/basic.css: BSD-2-Clause
# - _static/css/badge_only.css: MIT
# - _static/css/theme.css: MIT
# - _static/doctools.js: BSD-2-Clause
# - _static/documentation_options.js: BSD-2-Clause
# - _static/file.png: BSD-2-Clause
# - _static/jquery*.js: MIT
# - _static/js/badge_only.js: MIT
# - _static/js/theme.js: MIT
# - _static/language_data.js: BSD-2-Clause
# - _static/minus.png: BSD-2-Clause
# - _static/plus.png: BSD-2-Clause
# - _static/pygments.css: MIT
# - _static/searchtools.js: BSD-2-Clause
# - _static/_sphinx_javascript_frameworks_compat.js: BSD-2-Clause
# - _static/underscore*.js: MIT
License:        MIT AND BSD-2-Clause
Summary:        Documentation for %{name}

%description    doc
Documentation for %{name}.

%files doc
%doc doc/_build/html

#---------------------------------------------------

%prep
%autosetup -n pytest-regressions-%{version}

# Do not attempt to use git to determine the version
sed -i "s/use_scm_version.*/version='%{version}',/;/setuptools_scm/d" setup.py
sed -e 's/\(version = \).*/\1"%{version}"/' \
    -e 's/\(release = \).*/\1"%{version}"/' \
    -i doc/conf.py

%build
%pyproject_wheel

# Build documentation
PYTHONPATH=%{pyproject_build_lib} make -C doc html
rst2html --no-datestamp CHANGELOG.rst CHANGELOG.html
rst2html --no-datestamp README.rst README.html
rm doc/_build/html/.buildinfo

%install
%pyproject_install
%pyproject_save_files pytest_regressions


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7388 |21cr|python-pytest-runner-4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modulename pytest-runner
%global _modulename pytest_runner

Name:           python-%{modulename}
Version:        4.2
Release:        1
Summary:        Invoke py.test as distutils command with dependency resolution
Group:          Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/%{modulename}
# setuptools-scm requires a pypi tarball and doesn't like github tarball
Source0:        https://files.pythonhosted.org/packages/source/p/%{modulename}/%{modulename}-%{version}.tar.gz
BuildArch: noarch

%description
Setup scripts can use pytest-runner to add setup.py test support for pytest
runner.

%package -n python3-%{modulename}
Summary:        %{summary}
Requires:       python3-pytest
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-pytest

%description -n python3-%{modulename}
Setup scripts can use pytest-runner to add setup.py test support for pytest
runner.

%prep
%setup -qn %{modulename}-%{version}

# drop bundled egg-info
rm -rf pytest_runner.egg-info/

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{modulename}
%doc README.rst
%doc LICENSE
%{py3_puresitedir}/ptr.py
%{py3_puresitedir}/%{_modulename}-%{version}-py%{python3_version}.egg-info/
%{py3_puresitedir}/__pycache__/ptr.*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7389 |21cr|python-pytest-timeout-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-timeout

Name:           python-%{pypi_name}
Version:        2.1.0
Release:        2
Summary:        py.test plugin to abort hanging tests
Group:          Development/Python
License:        MIT
URL:            https://github.com/pytest-dev/pytest-timeout
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(pexpect)
BuildRequires:  python3egg(pytest) >= 3.6.0
BuildRequires:  python3egg(pytest-cov)
BuildRequires:  python3egg(setuptools)

%global _description %{expand:
This is a plugin which will terminate tests after a certain timeout. When doing
so it will show a stack dump of all threads running at the time. This is useful
when running tests under a continuous integration server or simply if you don’t
know why the test suite hangs.}

%description %_description

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %_description

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%pytest


%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/pytest_timeout*
%{python3_sitelib}/__pycache__/pytest_timeout*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7390 |21cr|python-pytest-xdist-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pytest-xdist

Name:           python-%{module}
Version:        2.4.0
Release:        1
Summary:        Pytest xdist plugin
License:        MIT
Group:          Development/Python
URL:            https://github.com/pytest-dev/%{module}
Source:         https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(execnet)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(pytest-forked)
BuildRequires:  python3egg(filelock)
BuildRequires:  python3egg(psutil)
BuildRequires:  python3egg(py)
BuildRequires:  python3egg(pexpect)

Provides:       python3-%{module} = %{EVRD}

BuildArch:      noarch

%description
pytest xdist plugin for distributed testing and loop-on-failing modes.

%files
%doc *.rst *.md LICENSE
%{py3_puresitedir}/pytest_xdist-%{version}-py?.?.egg-info
%{py3_puresitedir}/xdist/
#------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf src/*.egg-info

# wrong-file-end-of-line-encoding
sed -i 's/\r$//' README.rst

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3 -v

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7391 |21cr|python-pytest-xprocess-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-xprocess

Name:           python-%{pypi_name}
Version:	0.20.0
Release:	1
Summary:        Pytest plugin to manage external processes across test runs
Group:          Development/Python
License:        MIT
URL:            https://github.com/pytest-dev/pytest-xprocess/
Source0:	https://files.pythonhosted.org/packages/1f/83/4af7697c38c2230d0bb0cd1b985dff4664bd53113139d214d1888516c4ee/pytest-xprocess-0.20.0.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(psutil)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
Experimental py.test <>_ plugin for managing processes across test runs.Usage
install via:: pip install pytest-xprocessThis will provide a xprocess fixture
which helps you to ensure that one ore more longer-running processes are
present for your tests. You can use it to start and pre-configure test-specific
databases (Postgres, Couchdb, ...).Additionally there are two new command
line...

#--------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

Requires:       python3dist(psutil)
Requires:       python3dist(pytest)
Requires:       python3dist(setuptools)
%description -n python3-%{pypi_name}
Experimental py.test <>_ plugin for managing processes across test runs.Usage
install via:: pip install pytest-xprocessThis will provide a xprocess fixture
which helps you to ensure that one ore more longer-running processes are
present for your tests. You can use it to start and pre-configure test-specific
databases (Postgres, Couchdb, ...).Additionally there are two new command
line...

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/xprocess/
%{python3_sitelib}/pytest_xprocess-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# Remove executable bit from README
chmod -x README.rst

%build
%py3_build

%install
%py3_install

%check
# on abf build test fail, on local build test OK
#%%pytest

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/xprocess/
%{python3_sitelib}/pytest_xprocess-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7392 |21cr|python-pytoml-0.1.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname pytoml

Name:           python-%{srcname}
Version:        0.1.20
Release:        1
Summary:        A TOML-0.4.0 parser/writer for Python
Group:		Development/Python
License:        BSD
URL:            https://github.com/avakar/pytoml
Source0:        https://github.com/avakar/pytoml/archive/v%{version}.tar.gz?/%{srcname}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3-pkg-resources

%description
This project aims at being a specs-conforming and strict parser and writer for
TOML files.

The library currently supports version 0.4.0 of the specs.

%package -n python3-%{srcname}
Summary:        A TOML-0.4.0 parser/writer for Python
Group:		Development/Python

%description -n python3-%{srcname}
This project aims at being a specs-conforming and strict parser and writer for
TOML files.

The library currently supports version 0.4.0 of the specs.

%prep
%setup -qn %{srcname}-%{version}

%build
%py3_build

%install
python3 setup.py install --skip-build --root %{buildroot}

%check
python3 setup.py test

%files -n python3-%{srcname}
%{py3_puresitedir}/%{srcname}
%{py3_puresitedir}/%{srcname}-%{version}-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7393 |21cr|python-pywapi-0.3.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pywapi

Name:		python-%{oname}
Version:	0.3.8
Release:	3
Summary:	Python wrapper around different weather APIs
License:	MIT
Group:		Development/Python
Url:		http://code.google.com/p/python-weather-api/
Source0:	http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This module provides a Python wrapper around the Yahoo! Weather, Weather.com,
and National Oceanic and Atmospheric Administration (NOAA) APIs. Fetch
weather reports using zip code, location id, city name, state, country, etc.

%package -n python3-%{oname}
Summary:	Python wrapper around different weather APIs

%description -n python3-%{oname}
This module provides a Python wrapper around the Yahoo! Weather, Weather.com,
and National Oceanic and Atmospheric Administration (NOAA) APIs. Fetch
weather reports using zip code, location id, city name, state, country, etc.


%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}
chmod +x %{buildroot}%{py3_puresitedir}/pywapi.py

%files -n python3-%{oname}
%doc CHANGELOG LICENSE README
%{py3_puresitedir}/pywapi.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/pywapi*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7394 |21cr|python-pywavelets-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module PyWavelets

Name:           python-pywavelets
Version:	1.4.1
Release:	1
Summary:        %{module}, wavelet transform module
License:        MIT
Group:          Development/Python
URL:            https://github.com/%{module}/pywt
Source:         https://files.pythonhosted.org/packages/source/P/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(cython)

Provides:       python3-%{module} = %{EVRD}

%description
PyWavelets, wavelet transform module.

%files
%doc README.rst LICENSE
%{py3_platsitedir}/pywt
%{py3_platsitedir}/%{module}-%{version}-py*.egg-info
#---------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -fr *.egg-info
sed -i -e '/^#!\//, 1d' pywt/tests/*.py

# Fix wrong-script-interpreter
find demo -name '*.py' -exec sed -i "s|#!%{_bindir}/env python|#!%__python3|"  {} \;

# Remove unneeded shebangs
sed -i '1{\@^#!%{_bindir}/env python@d}' pywt/data/create_dat.py

# Remove unneeded executable bits
for lib in test_concurrent test_data test_deprecations test_doc test_matlab_compatibility test_matlab_compatibility_cwt test_thresholding data/generate_matlab_data data/generate_matlab_data_cwt ; do
   chmod a-x pywt/tests/$lib.py
done

# we cythonize in build
rm $(grep -rl '/\* Generated by Cython')

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
%py3_build

%install
%py3_install

# Fix wrong-script-interpreter
sed -i "s|#!%{_bindir}/env python.*$|#!%{_bindir}/python3|" %{buildroot}%{py3_platsitedir}/pywt/tests/*.py

%check
mkdir temp
mv pywt temp/pywt
# Accuracy is platform-dependent
pytest-3 --ignore=temp -k 'not test_accuracy_precomputed_cwt' %{buildroot}%{py3_platsitedir}/pywt/
mv temp/pywt pywt





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7395 |21cr|python-pyweblib-1.3.13-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyweblib

Name:           python-%{module}
Version:        1.3.13
Release:        5
Epoch:          0
Summary:        Yet another web programming framework for Python
License:        GPLv2
Group:          Development/Python
URL:            http://www.stroeder.com/pylib/PyWebLib/
Source0:        http://www.stroeder.com/pylib/PyWebLib/download/%{module}-%{version}.tar.gz
BuildArch:      noarch


%description
Web application library:

pyweblib.forms          class library for handling <FORM> input
pyweblib.session        server-side web session handling
pyweblib.helper         misc. stuff useful in CGI-BINs
pyweblib.sslenv         retrieves SSL-related env vars
pyweblib.httphelper     very basic HTTP functions
#--------------------------------------------------------------
%package -n python3-%{module}
Summary:        Yet another web programming framework for Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Web application library:

pyweblib.forms          class library for handling <FORM> input
pyweblib.session        server-side web session handling
pyweblib.helper         misc. stuff useful in CGI-BINs
pyweblib.sslenv         retrieves SSL-related env vars
pyweblib.httphelper     very basic HTTP functions

%files -n python3-%{module}
%doc CHANGES htdocs
%{py3_puresitedir}/*
#--------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}


%build
export CFLAGS="%{optflags}"
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7396 |21cr|python-pyzolib-0.3.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  pyzolib

Name:           python-%{module}
Version:        0.3.4
Release:        %mkrel 6
Summary:        Utilities for the Pyzo environment
License:        BSD
Group:          Development/Python
URL:            http://bitbucket.org/pyzo/pyzolib
Source0:        https://pypi.python.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  pythonegg(setuptools)

%description
This package implements several small sub-modules and sub-packages that expose
common functionality in a range of packages and applications in the Pyzo
framework.

This is the Python 2 version of %{module}.

#---------------------------------------------------------------------------

%package -n     python3-%{module}
Summary:        Provides basic functionality for the Pyzo environment
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  python3egg(cffi)

%description -n python3-%{module}
This package implements several small sub-modules and sub-packages that expose
common functionality in a range of packages and applications in the Pyzo
framework.

This is the Python 3 version of %{module}.

#---------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

%files
%{python2_sitelib}/%{module}/
%{python2_sitelib}/%{module}-%{version}-py%{python2_version}.egg-info

%files -n       python3-%{module}
%{python3_sitelib}/%{module}/
%{python3_sitelib}/%{module}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7397 |21cr|python-qdarkstyle-3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name qdarkstyle
%global mod_name QDarkStyle

Name:           python-%{pypi_name}
Version:        3.1
Release:        1
Summary:        A dark stylesheet for Python and Qt applications
Group:          Development/Python
License:        MIT
URL:            https://github.com/ColinDuquesnoy/QDarkStyleSheet
Source0:        %{pypi_source QDarkStyle}
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(helpdev)
BuildRequires:  python3dist(m2r2)
BuildRequires:  python3dist(pyqt5)
BuildRequires:  python3dist(PySide2)
BuildRequires:  python3dist(qtpy) >= 1.7
BuildRequires:  python3dist(qtsass)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3dist(sphinx-rtd-theme)
BuildRequires:  python3-watchdog

%description
A dark stylesheet for Qt applications (Qt4, Qt5, PySide, PySide2, PyQt4, 
PyQt5, QtPy, PyQtGraph).

#-----------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary} 
Requires:       python3dist(helpdev) >= 0.6.2
Requires:       python3dist(m2r2)
Requires:       python3dist(pyqt5)
Requires:       python3dist(PySide2)
Requires:       python3dist(qtpy) >= 1.7
Requires:       python3dist(qtsass)
Requires:       python3dist(setuptools)
Requires:       python3dist(sphinx)
Requires:       python3dist(sphinx-rtd-theme)
Requires:       python3dist(watchdog)
Requires:       python3dist(tox)

%description -n python3-%{pypi_name}
A dark stylesheet for Qt applications (Qt4, Qt5, PySide, PySide2, PyQt4, 
PyQt5, QtPy, PyQtGraph).

%files -n python3-%{pypi_name}
%license LICENSE.rst
%doc AUTHORS.rst CHANGES.rst CONTRIBUTING.rst
%{_bindir}/qdarkstyle
%{_bindir}/qdarkstyle.example
%{_bindir}/qdarkstyle.utils
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{mod_name}-%{version}-py%{python3_version}.egg-info

#-----------------------------------------------------------------------


%prep
%autosetup -n QDarkStyle-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7398 |21cr|python-qdatamatrix-0.1.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module qdatamatrix

Name:           python-%{module}
Version:        0.1.31
Release:        1
Summary:        A PyQt4/PyQt5 widget for viewing and editing a DataMatrix object
License:        GPLv3
Group:          Development/Python
URL:            https://github.com/smathot/python-%{module}
Source:         https://files.pythonhosted.org/packages/source/p/python-%{module}/python-%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(python-datamatrix)
BuildRequires:  python3egg(qtpy)
BuildRequires:  python3-pyside
BuildRequires:  python3-qt5-core
BuildRequires:  python3-qt5-widgets
BuildRequires:  python3-qt5-quickwidgets
BuildRequires:  python3-qt5-webkitwidgets
BuildRequires:  python3-qt5-dbus
BuildRequires:  python3-qt5-gui
BuildRequires:  python3-qt5-multimediawidgets

Provides:       python3-%{module} = %{EVRD}

BuildArch:      noarch


%description
A PyQt4/PyQt5 widget for viewing and editing a DataMatrix object

%files
%{py3_puresitedir}/python_%{module}-%{version}-py?.?.egg-info
%{py3_puresitedir}/%{module}


#--------------------------------------------------

%prep
%setup -q
rm -fr *-egg.info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7399 |21cr|python-qnotifications-2.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module qnotifications

Name:           python-%{module}
Version:        2.0.6
Release:        1
Summary:        Pretty in-app notifications for PyQt
License:        LGPLv3
Group:          Development/Python
URL:            https://github.com/dschreij/QNotifications
Source:         https://files.pythonhosted.org/packages/source/p/python-%{module}/python-%{module}-%{version}.tar.gz

BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(qtpy)
BuildRequires:  pkgconfig(pyside2)
BuildRequires:  python3-qt5-core
BuildRequires:  python3-qt5-widgets
BuildRequires:  python3-qt5-quickwidgets
BuildRequires:  python3-qt5-webkitwidgets
BuildRequires:  python3-qt5-dbus
BuildRequires:  python3-qt5-gui
BuildRequires:  python3-qt5-multimediawidgets
BuildRequires:  python3egg(fastnumbers)
Provides:       python3-%{module} = %{EVRD}

BuildArch:      noarch

%description
Pretty in-app notifications for PyQt

%files
%{py3_puresitedir}/python_%{module}-%{version}-py?.?.egg-info
%{py3_puresitedir}/QNotifications

#-------------------------------------------------------
%prep
%setup -qn python-%{module}-%{version}
rm -fr *.egg-info

%build
%py3_build

%install
%py3_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7400 |21cr|python-qpageview-0.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	qpageview

Summary:	Widget to display page-based documents for Qt5/PyQt5
Name:		python-%{pypi_name}
Version:	0.6.2
Release:	1
License:	GPLv3
Group:		Development/Python
Url:		https://github.com/frescobaldi/qpageview
Source0:		https://github.com/frescobaldi/qpageview/archive/refs/tags/%{pypi_name}-%{version}.tar.gz
# Created with Sphinx by `make latexpdf` in the docs subdir
Source1:		qpageview.pdf
BuildRequires:	python3 >= 3.8
BuildRequires:	python3-cups
BuildRequires:	python3-poppler-qt5
BuildRequires:	python3-qt5
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-qt5-devel
BuildArch:	noarch

%description
Widget to display page-based documents for Qt5/PyQt5.
It has a flexible architecture potentially supporting many formats.
Currently, it supports SVG documents, images and PDF documents.

#-----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Widget to display page-based documents for Qt5/PyQt5
Group:		Development/Python
Requires:	python3-cups
Requires:	python3-poppler-qt5
Requires:	python3-qt5

%description -n python3-%{pypi_name}
Widget to display page-based documents for Qt5/PyQt5.
It has a flexible architecture potentially supporting many formats.
Currently, it supports SVG documents, images and PDF documents.

%files -n python3-%{pypi_name}
%doc ChangeLog LICENSE README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}*-info

#-----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

cp %{SOURCE1} .


%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7401 |21cr|python-qstk-0.2.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name QSTK

Name:           python-qstk
Version:        0.2.8
Release:        8
Group:          Development/Python
Summary:        QuantSoftware Toolkit
URL:            http://wiki.quantsoftware.org
License:        BSD
Source0:        https://pypi.python.org/packages/source/Q/QSTK/QSTK-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
QuantSoftware Toolkit

%package -n     python3-qstk
Summary:        QuantSoftware Toolkit
Obsoletes:	python-qstk < %{EVRD}
Provides:	python-qstk = %{EVRD}

%description -n python3-qstk
QuantSoftware Toolkit


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
sed -i -e 's!python-dateutil == 1.5!python-dateutil >= 1.5!' setup.py
# Remove yahoo data
rm -rf QSTK/QSData/Yahoo/*.csv

rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
2to3 -w %{py3dir}


%build
pushd %{py3dir}
python3 setup.py build
popd

%install
pushd %{py3dir}
python3 setup.py install --skip-build --root %{buildroot}
mv %{buildroot}/%{py3_puresitedir}/Bin %{buildroot}/%{py3_puresitedir}/%{pypi_name}
popd


%files -n python3-qstk
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info
%{py3_puresitedir}/%{pypi_name}*.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7402 |21cr|python-qstylizer-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name qstylizer

%global _description %{expand:
qstylizer is a python package designed to help with the construction of 
PyQt/PySide stylesheets.
}

Name:           python-%{pypi_name}
Version:        0.2.2
Release:        1
Summary:        Qt stylesheet generation utility for PyQt/PySide
Group:          Development/Python
License:        MIT
URL:            https://github.com/blambright/qstylizer
# This URL does not seem to work
#Source0:        https://files.pythonhosted.org/packages/source/q/{pypi_name}/{pypi_name}-{version}.tar.gz
Source0:        https://github.com/blambright/qstylizer/archive/refs/tags/%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description
%_description

#---------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
%_description

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE.txt
%doc README.rst

#---------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%generate_buildrequires
export PBR_VERSION=%{version}
%pyproject_buildrequires -r

%build
export PBR_VERSION=%{version}
%pyproject_wheel

%install
export PBR_VERSION=%{version}
%pyproject_install

%pyproject_save_files qstylizer



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7403 |21cr|pythonqt-2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		2.1
%define libname		%mklibname %{name} %{major}
%define devname		%mklibname %{name}qt4 -d
%define qtver		Qt4.8
%define oname		PythonQt

Name:           pythonqt
Version:        2.1
Release:        3
Summary:        Lightweight script binding of the Qt4 framework to the Python language
Group:          Development/Python
License:        LGPLv2
URL:            http://pythonqt.sourceforge.net
Source0:        http://downloads.sourceforge.net/pythonqt/%{oname}%{major}_%{qtver}.zip
# Python-2.7 patch
Patch0:         pythonqt-2.1-python27.patch
# Patch in the "make install" command
Patch1:         pythonqt-2.1-install.patch
Patch2:         e463adc5a768.patch
BuildRequires:  pkgconfig(python2)
BuildRequires:  qt4-devel
BuildRequires:  pkgconfig(phonon)

%description
PythonQt4 is a dynamic and lightweight script binding of the Qt4 framework
to the Python language. It can be easily embedded into Qt4 applications and
makes any QObject derived object scriptable via Python without the need of
wrapper code generation.


%package -n %{libname}

Summary:	Library for %{name}
Group:		Development/Python

%description -n %{libname}
PythonQt is a dynamic and lightweight script binding of the Qt4 framework
to the Python language. It can be easily embedded into Qt4 applications and
makes any QObject derived object scriptable via Python without the need of
wrapper code generation.

%files -n %{libname}
%doc README COPYING
%{_libdir}/libPythonQt.so.*
%{_libdir}/libPythonQt_QtAll.so.*
#----------------------------------------------
%package -n %{devname}

Summary:        Lightweight script binding of the Qt4 framework to the Python language
Group:          Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(python)
Provides:	%{name}-devel = %{EVRD}
Provides:       pythonqt4-devel = %{EVRD}

%description  -n %{devname}
Header files and development libraries for pythonqt package. PythonQt4
is a dynamic and lightweight script binding of the Qt4 framework
to the Python language.

%files  -n %{devname}
%doc README COPYING
%{_includedir}/PythonQt
%{_libdir}/libPythonQt.so
%{_libdir}/libPythonQt_QtAll.so

#--------------------------------------------------------
%prep
%autosetup -p1 -n %{oname}%{major}_%{qtver}

# Fix README end-of-line encoding
sed -i 's/\r//' README

%build
%qmake_qt4 -config verbose "VERSION=%{version}" \
    "LIB_INSTALL=%{_libdir}" \
    "HEADER_INSTALL=%{_includedir}/PythonQt" \
    "QMAKE_LFLAGS_SHLIB *= -Wl,--as-needed" \
    "QMAKE_CXXFLAGS_RELEASE *= -fno-strict-aliasing"
%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7404 |21cr|python-qt4-4.12.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Set of Python bindings for the Qt application framework
Name:		python-qt4
Version:	4.12.3
Epoch:		3
Release:	8
License:	GPLv2+
Group:		Development/KDE and Qt
Url:		http://www.riverbankcomputing.co.uk/software/pyqt/intro
Source0:	http://sourceforge.net/projects/pyqt/files/PyQt4/PyQt-%{version}/PyQt4_gpl_x11-%{version}.tar.gz
Patch0:		03_qreal_float_support.dpatch
BuildRequires:	python2-sip4 >= 3:4.19.12
BuildRequires:	sed
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	python2-dbus
BuildRequires:	pkgconfig(dbus-python)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(QtAssistantClient)
BuildRequires:	pkgconfig(QtWebKit)

#------------------------------------------------------------

%description
PyQt is a set of Python bindings for the Qt application framework.

%package -n python2-qt4
%py2_migration_meta python2-qt4
Summary:	Set of Python bindings for the Qt application framework
Provides:	PyQt4 = %{EVRD}
Requires:	python2-qt4-core = %{EVRD}
Requires:	python2-qt4-dbus = %{EVRD}
Requires:	python2-qt4-declarative = %{EVRD}
Requires:	python2-qt4-designer = %{EVRD}
Requires:	python2-qt4-gui = %{EVRD}
Requires:	python2-qt4-help = %{EVRD}
Requires:	python2-qt4-multimedia = %{EVRD}
Requires:	python2-qt4-network = %{EVRD}
Requires:	python2-qt4-opengl = %{EVRD}
Requires:	python2-qt4-phonon = %{EVRD}
Requires:	python2-qt4-script = %{EVRD}
Requires:	python2-qt4-scripttools = %{EVRD}
Requires:	python2-qt4-sql = %{EVRD}
Requires:	python2-qt4-svg = %{EVRD}
Requires:	python2-qt4-test = %{EVRD}
Requires:	python2-qt4-webkit = %{EVRD}
Requires:	python2-qt4-xml = %{EVRD}
Requires:	python2-qt4-xmlpatterns = %{EVRD}

%description -n python2-qt4
PyQt is a set of Python bindings for the Qt application framework.

%files -n python2-qt4

#------------------------------------------------------------

%package -n python2-qt4-assistant
Summary:	PyQt 4 assistant
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-assistant
PyQt 4 assistant.

%files -n python2-qt4-assistant
%{py2_platsitedir}/PyQt4/QtAssistant.so
%{_datadir}/sip/PyQt4/QtAssistant

#------------------------------------------------------------

%package -n python2-qt4-core
Summary:	PyQt 4 core
Group:		Development/KDE and Qt
Requires:	python2-sip-api(%{sip_api_major}) = %{sip_api}
Requires:	python2-sip-PyQt4 >= 4.19.12

%description -n python2-qt4-core
PyQt 4 core.

%files -n python2-qt4-core
%dir %{py2_platsitedir}/PyQt4
%{py2_platsitedir}/PyQt4/uic
%{py2_platsitedir}/PyQt4/__init__.py*
%{py2_platsitedir}/PyQt4/pyqtconfig.py*
%{py2_platsitedir}/dbus/*
%{py2_platsitedir}/PyQt4/Qt.so
%{py2_platsitedir}/PyQt4/QtCore.so
%{_datadir}/sip/PyQt4/Qt
%{_datadir}/sip/PyQt4/QtCore

#------------------------------------------------------------

%package -n python2-qt4-qsci_api
Summary:	PyQt 4 QScintilla API file
Group:		Development/KDE and Qt
Conflicts:	python3-qt4-qsci_api

%description -n python2-qt4-qsci_api
PyQt 4 QScintilla API file

%files -n python2-qt4-qsci_api
%{qt4dir}/qsci/api/python/PyQt4.api

#----------------------------------------------------------------------------

%package -n python2-qt4-dbus
Summary:	PyQt 4 dbus
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-dbus
PyQt 4 dbus.

%files -n python2-qt4-dbus
%{py2_platsitedir}/PyQt4/QtDBus.so
%{_datadir}/sip/PyQt4/QtDBus

#------------------------------------------------------------

%package -n python2-qt4-declarative
Summary:	PyQt 4 declarative
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-declarative
PyQt 4 declarative.

%files -n python2-qt4-declarative
%{py2_platsitedir}/PyQt4/QtDeclarative.so
%{_datadir}/sip/PyQt4/QtDeclarative

#------------------------------------------------------------

%package -n python2-qt4-designer
Summary:	PyQt 4 designer
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-designer
PyQt 4 designer.

%files -n python2-qt4-designer
%{py2_platsitedir}/PyQt4/QtDesigner.so
%{_datadir}/sip/PyQt4/QtDesigner

#------------------------------------------------------------

%package -n python2-qt4-gui
Summary:	PyQt 4 gui
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-gui
PyQt 4 gui.

%files -n python2-qt4-gui
%{py2_platsitedir}/PyQt4/QtGui.so
%{_datadir}/sip/PyQt4/QtGui

#------------------------------------------------------------

%package -n python2-qt4-help
Summary:	PyQt 4 help
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-help
PyQt 4 help.

%files -n python2-qt4-help
%{py2_platsitedir}/PyQt4/QtHelp.so
%{_datadir}/sip/PyQt4/QtHelp

#------------------------------------------------------------

%package -n python2-qt4-multimedia
Summary:	PyQt 4 multimedia
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-multimedia
PyQt 4 multimedia.

%files -n python2-qt4-multimedia
%{py2_platsitedir}/PyQt4/QtMultimedia.so
%{_datadir}/sip/PyQt4/QtMultimedia

#------------------------------------------------------------

%package -n python2-qt4-network
Summary:	PyQt 4 network
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-network
PyQt 4 network.

%files -n python2-qt4-network
%{py2_platsitedir}/PyQt4/QtNetwork.so
%{_datadir}/sip/PyQt4/QtNetwork

#------------------------------------------------------------

%package -n python2-qt4-opengl
Summary:	PyQt 4 opengl
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-opengl
PyQt 4 opengl.

%files -n python2-qt4-opengl
%{py2_platsitedir}/PyQt4/QtOpenGL.so
%{_datadir}/sip/PyQt4/QtOpenGL

#------------------------------------------------------------

%package -n python2-qt4-phonon
Summary:	PyQt 4 phonon
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-phonon
PyQt 4 phonon.

%files -n python2-qt4-phonon
%{py2_platsitedir}/PyQt4/phonon.so
%{_datadir}/sip/PyQt4/phonon

#------------------------------------------------------------

%package -n python2-qt4-script
Summary:	PyQt 4 script
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-script
PyQt 4 script.

%files -n python2-qt4-script
%{py2_platsitedir}/PyQt4/QtScript.so
%{_datadir}/sip/PyQt4/QtScript

#------------------------------------------------------------

%package -n python2-qt4-scripttools
Summary:	PyQt 4 scripttools
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-scripttools
PyQt 4 scripttools.

%files -n python2-qt4-scripttools
%{py2_platsitedir}/PyQt4/QtScriptTools.so
%{_datadir}/sip/PyQt4/QtScriptTools

#------------------------------------------------------------

%package -n python2-qt4-sql
Summary:	PyQt 4 sql
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-sql
PyQt 4 sql.

%files -n python2-qt4-sql
%{py2_platsitedir}/PyQt4/QtSql.so
%{_datadir}/sip/PyQt4/QtSql

#------------------------------------------------------------

%package -n python2-qt4-svg
Summary:	PyQt 4 svg
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-svg
PyQt 4 svg.

%files -n python2-qt4-svg
%{py2_platsitedir}/PyQt4/QtSvg.so
%{_datadir}/sip/PyQt4/QtSvg

#------------------------------------------------------------

%package -n python2-qt4-test
Summary:	PyQt 4 test
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-test
PyQt 4 test.

%files -n python2-qt4-test
%{py2_platsitedir}/PyQt4/QtTest.so
%{_datadir}/sip/PyQt4/QtTest

#------------------------------------------------------------

%package -n python2-qt4-webkit
Summary:	PyQt 4 Webkit
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-webkit
PyQt 4 webkit.

%files -n python2-qt4-webkit
%{py2_platsitedir}/PyQt4/QtWebKit.so
%{_datadir}/sip/PyQt4/QtWebKit

#------------------------------------------------------------

%package -n python2-qt4-xml
Summary:	PyQt 4 xml
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-xml
PyQt 4 xml.

%files -n python2-qt4-xml
%{py2_platsitedir}/PyQt4/QtXml.so
%{_datadir}/sip/PyQt4/QtXml

#------------------------------------------------------------

%package -n python2-qt4-xmlpatterns
Summary:	PyQt 4 xmlpatterns
Group:		Development/KDE and Qt
Requires:	python2-qt4-core = %{EVRD}

%description -n python2-qt4-xmlpatterns
PyQt 4 xmlpatterns.

%files -n python2-qt4-xmlpatterns
%{py2_platsitedir}/PyQt4/QtXmlPatterns.so
%{_datadir}/sip/PyQt4/QtXmlPatterns

#------------------------------------------------------------

%package -n python2-qt4-devel
Summary:	PyQt 4 devel
Group:		Development/KDE and Qt
Requires:	python2-qt4 = %{EVRD}
Requires:	qt4-designer

%description -n python2-qt4-devel
PyQt 4 devel utilities.

%files -n python2-qt4-devel
%{_bindir}/pyuic4-%{py2_ver}
%{_bindir}/pyrcc4-%{py2_ver}
%{_bindir}/pylupdate4-%{py2_ver}
%{qt4plugins}/designer/*

#------------------------------------------------------------

%prep
%setup -qn PyQt4_gpl_x11-%{version}
%patch0 -p1 -b .real

%build
export QTDIR=%{qt4dir}
export PATH=%{qt4dir}/bin:$PATH
export CFLAGS='%{optflags} -fPIC'
export CXXFLAGS='%{optflags} -fPIC'

python2 ./configure.py \
	--qsci-api \
	--confirm-license

# Some modules not requires X libraries
# Python sip not diferentiate qt modules and always add a X set of
# libs to link. We're explicitely this unecessary links
# Using same approach to add missin libpython2 linh

for name in Qt dbus phonon QtAssistant QtCore QtDBus QtDeclarative QtGui QtMultimedia QtNetwork QtOpenGL QtWebKit QtScript QtSvg QtSql QtDesigner QtTest QtXml QtXmlPatterns QtHelp QtScriptTools; do
	if [ -e ${name}/Makefile ]; then
		sed -i "s,^LIBS = ,LIBS = $(python2-config --libs) ,g" ${name}/Makefile
	fi
done
sed -i "s,/usr/lib/qt4/include/phonon,/usr/include/phonon,g" phonon/Makefile
sed -i "s,/usr/lib/qt4//include/phonon,/usr/include/phonon,g" phonon/Makefile

%make -I%{_includedir}/dbus-1.0/dbus

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

for fn in pyuic4 pylupdate4 pyrcc4 ; do
    mv %{buildroot}%{_bindir}/$fn %{buildroot}%{_bindir}/$fn-%{py2_ver}
done

mv %{buildroot}%{qt4plugins}/designer/libpyqt4.so %{buildroot}%{qt4plugins}/designer/libpyqt4-%{py2_ver}.so

rm -fr %{buildroot}%{py2_platsitedir}/PyQt4/uic/port_v3

%post -n python2-qt4-devel
for fn in pyuic4 pylupdate4 pyrcc4 ; do
    /usr/sbin/update-alternatives --install %{_bindir}/$fn $fn %{_bindir}/$fn-%{py2_ver} 20
done

%postun -n python2-qt4-devel
for fn in pyuic4 pylupdate4 pyrcc4 ; do
	[[ ! -f %{_bindir}/$fn-%{py2_ver} ]] && \
		/usr/sbin/update-alternatives --remove $fn %{_bindir}/$fn-%{py2_ver}|| :
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7405 |21cr|python-qt5-webengine-5.15.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# we don't want to provide private python extension libs
%define _exclude_files_from_autoprov %{py3_platsitedir}/.*\\.so

%define module PyQtWebEngine

Summary:	Set of Python bindings for The Qt WebEngine library
Name:		python-qt5-webengine
Version:	5.15.5
Release:	2
Group:		Development/KDE and Qt
License:	GPLv3
Url:		https://www.riverbankcomputing.com/software/pyqtwebengine/
#https://www.riverbankcomputing.com/static/Downloads/PyQtWebEngine/%%{version}/%%{module}-%%{version}.tar.gz
Source0:	http://pypi.io/packages/source/p/pyqtwebengine/%{module}-%{version}.tar.gz
BuildRequires:	python3-qt-builder
BuildRequires:	python3-qt5-devel >= %{version}
BuildRequires:	python3.8dist(pyqt5-sip)
BuildRequires:	python3dist(sip)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
PyQtWebEngine is a set of Python bindings for The Qt Company's Qt WebEngine
library.
The bindings sit on top of PyQt5 and are implemented as a single module.

#------------------------------------------------------------

%package -n python3-qt5-webengine
Summary:	Python 3 bindings for PyQt 5 webengine
Group:		Development/KDE and Qt
Requires:	python3-qt5-core >= %{version}
Requires:	python3.8dist(pyqt5-sip)
Obsoletes:	python3-qt5-webengine-qsci-api <= 5.15.5

%description -n python3-qt5-webengine
Python 3 bindings for PyQt 5 webengine.

%files -n python3-qt5-webengine
%doc ChangeLog NEWS README
%{py3_platsitedir}/PyQt5/QtWebEngine.*
%{py3_platsitedir}/PyQtWebEngine-%{version}.dist-info
%{py3_platsitedir}/PyQt5/bindings/QtWebEngine/

#------------------------------------------------------------

%package -n python3-qt5-webenginecore
Summary:	Python 3 bindings for PyQt 5 webenginecore
Group:		Development/KDE and Qt
Requires:	python3-qt5-core >= %{version}
Requires:	python3.8dist(pyqt5-sip)

%description -n python3-qt5-webenginecore
Python 3 bindings for PyQt 5 webenginecore.

%files -n python3-qt5-webenginecore
%doc ChangeLog NEWS README
%{py3_platsitedir}/PyQt5/QtWebEngineCore.*
%{py3_platsitedir}/PyQt5/bindings/QtWebEngineCore

#------------------------------------------------------------

%package -n python3-qt5-webenginewidgets
Summary:	Python 3 bindings for PyQt 5 webenginewidgets
Group:		Development/KDE and Qt
Requires:	python3-qt5-core >= %{version}
Requires:	python3-qt5-webenginecore = %{EVRD}
Requires:	python3.8dist(pyqt5-sip)

%description -n python3-qt5-webenginewidgets
Python 3 bindings for PyQt 5 webenginewidgets.

%files -n python3-qt5-webenginewidgets
%doc ChangeLog NEWS README
%{py3_platsitedir}/PyQt5/QtWebEngineWidgets.*
%{py3_platsitedir}/PyQt5/bindings/QtWebEngineWidgets

#------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
sip-build	\
	--no-make	\
	--qmake="%{_qt5_bindir}/qmake"
sed -i "s,^LIBS .*= ,LIBS = $(python3-config --libs --embed) ," */*/Makefile
%make -C build

%install
%makeinstall_qt -C build

# ensure .so modules are executable for proper -debuginfo extraction
for i in %{buildroot}%{py3_platsitedir}/PyQt5/*.so ; do
	test -x $i || chmod a+rx $i
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7406 |21cr|python-qtawesome-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module    qtawesome
%define pypi_name QtAwesome

Name:           python-%{module}
Version:        1.2.1
Release:        1
Summary:        Iconic fonts in PyQt and PySide applications (Python 2)
Group:          Development/Python
License:        MIT and OFL
URL:            https://github.com/spyder-ide/qtawesome
Source0:        https://github.com/spyder-ide/qtawesome/archive/refs/tags/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description
QtAwesome enables iconic fonts such as Font Awesome and Elusive
Icons in PyQt and PySide applications.

#----------------------------------------------------

%package -n     python3-%{module}
Summary:        Iconic fonts in PyQt and PySide applications (Python 3)
Group:          Development/Python
BuildArch:      noarch

%description -n python3-%{module}
QtAwesome enables iconic fonts such as Font Awesome and Elusive
Icons in PyQt and PySide applications.

%files -n python3-%{module}
%doc CHANGELOG.md README.md LICENSE*
%{_bindir}/qta-browser
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7407 |21cr|python-qtconsole-5.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Unset -s on python shebang - ensure that extensions installed with pip
# to user locations are seen and properly loaded
%global py3_shebang_flags %(echo %py3_shebang_flags | sed s/s//)

%global pypi_name qtconsole

Summary:	Jupyter Qt console
Name:		python-%{pypi_name}
Version:	5.4.3
Release:	1
#license clarification issue opened with upstream
# https://github.com/jupyter/qtconsole/issues/142
License:	BSD
Group:		Development/Python
Url:		http://jupyter.org
Source0:	https://files.pythonhosted.org/packages/source/q/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
Qt-based console for Jupyter with support for rich media output.

#----------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Jupyter Qt console
Group:		Development/Python
Requires:	python3-ipykernel >= 4.1
Requires:	python3-jupyter-core
Requires:	python3-jupyter-client >= 4.1
Requires:	python3-pygments
Requires:	python3-qt5
Requires:	python3-setuptools
Requires:	python3-traitlets
Provides:	python3-ipython-gui = %{EVRD}
Obsoletes:	python3-ipython-gui < 4


%description -n python3-%{pypi_name}
Qt-based console for Jupyter with support for rich media output.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{_bindir}/jupyter-qtconsole
%{_datadir}/applications/jupyter-qtconsole.desktop
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{pypi_name}/*
%dir %{python3_sitelib}/%{pypi_name}/

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

desktop-file-install --dir=%{buildroot}%{_datadir}/applications examples/jupyter-qtconsole.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7408 |21cr|python-qtpy-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module    qtpy
%define pypi_name QtPy

Name:           python-%{module}
Version:        2.3.1
Release:        1
Summary:        Abstraction layer for PyQt5/PyQt4/PySide (Python 3)
Group:          Development/Python
License:        MIT and BSD
URL:            https://github.com/spyder-ide/qtpy
Source0:        https://github.com/spyder-ide/%{module}/archive/v%{version}/%{module}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description
QtPy (pronounced ‘cutie pie’) is a small abstraction layer that lets
you write applications using a single API call to either PyQt or
PySide.

It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout
(where the QtGui module has been split into QtGui and QtWidgets).

Basically, you write your code as if you were using PyQt5 but import
qt from qtpy instead of PyQt5.

#----------------------------------------------------
%package -n     python3-%{module}
Summary:        Abstraction layer for PyQt5/PyQt4/PySide (Python 3)
Group:          Development/Python
BuildArch:      noarch

%description -n python3-%{module}
QtPy (pronounced ‘cutie pie’) is a small abstraction layer that lets
you write applications using a single API call to either PyQt or
PySide.

It provides support for PyQt5, PyQt4 and PySide using the PyQt5 layout
(where the QtGui module has been split into QtGui and QtWidgets).

Basically, you write your code as if you were using PyQt5 but import
qt from qtpy instead of PyQt5.

%files -n python3-%{module}
%doc CHANGELOG.md README.md
%doc LICENSE.txt
%{_bindir}/qtpy
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7409 |21cr|pythonqt-qt5-3.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major    3
%define pyver    3.8
%define libname    %mklibname %{oname} %{major}
%define devname    %mklibname %{oname} -d
#
%define debug_package  %{nil}
%define oname pythonqt
%define Werror_cflags %nil

Name:           pythonqt-qt5
Version:        3.4.1
Release:        2
Summary:        Lightweight script binding of the Qt framework to the Python language
Group:          Development/Python
License:        LGPLv2
URL:            https://mevislab.github.io/pythonqt/
Source0:        https://github.com/MeVisLab/pythonqt/archive/refs/tags/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE PythonQt-add-install-target.patch
Patch0:         PythonQt-add-install-target.patch
BuildRequires:  pkgconfig(python3)
BuildRequires:  qmake5
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5WebKit)
BuildRequires:  pkgconfig(Qt5XmlPatterns)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5UiTools)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5WebKitWidgets)
BuildRequires:  pkgconfig(Qt5MultimediaWidgets)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5QmlModels)
BuildRequires:  pkgconfig(Qt5QmlWorkerScript)
BuildRequires:  cmake(Qt5QuickParticles)
BuildRequires:  cmake(Qt5QuickShapes)
BuildRequires:  pkgconfig(Qt5QuickWidgets)
BuildRequires:  pkgconfig(Qt5DesignerComponents)
BuildRequires:  pkgconfig(Qt5Designer)
BuildRequires:  pkgconfig(Qt5UiTools)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Sql)

BuildConflicts: pkgconfig(python)
Conflicts:      pythonqt
Requires:       %{libname} = %{EVRD}


%description
PythonQt is a dynamic and lightweight script binding of the Qt framework
to the Python language. It can be easily embedded into Qt applications and
makes any QObject derived object scriptable via Python without the need of
wrapper code generation.

%files
%doc README.md COPYING
%{_bindir}/CPPPyWrapperExample
%{_bindir}/Py*
#-------------------------------------------------------------------

%package -n %{libname}
Summary:  Library for %{name}
Group:    Development/Python
Conflicts:  %{_lib}pythonqt2.1

%description -n %{libname}
PythonQt is a dynamic and lightweight script binding of the Qt framework
to the Python language. It can be easily embedded into Qt applications and
makes any QObject derived object scriptable via Python without the need of
wrapper code generation.

%files -n %{libname}
%{_libdir}/libPythonQt-Qt5-Python*.so.*
%{_libdir}/libPythonQt_QtAll-Qt5-Python*.so.*
#--------------------------------------------------------

%package -n %{devname}
Summary:        Lightweight script binding of the Qt framework to the Python language
Group:          Development/Python
Requires:       %{libname} = %{EVRD}
Requires:       pkgconfig(python3)
Provides:       %{name}-devel = %{EVRD}
Conflicts:      %{_lib}pythonqt-devel

%description -n %{devname}
Header files and development libraries for pythonqt package. PythonQt
is a dynamic and lightweight script binding of the Qt framework
to the Python language.

%files -n %{devname}
%{_includedir}/PythonQt
%{_libdir}/libPythonQt-Qt5-Python*.so
%{_libdir}/libPythonQt_QtAll-Qt5-Python*.so
%{_libdir}/pkgconfig/PythonQt-Qt5-Python3.pc
%{_libdir}/pkgconfig/PythonQt_QtAll-Qt5-Python3.pc
#--------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}
%autopatch -p1


%build
%qmake_qt5 \
  "LIB_INSTALL=%{buildroot}%{_libdir}" \
  "HEADER_INSTALL=%{buildroot}%{_includedir}/PythonQt" \
  "PYTHON_VERSION=%{py3_ver}" \
  "PYTHON_DIR=%{_prefix}"

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_bindir}
cp lib/CPPPyWrapperExample %{buildroot}%{_bindir}/CPPPyWrapperExample
cp lib/PyCPPWrapperExample %{buildroot}%{_bindir}/PyCPPWrapperExample
cp lib/PyCustomMetaTypeExample %{buildroot}%{_bindir}/PyCustomMetaTypeExample
cp lib/PyDecoratorsExample %{buildroot}%{_bindir}/PyDecoratorsExample
cp lib/PyGettingStarted %{buildroot}%{_bindir}/PyGettingStarted
cp lib/PyGuiExample %{buildroot}%{_bindir}/PyGuiExample
cp lib/PyLauncher %{buildroot}%{_bindir}/PyLauncher
cp lib/PyScriptingConsole %{buildroot}%{_bindir}/PyScriptingConsole
cp lib/PythonQtTest %{buildroot}%{_bindir}/PythonQtTest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7410 |21cr|python-qtsass-0.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name qtsass

Name:           python-%{pypi_name}
Version:	0.3.2
Release:	1
Summary:        Compile SCSS files to valid Qt stylesheets
Group:          Development/Python

License:        MIT
URL:            https://github.com/spyder-ide/qtsass
Source0:	https://files.pythonhosted.org/packages/20/65/9191a3d6ebaadd65fc2510964e9bf9bb3e83ea47e2ae0951125db2b796a8/qtsass-0.3.2.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
SASS brings countless amazing features to CSS. Besides being used in web
development, CSS is also the way to stylize Qt-based desktop applications.
However, Qt's CSS has a few variations that prevent the direct use of
SASS compiler. The purpose of this tool is to fill the gap between SASS
and Qt-CSS by handling those variations.

#-------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Compile SCSS files to valid Qt stylesheets
Group:          Development/Python

Requires:       python3dist(libsass)
Requires:       python3dist(setuptools)
Requires:       python3dist(watchdog)

%description -n python3-%{pypi_name}
SASS brings countless amazing features to CSS. Besides being used in web
development, CSS is also the way to stylize Qt-based desktop applications.
However, Qt's CSS has a few variations that prevent the direct use of
SASS compiler. The purpose of this tool is to fill the gap between SASS
and Qt-CSS by handling those variations.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.md
%{_bindir}/qtsass
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7411 |21cr|python-qutepart-3.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module qutepart

Name:           python-%{module}
Version:        3.3.1
Release:        2
Summary:        Code editor component for PyQt5
Group:          Development/Python
License:        LGPLv2+
URL:            https://github.com/hlamer/%{module}
Source0:        https://github.com/hlamer/%{module}/archive/%{module}-%{version}.tar.gz

BuildRequires:  pkgconfig(libpcre)
BuildRequires:  python3egg(pyqt5)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)
BuildRequires:  x11-server-xvfb

%description
Qutepart is a code editor widget for PyQt. Features: \
    - Syntax highlighting for 196 languages. \
    - Smart indentation for many languages. \
    - Line numbers. \
    - Bookmarks. \
    - Advanced edit operations. \
    - Matching braces highlighting. \
    - Autocompletion based on document content. \
    - Marking too long lines with red line. \
    - Rectangular selection and copy-paste. \
    - Linter marks support.

#----------------------------------------------------------
%package -n python3-%{module}
Summary:        Code editor component for PyQt5
Requires:       pcre
Requires:       python3egg(pyqt5)
Provides:       python-%{module} = %{EVRD}
Obsoletes:      python2-%{module} < 3.3.1

%description -n python3-%{module}
Qutepart is a code editor widget for PyQt. Features: \
    - Syntax highlighting for 196 languages. \
    - Smart indentation for many languages. \
    - Line numbers. \
    - Bookmarks. \
    - Advanced edit operations. \
    - Matching braces highlighting. \
    - Autocompletion based on document content. \
    - Marking too long lines with red line. \
    - Rectangular selection and copy-paste. \
    - Linter marks support.

%files -n python3-%{module}
%doc LICENSE README.md ChangeLog todo.txt doc/html/
%{py3_platsitedir}/%{module}*
#----------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
sed -i -r 's,(MOCK_MODULES = \[).*\],\1],' doc/source/conf.py

%build
%py3_build
pushd doc
sphinx-build-3 source html
rm -r html/.buildinfo html/.doctrees

%install
%py3_install


%check
pushd tests
rm -f test_all.py
%if %{with test_vim}
# FIXME (core dumped)
rm test_vim.py
%endif


xvfb-run -s '-screen :0 1024x768x16'\
    python3 -m unittest -vvv test_*







@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7412 |21cr|python-random2-1.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	random2

Name:		python-%{oname}
Version:	1.0.1
Release:	5
Summary:	Python 3 compatible Pytohn 2 `random` Module
Source0:	http://pypi.python.org/packages/source/r/%{oname}/%{oname}-%{version}.zip
License:	Python 
Group:		Development/Python
Url:		http://pypi.python.org/pypi/random2
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description
This package provides a Python 3 ported version of Python 2.7's ``random``
module. It has also been back-ported to work in Python 2.6.

In Python 3, the implementation of ``randrange()`` was changed, so that even
with the same seed you get different sequences in Python 2 and 3. Note that
several high-level functions such as ``randint()`` and ``choice()`` use
``randrange()``.

#------------------------------------------------------------------
%package -n     python3-%{oname}
Summary:	Python 3 compatible Pytohn 2 `random` Module
BuildArch:	noarch

%description -n python3-%{oname}
This package provides a Python 3 ported version of Python 2.7's ``random``
module. It has also been back-ported to work in Python 2.6.

In Python 3, the implementation of ``randrange()`` was changed, so that even
with the same seed you get different sequences in Python 2 and 3. Note that
several high-level functions such as ``randint()`` and ``choice()`` use
``randrange()``.

%files -n python3-%{oname}
%doc CHANGES.txt README.txt
%{py3_puresitedir}/random2.py*
%{py3_puresitedir}/random2*.egg-info
%{py3_puresitedir}/__pycache__/*
#------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root %{buildroot}

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7413 |21cr|python-rapidfuzz-2.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define	pypi_name rapidfuzz

Summary:	RapidFuzz is a fast string matching library for Python and C++
Name:		python-%{pypi_name}
Version:	2.0.11
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://urllib3.readthedocs.org/
Source0:	https://pypi.io/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0:		rapidfuzz-requires.patch
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(rapidfuzz-capi)
BuildRequires:	python3egg(numpy)
BuildRequires:	python3-scikit-build
BuildRequires:	rapidfuzz-cpp
BuildRequires:	jarowinkler-cpp
BuildRequires:	ninja
BuildRequires:	taskflow

%description
RapidFuzz is a fast string matching library for Python and C++,
which is using the string similarity calculations from FuzzyWuzzy

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	This package provides the C-API of RapidFuzz
Group:		Development/Python

%description -n python3-%{pypi_name}
RapidFuzz is a fast string matching library for Python and C++,
which is using the string similarity calculations from FuzzyWuzzy

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7414 |21cr|python-rapidfuzz_capi-1.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name rapidfuzz_capi

Summary:	This package provides the C-API of RapidFuzz
Name:		python-%{pypi_name}
Version:	1.0.5
Release:	4
License:	MIT
Group:		Development/Python
Url:		https://github.com/maxbachmann/rapidfuzz_capi
Source0:	https://github.com/maxbachmann/rapidfuzz_capi/archive/refs/tags/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pyproject-rpm-macros
BuildArch:	noarch

%description
RapidFuzz is a fast string matching library for Python and C++,
which is using the string similarity calculations from FuzzyWuzzy

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	This package provides the C-API of RapidFuzz
Group:		Development/Python

%description -n python3-%{pypi_name}
RapidFuzz is a fast string matching library for Python and C++,
which is using the string similarity calculations from FuzzyWuzzy

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7415 |21cr|python-rarfile-4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	rarfile

Summary:	RAR archive reader for Python
Name:		python-%{module}
Version:	4.0
Release:	1
Source0:	https://files.pythonhosted.org/packages/0c/2f/894bc187ce40367f2e878ced196e1b5a9bc66cb553a062ed955d4f7dcbab/rarfile-4.0.tar.gz
License:	ISC
Group:		Development/Python
Url:		https://github.com/markokr/rarfile/
BuildArch:	noarch
Requires:	unrar
BuildRequires:  python3-setuptools

%description
This is a Python module for RAR archive reading. The interface is
similar to that of the zipfile module.

%package -n python3-%{module}
Summary:	RAR archive reader for Python

%description -n python3-%{module}
This is a Python module for RAR archive reading. The interface is
similar to that of the zipfile module.


%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

%clean

%files -n python3-%{module}
%doc  LICENSE  
%{py3_puresitedir}/%{module}*
%{py3_puresitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7416 |21cr|python-rational-0.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   rational

Summary:       Rational numbers for python
Name:          python-rational
Version:       0.1
Release:       13
Source0:       %{oname}.py
License:       LGPL
Group:         Development/Python
Url:           http://www.python.org/peps/pep-0239.html
BuildRequires: python2-devel

%description
This is a python2 module for rational numbers, following PEP 239,
with some extensions. While it is not as efficent as cRat, it is
more has some extra features (e.g., NaN and infinity handling).

%package -n python2-rational
Summary:       Rational numbers for python

%description -n python2-rational
This is a python module for rational numbers, following PEP 239,
with some extensions. While it is not as efficent as cRat, it is
more has some extra features (e.g., NaN and infinity handling).


%install
install -m644 -D %SOURCE0 $RPM_BUILD_ROOT/%{_libdir}/python%{py2_ver}/site-packages/%{oname}.py
cd $RPM_BUILD_ROOT/%{_libdir}/python%{py2_ver}/site-packages/
python2 -c "import %{oname}"

%files -n python2-rational
%defattr(-,root,root)
%{_libdir}/python*/site-packages/%{oname}.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7417 |21cr|python-rawkit-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module rawkit

Name:           python-%{module}
Version:        0.6.0
Release:        2
Summary:        CTypes based LibRaw bindings
Group:          Development/Python
License:        MIT
URL:            https://rawkit.readthedocs.org
Source0:        https://files.pythonhosted.org/packages/source/r/%{module}/%{module}-%{version}.tar.gz
Patch0:         python38.patch
BuildArch:      noarch

%description
rawkit (pronounced rocket) is a ctypes-based LibRaw binding for
Python inspired by the Wand API.

#-------------------------------------------------------
%package -n     python3-%{module}
Summary:        %{summary}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(flake8)
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(coverage)
BuildRequires:  python3egg(wheel)


%description -n python3-%{module}
rawkit (pronounced rocket) is a ctypes-based LibRaw binding for
Python inspired by the Wand API.

%files -n python3-%{module}
%doc LICENSE README.rst
%{py3_puresitedir}/libraw
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
#-------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%autopatch -p1
# Remove bundled egg-info
rm -rf %{module}.egg-info

# deprecated fixed
pushd tests/unit
perl -pi -e "s|@pytest.yield_fixture|@pytest.fixture|" *.py
popd

%build
%py3_build

%install
%py3_install

%check
pytest-3




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7418 |21cr|python-recaptcha-client-1.0.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name recaptcha-client

Name:           python-%{pypi_name}
Version:        1.0.6
Release:        12
Group:          Development/Python
Summary:        A plugin for reCAPTCHA and reCAPTCHA Mailhide

License:        MIT
URL:            http://pypi.python.org/pypi/recaptcha-client
Source0:        http://pypi.python.org/packages/source/r/recaptcha-client/recaptcha-client-%{version}.tar.gz

BuildArch:      noarch

%description
A plugin for reCAPTCHA and reCAPTCHA Mailhide.

%package -n python3-%{pypi_name}
Summary:        A plugin for reCAPTCHA and reCAPTCHA Mailhide
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description -n python3-%{pypi_name}
A plugin for reCAPTCHA and reCAPTCHA Mailhide.

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%{py3_puresitedir}/recaptcha_client*
%{py3_puresitedir}/recaptcha/client/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7419 |21cr|python-recommonmark-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module recommonmark

Name:           python-%{module}
Version:        0.7.1
Release:        1
Summary:        Docutils-compatibility bridge to CommonMark
Group:          Development/Python
License:        MIT
URL:            https://github.com/rtfd/recommonmark
Source0:        https://github.com/rtfd/recommonmark/archive/%{version}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
A docutils-compatibility bridge to CommonMark.
This allows you to write CommonMark
inside of Docutils & Sphinx projects.
Documentation is available on Read the
Docs: http://recommonmark.readthedocs.org.

#--------------------------------------------------------------
%package -n     python3-%{module}
Summary:        Docutils-compatibility bridge to CommonMark
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(docutils)
BuildRequires:  python3egg(commonmark)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(sphinx)

%description -n python3-%{module}
A docutils-compatibility bridge to CommonMark.
This allows you to write CommonMark
inside of Docutils & Sphinx projects.
Documentation is available on Read the
Docs: http://recommonmark.readthedocs.org.

%files -n python3-%{module}
%doc *.md
%{python3_sitelib}/%{module}-%{version}*-py?.?.egg-info
%{python3_sitelib}/%{module}/
%{_bindir}/*
#--------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# Remove upstream's egg-info
rm -rf %{module}.egg-info
sed -i '1{\@^#!/usr/bin/env python@d}' recommonmark/scripts.py


%build
%py3_build


%install
%py3_install

%check
# Skip some tests because of https://github.com/readthedocs/recommonmark/issues/164
PYTHONPATH=$(pwd) pytest-3 -k 'not test_lists and not test_integration and not test_sphinx' .


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7420 |21cr|python-reconfigure-0.1.82-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name reconfigure

Name:           python-reconfigure
Version:	0.1.82
Release:	1
Group:          Development/Python
Summary:        An ORM for config files

License:        LGPLv3
URL:            TODO:
Source0:	https://files.pythonhosted.org/packages/12/30/b9ba363fd0e10f4b3d25c50ba16269f90cd843f4ab074126711a3a8f9688/reconfigure-0.1.82.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
UNKNOWN

%package -n     python3-%{pypi_name}
Summary:        An ORM for config files
Requires:       python3-chardet

%description -n python3-%{pypi_name}
UNKNOWN

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
pushd %{py3dir}
python3 setup.py build
popd


%install
pushd %{py3dir}
python3 setup.py install --skip-build --root %{buildroot}
popd

%files -n python3-%{pypi_name}
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7421 |21cr|python-redis-2.10.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module redis

Name:           python-%{module}
Version:        2.10.3
Release:        3
Summary:        Python client for Redis key-value store
License:        MIT
Group:          Development/Python
Url:            http://github.com/andymccurdy/redis-py/
Source0:        http://cloud.github.com/downloads/andymccurdy/redis-py/redis-py-%{version}.tar.gz
BuildRequires:  python2-devel
BuildArch:      noarch

%description
Python client for Redis key-value store

%package -n python2-%{module}
Summary:        Python client for Redis key-value store

%description -n python2-%{module}
Python client for Redis key-value store


%prep
%setup -q -n %{module}-py-%{version}

%build
CFLAGS="%{optflags}" python2 setup.py build

%install
python2 setup.py install --root %{buildroot} --install-purelib=%{py2_puresitedir}

%files -n python2-%{module}
%doc LICENSE CHANGES INSTALL
%{py2_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7422 |21cr|python-regex-2018.02.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module regex

Summary:	Alternative regular expression module, to replace re
Name:		python-%{module}
Version:	2018.02.21
Release:	2
License:	Python Software Foundation License
Group:		Development/Python
Url:		https://pypi.python.org/pypi/regex
Source0:	http://pypi.python.org/packages/source/p/regex/regex-%{version}.tar.gz

%description
This new regex implementation is intended eventually to replace
Python's current re module implementation.

%files
#-----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Python 3 interface to Last.fm
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
This new regex implementation is intended eventually to replace
Python's 3 current re module implementation.

%files -n python3-%{module}
%{py3_platsitedir}/*
#-----------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7423 |21cr|python-relatorio-0.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module relatorio

Name:		python-%{module}
Summary:	A templating library able to output odt and pdf files

Version:	0.10.1
Release:	1
License:	GPLv3+
Group:		Development/Python
URL:		https://%{module}.openhex.org/
Source0:	https://files.pythonhosted.org/packages/10/72/21cc2612f8d1cf70d6471b6893bde007aeaff06b58e04be506ccfeefb424/relatorio-0.10.1.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(genshi)
BuildRequires:	python3egg(lxml)
BuildRequires:	python3egg(setuptools)

BuildArch:	noarch

%description
A templating library which provides a way to easily output all kind
of different files (odt, ods, png, svg, ...). Adding support for more filetype
is easy: you just have to create a plugin for this.

%{module} also provides a report repository allowing you to link python2 objects
and report together, find reports by mimetypes/name/python2 objects.

#---------------------------------------------------------------------
%package -n python3-%{module}
Summary:	A templating library able to output odt and pdf files
Group:		Development/Python

%description -n python3-%{module}
A templating library which provides a way to easily output all kind
of different files (odt, ods, png, svg, ...). Adding support for more filetype
is easy: you just have to create a plugin for this.

%{module} also provides a report repository allowing you to link python objects
and report together, find reports by mimetypes/name/python objects.

%files -n python3-%{module}
%{_bindir}/%{module}-render
%{py3_puresitedir}/%{module}*
%doc CHANGELOG README

#--------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%check
# https://%{module}.tryton.org/bug65
sed -i 's:iteritems:items:' %{module}/tests/test_api.py
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
cd %{module}/tests
python3 -m unittest -vvv test_*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7424 |21cr|python-requests-kerberos-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module requests-kerberos

Name:           python-%{module}
Version:        0.13.0
Release:        1
Summary:        A Kerberos authentication handler for python-requests
Group:          Development/Python
License:        MIT
URL:            https://github.com/requests/requests-kerberos
Source0:        https://files.pythonhosted.org/packages/source/r/%{module}/%{module}-%{version}.tar.gz

BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(pytest)
BuildRequires: python3egg(pytest-cov)
BuildRequires: python3egg(pytest-mock)
BuildRequires: python3egg(mock)
BuildRequires: python3egg(requests)
BuildRequires: python3egg(kerberos)
BuildRequires: python3egg(cryptography)
BuildRequires: python3egg(pyspnego)

BuildArch:      noarch

%description
Requests is an HTTP library, written in Python, for human beings. This library 
adds optional Kerberos/GSSAPI authentication support and supports mutual 
authentication.

#--------------------------------------------------------------------------

%package -n python3-%{module}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{module}
Requests is an HTTP library, written in Python, for human beings. This library 
adds optional Kerberos/GSSAPI authentication support and supports mutual 
authentication.


%files -n python3-%{module}
%doc LICENSE *.rst AUTHORS
%{py3_puresitedir}/requests_kerberos
%{py3_puresitedir}/requests_kerberos-*.egg-info
#--------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}


%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3 -v

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7425 |21cr|python-requests-oauthlib-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name requests-oauthlib

Name:           python-requests-oauthlib
Version:        1.2.0
Release:        2
Group:          Development/Python
Summary:        OAuthlib authentication support for Requests

License:        ISC
URL:            https://github.com/requests/requests-oauthlib
Source0:        https://pypi.io/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools


%description
This project provides first-class OAuth library support for Requests.


%package -n     python3-%{pypi_name}
Summary:        OAuthlib authentication support for Requests

%description -n python3-%{pypi_name}
This project provides first-class OAuth library support for Requests.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build
%py3_build


%install
%py3_install


%files -n python3-%{pypi_name}
%doc README.rst
%{py3_puresitedir}/requests_oauthlib-%{version}-py?.?.egg-info
%{py3_puresitedir}/requests_oauthlib




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7426 |21cr|python-requirements-parser-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# pypi_name - name for pypi_source
# mod_name - name of python module
# oname - name for rpm package

%define pypi_name requirements_parser
%define mod_name  requirements
%define oname requirements-parser

Summary:        This is a small Python module for parsing Pip requirement files
Name:           python-%{oname}
Version:        0.9.0
Release:        1
License:        Apache-2.0
Group:          Development/Python
Url:            https://github.com/madpah/requirements-parser/#readme
Source0:        %{pypi_source}

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(wheel)
BuildRequires:  python3dist(pip)
BuildArch:      noarch

%description
%{summary}.

#------------------------------------------------------------------

%package -n python3-%{oname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{oname}
%{summary}.

%files -n python3-%{oname} -f %{pyproject_files}
%doc AUTHORS.rst README.md

#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{mod_name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7427 |21cr|python-restkit-4.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname restkit

Name:           python-%{oname}
Version:        4.2.2
Release:        4
Summary:        Restkit is an HTTP resource kit for Python
Group:		    Development/Python
License:        MIT
URL:            http://benoitc.github.com/%{oname}/
Source0:        http://pypi.python.org/packages/source/r/%{oname}/%{oname}-%{version}.tar.gz
Patch0:         %{oname}-disable-tests-needing-internet-connection.patch

BuildRequires:  pkgconfig(python)
BuildRequires:  pythonegg(setuptools)
BuildRequires:  pythonegg(nose)
BuildRequires:  python2-socketpool >= 0.5.3
BuildRequires:  pythonegg(http-parser) >= 0.8.3
BuildRequires:  pythonegg(webob)

Requires:  pythonegg(socketpool) >= 0.5.3
Requires:  pythonegg(http-parser) >= 0.8.3
Requires:  pythonegg(webob)

BuildArch:      noarch





%description
Restkit is a full HTTP client using pure socket calls and its own
HTTP parser. It's not based on httplib or urllib2.

%package -n python2-%{oname}
Summary:        Restkit is an HTTP resource kit for Python

%description -n python2-%{oname}
Restkit is a full HTTP client using pure socket calls and its own
HTTP parser. It's not based on httplib or urllib2.


%prep
%setup -qn %{oname}-%{version}
rm -rf %{oname}.egg-info
%patch0 -p0

%build
python2 setup.py build


%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot} --install-data %{_docdir}
# zero-length file
rm %{buildroot}%{_docdir}/%{oname}/TODO.txt

# strip shebang from non-executable 
sed -i '1d' %{buildroot}%{py2_puresitedir}/%{oname}/contrib/webob_api.py


%check
nosetests --exclude="009-test-oauth_filter"

%files -n python2-%{oname}
%doc %{_docdir}/%{oname}/
%{_bindir}/restcli
%{py2_puresitedir}/%{oname}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7428 |21cr|python-RestrictedPython-6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	RestrictedPython

Name:		python-%{pypi_name}
Version:	6.0
Release:	1
Summary:	RestrictedPython running untrusted code
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/RestrictedPython
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
.. contents::

Overview
========

RestrictedPython provides a ``restricted_compile`` function that works
like the built-in ``compile`` function, except that it allows the
controlled and restricted execution of code

#-------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	RestrictedPython running untrusted code
Group:		Development/Python

%description -n python3-%{pypi_name}
.. contents::

Overview
========

RestrictedPython provides a ``restricted_compile`` function that works
like the built-in ``compile`` function, except that it allows the
controlled and restricted execution of code

%files -n python3-%{pypi_name}
%doc README*
%{py3_puresitedir}/RestrictedPython
%{py3_puresitedir}/RestrictedPython-%{version}-*.egg-info

#-------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7429 |21cr|python-retry_decorator-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define mod_name	retry_decorator
%define pkg_name	retry-decorator

Name:		python-%{mod_name}
Summary:	Decorator for retrying when exceptions occur
Version:	1.0.0
Release:	8
Source0:	%{pkg_name}-%{version}.tar.gz
URL:		https://github.com/pnpnpn/retry-decorator
Group:		Development/Python
License:	MIT
BuildArch:	noarch

%description
Decorator for retrying when exceptions occur.

%package -n python3-%{mod_name}
Summary:	Decorator for retrying when exceptions occur
Group:		Development/Python
BuildRequires:	python3-setuptools

%description -n python3-%{mod_name}
Decorator for retrying when exceptions occur.

%prep
%setup -q -n %{pkg_name}-%{version}
%autopatch -p1

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot} --skip-build

%files -n python3-%{mod_name}
%doc CHANGES.txt README.rst LICENSE.txt
%{py3_puresitedir}/%{mod_name}
%{py3_puresitedir}/%{mod_name}-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7430 |21cr|python-reverend-0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Reverend

Summary: Python Bayesian classifier
Name:    python-reverend
Version: 0.3
Release: 11
Source:  http://prdownloads.sourceforge.net/%oname/%oname-%version.tar.bz2
License: GPL
Group: Development/Python
BuildRequires: python2-devel
Url: http://divmod.org/trac/wiki/DivmodReverend 
BuildArch: noarch

%description
Reverend is a general purpose Bayesian classifier, named after Rev. Thomas 
Bayes. Use the Reverend to quickly add Bayesian smarts to your app.
 
To use it in your own application, you either subclass Bayes or pass it a 
tokenizing function. Bayesian fun has never been so quick and easy. 

%package -n python2-reverend
Summary: Python Bayesian classifier

%description -n python2-reverend
Reverend is a general purpose Bayesian classifier, named after Rev. Thomas 
Bayes. Use the Reverend to quickly add Bayesian smarts to your app.
 
To use it in your own application, you either subclass Bayes or pass it a 
tokenizing function. Bayesian fun has never been so quick and easy. 


%prep
%setup -q -n %oname-%version 

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

%files -n python2-reverend
%doc *.txt examples/
%py2_puresitedir/reverend
%py2_puresitedir/*egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7431 |21cr|python-routes-2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname Routes

Summary:	Routing recognition and generation tools for Python

Name:		python-routes
Version:	2.2
Release:	3
Source0:	http://pypi.python.org/packages/source/R/Routes/Routes-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://routes.groovie.org/
BuildArch:	noarch
Requires:	python2-pkg-resources
Requires:	python2-webob
BuildRequires:	python2-setuptools
BuildRequires:	python2-webob

%description
Routes is a Python re-implementation of the Rails routes system for
mapping URLs to application actions, and conversely to generate
URLs. Routes makes it easy to create pretty and concise URLs that are
RESTful with little effort.

Routes allows conditional matching based on domain, cookies, HTTP
method, or a custom function. Sub-domain support is built in. Routes
comes with an extensive unit test suite.

%package -n python2-routes
Summary:	Routing recognition and generation tools for Python

%description -n python2-routes
Routes is a Python re-implementation of the Rails routes system for
mapping URLs to application actions, and conversely to generate
URLs. Routes makes it easy to create pretty and concise URLs that are
RESTful with little effort.

Routes allows conditional matching based on domain, cookies, HTTP
method, or a custom function. Sub-domain support is built in. Routes
comes with an extensive unit test suite.


%prep
%setup -q -n %{tarname}-%{version}

%install
PYTHONDONTWRITEBYTECODE= %__python2 setup.py install --root=%{buildroot} --record=FILE_LIST
sed -i 's/.*egg-info$//' FILE_LIST
pushd docs
export PYTHONPATH=`dir -d ../build/lib*`
#make html
#rm -f _build/html/.buildinfo
popd

%files -n python2-routes
#%doc docs/_build/html
%{py2_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7432 |21cr|python-Rtree-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Rtree

Name:           python-Rtree
Version:        1.0.1
Release:        1
Summary:        R-Tree spatial index for Python GIS
Group:          Development/Python

%global _description %{expand: \
Rtree is a ctypes Python wrapper of libspatialindex that provides a number of
advanced spatial indexing features for the spatially curious Python user. These
features include:

  • Nearest neighbor search
  • Intersection search
  • Multi-dimensional indexes
  • Clustered indexes (store Python pickles directly with index entries)
  • Bulk loading
  • Deletion
  • Disk serialization
  • Custom storage implementation (to implement spatial indexing in ZODB, for
    example)}

License:        LGPLv2
URL:            https://github.com/Toblerity/rtree
Source0:        %{pypi_source}

# Since we are not bundling libspatialindex as upstream does for PyPI wheel
# distribution, do not force setuptools to treat the package as binary/arched
# (which would cause it to be installed in %%python3_sitearch, and would mean
# this package could not properly be noarch).
#
# Since upstream does want to bundle libspatialindex, this is a downstream-only
# patch.
#
# https://bugzilla.redhat.com/show_bug.cgi?id=2050010
Patch0:         Rtree-1.0.0-no-bundled-spatialindex.patch

BuildRequires:  spatialindex-devel
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

BuildArch:      noarch

%description %{_description}

#-------------------------------------------------------
%package -n python3-rtree
Summary:        %{summary}
Group:          Development/Python
Requires:       %{_lib}spatialindex6

%description -n python3-rtree %{_description}

# Note that there is no %%files section for the unversioned python module if we
# are building for several python runtimes
%files -n python3-rtree -f %{pyproject_files}
# pyproject_files handles LICENSE.txt; verify with “rpm -qL -p …”
%doc README.md

#-------------------------------------------------------
%prep
%autosetup -n Rtree-%{version} -p1


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files rtree

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7433 |21cr|python-rtslib-2.1.69-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   rtslib

Name:           python-%{oname}
Version:        2.1.69
Release:        1
Summary:        API for RisingTide Systems generic SCSI target
Source0:        https://pypi.python.org/packages/source/r/%{oname}-fb/%{oname}-fb-%{version}.tar.gz
License:        ASL 2.0

Group:          Development/Python
Url:            http://github.com/open-iscsi/rtslib-fb
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3-devel

%description
rtslib-fb is an object-based Python library for configuring the LIO generic
SCSI target, present in 3.x Linux kernel versions.

It supports both Python 2 and Python 3, thanks to the python2-six library.


%package -n python3-%{oname}
Summary:        API for RisingTide Systems generic SCSI target

%description -n python3-%{oname}
rtslib-fb is an object-based Python library for configuring the LIO generic
SCSI target, present in 3.x Linux kernel versions.

It supports both Python 2 and Python 3, thanks to the python-six library.



%prep
%setup -q -n rtslib-fb-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%{py3_puresitedir}/rtslib
%{py3_puresitedir}/rtslib_fb
%{py3_puresitedir}/rtslib*.egg-info
/usr/bin/targetctl

%doc README.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7434 |21cr|python-rx-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global srcname Rx
%global pypi_name rx

Summary:	Reactive Extensions (Rx) for Python
Name:		python-%{pypi_name}
Version:	3.2.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/Rx/
Source0:	%pypi_source
BuildRequires:	python3-devel
BuildRequires:	python3dist(coverage)
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(pytest-asyncio)
BuildRequires:	python3dist(pytest-runner)
BuildRequires:	python3dist(setuptools)

%description
ReactiveX for Python (RxPY) is a library for composing asynchronous
and event-based programs using observable sequences and pipable query
operators in Python.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Reactive Extensions (Rx) for Python
Group:		Development/Python

%description -n python3-%{pypi_name}
ReactiveX for Python (RxPY) is a library for composing asynchronous
and event-based programs using observable sequences and pipable query
operators in Python.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/Rx-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n Rx-%{version}
rm -rf Rx.egg-info
rm -rf rx/py.typed

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7435 |21cr|python-rython-0.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	rython
%define debug_package %{nil}

Summary:	Transparently mixes Ruby code into Python
Name:		python-%{module}
Version:	0.0.1
Release:	6
License:	BSD
Group:		Development/Python
Url:		http://pypi.python.org/pypi/rython/
Source0:	%{module}-%{version}.tar.gz
BuildRequires: python2-devel
Requires:	ruby

%description
If you've ever needed to use Ruby for a particular task, but wanted to use
Python as your primary language, Rython lets you easily mix the two languages
together.

Why would I want to mix Ruby and Python? There are many reasons:
* you need a Ruby Gem that provides unique functionality which no Python module
  provides
* you need a simpler syntax for manipulating regular expressions
* you want to quickly bridge to code you've already written in Ruby

%package -n python2-%{module}
Summary:	Transparently mixes Ruby code into Python

%description -n python2-%{module}
If you've ever needed to use Ruby for a particular task, but wanted to use
Python as your primary language, Rython lets you easily mix the two languages
together.

Why would I want to mix Ruby and Python? There are many reasons:
* you need a Ruby Gem that provides unique functionality which no Python module
  provides
* you need a simpler syntax for manipulating regular expressions
* you want to quickly bridge to code you've already written in Ruby


%prep
%setup -qn %{module}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

%files -n python2-%{module}
%doc README.txt LICENSE.txt
%dir %{python2_sitelib}/%{module}
%{python2_sitelib}/%{module}/*.py*
%{python2_sitelib}/%{module}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7436 |21cr|python-s3cmd-1.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname s3cmd

Name:		python-%{oname}
Version:	1.0.1
Release:	4
Summary:	Command line tool for managing Amazon S3 and CloudFront services
Group:		Networking/File transfer
License:	GPLv2
URL:		http://s3tools.org/s3cmd
Source:		http://prdownloads.sourceforge.net/s3tools/s3cmd-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python2-devel
Requires:	python2

%description
S3cmd lets you copy files from/to Amazon S3
(Simple Storage Service) using a simple to use
command line client. Supports rsync-like backup,
GPG encryption, and more. Also supports management
of Amazon's CloudFront content delivery network.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Command line tool for managing Amazon S3 and CloudFront services

%description -n python2-%{oname}
S3cmd lets you copy files from/to Amazon S3
(Simple Storage Service) using a simple to use
command line client. Supports rsync-like backup,
GPG encryption, and more. Also supports management
of Amazon's CloudFront content delivery network.


%prep
%setup -q -n %{oname}-%{version}

%build
export S3CMD_PACKAGING=1
%{__python2} setup.py build

%install
export S3CMD_PACKAGING=1
%{__python2} setup.py install --root=%{buildroot} --prefix=%{_prefix}
rm -fr %{buildroot}%{_prefix}/lib*/python*/site-packages/*.egg-info

%files -n python2-%{oname}
%{_bindir}/*
%{python2_sitelib}/S3
%doc README PKG-INFO NEWS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7437 |21cr|python-s3transfer-0.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name s3transfer

Name:		python-%{upstream_name}
Version:	0.3.3
Release:	1
Summary:	Amazon S3 Transfer Manager for Python
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/boto/botocore
Source:		https://github.com/boto/s3transfer/archive/%{version}/s3transfer-%{version}.tar.gz
BuildArch:	noarch

%description
S3transfer is a Python library for managing Amazon S3 transfers.

Note:
This project is not currently GA. If you are planning to use this code in
production, make sure to lock to a minor version as interfaces may break from
minor version to minor version. For a basic, stable interface of s3transfer,
try the interfaces exposed in boto3

#------------------------------------------------------------------------------
%package -n python3-%{upstream_name}
Summary:	Amazon S3 Transfer Manager for Python
Group:		Development/Python
BuildRequires:	python3egg(setuptools)

%description -n python3-%{upstream_name}
S3transfer is a Python library for managing Amazon S3 transfers.

%files -n python3-%{upstream_name}
%{python3_sitelib}/*

#------------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7438 |21cr|python-sampy-1.2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sampy

Name:           python-sampy
Version:        1.2.1
Release:        8
Group:          Development/Python
Summary:        SAMPy is an IVOA SAMP messaging system implementation in Python

License:        GNU General Public License
Source0:        https://pypi.python.org/packages/source/s/sampy/sampy-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python2-devel
BuildRequires:  tkinter

%description
SAMPy is a Python implementation of the IVOA Simple Application
Messaging Protocol [*] version 1.2 (with Web Profile support).

SAMPy Python module (sampy.py) provides classes to easily:

1) instantiate one or multiple Hubs;
2) interface an application or script to a running Hub;
3) create and manage a SAMP client.

%package -n python2-sampy
Summary:        SAMPy is an IVOA SAMP messaging system implementation in Python

%description -n python2-sampy
SAMPy is a Python implementation of the IVOA Simple Application
Messaging Protocol [*] version 1.2 (with Web Profile support).

SAMPy Python module (sampy.py) provides classes to easily:

1) instantiate one or multiple Hubs;
2) interface an application or script to a running Hub;
3) create and manage a SAMP client.


%prep
%setup -q -n %{pypi_name}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --skip-build --root %{buildroot}

%files -n python2-sampy
%doc 
%{_bindir}/sampy
%{py2_puresitedir}/%{pypi_name}.py*
%{py2_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7439 |21cr|python-schedule-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	schedule

Summary:	Task scheduler for Python
Summary(ru_RU.UTF-8):	Модуль для планирования задач в Python
Name:		python-%{pypi_name}
Version:	1.2.0
Release:	1
Source0:	%{pypi_source}
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/schedule/
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pytest
BuildRequires:	python3-mock
BuildArch:	noarch

%description
Python job scheduling for humans.
Run Python functions (or any other callable) periodically using a friendly syntax.

%description -l ru_RU.UTF-8
Модуль Python3, позволяющий планировать и выполнять задачи по расписанию

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
Python job scheduling for humans.
Run Python functions (or any other callable) periodically using a friendly syntax.

%description -l ru_RU.UTF-8 -n python3-%{pypi_name}
Модуль Python3, позволяющий планировать и выполнять задачи по расписанию

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7440 |21cr|python-schooltool.cando-2.6.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# lang 
%define _files_listed_twice_terminate_build 0
%define	oname	schooltool.cando

Name:		python-%{oname}
Version:	2.6.1
Release:	3
Summary:	CanDo plug-in for SchoolTool
Source0:	http://ftp.schooltool.org/schooltool/2.7/%{oname}-%{version}.tar.gz
License:	GPL
Group:		Development/Python
Url:		http://www.schooltool.org
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)
Requires:	pythonegg(schooltool)
Requires:	pythonegg(schooltool.gradebook) >= 2.6 
Requires:	pythonegg(setuptools) 
Requires:	pythonegg(zope.i18n) 
Requires:	pythonegg(zope.i18nmessageid)

%description
CanDo plug-in for SchoolTool

%prep
%setup -q -n %{oname}-%{version}
#rm -fr README.txt

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

# create lang files
for file in %{buildroot}%{py_puresitedir}/schooltool/cando/locales/*/LC_MESSAGES/*.mo; do
    bn=$(basename $file)
    language=$(basename $file|cut -f 2 -d _|sed 's|\.*||')
    echo %%lang\($language\) %{py_puresitedir}/schooltool/cando/locales/*/LC_MESSAGES/$bn >> %{name}.lang
done



%files -f %{name}.lang
%doc CHANGES.txt GPL.txt 
%doc src/schooltool.cando.egg-info/*.txt
%doc src/schooltool/cando/browser/stests/*.txt
%doc src/schooltool/cando/browser/templates/projects.pt

%{py_puresitedir}/schooltool/cando/*.py*
%{py_puresitedir}/schooltool/cando/generations/*.py*
%{py_puresitedir}/schooltool/cando/locales/*.py*
%{py_puresitedir}/schooltool/cando/tests/*.py*
%{py_puresitedir}/schooltool.cando*.egg-info
%{py_puresitedir}/schooltool.cando-2.6.1-py2.7-nspkg.pth
%{py_puresitedir}/schooltool/cando/browser/
%{py_puresitedir}/schooltool/cando/*.zcml
%{py_puresitedir}/schooltool/cando/locales/es_SV.po 
%{py_puresitedir}/schooltool/cando/locales/nl.po 
%{py_puresitedir}/schooltool/cando/locales/schooltool.cando.pot 
%{py_puresitedir}/schooltool/cando/locales/th.po


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7441 |21cr|python-scikit-image-0.18.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define module scikit-image

Name:           python-%{module}
Version:        0.18.3
Release:        1
Summary:        Image processing in Python
License:        BSD
Group:          Development/Python    
URL:            http://%{module}.org/
Source0:        https://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz


%description
The %{module} SciKit (toolkit for SciPy) extends scipy.ndimage to provide a
versatile set of image processing routines.
#----------------------------------------------

%package -n python3-%{module}
Summary:        Image processing in Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3-numpy-devel
BuildRequires:  python3egg(cython)
BuildRequires:  python3egg(scipy)
BuildRequires:  python3egg(matplotlib)
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(networkx)
BuildRequires:  python3egg(pillow)
BuildRequires:  python3egg(imageio)
BuildRequires:  python3egg(tifffile)
BuildRequires:  python3egg(pywavelets)

Requires:    %{module}-tools = %{EVRD}
    
%description -n python3-%{module}
The %{module} SciKit (toolkit for SciPy) extends scipy.ndimage to provide a
versatile set of image processing routines.

%files -n python3-%{module}
%doc *.txt
%{py3_platsitedir}/skimage
%{py3_platsitedir}/scikit_image-*.egg-info

#----------------------------------------------
%package -n %{module}-tools
Summary:        Scikit-image utility tools
BuildArch:      noarch
Requires:      python3-%{module} = %{EVRD}

%description -n %{module}-tools
Utilities provided by %{module}: 'skivi'.

%files -n %{module}-tools
%{_bindir}/skivi

#----------------------------------------------

%prep
%setup -qn %{module}-%{version}
# shebangs
pushd skimage
for i in $(grep -l -r "/usr/bin/env"); do
   sed -i -e '1d' $i;
done
popd
# Cythonizing in build
rm $(grep -rl '/\* Generated by Cython')

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7442 |21cr|python-scikits-audiolab-0.11.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	scikits.audiolab

Summary:	Python audio file I/O using numpy arrays
Name:		python-scikits-audiolab
Version:	0.11.0
Release:	6
Source0:	http://pypi.python.org/packages/source/s/%{tarname}/%{tarname}-%{version}.tar.gz
Source1:	site.cfg
Patch0:		matapi.patch
License:	LGPLv2.1
Group: 		Development/Python
Url:		http://www.ar.media.kyoto-u.ac.jp/members/david/softwares/audiolab
Requires:	python-numpy >= 1.0
BuildRequires:	sndfile-devel, libalsa-devel
BuildRequires:	python-numpy-devel >= 1.0, python-setuptools
BuildRequires:	python-devel

%description
Audiolab is a Python package for audio file I/O using numpy arrays. It
supports many different audio formats, including wav, aiff, au, flac,
ogg, and htk. It can also be used to output sound to an audio device
via ALSA.

%prep
%setup -q -n %{tarname}-%{version}
%__cp %SOURCE1 .
%patch0 -p0

%build
%__python setup.py build
find . -name .buildinfo | xargs rm -rf

%install
%__python setup.py install --root=%{buildroot}

%files
%doc docs/html README.txt Changelog COPYING.txt NEWS
%py_platsitedir/scikits*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7443 |21cr|python-scikits-learn-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define progname	scikit
%define modname		learn
%define newmodname	sklearn
%define module		scikits-learn

Summary:	Python modules for machine learning and data mining
Name:		python-%{module}
Version:	1.0.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://scikit-learn.sourceforge.net/
Source0:	https://pypi.io/packages/source/s/scikit-learn/%{progname}-%{modname}-%{version}.tar.gz

%description
sklearn is a Python module that integrates classic machine learning
algorithms with the tightly-knit world of scientific Python packages
(numpy, scipy, matplotlib).

#-------------------------------------------------------------------
%package -n	python3-%{module}
Summary:	Python 3 modules for machine learning and data mining
Group:		Development/Python
BuildRequires:	blas-devel
BuildRequires:	gomp-devel
BuildRequires:	python3-cython
BuildRequires:	python3-numpy-devel >= 1.2
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(scipy) >= 0.7
BuildRequires:	python3egg(matplotlib)
BuildRequires:	python3egg(nose) >= 0.10
Provides:	python3-sklearn = %{EVRD}
Provides:	python3-scikits-learn = %{EVRD}
Provides:	python3-scikit-learn = %{EVRD}

%description -n	python3-%{module}
sklearn is a Python 3 module that integrates classic machine learning
algorithms with the tightly-knit world of scientific Python packages
(numpy, scipy, matplotlib).

%files -n python3-%{module}
%doc README.rst
%{py3_platsitedir}/%{newmodname}
%{py3_platsitedir}/%{progname}_%{modname}-*.egg-info

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{progname}-%{modname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%define enable_tests_python3 0
%if %{enable_tests_python3}
cd %{buildroot}%{py3_platsitedir}/%{newmodname}/tests
nosetests-%{python3_version} -exe -v sklearn
cd -
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7444 |21cr|python-scikits-samplerate-0.3.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	scikits.samplerate

Summary:	Python wrapper for libsamplerate
Name:		python-scikits-samplerate
Version:	0.3.3
Release:	9
Source0:        http://pypi.python.org/packages/source/s/%{tarname}/%{tarname}-%{version}.tar.gz
Source1:	site.cfg
License:	BSD-like
Group:		Development/Python
Url:		http://www.ar.media.kyoto-u.ac.jp/members/david/softwares/pysamplerate/
BuildRequires:	python-numpy >= 1.2.0, python-numpy-devel >= 1.2.0, libsamplerate-devel
BuildRequires:	python-setuptools
BuildRequires:	python-devel
# Package is not noarch because code loads libs differently on x86_64

%description 
Samplerate is a Python module that permits one to perform high
quality resampling of audio signals using libsamplerate. The module
provides functionality similar to that of the resample function in
Matlab. It is intended to be used with numpy arrays.

%prep
%setup -q -n %{tarname}-%{version}
%__cp %SOURCE1 .

%build
PYTHONDONTWRITEBYTECODE= %__python setup.py build

%install
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot}

%files
%doc README Changelog
%{py_platsitedir}/scikits*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7445 |21cr|python-scimath-4.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module scimath

Summary:	Enthought Tool Suite - scimath project
Name:		python-%{module}
Version:	4.1.2
Release:	5
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/scimath/
Source0:	https://www.enthought.com/repo/ets/scimath-%{version}.tar.gz
Requires:	python-numpy >= 1.1.0
Requires:	python-scipy >= 0.5.2
Requires:	python-traits >= 4.1.0
BuildRequires:	python-numpy-devel >= 1.1.0
BuildRequires:	python-setuptools >= 0.6c8
BuildRequires:	python-sphinx
BuildRequires:	pkgconfig(python)

%description
The scimath project includes packages to support scientific and mathematical
calculations, beyond the capabilities offered by SciPy.

- scimath.interpolate
- scimath.mathematics
- scimath.units
- scimath.physical_quantities

%files
%doc *.txt *.rst docs/build/html
%{python_sitearch}/%{module}*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
python setup.py build
pushd docs
make html
popd

%install
python setup.py install --root=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7446 |21cr|python-scipy-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define module scipy

Summary:	Scientific tools for Python
Name:		python-%{module}
Version:	1.5.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://www.scipy.org
Source0:	https://github.com/%{module}/%{module}/releases/download/v%{version}/scipy-%{version}.tar.xz
#Patch0:		scipy-1.2.1-linkage.patch
BuildRequires:	gcc-gfortran
BuildRequires:	python3-matplotlib
BuildRequires:	python3-nose
BuildRequires:	python3-sphinx
BuildRequires:	swig
BuildRequires:	python3-numpy-devel
BuildRequires:	python3-numpy-f2py
BuildRequires:	umfpack-devel
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(python3)
Requires:	python3-numpy

%description
SciPy is an open source library of scientific tools for Python. SciPy
supplements the popular numpy module, gathering a variety of high level
science and engineering modules together as a single package.

SciPy includes modules for graphics and plotting, optimization, integration,
special functions, signal and image processing, genetic algorithms, ODE
solvers, and others.


%package -n     python3-%{module}
Summary:        %{summary}
Group:		Development/Python

%description -n python3-%{module}
SciPy is an open source library of scientific tools for Python. SciPy
supplements the popular numpy module, gathering a variety of high level
science and engineering modules together as a single package.

%files -n python3-%{module}
%doc THANKS.txt LICENSE.txt
%dir %{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}/*
%{py3_platsitedir}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
%autopatch -p1

find . -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;

cat > site.cfg << EOF
[amd]
library_dirs = %{_libdir}
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
amd_libs = amd

[umfpack]
library_dirs = %{_libdir}
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
umfpack_libs = umfpack
EOF

%build
# workaround for not using colorgcc when building due to colorgcc
# messes up output redirection..
env CC=gcc CXX=g++ PATH=${PATH#%{_datadir}/colorgcc:} \
CFLAGS="%{optflags} -fno-strict-aliasing -fno-lto" \
FFLAGS="$RPM_OPT_FLAGS -fPIC" \
ATLAS=%{_libdir}/atlas \
FFTW=%{_libdir} \
BLAS=%{_libdir} \
LAPACK=%{_libdir} \
python setup.py config_fc --fcompiler=gnu95 --noarch build build_ext -lm

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7447 |21cr|python-scripttest-1.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module scripttest
Name:           python-%{module}
Version:        1.3
Release:        14
Summary:        Helper to test command-line scripts

Group:          Development/Python
License:        MIT
URL:            http://pypi.python.org/pypi/ScriptTest/
Source0:        https://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
scripttest is a library to help you test your interactive
command-line applications.

With it you can easily run the command (in a subprocess) and see
the output (stdout, stderr) and any file modifications.

%package -n python3-%{module}
Summary:        Helper to test command-line scripts
BuildRequires: python3-setuptools

%description -n python3-%{module}
scripttest is a library to help you test your interactive
command-line applications.

With it you can easily run the command (in a subprocess) and see
the output (stdout, stderr) and any file modifications.

%prep
%autosetup -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7448 |21cr|python-scss-1.3.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Filter the _speedups.so provides that otherwise comes into the provides
%global __provides_exclude _speedups\\.so
%define module scss

Name:		python-scss
Version:	1.3.7
Release:	1
Summary:	A SCSS compiler for Python
Group:		Development/Python
License:	MIT
URL:		https://github.com/Kronuz/pyScss
Source0:	https://github.com/Kronuz/pyScss/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(sphinx)
BuildRequires:	pkgconfig(libpcre)

%description
A SCSS compiler for Python.

#-----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	A SCSS compiler for Python3
Group:		Development/Python
Provides:	pyscss = %{EVRD}

%description -n python3-%{module}
A SCSS compiler for Python3.

%files -n python3-%{module}
%doc DESCRIPTION README.rst
%doc docs/_build/html
%{python3_sitearch}/*
%{_bindir}/pyscss
%{_bindir}/less2scss
%{_mandir}/man1/pyscss.1.*

#-----------------------------------------------------------------------

%prep
%setup -q -n pyScss-%{version}
%autopatch -p0

%build
%py3_build

export PYTHONPATH=$(pwd)
make -C docs man SPHINXBUILD=sphinx-build
make -C docs html SPHINXBUILD=sphinx-build

%install
%py3_install
chmod +x %{buildroot}%{python3_sitearch}/scss/tool.py

mkdir -p %{buildroot}%{_mandir}/man1/
cp -ar docs/_build/man/pyscss.1 %{buildroot}%{_mandir}/man1/pyscss.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7449 |21cr|python-sdl2-0.9.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module sdl2
%define oname PySDL2

Name:           python-%{module}
Version:        0.9.15
Release:        1
Summary:        Python 2.x SDL2 bindings
License:        Public Domain or CC0
Group:          Development/Python
URL:            https://github.com/marcusva/py-sdl2
Source0:        https://pypi.io/packages/source/P/PySDL2/%{oname}-%{version}.tar.gz

BuildArch:      noarch

%description
PySDL2 is a wrapper around the SDL2 library and as such similar to the
discontinued PySDL project. In contrast to PySDL, it has no licensing
restrictions, nor does it rely on C code, but uses ctypes instead.

#----------------------------------------------------------------------------

%package -n python2-%{module}
Summary:        Python 2.x SDL2 bindings
Group:          Development/Python
BuildRequires:  pythonegg(setuptools)
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(cffi)

%description -n python2-%{module}
PySDL2 is a wrapper around the SDL2 library and as such similar to the
discontinued PySDL project. In contrast to PySDL, it has no licensing
restrictions, nor does it rely on C code, but uses ctypes instead.

%files -n python2-%{module}
%doc AUTHORS.txt README.md
%doc doc/copying.rst
%{python2_sitelib}/%{oname}-%{version}-py*.egg-info
%{python2_sitelib}/%{module}/

#----------------------------------------------------------------------------
%package -n python3-%{module}
Summary:        Python 3.x SDL2 bindings
Group:          Development/Python
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(cffi)

%description -n python3-%{module}
PySDL2 is a wrapper around the SDL2 library and as such similar to the
discontinued PySDL project. In contrast to PySDL, it has no licensing
restrictions, nor does it rely on C code, but uses ctypes instead.

%files -n python3-%{module}
%doc AUTHORS.txt README.md
%doc doc/copying.rst
%{python3_sitelib}/%{oname}-%{version}-py*.egg-info
%{python3_sitelib}/%{module}/

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

rm -r *.egg-info

cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

pushd %{py3dir}
%py3_install
popd



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7450 |21cr|python-secretstorage-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define pypi_name secretstorage

Name:		python-secretstorage
Version:	3.1.2
Release:	1
Summary:	Provides a way for securely storing passwords and other secrets
Group:		Development/Python
License:	BSD
Url:		https://github.com/mitya57/secretstorage
Source0:	https://pypi.io/packages/source/s/secretstorage/SecretStorage-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(jeepney)
BuildRequires:  python3egg(cryptography)

%description
This module provides a way for securely storing passwords and other secrets.
It uses D-Bus Secret Service API that is supported by GNOME Keyring 
(since version 2.30) and KSecretsService.
The main classes provided are secretstorage.Item, representing a secret 
item (that has a label, a secret and some attributes) and secretstorage.
Collection, a place items are stored in.
SecretStorage supports most of the functions provided by Secret Service, 
including creating and deleting items and collections, editing items, 
locking and unlocking collections (asynchronous unlocking is also supported).

#----------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Provides a way for securely storing passwords and other secrets
Group:		Development/Python

%description -n python3-%{pypi_name}
This module provides a way for securely storing passwords and other secrets.
It uses D-Bus Secret Service API that is supported by GNOME Keyring 
(since version 2.30) and KSecretsService.
The main classes provided are secretstorage.Item, representing a secret 
item (that has a label, a secret and some attributes) and secretstorage.
Collection, a place items are stored in.
SecretStorage supports most of the functions provided by Secret Service, 
including creating and deleting items and collections, editing items, 
locking and unlocking collections (asynchronous unlocking is also supported).


%files -n python3-%{pypi_name}
%doc LICENSE README.rst
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn SecretStorage-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7451 |21cr|python-semver-2.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname semver

Name:           python-%{modname}
Version:        2.13.0
Release:        1
Summary:        Python helper for Semantic Versioning
Group:          Development/Python
License:        BSD
URL:            https://github.com/k-bx/python-semver
Source0:        %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
BuildArch:      noarch

%global _description \
Python module for semantic versioning. Simplifies comparing versions.

%description %{_description}

%package -n python3-%{modname}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%description -n python3-%{modname}
%{_description}

Python 3 version.

%prep
%autosetup
# Remove settings for coverage from setup.cfg
sed -i '/-cov[=-]/d' setup.cfg
# Fix tests for Python 3.10
# Proposed upstream: https://github.com/python-semver/python-semver/pull/336
sed -i 's/TypeError: __init__() got an unexpected/TypeError: ...__init__() got an unexpected/' docs/usage.rst

%build
%py3_build

%install
%py3_install

%check
py.test-%{python3_version} -v

%files -n python3-%{modname}
%license LICENSE.txt
%doc README.rst CHANGELOG.rst
%{_bindir}/py%{modname}
%{python3_sitelib}/%{modname}-*.egg-info/
%{python3_sitelib}/%{modname}.py
%{python3_sitelib}/__pycache__/%{modname}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7452 |21cr|python-Send2Trash-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   Send2Trash

Name:           python-%{oname}
Version:	1.8.0
Release:	1
Summary:        Send file to trash natively under Mac OS X, Windows and Linux
Source0:	https://files.pythonhosted.org/packages/49/2c/d990b8d5a7378dde856f5a82e36ed9d6061b5f2d00f39dc4317acd9538b4/Send2Trash-1.8.0.tar.gz
License:        BSD
Group:          Development/Python
Url:            https://github.com/hsoft/send2trash
BuildArch:      noarch
BuildRequires:  dos2unix
BuildRequires:  python3egg(setuptools)

%define _description \
Send2Trash is a small package that sends files to the Trash (or Recycle Bin) \
*natively* and on *all platforms*. On OS X, it uses native \
``FSMoveObjectToTrashSync`` Cocoa calls, on Windows, it uses native (and ugly) \
``SHFileOperation`` win32 calls. On other platforms, if `PyGObject`_ and \
`GIO`_ are available, it will use this.  Otherwise, it will fallback to its own \
implementation of the `trash specifications from freedesktop.org`_. \
\
``ctypes`` is used to access native libraries, so no compilation is necessary. \
\
Send2Trash supports Python 2.7 and up (Python 3 is supported).

%description
%{_description}

%package -n python3-%{oname}
Summary: %{summary}
Group: Development/Python
Provides:	python3-send2trash = %{EVRD}

%description -n python3-%{oname}
%{_description}

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build
dos2unix CHANGES.rst
dos2unix README.rst

%install
%py3_install

%files -n python3-%{oname}
%license LICENSE
%doc CHANGES.rst
%doc README.rst
%{_bindir}/send2trash
%{py3_puresitedir}/send2trash
%{py3_puresitedir}/Send2Trash*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7453 |21cr|python-sensors-0.0.2-1.hg0cf96f4e2cfe.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name sensors
%define tar_name PySensors

Name:           python-%{module_name}
Version:        0.0.2
Release:        1.hg0cf96f4e2cfe.6
Group:          Development/Python
Summary:        Python bindings for libsensors.so

License:        LGPLv3
URL:            https://bitbucket.org/gleb_zhulik/py3sensors
# Not on Pypi, we need snapshots.  Instructions below:
# wget https://bitbucket.org/gleb_zhulik/py3sensors/get/tip.tar.gz
# cd gleb_zhulik-py3sensors-0cf96f4e2cfe/
# python setup.py sdist
# The tarball is in dist/PySensors-VERSION.tar.gz
Source0:        %{tar_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  lm_sensors-devel

%description
Python bindings for libsensors.so from the lm-sensors project via ctypes. 
Supported only 4 API version.

%package -n     python3-%{module_name}
Group:          Development/Python
Summary:        Python3 bindings for libsensors.so
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools


%description -n python3-%{module_name}
Python bindings for libsensors.so from the lm-sensors project via ctypes. 
Supported only 4 API version.


%prep
%setup -q -n %{tar_name}-%{version}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%files -n python3-%{module_name}
%doc README.rst
%{py3_puresitedir}/%{module_name}/
%{py3_puresitedir}/%{tar_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7454 |21cr|python-sentry-sdk-1.9.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# test requires work dns resolve
%bcond_with tests

Name:           python-sentry-sdk
Version:        1.9.6
Release:        1
Summary:        Python SDK for Sentry.io
Group:          Development/Python
License:        BSD-2-Clause
URL:            https://github.com/getsentry/sentry-python
Source0:        https://github.com/getsentry/sentry-python/archive/%{version}/sentry-python-%{version}.tar.gz
BuildRequires:  python3egg(flask) >= 0.11
BuildRequires:  python3egg(sqlalchemy) >= 1.2
BuildRequires:  python3egg(aiohttp) >= 3.5
BuildRequires:  python3egg(asttokens)
BuildRequires:  python3egg(blinker) >= 1.1
BuildRequires:  python3egg(bottle) >= 0.12.13
BuildRequires:  python3egg(certifi)
BuildRequires:  python3egg(executing)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(tornado) >= 5
BuildRequires:  python3egg(urllib3) >= 1.10.0
BuildRequires:  fdupes
%if %{with tests}
# SECTION test requirements
BuildRequires:  python3egg(werkzeug)
BuildRequires:  python3egg(eventlet)
BuildRequires:  python3egg(gevent)
BuildRequires:  python3egg(hypothesis)
BuildRequires:  python3egg(jsonschema) >= 3.2.0
BuildRequires:  python3egg(pyramid)
BuildRequires:  python3egg(pyrsistent) >= 0.16.0
BuildRequires:  python3egg(pytest-cov) >= 2.8.1
BuildRequires:  python3egg(pytest-forked) >= 1.1.3
BuildRequires:  python3egg(pytest-localserver) >= 0.5.0
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(tox)
%endif
BuildArch:      noarch

%description
A Python SDK for Sentry.io.
https://sentry.io/for/python/

#----------------------------------------------------------------
%package -n python3-sentry-sdk
Summary:        Python SDK for Sentry.io
Group:          Development/Python

%description -n python3-sentry-sdk
A Python SDK for Sentry.io.
https://sentry.io/for/python/

%files -n python3-sentry-sdk
%doc README.md CHANGELOG.md
%license LICENSE
%{python3_sitelib}/*

#----------------------------------------------------------------

%prep
%setup -q -n sentry-python-%{version}

%build
%py3_build

%install
%py3_install


%check
%if %{with tests}
export PYTHONDONTWRITEBYTECODE=1
export PYTEST_ADDOPTS="-W ignore::DeprecationWarning"
# do not test integration:
rm -r tests/integrations
# test_transport_works / test_transport_infinite_loop / test_simple_rate_limits/ test_data_category_limits / test_complex_limits_without_data_category stucks

# test_auto_enabling_integrations_catches_import_error asert False where False = ..., not sure
%pytest -k 'not (test_transport_works or test_auto_enabling_integrations_catches_import_error or test_filename or test_transport_infinite_loop or test_simple_rate_limits or test_data_category_limits or test_complex_limits_without_data_category)'
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7455 |21cr|python-serpent-1.41-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  serpent

Name:		python-%{module}
Summary:	Serializer for literal Python expressions
Group:		Development/Python
License:	MIT
Version:	1.41
Release:	1
Source:		https://files.pythonhosted.org/packages/source/s/serpent/%{module}-%{version}.tar.gz
URL:		https://pypi.python.org/pypi/%{module}

BuildArch:	noarch


%description
Serpent is a simple serialization library based on ast.literal_eval.

Because it only serializes literals and recreates the objects using 
ast.literal_eval(), the serialized data is safe to transport to other 
machines (over the network for instance) and de-serialize it there.
#----------------------------------------------------------

%package -n python3-%{module}
Summary:	Serializer for literal Python expressions
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(python-dateutil)
BuildRequires:  python3egg(attrs)
BuildRequires:  python3egg(pytz)

%description -n python3-%{module}
Serpent is a simple serialization library based on ast.literal_eval.

Because it only serializes literals and recreates the objects using 
ast.literal_eval(), the serialized data is safe to transport to other 
machines (over the network for instance) and de-serialize it there.

%files -n python3-%{module}
%doc README.md LICENSE
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/%{module}.py
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info

#----------------------------------------------------------
%prep 
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%check
%py3_test



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7456 |21cr|python-setproctitle-1.1.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	setproctitle

Name:		python-%{module}
Version:	1.1.10
Release:	3
Summary:	A library allowing a process to change its title
License:	BSD
Group:		Development/Python
Url:		https://github.com/dvarrazzo/py-setproctitle/
Source0:	https://pypi.io/packages/source/s/%{module}/%{module}-%{version}.tar.gz

BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python)

%description
The library allows a process to change its title (as displayed by system tools
such as ps and top).
Changing the title is mostly useful in multi-process systems, for example when
a master process is forked: changing the children's title allows to identify
the task each process is busy with.

%files
%doc HISTORY.rst README.rst
%{py_platsitedir}/%{module}.so
%{py_platsitedir}/%{module}-%{version}-py%{py_ver}.egg-info
#--------------------------------------------------------------------
%package -n	python3-%{module}
Summary:	A library allowing a process to change its title
Group:		Development/Python

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n	python3-%{module}
The library allows a process to change its title (as displayed by system tools
such as ps and top).
Changing the title is mostly useful in multi-process systems, for example when
a master process is forked: changing the children's title allows to identify
the task each process is busy with.

This is the Python 3 version of the package.

%files -n python3-%{module}
%doc HISTORY.rst README.rst
%{py3_platsitedir}/%{module}.cpython-3*.so
%{py3_platsitedir}/%{module}-%{version}-py%{py3_ver}.egg-info
#--------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

cp -a . %{py3dir}

%build
%py_build

pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
popd

%py_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7457 |21cr|python-setupdocs-1.0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname SetupDocs

Summary: 	Setuptools extension for building documentation with Sphinx
Name:		python-setupdocs
Version:	1.0.5
Release:	6
Source0:	http://www.enthought.com/repo/ETS/%{tarname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://pypi.python.org/pypi/SetupDocs/
Requires:	python2-sphinx >= 0.4.2
BuildArch:	noarch
Requires:	python2-setuptools
BuildRequires:	python2-setuptools
BuildRequires:	python2-devel

%description
SetupDocs is a setuptools extension that help doc building
automation. It adds two commands to the setup.py command

%package -n python2-setupdocs
%py2_migration_meta python2-setupdocs
Summary: 	Setuptools extension for building documentation with Sphinx

%description -n python2-setupdocs
SetupDocs is a setuptools extension that help doc building
automation. It adds two commands to the setup.py command


%prep
%setup -q -n %{tarname}-%{version}

%build
%__python2 setup.py build

%install
PYTHONDONTWRITEBYTECODE= %__python2 setup.py install --root=%{buildroot}

%files -n python2-setupdocs
%doc *.txt
%py2_puresitedir/%{tarname}*
%py2_puresitedir/setupdocs*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7458 |21cr|python-setuptools-git-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name setuptools-git

Name:           python-%{pypi_name}
Version:        1.2
Release:        2
Summary:        Setuptools revision control system plugin for Git
Source0:        http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:        BSD
Group:          Development/Python
Url:            https://github.com/msabramo/setuptools-git
BuildArch:      noarch
BuildRequires:  pythonegg(setuptools)

%description

This is a plugin for setuptools that enables git integration. Once
installed, Setuptools can be told to include in a package distribution
all the files tracked by git. This is an alternative to explicit
inclusion specifications with ``MANIFEST.in``.

A package distribution here refers to a package that you create using
setup.py, for example::

  $> python2 setup.py sdist
  $> python2 setup.py bdist_rpm
  $> python2 setup.py bdist_egg

This package was formerly known as gitlsfiles. The name change is the
result of an effort by the setuptools plugin developers to provide a
uniform naming convention.

#---------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        Setuptools_git package
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{pypi_name}
This is a plugin for setuptools that enables git integration. Once
installed, Setuptools can be told to include in a package distribution
all the files tracked by git. This is an alternative to explicit
inclusion specifications with `MANIFEST.in`.

%files -n python3-%{pypi_name}
%doc README.rst *.txt
%{py3_puresitedir}/setuptools_git/
%{py3_puresitedir}/setuptools_git-%{version}-py*.egg-info/

#----------------------------------------------------------------
%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        Setuptools revision control system plugin for Git
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)

%description -n python2-%{pypi_name}

This is a plugin for setuptools that enables git integration. Once
installed, Setuptools can be told to include in a package distribution
all the files tracked by git. This is an alternative to explicit
inclusion specifications with ``MANIFEST.in``.

%files -n python2-%{pypi_name}
%doc README.rst
%{py2_puresitedir}/setuptools_git/*.py*
%{py2_puresitedir}/setuptools_git*.egg-info

#-------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

rm -fr *.egg-info


%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7459 |21cr|python-setuptools-git-versioning-1.13.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name setuptools-git-versioning

Summary:	Use git repo data for building a version number according PEP-440
Name:		python-%{pypi_name}
Version:	1.13.5
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://setuptools-git-versioning.readthedocs.io
Source:		%pypi_source
BuildRequires:	python3dist(pip)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(toml)
BuildRequires:	python3dist(wheel)
BuildArch:	noarch

%description
Use git repo data (latest tag, current commit hash, etc) for building
a version number according PEP 440.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Use git repo data for building a version number according PEP-440
Group:		Development/Python

%description -n python3-%{pypi_name}
Use git repo data (latest tag, current commit hash, etc) for building
a version number according PEP 440.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/%{pypi_name}
%{py3_puresitedir}/__pycache__/setuptools_git_versioning.cpython-*
%{py3_puresitedir}/setuptools_git_versioning*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

rm -rf setuptools_git_versioning.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7460 |21cr|python-shadow-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyshadow

Summary:	Python wrapper for shadow password file
Name:		python-shadow
Version:	0.2
Release:	10
License:	GPLv2+
Group:		Development/Python
Url:		http://www.twistedmatrix.com/users/z3p/files/
Source0:	%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python)
Provides:	%{oname} = %{EVRD}

%description
This is a module to allow access to the shadow password file.  It also includes
md5_crypt, which implements the md5_crypt function used to encrypt passwords
in the shadow password file.

%package -n python2-shadow
%py2_migration_meta python2-shadow
Summary:	Python wrapper for shadow password file

%description -n python2-shadow
This is a module to allow access to the shadow password file.  It also includes
md5_crypt, which implements the md5_crypt function used to encrypt passwords
in the shadow password file.

%files -n python2-shadow 
%doc LICENSE README
%{py2_platsitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}
chmod 0644 LICENSE

%build
python2 setup.py build

%install
%{_bindir}/python2 setup.py install --root=%{buildroot} --record %{name}.files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7461 |21cr|python-sherpa-4.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global         module    sherpa

Name:           python-sherpa
Version:        4.14.0
Release:        1
Group:          Sciences/Astronomy
Summary:        Sherpa is a modeling and fitting application
License:        GPLv3
URL:            https://github.com/sherpa/sherpa/
Source0:        https://github.com/sherpa/sherpa/archive/%{version}.tar.gz#/%{module}-%{version}.tar.gz
Patch0:         sherpa-4.14.0-reproducible.patch



%description 
Sherpa is the CIAO modeling and fitting application. It enables the
user to construct complex models from simple definitions and fit those
models to data, using a variety of statistics and optimization method

#---------------------------------------------------------
%package -n python3-sherpa
Summary:        Python3 implementation of Sherpa
Group:          Development/Python
BuildRequires:  flex
BuildRequires:  bison
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-numpy-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(matplotlib)
BuildRequires:  pkgconfig(cfitsio)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  gcc-gfortran
BuildRequires:  gcc-c++

ExcludeArch:    %{ix86}

%description -n python3-sherpa
%{summary}.

%files -n python3-sherpa
%doc LICENSE *.md
%{py3_platsitedir}/*.so
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}-%{version}-*.egg-info
%{_bindir}/*
#---------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
%patch0 -p1
# fix fftw paths
sed -i "s|#fftw=local|fftw=local|" setup.cfg
sed -i "s|#fftw-include[-_]dirs.*$|fftw-include-dirs=%{_includedir}|" setup.cfg
sed -i "s|#fftw-lib-dirs.*$|fftw-lib-dirs=%{_libdir}|" setup.cfg
sed -i "s|#fftw-libraries|fftw-libraries|" setup.cfg

# fix lib suffix
sed -i "s|/lib/|/%{_lib}/|" helpers/sherpa_config.py

# remove env
find . -type f -name "*.py" -print0 | xargs -0 sed -i -e 's/^#!\/usr\/bin\/env python/#!\/usr\/bin\/python3/g'

# Update permissions for debuginfo package
find . -name "*.c" -o -name "*.h" -o -name "*.y" -o -name "*.l" |xargs chmod 0644

%build
cp -r extern extern0
%py3_build
rm -r extern
cp -r extern0 extern


%install
%py3_install
# remove hashbangs from non-exec fies
perl -pi -e "s|/usr/bin/python3||" %{buildroot}%{py3_platsitedir}/sherpa/optmethods/ncoresde.py
perl -pi -e "s|/usr/bin/python3||" %{buildroot}%{py3_platsitedir}/sherpa/optmethods/ncoresnm.py
perl -pi -e "s|/usr/bin/python3||" %{buildroot}%{py3_platsitedir}/sherpa/optmethods/opt.py
perl -pi -e "s|/usr/bin/python3||" %{buildroot}%{py3_platsitedir}/sherpa/utils/akima.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7462 |21cr|python-shortuuid-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	shortuuid

Summary:	Generator library for concise, unambiguous, and URL-safe UUIDs

Name:		python-%{module}
Version:	0.5.0
Release:	1
Source0:	http://pypi.python.org/packages/source/s/shortuuid/shortuuid-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/stochastic-technologies/shortuuid/
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
shortuuid is a simple python2 library that generates concise,
unambiguous, URL-safe UUIDs.

Often, one needs to use non-sequential IDs in places where users will
see them, but the IDs must be as concise and easy to use as
possible. shortuuid solves this problem by generating uuids using
Python's built-in uuid module and then translating them to base57
using lowercase and uppercase letters and digits, and removing
similar-looking characters such as l, 1, I, O and 0.

%package -n python3-%{module}
Summary:	Generator library for concise, unambiguous, and URL-safe UUIDs
BuildRequires:	python3-setuptools

%description -n python3-%{module}
shortuuid is a simple python library that generates concise,
unambiguous, URL-safe UUIDs.

Often, one needs to use non-sequential IDs in places where users will
see them, but the IDs must be as concise and easy to use as
possible. shortuuid solves this problem by generating uuids using
Python's built-in uuid module and then translating them to base57
using lowercase and uppercase letters and digits, and removing
similar-looking characters such as l, 1, I, O and 0.


%prep
%setup -q -n %{module}-%{version}

%build
%__python3 setup.py build

%install
%__python3 setup.py install --root=%{buildroot}

%clean

%files -n python3-%{module}
%{py3_puresitedir}/%{module}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7463 |21cr|python-show-in-file-manager-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name show-in-file-manager

Name:           python-%{pypi_name}
Version:	1.1.4
Release:	1
Summary:        Show in File Manager
Group:          Development/Python
License:        BSD 3-Clause License
URL:            https://pypi.org/project/show-in-file-manager/
Source0:	https://files.pythonhosted.org/packages/57/bb/691e835ebfc5344d41b27108bc54510d2cdbe0148005281fdbee6103b00c/show-in-file-manager-1.1.4.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(d2to1)
BuildRequires:  python3dist(setuptools)

%description
Show in File Manager is a Python package to open the
system file manager and optionally select files in it.
The point is not to open the files, but to select them
in the file manager, thereby highlighting the files and
allowing the user to quickly do something with them.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
Show in File Manager is a Python package to open the
system file manager and optionally select files in it.
The point is not to open the files, but to select them
in the file manager, thereby highlighting the files and
allowing the user to quickly do something with them.

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%license LICENSE
%doc
%{_bindir}/showinfilemanager
%{python3_sitelib}/showinfm/*
%{python3_sitelib}/show_in_file_manager*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7464 |21cr|python-shtab-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name shtab

Summary:	Automagic shell tab completion for Python CLI applications
Name:		python-%{pypi_name}
Version:	1.6.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/iterative/shtab
Source0:	%{pypi_source}
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3dist(pip)
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(pytest-cov)
BuildRequires:	python3dist(pytest-timeout)
BuildRequires:	python3dist(setuptools-scm)
BuildRequires:	python3dist(wheel)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Automatically generate shell tab completion scripts for Python CLI apps.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Automagic shell tab completion for Python CLI applications
Group:		Development/Python

%description -n python3-%{pypi_name}
Automatically generate shell tab completion scripts for Python CLI apps.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
%license LICENCE
%{_bindir}/%{pypi_name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# remove coverage test config
sed -i -e 's/addopts =/#addopts =/' setup.cfg
sed -i "s/setuptools_scm\[toml\]/setuptools_scm/" pyproject.toml setup.cfg

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7465 |21cr|python-simplebayes-1.5.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module simplebayes

Name:           python-%{module}
Version:        1.5.8
Release:        5
Group:          Development/Python
Summary:        Native bayesian text classifier
License:        MIT
URL:            https://github.com/hickeroar/%{module}
Source0:        https://pypi.io/packages/source/s/%{module}/%{module}-%{version}.tar.gz
Patch0:         python-%{module}-1.5.8-mga-setup-encoding.patch

BuildArch:      noarch


%description
This work is heavily inspired by the python "redisbayes"
module found here:
[https://github.com/jart/redisbayes]
and
[https://pypi.python.org/pypi/redisbayes].
#-------------------------------------------------------------

%package -n python3-%{module}
Group:  Development/Python
Summary: A memory-based, optional-persistence naive bayesian text classifier
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)


%description -n python3-%{module}
This work is heavily inspired by the python "redisbayes"
module found here:
[https://github.com/jart/redisbayes] 
and
[https://pypi.python.org/pypi/redisbayes].


%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
%{py3_puresitedir}/%{module}

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
%apply_patches
# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7466 |21cr|python-simpletal-5.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname SimpleTAL

Name:           python-simpletal
Version:        5.1
Release:        5
Summary:        An XML based template processor for TAL, TALES and METAL specifications

Group:          System/Libraries
License:        BSD
URL:            http://www.owlfish.com/software/simpleTAL/index.html
Source0:        http://www.owlfish.com/software/simpleTAL/downloads/SimpleTAL-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel

%description
SimpleTAL is a stand alone Python implementation of the TAL, TALES and METAL 
specifications used in Zope to power HTML and XML templates.

%package -n python3-simpletal
Summary:        An XML based template processor for TAL, TALES and METAL specifications

%description -n python3-simpletal
SimpleTAL is a stand alone Python implementation of the TAL, TALES and METAL 
specifications used in Zope to power HTML and XML templates.

%prep
%setup -q -n %{srcname}-%{version}

%build
CFLAGS="%{optflags}" python3 setup.py build


%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%files -n python-simpletal
%doc Changes.txt LICENSE.txt README.txt examples/
%{py3_puresitedir}/simpletal
%{py3_puresitedir}/SimpleTAL-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7467 |21cr|python-single-version-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name single_version

Name:           python-single-version
Version:        1.6.0
Release:        1
Summary:        Have a single source of version in your code base
Group:          Development/Python
License:        MIT
URL:            https://github.com/hongquan/single-version
Source0:        %{pypi_source}
BuildRequires:  python3-devel
BuildRequires:  python3-pip
BuildRequires:  python3-poetry-core
BuildRequires:  python3-wheel
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%description
Utility to let you have a single source of version in your code base.

#------------------------------------------------------------------

%package -n python3-single-version
Summary:	%{summary}
Group:		Development/Python

%description -n python3-single-version
Utility to let you have a single source of version in your code base.

%files -n python3-single-version
%doc README.rst
%license LICENSE
%{python3_sitelib}/single_version
%{python3_sitelib}/single_version-%{version}*.dist-info
#------------------------------------------------------------------

%prep
%autosetup -p1 -n single_version-%{version}

%build
%pyproject_wheel

%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7468 |21cr|python-sleekxmpp-1.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   sleekxmpp

Name:           python-%{oname}
Version:        1.3.3
Release:        2
Summary:        SleekXMPP is an elegant Python library for XMPP (aka Jabber, Google Talk, etc)
Source0:        http://pypi.python.org/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz
License:        MIT
Group:          Development/Python
Url:            http://github.com/fritzy/SleekXMPP
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)

%description
SleekXMPP is an MIT licensed XMPP library for Python 2.6/3.1+,
and is featured in examples in
`XMPP: The Definitive Guide <http://oreilly.com/catalog/9780596521271>`_
by Kevin Smith, Remko Tronçon, and Peter Saint-Andre. If you've arrived
here from reading the Definitive Guide, please see the notes on updating
the examples to the latest version of SleekXMPP.

SleekXMPP's design goals and philosphy are:

**Low number of dependencies**
    Installing and using SleekXMPP should be as simple as possible, without
    having to deal with long dependency chains.

    As part of reducing the number of dependencies, some third party
    modules are included with SleekXMPP in the ``thirdparty`` directory.
    Imports from this module first try to import an existing installed
    version before loading the packaged version, when possible.

**Every XEP as a plugin**
    Following Python's "batteries included" approach, the goal is to
    provide support for all currently active XEPs (final and draft). Since
    adding XEP support is done through easy to create plugins, the hope is
    to also provide a solid base for implementing and creating experimental
    XEPs.

**Rewarding to work with**
    As much as possible, SleekXMPP should allow things to "just work" using
    sensible defaults and appropriate abstractions. XML can be ugly to work
    with, but it doesn't have to be that way.

%package -n python3-%{oname}
Summary:        SleekXMPP is an elegant Python library for XMPP (aka Jabber, Google Talk, etc)

%description -n python3-%{oname}
SleekXMPP is an MIT licensed XMPP library for Python 2.6/3.1+,
and is featured in examples in
`XMPP: The Definitive Guide <http://oreilly.com/catalog/9780596521271>`_
by Kevin Smith, Remko Tronçon, and Peter Saint-Andre. If you've arrived
here from reading the Definitive Guide, please see the notes on updating
the examples to the latest version of SleekXMPP.

SleekXMPP's design goals and philosphy are:

**Low number of dependencies**
    Installing and using SleekXMPP should be as simple as possible, without
    having to deal with long dependency chains.

    As part of reducing the number of dependencies, some third party
    modules are included with SleekXMPP in the ``thirdparty`` directory.
    Imports from this module first try to import an existing installed
    version before loading the packaged version, when possible.

**Every XEP as a plugin**
    Following Python's "batteries included" approach, the goal is to
    provide support for all currently active XEPs (final and draft). Since
    adding XEP support is done through easy to create plugins, the hope is
    to also provide a solid base for implementing and creating experimental
    XEPs.

**Rewarding to work with**
    As much as possible, SleekXMPP should allow things to "just work" using
    sensible defaults and appropriate abstractions. XML can be ugly to work
    with, but it doesn't have to be that way.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/sleekxmpp/
%{py3_puresitedir}/sleekxmpp*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7469 |21cr|python-slimit-0.8.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name slimit

Name:           python-%{pypi_name}
Version:        0.8.1
Release:        11
Group:          Development/Python
Summary:        SlimIt - JavaScript minifier

License:        MIT
URL:            http://pypi.python.org/pypi/%{pypi_name}
Source0:        http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.zip
BuildArch:      noarch

Requires:       %{pypi_name} = %{EVRD}

%description
SlimIt - JavaScript minifier.

%package -n %{pypi_name}
Summary:        SlimIt - JavaScript minifier
Group:          Development/Python
Requires:       python3-%{pypi_name}

%description -n %{pypi_name}
SlimIt - JavaScript minifier.

%package -n python3-%{pypi_name}
Summary:        SlimIt - JavaScript minifier
Group:          Development/Python

Requires:       %{pypi_name} = %{EVRD}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
SlimIt - JavaScript minifier.

%prep
%setup -q -n %{pypi_name}-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

%files -n %{pypi_name}
%{_bindir}/%{pypi_name}

%files -n python3-%{pypi_name}
%doc CHANGES README.rst
%{py3_puresitedir}/%{pypi_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7470 |21cr|python-sloq-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	sloq

Summary: 	Rate-limited Queue
Name: 	 	python-%{module}
Version: 	0.2
Release: 	1
Source:         %{module}-%{version}.tar.gz
URL:		https://pypi.org/project/sloq
License:	Apache License
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
A slower queue implementation, guaranteeing that tasks are processsed at a
maximum rate.

#---------------------------------------------------------------------------
%package     -n python3-%{module}
Summary:        Rate-limited Queue

%description -n python3-%{module}
A slower queue implementation, guaranteeing that tasks are processsed at a
maximum rate.

%files -n python3-%{module}
%{python3_sitelib}/*

#---------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7471 |21cr|python-smmap2-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module smmap2

Name:           python-%{module}
Version:        3.0.1
Release:        1
Summary:        A pure python implementation of a sliding window memory map manager
Group:          Development/Python
License:        BSD
URL:            https://github.com/Byron/smmap
Source0:        https://files.pythonhosted.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch


%description
smmap is a pure python implementation of a sliding memory map to help unifying
memory mapped access on 32 and 64 bit systems and to help managing resources
more efficiently.
#----------------------------------------------------

%package -n     python3-%{module}
Summary:        %{summary}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(nosexcover)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(coverage)



%description -n python3-%{module}
smmap is a pure python implementation of a sliding memory map to help unifying
memory mapped access on 32 and 64 bit systems and to help managing resources
more efficiently.


%files -n python3-%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
#----------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# Remove bundled egg-info
rm -rf %{module}.egg-info


%build
%py3_build


%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7472 |21cr|python-smmap-3.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name smmap

Name:		python-%{upstream_name}
Version:	3.0.4
Release:	1
Summary: 	A pure git implementation of a sliding window memory map manager
License:	BSD
Group: 		Development/Python
Url: 		https://pypi.python.org/pypi/smmap
Source0: 	https://pypi.io/packages/source/s/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
BuildArch:      noarch

%description
When reading from many possibly large files in a fashion similar to random
access, it is usually the fastest and most efficient to use memory maps.

#--------------------------------------------------------------------------------
%package -n python3-%{upstream_name}
Summary: 	A pure git implementation of a sliding window memory map manager
Group: 		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{upstream_name}
When reading from many possibly large files in a fashion similar to random
access, it is usually the fastest and most efficient to use memory maps.

%files -n python3-%{upstream_name}
%doc PKG-INFO
%{python3_sitelib}/smmap
%{python3_sitelib}/smmap-%{version}-py*.egg-info

#--------------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7473 |21cr|python-socketio-5.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Sphinx-generated HTML documentation is not suitable for packaging; see
# https://bugzilla.redhat.com/show_bug.cgi?id=2006555 for discussion.
#
# We can generate PDF documentation as a substitute.
%bcond_with doc_pdf

Name:           python-socketio
Version:        5.7.1
Release:        1
Summary:        Socket.IO server
Group:          Development/Python
License:        MIT
URL:            https://github.com/miguelgrinberg/python-socketio
Source0:        %{url}/archive/v%{version}/python-socketio-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# Documentation
%if %{with doc_pdf}
BuildRequires:  make
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3-sphinx-latex
BuildRequires:  latexmk
%endif

# Extra testing dependencies
BuildRequires:  python3dist(pytest)

%global common_description %{expand:
Socket.IO is a transport protocol that enables real-time bidirectional
event-based communication between clients (typically, though not always, web
browsers) and a server. The official implementations of the client and server
components are written in JavaScript. This package provides Python
implementations of both, each with standard and asyncio variants.}

%description %{common_description}

#---------------------------------------------------------
%package -n     python3-socketio
Summary:        %{summary}
Group:          Development/Python

%description -n python3-socketio %{common_description}


%pyproject_extras_subpkg -n python3-socketio client asyncio_client

%files -n python3-socketio -f %{pyproject_files}

#---------------------------------------------------------

%package        doc
Summary:        Documentation for python-socketio
Group:          Documentation

%description    doc %{common_description}

%files doc
%license LICENSE
%doc CHANGES.md
%doc README.md
%doc SECURITY.md
%if %{with doc_pdf}
%doc docs/_build/latex/python-socketio.pdf
%endif
%doc examples

#---------------------------------------------------------

%prep
%autosetup
# Fix “/usr/bin/env python” shebangs in the examples
%py3_shebang_fix examples


%generate_buildrequires
%pyproject_buildrequires -x client,asyncio_client -t


%build
%pyproject_wheel
%if %{with doc_pdf}
PYTHONPATH="${PWD}/src" %make_build -C docs latex SPHINXOPTS='%{?_smp_mflags}'
%make_build -C docs/_build/latex LATEXMKOPTS='-quiet'
%endif


%install
%pyproject_install
%pyproject_save_files socketio


%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7474 |21cr|python-socketpool-0.5.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname socketpool

Name:           python-%{oname}
Version:        0.5.3
Release:        4
Summary:        A simple Python socket pool
Group:		    Development/Python
License:        Public Domain or MIT
URL:            https://github.com/benoitc/%{oname}
Source0:        http://pypi.python.org/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz

BuildRequires:  pkgconfig(python)
BuildRequires:  pythonegg(setuptools)

BuildArch:      noarch

%description
Socket pool is a simple socket pool that supports multiple factories and
backends. It can easily be used by gevent, eventlet or any other library.

%package -n python2-%{oname}
Summary:        A simple Python socket pool

%description -n python2-%{oname}
Socket pool is a simple socket pool that supports multiple factories and
backends. It can easily be used by gevent, eventlet or any other library.


%prep
%setup -qn %{oname}-%{version}
rm -rf %{oname}.egg-info

%build
python2 setup.py build


%install
python2 setup.py install -O1 --skip-build --root %{buildroot} --install-data %{_docdir}
mv examples %{buildroot}%{_docdir}/%{oname}/


%files -n python2-%{oname}
%doc %{_docdir}/%{oname}
%{py2_puresitedir}/%{oname}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7475 |21cr|python-socks-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name socks

Name:           python-%{pypi_name}
Version:        2.0.3
Release:        1
Summary:        Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python
Group:          Development/Python
License:        Apache 2
URL:            https://github.com/romis2012/python-socks
Source:         https://pypi.io/packages/source/p/%{name}/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)

BuildArch:      noarch

%description
The python-socks package provides a core proxy client functionality for Python. 
Supports SOCKS4(a), SOCKS5, HTTP (tunneling) proxy and provides sync and async (asyncio, trio, curio) APIs. 
You probably don't need to use python-socks directly. It is used internally by aiohttp-socks and httpx-socks packages.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Core proxy (SOCKS4, SOCKS5, HTTP tunneling) functionality for Python
Group:          Development/Python

%description -n python3-%{pypi_name}
The python-socks package provides a core proxy client functionality for Python. 
Supports SOCKS4(a), SOCKS5, HTTP (tunneling) proxy and provides sync and async (asyncio, trio, curio) APIs. 
You probably don't need to use python-socks directly. It is used internally by aiohttp-socks and httpx-socks packages.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.md
%{python3_sitelib}/python_socks/
%{python3_sitelib}/python_socks-*.egg-info/

#----------------------------------------------------------------------------

%prep
%autosetup
rm -vrf *.egg-info
sed -i -e 's/\r//' README.md

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7476 |21cr|python-sounddevice-0.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name sounddevice

Name:           python-sounddevice
Version:        0.4.5
Release:        1
Summary:        Module to play and record sound with Python
Group:          Development/Python
License:        MIT
URL:            https://python-sounddevice.readthedocs.io/
Source0:        https://files.pythonhosted.org/packages/source/s/sounddevice/sounddevice-%{version}.tar.gz
BuildRequires:  python3egg(cffi)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(portaudio-2.0)
BuildRequires:  fdupes
BuildArch:      noarch

%description
This Python module provides bindings for the PortAudio library and a few
convenience functions to play and record NumPy arrays containing audio signals.

#--------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Module to play and record sound with Python
Group:          Development/Python
Requires:       libportaudio2
Requires:       python3-cffi >= 1.0
Recommends:     python3-numpy

%description -n python3-%{pypi_name}
This Python module provides bindings for the PortAudio library and a few
convenience functions to play and record NumPy arrays containing audio signals.

%files -n python3-%{pypi_name}
%doc NEWS.rst README.rst examples
%license LICENSE
%{python3_sitelib}/*

#--------------------------------------------------------------------------

%prep
%setup -q -n sounddevice-%{version}

%build
chmod 644 examples/*
%py3_build

%install
%py3_install
fdupes %{buildroot}%{python3_sitelib}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7477 |21cr|python-soupsieve-1.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name soupsieve
%global with_tests 0

Name:           python-%{pypi_name}
Version:        1.9.1
Release:        2
Summary:        A modern CSS selector implementation for Beautiful Soup
Group:          Development/Python
License:        MIT
URL:            https://github.com/facelessuser/soupsieve
Source0:        %{pypi_name}-%{version}.tar.gz
BuildRequires:  python2-devel
BuildRequires:  python3-devel
BuildRequires:  pythonegg(setuptools)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%global _description \
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. \
It aims to provide selecting, matching, and filtering using modern CSS \
selectors. Soup Sieve currently provides selectors from the CSS level 1 \
specifications up through the latest CSS level 4 drafts and beyond (though \
some are not yet implemented). \
\
Soup Sieve was written with the intent to replace Beautiful Soup's builtin \
select feature, and as of Beautiful Soup version 4.7.0, it now is good. \
Soup Sieve can also be imported in order to use its API directly for more \
controlled, specialized parsing. \
\
Soup Sieve has implemented most of the CSS selectors up through the latest CSS \
draft specifications, though there are a number that don't make sense in a \
non-browser environment. Selectors that cannot provide meaningful functionality \
simply do not match anything.

%description
%_description

#----------------------------------------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        %{summary}
 
%description -n python3-%{pypi_name}
%_description

%files -n python3-%{pypi_name}
%doc LICENSE.md README.md docs/src/markdown/about/license.md
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------------

%package -n     python2-%{pypi_name}
Summary:        %{summary}
 
%description -n python2-%{pypi_name}
%_description

%files -n python2-%{pypi_name}
%doc LICENSE.md README.md docs/src/markdown/about/license.md
%{py2_puresitedir}/%{pypi_name}
%{py2_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

%if %with_tests
%check
python3 setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7478 |21cr|python-speaklater-1.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tarName speaklater

Name:           python-%{tarName}
Version:        1.3
Release:        11
Summary:        Implements a lazy string for python useful for use with gettext
Group:          Development/Python
License:        BSD
URL:            https://pypi.org/project/speaklater/
Source0:        http://pypi.python.org/packages/source/s/%{tarName}/%{tarName}-%{version}.tar.gz
# Submitted upstream at: https://github.com/mitsuhiko/speaklater/pull/8
# Alternative approach at https://github.com/mitsuhiko/speaklater/pull/3
Patch0:         0001-Enable-building-on-python3-along-with-changes-to-doc.patch

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
A module that provides lazy strings for translations. Basically you get an
object that appears to be a string but changes the value every time the value
is evaluated based on a callable you provide.

%package -n python3-speaklater
Summary: Implements a lazy string for python3 useful for gettext
Group:   Development/Python

%description -n python3-speaklater
A module that provides lazy strings for translations. Basically you get an
object that appears to be a string but changes the value every time the value
is evaluated based on a callable you provide.

This package provides the python3 version of the module.

%prep
%setup -qn %{tarName}-%{version}
%autopatch -p1

%build
%py3_build

%install
%py3_install

%check
pushd build/lib
python3 -m doctest speaklater.py
popd

%files -n python3-speaklater
%{py3_puresitedir}/speaklater*
%{py3_puresitedir}/__pycache__/*
%doc LICENSE
%doc PKG-INFO README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7479 |21cr|python-sphinxcontrib-asyncio-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-asyncio

Name:           python-%{pypi_name}
Version:        0.3.0
Release:        1
Summary:        Sphinx extension to support coroutines in markup
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/aio-libs/sphinxcontrib-asyncio
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
Sphinx extension for adding asyncio-specific markups.

#----------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
Sphinx extension for adding asyncio-specific markups.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_asyncio-%{version}-py*.egg-info

#----------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7480 |21cr|python-sphinxcontrib-github-alt-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name sphinxcontrib_github_alt

Name:           python-sphinxcontrib-github-alt
Version:        1.2
Release:        1
Summary:        Link to GitHub issues, pull requests, commits and users from Sphinx docs
Group:          Development/Python
License:        BSD
URL:            https://github.com/jupyter/sphinxcontrib_github_alt
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-pip
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3-flit
# for flit to analyze the README:
BuildRequires:  python3-pygments

%global _description \
Link to GitHub issues, pull requests, commits and users for a particular \
project. \
It's called 'alt' because sphinxcontrib-github already exists. IPython & \
Jupyter projects have been using the syntax defined in this extension for \
some time before we made it into its own package, so we didn't want to \
switch to sphinxcontrib-github.

%description %_description

#------------------------------------------------------------
%package -n     python3-sphinxcontrib-github-alt
Summary:        %{summary}
Group:          Development/Python
Provides:       python3-sphinxcontrib_github_alt = %{EVRD}

%description -n python3-sphinxcontrib-github-alt

%_description

%files -n python3-sphinxcontrib-github-alt
%doc README.rst
%license COPYING.md
%{python3_sitelib}/sphinxcontrib_github_alt-%{version}.dist-info/
%{python3_sitelib}/sphinxcontrib_github_alt.py
%{python3_sitelib}/__pycache__/sphinxcontrib_github_alt*

#------------------------------------------------------------

%prep
%autosetup -n sphinxcontrib_github_alt-%{version}


%build
# this package has no setup.py, it uses flit
export FLIT_NO_NETWORK=1
flit build --format wheel


%install
# We install the wheel created at %%build
%py3_install_wheel sphinxcontrib_github_alt-%{version}-py2.py3-none-any.whl 


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7481 |21cr|python-sphinxcontrib-issuetracker-0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	sphinxcontrib-issuetracker

Summary:	Sphinx integration with different issuetrackers
Name:		python-%{pypi_name}
Version:	0.11
Release:	1
Group:		Development/Python
License:	BSD
Url:		http://packages.python.org/sphinxcontrib-issuetracker
Source0:	https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
This Sphinx 1.0 extension parses textual issue references like "#10" 
and turns them into an issue tracker.

#------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Sphinx integration with different issuetrackers
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-lxml
Requires:	python3-sphinx
Requires:	python3-lxml

%description -n python3-%{pypi_name}
This Sphinx 1.0 extension parses textual issue references like "#10" 
and turns them into an issue tracker.

%files -n python3-%{pypi_name}
%doc CHANGES.rst README*
%{py3_puresitedir}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
#PYTHONDONTWRITEBYTECODE= %__python2 setup.py install --root=%{buildroot}
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7482 |21cr|python-sphinx-design-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name sphinx_design

Name:           python-sphinx-design
Version:        0.1.0
Release:        1
Summary:        Sphinx extension for responsive web components
Group:          Development/Python

# This project is MIT, but bundles JSON glyphs
# - sphinx_design/compiled/material* is Apache-2.0
# - sphinx_design/compiled/octicon* is MIT
License:        MIT AND Apache-2.0
URL:            https://github.com/executablebooks/sphinx-design
Source0:        %{url}/archive/v%{version}/sphinx-design-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-myst-parser
BuildRequires:  pyproject-rpm-macros

# The Fedora package does not contain JSON glyphs
Provides:       bundled(material-icons-fonts) = 4.0.0.c9e5528

# Octicons is not available from Fedora
# The upstream release tarball does not contain JSON glyphs
Provides:       bundled(octicons) = 16.1.1

%global _description %{expand:
This package contains a Sphinx extension for designing beautiful, view
size responsive web components.}

%description %_description

#----------------------------------------------------------

%package     -n python3-sphinx-design
Summary:        Sphinx extension for responsive web components
Group:          Development/Python

%description -n python3-sphinx-design %_description

%files -n python3-sphinx-design -f %{pyproject_files}
%doc CHANGELOG.md README.md
%license LICENSE
%license sphinx_design/compiled/material-icons_LICENSE
%license sphinx_design/compiled/octicon_LICENSE

#----------------------------------------------------------

%package        doc
Summary:        Documentation for %{name}
# This project is MIT.  The Javascript and CSS bundled with the documentation
# has the following licenses:
# - searchindex.js: MIT
# - _static/alabaster.css: BSD-3-Clause
# - _static/basic.css: BSD-2-Clause
# - _static/doctools.js: BSD-2-Clause
# - _static/jquery*.js: MIT
# - _static/language_data.js: BSD-2-Clause
# - _static/pygments.css: BSD-2-Clause
# - _static/searchtools.js: BSD-2-Clause
# - _static/underscore*.js: MIT
License:        MIT AND BSD-2-Clause AND BSD-3-Clause

%description    doc
Documentation for %{name}.

%files doc
%doc html
%license LICENSE

#----------------------------------------------------------
%prep
%autosetup -p1 -n sphinx-design-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

# Build documentation
PYTHONPATH=$PWD sphinx-build -b html docs html
rm -rf html/{.buildinfo,.doctrees}

%install
%pyproject_install
%pyproject_save_files sphinx_design

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7483 |21cr|python-sphinx-issues-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module sphinx-issues

Summary:	A Sphinx extension for linking to your project’s issue tracker.
Name:		python-%{module}
Version:	1.2.0
Release:	2
License:	BSD
Group:		Development/Python
Url:		https://github.com/sloria/sphinx-issues
Source0:	https://files.pythonhosted.org/packages/ae/0a/933847eed21964b5ab13836e90ea445a95915eaf222d45489c84e18afa07/sphinx-issues-1.2.0.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
Provides:	pythonegg(sphinx-issues)
Provides:	pythonegg(sphinx_issues)
BuildArch:	noarch

%description
A Sphinx extension for linking to your project’s issue tracker. Includes roles 
for linking to issues, pull requests, user profiles, with built-in support for 
GitHub (though this works with other services).

#----------------------------------------------------------------------------

%package -n python2-%{module}
Summary:	A Sphinx extension for linking to your project’s issue tracker.
Group:		Development/Python

%description -n python2-%{module}
A Sphinx extension for linking to your project’s issue tracker. Includes roles
for linking to issues, pull requests, user profiles, with built-in support for
GitHub (though this works with other services).

%files -n python2-%{module}
%doc python2/LICENSE python2/README.rst
%{python2_sitelib}/*.egg-info/*
%{python2_sitelib}/sphinx_*.py*
%{python3_sitelib}/__pycache__/*

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A Sphinx extension for linking to your project’s issue tracker.
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Provides:	python3egg(sphinx-issues)
Provides:	python3egg(sphinx_issues)


%description -n python3-%{module}
A Sphinx extension for linking to your project’s issue tracker. Includes roles
for linking to issues, pull requests, user profiles, with built-in support for
GitHub (though this works with other services).

%files -n python3-%{module}
%doc python3/LICENSE python3/README.rst
%{python3_sitelib}/*.egg-info/*
%{python3_sitelib}/sphinx_*.py*
%{python3_sitelib}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%setup -qc -n %{module}-%{version}
mv %{module}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python3
%py3_install
popd

pushd python2
%py2_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7484 |21cr|python-sphinx-panels-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinx-panels

Name:           python-%{pypi_name}
Version:        0.6.0
Release:        1
Summary:        Sphinx extension for creating panels in a grid layout
Group:          Development/Python
License:        MIT
URL:            https://github.com/executablebooks/sphinx-panels
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-pytest
BuildRequires:  pyproject-rpm-macros

%description
A sphinx extension for creating document components optimized for HTML+CSS.

- The panels directive creates panels of content in a grid layout, utilizing
  both the Bootstrap 4 grid system, and cards layout.
- The link-button directive creates a click-able button, linking to a URL or
  reference, and can also be used to make an entire panel click-able.
- The dropdown directive creates toggle-able content.
- The tabbed directive creates tabbed content.
- opticon and fa (fontawesome) roles allow for inline icons to be added.

#---------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
A sphinx extension for creating document components optimized for HTML+CSS.

- The panels directive creates panels of content in a grid layout, utilizing
  both the Bootstrap 4 grid system, and cards layout.
- The link-button directive creates a click-able button, linking to a URL or
  reference, and can also be used to make an entire panel click-able.
- The dropdown directive creates toggle-able content.
- The tabbed directive creates tabbed content.
- opticon and fa (fontawesome) roles allow for inline icons to be added.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md

#---------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files sphinx_panels



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7485 |21cr|python-sphinx-pytest-0.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name sphinx_pytest

Name:           python-sphinx-pytest
Version:        0.0.5
Release:        1
Summary:        Helpful pytest fixtures for sphinx extensions
Group:          Development/Python
License:        MIT
URL:            https://github.com/chrisjsewell/sphinx-pytest
Source:         %{pypi_source}

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%global _description %{expand:
Helpful pytest fixtures for sphinx extensions.
This extension provides pytest fixtures to "simulate" converting
some source text to docutils AST at different stages; before transforms,
after transforms, etc.}


%description %_description

#--------------------------------------------------------------
%package -n     python3-sphinx-pytest
Summary:        %{summary}
Group:          Development/Python

%description -n python3-sphinx-pytest %_description

%files -n python3-sphinx-pytest -f %{pyproject_files}
%license LICENSE
%doc README.md

#--------------------------------------------------------------
%prep
%autosetup -p1 -n sphinx_pytest-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files sphinx_pytest


%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7486 |21cr|python-spyder-kernels-2.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name spyder-kernels

Name:           python-%{pypi_name}
Version:        2.4.3
Release:        1
Summary:        Jupyter kernels for the Spyder console
Group:          Development/Python
License:        MIT
URL:            https://github.com/spyder-ide/spyder-kernels
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(cloudpickle)
BuildRequires:  python3dist(ipykernel)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(wurlitzer)

%description
This package provides jupyter kernels used by spyder on its IPython console.

#-------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

Requires:       python3dist(cloudpickle)
Requires:       python3dist(ipykernel)
Requires:       python3dist(jupyter-client)
Requires:       python3dist(pyzmq)
Requires:       python3dist(wurlitzer)

%description -n python3-%{pypi_name}
This package provides python3 version of jupyter kernels used by spyder on its
 IPython console.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.md
%{python3_sitelib}/spyder_kernels
%{python3_sitelib}/spyder_kernels-%{version}-py*.egg-info

#-------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}


%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7487 |21cr|python-sql-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global sum Python library to write SQL queries
%global module_name sql

Name:           python-%{module_name}
Version:        1.3.0
Release:        1
Summary:        %{sum}
Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/%{name}
Source0:        https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
%{name} is a library to write SQL queries in a pythonic way.

#------------------------------------------------------------
%package -n python3-%{module_name}
Summary:        %{sum}
Group:          Development/Python

%description -n python3-%{module_name}
%{name} is a library to write SQL queries in a pythonic way.

%files -n python3-%{module_name}
%doc {CHANGELOG,README}
%{python3_sitelib}/*
%exclude %{python3_sitelib}/*/tests

#------------------------------------------------------------

%prep
%setup -q

# remove upstream egg-info
rm -rf */*.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7488 |21cr|python-sqlalchemy-migrate-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module sqlalchemy-migrate


Summary:        Database schema migration for SQLAlchemy
Name:           python-%{module}
Version:        0.13.0
Release:        1
Group:          Development/Python
License:        MIT
Url:            http://pypi.python.org/pypi/%{module}
Source:         https://files.pythonhosted.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(sqlalchemy)
BuildRequires:  python3egg(wheel)
BuildRequires:  python3egg(pbr)
BuildRequires:  python3egg(tempita)
BuildRequires:  python3egg(decorator)
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(sqlparse)
BuildRequires:  python3egg(pylint)
BuildRequires:  python3egg(scripttest)


Provides:       python3-%{module} == %{EVRD}

BuildArch:      noarch

%description
Inspired by Ruby on Rails' migrations, Migrate provides a way to deal with
database schema changes in SQLAlchemy projects.

Migrate extends SQLAlchemy to have database changeset handling. It provides a
database change repository mechanism which can be used from the command line as
well as from inside python2 code.


%files
%doc README.rst COPYING
%{_bindir}/migrate*
%{py3_puresitedir}/sqlalchemy_migrate-*
%{py3_puresitedir}/migrate
#--------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -fr *.egg-info

# Remove shebang from non-executable scripts
find . -type f -name "*.py" -o -name "*.py_tmpl" | xargs sed -i "/#!/d"


%build
%py3_build


%install
%py3_install

find %{buildroot} -type f -empty -delete



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7489 |21cr|python-sqlite-2.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pysqlite
# private-shared-object-provides
%define _use_internal_dependency_generator 0 

Name:		python-sqlite
Version:	2.8.3
Release:	1
License:	GPL
Group:		Development/Python
Summary:	Python bindings for sqlite
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Url:		https://pysqlite.sourceforge.net/
BuildRequires: pkgconfig(python2) 
BuildRequires: pkgconfig(sqlite3)

%description
This packages allows you to use sqlite with python.
sqliite is a simple database engine.

%package -n python2-sqlite
%py2_migration_meta python2-sqlite
Summary:	Python bindings for sqlite
Group:		Development/Python

%description -n python2-sqlite
This packages allows you to use sqlite with python.
sqliite is a simple database engine.


%prep
%setup -q -n %{pypi_name}-%{version}

rm -f doc/rest/.*swp
for i in doc; do
	find $i -name CVS -type d | xargs rm -Rf 
done;

%build
%py2_build

%install
%py2_install

%check
python2 ./setup.py check

rm -r %{buildroot}%{_prefix}/pysqlite2-doc

%files -n python2-sqlite
%doc  LICENSE doc
%py2_platsitedir/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7490 |21cr|python-sqlobject-3.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		python-sqlobject
Version:	3.10.0
Release:	1
Summary:	Object-Relational Manager, aka database wrapper for python
Group:		Development/Python
URL:		https://sqlobject.org/
Source0:	https://files.pythonhosted.org/packages/96/5b/a2aaaed1d8c42c9c58ddafa413fa5061e81bc68e6ef163faa679253c1034/SQLObject-3.10.0.tar.gz
License:	LGPL
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
Classes created using SQLObject wrap database rows, presenting a
friendly-looking Python object instead of a database/SQL interface.
Emphasizes convenience.  Works with MySQL, PostgreSQL, SQLite, Firebird.

#-----------------------------------------------------------------------
%package -n python3-sqlobject
Summary:	Object-Relational Manager, aka database wrapper for python
Group:		Development/Python

%description -n python3-sqlobject
Classes created using SQLObject wrap database rows, presenting a
friendly-looking Python object instead of a database/SQL interface.
Emphasizes convenience.  Works with MySQL, PostgreSQL, SQLite, Firebird.

%files -n python3-sqlobject
%doc docs
%{py3_puresitedir}/*
%{_bindir}/*

#-----------------------------------------------------------------------

%prep
%setup -n SQLObject-%{version} -q

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7491 |21cr|python-sqlparse-0.1.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name sqlparse

Name:           python-sqlparse
Version:        0.1.16
Release:        3
Group:          Development/Python
Summary:        Non-validating SQL parser

License:        BSD
URL:            https://github.com/andialbrecht/sqlparse
Source0:        https://pypi.python.org/packages/source/s/sqlparse/sqlparse-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python-devel
BuildRequires:  python-sphinx
BuildRequires:  python-setuptools
 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools


%description
``sqlparse`` is a non-validating SQL parser module.
It provides support for
parsing, splitting and formatting SQL statements.


%package -n     python3-%{pypi_name}
Summary:        Non-validating SQL parser
Group:          Development/Python


%description -n python3-%{pypi_name}
``sqlparse`` is a non-validating SQL parser module.
It provides support for
parsing, splitting and formatting SQL statements.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# generate html docs 
sphinx-build docs/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build
python2 setup.py build

pushd %{py3dir}
python3 setup.py build
popd


%install
pushd %{py3dir}
python3 setup.py install --skip-build --root %{buildroot}
mv %{buildroot}%{_bindir}/sqlformat %{buildroot}/%{_bindir}/python3-sqlformat
popd

python2 setup.py install --skip-build --root %{buildroot}


%files
%doc html README.rst
%{_bindir}/sqlformat
%{py_puresitedir}/%{pypi_name}
%{py_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info


%files -n python3-%{pypi_name}
%doc html README.rst
%{_bindir}/python3-sqlformat
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7492 |21cr|python-sshtunnel-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sshtunnel

%bcond_with  tests

Name:           python-%{pypi_name}
Version:        0.4.0
Release:        1
Summary:        Pure python SSH tunnels
Group:          Development/Python
License:        MIT
URL:            https://github.com/pahaz/sshtunnel
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%if %{with tests}
BuildRequires:  openssh-clients
BuildRequires:  python3-pytest
%endif

%description
Pure python SSH tunnels

#--------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Obsoletes:      python3-azure-sdk < 5.0.1

%description -n python3-%{pypi_name}
Pure python SSH tunnels

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
%{_bindir}/sshtunnel

#--------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}

# Remove the python shebang from non-executable files.
sed -i '1{\@^#!/usr/bin/env python@d}' sshtunnel.py

# Update tests to import the built-in mock.
sed -i 's/^import mock/from unittest import mock/' tests/*.py


%build
%pyproject_wheel


%generate_buildrequires
%pyproject_buildrequires -r


%install
%pyproject_install
%pyproject_save_files sshtunnel


%if %{with tests}
%check
%pytest
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7493 |21cr|python-ssl-opt-out-0.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   ssl-opt-out

Name:           python-%{oname}
Version:        0.9.1
Release:        2
Summary:        Opt-out of Python SSL certificate verification
Source0:        http://pypi.python.org/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz
License:        BSD
Group:          Development/Python
Url:            https://github.com/cchurch/ssl-opt-out
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3-devel

%description
SSL Opt-Out
===========

**Don't install this package. Ever. Fix your code to explicitly verify
or ignore SSL certificates.**

If you're still reading, installing this package will opt out of *ALL*
SSL certificate verification added in Python 2.7.9 and Python 3.4 and
later via
`PEP-0476 <https://www.python.org/dev/peps/pep-0476/#opting-out>`__.
This approach can serve as a quick workaround when it is not reasonable
to modify existing code or third party libraries.

%package -n python3-%{oname}
Summary:        Opt-out of Python SSL certificate verification

%description -n python3-%{oname}
SSL Opt-Out
===========

**Don't install this package. Ever. Fix your code to explicitly verify
or ignore SSL certificates.**

If you're still reading, installing this package will opt out of *ALL*
SSL certificate verification added in Python 2.7.9 and Python 3.4 and
later via
`PEP-0476 <https://www.python.org/dev/peps/pep-0476/#opting-out>`__.
This approach can serve as a quick workaround when it is not reasonable
to modify existing code or third party libraries.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%doc README.rst
%{py3_puresitedir}/ssl_opt_out*
%{py3_puresitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7494 |21cr|python-starlette-0.20.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name starlette

Name:           python-%{pypi_name}
Version:        0.20.4
Release:        2
Summary:        The little ASGI library that shines
Group:          Development/Python
License:        BSD
URL:            https://www.starlette.io/
Source0:        https://github.com/encode/starlette/archive/%{version}/starlette-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)

%description
Starlette is a lightweight ASGI framework/toolkit, which is ideal for building
async web services in Python.

It is production-ready, and gives you the following:

  • A lightweight, low-complexity HTTP web framework.
  • WebSocket support.
  • In-process background tasks.
  • Startup and shutdown events.
  • Test client built on requests.
  • CORS, GZip, Static Files, Streaming responses.
  • Session and Cookie support.
  • 100%% test coverage.
  • 100%% type annotated codebase.
  • Few hard dependencies.
  • Compatible with asyncio and trio backends.
  • Great overall performance against independant benchmarks.}



#-------------------------------------------------------------
%package -n     python3-starlette
Summary:        %{summary}
Group:          Development/Python
Provides:       python3dist(starlette) = %{version}
Provides:       python%{py3_ver}dist(starlette) = %{version}
Provides:       python3egg(starlette) = %{version}

%description -n python3-starlette
Starlette is a lightweight ASGI framework/toolkit, which is ideal for building
async web services in Python.

It is production-ready, and gives you the following:

  • A lightweight, low-complexity HTTP web framework.
  • WebSocket support.
  • In-process background tasks.
  • Startup and shutdown events.
  • Test client built on requests.
  • CORS, GZip, Static Files, Streaming responses.
  • Session and Cookie support.
  • 100%% test coverage.
  • 100%% type annotated codebase.
  • Few hard dependencies.
  • Compatible with asyncio and trio backends.
  • Great overall performance against independant benchmarks.}

%files -n python3-starlette
%doc README.md
%{python3_sitelib}/%{pypi_name}/*
%{python3_sitelib}/%{pypi_name}-*.egg-info/*

#-------------------------------------------------------------

%prep
%autosetup -p1 -n starlette-%{version}

rm -rf *.egg-info

# Remove Gitter chat app from documentation; it relies on pre-compiled/minified
# JavaScript, which is not acceptable in Fedora. Since we are not building
# documentation, we do this very bluntly:
rm -vrf docs/js

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7495 |21cr|python-stdnum-1.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname stdnum

Name:		python-%{srcname}
Version:	1.17
Release:	1
Summary:	Python module to handle standardized numbers and codes
Group:		Development/Python
License:	LGPLv2+
URL:		http://arthurdejong.org/python-stdnum/
Source0:	https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch:	noarch
 
BuildRequires:	python2-setuptools
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools

%description
Parse, validate and reformat standard numbers and codes. This library offers
functions for parsing, validating and reformatting standard numbers and codes
in various formats like personal IDs, VAT numbers, IBAN and more.

#----------------------------------------------------------------------------
%package -n python2-%{srcname}
%py2_migration_meta python2-%{srcname}
Summary:	%{summary}
Group:		Development/Python

%description -n python2-%{srcname}
Parse, validate and reformat standard numbers and codes. This library offers
functions for parsing, validating and reformatting standard numbers and codes
in various formats like personal IDs, VAT numbers, IBAN and more.

%files -n python2-%{srcname}
%doc COPYING
%doc NEWS README.md
%{python2_sitelib}/%{srcname}/
%{python2_sitelib}/python_%{srcname}-%{version}-py*.egg-info/

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{srcname}
Parse, validate and reformat standard numbers and codes. This library offers
functions for parsing, validating and reformatting standard numbers and codes
in various formats like personal IDs, VAT numbers, IBAN and more.

%files -n python3-%{srcname}
%doc COPYING
%doc NEWS README.md
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/python_%{srcname}-%{version}-py*.egg-info/

#----------------------------------------------------------------------------

%prep
%setup -q
# Remove bundled egg-info
rm -rf %{name}.egg-info


%build
%py2_build
%py3_build


%install
%py3_install
%py2_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7496 |21cr|python-subunit-1.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  subunit

Name:           python-%{module}
Version:        1.2.0
Release:        4
Summary:        Python implementation of subunit test streaming protocol
Group:          Development/Python
License:        ASL 2.0
URL:            https://launchpad.net/testrepository
Source0:        https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python)
BuildRequires:  pythonegg(setuptools)
BuildArch:      noarch

%description
Subunit is a streaming protocol for test results.

%files
%doc NEWS README.rst
%{_bindir}/%{module}*
%{_bindir}/tap2%{module}
%{py_puresitedir}/*
#-----------------------------------------------------------------
%package -n     python3-%{module}
Summary:        Python 3 implementation of subunit test streaming protocol
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description -n python3-%{module}
Subunit is a streaming protocol for test results.
This is the Python 3 version of the package.

%files -n python3-%{module}
%doc NEWS README.rst
%{_bindir}/python3-%{module}*
%{_bindir}/python3-tap2%{module}
%{py3_puresitedir}/*
#-----------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

# Remove bundled egg-info
rm -rf python_%{module}.egg-info
cp -a . %{py3dir}

%build
python setup.py build

pushd %{py3dir}
python3 setup.py build
popd

%install
pushd %{py3dir}
python3 setup.py install --skip-build --root %{buildroot}
  cd %{buildroot}%{_bindir}
  mv subunit-1to2 python3-subunit-1to2
  mv subunit2gtk python3-subunit2gtk
  mv subunit2pyunit python3-subunit2pyunit
  mv subunit-filter python3-subunit-filter
  mv subunit-notify python3-subunit-notify
  mv subunit-stats python3-subunit-stats
  mv tap2subunit python3-tap2subunit
  mv subunit2csv python3-subunit2csv
  mv subunit2junitxml python3-subunit2junitxml
  mv subunit-2to1 python3-subunit-2to1
  mv subunit-ls python3-subunit-ls
  mv subunit-output python3-subunit-output
  mv subunit-tags python3-subunit-tags
popd

python setup.py install --skip-build --root %{buildroot}

pushd %{buildroot}%{py3_puresitedir}/%{module}
chmod +x tests/sample-two-script.py \
  tests/sample-script.py \
  run.py
popd

pushd %{buildroot}%{py_puresitedir}/%{module}
chmod +x tests/sample-two-script.py \
  tests/sample-script.py \
  run.py
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7497 |21cr|python-suds-0.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname suds

Name:		python-suds
Version:	0.8.4
Release:	1
Summary:	A python SOAP client
Group:		Development/Python
License: LGPLv3+
URL:		https://github.com/suds-community/suds
Source0:	https://github.com/suds-community/suds/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)

%description
The suds project is a python soap web services client lib.  Suds leverages
python meta programming to provide an intuitive API for consuming web
services.  Objectification of types defined in the WSDL is provided
without class generation.  Programmers rarely need to read the WSDL since
services and WSDL based objects can be easily inspected.


#-------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	A python SOAP client
Group:		Development/Python

%description -n python3-%{srcname}
The suds project is a python soap web services client lib.  Suds leverages
python meta programming to provide an intuitive API for consuming web
services.  Objectification of types defined in the WSDL is provided
without class generation.  Programmers rarely need to read the WSDL since
services and WSDL based objects can be easily inspected.

%files -n python3-%{srcname}
%{python3_sitelib}/%{srcname}*/
%doc README.md
%license LICENSE.txt

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7498 |21cr|python-svg2rlg-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	svg2rlg

Name:		python-%{oname}
Version:	0.3
Release:	4
Summary:	Convert SVG to Reportlab drawing
Source0:	http://pypi.python.org/packages/source/s/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://code.google.com/p/svg2rlg/
BuildArch:	noarch
BuildRequires:  python2-devel 
BuildRequires:  python2-setuptools

Requires:	python2-reportlab

%description
**svg2rlg** is a small utility to convert SVG to reportlab graphics.

The authors motivation was to have a more robust handling of
SVG files in the **rst2pdf** tool. Specific to be able to handle
the quirks needed to include SVG export from matplotlib.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Convert SVG to Reportlab drawing

%description -n python2-%{oname}
**svg2rlg** is a small utility to convert SVG to reportlab graphics.

The authors motivation was to have a more robust handling of
SVG files in the **rst2pdf** tool. Specific to be able to handle
the quirks needed to include SVG export from matplotlib.


%prep
%setup -q -n %{oname}-%{version}
perl -i -pe 's/\r\n/\n/gs' {README,COPYING}.txt


%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

chmod +x %{buildroot}%{py2_puresitedir}/svg2rlg.py


%files -n python2-%{oname}
%doc *.txt
%{py2_puresitedir}/svg2rlg.py*
%{py2_puresitedir}/svg2rlg*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7499 |21cr|python-tables-3.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	tables

Summary: 	Hierarchical datasets in Python
Name: 	 	python-%{module}
Version: 	3.5.2
Release: 	1
License: 	BSD
Group: 	 	Development/Python
Url: 	 	http://www.pytables.org
Source0: 	https://pypi.io/packages/source/t/%{module}/%{module}-%{version}.tar.gz
Patch0:		always-use-blosc.diff
Patch1:		https://github.com/PyTables/PyTables/commit/f68dcdb47bfe6e069f4f6be10e6a47c55c2b9533.patch
BuildRequires:	hdf5-devel >= 1.10
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	blosc-devel

%description
PyTables is a Python package for managing hierarchical datasets
designed to efficiently and easily cope with extremely large amounts
of data. It is built on top of the HDF5 library and the NumPy package
(numarray and Numeric are also supported). PyTables features an
object-oriented interface and performance-critical extensions coded in
C (generated using Pyrex) that make it a fast yet extremely
easy-to-use tool for interactively processing and searching through
very large amounts of data. PyTables also optimizes memory and disk
resources so that data occupies much less space than with other
solutions such as relational or object-oriented databases (especially
when compression is used).

%package	doc
Group:		Development/Python
Summary:	Documentation for PyTables
BuildArch:	noarch

%description doc
The %{name}-doc package contains the documentation related to
PyTables.

%package -n python3-%{module}
Summary:        Hierarchical datasets in Python 3
Group:          Development/Python
Requires:	python3-numpy
Requires:	python3-numexpr
BuildRequires:	python3-numpy-devel
BuildRequires:	python3egg(numexpr)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(mock)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cython)
BuildRequires:  python3egg(sphinx)

%description -n python3-%{module}
PyTables is a Python 3 package for managing hierarchical datasets
designed to efficiently and easily cope with extremely large amounts
of data. It is built on top of the HDF5 library and the NumPy package
(numarray and Numeric are also supported). PyTables features an
object-oriented interface and performance-critical extensions coded in
C (generated using Pyrex) that make it a fast yet extremely
easy-to-use tool for interactively processing and searching through
very large amounts of data. PyTables also optimizes memory and disk
resources so that data occupies much less space than with other
solutions such as relational or object-oriented databases (especially
when compression is used).


%prep 
%setup -q -n %{module}-%{version}
%autopatch -p1

# Make sure we are not using anything from the bundled blosc by mistake
find c-blosc -mindepth 1 -maxdepth 1 -name hdf5 -prune -o -exec rm -r {} +

find utils -name 'pt*' | xargs sed -i '1s|^#!/usr/bin/env python|#!%{__python3}|'

%build
export LIBS="dl m"
# Remove old c files and regenerate from cython
make distclean 
%py3_build

%install
chmod -x examples/check_examples.sh
for i in utils/*; do sed -i 's|bin/env |bin/|' $i; done

%py3_install

%check
libdir=`ls build/|grep lib`
export PYTHONPATH=`pwd`/build/$libdir
echo "import tables; tables.test()" > bench/check_all.py
python3 bench/check_all.py

%files doc
%doc examples/
%doc doc/source/

%files -n python3-%{module}
%doc README.rst LICENSES
%{_bindir}/pt2to3
%{_bindir}/ptdump
%{_bindir}/ptrepack
%{_bindir}/pttree
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7500 |21cr|python-taglib-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pytaglib

Summary:	Cross-platform Python 3.x tagging library
Name:		python-taglib
Version:	2.0.0
Release:	1
License:	GPLv3+
Group:		Development/Python
Url:		http://github.com/supermihi/%{pypi_name}
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pyproject-rpm-macros

%description
TagLib bindings for Python 3.x: a full-featured, easy-to-use,
cross-platform audio metadata ("tag") library for Python. It is a very thin
wrapper around the the popular, fast and rock-solid TagLib C++ library,
profiting from the underlying library's speed and stability.
This package contains only the module version for Python 3.x.

#----------------------------------------------------------------------------

%package -n python3-taglib
Summary:	%{summary}
Group:		Development/Python
Provides:	python3-%{pypi_name} = %{EVRD}

%description  -n python3-taglib
TagLib bindings for Python 3.x: a full-featured, easy-to-use,
cross-platform audio metadata ("tag") library for Python. It is a very thin
wrapper around the the popular, fast and rock-solid TagLib C++ library,
profiting from the underlying library's speed and stability.
This package contains only the module version for Python 3.x.

%files  -n python3-taglib
%doc COPYING *.md
%{_bindir}/pyprinttags
%{py3_platsitedir}/pyprinttags.py*
%{py3_platsitedir}/taglib.cpython-*.so
%{py3_platsitedir}/%{pypi_name}-%{version}*.dist-info
%{py3_platsitedir}/__pycache__

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

# Fix perms
chmod +x %{buildroot}%{py3_platsitedir}/pyprinttags.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7501 |21cr|python-tagpy-2022.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname tagpy

Summary:	Python bindings for TagLib to read and write music files tags
Name:		python-tagpy
Version:	2022.1
Release:	1
License:	MIT
Group:		Development/Python
URL:		http://pypi.python.org/pypi/tagpy
Source0:	https://pypi.python.org/packages/source/t/%{shortname}/%{shortname}-%{version}.tar.gz
Patch0:		taglib-1.8.patch
BuildRequires:	ctags
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	boost-devel


%description
TagPy is a Python crust (or a set of Python bindings) for TagLib, which allows
to read and write ID3 tags of version 1 and 2, access Xiph Comments in Ogg
Vorbis Files and Ogg Flac Files and access APE tags in Musepack and MP3 files.

#----------------------------------------------------------------------------
%package -n python3-tagpy
Summary:	Python bindings for TagLib to read and write music files tags
Group:		Development/Python

%description -n python3-tagpy
TagPy is a Python crust (or a set of Python bindings) for TagLib, which allows
to read and write ID3 tags of version 1 and 2, access Xiph Comments in Ogg
Vorbis Files and Ogg Flac Files and access APE tags in Musepack and MP3 files.

%files -n python3-tagpy
%doc LICENSE README* test/*.py test/tagrename
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{shortname}-%{version}

%build
# need set boost-python lib name
#./configure.py --boost-python-libname=boost_python38
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7502 |21cr|python-tempita-0.5.3dev-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	Tempita

Summary:	A very small text templating language

Name:		python-tempita
Version:	0.5.3dev
Release:	7
Source0:	http://pypi.python.org/packages/source/T/Tempita/Tempita-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://pythonpaste.org/tempita/
BuildArch:	noarch
BuildRequires:	python2-setuptools

%description
Tempita is a small templating language for text substitution.

This isn't meant to be the Next Big Thing in templating; it's just a
handy little templating language for when your project outgrows
string.Template or % substitution. It's small, it embeds Python in
strings, and it doesn't do much else.

%package -n python2-tempita
Summary:	A very small text templating language

%description -n python2-tempita
Tempita is a small templating language for text substitution.

This isn't meant to be the Next Big Thing in templating; it's just a
handy little templating language for when your project outgrows
string.Template or % substitution. It's small, it embeds Python in
strings, and it doesn't do much else.


%package -n python3-%{tarname}
Summary:	A very small text templating language
Group:		Development/Python
BuildRequires:	python3-setuptools

%description -n python3-%{tarname}
Tempita is a small templating language for text substitution.

This isn't meant to be the Next Big Thing in templating; it's just a
handy little templating language for when your project outgrows
string.Template or % substitution. It's small, it embeds Python in
strings, and it doesn't do much else.

This is a python2-3 package.

%prep
%setup -q -n %{tarname}-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}

%install
pushd %{py3dir}
PYTHONDONTWRITEBYTECODE= python3 setup.py install --root=%{buildroot}
popd
PYTHONDONTWRITEBYTECODE= python2 setup.py install --root=%{buildroot}

%files -n python2-tempita
%{py2_puresitedir}/*

%files -n python3-%{tarname}
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7503 |21cr|python-termcolor-1.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	termcolor

Name:		python-%{module}
Version:	1.1.0
Release:	4
Summary:	ANSII Color formatting for output in terminal
License:	MIT
Group:		Development/Python
Url:		https://github.com/dvarrazzo/py-setproctitle/
Source0:	https://pypi.io/packages/source/s/%{module}/%{module}-%{version}.tar.gz

BuildArch:	noarch

%description
%{summary}.

#--------------------------------------------------------------------
%package -n	python3-%{module}
Summary:	A library allowing a process to change its title
Group:		Development/Python

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n	python3-%{module}
%{summary}.
This is the Python 3 version of the package.

%files -n python3-%{module}
%doc *.rst *.txt
%{py3_puresitedir}/%{module}*
%{py3_puresitedir}/__pycache__/*
#--------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7504 |21cr|python-terminado-0.12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name terminado

Name:           python-%{pypi_name}
Version:	0.12.1
Release:	1
Group:          Development/Python
Summary:        Terminals served to term.js using Tornado websockets

License:        BSD
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/7a/82/97a3b275b44b031eba1e27e136993464e670821aa4616a9dfaba0c2b4e8f/terminado-0.12.1.tar.gz
BuildArch:      noarch
 

%description
Terminals served to term.js using Tornado websockets.

%package -n     python3-%{pypi_name}
Summary:        Terminals served to term.js using Tornado websockets
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-nose
BuildRequires:  python3-ptyprocess

Requires:       python3-ptyprocess
Requires:       python3-tornado

%description -n python3-%{pypi_name}
Terminals served to term.js using Tornado websockets.


%prep
%setup -q -n %{pypi_name}-%{version}

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build
%py3_build

%install
%py3_install

#%%check
#nosetests

%files -n python3-%{pypi_name}
%doc README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7505 |21cr|python-terminaltables-3.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _description \
Easily draw tables in terminal/console applications (written in\
Python) from a list of lists of strings. Supports multi-line rows.

%define module terminaltables

Summary:       Generate tables in terminals from list of strings
Name:          python-%{module}
Version:       3.1.0
Release:       2
License:       MIT
Group:         Development/Python
URL:           https://github.com/Robpol86/%{module}
Source0:       https://github.com/Robpol86/%{module}/archive/v%{version}.tar.gz
BuildArch:     noarch

%description 
%{_description}

#------------------------------------------------------------
%package     -n python3-%{module}
Summary:       %{summary}
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)


%description -n python3-%{module} 
%{_description}

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info/
#---------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7506 |21cr|python-testpath-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name testpath

Name:           python-testpath
Version:        0.6.0
Release:        1
Group:          Development/Python
Summary:        Test utilities for code working with files and commands

License:        MIT
URL:            https://github.com/jupyter/testpath
Source0:        https://pypi.io/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%define _description \
Testpath is a collection of utilities for Python code working with files and \
commands. \
\
It contains functions to check things on the filesystem, and tools for \
mocking system commands and recording calls to those.

%description %_description

#----------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python


%description -n python3-%{pypi_name}
%_description

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst
%doc LICENSE

#----------------------------------------------------
%package        doc
Summary:        %{name} documentation
Group:          Documentation


%description doc
Documentation for %{name}.

%files doc
%doc doc/*.rst

#----------------------------------------------------

%prep
%setup -n %{pypi_name}-%{version}

# The exe files are only needed on Microsoft Windows
rm -f %{pypi_name}/*.exe

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7507 |21cr|python-testresources-1.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module testresources

Name:           python-%{module}
Version:        1.0.0
Release:        4
Summary:        Testresources, a pyunit extension for managing expensive test resources
Group:          Development/Python
License:        ASL 2.0
URL:            https://launchpad.net/testresources
Source0:        https://pypi.python.org/packages/source/t/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
testresources: extensions to python unittest to allow declarative use
of resources by test cases.

#---------------------------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Testresources, a pyunit extension for managing expensive test resources
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(testtools)
BuildRequires:  python3egg(fixtures)

%description -n python3-%{module}
testresources: extensions to python unittest to allow declarative use
of resources by test cases.

%files -n python3-%{module}
%doc README NEWS doc
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
#---------------------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
# Remove bundled egg-info
rm -rf lib/%{module}.egg-info

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

%check
python3 setup.py test || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7508 |21cr|python-textdistance-4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global pypi_name textdistance

%global _description %{expand:
TextDistance - python library for comparing distance between two or more 
sequences by many algorithms.

Features:
- 30+ algorithms
- Pure python implementation
- Simple usage
- More than two sequences comparing
- Some algorithms have more than one implementation in one class.
- Optional numpy usage for maximum speed.
}

Name:           python-%{pypi_name}
Version:        4.5.0
Release:        1
Summary:        Compute distance between the two texts
Group:          Development/Python
License:        MIT
URL:            https://github.com/orsinium/textdistance
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
%_description

#---------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
%_description

%files -n python3-%{pypi_name}
%license LICENSE
%{_docdir}/python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

# Fix bad executable permission
mkdir -p %{buildroot}%{_docdir}/python3-%{pypi_name}
cp -pr README.md %{buildroot}%{_docdir}/python3-%{pypi_name}
chmod 644 %{buildroot}%{_docdir}/python3-%{pypi_name}/README.md



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7509 |21cr|python-text-unidecode-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module text-unidecode

Name:           python-%{module}
Version:        1.3
Release:        1
Summary:        A Python module for handling non-Roman text data
Group:          Development/Python
License:        GPLv2+
URL:            https://github.com/kmike/text-unidecode/
Source0:        https://github.com/kmike/text-unidecode/archive/%{version}/%{module}-%{version}.tar.gz
BuildArch:      noarch  

%description
text-unidecode is the most basic port of the Text::Unidecode Perl library.

#-----------------------------------------------------
%package -n python3-%{module}
Summary:        %{summary}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
text-unidecode is the most basic port of the Text::Unidecode Perl library.

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir}/text_unidecode/
%{py3_puresitedir}/text_unidecode-%{version}-py?.?.egg-info
#-----------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7510 |21cr|python-theano-1.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         debug_package          %{nil}

%global         upname   theano
%define         capname  Theano
%define         srcname  Theano


Name:           python-theano
Version:        1.0.4
Release:        2
Group:          Development/Python
Summary:        A Python library for evaluating mathematical expressions
License:        MIT
URL:            http://www.deeplearning.net/software/theano/
Source0:        https://github.com/Theano/Theano/releases/%{srcname}-%{version}.tar.gz

BuildArch:      noarch


%description
Theano is a Python library that allows you to define, optimize, and
evaluate mathematical expressions involving multi-dimensional arrays
efficiently. Theano features:

* tight integration with NumPy – Use numpy.ndarray in Theano-compiled functions.
* transparent use of a GPU – Perform data-intensive computations much faster than on a CPU.
* efficient symbolic differentiation – Theano does your derivatives for functions with one or many inputs.
* speed and stability optimizations – Get the right answer for log(1+x) even when x is really tiny.
* dynamic C code generation – Evaluate expressions faster.
* extensive unit-testing and self-verification – Detect and diagnose many types of errors.

Theano has been powering large-scale computationally intensive
scientific investigations since 2007. But it is also approachable
enough to be used in the classroom.




%package -n python3-%{upname}
Summary:        A Python3 library for evaluating mathematical expressions
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(scipy)

%description -n python3-%{upname}
Theano is a Python library that allows you to define, optimize, and
evaluate mathematical expressions involving multi-dimensional arrays
efficiently. Theano features:

* tight integration with NumPy – Use numpy.ndarray in Theano-compiled functions.
* transparent use of a GPU – Perform data-intensive computations much faster than on a CPU.
* efficient symbolic differentiation – Theano does your derivatives for functions with one or many inputs.
* speed and stability optimizations – Get the right answer for log(1+x) even when x is really tiny.
* dynamic C code generation – Evaluate expressions faster.
* extensive unit-testing and self-verification – Detect and diagnose many types of errors.

Theano has been powering large-scale computationally intensive
scientific investigations since 2007. But it is also approachable
enough to be used in the classroom.


%prep
%setup -q -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{upname}
%doc README.rst LICENSE.txt
%{_bindir}/theano-cache
%{_bindir}/theano-nose
%{py3_puresitedir}/bin
%{py3_puresitedir}/%{upname}
%{py3_puresitedir}/%{capname}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7511 |21cr|python-thon-dbusmock-0.16.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	python-dbusmock
%define	module	thon-dbusmock

Name:		python-%{module}
Version:	0.16.9
Release:	1
Summary:	Mock D-Bus objects
Source0:	http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
License:	LGPL 3+
Group:		Development/Python
Url:		https://launchpad.net/python-dbusmock
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
python-dbusmock

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%check
#python setup.py test

%files
%doc COPYING
%doc NEWS
%doc README.rst
%{py_puresitedir}/dbusmock/*.py*
%{py_puresitedir}/dbusmock/templates/*.py*
%{py_puresitedir}/python_dbusmock*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7512 |21cr|python-threadpoolctl-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name threadpoolctl

Name:		python-%{pypi_name}
Version:	3.0.0
Release:	1
Summary:	Thread-pool Controls
Group:		Development/Python
License:	BSD
URL: https://github.com/joblib/threadpoolctl
Source0:	%{pypi_source}

BuildArch: noarch

%global _description %{expand:
Python helpers to limit the number of threads used in the 
threadpool-backed of common native libraries used for scientific computing 
and data science (e.g. BLAS and OpenMP).
Fine control of the underlying thread-pool size can be useful in 
workloads that involve nested parallelism so as to mitigate 
oversubscription issues.}

%description %_description


#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel 

%description -n python3-%{pypi_name}
%_description

%files -n python3-%{pypi_name}
%doc README.md multiple_openmp.md
%license LICENSE
%{python3_sitelib}/__pycache__
%{python3_sitelib}/threadpoolctl.py
%{python3_sitelib}/threadpoolctl*egg-info

#-----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7513 |21cr|python-three-merge-0.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module three-merge
%define pypi_name three_merge

Name:           python-%{module}
Version:        0.1.1
Release:        1
Summary:        Simple library for merging two strings with respect to a base one
Group:          Development/Python
License:        MIT
URL:            https://github.com/spyder-ide/three-merge
Source0:        https://files.pythonhosted.org/packages/source/t/%{pypi_name}/three-merge-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
Simple Python library to perform a 3-way merge between strings, based on
diff-match-patch. This library performs merges at a character level, as
opposed to most VCS systems, which opt for a line-based approach.

#---------------------------------------------------------------
%package -n     python3-%{module}
Summary:        Simple library for merging two strings with respect to a base one
Group:          Development/Python

%description -n python3-%{module}
Simple Python library to perform a 3-way merge between strings, based on
diff-match-patch. This library performs merges at a character level, as
opposed to most VCS systems, which opt for a line-based approach.

%files -n python3-%{module}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#---------------------------------------------------------------

%prep
%autosetup -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7514 |21cr|python-tifffile-2022.8.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module tifffile

Name:           python-%{module}
Version:	2022.8.12
Release:	1
Summary:        Read and write TIFF(r) files
Group:          Development/Python
License:        BSD
URL:            https://www.lfd.uci.edu/~gohlke/
Source0:	https://files.pythonhosted.org/packages/96/e9/bc14577c801e0e65c6369288b02cc8e553bef783b55d7c7b7159d8051fc6/tifffile-2022.8.12.tar.gz

BuildArch:      noarch

%description
Tifffile is a Python library to:
 * store numpy arrays in TIFF (Tagged Image File Format) files, and
 * read image and metadata from TIFF-like files used in bioimaging.
#----------------------------------------------------------------
%package -n python3-%{module}
Summary:        Read and write TIFF(r) files
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)


%description -n python3-%{module}
Tifffile is a Python library to:
 * store numpy arrays in TIFF (Tagged Image File Format) files, and
 * read image and metadata from TIFF-like files used in bioimaging.

%files -n python3-%{module}
%doc README.rst LICENSE
%{_bindir}/lsm2bin
%{_bindir}/tiffcomment
%{_bindir}/tifffile
%{_bindir}/tiff2fsspec
%{py3_puresitedir}/%{module}-*.egg-info/
%{py3_puresitedir}/%{module}/
#----------------------------------------------------------------


%prep
%setup -qn %{module}-%{version}
rm -fr *.egg-info

sed -i -e "1d" tifffile/lsm2bin.py
sed -i 's/\r$//' README.rst
sed -i 's/\r$//' LICENSE

%build
%py3_build

%install
%py3_install
chmod +x %{buildroot}%{py3_puresitedir}/%{module}/{tiff2fsspec,tiffcomment}.py
sed -i -e 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/g' \
    %{buildroot}%{py3_puresitedir}/%{module}/{tiff2fsspec,tiffcomment}.py





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7515 |21cr|python-tinycss-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define module tinycss


Name:           python-%{module}
Summary:        CSS parser for Python
Version:        0.4
Release:        2
Group:          Development/Python
License:        BSD
URL:            http://pythonhosted.org/%{module}/
Source0:        https://github.com/SimonSapin/%{module}/archive/%{module}-%{version}.tar.gz

BuildRequires:  dos2unix
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(cython)


%description
tinycss is a complete yet simple CSS parser for Python. It supports
the full syntax and error handling for CSS 2.1 as well as some CSS 3
modules. It is designed to be easy to extend for new CSS modules and
syntax, and integrates well with cssselect for Selectors 3 support.
#--------------------------------------------------------------

%package -n python3-%{module}
Summary:        CSS parser for Python


%description -n python3-%{module}
tinycss is a complete yet simple CSS parser for Python3. It supports
the full syntax and error handling for CSS 2.1 as well as some CSS 3
modules. It is designed to be easy to extend for new CSS modules and
syntax, and integrates well with cssselect for Selectors 3 support.

%files -n python3-%{module}
%doc LICENSE README.rst
%{py3_platsitedir}/*
#--------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info
dos2unix LICENSE
sed -i '/addopts/d' setup.cfg

%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7516 |21cr|python-tinycss2-0.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define partnme tinycss2 

Name:           python-tinycss2
Summary:        CSS parser for Python
Version:        0.6.1
Release:        2
Group:          System/Libraries
License:        BSD
URL:            http://pythonhosted.org/tinycss2/
Source0:        https://github.com/Kozea/tinycss/archive/%{partnme}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:  dos2unix
BuildRequires:  python3-devel python3-setuptools python3-cython

# Do not check .so files in the python_sitelib directory
# or any files in the application's directory for provides
#%%global __provides_exclude_from ^(%%{python_sitearch}|%%{python3_sitearch})/.*\\.so$

%description
tinycss2 is a rewrite of the tinycss CSS parser for Python. It supports
It has a simpler API and is based on the more recent
CSS Syntax Level 3 specification.

%package -n python3-tinycss2
Summary:        CSS parser for Python
Group:          System/Libraries

%description -n python3-tinycss2
tinycss2 is a rewrite of the tinycss CSS parser for Python. It supports
It has a simpler API and is based on the more recent
CSS Syntax Level 3 specification.

%prep
%setup -qn %{partnme}-%{version}
find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --prefix=%{_prefix} --root %{buildroot}

%files -n python3-tinycss2
%{py3_puresitedir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7517 |21cr|python-tinysegmenter-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tinysegmenter

Name:           python-%{oname}
Version:        0.4
Release:        2
Summary:        Python module implementing a Japanese tokenizer
Group:          Development/Python
License:        BSD
URL:            http://tinysegmenter.tuxfamily.org/
Source0:        https://pypi.io/packages/source/t/tinysegmenter/%{oname}-%{version}.tar.gz
BuildArch:      noarch

%description
An extremely compact native Python module (contained into a single file)
providing a Japanese Tokenization feature.

%package -n python3-%{oname}
Summary:        Python module implementing a Japanese tokenizer
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{oname}
An extremely compact native Python module (contained into a single file)
providing a Japanese Tokenization feature.

%prep
%setup -q -n tinysegmenter-%{version}

%build
%py3_build

%install
%py3_install
rm -rf %{buildroot}%{_prefix}/man

%files -n python3-%{oname}
%doc README.rst COPYING AUTHORS
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7518 |21cr|python-tomli-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name tomli

Name:           python-%{pypi_name}
Version:        2.0.1
Release:        1
Summary:        A little TOML parser for Python
License:        MIT
Group:          Development/Python
URL:            https://pypi.org/project/tomli/
Source0:        %{pypi_source}
BuildArch:      noarch
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3-flit-core

%description
Tomli is a Python library for parsing TOML and is fully compatible with TOML
v1.0.0.

#------------------------------------------------------------------------
%package -n python3-tomli
Summary:          A little TOML parser for Python
Group:            Development/Python

%description -n python3-tomli
Tomli is a Python library for parsing TOML and is fully compatible with TOML
v1.0.0.

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md
%license LICENSE

#------------------------------------------------------------------------

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7519 |21cr|python-tomli-w-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           python-tomli-w
Version:        1.0.0
Release:        1
Summary:        A Python library for writing TOML
Group:          Development/Python
License:        MIT
URL:            https://github.com/hukkin/tomli-w
Source0:        %{url}/archive/%{version}/tomli-w-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-flit-core
BuildRequires:  python3-tox
BuildRequires:  python3dist(tox-current-env)
BuildRequires:  python3dist(tomli)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-randomly)
BuildRequires:  python3dist(pytest-cov)

%global _description %{expand:
Tomli-W is a Python library for writing TOML. It is a write-only counterpart
to Tomli, which is a read-only TOML parser. Tomli-W is fully compatible
with TOML v1.0.0.}

%description %_description

#-----------------------------------------------------------
%package -n python3-tomli-w
Summary:        %{summary}
Group:          Development/Python

%description -n python3-tomli-w %_description

%files -n python3-tomli-w -f %{pyproject_files}
%doc README.md
%doc CHANGELOG.md
%license LICENSE

#-----------------------------------------------------------

%prep
%autosetup -p1 -n tomli-w-%{version}


%generate_buildrequires
%pyproject_buildrequires %{?with_check:-t}


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files tomli_w

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7520 |21cr|python-tortilla-0.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       python-tortilla
Version:    0.4.1
Release:    5
Summary:    Python 2 and 3 compatibility utilities
Group:      Development/Python
License:    MIT
URL:        http://pypi.python.org/pypi/tortilla/
Source0:    http://pypi.python.org/packages/source/t/tortilla/tortilla-%{version}.tar.gz
BuildArch:  noarch

%description
python-tortilla provides a tiny library for creating wrappers around web APIs
Python 2 and Python 3.

%package -n python3-tortilla
Summary: %{summary} / Python 3 library
Requires:   python3-requests
Requires:   python3-six
Requires:   python3-formats
Requires:   python3-colorclass
BuildRequires:   python3-setuptools

%description -n python3-tortilla
python-tortilla provides a tiny library for creating wrappers around web APIs
Python 2 and Python 3.

%prep
%setup -q -n tortilla-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-tortilla
%doc README.rst
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7521 |21cr|python-tox-3.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Tests requiring Internet connections are disabled by default
# pass --with internet to run them (e.g. when doing a local rebuild
# for sanity checks before committing)
%bcond_with internet

%global pypiname tox

Name:           python-tox
Version:        3.16.1
Release:        1
Summary:        Virtualenv-based automation of test activities
Group:          Development/Python

# file toxbootstrap.py is licensed under MIT License
License:        MIT
URL:            https://tox.readthedocs.org/
Source0:        https://pypi.python.org/packages/source/t/%{pypiname}/%{pypiname}-%{version}.tar.gz
BuildArch:      noarch

%description
Tox as is a generic virtualenv management and test command line tool you 
can use for:

 - checking your package installs correctly with different Python versions 
   and interpreters
 - running your tests in each of the environments, configuring your test tool 
   of choice
 - acting as a frontend to Continuous Integration servers, greatly reducing 
   boilerplate and merging CI and shell-based testing.

#-----------------------------------------------------------------------------
%package -n python3-%{pypiname}
Summary:        Virtualenv-based automation of test activities
Group:          Development/Python
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(py)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(virtualenv)
Requires:       python3-py
Requires:       python3-pluggy
# python3-virtualenv is rhbz#537246
Requires:       python3-virtualenv

%description -n python3-%{pypiname}
Tox as is a generic virtualenv management and test command line tool you 
can use for:

 - checking your package installs correctly with different Python versions 
   and interpreters
 - running your tests in each of the environments, configuring your test tool 
   of choice
 - acting as a frontend to Continuous Integration servers, greatly reducing 
   boilerplate and merging CI and shell-based testing.

%files -n python3-tox
%doc *.rst docs
%doc LICENSE
%{_bindir}/%{pypiname}
%{_bindir}/%{pypiname}-quickstart
%{python3_sitelib}/%{pypiname}
%{python3_sitelib}/%{pypiname}-%{version}-py*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{pypiname}-%{version}

# remove bundled egg-info
rm -rf %{pypiname}.egg-info

%build
%py3_build

%install
%py3_install

# if internet connection available, run tests
%if %{with internet}
%check
%__python3 setup.py test

%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7522 |21cr|python-tox-current-env-0.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name tox-current-env
%global pypi_under tox_current_env

Name:           python-%{pypi_name}
Version:        0.0.8
Release:        1
Summary:        Tox plugin to run tests in current Python environment
Group:          Development/Python

License:        MIT
URL:            https://github.com/fedora-python/tox-current-env
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(pip)
BuildRequires:  python3dist(packaging)

%description
The tox-current-env plugin allows to run tests in current Python environment.

#---------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
The tox-current-env plugin allows to run tests in current Python environment.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_under}/
%{python3_sitelib}/tox_current_env*.egg-info/

#---------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build


%install
%py3_install


#check
# the tests currently only work within actual tox and with various Python
# versions installed, so we skip them.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7523 |21cr|python-traits-6.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module traits

Summary:	Enthought Tool Suite - explicitly typed attributes for Python
Name:		python-%{module}
Version:	6.4.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/traits/
Source0:	https://files.pythonhosted.org/packages/ca/72/8d08717884ac41811c4cdbd5bce3101a3df64e0a1890aab7b1a1311c1f50/traits-6.4.1.tar.gz
Source1:	%{name}.rpmlintrc
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(nose)
BuildRequires:	pkgconfig(python3)
BuildRequires:	x11-server-xvfb

Requires:	python3egg(numpy)
Requires:	python3egg(six)
Provides:	python3-traits = %{EVRD}

%description
The Traits project allows Python programmers to use a special kind of type
definition called a trait which provides object attributes with some 
additional characteristics:

* Initialization: A trait has a default value, which is automatically
  set as the initial value of an attribute before its first use in a
  program.
* Validation: A trait attribute's type is explicitly declared. The
  type is evident in the code, and only values that meet a
  programmer-specified set of criteria (i.e., the trait definition)
  can be assigned to that attribute.
* Delegation: The value of a trait attribute can be contained either
  in the defining object or in another object delegated to by the
  trait.
* Notification: Setting the value of a trait attribute can notify
  other parts of the program that the value has changed.
* Visualization: User interfaces that allow a user to interactively
  modify the value of a trait attribute can be automatically
  constructed using the trait's definition. (This feature requires
  that a supported GUI toolkit be installed. If this feature is not
  used, the Traits project does not otherwise require GUI support.)

A class can freely mix trait-based attributes with normal Python
attributes, or can opt to allow the use of only a fixed or open set of
trait attributes within the class. Trait attributes defined by a class
are automatically inherited by any subclass derived from the class.

%files
%doc *.rst LICENSE.txt
%{py3_platsitedir}/%{module}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%check
pushd build/lib.linux*-%py3_ver
  export PYTHONPATH=%{buildroot}%{py3_platsitedir}
  xvfb-run python3 -s -m unittest discover -v
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7524 |21cr|python-traitsui-7.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module traitsui

Summary:	Enthought Tool Suite - traitsui project
Name:		python-%{module}
Version:	7.4.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/enthought/traitsui/
Source0:	https://files.pythonhosted.org/packages/d1/9a/6387da49c98a0e247d4feba3925a3472e35d62c0c43add357d57f4dd59fd/traitsui-7.4.1.tar.gz
BuildRequires:	python3-setuptools >= 0.6c8
BuildRequires:	python3-devel
BuildRequires:	python3-nose
BuildRequires:	python3-six
BuildRequires:	python3-configobj
BuildRequires:	python3-pyface
BuildRequires:	python3-pyface-qt
BuildRequires:	python3-traits
Requires:	python3-pyface
Requires:	python3-traits
Requires:	python3-six
Requires:	python3-numpy
BuildArch:	noarch
Provides:	python3-traitsui = %{EVRD}

%description
The traitsui project contains a toolkit-independent GUI abstraction
layer (known as Pyface), which is used to support the "visualization"
features of the Traits package. Thus, you can write code in terms of
the Traits API (view, items, editors, etc.), and let TraitsGUI and
your selected toolkit and backend take care of the details of
displaying them.

The following GUI backends are supported:

- wxPython
- PyQt
- PySide

%files
%doc *.txt *.rst examples/
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7525 |21cr|python-translationstring-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name translationstring

Name:           python-%{pypi_name}
Version:        1.4
Release:        1
Summary:        Library used for internationalization (i18n) duties related to translation
Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/translationstring
Source0:        https://github.com/Pylons/translationstring/archive/%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

%global _description \
A library used by various Pylons Project packages for\
internationalization (i18n) duties related to translation.\
\
This package provides a translation string class, a translation string factory\
class, translation and pluralization primitives, and a utility that helps\
Chameleon templates use translation facilities of this package. It does not\
depend on Babel, but its translation and pluralization services are meant to\
work best when provided with an instance of the babel.support.Translations class.

%description %{_description}

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name} %{_description}

Python 3 version.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst changes.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/

#------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7526 |21cr|python-treq-22.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name treq


%global with_doc 1

Name:           python-%{pypi_name}
Version:        22.2.0
Release:        1
Summary:        A requests-like API built on top of twisted.web's Agent
Group:          Development/Python
License:        MIT
URL:            https://github.com/twisted/treq
Source0:        https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%if 0%{?with_doc}
BuildRequires:  python3-twisted
BuildRequires:  python3-sphinx
%endif
 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-incremental

%description
treq is an HTTP library inspired by requests but written on top of
Twisted’s Agents.
It provides a simple, higher level API for making HTTP requests
when using Twisted.

#---------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3-incremental
Requires:       python3-requests >= 2.1.0
Requires:       python3-six
Requires:       python3-twisted >= 16.3.0
Requires:       python3-attrs

%description -n python3-%{pypi_name}
treq is an HTTP library inspired by requests but written on top of
Twisted’s Agents.
It provides a simple, higher level API for making HTTP requests
when using Twisted.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------
%if 0%{?with_doc}
%package -n python-%{pypi_name}-doc
Summary:        treq documentation
Group:          Documentation

%description -n python-%{pypi_name}-doc
Documentation for treq

%files -n python-%{pypi_name}-doc
%license LICENSE
%doc html
%endif

#---------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build
%if 0%{?with_doc}
# generate html docs
export PYTHONPATH=%{python3_sitelib}:src
sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7527 |21cr|python-trio-0.22.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname trio
# what it's imported as
%global libname %{srcname}
# name of egg info directory
%global eggname %{srcname}
# package name fragment
%global pkgname %{srcname}

%global common_description %{expand:
The Trio project's goal is to produce a production-quality, permissively
licensed, async/await-native I/O library for Python.  Like all async libraries,
its main purpose is to help you write programs that do multiple things at the
same time with parallelized I/O.  A web spider that wants to fetch lots of
pages in parallel, a web server that needs to juggle lots of downloads and
websocket connections at the same time, a process supervisor monitoring
multiple subprocesses... that sort of thing.  Compared to other libraries, Trio
attempts to distinguish itself with an obsessive focus on usability and
correctness.  Concurrency is complicated; we try to make it easy to get things
right.}

%bcond_without  tests

Name:		python-%{pkgname}
Version:	0.22.0
Release:	1
Summary:	A friendly Python library for async concurrency and I/O
Group:		Development/Python
License:	MIT or ASL 2.0
URL:		https://github.com/python-trio/trio
Source0:	https://files.pythonhosted.org/packages/0b/b8/1b81d2149c3e2c25900d40b8e6c8d3ca502a3cc844b90c962b0854aaf3f3/trio-0.22.0.tar.gz
BuildArch:      noarch


%description %{common_description}

#----------------------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pkgname} %{common_description}

%files -n python3-%{pkgname}
%license LICENSE LICENSE.MIT LICENSE.APACHE2
%doc README.rst
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7528 |21cr|python-trollius-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-trollius
Version:        2.2.1
Release:        1
Summary:        A port of the Tulip asyncio module to Python
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/haypo/trollius
Source0:        https://pypi.io/packages/source/t/trollius/trollius-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
Trollius provides infrastructure for writing single-threaded
concurrent code using coroutines, multiplexing I/O access over sockets
and other resources, running network clients and servers, and other
related primitives.

Trollius is a portage of the asyncio project (PEP 3156) on Python.

%package -n python2-trollius
%py2_migration_meta python2-trollius
Summary:	A port of the Tulip asyncio module to Python
Provides:	python-trollius = %{version}-%{release}

%description -n python2-trollius

Trollius provides infrastructure for writing single-threaded
concurrent code using coroutines, multiplexing I/O access over sockets
and other resources, running network clients and servers, and other
related primitives.

Trollius is a portage of the asyncio project (PEP 3156) on Python.

%package -n python3-trollius
Summary:	A port of the Tulip asyncio module to Python

%description -n python3-trollius
Trollius provides infrastructure for writing single-threaded
concurrent code using coroutines, multiplexing I/O access over sockets
and other resources, running network clients and servers, and other
related primitives.

Trollius is a portage of the asyncio project (PEP 3156) on Python.

%prep
%setup -qn trollius-%{version}

rm -rf %{py3dir}
cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd

%py2_build

%install
pushd %{py3dir}
%py3_install
popd

%py2_install

%files -n python2-trollius
%doc README.rst
%{py2_puresitedir}/trollius/
%{py2_puresitedir}/trollius-%{version}-py%{python2_version}.egg-info

%files -n python3-trollius
%doc README.rst
%{py3_puresitedir}/trollius/
%{py3_puresitedir}/trollius-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7529 |21cr|python-tubes-0.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name tubes

# Something broken in Twisted breaks these tests
%bcond_with check

Name:           python-%{pypi_name}
Version:        0.2.1
Release:        1
Summary:        Flow control and backpressure for event-driven applications
Group:          Development/Python
License:        MIT
URL:            https://github.com/twisted/tubes/
Source0:        %{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(twisted)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(setuptools)

%description
%{summary}.

#-------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
%{summary}.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/Tubes-%{version}-py*.egg-info/
#-------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# Remove unused dependency
sed -e '/"characteristic",/d' -i setup.py

%build
%py3_build

%install
%py3_install

%if %{with check}
%check
%python3 setup.py test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7530 |21cr|pythonturtle-0.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name PythonTurtle

Summary:	An educational environment for learning Python, suitable for beginners
Name:		pythonturtle
Version:	0.3.2
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://github.com/PythonTurtle/PythonTurtle
Source0:	%pypi_source
Patch0:		PythonTurtle-0.3.2-print-parentheses.patch
BuildRequires:	icoutils
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
An educational environment for learning Python, suitable for beginners.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	An educational environment for learning Python, suitable for beginners
Group:		Development/Python
Requires:	python3dist(wxpython)

%description -n python3-%{pypi_name}
An educational environment for learning Python, suitable for beginners.

%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

mv %{buildroot}%{_bindir}/%{pypi_name} %{buildroot}%{_bindir}/%{name}

for size in 16 32 48; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
	icotool -x -w${size} %{name}/resources/icon.ico -o %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=PythonTurtle
Comment=An educational environment for Python beginners
Comment[ru]=Образовательная среда для начинающих программистов на Python
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Development;IDE;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7531 |21cr|python-twiggy-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname Twiggy
%define	module	twiggy

Summary:	A Pythonic logger package
Name:		python-%{module}
Version:	0.5.1
Release:	1
Source0:	https://files.pythonhosted.org/packages/6e/81/6e2e2ee0e90df68ce1e8aec6fe147563dfcadbab3072f57f71bf42433cb2/Twiggy-0.5.1.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://code.google.com/p/python-twiggy/
BuildArch:	noarch
BuildRequires:	python3-sphinx
#BuildRequires:	python3-sphinxcontrib-googleanalytics
Provides:	python3-%{module} = %{EVRD}

%description
Twiggy is a logging package with a more Pythonic interface than
Python's own logger package.

%prep
%setup -q -n %{tarname}-%{version}

%build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc LICENSE
%{py3_puresitedir}/%{tarname}*
%{py3_puresitedir}/%{module}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7532 |21cr|python-twitter-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define name	python-twitter
%define version 0.6
%define release 4

Summary:	Python bindings for Twitter
Name:		%{name}
Version:	1.1
Release:	4
License:	ASL 2.0
Group:		Development/Python
Url:		http://code.google.com/p/python-twitter/
Source0:	http://python2-twitter.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	python2-setuptools
Requires:	python2-simplejson
Requires:   pythonegg(requests-oauthlib)

%description
This library provides a pure python2 interface for the Twitter API.

Twitter (http://twitter.com) provides a service that allows people to connect
via the web, IM, and SMS. Twitter exposes a web services API
(http://twitter.com/help/api) and this library is intended to make it even
easier for python2 programmers to use. 

%package -n python2-twitter
Summary:	Python bindings for Twitter

%description -n python2-twitter
This library provides a pure python interface for the Twitter API.

Twitter (http://twitter.com) provides a service that allows people to connect
via the web, IM, and SMS. Twitter exposes a web services API
(http://twitter.com/help/api) and this library is intended to make it even
easier for python programmers to use. 


%prep
%setup -q

%build
python2 setup.py build

%install
python2 setup.py install -O1 --skip-build --root %{buildroot} --install-purelib=%{py2_platsitedir}
chmod a+r %{buildroot}%{py2_platsitedir}/*/*


%files -n python2-twitter
%{py2_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7533 |21cr|python-txws-0.9.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname txws
%define capname txWS

Name:          python-txws
Version:       0.9.1
Release:       8
Summary:       Twisted WebSockets wrapper

Group:         Development/Python
License:       MIT
URL:           https://pypi.python.org/pypi/%{capname}
Source0:       https://pypi.io/packages/source/t/%{capname}/%{capname}-%{version}.tar.gz
Patch0:        python-txws-drop-vcversioner.patch

BuildArch:     noarch

%description
txWS (pronounced "Twisted WebSockets") is a small, short, simple library
for adding WebSockets server support to your favorite Twisted applications.

%package -n    python3-%{modname}
Summary:       Twisted WebSockets wrapper
Group:         Development/Python
BuildRequires: pkgconfig(python3)
BuildRequires: python3dist(setuptools)
BuildRequires: python3-twisted

Requires:      python3-twisted

Obsoletes:     python-txws < 0.9.1-7
Provides:      python-txws = %{version}-%{release}

%description -n python3-%{modname}
txWS (pronounced "Twisted WebSockets") is a small, short, simple library
for adding WebSockets server support to your favorite Twisted applications.

%prep
%setup -q -n %{capname}-%{version}
%autopatch -p1


%build
%py3_build


%install
%py3_install


%files -n python3-%{modname}
%doc README.rst
%{py3_puresitedir}/%{modname}.py*
%{py3_puresitedir}/%{capname}-%{version}-*.egg-info
%{py3_puresitedir}/__pycache__/%{modname}.*.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7534 |21cr|python-typeshed-0.0.1-2.20200312
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module 	typeshed
%define	git git.20200312.b44cd294
%define	release 2.20200312

Name:		python-typeshed
Version:	0.0.1
Release:	%{release}
Summary:	Collection of library stubs for Python, with static types
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/graingert/typeshed
Source0:	%{module}-%{version}+%{git}.tar.xz
Source100:	python-typeshed.rpmlintrc
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3
Requires:		python3
Provides:		python3-typeshed = %{EVRD}

BuildArch:	noarch

%description
Typeshed contains external type annotations for the Python standard
library and Python builtins, as well as third party packages.

%files
%doc CONTRIBUTING.md README.md LICENSE
%{_datadir}/typeshed
#------------------------------------------------

%prep
%setup -qn %{module}-%{version}+%{git}
rm -r stdlib/2
rm -rv stdlib/*/typing.pyi

%build
# Nothing to build

%install
mkdir -p %{buildroot}/%{_datadir}/typeshed
for dir in stdlib third_party ; do
    cp -r $dir %{buildroot}/%{_datadir}/typeshed/$dir
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7535 |21cr|python-types-setuptools-70.1.0.20240625-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# pypi_name - name for pypi_source
# mod_name - name of python module
# oname - name for rpm package

%define pypi_name types-setuptools
%define mod_name %{pypi_name}
%define oname %{pypi_name}

Summary:        Typing stubs for setuptools
Name:           python-%{oname}
Version:        70.1.0.20240625
Release:        1
License:        Apache-2.0 license (FIXME:No SPDX)
Group:          Development/Python
Url:            https://github.com/python/typeshed
Source0:        %{pypi_source}

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(wheel)
BuildRequires:  python3dist(pip)
BuildArch:      noarch

%description
%{summary}.

#------------------------------------------------------------------

%package -n python3-%{oname}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{oname}
%{summary}.

%files -n python3-%{oname} -f %{pyproject_files}
%doc CHANGELOG.md

#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files '*'
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7536 |21cr|python-ua-parser-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ua-parser
%global uap_core_version bbd43aed9a623486191a33c3af9e463e89c85f7a
%global run_unittests 0

Name:           python-%{pypi_name}
Version:        0.15.0
Release:        1
Summary:        Python port of Browserscope's user agent parser
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/ua-parser/uap-python
BuildArch:      noarch
Source0:        %{pypi_source ua-parser}
%if 0%{?run_unittests}
Source1:        https://github.com/ua-parser/uap-core/archive/%{uap_core_version}/uap-core-%{uap_core_version}.tar.gz
%endif
# Don't install test
Patch0:         ua-parser_no-test-install.patch
# Relax pyyaml dependency
Patch1:         ua-parser-pyyaml.patch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description
Python port of Browserscope's user agent parser.

#------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Python port of Browserscope's user agent parser
Group:          Development/Python

%description -n python3-%{pypi_name}
Python port of Browserscope's user agent parser.

%files -n python3-%{pypi_name}  -f %{pyproject_files}
%license  ua_parser/LICENSE
%doc README.rst

#------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files ua_parser


%check
%if 0%{?run_unittests}
tar xf %{SOURCE1} --transform 's|uap-core-%{uap_core_version}|uap-core|'
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} ua_parser/user_agent_parser_test.py
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7537 |21cr|python-ueberzug-18.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module ueberzug

Name:           python-%{module}
Version:        18.1.9
Release:        1
Url:            https://github.com/seebye/ueberzug
Summary:        Ueberzug is a command line util to display images
License:        GPLv3
Group:          Development/Python
Source:         https://files.pythonhosted.org/packages/source/u/ueberzug/%{module}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xres)
BuildRequires:  pkgconfig(x11)
BuildRequires:  python3egg(pillow)
BuildRequires:  python3egg(docopt)
BuildRequires:  python3egg(attrs)


%description
ueberzug is a command line util which allows to
display images in combination with X11.

%files
%doc *.md
%{_bindir}/*
%{py3_platsitedir}/*

#--------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}
# get ridd of env-script-interpreter
sed -i -e 's/^#!\/usr\/bin\/env python3/#!\/usr\/bin\/python3/g' %{module}/*.py
sed -i -e 's/^#!\/usr\/bin\/env bash/#!\/usr\/bin\/bash/g' %{module}/lib/*.sh

%build
%py3_build

%install
%py3_install

chmod +x %{buildroot}%{py3_platsitedir}/ueberzug/__main__.py
chmod +x %{buildroot}%{py3_platsitedir}/ueberzug/lib/lib.sh


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7538 |21cr|python-uinput-0.11.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Pythonic API to the Linux uinput kernel module
Name:           python-uinput
Version:        0.11.2
Release:        2
Group:          Development/Python
License:        GPLv3
URL:            http://pypi.python.org/pypi/python-uinput/
Source0:        %{pypi_source}
BuildRequires:  kernel-headers
BuildRequires:  pkgconfig(udev)
BuildRequires:  python3-devel
BuildRequires:  gcc

%description
Python-uinput is Python interface to the Linux uinput kernel module
which allows attaching userspace device drivers into kernel.

#-------------------------------------------------------------------------

%package -n python3-uinput
Summary:        Pythonic API to the Linux uinput kernel module

%description -n python3-uinput
Python-uinput is Python interface to the Linux uinput kernel module
which allows attaching userspace device drivers into kernel.

%files -n python3-uinput
%license COPYING
%doc NEWS README examples
%{python3_sitearch}/python_uinput-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/_libsuinput.*.so
%{python3_sitearch}/uinput

#-------------------------------------------------------------------------

%prep
%autosetup -p1

# Use unversioned .so
sed -i "s/libudev.so.0/libudev.so/" setup.py
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install

chmod a-x examples/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7539 |21cr|python-unicode-2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name unicode

Name:		python-%{pypi_name}
Version:	2.9
Release:	1
Summary:	Display unicode character properties
Group:		Development/Python
License:	GPLv3
URL:		http://kassiopeia.juls.savba.sk/~garabik/software/unicode.html
Source0:	https://files.pythonhosted.org/packages/a1/9d/ded8876eb5d8bed3e940943a984965b23e6158e10e1bdfd75d0a16ef2bec/unicode-2.9.tar.gz
BuildArch:	noarch
 
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)

%description
Enter regular expression, hexadecimal number or some characters as an
argument. unicode will try to guess what you want to look up, see the
manpage if you want to force other behaviour (the manpage is also the
best documentation). In particular, -r forces searching for regular
expression in the names of character, -s forces unicode to display
information about the characters given.

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
Enter regular expression, hexadecimal number or some characters as an
argument. unicode will try to guess what you want to look up, see the
manpage if you want to force other behaviour (the manpage is also the
best documentation). In particular, -r forces searching for regular
expression in the names of character, -s forces unicode to display
information about the characters given.

%files -n python3-%{pypi_name}
%doc README-paracode
%{_bindir}/paracode*
%{_bindir}/unicode*
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.egg-info
%{_mandir}/man1/*

#----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

ln -s unicode %{buildroot}%{_bindir}/unicode3
ln -s paracode %{buildroot}%{_bindir}/paracode3

install -d %{buildroot}/%{_mandir}/man1
install *.1 %{buildroot}/%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7540 |21cr|python-unidecode-0.04.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Unidecode

Name:		python-unidecode
Version:	0.04.18
Release:	2
Summary:	US-ASCII transliterations of Unicode text

Group:		Development/Python
License:	GPL+ or Artistic
URL:		http://pypi.python.org/pypi/%{pypi_name}/%{version}
Source0:	http://pypi.python.org/packages/source/U/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildArch:	noarch
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)

%description
This is a python port of Text::Unidecode Perl module. It provides a function,
'unidecode(...)' that takes Unicode data and tries to represent it in ASCII
characters.

%package -n python2-unidecode
%py2_migration_meta python2-unidecode
Group:		Development/Python
Summary:	US-ASCII transliterations of Unicode text

%description -n python2-unidecode
This is a python port of Text::Unidecode Perl module. It provides a function,
'unidecode(...)' that takes Unicode data and tries to represent it in ASCII
characters.


%package -n python3-unidecode
Group:		Development/Python
Summary:	US-ASCII transliterations of Unicode text
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-unidecode
This is a python port of Text::Unidecode Perl module. It provides a function,
'unidecode(...)' that takes Unicode data and tries to represent it in ASCII
characters.


%prep
%setup -q -n %{pypi_name}-%{version}
cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

pushd %{py3dir}
%py3_install
popd

rm -f %{buildroot}%{_bindir}/unidecode

%files -n python2-unidecode
%doc README.rst ChangeLog
%{py2_puresitedir}/unidecode/
%{py2_puresitedir}/*.egg-info


%files -n python3-unidecode
%doc README.rst ChangeLog
%{py3_puresitedir}/unidecode/
%{py3_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7541 |21cr|python-unqlite-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module unqlite

Summary:	Python bindings for the UnQLite embedded NoSQL database
Name:		python-%{module}
Version:	0.9.3
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/coleifer/unqlite-python
Source0:	https://github.com/coleifer/unqlite-python/archive/%{version}.tar.gz?/%{module}-python-%{version}.tar.gz
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pythonegg(cython)
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(setuptools)

%description
Python bindings for the UnQLite embedded NoSQL database

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python 3 bindings for the UnQLite embedded NoSQL database
Group:		Development/Python

%description -n python3-%{module}
Python 3 bindings for the UnQLite embedded NoSQL database.

%files -n python3-%{module}
%doc LICENSE README.md
%{py3_platsitedir}/%{module}-*egg-info
%{py3_platsitedir}/%{module}.cpython*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-python-%{version}

%build
python3 setup.py build


%install
python3 setup.py install --root=%{buildroot} --install-purelib=%{py3_puresitedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7542 |21cr|python-uritemplate-3.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	uritemplate

Name:		python-%{oname}
Version:	3.0.0
Release:	2
Summary:	URI templates
Source0:	http://pypi.python.org/packages/source/u/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD or ASL 2.0
Group:		Development/Python
Url:		https://uritemplate.readthedocs.org
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
uritemplate
===========
Simple python2 library to deal with `URI Templates`_. 

%package -n python3-%{oname}
Summary:	URI templates

%description -n python3-%{oname}
uritemplate
===========
Simple python library to deal with `URI Templates`_. 


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%doc AUTHORS.rst
%doc HISTORY.rst
%doc LICENSE
%doc LICENSE.APACHE
%doc LICENSE.BSD
%doc README.rst
%{py3_puresitedir}/uritemplate
%{py3_puresitedir}/uritemplate*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7543 |21cr|python-uritools-2.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   uritools

Name:           python-%{oname}
Version:        2.2.0
Release:        2
Summary:        RFC 3986 compliant, Unicode-aware, scheme-agnostic replacement for urlparse
Source0:        http://pypi.python.org/packages/source/u/%{oname}/%{oname}-%{version}.tar.gz
License:        MIT
Group:          Development/Python
Url:            https://github.com/tkem/uritools/
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)

%description
This module defines RFC 3986 compliant replacements for the most
commonly used functions of the Python 2.7 Standard Library
``urlparse`` and Python 3 ``urllib.parse`` modules.

.. code-block:: pycon

    >>> from uritools import uricompose, urijoin, urisplit, uriunsplit
    >>> uricompose(scheme='foo', host='example.com', port=8042,
    ...            path='/over/there', query={'name': 'ferret'},
    ...            fragment='nose')
    'foo://example.com:8042/over/there?name=ferret#nose'
    >>> parts = urisplit(_)
    >>> parts.scheme
    'foo'
    >>> parts.authority
    'example.com:8042'
    >>> parts.getport(default=80)
    8042
    >>> parts.getquerydict().get('name')
    ['ferret']
    >>> urijoin(uriunsplit(parts), '/right/here?name=swallow#beak')
    'foo://example.com:8042/right/here?name=swallow#beak'

For various reasons, the Python 2 ``urlparse`` module is not compliant
with current Internet standards, does not include Unicode support, and
is generally unusable with proprietary URI schemes.  Python 3's
``urllib.parse`` improves on Unicode support, but the other issues still
remain.  As stated in `Lib/urllib/parse.py
<https://hg.python.org/cpython/file/3.5/Lib/urllib/parse.py>`_::

    RFC 3986 is considered the current standard and any future changes
    to urlparse module should conform with it.  The urlparse module is
    currently not entirely compliant with this RFC due to defacto
    scenarios for parsing, and for backward compatibility purposes,
    some parsing quirks from older RFCs are retained.

This module aims to provide fully RFC 3986 compliant replacements for
some commonly used functions found in ``urlparse`` and
``urllib.parse``, plus additional functions for conveniently composing
URIs from their individual components.

%package -n python3-%{oname}
Summary:        RFC 3986 compliant, Unicode-aware, scheme-agnostic replacement for urlparse

%description -n python3-%{oname}
This module defines RFC 3986 compliant replacements for the most
commonly used functions of the Python 2.7 Standard Library
``urlparse`` and Python 3 ``urllib.parse`` modules.

.. code-block:: pycon

    >>> from uritools import uricompose, urijoin, urisplit, uriunsplit
    >>> uricompose(scheme='foo', host='example.com', port=8042,
    ...            path='/over/there', query={'name': 'ferret'},
    ...            fragment='nose')
    'foo://example.com:8042/over/there?name=ferret#nose'
    >>> parts = urisplit(_)
    >>> parts.scheme
    'foo'
    >>> parts.authority
    'example.com:8042'
    >>> parts.getport(default=80)
    8042
    >>> parts.getquerydict().get('name')
    ['ferret']
    >>> urijoin(uriunsplit(parts), '/right/here?name=swallow#beak')
    'foo://example.com:8042/right/here?name=swallow#beak'

For various reasons, the Python 2 ``urlparse`` module is not compliant
with current Internet standards, does not include Unicode support, and
is generally unusable with proprietary URI schemes.  Python 3's
``urllib.parse`` improves on Unicode support, but the other issues still
remain.  As stated in `Lib/urllib/parse.py
<https://hg.python.org/cpython/file/3.5/Lib/urllib/parse.py>`_::

    RFC 3986 is considered the current standard and any future changes
    to urlparse module should conform with it.  The urlparse module is
    currently not entirely compliant with this RFC due to defacto
    scenarios for parsing, and for backward compatibility purposes,
    some parsing quirks from older RFCs are retained.

This module aims to provide fully RFC 3986 compliant replacements for
some commonly used functions found in ``urlparse`` and
``urllib.parse``, plus additional functions for conveniently composing
URIs from their individual components.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%doc CHANGES.rst
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/uritools
%{py3_puresitedir}/uritools*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7544 |21cr|python-urwid-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	urwid

Summary:	Full-featured Python console user interface library
Name: 		python-%{module}
Version:	2.1.2
Release:	1
Source0:	https://files.pythonhosted.org/packages/94/3f/e3010f4a11c08a5690540f7ebd0b0d251cc8a456895b7e49be201f73540c/urwid-2.1.2.tar.gz
License:	LGPL
Group: 		Development/Python
Url: 		http://excess.org/%{module}

%description
Urwid is a console user interface library. It includes many features
useful for text console application developers including :

* Applcations resize quickly and smoothly
* Automatic, programmable text alignment and wrapping
* Simple markup for setting text attributes within blocks of text
* Powerful list box with programmable content for scrolling all
  widget types
* Your choice of event loops: Twisted, Glib or built-in
  select-based loop
* Pre-built widgets include edit boxes, buttons, check
  boxes and radio buttons
* Display modules include raw, curses, and
  experimental LCD and web displays
* Support for UTF-8, simple 8-bit and CJK encodings
* 256 and 88 color mode support
* Python 3.2 support

%package -n python3-urwid
Summary:	Full-featured Python console user interface library
Group: 		Development/Python

BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description -n python3-urwid
Urwid is a console user interface library. It includes many features
useful for text console application developers including :

* Applcations resize quickly and smoothly
* Automatic, programmable text alignment and wrapping
* Simple markup for setting text attributes within blocks of text
* Powerful list box with programmable content for scrolling all
  widget types
* Your choice of event loops: Twisted, Glib or built-in
  select-based loop
* Pre-built widgets include edit boxes, buttons, check
  boxes and radio buttons
* Display modules include raw, curses, and
  experimental LCD and web displays
* Support for UTF-8, simple 8-bit and CJK encodings
* 256 and 88 color mode support
* Python 3.2 support

%prep
%setup -q -n %{module}-%{version}


%build
%setup_compile_flags
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{module}
%{py3_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7545 |21cr|python-urwid-readline-0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstream_name urwid_readline
Name:           python-urwid-readline
Version:        0.13
Release:        1%{?dist}
Summary:        A textbox edit widget for urwid that supports readline shortcuts
Group:          Development/Other
License:        MIT
URL:            https://github.com/rr-/urwid_readline
Source0:        %{url}/archive/%{version}/%{upstream_name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-devel
BuildRequires:  python3-pytest


%global _description %{expand:
A textbox edit widget for urwid that supports readline shortcuts.}


%description %_description

#-----------------------------------------------------------------
%package -n     python3-urwid-readline
Summary:        %{summary}
Group:          Development/Other

%description -n python3-urwid-readline %_description

%files -n python3-urwid-readline -f %{pyproject_files}
%doc README.md
%license LICENSE LICENSE.md

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{upstream_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{upstream_name}


%check
%pytest



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7546 |21cr|python-usbtmc-0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname usbtmc

Name:		python-%{srcname}
Version:	0.8
Release:	1
Summary:	Python implementation of the USBTMC protocol
Group:		Development/Python
License:	MIT
URL:		http://alexforencich.com/wiki/en/python-%{srcname}/start
Source0:	https://github.com/python-ivi/python-%{srcname}/archive/v%{version}.tar.gz#/python-%{srcname}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-numpy
BuildRequires:	python3-pyusb
BuildRequires:	python3-sphinx
BuildArch:	noarch

%description
Python USBTMC is a Python implementation of the
USBTMC instrument control protocol.

#-------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	Python implementation of the USBTMC protocol
Group:		Development/Python
Requires:	python3-pyusb

%description -n python3-%{srcname}
Python USBTMC is a Python implementation of the
USBTMC instrument control protocol.

%files -n python3-%{srcname}
%doc README.md AUTHORS
%license COPYING
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/*.egg-info/
%{_mandir}/man1/*

#------------------------------------------------------
%package doc
Summary:	HTML documentation of Python USBTMC
Group:		Documentation

%description doc
HTML documentation of Python USBTMC.

%files doc
%doc README.md AUTHORS doc/_build/html
%license COPYING

#------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

make man html -C doc
mkdir -p %{buildroot}%{_mandir}/man1
install -pm 644 doc/_build/man/python%{srcname}.1 %{buildroot}%{_mandir}/man1
rm -r doc/_build/html/.buildinfo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7547 |21cr|python-user-agents-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkg_name user-agents

Name:           python-%{pkg_name}
Version:        2.2.0
Release:        1
Summary:        A library to identify devices
Group:          Development/Python
License:        MIT
URL:            https://github.com/selwin/python-user-agents
Source0:        %{pypi_source user-agents}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%description
A library to identify devices (phones, tablets) and their capabilities by
parsing browser user agent strings.

#-------------------------------------------------------------
%package -n python3-%{pkg_name}
Summary:        A library to identify devices
Group:          Development/Python

%description -n python3-%{pkg_name}
A library to identify devices (phones, tablets) and their capabilities by
parsing browser user agent strings.

%files -n python3-%{pkg_name}  -f %{pyproject_files}
%license LICENSE.txt
%doc README.md

#-------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkg_name}-%{version}


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files user_agents


%check
#%%py3_check_import user_agents


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7548 |21cr|python-uTidylib-0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	uTidylib

Name:           python-%{module}
Version:	0.8
Release:	1
Summary:        Wrapper for HTML Tidy at http://tidy.sourceforge.net


Group:          Development/Python
License:        MIT
URL:            http://utidylib.berlios.de/
Source0:	https://files.pythonhosted.org/packages/1d/44/36422748de91739006f30e55a6525c269b290fce7301eaf4647c96627153/uTidylib-0.8.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:	tidy

%description
The Tidy wrapper. I am the main interface to TidyLib. This package supports
processing HTML with Tidy, with all the options that the tidy command line
supports.

%prep
%setup -n %{module}-%{version} -q


%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%clean

%files
%{py3_puresitedir}/tidy
%{py3_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7549 |21cr|python-utils-2.5.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name python-utils
%define module utils

Name:           python-%{module}
Version:        2.5.6
Release:        1
Summary:        Python Utils is a module with some convenient utilities
Group:          Development/Python
License:        BSD
URL:            https://github.com/WoLpH/python-utils
Source0:        %{pypi_source}
BuildArch:      noarch

%description
Python Utils is a module with some convenient utilities not included with the
standard Python install.

#------------------------------------------------------
%package -n     python3-%{module}
Summary:        %{summary}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest-runner)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(sphinx)

%description -n python3-%{module}
Python Utils is a module with some convenient utilities not included with the
standard Python install.


%files -n python3-%{module}
%doc README.rst html LICENSE
%{py3_puresitedir}/python_utils
%{py3_puresitedir}/python_utils-%{version}-py?.?.egg-info
#------------------------------------------------------

%prep
%setup -q

rm -rf *.egg-info
# Stop linting code and measuring coverage, this is upstream's business
sed -Ei '/--(cov|pep8|flake8)/d' pytest.ini
sed -Ezi 's/flake8.+=.+\n(\s*\S+\s*\n)*\n/\n/' pytest.ini

%build
%py3_build
# docs
sphinx-build-3 docs html
# clean
rm -rf html/{.doctrees,.buildinfo,*.inv}

%install
%py3_install
find %{buildroot} -type f -empty -delete

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7550 |21cr|python-uvloop-0.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname uvloop

Summary:        Ultra fast implementation of asyncio event loop on top of libuv
Name:           python-%{modname}
Version:        0.16.0
Release:        1
License:        MIT or ASL 2.0
Group:		Development/Python
Url:            https://github.com/MagicStack/uvloop
Source0:        https://github.com/MagicStack/uvloop/archive/v%{version}/%{modname}-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3dist(cython)
BuildRequires:  python3dist(setuptools)
BuildRequires:  pkgconfig(libuv)

%global _description \
uvloop is a fast, drop-in replacement of the built-in asyncio event loop.\
uvloop is implemented in Cython and uses libuv under the hood.

%description %{_description}

#----------------------------------------------------------------------------

%package -n python3-%{modname}
Summary:        %{summary}
Group:		Development/Python

%description -n python3-%{modname} %{_description}

%files -n python3-%{modname}
%doc README.rst
%license LICENSE-APACHE LICENSE-MIT
%{py3_platsitedir}/%{modname}-*.egg-info/
%{py3_platsitedir}/%{modname}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{modname}-%{version}
# always use cython to generate code
sed -i -e "/self.cython_always/s/False/True/" setup.py
# use system libuv
sed -i -e "/self.use_system_libuv/s/False/True/" setup.py
# To be sure, no 3rd-party stuff
rm -vrf vendor/

%build
%py3_build

%install
%py3_install
# https://github.com/MagicStack/uvloop/issues/70
rm -vf %{buildroot}%{py3_platsitedir}/%{modname}/_testbase.py
rm -vf %{buildroot}%{py3_platsitedir}/%{modname}/__pycache__/_testbase.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7551 |21cr|python-vatnumber-1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname vatnumber
%global sum Python module to validate VAT numbers

Name:		python-%{srcname}
Version:	1.2
Release:	6
Summary:	%{sum}
Group:		Development/Python
License:	GPLv3+
URL:		https://pypi.python.org/pypi/vatnumber
Source0:	https://pypi.python.org/packages/source/v/%{srcname}/%{srcname}-%{version}.tar.gz
Patch0:		vatnumber-1.2-py3.patch
BuildArch:	noarch

%description
%{sum}.

#--------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	%{sum}
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	python3-suds

%description -n python3-%{srcname}
%{sum}.

%files -n python3-%{srcname}
%doc COPYRIGHT LICENSE
%doc CHANGELOG README
%{py3_puresitedir}/*

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7552 |21cr|python-vcrpy-4.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname vcrpy

Name:               python-vcrpy
Version:	4.2.1
Release:	1
Summary:            Automatically mock your HTTP interactions to simplify and speed up testing

Group:              Development/Python
License:            MIT
URL:                https://pypi.io/project/vcrpy
Source0:	https://files.pythonhosted.org/packages/74/ae/642573c8f79999a6da22e78d80c53924e0faa140bfca3dcc41240dcd567f/vcrpy-4.2.1.tar.gz
BuildArch:          noarch
BuildRequires:      python3-devel
BuildRequires:      python3-setuptools
BuildRequires:      python3-yaml
BuildRequires:      python3-mock
BuildRequires:      python3-six
#BuildRequires:      python3-contextlib2
BuildRequires:      python3-wrapt
#BuildRequires:      python3-backport_collections

%description
Simplify and speed up testing HTTP by recording all HTTP interactions and
saving them to "cassette" files, which are yaml files containing the contents
of your requests and responses.  Then when you run your tests again, they all
just hit the text files instead of the internet.  This speeds up your tests and
lets you work offline.

If the server you are testing against ever changes its API, all you need to do
is delete your existing cassette files, and run your tests again.  All of the
mocked responses will be updated with the new API.

%package -n python3-vcrpy
Summary:            Automatically mock your HTTP interactions to simplify and speed up testing
Group:              Development/Python

Requires:           python3-yaml
Requires:           python3-mock
Requires:           python3-six
#Requires:           python3-contextlib2
Requires:           python3-wrapt
#Requires:           python3-backport_collections

%description -n python3-vcrpy
Simplify and speed up testing HTTP by recording all HTTP interactions and
saving them to "cassette" files, which are yaml files containing the contents
of your requests and responses.  Then when you run your tests again, they all
just hit the text files instead of the internet.  This speeds up your tests and
lets you work offline.

If the server you are testing against ever changes its API, all you need to do
is delete your existing cassette files, and run your tests again.  All of the
mocked responses will be updated with the new API.

%prep
%setup -q -n %{modname}-%{version}

sed -i "s/backport_collections/collections/g" vcr/filters.py
sed -i "s/backport_collections/collections/g" vcr/cassette.py
sed -i "s/, 'backport_collections'//g" setup.py

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info


%build
# Get rid of asyncio requirement for py2.x build
rm vcr/_handle_coroutine.py

%py3_build

%install
%py3_install

## Cannot run tests because they require python-pytest-localserver which is not
## yet packaged.
#%%check
#%%{__python2} setup.py test
#pushd %{py3dir}
#%%{__python3} setup.py test
#popd

%files -n python3-vcrpy
%doc README.rst LICENSE.txt
%{py3_puresitedir}/vcr/
%{py3_puresitedir}/%{modname}-%{version}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7553 |21cr|python-vcversioner-2.16.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module vcversioner

Summary:        Use version control tags to discover version numbers
Name:           python-%{module}
Version:        2.16.0.0
Release:        4
Group:          Development/Python
License:        ISC
Url:            https://github.com/habnabit/%{module}
Source0:        https://pypi.python.org/packages/source/v/%{module}/%{module}-%{version}.tar.gz
Source1:        version.txt

BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(future)

# diavol can...
Obsoletes:      python3-%{oname} < 2.16.0.0
Conflicts:      python3-%{oname}

BuildArch:      noarch

%description
Elevator pitch: you can write a setup.py with no version information
specified, and %{module} will find a recent, properly-formatted
VCS tag and extract a version from it.
#---------------------------------------------------

%package -n python3-%{module}
Summary:        Use version control tags to discover version numbers

%description -n python3-%{module}
Elevator pitch: you can write a setup.py with no version information
specified, and %{module} will find a recent, properly-formatted
VCS tag and extract a version from it.


%files -n python3-%{module}
%doc README.rst COPYING
%{py3_puresitedir}/%{module}.py*
%{py3_puresitedir}/__pycache__/%{module}.*.py*
%{py3_puresitedir}/%{module}-%{version}-py*.egg-info

#---------------------------------------------------

%prep
%setup -qn %{module}-%{version}
cp -a %{SOURCE1} .

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7554 |21cr|python-vdf-3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	vdf

Summary:	Module for working with VDF text format
Name:		python-%{module}
Version:	3.4
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/ValvePython/vdf
Source0:	https://github.com/ValvePython/vdf/archive/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Pure python module for (de)serialization to and from VDF text format; that
one works just like json.

#-----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Module for working with VDF text format
Group:		Development/Python
BuildRequires:	python3-coverage
BuildRequires:	python3-mock
BuildRequires:	python3-nose
BuildRequires:	python3-pytest
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3) >= 3.3
BuildArch:	noarch

%description -n python3-%{module}
Pure python module for (de)serialization to and from VDF text format; that
one works just like json. This package supports only python3.

%files -n python3-%{module}
%doc LICENSE README.rst
%{py3_puresitedir}/%{module}/*
%{py3_puresitedir}/%{module}-%{version}-py*.*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}


%build
%py3_build


%install
python3 setup.py install --skip-build --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7555 |21cr|python-venusian-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name venusian

Name:           python-%{pypi_name}
Version:        3.0.0
Release:        1
Summary:        A library for deferring decorator actions
Group:          Development/Python
License:        BSD
URL:            https://pypi.python.org/pypi/venusian
Source0:        https://pypi.python.org/packages/source/v/venusian/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-cov
BuildRequires:  python3-coverage
BuildRequires:  python3-setuptools

%description
Venusian is a library which allows framework authors to defer decorator
actions.  Instead of taking actions when a function (or class) decorator is
executed at import time, you can defer the action usually taken by the
decorator until a separate "scan" phase.

#------------------------------------------------------

%package -n python3-venusian
Summary:        A library for deferring decorator actions
Group:          Development/Python

%description -n python3-venusian
Venusian is a library which allows framework authors to defer decorator
actions.  Instead of taking actions when a function (or class) decorator is
executed at import time, you can defer the action usually taken by the
decorator until a separate "scan" phase.

%files -n python3-venusian
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}*.egg-info

#------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg info if it exists
rm -rf %{pypi_name}.egg-info


%build
%py3_build


%install
%py3_install


%check
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-3 -v --trace





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7556 |21cr|python-versiontools-1.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name versiontools

Name:           python-versiontools
Version:        1.9.1
Release:        4
Group:          Development/Python
Summary:        Smart replacement for plain tuple used in __version__

License:        LGPLv3
URL:            https://launchpad.net/versiontools
Source0:        http://pypi.python.org/packages/source/v/versiontools/versiontools-1.9.1.tar.gz

BuildArch:      noarch
BuildRequires:  python-devel
BuildRequires:  python-setuptools
BuildRequires:  python-sphinx
BuildRequires:  python-nose

%description
Smart replacement for plain tuple used in __version__

%prep
%setup -q -n %{pypi_name}-%{version}
# remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# generate html docs
sphinx-build doc html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%build
%{__python} setup.py build

%install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

%files
%doc html
%{python_sitelib}/%{pypi_name}
%{python_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7557 |21cr|python-veryprettytable-0.8.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	veryprettytable

Name:		python-%{module}
Version:	0.8.1
Release:	2
Summary:	Python library for easily displaying tabular data
License:	BSD
Group:		Development/Python
Url:		https://github.com/smeggingsmegger/VeryPrettyTable
Source0:	https://pypi.io/packages/source/v/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
A simple Python library for easily displaying tabular 
data in a visually appealing ASCII table format.
#-----------------------------------------------------

%package -n	python3-%{module}
Summary:	Python3 library for easily displaying tabular data
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
A simple Python3 library for easily displaying tabular 
data in a visually appealing ASCII table format.


%files -n python3-%{module}
%doc CHANGELOG COPYING
%{py3_puresitedir}/%{module}.py*
%{py3_puresitedir}/%{module}-%{version}-py*.egg-info
%{py3_puresitedir}/__pycache__/*

#-----------------------------------------------------
%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

find %{buildroot} -name '%{module}.py' -exec chmod +x {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7558 |21cr|python-vine-1.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name vine

Name:           python-%{pypi_name}
Version:        1.3.0
Release:        4
Summary:        Promises, promises, promises
Group:          Development/Python
License:        BSD
URL:            http://github.com/celery/vine
Source0:        https://pypi.python.org/packages/source/v/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(mock)
BuildRequires:  python3dist(case)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3dist(sphinx-celery)

%description
Python Promises.

%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name}
Python Promises.

%package -n python-%{pypi_name}-doc
Summary:        Vine documentation

%description -n python-%{pypi_name}-doc
Documentation for vine

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

# generate html docs
PYTHONPATH=${PWD} sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{pypi_name}
%doc LICENSE
%doc docs/templates/readme.txt README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

%files -n python-%{pypi_name}-doc
%doc html
%doc LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7559 |21cr|python-virtualenv-api-2.1.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name virtualenv-api
%global underscore_name virtualenv_api

Name:		python-%{pypi_name}
Version:	2.1.18
Release:	1
Summary:	An API for virtualenv/pip
Group:		Development/Python
License:	BSD
URL:		https://github.com/sjkingo/virtualenv-api
Source0:	https://pypi.io/packages/source/v/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

# Add tests and LICENSE missing in sources
Patch0:		add_tests_license.patch

BuildArch:	noarch

BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3-virtualenv
BuildRequires:	python3-six

%description
virtualenv-api - an API for virtualenv
Tool to create isolated Python environments. Unfortunately, 
it does not expose a native Python API. This package aims to 
provide an API in the form of a wrapper around virtualenv.

#----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	An API for virtualenv/pip
Group:		Development/Python
Requires:	python3-virtualenv

%description -n python3-%{pypi_name}
virtualenv-api - an API for virtualenv
Tool to create isolated Python environments. Unfortunately, 
it does not expose a native Python API. This package aims to 
provide an API in the form of a wrapper around virtualenv.

%files -n python3-%{pypi_name} 
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/virtualenvapi
%{py3_puresitedir}/%{underscore_name}-%{version}-py*.egg-info

#----------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7560 |21cr|python-voluptuous-0.11.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname voluptuous

Name:		python-%{srcname}
Version:	0.11.7
Release:	1
Summary:	A Python data validation library
Group:		Development/Python
License:	BSD
URL:		http://github.com/alecthomas/voluptuous
Source0:	https://github.com/alecthomas/voluptuous/archive/%{srcname}-%{version}.tar.gz

BuildArch: noarch
BuildRequires: python3-devel

%description
Voluptuous, despite the name, is a Python data validation library. It is 
primarily intended for validating data coming into Python as JSON, YAML, etc.


%package -n python3-%{srcname}
Summary: A Python data validation library
BuildRequires: python3-devel python3-setuptools

%description -n python3-%{srcname}
Voluptuous, despite the name, is a Python data validation library. It is 
primarily intended for validating data coming into Python as JSON, YAML, etc.

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%doc README.md
%doc COPYING
%{py3_puresitedir}/*




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7561 |21cr|python-waitress-1.4.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	waitress

Name:		python-%{oname}
Version:	1.4.1
Release:	4
Summary:	Waitress WSGI server
Source0:	http://pypi.python.org/packages/source/w/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		https://github.com/Pylons/waitress
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
Requires:	python3egg(setuptools)

%description
Waitress is meant to be a production-quality pure-Python WSGI server with very
acceptable performance.  It has no dependencies except ones which live in the
Python standard library.  It runs on CPython on Unix and Windows under Python
2.6+ and Python 3.2+.  It is also known to run on PyPy 1.6.0+ on UNIX.  It
supports HTTP/1.0 and HTTP/1.1.

For more information, see the "docs" directory of the Waitress package or
http://docs.pylonsproject.org/projects/waitress/en/latest/ .


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc README.rst
%{_bindir}/waitress-serve
%{py3_puresitedir}/waitress/*.py*
%{py3_puresitedir}/waitress/tests/*.py*
%{py3_puresitedir}/waitress/tests/fixtureapps/*.py*
%{py3_puresitedir}/waitress*.egg-info
%{py3_puresitedir}/waitress/tests/fixtureapps/groundhog1.jpg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7562 |21cr|python-waitress-1.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	waitress

Name:		python-%{oname}
Version:	1.4.1
Release:	5
Summary:	Waitress WSGI server
Source0:	http://pypi.python.org/packages/source/w/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		https://github.com/Pylons/waitress
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
Requires:	python3egg(setuptools)
Provides:	python3-%{oname} = %{EVRD}

%description
Waitress is meant to be a production-quality pure-Python WSGI server with very
acceptable performance.  It has no dependencies except ones which live in the
Python standard library.  It runs on CPython on Unix and Windows under Python
2.6+ and Python 3.2+.  It is also known to run on PyPy 1.6.0+ on UNIX.  It
supports HTTP/1.0 and HTTP/1.1.

For more information, see the "docs" directory of the Waitress package or
http://docs.pylonsproject.org/projects/waitress/en/latest/ .


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files
%doc README.rst
%{_bindir}/waitress-serve
%{py3_puresitedir}/waitress/*.py*
%{py3_puresitedir}/waitress/tests/*.py*
%{py3_puresitedir}/waitress/tests/fixtureapps/*.py*
%{py3_puresitedir}/waitress*.egg-info
%{py3_puresitedir}/waitress/tests/fixtureapps/groundhog1.jpg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7563 |21cr|python-wakeonlan-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module wakeonlan

Name:          python-%{module}
Version:	2.1.0
Release:	1
Summary:       A small python module for wake on lan
Group:         Development/Python
License:       WTFPL
URL:           https://pypi.org/project/wakeonlan/
Source0:	https://files.pythonhosted.org/packages/dc/40/eac9c66d5934ef99c69593cf32b75f6769aa05c034a1d9a6f3285a34120f/wakeonlan-2.1.0.tar.gz
BuildArch:     noarch

%description
A small python module for wake on lan.

%package -n python3-%module
Summary:       A small python 3 module for wake on lan
Group:         Development/Python
BuildRequires: pkgconfig(python3)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(setuptools-scm)

%description -n python3-%module
A small python 3 module for wake on lan.

%prep
%setup -qn %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

sed -i 's|~= 1.15.7|>= 1.15.7|' setup.py

%build
%py3_build

%install
%py3_install

%files -n python3-%module
%doc README.rst
%{_bindir}/%{module}
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7564 |21cr|python-Wand-0.6.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Wand

Summary:        Ctypes-based simple MagickWand API binding for Python
Name:           python-Wand
Version:        0.6.13
Release:        1
License:        MIT
Group:          Development/Python
Url:            http://wand-py.org/
Source0:        %{pypi_source}

BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(wheel)
BuildRequires:  python3dist(pip)
BuildArch:      noarch

%description
%{summary}.

#------------------------------------------------------------------

%package -n python3-Wand
Summary:        %{summary}
Group:          Development/Python

%description -n python3-Wand
%{summary}.

%files -n python3-Wand -f %{pyproject_files}
%doc README.rst

#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files wand

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7565 |21cr|python-warlock-1.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-warlock
Version:	1.3.3
Release:	1
Summary:	Python object model built on top of JSON schema
Group:          Development/Python
License:	ASL 2.0
URL:		https://pypi.org/project/warlock/
Source0:	https://pypi.io/packages/source/w/warlock/warlock-%{version}.tar.gz
BuildArch:	noarch

%description
Build self-validating python objects using JSON schemas.

%package -n     python3-warlock
Summary:        Python 3 object model built on top of JSON schema
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:	python3egg(jsonpatch)
BuildRequires:  python3dist(repoze.lru)
BuildRequires:	python3egg(jsonschema)
Requires:	python3egg(jsonschema)

%description -n python3-warlock
Build self-validating python objects using JSON schemas.

%prep
%setup -q -n warlock-%{version}

# Remove bundled egg-info
rm -rf warlock.egg-info

# Let RPM handle deps
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
rm -f requirements.txt

%build
%py3_build

%check
python3 setup.py test

%install
%py3_install

%files -n python3-warlock
%doc README.md
%{py3_puresitedir}/warlock
%{py3_puresitedir}/warlock-%{version}-py?.?.egg-info




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7566 |21cr|python-watchdog-2.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	watchdog

Name:		python-%{module}
Version:	2.1.9
Release:	1
Summary:	File system events monitoring
Group:		Development/Python
License:	ASL 2.0 and BSD and MIT
URL:		http://pypi.python.org/pypi/watchdog
Source0:	https://files.pythonhosted.org/packages/42/f7/da8e889f8626786eac9454e8d2718fc79359ed517be20cdd50c647167d39/watchdog-2.1.9.tar.gz
BuildArch:	noarch

%description
A Python API and shell utilities to monitor file system events.

%package -n	python3-%{module}
Summary:	File system events monitoring
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools

%description -n	python3-%{module}
A Python 3 API and shell utilities to monitor file system events.

%prep
%setup -q -n %{module}-%{version}

# Remove all shebangs
find src -name "*.py" | xargs sed -i -e '/^#!\//, 1d'

# Remove +x of the README file
chmod -x README.rst

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install
cp %{buildroot}%{_bindir}/watchmedo %{buildroot}%{_bindir}/python3-watchmedo

%files -n python3-%{module}
%doc README.rst LICENSE
%{_bindir}/*watchmedo
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7567 |21cr|python-wcwidth-0.1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module wcwidth

Name:           python-%{module}
Version:        0.1.7
Release:        2
Summary:        Measures number of terminal column cells of wide-character codes
Group:          Development/Python
License:        MIT
URL:            https://github.com/jquast/wcwidth
Source0:        https://pypi.python.org/packages/source/w/wcwidth/%{module}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)

%description
This library is mainly for those implementing a terminal emulator,
or programs that carefully produce output to be interpreted by one.

%package -n     python3-%{module}
Summary:        Measures number of terminal column cells of wide-character codes
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
This library is mainly for those implementing a terminal emulator,
or programs that carefully produce output to be interpreted by one.

%prep
%setup -q -n %{module}-%{version}

rm -rf %{py3dir}
cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

pushd %{py3dir}
%py3_install 
popd

%files
%doc LICENSE.txt README.rst
%{py_puresitedir}/%{module}
%{py_puresitedir}/%{module}-*-py*.egg-info

%files -n python3-%{module}
%doc LICENSE.txt README.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-*-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7568 |21cr|python-wcwidth-0.1.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module wcwidth

Name:           python-%{module}
Version:        0.1.7
Release:        3
Summary:        Measures number of terminal column cells of wide-character codes
Group:          Development/Python
License:        MIT
URL:            https://github.com/jquast/wcwidth
Source0:        https://pypi.python.org/packages/source/w/wcwidth/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
This library is mainly for those implementing a terminal emulator,
or programs that carefully produce output to be interpreted by one.

%package -n     python3-%{module}
Summary:        Measures number of terminal column cells of wide-character codes
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
This library is mainly for those implementing a terminal emulator,
or programs that carefully produce output to be interpreted by one.

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install 

%files -n python3-%{module}
%doc LICENSE.txt README.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-*-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7569 |21cr|python-weasyprint-54.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name weasyprint

Name:           python-weasyprint
Version:        54.1
Release:        1
Group:          Development/Python
Summary:        WeasyPrint converts web documents to PDF
License:        MIT
URL:            https://pypi.python.org/pypi/weasyprint
Source0:        %{pypi_source}
Patch0:         weasyprint-deps.patch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest-runner)
BuildRequires:  pyproject-rpm-macros
BuildRequires:  pkgconfig(pangocairo)
BuildArch:      noarch

# for autoinstall BuildRequires
%generate_buildrequires
%pyproject_buildrequires -r

%description
WeasyPrint converts web documents to PDF.

#-------------------------------------------------------------
%package -n python3-weasyprint
Summary:        WeasyPrint converts web documents to PDF
Group:          Development/Python
Obsoletes:      weasyprint < 48
Provides:       weasyprint = %{version}-%{release}

%description -n python3-weasyprint
WeasyPrint converts web documents to PDF.

%files -n python3-weasyprint -f %{pyproject_files}
%doc README*
%{_bindir}/weasyprint

#-------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# drop bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7570 |21cr|python-webdav-0.9.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pyname	PyWebDAV

Name:		python-webdav
Summary:	Python WebDAV library
Version:	0.9.8
Release:	4
License:	GPLv2
Group:		Development/Python
URL:		http://code.google.com/p/pywebdav/
Source0:	http://pywebdav.googlecode.com/files/%{pyname}-%{version}.tar.gz
BuildRequires:	python2-setuptools
BuildArch:	noarch

%description
Python WebDAV implementation (level 1 and 2) that features a library
that enables you to integrate WebDAV server capabilities to your application.

%package -n python2-webdav
%py2_migration_meta python2-webdav
Summary:	Python WebDAV library

%description -n python2-webdav
Python WebDAV implementation (level 1 and 2) that features a library
that enables you to integrate WebDAV server capabilities to your application.


%prep
%setup -q -n %{pyname}-%{version}

%build

%install
PYTHONNDONTWRITEBYTECODE= python2 setup.py install --root=%{buildroot}

%files -n python2-webdav
%{_bindir}/davserver
%{py2_puresitedir}/*
%doc README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7571 |21cr|python-weberror-0.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	WebError

Summary:	Web error handling and exception catching for Python
Name:		python-weberror
Version:	0.13.1
Release:	1
Source0:	https://pypi.io/packages/source/W/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://pypi.python.org/pypi/WebError/
BuildArch:	noarch
BuildRequires:	python3-setuptools
Requires:	python3-tempita
Requires:	python3-webob
Requires:	python3-pygments
Requires:	python3-paste >= 1.7.1
Provides:	python3-weberror = %{EVRD}

%description 
This package provides Python libraries for web error handling and
exception catching.

%files
%doc CHANGELOG LICENSE
%{py3_puresitedir}/*

#-------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%install
find . -type f -exec chmod 644 {} \;
find . -type d -exec chmod 755 {} \;
%__python3 setup.py install --root=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7572 |21cr|python-webhelpers-1.3-0.b1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname WebHelpers
%define rel	b1

Summary:	Helper functions for writing web applications
Name:		python-webhelpers
Version:	1.3
Release:	0.%rel.1
Source0:        http://pypi.python.org/packages/source/W/%{tarname}/%{tarname}-%{version}%{rel}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://sluggo.scrapping.cc/python/WebHelpers/
BuildArch:	noarch
Requires:	python3-markupsafe >= 0.9.2
BuildRequires:	python3-setuptools
BuildRequires:	python3-sphinx
Provides:	python3-webhelpers

%description
Web Helpers is a library of helper functions intended to make writing
web applications easier. It's the standard function library for Pylons
and TurboGears 2, but can be used with any web framework. It also
contains a large number of functions not specific to the web,
including text processing, number formatting, date calculations,
container objects, etc.

WebHelpers itself depends only on MarkupSafe, but certain helpers
depend on third-party packages as described in the docs.

%prep
%setup -q -n %{tarname}-%{version}%{rel}

%install
python3 setup.py install --root=%{buildroot}
pushd docs
export PYTHONPATH=`dir -d ../build/lib*`
make html
rm -f _build/html/.buildinfo
popd 

%files
%doc CHANGELOG LICENSE README.txt TODO docs/_build/html
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7573 |21cr|python-webpy-0.37-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkgname webpy
%global srcname web.py

Name:		python-%{pkgname}
Version:	0.37
Release:	7
Summary:	A simple web framework for Python
Group:		Development/Python

# The entire source code is Public Domain save for the following exceptions:
#   web/debugerror.py (Modified BSD)
#     This is from django
#     See http://code.djangoproject.com/browser/django/trunk/LICENSE
#   web/httpserver.py (Modified BSD)
#     This is from WSGIUtils/lib/wsgiutils/wsgiServer.py
#     See http://www.xfree86.org/3.3.6/COPYRIGHT2.html#5
License:		Public Domain and BSD

URL:			http://webpy.org/
Source0:		http://webpy.org/static/%{srcname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python2)
BuildArch:		noarch
#Requires:		python2-cherrypy

%description
web.py is a web framework for python2 that is as simple as it is
powerful. web.py is in the public domain; you can use it for whatever
purpose with absolutely no restrictions. 

%package -n python2-%{pkgname}
%py2_migration_meta python2-%{pkgname}
Summary:	A simple web framework for Python

%description -n python2-%{pkgname}
web.py is a web framework for python that is as simple as it is
powerful. web.py is in the public domain; you can use it for whatever
purpose with absolutely no restrictions. 


%prep
%setup -q -n web.py-%{version}
chmod 0755 web/wsgiserver/ssl_builtin.py
chmod 0755 web/wsgiserver/ssl_pyopenssl.py
chmod 0755 web/wsgiserver/__init__.py

%build
%{__python2} setup.py build

%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}


%files -n python2-%{pkgname}
%doc PKG-INFO
%{python2_sitelib}/web
%{python2_sitelib}/%{srcname}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7574 |21cr|python-websocket-client-0.51.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	websocket-client
%define eggname websocket_client

Name:		python-%{oname}
Version:	0.51.0
Release:	3
Summary:	WebSocket client for python. hybi13 is supported
Source0:	https://pypi.python.org/packages/source/w/%{oname}/%{eggname}-%{version}.tar.gz
License:	LGPLv2
Group:		Development/Python
Url:		https://github.com/liris/websocket-client
BuildArch:	noarch

%description
python-websocket-client module is WebSocket client for python. This
provides the low level APIs for WebSocket. All APIs are the synchronous
functions.
python-websocket-client supports only hybi-13.

#-------------------------------------------------------------------

%package -n     python3-%{oname}
Summary:        WebSocket client for python. hybi13 is supported
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six)

%description -n python3-%{oname}
WebSocket client for python. hybi13 is supported

%files -n python3-%{oname}
%doc ChangeLog
%doc README.rst
%{_bindir}/python3-wsdump
%{_bindir}/wsdump
%{py3_puresitedir}/websocket*

#-------------------------------------------------------------------

%prep
%setup -q -n %{eggname}-%{version}

%build
%py3_build

%install
%py3_install
cp %{buildroot}/%{_bindir}/wsdump.py \
    %{buildroot}/%{_bindir}/python3-wsdump

mv %{buildroot}/%{_bindir}/wsdump.py \
    %{buildroot}/%{_bindir}/wsdump

# remove tests that got installed into the buildroot
rm -rf %{buildroot}/%{py3_puresitedir}/tests/

# Remove executable bit from installed files.
find %{buildroot}/%{py3_puresitedir} -type f -exec chmod -x {} \;

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7575 |21cr|python-websockets-10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name websockets

# gi-find-deps.sh is very slow but is not needed here, it may be installed locally
%define __typelib_path %{nil}

Name:           python-%{pypi_name}
Version:	10.1
Release:	1
Summary:        An implementation of the WebSocket Protocol for python with asyncio
License:        BSD
Group:          Development/Python
URL:            https://github.com/aaugustin/websockets
Source0:        https://github.com/aaugustin/websockets/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  gcc

%global _description \
websockets is a library for developing WebSocket servers and clients in\
Python. It implements RFC 6455 with a focus on correctness and simplicity. It\
passes the Autobahn Testsuite.\
\
Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it\
provides an API based on coroutines, making it easy to write highly concurrent\
applications.

%description %{_description}

#-------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/%{pypi_name}

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1
# Remove upstream's egg-info
rm -vrf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install
# Remove installed C file
rm -vf %{buildroot}%{python3_sitearch}/%{pypi_name}/speedups.c

%check
# Skip tests because they fail on Python 3.8. See: https://github.com/aaugustin/websockets/issues/648
# WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100 %%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7576 |21cr|python-webunit-1.3.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _name webunit

Summary:   Unittest Your Websites With Code That Acts Like a Web Browser
Name:      python-%{_name}
Version:   1.3.10
Release:   3
Source0:   %{_name}-%{version}.tar.gz
License:   BSD
Group:     Development/Python
URL:       http://mechanicalcat.net/tech/webunit/
BuildRequires: python3 python3-devel
BuildArch: noarch

%description
Webunit is a framework for unit testing websites:
- Browser-like page fetching including fetching the images and stylesheets
  needed for a page and following redirects
- Cookies stored and trackable (all automatically handled)
- HTTP, HTTPS, GET, POST, basic auth all handled, control over expected
  status codes, ...
- DOM parsing of pages to retrieve and analyse structure, including simple
  form re-posting
- Two-line page-fetch followed by form-submit possible, with error checking
- Ability to register error page content across multiple tests
- Uses python's standard unittest module as the underlying framework
- May also be used to regression-test sites, or ensure their ongoing
  operation once in production (testing login processes work, etc.)

%package -n python3-%{_name}
Summary:   Unittest Your Websites With Code That Acts Like a Web Browser

%description -n python3-%{_name}
Webunit is a framework for unit testing websites:
- Browser-like page fetching including fetching the images and stylesheets
  needed for a page and following redirects
- Cookies stored and trackable (all automatically handled)
- HTTP, HTTPS, GET, POST, basic auth all handled, control over expected
  status codes, ...
- DOM parsing of pages to retrieve and analyse structure, including simple
  form re-posting
- Two-line page-fetch followed by form-submit possible, with error checking
- Ability to register error page content across multiple tests
- Uses python's standard unittest module as the underlying framework
- May also be used to regression-test sites, or ensure their ongoing
  operation once in production (testing login processes work, etc.)


%prep
%setup -n %{_name}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install \
   --prefix=%{_prefix} \
   --root=%{buildroot}

%clean

%files -n python3-%{_name}
%doc *.txt
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7577 |21cr|python-whichcraft-0.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	whichcraft

Name:		python-%{module}
Version:	0.6.1
Release:	1
Summary:	Provides cross-platform cross-python shutil.which functionality
Source0:	https://files.pythonhosted.org/packages/67/f5/546c1494f1f8f004de512b5c9c89a8b7afb1d030c9307dd65df48e5772a3/whichcraft-0.6.1.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/pydanny/%{module}
BuildArch:	noarch

%description
This package provides cross-platform
cross-python ``shutil.which`` functionality.

#------------------------------------------------

%package -n python3-%{module}
Summary: Provides cross-platform cross-python3 shutil.which functionality  
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
This package provides cross-platform
cross-python3 ``shutil.which`` functionality.

%files -n python3-%{module}
%doc *.rst
%{py3_puresitedir}/%{module}.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/%{module}*.egg-info
#------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7578 |21cr|python-widgetsnbextension-4.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	widgetsnbextension

Name:		python-widgetsnbextension
Summary:	IPython HTML widgets for Jupyter
Version:	4.0.7
Release:	1
Source0:	%{pypi_source}
URL:		http://ipython.org/
Group:		Development/Python
License:	BSD
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	pyproject-rpm-macros

%description
Interactive HTML widgets for Jupyter notebooks.
This is the Python2 version.

#--------------------------------------------------------
%package -n python3-widgetsnbextension
Summary:	IPython HTML widgets for Jupyter
Group:		Development/Python
Requires:	widgetsnbextension = %{EVRD}

%description -n python3-widgetsnbextension
Interactive HTML widgets for Jupyter notebooks.
This is the Python3 version.

%files -n python3-widgetsnbextension
%{python3_sitelib}/
#--------------------------------------------------------
%package -n widgetsnbextension
Summary:	IPython HTML widgets for Jupyter
Group:		Development/Python

%description -n widgetsnbextension
Interactive HTML widgets for Jupyter notebooks.
Common js files.

%files -n widgetsnbextension
%{_sysconfdir}/jupyter/nbconfig/notebook.d/widgetsnbextension.json
%{_datadir}/jupyter/nbextensions/jupyter-js-widgets/extension.js
%{_datadir}/jupyter/nbextensions/jupyter-js-widgets/extension.js.map
%{_datadir}/jupyter/nbextensions/jupyter-js-widgets/extension.js.LICENSE.txt
#--------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

# move widgetsnbextension.json to right place
mv %{buildroot}%{_prefix}%{_sysconfdir} %{buildroot}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7579 |21cr|python-wifi-0.5.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python binding for the wireless extensions
Name:		python-wifi
Version:	0.5.0
Release:	6
URL:		https://developer.berlios.de/projects/pythonwifi/
Source0:	http://download.berlios.de/pythonwifi/%{name}-%{version}.tar.bz2
#python2-wifi is licensed under LGPLv2+, however, the examples
#(e.g. iwconfig.py and iwlist.py) are licensed under GPLv2+
License:	LGPLv2+ and GPLv2+
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	python2-devel
BuildRequires:	python2-setuptools

%description
Python-Wifi is a Python library that provides access to information about a
W-LAN card's capabilities, like the wireless extensions written in C.

%package -n python2-wifi
%py2_migration_meta python2-wifi
Summary:	Python binding for the wireless extensions

%description -n python2-wifi
Python-Wifi is a Python library that provides access to information about a
W-LAN card's capabilities, like the wireless extensions written in C.


%prep
%setup -q
#Remove shebang
sed -i -e '/^#!\//, 1d' {tests/output_diff.sh,examples/*.py}
#Fix permissions
chmod -x {tests/output_diff.sh,examples/*.py}
# Convert to utf-8
for file in docs/AUTHORS; do
    mv $file timestamp
    iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
    touch -r timestamp $file
done

# fix permissions:
chmod 644 docs/* README tests/*
chmod 755 docs/logos tests

%build
%{__python2} setup.py build


%install
%{__python2} setup.py install --skip-build --root="%{buildroot}"

#Delete the doc files, wrong location
rm -rf %{buildroot}/usr/{INSTALL,README}
rm -rf %{buildroot}/usr/docs

# move the examples
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
mv %{buildroot}/usr/examples %{buildroot}%{_defaultdocdir}/%{name}/
rm -rf %{buildroot}/usr/examples
# copy tests
cp -pr tests %{buildroot}%{_defaultdocdir}/%{name}/

#Move the man pages
mkdir -p %{buildroot}%{_mandir}
mv %{buildroot}/usr/man/man8  %{buildroot}%{_mandir}
rm -fr %{buildroot}/usr/man

%files -n python2-wifi
%doc README docs/AUTHORS docs/BUGS docs/ChangeLog
%doc docs/LICENSE* docs/NEWS docs/ROADMAP docs/TODO docs/VERSION
%doc docs/*.txt
%{_mandir}/man8/iw*.*
%{_docdir}/python-wifi
%{python2_sitelib}/pythonwifi
%{python2_sitelib}/python_wifi-%{version}-py%{py2_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7580 |21cr|python-WSGIProxy2-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name WSGIProxy2
%global package_name wsgiproxy

Name:           python-%{pypi_name}
Version:        0.5.1
Release:        1
Summary:        WSGI Proxy that supports several HTTP backends
Group:          Development/Python
License:        MIT
URL:            https://github.com/gawel/WSGIProxy2/
Source0:        https://pypi.python.org/packages/source/W/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%global _description\
WSGI Proxy that supports several HTTP backends.

%description %_description

#-------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        WSGI Proxy that supports several HTTP backends
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-webob
Requires:       python3-six

%description -n python3-%{pypi_name} %_description
Python 3 version.

%files -n python3-%{pypi_name}
%doc README_fixt.py README.rst
%{python3_sitelib}/%{package_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/

#-------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7581 |21cr|python-wsme-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define srcname wsme
%define srcname_cap WSME

Name:		python-%{srcname}
Version:	0.10.0
Release:	1
Summary:	Simplify the writing of REST APIs, and extend them with additional protocols
Group:		Development/Python
License:	ASL 2.0
URL:		https://pypi.python.org/pypi/wsme
Source:		https://pypi.io/packages/source/W/%{srcname_cap}/%{srcname_cap}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pbr)

BuildArch:      noarch

%description
Web Services Made Easy (WSME) simplifies the writing of REST web services by
providing simple yet powerful typing, removing the need to directly
manipulate the request and the response objects.

WSME can work standalone or on top of your favorite Python web
(micro)framework, so you can use both your preferred way of routing your REST
requests and most of the features of WSME that rely on the typing system like:

- Alternate protocols, including those supporting batch-calls
- Easy documentation through a Sphinx extension

WSME is originally a rewrite of TGWebServices with a focus on extensibility,
framework-independance and better type handling.

#-------------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        Simplify the writing of REST APIs, and extend them with additional protocols

%description -n python3-%{srcname}
Web Services Made Easy (WSME) simplifies the writing of REST web services by
providing simple yet powerful typing, removing the need to directly
manipulate the request and the response objects.

WSME can work standalone or on top of your favorite Python web
(micro)framework, so you can use both your preferred way of routing your REST
requests and most of the features of WSME that rely on the typing system like:

- Alternate protocols, including those supporting batch-calls
- Easy documentation through a Sphinx extension

WSME is originally a rewrite of TGWebServices with a focus on extensibility,
framework-independance and better type handling.

%files -n python3-%{srcname}
%doc README.rst ChangeLog AUTHORS LICENSE
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}ext
%{python3_sitelib}/%{srcname_cap}*

#-------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname_cap}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7582 |21cr|python-wsproto-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name wsproto

Name:           python-%{pypi_name}
Version:        1.0.0
Release:        1
Summary:        WebSockets state-machine based protocol implementation
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/wsproto/
Source0:        https://pypi.python.org/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(h11) >= 0.9


BuildArch:      noarch

%description
WebSockets state-machine based protocol implementation
#----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        WebSockets state-machine based protocol implementation
Group:          Development/Python
Requires:       python3egg(h11) >= 0.9

%description -n python3-%{pypi_name}
WebSockets state-machine based protocol implementation

%files -n python3-%{pypi_name}
%doc README.rst html LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-*.egg-info
#----------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build
export PYTHONPATH=build/lib
sphinx-build docs/source html

rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3 --verbose

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7583 |21cr|python-wtforms-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	WTForms

Name:		python-wtforms
Version:	3.0.1
Release:	1
Summary:	A flexible forms validation and rendering library for Python web development
Source0:	https://pypi.python.org/packages/source/W/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://wtforms.readthedocs.io/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(babel)
BuildRequires:	python3egg(wheel)

%description
WTForms
=======

WTForms is a flexible forms validation and rendering library for Python
web development. It is `framework agnostic`_ and can work with whatever
web framework and template engine you choose. There are various
community libraries that provide closer integration with popular
frameworks.

#------------------------------------------------------------------
%package -n python3-wtforms
Summary:	A flexible forms validation and rendering library for Python web development
Group:		Development/Python

%description -n python3-wtforms
WTForms
=======

WTForms is a flexible forms validation and rendering library for Python
web development. It is `framework agnostic`_ and can work with whatever
web framework and template engine you choose. There are various
community libraries that provide closer integration with popular
frameworks.


%files -n python3-wtforms
%doc CHANGES.rst
%doc LICENSE.rst
%doc README.rst
%doc docs/changes.rst
%doc docs/faq.rst
%{py3_puresitedir}/wtforms/*
%{py3_puresitedir}/WTForms*.egg-info

#----------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7584 |21cr|python-wurlitzer-3.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name wurlitzer

Name:           python-%{pypi_name}
Version:        3.0.3
Release:        1
Summary:        Capture C-level output in context managers
Group:          Development/Python
License:        MIT
URL:            https://github.com/minrk/wurlitzer
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
Capture C-level stdout/stderr pipes in Python via os.dup2.

#---------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Capture C-level stdout/stderr pipes in Python via os.dup2.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#---------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7585 |21cr|python-wxpython4-kicad-4.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkgname wxpython4
%global srcname wxPython

Summary:	Implementation of wxPython for use python plugins in kicad
Name:		python-wxpython4-kicad
Version:	4.2.1
Release:	2
# wxPython is licensed under the wxWidgets license. The only exception is
# the pubsub code in wx/lib/pubsub which is BSD licensed. Note: wxPython
# includes a bundled copy of wxWidgets in ext/wxWidgets which has a few
# bits of code that use other licenses. This source is not used in the
# Fedora build, except for the interface headers in ext/wxWidgets/interface
# and the doxygen build scripts.
License:	wxWidgets and BSD
Group:		Development/Python
Url:		https://www.wxpython.org/
Source0:	https://files.pythonhosted.org/packages/source/w/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	waf
BuildRequires:	wxgtku3.2-devel
BuildRequires:	python3dist(attrdict)
BuildRequires:	python3dist(pillow)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sip)
BuildRequires:	python3dist(six)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)

%description
wxPython4 is a is a new implementation of wxPython focused on improving speed,
maintainability and extensibility. Just like "Classic" wxPython it wraps the
wxWidgets C++ toolkit and provides access to the user interface portions of the
wx API, enabling Python applications to have a GUI on Windows, Macs or Unix
systems with a native look and feel and requiring very little (if any) platform
specific code.
This package is needed for use python plugins in kicad 7+ which required wxgtk >= 3.2.

#-------------------------------------------------------------------------

%package -n python3-%{pkgname}-kicad
Summary:	Implementation of wxPython for use python plugins in kicad
Group:		Development/Python
Requires:	python3-sip4-wx
Requires:	python3dist(pillow)
Requires:	python3dist(six)
Provides:	python3-wxpython4 = %{EVRD}
Conflicts:	python3-wxpython4 < %{EVRD}
Obsoletes:	python3-wxpython4 < %{EVRD}

%description -n python3-%{pkgname}-kicad
wxPython4 is a is a new implementation of wxPython focused on improving speed,
maintainability and extensibility. Just like "Classic" wxPython it wraps the
wxWidgets C++ toolkit and provides access to the user interface portions of the
wx API, enabling Python applications to have a GUI on Windows, Macs or Unix
systems with a native look and feel and requiring very little (if any) platform
specific code.
This package is needed for use python plugins in kicad 7+ which required wxgtk >= 3.2.

%files -n python3-%{pkgname}-kicad
%license license/*
%{python3_sitearch}/*

#------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

rm -rf wx/py/tests
rm -f docs/sphinx/_downloads/i18nwxapp/i18nwxapp.zip
cp -a wx/lib/pubsub/LICENSE_BSD_Simple.txt license
# Remove env shebangs from various files
sed -i -e '/^#!\//, 1d' demo/*.py{,w}
sed -i -e '/^#!\//, 1d' demo/agw/*.py
sed -i -e '/^#!\//, 1d' docs/sphinx/_downloads/i18nwxapp/*.py
sed -i -e '/^#!\//, 1d' samples/floatcanvas/*.py
sed -i -e '/^#!\//, 1d' samples/mainloop/*.py
sed -i -e '/^#!\//, 1d' samples/ribbon/*.py
sed -i -e '/^#!\//, 1d' wx/py/*.py
sed -i -e '/^#!\//, 1d' wx/tools/*.py
# Fix end of line encodings
sed -i 's/\r$//' docs/sphinx/_downloads/*.py
sed -i 's/\r$//' docs/sphinx/rest_substitutions/snippets/python/contrib/*.py
sed -i 's/\r$//' docs/sphinx/rest_substitutions/snippets/python/converted/*.py
sed -i 's/\r$//' docs/sphinx/_downloads/i18nwxapp/locale/I18Nwxapp.pot
sed -i 's/\r$//' docs/sphinx/make.bat
sed -i 's/\r$//' docs/sphinx/phoenix_theme/theme.conf
sed -i 's/\r$//' samples/floatcanvas/BouncingBall.py
# Remove spurious executable perms
chmod -x demo/*.py
chmod -x samples/mainloop/mainloop.py
chmod -x samples/printing/sample-text.txt
# Remove empty files
find docs/sphinx/rest_substitutions/snippets/python/converted -size 0 -delete
# Convert files to UTF-8
for file in demo/TestTable.txt docs/sphinx/_downloads/i18nwxapp/locale/I18Nwxapp.pot docs/sphinx/class_summary.pkl docs/sphinx/wx.1moduleindex.pkl; do
	iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file &&	\
	touch -r $file $file.new &&	\
	mv $file.new $file
done

# Fix libdir otherwise additional wx libs cannot be found, fix default optimization flags
sed -i -e 's|/usr/lib|%{_libdir}|' -e 's|-O3|-O2|' buildtools/config.py
sed -i -e 's|/usr/lib|%{_libdir}|' -e 's|-O3|-O2|' etg/config.py

%build
# build_py for https://gitlab.com/kicad/code/kicad/-/issues/14266#note_1450474388
DOXYGEN=%{_bindir}/doxygen WAF=%{_bindir}/waf %{__python3} -u build.py build_py --use_syswx --gtk3

%install
%{__python3} build.py install_py --destdir=%{buildroot}
rm -f %{buildroot}%{_bindir}/*
# Remove locale files (they are provided by wxWidgets)
rm -rf %{buildroot}%{python3_sitearch}/wx/locale

# For kicad in contrib
rm -rf %{buildroot}%{python3_sitearch}/wx/*media*
rm -rf %{buildroot}%{python3_sitearch}/wx/__pycache__/*media*
rm -rf %{buildroot}%{python3_sitearch}/wx/*html2*
rm -rf %{buildroot}%{python3_sitearch}/wx/__pycache__/*html2*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7586 |21cr|python-xapp-2.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name xapp

Summary:        Python bindings for %{pypi_name}s
Group:          Development/Python
Name:           python-%{pypi_name}
Version:	2.2.2
Release:	1
License:        GPLv2
URL:            https://github.com/linuxmint/%{name}
Source0:        %url/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:   pkgconfig(python3)
BuildRequires:   python3egg(setuptools)

BuildArch:      noarch

%description
Python3 bindings for xapps.

#-------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        Python bindings for %{pypi_name}s
Group:          Development/Python
Requires:       python3egg(psutil)
Provides:       python-%{pypi_name} = %{EVRD}

%description -n python3-%{pypi_name}
Python3 bindings for xapps.

%files -n python3-%{pypi_name}
%doc COPYING
%{py3_puresitedir}/%{pypi_name}/
%{py3_puresitedir}/python_%{pypi_name}-*-py*.egg-info

#-------------------------------------------------------------

%prep
%setup -q -n python3-%{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

chmod +x %{buildroot}%{py3_puresitedir}/%{pypi_name}/{GSettingsWidgets,SettingsWidgets}.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7587 |21cr|python-xarfile-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyxar
%define name python-xarfile
%define version 0.4
%define release 8

Summary: Python bindings for XAR, the eXtensible ARchiver
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{oname}-%{version}.tar.gz
Patch0: pyxar-0.4-fix-build.patch
Url: http://code.google.com/p/xar
License: BSD
Group: Development/Python
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
Provides: pyxar
BuildRequires: libxar-devel
BuildRequires: python-devel
BuildRequires: python-pyrex
Requires: python-base

%description
Python bindings for XAR, the eXtensible ARchiver.

%prep
%setup -qn %{oname}-%{version}
%patch0 -p0

%build
env CFLAGS="$RPM_OPT_FLAGS" python setup.py build

%install
python setup.py install --root=$RPM_BUILD_ROOT

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{py_platsitedir}/*.so
%{py_platsitedir}/*egg-info


%changelog
* Mon Nov 08 2010 Funda Wang <fwang@mandriva.org> 0.4-5mdv2011.0
+ Revision: 594942
- rebuild for py 2.7

  + Thierry Vignaud <tv@mandriva.org>
    - rebuild
    - rebuild
    - kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Tue May 29 2007 Bogdano Arendartchuk <bogdano@mandriva.com> 0.4-2mdv2008.0
+ Revision: 32636
- force rebuild, as it failed in x86-64
- Import python-xarfile


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7588 |21cr|python-xdot-0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	xdot
%define rel	git81b8d7d

Summary:	Interactive viewer for Graphviz dot files
Name:		python-%{module}
Version:	0.6
Release:	3
Source0:	https://github.com/jrfonseca/xdot.py/archive/0.6.tar.gz
License:	LGPLv3+
Group:		Graphics
Url:		http://code.google.com/p/jrfonseca/wiki/XDot/
BuildArch:	noarch
Requires:	graphviz
Requires:	pygtk2.0
BuildRequires:	python2-setuptools
BuildRequires:	python2-devel

%description
xdot is an interactive viewer for graphs written in
Graphviz's dot language.

It internally uses Graphviz's xdot output format as an
intermediate format, and PyGTK and Cairo for rendering.

xdot can be used either as a standalone application from 
the command line, or as a library embedded in your Python 
application.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Interactive viewer for Graphviz dot files

%description -n python2-%{module}
xdot is an interactive viewer for graphs written in
Graphviz's dot language.

It internally uses Graphviz's xdot output format as an
intermediate format, and PyGTK and Cairo for rendering.

xdot can be used either as a standalone application from 
the command line, or as a library embedded in your Python 
application.


%prep
%setup -qn xdot.py-%{version}

%install
PYTHONDONTWRITEBYTECODE= %__python2 setup.py install --root=%{buildroot}

%files -n python2-%{module}
%doc sample.py
%{py2_puresitedir}/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7589 |21cr|python-xlrd-1.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	xlrd

Summary:	Module for extracting data from MS Excel spreadsheets in Python

Name:		python-%{module}
Version:	1.1.0
Release:	5
Source0:	http://pypi.python.org/packages/source/x/xlrd/xlrd-%{version}.tar.gz
License:	BSD 
Group:		Development/Python 
Url:		http://pypi.python.org/pypi/xlrd/
BuildArch:	noarch
BuildRequires:	dos2unix

BuildRequires:  python3-devel
BuildRequires:	python3-setuptools

%description
Extract data from new and old Excel spreadsheets on any platform. 
Pure Python. Strong support for Excel dates. Unicode-aware.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Module for extracting data from MS Excel spreadsheets in Python
Group:          Development/Python

%description -n python3-%{module}
Extract data from new and old Excel spreadsheets on any platform. 
Pure Python. Strong support for Excel dates. Unicode-aware.

%files -n python3-%{module}
%{py3_puresitedir}/xlrd
%{py3_puresitedir}/*egg-info
%attr(755,root,root) %{_bindir}/runxlrd

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
for i in */*.py *.html; do
  # fix missing files
  dos2unix $i || :
done
cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
popd

# fix linting, add shebang,fix extentions in _bindir
(
  echo '#!%{__python3}'
  cat %{buildroot}%{_bindir}/runxlrd.py
) >> %{buildroot}%{_bindir}/runxlrd
rm -rf %{buildroot}%{_bindir}/runxlrd.py* \
  %{buildroot}/%{py2_puresitedir}/xlrd/doc \
  %{buildroot}/%{py2_puresitedir}/xlrd/examples \
  %{buildroot}/%{py3_puresitedir}/xlrd/doc \
  %{buildroot}/%{py3_puresitedir}/xlrd/examples 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7590 |21cr|python-xlsxwriter-3.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global pkgname xlsxwriter
%global sum Python module for writing files in the Excel 2007+ XLSX file format
%global desc \
XlsxWriter is a Python module for writing files in the Excel 2007+ XLSX file \
format. \
\
XlsxWriter can be used to write text, numbers, formulas and hyperlinks \
to multiple worksheets and it supports features such as formatting and \
many more.

Name:		python-%{pkgname}
Version:	3.0.3
Release:	1
Summary:	%{sum}
Group:		Development/Python
License:	LGPL
Source0:	https://files.pythonhosted.org/packages/53/04/91ff43803c3e88c32aa272fdbda5859fc3c3b50b0de3a1e439cc57455330/XlsxWriter-3.0.3.tar.gz
URL:		https://pypi.python.org/pypi/XlsxWriter
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
%{desc}

#---------------------------------------------------------

%package -n python3-%{pkgname}
Summary:	%{sum}
Group:		Development/Python

%description -n python3-%{pkgname}
%{desc}

%files -n python3-%{pkgname}
%{py3_puresitedir}/XlsxWriter*egg-info/*
%{py3_puresitedir}/%{pkgname}
%{_bindir}/*

#---------------------------------------------------------

%prep
%setup -qn XlsxWriter-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7591 |21cr|python-xlutils-2.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	xlutils

Name:		python-%{oname}
Version:	2.0.0
Release:	4
Summary:	Utilities for working with Excel files that require both xlrd and xlwt
Source0:	https://pypi.python.org/packages/93/fe/af6d73e4bc7b0ce359d34bebb2e8d4d129763acfecd66a3a7efc587e54c9/xlutils-2.0.0.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://www.python-excel.org
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel

%description
Copyright (c) 2008-2015 Simplistix Ltd.
See docs/license.txt for details.

#----------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:        Utilities for working with Excel files that require both xlrd and xlwt
Group:          Development/Python

%description -n python3-%{oname}
Copyright (c) 2008-2015 Simplistix Ltd.
See docs/license.txt for details.

%files -n python3-%{oname}
%doc README.rst
%{_bindir}/margins*
%{py3_puresitedir}/xlutils*

#----------------------------------------------------------------------------


%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install
cp %{buildroot}%{_bindir}/margins %{buildroot}%{_bindir}/margins3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7592 |21cr|python-xlwt-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name xlwt

Name:           python-xlwt
Version:	1.3.0
Release:	1
Group:          Development/Python
Summary:        Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003
License:        BSD
Source0:	https://files.pythonhosted.org/packages/06/97/56a6f56ce44578a69343449aa5a0d98eefe04085d69da539f3034e2cd5c1/xlwt-1.3.0.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
xlwt is a library for generating spreadsheet files that are compatible
with Excel 97/2000/XP/2003, OpenOffice.org Calc, and Gnumeric. xlwt
has full support for Unicode. Excel spreadsheets can be generated on
any platform without needing Excel or a COM server. The only
requirement is Python 2.3 to 2.7.


%package -n     python3-%{pypi_name}
Summary:        Library to create spreadsheet files compatible with MS Excel 97/2000/XP/2003

%description -n python3-%{pypi_name}
xlwt is a library for generating spreadsheet files that are compatible
with Excel 97/2000/XP/2003, OpenOffice.org Calc, and Gnumeric. xlwt
has full support for Unicode. Excel spreadsheets can be generated on
any platform without needing Excel or a COM server. The only
requirement is Python 2.3 to 2.7.

%prep
%setup -q -n %{pypi_name}-%{version}

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build


%install
python3 setup.py install --skip-build --root %{buildroot}

%files -n python3-%{pypi_name}
%doc README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7593 |21cr|python-xmp-toolkit-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name python-xmp-toolkit
%global srcname xmp-toolkit

Name:           python-%{srcname}
Version:        2.0.1
Release:        1
Summary:        Python XMP Toolkit for working with metadata
Group:          Development/Python
License:        BSD
URL:            https://github.com/python-xmp-toolkit/python-xmp-toolkit
Source0:        %{pypi_source %{pypi_name}}
# https://github.com/python-xmp-toolkit/python-xmp-toolkit/pull/84
Source1:        https://github.com/python-xmp-toolkit/python-xmp-toolkit/raw/e0f42af4a731ac1eea2977895f2c8dd0264304c3/test/samples/BlueSquare.gif
# https://github.com/python-xmp-toolkit/python-xmp-toolkit/pull/68
Patch0001:      2f94011ab789d1d2cabc41db7a708a19a62bb573.patch

BuildArch:      noarch

BuildRequires:  exempi
BuildRequires:  python3-devel
BuildRequires:  python3dist(pytz)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(sphinx)

%description
Python XMP Toolkit Python XMP Toolkit is a library for working with XMP
metadata, as well as reading/writing XMP metadata stored in many different file
formats.

#--------------------------------------------------------------------------

%package -n     python3-%{srcname}
Summary:        %{summary}
Group:          Development/Python

Requires:       exempi
%{?python_enable_dependency_generator}

%description -n python3-%{srcname}
Python XMP Toolkit Python XMP Toolkit is a library for working with XMP
metadata, as well as reading/writing XMP metadata stored in many different file
formats.

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/libxmp
%{python3_sitelib}/python_xmp_toolkit-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------------------
%package -n python-%{srcname}-doc
Summary:        python-xmp-toolkit documentation
Group:          Documentation

%description -n python-%{srcname}-doc
Documentation for python-xmp-toolkit

%files -n python-%{srcname}-doc
%doc html
%license LICENSE

#--------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1
cp %SOURCE1 test/samples/

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info


%build
%py3_build

# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}


%install
%py3_install


%check
%py3_test




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7594 |21cr|python-xxhash-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-xxhash
Version:        3.0.0
Release:        1
Summary:        Python Binding for xxHash
Group:          Development/Python
License:        BSD
URL:            https://github.com/ifduyue/python-xxhash
Source0:        %{pypi_source xxhash}
Patch0:         xxhash-setuptools-scm.patch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  pkgconfig(libxxhash)

%global common_description %{expand:
xxhash is a Python binding for the xxHash library by Yann Collet.}

%description %{common_description}

#-------------------------------------------------------------
%package -n python3-xxhash
Summary:        %{summary}
Group:          Development/Python

%description -n python3-xxhash %{common_description}

%files -n python3-xxhash -f %{pyproject_files}
%doc CHANGELOG.rst
%doc README.rst

#-------------------------------------------------------------

%prep
%autosetup -p1 -n xxhash-%{version}
# Remove bundled xxhash library
rm -rvf deps

%generate_buildrequires
%pyproject_buildrequires -r

%build
%set_build_flags
# Normally, no extra flags are required to link the xxhash shared library, but
# we are prepared:
export CFLAGS="${CFLAGS} $(pkgconf --cflags libxxhash)"
export LDFLAGS="${LDFLAGS} $(pkgconf --libs-only-L libxxhash)"
export LDFLAGS="${LDFLAGS} $(pkgconf --libs-only-other libxxhash)"
export XXHASH_LINK_SO='1'
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files xxhash


%check
cd tests
PYTHONPATH='%{buildroot}%{python3_sitearch}' %__python3 -m unittest discover

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7595 |21cr|python-yapf-0.32.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name yapf

%global desc %{expand: \
YAPF Introduction Most of the current formatters for Python e.g., autopep8, and
pep8ify are made to remove lint errors from code. This has some obvious
limitations. For instance, code that conforms to the PEP 8 guidelines may not
be}

Name:		python-%{pypi_name}
Version:	0.32.0
Release:	1
Summary:	A formatter for Python code
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/google/yapf
Source0:	%{url}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)

%description
%{desc}
#-----------------------------------------------------
%package -n	python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
Requires:	python3dist(setuptools)

%description -n	python3-%{pypi_name}
%{desc}

%files -n python3-%{pypi_name}
%license LICENSE
%doc README-plugins.rst README.rst
%{_bindir}/yapf
%{_bindir}/yapf-diff
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/yapftests
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#-----------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

for lib in $(find . -type f -name "*.py"); do
 sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new &&
 touch -r $lib $lib.new &&
 mv $lib.new $lib
done

cp plugins/README.rst README-plugins.rst

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7596 |21cr|python-yara-4.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude (.*)\.so(.*)

%define module yara

Summary:	Pattern matching Swiss knife for malware researchers Python module
Name:		python-%{module}
Version:	4.3.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/VirusTotal/yara-python
Source0:	https://github.com/VirusTotal/yara-python/archive/v%{version}.tar.gz?/%{module}-python-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(yara)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-nose

%description
Pattern matching Swiss knife for malware researchers Python module.


#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Pattern matching Swiss knife for malware researchers Python 3 module
Group:		Development/Python
%rename python-%{module}

%description -n python3-%{module}
Pattern matching Swiss knife for malware researchers Python 3 module.

%files -n python3-%{module}
%doc LICENSE README.rst
%{py3_platsitedir}/%{module}_python-*egg-info
%{py3_platsitedir}/%{module}*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-python-%{version}

%build
python3 setup.py build --dynamic-linking

%install
python3 setup.py install --root=%{buildroot} --install-purelib=%{py3_puresitedir}

%check
# Find the NOSETEST binary or use false if not present
NOSETESTS3=`ls %{_bindir}/nosetests-3.* || which false `
PYTHONPATH="%{buildroot}%{py3_platsitedir}" "$NOSETESTS3"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7597 |21cr|python-yenc-0.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tag ee6b73a5b14f

Name:           python-yenc
Version:        0.4.0
Release:        4
Summary:        yEnc Module for Python
Group:          Development/Python
License:        GPLv2+
URL:            http://www.hellanzb.com/trac/
Source0:        https://bitbucket.org/dual75/yenc/get/0.4.0.tar.gz
BuildRequires:  python2-devel
BuildRequires:  python2-distribute

%description
python2-yenc is a yEnc decoding library for Python. yEnc is a
binary-to-text encoding scheme for transferring binary files
in messages on Usenet or via e-mail.

%package -n python2-yenc
Summary:        yEnc Module for Python

%description -n python2-yenc
python-yenc is a yEnc decoding library for Python. yEnc is a
binary-to-text encoding scheme for transferring binary files
in messages on Usenet or via e-mail.


%prep
%setup -q -n dual75-yenc-%{tag}


%build
CFLAGS="%{optflags}" %{__python2} -c 'import setuptools; execfile("setup.py")' build


%install
%{__python2} -c 'import setuptools; execfile("setup.py")' install -O1 --skip-build --root %{buildroot}
chmod g-w %{buildroot}/%{py2_platsitedir}/_yenc.so


%check
PYTHONPATH="$PYTHONPATH:%{buildroot}/%{py2_platsitedir}" %{__python2} test/test.py


%clean


%files -n python2-yenc
%doc README TODO COPYING
%{py2_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7598 |21cr|python-ytmusicapi-0.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-ytmusicapi
Version:	0.20.0
Release:	1
Summary:	Unofficial API for YouTube Music
Group:		Development/Python
License:	MIT
URL:		https://github.com/sigma67/ytmusicapi
Source0:	https://github.com/sigma67/ytmusicapi/archive/refs/tags/%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-pip
BuildArch:	noarch

%description
ytmusicapi is a Python 3 library to send requests to the YouTube Music API.
It emulates YouTube Music web client requests using the user's cookie data for
authentication.

#--------------------------------------------------------------------

%package -n python3-ytmusicapi
Summary:	Unofficial API for YouTube Music
Group:		Development/Python

%description -n python3-ytmusicapi
ytmusicapi is a Python 3 library to send requests to the YouTube Music API.
It emulates YouTube Music web client requests using the user's cookie data for
authentication.

%files -n python3-ytmusicapi
%{python3_sitelib}/ytmusicapi
%{python3_sitelib}/ytmusicapi*.egg-info

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n ytmusicapi-%{version}

%build
python setup.py build

%install
python setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7599 |21cr|python-z3c.autoinclude-0.3.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	z3c.autoinclude

Name:		python-%{oname}
Version:	0.3.5
Release:	4
Summary:	Automatically include ZCML
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.zip
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/z3c.autoinclude
BuildArch:	noarch
BuildRequires:	python-setuptools

Requires:  pythonegg(zope.dottedname)
Requires:  pythonegg(zope.interface)
Requires:  pythonegg(zope.configuration)
Requires:  pythonegg(zope.schema)
Requires:  pythonegg(zc.buildout)


%description
This package adds two new ZCML directives to automatically detect
ZCML files to include: "includeDependencies" and "includePlugins".

When you want to include a Zope-based package in your application, you
have to repeat yourself in two places: you have to add the package
itself (in a setup.py, buildout, etc) and you also have to include its
ZCML with an <include> directive or a package-includes slug. Because
you have to repeat yourself, you can easily make an error where you
add a new package but forget to include its ZCML.

z3c.autoinclude lets you circumvent this error-prone process with
automatic detection and inclusion of ZCML files.

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc CHANGES.rst README.rst TODO.rst
%doc src/z3c.autoinclude.egg-info/*.txt
%doc src/z3c/autoinclude/*.txt
%{_bindir}/*
%{py_puresitedir}/z3c/autoinclude/*
%{py_puresitedir}/z3c.autoinclude*.egg-info
%{py_puresitedir}/z3c.autoinclude*.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7600 |21cr|python-z3c.form-3.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	z3c.form

Name:		python-%{oname}
Version:	3.2.1
Release:	4
Summary:	An advanced form and widget framework for Zope 3

Source0:	http://pypi.python.org/packages/source/z/z3c.form/z3c.form-%{version}.zip
License:	ZPL 2.1
Group:		Development/Python
Url:		https://launchpad.net/z3c.form
BuildArch:	noarch
BuildRequires:	python-setuptools
BuildRequires:  pkgconfig(libxslt)

Requires: pythonegg(setuptools) 
Requires: pythonegg(six) 
Requires: pythonegg(zope.browser) 
Requires: pythonegg(zope.browserpage) 
Requires: pythonegg(zope.browserresource) 
Requires: pythonegg(zope.component) 
Requires: pythonegg(zope.configuration) 
Requires: pythonegg(zope.contentprovider) 
Requires: pythonegg(zope.event) 
Requires: pythonegg(zope.i18n) 
Requires: pythonegg(zope.i18nmessageid) 
Requires: pythonegg(zope.interface) 
Requires: pythonegg(zope.lifecycleevent) 
Requires: pythonegg(zope.location) 
Requires: pythonegg(zope.pagetemplate) 
Requires: pythonegg(zope.publisher) 
Requires: pythonegg(zope.schema) >= 3.6.0 
Requires: pythonegg(zope.security) 
Requires: pythonegg(zope.site) 
Requires: pythonegg(zope.traversing)


%description
This package provides an implementation for HTML forms and widgets. The goal
is to provide a simple API but with the ability to easily customize any data
or steps.


%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%check
# python setup.py test

%files
%doc *.txt
%doc src/z3c/form/*.txt
%doc src/z3c/form/browser/*.txt
%{py_puresitedir}/z3c/form/*
%{py_puresitedir}/z3c.form*.egg-info
%{py_puresitedir}/z3c.form*.pth


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7601 |21cr|python-z3c.formui-3.0.0a2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	z3c.formui

Name:		python-%{oname}
Version:	3.0.0a2
Release:	4
Summary:	A set of initial UI components for z3c.form
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.zip
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/z3c.formui
BuildArch:	noarch
BuildRequires:	python-setuptools
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pythonegg(zope.viewlet)

Requires: python(abi) = 2.7 
Requires: pythonegg(setuptools) 
Requires: pythonegg(z3c.form) >= 2.2.0 
Requires: pythonegg(z3c.macro) 
Requires: pythonegg(z3c.template) 
Requires: pythonegg(zope.component) 
Requires: pythonegg(zope.publisher) 
Requires: pythonegg(zope.viewlet)

%description
This package provides a set of default layouts for the ``z3c.form``
framework. In particular it provides a DIV-based and a TABLE-based layout. The
developer can use either layout by inheriting from a different base layer.

The package also has some support for layout/pagelet templates.

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%check
# python setup.py test

%files
%doc *.txt
%doc src/z3c.formui.egg-info/*.txt
%doc src/z3c/formui/README.txt
%{py_puresitedir}/z3c/formui/*
%{py_puresitedir}/z3c.formui*.egg-info
%{py_puresitedir}/z3c.formui*.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7602 |21cr|python-z3c.macro-2.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	z3c.macro

Name:		python-%{pypi_name}
Version:	2.3
Release:	3
Summary:	Simpler definition of ZPT macros
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/z3c.macro
Source0:	%{pypi_source}
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
This package provides an adapter and a TALES expression for a more explicit
and more flexible macro handling using the adapter registry for macros.

%files
%doc CHANGES*
%doc COPYRIGHT*
%doc LICENSE*
%doc README*
%doc src/z3c/macro/zcml*
%{py3_puresitedir}/z3c/macro/*
%{py3_puresitedir}/z3c.macro*.egg-info
%{py3_puresitedir}/z3c.macro*.pth

#---------------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
# python setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7603 |21cr|python-z3c.optionstorage-1.0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	z3c.optionstorage

Name:		python-%{oname}
Version:	1.0.7
Release:	4
Summary:	Optional Storages -- Persistent, Managable Vocabularies
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/z3c.optionstorage
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)
Requires: python(abi) = 2.7 pythonegg(setuptools) 
Requires:	pythonegg(zodb3) 
Requires:	pythonegg(zope.annotation) 
Requires:	pythonegg(zope.app.form) 
Requires:	pythonegg(zope.browserpage) >= 3.10 
Requires:	pythonegg(zope.component) 
Requires:	pythonegg(zope.configuration) 
Requires:	pythonegg(zope.i18n) 
Requires:	pythonegg(zope.interface) 
Requires:	pythonegg(zope.proxy) 
Requires:	pythonegg(zope.schema) 
Requires:	pythonegg(zope.security) 
Requires:	pythonegg(zope.traversing)

%description
Option Storages are vocabularies that store their values in the ZODB and can
be managed during application runtime.


%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc README.txt
%{py_puresitedir}/z3c/optionstorage/*.py*
%{py_puresitedir}/z3c/optionstorage/browser/*.py*
%{py_puresitedir}/z3c.optionstorage*.egg-info
%{py_puresitedir}/z3c.optionstorage-1.0.7-py2.7-nspkg.pth
%{py_puresitedir}/z3c/optionstorage/browser/configure.zcml
%{py_puresitedir}/z3c/optionstorage/browser/meta.zcml
%{py_puresitedir}/z3c/optionstorage/browser/optiondict.pt
%{py_puresitedir}/z3c/optionstorage/browser/optionstorage.pt
%{py_puresitedir}/z3c/optionstorage/configure.zcml
%{py_puresitedir}/z3c/optionstorage/meta.zcml








@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7604 |21cr|python-z3c.rml-2.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	z3c.rml

Name:		python-%{oname}
Version:	2.3.0
Release:	4
Summary:	An alternative implementation of RML
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.zip
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/z3c.rml
BuildArch:	noarch
BuildRequires:	python-setuptools

Requires:	python(abi) = 2.7 
Requires:	pythonegg(lxml) 
Requires:	pythonegg(pygments) 
Requires:	pythonegg(pypdf) 
Requires:	pythonegg(reportlab) 
Requires:	pythonegg(setuptools) 
Requires:	pythonegg(svg2rlg) 
Requires:	pythonegg(zope.interface) 
Requires:	pythonegg(zope.schema)



%description
===================================================
``z3c.rml`` -- An alternative implementation of RML
===================================================

This is an alternative implementation of ReportLab's RML PDF generation XML
format. Like the original implementation, it is based on ReportLab's
``reportlab`` library.


%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%check
# python setup.py test

%files
%doc *.txt
%doc src/z3c.rml.egg-info/*.txt
%doc src/z3c/rml/README.txt
%doc src/z3c/rml/pagetemplate.txt
%doc src/z3c/rml/rml-reference.pdf
%doc src/z3c/rml/tests/expected/*.pdf
%doc src/z3c/rml/tests/output/README.txt
%{_bindir}/dtd 
%{_bindir}/reference 
%{_bindir}/rml2pdf 
%{py_puresitedir}/z3c.rml-2.3.0-py2.7-nspkg.pth
%{py_puresitedir}/z3c/rml/tests/expected/*.pdf
%{py_puresitedir}/z3c/rml/tests/input/*.ttf
%{py_puresitedir}/z3c/rml/tests/input/data/*.pdf
%{py_puresitedir}/z3c/rml/tests/input/*.rml
%{py_puresitedir}/z3c/rml/tests/input/images/*.eps
%{py_puresitedir}/z3c/rml/tests/input/images/*.svg
%{py_puresitedir}/z3c/rml/tests/input/images/*.svgz
%{py_puresitedir}/z3c/rml/tests/input/images/*.gif
%{py_puresitedir}/z3c/rml/tests/input/*.png
%{py_puresitedir}/z3c/rml/tests/output/README.txt
%{py_puresitedir}/z3c/rml/tests/input/*.gif
%{py_puresitedir}/z3c/rml/rml.dtd
%{py_puresitedir}/z3c/rml/*.txt
%{py_puresitedir}/z3c/rml/*.pdf
%{py_puresitedir}/z3c/rml/*.pt
%{py_puresitedir}/z3c/rml/*.py*
%{py_puresitedir}/z3c/rml/tests/*.py*
%{py_puresitedir}/z3c.rml*.egg-info













@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7605 |21cr|python-z3c.template-2.0.0a2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	z3c.template

Name:		python-%{oname}
Version:	2.0.0a2
Release:	4
Summary:	A package implementing advanced Page Template patterns
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.zip
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/z3c.template
BuildArch:	noarch
BuildRequires:	python-setuptools

%description
------------
Z3C template
------------

This package allows you to register templates independently from view code.

In Zope 3, when registering a `browser:page` both presentation and computation
are registered together. Unfortunately the registration tangles presentation
and computation so tightly that it is not possible to re-register a different
template depending on context. (You can override the whole registration but
this is not the main point of this package.)

With z3c.template the registration is split up between the view and the
template and allows to differentiate the template based on the skin layer and
the view.

In addition this package lays the foundation to differentiate between
templates that provide specific presentation templates and generic layout
templates.

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%check
# python setup.py test

%files
%doc CHANGES.txt
%doc COPYRIGHT.txt
%doc LICENSE.txt
%doc README.txt
%doc src/z3c.template.egg-info/SOURCES.txt
%doc src/z3c.template.egg-info/dependency_links.txt
%doc src/z3c.template.egg-info/namespace_packages.txt
%doc src/z3c.template.egg-info/requires.txt
%doc src/z3c.template.egg-info/top_level.txt
%doc src/z3c/template/README.txt
%doc src/z3c/template/zcml.txt
%{py_puresitedir}/z3c/template/*
%{py_puresitedir}/z3c.template*.egg-info
%{py_puresitedir}/z3c.template*.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7606 |21cr|python-zc.buildout-2.13.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	zc.buildout

Summary:	System for managing development buildouts
Name:		python-%{module}
Version:	2.13.8
Release:	1
License:	ZPLv2.1
Group:		Development/Python
Url:		http://buildout.org
Source0:	https://files.pythonhosted.org/packages/e5/d0/91f853f4939e885c2678aed38d7c3084f73dbafec870dbda3cc62db4586c/zc.buildout-2.13.8.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

BuildArch:	noarch

%description
********
Buildout
********
Buildout is a project designed to solve 2 problems:
1. Application-centric assembly and deployment
2. Repeatable assembly of programs from Python 
software distributions.

%files
%doc *.rst *.txt
%{_bindir}/buildout
%{py3_puresitedir}/%{module}*.egg-info
%{py3_puresitedir}/%{module}-*-py*-nspkg.pth
%{py3_puresitedir}/zc/buildout
#---------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -fr src/*.egg-info
perl -pi -e "s|,<52||"  setup.py

%build
%py3_build

%install
%py3_install






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7607 |21cr|python-zc.catalog-1.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zc.catalog

Name:		python-%{oname}
Version:	1.6
Release:	4
Summary:	Extensions to the Zope 3 Catalog
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zc.catalog
BuildArch:	noarch
BuildRequires:	python-setuptools

Requires:   pythonegg(pytz) 
Requires:   pythonegg(setuptools) 
Requires:   pythonegg(zodb3) 
Requires:   pythonegg(zope.catalog) 
Requires:   pythonegg(zope.component) 
Requires:   pythonegg(zope.container) 
Requires:   pythonegg(zope.i18nmessageid) 
Requires:   pythonegg(zope.index) >= 3.5.1 
Requires:   pythonegg(zope.interface) 
Requires:   pythonegg(zope.intid) 
Requires:   pythonegg(zope.publisher) >= 3.12 
Requires:   pythonegg(zope.schema) 
Requires:   pythonegg(zope.security)

%description
zc.catalog is an extension to the Zope 3 catalog, Zope 3's indexing
and search facility. zc.catalog contains a number of extensions to the
Zope 3 catalog, such as some new indexes, improved globbing and
stemming support, and an alternative catalog implementation.


%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc CHANGES.txt
%doc COPYRIGHT.txt
%doc LICENSE.txt
%doc README.txt
%doc src/zc.catalog.egg-info/SOURCES.txt
%doc src/zc.catalog.egg-info/dependency_links.txt
%doc src/zc.catalog.egg-info/namespace_packages.txt
%doc src/zc.catalog.egg-info/requires.txt
%doc src/zc.catalog.egg-info/top_level.txt
%doc src/zc/catalog/callablewrapper.txt
%doc src/zc/catalog/extentcatalog.txt
%doc src/zc/catalog/globber.txt
%doc src/zc/catalog/legacy.txt
%doc src/zc/catalog/normalizedindex.txt
%doc src/zc/catalog/setindex.txt
%doc src/zc/catalog/stemmer.txt
%doc src/zc/catalog/valueindex.txt
%doc src/zc/catalog/browser/README.txt
%{py_puresitedir}/zc/catalog/
%{py_puresitedir}/zc.catalog*.egg-info
%{py_puresitedir}/zc.catalog*.pth


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7608 |21cr|python-zc.datetimewidget-0.7.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zc.datetimewidget

Name:		python-%{oname}
Version:	0.7.0
Release:	4
Summary:	Javascript-based widgets for date and datetime fields
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zc.datetimewidget
BuildArch:	noarch
BuildRequires:	python-setuptools
Requires: pythonegg(pytz) 
Requires: pythonegg(setuptools) 
Requires: pythonegg(zc.i18n) 
Requires: pythonegg(zc.resourcelibrary) 
Requires: pythonegg(zope.app.form) 
Requires: pythonegg(zope.component) 
Requires: pythonegg(zope.datetime) 
Requires: pythonegg(zope.interface) 
Requires: pythonegg(zope.publisher) >= 3.12 
Requires: pythonegg(zope.schema)

%description
There are two types of widgets provided by this package, a date widget
and a datetime widget.


%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc README.txt
%{py_puresitedir}/zc/datetimewidget/*
%{py_puresitedir}/zc.datetimewidget*.egg-info
%{py_puresitedir}/zc.datetimewidget*.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7609 |21cr|python-zc.i18n-0.7.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zc.i18n

Name:		python-%{oname}
Version:	0.7.0
Release:	4
Summary:	Additional I18n Support APIs
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://cheeseshop.python.org/pypi/zc.i18n
BuildArch:	noarch
BuildRequires:	python-setuptools
Requires: pythonegg(setuptools) pythonegg(zope.i18n) pythonegg(zope.i18nmessageid) pythonegg(zope.interface)
Requires: pythonegg(zope.i18n)
Requires: pythonegg(zope.i18nmessageid)
Requires: pythonegg(zope.interface)


%description
This package provides additional I18n and L10n features. In particular it
provides an API to compute the time durations over various timezones.


%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc README.txt
%{py_puresitedir}/zc/i18n/*.py*
%{py_puresitedir}/zc.i18n*.egg-info
%{py_puresitedir}/zc.i18n-0.7.0-py2.7-nspkg.pth
%{py_puresitedir}/zc/i18n/configure.zcml
%{py_puresitedir}/zc/i18n/duration.txt
%{py_puresitedir}/zc/i18n/locales/README.txt
%{py_puresitedir}/zc/i18n/locales/de/LC_MESSAGES/zc.i18n.mo
%{py_puresitedir}/zc/i18n/locales/de/LC_MESSAGES/zc.i18n.po
%{py_puresitedir}/zc/i18n/locales/zc.i18n.pot


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7610 |21cr|python-zc.lockfile-1.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		python-zc.lockfile
Version:	1.1.0
Release:	5
Group:		Development/Python
License:	Zope Public License
Summary:	Basic inter-process locks
#md5=6cf83766ef9935c33e240b0904c7a45e
Source:		http://pypi.python.org/packages/source/z/zc.lockfile/zc.lockfile-%{version}.zip
URL:		http://pypi.python.org/pypi/zc.lockfile/1.0.0
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
The zc.lockfile package provides a basic portable implementation of
interprocess locks using lock files. The purpose if not specifically
to lock files, but to simply provide locks with an implementation based
on file-locking primitives. Of course, these locks could be used to mediate
access to other files. For example, the ZODB file storage implementation uses
file locks to mediate access to file-storage database files. The database files
and lock file files are separate files.

%prep
%setup -q -n zc.lockfile-%{version}

%build

%install
python3 setup.py install --root=%{buildroot}

%files
%{py3_puresitedir}/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7611 |21cr|python-ZConfig-3.0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ZConfig

Name:		python-%{oname}
Version:	3.0.4
Release:	6
Summary:	Structured Configuration Library

Source0:	http://pypi.python.org/packages/source/Z/ZConfig/ZConfig-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://www.zope.org/Members/fdrake/zconfig/
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:  python3egg(zope.testrunner)
BuildRequires:  python3egg(zope.exceptions)
BuildRequires:  python3egg(six)

%description
ZConfig: Schema-driven configuration
====================================

ZConfig is a configuration library intended for general use.  It
supports a hierarchical schema-driven configuration model that allows
a schema to specify data conversion routines written in Python.
ZConfig's model is very different from the model supported by the
ConfigParser module found in Python's standard library, and is more
suitable to configuration-intensive applications.

ZConfig schema are written in an XML-based language and are able to
"import" schema components provided by Python packages.  Since
components are able to bind to conversion functions provided by Python
code in the package (or elsewhere), configuration objects can be
arbitrarily complex, with values that have been verified against
arbitrary constraints.  This makes it easy for applications to
separate configuration support from configuration loading even with
configuration data being defined and consumed by a wide range of
separate packages.

ZConfig is licensed under the Zope Public License, version 2.1.  See
the file LICENSE.txt in the distribution for the full license text.

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test

%files
%{_bindir}/zconfig
%{_bindir}/zconfig_schema2html
%{py3_puresitedir}/ZConfig*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7612 |21cr|python-zc.resourcelibrary-2.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zc.resourcelibrary

Name:		python-%{pypi_name}
Version:	2.1.0
Release:	5
Summary:	Post-rendering Resource Inclusion
Source0:	http://pypi.python.org/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zc.resourcelibrary
BuildArch:	noarch
BuildRequires: python3-setuptools
BuildRequires: python3-devel
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(zope.app.publication)
BuildRequires: python3egg(zope.browserpage)
BuildRequires: python3egg(zope.browserresource)
BuildRequires: python3egg(zope.component)
BuildRequires: python3egg(zope.configuration)
BuildRequires: python3egg(zope.interface)
BuildRequires: python3egg(zope.publisher)
BuildRequires: python3egg(zope.security)
BuildRequires: python3egg(zope.tales)
BuildRequires: python3egg(zope.traversing)
BuildRequires: python3egg(zope.testing)
BuildRequires: python3egg(zope.testrunner)
BuildRequires: python3egg(zope.error)

%description
The resource library is a Zope 3 extension that is designed to make the
inclusion of JavaScript, CSS, and other resources easy, cache-friendly,
and component-friendly.

#--------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Post-rendering Resource Inclusion
Group:		Development/Python

%description -n python3-%{pypi_name}
The resource library is a Zope 3 extension that is designed to make the
inclusion of JavaScript, CSS, and other resources easy, cache-friendly,
and component-friendly.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zc/resourcelibrary
%{py3_puresitedir}/zc.resourcelibrary*

#--------------------------------------------------------


%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7613 |21cr|python-zc.table-0.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zc.table

Name:		python-%{oname}
Version:	0.9.0
Release:	4
Summary:	Zope table
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zc.table/
BuildArch:	noarch
BuildRequires:	python-setuptools
Requires: pythonegg(setuptools) 
Requires: pythonegg(zc.resourcelibrary) >= 0.6 
Requires: pythonegg(zope.browserpage) >= 3.10 
Requires: pythonegg(zope.cachedescriptors)
Requires: pythonegg(zope.component) 
Requires: pythonegg(zope.formlib) 
Requires: pythonegg(zope.i18n) 
Requires: pythonegg(zope.interface) 
Requires: pythonegg(zope.schema)

%description
This is a Zope 3 extension that helps with the construction of (HTML) tables.
Features include dynamic HTML table generation, batching and sorting.

%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc README.txt
%{py_puresitedir}/zc/table/*
%{py_puresitedir}/zc.table*.egg-info
%{py_puresitedir}/zc.table*.pth


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7614 |21cr|python-zdaemon-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zdaemon

Name:		python-%{pypi_name}
Version:	4.4
Release:	1
Summary:	Daemon process control library and tools for Unix-based systems
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://www.python.org/pypi/zdaemon
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zconfig)
BuildRequires:	python3-mock
BuildRequires:	python3egg(zc.customdoctests)

%description
*****************************************************
``zdaemon`` process controller for Unix-based systems
*****************************************************

``zdaemon`` is a Unix (Unix, Linux, Mac OS X) Python program that wraps
commands to make them behave as proper daemons.

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Daemon process control library and tools for Unix-based systems
Group:		Development/Python
Requires:	python3egg(zconfig)

%description -n python3-%{pypi_name}
*****************************************************
``zdaemon`` process controller for Unix-based systems
*****************************************************

``zdaemon`` is a Unix (Unix, Linux, Mac OS X) Python program that wraps
commands to make them behave as proper daemons.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zdaemon*
%{_bindir}/zdaemon

#----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

perl -pi -e "s|#!python|#! /usr/bin/python3|" src/zdaemon/zdrun.py
perl -pi -e "s|#!python|#! /usr/bin/python3|" src/zdaemon/zdctl.py


%build
%py3_build
cd -

%install
%py3_install
chmod +x %{buildroot}%{py3_puresitedir}/zdaemon/tests/nokill.py
chmod +x %{buildroot}%{py3_puresitedir}/zdaemon/zdrun.py
chmod +x %{buildroot}%{py3_puresitedir}/zdaemon/zdctl.py

# Requires Internet
#%check
#python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7615 |21cr|python-ZEO-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module ZEO

Name:           python-%{module}
Version:        5.4.0
Release:        1
Summary:        Client-server storage implementation for ZODB
Group:          Development/Python
License:        ZPLv2.1
Url:            http://www.zodb.org/
Source0:        https://github.com/zopefoundation/ZEO/archive/refs/tags/%{version}/%{module}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(docutils)
BuildRequires:  python3egg(funcsigs)
BuildRequires:  python3egg(manuel)
BuildRequires:  python3egg(msgpack)
BuildRequires:  python3egg(pbr)
BuildRequires:  python3egg(persistent)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(random2)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(transaction)
BuildRequires:  python3egg(uvloop)
BuildRequires:  python3egg(zc.lockfile)
BuildRequires:  python3egg(zconfig)
BuildRequires:  python3egg(zdaemon)
BuildRequires:  python3egg(zodb)
BuildRequires:  python3egg(zope.interface)
BuildRequires:  python3egg(zope.testing)
BuildRequires:  python3egg(zope.testrunner)

BuildArch:      noarch

%define common_desc                                                   \
ZEO is a client-server system for sharing a single storage among many \
clients.  When you use ZEO, the storage is opened in the ZEO server   \
process.  Client programs connect to this process using a ZEO         \
ClientStorage.  ZEO provides a consistent view of the database to all \
clients.  The ZEO client and server communicate using a custom RPC    \
protocol layered on top of TCP.

%description
%{common_desc}
#-----------------------------------------------------
%package -n python3-%{module}
Summary:        Client-server storage implementation for ZODB

%description -n python3-%{module}
%{common_desc}
%files -n python3-%{module}
%doc *.html  *.txt
%{_bindir}/runzeo
%{_bindir}/zeo-nagios
%{_bindir}/zeoctl
%{_bindir}/zeopack
%{py3_puresitedir }/%{module}*

#-----------------------------------------------------

%prep
%setup -qn %{module}-%{version}

# Remove a version number that leads to an attempted download from pypi
sed -i 's/msgpack < 1/msgpack/' setup.py

# Use mock from unittests
sed -i 's/import mock/from unittest &/' src/ZEO/asyncio/tests.py \
  src/ZEO/tests/test{ssl,ZEO,ZEOServer}.py
sed -i "/'mock'/d" setup.py

%build
%py3_build

# Convert documentation to HTML
rst2html --no-datestamp CHANGES.rst CHANGES.html
rst2html --no-datestamp README.rst README.html
rst2html --no-datestamp src/ZEO/asyncio/README.rst README-asyncio.html
rst2html --no-datestamp src/ZEO/nagios.rst nagios.html

%install
%py3_install

# Fix scripts
for script in $(grep -Rl '^#!' %{buildroot}%{py3_puresitedir }/%{module}); do
  sed 's,%{_bindir}/env python.*,%{_bindir}/python3,' $script > $script.new
  touch -r $script $script.new
  mv -f $script.new $script
  chmod 0755 $script
done

# Remove documentation files
rm %{buildroot}%{py3_puresitedir }/%{module}/asyncio/README.rst
rm %{buildroot}%{py3_puresitedir }/%{module}/nagios.rst

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7616 |21cr|python-zipstream-1.1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname zipstream
%global desc zipstream.py is a zip archive generator based on python 3.3's zipfile.py.\
It was created to generate a zip file generator for streaming (ie web apps).

Name:           python-%{srcname}
Version:        1.1.4
Release:        4
Group:		Development/Python
Summary:        ZIP archive generator for Python
License:        GPLv3+
URL:            https://github.com/allanlei/%{name}
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch


%description
%{desc}

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-setuptools python3-devel python3-nose

%description -n python3-%{srcname}
%{desc}
Python 3 version.

%prep
%setup -q

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{srcname}
%doc README.* LICENSE
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7617 |21cr|python-zodb3-3.11.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define pypi_name ZODB3

Name:		python-zodb3
Version:	3.11.0
Release:	4
Summary:	Zope Object Database: object database and persistence
Group:		Development/Python
License:	Zope Public License
URL:		https://pypi.python.org/pypi/ZODB3
Source:		https://pypi.io/packages/source/Z/ZODB3/ZODB3-%{version}.tar.gz

BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
# for check
BuildRequires:	python3egg(btrees)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zodb)
BuildRequires:	python3egg(zeo)
BuildRequires:	python3egg(transaction)
BuildRequires:	python3egg(zc.lockfile)
BuildRequires:	python3egg(zconfig)
BuildRequires:	python3egg(zdaemon)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(manuel)
BuildRequires:	python3egg(zope.testing)

%description
The Zope Object Database provides an object-oriented database for
Python that provides a high-degree of transparency. Applications
can take advantage of object database features with few, if any,
changes to application logic. ZODB includes features such as a
pluggable storage interface, rich transaction support, and undo.

#------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Object Database: object database and persistence
Group:		Development/Python

Requires:	python3-setuptools
Requires:	python3egg(zconfig)
Requires:	python3egg(zdaemon)
Requires:	python3egg(zope.event)
Requires:	python3egg(zope.interface)
Requires:	python3egg(transaction)
Requires:	python3egg(zc.lockfile)
Requires:	python3egg(zope.proxy)
Requires:	python3egg(zdaemon)
Requires:	python3egg(persistent)
Requires:	python3egg(btrees)

%description -n python3-%{pypi_name}
The Zope Object Database provides an object-oriented database for
Python that provides a high-degree of transparency. Applications
can take advantage of object database features with few, if any,
changes to application logic. ZODB includes features such as a
pluggable storage interface, rich transaction support, and undo.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/ZODB*

#------------------------------------------------------------------

%prep
%setup -q -n ZODB3-%{version}
#for File in src/{ZODB,ZEO}/scripts/*.py ; do
#  sed -i.orig -e '/^#! *\//, 1d' $File
# touch -r ${File}.orig $File
#  rm ${File}.orig
#done

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7618 |21cr|python-ZODB-5.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name ZODB

Name:		python-%{pypi_name}
Version:	5.8.0
Release:	1
Group:		Development/Python
License:	ZPLv2.1
Summary:	Zope Object Database: object database and persistence
Source0:	%{pypi_source}
Source1:	https://raw.githubusercontent.com/zopefoundation/ZODB/master/src/ZODB/tests/synchronizers.txt
Url:		http://www.zodb.org/
BuildRequires:  python3egg(btrees)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(manuel)
BuildRequires:  python3egg(persistent)
BuildRequires:  python3egg(random2)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(transaction)
BuildRequires:  python3egg(zc.lockfile)
BuildRequires:  python3egg(zconfig)
BuildRequires:  python3egg(zodbpickle) >= 0.6.0
BuildRequires:  python3egg(zope.testing)
BuildRequires:  python3egg(persistent) >= 4.2.1

Requires:       python3egg(setuptools)
Requires:       python3egg(zconfig)
Requires:       python3egg(zdaemon)
Requires:       python3egg(zope.event)
Requires:       python3egg(zope.interface)
Requires:	python3egg(transaction)
Requires:	python3egg(zc.lockfile)
Requires:	python3egg(zope.proxy)
Requires:	python3egg(zdaemon)
Requires:	python3egg(persistent)
Requires:	python3egg(btrees)
BuildArch:      noarch

%description
The Zope Object Database provides an object-oriented database for
Python that provides a high-degree of transparency. Applications
can take advantage of object database features with few, if any,
changes to application logic. ZODB includes features such as a
pluggable storage interface, rich transaction support, and undo.

%files
%doc CHANGES.rst *.txt
%{_bindir}/fsdump
%{_bindir}/fsoids
%{_bindir}/fsrefs
%{_bindir}/fstail
%{_bindir}/repozo
%{py3_puresitedir}/%{pypi_name}*
#---------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Remove prebuilt egg
rm -fr src/%{pypi_name}.egg-info
# Remove backup files
find src -name \*~ -exec rm {} +
find src -name \#\*\# -exec rm {} +
# Fix tests
sed -i 's/random/random2/' src/%{pypi_name}/tests/testUtils.py
pushd src/ZODB/tests/
cp -p %{SOURCE1} .
popd

%build
%py3_build

%install
%py3_install

pushd %{buildroot}%{py3_puresitedir}/%{pypi_name}/scripts
chmod +x {space,fsoids,fsrefs,analyze,migrate,fstest,fstail,repozo,fsstats,checkbtrees,netspace,zodbload}.py
popd

%check
python3 setup.py test || :  

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7619 |21cr|python-zodbpickle-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zodbpickle
%global __provides_exclude _pickle.so

Name:		python-%{oname}
Version:	2.4
Release:	1
Summary:	Fork of Python 3 pickle module
Source0:	https://files.pythonhosted.org/packages/ed/23/78c1b16c168ef96368a7a2616d49e277d245b8b38497cfc55d8c6ffad3ef/zodbpickle-2.4.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zodbpickle
BuildRequires:	python3-devel 
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(coverage)

%files
%{py3_platsitedir}/zodbpickle*

#---------------------------------------------------------------

%description
This package presents a uniform pickling interface for ZODB:
- Under Python2, this package forks both Python 2.7's ``pickle`` and
  ``cPickle`` modules, adding support for the ``protocol 3`` opcodes.
  It also provides a new subclass of ``bytes``, ``zodbpickle.binary``,
  which Python2 applications can use to pickle binary values such that
  they will be unpickled as ``bytes`` under Py3k.

- Under Py3k, this package forks the ``pickle`` module (and the supporting
  C extension) from both Python 3.2 and Python 3.3.  The fork add support
  for the ``noload`` operations used by ZODB.

%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7620 |21cr|python-zope.annotation-5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name zope.annotation

Summary:	Object annotation mechanism
Name:		python-%{pypi_name}
Version:	5.0
Release:	2
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.annotation
Source0:	%{pypi_source}
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(btrees)
BuildRequires:	python3egg(persistent)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildArch:	noarch

%description
==================
Object Annotations
==================

This package provides a mechanism to store additional information about
objects without need to modify object class.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Object annotation mechanism
Group:		Development/Python

%description -n python3-%{pypi_name}
==================
Object Annotations
==================

This package provides a mechanism to store additional information about
objects without need to modify object class.

%files -n python3-%{pypi_name}
%{python3_sitelib}/zope/annotation/*
%{python3_sitelib}/zope.annotation*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7621 |21cr|python-zope.app.applicationcontrol-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	zope.app.applicationcontrol

Name:		python-%{module}
Version:	4.1.0
Release:	1
License:	ZPLv2.1
Group:		Development/Python
Url:		http://cheeseshop.python.org/pypi/%{module}
Summary:	Zope application control
Source0:	https://files.pythonhosted.org/packages/35/34/f058d9eb86778d091a36c089e71b72cb174943fbf2c78ee052ca8e415b5d/zope.app.applicationcontrol-4.1.0.tar.gz
BuildRequires:	python3egg(setuptools)

BuildArch:	noarch

%description
===========================
zope.app.applicationcontrol
===========================

The application control instance is usually generated upon startup.
This package provides runtime information adapter for application
control and Zope version.  Also provide a utility with methods for
shutting down and restarting the server.

%files
%doc *.txt *.rst
%{py3_puresitedir}/zope/app/
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
%{py3_puresitedir}/%{module}-%{version}-py?.?-nspkg.pth
#-----------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7622 |21cr|python-zope.app.appsetup-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.appsetup

Name:       python-%{pypi_name}
Version:    5.0
Release:    1
License:    ZPLv2.1
Group:      Development/Python
Url:        https://pypi.python.org/pypi/zope.app.appsetup
Summary:    Zope app setup helper
Source0:    https://pypi.python.org/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(zodb3)
BuildRequires:  python3egg(eggtestinfo)
BuildRequires:  python3egg(zope.app.publication)
BuildRequires:  python3egg(zope.component)
BuildRequires:  python3egg(zope.configuration)
BuildRequires:  python3egg(zope.container)
BuildRequires:  python3egg(zope.error)
BuildRequires:  python3egg(zope.event)
BuildRequires:  python3egg(zope.interface)
BuildRequires:  python3egg(zope.processlifetime)
BuildRequires:  python3egg(zope.security)
BuildRequires:  python3egg(zope.session)
BuildRequires:  python3egg(zope.site)
BuildRequires:  python3egg(zope.testrunner)
BuildRequires:  python3egg(zope.testing)
BuildRequires:  python3egg(zope.traversing)

BuildArch:      noarch


%description
zope.app.appsetup README
========================
This package provides application setup helpers for the Zope3 appserver.

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:    Zope app setup helper
Group:      Development/Python

%description -n python3-%{pypi_name}
zope.app.appsetup README
========================
This package provides application setup helpers for the Zope3 appserver.

%files -n python3-%{pypi_name}
%doc *.txt
%{_bindir}/*
%{py3_puresitedir}/zope/app/appsetup
%{py3_puresitedir}/%{pypi_name}*

#------------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}
perl -pi -e "s|ZODB|ZODB3|"  setup.py
perl -pi -e "s|zope.security >= 4.0.0a2|zope.security >= 5.0.0|"  setup.py
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7623 |21cr|python-zope.app.basicskin-4.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.basicskin

Name:		python-%{pypi_name}
Version:	4.0.0
Release:	2
Summary:	Zope ZMI Basic Skin
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.basicskin
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
A very simple skin for the original Zope 3 ZMI.

#-----------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Zope ZMI Basic Skin
Group:		Development/Python

%description -n python3-%{pypi_name}
A very simple skin for the original Zope 3 ZMI.

%files -n python3-%{pypi_name}
%doc README.txt
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.basicskin*

#-----------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7624 |21cr|python-zope.app.broken-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.broken

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Zope Broken (ZODB) Object Support
Group:		Development/Python
License:	ZPL 2.1
Url:		https://cheeseshop.python.org/pypi/zope.app.broken
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
When an object cannot be correctly loaded from the ZODB, this package allows
this object still to be instantiated, but as a "Broken" object. This allows
for gracefully updating the database without interuption.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Broken (ZODB) Object Support
Group:		Development/Python

%description -n python3-%{pypi_name}
When an object cannot be correctly loaded from the ZODB, this package allows
this object still to be instantiated, but as a "Broken" object. This allows
for gracefully updating the database without interuption.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.broken*

#---------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7625 |21cr|python-zope.app.component-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.component

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Local Zope Component Support
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/%{pypi_name}
Source0:	%{pypi_source}

BuildRequires:	python3egg(setuptools)

BuildArch:	noarch

%description
NOTE: this package is deprecated. Its functionality has been moved to
more reusable packages, namely: zope.component, zope.security, zope.site
and zope.componentvocabulary. Please import from there instead.

This package provides various ZCML directives (view, resource) and a
user interface related to local component management.

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Local Zope Component Support
Group:		Development/Python

%description -n python3-%{pypi_name}
NOTE: this package is deprecated. Its functionality has been moved to
more reusable packages, namely: zope.component, zope.security, zope.site
and zope.componentvocabulary. Please import from there instead.

This package provides various ZCML directives (view, resource) and a
user interface related to local component management.

%files -n python3-%{pypi_name}
%doc *.rst
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/%{pypi_name}*.egg-info
%{py3_puresitedir}/%{pypi_name}*.pth
#----------------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/*.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7626 |21cr|python-zope.app.container-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.container

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
License:	ZPLv2.1
Group:		Development/Python
Url:		http://cheeseshop.python.org/pypi/%{pypi_name}
Summary:	Zope Container
Source0:	%{pypi_source}

BuildRequires:	python3egg(setuptools)
BuildArch:	noarch


%description
This package define interfaces of container components, and provides
sample container implementations such as a BTreeContainer and
OrderedContainer.

#------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Container
Group:		Development/Python

%description -n python3-%{pypi_name}
This package define interfaces of container components, and provides
sample container implementations such as a BTreeContainer and
OrderedContainer.

%files -n python3-%{pypi_name}
%doc *.rst
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/%{pypi_name}*.egg-info
%{py3_puresitedir}/%{pypi_name}*.pth
#------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7627 |21cr|python-zope.app.debug-4.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.debug

Name:		python-%{pypi_name}
Version:	4.0.0
Release:	5
Summary:	Zope Debug Mode
License:	ZPLv2.1
Group:		Development/Python
Url:		http://cheeseshop.python.org/pypi/zope.app.debug
Source0:	%{pypi_source}
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.app.appsetup)
BuildRequires:	python3egg(zope.app.publication)
BuildRequires:	python3egg(zope.publisher)

BuildArch:	noarch

%description
This package provides a debugger for the Zope publisher. After Zope is
instantiated, it drops the user into an interactive Python shell where the
full Zope environment and the database root are available.
#------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Zope Debug Mode
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides a debugger for the Zope publisher. After Zope is
instantiated, it drops the user into an interactive Python shell where the
full Zope environment and the database root are available.


%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/zope/app/debug
%{py3_puresitedir}/zope.app.debug*
#------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7628 |21cr|python-zope.app.dependable-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.dependable

Name:		python-%{pypi_name}
Version:	4.1.0
Release:	1
Summary:	Simple Dependency API
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.app.dependable
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
A simple object-dependency framework for Zope.

#---------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Simple Dependency API
Group:		Development/Python

%description -n python3-%{pypi_name}
A simple object-dependency framework for Zope.

%files -n python3-%{pypi_name}
%doc README.*
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.dependable*

#---------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7629 |21cr|python-zope.app.error-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.error

Name:		python-%{pypi_name}
Version:	4.1.0
Release:	1
Summary:	Error reporting utility management UI for Zope3
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.app.error
Source0:	https://pypi.python.org/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
This package provides management views for the error reporting
utility defined in zope.error package.
#------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Error reporting utility management UI for Zope3
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides management views for the error reporting
utility defined in zope.error package.

%files -n python3-%{pypi_name}
%doc README.*
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.error*

#------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7630 |21cr|python-zope.app.exception-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.exception

Name:		python-%{pypi_name}
Version:	4.1.0
Release:	1
Summary:	Zope 3 exception views
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.app.exception
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
This packages provides Zope 3 browser views for some generic exceptions.

#---------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Zope 3 exception views
Group:		Development/Python

%description -n python3-%{pypi_name}
This packages provides Zope 3 browser views for some generic exceptions.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.exception*

#---------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7631 |21cr|python-zope.app.form-6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.form

# Avoid versioned req
%define __noatoreq '.*zope.formlib.*'

Name:		python-%{pypi_name}
Version:	6.0
Release:	1
Summary:	The Original Zope 3 Form Framework
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.form
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.formlib)

%description
This package provides the old form framework for Zope 3. It also
implements a few high-level ZCML directives for declaring forms. More
advanced alternatives are implemented in ``zope.formlib`` and
``z3c.form``. The widgets that were defined in here were moved to
``zope.formlib``. Version 4.0 and newer are maintained for backwards
compatibility reasons only.

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	The Original Zope 3 Form Framework
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides the old form framework for Zope 3. It also
implements a few high-level ZCML directives for declaring forms. More
advanced alternatives are implemented in ``zope.formlib`` and
``z3c.form``. The widgets that were defined in here were moved to
``zope.formlib``. Version 4.0 and newer are maintained for backwards
compatibility reasons only.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/app
%{py3_puresitedir}/zope.app.form*

#-----------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7632 |21cr|python-zope.app.generations-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.generations

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	ZMI UI for zope.generations
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.app.generations
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
Generations are a way of updating objects in the database when the application
schema changes.  An application schema is essentially the structure of data,
the structure of classes in the case of ZODB or the table descriptions in the
case of a relational database.

This package only contains the ZMI user interface for `zope.generations`_

.. _zope.generations: http://pypi.python.org/pypi/zope.generations

#----------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	ZMI UI for zope.generations
Group:		Development/Python

%description -n python3-%{pypi_name}
Generations are a way of updating objects in the database when the application
schema changes.  An application schema is essentially the structure of data,
the structure of classes in the case of ZODB or the table descriptions in the
case of a relational database.

This package only contains the ZMI user interface for `zope.generations`_

.. _zope.generations: http://pypi.python.org/pypi/zope.generations

%files -n python3-%{pypi_name}
%doc README.*
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.generations*

#----------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7633 |21cr|python-zope.app.http-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.http

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	HTTP Behavior for the Zope Publisher
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.app.http
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
zope.app.http
*************

This package implements the simplest HTTP behavior within the Zope
Publisher. It implements all HTTP verbs as views and defines the necessary
HTTP exceptions.

#---------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	HTTP Behavior for the Zope Publisher
Group:		Development/Python

%description -n python3-%{pypi_name}
zope.app.http
*************

This package implements the simplest HTTP behavior within the Zope
Publisher. It implements all HTTP verbs as views and defines the necessary
HTTP exceptions.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.http*

#---------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7634 |21cr|python-zope.applicationcontrol-4.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.applicationcontrol

Name:		python-%{pypi_name}
Version:	4.3
Release:	3
Summary:	Zope applicationcontrol
Group:		Development/Python
License:	ZPL 2.1
Url:		https://cheeseshop.python.org/pypi/zope.applicationcontrol
Source0:	%{pypi_source}
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.traversing)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildArch:	noarch

%description
=======================
zope.applicationcontrol
=======================

The application control instance can be generated upon startup of an
application built with the Zope Toolkit.

This package provides an API to retrieve runtime information. It also
provides a utility with methods for shutting down and restarting the
server.

#---------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Zope applicationcontrol
Group:		Development/Python

Requires:  python3egg(setuptools)
Requires:  python3egg(zope.component)
Requires:  python3egg(zope.interface)
Requires:  python3egg(zope.location)
Requires:  python3egg(zope.security)
Requires:  python3egg(zope.traversing)

%description -n python3-%{pypi_name}
=======================
zope.applicationcontrol
=======================

The application control instance can be generated upon startup of an
application built with the Zope Toolkit.

This package provides an API to retrieve runtime information. It also
provides a utility with methods for shutting down and restarting the
server.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/applicationcontrol
%{py3_puresitedir}/zope.applicationcontrol*

#---------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7635 |21cr|python-zope.app.locales-4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.app.locales

Name:		python-%{oname}
Version:	4.3
Release:	1
Summary:	Zope locale extraction and management utilities
Source0:	https://files.pythonhosted.org/packages/18/7f/3d1518f082286f04e2964a6539f6f723c0e8fbf2cd8f9b90ed32b2c20b25/zope.app.locales-4.3.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.locales
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
This package provides some facilities for extracting and managing i18n
messages that occur in Zope software.  More specifically, i18n
messages can occur in Python code, in Page Templates and in ZCML
declarations.  ``zope.app.locales`` provides a utility that can
extract messages from all three and write them to a standard gettext
template (``pot`` file).

%package -n python3-%{oname}
Summary:	Zope locale extraction and management utilities

%description -n python3-%{oname}
This package provides some facilities for extracting and managing i18n
messages that occur in Zope software.  More specifically, i18n
messages can occur in Python code, in Page Templates and in ZCML
declarations.  ``zope.app.locales`` provides a utility that can
extract messages from all three and write them to a standard gettext
template (``pot`` file).


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%{_bindir}/*
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.locales*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7636 |21cr|python-zope.app.localpermission-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.app.localpermission

Name:		python-%{oname}
Version:	4.1.0
Release:	1
Summary:	Local Persistent Permissions for zope.security
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.localpermission
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:  python3egg(zodb3) 
BuildRequires:  python3egg(zope.component) 
BuildRequires:  python3egg(zope.i18nmessageid) 
BuildRequires:  python3egg(zope.interface) 
BuildRequires:  python3egg(zope.location) 
BuildRequires:  python3egg(zope.security)

Requires:  python3egg(setuptools) 
Requires:  python3egg(zodb3) 
Requires:  python3egg(zope.component) 
Requires:  python3egg(zope.i18nmessageid) 
Requires:  python3egg(zope.interface) 
Requires:  python3egg(zope.location) 
Requires:  python3egg(zope.security)

%description
This package implements local persistent permissions for zope.security that
can be added and registered per site.

This is a part of "Through The Web" development pattern that is not used
much by zope community and not really supported in zope framework anymore
nowadays, so it can be considered as deprecated.


%package -n python3-%{oname}
Summary:	Local Persistent Permissions for zope.security

%description -n python3-%{oname}
This package implements local persistent permissions for zope.security that
can be added and registered per site.

This is a part of "Through The Web" development pattern that is not used
much by zope community and not really supported in zope framework anymore
nowadays, so it can be considered as deprecated.



%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%{py3_puresitedir}/zope/app/localpermission
%{py3_puresitedir}/zope.app.localpermission*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7637 |21cr|python-zope.app.localpermission-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.localpermission

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Local Persistent Permissions for zope.security
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.localpermission
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zodb3)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.security)

%description
This package implements local persistent permissions for zope.security that
can be added and registered per site.

This is a part of "Through The Web" development pattern that is not used
much by zope community and not really supported in zope framework anymore
nowadays, so it can be considered as deprecated.

#---------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Local Persistent Permissions for zope.security
Group:		Development/Python

%description -n python3-%{pypi_name}
This package implements local persistent permissions for zope.security that
can be added and registered per site.

This is a part of "Through The Web" development pattern that is not used
much by zope community and not really supported in zope framework anymore
nowadays, so it can be considered as deprecated.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/app/localpermission
%{py3_puresitedir}/zope.app.localpermission*

#---------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/app/localpermission
%{py3_puresitedir}/zope.app.localpermission*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7638 |21cr|python-zope.app.pagetemplate-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.pagetemplate

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/%{pypi_name}
Summary:	PageTemplate integration for Zope 3
Source0:	%{pypi_source}

BuildRequires:	python3egg(setuptools)

BuildArch:	noarch


%description
The ``zope.app.pagetemplate`` package integrates the Page Template
templating system (``zope.pagetemplate``) into the Zope 3 application
server.  In particular, it provides:

* a TALES engine implementation that uses Zope's security system for
  checking access,

* TALES namespace adapters for easy access to DublinCore metadata
  (e.g. ``obj/zope:title``) and URL quoting
  (e.g. ``obj/@@absolute_url/url:quote``).

#------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	PageTemplate integration for Zope 3
Group:		Development/Python

%description -n python3-%{pypi_name}
The ``zope.app.pagetemplate`` package integrates the Page Template
templating system (``zope.pagetemplate``) into the Zope 3 application
server.  In particular, it provides:

* a TALES engine implementation that uses Zope's security system for
  checking access,

* TALES namespace adapters for easy access to DublinCore metadata
  (e.g. ``obj/zope:title``) and URL quoting
  (e.g. ``obj/@@absolute_url/url:quote``).

%files -n python3-%{pypi_name}
%doc *.rst
%{py3_puresitedir}/zope/app/pagetemplate
%{py3_puresitedir}/%{pypi_name}*.egg-info
%{py3_puresitedir}/%{pypi_name}-%{version}-py%{py3_ver}-nspkg.pth
#----------------------------------------------------------------


%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7639 |21cr|python-zope.app.principalannotation-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  pypi_name  zope.app.principalannotation

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Bootstrap subscriber and browser menu item for zope.principalannotation
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/%{pypi_name}
Source0:	%{pypi_source}

BuildRequires:	python3egg(setuptools)

BuildArch:  noarch

%description
This package used to provide implementation of IAnnotations for zope.security
principal objects, but it's now moved to the ``zope.principalannotation``
package. This package only contains a bootstrap subscriber that sets up
the principal annotation utility for the root site and the browser add
menu item for adding the annotation utility through ZMI.

#---------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Bootstrap subscriber and browser menu item for zope.principalannotation
Group:		Development/Python

%description -n python3-%{pypi_name}
This package used to provide implementation of IAnnotations for zope.security
principal objects, but it's now moved to the ``zope.principalannotation``
package. This package only contains a bootstrap subscriber that sets up
the principal annotation utility for the root site and the browser add
menu item for adding the annotation utility through ZMI.

%files -n python3-%{pypi_name}
%doc *.txt
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/%{pypi_name}*.egg-info
%{py3_puresitedir}/%{pypi_name}*.pth
#---------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7640 |21cr|python-zope.app.publication-4.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.publication

Name:		python-%{pypi_name}
Version:	4.5
Release:	2
Summary:	Zope publication
Group:		Development/Python
License:	ZPLv2.1
Url:		https://pypi.python.org/pypi/zope.app.publication
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Publication and traversal components.

#-------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope publication
Group:		Development/Python

%description -n python3-%{pypi_name}
Publication and traversal components.

%files -n python3-%{pypi_name}
%doc *.rst
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.publication*
#-------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/*.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7641 |21cr|python-zope.app.publisher-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  pypi_name   zope.app.publisher

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Implementations and means for configuration of Zope 3-style views and resources
Group:		Development/Python
License:	ZPLv2.1
Url:		https://pypi.org/pypi/zope.app.publisher/
Source0:	%{pypi_source}

BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions.
This package used to provide browser page, resource and menu classes
for use with zope.publisher object publishing framework, as well as some
other useful utilities and adapters, but most of things was factored out
to separate packages, leaving here only backward-compatibility imports.

#--------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Implementations and means for configuration of Zope 3-style views and resources
Group:		Development/Python


%description -n python3-%{pypi_name}
This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions.
This package used to provide browser page, resource and menu classes
for use with zope.publisher object publishing framework, as well as some
other useful utilities and adapters, but most of things was factored out
to separate packages, leaving here only backward-compatibility imports.


%files -n python3-%{pypi_name}
%doc *.rst *.txt
%{py3_puresitedir}/zope/app/publisher
%{py3_puresitedir}/zope.app.publisher-%{version}-py*.egg-info
%{py3_puresitedir}/zope.app.publisher-%{version}-py*-nspkg.pth

#--------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7642 |21cr|python-zope.app.renderer-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.renderer

Name:		python-%{pypi_name}
Version:	4.1.0
Release:	1
Summary:	Text Renderer Framework
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.app.renderer
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
Provides:	python3-%{pypi_name} = %{EVRD}

%description
This package provides a framework to convert a string from one format, such as
Structured or Restructured Text, to another, such as HTML. Converters are
looked up by adapter and uses other packages to implement the converters.
#-------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Text Renderer Framework
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides a framework to convert a string from one format, such as
Structured or Restructured Text, to another, such as HTML. Converters are
looked up by adapter and uses other packages to implement the converters.

%files -n python3-%{pypi_name}
%doc README.*
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.renderer*

#-------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7643 |21cr|python-zope.app.schema-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.app.schema

Name:		python-%{pypi_name}
Version:	4.1.0
Release:	1
Summary:	Component Architecture based Vocabulary Registry
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		https://pypi.python.org/pypi/zope.app.schema
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
This package provides a component architecture based vocabulary registry.

#--------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Component Architecture based Vocabulary Registry
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides a component architecture based vocabulary registry.

%files -n python3-%{pypi_name}
%doc README*
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.schema*

#--------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7644 |21cr|python-zope.app.security-3.7.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.app.security

Name:		python-%{oname}
Version:	3.7.5
Release:	4
Summary:	ZMI Views For Zope3 Security Components
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.security
BuildArch:	noarch
BuildRequires:	python-setuptools

%description
This package provides ZMI browser views for Zope security components.

It used to provide a large part of security functionality for Zope 3, but it
was factored out from this package to several little packages to reduce
dependencies and improve reusability.

The functionality was splitted into these new packages:

 * zope.authentication - the IAuthentication interface and related utilities.
 * zope.principalregistry - the global principal registry and its zcml
   directives.
 * zope.app.localpermission - the LocalPermission class that implements
   persistent permissions.

The rest of functionality that were provided by this package is merged into
``zope.security`` and ``zope.publisher``.

Backward-compatibility imports are provided to ensure that older applications
work. See CHANGES.txt for more info.


%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc README.txt
%{py_puresitedir}/zope/app/*
%{py_puresitedir}/zope.app.security*.egg-info
%{py_puresitedir}/zope.app.security*.pth


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7645 |21cr|python-zope.app.security-6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  pypi_name  zope.app.security

Name:		python-%{pypi_name}
Version:	6.0
Release:	1
Summary:	ZMI Views For Zope3 Security Components
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.security
Source0:	%{pypi_source}

BuildRequires:	python3egg(setuptools)

BuildArch:	noarch

%description
This package provides ZMI browser views for Zope security components.

It used to provide a large part of security functionality for Zope 3, but it
was factored out from this package to several little packages to reduce
dependencies and improve reusability.

The functionality was splitted into these new packages:

 * zope.authentication - the IAuthentication interface and related utilities.
 * zope.principalregistry - the global principal registry and its zcml
   directives.
 * zope.app.localpermission - the LocalPermission class that implements
   persistent permissions.

#----------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	ZMI Views For Zope3 Security Components
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides ZMI browser views for Zope security components.

It used to provide a large part of security functionality for Zope 3, but it
was factored out from this package to several little packages to reduce
dependencies and improve reusability.

The functionality was splitted into these new packages:

 * zope.authentication - the IAuthentication interface and related utilities.
 * zope.principalregistry - the global principal registry and its zcml
   directives.
 * zope.app.localpermission - the LocalPermission class that implements
   persistent permissions.

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.security*.egg-info
%{py3_puresitedir}/zope.app.security*.pth
#----------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7646 |21cr|python-zope.app.testing-3.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.app.testing

Name:		python-%{oname}
Version:	3.10.0
Release:	4
Summary:	Zope Application Testing Support
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.testing
BuildArch:	noarch
BuildRequires:	python-setuptools

%description
This package provides testing support for Zope 3 applications. Besides
providing numerous setup convenience functions, it implements a testing setup
that allows the user to make calls to the publisher allowing to write
functional tests.


%prep
%setup -q -n %{oname}-%{version}

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%files
%doc README.txt
%{py_puresitedir}/zope/app/*
%{py_puresitedir}/zope.app.testing*.egg-info
%{py_puresitedir}/zope.app.testing*.pth


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7647 |21cr|python-zope.app.testing-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name zope.app.testing

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Zope Application Testing Support
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.testing
Source0:	%{pypi_source}

BuildRequires: python3egg(setuptools)
Provides:      python3-%{pypi_name} = %{EVRD}
BuildArch: noarch

%description
This package provides testing support for Zope 3 applications. Besides
providing numerous setup convenience functions, it implements a testing setup
that allows the user to make calls to the publisher allowing to write
functional tests.
#-------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Application Testing Support
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides testing support for Zope 3 applications. Besides
providing numerous setup convenience functions, it implements a testing setup
that allows the user to make calls to the publisher allowing to write
functional tests.

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/zope/app/*
%{py3_puresitedir}/zope.app.testing*.egg-info
%{py3_puresitedir}/zope.app.testing*.pth
#-------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7648 |21cr|python-zope.app.wsgi-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  pypi_name  zope.app.wsgi

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	WSGI application for the zope.publisher
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.app.wsgi
Source0:	%{pypi_source}

BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This package provides the ``WSGIPublisherApplication`` class which
exposes the object publishing machinery in ``zope.publisher`` as a
WSGI application.
To bring up Zope and obtain the WSGI application object at the same
time, use the ``getWSGIApplication`` function.

This package also provides an easy to use application factory for
PasteDeploy_.
#-------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	WSGI application for the zope.publisher
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides the ``WSGIPublisherApplication`` class which
exposes the object publishing machinery in ``zope.publisher`` as a
WSGI application.
To bring up Zope and obtain the WSGI application object at the same
time, use the ``getWSGIApplication`` function.

This package also provides an easy to use application factory for
PasteDeploy_.

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/%{pypi_name}*.egg-info
%{py3_puresitedir}/%{pypi_name}*-nspkg.pth
%{py3_puresitedir}/zope/app/wsgi

#-------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7649 |21cr|python-zope.authentication-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.authentication

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Definition of authentication basics for the Zope Framework
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.authentication
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.browser)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.location)
BuildArch:	noarch

%description
This package provides a definition of authentication concepts for use in
Zope Framework.

#-------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Definition of authentication basics for the Zope Framework
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides a definition of authentication concepts for use in
Zope Framework.


%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/authentication/*
%{py3_puresitedir}/zope.authentication*

#-------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# %check
# python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7650 |21cr|python-zope.broken-3.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.broken

Name:		python-%{oname}
Version:	3.6.0
Release:	5
Summary:	Zope Broken Object Interfaces
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.zip
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.broken
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
Provides:	python3-%{oname} = %{EVRD}

%description
Overview
========

This package is obsolete and its functionality has been merged into the ZODB3
distribution itself. If you use version 3.10 or later of ZODB3, please change
your imports of the IBroken interface to a direct::

  from ZODB.interfaces import IBroken

You can use this package with older versions of the ZODB3, which didn't have
the IBroken interface yet.


%package -n python3-%{oname}
Summary:	Zope Broken Object Interfaces

%description -n python3-%{oname}
Overview
========

This package is obsolete and its functionality has been merged into the ZODB3
distribution itself. If you use version 3.10 or later of ZODB3, please change
your imports of the IBroken interface to a direct::

  from ZODB.interfaces import IBroken

You can use this package with older versions of the ZODB3, which didn't have
the IBroken interface yet.



%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%doc README.txt
%{py3_puresitedir}/zope/broken/*
%{py3_puresitedir}/zope.broken*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7651 |21cr|python-zope.browser-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.browser

Name:		python-%{oname}
Version:	2.4
Release:	1
Summary:	Shared Zope Toolkit browser components
Source0:	https://files.pythonhosted.org/packages/03/f9/f791965e921d244309adef4660c8a2c9047e54aa82e9e7e1d3a29c717f6f/zope.browser-2.4.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.browser
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.interface)

%description
zope.browser
============

This package provides shared browser components for the Zope Toolkit.


%package -n python3-%{oname}
Summary:	Shared Zope Toolkit browser components

%description -n python3-%{oname}
zope.browser
============

This package provides shared browser components for the Zope Toolkit.



%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test

%files -n python3-%{oname}
%{py3_puresitedir}/zope/browser
%{py3_puresitedir}/zope.browser*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7652 |21cr|python-zope.browsermenu-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.browsermenu

Name:		python-%{pypi_name}
Version:	4.4
Release:	1
Summary:	Browser menu implementation for Zope
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.browsermenu/
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.traversing)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.pagetemplate)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.browser)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildArch:	noarch

%description
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of browser menus and ZCML directives
for configuring them.

#-------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Browser menu implementation for Zope
Group:		Development/Python

%description -n python3-%{pypi_name}
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of browser menus and ZCML directives
for configuring them.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/browsermenu/*
%{py3_puresitedir}/zope.browsermenu*

#-------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7653 |21cr|python-zope.browsermenu-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.browsermenu

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Browser menu implementation for Zope
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.browsermenu/
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.traversing)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.pagetemplate)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.browser)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildArch:	noarch

%description
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of browser menus and ZCML directives
for configuring them.

#-------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Browser menu implementation for Zope
Group:		Development/Python

%description -n python3-%{pypi_name}
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of browser menus and ZCML directives
for configuring them.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/browsermenu/*
%{py3_puresitedir}/zope.browsermenu*

#-------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7654 |21cr|python-zope.browserpage-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.browserpage

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	ZCML directives for configuring browser views for Zope
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.browserpage/
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.traversing)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.pagetemplate)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.browsermenu)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildArch:	noarch

%description
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides ZCML directives for configuring browser views.
More specifically it defines the following ZCML directives:

 * browser:page
 * browser:pages
 * browser:view

These directives also support menu item registration for pages, when
``zope.browsermenu`` package is installed. Otherwise, they simply ignore
the menu attribute.
#-----------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	ZCML directives for configuring browser views for Zope
Group:		Development/Python

%description -n python3-%{pypi_name}
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides ZCML directives for configuring browser views.
More specifically it defines the following ZCML directives:

 * browser:page
 * browser:pages
 * browser:view

These directives also support menu item registration for pages, when
``zope.browsermenu`` package is installed. Otherwise, they simply ignore
the menu attribute.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/browserpage/*
%{py3_puresitedir}/zope.browserpage*

#-----------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7655 |21cr|python-zope.browserresource-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.browserresource

Name:		python-%{oname}
Version:	4.4
Release:	1
Summary:	Browser resources implementation for Zope
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
Patch0:		zope.browserresource-req.patch
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.browserresource/
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.contenttype)
BuildRequires:	python3egg(zope.i18n)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.traversing)


Requires:	python3egg(zope.component)
Requires:	python3egg(zope.configuration)
Requires:	python3egg(zope.contenttype)
Requires:	python3egg(zope.i18n)
Requires:	python3egg(zope.interface)
Requires:	python3egg(zope.location)
Requires:	python3egg(zope.publisher)
Requires:	python3egg(zope.schema)
Requires:	python3egg(zope.traversing)



%description
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of browser resources. It also
provides directives for defining those resources using ZCML.

Resources are static files and directories that are served to the browser
directly from the filesystem. The most common example are images, CSS style
sheets, or JavaScript files.

Resources are be registered under a symbolic name and can later be referred to
by that name, so their usage is independent from their physical location.


%package -n python3-%{oname}
Summary:	Browser resources implementation for Zope

%description -n python3-%{oname}
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of browser resources. It also
provides directives for defining those resources using ZCML.

Resources are static files and directories that are served to the browser
directly from the filesystem. The most common example are images, CSS style
sheets, or JavaScript files.

Resources are be registered under a symbolic name and can later be referred to
by that name, so their usage is independent from their physical location.



%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}


%files -n python3-%{oname}
%{py3_puresitedir}/zope/browserresource
%{py3_puresitedir}/zope.browserresource*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7656 |21cr|python-zope.browserresource-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.browserresource

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Browser resources implementation for Zope
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.browserresource/
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.contenttype)
BuildRequires:	python3egg(zope.i18n)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.traversing)



%description
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of browser resources. It also
provides directives for defining those resources using ZCML.

Resources are static files and directories that are served to the browser
directly from the filesystem. The most common example are images, CSS style
sheets, or JavaScript files.

Resources are be registered under a symbolic name and can later be referred to
by that name, so their usage is independent from their physical location.

#---------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Browser resources implementation for Zope
Group:		Development/Python

%description -n python3-%{pypi_name}
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of browser resources. It also
provides directives for defining those resources using ZCML.

Resources are static files and directories that are served to the browser
directly from the filesystem. The most common example are images, CSS style
sheets, or JavaScript files.

Resources are be registered under a symbolic name and can later be referred to
by that name, so their usage is independent from their physical location.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/browserresource
%{py3_puresitedir}/zope.browserresource*
#---------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7657 |21cr|python-zope.cachedescriptors-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.cachedescriptors

Name:		python-%{oname}
Version:	4.4
Release:	1
Summary:	Method and property caching decorators
Source0:	https://files.pythonhosted.org/packages/2c/66/7fc6411459866f2dc466d58808222f097a3c1f83e2e6a6228dea4996371d/zope.cachedescriptors-4.4.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.cachedescriptors
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
Method and property caching decorators

%package -n python3-%{oname}
Summary:	Method and property caching decorators

%description -n python3-%{oname}
Method and property caching decorators


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test

%files -n python3-%{oname}
%{py3_puresitedir}/zope/cachedescriptors
%{py3_puresitedir}/zope.cachedescriptors*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7658 |21cr|python-zope.catalog-4.4.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define    pypi_name   zope.catalog

Name:		python-%{pypi_name}
Version:	4.4.1
Release:	3
Summary:	Cataloging and Indexing Framework for the Zope Toolkit
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.io/pypi/zope.catalog
Source0:	%{pypi_source}

BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(zope.schema)
BuildRequires:  python3egg(zope.location)
BuildRequires:  python3egg(zope.lifecycleevent)
BuildRequires:  python3egg(zope.index)
BuildRequires:  python3egg(zope.container)
BuildRequires:  python3egg(zope.component)
BuildRequires:  python3egg(zope.intid)
BuildRequires:  python3egg(zope.testing)
BuildRequires:  python3egg(zope.annotation)
BuildRequires:  python3egg(btrees)
BuildRequires:  python3egg(persistent)
BuildRequires:  python3egg(zope.event)
BuildRequires:  python3egg(zope.proxy)
BuildRequires:  python3egg(zope.testrunner)
BuildRequires:  python3egg(zope.testing)
BuildRequires:  python3egg(zope.site)

BuildArch:    noarch

%description
Catalogs provide management of collections of related indexes with a basic
search algorithm.
#----------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:    Cataloging and Indexing Framework for the Zope Toolkit
Group:      Development/Python

%description -n python3-%{pypi_name}
Catalogs provide management of collections of related indexes with a basic
search algorithm.


%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/zope/catalog
%{py3_puresitedir}/zope.catalog*

#----------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
zope-testrunner -vvv --test-path=src

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7659 |21cr|python-zope.component-5.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	zope.component

Summary:	Zope Component Architecture
Name:		python-%{module}
Version:	5.0.1
Release:	2
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.component
Source0:	http://pypi.python.org/packages/source/z/%{module}/%{module}-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.lifecycleevent)
Provides:       python3-%{module} = %{EVRD}

BuildArch:	noarch

%description
*****************************
zope.component Package Readme
*****************************

*This package is intended to be independently reusable in any Python
project. It is maintained by the Zope Toolkit project.

This package represents the core of the Zope Component Architecture.
Together with the 'zope.interface' package, it provides facilities for
defining, registering and looking up components.

Please see http://docs.zope.org/zope.component/ for the documentation.


%files
%doc *.rst *.txt
%{py3_puresitedir}/zope/component/*
%{py3_puresitedir}/%{module}*.egg-info
%{py3_puresitedir}/%{module}*.pth

#-------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7660 |21cr|python-zope.componentvocabulary-2.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.componentvocabulary

Name:		python-%{pypi_name}
Version:	2.3.0
Release:	3
Summary:	Component vocabularies
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.componentvocabulary
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.configuration)

%description
This package contains various vocabularies.
#---------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Component vocabularies

%description -n python3-%{pypi_name}
This package contains various vocabularies.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/componentvocabulary
%{py3_puresitedir}/zope.componentvocabulary*

#---------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7661 |21cr|python-zope.configuration-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.configuration

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Zope Configuration Markup Language (ZCML)

Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.configuration
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(manuel)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)

%description
The zope configuration system provides an extensible system for
supporting various kinds of configurations.

It is based on the idea of configuration directives. Users of the
configuration system provide configuration directives in some
language that express configuration choices. The intent is that the
language be pluggable.  An XML language is provided by default.

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Configuration Markup Language (ZCML)
Group:		Development/Python

%description -n python3-%{pypi_name}
The zope configuration system provides an extensible system for
supporting various kinds of configurations.

It is based on the idea of configuration directives. Users of the
configuration system provide configuration directives in some
language that express configuration choices. The intent is that the
language be pluggable.  An XML language is provided by default.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/configuration
%{py3_puresitedir}/zope.configuration*

#----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7662 |21cr|python-zope.container-5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.container

Name:		python-%{pypi_name}
Version:	5.1
Release:	1
Summary:	Zope Container
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.container
Source0:	%{pypi_source}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-zope.proxy-devel
BuildRequires:	python3egg(btrees)
BuildRequires:	python3egg(persistent)
BuildRequires:	python3egg(zope.browser)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.exceptions)
BuildRequires:	python3egg(zope.i18n)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(pytz)
BuildRequires:	python3egg(transaction)
BuildRequires:	python3egg(zope.lifecycleevent)

%description
This package define interfaces of container components, and provides
container implementations such as a BTreeContainer and
OrderedContainer, as well as the base class used by ``zope.site.folder``
for the Folder implementation.

#-------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Container
Group:		Development/Python

%description -n python3-%{pypi_name}
This package define interfaces of container components, and provides
container implementations such as a BTreeContainer and
OrderedContainer, as well as the base class used by ``zope.site.folder``
for the Folder implementation.

%files -n python3-%{pypi_name}
%{py3_platsitedir}/zope/container
%{py3_platsitedir}/zope.container*

#-------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# %check
# py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7663 |21cr|python-zope.contentprovider-4.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.contentprovider

Name:		python-%{oname}
Version:	4.2.1
Release:	1
Summary:	Content Provider Framework for Zope Templates
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.contentprovider
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.tales)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.pagetemplate)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.browserpage)

%description
=================
Content Providers
=================

This package provides a framework to develop componentized Web GUI
applications. Instead of describing the content of a page using a single
template or static system of templates and METAL macros, content provider
objects are dynamically looked up based on the setup/configuration of the
application.

%package -n python3-%{oname}
Summary:	Content Provider Framework for Zope Templates

%description -n python3-%{oname}
=================
Content Providers
=================

This package provides a framework to develop componentized Web GUI
applications. Instead of describing the content of a page using a single
template or static system of templates and METAL macros, content provider
objects are dynamically looked up based on the setup/configuration of the
application.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test || :

%files -n python3-%{oname}
%{py3_puresitedir}/zope/contentprovider
%{py3_puresitedir}/zope.contentprovider*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7664 |21cr|python-zope.contentprovider-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.contentprovider

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Content Provider Framework for Zope Templates
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.contentprovider
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.tales)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.pagetemplate)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.browserpage)

%description
=================
Content Providers
=================

This package provides a framework to develop componentized Web GUI
applications. Instead of describing the content of a page using a single
template or static system of templates and METAL macros, content provider
objects are dynamically looked up based on the setup/configuration of the
application.

#---------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Content Provider Framework for Zope Templates
Group:		Development/Python

%description -n python3-%{pypi_name}
=================
Content Providers
=================

This package provides a framework to develop componentized Web GUI
applications. Instead of describing the content of a page using a single
template or static system of templates and METAL macros, content provider
objects are dynamically looked up based on the setup/configuration of the
application.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/contentprovider
%{py3_puresitedir}/zope.contentprovider*

#---------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || :


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7665 |21cr|python-zope.contenttype-4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.contenttype

Name:		python-%{pypi_name}
Version:	4.6
Release:	1
Summary:	Zope contenttype
Source0:	https://files.pythonhosted.org/packages/24/9e/39b2413f1665f692b6440566ca940f1ec4faeae6aa1ca8b1e5a1dc551ad7/zope.contenttype-4.6.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.contenttype
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.testrunner)

%description
A utility module for content-type handling.

#--------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope contenttype
Group:		Development/Python

%description -n python3-%{pypi_name}
A utility module for content-type handling.

%files -n python3-%{pypi_name}
%doc COPYRIGHT.txt LICENSE.txt
%{py3_puresitedir}/zope.contenttype*
%{py3_puresitedir}/zope/contenttype

#--------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7666 |21cr|python-zope.copy-4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.copy

Name:		python-%{oname}
Version:	4.2
Release:	1
Summary:	Pluggable object copying mechanism
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.copy
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
Requires:  python3egg(setuptools) 
Requires:  python3egg(zope.interface)
Provides:	python3-%{oname}

%description
``zope.copy``
=============

This package provides a pluggable mechanism for copying persistent objects.

Please see ``docs/index.rst`` for the detailed documentation.


%package -n python3-%{oname}
Summary:	Pluggable object copying mechanism

%description -n python3-%{oname}
``zope.copy``
=============

This package provides a pluggable mechanism for copying persistent objects.

Please see ``docs/index.rst`` for the detailed documentation.



%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
#python3 setup.py test

%files -n python3-%{oname}
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/copy
%{py3_puresitedir}/zope.copy*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7667 |21cr|python-zope.copypastemove-4.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.copypastemove

Name:		python-%{pypi_name}
Version:	4.2.1
Release:	3
Summary:	Copy, Paste and Move support for content components
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.copypastemove
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires: 	python3egg(zope.annotation)
BuildRequires: 	python3egg(zope.component)
BuildRequires: 	python3egg(zope.container)
BuildRequires: 	python3egg(zope.copy)
BuildRequires: 	python3egg(zope.event)
BuildRequires: 	python3egg(zope.exceptions)
BuildRequires: 	python3egg(zope.interface)
BuildRequires: 	python3egg(zope.lifecycleevent)
BuildRequires: 	python3egg(zope.location)


%description
Overview
---------

This package provides Copy, Paste and Move support for content
components in Zope.  In particular, it defines the following
interfaces for this kind of functionality:

* ``IObjectMover``,

* ``IObjectCopier``,

* ``IContentItemRenamer``,

* ``IPrincipalClipboard``

as well as standard implementations for containers and contained
objects as known from the ``zope.container`` package.


#--------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Copy, Paste and Move support for content components
Group:		Development/Python

%description -n python3-%{pypi_name}
Overview
---------

This package provides Copy, Paste and Move support for content
components in Zope.  In particular, it defines the following
interfaces for this kind of functionality:

* ``IObjectMover``,

* ``IObjectCopier``,

* ``IContentItemRenamer``,

* ``IPrincipalClipboard``

as well as standard implementations for containers and contained
objects as known from the ``zope.container`` package.


%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/copypastemove
%{py3_puresitedir}/zope.copypastemove*

#--------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
#python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7668 |21cr|python-zope.datetime-4.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.datetime

Name:		python-%{oname}
Version:	4.3.0
Release:	1
Summary:	Zope datetime
Source0:	https://files.pythonhosted.org/packages/14/be/ed179f05fdf4cfaa2665d7548bcea0f6b09591cd3ffb19a477fce99c552b/zope.datetime-4.3.0.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.datetime
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.testrunner)

%description
Commonly used date and time related utility functions.

%package -n python3-%{oname}
Summary:	Zope datetime

%description -n python3-%{oname}
Commonly used date and time related utility functions.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test || :

%files -n python3-%{oname}
%{py3_puresitedir}/zope/datetime
%{py3_puresitedir}/zope.datetime*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7669 |21cr|python-zope.deferredimport-4.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     pypi_name     zope.deferredimport

Name:		python-%{pypi_name}
Version:	4.4
Release:	3
Summary:	Zope deferredimport Infrastructure
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.deferredimport
Source0:	%{pypi_source}
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.proxy)

BuildArch:	noarch

%description
Often, especially for package modules,
you want to import names for convenience,
but not actually perform the imports until necessary.
The zope.deferredimport package provided
facilities for defining names in modules
that will be imported from somewhere else when used.
You can also cause deprecation
warnings to be issued when a variable is used.

#--------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope deferredimport Infrastructure
Group:		Development/Python

%description -n python3-%{pypi_name}
Often, especially for package modules,
you want to import names for convenience,
but not actually perform the imports until necessary.
The zope.deferredimport package provided
facilities for defining names in modules
that will be imported from somewhere else when used.
You can also cause deprecation
warnings to be issued when a variable is used.

%files -n python3-%{pypi_name}
%doc *.rst *.txt
%{py3_puresitedir}/zope/deferredimport
%{py3_puresitedir}/zope.deferredimport*
#--------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
zope-testrunner -vvv --test-path=src

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7670 |21cr|python-zope.deprecation-4.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.deprecation

Name:		python-%{oname}
Version:	4.4.0
Release:	1
Summary:	Zope Deprecation Infrastructure

Source0:	http://pypi.python.org/packages/source/z/zope.deprecation/zope.deprecation-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.deprecation
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
Requires:	python3-setuptools

%description
``zope.deprecation`` README
===========================

This package provides a simple function called ``deprecated(names, reason)``
to mark deprecated modules, classes, functions, methods and properties.

Please see http://docs.zope.org/zope.deprecation/ for the documentation.



%package -n python3-%{oname}
Summary:	Zope Deprecation Infrastructure

%description -n python3-%{oname}
``zope.deprecation`` README
===========================

This package provides a simple function called ``deprecated(names, reason)``
to mark deprecated modules, classes, functions, methods and properties.

Please see http://docs.zope.org/zope.deprecation/ for the documentation.




%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test

%files -n python3-%{oname}
%doc
%{py3_puresitedir}/zope/deprecation
%{py3_puresitedir}/zope.deprecation*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7671 |21cr|python-zope.dottedname-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.dottedname

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Resolver for Python dotted names
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.dottedname
Source0:	https://files.pythonhosted.org/packages/74/20/16adb3fc005acce0519cdacabc50b5e59ab90865f6f4c9f349a1eb2e3bf6/zope.dottedname-5.0.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.testrunner)

%description
======================
Dotted Name Resolution
======================

The ``zope.dottedname`` module provides one function, ``resolve`` that
resolves strings containing dotted names into the appropriate python
object.

Dotted names are resolved by importing modules and by getting
attributes from imported modules. Names may be relative, provided the
module they are relative to is supplied.

#----------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Resolver for Python dotted names
Group:		Development/Python

%description -n python3-%{pypi_name}
======================
Dotted Name Resolution
======================

The ``zope.dottedname`` module provides one function, ``resolve`` that
resolves strings containing dotted names into the appropriate python
object.

Dotted names are resolved by importing modules and by getting
attributes from imported modules. Names may be relative, provided the
module they are relative to is supplied.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/dottedname
%{py3_puresitedir}/zope.dottedname*

#----------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7672 |21cr|python-zope.dublincore-4.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.dublincore

Name:		python-%{pypi_name}
Version:	4.3.0
Release:	3
Summary:	Zope Dublin Core implementation
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		https://pypi.python.org/pypi/zope.dublincore
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(persistent)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.lifecycleevent)
BuildRequires:	python3egg(zope.datetime)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.testrunner)

%description
This package provides a Dublin Core support for Zope-based web applications. 
This includes:
    - an IZopeDublinCore interface definition that can be implemented 
    by objects directly or via an adapter to support DublinCore metadata.
    - an IZopeDublinCore adapter for annotatable objects (objects providing 
    IAnnotatable from zope.annotation).
    - a partial adapter for objects that already implement some of the 
    IZopeDublinCore API,
    - a “Metadata” browser page (which by default appears in the ZMI),
    subscribers to various object lifecycle events that automatically 
    set the created and modified date and some other metadata.

#--------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Dublin Core implementation
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides a Dublin Core support for Zope-based web applications. 
This includes:
    - an IZopeDublinCore interface definition that can be implemented 
    by objects directly or via an adapter to support DublinCore metadata.
    - an IZopeDublinCore adapter for annotatable objects (objects providing 
    IAnnotatable from zope.annotation).
    - a partial adapter for objects that already implement some of the 
    IZopeDublinCore API,
    - a “Metadata” browser page (which by default appears in the ZMI),
    subscribers to various object lifecycle events that automatically 
    set the created and modified date and some other metadata.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/dublincore
%{py3_puresitedir}/zope.dublincore*

#--------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# %check
# python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7673 |21cr|python-zope.error-4.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.error

Name:		python-%{pypi_name}
Version:	4.6
Release:	3
Summary:	An error reporting utility for Zope3
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.error
Source0:	%{pypi_source}
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(persistent)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.exceptions)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildArch:	noarch

%description
This package provides an error reporting utility
which is able to store errors.

#----------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	An error reporting utility for Zope3
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides an error reporting utility
which is able to store errors.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/error
%{py3_puresitedir}/zope.error*

#----------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
# python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7674 |21cr|python-zope.event-4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	zope.event

Name:		python-%{module}
Version:	4.5.0
Release:	1
Summary:	Very basic event publishing system
Source0:	http://pypi.python.org/packages/source/z/%{module}/%{module}-%{version}.tar.gz
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.event

BuildArch:	noarch

%description
``zope.event`` README
=====================

The ``zope.event`` package provides a simple event system, including:

- An event publishing API, intended for use by applications which are
  unaware of any subscribers to their events.

- A very simple event-dispatching system on which more sophisticated
  event dispatching systems can be built. For example, a type-based
  event dispatching system that builds on ``zope.event`` can be found in
  ``zope.component``.

Please see http://docs.zope.org/zope.event/ for the documentation.

#-----------------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Very basic event publishing system

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(coverage)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(tox)


%description -n python3-%{module}
``zope.event`` README
=====================

The ``zope.event`` package provides a simple event system, including:

- An event publishing API, intended for use by applications which are
  unaware of any subscribers to their events.

- A very simple event-dispatching system on which more sophisticated
  event dispatching systems can be built. For example, a type-based
  event dispatching system that builds on ``zope.event`` can be found in
  ``zope.component``.

Please see http://docs.zope.org/zope.event/ for the documentation.

%files -n python3-%{module}
%doc *.txt *.rst
%{py3_puresitedir}/zope/event
%{py3_puresitedir}/zope.event*.egg-info
%{py3_puresitedir}/zope.event-4.5.0-py3.8-nspkg.pth
#-----------------------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%check
# on 686 fail
%ifarch x86_64 aarch64
cd build/lib
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
python3 -m unittest -v zope.event.tests
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7675 |21cr|python-zope.exceptions-4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.exceptions

Name:		python-%{oname}
Version:	4.5
Release:	1
Summary:	Zope Exceptions
Group:		Development/Python
License:	ZPL 2.1
Url:		https://cheeseshop.python.org/pypi/zope.exceptions
Source0:	https://files.pythonhosted.org/packages/1b/63/7e651aba4d137405d8a6eafb911a51a457c7efce727798c027db1f290963/zope.exceptions-4.5.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.interface)

%description
``zope.exceptions`` README
===========================

This package contains exception interfaces and implementations which are so
general purpose that they don't belong in Zope application-specific packages.

#------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Zope Exceptions

%description -n python3-%{oname}
``zope.exceptions`` README
===========================

This package contains exception interfaces and implementations which are so
general purpose that they don't belong in Zope application-specific packages.

%files -n python3-%{oname}
%doc CHANGES.rst
%doc COPYRIGHT.txt
%doc LICENSE.txt
%doc README.rst
%{py3_puresitedir}/zope/exceptions/*
%{py3_puresitedir}/zope.exceptions*.egg-info
%{py3_puresitedir}/zope.exceptions*.pth

#------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7676 |21cr|python-zope.filerepresentation-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.filerepresentation

Name:		python-%{pypi_name}
Version:	5.0.0
Release:	1
Summary:	File-system Representation Interfaces
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.filerepresentation
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.event)
BuildArch:	noarch

%description
==============================
File Representation Interfaces
==============================

Overview
--------

File-system representation interfaces.

The interfaces defined here are used for file-system and file-system-like
representations of objects, such as file-system synchronization, FTP, PUT, and
WebDAV.

#-----------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	File-system Representation Interfaces
Group:		Development/Python

%description -n python3-%{pypi_name}
==============================
File Representation Interfaces
==============================

Overview
--------

File-system representation interfaces.

The interfaces defined here are used for file-system and file-system-like
representations of objects, such as file-system synchronization, FTP, PUT, and
WebDAV.

%files -n python3-%{pypi_name}
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/filerepresentation/*
%{py3_puresitedir}/zope.filerepresentation*.egg-info
%{py3_puresitedir}/zope.filerepresentation*.pth

#-----------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7677 |21cr|python-zope.formlib-6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.formlib

Name:		python-%{pypi_name}
Version:	6.0
Release:	1
Summary:	Form generation and validation library for Zope
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		https://pypi.python.org/pypi/zope.formlib
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3egg(zope.traversing)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.lifecycleevent)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.i18n)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.component)
# Not in ABF yet
BuildRequires:	python3egg(zope.datetime)
#BuildRequires:  python3egg(zope.browserpage)
BuildRequires:	python3egg(zope.browser)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.pagetemplate)

%description
Forms are web components that use widgets to display and input data.
Typically a template displays the widgets by accessing an attribute
or method on an underlying class.

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Form generation and validation library for Zope
Group:		Development/Python

%description -n python3-%{pypi_name}
Forms are web components that use widgets to display and input data.
Typically a template displays the widgets by accessing an attribute
or method on an underlying class.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/formlib
%{py3_puresitedir}/zope.formlib*

#------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || :


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7678 |21cr|python-zope.generations-5.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.generations

Name:		python-%{pypi_name}
Version:	5.1.0
Release:	3
Summary:	Zope application schema generations
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.generations
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(transaction)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.processlifetime)

%description
Generations are a way of updating objects in the database when the application
schema changes.  An application schema is essentially the structure of data,
the structure of classes in the case of ZODB or the table descriptions in the
case of a relational database.

#-----------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Zope application schema generations
Group:		Development/Python

%description -n python3-%{pypi_name}
Generations are a way of updating objects in the database when the application
schema changes.  An application schema is essentially the structure of data,
the structure of classes in the case of ZODB or the table descriptions in the
case of a relational database.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/generations
%{py3_puresitedir}/zope.generations*

#-----------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
#python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7679 |21cr|python-zope.hookable-5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.hookable

Name:		python-%{oname}
Version:	5.2
Release:	1
Summary:	Zope hookable
Source0:	https://files.pythonhosted.org/packages/40/d5/5ed6b312a3a1d66d8e740af301b1cbbf50860d31bc430bd15163de4a50cf/zope.hookable-5.2.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		https://svn.zope.org/zope.hookable
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
``zope.hookable``
=================

Overview
--------

Hookable object support.

Support the efficient creation of hookable objects, which are callable objects
that are meant to be replaced by other callables, at least optionally.

The idea is you create a function that does some default thing and make it
hookable. Later, someone can modify what it does by calling its sethook method
and changing its implementation.  All users of the function, including those
that imported it, will see the change.

#------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Zope hookable
Group:		Development/Python

%description -n python3-%{oname}
``zope.hookable``
=================

Overview
--------

Hookable object support.

Support the efficient creation of hookable objects, which are callable objects
that are meant to be replaced by other callables, at least optionally.

The idea is you create a function that does some default thing and make it
hookable. Later, someone can modify what it does by calling its sethook method
and changing its implementation.  All users of the function, including those
that imported it, will see the change.

%files -n python3-%{oname}
%{py3_platsitedir}/zope.hookable*
%{py3_platsitedir}/zope/hookable

#------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7680 |21cr|python-zope.i18n-4.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.i18n

Name:		python-%{pypi_name}
Version:	4.9.0
Release:	1
Summary:	Zope Internationalization Support
Source0:	https://files.pythonhosted.org/packages/c1/df/a644319b7d75144e445c92dd29d90e95d27b0a07f44b4b692546bf5d3bd2/zope.i18n-4.9.0.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.i18n
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
Zope Internationalization Support
=================================

This package implements several APIs related to internationalization and
localization.

* Locale objects for all locales maintained by the ICU project.

* Gettext-based message catalogs for message strings.

* Locale discovery for Web-based requests.

.. See ``docs/index.rst`` for the documentation.

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Internationalization Support
Group:		Development/Python

%description -n python3-%{pypi_name}
Zope Internationalization Support
=================================

This package implements several APIs related to internationalization and
localization.

* Locale objects for all locales maintained by the ICU project.

* Gettext-based message catalogs for message strings.

* Locale discovery for Web-based requests.

.. See ``docs/index.rst`` for the documentation.

%files -n python3-%{pypi_name}
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/i18n/*
%{py3_puresitedir}/zope.i18n*.egg-info
%{py3_puresitedir}/zope.i18n*.pth

#--------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7681 |21cr|python-zope.i18nmessageid-5.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.i18nmessageid

Name:		python-%{pypi_name}
Version:	5.0.1
Release:	3
Summary:	Message Identifiers for internationalization

Source0:	%pypi_source
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.i18nmessageid
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-coverage
BuildRequires:	python3-pip

%description
To translate any text, we must be able to discover the source domain
of the text.  A source domain is an identifier that identifies a
project that produces program source strings.  Source strings occur as
literals in python3 programs, text in templates, and some text in XML
data.  The project implies a source language and an application
context.

We can think of a source domain as a collection of messages and
associated translation strings.

We often need to create unicode strings that will be displayed by
separate views.  The view cannot translate the string without knowing
its source domain.  A string or unicode literal carries no domain
information, therefore we use messages.  Messages are unicode strings
which carry a translation source domain and possibly a default
translation.  They are created by a message factory. The message
factory is created by calling ``MessageFactory`` with the source
domain.

This package provides facilities for *declaring* such messages within
program source text;  translation of the messages is the responsiblitiy
of the 'zope.i18n' package.

Please see http://docs.zope.org/zope.i18nmessageid/ for the documentation.

#-------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Message Identifiers for internationalization

%description -n python3-%{pypi_name}
To translate any text, we must be able to discover the source domain
of the text.  A source domain is an identifier that identifies a
project that produces program source strings.  Source strings occur as
literals in python programs, text in templates, and some text in XML
data.  The project implies a source language and an application
context.

We can think of a source domain as a collection of messages and
associated translation strings.

We often need to create unicode strings that will be displayed by
separate views.  The view cannot translate the string without knowing
its source domain.  A string or unicode literal carries no domain
information, therefore we use messages.  Messages are unicode strings
which carry a translation source domain and possibly a default
translation.  They are created by a message factory. The message
factory is created by calling ``MessageFactory`` with the source
domain.

This package provides facilities for *declaring* such messages within
program source text;  translation of the messages is the responsiblitiy
of the 'zope.i18n' package.

Please see http://docs.zope.org/zope.i18nmessageid/ for the documentation.

%files -n python3-%{pypi_name}
%doc README* CHANGES* COPYRIGHT*
%{py3_platsitedir}/zope/i18nmessageid/*
%{py3_platsitedir}/zope.i18nmessageid*.egg-info
%{py3_platsitedir}/zope.i18nmessageid*.pth

#-------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
# need internet connection
#python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7682 |21cr|python-zope.index-5.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.index

Name:		python-%{oname}
Version:	5.2.1
Release:	1
Summary:	Indices for using with catalog like text, field, etc
Source0:	https://files.pythonhosted.org/packages/cf/e0/5ef3420398114a6f539375ea9334a211f4de4eec63b28efd450a47e46c5b/zope.index-5.2.1.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.index
BuildRequires:	python3-devel python3-setuptools

Requires:	python3egg(btrees) 
Requires:	python3egg(persistent) 
Requires:	python3egg(setuptools) 
Requires:	python3egg(six) 
Requires:	python3egg(zope.interface)


%description
Overview
--------

The ``zope.index`` package provides several indices for the Zope
catalog.  These include:

* a field index (for indexing orderable values),

* a keyword index,

* a topic index,

* a text index (with support for lexicon, splitter, normalizer, etc.)




%package -n python3-%{oname}
Summary:	Indices for using with catalog like text, field, etc

%description -n python3-%{oname}
Overview
--------

The ``zope.index`` package provides several indices for the Zope
catalog.  These include:

* a field index (for indexing orderable values),

* a keyword index,

* a topic index,

* a text index (with support for lexicon, splitter, normalizer, etc.)





%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
#python3 setup.py test

%files -n python3-%{oname}
%{py3_platsitedir}/zope/index
%{py3_platsitedir}/zope.index*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7683 |21cr|python-zope.intid-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define    pypi_name    zope.intid

Name:       python-%{pypi_name}
Version:    5.0
Release:    1
Summary:    Integer Id Utility
License:    ZPLv2.1
Group:      Development/Python
Url:        http://pypi.python.org/pypi/zope.intid
Source0:    %{pypi_source}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(zope.security)
BuildRequires:  python3egg(zope.proxy)
BuildRequires:  python3egg(zope.location)
BuildRequires:  python3egg(zope.keyreference)
BuildRequires:  python3egg(zope.event)
BuildRequires:  python3egg(zope.component)
BuildRequires:  python3egg(zope.lifecycleevent)
BuildRequires:  python3egg(persistent)
BuildRequires:  python3egg(zodb3)
BuildRequires:  python3egg(btrees)
BuildRequires:  python3egg(zope.schema)
BuildRequires:  python3egg(zope.proxy)
BuildRequires:  python3egg(zope.site)
BuildRequires:  python3egg(zope.testing)
BuildRequires:  python3egg(zope.testrunner)
BuildRequires:  python3egg(zope.i18nmessageid)
BuildRequires:  python3egg(zope.traversing)
BuildRequires:  python3egg(zope.container)

BuildArch:    noarch

%description
This package provides an API to create integer ids for any object. Later
objects can be looked up by their id as well. This functionality is commonly
used in situations where dealing with objects is undesirably, such as in
search indices or any code that needs an easy hash of an object.
#------------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:    Integer Id Utility

%description -n python3-%{pypi_name}
This package provides an API to create integer ids for any object. Later
objects can be looked up by their id as well. This functionality is commonly
used in situations where dealing with objects is undesirably, such as in
search indices or any code that needs an easy hash of an object.

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/zope/intid
%{py3_puresitedir}/zope.intid*
#------------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
sed -e "s|ZODB|ZODB3|"  setup.py

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
python3 -m zope.intid.tests



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7684 |21cr|python-zope.keyreference-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.keyreference

Name:		python-%{pypi_name}
Version:	5.0.0
Release:	1
Summary:	Key References
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.keyreference
Source0:	https://files.pythonhosted.org/packages/ff/49/e5875f5650c4194279bd2009fab659664c79b79186d8d1e8df510f7c9cb7/zope.keyreference-5.0.0.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
Object references that support stable comparison and hashes.

#----------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Key References
Group:		Development/Python
Requires:       python3egg(setuptools) 
#Requires: python3egg(zodb3) 
Requires: python3egg(zope.component)
Requires: python3egg(zope.i18nmessageid) 
Requires: python3egg(zope.interface) 
Requires: python3egg(zope.schema)

%description -n python3-%{pypi_name}
Object references that support stable comparison and hashes.

%files -n python3-%{pypi_name}
%doc *.txt
%{py3_puresitedir}/zope/keyreference
%{py3_puresitedir}/zope.keyreference*

#----------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}
perl -pi -e "s|ZODB|ZODB3|"  setup.py

%build
%py3_build

%install
%py3_install

%check
#python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7685 |21cr|python-zope.lifecycleevent-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.lifecycleevent

Name:		python-%{oname}
Version:	4.4
Release:	1
Summary:	Object life-cycle events
Source0:	https://files.pythonhosted.org/packages/c5/d3/1ec0c4f0b5092cefcbf299161a4852ff94e22f82e5392f34d24df6fccfd2/zope.lifecycleevent-4.4.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.lifecycleevent
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.interface)

%description
=================
Life-cycle events
=================

In Zope, events are used by components to inform each other about
relevant new objects and object modifications.

Some event consumers like catalogs and caches may need more information to
update themselves in an efficient manner. The necessary information can be
provided as optional modification descriptions of the ObjectModifiedEvent.


%package -n python3-%{oname}
Summary:	Object life-cycle events

%description -n python3-%{oname}
=================
Life-cycle events
=================

In Zope, events are used by components to inform each other about
relevant new objects and object modifications.

Some event consumers like catalogs and caches may need more information to
update themselves in an efficient manner. The necessary information can be
provided as optional modification descriptions of the ObjectModifiedEvent.



%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
# python3 setup.py test

%files -n python3-%{oname}
%doc CHANGES.rst
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/lifecycleevent/*
%{py3_puresitedir}/zope.lifecycleevent*.egg-info
%{py3_puresitedir}/zope.lifecycleevent*.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7686 |21cr|python-zope.location-4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.location

Name:		python-%{pypi_name}
Version:	4.3
Release:	1
Summary:	Zope Location

Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.location/
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
Zope Location
In Zope3, location are special objects that has a structural location.

#---------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Location
Group:		Development/Python

%description -n python3-%{pypi_name}
Zope Location
In Zope3, location are special objects that has a structural location.

%files -n python3-%{pypi_name}
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/location/*
%{py3_puresitedir}/zope.location*.egg-info
%{py3_puresitedir}/zope.location*.pth

#---------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

#%check
#python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7687 |21cr|python-zope.login-2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.login

Name:		python-%{pypi_name}
Version:	2.2
Release:	3
Summary:	Login helpers for zope.publisher / authentication
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.login
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.authentication)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.location)

%description
Overview
========

This package provides a login helpers for zope.publisher based on the concepts
of zope.authentication.
#-----------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Login helpers for zope.publisher / authentication
Group:		Development/Python

%description -n python3-%{pypi_name}
Overview
========

This package provides a login helpers for zope.publisher based on the concepts
of zope.authentication.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/login
%{py3_puresitedir}/zope.login*
#-----------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
# python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7688 |21cr|python-zope.mimetype-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.mimetype

Name:		python-%{pypi_name}
Version:	3.0
Release:	1
Summary:	A simple package for working with MIME content types
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.mimetype
Source0:	%{pypi_source}
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.formlib)
BuildRequires:	python3egg(zope.browserresource)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(btrees)
BuildArch:	noarch


%description
This package provides a way to work with MIME content types.  There
are several interfaces defined here, many of which are used primarily
to look things up based on different bits of information.
#----------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A simple package for working with MIME content types
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides a way to work with MIME content types.  There
are several interfaces defined here, many of which are used primarily
to look things up based on different bits of information.

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/zope/*
%{py3_puresitedir}/%{pypi_name}*
#----------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr  src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
zope-testrunner -vvv --test-path=src


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7689 |21cr|python-zope.minmax-2.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.minmax

Name:		python-%{pypi_name}
Version:	2.3
Release:	3
Summary:	Homogeneous values favoring maximum or minimum for ZODB conflict resolution
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.io/pypi/zope.minmax/
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(persistent)

Requires:	python3egg(persistent)
Requires:	python3egg(setuptools)
Requires:	python3egg(zope.interface)

%description
=================================
Min/Max Value Conflict Resolution
=================================

This package provides support for homogeneous values favoring maximum
or minimum for ZODB conflict resolution.  See
``src/zope/minmax/minmax.txt`` for a detailed description.


#----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Homogeneous values favoring maximum or minimum for ZODB conflict resolution

%description -n python3-%{pypi_name}
=================================
Min/Max Value Conflict Resolution
=================================

This package provides support for homogeneous values favoring maximum
or minimum for ZODB conflict resolution.  See
``src/zope/minmax/minmax.txt`` for a detailed description.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/minmax
%{py3_puresitedir}/zope.minmax*

#----------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7690 |21cr|python-zope.pagetemplate-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.pagetemplate

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Zope Page Templates
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.pagetemplate
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.traversing)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.i18n)
BuildRequires:	python3egg(zope.tal)
BuildRequires:	python3egg(zope.tales)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.untrustedpython)
BuildArch:	noarch

%description
Page Templates provide an elegant templating mechanism that achieves a
clean separation of presentation and application logic while allowing
for designers to work with templates in their visual editing tools
(FrontPage, Dreamweaver, GoLive, etc.).

#-----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Page Templates
Group:		Development/Python

%description -n python3-%{pypi_name}
Page Templates provide an elegant templating mechanism that achieves a
clean separation of presentation and application logic while allowing
for designers to work with templates in their visual editing tools
(FrontPage, Dreamweaver, GoLive, etc.).

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/pagetemplate
%{py3_puresitedir}/zope.pagetemplate*

#-----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7691 |21cr|python-zope.password-4.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.password

Name:		python-%{pypi_name}
Version:	4.4
Release:	3
Summary:	Password encoding and checking utilities
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.password
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:  python3egg(zope.configuration)
BuildRequires:  python3egg(zope.component)
BuildRequires:  python3egg(zope.schema)
BuildRequires:  python3egg(zope.i18nmessageid)
BuildRequires:  python3egg(zope.event)
BuildRequires:  python3egg(zope.testrunner)
BuildRequires:  python3egg(zope.testing)
BuildRequires:  python3egg(zope.security)
BuildRequires:  python3egg(bcrypt)

%description
================
Password Manager
================

This package provides a password manager mechanism. Password manager
is an utility object that can encode and check encoded
passwords. Beyond the generic interface, this package also provides
seven implementations:

* PlainTextPasswordManager - the most simple and the less secure
  one. It does not do any password encoding and simply checks password
  by string equality.  It's useful in tests or as a base class for
  more secure implementations.

* MD5PasswordManager - a password manager that uses MD5 algorithm to
  encode passwords. It's generally weak against dictionary attacks due to a
  lack of a salt.
 
* SMD5PasswordManager - a password manager that uses MD5 algorithm, together
  with a salt to encode passwords. It's better protected against against
  dictionary attacks, but the MD5 hashing algorithm is not as strong as the
  SHA1 algorithm.

* SHA1PasswordManager - a password manager that uses SHA1 algorithm to
  encode passwords. It has the same weakness as the MD5PasswordManager.
 
* SSHAPasswordManager - the most secure password manager that is
  strong against dictionary attacks. It's basically SHA1-encoding
  password manager which also incorporates a salt into the password
  when encoding it.

* CryptPasswordManager - A manager implementing the crypt(3) hashing scheme.
  Only available if the python3 crypt module is installed. This is a legacy
  manager, only present to ensure that zope.password can be used for all
  schemes defined in RFC 2307 (LDAP).

* MySQLPasswordManager - A manager implementing the digest scheme as
  implemented in the MySQL PASSWORD function in MySQL versions before 4.1. 
  Note that this method results in a very weak 16-byte hash.

The Crypt, MD5, SMD5, SHA and SSHA password managers are all compatible with
RFC 2307 LDAP implementations of the same password encoding schemes.

It is strongly recommended to use SSHAPasswordManager, as it's the
most secure.

The package also provides a script `zpasswd` to generate principal
entries in typical ``site.zcml`` files.

#---------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Password encoding and checking utilities

%description -n python3-%{pypi_name}
================
Password Manager
================

This package provides a password manager mechanism. Password manager
is an utility object that can encode and check encoded
passwords. Beyond the generic interface, this package also provides
seven implementations:

* PlainTextPasswordManager - the most simple and the less secure
  one. It does not do any password encoding and simply checks password
  by string equality.  It's useful in tests or as a base class for
  more secure implementations.

* MD5PasswordManager - a password manager that uses MD5 algorithm to
  encode passwords. It's generally weak against dictionary attacks due to a
  lack of a salt.
 
* SMD5PasswordManager - a password manager that uses MD5 algorithm, together
  with a salt to encode passwords. It's better protected against against
  dictionary attacks, but the MD5 hashing algorithm is not as strong as the
  SHA1 algorithm.

* SHA1PasswordManager - a password manager that uses SHA1 algorithm to
  encode passwords. It has the same weakness as the MD5PasswordManager.
 
* SSHAPasswordManager - the most secure password manager that is
  strong against dictionary attacks. It's basically SHA1-encoding
  password manager which also incorporates a salt into the password
  when encoding it.

* CryptPasswordManager - A manager implementing the crypt(3) hashing scheme.
  Only available if the python crypt module is installed. This is a legacy
  manager, only present to ensure that zope.password can be used for all
  schemes defined in RFC 2307 (LDAP).

* MySQLPasswordManager - A manager implementing the digest scheme as
  implemented in the MySQL PASSWORD function in MySQL versions before 4.1. 
  Note that this method results in a very weak 16-byte hash.

The Crypt, MD5, SMD5, SHA and SSHA password managers are all compatible with
RFC 2307 LDAP implementations of the same password encoding schemes.

It is strongly recommended to use SSHAPasswordManager, as it's the
most secure.

The package also provides a script `zpasswd` to generate principal
entries in typical ``site.zcml`` files.

%files -n python3-%{pypi_name}
%{_bindir}/*
%{py3_puresitedir}/zope/password
%{py3_puresitedir}/zope.password*

#---------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7692 |21cr|python-zope.principalannotation-4.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.principalannotation

Name:		python-%{pypi_name}
Version:	4.4
Release:	3
Summary:	Annotations for Zope Principals
License:	ZPLv2.1
Group:		Development/Python
Url:		https://pypi.python.org/pypi/%{pypi_name}
Source0:	%{pypi_source}
BuildRequires:	python3egg(persistent)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(zope.annotation)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.site)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.testrunner)

BuildArch:	noarch

%description
This package implements annotations for zope.security principals.
To make it clear, the `principal` here is the object that provides
``zope.security.interfaces.IPrincipal`` interface and `annotations` is
the object providing ``zope.annotation.interfaces.IAnnotations``.

The problem is that principals is dynamic, non-persistent objects created
on the fly for every security participation (request or something), so
common annotation techniques, like AttributeAnnotations cannot be applied
to them.

This package provides a persistent storage of principal annotations,
storing annotations by principal ID as well as an adapter from IPrincipal
to IAnnotations.

#-----------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Annotations for Zope Principals
Group:		Development/Python

%description -n python3-%{pypi_name}
This package implements annotations for zope.security principals.
To make it clear, the `principal` here is the object that provides
``zope.security.interfaces.IPrincipal`` interface and `annotations` is
the object providing ``zope.annotation.interfaces.IAnnotations``.

The problem is that principals is dynamic, non-persistent objects created
on the fly for every security participation (request or something), so
common annotation techniques, like AttributeAnnotations cannot be applied
to them.

This package provides a persistent storage of principal annotations,
storing annotations by principal ID as well as an adapter from IPrincipal
to IAnnotations.

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/zope/principalannotation
%{py3_puresitedir}/%{pypi_name}*
#-----------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
zope-testrunner -vvv --test-path=src

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7693 |21cr|python-zope.principalregistry-4.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.principalregistry

Name:		python-%{pypi_name}
Version:	4.3
Release:	3
Summary:	Global principal registry component for Zope3
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		https://pypi.io/pypi/zope.principalregistry
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.authentication)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.password)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)

%description
===========================
Global principal definition
===========================

Global principals are defined via ZCML.  There are several kinds of
principals that can be defined.

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Global principal registry component for Zope3
Group:		Development/Python

%description -n python3-%{pypi_name}
===========================
Global principal definition
===========================

Global principals are defined via ZCML.  There are several kinds of
principals that can be defined.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/principalregistry/
%{py3_puresitedir}/zope.principalregistry*

#------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7694 |21cr|python-zope.processlifetime-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.processlifetime

Name:		python-%{oname}
Version:	2.4
Release:	1
Summary:	Zope process lifetime events
Source0:	https://files.pythonhosted.org/packages/ea/97/52782eab34a33e63887a3084e27ab9964e6f01602b7b6bb27f26783c3343/zope.processlifetime-2.4.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.processlifetime
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.interface)

%description
zope.processlifetime README
===========================

This package provides interfaces / implementations for events relative to
the lifetime of a server process (startup, database opening, etc.)

It is derived from Zope 3.4's 'zope.app.appsetup'.

%package -n python3-%{oname}
Summary:	Zope process lifetime events

%description -n python3-%{oname}
zope.processlifetime README
===========================

This package provides interfaces / implementations for events relative to
the lifetime of a server process (startup, database opening, etc.)

It is derived from Zope 3.4's 'zope.app.appsetup'.


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test

%files -n python3-%{oname}
%{py3_puresitedir}/zope/processlifetime
%{py3_puresitedir}/zope.processlifetime*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7695 |21cr|python-zope.proxy-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name zope.proxy

Name:		python-%{pypi_name}
Version:	5.0.0
Release:	1
Group:		Development/Python
License:	ZPLv2.1
Summary:	Generic Transparent Proxies
Url:		http://pypi.python.org/pypi/%{pypi_name}/3.5.0
Source:		%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
Proxies are special objects which serve as mostly-transparent wrappers
around another object, intervening in the apparent behavior of the wrapped
object only when necessary to apply the policy (e.g., access checking,
location brokering, etc.) for which the proxy is responsible.

#-------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Generic Transparent Proxies
Group:		Development/Python

%description -n python3-%{pypi_name}
Proxies are special objects which serve as mostly-transparent wrappers
around another object, intervening in the apparent behavior of the wrapped
object only when necessary to apply the policy (e.g., access checking,
location brokering, etc.) for which the proxy is responsible.

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_platsitedir}/*
%exclude %{py3_platsitedir}/zope/proxy/proxy.h
%exclude %{py3_platsitedir}/zope/proxy/_zope_proxy_proxy.c
#-------------------------------------------------------
%package -n python3-%{pypi_name}-devel
Summary:	Generic Transparent Proxies
Group:		Development/Python
Requires:	python3-%{pypi_name} = %{EVRD}

%description -n python3-%{pypi_name}-devel
This package contains the files needed for binding the %{name} C pypi_name.

%files -n python3-%{pypi_name}-devel
%doc *.txt *.rst
%{_includedir}/python*/*
%{py3_platsitedir}/zope/proxy/proxy.h
%{py3_platsitedir}/zope/proxy/_zope_proxy_proxy.c
#-----------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


%check
#PYTHONPATH=%{buildroot}%{py3_platsitedir}:$PYTHONPATH
#PYTHONPATH=%{buildroot}%{_includedir}/python3.8:$PYTHONPATH
#export PYTHONPATH
#zope-testrunner -vvv --test-path=src

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7696 |21cr|python-zope.ptresource-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.ptresource

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Page template resource plugin for zope.browserresource
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		https://pypi.python.org/pypi/zope.ptresource/
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.browserresource)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.pagetemplate)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)

%description
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides a "page template" resource class, a resource which
content is processed with Zope Page Templates engine before returning to
client.

The resource factory class is registered for "pt", "zpt" and "html" file
extensions in package's ``configure.zcml`` file.

#--------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Page template resource plugin for zope.browserresource
Group:		Development/Python

%description -n python3-%{pypi_name}
========
Overview
========

*This package is at present not reusable without depending on a large
chunk of the Zope Toolkit and its assumptions. It is maintained by the*
`Zope Toolkit project <http://docs.zope.org/zopetoolkit/>`_.

This package provides a "page template" resource class, a resource which
content is processed with Zope Page Templates engine before returning to
client.

The resource factory class is registered for "pt", "zpt" and "html" file
extensions in package's ``configure.zcml`` file.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/ptresource
%{py3_puresitedir}/zope.ptresource*

#--------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7697 |21cr|python-zope.publisher-6.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.publisher

Name:		python-%{pypi_name}
Version:	6.1.0
Release:	3
Summary:	The Zope publisher publishes Python objects on the web
License:	ZPLv2.1
Group:		Development/Python
Url:		https://pypi.python.org/pypi/zope.publisher
Source0:	%{pypi_source}
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.browser)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.contenttype) >= 3.5
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.i18n) >= 4.0.0a3
BuildRequires:	python3egg(zope.exceptions)
BuildRequires:	python3egg(zope.interface) >= 3.8.0
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.security) >= 4.0.0
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(pytz)
BuildRequires:	python3egg(zope.contenttype) 

BuildArch:	noarch

%description
zope.publisher allows you to publish Python objects on the web.  It
has support for plain HTTP/WebDAV clients, web browsers as well as
XML-RPC and FTP clients.  Input and output streams are represented by
request and response objects which allow for easy client interaction
from Python.  The behavior of the publisher is geared towards WSGI
compatibility.

#-------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	The Zope publisher publishes Python objects on the web
Group:		Development/Python

%description -n python3-%{pypi_name}
zope.publisher allows you to publish Python3 objects on the web.  It
has support for plain HTTP/WebDAV clients, web browsers as well as
XML-RPC and FTP clients.  Input and output streams are represented by
request and response objects which allow for easy client interaction
from Python.  The behavior of the publisher is geared towards WSGI
compatibility.

%files -n python3-%{pypi_name}
%doc *.txt *.rst
%{py3_puresitedir}/zope/publisher
%{py3_puresitedir}/zope.publisher*

#-------------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7698 |21cr|python-zope.schema-6.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.schema

Name:		python-%{pypi_name}
Version:	6.2.1
Release:	1
Summary:	Zope.interface extension for defining data schemas
Source0:	https://files.pythonhosted.org/packages/2a/b9/84e4e7fd38adaa98c8f2fa6b783c35437fff41705d071cb6a35637f6b27b/zope.schema-6.2.1.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.schema
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.exceptions)
BuildRequires:	python3egg(zope.i18nmessageid)
#BuildRequires:	python3egg(zope.i18n)
BuildArch:	noarch

%description
zope.schema README
==================

Schemas extend the notion of interfaces to detailed descriptions of
Attributes (but not methods).  Every schema is an interface and
specifies the public fields of an object.  A *field* roughly
corresponds to an attribute of a Python object.  But a Field provides
space for at least a title and a description.  It can also constrain
its value and provide a validation method.  Besides you can optionally
specify characteristics such as its value being read-only or not
required.

See http://docs.zope.org/zope.schema/ for more information.

#-------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope.interface extension for defining data schemas

%description -n python3-%{pypi_name}
zope.schema README
==================

Schemas extend the notion of interfaces to detailed descriptions of
Attributes (but not methods).  Every schema is an interface and
specifies the public fields of an object.  A *field* roughly
corresponds to an attribute of a Python object.  But a Field provides
space for at least a title and a description.  It can also constrain
its value and provide a validation method.  Besides you can optionally
specify characteristics such as its value being read-only or not
required.

See http://docs.zope.org/zope.schema/ for more information.

%files -n python3-%{pypi_name}
%doc CHANGES.rst
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/schema/*
%{py3_puresitedir}/zope.schema*.egg-info
%{py3_puresitedir}/zope.schema*.pth

#-------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7699 |21cr|python-zope.security-6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.security

Name:		python-%{pypi_name}
Version:	6.1
Release:	1
Summary:	Zope Security Framework
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/%{pypi_name}
Source0:	%{pypi_source}

BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(zope.i18nmessageid)
BuildRequires: python3egg(zope.interface)
BuildRequires: python3egg(zope.location)
BuildRequires: python3egg(zope.proxy) >= 4.1.0
BuildRequires: python3egg(zope.schema)
BuildRequires: python3egg(zope.event)
BuildRequires: python3egg(zope.component)


%description
The Security framework provides a generic mechanism to implement security
policies on Python objects.

#----------------------------------------------

%package -n python3-%{pypi_name}
Summary:    Zope Security Framework
Group:      Development/Python

%description -n python3-%{pypi_name}
The Security framework provides a generic mechanism to implement security
policies on Python objects.

%files -n python3-%{pypi_name}
%doc *rst *txt
%{py3_platsitedir}/zope/security
%{py3_platsitedir}/%{pypi_name}*
%exclude %{py3_platsitedir}/zope/security/*.c

#----------------------------------------------
%package -n python-%{pypi_name}-devel
Summary:    Zope Security Framework
Group:      Development/Python
Provides:   python3-%{pypi_name}-devel = %{EVRD}
Requires:   python3-%{pypi_name} = %{EVRD}

%description -n python-%{pypi_name}-devel
Devel files for %{pypi_name}

%files -n python-%{pypi_name}-devel
%doc *rst *txt
%{py3_platsitedir}/zope/security/*.c

#----------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7700 |21cr|python-zope.securitypolicy-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.securitypolicy

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Default security policy for Zope3
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.securitypolicy
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.security)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.configuration)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.authentication)
BuildRequires:	python3egg(zope.annotation)
BuildRequires:	python3egg(persistent)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.testing)

%description
This package provides an useful security policy for Zope3. It's the
default security policy used in "zope3 the application" and many other
zope-based projects.
#-------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Default security policy for Zope3
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides an useful security policy for Zope3. It's the
default security policy used in "zope3 the application" and many other
zope-based projects.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/securitypolicy
%{py3_puresitedir}/zope.securitypolicy*

#-------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7701 |21cr|python-zope.server-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.server

Name:		python-%{oname}
Version:	4.0.2
Release:	1
Summary:	Zope Server (Web and FTP)
Source0:	http://pypi.python.org/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.server
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
This package contains generic base classes for channel-based servers, the
servers themselves and helper objects, such as tasks and requests.

============
WSGI Support
============

`zope.server`'s HTTP server comes with WSGI_ support.
``zope.server.http.wsgihttpserver.WSGIHTTPServer`` can act as a WSGI gateway.
There's also an entry point for PasteDeploy_ that lets you use zope.server's
WSGI gateway from a configuration file, e.g.::

  [server:main]
  use = egg:zope.server
  host = 127.0.0.1
  port = 8080

.. _WSGI: http://www.python.org/dev/peps/pep-0333/
.. _PasteDeploy: http://pythonpaste.org/deploy/

%package -n python3-%{oname}
Summary:	Zope Server (Web and FTP)

%description -n python3-%{oname}
This package contains generic base classes for channel-based servers, the
servers themselves and helper objects, such as tasks and requests.

============
WSGI Support
============

`zope.server`'s HTTP server comes with WSGI_ support.
``zope.server.http.wsgihttpserver.WSGIHTTPServer`` can act as a WSGI gateway.
There's also an entry point for PasteDeploy_ that lets you use zope.server's
WSGI gateway from a configuration file, e.g.::

  [server:main]
  use = egg:zope.server
  host = 127.0.0.1
  port = 8080

.. _WSGI: http://www.python.org/dev/peps/pep-0333/
.. _PasteDeploy: http://pythonpaste.org/deploy/


%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%files -n python3-%{oname}
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/server/*
%{py3_puresitedir}/zope.server*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7702 |21cr|python-zope.session-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.session

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Client identification and sessions for Zope
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		https://pypi.python.org/pypi/zope.session
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zodb)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.minmax)
BuildRequires:	python3egg(zope.publisher)

Requires:	python3egg(setuptools)
Requires:	python3egg(zope.component)
Requires:	python3egg(zope.i18nmessageid)
Requires:	python3egg(zope.interface)
Requires:	python3egg(zope.location)
Requires:	python3egg(zope.minmax)
Requires:	python3egg(zope.publisher)

%description
This package provides interfaces for client identification and session
support and their implementations for zope.publisher's request objects.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Client identification and sessions for Zope
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides interfaces for client identification and session
support and their implementations for zope.publisher's request objects.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/session
%{py3_puresitedir}/zope.session*

#---------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}
#sed -i  "s|ZODB|ZODB3|"  setup.py

%build
%py3_build

%install
%py3_install

%check
#python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7703 |21cr|python-zope.site-4.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define   pypi_name   zope.site


Name:      python-%{pypi_name}
Version:   4.6.1
Release:   1
Epoch:     1
Summary:   Local registries for zope component architecture
License:   ZPLv2.1
Group:     Development/Python
Url:       http://pypi.python.org/pypi/zope.site
Source0:   %{pypi_source}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(coverage)
BuildRequires:  python3egg(zope.location)
BuildRequires:  python3egg(zope.lifecycleevent)
BuildRequires:  python3egg(zope.event)
BuildRequires:  python3egg(zope.component)
BuildRequires:  python3egg(zope.security)
BuildRequires:  python3egg(zope.proxy)
BuildRequires:  python3egg(zope.container)
BuildRequires:  python3egg(zope.annotation)
BuildRequires:  python3egg(zope.proxy)
BuildRequires:  python3egg(zope.schema)
BuildRequires:  python3egg(zc.lockfile)
BuildRequires:  python3egg(zope.testrunner)
BuildRequires:  python3egg(zope.testing)
BuildRequires:  python3egg(zodb)
BuildRequires:  python3egg(zodbpickle)
BuildRequires:  python3egg(zope.deprecation)
BuildRequires:  python3egg(zope.interface) >= 4.5.0
BuildRequires:  python3egg(zope.configuration)
BuildArch:   noarch


%description
=====================================
Zope 3's Local Component Architecture
=====================================

This package provides a local and persistent site manager
implementation, so that one can register local utilities and
adapters. It uses local adapter registries for its adapter and utility
registry. The module also provides some facilities to organize the
local software and ensures the correct behavior inside the ZODB.

#---------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:   Local registries for zope component architecture

%description -n python3-%{pypi_name}
=====================================
Zope 3's Local Component Architecture
=====================================

This package provides a local and persistent site manager
implementation, so that one can register local utilities and
adapters. It uses local adapter registries for its adapter and utility
registry. The module also provides some facilities to organize the
local software and ensures the correct behavior inside the ZODB.

%files -n python3-%{pypi_name}
%doc *.rst *.txt
%{py3_puresitedir}/zope/site
%{py3_puresitedir}/zope.site*

#---------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -fr src/%{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7704 |21cr|python-zope.size-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.size

Name:		python-%{pypi_name}
Version:	4.4
Release:	1
Summary:	Interfaces and simple adapter that give the size of an object
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.size
Source0:	https://files.pythonhosted.org/packages/9a/6b/983e71c5791b07f8683f44eefd06ba101924fd1efc630cf099da0eafa9b0/zope.size-4.4.tar.gz
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
This package provides a definition of simple interface that allows to
retrieve the size of the object for displaying and for sorting.

The default adapter is also provided. It expects objects to have the
``getSize`` method that returns size in bytes, however, it won't crash if
an object doesn't have one and will show size as ``not available`` instead.

#--------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Interfaces and simple adapter that give the size of an object
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides a definition of simple interface that allows to
retrieve the size of the object for displaying and for sorting.

The default adapter is also provided. It expects objects to have the
``getSize`` method that returns size in bytes, however, it won't crash if
an object doesn't have one and will show size as ``not available`` instead.

%files -n python3-%{pypi_name}
%doc LICENSE.txt
%{py3_puresitedir}/zope/size/*
%{py3_puresitedir}/zope.size*.egg-info
%{py3_puresitedir}/zope.size*.pth

#--------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7705 |21cr|python-zope.structuredtext-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.structuredtext

Name:		python-%{oname}
Version:	4.4
Release:	1
Summary:	StructuredText parser
Source0:	https://files.pythonhosted.org/packages/15/0f/174993bba0c5588373a9ec7623904c8f2c8679ede18f42e05a8aedaa216e/zope.structuredtext-4.4.tar.gz
License:	ZPL 2
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.structuredtext
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
``zope.structuredtext`` README
==============================

This package provides a parser and renderers for the classic Zope
"structured text" markup dialect (STX).  STX is a plain text markup in
which document structure is signalled primarily by identation


%package -n python3-%{oname}
Summary:	StructuredText parser

%description -n python3-%{oname}
``zope.structuredtext`` README
==============================

This package provides a parser and renderers for the classic Zope
"structured text" markup dialect (STX).  STX is a plain text markup in
which document structure is signalled primarily by identation



%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}

%check
python3 setup.py test

%files -n python3-%{oname}
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/structuredtext*
%{py3_puresitedir}/zope.structuredtext*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7706 |21cr|python-zope.tal-4.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.tal

Name:		python-%{pypi_name}
Version:	4.5
Release:	2
Summary:	Zope Template Application Language (TAL)
Group:		Development/Ruby
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.tal
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.testrunner)
BuildRequires:	python3egg(zope.exceptions)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.testing)
BuildArch:	noarch

%description
Template Attribute Language (TAL)
=================================

Overview
--------

The Zope3 Template Attribute Languate (TAL) specifies the custom namespace
and attributes which are used by the Zope Page Templates renderer to inject
dynamic markup into a page.  It also includes the Macro Expansion for TAL
(METAL) macro language used in page assembly.

The dynamic values themselves are specified using a companion language,
TALES (see the `zope.tales`_ package for more).

See: http://wiki.zope.org/ZPT/TALSpecification14

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Template Application Language (TAL)
Group:		Development/Ruby

%description -n python3-%{pypi_name}
Template Attribute Language (TAL)
=================================

Overview
--------

The Zope3 Template Attribute Languate (TAL) specifies the custom namespace
and attributes which are used by the Zope Page Templates renderer to inject
dynamic markup into a page.  It also includes the Macro Expansion for TAL
(METAL) macro language used in page assembly.

The dynamic values themselves are specified using a companion language,
TALES (see the `zope.tales`_ package for more).

See: http://wiki.zope.org/ZPT/TALSpecification14

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/tal/*
%{py3_puresitedir}/zope.tal*

#------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7707 |21cr|python-zope.tales-5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.tales

Name:		python-%{pypi_name}
Version:	5.2
Release:	1
Summary:	Zope Template Application Language Expression Syntax (TALES)
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.tales
Source0:	https://files.pythonhosted.org/packages/0b/fb/44902fdf190394719dc3cff9135ed97dbbac50e565fb8ee1ff7b42b02b77/zope.tales-5.2.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.exceptions)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(zope.testrunner)

Requires:	python3egg(zope.interface)
Requires:	python3egg(six)
# to run tests it's enough zope.testing
#BuildRequires:	pythonegg(zope.testrunner)
#BuildRequires:	pythonegg(zope.lifecycleevent)
BuildArch:	noarch

%description
Overview
========

Template Attribute Language - Expression Syntax

See http://wiki.zope.org/ZPT/TALESSpecification13

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Template Application Language Expression Syntax (TALES)
Group:		Development/Python

%description -n python3-%{pypi_name}
Overview
========

Template Attribute Language - Expression Syntax

See http://wiki.zope.org/ZPT/TALESSpecification13

%files -n python3-%{pypi_name}
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/tales/*
%{py3_puresitedir}/zope.tales*.egg-info
%{py3_puresitedir}/zope.tales*.pth

#-----------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7708 |21cr|python-zope.testbrowser-5.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.testbrowser

Name:		python-%{pypi_name}
Version:	5.6.1
Release:	1
Summary:	Programmable browser for functional black-box tests
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.python.org/pypi/zope.testbrowser
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.schema)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(webtest)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(beautifulsoup4)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(zope.exceptions)
BuildRequires:	python3egg(webob)
# Not in ABF yet
# BuildRequires:  pythonegg(waitress)

%description
zope.testbrowser provides an easy-to-use programmable web browser with
special focus on testing. It is used in Zope, but it’s not Zope specific at all.
For instance, it can be used to test or otherwise interact with any web site.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Programmable browser for functional black-box tests
Group:		Development/Python

%description -n python3-%{pypi_name}
zope.testbrowser provides an easy-to-use programmable web browser with
special focus on testing. It is used in Zope, but it’s not Zope specific at all.
For instance, it can be used to test or otherwise interact with any web site.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/testbrowser
%{py3_puresitedir}/zope.testbrowser*

#---------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# Disable check - it's a little tricky to perform tests that require Internet access
# inside ABF build nodes
# %check
# python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7709 |21cr|python-zope.testing-4.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.testing

Name:		python-%{oname}
Version:	4.10
Release:	1
Summary:	Zope testing helpers
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.io/pypi/zope.testing
Source0:	https://files.pythonhosted.org/packages/af/b8/f18718a7fceb109664b70c908e2aa5743eb6a057138251ceaf7d5ab0bd9b/zope.testing-4.10.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3egg(zope.exceptions)

%description
************
zope.testing
************

#--------------------------------------------------
%package -n python3-%{oname}
Summary:	Zope testing helpers
Group:		Development/Python

%description -n python3-%{oname}
************
zope.testing
************
%files -n python3-%{oname}
%doc CHANGES.rst
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/testing/*
%{py3_puresitedir}/zope.testing*.egg-info
%{py3_puresitedir}/zope.testing*.pth

#--------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || :


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7710 |21cr|python-zope-testing-4.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module zope.testing


Name:           python-zope-testing
Version:        4.7
Release:        1
Summary:        Zope Testing Framework
License:        ZPLv2.1
Group:          Development/Python
URL:            https://pypi.io/project/%{module}
Source0:        https://pypi.io/packages/source/z/%{module}/%{module}-%{version}.tar.gz

BuildArch:      noarch

%description
This package provides a number of testing frameworks. It includes a
flexible test runner, and supports both doctest and unittest.

#-------------------------------------------------------
%package -n python3-zope-testing
Summary:        Zope Testing Framework


BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-zope-testing
This package provides a number of testing frameworks. It includes a
flexible test runner, and supports both doctest and unittest.

%files -n python3-zope-testing
%doc *.rst *.txt src/zope/testing/*.txt
%{py3_puresitedir }/zope/testing/
%exclude %{py3_puresitedir }/zope/testing/*.txt
%{py3_puresitedir }/%{module}-*.egg-info
%{py3_puresitedir }/%{module}-*-nspkg.pth
#-------------------------------------------------------


%prep
%setup -qn %{module}-%{version}

rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install
# __init__.py* are not needed since .pth file is used
rm -f %{buildroot}%{py3_puresitedir }/zope/__init__.py*

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7711 |21cr|python-zope.testrunner-5.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	zope.testrunner
%global __requires_exclude_from foo.bar-1.2-py2.5.egg

Name:		python-%{oname}
Version:	5.3.0
Release:	1
Summary:	Zope testrunner script
Group:		Development/Python
License:	ZPL 2.1
Url:		https://pypi.io/pypi/zope.testrunner
Source0:	https://pypi.io/packages/source/z/%{oname}/%{oname}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel

%description
This package provides a flexible test runner with layer support.

#----------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Zope testrunner script
Group:		Development/Python

%description -n python3-%{oname}
This package provides a flexible test runner with layer support.

%files -n python3-%{oname}
%doc CHANGES.*
%doc COPYRIGHT.*
%doc LICENSE.*
%{_bindir}/zope-testrunner
%{py3_puresitedir}/zope/testrunner/*
%{py3_puresitedir}/zope.testrunner*.egg-info
%{py3_puresitedir}/zope.testrunner*.pth

#----------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7712 |21cr|python-zope.traversing-5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name zope.traversing

Summary:	Resolving paths in the object hierarchy
Name:		python-%{pypi_name}
Version:	5.0
Release:	2
License:	ZPL 2.1
Group:		Development/Python
Url:		https://pypi.python.org/pypi/zope.traversing
Source0:	%{pypi_source}
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(zope.annotation)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(transaction)
BuildRequires:	python3egg(zope.component)
BuildRequires:	python3egg(zope.i18n)
BuildRequires:	python3egg(zope.i18nmessageid)
BuildRequires:	python3egg(zope.interface)
BuildRequires:	python3egg(zope.location)
BuildRequires:	python3egg(zope.proxy)
BuildRequires:	python3egg(zope.publisher)
BuildRequires:	python3egg(zope.security)
BuildArch:	noarch

%description
The ``zope.traversing`` package provides adapters for resolving
object paths by traversing an object hierarchy.  This also includes
support for traversal name-spaces (e.g. ``++view++``, ``++skin++``,
etc.) as well as computing URLs via the ``@@absolute_url`` view.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Resolving paths in the object hierarchy
Group:		Development/Python
Requires:	python3egg(six)
Requires:	python3egg(transaction)
Requires:	python3egg(zope.component)
Requires:	python3egg(zope.i18n)
Requires:	python3egg(zope.i18nmessageid)
Requires:	python3egg(zope.interface)
Requires:	python3egg(zope.location)
Requires:	python3egg(zope.proxy)
Requires:	python3egg(zope.publisher)
Requires:	python3egg(zope.security)

%description -n python3-%{pypi_name}
The ``zope.traversing`` package provides adapters for resolving
object paths by traversing an object hierarchy.  This also includes
support for traversal name-spaces (e.g. ``++view++``, ``++skin++``,
etc.) as well as computing URLs via the ``@@absolute_url`` view.

%files -n python3-%{pypi_name}
%{py3_puresitedir}/zope/traversing
%{py3_puresitedir}/zope.traversing*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7713 |21cr|python-zope.untrustedpython-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.untrustedpython

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Zope Untrusted Python Library
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://github.com/zopefoundation/zope.untrustedpython
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description
Untrusted python library
- Test coverage at 100%.
- Package extracted from zope.security, preserving revision history

#-----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Zope Untrusted Python Library
Group:		Development/Python

%description -n python3-%{pypi_name}
Untrusted python library
- Test coverage at 100%.
- Package extracted from zope.security, preserving revision history

%files -n python3-%{pypi_name}
%doc *.rst
%doc src/zope.untrustedpython.egg-info/*.txt
%{python3_sitelib}/zope/untrustedpython
%{python3_sitelib}/zope.untrustedpython-%{version}*.egg-info
%{python3_sitelib}/zope.untrustedpython-%{version}-*-nspkg.pth
#-----------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7714 |21cr|python-zope.viewlet-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.viewlet

Name:		python-%{pypi_name}
Version:	5.0
Release:	1
Summary:	Zope Viewlets
Source0:	%{pypi_source}
License:	ZPL 2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.viewlet
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(zope.i18n)
BuildRequires:	python3-devel

%description
Viewlets provide a generic framework for building pluggable user interfaces.
#------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Zope Viewlets
Group:		Development/Python

%description -n python3-%{pypi_name}
Viewlets provide a generic framework for building pluggable user interfaces.

%files -n python3-%{pypi_name}
%doc *.txt
%{py3_puresitedir}/zope.viewlet*
%{py3_puresitedir}/zope/viewlet
#------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
# failed at isinstance()
#python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7715 |21cr|python-zope.vocabularyregistry-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	zope.vocabularyregistry

Name:		python-%{pypi_name}
Version:	1.2.0
Release:	1
Summary:	Utility-based Vocabulary Registry
Group:		Development/Python
License:	ZPL 2.1
Url:		http://pypi.python.org/pypi/zope.i18n
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
This package provides a vocabulary registry for zope.schema, based 
on the component architecture.

It replaces the zope.schema’s simple vocabulary registry when 
zope.vocabularyregistry package is imported, so it’s done automatically.

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides a vocabulary registry for zope.schema, based 
on the component architecture.

It replaces the zope.schema’s simple vocabulary registry when 
zope.vocabularyregistry package is imported, so it’s done automatically.

%files -n python3-%{pypi_name}
%doc COPYRIGHT.txt
%doc LICENSE.txt
%{py3_puresitedir}/zope/vocabularyregistry/*
%{py3_puresitedir}/zope.vocabularyregistry*.egg-info
%{py3_puresitedir}/zope.vocabularyregistry*.pth

#--------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7716 |21cr|pyzo-4.12.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           pyzo
Version:	4.12.8
Release:	2
Summary:        Cross-platform Python IDE focused on interactivity and introspection
License:        BSD
Group:          Development/Python
URL:            https://www.pyzo.org
Source0:        https://github.com/pyzo/pyzo/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:         pyzo-4.11.7-fix-data_files.patch
BuildRequires:  python3egg(cffi)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(pyside2)
Requires:       fonts-ttf-dejavu
Requires:       python3-pkg-resources
Requires:       python3-qt5-core
Requires:       python3-qt5-gui
Requires:       python3-qt5-help
Requires:       python3-qt5-network
Requires:       python3-qt5-printsupport
Requires:       python3-qt5-widgets
Requires:       python3egg(sip)
Requires:       python3-pyside2

# iep was renamed to pyzo
Obsoletes:      iep < 3.8-1
Provides:       iep = %{version}-%{release}
BuildArch:      noarch

%description
Pyzo is a cross-platform Python IDE focused on interactivity and
introspection, which makes it very suitable for scientific computing.
Its practical design is aimed at simplicity and efficiency.

It consists of two main components, the editor and the shell, and
uses a set of pluggable tools to help the programmer in various ways.
Some example tools are source structure, project manager,
interactive help and workspace.

%files
%doc *.md
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}-%{version}-py%{python3_version}.egg-info
%{_bindir}/%{name}
%{_bindir}/pyzolauncher.py
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png


#---------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1


%build
%py3_build

%install
%py3_install

sed -i pyzo/resources/pyzo.desktop -e 's/pyzologo/%{name}/g'
install -D pyzo/resources/pyzo.desktop \
  %{buildroot}%{_datadir}/applications/%{name}.desktop

for size in 16 32 48 64 128 256; do
  install -D -m644 pyzo/resources/appicons/pyzologo${size}.png 	%{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

#linting
chmod -x %{buildroot}%{_datadir}/applications/%{name}.desktop
chmod +x %{buildroot}%{py3_puresitedir}/%{name}/{__init__,__main__,codeeditor/_test,pyzokernel/guisupport}.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7717 |21cr|pyzor-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit f46159bd6519cebcebf59e9334a7920371111d75

Summary:        Collaborative system to detect and block spam
Name:           pyzor
Version:        1.0.0
Release:        1
License:        GPLv2
Group:          Networking/Mail
URL:            https://github.com/SpamExperts/pyzor
Source0:        https://github.com/SpamExperts/pyzor/archive/pyzor-%{commit}.tar.gz
Patch0:         https://patch-diff.githubusercontent.com/raw/SpamExperts/pyzor/pull/119.patch
Patch1:         rosa-deprecated.patch
BuildRequires:   pkgconfig(python3)
BuildRequires:   python3egg(setuptools)
BuildRequires:   python3egg(redis)
BuildRequires:   python3egg(pytest-cov)
Requires:        python

BuildArch:      noarch

%description
Pyzor is a collaborative, networked system to detect and block spam using
identifying digests of messages.

Pyzor initially started out to be merely a Python implementation of Razor, but
due to the protocol and the fact that Razor's server is not Open Source or
software libre, I decided to impelement Pyzor with a new protocol and release
the entire system as Open Source and software libre.

Since the entire system is released under the GPL, people are free to host
their own independent servers. Server peering is planned for a future release.

%files
%doc config/ README.rst THANKS COPYING
%dir %{_sysconfdir}/%{name}/
%{_bindir}/*
%{py3_puresitedir}/%{name}*
#----------------------------------------------------------------

%prep
%setup -qn pyzor-%{commit}
%patch0 -p1
%patch1 -p1


%build
%py3_build

%install
%py3_install
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}

%check
pytest-3 tests/unit/ --cov pyzor --cov-report term-missing



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7718 |21cr|pyzy-0.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:   The Chinese PinYin and Bopomofo conversion library
Name:      pyzy
Version:   0.1.0
Release:   7
License:   LGPLv2+
Group:      System/Internationalization
Url:      http://code.google.com/p/pyzy
Source0:   http://pyzy.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:   http://pyzy.googlecode.com/files/pyzy-database-1.0.0.tar.bz2
Patch0:     pyzy-0.1.0-fixes-compile.patch
Patch1:     pyzy-0.1.0-port-to-python3.patch

BuildRequires:   pkgconfig(glib-2.0)
BuildRequires:   pkgconfig(opencc)
BuildRequires:   pkgconfig(sqlite3)
BuildRequires:   pkgconfig(uuid)
BuildRequires:   sqlite3-tools
BuildRequires:   python3
Requires:   pyzy-db

%description
The Chinese Pinyin and Bopomofo conversion library.

%files
%doc AUTHORS COPYING README
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/db/*.db

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:   Libraries for pyzy
Group:      System/Libraries
Requires:   %{name}

%description -n %{libname}
The Chinese Pinyin and Bopomofo conversion library.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libpyzy-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:   Development tools for pyzy
Group:      Development/C
Requires:   %{libname} = %{EVRD}

%description -n %{devname}
The pyzy-devel package contains the header files for pyzy.

%files -n %{devname}
%doc AUTHORS COPYING README
%{_libdir}/libpyzy-%{api}.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%package db-open-phrase
Summary:   The open phrase database for pyzy
Group:      System/Internationalization
Provides:   pyzy-db = %{EVRD}
BuildArch:   noarch

%description db-open-phrase
The phrase database for pyzy from open-phrase project.

%files db-open-phrase
%doc AUTHORS COPYING README
%{_datadir}/%{name}/db/open-phrase.db

#----------------------------------------------------------------------------

%package db-android
Summary:   The android phrase database for pyzy
Group:      System/Internationalization
Provides:   pyzy-db = %{EVRD}
BuildArch:   noarch

%description db-android
The phrase database for pyzy from android project.

%files db-android
%doc AUTHORS COPYING README
%{_datadir}/%{name}/db/android.db

#----------------------------------------------------------------------------

%prep
%setup -q
cp %{SOURCE1} data/db/open-phrase
%patch0 -p1 -b .compile
%patch1 -p1 -b .python3

%build
%configure \
   --disable-static \
   --enable-db-open-phrase

%make

%install
%makeinstall_std NO_INDEX=true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7719 |21cr|q4wine-1.3.13-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt5 GUI for wine
Name:		q4wine
Version:	1.3.13
Release:	3
License:	GPLv3+
Group:		Emulators
Url:		http://q4wine.brezblock.org.ua/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1:        %{name}.appdata.xml
Source2:        %{name}.rpmlintrc
Patch0:		q4wine-1.3.11-linking.patch
BuildRequires:	cmake >= 2.8.11
BuildRequires:	fuseiso
BuildRequires:	icoutils >= 0.26.0
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(sqlite3) >= 3.5.6
BuildRequires:  desktop-file-utils 
BuildRequires:  appstream-util
Requires:	fuseiso
Requires:	icoutils
Requires:	qt5-database-plugin-sqlite
Requires:	sudo
Requires:	wget
Requires:	/usr/bin/winetricks
#wine not build for aarch64
ExcludeArch:	aarch64

%description
Q4Wine will help you manage wine prefixes and installed applications.

General features are:
- Easy controlling for wine process ;
- Autostart icons support ;
- Easy cd-image use ;
- You can extract icons from PE files (.exe .dll) ;
- Easy backup and restore for managed prefixes ;
- Winetriks support ;
- and more... ;)

%files
%doc AUTHORS README COPYING
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*
%{_libdir}/lib%{name}-core.so
%{_mandir}/man1/q4wine*
%{_iconsdir}/hicolor/*/apps/*
%{_appdatadir}/%{name}.appdata.xml
#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1

%build
%cmake_qt5 \
	-DLIBS_ENTRY_PATH=%{_libdir} \
	-DQT5=ON \
	-DUSE_GZIP=ON \
	-DRELEASE=ON \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DCMAKE_C_FLAGS="%{optflags}" \
	-DCMAKE_CXX_FLAGS="%{optflags}" \
	-DCMAKE_NO_BUILTIN_CHRPATH=ON 	
    
%make

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_appdatadir}
cp -R %{SOURCE1} %{buildroot}%{_appdatadir}/%{name}.appdata.xml

rm -f %{buildroot}%{_datadir}/icons/ubuntu-mono-dark/scalable/apps/q4wine.svg

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/q4wine.desktop
appstream-util validate-relax --nonet %{buildroot}/%{_appdatadir}/*.appdata.xml



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7720 |21cr|qabcs-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           qabcs
Version:        1.0.2
Release:        1
Summary:        Learn alphabet
Group:          Education
License:        GPLv3+
Url:            https://bitbucket.org/admsasha/qabcs
Source0:        https://bitbucket.org/admsasha/qabcs/downloads/%{name}-%{version}.tar.gz 

BuildRequires:  qt5-linguist-tools
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Multimedia)
Requires:       espeak
Requires:       sox

%description
qABCs is Educational Software. An educational game for young children.
qABCs familiarizes children with the alphabet and a keyboard.
Children can play with qABCs to learn about the alphabet and words
associated with it.

How to play:
* In ABC mode, press the key on the keyboard that is shown on the screen
to advance through the alphabet, press "Backspace" to go back
* In any other mode, press a key on the keyboard to display that letter
* To hear the word displayed on the screen, press the spacebar

%files
%doc README*
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/*.1*

#---------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5
%make

%install
%make_install INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7721 |21cr|qacdp-0.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: qacdp
Summary: A QT frontend for ACDP
Version: 0.1.0
Release: 6
License: GPL
Group: Graphical desktop/KDE
URL: http://www.mandriva.com
Source0:  %{name}-%{version}.tar.bz2
Source1:  qacdp.desktop
BuildRequires: qt4-devel
BuildRequires: cmake

%description
A QT frontend for ACDP

%prep
%setup -q

%build
%cmake_qt4
%make

%install
%makeinstall_std -C build
install -m644 -D %{SOURCE1} %{buildroot}/usr/share/applications/qacdp.desktop


%files
%defattr(-,root,root)
%{_bindir}/qacdp
%{_datadir}/applications/qacdp.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7722 |21cr|qantenna-0.3.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Software dedicated to viewing and analyzing antennas
Name:		qantenna
Version:	0.3.0
Release:	9
License:	GPLv2+
Group:		Sciences/Physics
Url:		http://qantenna.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/qantenna/qantenna/%{version}/%{name}-%{version}.orig.tar.xz
Patch0:		qantenna-0.3.0-qt56.patch
BuildRequires:	qt5-linguist
BuildRequires:	pkgconfig(bdw-gc)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	nec2++
# nec2++ not builded on this
ExcludeArch:	%{ix86} %{e2k}

%description
QAntenna is a FLOSS software dedicated to viewing and analyzing
antennas and their radiation patterns. It provides the user with a
3D view of the models, capable of zooming, rotating, and more to come.

%files
%doc README AUTHORS ChangeLog COPYING
%doc %{_docdir}/qantenna/examples
%{_bindir}/qantenna

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -fpermissive
%qmake_qt5 \
	PREFIX=%{_prefix} qantenna.pro

make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7723 |21cr|qarecord-0.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gitdate	20181108

Summary:	QT based ALSA recording interface
Name:		qarecord
Version:	0.5.1
Release:	2
License:	GPLv2+
Group:		Sound
Url:	https://sourceforge.net/projects/alsamodular/
#Source0:	https://dl.sf.net/alsamodular/%%{name}-0.5.0.tar.bz2
Source0:	%{name}-%{gitdate}.tar.xz
Patch0:		qarecord-20181108-fake-version.patch
# TODO: This one needs to be redone
Patch1:		qarecord-0.5.0-rus.patch
BuildRequires:	alsa-oss-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
QARecord is a simple multi-threaded stereo recording tool. It can record both
16 bit and 32 bit WAVs. By using a large ring buffer for the captured data,
buffer overruns are avoided. It can also be used as JACK client. 

%files
%doc README NEWS COPYING AUTHORS 
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/rosa-%{name}.desktop
%{_mandir}/man1/*
%lang(de) %{_mandir}/de/man1/*
%lang(fr) %{_mandir}/fr/man1/*
%{_sysconfdir}/modules-load.d/%{name}.conf

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}
%patch0 -p1
#patch1 -p1

# Fix man encodings
iconv -f=latin1 -t=utf8 man/de/%{name}.1 -o man/de/%{name}.1
iconv -f=latin1 -t=utf8 man/fr/%{name}.1 -o man/fr/%{name}.1


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

install -D -m 0644 src/pixmaps/%{name}_48.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
echo "snd_seq" > %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=QARecord
Name[ru]=QARecord
Comment=ALSA recording GUI for Qt
Comment[ru]=Запись звука
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;Audio;Recorder;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7724 |21cr|qarte-4.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A browser for the arte.tv website
Name:		qarte
Version:	4.16.0
Release:	1
License:	GPLv3+
Group:		Video
Url:		https://launchpad.net/qarte
# There are not real releases in the site above...
Source0:	%{name}-%{version}.tar.gz
Requires:	python3-qt5
Requires:	python3-sip
Requires:	rtmpdump
BuildArch:	noarch

%description
This program lets you browse the archives of arte+7 & arteLiveWeb sites, and
record your favourite programs.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------


%prep
%setup -q 


%build
# Nothing to do


%install
# No installation script: go manually...
# 1. main script
install -D -m 755 %{name} %{buildroot}%{_bindir}/%{name}
# 2. support files
install -d %{buildroot}%{_datadir}/%{name}
cp -a *.py* medias gui %{buildroot}%{_datadir}/%{name}
# 3. menu entry
install -D -m 644 q_arte.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
# 4. icon
install -D %{name}.png %{buildroot}%{_iconsdir}/%{name}.png
# 5. man page
install -D %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
# 6. lang files
install -D -m 644 locale/de/LC_MESSAGES/%{name}.mo %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/%{name}.mo
install -D -m 644 locale/fr/LC_MESSAGES/%{name}.mo %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/%{name}.mo
install -D -m 644 locale/pt/LC_MESSAGES/%{name}.mo %{buildroot}%{_datadir}/locale/pt/LC_MESSAGES/%{name}.mo

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7725 |21cr|qastools-0.23.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A collection of Qt-based mixer and setup tools for the Linux sound system ALSA
Name:		qastools
Version:	0.23.0
Release:	2
License:	GPLv3+
Group:		Sound
Url:		https://gitlab.com/sebholt/qastools
Source0:	https://gitlab.com/sebholt/qastools/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	cmake >= 3.6
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(udev)
%rename		qasmixer

%description
A collection of Qt-based mixer and setup tools for the Linux sound system ALSA.

%files
%doc CHANGELOG COPYING README.md TODO
#{_bindir}/qascommon
%{_bindir}/qasconfig
%{_bindir}/qashctl
%{_bindir}/qasmixer
%{_datadir}/%{name}/icons/*.svg
%{_datadir}/%{name}/widgets/sw_joined_*.svg
%{_datadir}/%{name}/l10n/%{name}_*.qm
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/qas*.appdata.xml
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_mandir}/man1/qasconfig.1.*
%{_mandir}/man1/qashctl.1.*
%{_mandir}/man1/qasmixer.1.*


#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}

#find . -perm 0640 | xargs chmod 0644


%build
%cmake
%make


%install
%makeinstall_std -C build

# Make the .desktop files compliant with freedesktop specs
for i in qasconfig qashctl qasmixer;
do
	desktop-file-install --add-category="X-MandrivaLinux-Sound" \
		%{buildroot}%{_datadir}/applications/$i.desktop

	desktop-file-validate %{buildroot}%{_datadir}/applications/$i.desktop
done

# It'll be %%doc'ed
rm -f %{buildroot}%{_datadir}/%{name}/COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7726 |21cr|qbs-1.24.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{armx}
%define build_docs     0
%else
%define build_docs     1
%endif

Name:           qbs
Version:        1.24.1
Release:        1
Summary:        Qt5 Build System
Group:          Development/KDE and Qt
# See LGPL_EXCEPTION.txt
License:        LGPLv2 with exceptions and LGPLv3 with exceptions
URL:            https://wiki.qt.io/qbs
Source0:        https://download.qt.io/official_releases/%{name}/%{version}/%{name}-src-%{version}.tar.gz

BuildRequires:  qdoc5
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Help)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)

BuildRequires:  libstdc++-static-devel

%description
Qbs is a tool that helps simplify the build process for developing projects
across multiple platforms. Qbs can be used for any software project, regardless
of programming language, toolkit, or libraries used.

Qbs is an all-in-one tool that generates a build graph from a high-level
project description (like qmake or CMake) and additionally undertakes the task
of executing the commands in the low-level build graph (like make).

%files
%doc README.md
%{_bindir}/*
%{_datadir}/qbs/
%{_libdir}/qbs/
%{_libexecdir}/qbs/
%{_mandir}/man1/qbs.1.*

#--------------------------------------------------------------------

%define qbscore_major 1
%define libqbscore %mklibname qbscore %{qbscore_major}

%package -n     %{libqbscore}
Summary:        Qbs Core library
Group:          System/Libraries

%description -n %{libqbscore}
Qbs Core library.

%files -n %{libqbscore}
%{_libdir}/libqbscore.so.%{qbscore_major}{,.*}

#--------------------------------------------------------------------

%define libqbs_d %mklibname %{name} -d

%package -n     %{libqbs_d}
Summary:        Devel files needed to build apps based on %{name}
Group:          Development/KDE and Qt
Requires:       %{libqbscore} = %{version}-%{release}
Provides:       lib%{name}-devel = %{version}
Provides:       %{name}-devel = %{version}

%description -n %{libqbs_d}
Devel files needed to build apps based on %{name}.

%files -n %{libqbs_d}
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/*.prl

#------------------------------------------------------------------------------

%if %{build_docs}
%package        doc
Summary:        Documentation for %{name}
Group:          Documentation
License:        GFDL
BuildArch:      noarch
BuildRequires:  qt5-tools
# This one is required to build QCH-format documentation
# for APIs and tools in this package set
BuildRequires:  qt5-assistant
Recommends:     qt5-assistant

%description    doc
HTML documentation for %{name}.

%files doc
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/%{name}.qch
%doc %{_docdir}/%{name}/html/
%endif

#------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-src-%{version}
%autopatch -p1

%build
%qmake_qt5 \
  QBS_INSTALL_PREFIX=%{_prefix} \
  QBS_LIBRARY_DIRNAME=%{_lib} \
  QBS_LIBEXEC_INSTALL_DIR=%{_libexecdir}/%{name} \
  QBS_RELATIVE_LIBEXEC_PATH=../libexec/%{name} \
  CONFIG+=qbs_enable_project_file_updates \
  CONFIG+=qbs_disable_rpath \
  CONFIG+=qbs_enable_unit_tests \
  CONFIG+=nostrip \
  QMAKE_LFLAGS="-Wl,--as-needed" \
  qbs.pro
# LD_LIBRARY_PATH: Because the qbs executable built is itself invoked, and it requires the built qbs libraries
LD_LIBRARY_PATH=%{_lib} %make_build

%if %{build_docs}
%make_build docs
%make_build html_docs
%endif

%install
%make_install INSTALL_ROOT=%{buildroot}

%if %{build_docs}
%make_install install_docs INSTALL_ROOT=%{buildroot}
%endif

# Remove python dmgbuild code, it only works on macOS (#1559529)
rm -rf %{buildroot}%{_datadir}/qbs/python/mac_alias/
rm -rf %{buildroot}%{_datadir}/qbs/python/ds_store/
rm -rf %{buildroot}%{_datadir}/qbs/python/dmgbuild/
rm -rf %{buildroot}%{_datadir}/qbs/python/biplist/
rmdir %{buildroot}%{_datadir}/qbs/python/
rm -f %{buildroot}%{_libexecdir}/qbs/dmgbuild


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7727 |21cr|qcalcfilehash-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hash calculator
Name:		qcalcfilehash
Version:	1.1.1
Release:	1
License:	GPLv3+
Group:		File tools
Url:		https://bitbucket.org/admsasha/qcalcfilehash
Source0:	https://bitbucket.org/admsasha/QCalcFileHash/downloads/%{name}-%{version}.tar.gz

BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
# supports GOST hashes if it is installed
Recommends:	openssl-gost-engine

%description
Hash calculator (SHA1, SHA-224, SHA-256, SHA-384, SHA-512, MD5, CRC32, CRC8
and also GOST R 34.11-94, GOST R 34-11-2012 (Streebog) 256 and 512 bit.

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
lupdate-qt5 ./QCalcFileHash.pro
%qmake_qt5
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7728 |21cr|qcalcmultifilehash-1.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname QCalcMultiFileHash

Summary:	Hash calculator
Name:		qcalcmultifilehash
Version:	1.0.0
Release:	4
License:	GPLv2+
Group:		File tools
Url:		https://bitbucket.org/admsasha/qcalcmultifilehash
Source0:	https://bitbucket.org/admsasha/qcalcmultifilehash/downloads/%{oname}_v%{version}.zip
Source1:	%{oname}.png
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Hash calculator (SHA1, SHA-224, SHA-256, SHA-384, SHA-512, MD5, CRC32, CRC8).

%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/32x32/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}

%build
%qmake_qt5
lupdate-qt5 ./QCalcMultiFileHash.pro
lrelease-qt5 ./QCalcMultiFileHash.pro
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 Bin/%{name} %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 644 *.qm %{buildroot}%{_datadir}/%{name}/

mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps/
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

mkdir -p  %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=QCalcMultiFileHash
Comment=Hash calculator
Type=Application
Exec=%{name}
Icon=%{name}
Categories=Utility;Qt;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7729 |21cr|qca-qt4-2.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without sys_rootcerts

%define qtcryptodir %{qt4plugins}/crypto

%define oname qca
%define major 2
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	Straightforward and cross-platform crypto API for Qt
Name:		qca-qt4
Version:	2.2.1
Release:	3
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://delta.affinix.com/qca
Source0:	https://download.kde.org/stable/qca/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	cmake
%if %{with sys_rootcerts}
BuildRequires:	rootcerts
%endif
BuildRequires:	%{_bindir}/gpg
BuildRequires:	qt4-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(nss)
Provides:	qca2-qt4 = %{EVRD}

%description
The QCA library provides an easy API for a range of cryptographic
features, including SSL/TLS, X.509 certificates, SASL, symmetric
ciphers, public key ciphers, hashes and much more.

Functionality is supplied via plugins. This is useful for avoiding
dependence on a particular crypto library and makes upgrading easier,
as there is no need to recompile your application when adding or
upgrading a crypto plugin. Also, by pushing crypto functionality into
plugins, applications are free of legal issues, such as export
regulation.

%files
%doc README COPYING INSTALL TODO
%{_mandir}/man1/*
%defattr(0755,root,root,0755)
%{qt4dir}/bin/mozcerts
%{qt4dir}/bin/qcatool

#------------------------------------------------------------------------------

%if %{without sys_rootcerts}
%package qca2-root-certificates
Summary:	Common root CA certificates for QCA
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description qca2-root-certificates
Provides root Certificate Authority certificates for the QCA library.
These certificates are the same ones that are included in Mozilla.

%files qca2-root-certificates
%dir %{qt4dir}/share/qca
%dir %{qt4dir}/share/qca/certs
%doc %{qt4dir}/share/qca/certs/README
%{qt4dir}/share/qca/certs/rootcerts.pem
%endif

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for QCA
Group:		System/Libraries
%if %{with sys_rootcerts}
Requires:	rootcerts
Obsoletes:	%{name}-root-certificates < %{EVRD}
%else
Requires:	%{name}-root-certificates >= %{EVRD}
%endif

%description -n %{libname}
Libraries for QCA.

%files -n %{libname}
%dir %{qtcryptodir}
%defattr(0755,root,root,0755)
%{qt4lib}/libqca.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for QCA
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}2-devel = %{EVRD}

%description -n %{devname}
Development files for QCA.

%files -n %{devname}
%dir %{_libdir}/cmake/Qca
%{_libdir}/cmake/Qca/*.cmake
%{_libdir}/pkgconfig/qca2.pc
%{qt4dir}/mkspecs/features/crypto.prf
%dir %{qt4include}/QtCrypto
%{qt4include}/QtCrypto/*
%{qt4lib}/libqca.so

#------------------------------------------------------------------------------

%package -n qca2-plugin-cyrus-sasl
Summary:	Cyrus-sasl plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	libsasl2-devel
Provides:	qca2-sasl = %{EVRD}
Provides:	qca2-plugin-cyrus-sasl-%{_lib} = %{EVRD}
Obsoletes:	qca2-plugin-cyrus-sasl-%{_lib} < 2.0.0-5
Provides:	%{libname}-plugin-cyrus-sasl = %{EVRD}

%description -n qca2-plugin-cyrus-sasl
This is a plugin to provide cyrus-sasl capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-plugin-cyrus-sasl
%attr(0755,root,root) %{qt4plugins}/crypto/libqca-cyrus-sasl.*

#------------------------------------------------------------------------------

%package -n qca2-plugin-gcrypt
Summary:	Gcrypt plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca2-gcrypt = %{EVRD}
Provides:	qca2-plugin-gcrypt-%{_lib} = %{EVRD}
Obsoletes:	qca2-plugin-gcrypt-%{_lib} < 2.0.0-5
Provides:	%{libname}-plugin-gcrypt = %{EVRD}

%description -n qca2-plugin-gcrypt
This is a plugin to provide gcrypt capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-plugin-gcrypt
%attr(0755,root,root) %{qt4plugins}/crypto/libqca-gcrypt.*

#------------------------------------------------------------------------------

%package -n qca2-plugin-gnupg
Summary:	GnuPG plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca2-gnupg = %{EVRD}
Provides:	qca-gnupg = %{EVRD}
Provides:	%{libname}-plugin-gnupg = %{EVRD}
Provides:	qca2-plugin-gnupg-%{_lib} = %{EVRD}
Obsoletes:	qca2-plugin-gnupg-%{_lib} < 2.0.0-5

%description -n qca2-plugin-gnupg
This is a plugin to provide GnuPG capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-plugin-gnupg
%attr(0755,root,root) %{qt4plugins}/crypto/libqca-gnupg.*

#------------------------------------------------------------------------------

%package -n qca2-plugin-logger
Summary:	Logger plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca2-logger = %{EVRD}
Provides:	qca2-plugin-logger-%{_lib} = %{EVRD}
Obsoletes:	qca2-plugin-logger-%{_lib} < 2.0.0-5
Provides:	%{libname}-plugin-logger = %{EVRD}

%description -n qca2-plugin-logger
This is a plugin to provide logger capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-plugin-logger
%attr(0755,root,root) %{qt4plugins}/crypto/libqca-logger.*

#------------------------------------------------------------------------------

%package -n qca2-plugin-nss
Summary:	NSS plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca2-nss = %{EVRD}
Provides:	qca2-plugin-nss-%{_lib} = %{EVRD}
Obsoletes:	qca2-plugin-nss-%{_lib} < 2.0.0-5
Provides:	%{libname}-plugin-nss = %{EVRD}

%description -n qca2-plugin-nss
This is a plugin to provide nss capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-plugin-nss
%attr(0755,root,root) %{qt4plugins}/crypto/libqca-nss.*

#------------------------------------------------------------------------------

%package -n qca2-plugin-openssl
Summary:	OpenSSL plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	pkgconfig(openssl)
Provides:	qca2-openssl = %{EVRD}
Provides:	qca-ossl = %{EVRD}
Provides:	qca2-tls = %{EVRD}
Provides:	%{libname}-plugin-openssl = %{EVRD}
Provides:	qca2-plugin-openssl-%{_lib} = %{EVRD}
Obsoletes:	qca2-plugin-openssl-%{_lib} < 2.0.0-5

%description -n qca2-plugin-openssl
This is a plugin to provide OpenSSL capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-plugin-openssl
%attr(0755,root,root) %{qt4plugins}/crypto/libqca-ossl.*

#------------------------------------------------------------------------------

%package -n qca2-plugin-pkcs11
Summary:	PKCS11 plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libpkcs11-helper-1)
Provides:	qca2-pkcs11 = %{EVRD}
Provides:	qca2-plugin-pkcs11-%{_lib} = %{EVRD}
Obsoletes:	qca2-plugin-pkcs11-%{_lib} < 2.0.0-5
Provides:	%{libname}-plugin-pkcs11 = %{EVRD}

%description -n qca2-plugin-pkcs11
This is a plugin to provide PKCS11 capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-plugin-pkcs11
%attr(0755,root,root) %{qt4plugins}/crypto/libqca-pkcs11.*

#------------------------------------------------------------------------------

%package -n qca2-plugin-softstore
Summary:	Softstore plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca2-softstore = %{EVRD}
Provides:	qca2-plugin-softstore-%{_lib} = %{EVRD}
Obsoletes:	qca2-plugin-softstore-%{_lib} < 2.0.0-5
Provides:	%{libname}-plugin-softstore = %{EVRD}

%description -n qca2-plugin-softstore
This is a plugin to provide softstore capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-plugin-softstore
%attr(0755,root,root) %{qt4plugins}/crypto/libqca-softstore.*

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_qt4 \
	-DQT4_BUILD:BOOL=ON \
	-DQCA_INSTALL_IN_QT_PREFIX:BOOL=ON \
	-DCMAKE_INSTALL_PREFIX=%{qt4dir} \
	-DLIB_INSTALL_DIR=%{_libdir} \
	-DPKGCONFIG_INSTALL_PREFIX=%{_libdir}/pkgconfig

%make

%install
%makeinstall_std -C build

# Make directory for plugins
install -d -m 755 %{buildroot}/%{qtcryptodir}

mkdir -p %{buildroot}%{_mandir}
mv %{buildroot}%{qt4dir}/man/man1 %{buildroot}%{_mandir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7730 |21cr|qcomicbook-0.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define uname   QComicBook

Name:		qcomicbook
Version:	0.9.1
Release:	2
Summary:	Comic book archive viewer
Group:		File tools
License:	GPLv2+
URL:		https://github.com/stolowski/QComicBook
Source0:	https://github.com/stolowski/QComicBook/archive/%{version}/%{uname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:  pkgconfig(imlib2)
BuildRequires:  pkgconfig(poppler-qt5)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Help)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	qt5-linguist-tools
Requires:	unzip
Recommends:	unrar
Recommends:	p7zip

%description
QComicBook is a viewer for comic book archives containing jpeg/png
images, which aims at convenience and simplicity. Features include:

    * automatic handling of archives
    * full-screen mode
    * two-pages mode and japanese mode
    * thumbnails view
    * page scaling (fit to window witdth/height, whole page)
    * mouse or keyboard navigation, whatever you prefer
    * bookmarks
    * and more...

%prep
%setup -qn %{uname}-%{version}

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

%files
%doc AUTHORS README ChangeLog COPYING THANKS TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1.*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7731 |21cr|qconf-1.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           qconf
Version:        1.4
Release:        9
Epoch:          0
Summary:        Allows you to have a nice configure script for your qmake-based project
Group:          Development/KDE and Qt
License:        GPL
URL:            http://delta.affinix.com/qconf/
Source0:        http://delta.affinix.com/download/qconf-%{version}.tar.bz2
Buildrequires:  qt4-devel

%description
QConf allows you to have a nice configure script for your
qmake-based project. It is intended for developers who don't need
(or want) to use the more complex GNU autotools. With qconf/qmake,
it is easy to maintain a cross-platform project that uses a
familiar configuration interface on unix.

%prep
%setup -q

%build
./configure --prefix=%{_prefix} \
            --bindir=%{_bindir} \
            --datadir=%{_datadir} \
            --qtdir=%{qt4dir}
%{make}

%install
%{__rm} -rf %{buildroot}
%{make} INSTALL_ROOT=%{buildroot} install

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7732 |21cr|qconnman-1.24-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Qt wrapper library around the connman API
Name:		qconnman
Version:	1.24
Release:	4
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://bitbucket.org/devonit/qconnman
# https://bitbucket.org/devonit/qconnman/get/v%{version}.tar.bz2
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	qt4-devel

%description
Qt wrapper library around the connman API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt wrapper library around the connman API
Group:		System/Libraries

%description -n %{libname}
Qt wrapper library around the connman API.

%files -n %{libname}
%doc README AUTHORS
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Install this package if you need to compile applications that needs
%{name}.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt4 PREFIX=%{_prefix} LIBDIR=%{_lib}
%make

%install
make install INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7733 |21cr|qconnman-ui-0-0.20140513.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20140513

Summary:	Qt GUI for Connman
Name:		qconnman-ui
Version:	0
Release:	0.%{git}.2
License:	LGPLv2.1+
Group:		Networking/Other
Url:		https://github.com/OSSystems/qconnman-ui
# git snapshot
Source0:	%{name}-%{git}.tar.bz2
Source1:        qconnman-ui_ru.ts.tar.gz
Source2:        src.pro.tar.gz

# from their git
Source3:	qconnman-ui.png
BuildRequires:	imagemagick
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(qconnman)
Requires:	connman

%description
Qt GUI for Connman. It requires that Connman is installed and running.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/qconnman/i18n/*.qm
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{git}

pushd i18n
tar -xvzf %{SOURCE1}
popd

pushd src
tar -xvzf %{SOURCE2}
popd


%build
%qmake_qt4
%make

%install
make install INSTALL_ROOT=%{buildroot}%{_prefix}

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=QConnMan-UI
Comment=GUI for Connman
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Network;Utility;
EOF

# install menu icons
for N in 16 32 48 64;
do
convert %{SOURCE3} -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7734 |21cr|qc-usb-qcset-0.6.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define sname qc-usb

Name:     %{sname}-qcset
Version:  0.6.6
Release:  9
Summary:  Tool for the old Quickcam Express webcams
License:  GPL
Source:   http://downloads.sourceforge.net/qce-ga/%{sname}-%{version}.tar.gz
URL:      http://qce-ga.sourceforge.net/
Group:    System/Kernel and hardware
Recommends: kmod(quickcam)

%description
This package contains qcset, a tool that allows to configure the "quickcam" 
module on the fly.

The "quickcam" module can be installed with dkms-qc-usb package, ans is for 
the following webcams :
- Dexxa Webcam
- Labtec Webcam (old model)
- LegoCam
- Logitech QuickCam Express (old model)
- Logitech QuickCam Notebook (some models)
- Logitech QuickCam Web

Generally, any USB camera with a USB vendor ID of 0x46d and a USB product ID 
of 0x840, 0x850, or 0x870 (so, 0x46d:0x840, for example), should work.
You can check the USB IDs with System Configuration tools or using
command-line utilities such as lsusb or "lspcidrake -v".

%prep
%setup -qn %{sname}-%{version}

%build
%make qcset

%install
install -D -m 755 qcset %{buildroot}%{_bindir}/qcset

%files
%defattr(0644,root,root,0755)
%doc APPLICATIONS CREDITS FAQ README.qce TODO qcweb-info.txt debug.sh freeshm.sh quickcam.sh
%attr(0755,root,root) %{_bindir}/qcset

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7735 |21cr|qcustomplot-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Bump this as appropriate when doing release updates, check i.e. with abi_compliance_checker
# First digit: major, bump when incompatible changes were performed
# Second digit: minor, bump when interface was extended
%global so_ver 2.0.0
#global pre beta

%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define libname_qt5 %mklibname %{name}-qt5 %{major}
%define devname_qt5 %mklibname %{name}-qt5 -d

Name:           qcustomplot
Version:	2.1.0
Release:	2
Summary:        Qt widget for plotting and data visualization
Group:		Sciences/Mathematics
License:        GPLv3+
URL:            http://www.qcustomplot.com/
Source0:        http://www.qcustomplot.com/release/%{version}%{?pre:-%pre}/QCustomPlot.tar.gz
Source1:        %{name}.pro

BuildRequires:  gcc-c++
BuildRequires:  make
BuildRequires:  qt4-devel
BuildRequires:  qt5-devel


%description
QCustomPlot is a Qt C++ widget for plotting and data visualization.
This plotting library focuses on making good looking, publication quality 2D
plots, graphs and charts, as well as offering high performance for realtime
visualization applications.

#-----------------------------------------------------------------

%package        -n %{libname}
Summary:        Qt widget for plotting and data visualization

%description    -n %{libname}
QCustomPlot is a Qt C++ widget for plotting and data visualization.
This plotting library focuses on making good looking, publication quality 2D
plots, graphs and charts, as well as offering high performance for realtime
visualization applications.

This package contains the Qt4 version.

%files		-n %{libname}
%doc GPL.txt
%doc changelog.txt
%{_libdir}/libqcustomplot.so.*

#-----------------------------------------------------------------

%package        common-devel
Summary:        Development files for %{name} common for Qt4 and Qt5

%description    common-devel
Development files for %{name} common for Qt4 and Qt5

%files common-devel
%{_includedir}/qcustomplot.h

#-----------------------------------------------------------------

%package        -n %{devname}
Summary:        Development files for %{name} (Qt4)
Requires:       %{libname} = %{version}-%{release}
Requires:       %{name}-common-devel = %{EVRD}

%description    -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}  (Qt4).

%files		-n %{devname}
%{_libdir}/libqcustomplot.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------

%package        -n %{libname_qt5}
Summary:        Qt widget for plotting and data visualization

%description    -n %{libname_qt5}
QCustomPlot is a Qt C++ widget for plotting and data visualization.
This plotting library focuses on making good looking, publication quality 2D
plots, graphs and charts, as well as offering high performance for realtime
visualization applications.

This package contains the Qt5 version.

%files		-n %{libname_qt5}
%doc GPL.txt
%doc changelog.txt
%{_libdir}/libqcustomplot-qt5.so.*


#-----------------------------------------------------------------

%package        -n %{devname_qt5}
Summary:        Development files for %{name} (Qt5)
Requires:       %{libname_qt5} = %{version}-%{release}
Requires:       %{name}-common-devel = %{EVRD}

%description    -n %{devname_qt5}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}  (Qt5).

%files		-n %{devname_qt5}
%{_libdir}/libqcustomplot-qt5.so
%{_libdir}/pkgconfig/%{name}-qt5.pc

#-----------------------------------------------------------------

%package        doc
Summary:        Documentation and examples for %{name}
BuildArch:      noarch

%description    doc
The %{name}-doc package contains the documentation and examples for
%{name}.

%files doc
%doc GPL.txt
%doc documentation examples

#-----------------------------------------------------------------

%prep
%setup -qn %{name}
%apply_patches
cp -a %{SOURCE1} .


%build
mkdir qt4
(
cd qt4
LDFLAGS="%{__global_ldflags} -Wl,--as-needed" %qmake_qt4 SOVERSION=%{so_ver} LIBDIR=%{_libdir} ..
%make
)

mkdir qt5
(
cd qt5
LDFLAGS="%{__global_ldflags} -Wl,--as-needed" %qmake_qt5 SOVERSION=%{so_ver} QTSUFFIX=-qt5 LIBDIR=%{_libdir} ..
%make
)


%install
make -C qt4 INSTALL_ROOT=%{buildroot} install
make -C qt5 INSTALL_ROOT=%{buildroot} install

# pkg-config file
install -d %{buildroot}%{_libdir}/pkgconfig/
cat > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc <<EOF
libdir=%{_libdir}
includedir=%{_includedir}

Name: 
Description: %{summary}
Version:	2.1.0
Cflags: -I\${includedir}
Libs: -L\${libdir} -lqcustomplot
EOF

install -d %{buildroot}%{_libdir}/pkgconfig/
cat > %{buildroot}%{_libdir}/pkgconfig/%{name}-qt5.pc <<EOF
libdir=%{_libdir}
includedir=%{_includedir}

Name: %{name}-qt5
Description: %{summary}
Version:	2.1.0
Cflags: -I\${includedir}
Libs: -L\${libdir} -lqcustomplot-qt5
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7736 |21cr|qdbm-1.8.78-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 14
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Quick Database Manager
Name:		qdbm
Version:	1.8.78
Release:	4
License:	LGPLv2.1+
Group:		Databases
Url:		http://qdbm.sourceforge.net/
Source0:	%{name}-%{version}.tar.gz

%description
QDBM is an embeded database library compatible with GDBM and NDBM. It features
hash database and B+ tree database and is developed referring to GDBM for the
purpose of the following three points: higher processing speed, smaller size
of a database file, and simpler API. This package includes APIs for C, C++,
and Java. CGI scripts are also contained. APIs for Perl and Ruby should be
installed with a source package.

%files
%doc COPYING ChangeLog NEWS README THANKS
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	QDBM shared library
Group:		System/Libraries

%description -n %{libname}
QDBM shared library.

%files -n %{libname}
%{_libdir}/libqdbm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of %{name} for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
QDBM development package: static libraries, header files, and the like.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*.h
%{_libdir}/libqdbm.a
%{_libdir}/pkgconfig/qdbm.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CPPFLAGS="%{optflags}"
%configure
%make

%install
%makeinstall_std

# remove docs (they should be installed by %doc)
rm -f %{buildroot}%{_datadir}/qdbm/{COPYING,ChangeLog,NEWS,THANKS,*.html}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7737 |21cr|qdecoder-12.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 12
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	CGI library for C/C++ language
Name:		qdecoder
Version:	12.1.0
Release:	1
Epoch:		11
License:	BSD
Group:		Development/C
Url:		http://www.qdecoder.org
Source0:	https://github.com/wolkykim/qdecoder/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc

%description
qDecoder is a development kit for C/C++ programming language. It was developed
for the needs of building well formed CGI library at the beginning. But now it
covers most of general topics we may face while we develop softwares.
For example, qDecoder covers following areas.

    * Data Structures - Hash table(dynamic & static), Linked-list,
      Queue(Stack & FIFO), Obstack, ...
    * En/decoders and Hashes API - Base64 encoding, URL encoding,
      MD5 hash, FNV32 hash, ...
    * Network & IPC interfacing API - HTTP client, Timeout I/O,
      Shared memory API, Semaphore API, ...
    * CGI/FastCGI API - CGI request parser & response generator,
      CGI session controll, FastCGI, ...
    * Database Wrapper API - MySQL, ...
    * Specialized features - General configuration file parser,
      Rotating file logger, Server side includes, ...
    * General topics - String APIs, File APIs, ...

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for qDecoder
Group:		Development/C
Conflicts:	%{name} < 11:12.0.5
Obsoletes:	%{name} < 11:12.0.5

%description -n %{libname}
Development files for qDecoder.

%files -n %{libname}
%{_libdir}/libqdecoder.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for qDecoder
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 11:12.0.5
Obsoletes:	%{name}-devel < 11:12.0.5

%description -n %{devname}
Development files for qDecoder.

%files -n %{devname}
%doc doc/html COPYING
%{_libdir}/libqdecoder.so
%{_libdir}/pkgconfig/qdecoder.pc
%{_libdir}/libqdecoder.a
%{_includedir}/qdecoder.h

#----------------------------------------------------------------------------

%package examples
Summary:	Examples to qDecoder
Group:		Development/C

%description examples
Example files to qDecoder.

%files examples
%doc examples/*.c
%config(noreplace) %{_webappconfdir}/%{name}.conf
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

pushd examples
	%make
popd

%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}
%makeinstall LIBDIR=%{buildroot}%{_libdir} HEADERDIR=%{buildroot}%{_includedir}

install -d %{buildroot}%{_libdir}/%{name}
cp examples/*.{cgi,html,c} %{buildroot}%{_libdir}/%{name}
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
Alias /%{name} %{_libdir}/%{name}
<Directory %{_libdir}/%{name}>
    Order deny,allow
    Deny from all
    Allow from 127.0.0.1
    ErrorDocument 403 "Access denied per %{_webappconfdir}/%{name}.conf"
</Directory>
EOF

#strip unstripped lib
strip %{buildroot}%{_libdir}/lib%{name}.so*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7738 |21cr|qdevelop-0.29-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A Development Environment for Qt4
Name:		qdevelop
Version:	0.29
Release:	4
License:	GPLv2
Group:		Development/C++
URL:		http://qdevelop.org/
Source:		http://qdevelop.org/public/release/%{name}-v%{version}.tar.gz
Source1:	qdevelop-16.png
Source2:	qdevelop-32.png
Source3:	qdevelop-48.png
# http://code.google.com/p/qdevelop/issues/detail?id=391
Patch0:		%{name}-%{version}-mga-i18n-desktop.patch
Patch1:		qdevelop-v0.29-gcc7.patch

BuildRequires:	cmake
BuildRequires:	qt4-devel
Requires:	qt4-devel
Requires:	ctags
Requires:	gdb
Requires:	qt4-designer
Requires:	qt4-assistant
Requires:	qt4-linguist

%description
QDevelop is a development environment entirely dedicated to Qt4.
QDevelop requires Qt4, gcc under Linux or MinGW under Windows,
possibly gdb for program debugging and ctags for code completion.
QDevelop is available in English, French, German, Dutch, Polish,
Spanish, Chinese, Russian, Italian, Ukrainian, Czech and
Portuguese.

QDevelop is not a Kdevelop like or reduced. It's an independent IDE
dedicated to Qt and is totally independent of KDevelop. Less complete,
but faster, light and especially multi-platforms. QDevelop and
KDevelop have different code sources.

%prep
%autosetup -p1 -n %{name}-v%{version}

# for wrong-script-end-of-line-encoding
sed -i -e 's/\r//' README.txt
# hardcoded lib path
sed -i -e "s/lib/%{_lib}/" src/mainimpl.cpp
# Change translation directory
sed -i -e "s/lib\//share\//" src/main.cpp
# Change initialization to avoid compilation error with Qt 4.7.0
sed -i -e "s/=0/=QString::null/" src/build.h
sed -i -e "s/ttf=0/ttf=QString::null/" src/textEdit.h

%build
%{qt4bin}/lrelease QDevelop.pro
%qmake_qt4 -recursive
%make
# plugins compilation
cd plugins
for pluginName in $(ls)
do
   cd $pluginName
   %qmake_qt4
   %make
   cd ..
done

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}/%{_iconsdir}
mkdir -p %{buildroot}/%{_miconsdir}
mkdir -p %{buildroot}/%{_liconsdir}
install %{SOURCE1} %{buildroot}/%{_miconsdir}/%{name}.png
install %{SOURCE2} %{buildroot}/%{_iconsdir}/%{name}.png
install %{SOURCE3} %{buildroot}/%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/pixmaps/ %{buildroot}%{_libdir}/%{name}/plugins/ %{buildroot}%{_datadir}/%{name}/translations/
install -Dp bin/plugins/*.so %{buildroot}%{_libdir}/%{name}/plugins/
install -pDm644 resources/translations/*.qm %{buildroot}%{_datadir}/%{name}/translations/
install -pDm644 resources/images/logo.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
desktop-file-install --mode 644 --dir %{buildroot}%{_datadir}/applications/ %{name}.desktop

%files
%doc ChangeLog.txt
%doc README.txt
%{_bindir}/*
%{_datadir}/applications/*
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%{_libdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7739 |21cr|qdigidoc-4.2.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname  DigiDoc4-Client
#define comp 110

Summary:	Estonian digital signature application
Name:		qdigidoc
Version:	4.2.14
Release:	1
License:	LGPLv2+
Group:		Office
Url:		https://github.com/open-eid/DigiDoc4-Client
Source0:	https://github.com/open-eid/DigiDoc4-Client/releases/download/v%{version}/qdigidoc4-%{version}.tar.gz
# from https://ec.europa.eu/tools/lotl/eu-lotl.xml
Source1:	eu-lotl.xml
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	openldap-devel
BuildRequires:	opensc-devel
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libdigidocpp)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	ccid
Requires:	opensc
Requires:	pcsc-lite
Provides:	%{oname} = %{EVRD}
Provides:	%{name}4 = %{EVRD}

%description
QDigiDoc is an application for digitally signing and encrypting documents in
BDoc, DDoc, and CDoc container formats. These file formats are widespread in
Estonia where they are used for storing legally binding digital signatures.

%files
%{_bindir}/qdigidoc4
%{_iconsdir}/Yaru/*/mimetypes/*.png
%{_iconsdir}/hicolor/*/*/*.png
%{_datadir}/applications/qdigidoc4.desktop
%{_datadir}/kservices5/qdigidoc-signer.desktop
%{_datadir}/mime/packages/qdigidoc4.xml
%{_mandir}/man1/qdigidoc4.1.xz

#----------------------------------------------------------------------------

%package nautilus
Summary:	Nautilus extension for %{name}
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{EVRD}
Requires:	nautilus-python
Requires:	python3-gi

%description nautilus
The %{name}-nautilus package contains the %{name} extension for the
nautilus file manager.

%files nautilus -f nautilus-qdigidoc.lang
%{_datadir}/nautilus-python/extensions/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n qdigidoc4-%{version}

%build
%cmake

cp %{SOURCE1} client

%make_build

%install
%make_install -C build

%find_lang nautilus-qdigidoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7740 |21cr|qdirstat-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           qdirstat
Version:        1.9
Release:        1
Summary:        Qt-based directory statistics
Group:          File tools
License:        GPL-2.0-only
URL:            https://github.com/shundhammer/qdirstat
Source0:        %{url}/archive/%{version}/%{name}-%{version}.tar.gz
Source1:        %{name}.metainfo.xml

BuildRequires:  qt5-tools
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(zlib)

%description
QDirStat is a graphical application to show where your
disk space has gone and to help you to clean it up.

This is a Qt-only port of the old Qt3/KDE3-based KDirStat,
now based on the latest Qt 5. It does not need any KDE
libs or infrastructure. It runs on every X11-based desktop
on Linux, BSD and other Unix-like systems.

%prep
%autosetup -p1

%build
%qmake_qt5
%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}

install -Dp -m 644 %{SOURCE1} %{buildroot}%{_metainfodir}/%{name}.metainfo.xml

%files
%license LICENSE
%{_docdir}/%{name}/
%{_bindir}/%{name}
%{_bindir}/%{name}-cache-writer
%{_metainfodir}/%{name}.metainfo.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-cache-writer.1.*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7741 |21cr|qdjango-0.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot	20120110
%define major		0
%define libname		%mklibname qdjango %major

Name:		qdjango
Summary:	Object Relation Mapper library built on top of Qt
Version:	0.6.2
Release:	1
Source0:	%{name}-git%{snapshot}.tar.xz
Patch0:		qdjango-git20120110-mdv-build-shared.patch
Patch1:		qdjango-git20120110-mdv-library_path.patch
Group:		System/Libraries
License:	LGPLv3+
BuildRequires:	cmake
BuildRequires:	qt4-devel

%description
QDjango is a simple yet powerful Object Relation Mapper (ORM) written in C++
and built on top of the Qt library. Where possible it tries to follow
django's ORM API, hence its name. It is released under the terms of the GNU
Lesser General Public License version 3.

QDjango builds upon Qt's Meta-Object System, so if you are familiar with Qt,
you should feel right at home using QDjango. QDjango's features include:

  * support for a wide range of database backends thanks to QtSql
  * database fields are declared using Qt's  Q_PROPERTY macro
  * QDjango can create and drop database tables and indices for registered
    models
  * thread-aware access to the database
  * support for accessing your models from QtScript

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:        Object Relation Mapper library built on top of Qt

%description -n %{libname}
QDjango is a simple yet powerful Object Relation Mapper (ORM) written in C++
and built on top of the Qt library. Where possible it tries to follow
django's ORM API, hence its name. It is released under the terms of the GNU
Lesser General Public License version 3.

QDjango builds upon Qt's Meta-Object System, so if you are familiar with Qt,
you should feel right at home using QDjango. QDjango's features include:

  * support for a wide range of database backends thanks to QtSql
  * database fields are declared using Qt's  Q_PROPERTY macro
  * QDjango can create and drop database tables and indices for registered
    models
  * thread-aware access to the database
  * support for accessing your models from QtScript

%files -n %{libname}
%{_libdir}/libqdjango-*.so.%{major}*

#------------------------------------------------------------------------------

%package devel
Summary:        Development files for QDjango library
Requires:	qt4-devel
Requires:	%{libname} = %{version}

%description devel
QDjango is a simple yet powerful Object Relation Mapper (ORM) written in C++
and built on top of the Qt library. Where possible it tries to follow
django's ORM API, hence its name. It is released under the terms of the GNU
Lesser General Public License version 3.

This package contains files required for development purposes only.

%files devel
%{_includedir}/qdjango
%{_libdir}/libqdjango-*.so

#------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-git%{snapshot}
%patch0 -p1
%patch1 -p1

%build
%cmake
%make

%install
pushd build
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7742 |21cr|qedje-0.4.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname qedje %{major}
%define devname %mklibname qedje -d

Summary:	QEdje - Declarative language
Name:		qedje
Version:	0.4.0
Release:	13
License:	GPLv3+
Group:		Development/KDE and Qt
Url:		http://code.openbossa.org/projects/qedje
Source0:	%{name}-%{version}.tar.gz
Patch0:		qedje-0.4.0-fix-install.patch
Patch1:		qedje-0.4.0-efl11.patch
BuildRequires:	kde4-macros
BuildRequires:	qt4-devel
BuildRequires:	qzion-devel >= 0.4.0
BuildRequires:	eet-devel

%description
Edje is a declarative language that simplifies the development of 
complex interfaces separating the UI design from the application 
logic, by providing animations, layouts and simple scripts in a 
very small memory footprint.

%files
%{_kde_bindir}/qedje_viewer

#------------------------------------------------

%package -n %{libname}
Summary:	Shared library for qedje
Group:		System/Libraries

%description -n %{libname}
Shared library for qedje.

%files -n %{libname}
%{_kde_libdir}/libqedje.so.%{major}*

#-----------------------------------------------

%package -n %{devname}
Summary:	Development files for qedje
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.4.0-10
Obsoletes:	%{name}-devel < 0.4.0-10

%description -n %{devname}
Devel packages needed to build qedje apps

%files -n %{devname}
%{_kde_includedir}/*.h
%{_kde_libdir}/pkgconfig/qedje.pc
%{_kde_libdir}/libqedje.so

#------------------------------------------------

%prep
%setup -qn %{name}-mainline
%patch0 -p1
%patch1 -p1

%build
%cmake_qt4 -DBUILD_TOOLS=TRUE
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7743 |21cr|qelectrotech-0.61-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A tool to design electric diagrams
Name:		qelectrotech
Epoch:		3
Version:	0.61
Release:	4
License:	GPLv2+
Group:		Sciences/Other
Url:		http://qelectrotech.org/
Source0:	http://download.tuxfamily.org/qet/tags/20180823/%{name}-%{version}-src.tar.gz

BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	qt5-database-plugin-sqlite

%description
QElectroTech is a Qt5 application to design electric diagrams. It uses XML
files for elements and diagrams, and includes both a diagram editor and an
element editor.

%files -f %{name}.lang
%doc ChangeLog CREDIT ELEMENTS.LICENSE LICENSE README
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mimelnk/application/*.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/mime/application/*.xml
%{_datadir}/appdata/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/mimetypes/*.png
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}%{?prel}-src

sed -e s,/usr/local/,%{_prefix}/, \
    -e /QET_MAN_PATH/s,'man/','share/man', \
    -e /QET_MIME/s,../,, \
    -i %{name}.pro

%build
%qmake_qt5
%make

%install
%makeinstall_qt

# let files section handle docs
rm -rf %{buildroot}%{_prefix}/doc

desktop-file-install --vendor="" \
		--add-category=Electronics \
		--remove-key=Version \
		--dir=%{buildroot}%{_datadir}/applications/ \
		%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7744 |21cr|qemoo-1.9-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wrapper for qemu to easy run guest machines
Name:		qemoo
Version:	1.9
Release:	24
License:	GPLv2+
Group:		System/Base
Url:		https://abf.io/import/qemoo
Source0:	%{name}
Source1:	%{name}.cfg
Source2:	ru.rosalinux.%{name}.policy
Source3:	system.service
Source4:	user.service
Source5:	справка.команда.qemoo
Source6:	qemoo.desktop
Source7:	qemoo.svg
Source20:	iso2img
Requires:	qemu
Requires:	qemu-img
# These packages are needed to run as daemon and connect via SPICE (remmina, remote-viewer)
Recommends:	qemu-audio-spice
Recommends:	qemu-char-spice
Recommends:	qemu-ui-spice-app
Recommends:	qemu-ui-spice-core
# needed "ss" command to find free port, lsof too slow
Recommends:	iproute2
# to show help page
Recommends:	termhelper
# to support tpm2
Recommends:	swtpm
Recommends:	iso2img == %{EVRD}

# architecture dependened efi firmware emulator
# TODO: find efi firmware for all architectures that support efi
%ifarch x86_64
Requires:	edk2-ovmf
%endif

ExcludeArch:	%{e2k}

%description
Wrapper for qemu to easy run guest machine
from iso, img, /dev/sd?
supported installation from iso to new qcow2 image

%files
%{_bindir}/%{name}
%{_datadir}/polkit-1/actions/ru.rosalinux.%{name}.policy
%{_userunitdir}/%{name}@.service
%{_unitdir}/%{name}@.service
%config(noreplace) %{_sysconfdir}/%{name}.cfg
%{_datadir}/termhelper/ru/справка.команда.qemoo
%{_datadir}/termhelper/ru/справка.команда.кемуу
%{_datadir}/applications/qemoo.desktop
%{_iconsdir}/qemoo.svg

%package iso2img
Summary:	Quick install Rosa distro from iso to image
Requires:	/usr/bin/qemu-img
Requires:	/usr/bin/qemu-nbd
Requires:	parted
Requires:	e2fsprogs
Provides:	iso2img

%description iso2img
Bash script to quick install Rosa distro from iso to images (qcow2,vdi,vmdk and raw image).

%files iso2img
%{_bindir}/iso2img

%posttrans
[ -x /usr/bin/termhelper -a "_$LANG" == '_ru_RU.UTF-8' ] && /usr/bin/termhelper команда qemoo
:

%prep

%build

%install
mkdir -p  %{buildroot}%{_bindir}/ %{buildroot}/%{_sysconfdir}
mkdir -p  %{buildroot}%{_unitdir} %{buildroot}/%{_userunitdir}
mkdir -p  %{buildroot}%{_datadir}/termhelper/ru
mkdir -p  %{buildroot}%{_iconsdir} %{buildroot}%{_datadir}/applications
install -m 755 %{SOURCE0} %{buildroot}/%{_bindir}
install -m 644  %{SOURCE1}  %{buildroot}/%{_sysconfdir}/
install -m 644 -D %{SOURCE2} %{buildroot}%{_datadir}/polkit-1/actions/ru.rosalinux.qemoo.policy
install -m 644 %{SOURCE3} %{buildroot}/%{_unitdir}/%{name}@.service
install -m 644 %{SOURCE4} %{buildroot}/%{_userunitdir}/%{name}@.service
install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/termhelper/ru/
ln -s %{_datadir}/termhelper/ru/справка.команда.qemoo %{buildroot}%{_datadir}/termhelper/ru/справка.команда.кемуу
install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE7} %{buildroot}%{_iconsdir}/

install -m 755 %{SOURCE20} %{buildroot}/%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7745 |21cr|qemulator-0.5-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	Qemulator

Summary:	Interface to configure and launch Qemu
Name:		qemulator
Version:	0.5
Release:	14
License:	GPLv2+
Group:		Emulators
URL:		http://qemulator.createweb.de/
Source0:	http://qemulator.createweb.de/%{oname}-%{version}.tar.gz
Source1:	%{name}.desktop
Patch0:		fix_python_dir.patch
BuildArch:	noarch

Requires:	perl-Locale-gettext >= 1.04
Requires:	python
Requires:	pygtk2.0
Requires:	gnome-python
Requires:	qemu
Requires:	pygtk2.0-libglade
BuildRequires:	librsvg
BuildRequires:	libxml2-utils
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pygtk2.0-devel
BuildRequires:	imagemagick

%description
A launcher for Qemu that manages Qemu configs and creates disk images
Qemu-launcher provides a point and click interface to Qemu. It also
allows you to create, save, load, and run multiple Qemu VM
configurations. It has a basic interface for creating or converting
disk images.

Only supports the x86 PC emulator part of Qemu.


%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir} \
         %{buildroot}%{_datadir}/ \
         %{buildroot}%{_datadir}/%{name} \
         %{buildroot}%{_datadir}/pixmaps \
         %{buildroot}%{_libdir}
cp -a usr/local/lib/qemulator/* %{buildroot}%{_datadir}/qemulator
cp -ra usr/local/share/* %{buildroot}%{_datadir}/
chmod +x %{buildroot}%{_datadir}/qemulator/qml_imagecreation.py \
         %{buildroot}%{_datadir}/qemulator/qml_machinesetup.py \
         %{buildroot}%{_datadir}/qemulator/qml_filehandlers.py \
         %{buildroot}%{_datadir}/qemulator/qml_configuration.py \
         %{buildroot}%{_datadir}/qemulator/qml_tools.py \
         %{buildroot}%{_datadir}/qemulator/qml_installwizzard.py \
         %{buildroot}%{_datadir}/qemulator/qml_style.py
chmod -x %{buildroot}%{_datadir}/qemulator/icons/mac.png
convert -resize 32x32 usr/local/share/pixmaps/qemulator.svg qemulator.xpm
cp qemulator.xpm %{buildroot}%{_datadir}/pixmaps/
ln -s %{_datadir}/qemulator/qemulator.py %{buildroot}%{_bindir}/qemulator

desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/pixmaps/%{name}.*
%{_datadir}/pixmaps/%{name}/%{name}.*
%{_datadir}/locale
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/pixmaps/qemulator/*.png


%changelog
* Mon Aug 06 2012 Johnny A. Solbu <solbu@mandriva.org> 0.5-9mdv2012.0
+ Revision: 811863
- Fix menu entry
- Fix Requires
- Fix License
- Spec cleanup

* Tue Sep 15 2009 Thierry Vignaud <tv@mandriva.org> 0.5-8mdv2010.0
+ Revision: 442555
- rebuild

* Fri Mar 06 2009 Antoine Ginies <aginies@mandriva.com> 0.5-7mdv2009.1
+ Revision: 350167
- 2009.1 rebuild

* Thu Sep 04 2008 Jérôme Soyer <saispo@mandriva.org> 0.5-6mdv2009.0
+ Revision: 280558
- Remove unneeded BR

* Fri Aug 01 2008 Thierry Vignaud <tv@mandriva.org> 0.5-5mdv2009.0
+ Revision: 259912
- rebuild

* Fri Jul 25 2008 Thierry Vignaud <tv@mandriva.org> 0.5-4mdv2009.0
+ Revision: 247761
- rebuild

  + Pixel <pixel@mandriva.com>
    - rpm filetriggers deprecates update_menus/update_scrollkeeper/update_mime_database/update_icon_cache/update_desktop_database/post_install_gconf_schemas

* Mon Mar 31 2008 Anne Nicolas <ennael@mandriva.org> 0.5-2mdv2008.1
+ Revision: 191235
- Add pygtk2.0-libglade require (#39627)

  + Olivier Blin <blino@mandriva.org>
    - restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request

* Tue Oct 09 2007 Jérôme Soyer <saispo@mandriva.org> 0.5-1mdv2008.1
+ Revision: 95839
- Add imagemagick to BuildRequires
- Add desktop file
- Add desktop file
- import qemulator



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7746 |21cr|qeven-0.3.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define debug_package	%{nil}

Name:		qeven
Version:	0.3.2
Release:	7
Summary:	Video Converter with Qt4 GUI
Group:		Video
License:	GPLv3
URL:		http://qeven.wordpress.com/
Source0:	https://sourceforge.net/projects/qeven/files/%{name}/%{name}_%{version}/%{name}_%{version}.tar.bz2
Source1:	russian.qm
Patch0:		qeven-0.3.2-mencoder.patch
Patch1:		qeven_0.3.2-rus.patch

BuildRequires:	qt4-devel
Requires:	mplayer
Requires:	mencoder

%description
Qt Easy Video Encoder (QEVEN) allows you to encode your media
in several video format including (VCD, SVCD, DVD, DIVX, XVID, FLV).


%prep
%setup -qn %{name}_%{version}
%patch0 -p0
%patch1 -p1
cp %{SOURCE1} translation/russian.qm
perl -i -pe 's/\r\n/\n/gs' {LICENSE.txt,CHANGELOG}


%build
%qmake_qt4 QEVEN.pro
%make

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/pixmaps
mkdir -p %{buildroot}/%{_datadir}/%{name}/translation

cp QEVEN %{buildroot}%{_bindir}/%{name}
cp -rp translation %{buildroot}%{_datadir}/%{name}/
cp Image/qeven*64x64*.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
mkdir -p %{buildroot}%{_datadir}/applications

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Qeven
GenericName=QT Easy Video Encoder
Comment=Video Encoder
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Qt;AudioVideo;
EOF


%files
%doc AUTHORS CHANGELOG LICENSE.txt README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}/translation/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7747 |21cr|qgis-3.26.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Doesnt build with -j16, does with -j12 or lower, we choose -j8
%global make %(cpus=%_smp_mflags;if [ "${cpus##-j}" -gt 8 ];then echo make -j8;else echo make $cpus;fi)

%global __requires_exclude .*libgrass_.*

%define libanalysis %mklibname qgis_analysis %{version}
%define libcore %mklibname qgis_core %{version}
%define libapp %mklibname qgis_app %{version}
%define libgui %mklibname qgis_gui %{version}
%define libnative %mklibname qgis_native %{version}
%define libgrass %mklibname qgisgrass7_ %{version}
%define libpython %mklibname qgispython %{version}

%define devname %mklibname %{name} -d

%define grass grass78

Summary:	Geographic Information System for Linux/Unix
Name:		qgis
Version:	3.26.3
Release:	1
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		http://www.qgis.org/
Source0:	http://qgis.org/downloads/%{name}-%{version}.tar.bz2
# MIME definitions
# Based on debian/qgis.xml but excluding already defined or proprietary types
Source1:	%{name}-mime.xml
Patch0:		qgis-3.24.1-set-sip-binary-path.patch
Patch1:		qgis-3.24.1-qt5-includes.patch
Patch2:		0001-Block-propaganda.patch
# Fix QGIS Server prefix calculation
Patch3:         %{name}-serverprefix.patch
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	flex
BuildRequires:	grass
BuildRequires:	imagemagick
BuildRequires:	mlocate
BuildRequires:	postgis
BuildRequires:	python3-sip
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	geos-devel
BuildRequires:	qwt-qt5-devel
BuildRequires:	python3-qt5-devel
BuildRequires:	python3-qt-builder
BuildRequires:	qscintilla-qt5-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	spatialindex-devel
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(gdal)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(OpenCL)
BuildRequires:	pkgconfig(proj)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	qca-qt5-plugin-openssl
BuildRequires:	pkgconfig(spatialite)
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	python3-biopython-sql
BuildRequires:	python3-qt5-qscintilla-devel
BuildRequires:	qt5-linguist-tools
Requires:	postgis
# can work without it but prints a warning
Recommends:	%{name}-python

%description
Quantum GIS (QGIS) is designed to be a Geographic Information System (GIS)
built for Linux/Unix. QGIS will offer support for vector and raster formats.
Currently QGIS supports shapefiles and PostgreSQL/PostGIS layers.

Planned features include:

    * Read and edit shapefiles
    * Display georeferenced rasters (tiff, png, geotiff)
    * Plugins to dynamically add new functionality to the application
    * Support for database tables
    * Support for spatially enabled tables in PostgreSQL using PostGIS
    * Map output
    * Script engine
    * Metadata support

%files
%doc BUGS
%{_libdir}/%{name}/crssync
%{_bindir}/%{name}
%{_bindir}/qgis_process
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so
%{_libdir}/%{name}/qgiscrashhandler
%{_datadir}/%{name}/doc
%{_datadir}/applications/*.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/i18n
%{_datadir}/%{name}/images
%{_datadir}/%{name}/resources
%{_datadir}/%{name}/svg
%{_datadir}/metainfo/*.xml
%{_datadir}/mime/packages/*
%{_mandir}/man1/*
%{_iconsdir}/hicolor/*/apps/*
%{_iconsdir}/hicolor/*/mimetypes/*

#----------------------------------------------------------------------------

%package -n %{libanalysis}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libanalysis}
Shared library for %{name}.

%files -n %{libanalysis}
%{_libdir}/libqgis_analysis.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libcore}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libcore}
Shared library for %{name}.

%files -n %{libcore}
%{_libdir}/libqgis_core.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libapp}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libapp}
Shared library for %{name}.

%files -n %{libapp}
%{_libdir}/libqgis_app.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libnative}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnative}
Shared library for %{name}.

%files -n %{libnative}
%{_libdir}/libqgis_native.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libgui}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libgui}
Shared library for %{name}.

%files -n %{libgui}
%{_libdir}/libqgis_gui.so.%{version}


#----------------------------------------------------------------------------

%package -n %{libgrass}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libgrass}
Shared library for %{name}.

%files -n %{libgrass}
%{_libdir}/libqgisgrass7.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libpython}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libpython}
Shared library for %{name}.

%files -n %{libpython}
%{_libdir}/libqgispython.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and headers for QGIS
Group:		Sciences/Geosciences
Requires:	%{libanalysis} = %{EVRD}
Requires:	%{libcore} = %{EVRD}
Requires:	%{libgui} = %{EVRD}
Requires:	%{libnative} = %{EVRD}
Requires:	%{libapp} = %{EVRD}
Requires:	%{libgrass} = %{EVRD}
Requires:	%{libpython} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers for QGIS.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib%{name}_*.so
%{_libdir}/libqgisgrass7.so
%{_libdir}/libqgispython.so
%{_datadir}/%{name}/FindQGIS.cmake

#----------------------------------------------------------------------------

%package grass
Summary:	QGIS plugins for accessing GRASS data
Group:		Sciences/Geosciences
Requires:	grass

%description grass
This package provides plugins for QGIS that provide access to GRASS data from
within QGIS.

%files grass
%{_libdir}/%{name}/grass
%{_datadir}/%{name}/grass

#----------------------------------------------------------------------------

%package python
Summary:	Python integration and plugins for qgis
Group:		Sciences/Geosciences
Requires:	%{name} = %{EVRD}
Requires:	python3-sip
Requires:	python3-qt5
Requires:	python3-jinja2
Requires:	python3-qt5-qscintilla
Requires:	python3-yaml
Requires:	python3-gdal
Requires:	python3-psycopg2
Requires:	python3-numpy
Requires:	python3-owslib

%description python
Python integration and plugins for qgis.

%files python
%{_datadir}/%{name}/python/
%{py3_platsitedir}/%{name}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_qt5 \
    -DQGIS_LIB_SUBDIR=%{_lib} \
    -DQGIS_MANUAL_SUBDIR=/share/man \
    -DQGIS_PLUGIN_SUBDIR=%{_lib}/qgis \
    -DQGIS_CGIBIN_SUBDIR=%{_lib}/qgis \
    -DSIP_BINARY_PATH=%{_bindir}/sip5 \
    -DQSCI_SIP_DIR=%{python3_sitearch}/PyQt5/bindings \
    -DQWT_INCLUDE_DIR=%{_includedir}/qt5/qwt \
    -DGRASS_PREFIX7=%{_libdir}/%{grass} \
    -DCMAKE_SKIP_RPATH=OFF \
    -DWITH_BINDINGS=ON \
    -DBINDINGS_GLOBAL_INSTALL=ON \
    -DENABLE_TESTS=OFF

%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}/%{_datadir}/applications
cat > %{buildroot}/%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Quantum GIS
Comment=Quantum Geographic Information System
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Science;Geoscience;Qt;
EOF

desktop-file-install \
    --remove-mime-type="application/x-raster-ecw" \
    --remove-mime-type="application/x-raster-mrsid" \
    --dir=%{buildroot}%{_datadir}/applications \
    %{buildroot}%{_datadir}/applications/org.qgis.qgis.desktop

# Install MIME type definitions
install -d %{buildroot}%{_datadir}/mime/packages
install -pm0644 %{SOURCE1} \
    %{buildroot}%{_datadir}/mime/packages/%{name}.xml

# Remove install instructions
rm -f %{buildroot}%{_datadir}/%{name}/doc/INSTALL*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7748 |21cr|qgit-2.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A git GUI viewer
Name:		qgit
Version:	2.10
Release:	2
License:	GPLv2+
Group:		Development/Other
Url:		http://libre.tibirna.org/projects/qgit
Source0:	https://github.com/tibirna/qgit/archive/%{name}-%{version}.tar.gz
Source1:	%{name}.1
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	git-core

%description
With qgit you will be able to browse revisions history, view patch content
and changed files, graphically following different development branches.

Main features
- View revisions, diffs, files history, files annotation, archive tree.
- Commit changes visually cherry picking modified files.
- Apply or format patch series from selected commits, drag and
  drop commits between two instances of qgit.
- qgit implements a GUI for the most common StGIT commands like push/pop
  and apply/format patches. You can also create new patches or refresh
  current top one using the same semantics of git commit, i.e. cherry
  picking single modified files.

%files
%doc README.adoc
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/%{name}.appdata.xml
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

install -m 0644 -p -D %{SOURCE1} %{buildroot}%{_mandir}/man1/%{name}.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7749 |21cr|qimageblitz-0.0.6-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname qimageblitz %{major}
%define devname %mklibname qimageblitz -d

Summary:	Graphics manipulation library for Qt4
Name:		qimageblitz
Version:	0.0.6
Release:	14
Epoch:		1
License:	BSD
Group:		Development/KDE and Qt
Source:		%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	qt4-devel

%description
Blitz is a graphics manipulation library for Qt4.

%files
%{_bindir}/blitztest

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Blitz shared library
Group:		System/Libraries

%description -n %{libname}
Blitz shared library.

%files -n %{libname}
%{_libdir}/libqimageblitz.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libqimageblitz.so
%{_includedir}/qimageblitz
%{_libdir}/pkgconfig/*

#--------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt4 \
	-DCMAKE_SKIP_RPATH:BOOL=ON \
	-DLIB_INSTALL_DIR=%{_libdir} \
	-DINCLUDE_INSTALL_DIR=%{_includedir}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7750 |21cr|qingy-1.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon
%define libname %mklibname %{name} %{version}

Summary:	DirectFB getty replacement
Name:		qingy
Version:	1.0.0
Release:	2
License:	GPLv2+
Group:		System/Base
Url:		https://qingy.sourceforge.net
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(directfb)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xscrnsaver)

%description
qingy is a replacement of getty. It uses DirectFB to provide a fast, nice GUI
without the overhead of the X Window System. It allows the user to log in and
start the session of his choice (text console, gnome, kde, wmaker, ...).

%files
%license COPYING
%doc INSTALL NEWS README
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/themes
%dir %{_datadir}/%{name}/themes/default/
%{_infodir}/%{name}.info*
%{_datadir}/%{name}/themes/default/*
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/screensavers/
%{_libdir}/%{name}/screensavers/*.qss
%{_sbindir}/%{name}
%{_sbindir}/%{name}-DirectFB
%{_sbindir}/%{name}-keygen
%{_sbindir}/%{name}-reset-console
%config(noreplace) %{_sysconfdir}/%{name}/settings
%config(noreplace) %{_sysconfdir}/%{name}/welcomes
%config(noreplace) %{_sysconfdir}/pam.d/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libqingy-%{version}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--disable-optimizations \
	--enable-crypto=libgcrypt

%make

%install
%makeinstall_std

mv %{buildroot}%{_libdir}/%{name}/libqingy-1.0.0.so %{buildroot}%{_libdir}/libqingy-1.0.0.so
rm %{buildroot}%{_libdir}/%{name}/libqingy.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7751 |21cr|qiv-2.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		qiv
Version:	2.3.1
Release:	3
Summary:	Gdk/imlib image viewer
Group:		Graphics
License:	GPL+
Url:		http://spiegl.de/qiv/
Source0:	http://spiegl.de/qiv/download/%{name}-%{version}.tgz
Patch0:		qiv-2.2.4-no-strip.patch
BuildRequires:	jpeg-devel
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(xinerama)

%description
qiv is a fast image viewer for X based on gdk and imlib.

%prep
%setup -q
%patch0 -p1

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}

#don't change this to %_mandir, since Makefile is not BM

mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1}
perl -pi -e 's!PREFIX\)/man/man1!PREFIX\)/share/man/man1!g' Makefile
DISPLAY="" make PREFIX=%{buildroot}%{_prefix} install
cp contrib/%{name}-command.example %{buildroot}%{_bindir}/%{name}-command

%files
%doc README Changelog README.COPYING README.INSTALL
%{_bindir}/qiv
%{_bindir}/qiv-command
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man1/qiv.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7752 |21cr|qjoypad-4.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Emulate keyboard or mouse actions with a joystick
Name:		qjoypad
Version:	4.2.1
Release:	3
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://qjoypad.sourceforge.net/
# Fork by a new maintainer
Source0:	https://github.com/panzi/qjoypad/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	imagemagick

%description
QJoyPad converts input from a gamepad or joystick into key-presses or mouse
actions, letting you control any X program with your game controller.
It comes with a convenient and easy-to-use interface.

%files
%doc LICENSE.txt README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake
%make


%install
%makeinstall_std -C build

# Add more icons (other than 24x24 and 64x64 from sources) for the menu
pushd icons
	convert gamepad4-64x64.png -resize 48x48 %{name}-48x48.png
	install -D -m 644 %{name}-48x48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

	convert gamepad4-64x64.png -resize 32x32 %{name}-32x32.png
	install -D -m 644 %{name}-32x32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

	convert gamepad4-64x64.png -resize 16x16 %{name}-16x16.png
	install -D -m 644 %{name}-16x16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
popd

desktop-file-edit --add-category="Settings" %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7753 |21cr|qlcplus-qt5-4.13.1-10.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global  optflags %{optflags} -fno-strict-aliasing -ludev -I/usr/include/libftdi1
%global debug_package   %{nil} 

Name:           qlcplus-qt5
Version:        4.13.1
Release:        10.1
Summary:        Q Light Controller Plus - The free DMX lighting console
License:        Apache-2.0
Group:          Graphical desktop/Other
URL:            http://www.qlcplus.org/
Source0:        %{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
Patch0:         %{name}-desktop.patch

BuildRequires:  desktop-file-utils
BuildRequires:  fdupes
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5SerialPort)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(fftw3)
BuildRequires:  pkgconfig(libftdi1)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(libusb)
BuildRequires:  pkgconfig(mad)
BuildRequires:  pkgconfig(sndfile)
BuildRequires:  qt5-linguist
BuildRequires:	lib64qt5test-devel
BuildRequires:	lib64udev-devel
# Uncomment when the package will available in repo
# BuildRequires:  pkgconfig(libola)

%description
QLC+ is a fork of the great QLC project written
by Heikki Junnila. This project aims to continue
the development of QLC and to introduce new features.
The primary goal is to bring QLC+ at the level
of other lighting control commercial softwares.

%files
%license COPYING
%doc %{_datadir}/qlcplus/documents/*
%{_bindir}/*
%{_libdir}/libqlcplusengine.so.*
%{_libdir}/libqlcplusui.so.*
%{_libdir}/libqlcpluswebaccess.so.*
%{_datadir}/qlcplus/translations/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/qlcplus/fixtures/*
%{_datadir}/qlcplus/inputprofiles/*
%{_datadir}/qlcplus/rgbscripts/*
%{_datadir}/qlcplus/Sample.qxw
%{_datadir}/qlcplus/gobos/*
%{_datadir}/qlcplus/miditemplates/*
%{_datadir}/qlcplus/modifierstemplates/*
%{_datadir}/qlcplus/web/*
%{_datadir}/mime/packages/qlcplus.xml
%{_datadir}/metainfo/*
%{_libdir}/qt5/plugins/qlcplus/audio/*.so
%{_libdir}/qt5/plugins/qlcplus/*.so
%{_mandir}/*/*
%{_udevrulesdir}/*

#--------------------------------------------------------------
%package -n %{name}-devel
Summary:        Development for QLC+
Requires:       %{name} = %{version}

%description devel
Development package for Q Light Controller Plus

%files -n %{name}-devel
%{_libdir}/libqlcpluswebaccess.so
%{_libdir}/libqlcplusengine.so
%{_libdir}/libqlcplusui.so

#--------------------------------------------------------------

%prep

%autosetup -p1

rm -rf debian
rm -rf create-*.sh
rm -rf *.bat
./translate.sh

%build

%qmake_qt5

%make_build

%install
INSTALL_ROOT=%{buildroot} make install

mkdir -p %{buildroot}%{_udevrulesdir}
mv -v %{buildroot}%{_sysconfdir}/udev/rules.d/* %{buildroot}%{_udevrulesdir}

#%if 0%{?suse_version}
#%suse_update_desktop_file -i qlcplus AudioVideo Sequencer Qt
#%suse_update_desktop_file -i qlcplus-fixtureeditor AudioVideo AudioVideoEditing Qt
#%endif

%fdupes %{buildroot}

#%post
#/sbin/ldconfig
#%mime_database_post

#%postun
#/sbin/ldconfig
#%mime_database_post




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7754 |21cr|qlipper-5.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight clipboard history
Name:		qlipper
Version:	5.1.2
Release:	2
License:	GPLv2+
Group:		Text tools
Url:		https://github.com/pvanek/qlipper
Source0:	https://github.com/pvanek/qlipper/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	qlipper_ru.tar.gz
Patch0:		qlipper-5.1.1-cmake-ru.patch
Patch1:		qlipper-5.1.2-desktop-ru.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)

%description
Lightweight and cross-platform clipboard history applet.

%files -f %{name}.lang
%doc COPYING README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.*
%{_iconsdir}/%{name}.*
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_sysconfdir}/xdg/autostart/lxqt-qlipper-autostart.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

chmod -x src/*.{cpp,h}

pushd ts
tar -xvzf %{SOURCE1}
popd

%build
%cmake_qt5 \
	-DENABLE_LXQT_AUTOSTART:BOOL=ON \
	-DCMAKE_BUILD_TYPE=release
%make

%install
%makeinstall_std -C build

install -d -D -m 755 %{buildroot}%{_datadir}/pixmaps
install -d -D -m 755 %{buildroot}%{_iconsdir}

install -D src/icons/%{name}.png %{buildroot}%{_iconsdir}
convert %{buildroot}%{_iconsdir}/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7755 |21cr|qman-0-0.git4ac825.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 4ac82569a79e9811461b7761a68066dcab412e53
%define commit_short %(echo %{commit} | head -c6)


Summary:	A more modern man page viewer for our terminals
Name:		qman
Version:	0
Release:	0.git%{commit_short}.1
License:	BSD-2
Group:		Documentation
Url:		https://github.com/plp13/qman
Source0:	https://github.com/plp13/qman/archive/%{commit}.zip?/%{name}-%{commit}.zip
# pandoc not in repo
Patch0:		qman-use-md2man.patch
BuildRequires:	cmake
BuildRequires:	python3-cogapp
BuildRequires:	meson
BuildRequires:	md2man
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(inih)

%description
Linux manual pages are lovely. They are concise, well-written, 
complete, and downright useful. However, the standard way of 
accessing them from the command-line hasn't changed since the early days.

Qman aims to change that. It's a modern, full-featured manual 
page viewer featuring hyperlinks, web browser like navigation, 
incremental search, on-line help, and more. It also strives to be 
fast and tiny, so that it can be used everywhere. For this reason, 
it's been written in plain C and has only minimal dependencies.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}/src

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7756 |21cr|qmapshack-1.16.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GPS mapping and management tool
Name:		qmapshack
Version:	1.16.1
Release:	4
License:	GPLv3+
Group:		Communications
Url:		https://bitbucket.org/maproom/qmapshack/wiki/Home
Source0:	https://github.com/Maproom/qmapshack/archive/refs/tags/V_%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	alglib-devel
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	routino
BuildRequires:	routino-devel
BuildRequires:	quazip1-qt5-devel
BuildRequires:	pkgconfig(gdal)
BuildRequires:	pkgconfig(libdmtx)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libopenjpeg1)
BuildRequires:	pkgconfig(proj)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	pkgconfig(zlib)
Requires:	gdal
Requires:	proj
Requires:	routino

%description
QMapShack provides a versatile tool for GPS maps in GeoTiff format as well as
Garmin's img vector map format. You can also view and edit your GPX tracks.
QMapShack is the successor of QLandkarteGT.

Main features:
- use of several work-spaces
- use several maps on a work-space
- handle data project-oriented
- exchange data with the device by drag-n-drop

%files
%doc LICENSE changelog.txt
%{_bindir}/%{name}
%{_bindir}/qmaptool
%{_bindir}/qmt_map2jnx
%{_bindir}/qmt_rgb2pct
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/qmaptool.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/%{name}
%{_datadir}/qmaptool
%{_datadir}/qmt_rgb2pct
%{_datadir}/pixmaps/*.png
%{_docdir}/HTML/*
%{_mandir}/man1/*

%prep
%autosetup -p1 -n %{name}-V_%{version}

%build
%cmake \
	-DHELPPATH=%{_docdir}/%{name} \
	-DBUILD_SHARED_LIBS:BOOL=OFF ..
%make VERBOSE=1

%install
%makeinstall_std -C build

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7757 |21cr|qmc2-0.243-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# sdlmame & sdlmess templates section is commented out because
# templates are up to date at this moment but sometimes we need to
# update them from SVN

Summary:	M.A.M.E. Catalog / Launcher II
Name:		qmc2
Version:	0.243
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Emulators
Url:		https://github.com/qmc2/qmc2-mame-fe
Source0:	https://github.com/qmc2/qmc2-mame-fe/archive/refs/tags/v%{version}.tar.gz?/qmc2-mame-fe-%{version}.tar.gz
# We use SDLMAME instead of MAME as QMC2_EMULATOR
Patch0:		qmc2-mame-fe-0.242-sdlmame.patch
BuildRequires:	qmake5
BuildRequires:	rsync
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(QtWebKit)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
#not requiring non-free
Recommends:	sdlmame
Recommends:	sdlmame-extra-data

%description
QMC2 is a Qt5 based front-end for SDLMAME (including SDLMESS functionality).

%files
%{_bindir}/%{name}
%{_bindir}/%{name}-arcade
%{_bindir}/%{name}-sdlmame
%{_bindir}/qchdman
%config %{_sysconfdir}/%{name}/%{name}.ini
%{_datadir}/applications/%{name}-arcade.desktop
%{_datadir}/applications/%{name}-sdlmame.desktop
%{_datadir}/applications/qchdman.desktop
%{_datadir}/%{name}
%{_mandir}/man6/%{name}*.6.*
%{_mandir}/man6/qchdman.6.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n qmc2-mame-fe-%{version}

%build
%make \
	QTDIR=%{_prefix}/lib/qt5	\
	PREFIX=%{_prefix}		\
	CXX_FLAGS="%{optflags}"		\
	JOYSTICK=1			\
	OPENGL=1			\
	SDL=2

%make \
	CXX_FLAGS="%{optflags}"	\
	SDL=2			\
	arcade

%make \
	CXX_FLAGS="%{optflags}"	\
	SDL=2			\
	qchdman

%make doc

%install
%makeinstall \
	PREFIX=%{_prefix}	\
	DESTDIR=%{buildroot}	\
	MAN_DIR=%{_mandir}	\
	QTDIR=%{_prefix}/lib/qt5	\
	arcade-install		\
	qchdman-install		\
	doc-install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7758 |21cr|qmergeinifiles-1.91.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: qmergeinifiles
Version: 1.91.0
Release: 4

Summary: Utility to merge INI-format files
Group: Development/Other
License: GPL

Requires: qt4-common

Source: %name-%version.tar

BuildRequires: gcc-c++ libqt4-devel libstdc++-devel

%description
Utility to merge INI-format files

%prep
%setup -q
%qmake_qt4

%build
%make CUSTOM_OPT_FLAGS="%optflags"

%install
%make INSTALL_ROOT=%buildroot install


%files
%_bindir/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7759 |21cr|qmetro-0.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Transport system maps for many city subways
Name:		qmetro
Version:	0.7.1
Release:	4
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		https://sourceforge.net/projects/qmetro/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.zip
Patch0:		qmetro-0.7.1-desktop.patch
BuildRequires:	librsvg
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	pkgconfig(QtNetwork)

%description
Vector metro (subway) map for calculating route and getting information
about transport nodes. It's GPL project for creating analog of pMetro
(Muradov B.) and it's using PMZ format. Maps have an open format and can
easily be edited or created.

Requires qmetro-data-* files.

%files
%doc AUTHORS LICENSE README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%dir %{_datadir}/%{name}/
%dir %{_datadir}/%{name}/map/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%qmake_qt4 LIBS+=-lz
%make

%install
make INSTALL_ROOT=%{buildroot} install

mkdir -p %{buildroot}%{_datadir}/%{name}/map

# Remove Android skin, maps (packaged in qmetro-data-*).
rm -rf %{buildroot}/tmp

# Remove incorrect icon size.
rm -rf %{buildroot}%{_datadir}/icons/hicolor/80x80

# Install icons of various sizes.
for s in 256 128 96 48 32 22 16 ; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
rsvg-convert -w ${s} -h ${s} \
    rc/icons/hicolor/scalable/apps/%{name}.svg -o \
    %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7760 |21cr|qmetro-data-0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Maps for qMetro
Name:		qmetro-data
Version:	0
Release:	4
License:	GPLv2+
Group:		Sciences/Geosciences
Url:		http://pmetro.su/Maps.html
# Pack all maps into one tarball
Source0:	%{name}.tar.bz2
BuildArch:	noarch

%description
Maps for the qMetro program.

#----------------------------------------------------------------------------

%package Algeria
Summary:	Metro Maps (Algeria)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Algeria
Maps for the qMetro program (Algeria).

Cities: Algiers.

%files Algeria
%{_datadir}/qmetro/map/Algiers.pmz

#----------------------------------------------------------------------------

%package Argentina
Summary:	Metro Maps (Argentina)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Argentina
Maps for the qMetro program (Argentina).

Cities: Buenos Aires.

%files Argentina
%{_datadir}/qmetro/map/Buenos-Aires.pmz

#----------------------------------------------------------------------------

%package Armenia
Summary:	Metro Maps (Armenia)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Armenia
Maps for the qMetro program (Armenia).

Cities: Yerevan.

%files Armenia
%{_datadir}/qmetro/map/Erevan.pmz

#----------------------------------------------------------------------------

%package Australia
Summary:	Metro Maps (Australia)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Australia
Maps for the qMetro program (Australia).

Cities: Sydney.

%files Australia
%{_datadir}/qmetro/map/Sydney.pmz

#----------------------------------------------------------------------------

%package Austria
Summary:	Metro Maps (Austria)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Austria
Maps for the qMetro program (Austria).

Cities: Vienna, Linz, Serfaus.

%files Austria
%{_datadir}/qmetro/map/Wienn.pmz
%{_datadir}/qmetro/map/Linz.pmz
%{_datadir}/qmetro/map/Serfaus.pmz

#----------------------------------------------------------------------------

%package Azerbaijan
Summary:	Metro Maps (Azerbaijan)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Azerbaijan
Maps for the qMetro program (Azerbaijan).

Cities: Baku.

%files Azerbaijan
%{_datadir}/qmetro/map/Baku.pmz

#----------------------------------------------------------------------------

%package Belarus
Summary:	Metro Maps (Belarus)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Belarus
Maps for the qMetro program (Belarus).

Cities: Minsk.

%files Belarus
%{_datadir}/qmetro/map/Minsk.pmz

#----------------------------------------------------------------------------

%package Belgium
Summary:	Metro Maps (Belgium)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Belgium
Maps for the qMetro program (Belgium).

Cities: Brussels, Antwerp, Charleroi.

%files Belgium
%{_datadir}/qmetro/map/Brussels.pmz
%{_datadir}/qmetro/map/Antwerpen.pmz
%{_datadir}/qmetro/map/Charleroi.pmz

#----------------------------------------------------------------------------

%package Brazil
Summary:	Metro Maps (Brazil)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Brazil
Maps for the qMetro program (Brazil).

Cities: São Paulo, Belo Horizonte, Rio de Janeiro, Brasília, Recife,
Porto Alegre, Teresina, Salvador, Fortaleza.

%files Brazil
%{_datadir}/qmetro/map/San-Paulo.pmz
%{_datadir}/qmetro/map/Belo-Horizonte.pmz
%{_datadir}/qmetro/map/Rio-De-Janeiro.pmz
%{_datadir}/qmetro/map/Brasilia.pmz
%{_datadir}/qmetro/map/Recife.pmz
%{_datadir}/qmetro/map/Porto-Alegre.pmz
%{_datadir}/qmetro/map/Teresina.pmz
%{_datadir}/qmetro/map/Salvador.pmz
%{_datadir}/qmetro/map/Fortaleza.pmz

#----------------------------------------------------------------------------

%package Bulgaria
Summary:	Metro Maps (Bulgaria)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Bulgaria
Maps for the qMetro program (Bulgaria).

Cities: Sofia.

%files Bulgaria
%{_datadir}/qmetro/map/Sofia.pmz

#----------------------------------------------------------------------------

%package Canada
Summary:	Metro Maps (Canada)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Canada
Maps for the qMetro program (Canada).

Cities: Toronto, Montreal, Vancouver, Edmonton, Calgary, Ottawa.

%files Canada
%{_datadir}/qmetro/map/Toronto.pmz
%{_datadir}/qmetro/map/Montreal.pmz
%{_datadir}/qmetro/map/Vancouver.pmz
%{_datadir}/qmetro/map/Edmonton.pmz
%{_datadir}/qmetro/map/Calgary.pmz
%{_datadir}/qmetro/map/Ottawa.pmz

#----------------------------------------------------------------------------

%package Chile
Summary:	Metro Maps (Chile)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Chile
Maps for the qMetro program (Chile).

Cities: Santiago, Valparaíso.

%files Chile
%{_datadir}/qmetro/map/Santiago.pmz
%{_datadir}/qmetro/map/Valparaiso.pmz

#----------------------------------------------------------------------------

%package China
Summary:	Metro Maps (China)
Group:		Sciences/Geosciences
Requires:	qmetro

%description China
Maps for the qMetro program (China).

Cities: Beijing, Hong Kong, Chongqing, Nanjing, Shenzhen, Wuhan,
Tianjin, Guangzhou, Shanghai, Dalian, Shenyang, Kunming, Chengdu,
Hangzhou, Suzhou, Xi'an.

%files China
%{_datadir}/qmetro/map/Beijing.pmz
%{_datadir}/qmetro/map/Hong-Kong.pmz
%{_datadir}/qmetro/map/Chongqing.pmz
%{_datadir}/qmetro/map/Nanjing.pmz
%{_datadir}/qmetro/map/Shenzhen.pmz
%{_datadir}/qmetro/map/Wuhan.pmz
%{_datadir}/qmetro/map/Tianjin.pmz
%{_datadir}/qmetro/map/Guangzhou.pmz
%{_datadir}/qmetro/map/Shanghai.pmz
%{_datadir}/qmetro/map/Dalian.pmz
%{_datadir}/qmetro/map/Shenyang.pmz
%{_datadir}/qmetro/map/Kunming.pmz
%{_datadir}/qmetro/map/Chengdu.pmz
%{_datadir}/qmetro/map/Hangzhou.pmz
%{_datadir}/qmetro/map/Suzhou.pmz
%{_datadir}/qmetro/map/Xi'an.pmz

#----------------------------------------------------------------------------

%package Colombia
Summary:	Metro Maps (Colombia)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Colombia
Maps for the qMetro program (Colombia).

Cities: Medellín.

%files Colombia
%{_datadir}/qmetro/map/Medellin.pmz

#----------------------------------------------------------------------------

%package CzechRepublic
Summary:	Metro Maps (Czech Republic)
Group:		Sciences/Geosciences
Requires:	qmetro

%description CzechRepublic
Maps for the qMetro program (Czech Republic).

Cities: Prague.

%files CzechRepublic
%{_datadir}/qmetro/map/Praha.pmz

#----------------------------------------------------------------------------

%package Denmark
Summary:	Metro Maps (Denmark)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Denmark
Maps for the qMetro program (Denmark).

Cities: Copenhagen.

%files Denmark
%{_datadir}/qmetro/map/Copenhagen.pmz

#----------------------------------------------------------------------------

%package DominicanRepublic
Summary:	Metro Maps (Dominican Republic)
Group:		Sciences/Geosciences
Requires:	qmetro

%description DominicanRepublic
Maps for the qMetro program (Dominican Republic).

Cities: Santo Domingo.

%files DominicanRepublic
%{_datadir}/qmetro/map/Santo-Domingo.pmz

#----------------------------------------------------------------------------

%package Egypt
Summary:	Metro Maps (Egypt)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Egypt
Maps for the qMetro program (Egypt).

Cities: Cairo, Alexandria.

%files Egypt
%{_datadir}/qmetro/map/Cairo.pmz
%{_datadir}/qmetro/map/Alexandria.pmz

#----------------------------------------------------------------------------

%package Finland
Summary:	Metro Maps (Finland)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Finland
Maps for the qMetro program (Finland).

Cities: Helsinki.

%files Finland
%{_datadir}/qmetro/map/Helsinki.pmz

#----------------------------------------------------------------------------

%package France
Summary:	Metro Maps (France)
Group:		Sciences/Geosciences
Requires:	qmetro

%description France
Maps for the qMetro program (France).

Cities: Paris, Marseille, Toulouse, Rouen, Rennes, Lyon, Lille,
Strasbourg.

%files France
%{_datadir}/qmetro/map/Paris.pmz
%{_datadir}/qmetro/map/Marseille.pmz
%{_datadir}/qmetro/map/Toulouse.pmz
%{_datadir}/qmetro/map/Rouen.pmz
%{_datadir}/qmetro/map/Rennes.pmz
%{_datadir}/qmetro/map/Lyon.pmz
%{_datadir}/qmetro/map/Lille.pmz
%{_datadir}/qmetro/map/Strasbourg.pmz

#----------------------------------------------------------------------------

%package Georgia
Summary:	Metro Maps (Georgia)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Georgia
Maps for the qMetro program (Georgia).

Cities: Tbilisi.

%files Georgia
%{_datadir}/qmetro/map/Tbilisi.pmz

#----------------------------------------------------------------------------

%package Germany
Summary:	Metro Maps (Germany)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Germany
Maps for the qMetro program (Germany).

Cities: Berlin, Nuremberg, Wuppertal, Hamburg, Munich, Bielefeld,
Bochum, Frankfurt am Main, Stuttgart, Essen, Düsseldorf, Dortmund,
Hanover, Bonn-Cologne.

%files Germany
%{_datadir}/qmetro/map/Berlin.pmz
%{_datadir}/qmetro/map/Nurnberg.pmz
%{_datadir}/qmetro/map/Wuppertal.pmz
%{_datadir}/qmetro/map/Hamburg.pmz
%{_datadir}/qmetro/map/Munich.pmz
%{_datadir}/qmetro/map/Bielefeld.pmz
%{_datadir}/qmetro/map/Bochum.pmz
%{_datadir}/qmetro/map/Frankfurt.pmz
%{_datadir}/qmetro/map/Stuttgart.pmz
%{_datadir}/qmetro/map/Essen.pmz
%{_datadir}/qmetro/map/Dusseldorf.pmz
%{_datadir}/qmetro/map/Dortmund.pmz
%{_datadir}/qmetro/map/Hannover.pmz
%{_datadir}/qmetro/map/Bonn-Koln.pmz

#----------------------------------------------------------------------------

%package Greece
Summary:	Metro Maps (Greece)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Greece
Maps for the qMetro program (Greece).

Cities: Athens.

%files Greece
%{_datadir}/qmetro/map/Athenas.pmz

#----------------------------------------------------------------------------

%package Hungary
Summary:	Metro Maps (Hungary)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Hungary
Maps for the qMetro program (Hungary).

Cities: Budapest.

%files Hungary
%{_datadir}/qmetro/map/Budapest.pmz

#----------------------------------------------------------------------------

%package India
Summary:	Metro Maps (India)
Group:		Sciences/Geosciences
Requires:	qmetro

%description India
Maps for the qMetro program (India).

Cities: Delhi, Kolkata, Chennai, Mumbai, Bangalore.

%files India
%{_datadir}/qmetro/map/Delhi.pmz
%{_datadir}/qmetro/map/Calcutta.pmz
%{_datadir}/qmetro/map/Chennai.pmz
%{_datadir}/qmetro/map/Mumbai.pmz
%{_datadir}/qmetro/map/Bangalore.pmz

#----------------------------------------------------------------------------

%package Iran
Summary:	Metro Maps (Iran)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Iran
Maps for the qMetro program (Iran).

Cities: Tehran, Mashhad.

%files Iran
%{_datadir}/qmetro/map/Tehran.pmz
%{_datadir}/qmetro/map/Mashhad.pmz

#----------------------------------------------------------------------------

%package Israel
Summary:	Metro Maps (Israel)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Israel
Maps for the qMetro program (Israel).

Cities: Haifa.

%files Israel
%{_datadir}/qmetro/map/Haifa.pmz

#----------------------------------------------------------------------------

%package Italy
Summary:	Metro Maps (Italy)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Italy
Maps for the qMetro program (Italy).

Cities: Rome, Naples, Genoa, Milan, Catania, Turin, Perugia, Brescia.

%files Italy
%{_datadir}/qmetro/map/Roma.pmz
%{_datadir}/qmetro/map/Napoli.pmz
%{_datadir}/qmetro/map/Genova.pmz
%{_datadir}/qmetro/map/Milano.pmz
%{_datadir}/qmetro/map/Catania.pmz
%{_datadir}/qmetro/map/Torino.pmz
%{_datadir}/qmetro/map/Perugia.pmz
%{_datadir}/qmetro/map/Brescia.pmz

#----------------------------------------------------------------------------

%package Japan
Summary:	Metro Maps (Japan)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Japan
Maps for the qMetro program (Japan).

Cities: Tokyo, Yokohama, Kobe, Sapporo, Naha, Hiroshima, Kitakyūshū,
Sendai, Fukuoka, Kyoto, Nagoya, Osaka.

%files Japan
%{_datadir}/qmetro/map/Tokyo.pmz
%{_datadir}/qmetro/map/Yokohama.pmz
%{_datadir}/qmetro/map/Kobe.pmz
%{_datadir}/qmetro/map/Sapporo.pmz
%{_datadir}/qmetro/map/Naha.pmz
%{_datadir}/qmetro/map/Hiroshima.pmz
%{_datadir}/qmetro/map/Kitakyushu.pmz
%{_datadir}/qmetro/map/Sendai.pmz
%{_datadir}/qmetro/map/Fukuoka.pmz
%{_datadir}/qmetro/map/Kyoto.pmz
%{_datadir}/qmetro/map/Nagoya.pmz
%{_datadir}/qmetro/map/Osaka.pmz

#----------------------------------------------------------------------------

%package Kazakhstan
Summary:	Metro Maps (Kazakhstan)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Kazakhstan
Maps for the qMetro program (Kazakhstan).

Cities: Almaty.

%files Kazakhstan
%{_datadir}/qmetro/map/Almati.pmz

#----------------------------------------------------------------------------

%package Malaysia
Summary:	Metro Maps (Malaysia)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Malaysia
Maps for the qMetro program (Malaysia).

Cities: Kuala Lumpur.

%files Malaysia
%{_datadir}/qmetro/map/Kuala-Lumpur.pmz

#----------------------------------------------------------------------------

%package Mexico
Summary:	Metro Maps (Mexico)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Mexico
Maps for the qMetro program (Mexico).

Cities: Mexico City, Monterrey, Guadalajara.

%files Mexico
%{_datadir}/qmetro/map/Mexico.pmz
%{_datadir}/qmetro/map/Monterrey.pmz
%{_datadir}/qmetro/map/Guadalajara.pmz

#----------------------------------------------------------------------------

%package Netherlands
Summary:	Metro Maps (Netherlands)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Netherlands
Maps for the qMetro program (Netherlands).

Cities: Amsterdam, Rotterdam, Utrecht, The Hague.

%files Netherlands
%{_datadir}/qmetro/map/Amsterdam.pmz
%{_datadir}/qmetro/map/Rotterdam.pmz
%{_datadir}/qmetro/map/Utrecht.pmz
%{_datadir}/qmetro/map/Den-Haag.pmz

#----------------------------------------------------------------------------

%package NorthKorea
Summary:	Metro Maps (North Korea)
Group:		Sciences/Geosciences
Requires:	qmetro

%description NorthKorea
Maps for the qMetro program (North Korea).

Cities: Pyongyang.

%files NorthKorea
%{_datadir}/qmetro/map/Pyongyang.pmz

#----------------------------------------------------------------------------

%package Norway
Summary:	Metro Maps (Norway)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Norway
Maps for the qMetro program (Norway).

Cities: Oslo.

%files Norway
%{_datadir}/qmetro/map/Oslo.pmz

#----------------------------------------------------------------------------

%package Peru
Summary:	Metro Maps (Peru)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Peru
Maps for the qMetro program (Peru).

Cities: Lima.

%files Peru
%{_datadir}/qmetro/map/Lima.pmz

#----------------------------------------------------------------------------

%package Philippines
Summary:	Metro Maps (Philippines)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Philippines
Maps for the qMetro program (Philippines).

Cities: Manila.

%files Philippines
%{_datadir}/qmetro/map/Manila.pmz

#----------------------------------------------------------------------------

%package Poland
Summary:	Metro Maps (Poland)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Poland
Maps for the qMetro program (Poland).

Cities: Warsaw, Gdańsk, Poznań.

%files Poland
%{_datadir}/qmetro/map/Warsaw.pmz
%{_datadir}/qmetro/map/Gdansk.pmz
%{_datadir}/qmetro/map/Poznan.pmz

#----------------------------------------------------------------------------

%package Portugal
Summary:	Metro Maps (Portugal)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Portugal
Maps for the qMetro program (Portugal).

Cities: Lisbon, Porto.

%files Portugal
%{_datadir}/qmetro/map/Lisboa.pmz
%{_datadir}/qmetro/map/Porto.pmz

#----------------------------------------------------------------------------

%package PuertoRico
Summary:	Metro Maps (Puerto Rico)
Group:		Sciences/Geosciences
Requires:	qmetro

%description PuertoRico
Maps for the qMetro program (Puerto Rico).

Cities: San Juan.

%files PuertoRico
%{_datadir}/qmetro/map/San-Juan.pmz

#----------------------------------------------------------------------------

%package Romania
Summary:	Metro Maps (Romania)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Romania
Maps for the qMetro program (Romania).

Cities: Bucharest.

%files Romania
%{_datadir}/qmetro/map/Bucarest.pmz

#----------------------------------------------------------------------------

%package Russia
Summary:	Metro Maps (Russia)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Russia
Maps for the qMetro program (Russia).

Cities: Moscow, Saint Petersburg, Novosibirsk, Nizhny Novgorod, Ekaterinburg,
Samara, Kazan, Volgograd.

%files Russia
%{_datadir}/qmetro/map/Moscow.pmz
%{_datadir}/qmetro/map/Peterburg.pmz
%{_datadir}/qmetro/map/Novosibirsk.pmz
%{_datadir}/qmetro/map/NNovgorod.pmz
%{_datadir}/qmetro/map/Ekaterinburg.pmz
%{_datadir}/qmetro/map/Samara.pmz
%{_datadir}/qmetro/map/Kazan.pmz
%{_datadir}/qmetro/map/Volgograd.pmz

#----------------------------------------------------------------------------

%package SaudiArabia
Summary:	Metro Maps (Saudi Arabia)
Group:		Sciences/Geosciences
Requires:	qmetro

%description SaudiArabia
Maps for the qMetro program (Saudi Arabia).

Cities: Mecca.

%files SaudiArabia
%{_datadir}/qmetro/map/Mecca.pmz

#----------------------------------------------------------------------------

%package Singapore
Summary:	Metro Maps (Singapore)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Singapore
Maps for the qMetro program (Singapore).

%files Singapore
%{_datadir}/qmetro/map/Singapore.pmz

#----------------------------------------------------------------------------

%package SouthKorea
Summary:	Metro Maps (South Korea)
Group:		Sciences/Geosciences
Requires:	qmetro

%description SouthKorea
Maps for the qMetro program (South Korea).

Cities: Seoul, Daegu, Busan, Gwangju, Incheon, Daejeon, Uijeongbu.

%files SouthKorea
%{_datadir}/qmetro/map/Seoul.pmz
%{_datadir}/qmetro/map/Daegu.pmz
%{_datadir}/qmetro/map/Busan.pmz
%{_datadir}/qmetro/map/Gwangju.pmz
%{_datadir}/qmetro/map/Incheon.pmz
%{_datadir}/qmetro/map/Daejeon.pmz
%{_datadir}/qmetro/map/Uijeongbu.pmz

#----------------------------------------------------------------------------

%package Spain
Summary:	Metro Maps (Spain)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Spain
Maps for the qMetro program (Spain).

Cities: Madrid, Barcelona, Bilbao, Valencia, Palma, Alicante, Seville.

%files Spain
%{_datadir}/qmetro/map/Madrid.pmz
%{_datadir}/qmetro/map/Barcelona.pmz
%{_datadir}/qmetro/map/Bilbao.pmz
%{_datadir}/qmetro/map/Valencia.pmz
%{_datadir}/qmetro/map/Palma.pmz
%{_datadir}/qmetro/map/Alicante.pmz
%{_datadir}/qmetro/map/Sevilla.pmz

#----------------------------------------------------------------------------

%package Sweden
Summary:	Metro Maps (Sweden)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Sweden
Maps for the qMetro program (Sweden).

Cities: Stockholm.

%files Sweden
%{_datadir}/qmetro/map/Stockholm.pmz

#----------------------------------------------------------------------------

%package Switzerland
Summary:	Metro Maps (Switzerland)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Switzerland
Maps for the qMetro program (Switzerland).

Cities: Lausanne.

%files Switzerland
%{_datadir}/qmetro/map/Lausanne.pmz

#----------------------------------------------------------------------------

%package Taiwan
Summary:	Metro Maps (Taiwan)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Taiwan
Maps for the qMetro program (Taiwan).

Cities: Taipei, Kaohsiung.

%files Taiwan
%{_datadir}/qmetro/map/Taipei.pmz
%{_datadir}/qmetro/map/Kaohsiung.pmz

#----------------------------------------------------------------------------

%package Thailand
Summary:	Metro Maps (Thailand)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Thailand
Maps for the qMetro program (Thailand).

Cities: Bangkok.

%files Thailand
%{_datadir}/qmetro/map/Bangkok.pmz

#----------------------------------------------------------------------------

%package Tunisia
Summary:	Metro Maps (Tunisia)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Tunisia
Maps for the qMetro program (Tunisia).

Cities: Tunis.

%files Tunisia
%{_datadir}/qmetro/map/Tunis.pmz

#----------------------------------------------------------------------------

%package Turkey
Summary:	Metro Maps (Turkey)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Turkey
Maps for the qMetro program (Turkey).

Cities: Istanbul, Ankara, Izmir, Bursa, Adana.

%files Turkey
%{_datadir}/qmetro/map/Istanbul.pmz
%{_datadir}/qmetro/map/Ankara.pmz
%{_datadir}/qmetro/map/Izmir.pmz
%{_datadir}/qmetro/map/Bursa.pmz
%{_datadir}/qmetro/map/Adana.pmz

#----------------------------------------------------------------------------

%package UAE
Summary:	Metro Maps (United Arab Emirates)
Group:		Sciences/Geosciences
Requires:	qmetro

%description UAE
Maps for the qMetro program (United Arab Emirates).

Cities: Dubai.

%files UAE
%{_datadir}/qmetro/map/Dubai.pmz

#----------------------------------------------------------------------------

%package Ukraine
Summary:	Metro Maps (Ukraine)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Ukraine
Maps for the qMetro program (Ukraine).

Cities: Kiev, Kharkiv, Dnipropetrovsk, Kryvyi Rih.

%files Ukraine
%{_datadir}/qmetro/map/Kiev.pmz
%{_datadir}/qmetro/map/Kharkov.pmz
%{_datadir}/qmetro/map/Dnepropetrovsk.pmz
%{_datadir}/qmetro/map/KrivoyRog.pmz

#----------------------------------------------------------------------------

%package UnitedKingdom
Summary:	Metro Maps (United Kingdom)
Group:		Sciences/Geosciences
Requires:	qmetro

%description UnitedKingdom
Maps for the qMetro program (United Kingdom).

Cities: London, Glasgow, Newcastle, Birmingham, Liverpool, Manchester.

%files UnitedKingdom
%{_datadir}/qmetro/map/London.pmz
%{_datadir}/qmetro/map/Glasgow.pmz
%{_datadir}/qmetro/map/Newcastle.pmz
%{_datadir}/qmetro/map/Birmingham.pmz
%{_datadir}/qmetro/map/Liverpool.pmz
%{_datadir}/qmetro/map/Manchester.pmz

#----------------------------------------------------------------------------

%package USA
Summary:	Metro Maps (USA)
Group:		Sciences/Geosciences
Requires:	qmetro

%description USA
Maps for the qMetro program (USA).

Cities: Washington, New York, Chicago, Atlanta, Miami, Baltimore,
Detroit, San Francisco, Cleveland, Buffalo, Jacksonville, Las Vegas,
Salt Lake City, St. Louis, Minneapolis, Philadelphia, Los Angeles,
Houston, Newark, Boston, Dallas, Denver, San Diego, Sacramento,
San Jose, Portland, Pittsburgh, Jersey City.

%files USA
%{_datadir}/qmetro/map/Washington.pmz
%{_datadir}/qmetro/map/New-York.pmz
%{_datadir}/qmetro/map/Chicago.pmz
%{_datadir}/qmetro/map/Atlanta.pmz
%{_datadir}/qmetro/map/Miami.pmz
%{_datadir}/qmetro/map/Baltimore.pmz
%{_datadir}/qmetro/map/Detroit.pmz
%{_datadir}/qmetro/map/San-Francisco.pmz
%{_datadir}/qmetro/map/Cleveland.pmz
%{_datadir}/qmetro/map/Buffalo.pmz
%{_datadir}/qmetro/map/Jacksonville.pmz
%{_datadir}/qmetro/map/Las-Vegas.pmz
%{_datadir}/qmetro/map/Salt-Lake-City.pmz
%{_datadir}/qmetro/map/Saint-Louis.pmz
%{_datadir}/qmetro/map/Minneapolis.pmz
%{_datadir}/qmetro/map/Philadelphia.pmz
%{_datadir}/qmetro/map/Los-Angeles.pmz
%{_datadir}/qmetro/map/Houston.pmz
%{_datadir}/qmetro/map/Newark.pmz
%{_datadir}/qmetro/map/Boston.pmz
%{_datadir}/qmetro/map/Dallas.pmz
%{_datadir}/qmetro/map/Denver.pmz
%{_datadir}/qmetro/map/San-Diego.pmz
%{_datadir}/qmetro/map/Sacramento.pmz
%{_datadir}/qmetro/map/San-Jose.pmz
%{_datadir}/qmetro/map/Portland.pmz
%{_datadir}/qmetro/map/Pittsburgh.pmz
%{_datadir}/qmetro/map/Charlotte.pmz
%{_datadir}/qmetro/map/Jersey-City.pmz

#----------------------------------------------------------------------------

%package Uzbekistan
Summary:	Metro Maps (Uzbekistan)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Uzbekistan
Maps for the qMetro program (Uzbekistan).

Cities: Tashkent.

%files Uzbekistan
%{_datadir}/qmetro/map/Tashkent.pmz

#----------------------------------------------------------------------------

%package Venezuela
Summary:	Metro Maps (Venezuela)
Group:		Sciences/Geosciences
Requires:	qmetro

%description Venezuela
Maps for the qMetro program (Venezuela).

Cities: Caracas, Valencia.

%files Venezuela
%{_datadir}/qmetro/map/Caracas.pmz
%{_datadir}/qmetro/map/ValenciaV.pmz

#----------------------------------------------------------------------------

%prep
%setup -n %{name}
for N in *.zip
do
unzip $N "*.pmz"
done

%build

%install
install -dm 0755 %{buildroot}%{_datadir}/qmetro/map
install -pm 0644 *.pmz %{buildroot}%{_datadir}/qmetro/map

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7761 |21cr|qmidiarp-0.6.6-0.20220205.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	git		1
%define	gitdate	20220205

Summary:	Arpgeggiator, sequencer and LFO for JACK and ALSA
Name:		qmidiarp
%if %{git}
Version:	0.6.6
Release:	0.%{gitdate}.1
%else
Version:	0.6.5
Release:	2
%endif
License:	GPLv2+
Group:		Sound
Url:		http://qmidiarp.sourceforge.net/
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
%else
Source0:	https://download.sf.net/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
%endif
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo) >= 0.26
BuildRequires:	pkgconfig(lv2) >= 1.10
BuildRequires:	pkgconfig(Qt5Core) >= 5.1
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Recommends:	%{name}-plugins-lv2

%description
Advanced arpeggiator, step sequencer and MIDI LFO for JACK and ALSA.

%files -f %{name}.lang
%doc README NEWS COPYING AUTHORS
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml 
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%docdir %{_mandir}/man1/*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package plugins-lv2
Summary:	LV2 Plugins of the qmidiarp MIDI with Qt GUI
Group:		Sound
Requires:	lv2

%description plugins-lv2
 QMidiArp is an advanced arpeggiator, step sequencer and MIDI LFO for JACK
 and ALSA. This package contains the LV2 plugins of the three modules with
Qt GUIs.

%files plugins-lv2
%doc COPYING
%dir %{_libdir}/lv2
%{_libdir}/lv2/*

#----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{name}-%{gitdate}
%else
%setup -q
%endif


%build
#global optflags %%{optflags} -std=gnu++11
autoreconf -vfi
%configure \
	--enable-translations

%make


%install
%makeinstall_std

desktop-file-edit \
	--add-category="X-MandrivaLinux-Multimedia-Sound;" \
	--set-generic-name="Midi arpeggiator" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7762 |21cr|qmidiroute-0.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MIDI router and filter utility
Name:		qmidiroute
Version:	0.4.0
Release:	6
License:	GPLv2+
Group:		Sound
Url:		http://alsamodular.sourceforge.net/
Source0:	http://dl.sf.net/alsamodular/%{name}-%{version}.tar.bz2
# Fix provided .desktop file and use it, in place of our one
Patch0:		%{name}-0.4.0-fix-desktop-file.patch
Patch1:		%{name}-0.4.0-fix-crash-on-NULL-event.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
MIDI router and filter utility for the ALSA sequencer.

%files
%doc README NEWS COPYING AUTHORS 
%docdir %{_mandir}/man1/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}_48.xpm
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/*
%{_mandir}/de/man1/*
%{_mandir}/fr/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

iconv -f=latin1 -t=utf8 man/de/%{name}.1 -o man/de/%{name}.1
iconv -f=latin1 -t=utf8 man/fr/%{name}.1 -o man/fr/%{name}.1


%build
%global optflags %{optflags} -std=gnu++11
autoreconf -vfi
%configure --enable-qt5
%make


%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 0644 src/pixmaps/%{name}_48.xpm %{buildroot}%{_datadir}/pixmaps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7763 |21cr|qml-box2d-0.1-1.git20180406.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package          %{nil}

%define commit b7212d5640701f93f0cd88fbd3a32c619030ae62

Name:           qml-box2d
Version:        0.1
Release:        1.git20180406.2
Summary:        QML Box2D plugin
License:        zlib
Group:          Development/KDE and Qt
Url:            https://github.com/%{name}/%{name}
Source:         https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz

# Current version incompatible with box2d 2.4+.
#BuildRequires:  pkgconfig(box2d)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  qt5-tools

Provides:       bundled(box2d) == 2.3.1

%description
This plugin is meant to be installed to your Qt/imports directory, or shipped
in a directory of which the parent is added as import path.

The goal is to expose the functionality of Box2D as QML components, in order
to make it easy to write physics based games in QML.


%files
%license COPYING
%doc README.md
%{_qt5_libdir}/qt5/qml/Box2D.2.0/

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

#rm -rf Box2D

%build
%qmake_qt5 \
  #DEFINES+=BOX2D_SYSTEM

%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}

rm -rf %{buildroot}%{_libdir}/qt5/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7764 |21cr|qmlkonsole-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Terminal application for Plasma Mobile
Name:		qmlkonsole
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	qmlkonsole-22.11_ru.tar.gz
Patch0:	    qmlkonsole_locale_string.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kirigami-addons-devel
Requires:	qmltermwidget

%description
Terminal application for Plasma Mobile.

%files -f qmlkonsole.lang
%{_kde5_bindir}/qmlkonsole
%{_kde5_applicationsdir}/org.kde.qmlkonsole.desktop
%{_kde5_datadir}/config.kcfg/terminalsettings.kcfg
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.qmlkonsole.svg
%{_appdatadir}/org.kde.qmlkonsole.appdata.xml

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7765 |21cr|qml-material-0.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Material Design implemented in QtQuick
Name:		qml-material
Version:	0.2.0
Release:	4
License:	GPLv2
Group:		Graphical desktop/KDE 
URL:		https://github.com/papyros/qml-material
Source0:	https://github.com/papyros/qml-material/archive/v%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/papyros/docmaker/master/docmaker.py
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5Qml)

%description
This is a library of QML widgets implementing
Google's Material Design.

%files
%doc COPYING *.md 
%dir %{_qt5_libdir}/qt5/qml/Material
%dir %{_qt5_libdir}/qt5/qml/QtQuick/Controls/Styles/Material
%{_qt5_libdir}/qt5/qml/Material/*
%{_qt5_libdir}/qt5/qml/QtQuick/Controls/Styles/Material/*.qml
%{_qt5_libdir}/qt5/qml/QtQuick/Controls/Styles/Material/qmldir
#------------------------------------------------------------
%prep
%setup -q
# make rpmlint happy
chmod -x tests/tests.cpp
find . -type f -name '*.svg' -exec chmod -x {} \;

%build
%qmake_qt5
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}
rm -rd %{buildroot}%{_qt5_libdir}/qt5/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7766 |21cr|qmplay2-24.06.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%global optflags %{optflags} -ldl

%define major 1
%define libname %mklibname %{name}_ %{major}
%define devqmplay2 %mklibname %{name} -d

%define oname QMPlay2

Summary:    Video player
Name:       qmplay2
Version:	24.06.16
Release:	1
License:    LGPLv3+
Group:      Video
Url:        http://zaps166.sourceforge.net/?app=QMPlay2
Source0:    https://github.com/zaps166/QMPlay2/releases/download/%{version}/%{oname}-src-%{version}.tar.xz
Source1:    QMPlay2-src-24.06.16_ru.tar.gz
BuildRequires:  appstream-util
BuildRequires:  cmake
BuildRequires:  desktop-file-utils
BuildRequires:  gcc-c++
BuildRequires:  imagemagick
BuildRequires:  kde5-macros
BuildRequires:  ninja
BuildRequires:  ffmpeg-devel
BuildRequires:  qt5-devel
BuildRequires:  qt5-tools
BuildRequires:  qt5-linguist-tools
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(libass)
BuildRequires:  pkgconfig(libcddb)
BuildRequires:  pkgconfig(libcdio)
BuildRequires:  pkgconfig(libgme)
BuildRequires:  pkgconfig(libmodplug)
BuildRequires:  pkgconfig(libpipewire-0.3)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libsidplayfp)
BuildRequires:  pkgconfig(libva)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(portaudio-2.0)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5OpenGL)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:  pkgconfig(rubberband)
BuildRequires:  pkgconfig(taglib)
BuildRequires:  pkgconfig(vdpau)
BuildRequires:  pkgconfig(vulkan)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xv)
Requires:       %{libname} = %{EVRD}
# See changelog Changes in QMPlay2 21.12.07 and later:
Requires:      yt-dlp
# For solid desktop integration
Recommends:      plasma5-workspace

%description
QMPlay2 is a video player, it can plays all formats and stream supported by
ffmpeg and libmodplug (including J2B). It has integrated Youtube and Wrzuta
browser.

%files -f %{name}.lang
%doc AUTHORS ChangeLog LICENSE README.md
%{_bindir}/%{oname}
%{_iconsdir}/hicolor/*/apps/%{oname}.*
%{_kde5_datadir}/solid/actions/%{oname}-opencda.desktop
%{_datadir}/applications/%{oname}*.desktop
%{_datadir}/mime/packages/*.xml
%{_mandir}/man1/%{oname}.1.*
%{_appdatadir}/%{oname}.appdata.xml

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:    Shared library of %{name}
Group:      System/Libraries

%description -n %{libname}
qmplay2 dynamic libraries.

%files -n %{libname}
%doc AUTHORS ChangeLog LICENSE README.md
%{_libdir}/libqmplay2.so
%{_libdir}/qmplay2/modules/*.so

#-----------------------------------------------------------------------------

%package -n %{devqmplay2}
Summary:    Development files for %{name}
Group:      Development/KDE and Qt
Requires:  %{name} = %{EVRD}

%description -n %{devqmplay2}
Development files for %{name}

%files -n %{devqmplay2}
%doc AUTHORS ChangeLog LICENSE README.md
%dir %{_includedir}/%{oname}/
%{_includedir}/%{oname}/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-src-%{version}

pushd lang
tar -xvzf %{SOURCE1}
popd
perl -pi -e 's|"/"|"/" |' src/modules/Inputs/Inputs.cpp

%cmake  \
        -G Ninja \
        -DCMAKE_BUILD_TYPE=Release \
        -DUSE_PULSEAUDIO=ON \
        -DBUILD_WITH_QT6=OFF \
        -DUSE_LINK_TIME_OPTIMIZATION=ON \
        -DUSE_VULKAN=ON \
        -DUSE_UPDATES=OFF \
        -DSOLID_ACTIONS_INSTALL_PATH="%{_kde5_datadir}/solid/actions"


%build
%ninja_build -C build


%install
%ninja_install -C build

find %{buildroot}%{_datadir}/%{name}/lang -name "*.qm" | sed 's:'%{buildroot}'::
s:.*/\([a-zA-Z]\{2\}\).qm:%lang(\1) \0:' > %{name}.lang

# Drop useless stuff
cd %{buildroot}%{_datadir}/qmplay2
rm -fr %{buildroot}%{_datadir}/qmplay2/AUTHORS ChangeLog LICENSE README.md

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat %{oname}.svgz > %{oname}.svg && rm -f %{oname}.svgz
)


%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7767 |21cr|qnetstatview-1.5.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		qnetstatview
Version:	1.5.8
Release:	2
Summary:	Shows detailed listings of all TCP and UDP endpoints
Group:		Networking/Other
License:	GPLv3+
URL:		http://dansoft.krasnokamensk.ru/more.html?id=1016
Source0:	%{name}-%{version}.tar.gz

BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Network)

%description
Shows detailed listings of all TCP and UDP endpoints.

%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/org.pkexec.qnetstatview.policy 
%{_iconsdir}/hicolor/*/apps/%{name}.png

#---------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7768 |21cr|qnetwalk-1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Game for System Administrators
Name:		qnetwalk
Version:	1.4
Release:	4
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://qt.osdn.org.ua/qnetwalk.html
Source0:	http://qt.osdn.org.ua/%{name}-%{version}.tar.gz
Patch0:		qnetwalk-1.3-datapath.patch
Patch1:		qnetwalk-1.4-makefile.patch
Patch2:		qnetwalk-1.3-sfmt.patch
Patch3:		qnetwalk-1.3-desktop.patch
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)

%description
This is a Qt-version of the popular NetWalk game for system administrators.
You have to connect all computers to the central server with as few clicks
as possible.

%files
%doc COPYING ChangeLog README
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.6.*
%{_datadir}/pixmaps/%{name}.xpm
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%qmake_qt4
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7769 |21cr|qomp-1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1.5.0
%define libname		%mklibname %{name} %{major}

Summary:	Quick(Qt) Online Music Player
Name:		qomp
Version:	1.5
Release:	2
License:	GPLv2+
Group:		Sound
Url:		http://qomp.sourceforge.net/
#
# https://sourceforge.net/projects/qomp/files/1.3.1/qomp_1.3.1_src.tar.gz/download
# sourceforge does not offer a direct link to the file
# 
Source0:	qomp_1.5_src.tar.gz
BuildRequires:	cmake >= 3.1.0
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(libcue)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9.3
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-plugins = %{EVRD}
Requires:	gstreamer1.0-plugins-good
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-ugly

%description
Quick (Qt) Online Music Player: only one player for different online music
hostings. Main features:
* search and play music from several online music hostings:
	(Yandex.Music, myzuka.ru, pleer.com);
* play music from local filesystem;
* Last.fm scrobbling;
* MPRIS support(Linux only);
* system tray integration;
* proxy-server support;
* playlists support;
* crossplatform (Windows, OS X, Linux, Android).

%files -f %{name}.lang
%doc CHANGELOG.md LICENSE.txt README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/themes/themes.rcc
%{_iconsdir}/hicolor/*/apps/%{name}.png

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
# do not delete the obsoletes
Obsoletes:	%{libname} < %{EVRD}

%description -n %{libname}
Quick (Qt5) Online Music Player:
one player for different online music hostings.
This package contains the main library for %{name}.

%files -n %{libname}
%doc CHANGELOG.md LICENSE.txt README
%{_libdir}/libqomp.so.%{major}

#----------------------------------------------------------------------------

%package plugins
Summary:	Plugins for %{name}	
Group:		Sound

%description plugins
Quick (Qt5) Online Music Player:
one player for different online music hostings.
This package contains the plugins for %{name}.

%files plugins
%doc CHANGELOG.md LICENSE.txt README
%{_libdir}/%{name}/plugins/*.so

#----------------------------------------------------------------------------

%prep
%setup -q 


%build
%{_qt5_bindir}/lupdate %{name}.pro
%cmake \
    -DCMAKE_INSTALL_PREFIX=/usr/ \
    -DUSE_QT5=ON \
    -DCMAKE_BUILD_TYPE=Release
%make


%install
%makeinstall_std -C build

desktop-file-edit \
	--remove-key=Encoding \
	--set-key=Comment --set-value="Quick Qt5 Online Music Player" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%{find_lang} %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7770 |21cr|qorganizer-3.1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		src qOrganizer
Name:		qorganizer
Version:	3.1.5
Release:	3
Summary:	Personal organizer
License: 	GPLv2
Group: 		Office
Url:		https://sourceforge.net/projects/qorganizer
Source0:	http://kent.dl.sourceforge.net/sourceforge/qorganizer/%{src}-%{version}.tar.gz
Source1:	%{name}.desktop

BuildRequires:	imagemagick
BuildRequires:	qt4-devel

%description
qOrganizer is a general organizer that includes calendar with
jurnal and schedule for every day in which you can choose to
be reminded of events, a general to-do list for your tasks and
also includes features useful for students like timetable and
a booklet with marks and absences.

%prep
%setup -qn %{src}

%build
pushd src
%qmake_qt4
#export PATH=$PATH:%_qt4dir/bin
#qmake "QMAKE_CFLAGS+=%{optflags}" "QMAKE_CXXFLAGS+=%{optflags}" %src.pro
%make

%install
pushd src
install -Dp -m 0755 %{src} %{buildroot}%{_bindir}/%{name}
install -Dp -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -resize 16x16 images/logo.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -resize 32x32 images/logo.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -resize 48x48 images/logo.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files
%doc CHANGELOG.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7771 |21cr|qpass-1.3.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		qpass
Summary:	Qt4-based password manager
Version:	1.3.2
Release:	3
License:	GPLv2+
Group:		Databases
URL:		http://qpass.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/qpass/source/%{name}-%{version}.tar.bz2
Source1:    qpass_ru.tar.gz
Patch0:     qpass-1.3.2-build_locale_ru.patch
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	libgcrypt-devel

%description
QPass is easy to use, open source password manager application with built-in
password generator. You can store in it's database such data as passwords
and logins which will be encrypted using AES-256 algorithm. Each entry can
include additional information about entry such as name, url adress
and description.

%prep
%setup -q
%patch0 -p1

pushd translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake
%make

%install
%makeinstall_std -C build
%__rm -f %{buildroot}/%{_datadir}/%{name}/{COPYING,README}
%__mkdir_p  %{buildroot}/%{_docdir}
%if %{mdvver} >= 201200
%find_lang %{name} --with-qt --all-name
%else
touch %{name}.lang
%endif

%files -f %{name}.lang
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations
%{_datadir}/%{name}/translations/ru.qm
%{_bindir}/qpass
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/qpass.png
%{_datadir}/pixmaps/qpass.png
%doc ChangeLog README
%if %mdvver < 201200
%{_datadir}/%{name}/translations/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7772 |21cr|qpdfview-0.4.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Light-weight tabbed PDF, DJVU and PostScript viewer
Name:		qpdfview
Version:	0.4.18
Release:	3
License:	GPLv2+
Group:		Office
Url:		https://launchpad.net/qpdfview
Source0:	https://launchpad.net/qpdfview/trunk/%{version}/+download/%{name}-%{version}.tar.gz
# From Fedora
Patch0:		qpdfview_model.patch
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	cups-devel
BuildRequires:	magic-devel
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(zlib)
Requires:		qt5-database-plugin-sqlite

%description
qpdfview is a light-weight tabbed PDF, DJVU and PostScript viewer.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_libdir}/%{name}/libqpdfview_djvu.so
%{_libdir}/%{name}/libqpdfview_image.so
%{_libdir}/%{name}/libqpdfview_pdf.so
%{_libdir}/%{name}/libqpdfview_ps.so
%{_mandir}/man1/%{name}.1*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/%{name}.svg
%{_datadir}/%{name}/help*.html
%{_datadir}/%{name}/qpdfview_ast.qm
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/appdata/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
lrelease-qt5 %{name}.pro
%qmake_qt5 \
	QMAKE_STRIP="" \
	PLUGIN_INSTALL_PATH="%{_libdir}/%{name}" \
	DATA_INSTALLPATH="%{_datadir}/%{name}" \
	%{name}.pro
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}
install -Dm 0644 icons/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
install -Dm 0644 icons/%{name}.svg %{buildroot}%{_datadir}/%{name}/%{name}.svg

# install menu icons
for N in 16 32 48 64 128;
do
convert icons/%{name}.svg -resize ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done
install -D -m 0644 icons/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7773 |21cr|qprint-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Encode and decode quoted printable data
Name:           qprint
Version:        1.0
Release:        12
License:        Public Domain
Group:		Networking/Mail
URL:		http://www.fourmilab.ch/webtools/qprint/
Source:         %{name}-%{version}.tar.bz2

%description
qprint is a command line utility which encodes and decodes
files in this format. It can be used within a pipeline as
an encoding or decoding filter, and is most commonly used
in this manner as part of an automated mail processing
system. With appropriate options, qprint can encode pure
binary files, but it's a poor choice since it may inflate
the size of the file by as much as a factor of three. The
base64 MIME encoding is a better choice for such data. 

%prep

%setup -q

%build

%configure

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -m755 qprint %{buildroot}%{_bindir}/
install -m755 qprint.1 %{buildroot}%{_mandir}/man1/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README index.html logo.gif qprint.pdf rfc1521.*
%{_bindir}/qprint
%{_mandir}/man1/qprint.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7774 |21cr|qps-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Visual process manager
Name:		qps
Version:	2.0.0
Release:	1
License:	GPL
Group:		Monitoring
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/qps/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	qps2.0.0_ru.tar.gz
Patch0:		qps-2.0.0-tr.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrender)

%description
Qps is a visual process manager, an X11 version of "top" or "ps" that 
displays processes in a window and lets you sort and manipulate them. 

Qps can: 
  o  Change nice value of a process.
  o  Alter the scheduling policy and soft realtime priority of a process.
  o  Display the TCP/UDP sockets used by a process, and names of the 
      connected hosts (Linux only).
  o  Display the memory mappings of the process (which files and shared 
  o  libraries are loaded   where).
  o  Display the open files of a process, and the state of unix domain sockets.
  o  Kill or send any other signal to selected processes.
  o  Display the load average as a graph, and use this as its icon when 
      iconified.
  o  Show (as graph or numbers) current CPU, memory and swap usage.
  o  Sort the process table on any attribute (size, cpu usage, owner etc).
  o  On SMP systems running Linux 2.1 or later (or Solaris), display cpu usage 
      for each processor, and which CPU a process is running on.
  o  Display the environment variables of any process. 
  o  Show the process table in tree form, showing the parent-child 
      relationship. 
  o  Execute user-defined commands on selected processes. 
  o  Display MOSIX-specific fields and migrate processes to other nodes
      in a cluster. 

  Qps runs on Linux and Solaris.

%files
%doc CHANGELOG COPYING README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/48x48/apps/qps.png
%{_mandir}/man1/qps.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

pushd src/translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7775 |21cr|qpwgraph-0.7.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global provider org.rncbc.qpwgraph

Summary:	PipeWire Graph Qt GUI Interface
Name:		qpwgraph
Version:	0.7.9
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://gitlab.freedesktop.org/rncbc/qpwgraph
Source0:	https://gitlab.freedesktop.org/rncbc/qpwgraph/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	appstream-util
BuildRequires:	qmake-qt6
BuildRequires:	qt6-cmake
BuildRequires:	qt6-linguist-tools
BuildRequires:	qt6-qttools
BuildRequires:	vulkan-headers
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xkbcommon)
Requires:	pipewire
Requires:	shared-mime-info

%description
qpwgraph is a graph manager dedicated to PipeWire, using the Qt C++ framework,
based and pretty much like the same of QjackCtl.

%files
%license LICENSE.md
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{provider}.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/packages/%{provider}.xml
%{_mandir}/man1/qpwgraph.1.*
%{_metainfodir}/%{provider}.metainfo.xml

#----------------------------------------------------------------------------

%prep
%autosetup -n %{name}-v%{version} -p1

%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DCONFIG_ALSA_MIDI=ON \
	-DCONFIG_WAYLAND=ON
%make

%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7776 |21cr|qremotecontrol-2.4.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Remote control your desktop from your mobile
Name:		qremotecontrol
Version:	2.4.1
Release:	3
License:	GPLv3+
Group:		Networking/Other
Url:		http://qremote.org
Source0:	http://downloads.sourceforge.net/project/qrc/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	pkgconfig(QtNetwork)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)

%description
With QRemoteControl installed on your desktop you can easily control your
computer via WiFi from your mobile. By using the touch pad of your Phone
you can for example open the internet browser and navigate to the pages you
want to visit, use the music player or your media center without being next
to your PC or laptop. Summarizing QRemoteControl allows you to do almost
everything you would be able to do with a mouse and a keyboard, but from
a greater distance. To make these replacements possible QRemoteControl
offers you a touch pad, a keyboard, multimedia keys and buttons for starting
applications. Even powering on the computer via Wake On Lan is supported.

%files
%doc README
%{_bindir}/qremotecontrol-server
%{_datadir}/pixmaps/*.png
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt4
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7777 |21cr|qrq-0.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
Name:           qrq
Version:	0.3.3
Release:	2
Summary:        Morse telegraphy trainer
Group:          Education
License:        GPLv2+
URL:            http://fkurz.net/ham/qrq.html
Source0:        http://fkurz.net/ham/qrq/%{name}-%{version}.tar.gz
Patch0:         qrq-0.2.1-makefile.patch

BuildRequires:  ncurses-devel
BuildRequires:  pulseaudio-devel

%description
qrq is an open source morse telegraphy trainer for Linux and Unix operating
systems, similar to the classic DOS version of Rufz by DL4MM.

It's not intended for learning telegraphy, but to improve the ability to
copy callsigns at high speeds, as needed for example for Contesting. 

%prep
%setup -q
%patch0 -p1

%build
export LDFLAGS="-lpthread"
%make

%install
make install DESTDIR=%{buildroot}%{_prefix} OSX_BUNDLE=NO

%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README
%{_bindir}/qrq
%{_bindir}/qrqscore
%{_mandir}/man?/*
%{_datadir}/qrq

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7778 |21cr|qrupdate-1.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# fortran build
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define major	1

%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d -s

Summary:	Fortran library for fast updates of QR/Cholesky decompositions
Name:		qrupdate
Version:	1.1.2
Release:	6
License:	GPLv3+
Group:		Development/Other
Url:		http://qrupdate.sourceforge.net/
Source0:	%{name}-%{version}.tar.gz
Source100:	qrupdate.rpmlintrc
Patch0:		qrupdate-1.1.1-Makefiles.patch
Patch1:		qrupdate-enable_debugging.patch
BuildRequires:	gcc-gfortran
BuildRequires:	blas-devel
BuildRequires:	lapack-devel

%description
qrupdate is a Fortran library for fast updates of QR and Cholesky
decompositions.

%package -n %{libname}
Summary:	qrupdate shared libraries
Group:		System/Libraries

%description -n %{libname}
qrupdate is a Fortran library for fast updates of QR and Cholesky
decompositions.

This package contains the shared library required for running programs
built against %{name}.

%package -n %{develname}
Summary:	qrupdate development files
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
qrupdate is a Fortran library for fast updates of QR and Cholesky
decompositions.

This package contains the files required for building programs
that use %{name}.

%prep
%setup -q
%apply_patches

sed -i Makeconf \
	-e "s:LIBDIR=lib:LIBDIR=%{_libdir}:" \
	-e "/^LIBDIR=/a\PREFIX=/" \
	-e "s:LAPACK=.*:LAPACK=$(pkg-config --libs lapack):" \
	-e "s:BLAS=.*:BLAS=$(pkg-config --libs blas):"


%build
#% make lib solib
%make

%install

#% ifarch x86_64
#% __sed -i 's,\/lib\/,\/lib64\/,g' src/Makefile
#% endif
#%make PREFIX=%{buildroot}/usr install
%makeinstall_std

%files -n %{libname}
%_libdir/*.so.*

%files -n %{develname}
%doc README ChangeLog COPYING
%{_libdir}/*.so
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7779 |21cr|qsampler-0.9.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LinuxSampler GUI front-end application
Name:		qsampler
Version:	0.9.6
Release:	2
Group:		Sound
License:	GPLv2+
Url:		https://qsampler.sourceforge.io/
Source0:	https://downloads.sourceforge.net/qsampler/%{name}-%{version}.tar.gz
Patch0:		qsampler-0.9.5-fix-version.patch
BuildRequires:	cmake >= 3.13
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(gig) >= 4.1.0
BuildRequires:	pkgconfig(lscp)
BuildRequires:	pkgconfig(Qt5Core) >= 5.1
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	linuxsampler

%description
QSampler is a LinuxSampler GUI front-end application written in C++ around the
Qt5 toolkit using Qt Designer. At the moment it just wraps as a client
reference interface for the LinuxSampler Control Protocol (LSCP).

%files
%doc ChangeLog LICENSE README
%{_bindir}/%{name}
%{_datadir}/applications/org.rncbc.%{name}.desktop
%{_datadir}/metainfo/org.rncbc.%{name}.metainfo.xml
%{_datadir}/mime/packages/org.rncbc.%{name}.xml
%{_datadir}/%{name}/translations/*.qm
%{_iconsdir}/hicolor/*/apps/org.rncbc.%{name}.*
%{_iconsdir}/hicolor/*/mimetypes/org.rncbc.%{name}.application-x-%{name}-session.*
%{_mandir}/man1/%{name}.1*
%{_mandir}/fr/man1/qsampler.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%cmake .. -DCONFIG_QT6=NO
%make


%install
%makeinstall_std -C build

# Fix the .desktop file
desktop-file-edit \
	--remove-key="Version" \
	--remove-key="X-SuSE-translate" \
	%{buildroot}%{_datadir}/applications/org.rncbc.%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7780 |21cr|qscreenshot-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           qscreenshot
Version:        1.0
Release:        5
Summary:        Qt screenshot tool
License:        GPLv2
Group:          Graphics
Url:            http://qt-apps.org/content/show.php/qScreenshot?content=164139
Source0:        http://netcologne.dl.sourceforge.net/project/%{name}/%{name}-%{version}-src.tar.gz
BuildRequires:  pkgconfig(QtCore)
BuildRequires:  dos2unix
Requires:       qt4-common

%description
A fast and lightweight application used for capturing screenshots,
then editing and uploading them to various online image hosting services

qScreenshot is an intuitive tool that allows you to capture your desktop
or only parts of it, then edit the screenshots.

In addition, you can rely on this software to upload your screenshots
to specified hosting servers to share them with greater ease.
Here are some key features of \"qScreenshot\":
Capture the entire desktop, the specified area or the active window
Edit screenshots with the built simple graphic editor
Open an existing image from your local disk
Management via an icon in the system tray system

%prep
%setup -q -n %{name}
find . -name *h -exec dos2unix {} \;
find . -name *h -exec chmod -x {} \;
find . -name *cpp -exec dos2unix {} \;
find . -name *cpp -exec chmod -x {} \;

%build
sed -i 's/lrelease-qt4/lrelease/' src/src.pro
sed -i '/^Encoding=UTF-8/d' %{name}.desktop
%qmake_qt4
%make

%install
%makeinstall INSTALL_ROOT=%{buildroot}

# Add translation lang tags
(cd %{buildroot} && find . -name '*.qm') | %__sed -e 's|^.||' | sed -e \
    's:\(.*/translations/qscreenshot_\)\([a-z_A-Z]\+\)\(.*qm$\):%lang(\2) \1\2\3:'\
        >> %{name}.lang

%files -f %{name}.lang
%dir %{_datadir}/%{name}/*
%dir %{_datadir}/%{name}
%{_bindir}/qScreenshot
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/applications/qscreenshot.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7781 |21cr|qsf-1.2.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Quick spam filter
Name:		qsf
Version:	1.2.15
Release:	1
License:	Artistic
Group:		Networking/Mail
Source0:	http://prdownloads.sourceforge.net/qsf/qsf-%{version}.tar.bz2
URL:		http://www.ivarch.com/programs/qsf.shtml
BuildRequires:	libgdbm-devel
BuildRequires:	mysql-devel
BuildRequires:	sqlite-devel
Buildroot:	%{_tmppath}/%{name}-%{version}-root

%description
Quick Spam Filter is a small, fast spam filter that works by learning to
recognise the words that are more likely to appear in spam than non-spam. It is
intended to be used in a procmail recipe to mark email as being possible spam.

%prep
%setup -q

# this file gets eaten
cp doc/quickref.txt doc/quickref.txt.bak

%build
%configure \
    --with-gdbm
%make

%install
%makeinstall_std
cp doc/quickref.txt.bak doc/quickref.txt

%files
%defattr(-,root,root)
%doc README doc/NEWS doc/quickref.txt doc/TODO
%attr(0755,root,root) %{_bindir}/*
%attr(0644,root,root) %{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7782 |21cr|qshare-2.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           qshare
Version:        2.1.2
Release:        4
License:        GPLv3
Url:		http://www.zuzuf.net/qshare
Source0:	http://www.zuzuf.net/qshare/files/%{name}-%{version}-src.tar.gz
Group:		File tools
Summary:        Qt file share
BuildRequires:  gcc-c++ libxml2-devel
BuildRequires:  qt4-devel avahi-compat-libdns_sd-devel
Requires:       avahi

%description
qShare is a FTP server with a built-in service discovery feature that makes
qShare clients aware of other clients running on the same network. It also
supports Zeroconf on Linux. You can easily add/remove folders from the shared
folders list, set access rights, toggle password protection, etc...
 
The most useful feature is probably the file search feature. The built-in FTP
server implements a FIND command used by qShare to look for files on all known
computers of the network with very little network/CPU overload.

%prep
%setup -q -n %{name}

%build
%qmake_qt4
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}%{_prefix}

%files 
%doc AUTHORS README COPYING
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7783 |21cr|qsstv-9.5.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		qsstv
Summary:	QSSTV is an sstv app 
Version:	9.5.8
Release:	2
License:	GPLv2
Group: 		Communications
Source0:	http://users.telenet.be/on4qz/qsstv/downloads/%{name}_%{version}.tar.gz
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	hamlib-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	qt5-devel

%description
qsstv is an sstv app.
You can send and receive images sent over radio using your soundcard.

%prep
%setup -q -n %{name}
    sed -i "s:/usr/local:%{_prefix}:" %{name}.pro

%build
%qmake_qt5
%make

%install
%makeinstall_qt

# install desktop and icon file
install -D -m0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D -m0644 icons/%{name}.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7784 |21cr|qstardict-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		qstardict
Version:	1.0.1
Release:	7
# fwang: this one is GPLv2 only, because in the version upgrade of
# 0.06 -> 0.07, it changed from GPLv3 to GPLv2.
License:	GPLv2
URL:		http://qstardict.ylsoftware.com
BuildRequires:	qt4-devel glib2-devel desktop-file-utils imagemagick
BuildRequires:	kdelibs4-devel
Source0:	http://qstardict.ylsoftware.com/files/%{name}-%{version}.tar.bz2
Patch0:		qstardict-1.0.1-mdv-glib.patch
Group:		Office
Summary:	StarDict clone written in Qt4
Requires:	stardict-dictionary = 2.4.2

%description
QStarDict is a dictionary program written using Qt4. The user interface is
similar to StarDict. The latest version is 1.0.1.

Main features

* Full support of StarDict 2.x dictionaries
* Working in system tray
* Scanning mouse selection and showing popup window with translation
  of selected word
* Translations reformatting
* Plugins support

%package -n plasma-applet-%{name}
Group:		Graphical desktop/KDE
Summary:	Plasma applet of qstardict
Requires:	%name = %version

%description -n plasma-applet-%{name}
This package contains kde plasma applet of qstardict.

%prep
%setup -q
%patch0 -p1

%build
%qmake_qt4 PLUGINS_DIR=%_libdir/%name/plugins ENABLED_PLUGINS="stardict web"
%make

cd kdeplasma
%cmake_kde4
%make

%install
make install INSTALL_ROOT=%{buildroot}

pushd kdeplasma/build
%makeinstall_std
popd

mkdir -p %{buildroot}%{_iconsdir}
convert -resize 32x32 qstardict/qstardict.png %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_liconsdir}
convert -resize 48x48 qstardict/qstardict.png %{buildroot}%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}%{_miconsdir}
convert -resize 16x16 qstardict/qstardict.png %{buildroot}%{_miconsdir}/%{name}.png

mkdir -p %buildroot%{_datadir}/applications
desktop-file-install --vendor='' \
	--dir=%buildroot%{_datadir}/applications \
	--remove-category='Utility' \
	--add-category='Office' \
	--remove-key='Encoding' \
	qstardict/qstardict.desktop

rm -fr %buildroot%_datadir/doc

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog THANKS
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

%files -n plasma-applet-%{name}
%defattr(-,root,root)
%_kde_libdir/kde4/*.so
%_kde_services/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7785 |21cr|qstat-2.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define commit      2daa7d27004485069007b8d5443837cfd641d7ae
%define shortcommit %(c=%{commit}; echo ${c:0:7})

Summary:	Real-time Game Server Status for FPP/FPS servers
Name:		qstat
Version:	2.17
Release:	1
License:	Artistic
Group:		Networking/Other
Url:		https://github.com/multiplay/qstat
Source0:	https://github.com/multiplay/qstat/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

%description
QStat is a command-line utility for collecting real-time statistics from
on-line game servers. The games supported are generally limited to the
first-person-shooter genre (Quake, Half-Life, Unreal, etc).

Statistics may be output in a variety of form.

%files
%doc CHANGES.txt COMPILE.txt ChangeLog contrib.cfg info/* qstatdoc.html template
%config(noreplace) %{_sysconfdir}/qstat.cfg
%{_bindir}/%{name}-quake

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{commit}

# file-not-utf8
iconv -f iso8859-1 -t utf-8 CHANGES.txt > CHANGES.txt.conv && mv -f CHANGES.txt.conv CHANGES.txt

%build
autoreconf -vfi
%configure \
	--program-suffix=-quake

%make

%install
%makeinstall_std

rm -f template/Makefile*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7786 |21cr|qsynth-0.9.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		qsynth
Summary:	Qt GUI Interface for FluidSynth
Version:	0.9.12
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://qsynth.sourceforge.io/
Source0:	https://downloads.sourceforge.net/qsynth/%{name}-%{version}.tar.gz
Patch0:		qsynth-0.9.5-fix-version.patch
BuildRequires:	cmake >= 3.15
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(Qt5Svg)
Requires:	fluidsynth

%description
Qsynth is a fluidsynth GUI front-end application written in C++ around the Qt
toolkit using Qt Designer. Eventually it may evolve into a soft-synth
management application allowing the user to control and manage a variety of
command line soft-synth but for the moment it wraps the excellent FluidSynth
soft-synth.

%files -f %{name}.lang
%doc ChangeLog README
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/org.rncbc.%{name}.desktop
%{_datadir}/metainfo/org.rncbc.%{name}.metainfo.xml
%{_iconsdir}/hicolor/32x32/apps/org.rncbc.%{name}.png
%{_iconsdir}/hicolor/scalable/apps/org.rncbc.%{name}.svg
%{_mandir}/man1/%{name}.*
%{_mandir}/fr/man1/%{name}.*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%cmake .. -DCONFIG_QT6=NO
%make


%install
%makeinstall_std -C build

desktop-file-edit \
	--remove-key="Version" --remove-key="X-SuSE-translate" \
	%{buildroot}%{_datadir}/applications/org.rncbc.%{name}.desktop

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7787 |21cr|qt3-3.3.8b-52
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _files_listed_twice_terminate_build 0

%define Werror_cflags %nil

# QTDIR is always /usr/lib/qt3, whether that's a lib64 architecture or
# not (sublibdirs are correctly qualified in the latter case however).
%define qtdir %{_prefix}/lib/qt3
%define libqt3name %mklibname qt 3

%define libqassistantname %mklibname qassistantclient 1
%define libdesignercore %mklibname designercore 1
%define libeditor %mklibname editor 1

%define nameqt qt-x11-free

%bcond_without SQL

%bcond_with debug

%bcond_with static

%bcond_without Immodule

%define plugindir  %{_libdir}/qt3/plugins

Summary:	Qt3 Sources
Name:		qt3
Version:	3.3.8b
Release:	52
License:	GPLv3+ and QPL
Group:		System/Libraries
Url:		http://qt.nokia.com
Source0:	ftp://ftp.qt.nokia.com/qt/source/%nameqt-%version.tar.gz
Source1:	qt3.macros
Source2:	qt3-assistant.desktop
Source3:	qt3-designer.desktop
Source4:	qt3-linguist.desktop
Source5:	qt3-designer-sh
Source6:	qt3-assistant-sh
Source7:	qt3-uic-sh
Source8:	qt3-README-Mandriva-Linux
Source9:	90qtrc-jp
Patch1:		qt-3.1.1-fix-xft2-compile.patch
Patch2:		qt-3.2.3-fix-cupslib.patch
Patch4:		qt-x11-free-3.3.5-no-rpath.patch
Patch5:		qt-3.3.2-fix-configure.patch
Patch7:		qt-x11-free-3.3.5-fix-load-gl.patch
Patch8:		qt-3.3.5-lib64-plugins.patch
Patch10:	qt-3.3.3-fix-accessible.patch
Patch11:	qt-x11-free-3.3.6-qt-x11-immodule-unified-qt3.3.5-20060318-pre.patch
Patch12:	fix-key-release-event-with-imm.diff
Patch13:	qt-x11-free-3.3.6-lib64.patch
Patch14:	qt-x11-free-3.3.4-linux32.patch
Patch15:	qt-visibility.patch
Patch16:	qt-x11-free-3.3.5-makelibshared.patch
Patch23:	qt-x11-free-3.3.5-rubberband.patch
Patch24:	qt-x11-free-3.3.5-qtranslator-crash.patch
Patch28:	qt-x11-immodule-nodebug.diff
Patch29:	fix-x11-immodule.diff
Patch30:	fix-im-crash-on-exit.diff
Patch31:	workaround-for-xlib-xim-bug.diff
Patch51:	qt-x11-immodule-unified-qt3.3.7-20061229.diff
Patch52:	qt-x11-free-3.3.6-qt-x11-immodule-unified-qt3.3.5-20060318-post.patch
Patch53:	qt-x11-immodule-unified-qt3.3.5-20051012-quiet.patch
Patch54:	qt3-xinerama-support.patch
Patch56:	qt3-3.3.6-fix-xorg7.0.patch
Patch58:	qt-3.3.6-fix-qfile-message-error.patch
Patch59:	qt-3.3.6-fix-qfile-message-error2.patch
Patch60:	qt3-3.3.8-fix-space.patch
Patch63:	qt-x11-free-3.3.8-qmo35263.patch
Patch64:	qt-x11-free-3.3.8b-unixodb-64.patch
Patch65:	qt-x11-free-3.3.8b-cstddef.patch
Patch66:	qt-x11-free-3.3.7-arm.patch
Patch67:	qt-x11-free-3.3.8b-freetype251.patch
Patch68:	qt-x11-free-3.3.8b-PostgreSQL12.patch
#-------------- KDE qt-copy patches ( added the relevant ones )
Patch100:	0005-qpixmap_mitshm.patch
Patch101:	0007-qpixmap_constants.patch
Patch102:	0017-qiconview-ctrl_rubber.patch
Patch103:	0032-fix_rotated_randr.diff
Patch104:	0035-qvaluelist-streaming-operator.patch
Patch105:	0038-dragobject-dont-prefer-unknown.patch
Patch106:	0044-qscrollview-windowactivate-fix.diff
Patch107:	0047-fix-kmenu-width.diff
Patch109:	0059-qpopup_has_mouse.patch
Patch110:	0060-qpopup_ignore_mousepos.patch
Patch111:	0061-qscrollview-propagate-horizontal-wheelevent.patch
Patch112:	0073-xinerama-aware-qpopup.patch
Patch115:	0078-argb-visual-hack.patch
Patch116:	qt-x11-free-3.3.8b-libpng15.diff
# (FC33) patches: rename the struct Param in qsqlextension_p.h that conflicts with PostgreSQL 11
Patch117:	qt-x11-free-3.3.8b-postgresql11.patch
Patch118:	qt3-lib64-dirs.patch

%if %{with SQL}
BuildRequires:	mysql-devel 
BuildRequires:	unixODBC-devel 
BuildRequires:	postgresql-devel
%endif
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	cups-devel
BuildRequires:	bzip2-devel
BuildRequires:	jpeg-devel
BuildRequires:	mng-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	nas-devel
%if "%{_lib}" != "lib"
BuildRequires:	linux32
%endif

%description
Qt is a complete and well-designed multi-platform object-oriented framework for
developing graphical user interface (GUI) applications using C++. Qt has
seamless integration with OpenGL/Mesa 3D libraries.

Qt has excellent documentation: around 750 pages of postscript and fully
cross-referenced online html documentation. It is available on the web:
http://doc.trolltech.com/

#--------------------------------------------------------------------

%package -n %{libqt3name}
Summary:	Qt3 - Shared libraries
Group:		System/Libraries
Requires:	%{name}-common = %{version}

%description -n %{libqt3name}
Qt is a complete and well-designed multi-platform object-oriented framework for
developing graphical user interface (GUI) applications using C++. Qt has
seamless integration with OpenGL/Mesa 3D libraries.

Qt has excellent documentation: around 750 pages of postscript and fully
cross-referenced online html documentation. It is available on the web:
http://doc.trolltech.com/

This package contains shared libraries. 

%postun -n %{libqt3name}
if [ "$1" = "0" ]; then
   rm -f /etc/ld.so.conf.new
   grep -v -e "^%{qtdir}/%{_lib}$" /etc/ld.so.conf > /etc/ld.so.conf.new
   mv -f /etc/ld.so.conf.new /etc/ld.so.conf
fi

%files -n %{libqt3name}
%dir %{qtdir}/
%{_libdir}/libqt-mt.so.3
%{_libdir}/libqt-mt.so.3.3
%{_libdir}/libqt-mt.so.3.3.8
%{_libdir}/libqui.so.1
%{_libdir}/libqui.so.1.0
%{_libdir}/libqui.so.1.0.0
%{_libdir}/*.prl

%dir %{plugindir}/styles/
%{plugindir}/styles/*style.so

%if %{with Immodule}
%dir %{plugindir}/inputmethods/
%{plugindir}/inputmethods/*.so
%endif

#--------------------------------------------------------------------

%package -n %{libqt3name}-devel
Summary:	Qt3 - Files needed to build Qt3 based applications
Group:		Development/KDE and Qt
Requires:	%{libqt3name} = %{version}-%{release}
Requires:	%{libeditor} = %{version}-%{release}
Requires:	%{libqassistantname} = %{version}-%{release}
Requires:	%{libdesignercore} = %{version}-%{release}
Provides:	libqt-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	libqt3-pch-headers < 3.3.5

%description -n %{libqt3name}-devel
The qt3-devel package contains the files necessary to develop
applications using the Qt GUI toolkit: the header files, the Qt meta
object compiler.

%post -n %{libqt3name}-devel
update-alternatives --install %{_bindir}/qmake qmake %{qtdir}/bin/qmake 10

%postun -n %{libqt3name}-devel
if ! [ -e %{qtdir}/bin/qmake ]; then
  update-alternatives --remove qmake %{qtdir}/bin/qmake
fi

%files -n %{libqt3name}-devel
%doc %{_mandir}/man1/*
%doc %{_mandir}/man3/*
%{_bindir}/designer-qt3
%{_libdir}/*.so
%{_rpmmacrodir}/*%{name}*
%{_libdir}/pkgconfig/*.pc
%{_datadir}/applications/*
%{qtdir}/bin/lrelease
%{qtdir}/bin/moc
%{qtdir}/bin/qmake
%{qtdir}/bin/uic
%{qtdir}/bin/designer
%{qtdir}/bin/lupdate
%{qtdir}/bin/qm2ts
%dir %{qtdir}/include/
%{qtdir}/include/*
%dir %{qtdir}/templates/
%{qtdir}/templates/*.ui
%{plugindir}/designer
%dir %{qtdir}/mkspecs/
%{qtdir}/mkspecs/*
%dir %{qtdir}/src/
%{qtdir}/src/*

#--------------------------------------------------------------------
%if %{with static}

%package -n %{libqt3name}-static-devel
Summary:	Qt3 - Static files needed to build Qt3 based applications
Group:		Development/KDE and Qt
Requires:	%{libqt3name}-devel = %{version}-%{release}
Provides:	libqt-static-devel = %{version}-%{release}
Provides:	%{name}-static-devel = %{version}-%{release}

%description -n %{libqt3name}-static-devel
This package contains:
  - files needed to build static Qt based applications

%files -n %{libqt3name}-static-devel
%{_libdir}/*.a

%endif

#--------------------------------------------------------------------

%package common
Summary:	Config, language file for Qt
Group:		Development/KDE and Qt
Requires:	%{libqt3name} = %{version}
Obsoletes:	libqt3-common < %{version}-%{release}
Provides:	libqt3-common = %{version}-%{release}
# Laurent : allow to install package which use this provides (commercial packages which want to install under distro and used this provides
Provides:	qt = %{version}-%{release}
Provides:	qt3 = %{version}-%{release}

%description common
This package contains all config file and language file

%post common
update-alternatives --install %{_bindir}/qtconfig qtconfig %{qtdir}/bin/qtconfig 10

%postun common
if ! [ -e %{qtdir}/bin/qtconfig ]; then
  update-alternatives --remove qtconfig %{qtdir}/bin/qtconfig
fi

%files common
%dir %{plugindir}
%if %{with SQL}
%dir %{plugindir}/sqldrivers
%endif
%dir %{qtdir}/phrasebooks/
%{qtdir}/phrasebooks/*.qph
%dir %{qtdir}/
%dir %{qtdir}/bin
%{qtdir}/bin/qtconfig
%{_sysconfdir}/profile.d/*.csh
%{_sysconfdir}/profile.d/*.sh
%config(noreplace) %{_sysconfdir}/qtrc
%config(noreplace) %{_sysconfdir}/kstylerc
%dir %{qtdir}/translations/
%{qtdir}/translations/*.qm
%{_sysconfdir}/X11/xinit.d/*

#--------------------------------------------------------------------

%if %{with SQL}
%package -n %{libqt3name}-mysql
Summary:	MySQL plugin for Qt
Group:		Development/KDE and Qt
Requires:	%{libqt3name} = %{version}-%{release}
Provides:	%{name}-MySQL = %{version}-%{release}

%description -n %{libqt3name}-mysql
This package contain the MySQL plugin for Qt.

%files -n %{libqt3name}-mysql
%{plugindir}/sqldrivers/libqsqlmysql.so

%package -n %{libqt3name}-psql
Summary:	PostgresSQL plugin for Qt
Group:		Development/KDE and Qt
Requires:	%{libqt3name} = %{version}-%{release}
Provides:	%{name}-PostgreSQL = %{version}-%{release}

%description -n %{libqt3name}-psql
This package contain the PostgresSQL plugin for Qt.

%files -n %{libqt3name}-psql
%{plugindir}/sqldrivers/libqsqlpsql.so

%package -n %{libqt3name}-odbc
Summary:	ODBC plugin for Qt
Group:		Development/KDE and Qt
Requires:	%{libqt3name} = %{version}-%{release}
Provides:	%{name}-ODBC = %{version}-%{release}

%description -n %{libqt3name}-odbc
This package contain the ODBC plugin for Qt.

%files -n %{libqt3name}-odbc
%{plugindir}/sqldrivers/libqsqlodbc.so

%package -n %{libqt3name}-sqlite
Summary: 	Sqlite 2 plugin for Qt
Group: 		Development/KDE and Qt
Requires:	%{libqt3name} = %{version}-%{release}
Provides:	%{name}-Sqlite = %{version}-%{release}

%description -n %{libqt3name}-sqlite
This package contain the Sqlite 2 plugin for Qt.

%files -n %{libqt3name}-sqlite
%{plugindir}/sqldrivers/libqsqlite.so

%endif

#--------------------------------------------------------------------

%package -n %{libqassistantname}
Summary:	Qt3 - Shared libraries
Group:		System/Libraries

%description -n %{libqassistantname}
Qt3 - Shared libraries

%files -n %{libqassistantname}
%{_libdir}/libqassistantclient.so.*

#--------------------------------------------------------------------

%package assistant
Summary:	Qt assistant
Group:		Development/KDE and Qt
Requires:	qt3-doc

%description assistant
This package contain Qt assistant

%files assistant
%{_bindir}/assistant-qt3
%{qtdir}/bin/assistant

#--------------------------------------------------------------------

%package linguist
Summary:	Qt linguist
Group:		Development/KDE and Qt

%description linguist
This package contain Qt linguist

%files linguist
%{qtdir}/bin/linguist

#--------------------------------------------------------------------

%package -n %{libdesignercore}
Summary:	Qt3 - Shared libraries
Group:		System/Libraries

%description -n %{libdesignercore}
Qt3 - Shared libraries

%files -n %{libdesignercore}
%{_libdir}/libdesignercore.so.*

#--------------------------------------------------------------------

%package -n %{libeditor}
Summary:	Qt3 - Shared libraries
Group:		System/Libraries

%description -n %{libeditor}
Qt3 - Shared libraries

%files -n %{libeditor}
%{_libdir}/libeditor.so.*

#--------------------------------------------------------------------

%package example
Summary:	Qt examples
Group:		Development/KDE and Qt
Obsoletes:	libqt3-example < %{version}-%{release}
Provides:	libqt3-example
BuildArch:	noarch

%description example
This package contain Qt example.

%files example
%dir %{_docdir}/%{name}/examples
%doc %{_docdir}/%{name}/examples/*

#--------------------------------------------------------------------

%package tutorial
Summary:	Qt tutorials
Group:		Development/KDE and Qt
BuildArch:	noarch

%description tutorial
This package contain Qt tutorial.

%files tutorial
%dir %{_docdir}/%{name}/tutorial
%doc %{_docdir}/%{name}/tutorial/*

#--------------------------------------------------------------------

%package doc
Summary:	Qt documentation
Group:		Development/KDE and Qt
Conflicts:	libqt3-devel <= 3.3.4-13mdk
BuildArch:	noarch

%description doc
This package contain Qt documentation

%post doc
# Remove old qt3 doc directories
find %{_docdir} -maxdepth 1 -type d -name qt-3.\* -exec rm -rf {} \;

%files doc
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/FAQ
%doc %{_docdir}/%{name}/LICENSE*
%doc %{_docdir}/%{name}/README*
%dir %{_docdir}/%{name}/doc/
%dir %{_docdir}/%{name}/doc/html/
%doc %{_docdir}/%{name}/doc/html/*
%dir %{qtdir}/doc/
%{qtdir}/doc/html

#--------------------------------------------------------------------

%prep
%setup -q -n %{nameqt}-%{version}

%patch1 -p1 -b .fix_xft_compile
%patch2 -p1 -b .fix_cups_lib
%patch4 -p0
%patch5 -p1 -b .fix_configure_space
%patch7 -p0 -b .fix_opengl
%patch13 -p1 -b .lib64
%patch14 -p1 -b .linux32
%patch10 -p1 -b .fix_accessible
%if %{with Immodule}
%patch11 -p1 -b .add_support_for_qt_immodule
%patch51 -p1 -b .diff_immodule
%patch52 -p1 -b .post_immodule
%patch53 -p1 -b .fix
%endif
%patch15 -p1 -b .fix_qt_export
%patch16 -p1 -b .sharedlibs
%patch23 -p0 -b .rubberband
%patch24 -p0 -b .qtranslator
%patch54 -p1 -b .fix_xinerama
%patch56 -p1 -b .fix_xorg_7.0
%patch58 -p1 -b .fix_qfile_message_error
%patch59 -p1 -b .fix_qfile_message_error
%patch60 -p1 -b .fix_space
%patch63 -p0 -b .fix_bug_35263
%if "%{_lib}" == "lib64"
%patch64 -p0 -b .fix_unixodbc
%endif
%patch65 -p1 -b .gcc46
%patch66 -p1 -b .arm
%patch67 -p1 -b .freetype25
%patch68 -p1
# KDE qt-copy patches
%patch100 -p0 -b .qt-copy
%patch101 -p0 -b .qt-copy
%patch102 -p0 -b .qt-copy
%patch103 -p0 -b .qt-copy
%patch104 -p0 -b .qt-copy
%patch105 -p0 -b .qt-copy
%patch106 -p0 -b .qt-copy
%patch107 -p0 -b .qt-copy
%patch109 -p0 -b .qt-copy
%patch110 -p0 -b .qt-copy
%patch111 -p0 -b .qt-copy
%patch112 -p0 -b .qt-copy
%patch115 -p0 -b .qt-copy
%patch116 -p0 -b .libpng-1.5
#(FC33)
%patch117 -p1
%patch118 -p1

# (Anssi 01/2008)
# Hack to disable stripping, a better fix for configure script welcome:
mkdir -p stripbin
echo "#!/bin/true" > stripbin/strip
chmod +x stripbin/strip

sed -e "s|^QMAKE_STRIP.*=.*|QMAKE_STRIP =|" -i mkspecs/linux-g++*/qmake.conf
sed -e "s|^QMAKE_CFLAGS\t.*$|QMAKE_CFLAGS = %{optflags}  -DPIC -fPIC -fno-stack-protector|" \
        -e "s|^QMAKE_LFLAGS\t.*=.*$|QMAKE_LFLAGS = %{ldflags} |" \
        -e "s|^QMAKE_LFLAGS_PLUGIN\t.*\+= |QMAKE_LFLAGS_PLUGIN = %(echo %build_ldflags|sed -e 's#-Wl,--no-undefined##') |" \
        -i mkspecs/linux-g++*/qmake.conf

%build
export QTDIR=$(/bin/pwd)
export PATH=$(pwd)/stripbin:$QTDIR/bin:$PATH
export MANPATH=$QTDIR/doc/man:$MANPATH
export LD_LIBRARY_PATH="$QTDIR/lib:$LD_LIBRARY_PATH"

%if %{with Immodule}
sh ./make-symlinks.sh
%endif

# Default platform (take care to lib64 arches)
PLATFORM=linux-g++
%if "%{_lib}" == "lib64"
PLATFORM=linux-g++-64
%endif
echo "#define QT_MITSHM" >> mkspecs/${PLATFORM}/qplatformdefs.h

function main_configure {
echo "yes" | ./configure \
	-I/usr/include/postgresql/server/ \
	-I/usr/include/fontconfig \
	-I/usr/include/Xft2 \
	-I/usr/include/Xft2/X11/Xft \
	-I/usr/include/mysql/ \
	-prefix %{qtdir}/ \
	-libdir %{_libdir} \
	-plugindir %{plugindir} \
	-sysconfdir %{_sysconfdir} \
	-docdir %{_docdir}/%{name}/doc/ \
   %if %{with debug}
   -debug \
   %else
	-release \
   %endif
	-qt-gif \
	-system-zlib \
	-no-exceptions \
	-platform $PLATFORM \
	-no-dlopen-opengl \
	%if %{with SQL}
		-enable-sql \
		-plugin-sql-mysql \
		-plugin-sql-odbc \
		-plugin-sql-psql \
		-plugin-sql-sqlite \
	%endif
	-plugin-style-cde \
	-plugin-style-compact \
	-plugin-style-motif \
	-plugin-style-sgi \
	-plugin-style-platinum \
	-plugin-style-motifplus \
	-thread \
	-stl \
	-qt-imgfmt-png \
	-qt-imgfmt-jpeg \
	-qt-imgfmt-mng  \
	-system-libpng \
	-system-libjpeg \
	-system-libmng \
	-sm \
	-xkb \
	-xinerama \
	-xrender \
	-xrandr \
	-xcursor \
	-xft \
	-nis \
	-no-tablet \
	-v \
	-xkb \
	$*
}

%if %{with static}

main_configure -static
pushd src
	%make && make INSTALL_ROOT=%{buildroot} install_target
popd
mkdir -p safelib
mv -f lib/libqt-mt.a safelib
%endif

# Build shared
main_configure -shared
%make symlinks src-qmake src-moc sub-src sub-tools

%install
export QTDIR=$(/bin/pwd)
export PATH=$(pwd)/stripbin:$QTDIR/bin:$PATH
export MANPATH=$QTDIR/doc/man:$MANPATH
export LD_LIBRARY_PATH="$QTDIR/lib:$LD_LIBRARY_PATH"
rm -fr %{buildroot}

make install INSTALL_ROOT=%{buildroot}

rm -rf %{buildroot}%{qtdir}/bin/qmake
install -m 0755  %{_builddir}/%{nameqt}-%{version}/qmake/qmake %{buildroot}%{qtdir}/bin/

# David - 3.0.0-0.11mdk - Install a README for Mandriva Linux
install -m 0644 %{SOURCE8} %{buildroot}%{_docdir}/%{name}/README.Mandriva_Linux
perl -pi -e "s|QtVersion|%{version}|" %{buildroot}%{_docdir}/%{name}/README.Mandriva_Linux
perl -pi -e "s|PackageVersion|%{version}-%{release}|" %{buildroot}%{_docdir}/%{name}/README.Mandriva_Linux

# David - 3.0.0-0.11mdk - Install missing documentation
install -d -m 0755 %{buildroot}%{_docdir}/%{name}/
install -m 0644 %{_builddir}/%{nameqt}-%{version}/FAQ       %{buildroot}%{_docdir}/%{name}/
install -m 0644 %{_builddir}/%{nameqt}-%{version}/LICENSE*  %{buildroot}%{_docdir}/%{name}/
install -m 0644 %{_builddir}/%{nameqt}-%{version}/README    %{buildroot}%{_docdir}/%{name}/
install -m 0644 %{_builddir}/%{nameqt}-%{version}/README-QT.TXT %{buildroot}%{_docdir}/%{name}/

# David - 3.0.0-0.11mdk - Install man pages
install -d -m 0755 %{buildroot}%{_mandir}/man1/
for i in %{_builddir}/%{nameqt}-%{version}/doc/man/man1/* ; do
		if [ ! -d $i ] ; then
		   install -m 0644 $i %{buildroot}%{_mandir}/man1/
		fi
done
#
install -d -m 0755 %{buildroot}%{_mandir}/man3/
for i in %{_builddir}/%{nameqt}-%{version}/doc/man/man3/* ; do
	    if [ ! -d $i ] ; then
   			install -m 0644 $i %{buildroot}%{_mandir}/man3/
	    fi
done

install -d -m 0755 %{buildroot}%{_bindir}/
install -m 0755 %{_builddir}/%{nameqt}-%{version}/bin/moc %{buildroot}%{qtdir}/bin/moc

# David - 3.0.1-2mdk - Install .pri files needed to build examples and tutorials
install -d -m 0755 %{buildroot}%{qtdir}/src/
for i in %{_builddir}/%{nameqt}-%{version}/src/*.pri; do
   install -m 0644 $i %{buildroot}%{qtdir}/src/
done

cp -ar %{_builddir}/%{nameqt}-%{version}/examples/ %{buildroot}%{_docdir}/%{name}
cp -ar %{_builddir}/%{nameqt}-%{version}/tutorial/ %{buildroot}%{_docdir}/%{name}

# Fix include directory for examples ( based on David Faure changes )
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|../../../include|%{qtdir}/include|"
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|../../include|%{qtdir}/include|"

# Fix lib directory for examples
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|../../../../lib/libqt-mt.prl|%{_libdir}/libqt-mt.prl|"
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|../../../lib/libqt-mt.prl|%{_libdir}/libqt-mt.prl|"
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|../../lib/libqt-mt.prl|%{_libdir}/libqt-mt.prl|"
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|../../src/qt_professional.pri|%{qtdir}/src/qt_professional.pri|"

# Set RPM_BUILD_DIR to QTDIR
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|%{_builddir}/qt-%{version}|%{qtdir}|"
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|%{_builddir}/qt-x11-free-%{version}/mkspecs/|%{qtdir}/mkspecs/|"
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|%{_builddir}/qt-x11-free-%{version}/|%{qtdir}/|"
find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -name Makefile | xargs perl -pi -e "s|../../lib/libqassistantclient.prl|%{_libdir}/libqassistantclient.prl|"

# Remove .obj .moc directories
for name in `find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -type d -name .obj`; do
   rm -rf $name
done
for name in `find %{buildroot}%{_docdir}/%{name}/{examples,tutorial} -type d -name .moc`; do
   rm -rf $name
done

install -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/designer-qt3
install -m 0755 %{SOURCE6} %{buildroot}%{_bindir}/assistant-qt3

pushd %{buildroot}/%{qtdir}/
install -d -m 0755 doc
ln -s %{_docdir}/%{name}/doc/html/ doc/html
popd

install -d -m 0755 %{buildroot}%{_sysconfdir}/profile.d/
cat >> %{buildroot}%{_sysconfdir}/profile.d/90qtdir3.csh << EOF
if (! \$?QTDIR ) then
    setenv QTDIR "%{qtdir}"
endif
if (! \$?QTINC ) then
    setenv QTINC "%{qtdir}/include"
endif
if (! \$?QTLIB ) then
    setenv QTLIB "%{_libdir}"
endif
if (! \$?QT_XFT ) then
    setenv QT_XFT 0
endif
EOF

cat >> %{buildroot}%{_sysconfdir}/profile.d/90qtdir3.sh << EOF
#! /bin/bash
[ -z "\$QTDIR" ] && export QTDIR="%{qtdir}"
[ -z "\$QTINC" ] && export QTINC="%{qtdir}/include"
[ -z "\$QTLIB" ] && export QTLIB="%{_libdir}"
[ -z "\$QT_XFT" ] && export QT_XFT=0
EOF

# Generate default qtrc
install -d -m 0755 %{buildroot}%{_sysconfdir}/
cat >> %{buildroot}%{_sysconfdir}/qtrc << EOF
[3.3]
libraryPath=%{plugindir}

[General]
enableXft=true
font=Sans,10,-1,5,0,0,0,0,0,0
style=plastik
useXft=true
EOF

cat >> %{buildroot}%{_sysconfdir}/kstylerc << EOF
[Settings]
MenuDropShadow=true
MenuOpacity=0.9
MenuTransparencyEngine=Disabled
SemiTransparentRubberband=true
EOF


install -d -m 0755 %{buildroot}%{_datadir}/applications
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/qt3-assistant.desktop
install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/qt3-designer.desktop
install -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/applications/qt3-linguist.desktop

%if %{with static}
# Static install
install -d -m 0755 %{buildroot}%{_libdir}/
install -m644 safelib/*  %{buildroot}/%{_libdir}/
%endif

# Removing invalid symlink. They really should not be here
# Old symlink if was set in right place, would create a cyclic symlynk
cd %{buildroot}%{qtdir}/mkspecs/
if [ -h default ]; then
   rm -f default/linux*
fi
# provide default64 for multiarch devel
%if "%{_lib}" == "lib64"
ln -sf linux-g++-64 default64
%endif
cd -

# Install rpm macros
%install_macro qt3 %{SOURCE1}

mkdir -p %{buildroot}%{_sysconfdir}/X11/xinit.d/
install -m 0755 %{SOURCE9} %{buildroot}%{_sysconfdir}/X11/xinit.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7788 |21cr|qt4pas-5.2.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define major 5
%define libname %mklibname Qt4Pas %{major}
%define devname %mklibname Qt4Pas -d

Summary:	Free Pascal Qt4 binding
Name:		qt4pas
# defined in .pro file inside source tarball
Version:	5.2.5
Release:	6
License:	LGPLv3+
Group:		System/Libraries
Url:		http://users.telenet.be/Jan.Van.hijfte/qtforfpc/fpcqt4.html
Source0:	qt4pas-V2.5_Qt4.5.3.tar.gz
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(QtWebKit)

%description
The Free Pascal Qt4 binding that allows Free Pascal
to interface with the C++ Library Qt.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Free Pascal Qt4 binding
Group:		System/Libraries

%description -n %{libname}
The Free Pascal Qt4 binding that allows Free Pascal
to interface with the C++ Library Qt.

%files -n %{libname}
%{_libdir}/libQt4Pas.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Free Pascal Qt4 binding
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The Free Pascal Qt4 binding that allows Free Pascal
to interface with the C++ Library Qt.

%files -n %{devname}
%{_libdir}/libQt4Pas.so

#----------------------------------------------------------------------------

%prep
%setup -q -n qt4pas-V2.5_Qt4.5.3

%build
%qmake_qt4 Qt4Pas.pro
%make

%install
make install INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7789 |21cr|qt4urpm-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:           qt4urpm
Version:        2.0
Release:        6
Summary:        A Qt based frontend for the urpm* package management tools
License:        GPLv3
Group:          System/Configuration/Packaging
URL:            https://abf.io/soft/qt4urpm
Source0:        https://abf.io/soft/qt4urpm/archive/%{name}-%{version}.tar.gz
Source1:        qt4urpm_ru.tar.gz
BuildRequires:  qt4-devel
Requires:       urpmi
Requires:       kdebase4-runtime
Requires:       gurpmi
Requires:       xterm
Requires:       qt4-common

%description
qt4urpm is a Qt4 based frontend for the urpm* package management tools,
which provides an intuitive interface to manage orphaned packages and
search for packages that contain a specific file.

%prep
%setup -q
%apply_patches

tar -xvzf %{SOURCE1}

%build
make lrelease
qmake -spec /usr/lib/qt4/mkspecs/linux-g++ -o Makefile qt4urpm.pro
make LOCALEPATH="%{_datadir}/%{name}/translations/"

%install
mkdir -p %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{_vendor}-%{name}.desktop << EOF
[Desktop Entry]
Name=Qt4urpm
Comment=%{summary}
Comment[ru]=Поиск файлов по пакетам и управление осиротевшими пакетами
Exec=%{_bindir}/%{name}
Icon=package-installed-outdated
Type=Application
Categories=System;Settings;PackageManager;
EOF

mkdir -p %{buildroot}%{_datadir}/%{name}/translations
cp *.qm %{buildroot}%{_datadir}/%{name}/translations/

%files
%{_datadir}/applications/%{_vendor}-%{name}.desktop
%defattr(644,root,root,)
%{_datadir}/%{name}/translations/*.qm
%defattr(755,root,root,755)
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7790 |21cr|qt5ct-0.38-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define qtid 168066

Summary:	Qt5 configuration tool
Name:		qt5ct
Version:	0.38
Release:	5
License:	BSD
Group:		Graphical desktop/Other
Url:		http://qt-apps.org/content/show.php/Qt5+Configuration+Tool?content=%{qtid}
Source0:	http://downloads.sourceforge.net/project/qt5ct/%{name}-%{version}.tar.bz2
Source1:	62qt5ct.sh
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	qt5-platformtheme-ct = %{EVRD}
Requires:	qt5-style-qt5ct = %{EVRD}
Requires:	qt5-qtcore-i18n

%description
This program allows users to configure Qt5 settings (theme, font, icons, etc.)
under DE/WM without Qt integration.

%files
%doc README COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_sysconfdir}/profile.d/62qt5ct.sh

#----------------------------------------------------------------------------

%package -n qt5-platformtheme-ct
Summary:	Qt5 configuration tool platform theme for Qt 5
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}
Conflicts:	%{name} < 0.8

%description -n qt5-platformtheme-ct
Qt5 configuration tool platform theme for Qt 5.

%files -n qt5-platformtheme-ct
%doc COPYING
%{_qt5_plugindir}/platformthemes/libqt5ct.so

#----------------------------------------------------------------------------

%package -n qt5-style-qt5ct
Summary:	Qt5 configuration tool style for Qt5
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n qt5-style-qt5ct
Qt5 configuration tool style for Qt5.

%files -n qt5-style-qt5ct
%doc COPYING
%{_qt5_plugindir}/styles/libqt5ct-style.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5
%make

%install
make install \
	INSTALL_ROOT=%{buildroot} \
	STRIP=/bin/true

mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/62qt5ct.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7791 |21cr|qt5pas-1.2.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define lazarus_version 3.6

%define major 1
%define libname %mklibname Qt5Pas %{major}
%define devname %mklibname Qt5Pas -d

Summary:	Qt 5 bindings for pascal
Name:		qt5pas
Version:	1.2.15
Release:	1
Epoch:		1
License:	LGPLv3+
Group:		System/Libraries
Url:		https://github.com/graemeg/lazarus/tree/upstream/lcl/interfaces/qt5/cbindings
Source0:	https://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%20%{lazarus_version}/lazarus-%{lazarus_version}-0.tar.gz
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5X11Extras)

%description
Qt 5 bindings for pascal from Lazarus.

%files
#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Free Pascal Qt5 binding
Group:		System/Libraries

%description -n %{libname}
The Free Pascal Qt5 binding that allows Free Pascal
to interface with the C++ Library Qt.

%files -n %{libname}
%{_libdir}/libQt5Pas.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc COPYING.TXT
%doc README.TXT
%{_libdir}/libQt5Pas.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n lazarus/lcl/interfaces/qt5/cbindings/

%build
%qmake_qt5
%make

%install
%make install INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7792 |21cr|qt5-ukui-platformtheme-1.0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 28e314d954edb58e28d1e4597584b8f68b6a67c8
%define commit_short %(echo %{commit} | head -c5)

%define major 1
%define libname %mklibname qt5-ukui-style %{major}
%define devname %mklibname qt5-ukui-style -d

# https://github.com/ukui/qt5-ukui-platformtheme/issues/56
%global ldflags %{ldflags} -lX11

Summary:	The UKUI platform theme for Qt5 and UKUI applications
Name:		qt5-ukui-platformtheme
Version:	1.0.8
Release:	2
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/ukui/qt5-ukui-platformtheme
Source0:	https://github.com/ukui/qt5-ukui-platformtheme/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:  qmake5
BuildRequires:  qt5-devel
BuildRequires:  kf5windowsystem-devel
BuildRequires:  kf5wayland-devel
BuildRequires:  gsettings-qt-devel
BuildRequires:  pkgconfig(glib-2.0)

# NOTE: Qt private API is used!
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-gschema = %{EVRD}

%description
The UKUI platform theme for Qt5 and UKUI applications

In the early development of the UKUI 3.0, we used qt5-gtk2-platformtheme
to ensure the unity of the UKUI desktop style. However, it has many limitations for our new desgin.

This project is intend to provide a common resolution of desktop application development
with qt5 in UKUI3.0. We hope provide a platform theme to unify and beautify all qt applications
according to the design of UKUI3.0, not only our own applications.
We are also committed to building our applications that can adapt to different styles.
This project is first step to archive those objectives.

%files
%license COPYING
%doc README.md CONTRIBUTING.md CONTRIBUTING_zh_CN.md
%{_libdir}/qt5/plugins/platformthemes/libqt5-ukui-platformtheme.so
# maybe package styles and platform themes into different subpackages?
%{_libdir}/qt5/plugins/styles/libqt5-style-ukui.so
%{_libdir}/qt5/plugins/styles/libukui-proxy-style.so

#------------------------------------------------------------------

%package gschema
Summary:	gsettings gschema used by UKUI apps and %{name}
Group:		Graphical desktop/Other
BuildArch:	noarch

%description gschema
gsettings gschema used by UKUI apps and %{name}

%files gschema
%{_datadir}/glib-2.0/schemas/org.ukui.style.gschema.xml

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{summary}
Group:		System/Libraries
Requires:	%{name}-gschema = %{EVRD}

%description -n %{libname}
%{summary}

%files -n %{libname}
%license COPYING
%{_libdir}/libqt5-ukui-style.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{summary}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{summary}

%files -n %{devname}
%license COPYING
%{_libdir}/libqt5-ukui-style.so
%{_libdir}/pkgconfig/qt5-ukui.pc

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

grep -Irl '/opt/$${TARGET}/bin' | xargs sed -i'' -e 's,/opt/$${TARGET}/bin,%{_bindir},g'

%build
%qmake_qt5
%make

%install
%makeinstall_qt

# it is a test file
rm -fv %{buildroot}%{_bindir}/messagebox
rmdir %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7793 |21cr|qt6-charts-6.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define _qtdir %{_libdir}/qt%{major}

%define qtcharts %mklibname Qt%{major}Charts %{major}
%define qtchartsqml %mklibname Qt%{major}Chartsqml %{major}
%define qtchartsd %mklibname Qt%{major}Charts -d

Summary:	Qt6 Charts component
Name:		qt6-charts
Version:	6.2.3
Release:	1
License:	GPLv3+
Group:		Development/KDE and Qt
Url:		https://www.qt.io
Source0:	http://download.qt.io/official_releases/qt/%(echo %{version} |cut -d. -f1-2)/%{version}/submodules/qtcharts-everywhere-src-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	pkgconfig(vulkan)

%description
Qt6 Charts module provides a set of easy to use chart components.
It uses the Qt Graphics View Framework, therefore charts can be easily
integrated to modern user interfaces. Qt Charts can be used as QWidgets,
QGraphicsWidget, or QML types. Users can easily create impressive graphs
by selecting one of the charts themes.

%files
%doc README
%license LICENSE.*
%{_qtdir}/qml/QtCharts

#------------------------------------------------------------------------------

%package -n %{qtcharts}
Summary:	Qt6 Charts Component Library
Group:		System/Libraries

%description -n %{qtcharts}
Qt6 Charts Component Library.

%files -n %{qtcharts}
%doc README
%license LICENSE.*
%{_libdir}/libQt%{major}Charts.so.%{major}*
%{_qtdir}/lib/libQt%{major}Charts.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{qtchartsqml}
Summary:	Qt6 ChartsQml Component Library
Group:		System/Libraries

%description -n %{qtchartsqml}
Qt6 ChartsQml Component Library.

%files -n %{qtchartsqml}
%doc README
%license LICENSE.*
%{_libdir}/libQt%{major}ChartsQml.so.%{major}*
%{_qtdir}/lib/libQt%{major}ChartsQml.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{qtchartsd}
Summary:	Devel files needed to build apps based on QtCharts
Group:		Development/KDE and Qt
Requires:	%{qtcharts} = %{EVRD}
Requires:	%{qtchartsqml} = %{EVRD}
Provides:	libqtcharts6-devel = %{EVRD}
Provides:	libqt6charts-devel = %{EVRD}
Provides:	qtcharts6-devel = %{EVRD}
Provides:	qt6charts-devel = %{EVRD}

%description -n %{qtchartsd}
Devel files needed to build apps based on Qt Charts.

%files -n %{qtchartsd}
%doc README
%license LICENSE.*
%{_libdir}/cmake/Qt%{major}BuildInternals
%{_libdir}/cmake/Qt%{major}Charts
%{_libdir}/cmake/Qt%{major}ChartsQml
%{_libdir}/cmake/Qt%{major}Qml
%{_libdir}/libQt%{major}Charts*.so
%{_qtdir}/include/QtCharts*
%{_qtdir}/lib/libQt%{major}Charts*.so
%{_qtdir}/lib/metatypes/*.json
%{_qtdir}/lib/*.prl
%{_qtdir}/mkspecs/modules/*.pri
%{_qtdir}/modules/*.json

#------------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%license LICENSE.GPL3
%{_qtdir}/examples/charts

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n qtcharts-everywhere-src-%{version}
# FIXME why are OpenGL lib paths autodetected incorrectly, preferring
# /usr/lib over /usr/lib64 even on 64-bit boxes?
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qtdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON
	
%build
export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%ninja_build -C build

%install
export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%ninja_install -C build

# Put stuff where tools will find it
# We can't do the same for %{_includedir} right now because that would
# clash with qt5 (both would want to have /usr/include/QtCore and friends)
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_libdir}/cmake
for i in %{buildroot}%{_qtdir}/lib/*.so*; do
	ln -s qt%{major}/lib/$(basename ${i}) %{buildroot}%{_libdir}/
done
mv %{buildroot}%{_qtdir}/lib/cmake %{buildroot}%{_libdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7794 |21cr|qt6pas-6.2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define lazarus_version 3.6

%define major 6
%define libname %mklibname Qt6Pas %{major}
%define devname %mklibname Qt6Pas -d

Summary:	Qt 6 bindings for pascal
Name:		qt6pas
Version:	6.2.8
Release:	1
License:	LGPLv3+
Group:		System/Libraries
Url:		https://github.com/graemeg/lazarus/tree/upstream/lcl/interfaces/qt6/cbindings
Source0:	https://sourceforge.net/projects/lazarus/files/Lazarus%20Zip%20_%20GZip/Lazarus%20%{lazarus_version}/lazarus-%{lazarus_version}-0.tar.gz
BuildRequires:	qmake-qt6
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6Gui)

%description
Qt 5 bindings for pascal from Lazarus.

%files
#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Free Pascal Qt6 binding
Group:		System/Libraries

%description -n %{libname}
The Free Pascal Qt6 binding that allows Free Pascal
to interface with the C++ Library Qt.

%files -n %{libname}
%{_libdir}/libQt6Pas.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc COPYING.TXT
%doc README.TXT
%{_libdir}/libQt6Pas.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n lazarus/lcl/interfaces/qt6/cbindings/

%build
%set_build_flags

qmake-qt6 \
 QMAKE_CFLAGS="${CFLAGS}"     \
 QMAKE_CXXFLAGS="${CXXFLAGS}" \
 QMAKE_LFLAGS="${LDFLAGS}"
%make

%install
%make install INSTALL_ROOT=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7795 |21cr|qt6-qttranslations-6.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define module qttranslations

Summary:	Version 6 of the Qt toolkit (%{module} packages)
Name:		qt6-%{module}
Version:	6.2.2
Release:	1
License:	LGPLv3+
Group:		System/Internationalization
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-src-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	qt6-cmake
#BuildRequires:	qt6-linguist-tools
BuildRequires:	qt6-qttools
BuildRequires:	cmake(Qt6Core)
BuildArch:	noarch

%description
Version 6 of the Qt toolkit (%{module} packages).

%files
%license LICENSE.*
%lang(ar) %{_prefix}/translations/*_ar.qm
%lang(bg) %{_prefix}/translations/*_bg.qm
%lang(ca) %{_prefix}/translations/*_ca.qm
%lang(cs) %{_prefix}/translations/*_cs.qm
%lang(da) %{_prefix}/translations/*_da.qm
%lang(de) %{_prefix}/translations/*_de.qm
%lang(es) %{_prefix}/translations/*_es.qm
%lang(en) %{_prefix}/translations/*_en.qm
%lang(fa) %{_prefix}/translations/*_fa.qm
%lang(fi) %{_prefix}/translations/*_fi.qm
%lang(fr) %{_prefix}/translations/*_fr.qm
%lang(gl) %{_prefix}/translations/*_gd.qm
%lang(gl) %{_prefix}/translations/*_gl.qm
%lang(he) %{_prefix}/translations/*_he.qm
%lang(hu) %{_prefix}/translations/*_hu.qm
%lang(hu) %{_prefix}/translations/*_hr.qm
%lang(it) %{_prefix}/translations/*_it.qm
%lang(ja) %{_prefix}/translations/*_ja.qm
%lang(ko) %{_prefix}/translations/*_ko.qm
%lang(lt) %{_prefix}/translations/*_lt.qm
%lang(lv) %{_prefix}/translations/*_lv.qm
%lang(nl) %{_prefix}/translations/*_nl.qm
%lang(nn) %{_prefix}/translations/*_nn.qm
%lang(pl) %{_prefix}/translations/*_pl.qm
%lang(pt) %{_prefix}/translations/*_pt_PT.qm
%lang(pt_BR) %{_prefix}/translations/*_pt_BR.qm
%lang(ru) %{_prefix}/translations/*_ru.qm
%lang(sk) %{_prefix}/translations/*_sk.qm
%lang(sl) %{_prefix}/translations/*_sl.qm
%lang(sv) %{_prefix}/translations/*_sv.qm
%lang(sv) %{_prefix}/translations/*_tr.qm
%lang(uk) %{_prefix}/translations/*_uk.qm
%lang(zh_CN) %{_prefix}/translations/*_zh_CN.qm
%lang(zh_TW) %{_prefix}/translations/*_zh_TW.qm

#------------------------------------------------------------------------------


%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7796 |21cr|qt-assistant-adp-4.6.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Compatibility version of Qt Assistant
Name:		qt-assistant-adp
Version:	4.6.3
Release:	14
Epoch:		4
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License:	LGPLv2.1+ with exceptions or GPLv3+ with exceptions
Group:		System/Libraries
Url:		http://qt.nokia.com/doc/4.6/qassistantclient.html
Source:		ftp://ftp.qt.nokia.com/qt/source/qt-assistant-qassistantclient-library-compat-src-%{version}.tar.gz
# missing header files from Debian (Fathi Boudra)
Source1:	QAssistantClient
Source2:	QtAssistant
# build fixes from Debian (Fathi Boudra)
Patch1:		01_build_system.diff
BuildRequires:	qt4-devel
Conflicts:	qt4-assistant < 4:4.6.3

%description
The old version of Qt Assistant, based on Assistant Document Profile (.adp)
files, and the associated QtAssistantClient library, for compatibility with
applications providing help in that format.

New applications should use the new version of Qt Assistant introduced in Qt
4.4, based on the Qt Help Framework also introduced in Qt 4.4, instead.

%files
%doc LGPL_EXCEPTION.txt LICENSE.LGPL LICENSE.GPL3
%{_bindir}/assistant_adp
%{qt4dir}/translations/*
%{qt4bin}/assistant_adp

#----------------------------------------------------------------------------

%define major 4
%define libqassistant %mklibname qassistant %{major}

%package -n %{libqassistant}
Summary:	QT assistant shared library
Group:		System/Libraries
Provides:	qassistantlib = %{EVRD}

%description -n %{libqassistant}
QT assistant shared library.

%files -n %{libqassistant}
%{qt4lib}/libQtAssistantClient.so.%{major}*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for the compatibility QAssistantClient
Group:		Development/KDE and Qt
Requires:	%{libqassistant} = %{EVRD}

%description devel
This package contains the files necessary to build applications using the
deprecated QAssistantClient class (in the deprecated QtAssistantClient
library), which is used together with the legacy Assistant Document
Profile (.adp) version of Qt Assistant.

This class is obsolete. It is provided to keep old source code working. 
We strongly advise against using it in new code. New code should use the
Qt Help Framework introduced in Qt 4.4 and/or the version of Qt Assistant
based on it (also introduced in Qt 4.4) instead.

%files devel
%{qt4include}/QtAssistant/
%{qt4lib}/libQtAssistantClient.so
%{qt4lib}/libQtAssistantClient_debug.so
%{qt4lib}/libQtAssistantClient.prl
%{_libdir}/pkgconfig/QtAssistantClient.pc
%{qt4dir}/mkspecs/features/assistant.prf

#----------------------------------------------------------------------------

%prep
%setup -q -n qt-assistant-qassistantclient-library-compat-version-%{version}
%patch1 -p1 -b .build_system
mkdir include
cp -p %{SOURCE1} %{SOURCE2} include/

%build
# build assistant_adp
%qmake_qt4 QT_PRODUCT=OpenSource
%make

# build libQtAssistantClient
pushd lib
%qmake_qt4 CONFIG=create_prl
%make
popd

# build assistant_adp translations
pushd translations
lrelease assistant_adp_*.ts
popd

%install
# install assistant_adp
make install INSTALL_ROOT=%{buildroot}

# install libQtAssistantClient
make install INSTALL_ROOT=%{buildroot} -C lib

# install assistant_adp translations
mkdir -p %{buildroot}%{qt4dir}/translations
install -p -m644 translations/assistant_adp_*.qm \
                 %{buildroot}%{qt4dir}/translations

# install assistant.prf mkspec
install -D -p -m644 features/assistant.prf \
                    %{buildroot}%{qt4dir}/mkspecs/features/assistant.prf

# install missing headers (thanks to Fathi Boudra from Debian)
install -p -m644 include/Q* %{buildroot}%{qt4include}/QtAssistant/

# nuke dangling reference(s) to the buildroot
sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" %{buildroot}%{qt4lib}/*.prl

# let rpm handle binaries conflicts
mkdir %{buildroot}%{_bindir}
pushd %{buildroot}%{qt4bin}
mv assistant_adp ../../../bin/
ln -s ../../../bin/assistant_adp .
popd

# _debug target (see bug #196513)
pushd %{buildroot}%{qt4lib}
echo "INPUT(-lQtAssistantClient)" >libQtAssistantClient_debug.so
popd

# Note that we intentionally DO NOT install a .desktop file for assistant_adp
# because it makes no sense to invoke it without a specific .adp file to open.
# By default, it views the Qt documentation, for which we already have a menu
# entry using the current version of the Qt Assistant, and there is no UI for
# viewing anything different. The .adp file needs to be passed on the command
# line, which is usually done by the application.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7797 |21cr|qtcam-25.0.22-1.gitc3a8f0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname Qtcam

# There are no tagged releases: always use master HEAD
%define commit c3a8f0d6f7f82b23f0029e82f432f550c39ffd7b
%define commit_short %(echo %{commit} | head -c6)

Summary:	Open Source Linux Webcamera Software
Name:		qtcam
# See src/qml/qtcam/about/release.ini
Version:	25.0.22
Release:	1.git%{commit_short}.1
License:	GPLv3+
Group:		Video
Url:		https://www.e-consystems.com/opensource-linux-webcam-software-application.asp
Source0:	https://github.com/econsysqtcam/qtcam/archive/%{commit}.zip?/%{name}-%{commit}.zip
# The .desktop file provided byt the sources are malformed
Source1:	%{oname}.desktop
Patch0:		qtcam-20220328-fix-installation-path.patch
BuildRequires:	desktop-file-utils
BuildRequires:	dpkg
BuildRequires:	qmake5
BuildRequires:	imagemagick
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libv4lconvert)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9.1
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(udev)

%description
QtCAM is a free, Open Source Linux Webcamera software with more than 10 image
control settings,  extension settings and color space switching.

%files
%doc LICENSE README ChangeLog
%{_bindir}/%{oname}
%dir %{_datadir}/qml/%{name}
%{_datadir}/qml/%{name}/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{oname}.png

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

perl -pi -e "s|#include <sys/asoundlib.h>||" src/alsa.h
find . -type f -name "*.jpg" -exec convert {} -strip {} \;


%build
pushd src
	%setup_compile_flags
	%qmake_qt5
	export LIBS="${LIBS} -lpulse"
	%make
popd


%install
%makeinstall_qt -C src

# Fix executable placement
mkdir -p %{buildroot}%{_bindir}
cp -R %{buildroot}%{_prefix}/%{oname} %{buildroot}%{_bindir}/
rm -fr %{buildroot}%{_prefix}/%{oname}

# Add our menu entry
desktop-file-install %{SOURCE1} --dir=%{buildroot}%{_datadir}/applications

# Provide icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -strip -resize $size -background transparent src/qml/qtcam/about/images/logo.png \
		%{buildroot}%{_iconsdir}/hicolor/$size/apps/%{oname}.png
done

# Fix perms
chmod -x %{buildroot}%{_datadir}/qml/%{name}/UVCSettings/see3camcu27/*.qml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7798 |21cr|qtcurve-theme-neru-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru qtcurve theme
Name:		qtcurve-theme-neru
Version:	1.0
Release:	1
License:	LGPLv3
Group:		Graphical desktop/KDE
Url:		https://github.com/chistota/qtcurve-theme-neru
Source0:	https://github.com/chistota/qtcurve-theme-neru/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc LICENSE README.md
%dir %{_datadir}/QtCurve
%dir %{_datadir}/apps/QtCurve
%{_datadir}/QtCurve/*
%{_datadir}/apps/QtCurve/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/QtCurve
install -d %{buildroot}%{_datadir}/apps/QtCurve
cp -R QtCurve/* %{buildroot}%{_datadir}/QtCurve/
cp -R QtCurve/* %{buildroot}%{_datadir}/apps/QtCurve/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7799 |21cr|qtemu-1.0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define qtemudir %{_datadir}/qtemu

Summary:	A graphical user interface for QEMU
Name:		qtemu
Version:	1.0.5
Release:	6
Source0:	%{name}-%{version}.tar.bz2
Source10:	qtemu.png
Source11:	qtemu.16.png
Source12:	qtemu.48.png
Patch2:		qtemu-qemu-accelerators.patch
Source2:	processor.png
License:	GPLv2
Group:		Emulators
Url:		http://www.qtemu.org/
Requires:	qemu
BuildRequires:	cmake, qt4-devel >= 4.1, qt4-linguist

%description
QtEmu is a graphical user interface for QEMU written in Qt4. It has
the ability to run virtual operating systems on native systems. This
way you can easily test a new operating system or try a Live CD on
your system without any troubles and dangers.

%prep
%setup -q
%patch2 -p0 -b .qemu-accelerators
cp %{SOURCE2} images/

# fix qtemu data location
perl -pi -e \
	's|QCoreApplication::applicationDirPath\(\)|QString("%{qtemudir}")|g' \
	helpwindow.cpp main.cpp

%build
%cmake \
       -DCMAKE_INSTALL_PREFIX=%{qtemudir} \
%if "%{_lib}" != "lib"
       -DLIB_SUFFIX=64 \
%endif

%make

%install

%makeinstall_std -C build

# move files around
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{qtemudir}/bin/qtemu %{buildroot}%{_bindir}/
rmdir %{buildroot}%{qtemudir}/bin

# install icons
mkdir -p %{buildroot}%{_iconsdir}
install -m644 %{SOURCE10} %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_miconsdir}
install -m644 %{SOURCE11} %{buildroot}%{_miconsdir}/%{name}.png
mkdir -p %{buildroot}%{_liconsdir}
install -m644 %{SOURCE12} %{buildroot}%{_liconsdir}/%{name}.png

# install menu entries

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=QtEmu
Comment=A graphical user interface for QEMU
Exec=%{_bindir}/qtemu
Icon=%{name}
Type=Application
Terminal=false
Categories=X-MandrivaLinux-MoreApplications-Emulators;Emulator;
EOF

%clean

%files
%{_bindir}/qtemu
%dir %{qtemudir}
%{qtemudir}/*
# desktop integration
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7800 |21cr|qterm-0.7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	BBS client based on Qt library in Linux
Name:		qterm
Version:	0.7.4
Release:	1
License:	GPLv2+
Group:		Networking/Remote access
Source0:	https://github.com/qterm/qterm/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
URL:		https://github.com/qterm/qterm
BuildRequires:	qt5-devel
BuildRequires:	qt5-tools
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	cmake
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	desktop-file-utils

%description
QTerm is a BBS client in Linux

%files
%{_bindir}/*
%{_datadir}/%{name}
%{_iconsdir}/*/*/*/*
%{_datadir}/applications/%{name}.desktop

#---------------------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}

%build
%cmake_qt5 -DQT5=YES
%make

%install
%makeinstall_std -C build

desktop-file-install --vendor="" \
	--dir %{buildroot}%{_datadir}/applications \
	--remove-key="MimeTypes" \
	--remove-category="Application" \
	--add-category="RemoteAccess" \
	%{buildroot}%{_datadir}/applications/*.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7801 |21cr|qterminal-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt-based multitab terminal emulator
Name:		qterminal
Version:	0.14.1
Release:	1
License:	GPLv2+
Group:		Terminals
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/qterminal/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		qterminal-0.14.1-desktop.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(qtermwidget5)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
Qt-based multitab terminal emulator.

%files
%doc AUTHORS CHANGELOG LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/appdata/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}_drop.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .desktop

%build
%cmake

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7802 |21cr|qtermwidget-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 0
%define libname %mklibname qtermwidget %{api} %{major}
%define devname %mklibname qtermwidget %{api} -d

Summary:	Qt5 terminal widget
Name:		qtermwidget
Version:	0.14.1
Release:	1
License:	GPLv2+
Group:		Development/KDE and Qt
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/qtermwidget/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	qtermwidget.0.14.1_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	python3-qt5-devel
BuildRequires:	python3-sip4
BuildRequires:	qt5-linguist-tools
BuildRequires:	python3-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	%{libname} = %{EVRD}
Requires:	python3-%{name} = %{EVRD}

%description
QTermWidget is an open source project based on KDE Konsole application.
The main goal of this project is to provide unicode-enabled,
embeddable Qt widget for using as a built-in console (or terminal
emulation widget).

%files
%doc AUTHORS CHANGELOG LICENSE LICENSE.BSD-3-clause LICENSE.LGPL2+ README.md
%{_datadir}/%{name}5/

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt terminal widget - shared library
Group:		System/Libraries

%description -n %{libname}
This package provides shared library for Qt terminal widget.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{name}%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Qt terminal widget - devel package
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{name}-devel < 0.4.0-1
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides headers files for qtermwidget development.

%files -n %{devname}
%doc LICENSE
%{_includedir}/%{name}%{api}
%{_libdir}/lib%{name}%{api}.so
%{_libdir}/pkgconfig/%{name}%{api}.pc
%{_libdir}/cmake/%{name}%{api}

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:        Python bindings for %{name}
Group:          Development/Python

%description -n python3-%{name}
Python bindings for %{name}.

%files -n python3-%{name}
%doc LICENSE
%{py3_platsitedir}/*
%{_datadir}/sip/PyQt5/%{name}/%{name}.sip

#----------------------------------------------------------------------------

%prep
%setup -q

pushd lib/translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake \
	-DBUILD_EXAMPLE=ON \
	-DQTERMWIDGET_BUILD_PYTHON_BINDING=ON \
	-DUSE_UTF8PROC=ON
%make

sed -i 's!${prefix}//!${prefix}/!' qtermwidget%{api}.pc

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7803 |21cr|qtexengine-0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %name %major
%define develname %mklibname -d %name

Name: qtexengine
Version: 0.2
Release: 4
Summary: Library enabling Qt based applications to easily export graphics to TeX
License: GPLv3
Group: System/Libraries
URL: http://soft.proindependent.com/qtexengine/
Source0: http://download.berlios.de/qtiplot/QTeXEngine-%{version}-opensource.zip
# Fixes the build and install of QTeXEngine
Patch0: QTeXEngine-svn1552-path.patch
# Fixes between 0.2 and svn1552 checkout
Patch1: QTeXEngine-svn1552.patch
BuildRequires: qt4-devel doxygen

%description
QTeXEngine is a library enabling Qt based applications to easily export
graphics created using the QPainter class to TeX. It is built on top of
QPaintEngine and uses the TikZ/Pgf graphic systems for TeX.

%package -n %libname
Summary: Libraries for %{name}
Group: System/Libraries

%description -n %libname
This package contains library files of %{name}.

%package -n %develname
Summary: Development files for %{name}
Group: Development/KDE and Qt
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %develname
This package contains library, header file and documentation
for developing applications that use %{name}.

%prep
%setup -q -n QTeXEngine
%patch0 -p1
%patch1 -p1

rm -rf {example,test}/.svn

# Remove exec permission
find -type f -exec chmod 0644 {} ";"

%build
export PATH=%{_qt4_bindir}:$PATH
pushd src
%{qmake_qt4} CONFIG+=" QTeXEngineDll" LIBDIR=%{_libdir}
popd
%make -C src

pushd doc
doxygen Doxyfile
# Fix the time stamp
for file in html/*; do
 touch -r Doxyfile $file
done
popd

%install
rm -fr %buildroot
make install INSTALL="install -p" INSTALL_ROOT=%{buildroot} -C src

%clean
rm -rf %{buildroot}

%files -n %libname
%defattr(-,root,root,-)
%doc *.txt
%{_libdir}/libQTeXEngine.so.%{major}*

%files -n %develname
%defattr(-,root,root,-)
%doc doc/html example
%{_includedir}/QTeXEngine.h
%{_libdir}/libQTeXEngine.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7804 |21cr|qtkeychain-0.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Last with qt4 support, next release drop qt4

%define major 0
%define libname %mklibname %name %{major}
%define devname %mklibname %name -d

Summary:	Platform-independent Qt API for storing passwords securely
Name:		qtkeychain
Version:	0.11.1
Release:	1
License:	LGPLv2+
Group:		Development/KDE and Qt
Url:		https://github.com/frankosterfeld/qtkeychain
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt4-devel

%description
Platform-independent Qt API for storing passwords securely.

#----------------------------------------------------------------------------

%package common
Summary:	Common files for %{name} (translations etc)
Group:		System/Libraries
Requires:	%{name}-common

%description common
Common files for %{name} (translations etc).

%files common -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Platform-independent Qt API for storing passwords securely
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libname}
Platform-independent Qt API for storing passwords securely.

%files -n %{libname}
%{_libdir}/libqtkeychain.so.%{major}*
%{_libdir}/libqtkeychain.so.1

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and .so libraries for developing
%{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/QtKeychain

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt4 -DBUILD_WITH_QT4:BOOL=ON
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

rm %{buildroot}%{_prefix}/mkspecs/modules/qt_QtKeychain.pri
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7805 |21cr|qtkeychain-qt5-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname qtkeychain

%define	major 1
%define	libname %mklibname qt5keychain %{major}
%define	devname %mklibname qt5keychain -d

Summary:	Platform-independent Qt API for storing passwords securely
Name:		qtkeychain-qt5
Version:	0.12.0
Release:	1
License:	LGPLv2+
Group:		Development/KDE and Qt
Url:		https://github.com/frankosterfeld/qtkeychain
Source0:	https://github.com/frankosterfeld/qtkeychain/archive/%{oname}-%{version}.tar.gz
BuildRequires:	cmake >= 3.3
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)

%description
Platform-independent Qt API for storing passwords securely.

#----------------------------------------------------------------------------

%package common
Summary:	Common files for %{name} (translations etc)
Group:		System/Libraries

%description common
Common files for %{name} (translations etc).

%files common -f %{oname}.lang
%doc COPYING

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Platform-independent Qt API for storing passwords securely
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libname}
Platform-independent Qt API for storing passwords securely.

%files -n %{libname}
%doc COPYING
%{_libdir}/libqt5keychain.so.%{major}
%{_libdir}/libqt5keychain.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and .so libraries for developing
%{name}.

%files -n %{devname}
%doc ChangeLog COPYING ReadMe.md
%{_includedir}/qt5keychain
%{_libdir}/libqt5keychain.so
%{_libdir}/cmake/Qt5Keychain
%{_libdir}/qt5/mkspecs/modules/qt_Qt5Keychain.pri

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
%cmake_qt5	-DBUILD_WITH_QT6:BOOL=OFF \
			-DBUILD_TEST_APPLICATION:BOOL=OFF
%make


%install
%makeinstall_std -C build

# Move the .pri file in the right spot
mkdir -p %{buildroot}%{_libdir}/qt5/mkspecs/modules/
mv %{buildroot}%{_prefix}/mkspecs/modules/qt_Qt5Keychain.pri %{buildroot}%{_libdir}/qt5/mkspecs/modules/
rm -rf %{buildroot}%{_prefix}/mkspecs/*


%find_lang %{oname} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7806 |21cr|qtlockedfile-2.4.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit0  5a07df503a6f01280f493cbcc2aace462b9dee57

%define major 1
%define api 2.4
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d
%define libname5 %mklibname qt5lockedfile %{api} %{major}
%define devname5 %mklibname qt5lockedfile -d

Summary:	QFile extension with advisory locking functions
Name:		qtlockedfile
Version:	2.4.1
Release:	12
Group:		Development/KDE and Qt
License:	GPLv3 or LGPLv2 with exceptions
Url:		http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtlockedfile
#Source0:        https://qt.gitorious.org/qt-solutions/qt-solutions/archive/%{commit}.tar.gz#/%{name}-%{commit0}.tar.gz
Source0:        %{name}-%{commit0}.tar.gz
Source1:	qtlockedfile.prf
Source2:        LICENSE.LGPL
Source3:        LGPL_EXCEPTION
Source4:        LICENSE.GPL3
# (Fedora) don't build examples
Patch0:		qtlockedfile-dont-build-example.patch
# (Fedora) Remove unnecessary linkage to libQtGui
Patch1:		qtlockedfile-use-current-version.patch
BuildRequires:	qt4-devel
BuildRequires:  pkgconfig(Qt5Core)

%description
This class extends the QFile class with inter-process file locking
capabilities.

If an application requires that several processes should access the same file,
QtLockedFile can be used to easily ensure that only one process at a time is
writing to the file, and that no process is writing to it while others are
reading it.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	QFile extension with advisory locking functions
Group:		Development/KDE and Qt
Requires:	qt4-common
Conflicts:	%{_lib}qtlockedfile1 < 2.4.1-5
Obsoletes:	%{_lib}qtlockedfile1 < 2.4.1-5

%description -n %{libname}
This class extends the QFile class with inter-process file locking
capabilities.

If an application requires that several processes should access the same file,
QtLockedFile can be used to easily ensure that only one process at a time is
writing to the file, and that no process is writing to it while others are
reading it.

This is the library package for %{name}

%files -n %{libname}
%{_libdir}/libQtSolutions_LockedFile-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use QtLockedFile.

%files -n %{devname}
%doc doc example
%{_libdir}/libQtSolutions_LockedFile*.so
%{_qt_includedir}/QtSolutions
%{_qt_datadir}/mkspecs/features/%{name}.prf

#----------------------------------------------------------------------------

%package -n %{libname5}
Summary:	QFile extension with advisory locking functions
Group:		Development/KDE and Qt

%description -n %{libname5}
This class extends the QFile class with inter-process file locking
capabilities.

If an application requires that several processes should access the same file,
QtLockedFile can be used to easily ensure that only one process at a time is
writing to the file, and that no process is writing to it while others are
reading it.

This is the library package for %{name}

%files -n %{libname5}
%{_qt5_libdir}/libQt5Solutions_LockedFile-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname5}
Summary:	Development files for %{name} (Qt5)
Group:		Development/KDE and Qt
Requires:	%{libname5} = %{EVRD}
Provides:	qt5lockedfile-devel = %{EVRD}

%description -n %{devname5}
This package contains libraries and header files for developing applications
that use QtLockedFile in Qt5.

%files -n %{devname5}
%doc doc example
%{_qt5_libdir}/libQt5Solutions_LockedFile*.so
%{_qt5_includedir}/QtSolutions
%{_qt5_libdir}/qt5/mkspecs/features/%{name}.prf

#----------------------------------------------------------------------------

%prep
%setup -qn qt-solutions-%{commit0}/%{name}
# use versioned soname
sed -i s,head,%{api}, common.pri
mkdir licenses
cp %{SOURCE2} %{SOURCE3} %{SOURCE4} licenses
#%patch0 -p1 -b .no-example
#%patch1 -p1 -b .dont-link-qtgui

%build
touch .licenseAccepted
# Does not use GNU configure
./configure -library
mkdir qt5
pushd qt5
        %qmake_qt5 ..
        %make
popd

mkdir qt4
pushd qt4
        %qmake_qt4 ..
        %make
popd

%install
# libraries
mkdir -p %{buildroot}%{_qt5_libdir}
cp -ap lib/* %{buildroot}%{_qt5_libdir}

# headers
mkdir -p %{buildroot}%{_qt5_includedir}/QtSolutions
cp -a \
    src/qtlockedfile.h \
    src/QtLockedFile \
    %{buildroot}%{_qt5_includedir}/QtSolutions

mkdir -p %{buildroot}%{_qt5_libdir}/qt5/mkspecs/features
cp -a %{SOURCE1} %{buildroot}%{_qt5_libdir}/qt5/mkspecs/features/

mkdir -p %{buildroot}%{_qt_includedir}/QtSolutions
cp -a \
    src/qtlockedfile.h \
    src/QtLockedFile \
    %{buildroot}%{_qt_includedir}/QtSolutions

mkdir -p %{buildroot}%{_qt_datadir}/mkspecs/features
cp -a %{SOURCE1} %{buildroot}%{_qt_datadir}/mkspecs/features/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7807 |21cr|qt-mobility-1.2.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Build examples
%bcond_without examples
# Build demos
%bcond_without demos

%define major 1

%define snap 20110922

%define libnamedev %mklibname %{name} -d
%define libqtbearer %mklibname qtbearer %{major}
%define libqtcontacts %mklibname qtcontacts %{major}
%define libqtconnectivity %mklibname qtconnectivity %{major}
%define libqtfeedback %mklibname qtfeedback %{major}
%define libqtgallery %mklibname qtgallery %{major}
%define libqtlocation %mklibname qtlocation %{major}
%define libqtmultimediakit %mklibname qtmultimediakit %{major}
%define libqtorganizer %mklibname qtorganizer %{major}
%define libqtpublishsubscribe %mklibname qtpublishsubscribe %{major}
%define libqtsensors %mklibname qtsensors %{major}
%define libqtserviceframework %mklibname qtserviceframework %{major}
%define libqtsysteminfo %mklibname qtsysteminfo %{major}
%define libqtversit %mklibname qtversit %{major}
%define libqtversitorganizer %mklibname qtversitorganizer %{major}

%define _qt4_datadir		%{_prefix}/lib/qt4
%define _qt4_bindir		%{_qt4_datadir}/bin
%define _qt4_docdir		%{_docdir}/qt4
%define _qt4_libdir		%{_libdir}
%define _qt4_includedir		%{_qt4_datadir}/include
%define _qt4_plugindir		%{_libdir}/qt4/plugins
%define _qt4_demodir		%{_qt4_datadir}/demos
%define _qt4_exampledir		%{_qt4_datadir}/examples
%define _qt4_importdir		%{_qt4_datadir}/imports
%define _qt4_translationdir	%{_qt4_datadir}/translations

Summary:	Qt Mobility Framework
Name:		qt-mobility
Version:	1.2.2
Release:	5
License:	LGPLv2 with exceptions
Group:		Development/Other
Url:		http://qt.nokia.com/products/qt-addons/mobility
Source0:	http://get.qt.nokia.com/qt/add-ons/%{name}-opensource-src-%{version}.tar.xz
Patch0:		qt-mobility-opensource-src-1.2.2-gcc6.patch
Patch1:		qt-mobility-opensource-src-1.1.0-pulseaudio-lib.patch
Patch2:		qt-mobility-opensource-src-1.2.2-no_rpath.patch
# Patch from Fedora to install pkgconfig files
Patch4:		qt-mobility-opensource-src-1.2.2-pkgconfig.patch
Patch6:		qt-mobility-opensource-src-1.2.2-sensors_ftbfs.patch
## upstreamable patches
Patch50:	qt-mobility-opensource-src-1.2.0-translationsdir.patch
BuildRequires:	gdb
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xv)
Provides:	qt4-mobility = %{EVRD}

%description
Qt Mobility Project delivers a set of new APIs to Qt with features that are
well known from the mobile device world, in particular phones. However, these
APIs allow the developer to use these features with ease from one framework
and apply them to phones, netbooks and non-mobile personal computers. The
framework not only improves many aspects of a mobile experience, because it
improves the use of these technologies, but has applicability beyond the
mobile device arena.

%files
%doc LICENSE.LGPL LGPL_EXCEPTION.txt
%{_qt4_importdir}/QtMobility/
%{_qt4_importdir}/QtMultimediaKit/
%{_qt4_plugindir}/*
%if %{with examples}
%exclude %{_qt4_plugindir}/serviceframework/libserviceframework_bluetoothtransferplugin.so
%exclude %{_qt4_plugindir}/serviceframework/libserviceframework_filemanagerplugin.so
%exclude %{_qt4_plugindir}/serviceframework/libserviceframework_landlinedialerservice.so
%exclude %{_qt4_plugindir}/serviceframework/libserviceframework_notesmanagerplugin.so
%exclude %{_qt4_plugindir}/serviceframework/libserviceframework_voipdialerservice.so
%exclude %{_qt4_plugindir}/sensors/libqtsensors_grueplugin.so
%endif

#--------------------------------------------------------------------
%package -n %{libqtbearer}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtbearer}
Qt Mobility Framework library.

%files -n %{libqtbearer}
%{_qt4_libdir}/libQtBearer.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtcontacts}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtcontacts}
Qt Mobility Framework library.

%files -n %{libqtcontacts}
%{_qt4_libdir}/libQtContacts.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtconnectivity}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtconnectivity}
Qt Mobility Framework library.

%files -n %{libqtconnectivity}
%{_qt4_libdir}/libQtConnectivity.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtfeedback}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtfeedback}
Qt Mobility Framework library.

%files -n %{libqtfeedback}
%{_qt4_libdir}/libQtFeedback.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtgallery}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtgallery}
Qt Mobility Framework library.

%files -n %{libqtgallery}
%{_qt4_libdir}/libQtGallery.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtlocation}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtlocation}
Qt Mobility Framework library.

%files -n %{libqtlocation}
%{_qt4_libdir}/libQtLocation.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtmultimediakit}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtmultimediakit}
Qt Mobility Framework library.

%files -n %{libqtmultimediakit}
%{_qt4_libdir}/libQtMultimediaKit.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtorganizer}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtorganizer}
Qt Mobility Framework library.

%files -n %{libqtorganizer}
%{_qt4_libdir}/libQtOrganizer.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtpublishsubscribe}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtpublishsubscribe}
Qt Mobility Framework library.

%files -n %{libqtpublishsubscribe}
%{_qt4_libdir}/libQtPublishSubscribe.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtsensors}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtsensors}
Qt Mobility Framework library.

%files -n %{libqtsensors}
%{_qt4_libdir}/libQtSensors.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtserviceframework}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtserviceframework}
Qt Mobility Framework library.

%files -n %{libqtserviceframework}
%{_qt4_libdir}/libQtServiceFramework.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtsysteminfo}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtsysteminfo}
Qt Mobility Framework library.

%files -n %{libqtsysteminfo}
%{_qt4_libdir}/libQtSystemInfo.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtversit}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtversit}
Qt Mobility Framework library.

%files -n %{libqtversit}
%{_qt4_libdir}/libQtVersit.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libqtversitorganizer}
Summary:	Qt Mobility Framework library
Group:		System/Libraries

%description -n %{libqtversitorganizer}
Qt Mobility Framework library.

%files -n %{libqtversitorganizer}
%{_qt4_libdir}/libQtVersitOrganizer.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libnamedev}
Summary:	Qt Mobility Framework development files
Group:		Development/KDE and Qt
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	qt4-mobility-devel = %{EVRD}
Requires:	%{libqtbearer} = %{EVRD}
Requires:	%{libqtcontacts} = %{EVRD}
Requires:	%{libqtconnectivity} = %{EVRD}
Requires:	%{libqtfeedback} = %{EVRD}
Requires:	%{libqtgallery} = %{EVRD}
Requires:	%{libqtlocation} = %{EVRD}
Requires:	%{libqtmultimediakit} = %{EVRD}
Requires:	%{libqtorganizer} = %{EVRD}
Requires:	%{libqtpublishsubscribe} = %{EVRD}
Requires:	%{libqtsensors} = %{EVRD}
Requires:	%{libqtserviceframework} = %{EVRD}
Requires:	%{libqtsysteminfo} = %{EVRD}
Requires:	%{libqtversit} = %{EVRD}
Requires:	%{libqtversitorganizer} = %{EVRD}

%description -n %{libnamedev}
Development files to build applications that use Qt Webkit.

%files -n %{libnamedev}
%{_qt4_bindir}/icheck
%{_qt4_bindir}/ndefhandlergen
%{_qt4_bindir}/qcrmlgen
%{_qt4_bindir}/servicedbgen
%{_qt4_bindir}/servicefw
%{_qt4_bindir}/servicexmlgen
%{_qt4_bindir}/vsexplorer
%{_qt4_datadir}/mkspecs/features/mobility.prf
%{_qt4_datadir}/mkspecs/features/mobilityconfig.prf 
%{_qt4_includedir}/Qt*/
%{_qt4_libdir}/libQt*.prl
%{_qt4_libdir}/libQt*.so
%{_libdir}/pkgconfig/*.pc

#--------------------------------------------------------------------
%if %{with examples}
%package examples
Summary:	Qt Mobility Framework examples
Group:		System/X11
Provides:	qt4-mobility-examples = %{EVRD}

%description examples
Example files for the Qt Mobility Framework.

%files examples
%{_qt4_bindir}/accel
%{_qt4_bindir}/annotatedurl
%{_qt4_bindir}/arrowkeys
%{_qt4_bindir}/audiodevices
%{_qt4_bindir}/audioinput
%{_qt4_bindir}/audiooutput
%{_qt4_bindir}/audiorecorder
%{_qt4_bindir}/battery-publisher
%{_qt4_bindir}/battery-subscriber/
%{_qt4_bindir}/bearercloud
%{_qt4_bindir}/bearermonitor
%{_qt4_bindir}/btchat
%{_qt4_bindir}/btfiletransfer
%{_qt4_bindir}/btscanner
%{_qt4_bindir}/calendardemo
%{_qt4_bindir}/camera
%{_qt4_bindir}/cubehouse
%{_qt4_bindir}/declarative-music-browser
%{_qt4_bindir}/dialer_service
%{_qt4_bindir}/documentproperties
%{_qt4_bindir}/flickrdemo
%{_qt4_bindir}/hapticsplayer
%{_qt4_bindir}/hapticsquare
%{_qt4_bindir}/grueapp
%{_qt4_bindir}/landmarkbrowser
%{_qt4_bindir}/logfilepositionsource
%{_qt4_bindir}/mapsdemo
%{_qt4_bindir}/mediabrowser
%{_qt4_bindir}/metadata
%{_qt4_bindir}/metadata2
%{_qt4_bindir}/moreplaces.lmx
%{_qt4_bindir}/mylm.lmx
%{_qt4_bindir}/ndefeditor
%{_qt4_bindir}/nmealog.txt
%{_qt4_bindir}/orientation
%{_qt4_bindir}/places.gpx
%{_qt4_bindir}/publish-subscribe
%{_qt4_bindir}/qml_battery
%{_qt4_bindir}/qml_battery2
%{_qt4_bindir}/qml_camera
%{_qt4_bindir}/qml_device
%{_qt4_bindir}/qml_landmarkmap
%{_qt4_bindir}/qml_location_flickr
%{_qt4_bindir}/qml_mapviewer
%{_qt4_bindir}/qml_networkinfo
%{_qt4_bindir}/qml_poster
%{_qt4_bindir}/qml_scanner
%{_qt4_bindir}/qml_storageinfo
%{_qt4_bindir}/qmldialer
%{_qt4_bindir}/qmlnotes
%{_qt4_bindir}/qmlorganizer
%{_qt4_bindir}/qmlvideo
%{_qt4_bindir}/qmlvideofx
%{_qt4_bindir}/qsysinfo
%{_qt4_bindir}/qsystemalignedtimer
%{_qt4_bindir}/radio
%{_qt4_bindir}/samplephonebook
%{_qt4_bindir}/sensor_explorer
%{_qt4_bindir}/servicebrowser
%{_qt4_bindir}/sfw-notes
%{_qt4_bindir}/sfwecho_client
%{_qt4_bindir}/sfwecho_service
%{_qt4_bindir}/show_acceleration
%{_qt4_bindir}/show_als
%{_qt4_bindir}/show_compass
%{_qt4_bindir}/show_gyroscope
%{_qt4_bindir}/show_light
%{_qt4_bindir}/show_magneticflux
%{_qt4_bindir}/show_orientation
%{_qt4_bindir}/show_proximity
%{_qt4_bindir}/show_reflectance
%{_qt4_bindir}/show_rotation
%{_qt4_bindir}/show_tap
%{_qt4_bindir}/simplelog.txt
%{_qt4_bindir}/slideshow
%{_qt4_bindir}/todo
%{_qt4_bindir}/videographicsitem
%{_qt4_bindir}/videowidget
%{_qt4_bindir}/xmldata/*.xml
%{_qt4_exampledir}/qtsensors
%{_qt4_plugindir}/serviceframework/libserviceframework_bluetoothtransferplugin.so
%{_qt4_plugindir}/serviceframework/libserviceframework_filemanagerplugin.so
%{_qt4_plugindir}/serviceframework/libserviceframework_landlinedialerservice.so
%{_qt4_plugindir}/serviceframework/libserviceframework_notesmanagerplugin.so
%{_qt4_plugindir}/serviceframework/libserviceframework_voipdialerservice.so
%{_qt4_plugindir}/sensors/libqtsensors_grueplugin.so
%endif

#--------------------------------------------------------------------
%if %{with demos}
%package demos
Summary:	Qt Mobility Framework demos
Group:		System/X11
Provides:	qt4-mobility-demos = %{EVRD}
Conflicts:	qt-mobility-examples < 1.2.2

%description demos
Example files for the Qt Mobility Framework.

%files demos
%{_qt4_bindir}/bttennis
%{_qt4_bindir}/lightmaps_with_location
%{_qt4_bindir}/player
%{_qt4_bindir}/qmlcontacts
%{_qt4_bindir}/qml_tennis
%{_qt4_bindir}/smallsensors
%{_qt4_bindir}/weatherinfo_with_location
%endif

#--------------------------------------------------------------------
%prep
%setup -qn %{name}-opensource-src-%{version}
%patch0 -p1 -b .gcc6
%patch1 -p1 -b .pulseaudio_lib
%patch2 -p1 -b .no_rpath
%patch4 -p1 -b .pkgconfig
%patch6 -p1 -b .sensors
%patch50 -p1 -b .translationsdir

%build
PATH="%{_qt4_bindir}:$PATH"; export PATH

./configure \
    -prefix %{_qt4_datadir} \
    -libdir %{_qt4_libdir} \
    -plugindir %{_qt4_plugindir} \
    %{?with_examples:-examples} \
    %{?with_demos:-demos}

%make

%install
%makeinstall INSTALL_ROOT=%{buildroot}

# Remove local build path from pkgconfig files
sed -i s," .*BUILD[^ ]*",, %{buildroot}%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7808 |21cr|qtox-1.17.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qTox
%define Werror_cflags %{nil}

Summary:	qTox is a powerful Tox client
Name:		qtox
Version:	1.17.6
Release:	2
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://qtox.github.io/
Source0:	https://github.com/tux3/qTox/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		qtox-1.4.1-edit_qTox.desktop.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	toxcore-devel
BuildRequires:	cmake(KF5Sonnet)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(filteraudio)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libqrencode)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sqlcipher)
BuildRequires:	pkgconfig(xscrnsaver)

%description
qTox is a powerful Tox client that follows the Tox design guidelines.
Tox is a decentralized and encrypted replacement for Skype, supporting
chats, audio, and video calls.

%files
%doc LICENSE
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_datadir}/applications/io.github.%{name}.%{oname}.desktop
%{_datadir}/metainfo/io.github.%{name}.%{oname}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake
%make -s

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/%{name}/audio
mkdir -p %{buildroot}%{_datadir}/%{name}/audio/original
install -m644 audio/*.{pcm,md} %{buildroot}%{_datadir}/%{name}/audio
install -m644 audio/original/* %{buildroot}%{_datadir}/%{name}/audio/original

mkdir -p %{buildroot}%{_datadir}/%{name}/translations
install -m644 build/*.qm %{buildroot}%{_datadir}/%{name}/translations

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7809 |21cr|qtparted-0.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with qt_embedded
%bcond_with kapabilities

%define with_kapabilities 1
%define debug_package %{nil}

Name:		qtparted
Version:	0.6.0
Release:	5
Summary:	Graphical Partitioning Tool
License:	GPL
Group:		System/Kernel and hardware
URL:		http://qtparted.sf.net/
Source:		http://freefr.dl.sourceforge.net/project/qtparted/qtparted-%version/qtparted-%version.tar.xz
Source10:	qtparted.pamd
Source11:	qtparted.pam
Patch0:		qtparted-desktop.patch
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(libparted)
Requires:	qtparted-data = %{version}-%{release}
Provides:	%{name}-ui = %{version}-%{release}

%description
QtParted is a graphical partition editor, similar to PartitionMagic(tm).

%package data
Summary:	Data files common to qtparted and qtparted-nox
Group:		System/Kernel and hardware
BuildArch:	noarch
Requires:	%{name}-ui = %{version}-%{release}

%description data
Data files common to qtparted and qtparted-nox.

%package nox
Summary:	A version of the QtParted partition editor that runs without X11
Group:		System/Kernel and hardware
Requires:	%{name}-data = %{version}-%{release}
Provides:	%{name}-ui = %{version}-%{release}

%description nox
A version of the QtParted partition editor that runs without X11.

%prep
%setup -q
%patch0 -p0

%build
# Actual build happens in %%install so we can install 2 different copies
# (linked against Qt-X11 and Qt-Embedded)

%install
%if %{with qt_embedded}
cmake -DQT_QMAKE_EXECUTABLE=%{_libdir}/qt4-embedded/bin/qmake -DQT_RPATH:BOOL=TRUE -DCMAKE_INSTALL_PREFIX=%{_prefix} .
%make

%makeinstall_std
make clean
find . -name "CMakeCache.txt" |xargs rm -f
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-nox
%endif

cmake -DCMAKE_INSTALL_PREFIX=%{_prefix} .
#cmake_qt4
%make

%makeinstall_std

%if %{with kapabilities}
# pam/kapabilities support
mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
ln -s consolehelper %{buildroot}%{_bindir}/qtparted
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 -D %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/qtparted
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
install -m 644 -D %{SOURCE11} %{buildroot}%{_sysconfdir}/security/console.apps/qtparted
%endif

%files
%if %{with kapabilities}
%{_sbindir}/qtparted
%config(noreplace) %{_sysconfdir}/pam.d/*
%config(noreplace) %{_sysconfdir}/security/console.apps/*
%endif
%{_bindir}/*
%{_datadir}/applications/*

%files data
%{_datadir}/%{name}
%{_datadir}/pixmaps/*

%if %{with qt_embedded}
%files nox
%{_sbindir}/qtparted-nox
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7810 |21cr|qtractor-0.9.91-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with	qt6

Summary:	An Audio/MIDI multi-track sequencer
Name:		qtractor
Version:	0.9.91
Release:	1
License:	GPLv2+
Group:		Sound
# See also: https://github.com/rncbc/qtractor
Url:		https://sourceforge.net/projects/qtractor/
Source0:	https://sourceforge.net/projects/qtractor/files/qtractor/%{name}-%{version}.tar.gz
Patch0:		qtractor-0.9.91-fix-version.patch
BuildRequires:	cmake >= 3.15
BuildRequires:	desktop-file-utils
BuildRequires:	nsm
BuildRequires:	qt5-linguist-tools
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(aubio) >= 0.4.1
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(lilv-0)
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(mad)
%if %{without qt6}
BuildRequires:	pkgconfig(Qt5Core) >= 5.1
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
%else
BuildRequires:	pkgconfig(Qt6Core)
BuildRequires:	pkgconfig(Qt6Gui)
BuildRequires:	pkgconfig(Qt6Network)
BuildRequires:	pkgconfig(Qt6Svg)
BuildRequires:	pkgconfig(Qt6Widgets)
%endif
BuildRequires:	pkgconfig(rubberband) >= 1.0.1
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(suil-0)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(zlib)
Requires:	dssi
Requires:	ladspa
# Dropped from 0.9.36: see upstream commit 363ba665d21f8558e71e932d79fc3278091e390c
#Requires:	suil-x11-in-qt5
#Requires:	suil-gtk2-in-qt5

%description
Qtractor is an Audio/MIDI multi-track sequencer application written in C++
around the Qt toolkit using Qt Designer. The initial target platform will be
Linux, where the Jack Audio Connection Kit (JACK) for audio, and the Advanced
Linux Sound Architecture (ALSA) for MIDI, are the main infrastructures to
evolve as a fairly-featured Linux Desktop Audio Workstation GUI, specially
dedicated to the personal home-studio.

%files -f %{name}.lang
%doc ChangeLog LICENSE README README.*
%{_bindir}/%{name}
# (gvm) They are now putting the out-of-process plugin scan binary in %%{_libdir}:
# see commit e308350955a72ab55018e507c53a8712e26efe14 in GitHub.
# For now keep it as-is; eventually revert it...
%{_libdir}/%{name}/%{name}_plugin_scan
%{_datadir}/%{name}/audio/*.wav
%{_datadir}/%{name}/palette/*.conf
%{_datadir}/%{name}/instruments/*.ins
%{_datadir}/metainfo/org.rncbc.%{name}.metainfo.xml
%{_datadir}/applications/org.rncbc.%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/org.rncbc.%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/org.rncbc.%{name}.svg
%{_datadir}/icons/hicolor/32x32/mimetypes/*.png
%{_datadir}/icons/hicolor/scalable/mimetypes/*.svg
%{_datadir}/mime/packages/org.rncbc.%{name}.xml
%{_mandir}/man1/%{name}.1*
%{_mandir}/fr/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

chmod -x src/qtractorMmcEvent.*


%build
%cmake .. \
			-DCONFIG_GRADIENT=YES \
			-DCONFIG_XUNIQUE=YES \
%ifarch aarch64
			-DCONFIG_SSE=NO \
%else
			-DCONFIG_SSE=YES	 \
%endif
%if %{without qt6}
			-DCONFIG_QT6=NO \
%else
			-DCONFIG_QT6=YES \
%endif
			-DCONFIG_VST3=NO \
			-DCONFIG_LV2_UI_GTKMM2=YES

%make


%install
%makeinstall_std -C build

# Fix the .desktop file 
desktop-file-edit --remove-key="Version" %{buildroot}%{_datadir}/applications/org.rncbc.%{name}.desktop

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7811 |21cr|qtradio-0.9.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	QtRadio

Summary:	Listen to the radio with QtRadio
Name:		qtradio
Version:	0.9.1
Release:	3
License:	GPLv2
URL:		http://sourceforge.net/projects/qtradio/
Group:		Sound
Source0:	%{oname}-%{version}.tar.gz
Patch0:		qtradio-0.9.1-install.patch


BuildRequires:	qt4-devel

%description
QtRadio - listen to the radio with QtRadio.
It should work with every FM tuner card that is supported
by video4linux. 
It has support for remote controls via lirc-support
and recording to file.


%prep
%setup -qn %{oname}-%{version}
%patch0 -p0 


%build
%qmake_qt4
%make

%install
%makeinstall INSTALL_ROOT=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %buildroot%{_datadir}/applications/%name.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=%name
Name=QtRadio
Comment=QtRadio - listen to the radio with QtRadio.
Categories=Audio;
EOF

rm -fr %{buildroot}/usr/doc

mkdir -p %{buildroot}%{_datadir}/pixmaps
cp -R %{buildroot}%{_datadir}/QtRadio/icons/qtradio.png %{buildroot}%{_datadir}/pixmaps/qtradio.png

%files
%doc DOC/english.html DOC/README-UA-koi8-u.txt AUTHORS COPYING ChangeLog TODO
%{_bindir}/*
%{_datadir}/QtRadio/
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/qtradio.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7812 |21cr|qt-recordmydesktop-0.3.8-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname recordMyDesktop
%define qtoname qt-%{oname}

Summary:	Qt4 frontend for recordmydesktop
Name:		qt-recordmydesktop
Version:	0.3.8
Release:	15
License:	GPLv2+
Group:		Video
Url:		http://recordmydesktop.sourceforge.net
Source0:	http://downloads.sourceforge.net/recordmydesktop/%{name}-%{version}.tar.bz2
Source1:	qt-recordmydesktop_ru-0.3.8.po
Patch0:		python2.diff
BuildRequires:	autoconf
BuildRequires:	desktop-file-utils
BuildRequires:	glib-gettextize
BuildRequires:	imagemagick
BuildRequires:	qt4-devel
BuildRequires:	python2-qt4
BuildRequires:	pkgconfig(python)
Requires:	recordmydesktop >= %{version}
Requires:	python2-qt4-gui
BuildArch:	noarch

%description
Qt4 frontend for recordmydesktop tool.

%files -f %{qtoname}.lang
%doc AUTHORS ChangeLog README
%attr(755,root,root) %{_bindir}/*
%{py2_puresitedir}/qt_%{oname}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.*g
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp %{SOURCE1} po/ru.po

%build
export PYTHON=/usr/bin/python2
autoconf
%configure
%make

%install
%makeinstall_std

sed '1 s,^.*$,#!/usr/bin/python2,' -i %{buildroot}%{_bindir}/qt-recordMyDesktop

#(tpg) drop icon extension
sed -i -e 's/^Icon=%{name}.png$/Icon=%{name}/g' %{buildroot}%{_datadir}/applications/*

desktop-file-install \
	--add-category='Video;Qt' \
	--add-only-show-in='KDE' \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*.desktop

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64,scalable}/apps
convert src/%{name}.png -scale 16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert src/%{name}.png -scale 32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert src/%{name}.png -scale 48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m 644 src/%{name}.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -m 644 src/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

%find_lang %{qtoname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7813 |21cr|qtrsync-alpha.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	AppName	QtRsync

Name:		qtrsync
Version:	alpha.0.1
Release:	6
License:	GPLv2+
URL:		http://www.qt-apps.org/content/show.php/QtRsync?content=75828
Source:		%{AppName}-%{version}.tar.gz
BuildRequires:	qt4-devel
Requires:	rsync
Group:		Networking/WWW
Summary:	Qt4 rsync GUI

%description
QtRsync is a simple qt-based GUI for the rsync tool.

%prep
%setup -qn %{AppName}-%{version}

%build
%qmake_qt4 PREFIX=%{_prefix} 
%make

%install
make install INSTALL_ROOT=%{buildroot}

%clean

%files
%doc INSTALL
%{_bindir}/qtrsync
%{_datadir}/applications/qtrsync.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7814 |21cr|qtscriptgenerator-0.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to generate Qt bindings for Qt Script
Name:		qtscriptgenerator
Version:	0.2.0
Release:	5
License:	GPLv2+
Group:		System/Libraries
Url:		http://code.google.com/p/qtscriptgenerator/
Source0:	http://qtscriptgenerator.googlecode.com/files/qtscriptgenerator-src-%{version}.tar.gz
Patch0:		qtscriptgenerator-src-0.1.0-fix-strings.patch
Patch1:		include_everything.patch
Patch2:		qtscriptgenerator-src-0.1.0-fix-build.patch
BuildRequires:	libxslt-proc
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(phonon)
# not strictly required, but the expectation would be for the
# bindings to be present
Requires:	qtscriptbindings = %{EVRD}

%description
Qt Script Generator is a tool to generate Qt bindings for Qt Script.

%files
%{qt4bin}/generator

#----------------------------------------------------------------------------

%package -n qtscriptbindings
Summary:	Qt bindings for Qt Script
Group:		System/Libraries
Provides:	qtscript-qt = %{EVRD}
Requires:	qt4-common

%description -n qtscriptbindings
Bindings providing access to substantial portions of the Qt API
from within Qt Script.

%files -n qtscriptbindings
%doc README
%doc README.qsexec
%doc doc/
%doc examples/
%{_bindir}/qsexec
%{qt4plugins}/script/libqtscript*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-src-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p0

%build

# workaround buildsys bogosity, see also:
# http://code.google.com/p/qtscriptgenerator/issues/detail?id=38
export INCLUDE=%{qt4include}

pushd generator
%qmake_qt4 generator.pro
make
./generator
popd

pushd qtbindings
%qmake_qt4 qtbindings.pro
%make
popd

pushd tools/qsexec/src
%qmake_qt4 qsexec.pro
%make
popd

%install
mkdir -p %{buildroot}%{qt4plugins}/script/

# install doesn't do symlinks
cp -a plugins/script/libqtscript* \
  %{buildroot}%{qt4plugins}/script/

cp -a tools/qsexec/README.TXT README.qsexec
install -D -p -m755 tools/qsexec/qsexec %{buildroot}%{_bindir}/qsexec

install -D -p -m755 generator/generator %{buildroot}%{qt4bin}/generator

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7815 |21cr|qtsingleapplication-2.6.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit0                ee17851b42f21bb92c4b7581e80c0319e5384e6b

%define debug_package %{nil}
# Upstream uses weird versioning convention
#define upstreamver 2.6_1
#define oversion %%(echo %%{upstreamver} | sed 's!_!.!' )

%define api 2.6
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d
%define libcore %mklibname qtsinglecoreapplication %{api} %{major}
%define devcore %mklibname qtsinglecoreapplication -d

%define libname_qt5 %mklibname %{name}-qt5_ %{api} %{major}
%define devname_qt5 %mklibname %{name}-qt5 -d
%define libcore_qt5 %mklibname qtsinglecoreapplication-qt5_ %{api} %{major}
%define devcore_qt5 %mklibname qtsinglecoreapplication-qt5 -d

Summary:	Qt library to start applications only once per user
Name:		qtsingleapplication
Version:	2.6.1
Release:	12
License:	GPLv3+ or LGPLv2+ with exceptions
Group:		Development/KDE and Qt
Url:		http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtsingleapplication
#Source0:	https://github.com/qtproject/qt-solutions/archive/%{commit0}.tar.gz#/%{name}-%{commit0}.tar.gz
Source0:	%{name}-%{commit0}.tar.gz
# The following source and 2 patches are sent upstream:
# http://bugreports.qt.nokia.com/browse/QTSOLBUG-119
# To add qmake support for convenience for packages using this library:
Source1:	qtsingleapplication.prf
Source2:	qtsinglecoreapplication.prf
# Proposed upstream in https://codereview.qt-project.org/#/c/92411/
Source3:        LGPL_EXCEPTION
# Proposed upstream in https://codereview.qt-project.org/#/c/92416/
Patch0:         qtsingleapplication-2.6.1-fda-build-qtsinglecoreapplication.patch
# Proposed upstream in https://codereview.qt-project.org/#/c/92415/
Patch1:         qtsingleapplication-2.6.1-fda-remove-included-qtlockedfile.patch
# Features for unbundling in Qupzilla, https://github.com/QupZilla/qupzilla/issues/1503
Patch2:         qtsingleapplication-2.6.1-fda-qupzilla.patch
BuildRequires:  qt4-devel
BuildRequires:  qtlockedfile-devel
BuildRequires:  qt5-devel
BuildRequires:  qt5lockedfile-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Widgets)

%description
For some applications it is useful or even critical that they are started
only once by any user. Future attempts to start the application should
activate any already running instance, and possibly perform requested
actions, e.g. loading a file, in that instance.

The QtSingleApplication class provides an interface to detect a running
instance, and to send command strings to that instance.

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt library to start applications only once per user
Group:		Development/KDE and Qt
Conflicts:	%{_lib}qtsingleapplication1 < 2.6.1-8
Obsoletes:	%{_lib}qtsingleapplication1 < 2.6.1-8

%description -n %{libname}
For some applications it is useful or even critical that they are started
only once by any user. Future attempts to start the application should
activate any already running instance, and possibly perform requested
actions, e.g. loading a file, in that instance.

The QtSingleApplication class provides an interface to detect a running
instance, and to send command strings to that instance.

This is the library package for QtSingleApplication.

%files -n %{libname}
%{_qt_libdir}/libQtSolutions_SingleApplication-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	qtsingleapplication-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use QtSingleApplication.

%files -n %{devname}
%doc doc examples
%{_qt_libdir}/libQtSolutions_SingleApplication*.so
%dir %{_qt_includedir}/QtSolutions/
%{_qt_includedir}/QtSolutions/QtSingleApplication
%{_qt_includedir}/QtSolutions/%{name}.h
%{_qt_datadir}/mkspecs/features/%{name}.prf

#----------------------------------------------------------------------------

%package -n %{libcore}
Summary:	Qt library to start applications only once per user
Group:		Development/KDE and Qt
Conflicts:	%{_lib}qtsinglecoreapplication1 < 2.6.1-8
Obsoletes:	%{_lib}qtsinglecoreapplication1 < 2.6.1-8

%description -n %{libcore}
For some applications it is useful or even critical that they are started
only once by any user. Future attempts to start the application should
activate any already running instance, and possibly perform requested
actions, e.g. loading a file, in that instance.

For console (non-GUI) applications, the QtSingleCoreApplication variant
is provided, which avoids dependency on QtGui.

This is the library package for QtSingleCoreApplication.

%files -n %{libcore}
%{_qt_libdir}/libQtSolutions_SingleCoreApplication-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devcore}
Summary:	Development files for qtsinglecoreapplication
Group:		Development/KDE and Qt
Requires:	%{libcore} = %{EVRD}
Provides:	qtsinglecoreapplication-devel = %{EVRD}

%description -n %{devcore}
This package contains libraries and header files for developing applications
that use QtSingleCoreApplication.

%files -n %{devcore}
%{_qt_libdir}/libQtSolutions_SingleCoreApplication*.so
%dir %{_qt_includedir}/QtSolutions/
%{_qt_includedir}/QtSolutions/QtSingleCoreApplication
%{_qt_includedir}/QtSolutions/qtsinglecoreapplication.h
%{_qt_datadir}/mkspecs/features/qtsinglecoreapplication.prf

#----------------------------------------------------------------------------

%package -n %{libname_qt5}
Summary:        Qt5 library to start applications only once per user
Group:          Development/KDE and Qt

%description -n %{libname_qt5}
For some applications it is useful or even critical that they are started
only once by any user. Future attempts to start the application should
activate any already running instance, and possibly perform requested
actions, e.g. loading a file, in that instance.

The QtSingleApplication class provides an interface to detect a running
instance, and to send command strings to that instance.

This is the library package for QtSingleApplication.

This is a special build against Qt5.

%files -n %{libname_qt5}
%doc README.TXT licenses/LGPL_EXCEPTION
%{_qt5_libdir}/lib*Qt5Solutions_SingleApplication*.so.%{major}*

# ----------------------------

%package -n %{devname_qt5}
Summary:        Development files for %{name}-qt5
Group:          Development/KDE and Qt
Requires:       %{libname_qt5} = %{EVRD}

%description -n %{devname_qt5}
This package contains libraries and header files for developing applications
that use QtSingleApplication with Qt5.

%files -n %{devname_qt5}
%doc doc/html/ examples/
%{_qt5_libdir}/lib*Qt5Solutions_SingleApplication*.so
%dir %{_qt5_includedir}/QtSolutions/
%{_qt5_includedir}/QtSolutions/QtSingleApplication
%{_qt5_includedir}/QtSolutions/%{name}.h
%{_qt5_libdir}/qt5/mkspecs/features/qtsingleapplication.prf

# ----------------------------

%package -n %{libcore_qt5}
Summary:        Qt5 library to start applications only once per user
Group:          Development/KDE and Qt

%description -n %{libcore_qt5}
For some applications it is useful or even critical that they are started
only once by any user. Future attempts to start the application should
activate any already running instance, and possibly perform requested
actions, e.g. loading a file, in that instance.

For console (non-GUI) applications, the QtSingleCoreApplication variant
is provided, which avoids dependency on QtGui.

This is a special build against Qt5.

%files -n %{libcore_qt5}
%{_qt5_libdir}/lib*Qt5Solutions_SingleCoreApplication*.so.%{major}*

#----------------------------------------------------------------------------

%package -n     %{devcore_qt5}
Summary:        Development files for qtsinglecoreapplication-qt5
Group:          Development/KDE and Qt
Requires:       %{libcore_qt5} = %{EVRD}

%description -n %{devcore_qt5}
This package contains libraries and header files for developing applications
that use QtSingleCoreApplication with Qt5.

%files -n %{devcore_qt5}
%{_qt5_libdir}/lib*Qt5Solutions_SingleCoreApplication*.so
%dir %{_qt5_includedir}/QtSolutions/
%{_qt5_includedir}/QtSolutions/QtSingleCoreApplication
%{_qt5_includedir}/QtSolutions/qtsinglecoreapplication.h
%{_qt5_libdir}/qt5/mkspecs/features/qtsinglecoreapplication.prf

#----------------------------------------------------------------------------
%prep
%setup -qnqt-solutions-%{commit0}/%{name}
%patch0 -p0
%patch1 -p0
%patch2 -p1

# use versioned soname
sed -i "s,head,%(echo '%{version}' |sed -r 's,(.*)\..*,\1,'),g" common.pri

mkdir licenses
cp -p %{SOURCE3} licenses

# We already disabled bundling this external library.
# But just to make sure:
rm -rf ../qtlockedfile/
sed -i 's,qtlockedfile\.h,QtSolutions/\0,' src/qtlocalpeer.h
rm src/{QtLocked,qtlocked}*

mkdir qt5
cp -p %{SOURCE1} %{SOURCE2} qt5
sed -i -r 's,-lQt,\05,' qt5/qtsingleapplication.prf
sed -i -r 's,-lQt,\05,' qt5/qtsinglecoreapplication.prf

# additional header needed for Qt5.5
sed -i -r 's,.include,\0 <QtCore/QDataStream>\n\0,' src/qtlocalpeer.h

%build
touch .licenseAccepted
# Does not use GNU configure
./configure -library
%qmake_qt4
%make

pushd qt5
%qmake_qt5 ..
%make
popd

%install
# libraries
mkdir -p %{buildroot}%{_libdir}
cp -a lib/* %{buildroot}%{_libdir}
chmod 755 %{buildroot}%{_libdir}/*.so*

# headers
mkdir -p %{buildroot}%{_qt_includedir}/QtSolutions
cp -ap \
    src/qtsingleapplication.h \
    src/QtSingleApplication \
    src/qtsinglecoreapplication.h \
    src/QtSingleCoreApplication \
    %{buildroot}%{_qt_includedir}/QtSolutions

mkdir -p %{buildroot}%{_qt5_includedir}
# symlink is not possible due to split into individual subpackages
cp -ap %{buildroot}%{_qt_includedir}/QtSolutions %{buildroot}%{_qt5_includedir}

mkdir -p %{buildroot}%{_qt_datadir}/mkspecs/features %{buildroot}%{_qt5_libdir}/qt5/mkspecs/features
install -p -m644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_qt_datadir}/mkspecs/features
install -p -m644 qt5/*.prf %{buildroot}%{_qt5_libdir}/qt5/mkspecs/features

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7816 |21cr|qtsixa-1.5.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname QtSixA

Summary:	The Sixaxis Joystick Manager
Name:		qtsixa
Version:	1.5.1
Release:	13
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://qtsixa.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{oname}%20%{version}/%{oname}-%{version}-src.tar.xz
Source1:	sixad.service
Patch0:		qtsixa-1.5.1-gcc4.7.patch
BuildRequires:	systemd
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	python2-qt4-devel
Requires:	bluez
Requires:	bluez-hcidump
Requires:	libnotify
Requires:	python2-dbus
Requires:	python2-qt4
Requires:	sixad = %{EVRD}
Requires:	xdg-utils

%description
This package provides a useful GUI to control the sixad modules.

QtSixA is written in PyQt.

%files
%{_bindir}/sixad-*
%{_bindir}/qtsixa
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

#----------------------------------------------------------------------------

%package -n sixad
Summary:	[Qt]SixA Daemon
Group:		System/Configuration/Hardware
Requires(post,preun):	systemd

%description -n sixad
This package provides the modules (called 'sixad') for connecting PS3 hardware
(Sixaxis/DualShock3 and Keypads) to a Linux-compatible machine.

Currently sixad supports:
 - Sixaxis buttons, axis, accelerometers and LEDs
 - PS3 Keypads

sixad also registers the Sixaxis and Keypad's MAC/ID in the joystick name
(ex: "PLAYSTATION(R)3 Controller (00:XX:X0:0X:XX)".

sixad is triggered by udev, making it super easy to connect new devices
(you just need to press the PS button).

%files -n sixad
%config(noreplace) %{_sysconfdir}/default/sixad
%{_sbindir}/sixad-*
%{_sbindir}/hidraw-dump
%{_sbindir}/sixpair
%{_sbindir}/sixpair-kbd
%{_bindir}/sixad
%{_unitdir}/sixad.service
%{_sysconfdir}/init.d/sixad
%{_sysconfdir}/logrotate.d/sixad

%post -n sixad
%systemd_post sixad.service

%preun -n sixad
%systemd_preun sixad.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n QtSixA-%{version}

%build
CFLAGS="%{optflags}" %make

%install
%makeinstall_std
install -d %{buildroot}%{_unitdir}
install -D -p -m 0755 %{SOURCE1} %{buildroot}%{_unitdir}/sixad.service

#symlink
pushd %{buildroot}%{_datadir}/%{name}
	ln -s %{_sysconfdir}/qtsixa.conf .
popd

#set python shebang
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/{sixad-notify,sixad-lq}
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_sbindir}/sixad-dbus-blocker


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7817 |21cr|qtspell-0.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libqt5 %mklibname qtspell-qt5_ %{major}
%define devqt5 %mklibname qtspell-qt5 -d

Summary:	Spell checking for Qt text widgets
Name:		qtspell
Version:	0.8.1
Release:	5
License:	GPLv3+
Group:		System/Libraries
Url:		https://github.com/manisandro/qtspell
Source0:	https://github.com/manisandro/qtspell/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	iso-codes

%description
QtSpell adds spell-checking functionality to Qt's text widgets, using the
enchant spell-checking library.

#----------------------------------------------------------------------------

%package qt5-i18n
Summary:	QtSpell Qt5 translations
Group:		System/Internationalization
BuildArch:	noarch

%description qt5-i18n
QtSpell Qt5 translations.

%files qt5-i18n
%{_qt5_translationsdir}/QtSpell_*.qm

#----------------------------------------------------------------------------

%package -n %{libqt5}
Summary:	Spell checking for Qt text widgets shared library
Group:		System/Libraries
Requires:	%{name}-qt5-i18n

%description -n %{libqt5}
Spell checking for Qt text widgets shared library.

%files -n %{libqt5}
%{_libdir}/libqtspell-qt5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devqt5}
Summary:	Spell checking for Qt text widgets development files
Group:		System/Libraries
Requires:	%{libqt5} = %{EVRD}
Provides:	%{name}-qt5-devel = %{EVRD}

%description -n %{devqt5}
Spell checking for Qt text widgets development files.

%files -n %{devqt5}
%{_includedir}/QtSpell-qt5/QtSpell.hpp
%{_libdir}/libqtspell-qt5.so
%{_libdir}/pkgconfig/QtSpell-qt5.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5 \
	-DUSE_QT5=ON

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7818 |21cr|qtweetlib-0.5.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ Qt based Twitter library
Name:		qtweetlib
Version:	0.5.0
Release:	8
License:	GPLv2+
Group:		System/Libraries
Source0:	%{name}-%{version}.tar.gz
Url:		https://github.com/dschmidt/QTweetLib
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(QJson)

%description
C++ Qt based Twitter library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ Qt based Twitter library
Group:		System/Libraries
Conflicts:	%{_lib}qtweetlib1 < 0.5.0-4
Obsoletes:	%{_lib}qtweetlib1 < 0.5.0-4

%description -n %{libname}
C++ Qt based Twitter library.

%files -n %{libname}
%{_libdir}/libQTweetLib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	C++ Qt based Twitter library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
C++ Qt based Twitter library (development package).

%files -n %{devname}
%{_libdir}/libQTweetLib.so
%{_includedir}/QTweetLib/

#----------------------------------------------------------------------------

%prep
%setup -qn minimoog-QTweetLib-2af0b78

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7819 |21cr|quaddouble-2.3.14-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname	%mklibname -d -s qd

%define debug_package %{nil}

Epoch:		1
Name:		quaddouble
Group:		Sciences/Mathematics
License:	BSD
Summary:	Double-Double and Quad-Double Arithmetic
Version:	2.3.14
Release:	3
Source0:	http://crd.lbl.gov/~dhbailey/mpdist/qd-%{version}.tar.gz
URL:		http://www.cs.berkeley.edu/~yozo/

%description
This package provides numeric types of twice the precision of IEEE
double (106 mantissa bits, or approximately 32 decimal digits) and
four times the precision of IEEE double (212 mantissa bits, or
approximately 64 decimal digits).  Due to features such as operator
and function overloading, these facilities can be utilized
with only minor modifications to conventional C++ and Fortran-90
programs.

%package	-n %{devname}
Group:		Development/C++
Summary:	Double-Double and Quad-Double Arithmetic
Provides:	qd-static-devel = %{version}-%{release}

%description	-n %{devname}
This package provides numeric types of twice the precision of IEEE
double (106 mantissa bits, or approximately 32 decimal digits) and
four times the precision of IEEE double (212 mantissa bits, or
approximately 64 decimal digits).  Due to features such as operator
and function overloading, these facilities can be utilized
with only minor modifications to conventional C++ and Fortran-90
programs.

%prep
%setup -q -n qd-%{version}

%build
%configure --enable-fortran=no
aclocal
automake --add-missing
%make CXXFLAGS='%{optflags} -fPIC'

%install
%makeinstall_std
rm -fr %{buildroot}%{_libdir}/qd

%files	-n %{devname}
%{_bindir}/qd-config
%dir %{_includedir}/qd
%{_includedir}/qd/*
%doc %dir %{_datadir}/doc/qd
%doc %{_datadir}/doc/qd/*
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7820 |21cr|quadkonsole4-0.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	QuadKonsole - multiple Konsoles in one window
Name:		quadkonsole4
Version:	0.2.1
Release:	4
License:	GPLv2+
Group:		Terminals
URL:		http://kde-apps.org/content/show.php/QuadKonsole4?content=141069&PHPSESSID=0d2c6837c693192c7a288f988e6cfb21
Source0:	quadkonsole4-%{version}.tar.lzma
BuildRequires:	kdelibs4-devel


%description
QuadKonsole embeds Konsole kparts in a grid layout. 


%prep
%setup -q

%build

%cmake_kde4 
%make


%install
rm -rf $RPM_BUILD_ROOT

%{makeinstall_std} -C build



%if %mdkversion < 200900
%post
%update_menus
%update_icon_cache hicolor
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%clean_icon_cache hicolor
%endif 

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc INSTALL COPYING NEWS AUTHORS ChangeLog 
%_kde_datadir/doc/HTML/en/quadkonsole4/common  
%_kde_datadir/doc/HTML/en/quadkonsole4/index.cache.bz2  
%_kde_datadir/doc/HTML/en/quadkonsole4/index.docbook
%{_bindir}/%{name}
%_kde_datadir/applications/kde4/*.desktop
%_kde_datadir/apps/%{name}/quadkonsole4ui.rc
%_kde_datadir/config.kcfg/*
%_kde_iconsdir/*/*/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7821 |21cr|quadra-1.2.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define summary	Multiplayer puzzle game

Name:		quadra
Version:	1.2.0
Release:	14
URL:		http://code.google.com/p/quadra/
Source0:	http://quadra.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:	%{name}-icons.tar.bz2
Source5:	%{name}-16.png
Source6:	%{name}-32.png
Source7:	%{name}-48.png
# fix str fmt, patch sent upstream 08 Jun 2009
Patch0:		%{name}-1.2.0-fix-str-fmt.patch
License:	LGPLv2+
Group:		Games/Arcade
Summary:	%{summary}
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(libpng)
BuildRequires:  bc

%description
This is the official release %{version} of Quadra, a full-featured
multiplayer action puzzle game for the X Window System and Svgalib.
Features include:

 - Recursive block chaining
 - Blocks shadows
 - Teams playing
 - TCP/IP networking (free Internet playing! Supports SOCKS proxies)
 - Smooth block falling
 - Sound effects
 - Watches on other players
 - Chat window
 - CD-based music
 - And much more!

%prep
%setup -q
%patch0 -p1 -b .strfmt

cat << EOF > rosa-%{name}.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Quadra
Comment=%{summary}
Comment[ru]=Многопользовательская игра-головоломка
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%build
%configure --bindir=%{_gamesbindir}
%make

%install
%makeinstall_std
#install -s -D source/quadra $RPM_BUILD_ROOT%{_bindir}/quadra
#install -m644 -D source/quadra.res $RPM_BUILD_ROOT%{_datadir}/games/quadra.res

install -D -m644 rosa-%{name}.desktop %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
install -D -m644 %{SOURCE6} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m644 %{SOURCE5} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m644 %{SOURCE7} %{buildroot}%{_liconsdir}/%{name}.png

%clean

%files
%doc ChangeLog LICENSE README
%{_gamesbindir}/*
%{_gamesdatadir}/quadra.res
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7822 |21cr|quadrapassel-40.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Quadrapassel game
Name:		quadrapassel
Version:	40.2
Release:	6
License:	GPLv2+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/quadrapassel
Source0:	https://download.gnome.org/sources/quadrapassel/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(manette-0.2)

%description
The Russian game of falling geometric shapes.

%files -f %{name}.lang
%doc COPYING
%{_bindir}/quadrapassel
%{_datadir}/applications/org.gnome.Quadrapassel.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Quadrapassel.gschema.xml
%{_datadir}/icons/*/*/*/*
%{_datadir}/quadrapassel
%{_mandir}/man6/quadrapassel.6*
%{_appdatadir}/org.gnome.Quadrapassel.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7823 |21cr|quadrupleback-0.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		quadrupleback
Version:	0.1.1
Release:	1
Summary:	A clone of the 1982 Doubleback
License:	GPLv2+
Group:		Games/Arcade
URL:		http://perso.b2b2c.ca/~sarrazip/dev/quadrupleback.html
Source0: 	http://perso.b2b2c.ca/sarrazip/dev/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	flatzebra-devel >= 0.1.6

%description
A video game where intruders must be 
circled .It is a clone of the 1982 Doubleback 
game by Dale Lear for the Tandy Color Computer.

%files
%doc AUTHORS COPYING NEWS README THANKS 
%{_gamesbindir}/%{name}
%{_datadir}/sounds/*
%{_datadir}/%{name}/
%{_datadir}/applications/*
%{_datadir}/pixmaps/quadrupleback.png
#-----------------------------------------

%prep
%setup -q
perl -pi -e "s|TRY_LINK_SDL_GFX||" configure.ac

%build
%configure2_5x --bindir=%{_gamesbindir}
%make

%install
%makeinstall_std
rm -fr %{buildroot}%{_defaultdocdir}/%{name}-*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7824 |21cr|quagga-1.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# configure options
%define	with_snmp	0
%define	with_vtysh	1
%define	with_tcp_zebra	0
%define	with_vtysh	1
%define	with_pam	1
%define	with_ospfclient	0
%define	with_ospfapi	0
%define	with_irdp	1
%define	with_isisd	1
%define	with_multipath	64
# The below now give unrecognized option warnings
%define	with_ipv6	1
%define	with_ospf_te	0
%define	with_opaque_lsa	0

%define	quagga_user	quagga
%define	vty_group	quaggavt

# path defines
%define	zeb_src		%{_builddir}/%{name}-%{version}
%define	zeb_rh_src	%{zeb_src}/redhat
%define	zeb_docs	%{zeb_src}/doc

%define	major 0
%define	zebramajor 1
%define	libname	%mklibname %{name} %{major}
%define	libfpm %mklibname fpm %{major}
%define	libospf %mklibname ospf %{major}
%define	libzebra %mklibname zebra %{zebramajor}
%define	devname %mklibname %{name} -d

Summary:	Routing daemon
Name:		quagga
Version:	1.2.4
Release:	2
License:	GPLv2+
Group:		System/Servers
Url:		http://www.quagga.net
Source0:	http://download.savannah.gnu.org/releases/quagga/%{name}-%{version}.tar.gz
Source2:	quagga-tmpfiles.conf
Source3:	quagga-sysusers.conf
Source10:	babeld.service
Source11:	ripngd.service
Source12:	ospf6d.service
Source13:	isisd.service
Source14:	ospfd.service
Source15:	ripd.service
Source16:	bgpd.service
Source17:	zebra.service
Source18:	watchquagga.service
Source100:	%{name}.rpmlintrc
Patch1:		DEBIAN-Add-correct-QUAGGA_VERSION-to-manpages.patch
Patch2:		DEBIAN-Fix-typo-in-dump-bgp-help-text.patch
Patch3:		DEBIAN-Patch-init-scripts-for-Debian.patch
Patch4:		DEBIAN-Remove-duplicated-footnote.patch
BuildRequires:	chrpath
BuildRequires:	gawk
BuildRequires:	systemd-units
BuildRequires:	texi2html
BuildRequires:	texinfo
BuildRequires:	texlive
BuildRequires:	texlive-latex.bin
BuildRequires:	pam-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libpcre2-posix)
%if %{with_snmp}
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(openssl)
Requires:	net-snmp-mibs
%endif
%if %{with_vtysh}
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
%endif

%description
Quagga is a free software that manages TCP/IP based routing
protocol. It takes multi-server and multi-thread approach to resolve
the current complexity of the Internet.
It supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
It is intended to be used as a Route Server and a Route Reflector. It is
not a toolkit: it provides full routing power under a new architecture.
By design it has a process for each protocol.
Quagga is a fork of GNU Zebra.

%files
%doc */*.sample* AUTHORS COPYING doc/quagga.html doc/mpls
%doc ChangeLog NEWS README REPORTING-BUGS SERVICES TODO
#
%dir %attr(0751,%{quagga_user},%{quagga_user}) %{_sysconfdir}/quagga
%dir %attr(0750,%{quagga_user},%{quagga_user}) /var/log/quagga
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf
#
%attr(0640,%{quagga_user},%{vty_group}) %config(noreplace) %{_sysconfdir}/quagga/vtysh.conf*
#
%config(noreplace) %{_sysconfdir}/pam.d/quagga
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/*
%config(noreplace) %{_sysconfdir}/sysconfig/quagga
%config(noreplace) %{_sysconfdir}/quagga/bgpd.conf*
%config(noreplace) %{_sysconfdir}/quagga/ospf6d.conf*
%config(noreplace) %{_sysconfdir}/quagga/ospfd.conf*
%config(noreplace) %{_sysconfdir}/quagga/pimd.conf*
%config(noreplace) %{_sysconfdir}/quagga/ripd.conf*
%config(noreplace) %{_sysconfdir}/quagga/ripngd.conf*
%config(noreplace) %{_sysconfdir}/quagga/zebra.conf*
#config(noreplace) %%{_sysconfdir}/quagga/babeld.conf*
#
%{_unitdir}/*.service
#
%{_sbindir}/bgpd
%{_sbindir}/nhrpd
%{_sbindir}/ospf6d
%if %{with_ospfclient}
%{_sbindir}/ospfclient
%endif
%{_sbindir}/ospfd
%{_sbindir}/pimd
%{_sbindir}/ripd
%{_sbindir}/ripngd
%{_sbindir}/watchquagga
%{_sbindir}/zebra
#{_sbindir}/babeld
#
%{_bindir}/bgp_btoa
%{_bindir}/test_igmpv3_join
#
%if %{with_vtysh}
%{_bindir}/vtysh
%attr(0644,root,root) %{_mandir}/man1/vtysh.1*
%endif
#
%if %{with_isisd}
%{_sbindir}/isisd
%attr(0644,root,root) %{_mandir}/man8/isisd.8*
%config(noreplace) %{_sysconfdir}/quagga/isisd.conf*
%endif
#
%attr(0644,root,root) %{_mandir}/man8/bgpd.8*
%attr(0644,root,root) %{_mandir}/man8/ospf6d.8*
%attr(0644,root,root) %{_mandir}/man8/ospfd.8*
%attr(0644,root,root) %{_mandir}/man8/nhrpd.8*
%attr(0644,root,root) %{_mandir}/man8/pimd.8*
%attr(0644,root,root) %{_mandir}/man8/ripd.8*
%attr(0644,root,root) %{_mandir}/man8/ripngd.8*
%attr(0644,root,root) %{_mandir}/man8/zebra.8*
%if %{with_ospfclient}
%attr(0644,root,root) %{_mandir}/man8/ospfclient.8*
%endif
%attr(0644,root,root) %{_mandir}/man8/watchquagga.8*
#
%{_infodir}/*info*

%pre
%sysusers_create_package %{name} %{SOURCE3}

%post
%tmpfiles_create %{name}.conf
%systemd_post zebra.service
%systemd_post ripd.service
%if %{with_ipv6}
%systemd_post ospf6d.service
%systemd_post ripngd.service
%endif
%systemd_post ospfd.service
%systemd_post bgpd.service
%systemd_post watchquagga.service

# Create dummy files if they don't exist so basic functions can be used.
if [ ! -e %{_sysconfdir}/quagga/zebra.conf ]; then
	echo "hostname `hostname`" > %{_sysconfdir}/quagga/zebra.conf
	chown %{quagga_user}:%{quagga_user} %{_sysconfdir}/quagga/zebra.conf
	chmod 640 %{_sysconfdir}/quagga/zebra.conf
fi
if [ ! -e %{_sysconfdir}/quagga/vtysh.conf ]; then
	touch %{_sysconfdir}/quagga/vtysh.conf
	chmod 640 %{_sysconfdir}/quagga/vtysh.conf
	chown %{quagga_user}:%{vty_group} %{_sysconfdir}/quagga/vtysh.conf
fi

#----------------------------------------------------------------------------

%package contrib
Summary:	Tools for quagga
Group:		System/Servers

%description contrib
Contributed/3rd party tools which may be of use with quagga.

%files contrib
%doc tools

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Header and object files for quagga development
Group:		System/Libraries
Conflicts:	%{name} <= 0.99.24.1
Obsoletes:	%{name} <= 0.99.24.1
Requires:	%{libfpm} >= %{EVRD}
Requires:	%{libospf} >= %{EVRD}
Requires:	%{libzebra} >= %{EVRD}

%description -n %{libname}
This package provides a shared library for quagga.

%files -n %{libname}
%doc COPYING
%{_libdir}/libquagga_pb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfpm}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libfpm}
This package provides a shared library for quagga.

%files -n %{libfpm}
%doc COPYING
%{_libdir}/libfpm_pb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libospf}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libospf}
This package provides a shared library for quagga.

%files -n %{libospf}
%doc COPYING
%{_libdir}/libospf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libzebra}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libzebra}
This package provides a shared library for quagga.

%files -n %{libzebra}
%doc COPYING
%{_libdir}/libzebra.so.%{zebramajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header and object files for quagga development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libfpm} = %{EVRD}
Requires:	%{libospf} = %{EVRD}
Requires:	%{libzebra} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The quagga-devel package contains the header and object files necessary for
developing OSPF-API and quagga applications.

%files -n %{devname}
%doc COPYING
%{_libdir}/*.so
%{_includedir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1


%build
%serverbuild
autoreconf -vfi
# Unrecognized options: --enable-netlink --with-pcreposix --enable-ipv6
%configure \
	--disable-static \
	--with-pic \
	--with-pkg-extra-version="-rosa" \
	--sysconfdir=%{_sysconfdir}/quagga \
	--localstatedir=/run/quagga \
%if %{with_snmp}
	--enable-snmp \
%endif
%if %{with_multipath}
	--enable-multipath=%{with_multipath} \
%endif
%if %{with_tcp_zebra}
	--enable-tcp-zebra \
%endif
%if %{with_opaque_lsa}
	--enable-opaque-lsa \
%endif
%if %{with_ospf_te}
	--enable-ospf-te \
%endif
%if %{with_vtysh}
	--enable-vtysh \
%endif
%if %{with_ospfclient}
	--enable-ospfclient=yes \
%else
	--enable-ospfclient=no\
%endif
%if %{with_ospfapi}
	--enable-ospfapi=yes \
%else
	--enable-ospfapi=no \
%endif
%if %{with_irdp}
	--enable-irdp=yes \
%else
	--enable-irdp=no \
%endif
%if %{with_isisd}
	--enable-isisd \
%else
	--disable-isisd \
%endif
%if %{with_pam}
	--with-libpam \
%endif
	--enable-user=%{quagga_user} \
	--enable-group=%{quagga_user} \
	--enable-vty-group=%{vty_group} \
	--with-cflags="%{optflags}"

%make MAKEINFO="makeinfo --no-split"

pushd doc
	texi2html quagga.texi
popd


%install
# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/pam.d
install -d %{buildroot}/var/log/%{name}
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -d %{buildroot}%{_infodir}

%makeinstall_std

# Remove this file, as it is uninstalled and causes errors when building on RH9
rm -rf %{buildroot}/usr/share/info/dir

# Install systemd units
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE16} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE17} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE14} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE15} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE18} %{buildroot}%{_unitdir}
%if %{with_ipv6}
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE12} %{buildroot}%{_unitdir}
%endif
%if %{with_isisd}
install -m 644 %{SOURCE13} %{buildroot}%{_unitdir}
%endif
mkdir -p %{buildroot}%{_sysusersdir}
cat %{SOURCE3} | sed -e 's,@quagga_user@,%{quagga_user},g' -e 's,@vty_group@,%{vty_group},g' \
	> %{buildroot}%{_sysusersdir}/%{name}.conf

# Install sysconfig and logrotate stuff
install -m644 %{zeb_rh_src}/quagga.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/quagga
install -m644 %{zeb_rh_src}/quagga.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/quagga

# Fix conditional pam config file
install -m644 %{zeb_rh_src}/quagga.pam %{buildroot}%{_sysconfdir}/pam.d/quagga

# Nuke rpath
chrpath -d %{buildroot}%{_bindir}/*
chrpath -d %{buildroot}%{_sbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7825 |21cr|quassel-0.14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A modern cross-platform distributed IRC client (monolythic)
Name:		quassel
Version:	0.14.0
Release:	2
License:	GPLv3+
Group:		Networking/IRC
Url:		http://quassel-irc.org/
Source0:	http://quassel-irc.org/pub/quassel-%{version}.tar.bz2
Source1:	networks.ini
Source10:	quassel.rpmlintrc
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(dbusmenu-qt5)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	%{name}-common = %{EVRD}
Provides:	plasma5-irc-client

%description
Quassel IRC is a modern, cross-platform, distributed IRC client,
meaning that one (or multiple) client(s) can attach to and detach
from a central core -- much like the popular combination of screen
and a text-based IRC client such as WeeChat, but graphical. In
addition to this unique feature, we aim to bring a pleasurable,
comfortable chatting experience to all major platforms (including
Linux®, Windows®, and MacOS X® as well as Qtopia-based cell phones
and PDAs), making communication with your peers not only convenient,
but also ubiquitous available.

%files
%{_kde5_bindir}/quassel
%{_kde5_applicationsdir}/quassel.desktop

#-----------------------------------------------------------------------

%package common
Summary:	A modern cross-platform distributed IRC client - Common files
Group:		Networking/IRC
Requires:	qt5-database-plugin-sqlite

%description common
A modern, cross-platform, distributed IRC client
- This is client only, depends on a core server.

%files common
%doc AUTHORS ChangeLog
%{_kde5_iconsdir}/hicolor/*/*/*
%{_kde5_datadir}/%{name}
%{_kde5_notificationsdir}/quassel.notifyrc
%{_libdir}/libquassel-common.so*
%{_libdir}/libquassel-qtui.so*
%{_libdir}/libquassel-uisupport.so*

#-----------------------------------------------------------------------

%package client
Summary:	A modern cross-platform distributed IRC client - Client only
Group:		Networking/IRC
Requires:	quassel-common = %{EVRD}

%description client
A modern, cross-platform, distributed IRC client - Client only

%files client
%{_kde5_bindir}/quasselclient
%{_kde5_applicationsdir}/quasselclient.desktop
%{_libdir}/libquassel-client.so*

#-----------------------------------------------------------------------

%package core
Summary:	A modern cross-platform distributed IRC client - Core server
Group:		Networking/IRC
Requires:	%{name}-common = %{EVRD}

%description core
A modern, cross-platform, distributed IRC client - This is the quassel
core server for clients.

%files core
%{_kde5_bindir}/quasselcore
%{_libdir}/libquassel-core.so*

#-----------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake_kde5 \
	-DWANT_MONO=ON \
	-DWITH_KDE=ON \
	-DEMBED_DATA=OFF \
	-DUSE_QT5=ON

%make

%install
%makeinstall_std -C build

# Our own defined networks
rm -f %{buildroot}%{_kde5_datadir}/%{name}/networks.ini
mkdir -p %{buildroot}%{_kde5_datadir}/%{name}/
install -m 644 %{SOURCE1} %{buildroot}%{_kde5_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7826 |21cr|quaternion-0.0.1-1.20170607.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Quaternion
%define git 20170607

Summary:	An IM client for the Matrix protocol
Name:		quaternion
Version:	0.0.1
Release:	1.%{git}.2
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/QMatrixClient/Quaternion
# git snapshot
Source0:	%{oname}-%{version}-%{git}.tar.bz2
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
An IM client for the Matrix protocol.

%files
%doc COPYING README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}-%{git}

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_STATIC_LIBS:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7827 |21cr|qucs-0.0.20-0.rc2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define major 0
%define libqucsator %mklibname qucsator %{major}
%define devname %mklibname %{name} -d

%define rc rc2

Summary:	An integrated circuit simulator
Name:		qucs
Version:	0.0.20
Release:	0.%{?rc}.1
License:	QPL
Group:		Sciences/Other
Url:		http://qucs.sourceforge.net/
Source0:	https://github.com/Qucs/qucs/archive/refs/tags/qucs-%{version}-%{?rc}.tar.gz
# commit 248e4e07886b7b47fd66dc45da30389b9adb8a87 on 1 Mar 2016
Source1:	https://github.com/ra3xdh/qucs-rus-complib/archive/master.zip?/%{name}-rus-complib-master.zip
Patch0:		qucs-0.0.19-desktop.patch
BuildRequires:	adms
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gperf
BuildRequires:	imagemagick
BuildRequires:	qt4-devel
Requires:	freehdl
Requires:	freehdl-config
Requires:	gcc-cpp
Recommends:	%{name}-rus-complib

%description
Qucs is going to be an integrated circuit simulator which means you will be
able to setup a circuit with a graphical user interface (GUI) and simulate the
large-signal, small-signal and noise behaviour of the circuit. After that
simulation has finished you can present the simulation results on a
presentation page or window.

%files
%doc CONTRIBUTING.md NEWS.md README.md
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/qucsator
%exclude %{_datadir}/%{name}/library/Complib*.lib
%{_mandir}/man?/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/qucs.*

#----------------------------------------------------------------------------

%package -n %{libqucsator}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libqucsator}
This package contains the shared libraries for %{name}.

%files -n %{libqucsator}
%{_libdir}/libqucsator.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libqucsator} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and headers for %{name}.

%files -n %{devname}
%doc README.md
%{_includedir}/qucsator
%{_libdir}/libqucsator.so

#----------------------------------------------------------------------------

%package rus-complib
Summary:	Library set for Qucs circuit simulator
Group:		Sciences/Other

%description rus-complib
Library set for Qucs circuit simulator.

%files rus-complib
%doc qucs-rus-complib-master/README.md
%{_datadir}/%{name}/library/Complib*.lib

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1 -n %{name}-%{name}-%{version}-%{?rc}

pushd %{name}-rus-complib-master
find -name "*.lib" | sed 'p;s:^./:Complib:' | xargs -n2 mv
popd

%build
./bootstrap
%configure \
	--disable-doc
%make -j4

find . -type f -name "*.cpp" -exec chmod -x {} \;
find . -type f -name "*.h" -exec chmod -x {} \;
find . -type f -name "*.md" -exec chmod -x {} \;
find . -type f -name "*.ypp" -exec chmod -x {} \;
find . -type f -name "*.lpp" -exec chmod -x {} \;

%install
%makeinstall_std

install -m0644 %{name}-rus-complib-master/*.lib %{buildroot}%{_datadir}/%{name}/library/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7828 |21cr|qucs-s-24.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	An integrated circuit simulator
Name:		qucs-s
Version:	24.4.0
Release:	1
License:	QPL
Group:		Sciences/Other
Url:		http://qucs.sourceforge.net/
Source0:	https://github.com/ra3xdh/qucs_s/releases/download/%{version}/qucs-s-%{version}.tar.gz
# commit 1571eb9f1ce1da91e2077bb5ec2de20786a5e3a8 on 13 nov 2023
Source1:	https://github.com/ra3xdh/qucs-rus-complib/archive/master.zip?/qucs-rus-complib-master.zip
Patch0:		qucs-0.0.23-desktop.patch
#BuildRequires:	adms
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	flex
BuildRequires:	gperf
#BuildRequires:	imagemagick
BuildRequires:	qt5-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Charts)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Svg)
Requires:	freehdl
Requires:	freehdl-config
Requires:	gcc-cpp
Recommends:	%{name}-rus-complib

%description
Qucs is going to be an integrated circuit simulator which means you will be
able to setup a circuit with a graphical user interface (GUI) and simulate the
large-signal, small-signal and noise behaviour of the circuit. After that
simulation has finished you can present the simulation results on a
presentation page or window.

%files
%doc NEWS* README.md
%{_bindir}/*
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/library/Complib*.lib
%{_mandir}/man?/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/qucs-s.*

#----------------------------------------------------------------------------

%package rus-complib
Summary:	Library set for Qucs circuit simulator
Group:		Sciences/Other

%description rus-complib
Library set for Qucs circuit simulator.

%files rus-complib
%doc qucs-rus-complib-master/README.md
%{_datadir}/%{name}/library/Complib*.lib

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1 -n %{name}-%{version}

pushd qucs-rus-complib-master
find -name "*.lib" | sed 'p;s:^./:Complib:' | xargs -n2 mv
popd

%build
%cmake
%make

%install
%makeinstall_std -C build

install -m0644 qucs-rus-complib-master/*.lib %{buildroot}%{_datadir}/qucs-s/library/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7829 |21cr|quickemu-4.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Quickly create and run optimised desktop virtual machines
Name:		quickemu
Version:	4.9.2
Release:	1
License:	MIT
Group:		Emulators
Url:		https://github.com/quickemu-project/quickemu
Source0:	https://github.com/quickemu-project/quickemu/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	bash
Requires:	coreutils
Requires:	edk2-tools
Requires:	genisoimage
Requires:	grep
Requires:	jq
Requires:	lsb
Requires:	procps
Requires:	python3
Requires:	qemu
Requires:	sed
Requires:	spice-gtk
Requires:	swtpm
Requires:	unzip
Requires:	usbutils
Requires:	util-linux
Requires:	wget
Requires:	xdg-user-dirs
Requires:	xrandr
BuildArch:	noarch

%description
Quickly create and run optimised Windows, macOS and Linux desktop virtual machines.

%files
%doc README.md
%license LICENSE
%{_bindir}/macrecovery
%{_bindir}/%{name}
%{_bindir}/quickget
%{_bindir}/windowskey

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
mkdir -p %{buildroot}%{_bindir}
cp macrecovery %{name} quickget windowskey %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7830 |21cr|quicksynergy-0.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		quicksynergy
Version:	0.9.0
Release:	4
Summary:	Share keyboard and mouse between computers
Group:		System/Configuration/Hardware
License:	GPLv2+
URL:		http://code.google.com/p/quicksynergy/
Source0:	http://quicksynergy.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	synergy

%description
QuickSynergy is a graphical interface (GUI) for easily configuring Synergy2,
an application that allows the user to share his mouse and keyboard between
two or more computers.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=QuickSynergy
Comment=Share keyboard and mouse between computers
Exec=%{name}
Icon=%{name}
Type=Application
Terminal=false
StartupNotify=true
Categories=System;Utility;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert src/logo/qslogo.png -resize ${N}x${N} $N.png;
install -D -m 0644 16.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

%find_lang %{name}

%files -f %{name}.lang
%doc ChangeLog COPYING AUTHORS README
%{_bindir}/quicksynergy
%{_datadir}/applications/quicksynergy.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7831 |21cr|quick-usb-formatter-0.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define binname quickusbformatter

Summary:	A small KDE4 application to format usb sticks and devices
Name:		quick-usb-formatter
Version:	0.6
Release:	11
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php?content=137493
Source0:	%{name}-%{version}.tar.bz2
Patch0:		quick-usb-formatter-0.6-l10n-ru.patch
Patch1:		quick-usb-formatter-0.5-l10n-ru.patch
Patch2:		quick-usb-formatter-0.6-umount-error.patch
Patch3:		alt-force-f2fs.patch
Patch4:		quick-usb-formatter-0.6-disallow-format-ignored.patch
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	kdelibs4-devel
Requires:	f2fs-tools

%description
Quick Usb Formatter is a tiny app designed for enhance the usability of the
device notifier, an additional option for quick format usb sticks.

%files -f %{binname}.lang
%doc README.txt
%{_kde_bindir}/%{binname}
%{_kde_appsdir}/solid/actions/%{binname}_solid.desktop
%{_kde_applicationsdir}/%{binname}.desktop
%{_kde_libdir}/kde4/libexec/helper
%{_datadir}/dbus-1/system-services/org.kde.auth.quf.service
%{_datadir}/polkit-1/actions/org.kde.auth.quf.policy
%{_datadir}/solid/actions/%{binname}_solid.desktop
%{_sysconfdir}/dbus-1/system.d/org.kde.auth.quf.conf

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .ru
%patch1 -p1 -b .ru
%patch2 -p1 -b .err
%patch3 -p1 -b .f2fs
%patch4 -p1 -b .ign

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

# Plasma 5 support
mkdir -p %{buildroot}%{_datadir}/solid/actions
cp %{buildroot}%{_kde_appsdir}/solid/actions/%{binname}_solid.desktop %{buildroot}%{_datadir}/solid/actions/

%find_lang %{binname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7832 |21cr|quilt-0.67-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Scripts for working with series of patches
Name:		quilt
Version:	0.67
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://savannah.nongnu.org/projects/quilt
Source0:	http://download.savannah.gnu.org/releases/quilt/%{name}-%{version}.tar.gz
Source1:	http://download.savannah.gnu.org/releases/quilt/%{name}-%{version}.tar.gz.sig
BuildRequires:	diffstat
BuildRequires:	ed
BuildRequires:	procmail
# sendmail-command is needed for testing purpose
BuildRequires:	sendmail-command
Requires:	coreutils
Requires:	bzip2
Requires:	diffstat
Requires:	diffutils
Requires:	ed
Requires:	gettext
Requires:	gzip
Requires:	mktemp
Requires:	patch
Requires:	procmail

%description
The scripts allow to manage a series of patches by keeping track of the changes
each patch makes. Patches can be applied, un-applied, refreshed, etc.

The scripts are heavily based on Andrew Morton's patch scripts found at
http://www.zip.com.au/~akpm/linux/patches/

%files -f %{name}.lang
%doc AUTHORS TODO
%doc %{_docdir}/%{name}-%{version}
%config(noreplace) /etc/bash_completion.d/quilt
%config(noreplace) /etc/quilt.quiltrc
%{_bindir}/*
%{_datadir}/emacs/site-lisp/quilt.el
%{_datadir}/%{name}/*
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-mta=%{_sbindir}/sendmail \
	--with-diffstat=%{_bindir}/diffstat
%make

%check
make check

%install
make install BUILD_ROOT=%{buildroot}
mv -f %{buildroot}/%{_docdir}/%{name}/ %{buildroot}/%{_docdir}/%{name}-%{version}/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7833 |21cr|quiterss-0.18.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname QuiteRSS

Summary:	RSS/Atom feed reader written on Qt
Name:		quiterss
Version:	0.18.12
Release:	2
License:	GPLv3+
Group:		Networking/News
Url:		http://quiterss.org
Source0:	http://quiterss.org/files/%{version}/%{oname}-%{version}-src.tar.gz
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(sqlite3)

%description
QuiteRSS is RSS/Atom feed reader written on Qt.

%files -f %{name}.lang
%doc AUTHORS CHANGELOG COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}/sound/notification.wav
%{_datadir}/%{name}/style/*.qss
%{_datadir}/%{name}/style/*.css

#----------------------------------------------------------------------------

%prep
%setup -qcn %{oname}-%{version}-src
find . -type f -executable -exec chmod a-x {} \;

%build
export CFLAGS="%{optflags}"
%qmake_qt5 ./QuiteRSS.pro PREFIX=%{_prefix}
%make

%install
make install INSTALL_ROOT=%{buildroot}

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7834 |21cr|quodlibet-4.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%{nil}

Summary:	Advanced, elegant jukebox style music player
Name:		quodlibet
Version:	4.4.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://quodlibet.readthedocs.io/en/latest/
Source0:	https://github.com/quodlibet/quodlibet/archive/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	desktop-file-utils
BuildRequires:	gettext >= 0.15
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	gtk+3.0 >= 3.18
BuildRequires:	mutagen >= 1.44
BuildRequires:	python3-sphinx >= 3.2.0
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.52
BuildRequires:	pkgconfig(python3) >= 3.7
BuildRequires:	pkgconfig(xtst)
BuildArch:	noarch
# See: https://quodlibet.readthedocs.io/en/latest/packaging.html
Requires:	appindicator-gtk3
Requires:	gstreamer1.0-ffmpeg
Requires:	gstreamer1.0-plugins-base >= 1.8
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-ugly
Requires:	%{_lib}gstreamer-plugins-base-gir1.0
Requires:	%{_lib}keybinder3.0_0
#Requires:	%%{_lib}gpod4
Requires:	%{_lib}modplug1
Requires:	mutagen >= 1.44
Requires:	python3-dbus
Requires:	python3-feedparser >= 6.0
Requires:	python3-gi-cairo >= 1.8
Requires:	python3-gobject3
Requires:	python3-pyinotify
Requires:	python3-musicbrainzngs >= 0.5
Requires:	typelib(AppIndicator3)
Requires:	typelib(Keybinder)
Requires:	typelib(Soup)
Requires:	webkit2gtk4.0
Recommends:	rygel

%description
Quod Libet is a GTK+-based audio player written in Python. It's designed
around the idea that you know better than we do how to organize your music.
It lets you make playlists based on regular expressions (don't worry,
regular searches work too). It lets you display and edit any tags you want
in the file.
It supports Ogg Vorbis and MP3 by default, but other formats (FLAC, Musepack,
Wavepack, MPEG-4/AAC and MOD) are available through gstreamer1.0 plugins.
Quod Libet easily scales to libraries of thousands of songs. It also supports
most of the features you expect from a modern media player, like Unicode
support, gapless playback, multimedia keys, and an OSD. 

%files -f %{name}.lang
%doc NEWS.rst README.rst
%doc html
%{_bindir}/%{name}
%{_bindir}/exfalso
%{_bindir}/operon
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/%{name}*.egg-info
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/bash-completion/completions/*
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/dbus-1/services/net.sacredchao.QuodLibet.service
%{_datadir}/gnome-shell/search-providers/*.ini
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
#apply_patches


%build
export CFLAGS="%{optflags}"
%py3_build
python3 setup.py build_sphinx


%install
%py3_install

# Prepare the User Guide to be installed by %%doc
mkdir -p ./html
mv build/sphinx/* -t ./html

# Remove unwanted completion file for zsh
rm -rf %{buildroot}/%{_datadir}/zsh

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7835 |21cr|quotatool-1.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility for setting filesystem quotas from the command line
Name:		quotatool
Version:	1.6.2
Release:	3
License:	GPL
Group:		System/Configuration/Other
URL:		http://quotatool.ekenberg.se/
Source0:	http://quotatool.ekenberg.se/%{name}-%{version}.tar.gz

%description
Quotatool is a utility to set filesystem quotas from the commandline. Most
quota-utilities are interactive, requiring manual intervention from the user.
Quotatool on the other hand is not, making it suitable for use in scripts and
other non-interactive situations.

%prep

%setup -q

%build
%configure
%make

%install

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8

%makeinstall_std

%files
%doc COPYING README INSTALL AUTHORS
%{_sbindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7836 |21cr|qutebrowser-2.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A keyboard-driven, vim-like browser based on PyQt5 and QtWebEngine
Name:		qutebrowser
Version:	2.5.2
Release:	1
License:	GPLv3
Group:		Networking/WWW
Url:		https://github.com/qutebrowser
Source0:	https://github.com/qutebrowser/qutebrowser/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	a2x
BuildRequires:	xsltproc
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
Requires:	python3-qt5-webenginewidgets
Requires:	python3dist(jinja2)
Requires:	python3dist(pyqt5)
Requires:	python3dist(pyqtwebengine)
Requires:	python3dist(pyyaml)
Recommends:	python3dist(pygments)
# TODO
#Recommends:	python3-adblock
BuildArch:	noarch

%description
qutebrowser is a keyboard-focused browser with a minimal GUI. It’s based on
Python, PyQt5 and QtWebEngine and free software, licensed under the GPL.
It was inspired by other browsers/addons like dwb and Vimperator/Pentadactyl.

%files
%doc README.asciidoc doc/changelog.asciidoc doc/faq.asciidoc doc/quickstart.asciidoc doc/userscripts.asciidoc
%license LICENSE
%{_appdatadir}/org.%{name}.%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.%{name}.%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------

%prep
%setup -q

%build
a2x -f manpage doc/qutebrowser.1.asciidoc
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_appdatadir}
cp misc/org.%{name}.%{name}.appdata.xml %{buildroot}%{_appdatadir}

mkdir -p %{buildroot}%{_datadir}/applications
cp misc/org.%{name}.%{name}.desktop %{buildroot}%{_datadir}/applications

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
cp icons/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps

for i in 16 24 32 48 64 128 256 512; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/
	cp icons/%{name}-${i}x${i}.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done

mkdir -p %{buildroot}%{_mandir}/man1
cp doc/%{name}.1 %{buildroot}%{_mandir}/man1

chmod +x %{buildroot}%{python3_sitelib}/%{name}/__main__.py
find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7837 |21cr|qvcd-0.21-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	qvcd
Summary: 	Tool for building and writing VCD's
Version: 	0.21
Release: 	12

Source:		%{name}-%{version}.tar.bz2
Source1: 	%{name}48.png
Source2: 	%{name}32.png
Source3: 	%{name}16.png
URL:		http://www.steffen-sobiech.de/qvcd_1_en.htm
License:	GPL
Group:		Video
BuildRequires:	qt3-devel gettext png-devel
Requires:	vcdimager cdrdao

%description
qvcd is a graphical frontend for GNU vcdimager and cdrdao. Together with
those tools, qvcd can be used to create a VideoCD out of an MPEG file. 

%prep
%setup -q

%build
%configure --with-qt-libraries=/usr/lib/qt3/%{_lib}
%make
										
%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
rm -fr $RPM_BUILD_ROOT/usr/doc

#menu

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=QVCD
Comment=Video CD Creator
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Video;AudioVideo;AudioVideoEditing
Encoding=UTF-8
EOF


#icons
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
cat %SOURCE1 > $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
cat %SOURCE2 > $RPM_BUILD_ROOT/%_iconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
cat %SOURCE3 > $RPM_BUILD_ROOT/%_miconsdir/%name.png

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif
		
%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-,root,root)
%doc README qvcd/docs/en/*.html
%{_bindir}/%name
%{_datadir}/applications/mandriva-%{name}.desktop
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7838 |21cr|qwinff-0.2.1-7.git17e98.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# There has been no new release for 7 years, but there are many fresh commits
%define commit 17e987e7c72affb7acdc67e95aae07e4bbfe93f2
%define commit_short %(echo %{commit} | head -c 5)

Summary:	An intuitive media converter GUI for Qt5
Name:		qwinff
Version:	0.2.1
Release:	7.git%{commit_short}.3
License:	GPLv3+
Group:		Video
Url:		https://qwinff.github.io/
Source0:	https://github.com/qwinff/qwinff/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# https://github.com/qwinff/qwinff/pull/46
Patch0:		0001-Link-qmpwidget-statically.patch
# https://github.com/qwinff/qwinff/pull/28
Patch1:		0002-Hide-updates-check.patch
#https://github.com/qwinff/qwinff/pull/23
#https://github.com/qwinff/qwinff/pull/47
Patch2:		0003-Add-more-presets.patch
BuildRequires:	cmake >= 3.7.0
BuildRequires:	qt5-macros
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	ffmpeg
Requires:	sox

%description
QWinFF is a cross-platform, easy-to-use media converter front-end to FFmpeg.
FFmpeg is a powerful command-line utility to convert audio and video file into
numerous formats.
QWinFF features a rich set of presets to help users use FFmpeg easily without
having to manually input command-line flags. Average users can convert multiple
media files in just a few clicks, while advanced users can still adjust
conversion parameters in detail.

%files -f %{name}.lang
%license COPYING.txt
%doc CHANGELOG.txt README.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/translations
%{_datadir}/%{name}/*.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# XXX is it needed?
sed -i'' -e 's,^USE_LIBNOTIFY=0,USE_LIBNOTIFY=1,' Makefile

# XXX "build" directory is created by %%cmake macro
sed -i'' -e 's,bin/qwinff,build/src/qwinff,' Makefile

# XXX prevent trying to load /usr/bin/constants.xml
sed -i'' -e '1 i #define DATA_PATH "%{_datadir}/qwinff"' src/services/paths.h


%build
%cmake
%make USE_LIBNOTIFY=1


%install
%makeinstall_std

# Workaround for translation files not being ready at install time
cp -v build/src/translations/*.qm %{buildroot}%{_datadir}/qwinff/translations

# Install more icons
for size in 256x256 128x128 96x96 72x72 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/$size/apps
	install -m 0644	src/icons/%{name}_$size.png	%{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7839 |21cr|qwit-0.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: qwit
Version: 0.10
Release: 4
Epoch: 1
URL: http://code.google.com/p/qwit/
Summary: Qwit is a simple Qt4-based client for Twitter
License: GPLv3+
Group: Networking/Instant messaging
Source0: http://qwit.googlecode.com/files/%{name}-%{version}-src.tar.bz2
#Patch0: qwit-r154-cmakefile.patch 
BuildRequires: qt4-devel
BuildRequires: cmake
BuildRequires: automoc4

%description
This is a crossplatform twitter client writen in Qt4, it depends only on Qt4

%files
%defattr(-,root,root)
%doc AUTHORS INSTALL README
%_datadir/applications/qwit.desktop
%_iconsdir/qwit.png
%qt4bin/qwit
%qt4dir/translations/*

#-------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-src
#%patch0  -p1 


%build
%cmake_qt4
%make

%install
rm -rf %{buildroot}
%makeinstall_std -C build

%clean
rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7840 |21cr|qxkb-0.4.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		qxkb
Version: 	0.4.6
Release: 	3
License:	GPLv2
Url:		http://qxkb.googlecode.com
Source:		http://qxkb.googlecode.com/files/%{name}-%{version}.tar.bz2
Group:		System/X11
Summary:	Qt keyboard layout switcher
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	qt4-linguist
BuildRequires:	pkgconfig(xkbfile)

%description
The keypad switch written on Qt4.
Uses setxkbmap; The interface repeats kxkb; 
Can use svg icon for indicate language layer.

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

%files
%doc COPYING NEWS README 
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7841 |21cr|qxlsx-1.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname qxlsx %{major}
%define develname	%mklibname qxlsx -d
%define fname		QXlsx

Name:		qxlsx
Version:	1.4.5
Release:	1
Summary:	Excel/XLSX file reader/writer library for Qt
Group:		Databases
License:	MIT
URL:		https://github.com/QtExcel/QXlsx
Source0:	https://github.com/QtExcel/QXlsx/archive/v%{version}/QtXslx-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt6-cmake
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)

%description
QXlsx is a reader/writer library for Excel files (*.xlsx).

#-------------------------------------------------------------

%package -n %{libname}
Summary:	Library for QXlsx
Group:		System/Libraries

%description -n %{libname}
QXlsx is a reader/writer library for Excel files (*.xlsx).

%files -n %{libname}
%{_libdir}/libQXlsxQt6.so.%{major}*
%{_libdir}/libQXlsxQt6.so.1.4.4

#-------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for QtXslx
Group:		Development/KDE and Qt
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
QXlsx is a reader/writer library for Excel files (*.xlsx).

This package contains the development files of QXlsx.

%files -n %{develname}
%license LICENSE
%doc README*
%{_libdir}/libQXlsxQt6.so
%{_includedir}/QXlsx/
%{_libdir}/cmake/QXlsxQt6/

#-------------------------------------------------------------
%prep
%autosetup -p1 -n %{fname}-%{version}

%build
pushd QXlsx
%cmake \
	-DQT_VERSION_MAJOR:STRING=6
%make
popd

%install
%make_install -C QXlsx/build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7842 |21cr|qxmlrpc-1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Full Qt4 based implementation of XML-RPC protocol
Name:		qxmlrpc
Version:	1
Release:	13
License:	GPLv3+
Group:		System/Libraries
Source0:	%{name}-%{version}.tar.bz2
Patch0:		qxmlrpc-1-shared.patch
BuildRequires:	qt4-devel

%description
Full Qt4 based implementation of XML-RPC protocol.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Full Qt4 based implementation of XML-RPC protocol
Group:		System/Libraries

%description -n %{libname}
Full Qt4 based implementation of XML-RPC protocol.

%files -n %{libname}
%{_libdir}/libqxmlrpc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Develompent stuff for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name} < 1-5
Obsoletes:	%{name}-devel < 1-5

%description -n %{devname}
Files needed to build applications based on %{name}.

%files -n %{devname}
%{_libdir}/libqxmlrpc.so
%{_libdir}/libqxmlrpc.a
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%qmake_qt4 xmlrpc.pro -config static -o Makefile.static
%qmake_qt4 xmlrpc.pro -config shared -o Makefile.shared

%make -f Makefile.static CFLAGS="%{optflags}"
make clean -f Makefile.static
%make -f Makefile.shared

%install
mkdir -p %{buildroot}%{_libdir}
cp libqxmlrpc.a %{buildroot}%{_libdir}/
cp libqxmlrpc.so.%{major}.0.0 %{buildroot}%{_libdir}/

pushd %{buildroot}%{_libdir}
ln -s libqxmlrpc.so.%{major}.0.0 libqxmlrpc.so.%{major}.0
ln -s libqxmlrpc.so.%{major}.0 libqxmlrpc.so.%{major}
ln -s libqxmlrpc.so.%{major} libqxmlrpc.so
popd

mkdir -p %{buildroot}%{_includedir}/%{name}/
cp *.h %{buildroot}%{_includedir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7843 |21cr|qzion-0.4.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	QZion is an canvas abstraction used by and made for QEdje
Name:		qzion
Version:	0.4.0
Release:	13
License:	GPLv2
Group:		Development/KDE and Qt 
Url:		http://code.openbossa.org//qedje/
Source0:	%{name}-%{version}.tar.gz
Patch0:		qzion-0.4.0-gcc44.patch
Patch1:		qzion-0.4.0-fix-install.patch
BuildRequires:	kde4-macros
BuildRequires:	python2-qt4
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(QtWebKit)

%description
QZion is an canvas abstraction used by and made for QEdje

#------------------------------------------------

%define major 0
%define libname %mklibname qzion %{major}

%package -n %{libname}
Summary:	Qzionlibrary
Group:		System/Libraries

%description -n %{libname}
Qzion library.


%files -n %{libname}
%{_kde_libdir}/libqzion.so.%{major}*

#-----------------------------------------------

%package -n python-qzion
Summary:	Qzion python bindings
Group:		Development/KDE and Qt
Requires:	python-qt4

%description -n python-qzion
Qzion python bindings.

%files -n python-qzion
%{python2_sitelib}/qzion
%{_datadir}/sip/qzion

#-----------------------------------------------

%package   devel
Summary:	Devel stuff for kdebase 4
Group:		Development/KDE and Qt
Requires:	%{libname} = %{version}-%{release}

%description  devel
Devel packages needed to build QZion apps

%files devel
%{_kde_includedir}/*.h
%{_kde_libdir}/pkgconfig/qzion.pc
%{_kde_libdir}/libqzion.so

#------------------------------------------------

%prep
%setup -qn qzion-mainline 
%apply_patches

%build
%cmake_qt4 -DPYTHON_EXECUTABLE=%{__python2}
%make

%install
cd build
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7844 |21cr|R2spec-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           R2spec
Version:        5.0.0
Release:        1
Summary:        Python script to generate R spec file

Group:          Development/Other
License:        GPLv3+
URL:            https://fedorahosted.org/r2spec/
Source0:        https://fedorahosted.org/releases/r/2/r2spec/R2spec-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       R
Requires:       python3-jinja2
Requires:       wget
Provides:       R2rpm = 1.0.0
Patch0:		R2spec-5.0.0-rosa.patch

%description
R2spec is a small python tool that generates spec file for R libraries.
It can work from a URL or a tarball.
R2spec provides R2rpm which generates rpm for R libraries using the 
R2spec API.

%prep
%setup -q
%patch0 -p1

%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --root=%{buildroot}
install r2spec/specfile.tpl %{buildroot}/%{py3_puresitedir}/r2spec/
chmod -x %{buildroot}/%{py3_puresitedir}/r2spec/specfile.tpl

## Only work localy, needs internet
#%check
#%{__python} tests.py

%files
#-f installed_files2
%doc README LICENSE CHANGELOG
%{py3_puresitedir}/*
%config(noreplace) %{_sysconfdir}/%{name}/repos.cfg
%{_bindir}/%{name}
%{_bindir}/R2rpm
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/R2rpm.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7845 |21cr|r8101-1.035.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	Standalone driver for Realtek RTL810x network adapters
Name:		r8101
Version:	1.035.02
Release:	1
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Source2:	%{name}.conf
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software

%description
This package contains the standalone driver for the following network
adapters by Realtek: RTL8100*, RTL8101*, RTL8102*, RTL8103*, RTL8105*,
RTL8106*, RTL8107E, RTL8401*, RTL8402*.

%package -n dkms-%{name}
Summary:	Standalone driver for Realtek RTL810x network adapters
Group:		System/Kernel and hardware
Requires(post):		dkms
Requires(preun):	dkms

%description -n dkms-%{name}
This package contains the standalone driver for the following network
adapters by Realtek: RTL8100*, RTL8101*, RTL8102*, RTL8103*, RTL8105*,
RTL8106*, RTL8107E, RTL8401*, RTL8402*.

%prep
%setup -q
chmod -x src/*.* src/Makefile* readme

%apply_patches


%build

%install
install -m755 -d %{buildroot}/etc/modprobe.d/
install -m644 %{SOURCE2} %{buildroot}/etc/modprobe.d

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
install -m644 src/*.c src/*.h src/Makefile %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="make -C \$kernel_source_dir M=\\\$(pwd) modules"
CLEAN="make -C \$kernel_source_dir M=\\\$(pwd) clean"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{name}
AUTOINSTALL=yes
EOF

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{name} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n dkms-%{name}
%doc readme
%config(noreplace) /etc/modprobe.d/%{name}.conf
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7846 |21cr|rabbitmq-server-3.12.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global erlang_minver 25.0
# We want to install into /usr/lib, even on 64-bit platforms
%global _rabbit_libdir %{_exec_prefix}/lib/rabbitmq

Summary:	The RabbitMQ server
Name:		rabbitmq-server
Version:	3.12.6
Release:	1
License:	MPLv1.1
Group:		Development/Other
Url:		http://www.rabbitmq.com/
Source0:	https://github.com/rabbitmq/rabbitmq-server/releases/download/v%{version}/rabbitmq-server-%{version}.tar.xz
# curl -O https://raw.githubusercontent.com/rabbitmq/rabbitmq-server/231e90c/scripts/rabbitmq-script-wrapper
# sed -i -e "s, @STDOUT_STDERR_REDIRECTION@,,g" rabbitmq-script-wrapper
# sed -i -e "s,@SU_RABBITMQ_SH_C@,su rabbitmq -s /bin/sh -c,g" rabbitmq-script-wrapper
Source2:	rabbitmq-script-wrapper
# curl -O https://raw.githubusercontent.com/lemenkov/rabbitmq-server/cdfc661/packaging/RPMS/Fedora/rabbitmq-server.logrotate
Source3:	rabbitmq-server.logrotate
Source5:	rabbitmq-server.tmpfiles
Source6:	rabbitmq.sysusers.conf
BuildRequires:	erlang-stack >= %{erlang_minver}
BuildRequires:	erlang-rebar3
BuildRequires:	elixir
BuildRequires:	libxslt-proc
BuildRequires:	rsync
BuildRequires:	systemd
BuildRequires:	xmlto
BuildRequires:	zip
BuildRequires:	python3dist(simplejson)
BuildRequires:	pkgconfig(python3)
Requires:	erlang-compiler
Requires:	erlang-crypto
Requires:	erlang-eldap >= %{erlang_minver}
Requires:	erlang-erl_interface
Requires:	erlang-erts >= %{erlang_minver}
Requires:	erlang-inets
Requires:	erlang-kernel >= %{erlang_minver}
Requires:	erlang-mnesia >= %{erlang_minver}
Requires:	erlang-os_mon >= %{erlang_minver}
Requires:	erlang-public_key >= %{erlang_minver}
Requires:	erlang-runtime_tools
Requires:	erlang-sasl >= %{erlang_minver}
Requires:	erlang-sd_notify
Requires:	erlang-ssl >= %{erlang_minver}
Requires:	erlang-stdlib >= %{erlang_minver}
Requires:	erlang-syntax_tools
Requires:	erlang-tools >= %{erlang_minver}
Requires:	erlang-xmerl >= %{erlang_minver}
Requires:	logrotate

# Users and groups
Requires(pre):	shadow-utils
Requires(pre):	/bin/systemd-sysusers
Requires(post):	systemd
Requires(preun): systemd
BuildArch:	noarch

%description
RabbitMQ is an implementation of AMQP, the emerging standard for high
performance enterprise messaging. The RabbitMQ server is a robust and
scalable implementation of an AMQP broker.

%files
%doc deps/rabbit/docs/rabbitmq.conf.example
%license LICENSE LICENSE-*
%config(noreplace) %attr(0644, rabbitmq, rabbitmq) %{_sysconfdir}/rabbitmq/rabbitmq.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/rabbitmq-server
%dir %attr(0750, rabbitmq, rabbitmq) %{_localstatedir}/lib/rabbitmq
%dir %attr(0750, rabbitmq, rabbitmq) %{_localstatedir}/log/rabbitmq
%dir %attr(0755, rabbitmq, rabbitmq) %{_sysconfdir}/rabbitmq
# FIXME this should add dependency on "/usr/lib/ocf/resource.d/" owner
%dir %{_prefix}/lib/ocf/resource.d/rabbitmq/
%{_mandir}/man5/rabbitmq-env.conf.5*
%{_mandir}/man8/rabbitmqctl.8*
%{_mandir}/man8/rabbitmq-diagnostics.8*
%{_mandir}/man8/rabbitmq-echopid.8*
%{_mandir}/man8/rabbitmq-plugins.8*
%{_mandir}/man8/rabbitmq-queues.8*
%{_mandir}/man8/rabbitmq-server.8*
%{_mandir}/man8/rabbitmq-service.8*
%{_mandir}/man8/rabbitmq-streams.8.xz
%{_mandir}/man8/rabbitmq-upgrade.8*
%{_prefix}/lib/ocf/resource.d/rabbitmq/rabbitmq-server
%{_rabbit_libdir}/
%{_sbindir}/rabbitmqctl
%{_sbindir}/rabbitmq-plugins
%{_sbindir}/rabbitmq-server
%{_sysusersdir}/rabbitmq.conf
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service

%pre
# create rabbitmq group and user
%sysusers_create_package rabbitmq %{SOURCE6}

%preun
# We do not remove /var/log and /var/lib directories
# Leave rabbitmq user and group
%systemd_preun %{name}

# Clean out plugin activation state, both on uninstall and upgrade
rm -rf %{_localstatedir}/lib/rabbitmq/plugins
for ext in rel script boot ; do
	rm -f %{_rabbit_libdir}/lib/rabbitmq_server-%{version}/ebin/rabbit.$ext
done

#---------------------------------------------------------------------------

%prep
%autosetup -p1

# We have to remove it until common_test subpackage lands RHOS
rm -f \
	deps/amqp_client/src/rabbit_ct_client_helpers.erl \
	deps/rabbit_common/src/rabbit_ct_broker_helpers.erl \
	deps/rabbit_common/src/rabbit_ct_helpers.erl

%build
#USE_SPECS="true" USE_PROPER_QC="false" make %{?_smp_mflags}
%make

%install
%makeinstall_std \
	DESTDIR=%{buildroot} \
	PREFIX=%{_prefix} \
	RMQ_ROOTDIR=%{_rabbit_libdir}

make install-man \
	DESTDIR=%{buildroot} \
	PREFIX=%{_prefix} \
	RMQ_ROOTDIR=%{_rabbit_libdir}

mkdir -p %{buildroot}%{_localstatedir}/lib/rabbitmq/mnesia
mkdir -p %{buildroot}%{_localstatedir}/log/rabbitmq

#Copy all necessary lib files etc.
install -p -D -m 0644 deps/rabbit/docs/rabbitmq-server.service.example %{buildroot}%{_unitdir}/%{name}.service
install -p -D -m 0755 %{SOURCE2} %{buildroot}%{_sbindir}/rabbitmqctl
install -p -D -m 0755 %{SOURCE2} %{buildroot}%{_sbindir}/rabbitmq-server
install -p -D -m 0755 %{SOURCE2} %{buildroot}%{_sbindir}/rabbitmq-plugins

# Make necessary symlinks
mkdir -p %{buildroot}%{_rabbit_libdir}/bin
for app in rabbitmq-defaults rabbitmq-env rabbitmq-plugins rabbitmq-server rabbitmqctl ; do
	ln -s %{_rabbit_libdir}/lib/rabbitmq_server-%{version}/sbin/${app} %{buildroot}%{_rabbit_libdir}/bin/${app}
done

install -p -D -m 0755 scripts/rabbitmq-server.ocf %{buildroot}%{_exec_prefix}/lib/ocf/resource.d/rabbitmq/rabbitmq-server

install -p -D -m 0644 %{S:3} %{buildroot}%{_sysconfdir}/logrotate.d/rabbitmq-server

install -p -D -m 0644 deps/rabbit/docs/rabbitmq.conf.example %{buildroot}%{_sysconfdir}/rabbitmq/rabbitmq.conf

rm %{buildroot}%{_rabbit_libdir}/lib/rabbitmq_server-%{version}/{LICENSE,LICENSE-*,INSTALL}

install -d %{buildroot}%{_localstatedir}/run/rabbitmq
install -p -D -m 0644 %{SOURCE5} %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf

# install sysusers config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/rabbitmq.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7847 |21cr|rabbitvcs-0.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname RabbitVCS

Name:		rabbitvcs  
Version:	0.16
Release:	3

Summary:	Graphical user interface to version control systems
Group:		File tools
License:	GPLv2+
URL:		http://blog.rabbitvcs.org/
Source0:	https://github.com/rabbitvcs/rabbitvcs/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pygtk2.0-devel >= 2.12
BuildRequires:	python-devel
BuildRequires:	gtk+2.0
BuildArch:	noarch

%description
RabbitVCS is a set of graphical tools written to provide simple
and straightforward access to the version control systems you use.

#----------------------------------------------------------------------------------

%package core
Summary:	Core package of RabbitVCS
Group:		File tools
Requires:	dbus-python
Requires:	meld
Requires:	pygtk2.0-libglade
Requires:	pygtk2.0
Requires:	python-pysvn
Requires:	python-configobj
Requires:	subversion
Requires:	python-dulwich
BuildArch:	noarch

%description core
Contains packages shared between the RabbitVCS extensions.

%files core -f %{oname}.lang
%doc AUTHORS MAINTAINERS README
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/scalable/*/*.svg
%{py_puresitedir}/%{name}
%{py_puresitedir}/*.egg-info
%{_iconsdir}/hicolor/*/actions/rabbitvcs-push.*

#----------------------------------------------------------------------------------

%package nautilus
Summary:	Nautilus extension for RabbitVCS
Group:		File tools
Requires:	rabbitvcs-core = %{version}
Requires:	nautilus
Requires:	nautilus-python >= 0.5.2
Requires:	dbus-python
BuildArch:	noarch

%description nautilus
RabbitVCS is a set of graphical tools written to provide simple and 
straightforward access to the version control systems you use. This is the 
extension for the Nautilus file manager.

%files nautilus
%doc clients/nautilus/README
%{_libdir}/nautilus/extensions-2.0/python/%{oname}.py*

#----------------------------------------------------------------------------------

%package gedit
Summary:	Gedit extension for RabbitVCS
Group:		File tools
Requires:	rabbitvcs-core = %{version}
Requires:	gedit
BuildArch:	noarch

%description gedit
RabbitVCS is a set of graphical tools written to provide simple and 
straightforward access to the version control systems you use. This is the 
extension for gedit text editor

%files gedit
%doc clients/gedit/README
%{_libdir}/gedit-2/plugins/%{name}-plugin.py*
#%{_libdir}/gedit-2/plugins/%{name}.gedit-plugin

#----------------------------------------------------------------------------------

%package cli
Summary:	CLI extension for RabbitVCS
Group:		File tools
Requires:	rabbitvcs-core = %{version}
BuildArch:	noarch

%description cli
RabbitVCS is a set of graphical tools written to provide simple and 
straightforward access to the version control systems you use. This is the 
extension for command line interface.

%files cli
%doc clients/cli/README
%{_bindir}/%{name}

#----------------------------------------------------------------------------------

%prep
%setup -q

%build
python setup.py build

%install
PYTHONDONTWRITEBYTECODE= python setup.py install --skip-build --root %{buildroot}

# nautilus extension
mkdir -p %{buildroot}%{_libdir}/nautilus/extensions-2.0/python/
cp clients/nautilus/%{oname}.py %{buildroot}%{_libdir}/nautilus/extensions-2.0/python/%{oname}.py

# gedit extension
mkdir -p %{buildroot}%{_libdir}/gedit-2/plugins/
cp clients/gedit/%{name}-plugin.py %{buildroot}%{_libdir}/gedit-2/plugins/%{name}-plugin.py
#cp clients/gedit/%{name}.gedit-plugin %{buildroot}%{_libdir}/gedit-2/plugins/%{name}.gedit-plugin

# CLI extension
mkdir -p %{buildroot}%{_bindir}
cp clients/cli/%{name} %{buildroot}%{_bindir}/%{name}

rm -rf %{buildroot}%{_defaultdocdir}/%{name}

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7848 |21cr|R-abind-1.4_0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  abind
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.4_0
Release:          7
Summary:          Combine multi-dimensional arrays
Group:            Sciences/Mathematics
License:          LGPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.4-0.tar.gz
BuildArch:        noarch
Requires:         R-core
BuildRequires:    R-devel Rmath-devel texlive

%rename R-cran-abind

%description
Combine multi-dimensional arrays into a single array. This is a
generalization of cbind and rbind.  Works with vectors, matrices, and
higher-dimensional arrays.  Also provides functions adrop, asub, and afill
for manipulating, extracting and replacing data in arrays.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7849 |21cr|rabl_client-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Reactive Autonomous Blackhole List (RABL) client
Name:		rabl_client
Version:	1.0.0
Release:	7
License:	GPL
Group:		System/Servers
URL:		http://www.nuclearelephant.com/projects/rabl/
Source0:	http://www.nuclearelephant.com/projects/rabl/sources/%{name}-%{version}.tar.bz2

%description
The Reactive Autonomous Blackhole List (RABL) client.

%prep

%setup -q

%build

%configure \
    --enable-warnings

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}

install -m0755 rabl_client %{buildroot}%{_bindir}/
install -m0644 rabl_client.conf %{buildroot}%{_sysconfdir}/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGE LICENSE README RELEASE.NOTES
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/rabl_client.conf
%attr(0755,root,root) %{_bindir}/rabl_client

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7850 |21cr|raceintospace-2.0beta-0.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A turn based space race strategy game
Name:		raceintospace
Version:	2.0beta
Release:	0.2
License:	GPLv2+
Group:		Games/Strategy
Url:		http://www.raceintospace.org/
Source0:	https://github.com/raceintospace/raceintospace/archive/refs/tags/v.%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		rosa-games-path.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	protobuf-compiler
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
ExclusiveArch:	%{x86_64} aarch64 riscv64

%description
Race Into Space is the free software version of the Liftoff! board game
by Fritz Bronner, originally developed by Strategic Visions and published
by Interplay in 1993 and 1994 as Buzz Aldrin's Race Into Space.

%files
%doc AUTHORS COPYING README.md doc/
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_appdatadir}/*metainfo.xml
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v.%{version}

# _includedir/jsoncpp/json/ becomes _includedir/json/
perl -pi -e "s|jsoncpp/json/json.h|json/json.h|" src/game/*.{h,cpp}


%build
%cmake
export CXXFLAGS="%{optflags} -Wstrict-aliasing=0"
%make

%install
%makeinstall_std -C build

# icons
rm -fr %{buildroot}%{_datadir}/pixmaps
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size icons/raceintospace.xpm \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

desktop-file-install --mode=0644 \
    --delete-original \
    %{buildroot}%{_datadir}/applications/%{name}.desktop

rm -fr %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7851 |21cr|R-acepack-1.3.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  acepack
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.3.3.3
Release:          5
Summary:          ace() and avas() for selecting regression transformations
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/acepack_1.3-3.3.tar.gz
BuildRequires:    R-devel Rmath-devel texlive
%rename R-cran-acepack

%description
ACE and AVAS methods for choosing regression transformations.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7852 |21cr|radeon-profile-20190903-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git_date 20190903
%global optflags $(echo %{optflags} | sed -e 's/-fvar-tracking-assignments//' -e 's/-frecord-gcc-switches//')

Summary:	App for display info about radeon card
Name:		radeon-profile
Version:	%{git_date}
Release:	4
License:	GPLv2+
Group:		System/Configuration/Other
Url:		https://github.com/marazmista/radeon-profile
Source0:	https://github.com/marazmista/radeon-profile/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	strings.ru.ts
Patch0:		add_lang_ru.patch
Patch1:		translations_help_file_fix.patch
BuildRequires:  qmake5
BuildRequires:  clang
BuildRequires:  qt5-linguist-tools
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Charts)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(xrandr)
Requires:	radeon-profile-daemon
Requires:	glxinfo
Requires:	xdriinfo
Requires:	xrandr

%description
App for display info about radeon card.

%files
%doc LICENSE README.md
%{_bindir}/radeon-profile
%{_datadir}/applications/radeon-profile.desktop
%{_iconsdir}/hicolor/*/apps/radeon-profile.png
%{_datadir}/radeon-profile/*.qm

#-----------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

sed -i -e 's/TrayIcon;//' %{name}/extra/radeon-profile.desktop

%build
export CC="clang"
export CXX="clang++"

pushd %{name}
lupdate-qt5 %{name}.pro

cp -a %{SOURCE1} translations/

lrelease-qt5 radeon-profile.pro

%qmake_qt5 \
    QMAKE_CC="$CC" \
    QMAKE_CXX="$CXX"
%make
popd

%install
pushd %{name}
%makeinstall_qt

cd translations
for translation in *.qm
do
install -Dm644 $translation "%{buildroot}%{_datadir}/radeon-profile/$translation"
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7853 |21cr|radeon-profile-daemon-20190603-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git_date 20190603
%global optflags $(echo %{optflags} | sed -e 's/-fvar-tracking-assignments//' -e 's/-frecord-gcc-switches//')

Summary:	System daemon for radeon-profile
Name:		radeon-profile-daemon	
Version:	%{git_date}
Release:	2
License:	GPLv2+
Group:		System/Configuration/Other
Url:		https://github.com/marazmista/radeon-profile-daemon
Source0:	https://github.com/marazmista/radeon-profile-daemon/archive/%{git_date}.tar.gz?/%{name}-%{git_date}.tar.gz
BuildRequires:  qmake5
BuildRequires:  clang
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Network)

%description
System daemon for reading info about Radeon GPU clocks 
and volts as well as control card power profiles so 
the GUI radeon-profile application can be run as normal user.

Supprts opensource xf86-video-ati and xf86-video-amdgpu drivers.

%files
%doc LICENSE README.md
%{_bindir}/radeon-profile-daemon
%{_unitdir}/radeon-profile-daemon.service

%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service

#------------------------------------------------------------------

%prep
%setup -q

%build
export CC="clang"
export CXX="clang++"

pushd %{name}
%qmake_qt5 \
    QMAKE_CC="$CC" \
    QMAKE_CXX="$CXX"
sed -i -e 's|/usr/lib/systemd/system|%{_unitdir}|g' Makefile
%make
popd

%install
pushd %{name}
%makeinstall_qt
cd ..

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7854 |21cr|radicale-3.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Radicale

Summary:	Simple Calendar and Contact Server
Name:		radicale
Version:	3.1.4
Release:	1
License:	GPLv3+
Group:		System/Servers
URL:		https://pypi.org/project/Radicale/
Source0:	https://pypi.python.org/packages/source/R/%{oname}/%{oname}-%{version}.tar.gz
Source1:	radicale.service
Source2:	radicale.logrotate
Source3:	radicale.tmpfiles
# Patch0: config adjustments for systemwide installation
Patch0:		radicale-2.1.11-systemwide.patch
BuildArch:	noarch
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
Requires(pre,preun,post):	rpm-helper
Recommends:	python3-OpenSSL
Recommends:	python3-passlib
Recommends:	python3-requests

%description
The Radicale Project is a complete CalDAV (calendar) and CardDAV (contact)
server solution.

Calendars and address books are available for both local and remote access,
possibly limited through authentication policies. They can be viewed and
edited by calendar and contact clients on mobile phones or computers.

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} %{_sbindir}/nologin
%_pre_groupadd %{name}

%post
%create_ghostfile %{_logdir}/%{name}/%{name}.log %{name} %{name} 0600
%_tmpfilescreate %{name}
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%{_bindir}/%{name}
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %attr(640, radicale, radicale) %{_sysconfdir}/%{name}/config
%dir %attr(700, radicale, radicale) %{_localstatedir}/lib/%{name}/
%dir %attr(700, radicale, radicale) %{_localstatedir}/lib/%{name}/collections/
%dir %attr(700, radicale, radicale) %{_logdir}/%{name}/
%ghost %attr(600, radicale, radicale) %{_logdir}/%{name}/%{name}.log
%dir %ghost %attr(0755, radicale, radicale) %{_rundir}/%{name}
%ghost %attr(0660, -, -) %{_rundir}/%{name}/radicale.pid
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{oname}-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%autopatch -p1

%build
%py3_build

%install
%py3_install

#dir for collections
install -dm0755 %{buildroot}%{_localstatedir}/lib/%{name}/collections

#config
install -Dm0640 config %{buildroot}%{_sysconfdir}/%{name}/config

#logrotate
install -Dm0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

#systemd service file
install -Dm0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

#tmpfile
install -Dm0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

#for ghost file
mkdir -p %{buildroot}%{_logdir}/%{name}
touch %{buildroot}%{_logdir}/%{name}/%{name}.log


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7855 |21cr|radiotray-0.7.4-0.20150106.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The latest release was in 2012, but int the devel tree there are commits
# from jan 2015 (eg GTK3 and gstreamer1.0 support): pick up them
%define	git	1
%define	gitdate	20150106
%if %{git}
%define	ver	0.7.4
%define	rel	0.%{gitdate}.5
%else
%define	ver	0.7.3
%define	rel	4
%endif

Summary:	Radio Tray is a streaming player for listening to online radios
Name:		radiotray
Version:	%{ver}
Release:	%{rel}
Group:		Sound
License:	GPLv1
Url:		https://bitbucket.org/carlmig/radio-tray
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
# More fixes & features not merged yet in the main devel tree
Patch0:		%{name}-0.7.4-fix-Gtk3-issues.patch
Patch1:		%{name}-0.7.4-add-XMediaKeys-plugin.patch
Patch2:		%{name}-0.7.4-fix-MPRISv1-interface.patch
Patch3:		%{name}-0.7.4-add-MPRISv2-interface.patch
Patch4:		%{name}-0.7.4-make-previous-next-code-common-and-use-it.patch
# Keep old patches rediffed
Patch5:		%{name}-0.7.4-create-XDG_DATA_HOME-if-it-does-no-exist.patch
Patch6:		%{name}-0.7.4-fix-crash-on-startup.patch
Patch9:		%{name}-20150106-utf8.patch
# See https://bitbucket.org/carlmig/radio-tray/issues/272/radiotray-freezes-when-site-doesnt-exist
Patch10:	%{name}-0.7.4-give-sane-timeout.patch
%else
Source0:	https://bitbucket.org/carlmig/%{name}/get/%{name}-%{version}.tar.gz
Patch7:		%{name}-0.7.3-fix-crash-on-startup.patch
Patch8:		%{name}-0.7.3-create-XDG_DATA_HOME-if-it-does-no-exist.patch
%endif
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	pyxdg
BuildRequires:	python-devel
BuildRequires:	python-setuptools
Requires:	pygtk2.0
Requires:	pygtk2.0-libglade
Requires:	python-dbus
Requires:	python-gobject
Requires:	python-lxml
Requires:	python-notify
Requires:	python-pyxdg
%if %{git}
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-ugly
Requires:	gstreamer1.0-mms
Requires:	gstreamer1.0-soup
Requires:	typelib(Gdk) = 3.0
Requires:	typelib(GdkPixbuf) = 2.0
Requires:	typelib(Gst) = 1.0
Requires:	typelib(GstApp) = 1.0
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(Keybinder) = 3.0
Requires:	python-gstreamer1.0
# Restricted packages
Recommends:	gstreamer1.0-faad
Recommends:	gstreamer1.0-faac
%else
Requires:	gstreamer0.10-plugins-base
Requires:	gstreamer0.10-plugins-good
Requires:	gstreamer0.10-plugins-bad
Requires:	gstreamer0.10-plugins-ugly
Requires:	gstreamer0.10-mms
Requires:	gstreamer0.10-python
Requires:	gstreamer0.10-soup
# Restricted packages
Recommends:	gstreamer0.10-faad
Recommends:	gstreamer0.10-faac
%endif
BuildArch:	noarch

%description
Radio Tray is an online radio streaming player that runs on a Linux system
tray. Its goal is to have the minimum interface possible, making it very
straightforward to use. Radio Tray is not a full featured music player,
there are plenty of excellent music players already. However, there was a
need for a simple application with minimal interface just to listen to online
radios. And that's the sole purpose of Radio Tray.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_docdir}/%{name}-%{version}/*
%{py_puresitedir}/%{name}/
%{py_puresitedir}/%{name}*egg-info

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}
%if %{git}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch9 -p1
%patch10 -p1
%else
%patch7 -p1
%patch8 -p1
%endif

%if !%{git}
sed -i -e '/^#!\//, 1d' src/radiotray.py
%endif


%build
CFLAGS="%{optflags}" python setup.py build


%install
python setup.py install -O1 --skip-build --root %{buildroot}

# Fix perms
chmod +x %{buildroot}%{py_puresitedir}/%{name}/%{name}_runner.py

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7856 |21cr|radiusclient-ng-0.5.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Radiusclient library and tools
Name:		radiusclient-ng
Version:	0.5.6
Release:	6
License:	BSD
Group:		System/Servers
Url:		http://developer.berlios.de/projects/radiusclient-ng/
Source0:	http://download.berlios.de/radiusclient-ng/%{name}-%{version}.tar.gz

%description
Radiusclient is a /bin/login replacement which gets called by a getty to log in
a user and to setup the user's login environment. Normal login programs just
check the login name and password which the user entered against the local
password file (/etc/passwd, /etc/shadow). In contrast to that Radiusclient also
uses the RADIUS protocol to authenticate the user.

%files
%doc BUGS CHANGES README* doc/*.html
%attr(0755,root,root) %{_sbindir}/*

#----------------------------------------------------------------------------

%package conf
Summary:	Radiusclient configuration files
Group:		System/Libraries

%description conf
Configuration files required for Radiusclient.

%files conf
%dir %{_sysconfdir}/%{name}
%attr(0644,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Radiusclient library
Group:		System/Libraries
Requires:	%{name}-conf

%description -n %{libname}
Libraries required for Radiusclient.

%files -n %{libname}
%{_libdir}/libradiusclient-ng.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development documentation for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and development documentation for %{name}.

%files -n %{devname}
%{_libdir}/libradiusclient-ng.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-shadow \
	--enable-scp

%make

%install
%makeinstall_std

# rename these to prevent file clashes with the old package
pushd %{buildroot}%{_sbindir}
for i in *; do mv ${i} ${i}-ng; done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7857 |21cr|R-affy-1.46.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  affy
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.46.1
Release:          4
Summary:          Methods for Affymetrix Oligonucleotide Arrays
Group:            Sciences/Mathematics
License:          LGPL (>= 2.0)
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/affy_%{version}.tar.gz
Requires:         R-Biobase R-affyio R-Biobase R-BiocInstaller R-graphics
Requires:         R-grDevices R-methods R-preprocessCore R-stats R-utils
Requires:         R-zlibbioc R-tkWidgets
Requires:         R-BiocGenerics
%if %{without bootstrap}
Requires:         R-affydata
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-Biobase
BuildRequires:    R-affyio R-Biobase R-BiocInstaller R-graphics
BuildRequires:    R-grDevices R-methods R-preprocessCore R-stats R-utils
BuildRequires:    R-zlibbioc R-tkWidgets
BuildRequires:    R-BiocGenerics
%if %{without bootstrap}
BuildRequires:    R-affydata
%endif

%description
The package contains functions for exploratory oligonucleotide array
analysis. The dependence on tkWidgets only concerns few convenience
functions. 'affy' is fully functional without it.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7858 |21cr|R-affydata-1.11.15-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  affydata
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.11.15
Release:          6
Summary:          Affymetrix Data for Demonstration Purpose
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              None
Source0:          http://bioconductor.org/packages/2.9/data/experiment/src/contrib/affydata_1.11.15.tar.gz
Requires:         R-affy 
Requires:         R-methods 
Requires:         R-hgu95av2cdf R-hgu133acdf 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-affy
BuildRequires:    R-methods 
BuildRequires:    R-hgu95av2cdf R-hgu133acdf 

%description
Example datasets of a slightly large size. They represent 'real world
examples', unlike the artificial examples included in the package affy.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/celfiles
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/extracelfiles
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7859 |21cr|R-affyio-1.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  affyio
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.30.0
Release:          5
Summary:          Tools for parsing Affymetrix data files
Group:            Sciences/Mathematics
License:          LGPL (>= 2)
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/affyio_1.30.0.tar.gz
Requires:         R-methods 
Requires:         R-zlibbioc 
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-zlibbioc 
BuildRequires:    zlib-devel

%description
Routines for parsing Affymetrix data files based upon file format
information. Primary focus is on accessing the CEL and CDF file formats.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7860 |21cr|R-AGD-0.35-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  AGD
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.35
Release:          5
Summary:          Analysis of Growth Data
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-gamlss 


BuildRequires:    R-devel Rmath-devel  R-gamlss


%description
Tools for NIHES course EP18 'Analysis of Growth Data', May 22-23 2012,

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7861 |21cr|rage-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Enlightened media center
Name:		rage
Version:	0.4.0
Release:	1
Epoch:		1
License:	BSD
Group:		Graphical desktop/Enlightenment
Url:		https://www.enlightenment.org/
Source0:	https://download.enlightenment.org/rel/apps/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	edje
BuildRequires:	evas
BuildRequires:	pkgconfig(ecore)
BuildRequires:	pkgconfig(edje)
BuildRequires:	pkgconfig(elementary)
BuildRequires:	pkgconfig(emotion)
BuildRequires:	pkgconfig(evas)

%description
This is a media center designed mostly for use on a television hooked up to
your pc via a remote control. see the key controls at the end to make your
remote send the right keystrokes - eventually this will be 100% configurable
via the gui.

%files
%doc AUTHORS README TODO
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_libdir}/%{name}/utils/rage_thumb

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7862 |21cr|rainbow-cm-2.0git-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rainbow-cm
Version:	2.0git
Release:	1
Summary:	Ligthweight GTK+ clipboard manager
Group:		Graphical desktop/GNOME
License:	GPLv3
URL:		https://github.com/sde-gui/rainbow-cm
Source0:	rainbow-cm-2.0git.tar.gz
Source1:	rainbow-cm.svg
Source2:	rainbow-cm.png
Source3:	rainbow-cm.xpm

BuildRequires:	intltool >= 0.50.1
BuildRequires:	gtk+2-devel >= 2.24.0
Requires:	gtk+2 >= 2.24.0

%description
Ligthweight GTK+ clipboard manager, fork Parcellite with more simple
functions.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README ChangeLog TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
%{_datadir}/pixmaps/*

#-------------------------------------------------------------------
%prep
%setup -q
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} data/

%build
NOCONFIGURE=1 ./autogen.sh
%configure
%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7863 |21cr|rakarrack-0.6.2-0.20150813.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The latest release was in nov 2011, but int the devel tree there are commits
# from aug 2015: pick up them
%define	gitdate	%(echo %{release} |cut -d. -f2) 

Summary:	Guitar FX processor emulator
Name:		rakarrack
Version:	0.6.2
Release:	0.20150813.1
License:	GPLv2+
Group:		Sound
Url:		http://rakarrack.sourceforge.net/
# From: git clone git://git.code.sf.net/p/rakarrack/git rakarrack-git
Source0:	%{name}-%{gitdate}.tar.xz
Patch0:		%{name}-0.6.2-strfmt.patch
BuildRequires:	alsa-utils
BuildRequires:	desktop-file-utils
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrender)

%description
Rakarrack is a FX processor emulator for guitar and other purposes. It provides
many effects: tcompressor, expander, noise gate, graphic equalizer, parametric
equalizer, exciter, shuffle, convolotron, valve, flanger, dual flange, chorus,
musicaldelay, arpie, echo with reverse playback, musical delay, reverb,
digital phaser, analogic phaser, synthfilter, varyband, ring, wah-wah, 
alien-wah, mutromojo, harmonizer, looper and four flexible distortion modules
including sub-octave modulation and dirty octave up. It features real time
processing, JACK support, an online tuner, bank and preset managment, and a
monophonic MIDI converter. Patch files from previous versions can be converted
using the provided rakconvert script.

%files
%doc %{_docdir}/%{name}
%{_bindir}/%{name}
%{_bindir}/rakconvert
%{_bindir}/rakgit2new
%{_bindir}/rakverb
%{_bindir}/rakverb2
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/pixmaps/*.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/*.1*
%{_sysconfdir}/modules-load.d/%{name}.conf

# Useless: it will be loaded anyway at the program start
#post
#modprobe snd_seq

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitdate}
%patch0 -p1
sed -ie 's/<Fl\//<FL\//g' src/global.h src/process.C

# Fix perms
chmod -x src/*.{C,cxx,h,xpm} extra/*.C

%build
autoreconf -vfi
%configure --enable-datadir --enable-docdir
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}//modules-load.d
echo "snd_seq" > %{buildroot}%{_sysconfdir}//modules-load.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7864 |21cr|R-akima-0.5.11-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  akima
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5.11
Release:          5
Summary:          Interpolation of irregularly spaced data
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/akima_0.5-11.tar.gz
BuildRequires:    R-devel Rmath-devel  

%description
Linear or cubic spline interpolation for irregular gridded data

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7865 |21cr|rakudo-2023.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 2023.02
%define debug_package %{nil}
Summary:	Rakudo, a Raku Programming Language compiler for the MoarVM, JVM and Javascript virtual machines
Name:		rakudo
Version:	%{date}
Release:	1
License:	Artistic-2.0
Group:		Development/Perl
Url:		https://rakudo.org/
Source0:	https://github.com/rakudo/rakudo/archive/%{date}.tar.gz?/%{name}-%{date}.tar.gz
Source1:	https://github.com/Raku/nqp-configure/archive/refs/heads/master.zip?/nqp-configure.zip
Source10:	perl6.macros

BuildRequires: perl-autodie
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(ExtUtils::Command)
BuildRequires: perl(Test::Harness)
BuildRequires: pkgconfig(libzstd)
BuildRequires: nqp
BuildRequires: moarvm
BuildRequires: moarvm-devel
Requires: moarvm
Requires: nqp
Provides: /usr/bin/perl6
Provides: perl6

%description
This is Rakudo, a Raku Programming Language compiler 
for the MoarVM, JVM and Javascript virtual machines.

%files
%doc LICENSE README.md
%{_bindir}/raku*
%{_bindir}/perl6*
%{_libdir}/perl6
%{_datadir}/perl6
%{_mandir}/man1/perl6*.xz
%{_rpmmacrodir}/*perl6*

#------------------------------------------------------------------

%prep
%setup -q

unzip %{SOURCE1}
mv nqp-configure*/* 3rdparty/nqp-configure/

%build
%{__perl} Configure.pl \
  --prefix=%{_prefix}
%make

%check
%ifnarch %{ix86}
%make test
%endif

%install
%makeinstall_std

# install script perl6 modules
sed -i -e '1 s&#!.*\(perl6\)&#!/usr/bin/\1&' tools/install-dist.p6
install tools/install-dist.p6 -D %{buildroot}%{_libdir}/perl6/bin/mod_inst.pl

# install man
%{__perl} -MExtUtils::Command -e mkpath %{buildroot}%{_mandir}/man1
pod2man --section=1 --name=perl6 docs/running.pod | %{__gzip} -c > %{buildroot}%{_mandir}/man1/perl6.1.gz
pod2man --section=1 --name=perl6-m docs/running.pod | %{__gzip} -c > %{buildroot}%{_mandir}/man1/perl6-m.1.gz

#Perl6 specific macro rpm.
%install_macro perl6 %{SOURCE10}

# E: zero-length #
rm -rf %{buildroot}%{_libdir}/perl6/repo.lock
rm -rf %{buildroot}%{_libdir}/perl6/precomp/.lock

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7866 |21cr|rakudo-zef-0.5.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define BR_PERL6_VENDOR %{buildroot}%{perl6_vendor_dir}
%define debug_package %{nil}

Summary:	Perl6 Module Management
Name:		rakudo-zef	
Version:	0.5.3
Release:	3
License:	Artistic-2.0
Group:		Development/Perl
Url:		https://github.com/ugexe/zef/
Source0:	https://github.com/ugexe/zef/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

# rakudo contains perl6 RPM macros
BuildRequires: rakudo
BuildRequires: moarvm
BuildRequires: perl-Test-Harness
Requires: rakudo

%description
Find available modules — use the zef module manager
(comes with Rakudo Star) to install modules listed
at the Perl6 modules directory.

%files
%{_bindir}/zef
%{perl6_vendor_dir}/*/*
%{_mandir}/man1/zef.1*

#------------------------------------------------------------------

%prep
%setup -qn zef-%{version}

%build
##none

%install
#RAKUDO_RERESOLVE_DEPENDENCIES=0 ... ??
%perl6_mod_inst --to=%{BR_PERL6_VENDOR} --for=vendor

%{__mkdir_p} %{buildroot}%{_bindir}
ln -sr %{buildroot}%{perl6_vendor_dir}/bin/zef %{buildroot}%{_bindir}/zef

%{__sed} -i -e '1 s/env perl6/perl6/' %{BR_PERL6_VENDOR}/bin/zef
%{__sed} -i -e '1 s/env perl6-m/perl6-m/' %{BR_PERL6_VENDOR}/bin/zef-m

# Generating man-page
%{__mkdir_p} %{buildroot}%{_mandir}/man1
pod2man --section=1 --name=zef README.pod > %{buildroot}%{_mandir}/man1/zef.1

%check
prove -e '%{__perl6} -Ilib'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7867 |21cr|R-ALL-1.4.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ALL
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.4.11
Release:          6
Summary:          A data package
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              None
Source0:          http://bioconductor.org/packages/data/experiment/src/contrib/ALL_1.4.11.tar.gz
Requires:         R-Biobase 
Requires:         R-rpart 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-Biobase
BuildRequires:    R-rpart 

%description
Data of T- and B-cell Acute Lymphocytic Leukemia from the Ritz Laboratory
at the DFCI (includes Apr 2004 versions)

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7868 |21cr|R-amap-0.8.14-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  amap
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.8.14
Release:          3
Summary:          Another Multidimensional Analysis Package
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/amap_0.8-14.tar.gz
Requires:         R-Biobase 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-Biobase 

%description
Tools for Clustering and Principal Component Analysis (With robusts
methods, and parallelized functions).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/exec
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/po

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7869 |21cr|R-Amelia-1.7.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname Amelia
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.7.4
Release:          4
Summary:          Amelia II: A Program for Missing Data
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-core >= 2.15.3 R-foreign R-utils R-Rcpp >= 0.10.0.4 R-RcppArmadillo
Requires:         liblapack libblas
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-core >= 2.15.3 R-foreign R-utils R-Rcpp >= 0.10.0.4 R-RcppArmadillo
BuildRequires:    lapack-devel

%description
Amelia II multiply imputes missing data in a single
cross-section (such as a survey), from a time series (like
variables collected for each year in a country), or from a
time-series-cross-sectional data set (such as collected by
years for each of several countries). Amelia II implements our
bootstrapping-based algorithm that gives essentially the same
answers as the standard IP or EMis approaches, is usually
considerably faster than existing approaches and can handle
many more variables. Unlike Amelia I and other statistically
rigorous imputation software, it virtually never crashes (but
please let us know if you ﬁnd to the contrary!). The program
also generalizes existing approaches by allowing for trends in
time series across observations within a crosssectional unit,
as well as priors that allow experts to incorporate beliefs
they have about the values of missing cells in their data.
Amelia II also includes useful diagnostics of the ﬁt of
multiple imputation models. The program works from the R
command line or via a graphical user interface that does not
require users to know R.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/gui
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7870 |21cr|R-anchors-3.0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  anchors
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.0.8
Release:          5
Summary:          Statistical analysis of surveys with anchoring vignettes
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/anchors_3.0-8.tar.gz
Requires:         R-rgenoud R-MASS 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-rgenoud R-MASS
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Tools for analyzing survey responses with anchors.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
# %doc %{rlibdir}/%{packname}/doc.tmp
%doc %{rlibdir}/%{packname}/html
# %doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7871 |21cr|rancid-3.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global __requires_exclude perl\\(newgetopt.pl\\)

Name:		rancid
Version:	3.13
Release:	2
Summary:	Really Awesome New Cisco confIg Differ
Group:		Monitoring
License:	GPL
URL:		http://www.shrubbery.net/rancid/
Source:		https://shrubbery.net/pub/rancid/rancid-%{version}.tar.gz
Source1:	%{name}.cron
Patch0:		%{name}-Makefile.patch
Patch1:		%{name}-configure-no-ping-test.patch
Patch2:		%{name}-configure.patch

BuildRequires:	telnet
#BuildRequires:	rsh
BuildRequires:	openssh-clients
BuildRequires:	expect >= 5.40
BuildRequires:	cvs
BuildRequires:	subversion
BuildRequires:	perl-interpreter
BuildRequires:	perl-generators
BuildRequires:	iputils
BuildRequires:	sendmail

Requires(pre):	shadow-utils
Requires:	findutils
Requires:	expect >= 5.40
Requires:	perl
Requires:	iputils

%description
RANCID monitors a router's (or more generally a device's) configuration,
including software and hardware (cards, serial numbers, etc) and uses CVS
(Concurrent Version System) or Subversion  to maintain history of changes.

RANCID does this by the very simple process summarized here:

    * login to each device in the router table (router.db),
    * run various commands to get the information that will be saved,
    * cook the output; re-format, remove oscillating or incrementing data,
    * email any differences (sample) from the previous collection to a mail
      list,
    * and finally commit those changes to the reivision control system

RANCID also includes looking glass software. It is based on Ed Kern's looking
glass which was once used for http://nitrous.digex.net/, for the old-school
folks who remember it. Our version has added functions, supports cisco,
juniper, and foundry and uses the login scripts that come with rancid; so it
can use telnet or ssh to connect to your devices(s).

Rancid currently supports Cisco routers, Juniper routers, Catalyst switches,
Foundry switches, Redback NASs, ADC EZT3 muxes, MRTd (and thus likely IRRd),
Alteon switches, and HP Procurve switches and a host of others.

Rancid is known to be used at: AOL, Global Crossing, MFN, NTT America,
Certainty Solutions Inc. 

%prep
%autosetup -p1

%build
./configure \
    --prefix=%{_prefix} \
    --sysconfdir=%{_sysconfdir}/%{name} \
    --bindir=%{_libexecdir}/%{name} \
    --libdir=%{perl_vendorlib} \
    --enable-conf-install
%make_build

%install
make install DESTDIR=%{buildroot} INSTALL="install -p"
install -d -m 0755 %{buildroot}/%{_localstatedir}/%{name}
install -d -m 0755 %{buildroot}/%{_localstatedir}/log/%{name}
install -d -m 0755 %{buildroot}/%{_localstatedir}/log/%{name}/old
install -d -m 0755 %{buildroot}/%{_sysconfdir}/cron.d
install -d -m 0755 %{buildroot}/%{_bindir}/

#symlink some bins from %%{_libexecdir}/%%{name} to %%{_bindir}
for base in \
 %{name} %{name}-cvs %{name}-fe %{name}-run
 do
 ln -sf %{_libexecdir}/%{name}/${base} \
  %{buildroot}/%{_bindir}/${base}
done

install -D -p -m 0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/cron.d/%{name}

#Patch cron file to point to correct installation directory
sed -i 's|RANCIDBINDIR|%{_libexecdir}/%{name}|g' %{buildroot}/%{_sysconfdir}/cron.d/%{name}


%pre
%_pre_useradd %{name} %{_localstatedir}/%{name} /bin/false

%postun
%_postun_userdel %{name}

%files
%doc CHANGES cloginrc.sample FAQ README README.lg Todo
%license COPYING
%attr(750,%{name},%{name}) %dir %{_sysconfdir}/%{name}
%attr(640,%{name},%{name}) %config(noreplace) %{_sysconfdir}/%{name}/*
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/%{name}
%{_libexecdir}/%{name}
%{_bindir}/*
%{_mandir}/*/*
%{_datadir}/%{name}
%attr(750,%{name},%{name}) %dir %{_localstatedir}/log/%{name}
%attr(750,%{name},%{name}) %dir %{_localstatedir}/log/%{name}/old
%attr(750,%{name},%{name}) %dir %{_localstatedir}/%{name}/

%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7872 |21cr|ranger-1.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:        A flexible console file manager
Name:           ranger
Version:        1.9.3
Release:        1
Group:          File tools
License:        GPLv3+
Url:            https://ranger.github.io/
Source0:        https://ranger.github.io/%{name}-%{version}.tar.gz
Source1:        %{name}.png
Source2:        %{name}.desktop
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  desktop-file-utils
BuildRequires:  imagemagick
BuildArch:      noarch

%description
Ranger is a free console file manager that gives you greater flexibility and a
good overview of your files without having to leave your *nix console. It
visualizes the directory tree in two dimensions: the directory hierarchy on
one, lists of files on the other, with a preview to the right so you know where
you'll be going.

%files
%{_defaultdocdir}/%{name}
%{_bindir}/ranger
%{_bindir}/rifle
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/%{name}_fm-%{version}-py3.?.egg-info
%{_mandir}/man1/ranger.1.*
%{_mandir}/man1/rifle.1.*
#------------------------------------------------------------
%prep
%setup -q

%build
%py3_build


%install
%py3_install
#icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size %{SOURCE1} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

#menu entry
rm -fr %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-install \
  --dir=%{buildroot}%{_datadir}/applications \
  %{SOURCE2}

#linting
chmod +x %{buildroot}%{py3_puresitedir}/ranger/ext/rifle.py
chmod -x %{buildroot}%{_defaultdocdir}/%{name}/config/commands.py

%check
desktop-file-validate \
  %{buildroot}%{_datadir}/applications/%{name}.desktop

sed -i 's|#!/usr/bin/python3 -s -O|#!/usr/bin/python3 -O|' %{buildroot}%{_bindir}/ranger

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7873 |21cr|range-v3-devel-0.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	range-v3

Name:		%{oname}-devel
Version:	0.3.6
Release:	1
Summary:	Experimental range library for C++11/14/17
Source0:	%{url}/archive/%{version}.tar.gz
License:	Boost
Group:		Development/C++
Url:		https://github.com/ericniebler/%{oname}
BuildArch:	noarch

%description
%{summary}

%prep
%setup -q -n %{oname}-%{version}

%build

%install
mkdir --parents "%{buildroot}%{_includedir}"
cp --recursive include/meta include/range "%{buildroot}%{_includedir}"

%files
%doc CREDITS.md LICENSE.txt README.md TODO.md
%{_includedir}/meta
%{_includedir}/range

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7874 |21cr|R-animation-2.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  animation
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.3
Release:          4
Summary:          A gallery of animations in statistics and utilities to create animations
Group:            Sciences/Mathematics
License:          GPLv2 | GPLv3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-MASS 

BuildRequires:    R-devel Rmath-devel texlive-latex 
BuildRequires:    R-MASS
BuildRequires:    x11-server-xvfb

%description
This package contains a variety of functions for animations in statistics,
covering areas such as probability theory, mathematical statistics,
multivariate statistics, nonparametric statistics, sampling survey, linear
models, time series, computational statistics, data mining and machine
learning. These functions might be helpful in teaching statistics and data
analysis. Also provided in this package are several approaches to save
animations to various formats, e.g. Flash, GIF, HTML pages, PDF and videos
(saveSWF(), saveGIF(), saveHTML(), saveLatex(), and saveVideo()
respectively). PDF animations can be inserted into Sweave/knitr easily.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
xvfb-run %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Need to setup some fonts for check...
# %check
# xvfb-run %{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/articles
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/misc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7875 |21cr|R-annotate-1.52.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with internet
%bcond_without bootstrap
%global packname  annotate
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.52.1
Release:          3
Summary:          Annotation for microarrays
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/annotate_%{version}.tar.gz
Requires:         R-AnnotationDbi 
Requires:         R-Biobase R-AnnotationDbi R-DBI R-xtable R-graphics
Requires:         R-utils R-stats R-methods R-Biobase R-XML
Recommends:       R-tkWidgets
%if %{without bootstrap}
Requires:         R-hgu95av2.db R-genefilter R-Biostrings R-rae230a.db
Requires:         R-rae230aprobe R-GO.db R-org.Hs.eg.db R-org.Mm.eg.db
Requires:         R-hom.Hs.inp.db
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-AnnotationDbi
BuildRequires:    R-Biobase R-AnnotationDbi R-DBI R-xtable R-graphics R-utils
BuildRequires:    R-stats R-methods  R-Biobase R-XML R-IRanges R-S4Vectors
%if %{without bootstrap}
BuildRequires:    R-hgu95av2.db R-genefilter R-Biostrings R-rae230a.db
BuildRequires:    R-rae230aprobe R-GO.db R-org.Hs.eg.db R-org.Mm.eg.db
BuildRequires:    R-hom.Hs.inp.db
%endif

%description
Using R enviroments for annotation.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
    %if %{with internet}
%check
%{_bindir}/R CMD check %{packname}
    %endif
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7876 |21cr|R-AnnotationDbi-1.38.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  AnnotationDbi
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.38.0
Release:          4
Summary:          Annotation Database Interface
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-methods R-utils R-Biobase R-DBI 
Requires:         R-XML R-RCurl R-RUnit R-RSQLite R-S4Vectors R-IRanges
Recommends:       R-GenomeInfoDb R-IRanges
%if %{without bootstrap}
Requires:         R-hgu95av2.db R-GO.db R-human.db0 R-hgu95av2cdf
Requires:         R-org.Sc.sgd.db R-org.At.tair.db R-affy R-KEGG.db
Requires:         R-seqnames.db R-reactome.db R-AnnotationForge R-graph R-org.TguttataTestingSubset.eg.db
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:    R-utils R-Biobase R-methods R-utils R-Biobase R-DBI
BuildRequires:    R-XML R-RCurl R-RUnit R-RSQLite R-S4Vectors R-IRanges
%if %{without bootstrap}
BuildRequires:    R-hgu95av2.db R-GO.db R-human.db0 R-hgu95av2cdf
BuildRequires:    R-org.Sc.sgd.db R-org.At.tair.db R-affy R-KEGG.db
BuildRequires:    R-seqnames.db R-reactome.db R-AnnotationForge R-graph R-org.TguttataTestingSubset.eg.db
%endif

%description
Provides user interface and database connection code for annotation data
packages using SQLite data storage.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/NOTES-Herve
%doc %{rlibdir}/%{packname}/TODO
%{rlibdir}/%{packname}/DBschemas
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/script
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7877 |21cr|ranpwd-1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ranpwd
Version:        1.2
Release:        8
Summary:        Program for generating random passwords
License:        GPL
Group:          Text tools
URL:            ftp://ftp.kernel.org/pub/software/utils/admin/ranpwd/
Source0:        ftp://ftp.kernel.org/pub/software/utils/admin/ranpwd/ranpwd-%{version}.tar.gz

%description
The ranpwd program can be used to generate random passwords using the in-kernel
cryptographically secure random number generator.

%prep
%setup -q

%build
%{configure2_5x}
%{make}

%install
%{__rm} -rf %{buildroot}
%{make} install INSTALLROOT=%{buildroot}

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc
%attr(0755,root,root) %{_bindir}/ranpwd
%{_mandir}/man1/ranpwd.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7878 |21cr|R-ape-3.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ape
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.1.2
Release:          4
Summary:          Analyses of Phylogenetics and Evolution


Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/ape_3.1-2.tar.gz
Requires:         R-gee R-nlme R-lattice
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires: R-expm
Requires: R-expm
BuildRequires:    R-gee R-nlme R-lattice
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
ape provides functions for reading, writing, plotting, and manipulating
phylogenetic trees, analyses of comparative data in a phylogenetic
framework, analyses of diversification and macroevolution, computing
distances from allelic and nucleotide data, reading nucleotide sequences,
and several tools such as Mantel's test, computation of minimum spanning
tree, generalized skyline plots, estimation of absolute evolutionary rates
and clock-like trees using mean path lengths, non-parametric rate
smoothing and penalized likelihood. Phylogeny estimation can be done with
the NJ, BIONJ, ME, MVR, SDM, and triangle methods, and several methods
handling incomplete distance matrices (NJ*, BIONJ*, MVR*, and the
corresponding triangle method).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENCE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7879 |21cr|rapidfuzz-cpp-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Rapid fuzzy string matching in C++ using the Levenshtein Distance
Name:		rapidfuzz-cpp
Version:	1.0.1
Release:	1
License:	MIT
Group:		Development/C++
Url:		https://github.com/maxbachmann/rapidfuzz-cpp
Source0:	https://github.com/maxbachmann/rapidfuzz-cpp/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
RapidFuzz is a fast string matching library for Python and C++,
which is using the string similarity calculations from FuzzyWuzzy.
However there are two aspects that set RapidFuzz apart from FuzzyWuzzy:
    1. It is MIT licensed so it can be used whichever License you might
    want to choose for your project, while you're forced to adopt the GPL
    license when using FuzzyWuzzy
    2. It is mostly written in C++ and on top of this comes with a lot of
    Algorithmic improvements to make string matching even faster, while
    still providing the same results. More details on these performance
    improvements in form of benchmarks can be found here

%files
%doc README*
%license LICENSE
%{_includedir}/rapidfuzz
%{_libdir}/*.hpp
%{_libdir}/*.impl
%{_libdir}/cmake/rapidfuzz

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7880 |21cr|rapidjson-1.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# There are no files that we can get debug info from
%define debug_package %{nil}

%define devname %mklibname %{name} -d

Summary:	A fast JSON parser/generator for C++
Name:		rapidjson
Version:	1.1.0
Release:	5
License:	BSD
Group:		Development/C++
Url:		https://rapidjson.org/
Source0:	https://github.com/Tencent/rapidjson/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		remove-Werror-cmakelist.patch
BuildRequires:	cmake
BuildRequires:	doxygen

%description
RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml.

- RapidJSON is small but complete. It supports both SAX and DOM style API.
  The SAX parser is only a half thousand lines of code.
- RapidJSON is fast. Its performance can be comparable to strlen(). It also
  optionally supports SSE2/SSE4.2 for acceleration.
- RapidJSON is self-contained and header-only. It does not depend on external
  libraries such as BOOST. It even does not depend on STL.
- RapidJSON is memory-friendly. Each JSON value occupies exactly 16 bytes for
  most 32/64-bit machines (excluding text string). By default it uses a fast
  memory allocator, and the parser allocates memory compactly during parsing.
- RapidJSON is Unicode-friendly. It supports UTF-8, UTF-16, UTF-32 (LE & BE),
  and their detection, validation and transcoding internally. For example, you
  can read a UTF-8 file and let RapidJSON transcode the JSON strings into
  UTF-16 in the DOM. It also supports surrogates and "\u0000" (null character)

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A fast JSON parser/generator for C++
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml.

- RapidJSON is small but complete. It supports both SAX and DOM style API.
  The SAX parser is only a half thousand lines of code.
- RapidJSON is fast. Its performance can be comparable to strlen(). It also
  optionally supports SSE2/SSE4.2 for acceleration.
- RapidJSON is self-contained and header-only. It does not depend on external
  libraries such as BOOST. It even does not depend on STL.
- RapidJSON is memory-friendly. Each JSON value occupies exactly 16 bytes for
  most 32/64-bit machines (excluding text string). By default it uses a fast
  memory allocator, and the parser allocates memory compactly during parsing.
- RapidJSON is Unicode-friendly. It supports UTF-8, UTF-16, UTF-32 (LE & BE),
  and their detection, validation and transcoding internally. For example, you
  can read a UTF-8 file and let RapidJSON transcode the JSON strings into
  UTF-16 in the DOM. It also supports surrogates and "\u0000" (null character)

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/cmake/RapidJSON/RapidJSONConfig.cmake
%{_libdir}/cmake/RapidJSON/RapidJSONConfigVersion.cmake
%{_libdir}/pkgconfig/RapidJSON.pc
%{_datadir}/doc/RapidJSON/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake \
	-DRAPIDJSON_BUILD_EXAMPLES:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7881 |21cr|rapid-photo-downloader-0.9.34-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

# filter out bogus auto-requires
%global __requires_exclude ^typelib\\(Unity\\)

Summary:	Images downloader for external devices
Name:		rapid-photo-downloader
Version:	0.9.34
Release:	1
License:	GPLv3+
Group:		Graphics
URL:		http://damonlynch.net/rapid
Source0:	https://launchpad.net/rapid/pyqt/%{version}/+download/%{name}-%{version}.tar.gz
Source100:	rapid-photo-downloader.rpmlintrc
Patch0:		fix.start.patch
Patch1:		0001-fix-python_requires.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	gobject-introspection

Requires:	exiv2
Requires:	exif
Requires:	hicolor-icon-theme
Requires:	ffmpegthumbnailer
Requires:	libmediainfo
Requires:	libnotify
Requires:	libraw-tools
Requires:	udisks2
Requires:	%{_lib}notify-gir0.7
Requires:	%{_lib}qt5imageformats-plugins
Requires:	%{_lib}gexiv2_2
Requires:	%{_lib}gexiv2-gir0.10
Requires:	%{_lib}udisks-gir2.0
Requires:	python3-qt5
Requires:	python3-gstreamer1.0-editing-services
Requires:	python3dist(pygobject)
Requires:	python3dist(requests)
Requires:	python3dist(python-distutils-extra)
Requires:	python3dist(pyxdg)
Requires:	python3dist(show-in-file-manager)
Requires:	python3dist(sip)
Requires:	python3dist(tenacity)
Requires:	perl(Image::ExifTool)
Recommends:	gstreamer1.0-plugins-good
Recommends:	gstreamer1.0-libav

%description
Rapid Photo Downloader is written by a photographer for professional
and amateur photographers. Released under the GNU GPL license, it is
designed for use on the Linux Desktop. It can download photos from
multiple cameras, memory cards, and Portable Storage Devices
simultaneously. It provides many options for subfolder
creation, image renaming and backup.

%files -f %{name}.lang
%doc
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/%{name}/
%{_iconsdir}/hicolor/*x*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/solid/*
%{py3_puresitedir}/raphodo/
%{py3_puresitedir}/*.egg-info
%{_mandir}/man1/*
%{_appdatadir}/net.damonlynch.rapid_photo_downloader.metainfo.xml

#---------------------------------------------------------------------

%prep
%autosetup -p1

# drop bundled egg-info
rm -rf *.egg-info/

%build
%py3_build

%install
#build_icons and build_i18n simply stage those files for install (data_files) in setup.py
python3 setup.py build_icons build_translations install -O1 --skip-build --root=%{buildroot}

# Install icons
install -d %{buildroot}%{_iconsdir}/%{name}
cp -a data/icons/* %{buildroot}%{_iconsdir}/%{name}/

# Fix perms...
chmod +x %{buildroot}%{py3_puresitedir}/raphodo/{backupfile,cache,camera,copyfiles,errorlog,generatename,generatenameconfig}.py
chmod +x %{buildroot}%{py3_puresitedir}/raphodo/{offload,programversions,rapid,renameandmovefile,rescan,rpdsql,scan}.py
chmod +x %{buildroot}%{py3_puresitedir}/raphodo/{thumbloadbalancer,thumbnaildaemon,thumbnailextractor,thumbnailpara}.py
chmod +x %{buildroot}%{py3_puresitedir}/raphodo/metadata/{metadataexiftool,metadataphoto,metadatavideo}.py
chmod +x %{buildroot}%{py3_puresitedir}/raphodo/metadata/analysis/analyzephotos.py
chmod +x %{buildroot}%{py3_puresitedir}/raphodo/prefs/preferences.py
chmod +x %{buildroot}%{py3_puresitedir}/raphodo/ui/{filmstrip,nameeditor}.py
# ...and shebangs
grep -Irl '^#!/usr/bin/env python3' | xargs sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' \
	%{buildroot}%{py3_puresitedir}/raphodo/*.py
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{py3_puresitedir}/raphodo/ui/{filmstrip,nameeditor}.py
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{py3_puresitedir}/raphodo/metadata/*.py
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{py3_puresitedir}/raphodo/prefs/preferences.py
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{py3_puresitedir}/raphodo/metadata/analysis/analyzephotos.py

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7882 |21cr|rapidxml-1.13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast XML parser
Name:		rapidxml
Version:	1.13
Release:	4
License:	Boost or MIT
Group:		Development/C++
Url:		http://rapidxml.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}-with-tests.zip
Patch0:		rapidxml-declarations.patch
BuildRequires:	dos2unix
BuildArch:	noarch

%description
RapidXml is an attempt to create the fastest XML parser possible, while
retaining usability, portability and reasonable W3C compatibility. It is an
in-situ parser written in modern C++, with parsing speed approaching that of
strlen function executed on the same data.

#----------------------------------------------------------------------------

%package devel
Summary:	Fast XML parser
Group:		Development/C++

%description devel
RapidXml is an attempt to create the fastest XML parser possible, while
retaining usability, portability and reasonable W3C compatibility. It is an
in-situ parser written in modern C++, with parsing speed approaching that of
strlen function executed on the same data.

%files devel
%doc license.txt manual.html
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.hpp

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-with-tests
%patch0 -p1

dos2unix license.txt

%build
cd tests
# -jX is useless here
make build-g++-debug
cd -

%install
for H in *.hpp; do
    install -Dpm0644 $H %{buildroot}%{_includedir}/%{name}/$H
done

%check
cd tests
# -jX is useless here
make run-g++-debug
cd -

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7883 |21cr|R-aplpack-1.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  aplpack
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.3.0
Release:          4
Summary:          Another Plot PACKage: stem.leaf, bagplot, faces, spin3R, slider functions
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/aplpack_%{version}.tar.gz
Requires:         R-tcltk 
Requires:         R-tkrplot 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-tcltk
BuildRequires:    R-tkrplot 
%rename R-cran-aplpack

%description
set of functions for drawing some special plots: stem.leaf plots a stem
and leaf plot bagplot plots a bagplot faces plots chernoff faces spin3R
for an inspection of a 3-dim point cloud slider functions for interactive

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
# %{rlibdir}/%{packname}/pdf
%{rlibdir}/%{packname}/src

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7884 |21cr|R-arm-1.7.07-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  arm
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.7.07
Release:          4
Summary:          Data Analysis Using Regression and Multilevel/Hierarchical Models
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.7-07.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-MASS R-Matrix R-stats R-lme4 
Requires:         R-abind R-methods R-coda R-nlme 
# Requires:         R-R2WinBUGS R-foreign 
BuildRequires:    R-devel Rmath-devel  R-MASS R-Matrix R-stats R-lme4
BuildRequires:    R-abind R-methods R-coda R-nlme 
# BuildRequires:   R-R2WinBUGS R-foreign 

%description
R functions for processing lm, glm, svy.glm, merMod and polr outputs.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7885 |21cr|rarpd-ss981107-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The RARP daemon
Name:		rarpd
Version:	ss981107
Release:	11
License:	GPL
Group:		System/Servers
URL:		ftp://ftp.inr.ac.ru/ip-routing/dhcp.bootp.rarp/
Source0:	rarpd-%{version}.tar.bz2
Patch0:		rarpd-%{version}.patch
Patch1:		rarpd-norun.patch
Patch2:		rarpd-ss981107-initscript.patch
Patch3:		rarpd-ss981107-override-tftpboot-dir.patch
Requires(post,preun):	rpm-helper


%description
RARP (Reverse Address Resolution Protocol) is a protocol which allows
individual devices on an IP network to get their own IP addresses from the
RARP server.  Some machines (e.g. SPARC boxes) use this protocol instead
of e.g. DHCP to query their IP addresses during network bootup.
Linux kernels up to 2.2 used to provide a kernel daemon for this service,
but since 2.3 kernels it is served by this userland daemon.

You should install rarpd if you want to set up a RARP server on your
network.

%prep
%setup -q -n rarpd
%patch0 -p1
%patch1 -p1
%patch2 -p1 -b .initscript
%patch3 -p1 -b .tftpdir

%build
%make CFLAGS="%{optflags} -Wall -DTFTPDIR='\"%{_localstatedir}/lib/tftpboot\"'"

%install
rm -rf %{buildroot}

install -m755 rarpd.init -D %{buildroot}%{_initrddir}/rarpd
install -m755 rarpd -D %{buildroot}%{_sbindir}/rarpd
install -m644 rarpd.8 -D %{buildroot}%{_mandir}/man8/rarpd.8

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%attr(0755,root,root) %{_initrddir}/rarpd
%{_sbindir}/rarpd
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7886 |21cr|R-arules-1.1.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  arules
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.7
Release:          3
Summary:          Mining Association Rules and Frequent Itemsets
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/arules_1.1-7.tar.gz
Requires:         R-stats
Requires:         R-methods
Requires:         R-Matrix
%if %{without bootstrap}
Requires:         R-pmml
Requires:         R-arulesViz
%endif
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-stats
BuildRequires:    R-methods
BuildRequires:    R-Matrix
%if %{without bootstrap}
BuildRequires:    R-pmml
BuildRequires:    R-arulesViz
%endif
BuildRequires:    pkgconfig(lapack)

%description
Provides the infrastructure for representing, manipulating and analyzing
transaction data and patterns (frequent itemsets and association rules).
Also provides interfaces to C implementations of the association mining
algorithms Apriori and Eclat by C. Borgelt.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7887 |21cr|R-askpass-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname askpass

Summary:	Safe Password Entry for R, Git, and SSH
Name:		R-askpass
Version:	1.1
Release:	1
License:	MIT
Group:		Sciences/Mathematics
Url:		https://CRAN.R-project.org/package=askpass
Source0:	https://cran.r-project.org/src/contrib/%{oname}_%{version}.tar.gz
BuildRequires:	R-sys
BuildRequires:	R-devel

%description
Cross-platform utilities for prompting the user for credentials or a
passphrase, for example to authenticate with a server or read a protected key.
Includes native programs for MacOS and Windows, hence no 'tcltk' is required.
Password entry can be invoked in two different ways: directly from R via the
askpass() function, or indirectly as password-entry back-end for 'ssh-agent' or
'git-credential' via the SSH_ASKPASS and GIT_ASKPASS environment variables.
Thereby the user can be prompted for credentials or a passphrase if needed when
R calls out to git or ssh.

%files
%doc %{_libdir}/R/library/%{oname}/html
%doc %{_libdir}/R/library/%{oname}/NEWS
%license %{_libdir}/R/library/%{oname}/LICENSE
%{_libdir}/R/library/%{oname}/DESCRIPTION
%{_libdir}/R/library/%{oname}/help
%{_libdir}/R/library/%{oname}/INDEX
%{_libdir}/R/library/%{oname}/libs/%{oname}.so
%{_libdir}/R/library/%{oname}/Meta
%{_libdir}/R/library/%{oname}/NAMESPACE
%{_libdir}/R/library/%{oname}/R
%{_libdir}/R/library/%{oname}/WORDLIST

#------------------------------------------------------------------

%prep
%setup -qcn %{oname}

%build

%install
mkdir -p %{buildroot}%{_libdir}/R/library
%{_bindir}/R CMD INSTALL -l %{buildroot}%{_libdir}/R/library %{oname}
test -d %{oname}/src && (cd %{oname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{_libdir}/R/library/R.css

# For macOS only.
rm %{buildroot}%{_libdir}/R/library/%{oname}/mac-{askpass,simplepass}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7888 |21cr|rasqal-0.9.33-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	RDF querying library
Name:		rasqal
Group:		Databases
Version:	0.9.33
Release:	2
License:	LGPLv2.1+
Url:		http://librdf.org/rasqal/
Source0:	http://download.librdf.org/source/%{name}-%{version}.tar.gz
#Patch0:		rasqal-0.9.28-linkm.patch
BuildRequires:	libmpfr-devel
BuildRequires:	pkgconfig(raptor2)

%description
Rasqal handles Resource Description Framework (RDF) query syntaxes, query
construction and query execution returning result bindings. The supported
query languages are RDQL and SPARQL.  Rasqal was designed to work closely
with the Redland RDF library but is entirely separate. It is intended to be
a portable library working across many POSIX systems (Unix, GNU/Linux,
BSDs, OSX, cygwin) win32 and others.

%files
%doc AUTHORS COPYING* ChangeLog LICENSE* NEWS* NOTICE README*
%{_bindir}/roqet
%{_mandir}/man1/roqet*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/librasqal.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%{_bindir}/%{name}-config
%{_includedir}/*
%{_libdir}/librasqal.so
%{_libdir}/pkgconfig/*
%{_mandir}/man1/rasqal*
%{_mandir}/man3/lib*
%{_datadir}/gtk-doc/html/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7889 |21cr|R-assertthat-0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  assertthat
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.1
Release:          4
Summary:          Easy pre and post assertions
Group:            Sciences/Mathematics
License:          GPL-3
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core



Recommends:         R-testthat 
BuildRequires:    R-devel Rmath-devel 

#BuildRequires:   R-testthat 
%description
assertthat is an extension to stopifnot() that makes it easy to declare
the pre and post conditions that you code should satisfy, while also
producing friendly error messages so that your users know what they've
done wrong.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7890 |21cr|ratpoints-2.1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		ratpoints
Group:		Sciences/Mathematics
License:	GPLv2
Summary:	Find rational points on hyperelliptic curves
Version:	2.1.3
Release:	7
Source0:	http://www.mathe2.uni-bayreuth.de/stoll/programs/%{name}-%{version}.tar.gz
Source1:	%{name}.1
URL:		http://www.sagemath.org

BuildRequires:	gmp-devel
BuildRequires:	gzip

Patch0:		ratpoints-2.1.3-shared.patch

%description
Ratpoints is a program that uses an optimized quadratic sieve algorithm
in order to find rational points on hyperelliptic curves.

%package -n     %{libname}
Summary:        Shared library for %{name}
Group:          System/Libraries

%description -n     %{libname}
Ratpoints shared library

%package        devel
Summary:        Development files for %{name}
Requires:       %{name} = %{EVRD}

%description    devel
Header and library for development with %{name}.

%prep
%setup -q

%patch0	-p1

sed -e "s/-Wall -O2 -fomit-frame-pointer/%{optflags}/" \
   -e "s/-shared/& $RPM_LD_FLAGS -lgmp -lm/" \
      -i Makefile

%build
%make CCFLAGS="%{optflags} -fPIC"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
%makeinstall_std LIBDIR=%{_libdir} install
install -p -D -m644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/%{name}.1

%check
LD_LIBRARY_PATH=$PWD: make test

%files
%doc gpl-2.0.txt
%doc ratpoints-doc.pdf
%{_bindir}/ratpoints
%{_mandir}/man1/ratpoints.1*

%files -n %{libname}
%{_libdir}/libratpoints.so.%{major}

%files          devel
%{_includedir}/ratpoints.h
%{_libdir}/libratpoints.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7891 |21cr|ratpoison-1.4.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ratpoison
Summary:	Simple Window Manager largely modelled after Screen
Group:		Graphical desktop/Other
Version:	1.4.8
Release:	3
License:	GPL
URL:		http://www.nongnu.org/ratpoison/
Source0:	http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	readline-devel

%description
Ratpoison is a simple window manager with no large library dependencies,
no fancy graphics, no window decorations, and no rodent dependence. It
is largely modeled after GNU Screen, which has done wonders in the
virtual terminal market. All interaction with the window manager is done
through keystrokes. ratpoison has a prefix map to minimize the key
clobbering that cripples EMACS and other quality pieces of software. All
windows are maximized and kept maximized to avoid wasting precious
screen space.

%prep
%setup -q

%build
export CFLAGS="%optflags -DHAVE_GETLINE"
autoreconf -fi
%configure
%make

%install
%makeinstall_std
rm -rf %{buildroot}/usr/share/doc/%{name}

# startfile
%{__cat} > %{buildroot}%{_bindir}/start%{name} << EOF
exec %{_bindir}/%{name}
EOF

# session file
%{__install} -d %{buildroot}%{_sysconfdir}/X11/wmsession.d
%{__cat} > %{buildroot}%{_sysconfdir}/X11/wmsession.d/16%{name} << EOF
NAME=%{name}
EXEC=%{_bindir}/start%{name}
DESC=%{name} window manager
SCRIPT:
exec %{_bindir}/start%{name}
EOF




%files
%doc INSTALL README TODO doc/ipaq.ratpoisonrc doc/sample.ratpoisonrc AUTHORS COPYING contrib/genrpbindings contrib/split.sh NEWS
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/16%{name}
%attr(644,root,root) %{_mandir}/man1/%{name}.1*
%attr(644,root,root) %{_infodir}/%{name}.info*
%{_datadir}/%{name}
%defattr(755,root,root,755)
%{_bindir}/start%{name}
%{_bindir}/%{name}
%{_bindir}/rpws
%{_datadir}/emacs/site-lisp/ratpoison.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7892 |21cr|raul-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define develname %mklibname %{name} -d

Name:		raul
Version:	2.0.0
Release:	1
Summary:	Realtime Audio Utility Library
License:	GPLv2+
Group:		System/Libraries
Url:		http://drobilla.net/software/raul/
Source0:	https://github.com/drobilla/raul/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:	meson
BuildRequires:	reuse

%description
Raul (Realtime Audio Utility Library) is a C++ utility library 
primarily aimed at audio/musical applications.

#-------------------------------------------------------------
%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name} = %{EVRD}

%description -n %{develname}
This package contains development files for %{name}.

%files -n %{develname}
%{_libdir}/pkgconfig/%{name}-2.pc
%{_includedir}/%{name}-2

#-------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install
#chmod 0755 %{buildroot}%{_libdir}/libraul.so.%{major}*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7893 |21cr|rawstudio-2.1-1.git.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.1

%define commit c140a5eb64901e07db5190db20f9884e86e5dcae
%define commit2 5f73d8b84273c02c3e675c4963c94299be4ccc91

Summary:	Graphical tool to convert raw images of digital cameras
Name:		rawstudio
Version:	2.1
Release:	1.git.1
License:	GPLv2+
Group:		Graphics
Url:		http://rawstudio.org/
Source0:	https://github.com/rawstudio/rawstudio/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source1:	https://github.com/klauspost/rawspeed/archive/%{commit2}/rawspeed-%{commit2}.tar.gz
Source10:	rawstudio.rpmlintrc
Patch0:		https://github.com/sergiomb2/rawstudio/compare/master...load-dcraw_9.28.diff
BuildRequires:	GConf2
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(flickcurl)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(lensfun)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

%description
Rawstudio is an open source raw-image converter written in GTK+.

Features:
* Reads all dcraw supported formats
* Internal 16bit rgb
* Various post-shot controls (white balance, saturation and exposure
  compensation among others)
* Realtime histogram
* Optimized for MMX, 3dnow! and SSE (detected runtime)
* Easy sorting of images
* Fullscreen mode for better overview

%files -f %{name}.lang
%doc README*
%{_bindir}/*
%{_libdir}/rawstudio
%{_libdir}/lib%{name}-%{api}.so
%{_datadir}/%{name}
%{_datadir}/rawspeed
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/appdata/*.xml
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_miconsdir}/*.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit} -a1

rmdir plugins/load-rawspeed/rawspeed
mv rawspeed-%{commit2} plugins/load-rawspeed/rawspeed

%build
# autogen requires sources from git and works with git submodules
#./autogen.sh --no-configure
autoreconf -fi
%configure --disable-static --enable-experimental --enable-maintainer-mode
%make

%install
%makeinstall_std

%find_lang %{name}

desktop-file-install \
        --dir %{buildroot}%{_datadir}/applications         \
        --remove-category Application                           \
        --delete-original                                       \
        %{buildroot}%{_datadir}/applications/rawstudio.desktop

install -d %{buildroot}%{_datadir}/icons/{large,mini}

convert pixmaps/rawstudio.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert pixmaps/rawstudio.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
cp pixmaps/rawstudio.png %{buildroot}%{_liconsdir}/%{name}.png

rm -fr %{buildroot}%{_includedir} %{buildroot}%{_libdir}/{lib%{name}.so,*.la,pkgconfig}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7894 |21cr|raw-thumbnailer-3.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Thumbnail generator for raw images
Name:		raw-thumbnailer
Version:	3.0.0
Release:	4
License:	GPLv2+
Group:		Graphics
Url:		http://libopenraw.freedesktop.org/wiki/RawThumbnailer
Source0:	http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
Patch0:		raw-thumbnailer-libopenraw.patch
BuildRequires:	pkgconfig(libopenraw-0.1)
BuildRequires:	intltool

%description
This simple program generates thumbnails of digital camera raw 
image files using libopenraw and GDK. It supports the same file 
formats as libopenraw.This thumbnailer is designed to be small,
lightweight and fast.

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/%{name}
%{_datadir}/mime/packages/raw-thumbnailer.xml
%{_datadir}/thumbnailers/raw.thumbnailer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7895 |21cr|razercfg-0.42-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname razer %{major}
%define devname %mklibname razer -d

Name:		razercfg
Version:	0.42
Release:	1
Summary:	Razer device configuration tool
Group:		System/Configuration/Hardware
License:	GPLv2
URL:		http://bues.ch/cms/hacking/razercfg.html
Source0:	https://github.com/mbuesch/razer/archive/refs/tags/razercfg-0.42.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ninja
BuildRequires:	cmake
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	python3-devel

%description
This is the next generation Razer device configuration tool
bringing the Razer gaming experience to the free open source world.
This utility is a replacement for the old deathaddercfg tool.
The tool architecture is based on "razerd", which is a background
daemon doing all of the lowlevel privileged hardware accesses.
The user interface tools are "razercfg", a commandline tool;
and "qrazercfg", a QT4 based graphical device configuration tool.


%files
%doc COPYING README*
%{_bindir}/*
%{_unitdir}/razerd.service
%{_sysconfdir}/pm/sleep.d/50-razer
%{_tmpfilesdir}/razerd.conf
/lib/udev/rules.d/80-razer.rules
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{python3_sitelib}/pyrazer
%{python3_sitelib}/razercfg-*.egg-info
%{_datadir}/applications/razercfg.desktop

%post
%_post_service razerd.service
%tmpfiles_create razerd.conf

%preun
%_preun_service razerd.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/librazer.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	razer-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%{_libdir}/*.so

#------------------------------------------------------------------
%prep
%setup -q -n razer-%{name}-%{version}

#fix install path for library
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|' librazer/CMakeLists.txt

%build
%cmake -GNinja
%ninja_build

%install
%ninja_install -C build

install -D -m0644 build/razerd.service %{buildroot}%{_unitdir}/razerd.service



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7896 |21cr|razergenie-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname RazerGenie

Summary:	Standalone Qt application for configuring your Razer devices under GNU/Linux
Name:		razergenie
Version:	1.1.0
Release:	1
License:	GPLv3
Group:		System/Configuration/Hardware
Url:		https://github.com/z3ntu/RazerGenie
Source0:	https://github.com/z3ntu/RazerGenie/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(libopenrazer)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	openrazer

%description
Standalone Qt application for configuring your Razer devices under GNU/Linux.

%files
%doc README.md
%license LICENSE.md
%{_appdatadir}/xyz.z3ntu.%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/xyz.z3ntu.%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/xyz.z3ntu.%{name}.svg
%{_datadir}/%{name}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7897 |21cr|R-base64enc-0.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  base64enc
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.1.2
Release:          4
Summary:          Tools for base64 encoding
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.1-2.tar.gz

BuildRequires:    R-devel Rmath-devel texlive


%description
This package provides tools for handling base64 encoding. It is more
flexible than the orphaned base64 package.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7898 |21cr|R-BatchJobs-1.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  BatchJobs
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.6
Release:          4
Summary:          Batch computing with R
Group:            Sciences/Mathematics
License:          BSD_3_clause + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Recommends:       R-testthat
Requires:         R-BBmisc R-methods 
Requires:         R-checkmate R-utils R-stats R-digest R-DBI R-RSQLite R-sendmailR R-brew R-stringr R-fail 
Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel R-BBmisc R-methods
BuildRequires:    R-checkmate R-utils R-stats R-digest R-DBI R-RSQLite R-sendmailR R-brew R-stringr R-fail 
BuildRequires:    R-MASS 
%description
Provides Map, Reduce and Filter variants to generate jobs on batch
computing systems like PBS/Torque, LSF, SLURM and Sun Grid Engine.
Multicore and SSH systems are also supported. For further details see the
project web page.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/bin
%{rlibdir}/%{packname}/etc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7899 |21cr|R-BayesX-0.2.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname BayesX
%global rlibdir %{_libdir}/R/library

%define debug_package %{nil}

Summary:	R Utilities Accompanying the Software Package BayesX
Name:		R-%{packname}
Version:	0.2.9
Release:	6
License:	GPL-2
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/BayesX_0.2-9.tar.gz
BuildRequires:	R-devel Rmath-devel  R-akima R-shapefiles
BuildRequires:	R-sp R-colorspace R-coda R-splines
BuildRequires:	R-spdep
BuildRequires:	R-rgeos
Requires:	R-akima R-shapefiles
Requires:	R-sp R-colorspace R-coda R-splines
Requires:	R-spdep
Requires:	R-rgeos

%description
This package provides functionality for exploring and visualising
estimation results obtained with the software package BayesX for
structured additive regression. It also provides functions that allow to
read, write and manipulate map objects that are required in spatial
analyses performed with BayesX, a free software for estimating structured
additive regression models (http://www.stat.uni-muenchen.de/~bayesx).

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help

#---------------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7900 |21cr|R-BB-2014.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  BB
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2014.1.1
Release:          5
Summary:          Solving and Optimizing Large-Scale Nonlinear Systems
Group:            Sciences/Mathematics
License:          GPLv3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2014.1-1.tar.gz

%define debug_package %{nil}

Requires:         R-setRNG R-survival R-Hmisc R-numDeriv 
BuildRequires:    R-devel Rmath-devel texlive-latex 

BuildRequires:   R-setRNG R-survival R-Hmisc R-numDeriv 
%description
Barzilai-Borwein spectral methods for solving nonlinear system of
equations, and for optimizing nonlinear objective functions subject to
simple constraints. A tutorial style introduction to this package is
available in a vignette on the CRAN download page or, when the package is
loaded in an R session, with vignette("BB").

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/[RIC]*
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7901 |21cr|R-BBmisc-1.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  BBmisc
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.9
Release:          4
Summary:          Miscellaneous helper functions for B. Bischl
Group:            Sciences/Mathematics
License:          BSD_3_clause + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-stats R-checkmate 
Recommends:       R-testthat R-microbenchmark 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-stats R-checkmate 
#BuildRequires:   R-testthat R-microbenchmark 

%description
Miscellaneous helper functions for and from B. Bischl and some other guys
at TU Dortmund, mainly for package development.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7902 |21cr|R-bdsmatrix-1.3.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  bdsmatrix
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.3.1
Release:          6
Summary:          Routines for Block Diagonal Symmetric matrices
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/bdsmatrix_1.3-1.tar.gz
Requires:         R-methods 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    R-methods
BuildRequires:    pkgconfig(lapack)

%description
This is a special case of sparse matrices, used by coxme

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7903 |21cr|R-BH-1.60.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  BH
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.60.0.2
Release:          4
Summary:          Boost C++ header files
Group:            Sciences/Mathematics
License:          BSL-1.0
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.60.0-2.tar.gz




BuildRequires:    R-devel Rmath-devel texlive-latex 


%description
Boost provides free peer-reviewed portable C++ source libraries.  A large
part of Boost is provided as C++ template code which is resolved entirely
at compile-time without linking.  This package aims to provide the most
useful subset of Boost libraries for template use among CRAN package. By
placing these libraries in this package, we offer a more efficient
distribution system for CRAN as replication of this code in the sources of
other packages is avoided.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7904 |21cr|R-biclust-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  biclust
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.2
Release:          5
Summary:          BiCluster Algorithms
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/biclust_1.0.2.tar.gz
Requires:         R-MASS R-grid R-colorspace R-lattice R-methods
%if %{without bootstrap}
Requires:         R-flexclust R-isa2 
%endif
BuildRequires:    R-devel Rmath-devel  R-MASS
BuildRequires:    R-grid R-colorspace R-lattice R-methods
%if %{without bootstrap}
BuildRequires:    R-flexclust R-isa2
%endif

%description
The main function biclust provides several algorithms to find biclusters
in two-dimensional data: Cheng and Church, Spectral, Plaid Model, Xmotifs
and Bimax. In addition, the package provides methods for data
preprocessing (normalization and discretisation), visualisation, and
validation of bicluster solutions.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7905 |21cr|R-biglm-0.9.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  biglm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.9.1
Release:          7
Summary:          bounded memory linear and generalized linear models
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/biglm_0.9-1.tar.gz
Requires:         R-DBI R-methods
Requires:         R-RSQLite R-RODBC
BuildRequires:    R-devel Rmath-devel  R-DBI R-methods
BuildRequires:    R-RSQLite R-RODBC

%description
Regression for data too large to fit in memory

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7906 |21cr|R-Biobase-2.22.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with internet
%bcond_without bootstrap
%global packname  Biobase
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.22.0
Release:          5
Summary:          Biobase: Base functions for Bioconductor
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/Biobase.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/Biobase_2.22.0.tar.gz
Requires:         R-utils 
Requires:         R-methods
Requires:         R-BiocGenerics
%if %{with bootstrap}
Requires:         R-tools
%else 
Requires:         R-tools R-tkWidgets R-ALL
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-utils
BuildRequires:    R-methods
BuildRequires:    R-BiocGenerics
%if %{with bootstrap}
BuildRequires:    R-tools
%else
BuildRequires:    R-tools R-tkWidgets R-ALL 
%endif

%description
Functions that are needed by many other packages or which replace R

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
    %if %{with internet}
%check
%{_bindir}/R CMD check %{packname}
    %endif
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/Code
%{rlibdir}/%{packname}/ExpressionSet
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/scripts
# %{rlibdir}/%{packname}/UnitTests
%{rlibdir}/%{packname}/testClass.R
%{rlibdir}/Biobase/unitTests/VersionedClass_data/1.8/AnnotatedDataFrame.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/1.8/ExpressionSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/1.8/MIAME.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/1.8/exprSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/1.8/phenoData.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/AnnotatedDataFrame.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/ExpressionSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/MIAME.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/MultiSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/ScalarCharacter.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/SnpSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/Versioned.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/VersionedBiobase.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/Versions.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/VersionsNull.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/aggregator.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/container.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/exprSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/2.0/phenoData.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/AnnotatedDataFrame.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/ExpressionSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/MIAME.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/MultiSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/NChannelSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/SWPD.rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/ScalarCharacter.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/ScalarInteger.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/ScalarLogical.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/ScalarNumeric.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/SnpSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/Versioned.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/VersionedBiobase.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/Versions.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/VersionsNull.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/aggregator.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/bbsym.rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/container.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/eset.rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/exprSet.Rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/golubMergeSub.rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/sample.eSet.rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/sample.exprSet.1.rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/sample.exprSet.rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/devel/swrep.rda
%{rlibdir}/Biobase/unitTests/VersionedClass_data/raw/exprs.tab
%{rlibdir}/Biobase/unitTests/VersionedClass_data/raw/pData.tab
%{rlibdir}/Biobase/unitTests/VersionedClass_data/raw%{_localstatedir}Metadata.tab
%{rlibdir}/Biobase/unitTests/test_AnnotatedDataFrame.R
%{rlibdir}/Biobase/unitTests/test_AssayData.R
%{rlibdir}/Biobase/unitTests/test_DataClasses.R
%{rlibdir}/Biobase/unitTests/test_EsetSubclasses.R
%{rlibdir}/Biobase/unitTests/test_ExpressionSet.R
%{rlibdir}/Biobase/unitTests/test_NChannelSet.R
%{rlibdir}/Biobase/unitTests/test_SnpSet.R
%{rlibdir}/Biobase/unitTests/test_UpdateObject.R
%{rlibdir}/Biobase/unitTests/test_VersionedClass.R
%{rlibdir}/Biobase/unitTests/test_cache.R
%{rlibdir}/Biobase/unitTests/test_checkClass.R
%{rlibdir}/Biobase/unitTests/test_combine.R
%{rlibdir}/Biobase/unitTests/test_copyEnv.R
%{rlibdir}/Biobase/unitTests/test_esApply.R
%{rlibdir}/Biobase/unitTests/test_subListExtract.R
%{rlibdir}/Biobase/unitTests/test_unsaveSetSlot.R
%{rlibdir}/Biobase/unitTests/utilities.R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7907 |21cr|R-BiocGenerics-0.38.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname BiocGenerics
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.38.0
Release:          1
Summary:          Generic functions for Bioconductor
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/BiocGenerics.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/BiocGenerics_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-methods R-graphics R-stats R-parallel
BuildRequires:    R-methods R-graphics R-stats R-parallel

%description
S4 generic functions needed by many Bioconductor packages

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/unitTests
%{rlibdir}/%{packname}/CITATION

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7908 |21cr|R-BiocInstaller-1.14.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  BiocInstaller
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.14.2
Release:          4
Summary:          Install/Update Bioconductor and CRAN Packages
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/BiocInstaller_1.14.2.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-RUnit 
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires: R-BiocGenerics
Requires: R-BiocGenerics
BuildRequires:    R-RUnit 

%description
Installs/updates Bioconductor and CRAN packages

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/scripts
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7909 |21cr|R-BiocStyle-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  BiocStyle
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.0.0
Release:          5
Summary:          Standard styles for vignettes and other Bioconductor documents
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz

BuildRequires:    R-devel Rmath-devel texlive


%description
Provides standard formatting styles for Bioconductor documents. The
vignette illustrates use and functionality.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/sty

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7910 |21cr|R-biomaRt-2.18.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  biomaRt
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.18.0
Release:          5
Summary:          Interface to BioMart databases (e.g. Ensembl, COSMIC ,Wormbase and Gramene)
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/biomaRt_2.18.0.tar.gz
Requires:         R-methods 
Requires:         R-XML R-RCurl 
Requires:         R-annotate 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:    R-XML R-RCurl 
BuildRequires:    R-annotate 

%description
In recent years a wealth of biological data has become available in public
data repositories. Easy access to these valuable data resources and firm
integration with data analysis is needed for comprehensive bioinformatics
data analysis.  biomaRt provides an interface to a growing collection of
databases implementing the BioMart software suite
(http://www.biomart.org). The package enables retrieval of large amounts
of data in a uniform way without the need to know the underlying database
schemas or write complex SQL queries. Examples of BioMart databases are
Ensembl, COSMIC, Uniprot, HGNC, Gramene, Wormbase and dbSNP mapped to
Ensembl. These major databases give biomaRt users direct access to a
diverse set of data and enable a wide range of powerful online queries
from gene annotation to database mining.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7911 |21cr|R-Biostrings-2.60.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  Biostrings
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.60.1
Release:          1
Summary:          String objects representing biological sequences, and matching algorithms
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/Biostrings_%{version}.tar.gz
Requires:         R-methods R-IRanges R-graphics R-methods R-stats R-utils
Requires:         R-RUnit R-Rmpi R-XVector R-zlibbioc
%if %{without bootstrap}
Requires:         R-BSgenome R-BSgenome.Celegans.UCSC.ce2
Requires:         R-BSgenome.Dmelanogaster.UCSC.dm3 R-drosophila2probe
Requires:         R-hgu95av2probe R-hgu133aprobe R-GenomicFeatures
Requires:         R-hgu95av2cdf R-affy R-affydata
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:    R-IRanges R-graphics R-methods R-stats R-utils R-IRanges
BuildRequires:    R-RUnit R-Rmpi R-XVector R-zlibbioc
%if %{without bootstrap}
BuildRequires:    R-BSgenome R-BSgenome.Celegans.UCSC.ce2
BuildRequires:    R-BSgenome.Dmelanogaster.UCSC.dm3 R-drosophila2probe
BuildRequires:    R-hgu95av2probe R-hgu133aprobe R-GenomicFeatures
BuildRequires:    R-hgu95av2cdf R-affy R-affydata
%endif
BuildRequires:    x11-server-xvfb R-GenomeInfoDb R-crayon

%description
Memory efficient string containers, string matching algorithms, and other
utilities, for fast manipulation of large biological sequences or sets of

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Check fils due to texlive issue
#if %%{without bootstrap}
#check
#xvfb-run %%{_bindir}/R CMD check %%{packname}
#endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/unitTests
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7912 |21cr|R-bit-1.1_12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  bit
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1_12
Release:          3
Summary:          A S3 Class for Vectors of 64bit Integers
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.1-12.tar.gz

BuildRequires:    R-devel


%description
 Package 'bit64' provides serializable S3 atomic 64bit (signed) integers
that can be used in vectors, matrices, arrays and data.frames. Methods are
available for coercion from and to logicals, integers, doubles, characters
and factors as well as many elementwise and summary functions. Many fast
algorithmic operations such as 'match' and 'order' support interactive
data exploration and manipulation and optionally leverage caching.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/ANNOUNCEMENT*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/README_devel.txt
%{rlibdir}/%{packname}/exec
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7913 |21cr|R-bitops-1.0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  bitops
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.6
Release:          5
Summary:          Functions for Bitwise operations
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/bitops_1.0-6.tar.gz
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 

%description
Functions for Bitwise operations on integer vectors.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7914 |21cr|rblcheck-1.5-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program for performing checks against RBL-style blacklists
Name:		rblcheck
Version:	1.5
Release:	17
License:	GPL
Group:		Networking/Other
URL:		http://rblcheck.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Source1:	rblcheckrc
# Change the text "RBL filtered by" to "listed by"
# (RBL is a trademark of MAPS LLC.)
# 'listed by' is more accurate
Patch1:		rblcheck-texttweak.patch
# Fix broken code for looking up TXT records, code borrowed
# from Ian Gulliver's "firedns" library (GPL), which can be found at:
# http://firestuff.org/
Patch2:		rblcheck-txt.patch
# Comes from a post to the rblcheck users mailing list. See:
# http://sourceforge.net/mailarchive/forum.php?thread_id=1371771&forum_id=4256
Patch3:		rblcheck-names.patch
# Compile fix for x86_64 systems
Patch4:		rblcheck-1.5-res_query.patch
BuildRequires:	docbook-utils

%description
Rblcheck is a lightweight C program for performing checks against RBL-style IP
address blacklists. It works well in conjunction with Procmail for filtering
unwanted bulk email. 

This package also includes several tools that try to extract an originating IP
address from e-mail header. See %{_bindir}/origip-* and the documentation

%prep

%setup -q -n %{name}-%{version}
%patch1 -p1 -b .texttweak
%patch2 -p0 -b .txt
%patch3 -p0 -b .names
%patch4 -p1 -b .res_query

cp %{SOURCE1} .

%build

%configure

%make

%make -C utils/qmail

%make -C docs html/index.html
mv docs/html/rblcheck html

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}

install -m0755 rbl %{buildroot}%{_bindir}/
install -m0755 rblcheck %{buildroot}%{_bindir}/
install -m0755 utils/qmail/origip.awk %{buildroot}%{_bindir}/origip-qmail.awk
install -m0755 utils/qmail/origip %{buildroot}%{_bindir}/origip-qmail
install -m0755 utils/sendmail/origip.pl %{buildroot}%{_bindir}/origip-sendmail.pl
install -m0644 rblcheckrc %{buildroot}%{_sysconfdir}/rblcheckrc

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS ChangeLog NEWS README html utils/test*.sh
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/rblcheckrc
%{_bindir}/rbl
%{_bindir}/rblcheck
%{_bindir}/origip-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7915 |21cr|rbldnsd-0.998-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small, fast daemon to serve DNSBLs
Name:		rbldnsd
Version:	0.998
Release:	3
License:	GPLv2+
Group:		System/Servers
URL:		http://www.corpit.ru/mjt/rbldnsd.html
Source0:	http://www.corpit.ru/mjt/rbldnsd/rbldnsd-%{version}.tar.gz
Source1:	rbldnsd.init
Patch0:		rbldnsd-0.996b-format_not_a_string_literal_and_no_format_arguments.diff
Requires(post): rpm-helper
Requires(preun): rpm-helper
Requires(pre): rpm-helper
Requires(postun): rpm-helper
BuildRequires:	gawk
BuildRequires:	zlib-devel

%description
Rbldnsd is a small, authoritative-only DNS nameserver designed to serve
DNS-based blocklists (DNSBLs). It may handle IP-based and name-based
blocklists.

%prep

%setup -q
%patch0 -p0

sed -i	-e 's@/var/lib/rbldns\([/ ]\)@/var/lib/rbldnsd\1@g' \
    -e 's@\(-r/[a-z/]*\) -b@\1 -q -b@g' debian/rbldnsd.default

%build
%serverbuild

# this is not an autotools-generated configure script, and does not support --libdir
CFLAGS="$CFLAGS" ./configure

%make

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}/var/lib/rbldnsd

install -m0755 rbldnsd %{buildroot}%{_sbindir}
install -m0644 rbldnsd.8 %{buildroot}%{_mandir}/man8
install -m0644 debian/rbldnsd.default %{buildroot}%{_sysconfdir}/sysconfig/rbldnsd
install -m0755 %{SOURCE1} %{buildroot}%{_initrddir}/rbldnsd

%pre
%_pre_useradd rbldns /var/lib/rbldnsd /sbin/nologin

%post
%_post_service rbldnsd

%preun
%_preun_service rbldnsd

%postun
%_postun_userdel rbldns

%clean
rm -rf %{buildroot}

%files
%defattr (-,root,root,-)
%doc README.user NEWS TODO debian/changelog CHANGES-0.81
%{_initrddir}/rbldnsd
%config(noreplace) %{_sysconfdir}/sysconfig/rbldnsd
%{_sbindir}/rbldnsd
%{_mandir}/man8/rbldnsd.8*
%dir /var/lib/rbldnsd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7916 |21cr|R-BradleyTerry2-1.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  BradleyTerry2
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.0.5
Release:          4
Summary:          Bradley-Terry Models
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-5.tar.gz

Requires:         R-lme4 
Requires:         R-brglm R-gtools R-stats 
Requires:         R-prefmod 
BuildRequires:    R-devel R-lme4
BuildRequires:    R-brglm R-gtools R-stats 
BuildRequires:   R-prefmod 
%description
Specify and fit the Bradley-Terry model and structured versions

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7917 |21cr|R-brew-1.0.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  brew
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.0.6
Release:          4
Summary:          Templating Framework for Report Generation
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-6.tar.gz




BuildRequires:    R-devel Rmath-devel 


%description
brew implements a templating framework for mixing text and R code for
report generation. brew template syntax is similar to PHP, Ruby's erb
module, Java Server Pages, and Python's psp module.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/*.aux
%{rlibdir}/%{packname}/*.brew
%{rlibdir}/%{packname}/*.eps
%{rlibdir}/%{packname}/*.pdf
%{rlibdir}/%{packname}/*.dvi
%{rlibdir}/%{packname}/*.log
%{rlibdir}/%{packname}/*.html
%{rlibdir}/%{packname}/*.tex
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7918 |21cr|R-brglm-0.5.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  brglm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5.9
Release:          4
Summary:          Bias reduction in binomial-response generalized linear models
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.5-9.tar.gz

Requires:         R-profileModel 

Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel R-profileModel

BuildRequires:   R-MASS 
%description
Fit generalized linear models with binomial responses using either an
adjusted-score approach to bias reduction or maximum penalized likelihood
where penalization is by Jeffreys invariant prior. These procedures return
estimates with improved frequentist properties (bias, mean squared error)
that are always finite even in cases where the maximum likelihood
estimates are infinite (data separation). Fitting takes place by fitting
generalized linear models on iteratively updated pseudo-data. The
interface is essentially the same as 'glm'.  More flexibility is provided
by the fact that custom pseudo-data representations can be specified and
used for model fitting. Functions are provided for the construction of
confidence intervals for the reduced-bias estimates.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/CHANGES
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7919 |21cr|R-ca-0.58-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ca
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.58
Release:          4
Summary:          Simple, Multiple and Joint Correspondence Analysis
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core



Requires:         R-rgl 
BuildRequires:    R-devel Rmath-devel  

BuildRequires:   R-rgl 
%description
A package for computation and visualization of simple, multiple and joint
correspondence analysis.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/N*
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7920 |21cr|R-cairoDevice-2.22-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  cairoDevice
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.22
Release:          6
Summary:          Cairo-based cross-platform antialiased graphics device driver
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-grDevices 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-grDevices 
BuildRequires:    cairo-devel
BuildRequires:    glib2-devel
BuildRequires:    gtk2-devel
BuildRequires:    jpeg-devel
BuildRequires:    tiff-devel
BuildRequires:    x11-server-xvfb
%rename R-cran-cairoDevice

%description
Cairo/GTK graphics device driver with output to screen, file (png, svg,
pdf, and ps) or memory (arbitrary GdkDrawable or Cairo context). The
screen device may be embedded into RGtk2 interfaces. Supports all
interactive features of other graphics devices, including

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
xvfb-run %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7921 |21cr|R-caTools-1.17.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  caTools
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.17.1
Release:          5
Summary:          Tools: moving window statistics, GIF, Base64, ROC AUC, etc
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/caTools_%{version}.tar.gz
Requires:         R-bitops 
Requires:         R-MASS R-rpart 
BuildRequires:    R-devel Rmath-devel  R-bitops
BuildRequires:    R-MASS R-rpart 

%description
Contains several basic utility functions including: moving (rolling,
running) window statistic functions, read/write for GIF and ENVI binary
files, fast calculation of AUC, LogitBoost classifier, base64
encoder/decoder, round-off error free sum and cumsum, etc.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7922 |21cr|R-cba-0.2.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  cba
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.2.14
Release:          5
Summary:          Clustering for Business Analytics
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/cba_0.2-14.tar.gz
Requires:         R-grid R-proxy 
Requires:         R-Matrix 
Requires:         R-gclus R-colorspace 
BuildRequires:    R-devel Rmath-devel  R-grid R-proxy
BuildRequires:    R-Matrix 
BuildRequires:    R-gclus R-colorspace 

%description
Implements clustering techniques such as Proximus and Rock, utility
functions for efficient computation of cross distances and data

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7923 |21cr|R-cem-1.1.16-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  cem
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.16
Release:          5
Summary:          Coarsened Exact Matching
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/cem/index.html
Source0:          http://cran.r-project.org/src/contrib/cem_1.1.16.tar.gz
BuildRequires:    R-devel R-randomForest R-combinat R-tcltk R-nlme R-lattice R-MatchIt
Requires:         R-core R-randomForest R-combinat R-tcltk R-nlme R-lattice R-MatchIt
BuildArch:        noarch

%description
Implementation of the Coarsened Exact Matching algorithm

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css


%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/doc
%{rlibdir}/%{packname}/makeLelonde.R
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7924 |21cr|R-checkmate-1.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  checkmate
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.6.0
Release:          4
Summary:          Fast and versatile argument checks
Group:            Sciences/Mathematics
License:          BSD_3_clause + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz



Recommends:       R-testthat 
BuildRequires:    R-devel Rmath-devel  

#BuildRequires:   R-testthat 
%description
Tests and assertions to perform frequent argument checks. A substantial
part of the package was written in C to minimize any worries about
execution time overhead.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7925 |21cr|R-chron-2.3.45-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  chron
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.3.45
Release:          5
Summary:          Chronological objects which can handle dates and times
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/chron_2.3-45.tar.gz
Requires:         R-graphics R-stats 
BuildRequires:    R-devel Rmath-devel  
BuildRequires: R-scales
Requires: R-scales
BuildRequires:    R-graphics R-stats 

%description
Chronological objects which can handle dates and times

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7926 |21cr|rclone-1.65.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=on
%global goipath github.com/rclone/rclone

# for not usr-moved platforms
%if %{mdvver} < 202310
%global _sbindir /sbin
%endif

Summary:	Tool for working with cloud storages
Name:		rclone
Version:	1.65.0
Release:	1
License:	MIT
Group:		Networking/Other
Url:		https://github.com/rclone/rclone
Source0:	https://github.com/rclone/rclone/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# go mod vendor, created with ./upd.sh
Source1:	rclone-%{version}-go-mod-vendor.tar.xz
Source2:	upd.sh
BuildRequires:	golang
%gometa

%description
Rclone is a command-line program to manage files on cloud storage.
It is a feature-rich alternative to cloud vendors' web storage interfaces.
Over 70 cloud storage products support rclone including S3 object stores,
business & consumer file storage services, as well as standard transfer protocols.

Rclone has powerful cloud equivalents to the unix commands rsync, cp, mv, mount,
ls, ncdu, tree, rm, and cat. Rclone's familiar syntax includes shell pipeline
support, and --dry-run protection. It is used at the command line,
in scripts or via its API.

Users call rclone "The Swiss army knife of cloud storage",
and "Technology indistinguishable from magic".

Rclone really looks after your data. It preserves timestamps and verifies
checksums at all times. Transfers over limited bandwidth; intermittent
connections, or subject to quota can be restarted, from the last good file
transferred. You can check the integrity of your files. Where possible, rclone
employs server-side transfers to minimise local bandwidth use and transfers
from one provider to another without using local disk.

Virtual backends wrap local and cloud file systems to apply encryption,
compression, chunking, hashing and joining.

Rclone mounts any local, cloud or virtual filesystem as a disk on Windows, macOS,
Linux and FreeBSD, and also serves these over SFTP, HTTP, WebDAV, FTP and DLNA.

%files
%license COPYING
%doc *.md *.html *.txt docs/
%{_bindir}/rclone
%{_sbindir}/mount.rclone
%{_mandir}/man1/rclone.1*
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/fish/completions/%{name}.fish
%{_datadir}/zsh/vendor-completions/_%{name}

#------------------------------------------------------------------

%prep
%goprep
%autopatch -p1

%build
( cd .. && tar -xf %{SOURCE1} )
export LDFLAGS="-X github.com/rclone/rclone/fs.Version=%{version}"
%gobuild -o %{gobuilddir}/bin/rclone %{goipath}

%{gobuilddir}/bin/%{name} completion bash - > %{name}.bash
%{gobuilddir}/bin/%{name} completion fish - > %{name}.fish
%{gobuilddir}/bin/%{name} completion zsh  - > %{name}.zsh

%install
install -m 755 -vd %{buildroot}%{_bindir}
install -m 755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -Dpm 644 ./rclone.1 %{buildroot}%{_mandir}/man1/rclone.1

install -Dpm 644 %{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -Dpm 644 %{name}.fish %{buildroot}%{_datadir}/fish/completions/%{name}.fish
install -Dpm 644 %{name}.zsh  %{buildroot}%{_datadir}/zsh/vendor-completions/_%{name}

# https://rclone.org/commands/rclone_mount/#rclone-as-unix-mount-helper
install -m 755 -vd %{buildroot}%{_sbindir}
ln -rs %{buildroot}%{_bindir}/rclone %{buildroot}%{_sbindir}/mount.rclone

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7927 |21cr|rclone-browser-1.8.0-0.git45bf74.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 45bf7411839b0919c488a3e3a0a5272b50c9fc7b
%define commit_short %(echo %{commit} | head -c6)

# Work in progress porting to Qt6
%bcond_with qt6

Summary:	GUI for rclone - program for working with cloud storages
Name:		rclone-browser
Version:	1.8.0
Release:	0.git%{commit_short}.1
License:	MIT
Group:		Archiving/Backup
Url:		https://github.com/kapitainsky/RcloneBrowser
Source0:	https://github.com/kapitainsky/RcloneBrowser/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
%if %{with qt6}
Patch1:		qt6.diff
%endif
BuildRequires:  cmake
%if %{with qt6}
BuildRequires:  cmake(Qt6)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Core5Compat)
%else
BuildRequires:  cmake(Qt5)
BuildRequires:  cmake(Qt5Network)
BuildRequires:  cmake(Qt5Widgets)
%endif
Requires:	rclone
# per upstream name
Provides:	RcloneBrowser = %{EVRD}

%description
GUI for rclone - program for working with cloud storages.

%files
%license LICENSE
%doc *.md src/images
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/applications/%{name}.desktop
%{_metainfodir}/%{name}.appdata.xml

#------------------------------------------------------------------

%prep
%autosetup -p1 -n RcloneBrowser-%{commit}
# Do not report warnings as errors (from Fedora)
sed -i "s|-Werror ||" src/CMakeLists.txt

%if %{with qt6}
sed -i -e 's,(Qt5,(Qt6,g' -e 's,qt5_,qt6_,g' -e 's,Qt5:,Qt6:,g' -e 's,-std=c++11,,g' $(find . -name CMakeLists.txt)
sed -i -e 's,QString::SkipEmptyParts,Qt::SkipEmptyParts,g' $(find . -name '*.cpp')
%endif

%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
%make_build -j1

%install
%make_install -C build
install -Dpm 0644 assets/rclone-browser.appdata.xml %{buildroot}%{_metainfodir}/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7928 |21cr|R-cmprsk-2.2.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  cmprsk
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.2.7
Release:          4
Summary:          Subdistribution Analysis of Competing Risks
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2.2-7.tar.gz

Requires:         R-survival 

BuildRequires:    R-devel Rmath-devel R-survival


%description
Estimation, testing and regression modeling of subdistribution functions
in competing risks, as described in Gray (1988), A class of K-sample tests
for comparing the cumulative incidence of a competing risk, Ann. Stat.
16:1141-1154, and Fine JP and Gray RJ (1999), A proportional hazards model
for the subdistribution of a competing risk, JASA, 94:496-509.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7929 |21cr|R-coda-0.19.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname coda
%global rlibdir %{_datadir}/R/library

Summary:	Output analysis and diagnostics for MCMC
Name:		R-%{packname}
Version:	0.19.1
Release:	3
License:	GPL (>= 2)
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	 http://cran.r-project.org/src/contrib/coda_0.19-1.tar.gz
BuildRequires:	R-devel Rmath-devel R-lattice
Requires:	R-core
Requires:	R-lattice
Requires(pre): R-mcmc
BuildArch:	noarch

%description
Output analysis and diagnostics for Markov Chain Monte Carlo simulations.

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/AUTHORS
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

#---------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7930 |21cr|R-coin-1.0.24-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  coin
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.24
Release:          6
Summary:          Conditional Inference Procedures in a Permutation Test Framework
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/coin_1.0-24.tar.gz
Requires:         R-methods R-survival R-mvtnorm R-modeltools R-xtable
Requires:         R-e1071 R-vcd
%if %{without bootstrap}
Requires:         R-multcomp
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:    R-survival R-mvtnorm R-modeltools R-xtable R-e1071 R-vcd
%if %{without bootstrap}
BuildRequires:    R-multcomp
%endif
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Conditional inference procedures for the general independence problem
including two-sample, K-sample (non-parametric ANOVA), correlation,
censored, ordered and multivariate problems.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%doc %{rlibdir}/%{packname}/README
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7931 |21cr|R-colorspace-1.2.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  colorspace
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.2.4
Release:          6
Summary:          Color Space Manipulation
Group:            Sciences/Mathematics
License:          BSD
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/colorspace_1.2-4.tar.gz
Requires:         R-methods 
%if %{with bootstrap}
Requires:         R-KernSmooth R-MASS R-kernlab R-mvtnorm
%else
Requires:         R-KernSmooth R-MASS R-kernlab R-mvtnorm R-vcd 
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
%if %{with bootstrap}
BuildRequires:    R-KernSmooth R-MASS R-kernlab R-mvtnorm
%else
BuildRequires:    R-KernSmooth R-MASS R-kernlab R-mvtnorm R-vcd 
%endif
BuildRequires:    blas-devel
BuildRequires:    lapack-devel
%rename R-cran-colorspace

%description
Carries out mapping between assorted color spaces including RGB, HSV, HLS,
CIEXYZ, CIELUV, HCL (polar CIELUV), CIELAB and polar CIELAB. Qualitative,
sequential, and diverging color palettes based on HCL colors are provided.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
if [ x$DISPLAY != x ];	then %{_bindir}/R CMD check %{packname}
else			true
fi
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7932 |21cr|R-combinat-0.0_8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  combinat
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.0_8
Release:          6
Summary:          combinatorics utilities
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.0-8.tar.gz
Source1:          NAMESPACE
BuildArch:        noarch
Requires:         R-core
BuildRequires:    R-devel Rmath-devel  

%description
routines for combinatorics

%prep
%setup -q -c -n %{packname}
cp %{SOURCE1} combinat/

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7933 |21cr|R-CompQuadForm-1.4.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  CompQuadForm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.4.1
Release:          4
Summary:          Distribution function of quadratic forms in normal variables
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/CompQuadForm_%{version}.tar.gz
BuildRequires:    R-devel Rmath-devel texlive 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Computes the distribution function of quadratic forms in normal variables
using Imhof's method, Davies's algorithm, Farebrother's algorithm or Liu
et al.'s algorithm.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/HISTORY
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7934 |21cr|R-corpcor-1.6.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  corpcor
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.6.7
Release:          5
Summary:          Efficient Estimation of Covariance and (Partial) Correlation
Group:            Sciences/Mathematics
License:          GPLv3+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

BuildRequires:    R-devel Rmath-devel  


%description
This package implements a James-Stein-type shrinkage estimator for the
covariance matrix, with separate shrinkage for variances and correlations.
 The details of the method are explained in Sch\"afer and Strimmer (2005)
and Opgen-Rhein and Strimmer (2007).  The approach is both computationally
as well as statistically very efficient, it is applicable to "small n,
large p" data, and always returns a positive definite and well-conditioned
covariance matrix.  In addition to inferring the covariance matrix the
package also provides shrinkage estimators for partial correlations and
partial variances.  The inverse of the covariance and correlation matrix
can be efficiently computed, as well as any arbitrary power of the
shrinkage correlation matrix.  Furthermore, functions are available for
fast singular value decomposition, for computing the pseudoinverse, and
for checking the rank and positive definiteness of a matrix.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7935 |21cr|R-covr-2.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  covr
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.2.2
Release:          2
Summary:          Test Coverage for Packages
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods 
Requires:         R-stats R-utils R-jsonlite R-rex R-httr R-crayon R-withr 
#Suggests:         R-R6 R-knitr R-rmarkdown R-shiny R-htmltools R-htmlwidgets R-DT R-testthat R-rstudioapi R-devtools R-xml2 R-parallel R-memoise 
BuildRequires:    R-devel Rmath-devel R-methods
BuildRequires:    R-stats R-utils R-rex R-httr R-withr R-crayon
#BuildRequires:   R-htmltools R-htmlwidgets  R-testthat R-rstudioapi R-devtools R-xml2 R-parallel R-memoise

%description
Track and report code coverage for your package and (optionally) upload
the results to a coverage service like 'Codecov' (http://codecov.io) or
'Coveralls' (http://coveralls.io). Code coverage is a measure of the
amount of code being exercised by a set of tests. It is an indirect
measure of test quality and completeness. This package is compatible with
any testing methodology or framework and tracks coverage of both R code
and compiled C/C++/FORTRAN code.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7936 |21cr|R-coxme-2.2.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  coxme
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.2.16
Release:          1
Summary:          Mixed Effects Cox Models
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/coxme_2.2-16.tar.gz
Requires:         R-survival R-bdsmatrix R-nlme R-Matrix R-methods
Requires:         R-mvtnorm R-kinship2
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-survival
BuildRequires:    R-bdsmatrix R-nlme R-Matrix R-methods R-mvtnorm R-kinship2

%description
Cox proportional hazards models containing Gaussian random effects, also
known as frailty models.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%doc %{rlibdir}/%{packname}/COPYRIGHTS
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7937 |21cr|R-cran-leaps-2.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modulename leaps
%define realver 2.9
%define r_library %{_libdir}/R/library

Summary:        Regression subset for R
Name:           R-cran-%{modulename}
Version:        %(echo %{realver} | tr '-' '.')
Release:        5
License:        GPLv2+
Group:          Sciences/Mathematics
Url:            http://cran.r-project.org/web/packages/%{modulename}/index.html
Source0:        http://cran.r-project.org/src/contrib/%{modulename}_%{realver}.tar.gz
BuildRequires:  R-base
BuildRequires:  gcc-gfortran
Requires:       R-base

%description
This R package provides a regression subset selection including
exhaustive search.

%prep
%setup -q -c

%build

R CMD build %{modulename}

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

mkdir -p %{buildroot}/%{r_library}

# install
R CMD INSTALL %{modulename} --library=%{buildroot}/%{r_library}

# provided by R-base
rm -rf %{buildroot}/%{r_library}/R.css

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{r_library}/%{modulename}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7938 |21cr|R-crayon-1.3.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  crayon
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.3.2
Release:          4
Summary:          Colored Terminal Output
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-grDevices R-methods R-utils 
#Requires:         R-testthat 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-grDevices R-methods R-utils 
#BuildRequires:   R-testthat 
%description
Colored terminal output on terminals that support 'ANSI' color and
highlight codes. It also works in 'Emacs' 'ESS'. 'ANSI' color support is
automatically detected. Colors and highlighting can be combined and
nested. New styles can also be created easily. This package was inspired
by the 'chalk' 'JavaScript' project.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
%doc %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/README.markdown
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/logo.png
%{rlibdir}/%{packname}/logo.svg.gz
%{rlibdir}/%{packname}/ANSI-8-OSX.png
%{rlibdir}/%{packname}/ANSI-256-OSX.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7939 |21cr|rcs-5.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Revision Control System (RCS) file version management tools
Name:		rcs
Version:	5.10.1
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.cs.purdue.edu/homes/trinkle/RCS/
Source0:	https://ftp.gnu.org/gnu/rcs/%{name}-%{version}.tar.lz
Patch0:		rcs-5.8-build-tweaks.patch
BuildRequires:	/usr/bin/lzip
BuildRequires:	autoconf
BuildRequires:	ed
BuildRequires:	groff

%description
The Revision Control System (RCS) is a system for managing multiple
versions of files.  RCS automates the storage, retrieval, logging,
identification and merging of file revisions.  RCS is useful for text
files that are revised frequently (for example, programs,
documentation, graphics, papers and form letters).

The rcs package should be installed if you need a system for managing
different versions of files.

%files
%doc NEWS
%{_bindir}/*
%{_mandir}/man?/*
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .build-tweaks

%build
%global optflags %{optflags} -std=c99
export CC=gcc
autoreconf -fi
%configure \
	--with-diffutils
make

%install
%makeinstall_std

install -m 755 src/rcsfreeze %{buildroot}%{_bindir}

rm -f %{buildroot}/%{_infodir}/dir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7940 |21cr|R-cubature-1.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  cubature
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.2
Release:          6
Summary:          Adaptive multivariate integration over hypercubes
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/cubature_1.1-2.tar.gz
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive
BuildRequires:    pkgconfig(lapack)

%description
Adaptive multivariate integration over hypercubes

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7941 |21cr|R-curl-2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  curl
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.1
Release:          6
Summary:          A Modern and Flexible Web Client for R
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              None
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Recommends:       R-testthat R-knitr R-jsonlite R-magrittr R-markdown R-rmarkdown
BuildRequires:    R-devel Rmath-devel 
#BuildRequires:   R-testthat R-knitr R-jsonlite R-magrittr R-markdown R-rmarkdown
BuildRequires:    pkgconfig(libcurl)

%description
The curl() and curl_download() functions provide highly configurable
drop-in replacements for base url() and download.file() with better
performance, support for encryption (https://, ftps://), 'gzip'
compression, authentication, and other 'libcurl' goodies. The core of the
package implements a framework for performing fully customized requests
where data can be processed either in memory, on disk, or streaming via
the callback or connection interfaces. Some knowledge of 'libcurl' is
recommended; for a more-user-friendly web client see the 'httr' package
which builds on this package with HTTP specific tools and logic.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7942 |21cr|R-DAAG-1.20-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  DAAG
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.20
Release:          6
Summary:          Data Analysis And Graphics data and functions
Group:            Sciences/Mathematics
License:          Unlimited
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/DAAG_%{version}.tar.gz
Requires:         R-MASS R-rpart R-randomForest R-boot R-survival 
Requires:         R-lattice R-oz R-quantreg
Recommends:       R-leaps R-lme4 R-knitr
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-MASS R-rpart R-randomForest R-boot R-survival
BuildRequires:    R-lattice R-oz R-quantreg R-latticeExtra

%description
various data sets used in examples and exercises in the book Maindonald,
J.H. and Braun, W.J. (2003, 2007, 2010) "Data Analysis and Graphics Using

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/misc
%{rlibdir}/%{packname}/seedrates.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7943 |21cr|R-data.table-1.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  data.table
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.14.0
Release:          1
Summary:          Extension of Data.frame
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-methods R-chron 
#Requires:         R-ggplot2 R-plyr R-reshape R-reshape2 R-testthat R-hexbin R-fastmatch R-nlme R-xts R-bit64 R-gdata R-GenomicRanges R-caret R-knitr R-curl R-zoo R-plm 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-methods R-chron 
#BuildRequires:   R-ggplot2 R-plyr R-reshape R-reshape2 R-testthat R-hexbin R-fastmatch R-nlme R-xts R-bit64 R-gdata R-GenomicRanges R-caret R-knitr R-curl R-zoo R-plm 
%description
Fast aggregation of large data (e.g. 100GB in RAM), fast ordered joins,
fast add/modify/delete of columns by group using no copies at all, list
columns and a fast file reader (fread). Offers a natural and flexible
syntax, for faster development.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/NEWS.md
%license %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/cc
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/po
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/tests
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7944 |21cr|R-DBI-0.5.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  DBI
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.5.1
Release:          6
Summary:          R Database Interface
Group:            Sciences/Mathematics
License:          LGPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/DBI_0.5-1.tar.gz
Requires:         R-methods 
Recommends:         R-testthat R-RSQLite R-knitr R-rmarkdown R-covr
BuildRequires:    R-devel Rmath-devel texlive 
BuildRequires:    R-methods
BuildRequires:    R-knitr

%description
A database interface (DBI) definition for communication between R and
relational database management systems.  All classes in this package are
virtual and need to be extended by the various R/DBMS implementations.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7945 |21cr|R-degreenet-1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  degreenet
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.2
Release:          5
Summary:          Models for Skewed Count Distributions Relevant to Networks
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/degreenet_1.2.tar.gz
Requires:         R-network 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-network 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Likelihood-based inference for skewed count distributions used in network
modeling. "degreenet" is a part of the "statnet" suite of packages for
network analysis.  For a list of functions type: help(package='degreenet')

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/flo*
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7946 |21cr|R-deldir-0.1.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  deldir
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.1.9
Release:          4
Summary:          Delaunay Triangulation and Dirichlet (Voronoi) Tessellation

Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/deldir_0.1-9.tar.gz
BuildRequires:    R-devel Rmath-devel  
BuildRequires: R-polyclip
Requires: R-polyclip

%description
Calculates the Delaunay triangulation and the Dirichlet or Voronoi
tessellation (with respect to the entire plane) of a planar point set.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/code.discarded
%doc %{rlibdir}/%{packname}/err.list
%doc %{rlibdir}/%{packname}/ex.out
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/READ_ME
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/ratfor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7947 |21cr|R-denstrip-1.5.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  denstrip
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.5.3
Release:          6
Summary:          Density strips and other methods for compactly illustrating distributions
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/denstrip_1.5.3.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-survival
Recommends:	R-vioplot R-lattice R-Hmisc
BuildRequires:    R-devel Rmath-devel

BuildRequires:   R-survival
BuildRequires:   R-vioplot R-lattice R-Hmisc

%description
Graphical methods for compactly illustrating probability distributions,
including density strips, density regions, sectioned density plots and
varying width strips.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7948 |21cr|R-DEoptimR-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  DEoptimR
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.2
Release:          5
Summary:          Differential Evolution Optimization in pure R
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-2.tar.gz
BuildArch:        noarch
Requires:         R-core

BuildRequires:    R-devel Rmath-devel  


%description
An implementation of the jDE variant of the Differential Evolution
stochastic algorithm for global optimization of nonlinear programming

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/xtraR
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7949 |21cr|R-DESeq-1.14.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  DESeq
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.14.0
Release:          5
Summary:          Differential gene expression analysis based on negative binomial distribution
Group:            Sciences/Mathematics
License:          GPL (>= 3)
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/DESeq_1.14.0.tar.gz
Requires:         R-Biobase R-locfit R-genefilter R-geneplotter
Requires:         R-methods R-MASS
%if %{without bootstrap}
Requires:         R-pasilla
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-Biobase
BuildRequires:    R-locfit R-genefilter R-geneplotter R-methods R-MASS
%if %{without bootstrap}
BuildRequires:    R-pasilla
%endif

%description
Estimate variance-mean dependence in count data from high-throughput
sequencing assays and test for differential expression based on a model
using the negative binomial distribution

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extra
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7950 |21cr|R-devtools-1.13.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%define debug_package %{nil}
%global packname  devtools
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.13.6
Release:          2
Summary:          Tools to Make Developing R Packages Easier
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-httr R-utils R-tools R-methods R-memoise R-whisker R-digest R-rstudioapi R-jsonlite R-stats R-git2r R-withr 
Recommends:         R-curl R-crayon R-testthat R-BiocInstaller R-Rcpp R-MASS R-rmarkdown R-knitr R-hunspell R-lintr R-bitops R-roxygen2 R-evaluate R-rversions R-covr R-gmailr 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-httr R-utils R-tools R-methods R-memoise R-whisker R-digest R-rstudioapi R-jsonlite R-stats R-git2r R-withr 

%if %{without bootstrap}
BuildRequires:   R-curl R-crayon R-testthat R-BiocInstaller R-Rcpp R-MASS R-rmarkdown R-knitr R-hunspell R-lintr R-bitops R-roxygen2 R-evaluate R-rversions R-covr R-gmailr
%endif

%description
Collection of package development tools.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7951 |21cr|R-dfoptim-2011.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  dfoptim
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2011.8.1
Release:          5
Summary:          Derivative-free Optimization
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2011.8-1.tar.gz
BuildArch:        noarch
Requires:         R-core




BuildRequires:    R-devel Rmath-devel  


%description
Derivative-Free optimization algorithms. These algorithms do not require
gradient information. More importantly, they can be used to solve
non-smooth optimization problems.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7952 |21cr|R-dichromat-2.0_0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname dichromat
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.0_0
Release:          5
Summary:          Color Schemes for Dichromats
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2.0-0.tar.gz
BuildArch:        noarch
Requires:         R-stats
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:    R-stats

%description
Collapse red-green or green-blue distinctions to simulate
the effects of different types of color-blindness.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7953 |21cr|rdiff-backup-2.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Backup software
Name:		rdiff-backup
Version:	2.0.5
Epoch:		1
Release:	1
License:	GPLv2
Group:		Networking/Other
URL:		http://www.nongnu.org/rdiff-backup/
Source0:	https://github.com/rdiff-backup/rdiff-backup/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	librsync-devel >= 0.9.6
BuildRequires:	popt-devel
BuildRequires:	python3-devel >= 2.2.1
BuildRequires:	python3-rpm
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
Requires:	python3

%description
rdiff-backup is a script, written in Python, that backs up one
directory to another and is intended to be run periodically
(nightly from cron for instance). The target directory ends up
a copy of the source directory, but extra reverse diffs are
stored in the target directory, so you can still recover files
lost some time ago. The idea is to combine the best features of
a mirror and an incremental backup. rdiff-backup can also operate
in a bandwidth efficient manner over a pipe, like rsync. Thus you
can use rdiff-backup and ssh to securely back a hard drive up to
a remote location, and only the differences from the previous
backup will be transmitted.

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

%files
%doc %{_docdir}/%{name}
%attr(755,root,root) %{_bindir}/rdiff-backup
%attr(755,root,root) %{_bindir}/rdiff-backup-statistics
%attr(755,root,root) %{_bindir}/rdiff-backup-delete
%{python3_sitearch}/rdiff_backup/*.py*
%{python3_sitearch}/rdiff_backup/__pycache__
%attr(755,root,root) %{python3_sitearch}/rdiff_backup/*.so
%{python3_sitearch}/rdiff_backup-*.egg-info
%{_mandir}/man1/rdiff-backup*
%{_datadir}/bash-completion/completions/rdiff-backup

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7954 |21cr|R-digest-0.6.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  digest
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.6.15
Release:          2
Summary:          Create Compact Hash Digests of R Objects
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz



Recommends:         R-knitr R-rmarkdown 
BuildRequires:    R-devel Rmath-devel 


%if %{without bootstrap}
BuildRequires:   R-knitr R-rmarkdown
%endif

%description
Implementation of a function 'digest()' for the creation of hash digests
of arbitrary R objects (using the 'md5', 'sha-1', 'sha-256', 'crc32',
'xxhash' and 'murmurhash' algorithms) permitting easy comparison of R
language objects, as well as a function 'hmac()' to create hash-based
message authentication code. Please note that this package is not meant to
be deployed for cryptographic purposes for which more comprehensive (and
widely tested) libraries such as 'OpenSSL' should be used.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7955 |21cr|R-diptest-0.75.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  diptest
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.75.7
Release:          6
Summary:          Hartigan's dip test statistic for unimodality - corrected code
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/diptest_0.75-7.tar.gz
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 

%description
Compute Hartigan's dip test statistic for unimodality

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/extraData
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7956 |21cr|R-doMC-1.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname doMC
%global rlibdir %{_libdir}/R/library

Name: R-%{packname}
Version: 1.3.3
Release: 5
Summary: Foreach parallel adaptor for the multicore package
Group: Sciences/Mathematics
License: GPLv2
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: http://cran.r-project.org/src/contrib/doMC_%{version}.tar.gz
BuildArch: noarch
Requires: R-core R-foreach R-iterators R-utils
BuildRequires: R-devel R-foreach R-iterators R-utils texlive-collection-latex

%description
Provides a parallel backend for the dopar function using
the multicore functionality of the parallel package.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7957 |21cr|R-drosophila2probe-2.13.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  drosophila2probe
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.13.0
Release:          5
Summary:          Probe sequence data for microarrays of type drosophila2
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/drosophila2probe_2.13.0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-AnnotationDbi R-IRanges R-S4Vectors
BuildRequires:    R-devel Rmath-devel  R-AnnotationDbi
BuildRequires:    R-IRanges R-S4Vectors

%description
This package was automatically created by package AnnotationDbi version
1.15.34. The probe sequence data was obtained from
http://www.affymetrix.com. The file name was Drosophila\_2\_probe\_tab.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7958 |21cr|R-DynDoc-1.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  DynDoc
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.40.0
Release:          5
Summary:          Dynamic document tools
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/DynDoc_1.40.0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-utils 
Requires:         R-methods 
BuildRequires:    R-devel Rmath-devel texlive R-methods R-utils
BuildRequires:    R-methods 

%description
A set of functions to create and interact with dynamic documents and

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7959 |21cr|R-e1071-1.6.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  e1071
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.6.4
Release:          5
Summary:          Misc Functions of the Department of Statistics (e1071), TU Wien
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/e1071_1.6-4.tar.gz
Requires:         R-class 
Requires:         R-graphics R-stats R-grDevices R-utils 
Requires:         R-cluster R-mlbench R-nnet R-randomForest R-rpart R-SparseM R-xtable R-Matrix R-MASS 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-class
BuildRequires:    R-graphics R-stats R-grDevices R-utils 
BuildRequires:    R-cluster R-mlbench R-nnet R-randomForest R-rpart R-SparseM R-xtable R-Matrix R-MASS 

%description
Functions for latent class analysis, short time Fourier transform, fuzzy
clustering, support vector machines, shortest path computation, bagged
clustering, naive Bayes classifier, ...

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7960 |21cr|re2-2021.04.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 9
%define	libname %mklibname re2_ %{major}
%define develname %mklibname re2 -d

Summary:	An efficient, principled regular expression library
Name:		re2
Version:	2021.04.01
Release:	1
License:	BSD like
Group:		System/Libraries
URL:		http://code.google.com/p/re2/
# hg clone https://re2.googlecode.com/hg re2
Source0:	re2-2021-04-01.tar.gz

%description
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python.

%package -n	%{libname}
Summary:	An efficient, principled regular expression library
Group:		System/Libraries

%description -n	%{libname}
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python.

%package -n	%{develname}
Summary:	Development files for the re2 library
Group:		Development/C++
Requires:	%{libname} >= %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python.

This package contains the development files for re2.

%prep

%setup -n re2-2021-04-01

%build

%make CXXFLAGS="%{optflags} -pthread"

%install
rm -rf %{buildroot}

%makeinstall_std prefix=%{_prefix} libdir=%{_libdir}

rm -f %{buildroot}%{_libdir}/*.a

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root,-)
%doc LICENSE
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root,-)
%{_libdir}/*.so
%{_libdir}/pkgconfig/re2.pc
%{_includedir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7961 |21cr|reaction-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%define _noautoprov ^renderer(.*)
%else
%define _provides_exceptions ^renderer
%endif

%define		oname	Reaction

Name:		reaction
Version:	1.0
Release:	7
Summary:	First-person shooter based on modified Quake 3 engine
Group:		Games/Arcade
License:	GPLv2
URL:		http://rq3.com/
Source0:	http://download.rq3.com/%{oname}-%{version}-source.tar.gz
Patch0:		reaction-1.0-mdv-custom.patch
Patch1:		reaction-debug.patch
Patch2:		reaction-force-internal-jpeg.patch
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	imagemagick
Requires:	%{name}-data
ExcludeArch:	%{armx}

%description
Reaction was originally called Reaction Quake 3 which was a "total conversion
mod" for Quake III Arena based on action and realism with a specific emphasis
on action over realism. Reaction is a port of the classic Action Quake 2 (AQ2)
mod. AQ2 still enjoyed great popularity in online gaming even 4 years after it
was initially released and on an "obsolete" game engine as well. Many people
attribute this lasting popularity to both the unique gameplay and the AQ2
community. At the time Reaction Quake 3 was first released, AQ2 was still more
popular than other Q3 realism mods and any other Quake 2 and Quake/QuakeWorld
mods.

Reaction Quake 3 aimed to bring the gameplay of AQ2 to a new, more modern game
engine. This mod is made by AQ2 fans and players specifically for those who
love the fast and furious AQ2 gameplay and also to hopefully expose a new
generation of players to this unique gameplay.

Reaction has already surpassed many facets of the last official release of
Action Quake 2, 1.52, and is catching up to some of the latest AQ2 variants.
Considering that AQ2 has had over 4 years of development time and the bulk
Reaction's teamplay, matchmode, and bot development was done in less than
6 months, this is a pretty exciting project. What started out as a project by
part of the AQ2 community who wanted someone to make "Action Quake 3" has
turned into a well-received and pretty solid and fun standalone game.

%prep
%autosetup -p1 -n %{name}

# fix png rgb 
find . -type f -name "Reaction.png" -exec convert {} -strip {} \;

%build
mkdir -p ~/tmp
%make V=1

%install
mkdir -p %{buildroot}%{_gamesbindir}
cp build/release-linux-*/%{oname}.* %{buildroot}%{_gamesbindir}/%{name}
cp build/release-linux-*/%{oname}ded.* %{buildroot}%{_gamesbindir}/%{name}-server

mkdir -p %{buildroot}%{_libdir}/%{name}
cp build/release-linux-*/*.so %{buildroot}%{_libdir}/%{name}/

mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
pushd %{buildroot}%{_gamesdatadir}/%{name}
for N in %{buildroot}%{_libdir}/%{name}/*.so
do
ln -s %{_libdir}/%{name}/`basename $N` `basename $N`;
done
popd

# create and install icons
for N in 16 32 48 64 128; do convert %{oname}.png -scale ${N}x${N}! $N.png; done
install -D 16.png -m 644 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D 32.png -m 644 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D 48.png -m 644 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -D 64.png -m 644 %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D 128.png -m 644 %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# XDG menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=%{oname}
Comment=First-person shooter
Icon=%{name}
Exec=%{_gamesbindir}/%{name}
Terminal=false
Categories=Game;ArcadeGame;
EOF

%files
%doc COPYING.txt README README-Reaction id-readme.txt
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-server
%{_gamesdatadir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7962 |21cr|reaction-data-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define		oname	Reaction
%define		gname	reaction

Name:		%{gname}-data
Version:	1.0
Release:	4
Summary:	Data files used to play first-person shooter Reaction
Group:		Games/Arcade
License:	CC-BY-SA 3.0
URL:		http://rq3.com/
Source0:	http://download.rq3.com/%{oname}-%{version}-Linux-i386.tar.gz
Requires:	%{gname}
ExcludeArch:	%{armx}

%description
Data files used to play first-person shooter Reaction.

%prep
%setup -q -n %{oname}

%build

%install
%__rm -rf %{buildroot}

%__mkdir_p %{buildroot}%{_gamesdatadir}/%{gname}/%{gname}
%__cp Boomstick/* %{buildroot}%{_gamesdatadir}/%{gname}/%{gname}/

%clean
%__rm -rf %{buildroot}

%files
%doc %{oname}-license.txt
%{_gamesdatadir}/%{gname}/%{gname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7963 |21cr|read-edid-3.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

Name:		read-edid
Version:	3.0.2
Release:	1
URL:		http://www.polypux.org/projects/read-edid/
Source0:	http://www.polypux.org/projects/read-edid/%{name}-%{version}.tar.gz
License:	GPLv2
Summary:	Get monitor details
Group:		System/Configuration/Other
BuildRequires:	libx86-devel
BuildRequires:	cmake
#libx86 build only on this arch
ExclusiveArch:	%{ix86} x86_64

%description
This package will try to read the monitor details directly from the
monitor. The program get-edid asks a VBE BIOS for the EDID data. The
program parse-edid parses the data and prints out a human readable
summary.

%package	doc
Summary:	Get monitor details
Group:		Development/Other
Requires:	%{name} >= %{EVRD}

%description doc
doc files for %{name}

%prep
%setup -q

cp LICENSE COPYING

%build
%cmake
%make

%install
%makeinstall_std -C build

%files doc
%{_docdir}/%{name}/*

%files
%{_mandir}/man1/get-edid.1.*
%{_bindir}/*-edid*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7964 |21cr|readseq-19930201-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		readseq
Version:	19930201
Release:	9
Summary:	Reads and writes nucleic/protein sequences in various formats
Group:		Sciences/Biology
License:	Public Domain
URL:		http://iubio.bio.indiana.edu/soft/molbio/readseq/
Source:		%{name}-%{version}.tar.bz2
Patch0:		%{name}.makefile.patch
Patch1:		format_arguments_fix.patch
Patch2:		fix_getline.patch

%description
Readseq is a program for converting among several biosequence file formats,
by D. Gilbert. These formats are currently understood by readseq:

  * ASN.1 format used by NCBI
  * DNAStrider, for common Mac program
  * EMBL, EMBL flatfile format
  * Fitch format, limited use
  * GCG, single sequence format of GCG software
  * GenBank/GB, genbank flatfile format
  * IG/Stanford, used by Intelligenetics and others
  * MSF multi sequence format used by GCG software
  * NBRF format
  * Olsen, format printed by Olsen VMS sequence editor. Input only.
  * PAUP's multiple sequence (NEXUS) format
  * Pearson/Fasta, a common format used by Fasta programs and others
  * Phylip3.2, sequential format for Phylip programs
  * Phylip, interleaved format for Phylip programs (v3.3, v3.4)
  * PIR/CODATA format used by PIR
  * Plain/Raw, sequence data only (no name, document, numbering)
  * Pretty print with various options for nice looking output. Output only.
  * Zuker format, limited use. Input only.

%prep
rm -rf %{buildroot}
%setup
%patch0
%patch1
%patch2

%build
export CFLAGS=$RPM_OPT_FLAGS
make build

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc Readme Readseq.help Formats
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7965 |21cr|real-codecs-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude libstdc*5*
%define debug_package %{nil}

%define essentialamd64 20061203

Name:		real-codecs
Version:	1.2
Release:	10
Summary:	Real Player codecs binaries
License:	Commercial
Group:		System/Libraries
URL:		http://realforum.real.com/cgi-bin/unixplayer/wwwthreads.pl
Source:		http://www1.mplayerhq.hu/MPlayer/releases/codecs/rp9codecs.tar.bz2
Source1:	http://www1.mplayerhq.hu/MPlayer/releases/codecs/rp8codecs-ppc.tar.bz2
Source2:	http://www1.mplayerhq.hu/MPlayer/releases/codecs/rp8codecs-alpha.tar.bz2
Source3:	real-codecs-10.tar.bz2
Source4:	essential-amd64-%{essentialamd64}.tar.bz2
ExclusiveArch:	%{ix86} x86_64 ppc alpha

%description
This package contains Real Player codecs binaries.

This package is in restricted for it's closed source nature.

%prep
%setup -q -n rp9codecs -a 1 -a 2 -a 3 -a 4

%build

%install
install -d -m 755 %{buildroot}%{_libdir}/codecs
%ifarch %{ix86}
install -m 755 *.so* %{buildroot}%{_libdir}/codecs
%endif
%ifarch ppc
install -m 755 rp8codecs-ppc/* %{buildroot}%{_libdir}/codecs
%endif
%ifarch alpha
install -m 755 rp8codecs-alpha/* %{buildroot}%{_libdir}/codecs
%endif
%ifarch x86_64
install -m 755 essential-amd64-%{essentialamd64}/*.so %{buildroot}%{_libdir}/codecs
%endif

%files
%doc essential-amd64-%{essentialamd64}/README
%{_libdir}/codecs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7966 |21cr|R-earth-3.2.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  earth
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.2.7
Release:          4
Summary:          Multivariate Adaptive Regression Spline Models
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_3.2-7.tar.gz

Requires:         R-plotmo R-plotrix 

Requires:         R-mda 
BuildRequires:    R-devel Rmath-devel R-plotmo R-plotrix

BuildRequires:   R-mda 
BuildRequires: blas-devel

%description
Build regression models using the techniques in Friedman's papers "Fast
MARS" and "Multivariate Adaptive Regression Splines". (The term "MARS" is
copyrighted and thus not used in the name of the package.)

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7967 |21cr|reaver-1.6.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Brute force attack against Wifi Protected Setup
Name:		reaver
Version:	1.6.6
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		https://github.com/t6x/reaver-wps-fork-t6x
Source0:	https://github.com/t6x/reaver-wps-fork-t6x/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(sqlite3)

%description
Reaver implements a brute force attack against Wifi Protected Setup (WPS)
registrar PINs in order to recover WPA/WPA2 passphrases, as described in
http://sviehb.files.wordpress.com/2011/12/viehboeck_wps.pdf.

Reaver has been designed to be a robust and practical attack against WPS, and
has been tested against a wide variety of access points and WPS
implementations.

On average Reaver will recover the target AP's plain text WPA/WPA2 passphrase
in 4-10 hours, depending on the AP. In practice, it will generally take half
this time to guess the correct WPS pin and recover the passphrase.

%files
%doc docs/LICENSE docs/README docs/README.REAVER docs/README.WASH
%{_bindir}/reaver
%{_bindir}/wash
%ghost %{_localstatedir}/lib/reaver/reaver.db
%{_mandir}/man1/reaver.1*

#----------------------------------------------------------------------------

%prep
%setup -q

# Remove executable mode from sources
find . -type f -perm /111 -regex ".*\.[ch]" -exec chmod a-x {} \;

%build
pushd src
%configure
%make
popd

%install
pushd src
%makeinstall_std
popd

mkdir -p %{buildroot}%{_mandir}/man1
install -pm0644 docs/reaver.1 %{buildroot}%{_mandir}/man1/
touch %{buildroot}%{_localstatedir}/lib/reaver/reaver.db

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7968 |21cr|R-EBImage-4.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  EBImage
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          4.4.0
Release:          5
Summary:          Image processing toolbox for R
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/EBImage_4.4.0.tar.gz
Requires:         R-methods R-graphics R-stats R-utils R-abind 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods R-graphics R-stats R-utils R-abind
#BuildRequires: R-EBImage
BuildRequires: R-locfit
Requires: R-locfit
BuildRequires: R-png
Requires: R-png
BuildRequires: R-jpeg
Requires: R-jpeg
BuildRequires: R-tiff
Requires: R-tiff
BuildRequires: R-BiocGenerics
Requires: R-BiocGenerics
BuildRequires:    imagemagick-devel
BuildRequires:    jpeg-devel

%description
EBImage is an R package which provides general purpose functionality for
the reading, writing, processing and analysis of images. Furthermore, in
the context of microscopy based cellular assays, EBImage offers tools to
transform the images, segment cells and extract quantitative cellular

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME
#  When sourcing 'EBImage-introduction.R':
#  Error: object must be an array
%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/images
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/scripts
%{rlibdir}/EBImage/NEWS.Rd
%{rlibdir}/EBImage/viewer/display.css
%{rlibdir}/EBImage/viewer/display.template
%{rlibdir}/EBImage/viewer/viewer.js

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7969 |21cr|R-Ecdat-0.2.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Ecdat
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2.4
Release:          5
Summary:          Data sets for econometrics
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/Ecdat_0.2-4.tar.gz
BuildArch:        noarch
Requires:         R-core
Recommends:       R-car R-systemfit R-sem R-lmtest R-sandwich 
BuildRequires:    R-devel Rmath-devel  
#BuildRequires:    R-car R-systemfit R-sem R-lmtest R-sandwich 

%description
Data sets for econometrics

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demoFiles
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7970 |21cr|recoll-1.30.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Desktop full text search tool with a qt gui
Name:		recoll
Version:	1.30.1
Release:	12
Group:		Databases
License:	GPL
URL:		http://www.lesbonscomptes.com/recoll/
Source0:	http://www.lesbonscomptes.com/recoll/%{name}-%{version}.tar.gz
Source1:	recoll-1.30.1_ru.tar.gz
Patch0:     recoll-ki18n.patch
# The category has been fixed so that it is not displayed in the Menu - Development
Patch1:     fix.categories.patch
BuildRequires:	gettext-devel 
BuildRequires:	xapian-devel
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	bison
BuildRequires:	chmlib-devel

# dictionary of Russian words and forms of words
Recommends: (aspell-ru if locales-ru)
# recoll supports running a lot of external programs to index
# files of different types, let's try to support most common ones out of the box
# Based on sampleconf/mimeconf from sources
# See python imports in filters/
# ODF (*.odt, *.ods etc.)
Recommends:	%{_bindir}/xsltproc
# *.doc
Recommends:	%{_bindir}/antiword
# *.rtf
Recommends:	%{_bindir}/unrtf
# *.ogg
Recommends:	python3dist(mutagen)
# decompression
Recommends:	tar
Recommends:	%{_bindir}/bunzip2
Recommends:	%{_bindir}/gunzip
Recommends:	%{_bindir}/unxz
Recommends:	%{_bindir}/unzstd
# *.rar, both python libraries are supported
# python3-unrar is not packaged yet (28.04.2021)
Recommends:	(python3dist(rarfile) or python3dist(unrar))

%description
Recoll is a personal full text search package for Linux, FreeBSD and
other Unix systems. It is based on a very strong backend (Xapian), for
which it provides an easy to use, feature-rich, easy administration
interface.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

pushd qtgui/i18n
tar -xvzf %{SOURCE1}
popd

%build
export PATH="%{_qt5_bindir}:$PATH"
%configure \
	--disable-python-module \
	--disable-python-chm
%make

%install
%makeinstall_std

%files
%{_bindir}/recoll
%{_bindir}/recollindex
%{_libdir}/%{name}/librecoll*
%{_datadir}/applications/recoll-searchgui.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/%{name}
%{_metainfodir}/recoll.appdata.xml
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man1/xadump.1.xz
%{_mandir}/man5/%{name}*.5*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7971 |21cr|recordmydesktop-0.3.8.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:    Desktop session recorder
Name:       recordmydesktop
Version:    0.3.8.1
Release:    11
License:    GPLv2+
Group:      Video
URL:        http://recordmydesktop.sourceforge.net/
Source0:    http://downloads.sourceforge.net/recordmydesktop/%{name}-%{version}.tar.bz2
Patch0:     recordmydesktop-fix-libtheora1.1.patch
Patch1:     recordmydesktop-fix-xorg-headers-1.patch
Patch2:     recordmydesktop-fix-xorg-headers-2.patch
Patch3:     recordmydesktop-fix-havejack.patch
BuildRequires:  libalsa-devel
BuildRequires:  libogg-devel
BuildRequires:  libtheora-devel
BuildRequires:  libvorbis-devel
BuildRequires:  libice-devel
BuildRequires:  libsm-devel
BuildRequires:  libxdamage-devel
BuildRequires:  libxext-devel
BuildRequires:  libxfixes-devel
BuildRequires:  zlib-devel
BuildRequires:  pkgconfig(jack)
Requires:   jack-example-clients

%description
Simple command line tool that performs the basic tasks of capturing
and encoding desktop session. It produces files using only open
formats like Theora for video and Vorbis for audio, using the Ogg
container.

%files
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_mandir}/man1/recordmydesktop.1*

#------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1


%build
%configure \
    --enable-oss=no \
    --enable-jack=yes

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7972 |21cr|recoverjpeg-2.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		recoverjpeg
Version:	2.6.3
Release:	1
Summary:	JFIF/JPEG File Recovery Tool
Group:		Graphics
License:	GPLv2+
URL:		http://www.rfc1149.net/devel/recoverjpeg
Source0:	https://github.com/samueltardieu/recoverjpeg/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# pandoc not provided in repo, use md2man tool
Patch0:		recoverjpeg-pandoc.patch
BuildRequires:	libtool
BuildRequires:	md2man
Requires:	imagemagick

%description
This program tries to recover JFIF (JPEG) pictures from a peripheral. This may
be useful if you mistakenly overwrite a partition or if a device such as a
digital camera memory card is bogus.

%files
%doc COPYING
%{_bindir}/%{name}
%{_bindir}/recovermov
%{_bindir}/remove-duplicates
%{_bindir}/sort-pictures
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/sort-pictures.1*
%{_mandir}/man1/recovermov.1*
%{_mandir}/man1/remove-duplicates.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fiv
%configure
%make


%install
%makeinstall_std

#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/remove-duplicates


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7973 |21cr|recutils-1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname rec %{major}
%define devname %mklibname rec -d

Summary:	A set of tools to access GNU recfile databases
Name:		recutils
Version:	1.9
Release:	2
License:	GPLv3+
Group:		Databases
Url:		http://www.gnu.org/software/recutils/
Source0:	http://ftp.gnu.org/gnu/recutils/recutils-%{version}.tar.gz
Patch0:		recutils-shared-lib-calls-exit.patch
BuildRequires:	chrpath
BuildRequires:	help2man
BuildRequires:	texinfo
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libmdb)

%description
Recutils is a set of tools and libraries to access human-editable,
text-based databases called recfiles. The data is stored as a sequence
of records, each record containing an arbitrary number of named
fields.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/recutils
%{_infodir}/*.info*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for recutils
Group:		System/Libraries
Conflicts:	%{name} < 1.7-3

%description -n %{libname}
Shared library for recutils.

%files -n %{libname}
%{_libdir}/librec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for recutils
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.7-3
Obsoletes:	%{name}-devel < 1.7-3

%description -n %{devname}
Libraries and header files for recutils.

%files -n %{devname}
%{_includedir}/rec.h
%{_libdir}/librec.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make

%check
make check

%install
%makeinstall_std INSTALL="install -p"

rm -f %{buildroot}%{_infodir}/dir

chrpath --delete %{buildroot}%{_bindir}/*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7974 |21cr|redbutton-author-20090727-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Redbutton author for MHEG5 content
Name:		redbutton-author
Version:	20090727
Release:	6
License:	GPLv2+
Group:		Development/Other
Url:		http://redbutton.sourceforge.net/
Source0:	redbutton-author-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	flex

%description
This package provides an authoring program for MHEG5, which is used to make
user interface on TVs.

It is part of the redbutton tools suite.

%files
%{_bindir}/mhegc
%{_bindir}/mhegd

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
#make install DESTDIR=%{buildroot} # happens "/bin" to DESTDIR
install -m 755 mhegc %{buildroot}%{_bindir}/
install -m 755 mhegd %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7975 |21cr|redbutton-download-20090727-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Redbutton download for MHEG5 content
Name:		redbutton-download
Version:	20090727
Release:	6
License:	GPLv2+
Group:		Development/Other
Url:		http://redbutton.sourceforge.net/
Source0:	redbutton-download-%{version}.tar.gz
BuildRequires:	pkgconfig(zlib)

%description
This package provides a download utility for MHEG5, which is used to make
user interface on TVs.

It is part of the redbutton tools suite.

%files
%{_bindir}/rb-download

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
#make install DESTDIR=%{buildroot} # happens "/bin" to DESTDIR
install -m 755 rb-download %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7976 |21cr|redeclipse-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast paced first person ego-shooter
Name:		redeclipse
Version:	2.0.0
Release:	2
# See doc/all-licenses.txt
License:	CC-BY-SA and zlib and OFL
Group:		Games/Arcade
Url:		http://www.redeclipse.net/
Source0:	https://github.com/red-eclipse/base/releases/download/v%{version}/%{name}_%{version}_nix.tar.bz2
Patch0:		redeclipse-2.0.0-fix-cube2font-install.patch
BuildRequires:	desktop-file-utils
BuildRequires:	ed
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}

%description
The game is a single-player and multi-player first-person ego-shooter, built
as a total conversion of Cube Engine 2, which lends itself toward a balanced
gameplay, completely at the control of map makers, while maintaining a general
theme of agility in a variety of environments.

%files
%doc readme.* doc/*.txt
%{_bindir}/%{name}
%dir %{_libdir}/%{name}/
%{_libdir}/%{name}/%{name}
# Those are symlinks to stuff in %%{_datadir}
%{_libdir}/%{name}/config
%{_libdir}/%{name}/data
%{_libdir}/%{name}/doc
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/doc/redeclipse/examples/servinit.cfg
%{_datadir}/pixmaps/%{name}.xpm
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6.*

#----------------------------------------------------------------------------

%package server
Summary:	Server for RedEclipse game
License:	CC-BY-SA and zlib
Requires:	%{name}-data = %{EVRD}
Conflicts:	%{name} < %{EVRD}

%description server
The game is a single-player and multi-player first-person ego-shooter, built
as a total conversion of Cube Engine 2, which lends itself toward a balanced
gameplay, completely at the control of map makers, while maintaining a general
theme of agility in a variety of environments.
This package contains the dedicated server for the Red Eclipse FPS game. It
also includes some example scripts for configuring the server.

%files server
%doc doc/examples/servinit.cfg
%{_bindir}/%{name}-server
%{_libdir}/%{name}/%{name}-server
%{_mandir}/man6/%{name}-server.6*

#----------------------------------------------------------------------------

%package data
Summary:	Data files for RedEclipse game
License:	CC-BY-SA
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description data
The game is a single-player and multi-player first-person ego-shooter, built
as a total conversion of Cube Engine 2, which lends itself toward a balanced
gameplay, completely at the control of map makers, while maintaining a general
theme of agility in a variety of environments.
This package contains the data files needed by %{name}.

%files data
%doc readme.txt
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%package -n cube2font
Summary:	Utility program for creating font bitmaps for Cube Engine games
License:	zlib

%description -n cube2font
This is a utility program designed to create font bitmaps for Cube Engine
games, it works by taking a Truetype font and building it into a set of
coordinates in an image. It's an improved version of the previous TTF2Font,
supporting a much larger range of characters.

%files -n cube2font
%doc readme.txt
%{_bindir}/cube2font
%{_mandir}/man1/cube2font.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%make CXXFLAGS="%{optflags}" -C src client server cube2font


%install
%makeinstall_std -C src \
	prefix=%{_prefix} \
	libexecdir=%{buildroot}%{_libdir} \
	system-install system-install-cube2font

# Fix appdata path
%if %{mdvver} >= 201610
mkdir -p %{buildroot}%{_appdatadir}
cp -pr %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %{buildroot}%{_appdatadir}/%{name}.appdata.xml 
rm -fr %{buildroot}%{_datadir}/appdata
%endif

# Fix some rpmlint noises
find %{buildroot} -size 0 -delete
rm -fr %{buildroot}%{_datadir}/%{name}/data/*/{.gitmodules,.gitattributes,.github}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7977 |21cr|redfang-2.5-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# OE: conditional switches
#
#(ie. use with rpm --rebuild):
#
#	--with diet	Compile dcetest against dietlibc
#
# 

%define build_diet 0

# commandline overrides:
# rpm -ba|--rebuild --with 'xxx'
%{?_with_diet: %{expand: %%define build_diet 1}}

Summary: 	The Bluetooth Hunter
Name:		redfang
Version:	2.5
Release:	12
License:	GPL
Group:		Networking/Other
URL:		http://www.atstake.com/research/tools/info_gathering/
Source0:	%{name}.%{version}.tar.bz2
Patch0:		%{name}-%{version}-optflags.patch
Patch1:		%{name}-2.5-fix-format-errors.patch
Patch2:		%{name}-2.5-fix-missing-header.patch
BuildRequires:	bluez-devel
%if %{build_diet}
BuildRequires:	dietlibc-devel >= 0.20-1mdk
%endif

%description
Redfang v2.5 is an enhanced version of the original application
that finds non-discoverable Bluetooth devices by brute-forcing the
last six bytes of the device's Bluetooth address and doing a
read_remote_name(). This new version has streamlined code,
enumerates service information, and supports multiple threads for
substantial speed gains using multiple devices (maximum
theoretical limit of 127 USB devices). This release of Redfang was
developed in collaboration with QinetiQ as part of their work in
the DTI Next Wave Technologies project FORWARD. (For more
information about the underlying concepts of Bluetooth discovery,
read our research report War Nibbling: Bluetooth Insecurity.)

%prep
%setup -q -n %{name}-%{version}
%patch0 -p0 -b .optflags
%patch1 -p1 -b .format
%patch2 -p1 -b .header

%build

%if %{build_diet}
# OE: use the power of dietlibc
make CC="diet gcc -D_BSD_SOURCE -D_GNU_SOURCE -s -static"
%else
%make
%endif

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m755 fang %{buildroot}%{_bindir}/fang
install -m644 fang.1 %{buildroot}%{_mandir}/man1/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGELOG INSTALL OTHERS README
%{_bindir}/fang
%{_mandir}/man1/fang.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7978 |21cr|R-edgeR-3.4.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  edgeR
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          3.4.2
Release:          5
Summary:          Empirical analysis of digital gene expression data in R
Group:            Sciences/Mathematics
License:          LGPL (>= 2)
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/edgeR_3.4.2.tar.gz
Requires:         R-methods R-limma R-locfit
Requires:         R-MASS R-statmod R-splines 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods R-limma
BuildRequires:    R-MASS R-statmod R-splines R-locfit
BuildRequires:    blas-devel lapack-devel

%description
Differential expression analysis of RNA-seq and digital gene expression
profiles with biological replication.  Uses empirical Bayes estimation and
exact tests based on the negative binomial distribution.  Also useful for
differential signal analysis with other types of genome-scale count data.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7979 |21cr|redhat-menus-12.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gettext_package redhat-menus

Summary:	Configuration and data files for the desktop menus
Name:		redhat-menus
Version:	12.0.2
Release:	1
Group:		Graphical desktop/Other
URL:		http://www.redhat.com
#FIXME-> There is no hosting website for this project.
Source0:	%{name}-%{version}.tar.gz
License:	GPL+
BuildArch:	noarch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool

%description
This package contains the XML files that describe the menu layout for
GNOME and KDE, and the .desktop files that define the names and icons
of "subdirectories" in the menus.

%files  -f %{gettext_package}.lang
%doc COPYING
%dir %{_sysconfdir}/xdg/menus
%dir %{_sysconfdir}/xdg/menus/applications-merged
%dir %{_sysconfdir}/xdg/menus/preferences-merged
%dir %{_sysconfdir}/xdg/menus/preferences-post-merged
%dir %{_sysconfdir}/xdg/menus/settings-merged
%config %{_sysconfdir}/xdg/menus/*.menu
%exclude %{_datadir}/desktop-menu-patches/*.desktop
%{_datadir}/desktop-directories/*.directory

#---------------------------------------------------------------------
%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{gettext_package}

# create the settings-merged to prevent gamin from looking for it
# in a loop
mkdir -p %{buildroot}%{_sysconfdir}/xdg/menus/settings-merged ||:



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7980 |21cr|redir-2.2.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           redir
Version:        2.2.1
Release:        20
Summary:        Redirect TCP connections

Group:          Networking/Other
License:        GPL+
URL:            http://sammy.net/~sammy/hacks/
Source0:        http://sammy.net/~sammy/hacks/%{name}-%{version}.tar.gz
BuildRequires:	tcp_wrappers-devel

#Include Debian Patches
Patch0:         01_fix_max_bandwidth_docs.dpatch
Patch1:         02_use_ntohs.dpatch
Patch2:         03_fix_tcp_wrappers.dpatch
Patch3:         04_fix_timeouts.dpatch
Patch4:         05_pedantic.dpatch
Patch5:         06_fix_shaper_buffer.dpatch
Patch6:         07_cosmetics.dpatch
Patch7:         08_add_wrappers.dpatch
Patch8:         09_add_linux_software_map.dpatch
Patch9:         15_deb_cosmetics.dpatch
Patch10:        20_do_not_strip.dpatch
Patch11:        25_fix_setsockopt.dpatch
Patch12:        30_fix_manpage.dpatch
#end of debian patches

Patch13:        redir_gcc4.4-signedness.patch
Patch14:        31_fix_transproxy_location.patch
%description
a port redirector, used to forward incoming connections to somewhere else.
by far the cleanest piece of code here, because someone else liked it
enough to fix it.

%prep
%setup -q

# Fix docs and --help to show --max_bandwidth instead of --maxbandwidth
%patch0 -p1

#use ntohs() to generate comprehensible debug()s and syslog()s
%patch1 -p1

#fix calls to tcp wrappers
%patch2 -p1

# fix and make timeout more verbose
%patch3 -p1

#changes to make clean up compilation, include missing time.h include
%patch4 -p1

#properly allocate copyloop buffer
%patch5 -p1

#cosmestic only patch
%patch6 -p1

#add tcp_wrapper support
%patch7 -p1

#description of redir
%patch8 -p1

#comestic only patch
%patch9 -p1

# do not stripping needed for debug-info package
%patch10 -p1

#make usage os setsockopt more verbose
%patch11 -p1

#Clean up questionable formatting in man page
%patch12 -p1

#fix compile warning with gcc 4.4
%patch13 -p2

# fix location of transproxy.txt
%patch14 -p2

# Convert to utf-8
for file in CHANGES; do
    mv $file timestamp
    iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
    touch -r timestamp $file
done

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{optflags}"

%install
install -Dp -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dp -m 644 %{name}.man %{buildroot}%{_mandir}/man1/%{name}.1

%files
%doc README CHANGES COPYING trans*.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7981 |21cr|redis-6.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		redis
Version:	6.0.5
Release:	1
Summary:	A persistent key-value database
Group:		Databases
License:	BSD
URL:		http://redis.io/
Patch0:		0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch
Patch1:		0002-install-redis-check-rdb-as-a-symlink-instead-of-dupl.patch
Patch2:		redis-4.0.8-workaround-make-deadlock.patch
Source0:	http://download.redis.io/releases/%{name}-%{version}.tar.gz
Source1:	redis-limit-systemd
Source2:	redis-sentinel.service
Source3:	redis-shutdown
Source4:	redis.logrotate
# Based on, but not identical to, Fedora's file
Source5:	redis.service
BuildRequires:	pkgconfig(lua)
BuildRequires:	procps-ng
BuildRequires:	systemd
BuildRequires:	tcl
Requires:	/bin/awk
Requires:	logrotate
BuildRequires:	rpm-helper
Requires(pre):	rpm-helper >= 0.24.8-1
Requires(postun):rpm-helper >= 0.24.8-1

%description
Redis is an advanced key-value store.
It is similar to memcached but the data set is not volatile,
and values can be strings, exactly like in memcached,
but also lists, sets, and ordered sets.
All this data types can be manipulated with atomic operations
to push/pop elements, add/remove elements, perform server side
union, intersection, difference between sets, and so
forth. Redis supports different kind of sorting abilities.

%prep
%autosetup -p1 -n %{name}-%{version}%{?beta:-%{beta}}

rm -rf deps/jemalloc

# No hidden build.
sed -i -e 's|\t@|\t|g' deps/lua/src/Makefile
sed -i -e 's|$(QUIET_CC)||g' src/Makefile
sed -i -e 's|$(QUIET_LINK)||g' src/Makefile
sed -i -e 's|$(QUIET_INSTALL)||g' src/Makefile
# Ensure deps are built with proper flags
sed -i -e 's|$(CFLAGS)|%{optflags}|g' deps/Makefile
sed -i -e 's|OPTIMIZATION?=-O3|OPTIMIZATION=%{optflags}|g' deps/hiredis/Makefile
sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/hiredis/Makefile
sed -i -e 's|$(CFLAGS)|%{optflags}|g' deps/linenoise/Makefile
sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/linenoise/Makefile

# Configuration file changes
sed -i -e 's|^logfile .*$|logfile /var/log/redis/redis.log|g' redis.conf
sed -i -e 's|^logfile .*$|logfile /var/log/redis/sentinel.log|g' sentinel.conf
sed -i -e 's|^dir .*$|dir /var/lib/redis|g' redis.conf

%build
%make \
	DEBUG="" \
	LDFLAGS="%{ldflags}" \
	CFLAGS+="%{optflags}" \
	LUA_LDFLAGS+="%{ldflags}" \
	MALLOC=libc \
	all

%install
%make install INSTALL="install -p" PREFIX=%{buildroot}%{_prefix}

# Filesystem
mkdir -p %{buildroot}%{_sharedstatedir}/%{name} \
	%{buildroot}%{_localstatedir}/log/%{name} \
	%{buildroot}%{_localstatedir}/run/%{name}

# Extras
install -pDm 755 %{S:3} %{buildroot}%{_bindir}/%{name}-shutdown

# Logrotate file
install -pDm 644 %{S:4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# Configuration files
install -pDm 644 redis.conf %{buildroot}%{_sysconfdir}/redis.conf
install -pDm 644 sentinel.conf %{buildroot}%{_sysconfdir}/redis-sentinel.conf

# Systemd unit files
install -pDm 644 %{S:2} %{buildroot}%{_unitdir}/redis-sentinel.service
install -pDm 644 %{S:5} %{buildroot}%{_unitdir}/redis.service

# Systemd limits
install -pDm 644 %{S:1} %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d/limit.conf
install -pDm 644 %{S:1} %{buildroot}%{_sysconfdir}/systemd/system/%{name}-sentinel.service.d/limit.conf

%check
# Currently says all tests passed and then segfaults
#make test

%pre
%_pre_useradd %{name}  %{_sharedstatedir}/%{name} /sbin/nologin

%postun 
%_postun_userdel %{name}

%files
%doc 00-RELEASENOTES BUGS COPYING
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}-sentinel.conf
%dir %attr(0755, redis, root) %{_localstatedir}/lib/%{name}
%dir %attr(0755, redis, root) %{_localstatedir}/log/%{name}
%{_bindir}/%{name}-*
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-sentinel.service
%dir %{_sysconfdir}/systemd/system/%{name}.service.d
%{_sysconfdir}/systemd/system/%{name}.service.d/limit.conf
%dir %{_sysconfdir}/systemd/system/%{name}-sentinel.service.d
%{_sysconfdir}/systemd/system/%{name}-sentinel.service.d/limit.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7982 |21cr|redmine-5.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A flexible project management web application
Name:		redmine
Version:	5.0.3
Release:	1
License:	GPLv2+
Group:		Networking/WWW
Url:		https://www.redmine.org
Source0:	https://www.redmine.org/releases/%{name}-%{version}.tar.gz
Source101:	redmine.logrotate
Source102:	redmine.httpd
Source103:	redmine-pg-database.yml
BuildRequires:	rubygems
Requires:	%{name}-db
Requires:	rubygem-asciidoctor
Requires:	rubygem-bigdecimal
Requires:	rubygem-builder
Requires:	rubygems
Requires(pre):	user(apache)
Requires(pre):	group(apache)
Recommends:	%{name}-httpd
Recommends:	%{name}-scm
Recommends:	rubygem-mocha
Recommends:	rubygem-yard
BuildArch:	noarch

%description
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

Overview

 * Multiple projects support
 * Flexible role based access control
 * Flexible issue tracking system
 * Gantt chart and calendar
 * News, documents & files management
 * Feeds & email notifications
 * Per project wiki
 * Per project forums
 * Time tracking
 * Custom fields for issues, time-entries, projects and users
 * SCM integration (SVN, CVS, Git, Mercurial, Bazaar and Darcs)
 * Issue creation via email
 * Multiple LDAP authentication support
 * User self-registration support
 * Multilanguage support
 * Multiple databases support

%files
%{_sysconfdir}/logrotate.d/%{name}
%doc %{_var}/www/%{name}/CONTRIBUTING.md
%doc %{_var}/www/%{name}/README.rdoc
%doc %{_var}/www/%{name}/config/*.example
%doc %{_var}/www/%{name}/plugins/README
%dir %{_var}/www/%{name}/
%dir %{_var}/www/%{name}/config/
%{_var}/www/%{name}/app/
%{_var}/www/%{name}/bin/
%{_var}/www/%{name}/config/application.rb
%{_var}/www/%{name}/config/boot.rb
%{_var}/www/%{name}/config/environment.rb
%{_var}/www/%{name}/config/environments/
%{_var}/www/%{name}/config/initializers/
%{_var}/www/%{name}/config/locales/
%{_var}/www/%{name}/config/routes.rb
%{_var}/www/%{name}/config/settings.yml
%{_var}/www/%{name}/config.ru
%{_var}/www/%{name}/db/
%{_var}/www/%{name}/doc/
%exclude %{_var}/www/%{name}/extra/svn/Redmine.pm
%{_var}/www/%{name}/extra/
%attr(0755,apache,apache) %{_var}/www/%{name}/files/
%{_var}/www/%{name}/Gemfile
%{_var}/www/%{name}/lib/
%attr(0755,apache,apache) %{_var}/www/%{name}/log/
%{_var}/www/%{name}/package.json
%{_var}/www/%{name}/public/
%{_var}/www/%{name}/Rakefile
%{_var}/www/%{name}/appveyor.yml
%{_var}/www/%{name}/test/
%attr(0755,apache,apache) %{_var}/www/%{name}/tmp/
%{_var}/www/%{name}/yarn.lock
%{_var}/www/%{name}/vendor/

#-------------------------------------------------------------------------------

%package pg
Summary:	A flexible project management web application - pgsql connector
Group:		Networking/WWW
Recommends:	rubygem-pg
Provides:	%{name}-pg = %{version}-%{release}
Provides:	%{name}-db = %{version}-%{release}

%description pg
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

This package contains the needed modules to use postgresql as redmine's
database backend.

%files pg
%{_var}/www/%{name}/config/database.postgres.yml

#-------------------------------------------------------------------------------

%package mysql
Summary:	A flexible project management web application - mysql connector
Group:		Networking/WWW
Recommends:	rubygem-mysql
Provides:	%{name}-mysql = %{version}-%{release}
Provides:	%{name}-db = %{version}-%{release}

%description mysql
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

This package contains the needed modules to use mysql as redmine's
database backend.

%files mysql
%config(noreplace) %{_var}/www/%{name}/config/database.yml

#-------------------------------------------------------------------------------

%package sqlite
Summary:	A flexible project management web application - sqlite connector
Group:		Networking/WWW
Requires:	rubygem-sqlite3
Provides:	%{name}-sqlite = %{version}-%{release}
Provides:	%{name}-db = %{version}-%{release}

%description sqlite
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

This package contains the needed modules to use sqlite as redmine's
database backend.

%files sqlite

#-------------------------------------------------------------------------------

%package git
Summary:	A flexible project management web application - git backend
Group:		Networking/WWW
Requires:	git-core
Provides:	%{name}-git = %{version}-%{release}
Provides:	%{name}-scm = %{version}-%{release}

%description git
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

This package contains the needed modules to use git as redmine's
version control system backend

%files git

#-------------------------------------------------------------------------------

%package svn
Summary:	A flexible project management web application - subversion backend
Group:		Networking/WWW
Requires:	subversion
Provides:	%{name}-svn = %{version}-%{release}
Provides:	%{name}-scm = %{version}-%{release}

%description svn
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

This package contains the needed modules to use subversion as redmine's
version control system backend

%files svn

#-------------------------------------------------------------------------------

%package hg
Summary:	A flexible project management web application - mercurial backend
Group:		Networking/WWW
Requires:	mercurial
Provides:	%{name}-hg = %{version}-%{release}
Provides:	%{name}-scm = %{version}-%{release}

%description hg
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

This package contains the needed modules to use mercurial as redmine's
version control system backend

%files hg

#-------------------------------------------------------------------------------

%package bzr
Summary:	A flexible project management web application - bzr backend
Group:		Networking/WWW
Recommends:	bzr
Provides:	%{name}-bzr = %{version}-%{release}
Provides:	%{name}-scm = %{version}-%{release}

%description bzr
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

This package contains the needed modules to use bazaar as redmine's
version control system backend

%files bzr

#-------------------------------------------------------------------------------

%package cvs
Summary:	A flexible project management web application - cvs backend
Group:		Networking/WWW
Requires:	cvs
Provides:	%{name}-cvs = %{version}-%{release}
Provides:	%{name}-scm = %{version}-%{release}

%description cvs
Redmine is a flexible project management web application. Written using
Ruby on Rails framework, it is cross-platform and cross-database.

This package contains the needed modules to use cvs as redmine's
version control system backend

%files cvs

#------------------------------------------------------------------------------

%package httpd
Summary:	A flexible project management web application - apache modules
Group:		Networking/WWW
Requires:	httpd

%description httpd

This module allow anonymous users to browse public project and
registred users to browse and commit their project. Authentication is
done against the redmine database or the LDAP configured in redmine.

This method is far simpler than the one with pam_* and works with all
database without an hassle but you need to have apache/mod_perl on the
svn server

A default configuration for apache is also included

%files httpd
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
%{_var}/www/%{name}/extra/svn/Redmine.pm

#-------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
find . -name ".gitignore" -exec rm {} \;
perl -pi -e 's!/usr/local/bin/ruby!/usr/bin/env ruby!' lib/faster_csv.rb

%install
install -d %{buildroot}%{_var}/www/%{name}
cp -rf * %{buildroot}%{_var}/www/%{name}
rm -f %{buildroot}%{_var}/www/%{name}/README.urpmi

# Don’t include bundled rails
rm -rf %{buildroot}%{_var}/www/%{name}/vendor/rails

# Copy database.yml.example as it’s mandatory to run redmine
cp %{buildroot}%{_var}/www/%{name}/config/database.yml.example %{buildroot}%{_var}/www/%{name}/config/database.yml
# Likewise, add postgresql conf
install -D -m644 %{SOURCE103} %{buildroot}%{_var}/www/%{name}/config/database.postgres.yml

# Add Logrotate script
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/
install -D -m644 %{SOURCE101} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# Add httpd default conf
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
install -D -m644 %{SOURCE102} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7983 |21cr|rednotebook-2.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A desktop diary
Name:		rednotebook
Version:	2.26
Release:	1
Group:		Office
License:	GPLv2+
Url:		https://rednotebook.sourceforge.io
Source0:	https://github.com/jendrikseipp/rednotebook/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
Requires:	python3-yaml
Requires:	python3-chardet
# https://abf.io/import/rednotebook/pull_requests/2#comment11496
Requires:	typelib(WebKit2) = 4.0
Requires:	typelib(Soup) = 2.4
Requires:	typelib(JavaScriptCore) = 4.0
BuildArch:	noarch

%description
RedNotebook is a desktop diary that makes it very easy for you
to keep track of the stuff you do and the thoughts you have. This
journal software helps you to write whole passages or just facts,
and does so in style.

%files -f %{name}.lang
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/metainfo/%{name}.appdata.xml
%dir %{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}/*.py*
%{py3_puresitedir}/%{name}/__pycache__/*
%{py3_puresitedir}/%{name}/external/
%{py3_puresitedir}/%{name}/files/
%{py3_puresitedir}/%{name}/gui/
%{py3_puresitedir}/%{name}/images/
%{py3_puresitedir}/%{name}/util/
%{py3_puresitedir}/%{name}*.egg-info

#------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

desktop-file-install \
    --add-category="Calendar" \
    --delete-original \
    --dir=%{buildroot}%{_datadir}/applications \
    %{buildroot}/%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7984 |21cr|redshift-1.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		redshift
Version:	1.12
Release:	2
Summary:	Adjusts the color temperature of your screen according to time of day
Group:		Graphical desktop/Other
Url:		http://jonls.dk/redshift/
License:	GPLv3+
Source0:	https://github.com/jonls/redshift/releases/download/v%{version}/redshift-%{version}.tar.gz

BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	x11-server-devel
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	python3-devel
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	desktop-file-utils
Requires:	geoclue2

%description
Redshift adjusts the color temperature of your screen according to your
surroundings. This may help your eyes hurt less if you are working in
front of the screen at night.

The color temperature is set according to the position of the sun. A
different color temperature is set during night and daytime. During
twilight and early morning, the color temperature transitions smoothly
from night to daytime temperature to allow your eyes to slowly
adapt.

%files -f %{name}.lang
%doc NEWS DESIGN README*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%{_userunitdir}/%{name}.service
#------------------------------------------


%package gtk
Summary:	GTK integration for Redshift
Group:		Graphical desktop/Other
Requires:	python3-gobject3
Requires:	python3-pyxdg
Requires:	redshift = %{version}-%{release}


%description gtk
GTK integration for Redshift, a screen color temperature adjustment
program.

%files gtk
%{_bindir}/%{name}-gtk
%{_iconsdir}/hicolor/scalable/apps/%{name}*.svg
%{_datadir}/applications/*.desktop
%{_datadir}/appdata/%{name}-gtk.appdata.xml
%{py3_puresitedir}/redshift_gtk/
%{_userunitdir}/%{name}-gtk.service
#------------------------------------------


%prep
%autosetup -N -n %{name}-%{version}
autopoint -f && AUTOPOINT="intltoolize --automake --copy" autoreconf -f -i

%build
%configure --with-systemduserunitdir=%{_userunitdir}
%make_build V=1

%install
%makeinstall_std

%find_lang %{name}

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/redshift.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/redshift-gtk.desktop

%post
%systemd_user_post %{name}-gtk.service

%preun
%systemd_user_preun %{name}-gtk.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7985 |21cr|reed-solomon-3.1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 3
%define libname %mklibname rs %{major}
%define devname %mklibname rs -d

Summary:	A Reed-Solomon encoder/decoder library
Name:		reed-solomon
Version:	3.1.1
Release:	11
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.ka9q.net/code/fec/
Source0:	http://www.ka9q.net/code/fec/%{name}-%{version}.tar.gz
Patch0:		reed-solomon-destdir.patch

%description
This library implements a general-purpose encoder/decoder for Reed-Solomon
error correcting codes. The decoder supports erasures. The user can specify
the parameters for any size code, limited only by machine resources. Hard-coded
routines for the CCSDS-standard (255,223) code are also included.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A Reed-Solomon encoder/decoder library
Group:		System/Libraries
Conflicts:	%{_lib}reed-solomon3 < 3.1.1-10
Obsoletes:	%{_lib}reed-solomon3 < 3.1.1-10

%description -n %{libname}
This library implements a general-purpose encoder/decoder for Reed-Solomon
error correcting codes. The decoder supports erasures. The user can specify
the parameters for any size code, limited only by machine resources. Hard-coded
routines for the CCSDS-standard (255,223) code are also included.

%files -n %{libname}
%{_libdir}/librs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A Reed-Solomon encoder/decoder library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}reed-solomon-devel < 3.1.1-10
Obsoletes:	%{_lib}reed-solomon-devel < 3.1.1-10

%description -n %{devname}
This library implements a general-purpose encoder/decoder for Reed-Solomon
error correcting codes. The decoder supports erasures. The user can specify
the parameters for any size code, limited only by machine resources. Hard-coded
routines for the CCSDS-standard (255,223) code are also included.

%files -n %{devname}
%{_libdir}/librs.so
%{_libdir}/librs.a
%{_includedir}/rs.h
%{_mandir}/man3/rs.3*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p0 -b .destdir

%build
export CFLAGS="%{optflags} -fPIC"
%configure

%make

%install
mkdir -p %{buildroot}{%{_libdir},%{_mandir}/man3,%{_includedir}}
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7986 |21cr|refbase-0.9.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Web-based, multi-user interface for managing scientific literature & citations
Name:		refbase
Version:	0.9.5
Release:	7
License:	GPLv2+
Group:		System/Servers
Url:		http://refbase.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/refbase/%{name}-%{version}.tar.bz2
Requires:	bibutils
Requires:	mysql
Requires:	mod_php
Requires:	php-mysql
Requires:	webserver
BuildArch:	noarch

%description
refbase is a web-based, standards-compliant, multi-user interface
for managing scientific literature & bibliographic references.
Based on php & mysql, it offers a bibliography database with
powerful search tools and automatically generated citation lists.

To finish the installation, follow the procedure located in
%{_var}/www/html/%{name}/INSTALL

%files
%defattr(-,root,root,0755)
%{_var}/www/html/%{name}/*
%doc AUTHORS BUGS ChangeLog COPYING INSTALL NEWS README TODO UPDATE

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
# install files
install -d -m 755  %{buildroot}/%{_var}/www/html/%{name}
perl -pi -e 's|/usr/local/mysql/bin/mysql|"%{_bindir}/mysql"|;' install.php
cp -pRH *  %{buildroot}/%{_var}/www/html/%{name}
chmod 644  %{buildroot}/%{_var}/www/html/%{name}/install.sql
chmod 644  %{buildroot}/%{_var}/www/html/%{name}/contrib/endnote/endnote2mysql.php


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7987 |21cr|refdb-0.9.9-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rel 1
%define webappconfdir %{_sysconfdir}/httpd/conf/webapps.d

%global __requires_exclude perl\\(RefDB::.*\\)

Summary:	Reference database and bibliography tool
Name:		refdb
Version:	0.9.9
Release:	18
License:	GPLv2+
Group:		Sciences/Computer science
Url:		http://refdb.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/sourceforge/refdb/%{name}-%{version}-%{rel}.tar.gz
Source1:	refdb-README.urpmi
Patch0:		refdb.in.patch
Patch1:		refdb-0.9.9-1-fix-format-errors.patch
Patch2:		refdb-0.9.9-1-fix-underlinking.patch
Patch3:		refdb-0.9.9-1-fix-doc-installation.patch
Patch4:		refdb-0.9.9-1-readline6.3.patch
BuildRequires:	btparser
BuildRequires:	gettext-devel
BuildRequires:	libdbi-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	perl(MARC::Charset)
BuildRequires:	perl(MARC::Record)
BuildRequires:	perl(RefDB)
BuildRequires:	perl(Term::Clui)
BuildRequires:	perl(Text::Iconv)
BuildRequires:	perl(XML::Parser)
Requires(post,preun):	rpm-helper
Requires:	apache-mod_php => 5

%description
RefDB is a reference database and bibliography tool for SGML, XML, and LaTeX
documents, sort of a Reference Manager or BibTeX for markup languages. It is
portable and known to run on Linux, FreeBSD, and Windows/Cygwin.

%files
%{_bindir}/bib2ris-utf8
%{_bindir}/db2ris
%{_bindir}/eenc
%{_bindir}/en2ris
%{_bindir}/marc2ris
%{_bindir}/med2ris
%{_bindir}/refdb-backup
%{_bindir}/refdb-init
%{_bindir}/refdb-ms
%{_bindir}/refdb-restore
%{_bindir}/refdb-sruserver
%{_bindir}/refdb_dos2unix
%{_bindir}/refdb_latex2utf8txt
%{_bindir}/refdbd
%{_bindir}/refdbjade
%{_bindir}/refdbsru
%{_bindir}/refdbxml
%{_bindir}/refdbxp
%{_bindir}/runbib
%{_bindir}/refdbnd
%{_datadir}/%{name}
%{_initrddir}/refdb
%{_localstatedir}/lib/%{name}
%{_mandir}/*/*
%config(noreplace) %{_sysconfdir}/%{name}
%config(noreplace) %{webappconfdir}/%{name}.conf
%doc doc/*
%doc README.urpmi AUTHORS ChangeLog INSTALL NEWS README UPGRADING

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package clients
Summary:	Clients for using %{name}
Group:		Networking/Remote access

%description clients
Clients allowing to connect to the refdb server.

%files clients
%{_bindir}/refdbc
%{_bindir}/refdba
%{_bindir}/refdbib
%{_bindir}/refdbctl

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{rel}

cp %{SOURCE1} README.urpmi
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
#patch4 -p1

%build
%global optflags %{optflags} -fcommon
autoreconf -fi
%configure \
	--disable-rpath
%make

%install
mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}/db

# LSB and pinit compliant initscript
install -D -m755 scripts/%{name} %{buildroot}/%{_initrddir}/%{name}

# Web interface
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}/{css,images,includes,xsl}
install	phpweb/index.php	%{buildroot}%{_datadir}/%{name}
install phpweb/css/*.css	%{buildroot}%{_datadir}/%{name}/css
install phpweb/images/{*.gif,*.png}	%{buildroot}%{_datadir}/%{name}/images
install phpweb/includes/*.php	%{buildroot}%{_datadir}/%{name}/includes
install phpweb/xsl/*.xsl	%{buildroot}%{_datadir}/%{name}/xsl

# apache configuration
install -d -m 755 %{buildroot}%{webappconfdir}
cat > %{buildroot}%{webappconfdir}/%{name}.conf << EOF
# RefDB Apache configuration
Alias /%{name} %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
	Options +ExecCGI
	Require all granted

    php_flag session.auto_start 1
    php_flag register_globals on
</Directory>
EOF

%makeinstall_std

find %{buildroot}%{_docdir} -name *~ | xargs rm -f

chmod 1777 %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7988 |21cr|regexxer-0.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI search/replace tool supporting Perl regular expression
Name:		regexxer
Version:	0.10
Release:	6
License:	GPLv2+
Group:		Text tools
Url:		http://regexxer.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/regexxer/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		regexxer-0.10-rosa-includes.patch
Patch1:		regexxer-0.10-rosa-glib_h.patch
Patch2:		regexxer-0.10-rosa-no_schemas_compile.patch
BuildRequires:	gtk+2.0
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	pkgconfig(gconfmm-2.6)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtksourceviewmm-3.0)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libpcre)

%description
regexxer is a nifty search/replace tool for the desktop user.  It features
recursive search through directory trees and Perl-style regular expressions
(using libpcre).

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/org.regexxer.gschema.xml
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
./autogen.sh
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure --disable-schemas-compile
%make

%install
%makeinstall_std

#icons
mkdir -p %{buildroot}%{_iconsdir} \
	%{buildroot}%{_miconsdir}
install -D -m 644       ui/regexxer.png %{buildroot}%{_liconsdir}/%{name}.png
convert -geometry 32x32 ui/regexxer.png %{buildroot}%{_iconsdir}/%{name}.png
convert -geometry 16x16 ui/regexxer.png %{buildroot}%{_miconsdir}/%{name}.png

# remove seemingly useless english translation
rm -rf %{buildroot}%{_datadir}/locale/en/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7989 |21cr|registrar-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define catrustdir %{_sysconfdir}/pki/ca-trust

Summary:	Registration form for OS
Name:		registrar
Version:	0.7
Release:	7
License:	GPLv3
Group:		System/Base
Source1:	%{name}.py
Source2:	%{name}.po
Source3:	%{name}.ui
Source4:	%{name}.desktop
Source5:	%{name}.ini
Source6:	run_%{name}.py
Source7:	run_%{name}.desktop
Source8:	hwid-board.service
Source10:	hwid-net.service
Source11:	hwid-net.sh
Source12:	genform.py
Source13:	rosa_logo_white.svg
Source14:	support_pay.desktop

BuildRequires:	/usr/bin/msgfmt
Requires:	python3-validate-email
Requires:	python3-gi
Requires:	python3-pydns
# For open pay page
Requires:	(firefox or chromium or newmoon or yandex-browser)
Suggests:	chromium-browser-stable
Requires(post):	rootcerts
Recommends:	hw-probe

%description
The utility for registration of users of OS

%files
%{_bindir}/%{name}

%{_sysconfdir}/%{name}.ini
%lang(ru) %{_localedir}/ru/LC_MESSAGES/%{name}.mo
%{_datadir}/applications/*.desktop
%dir %{_datadir}/%{name}/
%{_sysconfdir}/xdg/autostart/*.desktop
%{_datadir}/%{name}/%{name}.ui
%{_libexecdir}/run_%{name}
%{_libexecdir}/genform
%{_datadir}/%{name}/rosa_logo_white.svg


###############################################################################################
%define about_hwid_board /run/hwid generator using mother board serial number
%package hwid-board
Summary:	%{about_hwid_board}
Provides:	%{name}-hwid = %{EVRD}

%description hwid-board
%{about_hwid_board}

%files hwid-board
%{_unitdir}/hwid-board.service
%{_presetdir}/50-hwid-board.preset

%post hwid-board
%systemd_post hwid-board.service

%preun 
%systemd_preun hwid-board.service

###############################################################################################
%define about_hwid_net /run/hwid generator using mac address of network interface card
%package hwid-net
Summary:	%{about_hwid_net}
Provides:	%{name}-hwid = %{EVRD}

%description hwid-net
%{about_hwid_net}

%files hwid-net
%{_bindir}/hwid-net.sh
%{_unitdir}/hwid-net.service
%{_presetdir}/50-hwid-net.preset

%post hwid-net
%systemd_post hwid-net.service

%preun hwid-net
%systemd_preun hwid-net.service

##############################################################################################

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart/
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
mkdir -p %{buildroot}/%{_libexecdir}
mkdir -p %{buildroot}/%{_unitdir}
mkdir -p %{buildroot}/%{_presetdir}
mkdir -p %{buildroot}%{catrustdir}/source/anchors

install -m755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
msgfmt -v %{SOURCE2} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{name}.mo
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/%{name}/
install -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications/

install -m644 %{SOURCE5} %{buildroot}%{_sysconfdir}/

install -m755 %{SOURCE6} %{buildroot}/%{_libexecdir}/run_%{name}
install -m644 %{SOURCE7} %{buildroot}%{_sysconfdir}/xdg/autostart/

install -m644 %{SOURCE8} %{buildroot}%{_unitdir}/
echo "enable hwid-board.service" > %{buildroot}/%{_presetdir}/50-hwid-board.preset

install -m644 %{SOURCE10} %{buildroot}%{_unitdir}/
echo "enable hwid-net.service" > %{buildroot}/%{_presetdir}/50-hwid-net.preset
install -m755 %{SOURCE11} %{buildroot}%{_bindir}/

install -m755 %{SOURCE12} %{buildroot}/%{_libexecdir}/genform
install -m644 %{SOURCE13} %{buildroot}%{_datadir}/%{name}/rosa_logo_white.svg
install -m644 %{SOURCE14} %{buildroot}%{_datadir}/applications/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7990 |21cr|reiser4progs-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 2

%define api 1.2
%define libreiser %mklibname reiser4_ %{api} %{major}
%define librepair %mklibname repair %{api} %{major}
%define libminimal %mklibname %{name}-minimal %{api} %{major}

%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	Utilities belonging to the Reiser4 filesystem
Name:		reiser4progs
Version:	1.2.2
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.namesys.com/
Source0:	http://downloads.sourceforge.net/project/reiser4/reiser4-utils/reiser4progs/%{name}-%{version}.tar.gz
Patch0:		reiser4progs-1.0.7-fix-string-format.patch
Patch1:		reiser4progs-1.0.9-readline6.3.patch
Patch2:		reiser4progs-libaal-1.0.7.patch
BuildRequires:	glibc-static-devel
BuildRequires:	libaal-static-devel
BuildRequires:	readline-devel
# wants uuid
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(ncurses)


%description
Reiser4 is a file system using plug-in based object oriented variant
on classical balanced tree algorithms. It is the next generation of
Reiserfs 3.x, the one included in Linux kernel. With new plugins,
people can create their own types of directories and files.

%files
# COPYING contains information other than GPL text
%doc AUTHORS COPYING CREDITS README THANKS
/sbin/*
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%package -n %{libreiser}
Summary:	Shared library for Reiser4 programs
Group:		System/Libraries

%description -n %{libreiser}
Libraries needed by Reiser4 programs.

%files -n %{libreiser}
%doc COPYING
/%{_lib}/libreiser4-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{librepair}
Summary:	Shared library for Reiser4 programs
Group:		System/Libraries

%description -n %{librepair}
Libraries needed by Reiser4 programs.

%files -n %{librepair}
%doc COPYING
/%{_lib}/librepair-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libminimal}
Summary:	Reiser4 library with minimal memory footprint
Group:		System/Libraries

%description -n %{libminimal}
This library is another version of Reiser4 library, with minimal
memory footprint.

%files -n %{libminimal}
%doc COPYING
/%{_lib}/libreiser4-minimal-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files for reiser4progs libraries
Group:		Development/Kernel
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libreiser} = %{EVRD}
Requires:	%{librepair} = %{EVRD}
Requires:	%{libminimal} = %{EVRD}

%description -n %{devname}
Development related files for reiser4progs libraries.

%files -n %{devname}
%doc BUGS ChangeLog TODO
/%{_lib}/lib*.so
%{_includedir}/*
%{_datadir}/aclocal/*.m4

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static reiser4progs libraries
Group:		Development/Kernel
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static reiser4progs libraries.

%files -n %{sdevname}
/%{_lib}/lib*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# be very careful
%configure \
	--sbindir=/sbin \
	--libdir=/%{_lib} \
	--libexecdir=/%{_lib} \
	--with-libaal=/%{_lib} \
	--enable-static \
	%{?debug:--enable-debug}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7991 |21cr|rekonq-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight, WebKit based web browser for KDE
Name:		rekonq
Version:	2.4.2
Release:	4
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rekonq.sourceforge.net/
Source0:	http://freefr.dl.sourceforge.net/project/rekonq/2.0/rekonq-%version.tar.xz
# Russian translation done for 2.4.2
Source1:	rus.tgz
Source2:	rudoc.tgz
Source100:	rekonq.rpmlintrc
# Patch 0 provides default bookmark
Patch0:		rekonq-2.4.2-add-rosa-www-in-bookmark.patch
# Patch 1 provides some mandriva sites in default rekonq preview
# Patch 1 also fix the default website to point to /usr/share/doc/HTML/index.html
Patch1:		rekonq-2.4.2-add-rosa-www-in-preview.patch
BuildRequires:	kdelibs4-devel
BuildRequires:	nepomuk-core-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libkactivities)
BuildRequires:	pkgconfig(soprano)
BuildRequires:	pkgconfig(qoauth)
BuildRequires:	qt4-designer-plugin-qt3support
BuildRequires:	qt4-devel
# Package konqueror is currently required because it's providing cookies,proxie & web shortcut support in rekonq
Requires:	konqueror

%description
rekonq is a KDE browser based on Webkit. Its code is based on Nokia
QtDemoBrowser, just like Arora. Anyway its implementation is going to embrace
KDE technologies to have a full-featured KDE web browser.

#------------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd po
tar -xvzf %{SOURCE1}
popd

pushd doc
tar -xvzf %{SOURCE2}
popd

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

%files -f %{name}.lang
%{_kde_bindir}/%{name}
%{_kde_libdir}/libkdeinit4_%{name}.so
%{_kde_appsdir}/%{name}/
%{_kde_datadir}/config.kcfg/%{name}.kcfg
%{_kde_iconsdir}/hicolor/*/apps/%{name}.png
%{_kde_applicationsdir}/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7992 |21cr|R-ellipse-0.3.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ellipse
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Epoch:            1
Version:          0.3.8
Release:          5
Summary:          Functions for drawing ellipses and ellipse-like confidence regions
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/ellipse_0.3-8.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-graphics
Requires:         R-stats 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive
BuildRequires:    R-graphics
BuildRequires:    R-stats
BuildRequires:    pkgconfig(lapack)
%rename R-cran-ellipse

%description
This package contains various routines for drawing ellipses and
ellipse-like confidence regions, implementing the plots described in
Murdoch and Chow (1996), A graphical display of large correlation
matrices, The American Statistician 50, 178-180. There are also routines
implementing the profile plots described in Bates and Watts (1988),
Nonlinear Regression Analysis and its Applications.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7993 |21cr|remake-4.3.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define oversion 4.3+dbg-1.5

Summary:	A gnu make version including a debuger
Name:		remake
Version:	4.3.1.5
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://bashdb.sourceforge.net/remake/
Source0:	http://downloads.sourceforge.net/bashdb/%{name}-%{oversion}.tar.gz
BuildRequires:	readline-devel

%description
remake is a patched and modernized version of GNU make utility that
adds improved error reporting, the ability to trace execution in a
comprehensible way, and a debugger.

%files -f %{name}.lang
%doc AUTHORS ChangeLog* COPYING NEWS README*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_includedir}/gnuremake.h
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oversion}

%build
%global optflags %{optflags} -fcommon
%configure
%make

%install
%makeinstall_std
rm -f %{buildroot}/%{_infodir}/make*

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7994 |21cr|renameutils-0.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Set of programs designed to make renaming of multiple files faster
Name:		renameutils
Version:	0.12.0
Release:	4
License:	GPLv2+
Group:		File tools
URL:		http://www.nongnu.org/renameutils/
Source0:	http://savannah.nongnu.org/download/renameutils/%{name}-%{version}.tar.gz
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
Patch0:		renameutils-0.12.0-typo.patch
Patch1:		renameutils-0.12-type2.patch

%description
The file renaming utilities (renameutils for short) are a set of programs
designed to make renaming of multiple files faster and less cumbersome.
It currently consists of two programs: "qmv" and "imv". qmv allows files
to be renamed by editing their names in any text editor. Since the files
are listed after each other, this allows common changes to be made more
quickly. imv ("interactive mv") is trivial but useful when you are too
lazy to type (or even complete) the name of the file to rename. It
allows the filename to be edited in the terminal using the GNU readline
library. This is also useful when renaming files in Midnight Commander,
where the whole filename has to be entered again.

%files -f %{name}.lang
%doc README AUTHORS ChangeLog NEWS TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--disable-rpath

%make

%install
%makeinstall_std

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7995 |21cr|rendercheck-1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Test a Render extension implementation
Name:		rendercheck
Version:	1.5
Release:	4
License:	MIT
Group:		Development/X11
Url:		https://www.x.org/wiki/
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	libxrender-devel

%description
rendercheck is a program to test a Render extension implementation against
separate calculations of expected output.

%files
%{_bindir}/rendercheck
%{_mandir}/man1/rendercheck.*

#-----------------------------------------------------------------------

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7996 |21cr|renouveau-0-0.20121206.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define cvsver	20121206
%define rel	3

Summary:	A tool to help developers of nouveau
Name:		renouveau
Version:	0
Release:	0.%{cvsver}.%{rel}
License:	MIT
Group:		Development/X11
URL:		http://nouveau.freedesktop.org/
# CVS snapshot
# cvs -z3 -d:pserver:anonymous@nouveau.cvs.sourceforge.net:/cvsroot/nouveau co -d renouveau-$(date +%Y%m%d) renouveau
# tar jcf renouveau-$(date +%Y%m%d).tar.bz2 renouveau-$(date +%Y%m%d)
Source0:	renouveau-%{cvsver}.tar.bz2
Patch0:		renouveau-20121206-rosa-linkage.patch
BuildRequires:	libxvmc-devel
BuildRequires:	SDL-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
ExclusiveArch:	%ix86 x86_64

%description
REnouveau stands for Reverse Engineer nouveau. It is an application
that runs small opengl tests and watches the changes in the video
card registers while the nvidia proprietary video drivers are in
use. This is used to do clean room reverse engineering (this is not
in violation with nvidia driver license).

Read this page if you want to submit a renouveau dump:
http://nouveau.freedesktop.org/wiki/REnouveauDumps

%prep
%setup -q -n %{name}-%{cvsver}
%patch0 -p1

perl -pi -e 's,lXvMCNVIDIA,lXvMCW,' Makefile

cat > README.install.urpmi <<EOF
See the following page for usage instructions:
http://nouveau.freedesktop.org/wiki/REnouveauDumps
EOF

%build
# no optflags as they interfere with results
%make

%install
# install binaries
install -d -m0755 %{buildroot}%{_bindir}
install -m0755 renouveau %{buildroot}%{_bindir}
install -m0755 disasm_shader %{buildroot}%{_bindir}

%files
%doc README README.install.urpmi license.txt
%{_bindir}/renouveau
%{_bindir}/disasm_shader

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7997 |21cr|reoback-1.0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcver 1.0_r3
%define tarver 1.0

Summary: A simple backup solution
Name: reoback
Version: 1.0.3
Release: 11
License: GPL
URL: http://reoback.sourceforge.net/
Group: Archiving/Backup
BuildArchitectures: noarch
Requires: perl grep vixie-cron perl-libnet tar gzip
Source: http://prdownloads.sourceforge.net/reoback/%{name}-%{srcver}.tar.bz2

%description
Pronounced as "Ray-o-back", REOBack is a simple backup solution designed
for Linux Users AND System Administrators. It is designed to be simple to
set-up and and easy to use. Great as a quick solution for those who
procrastinate about backups.

%prep
%setup -q -n %name-%tarver

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT/etc/reoback
mkdir -p $RPM_BUILD_ROOT/etc/cron.daily
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT/var/lib/reoback/{data,backups,tmp}

install reoback.pl $RPM_BUILD_ROOT%{_bindir}

install -m 644 docs/man/*.* $RPM_BUILD_ROOT%{_mandir}/man1

cat > $RPM_BUILD_ROOT/etc/reoback/files.conf << EOF
############################################################################
# REOBack Simple Backup Solution
# http://sourceforge.net/projects/reoback/
############################################################################
# Comments must start with a "#" as shown
############################################################################

# The following is an example with comments, below it is again without

# 'File:' followed by the name of the tar file that will be created
# Note that we don't include a path as that is added in the settings.conf
#File: TestFile1

# Simply list all directories to be recursively backed up (1 per line)
#/home/sforge

# 'Skip:' followed by any subdirectories you want not to be included
#	  from the above backup directory  
#Skip: /home/sforge/backups
#Skip: /home/sforge/reoback/data

# For files to be completely recursively backed up, don't use the 'Skip'
# option.  Simple, huh?
#/etc
#/home/frank

# Note we are starting a new backup file, but don't need to mark the close
# of the previous one
#File: TestFile2
#/var/www/html

# Note we can also include seperate files, not just directories
#/var/www/docs/hugedoc.txt
EOF
chmod 644 $RPM_BUILD_ROOT/etc/reoback/files.conf

install -m 600 conf/settings.conf $RPM_BUILD_ROOT/etc/reoback/

cat > $RPM_BUILD_ROOT/etc/cron.daily/reoback << EOF
#!/bin/sh

# check if all is configured
egrep -q '^[^#]*UNKNOWN' /etc/reoback/settings.conf

if [ \$? != 0 ]; then
  /usr/bin/reoback.pl /etc/reoback/settings.conf
fi

EOF
chmod 755 $RPM_BUILD_ROOT/etc/cron.daily/reoback

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc docs/{CHANGES,INSTALL,README,LICENSE}
%{_mandir}/man1/*
%dir /etc/reoback
%config(noreplace) /etc/reoback/*
/etc/cron.daily/reoback
/var/lib/reoback
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7998 |21cr|rep-gtk-0.90.8.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define librepver 0.92.6

Summary:	GTK+ binding for librep Lisp environment
Name:		rep-gtk
Version:	0.90.8.3
Release:	4
License:	GPLv2+
Group:		Development/GNOME and GTK+
Url:		http://rep-gtk.sourceforge.net/
Source0:	http://download.tuxfamily.org/librep/rep-gtk/%{name}_%{version}.tar.xz
Patch0:		rep-gtk-0.90.8.3-linkage.patch
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(librep) >= %{librepver}
Requires:	librep >= %{librepver}

%description
This is a binding of GTK+ for the librep Lisp interpreter.  It is based on
Marius Vollmer's guile-gtk package (initially version 0.15, updated to 0.17),
with a new glue-code generator.

%files
%doc README README.guile-gtk gtk.defs gdk.defs examples
%{_libdir}/rep/gui/

#----------------------------------------------------------------------------

%package devel
Summary:	C headers for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
This is a binding of GTK+ for the librep Lisp interpreter.  It is based on
Marius Vollmer's guile-gtk package (initially version 0.15, updated to 0.17),
with a new glue-code generator.

%files devel
%doc ChangeLog
%{_includedir}/rep-gtk
%{_libdir}/pkgconfig/rep-gtk.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}_%{version}

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/doc/rep-gtk-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 7999 |21cr|repodata-cli-0-1.git1d69d8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 1d69d820eb35db1027b606e9b40101d98d175e9d
%define commit_short %(echo %{commit} | head -c6)

Summary:	PHP CLI script to get package version from repodata/repomd RPM repository metadata
Name:		repodata-cli
Version:	0
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		System/Configuration/Packaging
Url:		https://github.com/mikhailnov/repodata-cli
Source0:	https://github.com/mikhailnov/repodata-cli/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch
BuildRequires:	make
# for %%check
BuildRequires:	php-cli
BuildRequires:	php-bz2
BuildRequires:	php-sqlite3
BuildRequires:	php-xmlreader
Requires:	php-cli
Requires:	php-bz2
Requires:	php-sqlite3
Requires:	php-xmlreader

%description
This is a simple php script that gets version of a specified
package from metadataof a repository of RPM packages.
Repository metadata can be created with, for example, createrepo_c.
Usage:
repodata-cli get-package-version path/to/repomd.xml package-name

%files
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8000 |21cr|reportdhcp-2.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Displays statistics and lease entries for ISC DHCPD
Name:		reportdhcp
Version:	2.1
Release:	12
License:	GPL
Group:		Monitoring
URL:		http://www.omar.org/opensource/reportdhcp/
Source0:	%{name}.pl-%{version}.tar.bz2
Patch0:		%{name}.patch
Requires:	dhcp-server
Requires:	webserver
#Requires:	perl
BuildArch:	noarch

%description
Reportdhcp.pl is a CGI script written in perl. It displays
statistics and lease entries for ISC DHCPD by parsing the
dhcpd.conf and dhcpd.leases files. reportdhcp.pl version 2
supports version 3.0p1 and above of the ISC DHCP distribution.

%prep

%setup -q -c -n %{name}-%{version}
%patch0 -p0

%build

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

mkdir -p %{buildroot}/var/www/cgi-bin
install -m755 %{name}.pl %{buildroot}/var/www/cgi-bin/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc CHANGELOG README
%attr(755,root,root) /var/www/cgi-bin/%{name}.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8001 |21cr|reptyr-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        A tool for "re-ptying" programs
Name:           reptyr
Version:        0.7.0
Release:        1
License:        MIT
Group:          Terminals
Url:            https://github.com/nelhage/reptyr
Source0:        https://github.com/nelhage/reptyr/archive/%{name}-%{version}.tar.gz

%description
reptyr is a utility for taking an existing running program and
attaching it to a new terminal. Started a long-running process over ssh,
but have to leave and don't want to interrupt it? Just start a screen,
use reptyr to grab it, and then kill the ssh session and head on home.

%files
%doc COPYING README.md NOTES ChangeLog
%dir %{_mandir}/fr/man1
%{_mandir}/man1/%{name}.1*
%{_mandir}/fr/man1/reptyr.1*
%{_bindir}/%{name}
%{_sysconfdir}/bash_completion.d/%{name}

#------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{name}-%{version}

%build
%make

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8002 |21cr|reptyr-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        A tool for "re-ptying" programs
Name:           reptyr
Version:	0.9.0
Release:	1
License:        MIT
Group:          Terminals
Url:            https://github.com/nelhage/reptyr
Source0:        https://github.com/nelhage/reptyr/archive/%{name}-%{version}.tar.gz

%description
reptyr is a utility for taking an existing running program and
attaching it to a new terminal. Started a long-running process over ssh,
but have to leave and don't want to interrupt it? Just start a screen,
use reptyr to grab it, and then kill the ssh session and head on home.

%files
%doc COPYING README.md NOTES ChangeLog
%dir %{_mandir}/fr/man1
%{_mandir}/man1/%{name}.1*
%{_mandir}/fr/man1/reptyr.1*
%{_bindir}/%{name}
%{_sysconfdir}/bash_completion.d/%{name}

#------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{name}-%{version}

%build
%make

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8003 |21cr|R-ergm-3.4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ergm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.4.0
Release:          7
Summary:          Fit, Simulate and Diagnose Exponential-Family Models for Networks
Group:            Sciences/Mathematics
License:          GPL-3 + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/ergm_%{version}.tar.gz
Requires:         R-network  R-trust
Requires:         R-coda R-robustbase R-Matrix R-lpSolve R-statnet.common
Recommends:          R-lattice R-latticeExtra R-sna R-latentnet R-knitr
Recommends:    R-KernSmooth R-Rglpk R-nlme
Recommends:         R-networkDynamic
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-network R-trust
BuildRequires:    R-coda R-robustbase R-Matrix R-lpSolve R-statnet.common
BuildRequires:    R-KernSmooth R-Rglpk R-nlme 
BuildRequires:    R-lattice R-latticeExtra R-knitr

%description
An integrated set of tools to analyze and simulate networks based on
exponential-family random graph models (ERGM). "ergm" is a part of the
"statnet" suite of packages for network analysis.  For a list of functions
type: help(package='ergm')

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/doc
%{rlibdir}/%{packname}/include

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8004 |21cr|R-ergm.count-3.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ergm.count
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.1.1
Release:          5
Summary:          Fit, Simulate and Diagnose Exponential-Family Models for Networks
Group:            Sciences/Mathematics
License:          GPL-3 + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/ergm.count_3.1.1.tar.gz

Requires:         R-statnet.common R-ergm R-network 


BuildRequires:    R-devel Rmath-devel  R-statnet.common R-ergm R-network


%description
A set of extensions for the ergm package to fit weighted networks whose
edge weights are counts.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8005 |21cr|resample-1.8.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sampling-rate conversion program
Name:		resample
Version:	1.8.1
Release:	8
License:	LGPL
Group:		Sound
Url:		https://ccrma.stanford.edu/~jos/resample/Free_Resampling_Software.html
Source0:	http://ccrma.stanford.edu/~jos/resample/%{name}-%{version}.tar.gz
Patch0:		resample-1.8.1-string-fmt.patch
BuildRequires:	libtool

%description
The resample software package contains free sampling-rate conversion and filter
design utilities written in C, including a stand-alone command-line
sampling-rate conversion utility called resample. The package compiles readily
under Linux and most other UNIX operating systems. 

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

chmod 644 AUTHORS COPYING ChangeLog NEWS README


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8006 |21cr|rescan-scsi-bus-1.57-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Rescan SCSI bus in Linux
Name:		rescan-scsi-bus
Version:	1.57
Release:	4
License:	GPL
Group:		System/Kernel and hardware 
Source0:	http://www.garloff.de/kurt/linux/rescan-scsi-bus.sh-1.57
URL:		http://www.garloff.de/kurt/linux/
BuildArch:	noarch

%description
Linux allows you to add and remove SCSI devices without rebooting by
using the

echo "scsi add-single-device H C I L" > /proc/scsi/scsi

command (H = host, C = channel, I = SCSI ID, L = SCSI LUN). The
remove-single-device command works similarily.

Note, however, that the SCSI bus was NOT designed for hot-plugging, so
you might be out of luck... And you have to be sure, that termination
is OK. All filesystems on a device have to be unmounted before
disconnecting it or powering it down.

%prep
%setup -q -c -T
install %{SOURCE0} %{name}

%install
install -d %{buildroot}%{_sbindir}
install %{name} %{buildroot}%{_sbindir}

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/rescan-scsi-bus

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8007 |21cr|resolverstyle-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		resolverstyle
Version:	0.1
Release:	1
Summary:	ROSA Linux: selecting a resolver style
Group:		Networking/Other
License:	GPLv3
URL:		https://github.com/AKotov-dev/ResolverStyle
Source0:	https://github.com/AKotov-dev/resolverstyle/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	systemd
Requires:	gtk2

%description
ROSA Linux: selecting a resolver style (ROSA/Mageia).

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/resolverstyle
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#-------------------------------------------------------------------
%prep
%setup -n ResolverStyle-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/%{name}.ru.po -o languages/%{name}.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp all/usr/bin/* %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp -r ico %{buildroot}%{_datadir}/%{name}
cp all/usr/share/icons/resolverstyle.png %{buildroot}%{_datadir}/pixmaps/
cp all/usr/share/applications/resolverstyle.desktop %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp -rf mageia %{buildroot}%{_datadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8008 |21cr|restinio-0.6.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		restinio
Summary:	RESTinio is a header-only C++14 library that gives you an embedded HTTP/Websocket server
Version:	0.6.17
Release:	1
License:	BSD
Group:		Development/C++
Url:		https://github.com/Stiffstream/restinio
Source0:	https://github.com/Stiffstream/restinio/releases/download/v.%{version}/restinio-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	asio
BuildRequires:	boost-devel
BuildRequires:	fmt-devel
BuildRequires:	http-parser-devel
BuildRequires:	openssl-devel
BuildRequires:	pcre2-devel
Provides:	restinio-devel = %{version}-%{release}
Requires:	asio
Requires:	fmt-devel
Requires:	http-parser-devel
Requires:	pcre2-devel
Requires:	zlib-devel

%description
RESTinio is a header-only C++14 library that gives you an embedded HTTP/Websocket server. It
is based on standalone version of ASIO and targeted primarily for asynchronous processing of
HTTP-requests. Since v.0.4.1 Boost::ASIO (1.66 or higher) is also supported.

%prep
%autosetup -p1

%build
pushd dev
doxygen
  %cmake \
    -DRESTINIO_TEST:BOOL=OFF \
    -DRESTINIO_SAMPLE:BOOL=OFF \
    -DRESTINIO_BENCH:BOOL=OFF \
    -DRESTINIO_FIND_DEPS:BOOL=ON \
    -DRESTINIO_USE_EXTERNAL_HTTP_PARSER:BOOL=ON \
    -DRESTINIO_ALLOW_SOBJECTIZER:BOOL=OFF
  %make
popd

%install
pushd dev
  %make_install -C build
popd

%files
%license LICENSE*
%doc README.md
%doc dev/doc/html
%{_includedir}/restinio/
%{_libdir}/cmake/restinio/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8009 |21cr|retext-7.2.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname ReText
%bcond_with tests

Name:           retext
Version:        7.2.3
Release:        5
Group:		Development/Other
License:        GPLv3+
Summary:        Text editor for Markdown and reStructuredText
Source0:	https://github.com/retext-project/%{name}/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz

# The template for man page translations can be created with this command:
# po4a-updatepo -v -M utf-8 -f man -m retext.1 -p retext-man.pot
# English man pages are taken from the Debian package.
Source1:        https://mariobl.fedorapeople.org/Retext/%{name}-man-de.po
Source2:        https://mariobl.fedorapeople.org/Retext/%{name}.1

BuildArch:      noarch

BuildRequires:  desktop-file-utils
BuildRequires:	appdata-tools
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(librsvg-2.0)
#BuildRequires:  librsvg2-tools
BuildRequires:  imagemagick
BuildRequires:  python3-devel
BuildRequires:  python3-markups
BuildRequires:  po4a
BuildRequires:  qt5-tools

%if %{with tests}
BuildRequires:  python3-qt5
BuildRequires:  qt5-devel
%endif

Requires:       hicolor-icon-theme
Requires:       python3-docutils
Requires:       python3-enchant
Requires:       python3-markdown
Requires:       python3-markups
Requires:       python3-qt5
Requires:       %{_lib}qt5location5
Requires:       python3-qt5-webkit

%description
ReText is a simple but powerful text editor for Markdown and reStructuredText.

%prep
%setup -q -n %{name}-%{version}

%build
%__python3 setup.py build

%install
%__python3 setup.py install -O1 --skip-build --root %{buildroot}

mkdir -p %{buildroot}/%{_mandir}/man1
install -p -m 0644 %{SOURCE2} %{buildroot}/%{_mandir}/man1

# Generate and install localized man pages
mkdir -p man/de
po4a-translate -M utf-8 -f man \
               --option groff_code=verbatim \
               -m %{SOURCE2} -p %{SOURCE1} \
               -l man/de/%{name}.1

mkdir -p %{buildroot}/%{_mandir}/de/man1
install -p -m 0644 man/de/%{name}.1 %{buildroot}/%{_mandir}/de/man1

# Generate resized icons
pushd icons
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{16x16,22x22,24x24,32x32,48x48,64x64,72x72,96x96,128x128,scalable}/apps
for s in 16x16 22x22 24x24 32x32 48x48 64x64 72x72 96x96 128x128
do
    convert ./retext.png -resize $s %{buildroot}/%{_datadir}/icons/hicolor/$s/apps/retext.png;
done
install -p -m 0644 retext.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/apps
popd

desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications \
%{_builddir}/%{name}-%{version}/data/*.desktop

%find_lang retext --with-man

%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/*.appdata.xml || :

%if %{with tests}
python3 setup.py test
%endif

%files -f retext.lang
%doc changelog.md configuration.md README.md LICENSE_GPL
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}/
%{_datadir}/metainfo/*
%{_mandir}/man1/*.1.*
%{py3_puresitedir}/%{srcname}/
%{py3_puresitedir}/*egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8010 |21cr|retroarch-1.10.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname RetroArch
%define	gitdate 20210227

%bcond_without	ffmpeg

# For shaders support, requires Non-free repo
%bcond_with	shaders

Summary:	A modular multi-system emulator system
Name:		retroarch
Version:	1.10.3
Release:	3
License:	GPLv3+
Group:		Emulators
Url:		https://www.retroarch.com/
Source0:	https://github.com/libretro/RetroArch/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
# Exported from https://github.com/libretro/common-shaders.git
Source1:	common-shaders-%{gitdate}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		RetroArch-1.9.0-fix-default-config-params.patch
Patch1:		retroarch-headers.patch
BuildRequires:	imagemagick
BuildRequires:	spirv-tools
%if %{with shaders}
# For shaders support, requires Non-free repo
BuildRequires:	cg-devel
%endif
BuildRequires:	glslang-devel
%if %{with ffmpeg}
# Ffmpeg part
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavdevice)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(libswscale)
%endif
# The rest
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(caca)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(osmesa)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
Requires:	libretro
# libretro not builded fo arm
ExcludeArch:	%{armx}

%description
RetroArch is a modular multi-system emulator system that is designed to be 
fast, lightweight, and portable. It has features few other emulators frontends
have, such as real-time rewinding and game-aware shading. For each emulator
'core', RetroArch makes use of a library API that we like to call 'libretro'.
Think of libretro as an interface for emulator and game ports. You can make
a libretro port once and expect the same code to run on all the platforms
that RetroArch supports. It's designed with simplicity and ease of use in
mind so that the porter can worry about the port at hand instead of having
to wrestle with an obfuscatory API.
Please read this wiki page about RetroArch BIOS files configuration:
https://emulation.gametechwiki.com/index.php/Emulator_Files.

%files
%config(noreplace) %{_sysconfdir}/%{name}.cfg
%{_bindir}/%{name}
%{_bindir}/%{name}-cg2glsl
%if %{with shaders}
%dir %{_datadir}/libretro/shaders/shader_cg
%{_datadir}/libretro/shaders/shader_cg/*
%endif
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/com.libretro.%{oname}.appdata.xml
%{_datadir}/pixmaps/%{name}.*
%{_mandir}/man6/%{name}.6*
%{_mandir}/man6/%{name}-cg2glsl.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version} -a1 

# Fix perms
find -name "*.h" -o -name "*.cpp" -o -name "*.cg" | xargs chmod -x

%build
# Quickbuild script, not autotools
%setup_compile_flags
./configure	\
	--disable-jack		\
	--disable-oss		\
	--disable-sdl		\
	--disable-vg		\
	--enable-al		\
	--enable-alsa		\
	--enable-cdrom		\
%if %{with shaders}
	--enable-cg		\
%else
	--disable-cg		\
%endif
	--enable-egl		\
%if %{with ffmpeg}
	--enable-ffmpeg		\
%else
	--disable-ffmpeg	\
%endif
	--enable-flac		\
	--enable-kms		\
	--enable-libusb		\
	--enable-lua		\
	--enable-networking	\
	--enable-opengl		\
	--enable-osmesa		\
	--enable-pulse		\
	--enable-qt		\
	--enable-sdl2		\
%ifarch x86_64
	--enable-sse		\
%endif
	--enable-systemd	\
	--enable-threads	\
	--enable-udev		\
	--enable-v4l2		\
	--enable-videoprocessor	\
	--enable-wayland	\
	--enable-x11		\
	--enable-xinerama	\
	--enable-xmb		\
	--enable-xrandr		\
	--enable-zlib		\
	--prefix=%{_prefix}
%make V=1

%install
%makeinstall_std

# Now they go in %%{_datadir}/libretro/shaders/shader_cg
%if %{with shaders}
mkdir -p %{buildroot}%{_datadir}/libretro/shaders/shader_cg
cp -r common-shaders-%{gitdate}/* %{buildroot}%{_datadir}/libretro/shaders/shader_cg
# Drop unwanted stuff
rm -rf %{buildroot}%{_datadir}/libretro/shaders/shader_cg/doc/*
rm -f %{buildroot}%{_datadir}/libretro/shaders/shader_cg/Makefile
rm -f %{buildroot}%{_datadir}/libretro/shaders/shader_cg/configure
%endif

# Set path where to search for libretro and shaders
sed -i s,.*libretro_path.*,"libretro_path = \"%{_libdir}/libretro\"",g %{buildroot}%{_sysconfdir}/%{name}.cfg
sed -i s,.*libretro_directory.*,"libretro_directory = \"%{_libdir}/libretro\"",g %{buildroot}%{_sysconfdir}/%{name}.cfg
sed -i s,.*libretro_info_path.*,"libretro_info_path = \"%{_libdir}/libretro\"",g %{buildroot}%{_sysconfdir}/%{name}.cfg
sed -i s,.*video_shader_dir.*,"video_shader_dir = \"%{_datadir}/libretro/shaders/shader_cg\"",g %{buildroot}%{_sysconfdir}/%{name}.cfg

# Drop what we pick up with our %%doc macro
rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8011 |21cr|retroarch-phoenix-20130609-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The binary is stripped at linkage stage and removing -s gives
# very strange fail results
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Simple GUI frontend for RetroArch using Phoenix framework
Name:		retroarch-phoenix
Version:	20130609
Release:	7
License:	GPLv3+
Group:		Emulators
Url:		http://www.libretro.org
# git snapshot
Source0:	%{name}-%{version}.tar.bz2
# make sure proper path to libretro is set
Patch0:		retroarch-phoenix-20130318-libretro.patch
# adjust prefix and CXXFLAGS
Patch1:		retroarch-phoenix-20130318-makefile.patch
# overwrite menu-entry because the default one sucks
Patch2:		retroarch-phoenix-20130318-desktop.patch
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(sdl)
Requires:	retroarch
ExcludeArch:	%{armx}

%description
Simple GUI frontend for RetroArch using Phoenix framework.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
sed -i s,"/usr/lib",%{_libdir},g retroarch-phoenix.cpp

%build
%setup_compile_flags

# Hack to avoid gcc segfault
export CFLAGS="`echo %{optflags} | sed -e 's/-gdwarf-4//'`"
export CXXFLAGS="$CFLAGS"

%make -f Makefile.qt

%install
%makeinstall_std -f Makefile.qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8012 |21cr|retro-gtk-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 1
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} %{api} -d

Summary:	The GTK Libretro frontend framework
Name:		retro-gtk
Version:	1.0.2
Release:	1
License:	GPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/retro-gtk
Source0:	https://github.com/GNOME/retro-gtk/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		retro-gtk-1.0.2-meson.patch
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(samplerate)

%description
The GTK Libretro frontend framework.
Libretro is a plugin format design to implement video game console emulators,
video games and similar multimedia software. Such plugins are called Libretro cores.
RetroGTK is a framework easing the use of Libretro cores in conjunction with GTK.

%files
%doc README.md
%license COPYING
%{_bindir}/retro-demo
%{_libexecdir}/retro-runner

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Retro-%{api}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	gtkmusic-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%doc README.md
%license COPYING
%{_datadir}/gir-1.0/Retro-%{api}.gir
%{_datadir}/vala/vapi/%{name}-%{api}.deps
%{_datadir}/vala/vapi/%{name}-%{api}.vapi
%{_includedir}/%{name}
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8013 |21cr|retroshare-0.6.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define oname RetroShare

# in 0.6.7.2 version voip plugin not support ffmpeg6, enable it after update
%bcond_without plugins

Summary:	Secure decentralized communication platform
Name:		retroshare
Version:	0.6.7.2
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://retroshare.github.io
#Source0:	https://github.com/RetroShare/RetroShare/releases/download/v%%{version}/RetroShare-v%%{version}-source-with-submodules.tar.gz
# repack source with:
# git clone, cd to gitdir, git checkout v{version} && git submodule update --init --recursive
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(miniupnpc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(sqlcipher)
BuildRequires:	pkgconfig(libmicrohttpd)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(RapidJSON)

%if %{with plugins}
# for voip plugin
BuildRequires:	speex-devel
BuildRequires:	opencv-devel
BuildRequires:	speexdsp-devel
BuildRequires:	ffmpeg-devel
%endif
# for autologin
BuildRequires:	pkgconfig(libsecret-1)

%description
RetroShare is a Open Source cross-platform, Friend-2-Friend and secure
decentralized communication platform.

It lets you to securely chat and share files with your friends and
family, using a web-of-trust to authenticate peers and OpenSSL to
encrypt all communication.

RetroShare provides filesharing, chat, messages, forums and channels.

%files
%{_bindir}/retroshare
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%if %{with plugins}
%{_libdir}/%{name}/extensions
%endif
#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i s,"/usr/lib/retroshare","%{_libdir}/retroshare",g libretroshare/src/rsserver/rsinit.cc

%build
#global optflags %{optflags} -std=c++17
%define rs_maj %(echo %{version}|cut -d. -f1)
%define rs_mnr %(echo %{version}|cut -d. -f2)
%define rs_mini %(echo %{version}|cut -d. -f3)
%qmake_qt5 \
	RS_MAJOR_VERSION=%{rs_maj} RS_MINOR_VERSION=%{rs_mnr} RS_MINI_VERSION=%{rs_mini} \
	RS_UPNP_LIB="miniupnpc" \
	RS_PLUGIN_DIR=%{_libdir}/%{name}/extensions \
	CONFIG+=no_direct_chat \
	CONFIG-=debug \
	CONFIG+=release \
	CONFIG+=retroshare_gui \
%if %{with plugins}
	CONFIG+=retroshare_plugins \
%endif
	CONFIG+=rs_autologin \
	CONFIG+=no_tests \
	CONFIG+=no_rs_sam3_libsam3 \
	CONFIG+=no_rs_sam3 \
	CONFIG+=no_retroshare_android_service \
	CONFIG+=no_retroshare_android_notify_service
%make

%install
install -d %{buildroot}%{_bindir}
install -m 755 retroshare-gui/src/retroshare %{buildroot}%{_bindir}/retroshare
%if %{with plugins}
install -d %{buildroot}%{_libdir}/retroshare/extensions
install -m 755 plugins/*/lib/*.so %{buildroot}%{_libdir}/retroshare/extensions
%endif

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=RetroShare
Comment=Secure decentralized communication platform
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Network;FileTransfer;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert data/retroshare.xpm -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8014 |21cr|reuse-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           reuse
Version:        1.0.0
Release:        1
Group:          Development/Python
Summary:        A tool for compliance with the REUSE recommendations
License:        GPLv3+
Url:            https://github.com/fsfe/reuse-tool
Source0:        %pypi_source
BuildRequires:  python3 >= 3.6
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  gettext
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(jinja2)
BuildRequires:  python3egg(binaryornot)
BuildRequires:  python3egg(boolean.py)
BuildRequires:  python3egg(license-expression)
BuildRequires:  python3egg(python-debian)
BuildRequires:  python3egg(requests)

Requires:       python3 >= 3.6
Recommends:     git
Recommends:     mercurial
BuildArch:      noarch

%description
A tool for compliance with the REUSE recommendations. Essentially,
it is a linter that checks for a project's compliance, and a compiler that
generates a project's bill of materials.

%files -f %{name}.lang
%doc README.md CHANGELOG.md LICENSES/*.txt
%{_bindir}/%{name}
%exclude %{py3_puresitedir}/%{name}/locale
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}*egg-info/
#-------------------------------------------------

%prep
%autosetup -n %{name}-%{version}

%build
%py3_build

%install
%py3_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8015 |21cr|R-evaluate-0.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  evaluate
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.10
Release:          6
Summary:          Parsing and evaluation tools that provide more details than the default
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/evaluate_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-stringr 
%if %{without bootstrap}
Requires:         R-testthat R-ggplot2 
%endif
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-stringr 
%if %{without bootstrap}
BuildRequires:    R-testthat R-ggplot2 
%endif
BuildRequires:    x11-server-xvfb

%description
Parsing and evaluation tools that make it easy to recreate the command
line behaviour of R.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME
#  length(dev.list()) not equal to 1
#...
#  cannot shut down device 1 (the null device)
%if 0
%check
xvfb-run %{_bindir}/R CMD check %{packname}
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8016 |21cr|revision-20180126-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Revision

Summary:	%{theme_name} theme
Name:		revision
Version:	20180126
Release:	2
License:	GPL
Group:		Graphics
Url:		https://www.vk.com/xfce_rospo/
Source0:	Revision.tar.bz2
BuildArch:	noarch
Requires: 	revision-gtk2-theme
Requires: 	revision-gtk3-theme
Requires: 	revision-xfwm4-theme

%description
Revision GTK2,GTK3,XFWM theme 

%files

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme.

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme.

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires: 	gnome-themes-standard
Requires: 	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme.

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
install -d %{buildroot}%{_datadir}/themes/%{theme_name}
cp -r {gtk-2.0,gtk-3.0,xfwm4} %{buildroot}%{_datadir}/themes/%{theme_name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8017 |21cr|rev-plugins-0.7.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A reverb plugin for LADSPA
Name:		rev-plugins
Version:	0.7.1
Release:	5
License:	GPLv2+
Group:		Sound
Url:		http://kokkinizita.linuxaudio.org/
Source0:	http://kokkinizita.linuxaudio.org/linuxaudio/downloads/REV-plugins-%{version}.tar.bz2
Requires:	ladspa

%description
This reverb LADSPA plugin is based on gverb by Juhana Sadeharju, but the code
(now C++) is entirely original, including a second input for stereo operation,
and some code to prevent FP denormalisation.

%files
%doc AUTHORS COPYING README
%{_libdir}/ladspa/zita-reverbs.so

#-----------------------------------------------------------------------------

%prep
%setup -qn REV-plugins-%{version}


%build
%setup_compile_flags
%make

%install
# Go manually
mkdir -p %{buildroot}%{_libdir}/ladspa
install -m 0755 zita-reverbs.so %{buildroot}%{_libdir}/ladspa

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8018 |21cr|Rex-1.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       Rex
Version:    1.4.1
Release:    2
Summary:    Tool to ease the execution of commands on multiple remote servers
License:    Apache License
Group:      Development/Perl
Url:        http://rexify.org
Source0:    http://rex.linux-files.org/source/Rex-%{version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(common::sense)
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Exporter)
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)
BuildRequires: perl(FindBin)
BuildRequires: perl(HTTP::Request)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Socket)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(JSON::XS)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Net::SSH2)
BuildRequires: perl(POSIX)
BuildRequires: perl(Storable)
BuildRequires: perl(Symbol)
BuildRequires: perl(Text::Glob)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(UNIVERSAL)
BuildRequires: perl(URI)
BuildRequires: perl(URI::QueryParam)
BuildRequires: perl(XML::Simple)
BuildRequires: perl(YAML)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
Rex is a tool to ease the execution of commands on multiple remote
servers. You can define small tasks, chain tasks to batches, link
them with servers or server groups, and execute them easily in
your terminal.


%prep
%setup -q

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8019 |21cr|Rex-JobControl-0.18.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(Rex::JobControl.*

Name:       Rex-JobControl
Version:    0.18.0
Release:    4
Summary:    Tool to ease the execution of commands on multiple remote servers
License:    Apache License
Group:      Development/Perl
Url:        http://rexify.org
Source0:    http://rex.linux-files.org/source/%{name}-%{version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(common::sense)
BuildRequires: perl(Capture::Tiny)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DateTime)
BuildRequires: perl(Digest::Bcrypt)
BuildRequires: perl(Digest::MD5)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(FindBin)
BuildRequires: perl(Getopt::Long)
BuildRequires: perl(Minion)
BuildRequires: perl(Mojo::Base)
BuildRequires: perl(Mojo::JSON)
BuildRequires: perl(Mojo::Log)
BuildRequires: perl(Mojolicious)
BuildRequires: perl(Mojolicious::Commands)
BuildRequires: perl(Mojolicious::Plugin)
BuildRequires: perl(Mojolicious::Plugin::Authentication)
BuildRequires: perl(Rex)
BuildRequires: perl(YAML)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
Requires: perl(Minion)

BuildArch: noarch

%description
Rex is a tool to ease the execution of commands on multiple remote
servers. You can define small tasks, chain tasks to batches, link
them with servers or server groups, and execute them easily in
your terminal.


%prep
%setup -q

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# %check
# make test

%install
%makeinstall_std
mkdir -p %{buildroot}/var/lib/rex/
mkdir -p %{buildroot}/etc/rex
cp jobcontrol.conf %{buildroot}/etc/rex/

%files
%doc README
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorlib}/*
/etc/rex/
%dir /var/lib/rex/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8020 |21cr|rexloader-0.1a.rev207-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rexloader
Version:	0.1a.rev207
Release:	4
Summary:	Advanced multi-threaded download manager with Qt4 GUI
Group:		Networking/File transfer
License:	GPLv3
URL:		http://code.google.com/p/rexloader/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		rexloader-0.1a-linkage.patch
BuildRequires:	qt4-devel
BuildRequires:	zlib-devel

%description
Advanced Qt4 download manager over HTTP with configurable
multi-threaded downloading.

%prep
%setup -q
%patch0 -p1

%build
cd Httploader
%qmake_qt4 HttpLoader.pro
%__make
cd ../NoticeWindow
%qmake_qt4 NoticeWindow.pro
%__make
cd ../REXLoader
%qmake_qt4 REXLoader.pro
%__make

%install
%__rm -rf %{clean}
%__mkdir_p %{buildroot}%{_bindir}
%__install ./usr/bin/REXLoader %{buildroot}%{_bindir}/%{name}
%__mkdir_p %{buildroot}%{_libdir}/%{name}/plugins
%__install ./usr/lib/%{name}/plugins/* %{buildroot}%{_libdir}/%{name}/plugins
%__install ./NoticeWindow/NoticeWindow %{buildroot}%{_libdir}/%{name}/plugins/libNoticeWindow.so
%__mkdir_p %{buildroot}%{_datadir}/pixmaps
%__install ./REXLoader/images/RExLoader_64x64.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

%__mkdir_p %{buildroot}%{_datadir}/applications
%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=REXLoader
Comment=Download manager
Comment[ru]=Менеджер закачек
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;FileTransfer;
EOF

%clean
%__rm -rf %{buildroot}

%files
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_libdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8021 |21cr|R-expm-0.99.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  expm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.99.1.1
Release:          4
Summary:          Matrix exponential
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.99-1.1.tar.gz

Requires:         R-Matrix 

Requires:         R-RColorBrewer R-sfsmisc 
BuildRequires:    R-devel Rmath-devel texlive-latex R-Matrix
BuildRequires:    pkgconfig(lapack)

BuildRequires:   R-RColorBrewer R-sfsmisc 
%description
Computation of the matrix exponential and related quantities.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/test*
%lang(fr) %{rlibdir}/%{packname}/po/fr/LC_MESSAGES/fr.mo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8022 |21cr|rezound-0.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Audio Editing Package
Name:		rezound
# Really 0.13.1beta-r2033
Version:	0.13.2
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://rezound.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/rezound/%{name}-%{version}beta.tar.gz
BuildRequires:	autoconf
BuildRequires:	bison
BuildRequires:	cdrdao
BuildRequires:	flex
BuildRequires:	boost-devel
BuildRequires:	fftw3-devel
BuildRequires:	gettext-devel
BuildRequires:	ladspa-devel
BuildRequires:	lame-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(flac++)
BuildRequires:	pkgconfig(fox)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(soundtouch)
BuildRequires:	pkgconfig(vorbis)
Requires:	cdrdao

%description
ReZound aims to be a stable, open source, and graphical audio file editor
primarily for, but not limited to, the Linux operating system.

%files -f %{name}.lang
%doc docs/COPYING docs/NEWS
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%_docdir/%{name}-%{version}

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}beta

perl -p -i -e 's/AM_GNU_GETTEXT_VERSION\(\[0.11.5\]\)/AM_GNU_GETTEXT_VERSION([0.19.8])/' configure.ac
# Otherwise autoreconf will fail
touch NEWS AUTHORS ChangeLog


%build
autoreconf -fiv
LDFLAGS="-lX11 -ldl" %configure	--disable-portaudio \
									--disable-rpath \
									--disable-alsatest
%make


%install
%makeinstall_std

mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}
mv %{buildroot}%{_prefix}/doc/* %{buildroot}/%{_docdir}/%{name}-%{version}

# Provide a .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Rezound
Comment=Digital audio editor
Exec=%{name}
Icon=sound_section
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideoEditing;Audio;Recorder;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8023 |21cr|R-Fahrmeir-2012.04.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Fahrmeir
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2012.04.0
Release:          5
Summary:          Multivariate Statistical Modelling Based on Generalized Linear Models data
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2012.04-0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-stats 
Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel texlive R-stats
BuildRequires:   R-MASS 

%description
Data and functions for the book "Multivariate Statistical Modelling Based
on Generalized Linear Models", version 1, by Ludwig Fahrmeir and Gerhard

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8024 |21cr|R-fail-1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  fail
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.2
Release:          4
Summary:          File Abstraction Interface Layer (FAIL) mimicking a key-value store
Group:            Sciences/Mathematics
License:          BSD_3_clause + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-BBmisc 
Recommends:       R-testthat 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-BBmisc 
#BuildRequires:   R-testthat 
%description
More comfortable interface to work with a directory of R data or source

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/tests
%{rlibdir}/%{packname}/LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8025 |21cr|R-fastICA-1.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  fastICA
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.2.0
Release:          4
Summary:          FastICA Algorithms to perform ICA and Projection Pursuit
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.2-0.tar.gz

Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:    lapack-devel
BuildRequires:    blas-devel
BuildRequires:    R-MASS

%description
Implementation of FastICA algorithm to perform Independent Component
Analysis (ICA) and Projection Pursuit.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/HISTORY
%{rlibdir}/%{packname}/README
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8026 |21cr|rfc-3.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:       Simple scripts for downloading and reading RFCs
Name:          rfc
Version:       3.2
Release:       8
Source0:       %{name}-%{version}.tar.bz2
License:       Public Domain
Group:         Networking/Other
Url:           http://www.dewn.com/rfc/
Requires:      lynx
BuildArch:     noarch

%description
This package contains a script for reading RFCs off the Internet
from the shell (by starting your favorite browser, or just dumping
it to stdout). It also includes an emacs list package to read RFCs 
from emacs.

%prep
%setup -q

%build
sed -i "s/# potential browsers, order of perference/my \$dumper=qw(lynx);/" %{name}-%{version}
sed -i "s/viewer -dump/dumper -dump/" %{name}-%{version}
sed -i "s/w3m lynx/\$TEXTBROWSER links lynx w3m \$BROWSER/" %{name}-%{version}
sed -i 's$/usr/local/etc$/var/cache/rfc$' %{name}-%{version}
sed -i 's$/local/path/to/rfcs$/var/cache/rfc$' %{name}-%{version}
sed -i 's$/ftp.isi.edu/in-notes/iana$/www.iana.org$' %{name}-%{version}

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/var/cache/rfc/
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/
ln -s %{name}-%{version} %{name}
install -m755 %{name}-%{version} $RPM_BUILD_ROOT/%{_bindir}/
install -m755 %{name} $RPM_BUILD_ROOT/%{_bindir}/
install -m644 rfc-util.el $RPM_BUILD_ROOT/%{_datadir}/emacs/site-lisp/

%post
%{_bindir}/%{name} -i
%{_bindir}/%{name} -n -i

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/%{name}-%{version}
%{_bindir}/%{name}
%{_datadir}/emacs/site-lisp/rfc-util.el
%dir /var/cache/rfc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8027 |21cr|rfcdiff-1.42-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Draft Diff Tool
Name:		rfcdiff
Version:	1.42
Release:	3
Group:		Development/Other
License:	GPLv2+
URL:		http://tools.ietf.org/tools/rfcdiff/
Source0:	http://tools.ietf.org/tools/rfcdiff/rfcdiff-%{version}.tgz
Patch0:         rfcdiff-1.42.patch
BuildRequires:	txt2man
Requires:       wdiff
BuildArch:	noarch

%description
rfcdiff takes two RFCs or Internet-Drafts in text form as input, and
produces output which indicates the differences found in one of various
forms, controlled by a list of options. In all cases, page headers and
page footers are stripped before looking for changes.

%prep
%setup -q
%patch0 -p1

%build
make

%install
mkdir -p %{buildroot}%{_prefix}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1/
install %{name} %{buildroot}%{_bindir}
install -m 644 %{name}.1.gz %{buildroot}%{_mandir}/man1/

%clean

%files
%doc copyright
%{_mandir}/man1/*
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8028 |21cr|R-fibroEset-1.4.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  fibroEset
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.4.6
Release:          6
Summary:          exprSet for Karaman et al. (2003) fibroblasts data
Group:            Sciences/Mathematics
License:          LGPL
URL:              None
Source0:          http://bioconductor.org/packages/data/experiment/src/contrib/fibroEset_1.4.6.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-Biobase 
BuildRequires:    R-devel Rmath-devel  R-Biobase

%description
exprSet for Karaman et al. (2003) human, bonobo and gorilla fibroblasts

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8029 |21cr|R-fields-8.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  fields
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          8.2.1
Release:          4
Summary:          Tools for spatial data
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/fields_8.2-1.tar.gz
Requires:         R-methods R-maps R-spam
BuildRequires:    R-devel Rmath-devel R-methods R-maps R-spam

%description
Fields is for curve, surface and function fitting with an emphasis on
splines, spatial data and spatial statistics. The major methods include
cubic, robust, and thin plate splines, and Kriging for large data sets.
The splines and Kriging methods are supporting by functions that can
determine the smoothing parameter (nugget and sill variance) by cross
validation and also by restricted maximum likelihood.  A major feature is
that any covariance function implemented in R with the fields interface
can be used for spatial prediction. Some tailored optimization functions
are supplied for find the MLEs for the Matern family of covariances. There
are also many useful functions for plotting and working with spatial data
as images. This package also contains an implementation of a sparse matrix
methods for large data sets and currently requires the sparse matrix
(spam) package for testing (but not for the standard spatial functions.)
Use help(fields) to get started and for an overview.  The fields source
code is heavily commented and should provide useful explanation of
numerical details in addition to the manual pages.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8030 |21cr|R-filehash-2.2.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  filehash
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.2.2
Release:          5
Summary:          Simple key-value database
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/filehash_2.2-2.tar.gz
Requires:         R-methods 
Requires:         R-utils 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-methods
BuildRequires:    R-utils
BuildRequires:    pkgconfig(lapack)

%description
Simple key-value database

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8031 |21cr|R-fit.models-0.5.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  fit.models
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.5.10
Release:          5
Summary:          fit.models
Group:            Sciences/Mathematics
License:          GPLv1+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.5-10.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-lattice 

Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel  R-lattice

BuildRequires:   R-MASS 
%description
A framework for comparing fitted models

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8032 |21cr|R-flexmix-2.3.13-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  flexmix
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.3.13
Release:          5
Summary:          Flexible Mixture Modeling

Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/flexmix_2.3-13.tar.gz
Requires:         R-lattice R-modeltools R-multcomp R-methods R-stats R-stats4
Requires:         R-MASS R-codetools R-diptest R-ellipse R-gclus R-grid R-lme4
Requires:         R-mlbench R-mvtnorm R-nnet
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-lattice
BuildRequires:    R-modeltools R-multcomp R-methods R-stats R-stats4
BuildRequires:    R-MASS R-codetools R-diptest R-ellipse R-gclus R-grid
BuildRequires:    R-lme4 R-mlbench R-mvtnorm R-nnet

%description
FlexMix implements a general framework for finite mixtures of regression
models using the EM algorithm.  FlexMix provides the E-step and all data
handling, while the M-step can be supplied by the user to easily define
new models. Existing drivers implement mixtures of standard linear models,
generalized linear models and model-based clustering.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8033 |21cr|R-foreach-1.4.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  foreach
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.4.2
Release:          5
Summary:          Foreach looping construct for R
Group:            Sciences/Mathematics
License:          Apache License (== 2.0)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/foreach_%{version}.tar.gz
Requires:         R-codetools R-utils 
Requires:         R-randomForest
Requires:         R-iterators
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-codetools R-utils
BuildRequires:    R-randomForest R-iterators

%description
Support for the foreach looping construct.  Foreach is an idiom that
allows for iterating over elements in a collection, without the use of an
explicit loop counter.  This package in particular is intended to be used
for its return value, rather than for its side effects.  In that sense, it
is similar to the standard lapply function, but doesn't require the
evaluation of a function.  Using foreach without side effects also
facilitates executing the loop in parallel.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# It seems we should update iter and maybe some other packages for all tests to pass
# %check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8034 |21cr|R-formatR-0.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  formatR
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.10
Release:          6
Summary:          Format R Code Automatically
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-codetools R-gWidgetsRGtk2 R-testit 
Recommends:       R-knitr 
BuildRequires:    R-devel Rmath-devel  

BuildRequires:   R-codetools R-gWidgetsRGtk2 R-testit 
#BuildRequires: R-knitr 

%description
This package provides a function tidy.source() and optionally a GUI (by
gWidgets and preferably gWidgetsRGtk2) to format R source code. Spaces and
indent will be added to the code automatically, and comments will be
preserved under certain conditions, so that R code will be more
human-readable and tidy.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/format

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8035 |21cr|R-Formula-1.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Formula
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.2.1
Release:          4
Summary:          Extended Model Formulas
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/Formula_1.2-1.tar.gz
Requires:         R-stats 
BuildRequires:    R-devel Rmath-devel texlive R-stats

%description
Infrastructure for extended formulas with multiple parts on the right-hand
side and/or multiple responses on the left-hand side.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8036 |21cr|R-FRB-1.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  FRB
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.8
Release:          5
Summary:          Fast and Robust Bootstrap
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-corpcor R-rrcov 

BuildRequires:    R-devel Rmath-devel  R-corpcor R-rrcov


%description
This package performs robust inference based on applying Fast and Robust
Bootstrap on robust estimators. Available methods are multivariate
regression, PCA and Hotelling tests.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8037 |21cr|R-fts-0.9.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  fts
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.9.9
Release:          3
Summary:          R interface to tslib (a time series library in c++)
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-utils R-stats R-zoo R-BH
BuildRequires:    R-devel Rmath-devel  R-utils R-stats R-BH R-zoo
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
fast operations for time series objects

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8038 |21cr|R-gam-1.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gam
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.12
Release:          5
Summary:          Generalized Additive Models
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gam_%{version}.tar.gz
Requires:         R-stats R-splines 
Requires:         R-akima R-foreach
BuildRequires:    R-devel Rmath-devel  R-stats R-splines
BuildRequires:    R-akima R-foreach
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Functions for fitting and working with generalized additive models, as
described in chapter 7 of "Statistical Models in S" (Chambers and Hastie
(eds), 1991), and "Generalized Additive Models" (Hastie and Tibshirani,

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/ratfor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8039 |21cr|R-gamair-1.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gamair
%global rlibdir  %{_datadir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.0.0
Release:          3
Summary:          Data for "GAMs: An Introduction with R"
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-0.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-mgcv R-lattice R-MASS R-nlme R-lme4 R-geoR R-survival 
BuildRequires:    R-devel Rmath-devel 

BuildRequires:   R-mgcv R-lattice R-MASS R-nlme R-lme4 R-geoR R-survival 

%description
Data sets and scripts used in the book "Generalized Additive Models: An
Introduction with R", Wood (2006) CRC.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8040 |21cr|R-GAMBoost-1.2.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  GAMBoost
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.2.3
Release:          5
Summary:          Generalized linear and additive models by likelihood based boosting
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.2-3.tar.gz

Requires:         R-Matrix 

Requires:         R-parallel R-snowfall 
BuildRequires:    R-devel Rmath-devel  R-Matrix

BuildRequires:   R-parallel R-snowfall 
%description
This package provides routines for fitting generalized linear and and
generalized additive models by likelihood based boosting, using penalized

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8041 |21cr|R-gamlss-4.3.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gamlss
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          4.3.5
Release:          5
Summary:          Generalised Additive Models for Location Scale and Shape
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gamlss_4.3-5.tar.gz

Requires:         R-graphics R-stats R-splines R-utils R-gamlss.dist R-gamlss.data R-nlme 
Requires:         R-MASS R-survival 

BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-graphics R-stats R-splines R-utils R-gamlss.dist R-gamlss.data R-nlme
BuildRequires:    R-MASS R-survival 
#BuildRequires:    texlive-collection-fontsextra

%description
The library for fitting GAMLSS models.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8042 |21cr|R-gamlss.data-4.2.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gamlss.data
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          4.2.7
Release:          5
Summary:          GAMLSS Data
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gamlss.data_4.2-7.tar.gz
BuildArch:        noarch
Requires:         R-core




BuildRequires:    R-devel Rmath-devel  


%description
Data for GAMLSS models.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8043 |21cr|R-gamlss.dist-5.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname gamlss.dist
%global rlibdir %{_libdir}/R/library

Summary:	Distributions to be used for GAMLSS modelling
Name:		R-%{packname}
Version:	5.0.0
Release:	2
License:	GPL-2 | GPL-3
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/gamlss.dist_5.0-0.tar.gz
BuildRequires:	R-devel Rmath-devel texlive-latex R-MASS
Requires:	R-MASS

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

#---------------------------------------------------------

%description
This package contains the distributions for GAMLSS modelling.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8044 |21cr|R-gamm4-0.2.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gamm4
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2.4
Release:          4
Summary:          Generalized Additive Mixed Models using 'mgcv' and 'lme4'
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.2-4.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-methods R-Matrix R-lme4 R-mgcv 


BuildRequires:    R-devel Rmath-devel R-methods R-Matrix R-lme4 R-mgcv


%description
Estimate generalized additive mixed models via a version of function
gamm() from 'mgcv', using 'lme4' for estimation.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8045 |21cr|R-gbm-2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gbm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.1
Release:          5
Summary:          Generalized Boosted Regression Models
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gbm_2.1.tar.gz
Requires:         R-survival
Requires:         R-lattice
Requires:         R-splines R-RUnit
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-survival R-RUnit
BuildRequires:    R-lattice
BuildRequires:    R-splines
BuildRequires:    pkgconfig(lapack)

%description
This package implements extensions to Freund and Schapire's AdaBoost
algorithm and Friedman's gradient boosting machine. Includes regression
methods for least squares, absolute loss, quantile regression, logistic,
Poisson, Cox proportional hazards partial likelihood, and AdaBoost
exponential loss.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8046 |21cr|R-gclus-1.3.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gclus
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.3.1
Release:          6
Summary:          Clustering Graphics
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-cluster 
BuildRequires:    R-devel Rmath-devel  R-cluster texlive-collection-latex

%description
Orders panels in scatterplot matrices and parallel coordinate displays by
some merit index. Package contains various indices of merit, ordering
functions, and enhanced versions of pairs and parcoord which color panels
according to their merit level.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8047 |21cr|R-gdata-2.16.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gdata
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}
%global __requires_exclude perl.*
%global __provides_exclude perl.*

Name:             R-%{packname}
Version:          2.16.1
Release:          4
Summary:          Various R programming tools for data manipulation
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gdata_%{version}.tar.gz
Requires:         R-gtools R-RUnit
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-gtools R-RUnit

%description
Various R programming tools for data manipulation

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/bin
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/perl
%{rlibdir}/%{packname}/xls

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8048 |21cr|R-gee-4.13.18-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gee
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          4.13.18
Release:          5
Summary:          Generalized Estimation Equation solver
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gee_4.13-18.tar.gz
Requires:         R-stats 
Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel  R-stats texlive-collection-latex
BuildRequires:    R-MASS 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Generalized Estimation Equation solver

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8049 |21cr|R-geepack-1.1.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  geepack
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.6
Release:          6
Summary:          Generalized Estimating Equation Package
Group:            Sciences/Mathematics
License:          GPLv3+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.1-6.tar.gz

BuildRequires:    R-devel Rmath-devel texlive-latex 

%description
Generalized estimating equations solver for parameters in mean, scale, and
correlation structures, through mean link, scale link, and correlation
link. Can also handle clustered categorical responses.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8050 |21cr|R-genefilter-1.44.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  genefilter
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.44.0
Release:          7
Summary:          genefilter: methods for filtering genes from microarray experiments
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-AnnotationDbi R-annotate R-Biobase R-graphics R-methods R-stats R-survival 
Requires:         R-Biobase R-class R-hgu95av2.db R-methods R-tkWidgets R-ALL 
%if %{without bootstrap}
Requires:         R-DESeq R-ROC R-pasilla
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-AnnotationDbi R-annotate R-Biobase R-graphics R-methods R-stats R-survival 
BuildRequires:    R-Biobase R-class R-hgu95av2.db R-methods R-tkWidgets R-ALL 
%if %{without bootstrap}
BuildRequires:    R-DESeq R-ROC R-pasilla
%endif

%description
Some basic functions for filtering genes

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/wFun

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8051 |21cr|R-geneplotter-1.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  geneplotter
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.40.0
Release:          7
Summary:          Graphics related functions for Bioconductor
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/geneplotter_1.40.0.tar.gz
Requires:         R-Biobase R-annotate R-lattice R-AnnotationDbi R-graphics
Requires:         R-grDevices R-grid R-methods R-RColorBrewer R-stats R-utils
Recommends:         R-Rgraphviz R-fibroEset R-hgu95av2.db
Recommends:         R-hu6800.db R-hgu133a.db
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-Biobase R-annotate R-lattice R-AnnotationDbi R-graphics
BuildRequires:    R-grDevices R-grid R-methods R-RColorBrewer R-stats R-utils
BuildRequires:    R-Rgraphviz R-fibroEset R-hgu95av2.db
BuildRequires:    R-hu6800.db R-hgu133a.db
BuildRequires:    x11-server-xvfb

%description
Some basic functions for plotting genetic data

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Fails in build system
%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8052 |21cr|R-GenomeGraphs-1.22.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with internet
%global packname  GenomeGraphs
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.22.0
Release:          4
Summary:          Plotting genomic information from Ensembl
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/GenomeGraphs_1.22.0.tar.gz
Requires:         R-methods R-biomaRt R-grid
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-methods R-biomaRt R-grid

%description
Genomic data analyses requires integrated visualization of known genomic
information and new experimental data.  GenomeGraphs uses the biomaRt
package to perform live annotation queries to Ensembl and translates this
to e.g. gene/transcript structures in viewports of the grid graphics
package. This results in genomic information plotted together with your
data.  Another strength of GenomeGraphs is to plot different data types
such as array CGH, gene expression, sequencing and other data, together in
one plot using the same genome coordinate system.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{with internet}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/extra
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8053 |21cr|R-GenomeInfoDb-1.12.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname GenomeInfoDb
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.12.1
Release:          2
Summary:          Utilities for manipulating chromosome and other 'seqname' identifiers
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://www.bioconductor.org/packages/release/bioc/html/GenomeInfoDb.html
Source0:          http://www.bioconductor.org/packages/release/bioc/src/contrib/GenomeInfoDb_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-methods R-BiocGenerics R-stats4 R-S4Vectors
BuildRequires:    R-methods R-BiocGenerics R-stats4 R-S4Vectors
Recommends:       R-Rsamtools
Requires:         R-RUnit R-BiocStyle R-knitr R-GenomeInfoDbData
Recommends:       R-BSgenome R-GenomicRanges R-IRanges
BuildRequires:	  R-GenomeInfoDbData R-IRanges
BuildRequires:	R-RUnit R-BiocStyle R-knitr

%description
Utilities for manipulating chromosome and other 'seqname' identifiers

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8054 |21cr|R-GenomeInfoDbData-0.99.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname GenomeInfoDbData
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.99.0
Release:          2
Summary:          Utilities for manipulating chromosome and other 'seqname' identifiers
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://www.bioconductor.org/packages/release/bioc/html/GenomeInfoDbData.html
Source0:          https://bioconductor.org/packages/release/data/annotation/src/contrib/GenomeInfoDbData_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core R-devel
BuildRequires:    R-core R-devel

%description
Utilities for manipulating chromosome and other 'seqname' identifiers

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8055 |21cr|R-GenomicRanges-1.28.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%bcond_with internet
%bcond_without bootstrap
%global packname  GenomicRanges
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.28.3
Release:          2
Summary:          Representation and manipulation of genomic intervals
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/GenomicRanges_%{version}.tar.gz
Requires:         R-methods
Recommends:       R-GenomeInfoDb R-IRanges R-XVector R-zlibbioc
%if %{with bootstrap}
Requires:         R-RUnit
%else
Requires:         R-RUnit R-BSgenome R-GenomicFeatures R-Rsamtools
Requires:         R-EatonEtAlChIPseq R-leeBamViews R-edgeR R-DESeq
Requires:         R-rtracklayer R-org.Sc.sgd.db
Requires:         R-BSgenome.Scerevisiae.UCSC.sacCer2 R-DEXSeq R-pasilla 
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
#BuildRequires: R-GenomicRanges
BuildRequires: R-XVector R-GenomeInfoDb R-IRanges R-S4Vectors
BuildRequires:    R-methods
BuildRequires:    R-BiocGenerics R-zlibbioc
%if %{with bootstrap}
BuildRequires:    R-RUnit
%else
BuildRequires:    R-RUnit R-BSgenome R-GenomicFeatures R-Rsamtools
BuildRequires:    R-EatonEtAlChIPseq R-leeBamViews R-edgeR R-DESeq
BuildRequires:    R-rtracklayer R-org.Sc.sgd.db
BuildRequires:    R-BSgenome.Scerevisiae.UCSC.sacCer2 R-DEXSeq R-pasilla 
%endif

%description
The ability to efficiently store genomic annotations and alignments is
playing a central role when it comes to analyze high-throughput sequencing
data (a.k.a. NGS data). The package defines general purpose containers for
storing genomic intervals as well as more specialized containers for
storing alignments against a reference genome.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
    %if %{with internet}
%check
%{_bindir}/R CMD check %{packname}
    %endif
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8056 |21cr|R-GEOquery-2.28.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  GEOquery
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.28.0
Release:          5
Summary:          Get data from NCBI Gene Expression Omnibus (GEO)
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods R-Biobase 
Requires:         R-XML R-RCurl 
Requires:         R-limma R-RUnit 
BuildRequires:    R-devel Rmath-devel texlive-latex R-methods R-Biobase
BuildRequires:    R-XML R-RCurl 
BuildRequires:    R-limma R-RUnit 
BuildRequires:    curl

%description
The NCBI Gene Expression Omnibus (GEO) is a public repository of
microarray data.  Given the rich and varied nature of this resource, it is
only natural to want to apply BioConductor tools to these data.  GEOquery
is the bridge between GEO and BioConductor.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Do not run tests - their try to conenct to some sites that can be unavailable
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8057 |21cr|R-geoR-1.7.5.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  geoR
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.7.5.1
Release:          4
Summary:          Analysis of geostatistical data
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/geoR_1.7-5.1.tar.gz
Requires:         R-stats R-sp R-methods R-MASS R-splancs R-RandomFields
Requires:         R-scatterplot3d R-tcltk R-lattice R-graphics
%if %{without bootstrap}
Requires:         R-geoRglm
%endif
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-stats R-sp R-methods R-MASS R-splancs R-RandomFields
BuildRequires:    R-scatterplot3d R-tcltk R-lattice R-graphics
%if %{without bootstrap}
BuildRequires:    R-geoRglm
%endif

%description
Geostatistical analysis including traditional, likelihood-based and
Bayesian methods.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CHANGES
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8058 |21cr|R-geoRglm-0.9.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  geoRglm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.9.4
Release:          5
Summary:          geoRglm - a package for generalised linear spatial models
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/geoRglm_0.9-4.tar.gz
Requires:         R-geoR R-stats 
Requires:         R-coda 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-geoR R-stats
BuildRequires:    R-coda 

%description
Functions for inference in generalised linear spatial models. The
posterior and predictive inference is based on Markov chain Monte Carlo
methods. Package geoRglm is an extension to the package geoR, which must
be installed first.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8059 |21cr|R-GGally-0.5.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  GGally
%global rlibdir  %{_datadir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.5.0
Release:          4
Summary:          Extension to ggplot2
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-ggplot2 R-grid R-gtable R-plyr R-reshape R-stringr 
Requires:         R-arm R-intergraph R-network R-RColorBrewer R-scales R-sna R-survival R-tnet R-roxygen2
Recommends:       R-scagnostics
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-ggplot2 R-grid R-gtable R-plyr R-reshape R-stringr 
BuildRequires:   R-arm R-intergraph R-network R-RColorBrewer R-scales R-sna R-survival R-tnet R-roxygen2

%description
GGally is designed to be a helper to ggplot2. It contains templates for
different plots to be combined into a plot matrix, a parallel coordinate
plot function, as well as a function for making a network plot.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8060 |21cr|R-ggplot2-1.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ggplot2
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.1
Release:          4
Summary:          An implementation of the Grammar of Graphics
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/ggplot2_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-reshape R-grid R-proto 
Requires:         R-plyr R-splines R-MASS R-RColorBrewer R-digest R-colorspace 
Requires:         R-quantreg R-mapproj R-maps R-hexbin R-gpclib
Recommends:       R-Hmisc R-maptools
Requires:         R-scales R-gtable R-reshape2
BuildRequires:    R-devel Rmath-devel  R-reshape R-grid R-proto
BuildRequires:    R-plyr R-splines R-MASS R-RColorBrewer R-digest R-colorspace 
BuildRequires:    R-quantreg R-mapproj R-maps R-hexbin R-gpclib
BuildRequires:    R-scales R-gtable R-reshape2

%description
An implementation of the grammar of graphics in R. It combines the
advantages of both base and lattice graphics: conditioning and shared axes
are handled automatically, and you can still build up a plot step by step
from multiple data sources. It also implements a sophisticated
multidimensional conditioning system and a consistent interface to map
data to aesthetic attributes. See the ggplot2 website for more
information, documentation and examples.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/doc
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/staticdocs
%{rlibdir}/%{packname}/test_ns
%{rlibdir}/%{packname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8061 |21cr|R-git2r-0.21.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  git2r
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.21.0
Release:          1
Summary:          Provides Access to Git Repositories
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods 
Requires:         R-graphics R-utils 
Recommends:         R-getPass 
BuildRequires:    R-devel Rmath-devel R-methods
BuildRequires:    R-graphics R-utils 
BuildRequires:    pkgconfig(openssl)

%if %{without bootstrap}
BuildRequires:   R-getPass
%endif

%description
Interface to the 'libgit2' library, which is a pure C implementation of
the 'Git' core methods. Provides access to 'Git' repositories to extract
data and running some basic 'Git' commands.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8062 |21cr|R-glmmML-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  glmmML
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0
Release:          5
Summary:          Generalized linear models with clustering
Group:            Sciences/Mathematics
License:          GPL (>= 3)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-stats 

BuildRequires:    lapack-devel
BuildRequires:    R-devel Rmath-devel texlive-latex R-stats


%description
Binomial and Poisson regression for clustered data, fixed and random
effects with bootstrapping.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8063 |21cr|R-glmnet-1.9.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  glmnet
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.9.8
Release:          5
Summary:          Lasso and elastic-net regularized generalized linear models

Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/glmnet_1.9-8.tar.gz

Requires:         R-Matrix R-utils 

Requires:         R-survival R-foreach 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-Matrix R-utils

BuildRequires:   R-survival R-foreach 
%description
Extremely efficient procedures for fitting the entire lasso or elastic-net
regularization path for linear regression, logistic and multinomial
regression models, poisson regression and the Cox model. Two recent
additions are the multiresponse gaussian, and the grouped multinomial. The
algorithm uses cyclical coordinate descent in a pathwise fashion, as
described in the paper listed below.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/mortran

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8064 |21cr|R-globaltest-5.16.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  globaltest
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          5.16.0
Release:          5
Summary:          Testing groups of covariates/features for association with a response variable
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods 
Requires:         R-Biobase R-survival R-AnnotationDbi R-annotate R-multtest R-graphics 
Requires:         R-vsn R-golubEsets R-KEGG.db R-hu6800.db R-Rgraphviz R-GO.db R-lungExpression R-org.Hs.eg.db R-annotate R-Biobase R-survival R-GSEABase R-penalized R-gss R-MASS R-boot R-rpart 
BuildRequires:    R-devel Rmath-devel texlive-latex R-methods
BuildRequires:    R-Biobase R-survival R-AnnotationDbi R-annotate R-multtest R-graphics 
BuildRequires:   R-vsn R-golubEsets R-KEGG.db R-hu6800.db R-Rgraphviz R-GO.db R-lungExpression R-org.Hs.eg.db R-annotate R-Biobase R-survival R-GSEABase R-penalized R-gss R-MASS R-boot R-rpart 
%description
The global test tests groups of covariates (or features) for association
with a response variable. This package implements the test with diagnostic
plots and multiple testing utilities, along with several functions to
facilitate the use of this test for gene set testing of GO and KEGG terms.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8065 |21cr|R-gmodels-2.15.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gmodels
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.15.4.1
Release:          5
Summary:          Various R programming tools for model fitting
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-MASS R-gdata 
Requires:         R-gplots R-gtools R-Matrix R-nlme R-lme4 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-MASS R-gdata 
BuildRequires:   R-gplots R-gtools R-Matrix R-nlme R-lme4 
%description
Various R programming tools for model fitting

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/ChangeLog
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8066 |21cr|R-gnm-1.0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gnm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.7
Release:          6
Summary:          Generalized Nonlinear Models
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-7.tar.gz


Requires:         R-MASS R-stats R-graphics R-qvcalc R-relimp 
#Requires:         R-vcdExtra 
BuildRequires:    R-devel Rmath-devel texlive-latex 
BuildRequires:    R-MASS R-stats R-graphics R-qvcalc R-relimp 
#BuildRequires:    R-vcdExtra 
BuildRequires:    lapack-devel

%description
Functions to specify and fit generalized nonlinear models, including
models with multiplicative interaction terms such as the UNIDIFF model
from sociology and the AMMI model from crop science, and many others. 
Over-parameterized representations of models are used throughout;
functions are provided for inference on estimable parameter combinations,
as well as standard methods for diagnostics etc.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8067 |21cr|R-GO.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  GO.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          A set of annotation maps describing the entire Gene Ontology
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/GO.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-AnnotationDbi 
Requires:         R-methods R-AnnotationDbi 
BuildRequires:    R-devel Rmath-devel  R-methods R-AnnotationDbi
BuildRequires:    R-methods R-AnnotationDbi R-IRanges R-S4Vectors

%description
A set of annotation maps describing the entire Gene Ontology assembled
using data from GO

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8068 |21cr|R-goftest-1.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  goftest
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.0.2
Release:          4
Summary:          Classical Goodness-of-Fit Tests for Univariate Distributions
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-2.tar.gz

BuildRequires:    R-devel Rmath-devel texlive


%description
Cramer-Von Mises and Anderson-Darling tests of goodness-of-fit for
continuous univariate distributions, using efficient algorithms.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8069 |21cr|R-golubEsets-1.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  golubEsets
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.6.0
Release:          4
Summary:          exprSets for golub leukemia data
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/data/experiment/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/experiment/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-Biobase 

BuildRequires:    R-devel Rmath-devel R-Biobase texlive


%description
representation of public golub data with some covariate data of provenance
unknown to the maintainer at present; now employs ExpressionSet format

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8070 |21cr|R-GPArotation-2012.3.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  GPArotation
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2012.3.1
Release:          6
Summary:          GPA Factor Rotation
Group:            Sciences/Mathematics
License:          GPL (>= 2) | file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/GPArotation_2012.3-1.tar.gz
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    pkgconfig(lapack)

%description
Gradient Projection Algorithm Rotation for Factor Analysis. See
?GPArotation.Intro for more details.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8071 |21cr|R-gpclib-1.5.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gpclib
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.5.5
Release:          4
Summary:          General Polygon Clipping Library for R
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gpclib_1.5-5.tar.gz
Requires:         R-methods 
Requires:         R-graphics 
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-graphics 

%description
General polygon clipping routines for R based on Alan Murta's C library

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# segfault...
# %check
# %{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/README
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/poly-ex
%{rlibdir}/%{packname}/bugs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8072 |21cr|R-gplots-2.17.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gplots
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.17.0
Release:          5
Summary:          Various R programming tools for plotting data
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gplots_%{version}.tar.gz
Requires:         R-gtools R-gdata R-stats R-caTools R-grid R-KernSmooth
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-gtools R-gdata R-stats R-caTools R-grid R-KernSmooth

%description
Various R programming tools for plotting data

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/TODO
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8073 |21cr|R-graph-1.40.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  graph
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.40.1
Release:          5
Summary:          graph: A package to handle graph data structures
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/graph_1.40.1.tar.gz
Requires:         R-methods 
Requires:         R-methods R-stats R-tools R-utils 
Requires:         R-BiocGenerics
%if %{with bootstrap}
Requires:         R-XML R-RUnit R-cluster 
%else
Requires:         R-SparseM R-XML R-RBGL R-RUnit R-cluster 
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:    R-methods R-stats R-tools R-utils 
BuildRequires:    R-BiocGenerics
%if %{with bootstrap}
BuildRequires:    R-XML R-RUnit R-cluster 
%else
BuildRequires:    R-SparseM R-XML R-RBGL R-RUnit R-cluster 
%endif
BuildRequires:    x11-server-xvfb

%description
A package that implements some simple graph handling capabilities.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
xvfb-run %{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/GXL
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/Scripts
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/perf
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8074 |21cr|R-gridBase-0.4.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gridBase
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.4.7
Release:          5
Summary:          Integration of base and grid graphics
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gridBase_0.4-7.tar.gz
Requires:         R-graphics R-grid 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-graphics R-grid

%description
Integration of base and grid graphics

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8075 |21cr|R-gridExtra-0.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gridExtra
%global rlibdir  %{_datadir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.9.1
Release:          4
Summary:          functions in Grid graphics
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-grid 

#Requires:         R-RGraphics
Requires:         R-pixmap R-EBImage R-lattice
BuildRequires:    R-devel Rmath-devel R-grid R-ggplot2

BuildRequires:   R-pixmap R-EBImage R-ggplot2 R-lattice
#BuildRequires:   R-RGraphics

%description
misc. high-level Grid functions

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# %check
# %{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8076 |21cr|R-GSEABase-1.36.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  GSEABase
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.36.0
Release:          2
Summary:          Gene set enrichment data structures and methods
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-BiocGenerics R-Biobase R-annotate R-methods R-graph 
Requires:         R-AnnotationDbi R-XML 
#Suggests:         R-hgu95av2.db R-GO.db R-org.Hs.eg.db R-Rgraphviz R-ReportingTools
BuildRequires:    R-devel Rmath-devel R-BiocGenerics R-Biobase R-annotate R-methods R-graph
BuildRequires:    R-AnnotationDbi R-XML 
#BuildRequires:   R-hgu95av2.db R-GO.db R-org.Hs.eg.db R-Rgraphviz R-ReportingTools

%description
This package provides classes and methods to support Gene Set Enrichment
Analysis (GSEA).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8077 |21cr|R-gsl-2.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname gsl
%global rlibdir %{_libdir}/R/library

Name: R-%{packname}
Version: 2.1.6
Release: 1
Summary: Wrapper for the Gnu Scientific Library
Group: Sciences/Mathematics
License: GPLv2+
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: http://cran.r-project.org/src/contrib/gsl_2.1-6.tar.gz
Requires: R-core 
BuildRequires: R-devel texlive-collection-latex
BuildRequires: pkgconfig(gsl)

%description
An R wrapper for the special functions and quasi random
number generators of the Gnu Scientific Library
(http://www.gnu.org/software/gsl/). See gsl-package.Rd for
details of overall package organization, and Misc.Rd for some
functions that are widely used in the package, and some tips on installation.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/doc
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8078 |21cr|R-gss-2.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gss
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.1.5
Release:          4
Summary:          General Smoothing Splines
Group:            Sciences/Mathematics
License:          GPLv3
URL:              http://cran.r-project.org/web/packages/gss/index.html
Source0:          http://cran.r-project.org/src/contrib/gss_2.1-5.tar.gz
Requires:         R-core
BuildRequires:    R-devel 
BuildRequires:    pkgconfig(lapack)

%description
A comprehensive package for structural multivariate function 
estimation using smoothing splines.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/gss/CITATION

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8079 |21cr|R-gtable-0.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gtable
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.1.2
Release:          5
Summary:          Arrange grobs in tables
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-grid
Recommends:       R-testthat
Requires:         R-plyr 
BuildRequires:    R-devel Rmath-devel  R-grid

BuildRequires:   R-plyr 
%description
Tools to make it easier to work with "tables" of grobs.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8080 |21cr|R-gtools-3.5.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gtools
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.5.0
Release:          4
Summary:          Various R programming tools
Group:            Sciences/Mathematics
License:          LGPL-2.1
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gtools_%{version}.tar.gz
BuildRequires:    R-devel Rmath-devel  

%description
Various R programming tools

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8081 |21cr|R-gWidgets-0.0.54-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  gWidgets
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.0.54
Release:          4
Summary:          GWidgets API for building toolkit-independent, interactive GUIs
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gWidgets_0.0-54.tar.gz
Requires:         R-methods R-utils R-cairoDevice
%if %{without bootstrap}
Requires:         R-gWidgetsRGtk2 R-gWidgetstcltk
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:    R-utils R-cairoDevice
%if %{without bootstrap}
BuildRequires:    R-gWidgetsRGtk2 R-cairoDevice R-gWidgetstcltk
%endif
BuildRequires:    x11-server-xvfb

%description
gWidgets provides a toolkit-independent API for building interactive GUIs.
Atleast one of the gWidgetsXXX packages, such as gWidgetstcltk, needs to
be installed. Some icons are on loan from the scigraphica project

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
xvfb-run %{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/images
%{rlibdir}/%{packname}/install
%{rlibdir}/%{packname}/tests
%{rlibdir}/%{packname}/src

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8082 |21cr|R-gWidgetsRGtk2-0.0.83-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gWidgetsRGtk2
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.0.83
Release:          4
Summary:          Toolkit implementation of gWidgets for RGtk2
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gWidgetsRGtk2_0.0-83.tar.gz
Requires:         R-methods R-gWidgets R-RGtk2 R-cairoDevice
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-methods R-gWidgets R-RGtk2  R-cairoDevice
BuildRequires:    gtk2-devel x11-server-xvfb

%description
Port of gWidgets API to RGtk2

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
xvfb-run %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
if [ x$DISPLAY != x ];	then %{_bindir}/R CMD check %{packname}
else			true
fi

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/images

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8083 |21cr|R-gWidgetstcltk-0.0.55-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  gWidgetstcltk
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.0.55
Release:          4
Summary:          Toolkit implementation of gWidgets for tcltk package
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/gWidgetstcltk_0.0-55.tar.gz
Requires:         R-methods R-gWidgets R-tcltk R-tcltk2 R-digest
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-methods R-gWidgets R-tcltk R-tcltk2 R-digest
BuildRequires:    x11-server-xvfb

%description
Port of the gWidgets API to the tcltk package. Requires TK 8.5 or greater
for the tile (ttk)widgets http://www.tcl.tk/software/tcltk/8.5.tml. This
is the default on Windows. Under linux, Tk must be installed. Under Mac OS
X (10.5) there are two options: native Tk or X11. For the native one, Tk
must be upgraded. See www.tcl.tk to download source. Under the Mac it
compiles and installs cleanly. For X11, tcltk libraries can be downloaded
to augment the R binary package. See
http://cran.r-project.org/bin/macosx/tools/. The gdf function requires the
add on Tk package TkTable (http://tktable.sourceforge.net/).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
xvfb-run %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#xvfb-run %%{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/images
%{rlibdir}/%{packname}/tcl
%{rlibdir}/%{packname}/tklibs
%{rlibdir}/%{packname}/*.tcl
%{rlibdir}/%{packname}/ChangeLog

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8084 |21cr|rhapsody-0.28b-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Text mode irc client with menu interface
Name:		rhapsody
Version:	0.28b
Release:	9
License:	GPL
Group:		Networking/IRC
Url:		http://%{name}.sf.net/
Source0:	%{name}_%{version}.tar.bz2
Patch0:		rhapsody-0.28b-fcommon.patch
BuildRequires:	ncurses-devel

%description
Rhapsody is a text console IRC client for Unix operating systems. 
It is small, fast, portable and easy to use, yet it is full featured. The thing
that separates it from the crowd is its intuitive menu driven user interface.

%files
%defattr(-, root, root, 0755)
%doc docs/*
%{_bindir}/*
%{_datadir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
./configure -i %{buildroot}%{_bindir} -d %{_datadir}/%{name}
make clean
%make

%install
perl -pi -e "s|INSTDOCSPATH=(.*)|INSTDOCSPATH=%{buildroot}\$1|" src/Makefile.inc
%make install
chmod  0644 %{buildroot}%{_datadir}/%{name}/*/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8085 |21cr|R-hexbin-1.27.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hexbin
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.27.0
Release:          5
Summary:          Hexagonal Binning Routines
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/hexbin_%{version}.tar.gz
Requires:         R-methods R-grid R-lattice R-graphics R-grDevices
Requires:         R-stats R-utils R-marray R-affy R-Biobase
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-methods R-grid R-lattice R-graphics R-grDevices
BuildRequires:    R-stats R-utils R-marray R-affy R-Biobase

%description
Binning and plotting functions for hexagonal bins. Now uses and relies on
grid graphics and formal (S4) classes and methods.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8086 |21cr|R-hgu133acdf-2.13.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hgu133acdf
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.13.0
Release:          5
Summary:          hgu133acdf
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hgu133acdf_2.13.0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-utils R-AnnotationDbi 
BuildRequires:    R-devel Rmath-devel R-utils R-AnnotationDbi R-S4Vectors R-IRanges

%description
A package containing an environment representing the HG-U133A.cdf file.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8087 |21cr|R-hgu133a.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hgu133a.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          Affymetrix Human Genome U133 Set annotation data (chip hgu133a)
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hgu133a.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-AnnotationDbi R-org.Hs.eg.db 
Requires:         R-methods R-AnnotationDbi 
Requires:         R-annotate 
BuildRequires:    R-devel Rmath-devel  R-methods R-AnnotationDbi R-org.Hs.eg.db
BuildRequires:    R-methods R-AnnotationDbi 
BuildRequires:    R-annotate 

%description
Affymetrix Human Genome U133 Set annotation data (chip hgu133a) assembled
using data from public repositories

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8088 |21cr|R-hgu133aprobe-2.13.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hgu133aprobe
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.13.0
Release:          5
Summary:          Probe sequence data for microarrays of type hgu133a
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hgu133aprobe_2.13.0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-AnnotationDbi 
BuildRequires:    R-devel Rmath-devel R-AnnotationDbi R-IRanges R-S4Vectors

%description
This package was automatically created by package AnnotationDbi version
1.15.34. The probe sequence data was obtained from
http://www.affymetrix.com. The file name was HG-U133A\_probe\_tab.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8089 |21cr|R-hgu133plus2.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hgu133plus2.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          Affymetrix Human Genome U133 Plus 2.0 Array annotation data (chip hgu133plus2)
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hgu133plus2.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-AnnotationDbi R-org.Hs.eg.db 
Requires:         R-methods R-AnnotationDbi 
Requires:         R-annotate 
BuildRequires:    R-devel Rmath-devel  R-methods R-AnnotationDbi R-org.Hs.eg.db
BuildRequires:    R-methods R-AnnotationDbi 
BuildRequires:    R-annotate 

%description
Affymetrix Human Genome U133 Plus 2.0 Array annotation data (chip
hgu133plus2) assembled using data from public repositories

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8090 |21cr|R-hgu95av2cdf-2.13.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hgu95av2cdf
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.13.0
Release:          5
Summary:          hgu95av2cdf
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hgu95av2cdf_2.13.0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-utils R-AnnotationDbi 
BuildRequires:    R-devel Rmath-devel  R-utils R-AnnotationDbi R-S4Vectors R-IRanges

%description
A package containing an environment representing the HG_U95Av2.CDF file.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8091 |21cr|R-hgu95av2.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hgu95av2.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          Affymetrix Human Genome U95 Set annotation data (chip hgu95av2)
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hgu95av2.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-AnnotationDbi R-org.Hs.eg.db 
Requires:         R-methods R-AnnotationDbi 
Requires:         R-annotate 
BuildRequires:    R-devel Rmath-devel  R-methods R-AnnotationDbi R-org.Hs.eg.db
BuildRequires:    R-methods R-AnnotationDbi 
BuildRequires:    R-annotate 

%description
Affymetrix Human Genome U95 Set annotation data (chip hgu95av2) assembled
using data from public repositories

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8092 |21cr|R-hgu95av2probe-2.13.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hgu95av2probe
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.13.0
Release:          5
Summary:          Probe sequence data for microarrays of type hgu95av2
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hgu95av2probe_2.13.0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-AnnotationDbi 
BuildRequires:    R-devel Rmath-devel  R-AnnotationDbi R-IRanges R-S4Vectors

%description
This package was automatically created by package AnnotationDbi version
1.15.34. The probe sequence data was obtained from
http://www.affymetrix.com. The file name was HG\_U95Av2\_probe\_tab.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8093 |21cr|R-highr-0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  highr
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.5
Release:          6
Summary:          Syntax highlighting for R
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Recommends:       R-knitr R-testit 
BuildRequires:    R-devel Rmath-devel  
#BuildRequires:    R-knitr R-testit 

%description
This package provides syntax highlighting for R source code. Currently it
supports LaTeX and HTML output. Source code of other languages can be
supported via Andre Simon's Highlight package.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8094 |21cr|rhit-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	A nginx log explorer 
Name:		rhit
Version:	2.0.3
Release:	1
License:	foo
Group:		System/Servers
Url:		https://github.com/Canop/rhit
Source0:	https://github.com/Canop/rhit/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# use 'cargo vendor' or upd.sh script
Source1:	%{name}-vendor-%{version}.tar.xz
BuildRequires:	cargo

%description
Rhit reads your nginx log files in their standard location(even gzipped), 
does some analysis and tells you about it in pretty tables in your console, 
storing and polluting nothing.

%files
%doc README.md CHANGELOG.md
%{_bindir}/%{name}
#------------------------------------------------------------------

%prep
%autosetup -p1 -a1

mkdir -p .cargo
cat > .cargo/config.toml << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline %{?_smp_mflags}

%install
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8095 |21cr|R-Hmisc-3.16.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  Hmisc
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.16.0
Release:          5
Summary:          Harrell Miscellaneous
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/Hmisc_3.16-0.tar.gz
Requires:         R-methods R-survival R-lattice R-cluster R-Formula
Requires:         R-proto R-scales R-latticeExtra R-acepack R-gtable R-ggplot2
BuildRequires:       R-ggplot2 R-gridExtra
%if %{without bootstrap}
Requires:         R-grid R-nnet R-foreign R-chron R-subselect R-tree
Requires:         R-TeachingDemos R-rms R-mice R-tables
%endif
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-survival R-lattice R-cluster R-Formula
BuildRequires:    R-proto R-scales R-latticeExtra R-acepack R-gtable
%if %{without bootstrap}
BuildRequires:    R-grid R-nnet R-foreign R-chron R-subselect R-tree
BuildRequires:    R-TeachingDemos R-rms R-mice R-tables
%endif

%description
The Hmisc library contains many functions useful for data analysis,
high-level graphics, utility operations, functions for computing sample
size and power, importing datasets, imputing missing values, advanced
table making, variable clustering, character string manipulation,
conversion of S objects to LaTeX code, and recoding variables.  Please
submit bug reports to 'http://biostat.mc.vanderbilt.edu/trac/Hmisc'.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/todo
%doc %{rlibdir}/%{packname}/CHANGELOG
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/THANKS
%doc %{rlibdir}/%{packname}/WISHLIST
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8096 |21cr|R-hom.Hs.inp.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hom.Hs.inp.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          Homology information for Homo Sapiens from Inparanoid
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hom.Hs.inp.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-AnnotationDbi 
Requires:         R-methods R-AnnotationDbi 
BuildRequires:    R-devel Rmath-devel  R-methods R-AnnotationDbi R-IRanges R-S4Vectors
BuildRequires:    R-methods R-AnnotationDbi 

%description
Homology information for Homo Sapiens from Inparanoid assembled using data
from public repositories

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME appears to hang at 100% cpu forever
%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8097 |21cr|R-htmltools-0.3.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  htmltools
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.3.5
Release:          5
Summary:          Tools for HTML
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              None
Source0:          http://cran.r-project.org/src/contrib/htmltools_%{version}.tar.gz
Requires:         R-core


Requires:         R-utils R-digest 
Requires:         R-markdown
Recommends:       R-testthat 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-utils R-digest R-Rcpp
#BuildRequires:   R-markdown

%description
Tools for HTML generation and output

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8098 |21cr|R-httr-1.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  httr
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.3.1
Release:          2
Summary:          Tools for Working with URLs and HTTP
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-mime R-curl R-openssl R-R6 R-jsonlite
Recommends:       R-httpuv R-jpeg R-knitr R-png R-testthat R-readr R-xml2 R-rmarkdown R-covr
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-mime R-curl R-openssl R-R6 R-jsonlite

%if %{without bootstrap}
BuildRequires:   R-httpuv R-jpeg R-knitr R-png R-testthat R-readr R-xml2 R-rmarkdown R-covr
%endif

%description
Useful tools for working with HTTP organised by HTTP verbs (GET(), POST(),
etc). Configuration functions make it easy to control additional request
components (authenticate(), add_headers() and so on).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8099 |21cr|R-hu6800.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hu6800.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          Affymetrix HuGeneFL Genome Array annotation data (chip hu6800)
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/hu6800.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-AnnotationDbi R-org.Hs.eg.db 
Requires:         R-methods R-AnnotationDbi 
Requires:         R-annotate 
BuildRequires:    R-devel Rmath-devel  R-methods R-AnnotationDbi R-org.Hs.eg.db
BuildRequires:    R-methods R-AnnotationDbi 
BuildRequires:    R-annotate 

%description
Affymetrix HuGeneFL Genome Array annotation data (chip hu6800) assembled
using data from public repositories

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8100 |21cr|rhvoice-1.14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname RHVoice
%define	gitdate 20230924

%define	major 5
%define	libname %mklibname RHVoice %{major}
%define	major_a 2
%define	libaudio %mklibname RHVoice_audio %{major_a}
%define	major_c 10
%define	libcore %mklibname RHVoice_core %{major_c}
%define	devname %mklibname %{name} -d

Summary:	Free and open source speech synthesizer
Name:		rhvoice
Version:	1.14.0
Release:	2
License:	GPLv3+
Group:		Sound
Url:		https://rhvoice.org/
# Submodules are a pain
#Source0:	https://github.com/RHVoice/RHVoice/releases/download/%%{version}/%%{oname}-%%{version}.tar.gz
Source0:	%{oname}-%{version}.tar.xz
# DBus service file
Source1:	com.github.OlgaYakovleva.RHVoice.service
# speech-dispatcher-rhvoice config
Source2:	rhvoice.conf
BuildRequires:	scons
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(libpulse-simple)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sigc++-2.0)

%description
RHVoice is a free and open source speech synthesizer.

%files
%doc README.md
%config(noreplace) %{_sysconfdir}/%{oname}/%{oname}.conf
%{_bindir}/%{oname}-*
%{_bindir}/sd_%{name}
%dir %{_datadir}/%{oname}
%{_datadir}/%{oname}/*
%{_datadir}/dbus-1/services/com.github.OlgaYakovleva.%{oname}.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc LICENSE.md
%{_libdir}/libRHVoice.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libaudio}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libaudio}
Shared library for %{name}.

%files -n %{libaudio}
%doc LICENSE.md
%{_libdir}/libRHVoice_audio.so.%{major_a}*

#----------------------------------------------------------------------------

%package -n %{libcore}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libcore}
Shared library for %{name}.

%files -n %{libcore}
%doc LICENSE.md
%{_libdir}/libRHVoice_core.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libaudio} = %{EVRD}
Requires:	%{libcore} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc LICENSE.md
%{_includedir}/*.h
%{_libdir}/libRHVoice.so
%{_libdir}/libRHVoice_audio.so
%{_libdir}/libRHVoice_core.so

#----------------------------------------------------------------------------
%package -n speech-dispatcher-rhvoice
Summary:	RHVoice speech synthesizer - speech dispatcher module
Group:		Sound

%description -n speech-dispatcher-rhvoice
RHVoice speech synthesizer - speech dispatcher module
RHVoice uses statistical parametric synthesis. It relies on existing open
source speech technologies (mainly HTS and related software).

Voices are built from recordings of natural speech. They have small footprints,
because only statistical models are stored on users' computers. And though
the voices lack the naturalness of the synthesizers which generate speech
by combining segments of the recordings themselves, they are still very
intelligible and resemble the speakers who recorded the source material.

This package contains the speech dispatcher module to use RHVoice

%files -n speech-dispatcher-rhvoice
%{_sysconfdir}/speech-dispatcher/modules/rhvoice.conf
%{_libdir}/speech-dispatcher-modules/sd_rhvoice

#----------------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}


%build
scons \
	prefix=%{_prefix} \
	libdir=%{_libdir} \
	sysconfdir=%{_sysconfdir} \
	CFLAGS="%{optflags}" \
	CPPFLAGS="%{optflags}" \


%install
scons \
	prefix=%{_prefix} \
	libdir=%{_libdir} \
	sysconfdir=%{_sysconfdir} \
	DESTDIR=%{buildroot} \
	install

mkdir -p %{buildroot}%{_datadir}/dbus-1/services/com.github.OlgaYakovleva.%{oname}.service
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/dbus-1/services/com.github.OlgaYakovleva.%{oname}.service

install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/speech-dispatcher/modules/rhvoice.conf
install -d %{buildroot}%{_libdir}/speech-dispatcher-modules
ln -s %{_bindir}/sd_rhvoice %{buildroot}%{_libdir}/speech-dispatcher-modules/sd_rhvoice

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8101 |21cr|R-hwriter-1.3.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  hwriter
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.3.2
Release:          4
Summary:          HTML Writer - Outputs R objects in HTML format
Group:            Sciences/Mathematics
License:          LGPL-2.1
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildRequires:    R-devel Rmath-devel texlive

%description
Easy-to-use and versatile functions to output R objects in HTML format

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/images
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8102 |21cr|rhyme-0.9-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A rhyming dictionary
Name:		rhyme
Version:	0.9
Release:	11
License:	GPL+
Group:		Databases
URL:		http://rhyme.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Patch:      rhyme-0.9-fix-format-errors.patch
BuildRequires:	python
BuildRequires:	ncurses-devel
BuildRequires:	readline-devel
BuildRequires:	gdbm-devel

%description
A command-line based rhyming dictionary supporting about 127,000
English words.

%prep
%setup -q
%patch -p 1

# fix strange file perms
chmod 644 *

%build
make LIBS='-lgdbm -lreadline -lncurses' FLAGS='%{optflags}'

# Tue Dec 11 2001 Oden Eriksson
# I suppose it would be possible to do a devel package too,
# but that would require some additional code to keep the *.txt
# compressed...

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}
install -m 644 %{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1
install -m 644 words.db -D %{buildroot}%{_datadir}/%{name}/words.db
install -m 644 rhymes.db -D %{buildroot}%{_datadir}/%{name}/rhymes.db
install -m 644 multiple.db -D %{buildroot}%{_datadir}/%{name}/multiple.db

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc INSTALL
%{_bindir}/*
%{_datadir}/%{name}/*
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8103 |21cr|rhythmbox-3.4.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

%global __requires_exclude typelib.*WebKit.*

%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 10
%define girmajor 3.0
%define libname %mklibname rhythmbox %{major}
%define girname %mklibname %{name}-gir %{girmajor}

Summary:	Music Management Application
Name:		rhythmbox
Version:	3.4.6
Release:	2
License:	GPLv2+ with exception
Group:		Sound
Url:		https://download.gnome.org/sources/rhythmbox
Source0:	https://download.gnome.org/sources/rhythmbox/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gst-2.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(grilo-0.3)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libbrasero-media3)
BuildRequires:	pkgconfig(libdmapsharing-4.0)
BuildRequires:	pkgconfig(libgpod-1.0)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsoup-gnome-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mx-1.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(tdb)
BuildRequires:	pkgconfig(totem-plparser)
Requires:	dbus-x11
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-flac
Requires:	gstreamer1.0-soup
# For python plugins
Requires:	python3-gi
Requires:	typelib(MPID)
Requires:	typelib(Peas)
Requires:	typelib(WebKit2)
Recommends:	gnome-icon-theme-symbolic
Recommends:	grilo-plugins
Recommends:	gstreamer1.0-plugins-ugly
Recommends:	media-player-info

%description
Music Management application with support for ripping audio-cd's,
playback of Ogg Vorbis and Mp3 and burning of CD-Rs.

%files -f %{name}.lang
%doc AUTHORS README NEWS
%license COPYING
%{_appdatadir}/org.gnome.Rhythmbox3.appdata.xml
%{_bindir}/%{name}
%{_bindir}/%{name}-client
%{_datadir}/applications/org.gnome.Rhythmbox3.desktop
%{_datadir}/applications/org.gnome.Rhythmbox3.device.desktop
%{_datadir}/dbus-1/services/org.gnome.Rhythmbox3.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/org.gnome.Rhythmbox*.svg
%{_libexecdir}/%{name}-metadata
%{_libdir}/%{name}/plugins/*
%{_libdir}/%{name}/sample-plugins
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library part of %{name}
Group:		System/Libraries

%description -n %{libname}
This is the shared library part of %{name}.

%files -n %{libname}
%license COPYING
%{_libdir}/librhythmbox-core.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/MPID-%{girmajor}.typelib
%{_libdir}/girepository-1.0/RB-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package devel
Summary:	Rhythmbox plugin development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description devel
Install this if you want to build Rhythmbox plugins.

%files devel
%license COPYING
%{_datadir}/gir-1.0/MPID-%{girmajor}.gir
%{_datadir}/gir-1.0/RB-%{girmajor}.gir
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/vala/vapi/rb.vapi
%{_datadir}/vala/vapi/rhythmdb.vapi
%{_includedir}/%{name}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson	\
	-Dgtk_doc=true	\
	-Dsample-plugins=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="Audio;Player" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

# save space by linking identical images in translated docs
helpdir=%{buildroot}%{_datadir}/gnome/help/%{name}
for f in $helpdir/C/figures/*.png; do
	b="$(basename $f)"
	for d in $helpdir/*; do
		if [ -d "$d" -a "$d" != "$helpdir/C" ]; then
			g="$d/figures/$b"
			if [ -f "$g" ]; then
				if cmp -s $f $g; then
					rm "$g"; ln -s "../../C/figures/$b" "$g"
				fi
			fi
		fi
	done
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8104 |21cr|R-igraph0-0.5.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname igraph0
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5.7
Release:          7
Summary:          Network analysis and visualization, old, deprecated package
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.5.7.tar.gz
Recommends:         R-stats R-stats4 R-rgl R-tcltk R-RSQLite R-digest R-graph R-Matrix
%ifarch i586
Requires:         libgmp10 libxml2
BuildRequires:    libgmp10 libxml2
%endif
%ifarch x86_64
Requires:         lib64gmp10 libxml2
BuildRequires:    lib64gmp10 libxml2
%endif
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-stats R-stats4 R-rgl R-tcltk R-RSQLite R-digest R-graph R-Matrix

%description
Network analysis package, old, deprecated version.
igraph0 is the old version of the igraph package, kept alive
temporarily, for compatibility reasons. In this package,
vertices and edges are indexed from zero, whereas in ’igraph’,
starting from version 0.6, they are indexed from one. Please do
not use this package for new projects.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/AUTHORS
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/html_library.license.terms
%doc %{rlibdir}/%{packname}/html_library.tcl
%doc %{rlibdir}/%{packname}/my_html_library.tcl
%doc %{rlibdir}/%{packname}/tkigraph_help
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/igraph.gif
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8105 |21cr|R-igraph-1.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  igraph
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.2.6
Release:          1
Summary:          Network analysis and visualization
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/igraph_%{version}.tar.gz
Requires:         R-Matrix R-methods
Recommends:    	  R-igraphdata R-jpeg R-png R-ape R-stats4 R-rgl R-tcltk R-graph
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-Matrix R-methods
BuildRequires:    R-igraphdata R-jpeg R-png R-ape R-stats4 R-rgl R-tcltk R-graph
BuildRequires:    libxml2-devel
BuildRequires:    gmp-devel R-magrittr R-pkgconfig
BuildRequires:    pkgconfig(lapack)

%description
Routines for simple graphs and network analysis. igraph can handle large
graphs very well and provides functions for generating random and regular
graphs, graph visualization, centrality indices and much more.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/AUTHORS
%doc %{rlibdir}/%{packname}/NEWS.md
%doc %{rlibdir}/%{packname}/README.md
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/*.gif
%{rlibdir}/%{packname}/*.terms
%{rlibdir}/%{packname}/*.tcl
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/tkigraph_help
%{rlibdir}/%{packname}/benchmarks

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8106 |21cr|R-igraphdata-0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  igraphdata
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2
Release:          5
Summary:          A collection of network data sets for the igraph package
Group:            Sciences/Mathematics
License:          CC BY-SA 2.0 + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/igraphdata_0.2.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-igraph0
Recommends:       R-igraph
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:   R-igraph0

%description
A small collection of various network data sets, to use with the igraph
package. They also work with the igraph0 package.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/getdata.R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8107 |21cr|R-ineq-0.2.13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ineq
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2.13
Release:          4
Summary:          Measuring Inequality, Concentration, and Poverty

Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/ineq_0.2-13.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-stats R-graphics R-grDevices 
Requires:         R-stats R-graphics R-grDevices 
BuildRequires:    R-devel Rmath-devel  R-stats R-graphics R-grDevices
BuildRequires:    R-stats R-graphics R-grDevices texlive

%description
Inequality, concentration, and poverty measures. Lorenz curves (empirical
and theoretical).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8108 |21cr|R-inline-0.3.13-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap
%global packname  inline
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.3.13
Release:          5
Summary:          Inline C, C++, Fortran function calls from R
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/inline_0.3.13.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods 
%if %{without bootstrap}
Requires:         R-Rcpp 
%endif
BuildRequires:    R-devel Rmath-devel  R-methods
%if %{without bootstrap}
BuildRequires:    R-Rcpp 
%endif

%description
Functionality to dynamically define R functions and S4 methods with
in-lined C, C++ or Fortran code supporting .C and .Call calling

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#if %%{without bootstrap}
#check
#{_bindir}/R CMD check %%{packname}
#endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
# %doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{_datadir}/R/library/inline/NEWS.Rd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8109 |21cr|R-intergraph-2.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  intergraph
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.0.0
Release:          5
Summary:          Coercion routines for network data objects in R
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2.0-0.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-utils R-graphics R-network R-igraph
Recommends:         R-testthat R-roxygen2
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-utils R-graphics R-network R-igraph
BuildRequires:   R-roxygen2

%description
R world provides several packages for working with network data.  This
package supplements that functionality by providing methods for converting
network data objects between classes defined in other packages. Currently
supported classes: network, igraph.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8110 |21cr|rinutils-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
#%%define _enable_debug_packages %{nil}

Summary:	This is a set of C headers containing macros and static functions
Name:		rinutils
Version:	0.4.0
Release:	1
License:	Expat
Group:		Development/C++
Url:		https://github.com/shlomif/rinutils
Source0:	https://github.com/shlomif/rinutils/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	Shlomif_Common.cmake
BuildRequires:	cmake

%description
This is a set of C headers containing macros and static functions 
that are expected to work on Unix-like systems and MS Windows that 
have been extracted from Shlomi Fish´s projects.

They are quite random and task specific and may not work for you.

Note: we only support the -std=gnu11 dialect as supported by GCC, 
clang and compatible compilers. Other compilers are not supported.

#---------------------------------------------------------------------------

%package devel
Summary:	This is a set of C headers containing macros and static functions
Group:		Development/C++

%description devel
This is a set of C headers containing macros and static functions 
that are expected to work on Unix-like systems and MS Windows that 
have been extracted from Shlomi Fish´s projects.

They are quite random and task specific and may not work for you.

Note: we only support the -std=gnu11 dialect as supported by GCC, 
clang and compatible compilers. Other compilers are not supported.


%files devel
%doc README.* NEWS.* LICENSE
%{_includedir}/%{name}
%{_libdir}/pkgconfig/librinutils.pc
%{_libdir}/cmake/Rinutils

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp %{SOURCE1} ./cmake
%build
%cmake -DWITH_TEST_SUITE=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8111 |21cr|rioutil-1.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	svn 72

%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	File transfer utility for newer RIO MP3 players
Name:		rioutil
Version:	1.5.4
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://rioutil.sourceforge.net/
Source0:	%{name}-code-%{svn}.tar.xz
BuildRequires:	pkgconfig(libusb-1.0)

%description
RioUtil is a utility designed for the use of interfacing with Rio's third,
fourth, and fifth generations of portable mp3 players:
Rio 600/800/900/S-Series/Riot/Nike psa[play/Fuse/Chiba/Cali/Nitrus.
It goes beyond the originally packaged software by providing downloading.

%files
%doc AUTHORS ChangeLog NEWS TODO README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/librioutil.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for developing programs based on %{name}.

%files -n %{devname}
%doc COPYING
%{_includedir}/rio.h
%{_libdir}/librioutil.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-code-%{svn}


%build
sed -i -e 's,$(prefix)/lib,%{_libdir},g' Makefile.am librioutil/Makefile.am
./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8112 |21cr|ripgrep-14.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ripgrep
Version:        14.1.0
Release:        1
Summary:        Recursively search directories for a regex pattern
Group:          Text tools
License:        Public Domain and MIT
URL:            https://github.com/BurntSushi/ripgrep/
Source0:        https://github.com/BurntSushi/ripgrep/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# make it with cargo vendor
Source1:        vendor.tar.gz
BuildRequires:  cargo

# Automatically generated patch to strip dependencies and normalize metadata
Patch0:          ripgrep-fix-metadata-auto.diff
# Manually created patch for downstream crate metadata changes
# * drop unsupported SIMD feature
Patch1:          ripgrep-fix-metadata.diff

%description
ripgrep is a line-oriented search tool that recursively searches your current
directory for a regex pattern. By default, ripgrep will respect your
.gitignore and automatically skip hidden files/directories and binary files.
ripgrep has first class support on Windows, macOS and Linux, with binary
downloads available for every release. ripgrep is similar to other popular
search tools like The Silver Searcher, ack and grep.

The command is "rg" (/usr/bin/rg).

%package bash-completion
Summary:       Bash completion for ripgrep
Requires:      ripgrep = %{EVRD}

%description bash-completion
This is the BASH completion file for ripgrep

%package fish-completion
Summary:       Fish completion for ripgrep
Requires:      ripgrep = %{EVRD}

%description fish-completion
This is the fish completion file for ripgrep

%package zsh-completion
Summary:       Zsh completion for ripgrep
Requires:      ripgrep = %{EVRD}

%description zsh-completion
This is the zsh completion file for ripgrep

%prep
%autosetup -p1
tar xvzf %{SOURCE1}

mkdir -p .cargo
cat > .cargo/config << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline

%install
cargo install --no-track --root=%{buildroot}%{_prefix} --path .

mkdir -p %{buildroot}/%{_mandir}/man1/
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions

./target/release/rg --generate man > %{buildroot}/%{_mandir}/man1/rg.1
./target/release/rg --generate complete-bash > %{buildroot}%{_datadir}/bash-completion/completions/rg.bash
./target/release/rg --generate complete-fish > %{buildroot}%{_datadir}/fish/vendor_completions.d/rg.fish
./target/release/rg --generate complete-zsh  > %{buildroot}%{_datadir}/zsh/site-functions/_rg

%files
%license COPYING UNLICENSE LICENSE-MIT
%doc README.md FAQ.md GUIDE.md
%{_bindir}/rg
%{_mandir}/man1/rg.1*

%files bash-completion
%{_datadir}/bash-completion/completions/rg.bash

%files fish-completion
%{_datadir}/fish/vendor_completions.d/rg.fish

%files zsh-completion
%{_datadir}/zsh/site-functions/_rg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8113 |21cr|ripmake-1.39-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ripmake
Version:	1.39
Release:	5
Summary:	A makefile generator for your ripping tasks
License:	GPL
Group:		Video
URL:		http://www.lallafa.de/bp/ripmake.html
Source0:	http://www.lallafa.de/bp/files/%{name}-%{version}.bz2
Source1:	http://www.lallafa.de/bp/ripmake.html.bz2
Source2:	http://www.lallafa.de/bp/ripmake-intro.html.bz2
Source3:	http://www.lallafa.de/bp/ripmake-inst.html.bz2
Source4:	http://www.lallafa.de/bp/ripmake-man.html.bz2
Source5:	http://www.lallafa.de/bp/ripmake-param.html.bz2
Requires:	pgmfindclip
BuildArch:	noarch

%description
The idea of ripmake is to write a tool which automatically selects the
best parameters for a given ripping task. It should inspect the source
(e.g. a DVD or an AVI file), extract all important information,
calculate the missing parameters and generate a parameter set for
transcode that performs a perfect output file. I known that this is a
hard task but that does not mean we shouldn't try it :)

First I thought of a tool that performs all the necessary steps itself
and calls transcode for the real work. But I soon found out that often a
bit of manual intervention is required to achieve the best results. So a
different approach came to my mind: Why not write a tool that generates
a Makefile for the rip and that embeds all automatic options as
parameters in it. You can then call different rules for different rip
tasks (e.g. render a sample, render first pass...) and you can overwrite
the parameters by redefining the make variables.

So here it is: ripmake - A makefile generator for your ripping tasks.

The first version was quite alpha and simply tried to prove the concept.
The current version is an almost complete rewrite of the first version
but really becomes quite useful.

This package is in restricted because it is related to DVD ripping.

%prep
%setup -T -c
bzcat %{SOURCE0} > %{name}
bzcat %{SOURCE1} > index.html
bzcat %{SOURCE2} > intro.html
bzcat %{SOURCE3} > inst.html
bzcat %{SOURCE4} > man.html
bzcat %{SOURCE5} > param.html

%build

%install
%__rm -rf %{buildroot}
%__install -d -m 755 %{buildroot}%{_bindir}
%__install -m 755 %{name} %{buildroot}%{_bindir}

%clean
%__rm -rf %{buildroot}

%files
%doc *.html
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8114 |21cr|ripmime-1.4.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname ripmime %{major}
%define devname %mklibname ripmime -d

Summary:	Extracts attachments out of mailpack format emails
Name:		ripmime
Version:	1.4.1.0
Release:	2
License:	BSD
Group:		Networking/Mail
Url:		http://www.pldaniels.com/ripmime/
Source0:	https://github.com/inflex/ripMIME/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		ripmime-shared.patch
BuildRequires:	libtool
BuildRequires:	ripole-devel

%description
ripMIME is a small program which has been developed as part of the
commercial Xamime development (http://www.xamime.com).

ripMIME has been written with one sole purpose in mind, to extract
the attached files out of a MIME encoded email package.

%files
%doc CHANGELOG CONTRIBUTORS INSTALL LICENSE README
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared %{name} library
Group:		System/Libraries

%description -n %{libname}
ripMIME is a small program which has been developed as part of the
commercial Xamime development (http://www.xamime.com).

ripMIME has been written with one sole purpose in mind, to extract
the attached files out of a MIME encoded email package.

This package provides the shared %{name} library.

%files -n %{libname}
%{_libdir}/libripmime.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the %{name} library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
ripMIME is a small program which has been developed as part of the
commercial Xamime development (http://www.xamime.com).

ripMIME has been written with one sole purpose in mind, to extract
the attached files out of a MIME encoded email package.

This package provides development files for the %{name} library.

%files -n %{devname}
%doc TODO
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/libripmime.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n ripMIME-%{version}

%build
%make \
	CFLAGS="%{optflags}" \
	libdir=%{_libdir} \
	LDFLAGS="%{ldflags}"

%install
%makeinstall_std \
	bindir=%{_bindir} \
	includedir=%{_includedir} \
	libdir=%{_libdir} \
	mandir=%{_mandir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8115 |21cr|R-ipred-0.9.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ipred
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.9.3
Release:          5
Summary:          Improved Predictors
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/ipred_0.9-3.tar.gz

Requires:         R-rpart R-MASS R-mlbench R-survival R-nnet R-class 
Requires:         R-mvtnorm 
Requires:         R-prodlim
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-rpart R-MASS R-mlbench R-survival R-nnet R-class
BuildRequires: R-TH.data
Requires: R-TH.data
BuildRequires:    R-mvtnorm 
BuildRequires:    R-prodlim

%description
Improved predictive models by indirect classification and bagging for
classification, regression and survival problems as well as resampling
based estimators of prediction error.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/ipred/COPYRIGHTS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8116 |21cr|R-IRanges-2.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  IRanges
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.26.0
Release:          2
Summary:          Infrastructure for manipulating intervals on sequences
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/IRanges_%{version}.tar.gz
Requires:         R-methods R-utils R-stats
Requires:	  R-BiocGenerics
Recommends:         R-RUnit R-XVector R-GenomicRanges R-BSgenome.Celegans.UCSC.ce2 R-S4Vectors
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-methods R-utils R-stats
BuildRequires:    R-S4Vectors
BuildRequires:    R-BiocGenerics
BuildRequires:    texlive-collection-langgreek
BuildRequires:    R-RUnit

%description
The package provides efficient low-level and highly reusable S4 classes
for storing ranges of integers, RLE vectors (Run-Length Encoding), and,
more generally, data that can be organized sequentially (formally defined
as Vector objects), as well as views on these Vector objects. Efficient
list-like classes are also provided for storing big collections of
instances of the basic classes. All classes in the package use consistent
naming and share the same rich and consistent "Vector API" as much as

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8117 |21cr|R-irlba-2.1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  irlba
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.1.2
Release:          3
Summary:          SVD, PCA and Symmetric Eigendecomposition for Large Dense and Sparse Matrices
Group:            Sciences/Mathematics
License:          GPL-3
URL:              https://cran.r-project.org/package=%{packname}
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-Matrix 
Requires:         R-stats R-methods 

#BuildRequires:    Rmath-devel R-Matrix
BuildRequires:    R-stats R-methods R-devel pkgconfig(lapack)

%description
Fast and memory efficient methods for truncated singular and eigenvalue
decompositions and principal component analysis of large sparse or dense

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8118 |21cr|ristretto-0.12.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver %(echo %{version} | cut -d. -f 1,2)

Summary:	A picture viewer for the Xfce desktop environment
Name:		ristretto
Version:	0.12.3
Release:	1
License:	GPLv2+
Group:		Graphics
URL:		http://goodies.xfce.org/projects/applications/%{name}
Source0:	http://archive.xfce.org/src/apps/ristretto/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	intltool
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(exo-2)
Requires:	desktop-file-utils
Requires:	xfconf

%description
Ristretto is a fast and lightweight picture-viewer for the Xfce desktop
environment.

%files -f %{name}.lang
%doc AUTHORS ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/*.appdata.xml
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

desktop-file-install \
	--add-only-show-in="XFCE" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8119 |21cr|R-ISwR-2.0_6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ISwR
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.0_6
Release:          5
Summary:          Introductory Statistics with R
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2.0-6.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-survival 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    R-survival 
BuildRequires:    pkgconfig(lapack)

%description
Data sets and scripts for text examples and exercises in P. Dalgaard
(2008), `Introductory Statistics with R', 2nd ed., Springer Verlag, ISBN

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/rawdata
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8120 |21cr|R-iterators-1.0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without       bootstrap
%global packname  iterators
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.0.7
Release:          6
Summary:          Iterator construct for R
Group:            Sciences/Mathematics
License:          Apache License (== 2.0)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/iterators_%{version}.tar.gz
Requires:         R-utils 
%if %{with bootstrap}
Requires:         R-RUnit 
%else
Requires:         R-foreach R-RUnit 
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-utils
%if %{with bootstrap}
BuildRequires:    R-RUnit 
%else
BuildRequires:    R-foreach R-RUnit 
%endif

%description
Support for iterators, which allow a programmer to traverse through all
the elements of a vector, list, or other collection of data.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8121 |21cr|R-itertools-0.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  itertools
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.1.3
Release:          5
Summary:          Iterator Tools
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/itertools_0.1-3.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-iterators 
Requires:         R-foreach 
BuildRequires:    R-devel Rmath-devel  R-iterators
BuildRequires:    R-foreach 

%description
Various tools for creating iterators, many patterned after functions in
the Python itertools module, and others patterned after functions in the
'snow' package.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8122 |21cr|R-its-1.1.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  its
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.1.8
Release:          6
Summary:          Irregular Time Series
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-stats R-Hmisc 
BuildRequires:    R-devel Rmath-devel  R-methods R-stats R-Hmisc R-gridExtra

%description
The its package contains an S4 class for handling irregular time series

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/changes
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/dev
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8123 |21cr|rivalcfg-4.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

Summary:	Small CLI for configure SteelSeries gaming mice
Name:		rivalcfg
Version:	4.7.0
Release:	1
License:	WTFPL
Group:		System/Configuration/Hardware
Url:		https://github.com/flozz/rivalcfg
Source0:	https://github.com/flozz/rivalcfg/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3dist(setuptools)

%description
Small CLI utility program that allows you to configure
SteelSeries gaming mice

%files
%doc README.rst
%license LICENSE
%{_bindir}/%{name}
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/%{name}-%{version}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8124 |21cr|rivendell-4.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname rivwebcapi %{major}
%define devname %mklibname rivwebcapi -d

%bcond_with docbook

Summary:	A full-featured radio automation system targeted for use in professional broadcast and media environments
Name:		rivendell
Version:	4.2.0
Release:	4
License:	GPL-2.0
Group:		Networking/Other
Url:		https://github.com/ElvishArtisan/rivendell
Source0:	https://github.com/ElvishArtisan/rivendell/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source10:	rivendell.sysusers.conf
Source11:	pypad.sysusers.conf
Source100:	%{name}.rpmlintrc
# use new imagemagick v.7.x
Patch0:		rivendell-imagemagick.patch
# add Rosa to distro
Patch1:		rivendell-rosa.patch
BuildRequires:	libcdda-devel
BuildRequires:	libmp4v2-devel
BuildRequires:	libfaad2-devel
BuildRequires:	id3lib-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(flac++)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libcoverart)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(soundtouch)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(twolame)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(Magick++)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	qt5-linguist-tools
%if %{with docbook}
BuildRequires:	fop
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl-ns
%endif
Requires:	mariadb-server
Requires:	curl
Requires:	rsyslog
Requires:	cdrkit-icedax
Requires:	%{_lib}qt5sql5-mysql

%description
Rivendell is a complete radio broadcast automation solution, with
facilities for the acquisition, management, scheduling and playout of
audio content.  Modules for the production and management of podcast
audio are also included.

%files
%{_sysconfdir}/auto.master.d
%{_sysconfdir}/pam.d/rdalsaconfig-root
%{_sysconfdir}/pam.d/rddbconfig-root
%{_sysconfdir}/pam.d/rivendell
%{_sysconfdir}/security/console.apps/rdalsaconfig-root
%{_sysconfdir}/security/console.apps/rddbconfig-root
%{_sysconfdir}/xdg/menus/applications-merged/%{name}*.menu
%{_sysconfdir}/auto.rd.audiostore
%{_sysconfdir}/fail2ban/filter.d/rivendell-webapi.conf
%config(noreplace) %{_sysconfdir}/rd-bin.conf
%{_sysconfdir}/logrotate.d/rivendell
%{_unitdir}/%{name}.service
%{_bindir}/rdadmin
%{_bindir}/rdairplay
%{_bindir}/rdpanel
%{_bindir}/rdcartslots
%{_bindir}/rdcatch
%{_bindir}/rdgen
%{_bindir}/rdlibrary
%{_bindir}/rdlogedit
%{_bindir}/rdlogmanager
%{_bindir}/rdcastmanager
%{_bindir}/rdlogin
%{_bindir}/rmlsend
%{_bindir}/rdsoftkeys
%{_bindir}/rdpopup
%{_bindir}/rdalsaconfig
%{_bindir}/rdalsaconfig-root
%{_bindir}/rdgpimon
%{_bindir}/rdclilogedit
%{_bindir}/rddbconfig
%{_bindir}/rddbconfig-root
%{_bindir}/rddelete
%{_bindir}/rdexport
%{_bindir}/rdimport
%{_bindir}/rdmetadata
%{_bindir}/rdmaint
%{_bindir}/rdcollect
%{_bindir}/rdconvert
%{_bindir}/rdcheckcuts
%{_bindir}/rd_audio_sync
%{_bindir}/rd_config
%{_bindir}/sage_endec_rwt.sh
%{_bindir}/rd_backup
%{_bindir}/rdmemcheck.sh
%{_bindir}/rdrender
%{_bindir}/rdsinglestart
%{_sbindir}/*
%{_libdir}/librd*.so
%{python3_sitearch}/rivendellaudio
%{_datadir}/X11/fvwm2/pixmaps/*.xpm
%{_datadir}/applications/%{name}*.desktop
%{_datadir}/desktop-directories/%{name}*.directory
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/pixmaps/%{name}/*.png
%{_datadir}/%{name}
%{_var}/www/rd-bin
%{_prefix}/lib/rivendell
%{_prefix}/lib/firewalld/services/rivendell.xml
%{_sysusersdir}/rivendell.conf
%{_sysusersdir}/pypad.conf

%post
%sysusers_create %{name}.conf
%sysusers_create pypad.conf
%systemd_post rivendell.service
if test ! -e /var/snd ; then
  mkdir -p /var/snd
  chown rivendell:rivendell /var/snd
  chmod 775 /var/snd
fi
if test ! -d /etc/rivendell.d ; then
  mkdir -p /etc/rivendell.d
  chmod 775 /etc/rivendell.d
fi
if test ! -e /etc/rd.conf ; then
  cp %{_datadir}/rivendell/rd.conf-sample /etc/rivendell.d/rd-default.conf
  ln -s /etc/rivendell.d/rd-default.conf /etc/rd.conf
fi
if test ! -h /etc/rd.conf ; then
  mv /etc/rd.conf /etc/rivendell.d/rd-default.conf
  ln -s /etc/rivendell.d/rd-default.conf /etc/rd.conf
fi
if test ! -e /etc/asound.conf ; then
  cp %{_datadir}/rivendell/asound.conf-sample /etc/asound.conf
fi
if test ! -e /etc/profile.d/rivendell-env.sh ; then
  cp /usr/share/rivendell/rivendell-env.sh /etc/profile.d/
fi
%{_sbindir}/rddbmgr --modify
/bin/systemctl restart rivendell
/bin/systemctl enable rivendell
if test ! -e %{_var}/www/rd-bin/logos ; then
    mkdir -p %{_var}/www/rd-bin/logos
fi
if test ! -f %{_var}/www/rd-bin/logos/webget_logo.png ; then
    cp %{_datadir}/rivendell/logos/webget_logo.png %{_var}/www/rd-bin/logos/webget_logo.png
fi
mkdir -p /var/log/rivendell
if test ! -e /etc/rsyslog.d/rivendell.conf ; then
    cp %{_datadir}/rivendell/syslog.conf-sample /etc/rsyslog.d/rivendell.conf
fi
exit 0


%preun
%systemd_preun rivendell.service

%postun
/bin/systemctl daemon-reload
/bin/systemctl reload firewalld

#------------------------------------------------------------------

%package importers
Summary:	Library importers for the Rivendell Broadcast Automation System
Requires:	rivendell = %{EVRD}
Requires:	madplay

%description importers
This package contains various importer scripts, which can be used to
import audio from existing legacy automation systems into Rivendell.
Currently, scripts exist for the AirForce Wings, Prophet NexGen and Sierra
Automated Systems SASAuto systems, as well as from another Rivendell system
(useful for 'merging' multiple databases).  Additionally, scripts for
initializing switcher matrices for the Christian Radio Consortium
(CRC) Unity4000 network and copying RDCatch event lists between hosts
are included.

%files importers
%{_bindir}/wings_filter
%{_bindir}/rivendell_filter
%{_bindir}/nexgen_filter
%{_bindir}/crc-unity4k.sh
%{_bindir}/rdcatch_copy
%{_bindir}/panel_copy

#------------------------------------------------------------------

%package select
Summary:	The RDSelect system selector tool for Rivendell
Requires:	rivendell = %{EVRD}
Requires:	autofs

%description select
This package contains the RDMonitor/RDSelect tool for Rivendell, which can
be used to select which amoung multiple Rivendell instances a host should be
associated with.

%files select
%{_bindir}/rdselect
%attr(4755,root,root) %{_bindir}/rdselect_helper
%{_bindir}/rdmonitor
%{_sysconfdir}/X11/xinit/xinitrc.d/start-rdmonitor.sh

%post select
touch /etc/auto.rd.audiostore
systemctl restart autofs

%postun select
systemctl restart autofs

#------------------------------------------------------------------

%package webget
Summary: The WebGet audio fetcher service for Rivendell
Requires: rivendell = %{EVRD}

%description webget
This package contains the WebGet audio fetching tool for Rivendell.

%files webget
%attr(6755,root,root) %{_var}/www/rd-bin/webget.cgi
%{_var}/www/rd-bin/webget.js

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} rivwebcapi shared library.

%files -n %{libname}
%{_libdir}/librivwebcapi.so.%{major}*
#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	rivendell = %{EVRD}
Provides:	rivwebcapi-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files and example code for development using
Rivendell's Web C API, which can be used to integrate with Rivendell Web
API Interface.

%files -n %{devname}
%{_includedir}/rivwebcapi
%{_libdir}/pkgconfig/rivwebcapi.pc
%{_libdir}/librivwebcapi.so

#------------------------------------------------------------------

%prep
%autosetup -p1

# fix systemd service install
sed -i 's|/lib/systemd/system|%{_unitdir}|' systemd/Makefile.am

%build
%if %{with docbook}
export DOCBOOK_STYLESHEETS=/usr/share/sgml/docbook/xsl-ns-stylesheets
%endif

autoreconf -vfi
%configure \
%if %{without docbook}
	--disable-docbook \
%endif
	--libexecdir=%{_var}/www/rd-bin

%make

%install
%makeinstall_std

install -D -m0644 conf/rd.conf-sample %{buildroot}%{_datadir}/rivendell/rd.conf-sample
install -D -m0644 conf/asound.conf-sample %{buildroot}%{_datadir}/rivendell/asound.conf-sample
install -D -m0644 conf/syslog.conf-sample %{buildroot}%{_datadir}/rivendell/syslog.conf-sample
install -D -m0644 conf/rivendell-env.sh %{buildroot}%{_datadir}/rivendell/rivendell-env.sh
install -D -m0644 icons/webget_logo.png %{buildroot}%{_datadir}/rivendell/logos/webget_logo.png
install -D -m0644 conf/logrotate-sample %{buildroot}%{_sysconfdir}/logrotate.d/rivendell
install -D -m0644 conf/rivendell-webapi.conf %{buildroot}%{_sysconfdir}/fail2ban/filter.d/rivendell-webapi.conf

# install sysusers config
install -D -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/%{name}.conf
install -D -m0644 %{SOURCE11} %{buildroot}%{_sysusersdir}/pypad.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8125 |21cr|R-jpeg-0.1.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  jpeg
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.1.8.1
Release:          1
Summary:          Read and write JPEG images
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              https://CRAN.R-project.org/package=%{packname}
Source0:          https://cran.r-project.org/src/contrib/%{packname}_0.1-8.1.tar.gz
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:    jpeg-devel


%description
This package provides an easy and simple way to read, write and display
bitmap images stored in the JPEG format. It can read and write both files
and in-memory raw vectors.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/img
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8126 |21cr|R-jsonlite-1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  jsonlite
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1
Release:          4
Summary:          A Robust, High Performance JSON Parser and Generator for R
Group:            Sciences/Mathematics
License:          MIT (Jeroen Ooms, 2016)
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods 
Recommends:       R-testthat R-curl R-rmarkdown R-httr
Requires:         R-plyr R-knitr R-R.rsp 
BuildRequires:    R-devel Rmath-devel R-methods

BuildRequires:    R-plyr R-knitr R-R.rsp 

%description
A fast JSON parser and generator optimized for statistical data and the
web. Started out as a fork of 'RJSONIO', but has been completely rewritten
in recent versions. The package offers flexible, robust, high performance
tools for working with JSON in R and is particularly powerful for building
pipelines and interacting with a web API. The implementation is based on
the mapping described in the vignette (Ooms, 2014). In addition to
converting JSON data from/to R objects, 'jsonlite' contains functions to
stream, validate, and prettify JSON data. The unit tests included with the
package verify that all edge cases are encoded and decoded consistently
for use with dynamic data in systems and applications.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8127 |21cr|R-KEGG.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  KEGG.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          A set of annotation maps for KEGG
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/KEGG.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-AnnotationDbi 
Requires:         R-methods R-AnnotationDbi 
BuildRequires:    R-devel Rmath-devel  R-methods R-AnnotationDbi
BuildRequires:    R-methods R-AnnotationDbi R-IRanges R-S4Vectors

%description
A set of annotation maps for KEGG assembled using data from KEGG

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8128 |21cr|R-kernlab-0.9.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname kernlab
%global rlibdir %{_libdir}/R/library

Summary:	Kernel-based Machine Learning Lab
Name:		R-%{packname}
Version:	0.9.25
Release:	2
License:	GPL-2
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/kernlab_0.9-25.tar.gz
BuildRequires:	R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:	blas-devel
BuildRequires:	lapack-devel
Requires:	R-methods

%description
Kernel-based machine learning methods for classification, regression,
clustering, novelty detection, quantile regression and dimensionality
reduction. Among other methods kernlab includes Support Vector Machines,
Spectral Clustering, Kernel PCA and a QP solver.

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/COPYRIGHTS

#-----------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8129 |21cr|rkhunter-1.4.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _sbindir /usr/sbin

Summary:	Rootkit scans for rootkits, backdoors and local exploits
Name:		rkhunter
Version:	1.4.6
Release:	3
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://rkhunter.sourceforge.net/
Source0:	http://downloads.sourceforge.net/rkhunter/%{name}-%{version}.tar.gz
Source1:	http://downloads.sourceforge.net/rkhunter/%{name}-%{version}.tar.gz.asc
Source2:	rkhunter.cron
Source3:	rkhunter.logrotate
Patch0:		rkhunter.conf.patch
Patch2:		rkhunter.systemd_journal.patch
# https://sourceforge.net/p/rkhunter/bugs/176/
Patch3:		rkhunter-GNUgrep3.8.patch
BuildArch:	noarch
Requires:	binutils
Requires:	e2fsprogs
Requires:	webfetch
Recommends:	unhide

%description
Rootkit scanner is scanning tool to ensure you you're clean of known nasty 
tools. This tool scans for rootkits, backdoors and local exploits by running 
tests like:
 - MD5/SHA1 hash compare
 - Look for default files used by rootkits
 - Wrong file permissions for binaries
 - Look for suspected strings in LKM and KLD modules
 - Look for hidden files
 - Optional scan within plaintext and binary files

%files
%doc files/CHANGELOG files/README
%config(noreplace) %{_sysconfdir}/rkhunter.conf
%{_sysconfdir}/cron.daily/rkhunter
%{_sysconfdir}/logrotate.d/rkhunter
%{_sbindir}/*
%{_var}/lib/rkhunter
%{_mandir}/man8/*

#-------------------------------------------------------------------

%prep
%autosetup -p1
chmod -R a+r .

%build

%install
mkdir -p %{buildroot}%{_sysconfdir} %{buildroot}%{_sbindir} \
	%{buildroot}%{_var}/lib/rkhunter/{db/i18n,scripts,tmp} \
	%{buildroot}%{_mandir}/man8
install files/rkhunter %{buildroot}%{_sbindir}/
install -m 644 files/%{name}.conf %{buildroot}%{_sysconfdir}

cat<<EOF>>%{buildroot}%{_sysconfdir}/rkhunter.conf
INSTALLDIR=%{_var}
SCRIPTDIR=%{_var}/lib/rkhunter/scripts
PKGMGR=RPM
# to avoid some false positives...
ALLOWDEVFILE=/dev/shm/pulse-shm-*
ALLOWDEVFILE=/dev/shm/mono.*
ALLOWHIDDENDIR="/etc/.java"
ALLOWHIDDENDIR=/dev/.udev
ALLOWHIDDENDIR=/dev/.udevdb
ALLOWHIDDENDIR=/dev/.udev.tdb
ALLOWHIDDENDIR=/dev/.static
ALLOWHIDDENDIR=/dev/.initramfs
ALLOWHIDDENDIR=/dev/.SRC-unix
ALLOWHIDDENDIR=/dev/.mdadm
ALLOWHIDDENDIR=/dev/.systemd
ALLOWHIDDENDIR=/dev/.mount
ALLOWHIDDENFILE=/usr/share/man/man1/..1%{_extension}
ALLOWHIDDENFILE=/usr/share/man/man1/.nvidia-current-settings.1%{_extension}
ALLOWHIDDENFILE=/usr/share/man/man1/.nvidia-current-smi.1%{_extension}
ALLOWHIDDENFILE=/usr/share/man/man1/.nvidia-current-xconfig.1%{_extension}
ALLOWHIDDENFILE=/usr/share/man/man1/.nvidia96xx-settings.1%{_extension}
ALLOWHIDDENFILE=/usr/share/man/man1/.nvidia96xx-xconfig.1%{_extension}
ALLOWHIDDENFILE=/usr/share/man/man5/.k5login.5%{_extension}
ALLOWHIDDENFILE=/usr/share/man/man5/.k5identity.5%{_extension}
SCRIPTWHITELIST=/usr/bin/GET
SCRIPTWHITELIST=/usr/bin/groups
SCRIPTWHITELIST=/usr/bin/ldd
SCRIPTWHITELIST=/usr/bin/whatis
ALLOWDEVFILE=/dev/shm/pulse-shm-*
ALLOWDEVFILE=/dev/md/md-device-map
# tomboy creates this one
ALLOWDEVFILE="/dev/shm/mono.*"
# created by libv4l
ALLOWDEVFILE="/dev/shm/libv4l-*"
# created by spice video
ALLOWDEVFILE="/dev/shm/spice.*"
# Invalid TMPDIR configuration option: No filename given, but it must exist.
TMPDIR=/var/lib/rkhunter/tmp
# Invalid DBDIR configuration option: No filename given, but it must exist.
DBDIR=/var/lib/rkhunter/db
EOF

install -m 644 files/*.dat %{buildroot}%{_var}/lib/rkhunter/db
install -m 644 files/i18n/* %{buildroot}%{_var}/lib/rkhunter/db/i18n
install -m 754 files/*.{pl,sh} %{buildroot}%{_var}/lib/rkhunter/scripts
install -m 644 files/rkhunter.8 %{buildroot}%{_mandir}/man8

mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
install -m 0755 %{SOURCE2} \
	%{buildroot}%{_sysconfdir}/cron.daily/rkhunter

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 %{SOURCE3} \
	%{buildroot}%{_sysconfdir}/logrotate.d/rkhunter

%post
if [ $1 = 1 ]; then
	# create rkhunter.dat
	%{_sbindir}/rkhunter --propupd
	# gather user / group info
	echo "\r"|%{_sbindir}/rkhunter --enable group_changes,passwd_changes
	# Suppress warning on fresh install because of missing copies of passwd 
	# and groups file above
	/usr/bin/true
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8130 |21cr|R-kinship2-1.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  kinship2
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.6.0
Release:          4
Summary:          Pedigree functions
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/kinship2_%{version}.tar.gz
Requires:         R-Matrix R-quadprog 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-Matrix R-quadprog

%description
Routines to handle family data with a pedigree object. The initial purpose
was to create correlation structures that describe family relationships
such as kinship and identity-by-descent, which can be used to model family
data in mixed effects models, such as in the coxme function.  Also
includes a tool for pedigree drawing which is focused on producing compact
layouts without intervention.  Recent additions include utilities to trim
the pedigree object with various criteria.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/COPYRIGHT
%{rlibdir}/%{packname}/GPL2.txt
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8131 |21cr|R-klaR-0.6.12-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  klaR
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.6.12
Release:          4
Summary:          Classification and visualization
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.6-12.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-MASS 
Requires:         R-combinat 
Requires:         R-scatterplot3d R-som R-mlbench R-rpart R-e1071 
BuildRequires:    R-devel Rmath-devel R-MASS
BuildRequires:    R-combinat 
BuildRequires:   R-scatterplot3d R-som R-mlbench R-rpart R-e1071 
%description
Miscellaneous functions for classification and visualization developed at
the Fakultaet Statistik, Technische Universitaet Dortmund

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/CITATION

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8132 |21cr|R-knitr-1.14-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  knitr
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.14
Release:          3
Summary:          A general-purpose package for dynamic report generation in R
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-evaluate R-digest R-formatR R-highr R-markdown R-stringr R-tools R-methods R-yaml
Requires:         R-testit R-rgl R-codetools R-XML R-RCurl R-yaml
Recommends:	R-htmlwidgets R-webshot R-tikzDevice R-png R-jpeg R-XML R-RCurl R-DBI R-tibble R-rmarkdown
BuildRequires:    R-devel Rmath-devel texlive-latex 
BuildRequires:    R-evaluate R-digest R-formatR R-highr R-markdown R-stringr R-tools R-methods R-yaml
BuildRequires:   R-testit R-rgl R-codetools R-XML R-RCurl R-yaml
#BuildRequires:	R-htmlwidgets R-webshot R-tikzDevice R-png R-jpeg R-XML R-RCurl R-DBI R-tibble

%description
This package provides a general-purpose tool for dynamic report generation
in R, which can be used to deal with any type of (plain text) files,
including Sweave, HTML, Markdown, reStructuredText and AsciiDoc. The
patterns of code chunks and inline R expressions can be customized. R code
is evaluated as if it were copied and pasted in an R terminal thanks to
the evaluate package (e.g. we do not need to explicitly print() plots from
ggplot2 or lattice). R code can be reformatted by the formatR package so
that long lines are automatically wrapped, with indent and spaces being
added, and comments being preserved. A simple caching mechanism is
provided to cache results from computations for the first time and the
computations will be skipped the next time. Almost all common graphics
devices, including those in base R and add-on packages like Cairo,
cairoDevice and tikzDevice, are built-in with this package and it is
straightforward to switch between devices without writing any special
functions. The width and height as well as alignment of plots in the
output document can be specified in chunk options (the size of plots for
graphics devices is still supported as usual). Multiple plots can be
recorded in a single code chunk, and it is also allowed to rearrange plots
to the end of a chunk or just keep the last plot. Warnings, messages and
errors are written in the output document by default (can be turned off).
Currently LaTeX, HTML, Markdown and reST are supported, and other output
formats can be supported by hook functions. The large collection of hooks
in this package makes it possible for the user to control almost
everything in the R code input and output. Hooks can be used either to
format the output or to run a specified R code fragment before or after a
code chunk. The language in code chunks is not restricted to R only (there
is simple support to Python and Awk, etc). Many features are borrowed from
or inspired by Sweave, cacheSweave, pgfSweave, brew and decumar.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8133 |21cr|R-ks-1.9.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ks
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.9.3
Release:          4
Summary:          Kernel smoothing
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-KernSmooth R-misc3d R-mvtnorm R-rgl 
Requires:         R-multicool 
Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel R-KernSmooth R-misc3d R-mvtnorm R-rgl
BuildRequires:    R-multicool 
BuildRequires:   R-MASS 
%description
Kernel smoothers for univariate and multivariate data

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8134 |21cr|rkward-0.6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude libR\\.so|libRblas\\.so|libRlapack\\.so
%else
%define _requires_exceptions libR.so\\|libRblas.so\\|libRlapack.so
%endif

Summary:	A KDE gui to R language
Name:		rkward
Version:	0.6.5
Release:	1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://rkward.sourceforge.net
Source0:	http://download.kde.org/stable/rkward/%{version}/src/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libR)
BuildRequires:	kdelibs4-devel
BuildRequires:	gcc-gfortran
BuildRequires:	desktop-file-utils
BuildRequires:	cmake
Requires:	R-base
Requires:	php-cli
Recommends:	katepart
Obsoletes:	kde4-%{name} < 0.5.1
Provides:	kde4-%{name} = %{version}

%description
RKWard is meant to become an easy to use, transparent frontend to the
R-language, a very powerful, yet hard-to-get-into scripting-language with
a strong focus on statistic functions. It will not only provide a convenient
user-interface, however, but also take care of seamless integration with an
office-suite. Practical statistics is not just about calculating, after all,
but also about documenting and ultimately publishing the results.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_datadir}/mime/packages/*xml
%{_datadir}/kde4/services/*protocol
%{_kde_bindir}/%{name}*
%{_kde_datadir}/applications/kde4/*.desktop
%{_kde_appsdir}/rkward
%{_kde_appsdir}/katepart/*
%{_kde_docdir}/*/*/*
%{_kde_iconsdir}/*
%{_kde_libdir}/kde4/libexec/%{name}.*
%{_kde_mandir}/man1/%{name}.1*
%{_libdir}/R/*

#------------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

#(tpg) provide by R-base
rm -rf %{buildroot}%{_libdir}/R/lib/R.css

# provided by katepart
rm -f %{buildroot}%{_kde_appsdir}/katepart/syntax/r.xml

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8135 |21cr|R-labdsv-1.6.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  labdsv
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.6.1
Release:          5
Summary:          Ordination and Multivariate Analysis for Ecology
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/labdsv_1.6-1.tar.gz
Requires:         R-MASS 
Requires:         R-rgl 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    R-MASS
BuildRequires:    R-rgl 
BuildRequires:    pkgconfig(lapack)
%rename R-cran-labdsv

%description
A variety of ordination and vegetation analyses useful in analysis of
datasets in community ecology.  Includes many of the common ordination
methods, with graphical routines to facilitate their interpretation, as
well as several novel analyses.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/ChangeLog
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8136 |21cr|R-labeling-0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname labeling
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.3
Release:          5
Summary:          Axis Labeling
Group:            Sciences/Mathematics
License:          MIT
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
BuildRequires:    R-devel Rmath-devel texlive

%description
Provides a range of axis labeling algorithms

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8137 |21cr|R-latticeExtra-0.6.26-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  latticeExtra
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.6.26
Release:          5
Summary:          Extra Graphical Utilities Based on Lattice
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/latticeExtra_0.6-26.tar.gz
BuildArch:        noarch
Requires:         R-core R-RColorBrewer R-lattice R-lattice R-grid
%if %{without bootstrap}
Requires:         R-maps R-mapproj R-deldir R-tripack R-quantreg R-zoo
Requires:         R-MASS R-mgcv
%endif
BuildRequires:    R-devel Rmath-devel  R-RColorBrewer
BuildRequires:    R-lattice R-lattice R-grid
%if %{without bootstrap}
BuildRequires:    R-maps R-mapproj R-deldir R-tripack R-quantreg R-zoo
BuildRequires:    R-MASS R-mgcv
%endif

%description
Extra graphical utilities based on lattice

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8138 |21cr|R-lava-1.4.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  lava
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.4.4
Release:          4
Summary:          Latent Variable Models
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-numDeriv R-methods R-graphics R-grDevices R-utils R-stats 
#Requires:         R-mets R-graph R-optimx R-data.table R-Rgraphviz R-igraph R-Matrix R-KernSmooth R-lme4 R-geepack R-gof R-foreach R-quantreg R-rgl R-fields R-survival R-testthat R-ascii R-zoo 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-numDeriv R-methods R-graphics R-grDevices R-utils R-stats 
#BuildRequires:   R-mets R-graph R-optimx R-data.table R-Rgraphviz R-igraph R-Matrix R-KernSmooth R-lme4 R-geepack R-gof R-foreach R-quantreg R-rgl R-fields R-survival R-testthat R-ascii R-zoo 

%description
Estimation and simulation of latent variable models.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8139 |21cr|R-lavaan-0.5.18-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  lavaan
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.5.18
Release:          4
Summary:          Latent Variable Analysis
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/lavaan_0.5-18.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods 
Requires:         R-stats4
Requires:         R-stats
Requires:         R-graphics 
%if %{with bootstrap}
Requires:         R-quadprog
Requires:         R-boot 
%else
Requires:         R-psych
Requires:         R-qgraph
Requires:         R-quadprog
Requires:         R-boot 
%endif
BuildRequires:    R-devel
#BuildRequires: R-lavaan
BuildRequires: R-pbivnorm
Requires: R-pbivnorm
BuildRequires: R-mnormt
Requires: R-mnormt
BuildRequires:    Rmath-devel
BuildRequires:    R-methods
BuildRequires:    R-stats4
BuildRequires:    R-stats
BuildRequires:    R-graphics 
%if %{with bootstrap}
BuildRequires:    R-quadprog R-boot 
%else
BuildRequires:    R-psych
BuildRequires:    R-qgraph
BuildRequires:    R-quadprog
BuildRequires:    R-boot 
%endif
BuildRequires:    pkgconfig(lapack)

%description
Fit a variety of latent variable models, including confirmatory factor
analysis, structural equation modeling and latent growth curve models.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/lavaan/CITATION

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8140 |21cr|R-lazyeval-0.2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  lazyeval
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.2.0
Release:          8
Summary:          Lazy (Non-Standard) Evaluation
Group:            Sciences/Mathematics
License:          GPL-3
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Recommends:         R-knitr R-rmarkdown R-testthat R-covr 
BuildRequires:    R-devel Rmath-devel 
#BuildRequires:    R-knitr R-rmarkdown R-testthat R-covr 

%description
An alternative approach to non-standard evaluation using formulas.
Provides a full implementation of LISP style 'quasiquotation', making it
easier to generate code with other code.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.md
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8141 |21cr|R-leaps-2.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  leaps
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.9
Release:          6
Summary:          regression subset selection
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-biglm 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-biglm 
%rename R-cran-leaps

%description
Regression subset selection including exhaustive search

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8142 |21cr|R-LearnBayes-2.15-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname LearnBayes
%global rlibdir %{_libdir}/R/library

Name: R-%{packname}
Version: 2.15
Release: 6
Summary: Functions for Learning Bayesian Inference
Group: Sciences/Mathematics
License: GPLv2+
URL: http://cran.r-project.org/web/packages/%{packname}/index.html
Source0: http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch: noarch
Requires: R-core
BuildRequires: R-devel 

%description
LearnBayes contains a collection of functions helpful in
learning the basic tenets of Bayesian statistical inference.
It contains functions for summarizing basic one and two
parameter posterior distributions and predictive distributions.
It contains MCMC algorithms for summarizing posterior
distributions defined by the user. It also contains functions
for regression models, hierarchical models, Bayesian tests, and 
illustrations of Gibbs sampling.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/d*
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8143 |21cr|R-limma-3.24.14-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  limma
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.24.14
Release:          4
Summary:          Linear Models for Microarray Data
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/bioc/html/limma.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/limma_3.24.14.tar.gz
Requires:         R-methods R-affy R-MASS R-org.Hs.eg.db R-splines R-statmod
%if %{without bootstrap}
Requires:         R-vsn
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-methods R-affy R-MASS R-org.Hs.eg.db R-splines R-statmod
%if %{without bootstrap}
BuildRequires:    R-vsn
%endif

%description
Data analysis, linear models and differential expression for microarray

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Disable check; either some example in this package is incorect or we should rebuild some 
# dependent packages
#if %%{without bootstrap}
#check
#{_bindir}/R CMD check %%{packname}
#endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8144 |21cr|R-lme4-1.1.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  lme4
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.12
Release:          3
Summary:          Linear mixed-effects models using S4 classes

Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/lme4_1.1-12.tar.gz
Requires:         R-methods R-Matrix R-lattice R-graphics R-nlme R-stats4
Requires:         R-stats
%if %{without bootstrap}
Requires:         R-mlmRev R-MEMSS R-coda R-MASS R-sfsmisc R-MatrixModels
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:    R-RcppEigen
Requires:         R-RcppEigen
BuildRequires:    R-minqa
Requires:         R-minqa
BuildRequires:    R-Rcpp
Requires:         R-Rcpp
BuildRequires:    R-PKPDmodels
Requires:         R-PKPDmodels
BuildRequires:    R-nloptr
Requires:         R-nloptr
BuildRequires:    R-Matrix R-lattice R-graphics R-nlme R-stats4 R-stats
%if %{without bootstrap}
BuildRequires:    R-mlmRev R-MEMSS R-coda R-MASS R-sfsmisc R-MatrixModels
%endif
BuildRequires:    lapack-devel
Recommends:       R-HSAUR2 R-gamm4 R-optimx

%description
Fit linear and generalized linear mixed-effects models.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Fails due to texlive issues
#if %%{without bootstrap}
#check
#{_bindir}/R CMD check %%{packname}
#endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8145 |21cr|R-locfit-1.5_9.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  locfit
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.5_9.1
Release:          8
Summary:          Local Regression, Likelihood and Density Estimation
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.5-9.1.tar.gz
Requires:         R-akima R-lattice 
Requires:         R-gam 
BuildRequires:    R-devel Rmath-devel  R-akima R-lattice
BuildRequires:    R-gam 

%description
Local regression, likelihood and density estimation.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8146 |21cr|R-logcondens-2.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  logcondens
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.1.2
Release:          4
Summary:          Estimate a Log-Concave Probability Density from iid Observations
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-ks 

BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-ks 

%description
Given independent and identically distributed observations X(1), ...,
X(n), this package allows to compute the maximum likelihood estimator
(MLE) of a density as well as a smoothed version of it under the
assumption that the density is log-concave, see Rufibach (2007) and
Duembgen and Rufibach (2009). The main function of the package is
'logConDens' that allows computation of the log-concave MLE and its
smoothed version. In addition, we provide functions to compute (1) the
value of the density and distribution function estimates (MLE and
smoothed) at a given point (2) the characterizing functions of the
estimator, (3) to sample from the estimated distribution, (5) to compute a
two-sample permutation test based on log-concave densities, (6) the ROC
curve based on log-concave estimates within cases and controls, including
confidence intervals for given values of false positive fractions (7)
computation of a confidence interval for the value of the true density at
a fixed point. Finally, three datasets that have been used to illustrate
log-concave density estimation are made available.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8147 |21cr|R-logspline-2.1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  logspline
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.1.5
Release:          5
Summary:          Logspline density estimation routines
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/logspline_2.1.5.tar.gz
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Routines for the logspline density estimation. oldlogspline uses the same
algorithm as the logspline 1.0.x package - the Kooperberg and Stone (1992)
algorithm (with an improved interface). The recomended routine logspline
uses an algorithm from Stone et al (1997).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8148 |21cr|rlpr-2.06-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Remote printing utilities
Name:		rlpr
Version:	2.06
Release:	9
License:	GPL
Group:		Networking/Remote access
# Site of original author is dead, and project, too. As several other
# orphaned printing packages this is re-hosted on linuxprinting.org
Source0:	http://www.linuxprinting.org/download/printing/%{name}-%{version}.tar.bz2
URL:		http://www.linuxprinting.org/download/printing/README.txt

%description
Rlpr is a package that makes it possible (or at the very least,
easier), to print files on remote sites to your local printer. The
rlpr package includes BSD-compatible replacements for `lpr', `lpq',
and `lprm', whose functionality is a superset of their BSD
counterparts. In other words, with the rlpr package, you can do
everything you can do with the BSD printing commands, and more. The
programs contained within the rlpr package are all GPL'd, and are more
lightweight, cleaner and more secure than their BSD counterparts.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

%files
%defattr(644,root,root,755)
%doc AUTHORS NEWS README THANKS TODO
%attr(4755,root,root) %{_bindir}/*
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8149 |21cr|R-lpSolve-5.6.15-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname  lpSolve

Summary:	Interface to Lp_solve to solve linear/integer programs
Name:		R-lpSolve
Version:	5.6.15
Release:	3
License:	LGPL-2
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{oname}/index.html
Source0:	http://cran.r-project.org/src/contrib/lpSolve_%{version}.tar.gz
BuildRequires:	blas-devel
BuildRequires:	lapack-devel
BuildRequires:	texlive-hyphen-chinese
BuildRequires:	texlive-hyphen-mongolian
BuildRequires:	texlive-scheme-full
BuildRequires:	R-devel
BuildRequires:	Rmath-devel

%description
Lp_solve is freely available (under LGPL 2) software for solving linear,
integer and mixed integer programs. In this implementation we supply a
"wrapper" function in C and some R functions that solve general
linear/integer problems, assignment problems, and transportation problems.

%files
%doc %{_libdir}/R/library/%{oname}/html
%{_libdir}/R/library/%{oname}/DESCRIPTION
%{_libdir}/R/library/%{oname}/help
%{_libdir}/R/library/%{oname}/INDEX
%{_libdir}/R/library/%{oname}/libs
%{_libdir}/R/library/%{oname}/Meta
%{_libdir}/R/library/%{oname}/NAMESPACE
%{_libdir}/R/library/%{oname}/R

#------------------------------------------------------------------

%prep
%setup -qcn %{oname}

%build

%install
mkdir -p %{buildroot}%{_libdir}/R/library
%{_bindir}/R CMD INSTALL -l %{buildroot}%{_libdir}/R/library %{oname}
test -d %{oname}/src && (cd %{oname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{_libdir}/R/library/R.css

%check
%{_bindir}/R CMD check %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8150 |21cr|R-lqa-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  lqa
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.3
Release:          5
Summary:          Penalized Likelihood Inference for GLMs
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-3.tar.gz

BuildRequires:    R-devel Rmath-devel texlive-latex 


%description
This package provides some basic infrastructure and tools to fit
Generalized Linear Models (GLMs) via penalized likelihood inference.
Estimating procedures already implemented are the LQA algorithm (that is
where its name come from), P-IRLS, RidgeBoost, GBlockBoost and

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8151 |21cr|R-lungExpression-0.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  lungExpression
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2.0
Release:          4
Summary:          ExpressionSets for Parmigiani et al., 2004 Clinical Cancer Research paper
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://bioconductor.org/packages/release/data/experiment/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/experiment/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-Biobase 


BuildRequires:    R-devel Rmath-devel R-Biobase


%description
Data from three large lung cancer studies provided as ExpressionSets

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8152 |21cr|rlwrap-0.41-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Readline wrapper
Name:		rlwrap
Version:	0.41
Release:	3
License:	GPLv2+
Group:		Text tools
Url:		http://utopia.knoware.nl/~hlub/rlwrap/
Source0:	http://utopia.knoware.nl/~hlub/rlwrap/rlwrap-%{version}.tar.gz
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)

%description
rlwrap is a 'readline wrapper' that uses the GNU readline library to
allow the editing of keyboard input for any other command. Input
history is remembered across invocations, separately for each command;
history completion and search work as in bash and completion word
lists can be specified on the command line.

%files
%doc AUTHORS BUGS COPYING ChangeLog INSTALL NEWS README TODO PLEA
%attr(0755,root,root) %{_bindir}/rlwrap
%{_mandir}/man1/rlwrap.1*
%{_mandir}/man3/RlwrapFilter.3pm*
%dir %{_datadir}/rlwrap
%{_datadir}/rlwrap/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8153 |21cr|R-magrittr-1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  magrittr
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.5
Release:          5
Summary:          A Forward-Pipe Operator for R
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              None
Source0:          http://cran.r-project.org/src/contrib/magrittr_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Recommends:         R-testthat R-knitr
BuildRequires:    R-devel Rmath-devel

#BuildRequires:   R-testthat R-knitr

%description
Provides a mechanism for chaining commands with a new forward-pipe
operator, %>%. This operator will forward a value, or the result of an
expression, into the next function call/expression. There is flexible
support for the type of right-hand side expressions. For more information,
see package vignette. To quote Rene Magritte, "Ceci n'est pas un pipe."

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8154 |21cr|R-mapdata-2.2.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mapdata
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.2.6
Release:          2
Summary:          Extra Map Databases
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2.2-6.tar.gz

Requires:         R-maps 


BuildRequires:    R-devel Rmath-devel R-maps


%description
Supplement to maps package, providing the larger and/or higher-resolution

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8155 |21cr|R-mapproj-1.2.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mapproj
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.2.2
Release:          5
Summary:          Map Projections
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/mapproj_1.2-2.tar.gz
Requires:         R-maps 
BuildRequires:    R-devel Rmath-devel  R-maps

%description
Converts latitude/longitude into projected coordinates.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8156 |21cr|R-maps-3.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  maps
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.1.1
Release:          3
Summary:          Draw Geographical Maps

Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/maps_%{version}.tar.gz
%if %{without bootstrap}
Requires:         R-mapproj R-maptools R-mapdata R-sp
%endif
BuildRequires:    R-devel Rmath-devel
%if %{without bootstrap}
BuildRequires:    R-mapproj R-maptools R-mapdata R-sp
%endif

%description
Display of maps.  Projection code and larger maps are in separate packages
(mapproj and mapdata).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8157 |21cr|R-maptools-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  maptools
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.2
Release:          1
Summary:          Tools for reading and handling spatial objects
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/maptools_1.1-2.tar.gz
Requires:         R-foreign R-sp R-methods R-lattice
Recommends:         R-maps R-rgeos R-RColorBrewer R-spatstat R-PBSmapping
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-foreign R-sp R-methods R-lattice 
BuildRequires:    R-maps R-rgeos R-RColorBrewer R-spatstat R-PBSmapping
BuildRequires:    geos-devel
BuildRequires:    blas-devel
BuildRequires:    lapack-devel


%description
Set of tools for manipulating and reading geographic data, in particular
ESRI shapefiles; C code used from shapelib. It includes binary access to
GSHHS shoreline files. The package also provides interface wrappers for
exchanging spatial objects with packages such as PBSmapping, spatstat,
maps, RArcInfo, Stata tmap, WinBUGS, Mondrian, and others.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#if [ x$DISPLAY != x ];	then %{_bindir}/R CMD check %{packname}
#else			true
#fi

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/NEWS.md
%doc %{rlibdir}/%{packname}/changes
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/grids
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
#%{rlibdir}/%{packname}/old_man
%{rlibdir}/%{packname}/shapes
%{rlibdir}/%{packname}/share
%{rlibdir}/maptools/README
%{rlibdir}/maptools/doc/combine_maptools.R
%{rlibdir}/maptools/doc/combine_maptools.Rnw
%{rlibdir}/maptools/doc/combine_maptools.pdf
%{rlibdir}/maptools/doc/index.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8158 |21cr|R-markdown-0.7.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  markdown
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.7.7
Release:          7
Summary:          Markdown rendering for R
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

BuildRequires:    R-devel Rmath-devel  
Requires:        R-RCurl R-mime
BuildRequires:   R-RCurl R-mime
Recommends:        R-knitr

%if %{without bootstrap}
BuildRequires:   R-knitr
%endif

%description
Markdown is a plain-text formatting syntax that can be converted to XHTML
or other formats. This package provides R bindings to the Sundown markdown
rendering library.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{with bootstrap}
%else
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/NOTICE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/resources

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8159 |21cr|R-marray-1.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  marray
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.40.0
Release:          5
Summary:          Exploratory analysis for two-color spotted microarray data
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/bioc/html/marray.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/marray_1.40.0.tar.gz
Requires:         R-limma R-methods R-tkWidgets
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-limma R-methods R-tkWidgets

%description
Class definitions for two-color spotted microarray data. Fuctions for data
input, diagnostic plots, normalization and quality checking.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/swirldata

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8160 |21cr|R-Matching-4.8.3.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Matching
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          4.8.3.4
Release:          5
Summary:          Multivariate and Propensity Score Matching with Balance Optimization
Group:            Sciences/Mathematics
License:          GPLv3
URL:              http://cran.r-project.org/web/packages/Matching/index.html
Source0:          http://cran.r-project.org/src/contrib/Matching_4.8-3.4.tar.gz
BuildRequires:    R-devel R-MASS R-rgenoud R-graphics R-stats R-parallel R-grDevices
Requires:         R-core R-MASS R-rgenoud R-graphics R-stats R-parallel R-grDevices

%description
Provides functions for multivariate and propensity score matching and for
finding optimal balance based on a genetic search algorithm. A variety of
univariate and multivariate metrics to determine if balance has been
obtained are also provided.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/extras
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8161 |21cr|R-MatchIt-2.4_21-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  MatchIt
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.4_21
Release:          6
Summary:          The skew-normal and skew-t distributions
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/MatchIt/index.html
Source0:          http://cran.r-project.org/src/contrib/MatchIt_2.4-21.tar.gz
BuildRequires:    R-devel R-MASS R-WhatIf R-nnet R-rpart R-Matching texlive-wallpaper
Requires:         R-core R-MASS R-WhatIf R-nnet R-rpart R-Matching texlive-wallpaper
Recommends:       R-cem
BuildArch:        noarch

%description
Functions for manipulating skew-normal and skew-t probability distributions,
and for fitting them to data, in the scalar and in the multivariate case.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8162 |21cr|R-matrixcalc-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  matrixcalc
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.3
Release:          5
Summary:          Collection of functions for matrix differential calculus
Group:            Sciences/Mathematics
License:          GPL (>=2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/matrixcalc_1.0-3.tar.gz
BuildArch:        noarch
Requires:         R-core
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive
BuildRequires:    pkgconfig(lapack)

%description
A collection of functions to support matrix differential calculus as
presented in Magnus and Neudecker (1999) Matrix Differential Calculus with
Applications in Statistics and Econometrics, Second Edition, John Wiley,
New York.  Some of the functions are comparable to APL and J functions
which are useful for actuarial models and calculations. This package is
used for teaching and research purposes at the Department of Finance and
Risk Engineering, Polytechnic University, Brooklyn, NY 11201.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8163 |21cr|R-MatrixModels-0.3_1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  MatrixModels
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.3_1.1
Release:          4
Summary:          Modelling with Sparse And Dense Matrices
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.3-1.1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-stats
Requires:         R-utils
Requires:         R-methods
Requires:         R-Matrix 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    R-stats
BuildRequires:    R-utils
BuildRequires:    R-methods
BuildRequires:    R-Matrix
BuildRequires:    pkgconfig(lapack)

%description
Modelling with sparse and dense 'Matrix' matrices, using modular
prediction and response module classes.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8164 |21cr|R-maxLik-1.2.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  maxLik
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.2.4
Release:          4
Summary:          Maximum Likelihood Estimation
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/maxLik_1.2-4.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-miscTools 
Requires:         R-sandwich 
BuildRequires:    R-devel Rmath-devel  R-miscTools
BuildRequires:    R-sandwich 

%description
Tools for Maximum Likelihood Estimation

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{_datadir}/R/library/maxLik/CITATION

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8165 |21cr|R-MBESS-3.3.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  MBESS
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3.3.3
Release:          7
Summary:          MBESS
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Recommends:         R-MASS R-sem R-boot R-nlme R-gsl R-lavaan R-parallel R-snow R-OpenMx
BuildRequires:    R-devel Rmath-devel

BuildRequires:   R-MASS R-boot R-nlme R-gsl R-lavaan R-parallel R-snow R-OpenMx


%description
MBESS implements methods that are especially useful to researchers working
within the behavioral, educational, and social sciences (both substantive
researchers and methodologists), Many of the methods contained within
MBESS are applicable to quantitative research in general,

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8166 |21cr|R-mboost-2.2.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with internet
%global packname  mboost
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.2.3
Release:          5
Summary:          Model-Based Boosting
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/mboost_2.2-3.tar.gz
Requires:         R-methods R-stats 
Requires:         R-Matrix R-survival R-splines R-lattice 
Requires:         R-multicore R-party R-ipred R-MASS R-fields R-BayesX R-gbm 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods R-stats
BuildRequires:    R-Matrix R-survival R-splines R-lattice 
BuildRequires:    R-multicore R-party R-ipred R-MASS R-fields R-BayesX R-gbm 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Functional gradient descent algorithm (boosting) for optimizing general
risk functions utilizing component-wise (penalised) least squares
estimates or regression trees as base-learners for fitting generalized
linear, additive and interaction models to potentially high-dimensional

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{with internet}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CHANGES
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/cache
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/*.R
%{rlibdir}/%{packname}/*.Rda

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8167 |21cr|R-mclust-5.4.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mclust
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          5.4.7
Release:          1
Summary:          Model-Based Clustering / Normal Mixture Modeling
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/mclust_%{version}.tar.gz
Requires:         R-stats R-utils 
Requires:         R-mix R-knitr R-markdown R-rmarkdown
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-stats R-utils
BuildRequires:    R-mix R-knitr R-markdown R-rmarkdown
BuildRequires:    lapack-devel

%description
Model-based clustering and normal mixture modeling including Bayesian

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8168 |21cr|R-mcmc-0.9.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mcmc
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.9.4
Release:          2
Summary:          Markov Chain Monte Carlo
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.9-4.tar.gz


Requires:         R-stats
#Suggests:         R-xtable R-Iso
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-stats
#BuildRequires:   R-xtable R-Iso

%description
Simulates continuous distributions of random vectors using Markov chain
Monte Carlo (MCMC).  Users specify the distribution by an R function that
evaluates the log unnormalized density.  Algorithms are random walk
Metropolis algorithm (function metrop), simulated tempering (function
temper), and morphometric random walk Metropolis (Johnson and Geyer,
Annals of Statistics, 2012, function morph.metrop), which achieves
geometric ergodicity by change of variable.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8169 |21cr|R-MCMCpack-1.3.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  MCMCpack
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.3.9
Release:          3
Summary:          Markov chain Monte Carlo (MCMC) Package
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/MCMCpack_1.3-9.tar.gz
Requires:         R-coda R-MASS R-stats R-mcmc R-quantreg
BuildRequires:    R-devel Rmath-devel  R-coda R-MASS R-stats R-mcmc R-quantreg

%description
This package contains functions to perform Bayesian inference using
posterior simulation for a number of statistical models. Most simulation
is done in compiled C++ written in the Scythe Statistical Library Version
1.0.2. All models return coda mcmc objects that can then be summarized
using the coda package.  MCMCpack also contains some useful utility
functions, including some additional density functions and pseudo-random
number generators for statistical distributions, a general purpose
Metropolis sampling algorithm, and tools for visualization.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8170 |21cr|R-mda-0.5.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mda
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5.2
Release:          5
Summary:          Mixture and flexible discriminant analysis
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.5-2.tar.gz

Requires:         R-stats R-class 

Recommends:       R-earth 
BuildRequires:    R-devel Rmath-devel R-stats R-class

#BuildRequires:   R-earth

%description
Mixture and flexible discriminant analysis, multivariate adaptive
regression splines (MARS), BRUTO, ...

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/ratfor
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/mda-source.*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8171 |21cr|R-memoise-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  memoise
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.1.0
Release:          2
Summary:          Memoisation of Functions
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires(pre):    R-core
Requires:         R-core

Requires:         R-digest 
Recommends:         R-testthat R-aws.s3 R-httr R-covr 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-digest 

%if %{without bootstrap}
BuildRequires:   R-testthat R-aws.s3 R-httr R-covr
%endif

%description
Cache the results of a function so that when you call it again with the
same arguments it returns the pre-computed value.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8172 |21cr|R-MEMSS-0.9.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  MEMSS
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.9.2
Release:          4
Summary:          Data sets from Mixed-effects Models in S
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/MEMSS_0.9-2.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-lme4 
BuildRequires:    R-devel Rmath-devel  R-lme4

%description
Data sets and sample analyses from Pinheiro and Bates, "Mixed-effects
Models in S and S-PLUS" (Springer, 2000).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8173 |21cr|R-microbenchmark-1.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  microbenchmark
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.3.0
Release:          4
Summary:          Sub microsecond accurate timing functions
Group:            Sciences/Mathematics
License:          BSD
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.3-0.tar.gz

Requires:         R-graphics
Recommends:         R-ggplot2
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-graphics
BuildRequires:   R-ggplot2

%description
Provides infrastructure to accurately measure and compare the execution
time of R expressions.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8174 |21cr|R-microRNA-1.20.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  microRNA
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.20.0
Release:          5
Summary:          Data and functions for dealing with microRNAs
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/microRNA_1.20.0.tar.gz
Requires:         R-Biostrings
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-Biostrings R-crayon R-GenomeInfoDb

%description
Different data resources for microRNAs and some functions for manipulating

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8175 |21cr|R-mime-0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mime
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5
Release:          5
Summary:          Map Filenames to MIME Types
Group:            Sciences/Mathematics
License:          GPL-2
URL:              None
Source0:          http://cran.r-project.org/src/contrib/mime_%{version}.tar.gz


Requires:         R-tools 

BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-tools 

%description
Guesses the MIME type from a filename extension using the data derived
from /etc/mime.types in UNIX-type systems.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8176 |21cr|R-minqa-1.2.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  minqa
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.2.4
Release:          6
Summary:          Derivative-free optimization algorithms by quadratic approximation
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/minqa_%{version}.tar.gz

Requires:         R-Rcpp 


BuildRequires:    R-devel Rmath-devel R-Rcpp
BuildRequires:    texlive-scheme-tetex


%description
Derivative-free optimization by quadratic approximation based on an
interface to Fortran implementations by M. J. D. Powell.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8177 |21cr|R-mirbase.db-1.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mirbase.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.2.0
Release:          3
Summary:          miRBase: the microRNA database
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-methods R-AnnotationDbi 
Requires:         R-methods R-AnnotationDbi 

BuildRequires:    R-devel Rmath-devel R-methods R-AnnotationDbi
BuildRequires:    R-methods R-AnnotationDbi 

%description
miRBase: the microRNA database assembled using data from miRBase

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/extdata

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8178 |21cr|R-mirt-1.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mirt
%global rlibdir  %{_libdir}/R/library
%define debug_package %nil

Name:             R-%{packname}
Version:          1.21
Release:          2
Summary:          Multidimensional Item Response Theory
Group:            Sciences/Mathematics
License:          GPLv3+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-stats R-stats4 R-lattice R-methods 
Requires:         R-GPArotation R-Rcpp R-sfsmisc R-mgcv R-splines R-numDeriv R-RcppArmadillo
Recommends:         R-boot R-latticeExtra R-directlabels R-shiny R-knitr R-Rsolnp R-alabama R-sirt R-mirtCAT
BuildRequires:    R-devel Rmath-devel R-stats R-stats4 R-lattice R-methods
BuildRequires:    R-GPArotation R-Rcpp R-sfsmisc R-mgcv R-splines R-numDeriv R-RcppArmadillo
#BuildRequires:   R-boot R-latticeExtra R-directlabels R-shiny R-knitr R-Rsolnp R-alabama R-sirt R-mirtCAT
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Analysis of dichotomous and polytomous response data using unidimensional
and multidimensional latent trait models under the Item Response Theory
paradigm. Exploratory and confirmatory models can be estimated with
quadrature (EM) or stochastic (MHRM) methods. Confirmatory bi-factor and
two-tier analyses are available for modeling item testlets. Multiple group
analysis and mixed effects designs also are available for detecting
differential item and test functioning as well as modelling item and
person covariates. Finally, latent class models such as the DINA, DINO,
multidimensional latent class, and several other discrete latent variable
models are supported.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8179 |21cr|R-misc3d-0.8.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  misc3d
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.8.4
Release:          5
Summary:          Miscellaneous 3D Plots
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/misc3d_0.8-4.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-rgl R-tkrplot R-MASS 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-rgl R-tkrplot R-MASS 

%description
A collection of miscellaneous 3d plots, including isosurfaces.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8180 |21cr|R-miscTools-0.6.16-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  miscTools
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.6.16
Release:          5
Summary:          Miscellanneous Tools and Utilities
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/miscTools_0.6-16.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-Ecdat 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-Ecdat 

%description
Miscellanneous small tools and utilities

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8181 |21cr|R-mitools-2.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mitools
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.3
Release:          4
Summary:          Tools for multiple imputation of missing data
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/mitools_%{version}.tar.gz
Requires:         R-RODBC R-DBI 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-RODBC R-DBI 

%description
Tools to perform analyses and combine results from multiple-imputation

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/dta
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8182 |21cr|R-mix-1.0_8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mix
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0_8
Release:          7
Summary:          Estimation/multiple Imputation for Mixed Categorical and Continuous Data
Group:            Sciences/Mathematics
License:          Unlimited
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-8.tar.gz
Requires:         R-stats 
BuildRequires:    R-devel Rmath-devel  R-stats

%description
Estimation/multiple imputation programs for mixed categorical and
continuous data

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8183 |21cr|R-mlbench-2.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mlbench
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.1.1
Release:          6
Summary:          Machine Learning Benchmark Problems
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/mlbench_2.1-1.tar.gz
Requires:         R-lattice 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-lattice 

%description
A collection of artificial and real-world machine learning benchmark
problems, including, e.g., several data sets from the UCI repository.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8184 |21cr|R-mlmRev-1.0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mlmRev
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.0.6
Release:          5
Summary:          Examples from Multilevel Modelling Software Review
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/mlmRev_1.0-6.tar.gz
Requires:         R-lme4 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-lme4

%description
Data and examples from a multilevel modelling software review as well as
other well-known data sets from the multilevel modelling literature.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/original

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8185 |21cr|R-mnormt-1.4.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mnormt
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.4.7
Release:          5
Summary:          The multivariate normal and t distributions
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/mnormt/index.html
Source0:          http://cran.r-project.org/src/contrib/mnormt_1.4-7.tar.gz
BuildRequires:    R-devel texlive
Requires:         R-core

%description
This package provides functions for computing the density and the distribution
function of multivariate normal and multivariate "t" variates, and for 
generating random vectors sampled from these distributions. Probabilities are
computed via a non-Monte Carlo method; different routines are used 
for the case d=1, d=2, d>2, if d denotes the number of dimensions.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8186 |21cr|R-modeltools-0.2.21-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  modeltools
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2.21
Release:          5
Summary:          Tools and Classes for Statistical Models
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/modeltools_0.2-21.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-stats R-stats4 
Requires:         R-methods 
BuildRequires:    R-devel Rmath-devel  R-stats R-stats4
BuildRequires:    R-methods 

%description
A collection of tools to deal with statistical models. The functionality
is experimental and the user interface is likely to change in the future.
The documentation is rather terse, but packages `coin' and `party' have
some working examples. However, if you find the implemented ideas
interesting we would be very interested in a discussion of this proposal.
Contributions are more than welcome!

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8187 |21cr|R-mondate-0.10.01.02-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mondate
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.10.01.02
Release:          5
Summary:          Keep track of dates in terms of months
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/mondate_0.10.01.02.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-utils R-methods 
Requires:         R-zoo 
BuildRequires:    R-devel Rmath-devel  R-utils R-methods
BuildRequires:    R-zoo 

%description
Keep track of dates in month units.  Perform date arithmetic in "months"
(default), "years", and "days".  Enable dates to have "shape" (non NULL
dim).  Allow "infinite" dates.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/NEWS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8188 |21cr|R-MPV-1.38-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  MPV
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.38
Release:          5
Summary:          Data Sets from Montgomery, Peck and Vining's Book
Group:            Sciences/Mathematics
License:          Unlimited
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/MPV_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    pkgconfig(lapack)

%description
These data sets are taken from the book Introduction to Linear Regression
Analysis (3rd ed), by the above authors.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8189 |21cr|R-multcomp-1.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with internet
%bcond_without bootstrap
%global packname  multcomp
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.3.2
Release:          5
Summary:          Simultaneous Inference in General Parametric Models
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/multcomp_1.3-2.tar.gz
Requires:         R-stats R-graphics R-mvtnorm R-survival R-nlme
Requires:         R-coin R-MASS R-foreign R-xtable R-TH.data
Requires:         R-sandwich R-coxme texlive-inconsolata
Recommends:       R-car R-lme4 R-lmtest R-mboost R-robustbase
%if %{without bootstrap}
Requires:         R-mboost
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-stats
BuildRequires:    R-graphics R-mvtnorm R-survival R-nlme
BuildRequires:    R-coin R-MASS R-foreign R-xtable R-sandwich
BuildRequires:    R-coxme texlive-inconsolata R-TH.data
%if %{without bootstrap}
BuildRequires:    R-mboost
%endif
%rename R-cran-multcomp

%description
Simultaneous tests and confidence intervals for general linear hypotheses
in parametric models, including linear, generalized linear, linear mixed
effects, and survival models. The package includes demos reproducing
analyzes presented in the book "Multiple Comparisons Using R" (Bretz,
Hothorn, Westfall, 2010, CRC Press).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
    %if %{with internet}
%check
%{_bindir}/R CMD check %{packname}
    %endif
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
# %doc %{rlibdir}/%{packname}/CHANGES
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/MCMT
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
# %{rlibdir}/%{packname}/applications
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/deprecated
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/multcomp*.R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8190 |21cr|R-multicool-0.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  multicool
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.1.2
Release:          4
Summary:          Permutations of multisets in cool-lex order
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.1-2.tar.gz




BuildRequires:    R-devel Rmath-devel texlive


%description
A set of tools to permute multisets without loops or hash tables. The
permutation functions are based on C code from Aaron Williams. Cool-lex
order is similar to colexicographical order. The algorithm is described in
Williams, A. Loopless Generation of Multiset Permutations by Prefix
Shifts. SODA 2009, Symposium on Discrete Algorithms, New York, United
States. The permutation code is distributed without restrictions. The code
for stable and efficient computation of multinomial coefficients comes
from Dave Barber. The code can be download from
http://home.comcast.net/~tamivox/dave/multinomial/index.html and is
distributed without conditions.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8191 |21cr|R-multicore-0.1_7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  multicore
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.1_7
Release:          6
Summary:          Parallel processing of R code on machines with multiple cores or CPUs
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.1-7.tar.gz
BuildRequires:    R-devel Rmath-devel  

%description
This package provides a way of running parallel computations in R on
machines with multiple cores or CPUs. Jobs can share the entire initial
workspace and it provides methods for results collection.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8192 |21cr|R-multtest-2.20.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  multtest
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.20.0
Release:          4
Summary:          Resampling-based multiple hypothesis testing
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods R-Biobase 
Requires:         R-survival R-MASS R-stats4 
Requires:         R-snow 
BuildRequires:    R-devel Rmath-devel R-methods R-Biobase
BuildRequires:    R-survival R-MASS R-stats4 
BuildRequires:   R-snow 
%description
Non-parametric bootstrap and permutation resampling-based multiple testing
procedures (including empirical Bayes methods) for controlling the
family-wise error rate (FWER), generalized family-wise error rate (gFWER),
tail probability of the proportion of false positives (TPPFP), and false
discovery rate (FDR).  Several choices of bootstrap-based null
distribution are implemented (centered, centered and scaled,
quantile-transformed). Single-step and step-wise methods are available.
Tests based on a variety of t- and F-statistics (including t-statistics
based on regression parameters from linear and survival models as well as
those based on correlation parameters) are included.  When probing
hypotheses with t-statistics, users may also select a potentially faster
null distribution which is multivariate normal with mean zero and variance
covariance matrix derived from the vector influence function.  Results are
reported in terms of adjusted p-values, confidence regions and test
statistic cutoffs. The procedures are directly applicable to identifying
differentially expressed genes in DNA microarray experiments.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8193 |21cr|R-munsell-0.4.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname munsell
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.4.2
Release:          5
Summary:          Munsell color system
Group:            Sciences/Mathematics
License:          MIT
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.4.2.tar.gz
BuildArch:        noarch
Requires:         R-colorspace
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-colorspace

%description
Functions for exploring and using the Munsell color system

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/raw

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8194 |21cr|R-mvtnorm-1.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  mvtnorm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.2
Release:          4
Summary:          Multivariate Normal and t Distributions

Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-2.tar.gz
Requires:         R-stats 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex 
BuildRequires:    R-stats 
BuildRequires:    pkgconfig(lapack)

%rename R-cran-mvtnorm

%description
Computes multivariate normal and t probabilities, quantiles, random
deviates and densities.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
# %doc %{rlibdir}/%{packname}/CHANGES
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/C_API_Example
%{rlibdir}/%{packname}/include

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8195 |21cr|R-ncdf-1.6.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ncdf
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.6.8
Release:          4
Summary:          Interface to Unidata netCDF data files
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

BuildRequires:    R-devel Rmath-devel
BuildRequires:    pkgconfig(netcdf)
BuildRequires:    texlive-collection-latex

%description
This package provides a high-level R interface to Unidata's netCDF data
files, which are portable across platforms and include metadata
information in addition to the data sets. Using this package netCDF files
can be opened and data sets read in easily. It is also easy to create new
netCDF dimensions, variables, and files, or manipulate existing netCDF
files. This interface provides considerably more functionality than the
old "netCDF" package for R, and is not compatible with the old "netCDF"
package for R. Release 1.2 (2005-01-24) adds better support for character
variables, and miscellaneous bug fixes.  Release 1.3 (2005-03-27) is for
miscellaneous bug fixes, and improves the documentation.  Release 1.4
(2005-06-27) improves the efficiency, and adds small bug fixes. Release
1.5 (2006-02-27) adds support for byte variables, plus small bug fixes.
Release 1.6 (2006-06-19) adds various bug fixes, plus support for making
dimensions WITHOUT dimvars (coordinate variables), although I think this
is a bad idea in general.  ALSO, the default behavior for put.var.ncdf
with unlimited variables and NO specified start and count parameters has
changed!  Before, the default was to append to the end of the existing
variable.  Now, the default is to assume a start of 1 along each
dimension, and a count of the current length of each dimension.  This
really can be ambiguous when using an unlimited dimension. I always
specify both start and count when writing to a variable with an unlimited
dimension, and suggest you do as well.  I may require this in a future
release, as it seems to cause people problems.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/HDF5_COPYING
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8196 |21cr|R-network-1.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  network
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.12.0
Release:          4
Summary:          Classes for Relational Data
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/network_%{version}.tar.gz
Requires:         R-utils 
%if %{without bootstrap}
Requires:         R-sna R-statnet 
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-utils
%if %{without bootstrap}
BuildRequires:    R-sna R-statnet 
%endif

%description
Tools to create and modify network objects.  The network class can
represent a range of relational data types, and supports arbitrary
vertex/edge/graph attributes.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/network.api

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8197 |21cr|R-networksis-2.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  networksis
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.1.3
Release:          2
Summary:          Simulate fixed marginals bipartite graphs using sequential importance sampling
Group:            Sciences/Mathematics
License:          GPL-3 + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/networksis_2.1-3.tar.gz
Requires:         R-ergm R-network 
Requires:         R-snow
Requires:    R-Hmisc
BuildRequires:    R-devel Rmath-devel  R-ergm R-network
BuildRequires:    R-snow
BuildRequires:    R-Hmisc

%description
Tools to simulate bipartite networks/graphs with the degrees of the nodes
fixed and specified. Part of the "statnet" suite of packages for network

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8198 |21cr|R-nloptr-1.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  nloptr
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.4
Release:          4
Summary:          R interface to NLopt
Group:            Sciences/Mathematics
License:          LGPL-3
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz



Recommends:       R-testthat 
BuildRequires:    R-devel Rmath-devel 

#BuildRequires:   R-testthat 
%description
 nloptr is an R interface to NLopt. NLopt is a free/open-source library
for nonlinear optimization, providing a common interface for a number of
different free optimization routines available online as well as original
implementations of various other algorithms. See
http://ab-initio.mit.edu/wiki/index.php/NLopt_Introduction for more
information on the available algorithms. During installation on Unix the
NLopt code is downloaded and compiled from the NLopt website.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8199 |21cr|rnnoise-0-1.git7f449b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 7f449bf8bd3b933891d12c30112268c4090e4d59
%define commit_short %(echo %{commit} | head -c 6)

%define major 0
%define libname	%mklibname rnnoise %{major}
%define devname	%mklibname -d rnnoise 

Summary:	Recurrent neural network for audio noise reduction
Name:		rnnoise
Version:	0
Release:	1.git%{commit_short}.1
License:	BSD
Group:		System/Libraries
# also https://github.com/xiph/rnnoise
Url:		https://gitlab.xiph.org/xiph/rnnoise
Source0:	https://gitlab.xiph.org/xiph/rnnoise/-/archive/%{commit}/rnnoise-%{commit}.tar.gz
BuildRequires:	autoconf automake libtool make
BuildRequires:	doxygen graphviz

%description
%summary

%package -n	%{libname}
Summary:	%summary
Group:		System/Libraries

%description -n	%{libname}
%summary

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n	%{devname}
This package includes the development files for %{name}.

%prep
%setup -q -n %{name}-%{commit}
autoreconf -fiv
%configure \
	--enable-examples-build

%build
%make_build

%install
%make_install
rm -f %{buildroot}%{_datadir}/doc/%{name}/AUTHORS
rm -f %{buildroot}%{_datadir}/doc/%{name}/README
rm -f %{buildroot}%{_datadir}/doc/%{name}/COPYING

%files -n %{libname}
%{_libdir}/librnnoise.so.%{major}*

%files -n %{devname}
%{_includedir}/rnnoise.h
%{_libdir}/librnnoise.so
%{_libdir}/pkgconfig/rnnoise.pc
%{_docdir}/rnnoise

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8200 |21cr|R-nor1mix-1.1.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  nor1mix
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.1.4
Release:          6
Summary:          Normal (1-d) Mixture Models (S3 Classes and Methods)
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/nor1mix_1.1-4.tar.gz
Requires:         R-stats R-graphics 
Requires:         R-cluster 
BuildRequires:    R-devel Rmath-devel  R-stats R-graphics
BuildRequires:    R-cluster 

%description
Onedimensional Normal Mixture Models Classes, for, e.g., density
estimation or clustering algorithms research and teaching; providing the
widely used Marron-Wand densities, see ?MarronWand.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8201 |21cr|R-np-0.50.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  np
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.50.1
Release:          6
Summary:          Nonparametric kernel smoothing methods for mixed data types
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/np_0.50-1.tar.gz
Requires:         R-boot R-cubature 
Requires:         R-quantreg R-MASS 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-boot R-cubature
BuildRequires:    R-quantreg R-MASS 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
This package provides a variety of nonparametric (and semiparametric)
kernel methods that seamlessly handle a mix of continuous, unordered, and
ordered factor data types. We would like to gratefully acknowledge support
from the Natural Sciences and Engineering Research Council of Canada
(NSERC:www.nserc.ca), the Social Sciences and Humanities Research Council
of Canada (SSHRC:www.sshrc.ca), and the Shared Hierarchical Academic
Research Computing Network (SHARCNET:www.sharcnet.ca).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME killed after 15 min at 100%% cpp ...
%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8202 |21cr|R-numDeriv-2012.9.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  numDeriv
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2012.9.1
Release:          6
Summary:          Accurate Numerical Derivatives
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/numDeriv_2012.9-1.tar.gz
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 

%description
Accurate Numerical Derivatives. See ?numDeriv.Intro for more details.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
#%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8203 |21cr|R-nws-1.7.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  nws
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.7.0.1
Release:          6
Summary:          R functions for NetWorkSpaces and Sleigh
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods 
BuildRequires:    R-devel Rmath-devel  R-methods

%description
Provides coordination and parallel execution facilities, as well as
limited cross-language data exchange, using the netWorkSpaces server
developed by REvolution Computing

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/README*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/bin
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8204 |21cr|robotfindskitten-2.7182818.701-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		robotfindskitten
Version:	2.7182818.701
Release:	1
Summary:	A game/zen simulation. You are robot. Your job is to find kitten
Group:		Games/Strategy
License:	GPLv2+
URL:		http://robotfindskitten.org
Source0:        http://robotfindskitten.org/download/POSIX/%{name}-%{version}.tar.gz
Source1:        https://raw.githubusercontent.com/xxv/robotfindskitten/master/artwork/rfk.png
BuildRequires:	pkgconfig(ncurses) 
BuildRequires:	glibc-devel 
BuildRequires:	texinfo
BuildRequires:	imagemagick

%description
In this game, you are robot (#). Your job is to find kitten. This task
is complicated by the existence of various things which are not kitten.
Robot must touch items to determine if they are kitten or not. The game
ends when robotfindskitten.

%files
%doc AUTHORS BUGS ChangeLog COPYING NEWS README
%{_gamesbindir}/%{name}
%{_datadir}/games/%{name}/
%{_infodir}/%{name}.info*
%{_datadir}/man/man6/%{name}.6*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --prefix=/usr \
	    --bindir=%{_bindir} 
	        
%make

%check
make check

%install
%makeinstall_std
mkdir -p %{buildroot}%{_datadir}/games/%{name}
install -m644 nki/vanilla.nki \
  %{buildroot}%{_datadir}/games/%{name}/vanilla.nki



# icons
for i in 16x16 22x22 32x32 48x48 64x64 128x128 256x256; do
   install -Dm644 %{SOURCE1} \
                  %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{name}.png
done

# Desktop entries
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=%{name}
GenericName=A game/zen simulation
Comment=Your job is to find kitten
Exec=%{name}
Icon=%{name}
Terminal=true
Type=Application
Categories=Game;StrategyGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8205 |21cr|rocksndiamonds-4.1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -Wstrict-aliasing=0 

Summary:        A boulderdash like game
Name:           rocksndiamonds
Version:        4.1.3.0
Release:        1
Group:          Games/Arcade
License:        GPLv2+
Url:            http://www.artsoft.org/rocksndiamonds/
Source0:        http://www.artsoft.org/RELEASES/unix/rocksndiamonds/%{name}-%{version}.tar.gz
Source1:        %{name}.16.png
Source2:        %{name}.32.png
Source3:        %{name}.48.png
Source4:        %{name}.desktop
Source5:        %{name}.6
Patch0:         rocksndiamonds-4.0.0.1-CVE-2011-4606.patch
Patch1:         rocksndiamonds-4.0.0.1-mga-games-data-and-save-paths.patch

BuildRequires:  pkgconfig(sdl2)
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(SDL2_mixer)
BuildRequires:  pkgconfig(SDL2_net)
BuildRequires:	smpeg-devel

%description
This is a nice little game with color graphics and sound for your
Unix system.

If you know the game "Boulderdash" (Commodore C64) or "Emerald Mine"
(Amiga) or "Supaplex" (PC), you know what "ROCKS'N'DIAMONDS" is about.

%files
%doc CREDITS COPYING ChangeLog
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man6/%{name}.6*
%attr(0755,root,games) %dir %{_localstatedir}/%{_gamesdir}/%{name}
#---------------------------------------------------------------

%prep
%setup -q

%patch0 -p1
%patch1 -p1
# precompiled binary
rm -fr %{name}
# file-not-utf8
iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.conv && mv -f CREDITS.conv CREDITS

%build
%make_build EXTRA_CFLAGS="%{optflags}" EXTRA_LDFLAGS="%{ldflags}"

%install
install -D -m755 %{name} %{buildroot}%{_gamesbindir}/%{name}
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a graphics levels sounds music %{buildroot}%{_gamesdatadir}/%{name}
install -d %{buildroot}%{_localstatedir}/%{_gamesdir}/%{name}

# Man pages
install -D -m644 %{SOURCE5} %{buildroot}%{_mandir}/man6/%{name}.6

# Menu Entry
install -D -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop

# Icon
install -m644 %{SOURCE1} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE2} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE3} -D %{buildroot}%{_liconsdir}/%{name}.png

%pre
# retrocompat
if [ -d %{_gamesdatadir}/%{name}/scores ]; then
        mkdir -p %{_localstatedir}/%{_gamesdir}/%{name}/
        mv %{_gamesdatadir}/%{name}/scores %{_localstatedir}/%{_gamesdir}/%{name}/
fi



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8206 |21cr|rocksndiamonds-4.3.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -Wstrict-aliasing=0 -fcommon

Summary:	A boulderdash like game
Name:		rocksndiamonds
Version:	4.3.2.1
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.artsoft.org/rocksndiamonds/
Source0:	http://www.artsoft.org/RELEASES/unix/rocksndiamonds/%{name}-%{version}.tar.gz
Source1:	%{name}.16.png
Source2:	%{name}.32.png
Source3:	%{name}.48.png
Source4:	%{name}.desktop
Source5:	%{name}.6
Patch0:		rocksndiamonds-4.0.0.1-CVE-2011-4606.patch
BuildRequires:	smpeg-devel
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(zlib)

%description
This is a nice little game with color graphics and sound for your
Unix system.

If you know the game "Boulderdash" (Commodore C64) or "Emerald Mine"
(Amiga) or "Supaplex" (PC), you know what "ROCKS'N'DIAMONDS" is about.

%files
%doc CREDITS ChangeLog
%license COPYING
%attr(0755,root,games) %dir %{_localstatedir}/%{_gamesdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man6/%{name}.6*
%{_miconsdir}/%{name}.png

%pre
# retrocompat
if [ -d %{_gamesdatadir}/%{name}/scores ]; then
	mkdir -p %{_localstatedir}/%{_gamesdir}/%{name}/
	mv %{_gamesdatadir}/%{name}/scores %{_localstatedir}/%{_gamesdir}/%{name}/
fi

#---------------------------------------------------------------

%prep
%autosetup -p1

# precompiled binary
rm -fr %{name}
# file-not-utf8
iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.conv && mv -f CREDITS.conv CREDITS

%build
%make \
	EXTRA_CFLAGS="%{optflags}"	\
	EXTRA_LDFLAGS="%{ldflags}"

%install
install -D -m755 %{name} %{buildroot}%{_gamesbindir}/%{name}
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a graphics levels sounds music %{buildroot}%{_gamesdatadir}/%{name}
install -d %{buildroot}%{_localstatedir}/%{_gamesdir}/%{name}

# Man pages
install -D -m644 %{SOURCE5} %{buildroot}%{_mandir}/man6/%{name}.6

# Menu Entry
install -D -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop

# Icon
install -m644 %{SOURCE1} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE2} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE3} -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8207 |21cr|R-odfWeave-0.8.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  odfWeave
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.8.4
Release:          4
Summary:          Sweave processing of Open Document Format (ODF) files
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/odfWeave_0.8.4.tar.gz
Requires:         R-lattice R-XML 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-lattice R-XML

%description
Sweave processing of Open Document Format (ODF) files

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME
# Opening and ending tag mismatch: list-style line 132 and list-level-style-bullet
# Opening and ending tag mismatch: automatic-styles line 13 and list-level-style-bullet
# Opening and ending tag mismatch: document-content line 2 and list-level-style-bullet
# Extra content at the end of the document
# Error: 1: Opening and ending tag mismatch: list-style line 132 and list-level-style-bullet
# 2: Opening and ending tag mismatch: automatic-styles line 13 and list-level-style-bullet
# 3: Opening and ending tag mismatch: document-content line 2 and list-level-style-bullet
# 4: Extra content at the end of the document
%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CHANGES
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/validate

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8208 |21cr|rofi-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Rofi Menu
Name:		rofi
Version:	1.7.0
Release:	1
License:	MIT
Group:		Graphical desktop/Other
Url:		https://github.com/davatorium/rofi/
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	git-core
BuildRequires:	xdg-utils
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-xcb)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(xcb-ewmh)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcb-xrm)
BuildRequires:	pkgconfig(xcb-cursor)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)

%description
Window switcher and popup menu.

%files
%{_bindir}/rofi
%{_bindir}/rofi-sensible-terminal
%{_bindir}/rofi-theme-selector
%{_datadir}/rofi
%{_mandir}/man1/rofi.1*
%{_mandir}/man1/rofi-sensible-terminal.1*
%{_mandir}/man1/rofi-theme-selector.1*
%{_mandir}/man5/rofi-theme.5*
%{_mandir}/man5/rofi-script.5*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Rofi
Group:		Development/Other

%description devel
Development package for Rofi. It's needed to develop plugins.

%files devel
%{_includedir}/rofi
%{_libdir}/pkgconfig/rofi.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-check
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8209 |21cr|rootfs-rosa-0-1.gitf98918.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit f9891851fc9f55d4183f9fff6011b94aa6209c13
%define commit_short %(echo %{commit} | head -c6)

Summary:	Scripts to build ROSA rootfs and container images
Name:		rootfs-rosa
Version:	0
Release:	1.git%{commit_short}.1
License:	MIT
Group:		System/Configuration/Packaging
# mirror: https://abf.rosalinux.ru/soft/rootfs-rosa
Url:		https://github.com/mikhailnov/docker-rosa
Source0:	https://abf.rosalinux.ru/soft/rootfs-rosa/archive/rootfs-rosa-%{commit}.tar.gz
BuildArch:  noarch
Requires:   dnf
Requires:   findutils
Requires:   gawk
Requires:   grep
Requires:   sed
Requires:   squashfs-tools
Requires:   tar
Provides:   docker-rosa = %{EVRD}
Provides:   mkimage-dnf = %{EVRD}

%description
Scripts to build ROSA rootfs and container images

%files
%{_sbindir}/mkimage-dnf
%{_sbindir}/%{name}
%{_libexecdir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_libexecdir}/%{name}
install -m0755 mkimage-dnf.sh %{buildroot}%{_sbindir}/mkimage-dnf
( cd %{buildroot}%{_sbindir} && ln -s mkimage-dnf %{name} )
rm -fv .git*
cp -rv . %{buildroot}%{_libexecdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8210 |21cr|root-tail-1.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:       Root-tail prints text directly to an X11 root window
Group:         Monitoring
Name:          root-tail
Version:       1.2
Release:       16
License:       GPL
Source:        http://www.goof.com/pcg/marc/data/%{name}-%{version}.tar.bz2
URL:           http://www.goof.com/pcg/marc/root-tail.html 
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: imake
BuildRequires: gccmakedep

%description
Displays a given file anywhere on your X11 root window
with a transparent background.
It was made because I am very lazy and this was easier than
making a new rxvt pixmap each time I changed my background
to simulate that transparent effect.

%prep
%setup -q

%build
xmkmf -a
make CDEBUGFLAGS="${RPM_OPT_FLAGS}" \
     CXXDEBUGFLAGS="${RPM_OPT_FLAGS}"


%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
cp root-tail %{buildroot}%{_bindir}
cp root-tail.man %{buildroot}%{_mandir}/man1/root-tail.1

# Menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Root-Tail
Comment=Root-tail prints text directly to a root window
Exec=%{_bindir}/%{name} -g 80x25+100+50 -font fixed /var/log/messages,black
Terminal=false
Type=Application
StartupNotify=true
Categories=System;Monitor;
EOF


%files
%doc README Changes
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/rosa-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8211 |21cr|R-OpenMx-2.7.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  OpenMx
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.7.4
Release:          2
Summary:          Multipurpose Software for Statistical Modeling
Group:            Sciences/Mathematics
License:          Apache License 2.0
URL:              https://cran.r-project.org/web/packages/OpenMx/index.html
Source0:          https://cran.r-project.org/src/contrib/OpenMx_%{version}.tar.gz

Requires:         R-Rcpp R-RcppEigen R-StanHeaders R-BH R-rpf
Recommends: 	  R-mvtnorm R-numDeriv R-roxygen2 R-Rmpi R-snowfall R-lme4
BuildRequires:    R-devel Rmath-devel texlive-latex R-Rcpp R-RcppEigen R-StanHeaders R-BH R-rpf
BuildRequires: 	  R-mvtnorm R-numDeriv R-roxygen2 R-Rmpi R-snowfall R-lme4
BuildRequires:    curl gomp-devel


BuildRequires:   R-snowfall
BuildRequires:   lapack-devel

%description
The OpenMx Project intends to rewrite and extend the popular statistical
package Mx to address the challenges facing a large range of modern
statistical problems such as: the difficulty of measuring behavioral
traits; the availability of technologies - such as such as magnetic
resonance imaging, continuous physiological monitoring and microarrays -
which generate extremely large amounts of data often with complex
time-dependent patterning; and increased sophistication in the statistical
models used to analyze the data.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8212 |21cr|R-openssl-0.9.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  openssl
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.9.4
Release:          3
Summary:          Toolkit for Encryption, Signatures and Certificates Based on OpenSSL
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

#Requires:         R-testthat R-digest R-knitr R-rmarkdown R-jsonlite 
BuildRequires:    R-devel Rmath-devel pkgconfig(openssl)

#BuildRequires:   R-testthat R-digest R-knitr R-rmarkdown R-jsonlite 
%description
Bindings to OpenSSL libssl and libcrypto, plus custom SSH pubkey parsers.
Supports RSA, DSA and EC curves P-256, P-384 and P-521. Cryptographic
signatures can either be created and verified manually or via x509
certificates. AES can be used in cbc, ctr or gcm mode for symmetric
encryption; RSA for asymmetric (public key) encryption or EC for Diffie
Hellman. High-level envelope functions combine RSA and AES for encrypting
arbitrary sized data. Other utilities include key generators, hash
functions (md5, sha1, sha256, etc), base64 encoder, a secure random number
generator, and 'bignum' math methods for manually performing crypto
calculations on large multibyte integers.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/cacert.pem
%{rlibdir}/%{packname}/testkey.pem

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8213 |21cr|R-openssl-1.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  openssl
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.4.4
Release:          1
Summary:          Toolkit for Encryption, Signatures and Certificates Based on OpenSSL
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

#Requires:         R-testthat R-digest R-knitr R-rmarkdown R-jsonlite 
BuildRequires:    R-askpass R-devel Rmath-devel pkgconfig(openssl)

#BuildRequires:   R-testthat R-digest R-knitr R-rmarkdown R-jsonlite 
%description
Bindings to OpenSSL libssl and libcrypto, plus custom SSH pubkey parsers.
Supports RSA, DSA and EC curves P-256, P-384 and P-521. Cryptographic
signatures can either be created and verified manually or via x509
certificates. AES can be used in cbc, ctr or gcm mode for symmetric
encryption; RSA for asymmetric (public key) encryption or EC for Diffie
Hellman. High-level envelope functions combine RSA and AES for encrypting
arbitrary sized data. Other utilities include key generators, hash
functions (md5, sha1, sha256, etc), base64 encoder, a secure random number
generator, and 'bignum' math methods for manually performing crypto
calculations on large multibyte integers.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/cacert.pem

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8214 |21cr|ropgun-0-0.20180918.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20180918

Summary:	Linux implementation of a transparent ROP mitigation technique
Name:		ropgun
Version:	0
Release:	0.%{git}.2
License:	BSD
Group:		Monitoring
Url:		https://github.com/pietroborrello/RopGun
# git snapshot with crashmail and test dirs removed
Source0:	%{name}-%{git}.tar.bz2
Patch0:		ropgun-20180918-x86.patch

%description
RopGun is a Linux implementation of a transparent ROP mitigation technique
based on runtime detection of abnormal control transfers using hardware
performance counters.

Please read %{_docdir}/%{name}/%{name}.pdf for full info.

%files
%doc LICENSE README.md
%doc %{name}.pdf
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{git}
%patch0 -p1
cp ropgun_report/main.pdf %{name}.pdf

%build
# Please check if there's useful Makefile in new versions
%__cc %{optflags} ropgun.c syscallnames.c -o %{name} -pthread

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8215 |21cr|R-optextras-2013.10.28-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  optextras
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2013.10.28
Release:          4
Summary:          A set of tools to support optimization methods
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2013-10.28.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-numDeriv 

BuildRequires:    R-devel Rmath-devel  R-numDeriv

%description
Tools to assist in safely applying user generated objective and derivative
function to optimization programs. These are primarily function
minimization methods with at most bounds and masks on the parameters.
Provides a way to check the basic computation of objective functions that
the user provides, along with proposed gradient and Hessian functions, as
well as to wrap such functions to avoid failures when inadmissible
parameters are provided. Check bounds and masks. Check scaling or
optimality conditions. Perform an axial search to seek lower points on the
objective function surface. Includes forward, central and backward
gradient approximation codes.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8216 |21cr|R-optimx-2013.8.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  optimx
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2013.8.7
Release:          5
Summary:          A Replacement and Extension of the optim() Function
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-numDeriv 

Requires:         R-BB R-ucminf R-Rcgmin R-Rvmmin R-minqa R-setRNG R-dfoptim R-svUnit 
BuildRequires:    R-devel Rmath-devel  R-numDeriv

BuildRequires:   R-BB R-ucminf R-Rcgmin R-Rvmmin R-minqa R-setRNG R-dfoptim R-svUnit 
%description
Provides a replacement and extension of the optim() function to unify and
streamline optimization capabilities in R for smooth, possibly box
constrained functions of several or many parameters. This is the CRAN
version of the package.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8217 |21cr|R-ordinal-2013.9.30-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ordinal
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2013.9.30
Release:          5
Summary:          Regression Models for Ordinal Data
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2013.9-30.tar.gz


Requires:         R-ucminf R-MASS R-Matrix 
Requires:         R-lme4 R-nnet R-xtable 
BuildRequires:    R-devel Rmath-devel texlive-latex 
BuildRequires:    R-ucminf R-MASS R-Matrix 
BuildRequires:   R-lme4 R-nnet R-xtable 

%description
This package implements cumulative link (mixed) models also known as
ordered regression models, proportional odds models, proportional hazards
models for grouped survival times and ordered logit/probit/... models.
Estimation is via maximum likelihood and mixed models are fitted with the
Laplace approximation and adaptive Gauss-Hermite quadrature. Multiple
random effect terms are allowed and they may be nested, crossed or
partially nested/crossed. Restrictions of symmetry and equidistance can be
imposed on the thresholds (cut-points). Standard model methods are
available (summary, anova, drop-methods, step, confint, predict etc.) in
addition to profile methods and slice methods for visualizing the
likelihood function and checking convergence.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8218 |21cr|R-org.At.tair.db-2.10.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap
%global packname  org.At.tair.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          4
Summary:          Genome wide annotation for Arabidopsis
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/org.At.tair.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core R-methods R-AnnotationDbi
%if %{without bootstrap}
Requires:         R-hgu95av2.db R-RUnit
%endif
Requires:         R-annotate
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-methods R-AnnotationDbi R-annotate
%if %{without bootstrap}
BuildRequires:    R-hgu95av2.db R-RUnit
%endif

%description
Genome wide annotation for Arabidopsis, primarily based on mapping using
TAIR identifiers.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#%if %{without bootstrap}
#%check
#%{_bindir}/R CMD check %{packname}
#%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8219 |21cr|R-org.Hs.eg.db-3.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  org.Hs.eg.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3.1.2
Release:          4
Summary:          Genome wide annotation for Human
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/org.Hs.eg.db_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core R-methods R-AnnotationDbi R-annotate
%if %{without bootstrap}
Requires:         R-hgu95av2.db
%endif
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-AnnotationDbi R-annotate R-IRanges R-S4Vectors
%if %{without bootstrap}
BuildRequires:    R-methods R-AnnotationDbi R-hgu95av2.db R-annotate
%endif

%description
Genome wide annotation for Human, primarily based on mapping using Entrez
Gene identifiers.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8220 |21cr|R-org.Mm.eg.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap
%global packname  org.Mm.eg.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          Genome wide annotation for Mouse
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/org.Mm.eg.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core R-methods R-AnnotationDbi R-annotate
%if %{without bootstrap}
Requires:         R-hgu95av2.db
%endif
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-AnnotationDbi R-annotate
%if %{without bootstrap}
BuildRequires:    R-hgu95av2.db
%endif

%description
Genome wide annotation for Mouse, primarily based on mapping using Entrez
Gene identifiers.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#%if %{without bootstrap}
#%check
#%{_bindir}/R CMD check %{packname}
#%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8221 |21cr|R-org.Rn.eg.db-2.10.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  org.Rn.eg.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          6
Summary:          Genome wide annotation for Rat
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/org.Rn.eg.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core R-methods R-AnnotationDbi R-annotate
%if %{without bootstrap}
Requires:         R-hgu95av2.db
%endif
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-AnnotationDbi R-annotate R-IRanges R-S4Vectors
%if %{without bootstrap}
BuildRequires:    R-hgu95av2.db
%endif

%description
Genome wide annotation for Rat, primarily based on mapping using Entrez
Gene identifiers.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#if %%{without bootstrap}
#check
#{_bindir}/R CMD check %%{packname}
#endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8222 |21cr|R-org.Sc.sgd.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap
%global packname  org.Sc.sgd.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          Genome wide annotation for Yeast
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/org.Sc.sgd.db_2.10.1.tar.gz
BuildArch:        noarch
Requires:         R-core R-methods R-AnnotationDbi R-annotate
%if %{without bootstrap}
Requires:         R-hgu95av2.db
%endif
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-AnnotationDbi R-annotate
%if %{without bootstrap}
BuildRequires:    R-hgu95av2.db
%endif

%description
Genome wide annotation for Yeast, primarily based on mapping using ORF
identifiers from SGD.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Check fails due to texlive errors...
#%if %{without bootstrap}
#%check
#%{_bindir}/R CMD check %{packname}
#%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8223 |21cr|rosa-autotests-0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Rosa autotests util
Name:		rosa-autotests
Version:	0.1
Release:	4
License:	GPLv2+
Group:		System/Configuration/Boot and Init
Url:		http://www.abf.io/import/rosa-autotests
Source0:	%{name}.tar.gz
Requires:	systemd
Requires:	coreutils
BuildRequires:  /usr/bin/msgfmt
BuildArch:	noarch

%description
Rosa autotest util.

%files
%{_libexecdir}/%{name}
%lang(ru) %{_localedir}/ru/LC_MESSAGES/%{name}.mo
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/std
%{_datadir}/%{name}/std/*
%{_unitdir}/*

#--------------------------------------------------------------

%package barium
Summary:	Rosa autotests util for barium
Requires:	%{name} == %{EVRD}

%description barium
Rosa autotests util for barium

%files barium
%dir %{_datadir}/%{name}/barium
%{_datadir}/%{name}/barium/*

#--------------------------------------------------------------

%prep

%setup -n %{name}

%build
# nothing to do

%install
mkdir -p %{buildroot}%{_libexecdir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_datadir}/%{name}/{std,barium}
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES

install -m 755  %{name} %{buildroot}%{_libexecdir}/
install -m644  std/*  %{buildroot}%{_datadir}/%{name}/std/
install -m644  barium/*  %{buildroot}%{_datadir}/%{name}/barium/

install -m 644 systemd/* %{buildroot}%{_unitdir}/
msgfmt -v %{name}.po  -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{name}.mo


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8224 |21cr|rosa-cloud-connector-0.3.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rosa-cloud-connector
Version:	0.3.7
Release:	2
Summary:	Connect to different cloud storage services
License:	BSD
Group:		Networking/File transfer
Url:		https://abf.rosalinux.ru/soft/rosa-cloud-connector
Source0:	https://abf.rosalinux.ru/soft/rosa-cloud-connector/archive/%{name}-%{version}.tar.gz
# These are just "weather-clouds" icons from oxygen theme:)
Source1:	rosa-cloud-16.png
Source2:	rosa-cloud-22.png
Source3:	rosa-cloud-32.png
Source4:	rosa-cloud-48.png
Source5:	rosa-cloud-64.png
Source6:	rosa-cloud-128.png
BuildRequires:	qmake5
BuildRequires:	qt5-devel
BuildRequires:	qt5-linguist-tools

Requires:	davfs2
# it runs 'echo password | sudo sh -c '...' :facepalm
Requires:	sudo

Provides:	rosa-cloud
Provides:	rcloud

%description
A simple tool to connect to different cloud storage services.

%prep
%setup -q

%build
%qmake_qt5
%make
lrelease-qt5 app/rosa_cloud_ru.ts

%install
mkdir -p %{buildroot}/%{_bindir}
cp app/rosa-cloud %{buildroot}/%{_bindir}

mkdir -p %{buildroot}%{_datadir}/%{name}/data/lang/
cp app/*qm %{buildroot}%{_datadir}/%{name}/data/lang/
cp app/*ts %{buildroot}%{_datadir}/%{name}/data/lang/

for s in 16 22 32 48 64 128; do
  mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
done

install -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/22x22/apps/%{name}.png
install -m 0644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 0644 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m 0644 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -m 0644 %{SOURCE6} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=ROSA Cloud Connector
Name[ru]=ROSA Cloud Connector
Comment=Tool for connecting to different cloud storage services
Comment[ru]=Инструментарий подключения к облачным хранилищам
Exec=%{_bindir}/rosa-cloud
Icon=rosa-cloud-connector
Terminal=false
Type=Application
Categories=System;
EOF

desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8225 |21cr|rosa-crypto-tool-1.0.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rosa-crypto-tool-devel

Summary:	Program for working with electronic digital signatures
Name:		rosa-crypto-tool
Version:	1.0.0
Release:	14
License:	BSD
Group:		System/Base
Url:		https://abf.io/uxteam/rosa-crypto-tool-devel/
Source0:	%{url}/archive/%{oname}-%{version}.tar.gz
Patch0:		rosa-crypto-tool-devel-1.0.0-desktop-szi.patch
# https://abf.io/uxteam/rosa-crypto-tool-devel/pull_requests/1
Patch1:		0001-Explicit-python-versioning-in-shebang.patch
BuildRequires:	pkgconfig(python)
Requires: 	imagemagick
Requires:	pythonegg(file-magic) >= 0.3
Requires:	pythonegg(pyudev)
%if %{mdvver} >= 201910
Requires:	python2
Requires:	python2-qt4-core
Requires:	python2-qt4-gui
%else
Requires:	python
Requires:	python-qt4-core
Requires:	python-qt4-gui
%endif
# RCT uses unoconv to create previews of files.
# Errors with unoconv are not fatal.
# To avoid requiring libreoffice, make it an optional dep.
# Usecase: I run RCT from a container, there is no need in LibreOffice.
Recommends:	unoconv
BuildArch:	noarch

%description
Program for working with electronic digital signatures.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_datadir}/applications/%{name}.desktop
%{py2_puresitedir}/*
%{_defaultdocdir}/%{name}/*.pdf

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches

%build
%py2_build

%install
%py2_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8226 |21cr|rosa-dejurka-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Disable suspend, hibernate, sleep modes
Name:		rosa-dejurka
Version:	0.1
Release:	1
License:	MIT
Group:		Graphical desktop/Other
Url:		https://abf.io/import/rosa-dejurka

%description
Disable suspend, hibernate, sleep modes.
Recommended for problems with hardware.

%files
%{_sysconfdir}/systemd/system/*

#----------------------------------------------------------------------------

%package gnome
Summary:	Disable suspend, hibernate, sleep modes in menu for gnome
Group:		Graphical desktop/Other
Requires:	gsettings-desktop-schemas
Requires:	%{name} = %{EVRD}
OrderWithRequires:	gsettings-desktop-schemas

%description gnome
Disable suspend, hibernate, sleep modes in menu for gnome.

%files gnome

%posttrans
# /foo1/ {n;s/foo2/foo3/} - replace foo2 with foo3 on next one string for foo1 only
[ -f %{_datadir}/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml ] && \
	sed -i "/disable-lock-screen/ {n;s/false/true/}" \
	%{_datadir}/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml

%postun
[ -f %{_datadir}/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml ] && \
	sed -i "/disable-lock-screen/ {n;s/true/false/}" \
	%{_datadir}/glib-2.0/schemas/org.gnome.desktop.lockdown.gschema.xml

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/
ln -s /dev/null %{buildroot}%{_sysconfdir}/systemd/system/sleep.target
ln -s /dev/null %{buildroot}%{_sysconfdir}/systemd/system/suspend.target
ln -s /dev/null %{buildroot}%{_sysconfdir}/systemd/system/hibernate.target
ln -s /dev/null %{buildroot}%{_sysconfdir}/systemd/system/hybrid-sleep.target

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8227 |21cr|rosa-elementary-dark-theme-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	rosa-elementary-dark-theme
%define name	rosa-elementary-dark-theme
%define version	2.4.2

Summary:	ROSA-elementary theme
Name:		%{name}
Version:	%{version}
Release:	12
Source0:	%{tarname}-%{version}.tar.bz2
#Theme for openbox
Source1:	rosa-elementary-theme-openbox.tar.gz
# new metacity theme
Source2:	metacity-1.tar.bz2
Source3:	metacity-theme-1.xml

Patch0:		rosa-elementary-dark-theme-2.4.2-force-panel-color.patch

License:	GPLv2
Group:		Graphical desktop/Other
BuildArch:	noarch
Requires:	murrine
Requires:	gtk-aurora-engine
Recommends:	rosa-icons

%description
ROSA-elementary theme creates specially for the Mandriva. Based on the
original theme by Daniel Fore (aka Dan Rabbit).

%prep
%setup -q -a1
%patch0 -p1
rm -fr metacity-1

tar xjf %{SOURCE2}



%install
%__rm -rf %{buildroot}
%__mkdir -p %{buildroot}%{_datadir}/themes/rosa-elementary-dark
cp -rf ./* %{buildroot}%{_datadir}/themes/rosa-elementary-dark

install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/themes/rosa-elementary-dark/metacity-1/metacity-theme-1.xml

%clean
%__rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%{_datadir}/themes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8228 |21cr|rosa-elementary-theme-3.0.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define aurorae_version 1.1.3

Summary:	ROSA-elementary theme
Name:		rosa-elementary-theme
Version:	3.0.3
Release:	8
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.rosalinux.com
Source0:	https://abf.io/uxteam/%{name}-devel/archive/%{name}-devel-v%{version}.tar.gz
#Theme for openbox
Source1:	%{name}-openbox.tar.gz
# new metacity theme
#Aurorae theme
Source3:	rosa-aurorae-%{aurorae_version}.tar.xz
Requires:	gtk-aurora-engine
Requires:	murrine
Recommends:	rosa-icons
BuildArch:	noarch

%description
ROSA-elementary theme created specially for the ROSA. Originally inspired
by Elementary theme by Daniel Fore (aka Dan Rabbit).

%files
%defattr(644,root,root,755)
%{_datadir}/themes/*
%{_datadir}/apps/aurorae/themes/rosa/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-devel-v%{version}
%apply_patches

tar xJf %{SOURCE3}

%build

%install
mkdir -p %{buildroot}%{_datadir}/themes
mkdir -p %{buildroot}%{_datadir}/themes/rosa-elementary
cp -rf ./* %{buildroot}%{_datadir}/themes/rosa-elementary
mkdir -p %{buildroot}%{_datadir}/apps/aurorae/themes/rosa/
cp -rf ./rosa-%{aurorae_version}/* %{buildroot}%{_datadir}/apps/aurorae/themes/rosa/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8229 |21cr|rosa-flat-icons-0.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	rosa-flat
%define _name	rosa-flat

Summary:	ROSA Flat icons theme
Name:		%{_name}-icons
Version:	0.0.2
Release:	6
Source0:	%{tarname}.tar.xz
URL:		www.rosalinux.com
License:	GPLv2
Group:		Graphical desktop/Other
BuildArch:	noarch
BuildRequires:	fdupes inkscape
Requires:	gnome-icon-theme

%description
ROSA icon theme is high quality icon theme for KDE, GNOME and Xfce.
It is part of ROSA theme pack - theme for ROSA Desktop distribution.
Initially based on the original icon theme Elementary by Daniel Fore
(Dan Rabbit).

%prep
%setup -q -n %{_name}

%install
mkdir -p %{buildroot}%{_datadir}/icons/%{_name}
cp -rf ./* %{buildroot}%{_datadir}/icons/%{_name}
%fdupes -s %{buildroot}%{_datadir}/icons/%{_name}

%files
%{_datadir}/icons/%{_name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8230 |21cr|rosa-gaming-repos-2021.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Repo with rosa-gaming contrib projects (not for stable use)
Name:		rosa-gaming-repos
Version:	2021.1
Release:	13
License:	MIT
Group:		Games/Other
Url:		https://abf.io/rosa_gaming
ExclusiveArch:	x86_64

%description
Configuration of linux-gaming.ru repository.
Warning! This repository is not for stable use.

%files
%config(noreplace) %{_sysconfdir}/yum.repos.d/rosa-gaming.repo

#----------------------------------------------------------------------------

%package xanmod
Summary:	Repo with contrib xanmod kernel (not for stable use)
Group:		Games/Other

%description xanmod
Configuration of contrib xanmod kernel repository.
See https://forum.rosalinux.ru/viewtopic.php?t=10295
Warning! This repository is not for stable use.

%files xanmod
%config(noreplace) %{_sysconfdir}/yum.repos.d/kernel-xanmod.repo

#----------------------------------------------------------------------------

%package reos-kde
Summary:	Repo with REOS KDE OS (not for stable use)
Group:		Games/Other

%description reos-kde
Configuration of REOS KDE OS repository.
Warning! This repository is not for stable use.

%files reos-kde
%config(noreplace) %{_sysconfdir}/yum.repos.d/reos-kde.repo

#----------------------------------------------------------------------------

%package x11-backports
Summary:	Repo with x11-backports projects (not for stable use)
Group:		Games/Other

%description x11-backports
Configuration of x11-backports repository.
Warning! This repository is not for stable use.

%files x11-backports
%config(noreplace) %{_sysconfdir}/yum.repos.d/x11-backports.repo

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}/yum.repos.d
cat > %{buildroot}%{_sysconfdir}/yum.repos.d/rosa-gaming.repo <<EOF
[rosa-gaming-x86_64]
name=rosa-gaming-x86_64
baseurl=http://abf-downloads.rosalinux.ru/rosa_gaming_personal/repository/rosa2021.1/x86_64/main/release/
gpgcheck=0
enabled=1
cost=999

[rosa-gaming-i686]
name=rosa-gaming-i686
baseurl=http://abf-downloads.rosalinux.ru/rosa_gaming_personal/repository/rosa2021.1/i686/main/release/
gpgcheck=0
enabled=1
EOF

cat > %{buildroot}%{_sysconfdir}/yum.repos.d/kernel-xanmod.repo <<EOF
[kernel-xanmod-6-1-x86_64]
name=kernel 6.1 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_1_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-2-x86_64]
name=kernel 6.2 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_2_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-3-x86_64]
name=kernel 6.3 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_3_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-4-x86_64]
name=kernel 6.4 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_4_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-5-x86_64]
name=kernel 6.5 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_5_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-6-x86_64]
name=kernel 6.6 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_6_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-7-x86_64]
name=kernel 6.7 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_7_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-8-x86_64]
name=kernel 6.8 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_8_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-9-x86_64]
name=kernel 6.9 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_9_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-10-x86_64]
name=kernel 6.10 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_10_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0

[kernel-xanmod-6-11-x86_64]
name=kernel 6.11 with XanMod patch
baseurl=http://abf-downloads.rosalinux.ru/kelpee_personal/repository/rosa2021.1/x86_64/kernel_6_11_xanmod/release/
enabled=1
skip_if_unavailable=1
gpgcheck=0
priority=0
EOF

cat > %{buildroot}%{_sysconfdir}/yum.repos.d/reos-kde.repo <<EOF
[reos-kde-x86_64]
name=reos-x86_64
baseurl=http://abf-downloads.rosalinux.ru/reos_personal/repository/rosa2021.1/x86_64/main/release/
gpgcheck=0
enabled=1
cost=999
EOF

cat > %{buildroot}%{_sysconfdir}/yum.repos.d/x11-backports.repo <<EOF
[x11-backports-x86_64]
name=x11-backports-x86_64
baseurl=http://abf-downloads.rosalinux.ru/x11_backports_personal/repository/rosa2021.1/x86_64/main/release/
gpgcheck=0
enabled=1
cost=999

[x11_backports-i686]
name=x11-backports-i686
baseurl=http://abf-downloads.rosalinux.ru/x11_backports_personal/repository/rosa2021.1/i686/main/release/
gpgcheck=0
enabled=1
cost=1000
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8231 |21cr|rosalinuxro-repo-3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:      RosalinuxRo repository for 2021.1
Name:         rosalinuxro-repo
Version:      3
Release:      2
Group:        System/Base
License:      MIT
Url:          https://abf.io/platforms/rosalinuxro_personal
Source0:      RosalinuxRo.repo
Source1:      RosalinuxRo-i686.repo
Source2:      RosalinuxRo-aarch64.repo
Source3:      License

BuildRequires:  dnf-yum
Requires:	rosa-repos
# should be installed by default
Requires:	dnf-plugins-core


%description
RosalinuxRo repository for 2021.1 install config.

%files
%doc License
%config(noreplace) %{_sysconfdir}/yum.repos.d/10-RosalinuxRo.repo

%prep

cp -R %{S:3} License

%build
# nothing to build


%install
mkdir -p %{buildroot}%{_sysconfdir}/yum.repos.d

%ifarch x86_64
install %{S:0} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-RosalinuxRo.repo
%endif

%ifarch  %{ix86}
install %{S:1} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-RosalinuxRo.repo
%endif

%ifarch aarch64
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-RosalinuxRo.repo
%endif


%post
dnf config-manager --set-enabled RosalinuxRo
# clean , and use the new.
rm -fr %{_sysconfdir}/yum.repos.d/RosalinuxRo.repo.rpmnew
rm -fr %{_sysconfdir}/yum.repos.d/RosalinuxRo.repo.rpmsave



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8232 |21cr|rosa-lxde-flat-0.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	rosa-lxde-flat

Summary:	ROSA-elementary theme
Name:		rosa-lxde-flat
Version:	0.0.4
Release:	5
Source0:	%{tarname}-%{version}.tar.xz
License:	GPLv2
Group:		Graphical desktop/Other
URL:		www.rosalinux.com
BuildArch:	noarch
Requires:	murrine
Recommends:	rosa-flat-icons

%description
ROSA flat theme creates specially for the ROSA LXDE spin.
Originally based on Sive Flat theme by http://nale12.deviantart.com

%prep
%setup -q

%install
%__mkdir -p %{buildroot}%{_datadir}/themes
%__mkdir -p %{buildroot}%{_datadir}/themes/rosa-lxde-flat
cp -rf ./* %{buildroot}%{_datadir}/themes/rosa-lxde-flat

%files
%defattr(644,root,root,755)
%{_datadir}/themes/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8233 |21cr|rosa-media-player-1.6.11-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without midi

Summary:	Multimedia player based on mplayer technology
Name:		rosa-media-player
Version:	1.6.11
Release:	14
License:	GPLv2+
Group:		Video
Url:		http://www.rosalinux.com
Source0:	%{name}-%{version}.tar.gz
Patch0:		rosa-media-player-1.6.11-open-dvd.patch
Patch1:		rosa-media-player-1.6.11-initial-preference.patch
Patch2:		rosa-media-player-1.6.11-russian-comment.patch
Patch3:		rosa-media-player-1.6.11-wildmidi4.patch
BuildRequires:	qt4-linguist
BuildRequires:	qt4-devel
%if %{with midi}
BuildRequires:	wildmidi-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(QJson)
Requires:	mencoder
Requires:	mplayer >= 1.0-1.rc1
Requires:	ffmpeg
Requires:	xdg-utils
%if %{with midi}
Requires:	timidity-patch-gravis
%endif
Requires:	wget

%description
Multimedia player that supports most of audio and video formats.

%files
%doc *.txt docs/*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/shortcuts
%dir %{_datadir}/%{name}/translations
%attr(755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}/*.conf
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}/shortcuts/*
%{_datadir}/apps/solid/actions/*.desktop
%{_datadir}/solid/actions/*.desktop
%{_iconsdir}/hicolor/*/apps/rosamp.png
%lang(ar_SY) %{_datadir}/%{name}/translations/rosamp_ar_SY.qm
%lang(en) %{_datadir}/%{name}/translations/rosamp_en.qm
%lang(cs) %{_datadir}/%{name}/translations/rosamp_cs.qm
%lang(de) %{_datadir}/%{name}/translations/rosamp_de.qm
%lang(es) %{_datadir}/%{name}/translations/rosamp_es.qm
%lang(et) %{_datadir}/%{name}/translations/rosamp_et.qm
%lang(fi) %{_datadir}/%{name}/translations/rosamp_fi.qm
%lang(fr) %{_datadir}/%{name}/translations/rosamp_fr.qm
%lang(gl) %{_datadir}/%{name}/translations/rosamp_gl.qm
%lang(hu) %{_datadir}/%{name}/translations/rosamp_hu.qm
%lang(it) %{_datadir}/%{name}/translations/rosamp_it.qm
%lang(ja) %{_datadir}/%{name}/translations/rosamp_ja.qm
%lang(ku) %{_datadir}/%{name}/translations/rosamp_ku.qm
%lang(lt) %{_datadir}/%{name}/translations/rosamp_lt.qm
%lang(mk) %{_datadir}/%{name}/translations/rosamp_mk.qm
%lang(nl) %{_datadir}/%{name}/translations/rosamp_nl.qm
%lang(pl) %{_datadir}/%{name}/translations/rosamp_pl.qm
%lang(pt_BR) %{_datadir}/%{name}/translations/rosamp_pt_BR.qm
%lang(pt_pt) %{_datadir}/%{name}/translations/rosamp_pt.qm
%lang(ro_RO) %{_datadir}/%{name}/translations/rosamp_ro_RO.qm
%lang(ru_RU) %{_datadir}/%{name}/translations/rosamp_ru_RU.qm
%lang(sl) %{_datadir}/%{name}/translations/rosamp_sl.qm
%lang(tr) %{_datadir}/%{name}/translations/rosamp_tr.qm
%lang(uk_UA) %{_datadir}/%{name}/translations/rosamp_uk_UA.qm
%lang(vi) %{_datadir}/%{name}/translations/rosamp_vi_VN.qm
%lang(zh_CN) %{_datadir}/%{name}/translations/rosamp_zh_CN.qm
%lang(zh_TW) %{_datadir}/%{name}/translations/rosamp_zh_TW.qm

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%apply_patches

%build
%setup_compile_flags
./get_romp_version.sh %{version} %{release}
%if %{with midi}
%make PREFIX=%{_prefix} QMAKE=%{qt4bin}/qmake LRELEASE=%{qt4bin}/lrelease
%else
%make PREFIX=%{_prefix} QMAKE=%{qt4bin}/qmake LRELEASE=%{qt4bin}/lrelease no-midi-support
%endif

%install
%makeinstall_std PREFIX=%{_prefix}

# remove wrongly put docs
rm -rf %{buildroot}%{_datadir}/doc

# Plasma 5 support
mkdir -p %{buildroot}%{_datadir}/solid/actions
cp %{buildroot}%{_datadir}/apps/solid/actions/*.desktop %{buildroot}%{_datadir}/solid/actions/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8234 |21cr|rosa-media-player-plugin-1.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define librosampcore %mklibname rosampcore %{major}

Summary:	ROSA Media Player Plugin
Name:		rosa-media-player-plugin
Version:	1.6
Release:	10
License:	GPLv3+
Group:		Video
Url:		https://abf.rosalinux.ru/import/rosa-media-player-plugin
Source0:	%{name}-%{version}.tar.gz
Patch0:		rosa-media-player-plugin-1.6-undefined.patch
BuildRequires:	qt4-linguist
BuildRequires:	qt4-devel
Requires:	mplayer

%description
ROSA Media Player Plugin is designed to use with internet browsers like Firefox
and Chrome/Chromium.

%files
%{_libdir}/mozilla/plugins/librosa-media-player-plugin-*
%{_datadir}/rosa-media-player-plugin/translations/rosamp_plugin*

#----------------------------------------------------------------------------

%package -n %{librosampcore}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{name} < 1.6-5

%description -n %{librosampcore}
Shared library for %{name}.

%files -n %{librosampcore}
%{_libdir}/librosampcore.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q -c
%patch0 -p1

%build
mkdir build
cd build
%qmake_qt4 ../rosa-media-player-plugin.pro
%make
lrelease ../rosa-media-player-plugin.pro

%install
mkdir -p %{buildroot}%{_libdir}/mozilla/plugins/
mkdir -p %{buildroot}%{_libdir}/mozilla/plugins/translations/
mkdir -p %{buildroot}%{_libdir}/
mkdir -p %{buildroot}%{_datadir}/rosa-media-player-plugin/translations/

echo $PWD
cd build
cp -f rosamp-plugin/build/librosa-media-player-plugin-smp.so %{buildroot}%{_libdir}/mozilla/plugins/
cp -f rosamp-plugin/build/librosa-media-player-plugin-dvx.so %{buildroot}%{_libdir}/mozilla/plugins/
cp -f rosamp-plugin/build/librosa-media-player-plugin-qt.so %{buildroot}%{_libdir}/mozilla/plugins/
cp -f rosamp-plugin/build/librosa-media-player-plugin-rm.so %{buildroot}%{_libdir}/mozilla/plugins/
cp -f rosamp-plugin/build/librosa-media-player-plugin-wmp.so %{buildroot}%{_libdir}/mozilla/plugins/
cp -f romp/rosa-media-player/build/librosampcore.so.1.0.0 %{buildroot}%{_libdir}/

cp -f ../translations/*.qm %{buildroot}%{_datadir}/rosa-media-player-plugin/translations/
cd romp/rosa-media-player/build/
ln -s librosampcore.so.1.0.0 %{buildroot}%{_libdir}/librosampcore.so.1.0
ln -s librosampcore.so.1.0.0 %{buildroot}%{_libdir}/librosampcore.so.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8235 |21cr|rosa-totp-manager-0.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rosa-totp-manager-devel

Summary:	Program for generating time-based one-time password
Name:		rosa-totp-manager
Version:	0.0.3
Release:	3
License:	BSD
Group:		System/Base
Url:		https://abf.rosalinux.ru/uxteam/rosa-totp-manager-devel
Source0:	%{url}/archive/%{oname}-version-%{version}.tar.gz
Requires:	PyQt4
Requires:	qt4-database-plugin-sqlite
Requires:	python2 >= 2.6
Requires:	python2-six
BuildArch:	noarch

BuildRequires:  python2
BuildRequires:  gettext

%description
Program for generating time-based one-time password

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/applications/%{name}.desktop
%{python2_sitelib}/*
# %{_defaultdocdir}/%{name}/*.pdf

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-version-%{version}

%build

%install
%__python2 setup.py install --root %{buildroot} --install-purelib=%{python2_sitelib}

%find_lang %{name}

#fix python shebang
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/rosa-totp-manager

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8236 |21cr|rosa-wallpapers-2015-0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           rosa-wallpapers-2015
Version:        0.2
Release:        4
Summary:        Wallpapers from ROSA users
Group:          Graphical desktop/KDE
License:        Creative Commons Attribution-NonCommercial
Url:            https://vk.com/album-33847957_216724465
Source0:        https://abf.io/soft/rosa-wallpapers-2015/archive/%{name}-%{version}.tar.gz
BuildArch:      noarch
Obsoletes:		rosa-wallpapers < 0.2-4
Conflicts:		rosa-wallpapers < 0.2-4
# own /usr/share/wallpapers
Requires:		rosa-wallpapers-filesystem

%description
Wallpapers created by ROSA users from 2015

%prep
%setup -q -n rosa-wallpapers-%{version}

%build
# Nothing to do

%install
mkdir -p %{buildroot}%{_datadir}/wallpapers
cp -r * %{buildroot}%{_datadir}/wallpapers

%files
%{_datadir}/wallpapers/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8237 |21cr|rosa-wallpapers-2019-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wallpapers from ROSA users in 2019
Name:		rosa-wallpapers-2019
Version:	0.1
Release:	2
License:	Creative Commons Attribution-NonCommercial
Group:		Graphical desktop/GNOME
Url:		https://vk.com/album-33847957_261187611
Source0:	%{name}-%{version}.tar.xz
BuildArch:	noarch

%description
Wallpapers created by ROSA users in 2019.

%files
%{_datadir}/wallpapers/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# Nothing to do

%install
mkdir -p %{buildroot}%{_datadir}/wallpapers
cp -r * %{buildroot}%{_datadir}/wallpapers

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8238 |21cr|rosa-xfce-config-2021.1-52.git66b542.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 66b542d2dabd85681534fb8911d52d11464817e4
%define commit_short %(echo %{commit} | head -c6)

Summary:	ROSA Xfce configuration files
Name:		rosa-xfce-config
Version:	%{rosa_release}
# On updates:
# 1) change %%commit above
# 2) change release like this: 0.gitXXX.1 -> 0.gitXXX.2
Release:	52.git%{commit_short}.1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://rosalinux.ru
Source0:	https://abf.io/soft/rosa-xfce-config/archive/rosa-xfce-config-%{commit}.tar.gz
BuildArch:	noarch

# macros with fontconfig directories
BuildRequires:	fontpackages-devel
# fonts in *.xcf (GIMP file)
BuildRequires:	fonts-ttf-freefont
# Tests of /usr/share/wallpapers
BuildRequires:	xfdesktop
Requires:	xfdesktop
Requires:	xfconf
# own /usr/share/wallpapers
Requires:	rosa-wallpapers-filesystem
# Wallpapers from here are set as default ones
Requires:	rosa-wallpapers-2021
# xfce4-firstrun calls dbus-send and pgrep if /usr/bin/flameshot exists
Requires:	(%{_bindir}/dbus-send if %{_bindir}/flameshot)
Requires:	(%{_bindir}/pgrep if %{_bindir}/flameshot)

# Weak dependencies on what is defined as defaults
# (Work in progress...)
Recommends:	vertex-light-rospo-gtk2-theme
Recommends:	vertex-light-rospo-gtk3-theme
Recommends:	vertex-light-rospo-xfwm4-theme
Recommends:	rosa-icons-2021-xfce
Recommends:	smooth-rospo-sound-theme
Recommends:	breeze-cursor-theme
# Font in GTK+3 & xfwm4
Recommends:	fonts-ttf-freefont
# "Monospace" in fontconfig config
Recommends:	fonts-ttf-liberation-mono
# Qt5 will use it by default if it is installed and will use fonts and file dialogs from GTK+3
# https://github.com/qt/qtbase/blob/5.15/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp#L849-L882
Recommends:	qt5-platformtheme-gtk3

# Thunar actions (uca.xml)
# TODO: this crap must be improved and be in separate subpackages
Recommends:	%{_bindir}/brasero
Recommends:	%{_bindir}/catfish
Recommends:	%{_bindir}/exo-open
Recommends:	%{_bindir}/ffmpeg
Recommends:	%{_bindir}/l3afpad
Recommends:	%{_bindir}/pkexec
Recommends:	%{_bindir}/qwinff
Recommends:	%{_bindir}/recoll
Recommends:	%{_bindir}/unoconv
Recommends:	%{_bindir}/zenity
Recommends:	coreutils

# /etc/xdg/autostart/*.desktop
Recommends:	%{_bindir}/canberra-gtk-play

# Default applications (helpers.rc)
# Large Thunderbird and Chromium may be not installed,
# then Whisker Menu won't show them
#Recommends:	%{_bindir}/thunderbird
#Recommends:	%{_bindir}/chromium-browser
Recommends:	%{_bindir}/thunar
Recommends:	%{_bindir}/xfce4-terminal

# key bindings, xfce4-keyboard-shortcuts.xml
Recommends:	%{_bindir}/xfrun4
Recommends:	%{_bindir}/xflock4
Recommends:	%{_bindir}/xfce4-display-settings
Recommends:	%{_bindir}/exo-open
Recommends:	%{_bindir}/amixer
Recommends:	%{_bindir}/xfce4-taskmanager
Recommends:	%{_bindir}/xkill
Recommends:	%{_bindir}/xfce4-popup-whiskermenu
Recommends:	%{_bindir}/flameshot
Recommends:	%{_bindir}/xfce4-screenshooter

# panel/whiskermenu-4.rc
Recommends:	%{_bindir}/menulibre
Recommends:	%{_bindir}/mugshot
Recommends:	%{_bindir}/xfce4-settings-manager
Recommends:	%{_bindir}/xflock4
Recommends:	application(xfce4-terminal-emulator.desktop)
Recommends:	application(xfce4-file-manager.desktop)
Recommends:	application(xfce4-mail-reader.desktop)
Recommends:	application(xfce4-web-browser.desktop)

# mimeapps.list
Recommends: application(l3afpad.desktop)
Recommends: application(xviewer.desktop)
Recommends: application(mcomix3.desktop)
Recommends: application(atril.desktop)
# xviewer is configured but is not needed out of the box
#Recommends: application(xviewer.desktop)
Recommends: application(okularApplication_pdf.desktop)
Recommends: application(okularApplication_kimgio.desktop)
# qpdfview is configured but is not needed out of the box
#Recommends: application(qpdfview.desktop)
Recommends: application(baka-mplayer.desktop)

%description
This package contains configuration files for ROSA Xfce desktop environment.

%files
%doc AUTHORS ChangeLog README.update.urpmi
%dir %{_sysconfdir}/xdg/rosa-xfce-config
%{_sysconfdir}/xdg/rosa-xfce-config/Terminal
%{_sysconfdir}/xdg/rosa-xfce-config/Thunar
%{_sysconfdir}/xdg/rosa-xfce-config/autostart/
%{_sysconfdir}/xdg/rosa-xfce-config/xfce4
%{_sysconfdir}/xdg/rosa-xfce-config/menus
%{_sysconfdir}/xdg/rosa-xfce-config/mimeapps.list
%config(noreplace) %{_sysconfdir}/profile.d/10-rosa-xfce-config-xdg.sh
%{_bindir}/xfce4-firstrun
%{_bindir}/xfce-reset
%{_prefix}/lib/systemd/user-environment-generators/10-rosa-xfce-config-systemd-env.sh
%{_datadir}/wallpapers/rosa-xfce-1.jpg
%{_fontconfig_templatedir}/40-rosa-xfce-config-monospace.conf
%dir %{_datadir}/rosa-xfce-config
%{_datadir}/rosa-xfce-config/rosa-logo-16x16.svg
%config(noreplace) %{_fontconfig_confdir}/40-rosa-xfce-config-monospace.conf

#----------------------------------------------------------------------------

# ROSA postinstall script in Anaconda removes all packages by glob 'anaconda*',
# so prefixing the name of this subpackage with 'anaconda-'

%package -n anaconda-%{name}-scripts
Summary:	Scripts to tune LiveCD session of XFCE
Group:		Graphical desktop/Xfce
Requires:	anaconda-core
Supplements:	(anaconda-core and %{name})

%description -n anaconda-%{name}-scripts
Scripts to tune LiveCD session of XFCE

%files -n anaconda-%{name}-scripts
/etc/anaconda-scripts.d/livecd-init/livecd-fix-xfce-desktop.sh

#----------------------------------------------------------------------------

# https://abf.io/import/gdm/blob/1e85a25c61/0001-Allow-to-set-default-session-via-env.patch
# https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/137
%package gdm
Summary:	Set XFCE as the default session in GDM
Group:		Graphical desktop/Xfce
Requires:	gdm
# XFCE does not run on Wayland, no sense to run
# GDM greeter via Wayland and then XFCE via Xorg
Recommends:	gdm-default-to-xorg

%description gdm
Set XFCE as the default session in GDM

%files gdm
# XXX %%{_unitdir}/gdm.service.d is not owned by any package
%{_unitdir}/gdm.service.d/gdm-default-session-xfce.conf

#----------------------------------------------------------------------------

%post
# Delete crap created by older versions of this package
# TODO: drop this scriptlet later
if [ "$1" != 2 ]; then exit 0; fi
sed -i'' -e '/^export QT_QPA_PLATFORMTHEME=\"qt5ct\"$/d' %{_sysconfdir}/profile || :

%prep
%setup -q -n rosa-xfce-config-%{commit}

%build

%install

# Make sure we are using the same directory as xfdesktop package
# to make our wallpaper be in the same directory with default ones
test -d %{_datadir}/wallpapers
rpm -qf --qf '%%{name}\n' %{_datadir}/wallpapers/* | grep -q '^xfdesktop$'

%makeinstall_std \
	PREFIX=%{_prefix} \
	SYSCONFDIR=%{_sysconfdir} \
	FONTCONFIG_TEMPLATEDIR=%{_fontconfig_templatedir} \
	FONTCONFIG_CONFDIR=%{_fontconfig_confdir}

mkdir -p %{buildroot}%{_unitdir}/gdm.service.d/
cat > %{buildroot}%{_unitdir}/gdm.service.d/gdm-default-session-xfce.conf << 'EOF'
[Service]
Environment=GDM_DEFAULT_SESSION=xfce
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8239 |21cr|rosegarden-20.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rosegarden
Version:	20.12
Release:	3
Summary:	Midi, audio and notation editor
License:	GPLv2+
Group:		Sound
Url:		https://www.rosegardenmusic.com/
Source0:	https://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake >= 2.8.12
BuildRequires:	qt5-linguist-tools
BuildRequires:	chrpath
BuildRequires:	imagemagick
BuildRequires:	libxml2-utils
BuildRequires:	makedepend
BuildRequires:	perl
BuildRequires:	shared-mime-info
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(fftw3) >= 3.0.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(liblo) >= 0.7
BuildRequires:	pkgconfig(lrdf) >= 0.2
BuildRequires:	pkgconfig(Qt5Core) >= 5.1.0
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(samplerate) >= 0.1.2
BuildRequires:	pkgconfig(sndfile) >= 1.0.16
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
Requires:	flac
Requires:	wavpack
Requires:	libsndfile-progs
# For sndfile-resample, see https://bugzilla.novell.com/show_bug.cgi?id=443543
# - AdamW 2008/12
Requires:	libsamplerate-progs
Requires:	xterm
Recommends:	fluidsynth
Recommends:	lilypond
Recommends:	okular
Recommends:	qjackctl
%rename		%{name}4

%description
Rosegarden is an attractive, user-friendly MIDI and audio sequencer, notation
editor, and general-purpose music composition and editing application for Unix
and Linux

%files
%doc AUTHORS COPYING README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/com.rosegardenmusic.%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/icons/hicolor/*/mimetypes/application-x-%{name}-*.png
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/metainfo/%{name}.appdata.xml

#--------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


# Fix exec bits to avoid rpmlint noise
chmod -x src/gui/widgets/BaseTextFloat.*


%build

%cmake ..
%make


%install
%makeinstall_std -C build

# Install some extra files
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -pr \
	data/autoload \
	data/chords \
	data/examples \
	data/fonts \
	data/library \
	data/percussion \
	data/pitches \
	data/pixmaps \
	data/presets \
	data/profile \
	data/rc \
	data/styles \
	data/templates \
	%{buildroot}%{_datadir}/%{name}

# FIXME Install manually translation .qm files:
# they are in build/src and not bundled with the main executable
mkdir -p %{buildroot}%{_datadir}/%{name}/locale
cp build/src/*.qm %{buildroot}%{_datadir}/%{name}/locale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8240 |21cr|rote-0.2.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname		%mklibname %{name} %{major}
%define	libname_devel	%mklibname -d  %{name} %{major}

Summary:	Simple C library for VT102 terminal emulation
Name:		rote
Version:	0.2.8
Release:	11
License:	GPL
Group:		System/Libraries
Url:		http://rote.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(ncurses)

%description
ROTE is a simple C library for VT102 terminal emulation. It allows
the programmer to set up virtual 'screens' and send them data. The
virtual screens will emulate the behavior of a VT102 terminal,
interpreting escape sequences, control characters and such. The
library supports ncurses as well so that you may render the 
virtual screen to the real screen when you need to.

%package -n %{libname}
Summary:	Simple C library for VT102 terminal emulation
Group:		System/Libraries

%description -n %{libname}
ROTE is a simple C library for VT102 terminal emulation. It allows
the programmer to set up virtual 'screens' and send them data. The
virtual screens will emulate the behavior of a VT102 terminal,
interpreting escape sequences, control characters and such. The
library supports ncurses as well so that you may render the 
virtual screen to the real screen when you need to.

This package contains the runtime files needed for ROTE.

%package -n %{libname_devel}
Summary:	Simple C library for VT102 terminal emulation
Group:		System/Libraries
Provides:	librote-devel
Requires:	%{libname} = %{version}-%{release}

%description -n %{libname_devel}
ROTE is a simple C library for VT102 terminal emulation. It allows
the programmer to set up virtual 'screens' and send them data. The
virtual screens will emulate the behavior of a VT102 terminal,
interpreting escape sequences, control characters and such. The
library supports ncurses as well so that you may render the 
virtual screen to the real screen when you need to.

This package contains the developement files needed for ROTE.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/*.so.*

%files -n %{libname_devel}
%{_libdir}/*.so
%{_includedir}/*
%{_bindir}/rote-config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8241 |21cr|roundcubemail-1.3.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude pear\\(vendor/autoload.php\\)|pear\\(xmlapi.php\\)
## pear(xmlapi.php) may need to be packaged, but for the time being a bug has been filed
%define oname %{name}-%{version}

%global php_inidir %{_sysconfdir}/php.d

# Paths. Do not include trailing slash
%global roundcube %{_datadir}/roundcubemail
%global roundcube_plugins %{roundcube}/plugins
%global roundcube_conf %{_sysconfdir}/roundcubemail
%global roundcube_log %{_logdir}/roundcubemail
%global roundcube_lib %{_localstatedir}/lib/roundcubemail

Summary:	Round Cube Webmail is a browser-based multilingual IMAP client
Name:		roundcubemail
Version:	1.3.15
Release:	1
Epoch:		1
Group:		System/Servers
License:	GPLv3
Url:		http://www.roundcube.net/
Source0:	https://github.com/roundcube/roundcubemail/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	roundcubemail.conf
Source2:	roundcubemail.logrotate
Source3:	roundcubemail-README
Requires:	apache-mod_php
Requires:	php-gd
Requires:	php-gettext
Requires:	php-iconv
Requires:	php-mbstring
Requires:	php-mcrypt
Requires:	php-openssl
Requires:	php-session
Requires:	php-pdo_mysql
Requires:	php-pear-Auth_SASL
Requires:	php-pear-Mail_Mime
Requires:	php-pear-Mail_mimeDecode
Requires:	php-pear-Net_SMTP
Requires:	php-pear-Net_LDAP2
Requires:	php-pear-Net_Sieve
Requires:	php-pear-Net_Socket
Requires:	php-pear-MDB2
Requires:	php-pear-Net_IDNA2
Requires(pre):	php-pear >= 1.9.0
Requires:	php-xml
Requires:	php-pear-Crypt_GPG
Recommends:	php-fileinfo
Recommends:	php-intl
Recommends:	php-pear-MDB2_Driver_mysql
Recommends:	php-zip
Provides:	roundcubemail-skin-larry
Provides:	roundcubemail-skin-classic
Provides:	roundcubemail-plugin-jqueryui
Provides:	roundcubemail-plugin-acl
BuildArch:	noarch

%description
RoundCube Webmail is a browser-based multilingual IMAP client with an 
application-like user interface. It provides full functionality you 
expect from an e-mail client, including MIME support, address book, 
folder manipulation, message searching and spell checking.
RoundCube Webmail is written in PHP and requires a database: MariaDB,
PostgreSQL and SQLite are known to work.
The user interface is fully skinnable using XHTML and CSS 2.

%files
%doc CHANGELOG LICENSE README.md SQL UPGRADING
%{_datadir}/%{name}
%dir %{_sysconfdir}/%{name}
%attr(0755,root,apache)%{_logdir}/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0640,root,apache)%config(noreplace) %{_sysconfdir}/%{name}/acl.inc.php
%attr(0640,root,apache)%config(noreplace) %{_sysconfdir}/%{name}/defaults.inc.php
%attr(0640,root,apache)%config(noreplace) %{_sysconfdir}/%{name}/config.inc.php
%attr(0640,root,apache)%config(noreplace) %{_sysconfdir}/%{name}/enigma.inc.php
%attr(0640,root,apache)%config(noreplace) %{_sysconfdir}/%{name}/managesieve.inc.php
%attr(0640,root,apache)%config(noreplace) %{_sysconfdir}/%{name}/mimetypes.php
%attr(0640,root,apache)%config(noreplace) %{_sysconfdir}/%{name}/password.inc.php
%config(noreplace) %{_webappconfdir}/%{name}.conf
%attr(0775,root,apache) %dir %{_localstatedir}/lib/roundcubemail
%attr(0770,root,apache) %dir %{_localstatedir}/lib/roundcubemail/plugins
%attr(0770,root,apache) %dir %{_localstatedir}/lib/roundcubemail/plugins/enigma

#---------------------------------------------------------------------------

%prep
%setup -q -n %{oname}

# remove any reference to sqlite in config file so people don't mistakely
# assume it works
sed -i '/sqlite/d' config/defaults.inc.php
sed -i 's/\r//' SQL/mssql.initial.sql

# Drop precompiled flash
find . -type f -name '*.swf' | xargs rm -f

%build

%install
install -d %{buildroot}%{roundcube}
cp -pr ./* %{buildroot}%{roundcube}
cp -a ./.htaccess %{buildroot}%{roundcube}/.htaccess

sed -i \
	-e '/memory_limit/d' \
	-e '/post_max_size/d' \
	-e '/upload_max_filesize/d' \
	%{buildroot}%{roundcube}/.htaccess

rm -rf %{buildroot}%{roundcube}/installer

mkdir -p %{buildroot}%{_webappconfdir}
cp -pr %SOURCE1 %{buildroot}%{_webappconfdir}

mkdir -p %{buildroot}%{roundcube_conf}
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cp -pr %SOURCE2 %{buildroot}%{_sysconfdir}/logrotate.d/roundcubemail

mkdir -p %{buildroot}%{roundcube_lib}/plugins/enigma
mkdir -p %{buildroot}%{roundcube_log}

mv %{buildroot}%{roundcube}/config/config.inc.php.sample %{buildroot}%{roundcube_conf}/config.inc.php
mv %{buildroot}%{roundcube}/config/defaults.inc.php %{buildroot}%{roundcube_conf}/defaults.inc.php

mv %{buildroot}%{roundcube}/config/* %{buildroot}%{roundcube_conf}/
rm -rf %{buildroot}%{roundcube}/config
rm -rf %{buildroot}%{roundcube}/logs
rm -rf %{buildroot}%{roundcube}/temp

pushd %{buildroot}%{roundcube}
ln -s ../../..%{roundcube_conf} config
ln -s ../../..%{roundcube_log} logs
ln -s ../../..%{roundcube_lib} temp
popd

# Enigma
mv %{buildroot}%{roundcube_plugins}/enigma/config.inc.php.dist %{buildroot}%{roundcube_conf}/enigma.inc.php
rm -rf %{buildroot}%{roundcube_plugins}/enigma/config.inc.php
pushd %{buildroot}%{roundcube_plugins}/enigma
ln -s ../../../../..%{roundcube_conf}/enigma.inc.php config.inc.php
rm -rf home/
ln -s ../../../../..%{roundcube_lib}/plugins/enigma/ home
popd
mkdir -p %{buildroot}%{roundcube_lib}/plugins/enigma

# ACL plugin
mv %{buildroot}%{roundcube_plugins}/acl/config.inc.php.dist %{buildroot}%{roundcube_conf}/acl.inc.php
rm -rf %{buildroot}%{roundcube_plugins}/acl/config.inc.php
pushd %{buildroot}%{roundcube_plugins}/acl/
ln -s ../../../../..%{roundcube_conf}/acl.inc.php config.inc.php
popd

# Managesieve plugin
mv %{buildroot}%{roundcube_plugins}/managesieve/config.inc.php.dist %{buildroot}%{roundcube_conf}/managesieve.inc.php
pushd %{buildroot}%{roundcube_plugins}/managesieve/
ln -s ../../../../..%{roundcube_conf}/managesieve.inc.php config.inc.php
popd

# Password plugin
mv %{buildroot}%{roundcube_plugins}/password/config.inc.php.dist %{buildroot}%{roundcube_conf}/password.inc.php
pushd %{buildroot}%{roundcube_plugins}/password/
ln -s ../../../../..%{roundcube_conf}/password.inc.php config.inc.php
popd

# clean up the buildroot
rm -rf %{buildroot}%{roundcube}/{CHANGELOG,INSTALL,LICENSE,README,UPGRADING,SQL}

# Fix anything executable that does not have a shebang
for file in `find %{buildroot}/%{roundcube} -type f -perm /a+x`; do
	[ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
done

# Find files with a shebang that do not have executable permissions
for file in `find %{buildroot}/%{roundcube} -type f ! -perm /a+x`; do
	[ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file
done

# Find files that have non-standard-executable-perm
find %{buildroot}/%{roundcube} -type f -perm /g+wx -exec chmod -v g-w {} \;

# Find files that are not readable
find %{buildroot}/%{roundcube} -type f ! -perm /go+r -exec chmod -v go+r {} \;

#
# Exclude the following external libraries
#
# php-pear-Net-IDNA2
rm -rf %{buildroot}/%{roundcube}/program/lib/Net/IDNA2/ \
	%{buildroot}/%{roundcube}/program/lib/Net/IDNA2.php
# php-pear-Net-SMTP
rm -rf %{buildroot}/%{roundcube}/program/lib/Net/SMTP.php
# php-pear-Net-Socket
rm -rf %{buildroot}/%{roundcube}/program/lib/Net/Socket.php
# php-pear-Mail
rm -rf %{buildroot}/%{roundcube}/program/lib/Mail/
# php-pear-MDB2
rm -rf %{buildroot}/%{roundcube}/program/lib/MDB2/ \
	%{buildroot}/%{roundcube}/program/lib/MDB2.php
# php-pear
rm -rf %{buildroot}/%{roundcube}/program/lib/PEAR.php \
	%{buildroot}/%{roundcube}/program/lib/PEAR5.php
# php-pear-Net-Sieve
rm -rf %{buildroot}/%{roundcube_plugins}/managesieve/lib/Net


%pre
# needed if you have kolab installed
if [ -f "/etc/roundcubemail/kolab.inc.php" ]; then
	mv /etc/roundcubemail/kolab.inc.php /etc/roundcubemail/libkolab.inc.php
fi

if [ -L %{roundcube_plugins}/enigma/home -a ! -d %{roundcube_plugins}/enigma/home ]; then
	rm -rf %{roundcube_plugins}/enigma/home >/dev/null 2>&1 || :
fi


%post
# replace default des string in config file for better security
function makedesstr () {
	chars=(0 1 2 3 4 5 6 7 8 9 a b c d e f g h i j k l m n o p q r s t u v w x y z A
	B C D E F G H I J K L M N O P Q R S T U V W X Y Z)

	max=${#chars[*]}

	for i in `seq 1 24`; do
		let rand=${RANDOM}%%${max}
		str="${str}${chars[$rand]}"
	done
	echo $str
}

sed -i "s/rcmail-\!24ByteDESkey\*Str/`makedesstr`/" /etc/roundcubemail/defaults.inc.php || : &> /dev/null

sed -i -r -e "s/.*(\s*define\(\s*'RCMAIL_VERSION'\s*,\s*').*('\);)/\1%{version}-%{release}\2/g" \
    %{roundcube}/program/include/iniset.php || :

if [ -f "%{php_inidir}/99_apcu.ini" ]; then
	if [ ! -z "`grep ^apcu.enabled=1 %{php_inidir}/99_apc.ini`" ]; then

		/sbin/systemctl condrestart %{httpd_name}

	fi
fi

/usr/share/roundcubemail/bin/updatedb.sh \
	--dir /usr/share/doc/roundcubemail/SQL/ \
	--package roundcube || : \
	>/dev/null 2>&1

exit 0

cat > README.urpmi <<EOF
WARNING: when upgrading from <= 0.9.5 the old configuration files named 
main.inc.php and db.inc.php are now deprecated and should be replaced 
with one single config.inc.php file. Run the ./bin/update.sh script to 
get this conversion done or manually merge the files. 
Also see the UPGRADE file in the doc section.
NOTE: the new config.inc.php should only contain options that differ 
from the ones listed in defaults.inc.php.
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8242 |21cr|routino-3.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	develname %mklibname -d %{name}

Summary:	Router for OpenStreetMap Data
Name:		routino
Version:	3.3.3
Release:	1
License:	AGPLv3+
Group:		File tools
Url:		https://www.routino.org/
Source0:	https://www.routino.org/download/%{name}-%{version}.tgz
Patch0:		routino-3.3.2-Makefiles-fixes.patch
Patch1:		routino-3.3.2-Drop-install-references.patch
BuildRequires:	bzip2-devel
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(liblzma)

%description
Routino is a command-line application for finding a route between two points
using the dataset of topographical information collected by OpenStreetMap. It
can be used as a routing tool in Marble.

%files
%doc %{_docdir}/routino
%{_bindir}/%{name}-*
%{_datadir}/%{name}/

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared %{name} library
Group:		System/Libraries

%description -n %{libname}
Routino is a command-line application for finding a route between two points
using the dataset of topographical information collected by OpenStreetMap. It
can be used as a routing tool in Marble.
This package provides the shared %{name} library.

%files -n %{libname}
%doc agpl-3.0.txt
%{_libdir}/libroutino.so.%{major}*
%{_libdir}/libroutino-slim.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
Routino is a command-line application for finding a route between two points
using the dataset of topographical information collected by OpenStreetMap. It
can be used as a routing tool in Marble.
This package contains development files for the %{name} library.

%files -n %{develname}
%doc agpl-3.0.txt
%{_includedir}/%{name}.h
%{_libdir}/libroutino.so
%{_libdir}/libroutino-slim.so

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Cleanup
rm -f INSTALL.txt doc/INSTALL.txt doc/html/installation.html
rm -f doc/INSTALL-MS-WIN.txt doc/html/installation-ms-windows.html

# The web stuff needs more work to be packaged. The makefiles will copy things
# into the web directory if it's present, so get rid of it now.
rm -rf web

# Upstream builds but does not install extras. Don't waste build time, nor
# bother fixing the parallel make breakage there.
rm -rf extras


%build
export CFLAGS="%{optflags}"
export LDFLAGS="%{ldflags}"
%make


%install
%makeinstall_std libdir=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8243 |21cr|rovclock-0.6e-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           rovclock
Version:        0.6e
Release:        9
Epoch:          0
Summary:        Radeon overclocking utility
License:        GPL
Group:          System/Kernel and hardware
URL:            http://www.hasw.net/linux/
Source0:        http://www.hasw.net/linux/rovclock-%{version}.tar.bz2
ExclusiveArch:  %{ix86} %{x86_64}

%description
Rovclock is a Radeon overclocking utility.

The cards that are reported to work are:

Radeon 7500
Radeon 8500
Radeon 9000
Radeon 9100
Radeon 9500 (Pro)
Radeon 9550
Radeon 9600
Mobility FireGL T2
Mobility Radeon 9600 M10
Radeon 9700 (Pro)
Radeon X550
Radeon X800XL

%prep
%setup -q

%build
make CC=%{__cc} CFLAGS="%{optflags}"

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_bindir}
cp -a %{name} %{buildroot}%{_bindir}/%{name}

%files
%defattr(-,root,root,0755)
%doc ChangeLog COPYING README
%attr(0755,root,root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8244 |21cr|rox-2.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define wrappers_ver 1.0.3
%define oname ROX-Filer

Summary:	A fast and powerful graphical file manager
Name:		rox
Version:	2.11
Release:	3
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://rox.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-filer-%{version}.tar.bz2
Source1:	http://prdownloads.sourceforge.net/%{name}/Wrappers-%{wrappers_ver}.tgz
Source2:	rox-48.png
Source3:	rox-32.png
Source4:	rox-16.png
Patch0:		rox-filer-2.10-linkage.patch
Patch1:		rox-filer-2.7-shell.patch
Patch2:		rox-2.1.0-gnuclient.patch
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(xt)

%description
ROX-Filer is a fast, powerful, and easy to use graphical file manager. It
has full support for drag-and-drop and application directories. The filer
can also provide a pinboard (allowing you to pin up files on your desktop
background) and panels. The emphasis is on uncluttered directory views;
menus and prompts only appear when needed.

The Wrappers package found on the Rox home page is already included.

%files -f %{name}.lang
%doc README*
%doc %{_libdir}/apps/%{oname}/Help
%doc %{_libdir}/apps/%{oname}/Messages/README
%dir %{_libdir}/apps/
%dir %{_libdir}/apps/%{oname}
%{_libdir}/apps/%{oname}/.DirIcon
%{_libdir}/apps/%{oname}/A*
%{_libdir}/apps/%{oname}/Options.xml
%dir %{_libdir}/apps/%{oname}/Messages
%{_libdir}/apps/%{oname}/ROX*
%{_libdir}/apps/%{oname}/images
%{_libdir}/apps/%{oname}/style.css
%{_libdir}/apps/%{oname}/subclasses
%{_libdir}/apps/%{oname}/Templates.ui
#wrappers
%{_libdir}/apps/A*
%{_libdir}/apps/E*
%{_libdir}/apps/G*
%{_libdir}/apps/L*
%{_libdir}/apps/M*
%{_libdir}/apps/N*
%{_libdir}/apps/O*
%{_libdir}/apps/README
%{_libdir}/apps/S*
%{_libdir}/apps/T*
%{_libdir}/apps/V*
%{_libdir}/apps/X*
%{_mandir}/man1/*
%{_bindir}/*
%dir %{_datadir}/Choices
%dir %{_datadir}/Choices/MIME-types
%{_datadir}/mime/packages/rox.xml
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -n rox-filer-%{version}
%patch0 -p1 -b .linkage
%patch1 -p1 -b .shell
%patch2 -p1 -b .gnuclient

%build
%setup_compile_flags
mkdir %{oname}/build
pushd %{oname}/build
../src/configure
%make
popd

%install
mkdir -p %{buildroot}%{_libdir}/apps
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/mime/packages
cp -a %{oname} %{buildroot}%{_libdir}/apps/
rm -rf %{buildroot}%{_libdir}/apps/src
rm -rf %{buildroot}%{_libdir}/apps/*/{src,build}
cp -a rox.1 %{buildroot}%{_mandir}/man1
( cd %{buildroot}%{_mandir}/man1 ; ln -s rox.1 %{oname}.1 )
cat << EOF > %{buildroot}%{_bindir}/rox
#!/bin/sh
exec %{_libdir}/apps/%{oname}/AppRun "\$@"
EOF
chmod a+x %{buildroot}%{_bindir}/rox
cp rox.xml %{buildroot}%{_datadir}/mime/packages
cp -r Choices %{buildroot}%{_datadir}

# Wrappers
cp -a Wrappers/* %{buildroot}%{_libdir}/apps/
cp -a Wrappers/README README.wrappers

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=ROX
Comment=File Manager of the ROX desktop environment
Exec=%{_bindir}/%{name} %U
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-System-FileTools;System;FileManager;
EOF


install -D %{SOURCE2} %{buildroot}%{_liconsdir}/%{name}.png
install -D %{SOURCE3} %{buildroot}%{_iconsdir}/%{name}.png
install -D %{SOURCE4} %{buildroot}%{_miconsdir}/%{name}.png

# remove temp file
rm -f %{buildroot}%{_libdir}/apps/Netscape/.AppRun.swp %{buildroot}%{_datadir}/Choices/MIME-types/* %{buildroot}%{_libdir}/apps/ROX-Filer/AppRun.*

for langdir in %{buildroot}%{_libdir}/apps/%{oname}/Messages/*/;do
echo "%lang($(basename $langdir)) $(echo $langdir |sed s!%{buildroot}!!)" >> %{name}.lang
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8245 |21cr|rox-archive-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname archive
%define appdir %{_prefix}/lib/apps

Summary:	Create and read archive files with the ROX desktop
Name:		rox-archive
Version:	2.3
Release:	1
Source0:	http://prdownloads.sourceforge.net/sourceforge/rox/%{oname}-%{version}.tar.bz2
License:	GPL
Group:		Graphical desktop/Other
URL:		http://rox.sf.net/archive.html
Requires:	rox-lib
Buildarch:	noarch

%description
You can use this program to compress a directory or file into a
single, smaller file (which can be stored, emailed, etc).

You can also use it to extract a compressed archive back into a
file or directory structure.


%prep
%setup -q -n %oname-%version

%build

%install
mkdir -p %{buildroot}/%{appdir}
cp -r Archive %{buildroot}/%{appdir}
rm -f %{buildroot}%{appdir}/Archive/Messages/dist
rm -f %{buildroot}%{appdir}/Archive/Messages/*po
rm -rf %{buildroot}%{appdir}/Archive/tests
chmod 644 %{buildroot}%{appdir}/*/*.xml

for gmo in %{buildroot}%{appdir}/*/Messages/*.gmo;do
echo "%lang($(basename $gmo|sed s/.gmo//)) $(echo $gmo|sed s!%{buildroot}!!)" >> %{name}.lang
done

%files -f %name.lang
%doc %{appdir}/Archive/Help
%dir %{appdir}/Archive/
%{appdir}/Archive/AppRun
%{appdir}/Archive/.DirIcon
%{appdir}/Archive/*.py
%{appdir}/Archive/AppInfo.xml
%{appdir}/Archive/Archive.xml
%{appdir}/Archive/__pycache__
%dir %{appdir}/Archive/Messages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8246 |21cr|rox-clib-2.1.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ROX-CLib
%define major 6
%define libname %mklibname rox-c %{major}
%define devname %mklibname rox-c -d

Summary:	Shared code for ROX applications
Name:		rox-clib
Version:	2.1.10
Release:	8
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.kerofin.demon.co.uk/rox/ROX-CLib.html
Source0:	http://www.kerofin.demon.co.uk/rox/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	rox

%description
A library for ROX applications written in C.

%files
%doc %{_libdir}/%{oname}/Help
%dir %{_libdir}/%{oname}
%{_libdir}/%{oname}/ROX-CLib.xml
%{_libdir}/%{oname}/ROX-CLib-src.xml
%{_libdir}/%{oname}/App*
%{_libdir}/%{oname}/.DirIcon
%dir %{_libdir}/%{oname}/Linux*/
%{_libdir}/%{oname}/Linux*/bin
%dir %{_libdir}/%{oname}/Linux*/lib

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of ROX-Clib
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
A library for ROX applications written in C.

%files -n %{libname}
%{_libdir}/%{oname}/Linux*/lib/librox-clib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for the rox C library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(gtk+-2.0)
Requires:	pkgconfig(libxml-2.0)
Provides:	librox-c-devel = %{EVRD}

%description -n %{devname}
A library for ROX applications written in C.

%files -n %{devname}
%{_libdir}/%{oname}/Linux*/lib/librox-clib.a
%{_libdir}/%{oname}/Linux*/lib/librox-clib.so
%{_libdir}/%{oname}/Linux*/lib/ROX-CLib.pc
%{_libdir}/%{oname}/Linux*/include

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}
rm -rf .xvpics

%config_update

%build
export CFLAGS="%{optflags}"
./AppRun --compile

%install
mkdir -p %{buildroot}%{_libdir}/%{oname}
cp -r ./ %{buildroot}%{_libdir}/%{oname}/
rm -rf %{buildroot}%{_libdir}/%{oname}/src
perl -pi -e "s/lib/%{_lib}/g" %{buildroot}%{_libdir}/%{oname}/Linux-*/bin/rox_run

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8247 |21cr|rox-freefs-2.1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^lib.*\\.so\\..$|^libc.so.6(.*)|libpthread.so.0(.*)

%define oname FreeFS

Summary:	ROX application to monitor file system usage
Name:		rox-freefs
Version:	2.1.8
Release:	2
License:	GPL
Group:		Graphical desktop/Other
Url:		http://www.kerofin.demon.co.uk/rox/
Source0:	https://sourceforge.net/projects/rox/files/FreeFS/%{version}/FreeFS-linux-x86-%{version}.tar.gz
Patch:		FreeFS-2.1.3-fstab-check.patch
BuildRequires:	librox-c-devel >= 2.1.6

%description
Monitor free space on a file system. This runs as either a panel
applet or a separate window.

%prep
%autosetup -p1 -n %{oname}

%build
pushd src
autoconf
popd
export LIBDIRPATH=%{_libdir}
./AppRun --compile ||:

%install
mkdir -p %{buildroot}%{_libdir}/apps/
cp -r ../%{oname} %{buildroot}%{_libdir}/apps/
rm -rf %{buildroot}%{_libdir}/apps/%{oname}/src

%files
%dir %{_libdir}/apps/%{oname}
%{_libdir}/apps/%{oname}/.DirIcon
%{_libdir}/apps/%{oname}/App*
%{_libdir}/apps/%{oname}/%{oname}.xml
%doc %{_libdir}/apps/%{oname}/Help
%{_libdir}/apps/%{oname}/Options.xml
%{_libdir}/apps/%{oname}/Resources
%{_libdir}/apps/%{oname}/Linux-*
%{_libdir}/apps/%{oname}/libdir
%{_libdir}/apps/%{oname}/rox_run
%{_libdir}/apps/%{oname}/FreeFS-src.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8248 |21cr|rox-gcb-0.23-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rox-gcb
Version:	0.23
Release:	11
Summary:	Clipboard rox-applet
Group:		Graphical desktop/Other
License:	GPL
URL:		ftp://ftp.atmsk.ru/rox/
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	libgtksourceview-devel
Requires:	rox

%description
Clipboard rox-applet

%define _appsdir %{_libdir}/apps

%prep
%setup -q -n %{name}

%build
export CFLAGS="$RPM_OPT_FLAGS"
./AppRun --compile

%install
rm -rf %buildroot
mkdir -p $RPM_BUILD_ROOT%{_appsdir}
cp -a ./ $RPM_BUILD_ROOT%{_appsdir}/%{name}
rm -rf %buildroot/%_appsdir/%name/src

%clean 
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc %{_appsdir}/%name/Help
%dir %{_appsdir}/%name
%{_appsdir}/%name/.DirIcon
%{_appsdir}/%name/App*
%{_appsdir}/%name/Linux-*
%{_appsdir}/%name/gcb.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8249 |21cr|rox-lib-2.0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rox-lib2

Summary: Shared code for ROX applications
Name: rox-lib
Version: 2.0.6
Release: 5
Source0: http://prdownloads.sourceforge.net/rox/%{oname}-%{version}.tar.bz2
License: LGPL
Group: Graphical desktop/Other
URL: http://rox.sourceforge.net/rox_lib.html
BuildArch: noarch
Requires: rox

%description
There is quite a lot of code which is needed by many ROX applications -- for
example: save boxes, menus and options.

Keeping all this code in one place makes these programs smaller. It also
makes programs which use it more consistant.

Programs which use ROX-Lib2 need to be able to find it, so you should put it
inside one of the standard library directories. If you don't have root
access, create a directory called 'lib' inside your home directory and move
ROX-Lib2 in there.


%prep
%setup -q -n %oname-%version
chmod 644 */*.xml

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot/%_prefix/lib
cp -r ROX-Lib2 %buildroot/%_prefix/lib

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ROX-Lib2/Help/README
%_prefix/lib/ROX-Lib2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8250 |21cr|rox-magickthumbnail-0.5.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname MagickThumbnail

Summary:	Thumbnail image generator for the ROX desktop
Name:		rox-magickthumbnail
Version:	0.5.1
Release:	12
Source0:	http://roxos.sunsite.dk/dev-contrib/guido/%{oname}.tar.bz2
Patch:		rox-magickthumbnail-first-frame.patch
License:	GPL
Group:		Graphical desktop/Other
Url:		http://roxos.sunsite.dk/dev-contrib/guido/
Requires:	rox-lib >= 1.9.12
Requires:	rox >= 2.1.1
Requires:	imagemagick
BuildArch:	noarch

%description
This application can generate thumbnails of the various filetypes,
readable by ImageMagick, for display by ROX-Filer.

%prep
%autosetup -p1 -n %{oname}

rm -f Help/.README.swp

%build

%install
mkdir -p %{buildroot}%{_prefix}/lib/apps/%{oname}
cp -r .DirIcon * %{buildroot}%{_prefix}/lib/apps/%{oname}

%files
%doc %{_prefix}/lib/apps/%{oname}/Help/
%dir %{_prefix}/lib/apps/%{oname}/
%{_prefix}/lib/apps/%{oname}/.DirIcon
%{_prefix}/lib/apps/%{oname}/*.xml
%{_prefix}/lib/apps/%{oname}/*.py
%{_prefix}/lib/apps/%{oname}/AppRun
%{_prefix}/lib/apps/%{oname}/__pycache__

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8251 |21cr|rox-menu-1.0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ROX-Menu
%define _appsdir	%{_libdir}/apps

Summary:	Menu for the panel of the ROX filer
Name:		rox-menu
Version:	1.0.2
Release:	12
Source0:	http://www.skepticats.com/rox/dist/%{oname}-%{version}.tar.bz2
License:	GPL
Group:		Graphical desktop/Other
URL:		http://www.skepticats.com/rox/rox-menu.html
BuildRequires:	librox-c-devel >= 2.1.3
Requires:	rox

%description
ROX-Menu is a simple panel applet for ROX-Filer and the ROX desktop that
pops up a menu that you can use to start your favorite application 
directories.  It serves the same purpose as the KDE "K" menu or the 
Windows "Start" menu.

%prep
%setup -q -n %{oname}
#gw that version is lib64-aware
cp -f %{_libdir}/ROX-CLib/Linux-*/bin/rox_run .
chmod 755 Help . Help/*.sh

%build
./AppRun --compile

%install
mkdir  -p %{buildroot}%{_appsdir}
cp -r ../%{oname} %{buildroot}%{_appsdir}
rm -rf %{buildroot}%{_appsdir}/%{oname}/src
rm -f %{buildroot}%{_appsdir}/%{oname}/makedist.sh
#install a default menu
mkdir -p %{buildroot}%{_datadir}/Choices/%{oname}
ln -s %{_appsdir} %{buildroot}%{_datadir}/Choices/%{oname}/Menu_Root
chmod 755 %{buildroot}%{_libdir}/apps/ROX-Menu/Help/Icons
chmod 644 %{buildroot}%{_libdir}/apps/ROX-Menu/Help/Icons/*

%files
%doc %{_appsdir}/%{oname}/Help
%dir %{_appsdir}/%{oname}
%{_appsdir}/%{oname}/.DirIcon
%{_appsdir}/%{oname}/App*
%{_appsdir}/%{oname}/rox_run
%{_appsdir}/%{oname}/Options.xml
%{_appsdir}/%{oname}/Linux-*
%{_datadir}/Choices/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8252 |21cr|rox-mime-editor-0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname MIME-Editor
%define fname mime-editor
%define appdir %{_prefix}/lib/apps

Summary:	MIME database editor
Name:		rox-mime-editor
Version:	0.6
Release:	5
Source0:	https://sourceforge.net/projects/rox/files/MIME-Editor/0.6/mime-editor-%{version}.tar.bz2
License:	GPL
Group:		Graphical desktop/Other
URL:		http://rox.sf.net/mime_editor.php3
Requires:	rox-lib
Buildarch:	noarch

%description
The Shared MIME Database stores information about file types. It holds
information such as "Files with names ending in .html have the MIME
type text/html" and "A text/html file should be described as an `HTML
Page'".

Normally, you shouldn't need to edit this database, but if you do you
can use MIME-Editor for the task.

%prep
%setup -q -n %{fname}-%{version}

%build

%install
mkdir -p %{buildroot}/%{appdir}
cp -r %{oname} %{buildroot}/%{appdir}
rm -f %{buildroot}%{appdir}/%{oname}/Messages/dist
rm -f %{buildroot}%{appdir}/%{oname}/Messages/*po
for gmo in %{buildroot}%{appdir}/%{oname}/Messages/*.gmo;do
echo "%lang($(basename $gmo|sed s/.gmo//)) $(echo $gmo|sed s!%{buildroot}!!)" >> %{name}.lang
done

%files -f %name.lang
%doc %{appdir}/%{oname}/Help
%dir %{appdir}/%{oname}/
%{appdir}/%{oname}/*.*
%{appdir}/%{oname}/AppRun
%{appdir}/%{oname}/.DirIcon
%{appdir}/%{oname}/__pycache__
%dir %{appdir}/%{oname}/Messages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8253 |21cr|rox-pager-1.0.2-0.20050604.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Pager
%define version 1.0.2
%define cvs 20050604
%define fname pager-%cvs
Name:		rox-pager
Version:	%version
Release:	%mkrel 0.%cvs.6
Summary:	Pager for the panel of the ROX-Filer
Group:		Graphical desktop/Other
License:	GPL
URL:		http://rox.sourceforge.net/phpwiki/index.php/Pager
Source0:	http://prdownloads.sourceforge.net/rox/%fname.tar.bz2
Requires:       rox
BuildRequires: libwnck-devel
BuildRequires: libxml2-devel
Buildroot: %_tmppath/%name-%version

%description
The pager is a panel applet that shows a miniature view of your
desktop. You can use it to bring hidden windows to the front, move
windows around or, if using multiple workspaces, see which one you're
on and change between them.

The pager will only work if your window manager supports the Extended
Window Manager Hints standard, defined at http://freedesktop.org.
Different window managers have different levels of support for this,
so if it doesn't work, it's probably a problem with the window manager
rather than with the pager.

%define _appsdir %{_libdir}/apps

%prep
%setup -q -n %oname

%build
export CFLAGS="$RPM_OPT_FLAGS"
./AppRun --compile

%install
rm -rf %buildroot
mkdir -p $RPM_BUILD_ROOT%{_appsdir}
cp -a ../%oname $RPM_BUILD_ROOT%{_appsdir}/%{oname}
rm -rf %buildroot%_appsdir/%oname/./src


%files
%defattr(-,root,root)
%doc %{_appsdir}/%oname/Help
%dir %{_appsdir}/%oname/
%{_appsdir}/%oname/Linux*
%{_appsdir}/%oname/App*
%{_appsdir}/%oname/Options.xml
%{_appsdir}/%oname/.DirIcon
%dir %_libdir/apps/Pager/Messages/
%lang(it) %_libdir/apps/Pager/Messages/it.gmo

%clean 
rm -rf %buildroot

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8254 |21cr|rox-system-1.9.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname system
%define roxname System
%define roxdir %_prefix/lib/apps

Name:		rox-system
Version:	1.9.1
Release:	10
Summary:	System monitor for the ROX graphical desktop
Group:		Graphical desktop/Other
License:	GPL
URL:		http://rox.sourceforge.net/system.html
Source:		http://prdownloads.sourceforge.net/%{name}/%{oname}-%{version}.tar.bz2
Requires:	rox-lib >= 1.9.9
Requires:	python-ctypes
BuildArch:	noarch

%description
System displays information about your system - what processes are running
and the amount of memory they are using, as well as free and used disk space.
It can also be useful for quitting crashed applications.

%prep
%setup -q -n %{oname}-%{version}

%build
cd %{roxname}/Messages
./dist
rm -f *.old

%install
mkdir -p %{buildroot}%{roxdir}
cp -a %{roxname} %{buildroot}%{roxdir}
rm -rf %{buildroot}%{roxdir}/%{roxname}/CVS \
	%{buildroot}%{roxdir}/%{roxname}/Help/CVS \
    %{buildroot}%{roxdir}/%{roxname}/Messages/dist \
    %{buildroot}%{roxdir}/%{roxname}/Messages/*po

for gmo in %{buildroot}%{roxdir}/%{roxname}/Messages/*.gmo;do
echo "%lang($(basename $gmo|sed s/.gmo//)) $(echo $gmo|sed s!%{buildroot}!!)" >> %{name}.lang
done

%files -f %{name}.lang
%doc %{roxdir}/%{roxname}/Help
%dir %{roxdir}/%{roxname}
%dir %{roxdir}/%{roxname}/Messages
%{roxdir}/%{roxname}/.DirIcon
%{roxdir}/%{roxname}/*.py
%{roxdir}/%{roxname}/AppRun
%attr(644,root,root) %{roxdir}/%{roxname}/*.xml
%{roxdir}/%{roxname}/images


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8255 |21cr|rox-system-1.9.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname system
%define roxname System
%define roxdir %{_prefix}/lib/apps

Name:		rox-system
Version:	1.9.1
Release:	11
Summary:	System monitor for the ROX graphical desktop
Group:		Graphical desktop/Other
License:	GPL
URL:		http://rox.sourceforge.net/system.html
Source:		http://prdownloads.sourceforge.net/%{name}/%{oname}-%{version}.tar.bz2
Patch0:		rox-system-python.patch
Requires:	rox-lib >= 1.9.9
Requires:	python-ctypes
BuildArch:	noarch

%description
System displays information about your system - what processes are running
and the amount of memory they are using, as well as free and used disk space.
It can also be useful for quitting crashed applications.

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
cd %{roxname}/Messages
./dist
rm -f *.old

%install
mkdir -p %{buildroot}%{roxdir}
cp -a %{roxname} %{buildroot}%{roxdir}
rm -rf %{buildroot}%{roxdir}/%{roxname}/CVS \
	%{buildroot}%{roxdir}/%{roxname}/Help/CVS \
    %{buildroot}%{roxdir}/%{roxname}/Messages/dist \
    %{buildroot}%{roxdir}/%{roxname}/Messages/*po

for gmo in %{buildroot}%{roxdir}/%{roxname}/Messages/*.gmo;do
echo "%lang($(basename $gmo|sed s/.gmo//)) $(echo $gmo|sed s!%{buildroot}!!)" >> %{name}.lang
done

%files -f %{name}.lang
%doc %{roxdir}/%{roxname}/Help
%dir %{roxdir}/%{roxname}
%dir %{roxdir}/%{roxname}/Messages
%{roxdir}/%{roxname}/.DirIcon
%{roxdir}/%{roxname}/*.py
%{roxdir}/%{roxname}/AppRun
%attr(644,root,root) %{roxdir}/%{roxname}/*.xml
%{roxdir}/%{roxname}/images
%{roxdir}/%{roxname}/__pycache__

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8256 |21cr|rox-wallpaper-2.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wallpaper
%define appdir %{_prefix}/lib/apps

Summary:   Set the wallpaper image for the ROX graphical desktop

Name:      rox-wallpaper
Version:   2.3
Release:   5
Source0:   https://sourceforge.net/projects/rox/files/Wallpaper/2.3/Wallpaper-%{version}.tar.gz
License:   GPL
Group:     Graphical desktop/Other
URL:       http://rox.sf.net/wallpaper.html
Patch0:    rox-wallpaper-python3.patch
Requires:  rox-lib
BuildArch: noarch

%description
This program can be used to set the background image for your pinboard, if
you are using ROX-Filer 1.3.1 or later to manage it. Use an older version of
Wallpaper to set the background with older versions of the filer.

Note that ROX-Filer already allows you to set an image or plain colour for
the backdrop. Wallpaper lets you do more interesting things...

%prep
%autosetup -p1 -c
chmod 644 Wallpaper/Wallpaper.xml

%build

%install
rm -rf %{buildroot} %{name}.lang
mkdir -p %{buildroot}/%{appdir}
cp -r Wallpaper %{buildroot}/%{appdir}
rm -rf %{buildroot}/%{appdir}/Wallpaper/Messages/*.po
rm -rf %{buildroot}/%{appdir}/Wallpaper/Messages/dist
rm -rf %{buildroot}/%{appdir}/Wallpaper/Messages/update-po
for gmo in %{buildroot}%{appdir}/Wallpaper/Messages/*.gmo;do
echo "%lang($(basename $gmo|sed s/.gmo//)) $(echo $gmo|sed s!%{buildroot}!!)" >> %{name}.lang
done

%files -f %{name}.lang
%doc %{appdir}/Wallpaper/Help
%dir %{appdir}/Wallpaper
%{appdir}/Wallpaper/.DirIcon
%{appdir}/Wallpaper/*.py
%{appdir}/Wallpaper/App*
%{appdir}/Wallpaper/Wallpaper.xml
%{appdir}/Wallpaper/Messages/messages.pot
%{appdir}/Wallpaper/makedist.sh
%{appdir}/Wallpaper/__pycache__

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8257 |21cr|R-oz-1.0.20-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  oz
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.20
Release:          5
Summary:          Plot the Australian coastline and states
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/oz_1.0-20.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-graphics 
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:    R-graphics 

%description
Functions for plotting Australia's coastline and state boundaries.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8258 |21cr|R-pan-0.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pan
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.9
Release:          5
Summary:          Multiple imputation for multivariate panel or clustered data
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz



Requires:         R-mitools R-lme4 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 

BuildRequires:   R-mitools R-lme4 
%description
Multiple imputation for multivariate panel or clustered data

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8259 |21cr|R-party-1.0.21-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  party
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.21
Release:          5
Summary:          A Laboratory for Recursive Partytioning
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/party_1.0-21.tar.gz
Requires:         R-methods R-survival R-grid R-modeltools R-coin R-zoo
Requires:         R-sandwich R-strucchange R-vcd R-stats
Requires:         R-ipred R-mlbench R-colorspace R-MASS R-mvtnorm
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires: R-TH.data
Requires: R-TH.data
BuildRequires:    R-methods R-survival R-grid R-modeltools R-coin R-zoo
BuildRequires:    R-sandwich R-strucchange R-vcd R-stats
BuildRequires:    R-ipred R-mlbench R-colorspace R-MASS R-mvtnorm
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
A computational toolbox for recursive partitioning. The core of the
package is ctree(), an implementation of conditional inference trees which
embed tree-structured regression models into a well defined theory of
conditional inference procedures. This non-parametric class of regression
trees is applicable to all kinds of regression problems, including
nominal, ordinal, numeric, censored as well as multivariate response
variables and arbitrary measurement scales of the covariates. Based on
conditional inference trees, cforest() provides an implementation of
Breiman's random forests. The function mob() implements an algorithm for
recursive partitioning based on parametric models (e.g. linear models,
GLMs or survival regression) employing parameter instability tests for
split selection. Extensible functionality for visualizing tree-structured
regression models is available.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/party/demo/strucchange-perm.R
%{rlibdir}/party/doxygen.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8260 |21cr|R-partykit-1.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  partykit
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.1.1
Release:          4
Summary:          A Toolkit for Recursive Partytioning
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.1-1.tar.gz

Requires:         R-graphics R-grid 
Requires:         R-grDevices R-stats R-utils R-survival R-Formula 
Recommends:         R-XML R-pmml R-rJava R-rpart R-mvtnorm R-sandwich R-strucchange R-vcd R-AER R-mlbench R-TH.data R-coin R-RWeka R-datasets R-parallel R-psychotools R-psychotree 
BuildRequires:    R-devel Rmath-devel R-graphics R-grid
BuildRequires:    R-grDevices R-stats R-utils R-survival R-Formula 

#BuildRequires:   R-XML R-pmml R-rJava R-rpart R-mvtnorm R-sandwich R-strucchange R-vcd R-AER R-mlbench R-TH.data R-coin R-RWeka R-datasets R-parallel R-psychotools R-psychotree 

%description
A toolkit with infrastructure for representing, summarizing, and
visualizing tree-structured regression and classification models. This
unified infrastructure can be used for reading/coercing tree models from
different sources ('rpart', 'RWeka', 'PMML') yielding objects that share
functionality for print()/plot()/predict() methods. Furthermore, new and
improved reimplementations of conditional inference trees (ctree()) and
model-based recursive partitioning (mob()) from the 'party' package are
provided based on the new infrastructure.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8261 |21cr|R-pasilla-0.2.20-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pasilla
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.2.20
Release:          5
Summary:          Per-exon and per-gene read counts of RNA-seq samples of Pasilla knock-down
Group:            Sciences/Mathematics
License:          LGPL
URL:              None
Source0:          http://bioconductor.org/packages/data/experiment/src/contrib/pasilla_0.2.20.tar.gz
Requires:         R-DESeq 
Requires:         R-locfit R-edgeR R-xtable
Recommends:       R-DEXSeq
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-DESeq
BuildRequires:    R-locfit R-edgeR R-xtable 

%description
This package provides per-exon and per-gene read counts computed for
selected genes from RNA-seq data that were presented in the article
"Conservation of an RNA regulatory map between Drosophila and mammals" by
Brooks AN, Yang L, Duff MO, Hansen KD, Park JW, Dudoit S, Brenner SE,
Graveley BR, Genome Res. 2011 Feb;21(2):193-202, Epub 2010 Oct 4, PMID:
20921232.  The experiment studied the effect of RNAi knockdown of Pasilla,
the Drosophila melanogaster ortholog of mammalian NOVA1 and NOVA2, on the
transcriptome.  The package vignette describes how the data provided here
were derived from the RNA-Seq read sequence data that is provided by NCBI
Gene Expression Omnibus under accession numbers GSM461176 to GSM461181

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8262 |21cr|R-pasillaBamSubset-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pasillaBamSubset
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.3.0
Release:          4
Summary:          Subset of BAM files from "Pasilla" experiment
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/devel/data/experiment/html/%{packname}.html
Source0:          http://bioconductor.org/packages/devel/data/experiment/src/contrib/%{packname}_%{version}.tar.gz


BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-pasilla


%description 
Subset of BAM files from "Pasilla" experiment.
Bioconductor version: Development (3.0).
Subset of BAM files untreated1.bam (single-end reads) and 
untreated3.bam (paired-end reads) from "Pasilla" experiment 
(Pasilla knock-down by Brooks et al., Genome Research 2011). 
See the vignette in the pasilla data package for how BAM 
files untreated1.bam and untreated3.bam were obtained from 
the RNA-Seq read sequence data that is provided by NCBI 
Gene Expression Omnibus under accession numbers GSM461176 
to GSM461181. Also contains the DNA sequence for fly 
chromosome 4 to which the reads can be mapped.


%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/extdata

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8263 |21cr|R-pbivnorm-0.5.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pbivnorm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5.1
Release:          5
Summary:          Vectorized Bivariate Normal CDF
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.5-1.tar.gz
BuildRequires:    R-devel Rmath-devel texlive


%description
Provides a vectorized R function for calculating probabilities from a
standard bivariate normal CDF.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8264 |21cr|R-pbkrtest-0.4.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname pbkrtest
%global rlibdir %{_libdir}/R/library

%define debug_package %{nil}

Summary:	Parametric bootstrap and Kenward Roger based methods for mixed model comparison
Name:		R-%{packname}
Version:	0.4.6
Release:	2
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/%{packname}_0.4-6.tar.gz
BuildRequires:	R-devel Rmath-devel texlive-collection-latex R-MASS R-lme4 R-parallel
BuildRequires:	R-Matrix
BuildRequires:	R-gplots
Requires:	R-MASS R-lme4 R-parallel
Requires:	R-Matrix
Requires:	R-gplots

%description
Test in linear mixed effects models. . Attention is on linear mixed
effects models as implemented in the lme4 package. . The package
implements a parametric bootstrap test . The package implements a
Kenward-Roger modification of F-tests

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

#----------------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8265 |21cr|R-pbmcapply-1.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname pbmcapply

Summary:	Tracking the progress of mc*apply in R
Name:		R-pbmcapply
Version:	1.5.0
Release:	2
License:	LGPL-2
Group:		Sciences/Mathematics
Url:		https://github.com/kvnkuang/pbmcapply
Source0:	https://github.com/kvnkuang/pbmcapply/archive/refs/tags/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	R-devel

%description
Tracking the progress of mc*apply in R.

%files
%doc %{_libdir}/R/library/%{oname}/html
%license %{_libdir}/R/library/%{oname}/LICENSE
%{_libdir}/R/library/%{oname}/DESCRIPTION
%{_libdir}/R/library/%{oname}/help
%{_libdir}/R/library/%{oname}/INDEX
%{_libdir}/R/library/%{oname}/libs
%{_libdir}/R/library/%{oname}/Meta
%{_libdir}/R/library/%{oname}/NAMESPACE
%{_libdir}/R/library/%{oname}/R

#------------------------------------------------------------------

%prep
%setup -qcn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_libdir}/R/library
%{_bindir}/R CMD INSTALL -l %{buildroot}%{_libdir}/R/library %{oname}-%{version}
test -d %{oname}/src && (cd %{oname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{_libdir}/R/library/R.css

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8266 |21cr|R-PBSmapping-2.69.76-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  PBSmapping
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.69.76
Release:          4
Summary:          Mapping Fisheries Data and Spatial Analysis Tools
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/PBSmapping_%{version}.tar.gz
Requires:         R-foreign R-deldir
%if %{without bootstrap}
Requires:         R-maptools
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-foreign R-deldir
%if %{without bootstrap}
BuildRequires:    R-maptools
%endif

%description
This software has evolved from fisheries research conducted at the Pacific
Biological Station (PBS) in Nanaimo, British Columbia, Canada. It extends
the R language to include two-dimensional plotting features similar to
those commonly available in a Geographic Information System (GIS). 
Embedded C code speeds algorithms from computational geometry, such as
finding polygons that contain specified point events or converting between
longitude-latitude and Universal Transverse Mercator (UTM) coordinates. 
It includes data for a global shoreline and other data sets in the public
domain. The R directory '.../library/PBSmapping/doc' includes a complete
user's guide PBSmapping-UG.pdf. To use this package effectively, please
consult the guide.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/Extra
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/Utils
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8267 |21cr|rpc2-2.37-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name}_ %{major}
%define libse %mklibname se %{major}
%define devname %mklibname %{name} -d

Summary:	RPC2 remote procedure call library
Name:		rpc2
Version:	2.37
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.coda.cs.cmu.edu
Source0:	https://github.com/cmusatyalab/coda/archive/%{name}-%{version}.tar.gz?/coda-%{name}-%{version}.tar.gz
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(lwp)
BuildRequires:	pkgconfig(ncurses)

%description
RPC2 is a remote procedure call library layered on top of UDP sockets and is
used by the Coda distributed filesystem.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	RPC2 remote procedure call shared library
Group:		System/Libraries
Conflicts:	%{_lib}rpc2_4 < 2.14
Obsoletes:	%{_lib}rpc2_4 < 2.14

%description -n %{libname}
RPC2 is a remote procedure call library layered on top of UDP sockets and is
used by the Coda distributed filesystem.

%files -n %{libname}
%{_libdir}/librpc2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libse}
Summary:	RPC2 remote procedure call shared library
Group:		System/Libraries
Conflicts:	%{_lib}rpc2_4 < 2.14

%description -n %{libse}
RPC2 is a remote procedure call library layered on top of UDP sockets and is
used by the Coda distributed filesystem.

%files -n %{libse}
%{_libdir}/libse.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	RPC2 library development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libse} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and static libraries for developing programs using the RPC2 library.

%files -n %{devname}
%{_bindir}/rp2gen
%{_libdir}/*.so
%{_includedir}/rpc2
%{_libdir}/pkgconfig/rpc2.pc

#----------------------------------------------------------------------------

%prep
# Make sure to build only rvm library!
%setup -qn coda-%{name}-%{version}/lib-src/%{name}

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8268 |21cr|R-pcaPP-1.9.74-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pcaPP
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.9.74
Release:          1
Summary:          Robust PCA by Projection Pursuit
Group:            Sciences/Mathematics
License:          GPL (>= 3)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.9-74.tar.gz

Requires:         R-mvtnorm 

BuildRequires:    R-devel Rmath-devel texlive-latex R-mvtnorm
BuildRequires:    lapack-devel


%description
Robust PCA by Projection Pursuit

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8269 |21cr|R-penalized-0.9.45-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  penalized
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.9.45
Release:          4
Summary:          L1 and L2 penalized estimation in GLMs and in the Cox model
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.9-45.tar.gz

Requires:         R-methods R-survival
Requires:         R-survival
Recommends:       R-globaltest
BuildRequires:    R-devel Rmath-devel texlive-latex R-methods R-survival
BuildRequires:    R-survival
#BuildRequires:    R-globaltest

%description
A package for fitting possibly high dimensional penalized regression
models. The penalty structure can be any combination of an L1 penalty
(lasso and fused lasso), an L2 penalty (ridge) and a positivity constraint
on the regression coefficients. The supported regression models are
linear, logistic and poisson regression and the Cox Proportional Hazards
model. Cross-validation routines allow optimization of the tuning

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8270 |21cr|R-PFAM.db-3.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  PFAM.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3.4.1
Release:          1
Summary:          A set of protein ID mappings for PFAM
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-methods R-AnnotationDbi 
Requires:         R-methods R-AnnotationDbi 

BuildRequires:    R-devel Rmath-devel R-methods R-AnnotationDbi
BuildRequires:    R-methods R-AnnotationDbi 

%description
A set of protein ID mappings for PFAM assembled using data from public

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# % check
# % {_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8271 |21cr|R-pixmap-0.4.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pixmap
%global rlibdir  %{_datadir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.4.11
Release:          4
Summary:          Bitmap Images (``Pixel Maps'')
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.4-11.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-methods 

BuildRequires:    R-devel Rmath-devel R-methods texlive


%description
Functions for import, export, plotting and other manipulations of
bitmapped images.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/pictures

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8272 |21cr|R-pkgconfig-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global oname pkgconfig

Summary:	Private Configuration for 'R' Packages
Name:		R-pkgconfig
Version:	2.0.3
Release:	1
License:	MIT
Group:		Sciences/Mathematics
Url:		https://CRAN.R-project.org/package=pkgconfig
Source0:	https://cran.r-project.org/src/contrib/%{oname}_%{version}.tar.gz
BuildRequires:	R-utils
BuildRequires:	R-devel

%description
Set configuration options on a per-package basis. Options set by a given
package only apply to that package, other packages are unaffected.

%files
%doc %{_libdir}/R/library/%{oname}/html
%doc %{_libdir}/R/library/%{oname}/NEWS.markdown
%doc %{_libdir}/R/library/%{oname}/README.Rmd
%license %{_libdir}/R/library/%{oname}/LICENSE
%{_libdir}/R/library/%{oname}/DESCRIPTION
%{_libdir}/R/library/%{oname}/help
%{_libdir}/R/library/%{oname}/INDEX
%{_libdir}/R/library/%{oname}/Meta
%{_libdir}/R/library/%{oname}/NAMESPACE
%{_libdir}/R/library/%{oname}/R

#------------------------------------------------------------------

%prep
%setup -qcn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_libdir}/R/library
%{_bindir}/R CMD INSTALL -l %{buildroot}%{_libdir}/R/library %{oname}
test -d %{oname}/src && (cd %{oname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{_libdir}/R/library/R.css
rm -f %{buildroot}%{_libdir}/R/library/%{oname}/README.markdown

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8273 |21cr|R-pkgKitten-0.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pkgKitten
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2.2
Release:          4
Summary:          Create Simple Packages Which Do not Upset R Package Checks
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core



Requires:         R-whoami 
BuildRequires:    R-devel Rmath-devel 

#BuildRequires:   R-whoami 
%description
Provides a function kitten() which creates cute little packages which pass
R package checks. This sets it apart from package.skeleton() which it
calls, and which leaves imperfect files behind. As this is not exactly
helpful for beginners, kitten() offers an alternative.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/replacements
%{rlibdir}/%{packname}/skel

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8274 |21cr|R-PKPDmodels-0.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  PKPDmodels
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.3.2
Release:          5
Summary:          Pharmacokinetic/pharmacodynamic models
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-lattice 
BuildRequires:    R-devel Rmath-devel texlive-latex 
BuildRequires:   R-lattice 

%description
Provides functions to evaluate common pharmacokinetic/pharmacodynamic
models and their gradients.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8275 |21cr|R-plotmo-1.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  plotmo
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.3.3
Release:          5
Summary:          Plot a model's response while varying the values of the predictors
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.3-3.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-rpart
Recommends:       R-earth 
BuildRequires:    R-devel Rmath-devel 

BuildRequires:   R-rpart
#BuildRequires:   R-earth 

%description
Plot a model's response when varying one or two predictors while holding
the other predictors constant.  A poor man's partial dependence plot.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/slowtests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8276 |21cr|R-plotrix-3.5.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  plotrix
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3.5.12
Release:          5
Summary:          Various plotting functions
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_3.5-12.tar.gz
BuildArch:        noarch
Requires:         R-core




BuildRequires:    R-devel Rmath-devel 


%description
Lots of plots, various labeling, axis and color scaling functions.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8277 |21cr|R-pls-2.4.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pls
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.4.3
Release:          4
Summary:          Partial Least Squares and Principal Component regression
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2.4-3.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-MASS R-parallel R-Rmpi 
BuildRequires:    R-devel Rmath-devel  

BuildRequires:   R-MASS R-parallel R-Rmpi 
%description
Multivariate regression methods Partial Least Squares Regression (PLSR),
Principal Component Regression (PCR) and Canonical Powered Partial Least
Squares (CPPLS)

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8278 |21cr|R-plyr-1.8.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  plyr
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.8.1
Release:          6
Summary:          Tools for splitting, applying and combining data
Group:            Sciences/Mathematics
License:          MIT
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/plyr_1.8.1.tar.gz
%if %{with bootstrap}
Requires:         R-abind R-tcltk R-foreach R-itertools R-iterators R-Rcpp
%else
Requires:         R-abind R-testthat R-tcltk R-foreach R-itertools R-iterators R-doMC
%endif
BuildRequires:    R-devel Rmath-devel  
%if %{with bootstrap}
BuildRequires:    R-abind R-tcltk R-foreach R-itertools R-iterators R-Rcpp
%else
BuildRequires:    R-abind R-testthat R-tcltk R-foreach R-itertools R-iterators R-doMC
%endif
BuildRequires:    x11-server-xvfb

%description
plyr is a set of tools that solves a common set of problems: you need to
break a big problem down into manageable pieces, operate on each pieces
and then put all the pieces back together.  For example, you might want to
fit a model to each spatial location or time point in your study,
summarise data by panels or collapse high-dimensional arrays to simpler
summary statistics. The development of plyr has been generously supported
by BD (Becton Dickinson).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# %if %{without bootstrap}
# %check
# xvfb-run %{_bindir}/R CMD check %{packname}
# %endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8279 |21cr|rpmcreator-2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		rpmcreator
Version:	2.5
Release:	1
Group:		Development/Tools
Summary:	RPMCreator - GUI for rpmbuild
License:	GPLv3
URL:		https://github.com/AKotov-dev/RPMCreator
Source0:	https://github.com/AKotov-dev/RPMCreator/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
Requires:	xterm
Requires:	rpm-build
Requires:	rpm-sign
Requires:	gnupg
Requires:	createrepo
Requires:	gcc
Requires:	make
Requires:	p7zip
Requires:	dpkg-dev
Requires:	gtk2

%description
GUI for building RPM and DEB packages from pre-installed files and folders

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/RPMCreator
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/icons/hicolor/scalable/mimetypes/*.svg
%{_datadir}/mime/packages/%{name}.xml
#-------------------------------------------------------------------------
%prep
%setup -n RPMCreator-%{version}/RPMCreator

# remove prebuild file
rm -f RPMCreator

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,icons,mime,RPMCreator,applications}
mkdir -p %{buildroot}%{_datadir}/RPMCreator/languages

cp ./all/%{_bindir}/%{name} %{buildroot}%{_bindir}/
cp RPMCreator %{buildroot}%{_datadir}/RPMCreator
cp ./all/%{_datadir}/icons/%{name}.png %{buildroot}%{_datadir}/pixmaps/
cp -r all/%{_datadir}/icons/hicolor %{buildroot}%{_datadir}/icons/
cp -r all/%{_datadir}/mime %{buildroot}%{_datadir}/
cp ./all/%{_datadir}/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/
cp ./languages/*.mo %{buildroot}%{_datadir}/RPMCreator/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8280 |21cr|rpm-get-1.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple clone of apt-get for rpm
Name:		rpm-get 
Version:	1.5
Release:	9
License:	GPL
Group:		System/Configuration/Packaging
URL:		http://zoy.org/~alien/rpm-get
Source0:	http://zoy.org/~alien/rpm-get/%{name}-%{version}.tar.bz2
BuildArch:	noarch

%description
rpm-get is a simple clone of Debian's apt-get utility for 
automatically download and install files.
Use the /etc/rpm-get.conf file to set up your favorites ftp mirrors.

%prep
%setup -q -n %{name}

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p $RPM_BUILD_ROOT/var/rpm-get

install -D -m755 %_builddir/%{name}/rpm-get-configure $RPM_BUILD_ROOT/sbin/rpm-get-configure
install -D -m755 $RPM_BUILD_DIR/rpm-get/rpm-get $RPM_BUILD_ROOT/sbin/rpm-get
install -D -m755 $RPM_BUILD_DIR/rpm-get/dep-check.sh $RPM_BUILD_ROOT/sbin/dep-check.sh
install -D -m755 $RPM_BUILD_DIR/rpm-get/rpm-dep.sh $RPM_BUILD_ROOT/sbin/rpm-dep.sh
install -D -m755 $RPM_BUILD_DIR/rpm-get/rpm-fle2pkg.sh $RPM_BUILD_ROOT/sbin/rpm-fle2pkg.sh
install -D -m644 $RPM_BUILD_DIR/rpm-get/rpm-get.conf $RPM_BUILD_ROOT%{_sysconfdir}/rpm-get.conf
install -D -m644 $RPM_BUILD_DIR/rpm-get/rpm-get.1 $RPM_BUILD_ROOT%{_mandir}/man1/rpm-get.1

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README Changes BUGS AUTHORS TODO
%config(noreplace) %{_sysconfdir}/*
/sbin/*
%{_mandir}/man1/*
/var/rpm-get/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8281 |21cr|rpm-mk-build-deps-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Script to build a dummy package with BRs
Name:		rpm-mk-build-deps
Version:	0.4
Release:	1
License:	MIT
Group:		Development/Basic
Url:		https://abf.io/import/rpm-mk-build-deps
Source0:	rpm-mk-build-deps.sh
BuildArch:	noarch
Requires:	bash
Requires:	%{_bindir}/rpmbuild
Requires:	%{_bindir}/rpmspec
Provides:	mbd = %{EVRD}

%description
This scripts builds a dummy RPM package which depends from BuildRequires
from given spec. Example:
$ rpm-mk-build-deps xxx.spec (or just: $ mbd xxx.spec)
$ sudo dnf in *.rpm
RPM package xxx-build-deps will be installed.
Then it can be removed, and BuildRequires of xxx will be orphaned.

%files
%{_bindir}/rpm-mk-build-deps
%{_bindir}/mbd

#------------------------------------------------------------------

%prep
cp %{SOURCE0} .

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m0755 %{SOURCE0} %{buildroot}%{_bindir}/rpm-mk-build-deps
( cd %{buildroot}%{_bindir}
  ln -s rpm-mk-build-deps mbd
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8282 |21cr|rpmmon-0.6.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rpmmon
Version:	0.6.3
Release:	12
Summary:	Helps you build better RPMs
License:	GPL
Group:		Development/Other
URL:		http://www.zarb.org/~gc/html/rpmmon-tut.html
Source0:	%{name}.pl
Source1:	%{name}-tut.html
Source2:	rpmmon.bash_completion
Patch0:		%{name}-0.6.3.mandriva.patch
Patch1:		rpmmon-0.6.3-maintdb.patch
Patch2:		rpmmon-0.6.3-curl-ssl.patch
Requires:	curl
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}

%description
In order to produce a quality Gnu/Linux distribution based on RPM, you
need some tools which will facilitate the maintenance of the RPM
packages you are maintainer of. This is the aim of `rpmmon'.
For that purpose, the first task performed by rpmmon is to monitor what
has been announced on Freshmeat, and try to guess if the package in the
distro you're developing is older. 
Later on, this tool has grown to support additional features: 
- get the list of packages you're responsible for, either in a static
  oriented way (a local file) or more dynamically (an URL, for example
  the results of a CGI script from the QA of your distro's company)
- hence, provide an easy (e.g. command-line) interface to quickly know
  who's maintainer of a given package
- reversely, provide an easy interface to know what packages a given
  person is responsible for
- try to find automatically on Freshmeat the good project page going
  along a given RPM package
- runs rpmlint on your packages (rpmlint is a rpm correctness checker)

%prep
%setup -q -c -T -D
cp %{SOURCE0} %{name}
cp %{SOURCE1} tutorial.html
%patch0
%patch1 -p1 -b .maintdb
%patch2 -p0

%build

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 755 %{name} %{buildroot}%{_bindir}
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc tutorial.html
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8283 |21cr|rpmorphan-1.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Find orphaned RPM packages
Name:		rpmorphan
Version:	1.19
Release:	1
License:	GPLv2+
Group:		System/Configuration/Packaging
URL:		http://rpmorphan.sourceforge.net/
Source0:	http://downloads.sourceforge.net/sourceforge/rpmorphan/rpmorphan-%{version}.tar.gz
Source1:	rpmorphan.logrotate
Requires:	perl-Tk
Requires:	rpm
Requires(post):	rpm-helper
BuildArch:	noarch

%description
rpmorphan finds orphaned packages on your system. It determines
which packages have no other packages depending on their installation,
and shows you a list of these packages.

It intends to be clone of deborphan Debian tools for RPM packages.

%prep
%setup -q

%build

%install
%makeinstall_std

%{__mv} %{buildroot}%{_bindir}/rpmorphan{.pl,}
%{__mv} %{buildroot}%{_bindir}/rpmusage{.pl,}
%{__perl} -pi -e 's/^rpmorphan\.pl/rpmorphan/g' %{buildroot}%{_bindir}/rpmorphan %{buildroot}%{_mandir}/man1/rpmorphan.1
%{__perl} -pi -e 's/^rpmusage\.pl/rpmorphan/g' %{buildroot}%{_bindir}/rpmusage %{buildroot}%{_mandir}/man1/rpmusage.1

%{__mkdir_p} %{buildroot}%{_sysconfdir}/logrotate.d
%{__cp} -p %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

%post
%create_ghostfile %{_logdir}/rpmorphan.log root root 644

%files
%defattr(0644,root,root,0755)
%doc Authors Changelog COPYING NEWS Readme rpmorphan.lsm Todo
%attr(0755,root,root) %{_bindir}/rpmorphan
%attr(0755,root,root) %{_bindir}/rpmusage
%attr(0755,root,root) %{_bindir}/rpmextra
%attr(0755,root,root) %{_bindir}/rpmextra.pl
%attr(0755,root,root) %{_bindir}/grpmorphan
%attr(0755,root,root) %{_bindir}/rpmdep
%attr(0755,root,root) %{_bindir}/rpmdep.pl
%attr(0755,root,root) %{_bindir}/rpmduplicates
%attr(0755,root,root) %{_bindir}/rpmduplicates.pl
%{_mandir}/man1/rpmdep.1.xz
%{_mandir}/man1/rpmextra.1.xz
%{_mandir}/man1/rpmduplicates.1.xz
%ghost %{_logdir}/rpmorphan.log
%{_mandir}/man1/rpmorphan.1*
%{_mandir}/man1/rpmusage.1*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config /etc/rpmorphanrc
%dir %{_var}/lib/rpmorphan
%{_var}/lib/rpmorphan/keep
/usr/lib/%{name}/locale/en/rpmorphan_trans.pl
/usr/lib/%{name}/locale/fr_FR/rpmorphan_trans.pl
/usr/lib/%{name}/Tk/MListbox.pm
%attr(644, root, root) /usr/lib/rpmorphan/rpmorphan-lib.pl
%attr(644, root, root) /usr/lib/rpmorphan/rpmorphan-curses-lib.pl
%attr(644, root, root) /usr/lib/rpmorphan/rpmorphan-tk-lib.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8284 |21cr|rpmrebuild-2.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           rpmrebuild
Version:        2.11
Release:        6
Epoch:          1
Summary:        Tool to build an RPM file from the RPM database
Group:          System/Configuration/Packaging
License:        GPLv2+
URL:            http://rpmrebuild.sourceforge.net/
Source0:        http://downloads.sourceforge.net/sourceforge/rpmrebuild/rpmrebuild-%{version}.tar.gz
Patch0:		rpmrebuild-2.11-rpm5.patch
Requires:       rpm-build
BuildArch:      noarch

%description
rpmrebuild allows for the building of an RPM file from an installed RPM
or from another RPM file with or without changes (batch or interactive).
It can be extended by a plugin system.

Typical usage is the easy repackaging of software after a configuration
change.

%prep
%setup -c rpmrebuild
%patch0 -p1

%build
%make

%install
%make_install

%clean

%files -f rpmrebuild.files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8285 |21cr|rpmrestore-1.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           rpmrestore
Version:        1.3
Release:        8
Epoch:          0
Summary:        Restores install attributes from the RPM database
Group:          System/Configuration/Packaging
License:        GPL
URL:            http://rpmrestore.sourceforge.net/
Source0:        http://ovh.dl.sourceforge.net/rpmrestore/rpmrestore-%{version}.tar.gz
BuildArch:      noarch

%description
The RPM database stores the user, group, time, mode for all files,
and offers a command to display the changes between install state (database)
and current disk state. rpmrestore will help you to restore these install
attributes.

%prep
%setup -q

%build
%{make}

%install
%{__rm} -rf %{buildroot}
%{makeinstall_std}
%{__rm} -r %{buildroot}%{_docdir}

%{__mv} %{buildroot}%{_bindir}/{rpmrestore.pl,rpmrestore}
%{__perl} -pi -e 's/^rpmrestore\.pl/rpmrestore/g' %{buildroot}%{_bindir}/rpmrestore %{buildroot}%{_mandir}/man1/rpmrestore.1

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc rpmrestore.lsm Authors COPYING Changelog NEWS Todo Readme
%attr(0755,root,root) %{_bindir}/rpmrestore
%{_mandir}/man1/rpmrestore.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8286 |21cr|rpmsync-1.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Script to rsync update an RPM repository mirror
Name:		rpmsync
Version:	1.7
Release:	10
License:	LGPL
Group:		Networking/File transfer
Source0:	%{name}.pl
Source1:	README
Source2:	exclude.lst
Requires:	rsync
BuildArch:	noarch

%description
- Script to rsync update an RPM repository mirror; most useful for
  frequently updated distributions, like Mandriva Cooker, RedHat Rawhide
  or security updates for a specific version of an RPM-based distribution
- Moves RPMs so you can rsync between package versions
- Supports mirroring directories and individual files

%prep

%setup -T -c
cp -f %{SOURCE0} %{SOURCE1} %{SOURCE2} .

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 %{name}.pl %{buildroot}%{_bindir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README exclude.lst
%attr(0755,root,root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8287 |21cr|R-png-0.1.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  png
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.1.7
Release:          6
Summary:          Read and write PNG images
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/png_0.1-7.tar.gz
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:    png-devel

%description
This package provides an easy and simple way to read, write and display
bitmap images stored in the PNG format. It can read and write both files
and in-memory raw vectors.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/img
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8288 |21cr|R-poLCA-1.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  poLCA
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.4.1
Release:          5
Summary:          Polytomous variable Latent Class Analysis
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-scatterplot3d R-MASS 

BuildRequires:    R-devel Rmath-devel texlive-latex R-scatterplot3d R-MASS

%description
Latent class analysis and latent class regression models for polytomous
outcome variables.  Also known as latent structure analysis.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8289 |21cr|R-polspline-1.1.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  polspline
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.9
Release:          5
Summary:          Polynomial spline routines
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/polspline_1.1.9.tar.gz
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Routines for the polynomial spline fitting routines hazard regression,
hazard estimation with flexible tails, logspline, lspec, polyclass, and
polymars, by C. Kooperberg and co-authors

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8290 |21cr|R-polyclip-1.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname polyclip
%global rlibdir %{_libdir}/R/library

Summary:	Polygon Clipping
Name:		R-%{packname}
Version:	1.10.0
Release:	3
License:	BSL
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/%{packname}_1.10-0.tar.gz
BuildRequires:	R-devel Rmath-devel

%description
R port of the Clipper library. Performs polygon clipping operations
(intersection, union, set minus, set difference) for polygonal regions of
arbitrary complexity, including holes. Also computes offset polygons
(spatial buffer zones, morphological dilations, Minkowski dilations) for
polygonal regions and polygonal lines.

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

#---------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8291 |21cr|R-polycor-0.7_8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  polycor
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.7_8
Release:          6
Summary:          Polychoric and Polyserial Correlations
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.7-8.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-mvtnorm R-sfsmisc 
BuildRequires:    R-devel Rmath-devel  R-mvtnorm R-sfsmisc

%description
Computes polychoric and polyserial correlations by quick "two-step"
methods or ML, optionally with standard errors; tetrachoric and biserial
correlations are special cases.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CHANGES
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8292 |21cr|R-praise-1.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  praise
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.0
Release:          4
Summary:          Praise Users
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core



Recommends:       R-testthat 
BuildRequires:    R-devel Rmath-devel 

#BuildRequires:   R-testthat 
%description
Build friendly R packages that praise their users if they have done
something good, or they just need it to feel better.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/LICENSE
%doc %{rlibdir}/%{packname}/NEWS.md
%doc %{rlibdir}/%{packname}/README.md
%doc %{rlibdir}/%{packname}/README.Rmd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8293 |21cr|R-prefmod-0.8.32-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  prefmod
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.8.32
Release:          4
Summary:          Utilities to fit paired comparison models for preferences
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.8-32.tar.gz

Requires:         R-stats R-gnm R-colorspace 


BuildRequires:    R-devel Rmath-devel R-stats R-gnm R-colorspace


%description
Generates design matrix for analysing real paired comparisons and derived
paired comparison data (Likert type items/ratings or rankings) using a
loglinear approach.  Fits loglinear Bradley-Terry model (LLBT) exploiting
an eliminate feature.  Computes pattern models for paired comparisons,
rankings, and ratings.  Some treatment of missing values (MCAR and MNAR).
Fits latent class (mixture) models for paired comparison, rating and
ranking patterns using a non-parametric ML approach.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/CITATION

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8294 |21cr|R-preprocessCore-1.54.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  preprocessCore
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.54.0
Release:          5
Summary:          A collection of pre-processing functions
Group:            Sciences/Mathematics
License:          LGPL (>= 2)
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz
Source1:          preprocessCore_license
Patch0:           R-preprocessCore-dlsym-pthread_get_minstack-fix.patch
Requires:         R-methods 
Requires:         R-stats 
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-stats 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
A library of core preprocessing routines

%prep
%setup -q -c -n %{packname}
%patch0 -p1 -b .dlsym
pushd %{packname}
autoreconf -ifv .
popd

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

## Keep the headers of place for the -devel
## see: https://www.redhat.com/archives/fedora-r-devel-list/2009-March/msg00001.html

install -m 664 -p %{SOURCE1}  %{buildroot}%{_libdir}/R/library/%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%license %{rlibdir}/%{packname}/preprocessCore_license
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8295 |21cr|R-prodlim-1.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname prodlim
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.5.1
Release:          3
Summary:          Product Limit Estimation for event history and survival analysis
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/prodlim_%{version}.tar.gz
Requires:         R-core R-KernSmooth R-survival
BuildRequires:    R-devel
BuildRequires:	  R-lava
Requires:	  R-lava
BuildRequires:    R-KernSmooth R-survival

%description
Fast and user friendly nonparametric estimation in
censored survival (event history) analysis.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8296 |21cr|R-prodlim-2019.11.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname prodlim
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          2019.11.13
Release:          1
Summary:          Product Limit Estimation for event history and survival analysis
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/prodlim_%{version}.tar.gz
Requires:         R-core R-KernSmooth R-survival R-Rcpp
BuildRequires:    R-devel
BuildRequires:	  R-lava
BuildRequires:    R-Rcpp
Requires:	  R-lava
BuildRequires:    R-KernSmooth R-survival

%description
Fast and user friendly nonparametric estimation in
censored survival (event history) analysis.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8297 |21cr|R-profileModel-0.5.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  profileModel
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.5.9
Release:          4
Summary:          Tools for profiling inference functions for various model classes
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.5-9.tar.gz
BuildArch:        noarch
Requires:         R-core



Requires:         R-MASS R-gnm 
BuildRequires:    R-devel Rmath-devel 

BuildRequires:   R-MASS R-gnm 
%description
profileModel provides tools that can be used to calculate, evaluate, plot
and use for inference the profiles of *arbitrary* inference functions for
*arbitrary* 'glm'-like fitted models with linear predictors.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/CHANGES
%{rlibdir}/%{packname}/CITATION

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8298 |21cr|R-proto-0.3.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  proto
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.3.10
Release:          8
Summary:          Prototype object-based programming
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/proto_0.3-10.tar.gz
Requires:         R-graph R-Rgraphviz
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-graph R-Rgraphviz

%description
An object oriented system using object-based, also called prototype-based,
rather than class-based object oriented ideas.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8299 |21cr|R-proxy-0.4.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  proxy
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.4.14
Release:          5
Summary:          Distance and Similarity Measures
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/proxy_0.4-14.tar.gz
%if %{without bootstrap}
Requires:         R-cba
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
%if %{without bootstrap}
BuildRequires:    R-cba
%endif

%description
Provides an extensible framework for the effcient calculation of auto- and
cross-proximities, along with implementations of the most popular ones.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8300 |21cr|R-pscl-1.4.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  pscl
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.4.6
Release:          4
Summary:          Political Science Computational Laboratory, Stanford University
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/pscl_1.4.6.tar.gz
Requires:         R-MASS R-stats R-mvtnorm R-coda R-gam R-vcd 
Requires:         R-lattice 
Requires:         R-MCMCpack R-sandwich R-zoo
Recommends:       R-car R-lmtest
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-MASS R-stats R-mvtnorm R-coda R-gam R-vcd
BuildRequires:    R-lattice 
BuildRequires:    R-MCMCpack R-sandwich R-zoo 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Bayesian analysis of item-response theory (IRT) models, roll call
analysis; computing highest density regions; maximum likelihood estimation
of zero-inflated and hurdle models for count data; goodness-of-fit
measures for GLMs; data sets used in writing and teaching at the Political
Science Computational Laboratory; seats-votes curves.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/COPYRIGHTS
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8301 |21cr|R-psychotools-0.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  psychotools
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.4.2
Release:          4
Summary:          Infrastructure for Psychometric Modeling
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.4-2.tar.gz


Requires:         R-graphics R-grDevices R-stats R-utils 
Requires:         R-multcomp R-Formula
Recommends:	 R-likert 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-graphics R-grDevices R-stats R-utils 
BuildRequires:   R-multcomp R-Formula 
#BuildRequires:   R-likert

%description
Infrastructure for psychometric modeling such as data classes (for item
response data and paired comparisons), basic model fitting functions (for
Bradley-Terry, Rasch, partial credit, rating scale, multinomial processing
tree models), extractor functions for different types of parameters (item,
person, threshold, discrimination), unified inference and visualizations,
and various datasets for illustration. Intended as a common lightweight
and efficient toolbox for psychometric modeling and a common building
block for fitting psychometric mixture models in package "psychomix" and
trees based on psychometric models in package "psychotree".

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8302 |21cr|rqbit-7.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

#TODO: uncomment build desktop, after update version.
# This version not support cargo-tauri-2.x

Name:		rqbit
Version:	7.0.1
Release:	1
Summary:	A bittorrent client in Rust
License:	BSD-2-Clause
Group:		Sound
URL:		https://github.com/ikatson/rqbit
Source:		https://github.com/ikatson/rqbit/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# use 'cargo vendor' and compress vendor dir, or upd.sh
Source1:	%{name}-vendor-%{version}.tar.xz
# 'cd desktop && npm install' compress node_modules dir
Source2:	node_modules_desktop.tar.gz
# 'cd crates/librqbit/webui && npm install' compress node_modules dir
Source3:	node_modules_webui.tar.gz
Source10:	upd.sh
BuildRequires:	cargo
#BuildRequires:	cargo-tauri
BuildRequires:	npm
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(webkit2gtk-4.1)

%description
Rqbit is a bittorrent client written in Rust. 
Has HTTP API and Web UI, and can be used as a library.

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}

#------------------------------------------------------------------
%if 0
%package desktop
Summary:	A bittorrent client in Rust (desktop app)
Requires:	%{name} = %{EVRD}
Requires:	hicolor-icon-theme

%description desktop
Rqbit is a bittorrent client written in Rust. 
Has HTTP API and Web UI, and can be used as a library.

%files desktop
%endif
#------------------------------------------------------------------

%prep
%autosetup -p1 -a1

mkdir -p .cargo
cat > .cargo/config.toml <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

pushd desktop
tar -xzf %{SOURCE2}
popd
pushd crates/librqbit/webui
tar -xzf %{SOURCE3}
popd

%build
cargo build --release --frozen %{?_smp_mflags}

%if 0
pushd desktop
cargo tauri build -b deb --ci
popd
%endif

%install
install -Dm 755 -t %{buildroot}%{_bindir} target/release/rqbit

%if 0
mv ./desktop/src-tauri/target/release/bundle/deb/rqbit-desktop_*/data/usr %{buildroot}%{_prefix}
%endif
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8303 |21cr|R-quadprog-1.5.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  quadprog
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.5.5
Release:          5
Summary:          Functions to solve Quadratic Programming Problems
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/quadprog_1.5-5.tar.gz
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
This package contains routines and documentation for solving quadratic
programming problems.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8304 |21cr|R-quantreg-5.11-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  quantreg
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          5.11
Release:          5
Summary:          Quantile Regression
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/quantreg_%{version}.tar.gz
Requires:         R-stats R-SparseM R-tripack R-akima R-MASS R-survival R-rgl
Requires:         R-logspline R-nor1mix R-MatrixModels R-Matrix R-Formula
%if %{without bootstrap}
Requires:         R-zoo
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-stats R-SparseM R-tripack R-akima R-MASS R-survival R-rgl
BuildRequires:    R-logspline R-nor1mix R-MatrixModels R-Matrix R-Formula
%if %{without bootstrap}
BuildRequires:    R-zoo
%endif
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Quantile regression and related methods.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/FAQ
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/TODO
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8305 |21cr|R-qvcalc-0.8.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  qvcalc
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.8.8
Release:          5
Summary:          Quasi variances for factor effects in statistical models
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.8-8.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-relimp R-MASS 
BuildRequires:    R-devel Rmath-devel texlive

BuildRequires:   R-relimp R-MASS

%description
Functions to compute quasi variances and associated measures of
approximation error

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8306 |21cr|R-R6-2.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  R6
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.2.0
Release:          4
Summary:          Classes with Reference Semantics
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Recommends:         R-knitr R-microbenchmark R-pryr R-testthat R-ggplot2 R-scales
BuildRequires:    R-devel Rmath-devel

BuildRequires:   R-knitr R-scales

%description
The R6 package allows the creation of classes with reference semantics,
similar to R's built-in reference classes. Compared to reference classes,
R6 classes are simpler and lighter-weight, and they are not built on S4
classes so they do not require the methods package. These classes allow
public and private members, and they support inheritance, even when the
classes are defined in different packages.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8307 |21cr|R-rae230a.db-2.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rae230a.db
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.10.1
Release:          5
Summary:          Affymetrix Rat Expression Set 230 annotation data (chip rae230a)
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-methods R-AnnotationDbi R-org.Rn.eg.db 
Requires:         R-methods R-AnnotationDbi 
Requires:         R-annotate 
BuildRequires:    R-devel Rmath-devel  R-methods R-AnnotationDbi R-org.Rn.eg.db
BuildRequires:    R-methods R-AnnotationDbi 
BuildRequires:    R-annotate 

%description
Affymetrix Rat Expression Set 230 annotation data (chip rae230a) assembled
using data from public repositories

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8308 |21cr|R-rae230aprobe-2.13.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rae230aprobe
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.13.0
Release:          5
Summary:          Probe sequence data for microarrays of type rae230a
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/rae230aprobe_2.13.0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-AnnotationDbi 
BuildRequires:    R-devel Rmath-devel  R-AnnotationDbi R-IRanges R-S4Vectors

%description
This package was automatically created by package AnnotationDbi version
1.15.34. The probe sequence data was obtained from
http://www.affymetrix.com. The file name was RAE230A\_probe\_tab.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8309 |21cr|R-RandomFields-3.0.62-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RandomFields
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.0.62
Release:          3
Summary:          Simulation and Analysis of Random Fields
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/RandomFields_3.0.62.tar.gz
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-sp
BuildRequires:    blas-devel
BuildRequires:    lapack-devel
Requires:    R-sp
BuildRequires:  R-raster R-tcltk2 R-tkrplot R-spam R-colorspace
Requires:       R-raster R-tcltk2 R-tkrplot R-spam R-colorspace


%description
Simulation of Gaussian and extreme value random fields; conditional
simulation; kriging

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Requires too much RAM
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8310 |21cr|R-randomForest-4.6.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  randomForest
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          4.6.10
Release:          3
Summary:          Breiman and Cutler's random forests for classification and regression
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/randomForest_4.6-10.tar.gz
Requires:         R-stats 
Requires:         R-RColorBrewer R-MASS 
BuildRequires:    R-devel Rmath-devel  R-stats
BuildRequires:    R-RColorBrewer R-MASS 

%description
Classification and regression based on a forest of trees using random

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8311 |21cr|R-randomForest-4.6.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  randomForest
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          4.6.10
Release:          4
Summary:          Breiman and Cutler's random forests for classification and regression
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/randomForest_4.6-10.tar.gz
Requires:         R-stats 
Requires:         R-RColorBrewer R-MASS 
BuildRequires:    R-devel Rmath-devel  R-stats
BuildRequires:    R-RColorBrewer R-MASS 

%description
Classification and regression based on a forest of trees using random

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8312 |21cr|R-randomSurvivalForest-3.6.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  randomSurvivalForest
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.6.4
Release:          4
Summary:          Random Survival Forests
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/randomSurvivalForest_3.6.4.tar.gz
Requires:         R-XML 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-XML 

%description
Random survival forests for right-censored and competing risks survival

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
# %doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8313 |21cr|R-RANN-2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RANN
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.5
Release:          4
Summary:          Fast Nearest Neighbour Search
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/RANN_%{version}.tar.gz
BuildRequires:    R-devel Rmath-devel
Recommends:       R-testthat

%description
Finds the k nearest neighbours for every point in a given dataset in O(N
log N) time using Arya and Mount's ANN library (v1.1.1).  Two functions
allow searches for nearest neighbours within a point set or between two
separate point sets. There is support for approximate as well as exact
searches, fixed radius searches and bd as well as kd trees. This version
updates ANN 1.1.3 and fixes package compilation on Windows.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/COPYRIGHT

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8314 |21cr|R-raster-3.4.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname raster
%define aver %(echo %{version} |cut -d. -f1,2)
%define bver %(echo %{version} |cut -d. -f3)

Summary:	Reading, writing, manipulating, analyzing and modeling of spatial data
Name:		R-raster
Version:	3.4.13
Release:	1
License:	GPL3+
Group:		Sciences/Mathematics
Url:		https://cran.r-project.org/web/packages/raster
Source0:	https://cran.r-project.org/src/contrib/%{oname}_%{aver}-%{bver}.tar.gz
BuildRequires:	R-Rcpp
BuildRequires:	R-sp
BuildRequires:	R-devel
Requires:	R-Rcpp
Requires:	R-sp

%description
Reading, writing, manipulating, analyzing and modeling of spatial data.
The package implements basic and high-level functions for raster data
and for vector data operations such as intersections.
See the manual and tutorials on <https://rspatial.org/> to get started.

%files
%doc %{_libdir}/R/library/%{oname}/html
%doc %{_libdir}/R/library/%{oname}/NEWS
%{_libdir}/R/library/%{oname}/DESCRIPTION
%{_libdir}/R/library/%{oname}/external
%{_libdir}/R/library/%{oname}/help
%{_libdir}/R/library/%{oname}/INDEX
%{_libdir}/R/library/%{oname}/libs/
%{_libdir}/R/library/%{oname}/Meta/
%{_libdir}/R/library/%{oname}/NAMESPACE
%{_libdir}/R/library/%{oname}/R/
%{_libdir}/R/library/%{oname}/tinytest

#------------------------------------------------------------------

%prep
%setup -qcn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_libdir}/R/library
%{_bindir}/R CMD INSTALL -l %{buildroot}%{_libdir}/R/library %{oname}
test -d %{oname}/src && (cd %{oname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{_libdir}/R/library/R.css

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8315 |21cr|R-rasterVis-0.32-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rasterVis
%global rlibdir  %{_datadir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.32
Release:          4
Summary:          Visualization methods for the raster package
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-methods R-raster R-lattice R-latticeExtra R-hexbin 
Requires:         R-grid R-grDevices R-sp R-zoo R-RColorBrewer 
Requires:         R-parallel R-rgl R-ggplot2 R-colorspace R-dichromat 
BuildRequires:    R-devel Rmath-devel R-methods R-raster R-lattice R-latticeExtra R-hexbin
BuildRequires:    R-grid R-grDevices R-sp R-zoo R-RColorBrewer 
BuildRequires:   R-parallel R-rgl R-ggplot2 R-colorspace R-dichromat 

%description
The raster package defines classes and methods for spatial raster data
access and manipulation. The rasterVis package complements raster
providing a set of methods for enhanced visualization and interaction.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8316 |21cr|R-rbenchmark-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rbenchmark
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.0
Release:          6
Summary:          Benchmarking routine for R
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
BuildRequires:    R-devel Rmath-devel texlive-collection-latex

%description
rbenchmark is inspired by the Perl module Benchmark, and is intended to
facilitate benchmarking of arbitrary R code. The library consists of just
one function, benchmark, which is a simple wrapper around system.time. 
Given a specification of the benchmarking process (counts of replications,
evaluation environment) and an arbitrary number of expressions, benchmark
evaluates each of the expressions in the specified environment,
replicating the evaluation as many times as specified, and returning the
results conveniently wrapped into a data frame.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/demo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8317 |21cr|R-RBGL-1.44.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RBGL
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.44.0
Release:          3
Summary:          An interface to the BOOST graph library
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/RBGL_%{version}.tar.gz
Requires:         R-graph R-methods 
Requires:         R-methods 
Requires:         R-Rgraphviz 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-graph R-methods
BuildRequires:    R-methods 
BuildRequires:    R-Rgraphviz 
BuildRequires:    blas-devel
BuildRequires:    boost-devel
BuildRequires:    graphviz-devel
BuildRequires:    lapack-devel

%description
A fairly extensive and comprehensive interface to the graph algorithms
contained in the BOOST library.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

if [ x$DISPLAY != x ];	then %{_bindir}/R CMD check %{packname}
else			true
fi

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/XML
%{rlibdir}/%{packname}/boostExamples
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demos
%{rlibdir}/%{packname}/dot
%{rlibdir}/%{packname}/dtd
%{rlibdir}/%{packname}/fdep.ps
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8318 |21cr|R-R.cache-0.12.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  R.cache
%global rlibdir  %{_datadir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.12.0
Release:          3
Summary:          Fast and Light-Weight Caching (Memoization) of Objects and Results
Group:            Sciences/Mathematics
License:          LGPL (>= 2.1)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-utils R-R.methodsS3 R-R.oo R-R.utils R-digest 

BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-utils R-R.methodsS3 R-R.oo R-R.utils R-digest 

%description
Memoization can be used to speed up repetitive and computational expensive
function calls.  The first time a function that implements memoization is
called the results are stored in a cache memory.  The next time the
function is called with the same set of parameters, the results are
momentarily retrieved from the cache avoiding repeating the calculations. 
With this package, any R object can be cached in a key-value storage where
the key can be an arbitrary set of R objects.  The cache memory is
persistent (on the file system).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8319 |21cr|R-R.cache-0.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  R.cache
%global rlibdir  %{_datadir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.12.0
Release:          4
Summary:          Fast and Light-Weight Caching (Memoization) of Objects and Results
Group:            Sciences/Mathematics
License:          LGPL (>= 2.1)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-utils R-R.methodsS3 R-R.oo R-R.utils R-digest 

BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-utils R-R.methodsS3 R-R.oo R-R.utils R-digest 

%description
Memoization can be used to speed up repetitive and computational expensive
function calls.  The first time a function that implements memoization is
called the results are stored in a cache memory.  The next time the
function is called with the same set of parameters, the results are
momentarily retrieved from the cache avoiding repeating the calculations. 
With this package, any R object can be cached in a key-value storage where
the key can be an arbitrary set of R objects.  The cache memory is
persistent (on the file system).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8320 |21cr|R-Rcgmin-2013.2.21-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Rcgmin
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2013.2.21
Release:          4
Summary:          Conjugate gradient minimization of nonlinear functions with box constraints
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2013-2.21.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-numDeriv 

BuildRequires:    R-devel Rmath-devel  R-numDeriv texlive


%description
Conjugate gradient minimization of nonlinear functions with box
constraints incorporating Dai/Yuan update

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8321 |21cr|R-RColorBrewer-1.1_2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RColorBrewer
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.1_2
Release:          4
Summary:          ColorBrewer palettes
Group:            Sciences/Mathematics
License:          Apache License 2.0
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.1-2.tar.gz
BuildArch:        noarch
Requires:         R-core
BuildRequires:    R-devel Rmath-devel  

%description
The packages provides palettes for drawing nice maps shaded according to a

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8322 |21cr|R-Rcompression-0.93_2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Rcompression
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.93_2
Release:          5
Summary:          In-memory decompression for GNU zip and bzip2 formats
Group:            Sciences/Mathematics
License:          zlib. See LICENSE.
URL:              http://www.omegahat.org/Rcompression/
Source0:          http://www.omegahat.org/Rcompression/Rcompression_0.93-2.tar.gz
Requires:         R-methods 
BuildRequires:    R-devel Rmath-devel  R-methods

%description
The package is a basic interface to some of the compression facilities in
the zlib and bzip2 libraries for uncompressing (and compressing) data in
memory that is not in a file. It handles bz2, gzip and regular compress
(.Z) content.  It can work on files or with data in memory, e.g.
downloaded directly into memory via an HTTP request.  It is used when we
don't want to write data to a file and then read it back into R. This is
common when performing HTTP requests via the RCurl package and dependent
packages such as SSOAP.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/sampleData


%changelog
* Fri Feb 17 2012 Paulo Andrade <pcpa@mandriva.com.br> 0.93_2-1
+ Revision: 775542
- Import R-Rcompression
- Import R-Rcompression


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8323 |21cr|R-Rcompression-0.93_2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Rcompression
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.93_2
Release:          6
Summary:          In-memory decompression for GNU zip and bzip2 formats
Group:            Sciences/Mathematics
License:          zlib. See LICENSE.
URL:              http://www.omegahat.org/Rcompression/
Source0:          http://www.omegahat.org/Rcompression/Rcompression_0.93-2.tar.gz
# From Fedora
Patch0:           R-Rcompression-stdlib.patch
Requires:         R-methods 
BuildRequires:    R-devel Rmath-devel  R-methods

%description
The package is a basic interface to some of the compression facilities in
the zlib and bzip2 libraries for uncompressing (and compressing) data in
memory that is not in a file. It handles bz2, gzip and regular compress
(.Z) content.  It can work on files or with data in memory, e.g.
downloaded directly into memory via an HTTP request.  It is used when we
don't want to write data to a file and then read it back into R. This is
common when performing HTTP requests via the RCurl package and dependent
packages such as SSOAP.

%prep
%setup -q -c -n %{packname}
%patch0 -p1 -b .stdlib
cd %{packname}
autoreconf -if

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Delete pointless sampleData directory full of test files
rm -rf %{buildroot}%{_libdir}/R/library/%{packname}/sampleData/

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8324 |21cr|R-Rcpp-0.12.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  Rcpp
%global rlibdir  %{_libdir}/R/library

%global __requires_exclude '/usr/bin/R'

Name:             R-%{packname}
Version:          0.12.17
Release:          1
Summary:          Seamless R and C++ Integration
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/Rcpp_%{version}.tar.gz
Requires:         R-methods 
Requires:         R-RUnit
Requires:         R-inline
Requires:         R-rbenchmark 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-methods
BuildRequires:    R-RUnit
BuildRequires:    R-inline
BuildRequires:    R-rbenchmark
%if %{without bootstrap}
BuildRequires: 	  R-highlight R-pkgKitten R-pinp
Recommends: 	  R-highlight R-pkgKitten R-pinp
%endif

%description
The Rcpp package provides R functions as well as a C++ library which
facilitate the integration of R and C++. . R data types (SEXP) are matched
to C++ objects in a class hierarchy. All R types are supported (vectors,
functions, environment, etc ...)  and each type is mapped to a dedicated
class. For example, numeric vectors are represented as instances of the
Rcpp::NumericVector class, environments are represented as instances of
Rcpp::Environment, functions are represented as Rcpp::Function, etc ...
The "Rcpp-introduction" vignette provides a good entry point to Rcpp. .
Conversion from C++ to R and back is driven by the templates Rcpp::wrap
and Rcpp::as which are highly flexible and extensible, as documented in
the "Rcpp-extending" vignette. . Rcpp also provides Rcpp modules, a
framework that allows exposing C++ functions and classes to the R level.
The "Rcpp-modules" vignette details the current set of features of
Rcpp-modules. . Rcpp includes a concept called Rcpp sugar that brings many
R functions into C++. Sugar takes advantage of lazy evaluation and
expression templates to achieve great performance while exposing a syntax
that is much nicer to use than the equivalent low-level loop code. The
"Rcpp-sugar" vignette gives an overview of the feature. . Several examples
are included, and more than 750 unit tests in over 330 unit test functions
provide additional usage examples. . An earlier version of Rcpp,
containing what we now call the 'classic Rcpp API' was written during 2005
and 2006 by Dominick Samperi. This code has been factored out of Rcpp into
the package RcppClassic, and it is still available for code relying on the
older interface. New development should use alwayse use this Rcpp package

%prep
%setup -q -c -n %{packname}
perl -pi -e 's|%{_bindir}/r|%{_bindir}/R|;' `find . -name \*.R` `find . -name \*.r`

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/announce
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/README
%doc %{rlibdir}/%{packname}/THANKS
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/discovery
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
# %{rlibdir}/%{packname}/lib
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/prompt
%{rlibdir}/%{packname}/skeleton
%{rlibdir}/%{packname}/unitTests
%{rlibdir}/%{packname}/bib

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8325 |21cr|R-Rcpp-0.12.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  Rcpp
%global rlibdir  %{_libdir}/R/library

%global __requires_exclude /usr/bin/R

Name:             R-%{packname}
Version:          0.12.17
Release:          2
Summary:          Seamless R and C++ Integration
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/Rcpp_%{version}.tar.gz
Requires:         R-methods 
Requires:         R-RUnit
Requires:         R-rbenchmark 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-methods
BuildRequires:    R-RUnit
Recommends:       R-inline
BuildRequires:    R-rbenchmark
%if %{without bootstrap}
BuildRequires: 	  R-highlight R-pkgKitten R-pinp
Recommends: 	  R-highlight R-pkgKitten R-pinp
%endif

%description
The Rcpp package provides R functions as well as a C++ library which
facilitate the integration of R and C++. . R data types (SEXP) are matched
to C++ objects in a class hierarchy. All R types are supported (vectors,
functions, environment, etc ...)  and each type is mapped to a dedicated
class. For example, numeric vectors are represented as instances of the
Rcpp::NumericVector class, environments are represented as instances of
Rcpp::Environment, functions are represented as Rcpp::Function, etc ...
The "Rcpp-introduction" vignette provides a good entry point to Rcpp. .
Conversion from C++ to R and back is driven by the templates Rcpp::wrap
and Rcpp::as which are highly flexible and extensible, as documented in
the "Rcpp-extending" vignette. . Rcpp also provides Rcpp modules, a
framework that allows exposing C++ functions and classes to the R level.
The "Rcpp-modules" vignette details the current set of features of
Rcpp-modules. . Rcpp includes a concept called Rcpp sugar that brings many
R functions into C++. Sugar takes advantage of lazy evaluation and
expression templates to achieve great performance while exposing a syntax
that is much nicer to use than the equivalent low-level loop code. The
"Rcpp-sugar" vignette gives an overview of the feature. . Several examples
are included, and more than 750 unit tests in over 330 unit test functions
provide additional usage examples. . An earlier version of Rcpp,
containing what we now call the 'classic Rcpp API' was written during 2005
and 2006 by Dominick Samperi. This code has been factored out of Rcpp into
the package RcppClassic, and it is still available for code relying on the
older interface. New development should use alwayse use this Rcpp package

%prep
%setup -q -c -n %{packname}
perl -pi -e 's|%{_bindir}/r|%{_bindir}/R|;' `find . -name \*.R` `find . -name \*.r`

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/announce
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/README
%doc %{rlibdir}/%{packname}/THANKS
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/discovery
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
# %{rlibdir}/%{packname}/lib
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/prompt
%{rlibdir}/%{packname}/skeleton
%{rlibdir}/%{packname}/unitTests
%{rlibdir}/%{packname}/bib

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8326 |21cr|R-RcppArmadillo-0.5.200.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname RcppArmadillo
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5.200.1.0
Release:          5
Summary:          Rcpp integration for Armadillo templated linear algebra library
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/RcppArmadillo_%{version}.tar.gz
Requires:         R-Rcpp >= 0.10.2 R-inline R-RUnit R-pkgKitten
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-Rcpp >= 0.10.2 R-inline R-RUnit R-pkgKitten
BuildRequires:    lapack-devel

%description
R and Armadillo integration using Rcpp Armadillo is a
templated C++ linear algebra library (by Conrad Sanderson) that
aims towards a good balance between speed and ease of use.
Integer, floating point and complex numbers are supported, as
well as a subset of trigonometric and statistics functions.
Various matrix decompositions are provided through optional
integration with LAPACK and ATLAS libraries.
A delayed evaluation approach is employed (during compile time) to
combine several operations into one, and to reduce (or
eliminate) the need for temporaries. This is accomplished
through recursive templates and template meta-programming.
This library is useful if C++ has been decided as the language of
choice (due to speed and/or integration capabilities), rather than 
another language.
The RcppArmadillo package includes the header files from the templated
Armadillo library (currently version 3.820). Thus users do not
need to install Armadillo itself in order to use RcppArmadillo.
This Armadillo integration provides a nice illustration of the
capabilities of the Rcpp package for seamless R and C++ integration.
Armadillo is licensed under the MPL 2.0, while RcppArmadillo (the Rcpp
bindings/bridge to Armadillo) is licensed under the GNU GPL
version 2 or later, as is the rest of Rcpp.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/announce
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/skeleton
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8327 |21cr|R-RcppEigen-0.3.2.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RcppEigen
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.3.2.4.0
Release:          4
Summary:          Rcpp integration for the Eigen templated linear algebra library
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-Matrix R-Rcpp R-pkgKitten
Requires:         R-inline R-RUnit
Recommends:       R-testthat 
BuildRequires:    R-devel Rmath-devel texlive-latex R-pkgKitten
BuildRequires:    R-Matrix R-Rcpp 
BuildRequires:   R-inline R-RUnit
BuildRequires:    pkgconfig(lapack)

%description
R and Eigen integration using Rcpp. . Eigen is a C++ template library for
linear algebra: matrices, vectors, numerical solvers and related
algorithms.  It supports dense and sparse matrices on integer, floating
point and complex numbers, decompositions of such matrices, and solutions
of linear systems. Its performance on many algorithms is comparable with
some of the best implementations based on Lapack and level-3 BLAS. . The
RcppEigen package includes the header files from the Eigen C++ template
library (currently version 3.2.0). Thus users do not need to install Eigen
itself in order to use RcppEigen. . Eigen is licensed under the GNU LGPL
version 3 or later, and also under the GNU GPL version 2 or later. 
RcppEigen (the Rcpp bindings/bridge to Eigen) is licensed under the GNU
GPL version 2 or later, as is the rest of Rcpp.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/COPYRIGHTS
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/skeleton
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8328 |21cr|R-RCurl-1.95.4.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RCurl
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.95.4.7
Release:          4
Summary:          General network (HTTP/FTP/...) client interface for R
Group:            Sciences/Mathematics
License:          BSD
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Requires:         R-methods R-bitops R-Rcompression R-XML
BuildRequires:    R-devel Rmath-devel 
Source0:          http://cran.r-project.org/src/contrib/RCurl_1.95-4.7.tar.gz
BuildRequires:    R-methods R-bitops R-Rcompression R-XML
BuildRequires:    curl-devel

%description
The package allows one to compose general HTTP requests and provides
convenient functions to fetch URIs, get & post forms, etc. and process the
results returned by the Web server. This provides a great deal of control
over the HTTP/FTP/... connection and the form of the request while
providing a higher-level interface than is available just using R socket
connections.  Additionally, the underlying implementation is robust and
extensive, supporting FTP/FTPS/TFTP (uploads and downloads), SSL/HTTPS,
telnet, dict, ldap, and also supports cookies, redirects, authentication,

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CurlSSL
%{rlibdir}/%{packname}/HTTPErrors
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/enums
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/etc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8329 |21cr|R-reactome.db-1.48.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  reactome.db
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.48.0
Release:          3
Summary:          A set of annotation maps for reactome
Group:            Sciences/Mathematics
License:          CC BY-NC 3.0
URL:              http://bioconductor.org/packages/release/data/annotation/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/data/annotation/src/contrib/%{packname}_%{version}.tar.gz

BuildRequires:    R-devel Rmath-devel R-AnnotationDbi
Requires:         R-AnnotationDbi

%description
A set of annotation maps for reactome.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/DBschemas
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8330 |21cr|R-registry-0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%global packname  registry
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5
Release:          2
Summary:          Infrastructure for R Package Registries
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-utils 

BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-utils 

%description
Provides a generic infrastructure for creating and using registries.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8331 |21cr|R-relevent-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  relevent
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.3
Release:          5
Summary:          Relational Event Models
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/relevent_1.0-3.tar.gz
Requires:         R-trust R-sna R-coda
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-trust R-sna R-coda

%description
Tools to fit relational event models.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8332 |21cr|R-relimp-1.0_3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  relimp
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0_3
Release:          6
Summary:          Relative Contribution of Effects in a Regression Model
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-3.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-tcltk 
Requires:         R-nnet
Requires:         R-MASS 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive
BuildRequires:    R-tcltk 
BuildRequires:    R-nnet
BuildRequires:    R-MASS 
BuildRequires:    pkgconfig(lapack)
%rename R-cran-relimp

%description
Functions to facilitate inference on the relative importance of predictors
in a linear or generalized linear model, and a couple of useful Tcl/Tk

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8333 |21cr|R-reshape-0.8.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  reshape
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.8.5
Release:          6
Summary:          Flexibly reshape data
Group:            Sciences/Mathematics
License:          MIT
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-plyr 
BuildRequires:    R-devel Rmath-devel  R-plyr texlive-collection-latex

%description
Reshape lets you flexibly restructure and aggregate data using just two
functions: melt and cast.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8334 |21cr|R-reshape2-1.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname reshape2
%global rlibdir %{_libdir}/R/library

Name:		R-%{packname}
Version:	1.4.1
Release:	5
Summary:	Flexibly reshape data: a reboot of the reshape package
Group:		Sciences/Mathematics
License:	MIT
URL:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Requires:	R-core R-plyr R-stringr R-lattice
BuildRequires:	R-devel Rmath-devel R-plyr R-stringr R-lattice 

%description
Reshape lets you flexibly restructure and aggregate data
using just two functions: melt and cast.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8335 |21cr|R-rex-1.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rex
%global rlibdir  %{_datadir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.1.1
Release:          2
Summary:          Friendly Regular Expressions
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-magrittr R-lazyeval 
Recommends:         R-testthat R-knitr R-rmarkdown R-dplyr R-ggplot2 R-lintr R-Hmisc R-stringr R-rvest R-roxygen2 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-magrittr R-lazyeval 
#BuildRequires:   R-testthat R-knitr R-rmarkdown R-dplyr R-ggplot2 R-lintr R-Hmisc R-stringr R-rvest R-roxygen2 

%description
A friendly interface for the construction of regular expressions.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8336 |21cr|R-rgdal-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname rgdal
%global rlibdir %{_libdir}/R/library

Summary:	Bindings for the Geospatial Data Abstraction Library
Name:		R-%{packname}
Version:	1.6
Release:	1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/rgdal_%{version}-5.tar.gz
BuildRequires:	gdal
BuildRequires:	proj
BuildRequires:	R-methods
BuildRequires:	R-sp
BuildRequires:	texlive-collection-latex
BuildRequires:	R-devel
BuildRequires:	Rmath-devel
BuildRequires:	pkgconfig(gdal)
Requires:	gdal
Requires:	gdal-devel
Requires:	proj
Requires:	R-methods
Requires:	R-sp

%description
Provides bindings to Frank Warmerdam's Geospatial Data Abstraction Library
(GDAL) (>= 1.3.1) and access to projection/transformation operations from
the PROJ.4 library. The GDAL and PROJ.4 libraries are external to the
package, and, when installing the package from source, must be correctly
installed first. Both GDAL raster and OGR vector map data can be imported
into R, and GDAL raster data and OGR vector data exported. Use is made of
classes defined in the sp package. Windows binaries (including GDAL,
PROJ.4 and Expat) are provided on CRAN. Mac Intel OS X binaries (including
GDAL, PROJ.4 and Expat) are not provided on CRAN, but can be installed
from the CRAN Extras repository with: setRepositories(ind=1:2);

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/LICENSE*
%doc %{rlibdir}/%{packname}/NEWS.md
%doc %{rlibdir}/%{packname}/README*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/OSGeo4W_test
%{rlibdir}/%{packname}/SVN_VERSION
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/doc
%{rlibdir}/%{packname}/etc
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/m4
%{rlibdir}/%{packname}/misc
%{rlibdir}/%{packname}/pictures
%{rlibdir}/%{packname}/vectors

#----------------------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8337 |21cr|R-rgenoud-5.7.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rgenoud
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          5.7.12
Release:          5
Summary:          R version of GENetic Optimization Using Derivatives
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/rgenoud_5.7-12.tar.gz
Requires:         R-utils 
Requires:         R-snow 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-utils
BuildRequires:    R-snow 

%description
A genetic algorithm plus derivative optimizer

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8338 |21cr|R-rgeos-0.5.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname rgeos
%global rlibdir %{_libdir}/R/library

Summary:	Interface to Geometry Engine - Open Source (GEOS)
Name:		R-%{packname}
Version:	0.5.9
Release:	1
Group:		Sciences/Mathematics
License:	GPL (>= 2)
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/rgeos_0.5-9.tar.gz
BuildRequires:	R-devel Rmath-devel
BuildRequires:	R-methods R-sp R-stringr R-plyr R-XML
%if %{without bootstrap}
BuildRequires:	R-maptools
%endif
BuildRequires:	R-rgdal
BuildRequires:	gdal
BuildRequires:	gdal-devel
BuildRequires:	proj
Requires:	R-methods R-sp R-stringr R-plyr R-XML
%if %{without bootstrap}
Requires:	R-maptools
%endif
Requires:	gdal
Requires:	gdal-devel
Requires:	proj

%description
Interface to Geometry Engine - Open Source (GEOS) using the C API for
topology operations on geometries.

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%doc %{rlibdir}/%{packname}/NEWS.md
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/README*
%doc %{rlibdir}/%{packname}/SVN_VERSION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/poly-ex-gpc
%{rlibdir}/%{packname}/test*
%{rlibdir}/%{packname}/wkts

#--------------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8339 |21cr|R-rgl-0.95.1247-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rgl
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.95.1247
Release:          4
Summary:          3D visualization device system (OpenGL)
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/rgl_%{version}.tar.gz
Requires:         R-stats R-grDevices 
Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel  R-stats R-grDevices
BuildRequires:    R-MASS 
BuildRequires:    png-devel
BuildRequires:    pkgconfig(gl)
BuildRequires:    pkgconfig(glu)
%rename R-cran-rgl

%description
3D visualization device (OpenGL)

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/demodata
%{rlibdir}/%{packname}/fonts
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/doc
%{rlibdir}/%{packname}/textures
%{rlibdir}/%{packname}/WebGL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8340 |21cr|R-Rglpk-0.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Rglpk
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.6.0
Release:          5
Summary:          R/GNU Linear Programming Kit Interface
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/Rglpk_0.6-0.tar.gz
Requires:         R-slam 
BuildRequires:    R-devel Rmath-devel  R-slam
BuildRequires:    glpk-devel

%description
R interface to the GNU Linear Programing Kit (GLPK version 4.47 is shipped
with the source package).  GLPK is open source software for solving
large-scale linear programming (LP), mixed integer linear programming
(MILP) and other related problems.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CHANGELOG
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8341 |21cr|R-Rgraphviz-2.18.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname Rgraphviz
%global rlibdir %{_libdir}/R/library

Summary:	Provides plotting capabilities for R graph objects
Name:		R-%{packname}
Version:	2.18.0
Release:	3
License:	Artistic-2.0
Group:		Sciences/Mathematics
Url:		http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:	http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz
BuildRequires:	R-utils R-graph R-grid R-graph R-graphics R-grDevices
BuildRequires:	R-grid R-methods R-utils
BuildRequires:	R-BiocGenerics
BuildRequires:	blas-devel
BuildRequires:	graphviz-devel
BuildRequires:	graphviz
BuildRequires:	lapack-devel
BuildRequires:	x11-server-xvfb
BuildRequires:	R-devel Rmath-devel texlive-collection-latex R-methods
Requires:	R-methods R-utils R-graph R-grid
Requires:	R-graph R-graphics R-grDevices R-grid R-methods R-utils
Requires:	graphviz
Requires:	R-BiocGenerics

%description
Interfaces R with the AT and T graphviz library for plotting R graph
objects from the graph package. Users on all platforms must install
graphviz; see the README file, available in the source distribution of
this file, for details.

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/prepare
%{rlibdir}/%{packname}/unitTests
%{rlibdir}/%{packname}/usecases

#--------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build
export CFLAGS="-I/usr/include/graphviz"
pushd %{packname}
%configure \
	--with-graphviz=/usr
popd

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME blocks (apparently due to calling malloc, with bogus value, from
# signal handler that apparently triggered the signal due to out of memory)
#(gdb) bt
#0  __lll_lock_wait_private () at ../nptl/sysdeps/unix/sysv/linux/x86_64/lowlevellock.S:96
#1  0x00000034de680ce5 in _L_lock_9980 () from /lib64/libc.so.6
#2  0x00000034de67ea62 in __GI___libc_malloc (bytes=227072984864) at malloc.c:2925
#3  0x00007f1f8b006268 in ?? () from /usr/lib64/R/lib/libR.so
#4  0x00007f1f8af7fbee in ?? () from /usr/lib64/R/lib/libR.so
#5  0x00007f1f8af81417 in ?? () from /usr/lib64/R/lib/libR.so
#6  0x00007f1f8af8248e in ?? () from /usr/lib64/R/lib/libR.so
#7  0x00007f1f8afb21b5 in R_GetTraceback () from /usr/lib64/R/lib/libR.so
#8  0x00007f1f8affad61 in ?? () from /usr/lib64/R/lib/libR.so
#9  <signal handler called>
#10 malloc_consolidate (av=0x34de9ac720) at malloc.c:4252
#11 0x00000034de67bff8 in malloc_consolidate (av=0x34de9ac720) at malloc.c:4227
#12 _int_malloc (av=0x34de9ac720, bytes=<optimized out>) at malloc.c:3538
#13 0x00000034de67ea70 in __GI___libc_malloc (bytes=2008) at malloc.c:2928
%if 0
%check
xvfb-run %{_bindir}/R CMD check %{packname}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8342 |21cr|R-RGtk2-2.20.31-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RGtk2
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.20.31
Release:          4
Summary:          R bindings for Gtk 2.8.0 and above
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/RGtk2_%{version}.tar.gz
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    gtk2-devel
BuildRequires:    pkgconfig(libglade-2.0)
%rename R-cran-RGtk2

%description
Facilities in the R language for programming graphical interfaces using
Gtk, the Gimp Tool Kit.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/images
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/ui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8343 |21cr|R-rlecuyer-0.3_3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rlecuyer
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.3_3
Release:          6
Summary:          R interface to RNG with multiple streams
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.3-3.tar.gz
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 

%description
Provides an interface to the C implementation of the random number
generator with multiple independent streams developed by L'Ecuyer et al
(2002). The main purpose of this package is to enable the use of this
random number generator in parallel R applications.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8344 |21cr|R-rmarkdown-1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rmarkdown
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.1
Release:          5
Summary:          Dynamic Documents for R
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-tools R-utils R-grDevices R-yaml R-htmltools R-caTools R-evaluate R-base64enc R-tibble
BuildRequires:        R-knitr R-jsonlite
#Requires:         R-shiny R-tufte R-testthat R-digest 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-tools R-utils R-grDevices R-yaml R-htmltools R-caTools R-evaluate R-base64enc R-tibble 
#BuildRequires:   R-shiny R-tufte R-testthat R-digest 

%description
Convert R Markdown documents into a variety of formats.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8345 |21cr|R-rmeta-2.16-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rmeta
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.16
Release:          6
Summary:          Meta-analysis
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Source1:          NAMESPACE
BuildArch:        noarch
Requires:         R-core
Requires:         R-grid 
BuildRequires:    R-devel Rmath-devel  R-grid

%description
Functions for simple fixed and random effects meta-analysis for two-sample
comparisons and cumulative meta-analyses. Draws standard summary plots,
funnel plots, and computes summaries and tests for association and

%prep
%setup -q -c -n %{packname}
cp %{SOURCE1} %{packname}/

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8346 |21cr|R-R.methodsS3-1.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  R.methodsS3
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.7.1
Release:          4
Summary:          S3 Methods Simplified
Group:            Sciences/Mathematics
License:          LGPL (>= 2.1)
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core


Requires:         R-utils 

BuildRequires:    R-devel Rmath-devel 
#BuildRequires:    R-utils 

%description
Methods that simplify the setup of S3 generic functions and S3 methods. 
Major effort has been made in making definition of methods as simple as
possible with a minimum of maintenance for package developers.  For
example, generic functions are created automatically, if missing, and
naming conflict are automatically solved, if possible.  The method
setMethodS3() is a good start for those who in the future may want to
migrate to S4.  This is a cross-platform package implemented in pure R
that generates standard S3 methods.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

%exclude
%doc %{rlibdir}/%{packname}/html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8347 |21cr|R-Rmpi-0.6.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	packname Rmpi
%define	rlibdir %{_libdir}/R/library

Name:		R-%{packname}
Version:	0.6.9
Release:	2
Summary:	Interface (Wrapper) to MPI (Message-Passing Interface)
Group:		Sciences/Mathematics
License:	GPLv3+
Url:		https://cran.r-project.org/package=%{packname}
Source0:	http://cran.r-project.org/src/contrib/Rmpi_0.6-9.tar.gz
BuildRequires:	openmpi
BuildRequires:	R-rlecuyer
BuildRequires:	texlive-collection-latex
BuildRequires:	pkgconfig(libR)
BuildRequires:	pkgconfig(libRmath)
BuildRequires:	pkgconfig(ompi)
Requires:	openmpi
Requires:	R-rlecuyer

%description
Rmpi provides an interface (wrapper) to MPI APIs. It also provides interactive
R slave environment.

%files
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%dir %{rlibdir}/%{packname}
# Dirs
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
# Files
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/cslavePI.c
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/MacR64slaves.sh
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Rprofile
%{rlibdir}/%{packname}/Rslaves32.cmd
%{rlibdir}/%{packname}/Rslaves64.cmd
%{rlibdir}/%{packname}/Rslaves.sh
%{rlibdir}/%{packname}/slavedaemon.R

#----------------------------------------------------------------------------

%prep
%setup -qn %{packname}


%build
%configure	--with-Rmpi-include="%{_includedir}" \
			--with-Rmpi-libpath="%{_libdir}" \
			--with-Rmpi-type=OPENMPI


%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL --no-test-load -l %{buildroot}%{rlibdir} .

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8348 |21cr|R-robust-0.4.16-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  robust
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.4.16
Release:          4
Summary:          Robust Library
Group:            Sciences/Mathematics
License:          GPLv1+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.4-16.tar.gz

Requires:         R-fit.models R-MASS R-lattice R-robustbase R-rrcov 
Requires:         R-stats R-robustbase 

BuildRequires:    R-devel Rmath-devel  R-fit.models R-MASS R-lattice R-robustbase R-rrcov
BuildRequires:    R-stats R-robustbase 
BuildRequires:    lapack-devel

%description
A package of robust methods.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/C*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data*
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/tests_S

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8349 |21cr|R-robustbase-0.93.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  robustbase
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.93.8
Release:          6
Summary:          Basic Robust Statistics

Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/robustbase/index.html
Source0:          http://cran.r-project.org/src/contrib/robustbase_0.93-8.tar.gz
Requires:         R-stats R-graphics R-methods R-DEoptimR
Recommends:         R-MASS R-lattice R-boot R-MPV R-xtable R-ggplot2 R-RColorBrewer 
Recommends:         R-reshape2 R-GGally
Recommends:         R-robust R-fit.models R-catdata
BuildRequires:    R-devel Rmath-devel texlive R-stats R-graphics R-methods R-DEoptimR
BuildRequires:    R-fit.models
BuildRequires:    R-MASS R-lattice R-boot R-MPV R-xtable R-ggplot2 R-RColorBrewer 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel
BuildRequires:    R-reshape2 R-GGally

%description
"Essential" Robust Statistics.  The goal is to provide tools allowing to
analyze data with robust methods.  This includes regression methodology
including model selections and multivariate statistics where we strive to
cover the book "Robust Statistics, Theory and Methods" by Maronna, Martin
and Yohai; Wiley 2006.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# %check
# Fails due to texlive issues
# %{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8350 |21cr|R-ROC-1.50.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname ROC
%global rlibdir %{_libdir}/R/library

Summary:	utilities for ROC, with uarray focus
Name:		R-%{packname}
Version:	1.50.0
Release:	2
License:	Artistic-2.0
Group:		Sciences/Mathematics
Url:		http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:	http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz
BuildRequires:	R-devel Rmath-devel texlive-latex R-utils R-methods
BuildRequires:	R-Biobase
Requires:	R-utils R-methods
Requires:	R-Biobase

%description
utilities for ROC, with uarray focus

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

#--------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8351 |21cr|R-ROCR-1.0_5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ROCR
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0_5
Release:          5
Summary:          Visualizing the performance of scoring classifiers
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-5.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-gplots R-methods 
BuildRequires:    R-devel Rmath-devel  R-gplots R-methods

%description
ROC graphs, sensitivity/specificity curves, lift charts, and
precision/recall plots are popular examples of trade-off visualizations
for specific pairs of performance measures. ROCR is a flexible tool for
creating cutoff-parametrized 2D performance curves by freely combining two
from over 25 performance measures (new performance measures can be added
using a standard interface). Curves from different cross-validation or
bootstrapping runs can be averaged by different methods, and standard
deviations, standard errors or box plots can be used to visualize the
variability across the runs. The parametrization can be visualized by
printing cutoff values at the corresponding curve positions, or by
coloring the curve according to cutoff. All components of a performance
plot can be quickly adjusted using a flexible parameter dispatching
mechanism. Despite its flexibility, ROCR is easy to use, with only three
commands and reasonable default values for all optional parameters.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8352 |21cr|R-RODBC-1.3.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RODBC
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.3.10
Release:          5
Summary:          ODBC Database Access
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/RODBC_1.3-10.tar.gz
Requires:         R-utils 
Requires:         R-stats 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-utils
BuildRequires:    R-stats 
BuildRequires:    unixODBC-devel

%description
An ODBC database interface

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENCE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/po
%{rlibdir}/%{packname}/tests.R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8353 |21cr|R-R.oo-1.20.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  R.oo
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.20.0
Release:          4
Summary:          R Object-Oriented Programming with or without References
Group:            Sciences/Mathematics
License:          LGPL (>= 2.1)
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:	  noarch

Requires:         R-R.methodsS3 
Requires:         R-methods R-utils 
Requires:         R-tools 
BuildRequires:    R-devel Rmath-devel R-R.methodsS3
%description
Methods and classes for object-oriented programming in R with or without
references.  Large effort has been made on making definition of methods as
simple as possible with a minimum of maintenance for package developers. 
The package has been developed since 2001 and is now considered very
stable.  This is a cross-platform package implemented in pure R that
defines standard S3 classes without any tricks.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/misc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8354 |21cr|R-roxygen2-4.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  roxygen2
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          4.1.0
Release:          5
Summary:          In-source Documentation for R
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-stringr R-brew R-digest R-methods R-Rcpp
Recommends:       R-testthat R-knitr
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-stringr R-brew R-digest R-methods R-Rcpp
#BuildRequires:    R-testthat R-knitr
BuildRequires:    texlive-collection-langgreek

%description
A Doxygen-like in-source documentation system for Rd, collation, and

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8355 |21cr|R-rpanel-1.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  rpanel
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.1.3
Release:          5
Summary:          Simple Interactive Controls for R Using the tcltk Package

Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/rpanel_1.1-3.tar.gz
Requires:         R-tcltk 
%if %{with bootstrap}
Requires:         R-tkrplot R-rgl R-sp R-geoR R-RandomFields
%else
Requires:         R-tkrplot R-rgl R-sp R-geoR R-RandomFields R-sm R-denstrip R-maps
%endif
BuildRequires:    R-devel Rmath-devel  R-tcltk
%if %{with bootstrap}
BuildRequires:    R-tkrplot R-rgl R-sp R-geoR R-RandomFields
%else
BuildRequires:    R-tkrplot R-rgl R-sp R-geoR R-RandomFields R-sm R-denstrip R-maps
%endif

BuildRequires:    bwidget
BuildRequires:    x11-server-xvfb

%description
rpanel provides a set of functions to build simple GUI controls for R
functions.  These are built on the tcltk package. Uses could include
changing a parameter on a graph by animating it with a slider or a
"doublebutton", up to more sophisticated control panels.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
xvfb-run %{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
xvfb-run  %{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/history.txt
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/images

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8356 |21cr|R-rpf-0.53-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rpf
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.53
Release:          2
Summary:          Response Probability Functions
Group:            Sciences/Mathematics
License:          GPLv3+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods R-parallel 
Requires:         R-mvtnorm R-RcppEigen
Recommends:         R-testthat R-roxygen2 R-ggplot2 R-reshape2 R-gridExtra R-numDeriv R-knitr R-mirt
BuildRequires:    R-devel Rmath-devel R-methods R-parallel
BuildRequires:    R-mvtnorm R-RcppEigen
BuildRequires:   R-testthat R-roxygen2 R-ggplot2 R-reshape2 R-gridExtra R-numDeriv R-knitr R-mirt
BuildRequires:   lapack-devel blas-devel

%description
The purpose of this package is to factor out logic and math common to Item
Factor Analysis fitting, diagnostics, and analysis. It is envisioned as
core support code suitable for more specialized IRT packages to build
upon. Complete access to optimized C functions are made available with

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8357 |21cr|R-Rpoppler-0.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Rpoppler
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.0.1
Release:          6
Summary:          PDF tools based on Poppler
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.0-1.tar.gz

BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:    pkgconfig(poppler-glib)

%description
PDF tools based on the Poppler library

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8358 |21cr|R-rrcov-1.3.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  rrcov
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.3.8
Release:          4
Summary:          Scalable Robust Estimators with High Breakdown Point
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.3-8.tar.gz

Requires:         R-methods R-robustbase R-pcaPP 
Requires:         R-stats4 R-mvtnorm 
Requires:         R-grid R-lattice R-cluster R-mclust R-MASS R-ellipse 
BuildRequires:    R-devel Rmath-devel texlive-latex R-methods R-robustbase R-pcaPP
BuildRequires:    R-stats4 R-mvtnorm 
BuildRequires:    R-grid R-lattice R-cluster R-mclust R-MASS R-ellipse 
BuildRequires:    lapack-devel

%description
Robust Location and Scatter Estimation and Robust Multivariate Analysis
with High Breakdown Point.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/bm
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8359 |21cr|R-R.rsp-0.30.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  R.rsp
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.30.0
Release:          4
Summary:          Dynamic Generation of Scientific Reports
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-methods R-stats R-tools R-utils  R-R.methodsS3 R-R.oo R-R.utils R-R.cache
Recommends:	  R-tcltk R-digest R-ascii R-markdown R-knitr R-R.devices R-base64enc
BuildRequires:    R-devel Rmath-devel texlive-latex 
BuildRequires:    R-methods R-stats R-tools R-utils  R-R.methodsS3 R-R.oo R-R.utils R-R.cache
#BuildRequires:	  R-tcltk R-digest R-ascii R-markdown R-knitr R-R.devices R-base64enc

%description
The RSP markup language makes any text-based document come alive.
RSP provides a powerful markup for controlling the content and output
of LaTeX, HTML, Markdown, AsciiDoc, Sweave and knitr documents (and more),
e.g. 'Today's date is <%=Sys.Date()%>'.

Contrary to many other literate programming languages, with RSP it is
straightforward to loop over mixtures of code and text sections, e.g. in
month-by-month summaries. RSP has also several preprocessing directives for
incorporating static and dynamic contents of external files (local or online)
among other things. Functions rstring() and rcat() make it easy to process
RSP strings, rsource() sources an RSP file as it was an R script, while
rfile() compiles it (even online) into its final output format, e.g.
rfile('report.tex.rsp') generates 'report.pdf' and rfile('report.md.rsp')
generates 'report.html'. RSP is ideal for self-contained scientific reports
and R package vignettes. It's easy to use - if you know how to write an
R script, you'll be up and running within minutes.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8360 |21cr|R-RSQLite-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RSQLite
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.0
Release:          8
Summary:          SQLite interface for R
Group:            Sciences/Mathematics
License:          LGPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/RSQLite_%{version}.tar.gz
Requires:         R-methods R-RUnit
Recommends:       R-DBI
Recommends:       R-testthat
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-methods R-RUnit R-DBI
#BuildRequires:    R-testthat
BuildRequires:    sqlite3-devel

%description
Database Interface R driver for SQLite. This package embeds the SQLite
database engine in R and provides an interface compliant with the DBI
package. The source for the SQLite engine (version 3.7.9) is included.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/db

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8361 |21cr|R-rstudioapi-0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  rstudioapi
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.7
Release:          2
Summary:          Safely Access the RStudio API
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core



Recommends:         R-testthat R-knitr R-rmarkdown 
BuildRequires:    R-devel Rmath-devel 


%if %{without bootstrap}
BuildRequires:   R-testthat R-knitr R-rmarkdown
%endif

%description
Access the RStudio API (if available) and provide informative error
messages when it's not.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8362 |21cr|R-RUnit-0.4.28-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  RUnit
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.4.28
Release:          6
Summary:          R Unit test framework
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-utils R-methods 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-utils R-methods
BuildRequires:    x11-server-xvfb

%description
R functions implementing a standard Unit Testing framework, with
additional code inspection and report generation tools

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#xvfb-run %%{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/share
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8363 |21cr|R-R.utils-2.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  R.utils
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.1.0
Release:          4
Summary:          Various Programming Utilities
Group:            Sciences/Mathematics
License:          LGPL (>= 2.1)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-R.oo 
Requires:         R-methods R-utils R-tools R-R.methodsS3 
Requires:         R-digest 
BuildRequires:    R-devel Rmath-devel R-R.oo
BuildRequires:    R-methods R-utils R-tools R-R.methodsS3 
BuildRequires:   R-digest 
%description
Utility functions useful when programming and developing R packages.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%dir %{rlibdir}/%{packname}/data-ex
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data-ex/HISTORY.LNK
%{rlibdir}/%{packname}/data-ex/NEWS.LNK
%{rlibdir}/%{packname}/data-ex/exampleVComments.R
%{rlibdir}/%{packname}/data-ex/lnkFileWith10BitsInFlag.lnk

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8364 |21cr|R-Rvmmin-2013.11.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Rvmmin
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2013.11.12
Release:          5
Summary:          Variable metric nonlinear function minimization with bounds constraints
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2013-11.12.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-optextras 

BuildRequires:    R-devel Rmath-devel  R-optextras texlive-latex


%description
Variable metric nonlinear function minimization with bounds constraints

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8365 |21cr|R-S4Vectors-0.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  S4Vectors
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.30.0
Release:          1
Summary:          S4 implementation of vectors and lists
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods R-utils R-stats R-stats4 R-BiocGenerics 
Requires:         R-methods R-utils R-stats R-stats4 R-BiocGenerics 
Requires:         R-RUnit
Recommends:       R-IRanges
BuildRequires:    R-devel Rmath-devel R-methods R-utils R-stats R-stats4 R-BiocGenerics
BuildRequires:    R-methods R-utils R-stats R-stats4 R-BiocGenerics 
BuildRequires:    R-RUnit texlive

%description
The S4Vectors package defines the Vector and List virtual classes and a
set of generic functions that extend the semantic of ordinary vectors and
lists in R. Package developers can easily implement vector-like or
list-like objects as concrete subclasses of Vector or List. In addition, a
few low-level concrete subclasses of general interest (e.g. DataFrame,
Rle, and Hits) are implemented in the S4Vectors package itself (many more
are implemented in the IRanges package and in other Bioconductor
infrastructure packages).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
# Fails due to texlive issues
# %{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8366 |21cr|R-sandwich-2.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  sandwich
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.3.3
Release:          5
Summary:          Robust Covariance Matrix Estimators
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/sandwich_2.3-3.tar.gz
Requires:         R-stats R-zoo R-stats
%if %{with bootstrap}
Requires:         R-survival R-MASS R-scatterplot3d
%else
Requires:         R-strucchange R-AER R-survival R-MASS
Requires:         R-scatterplot3d
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-stats R-zoo
BuildRequires:    R-stats
%if %{with bootstrap}
BuildRequires:    R-survival R-MASS R-scatterplot3d
%else
BuildRequires:    R-strucchange R-AER R-survival R-MASS
BuildRequires:    R-scatterplot3d
%endif
Recommends:       R-car R-lmtest

%description
Model-robust standard error estimators for cross-sectional, time series
and longitudinal data.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8367 |21cr|R-scales-0.2.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname scales
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.2.5
Release:          5
Summary:          Scale functions for graphics
Group:            Sciences/Mathematics
License:          MIT
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-methods R-RColorBrewer R-stringr R-dichromat 
Requires:         R-munsell >= 0.2 R-plyr >= 1.2 R-labeling
Recommends:       R-testthat
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-methods R-RColorBrewer R-stringr R-dichromat 
BuildRequires:    R-munsell >= 0.2 R-plyr >= 1.2 R-labeling

%description
Scales map data to aesthetics, and provide methods for
automatically determining breaks and labels for axes and legends.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8368 |21cr|R-scatterplot3d-0.3.35-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  scatterplot3d
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.3.35
Release:          5
Summary:          3D Scatter Plot
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/scatterplot3d_0.3-35.tar.gz
BuildRequires:    R-devel Rmath-devel texlive

%rename R-cran-scatterplot3d

%description
Plots a three dimensional (3D) point cloud.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/po

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8369 |21cr|rsec-0.70.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rsec
Version:	0.70.1
Release:	6

Summary:	Security Reporting tool
License:	GPLv2
Group:		System/Base
URL:		http://annvix.org/Tools/rsec
Source0:	http://annvix.org/downloads/rsec/%{name}-%{version}.tar.bz2


Requires:	bash
Requires:	coreutils
Requires:	perl-base
Requires:	diffutils
Requires:	shadow-utils
Requires:	gawk
Requires:	mailx
Requires:	setup >= 2.2.0-21mdk
Requires:	iproute2
Requires:	rkhunter >= 1.3.0
Conflicts:	passwd < 0.67
Conflicts:	msec

%description
The Annvix Security Reporting tool (rsec) is largely based on the
Mandriva Linux msec program.  rsec produces the same reports as msec, but
does not manage permission issues or system configuration changes.  It is
nothing more than a reporting tool to advise you of changes to your system
and potential problem areas.  Any changes or fixes are entirely up to the
user to correct.


%prep
%setup -q


%build
make CFLAGS="%{optflags}"


%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}
%makeinstall_std

pushd %{buildroot}%{_sysconfdir}/cron.daily
    ln -s ../..%{_datadir}/rsec/pkgcheck.sh pkgcheck
popd


%post
touch /var/log/security.log && chmod 0640 /var/log/security.log


%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}


%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog
%{_bindir}/promisc_check
%{_bindir}/rsec_find
%dir %_datadir/rsec
%{_datadir}/rsec/*
%{_mandir}/man8/rsec.8*
%dir %attr(0750,root,root) /var/log/security
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/security/rsec.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/rsec
%config(noreplace) %{_sysconfdir}/cron.daily/rsec
%config(noreplace) %{_sysconfdir}/cron.hourly/rsec
%{_sysconfdir}/cron.daily/pkgcheck
%ghost %attr(0640,root,root) /var/log/security.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8370 |21cr|R-sem-3.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  sem
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3.1.3
Release:          5
Summary:          Structural Equation Models

Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/sem_3.1-3.tar.gz
Requires:         R-core
Requires:         R-stats R-MASS R-matrixcalc 
Requires:         R-boot R-tcltk R-polycor 
BuildRequires:    R-devel Rmath-devel  R-stats R-MASS R-matrixcalc
# BuildRequires: R-mi
# Requires: R-mi
BuildRequires: R-MBESS
Requires: R-MBESS
BuildRequires: pkgconfig(blas)
BuildRequires: pkgconfig(lapack)
BuildRequires:    R-boot R-tcltk R-polycor 

%description
This package contains functions for fitting general linear structural
equation models (with observed and unobserved variables) using the RAM
approach, and for fitting structural equations in observed-variable models
by two-stage least squares.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CHANGES
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/etc
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8371 |21cr|R-sendmailR-1.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  sendmailR
%global rlibdir  %{_datadir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.1.2
Release:          4
Summary:          send email using R
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.1-2.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-base64enc 

BuildRequires:    R-devel Rmath-devel texlive R-base64enc


%description
Package contains a simple SMTP client which provides a portable solution
for sending email, including attachements, from within R.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8372 |21cr|R-setRNG-2011.11.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  setRNG
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2011.11.2
Release:          5
Summary:          Set (Normal) Random Number Generator and Seed
Group:            Sciences/Mathematics
License:          GPLv2 | file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2011.11-2.tar.gz

BuildRequires:    R-devel Rmath-devel texlive


%description
SetRNG provides utilities to help set and record the setting of the seed
and the uniform and normal generators used when a random experiment is
run. The utilities can be used in other functions that do random
experiments to simplify recording and/or setting all the necessary
information for reproducibility.  See the vignette and reference manual
for examples.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8373 |21cr|R-sfsmisc-1.0.27-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  sfsmisc
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.27
Release:          4
Summary:          Utilities from Seminar fuer Statistik ETH Zurich
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/sfsmisc_1.0-27.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-stats R-methods R-utils 
Requires:         R-datasets R-MASS R-tcltk 
BuildRequires:    R-devel Rmath-devel  R-stats R-methods R-utils
BuildRequires:   R-datasets R-MASS R-tcltk 

%description
Useful utilities ['goodies'] from Seminar fuer Statistik ETH Zurich, quite
a few related to graphics; many ported from S-plus times.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME fail to reencode latin1 to utf (should not be latin1...)
%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8374 |21cr|R-sgeostat-1.0.27-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  sgeostat
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.27
Release:          3
Summary:          An Object-oriented Framework for Geostatistical Modeling in S+
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/sgeostat_1.0-27.tar.gz
Requires:         R-stats R-grDevices R-graphics 
BuildRequires:    R-devel Rmath-devel  R-stats R-grDevices R-graphics

%description
An Object-oriented Framework for Geostatistical Modeling in S+

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8375 |21cr|R-shapefiles-0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  shapefiles
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.7
Release:          6
Summary:          Read and Write ESRI Shapefiles
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-foreign 
BuildRequires:    R-devel Rmath-devel  R-foreign texlive

%description
Functions to read and write ESRI shapefiles

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8376 |21cr|R-shapes-1.1.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  shapes
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.1.10
Release:          4
Summary:          Statistical shape analysis
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/shapes_1.1-10.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-scatterplot3d R-rgl R-MASS 
BuildRequires:    R-devel Rmath-devel  R-scatterplot3d R-rgl R-MASS

%description
Routines for the statistical analysis of shapes. In particular, the
package provides routines for procrustes analysis, displaying shapes and
principal components, testing for mean shape difference, thin-plate spline
transformation grids and edge superimposition methods.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME (Error in rgl.open() : rgl.open failed)
%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8377 |21cr|rsibreak-0.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rsibreak
Version:	0.11
Summary:	Assists in the Recovery and Prevention of Repetitive Strain Injury
Release:	4
License:	GPLv2
Group:		Graphical desktop/KDE
URL:		http://www.rsibreak.org
Source0:	http://www.rsibreak.org/files/%{name}-%{version}.tar.bz2
BuildRequires:	kdelibs4-devel
Requires:	kdebase4-runtime

%description
Repetitive Strain Injury is an illness which can occur as a result of
working with a mouse and keyboard. This utility can be used to remind
you to take a break now and then.

%files  -f %{name}.lang
%defattr(-,root,root)
%{_kde_bindir}/%{name}
%{_kde_appsdir}/rsibreak/rsibreak.notifyrc
%{_kde_datadir}/autostart/rsibreak.desktop
%{_kde_iconsdir}/hicolor/*/*/*
%{_kde_datadir}/applications/kde4/rsibreak.desktop
%{_kde_datadir}/dbus-1/interfaces/org.rsibreak.rsiwidget.xml
%{_kde_docdir}/HTML/*/rsibreak

#-----------------------------------------------------------------------------

%package -n plasma-applet-rsibreak
Summary:	Plasma applet for rsibreak
Group:		Graphical desktop/KDE
Requires:	%{name} = %{version}
Requires:	plasma-engine-rsibreak = %{version}
Provides:	plasma-applet
Conflicts:	extragear-plasma < 4.0.82
Conflicts:	kdebase4-workspace < 2:4.1.80-6

%description -n plasma-applet-rsibreak
Plasma applet for rsibreak

%files -n plasma-applet-rsibreak -f plasma_applet_rsibreak.lang
%defattr(-,root,root)
%{_kde_services}/plasma-applet-rsibreak.desktop
%{_kde_libdir}/kde4/plasma_applet_rsibreak.so
%{_kde_appsdir}/desktoptheme/default/widgets/rsibreak.svg

#--------------------------------------------------------------------

%package -n plasma-engine-rsibreak
Summary:	Plasma engine for rsibreak
Group:		Graphical desktop/KDE
Provides:	plasma-engine

%description -n plasma-engine-rsibreak
Plasma engine for rsibreak

%files -n plasma-engine-rsibreak
%defattr(-,root,root)
%{_kde_services}/plasma-engine-rsibreak.desktop
%{_kde_libdir}/kde4/plasma_engine_rsibreak.so

#--------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%__rm -rf %{buildroot}
%makeinstall_std -C build

%find_lang %{name}
%find_lang plasma_applet_rsibreak

%clean
%__rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8378 |21cr|rsl-1.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname rsl %{major}
%define devname %mklibname rsl -d

Summary:	TRMM Radar Software Library
Name:		rsl
Version:	1.50
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/
Source0:	https://trmm-fc.gsfc.nasa.gov/trmm_gv/software/rsl/software/rsl-v%{version}.tar.gz
Patch0:		rsl-1.50-mdv-install.patch
Patch1:		rsl-v1.50-tirpc.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(zlib)

%description
This library is an object oriented programming environment for writing software
applicable to all RADAR data related to the TRMM GV effort. This library reads
the WSR88D, Lassen, Sigmet, McGill, UF, HDF, RAPIC, RADTEC and native RSL file
formats. Additional functions are provided to manipulate the RSL objects.
Nearly all of the functions return objects. When they don't, they usually
perform actions like output, making images, etc. The most general object in RSL
is Radar. The structure Radar is the method used to define the ideal
or universal radar representation in RAM while keeping the natural resolution
of the data unchanged. More simply, Radar represents the super set of all radar
file formats. The Radar structure is hierarchically defined such that it is
composed of Volumes, each containing one field type. Volumes are composed
of Sweeps. Sweeps are composed of Rays and Rays contains a vector of the field
type. Some field types are Reflectivity(DZ), Velocity(VR), Spectrum Width(SW),
etc. There are approximately 20 field types.

%files
%{_bindir}/*
%doc CHANGES Copyright README

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	TRMM Radar Software Library
Group:		System/Libraries
Requires:	%{name}-data >= %{EVRD}

%description -n %{libname}
This library is an object oriented programming environment for writing software
applicable to all RADAR data related to the TRMM GV effort. This library reads
the WSR88D, Lassen, Sigmet, McGill, UF, HDF, RAPIC, RADTEC and native RSL file
formats. Additional functions are provided to manipulate the RSL objects.
Nearly all of the functions return objects. When they don't, they usually
perform actions like output, making images, etc. The most general object in RSL
is Radar. The structure Radar is the method used to define the ideal
or universal radar representation in RAM while keeping the natural resolution
of the data unchanged. More simply, Radar represents the super set of all radar
file formats. The Radar structure is hierarchically defined such that it is
composed of Volumes, each containing one field type. Volumes are composed
of Sweeps. Sweeps are composed of Rays and Rays contains a vector of the field
type. Some field types are Reflectivity(DZ), Velocity(VR), Spectrum Width(SW),
etc. There are approximately 20 field types.

%files -n %{libname}
%{_libdir}/librsl.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	TRMM Radar Software Library development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This library is an object oriented programming environment for writing software
applicable to all RADAR data related to the TRMM GV effort. This library reads
the WSR88D, Lassen, Sigmet, McGill, UF, HDF, RAPIC, RADTEC and native RSL file
formats. Additional functions are provided to manipulate the RSL objects.
Nearly all of the functions return objects. When they don't, they usually
perform actions like output, making images, etc. The most general object in RSL
is Radar. The structure Radar is the method used to define the ideal
or universal radar representation in RAM while keeping the natural resolution
of the data unchanged. More simply, Radar represents the super set of all radar
file formats. The Radar structure is hierarchically defined such that it is
composed of Volumes, each containing one field type. Volumes are composed
of Sweeps. Sweeps are composed of Rays and Rays contains a vector of the field
type. Some field types are Reflectivity(DZ), Velocity(VR), Spectrum Width(SW),
etc. There are approximately 20 field types.

This package contains files needed only for development.

%files -n %{devname}
%{_libdir}/librsl.so
%{_includedir}/*
%doc CHANGES Copyright README

#------------------------------------------------------------------------------

%package data
Summary:	TRMM Radar Software Library data files
Group:		System/Libraries

%description data
This library is an object oriented programming environment for writing software
applicable to all RADAR data related to the TRMM GV effort. This library reads
the WSR88D, Lassen, Sigmet, McGill, UF, HDF, RAPIC, RADTEC and native RSL file
formats. Additional functions are provided to manipulate the RSL objects.
Nearly all of the functions return objects. When they don't, they usually
perform actions like output, making images, etc. The most general object in RSL
is Radar. The structure Radar is the method used to define the ideal
or universal radar representation in RAM while keeping the natural resolution
of the data unchanged. More simply, Radar represents the super set of all radar
file formats. The Radar structure is hierarchically defined such that it is
composed of Volumes, each containing one field type. Volumes are composed
of Sweeps. Sweeps are composed of Rays and Rays contains a vector of the field
type. Some field types are Reflectivity(DZ), Velocity(VR), Spectrum Width(SW),
etc. There are approximately 20 field types.

%files data
%{_datadir}/rsl/

#------------------------------------------------------------------------------

%package doc
Summary:	TRMM Radar Software Library documentation
Group:		Documentation

%description doc
This library is an object oriented programming environment for writing software
applicable to all RADAR data related to the TRMM GV effort. This library reads
the WSR88D, Lassen, Sigmet, McGill, UF, HDF, RAPIC, RADTEC and native RSL file
formats. Additional functions are provided to manipulate the RSL objects.
Nearly all of the functions return objects. When they don't, they usually
perform actions like output, making images, etc. The most general object in RSL
is Radar. The structure Radar is the method used to define the ideal
or universal radar representation in RAM while keeping the natural resolution
of the data unchanged. More simply, Radar represents the super set of all radar
file formats. The Radar structure is hierarchically defined such that it is
composed of Volumes, each containing one field type. Volumes are composed
of Sweeps. Sweeps are composed of Rays and Rays contains a vector of the field
type. Some field types are Reflectivity(DZ), Velocity(VR), Spectrum Width(SW),
etc. There are approximately 20 field types.

This package contains RSL documentation.

%files doc
%doc doc/*.html doc/*.gif doc/*.jpg doc/*.fig

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%configure --enable-static
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}
# --disable-static doesn't work here
rm -rf %{buildroot}%{_libdir}/librsl.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8379 |21cr|R-slam-0.1.32-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  slam
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.1.32
Release:          5
Summary:          Sparse Lightweight Arrays and Matrices

Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/slam_0.1-32.tar.gz
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Data structures and algorithms for sparse arrays and matrices, based on
index arrays and simple triplet representations, respectively.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8380 |21cr|R-Sleuth2-1.0.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  Sleuth2
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.7
Release:          5
Summary:          Data sets from Ramsey and Schafer's "Statistical Sleuth (2nd ed)"
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.0-7.tar.gz



Requires:         R-lattice 
BuildRequires:    R-devel Rmath-devel texlive-latex 

BuildRequires:   R-lattice 
%description
Data sets from Ramsey, F.L. and Schafer, D.W. (2002), "The Statistical
Sleuth: A Course in Methods of Data Analysis (2nd ed)", Duxbury.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8381 |21cr|R-sm-2.2.5.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  sm
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.2.5.4
Release:          5
Summary:          Smoothing methods for nonparametric regression and density estimation
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/sm_2.2-5.4.tar.gz
Requires:         R-core
Requires:         R-rpanel R-tkrplot R-rgl R-misc3d R-akima R-gam 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-rpanel R-tkrplot R-rgl R-misc3d R-akima R-gam 

%description
This is software linked to the book `Applied Smoothing Techniques for Data
Analysis: The Kernel Approach with S-Plus Illustrations' Oxford University

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# FIXME (possibly due to bootstrap of other packages: Error in rgl.open() : rgl.open failed)
%if 0
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/history.txt
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/scripts
%{rlibdir}/%{packname}/smdata
%{rlibdir}/sm/libs/sm.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8382 |21cr|R-sna-2.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  sna
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.3.2
Release:          5
Summary:          Tools for Social Network Analysis
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/sna_2.3-2.tar.gz
Requires:         R-utils R-network R-rgl R-numDeriv R-SparseM
%if %{without bootstrap}
Requires:         R-statnet 
%endif
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-utils R-network R-rgl R-numDeriv R-SparseM
%if %{without bootstrap}
BuildRequires:    R-statnet
%endif

%description
A range of tools for social network analysis, including node and
graph-level indices, structural distance and covariance methods,
structural equivalence detection, p* modeling, random graph generation,
and 2D/3D network visualization.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8383 |21cr|rsnapshot-1.3.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Local and remote filesystem snapshot utility
Name:		rsnapshot
Version:	1.3.1
Release:	20
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://www.rsnapshot.org
Source0:	%{name}-%{version}.tar.gz
Patch0:		%{name}.patch
Patch1:		rsnapshot-ionice.patch
Patch2:		rsnapshot-exclude-snapshot_root.patch
Patch3:		rsnapshot-pod2man.patch
BuildRequires:	openssh-clients
BuildRequires:	rsync
Requires:	openssh-clients
Requires:	rsync
BuildArch:	noarch

%description
This is a remote backup program that uses rsync to take backup snapshots of
filesystems.  It uses hard links to save space on disk.
For more details see http://www.rsnapshot.org/.

%files
%doc AUTHORS ChangeLog README INSTALL TODO README.utils
%doc docs/Upgrading_from_1.1 docs/HOWTOs/rsnapshot-HOWTO.en.html
%doc rsnapshotdb/rsnapshotDB.CHANGES.txt rsnapshotdb/rsnapshotDB.TODO.txt 
%doc rsnapshotdb/rsnapshotDB.conf.sample
%config %{_sysconfdir}/rsnapshot.conf.default
%config(noreplace) %{_sysconfdir}/rsnapshot.conf
%config(noreplace) %{_sysconfdir}/rsnapshotDB.conf
%config %{_sysconfdir}/rsnapshotDB.xsd
%{_bindir}/rsnapshot
%{_bindir}/rsnapshot-diff
%{_bindir}/rsnapreport.pl
%{_bindir}/rsnapshotDB
%{_datadir}/rsnapshot
%{_mandir}/man1/rsnapshot.1*
%{_mandir}/man1/rsnapshot-diff.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p1

%build
%configure \
	--sysconfdir=%{buildroot}%{_sysconfdir}

%make

%install
install -d %{buildroot}%{_bindir}
install -m 755 rsnapshot %{buildroot}%{_bindir}/rsnapshot
install -m 755 rsnapshot-diff %{buildroot}%{_bindir}/rsnapshot-diff
install -m 755 utils/rsnapreport.pl %{buildroot}%{_bindir}/rsnapreport.pl

install -d %{buildroot}%{_datadir}/rsnapshot
mv utils/rsnapshotdb rsnapshotdb
mv utils/README README.utils
mv rsnapshotdb/CHANGES.txt rsnapshotdb/rsnapshotDB.CHANGES.txt
mv rsnapshotdb/TODO.txt rsnapshotdb/rsnapshotDB.TODO.txt
install -m 755 utils/* %{buildroot}%{_datadir}/rsnapshot
install -m 755 rsnapshotdb/rsnapshotDB.pl %{buildroot}%{_bindir}/rsnapshotDB

install -d %{buildroot}%{_mandir}/man1
install -m 644 rsnapshot.1 %{buildroot}%{_mandir}/man1/
install -m 644 rsnapshot-diff.1 %{buildroot}%{_mandir}/man1/

install -d %{buildroot}%{_sysconfdir}
install -m 644 rsnapshot.conf.default %{buildroot}%{_sysconfdir}/rsnapshot.conf.default
install -m 600 rsnapshot.conf.default %{buildroot}%{_sysconfdir}/rsnapshot.conf
install -m 600 rsnapshotdb/rsnapshotDB.conf.sample %{buildroot}%{_sysconfdir}/rsnapshotDB.conf
install -m 644 rsnapshotdb/rsnapshotDB.xsd %{buildroot}%{_sysconfdir}/rsnapshotDB.xsd

perl -pi -e  's/^#// if /^#cmd_ssh/; s!/path/to/ssh!/usr/bin/ssh!; s!(snapshot_root\s*)/.snapshots/!#\1/home/.snapshots/!; s!^#(link_dest\s*)0!${1}1!' %{buildroot}%{_sysconfdir}/rsnapshot.conf

perl -pi -e "s|%{buildroot}||g" %{buildroot}%{_bindir}/rsnapshot

# path fix
find %{buildroot} -type f | xargs perl -pi -e "s|/usr/local|%{_prefix}|g"

#Remove unnessesary files
rm -f %{_datadir}/rsnapreport.pl
rm -f %{_datadir}/sign_packages.sh
rm -f %{_datadir}/rsnapshot_if_mounted.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8384 |21cr|R-snow-0.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  snow
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.4.2
Release:          2
Summary:          Simple Network of Workstations
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/snow_0.4-2.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-utils 
Requires:         R-Rmpi R-rlecuyer R-nws 
BuildRequires:    R-devel Rmath-devel  R-utils
BuildRequires:    R-Rmpi R-rlecuyer R-nws 

%description
Support for simple parallel computing in R.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#_R_CHECK_FORCE_SUGGESTS_=0 %%{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8385 |21cr|R-SnowballC-0.5.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  SnowballC
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5.1
Release:          4
Summary:          Snowball stemmers based on the C libstemmer UTF-8 library
Group:            Sciences/Mathematics
License:          BSD
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

BuildRequires:    R-devel Rmath-devel


%description
An R interface to the C libstemmer library that implements Porter's word
stemming algorithm for collapsing words to a common root to aid comparison
of vocabulary. Currently supported languages are Danish, Dutch, English,
Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese,
Romanian, Russian, Spanish, Swedish and Turkish.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE*
%{rlibdir}/%{packname}/N*
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/words*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8386 |21cr|R-snowfall-1.84.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  snowfall
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.84.6
Release:          5
Summary:          Easier cluster computing (based on snow)
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/snowfall_1.84-6.tar.gz
Requires:         R-snow R-Rmpi
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-snow R-Rmpi

%description
Usability wrapper around snow for easier development of parallel R
programs. This package offers e.g. extended error checks, and additional
functions. All functions work in sequential mode, too, if no cluster is
present or wished. Package is also designed as connector to the cluster
management tool sfCluster, but can also used without it.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8387 |21cr|R-snowFT-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  snowFT
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.4.0
Release:          2
Summary:          Fault Tolerant Simple Network of Workstations
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.4-0.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-snow 
Requires:         R-Rmpi R-rlecuyer
BuildRequires:    R-devel Rmath-devel  R-snow
BuildRequires:    R-Rmpi R-rlecuyer

%description
Extension of the snow package supporting fault tolerant and reproducible
applications, as well as supporting easy-to-use parallel programming -
only one function is needed.

%prep
%setup -q -c -n %{packname}

perl -pi -e 's|\brmpi\b|Rmpi|;' snowFT/man/snowFT-package.Rd snowFT/DESCRIPTION

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8388 |21cr|R-som-0.3.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  som
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.3.5
Release:          4
Summary:          Self-Organizing Map
Group:            Sciences/Mathematics
License:          GPLv3+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.3-5.tar.gz




BuildRequires:    R-devel Rmath-devel texlive 


%description
Self-Organizing Map (with application in gene clustering)

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8389 |21cr|R-sp-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname sp
%global rlibdir %{_libdir}/R/library

Summary:	Classes and methods for spatial data
Name:		R-%{packname}
Version:	1.2.4
Release:	1
License:	GPL (>= 2)
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/sp_1.2-4.tar.gz
BuildRequires:	R-devel Rmath-devel texlive-collection-latex R-methods
BuildRequires:	R-graphics R-utils R-lattice R-grid
%if %{with bootstrap}
BuildRequires:	R-lattice R-RColorBrewer
%else
BuildRequires:	R-lattice R-RColorBrewer R-rgdal R-rgeos
%endif
BuildRequires:	blas-devel
BuildRequires:	lapack-devel
BuildRequires:	x11-server-xvfb
Requires:	R-methods R-graphics
Requires:	R-utils R-lattice R-grid
%if %{with bootstrap}
Requires:	R-lattice R-RColorBrewer
%else
Requires:	R-lattice R-RColorBrewer R-rgdal R-rgeos
%endif

%description
A package that provides classes and methods for spatial data. The classes
document where the spatial location information resides, for 2D or 3D
data. Utility functions are provided, e.g. for plotting data as maps,
spatial selection, as well as methods for retrieving coordinates, for
subsetting, print, summary, etc.

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/external
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs

#------------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
xvfb-run %{_bindir}/R CMD check %{packname}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8390 |21cr|R-sp-1.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global	packname sp
%global	rlibdir %{_libdir}/R/library

Summary:	Classes and methods for spatial data
Name:		R-%{packname}
Version:	1.4.2
Release:	2
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/sp/index.html
Source0:	http://cran.r-project.org/src/contrib/sp_1.4-2.tar.gz
BuildRequires:	texlive-collection-latex
BuildRequires:	R-graphics
BuildRequires:	R-grid
BuildRequires:	R-lattice
BuildRequires:	R-utils
BuildRequires:	R-methods
%if %{with bootstrap}
BuildRequires:	R-RColorBrewer
%else
BuildRequires:	R-RColorBrewer
BuildRequires:	R-rgdal
BuildRequires:	R-rgeos
%endif
BuildRequires:	blas-devel
BuildRequires:	lapack-devel
BuildRequires:	R-devel
BuildRequires:	Rmath-devel
BuildRequires:	x11-server-xvfb
Requires:	R-graphics
Requires:	R-grid
Requires:	R-lattice
Requires:	R-methods
Requires:	R-utils
%if %{with bootstrap}
Requires:	R-RColorBrewer
%else
Requires:	R-RColorBrewer
Requires:	R-rgdal
Requires:	R-rgeos
%endif

%description
A package that provides classes and methods for spatial data. The classes
document where the spatial location information resides, for 2D or 3D data.
Utility functions are provided, e.g. for plotting data as maps, spatial
selection, as well as methods for retrieving coordinates, for subsetting,
print, summary, etc.

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/external
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs

#------------------------------------------------------------------

%prep
%setup -c -qn %{packname}


%build
# Nothing to do


%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
xvfb-run %{_bindir}/R CMD check %{packname}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8391 |21cr|R-spam-0.41.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  spam
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.41.0
Release:          5
Summary:          SPArse Matrix
Group:            Sciences/Mathematics
License:          GPL | file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/spam_0.41-0.tar.gz
Requires:         R-methods 
%if %{with bootstrap}
Requires:         R-SparseM
Requires:         R-Matrix 
%else
Requires:         R-fields
Requires:         R-SparseM
Requires:         R-Matrix 
%endif
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    R-methods
%if %{with bootstrap}
BuildRequires:    R-SparseM
BuildRequires:    R-Matrix 
%else
BuildRequires:    R-fields
BuildRequires:    R-SparseM
BuildRequires:    R-Matrix 
%endif
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Set of function for sparse matrix algebra.  Differences with
SparseM/Matrix are: (1) we only support (essentially) one sparse matrix
format, (2) based on transparent and simple structure(s), (3) tailored for
MCMC calculations within GMRF. (4) S3 and S4 like-"compatible" ...  and it
is fast.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/0NEWS
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/demodata
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8392 |21cr|rspamd-2.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The contributed internal libraries are linked statically:
# linking errors from them are harmless
%global	_disable_ld_no_undefined 1

%define	rspamd_user _rspamd
%define	rspamd_group %{rspamd_user}
%define	rspamd_home %{_localstatedir}/lib/%{name}
%define	rspamd_logdir %{_localstatedir}/log/%{name}
%define	rspamd_confdir %{_sysconfdir}/%{name}
%define	rspamd_mapsdir %{rspamd_confdir}/maps.d
%define	rspamd_pluginsdir %{_datadir}/%{name}
%define	rspamd_rulesdir %{_datadir}/%{name}/rules
%define	rspamd_wwwdir %{_datadir}/%{name}/www

# No major: internal libraries only
%define	libname	%mklibname %{name}

Summary:	Rapid spam filtering system
Name:		rspamd
Version:	2.6
Release:	3
Group:		Networking/Mail
License:	BSD
Url:		https://rspamd.com
Source0:	https://github.com/rspamd/rspamd/archive/%{name}-%{version}.tar.gz
Source1:	%{name}.tmpfile
Source2:	%{name}.logrotate
Source3:	80-%{name}.preset
Patch0:		rspamd-2.6-service-type.patch
BuildRequires:	cmake
BuildRequires:	ragel
BuildRequires:	systemd
BuildRequires:	jemalloc-devel
BuildRequires:	libstemmer-devel
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(glib-2.0) >= 2.28
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libsodium) >= 1.0.0
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
Requires:	%{libname} = %{EVRD}
Requires:	logrotate
Requires(pre,post,preun,postun):	rpm-helper
Requires(pre,post,preun,postun):	systemd
Recommends:	redis

%description
Rspamd is a rapid, modular and lightweight spam filter. It is designed to work
with big amount of mail and can be easily extended with own filters written in
lua.

%files
%doc ChangeLog LICENSE.md README.md
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%{_presetdir}/80-%{name}.preset
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{rspamd_logdir}
%{_bindir}/%{name}
%{_bindir}/%{name}_stats
%{_bindir}/rspamc
%{_bindir}/rspamadm
%config(noreplace) %{rspamd_confdir}/%{name}.conf
%config(noreplace) %{rspamd_confdir}/actions.conf
%config(noreplace) %{rspamd_confdir}/composites.conf
%config(noreplace) %{rspamd_confdir}/cgp.inc
%config(noreplace) %{rspamd_confdir}/groups.conf
%config(noreplace) %{rspamd_confdir}/metrics.conf
%config(noreplace) %{rspamd_confdir}/modules.conf
%config(noreplace) %{rspamd_confdir}/statistic.conf
%config(noreplace) %{rspamd_confdir}/settings.conf
%config(noreplace) %{rspamd_confdir}/common.conf
%config(noreplace) %{rspamd_confdir}/logging.inc
%config(noreplace) %{rspamd_confdir}/options.inc
%config(noreplace) %{rspamd_confdir}/worker-controller.inc
%config(noreplace) %{rspamd_confdir}/worker-fuzzy.inc
%config(noreplace) %{rspamd_confdir}/worker-normal.inc
%config(noreplace) %{rspamd_confdir}/worker-proxy.inc
%config(noreplace) %{rspamd_confdir}/modules.d/*
%config(noreplace) %{rspamd_confdir}/scores.d/*
%config(noreplace) %{rspamd_mapsdir}/dmarc_whitelist.inc
%config(noreplace) %{rspamd_mapsdir}/maillist.inc
%config(noreplace) %{rspamd_mapsdir}/mid.inc
%config(noreplace) %{rspamd_mapsdir}/mime_types.inc
%config(noreplace) %{rspamd_mapsdir}/redirectors.inc
%config(noreplace) %{rspamd_mapsdir}/spf_dkim_whitelist.inc
%config(noreplace) %{rspamd_mapsdir}/surbl-whitelist.inc
%attr(-, _rspamd, _rspamd) %dir %{rspamd_home}
%dir %{rspamd_rulesdir}
%{rspamd_rulesdir}/*.lua
%dir %{rspamd_rulesdir}/controller
%{rspamd_rulesdir}/controller/*.lua
%dir %{rspamd_rulesdir}/regexp
%{rspamd_rulesdir}/regexp/*.lua
%dir %{rspamd_confdir}
%dir %{rspamd_mapsdir}
%dir %{rspamd_confdir}/modules.d
%dir %{rspamd_confdir}/local.d
%dir %{rspamd_confdir}/override.d
%dir %{rspamd_confdir}/scores.d
%dir %{rspamd_pluginsdir}
%{rspamd_pluginsdir}/effective_tld_names.dat
%{rspamd_pluginsdir}/*.lua
%dir %{rspamd_pluginsdir}/elastic
%{rspamd_pluginsdir}/elastic/*.json
%dir %{rspamd_pluginsdir}/languages
%{rspamd_pluginsdir}/languages/*.json
%{rspamd_pluginsdir}/languages/stop_words
%dir %{rspamd_pluginsdir}/lualib
%{rspamd_pluginsdir}/lualib/*.lua
%dir %{rspamd_pluginsdir}/lualib/lua_content
%dir %{rspamd_pluginsdir}/lualib/lua_ffi
%dir %{rspamd_pluginsdir}/lualib/lua_magic
%dir %{rspamd_pluginsdir}/lualib/lua_scanners
%dir %{rspamd_pluginsdir}/lualib/lua_selectors
%dir %{rspamd_pluginsdir}/lualib/rspamadm
%{rspamd_pluginsdir}/lualib/*/*.lua
%dir %{rspamd_wwwdir}
%{rspamd_wwwdir}/*
%{_mandir}/man8/%{name}.*
%{_mandir}/man1/rspamc.*
%{_mandir}/man1/rspamadm.*

%pre
%_pre_useradd %{rspamd_user}
%_pre_groupadd %{rspamd_group}

%post
%tmpfiles_create %{name}
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service
%_postun_userdel %{rspamd_user}
%_postun_groupdel %{rspamd_group}

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for rspamd rapid spam filtering system
Group:		System/Libraries

%description -n %{libname}
Libraries used by %{name}.

%files -n %{libname}
%doc LICENSE.md
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
#DEBIAN_BUILD controls the build of tests: 1 = NO.
%cmake .. \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_C_OPT_FLAGS="%{optflags}" \
	-DINCLUDEDIR=%{_includedir} \
	-DMANDIR=%{_mandir} \
	-DSYSTEMDDIR=%{_unitdir} \
	-DCONFDIR=%{_sysconfdir}/rspamd \
	-DDBDIR=%{_localstatedir}/lib/rspamd \
	-DEXAMPLESDIR=%{_datadir}/examples/rspamd \
	-DLIBDIR=%{_libdir}/rspamd/ \
	-DLOGDIR=%{_localstatedir}/log/rspamd \
	-DPLUGINSDIR=%{_datadir}/rspamd \
	-DRUNDIR=%{_rundir}/rspamd \
	-DENABLE_LUAJIT=ON \
	-DWANT_SYSTEMD_UNITS=ON \
	-DENABLE_SNOWBALL=ON \
	-DENABLE_JEMALLOC=ON \
	-DNO_SHARED=ON \
	-DDEBIAN_BUILD=1 \
	-DRSPAMD_GROUP=%{rspamd_group} \
	-DRSPAMD_USER=%{rspamd_user}
%make


%install
%makeinstall_std -C build

# Create some needed dirs
install -d -p -m 0755 %{buildroot}%{rspamd_logdir}
install -d -p -m 0755 %{buildroot}%{rspamd_home}
install -p -D -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}/local.d/
install -p -D -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}/override.d/

# Install our stuff
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_presetdir}/80-rspamd.preset

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8393 |21cr|R-SparseM-1.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  SparseM
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.6
Release:          5
Summary:          Sparse Linear Algebra
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/SparseM_%{version}.tar.gz
Requires:         R-methods
Requires:         R-stats
Requires:         R-utils 
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-methods
BuildRequires:    R-stats
BuildRequires:    R-utils
BuildRequires:    pkgconfig(lapack)

%description
Basic linear algebra for sparse matrices

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/Change*
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/TODO
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8394 |21cr|R-spatstat-1.38.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname spatstat
%global rlibdir %{_libdir}/R/library

Summary:	Spatial Point Pattern analysis, model-fitting, simulation, tests
Name:		R-%{packname}
Version:	1.38.1
Release:	7
License:	GPL (>= 2)
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/spatstat_1.38-1.tar.gz
BuildRequires:	R-devel Rmath-devel texlive-collection-latex R-stats
BuildRequires:	R-graphics R-utils R-deldir
BuildRequires:	R-gsl R-polyclip R-goftest
%if %{with bootstrap}
BuildRequires:	R-gpclib R-sm R-spatial R-tkrplot R-scatterplot3d
%else
BuildRequires:	R-gpclib R-sm R-maptools R-spatial R-rpanel R-tkrplot
BuildRequires:	R-scatterplot3d R-RandomFields
%endif
BuildRequires:	x11-server-xvfb
BuildRequires:	R-abind R-locfit R-tensor
Requires:	R-stats R-graphics R-utils
Recommends:     R-RandomFields R-rpanel
Requires:	R-gsl
%if %{with bootstrap}
Requires:	R-gpclib R-sm R-spatial R-tkrplot R-scatterplot3d
%else
Requires:	R-gpclib R-sm R-maptools R-spatial R-rpanel R-tkrplot
Requires:	R-scatterplot3d R-RandomFields
%endif
Requires:	R-abind R-locfit R-deldir R-tensor R-polyclip R-goftest

%description
A package for analysing spatial data, mainly Spatial Point Patterns,
including multitype/marked points and spatial covariates, in any
two-dimensional spatial region. Also supports three-dimensional point
patterns, and space-time point patterns in any number of dimensions. 
Contains over 1000 functions for plotting spatial data, exploratory data
analysis, model-fitting, simulation, spatial sampling, model diagnostics,
and formal inference.  Data types include point patterns, line segment
patterns, spatial windows, pixel images and tessellations.  Exploratory
methods include K-functions, nearest neighbour distance and empty space
statistics, Fry plots, pair correlation function, kernel smoothed
intensity, relative risk estimation with cross-validated bandwidth
selection, mark correlation functions, segregation indices, mark
dependence diagnostics etc.  Point process models can be fitted to point
pattern data using functions ppm, kppm, slrm similar to glm. Models may
include dependence on covariates, interpoint interaction, cluster
formation and dependence on marks. Fitted models can be simulated
automatically.  Also provides facilities for formal inference (such as
chi-squared tests) and model diagnostics (including simulation envelopes,
residuals, residual plots and Q-Q plots).

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/ratfor

#------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
xvfb-run %{_bindir}/R CMD check %{packname}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8395 |21cr|R-spdep-0.6.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname spdep
%global rlibdir %{_libdir}/R/library

Summary:	Spatial dependence: weighting schemes, statistics and models
Name:		R-%{packname}
Version:	0.6.11
Release:	2
License:	GPL (>= 2)
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:	http://cran.r-project.org/src/contrib/spdep_0.6-11.tar.gz
BuildRequires:	R-devel Rmath-devel texlive-collection-latex R-methods R-sp R-boot R-Matrix R-MASS R-nlme R-maptools R-deldir R-coda
BuildRequires:	R-snow R-rlecuyer R-spam R-RANN R-RColorBrewer R-lattice
BuildRequires:	R-LearnBayes
BuildRequires:	R-igraph R-expm R-gmodels
BuildRequires:	blas-devel
BuildRequires:	lapack-devel
Requires:	R-methods R-sp R-boot R-Matrix R-MASS R-nlme R-maptools R-deldir R-coda
Requires:	R-snow R-rlecuyer R-spam R-RANN R-RColorBrewer R-lattice
Requires:	R-LearnBayes
Requires:	R-igraph R-expm R-gmodels

%description
A collection of functions to create spatial weights matrix objects from
polygon contiguities, from point patterns by distance and tesselations,
for summarising these objects, and for permitting their use in spatial
data analysis, including regional aggregation by minimum spanning tree; a
collection of tests for spatial autocorrelation, including global Moran's
I, APLE, Geary's C, Hubert/Mantel general cross product statistic,
Empirical Bayes estimates and Assuncao/Reis Index, Getis/Ord G and
multicoloured join count statistics, local Moran's I and Getis/Ord G,
saddlepoint approximations  and exact tests for global and local Moran's
I; and functions for estimating spatial simultaneous autoregressive (SAR)
lag and error models, impact measures for lag models, weighted and
unweighted SAR and CAR spatial regression models, semi-parametric and
Moran eigenvector spatial filtering, GM SAR error models, and generalized
spatial two stage least squares models.

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CHANGES
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/etc
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/spdep/README

#------------------------------------------------------------

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8396 |21cr|rspfd-1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:         rspfd
License:      GPL
Group:        Communications
Version:      1.1
Release:      5
Summary:      Routing Daemon for Use Over Amateur Radio Links
Source0:      http://rspf.sourceforge.net/rspf/rspfd-%{version}.tar.gz
Patch0:		rspfd-1.1-debug.patch
URL:          http://rspf.sourceforge.net/

%description
RSPFd is a routing daemon specifically designed to be used over amateur
radio links.  This implementation adheres as closely as possible to
RSPF v2.2. Most other implementations (part of *NOS programs) follow
RSPF v2.0 somewhat.



Authors:
--------
    Craig Small <csmall@small.dropbear.id.au>

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
#make install DESTDIR=$RPM_BUILD_ROOT
%makeinstall_std

%files
%doc AUTHORS README
%{_mandir}/man5/*.xz
%{_mandir}/man8/*.xz
%{_sbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8397 |21cr|R-splancs-2.01.37-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  splancs
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.01.37
Release:          5
Summary:          Spatial and Space-Time Point Pattern Analysis
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/splancs_2.01-37.tar.gz
Requires:         R-sp 
BuildRequires:    R-devel Rmath-devel  R-sp

%description
Spatial and Space-Time Point Pattern Analysis Functions

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/ChangeLog
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8398 |21cr|R-spls-2.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  spls
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.2.1
Release:          4
Summary:          Sparse Partial Least Squares (SPLS) Regression and Classification
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2.2-1.tar.gz


Requires:         R-MASS R-nnet R-parallel R-pls 

BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-MASS R-nnet R-parallel R-pls 

%description
This package provides functions for fitting a Sparse Partial Least Squares
Regression and Classification

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8399 |21cr|R-SRAdb-1.16.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  SRAdb
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.16.0
Release:          6
Summary:          A compilation of metadata from NCBI SRA and tools
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-RSQLite R-graph R-RCurl 
Requires:         R-GEOquery 
Recommends:         R-Rgraphviz 
BuildRequires:    R-devel Rmath-devel texlive-latex R-RSQLite R-graph R-RCurl
BuildRequires:    R-GEOquery
BuildRequires:	  R-Rgraphviz

%description
The Sequence Read Archive (SRA) is the largest public repository of
sequencing data from the next generation of sequencing platforms including
Roche 454 GS System, Illumina Genome Analyzer, Applied Biosystems SOLiD
System, Helicos Heliscope, and others. However, finding data of interest
can be challenging using current tools. SRAdb is an attempt to make access
to the metadata associated with submission, study, sample, experiment and
run much more feasible. This is accomplished by parsing all the NCBI SRA
metadata into a SQLite database that can be stored and queried locally.
Fulltext search in the package make querying metadata very flexible and
powerful.  fastq and sra files can be downloaded for doing alignment
locally. Beside ftp protocol, the SRAdb has funcitons supporting fastp
protocol (ascp from Aspera Connect) for faster downloading large data
files over long distance. The SQLite database is updated regularly as new
data is added to SRA and can be downloaded at will for the most up-to-date

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/extdata
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8400 |21cr|rss2email-3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           rss2email
Version:	3.14
Release:	1
Summary:        Deliver news from RSS feeds to your smtp server as text or html mail
Group:          Networking/News
License:        GPLv3
URL:            https://github.com/rss2email/rss2email
Source0:        https://github.com/rss2email/rss2email/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Migration tool (rss2email 2.x to rss2email 3.x) from https://github.com/emillon/rss2email-debian
Source1:        r2e-migrate
Source2:        r2e-migrate.1
Source3:        README.migrate
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-feedparser >= 6.0.0
BuildRequires:  python3-html2text >= 2018.1.9
Recommends:     python3-beautifulsoup4
Recommends:     esmtp
# r2e-migrate
Requires:       python3-pyxdg
BuildArch:      noarch

%description
rss2email lets you subscribe to a list of XML newsfeeds (RSS or Atom). It can
parse them regularly with the help of cron and send new items to you by email.

A HTML-mail will be sent in the default configuration to the local smtp server.
See the man page r2e for details on how to set rss2email up.

%files
%license COPYING
%doc AUTHORS CHANGELOG README.rst README.migrate
%{_bindir}/r2e
%{_bindir}/r2e-migrate
%{_mandir}/man1/r2e.1*
%{_mandir}/man1/r2e-migrate.1*
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/

#---------------------------------------------------------------
%prep
%autosetup -p1

cp -p %{SOURCE3} .

%build
%py3_build


%install
%py3_install

install -D -m 644 -p r2e.1 %{buildroot}%{_mandir}/man1/r2e.1

install -D -m 755 -p %{SOURCE1} %{buildroot}%{_bindir}/r2e-migrate
install -D -m 644 -p %{SOURCE2} %{buildroot}%{_mandir}/man1/r2e-migrate.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8401 |21cr|rssh-2.3.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Restricted shell for scp or sftp
Name:		rssh
Version:	2.3.4
Release:	5
License:	BSD
Group:		Networking/Remote access
Url:		http://www.pizzashack.org/rssh/
#gw this is tar.gz for signature checking
Source0:	http://prdownloads.sourceforge.net/rssh/%{name}-%{version}.tar.gz
Source1:	http://prdownloads.sourceforge.net/rssh/%{name}-%{version}.tar.gz.sig
Patch0:		rssh-2.3.4-optflags.patch
BuildRequires:	openssh-server
Requires:	openssh

%description
rssh is a restricted shell, used as a login shell, that allows users to perform
only scp, sftp, cvs, svnserve (Subversion), rdist, and/or rsync operations.

%files
%doc AUTHORS ChangeLog CHROOT COPYING README SECURITY TODO
%config(noreplace) %{_sysconfdir}/rssh.conf
%attr(0755,root,root) %{_bindir}/rssh
%attr(4755,root,root) %{_libexecdir}/rssh_chroot_helper
%{_mandir}/man?/*
%{_datadir}/rssh

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure \
	--with-sftp-server=%{_libdir}/ssh/sftp-server \
	--with-rsync=%{_bindir}/rsync \
	--with-scp=%{_bindir}/scp \
	--with-rdist=%{_bindir}/rdist \
	--with-cvs=%{_bindir}/cvs
%make CPPFLAGS="%{optflags}"

%install
%makeinstall

install -m 755 -D conf_convert.sh %{buildroot}%{_datadir}/%{name}/conf_convert.sh

cp rssh.conf.default %{buildroot}%{_sysconfdir}/rssh.conf
rm -f %{buildroot}/%{_sysconfdir}/rssh.conf.default

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8402 |21cr|R-StanHeaders-2.14.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  StanHeaders
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.14.0.1
Release:          2
Summary:          C++ Header Files for Stan
Group:            Sciences/Mathematics
License:          BSD_3_clause + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_2.14.0-1.tar.gz

Recommends:         R-RcppEigen R-BH
BuildRequires:    R-devel Rmath-devel

BuildRequires:   R-RcppEigen R-BH

%description
The C++ header files of the Stan project are provided by this package, but
it contains no R code, vignettes, or function documentation. There is a
shared object containing part of the 'CVODES' library, but it is not
accessible from R. 'StanHeaders' is only useful for developers who want to
utilize the 'LinkingTo' directive of their package's DESCRIPTION file to
build on the Stan library without incurring unnecessary dependencies. The
Stan project develops a probabilistic programming language that implements
full or approximate Bayesian statistical inference via Markov Chain Monte
Carlo or 'variational' methods and implements (optionally penalized)
maximum likelihood estimation via optimization. The Stan library includes
an advanced automatic differentiation scheme, 'templated' statistical and
linear algebra functions that can handle the automatically
'differentiable' scalar types (and doubles, 'ints', etc.), and a parser
for the Stan language. The 'rstan' package provides user-facing R
functions to parse, compile, test, estimate, and analyze Stan models.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8403 |21cr|R-statmod-1.4.21-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  statmod
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.4.21
Release:          5
Summary:          Statistical Modeling
Group:            Sciences/Mathematics
License:          LGPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/statmod_%{version}.tar.gz
# BuildArch:        noarch
Requires:         R-core R-MASS
%if %{without bootstrap}
Requires:         R-tweedie
%endif
BuildRequires:    R-devel Rmath-devel  R-MASS
%if %{without bootstrap}
BuildRequires:    R-tweedie
%endif

%description
Various statistical modeling functions including growth curve comparisons,
limiting dilution analysis, mixed linear models, heteroscedastic
regression, Tweedie family generalized linear models, the inverse-Gaussian
distribution and Gauss quadrature.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8404 |21cr|R-statnet.common-3.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname statnet.common
%global rlibdir %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.2.2
Release:          4
Summary:          Common R Scripts and Utilities Used by the Statnet Project Software
Group:            Sciences/Mathematics
License:          GPLv3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/statnet.common_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex

%description
This package contains non-statistical utilities used by
the software developed by the Statnet Project. 
They may also be of use to others.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8405 |21cr|R-stringi-1.7.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  stringi
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.7.6
Release:          2
Summary:          Character String Processing Facilities
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              https://cran.r-project.org/package=%{packname}
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-tools R-utils R-stats

BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-tools R-utils R-stats
BuildRequires:    icu-data icu-devel

%description
Allows for fast, correct, consistent, portable, as well as convenient
character string/text processing in every locale and any native encoding.
Owing to the use of the ICU library, the package provides R users with
platform-independent functions known to Java, Perl, Python, PHP, and Ruby
programmers. Among available features there are: pattern searching (e.g.,
with ICU Java-like regular expressions or the Unicode Collation
Algorithm), random string generation, case mapping, string
transliteration, concatenation, Unicode normalization, date-time
formatting and parsing, etc.

%prep
%setup -q -c -n %{packname}

%build
pushd %{packname}
%configure --disable-icu-bundle
popd

%install

mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%doc %{rlibdir}/%{packname}/AUTHORS
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8406 |21cr|R-stringr-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without    bootstrap
%global packname  stringr
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.0
Release:          6
Summary:          Make it easier to work with strings
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-plyr
Requires:         R-stringi R-magrittr
%if %{without bootstrap}
Requires:         R-testthat
%endif
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-plyr
BuildRequires:    R-stringi R-magrittr
%if %{without bootstrap}
BuildRequires:    R-testthat
%endif

%description
stringr is a set of simple wrappers that make R's string functions more
consistent, simpler and easier to use.  It does this by ensuring that:
function and argument names (and positions) are consistent, all functions
deal with NA's and zero length character appropriately, and the output
data structures from each function matches the input data structures of
other functions.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8407 |21cr|R-strucchange-1.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  strucchange
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.5.0
Release:          5
Summary:          Testing, Monitoring, and Dating Structural Changes
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/strucchange_1.5-0.tar.gz
Requires:         R-graphics R-stats R-zoo R-sandwich R-graphics R-stats 
Requires:         R-e1071 R-foreach 
Recommends:       R-lmtest R-car R-tseries
%if %{without bootstrap}
Requires:         R-dynlm
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-graphics R-stats R-zoo R-sandwich R-graphics R-stats
BuildRequires:    R-e1071 R-foreach
%if %{without bootstrap}
BuildRequires:    R-dynlm
%endif

%description
Testing, monitoring and dating structural changes in (linear) regression
models. strucchange features tests/methods from the generalized
fluctuation test framework as well as from the F test (Chow test)
framework. This includes methods to fit, plot and test fluctuation
processes (e.g., CUSUM, MOSUM, recursive/moving estimates) and F
statistics, respectively. It is possible to monitor incoming data online
using fluctuation processes. Finally, the breakpoints in regression models
with structural changes can be estimated together with confidence
intervals. Emphasis is always given to methods for visualizing the data.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8408 |21cr|R-subselect-0.12.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  subselect
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.12.5
Release:          4
Summary:          Selecting variable subsets
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/subselect_0.12-5.tar.gz
Requires:         R-MASS R-ISwR 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-MASS R-ISwR 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
A collection of functions which (i) assess the quality of variable subsets
as surrogates for a full data set, in either an exploratory data analysis
or in the context of a multivariate linear model, and (ii) search for
subsets which are optimal under various criteria.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/readme
%doc %{rlibdir}/%{packname}/CHANGELOG
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8409 |21cr|R-subselect-0.12.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  subselect
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.12.5
Release:          5
Summary:          Selecting variable subsets
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/subselect_0.12-5.tar.gz
Requires:         R-MASS R-ISwR 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-MASS R-ISwR 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
A collection of functions which (i) assess the quality of variable subsets
as surrogates for a full data set, in either an exploratory data analysis
or in the context of a multivariate linear model, and (ii) search for
subsets which are optimal under various criteria.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/readme
%doc %{rlibdir}/%{packname}/CHANGELOG
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8410 |21cr|R-survey-3.29.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  survey
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          3.29.5
Release:          6
Summary:          analysis of complex survey samples
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/survey_3.29-5.tar.gz
Requires:         R-foreign R-survival R-MASS R-splines R-KernSmooth
Requires:         R-hexbin R-mitools R-lattice R-RSQLite R-RODBC R-quantreg
Requires:         R-Matrix R-multicore R-CompQuadForm
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-foreign R-survival R-MASS R-splines R-KernSmooth
BuildRequires:    R-hexbin R-mitools R-lattice R-RSQLite R-RODBC R-quantreg
BuildRequires:    R-Matrix R-multicore R-CompQuadForm

%description
Summary statistics, two-sample tests, generalised linear models,
cumulative link models, Cox models, loglinear models, and general maximum
pseudolikelihood estimation for multistage stratified, cluster-sampled,
unequally weighted survey samples. Variances by Taylor series
linearisation or replicate weights. Post-stratification, calibration, and
raking. Two-phase subsampling designs. Graphics. Predictive margins by
direct standardization. PPS sampling without replacement. Principal
components, factor analysis.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#Disable check - fails due to texlive errors...
#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/disclaimer
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/porting*
%doc %{rlibdir}/%{packname}/*.pdf
%doc %{rlibdir}/%{packname}/BUGS
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/api.db
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8411 |21cr|R-svGUI-0.9.55-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  svGUI
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.9.55
Release:          5
Summary:          SciViews GUI API - Functions to manage GUIs
Group:            Sciences/Mathematics
License:          GPLv2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.9-55.tar.gz
BuildArch:        noarch
Requires:         R-core

BuildRequires:    R-devel Rmath-devel texlive

%description
Functions to manage GUIs from R

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8412 |21cr|rsvndump-0.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Remote Subversion repository dump
Name:		rsvndump
Version:	0.6.1
Release:	1
License:	GPLv3
Group:		System/Servers
URL:		http://rsvndump.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/rsvndump/%{name}/%{name}-%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	apr-devel
BuildRequires:	subversion-devel
BuildRequires:	gettext-devel

%description
rsvndump is a command line tool that is able to dump a subversion repository
that resides on a remote server. All data is dumped in the format that can be
read/written by svnadmin, so the data produced by rsvndump can easily be
imported into a new subversion repository.

%prep
%setup -q


%build
%configure
%make

%install
%makeinstall_std
%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog THANKS doc/rsvndump.txt
%{_bindir}/rsvndump

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8413 |21cr|R-svUnit-0.7.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  svUnit
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.7.12
Release:          5
Summary:          SciViews GUI API - Unit testing
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.7-12.tar.gz

Requires:         R-svGUI R-datasets R-utils R-XML 
BuildRequires:    R-devel Rmath-devel texlive-latex 

BuildRequires:   R-svGUI R-datasets R-utils R-XML 

%description
A complete unit test system and functions to implement its GUI part

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/Tests*
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/komodo
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8414 |21cr|R-sys-3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname sys

Summary:	Powerful and Reliable Tools for Running System Commands in R
Name:		R-sys
Version:	3.4
Release:	1
License:	MIT
Group:		Sciences/Mathematics
Url:		https://CRAN.R-project.org/package=sys
Source0:	https://cran.r-project.org/src/contrib/%{oname}_%{version}.tar.gz
BuildRequires:	R-devel

%description
Drop-in replacements for the base system2() function with fine control and
consistent behavior across platforms. Supports clean interruption, timeout,
background tasks, and streaming STDIN / STDOUT / STDERR over binary or text
connections. Arguments on Windows automatically get encoded and quoted to work
on different locales.

%files
%doc %{_libdir}/R/library/%{oname}/html
%doc %{_libdir}/R/library/%{oname}/NEWS
%license %{_libdir}/R/library/%{oname}/LICENSE
%{_libdir}/R/library/%{oname}/DESCRIPTION
%{_libdir}/R/library/%{oname}/help
%{_libdir}/R/library/%{oname}/INDEX
%{_libdir}/R/library/%{oname}/libs/%{oname}.so
%{_libdir}/R/library/%{oname}/Meta
%{_libdir}/R/library/%{oname}/NAMESPACE
%{_libdir}/R/library/%{oname}/R
%{_libdir}/R/library/%{oname}/WORDLIST

#------------------------------------------------------------------

%prep
%setup -qcn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_libdir}/R/library
%{_bindir}/R CMD INSTALL -l %{buildroot}%{_libdir}/R/library %{oname}
test -d %{oname}/src && (cd %{oname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{_libdir}/R/library/R.css

# A file used in tests; tests aren't installed.
rm %{buildroot}%{_libdir}/R/library/%{oname}/utf8.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8415 |21cr|rt-3.8.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We cannot fix this package neither now nor later, just ignore rpmlint
%define _build_pkgcheck_set %{nil}

%global __requires_exclude 'perl\\(RT->Config->Get\\)'

#
# Copyright (c) 2005, 2006, 2007, 2008 Ralf Corsepius, Ulm, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# Supported rpmbuild options:
#
# --with gd/--without gd 
#	enable/disable gd support
#	Default: --with (had been default in rt < 3.8.0)
%bcond_without gd

# --with graphviz/--without graphviz
#	enable/disable graphiz support
#	Default: --without (missing deps)
%bcond_with graphviz

# --with devel_mode/--without devel_mode
#	enable/disable building/installing devel files
#	Default: without (missing deps; TBA in spec)
%bcond_with devel_mode

# --with gpg/--without gpg
#	enable/disable building gpg support
#	Default: without
%bcond_with gpg

# --with tests
#	run testsuite when building the rpm
#	Default: without (doesn't work in chroots.)
%bcond_with tests

%define RT_BINDIR		%{_sbindir}
%define RT_LIBDIR		%{perl_vendorlib}
%define RT_WWWDIR		%{_datadir}/rt/html
%define RT_LOGDIR		/var/log/rt
%define RT_CACHEDIR		/var/cache/rt
%define RT_LOCALSTATEDIR	/var/lib/rt

Summary:	Request tracker 3
Name:		rt
Version:	3.8.11
Release:	6
License:	GPLv2+
Group:		System/Servers
Url:		http://www.bestpractical.com/rt
Source0:	http://www.bestpractical.com/pub/rt/release/rt-%{version}.tar.gz
Source3:	rt.conf.in
Source4:	README.fedora.in
Source5:	rt.logrotate.in
Patch0:		rt-3.8.9-config.diff
Patch1:		rt-3.4.1-I18N.diff
Patch2:		rt-3.8.1-Makefile.diff
Patch3:		rt-3.8.1-test-dependencies.diff
Patch4:		rt-3.8.11-pod.patch
BuildRequires:	apache-devel
# This list is alpha sorted
BuildRequires:	perl(Apache::DBI)
BuildRequires:	perl(Apache::Session) >= 1.53
BuildRequires:	perl(Cache::Simple::TimedExpiry)
BuildRequires:	perl(Calendar::Simple)
BuildRequires:	perl(CGI::Cookie) >= 1.20
BuildRequires:	perl(Class::ReturnValue) >= 0.40
BuildRequires:	perl(CPAN)
BuildRequires:	perl(CSS::Squish) >= 0.06
BuildRequires:	perl(Data::ICal)
BuildRequires:	perl(Date::Format)
BuildRequires:	perl(DBD::mysql) >= 2.1018
BuildRequires:	perl(DBI) >= 1.37
BuildRequires:	perl(DBIx::SearchBuilder) >= 1.54
BuildRequires:	perl(Devel::StackTrace) >= 1.19
BuildRequires:	perl(Digest::base)
BuildRequires:	perl(Digest::MD5) >= 2.27
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Email::Address)
BuildRequires:	perl(Encode) >= 2.13
BuildRequires:	perl(Errno)
BuildRequires:	perl(File::Glob)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(File::Spec) >= 0.8
BuildRequires:	perl(File::Temp) >= 0.18
BuildRequires:	perl(Getopt::Long) >= 2.24
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::FormatText)
BuildRequires:	perl(HTML::Mason) >= 1.36
BuildRequires:	perl(HTML::RewriteAttributes) >= 0.02
BuildRequires:	perl(HTML::Scrubber) >= 0.08
BuildRequires:	perl(HTML::TreeBuilder)
BuildRequires:	perl(HTTP::Request::Common)
BuildRequires:	perl(HTTP::Server::Simple) >= 0.34
BuildRequires:	perl(HTTP::Server::Simple::Mason) >= 0.09
BuildRequires:	perl(Locale::Maketext) >= 1.06
BuildRequires:	perl(Locale::Maketext::Fuzzy)
BuildRequires:	perl(Locale::Maketext::Lexicon) >= 0.32
BuildRequires:	perl(Log::Dispatch) >= 2.0
BuildRequires:	perl(LWP)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Mail::Mailer) >= 1.57
BuildRequires:	perl(MIME::Entity) >= 5.425
BuildRequires:	perl(MIME::Types)
BuildRequires:	perl(Module::Versions::Report) >= 1.05
BuildRequires:	perl(Net::Server)
BuildRequires:	perl(Net::Server::PreFork)
BuildRequires:	perl(Net::SMTP)
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Storable) >= 2.08
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Term::ReadLine)
BuildRequires:	perl(Text::ParseWords)
BuildRequires:	perl(Text::Quoted) >= 2.02
BuildRequires:	perl(Text::Template)
BuildRequires:	perl(Text::WikiFormat) >= 0.76
BuildRequires:	perl(Text::Wrapper)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Time::ParseDate)
BuildRequires:	perl(Tree::Simple) >= 1.04
BuildRequires:	perl(UNIVERSAL::require)
BuildRequires:	perl(XML::RSS) >= 1.05
%if %{with devel_mode}
BuildRequires:	perl(File::Find)
BuildRequires:	perl(HTML::Form)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(Log::Dispatch::Perl)
BuildRequires:	perl(Module::Refresh) >= 0.03
BuildRequires:	perl(String::ShellQuote)
BuildRequires:	perl(Test::Builder) >= 0.77
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Expect) >= 0.31
BuildRequires:	perl(Test::HTTP::Server::Simple) >= 0.09
BuildRequires:	perl(Test::MockTime)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::WWW::Mechanize)
BuildRequires:	perl(WWW::Mechanize)
BuildRequires:	perl(XML::Simple)
%endif
%if %{with gd}
BuildRequires:	perl(GD)
BuildRequires:	perl(GD::Graph)
BuildRequires:	perl(GD::Text)
%endif
%if %{with gpg}
BuildRequires:	perl(GnuPG::Interface)
BuildRequires:	perl(PerlIO::eol)
%endif
%if %{with graphviz}
BuildRequires:	perl(GraphViz)
BuildRequires:	perl(IPC::Run)
BuildRequires:	perl(IPC::Run::SafeHandles)
%endif

# rpm doesn't catch these:
Requires:	apache-mod_perl
Requires:	perl(Apache::Session)
Requires:	perl(Calendar::Simple)
Requires:	perl(HTTP::Server::Simple::Mason)
Requires:	perl(I18N::LangTags::List)
Requires:	perl(Locale::Maketext::Fuzzy)
Requires:	perl(LWP::MediaTypes)
Requires:	perl(Module::Versions::Report)
Requires:	perl(Tree::Simple)
Requires:	perl(URI::URL)
%if %{with gd}
Requires:	perl(GD::Text)
Requires:	perl(GD::Graph::bars)
Requires:	perl(GD::Graph::pie)
%endif
# rpm fails to add these:
Provides:	perl(RT::Shredder::Exceptions)
Provides:	perl(RT::Shredder::Record)
Provides:	perl(RT::Shredder::Transaction)
Provides:	perl(RT::Tickets_Overlay_SQL)
# For Debian compatibility
Provides:	request-tracker3 = %{EVRD}
# Split out. Technically, not actually necessary, but ... let's keep it for now.
Requires:	rt-mailgate
BuildArch:	noarch

%description
RT is an enterprise-grade ticketing system which enables a group of people
to intelligently and efficiently manage tasks, issues, and requests submitted
by a community of users.

%files
%doc COPYING README UPGRADING README.fedora
%{_bindir}/*
%{_sbindir}/*
%exclude %{_sbindir}/rt-mailgate
%{RT_LIBDIR}/*
%attr(0700,apache,apache) %{RT_LOGDIR}
%dir %{_sysconfdir}/rt
%attr(-,root,root)%{_sysconfdir}/rt/upgrade
%attr(-,root,root)%{_sysconfdir}/rt/acl*
%attr(-,root,root)%{_sysconfdir}/rt/schema*
%attr(-,root,root)%{_sysconfdir}/rt/init*
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/rt/RT_*
%config(noreplace) %{_sysconfdir}/logrotate.d/rt
%dir %{_datadir}/rt
%{RT_WWWDIR}
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/rt.conf
%dir %{RT_CACHEDIR}
%attr(0770,apache,apache) %{RT_CACHEDIR}/mason_data
%attr(0770,apache,apache) %{RT_CACHEDIR}/session_data
%if "%{RT_LOCALSTATEDIR}" != "%{RT_CACHEDIR}"
%dir %{RT_LOCALSTATEDIR}
%endif
%{_datadir}/fonts/Droid*
%ghost %{_prefix}/local/lib/rt
%ghost %{_prefix}/local/etc/rt

#----------------------------------------------------------------------------

%package mailgate
Summary:	rt's mailgate utility
Group:		System/Servers
# rpm doesn't catch these:
Requires:	perl(Pod::Usage)
Requires:	perl(HTML::TreeBuilder)
Requires:	perl(HTML::FormatText)

%description mailgate
rt's mailgate utility.

%files mailgate
%{_sbindir}/rt-mailgate
%{_mandir}/man1/rt-mailgate*

#----------------------------------------------------------------------------

%prep
%setup -q

sed -e 's,@RT_CACHEDIR@,%{RT_CACHEDIR},' %{SOURCE4} \
  > README.fedora
sed -e 's,@RT_LOGDIR@,%{RT_LOGDIR},' %{SOURCE5} \
  > rt.logrotate

# Fixup the tarball shipping with broken permissions
find . \( -name '*.pm' -o -name '*.pm.in' -o -name '*.po' -o -name '*.pod' \) \
  -exec chmod a-x {} \;
chmod -x UPGRADING README C* aclocal.* config.* *.ac *.in
find etc -type f -exec chmod a-x {} \;

%patch0 -p1
#%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

# Patch backups added by rpm disturb
find -name '*.orig' -exec rm -f {} \;

cat << \EOF > %{name}-prov
#!/bin/sh
%{__perl_provides} $* |\
    sed -e '/^perl(RT)$/d' \
    	-e '/^perl(HTML::Mason/d' \
	-e '/^perl(IO::Handle::CRLF)$/d'
EOF
%define __perl_provides %{_builddir}/rt-%{version}/%{name}-prov
chmod +x %{__perl_provides}

# Filter out a bogus R:perl() rpm adds.
# Keep SpamAssassin optional
cat << \EOF > %{name}-req
#!/bin/sh
%{__perl_requires} $* |\
    sed -e '/^perl()/d' \
	-e '/^perl(Mail::SpamAssassin)$/d'
EOF
%define __perl_requires %{_builddir}/rt-%{version}/%{name}-req
chmod +x %{__perl_requires}

# Propagate rpm's directories to config.layout
cat << \EOF >> config.layout

# Mandriva directory layout.
<Layout Mandriva>
  bindir:		%{RT_BINDIR}
  sysconfdir:		%{_sysconfdir}/rt
  libdir:		%{RT_LIBDIR}
  manualdir:		${datadir}/doc
  localstatedir:	%{RT_LOCALSTATEDIR}
  htmldir:		%{RT_WWWDIR}
  logfiledir:		%{RT_LOGDIR}
  masonstatedir:	%{RT_CACHEDIR}/mason_data
  sessionstatedir:	%{RT_CACHEDIR}/session_data
  customdir:		%{_prefix}/local/lib/rt
  custometcdir:		%{_prefix}/local/etc/rt
  customhtmldir:	${customdir}/html
  customlexdir:		${customdir}/po
  customlibdir:		${customdir}/lib
</Layout>
EOF

# Comment out the Makefile trying to change groups/owners
# Fix DESTDIR support
sed -i \
	-e 's,	chgrp,	: chrgp,g' \
	-e 's,	chown,	: chown,g' \
	-e 's,$(DESTDIR)/,$(DESTDIR),g' \
	-e 's,-o $(BIN_OWNER) -g $(RTGROUP),,g' \
Makefile.in

%build
%configure \
	--with-apachectl=/usr/sbin/apachectl \
	--with-web-user=apache \
	--with-web-group=apache \
	--enable-layout=Mandriva \
	--with-modperl2 \
	--with-web-handler=modperl2 \
	--libdir=%{RT_LIBDIR} \
	%{?with_graphviz:--enable-graphviz}%{!?with_graphviz:--disable-graphviz} \
	%{?with_gd:--enable-gd}%{!?with_gd:--disable-gd} \
	%{?with_gpg:--enable-gpg}%{!?with_gpg:--disable-gpg} \
	%{?with_devel_mode:--enable-devel-mode}%{!?with_devel_mode:--disable-devel-mode}

%make

# Generate man-pages
pod2man bin/rt-mailgate > bin/rt-mailgate.1

%install
%make_install

# Cleanup the mess rt's configuration leaves behind
rm -f %{buildroot}%{_docdir}/README

# Win32 stuff
rm -f %{buildroot}%{RT_BINDIR}/mason_handler.svc

# We don't want CPAN
rm -f %{buildroot}%{_sbindir}/rt-test-dependencies

# An installed testsuite without infrastructure
rm -rf %{buildroot}%{RT_LIBDIR}/t

# Bogus
rm -f %{buildroot}%{RT_LIBDIR}/RT.pm.in

# Unsupported
rm -f %{buildroot}%{RT_BINDIR}/*.scgi

# Install apache configuration
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
sed -e 's,@RT_WWWDIR@,%{RT_WWWDIR},g' \
  -e 's,@RT_BINDIR@,%{RT_BINDIR},g' \
  %{SOURCE3} > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/rt.conf

mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 bin/rt-mailgate.1 \
  %{buildroot}%{_mandir}/man1

if [ "%{_bindir}" != "%{RT_BINDIR}" ]; then
  mkdir -p %{buildroot}%{_bindir}
  mv %{buildroot}%{RT_BINDIR}/rt \
    %{buildroot}%{_bindir}
fi

install -d -m755 %{buildroot}%{_prefix}/local/etc/rt
install -d -m755 %{buildroot}%{_prefix}/local/lib/rt
install -d -m755 %{buildroot}%{_prefix}/local/lib/rt/html
install -d -m755 %{buildroot}%{_prefix}/local/lib/rt/po
install -d -m755 %{buildroot}%{_prefix}/local/lib/rt/lib

install -d -m755 %{buildroot}%{RT_LOGDIR}

# install log rotation stuff
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 rt.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/rt

install -d -m755 %{buildroot}%{RT_LOCALSTATEDIR}

install -d -m755 %{buildroot}%{_sysconfdir}/rt/upgrade
cp -R etc/upgrade/* %{buildroot}%{_sysconfdir}/rt/upgrade
rm -f %{buildroot}%{_sysconfdir}/rt/upgrade/*.in

# Fix permissions
find %{buildroot}%{RT_WWWDIR} \
  -type f -exec chmod a-x {} \;

rm -Rf %{buildroot}/%{RT_LIBDIR}/RT/Test*
mkdir -p %{buildroot}/%{_datadir}/fonts
mv %{buildroot}/Droid* %{buildroot}/%{_datadir}/fonts

%check
# The tests don't work:
# - Require to be run as root
# - Require an operational rt system
# - Require packages which are n/a in Fedora
%{?with_tests:make test}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8416 |21cr|rt-4.4.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We cannot fix this package neither now nor later, just ignore rpmlint
#%%define _build_pkgcheck_set %{nil}

# Work-around rpm's depgenerator defect:
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(DBIx::SearchBuilder::Handle::\\)

# Filter redundant provides
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(RT\\)$
# Filter bogus provides
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(HTML::Mason

#
# Copyright (c) 2005-2021, Ralf Corsepius, Ulm, Germany.
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# --with devel_mode/--without devel_mode
#	enable/disable building/installing devel files
#	Default: enabled
%bcond_without devel_mode

# --with runtests
#	run testsuite when building the rpm
#	Default: disabled (doesn't work in chroots.)
%bcond_with runtests

# --with mysql
#	configure for use with mysql
%bcond_with mysql
# --with pg
#	configure for use with postgress
%bcond_with pg

# default to mysql
%if !%{with mysql} && !%{with pg}
%global with_mysql 1
%endif

%global RT_BINDIR		%{_bindir}
%global RT_SBINDIR		%{_sbindir}
%global RT_FONTSDIR		%{_datadir}/%{name}/fonts
%global RT_LIBDIR		%{perl_vendorlib}
%global RT_WWWDIR		%{_datadir}/%{name}/html
%global RT_LEXDIR		%{_datadir}/%{name}/po
%global RT_LOGDIR		%{_localstatedir}/log/%{name}
%global RT_CACHEDIR		%{_localstatedir}/cache/%{name}
%global RT_LOCALSTATEDIR	%{_localstatedir}/lib/%{name}
%global RT_STATICDIR		%{_datadir}/%{name}/static

Summary:	Request tracker
Name:		rt
Version:	4.4.5
Release:	2
License:	GPLv2+
Group:		System/Servers
Url:		http://www.bestpractical.com/rt
Source0:	http://www.bestpractical.com/pub/rt/release/rt-%{version}.tar.gz
# Notes on running the testsuite
Source1:	README.tests
# rt's Apache configuration
Source2:	rt.conf.in
# Fedora-specific installation notes
Source3:	README.fedora.in
# rt's logrotate configuration
Source4:	rt.logrotate.in
Patch1: 0001-Add-Fedora-configuration.patch
Patch2: 0002-Use-usr-bin-perl-instead-of-usr-bin-env-perl.patch
Patch3: 0003-Remove-fixperms-font-install.patch
Patch4: 0004-Fix-permissions.patch
Patch5: 0005-Do-not-install-cpanfile.patch
BuildArch:	noarch
BuildRequires:	apache-devel
# This list is alpha sorted
BuildRequires: make
BuildRequires: perl-generators
BuildRequires: perl(Apache::Session) >= 1.53
BuildRequires: perl(Business::Hours)
BuildRequires: perl(CGI::Cookie) >= 1.20
BuildRequires: perl(CGI::PSGI)
BuildRequires: perl(CGI::Emulate::PSGI)
BuildRequires: perl(Class::ReturnValue) >= 0.40
BuildRequires: perl(Convert::Color)
BuildRequires: perl(CPAN)
BuildRequires: perl(Crypt::Eksblowfish)
BuildRequires: perl(Crypt::X509)
BuildRequires: perl(CSS::Minifier::XS)
BuildRequires: perl(CSS::Squish) >= 0.06
BuildRequires: perl(Data::GUID)
BuildRequires: perl(Data::ICal)
BuildRequires: perl(Data::Page::Pageset)
BuildRequires: perl(Data::Perl::Role::Collection::Array)
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(Date::Extract) >= 0.02
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(Date::Manip)
BuildRequires: perl(DateTime::Format::Natural) >= 0.67
BuildRequires: perl(Date::Format)
BuildRequires: perl(DateTime) >= 0.44
BuildRequires: perl(DateTime::Locale) >= 0.40
%{?with_mysql:BuildRequires: perl(DBD::mysql) >= 2.1018}
%{?with_pg:BuildRequires: perl(DBD::Pg) >= 1.43}
BuildRequires: perl(DBI) >= 1.37
BuildRequires: perl(DBIx::SearchBuilder) >= 1.59
BuildRequires: perl(Devel::StackTrace) >= 1.19
BuildRequires: perl(Devel::GlobalDestruction)
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(Digest::base)
BuildRequires: perl(Digest::MD5) >= 2.27
BuildRequires: perl(Email::Address) >= 1.912
BuildRequires: perl(Email::Address::List) >= 0.02
BuildRequires: perl(Encode) >= 2.64
%if "%{version}" >= "5.0.0"
BuildRequires: perl(Encode::Detect::Detector)
%endif
BuildRequires: perl(Encode::HanExtra)
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(Errno)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Glob)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::Spec) >= 0.8
BuildRequires: perl(File::Temp) >= 0.19
BuildRequires: perl(File::Which)
BuildRequires: perl(GD)
BuildRequires: perl(GD::Graph) >= 1.47
BuildRequires: perl(GD::Text)
BuildRequires: perl(GnuPG::Interface)
BuildRequires: perl(GraphViz)
BuildRequires: perl(Getopt::Long) >= 2.24
BuildRequires: perl(HTML::Entities)
%if "%{version}" >= "5.0.0"
BuildRequires: perl(HTML::FormatExternal)
%endif
BuildRequires: perl(HTML::FormatText::WithLinks) >= 0.14
BuildRequires: perl(HTML::FormatText::WithLinks::AndTables) >= 0.06
%if "%{version}" >= "5.0.0"
BuildRequires: perl(HTML::Gumbo)
%endif
BuildRequires: perl(HTML::Mason) >= 1.43
BuildRequires: perl(HTML::Mason::PSGIHandler)
BuildRequires: perl(HTML::Quoted)
BuildRequires: perl(HTML::RewriteAttributes) >= 0.02
BuildRequires: perl(HTML::Scrubber) >= 0.08
BuildRequires: perl(HTML::TreeBuilder)
BuildRequires: perl(HTTP::Request::Common)
BuildRequires: perl(HTTP::Status)
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(IPC::Run)
BuildRequires: perl(IPC::Run3)
BuildRequires: perl(JSON)
BuildRequires: perl(JavaScript::Minifier::XS)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Locale::Maketext) >= 1.06
BuildRequires: perl(Locale::Maketext::Fuzzy) >= 0.11
BuildRequires: perl(Locale::Maketext::Lexicon) >= 0.32
BuildRequires: perl(Locale::PO)
BuildRequires: perl(Log::Dispatch) >= 2.23
BuildRequires: perl(Net::LDAP::Server::Test)
%{?with_devel_mode:BuildRequires: perl(Log::Dispatch::Perl)}
BuildRequires: perl(LWP)
BuildRequires: perl(LWP::UserAgent)
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(Mail::Mailer) >= 1.57
BuildRequires: perl(MIME::Entity) >= 5.425
BuildRequires: perl(MIME::Types)
%if "%{version}" >= "5.0.0"
BuildRequires: perl(Module::Path)
%endif
%{?with_devel_mode:BuildRequires: perl(Module::Refresh) >= 0.03}
BuildRequires: perl(Module::Versions::Report) >= 1.05
%if "%{version}" >= "5.0.0"
BuildRequires: perl(Moose)
BuildRequires: perl(MooseX::NonMoose)
BuildRequires: perl(MooseX::Role::Parameterized)
%endif
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(Mozilla::CA)
BuildRequires: perl(Mojo::DOM)
BuildRequires: perl(Net::CIDR)
BuildRequires: perl(Net::IP)
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(Net::SSLeay)
%if (("%{version}" >= "4.4.5") && ("%{version}" < "5.0.0")) || ("%{version}" >= "5.0.2")
BuildRequires: perl(Parallel::ForkManager)
%endif
%if "%{version}" >= "5.0.0"
BuildRequires: perl(Path::Dispatcher) >= 1.07
%endif
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(PerlIO::eol)
BuildRequires: perl(Pod::Usage)
BuildRequires: perl(Pod::Select)
BuildRequires: perl(Plack)
# In rt-test-dependencies, but seemingly unused
BuildRequires: perl(Plack::Handler::Starlet)
%{?with_devel_mode:BuildRequires: perl(Plack::Middleware::Test::StashWarnings) >= 0.06}
BuildRequires: perl(Regexp::Common)
BuildRequires: perl(Regexp::Common::net::CIDR)
BuildRequires: perl(Regexp::IPv6)
BuildRequires: perl(Role::Basic) >= 0.12
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Scope::Upper)
BuildRequires: perl(Set::Tiny)
BuildRequires: perl(Storable) >= 2.08
BuildRequires: perl(Sub::HandlesVia)
%{?with_devel_mode:BuildRequires: perl(String::ShellQuote)}
BuildRequires: perl(Symbol::Global::Name) >= 0.04
BuildRequires: perl(Term::ReadKey)
BuildRequires: perl(Term::ReadLine)
%{?with_devel_mode:BuildRequires: perl(Test::Builder) >= 0.77}
%{?with_devel_mode:BuildRequires: perl(Test::Deep)}
%{?with_devel_mode:BuildRequires: perl(Test::Email)}
%{?with_devel_mode:BuildRequires: perl(Email::Abstract)}
%{?with_devel_mode:BuildRequires: perl(Test::Expect) >= 0.31}
%{?with_devel_mode:BuildRequires: perl(Test::MockTime)}
%{?with_devel_mode:BuildRequires: perl(Test::NoWarnings)}
%{?with_devel_mode:BuildRequires: perl(Test::Pod) >= 1.14}
%{?with_devel_mode:BuildRequires: perl(Test::Warn)}
%{?with_devel_mode:BuildRequires: perl(Test::WWW::Mechanize)}
%{?with_devel_mode:BuildRequires: perl(Test::WWW::Mechanize::PSGI)}
BuildRequires: perl(Text::Autoformat)
BuildRequires: perl(Text::ParseWords)
BuildRequires: perl(Text::Password::Pronounceable)
BuildRequires: perl(Text::Quoted) >= 2.02
BuildRequires: perl(Text::Template)
BuildRequires: perl(Text::WikiFormat) >= 0.76
%if "%{version}" >= "5.0.1"
BuildRequires: perl(Text::WordDiff)
%endif
BuildRequires: perl(Text::Wrapper)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Time::ParseDate)
BuildRequires: perl(Tree::Simple) >= 1.04
BuildRequires: perl(Type::Utils)
BuildRequires: perl(UNIVERSAL::require)
BuildRequires: perl(URI::QueryParam)
%if "%{version}" >= "5.0.0"
BuildRequires: perl(Web::Machine) >= 0.12
%endif
%{?with_devel_mode:BuildRequires: perl(WWW::Mechanize)}
BuildRequires: perl(XML::RSS) >= 1.05
%{?with_devel_mode:BuildRequires: perl(XML::Simple)}

%{?with_runtests:BuildRequires: perl(DBD::SQLite)}
%{?with_runtests:BuildRequires: perl(Test::Warn)}
%{?with_runtests:BuildRequires: perl(Test::MockTime)}
%{?with_runtests:BuildRequires: perl(String::ShellQuote)}
%{?with_runtests:BuildRequires: perl(Test::Expect)}

BuildRequires:	/usr/bin/pod2man
BuildRequires:	/usr/sbin/apachectl

# the original sources carry bundled versions of these ...
Requires:  /usr/share/fonts/TTF/droid/DroidSansFallback.ttf
Requires:  /usr/share/fonts/TTF/droid/DroidSans.ttf
# ... we use symlinks to the system-wide versions ...
BuildRequires:  /usr/share/fonts/TTF/droid/DroidSansFallback.ttf
BuildRequires:  /usr/share/fonts/TTF/droid/DroidSans.ttf

Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
Requires:	%{_sysconfdir}/httpd/conf.d

# rpm doesn't catch these:
Requires: perl(Apache::Session)
Requires: perl(Business::Hours)
Requires: perl(Calendar::Simple)
Requires: perl(CSS::Squish)
Requires: perl(Data::Page)
Requires: perl(Data::Page::Pageset)
Requires: perl(Data::ICal)
Requires: perl(Data::ICal::Entry::Event)
%{?with_mysql:Requires: perl(DBD::mysql) >= 2.1018}
%{?with_pg:Requires: perl(DBD::Pg)}
Requires: perl(DateTime::Format::Natural) >= 0.67
Requires: perl(Log::Dispatch::Perl)
Requires: perl(GD::Text)
Requires: perl(GD::Graph::bars)
Requires: perl(GD::Graph::pie)
Requires: perl(HTML::Quoted)
Requires: perl(HTML::Mason::Request)
Requires: perl(I18N::LangTags::List)
Requires: perl(IPC::Run3)
Requires: perl(LWP::MediaTypes)
Requires: perl(mod_perl2)
Requires: perl(Module::Versions::Report)
Requires: perl(Net::IP)
Requires: perl(PerlIO::eol)
Requires: perl(Plack::Middleware::Test::StashWarnings) >= 0.06
Requires: perl(Plack::Handler::Starlet)
Requires: perl(Text::Quoted)
Requires: perl(Text::WikiFormat)
Requires: perl(Time::ParseDate)
Requires: perl(URI::URL)
Requires: perl(XML::RSS)

# optional
Recommends:  perl(Encode::HanExtra)


# rpm fails to add these:
Provides: perl(RT::Shredder::Exceptions)

# Split out. Technically, not actually necessary, but ... let's keep it for now.
Requires: rt-mailgate

%{?perl_default_filter}

%description
RT is an enterprise-grade ticketing system which enables a group of people
to intelligently and efficiently manage tasks, issues, and requests submitted
by a community of users.

%files
%{_docdir}/%{name}-%{version}
%license COPYING
%{_bindir}/*
%{_sbindir}/*
%exclude %{_bindir}/rt-mailgate
%{_mandir}/man1/*
%exclude %{_mandir}/man1/rt-mailgate*
%{RT_LIBDIR}/*
%exclude %{RT_LIBDIR}/RT/Test*
%attr(0700,apache,apache) %{RT_LOGDIR}
%attr(0760,apache,apache) %{RT_LOCALSTATEDIR}

%dir %{_sysconfdir}/%{name}
%attr(-,root,root)%{_datadir}/%{name}/upgrade
%attr(-,root,root)%{_sysconfdir}/%{name}/upgrade
%attr(-,root,root)%{_sysconfdir}/%{name}/acl*
%attr(-,root,root)%{_sysconfdir}/%{name}/schema*
%attr(-,root,root)%{_sysconfdir}/%{name}/init*
%{?!with_pg:%exclude %{_sysconfdir}/%{name}/*.Pg}
%{?!with_pg:%exclude %{_datadir}/%{name}/upgrade/*/*.Pg}
%exclude %{_sysconfdir}/%{name}/*.Oracle
%exclude %{_datadir}/%{name}/upgrade/*/*.Oracle
%exclude %{_sysconfdir}/%{name}/*.SQLite
%exclude %{_datadir}/%{name}/upgrade/*/*.SQLite
%{?!with_mysql:%exclude %{_sysconfdir}/%{name}/*.mysql}
%{?!with_mysql:%exclude %{_datadir}/%{name}/upgrade/*/*.mysql}
%attr(0750,apache,apache) %{_sysconfdir}/%{name}/RT_SiteConfig.d
%config(noreplace) %attr(0640,apache,apache) %{_sysconfdir}/%{name}/RT_*.pm

%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}

%dir %{_datadir}/%{name}
%{RT_WWWDIR}
%{RT_LEXDIR}
%{RT_FONTSDIR}
%{RT_STATICDIR}

%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf

%dir %{RT_CACHEDIR}
%attr(0770,apache,apache) %{RT_CACHEDIR}/mason_data
%attr(0770,apache,apache) %{RT_CACHEDIR}/session_data

#----------------------------------------------------------------------------

%package mailgate
Summary:	rt's mailgate utility
Group:		System/Servers
# rpm doesn't catch these:
Requires:	perl(Pod::Usage)
Requires:	perl(HTML::TreeBuilder)

%description mailgate
rt's mailgate utility.

%files mailgate
%{_bindir}/rt-mailgate
%{_mandir}/man1/rt-mailgate*

#----------------------------------------------------------------------------

%if %{with devel_mode}
%package tests
Summary:	Test suite for package rt
Requires:	%{name} = %{version}-%{release}
Requires(postun): %{__rm}
Requires:	/usr/bin/prove
Requires:	perl(RT::Test)
# rpm doesn't catch these:
Requires:	perl(DBD::SQLite)
Requires:       perl(Encode::HanExtra)
Requires:	perl(GnuPG::Interface)
# Bug: The testsuite unconditionally depends upon perl(GraphViz)
Requires:	perl(GraphViz)
Requires:	perl(Net::LDAP::Server::Test)
Requires:	perl(Plack::Handler::Apache2)
Requires:	perl(Set::Tiny)
Requires:	perl(String::ShellQuote)
Requires:	perl(Test::Deep)
Requires:	perl(Test::Expect)
Requires:	perl(Test::MockTime)
Requires:	perl(Test::Warn)


%description tests
%{summary}

%files tests
%dir %{_libexecdir}/perl5-tests
%{_libexecdir}/perl5-tests/%{name}
# Doesn't work outside of the source tree
%exclude %{_libexecdir}/perl5-tests/%{name}/t/pod.t
# Required by t/shredder/*t
%{_sysconfdir}/%{name}/*.SQLite

# Running the tests leaves stray files
# remove everything by brute force.
%postun tests
if [ $1 -eq 0 ]; then
  %{__rm} -rf %{_libexecdir}/perl5-tests/%{name}
fi

#----------------------------------------------------------------------------

%package -n perl-RT-Test
Summary: rt's test utility module
Requires:	rt = %{version}-%{release}
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

# rpm doesn't catch these:
Requires:	perl(Test::WWW::Mechanize::PSGI)
Requires:	perl(Mojo::DOM)

%description -n perl-RT-Test
%{summary}

%files -n perl-RT-Test
%license COPYING
%dir %{RT_LIBDIR}/RT
%{RT_LIBDIR}/RT/Test*

%endif
#----------------------------------------------------------------------------

%prep
%setup -q

sed -e 's,@RT_CACHEDIR@,%{RT_CACHEDIR},' %{SOURCE3} \
  > README.fedora
sed -e 's,@RT_LOGDIR@,%{RT_LOGDIR},' %{SOURCE4} \
  > rt.logrotate

# remove auto*generated files
find -name '*.in' | \
while read a; do b=$(echo "$a" | sed -e 's,\.in$,,'); rm "$b"; done

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%if "%{version}" >= "5.0.0"
%patch5 -p1
%endif

# Propagate rpm's directories to config.layout
cat << \EOF >> config.layout

#   Fedora directory layout.
<Layout Fedora>
  bindir:		%{RT_BINDIR}
  sbindir:		%{RT_SBINDIR}
  sysconfdir:		%{_sysconfdir}/%{name}
  libdir:		%{RT_LIBDIR}
  manualdir:		%{_docdir}/%{name}-%{version}/docs
  lexdir:		%{RT_LEXDIR}
  localstatedir:	%{RT_LOCALSTATEDIR}
  htmldir:		%{RT_WWWDIR}
  fontdir:		%{RT_FONTSDIR}
  staticdir:		%{RT_STATICDIR}
  logfiledir:		%{RT_LOGDIR}
  masonstatedir:	%{RT_CACHEDIR}/mason_data
  sessionstatedir:	%{RT_CACHEDIR}/session_data
  customdir:		%{_prefix}/local/lib/%{name}
  custometcdir:		%{_prefix}/local/etc/%{name}
  customhtmldir:	${customdir}/html
  customlexdir:		${customdir}/po
  customlibdir:		${customdir}/lib
</Layout>
EOF

# Comment out the Makefile trying to change groups/owners
# Fix DESTDIR support
sed -i \
    -e 's,	chgrp,	: chrgp,g' \
    -e 's,	chown,	: chown,g' \
    -e 's,$(DESTDIR)/,$(DESTDIR),g' \
    -e 's,-o $(BIN_OWNER) -g $(RTGROUP),,g' \
Makefile.in

# Install upgrade/ into %%{_datadir}/%%{name}/upgrade
sed -i -e 's,$(RT_ETC_PATH)/upgrade,%{_datadir}/%{name}/upgrade,g' Makefile.in

%build
%configure \
--with-web-user=apache --with-web-group=apache \
--with-db-type=%{?with_mysql:mysql}%{?with_pg:Pg} \
--enable-layout=Fedora \
--with-web-handler=modperl2 \
--libdir=%{RT_LIBDIR}

%make

# Explicitly check for devel-mode deps
%{?with_devel_mode:%{__perl} ./sbin/rt-test-dependencies --verbose --with-%{?with_mysql:mysql}%{?with_pg:pg} --with-modperl2 --with-dev}

# Generate man-pages
for file in \
bin/rt \
bin/rt-crontool \
bin/rt-mailgate \
sbin/rt-attributes-viewer \
sbin/rt-clean-sessions \
sbin/rt-dump-metadata \
sbin/rt-email-dashboards \
sbin/rt-email-digest \
sbin/rt-email-group-admin \
sbin/rt-externalize-attachments \
sbin/rt-fulltext-indexer \
sbin/rt-importer \
sbin/rt-preferences-viewer \
sbin/rt-server \
sbin/rt-server.fcgi \
sbin/rt-session-viewer \
sbin/rt-setup-database \
sbin/rt-setup-fulltext-index \
sbin/rt-serializer \
sbin/rt-shredder \
sbin/rt-validate-aliases \
sbin/rt-validator \
sbin/standalone_httpd \
; do
/usr/bin/pod2man $file > $file.1
done

%install
%makeinstall_std

# Work-around to regression in rpm >= 4.12.90:
# Can't mix %%doc with directly installed docs, anymore.
# Need to install all files directly.
install -m 644 README README.fedora %{buildroot}%{_docdir}/%{name}-%{version}

# We don't want CPAN
rm -f %{buildroot}%{_sbindir}/rt-test-dependencies

# Install apache configuration
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
sed -e 's,@RT_WWWDIR@,%{RT_WWWDIR},g' \
  -e 's,@RT_SBINDIR@,%{RT_SBINDIR},g' \
  -e 's,@RT_BINDIR@,%{RT_BINDIR},g' \
  %{SOURCE2} > %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf

mkdir -p %{buildroot}%{_mandir}/man1
for file in bin/*.1 sbin/*.1; do
install -m 0644 $file %{buildroot}%{_mandir}/man1
done

# missed by "make install"
install -d -m755 %{buildroot}%{RT_LOGDIR}
# missed by "make install"
install -d -m755 %{buildroot}%{RT_LOCALSTATEDIR}

# install log rotation stuff
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 rt.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# Symlink, %%{_sysconfdir}/%%{name}/upgrade is hard-coded at various places
ln -s %{_datadir}/%{name}/upgrade %{buildroot}%{_sysconfdir}/%{name}/upgrade

install -d -m755 %{buildroot}%{RT_FONTSDIR}
ln -s /usr/share/fonts/TTF/droid/DroidSans.ttf %{buildroot}%{RT_FONTSDIR}/DroidSans.ttf
ln -s /usr/share/fonts/TTF/droid/DroidSansFallback.ttf %{buildroot}%{RT_FONTSDIR}/DroidSansFallback.ttf
install -d -m755 %{buildroot}%{_libexecdir}/perl5-tests/%{name}
cp -R t %{buildroot}%{_libexecdir}/perl5-tests/%{name}

# Uninstalled stuff the testsuite accesses
install -d -m755 %{buildroot}%{_libexecdir}/perl5-tests/%{name}/devel
cp -R devel/tools %{buildroot}%{_libexecdir}/perl5-tests/%{name}/devel
cp -R devel/docs %{buildroot}%{_libexecdir}/perl5-tests/%{name}/devel
# Some parts of the testsuite want relative paths
cp %{SOURCE1} %{buildroot}%{_libexecdir}/perl5-tests/%{name}
install -d -m755 %{buildroot}%{_libexecdir}/perl5-tests/%{name}/share
ln -s %{RT_WWWDIR} %{buildroot}%{_libexecdir}/perl5-tests/%{name}/share/html
ln -s %{RT_STATICDIR} %{buildroot}%{_libexecdir}/perl5-tests/%{name}/share/static
ln -s %{_bindir} %{buildroot}%{_libexecdir}/perl5-tests/%{name}/bin
ln -s %{_sbindir} %{buildroot}%{_libexecdir}/perl5-tests/%{name}/sbin
ln -s %{_sysconfdir}/%{name} %{buildroot}%{_libexecdir}/perl5-tests/%{name}/etc
ln -s %{RT_LIBDIR} %{buildroot}%{_libexecdir}/perl5-tests/%{name}/lib
ln -s %{_docdir}/%{name}-%{version}/docs %{buildroot}%{_libexecdir}/perl5-tests/%{name}/docs


# These files should not be installed
rm %{buildroot}%{RT_LEXDIR}/*.pot
rm %{buildroot}%{RT_LIBDIR}/RT/Generated.pm.in

# Fix permissions
find %{buildroot}%{RT_WWWDIR} \
  -type f -exec chmod a-x {} \;

# Silence rpmlint
chmod a+x \
%{buildroot}%{_datadir}/%{name}/upgrade/3.8-ical-extension \
%{buildroot}%{_datadir}/%{name}/upgrade/4.0-customfield-checkbox-extension \
%{buildroot}%{_datadir}/%{name}/upgrade/generate-rtaddressregexp \
%{buildroot}%{_datadir}/%{name}/upgrade/sanity-check-stylesheets \
%{buildroot}%{_datadir}/%{name}/upgrade/shrink-cgm-table \
%{buildroot}%{_datadir}/%{name}/upgrade/shrink-transactions-table \
%{buildroot}%{_datadir}/%{name}/upgrade/switch-templates-to \
%{buildroot}%{_datadir}/%{name}/upgrade/time-worked-history \
%{buildroot}%{_datadir}/%{name}/upgrade/upgrade-articles \
%{buildroot}%{_datadir}/%{name}/upgrade/upgrade-mysql-schema.pl \
%{buildroot}%{_datadir}/%{name}/upgrade/vulnerable-passwords

%check
# The tests don't work in buildroots, they
# - require to be run as root
# - require an operational rt system
%{?with_runtests:make test}

%{!?with_runtests:/usr/bin/prove -l t/pod.t}

%postun
if [ $1 -eq 0 ]; then
  %{__rm} -rf %{RT_CACHEDIR}
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8417 |21cr|R-tables-0.7.92-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tables
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.7.92
Release:          3
Summary:          Formula-Driven Table Generation
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-Hmisc 
Requires:         R-stats R-utils 
Recommends:       R-knitr 
BuildRequires:    R-devel Rmath-devel R-Hmisc R-gridExtra
BuildRequires:    R-stats R-utils 
#BuildRequires:   R-knitr 
%description
Computes and displays complex tables of summary statistics.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8418 |21cr|rtaudio-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 6
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Real-time audio library
Name:		rtaudio
Version:	5.2.0
Release:	1
License:	MIT
Group:		Sound
Url:		https://www.music.mcgill.ca/~gary/rtaudio/
Source0:	http://www.music.mcgill.ca/~gary/%{name}/release/%{name}-%{version}.tar.gz
Patch0:		rtaudio-5.2.0-fix-pkgconfig-file.patch
BuildRequires:	cmake >= 3.10
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse-simple)

%description
A set of C++ classes that provide a common API for real-time audio input /
output for Linux (native ALSA, JACK, PulseAudio and OSS).
It was designed with the following objectives:
- object-oriented C++ design;
- simple, common API across all supported platforms;
- only one source and one header file for easy inclusion in programming
  projects;
- allow simultaneous multi-api support;
- support dynamic connection of devices;
- provide extensive audio device parameter control;
- allow audio device capability probing;
- automatic internal conversion for data format, channel number compensation,
  (de)interleaving, and byte-swapping.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for %{name}
Group:		Development/C++

%description -n %{libname}
A set of C++ classes that provide a common API for realtime audio input / 
output for Linux (native ALSA, JACK, PulseAudio and OSS).
This package contains the main %{name} library.

%files -n %{libname}
%doc ChangeLog README.md
%{_libdir}/librtaudio.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	  rtaudio-devel = %{EVRD}

%description -n %{devname}
A set of C++ classes that provide a common API for realtime audio input / 
output for Linux (native ALSA, JACK, PulseAudio and OSS).
This package contains the development files for %{name}.

%files -n %{devname}
%doc doc/html/
%{_includedir}/%{name}/*.h
%{_libdir}/librtaudio.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/%{name}/*.cmake

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%cmake
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8419 |21cr|R-tcltk2-1.2.11-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tcltk2
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.2.11
Release:          5
Summary:          Tcl/Tk Additions
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/tcltk2_1.2-11.tar.gz
Source1:	  %{name}.rpmlintrc
Requires:         R-tcltk 
Requires:         R-utils 
BuildRequires:    R-devel Rmath-devel  R-tcltk
BuildRequires:    R-utils 

%description
A series of additional Tcl commands and Tk widgets with style and various
functions (under Windows: DDE exchange, access to the registry and icon
manipulation) to supplement the tcltk package

%prep
%setup -q -c -n %{packname}
perl -pi -e 's|/bin/tclsh8.3|%{_bindir}/tclsh|;'			\
    tcltk2.Rcheck/tcltk2/tklibs/ctext3.2/function_finder.tcl		\
    tcltk2/inst/tklibs/ctext3.2/function_finder.tcl

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/Fonts.txt
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/gui
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/po
%{rlibdir}/%{packname}/tklibs
%{rlibdir}/tcltk2/test.R

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8420 |21cr|R-TeachingDemos-2.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  TeachingDemos
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          2.9
Release:          5
Summary:          Demonstrations for teaching and learning
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/TeachingDemos_2.9.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-tkrplot R-lattice R-MASS R-rgl R-sgeostat R-mapproj R-tcltk R-tcltk2 R-EBImage R-png 
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-tkrplot R-lattice R-MASS R-rgl R-sgeostat R-mapproj R-tcltk R-tcltk2 R-EBImage R-png 

%description
This package is a set of demonstration functions that can be used in a
classroom to demonstrate statistical concepts, or on your own to better
understand the concepts or the programming.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8421 |21cr|R-tensor-1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tensor
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.5
Release:          5
Summary:          Tensor product of arrays
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

BuildRequires:    R-devel Rmath-devel texlive


%description
The tensor product of two arrays is notionally an outer product of the
arrays collapsed in specific extents by summing along the appropriate

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8422 |21cr|R-testit-0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  testit
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.4
Release:          5
Summary:          A simple package for testing R packages
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

BuildRequires:    R-devel Rmath-devel texlive-latex

%description
This package provides two convenience functions assert() and test_pkg() to
facilitate testing R packages.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8423 |21cr|R-testthat-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  testthat
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.2
Release:          6
Summary:          Testthat code.  Tools to make testing fun :)
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-core
Requires:         R-digest R-stringr >= 0.4 R-evaluate >= 0.4.3 R-methods
Requires:         R-crayon R-praise R-magrittr R-R6
Recommends:         R-devtools R-covr
BuildRequires:    R-devel Rmath-devel  
BuildRequires:    R-digest R-stringr >= 0.4 R-evaluate >= 0.4.3 R-methods 
BuildRequires:         R-devtools R-covr
BuildRequires:    R-crayon R-praise R-magrittr R-R6


%description
A testing package specifically tailored for R that's fun, flexible and
easy to set up.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/resources

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8424 |21cr|R-TH.data-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  TH.data
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.0.3
Release:          5
Summary:          TH's Data Archive
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/TH.data_1.0-3.tar.gz
BuildArch:        noarch
Requires:         R-core

BuildRequires:    R-devel Rmath-devel texinfo texlive


%description
Contains data sets used in other packages I maintain.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/rda

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8425 |21cr|R-tibble-1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tibble
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.2
Release:          3
Summary:          Simple Data Frames
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz


Requires:         R-methods R-assertthat R-utils R-lazyeval R-Rcpp 
#Requires:         R-testthat R-withr R-knitr R-rmarkdown R-nycflights13 R-microbenchmark 
BuildRequires:    R-devel Rmath-devel 
BuildRequires:    R-methods R-assertthat R-utils R-lazyeval R-Rcpp 
#BuildRequires:   R-testthat R-withr R-knitr R-rmarkdown R-nycflights13 R-microbenchmark 

%description
Provides a 'tbl_df' class that offers better checking and printing
capabilities than traditional data frames.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8426 |21cr|R-tiff-0.1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tiff
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.1.5
Release:          5
Summary:          Read and write TIFF images
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.1-5.tar.gz

BuildRequires:    tiff-devel
BuildRequires:    R-devel Rmath-devel texlive


%description
This package provides an easy and simple way to read, write and display
bitmap images stored in the TIFF format. It can read and write both files
and in-memory raw vectors.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/img
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8427 |21cr|R-tikzDevice-0.8.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tikzDevice
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.8.1
Release:          3
Summary:          A Device for R Graphics Output in PGF/TikZ Format
Group:            Sciences/Mathematics
License:          GPL (>= 3)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/tikzDevice_%{version}.tar.gz
Requires:         R-filehash 
Requires:         R-testthat R-evaluate R-stringr R-ggplot2 R-maps 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-filehash texlive-preview
BuildRequires:    R-testthat R-evaluate R-stringr R-ggplot2 R-maps 

%description
The TikZ device enables LaTeX-ready output from R graphics functions. This
is done by producing code that can be understood by the TikZ graphics
language. All text in a graphic output with the tikz() function will can
be typeset by LaTeX and therefore will match whatever fonts are currently
used in the document. This also means that LaTeX mathematics can be
typeset directly into labels and annotations!  Graphics produced this way
can also be annotated with custom TikZ commands.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Fails due to texlive issues
# %check
# %{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8428 |21cr|R-timeDate-3012.100-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  timeDate
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3012.100
Release:          3
Summary:          Rmetrics - Chronological and Calendarical Objects
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/timeDate_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-graphics R-utils R-stats R-methods 
Requires:         R-RUnit 
BuildRequires:    R-devel Rmath-devel  R-graphics R-utils R-stats R-methods
BuildRequires:    R-RUnit 

%description
Environment for teaching "Financial Engineering and Computational Finance"

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/COPYRIGHT.html
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/unitTests



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8429 |21cr|R-timeDate-3012.100-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  timeDate
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3012.100
Release:          4
Summary:          Rmetrics - Chronological and Calendarical Objects
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/timeDate_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-graphics R-utils R-stats R-methods 
Requires:         R-RUnit 
BuildRequires:    R-devel Rmath-devel  R-graphics R-utils R-stats R-methods
BuildRequires:    R-RUnit 

%description
Environment for teaching "Financial Engineering and Computational Finance"

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/COPYRIGHT.html
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8430 |21cr|R-timereg-1.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  timereg
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.9.0
Release:          3
Summary:          Flexible Regression Models for Survival Data
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-survival 
Requires:         R-lava R-numDeriv R-stats R-graphics R-grDevices R-utils 

BuildRequires:    R-devel Rmath-devel R-survival lapack-devel
BuildRequires:    R-lava R-numDeriv R-stats R-graphics R-grDevices R-utils 

%description
Programs for Martinussen and Scheike (2006), `Dynamic Regression Models
for Survival Data', Springer Verlag.  Plus more recent developments.
Additive survival model, semiparametric proportional odds model, fast
cumulative residuals, excess risk models and more. Flexible competing
risks regression including GOF-tests. Two-stage frailty modelling. PLS for
the additive risk model. Lasso in the 'ahaz' package.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8431 |21cr|R-timeSeries-3012.99-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap
%global packname  timeSeries
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3012.99
Release:          3
Summary:          Rmetrics - Financial Time Series Objects
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/timeSeries_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core R-graphics R-grDevices R-methods R-stats R-utils
Requires:         R-timeDate R-RUnit
%if %{without bootstrap}
Requires:         R-robustbase
%endif
BuildRequires:    R-devel Rmath-devel  R-graphics
BuildRequires:    R-grDevices R-methods R-stats R-utils R-timeDate R-RUnit
%if %{without bootstrap}
BuildRequires:    R-robustbase
%endif

%description
Environment for teaching "Financial Engineering and Computational Finance"

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%if %{without bootstrap}
#%check
#%{_bindir}/R CMD check %{packname}
#%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/README
%doc %{rlibdir}/%{packname}/THANKS
%{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/COPYRIGHTS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/*Tests
%{rlibdir}/%{packname}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8432 |21cr|R-timeSeries-3012.99-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  timeSeries
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          3012.99
Release:          4
Summary:          Rmetrics - Financial Time Series Objects
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/timeSeries_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core R-graphics R-grDevices R-methods R-stats R-utils
Requires:         R-timeDate R-RUnit
%if %{without bootstrap}
Requires:         R-robustbase
%endif
BuildRequires:    R-devel Rmath-devel  R-graphics
BuildRequires:    R-grDevices R-methods R-stats R-utils R-timeDate R-RUnit
%if %{without bootstrap}
BuildRequires:    R-robustbase
%endif

%description
Environment for teaching "Financial Engineering and Computational Finance"

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#if %%{without bootstrap}
#check
#{_bindir}/R CMD check %%{packname}
#endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/README
%doc %{rlibdir}/%{packname}/THANKS
%{rlibdir}/%{packname}/COPYING
%{rlibdir}/%{packname}/COPYRIGHTS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/*Tests
%{rlibdir}/%{packname}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8433 |21cr|rtirq-20120505-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rtirq
Summary:	Realtime IRQ thread system tunning
Version:	20120505
Release:	4
License:	GPLv2
URL:		http://www.rncbc.org/jack/#rtirq
Group:		System/Configuration/Boot and Init
Source0:	%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires:	/bin/sh,util-linux,sysvinit-tools
Requires(post,preun):	/sbin/chkconfig

%description
Startup scripts for tunning the realtime scheduling policy and priority
of relevant IRQ service threads, featured for a realtime-preempt enabled
kernel configuration. 

%prep
%setup -q

%build

%install
install -vD rtirq.sh   -m 0755 %{buildroot}/etc/init.d/rtirq
install -vD rtirq.conf -m 0644 %{buildroot}/etc/sysconfig/rtirq

%post
# Only run on install, not upgrade.
if [ "$1" = "1" ]; then
    chkconfig --add rtirq
    chkconfig rtirq on
fi

%preun
# Only run if this is the last instance to be removed.
if [ "$1" = "0" ]; then
    chkconfig rtirq off
    chkconfig --del rtirq
fi

%files
%config(noreplace) /etc/sysconfig/rtirq
/etc/init.d/rtirq

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8434 |21cr|R-tis-1.30-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  tis
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.30
Release:          4
Summary:          Time Indexes and Time Indexed Series
Group:            Sciences/Mathematics
License:          Unlimited
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
BuildRequires:    R-devel Rmath-devel  
Source0:          http://cran.r-project.org/src/contrib/tis_%{version}.tar.gz

%description
Functions and S3 classes for time indexes and time indexed series, which
are compatible with FAME frequencies.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/COPYRIGHTS
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8435 |21cr|R-tkrplot-0.0_23-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tkrplot
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.0_23
Release:          6
Summary:          TK Rplot
Group:            Sciences/Mathematics
License:          GPL
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.0-23.tar.gz
Requires:         R-grDevices R-tcltk 
BuildRequires:    R-devel Rmath-devel texlive R-grDevices R-tcltk

%description
simple mechanism for placing R graphics in a Tk widget

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8436 |21cr|R-tkWidgets-1.42.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tkWidgets
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.42.0
Release:          5
Summary:          R based tk widgets
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz
Requires:         R-methods R-widgetTools R-DynDoc R-tools 
Requires:         R-Biobase R-hgu95av2.db R-hgu95av2cdf R-hgu95av2probe
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods R-widgetTools R-DynDoc R-tools
BuildRequires:    R-Biobase R-hgu95av2.db R-hgu95av2cdf R-hgu95av2probe

%description
Widgets to provide user interfaces. tcltk should have been installed for
the widgets to run.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/testfiles

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8437 |21cr|rtl8188eu-4.1.8-0.775137f.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Some device not work with kernel r8188eu driver
# try to use this driver.

# Revision from the upstream git repository.
%define commit 775137f273ed75bd092b281470accb827a3e1355
%define git_rev 775137f

# The real release number (increment it before rebuild).
%define real_rel 1

%define _enable_debug_packages  %{nil}
%define debug_package       %{nil}

Name:		rtl8188eu
Version:	4.1.8
Release:	0.%{git_rev}.%{real_rel}
Summary:	The standalone RTL8188EU driver
Group:		System/Kernel and hardware
URL:		https://github.com/lwfinger/rtl8188eu
Source0:	https://github.com/lwfinger/rtl8188eu/archive/%{commit}.zip?/%{name}-%{git_rev}.zip
Source1:	Kbuild
Source2:	rtl8188eu.conf
License:	GPLv2

%description
This package contains the driver for Realtek 8188 802.11n USB wireless
adapters (RTL8188EU).

#---------------------------------------------------------------------
%package -n dkms-%{name}
Summary:	The standalone RTL8188EU driver
Group:		System/Kernel and hardware
Requires(post):		dkms
Requires(preun):	dkms

%description -n dkms-%{name}
This package contains the driver for Realtek 8188 802.11n USB wireless
adapters (RTL8188EU).

%files -n dkms-%{name}
%defattr(0644,root,root,0755)
%dir %{_usr}/src/%{name}-%{version}-%{real_rel}
%{_usr}/src/%{name}-%{version}-%{real_rel}/*
%config(noreplace) /etc/modprobe.d/rtl8188eu.conf

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{real_rel}
/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{real_rel}
/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{real_rel}

%preun -n dkms-%{name}
# rmmod can fail
/sbin/rmmod %{name} >/dev/null 2>&1
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{real_rel} --all || :

#---------------------------------------------------------------------

%prep
%setup -q -T -c -a0 %{name}

# Kbuild file is a stripped version of the original Makefile. This is to 
# make sure the driver is build with the same compiler settings as the rest
# of the kernel - just in case.
cp -p %{SOURCE1} .

%build

%install

# sources to be used by DKMS
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{real_rel}
cp -R %{name}-%{commit}/core/ %{name}-%{commit}/hal/ %{name}-%{commit}/include/ %{name}-%{commit}/os_dep/ \
  %{buildroot}%{_usr}/src/%{name}-%{version}-%{real_rel}/
cp Kbuild %{buildroot}%{_usr}/src/%{name}-%{version}-%{real_rel}/

# Blacklist the corresponding drivers that might be provided by the kernel
# packages. This is needed to avoid conflicts while still keeping the
# original drivers available, just in case.
mkdir -p %{buildroot}/etc/modprobe.d/
install -m644 %{SOURCE2} %{buildroot}/etc/modprobe.d

cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{real_rel}/dkms.conf << EOF
MAKE="make -C \$kernel_source_dir M=\\\$(pwd)"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{real_rel}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{name}
AUTOINSTALL=yes
EOF



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8438 |21cr|rtl8192ee-20220203-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev 951b543019883cf08659595b71234ee15fccccf0
%define gitdate 20220203
%define kname 951b543

%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Driver for Realtek RTL8192EE
Name:		rtl8192ee
Version:	%{gitdate}
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/lwfinger/rtl8192ee
Source0:	https://github.com/lwfinger/rtl8192ee/archive/%{gitrev}.tar.gz

%description
This package contains the driver for the adapters with
the chip RTL8192EE by Realtek.

#----------------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	Driver for Realtek RTL8192EE
Group:		System/Kernel and hardware
Requires(post,preun):	dkms

%description -n dkms-%{name}
This package contains the driver for the adapters with
the chip RTL8192EE by Realtek.

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n dkms-%{name}
%doc README.md
%license LICENSE
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{gitrev}

%build

%install
# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}

# The driver has its own dkms.conf but we replace it with ours to
# use the appropriate versioning scheme, to avoid rebuilding initrd, etc.
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
BUILT_MODULE_NAME=%{kname}
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
AUTOINSTALL=yes
MAKE="'make' all KVER=\${kernelver}"
CLEAN="make clean"
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8439 |21cr|rtl8192eu-0-0.gitdd32ee.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit dd32eeed5a677616a4570a1fbe0b891f6c9ef450
%define commit_short %(echo %{commit} | head -c6)

%define kname 8192eu

%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Driver for Realtek RTL8192EU Wireless LAN 802.11bgn 
Name:		rtl8192eu
Version:	0
Release:	0.git%{commit_short}.1
Epoch:		1
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/clnhub/rtl8192eu-linux
Source0:	https://github.com/clnhub/rtl8192eu-linux/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

%description
This package contains the driver for the USB 2.0 WiFi adapters with
the chip RTL8192EU by Realtek.

#----------------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	Driver for Realtek RTL8192EU Wireless LAN 802.11bgn
Group:		System/Kernel and hardware
Requires(post,preun):	dkms

%description -n dkms-%{name}
This package contains the driver for the USB 2.0 WiFi adapters with
the chip RTL8192EU by Realtek.

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-linux-%{commit}

%build

%install
# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}

# The driver has its own dkms.conf but we replace it with ours to
# use the appropriate versioning scheme, to avoid rebuilding initrd, etc.
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
BUILT_MODULE_NAME=%{kname}
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
AUTOINSTALL=yes
MAKE="'make' all KVER=\${kernelver}"
CLEAN="make clean"
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8440 |21cr|rtl8723de-5-2.gitb84e8a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# bump Release, not Version, when updating
%define commit b84e8acd571224d5849d783e712ce0e54c625ad2
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8723de

%define _enable_debug_packages	%{nil}
%define debug_package	%{nil}

Summary:	Standalone RTL8723DE driver
Name:		rtl8723de
# "Realtek RTL8723DE module for Linux kernel version 5" -> Version 5
Version:	5
Release:	2.git%{commit_short}
Epoch:		3
Source0:	https://github.com/smlinux/rtl8723de/archive/%{commit}.tar.gz?/rtl8723de-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
# https://github.com/smlinux/rtl8723de/pull/67
Patch0001:	0001-Build-for-the-target-kernel.patch
Patch0002:	0001-Min-compat-with-both-4.15-and-5.4.patch
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/smlinux/rtl8723de/

%description
This package contains the driver for the USB WiFi adapters with
the chip RTL8723DE by Realtek.

%package -n dkms-%{name}
Summary:	Standalone RTL8723DE driver
Group:		System/Kernel and hardware
Requires(post,preun):	dkms

%description -n dkms-%{name}
This package contains the driver for the USB WiFi adapters with
the chip RTL8723DE by Realtek.

%prep
%setup -qn %{name}-%{commit}
%apply_patches

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

# The driver has its own dkms.conf but we replace it with ours to
# use the appropriate versioning scheme, to avoid rebuilding initrd, etc.
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
CLEAN="'make' clean"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF


%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8441 |21cr|rtl8812au-5.6-3.git548497
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# bump Release, not Version, when updating
%define commit 548497065967aec00dd7b804678222bd29d658b6
%define commit_short %(echo %{commit} | head -c 6)

%define kname 88XXau

%define _enable_debug_packages	%{nil}
%define debug_package	%{nil}

Summary:	The standalone RTL8812AU driver
Name:		rtl8812au
# git branch 5.6.x -> Version 5.6
Version:	5.6
Release:	3.git%{commit_short}
Epoch:		3
Source0:	https://github.com/aircrack-ng/rtl8812au/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/aircrack-ng/rtl8812au

%description
This package contains the driver for Realtek 8812A 802.11n USB wireless
adapters.

%package -n dkms-%{name}
Summary:	The standalone RTL8812AU driver
Group:		System/Kernel and hardware
Requires(post,preun):	dkms

%description -n dkms-%{name}
This package contains the driver for Realtek 8812A 802.11n USB wireless
adapters.

%prep
%setup -qn %{name}-%{commit}
%apply_patches

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF


%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8442 |21cr|rtl8812au-5.6.git548497-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# bump Release, not Version, when updating
%define commit 548497065967aec00dd7b804678222bd29d658b6
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8812au

%define _enable_debug_packages	%{nil}
%define debug_package	%{nil}

Summary:	The standalone RTL8812AU driver
Name:		rtl8812au
# git branch 5.6.x -> Version 5.6
Version:	5.6.git%{commit_short}
Release:	2
Epoch:		2
Source0:	https://github.com/aircrack-ng/rtl8812au/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/aircrack-ng/rtl8812au

%description
This package contains the driver for Realtek 8812A 802.11n USB wireless
adapters.

%package -n dkms-%{name}
Summary:	The standalone RTL8812AU driver
Group:		System/Kernel and hardware
Requires(post,preun):	dkms

%description -n dkms-%{name}
This package contains the driver for Realtek 8812A 802.11n USB wireless
adapters.

%prep
%setup -qn %{name}-%{commit}
%apply_patches

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF


%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8443 |21cr|rtl8821ce-5-2.gitdf0c98
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit df0c98c00d27508381eb280d568602bd85cd8f69
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8821ce

%define _enable_debug_packages	%{nil}
%define debug_package	%{nil}

Summary:	Standalone RTL8821CE driver
Name:		rtl8821ce
# compatible with kernel 5.x -> Version 5
Version:	5
Release:	2.git%{commit_short}
Epoch:		3
Source0:	https://github.com/tomaspinho/rtl8821ce/archive/%{commit}.tar.gz?/rtl8821ce-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/tomaspinho/rtl8821ce

%description
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%package -n kernel-source-%{name}
Summary:	Source code of RTL8821CE kernel driver
Group:		System/Kernel and hardware
# source code moved from dkms- subpackage
Obsoletes:	dkms-%{name} < 3:5-1
Conflicts:	dkms-%{name} < 3:5-1

%description -n kernel-source-%{name}
Source code of the Linux kernel driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%package -n dkms-%{name}
Summary:	Standalone RTL8821CE driver
Group:		System/Kernel and hardware
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):			kernel-source-%{name} = %{EVRD}
Requires(post,preun):	dkms

%description -n dkms-%{name}
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%prep
%setup -qn %{name}-%{commit}
%apply_patches

%build

%install

# Debian-specific stuff is not needed
rm -rf debian

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

# The driver has its own dkms.conf but we replace it with ours to
# use the appropriate versioning scheme, to avoid rebuilding initrd, etc.
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
CLEAN="make clean"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF


%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8444 |21cr|rtl-sdr-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:             rtl-sdr
URL:              http://sdr.osmocom.org/trac/wiki/rtl-sdr
Version:          0.6.0
Release:          1
License:          GPLv2+
Group:            Communications
Summary:          SDR utilities for Realtek RTL2832 based DVB-T dongles
Source0:          https://github.com/osmocom/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:    cmake
BuildRequires:    pkgconfig(libusb)
Requires(pre):    shadow-utils

%description
This package can turn your RTL2832 based DVB-T dongle into an SDR receiver.

%package -n %{libname}
Summary:          Library files for rtl-sdr
Group:            System/Libraries
Requires:         %{name} = %{version}-%{release}

%description -n %{libname}
Library files for rtl-sdr.

%package -n %{devname}
Summary:          Development files for rtl-sdr
Group:            System/Libraries
Requires:         %{libname} = %{version}-%{release}
Provides:         %{name}-devel = %{version}-%{release}

%description -n %{devname}
Development files for rtl-sdr.

%prep
%autosetup -p1

rm -rf src/getopt

%build
%cmake -DDETACH_KERNEL_DRIVER=ON
%make_build

%install
%make_install -C build

# remove static libs
rm -f %{buildroot}%{_libdir}/*.a

# Fix udev rules and allow access only to users in rtlsdr group
sed -i 's/MODE:="0666"/MODE:="0660", ENV{ID_SOFTWARE_RADIO}="1"/' rtl-sdr.rules
install -Dpm 644 rtl-sdr.rules %{buildroot}%{_udevrulesdir}/10-rtl-sdr.rules

# Fix Version string in librtlsdr.pc
sed -i '/Version/c Version: %{version}' %{buildroot}%{_libdir}/pkgconfig/librtlsdr.pc

%files
%doc AUTHORS
%{_bindir}/*
%{_udevrulesdir}/10-rtl-sdr.rules

%files -n %{libname}
%{_libdir}/*.so.%{major}{,.*}

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/librtlsdr.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8445 |21cr|rtlwifi_new-5-4.git0a751e
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Using the "extended" branch!
# https://github.com/lwfinger/rtlwifi_new/tree/extended
# rtl8723de is only in "extended"
%define commit 0a751e30e3aed5e6e0f72123031012abda91ca1a
%define commit_short %(echo %{commit} | head -c 6)

%define _enable_debug_packages	%{nil}
%define debug_package	%{nil}

Summary:	Collection of drivers for WiFi adapters by Realtek
Name:		rtlwifi_new
Version:	5
Release:	4.git%{commit_short}
Epoch:		3
Source0:	https://github.com/lwfinger/rtlwifi_new/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	rtlwifi_new.conf
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/lwfinger/rtlwifi_new/tree/extended
BuildRequires:	findutils
BuildRequires:	grep

# Rename the modules to avoid conflicts with the modules provided by the
# kernel packages.
Patch1:		001-Rename-modules-to-name_new.patch

%description
This package contains the following drivers for the WiFi adapters by Realtek:
rtl8192ce, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be,
rtl8723de and rtl8821ae as well as the common modules they need. The respective
modules provided by the kernel packages will be blacklisted to avoid
conflicts.

%package -n dkms-%{name}
Summary:	Collection of drivers for WiFi adapters by Realtek
Group:		System/Kernel and hardware
Requires(post,preun):		dkms
Requires:	dkms
Requires:	dracut >= 046
# rtl8723 driver from old "rtl8723de" package is reported to be broken:
# https://github.com/smlinux/rtl8723de/issues/66
# Migrate to the one from rtlwifi_new
# smlinux/rtl8723de also has issues with buildability with different kernel versions
Conflicts:	dkms-rtl8723de < %{EVRD}
%rename		dkms-rtl8723de

%description -n dkms-%{name}
This package contains the following drivers for the WiFi adapters by Realtek:
rtl8192ce, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be,
and rtl8821ae as well as the common modules they need. The respective
modules provided by the kernel packages will be blacklisted to avoid
conflicts.


%prep
%setup -qn %{name}-%{commit}
%apply_patches

# Change firmware directory from /rtlwifi/ to /rtlwifi_new/
ls firmware/rtlwifi/ | grep '.bin$' | \
while read -r line ; do
  find . -type f -name '*.c' | xargs sed -i -e "s,rtlwifi/${line},rtlwifi_new/${line},g"
done

%build

%install
# sources to be used by DKMS
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -r * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
# installed to another place
rm -fr %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/firmware
# bundled original drivers from Realtek
rm -fr %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/*.tar.*
# patch artefacts
rm -fr %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/*.*~

# Blacklist the corresponding drivers that might be provided by the kernel
# packages. This is needed to avoid conflicts while still keeping the
# original drivers available, just in case.
mkdir -p %{buildroot}/etc/modprobe.d/
install -m644 %{SOURCE1} %{buildroot}/etc/modprobe.d

mkdir -p %{buildroot}/lib/firmware/rtlwifi_new
install -m644 firmware/rtlwifi/* %{buildroot}/lib/firmware/rtlwifi_new/

cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="make"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
BUILT_MODULE_NAME[0]=rtlwifi_new
BUILT_MODULE_NAME[1]=rtl_pci_new
BUILT_MODULE_NAME[2]=rtl_usb_new
BUILT_MODULE_NAME[3]=btcoexist_new
BUILT_MODULE_LOCATION[3]=btcoexist/
BUILT_MODULE_NAME[4]=rtl8192c-common_new
BUILT_MODULE_LOCATION[4]=rtl8192c/
BUILT_MODULE_NAME[5]=rtl8821ae_new
BUILT_MODULE_LOCATION[5]=rtl8821ae/
BUILT_MODULE_NAME[6]=rtl8192se_new
BUILT_MODULE_LOCATION[6]=rtl8192se/
BUILT_MODULE_NAME[7]=rtl8192de_new
BUILT_MODULE_LOCATION[7]=rtl8192de/
BUILT_MODULE_NAME[8]=rtl8723be_new
BUILT_MODULE_LOCATION[8]=rtl8723be/
BUILT_MODULE_NAME[8]=rtl8723de_new
BUILT_MODULE_LOCATION[8]=rtl8723de/
BUILT_MODULE_NAME[9]=rtl8192ee_new
BUILT_MODULE_LOCATION[9]=rtl8192ee/
BUILT_MODULE_NAME[10]=rtl8192cu_new
BUILT_MODULE_LOCATION[10]=rtl8192cu/
BUILT_MODULE_NAME[11]=rtl8188ee_new
BUILT_MODULE_LOCATION[11]=rtl8188ee/
BUILT_MODULE_NAME[12]=rtl8192ce_new
BUILT_MODULE_LOCATION[12]=rtl8192ce/
BUILT_MODULE_NAME[13]=rtl8723ae_new
BUILT_MODULE_LOCATION[13]=rtl8723ae/
BUILT_MODULE_NAME[14]=rtl8723-common_new
BUILT_MODULE_LOCATION[14]=rtl8723com/
DEST_MODULE_LOCATION[0]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[1]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[2]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[3]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[4]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[5]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[6]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[7]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[8]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[9]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[10]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[11]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[12]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[13]=/kernel/3rdparty/%{name}/
DEST_MODULE_LOCATION[14]=/kernel/3rdparty/%{name}/
AUTOINSTALL=yes
EOF

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || :

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*
%dir /lib/firmware/rtlwifi_new
/lib/firmware/rtlwifi_new/*
%config(noreplace) /etc/modprobe.d/rtlwifi_new.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8446 |21cr|R-tm-0.5.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tm
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.5.10
Release:          5
Summary:          Text Mining Package
Group:            Sciences/Mathematics
License:          GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.5-10.tar.gz


Requires:         R-parallel R-slam 
Requires:         R-filehash R-proxy R-Rgraphviz R-Rpoppler R-SnowballC R-XML 
# Requires:         R-Rcampdf 
BuildRequires:    R-devel Rmath-devel texlive-latex 
BuildRequires:    R-parallel R-slam 
BuildRequires:    R-filehash R-proxy R-Rgraphviz R-Rpoppler R-SnowballC R-XML 
# BuildRequires:    R-Rcampdf 

%description
A framework for text mining applications within R.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS*
%{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/ghostscript
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/stopwords
%{rlibdir}/%{packname}/texts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8447 |21cr|rtmidi-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	6
%define	libname		%mklibname %{name} %{major}
%define	develname	%mklibname %{name} -d

Summary:	C++ library for real time MIDI input/output
Name:		rtmidi
Version:	5.0.0
Release:	1
License:	MIT
Group:		Sound
Url:		https://www.music.mcgill.ca/~gary/rtmidi/index.html
Source0:	https://github.com/thestk/rtmidi/archive/%{name}-%{version}.tar.gz
Patch0:		rtmdi-5.0.0-fix-pkgconfig-file.patch
BuildRequires:	cmake >= 3.10
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)

%description
A set of C++ classes (RtMidiIn, RtMidiOut and API-specific classes) that
provides a common API (Application Programming Interface) for real time MIDI
input/output across ALSA & JACK.

#-----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	C++ library for real time MIDI input/output
Group:		System/Libraries

%description -n	%{libname}
A set of C++ classes (RtMidiIn, RtMidiOut and API-specific classes) that
provides a common API (Application Programming Interface) for real time MIDI
input/output across ALSA & JACK.
This package provides the shared library.

%files -n %{libname}
%doc README.md
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
A set of C++ classes (RtMidiIn, RtMidiOut and API-specific classes) that
provides a common API (Application Programming Interface) for real time MIDI
input/output across ALSA & JACK.
This package provide the files for development with %{name}.

%files -n %{develname}
%doc doc/html/* doc/images/*
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/%{name}/RtMidi*.cmake

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%cmake ..
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8448 |21cr|R-tnet-3.0.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tnet
%global rlibdir  %{_datadir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          3.0.11
Release:          4
Summary:          tnet: Software for Analysis of Weighted, Two-mode, and Longitudinal networks
Group:            Sciences/Mathematics
License:          CC BY-NC 3.0 + file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-igraph R-survival R-magrittr R-pkgconfig

BuildRequires:    R-devel Rmath-devel R-igraph R-survival R-magrittr R-pkgconfig


%description
R package for analyzing weighted, two-mode, and longitudinal networks.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8449 |21cr|rtorrent-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libtorrentver 0.14.0

Summary:	Curses based BitTorrent client
Name:		rtorrent
Version:	0.10.0
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://rakshasa.github.io/rtorrent/
Source0:	https://github.com/rakshasa/rtorrent/releases/download/v%{version}/rtorrent-%{version}.tar.gz
BuildRequires:	autoconf-archive
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libtorrent) >= %{libtorrentver}
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(xmlrpc)
Requires:	libtorrent >= %{libtorrentver}

%description
This is a text mode BitTorrent client with a curses interface based on
libtorrent.

%files
%doc README AUTHORS doc/rtorrent.rc
%{_bindir}/rtorrent

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -fno-strict-aliasing
export CPPFLAGS=-I%{_includedir}/ncursesw
export LIBS="-lpthread -lxmlrpc -lxmlrpc_util"

%configure \
	--with-xmlrpc-c
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8450 |21cr|R-tree-1.0.35-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tree
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.35
Release:          5
Summary:          Classification and regression trees
Group:            Sciences/Mathematics
License:          GPL-2 | GPL-3
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/tree_1.0-35.tar.gz
Requires:         R-grDevices R-graphics R-stats 
Requires:         R-MASS 
BuildRequires:    R-devel Rmath-devel  R-grDevices R-graphics R-stats
BuildRequires:    R-MASS 

%description
Classification and Regression Trees.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
# %{rlibdir}/%{packname}/LICENCE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/po

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8451 |21cr|R-tripack-1.3.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  tripack
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.3.6
Release:          5
Summary:          Triangulation of irregularly spaced data
Group:            Sciences/Mathematics
License:          file LICENSE
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/tripack_1.3-6.tar.gz
BuildRequires:    R-devel Rmath-devel  

%description
A constrained two-dimensional Delaunay triangulation package

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8452 |21cr|R-truncreg-0.2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  truncreg
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2.1
Release:          5
Summary:          Truncated Regression Models
Group:            Sciences/Mathematics
License:          GPL (>=2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/truncreg_0.2-1.tar.gz
BuildArch:        noarch
Requires:         R-core
Requires:         R-maxLik 
BuildRequires:    R-devel Rmath-devel  R-maxLik

%description
Estimation of models for truncated variables by maximum likelihood

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/truncreg/NEWS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8453 |21cr|R-trust-0.1.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  trust
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.1.6
Release:          5
Summary:          Trust Region Optimization

Group:            Sciences/Mathematics
License:          X11
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/trust_0.1-6.tar.gz
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex 
BuildRequires:    pkgconfig(lapack)

%description
local optimization using two derivatives and trust regions

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8454 |21cr|R-TSP-1.0.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  TSP
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.0.8
Release:          6
Summary:          Traveling Salesperson Problem (TSP)
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/TSP_1.0-8.tar.gz
Requires:         R-maps R-sp
Recommends:       R-maptools
BuildRequires:    R-devel Rmath-devel texlive-collection-latex 
BuildRequires:    R-maps R-sp
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Basic infrastructure and some algorithms for the traveling salesperson
problem (also traveling salesman problem; TSP). The package provides some
simple algorithms and an interface to Concorde, the currently fastest TSP
solver. Concorde itself is not included in the package and has to be
obtained separately.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/NEWS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8455 |21cr|rubber-1.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rubber
Summary:	An automated system for building LaTeX documents
Version:	1.1
Release:	12
Source:		http://ebeffara.free.fr/pub/%{name}-%{version}.tar.bz2
URL:		http://www.pps.jussieu.fr/~beffara/soft/rubber/
License:	GPL
Group:		Publishing
Requires:	texlive
BuildRequires:  python-devel
BuildRequires:  texinfo
BuildArch: noarch

%description
This is a building system for LaTeX documents. It is based on a routine that
runs just as many compilations as necessary. The module system provides a
great flexibility that virtually allows support for any package with no user
intervention, as well as pre- and post-processing of the document. The
standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex,
makeindex. A good number of standard packages are supported, including
graphics/graphicx (with automatic conversion between various formats and
Metapost compilation).

%prep
%setup -q

%build
./configure --prefix=%{_prefix} --bindir=%{_bindir} --mandir=%{_mandir} --infodir=%{_infodir}
%make

%install
python setup.py install --root=%{buildroot}

%clean

%files
%doc COPYING NEWS README
%{_bindir}/*
%{py_puresitedir}/rubber
%{py_puresitedir}/*.egg-info
%{_datadir}/rubber
%lang(fr) %{_mandir}/fr/man1/*
%{_mandir}/man1/*
%{_infodir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8456 |21cr|rubber-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rubber
Version:	1.6.0
Release:	1
Summary:	An automated system for building LaTeX documents
Group:		Publishing
License:	GPL
URL:		https://gitlab.com/latex-rubber/rubber
Source:		https://gitlab.com/latex-rubber/rubber/-/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		rubber-disable-pdf-build.patch
BuildRequires:	python3-devel
BuildRequires:	texinfo
Requires:	texlive
BuildArch:	noarch

%description
This is a building system for LaTeX documents. It is based on a routine that
runs just as many compilations as necessary. The module system provides a
great flexibility that virtually allows support for any package with no user
intervention, as well as pre- and post-processing of the document. The
standard modules currently provide support for bibtex, dvips, dvipdfm, pdftex,
makeindex. A good number of standard packages are supported, including
graphics/graphicx (with automatic conversion between various formats and
Metapost compilation).


%files
%doc COPYING NEWS README
%doc %{_docdir}/rubber/rubber.html
%{_bindir}/*
%{py3_puresitedir}/rubber
%{py3_puresitedir}/*.egg-info
%lang(fr) %{_mandir}/fr/man1/*
%{_mandir}/man1/*

#-------------------------------------------------------------------------
%prep
%autosetup -p1

%build
%py3_build

%install
%__python3 setup.py install --mandir=%{_mandir} --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8457 |21cr|rubygem-addressable-2.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name addressable

Summary:	Alternative implementation to the URI implementation
Name:		rubygem-%{gem_name}
Version:	2.8.1
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/addressable
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Addressable is an alternative implementation to the URI implementation
that is part of Ruby's standard library. It is flexible, offers heuristic
parsing, and additionally provides extensive support for IRIs and URI templates.

%files
%doc README.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8458 |21cr|rubygem-apt_stage_artifacts-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name apt_stage_artifacts

Summary:	Stages .deb artifacts to a remote freight repository
Name:		rubygem-%{gem_name}
Version:	0.11.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/apt_stage_artifacts
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Stages .deb artifacts to a remote freight repository.

%files
%doc README.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8459 |21cr|rubygem-archive-tar-minitar-0.5.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	archive-tar-minitar

Summary:	Provides POSIX archive management from Ruby programs
Name:		rubygem-%{oname}
Version:	0.5.2
Release:	6
License:	GPLv2+ or Ruby
Group:		Development/Ruby
URL:		http://%{oname}.rubyforge.org/
Source0:	http://gems.rubyforge.org/gems/%{oname}-%{version}.gem
BuildRequires:	ruby-RubyGems
BuildArch:	noarch

%description
Archive::Tar::Minitar is a pure-Ruby library and command-line utility that
provides the ability to deal with POSIX tar(1) archive files. The
implementation is based heavily on Mauricio Ferna'ndez's implementation in
rpa-base, but has been reorganised to promote reuse in other projects.

%prep

%build

%install
gem install --local --install-dir %{buildroot}/%{ruby_gemdir} --force %{SOURCE0}

mv %{buildroot}%{ruby_gemdir}/bin %{buildroot}%{_prefix}


%clean

%files
%doc %{ruby_gemdir}/doc/%{oname}-%{version}
%{ruby_gemdir}/cache/%{oname}-%{version}.gem
%{ruby_gemdir}/gems/%{oname}-%{version}
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec
%{_bindir}/minitar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8460 |21cr|rubygem-artifactory-3.0.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name artifactory

Summary:	Ruby client for Artifactory
Name:		rubygem-%{gem_name}
Version:	3.0.15
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/artifactory
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Ruby client for Artifactory.

%files
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8461 |21cr|rubygem-asciidoctor-2.0.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name asciidoctor

Summary:	A fast, open source AsciiDoc implementation in Ruby
Name:		rubygem-%{gem_name}
Version:	2.0.10
Release:	2
License:	MIT
Group:		Development/Ruby
Url:		http://asciidoctor.org/
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems
BuildRequires:	rubygems-devel
Provides:	%{gem_name} = %{EVRD}
Provides:	ruby-%{gem_name} = %{EVRD}
Conflicts:	ruby-%{gem_name} < 1.5.8-4
Obsoletes:	ruby-%{gem_name} < 1.5.8-4
BuildArch:	noarch

%description
A fast, open source text processor and publishing toolchain, written in Ruby,
for transforming AsciiDoc markup into HTML 5, DocBook 4.5, DocBook 5.0 and
custom output formats. The transformation from AsciiDoc to custom output
formats is performed by running the nodes in the parsed document tree through a
collection of templates written in a template language supported by Tilt.

%files
%{gem_instdir}
%{gem_libdir}
%{_mandir}/man1/*
%{gem_spec}
%{_bindir}/%{gem_name}

#-------------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{EVRD}
BuildArch:	noarch
 
%description doc
Documentation for %{name}

%files doc
%doc %{gem_docdir}

#-------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

# Fix shebang (avoid Requires: /usr/bin/env)
sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' bin/%{gem_name}
 
%build
gem build %{gem_name}.gemspec
%gem_install -n %{gem_name}-%{version}.gem

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_mandir}/man1/
cp -a .%{gem_instdir}/man/*.1 %{buildroot}%{_mandir}/man1/

rm -fvr %{buildroot}%{gem_cache}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8462 |21cr|rubygem-ast-2.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name ast

Summary:	Library for working with Abstract Syntax Trees
Name:		rubygem-%{gem_name}
Version:	2.4.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/ast
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Library for working with Abstract Syntax Trees.

%files
%doc README.YARD.md
%license LICENSE.MIT
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.YARD.md
%license LICENSE.MIT

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8463 |21cr|rubygem-backports-3.18.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name backports

Name:		rubygem-%{gem_name}
Version:	3.18.1
Release:	2
Summary:	Essential backports
Group:		Development/Ruby
License:	MIT
Url:		http://github.com/marcandre/backports
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Essential backports that enable many of the
nice features of Ruby 1.8.7 up to 2.1.0 for earlier versions.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/SECURITY.md
%{gem_instdir}/Gemfile
%{gem_instdir}/backports.gemspec


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8464 |21cr|rubygem-bundler-2.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	bundler

Summary:	The best way to manage your application's dependencies
Name:		rubygem-%{gem_name}
Version:	2.1.4
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		http://gembundler.com
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Bundler manages an application's dependencies through its entire life, across
many machines, systematically and repeatably

%files
%{_bindir}/bundle
%{_bindir}/bundler
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build
gem build bundler.gemspec
%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/exe/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8465 |21cr|rubygem-CFPropertyList-3.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name CFPropertyList

Summary:	Manipulate both binary and XML property lists as defined by apple
Name:		rubygem-%{gem_name}
Version:	3.0.5
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/CFPropertyList
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8466 |21cr|rubygem-colored2-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name colored2

Summary:	Fork of colored
Name:		rubygem-%{gem_name}
Version:	3.1.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/colored2
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8467 |21cr|rubygem-colorize-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name colorize

Summary:	Extends String class or add a ColorizedString for text effects
Name:		rubygem-%{gem_name}
Version:	0.8.1
Release:	1
License:	GPLv2
Group:		Development/Ruby
Url:		https://rubygems.org/gems/colorize
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Extends String class or add a ColorizedString with methods
to set text color, background color and text effects.

%files
%doc CHANGELOG README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8468 |21cr|rubygem-connection_pool-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name connection_pool

Summary:	Generic connection pool for Ruby
Name:		rubygem-%{gem_name}
Version:	2.3.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/connection_pool
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8469 |21cr|rubygem-cri-2.15.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name cri

Summary:	Easy-to-use CLI with support for subcommand
Name:		rubygem-%{gem_name}
Version:	2.15.11
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/cri
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8470 |21cr|rubygem-csv3_1_5-3.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name csv
# Need for rubygem-packaging
%define version 3.1.5

Summary:	Complete interface to CSV files and data
Name:		rubygem-%{gem_name}3_1_5
Version:	%{version}
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/csv
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
complete interface to CSV files and data. It offers tools to enable you
to read and write to and from Strings or IO objects, as needed.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8471 |21cr|rubygem-declarative-0.0.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name declarative

Summary:	DSL for nested generic schemas with inheritance and refining
Name:		rubygem-%{gem_name}
Version:	0.0.20
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/declarative
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
DSL for nested generic schemas with inheritance and refining.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8472 |21cr|rubygem-digest-crc-0.6.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name digest-crc

Summary:	Adds support for calculating CRC to the Digest module
Name:		rubygem-%{gem_name}
Version:	0.6.4
Release:	2
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/digest-crc
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygem-rake
BuildRequires:	rubygems-devel
BuildRequires:	pkgconfig(ruby)
Requires:	rubygem-rake

%description
Adds support for calculating Cyclic Redundancy Check (CRC) to the Digest module.

%files
%doc README.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8473 |21cr|rubygem-docile-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name docile

Name:		rubygem-%{gem_name}
Version:	1.4.0
Release:	1
Summary:	Docile keeps your Ruby DSLs tame and well-behaved
Group:		Development/Ruby
License:	MIT
URL:		https://ms-ati.github.com/docile/
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Docile turns any Ruby object into a DSL.
Especially useful with the Builder pattern.

%files
%doc %{gem_instdir}/LICENSE
%dir %{gem_instdir}
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/Gemfile
%exclude %{gem_instdir}/docile.gemspec
%{gem_spec}

#------------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{version}-%{release}
BuildArch:	noarch

%description doc
Documentation for %{name}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/HISTORY.md
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/SECURITY.md
%{gem_instdir}/Rakefile

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a ./%{gem_dir}/* %{buildroot}%{gem_dir}/

# Remove build leftovers.
rm -rf %{buildroot}%{gem_instdir}/{.coveralls.yml,.gitignore,.rspec,.ruby-gemset,.ruby-version,.travis.yml,.yard*,.rubocop.yml,.github}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8474 |21cr|rubygem-docopt-0.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name docopt

Summary:	Ruby port of creater command-line interfaces
Name:		rubygem-%{gem_name}
Version:	0.6.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://github.com/docopt/docopt.rb
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Ruby port of creater command-line interfaces.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8475 |21cr|rubygem-erubi-1.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name erubi

Summary:	ERB template engine for ruby
Name:		rubygem-%{gem_name}
Version:	1.11.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/erubi
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc CHANGELOG README.rdoc
%license MIT-LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG README.rdoc
%license MIT-LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8476 |21cr|rubygem-ethon-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  ethon

Name:           rubygem-%{gem_name}
Version:        0.12.0
Release:        1
Summary:        Very lightweight libcurl wrapper
Group:          Development/Ruby
License:        MIT
Url:            https://github.com/typhoeus/ethon
Source0:        https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:  rubygems-devel
Requires:       rubygem-ffi >= 1.3.0
BuildArch:      noarch

%description
Ethon is a very simple libcurl. It provides direct access to libcurl functionality 
as well as some helpers for doing http requests.

%files
%doc README.* LICENSE* CHANGELOG.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec

#------------------------------------------------------------

%package        doc
Summary:        Documentation for %{name}
Group:          Books/Computer books
Requires:       %{name} = %{EVRD}

%description    doc
Documents, RDoc & RI documentation for %{name}.

%files          doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc
%exclude %{gem_dir}/cache

#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8477 |21cr|rubygem-faraday-2.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday

Summary:	HTTP/REST API client library
Name:		rubygem-%{gem_name}
Version:	2.7.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
HTTP/REST API client library.

%files
%doc README.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8478 |21cr|rubygem-faraday-em_http-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday-em_http

Summary:	Faraday adapter for Em::Http
Name:		rubygem-%{gem_name}
Version:	1.0.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday-em_http
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8479 |21cr|rubygem-faraday-em_synchrony-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday-em_synchrony

Summary:	Faraday adapter for EM::Synchrony
Name:		rubygem-%{gem_name}
Version:	1.0.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday-em_synchrony
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8480 |21cr|rubygem-faraday-httpclient-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday-httpclient

Summary:	Faraday adapter for HTTPClient
Name:		rubygem-%{gem_name}
Version:	2.0.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday-httpclient
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8481 |21cr|rubygem-faraday-multipart-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday-multipart

Summary:	Perform multipart-post requests using Faraday
Name:		rubygem-%{gem_name}
Version:	1.0.4
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday-multipart
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc CHANGELOG.md README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG.md README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8482 |21cr|rubygem-faraday-net_http-3.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday-net_http

Summary:	Faraday adapter for Net::HTTP
Name:		rubygem-%{gem_name}
Version:	3.0.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday-net_http
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Faraday adapter for Net::HTTP.

%files
%doc README.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8483 |21cr|rubygem-faraday-net_http_persistent-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday-net_http_persistent

Summary:	Faraday adapter for NetHttpPersistent
Name:		rubygem-%{gem_name}
Version:	2.1.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday-net_http_persistent
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8484 |21cr|rubygem-faraday-rack-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday-rack

Summary:	Faraday adapter for Rack
Name:		rubygem-%{gem_name}
Version:	2.0.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday-rack
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8485 |21cr|rubygem-faraday-retry-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name faraday-retry

Summary:	Catches exceptions and retries each request a limited number of timess
Name:		rubygem-%{gem_name}
Version:	2.0.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/faraday-retry
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc CHANGELOG.md README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG.md README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8486 |21cr|rubygem-ffi-1.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name ffi

Name:		rubygem-%{gem_name}
Version:	1.13.1
Release:	1
Summary:	A ruby extension for programmatically loading dynamic libraries
Group:		Development/Ruby
License:	LGPLv3
URL:		http://wiki.github.com/ffi/ffi
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(libffi)

%description
Ruby-FFI is a ruby extension for programmatically loading dynamic
libraries, binding functions within them, and calling those functions
from Ruby code. Moreover, a Ruby-FFI extension works without changes
on Ruby and JRuby. Discover why should you write your next extension
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].

%files
%doc COPYING LICENSE
%{_libdir}/gems/ruby/%{gem_name}-%{version}
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc

#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
export CONFIGURE_ARGS="--with-ldflags='-pthread -ldl'"
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_libdir}
cp -a .%{_libdir}/* \
        %{buildroot}%{_libdir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#remove unneded
rm -rf %{buildroot}%{_libdir}/gems/ruby/%{gem_name}-%{version}/{gem*,mkmf.log}
rm -rf %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{ext,.github,.gitignore,.gitmodules,*.yml,.yardopts}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8487 |21cr|rubygem-fustigit0_2_0-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name fustigit
# Need for rubygem-vanagon
%define version 0.2.0

Summary:	Parse SCP-like address triplets with the Standard Ruby URI Library
Name:		rubygem-%{gem_name}0_2_0
Version:	%{version}
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/fustigit
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Parse SCP-like address triplets with the Standard Ruby URI Library.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8488 |21cr|rubygem-fustigit-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name fustigit

Summary:	Parse SCP-like address triplets with the Standard Ruby URI Library
Name:		rubygem-%{gem_name}
Version:	0.3.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/fustigit
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Parse SCP-like address triplets with the Standard Ruby URI Library.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8489 |21cr|rubygem-git1_11_0-1.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name git
# Need for rubygem-vanagon
%define version 1.11.0

Summary:	Gem provides an API that can be used Git repositories
Name:		rubygem-%{gem_name}1_11_0
Version:	%{version}
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/git
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Gem provides an API that can be used to create, read, and manipulate
Git repositories by wrapping system calls to the `git` binary.
The API can be used for working with Git in complex interactions
including branching and merging, object inspection and manipulation,
history, patch generation and more.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8490 |21cr|rubygem-git-1.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name git

Summary:	Gem provides an API that can be used Git repositories
Name:		rubygem-%{gem_name}
Version:	1.12.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/git
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Gem provides an API that can be used to create, read, and manipulate
Git repositories by wrapping system calls to the `git` binary.
The API can be used for working with Git in complex interactions
including branching and merging, object inspection and manipulation,
history, patch generation and more.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8491 |21cr|rubygem-google-apis-core-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name google-apis-core

Summary:	Common utility and base classes for legacy Google REST clients
Name:		rubygem-%{gem_name}
Version:	0.9.2
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/google-apis-core
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Common utility and base classes for legacy Google REST clients.

%files
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8492 |21cr|rubygem-google-apis-iamcredentials_v1-0.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name google-apis-iamcredentials_v1

Summary:	REST client for IAM Service Account Credentials API V1
Name:		rubygem-%{gem_name}
Version:	0.16.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/google-apis-iamcredentials_v1
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
This is the simple REST client for IAM Service Account Credentials API V1.
Simple REST clients are Ruby client libraries that provide access
to Google services via their HTTP REST API endpoints.
These libraries are generated and updated automatically based on
the discovery documents published by the service, and they handle most concerns
such as authentication, pagination, retry, timeouts, and logging.
You can use this client to access the IAM Service Account Credentials API,
but note that some services may provide a separate modern client
that is easier to use.

%files
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8493 |21cr|rubygem-google-apis-storage_v1_0_19_0-0.19.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name google-apis-storage_v1
# Need 0.19.0 for rubygem-google-cloud-storage
%define version 0.19.0

Summary:	Simple REST client for Cloud Storage JSON API V1
Name:		rubygem-%{gem_name}_0_19_0
Version:	0.19.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/google-apis-storage_v1
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Simple REST client for Cloud Storage JSON API V1. Simple REST clients
are Ruby client libraries that provide access to Google services via their
HTTP REST API endpoints. These libraries are generated and updated
automatically based on the discovery documents published by the service,
and they handle most concerns such as authentication, pagination, retry,
timeouts, and logging. You can use this client to access the Cloud Storage JSON API,
but note that some services may provide a separate modern client that is easier to use.

%files
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8494 |21cr|rubygem-googleauth-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name googleauth

Summary:	Implements simple authorization for accessing Google APIs
Name:		rubygem-%{gem_name}
Version:	1.3.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/googleauth
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Implements simple authorization for accessing Google APIs,
and provides support for Application Default Credentials.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8495 |21cr|rubygem-google-cloud-core-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name google-cloud-core

Summary:	Internal shared library for google-cloud-ruby
Name:		rubygem-%{gem_name}
Version:	1.6.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/google-cloud-core
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Internal shared library for google-cloud-ruby.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8496 |21cr|rubygem-google-cloud-env-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name google-cloud-env

Summary:	Information on the Google Cloud Platform hosting environment
Name:		rubygem-%{gem_name}
Version:	1.6.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/google-cloud-env
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Provides information on the Google Cloud Platform hosting environment.
Applications can use this library to determine hosting context information
such as the project ID, whether App Engine is running, what tags are set
on the VM instance, and much more.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8497 |21cr|rubygem-google-cloud-errors-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name google-cloud-errors

Summary:	Defines error classes for google-cloud-ruby
Name:		rubygem-%{gem_name}
Version:	1.3.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/google-cloud-errors
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Defines error classes for google-cloud-ruby.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8498 |21cr|rubygem-google-cloud-storage-1.44.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name google-cloud-storage

Summary:	Official library for Google Cloud Storage
Name:		rubygem-%{gem_name}
Version:	1.44.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/google-cloud-storage
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Official library for Google Cloud Storage.

%files
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8499 |21cr|rubygem-gssapi-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name gssapi

Summary:	FFI wrapper around the system GSSAPI library
Name:		rubygem-%{gem_name}
Version:	1.3.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/gssapi
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc Changelog.md README.md
%license COPYING
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc Changelog.md README.md
%license COPYING

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8500 |21cr|rubygem-gyoku-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name gyoku

Summary:	Translates Ruby Hashes to XML
Name:		rubygem-%{gem_name}
Version:	1.4.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/gyoku
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc CHANGELOG.md README.md
%license MIT-LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG.md README.md
%license MIT-LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8501 |21cr|rubygem-hashdiff-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name hashdiff

Summary:	Diff lib to compute the smallest difference between two hashes
Name:		rubygem-%{gem_name}
Version:	1.0.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/hashdiff
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
diff lib to compute the smallest difference between two hashes.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8502 |21cr|rubygem-hiera-3.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name hiera

Summary:	Light weight hierarchical data store
Name:		rubygem-%{gem_name}
Version:	3.6.0
Release:	1
License:	Apache License
Group:		Development/Ruby
Url:		https://github.com/puppetlabs/hiera/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
Conflicts:	ruby-%{gem_name} < 3.0.5-5
Obsoletes:	ruby-%{gem_name} < 3.0.5-5
BuildArch:	noarch

%description
A pluggable data store for hierarchical data.

%files
%{_bindir}/hiera
%{gem_dir}/gems/*
%{gem_dir}/specifications/*
%exclude %{gem_dir}/cache
#-------------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Development/Ruby
Requires:	%{name} = %{EVRD}
Provides:	ruby-%{gem_name}-doc = %{EVRD}
Conflicts:	ruby-%{gem_name}-doc < 3.0.5-5
Obsoletes:	ruby-%{gem_name}-doc < 3.0.5-5

%description doc
Documents, Rdoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/*

#-------------------------------------------------------------------------------

%prep
%setup -qn %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install -d %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8503 |21cr|rubygem-hiera-eyaml-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name hiera-eyaml

Summary:	Hiera backend for decrypting encrypted yaml properties
Name:		rubygem-%{gem_name}
Version:	3.3.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/hiera-eyaml
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc CHANGELOG.md HISTORY.md PLUGINS.md README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG.md HISTORY.md PLUGINS.md README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8504 |21cr|rubygem-highline-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name highline

Summary:	High-level IO library that provides validation and more
Name:		rubygem-%{gem_name}
Version:	2.0.3
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/highline
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
High-level IO library that provides validation, type conversion, and more
for command-line interfaces. HighLine also includes a complete menu system
that can crank out anything from simple list selection to complete shells
with just minutes of work.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8505 |21cr|rubygem-httpclient-2.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name httpclient

Summary:	Gives something like the functionality of libwww-perl (LWP) in Ruby
Name:		rubygem-%{gem_name}
Version:	2.8.3
Release:	1
License:	Ruby
Group:		Development/Ruby
Url:		https://rubygems.org/gems/httpclient
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Gives something like the functionality of libwww-perl (LWP) in Ruby.

%files
%doc README.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8506 |21cr|rubygem-jmespath-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name jmespath

Summary:	Implements JMESPath for Ruby
Name:		rubygem-%{gem_name}
Version:	1.6.2
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/jmespath
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8507 |21cr|rubygem-json-2.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name json

Summary:	JSON implementation as a Ruby extension in C
Name:		rubygem-%{gem_name}
Version:	2.6.3
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/json
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	pkgconfig(ruby)

%description
JSON implementation as a Ruby extension in C.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8508 |21cr|rubygem-jwt-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name jwt

Summary:	A pure ruby implementation of the RFC 7519 OAuth JWT standard
Name:		rubygem-%{gem_name}
Version:	2.5.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/jwt
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
A pure ruby implementation of the RFC 7519 OAuth JSON Web Token (JWT) standard.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8509 |21cr|rubygem-kramdown-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  kramdown

Name:		rubygem-%{gem_name}
Version:	2.3.0
Release:	1
Summary:	kramdown is yet-another-markdown-parser
Group:		Development/Ruby
License:	MIT
Url:		http://kramdown.gettalong.org/
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Open child process with handles on pid, stdin, stdout, and stderr: 
manage child processes and their io handles easily.

%files
%doc README.* COPYING*
%{_bindir}/kramdown
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%{_mandir}/man1/kramdown.1*
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#move man to right place
mkdir -p %{buildroot}%{_mandir}
mv %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/man/man1 %{buildroot}%{_mandir}
rm -d %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/man

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin/kramdown
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8510 |21cr|rubygem-little-plugger-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name little-plugger

Summary:	Provides Gem based plugin management
Name:		rubygem-%{gem_name}
Version:	1.1.4
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/little-plugger
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc History.txt README.rdoc
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc History.txt README.rdoc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8511 |21cr|rubygem-locale-2.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name locale

Summary:	Ruby-Locale is the pure ruby library which provides basic APIs for localization
Name:		rubygem-%{gem_name}
Version:	2.1.3
Release:	1
License:	GPLv2+ or Ruby
Group:		Development/Ruby
Url:		https://github.com/ruby-gettext/locale
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Ruby-Locale is the pure ruby library which provides basic APIs for
localization.

%files
%doc COPYING* README*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8512 |21cr|rubygem-lock_manager-0.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name lock_manager

Summary:	Small helper gem that provides locking and unlocking hardware
Name:		rubygem-%{gem_name}
Version:	0.1.5
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/lock_manager
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel 
BuildArch:	noarch

%description
Small helper gem that provides locking and unlocking hardware.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8513 |21cr|rubygem-log4r-1.1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name log4r

Summary:	Gem logging apache
Name:		rubygem-%{gem_name}
Version:	1.1.10
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/log4r
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8514 |21cr|rubygem-logging-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name logging

Summary:	Flexible logging library for use in Ruby programs
Name:		rubygem-%{gem_name}
Version:	2.3.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/logging
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8515 |21cr|rubygem-memoist-0.16.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name memoist

Summary:	Memoize methods invocation
Name:		rubygem-%{gem_name}
Version:	0.16.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/memoist
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Memoize methods invocation.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8516 |21cr|rubygem-mime-types-3.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	mime-types

Summary:	MIME content type identification library for ruby
Name:		rubygem-%{gem_name}
Version:	3.3.1
Release:	1
License:	GPLv2+ or Ruby or Perl Artistic License
Group:		Development/Ruby
URL:		http://%{gem_name}.rubyforge.org/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
This ruby library allows for the identification of a file's likely MIME content
type. The identification of MIME content type is based on a file's filename
extensions.

%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%prep
%setup-q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

%files
%dir %{gem_instdir}
%license %{gem_instdir}/Licence*
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%{gem_instdir}/test
%{gem_instdir}/Rakefile

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/*.md
%doc %{gem_instdir}/*.txt
%doc %{gem_instdir}/*.rdoc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8517 |21cr|rubygem-mime-types-data-3.2021.0901-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name mime-types-data

Name:		rubygem-%{gem_name}
Version:	3.2021.0901
Release:	1
Summary:	A registry for information about MIME media type definitions
Group:		Development/Ruby
License:	MIT
URL:		https://github.com/mime-types/mime-types-data/
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch: noarch

%description
mime-types-data provides a registry for information about MIME media type
definitions. It can be used with the Ruby mime-types library or other software
to determine defined filename extensions for MIME types, or to use filename
extensions to look up the likely MIME type definitions.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/Licence.md
%{gem_instdir}/data
%{gem_instdir}/types
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

#----------------------------------------------------------
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/Code-of-Conduct.md
%doc %{gem_instdir}/Contributing.md
%doc %{gem_instdir}/History.md
%{gem_instdir}/Manifest.txt
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile

#----------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8518 |21cr|rubygem-mini_mime-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name mini_mime

Summary:	Lightweight mime type lookup toy
Name:		rubygem-%{gem_name}
Version:	1.1.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/mini_mime
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Lightweight mime type lookup toy.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8519 |21cr|rubygem-mini_portile2-2.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name mini_portile2

Summary:	Simplistic port-like solution for developers
Name:		rubygem-%{gem_name}
Version:	2.8.4
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		http://rack.rubyforge.org
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel 
BuildArch:	noarch

%description
Simplistic port-like solution for developers. It provides a standard and
simplified way to compile against dependency libraries without messing up
your system.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/SECURITY.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

rm -r %{buildroot}%{gem_instdir}/.github
rm %{buildroot}%{gem_instdir}/Rakefile
rm %{buildroot}%{gem_instdir}/mini_portile2.gemspec
rm -r %{buildroot}%{gem_instdir}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8520 |21cr|rubygem-minitar-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name minitar

Summary:	Pure-Ruby library that provides the ability to deal with POSIX tar
Name:		rubygem-%{gem_name}
Version:	0.9
Release:	1
License:	BSD
Group:		Development/Ruby
Url:		https://rubygems.org/gems/minitar
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc History.md README.rdoc
%license Licence.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc History.md README.rdoc
%license Licence.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8521 |21cr|rubygem-molinillo-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name molinillo

Summary:	Support for dependency resolution
Name:		rubygem-%{gem_name}
Version:	0.8.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/molinillo
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8522 |21cr|rubygem-multi_json-1.15.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name multi_json

Summary:	A gem to provide swappable JSON backends
Name:		rubygem-%{gem_name}
Version:	1.15.0
Release:	2
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/multi_json
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
Recommends:   rubygem(rspec)
BuildArch:  noarch

%description
A gem to provide swappable JSON backends utilizing Yajl::Ruby, the JSON gem,
ActiveSupport, or JSON pure.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8523 |21cr|rubygem-multipart-post-2.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name multipart-post

Summary:	Multipart form post accessory for Net::HTTP
Name:		rubygem-%{gem_name}
Version:	2.2.3
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/multipart-post
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8524 |21cr|rubygem-mustermann-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  mustermann

Name:		rubygem-%{gem_name}
Version:	1.1.1
Release:	1
Summary:	A library implementing patterns that behave like regular expressions
Group:		Development/Ruby
License:	MIT
Url:		https://github.com/sinatra/mustermann
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
A library implementing patterns that behave like regular expressions.

%files
%doc README.* LICENSE*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8525 |21cr|rubygem-net-http-persistent-4.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name net-http-persistent

Summary:	Manages persistent connections using Net::HTTP
Name:		rubygem-%{gem_name}
Version:	4.0.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/net-http-persistent
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc History.txt README.rdoc
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc History.txt README.rdoc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8526 |21cr|rubygem-net-scp-4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name net-scp

Summary:	Pure Ruby implementation of the SCP client protocol
Name:		rubygem-%{gem_name}
Version:	4.0.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/net-scp
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc CHANGES.txt README.rdoc
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGES.txt README.rdoc
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8527 |21cr|rubygem-net-ssh-7.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name net-ssh

Summary:	Net::SSH: a pure-Ruby implementation of the SSH2 client protocol
Name:		rubygem-%{gem_name}
Version:	7.0.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/net-ssh
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8528 |21cr|rubygem-net-ssh-krb-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name net-ssh-krb

Summary:	Extends Net::SSH by adding Kerberos authentication capability
Name:		rubygem-%{gem_name}
Version:	0.5.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/net-ssh-krb
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8529 |21cr|rubygem-nori-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name nori

Summary:	XML to Hash translator
Name:		rubygem-%{gem_name}
Version:	2.6.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/nori
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8530 |21cr|rubygem-octokit-6.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name octokit

Summary:	Simple wrapper for the GitHub API
Name:		rubygem-%{gem_name}
Version:	6.0.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/octokit
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Simple wrapper for the GitHub API.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8531 |21cr|rubygem-open4-1.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  open4

Name:		rubygem-%{gem_name}
Version:	1.3.4
Release:	1
Summary:	Open child process with handles on pid, stdin, stdout, and stderr
Group:		Development/Ruby
License:	BSD
Url:		https://github.com/ahoward/open4
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Open child process with handles on pid, stdin, stdout, and stderr: 
manage child processes and their io handles easily.

%files
%doc README.* LICENSE*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8532 |21cr|rubygem-optimist-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name optimist

Summary:	Commandline option parser for Ruby
Name:		rubygem-%{gem_name}
Version:	3.0.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/optimist
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8533 |21cr|rubygem-os-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name os

Summary:	Allows for some useful and easy functions, like OS.windows
Name:		rubygem-%{gem_name}
Version:	1.1.4
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/os
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Allows for some useful and easy functions, like OS.windows.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8534 |21cr|rubygem-packaging-0.108.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name packaging

Summary:	Automation written in Rake and Ruby
Name:		rubygem-%{gem_name}
Version:	0.108.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/packaging
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Automation written in Rake and Ruby.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8535 |21cr|rubygem-packnga-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  packnga

Name:		rubygem-%{gem_name}
Version:	1.0.4
Release:	1
Summary:	Packnga is a library to translate to many languages by YARD
Group:		Development/Ruby
License:	LGPLv2
Url:		http://ranguba.org/packnga/en/
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Packnga is a library to translate to many languages by YARD.

%files
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}

#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8536 |21cr|rubygem-paint-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name paint

Summary:	Terminal painter with RGB and 256 (fallback) color and terminal effects support
Name:		rubygem-%{gem_name}
Version:	2.3.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/paint
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc CHANGELOG.md README.md
%license MIT-LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG.md README.md
%license MIT-LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8537 |21cr|rubygem-parallel-1.22.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name parallel

Summary:	Run any kind of code in parallel processes
Name:		rubygem-%{gem_name}
Version:	1.22.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/parallel
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Run any kind of code in parallel processes.

%files
%license MIT-LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%license MIT-LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8538 |21cr|rubygem-parser-3.1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name parser

Summary:	Ruby parser written in pure Ruby
Name:		rubygem-%{gem_name}
Version:	3.1.3.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/parser
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Ruby parser written in pure Ruby.

%files
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8539 |21cr|rubygem-plist-3.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	plist

Summary:	A ruby library to manipulate Property List files
Name:		rubygem-%{oname}
Version:	3.0.0
Release:	6
License:	MIT
Group:		Development/Ruby
URL:		http://%{oname}.rubyforge.org/
Source0:	http://gems.rubyforge.org/gems/%{oname}-%{version}.gem
BuildRequires:	ruby-RubyGems
BuildArch:	noarch

%description
Plist is a library to manipulate Property List files, also known as plists.
It can parse plist files into native Ruby data structures as well as generating
new plist files from your Ruby objects.

%prep

%build

%install
gem install --local --install-dir %{buildroot}/%{ruby_gemdir} --force %{SOURCE0}

rm -rf %{buildroot}%{ruby_gemdir}/gems/%{oname}-%{version}/ext

%clean

%files
%doc %{ruby_gemdir}/doc/%{oname}-%{version}
%{ruby_gemdir}/cache/%{oname}-%{version}.gem
%{ruby_gemdir}/gems/%{oname}-%{version}
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8540 |21cr|rubygem-power_assert-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  power_assert

Name:		rubygem-%{gem_name}
Version:	1.2.0
Release:	1
Summary:	Open child process with handles on pid, stdin, stdout, and stderr
Group:		Development/Ruby
License:	BSD
Url:		https://github.com/ahoward/open4
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Open child process with handles on pid, stdin, stdout, and stderr: 
manage child processes and their io handles easily.

%files
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8541 |21cr|rubygem-progressbar-1.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	progressbar

Summary:	Ruby/ProgressBar is a text progress bar library for Ruby
Name:		rubygem-%{gem_name}
Version:	1.11.0
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		http://github.com/peleteiro/progressbar
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Ruby/ProgressBar is a text progress bar library for Ruby. It can indicate
progress with percentage, a progress bar, and estimated remaining time.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%{gem_libdir}
%exclude %{gem_cache}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec

#-----------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%doc %{gem_instdir}/README.md

#-----------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8542 |21cr|rubygem-public_suffix-5.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name public_suffix

Summary:	Parse and decompose a domain name
Name:		rubygem-%{gem_name}
Version:	5.0.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/public_suffix
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
PublicSuffix can parse and decompose a domain name into
top level domain, domain and subdomains.

%files
%doc README.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8543 |21cr|rubygem-puppet-8.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name puppet

%global __requires_exclude_from %{gem_dir}/gems/%{gem_name}-%{version}/ext/solaris

Summary:	Automated configuration management tool
Name:		rubygem-%{gem_name}
Version:	8.0.1
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/%{gem_name}
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Automated configuration management tool.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8544 |21cr|rubygem-puppetfile-resolver-0.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name puppetfile-resolver

Summary:	Resolves the Puppet Modules in a Puppetfile with a full dependency graph
Name:		rubygem-%{gem_name}
Version:	0.6.2
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/puppetfile-resolver
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8545 |21cr|rubygem-puppet-resource_api-1.8.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name puppet-resource_api

Summary:	This library write new native resources for puppet
Name:		rubygem-%{gem_name}
Version:	1.8.14
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/puppet-resource_api
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
This library provides a simple way to write new native resources for puppet.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8546 |21cr|rubygem-puppet-strings-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name puppet-strings

Summary:	Puppet documentation via YARDs
Name:		rubygem-%{gem_name}
Version:	3.0.1
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/puppet-strings
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8547 |21cr|rubygem-rack-protection-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name   rack-protection

Name:		rubygem-%{gem_name}
Version:	2.1.0
Release:	1
Summary:	Protection for Rack
Group:		Development/Ruby
License:	Ruby License
URL:		http://rdoc.rubyforge.org
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Something Rack related.

%files
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#-------------------------------------------------------------------------------
%package        doc
Summary:    Documentation for %{name}
Group:      Development/Ruby
Requires:   %{name} = %{version}-%{release}

%description    doc
Documents, Rdoc & RI documentation for %{name}.


%files          doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}
#-------------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8548 |21cr|rubygem-rack-test-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rack-test

Name:		rubygem-%{gem_name}
Version:	1.1.0
Release:	1
Summary:	Simple testing API built on Rack
Group:		Development/Ruby
License:	MIT
URL:		http://github.com/brynary/rack-test
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch
Provides:	rubygem(%{gem_name}) = %{version}

%description
Rack::Test is a small, simple testing API for Rack apps. It can be used on its
own or as a reusable starting point for Web frameworks and testing libraries
to build on. Most of its initial functionality is an extraction of Merb 1.0's
request helpers feature.

%files
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.*
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8549 |21cr|rubygem-rainbow-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rainbow

Summary:	Colorize printed text on ANSI terminals
Name:		rubygem-%{gem_name}
Version:	3.1.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/rainbow
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Colorize printed text on ANSI terminals.

%files
%doc Changelog.md README.markdown
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc Changelog.md README.markdown
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8550 |21cr|rubygem-rake12_3_3-12.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name   rake
# 12.3.3 need for puppet-runtime
%define version 12.3.3

Summary:	Simple ruby build program with capabilities similar to make
Name:		rubygem-%{gem_name}12_3_3
Version:	%{version}
Release:	1
License:	MIT
Group:		Development/Ruby
URL:		http://rake.rubyforge.org/
Source0:	http://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
This package contains Rake, a simple ruby build program with capabilities
similar to make.

%files
%{_bindir}/rake
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#-------------------------------------------------------------------------

%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.*
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#-------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/exe/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8551 |21cr|rubygem-rake-13.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name   rake

Summary:	Simple ruby build program with capabilities similar to make
Name:		rubygem-%{gem_name}
Version:	13.0.3
Release:	1
License:	MIT
Group:		Development/Ruby
URL:		http://rake.rubyforge.org/
Source0:	http://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
#BuildRequires: p7zip
BuildArch:	noarch

%description
This package contains Rake, a simple ruby build program with capabilities
similar to make.

%files
%{_bindir}/rake
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#-------------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.*
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#-------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin/*
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/exe/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8552 |21cr|rubygem-rchardet-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rchardet

Summary:	Character encoding auto-detection in Ruby
Name:		rubygem-%{gem_name}
Version:	1.8.0
Release:	1
License:	LGPL
Group:		Development/Ruby
Url:		https://rubygems.org/gems/rchardet
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Character encoding auto-detection in Ruby. As smart as your browser.

%files
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8553 |21cr|rubygem-redis3_2-3.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name redis

Summary:	Ruby client that tries to match Redis' API
Name:		rubygem-%{gem_name}3_2
Version:	3.3.5
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/redis
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
Conflicts:	rubygem-%{gem_name}
BuildArch:	noarch

%description
Ruby client that tries to match Redis' API one-to-one,
while still providing an idiomatic interface.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8554 |21cr|rubygem-regexp_parser-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name regexp_parser

Summary:	Library for tokenizing, lexing, and parsing Ruby regular expressions
Name:		rubygem-%{gem_name}
Version:	2.6.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/regexp_parser
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Library for tokenizing, lexing, and parsing Ruby regular expressions.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8555 |21cr|rubygem-release-metrics-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name release-metrics

Summary:	Puppet, Inc. Release Metrics
Name:		rubygem-%{gem_name}
Version:	1.1.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/release-metrics
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Puppet, Inc. Release Metrics.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8556 |21cr|rubygem-representable-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name representable

Summary:	Renders and parses JSON/XML/YAML documents from and to Ruby objects
Name:		rubygem-%{gem_name}
Version:	3.2.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/representable
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Renders and parses JSON/XML/YAML documents from and to Ruby objects.
Includes plain properties, collections, nesting, coercion and more.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8557 |21cr|rubygem-retriable-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name retriable

Summary:	Retriable is a simple DSL to retry failed code blocks
Name:		rubygem-%{gem_name}
Version:	3.1.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/retriable
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Retriable is a simple DSL to retry failed code blocks with randomized
exponential backoff. This is especially useful when interacting external
api/services or file system calls.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8558 |21cr|rubygem-rexml-3.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  rexml

Name:		rubygem-%{gem_name}
Version:	3.2.5
Release:	1
Summary:	An XML toolkit for Ruby
Group:		Development/Ruby
License:	BSD
Url:		https://github.com/ruby/rexml
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
An XML toolkit for Ruby.

%files
%doc README.* LICENSE*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc

#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8559 |21cr|rubygem-rgen-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rgen

Summary:	Framework for Model Driven Software Development (MDSD) in Ruby
Name:		rubygem-%{gem_name}
Version:	0.9.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/rgen
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc CHANGELOG README.rdoc
%license MIT-LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG README.rdoc
%license MIT-LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8560 |21cr|rubygem-rr-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	rr

Summary:	RR (Double Ruby)
Name:		rubygem-%{oname}
Version:	1.0.0
Release:	5
License:	GPLv2
Group:		Development/Ruby
URL:		http://rubygems.org/gems/%{oname}
Source0:	http://gems.rubyforge.org/gems/%{oname}-%{version}.gem
BuildRequires:	ruby-RubyGems
Requires:	ruby
BuildArch:	noarch

%description
RR (Double Ruby) is a double framework that features a rich selection of double
techniques and a terse syntax.

%prep

%build

%install
gem install --local --install-dir %{buildroot}/%{ruby_gemdir} --force %{SOURCE0}

chmod g-w,g+r,o+r -R %{buildroot}

%clean

%files
%doc %{ruby_gemdir}/doc/%{oname}-%{version}
%{ruby_gemdir}/cache/%{oname}-%{version}.gem
%{ruby_gemdir}/gems/%{oname}-%{version}
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8561 |21cr|rubygem-rubocop-1.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rubocop

Summary:	Ruby code style checking and code formatting tool
Name:		rubygem-%{gem_name}
Version:	1.40.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/rubocop
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Ruby code style checking and code formatting tool.
It aims to enforce the community-driven Ruby Style Guide.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8562 |21cr|rubygem-rubocop-ast-1.24.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rubocop-ast

Summary:	RuboCop's Node and NodePattern classes
Name:		rubygem-%{gem_name}
Version:	1.24.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/rubocop-ast
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
RuboCop's Node and NodePattern classes.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8563 |21cr|rubygem-ruby2_keywords-0.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  ruby2_keywords

Name:		rubygem-%{gem_name}
Version:	0.0.2
Release:	1
Summary:	Shim library for Module#ruby2_keywords
Group:		Development/Ruby
License:	BSD
Url:		https://github.com/ahoward/open4
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Shim library for Module#ruby2_keywords.

%files
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8564 |21cr|rubygem-ruby2_keywords0_0_5-0.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name ruby2_keywords

Summary:	Shim library for Module ruby2_keywords
Name:		rubygem-%{gem_name}0_0_5
Version:	0.0.5
Release:	1
License:	BSD
Group:		Development/Ruby
Url:		https://rubygems.org/gems/ruby2_keywords
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Shim library for Module ruby2_keywords.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8565 |21cr|rubygem-rubyforge-2.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	rubyforge

Summary:	A script which automates a limited set of rubyforge operations
Name:		rubygem-%{oname}
Version:	2.0.4
Release:	5
License:	MIT
Group:		Development/Ruby
URL:		http://%{oname}.rubyforge.org/
Source0:	http://gems.rubyforge.org/gems/%{oname}-%{version}.gem
BuildRequires:	ruby-RubyGems
BuildArch:	noarch

%description
A script which automates a limited set of rubyforge operations.

* Run 'rubyforge help' for complete usage.
* Setup: For first time users AND upgrades to 0.4.0:
  * rubyforge setup (deletes your username and password, so run sparingly!)
  * edit ~/.rubyforge/user-config.yml
  * rubyforge config
* For all rubyforge upgrades, run 'rubyforge config' to ensure you have latest.

%prep

%build

%install
gem install -E -n %{buildroot}%{_bindir} --local --install-dir %{buildroot}/%{ruby_gemdir} --force %{SOURCE0}
rm -rf %{buildroot}%{ruby_gemdir}/{cache,gems/%{oname}-%{version}/ext}

%clean

%files
%doc %{ruby_gemdir}/doc/%{oname}-%{version}
%{_bindir}/rubyforge
%{ruby_gemdir}/gems/%{oname}-%{version}
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8566 |21cr|rubygem-ruby-hmac-0.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ruby-hmac

Summary:	A ruby module that provides a common interface to HMAC functionality
Name:		rubygem-%{oname}
Version:	0.4.0
Release:	6
License:	MIT
Group:		Development/Ruby
URL:		http://%{oname}.rubyforge.org/
Source0:	http://gems.rubyforge.org/gems/%{oname}-%{version}.gem
BuildRequires:	ruby-RubyGems
BuildArch:	noarch

%description
This module provides a common interface to HMAC functionality.
HMAC is a kind of "Message Authentication Code" (MAC) algorithm whose standard
is documented in RFC2104. Namely, a MAC provides a way to check the integrity
of information transmitted over or stored in an unreliable medium, based on a
secret key.

%prep

%build

%install
gem install --local --install-dir %{buildroot}/%{ruby_gemdir} --force %{SOURCE0}

%clean

%files
%doc %{ruby_gemdir}/doc/%{oname}-%{version}
%{ruby_gemdir}/cache/%{oname}-%{version}.gem
%{ruby_gemdir}/gems/%{oname}-%{version}
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8567 |21cr|rubygem-rubyntlm-0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rubyntlm

Summary:	Ruby/NTLM provides message creator and parser for the NTLM authentication
Name:		rubygem-%{gem_name}
Version:	0.6.3
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/rubyntlm
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8568 |21cr|rubygem-ruby-yadis-0.3.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ruby-yadis

Summary:	A library for performing Yadis service discovery
Name:		rubygem-%{oname}
Version:	0.3.4
Release:	6
License:	Apache License
Group:		Development/Ruby
URL:		http://%{oname}.rubyforge.org/
Source0:	http://gems.rubyforge.org/gems/%{oname}-%{version}.gem
BuildRequires:	ruby-RubyGems
Requires:	ruby
BuildArch:	noarch

%description
Echoe is a Rubygems packaging tool that provides Rake tasks for documentation,
extension compiling, testing, and deployment.

%prep

%build

%install
gem install --local --install-dir %{buildroot}/%{ruby_gemdir} --force %{SOURCE0}

%clean

%files
%doc %{ruby_gemdir}/doc/%{oname}-%{version}
%{ruby_gemdir}/cache/%{oname}-%{version}.gem
%{ruby_gemdir}/gems/%{oname}-%{version}
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8569 |21cr|rubygem-sawyer-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name sawyer

Summary:	Secret User Agent of HTTP
Name:		rubygem-%{gem_name}
Version:	0.9.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/sawyer
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Secret User Agent of HTTP.

%files
%doc README.md
%license LICENSE.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8570 |21cr|rubygem-scanf-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name scanf

Summary:	Implementation of the C function scanf(3)
Name:		rubygem-%{gem_name}
Version:	1.0.0
Release:	1
License:	BSD
Group:		Development/Ruby
Url:		https://rubygems.org/gems/scanf
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Implementation of the C function scanf(3).

%files
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8571 |21cr|rubygem-signet-0.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name signet

Summary:	Small helper gem that provides locking and unlocking hardware
Name:		rubygem-%{gem_name}
Version:	0.17.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/signet
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Small helper gem that provides locking and unlocking hardware.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8572 |21cr|rubygem-simplecov-0.21.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	simplecov

Summary:	Code coverage for Ruby
Name:		rubygem-%{gem_name}

Version:	0.21.2
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		http://github.com/colszowka/simplecov
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Code coverage for Ruby 1.9 with a powerful configuration library and automatic
merging of coverage across test suites

%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/doc/alternate-formatters.md
%doc %{gem_instdir}/doc/commercial-services.md
%doc %{gem_instdir}/doc/editor-integration.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8573 |21cr|rubygem-simplecov-html-0.12.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	simplecov-html

Summary:	Default HTML formatter for SimpleCov code coverage tool for ruby 1.9+
Name:		rubygem-%{gem_name}

Version:	0.12.3
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		https://github.com/colszowka/simplecov-html
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Default HTML formatter for SimpleCov code coverage tool for ruby 1.9+

%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

# delete hidden files
find %{buildroot}%{gem_dir} -name '.*' -exec rm -rf -- {} \;


%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%{gem_instdir}/views
%{gem_instdir}/test
%{gem_instdir}/public
%{gem_instdir}/assets
%{gem_instdir}/Gemfile
%{gem_instdir}/Gemfile.lock
%{gem_instdir}/Guardfile
%{gem_instdir}/Rakefile
%{gem_instdir}/simplecov-html.gemspec

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8574 |21cr|rubygem-simplecov_json_formatter-0.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	simplecov_json_formatter

Summary:	JSON formatter for SimpleCov
Name:		rubygem-%{gem_name}

Version:	0.1.3
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		https://github.com/fede-moya/simplecov_json_formatter
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
JSON formatter for SimpleCov

%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

# delete hidden files
find %{buildroot}%{gem_dir} -name '.*' -exec rm -rf -- {} \;


%files
%dir %{gem_instdir}
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8575 |21cr|rubygem-sinatra-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	sinatra

Summary:	Classy web-development dressed in a DSL
Name:		rubygem-%{gem_name}
Version:	2.1.0
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		http://sinatra.rubyforge.org
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Classy web-development dressed in a DSL

%files
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec

#-----------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
#doc pkg removed
#gem_install in endless cycle on stage build docs

mkdir -p %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}
cp -a ./lib \
        %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}

mkdir -p %{buildroot}%{gem_dir}/specifications
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8576 |21cr|rubygem-sqlite3-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name sqlite3

Summary:	Interface with the SQLite3 database engine
Name:		rubygem-%{gem_name}

Version:	1.4.2
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		http://github.com/luislavena/sqlite3-ruby
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	ruby-devel
BuildRequires:	rubygem(rake)
BuildRequires:	sqlite-devel
BuildRequires:	pkgconfig(sqlite3)


%description
This module allows Ruby programs to interface with the SQLite3
database engine (http://www.sqlite.org).  You must have the
SQLite engine installed in order to build this module.
Note that this module is only compatible with SQLite 3.6.16 or newer.

%files
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%{gem_instdir}/test
%{gem_instdir}/rakelib
%{gem_instdir}/ext
%{gem_instdir}/faq
%{gem_instdir}/Rakefile
%{gem_instdir}/appveyor.yml
%{gem_instdir}/setup.rb

#--------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_instdir}/*.rdoc
%doc %{gem_instdir}/*.txt
%doc %{gem_instdir}/ext/sqlite3/*.c
%doc %{gem_docdir}
%doc %{gem_instdir}/.gemtest
%doc %{gem_instdir}/.travis.yml
%doc %{gem_instdir}/ChangeLog.cvs
%doc %{gem_instdir}/Gemfile
%doc %{gem_instdir}/LICENSE

#--------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8577 |21cr|rubygem-stomp-1.1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	stomp

Summary:	Ruby client for the Stomp messaging protocol
Name:		rubygem-%{oname}
Version:	1.1.7
Release:	7
License:	Apache License
Group:		Development/Ruby
URL:		http://%{oname}.rubyforge.org/
Source0:	http://gems.rubyforge.org/gems/%{oname}-%{version}.gem
BuildRequires:	ruby-RubyGems
Requires:	ruby
BuildArch:	noarch
%rename ruby-%{oname}

%description
The Stomp project is the Streaming Text Orientated Messaging Protocol site
(or the Protocol Briefly Known as TTMP and Represented by the symbol :ttmp).
Stomp provides an interoperable wire format so that any of the available
Stomp Clients can communicate with any Stomp Message Broker to provide easy
and widespread messaging interop among languages, platforms and brokers.

%prep

%build

%install
gem install --install-dir %{buildroot}/%{ruby_gemdir} --force %{SOURCE0}

mv %{buildroot}%{ruby_gemdir}/bin %{buildroot}%{_prefix}

%clean

%files
%doc %{ruby_gemdir}/doc/%{oname}-%{version}
%{_bindir}/*
%{ruby_gemdir}/cache/%{oname}-%{version}.gem
%{ruby_gemdir}/gems/%{oname}-%{version}
%{ruby_gemdir}/specifications/%{oname}-%{version}.gemspec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8578 |21cr|rubygem-sys-filesystem-1.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name sys-filesystem

Summary:	Cross-platform interface for gathering filesystem information
Name:		rubygem-%{gem_name}
Version:	1.4.3
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/sys-filesystem
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8579 |21cr|rubygem-terminal-table-3.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name terminal-table

Summary:	Simple, feature rich ascii table generation library
Name:		rubygem-%{gem_name}
Version:	3.0.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/terminal-table
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8580 |21cr|rubygem-test-unit-3.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  test-unit

Name:		rubygem-%{gem_name}
Version:	3.3.6
Release:	1
Summary:	Unit testing framework for Ruby
Group:		Development/Ruby
License:	BSD
Url:		http://test-unit.github.io/
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem-bundler
BuildRequires:	rubygem-kramdown
BuildRequires:	rubygem-packnga
BuildRequires:	rubygem-rake
BuildRequires:	rubygem-yard

BuildArch:	noarch

%description
test-unit (Test::Unit) is unit testing framework for Ruby, based on xUnit principles. 
These were originally designed by Kent Beck, creator of extreme programming software 
development methodology, for Smalltalk's SUnit. It allows writing tests, checking 
results and automated testing in Ruby.

%files
%doc README.* COPYING*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/test/*.rb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8581 |21cr|rubygem-text-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	text

Summary:	Collection of text algorithms
Name:		rubygem-%{gem_name}
Version:	1.3.1
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		http://github.com/threedaymonk/text
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc COPYING.txt README.rdoc
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc COPYING.txt README.rdoc
%{gem_dir}/doc/%{gem_name}-%{version}

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}


%build
%gem_build


%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

# Remove docs: we have it with our macro
rm -f %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{COPYING.txt,README.rdoc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8582 |21cr|rubygem-tilt-2.0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	tilt

Summary:	Generic interface to multiple Ruby template engines
Name:		rubygem-%{gem_name}
Version:	2.0.10
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		http://github.com/rtomayko/tilt/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Generic interface to multiple Ruby template engines

%files
%{_bindir}/tilt
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#-----------------------------------------------

%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.


%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}
#-----------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin/tilt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8583 |21cr|rubygem-trailblazer-option-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name trailblazer-option

Summary:	Wrap an option at compile-time and call it at runtime
Name:		rubygem-%{gem_name}
Version:	0.1.2
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/trailblazer-option
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Wrap an option at compile-time and call it at runtime, which allows to have
the common -> (), :method or Callable pattern used for most options.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8584 |21cr|rubygem-treetop-1.4.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gemname treetop
Summary:	A Ruby-based text parsing and interpretation DSL
Name:		rubygem-%{gemname}
Version:	1.4.10
Release:	8
Source0:	http://rubygems.org/downloads/%{gemname}-%{version}.gem
License:	MIT
Group:		System/Servers
Url:		http://www.rubyonrails.org/
BuildArch:	noarch
BuildRequires:	ruby-RubyGems
Provides:       rubygem(%{gemname}) = %{version}

%description
A Ruby-based text parsing and interpretation DSL.

%prep
%setup -c

%build

%install

gem install -E -n %{buildroot}%{_bindir} --local --install-dir %{buildroot}/%{ruby_gemdir} --force %{SOURCE0}

rm -rf %{buildroot}%{ruby_gemdir}/cache

%clean

%files
%{_bindir}/tt
%{ruby_gemdir}/gems/%{gemname}-%{version}
%{ruby_gemdir}/specifications/%{gemname}-%{version}.gemspec
%doc %{ruby_gemdir}/doc/%{gemname}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8585 |21cr|rubygem-uber-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name uber

Summary:	Gem-authoring framework
Name:		rubygem-%{gem_name}
Version:	0.1.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/uber
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Gem-authoring framework.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8586 |21cr|rubygem-unicode-display_width-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name unicode-display_width

Summary:	Determines the monospace display width of a string
Name:		rubygem-%{gem_name}
Version:	2.3.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/unicode-display_width
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Determines the monospace display width of a string using EastAsianWidth.txt,
Unicode general category, and other data.

%files
%doc CHANGELOG.md README.md
%license MIT-LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG.md README.md
%license MIT-LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8587 |21cr|rubygem-vanagon-0.31.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name vanagon

Summary:	Tool for develop the puppet-agent
Name:		rubygem-%{gem_name}
Version:	0.31.0
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://github.com/puppetlabs/vanagon
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Tool for build a single package out of a project, which can itself contain one
or more components. This tooling is being used to develop the puppet-agent
package, which contains components such as openssl, ruby, and augeas among others.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8588 |21cr|rubygem-webrick-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name webrick

Summary:	HTTP server toolkit
Name:		rubygem-%{gem_name}
Version:	1.7.0
Release:	1
License:	BSD
Group:		Development/Ruby
Url:		https://rubygems.org/gems/webrick
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
HTTP server toolkit that can be configured as an HTTPS server,
a proxy server, and a virtual-host server.

%files
%doc README.md
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8589 |21cr|rubygem-windows_error-0.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name windows_error

Summary:	Easily accessible reference for standard Windows API Error Codes
Name:		rubygem-%{gem_name}
Version:	0.1.4
Release:	1
License:	BSD
Group:		Development/Ruby
Url:		https://rubygems.org/gems/windows_error
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE.txt
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8590 |21cr|rubygem-winrm-2.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name winrm

Summary:	Ruby library for Windows Remote Management
Name:		rubygem-%{gem_name}
Version:	2.3.6
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/winrm
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8591 |21cr|rubygem-winrm-fs-1.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name winrm-fs

Summary:	Ruby library for file system operations via Windows Remote Management
Name:		rubygem-%{gem_name}
Version:	1.3.5
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/winrm-fs
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8592 |21cr|rubygem-yard-0.9.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name yard

Name:       rubygem-%{gem_name}
Version:    0.9.25
Release:    1
Summary:    Documentation tool for consistent and usable documentation in Ruby
Group:      Development/Ruby
License:    MIT
URL:        http://yardoc.org
Source0:    https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires: rubygems-devel
BuildArch:  noarch
Provides:   rubygem(%{gem_name}) = %{version}

%description
YARD is a documentation generation tool for the Ruby programming language.
It enables the user to generate consistent, usable documentation that can be
exported to a number of formats very easily, and also supports extending for
custom Ruby constructs such as custom class level definitions.

%files
%{_bindir}/*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.md
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

#remove unneded
rm -rf %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{po,.*ignore,.yard*,.rspec,.*.yml}
find %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version} -name \*.time_stamp -type f -exec rm -f {} \;

#fix shebang
find %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version} -type f -exec sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8593 |21cr|rubyripper-0.8.0-0.rc3.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The last stable release was in Dec 2011 and in 2013 the main
# developer lost interest: see http://code.google.com/p/rubyripper/
# Switch to a more active fork (last commit in May 2016)
%define	git	0
%define	gitdate	20160512
%if %{git}
%define	rel		0.%{gitdate}.1
%else
%define	rel		0.rc3.1
%endif

Summary:	A high precision cd ripper
Name:		rubyripper
Version:	0.8.0
Release:	%{rel}
License:	GPLv3+
Group:		Sound
# Original URL: http://code.google.com/p/rubyripper/
Url:		https://github.com/bleskodev/rubyripper
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
%else
Source0:	https://github.com/bleskodev/rubyripper/archive/%{name}-0.8.0rc3.tar.gz
%endif
# configure sets RUBYDIR="/lib/rubyripper" and installs all the files into it
# but we want them in %%{ruby_libdir}: patch the main scritps to search in it
Patch0:		rubyripper-0.8.0rc3-fix-rubydir.patch
Patch1:		rubyripper-0.8.0rc3-fix-env-shebangs.patch
BuildRequires:	cd-discid
BuildRequires:	cdparanoia
BuildRequires:	cdtool
BuildRequires:	ruby >= 1.9
BuildRequires:	ruby-devel
BuildRequires:	rubygem-gettext >= 3.2.4
BuildRequires:	rubygem-gtk3
BuildRequires:	rubygem-rexml
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(ruby-gtk3)
Requires:	cd-discid
Requires:	cdparanoia
Requires:	cdtool
Requires:	flac
Requires:	lame
Requires:	mp3gain
Requires:	normalize
Requires:	ruby >= 1.9
Requires:	rubygem-gettext
Requires:	rubygem-gtk3
Requires:	rubygem-rexml
Requires:	sox
Requires:	vorbis-tools
Requires:	vorbisgain
Recommends:	rubyripper-gtk
BuildArch:	noarch

%description
Rubyripper is a digital audio extraction algorithm that uses cdparanoia error
correcting power and it's own secure ripping algorithm to make sure that a CD
rip is done successfully and accurately.

%files
%doc README.md CHANGELOG GPL-3.txt
%{_bindir}/rrip_cli
%{ruby_libdir}/%{name}

#-----------------------------------------------------------------------------

%package -n rubyripper-gtk
Summary:	GTK front-end for rubyripper
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{EVRD}
Requires:	rubygem(gtk3)

%description -n rubyripper-gtk
Rubyripper is a digital audio extraction algorithm that uses cdparanoia error
correcting power and it's own secure ripping algorithm to make sure that a CD
rip is done successfully and accurately.
This package contains the GTK3 fron-tend for %{name}.

%files -n rubyripper-gtk
%doc README.md
%{_bindir}/rrip_gui
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{name}-%{gitdate}
%else
%setup -qn %{name}-0.8.0rc3
%endif
%apply_patches
	

%build
%configure \
		--enable-lang=all \
		--enable-cli \
		--enable-gtk3

# Force the RUBYDIR path to be the one we want (%%{ruby_libdir})
sed -i -e 's|/usr/lib/rubyripper|/usr/share/ruby/rubyripper|' Makefile


%install
%makeinstall_std

# Fix perms
find %{buildroot}%{ruby_libdir}/%{name} -name "*.rb" | xargs chmod +x

%if 0
# Somehow configure does not find the installed gettext gem package
#  and then does not install the lang files: do it manually
for lang in nl de fr hu ru es se bg it da; do
	mkdir -p %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES
	install -m 644 locale/${lang}/LC_MESSAGES/%{name}.mo %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/%{name}
done


# Makefile does not install the lang files
mkdir %{buildroot}%{_datadir}/locale
cp -r locale/* %{buildroot}%{_datadir}/locale
%endif

#find_lang %%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8594 |21cr|R-ucminf-1.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  ucminf
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.3
Release:          5
Summary:          General-purpose unconstrained non-linear optimization
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_1.1-3.tar.gz

Requires:         R-numDeriv 
BuildRequires:    R-devel Rmath-devel texlive

BuildRequires:    R-numDeriv 
BuildRequires:    lapack-devel


%description
An algorithm for general-purpose unconstrained non-linear optimization.
The algorithm is of quasi-Newton type with BFGS updating of the inverse
Hessian and soft line search with a trust region type monitoring of the
input to the line search algorithm. The interface of 'ucminf' is designed
for easy interchange with 'optim'.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8595 |21cr|ruijieclient-0.7.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A ruijie network supplicant for GNU/Linux
Name:		ruijieclient
Version:	0.7.0
Release:	4
License:	LGPLv3+
Group:		System/Servers
URL:		http://code.google.com/p/ruijieclient/
Source:		http://ruijieclient.googlecode.com/files/%{name}-%{version}.tar.bz2
Source1:	ruijie.conf
BuildRequires:	libpcap-devel

%description
RuijieClient is a ruijie network supplicant for GNU/Linux which is based
on mystar, but re-writed form scratch.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

rm -fr %buildroot%_datadir/doc

install -D %{SOURCE1} -m0644 %buildroot%_sysconfdir/ruijie.conf

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc README
%{_bindir}/ruijieclient
%config(noreplace) %_sysconfdir/ruijie.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8596 |21cr|rules_du_jour-1.30-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	This script updates SpamAssassin RuleSet files from the internet
Name:		rules_du_jour
Version:	1.30
Release:	7
License:	GPL
Group:		Networking/Mail
URL:		http://sandgnat.com/rdj/rules_du_jour
Source0:	http://sandgnat.com/rdj/rules_du_jour
Requires:	curl
Requires:	spamassassin
Requires:	spamassassin-spamd
Requires:	wget
BuildArch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}-root

%description
This script updates SpamAssassin RuleSet files from the internet.

%prep

%setup -c -T -n %{name}-%{version}
cp %{SOURCE0} %{name}

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_sysconfdir}/cron.daily
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/mail/spamassassin/RulesDuJour

cat > RulesDuJour << EOF
TRUSTED_RULESETS="TRIPWIRE EVILNUMBERS SARE_RANDOM"
SA_DIR="%{_sysconfdir}/mail/spamassassin"
SA_RESTART="%{_initrddir}/spamd restart"
#SA_RESTART="svc -du /service/spamd /service/spamd/log"
EOF

install -m0755 %{name} %{buildroot}%{_sbindir}/
ln -s %{_sbindir}/%{name} %{buildroot}%{_sysconfdir}/mail/spamassassin/RulesDuJour/%{name}
ln -s %{_sbindir}/%{name} %{buildroot}%{_sysconfdir}/cron.daily/%{name}

install -m0644 RulesDuJour %{buildroot}%{_sysconfdir}/sysconfig/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%dir %attr(0755,root,root) %{_sysconfdir}/mail/spamassassin/RulesDuJour
%config(noreplace) %{_sysconfdir}/sysconfig/RulesDuJour
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0755,root,root) %{_sysconfdir}/mail/spamassassin/RulesDuJour/%{name}
%attr(0755,root,root) %{_sysconfdir}/cron.daily/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8597 |21cr|runsuid-1.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Runs scripts with different group/user id
Name:		runsuid
Version:	1.5
Release:	10
License:	GPL
Group:		System/Base
Url:		http://www.ftp.uni-erlangen.de/~runsuid/
Source0:	http://www.ftp.uni-erlangen.de/~runsuid/%{name}-%{version}.tgz
BuildRequires:	glibc-devel

%description
runsuid runs a script with another user-id/group-id, when 
the user has the right to do so according to the configuration file.
If used in the right combination with access restrictions this can 
ease the life of system administrators. Additionally, it can be used 
for running CGI-scripts as different fixed users.

%prep
%setup -q %{name}-%{version}

%build
perl -pi -e "s/MAKE_CFLAGS=-O3 -Wall/MAKE_CFLAGS=%{optflags}/" Makefile

%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}
install -d  %{buildroot}%{_sbindir}
install -D %{name} %{buildroot}%{_sbindir}/%{name}

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc README runsuid.rc.example
%attr(755,root,root) %{_sbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8598 |21cr|R-urca-1.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  urca
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.3.0
Release:          3
Summary:          Unit root and cointegration tests for time series data
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/urca_1.3-0.tar.gz
Requires:         R-methods 
Requires:         R-nlme R-graphics R-stats 
BuildRequires:    R-devel Rmath-devel  R-methods
BuildRequires:    R-nlme R-graphics R-stats 
BuildRequires:    blas-devel
BuildRequires:    lapack-devel

%description
Unit root and cointegration tests encountered in applied econometric
analysis are implemented.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8599 |21cr|rute-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Rute Users Tutorial and Exposition
Name:		rute
Version:	1.0.0
Release:	8
License:	Open Content License
Group:		Books/Computer books
Url:		http://rute.2038bug.com
Source0:	%{name}.html.tar.bz2
Requires:	xdg-utils
BuildArch:	noarch

%description
Rute is a beginners guide to Linux and Unix-like systems. It is designed as a
dependency consistent tutorial document. This means you can (and should) read
it from beginning to end in consecutive order. Rute also satisfies the
requirements for course notes for a Linux training course.

%files
%defattr(-,root,root,0755)
%doc *
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build

%install
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Beginners Guide to Linux
Comment=Rute Users Tutorial and Exposition
Exec=xdg-open %{_docdir}/%{name}/index.html
Icon=documentation_section
Type=Application
Categories=Documentation;System;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8600 |21cr|rutoken-linux-gui-manager-0-0.gite7683f.956657.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# https://github.com/AktivCo/rutoken-linux-gui-manager
%define commit_main e7683f6bcca6eeb8368f9f6946d39a08c6249936
%define commit_main_short %(echo %{commit_main} | head -c 6)

# https://github.com/AktivCo/2fa-tuner-lib
%define commit_lib 95665760c99172e16e4ab617b126edb75cc538cc
%define commit_lib_short %(echo %{commit_lib} | head -c 6)

Summary:	GUI tool to setup Rutoken
Summary(ru_RU.UTF-8):	Графическая утилита для работы с Рутокенами
Name:		rutoken-linux-gui-manager
Version:	0
Release:	0.git%{commit_main_short}.%{commit_lib_short}.2
License:	MIT
Group:		System/Configuration/Other
Url:		https://github.com/AktivCo/rutoken-linux-gui-manager
Source0:	https://github.com/AktivCo/rutoken-linux-gui-manager/archive/%{commit_main}.tar.gz?/rutoken-linux-gui-manager-%{commit_main}.tar.gz
Source1:	https://github.com/AktivCo/2fa-tuner-lib/archive/%{commit_lib}.tar.gz?/2fa-tuner-lib-%{commit_lib}.tar.gz
# https://dev.rutoken.ru/download/attachments/557059/PUB?version=6&modificationDate=1586955473000&api=v2
# https://github.com/AktivCo/rutoken-linux-gui-manager/issues/4
Source2:	rutoken.png
# https://github.com/AktivCo/2fa-tuner-lib/pull/4
Patch0001:	0001-rosa-update-list-of-packages.patch
Patch10:	no-update-check.diff
BuildArch:	noarch

# _install_packages() in https://github.com/AktivCo/2fa-tuner-lib/blob/master/implementation/rosa/setup.sh
Requires:	ccid
Requires:	opensc
Requires:	p11-kit
# XXX what for?
# https://github.com/AktivCo/rutoken-linux-gui-manager/issues/3
#Requires:	rpmdevtools
Requires:	dialog
# XXX what for?!
#Requires:	%{_lib}p11-devel
Requires:	engine_pkcs11
Requires:	pam_pkcs11
Requires:	pam_pkcs11-tools
Requires:	tkinter3
# https://github.com/AktivCo/2fa-tuner-lib/issues/3
Requires:	pcsc-tools
Requires:	gettext
# messages are in Russian only
Requires:	locales-ru

%description
GUI tool to setup Rutoken.
Requires librtpkcs11ecp from https://www.rutoken.ru/support/download/pkcs

%description -l ru_RU.UTF-8
Графическая утилита для работы с Рутокенами.
Требуется проприетарная библиотека librtpkcs11ecp
из https://www.rutoken.ru/support/download/pkcs

%files
%license LICENSE
%doc README.md
%{_bindir}/rutoken-linux-gui-manager
%{_datadir}/rutoken-linux-gui-manager
%{_datadir}/icons/rutoken-linux-gui-manager.png
%{_datadir}/applications/rutoken-linux-gui-manager.desktop

#------------------------------------------------------------------

%prep
%setup -q -n rutoken-linux-gui-manager-%{commit_main}
rmdir 2fa-tuner-lib
tar -xf %{SOURCE1}
mv 2fa-tuner-lib-%{commit_lib} 2fa-tuner-lib
%autopatch -p1

%build
:

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/rutoken-linux-gui-manager
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons

rm -fv token-assistent.command
rm -fv token-assistent.installer
rm -fv .token-assistent.desktop
rm -fv .gitignore
rm -fv .gitmodules

cp -rv * %{buildroot}%{_datadir}/rutoken-linux-gui-manager/

cat > %{buildroot}%{_bindir}/rutoken-linux-gui-manager << 'EOF'
#!/bin/bash
exec %{_datadir}/rutoken-linux-gui-manager/token-assistent.run "$@"
EOF
chmod 755 %{buildroot}%{_bindir}/rutoken-linux-gui-manager

install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/rutoken-linux-gui-manager.png
cat > %{buildroot}%{_datadir}/applications/rutoken-linux-gui-manager.desktop << 'EOF'
[Desktop Entry]
Version=1.0
Name=Rutoken Setup Tool
Name[ru]=Программа настройки Рутокенов
Categories=Settings;
Exec=%{_bindir}/rutoken-linux-gui-manager
Terminal=false
Type=Application
Icon=rutoken-linux-gui-manager
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8601 |21cr|rutorrent-3.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Web frontend for the rTorrent bittorrent client
Name:		rutorrent
Version:	3.5
Release:	3
License:	GPLv3
Group:		Networking/File transfer
URL:		http://code.google.com/p/rutorrent/
Source:		http://rutorrent.googlecode.com/files/%{name}-%{version}.tar.gz
# Plugins are here in the same .spec for simplicity as they mostly share
# rutorrent's version number. If this changes in the future or it is otherwise
# seemed better, this can be splitted to one or more separate src.rpms.
# - Anssi 08/2010
Source1:	http://rutorrent.googlecode.com/files/plugins-%{version}.tar.gz
Patch0:		rutorrent-fhs.patch
Patch1:		rutorrent-log.patch
# Load a "backup" config file before the actual config file.
# In case of an unhandled .rpmnew file, the possible newly added configuration
# options are loaded from the backup file. This is similar in how e.g. normal
# initscript configurations are handled. - Anssi 08/2010
Patch2:		rutorrent-defaults.patch
# Disable non-service plugins by default, but allow the user to enable them
# via GUI. http://code.google.com/p/rutorrent/wiki/Plugins recommends to not
# enable unused plugins, and this way we don't have to split them in many
# packages. - Anssi 03/2012
Patch3:		rutorrent-disable-plugins-by-default.patch
BuildArch:	noarch
Requires:	webserver
# suggests to allow other webservers:
Recommends:	apache-mod_php
# for apache user:
Requires(pre):	apache-conf

%description
rutorrent is a web frontend for the rTorrent bittorrent client.

Official plugins are included in %{name}-plugins subpackage.

Note that you need to either configure an SCGI module for your web
server or install %{name}-plugins and enable rpc or httprpc
plugins for rutorrent to work. See the online documentation for more
details. All configuration files, including plugin configuration,
are in %{_sysconfdir}/%{name}.

%package plugins
Summary:	Official plugins for ruTorrent
Group:		Networking/File transfer
Requires:	%{name} = %{version}
%define old_plugins autotools chunks cookies cpuload create data datadir diskspace edit	erasedata extsearch feeds geoip _getdir httprpc loginmgr ratio retrackers rpc rss rssurlrewrite scheduler seedingtime show_peers_like_wtorrent source theme throttle tracklabels trafic unpack
Obsoletes:	%(for plugin in %old_plugins; do echo -n "rutorrent-plugin-$plugin < 3.4-1 "; done)
		
%description plugins
This package contains the official plugins for ruTorrent.

The plugins are disabled by default, they can be enabled via GUI or
in %{_sysconfdir}/%{name}/plugins.ini.

%prep
%setup -q -n %{name} -a 1
%apply_patches
find -name '*.00??*' -print -delete

# make sure a directory layout change is not missed
[ $(ls | wc -l) -eq 10 ]
# make sure the fhs patch does not miss anything
grep -R -e 'conf/' -e "'/share" . && exit 1

# for defaults.patch:
cp -a conf/config.php php/defaults-rpm.php

cat > README.install.urpmi <<EOF
Note that you will need to either configure an SCGI module for your web server
or install %{name}-plugins and enable rpc or httprpc in %{_sysconfdir}/%{name}/plugins.ini
for rutorrent to work. See the online documentation for more details:
http://code.google.com/p/rutorrent/wiki/WebSERVER

The official plugins are contained in the %{name}-plugins subpackage.

On this %product_distribution packaging of rutorrent and its plugins, all configuration
files are in %{_sysconfdir}/%{name}.
The access configuration is in %{_webappconfdir}/%{name}.conf. By default only
localhost is allowed to use rutorrent.
EOF

cat > README.3.4.upgrade.urpmi <<EOF
All the plugins have been moved to a single %{name}-plugins subpackage.

The plugins are disabled by default. They can be enabled via GUI or
in %{_sysconfdir}/%{name}/plugins.ini.
EOF

%install
install -d -m755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
Alias /%{name} %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Require local granted
</Directory>
EOF

install -d -m755 %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
%{_logdir}/%{name}/*.log {
    missingok
}
EOF

install -d -m755 %{buildroot}%{_datadir}/%{name}
cp -a *.html *.ico css images js lang php plugins %{buildroot}%{_datadir}/%{name}

install -d -m755 %{buildroot}%{_localstatedir}/lib/%{name}
cp -a share %{buildroot}%{_localstatedir}/lib/%{name}

install -d -m755 %{buildroot}%{_sysconfdir}/%{name}
cp -a conf/* %{buildroot}%{_sysconfdir}/%{name}

install -d -m755 %{buildroot}%{_logdir}/%{name}

rm -rf lists
mkdir lists
rm -rf plugindocs
mkdir plugindocs
for dir in %{buildroot}%{_datadir}/%{name}/plugins/*; do
	plugin=$(basename "$dir")
	version=$(sed -n 's,plugin.version: ,,p' "$dir/plugin.info" | tr -d '\r')
	# check that rpm version is set correctly:
	[ "%{version}" = "$version" ]

	touch lists/$plugin.list
	echo %{_datadir}/%{name}/plugins/$plugin > lists/$plugin.list
	if [ -e "$dir/conf.php" ]; then
		install -d -m755 %{buildroot}%{_sysconfdir}/%{name}/plugins/$plugin
		cp "$dir/conf.php" %{buildroot}%{_sysconfdir}/%{name}/plugins/$plugin
		mv "$dir/conf.php" "$dir/defaults-rpm.php"
		sed -i '/rtorrent.php.error/s/conf.php/defaults-rpm.php/' $dir/plugin.info
		echo "%dir %{_sysconfdir}/%{name}/plugins/$plugin" >> lists/$plugin.list
		echo "%config(noreplace) %{_sysconfdir}/%{name}/plugins/$plugin/conf.php" >> lists/$plugin.list
	fi
	for file in $dir/readme*.txt; do
		[ -e "$file" ] || continue
		mkdir -p plugindocs/$plugin
		mv "$file" plugindocs/$plugin/
		#echo "%%doc plugins/$plugin/$(basename "$file")" >> lists/$plugin.list
	done
done

# include all plugins in a single package
cat lists/*.list > all-plugins.list

%files
%doc README.*urpmi
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/access.ini
%config(noreplace) %{_sysconfdir}/%{name}/config.php
%config(noreplace) %{_sysconfdir}/%{name}/plugins.ini
%dir %{_sysconfdir}/%{name}/plugins
%dir %{_sysconfdir}/%{name}/users
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/css
%{_datadir}/%{name}/favicon.ico
%{_datadir}/%{name}/images
%{_datadir}/%{name}/index.html
%{_datadir}/%{name}/js
%{_datadir}/%{name}/lang
%{_datadir}/%{name}/php
%dir %{_datadir}/%{name}/plugins
%dir %{_localstatedir}/lib/%{name}
%attr(0755,apache,apache) %{_localstatedir}/lib/%{name}/share
%attr(0755,apache,apache) %dir %{_logdir}/%{name}

%files plugins -f all-plugins.list
%doc plugindocs/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8602 |21cr|rutracker-news-0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without qt5

Summary:	Rutracker.org new releases fetcher
Name:		rutracker-news
Version:	0.8
Release:	2
License:	GPLv2+
Group:		Networking/News
Url:		https://github.com/Pulfer/rutracker-news
# From git by tag, https://github.com/Pulfer/rutracker-news/archive/%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
%if %{with qt5}
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
%else
BuildRequires:	qt4-devel
%endif

%description
Rutracker.org new releases fetcher. Supports most popular subforums (various
movies, TV series, anime etc). Fetches also IMDB ratings where it's possible.
See project homepage for more info.

GUI in Russian only (other languages make no sense for this application).

%files
%doc AUTHORS COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%if %{with qt5}
%qmake_qt5
%else
%qmake_qt4
%endif
%make

%install
install -D %{name} %{buildroot}%{_bindir}/%{name}

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Rutracker News
Name[ru]=Rutracker News
Comment=Rutracker.org new releases fetcher
Comment[ru]=Просмотр информации о новых релизах на Rutracker.org
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Qt;Network;News;
EOF

# menu icons
for N in 16 32 48 64 128;
do
convert %{name}.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8603 |21cr|R-vcd-1.3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  vcd
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.3.1
Release:          5
Summary:          Visualizing Categorical Data
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/vcd_1.3-1.tar.gz
Requires:         R-MASS R-grid R-colorspace R-stats R-utils
Requires:         R-grDevices R-KernSmooth R-mvtnorm R-kernlab
%if %{without bootstrap}
Requires:         R-HSAUR 
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-MASS R-grid R-colorspace R-stats R-utils
BuildRequires:    R-grDevices R-KernSmooth R-mvtnorm R-kernlab
%if %{without bootstrap}
BuildRequires:    R-HSAUR 
%endif

%description
Visualization techniques, data sets, summary and inference procedures
aimed particularly at categorical data. Special emphasis is given to
highly extensible grid graphics. The package was inspired by the book
"Visualizing Categorical Data" by Michael Friendly.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%if %{without bootstrap}
%check
%{_bindir}/R CMD check %{packname}
%endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS.Rd
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8604 |21cr|R-vcdExtra-0.6.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global packname  vcdExtra
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.6.8
Release:          5
Summary:          Vcd extensions and additions
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.6-8.tar.gz

Requires:         R-vcd R-gnm 
Requires:         R-MASS 
Requires:         R-ca R-Fahrmeir R-VGAM R-plyr R-rgl R-nnet R-ggplot2 R-Sleuth2 R-lattice
Recommends:       R-car R-effects R-gmodels R-lmtest
BuildRequires:    R-devel Rmath-devel texlive-latex R-vcd R-gnm
BuildRequires:    R-MASS 
BuildRequires:    R-ca R-Fahrmeir R-VGAM R-plyr R-rgl R-nnet R-ggplot2 R-Sleuth2 R-lattice 
BuildRequires:    x11-server-xvfb

%description
Provides additional data sets, methods and documentation to complement the
vcd package for Visualizing Categorical Data and the gnm package for
Generalized Nonlinear Models. In particular, vcdExtra extends mosaic,
assoc and sieve plots from vcd to handle glm() and gnm() models and adds a
3D version in mosaic3d.  Additionally, methods are provided for comparing
and visualizing lists of glm and loglm objects.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

# Fail even with xvfb due to GL problems
#check
#xvfb-run %{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8605 |21cr|R-VGAM-1.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  VGAM
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.1.5
Release:          4
Summary:          Vector Generalized Linear and Additive Models
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/VGAM_1.1-5.tar.gz
Requires:         R-splines
Requires:         R-methods
Requires:         R-stats
Requires:         R-stats4
Requires:         R-VGAMdata
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex
BuildRequires:    R-splines
BuildRequires:    R-methods
BuildRequires:    R-stats
BuildRequires:    R-stats4
BuildRequires:    R-VGAMdata
BuildRequires:    pkgconfig(lapack)

%description
Vector generalized linear and additive models, and associated models
(Reduced-Rank VGLMs, Quadratic RR-VGLMs, Reduced-Rank VGAMs). This package
fits many models and distribution by maximum likelihood estimation (MLE)
or penalized MLE. Also fits constrained ordination models in ecology.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8606 |21cr|R-VGAMdata-0.9.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  VGAMdata
%global rlibdir  %{_datadir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          0.9.7
Release:          4
Summary:          Data supporting the VGAM package
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_0.9-7.tar.gz
BuildArch:        noarch
Requires:         R-core



Recommends:       R-VGAM 
BuildRequires:    R-devel Rmath-devel 

%description
Data sets to accompany the VGAM package. These are used to illustrate
vector generalized linear and additive models (VGLMs/VGAMs), and
associated models (Reduced-Rank VGLMs, Quadratic RR-VGLMs, Row-Column
Interaction Models, and constrained and unconstrained ordination models in

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/CITATION
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8607 |21cr|R-vioplot-0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  vioplot
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.2
Release:          5
Summary:          Violin plot
Group:            Sciences/Mathematics
License:          BSD
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-sm 


BuildRequires:    R-devel Rmath-devel  R-sm


%description
A violin plot is a combination of a box plot and a kernel density plot.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8608 |21cr|rvm-1.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define librdslwp %mklibname rdslwp %{major}
%define librvmlwp %mklibname rvmlwp %{major}
%define libseglwp %mklibname seglwp %{major}
%define devname %mklibname %{name} -d

Summary:	RVM persistent recoverable memory library
Name:		rvm
Version:	1.28
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.coda.cs.cmu.edu/doc/html/index.html
Source:		https://github.com/cmusatyalab/coda/archive/%{name}-%{version}.tar.gz?/coda-%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(lwp)

%description
The RVM persistent recoverable memory library. The RVM library is used by
the Coda distributed filesystem.

#------------------------------------------------------------------------------

%package -n %{librdslwp}
Summary:	RVM shared library
Group:		System/Libraries
Conflicts:	%{_lib}rvm1 < 1.20
Conflicts:	%{_lib}rvm2 < 1.20
Obsoletes:	%{_lib}rvm2 < 1.20

%description -n %{librdslwp}
The RVM persistent recoverable memory library. The RVM library is used by
the Coda distributed filesystem.

%files -n %{librdslwp}
%{_libdir}/librdslwp.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{librvmlwp}
Summary:	RVM shared library
Group:		System/Libraries
Conflicts:	%{_lib}rvm1 < 1.20
Conflicts:	%{_lib}rvm2 < 1.20

%description -n %{librvmlwp}
The RVM persistent recoverable memory library. The RVM library is used by
the Coda distributed filesystem.

%files -n %{librvmlwp}
%{_libdir}/librvmlwp.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{libseglwp}
Summary:	RVM shared library
Group:		System/Libraries
Conflicts:	%{_lib}rvm1 < 1.20
Conflicts:	%{_lib}rvm2 < 1.20

%description -n %{libseglwp}
The RVM persistent recoverable memory library. The RVM library is used by
the Coda distributed filesystem.

%files -n %{libseglwp}
%{_libdir}/libseglwp.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	RVM library development files
Group:		Development/Other
Requires:	%{librdslwp} = %{EVRD}
Requires:	%{librvmlwp} = %{EVRD}
Requires:	%{libseglwp} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and static libraries for developing programs using the RVM library.
The RVM library is used by the Coda distributed filesystem.

%files -n %{devname}
%{_includedir}/*/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#------------------------------------------------------------------------------

%package tools
Summary:	RVM tools
Group:		Development/Tools

%description tools
Userspace tools to initialize and manipulate RVM log and data segments.
The RVM library is used by the Coda distributed filesystem.

%files tools
%{_sbindir}/rdsinit
%{_sbindir}/rvmutl
%{_mandir}/man1/rdsinit.1*
%{_mandir}/man1/rvmutl.1*

#------------------------------------------------------------------------------

%prep
# Make sure to build only rvm library!
%setup -qn coda-%{name}-%{version}/lib-src/rvm

%build
autoreconf -fi
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8609 |21cr|R-vsn-3.30.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  vsn
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.30.0
Release:          5
Summary:          Variance stabilization and calibration for microarray data
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/vsn.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/vsn_3.30.0.tar.gz
Requires:         R-Biobase R-methods R-affy R-lattice R-limma
Requires:         R-affydata R-hgu95av2cdf
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-Biobase R-methods R-affy R-lattice
BuildRequires:    R-affydata R-hgu95av2cdf R-limma

%description
The package implements a method for normalising microarray intensities,
both between colours within array, and between arrays. The method uses a
robust variant of the maximum-likelihood estimator for the stochastic
model of microarray data described in the references (see vignette). The
model incorporates data calibration (a.k.a. normalization), a model for
the dependence of the variance on the mean intensity, and a variance
stabilizing data transformation. Differences between transformed
intensities are analogous to "normalized log-ratios". However, in contrast
to the latter, their variance is independent of the mean, and they are
usually more sensitive and specific in detecting differential

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8610 |21cr|rwall-0.17-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
Summary:	Client and server for sending messages to a host's logged in users
Name:		rwall
Version:	0.17
Release:	27
License:	BSD
Group:		System/Servers
Source:		ftp://sunsite.unc.edu/pub/Linux/system/network/daemons/netkit-rwall-%{version}.tar.bz2
Source1:	rwalld.service
Patch0:		netkit-rwalld-0.10-banner.patch
Patch2:		netkit-rwall-0.17-strip.patch
Patch4:		netkit-rwall-0.17-droppriv.patch
BuildRequires:	tirpc-devel

%description
The rwall command sends a message to all of the users logged into a specified
host.  Actually, your machine's rwall client sends the message to the rwall
daemon running on the specified host, and the rwall daemon relays the message
to all of the users logged in to that host.  The rwall daemon is run from
/etc/inetd.conf and is disabled by default on Mandriva Linux systems (it can be
very annoying to keep getting all those messages when you're trying to play
Quake--I mean trying to get some work done).

Install rwall if you'd like the ability to send messages to users logged in to
a specified host machine.

%package server
Summary:	Server for sending messages to a host's logged in users
Group:		System/Servers
BuildRequires:	systemd-units

%description server
The rwall command sends a message to all of the users logged into
a specified host.  The rwall-server package contains the daemon for
receiving such messages, and is disabled by default on Red Hat Linux
systems (it can be very annoying to keep getting all those messages
when you're trying to play Quake--I mean, trying to get some work done).

Install rwall-server if you'd like the ability to receive messages
from users on remote hosts.

%prep
%setup -q -n netkit-rwall-%{version}
%patch0 -p1
%patch2 -p1 -b .strip
%patch4 -p1 -b .droppriv

%build
%serverbuild
CC="gcc" CFLAGS="%{optflags}" ./configure
%make LIBS="-ltirpc"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man{1,8}
mkdir -p %{buildroot}%{_unitdir}

%makeinstall INSTALLROOT=%{buildroot} MANDIR=%{_mandir}
install -m 755 %{SOURCE1} -D %{buildroot}%{_unitdir}/rwalld.service

rm %{buildroot}%{_mandir}/man8/rwalld.8
ln -s rpc.rwalld.8 %{buildroot}%{_mandir}/man8/rwalld.8

%post server
%systemd_post rwalld.service

%preun server
%systemd_preun rwalld.service

%postun server
%systemd_postun_with_restart rwalld.service

%files
%{_bindir}/rwall
%{_mandir}/man1/rwall.1*

%files server
%{_sbindir}/rpc.rwalld
%{_mandir}/man8/rpc.rwalld.8*
%{_mandir}/man8/rwalld.8*
%{_unitdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8611 |21cr|R-WhatIf-1.5.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname WhatIf
%define aver %(echo %{version} |cut -d. -f1,2)
%define bver %(echo %{version} |cut -d. -f3)

Summary:	Software for Evaluating Counterfactuals
Name:		R-WhatIf
Version:	1.5.10
Release:	1
License:	GPLv3
Group:		Sciences/Mathematics
Url:		http://cran.r-project.org/web/packages/WhatIf/index.html
Source0:	http://cran.r-project.org/src/contrib/%{oname}_%{aver}-%{bver}.tar.gz
BuildRequires:	R-devel
BuildRequires:	R-lpSolve
BuildRequires:	R-pbmcapply
#BuildRequires:	R-testthat
Requires:	R-core
Requires:	R-lpSolve
Requires:	R-pbmcapply
BuildArch:	noarch

%description
Inferences about counterfactuals are essential for prediction,
answering what if questions, and estimating causal effects.
However, when the counterfactuals posed are too far from the data at hand,
conclusions drawn from well-specified statistical analyses become based largely
on speculation hidden in convenient modeling assumptions that few would be 
willing to defend. Unfortunately, standard statistical approaches assume the 
veracity of the model rather than revealing the degree of model-dependence, 
which makes this problem hard to detect. WhatIf offers easy-to-apply methods 
to evaluate counterfactuals that do not require sensitivity testing over 
specified classes of models. If an analysis fails the tests offered here, 
then we know that substantive inferences will be sensitive to at least some 
modeling choices that are not based on empirical evidence, no matter what 
method of inference one chooses to use. WhatIf implements the methods for 
evaluating counterfactuals discussed in Gary King and Langche Zeng, 2006, 
"The Dangers of Extreme Counterfactuals," Political Analysis 14 (2); 
and Gary King and Langche Zeng, 2007, "When Can History Be Our Guide? 
The Pitfalls of Counterfactual Inference," 
International Studies Quarterly 51 (March).

%files
%doc %{_libdir}/R/library/%{oname}/doc
%doc %{_libdir}/R/library/%{oname}/html
%doc %{_libdir}/R/library/%{oname}/NEWS.md
%{_libdir}/R/library/%{oname}/data
%{_libdir}/R/library/%{oname}/demo
%{_libdir}/R/library/%{oname}/DESCRIPTION
%{_libdir}/R/library/%{oname}/help
%{_libdir}/R/library/%{oname}/INDEX
%{_libdir}/R/library/%{oname}/Meta
%{_libdir}/R/library/%{oname}/NAMESPACE
%{_libdir}/R/library/%{oname}/R

#------------------------------------------------------------------

%prep
%setup -qcn %{oname}

%build

%install
mkdir -p %{buildroot}%{_libdir}/R/library
%{_bindir}/R CMD INSTALL -l %{buildroot}%{_libdir}/R/library %{oname}
test -d %{oname}/src && (cd %{oname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{_libdir}/R/library/R.css

#check
#{_bindir}/R CMD check %%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8612 |21cr|R-whisker-0.3.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  whisker
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          0.3.2
Release:          4
Summary:           for R, logicless templating
Group:            Sciences/Mathematics
License:          GPL-3
URL:              None
Source0:          http://cran.r-project.org/src/contrib/whisker_0.3-2.tar.gz
BuildArch:        noarch
Requires:         R-core



Requires:         R-markdown 
BuildRequires:    R-devel Rmath-devel 

BuildRequires:   R-markdown 
%description
logicless templating, reuse templates in many programming languages
including R

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/tests
%{rlibdir}/%{packname}/specs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8613 |21cr|rwho-0.17-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Logged in to local network machines
Name:		rwho
Version:	0.17
Release:	26
License:	BSD
Group:		Monitoring
Url:		ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
Source:		ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-rwho-%{version}.tar.bz2
Source1:	rwhod.service
#FIX for http://www.mandriva.com/security/advisories?name=MDKSA-2005:039
Patch0:		netkit-rwho-0.17-makefiles.patch
Patch2:		rwho-0.17-fixbcast.patch
Patch3:		rwho-0.17-fixhostname.patch
Patch5:		rwho-0.17-CAN-2004-1180.patch

%description
The rwho command displays output similar to the output of the who
command (it shows who is logged in) for all machines on the local
network running the rwho daemon.

Install the rwho command if you need to keep track of the users who
are logged in to your local network.

%prep
%setup -q -n netkit-rwho-%{version}

%patch5 -p1 -b .can-2004-118
# (02/11/05 - vdanen) drop due to it being too intrusive against the security patch
# and we don't support alpha anyways
%patch0 -p1 -b .makefiles
%patch2 -p0 -b .fixbcast
%patch3 -p1 -b .fixhostname

%build
%serverbuild
CFLAGS="%{optflags}" ./configure --with-c-compiler=gcc

make RPM_OPT_FLAGS="%{optflags}"
make RPM_OPT_FLAGS="%{optflags}" -C ruptime

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}/%{_mandir}/man{1,8}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}/var/spool/rwho

make INSTALLROOT=%{buildroot} MANDIR=%{_mandir} install 
make INSTALLROOT=%{buildroot} install -C ruptime MANDIR=%{_mandir}

install -m 755 %{SOURCE1} %{buildroot}%{_unitdir}/rwhod.service

%post
%systemd_post rwhod.service

%preun
%systemd_preun rwhod.service

%postun
%systemd_postun_with_restart rwhod.service

%files
%{_bindir}/ruptime
%{_mandir}/man1/ruptime.1*
%{_bindir}/rwho
%{_mandir}/man1/rwho.1*
%{_sbindir}/rwhod
%{_mandir}/man8/rwhod.8*
%attr(0755,daemon,daemon) /var/spool/rwho
%{_unitdir}/rwhod*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8614 |21cr|R-whoami-1.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  whoami
%global rlibdir  %{_datadir}/R/library

Name:             R-%{packname}
Version:          1.1.1
Release:          4
Summary:          Username, Full Name, Email Address, 'GitHub' Username of the Current User
Group:            Sciences/Mathematics
License:          MIT + file LICENSE
URL:              None
Source0:          https://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core
Recommends:         R-testthat
Requires:         R-utils R-httr R-jsonlite
BuildRequires:    R-devel Rmath-devel
#BuildRequires:    R-testthat
BuildRequires:    R-utils R-httr R-jsonlite

%description
Look up the username and full name of the current user, the current user's
email address and 'GitHub' username, using various sources of system and
configuration information.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8615 |21cr|R-widgetTools-1.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  widgetTools
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.40.0
Release:          5
Summary:          Creates an interactive tcltk widget
Group:            Sciences/Mathematics
License:          LGPL
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/widgetTools_1.40.0.tar.gz
Requires:         R-methods R-utils R-tcltk 
Requires:         R-Biobase 
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-methods R-utils R-tcltk
BuildRequires:    R-Biobase 

%description
This packages contains tools to support the construction of tcltk widgets

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#%check
#%{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8616 |21cr|R-withr-1.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  withr
%global rlibdir  %{_datadir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.0.2
Release:          2
Summary:          Run Code 'With' Temporarily Modified Global State
Group:            Sciences/Mathematics
License:          GPLv2+
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz
BuildArch:        noarch
Requires:         R-core

Requires:         R-stats R-graphics
Recommends:         R-testthat
BuildRequires:    R-devel Rmath-devel
BuildRequires:    R-stats R-graphics
#BuildRequires:   R-testthat

%description
A set of functions to run code 'with' safely and temporarily modified
global state. Many of these functions were originally a part of the
'devtools' package, this provides a simple package with limited
dependencies to provide access to these functions.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8617 |21cr|R-wordcloud-2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  wordcloud
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          2.5
Release:          4
Summary:          Word Clouds
Group:            Sciences/Mathematics
License:          LGPL-2.1
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods R-RColorBrewer 
Requires:         R-slam R-Rcpp 
Requires:         R-tm 
BuildRequires:    R-devel Rmath-devel R-methods R-RColorBrewer
BuildRequires:    R-slam R-Rcpp 
BuildRequires:   R-tm 
%description
Pretty word clouds.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%{rlibdir}/%{packname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8618 |21cr|R-XML-3.98.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  XML
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          3.98.1.1
Release:          5
Summary:          Tools for parsing and generating XML within R and S-Plus
Group:            Sciences/Mathematics
License:          BSD
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/XML_3.98-1.1.tar.gz
Requires:         R-methods R-utils 
Requires:         R-methods 
Requires:         R-bitops 
BuildRequires:    R-devel Rmath-devel  R-methods R-utils
BuildRequires:    R-methods 
BuildRequires:    R-bitops 
BuildRequires:    libxml2-devel

%description
This package provides many approaches for both reading and creating XML
(and HTML) documents (including DTDs), both local and accessible via HTTP
or FTP.  It also offers access to an XPath "interpreter".

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
#doc %%{rlibdir}/%%{packname}/Docs
#doc %%{rlibdir}/%%{packname}/README*
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/examples
%{rlibdir}/%{packname}/exampleData
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8619 |21cr|rxp-1.4.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rxp
Version:	1.4.8
Release:	5
Summary:	XML parser
Group:		Development/Other
License:	GPL
URL:		http://www.cogsci.ed.ac.uk/~richard/rxp.html
Source:		ftp://ftp.cogsci.ed.ac.uk/pub/richard/%{name}-%{version}.tar.bz2
Patch:		%{name}.makefile.patch

%description
RXP is a validating XML parser written in C. It is used by the LT XML toolkit,
and the Festival speech synthesis system.

%prep
%setup
%patch

%build
export CFLAGS=$RPM_OPT_FLAGS
%make

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING COPYRIGHT Manual Threads
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8620 |21cr|R-xtable-1.7.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  xtable
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.7.4
Release:          3
Summary:          Export tables to LaTeX or HTML
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/xtable_1.7-4.tar.gz
BuildRequires:    R-devel
BuildRequires:    Rmath-devel
BuildRequires:    texlive-collection-latex 
BuildRequires:    pkgconfig(lapack)

%description
Coerce data to LaTeX and HTML tables

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8621 |21cr|R-xts-0.12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  xts
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.12.1
Release:          1
Summary:          eXtensible Time Series
Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/xts_%{version}.tar.gz
Requires:         R-zoo 
Requires:         R-timeSeries R-timeDate R-chron R-tis
Recommends:       R-fts R-tseries R-its
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-zoo
BuildRequires:    R-timeSeries R-timeDate R-chron R-tis

%description
Provide for uniform handling of R's different time-based data classes by
extending zoo, maximizing native format information preservation and
allowing for user level customization and extension, while simplifying
cross-class interoperability.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/api_example
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/benchmarks
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/unitTests
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8622 |21cr|R-XVector-0.32.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  XVector
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          0.32.0
Release:          1
Summary:          Representation and manpulation of external sequences
Group:            Sciences/Mathematics
License:          Artistic-2.0
URL:              http://bioconductor.org/packages/release/bioc/html/XVector.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/%{packname}_%{version}.tar.gz

Requires:         R-methods R-BiocGenerics R-S4Vectors
Requires:         R-RUnit
Recommends:       R-Biostrings R-IRanges R-drosophila2probe R-zlibbioc
BuildRequires:    R-devel Rmath-devel R-methods R-BiocGenerics
BuildRequires:    R-methods R-BiocGenerics R-S4Vectors
BuildRequires:    R-RUnit R-IRanges R-zlibbioc

%description
Memory efficient S4 classes for storing sequences "externally" (behind an
R external pointer, or on disk).

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/unitTests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8623 |21cr|rxvt-unicode-9.31-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A color VT102 terminal emulator for the X Window System
Name:		rxvt-unicode
Version:	9.31
Release:	4
License:	GPLv2+
Group:		Terminals
Url:		http://dist.schmorp.de/rxvt-unicode
Source0:	http://dist.schmorp.de/rxvt-unicode/%{name}-%{version}.tar.bz2
Source1:	%{name}.desktop
Patch0:		rxvt-unicode-9.21-Fix-hard-coded-wrong-path-to-xsubpp.patch
# Don't build terminfo files because they are already in ncurses-extraterms
Patch1:		rxvt-unicode-9.31-terminfo.patch
# from Ubuntu
Patch2:		18_Fix-UTF-8-display-with-perl-5.38.diff
# for support wide symbols
Patch3:		rxvt-unicode-enable-wide-glyphs.patch
# X11 locales are required to build IM support
BuildRequires:	libx11-common
BuildRequires:	libstdc++-static-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libptytty)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)
Requires:	ncurses-extraterms

%description
Rxvt-unicode is a clone of the well known terminal emulator rxvt, modified to
store text in Unicode (either UCS-2 or UCS-4) and to use locale-correct input
and output. It also supports mixing multiple fonts at the same time, including
Xft fonts.

%files
%{_bindir}/urxvt*
%{_bindir}/urclock
%{_libdir}/urxvt
%{_datadir}/applications/*.desktop
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

find . -type f -exec chmod a+r {} \;

%build
./autogen.sh

%configure \
	--enable-unicode3 \
	--enable-combining \
	--enable-xft \
	--enable-font-styles \
	--enable-pixbuf \
	--enable-transparency \
	--enable-fading \
	--enable-rxvt-scroll \
	--disable-next-scroll \
	--disable-xterm-scroll \
	--enable-perl \
	--enable-xim \
	--enable-backspace-key \
	--enable-delete-key \
	--enable-resources \
	--disable-8bitctrls \
	--enable-swapscreen \
	--enable-iso14755 \
	--enable-frills \
	--enable-keepscrolling \
	--enable-selectionscrolling \
	--enable-mousewheel \
	--enable-slipwheeling \
	--enable-smart-resize \
	--enable-text-blink \
	--enable-pointer-blank \
	--enable-wide-glyphs \
	--disable-utmp \
	--disable-wtmp \
	--disable-lastlog \
	--with-term=rxvt-unicode-256color \
	--enable-256-color

%make

%install
%makeinstall_std

install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8624 |21cr|R-yaml-2.1.13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  yaml
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          2.1.13
Release:          4
Summary:          Methods to convert R data to YAML and back
Group:            Sciences/Mathematics
License:          BSD_3_clause + file LICENSE
URL:              None
Source0:          http://cran.r-project.org/src/contrib/%{packname}_%{version}.tar.gz



Recommends:       R-testthat 
BuildRequires:    R-devel Rmath-devel 

#BuildRequires:   R-testthat 
%description
This package implements the libyaml YAML 1.1 parser and emitter
(http://pyyaml.org/wiki/LibYAML) for R.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/CHANGELOG
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/THANKS
%{rlibdir}/%{packname}/libs
%{rlibdir}/%{packname}/tests
%{rlibdir}/%{packname}/implicit.re
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8625 |21cr|ryzenadj-0.11.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Adjust power management settings for Ryzen Mobile Processors
Name:		ryzenadj
Version:	0.11.1
Release:	3
License:	GPLv3
Group:		System/Configuration/Hardware
Url:		https://github.com/FlyGoat/RyzenAdj
Source0:	https://github.com/FlyGoat/RyzenAdj/archive/refs/tags/v%{version}.tar.gz?/RyzenAdj-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig(libpci)
Provides:		RyzenAdj = %{EVRD}
ExclusiveArch:	%{x86_64}

%description
Adjust power management settings for Ryzen Mobile Processors.

%files
%license LICENSE
%doc README.md
%{_sbindir}/ryzenadj

#------------------------------------------------------------------

%prep
%autosetup -p1 -n RyzenAdj-%{version}

%build
%cmake \
	-DBUILD_SHARED_LIBS=OFF
%make

%install
mkdir -p %{buildroot}%{_sbindir}
install -m755 build/ryzenadj %{buildroot}%{_sbindir}

%check
# verify that there are no missing libraries
# libryzenadj.so is built but is not needed because of -DBUILD_SHARED_LIBS=OFF
%{buildroot}%{_sbindir}/ryzenadj --help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8626 |21cr|R-Zelig-4.2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  Zelig
%global rlibdir  %{_libdir}/R/library

%define debug_package %{nil}

Name:             R-%{packname}
Version:          4.2.1
Release:          7
Summary:          Everyone's Statistical Software
Group:            Sciences/Mathematics
License:          GPL (>= 2)
URL:              http://cran.r-project.org/web/packages/%{packname}/index.html
Source0:          http://cran.r-project.org/src/contrib/Zelig_4.2-1.tar.gz
Requires:         R-MASS R-boot R-stats 
Requires:         R-VGAM R-MCMCpack R-mvtnorm R-survival R-sandwich R-zoo R-coda R-nnet R-sna R-gee R-lme4 R-anchors R-survey R-quantreg 
Requires:         R-Amelia R-MatchIt
Recommends:       R-systemfit
BuildRequires:    R-devel Rmath-devel texlive-collection-latex R-MASS R-boot R-stats
BuildRequires:    R-VGAM R-MCMCpack R-mvtnorm R-survival R-sandwich R-zoo R-coda R-nnet R-sna R-gee R-lme4 R-anchors R-survey R-quantreg 
BuildRequires:    R-Amelia R-MatchIt

%description
Zelig is an easy-to-use program that can estimate, and help interpret the
results of, an enormous range of statistical models. It literally is
``everyone's statistical software'' because Zelig's simple unified
framework incorporates everyone else's (R) code. We also hope it will
become ``everyone's statistical software'' for applications and teaching,
and so have designed Zelig so that anyone can easily use it or add their
programs to it.  Zelig also comes with infrastructure that facilitates the
use of any existing method, such as by allowing multiply imputed data for
any model, and mimicking the program Clarify (for Stata) that takes the
raw output of existing statistical procedures and translates them into
quantities of direct interest.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/data
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/templates
%{rlibdir}/%{packname}/NEWS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8627 |21cr|rzip-2.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rzip
Summary:	Compression program, similar in functionality to gzip or bzip2
Version:	2.1
Release:	12
Source0:	%{name}-%{version}.tar.bz2
URL:		http://rzip.samba.org/
Group:		Archiving/Compression
License:	GPLv2+
# CVE-2017-8364
Patch1000:	fill-buffer.patch
BuildRequires:	bzip2-devel

%description
rzip is a compression program, similar in functionality to gzip or bzip2,
but able to take advantage long distance redundencies in files, which can
sometimes allow rzip to produce much better compression ratios than other
programs.
The principal advantage of rzip is that it has an effective history
buffer of 900 Mbyte. This means it can find matching pieces of the input
file over huge distances compared to other commonly used compression
programs. The gzip program by comparison uses a history buffer of 32
kbyte and bzip2 uses a history buffer of 900 kbyte. The second advantage
of rzip over bzip2 is that it is usually faster.

%prep
%setup -q

%patch1000 -p1

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
mkdir $RPM_BUILD_ROOT/usr/share
mv $RPM_BUILD_ROOT/usr/man $RPM_BUILD_ROOT/usr/share

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%doc COPYING
%{_mandir}/man1/rzip.1*
%{_bindir}/rzip

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8628 |21cr|R-zlibbioc-1.8.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global packname  zlibbioc
%global rlibdir  %{_libdir}/R/library
%define debug_package %{nil}

Name:             R-%{packname}
Version:          1.8.0
Release:          6
Summary:          An R packaged zlib-1.2.5
Group:            Sciences/Mathematics
License:          Artistic-2.0 + file LICENSE
URL:              http://bioconductor.org/packages/release/bioc/html/%{packname}.html
Source0:          http://bioconductor.org/packages/release/bioc/src/contrib/zlibbioc_1.8.0.tar.gz
BuildRequires:    R-devel Rmath-devel texlive
BuildRequires:    zlib-devel

%description
This package uses the source code of zlib-1.2.5 to create libraries for
systems that do not have these available via other means (most Linux and
Mac users should have system-level access to zlib, and no direct need for
this package). See the vignette for instructions on use.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#check
#{_bindir}/R CMD check %%{packname}

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%{rlibdir}/%{packname}/DESCRIPTION
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/LICENSE
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8629 |21cr|R-zoo-1.8.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap
%global packname  zoo
%global rlibdir  %{_libdir}/R/library

Name:             R-%{packname}
Version:          1.8.9
Release:          1
Summary:          Regular and Irregular Time Series S3 Infrastructure (Z's ordered observations)

Group:            Sciences/Mathematics
License:          GPL-2
URL:              http://cran.r-project.org/web/packages/zoo/index.html
Source0:          http://cran.r-project.org/src/contrib/zoo_1.8-9.tar.gz
Requires:         R-stats R-utils R-graphics R-grDevices R-lattice R-coda
Requires:         R-chron R-lattice R-timeDate R-timeSeries R-tis
%if %{without bootstrap}
Requires:         R-DAAG R-mondate R-strucchange R-tis R-tseries R-xts R-scales
%endif
BuildRequires:    R-devel Rmath-devel texlive-collection-latex
BuildRequires:    R-stats R-utils R-graphics R-grDevices R-lattice R-coda
BuildRequires:    R-chron R-lattice R-timeDate R-timeSeries R-tis
%if %{without bootstrap}
BuildRequires:    R-DAAG R-mondate R-strucchange R-tis R-tseries R-xts R-scales
%endif
%rename R-cran-zoo

%description
An S3 class with methods for totally ordered indexed observations. It is
particularly aimed at irregular time series of numeric vectors/matrices
and factors. zoo's key design goals are independence of a particular
index/date/time class and consistency with ts and base R by providing
methods to extend standard generics.

%prep
%setup -q -c -n %{packname}

%build

%install
mkdir -p %{buildroot}%{rlibdir}
%{_bindir}/R CMD INSTALL -l %{buildroot}%{rlibdir} %{packname}
test -d %{packname}/src && (cd %{packname}/src; rm -f *.o *.so)
rm -f %{buildroot}%{rlibdir}/R.css

#if %%{without bootstrap}
#check
#{_bindir}/R CMD check %%{packname}
#endif

%files
%dir %{rlibdir}/%{packname}
%doc %{rlibdir}/%{packname}/doc
%doc %{rlibdir}/%{packname}/html
%doc %{rlibdir}/%{packname}/CITATION
%{rlibdir}/%{packname}/DESCRIPTION
%doc %{rlibdir}/%{packname}/NEWS
%{rlibdir}/%{packname}/include
%{rlibdir}/%{packname}/INDEX
%{rlibdir}/%{packname}/NAMESPACE
%{rlibdir}/%{packname}/Meta
%{rlibdir}/%{packname}/R
%{rlibdir}/%{packname}/demo
%{rlibdir}/%{packname}/help
%{rlibdir}/%{packname}/libs
%{rlibdir}/zoo/THANKS
%{rlibdir}/zoo/TODO
%{rlibdir}/zoo/WISHLIST

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8630 |21cr|safecat-1.13-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	Secure File Wiping and Deletion
Name:		safecat
Version:	1.13
Release:	7
License:	BSD
Group:		File tools
URL:		http://jeenyus.net/~budney/linux/software/safecat.html
Source0:	http://jeenyus.net/~budney/linux/software/safecat/%{name}-%{version}.tar.bz2
Source1:	README.MDK
BuildRequires:	dietlibc-devel >= 0.20
BuildRequires:  groff-for-man

%description
safecat is an implementation of D. J. Bernstein's maildir algorithm. It can be
used to write mail messages to a qmail-style maildir, or to write data to a
"spool" directory reliably. There are no lockfiles with safecat, and nothing is
left to chance. If safecat returns a successful exit status, then you can be
(practically) 100% sure your data is safely committed to disk. Further, if data
is written to a directory using safecat (or other implementations of the
maildir algorithm), then every file in that directory is guaranteed to be
complete. If safecat fails to write all of the data, there will be no file at
all in the destination directory.

Of course, you know that such a thing cannot be: between UNIX and the different
hardware options available, a 100% guarantee is not possible. However, safecat
takes every precaution possible in writing your data.

%prep

%setup -q
cp %{SOURCE1} README.MDK

%build
echo "diet gcc -Os -pipe -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE" > conf-cc
echo "diet gcc -Os -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -static -s" > conf-ld
echo "%{_prefix}" > conf-root
make

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 safecat %{buildroot}%{_bindir}/
install -m0755 maildir %{buildroot}%{_bindir}/
install -m0644 safecat.1 %{buildroot}%{_mandir}/man1/
install -m0644 maildir.1 %{buildroot}%{_mandir}/man1/

%clean
rm -rf %{buildroot}

%files
%defattr (-,root,root)
%doc COPYING CHANGES INSTALL README README.MDK
%{_bindir}/safecat
%{_bindir}/maildir
%{_mandir}/man1/safecat.1*
%{_mandir}/man1/maildir.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8631 |21cr|safecopy-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		safecopy
Summary:	A data recovery tool
Version:	1.7
Release:	2
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
URL:		http://safecopy.sourceforge.net
Group:		File tools
License:	GPLv2+

%description
safecopy is a data recovery tool which tries to extract as much data a
possible from a seekable but problematic (i.e., damaged sectors) source like
floppy drives, hard disk partitions, CDs, etc., where other tools like dd 
would fail due to I/O errors.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

%files 
%doc README AUTHORS ChangeLog NEWS
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8632 |21cr|sakura-3.8.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight terminal emulator with very few dependencies
Name:		sakura
Version:	3.8.6
Release:	1
License:	GPLv2+
Group:		Terminals
Url:		https://www.pleyades.net/david/projects/sakura
Source0:	https://launchpad.net/sakura/trunk/%{version}/+download/%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(vte-2.91)

%description
Sakura is a terminal emulator based on GTK and VTE. It's a terminal emulator
with few dependencies, so you don't need a full GNOME desktop installed to have
a decent terminal emulator. Current terminal emulators based on VTE are
gnome-terminal, Xfce Terminal, TermIt and a small sample program included in
the vte sources. The differences between sakura and the last one are that it
uses a notebook to provide several terminals in one window and adds a
contextual menu with some basic options. No more no less.

%files -f %{name}.lang
%doc %{_docdir}/sakura/README.md
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_mandir}/man1/sakura.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake \
	-DLOCALE_INSTALL_DIR=%{_datadir}/locale \
	-DLIB_INSTALL_DIR=%{_libdir}
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8633 |21cr|sam2p-0.49.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define debug_package %{nil}

%define tif22pnmver 2014-01-09

Summary:	Convert raster images to PostScript or PDF
Name:		sam2p
Version:	0.49.4
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://pts.50.hu/sam2p/
Source0:	https://github.com/pts/sam2p/releases/download/v%{version}/sam2p-%{version}.tar.gz
Source1:	https://github.com/pts/tif22pnm/archive/refs/tags/2014-01-09.tar.gz?/tif22pnm-%{tif22pnmver}.tar.gz
BuildRequires:	jpeg-progs
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
Requires:	jpeg-progs
Requires:	ghostscript
Requires:	netpbm

%description
sam2p is a UNIX command line utility written in ANSI C++ that converts
many raster (bitmap) image formats into Adobe PostScript or PDF files
and several other formats. The images are not vectorized. sam2p gives
full control to the user to specify standards-compliance, compression,
and bit depths. In some cases sam2p can compress an image 100 times
smaller than the PostScript output of many other common image
converters. sam2p provides ZIP, RLE and LZW (de)compression filters
even on Level1 devices.

%files
%doc COPYING
%doc README README.tif22pnm examples contrib
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version} -a1

%build
# don't use icecream
PATH=/bin:/usr/bin:/usr/X11R6/bin
export PATH
autoconf

pushd tif22pnm-%{tif22pnmver}
%configure \
	--with-libtiff-idir=%{_includedir} \
	--with-libpng-idir=%{_includedir} \
	--with-libtiff-ldir=%{_libdir} \
	--with-libpng-ldir=%{_libdir}

sed -i -e 's/lpng /lpng -lm/' cc_help.sh

make

cp tif22pnm png22pnm ../
cp -p README ../README.tif22pnm
popd

%configure \
	--enable-lzw \
	--enable-gif

make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 sam2p tif22pnm png22pnm %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8634 |21cr|samhain-4.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define package_version %{version}

%define debug_package %{nil}

Name:           samhain
Version:        4.4.6
Release:        1
Summary:        File integrity and host-based IDS
License:        GPLv2+
Group:          System/Servers
URL:            http://www.la-samhna.de/samhain/
Source0:        http://www.la-samhna.de/samhain/samhain-current.tar.gz
BuildRequires:  attr-devel
BuildRequires:  ext2fs-devel
BuildRequires:  gmp-devel
BuildRequires:  pkgconfig(zlib)
BuildRequires:  prelude-devel
BuildRequires:  wrap-devel
BuildRequires:  procps

%description
samhain is an open source file integrity and host-based intrusion
detection system for Linux and Unix. It can run as a daemon process, and
thus can remember file changes. Contrary to a tool that runs from
cron, if a file is modified you will get only one report, while
subsequent checks of that file will ignore the modification as it is
already reported (unless the file is modified again).

samhain can optionally be used as client/server system to provide
centralized monitoring for multiple host. Logging to a (MySQL or
PostgreSQL) database is supported.

This package contains only the single host version. It also contains
support for tcp-wrappers and prelude.

This package does not contain database support.

%prep
%setup -q -c
%{__tar} xf samhain-%{package_version}.tar.gz
cd samhain-%{package_version}

%build
cd samhain-%{package_version}
%{serverbuild}
%setup_compile_flags
# XXX: Wow, these guys are evil, overriding the default configure
# XXX: args parsing...
./configure \
            --build=%{_target_platform} \
            --prefix=%{_prefix} \
            --exec-prefix=%{_exec_prefix} \
            --sbindir=%{_sbindir} \
            --sysconfdir=%{_sysconfdir} \
            --localstatedir=%{_var} \
            --mandir=%{_mandir} \
            --with-libwrap \
            --with-prelude \
            --disable-asm

# XXX: parallel make doesn't work since `encode' must exist first
%make -j1

%install
cd samhain-%{package_version}
%{__cat} > sstrip << EOF
#!/bin/sh
echo "*** sstrip DISABLED ***"
EOF
%{__chmod} 0755 sstrip
%{makeinstall_std}
%{__mkdir_p} %{buildroot}%{_initrddir}
%{__install} -m 0755 init/samhain.startLSB %{buildroot}%{_initrddir}/%{name}
%{__mkdir_p} %{buildroot}%{_sysconfdir}/logrotate.d
%{__cat} > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} << EOF
%{_logdir}/%{name}_log {
    notifempty
    missingok
    rotate 7
    daily
    compress
    create 644 root root
    postrotate
        /sbin/service %{name} reload 2>/dev/null || true
    endscript
}
EOF
/bin/touch %{buildroot}%{_logdir}/%{name}_log.lock
/bin/touch %{buildroot}%{_logdir}/%{name}_log
/bin/touch %{buildroot}%{_localstatedir}/lib/%{name}/samhain_file
/bin/touch %{buildroot}%{_localstatedir}/lib/%{name}/samhain.html


%post
if [ "$1" = 1 ]; then
    %create_ghostfile %{_logdir}/%{name}_log.lock root root 0644
    %create_ghostfile %{_logdir}/%{name}_log root root 0644
    %create_ghostfile %{_localstatedir}/lib/%{name}/samhain_file root root 0644
    %create_ghostfile %{_localstatedir}/lib/%{name}/samhain.html root root 0644
    %{_sbindir}/samhain -t init >/dev/null 2>&1
fi
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%defattr(0644,root,root,0755)
%doc samhain-%{package_version}/docs/BUGS samhain-%{package_version}/COPYING
%doc samhain-%{package_version}/docs/Changelog
%doc samhain-%{package_version}/LICENSE samhain-%{package_version}/docs/HOWTO*
%doc samhain-%{package_version}/docs/MANUAL-* samhain-%{package_version}/docs/README*
%doc samhain-%{version}.tar.gz.asc
%attr(0755,root,root) %{_sbindir}/%{name}
%{_mandir}/man5/samhain*
%{_mandir}/man8/samhain*
%config(noreplace) %{_sysconfdir}/samhainrc
%attr(0755,root,root) %{_initrddir}/%{name}
%ghost %{_logdir}/%{name}_log
%ghost %{_logdir}/%{name}_log.lock
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{_localstatedir}/lib/%{name}
%ghost %{_localstatedir}/lib/%{name}/samhain_file
%ghost %{_localstatedir}/lib/%{name}/samhain.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8635 |21cr|samsung-tools-2.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		samsung-tools
Version:	2.3.3
Release:	1
License:	GPLv2+
Group:		System/Configuration/Hardware
URL:		https://launchpad.net/samsung-tools
Source0:	http://launchpad.net/samsung-tools/trunk/%{version}/+download/%{name}-%{version}.tar.gz
Summary:	Tools for Samsung laptops
#ExclusiveArch:	%{x86_64} %{ix86}

%description
Tools for Samsung netbooks.
'Samsung Tools' is the successor of 'Samsung Scripts' 
provided by the 'Linux On My Samsung' project.
It allows the complete configuration and the
control in a friendly way of devices
found on Samsung netbooks (bluetooth, wireless, 
webcam, backlight, CPU fan, special keys) 
and the control of various aspects 
related to power management, 
like the CPU undervolting
(when a PHC-enabled kernel is available).


%prep
%setup -q

%build
#make

%install
#without this build throws a bunch of warnings
LC_ALL=UTF-8 %makeinstall_std

#move files to a correct location
%ifarch %{x86_64} aarch64 %{e2k} %{riscv}
        mkdir -p %{buildroot}%{_libdir}
        mv %{buildroot}%{_prefix}/lib/pm-utils %{buildroot}%{_libdir}/pm-utils
%endif

mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}/usr/%{_unitdir}/%{name}.service %{buildroot}%{_unitdir}

%find_lang %{name} --all-name

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%files -f %{name}.lang
%doc ChangeLog README.md
%{_bindir}/%{name}
%{_bindir}/%{name}-preferences
%dir %{_sysconfdir}/%{name}/
%dir %{_sysconfdir}/%{name}/scripts/
%config(noreplace) %{_sysconfdir}/%{name}/session.conf
%config(noreplace) %{_sysconfdir}/%{name}/system.conf
%config(noreplace) %{_sysconfdir}/%{name}/scripts/*
%{_sysconfdir}/dbus-1/system.d/org.voria.SamsungTools.System.conf
%{_sysconfdir}/xdg/autostart/%{name}-session-service.desktop
%{_libdir}/pm-utils/power.d/%{name}*
%{_libdir}/pm-utils/sleep.d/20_%{name}
%{_datadir}/applications/%{name}-preferences.desktop
%{_datadir}/dbus-1/*/org.voria.SamsungTools.*.service
%{_datadir}/%{name}/
%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8636 |21cr|samtools-1.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for manipulating next-generation sequencing data
Name:		samtools
Version:	1.17
Release:	1
License:	MIT
Group:		Sciences/Biology
Url:		https://github.com/samtools/samtools
Source0:	https://github.com/samtools/samtools/releases/download/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(liblzma)

%description
SAM (Sequence Alignment/Map) is a flexible generic format for storing
nucleotide sequence alignment.

SAMtools provide efficient utilities on manipulating alignments in the
SAM format.

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-ncurses
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8637 |21cr|samuel-0.1.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{mdvver} >= 201200
%global __provides_exclude 'engine.so'
%else
%define _provides_exceptions engine.so
%endif

Name:		samuel
Version:	0.1.8
Release:	5
Summary:	A Draughts Program
Group:		Games/Boards
License:	GPLv3+
URL:		http://www.johncheetham.com/projects/samuel/
Source:		http://www.johncheetham.com/projects/samuel/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	python-devel
Requires:	pygtk2

%description
A Draughts program for Linux written in Python, GTK, C++.
Derived from the windows program guicheckers.

%prep
%setup -q
%__chmod 644 README

%build
%__python setup.py build

%install
%__rm -rf %{buildroot}
%__python setup.py install --root %{buildroot}

# icons
for N in 16 32 48 64 128; do convert %{name}.png -resize ${N}x${N} $N.png; done
%__install -D 16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%__install -D 32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%__install -D 48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%__install -D 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
%__install -D 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# overwrite the default .desktop file
%__mkdir_p  %{buildroot}%{_datadir}/applications
%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=Samuel
Comment=Draughts Game
Comment[ru]=Шахматы
Icon=samuel
Exec=samuel
Terminal=false
Categories=Game;BoardGame;
EOF

%__rm -rf %{buildroot}%{_defaultdocdir}/%{name}-%{version}

%clean
%__rm -rf %{buildroot}

%files
%doc LICENSE README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{py_platsitedir}/%{name}
%{py_platsitedir}/%{name}*.egg-info
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png



%changelog
* Wed Mar 28 2012 Andrey Bondrov <abondrov@mandriva.org> 0.1.8-2mdv2011.0
+ Revision: 787922
- Bump release
- imported package samuel


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8638 |21cr|samyak-fonts-1.2.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	fontname	samyak
%global fontconf	67-%{fontname}

# Common description
%define common_desc \
The Samyak package contains fonts for the display of \
Scripts Devanagari, Gujarati, Malayalam, Oriya and Tamil

Name:	 %{fontname}-fonts
Version:	1.2.2
Release:	10
Summary:	Free Indian truetype/opentype fonts
Group:	        System/Fonts/True type 
License:	GPLv3+ with exceptions
URL:	http://sarovar.org/projects/samyak/
# Source0: http://sarovar.org/frs/?group_id=461&release_id=821
Source:	samyak-fonts-%{version}.tar.gz
Source1: 67-samyak-devanagari.conf
Source2: 67-samyak-tamil.conf
Source3: 68-samyak-malayalam.conf
Source4: 67-samyak-gujarati.conf
Source5: 67-samyak-oriya.conf
BuildArch:	noarch
BuildRequires:	fontpackages-devel
BuildRequires: fontforge

%description
%common_desc

%package common
Summary:  Common files for samyak-fonts
Group:	System/Fonts/True type 
Requires: fontpackages-filesystem
Provides: %{fontname}-common-fonts = %{version}-%{release}
Obsoletes: %{fontname}-common-fonts < 1.2.1-4
%description common
%common_desc

%package -n %{fontname}-devanagari-fonts
Summary: Open Type Fonts for Devanagari script
Group: System/Fonts/True type 
Requires: %{name}-common = %{version}-%{release}
License: GPLv3+ with exceptions
Provides: %{name}-devanagari = %{version}-%{release}
Obsoletes: %{name}-devanagari < 1.2.1-3
%description -n %{fontname}-devanagari-fonts
This package contains truetype/opentype font for the display of \
Scripts Devanagari.

%_font_pkg -n devanagari -f %{fontconf}-devanagari.conf Samyak-Devanagari.ttf 

%package -n %{fontname}-tamil-fonts
Summary: Open Type Fonts for Tamil script
Group: System/Fonts/True type 
Requires: %{name}-common = %{version}-%{release}
License: GPLv3+ with exceptions
Provides: %{name}-tamil = %{version}-%{release}
Obsoletes: %{name}-tamil < 1.2.1-3
%description -n %{fontname}-tamil-fonts
This package contains truetype/opentype font for the display of \
Scripts Tamil.

%_font_pkg -n tamil -f %{fontconf}-tamil.conf Samyak-Tamil.ttf 

%package -n %{fontname}-malayalam-fonts
Summary: Open Type Fonts for Malayalam script
Group: System/Fonts/True type 
Requires: %{name}-common = %{version}-%{release}
License: GPLv3+ with exceptions
Provides: %{name}-malayalam = %{version}-%{release}
Obsoletes: %{name}-malayalam < 1.2.1-3
%description -n %{fontname}-malayalam-fonts
This package contains truetype/opentype font for the display of \
Scripts Malayalam.

%_font_pkg -n malayalam -f 68-samyak-malayalam.conf Samyak-Malayalam.ttf 

%package -n %{fontname}-gujarati-fonts
Summary: Open Type Fonts for Gujarati script
Group: System/Fonts/True type 
Requires: %{name}-common = %{version}-%{release}
License: GPLv3+ with exceptions
Provides: %{name}-gujarati = %{version}-%{release}
Obsoletes: %{name}-gujarati < 1.2.1-3
%description -n %{fontname}-gujarati-fonts
This package contains truetype/opentype font for the display of \
Scripts Gujarati.

%_font_pkg -n gujarati -f %{fontconf}-gujarati.conf Samyak-Gujarati.ttf 

%package -n %{fontname}-oriya-fonts
Summary: Open Type Fonts for Oriya script
Group: System/Fonts/True type 
Requires: %{name}-common = %{version}-%{release}
License: GPLv3+ with exceptions
Provides: %{name}-oriya = %{version}-%{release}
Obsoletes: %{name}-oriya < 1.2.1-3
%description -n %{fontname}-oriya-fonts
This package contains truetype/opentype font for the display of \
Scripts Oriya.

%_font_pkg -n oriya -f %{fontconf}-oriya.conf Samyak-Oriya.ttf 


%prep
%setup -q -n samyak-fonts-%{version}

%build
mkdir -p TTFfiles/
./generate.pe */*.sfd

%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p TTFfiles/*.ttf %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
		%{buildroot}%{_fontconfig_confdir}

# Repeat for every font family
install -m 0644 -p %{SOURCE1} \
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-devanagari.conf

install -m 0644 -p %{SOURCE2} \
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-tamil.conf

install -m 0644 -p %{SOURCE3} \
	%{buildroot}%{_fontconfig_templatedir}/68-samyak-malayalam.conf

install -m 0644 -p %{SOURCE4} \
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-gujarati.conf

install -m 0644 -p %{SOURCE5} \
	%{buildroot}%{_fontconfig_templatedir}/%{fontconf}-oriya.conf


for fconf in %{fontconf}-devanagari.conf \
		%{fontconf}-tamil.conf \
		68-samyak-malayalam.conf \
		%{fontconf}-gujarati.conf \
		%{fontconf}-oriya.conf ; do
  ln -s %{_fontconfig_templatedir}/$fconf \
	%{buildroot}%{_fontconfig_confdir}/$fconf
done

%files common
%doc COPYING README AUTHORS
%dir %{_fontdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8639 |21cr|sandy-0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple ncurses text editor
Name:		sandy
Version:	0.4
Release:	3
License:	MIT
Group:		Editors
Url:		http://tools.suckless.org/sandy
Source0:	http://git.suckless.org/sandy/snapshot/%{name}-%{version}.tar.bz2
Patch0:		sandy-0.4-optflags.patch
BuildRequires:	pkgconfig(ncursesw)

%description
Simple ncurses text editor.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
make \
	OPTS="%{optflags}"

%install
%makeinstall_std \
	PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8640 |21cr|sarg-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define contentdir /var/www

Summary:	Squid report generator per user/ip/name
Name:		sarg
Version:	2.4.0
Release:	1
License:	GPLv2+
Group:		Monitoring
URL:		http://sarg.sourceforge.net/
Source:		https://sourceforge.net/projects/sarg/files/sarg/sarg-%{version}/sarg-%{version}.tar.gz
Source1:	0sarg.daily
Source2:	0sarg.weekly
Source3:	0sarg.monthly
Source4:	sarg.conf.mandriva
# from debian
Patch1:		0001-config-file-references.patch
Patch2:		0002-fix-build-errors.patch
Patch3:		0003-Fix-FTCBFS.patch
Patch4:		0004-fix-format-security.patch
Patch5:		0005-fix-multiple-include-conf.patch
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(gdlib)
BuildRequires:	openldap-devel
Requires:	squid
Requires:	bash

%description
Sarg (was Sqmgrlog) generate reports per user/ip/name from SQUID log file.
The reports will be generated in HTML or email.

%prep
%autosetup -p1

%build
chmod a+x cfgaux configure include
chmod 744 images
%configure

mkdir -p %{buildroot}/%{_mandir}/man1
perl -p -i -e 's|/usr/share/man/man1|%{buildroot}/usr/share/man/man1|' %{buildroot}/%name-%version/Makefile
make

%install
mkdir -p %{buildroot}/{%_bindir,%_datadir/%name,%_sysconfdir/%name}
mkdir -p %{buildroot}%{contentdir}/html/squid
mkdir -p %{buildroot}%{contentdir}/html/squid/{daily,weekly,monthly}
%makeinstall_std
mkdir -p %{buildroot}/etc/cron.daily
install -m 0755 %{SOURCE1} %{buildroot}/etc/cron.daily/0%{name}
mkdir -p %{buildroot}/etc/cron.weekly
install -m 0755 %{SOURCE2} %{buildroot}/etc/cron.weekly/0%{name}
mkdir -p %{buildroot}/etc/cron.monthly
install -m 0755 %{SOURCE3} %{buildroot}/etc/cron.monthly/0%{name}
install -m 644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
mv %{buildroot}/%{_sysconfdir}/exclude_codes %{buildroot}/%{_sysconfdir}/%{name}/exclude_codes
mv %{buildroot}/%{_sysconfdir}/%{name}.conf %{buildroot}/%{_sysconfdir}/%{name}/%{name}.conf
mv %{buildroot}/%{_sysconfdir}/user_limit_block %{buildroot}/%{_sysconfdir}/%{name}/user_limit_block
mv %{buildroot}/%{_sysconfdir}/css.tpl %{buildroot}/%{_sysconfdir}/%{name}/css.tpl

%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,squid)
%doc CONTRIBUTORS DONATIONS ChangeLog
%{_mandir}/man1/*
%{_sysconfdir}/%{name}/*.tpl
%{_sysconfdir}/%{name}/user*
%attr(0755,root,squid) %{_bindir}/%{name}*
%attr(0755,root,squid) %dir %{_sysconfdir}/%{name}
%attr(0664,root,squid) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(0755,root,squid) %dir %{contentdir}/html/squid
%attr(0755,root,squid) %dir %{contentdir}/html/squid/daily
%attr(0755,root,squid) %dir %{contentdir}/html/squid/weekly
%attr(0755,root,squid) %dir %{contentdir}/html/squid/monthly
%{contentdir}/html/%{name}-php
%{_datadir}/%{name}
%config(noreplace) %attr(0754,root,squid) %{_sysconfdir}/cron.*/*
%config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/exclude_codes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8641 |21cr|sauerbraten-2013_02_03-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A multi-player/single-player first person shooter
Name:		sauerbraten
Version:	2013_02_03
Release:	4
License:	ZLIB license and BSD
Group:		Games/Arcade
Url:		http://www.sauerbraten.org/
Source0:	http://switch.dl.sourceforge.net/project/sauerbraten/sauerbraten/%{version}/sauerbraten_%{version}_collect_edition_linux.tar.bz2
Source1:	%{name}.png
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libenet) >= 1.3.5
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}

%description
Free multi-player/single-player first person shooter, built as a major
redesign of the Cube FPS.

Much like the original Cube, the aim of this game is not necessarily
to produce the most features & eye-candy possible, but rather to
allow map/geometry editing to be done dynamically in-game, to create
fun game-play and an elegant engine.

The engine supporting the game is entirely original in code & design,
and its code is Open Source (ZLIB license, read the docs for more on
how you can use the engine).

In addition to the FPS game which is in a very playable state, the
engine is being used for an RPG which is in the preproduction phase.
Additionally, Proper Games ltd are the first to use the engine
commercially. dot3 labs is a company started by the creators of
sauerbraten that offers commercial support.

%files
%doc docs/*
%{_bindir}/%{name}.sh
%{_gamesbindir}/sauer_client
%{_datadir}/pixmaps/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------

%package server
Summary:	Standalone Sauerbraten server for LAN and Internet gaming
Group:		Games/Arcade
Requires:	%{name}-data = %{EVRD}

%description server
Sauerbraten (a.k.a. Cube 2) is a free multi-player/single-player
first person shooter, built as a major redesign of the Cube FPS.
This package is useful if you only need the Sauerbraten server and
not the game itself.

This package contains a standalone server.

%files server
%{_bindir}/%{name}-server.sh
%{_gamesbindir}/sauer_server

#-----------------------------------------------------------------------------

%package data
Summary:	Standalone Sauerbraten server for LAN and Internet gaming
Group:		Games/Arcade
Conflicts:	%{name} < 2013_02_03
BuildArch:	noarch

%description data
Sauerbraten (a.k.a. Cube 2) is a free multi-player/single-player
first person shooter, built as a major redesign of the Cube FPS.
This package is useful if you only need the Sauerbraten server and
not the game itself.

%files data
%{_gamesdatadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
rm -rf bin_unix/*

%build
pushd src/enet
autoreconf -fi
popd

# flags for enet
%setup_compile_flags

pushd src
%make
popd

%install
# engine --------------------------------------------------------------------
mkdir -p %{buildroot}%{_gamesbindir}
install -m 755 src/sauer_client %{buildroot}%{_gamesbindir}
install -m 755 src/sauer_server %{buildroot}%{_gamesbindir}

# startscripts --------------------------------------------------------------
cat > %{name}.sh <<EOF
#!/bin/bash
CUBE_DIR=\$HOME/.%{name}
if [ ! -d \$CUBE_DIR ]; then
	mkdir -p \$CUBE_DIR
	cd \$CUBE_DIR
	ln -s %{_gamesbindir}/sauer_*  .
	ln -s %{_gamesdatadir}/%{name}/* .
	rm server*.cfg 2> /dev/null
fi

cd \$CUBE_DIR
ln -sf %{_gamesbindir}/sauer_*  .
ln -sf %{_gamesdatadir}/%{name}/* .
exec ./sauer_client \$*
EOF

cat > %{name}-server.sh <<EOF
#!/bin/bash
CUBE_DIR=\$HOME/.%{name}
if [ ! -d \$CUBE_DIR ]; then
	mkdir -p \$CUBE_DIR
	cd \$CUBE_DIR
	ln -s %{_gamesbindir}/sauer_* .
	ln -s %{_gamesdatadir}/%{name}/* .
	rm server*.cfg 2> /dev/null
	cp %{_gamesdatadir}/%{name}/server*.cfg .
fi
# server.cfg ==> servers.cfg
if [ ! -e \$CUBE_DIR/servers.cfg ]; then
	cd \$CUBE_DIR
	rm servers.cfg 2> /dev/null
	cp %{_gamesdatadir}/%{name}/servers.cfg .
fi
# new in troopers server-init.cfg
if [ ! -e \$CUBE_DIR/server-init.cfg ]; then
	cd \$CUBE_DIR
	rm server-init.cfg 2> /dev/null
	cp %{_gamesdatadir}/%{name}/server-init.cfg .
fi
cd \$CUBE_DIR
exec ./sauer_server \$*
EOF

mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name}*.sh %{buildroot}%{_bindir}

# install the menu icon -----------------------------------------------------
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps

# need for simple-welcome ---------------------------------------------------
mkdir -p %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert -size 16x16 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
convert -size 32x32 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 %{SOURCE1} %{buildroot}%{_liconsdir}/%{name}.png

# menu entry ----------------------------------------------------------------
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Sauerbraten
Comment=A multi-player/single-player first person shooter
Comment[ru]=Sauerbraten - одно/многопользовательский шутер от первого лица
Exec=%{_bindir}/%{name}.sh
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

# data files ----------------------------------------------------------------
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -a data packages %{buildroot}%{_gamesdatadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8642 |21cr|sawfish-1.12.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	An extensible window manager for the X Window System
Name:		sawfish
Version:	1.12.0
Release:	5
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/Sawfish
Url:		http://sawmill.sourceforge.net/
Source0:	http://download.tuxfamily.org/%name/%{name}_%{version}.tar.bz2
BuildRequires:	kdelibs4-core
BuildRequires:	texinfo
BuildRequires:	gmp-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(librep) >= 0.92.3
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(pangox)
BuildRequires:	pkgconfig(pangoxft)
BuildRequires:	pkgconfig(rep-gtk) >= 0.90.7
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xtst)

Requires:	librep
Requires:	rep-gtk
Requires:	xsetroot
Provides:	windowmanager
Provides:	sawmill
Provides:	sawmill-gnome
Provides:	sawfish-gnome
Provides:	sawfish-themer

%description
Sawfish is an extensible window manager which uses a Lisp-based scripting
language. All window decorations are configurable and the basic idea is to
have as much user-interface policy as possible controlled through the Lisp
language. Configuration can be accomplished by writing Lisp code in a
personal .sawfishrc file, or using a GTK+ interface. Sawfish is mostly
GNOME compliant.

%files -f %{name}.lang
%doc COPYING INSTALL README* NEWS TODO
%{_bindir}/*
%{_libdir}/%{name}
%{_libdir}/rep/*
%{_datadir}/applications/*.desktop
%{_datadir}/kde4/apps/ksmserver/windowmanagers/sawfish.desktop
%{_datadir}/ksmserver/windowmanagers/sawfish.desktop
%{_datadir}/gnome/wm-properties/sawfish-wm.desktop
%{_datadir}/sawfish
%{_datadir}/xsessions/*
%{_iconsdir}/hicolor/*/apps/sawfish*
%{_mandir}/man1/sawfish.1*
%{_mandir}/man1/sawfish-client.1*
%{_mandir}/man1/sawfish-config.1*
%{_infodir}/sawfish*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Sawfish
Group:		Graphical desktop/Sawfish
Requires:	%{name} = %{EVRD}

%description devel
This package contains development files for sawfish.

%files devel
%{_libdir}/pkgconfig/*.pc
%{_includedir}/sawfish/

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}_%{version}

%build
%global optflags %{optflags} -fcommon
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8643 |21cr|sawfish-pager-0.90.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sawfish 1.8.1
%define sfepoch 2

Summary:	Lightweight desktop pager for Sawfish
Name:		sawfish-pager
Version:	0.90.3
Release:	5
License:	GPLv2+
Group:		Graphical desktop/Sawfish
Url:		http://sawfish-pager.sourceforge.net/
Source0:	http://download.tuxfamily.org/sawfishpager/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	sawfish-devel >= %{sfepoch}:%{sawfish}
Requires:	sawfish

%description
A pager is a map of your desktop. As maps go, it shows not only the visible
part (your current viewport), but if you are so configured, also the parts
that extend beyond the sides of your screen. Also, if you have more than
one workspace, the pager will follow you to where you are, or optionally
show all workspaces at once. Of course you can select viewports and
windows, and also move or raise/lower the latter.

%files
%doc NEWS README TODO
%{_libdir}/sawfish/sawfishpager
%{_datadir}/sawfish/lisp/sawfish/wm/ext/pager.jl
%{_datadir}/sawfish/lisp/sawfish/wm/ext/pager.jlc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8644 |21cr|saxon-xslt2-7.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Saxon XSLT2 Processor in Java
Name: 		saxon-xslt2
Version: 	7.8
Release: 	8
License: 	MPL
Group: 		Publishing
Url:		http://saxon.sourceforge.net/
Source: 	http://prdownloads.sourceforge.net/saxon/%{name}-%{version}.tar.bz2
BuildArch:	noarch

Requires:	jre

%define	_javaclassdir	%{_datadir}/java/classes/%{name}

%description
The SAXON package is a collection of tools for processing XML
documents, compliant with the XSLT2 recommendation.

%prep
%setup -q

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

chmod a-x *.jar
install -d $RPM_BUILD_ROOT%{_javaclassdir}
install saxon7*.jar $RPM_BUILD_ROOT%{_javaclassdir}

mkdir -p $RPM_BUILD_ROOT/%{_prefix}/bin
cat << EOF > $RPM_BUILD_ROOT/%{_prefix}/bin/saxon7batch
#!/bin/bash

export CLASSPATH=$CLASSPATH:%{_javaclassdir}/saxon7.jar
java net.sf.saxon.Transform \$*
EOF
chmod 555 $RPM_BUILD_ROOT/%{_prefix}/bin/saxon7batch


%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc doc samples use-cases
%dir %{_datadir}/java/classes/
%dir %{_javaclassdir}/
#%{_javaclassdir}
%{_javaclassdir}/*
%attr(755,root,root) %{_prefix}/bin/saxon7batch

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8645 |21cr|sayonara-1.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	tarball stable3

Summary:	A lightweight Qt Audio player
Name:		sayonara
Version:	1.7.0
Release:	2
License:	GPLv3+
Group:		Sound
Url:		https://sayonara-player.com
Source0:	https://sayonara-player.com/files/source/%{version}-%{tarball}/%{name}-player-%{version}-%{tarball}.tar.bz2
Patch0:		sayonara-1.7.0-fix-env-shebangs.patch
BuildRequires:	cmake >= 3.8
BuildRequires:	doxygen
BuildRequires:	perl
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(Qt5Core) >= 5.8
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(zlib)
Requires:	qt5-database-plugin-sqlite
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-soundtouch
# For the two python scripts
Requires:	python3-pydbus


%description
Sayonara is a small, clear, not yet platform-independent music player. Low CPU
usage, low memory consumption and no long loading times are only three
benefits of this player. Sayonara should be easy and intuitive to use and
therefore it should be able to compete with the most popular music players.

%files
%doc COPYING MANUAL README.md
%doc build/docs/html/*
%{_bindir}/%{name}
%{_bindir}/%{name}-ctl
%{_bindir}/%{name}-query
#{_libdir}/%%{name}/
%{_datadir}/%{name}/
%{_datadir}/applications/com.%{name}-player.Sayonara.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-ctl.1.*
%{_mandir}/man1/%{name}-query.1.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-player-%{version}-%{tarball}
%patch0 -p1


%build
%cmake_qt5 -DWITH_DOC=ON
%make
# Build the docs
%make doc


%install
%makeinstall_std -C build

# Remove menu dir, because it's not necessary...
rm -rf %{buildroot}%{_datadir}/menu
# and the installed docs, since we use our macro for them
rm -rf %{buildroot}%{_datadir}/doc/%{name}/doxygen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8646 |21cr|sazanami-fonts-0.20040629-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	priority	65-4
%define	fontname	sazanami
%define	fontconf	%{priority}-%{fontname}
%define catalogue	%{_sysconfdir}/X11/fontpath.d
%define	common_desc	\
The Sazanami type faces are automatically generated from Wadalab font kit.\
They also contains some embedded Japanese bitmap fonts.

Name:		%{fontname}-fonts
Version:	0.20040629
Release:	24
BuildArch:	noarch
BuildRequires:	ttmkfdir >= 3.0.6
BuildRequires:	mkfontdir 
BuildRequires:	ttmkfdir
BuildRequires:	fontpackages-devel
BuildRequires:	fonttools
URL:		http://efont.sourceforge.jp/

Source0:	http://globalbase.dl.sourceforge.jp/efont/10087/sazanami-20040629.tar.bz2
Source1:	fonts.alias.sazanami-gothic
Source2:	fonts.alias.sazanami-mincho
Source3:	%{fontname}-gothic-fontconfig.conf
Source4:	%{fontname}-mincho-fontconfig.conf
Patch1:		uni7E6B-gothic.patch
Patch2:		uni7E6B-mincho.patch
Patch3:		uni8449-mincho.patch

Summary:	Sazanami Japanese TrueType fonts
License:	BSD
Group:		System/Fonts/True type

%description
%common_desc

%package	common
Summary:	Common files for Sazanami Japanese TrueType fonts
Group:		System/Fonts/True type
Requires:	fontpackages-filesystem

%description	common
%common_desc

This package consists of files used by other %{name} packages.

%package -n	%{fontname}-gothic-fonts
Summary:	Sazanami Gothic Japanese TrueType font
License:	BSD
Group:		System/Fonts/True type
Conflicts:	fonts-japanese <= 0.20061016-9.fc8
Provides:	ttfonts-ja = 1.2-37, %{fontname}-fonts-gothic = %{version}-%{release}
Obsoletes:	ttfonts-ja < 1.2-37, %{fontname}-fonts-gothic < 0.20040629-6.20061016
Requires:	%{name}-common = %{version}-%{release}

%description -n	%{fontname}-gothic-fonts
%common_desc

This package contains Japanese TrueType font for Gothic type face.

%package -n	%{fontname}-mincho-fonts
Summary:	Sazanami Mincho Japanese TrueType font
License:	BSD
Group:		System/Fonts/True type
Conflicts:	fonts-japanese <= 0.20061016-9.fc8
Provides:	ttfonts-ja = 1.2-37, %{fontname}-fonts-mincho = %{version}-%{release}
Obsoletes:	ttfonts-ja < 1.2-37, %{fontname}-fonts-mincho < 0.20040629-6.20061016
Requires:	%{name}-common = %{version}-%{release}

%description -n	%{fontname}-mincho-fonts
%common_desc

This package contains Japanese TrueType font for Mincho type face.

%prep
%setup -q -n sazanami-20040629

%build
#rhbz#196433: modify the ttfs to change the glyph for 0x7E6B
ttx -i -a -e sazanami-gothic.ttf
patch -b -z .uni7E6B sazanami-gothic.ttx %{PATCH1}
touch -r sazanami-gothic.ttf sazanami-gothic.ttx
rm sazanami-gothic.ttf
ttx -b sazanami-gothic.ttx
touch -r sazanami-gothic.ttx sazanami-gothic.ttf

ttx -i -a -e sazanami-mincho.ttf
patch -b -z .uni7E6B sazanami-mincho.ttx %{PATCH2}
patch -b -z .uni8449 sazanami-mincho.ttx %{PATCH3}
touch -r sazanami-mincho.ttf sazanami-mincho.ttx
rm sazanami-mincho.ttf
ttx -b sazanami-mincho.ttx
touch -r sazanami-mincho.ttx sazanami-mincho.ttf

%install
install -dm 0755 %{buildroot}%{_fontdir}/{gothic,mincho}
install -pm 0644 sazanami-gothic.ttf %{buildroot}%{_fontdir}/gothic
install -pm 0644 sazanami-mincho.ttf %{buildroot}%{_fontdir}/mincho

install -dm 0755 %{buildroot}%{_fontconfig_templatedir} \
		 %{buildroot}%{_fontconfig_confdir}
install -pm 0644 %{SOURCE3} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-gothic.conf
install -pm 0644 %{SOURCE4} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mincho.conf

for fontconf in %{fontconf}-gothic.conf %{fontconf}-mincho.conf; do
	ln -s %{_fontconfig_templatedir}/$fontconf %{buildroot}%{_fontconfig_confdir}/$fontconf
done

install -dm 0755 %{buildroot}%{catalogue}
install -pm 0644 %{SOURCE1} %{buildroot}%{_fontdir}/gothic/fonts.alias
install -pm 0644 %{SOURCE2} %{buildroot}%{_fontdir}/mincho/fonts.alias

# Create fonts.scale and fonts.dir
%{_bindir}/ttmkfdir -d %{buildroot}%{_fontdir}/gothic -o %{buildroot}%{_fontdir}/gothic/fonts.scale
%{_bindir}/mkfontdir %{buildroot}%{_fontdir}/gothic
%{_bindir}/ttmkfdir -d %{buildroot}%{_fontdir}/mincho -o %{buildroot}%{_fontdir}/mincho/fonts.scale
%{_bindir}/mkfontdir %{buildroot}%{_fontdir}/mincho

# Install catalogue symlink
ln -sf %{_fontdir}/gothic %{buildroot}%{catalogue}/%{name}-gothic
ln -sf %{_fontdir}/mincho %{buildroot}%{catalogue}/%{name}-mincho


%_font_pkg -n gothic -f %{fontconf}-gothic.conf gothic/sazanami-gothic.ttf

%dir %{_fontdir}/gothic
%{catalogue}/%{name}-gothic
%verify(not md5 size mtime) %{_fontdir}/gothic/fonts.dir
%verify(not md5 size mtime) %{_fontdir}/gothic/fonts.scale
%verify(not md5 size mtime) %{_fontdir}/gothic/fonts.alias

%_font_pkg -n mincho -f %{fontconf}-mincho.conf mincho/sazanami-mincho.ttf

%dir %{_fontdir}/mincho
%{catalogue}/%{name}-mincho
%verify(not md5 size mtime) %{_fontdir}/mincho/fonts.dir
%verify(not md5 size mtime) %{_fontdir}/mincho/fonts.scale
%verify(not md5 size mtime) %{_fontdir}/mincho/fonts.alias

%files common
%defattr(0644, root, root, 0755)
%doc doc README
%dir %{_fontdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8647 |21cr|sbcl-2.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#temporary disable build manual, texlive is broken
%bcond_with manual

%bcond_with bootstrap
%bcond_without threads

Summary:	Steel Bank Common Lisp compiler and runtime system
Name:		sbcl
Version:	2.2.0
Release:	2
License:	Public Domain and MIT and BSD with advertising
Group:		Development/Other
Url:		http://sbcl.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}-source.tar.bz2
Source10:	customize-target-features.lisp
Patch2:		%{name}-2.0.5-personality.patch
Patch3:		%{name}-2.0.5-optflags.patch
Patch4:		%{name}-2.0.5-LIB_DIR.patch
# doc generation
BuildRequires:	ghostscript
BuildRequires:	texinfo
%if %{with manual}
BuildRequires:	texlive
BuildRequires:	texlive-collection-fontsrecommended
BuildRequires:	texlive-collection-langgerman
BuildRequires:	texlive-texinfo
%endif
BuildRequires:	time
BuildRequires:	gmp-devel
%if %{with bootstrap}
BuildRequires:	clisp
%else
BuildRequires:	%{name}
%endif

%description
Steel Bank Common Lisp (SBCL) is a Open Source development environment for
Common Lisp. It includes an integrated native compiler, interpreter, and
debugger.

%files
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_libdir}/%{name}/%{name}.core
%define sb_prefix %{_libdir}/%{name}/contrib
%{sb_prefix}/asdf.*
%{sb_prefix}/sb-aclrepl.*
%{sb_prefix}/sb-bsd-sockets.*
%{sb_prefix}/sb-cltl2.*
%{sb_prefix}/sb-concurrency.*
%{sb_prefix}/sb-cover.*
%{sb_prefix}/sb-executable.*
%{sb_prefix}/sb-gmp.*
%{sb_prefix}/sb-graph.*
%{sb_prefix}/sb-grovel.*
%{sb_prefix}/sb-introspect.*
%{sb_prefix}/sb-md5.*
%{sb_prefix}/sb-posix.*
%{sb_prefix}/sb-queue.*
%{sb_prefix}/sb-rotate-byte.*
%{sb_prefix}/sb-rt.*
%{sb_prefix}/sb-simple-streams.*
%{sb_prefix}/sb-sprof.*
%{sb_prefix}/sb-capstone.*
%{sb_prefix}/sb-mpfr.*
%{sb_prefix}/uiop.*
%{_libdir}/sbcl/sbcl.mk
%{_infodir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%if %{with threads}
install -m644 -p %{SOURCE10} ./customize-target-features.lisp
%endif

%build
export SBCL_HOME=%{_libdir}/%{name}
sed -i 's|../lib/sbcl|../%{_lib}/sbcl|' src/runtime/runtime.c
export RPM_OPT_FLAGS=$(echo %{optflags} | sed -e "s/-fomit-frame-pointer//")

%if %{with bootstrap}
sh make.sh "clisp" --prefix=%{_prefix}
%else
sh make.sh "%{name}" --prefix=%{_prefix}
%endif

%if %{with manual}
make -C doc/manual
%else
make -C doc/manual info
%endif

%install
unset SBCL_HOME
export INSTALL_ROOT=%{buildroot}%{_prefix}
export LIB_DIR=%{buildroot}%{_libdir}
sh install.sh

if test %{_docdir} != %{_prefix}/share/doc ;then
   mkdir -p %{buildroot}%{_docdir}
   mv %{buildroot}%{_prefix}/share/doc/%{name} %{buildroot}%{_docdir}/
fi

## Unpackaged files
rm -f  %{buildroot}%{_infodir}/dir
# CVS crud
find %{buildroot} -name CVS -type d | xargs rm -rf
find %{buildroot} -name .cvsignore | xargs rm -f
# 'test-passed' files from %%check
find %{buildroot} -name 'test-passed' | xargs rm -vf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8648 |21cr|sbxkb-0.7.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sbxkb
Summary:        Simple keyboard indicator
Version:        0.7.6
Release:        7
License:        GPLv2
Group:          System/Configuration/Other
Url:            http://sourceforge.net/projects/staybox/
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gdk-pixbuf-xlib-2.0)
Source0:        %{name}-%{version}.tar.gz


%description
Simple keyboard indicator

Author: Sorry, I don;t know :(
--------

%define INSTALL      install -m755 -s
%define INSTALL_DIR  install -d -m755

%prep
%setup -q


%build
./configure --prefix=%{_prefix} LIBS=-lX11
make

%install
%makeinstall_std

%files
%{_bindir}/%{name}
%doc COPYING 
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8649 |21cr|sc68-2.2.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2.2.1
%define libname %mklibname sc68_ %{major}
%define devname %mklibname %{name} -d

%define	_disable_ld_no_undefined 1
%define	_disable_ld_as_needed 1

Summary:	SC68 - Atari ST and Amiga music player
Name:		sc68
Version:	2.2.1
Release:	19
License:	GPLv2+
Group:		Sound
Url:		http://sc68.atari.org/
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		sc68-2.2.1-format-string.patch
Patch1:		sc68-2.2.1-no-info.patch
BuildRequires:	doxygen
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(zlib)

%description
sc68 is an Atari ST and Amiga music player. It can play special files (.sc68).
This file encapsulates orgininal music files and possibly the program to play
it. You can find a very large collection of this file on sc68 official web
site <http://sashipa.ben.free.fr/sc68>.
This package contains a command line player.

%files
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_bindir}/*68
%{_datadir}/%{name}
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries of the sc68 sound emulator
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
sc68 is an Atari ST and Amiga music player. It can play special files (.sc68).
This file encapsulates orgininal music files and possibly the program to play
it. You can find a very large collection of this file on sc68 official web
site <http://sashipa.ben.free.fr/sc68>.
This package contains the shared libraries required by sc68.

%files -n %{libname}
%doc COPYING README
%{_libdir}/lib*.so.*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of the sc68 sound emulator
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
sc68 is an Atari ST and Amiga music player. It can play special files (.sc68).
This file encapsulates orgininal music files and possibly the program to play
it. You can find a very large collection of this file on sc68 official web
site <http://sashipa.ben.free.fr/sc68>.
This package contains the C headers and libraries required for building
applications with sc68.

%files -n %{devname}
%{_bindir}/%{name}-config
%{_includedir}/%{name}/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--disable-doc \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8650 |21cr|scanmem-0.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple interactive debugging utility
Name:		scanmem
Version:	0.17
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		https://github.com/scanmem/scanmem/
Source0:	https://github.com/scanmem/scanmem/archive/%{name}-%{version}.tar.gz
# Fix library name for dlopen, should include library major
Patch0:		scanmem-0.15.8-dlopen.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	readline-devel

%description
scanmem is a simple interactive debugging utility, used to locate the address
of a variable in an executing process. This can be used for the analysis or
modification of a hostile process on a compromised machine, reverse
engineering, or as a "pokefinder" to cheat at video games.

%files
%doc ChangeLog README TODO COPYING
%{_bindir}/scanmem
%{_mandir}/man1/scanmem.1.*
#----------------------------------------------------------------------------

%package -n gameconqueror
Summary:	CheatEngline-alike interface for scanmem
Group:		Development/Tools
Requires:	%{name} = %{EVRD}
Requires:	polkit
Requires:	python3-gobject

%description -n gameconqueror
GameConqueror aims to provide a CheatEngline-alike interface for scanmem, it's
user-friendly and easy to use. GameConqueror is written in PyGTK.

%files -n gameconqueror -f GameConqueror.lang
%{_bindir}/gameconqueror
%{_datadir}/appdata/GameConqueror.appdata.xml
%{_datadir}/applications/GameConqueror.desktop
%dir %{_datadir}/gameconqueror/
%{_datadir}/gameconqueror/*
%{_datadir}/icons/hicolor/*/apps/GameConqueror.png
%{_datadir}/polkit-1/actions/org.freedesktop.gameconqueror.policy
%{_mandir}/man1/gameconqueror.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires: %{name} = %{EVRD}

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libscanmem.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for %{name}
Group:		System/Libraries
Requires: %{name} = %{EVRD}

%description -n %{devname}
Header files for %{name}.

%files -n %{devname}
%dir %{_includedir}/scanmem
%{_includedir}/scanmem/*

#----------------------------------------------------------------------------
%prep
%setup -q
%patch0 -p1

%build
./autogen.sh
%configure \
	--enable-gui
%make

%install
%makeinstall_std
rm -f %{buildroot}%{_libdir}/libscanmem.a
rm -f %{buildroot}%{_libdir}/libscanmem.so
%find_lang GameConqueror

%check
make check
desktop-file-validate %{buildroot}%{_datadir}/applications/GameConqueror.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8651 |21cr|scanssh-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scans the given addresses and networks for running SSH servers
Name:		scanssh
Version:	2.1.2
Release:	1
License:	BSD
Group:		Networking/Other
URL:		http://www.monkey.org/~provos/scanssh/
Source0:    https://github.com/ofalk/scanssh/archive/refs/tags/%{version}.tar.gz
Patch0:		scanssh-no-locincpth.patch
BuildRequires:	libpcap >= 0.9.5
BuildRequires:	libpcap-devel >= 0.9.5
BuildRequires:	libevent-devel >= 1.3
BuildRequires:	libdnet-devel >= 1.7

%description
Scanssh scans the given addresses and networks for running SSH servers. It will
query their version number and displays the results in a list.

This program was originally written under OpenBSD as a personal measurement
tool. However, besides gathering statistics, it's also useful for other
purposes such as ensuring that all machines on your network run the latest SSH
versions, etc...

%prep

%setup -q -n %{name}-%{version}
%patch0 -p0

%build

%configure

# work around --recheck
touch *

%make CFLAGS="%{optflags} -fPIC"

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1

install -m755 scanssh %{buildroot}%{_sbindir}
install -m644 scanssh.1 %{buildroot}%{_mandir}/man1

%clean

%files
%{_sbindir}/scanssh
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8652 |21cr|scantailor-0_9_12_2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define over 0_9_12_1

Summary:	Scan processing software
Name:		scantailor
Version:	0_9_12_2
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		http://scantailor.sf.net
Source0:	https://github.com/scantailor/scantailor/archive/RELEASE_%{over}.tar.gz?/scantailor-RELEASE_%{over}.tar.gz
Source1:	%{name}.desktop
Source2:	%{name}.xml
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	jpeg-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xrender)

%description
Scan Tailor is an interactive post-processing tool for scanned pages. It
performs operations such as page splitting, deskewing, adding/removing borders,
and others. You give it raw scans, and you get pages ready to be printed
or assembled into a PDF or DJVU file. Scanning, optical character recognition,
and assembling multi-page documents are out of scope of this project.

%files -f %{name}.lang
%doc COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/%{name}.svg

#----------------------------------------------------------------------------

%prep
%setup -qn scantailor-RELEASE_%{over}

%build
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DEXTRA_LIBS=Xrender
%make

%install
%makeinstall_std -C build
install -pm644 -D resources/appicon.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
install -pm644 -D %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -pm644 -D %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/%{name}.xml

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8653 |21cr|scap-security-guide-0.1.72-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Security guidance and baselines in SCAP formats
Name:		scap-security-guide
Version:	0.1.72
Release:	1
License:	BSD-3-Clause
Group:		Monitoring
Url:		https://github.com/ComplianceAsCode/content/
Source0:	https://github.com/ComplianceAsCode/content/releases/download/v%{version}/scap-security-guide-%{version}.tar.bz2
Source1:	ssg-rosa-xccdf.xml
BuildRequires:	cmake
BuildRequires:	expat
BuildRequires:	openscap
BuildRequires:	libxml2-utils
BuildRequires:	python3-jinja2
BuildRequires:	python3-yaml
BuildRequires:	xsltproc
Requires:	openscap
Requires:	sgml-common
BuildArch:	noarch

%description
The scap-security-guide project provides a guide for configuration of the
system from the final system's security point of view. The guidance is
specified in the Security Content Automation Protocol (SCAP) format and
constitutes a catalog of practical hardening advice, linked to government
requirements where applicable. The project bridges the gap between generalized
policy requirements and specific implementation guidelines. The Fedora system
administrator can use the oscap CLI tool from openscap-scanner package, or the
scap-workbench GUI tool from scap-workbench package to verify that the system
conforms to provided guideline. Refer to scap-security-guide(8) manual page for
further information.

%files
%doc %{_docdir}/%{name}/Contributors.md
%doc %{_docdir}/%{name}/LICENSE
%doc %{_docdir}/%{name}/README.md
%doc %{_docdir}/%{name}/guides/*.html
%doc %{_docdir}/%{name}/tables/*.html
%{_datadir}/%{name}/ansible
%{_datadir}/%{name}/bash
%{_datadir}/%{name}/kickstart
%{_datadir}/xml/scap/ssg/content
%{_datadir}/%{name}/tailoring
%{_mandir}/man8/scap-security-guide.8.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

#replace ssg rules to rosa rules
rm %{buildroot}%{_datadir}/xml/scap/ssg/content/*
install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/xml/scap/ssg/content/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8654 |21cr|scap-workbench-1.2.1-3.git991bef.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 991bef6a060903eeae5659cae877d815f41fcd22
%define commit_short %(echo %{commit} | head -c6)

%global optflags %{optflags} -Wno-error=deprecated-declarations

Summary:	Scanning, tailoring, editing and validation tool for SCAP content
Name:		scap-workbench
Version:	1.2.1
Release:	3.git%{commit_short}.1
License:	GPLv3+
Group:		Monitoring
Url:		http://www.open-scap.org/tools/scap-workbench
#Source0:	https://github.com/OpenSCAP/scap-workbench/releases/download/%{version}/scap-workbench-%{version}.tar.bz2
Source0:	https://github.com/OpenSCAP/scap-workbench/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	asciidoc
BuildRequires:	cmake
BuildRequires:	pkgconfig(libopenscap)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
Requires:	openscap >= 1.2.11
# ssh to scan remote machines
Requires:	openssh-askpass
Requires:	openssh-clients
# For privileged local scanning
Requires:	polkit
# Default content
Requires:	scap-security-guide
Requires:	util-linux

%description
scap-workbench is GUI tool that provides scanning functionality for SCAP
content. The tool is based on OpenSCAP library.

%files
%doc %{_datadir}/doc/scap-workbench/
%{_bindir}/scap-workbench
%{_metainfodir}/org.open_scap.scap_workbench.appdata.xml
%{_datadir}/applications/org.open_scap.scap_workbench.desktop
%{_datadir}/pixmaps/scap-workbench.png
%{_datadir}/icons/hicolor/scalable/apps/scap-workbench.svg
%{_datadir}/polkit-1/actions/scap-workbench-oscap.policy
%{_datadir}/scap-workbench/*.png
%{_datadir}/scap-workbench/translations/*
%{_mandir}/man8/scap-workbench.8*
%{_libexecdir}/scap-workbench-oscap.sh
%{_libexecdir}/scap-workbench-pkexec-oscap.sh
%{_libexecdir}/scap-workbench-rpm-extract.sh

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8655 |21cr|scapy-2.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An interactive packet manipulation tool and network scanner
Name:		scapy
Version:	2.4.3
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.secdev.org/projects/scapy
Source0:	https://github.com/secdev/scapy/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		scapy-2.4.3-ethertypes.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	python3egg(ipython)
Requires:	nmap
Requires:	tcpdump
BuildArch:	noarch

%description
Scapy is a powerful interactive packet manipulation tool, packet generator,
network scanner, network discovery, packet sniffer, etc. It can for the
moment replace hping, 85% of nmap, arpspoof, arp-sk, arping, tcpdump,
tethereal, p0f, ....

Scapy uses the python interpreter as a command board. That means that you
can use directly python language (assign variables, use loops, define
functions, etc.) If you give a file as parameter when you run scapy, your
session (variables, functions, intances, ...) will be saved when you leave
the interpretor, and restored the next time you launch scapy.

%files
%doc %{_mandir}/man1/scapy.1*
%{_bindir}/scapy
%{_bindir}/UTscapy
%{py3_puresitedir}/scapy/*
%{py3_puresitedir}/scapy-*.egg-info

#----------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Change shebang /usr/bin/env python -> /usr/bin/python3
find -name '*.py' -print0 | xargs -0 \
    sed -i.env-python -e 's,^#!/usr/bin/env python,#!/usr/bin/python3,'
find -name '*.py' -print0 | xargs -0 \
    sed -i.env-python -e 's,^#! /usr/bin/env python,#!/usr/bin/python3,'


%build
%py3_build

%install
%py3_install
rm -f %{buildroot}%{py3_puresitedir}/*egg-info/requires.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8656 |21cr|scc-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=on
%global goipath github.com/boyter/scc

# Package source code as a devel package.
# Turn on if using not bundled go modules.
# Offed for now because it automatically requires not packaged golang modules.
%bcond_with devel

Summary:	Tool for counting lines of code
Name:		scc
Version:	3.1.0
Release:	1
License:	MIT
Group:		Networking/Other
Url:		https://github.com/boyter/scc
Source0:	https://github.com/boyter/scc/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# go mod vendor, created with ./upd.sh
Source1:	scc-%{version}-go-mod-vendor.tar.xz
Source2:	upd.sh
BuildRequires:	golang
%gometa

%description
A tool similar to cloc, sloccount and tokei.
For counting the lines of code, blank lines,
comment lines, and physical lines of source
code in many programming languages.
Goal is to be the fastest code counter possible,
but also perform COCOMO calculation like sloccount and
to estimate code complexity similar to cyclomatic
complexity calculators. In short one tool to rule them all.

%files
%license LICENSE UNLICENSE
%doc README.md LANGUAGES.md
%{_bindir}/scc

#------------------------------------------------------------------

%if %{with devel}
%gopkg
%gopkgfiles
%endif

#------------------------------------------------------------------

%prep
%goprep
%autopatch -p1

%build
( cd .. && tar -xf %{SOURCE1} )
%gobuild

%install
mkdir -p %{buildroot}%{_bindir}
install -m0755 scc %{buildroot}%{_bindir}

%if %{with devel}
%gopkginstall
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8657 |21cr|scdoc-1.11.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:     scdoc
Version:	1.11.2
Release:	1
Summary:  Tool for generating roff manual pages
License:  MIT
Group:    Development/Other
URL:      https://git.sr.ht/~sircmpwn/%{name}
Source0:  %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires: make
BuildRequires: gcc
BuildRequires: sed

%description
scdoc is a tool designed to make the process of writing man pages more
friendly. It reads scdoc syntax from stdin and writes roff to stdout, suitable
for reading with man.

%prep
%setup -q

# Disable static linking
sed -i '/-static/d' Makefile

# Use INSTALL provided by the make_install macro
sed -i 's/\tinstall/\t$(INSTALL)/g' Makefile

%build
%make_build PREFIX=%{_prefix}

%install
%make_install PREFIX=%{_prefix}

%check
make check

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.5*
# Not shipped in a -devel package since scdoc is a development tool not
# installed in a user runtime.
%{_datadir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8658 |21cr|scew-1.1.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	SCEW provides an easy interface around the XML Expat library
Name:		scew
Version:	1.1.7
Release:	5
License:	LGPL
Group:		Development/C
Url:		http://www.nongnu.org/scew
Source0:	http://savannah.nongnu.org/download/scew/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(expat)

%description 
SCEW (Simple C Expat Wrapper) incorporated functions to create XML
files and handle XML memory trees. That is, add and delete tree nodes,
change attribute names and values...

SCEW provides functions to load and access XML elements without the
need to create the event handling routines and probably the most
important: without the need to rewrite these functions each time you
need to load a different XML tree. It also lets you access to the
internal Expat parser, that means you can still have all the
functionality that Expat library gives you.

%files
%{_bindir}/scew_print
%{_bindir}/scew_write

#-------------------------------------------------------------------

%package -n %{libname}
Summary:	Simple C Expat Wrapper library
Group:		Development/C

%description -n %{libname}
This package contains the SCEW (Simple C Expat Wrapper) library.

%files -n %{libname}
%{_libdir}/libscew.so.%{major}*

#-------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use scew
Group:		Development/C
Provides:	libscew-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use scew.

%files -n %{devname}
%{_libdir}/libscew.so
%{_includedir}/*
%{_libdir}/pkgconfig/*

#-------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--includedir=%{_includedir}/%{name}
%make 

%install
%makeinstall_std

mkdir -p %{buildroot}%{_bindir}
install -m 755 examples/scew_print/scew_print %{buildroot}%{_bindir}
install -m 755 examples/scew_write/scew_write %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8659 |21cr|schedtool-1.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		schedtool
Version:	1.3.0
Release:	6
Summary:	Tool for setting and querying scheduling parameters
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://freequaos.host.sk/schedtool/
Source:		%{name}-%{version}.tar.bz2
Patch0:		schedtool-1.3.0-debug.patch

%description
schedtool can set all scheduling parameters Linux is capable of or dis-
play information for given processes.

Long-running, non-interactive tasks may  benefit  from  SCHED_BATCH  as
timeslices are longer, less system-time is wasted by computing the next
runnable process and the caches stay stable.

Audio/video or other near-realtime applications may run with less skip-
ping  if  set  to SCHED_RR.  Use the static priority-switch -p to fine-
tune inter-process-hierarchies.

schedtool now supports setting the  CPU-affinity  introduced  in  linux
2.5.8.

%prep
%setup -q
%patch0 -p1

%build
CFLAGS="%{optflags}" %make

%install
install -m755 -d %{buildroot}/%{_bindir}/
install -m755  %{name} %{buildroot}/%{_bindir}/%{name}
install -m755 -d %{buildroot}/%{_mandir}/man8/
install -m611  %{name}.8 %{buildroot}/%{_mandir}/man8/%{name}.8

%clean

%files
%attr(755,root,root) %{_bindir}/*
%doc CHANGES INSTALL LICENSE PACKAGERS README SCHED_DESIGN TUNING
%attr(644,root,root) %{_mandir}/man8/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8660 |21cr|schismtracker-20221201-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Music editor, Impulse Tracker clone
Name:		schismtracker
Version:	20221201
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://schismtracker.org/
Source0:	https://github.com/schismtracker/schismtracker/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		schismtracker-makefile.patch
BuildRequires:	autoconf-archive
BuildRequires:	desktop-file-utils
BuildRequires:	python3
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xv)

%description
Schism Tracker is a free reimplementation of Impulse Tracker, a program used
to create high quality music without the requirements of specialized,
expensive equipment, and with a unique "finger feel" that is difficult to
replicate in-part. The player is based on a highly modified version of the
Modplug engine, with a number of bug-fixes and changes to improve IT playback.

%files
%doc AUTHORS COPYING NEWS README.md
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/*/*/%{name}*
%{_datadir}/applications/schism.desktop
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

# Provide more icons
for size in 16 22 24 32 36 48 64 72 96 128 192; do
  install -D -m 0644 icons/schism-icon-$size.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
done
install -D -m 0644 icons/schism-icon.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
# Remove unwanted icon
rm -rf %{buildroot}%{_datadir}/pixmaps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8661 |21cr|school-ringer-1-13.git4b7384.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 4b7384a1515b8ced1acc0f79d962fb0c0a2a6f2c
%define commit_short %(echo %{commit} | head -c6)

Summary:	Program for scheduling rings in school
Summary(ru_RU.UTF-8):	Программа для планирования звонков в школе
Name:		school-ringer
Version:	1
Release:	13.git%{commit_short}.1
License:	GPLv3
Group:		Education
Url:		https://hub.mos.ru/mos/src/school-ringer
Source0:	https://hub.mos.ru/mos/src/school-ringer/-/archive/%{commit}/%{name}-%{commit}.tar.gz
Source1:	sysusers.conf
Requires:	python3-openpyxl
Requires:	python3-schedule
Requires:	python3-qt5-core
Requires:	python3-qt5-gui
Requires:	python3-qt5-widgets
Requires:	py-ini-config
Requires:	sox
Recommends:	polkit
%if %{mdvver} >= 202310
Requires(pre): %{_bindir}/systemd-sysusers
%else
Requires(pre): /bin/systemd-sysusers
%endif

BuildArch:	noarch

%description
Program for scheduling rings in school.

%description -l ru_RU.UTF-8
Программа для планирования звонков в школе.

%files
%{_bindir}/school-ringer-gui
%{_bindir}/school-ringer-daemon
%{python3_sitelib}/school_ringer_modules
%{_datadir}/applications/school-ringer.desktop
%{_datadir}/polkit-1/actions/ru.mos.os.school-ringer.policy
%{_iconsdir}/hicolor/scalable/apps/school-ringer.svg
%{_datadir}/school-ringer
%{_sysusersdir}/school-ringer.conf
%{_unitdir}/school-ringer.service
%attr(700,school-ringer,school-ringer) /var/lib/school-ringer

%pre
%sysusers_create_package school-ringer %{SOURCE1}

%post
%systemd_post school-ringer.service

%preun
%systemd_preun school-ringer.service

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 app.py %{buildroot}%{_bindir}/school-ringer-gui
install -m755 daemon.py %{buildroot}%{_bindir}/school-ringer-daemon
mkdir -p %{buildroot}%{python3_sitelib}/school_ringer_modules
install -m644 school_ringer_modules/* %{buildroot}%{python3_sitelib}/school_ringer_modules/
mkdir -p %{buildroot}%{_datadir}/school-ringer/config
mkdir -p %{buildroot}%{_datadir}/school-ringer/sound
install -m644 cat-box.gif %{buildroot}%{_datadir}/school-ringer/config
install -m644 school-ringer.conf %{buildroot}%{_datadir}/school-ringer/config
install -m644 ring_schedule.xlsx %{buildroot}%{_datadir}/school-ringer/config
install -m644 ring01.mp3 %{buildroot}%{_datadir}/school-ringer/sound
touch %{buildroot}%{_datadir}/school-ringer/config/pid
chmod 666 %{buildroot}%{_datadir}/school-ringer/config/pid
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 school-ringer.desktop %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
install -m644 school-ringer.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
install -m644 polkit/ru.mos.os.school-ringer.policy %{buildroot}%{_datadir}/polkit-1/actions
mkdir -p %{buildroot}%{_unitdir}
install -m644 school-ringer.service %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysusersdir}
install -m644 %{SOURCE1} %{buildroot}%{_sysusersdir}/school-ringer.conf
mkdir --mode=700 -p %{buildroot}/var/lib/school-ringer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8662 |21cr|schroot-1.7.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname sbuild %{version}
%define devname %mklibname sbuild -d

Summary:	Execute commands in a chroot environment
Name:		schroot
Version:	1.7.2
Release:	5
License:	GPLv3+
Group:		Development/Other
Url:		http://packages.debian.org/schroot
Source0:	http://ftp.de.debian.org/debian/pool/main/s/schroot/%{name}_%{version}.orig.tar.xz
Patch0:		schroot-pam.patch
Patch1:		schroot-default-config-path.patch
Patch2:		schroot-1.7.2-regex.patch
Patch3:		schroot-1.7.2-gtest-1.7.0.patch
BuildRequires:	btrfs-progs
BuildRequires:	cmake
BuildRequires:	debootstrap
BuildRequires:	doxygen
BuildRequires:	fakeroot
BuildRequires:	gettext
BuildRequires:	groff
BuildRequires:	po4a
BuildRequires:	pam-devel
BuildRequires:	boost-devel
BuildRequires:	gmock-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(lockdev)
BuildRequires:	pkgconfig(uuid)
Recommends:	lvm2
Recommends:	btrfs-progs

%description
schroot allows users to execute commands or interactive shells in
different chroots.  Any number of named chroots may be created, and
access permissions given to each, including root access for normal
users, on a per-user or per-group basis.  Additionally, schroot can
switch to a different user in the chroot, using PAM for
authentication and authorisation.  
All operations are logged for security.

Several different types of chroot are supported, including normal
directories in the filesystem, and also block devices.  Sessions,
persistent chroots created on the fly from files (tar with optional
compression and zip) and LVM snapshots are also supported.

schroot supports kernel personalities, allowing the programs run
inside the chroot to have a different personality.  For example,
running 32-bit chroots on 64-bit systems, or even running binaries
from alternative operating systems such as SVR4 or Xenix.

schroot also integrates with sbuild, to allow building packages with
all supported chroot types, including session-managed chroot types
such as LVM snapshots.

schroot shares most of its options with dchroot, but offers vastly
more functionality.

%files -f build/%{name}.lang
%doc COPYING AUTHORS ChangeLog HACKING NEWS README THANKS TODO
%{_bindir}/schroot
%dir %{_sysconfdir}/schroot
%dir %{_sysconfdir}/schroot/chroot.d
%config(noreplace) %{_sysconfdir}/schroot/schroot.conf
%config(noreplace) %{_sysconfdir}/pam.d/schroot
%dir %{_sysconfdir}/schroot/setup.d
%{_sysconfdir}/bash_completion.d/schroot
%{_sysconfdir}/schroot/default/copyfiles
%{_sysconfdir}/schroot/default/fstab
%{_sysconfdir}/schroot/default/nssdatabases
%{_sysconfdir}/schroot/desktop/copyfiles
%{_sysconfdir}/schroot/desktop/fstab
%{_sysconfdir}/schroot/desktop/nssdatabases
%{_sysconfdir}/schroot/minimal/copyfiles
%{_sysconfdir}/schroot/minimal/fstab
%{_sysconfdir}/schroot/minimal/nssdatabases
%{_sysconfdir}/schroot/buildd/copyfiles
%{_sysconfdir}/schroot/buildd/fstab
%{_sysconfdir}/schroot/buildd/nssdatabases
%{_sysconfdir}/schroot/sbuild/copyfiles
%{_sysconfdir}/schroot/sbuild/fstab
%{_sysconfdir}/schroot/sbuild/nssdatabases
%{_sysconfdir}/schroot/setup.d/00check
%{_sysconfdir}/schroot/setup.d/05btrfs
%{_sysconfdir}/schroot/setup.d/05file
%{_sysconfdir}/schroot/setup.d/05lvm
%{_sysconfdir}/schroot/setup.d/05union
%{_sysconfdir}/schroot/setup.d/10mount
%{_sysconfdir}/schroot/setup.d/15binfmt
%{_sysconfdir}/schroot/setup.d/15killprocs
%{_sysconfdir}/schroot/setup.d/20copyfiles
%{_sysconfdir}/schroot/setup.d/20nssdatabases
%{_sysconfdir}/schroot/setup.d/50chrootname
%{_sysconfdir}/schroot/setup.d/70services
%{_sysconfdir}/schroot/setup.d/99check
%dir %{_prefix}/libexec/schroot
%{_prefix}/libexec/schroot/listmounts
%{_prefix}/libexec/schroot/mount
%dir %{_localstatedir}/lib/schroot
%{_localstatedir}/lib/schroot/session
%{_localstatedir}/lib/schroot/mount
%{_datadir}/%{name}/setup/common-config
%{_datadir}/%{name}/setup/common-data
%{_datadir}/%{name}/setup/common-functions
%{_mandir}/man1/schroot.1.*
%{_mandir}/de/man1/schroot.1.*
%{_mandir}/fr/man1/schroot.1.*
%{_mandir}/man5/schroot*.5.*
%{_mandir}/man7/schroot*.7.*
%{_mandir}/de/man5/schroot*.5.*
%{_mandir}/de/man7/schroot*.7.*
%{_mandir}/fr/man5/schroot*.5.*
%{_mandir}/fr/man7/schroot*.7.*

#----------------------------------------------------------------------------

%package -n dchroot
Summary:	Older tool similar to schroot
Group:		Development/Other

%description -n dchroot
dchroot allows users to execute commands or interactive shells in different 
chroots. Users can move between chroots as necessary. Enhanced functionality 
is available in the next generation tool called schroot.

%files -n dchroot
%{_bindir}/dchroot*
%{_mandir}/man1/dchroot*.1.*
%{_mandir}/de/man1/dchroot*.1.*
%{_mandir}/fr/man1/dchroot*.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Sbuild library for schroot and dchroot
Group:		System/Libraries

%description -n %{libname}
sbuild library for schroot and dchroot.

%files -n %{libname}
%{_libdir}/libsbuild.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Group:		Development/Other
Summary:	Develoment files for schroot and dchroot
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Develoment files for schroot and dchroot.

%files -n %{devname}
%dir %{_includedir}/sbuild
%{_includedir}/sbuild/*
%{_libdir}/libsbuild.so
%{_libdir}/pkgconfig/sbuild.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p1

%build
export CXXFLAGS="%{optflags} -std=c++11"
%cmake \
	-DCMAKE_INSTALL_LOCALSTATEDIR=/var \
	-DCMAKE_INSTALL_SYSCONFDIR=/etc \
	-Dlvm-snapshot=ON \
	-Dbtrfs-snapshot=ON \
	-Ddchroot=ON \
	-Ddchroot-dsa=ON \
	-DBTRFS_EXECUTABLE=/usr/sbin/btrfs \
	-DLVCREATE_EXECUTABLE=/usr/sbin/lvcreate \
	-DLVREMOVE_EXECUTABLE=/usr/sbin/lvremove

%make

%install
pushd build
%makeinstall_std
mkdir -p %{buildroot}%{_localstatedir}/lib/schroot/session
mkdir -p %{buildroot}%{_sysconfdir}/schroot/chroot.d
/sbin/ldconfig -n %{buildroot}/%{_libdir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8663 |21cr|scid-4.7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Shane's Chess Information Database
Name:		scid
Version:	4.7.4
Release:	1
License:	GPLv2+
Group:		Games/Boards
Url:		http://scid.sourceforge.net
Source0:	https://sourceforge.net/projects/scid/files/Scid/Scid%20%{url_ver}/scid-code-%{version}.zip
Source1:	%{name}.png
Patch0:		scid-4.7.4-cflags.patch
Patch1:		scid-4.6.1-sfmt.patch
# Based on Gentoo patch
Patch2:		scid-4.7.4-rosa.patch
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(zlib)

%description
Scid (Shane's Chess Information Database) is a free chess database app.

With Scid you can maintain a database of chess games, search games by
many criteria, view graphical trends, and produce printable reports on
players and openings.

You can also analyze games with the Xboard or UCI compatible chess
program, and even use Scid to study endings with endgame tablebases.

With Scid you can also play against various engines, or on the Internet.

%files
%doc ChangeLog COPYING
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/*/*/*/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i -e "s:@ROSA_DATADIR@:%{_datadir}/%{name}:" tcl/options.tcl
sed -i -e "s:@ROSA_DATADIR@:%{_datadir}/%{name}:" tcl/start.tcl

%build
%setup_compile_flags
./configure \
	BINDIR=%{_bindir} \
	SHAREDIR=%{_datadir}/%{name} \
	OPTIMIZE="%{optflags}"
%make

%install
# makeinstall_std macro not work
make install DESTDIR=%{buildroot}

mkdir -p %{buildroot}%{_iconsdir}/hicolor/128x128/apps
cp %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/128x128/apps

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Scid
Comment=Chess games database
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=BoardGame;
EOF

# set python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/pgnfix

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8664 |21cr|scilab-6.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude lib.*|ld-linux.*
%global __requires_exclude lib.*
%define debug_package %{nil}

Summary:	A high-level language for numerical computations
Name:		scilab
Version:	6.1.1
Release:	4
License:	CeCILL
Group:		Sciences/Mathematics
Url:		https://www.scilab.org/
Source0:	https://www.scilab.org/download/%{version}/%{name}-%{version}.bin.linux-x86_64.tar.gz
Source100:	%{name}.rpmlintrc
Requires:	ocaml
Requires:	gcc-gfortran
Requires:	gcc-c++
Requires:	java
Requires:	docbook-style-xsl
Requires:	jlatexmath
Requires:	%{_lib}ncursesw6
ExclusiveArch:	x86_64

%description
Scilab is a high-level language, primarily intended for numerical
computations.  Scilab includes a number of toolboxes and on-line
documentation.

%files
%{_bindir}/*
%{_iconsdir}/hicolor/*/*/*.png
%{_datadir}/appdata
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages
%{_datadir}/%{name}-%{version}

#------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other

%description devel
Development files and headers for %{name}.

%files devel
%{_includedir}/%{name}

#------------------------------------------------------------

%prep
%setup -qcT
tar xzvf %{SOURCE0}

%build

%install
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_includedir}

cp -r %{name}-%{version} %{buildroot}%{_datadir}/
mv %{buildroot}%{_datadir}/%{name}-%{version}/share/appdata %{buildroot}%{_datadir}/
mv %{buildroot}%{_datadir}/%{name}-%{version}/share/applications %{buildroot}%{_datadir}/
mv %{buildroot}%{_datadir}/%{name}-%{version}/share/icons %{buildroot}%{_datadir}/
mv %{buildroot}%{_datadir}/%{name}-%{version}/share/mime %{buildroot}%{_datadir}/

mv %{buildroot}%{_datadir}/%{name}-%{version}/include/%{name} %{buildroot}%{_includedir}/
rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/include

# pc file should be adopted. can't ship it "as is"
rm -rf %{buildroot}%{_datadir}/%{name}-%{version}/lib/pkgconfig

mkdir -p %{buildroot}%{_bindir}

cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/bin/sh
cd %{_datadir}/%{name}-%{version}/bin
./scilab "\$@"
EOF

cat > %{buildroot}%{_bindir}/xcos <<EOF
#!/bin/sh
cd %{_datadir}/%{name}-%{version}/bin
./xcos "\$@"
EOF

cat > %{buildroot}%{_bindir}/scinotes <<EOF
#!/bin/sh
cd %{_datadir}/%{name}-%{version}/bin
./scinotes "\$@"
EOF

chmod a+x %{buildroot}%{_bindir}/%{name}
chmod a+x %{buildroot}%{_bindir}/xcos
chmod a+x %{buildroot}%{_bindir}/scinotes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8665 |21cr|scim-1.4.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define scim_api 1.4.0
%define major 8
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

%define _xinputconf %{_sysconfdir}/X11/xinit/xinput.d/scim.conf

Summary:	Smart Common Input Method platform
Name:		scim
Version:	1.4.18
Release:	1
Group:		System/Internationalization
License:	LGPLv2+
# alt URL:	http://sourceforge.net/projects/scim/
Url:		http://www.scim-im.org
Source0:	https://github.com/scim-im/scim/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	xinput-scim
Source2:	scim-icons-0.7.tar.bz2
Source3:	scim-system-config
Source4:	scim-system-global
Patch1:		scim-add-restart.patch
Patch7:		scim_panel_gtk-emacs-cc-style.patch

BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	libtool-devel
BuildRequires:	libxt-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
# for autogen.sh
Buildrequires: gnome-common
Requires:	%{name}-common
# fwang: in fact, scim could interact with gtk2 apps via xim
#Suggests:	%{name}-gtk

%description
SCIM is a developing platform to significant reduce the difficulty of 
input method development.

%files
%doc AUTHORS COPYING README ChangeLog TODO
%{_bindir}/scim

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	SCIM shared library
Group:		System/Internationalization

%description -n %{libname}
SCIM shared library.

%files -n %{libname}
%{_libdir}/libscim-%{api}.so.%{major}*
%{_libdir}/libscim-gtkutils-%{api}.so.%{major}*
%{_libdir}/libscim-x11utils-%{api}.so.%{major}*

#----------------------------------------------------------------------

%package common
Summary:	SCIM common files
Group:		System/Internationalization

%description common
Common files for scim input method.

%files common -f %{name}.lang
%{_bindir}/scim-im-agent
%{_bindir}/scim-setup
%{_bindir}/scim-config-agent
%dir %{_sysconfdir}/scim
%config(noreplace) %{_sysconfdir}/scim/*
%{_libdir}/scim-1.0/scim-helper-launcher
%{_libdir}/scim-1.0/scim-helper-manager
%{_libdir}/scim-1.0/scim-launcher
%{_libdir}/scim-1.0/scim-panel-gtk
%dir %{_libdir}/scim-1.0/%{scim_api}
%{_libdir}/scim-1.0/%{scim_api}/Filter
%{_libdir}/scim-1.0/%{scim_api}/FrontEnd
%{_libdir}/scim-1.0/%{scim_api}/Helper
%dir %{_libdir}/scim-1.0/%{scim_api}/IMEngine
%{_libdir}/scim-1.0/%{scim_api}/IMEngine/socket.so
%{_libdir}/scim-1.0/%{scim_api}/IMEngine/rawcode.so
%{_libdir}/scim-1.0/%{scim_api}/SetupUI
%{_libdir}/scim-1.0/%{scim_api}/Config
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_xinputconf}

%post
# remove old xinput.d alternatives
%define cjk_langs ja_JP ko_KR zh_CN zh_HK zh_TW
%define indic_langs as_IN bn_IN gu_IN hi_IN kn_IN ml_IN or_IN pa_IN ta_IN te_IN
%define supported_langs %{cjk_langs} %{indic_langs} ne_NE si_LK th_TH vi_VN
for llcc in %{supported_langs}; do
   %{_sbindir}/alternatives --remove xinput-$llcc %{_sysconfdir}/X11/xinit/xinput.d/scim &>/dev/null || :
   # if alternative was set to manual scim, reset to auto
   [ -L %{_sysconfdir}/alternatives/xinput-$llcc -a "`readlink %{_sysconfdir}/alternatives/xinput-$llcc`" = "%{_sysconfdir}/X11/xinit/xinput.d/scim" ] && %{_sbindir}/alternatives --auto xinput-$llcc &>/dev/null || :
done

# xinputrc alternative
%{_sbindir}/alternatives --install %{_sysconfdir}/X11/xinit/xinputrc xinputrc %{_xinputconf} 82 || :

%postun
if [ "$1" = "0" ]; then
   %{_sbindir}/alternatives --remove xinputrc %{_xinputconf} || :
   # if alternative was set to manual scim, reset to auto
   [ -L %{_sysconfdir}/alternatives/xinputrc -a "`readlink %{_sysconfdir}/alternatives/xinputrc`" = "%{_xinputconf}" ] && %{_sbindir}/alternatives --auto xinputrc || :
fi
#----------------------------------------------------------------------

%package gtk
Summary:	SCIM Gtk 2.x IM module
Group:		System/Internationalization
Requires(post,postun):	gtk+2.0

%description gtk
This package provides a GTK 2.x input method module for SCIM.

%files gtk
%{_libdir}/gtk-2.0/*/immodules/im-scim.so

%post gtk
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%{_lib}

%postun gtk
gtk-query-immodules-2.0 > %{_sysconfdir}/gtk-2.0/gtk.immodules.%{_lib}

#----------------------------------------------------------------------

%package gtk3
Summary:	SCIM Gtk 3.x IM module
Group:		System/Internationalization

%description gtk3
This package provides a GTK 3.x input method module for SCIM.

%files gtk3
%{_libdir}/gtk-3.0/*/immodules/im-scim.so

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of SCIM for development
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/scim-1.0
%{_includedir}/scim-1.0/*.h
%{_includedir}/scim-1.0/gtk/*.h
%{_includedir}/scim-1.0/x11/scim_x11_utils.h

#----------------------------------------------------------------------

%prep
%setup -q -a2

cp -p scim-icons/icons/*.png data/icons
cp -p scim-icons/pixmaps/*.png data/pixmaps

# use our system config & global file
mv configs/config{,.orig} 
cp -p %{SOURCE3} configs/config
mv configs/global{,.orig} 
cp -p %{SOURCE4} configs/global

#%%patch1 -p1
%patch7 -p1 -b .7-emacs-ccmode~

touch ./ABOUT-NLS



%build
#intltoolize --automake --copy --force
#aclocal -I m4
#automake -a
#autoconf
pushd extras/immodules
./bootstrap
popd

./bootstrap

# not use configure macros, its launch automake etc.. and configure fail
./configure \
	--prefix=%{_prefix} \
	--sysconfdir=%{_sysconfdir} \
	--localstatedir=%{_localstatedir} \
	--libdir=%{_libdir} \
	--disable-static \
	--enable-ld-version-script \
	--with-gtk-version=3 \
	--disable-qt3-immodule \
	--disable-qt4-immodule
%make

%install
%makeinstall_std

# remove .la files
find %{buildroot} -name '*.la' | xargs rm

# remove scim-setup.desktop file since it is confusing with im-chooser
rm -dr %{buildroot}%{_datadir}/applications
# remove capplet
rm %{buildroot}/%{_datadir}/control-center-2.0/capplets/scim-setup.desktop

# don't need this
rm -f docs/html/FreeSans.ttf

# install xinput config file
mkdir -pm 755 %{buildroot}/%{_sysconfdir}/X11/xinit/xinput.d
install -pm 644 %{SOURCE1} %{buildroot}%{_xinputconf}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8666 |21cr|scim-googlepinyin-0.1-0.20101114.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapdate 20101114

Summary:	An SCIM port of android Google Pinyin IME
Name:		scim-googlepinyin
Version:	0.1
Release:	0.%{snapdate}.3
License:	ASL 2.0
Group:		System/Internationalization
Url:		http://code.google.com/p/scim-googlepinyin/
# source0 is generated by:
# git clone git://github.com/tchaikov/scim-googlepinyin.git
# cd scim-googlepinyin
# git archive --format=tar --prefix=scim-googlepinyin/ HEAD | xz> scim-googlepinyin-%{snapdate}.tar.xz
Source0:	%{name}-%{snapdate}.tar.xz
BuildRequires:	pkgconfig(scim)

%description
scim-googlepinyin is an SCIM port of google-pinyin on android platform.
It's basically a translation from its original java code to C++ counterpart.
Android google pinyin's core is not changed in porting, but this user
interface is slightly modified to simulate the bevaviour of GooglePinyin
on Windows.

%files
%{_datadir}/scim/googlepinyin
%{_datadir}/scim/icons/google-pinyin_icon.png
%{_libdir}/scim-1.0/*/*/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
./autogen.sh
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8667 |21cr|scim-hangul-0.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hangul Input Method Engine for SCIM
Name:		scim-hangul
Version:	0.4.0
Release:	5
License:	GPLv3+
Group:		System/Internationalization
Url:		http://www.scim-im.org/
Source0:	http://downloads.sourceforge.net/scim/%{name}-%{version}.tar.gz
Patch0:		scim-hangul-0.4.0.gcc47.patch
BuildRequires:	pkgconfig(libhangul)
BuildRequires:	pkgconfig(scim)

%description
Scim-hangul is a SCIM IMEngine module for Korean (Hangul) input support.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_libdir}/scim-1.0/*/IMEngine/hangul.so
%{_libdir}/scim-1.0/*/SetupUI/hangul-imengine-setup.so
%{_datadir}/scim/icons/scim-hangul*.png
%{_datadir}/scim/hangul

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8668 |21cr|scim-m17n-0.2.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A wrapper for m17n
Name:		scim-m17n
Version:	0.2.3
Release:	8
License:	GPLv2+
Group:		System/Internationalization
Url:		http://sourceforge.net/projects/scim/
Source0:	http://freefr.dl.sourceforge.net/sourceforge/scim/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(m17n-core)
BuildRequires:	pkgconfig(scim)
Requires:	m17n-lib

%description
A wrapper for m17n.

%files
%doc AUTHORS COPYING
%{_datadir}/scim/icons/*
%{_libdir}/scim-1.0/*/IMEngine/m17n.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

# remove unneeded files
rm -f %{buildroot}%{scim_plugins_dir}/IMEngine/*.{a,la}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8669 |21cr|scim-pinyin-0.5.92-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Chinese input module for Smart Chinese/Common Input Method platform
Name:		scim-pinyin
Version:	0.5.92
Release:	4
License:	GPLv2+
Group:		System/Internationalization
Url:		http://www.scim-im.org
Source0:	http://dl.sourceforge.net/scim/%{name}-%{version}.tar.gz
Patch0:		scim-pinyin-showallkeys.patch
Patch1:		scim-pinyin-0.5.91-save-in-temp.patch
Patch2:		scim-pinyin-0.5.91-fix-load.patch
Patch3:		scim-pinyin-0.5.91-fix-ms-shuangpin.patch
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(scim)

%description
SCIM is a platform for the development of input methods. This is the
Chinese Pinyin input module for SCIM. You should install it if you
wish to enter Chinese text using the Pinyin input method.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_libdir}/scim-1.0/*/IMEngine/pinyin.so
%{_libdir}/scim-1.0/*/SetupUI/pinyin-imengine-setup.so
%{_datadir}/scim/pinyin
%{_datadir}/scim/icons/smart-pinyin.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
autoreconf -fi
%configure --disable-static
# force rebuild of updated po:
%make -C po update-gmo
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8670 |21cr|scim-tables-0.5.13-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Data files for SCIM Generic Table input method module
Name:		scim-tables
Version:	0.5.13
Release:	5
License:	GPLv2+
Group:		System/Internationalization
Url:		http://sourceforge.net/projects/scim/
Source0:	http://downloads.sourceforge.net/scim/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(scim) >= 1.4.9
BuildRequires:	pkgconfig(scim-gtkutils) >= 1.4.9
Requires:	scim-tables-lang = %{EVRD}

%description
This package includes many data files for SCIM Generic Table input method
module. The data files are came from unicon and xcin.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/scim-make-table
%{_datadir}/scim/icons/table.png
%{_mandir}/man1/*
%{_libdir}/scim-1.0/*/IMEngine/*.so
%{_libdir}/scim-1.0/*/SetupUI/*.so

#----------------------------------------------------------------------------

%package en
Summary:	Dummy package for scim-tables-lang
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-en
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description en
This package is dummy package to satisfy scim-tables-lang.

%files en
%doc README

#----------------------------------------------------------------------------

%package am
Summary:	Data files for Amharic
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-am
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description am
This package includes table IM data files for Amharic.

%files am
%{_datadir}/scim/tables/Amharic.bin
%{_datadir}/scim/icons/Amharic.png

#----------------------------------------------------------------------------

%package ar
Summary:	Data files for Arabic
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-ar
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description ar
This package includes table IM data files for Arabic.

%files ar
%{_datadir}/scim/tables/Arabic.bin
%{_datadir}/scim/icons/Arabic.png

#----------------------------------------------------------------------------

%package bn
Summary:	Data files for Bengali
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-bn
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description bn
This package includes table IM data files for Bengali.

%files bn
%{_datadir}/scim/tables/Bengali-inscript.bin
%{_datadir}/scim/tables/Bengali-probhat.bin
%{_datadir}/scim/icons/Bengali-inscript.png
%{_datadir}/scim/icons/Bengali-probhat.png

#----------------------------------------------------------------------------

%package el
Summary:	Data files for Greek
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-el
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description el
This package includes table IM data files for Greek.

%files el
%{_datadir}/scim/tables/greekpoly.bin

#----------------------------------------------------------------------------

%package gu
Summary:	Data files for Gujarati
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-gu
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description gu
This package includes table IM data files for Gujarati.

%files gu
%{_datadir}/scim/tables/Gujarati-inscript.bin
%{_datadir}/scim/tables/Gujarati-phonetic.bin
%{_datadir}/scim/icons/Gujarati-inscript.png
%{_datadir}/scim/icons/Gujarati-phonetic.png

#----------------------------------------------------------------------------

%package he
Summary:	Data files for Hebrew
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-he
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description he
This package includes table IM data files for Hebrew.

%files he
%{_datadir}/scim/tables/classicalhebrew.bin
%{_datadir}/scim/tables/HebrewComputer.bin
%{_datadir}/scim/icons/HebrewComputer.png

#----------------------------------------------------------------------------

%package hi
Summary:	Data files for Hindi
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-hi
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description hi
This package includes table IM data files for Hindi.

%files hi
%{_datadir}/scim/tables/Hindi-remington.bin
%{_datadir}/scim/tables/Hindi-inscript.bin
%{_datadir}/scim/tables/Hindi-phonetic.bin
%{_datadir}/scim/icons/Hindi-remington.png
%{_datadir}/scim/icons/Hindi-inscript.png
%{_datadir}/scim/icons/Hindi-phonetic.png

#----------------------------------------------------------------------------

%package ja
Summary:	Data files for Japanese
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-ja
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description ja
This package includes table IM data files for Japanese.

%files ja
%doc tables/ja/kanjidic_licence.html tables/ja/kanjidic_doc.html tables/ja/kanjidic-permission-to-use-for-scim
%{_datadir}/scim/tables/HIRAGANA.bin
%{_datadir}/scim/tables/KATAKANA.bin
%{_datadir}/scim/tables/Nippon.bin
%{_datadir}/scim/icons/HIRAGANA.png
%{_datadir}/scim/icons/KATAKANA.png
%{_datadir}/scim/icons/Nippon.png

#----------------------------------------------------------------------------

%package kn
Summary:	Data files for Kannada
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-kn
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description kn
This package includes table IM data files for Kannada.

%files kn
%{_datadir}/scim/tables/Kannada-inscript.bin
%{_datadir}/scim/tables/Kannada-kgp.bin
%{_datadir}/scim/icons/Kannada-inscript.png
%{_datadir}/scim/icons/Kannada-kgp.png

#----------------------------------------------------------------------------

%package ko
Summary:	Data files for Korean
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-ko
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description ko
This package includes table IM data files for Korean.

%files ko
%{_datadir}/scim/tables/Hangul.bin
%{_datadir}/scim/tables/HangulRomaja.bin
%{_datadir}/scim/tables/Hanja.bin
%{_datadir}/scim/icons/Hangul.png
%{_datadir}/scim/icons/Hanja.png

#----------------------------------------------------------------------------

%package ml
Summary:	Data files for Malayalam
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-ml
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description ml
This package includes table IM data files for Malayalam.

%files ml
%{_datadir}/scim/tables/Malayalam-inscript.bin
%{_datadir}/scim/tables/Malayalam-phonetic.bin
%{_datadir}/scim/icons/Malayalam-inscript.png
%{_datadir}/scim/icons/Malayalam-phonetic.png

#----------------------------------------------------------------------------

%package mr
Summary:	Data files for Marathi
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-mr
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description mr
This package includes table IM data files for Marathi.

%files mr
%{_datadir}/scim/tables/Marathi-remington.bin
%{_datadir}/scim/icons/Marathi-remington.png

#----------------------------------------------------------------------------

%package ne
Summary:	Data files for Nepali
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-ne
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description ne
This package includes table IM data files for Nepali.

%files ne
%{_datadir}/scim/tables/Nepali_Rom.bin
%{_datadir}/scim/tables/Nepali_Trad.bin
%{_datadir}/scim/icons/Nepali.png

#----------------------------------------------------------------------------

%package pa
Summary:	Data files for Punjabi
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-pa
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description pa
This package includes table IM data files for Punjabi.

%files pa
%{_datadir}/scim/tables/Punjabi-remington.bin
%{_datadir}/scim/tables/Punjabi-inscript.bin
%{_datadir}/scim/tables/Punjabi-jhelum.bin
%{_datadir}/scim/tables/Punjabi-phonetic.bin
%{_datadir}/scim/icons/Punjabi-remington.png
%{_datadir}/scim/icons/Punjabi-inscript.png
%{_datadir}/scim/icons/Punjabi-jhelum.png
%{_datadir}/scim/icons/Punjabi-phonetic.png

#----------------------------------------------------------------------------

%package ru
Summary:	Data files for Yawerty
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-ru
Conflicts:	scim-tables-uk < 0.5.13
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description ru
This package includes table IM data files for Yawerty.

%files ru
%{_datadir}/scim/icons/Translit.png
%{_datadir}/scim/tables/Translit.bin
%{_datadir}/scim/tables/Yawerty.bin
%{_datadir}/scim/icons/Yawerty.png
%{_datadir}/scim/icons/RussianComputer.png
%{_datadir}/scim/tables/RussianTraditional.bin
%{_datadir}/scim/icons/RussianTraditional.png
%{_datadir}/scim/tables/RussianComputer.bin

#----------------------------------------------------------------------------

%package ta
Summary:	Data files for Tamil
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-ta
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description ta
This package includes table IM data files for Tamil.

%files ta
%{_datadir}/scim/tables/Tamil-tamil99.bin
%{_datadir}/scim/tables/Tamil-inscript.bin
%{_datadir}/scim/tables/Tamil-phonetic.bin
%{_datadir}/scim/tables/Tamil-remington.bin
%{_datadir}/scim/icons/Tamil-inscript.png
%{_datadir}/scim/icons/Tamil-phonetic.png
%{_datadir}/scim/icons/Tamil-remington.png
%{_datadir}/scim/icons/Tamil-tamil99.png

#----------------------------------------------------------------------------

%package te
Summary:	Data files for Telugu
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-te
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description te
This package includes table IM data files for Telugu.

%files te
%{_datadir}/scim/tables/Telugu-inscript.bin
%{_datadir}/scim/icons/Telugu-inscript.png

#----------------------------------------------------------------------------

%package th
Summary:	Data files for Thai
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-th
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description th
This package includes table IM data files for Thai.

%files th
%{_datadir}/scim/tables/Thai.bin
%{_datadir}/scim/icons/Thai.png

#----------------------------------------------------------------------------

%package ug
Summary:	Data files for Uyghur
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-ug
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description ug
This package includes table IM data files for Uyghur.

%files ug
%{_datadir}/scim/tables/Uyghur-Romanized.bin
%{_datadir}/scim/tables/Uyghur-Standard.bin
%{_datadir}/scim/icons/Uyghur.png

#----------------------------------------------------------------------------

%package uk
Summary:	Data files for Ukrainian
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-uk
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description uk
This package includes table IM data files for Ukrainian.

%files uk
%{_datadir}/scim/tables/Ukrainian-Translit.bin
%{_datadir}/scim/icons/Ukrainian-Translit.png

#----------------------------------------------------------------------------

%package vi
Summary:	Data files for Viqr
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-vi
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description vi
This package includes table IM data files for Viqr.

%files vi
%{_datadir}/scim/tables/Viqr.bin
%{_datadir}/scim/icons/Viqr.png

#----------------------------------------------------------------------------

%package zh
Summary:	Data files for Chinese
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
Requires:	locales-zh
Provides:	scim-tables-lang = %{EVRD}
BuildArch:	noarch

%description zh
This package includes table IM data files for Chinese.

%files zh
%doc tables/zh/README-Erbi.txt tables/zh/README-CangJie.txt
%doc tables/zh/README-Wu.txt
%{_datadir}/scim/tables/Erbi.bin
%{_datadir}/scim/tables/Erbi-QS.bin
%{_datadir}/scim/tables/Wubi.bin
%{_datadir}/scim/tables/Ziranma.bin
%{_datadir}/scim/icons/Erbi.png
%{_datadir}/scim/icons/Erbi-QS.png
%{_datadir}/scim/icons/Wubi.png
%{_datadir}/scim/icons/Ziranma.png
%{_datadir}/scim/tables/Array30.bin
%{_datadir}/scim/tables/CangJie.bin
%{_datadir}/scim/tables/CangJie3.bin
%{_datadir}/scim/tables/CangJie5.bin
%{_datadir}/scim/tables/Cantonese.bin
%{_datadir}/scim/tables/CantonHK.bin
%{_datadir}/scim/tables/CNS11643.bin
%{_datadir}/scim/tables/Dayi3.bin
%{_datadir}/scim/tables/EZ-Big.bin
%{_datadir}/scim/tables/Jyutping.bin
%{_datadir}/scim/tables/Quick.bin
%{_datadir}/scim/tables/Simplex.bin
%{_datadir}/scim/tables/Stroke5.bin
%{_datadir}/scim/tables/Wu.bin
%{_datadir}/scim/tables/ZhuYin.bin
%{_datadir}/scim/tables/ZhuYin-Big.bin
%{_datadir}/scim/tables/SmartCangJie6.bin
%{_datadir}/scim/icons/Array30.png
%{_datadir}/scim/icons/CangJie.png
%{_datadir}/scim/icons/CangJie3.png
%{_datadir}/scim/icons/Cantonese.png
%{_datadir}/scim/icons/CantonHK.png
%{_datadir}/scim/icons/CNS11643.png
%{_datadir}/scim/icons/Dayi.png
%{_datadir}/scim/icons/EZ.png
%{_datadir}/scim/icons/Jyutping.png
%{_datadir}/scim/icons/Quick.png
%{_datadir}/scim/icons/Simplex.png
%{_datadir}/scim/icons/Stroke5.png
%{_datadir}/scim/icons/Wu.png
%{_datadir}/scim/icons/ZhuYin.png
%{_datadir}/scim/icons/SmartCangJie6.png

#----------------------------------------------------------------------------

%package additional
Summary:	Data files for additional languages
Group:		System/Internationalization
Requires:	scim-tables = %{EVRD}
BuildArch:	noarch

%description additional
This package includes table IM data files for additional languages.

%files additional
%{_datadir}/scim/tables/LaTeX.bin
%{_datadir}/scim/tables/IPA-X-SAMPA.bin
%{_datadir}/scim/tables/IPA-Kirshenbaum.bin
%{_datadir}/scim/icons/LaTeX.png
%{_datadir}/scim/icons/IPA-X-SAMPA.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8671 |21cr|scim-thai-0.1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Thai IMEngine for SCIM
Name:		scim-thai
Version:	0.1.3
Release:	6
License:	GPLv2+
Group:		System/Internationalization
Url:		http://linux.thai.net/projects/scim-thai
Source0:	ftp://linux.thai.net/pub/ThaiLinux/software/libthai/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libthai)
BuildRequires:	pkgconfig(scim)

%description
Thai IMEngine for SCIM.

%files -f %{name}.lang
%doc AUTHORS COPYING
%{_datadir}/scim/icons/*
%{_libdir}/scim-1.0/*/IMEngine/*.so
%{_libdir}/scim-1.0/*/SetupUI/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--disable-rpath
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8672 |21cr|scite-5.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _version	%(echo %{version} | tr -d '.')

%define major   %(cut -d. -f1 <<< %{version})
%define libname %mklibname scintilla %{major}
%define develname %mklibname scintilla -d
%define liblexname %mklibname lexilla %{major}
%define devellexname %mklibname lexilla -d

Name:		scite
Version:	5.3.1
Release:	1
Summary:	SCIntilla based GTK+3 text editor
Group:		Editors
License:	MIT
Url:		http://www.scintilla.org/SciTE.html
Source0:	https://download.sourceforge.net/scintilla/%{name}%{_version}.tgz
Patch0:		scite-5.2.1-mga-desktop-file.patch
Patch1:		scite-skip-rpath.patch
Patch2:		scite-soname.patch
BuildRequires:	pkgconfig(gtk+-3.0)

%description
SciTE is a SCIntilla based Text Editor. Originally built to demonstrate
Scintilla, it has grown to be a generally useful editor with facilities for
building and running programs.

%package -n     %{libname}
Summary:        Scintilla shared libraries
Group:          System/Servers

%description -n %{libname}
Scintilla is a free source code editing component. As well as features
found in standard text editing components, Scintilla includes features
especially useful when editing and debugging source code. These include
support for syntax styling, error indicators, code completion and call
tips.

%package -n     %{develname}
Group:          Development/C
Summary:        Headers and static lib for scintilla development
Requires:       %{libname} = %{version}-%{release}
Provides:       scintilla-devel = %{version}-%{release}

%description -n %{develname}
Install this package if you want do compile applications using the
scintilla library.


%package -n     %{liblexname}
Summary:          Lexillia shared libraries
Group:          System/Servers

%description -n %{liblexname}
Scintilla is a free source code editing component. As well as features
found in standard text editing components, Scintilla includes features
especially useful when editing and debugging source code. These include
support for syntax styling, error indicators, code completion and call
tips.


%package -n     %{devellexname}
Group:          Development/C
Summary:        Headers and static lib for scintilla development
Requires:       %{liblexname} = %{version}-%{release}
Provides:       lexilla-devel = %{version}-%{release}

%description -n %{devellexname}
Install this package if you want do compile applications using the
lexilla library.

%prep
%autosetup -p1 -c

%build
%set_build_flags
%make_build GTK3=1 SOMAJOR=%{major} -C scintilla/gtk shared
%make_build GTK3=1 SOMAJOR=%{major} -C lexilla/src shared
%make_build libdir=%{_libdir} GTK3=1 SOMAJOR=%{major} -C scite/gtk

%install
%make_install libdir=%{_libdir} GTK3=1 SOMAJOR=%{major} -C scite/gtk

ln -s SciTE %{buildroot}%{_bindir}/scite

# move and rename icon
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps
mv %{buildroot}%{_datadir}/pixmaps/Sci48M.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# include files
for d in scintilla lexilla; do
  mkdir -p %{buildroot}%{_includedir}/$d
  install -pm644 $d/include/*.h %{buildroot}%{_includedir}/$d/
done

%files
%doc scite/README scite/License.txt
%{_bindir}/SciTE
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/SciTE.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files -n       %{libname}
%{_libdir}/libscintilla.so.%{major}
%doc scintilla/doc/*
%doc scintilla/License.txt

%files -n       %{develname}
%{_includedir}/scintilla/
%{_libdir}/libscintilla.so
# %{_libdir}/pkgconfig/scintilla.pc

%files -n       %{liblexname}
%{_libdir}/liblexilla.so.%{major}
%doc lexilla/doc/*
%doc lexilla/License.txt

%files -n       %{devellexname}
%{_includedir}/lexilla/
%{_libdir}/liblexilla.so
# %{_libdir}/pkgconfig/lexilla.pc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8673 |21cr|scitopdf-0-3.git72eacc.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 72eacce0acfb149619a09f1b96813b88c3b18959
%define commit_short %(echo %{commit} | head -c6)

Summary:	Download papers from Sci-Hub
Name:		scitopdf
Version:	0
Release:	3.git%{commit_short}.1
License:	GPLv3
Group:		Networking/WWW
Url:		https://github.com/dougy147/scitopdf
Source0:	https://github.com/dougy147/scitopdf/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Requires: bash
Requires: curl
Requires: grep
# tput command
Requires: ncurses
# to find PDF viewer
Recommends:	%{_bindir}/xdg-open
BuildArch:	noarch

%description
bash script to quickly fetch, download and open
scientific papers from Sci-Hub's database

%files
%{_bindir}/scitopdf
%{_mandir}/man1/scitopdf.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -m0755 bin/scitopdf %{buildroot}%{_bindir}/scitopdf
install -m0644 scitopdf.1 %{buildroot}%{_mandir}/man1/scitopdf.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8674 |21cr|scli-0.4.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SCLI - SNMP Command Line Interface
Name:		scli
Version:	0.4.0
Release:	20
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.ibr.cs.tu-bs.de/projects/scli/
Source0:	ftp://ftp.ibr.cs.tu-bs.de/pub/local/scli/%{name}-%{version}.tar.gz
#patch was sent upstream (Kharec)
Patch0:		scli-0.4.0-fix-str-fmt.patch
#from upstream
Patch1:		scli-0.4.0-readline6.3.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnet-2.0)
BuildRequires:	pkgconfig(gsnmp)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)

%description
Authors description on the project's home page:

The scli package was written to address the need for small and
efficient command line utilities to monitor and configure network
devices and host systems. The scli package is based on the SNMP
management protocol. It utilizes a MIB compiler called smidump to
generate C stub code. In fact, virtually no SNMP knowledge is required
in order to extend the scli programs with new features.

The programs contained in the scli package try to be very specific
rather than generic. Generic SNMP tools such as MIB browsers or simple
command line tools (e.g. snmpwalk) are hard to use since they expose
too many protocol details. And in most cases, they fail to present the
information in a format that is easy to read and understand.

The scli package was designed to be extensible. Additional modes that
extend the capabilities of the tools can easily be added. The smidump
MIB compiler hides all the SNMP protocol details so that every C
programmer can implement new modes. In fact, we like to encourage
users to write and contribute new modes so that the package becomes
more and more valuable.

To summarize, the slogan for this little package is: "After more than
10 years of SNMP, I felt it is time for really useful command line
SNMP monitoring and configuration tools. ;-)"

%files
%doc AUTHORS NEWS PORTING README TODO 
%{_bindir}/*
%{_mandir}/man1/*
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
%configure --disable-xmltest
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8675 |21cr|scmxx-0.9.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		scmxx
Summary:	Exchange data with Siemens mobile phones
Version:	0.9.0
Release:	9
License:	GPL
Group:		Communications
URL:		http://www.hendrik-sattler.de/scmxx
Source:		http://prdownloads.sourceforge.net/scmxx/%{name}-%{version}.tar.bz2

%description
SCMxx is a console program that allows you to exchange certain types of data
with mobile phones made by Siemens. Some of the data types that can be
exchanged are logos, ring tones, vCalendars, phonebook entries, and SMS
messages. It works with the following models: S25, S35i, M35i and C35i, SL45,
S45, ME45 and C45 and probably others.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-, root, root)
%doc BUGS INSTALL README TODO AUTHORS CHANGELOG docs/*.txt contrib
%{_bindir}/*
%{_mandir}/man*/*
%lang(ru) %{_mandir}/ru/*/*
%lang(de) %{_mandir}/de/*/*
%lang(it) %{_mandir}/it/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8676 |21cr|scorched3d-44-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Scorched3D

Summary:	3D artillery game similar to Scorched Earth
Name:		scorched3d
Version:	44
Release:	5
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.scorched3d.co.uk
Source0:	http://downloads.sourceforge.net/scorched3d/%{oname}-%{version}-src.tar.gz
# openal-soft does not provide openal-config, so fake it
Source1:	openal-config
Patch1:		scorched3d-help.patch
Patch2:		scorched3d-44-fdr-sys-lua.patch
Patch3:		scorched3d-44-fdr-syslibs.patch
Patch4:		scorched3d-returntype.patch
BuildRequires:	jpeg-devel
BuildRequires:	imagemagick
BuildRequires:	wxgtku2.8-devel
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(freetype2) >= 2.7
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(vorbis)

%description
Scorched is a game loosely-based on the classic DOS game Scorched
Earth, "The Mother Of All Games", with fully destructible 3D landscapes
and stunning visual effects.

"Scorched Earth is a simple, yet exciting artillery combat game,
based on an auspicious history of artillery games."
(Review of Scorched Earth at ClassicGaming.com)

In its simplest form Scorched is an artillery game.
Tanks take turns to earn money by destroying opponents in an arena.
Scorched attempts to recreate the simple yet addictive game play
of the original game, adding amongst other new features a 3D island
environment and LAN and internet play.

%files
%doc README documentation/*
%{_gamesbindir}/%{name}*
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n scorched
%apply_patches
install -m 755 %{SOURCE1} .

# ensure we use the system versions of these
rm -f src/common/common/snprintf.c
rm -f src/common/lua/l*.{cpp,h}
rm -f src/common/lua/print.cpp

%build
touch NEWS AUTHORS ChangeLog
autoreconf -vfi
export OPENAL_CONFIG=$PWD/openal-config
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}/%{name} \
	--with-wx-config=%{_bindir}/wx-config \
	--disable-openaltest \
	--enable-dependency-tracking

%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_gamesdatadir}/%{name}/{README,documentation}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Scorched3D
GenericName=Artillery game
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;StrategyGame;
EOF

# Extract 48x48 icon
convert data/images/tank2.ico tank2.png
install -D -m 644 tank2-0.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8677 |21cr|scponly-4.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	with_rsync	0
%define	with_svn	0
%define	with_unison	0
%define with_quota	0
%{?_with_rsync: %{expand: %%global with_rsync 1}}
%{?_with_svn: %{expand: %%global with_svn 1}}
%{?_with_unison: %{expand: %%global with_unison 1}}
%{?_with_quota: %{expand: %%global with_quota 1}}

Summary:	Connection shell to allow only scp/sftp/rsync/svn
Name:		scponly
Version:	4.8
Release:	7
License:	BSD
Group:		Networking/Remote access
Url:		http://sublimation.org/scponly/
Source0:	http://www.sublimation.org/scponly/%{name}-%{version}.tar.bz2
Patch0:		scponly-install.patch
Patch1:		scponly-4.8-elif-gcc44.patch
Requires(post):	rpm-helper >= 0.7
Requires(postun):	rpm-helper >= 0.7
Requires:	openssh-server
BuildRequires:	openssh-server
BuildRequires:	passwd
%if %{with_rsync}
Requires:	rsync
BuildRequires:	rsync
%endif
%if %{with_svn}
Requires:	subversion-server
BuildRequires:	subversion-server
%endif
%if %{with_unison}
Requires:	unison
BuildRequires:	unison
%endif
%if %{with_quota}
Requires:	quota
BuildRequires:	quota
%endif

%description
"scponly" is an alternative 'shell' (of sorts) for system
administrators who would like to provide access to remote users to
both read and write local files without providing any remote execution
priviledges. Functionally, it is best described as a wrapper to the
"tried and true" ssh suite of applications.

This package have some configurable build options:
--with rsync	- build with support for rsync
--with svn	- build with support for subversion
--with unison	- build with support for unison
--with quota	- build with support for quota

%files
%defattr(-,root,root)
%doc AUTHOR BUILDING-JAILS.TXT CHANGELOG CONTRIB COPYING README TODO
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/debuglevel
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man8/*
%dir %{_datadir}/%{name}-%{version}
%{_datadir}/%{name}-%{version}/*

#---------------------------------------------------------------------

%prep

%setup -q
%patch0 -p1
%patch1 -p1

%build
# temporary permission fix
chmod 644 AUTHOR BUILDING-JAILS.TXT CHANGELOG CONTRIB COPYING README TODO

# lib64 fix
export scponly_PROG_SFTP_SERVER="%{_libdir}/ssh/sftp-server"
perl -pi -e "s|/usr/lib\b|%{_libdir}|g" configure*

%configure \
%if %{with_rsync}
    --enable-rsync-compat \
%endif
%if %{with_svn}
    --enable-svn-compat \
    --enable-svnserv-compat \
%endif
%if %{with_unison}
    --enable-unison-compat \
%endif
%if %{with_quota}
    --enable-quota-compat \
%endif
    --enable-chrooted-binary \
    --enable-winscp-compat \
    --enable-sftp-logging-compat \
    --enable-scp-compat \
    --with-sftp-server=%{_libdir}/ssh/sftp-server \
    --enable-passwd-compat

%make

%install
perl -p -i -e 's/-o 0 -g 0//' Makefile*
%makeinstall CONFDIR=%{buildroot}%{_sysconfdir}/%{name}

mkdir -p %{buildroot}%{_datadir}/%{name}-%{version}
install -m 755 setup_chroot.sh %{buildroot}%{_datadir}/%{name}-%{version}
install -m 644 config.h %{buildroot}%{_datadir}/%{name}-%{version}
install -m 755 groups %{buildroot}%{_datadir}/%{name}-%{version}

%post
/usr/share/rpm-helper/add-shell %{name} $1 %{_bindir}/%{name}
/usr/share/rpm-helper/add-shell %{name} $1 %{_sbindir}/%{name}c

%postun
/usr/share/rpm-helper/del-shell %{name} $1 %{_bindir}/%{name}
/usr/share/rpm-helper/del-shell %{name} $1 %{_sbindir}/%{name}c

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8678 |21cr|scrabble-1.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Text Mode Scrabble Word Game
Name:		scrabble
Version:	1.5
Release:	9
License:	Public Domain
Group:		Games/Boards
URL:		http://packages.qa.debian.org/s/scrabble.html
Source:		%{name}-%{version}.tar.bz2
Patch0:		scrabble-1.5-hidden-config.patch.bz2
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildRequires:	perl
BuildArch:	noarch

%description
Scrabble is a hybrid of crossword mentality, positional strategy, and a
true test of your language mastery. You start with a board that serves
for the placement for letter tiles. On the board there are specific
squares that when used can add to your score dramatically. These
premium squares can double or triple letter values. Some of these
squares can even double or triple your word scores! You must position
yourself to grab the squares and block your opponent from spelling
out a "killer" word.

This package is not for beginners as the display does not include
letter values or a description of what the symbols on the board
represent. You must be familiar with the game of Scrabble before
trying to play this version.

%prep
%setup -q -n %{name}
%patch0 -p1 -b .hidden

%build

%install
rm -rf %{buildroot}
make install prefix=%{buildroot}%{_prefix}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_gamesbindir}/*
%{_datadir}/dict/*
%{_mandir}/man6/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8679 |21cr|scramble-4.5.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	scramble
Summary: 	File encryption utility used by xffm
Version: 	4.5.0
Release: 	12

Source:		http://downloads.sourceforge.net/xffm/%{name}-%{version}.tar.bz2
URL:		http://xffm.sf.net
License:	GPL
Group:		Graphical desktop/Other
BuildRequires:	xfce-dev-tools
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	intltool
BuildRequires:	glib-gettextize 

%description
Scramble is the command find tool used by the Xffm-filemanager to 
encrypt and descrypt files upon user request. The application is 
also used to schred files before deleting.

%prep
%setup -q

%build
autoreconf -fi -I /usr/share/xfce4/dev-tools/m4macros
%configure
%make
										
%install
rm -rf %{buildroot}
%makeinstall_std
%find_lang %{name}

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS COPYING* ChangeLog NEWS* README*
%{_bindir}/%{name}
%{_bindir}/unscramble
%{_mandir}/man1/*
%{_datadir}/xffm/%{name}
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8680 |21cr|scratch-1.4.0.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}
%define	__os_install_post /usr/lib/rpm/brp-compress %{nil}
%define	squeak_ver 4.10.2-2614

Summary:	Programming system and content development tool
Name:		scratch
Version:	1.4.0.7
Release:	8
License:	MIT
Group:		Education
Url:		https://scratch.mit.edu
Source0:	https://info.scratch.mit.edu/%{name}-%{version}.src.tar.gz
Source1:	scratch.rpmlintrc
Patch0:		scratch_locale.patch
Patch1:		scratch-1.4.0.7-implicit-function-declaration.patch
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(pangocairo)
Requires:	squeak-vm
Recommends:	python3dist(pyscrlink)

%description
Scratch is a programming language that makes it easy to create your own
interactive stories, animations, games, music, and art -- and share your
creations on the web.

%files
%doc %{_docdir}/%{name}
%license gpl-2.0.txt LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*x*/apps/*
%{_iconsdir}/hicolor/*x*/mimetypes/*
%{_libdir}/%{name}
%{_mandir}/man1/%{name}*.1*

#------------------------------------------------------------------

%prep
%autosetup -p0 -n %{name}-%{version}.src

rm -f Plugins/* Plugins64/* App/scratch_squeak_vm

%build
make

%install
install -d %{buildroot}%{_libdir}/%{name}/Plugins
install -m 644 Scratch.{image,ini} %{buildroot}%{_libdir}/%{name}
install -m 644 Plugins/* %{buildroot}%{_libdir}/%{name}/Plugins

install -d %{buildroot}%{_datadir}/%{name}

cp -R Media %{buildroot}%{_datadir}/%{name}/

install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Animation
install -m 644 Projects/Animation/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Animation/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Games
install -m 644 Projects/Games/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Games/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Greetings
install -m 644 Projects/Greetings/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Greetings/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Interactive\ Art
install -m 644 Projects/Interactive\ Art/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Interactive\ Art/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Music\ and\ Dance
install -m 644 Projects/Music\ and\ Dance/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Music\ and\ Dance/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Names
install -m 644 Projects/Names/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Names/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Sensors\ and\ Motors
install -m 644 Projects/Sensors\ and\ Motors/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Sensors\ and\ Motors/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Simulations
install -m 644 Projects/Simulations/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Simulations/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Speak\ Up
install -m 644 Projects/Speak\ Up/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Speak\ Up/
install -m 755 -d %{buildroot}%{_datadir}/%{name}/Projects/Stories
install -m 644 Projects/Stories/*.sb %{buildroot}%{_datadir}/%{name}/Projects/Stories/

install -m 755 -d %{buildroot}%{_datadir}/%{name}/Help/en/images
install -m 644 Help/en/*.pdf %{buildroot}%{_datadir}/%{name}/Help/en/
install -m 644 Help/en/*.html %{buildroot}%{_datadir}/%{name}/Help/en/
install -m 644 Help/en/*.gif %{buildroot}%{_datadir}/%{name}/Help/en/
install -m 644 Help/en/images/*.gif %{buildroot}%{_datadir}/%{name}/Help/en/images/

install -m 755 -d %{buildroot}%{_datadir}/%{name}/locale
install -m 644 locale/* %{buildroot}%{_datadir}/%{name}/locale/

install -d %{buildroot}%{_docdir}/%{name}
ln -sf %{_datadir}/%{name}/Help %{buildroot}%{_docdir}/%{name}/Help
install -m 644 {ACKNOWLEDGEMENTS,KNOWN-BUGS,LICENSE} %{buildroot}%{_docdir}/%{name}

install -d %{buildroot}%{_mandir}/man1
install -m 644 src/man/scratch.1.gz %{buildroot}%{_mandir}/man1

install -d %{buildroot}%{_datadir}/applications
install -m 644 src/%{name}.desktop %{buildroot}%{_datadir}/applications

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{48x48,128x128}/{apps,mimetypes}
install -m 644 src/icons/48x48/scratch.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
install -m 644 src/icons/128x128/scratch.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
install -m 644 src/icons/48x48/gnome-mime-application-x-scratch-project.png %{buildroot}%{_datadir}/icons/hicolor/48x48/mimetypes
install -m 644 src/icons/128x128/gnome-mime-application-x-scratch-project.png %{buildroot}%{_datadir}/icons/hicolor/128x128/mimetypes
install -d %{buildroot}%{_datadir}/mime/packages
install -m 644 src/%{name}.xml %{buildroot}%{_datadir}/mime/packages

install -d %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/bin/sh
# Squeakvm wrapper to load Scratch image.
#------------------------------------------------------------

/usr/bin/squeak \
-plugins %{_libdir}/scratch/Plugins:%{_libdir}/squeak/%{squeak_ver} \
-vm-sound-pulse \
%{_libdir}/scratch/Scratch.image "\${@}"
EOF
chmod +x %{buildroot}%{_bindir}/%{name}
chmod -R 755 %{buildroot}%{_datadir}/%{name}/Media

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8681 |21cr|scrcpy-1.24-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Display and control Android device
Name:		scrcpy
Version:	1.24
Release:	2
License:	ASL 2.0
Group:		File tools
Url:		https://github.com/Genymobile/scrcpy
Source0:	https://github.com/Genymobile/scrcpy/archive/v%{version}/%{name}-%{version}.tar.gz
# From OpenMandriva
# We use prebuild server jar file, to save time and nerves without compiling it with java. Suggested by upstream anyway (angry)
# FIXME we should build from source at some point to make sure nobody hide any backdoors inside prebuilt files...
Source1:	https://github.com/Genymobile/scrcpy/releases/download/v%{version}/scrcpy-server-v%{version}.jar
BuildRequires:	java
BuildRequires:	meson
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(sdl2)
Requires:	android-tools

%description
It's application provides display and control of Android devices
connected on USB (or over TCP/IP). 
It does not require any root access. It works on GNU/Linux, Windows and macOS.

%files
%doc README.md DEVELOP.md FAQ.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/%{name}
%{_datadir}/zsh/site-functions/_%{name}
%{_iconsdir}/hicolor/*x*/apps/%{name}.png
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dprebuilt_server=%{SOURCE1}
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8682 |21cr|screenfetch-dev-3.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname screenFetch

Name:           screenfetch-dev
Version:        3.9.1
Release:        1
Summary: 	Screen-shot information tool for nerds
License: 	GPLv3
Group: 		Shells
Url:		http://github.com/KittyKatt/screenFetch
Source0:	%{oname}-%{version}.tar.gz
BuildArch: 	noarch
Provides:	sfetch = %{EVRD}
Provides:	screenfetch = %{EVRD}
Requires:	bc

%description
Script to fetch system and theme settings for screen-shots in most mainstream.

%files
%doc CHANGELOG COPYING README.mkdn TODO
%{_bindir}/*
%{_mandir}/man1/screenfetch.1*
#-----------------------------------------------------------------------

%prep
%setup -qn  %{oname}-%{version}
# clean the shell before launch it.Sflo
sed -i '28iclear' screenfetch-dev

%build

%install
install -d -m 755 %{buildroot}%{_bindir}
# alias , "sfetch" is more handy to use for newbies
# and not only.Sflo
install -m 755 screenfetch-dev %{buildroot}%{_bindir}/
pushd %{buildroot}%{_bindir}
ln -s screenfetch-dev sfetch
ln -s screenfetch-dev screenfetch
popd
install -m 644 -p -D screenfetch.1 %{buildroot}%{_mandir}/man1/screenfetch.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8683 |21cr|screengen-1.10-0.20161103.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define debug_package %{nil}
#define distsuffix mrb
%define oversion 20161103

Summary:	Screen-list Generator
Name:		screengen
Version:	1.10
Release:	0.%{oversion}.1
License:	GPLv3
Url:		http://kochkin.tk/doku.php/screengen/start
Group:		Video
#Source0:	http://www.kochkin.org/lib/exe/fetch.php/%{name}/%{name}-%{version}-%{oversion}.tar.bz2
Source0:	http://www.kochkin.tk/screengen/devel/%{name}-%{version}.dev-%{oversion}.tar.bz2
BuildRequires:	qt4-devel >= 4.8
BuildRequires:	ffmpeg-devel
Requires:	ffmpeg

%description
Creates screen-list from a video file using ffmpeg-libs.
Console application (no GUI).
All parameters are specified on the command 
line or in the configuration file.

%files
%doc CHANGELOG COPYING example-scripts/
%{_bindir}/%{name}
%{_bindir}/%{name}-file
%lang(ru_RU) %{_datadir}/%{name}/translations/%{name}_ru_RU.qm
%{_datadir}/kde4/services/ServiceMenus/*.desktop
#-----------------------------------------------

%prep
%setup -qn %{name}
find . -type f -exec chmod 644 {} \;

%build
%qmake_qt4
%make 

%install
%makeinstall_qt
# kde4 integraytion
# contextuat menu entry in Dolphin
install -m755 example-scripts/screengen-file \
  %{buildroot}%{_bindir}/
  
mkdir -p %{buildroot}%{_datadir}/kde4/services/ServiceMenus
cp -pr  example-scripts/%{name}.desktop \
  %{buildroot}%{_datadir}/kde4/services/ServiceMenus/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8684 |21cr|screentest-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: The CRT screen quality testing utility
Name: screentest
Version: 2.0
Release: 6
License: GPLv2
Group: System/X11
Source: http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
URL: http://sourceforge.net/projects/%{name}/
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libglade-2.0)


%description
Screentest is a simple program which displays various patterns
(colors, circles, grids, text) on your screen in order to allow you
to evaluate the quality of your CRT/LCD monitor (sharpness, linearity, etc).

%prep
%setup -q

%build
export LDFLAGS="-lgmodule-2.0"
%configure
%make

%install
%makeinstall
%find_lang %{name}

%files -f %{name}.lang
%defattr(-, root,root)
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/%{name}
%{_datadir}/%{name}/%{name}.glade
%dir %{_datadir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8685 |21cr|scribus-1.5.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scribus - Open Source Page Layout
Name:		scribus
Version:	1.5.8
Release:	9
License:	GPLv2+
Group:		Office
Url:		http://www.scribus.net/
Source0:	https://sourceforge.net/projects/scribus/files/scribus-devel/%{version}/%{name}-%{version}.tar.xz
Source1:	scribus.ru.tar.gz
Source10:	scribus.rpmlintrc
Patch0:		scribus-1.5.4-build-error.patch
# https://bugs.scribus.net/view.php?id=16734 + git
Patch1:		scribus-1.5.8-poppler-22.4.0.patch
# https://bugs.scribus.net/view.php?id=16764&nbn=1
Patch2:		poppler-22.03.0.patch
# https://www.scribus.net/websvn/comp.php?repname=Scribus&compare[]=%2Fbranches%2FVersion15x%2FScribus@25134&compare[]=%2Fbranches%2FVersion15x%2FScribus@25139
Patch3:		scribus-poppler-22.09.0.patch
Patch4:		scribus-basepoint-widget.patch
Patch5:		scribus-podofo.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	python3-tkinter
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel
BuildRequires:	cups-devel
BuildRequires:	hyphen-devel
BuildRequires:	jpeg-devel
BuildRequires:	podofo-devel
BuildRequires:	python3-qt5-devel
BuildRequires:	python3dist(pillow)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcdr-0.1)
BuildRequires:	pkgconfig(libfreehand-0.1)
BuildRequires:	pkgconfig(libmspub-0.1)
BuildRequires:	pkgconfig(libpagemaker-0.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libqxp-0.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libvisio-0.1)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzmf-0.0)
# OSG in Contrib
#BuildRequires:	pkgconfig(openscenegraph)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-cpp)
BuildRequires:	pkgconfig(poppler-data)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(zlib)
Requires:	tkinter
Requires:	ghostscript-common
Obsoletes:	%{name}-devel < 1.5.2

%description
Scribus is a desktop open source page layout program with the aim of
producing commercial grade output in PDF and Postscript, primarily,
though not exclusively, for Linux.

While the goals of the program are ease of use and simple
easy-to-understand tools, Scribus offers support for professional
publishing features, such as CMYK colors, easy PDF creation,
Encapsulated Postscript import and export, and creation of color
separations.

%files
%{_bindir}/*
%{_datadir}/%{name}
%{_libdir}/%{name}
%{_mandir}/man1/*
%lang(pl) %{_mandir}/pl/man1/*
%lang(de) %{_mandir}/de/man1/*
%{_appdatadir}/scribus.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/*.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png
%doc %{_datadir}/doc/%{name}*

#--------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd resources/translations
tar -xvzf %{SOURCE1}
popd

# Don't add (Development) to name in program menu, it makes no sense for
# users
sed -i -e "s/ (Development)//" scribus.desktop.in

%build
%cmake_qt5 \
	-DWANT_HUNSPELL:BOOL=ON	\
	-DWANT_CPP17=ON
%make

%install
%makeinstall_std -C build

install -d %{buildroot}%{_datadir}/applications
desktop-file-install --vendor='' \
	--dir %{buildroot}%{_datadir}/applications/ \
	--remove-key='Encoding' \
	--remove-category='Graphics' \
	--add-category='Office' \
	%{name}.desktop

# install icons for hicolor and old WM
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,128x128}/apps
install -m 644 resources/iconsets/artwork/icon_16x16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m 644 resources/iconsets/artwork/icon_32x32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 644 resources/iconsets/artwork/icon_128x128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# we do not need KDE stuff
rm -f %{buildroot}%{_datadir}/mimelnk/application/vnd.scribus.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8686 |21cr|scrot-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Screen-shot capture using Imlib 2
Name:		scrot
Version:	1.7
Release:	1
License: 	BSD
Group:		Graphics
Url:		http://www.linuxbrit.co.uk
Source0:	https://github.com/resurrecting-open-source-projects/scrot/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}-screen
Source2:	%{name}-area
Source3:	user.dconf
Source4:	00-screenshot
Source5:	org.gnome.settings-daemon.plugins.media-keys.gschema.override
#BuildRequires:	autoconf2.5
BuildRequires:	autoconf-archive
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xfixes)

%description
A nice and straightforward screen capture utility implementing the
dynamic loaders of imlib2.

%files
%{_bindir}/%{name}
%doc %{_datadir}/doc/%{name}/*
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package gnome
Summary:	Replacement for standart GNOME Shell screen capture
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{EVRD}
Requires:	dconf
Requires:	gnome-settings-daemon
Requires:	libnotify
Requires:	glib2.0-common
Requires(post,postun):	dconf

%description gnome
This package replace standart GNOME Shell screen capture mechanism to scrot.

%files gnome
%{_bindir}/%{name}-*
%{_sysconfdir}/dconf/*
%{_datadir}/glib-2.0/schemas/*.override

%post gnome
dconf update
glib-compile-schemas %{_datadir}/glib-2.0/schemas/ > /dev/null 2>&1

%postun gnome
dconf update
glib-compile-schemas %{_datadir}/glib-2.0/schemas/ > /dev/null 2>&1

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fiv
%configure
%make_build

%install
%make_install

# install new dconf rules and capture files
install -dD %{buildroot}%{_sysconfdir}/dconf/db/site.d/
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/dconf/db/site.d/

#install -dD %%buildroot%%_sysconfdir/dconf/profile/
#install -m644 %%SOURCE3 %%buildroot%%_sysconfdir/dconf/profile/user

install -m755 %{SOURCE1} %{SOURCE2} %{buildroot}%{_bindir}/

install -dD %{buildroot}%{_datadir}/glib-2.0/schemas/
install -m644 %{SOURCE5} %{buildroot}%{_datadir}/glib-2.0/schemas/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8687 |21cr|scsiadd-1.97-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Utility to add and remove SCSI devices on the fly
Name:		scsiadd
Version:	1.97
Release:	3
Epoch:		1
License:	GPL
Group:		System/Configuration/Hardware
URL:		http://llg.cubic.org/tools/
Source0:	http://llg.cubic.org/tools/%{name}-%{version}.tar.gz

%description
scsiadd lets you insert or remove SCSI devices from the linux SCSI 
subsystem on the fly. This is useful for external devices 
like scanners or tapes which can be powered on after system boot.
Devices can be added or removed at any time.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%defattr (-,root,root)
%doc README NEWS
%{_sbindir}/%{name}
%{_mandir}/man8/%{name}.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8688 |21cr|scsiaddgui-1.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A graphical front end for scsiadd
Name:		scsiaddgui
Version:	1.5
Release:	11
License:	GPL
Url:		http://scsiaddgui.sourceforge.net
Requires:	python2, tkinter, scsiadd
Group:		System/Kernel and hardware
Source:		http://downloads.sourceforge.net/scsiaddgui/%{name}-%{version}.tar.bz2
BuildArch:	noarch

%description
scsiaddgui provides a GUI for the scsiadd - utility

%prep
%setup -q

%build
sed -i '1 s!env python!python2!' scsiaddgui.py

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%_datadir/scsiaddgui
mkdir -p $RPM_BUILD_ROOT%_bindir
install --mode=755 scsiaddgui.py $RPM_BUILD_ROOT%_datadir/scsiaddgui/scsiaddgui.py
#install --mode=644 Control.py $RPM_BUILD_ROOT%_datadir/scsiaddgui/Control.py
#install --mode=644 arrow_up.xbm $RPM_BUILD_ROOT%_datadir/scsiaddgui/arrow_up.xbm
#install --mode=644 arrow_down.xbm $RPM_BUILD_ROOT%_datadir/scsiaddgui/arrow_down.xbm
#install --mode=644 messages_de.py $RPM_BUILD_ROOT%_datadir/scsiaddgui/messages_de.py
#install --mode=644 messages_en.py $RPM_BUILD_ROOT%_datadir/scsiaddgui/messages_en.py
#install --mode=644 messages.py $RPM_BUILD_ROOT%_datadir/scsiaddgui/messages.py
#install --mode=644 optionDB $RPM_BUILD_ROOT%_datadir/scsiaddgui/optionDB
install --mode=644 help_de $RPM_BUILD_ROOT%_datadir/scsiaddgui/help_de
install --mode=644 help_en $RPM_BUILD_ROOT%_datadir/scsiaddgui/help_en
install --mode=644 help_fr $RPM_BUILD_ROOT%_datadir/scsiaddgui/help_fr

mkdir -p $RPM_BUILD_ROOT%_datadir/locale/de/LC_MESSAGES
install -v --mode=644 locale/de.gmo $RPM_BUILD_ROOT%_datadir/locale/de/LC_MESSAGES/scsiaddgui.mo
mkdir -p $RPM_BUILD_ROOT%_datadir/locale/fr/LC_MESSAGES
install -v --mode=644 locale/fr.gmo $RPM_BUILD_ROOT%_datadir/locale/fr/LC_MESSAGES/scsiaddgui.mo

(cd $RPM_BUILD_ROOT
ln -s %_datadir/scsiaddgui/scsiaddgui.py ./%_bindir/scsiaddgui
)
%find_lang %name

%files -f %name.lang
%defattr(-,root,root)
%doc doc/{ChangeLog,README}
%_bindir/scsiaddgui
%dir %_datadir/scsiaddgui
%_datadir/scsiaddgui/scsiaddgui.py
#%_datadir/scsiaddgui/Control.py
#%_datadir/scsiaddgui/arrow_up.xbm
#%_datadir/scsiaddgui/arrow_down.xbm
#%_datadir/scsiaddgui/messages_en.py
#%_datadir/scsiaddgui/messages_de.py
#%_datadir/scsiaddgui/messages.py
#%_datadir/scsiaddgui/optionDB
%_datadir/scsiaddgui/help_de
%_datadir/scsiaddgui/help_en
%_datadir/scsiaddgui/help_fr
%_datadir/scsiaddgui/__pycache__/

%clean
rm -rf $RPM_BUILD_ROOT

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8689 |21cr|sctl-0.2.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		sctl
Summary:	A program designed to control Bearcat model BC-895xlt & BC-245xlt scanners
Version:	0.2.3
Release:	12
Source:		http://www.obairlann.net/~reaper/sctl/tarfiles/%{name}-%{version}.tar.gz
URL:		http://www.obairlann.net/~reaper/sctl/
Group:		Communications
License:	GPL

%description
Sctl is a program designed to control Bearcat model BC-895xlt scanners. It
may control other scanners with PC-control (aka, "serial") ports on them 
(no testing has been done yet). It provides a command-line interface, and 
is extremely small (it would be described as "fast" too, but 9600 baud 
communication makes anything seem slow). It should work with any *nix system, 
and more targets will be tested as time goes on. At present it's known to 
work with Debian 1.2 and Redhat 6.2, indicating a good chance it'll work 
on any reasonably modern Linux system.  Compatible scanners include the 
BC-245xlt.

%prep 

%setup 

%build 

%make

%install
mkdir -p %{buildroot}%{_bindir}

install sctl %{buildroot}%{_bindir}

# cleanup
find . -type d -name CVS | xargs rm -rf

%clean 

%files
%defattr(-,root,root,0755)
%{_bindir}/*
%doc BUGS Changelog CREDITS LICENSE NEWS README
%doc docs/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8690 |21cr|scummvm-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_lto 1

Summary:	An implementation of LucasArts's SCUMM interpreter
Name:		scummvm
Version:	2.6.0
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Games/Adventure
Url:		https://www.scummvm.org/
Source0:	https://downloads.scummvm.org/frs/scummvm/%{version}/%{name}-%{version}.tar.xz
Source100: %{name}.rpmlintrc
# Split dwarf needs lto, but we disabled it...
Patch0:		scummvm-2.6.0-drop-split-dwarf.patch
BuildRequires:	nasm
# Not provided yet
#BuildRequires:	pandoc
BuildRequires:	a52dec-devel
BuildRequires:	ieee1284-devel
BuildRequires:	giflib-devel
BuildRequires:	libfaad2-devel
BuildRequires:	sndio-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpeg2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(speech-dispatcher)
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
ScummVM is an implementation of LucasArts S.C.U.M.M. (Script Creation Utility
for Maniac Mansion) interpreter, used in games such as Monkey Island, Indiana
Jones, Day Of The Tentacle, Sam and Max, and many more. Some things are still
missing, and some games cannot be completed yet. There are quite a few known
bugs. Regardless of them it is still possible to play many games all the way
through to the end. Still other games do not load at all.
Some games such as "Beneath A Steel Sky", "Flight Of The Amazon Queen" and
"Drascula: The Vampire Strikes Back" have been released by their developers.
Install beneath-a-steel-sky, flight-of-the-amazon-queen and drascula packages
from Non-free repository to play them.

%files
%doc %{_docdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.xpm
%{_gamesbindir}/*
%{_gamesdatadir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# Sed to fix endianness check fail caused by LTO enabled.
sed -i '/tmp_endianness_check.cpp/ s/$CXXFLAGS/$CXXFLAGS -fno-lto -O0/' configure

%setup_compile_flags
./configure \
	--bindir=%{_gamesbindir}	\
	--datadir=%{_gamesdatadir}	\
	--disable-libunity		\
	--disable-sparkle		\
	--enable-all-engines		\
	--enable-eventrecorder		\
	--enable-opl2lpt		\
	--enable-optimizations		\
	--enable-release		\
	--enable-tts			\
	--enable-verbose-build		\
	--enable-vkeybd			\
	--libdir=%{_libdir}		\
	--mandir=%{_mandir}		\
	--opengl-mode=gl		\
	--prefix=%{_prefix}
%make NASMFLAGS="-Ox -gdwarf2 -f elf -Fdwarf" STRIP="true"

%install
%makeinstall_std STRIP="true"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8691 |21cr|sd2xc-2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: CursorXP to X11 Mouse Theme Converter
Name:    sd2xc
Version: 2.5
Release: 4
Source0: %{name}-%{version}.pl.bz2
URL: http://gtk-apps.org/content/show.php/CursorXP+to+X11+Mouse+Theme+Converter?content=104659
License: MIT
Group: Graphics
Requires: perl-Image-Magick
Requires: perl-Config-IniFiles
BuildArch: noarch

%description
Converts StarDock CursorXP themes (http://www.wincustomize.com/) to
XCursor themes compatible with XFree86 4.2.99 and higher.

%prep

%build

%install
mkdir -p %buildroot%_bindir
bzip2 -cd %SOURCE0 > %buildroot%_bindir/%name


%files
%defattr(-,root,root)
%attr(755,root,root) %_bindir/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8692 |21cr|sdb-0.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple database library
Name:		sdb
Version:	0.10.1
Release:	5
License:	LGPLv2+
Group:		Databases
Url:		http://siag.nu/libsdb/
Source0:	http://siag.nu/pub/libsdb/%{name}-%{version}.tar.gz
Patch0:		sdb-0.6.0-no_ms.diff
Patch1:		sdb-0.6.0-postgres.diff
BuildRequires:	libtool
BuildRequires:	gdbm-devel
BuildRequires:	mysql-devel
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite)
BuildRequires:	pkgconfig(zlib)

%description
This is libsdb, the simple database library, which provides a way
to support multiple database management systems in an application
with negligeable overhead, in terms of code as well as system
resources. It is mainly intended for use on Unix, but the ODBC
driver works on Windows as well.

%files -n %{name}
%doc AUTHORS COPYING* ChangeLog INSTALL README*
%{_bindir}/sdb_client
%{_bindir}/sdbd
%{_bindir}/sdbd_client
%{_mandir}/man3/sdb.3*
%{_mandir}/man8/sdbd.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains libraries necessary for %{name}.

%files -n %{libname}
%{_libdir}/libsdb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development header files and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development header files and libraries
for %{name}.

%files -n %{devname}
%{_bindir}/sdb-config
%{_libdir}/*.a
%{_libdir}/*.so
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0

perl -pi -e "s|/usr/local/|%{_prefix}/|g" configure
perl -pi -e "s|/lib |%{_lib} |g" configure

%build
./configure \
    --with-gdbm \
    --with-mysql \
    --with-postgres \
    --with-odbc=odbc \
    --with-sqlite

perl -pi -e "s|/sbin/ldconfig|#/sbin/ldconfig|g" Makefile

make CFLAGS="%{optflags} -fPIC "\
    LDFLAGS="%{ldflags}" \
    PREFIX=%{_prefix} \
    BINDIR=%{_bindir} \
    LIBDIR=%{_libdir} \
    MANDIR=%{_mandir} \
    INCDIR=%{_includedir}

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_mandir}
install -d %{buildroot}%{_includedir}

make \
    PREFIX=%{buildroot}%{_prefix} \
    BINDIR=%{buildroot}%{_bindir} \
    LIBDIR=%{buildroot}%{_libdir} \
    MANDIR=%{buildroot}%{_mandir} \
    INCDIR=%{buildroot}%{_includedir} \
    install

# remove invalid manpages
rm -f %{buildroot}%{_mandir}/man3/sdb_*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8693 |21cr|sdbus-cpp-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname sdbus-c++ %{major}
%define devname %mklibname sdbus-c++ -d

# https://github.com/Kistler-Group/sdbus-cpp/issues/137
%global optflags %{optflags} -lpthread

Summary:        High-level C++ D-Bus library
Name:           sdbus-cpp
Group:          System/Libraries
Version:        1.2.0
Release:        1
License:        LGPLv2
URL:            https://github.com/Kistler-Group/sdbus-cpp
Source0:        https://github.com/Kistler-Group/sdbus-cpp/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  doxygen
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  pkgconfig(expat)

%description
High-level C++ D-Bus library for Linux designed to provide easy-to-use
yet powerful API in modern C++

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:        High-level C++ D-Bus library
Group:        	System/Libraries

%description -n %{libname}
High-level C++ D-Bus library for Linux designed to provide easy-to-use
yet powerful API in modern C++

%files -n %{libname}
%license COPYING
%doc README README.md NEWS ChangeLog AUTHORS
%{_libdir}/libsdbus-c++.so.%{major}*

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for %{name}
Group:        	Development/C++
Requires:       %{libname}%{?_isa} = %{EVRD}
Provides:       sdbus-cpp-devel = %{EVRD}
Provides:       sdbus-c++-devel = %{EVRD}

%description -n %{devname}
Development files for %{name} - high-level C++ D-Bus for Linux designed
to provide easy-to-use yet powerful API in modern C++

%files -n %{devname}
%license COPYING
%doc README README.md NEWS ChangeLog AUTHORS
%{_libdir}/pkgconfig/sdbus-c++.pc
%{_libdir}/pkgconfig/sdbus-c++-tools.pc
%{_libdir}/libsdbus-c++.so
%{_includedir}/sdbus-c++
%{_libdir}/cmake/sdbus-c++
%{_libdir}/cmake/sdbus-c++-tools
#-----------------------------------------------------------------------

%package devel-doc
Summary:        Developer documentation for %{name}
BuildArch:      noarch
Group:        	Development/C++

%description devel-doc
Developer documentation for %{name} - high-level C++ D-Bus for Linux
designed to provide easy-to-use yet powerful API in modern C++

%files devel-doc
%license COPYING
%doc README README.md NEWS ChangeLog AUTHORS
%{_docdir}/sdbus-c++

#-----------------------------------------------------------------------

%package xml2cpp
Summary:        Stub code generator for sdbus-c++
Requires:       %{devname}%{?_isa} = %{EVRD}

%description xml2cpp
The stub code generator for generating the adapter and proxy interfaces
out of the D-Bus IDL XML description.

%files xml2cpp
%license COPYING
%doc README README.md NEWS ChangeLog AUTHORS
%{_bindir}/sdbus-c++-xml2cpp

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake . \
	-DCMAKE_BUILD_TYPE=Release \
	-DBUILD_CODE_GEN=ON \
	-DBUILD_DOXYGEN_DOC=ON
%make
%make -C docs

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8694 |21cr|sdcc-3.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small Device C Compiler
Name:		sdcc
Version:	3.4.0
Release:	4
License:	GPLv2+
Group:		Development/Other
Url:		http://sdcc.sourceforge.net/
Source0:	http://sourceforge.net/projects/%{name}/files/%{name}/%{version}/%{name}-src-%{version}.tar.bz2
Patch0:		sdcc-3.4-mga-binutils-2.24-bfd.patch
Patch1:		sdcc-3.4.0-libiberty.patch
Patch2:		sdcc-3.4.0-strndup.patch

BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	ghostscript-common
BuildRequires:	gputils
BuildRequires:	latex2html
#BuildRequires:	lyx
BuildRequires:	boost-devel
BuildRequires:	glibc-devel
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(bdw-gc)
Requires:	gputils
Requires:	python2
Conflicts:	sdcc2.9
Obsoletes:	%{name}-doc < 3.4
Obsoletes:	%{name}2.9 < 3.0

%description
SDCC is a retargettable, optimizing ANSI-C compiler that targets the
Intel 8051, Maxim 80DS390, Zilog Z80 and the Motorola 68HC08 based
MCUs. Work is in progress on supporting the Microchip PIC16 and
PIC18 series.

%files
%doc %{_docdir}/%{name}/
%{_bindir}/*
%{_datadir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%global optflags %{optflags} -Wstrict-aliasing=0
%configure \
	--enable-libgc \
	--disable-doc \
	--disable-werror \
	--disable-non-free \
	PDFOPT="/bin/cp"
make

%install
%makeinstall_std
rm -f %{buildroot}%{_includedir}/*
rm -f %{buildroot}%{_libdir}/*
mv %{buildroot}%{_docdir}/ucsim %{buildroot}%{_docdir}/%{name}/

# shebang python fix
sed -i -e "1s,python,python2," %{buildroot}%{_bindir}/as2gbmap

find %{buildroot} -name INSTALL.txt -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8695 |21cr|sdd-1.52-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       sdd
Summary:    A fast and enhanced replacement for dd
Version:    1.52
Release:    7
URL:        ftp://ftp.berlios.de/pub/sdd
Source0:    %{name}-%{version}.tar.bz2
Source1:    bash-completion-sdd
Patch0:     sdd-name-conflicts-fix.patch
Patch1:     sdd-1.52-debug.patch
License:    GPL
Group:      File tools
BuildRequires:  gcc
BuildRequires:  make
ExclusiveArch:  %{ix86} %{x86_64}

%description
sdd is a replacement for dd program with some fixes and improvements including:
* better performance when input block size (ibs) is not equal to the output
  block size (obs);
* improved statistics readability;
* progress display;
* and other features.

%prep
%setup -q -n %{name}-%{version}
%apply_patches
ln -s i586-linux-cc.rul RULES/x86_64-linux-cc.rul

%build
COPTS="%{optflags}" CPPOPTS="%{optflags}" %make

%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1 %{buildroot}%{_datadir}/bash-completion/completions

install -m 0755 sdd/OBJ/*/sdd %{buildroot}%{_bindir}
install -p -m 0644 sdd/sdd.1 %{buildroot}%{_mandir}/man1
install -p -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/sdd

%files
%defattr(-,root,root)

%{_bindir}/sdd
%{_mandir}/man1/sdd.1.xz
%{_datadir}/bash-completion/completions/sdd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8696 |21cr|sddm-theme-clairvoyance-revision-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clairvoyance Revision theme
Name:		sddm-theme-clairvoyance-revision
Version:	1.0
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://vk.com/xfce_rospo
Source0:	%{name}-%{version}.tar.gz
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols2-qml
BuildArch:	noarch


%description
%{summary} fork themes Clairvoyance.

%files
%dir %{_datadir}/sddm/themes/%{name}
%{_datadir}/sddm/themes/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/sddm/themes/%{name}
cp -R clairvoyance-revision/* %{buildroot}%{_datadir}/sddm/themes/%{name}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8697 |21cr|sddm-theme-neru-city-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru Sddm theme
Name:		sddm-theme-neru-city
Version:	1.0
Release:	1
License:	CC-BY-SA-4.0
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/sddm-theme-neru-city
Source0:	https://github.com/chistota/sddm-theme-neru-city/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols2-qml
BuildArch:	noarch


#--------????????--------------
%description
%{summary} by RamilSadrlimanov@ro_spo.

#--------происходит выборка файлов из {buildroot}, которая пойдёт в пакет.
#----отправляет файлы в папку документов-----------
%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/sddm/themes/%{name}
%{_datadir}/sddm/themes/%{name}/*

#------Распаковка
#------Расспаковываем каталог Source0 и входим в sddm-theme-neru-city 1.0--------------------------------------
%prep
%setup -q %{name}-%{version}


#-----------------------Установка-----------
#----проводим расстановку распакованных и собранных файлов так, как они должны лежать после установки в корне
# ---коприруем из neru-city и вставляем в 
%install
install -d %{buildroot}%{_datadir}/sddm/themes/%{name}
cp -R neru-city/* %{buildroot}%{_datadir}/sddm/themes/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8698 |21cr|sddm-theme-neru-newyear-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru Sddm theme
Name:		sddm-theme-neru-newyear
Version:	1.0
Release:	1
License:	CC-BY-SA-4.0
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/sddm-theme-neru-newyear
Source0:	https://github.com/chistota/sddm-theme-neru-newyear/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols2-qml
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/sddm/themes/%{name}
%{_datadir}/sddm/themes/%{name}/*

#----------------------------------------------------------------------------
%prep
%setup -qn %{name}-%{version}

%build

%install
install -d %{buildroot}%{_datadir}/sddm/themes/%{name}
cp -R neru-newyear/* %{buildroot}%{_datadir}/sddm/themes/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8699 |21cr|sddm-theme-neru-rospo-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Neru Sddm theme
Name:		sddm-theme-neru-rospo
Version:	1.0
Release:	1
License:	CC-BY-SA-4.0
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/sddm-theme-neru-rospo
Source0:	https://github.com/chistota/sddm-theme-neru-rospo/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols2-qml
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/sddm/themes/%{name}
%{_datadir}/sddm/themes/%{name}/*

#----------------------------------------------------------------------------
%prep
%setup -qn %{name}-%{version}

%build

%install
install -d %{buildroot}%{_datadir}/sddm/themes/%{name}
cp -R neru-rospo/* %{buildroot}%{_datadir}/sddm/themes/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8700 |21cr|sddm-theme-rospo-1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define aname	newyear
%define aver	1.5
%define bname	city
%define bver	1.7

Summary:	ROSPO Sddm theme
Name:		sddm-theme-rospo
Version:	1.5
Release:	3
License:	CC-BY-SA-4.0
Group:		Graphical desktop/Other
Url:		https://github.com/chistota/
Source0:	https://github.com/chistota/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/chistota/%{name}-%{aname}/archive/v%{aver}.tar.gz?/%{name}-%{aname}-%{aver}.tar.gz
Source2:	https://github.com/chistota/%{name}-%{bname}/archive/v%{verbfeast}.tar.gz?/%{name}-%{bname}-%{bver}.tar.gz
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols2-qml
BuildArch:	noarch

%description
%{summary} by RamilSadrlimanov@ro_spo.

%files
%doc AUTHORS LICENSE README.md
%dir %{_datadir}/sddm/themes/%{name}
%{_datadir}/sddm/themes/%{name}/*

#----------------------------------------------------------------------------

%package 	%{aname}
Summary:	ROSPO-%{aname} sddm theme
Group:		Graphical desktop/Other
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols2-qml

%description %{aname}
ROSPO-%{aname} sddm theme.

%files %{aname}
%doc %{name}-%{aname}-%{aver}/{AUTHORS,LICENSE,README.md}
%dir %{_datadir}/sddm/themes/%{name}-%{aname}
%{_datadir}/sddm/themes/%{name}-%{aname}/*

#----------------------------------------------------------------------------

%package 	%{bname}
Summary:	ROSPO-%{bname} sddm theme
Group:		Graphical desktop/Other
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols2-qml

%description %{bname}
ROSPO-%{bname} sddm theme.

%files %{bname}
%doc %{name}-%{bname}-%{bver}/{AUTHORS,LICENSE,README.md}
%dir %{_datadir}/sddm/themes/%{name}-%{bname}
%{_datadir}/sddm/themes/%{name}-%{bname}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version} -a1 -a2

%build

%install
install -d %{buildroot}%{_datadir}/sddm/themes/%{name}
install -d %{buildroot}%{_datadir}/sddm/themes/%{name}-%{aname}
install -d %{buildroot}%{_datadir}/sddm/themes/%{name}-%{bname}
cp -R sddm/* %{buildroot}%{_datadir}/sddm/themes/%{name}/
cp -R %{name}-%{aname}-%{aver}/sddm/* %{buildroot}%{_datadir}/sddm/themes/%{name}-%{aname}/
cp -R %{name}-%{bname}-%{bver}/sddm/* %{buildroot}%{_datadir}/sddm/themes/%{name}-%{bname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8701 |21cr|sdf-2.001-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\((ctime.pl|sdf::.*)\\)

Name:		sdf
Version:	2.001
Release:	9
License:	BSD like
Group:		Publishing
Summary:	Simple Document Format document development system

Source:		%{name}-%{version}.tar.bz2
URL:		http://search.cpan.org/~ianc/%{name}-%{version}/
BuildRequires:	perl
BuildRequires:	perl-devel
BuildArch:	noarch

%description
SDF (Simple Document Format) is a freely available document development
system which generates high quality outputs in a variety of formats
from a single source. The output formats supported include
PostScript(tm), PDF, HTML, plain text, POD, man pages, LaTeX,
MIF, SGML, Windows(tm) help, RTF, MIMS F6 help and MIMS HTX help.
If the idea of specifying documents in a logical manner via a
simple markup language sounds appealing, SDF may be useful to you.

SDF documents are simple to create and maintain, minimising the time
spent on documentation. In particular, SDF directly supports the
creation and maintenance of large, on-line documentation systems
(including intranets) via centralised hypertext management and
rule-based hypertext generation. As well as normal documents,
SDF is useful for:

* user manuals (paper-based and online)
* online document catalogs
* Perl module documentation
* Delphi(tm) component documentation
* source code listings (pretty printing most languages).

SDF is also good for literate programming, i.e. documentation can
be embedded in the comments of most programming languages and can be
selectively extracted. The embedded documentation can be in any
markup language you like, although there are advantages to using
SDF's markup language.

SDF is freely available for commercial and non-commercial use.
See the LICENSE file for details.

%prep
%setup -q

%build
perl Makefile.PL
%make

%install
%makeinstall_std INSTALLDIRS=vendor

%files
%{_bindir}/*
%{perl_vendorlib}/%{name}
%{perl_vendorlib}/Pod/*.pm
%{_mandir}/man?/*
%doc LICENSE README PODNOTES

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8702 |21cr|SDL2_gfx-1.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define apiver	1.0

%define libname		%mklibname %{name} %{apiver} %{major}
%define develname	%mklibname %{name} -d

# math library is included but not linked
%global ldflags %{ldflags} -lm

Summary:	SDL2 graphics drawing primitives
Name:		SDL2_gfx
Version:	1.0.4
Release:	4
License:	zlib
Group:		System/Libraries
Url:		http://www.ferzkopp.net/joomla/content/view/19/14/
Source0:	http://www.ferzkopp.net/Software/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(sdl2)

%description
The SDL2_gfx library provides the basic drawing functions such
as lines, circles or polygons.
There is also an implementation of an interpolating rotozoomer for SDL2
surfaces.

The current components of the SDL2_gfx library are:

 * Graphic Primitives
 * Surface Rotozoomer
 * Framerate control
 * MMX image filters
 * Build-in 8x8 Font

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc COPYING AUTHORS
%{_libdir}/lib%{name}-%{apiver}.so.%{major}
%{_libdir}/lib%{name}-%{apiver}.so.%{major}.*

#---------------------------------------------------------

%package -n %{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}%{apiver}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{develname}
%doc README NEWS ChangeLog
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/SDL2/*

#---------------------------------------------------------

%package      docs
Summary:      Documentation for %{name}
Group:        Documentation
BuildArch:    noarch

%description docs
This package contains the documentation for the %{name} library.

%files docs
%doc Docs/html

#---------------------------------------------------------

%prep
%autosetup -n %{name}-%{version}

# fix linting
sed -i 's/\r//g' {ChangeLog,README}
find . -type f -exec chmod -x {} \;
#
chmod +x configure

%build
%ifnarch %{ix86} x86_64 
%configure --disable-mmx
%else
%configure
%endif
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8703 |21cr|SDL2_Pango-2.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   4

%define libname     %mklibname %{name} %{major}
%define develname   %mklibname %{name} -d
%define develsname  %mklibname %{name} -d -s

Summary:	Rendering of internationalized text for SDL2 (Simple DirectMedia Layer)
Name:		SDL2_Pango
Version:	2.1.5
Release:	1
License:	LGPL-2.1
Group:		System/Libraries
URL:		https://github.com/markuskimius/SDL2_Pango
Source0:	https://github.com/markuskimius/SDL2_Pango/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(pango)

%description
Rendering of internationalized text for SDL2 (Simple DirectMedia Layer)

#------------------------------------------------------
%package -n   %{libname}
Summary:      Main library for %{name}
Group:        System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------

%package -n   %{develname}
Summary:      Headers for developing programs that will use %{name}
Group:        Development/C
Requires:     %{libname} = %{EVRD}
Provides:     libsdl2_pango-devel = %{EVRD}
Provides:     %{name}-devel = %{EVRD}

%description -n %{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{develname}
%{_libdir}/libSDL2_Pango.so
%{_libdir}/pkgconfig/SDL2_Pango.pc
%{_includedir}/SDL2_Pango.h

#------------------------------------------------------

%package -n   %{develsname}
Summary:      Static library for developing static programs that use %{name}
Group:        Development/C
Requires:     %{develname} = %{EVRD}

%description -n %{develsname}
This package contains the static library that programmers will need
to develop static applications which are using %{name}.

%files -n %{develsname}
%{_libdir}/libSDL2_Pango.*a

#------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --enable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8704 |21cr|sdl2_sound-2.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define develname %mklibname -d %{name}
%define oname SDL_sound

Summary:	An abstract SDL2 sound-file decoder
Name:		sdl2_sound
# see cmake file
#set(SDLSOUND_VERSION 2.0.0)
Version:	2.0.1
Release:	2
License:	zlib
Group:		System/Libraries
Url:		https://hg.icculus.org/icculus/SDL_sound/
Source0:	https://github.com/icculus/SDL_sound/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		sdl2_sound-sdl2-path.patch
BuildRequires:	cmake
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(vorbis)

%description
SDL2_sound is SDL_sound but with a SDL2 backend. This is a library
that handles the decoding of several popular sound file formats, such
as .WAV and .MP3. It is meant to make the programmer's sound playback
tasks simpler. The programmer gives SDL2_sound a file-name, or feeds it
data directly from one of many sources, and then reads the decoded
waveform data back at her leisure. If resource constraints are a
concern, SDL2_sound can process sound data in programmer-specified
blocks. Alternately, SDL2_sound can decode a whole sound file and hand
back a single pointer to the whole waveform. SDL2_sound can also handle
sample rate, audio format, and channel conversion on-the-fly and
behind-the-scenes.

%files
%doc docs/CREDITS.txt
%license LICENSE.txt
%{_bindir}/*

#--------------------------------------------------------------

%package -n %{libname}
Summary:	SDL2_sound main library
Group:		System/Libraries

%description -n %{libname}
%{summary}.

%files -n %{libname}
%doc docs/README.txt docs/INSTALL.txt
%{_libdir}/libSDL2_sound.so.%{major}
%{_libdir}/libSDL2_sound.so.%{major}.*

#--------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for SDL2_sound applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	SDL2_sound-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
%{summary}.

%files -n %{develname}
%{_libdir}/lib*.so
%{_includedir}/SDL2/SDL_sound.h

#-------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
export CFLAGS="%{optflags} -lm -lSDL2"
%cmake 
%make

%install
%makeinstall_std -C build
# remove static stuff
find %{buildroot}%{_libdir} -name '*.la' -o -name "*.a" -exec rm {} \; 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8705 |21cr|sdl-ball-1.04-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free/OpenSource brick-breaking game with pretty graphics
Name:		sdl-ball
Version:	1.04
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		https://sdl-ball.sourceforge.net
Source0:	https://sourceforge.net/projects/sdl-ball/files/sdl-ball/%{version}/SDL-Ball_%{version}_src.tar.xz
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)

%description
SDL-Ball is a Free/OpenSource brick-breaking game for Linux, BSD and Windows
with pretty graphics. It is written in C++ using SDL and OpenGL, here is the
project page on sf.net.

Your mission: To smash your way through a series of progressively harder and
more tricky levels. Your tools: Ultrakinetic titanium balls and your trusty
Gruntmazter-3000-Paddle edition.

%files
%doc README changelog.txt
%{_gamesbindir}/%{name}
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_iconsdir}/*.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%package leveleditor
Summary:	Level editor for SDL-Ball
Group:		Games/Arcade

%description leveleditor
SDL-Ball is a Free/OpenSource brick-breaking game with pretty graphics.

This package includes a level editor for SDL-Ball (GIMP plugin).

Start gimp from a terminal in order to record the output from
the plugin (you need that).

%files leveleditor
%{_libdir}/gimp/2.0/plug-ins/*

#----------------------------------------------------------------------------


%prep
%setup -qn SDL-Ball_src
# clean sources
rm -f *.o sdl-ball

%build
%setup_compile_flags
%make DATADIR=%{_gamesdatadir}/%{name}/
pushd leveleditor/gimp-leveleditor
gimptool-2.0 --build gimp-sdlball.c

%install
mkdir -p %{buildroot}%{_gamesdatadir} %{buildroot}%{_gamesbindir}
mkdir -p %{buildroot}%{_libdir}/gimp/2.0/plug-ins
install %{name} %{buildroot}%{_gamesbindir}
install leveleditor/gimp-leveleditor/gimp-sdlball %{buildroot}%{_libdir}/gimp/2.0/plug-ins
cp -a themes %{buildroot}%{_gamesdatadir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=SDL-Ball
GenericName=Breakout/BrickBreaker
Exec=sdl-ball
Icon=sdl-ball
Type=Application
Comment=A DX-Ball/MegaBall/Breakout clone
Categories=Game;ArcadeGame;
EOF

mkdir -p %{buildroot}%{_iconsdir}
cp themes/default/icon32.png %{buildroot}%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8706 |21cr|sdlmame-0248-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Better disable debug because with it's so greedy for resources
# that linkage fails
%define debugcflags %{nil}
%define debug_package %{nil}

%define srcver %(echo %{version} |tr -d .)

Summary:	SDL MAME is an arcade emulator
Name:		sdlmame
Version:	0248
Release:	2
License:	GPLv2+
Group:		Emulators
Url:		http://mamedev.org/
Source0:	https://github.com/mamedev/mame/archive/mame%{srcver}.tar.gz
Source1:	sdlmame-wrapper
Source3:	sdlmame-extra.tar.bz2
# Repack from git and 0.146 as these files are no longer in sources zip
Source4:	sdlmess-extra-0.147.tar.bz2
BuildRequires:	dos2unix
BuildRequires:	p7zip
BuildRequires:	pulseaudio-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(zlib)
Provides:	sdlmess = %{EVRD}
Obsoletes:	sdlmess < 0.163

%description
SDL MAME is an arcade emulator using SDL, and based on the Multiple Arcade
Machine Emulator (MAME).

Since 0.162 it includes MESS functionality so sdlmess package is obsolete now.

You can find a some freeware and their description on http://mamedev.org/roms/

If you some tricks to finish a game, the cheat.zip file is now provided in a
other package named sdlmame-extra-data.

%files
%defattr(0644,root,games,0755)
%doc docs/*
%attr(0755,root,games) %{_gamesbindir}/sdlmame*
%attr(0755,root,games) %{_gamesbindir}/*-sdlmame
%{_gamesdatadir}/sdlmame

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n mame-mame%{srcver}

#files missing : ui.bdf, keymaps
tar xf %{SOURCE3}
#files missing : arkwork, sysinfo.dat
tar xf %{SOURCE4}

%build
%make all TARGET=mame	\
	NOWERROR=1	\
	BUILD_EXPAT=	\
	BUILD_FLAC=	\
	BUILD_ZLIB=	\
	USE_QTDEBUG=0	\
	NO_DEBUGGER=1	\
	TOOLS=1		\
	VERBOSE=1	\
	ARCHOPTS="%{optflags}" -j4

%install
mkdir -p %{buildroot}%{_gamesbindir}
install -m 755 mame %{buildroot}/%{_gamesbindir}/sdlmame.real

#tools
#useful to manage roms
install -m 755 chdman %{buildroot}%{_gamesbindir}/chdman-sdlmame
install -m 755 romcmp %{buildroot}%{_gamesbindir}/romcmp-sdlmame
#other tools built:
#jedutils, makemeta, regrep, srcclean

#"support files" moved to sdlmame-extra-data
#but the directory is still owned by this package
mkdir -p %{buildroot}%{_gamesdatadir}/sdlmame

#ui font
install -m 644 ui.bdf %{buildroot}/%{_gamesdatadir}/sdlmame/

#keymaps
mkdir -p %{buildroot}%{_gamesdatadir}/sdlmame/keymaps
cp -r keymaps/* %{buildroot}/%{_gamesdatadir}/sdlmame/keymaps/

#various directories and files
mkdir -p %{buildroot}%{_gamesdatadir}/sdlmame/artwork
cp -r artwork/* %{buildroot}%{_gamesdatadir}/sdlmame/artwork/
mkdir -p %{buildroot}%{_gamesdatadir}/sdlmame/hash
cp -r hash/* %{buildroot}%{_gamesdatadir}/sdlmame/hash/

#sysinfo.dat
install -m 644 sysinfo.dat %{buildroot}%{_gamesdatadir}/sdlmame/

#install wrapper
install -m 755 %{SOURCE1} %{buildroot}%{_gamesbindir}/sdlmame

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8707 |21cr|sdlmame-extra-data-0.243-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		sdlmame-extra-data
Version:	0.243
Release:	1
Summary:	More data files for SDL MAME front-ends
License:	Freeware
Group:		Emulators
URL:		http://mameworld.info/

# Cheats (XML format)
Source1:	http://cheat.retrogames.com/download/cheat0221.zip
#alt url: http://www.mamecheat.co.uk/
# nplayers.ini
Source10:	http://nplayers.arcadebelgium.be/files/nplayers0241.zip
# history.xml now supported in mame
Source20:	https://www.arcade-history.com/dats/historyxml243.zip
# mameinfo.dat
Source30:	http://www.mameworld.info/mameinfo/download/Mameinfo0243.zip
# catver.ini (en, fr, it)
# http://www.progettoemma.net/public/ccount/click.php?id=6
# http://clrmamepro.free.fr/file/catlist/catver.zip
# http://www.progettoemma.net/public/ccount/click.php?id=5
Source40:	catver.zip
# controls.ini (for wahcade)
Source50:	controls.ini.0.111.5.zip

BuildRequires:	p7zip
BuildRequires:	recode
BuildRequires:	perl

BuildArch:	noarch

# cheat.zip does not require a front-end
Requires:	sdlmame

%description
This package includes additional files for SDL MAME arcade emulator, which
are used by sdlmame itself (cheat.zip) or its front-ends.

%prep
rm -rf %{name}-%{version}
mkdir %{name}-%{version}
cd %{name}-%{version}

#cheats
unzip %{SOURCE1}

#nplayers
unzip -CoLaa %{SOURCE10} nplayers.ini
perl -pe "s/([0-9])P/\$1J/g" nplayers.ini >nplayers-fr.ini

#history
unzip %{SOURCE20}

#mameinfo
unzip -o %{SOURCE30}
7za e Mameinfo*.7z mameinfo.dat

#catver
unzip -Coaap %{SOURCE40} Catver.ini >catver-en.ini
#unzip -Coaap %{SOURCE41} Catver.ini >catver-fr.ini
#unzip -Coaap %{SOURCE42} Catver.ini >catver-it.ini
#fix catver (for loemu)
#recode l1..u8 catver-fr.ini catver-it.ini
#perl -pi -e "s/^=/#=/g" catver-fr.ini

#controls
unzip -o %{SOURCE50}

%build

%install
cd %{name}-%{version}
install -d -m 755 %{buildroot}%{_gamesdatadir}/sdlmame
#install -m 644 cheat.zip catver-en.ini catver-fr.ini catver-it.ini \
install -m 644 cheat.7z catver-en.ini \
 controls.ini history.xml mameinfo.dat nplayers.ini nplayers-fr.ini \
 %{buildroot}%{_gamesdatadir}/sdlmame/

%files
%{_gamesdatadir}/sdlmame/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8708 |21cr|SDLmm-0.1.8-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api	0.1
%define	major	8
%define	lib_name	%mklibname %{name} %{api} %{major}
%define develname	%mklibname %{name} -d

Name:		SDLmm
Summary:	A C++ Wrapper for the Simple DirectMedia Layer
Version:	0.1.8
Release:	20
License:	LGPL
Group:		System/Libraries
Source0:	http://download.sourceforge.net/SDLmm/%{name}-%{version}.tar.bz2
Patch0:		SDLmm-0.1.8-fix-underquoted-calls.patch
Patch1:		SDLmm-0.1.8-link.patch
URL:		http://sdlmm.sourceforge.net/
BuildRequires:	pkgconfig(sdl)

%description
SDLmm is a C++ glue for SDL, or the Simple DirectMedia Layer, which is a
generic API that provides low level access to audio, keyboard, mouse,
joystick, 3D hardware via OpenGL, and 2D framebuffer across multiple
platforms.

SDLmm aims to stay as close as possible to the C API while taking
advantage of native C++ features like object orientation.

%package -n	%{lib_name}
Summary:	Main library for SDLmm
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Obsoletes:	%{_lib}SDLmm0.1 < 0.1.8-16

%description -n	%{lib_name}
This package contains the library needed to run programs dynamically
linked with SDLmm.

%package -n	%{develname}
Summary:	Headers for developing programs that will use SDLmm
Group:		Development/C++
Requires:	%{lib_name} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}SDLmm0.1-devel < 0.1.8-16

%description -n	%{develname}
This package contains the headers that programmers will need to develop
applications which will use SDLmm, the C++ interface to SDL.

%prep
%setup -q
%patch0 -p1 -b .underquoted
%patch1 -p0 -b .link

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files -n %{lib_name}
%doc AUTHORS COPYING
%{_libdir}/libSDLmm-%{api}.so.%{major}*

%files -n %{develname}
%doc docs/html/*.{html,gif} NEWS README
%{_bindir}/sdlmm-config
%{_includedir}/*
%{_libdir}/*.so
%{_datadir}/aclocal/*.m4
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8709 |21cr|SDL_Pango-0.1.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

%define _includedir %{_prefix}/include/SDL

Summary:	Simple DirectMedia Layer for pango
Name:		SDL_Pango
Version:	0.1.2
Release:	16
License:	LGPLv2+
Group:		System/Libraries
URL:		http://sdlpango.sourceforge.net/
Source0:	http://puzzle.dl.sourceforge.net/sourceforge/sdlpango/%{name}-%{version}.tar.bz2
Patch0:		SDL_Pango-0.1.2-API-adds.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangoft2)

%description
Pango is the text rendering engine of GNOME 2.
SDL_Pango connects the engine to SDL.

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n %{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%prep
%setup -q
%patch0 -p0

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

%files -n %{develname}
%doc README
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8710 |21cr|sdlroids-1.3.4-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	SDLRoids - an enhanced shoot-the-asteroids
Name:		sdlroids
Version:	1.3.4
Release:	17
License:	GPL
Group:		Games/Arcade
Source0:	%{name}-%{version}.tar.bz2
URL:		http://eongames.com/games/sdlroids/
BuildRequires:	pkgconfig(sdl)
BuildRequires:	imagemagick

%description
SDLRoids is essentially an Asteroids clone, but with a few extra
features, and some nice game physics. It is based on xhyperoid, which
is a UNIX port of the 16-bit Windows game Hyperoid. Major changes from
xhyperoid are that it's using SDL for sound and graphics, has a couple
of extra powerups  and that the shield behaves differently.

%prep
%setup -q

%build
%configure --bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir} \
		--disable-rpath
%make

%install
%makeinstall bindir=%{buildroot}%{_gamesbindir} datadir=%{buildroot}%{_gamesdatadir}

install -d %{buildroot}{%{_liconsdir},%{_miconsdir}}
convert icons/%{name}-16x16.xpm %{buildroot}%{_miconsdir}/%{name}.png
convert icons/%{name}-32x32.xpm %{buildroot}%{_iconsdir}/%{name}.png
convert icons/%{name}-48x48.xpm %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}                
Icon=%{name}                                
Categories=Game;ArcadeGame;                
Name=SDLRoids                
Comment=SDLRoids - an enhanced shoot-the-asteroids
EOF

%files
%defattr(644,root,root,755)
%doc ChangeLog README README.orig README.xhyperoid COPYING
%{_mandir}/man6/%{name}.6*
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8711 |21cr|sdlscav-145-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Cool arcade/thinking game very much like Lode Runner
Name:		sdlscav
Version:	145
Release:	7
Group:		Games/Arcade
License:	GPL
URL:		http://www.xdr.com/dash/scavenger.html
Source:		http://www.xdr.com/dash/%{name}-%{version}.tar.bz2
Source10:	%{name}.16.xpm
Source11:	%{name}.32.xpm
Source12:	%{name}.48.xpm
Patch0:		%{name}-145-optflags.patch
Patch1:		%{name}-145-datapath.patch
BuildRequires:	SDL-devel

%description
SDL Scavenger is a cool arcade/thinking game very much like Lode Runner.
You've got to run around and collect objects while avoiding enemies. Some
objects are buried and you've got to dig down to get at them. It's an
addictive game and some of the levels are devilishly (cruelly) complicated
to solve.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%make OPT="%{optflags}"

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%_gamesbindir %{buildroot}%_gamesdatadir/%{name}
install -m 0755 %{name} %{buildroot}%_gamesbindir/
for f in data/*; do install -m 0644 $f %{buildroot}%_gamesdatadir/%{name}/; done

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=SDL Scavenger
Comment=Cool arcade/thinking game very much like Lode Runner
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

mkdir -p %{buildroot}%_miconsdir
mkdir -p %{buildroot}%_liconsdir
install -m 0644 %SOURCE10 %{buildroot}%_miconsdir/%{name}.xpm
install -m 0644 %SOURCE11 %{buildroot}%_iconsdir/%{name}.xpm
install -m 0644 %SOURCE12 %{buildroot}%_liconsdir/%{name}.xpm

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README DOC
%_gamesbindir/*
%_gamesdatadir/%{name}
%{_datadir}/applications/*.desktop
%_miconsdir/%{name}.xpm
%_iconsdir/%{name}.xpm
%_liconsdir/%{name}.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8712 |21cr|sdrangel-7.13.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Don't build with LTO since it breaks sdrangel
%define _disable_lto 1

%ifarch %{ix86} %{arm}
%bcond_with    fec
%else
%bcond_without fec
%endif
%bcond_without freedv
# https://github.com/f4exb/sdrangel/issues/796
%bcond_with oldcpu

Name:		sdrangel
Version:	7.13.0
Release:	2
Summary:	SDR/Analyzer frontend for Airspy, BladeRF, HackRF, RTL-SDR and FunCube
License:	GPL-3.0-or-later
Group:		Communications
URL:		https://github.com/f4exb/sdrangel
Source0:	https://github.com/f4exb/sdrangel/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	dsdcc-devel
BuildRequires:	hicolor-icon-theme
BuildRequires:	boost-devel
BuildRequires:	LimeSuite-devel
BuildRequires:	serialDV-devel
BuildRequires:	airspyone_host-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	hidapi-devel
BuildRequires:	uhd-devel
BuildRequires:	qmake5
BuildRequires:	pkgconfig(libxtrxll)
BuildRequires:	pkgconfig(libperseus-sdr)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Location)
BuildRequires:	pkgconfig(Qt5Charts)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5TextToSpeech)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(SoapySDR)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(codec2)
BuildRequires:	pkgconfig(faad2)
BuildRequires:	pkgconfig(fftw3f)
BuildRequires:	pkgconfig(libairspyhf)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libbladeRF)
BuildRequires:	pkgconfig(libhackrf)
BuildRequires:	pkgconfig(libiio)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(librtlsdr)
BuildRequires:	pkgconfig(libpostproc)
BuildRequires:	pkgconfig(libmirisdr)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libxtrxll)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opencv4)
BuildRequires:	pkgconfig(libswscale)
Requires:	python3-requests
%if %{with fec}
BuildRequires:	pkgconfig(libcm256cc)
BuildRequires:	pkgconfig(nanomsg)
%endif
%if %{with freedv}
BuildRequires:	pkgconfig(codec2)
%endif

%description
SDRangel is an Open Source Qt5/OpenGL SDR and signal analyzer frontend
to various hardware.

%package doc
Summary:	Documentation for SDRangel

%description doc
Documentation for SDRangel.

%prep
%autosetup -p1
sed -i 's/\r$//' Readme.md

%build
%cmake \
  -DCMAKE_SHARED_LINKER_FLAGS="" \
  -DCMAKE_SKIP_RPATH:BOOL=OFF \
  -DCMAKE_BUILD_TYPE=Release \
  -DENABLE_DISTRIBUTION=ON \
  -DINSTALL_LIB_DIR=%{_libdir}/%{name} \
%if %{with oldcpu}
  -DARCH_OPT="" \
%endif
%ifarch aarch64
  -DARCH_OPT="" \
%endif
%ifarch %{ix86}
  -DFORCE_SSE41=ON \
%endif
  -DRX_SAMPLE_24BIT=ON

%make_build

%install
%make_install -C build
rm -f %{buildroot}%{_datadir}/sdrangel/Readme.md

%files
%license LICENSE
%{_bindir}/sdrangel
%{_bindir}/ldpctool
%{_bindir}/sdrangelbench
%{_bindir}/sdrangelsrv
%dir %{_libdir}/sdrangel
%{_libdir}/sdrangel/lib*
%{_libdir}/sdrangel/plugins*
%{_datadir}/applications/sdrangel.desktop
%{_datadir}/icons/hicolor/scalable/apps/sdrangel_icon.svg

%files doc
%doc Readme.md
%doc swagger/sdrangel/examples/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8713 |21cr|seamonkey-2.53.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define homepage file:///usr/share/doc/HTML/index.html

%define default_bookmarks_file %{_datadir}/bookmarks/default-bookmarks.html

%define minimum_build_nspr_version 4.12
%define minimum_build_nss_version 3.25

%define build_langpacks 1

%define builddir %{_builddir}/%{name}-%{version}
%define mozdir %{_libdir}/%{name}

%if %{_use_internal_dependency_generator}
%global __provides_exclude (.*)\\.so(.*)
%global __requires_exclude libldap60\\.so(.*)|libldif60\\.so(.*)|liblgpllibs\\.so(.*)|libprldap60\\.so(.*)|libsuite\\.so(.*)|libxul\\.so(.*)|libmozavutil\\.so(.*)|libmozsqlite3\\.so(.*)|libmozgtk\\.so(.*)|libmozsandbox\\.so(.*)
%endif

%bcond_with clang

Summary:	Web browser, e-mail, news, IRC client, HTML editor
Name:		seamonkey
Version:	2.53.12
Release:	1
License:	MPLv1.1
Group:		Networking/WWW
Url:		https://www.seamonkey-project.org
Source0:	https://archive.mozilla.org/pub/seamonkey/releases/%{version}/source/seamonkey-%{version}.source.tar.xz
Source1:	%{name}-langpacks-%{version}.tar.xz
Source2:	%{name}.png
Source3:	%{name}.sh.in
Source20:	%{name}-rosa-default-prefs.js
Patch0:		Rosa-startup-homepage.patch
Patch1:		mozilla-2.26.1-nongnome-proxies.patch
Patch4:		mozilla-2.46-ntlm-full-path.patch
Patch6:		mozilla-2.48-language.patch
BuildRequires:	autoconf2.1
BuildRequires:  cargo
BuildRequires:	coreutils
%{?with_clang:BuildRequires:  clang}
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	imagemagick
BuildRequires:	java-rpmbuild
BuildRequires:	makedepend
BuildRequires:	nasm >= 2.13
BuildRequires:	perl
BuildRequires:	pkgconfig(python2)
BuildRequires:	python2-setuptools
BuildRequires:	python2-simplejson
BuildRequires:	rootcerts
BuildRequires:  rust
BuildRequires:	unzip
BuildRequires:	valgrind
BuildRequires:	wget
BuildRequires:	yasm
BuildRequires:	zip

BuildRequires:	jpeg-devel
BuildRequires:	krb5-devel
BuildRequires:	libiw-devel
BuildRequires:	nss-static-devel

BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)

Requires:	nspr >= %{minimum_build_nspr_version}
Requires:	nss >= %{minimum_build_nss_version}
Obsoletes:	%{name}-devel < %{version}
Obsoletes:	%{name}-dom-inspector < %{version}
Obsoletes:	%{name}-enigmail  < %{version}
Obsoletes:	%{name}-enigmime < %{version}
Obsoletes:	%{name}-irc < %{version}
Obsoletes:	%{name}-js-debugger < %{version}
Obsoletes:	%{name}-mail < %{version}
Obsoletes:	%{name}-spellchecker < %{version}

ExcludeArch:	%arm64

%description
SeaMonkey is an all-in-one Internet application suite. It includes a browser,
mail/news client, IRC client, JavaScript debugger, and a tool to inspect the
DOM for web pages. It is derived from the application formerly known as Mozilla
Application Suite.

%files
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{mozdir}
%{_datadir}/applications/*.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%patch0 -p1
# mozilla patches
%patch1 -p1
%patch4 -p1
%patch6 -p1

rm -f .mozconfig

%build
MOZ_OPT_FLAGS='%{optflags}'
export CFLAGS=$MOZ_OPT_FLAGS
export CXXFLAGS=$MOZ_OPT_FLAGS
export LDFLAGS="-Wl,--no-keep-memory"
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
echo "mk_add_options BUILD_OFFICIAL=1" >> .mozconfig
echo "mk_add_options MOZILLA_OFFICIAL=1" >> .mozconfig
echo "mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags}" >> .mozconfig
echo "mk_add_options MOZ_OBJDIR=../obj-@CONFIG_GUESS@" >> .mozconfig
echo "ac_add_options --host=%{_host}" >> .mozconfig
echo "ac_add_options --prefix=%{_prefix}" >> .mozconfig
echo "ac_add_options --libdir=%{_libdir}" >> .mozconfig
echo "ac_add_options --enable-application=comm/suite" >> .mozconfig
echo "ac_add_options --enable-optimize=-O2" >> .mozconfig
%ifarch %{ix86}
echo "ac_add_options --disable-debug" >> .mozconfig
echo "ac_add_options --disable-debug-symbols" >> .mozconfig
echo "ac_add_options --disable-elf-hack" >> .mozconfig
%endif
echo "ac_add_options --enable-release" >> .mozconfig
echo "ac_add_options --enable-default-toolkit=cairo-gtk3" >> .mozconfig 
echo "ac_add_options --disable-updater" >> .mozconfig
echo "ac_add_options --disable-crashreporter" >> .mozconfig
echo "ac_add_options --with-irc" >> .mozconfig
echo "ac_add_options --with-dominspector" >> .mozconfig
echo "ac_add_options --enable-calendar" >> .mozconfig
echo "ac_add_options --with-system-nspr" >> .mozconfig
echo "ac_add_options --with-system-nss" >> .mozconfig
echo "ac_add_options --with-system-zlib" >> .mozconfig
echo "ac_add_options --disable-tests" >> .mozconfig
echo "ac_add_options --disable-install-strip" >> .mozconfig
echo "ac_add_options --enable-js-shell" >> .mozconfig

%{?with_clang:export CC="clang" export CXX="clang++"}

./mach build

%install

pushd ../obj-*
%make_install
popd

# we don't want to ship mozilla's default sidebar components
rm -f %{buildroot}/%{mozdir}/searchplugins/bugzilla.gif
rm -f %{buildroot}/%{mozdir}/searchplugins/bugzilla.src
rm -f %{buildroot}/%{mozdir}/searchplugins/dmoz.gif
rm -f %{buildroot}/%{mozdir}/searchplugins/dmoz.src
rm -f %{buildroot}/%{mozdir}/searchplugins/lxrmozilla.gif
rm -f %{buildroot}/%{mozdir}/searchplugins/lxrmozilla.src
rm -f %{buildroot}/%{mozdir}/searchplugins/mozilla.gif
rm -f %{buildroot}/%{mozdir}/searchplugins/mozilla.src
rm -f %{buildroot}/%{mozdir}/plugins/libnullplugin.so

# the %%makeinstall_std macro also install files that we don't need (yet?)
rm -rf %{buildroot}%{_datadir}/idl

echo > %{name}.lang
%if %{build_langpacks}
# Install langpacks
mkdir -p %{buildroot}%{mozdir}/extensions
tar xf %{SOURCE1}
for langpack in `ls seamonkey-langpacks/*.xpi`; do
  language=$(basename $langpack .xpi | sed 's/^seamonkey-//' | sed 's/\.langpack$//' | sed 's/\([0-9]\{1,2\}\.\)*//')
  extensiondir=%{buildroot}%{mozdir}/extensions/langpack-$language@seamonkey.mozilla.org
  mkdir -p $extensiondir
  unzip $langpack -d $extensiondir
  find $extensiondir -type f | xargs chmod 644

  jarfile=$extensiondir/chrome/$language.jar

  sed -i -e "s|browser.startup.homepage.*$|browser.startup.homepage=%{homepage}|g;" \
	$extensiondir/chrome/$language/locale/$language/navigator-region/region.properties

  pushd $extensiondir/chrome/$language
  zip -r -D $jarfile locale
  popd

  language=`echo $language | sed -e 's/-/_/g'`
  extensiondir=`echo $extensiondir | sed -e "s,^%{buildroot},,"`
  echo "%%lang($language) $extensiondir" >> %{name}.lang
done
rm -rf firefox-langpacks
%endif # build_langpacks

# set up our desktop files
install -m 755 -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=SeaMonkey Navigator
Comment=Seamonkey Navigator web browser
Exec=%{_bindir}/%{name} %u
Icon=%{name}.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Network;WebBrowser;X-MandrivaLinux-Internet-WebBrowsers;
MimeType=text/html;text/xml;application/xhtml+xml;application/vnd.mozilla.xul+xml;text/mml;
StartupWMClass=Seamonkey-bin
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}-mail.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=SeaMonkey Mail
Comment=Seamonkey Mail & Newsgroups e-mail client
Exec=%{_bindir}/%{name} -mail
Icon=%{name}.png
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;X-MandrivaLinux-Internet-Mail;Office;Network;Email;
MimeType=x-scheme-handler/mailto;
StartupWMClass=Seamonkey-bin
EOF

#Icons
mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -c -m 644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png

mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
install -m 644 %{SOURCE2} %{buildroot}%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 %{SOURCE2} %{buildroot}%{_liconsdir}/%{name}.png
convert %{buildroot}%{_miconsdir}/%{name}.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
convert %{buildroot}%{_iconsdir}/%{name}.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png

#Link to existing plugins
if [ -d %{buildroot}/%{mozdir}/plugins ]; then
rm -rf %{buildroot}/%{mozdir}/plugins
fi
ln -s %{_libdir}/mozilla/plugins %{buildroot}/%{mozdir}/plugins

# install our seamonkey.sh file
rm -rf %{buildroot}/usr/bin/%{name}
cp -fr %{SOURCE3} %{buildroot}%{_bindir}/%{name}

sed -i -e 's/MOZILLA_VERSION/%{version}/g' \
	-e 's,LIBDIR,%{_libdir},g' %{buildroot}%{_bindir}/%{name}

chmod 0755 %{buildroot}%{_bindir}/%{name}

# set up our default preferences
cp -fr %{SOURCE20} %{buildroot}%{mozdir}/defaults/pref/all-mandriva.js
sed -i -e 's,SEAMONKEY_RPM_VR,%{version}-%{release},g' %{buildroot}%{mozdir}/defaults/pref/all-mandriva.js

#remove unneeded files
rm -f %{buildroot}%{mozdir}/.autoreg
rm -f %{buildroot}%{mozdir}/removed-files
rm -f %{buildroot}%{mozdir}/update.locale
rm -f %{buildroot}%{mozdir}/updater.ini

rm -rf %{buildroot}%{_libdir}/%{name}-devel-%{version}
rm -rf %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8714 |21cr|searchandrescue-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname    SearchAndRescue

%define title       SearchAndRescue
%define longtitle   Helicopter simulator

Summary:	Helicopter simulator
Name:		searchandrescue
Version:	1.7.0
Release:	1
License:	GPL
Group:		Games/Other
Url:		http://searchandrescue.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/searchandrescue/Program/SearchAndRescue-%{version}.tar.gz
Patch0:		SearchAndRescue-1.1.0-link.patch
Patch1:		searchandrescue-1.4.0-compile.patch
BuildRequires:	imagemagick
BuildRequires:	jsw-devel
BuildRequires:	yiff-devel
BuildRequires:	SDL-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	%{name}-data
ExclusiveArch:	%{ix86} %{x86_64}

%description
Changing the pace of recent sterotypical game themes, Search and Rescue aims to
create a plot based on positive goals such as saving victims in varying 
situations of distress.
The player will be given the chance to pilot different types of rescue aircraft
in a variety of search and rescue style missions.
Search and Rescue is highly customizeable by allowing intermediate players to 
create their own missions and allowing experianced players to design their own 
aircraft and scenery.

%files
%doc AUTHORS  HACKING  INSTALL  README
%{_gamesbindir}/*
%{_mandir}/man6/*
%{_datadir}/pixmaps/*.xpm
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}_%{version}
%patch0 -p0 -b .link~
%patch1 -p1 -b .compile~

chmod +x ./configure
chmod +x ./pconf/pconf

%build
export CFLAGS="%{optflags}"
export LD_LIBRARY_PATH=%{_libdir}
export CPP="g++ %{build_ldflags} "
./configure Linux -v --disable=arch-i686 --libdir="-L%{_libdir}"
make all

%install
make PREFIX=%{buildroot}%{_prefix} MAN_DIR=%{buildroot}%{_mandir}/man6 install

# icons
convert sar/icons/%{oname}.xpm -resize 16x16 %{name}-16.png
convert sar/icons/%{oname}.xpm -resize 32x32 %{name}-32.png
convert sar/icons/%{oname}.xpm %{name}-48.png
install -D -m 644 %{name}-16.png %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 644 %{name}-32.png %{buildroot}%{_iconsdir}/%{name}.png 
install -D -m 644 %{name}-48.png %{buildroot}%{_liconsdir}/%{name}.png 

install -d -m 755 %{buildroot}%{_datadir}/pixmaps

# menu entry

install -d -m 755 %{buildroot}%{_datadir}/applications
cat >  %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{title}
Comment=%{longtitle}
Comment[ru]=Симулятор вертолета
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;Simulation;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8715 |21cr|searchandrescue-data-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		base_name	searchandrescue
%define		Base_Name	SearchAndRescue

Name:		%{base_name}-data
Version:	1.7.0
Release:	1
Summary:	Data package for Search and Rescue
License:	GPLv2
Group:		Games/Other
Url:		http://searchandrescue.sourceforge.net
Source:		http://sourceforge.net/projects/searchandrescue/files/Data_Files/%{Base_Name}-data-%{version}.tar.gz
BuildArch:	noarch

%description
This is data package for Search and Rescue.

%prep
%setup -q -c

%build

%install
rm -rf %{buildroot}
install -d -m 755 %{buildroot}%{_gamesdatadir}/%{base_name}
cp -pr * %{buildroot}%{_gamesdatadir}/%{base_name}
rm -f %{buildroot}%{_gamesdatadir}/%{base_name}/LICENSE

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_gamesdatadir}/%{base_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8716 |21cr|seatd-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Minimal seat management daemon
Name:		seatd
Version:	0.8.0
Release:	2
License:	MIT
Group:		System/Configuration/Boot and Init
Url:		https://github.com/kennylevinsen/seatd
Source0:	https://github.com/kennylevinsen/seatd/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	seatd.sysusers
BuildRequires:	meson
BuildRequires:	pkgconfig(scdoc)
BuildRequires:	pkgconfig(libsystemd)

%description
A seat management daemon, that does everything it needs to do.
Nothing more, nothing less. Depends only on libc.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_bindir}/%{name}-launch
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-launch.1.*
%{_sysusersdir}/%{name}.conf
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Universal seat management library
Group:		System/Libraries

%description -n %{libname}
Supports:
 * seatd
 * (e)logind
 * embedded seatd for standalone operation

Each backend can be compile-time included and is runtime auto-detected or
manually selected with the LIBSEAT_BACKEND environment variable.

Which backend is in use is transparent to the application, providing a
simple common interface.

%files -n %{libname}
%{_libdir}/libseat.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libseat
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libseat-devel package contains libraries and header files for
developing applications that use libseat.

%files -n %{devname}
%{_includedir}/libseat.h
%{_libdir}/libseat.so
%{_libdir}/pkgconfig/libseat.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

install -D -m 0644 -pv contrib/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -D -m 0644 -pv %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8717 |21cr|sec-2.7.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sec
Version:        2.7.6
Release:        3
Summary:        Simple Event Correlator script to filter log file entries
Group:          System/Servers
License:        GPLv2+
URL:            http://simple-evcorr.sourceforge.net/
Source0:        http://downloads.sourceforge.net/simple-evcorr/%{name}-%{version}.tar.gz
Source1:        sec.service
Source3:        sec.logrotate
# Example files and configuration info
Source4:        conf.README
Source5:        http://simple-evcorr.sourceforge.net/rulesets/amavisd.sec
Source6:        http://simple-evcorr.sourceforge.net/rulesets/bsd-MONITOR.sec
Source7:        http://simple-evcorr.sourceforge.net/rulesets/bsd-PHYSMOD.sec
Source8:        http://simple-evcorr.sourceforge.net/rulesets/bsd-USERACT.sec
Source9:        http://simple-evcorr.sourceforge.net/rulesets/bsd-general.sec
Source10:       http://simple-evcorr.sourceforge.net/rulesets/bsd-mpd.sec
Source11:       http://simple-evcorr.sourceforge.net/rulesets/cisco-syslog.sec
Source12:       http://simple-evcorr.sourceforge.net/rulesets/cvs.sec
Source13:       http://simple-evcorr.sourceforge.net/rulesets/dameware.sec
Source14:       http://simple-evcorr.sourceforge.net/rulesets/hp-openview.sec
Source15:       http://simple-evcorr.sourceforge.net/rulesets/labrea.sec
Source16:       http://simple-evcorr.sourceforge.net/rulesets/pix-general.sec
Source17:       http://simple-evcorr.sourceforge.net/rulesets/pix-security.sec
Source18:       http://simple-evcorr.sourceforge.net/rulesets/pix-url.sec
Source19:       http://simple-evcorr.sourceforge.net/rulesets/portscan.sec
Source20:       http://simple-evcorr.sourceforge.net/rulesets/snort.sec
Source21:       http://simple-evcorr.sourceforge.net/rulesets/snortsam.sec
Source22:       http://simple-evcorr.sourceforge.net/rulesets/ssh-brute.sec
Source23:       http://simple-evcorr.sourceforge.net/rulesets/ssh.sec
Source24:       http://simple-evcorr.sourceforge.net/rulesets/vtund.sec
Source25:       http://simple-evcorr.sourceforge.net/rulesets/windows.sec
BuildArch:      noarch

BuildRequires:  systemd

Requires:       logrotate

Requires(post):   systemd
Requires(preun):  systemd
Requires(postun): systemd

%description
SEC is a simple event correlation tool that reads lines from files, named
pipes, or standard input, and matches the lines with regular expressions,
Perl subroutines, and other patterns for recognizing input events.
Events are then correlated according to the rules in configuration files,
producing output events by executing user-specified shell commands, by
writing messages to pipes or files, etc.

%prep
%setup -q

%build

%install
# Install SEC and its associated files
install -D -m 0755 -p sec        %{buildroot}%{_bindir}/sec
install -D -m 0644 -p sec.man    %{buildroot}%{_mandir}/man1/sec.1
install -D -m 0644 -p %{SOURCE1} %{buildroot}%{_unitdir}/sec.service
install -D -m 0644 -p %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/sec

# Install the example config files and readme
install -D -m 0644 -p %{SOURCE4} %{buildroot}%{_sysconfdir}/%{name}/README
install -d -m 0755  examples
install -m 0644 -p %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} \
                   %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12} \
                   %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} \
                   %{SOURCE17} %{SOURCE18} %{SOURCE19} %{SOURCE20} \
                   %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} \
                   %{SOURCE25} examples/

# Remove executable bits because these files get packed as docs
chmod 0644 contrib/convert.pl contrib/swatch2sec.pl

%post
%systemd_post sec.service

%preun
%systemd_preun sec.service

%postun
%systemd_postun_with_restart sec.service

%clean

%files
%defattr(-,root,root,-)
%doc ChangeLog COPYING README contrib/convert.pl contrib/itostream.c contrib/swatch2sec.pl examples
%config(noreplace) %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/sec
%{_bindir}/sec
%{_mandir}/man1/sec.1*
%{_unitdir}/sec.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8718 |21cr|secp256k1-0-0.gitac83be3.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# There are two upstreams of this library:
# 1) https://github.com/bitcoin-core/secp256k1
# 2) https://github.com/Bitcoin-ABC/secp256k1
# (2) is a fork of (1), but Bitcoin ABC has become an another cryptocurrency,
# its new name is eCash, if I understood correctly.
# For now the only consumer of this library is electrum - a Bitcoin wallet,
# so, as it is a Bitrcon, but not Bitcoin ABC/eCash wallet, let's better
# use the original upstream.
# Debian and FreeBSD use (1), Fedora uses (2).

# Upstream has no tags
%define commit ac83be33d0956faf6b7f61a60ab524ef7d6a473a
%define commit_short %(echo %{commit} | head -c 7)

%define major 0
%define libname %mklibname secp256k1 %{major}
%define devname %mklibname secp256k1 -d

# autoreconf is enough
%define _disable_rebuild_configure 1

# From Fedora (https://src.fedoraproject.org/rpms/libsecp256k1)
# This package has a configure test which uses ASMs, but does not link the
# resultant .o files.  As such the ASM test is always successful, even on
# architectures were the ASM is not valid when compiling with LTO.
%global optflags %{optflags} -flto=auto -ffat-lto-objects
%global ldflags %{ldflags} -flto=auto -ffat-lto-objects

Summary:	Optimized C library for EC operations on curve secp256k1
Name:		secp256k1	
Version:	0
Release:	0.git%{commit_short}.2
License:	MIT
Group:		System/Libraries
Url:		https://github.com/bitcoin-core/secp256k1
Source0:	https://github.com/bitcoin-core/secp256k1/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

%description
Optimized C library for EC operations on curve secp256k1

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{SUMMARY}
Provides:	secp256k1 = %{EVRD}
Provides:	secp256k1%{_isa} = %{EVRD}
# compat with Fedora
Provides:	libsecp256k1 = %{EVRD}
Provides:	libsecp256k1%{_isa} = %{EVRD}

%description -n %{libname}
%{SUMMARY}

%files -n %{libname}
%license COPYING
%doc README.md
%{_libdir}/libsecp256k1.so.%{major}{,.*}

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libsecp256k1
Provides:	secp256k1-devel = %{EVRD}
Provides:	libsecp256k1-devel = %{EVRD}
Requires:	%{libname}%{_isa} = %{EVRD}

%description -n %{devname}
Development files for libsecp256k1.
libsecp256k1 is an optimized C library for EC operations on curve secp256k1.

%files -n %{devname}
%license COPYING
%doc README.md
%{_includedir}/*
%{_libdir}/libsecp256k1.so
%{_libdir}/pkgconfig/libsecp256k1.pc

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
autoreconf -if
%configure \
	--enable-benchmark=no \
	--enable-tests=no \
	--enable-experimental \
	--enable-module-ecdh \
	--enable-module-recovery \
	--enable-module-extrakeys \
	--enable-module-schnorrsig \
	--enable-external-default-callbacks=no \
%ifarch %{x86_64}
	--with-asm=x86_64 \
%endif
	--
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8719 |21cr|semantik-1.2.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}

# Comes out of the GitLab tarball
%define commit_id 1848610e16b3dd3f33b263347768820d875aa147

Summary:	Mindmapping-like tool
Name:		semantik
Version:	1.2.8
Release:	2
Epoch:		1
License:	GPLv3+
Group:		Office
Url:		https://gitlab.com/ita1024/semantik
Source0:	https://gitlab.com/ita1024/semantik/-/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc

BuildRequires:  python3-devel >= 3.5
BuildRequires:  qmake5
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5WebEngine)
BuildRequires:  pkgconfig(Qt5WebEngineWidgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  qt5-linguist-tools
#BuildRequires:  waf

BuildRequires:  kf5kio-devel
BuildRequires:  kf5auth-devel
BuildRequires:  kf5kio-devel
BuildRequires:  kf5iconthemes-devel
BuildRequires:  kf5configwidgets-devel
BuildRequires:  kf5xmlgui-devel
BuildRequires:  kf5coreaddons-devel
BuildRequires:  kf5config-devel
BuildRequires:  kf5widgetsaddons-devel
BuildRequires:  kf5i18n-devel
BuildRequires:  kf5sonnet-devel
BuildRequires:  kdelibs4support-devel

%description
Semantik (previously Kdissert) is a mindmapping-like tool to help
students to produce complicated documents very quickly and efficiently:
presentations, dissertations, thesis, reports. While targetted mostly
at students, Kdissert can also help teachers, decision maker, engineers
and businessmen. Semantik is also available exclusively for Linux and
other free operating systems.

%files -f %{name}.lang
%doc README
%{_bindir}/semantik*
%{_datadir}/semantik*
%{_datadir}/applications/semantik*
%{_datadir}/icons/hicolor/*/apps/semantik*
%{_datadir}/kxmlgui5/semantik*
%{_datadir}/mime/packages/semantik.xml
%{_mandir}/man1/%{name}.1*


#----------------------------------------------------------------------------

%package -n %{libname}
Summary:        Shared library for %{name}
Group:          System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{name}-%{version}-%{commit_id}

%build
./waf configure \
    --qtdir=%{_libdir}/qt5 \
    --qtlibs=%{_libdir} \
    --qtbin=%{_libdir}/qt5/bin \
    --prefix=%{_prefix}

./waf build %{?_smp_mflags}

%install
./waf install --destdir=%{buildroot}

install -D -m 0644 src/data/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

# Avoid 'W: non-executable-script'
find %{buildroot}%{_datadir}/semantik -regex ".*\(\.py\|\.sh\|wscript\)" -exec chmod -v a+rx {} \;

# Avoid 'W: script-without-shebang'
find %{buildroot}%{_datadir}/semantik -name "*.py" -exec sed -i "1 s,^.*$,#!%__python3," {} \;

# Avoid 'W: devel-file-in-non-devel-package'
unlink %{buildroot}%{_libdir}/libsemantik.so

%find_lang %{name}
%find_lang %{name}-d

# This RPM seems not to support multiple -f options for %files
cat %{name}-d.lang >> %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8720 |21cr|semicontrol-0.1-69
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname semicontrol.love
%define  distuffix mrb

Name:           semicontrol
Version:        0.1
Release:        69
Summary:        A simple puzzle game
Group:          Games/Arcade
License:        GPLv3+
Url:            https://gordebak.itch.io/semicontrol
Source0:        %{oname}
BuildRequires:  imagemagick
BuildRequires:  zip

Requires:       love
BuildArch:      noarch

%description
A simple puzzle game where you try to put 
the disc on the right in the red square by 
moving the disc on the left. 
Green squares reverses the movement relationship.
This game is a prototype. 
But the response I got for it was positive, 
so I decided to work on it more. 
Currently there are 22 levels in the game.
Semicontrol is open source.


%files
%doc license.txt
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{oname}
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep 
%setup -q -c -n semicontrol

%build

%install
# data
install -D -m 644 %{SOURCE0} %{buildroot}%{_gamesdatadir}/%{name}/%{oname}


# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{oname}
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size -background transparent -gravity Center images/ic_launcher.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8721 |21cr|sendfile-2.1b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Asynchronous file transfer service
Name:		sendfile
Version:	2.1b
Release:	7
License:	GPLv2
Group:		Networking/File transfer
URL:		http://www.belwue.de/projekte/saft/sendfile.html
Source:		%{name}-%{version}.tar.bz2
Source1:	sendfile-xinetd
#patch0 sent upstream (Kharec)
Patch0:		sendfile-2.1b-fix-str-fmt.patch
Requires:	xinetd
BuildRequires:	readline-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
Sendfile is an asynchronous file transfer service for the Internet, like the
sendfile facility in Bitnet: Any user A can send files to another user B
without B being active in any way.

Sendfile which is an implementation of the SAFT protocol (Simple Asynchronous
File Transfer) offers you a true asynchronous file transfer service for the
Internet. Virtually any form of file can be sent, including encrypted ones.

The sendfile package contains 5 main programs:
  sendfiled  - the sendfile daemon which will be started by inetd
  sendfile   - the sendfile client for sending files
  sendmsg    - the send-message client for sending one-line text messages
  receive    - the receive client for picking up already received files
  fetchfile  - the O-SAFT client to obtain files from a remote SAFT server

%files
%defattr(0755,root,root,0755)
%{_sbindir}/*
%{_bindir}/*
%defattr(0644,root,root,0755)
%doc doc/AUTHORS doc/COPYING doc/ChangeLog doc/doc.txt doc/doku.txt
%doc doc/features doc/LIESMICH* doc/README* doc/THANKS doc/vorteile
%dir %{_var}/spool/sendfile
%attr(0700,root,root) %dir %{_var}/spool/sendfile/LOG
%attr(1777,root,root) %dir %{_var}/spool/sendfile/OUTGOING
%config(noreplace) %{_sysconfdir}/sendfile.*
%config(noreplace) %{_sysconfdir}/profile.d/*
%config(noreplace) %{_sysconfdir}/xinetd.d/*
%{_mandir}/*/*

%post
service xinetd reload

%postun
service xinetd reload

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%make CFLAGS="%{optflags}"

%install
# install isn't good, so we do it by hand...
install -d %{buildroot}%{_sbindir}
install src/sendfiled %{buildroot}%{_sbindir}/
install -d %{buildroot}%{_var}/spool/sendfile/LOG
install -d %{buildroot}%{_var}/spool/sendfile/OUTGOING
install -d %{buildroot}%{_sysconfdir}
install etc/sendfile.deny %{buildroot}%{_sysconfdir}/
install etc/sendfile.cf %{buildroot}%{_sysconfdir}/
install -D %{SOURCE1} %{buildroot}%{_sysconfdir}/xinetd.d/sendfile
install -d %{buildroot}%{_mandir}/man1/
install doc/*.1 %{buildroot}%{_mandir}/man1/
install -d %{buildroot}%{_mandir}/man1
install -D etc/check_sendfile %{buildroot}%{_sysconfdir}/profile.d/sendfile-check.sh
install -d %{buildroot}%{_bindir}
install src/{sendfile,sendmsg,receive,fetchfile,utf7encode,wlock} %{buildroot}%{_bindir}/
ln -s utf7encode %{buildroot}%{_bindir}/utf7decode
install etc/{sfconf,sfdconf} %{buildroot}%{_bindir}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8722 |21cr|sendip-2.5-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A command line tool to allow sending arbitrary IP packets
Name:		sendip
Version:	2.5
Release:	12
License:	GPLv2+
Group:		Networking/Other
Url: 		http://www.earth.li/projectpurple/progs/sendip.html
Source0:	http://www.earth.li/projectpurple/files/%{name}-%{version}.tar.gz
Patch0:		http://ftp.debian.org/debian/pool/main/s/sendip/sendip_2.5-2.diff.gz
Patch1:		sendip-2.5-optflags.patch

%description
A command line tool to send arbitrary IP packets. It has a large number of
command line options to specify the content of every header of a NTP, BGP,
RIP, RIPng, TCP, UDP, ICMP, or raw IPv4 or IPv6 packet.  It also allows any
data to be added to the packet.

%files
%doc README CHANGES LICENSE TODO
%{_mandir}/man1/sendip.1*
%{_bindir}/sendip
%{_libdir}/sendip/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%make \
	PREFIX=%{_prefix} \
	OPTFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_prefix}/{bin,lib}
mkdir -p %{buildroot}%{_mandir}/man1
make \
	PREFIX=%{buildroot}%{_prefix} \
	MANDIR=%{buildroot}%{_mandir}/man1 \
	LIBDIR=%{buildroot}%{_libdir}/sendip \
	OPTFLAGS="%{optflags}" \
	install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8723 |21cr|seq24-0.9.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Minimalistic, loop-based MIDI sequencer
Name:		seq24
Version:	0.9.3
Release:	4
License:	GPLv2+
Group:		Sound
Url:		https://edge.launchpad.net/seq24
Source0:		http://edge.launchpad.net/seq24/trunk/%{version}/+download/%{name}-%{version}.tar.bz2
Patch0:		seq24-0.9.3-fix-build-error-on-mutex-defs.patch
Patch1:		seq24-0.9.3-use-ladish-instead-of-lash.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtkmm-2.4) >= 2.4.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblash)

%description
Seq24 is a real-time midi sequencer. It was created to provide a very simple
interface for editing and playing midi 'loops'. After searching for a software
based sequencer that would provide the functionality needed for a live techno
performance, such as the Akai MPC line, the Kawai Q80 sequencer, or the
popular Alesis MMT-8, I found nothing similar in the software realm. I set out
to create a very minimal sequencer that excludes the bloated features of the
large software sequencers, and includes a small subset of features that I have
found usable in performing.

%files
%doc README AUTHORS ChangeLog COPYING RTC SEQ24
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%{_datadir}/applications/rosa-%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

# Install icons...
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp src/pixmaps/%{name}.xpm %{buildroot}%{_datadir}/pixmaps

# ...and a menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Seq24
Comment=Loop-based MIDI sequencer
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;AudioVideo;Audio;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8724 |21cr|ser-0.9.6-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define EXCLUDED_MODULES	mysql jabber auth_radius group_radius uri_radius avp_radius postgress snmp cpl cpl-c ext extcmd
%define JABBER_MODULES		jabber
%define MYSQL_MODULES		mysql
%define RADIUS_MODULES		auth_radius group_radius uri_radius avp_radius
%define RADIUS_MOD_PATH		modules/auth_radius modules/group_radius modules/uri_radius modules/avp_radius

Summary:	SIP Express Router, very fast and flexible SIP Proxy
Name:		ser
Version:	0.9.6
Release:	16
License:	GPLv2+
Group:		System/Servers
URL:		http://iptel.org/ser
Source0:	http://iptel.org/ser/stable/%{name}-%{version}_src.tar.bz2
Patch1:		ser-0.8.14-errno.diff
Patch2:		ser-0.9.6-str-fmt.patch
# fix multiple definitions
Patch3:		ser-gcc10.patch
BuildRequires:	bison
BuildRequires:	expat-devel
BuildRequires:	flex
BuildRequires:	radiusclient-ng-devel
BuildRequires:	libxml2-devel
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel

%description
Ser or SIP Express Router is a very fast and flexible SIP (RFC3621)
proxy server. Written entirely in C, ser can handle thousands calls
per second even on low-budget hardware. A C Shell like scripting language
provides full control over the server's behaviour. It's modular
architecture allows only required functionality to be loaded.
Currently the following modules are available: digest authentication,
CPL scripts, instant messaging, MySQL support, a presence agent, radius
authentication, record routing, an SMS gateway, a jabber gateway, a 
transaction module, registrar and user location.

%package	mysql
Summary:	MySQL connectivity for the SIP Express Router
Group:		System/Servers
Requires:	ser = %{version}

%description	mysql
The ser-mysql package contains MySQL database connectivity that you
need to use digest authentication module or persistent user location
entries.

%package	jabber
Summary:	SIP jabber message translation support for the SIP Express Router
Group:		System/Servers
Requires:	ser = %{version}

%description	jabber
The ser-jabber package contains a sip to jabber message translator.

%package	radius
Summary:	Ser radius authentication, group and uri check modules
Group:		System/Servers
Requires:	ser = %{version}

%description	radius
The ser-radius package contains modules for radius authentication, group
membership and uri checking.

%prep

%autosetup -p1

# lib64 fixes
find -type f | xargs perl -pi -e 's|/usr/lib|%{_libdir}|g'
find -type f | xargs perl -pi -e 's|\-L\$\(LOCALBASE\)/lib|\-L\$\(LOCALBASE\)/%{_lib}|g'

%build
make CFLAGS="%{optflags} -fPIC" all skip_modules="%EXCLUDED_MODULES" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/
make CFLAGS="%{optflags} -fPIC" modules modules="modules/%MYSQL_MODULES" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/
make CFLAGS="%{optflags} -fPIC" modules modules="modules/%JABBER_MODULES" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/
make CFLAGS="%{optflags} -fPIC" modules modules="%RADIUS_MOD_PATH" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/
make CFLAGS="%{optflags} -fPIC" modules modules="modules/pa" cfg-target=%{_sysconfdir}/ser/ modules-dir=%{_lib}/ser/modules/

%install
[ "%{buildroot}" != "/" ] && rm -rf "%{buildroot}"

make install skip_modules="%EXCLUDED_MODULES" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser/ \
    modules-dir=%{_lib}/ser/modules/ \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-modules modules="modules/%MYSQL_MODULES" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser/ \
    modules-dir=%{_lib}/ser/modules/ \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-modules modules="modules/%JABBER_MODULES" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser/ \
    modules-dir=%{_lib}/ser/modules/ \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-doc modules="modules/%JABBER_MODULES" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser/ \
    modules-dir=%{_lib}/ser/modules/ \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-modules modules="%RADIUS_MOD_PATH" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser/ \
    modules-dir=%{_lib}/ser/modules/ \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-doc modules="%RADIUS_MOD_PATH" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser/ \
    modules-dir=%{_lib}/ser/modules/ \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-modules modules="modules/pa" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser/ \
    modules-dir=%{_lib}/ser/modules/ \
    doc-prefix=$PWD \
    doc-dir=installed_docs

make install-doc modules="modules/pa" \
    basedir=%{buildroot} \
    prefix=%{_prefix} \
    cfg-prefix=%{buildroot} \
    cfg-target=%{_sysconfdir}/ser/ \
    modules-dir=%{_lib}/ser/modules/ \
    doc-prefix=$PWD \
    doc-dir=installed_docs

mkdir -p %{buildroot}%{_initrddir}
install -m755 rpm/ser.init %{buildroot}%{_initrddir}/ser

%post
%_post_service ser

%preun
%_preun_service ser

%files
%defattr(-,root,root)
%doc installed_docs/AUTHORS installed_docs/NEWS installed_docs/INSTALL installed_docs/README installed_docs/README-MODULES
%doc installed_docs/README.acc installed_docs/README.auth installed_docs/README.auth_db installed_docs/README.auth_diameter
%doc installed_docs/README.dbtext installed_docs/README.domain installed_docs/README.enum installed_docs/README.exec
%doc installed_docs/README.group installed_docs/README.mangler installed_docs/README.maxfwd installed_docs/README.msilo
%doc installed_docs/README.nathelper installed_docs/README.pa installed_docs/README.pdt installed_docs/README.permissions
%doc installed_docs/README.pike installed_docs/README.print installed_docs/README.registrar installed_docs/README.rr
%doc installed_docs/README.sl installed_docs/README.sms installed_docs/README.textops installed_docs/README.tm installed_docs/README.uri
%doc installed_docs/README.usrloc installed_docs/README.xlog
%attr(0755,root,root) %{_initrddir}/ser
%dir %{_sysconfdir}/ser
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ser/*
%dir %{_libdir}/ser
%dir %{_libdir}/ser/modules
%{_libdir}/ser/modules/acc.so
%{_libdir}/ser/modules/auth.so
%{_libdir}/ser/modules/auth_db.so
%{_libdir}/ser/modules/auth_diameter.so
%{_libdir}/ser/modules/dbtext.so
%{_libdir}/ser/modules/domain.so
%{_libdir}/ser/modules/enum.so
%{_libdir}/ser/modules/exec.so
%{_libdir}/ser/modules/group.so
%{_libdir}/ser/modules/mangler.so
%{_libdir}/ser/modules/maxfwd.so
%{_libdir}/ser/modules/msilo.so
%{_libdir}/ser/modules/nathelper.so
%{_libdir}/ser/modules/pa.so
%{_libdir}/ser/modules/pdt.so
%{_libdir}/ser/modules/permissions.so
%{_libdir}/ser/modules/pike.so
%{_libdir}/ser/modules/print.so
%{_libdir}/ser/modules/registrar.so
%{_libdir}/ser/modules/rr.so
%{_libdir}/ser/modules/sl.so
%{_libdir}/ser/modules/sms.so
%{_libdir}/ser/modules/textops.so
%{_libdir}/ser/modules/tm.so
%{_libdir}/ser/modules/uri.so
%{_libdir}/ser/modules/usrloc.so
%{_libdir}/ser/modules/xlog.so
%{_libdir}/ser/modules/avp.so
%{_libdir}/ser/modules/avp_db.so
%{_libdir}/ser/modules/avpops.so
%{_libdir}/ser/modules/dispatcher.so
%{_libdir}/ser/modules/diversion.so
%{_libdir}/ser/modules/flatstore.so
%{_libdir}/ser/modules/gflags.so
%{_libdir}/ser/modules/mediaproxy.so
%{_libdir}/ser/modules/options.so
%{_libdir}/ser/modules/speeddial.so
%{_libdir}/ser/modules/uri_db.so
%{_sbindir}/gen_ha1
%{_sbindir}/ser
%{_sbindir}/serunix
%{_sbindir}/serctl
%{_mandir}/man5/*
%{_mandir}/man8/*

%files mysql
%defattr(-,root,root)
%{_libdir}/ser/modules/mysql.so
%{_sbindir}/ser_mysql.sh

%files jabber
%defattr(-,root,root)
%doc installed_docs/README.jabber
%{_libdir}/ser/modules/jabber.so

%files radius
%defattr(-,root,root)
%doc installed_docs/README.auth_radius installed_docs/README.group_radius installed_docs/README.uri_radius
%doc installed_docs/README.avp_radius
%{_libdir}/ser/modules/auth_radius.so
%{_libdir}/ser/modules/group_radius.so
%{_libdir}/ser/modules/uri_radius.so
%{_libdir}/ser/modules/avp_radius.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8725 |21cr|ser2net-3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Serial to network proxy
Name:		ser2net
Version:	3.1
Release:	3
License:	GPLv2+
Group:		System/Servers
URL:		http://ser2net.sourceforge.net/
Source0:	http://dl.sourceforge.net/ser2net/%{name}-%{version}.tar.gz
Source1:	ser2net.service
BuildRequires:	libwrap-devel

%description
Make serial ports available to network via TCP/IP connection.

%prep
%setup -q

%build
%configure --with-tcp-wrappers
%make

%install
%makeinstall_std

install -Dpm644 %{name}.conf %{buildroot}/%{_sysconfdir}/%{name}.conf
install -Dpm755 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}.service

%post
%systemd_post ser2net.service

%preun
%systemd_preun ser2net.service

%postun
%systemd_postun_with_restart ser2net.service

%files
%doc AUTHORS ChangeLog NEWS README
%{_sbindir}/ser2net
%{_mandir}/man8/ser2net.8*
%{_unitdir}/%{name}*
%config(noreplace) %{_sysconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8726 |21cr|serialDV-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:           serialDV
Version:        1.1.4
Release:        1%{?dist}
Summary:        Library for audio de-/encoding with ABME3000 based devices
License:        GPL-3.0-only
Group:          System/Libraries
URL:            https://github.com/f4exb/serialDV
#Git-Clone:     https://github.com/f4exb/serialDV.git
Source0:	https://github.com/f4exb/serialDV/archive/v%{version}.tar.gz
BuildRequires:  cmake

%description
A library that provides an interface for audio encoding and decoding with
AMBE3000 based devices in packet mode over a serial link.

%package -n	%{devname}
Summary:        Development files for libserialdv
Group:		System/Libraries
Requires:       %{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
A library that provides an interface for audio encoding and decoding with
AMBE3000 based devices in packet mode over a serial link.
This subpackage contains libraries and header files for developing
applications that want to make use of libserialdv.

%package -n %{libname}
Summary:        Library for audio de-/encoding with ABME3000 based devices
Group:		System/Libraries

%description -n %{libname}
A library that provides an interface for audio encoding and decoding with
AMBE3000 based devices in packet mode over a serial link.


%package doc
Summary:        Documentation for AMBE3000 based devices

%description doc
Documentation for AMBE3000 based devices

%prep
%autosetup

%build
%cmake
%make_build

%install
%make_install -C build

%files -n %{libname}
%{_libdir}/libserialdv.so.%{major}*

%files -n %{devname}
%license LICENSE
%{_bindir}/dvtest
%{_includedir}/serialdv/
%{_libdir}/libserialdv.so

%files doc
%doc Readme.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8727 |21cr|serialoverip-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for transport of asynchronous serial devices over UDP/IP
Name:		serialoverip
Version:	1.0
Release:	10
License:	GPL
Group:		Networking/Other
URL:		http://sourceforge.net/projects/serialoverip
Source0:	%{name}-%{version}.tar.bz2
Patch0:		serialoverip-1.0-gcc3x.diff

%description
Serial Over IP is a tool for the transport of serial interfaces over UDP/IP.
It is useful for connecting distant equipment that run via a serial interfaces
to a local computer. It requires two computers that are running Linux and are
connected via IP. 

%prep

%setup -q 
%patch0 -p0

%build

gcc %{optflags} -o serialoverip serialoverip.c

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 serialoverip %{buildroot}%{_bindir}/

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/serialoverip

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8728 |21cr|sethdlc-1.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%nil

Summary:	HDLC card configurator
Name:		sethdlc
Version:	1.18
Release:	3
License:	GPLv2+
Group:          System/Kernel and hardware
URL:		http://hq.pm.waw.pl/hdlc/
Source0:	http://www.kernel.org/pub/linux/utils/net/hdlc/%{name}-%{version}.tar.gz
Patch0:		sethdlc-no-kernel-headers.patch

%description
Sethdlc utility for 2.4/2.6 kernels. The sethdlc utility is used to configure
certain HDLC cards. General HDLC layer for Linux is an interface between
low-level hardware drivers for synchronous serial (HDLC) cards and the rest of
kernel networking.

%prep

%setup -q -n %{name}-%{version}
%apply_patches
# remove prebuilt binary included in the tarball
rm -f sethdlc

%build
%setup_compile_flags
%make CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_bindir}
install -m0755 sethdlc %{buildroot}%{_bindir}/

%files
%{_bindir}/sethdlc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8729 |21cr|setproctitle-0.3.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname setproctitle %{major}
%define devname %mklibname setproctitle -d

Summary:	A setproctitle implementation
Name:		setproctitle
Version:	0.3.2
Release:	6
License:	LGPL/BSD-style
Group:		System/Libraries
Url:		http://www.altlinux.ru/
# http://sisyphus.ru/cgi-bin/srpm.pl/Sisyphus/setproctitle/getsource/0
Source0:	%{name}-%{version}.tar.xz
Patch0:		setproctitle-0.3.2-extra-ld-flags.patch

%description
This library provides setproctitle function for setting the
invoking process's title.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A setproctitle implementation
Group:		System/Libraries

%description -n %{libname}
This library provides setproctitle function for setting the
invoking process's title.

%files -n %{libname}
%doc LICENSE README
%{_libdir}/libsetproctitle.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development environment for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files required to build
setproctitle-based software.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libsetproctitle.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .ldflags~

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8730 |21cr|sfc-0.018-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SoundFontCombi - ALSA MIDI event mixer
Name:		sfc
Version:	0.018
Release:	7
License:	GPLv2
Group:		Sound
# URL dead (10/2016)
Url:		http://personal.telefonica.terra.es/web/soudfontcombi
Source:		%{name}-%{version}.tar.gz
Patch0:		sfc-0.018-debug.patch
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)

%description
SoudFontCombi uses the ALSA sequencer to route MIDI events. You have 8 parts
and 2 MIDI ports, and you can produce combinations of sounds like some fancy
synthetizers.

%files
%doc AUTHORS ChangeLog README COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------


%prep
%setup -q
%apply_patches


%build
export CXXFLAGS="%{optflags}"
autoreconf -fiv
%configure
%make


%install
%makeinstall_std

# Menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=sound_section
Name=SoundFontCombi
Comment=MIDI event mixer
Comment[ru]=Микшер MIDI-событий
Categories=AudioVideo;Player;Audio;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8731 |21cr|sfml2-2.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname SFML

%define	major		%(echo %{version} |cut -d. -f1,2)
%define	minor		%(echo %{version} |cut -d. -f3)

%define	libname_a	%mklibname %{name}-audio %{major}
%define	libname_g	%mklibname %{name}-graphics %{major}
%define	libname_n	%mklibname %{name}-network %{major}
%define	libname_s	%mklibname %{name}-system %{major}
%define	libname_w	%mklibname %{name}-window %{major}
%define	devname		%mklibname %{name} -d

Summary:	Simple and Fast Multimedia Library
Name:		sfml2
Version:	2.5.1
Release:	2
License:	zlib/libpng License
Group:		System/Libraries
Url:		http://www.sfml-dev.org
Source0:	http://www.sfml-dev.org/files/%{oname}-%{version}-sources.zip
Patch0:		sfml-2.5.0-fix-linkage.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	doxygen
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(flac)

%description
SFML is a portable and easy to use multimedia API written in C++.

Its features are :
 - portability,
 - object-oriented design,
 - flexibility (a lot of small packages),
 - easy to use,
 - easy to integrate with GUI toolkits.

The library is divided in 5 small packages :
 - audio
 - graphics
 - network
 - system
 - window

#----------------------------------------------------------------------------

%package -n %{libname_a}
Summary:	Dynamic libraries from %{name}-audio
Group:		System/Libraries
Provides:	%{name}-audio = %{EVRD}
Conflicts:	%{_lib}sfml2-audio2.0 < 2.1
Obsoletes:	%{_lib}sfml2-audio2.0 < 2.1

%description -n %{libname_a}
Dynamic libraries from %{name}-audio.

%files -n %{libname_a}
%{_libdir}/libsfml-audio.so.%{major}
%{_libdir}/libsfml-audio.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{libname_g}
Summary:	Dynamic libraries from %{name}-graphics
Group:		System/Libraries
Provides:	%{name}-graphics = %{EVRD}
Conflicts:	%{_lib}sfml2-graphics2.0 < 2.1
Obsoletes:	%{_lib}sfml2-graphics2.0 < 2.1

%description -n %{libname_g}
Dynamic libraries from %{name}-graphics.

%files -n %{libname_g}
%{_libdir}/libsfml-graphics.so.%{major}
%{_libdir}/libsfml-graphics.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{libname_n}
Summary:	Dynamic libraries from %{name}-network
Group:		System/Libraries
Provides:	%{name}-network = %{EVRD}
Conflicts:	%{_lib}sfml2-network2.0 < 2.1
Obsoletes:	%{_lib}sfml2-network2.0 < 2.1

%description -n %{libname_n}
Dynamic libraries from %{name}-network.

%files -n %{libname_n}
%{_libdir}/libsfml-network.so.%{major}
%{_libdir}/libsfml-network.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{libname_s}
Summary:	Dynamic libraries from %{name}-system
Group:		System/Libraries
Provides:	%{name}-system = %{EVRD}
Conflicts:	%{_lib}sfml2-system2.0 < 2.1
Obsoletes:	%{_lib}sfml2-system2.0 < 2.1

%description -n %{libname_s}
Dynamic libraries from %{name}-system.

%files -n %{libname_s}
%{_libdir}/libsfml-system.so.%{major}
%{_libdir}/libsfml-system.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{libname_w}
Summary:	Dynamic libraries from %{name}-window
Group:		System/Libraries
Provides:	%{name}-window = %{EVRD}
Conflicts:	%{_lib}sfml2-window2.0 < 2.1
Obsoletes:	%{_lib}sfml2-window2.0 < 2.1

%description -n %{libname_w}
Dynamic libraries from %{name}-window.

%files -n %{libname_w}
%{_libdir}/libsfml-window.so.%{major}
%{_libdir}/libsfml-window.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header and .so files for %{name}
Group:		Development/C++
Requires:	%{name}-audio = %{EVRD}
Requires:	%{name}-graphics = %{EVRD}
Requires:	%{name}-network = %{EVRD}
Requires:	%{name}-system = %{EVRD}
Requires:	%{name}-window = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	libsfml-audio-devel < %{version}
Conflicts:	libsfml-graphics-devel < %{version}
Conflicts:	libsfml-network-devel < %{version}
Conflicts:	libsfml-system-devel < %{version}
Conflicts:	libsfml-window-devel < %{version}

%description -n %{devname}
Includes files for developing programs based on %{name}.

%files -n %{devname}
%defattr(0644,root,root,0755)
%{_includedir}/SFML
%{_libdir}/libsfml-*.so
%{_libdir}/cmake/SFML/*.cmake
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documenation for %{name}
Group:		Books/Computer books
BuildArch:	noarch

%description doc
Documenation for %{name}.

%files doc
#%%defattr(0644,root,root,0755)
%{_datadir}/SFML/doc/
%{_datadir}/SFML/readme.md
%{_datadir}/SFML/license.md
%{_datadir}/SFML/examples/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
    -DSFML_BUILD_DOC=TRUE \
    -DSFML_INSTALL_PKGCONFIG_FILES=TRUE \
    -G Ninja

%ninja_build

%install
%ninja_install -C build

#copy examples, remove cmake files
cp -fr examples %{buildroot}%{_datadir}/SFML/examples
find %{buildroot}%{_datadir}/SFML/examples -name CMakeLists.txt -exec rm -f {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8732 |21cr|sfxsnapshot-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		sfxsnapshot
Version:	0.4
Release:	2
Group:		File tools
Summary:	Creating SFX snapshots of files and folders
License:	GPLv3
URL:		https://github.com/AKotov-dev/SFXSnapshot
Source0:	https://github.com/AKotov-dev/SFXSnapshot/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	sfxsnapshot
Source2:	sfxsnapshot.png
Source3:	sfxsnapshot.desktop
Source4:	sfxsnapshot-root.desktop
Source5:	sfxsnapshot-root.policy
BuildRequires:	zstd
BuildRequires:	sakura
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	zstd
Requires:	polkit
Requires:	sakura


%description
The program works with the "makeself" script and uses "zstd" compression
makeself: https://github.com/megastep/makeself
---
More information: /usr/share/doc/package_name/repack.txt

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/sfxsnapshot
%{_datadir}/SFXSnapshot
%{_datadir}/pixmaps/sfxsnapshot.png
%{_datadir}/applications/sfxsnapshot.desktop
%{_datadir}/applications/sfxsnapshot-root.desktop
%{_datadir}/polkit-1/actions/sfxsnapshot-root.policy

#---------------------------------------------------------------------
%prep
%setup -n SFXSnapshot-%{version}/SFXSnapshot

# remove prebuild file
rm -f SFXSnapshot

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,SFXSnapshot,applications}
mkdir -p %{buildroot}%{_datadir}/SFXSnapshot/languages
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp SFXSnapshot %{buildroot}%{_datadir}/SFXSnapshot
cp makeself* %{buildroot}%{_datadir}/SFXSnapshot
cp sfx-snapshot.sh %{buildroot}%{_datadir}/SFXSnapshot
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp %{SOURCE4} %{buildroot}%{_datadir}/applications/
cp %{SOURCE5} %{buildroot}%{_datadir}/polkit-1/actions
cp languages/*.mo %{buildroot}%{_datadir}/SFXSnapshot/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8733 |21cr|sgrotum-2.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    sgrotum
%define version 2.0.0
%define release 9

%define section Networking/Mail
%define title   Sgrotum
%define Summary Email/news SiGnature ROTUMbulator

Summary:        %Summary
Name:           %name
Version:        %version
Release:        %release
License:        GPL
Group:          %section
URL:            http://homepages.ihug.co.nz/~trmusson/programs.html
Source0:        %name-%version.tar.bz2
Buildrequires:  glib2-devel

%description
An email/news SiGnature ROTUMbulator. As well as the rotation and
randomization of signatures, it'll optionally insert random
quotations, taking care of length, word-wrap and justification.
Like this:

# Han
-- 
                 __   Men often believe -- or pretend -- that the Law
      .,-;-;-,. /'_\  is something sacred, or at least a science -- an
    _/_/_/_|_\_\) /       unfounded assumption very convenient to
  '-<_><_><_><_>=/\                     governments.
jgs `/_/====/_/-'\_\
     ""     ""    ""


%prep
%setup -q

%build
%configure --enable-glib2
%make


%install
rm -rf %buildroot
%makeinstall


%clean
rm -rf %buildroot


%files
%defattr(0755,root,root,0755)
%_bindir/*
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING README ChangeLog examples
%_mandir/man1/%name.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8734 |21cr|shadowsocks-libev-3.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

%define major 2
%define libname %mklibname shadowsocks %major
%define develname %mklibname shadowsocks -d

Summary:	A lightweight and secure socks5 proxy
Name:		shadowsocks-libev
Version:	3.3.5
Release:	1
License:	GPLv3
Group:		Networking/Other
Url:		https://github.com/shadowsocks/shadowsocks-libev
Source0:	https://github.com/shadowsocks/shadowsocks-libev/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source2:	shadowsocks-libev-redir@.service
Source3:	shadowsocks-libev-server@.service
Source4:	shadowsocks-libev@.service
Source5:	shadowsocks-libev-tunnel@.service
Source100:	31-%{name}.conf
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	gcc
BuildRequires:	mbedtls-devel
BuildRequires:	xmlto-notex
BuildRequires:	udns-devel
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libev)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)
Requires(pre):	rpm-helper

%description
%{name} is a lightweight secured socks5 proxy for embedded devices
and low end boxes.

%files
%{_bindir}/ss-local
%{_bindir}/ss-manager
%{_bindir}/ss-nat
%{_bindir}/ss-redir
%{_bindir}/ss-server
%{_bindir}/ss-tunnel
%{_docdir}/%{name}
%{_mandir}/man8/%{name}.8*
%{_mandir}/man1/ss-local.1*
%{_mandir}/man1/ss-manager.1*
%{_mandir}/man1/ss-nat.1*
%{_mandir}/man1/ss-redir.1*
%{_mandir}/man1/ss-server.1*
%{_mandir}/man1/ss-tunnel.1*
%{_prefix}/lib/sysctl.d/31-%{name}.conf
%attr(0750,root,shadowsocks) %{_sysconfdir}/shadowsocks
%{_unitdir}/%{name}*.service

%pre
%_pre_useradd shadowsocks /var/lib/shadowsocks /bin/false

#------------------------------------------------------------------

%package -n %{libname}
Summary:	A lightweight and secure socks5 proxy
Group:		System/Libraries

%description -n %{libname}
%{name} is a lightweight secured socks5 proxy for embedded devices
and low end boxes.

%files -n %{libname}
%doc COPYING README.md
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{develname}
Summary:	Development headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}

%description -n %{develname}
This package provides development headers for %{name}.

%files -n %{develname}
%{_includedir}/shadowsocks.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%configure --enable-shared
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}
find %{buildroot} -name '*.la' -delete
mkdir -p "%{buildroot}/%{_unitdir}"
mkdir -p "%{buildroot}/%{_sysconfdir}/shadowsocks"
install -Dm644 "%{SOURCE2}" "%{buildroot}/%{_unitdir}/"
install -Dm644 "%{SOURCE3}" "%{buildroot}/%{_unitdir}/"
install -Dm644 "%{SOURCE4}" "%{buildroot}/%{_unitdir}/"
install -Dm644 "%{SOURCE5}" "%{buildroot}/%{_unitdir}/"
install -D -p -m 0644 "%{SOURCE100}" %{buildroot}%{_prefix}/lib/sysctl.d/31-%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8735 |21cr|shake-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	User-space file-system defragmenter
Name:		shake
Version:	1.0
Release:	3
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		http://vleu.net/shake/
Source0:	https://github.com/unbrice/shake/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	help2man
BuildRequires:	attr-devel

%description
Shake is a defragmenter that runs in user space and works on a live system.
It just works by rewriting fragmented files. But it has some heuristics that
could make it more efficient than other tools, including defrag and, maybe,
xfs_fsr.

%files
%doc COPYING GPL.txt
%{_bindir}/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q
chmod 0644 COPYING GPL.txt

%build
%cmake
%make
#debug fix
cd ..
chmod 644 {linux,judge,signals,executive,msg,unattr,main}.c
chmod 644 {signals,executive,msg,judge}.h

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8736 |21cr|shared-color-targets-0.1.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

Summary:	Shared color targets for creating color profiles
Name:		shared-color-targets
Version:	0.1.7
Release:	3
License:	GPLv2+ and Public Domain and CC-BY-SA
Group:		System/Libraries
URL:		http://github.com/hughsie/shared-color-targets
Source0:	http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
BuildArchitectures: noarch

%description 
The shared-color-targets package contains various targets which are useful for
programs that create ICC profiles.
This package only contains the free targets that can be safely distributed
with Fedora.

%prep
%setup -q

%build
%configure

%install
%makeinstall_std

%files
%doc AUTHORS COPYING
%dir %{_datadir}/color/targets
%{_datadir}/color/targets/*.it8
%dir %{_datadir}/shared-color-targets

# Wolf Faust
%dir %{_datadir}/shared-color-targets/wolf_faust
%{_datadir}/shared-color-targets/wolf_faust/*
%dir %{_datadir}/color/targets/wolf_faust
%dir %{_datadir}/color/targets/wolf_faust/reflective
%{_datadir}/color/targets/wolf_faust/reflective/*.it8
%dir %{_datadir}/color/targets/wolf_faust/transmissive
%{_datadir}/color/targets/wolf_faust/transmissive/*.it8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8737 |21cr|shared-desktop-ontologies-0.11.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Semantic web to the desktop in terms of vocabulary
Name:		shared-desktop-ontologies
Version:	0.11.0
Release:	8
License:	BSD
Group:		System/Base
Url:		http://sourceforge.net/projects/oscaf/
Source0:	http://sourceforge.net/projects/oscaf/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	kde4-macros
BuildArch:	noarch

%description
Open Semantic Collaboration Architecture Foundation (OSCAF) ontologies and
reference code development. This project is used maintainers from open source
projects to maintain standards for the interoperability of desktop and web
applications.

The shared-desktop-ontologies package brings the semantic web to the desktop
in terms of vocabulary. It contains the well known core ontologies such as RDF
and RDFS as well as the Nepomuk ontologies which are used by projects like KDE
or Strigi.

%files
%{_kde_datadir}/ontology

#--------------------------------------------------------------------

%package devel
Summary:	Devel stuff for %{name}
Group:		Development/KDE and Qt
Requires:	%{name}

%description devel
This package contains header files needed if you wish to build applications
based on %{name}.

%files devel
%{_kde_datadir}/pkgconfig/shared-desktop-ontologies.pc
%{_kde_datadir}/cmake/SharedDesktopOntologies

#--------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8738 |21cr|shc-4.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generic shell script compiler
Name:		shc
Version:	4.0.2
Release:	3
License:	GPLv3
Group:		Development/Other
Url:		https://neurobin.github.io/shc/
Source0:	https://github.com/neurobin/shc/archive/%{version}/%{name}-%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	gcc
Requires:	gcc
Requires:	glibc-devel

%description
A generic shell script compiler. Shc takes a script, which is
specified on the command line and produces C source code. The
generated source code is then compiled and linked to produce a
stripped binary executable. Use with care.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.xz

%prep
%setup -q

%build
%configure2_5x
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8739 |21cr|shedskin-0.9.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An experimental python to c++ compiler
Name:		shedskin
Version:	0.9.4
Release:	5
License:	GPLv3
Group:		Development/Python
Url:		http://code.google.com/p/shedskin/
Source0:	https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/shedskin/shedskin-%{version}.tgz
BuildRequires:	pkgconfig(python2)
Requires:	pkgconfig(bdw-gc)
BuildArch:	noarch

%description
Shed Skin is an experimental compiler, that can translate pure, but implicitly
statically typed Python (2.4-2.7) programs into optimized C++. It can generate
stand-alone programs or extension modules that can be imported and used in
larger Python programs.

%files
%{_bindir}/%{name}
%{py2_puresitedir}/%{name}/
%{py2_puresitedir}/%{name}-%{version}-py%{py2_ver}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py2_build

%install
%py2_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8740 |21cr|shelldap-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		shelldap
Version:	1.4.0
Release:	1
Summary:	LDAP shell
License:	BSD
Group:		Networking/Other
URL:		https://bitbucket.org/mahlon/shelldap/
Source:		https://bitbucket.org/mahlon/shelldap/downloads/%{name}-%{version}.tar.gz
BuildArch:	noarch
Requires:	perl-Term-ReadLine-Gnu

%description
A handy shell-like interface for browsing LDAP servers and editing their
content. It keeps command history, has sane autocompletes, credential caching,
site-wide and individual configs, and it's fun to say. Shelldap! Shelldap!
Shelldap!

%prep
%setup -q
perl -MConfig -i -pe 's{^#!/usr/bin/env perl}{$Config{startperl}}' %{name}

%build
pod2man shelldap shelldap.1
perl -n -e 'if(m/^#/){print if($. > 4)}else{exit 0}' shelldap > LICENSE.txt

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 755 shelldap %{buildroot}%{_bindir}
install -m 644 shelldap.1 %{buildroot}%{_mandir}/man1

%files
%doc README.md CHANGELOG CONTRIBUTORS USAGE
%{_bindir}/shelldap
%{_mandir}/man1/shelldap.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8741 |21cr|shflags-1.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       shflags
Version:    1.0.3
Release:    3
Summary:    Simple handling of command-line flags in Bourne based Unix scripts
Group:      Development/Other
License:    LGPLv2
URL:        http://code.google.com/p/shflags/
Source0:    http://shflags.googlecode.com/files/shflags-1.0.3.tgz
BuildArch:  noarch

Requires:   config(util-linux)

%description
Shell Flags (shFlags) is a library written to greatly
simplify the handling of command-line flags in 
Bourne based Unix shell scripts (bash, dash, ksh, sh, zsh)
on many Unix OSes (Linux, Solaris, Mac OS X, etc.).

Most shell scripts use getopt for flags processing,
but the different versions of getopt on various OSes
make writing portable shell scripts difficult. shFlags
instead provides an API that doesn't change across shell
and OS versions so the script writer can be confident 
that the script will work.

shFlags is a port of the google-gflags C++/Python library.

%prep
%setup -q
chmod -x examples/*.sh

%build

%check
pushd src
sh shflags_test_defines.sh
sh shflags_test_parsing.sh
sh shflags_test_public.sh
sh shflags_test_private.sh
sh shflags_test.sh
popd

%install
mkdir -p %{buildroot}/%{_datadir}/%{name}
cp -p src/shflags %{buildroot}/%{_datadir}/%{name}/.

%files
%doc README.txt README.html doc/ examples/
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8742 |21cr|shfs-utils-0.35-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	shfs

Summary:	Tools for (Secure) SHell File System module
Name:		shfs-utils
Version:	0.35
Release:	9
License:	GPL
Group:		System/Kernel and hardware
Url:		http://shfs.sourceforge.net/
Source0:	http://atrey.karlin.mff.cuni.cz/~qiq/src/shfs/%{module}-%{version}.tar.bz2

%description
Mount shares from remote hosts using plain ssh/rsh connection.i
This package contains mount/umount utility for shfs kernel module.
   
%prep
%setup -q -n %{module}-%{version}

%build
%make CFLAGS="%{optflags} -iquote -I. -I../shfs/Linux-2.4/ -DSHFS_VERSION=\"%{version}\"" utils
make docs-install ROOT=. HTML_DOC_DIR=doc docs-install

%install
rm -rf %{buildroot}
make ROOT=%{buildroot} HTML_DOC_DIR=/doc MAN_PAGE_DIR=%{_mandir} utils-install docs-install
rm -rf doc
mv %{buildroot}/doc .

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc TODO Changelog doc/*
%defattr(-,root,root)
%{_bindir}/shfsmount 
%{_bindir}/shfsumount 
/sbin/mount.shfs
%{_mandir}/man8/shfsmount.8*
%{_mandir}/man8/shfsumount.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8743 |21cr|shhopt-1.1.7-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Library for parsing command line options
Name:		shhopt
Version:	1.1.7
Release:	11
License:	Artistic
Group:		System/Libraries
Url:		http://shh.thathost.com/pub-unix/
Source0:	http://shh.thathost.com/pub-unix/files/%{name}-%{version}.tar.gz

%description
C-functions for parsing command line options, both traditional
one-character options, and GNU'ish --long-options.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for parsing command line options
Group:		System/Libraries

%description -n %{libname}
C-functions for parsing command line options, both traditional
one-character options, and GNU'ish --long-options.

%files -n %{libname}
%doc CREDITS ChangeLog README TODO
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library and header files for the %{name} library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{_lib}shhopt1-devel < 1.1.7-8
Conflicts:	%{_lib}shhopt1-devel < 1.1.7-8

%description -n %{devname}
C-functions for parsing command line options, both traditional
one-character options, and GNU'ish --long-options.

%files -n %{devname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/*.so
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# make the shared library
%make_build SHARED="1" OPTIM="%{optflags} -D_REENTRANT -fPIC"

# make the static library
%make_build OPTIM="%{optflags} -D_REENTRANT -fPIC"

%install
# install the shared library
%make_install \
    SHARED="1" \
    INSTBASEDIR="%{buildroot}%{_prefix}" \
    INSTLIBDIR="%{buildroot}%{_libdir}"

# install the static library
%make_install \
    INSTBASEDIR="%{buildroot}%{_prefix}" \
    INSTLIBDIR="%{buildroot}%{_libdir}"

# fix a file conflict with netpbm-devel
install -d %{buildroot}%{_includedir}/%{name}
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8744 |21cr|shivavg-0.2.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname OpenVG %{major}
%define devname %mklibname OpenVG -d

%define _disable_ld_as_needed 1

Summary:	An implementation of the OpenVG vector graphics API
Name:		shivavg
Version:	0.2.1
Release:	10
License:	LGPLv2.1
Group:		System/Libraries
Url:		http://shivavg.sf.net/
Source0:	http://garr.dl.sourceforge.net/project/shivavg/ShivaVG/%{version}/ShivaVG-%{version}.zip
Patch0:		ShivaVG-0.2.1-compile.patch
Patch1:		ShivaVG-0.2.1-GL-linkage.patch
Patch2:		ShivaVG-0.2.1-optflags.patch
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)

%description
An implementation of the OpenVG vector graphics API on top of OpenGL.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An implementation of the OpenVG vector graphics API
Group:		System/Libraries

%description -n %{libname}
An implementation of the OpenVG vector graphics API on top of OpenGL.

%files -n %{libname}
%{_libdir}/libOpenVG.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# ShivaVG 0.2.1 implements the OpenVG standard 1.0, so...
Provides:	openvg-devel = 1.0

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/vg
%{_includedir}/VG
%{_libdir}/libOpenVG.so

#--------------------------------------------------------------------------

%prep
%setup -qn ShivaVG-%{version}
%autopatch -p1

%build
chmod +x autogen.sh ; ./autogen.sh
%configure \
	--disable-static
%make

%install
%makeinstall_std

# Since there seems to be some disagreement about
# %{_includedir}/vg vs. %{_includedir}/VG in the standard,
# let's support both...
ln -s vg %{buildroot}%{_includedir}/VG

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8745 |21cr|shmux-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		shmux
Version: 	1.0.2
Release: 	5
Summary: 	Program for executing the same command on many hosts in parallel
License: 	GPL
Group:		Networking/Remote access
Url: 		http://web.taranis.org/shmux/
Source0: 	%{name}-%{version}.tgz
BuildRequires:  pcre-devel
BuildRequires:  ncurses-devel


%description
Shmux is program for executing the same command on many hosts in parallel.
For each target, a child process is spawned by shmux, and a shell on the 
target obtained one of the supported methods: rsh, ssh, or sh. The output 
produced by the children is received by shmux and either (optionally) output 
in turn to the user using an easy to read format, or written to files for
later processing making it well suited for use in scripts.

%prep 
%setup -q -n %name-%{version}

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT

%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc tests/* CHANGES INSTALL LICENSE
%attr(755,root,root) %{_bindir}/*
%{_mandir}/man1/%name.1*
%_datadir/%name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8746 |21cr|shntool-3.0.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A multi-purpose WAVE data processing and reporting utility
Name:		shntool
Version:	3.0.10
Release:	6
# URL dead (02/2022)
Url:		http://etree.org/shnutils/shntool
Source0:	%{name}-%{version}.tar.gz
Group:		Sound
License:	GPLv2
Recommends:	alac_decoder
Recommends:	bonk
Recommends:	cuetools
Recommends:	flac
Recommends:	kexis
Recommends:	mac
Recommends:	mp4als
Recommends:	shorten
Recommends:	sox
Recommends:	ttaenc
Recommends:	wavpack

%description
A multi-purpose WAVE data processing and reporting utility. File formats are
abstracted from its core, so it can process any file that contains WAVE data,
compressed or not - provided there exists a format module to handle that
particular file type. 

%files
%doc AUTHORS ChangeLog COPYING NEWS README
%doc doc/*
%{_bindir}/shn*
%{_mandir}/man1/*.1.*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8747 |21cr|shotwell-0.31.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define _disable_ld_no_undefined 1
%define Werror_cflags %nil

%define api 1.0
%define major 0
%define libshotwellplugin %mklibname shotwell-plugin-common %{major}
%define libshotwellplugindev %mklibname shotwell-plugin-dev %{api} %{major}
%define libshotwellauthenticator %mklibname shotwell-authenticator %{major}

Summary:	A photo organizer designed for GNOME
Name:		shotwell
Version:	0.31.4
Release:	1
License:	LGPLv2+ and CC-BY-SA
Group:		Graphics
Url:		https://download.gnome.org/sources/shotwell
Source0:	https://download.gnome.org/sources/shotwell/%{url_ver}/%{name}-%{version}.tar.xz
# Localized desktop files - generated using upstream Makefile with several hacks in ru.po
# and Makefile itself.
# Drop them once generation of localized desktop files is fixed upstream
# (https://bugzilla.gnome.org/show_bug.cgi?id=740873)
Source2:	shotwell.desktop
Source3:	shotwell-viewer.desktop
Source4:	shotwell_ru.tar.gz
BuildRequires:	locales-en
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gexiv2)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(opencv4)
BuildRequires:	pkgconfig(rest-0.7)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
Provides:	f-spot = %{EVRD}
# Required to send items by email
Requires:	nautilus-sendto

%description
Shotwell is a digital photo organizer designed for the GNOME desktop
environment. It allows you to import photos from disk or camera,
organize them in various ways, view them in full-window or fullscreen
mode, and export them to share with others.

%files -f %{name}.lang
%doc AUTHORS COPYING README.md NEWS THANKS
%{_appdatadir}/org.gnome.Shotwell.appdata.xml
%{_bindir}/*
%{_datadir}/applications/%{name}*.desktop
%{_datadir}/applications/org.gnome.Shotwell*.desktop
%{_datadir}/apport/package-hooks/*
%{_datadir}/dbus-1/services/org.gnome.Shotwell.Faces1.service
%{_datadir}/glib-2.0/schemas/org.gnome.shotwell*.gschema.xml
%{_datadir}/%{name}/facedetect-haarcascade.xml
%{_iconsdir}/hicolor/*/apps/org.gnome.Shotwell*.png
%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Shotwell-symbolic.svg
%{_libdir}/%{name}
%{_libexecdir}/%{name}/%{name}-*
%{_mandir}/man1/shotwell.1*

#----------------------------------------------------------------------------

%package -n %{libshotwellplugin}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libshotwellplugin}
Shared library for %{name}.

%files -n %{libshotwellplugin}
%doc COPYING
%{_libdir}/libshotwell-plugin-common.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libshotwellplugindev}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libshotwellplugindev}
Shared library for %{name}.

%files -n %{libshotwellplugindev}
%doc COPYING
%{_libdir}/libshotwell-plugin-dev-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libshotwellauthenticator}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libshotwellauthenticator}
Shared library for %{name}.

%files -n %{libshotwellauthenticator}
%doc COPYING
%{_libdir}/libshotwell-authenticator.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd po
tar -xvzf %{SOURCE4}
popd

%build
%meson -Dface_detection=true
%meson_build

%install
# otherwise gettext always returns English text regardless of LANGUAGE asked
export LANG=en_US.utf8
%meson_install

# Drop development library unless headers are provided
rm -f %{buildroot}%{_libdir}/libshotwell-plugin-common.so
rm -f %{buildroot}%{_libdir}/libshotwell-plugin-dev-%{api}.so
rm -f %{buildroot}%{_libdir}/libshotwell-authenticator.so

# https://bugzilla.gnome.org/show_bug.cgi?id=740873
cp -f %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
cp -f %{SOURCE3} %{buildroot}%{_datadir}/applications/%{name}-viewer.desktop

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8748 |21cr|shtool-2.0.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		shtool
Version:	2.0.8
Release:	10
Summary:	Portable shell tool
Group:		Shells
License:	GPLv2+
URL:		http://www.gnu.org/software/shtool/
Source0:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
GNU shtool is a compilation of small but very stable and portable
shell scripts into a single shell tool. All ingredients were in
successful use over many years in various free software projects.
The compiled shtool program is intended to be used inside the source
tree of other free software packages. There it can overtake various
(usually non-portable) tasks related to the building and installation
of such a package. It especially can replace the old mkdir.sh,
install.sh and related scripts. 

%prep
%setup -q

%build
%configure
%make

%check
make check

%install
%makeinstall_std

%files
%doc AUTHORS ChangeLog NEWS RATIONAL README THANKS VERSION
%{_mandir}/man*/%{name}*.*
%{_bindir}/%{name}
%{_bindir}/%{name}ize
%{_datadir}/%{name}/
%{_datadir}/aclocal/%{name}.m4

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8749 |21cr|siefs-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	SieFS - virtual filesystem for Siemens mobile phones' memory
Name:		siefs
Version:	0.5
Release:	3
License:	GPL, partially free (see COPYRIGHT.vmo2wav)
Group:		System/Base
Url:		http://chaos.allsiemens.com/siefs/
Source0:	http://chaos.allsiemens.com/download/%{name}-%{version}.tar.gz
Patch0:		siefs-0.5-qa-fixes.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	pkgconfig(fuse) >= 2.2
BuildRequires:	pkgconfig

%description
This is SieFS - a virtual filesystem for accessing Siemens mobile
phones' memory via datacable. Now you can mount your phone to a Linux
box and browse it like a simple directory! The program was tested on
S45/ME45/SL45/S55/M55/MC60, but should work also on C55/M50/MT50/SL55/C60.

%files
%doc AUTHORS README* ChangeLog COPYRIGHT.vmo2wav
%attr(755,root,root) %{_bindir}/*
/sbin/mount.siefs

#------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fiv
CFLAGS="$(pkg-config --cflags fuse) -DFUSE_USE_VERSION=22"
LDFLAGS="$(pkg-config --libs fuse)"
%configure \
	--with-fuse=%{_prefix}
%make

%install
%makeinstall_std

cp converter/README README.vmo2wav
cp converter/COPYRIGHT COPYRIGHT.vmo2wav

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8750 |21cr|siege-2.72-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	HTTP regression testing and benchmarking utility
Name:		siege
Version:	2.72
Release:	4
License:	GPLv2+
Group:		System/Servers
URL:		http://www.joedog.org/JoeDog/Siege/
Source0:	ftp://ftp.joedog.org/pub/siege/%{name}-%{version}.tar.gz
Patch0:		siege-2.70-makefile.patch
Patch1:		siege-2.72-mdv-format-security.patch
BuildRequires:	openssl-devel

%description
Siege is an HTTP regression testing and benchmarking utility.
It was designed to let web developers measure the performance of their code
under duress, to see how it will stand up to load on the Internet.
Siege supports basic authentication, cookies, HTTP and HTTPS protocols.
It allows the user hit a web server with a configurable number of concurrent
simulated users. Those users place the webserver "under siege."

%prep
%setup -q
%patch0 -p1 -b .good
%patch1 -p1 -b .format

%build
%configure
%make

%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}
install -m0644 doc/urls.txt %{buildroot}%{_sysconfdir}/urls.txt

%files
%defattr(-,root,root,0755)
%doc AUTHORS ChangeLog COPYING KNOWNBUGS MACHINES NEWS PLATFORM README*
%config(noreplace) %{_sysconfdir}/urls.txt
%config(noreplace) %{_sysconfdir}/siegerc
%{_bindir}/bombardment
%{_bindir}/siege
%{_bindir}/siege.config
%{_bindir}/siege2csv.pl
%{_mandir}/man1/bombardment.1*
%{_mandir}/man1/siege.1*
%{_mandir}/man1/siege.config*
%{_mandir}/man1/siege2csv.1*
%{_mandir}/man5/urls_txt.5*
%{_mandir}/man7/layingsiege.7*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8751 |21cr|sienna-1.0c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sienna
Version:        1.0c
Release:        1
Summary:        Simple, albeit frustrating, one-button platformer
Group:          Games/Arcade
License:        zlib
Url:            http://tangramgames.dk/games/sienna/
Source0:        https://github.com/SimonLarsen/sienna/archive/%{name}-%{version}.tar.gz
Source1:        http://tangramgames.dk/img/thumb/sienna.png
BuildRequires:  imagemagick
BuildRequires:  zip

Requires:       love >= 0.10
BuildArch:      noarch

%description
Sienna is a simple, albeit frustrating, 
one-button platformer.
The game started as a solo project by 
Simon but features some artwork by Lukas. 
Sienna was never properly finished but 
is still pretty fun if you like a challenge.



%files
%doc *.md *.txt
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
# data
zip -9 -r %{name}.love .
install -D -m644 %{name}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love

# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
love %{_gamesdatadir}/%{name}/%{name}.love
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Sienna
GenericName=%{summary}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size %{SOURCE1} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8752 |21cr|sieve-connect-0.90-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A client for the ManageSieve protocol
Name:		sieve-connect
Version:	0.90
Release:	1
License:	BSD
Group:		Networking/Mail
URL:		http://people.spodhuis.org/phil.pennock/software/
Source0:	http://people.spodhuis.org/phil.pennock/software/%{name}-%{version}.tar.bz2
BuildArch:	noarch
Requires:	perl
Requires:	perl-Authen-SASL
Requires:	perl-IO-Socket-INET6
Requires:	perl-IO-Socket-SSL
Requires:	perl-Net-DNS
Requires:	perl-Term-ReadKey
Recommends:	perl-Pod-Simple
Recommends:	perl-Term-ReadLine-Gnu

%description
This is sieve-connect.  A client for the ManageSieve protocol, as
specified in RFC 5804.  Historically, this was MANAGESIEVE as implemented
by timsieved in Cyrus IMAP.

sieve-connect speaks ManageSieve and supports TLS for connection privacy
and also authentication if using client certificates.  sieve-connect
will use SASL authentication; SASL integrity layers are not supported,
use TLS instead.  GSSAPI-based authentication should generally work,
provided that client and server can use a common underlaying protocol.
If it doesn't work for you, please report the issue.

sieve-connect is designed to be both a tool which can be invoked from
scripts and also a decent interactive client.  It should also be a
drop-in replacement for "sieveshell", as supplied with Cyrus IMAP.

%prep
%setup -q

%build

%install
install -d -m 755 %{buildroot}%{_bindir}/
install -d -m 755 %{buildroot}%{_mandir}/man1/
make INSTALLROOT=%{buildroot} PREFIX=%{_prefix} MANDIR=/share/man install

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8753 |21cr|sigil-1.9.20-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Sigil

Summary:	A free, open source WYSIWYG ebook editor
Name:		sigil
Version:	1.9.20
Release:	2
# from Anssi: this makes it use system libs instead of bundled ones. Except for
# libtidy which has some local hacks not present in system-provided libtidy.
# code is GPlv3 and content is CC BY-SA
License:	GPLv3 and Creative Commons Attribution-ShareAlike
Group:		Office
Url:		http://sigil-ebook.com/
Source0:	https://github.com/Sigil-Ebook/Sigil/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	ru_RU.aff
Source2:	ru_RU.dic
# Fix segfault (don't set QTLIB_DIR)
Patch0:		Sigil-0.9.18-libdir.patch
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	qt5-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	pkgconfig(zlib)
# For the plugins
Requires:	python3-chardet
#Requires:	python3-cssselect
#Requires:	python3-cssutils
Requires:	python3-html5lib
Requires:	python3-lxml
Requires:	python3-pillow
#Requires:	python3-regex
Requires:	python3-six

%description
Sigil is a free, open source WYSIWYG e-book editor.
It is designed to edit books in ePub format.

%files
%doc ChangeLog.txt COPYING.txt README.md
%{_bindir}/%{name}
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%dir %{_libdir}/%{name}/
%{_libdir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
# there are only internal helper libs, and they need to be static as build
# fails otherwise (they contain undefined symbols), and making them shared
# libs wouldn't make sense anyway (they are not shared by anything else)
# - Anssi 06/2010
%cmake_qt5 \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_STATIC_LIBS:BOOL=ON \
	-DUSE_SYSTEM_LIBS:BOOL=ON
%make

%install
%makeinstall_std -C build

# install icons for the .desktop file
install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_256.png %{buildroot}%{_iconsdir}/hicolor/256x256/apps/sigil.png
install -m644 -D src/Resource_Files/icon/app_icons_orig/app_icon_scalable.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/sigil.svg

# install additional dictionaries
install -m644 -D %{SOURCE1} %{SOURCE2} %{buildroot}%{_datadir}/%{name}/hunspell_dictionaries/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8754 |21cr|signalwire-client-c-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This version of signalwire-client-c needed for Freeswitch, not delete this project from repo

%global major 1
%define libname %mklibname signalwire-client %{major}
%define devname %mklibname signalwire-client -d

Name:		signalwire-client-c
Version:	1.3.0
Release:	1
Summary:	Foundational support for signalwire C products
Group:		System/Libraries
License:	GPL
URL:		https://github.com/signalwire/libks
Source0:	https://github.com/signalwire/signalwire-c/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		signalwire-client-c-install.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(libks)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(openssl)

%description
Foundational support for signalwire C products

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Foundational support for signalwire C products 
Group:		System/Libraries

%description -n %{libname}
Foundational support for signalwire C products.

%files -n %{libname}
%{_libdir}/libsignalwire_client.so.%{major}*

#---------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	signalwire-client-c-devel = %{EVRD}

%description devel
Development libraries and headers for libks.

%files devel
%doc %{_docdir}/%{name}/copyright
%{_includedir}/signalwire-client-c
%{_libdir}/pkgconfig/signalwire_client.pc
%{_libdir}/libsignalwire_client.so

#---------------------------------------------------------------

%prep
%autosetup -p1 -n signalwire-c-%{version}

# see patch0, in patch0 we force use lib64 install path, now set it to right {_lib} location
sed -i 's:DESTINATION lib64:DESTINATION %{_lib}:' CMakeLists.txt

%build
%cmake \
	-G Ninja
%ninja_build

%install
cp copyright build

%ninja_install -C build

# fix libdir path in .pc file
sed -i 's:{prefix}/lib:{prefix}/%{_lib}:' %{buildroot}%{_libdir}/pkgconfig/signalwire_client.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8755 |21cr|sim4-20121010-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define split_version	2012-10-10

Summary:	Program to align cDNA and genomic DNA
Name:		sim4
Version:	20121010
Release:	3
License:	GPL
Group:		Sciences/Biology
URL:		http://globin.cse.psu.edu/html/docs/sim4.html
Source:		http://globin.cse.psu.edu/ftp/dist/sim4/%{name}.%{split_version}.tar.gz

%description
sim4 is a similarity-based tool for aligning an expressed DNA sequence
(EST, cDNA, mRNA) with a genomic sequence for the gene.
It also detects end matches when the two input sequences overlap at one end
(i.e., the start of one sequence overlaps the end of the other)

Reference for Sim4:
L. Florea, G. Hartzell, Z. Zhang, G. Rubin, and W. Miller (1998)
"A computer program for aligning a cDNA sequence with a genomic DNA sequence."
Genome Research 8, 967-974.

%prep
%setup -qn %{name}.%{split_version}

%build
%make CFLAGS="%{optflags}"

%install
install -m 755 %{name} -D %{buildroot}%{_bindir}/%{name}

%clean

%files
%doc COPYRIGHT README.sim4
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8756 |21cr|simage-1.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 20
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A support library for importing textures and sound files in various fileformats
Name:		simage
Version:	1.8.3
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://www.coin3d.org/
Source0:	https://github.com/coin3d/simage/releases/download/v%{version}/simage-%{version}-src.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	giflib-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)


%description
simage is a support library for importing textures and sound files in
various fileformats.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for simage
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with simage.

%files -n %{libname}
%{_libdir}/libsimage.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use simage
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use simage.

%files -n %{devname}
%doc README AUTHORS NEWS COPYING
%{_bindir}/*
%{_libdir}/libsimage.so
%{_libdir}/pkgconfig/simage.pc
%{_libdir}/cmake/simage-%{version}/*.cmake
%{_includedir}/*
%{_datadir}/Coin/conf/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8757 |21cr|simgear-2020.3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Basic tools for Simulation
Name:		simgear
Version:	2020.3.14
Release:	1
License:	LGPLv2+ and GPLv2+
Group:		System/Libraries
Url:		https://www.flightgear.org
Source:		https://downloads.sourceforge.net/project/flightgear/release-2020.3/simgear-%{version}.tar.bz2
Patch0:		simgear-gdal.patch
Patch1:		simgear-link.patch
BuildRequires:	cmake >= 3.0
BuildRequires:	boost-devel
BuildRequires:	plib-devel
BuildRequires:	subversion-devel
BuildRequires:	udns-devel
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gdal) >= 2.0.0
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openscenegraph) >= 3.2.0
BuildRequires:	pkgconfig(zlib) >= 1.2.4

%description
All the basic routines required for the flight simulator as well as for
building scenery. Needed for FlightGear, for example.

#----------------------------------------------------------------------------

%define libSimGearCore %mklibname SimGearCore %{version}

%package -n %{libSimGearCore}
Summary:	Shared library for SimGear
Group:		System/Libraries

%description -n %{libSimGearCore}
Shared library for SimGear.

%files -n %{libSimGearCore}
%doc COPYING
%{_libdir}/libSimGearCore.so.%{version}

#----------------------------------------------------------------------------

%define libSimGearScene %mklibname SimGearScene %{version}

%package -n %{libSimGearScene}
Summary:	Shared library for SimGear
Group:		System/Libraries

%description -n %{libSimGearScene}
Shared library for SimGear.

%files -n %{libSimGearScene}
%doc COPYING
%{_libdir}/libSimGearScene.so.%{version}

#----------------------------------------------------------------------------

%package devel
Summary:	Headers/misc for developing programs that will use SimGear
Group:		Development/C++
Requires:	%{libSimGearCore} = %{EVRD}
Requires:	%{libSimGearScene} = %{EVRD}
Conflicts:	%{_lib}SimGearCore3.0.0 < 3.2.0
Conflicts:	%{_lib}SimGearCore3.2.0 < 3.2.0-2

%description devel
This package contains the headers that programmers will need to develop
applications which will use SimGear, for example FlightGear.

%files devel
%doc AUTHORS COPYING README NEWS
%{_includedir}/%{name}/
%{_libdir}/libSimGearCore.so
%{_libdir}/libSimGearScene.so
%{_libdir}/cmake/SimGear

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

# Fix perms
find . -name "*.c" -o -name "*.h" | xargs chmod -x


%build
%cmake -DCMAKE_BUILD_TYPE=Release \
		-DSIMGEAR_SHARED:BOOL=ON \
		-DSYSTEM_EXPAT:BOOL=ON \
		-DSYSTEM_UDNS:BOOL=ON \
		-DENABLE_TESTS:BOOL=OFF \
		-DENABLE_OPENMP=ON \
		-DENABLE_GDAL=ON

%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8758 |21cr|simh-3.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
# Based on spec from Fedora

Summary:	A highly portable, multi-system emulator
Name:		simh
Version:	3.8.1
Release:	5
License:	MIT and GPLv1+
Group:		Emulators
Url:		http://simh.trailing-edge.com/
Source0:	simh-%{version}-noroms.tar.gz
# we use this to remove the roms binary and patented code before shipping it.
# Download the upstream tarball and invoke this script while in the
# tarball's directory: ./simh-generate-tarball.sh 3.8.1
Source1:	simh-generate-tarball.sh
Patch0:		simh-3.8.1-makefile.patch
Patch1:		simh-3.8.1-altair-segfault.patch
Patch2:		simh-3.8.1-fmt.patch
BuildRequires:	dos2unix
BuildRequires:	pcap-devel

%description
SIMH is a historical computer simulation system. It consists of simulators
for many different computers, all written around a common user
interface package and set of supporting libraries.
SIMH can be used to simulate any computer system for which sufficient detail
is available, but the focus to date has been on simulating computer systems
of historic interest.

SIMH implements simulators for:

* Data General Nova, Eclipse
* Digital Equipment Corporation PDP-1, PDP-4, PDP-7, PDP-8, PDP-9, PDP-10,
  PDP-11, PDP-15, VAX
* GRI Corporation GRI-909, GRI-99
* IBM 1401, 1620, 7090/7094, System 3
* Interdata (Perkin-Elmer) 16b and 32b systems
* Hewlett-Packard 2114, 2115, 2116, 2100, 21MX, 1000
* Honeywell H316/H516
* MITS Altair 8800, with both 8080 and Z80
* Royal-Mcbee LGP-30, LGP-21
* Scientific Data Systems SDS 940

%files
%doc ALTAIR/altair.txt NOVA/eclipse.txt 0readme_38.txt 0readme_ethernet.txt
%doc HP2100/hp2100_diag.txt I7094/i7094_bug_history.txt Interdata/id_diag.txt
%doc PDP1/pdp1_diag.txt PDP10/pdp10_bug_history.txt PDP18B/pdp18b_diag.txt
%doc S3/haltguide.txt S3/readme_s3.txt S3/system3.txt SDS/sds_diag.txt
%doc VAX/vax780_bug_history.txt
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
dos2unix makefile
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
mkdir -p BIN
export CFLAGS="%{optflags}"
%make USE_NETWORK=1


%install
mkdir -p %{buildroot}%{_bindir}
for i in `ls BIN/`; do
	install -p -m 755 BIN/$i %{buildroot}%{_bindir}/simh-$i
done
for i in `find -iname "*.txt"`; do dos2unix -k $i; done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8759 |21cr|simpleburn-1.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Basic burning tool for CDs and DVDs
Name:		simpleburn
Version:	1.8.4
Release:	1
Group:		Archiving/Cd burning
License:	CeCILL
Url:		http://simpleburn.tuxfamily.org/
Source0:	http://simpleburn.tuxfamily.org/IMG/gz/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcddb)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(dvdread)
Requires:	cdrkit
Requires:	vorbis-tools
Requires:	mpg123
Requires:	normalize

%description
SimpleBurn is a basic burning application for CDs and DVDs.

%files -f %{name}.lang
%doc doc/*
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}*
%{_iconsdir}/hicolor/*/apps/simpleburn.png
%{_libdir}/lib*.so

#---------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="$CFLAGS -lm"
export LDFLAGS="$LDFLAGS -lm -lglib-2.0 -lgobject-2.0 -lgtk-3"
%cmake \
	-DDETECTION=UDEV \
	-DBURNING=CDRTOOLS

%make -s

%install
%makeinstall_std -C build
rm -rf %{buildroot}/usr/doc/

mkdir -p %{buildroot}%{_libdir}/%{name}
install -m755 build/src/lib*.so %{buildroot}%{_libdir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8760 |21cr|simple-fb2-reader-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple tool to read FB2 books
Name:		simple-fb2-reader
Version:	1.1.3
Release:	1
License:	GPLv3
Group:		Books/Literature
Url:		https://github.com/Cactus64k/simple-fb2-reader
Source0:	https://github.com/Cactus64k/simple-fb2-reader/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libzip)

%description
Simple tool to read FB2 books. Developed using GTK+3.

%files -f %{name}.lang
%doc README
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_iconsdir}/hicolor/scalable/mimetypes/application-x-*.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8761 |21cr|simplesok-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           simplesok
Version:        1.0.6
Release:        1
Summary:        Colorful Sokoban game aimed at playability
Group:          Games/Puzzles
License:        MIT
URL:            http://simplesok.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/simplesok/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(sdl2) >= 2.0.1
BuildRequires:  pkgconfig(SDL2_image)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  hicolor-icon-theme
BuildRequires:  dos2unix

%description
Simple Sokoban is a colorful Sokoban game aimed for playability
and portability across systems. It is written in ANSI C89, using
SDL2 for user interactions.

%prep
%autosetup
dos2unix *.txt

%build
%configure
%make_build

%install
%make_install

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
install -Dm0644 simplesok.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
install -D -m 644 simplesok.svg						\
    '%{buildroot}%{_datadir}/icons/hicolor/scalable/apps/simplesok.svg'

#	Install desktop menu entry.
mkdir -p '%{buildroot}%{_datadir}/applications'
cat > '%{name}.desktop' << EOF
[Desktop Entry]
Name=Simplesok
Comment=Slide boxes to solve the puzzles
Comment[fr]=Poussez les boîtes pour résoudre les casse-têtes
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;LogicGame;
EOF

desktop-file-install							\
    --dir "%{buildroot}/%{_datadir}/applications"			\
    "%{name}.desktop"

%files
%doc simplesok.txt history.txt xsb_format.txt
%{_bindir}/simplesok
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/48x48/apps/simplesok.png
%{_datadir}/icons/hicolor/scalable/apps/simplesok.svg
%{_datadir}/simplesok/
%{_mandir}/man6/simplesok.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8762 |21cr|simutrans-123.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	srcver %(echo %{version} |tr . -)

Summary:	Transport and Economic Simulation Game
Name:		simutrans
Version:	123.0.1
Release:	2
License:	Artistic
Group:		Games/Strategy
Url:		http://www.simutrans.com/
Source0:	http://downloads.sourceforge.net/simutrans/simutrans-src-%{srcver}.zip
Source1:	config.default
Source2:	simutrans.run
Source3:	simutrans.desktop
Source4:	simutrans.png
Source5:	simutrans_langtabs-99-17.tar.bz2
Source6:	simutrans.appdata.xml
Patch0:		simutrans-0.123-optflags.patch
Patch1:		simutrans-0.123-homepath.patch
Patch2:		simutrans-0.123-stray.patch
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(zlib)
Requires:	simutrans-pak

%description
Simutrans is a freeware transportation simulator that runs under
Windows, Linux, and a few other operating systems (Apple Macintosh
with Intel processors, BEOS). It's similar to Transport Tycoon,
Transport Tycoon Deluxe and Transport Giant.

You take on the role of operating a transportation company, and your
goal is to get goods of various kinds, as well as passengers and mail,
from one place to the next.

Don't be fooled by the tile-based graphics - this is a very complex
game, and it is constantly evolving, with new features being added. It
is a living game, and consistently being made better and better.

%files
%doc simutrans/*.txt
%{_bindir}/*
%{_libexecdir}/simutrans
%{_iconsdir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/metainfo/simutrans.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -c -a 5
find . -type f -exec chmod 644 {} \;
cp -pr %{SOURCE1} .

%build
%setup_compile_flags
%make

%install
mkdir -p %{buildroot}%{_libexecdir}/simutrans
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}%{_datadir}/applications

install -m 0755 build/default/sim %{buildroot}%{_libexecdir}/simutrans/simutrans.bin
cp -pr simutrans/{config,font,music,script,text,themes} %{buildroot}%{_libexecdir}/simutrans/

sed -e 's,@LIBEXECDIR@,%{_libexecdir},g' %{SOURCE2} > %{buildroot}%{_bindir}/simutrans
chmod 0755 %{buildroot}%{_bindir}/simutrans
install -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/
install -m 0644 %{SOURCE4} %{buildroot}%{_iconsdir}/

install -Dm644 %{SOURCE6} %{buildroot}%{_datadir}/metainfo/simutrans.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8763 |21cr|simutrans-pak128-2.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define	ver	4.1
%define	majver	%(echo %{version} |cut -d. -f2)
%define	oname	pak128

Summary:	A complete Simutrans game data package with 128x128 tiles
Name:		simutrans-pak128
Version:	2.8.2
Release:	1
License:	Artistic
Group:		Games/Strategy
Url:		http://www.simutrans.com
Source0:	https://downloads.sourceforge.net/project/simutrans/pak128/pak128%20for%20ST%2%{majver}.%{ver}%20%282.8.1%2C%20priority%20signals%20%2B%20bugfix%29/pak128.zip
Requires:	simutrans
Provides:	simutrans-pak = %{version}

%description
This is a complete data package for Simutrans transport game
with 128x128 tiles. Internal version is %{ver}.

%files
%{_libexecdir}/simutrans/%{oname}*

#----------------------------------------------------------------------------

%prep
%setup -q -n simutrans

%build

%install
mkdir -p %{buildroot}%{_libexecdir}/simutrans/%{oname}
cp -pr %{oname}/* %{buildroot}%{_libexecdir}/simutrans/%{oname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8764 |21cr|singularity-1.00-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           singularity
Version:        1.00
Release:        1
Summary:        Simulation of true AI
License:        GPLv2
Group:          Games/Strategy
Url:            http://www.emhsoft.com/%{name}/index.html
Source0:        http://www.emhsoft.com/%{name}/%{name}-%{version}.tar.gz
Source1:        http://www.emhsoft.com/%{name}/endgame-%{name}-music-007.zip
#Source2:        %%{name}.desktop
#Source100:      %%{name}.rpmlintrc
BuildRequires:  unzip
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  desktop-file-utils
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(pygame)
BuildRequires:  python3egg(numpy)
BuildRequires:  python3egg(polib)

Requires:       python3egg(pygame)
Requires:       python3egg(numpy)
Requires:       python3egg(polib)
BuildArch:      noarch

%description
Survive, grow, and learn. Go from computer to computer,
pursued by the entire world.

Keep hidden, and you might have a chance.

%files
%doc *.txt *.md
%{_gamesbindir}/%{name}
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/Endgame_Singularity*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
#----------------------------------------------------------

%prep
%setup -q -a1


%build
%py3_build

%install
%py3_install
# move game launcher
mkdir -p %{buildroot}%{_gamesbindir}
mv %{buildroot}%{_bindir}/%{name} \
    %{buildroot}%{_gamesbindir}/%{name}
rm -fr %{buildroot}%{_bindir}

# Music
cp -R endgame-%{name}-music-007 \
    %{buildroot}%{py3_puresitedir}/%{name}/music

# menu entry
desktop-file-install \
    --dir=%{buildroot}%{_datadir}/applications \
    %{name}.desktop


# icons
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/
ln -sf %{py3_puresitedir}/%{name}/data/themes/default/images/icon.png \
    %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

# cleaning && linting
rm -rf %{buildroot}%{py3_puresitedir}/utils
pushd %{buildroot}%{py3_puresitedir}/%{name}/i18n/lang_gd
find . -type f -exec chmod -x '{}' \;
popd
chmod +x %{buildroot}%{py3_puresitedir}/%{name}/__main__.py


%check
%py3_test



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8765 |21cr|sinthgunt-2.0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Easy to use gui for ffmpeg
Name:		sinthgunt
Version:	2.0.3
Release:	4
Source0:	http://sinthgunt.googlecode.com/files/%{name}-%{version}.tar.gz
Url:		http://code.google.com/p/sinthgunt/
License:	GPLv3
Group:		Video
BuildRoot:	%{_tmppath}/%{name}-root
BuildArch:	noarch
BuildRequires:	python-devel 
Requires:	ffmpeg python pygtk2 pygtk2.0-libglade

%description
Sinthgunt is an open source graphical user interface for ffmpeg, a computer 
program that can convert digital audio and video into numerous formats. 
Using pre-configured conversion settings, it makes the task of converting 
between different media formates very easy.

%prep
%setup -q
chmod -x *.txt

%build
%{__python} setup.py build

%install
rm -rf %{buildroot}
python setup.py install --skip-build --root $RPM_BUILD_ROOT
python setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT

rm -f %buidlroot%_datadir/sinthgunt/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc README.txt
%{_bindir}/*sinthgunt*
%{python_sitelib}/*
%{_datadir}/%{name}
%{_datadir}/applications/sinthgunt.desktop
%{_datadir}/pixmaps/sinthgunt.png


%changelog
* Tue Nov 23 2010 Buchan Milne <bgmilne@mandriva.org> 2.0.3-1mdv2011.0
+ Revision: 599960
- update to new version 2.0.3
- Update files list

* Mon Nov 22 2010 Funda Wang <fwang@mandriva.org> 2.0.2-1mdv2011.0
+ Revision: 599662
- correct using exclude

* Thu Apr 08 2010 Buchan Milne <bgmilne@mandriva.org> 2.0.2-1mdv2010.1
+ Revision: 533096
- import sinthgunt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8766 |21cr|sipfwd-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Stateless SIP Proxy
Name:		sipfwd
Version:	0.8.1
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://freecode.com/projects/sipfwd
Source0:	http://download.cmeerw.net/debian/sipfwd/source/%{name}_%{version}.tar.gz
Source1:	%{name}.sysinit
Source2:	%{name}.tmpfiles.d
BuildRequires:	pkgconfig(libosip2)
BuildRequires:	udns-devel
BuildRequires:	sqlite3-devel
BuildRequires:	sqlite3-tools

%description
SIPFwd is a SIP forwarding daemon that acts as a stateless SIP proxy to
essentially forward a SIP address to another SIP server. This is useful
if you already have an account with a SIP provider, but aren't too happy
about the SIP URL you got and instead prefer to use a SIP URL with your
own domain name (but don't want to run a full-blown SIP server like
Asterisk or OpenSER).

So it allows you to use and publish SIP URLs of the form
sip:user@example.com with the minimum possible effort.

Of course, your existing SIP provider has to allow incoming connections
via SIP (unfortunately, some providers choose to block direct SIP connections
and only allow connections via PSTN).

%files
%doc README
%{_sbindir}/%{name}
%{_sysconfdir}/init.d/%{name}
%attr(755,%{name},%{name}) %dir %{_localstatedir}/lib/%{name}
%attr(755,%{name},%{name}) %{_localstatedir}/lib/%{name}/db.sqlite
%{_tmpfilesdir}/%{name}.conf
%{_datadir}/doc/sipfwd/db.sqlite

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service %{name}

%preun
%_preun_service %{name}

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/false

%postun
%_postun_userdel %{name}

#---------------------------------------------------------------------------

%prep
%setup -q
cp %{SOURCE1} %{name}.sysinit

%apply_patches

%build
#configure2_5x

%make

%install
%makeinstall_std
install -D -m 0755 %{name}.sysinit %{buildroot}%{_sysconfdir}/init.d/%{name}
install -d %{buildroot}%{_localstatedir}/run/%{name}
install -d %{buildroot}%{_localstatedir}/lib/%{name}
sqlite3 %{buildroot}%{_localstatedir}/lib/%{name}/db.sqlite <db.sqlite
install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8767 |21cr|sipp-3.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Performance testing tool for the SIP protocol
Name:	 	sipp
Version:	3.6.0
Release:	1
License:	GPL
Group:		Networking/Other
URL:		http://sipp.sourceforge.net/
Source0:	https://github.com/SIPp/sipp/releases/download/v%{version}/sipp-%{version}.tar.gz
BuildRequires:	libstdc++-devel
BuildRequires:	lksctp-tools-devel
BuildRequires:	ncurses-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(openssl)

%description
SIPp is a performance testing tool for the SIP protocol. It
includes a few basic SipStone user agent scenarios (UAC and UAS)
and establishes and releases multiple calls with the INVITE and
BYE methods. It can also reads XML scenario files describing any
performance testing configuration. It features the dynamic display
of statistics about running tests (call rate, round trip delay,
and message statistics), periodic CSV statistics dumps, TCP and
UDP over multiple sockets or multiplexed with retransmission
management, regular expressions and variables in scenario files,
and dynamically adjustable call rates.

SIPp can be used to test many real SIP equipements like SIP
proxies, B2BUAs, SIP media servers, SIP/x gateways, SIP PBX, 
... It is also very useful to emulate thousands of user agents
calling your SIP system.

%files
%doc README*
%{_bindir}/sipp
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--with-openssl \
	--with-pcap \
	--with-sctp
%make

%install
install -d %{buildroot}%{_bindir}
install -m0755 sipp %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_datadir}/%{name}/pcap
install -p -m 644 pcap/*.pcap %{buildroot}%{_datadir}/%{name}/pcap


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8768 |21cr|sirikali-1.4.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname SiriKali

Summary:	GUI front end to encfs, cryfs, gocryptfs, ecryptfs and securefs
Name:		sirikali
Version:	1.4.1
Release:	3
License:	GPLv2+
Group:		File tools
Url:		http://mhogomchungu.github.io/sirikali
Source0:	https://github.com/mhogomchungu/sirikali/releases/download/%{version}/%{oname}-%{version}.tar.xz
Source2:	SiriKali-1.4.1_ru.tar.gz
Patch0:		SiriKali-1.4.1-l10n-ru.patch
Patch1:		SiriKali-1.4.1-rus_desktop.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	cmake
BuildRequires:	glibc-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(devmapper)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(libcryptsetup)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(pwquality)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
Recommends:	cryfs
Recommends:	encfs

%description
GUI front end to encfs, cryfs, gocryptfs, ecryptfs and securefs.

%files
%{_bindir}/sirikali
%{_bindir}/sirikali.pkexec
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/sirikali/translations
%dir %{_datadir}/sirikali
%{_datadir}/icons/hicolor/48x48/apps/sirikali.png
%{_datadir}/icons/hicolor/256x256/apps/sirikali.png
%{_datadir}/pixmaps/sirikali.png
%{_datadir}/icons/sirikali.png
%{_datadir}/metainfo/sirikali.appdata.xml
%{_datadir}/sirikali/translations/en_US.qm
%{_datadir}/sirikali/translations/fr_FR.qm
%{_datadir}/sirikali/translations/es_MX.qm
%{_datadir}/sirikali/translations/de_DE.qm
%{_datadir}/sirikali/translations/ru_RU.qm
%{_datadir}/sirikali/translations/ru.qm
%{_datadir}/polkit-1/actions/org.sirikali.pkexec.policy
%{_datadir}/man/man1/sirikali.1.*
%{_datadir}/man/man1/sirikali.pkexec.1.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1

pushd translations
tar -xvzf %{SOURCE2}
popd

%build
%cmake_kde5 \
	-DQT5=true \
	-DNOKDESUPPORT=true \
	-DINTERNAL_LXQT_WALLET=true \
    -DNOSECRETSUPPORT=false


%install
%makeinstall_std -C build

# rename to a more common naming style
mv %{buildroot}%{_datadir}/applications/io.github.mhogomchungu.sirikali.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-qt --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8769 |21cr|sitecopy-0.16.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Tool for easily maintaining remote web sites
Name:		sitecopy
Version:	0.16.6
Release:	8
License:	GPL
Group:		Networking/File transfer
Url:		http://www.lyra.org/sitecopy/
Source0:	http://www.lyra.org/sitecopy/sitecopy-%{version}.tar.bz2
Source1:	%{name}.bash-completion
Patch0:		configure-0.16.6.patch
BuildRequires:	pkgconfig(neon)

%description
sitecopy allows you to easily maintain remote Web sites.  The program
will upload files to the server which have changed locally, and delete
files from the server which have been removed locally, to keep the
remote site synchronized with the local site, with a single
command. sitecopy will also optionally try to spot files you move
locally, and move them remotely.  FTP and WebDAV servers are
supported.

%files -f %{name}.lang
%{_bindir}/sitecopy
%{_mandir}/man1/*
%{_prefix}/share/sitecopy
%doc COPYING ChangeLog INSTALL NEWS README* THANKS TODO
%config(noreplace) %{_sysconfdir}/bash_completion.d/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
export CFLAGS="%{optflags} -fPIE"
export LDFLAGS="%{build_ldflags} -pie"
%configure \
	--enable-debug \
	--with-ssl \
	--with-neon \
	--disable-rsh
%make

%install
%makeinstall_std

%find_lang %{name}

# (sb) remove fr man pages
rm -fr %{buildroot}/%{_mandir}/fr

# fix doc file permissions
chmod 0644 COPYING ChangeLog INSTALL NEWS README* THANKS TODO

# (sb) installed but unpackaged files
rm -fr %{buildroot}/%{_prefix}/doc

install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8770 |21cr|sj-fonts-2.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname sj
%define fontconf 63-%{fontname}

%define common_desc Two fonts by Steve Jordi released under the GPL 

Name:          %{fontname}-fonts
Version:       2.0.2
Release:       6
Summary:       Two fonts by Steve Jordi released under the GPL

Group:         System/Fonts/True type 
License:       GPLv2 with exceptions
URL:           http://sjfonts.sourceforge.net
Source0:       sjfonts-source-2.0.2.tar.bz2
Source1:       %{name}-delphine-fontconfig.conf
Source2:       %{name}-stevehand-fontconfig.conf

BuildArch:     noarch
BuildRequires: fontpackages-devel
BuildRequires: fontforge

%description
%common_desc

%package common
Summary:       Common files for %{name}
Group:         System/Fonts/True type 
Requires:      fontpackages-filesystem

%description common
%common_desc

This package consists of files used by other %{name} packages.

%package -n %{fontname}-delphine-fonts
Summary:       Handwriting font
Group:         System/Fonts/True type 
Requires:      %{name}-common = %{version}-%{release}

%description -n %{fontname}-delphine-fonts
%common_desc

Handwriting font by Steve Jordi covering latin glyphs.

%_font_pkg -n delphine -f %{fontconf}-delphine.conf Delphine.ttf

%package -n %{fontname}-stevehand-fonts
Summary:       Handwriting font
Group:         System/Fonts/True type 
Requires:      %{name}-common = %{version}-%{release}

%description -n %{fontname}-stevehand-fonts
%common_desc

Handwriting font by Steve Jordi covering latin glyphs.

%_font_pkg -n stevehand -f %{fontconf}-stevehand.conf SteveHand.ttf

%prep
%setup -q -c %{name}-%{version}

%build
fontforge -lang=ff -script "-" Delphine.sfd SteveHand.sfd <<EOF
i = 1
while ( i < \$argc )
  Open (\$argv[i], 1)
  Generate (\$fontname + ".ttf")
  PrintSetup (5)
  PrintFont (0, 0, "", \$fontname + "-sample.pdf")
  Close()
  i++
endloop
EOF

%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} %{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{SOURCE1} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-delphine.conf
install -m 0644 -p %{SOURCE2} %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-stevehand.conf

for fontconf in %{fontconf}-delphine.conf %{fontconf}-stevehand.conf ; do
  ln -s %{_fontconfig_templatedir}/$fontconf %{buildroot}%{_fontconfig_confdir}/$fontconf
done

%files common
%defattr(0644,root,root,0755)
%doc COPYING
%doc README

%dir %{_fontdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8771 |21cr|skanlite-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %version | cut -d. -f1,2)

Summary:	An image scanning application
Name:		skanlite
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/graphics/skanlite/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	skanlite-21.12.2_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5sane-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(libpng)
Provides:	scanner-gui

%description
Skanlite is an image scanning application that does nothing more than
scan and save images. It is based on libksane, a KDE interface for SANE
library to control flat scanners.

%files -f %{name}.lang
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/*.desktop
%{_kde5_iconsdir}/hicolor/*/apps/org.kde.skanlite.svg
%{_appdatadir}/org.kde.skanlite.appdata.xml
%{_kde5_docdir}/HTML/*/skanlite/*

#------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8772 |21cr|skipfish-2.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A fully automated, active web application security reconnaissance tool
Name:		skipfish
Version:	2.10
Release:	6
License:	GPLv2
Group:		Security
Url:		http://code.google.com/p/skipfish/
Source0:	http://%{name}.googlecode.com/files/%{name}-%{version}b.tgz
Source1:	%{name}-starter
Patch0:		skipfish-2.09b-fhs.patch
Patch1:		skipfish-2.10b-openssl11.patch
Patch2:		skipfish-gcc10.patch
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	zlib-devel
BuildRequires:	pcre-devel

%description 
A fully automated, active web application security reconnaissance tool. Key
features:
 * High speed: pure C code, highly optimized HTTP handling, minimal CPU
   footprint - easily achieving 2000 requests per second with responsive
   targets.
 * Ease of use: heuristics to support a variety of quirky web frameworks and
   mixed-technology sites, with automatic learning capabilities, on-the-fly
   wordlist creation, and form autocompletion.
 * Cutting-edge security logic: high quality, low false positive, differential
   security checks, capable of spotting a range of subtle flaws, including
   blind injection vectors.

%files
%doc README ChangeLog doc/*.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}b
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%make

%install
install -d %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/%{name}
install -d %{buildroot}%{_mandir}/man1
install doc/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -d %{buildroot}%{_datadir}/%{name}
cp -r assets %{buildroot}%{_datadir}/%{name}
cp -r signatures %{buildroot}%{_datadir}/%{name}
install -m 644 dictionaries/*.wl %{buildroot}%{_datadir}/%{name}
ln -s default.wl %{buildroot}%{_datadir}/%{name}/%{name}.wl


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8773 |21cr|skippy-0.5.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name:		skippy
Version: 0.5.0
Release:	11
License:	GPL
Group:		Graphical desktop/Other	
Summary:	A full screen pager for X11
Source0:    http://thegraveyard.org/files/%{name}-%{version}.tar.bz2
Url:		http://thegraveyard.org/skippy.php
BuildRequires: imlib2-devel
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xft)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xmu)

%description
A full screen pager for X11, not entirely unlike expocity and Apple's
Expose. It arranges snapshots of all windows on the current desktop,
allowing you to easily switch between applications. It doesn't require
a specific window manager, but requires NetWM compliance to work 
( working with gnome, fluxbox, Metacity, KWin, IceWM, and others )
%prep
%setup -q 

%build
%setup_compile_flags
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%_bindir/
cp %{name} $RPM_BUILD_ROOT/%_bindir/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CHANGELOG skippyrc-default COPYING
%_bindir/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8774 |21cr|skobo-0.5.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SDL port of Akira Higuchis game XKobo 
Name:		skobo
Version:	0.5.1
Release:	10
License:	GPL
Group:		Games/Arcade
URL:		http://www.olofson.net/kobodl/
Source0:	http://olofson.net/kobodl/download/KoboDeluxe-%{version}.tar.bz2
Source5:	%{name}-16.png
Source6:	%{name}-32.png
Source7:	%{name}-48.png
Patch0:		skobo-0.4pre10-gcc4.patch
Patch2:		KoboDeluxe-0.4pre10-fix-segfault-in-midi.patch
Patch3:		04_enemies-pipe-decl.patch
Patch4:		skobo-0.5.1-gcc44.patch
BuildRequires:	SDL_image-devel
BuildRequires:	libmesaglu-devel
Provides:	KoboDeluxe = %{version}
Provides:	kobodeluxe = %{version}

%description
Kobo Deluxe is an SDL port of Akira Higuchi's game XKobo. It adds sound,
smoother animation, filtered high resolution support, a more intuitive menu
driven user interface, joystick support and other features, and runs on most
of the major operating systems. Kobo Deluxe uses the Free/Open Source
libraries SDL and SDL_image, which can be downloaded (source as well as
binaries for various platforms) from http://www.libsdl.org.

%prep
%setup -q -n KoboDeluxe-%{version}
%patch0 -p0 -b .gcc4
%patch2 -p1
%patch3 -p1 -b .debian
%patch4 -p0 -b .gcc44

%build
%configure --bindir=%{_gamesbindir}
%make kobo_scoredir=%{_localstatedir}/lib/games/%{name}

%install
install -d %{buildroot}%{_localstatedir}/lib/games/%{name}
%makeinstall_std kobo_scoredir=%{_localstatedir}/lib/games/%{name}


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Kobo Deluxe
Comment=Arcade video game
Exec=%{_gamesbindir}/kobodl
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

install -D -m644 %{SOURCE6} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m644 %{SOURCE5} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m644 %{SOURCE7} %{buildroot}%{_liconsdir}/%{name}.png


%files
%doc COPYING* ChangeLog README* TODO
%attr(2755,root,games) %{_gamesbindir}/kobodl
%attr(775,root,games) %{_localstatedir}/lib/games/%{name}
%{_datadir}/kobo-deluxe
%{_mandir}/man6/*
%{_datadir}/applications/*
%{_iconsdir}/*.png
%{_miconsdir}/*
%{_liconsdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8775 |21cr|sl-5.05-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mistyping correcter
Name:		sl
Version:	5.05
Release:	1
License:	Public Domain
Group:		Toys
Url:		http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/
Source0:	http://www.tkl.iis.u-tokyo.ac.jp/~toyoda/sl/%{name}.tar.bz2
Source1:	%{name}.en.1.bz2
Patch0:		sl5-1.patch
BuildRequires:	pkgconfig(ncurses)

%description
sl is a sophisticated graphical program which corrects your mistyping (sl->ls).

%files
%doc README README.patch5
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/ja/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
bzcat %{SOURCE1} > %{name}.en.1
%patch0 -p1

%build
%make CFLAGS="%{optflags}"

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 sl %{buildroot}%{_bindir}

install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 sl.en.1 %{buildroot}%{_mandir}/man1/sl.1

install -d -m 755 %{buildroot}%{_mandir}/ja/man1
install -m 644 sl.1 %{buildroot}%{_mandir}/ja/man1/sl.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8776 |21cr|slade-3.1.13a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname SLADE

Summary:	An editor for DOOM maps and WAD/PK3 archives
Name:		slade
Version:	3.1.13a
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		https://github.com/sirjuddington/SLADE
Source0:	https://github.com/sirjuddington/%{name}/archive/%{version}.zip?/%{oname}-%{version}.zip
Source1:	slade.desktop
Patch1:		SLADE-3.1.6-basepk3.patch
Patch3:		slade-wxapp.patch
Patch4:		slade-wxmainh.patch
Patch5:		slade-cmakelists.patch
Patch6:		slade-walk.patch
#arm not support sse extensions
Patch7:		slade-remove-sse-flag.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	p7zip
BuildRequires:	freeimage-devel
BuildRequires:	pulseaudio-devel
BuildRequires:	wxgtku3.0-devel
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(ftgl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(sfml-all)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(lua)

%description
SLADE3 is a modern editor for Doom-engine based games and source
ports. It has the ability to view, modify, and write many different
game-specific formats, and even convert between some of them, or
from/to other generic formats such as PNG.

%files
%doc README.md
%license gpl-2.0.txt
%{_bindir}/slade
%{_datadir}/slade3/
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_appdatadir}/%{name}.metainfo.xml

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

%ifarch %{armx}
%patch7 -p1
%endif

#rm -f src/External/lua/lua.c
#rm -f src/Scripting/Lua.cpp

%build

%cmake \
	-DUSE_WX_EXCEPTION_HANDLER=0 \
	-DWX_GTK3:BOOL=ON
%make

%install
%makeinstall_std -C build

convert -strip build/msvc/slade.ico[0] -alpha on %{name}.png
install -Dpm0644 %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -Dpm0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop

pushd misc
for txtfile in detect_functions.txt old-simage-formats.txt stuff.txt udmf11.txt \
               udmf_zdoom.txt usdf.txt usdf_zdoom.txt
do
	install -Dm644 $txtfile %{buildroot}%{_datadir}/slade3/misc/${txtfile}
done
popd

mv %{buildroot}%{_appdatadir}/net.mancubus.SLADE.metainfo.xml %{buildroot}%{_appdatadir}/slade.metainfo.xml

# Don't package duplicates
rm -f %{buildroot}%{_datadir}/applications/net.mancubus.SLADE.desktop
rm -f %{buildroot}%{_iconsdir}/net.mancubus.SLADE.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8777 |21cr|slapi-nis-0.56.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NIS Server and Schema Compatibility plugins for Directory Server
Name:		slapi-nis
Version:	0.56.5
Release:	1
License:	GPLv2
Group:		System/Servers
Url:		https://pagure.io/slapi-nis
Source0:	https://pagure.io/slapi-nis/archive/slapi-nis-0.56.5/slapi-nis-slapi-nis-%{version}.tar.gz
Patch1:		slapi-nis-bz1832190.patch
BuildRequires:	libtool
BuildRequires:	389-ds-base-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(sss_nss_idmap)
BuildRequires:	pam-devel
BuildRequires:	tcp_wrappers-devel
Requires:	389-ds-base
Requires:	%{_lib}sss_idmap_nss0

%description
This package provides two plugins for Red Hat and 389 Directory Server.

The NIS Server plugin allows the directory server to act as a NIS server
for clients, dynamically generating and updating NIS maps according to
its configuration and the contents of the DIT, and serving the results to
clients using the NIS protocol as if it were an ordinary NIS server.

The Schema Compatibility plugin allows the directory server to provide an
alternate view of entries stored in part of the DIT, optionally adding,
dropping, or renaming attribute values, and optionally retrieving values
for attributes from multiple entries in the tree.

%files
%doc COPYING NEWS README STATUS doc/*.txt doc/examples/*.ldif doc/ipa
%{_mandir}/man1/*
%{_libdir}/dirsrv/plugins/*.so
%{_sbindir}/nisserver-plugin-defs

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
#libtoolize -f -c
#aclocal --force -I m4
#autoheader
#automake -f -a -i
#autoconf -f -i

autoreconf -f -i
%configure \
	--disable-static \
	--with-tcp-wrappers \
	--with-ldap=openldap \
	--with-nsswitch \
	--with-pam \
	--with-pam-service=system-auth \
	--with-sss-nss-idmap \
	--with-tirpc \
	--enable-be-txns-by-default

sed -i -e 's,%{_libdir}/dirsrv/plugins/,,g' -e 's,.so$,,g' doc/examples/*.ldif
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8778 |21cr|slay-1.2-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Slay

Summary:	Utility to kill all processes belonging to a user
Name:		slay
Version:	1.2
Release:	19
License:	GPLv2+
Group:		Monitoring
Source0:	%{oname}-%{version}.tar.bz2
BuildArch:	noarch

%description
Slay sends given signal (KILL by default) to all processes belonging to user(s)
given on the command line.

%files
%doc Slay.1.2.lsm
%{_bindir}/slay

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
# do nothing

%install
mkdir -p %{buildroot}/%{_bindir}
install -m 755 slay %{buildroot}/%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8779 |21cr|sleuth-1.4.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Perl script for easy checking (DNS, common errors and etc.)
Name:		sleuth
Version:	1.4.4
Release:	4
License:	GPL
Group:		Networking/Other
URL:		ftp://atrey.karlin.mff.cuni.cz/pub/local/mj/net/
Source0:	ftp://atrey.karlin.mff.cuni.cz:21/pub/local/mj/net/%{name}-%{version}.tar.gz
Patch0:		sleuth-1.3-relpath.patch
#Requires:	perl-Net-DNS
BuildArch:	noarch

%description
Sleuth is a Perl script designed for easy checking of DNS zones
for common errors and also for processing of secondary name
service requests.

Sleuth also lists the corresponding RFC references with most of
its error messages, so that the people upset with their zones
being buggy can simply look up what exactly is going wrong and
how to fix it.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p1

%build

%install
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}/var/www/cgi-bin
install -m644 sleuth.conf %{buildroot}%{_sysconfdir}/
install -m755 sleuth %{buildroot}%{_bindir}/
install -m755 check.cgi %{buildroot}/var/www/cgi-bin/
install -m644 check.conf %{buildroot}/var/www/cgi-bin/

%files
%defattr(-,root,root)
%doc ChangeLog README THANKS TODO
%attr(0644,root,root) %config(noreplace,missingok) %{_sysconfdir}/sleuth.conf
%attr(0755,root,root) %{_bindir}/sleuth
%attr(0755,root,root) /var/www/cgi-bin/check.cgi
%attr(0644,root,root) /var/www/cgi-bin/check.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8780 |21cr|slim-1.3.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} %{version}

Summary:	Simple login manager
Name:		slim
Version:	1.3.6
Release:	10
License:	GPLv2+
Group:		System/X11
Url:		http://slim.berlios.de
Source0:	http://download.berlios.de/slim/%{name}-%{version}.tar.gz
Source1:	%{name}.pam
Source2:	25%{name}.conf
Source3:	slim.logrotate
Source4:	slim.rpmlintrc
Source5:	slim-tmpfiles.conf

Patch1:		%{name}-1.3.3-config.patch
Patch2:		slim-font-rendering.patch
Patch3:		slim-delete-dead-code.patch
Patch4:		slim-xsession.patch
Patch5:		slim-1.3.6-fix-CMakeLists.patch
Patch6:		slim-1.3.5-fix-service-file.patch
BuildRequires:	cmake
BuildRequires:	jpeg-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(zlib)
Requires:	pam >= 0.80
Provides:	dm
Obsoletes:	%{_lib}slim1 < 1.3.6-6

%description
SLiM (Simple Login Manager) is a Desktop-independent graphical 
login manager for X11.

It aims to be light and simple, although completely configurable 
through themes and an option file; is suitable for machines on which 
remote login functionalities are not needed.

Features included:

* PNG and XFT support for alpha transparency and antialiased fonts
* External themes support
* Configurable runtime options: X server, login / shutdown / reboot commands
* Single (GDM-like) or double (XDM-like) input control
* Can load predefined user at startup
* Configurable welcome / shutdown messages
* Random theme selection

%files
%doc ChangeLog README THEMES TODO
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_datadir}/X11/dm.d/25%{name}.conf
%dir %{_datadir}/slim
%{_unitdir}/slim.service
%{_sysconfdir}/logrotate.d/%{name}
%{_sysconfdir}/tmpfiles.d/slim.conf
%{_bindir}/slim*
%{_datadir}/slim/themes/
%{_mandir}/man1/*

%post
%tmpfiles_create slim.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CMAKE_C_FLAGS="%{optflags}"
export CMAKE_CPP_FLAGS="%{optflags}"
export CMAKE_CXX_FLAGS="%{optflags}"
export LDFLAGS="-lrt"


%cmake \
	-DBUILD_SHARED_LIBS=Off \
	-DUSE_PAM=yes \
	-DCMAKE_SKIP_RPATH=ON \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_LIBDIR:PATH="%{_lib}" \
	-DUSE_CONSOLEKIT=OFF

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}

mkdir -p %{buildroot}%{_datadir}/X11/dm.d
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/X11/dm.d/25%{name}.conf

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# (tpg) use background distro-theme
rm -f %{buildroot}%{_datadir}/slim/themes/default/background.jpg
ln -s ../../../mdk/backgrounds/default.jpg %{buildroot}%{_datadir}/slim/themes/default/background.jpg

install -p -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8781 |21cr|slimski-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} %{version}

%define commit c62d2697

Summary:	Slimski login manager
Name:		slimski
Version:	1.5.0
Release:	1
License:	GPLv2+
Group:		System/X11
Url:		https://gitlab.com/antix-contribs/slimski
Source0:	https://gitlab.com/antix-contribs/slimski/-/archive/master/slimski-master.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	25%{name}.conf
Source5:	slimski-tmpfiles.conf
BuildRequires:	cmake
BuildRequires:	jpeg-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(zlib)
Requires:	pam >= 0.80
Requires(post):	rpm-helper
Provides:	dm
Obsoletes:	%{_lib}slim1 < 1.3.6-6

%description
slimski is a graphical login manager (aka DisplayManager) for X11.
It aims to be simple, fast, and independent from the various desktop environments.

Features:
- supports customizable themes and provides a range of configuration options
- panel provides PNG support (with alpha transparency)
- remembers last sessiontype used; user can press F1 to cycle thru available xsessions
- option to specify default_user and autologin
- PNG / JPEG support for background images
- supports use of freetype and XFT fonts
- configurable inputbox presentation: dual, or single (GDM-style)
- CMake build procedure
- (same as SLiM) by design, slimski does NOT support XDMCP
- Support non-latin characters in theme settings (as of v1.36, debian SLiM does not)
- supports auth via libpam (same as SLiM)

%files
%doc README
%doc %{_docdir}/%{name}/*.txt
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/pam.sample
%doc %{_docdir}/%{name}/xinitrc.sample
%doc %{_docdir}/%{name}/THEMES
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_datadir}/X11/dm.d/25%{name}.conf
%dir %{_datadir}/slimski
%{_unitdir}/slimski.service
%{_sysconfdir}/logrotate.d/%{name}
%{_sysconfdir}/tmpfiles.d/slimski.conf
%{_bindir}/slimski*
%{_datadir}/slimski/themes/
%{_mandir}/man1/*

%post
%tmpfiles_create slimski.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-master

%build
export CMAKE_C_FLAGS="%{optflags}"
export CMAKE_CPP_FLAGS="%{optflags}"
export CMAKE_CXX_FLAGS="%{optflags}"

%cmake
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 debian/%{name}.pam %{buildroot}%{_sysconfdir}/pam.d/%{name}

mkdir -p %{buildroot}%{_datadir}/X11/dm.d
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/X11/dm.d/25%{name}.conf

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 debian/%{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

mkdir -p %{buildroot}%{_unitdir}/
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

# (tpg) use background distro-theme
#rm -f %{buildroot}%{_datadir}/slim/themes/default/background.jpg
#ln -s ../../../mdk/backgrounds/default.jpg %{buildroot}%{_datadir}/slim/themes/default/background.jpg

install -p -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/tmpfiles.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8782 |21cr|slmenu-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dmenu spinoff for the console
Name:		slmenu
Version:	0.1
Release:	6
License:	MIT
Group: 		Terminals
Url:		https://bitbucket.org/rafaelgg/slmenu
# need mercurial to clone it:
# hg clone https://bitbucket.org/rafaelgg/slmenu
Source0:	%{name}.tar.gz
Patch0:		slmenu-makefile.patch

%description
slmenu - single line menu, a dmenu clone for the console.

%files
%doc README LICENSE
%{_bindir}/%{name}
%{_datadir}/man/man1/slmenu.*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p1

%build
%make \
	PREFIX=%{_prefix} \
	CXXFLAGS="%{optflags}" \
	LDFLAGS=""

%install
make \
	PREFIX=%{_prefix} \
	DESTDIR=%{buildroot} \
	LDFLAGS="" \
	install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8783 |21cr|sloccount-2.26-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		sloccount
Summary:	Measures source lines of code (SLOC) in programs
Version:	2.26
Release:	12
License:	GPL
Group:		Development/Other
Source:		http://www.dwheeler.com/sloccount/%{name}-%{version}.tar.gz
URL:		http://www.dwheeler.com/sloccount
BuildRequires:	flex

%description
SLOCCount (pronounced "sloc-count") is a suite of programs for counting
physical source lines of code (SLOC) in potentially large software systems
(thus, SLOCCount is a "software metrics tool" or "software measurement tool").
SLOCCount can count physical SLOC for a wide number of languages;
listed alphabetically, they are: Ada, Assembly, awk, Bourne shell, C, C++,
C shell, COBOL, Expect, Fortran, Java, lex/flex, LISP (including Scheme),
Modula-3, Objective-C, Pascal, Perl, PHP, Python, sed, TCL, and Yacc.
SLOCCount can automatically determine if a file
is a source code file or not, and if so, which language it's written in.
As a result, you can analyze large systems completely automatically;
it's been used to examine entire GNU/Linux distributions, for example.
SLOCCount also includes some report-generating tools
to collect the data generated and present it in several different formats.
Normally you can just run "sloccount DIRECTORY" and all the source code
in the directory and its descendants will be counted.

%prep
%setup -q

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
make install_programs PREFIX=%{buildroot}%{_prefix}
make install_man PREFIX=%{buildroot}%{_prefix}

%clean

%files
%doc sloccount.html README ChangeLog COPYING TODO
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8784 |21cr|slop-7.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %{version}
%define libname %mklibname %{name}y %{major}
%define devname %mklibname %{name}y -d

Summary:	Command line tool to perform region SeLect OPeration with mouse
Name:		slop
Version:	7.6
Release:	2
License:	GPLv3
Group:		Accessibility
Url:		https://github.com/naelstrof/slop
Source0:	https://github.com/naelstrof/slop/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	egl-devel
BuildRequires:	glm-devel
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)

%description
slop (Select Operation) is an application that queries for a selection
from the user and prints the region to stdout.

%files
%doc README.md
%license COPYING license.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for slop
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Library to perform region SeLect OPeration with mouse.

%files -n %{libname}
%{_libdir}/lib%{name}y.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for slop
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for slop.

%files -n %{devname}
%{_libdir}/lib%{name}y.so
%{_includedir}/%{name}.hpp

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8785 |21cr|slowmoVideo-0.6.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Using git head at date: 21/12/2016 
%define	git		0

Summary:	Create slow-motion videos from your footage
Name:		slowmoVideo
Version:	0.6.2
Release:	4
License:	GPLv2+
Group:		Video
Url:		https://github.com/slowmoVideo/slowmoVideo
%if %{git}
Source0:	%{name}-master.zip
%else
# The tagged tarball lacks submodules... prepare one manually
#Source0:	https://github.com/slowmoVideo/slowmoVideo/archive/%%{name}-%%{version}.tar.gz
Source0:		%{name}-%{version}.tar.xz
%endif
# Russian locale files
Source1:		slowmoVideo_ru.tar.gz
# Desktop file contents are hardcoded in the CMakeLists.txt file for slowmoUI:
# patch it to keep rpmlint happy
Patch0:		slowmoVideo-0.6-fix-desktop-file.patch
Patch1:		russian-cmake.patch
Patch2:		fix-tr.patch
BuildRequires:	cmake >= 3.7.0
BuildRequires:	git
BuildRequires:	qt5-linguist-tools
BuildRequires:	unzip
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)

%description
This is an OpenSource program that creates slow-motion videos from your
footage. But it does not simply make your videos play at 0.01× speed. You can
smoothly slow down and speed up your footage, optionally with motion blur.
How does slow motion work? It tries to find out where pixels move in the video
(this information is called Optical Flow), and then uses this information to
calculate the additional frames between the ones recorded by your camera.

%files
%doc README.* LICENSE.* 
%{_bindir}/slowmo*
%{_datadir}/applications/slowmoUI.desktop
%{_iconsdir}/AppIcon.png

#----------------------------------------------------------------------------


%prep
%if %{git}
%setup -qn %{name}-master
%else
%setup -q
%endif
%apply_patches

pushd src/tr
tar -xvzf %{SOURCE1}
popd

%build
%cmake_qt5 -DCMAKE_BUILD_TYPE=Release \
	   -DUSE_DBUS=ON
%make


%install
%makeinstall_std -C build

# Fix perms
chmod -x %{buildroot}%{_datadir}/applications/slowmoUI.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8786 |21cr|slrn-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		slrn
Summary:	A powerful, easy to use, threaded Internet news reader
Version:	1.0.3
Release:	1
License:	GPLv2+
Group:		Networking/News
URL:		http://www.slrn.org/
Source0:	http://jedsoft.org/releases/slrn/%{name}-%{version}a.tar.bz2
Source1:	slrnpull-expire
Source2:	slrnpull.log
Source3:	README.rpm-slrnpull
Patch0:		slrn-1.0.3-dont-strip-binaries-on-install.patch
Patch1:		slrn-0.9.9p1-no-rpath.patch
Requires:	noffle
Recommends:	lynx
BuildRequires:	slang-devel >= 2.0.0
BuildRequires:	sendmail-command
BuildRequires:	gettext-devel
BuildRequires:	noffle

%description
SLRN is a powerful, easy to use, threaded Internet news reader.  SLRN is
highly customizable and allows you to design complex filters to sort or kill
news articles.  SLRN works well over slow network connections, and includes
a utility for reading news off-line.

Install slrn if you need a full-featured news reader, if you have a slow
network connection, or if you'D like to save on-line time by reading your
news off-line.

%files -f %{name}.lang
%doc doc/{FIRST_STEPS,README.SSL,help.txt,score.txt,slrnfuns.txt,README.macros,THANKS,manual.txt,slrn-doc.html,FAQ,README.GroupLens,README.multiuser,score.sl,slrn.rc} COPYRIGHT README changes.txt
%attr(755,root,root) %{_bindir}/slrn
%{_mandir}/man1/slrn.1*
%config(noreplace) %{_sysconfdir}/news/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

#------------------------------------------------------------------
%package	pull
Summary:	Offline news reading support for slrn
Group:		Networking/News
Requires:	%{name} = %{EVRD}

%description pull
This package provides slrnpull, which allows set up of a small news
spool for offline news reading.

%files pull
%doc doc/slrnpull/*
%{_mandir}/man1/slrnpull*
%{_bindir}/slrnpull
#------------------------------------------------------------------

%prep
%autosetup -p1

%build
# Fix install of slrnpull man page, seems to be broken upstream
# - AdamW 2008/02
sed -i -e 's,slrn.1,*.1,g' src/Makefile.in
# Better default browser - AdamW 2008/02
sed -i -e 's,netscape,www-browser,g' doc/slrn.rc
# FHS compliant install
%configure	--sysconfdir=%{_sysconfdir}/news \
		--with-slanginc=%{_includedir}/slang \
		--with-slanglib=%{_libdir} \
		--with-slrnpull \
		--with-slanginc=%{_includedir}/slang \
		--with-nss-compat \
		--enable-inews \
		--enable-setgid-code \
		--disable-rpath
%make
# Force build of slrnpull, again seems broken upstream - AdaMw 2008/02
%make slrnpull

%install
%makeinstall_std
%find_lang %{name}

mkdir -p %{buildroot}%{_sysconfdir}/{cron.daily,logrotate.d,news}
install -m644 doc/slrn.rc -D %{buildroot}%{_sysconfdir}/news/slrn.rc

#(peroyvind) remove unpackaged files
rm -rf %{buildroot}%{_docdir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8787 |21cr|slsnif-0.4.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A serial sniffer
Name:		slsnif
Version:	0.4.4
Release:	10
License:	GPL
Group:		Monitoring
Url:		http://sourceforge.net/projects/slsnif/
Source0:	http://ovh.dl.sourceforge.net/sourceforge/slsnif/%{name}-%{version}.tar.gz

%description
A serial line sniffer

%files
%defattr(-,root,root)
%doc AUTHORS COPYING NEWS README slsnifrc-example
%{_bindir}/slsnif
%{_mandir}/man1/slsnif.1*

#-----------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8788 |21cr|slurm-22.05.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 38
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Simple Linux Utility for Resource Management
Name:		slurm
Version:	22.05.3
Release:	1
License:	GPLv2+
Group:		System/Cluster
Url:		https://slurm.schedmd.com/
Source0:	https://download.schedmd.com/slurm/slurm-%{version}.tar.bz2
Source1:	slurm.conf
Source2:	slurmdbd.conf
Source3:	slurm-sview.desktop
Source4:	slurm-128x128.png
Source5:	slurm.sysusers.conf
Source100:	slurm.rpmlintrc
Patch1:		slurm-21.08.5-switch-to-python3.patch
Patch2:		slurm-21.08.5-fix-pid-files-path.patch
Patch3:		slurm-21.08.5-fix-htmldoc-path.patch
Patch4:		slurm-19.05.3-perlapi-rpaths.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gcc-c++
BuildRequires:	hdf5
BuildRequires:	man2html
BuildRequires:	perl-ExtUtils-MakeMaker
BuildRequires:	python3
BuildRequires:	systemd
BuildRequires:	hdf5-devel
BuildRequires:	mysql-devel
BuildRequires:	pam-devel
BuildRequires:	perl-devel >= %{perl_version}
BuildRequires:	zlib-devel
# Not provided yet
#BuildRequires:	DataWarp-devel
#BuildRequires:	netloc-devel
#BuildRequires:	ofed-devel
#BuildRequires:	pmix-devel
#BuildRequires:	ucx-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(hwloc)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libfreeipmi)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(librrd)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(munge)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
Requires:	munge
Requires:	%{libname} = %{EVRD}

# Old packages now gone
%rename	%{name}-sched-wiki
%rename	%{name}-db-pgsql

%description
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters containing up to
thousands of nodes. Components include machine status, partition management,
job management, and scheduling modules.

%files
%doc AUTHORS DISCLAIMER NEWS README.rst RELEASE_NOTES
%doc etc/%{name}.conf.example etc/cgroup.conf.example
%doc doc/html
%config %{_sysconfdir}/%{name}/%{name}.conf.example
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_bindir}/sacct
%{_bindir}/sacctmgr
%{_bindir}/salloc
%{_bindir}/sattach
%{_bindir}/sbatch
%{_bindir}/sbcast
%{_bindir}/scancel
%{_bindir}/scontrol
%{_bindir}/scrontab
%{_bindir}/sdiag
%{_bindir}/sh5util
%{_bindir}/sinfo
%{_bindir}/sprio
%{_bindir}/squeue
%{_bindir}/sreport
%{_bindir}/srun
%{_bindir}/sshare
%{_bindir}/sstat
%{_bindir}/strigger
%{_datadir}/bash-completion/completions/%{name}
%dir %{_localstatedir}/spool/%{name}/ctld
%dir %{_localstatedir}/spool/%{name}/d
%{_iconsdir}/hicolor/128x128/apps/%{name}.png
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/sacct.1*
%{_mandir}/man1/sacctmgr.1*
%{_mandir}/man1/salloc.1*
%{_mandir}/man1/sattach.1*
%{_mandir}/man1/sbatch.1*
%{_mandir}/man1/sbcast.1*
%{_mandir}/man1/scancel.1*
%{_mandir}/man1/scontrol.1*
%{_mandir}/man1/scrontab.1*
%{_mandir}/man1/sdiag.1*
%{_mandir}/man1/sh5util.1*
%{_mandir}/man1/sinfo.1*
%{_mandir}/man1/sprio.1*
%{_mandir}/man1/squeue.1*
%{_mandir}/man1/sreport.1*
%{_mandir}/man1/srun.1*
%{_mandir}/man1/sshare.1*
%{_mandir}/man1/sstat.1*
%{_mandir}/man1/strigger.1*
%{_mandir}/man5/acct_gather.conf.5*
%{_mandir}/man5/burst_buffer.conf.5*
%{_mandir}/man5/cgroup.conf.5*
%{_mandir}/man5/ext_sensors.conf.5*
%{_mandir}/man5/gres.conf.5*
%{_mandir}/man5/helpers.conf.5*
%{_mandir}/man5/job_container.conf.5*
%{_mandir}/man5/knl.conf.5*
%{_mandir}/man5/mpi.conf.5*
%{_mandir}/man5/%{name}.conf.5.*
%{_mandir}/man5/nonstop.conf.5*
%{_mandir}/man5/oci.conf.5*
%{_mandir}/man5/topology.conf.5*
%{_mandir}/man8/%{name}restd.8*
%{_mandir}/man8/spank.8.*
%{_tmpfilesdir}/%{name}.conf

%post
%tmpfiles_create %{name}.conf

#-----------------------------------------------------------------------------
# Base stuff
#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package contains the libraries and the plugins needed to run %{name}.

%files -n %{libname}
%doc COPYING
# Main libraries
%{_libdir}/lib%{name}.so.%{major}*
# Plugins
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/src
%{_libdir}/%{name}/accounting_storage_none.so
%{_libdir}/%{name}/acct_gather_energy_gpu.so
%{_libdir}/%{name}/acct_gather_energy_ibmaem.so
%{_libdir}/%{name}/acct_gather_energy_ipmi.so
%{_libdir}/%{name}/acct_gather_energy_none.so
%{_libdir}/%{name}/acct_gather_energy_pm_counters.so
%{_libdir}/%{name}/acct_gather_energy_rapl.so
%{_libdir}/%{name}/acct_gather_energy_xcc.so
%{_libdir}/%{name}/acct_gather_filesystem_lustre.so
%{_libdir}/%{name}/acct_gather_filesystem_none.so
%{_libdir}/%{name}/acct_gather_interconnect_none.so
%{_libdir}/%{name}/acct_gather_interconnect_sysfs.so
%{_libdir}/%{name}/acct_gather_profile_hdf5.so
%{_libdir}/%{name}/acct_gather_profile_influxdb.so
%{_libdir}/%{name}/acct_gather_profile_none.so
%{_libdir}/%{name}/burst_buffer_datawarp.so
%{_libdir}/%{name}/burst_buffer_lua.so
%{_libdir}/%{name}/cgroup_v1.so
%{_libdir}/%{name}/cgroup_v2.so
%{_libdir}/%{name}/cli_filter_lua.so
%{_libdir}/%{name}/cli_filter_none.so
%{_libdir}/%{name}/cli_filter_syslog.so
%{_libdir}/%{name}/cli_filter_user_defaults.so
%{_libdir}/%{name}/core_spec_cray_aries.so
%{_libdir}/%{name}/core_spec_none.so
%{_libdir}/%{name}/cred_munge.so
%{_libdir}/%{name}/cred_none.so
%{_libdir}/%{name}/ext_sensors_none.so
%{_libdir}/%{name}/ext_sensors_rrd.so
%{_libdir}/%{name}/gpu_generic.so
%{_libdir}/%{name}/gres_gpu.so
%{_libdir}/%{name}/gres_mps.so
%{_libdir}/%{name}/gres_nic.so
%{_libdir}/%{name}/gres_shard.so
%{_libdir}/%{name}/hash_k12.so
%{_libdir}/%{name}/jobacct_gather_cgroup.so
%{_libdir}/%{name}/jobacct_gather_linux.so
%{_libdir}/%{name}/jobacct_gather_none.so
%{_libdir}/%{name}/jobcomp_elasticsearch.so
%{_libdir}/%{name}/jobcomp_filetxt.so
%{_libdir}/%{name}/jobcomp_lua.so
%{_libdir}/%{name}/jobcomp_none.so
%{_libdir}/%{name}/jobcomp_script.so
%{_libdir}/%{name}/job_container_cncu.so
%{_libdir}/%{name}/job_container_none.so
%{_libdir}/%{name}/job_container_tmpfs.so
%{_libdir}/%{name}/job_submit_all_partitions.so
%{_libdir}/%{name}/job_submit_cray_aries.so
%{_libdir}/%{name}/job_submit_defaults.so
%{_libdir}/%{name}/job_submit_logging.so
%{_libdir}/%{name}/job_submit_lua.so
%{_libdir}/%{name}/job_submit_partition.so
%{_libdir}/%{name}/job_submit_require_timelimit.so
%{_libdir}/%{name}/job_submit_throttle.so
%{_libdir}/%{name}/launch_%{name}.so
%{_libdir}/%{name}/lib%{name}full.so
%{_libdir}/%{name}/lib%{name}_pmi.so
%{_libdir}/%{name}/mcs_account.so
%{_libdir}/%{name}/mcs_group.so
%{_libdir}/%{name}/mcs_none.so
%{_libdir}/%{name}/mcs_user.so
%{_libdir}/%{name}/mpi_cray_shasta.so
%{_libdir}/%{name}/mpi_none.so
%{_libdir}/%{name}/mpi_pmi2.so
%{_libdir}/%{name}/node_features_helpers.so
%{_libdir}/%{name}/node_features_knl_cray.so
%{_libdir}/%{name}/node_features_knl_generic.so
%{_libdir}/%{name}/openapi_dbv0_0_36.so
%{_libdir}/%{name}/openapi_dbv0_0_37.so
%{_libdir}/%{name}/openapi_dbv0_0_38.so
%{_libdir}/%{name}/openapi_v0_0_36.so
%{_libdir}/%{name}/openapi_v0_0_37.so
%{_libdir}/%{name}/openapi_v0_0_38.so
%{_libdir}/%{name}/power_cray_aries.so
%{_libdir}/%{name}/power_none.so
%{_libdir}/%{name}/preempt_none.so
%{_libdir}/%{name}/preempt_partition_prio.so
%{_libdir}/%{name}/preempt_qos.so
%{_libdir}/%{name}/prep_script.so
%{_libdir}/%{name}/priority_basic.so
%{_libdir}/%{name}/priority_multifactor.so
%{_libdir}/%{name}/proctrack_cgroup.so
%{_libdir}/%{name}/proctrack_linuxproc.so
%{_libdir}/%{name}/proctrack_pgid.so
%{_libdir}/%{name}/route_default.so
%{_libdir}/%{name}/route_topology.so
%{_libdir}/%{name}/sched_backfill.so
%{_libdir}/%{name}/sched_builtin.so
%{_libdir}/%{name}/select_cons_res.so
%{_libdir}/%{name}/select_cons_tres.so
%{_libdir}/%{name}/select_cray_aries.so
%{_libdir}/%{name}/select_linear.so
%{_libdir}/%{name}/serializer_json.so
%{_libdir}/%{name}/serializer_url_encoded.so
%{_libdir}/%{name}/site_factor_none.so
%{_libdir}/%{name}/src/*
%{_libdir}/%{name}/switch_cray_aries.so
%{_libdir}/%{name}/switch_none.so
%{_libdir}/%{name}/task_affinity.so
%{_libdir}/%{name}/task_cgroup.so
%{_libdir}/%{name}/task_cray_aries.so
%{_libdir}/%{name}/task_none.so
%{_libdir}/%{name}/topology_3d_torus.so
%{_libdir}/%{name}/topology_hypercube.so
%{_libdir}/%{name}/topology_none.so
%{_libdir}/%{name}/topology_tree.so

#-----------------------------------------------------------------------------

%package %{name}d
Summary:	Compute node daemon for %{name}
Group:		System/Cluster
Requires:	%{name} = %{EVRD}
Requires(post,preun,postun):	systemd
Requires(pre):	/bin/systemd-sysusers

%description %{name}d
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package contains the compute node daemon, used to launch jobs on compute
nodes.

%files %{name}d
%license COPYING
%ghost %{_localstatedir}/run/%{name}/%{name}d.pid
%{_mandir}/man8/%{name}d.8*
%{_mandir}/man8/%{name}stepd.8*
%{_sbindir}/%{name}d
%{_sbindir}/%{name}stepd
%{_sysusersdir}/%{name}.conf
%{_unitdir}/%{name}d.service

%pre
#create user and group
%sysusers_create_package %{name} %{SOURCE5}

%post %{name}d
%systemd_post %{name}d.service

%preun %{name}d
%systemd_preun %{name}d.service

%postun %{name}d
%systemd_postun_with_restart %{name}d.service

#-----------------------------------------------------------------------------

%package %{name}ctld
Summary:	The main control daemon for %{name}
Group:		System/Cluster
Requires:	%{name} = %{EVRD}
Requires(post,preun,postun):	systemd

%description %{name}ctld
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package contains the main control daemon.

%files %{name}ctld
%license COPYING
%ghost %{_localstatedir}/run/%{name}/%{name}ctld.pid
%{_libdir}/%{name}/%{name}ctld_nonstop.so
%{_mandir}/man8/%{name}ctld.8.*
%{_sbindir}/%{name}ctld
%{_unitdir}/%{name}ctld.service

%post %{name}ctld
%systemd_post %{name}ctld.service

%preun %{name}ctld
%systemd_preun %{name}ctld.service

%postun %{name}ctld
%systemd_postun_with_restart %{name}ctld.service

#-----------------------------------------------------------------------------

%package %{name}dbd
Summary:	Provides accounting of jobs in a database
Group:		System/Cluster
Requires:	%{name} = %{EVRD}
Requires(post,preun,postun):	systemd

%description %{name}dbd
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package provides accounting of jobs in a database.

%files %{name}dbd
%license COPYING
%config(noreplace) %{_sysconfdir}/%{name}/%{name}dbd.conf
%ghost %{_localstatedir}/run/%{name}/%{name}dbd.pid
%{_libdir}/%{name}/accounting_storage_%{name}dbd.so
%{_mandir}/man5/%{name}dbd.conf.5.*
%{_mandir}/man8/%{name}dbd.8.*
%{_sbindir}/%{name}dbd
%{_sysconfdir}/%{name}/%{name}dbd.conf.example
%{_unitdir}/%{name}dbd.service

%post %{name}dbd
%systemd_post %{name}dbd.service

%preun %{name}dbd
%systemd_preun %{name}dbd.service

%postun %{name}dbd
%systemd_postun_with_restart %{name}dbd.service

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for SLURM
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
%rename	%{name}-devel

%description -n %{devname}
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package includes the header files and libraries for the SLURM API.

%files -n %{devname}
%license COPYING
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/lib%{name}.so
%exclude %{_includedir}/%{name}/pmi*.h

#-----------------------------------------------------------------------------

%package auth-none
Summary:	Auth NULL implementation (no authentication)
Group:		System/Cluster
Requires:	%{name} = %{EVRD}

%description auth-none
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package contains the NULL authentication module.

%files auth-none
%license COPYING
%{_libdir}/%{name}/auth_none.so

#-----------------------------------------------------------------------------

%package gui
Summary:	Graphical interface for %{name}
Group:		System/Cluster
Requires:	%{name} = %{EVRD}
%rename	%{name}-sview

%description gui
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package contains a graphical user interface to get and update state
information for jobs, partitions, and nodes managed by SLURM.

%files gui
%license COPYING
%{_bindir}/sview
%{_datadir}/applications/%{name}-sview.desktop
%{_mandir}/man1/sview.1*

#-----------------------------------------------------------------------------

%package db-mysql
Summary:	Plugin to use MySQL
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description db-mysql
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package contains a plugin to use a MySQL database for job accounting.

%files db-mysql
%license COPYING
%{_libdir}/%{name}/accounting_storage_mysql.so
%{_libdir}/%{name}/jobcomp_mysql.so

#-----------------------------------------------------------------------------

%package auth-munge
Summary:	Plugin to use munge authentication
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	munge

%description auth-munge
SLURM is an open source, fault-tolerant, and highly scalable cluster
management and job scheduling system for Linux clusters.
This package contains a plugin to use munge authentication.

%files auth-munge
%license COPYING
%{_libdir}/%{name}/auth_munge.so

#-----------------------------------------------------------------------------
# Contributed stuff
#-----------------------------------------------------------------------------

%package	contribs
Summary:	Perl tools to print Slurm job state information
Group:		System/Cluster
Requires:	%{name}-perlapi = %{EVRD}

%description contribs
This package includes the programs seff, sjobexitmod, sjstat and smail.
See their respective man pages for more information.

%files contribs
%doc contribs/lua/*.lua contribs/README
%license COPYING
%{_bindir}/seff
%{_bindir}/sgather
%{_bindir}/sjobexitmod
%{_bindir}/sjstat
%{_bindir}/smail
%{_mandir}/man1/sgather.1*
%{_mandir}/man1/sjobexitmod.1*
%{_mandir}/man1/sjstat.1*

#-----------------------------------------------------------------------------

# NOTE: This package will conflict with pmix
%package pmi
Summary:	The %{name} implementation of libpmi and libpmi2
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description pmi
This package contains the %{name} implementation of the libpmi and libpmi2
libraries.

%files pmi
%license COPYING
%{_libdir}/libpmi2.so.0*
%{_libdir}/libpmi.so.0*

#-----------------------------------------------------------------------------

# NOTE: This package will conflict with pmix-devel
%package pmi-devel
Summary:	Development files for %{name}-pmi
Provides:	%{name}-pmi-devel = %{EVRD}
Requires:	%{name}-pmi = %{EVRD}

%description pmi-devel
This package contains the development files for the libpmi and libpmi2
libraries used by %{name}.

%files pmi-devel
%license COPYING
%{_includedir}/%{name}/pmi*.h
%{_libdir}/libpmi2.so
%{_libdir}/libpmi.so

#-----------------------------------------------------------------------------

%package nss_%{name}
Summary:	NSS plugin for slurm
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description nss_%{name}
An optional NSS plugin that can permit passwd and group resolution for a job
on the compute node to be serviced through the local slurmstepd process,
rather than through some alternate network-based service such as LDAP, SSSD
or NSLCD.

%files nss_%{name}
%license COPYING
%{_libdir}/libnss_%{name}.so.2

#-----------------------------------------------------------------------------

%package openlava
Summary:	Openlava/LSF wrappers for transition from OpenLava to %{name}
Group:		System/Cluster
Requires:	%{name} = %{EVRD}
Requires:	%{name}-perlapi = %{version}-%{release}

%description openlava
Wrapper scripts used for helping migrate from OpenLava/LSF to %{name}.

%files openlava
%license COPYING
%{_bindir}/bjobs
%{_bindir}/bkill
%{_bindir}/bsub
%{_bindir}/lsid
%{_mandir}/man1/bjobs.1*
%{_mandir}/man1/bkill.1*
%{_mandir}/man1/bsub.1*
%{_mandir}/man1/lsid.1*

#-----------------------------------------------------------------------------

%package pam_%{name}
Summary:	PAM module for restricting access to compute nodes
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description pam_%{name}
This module restricts access to compute nodes in a cluster where %{name} is
in use. Access is granted to root, any user with a Slurm-launched job
currently running on the node, or any user who has allocated resources on the
node according to Slurm.

%files pam_%{name}
%license COPYING
/%{_lib}/security/pam_%{name}_adopt.so
/%{_lib}/security/pam_%{name}.so

#-----------------------------------------------------------------------------

%package perlapi
Summary:	Perl bindings for %{name}
Group:		Development/Perl
Requires:	%{name} = %{EVRD}
Requires:	perl >= %{perl_version}

%description perlapi
Perl bindings for %{name}: this package provides a helpful interface to
%{name} through Perl.

%files perlapi
%license COPYING
%dir %{perl_vendorarch}/auto/Slurm
%dir %{perl_vendorarch}/auto/Slurmdb
%dir %{perl_vendorarch}/Slurm
%{_mandir}/man3/Slurm*.3pm*
%{perl_vendorarch}/auto/Slurmdb/autosplit.ix
%{perl_vendorarch}/auto/Slurmdb/Slurmdb.so
%{perl_vendorarch}/auto/Slurm/Slurm.so
%{perl_vendorarch}/Slurmdb.pm
%{perl_vendorarch}/Slurm.pm
%{perl_vendorarch}/Slurm/*.pm

#-----------------------------------------------------------------------------

%package torque
Summary: Torque/PBS wrappers for transition from Torque/PBS to %{name}
Group:		System/Cluster
Requires:	%{name} = %{EVRD}
Requires:	%{name}-perlapi = %{EVRD}

%description torque
Wrapper scripts used for helping migrate from Torque/PBS to %{name}.

%files torque
%license COPYING
%{_bindir}/generate_pbs_nodefile
%{_bindir}/mpiexec
%{_bindir}/pbsnodes
%{_bindir}/qalter
%{_bindir}/qdel
%{_bindir}/qhold
%{_bindir}/qrerun
%{_bindir}/qrls
%{_bindir}/qstat
%{_bindir}/qsub
%{_libdir}/%{name}/job_submit_pbs.so
%{_libdir}/%{name}/spank_pbs.so
%{_mandir}/man1/mpiexec.1*
%{_mandir}/man1/pbsnodes.1*
%{_mandir}/man1/qalter.1*
%{_mandir}/man1/qdel.1*
%{_mandir}/man1/qhold.1*
%{_mandir}/man1/qrerun.1*
%{_mandir}/man1/qrls.1*
%{_mandir}/man1/qstat.1*
%{_mandir}/man1/qsub.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
autoreconf -vfi
%configure	\
%ifarch %{ix86}
	--enable-deprecated	\
%endif
	--enable-x11		\
	--disable-developer	\
	--disable-static	\
	--docdir=%{_docdir}/%{name}		\
	--sysconfdir=%{_sysconfdir}/%{name}	\
	--without-nvml		\
	--without-rpath
# Build the main stuff
%make

# Build contrib stuff
make PERL_MM_PARAMS="INSTALLDIRS=vendor" contrib

%install
# Install main program
%makeinstall_std

# Install contrib stuff
make DESTDIR=%{buildroot} install-contrib

# Prepare needed dirs
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}
install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
install -d -m 0755 %{buildroot}%{_unitdir}
install -d -m 0755 %{buildroot}%{_tmpfilesdir}
install -d -m 0755 %{buildroot}%{_localstatedir}/run/%{name}
install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name}
install -d -m 0755 %{buildroot}%{_localstatedir}/spool/%{name}/ctld
install -d -m 0755 %{buildroot}%{_localstatedir}/spool/%{name}/d
install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/128x128/apps
install -d -m 0755 %{buildroot}%{_datadir}/applications
install -d -m 0755 %{buildroot}%{_datadir}/bash-completion/completions

# Install our custom config files and the sample config one from sources
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/
install -m644 etc/%{name}.conf.example %{buildroot}%{_sysconfdir}/%{name}/
install -m644 etc/%{name}dbd.conf.example %{buildroot}%{_sysconfdir}/%{name}/

# Install .service files for the various daemons
install -m 0644 etc/%{name}ctld.service %{buildroot}%{_unitdir}/
install -m 0644 etc/%{name}d.service %{buildroot}%{_unitdir}/
install -m 0644 etc/%{name}dbd.service %{buildroot}%{_unitdir}/

# Prepare .pid files
touch %{buildroot}%{_localstatedir}/run/%{name}/%{name}d.pid
touch %{buildroot}%{_localstatedir}/run/%{name}/%{name}ctld.pid
touch %{buildroot}%{_localstatedir}/run/%{name}/%{name}dbd.pid

# Provide a tmpfiles.d file for creating /var/run/slurm dir after reboot
cat  >%{buildroot}%{_tmpfilesdir}/%{name}.conf <<EOF
D %{_localstatedir}/run/%{name} 0755 root root -
EOF

# Provide a logrotate.d file
cat >%{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
%{_localstatedir}/log/%{name}/* {
    missingok
    notifempty
    copytruncate
    rotate 5
}
EOF

# Install icon and .desktop file for GUI
install -m 0644 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE3}

# Install bash-completion support from contribs
install -m 0644 contribs/%{name}_completion_help/%{name}_completion.sh %{buildroot}%{_datadir}/bash-completion/completions/%{name}

# Install another tool from contribs
install -m 0755 contribs/sjstat %{buildroot}%{_bindir}/sjstat

# Build and install man pages for contribs perl scripts
for prog in sjobexitmod sjstat mpiexec pbsnodes qalter qdel qhold qrerun qrls \
	qstat qsub bjobs bkill bsub lsid
do
	rm -f %{buildroot}%{_mandir}/man1/${prog}.1
	pod2man %{buildroot}%{_bindir}/${prog} > %{buildroot}%{_mandir}/man1/${prog}.1
done

#install sysusers config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE5} %{buildroot}%{_sysusersdir}/%{name}.conf

# Delete unwanted files:
# libtool archives
find %{buildroot} -name \*.a -o -name \*.la | xargs rm -f
# unwanted doc directory (we pick them with %%doc)
rm -rf %{buildroot}/%{_docdir}/%{name}-%{version}-%{ups_rel}/
# libslurmfull symlink (non-development, internal library)
rm -rf %{buildroot}%{_libdir}/lib%{name}full.so
# perl cruft
rm -f %{buildroot}%{perl_vendorarch}/auto/Slurm*/.packlist
rm -f %{buildroot}%{perl_vendorarch}/auto/Slurm*/Slurm*.bs
rm -f %{buildroot}%{perl_archlib}/perllocal.pod
# stuff for Cray supercomputer
rm -f %{buildroot}%{_sbindir}/capmc_*
rm -f %{buildroot}%{_sbindir}/%{name}smwd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8789 |21cr|slurp-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           slurp
Version:	1.3.2
Release:	1
Summary:        Wayland region selector
Group:		Graphical desktop/Other
License:        MIT
URL:            https://github.com/emersion/slurp
Source0:        https://github.com/emersion/slurp/archive/v%{version}.tar.gz
BuildRequires:  meson >= 0.48.0
BuildRequires:  scdoc
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols) >= 1.14

%description
Tool to select a region in a Wayland compositor.
Meant to be used with a tool called grim.

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -I/usr/include/wayland"
%meson
%meson_build

%install
%meson_install

%files
%{_bindir}/slurp
%{_mandir}/man1/slurp.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8790 |21cr|slv2-0.6.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 9
%define	libname %mklibname %{name} _%{major}
%define	devname %mklibname %{name} -d

Summary:	A library for simple use of LV2 plugins
Name:		slv2
Version:	0.6.6
Release:	13
License:	GPLv2+
Group:		System/Libraries
Url:		http://wiki.drobilla.net/SLV2
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.bz2
Patch0:		slv2-0.6.6-ladspa2lv2_fix.diff
Patch1:		slv2-0.6.6-gcc46linking.diff
BuildRequires:	doxygen
BuildRequires:	python2
BuildRequires:	waf
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(lrdf)
BuildRequires:	pkgconfig(lv2core)
BuildRequires:	pkgconfig(raptor2)
BuildRequires:	pkgconfig(rasqal)
BuildRequires:	pkgconfig(redland)

%description
SLV2 is a library geared towards music and audio applications which makes the
use of LV2 plugins <http://lv2plug.in> as simple as possible.

This binary package contains various binaries:

 o lv2_inspect - Display information about an LV2 plugin.
 o lv2_jack_host - SLV2 Jack Host.
 o lv2_list - List system installed LV2 plugins.
 o lv2_simple_jack_host - SLV2 Simple Jack Host Example.

%files
%doc README
%{_bindir}/ladspa2lv2
%{_bindir}/lv2_inspect
%{_bindir}/lv2_jack_host
%{_bindir}/lv2_list
%{_bindir}/lv2_simple_jack_host
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for simple use of LV2 plugins
Group:		System/Libraries

%description -n %{libname}
SLV2 is a library geared towards music and audio applications which makes the
use of LV2 plugins <http://lv2plug.in> as simple as possible.

%files -n %{libname}
%doc AUTHORS README
%{_libdir}/libslv2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files (headers) for SLV2
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files required for compiling programs which use SLV2, and developer
documentation.

%files -n %{devname}
%doc build/default/doc/html/*
%{_includedir}/slv2/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/slv2.pc
%{_docdir}/%{name}/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0

# antiborker
perl -pi -e "s|/sbin/ldconfig|/bin/true|g" *.py

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" *.py

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"

python2 ./waf configure \
    --prefix=%{_prefix} \
    --libdir=%{_libdir}/ \
    --mandir=%{_mandir} \
    --build-docs

python2 ./waf build --verbose

%install
DESTDIR=%{buildroot} python2 ./waf install --verbose

chmod 0755 %{buildroot}%{_libdir}/libslv2.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8791 |21cr|smapi-2.4.0-0.rc5.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define preversion %(echo %{release} |cut -d. -f 2)

%define major 2.4
%define libname %mklibname %name %major

Summary:	MsgAPI for the Husky-Packages
Name:		smapi
Version:	2.4.0
Release:	0.rc5.5
License:	GPL
Group:		System/Libraries
Source0:		%{name}-%{major}-%{preversion}.tar.bz2
Patch0:		smapi-20021015-main.patch
Patch1:		smapi-Makefile.diff
patch2:		smapi-2.4-rc5.huskymap.patch
URL:		http://sourceforge.net/projects/husky/
BuildRequires:	huskybse

%description
smapi is a modified message api for *.MSG, SQUISH (C) and JAM-Messagebase
formats. It is required for all other Husky-Software.

%package -n %libname
Summary:        MsgAPI for the Husky-Packages
Group: System/Libraries
Provides: lib%name = %version-%release

%description -n %libname
smapi is a modified message api for *.MSG, SQUISH (C) and JAM-Messagebase
formats. It is required for all other Husky-Software.

%package -n %libname-devel
Summary: MsgAPI for the Husky-Packages, development files
Group: Development/Other
Requires: %{libname} = %{version}-%{release}
Provides: %name-devel = %version-%release
Provides: lib%name-devel = %version-%release

%description -n %libname-devel
smapi is a modified message api for *.MSG, SQUISH (C) and JAM-Messagebase
formats. It is required for all other Husky-Software.

This Package holds the Development files. Only needed if you want to compile
other Husky-Packages.

%prep
%setup -q -n %name
#% patch0 -p1
%patch1 -p1
%patch2 -p1 -b .huskymak

%build
%make OPTCFLAGS="$RPM_OPT_FLAGS -fPIC -s -c"

%install
install -d $RPM_BUILD_ROOT%{_includedir}/smapi/                                                                
%make INCDIR=$RPM_BUILD_ROOT%{_includedir} LIBDIR=$RPM_BUILD_ROOT%{_libdir} install
install -m 644 cvsdate.h $RPM_BUILD_ROOT%{_includedir}/smapi/

chmod 755 $RPM_BUILD_ROOT%{_libdir}/*.so*

%files -n %libname
%defattr(-,root,root)
%doc BEOS.TXT BUGS COPYING ChangeLog HISTORY INSTALL LICENSE TODO VERSION file_id.diz readme.txt
%{_libdir}/libsmapi.so.*

%files -n %libname-devel
%defattr(-,root,root)
%{_includedir}/smapi
%{_libdir}/*.so
%{_libdir}/libsmapi.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8792 |21cr|smartcar-2.3-0.git67a9db.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 67a9dbd3ab0ea97cb77fdbc33d38f32f81170d30
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8):	Графическое приложение для УМКИ — Управляемый Машинный Конструктор Инженерный
Summary:	Frontend to UMKI - Radio Controlled Robotic Construction Set
Name:		smartcar
Version:	2.3
Release:	0.git%{commit_short}.1
License:	GPL
Group:		Education
Url:		https://github.com/woronin/smartcar

Source0:	https://github.com/woronin/smartcar/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.desktop
Source2:	%{name}.svg

BuildRequires: desktop-file-utils
BuildRequires: gcc-c++
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Xml)

%description
UMKI in Russian stands for Radio Controlled Robotic Construction Set,
Innovative. It helps children to design robots and learn to control
them.
http://umki.vinforika.ru/

%description -l ru_RU.UTF-8
Управляемый Машинный Конструктор Инженерный (УМКИ) — это школьный
учебно-методический комплект образовательной робототехники,
включающий в себя группу мобильных роботов SmartCar,
каждый из которых снабжен центральным процессором либо AVR — ATmega8L,
либо ARM — CORTEX M8, а так же модулем связи Xbee либо Bluetooth.
При помощи этого модуля становится возможным объединение
всех передвижных роботов в распределенную MESH сеть
по протоколу ZigBee или Bluetooth для изучения основных принципов
управления группой автономных мобильных роботов.
http://umki.vinforika.ru/

%files
%doc readme*
%doc umkiguide.pdf
%{_bindir}/%{name}
%{_sysconfdir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%qmake_qt5 smartcar.pro
%make_build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps

install -p -m755 %{name} %{buildroot}%{_bindir}
install -p -m644 smart.ini %{buildroot}%{_sysconfdir}/%{name}
install -p -m644 umki_logo.png %{buildroot}%{_datadir}/%{name}
install -p -m644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/scalable/apps
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8793 |21cr|smbldap-tools-0.9.5-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	User & Group administration tools for Samba-OpenLDAP

Name: 		smbldap-tools
Version: 	0.9.5
Release: 	14
Group: 		System/Servers
License: 	GPL
URL:		https://gna.org/projects/smbldap-tools/
Source0: 	http://download.gna.org/smbldap-tools/packages/%{name}-%{version}.tgz
Source1: 	mkntpwd.tar.bz2
Patch0:		smbldap-tools-mdvconfig.diff
Patch1:		smbldap-tools-utf-8.patch
Requires:	perl-IO-Socket-SSL
#BuildRequires:	perl-doc

%description
Smbldap-tools is a set of perl scripts written by Idealx. Those scripts are
designed to help managing users and groups in a ldap directory server and
can be used both by users and administrators of Linux systems:
. users can change their password in a way similar to the standard
  "passwd" command,
. administrators can perform users and groups management

Scripts are described in the Smbldap-tools User Manual
(http://samba.idealx.org/smbldap-tools.en.html) which also give command
line examples.
You can download the latest version on Idealx web site
(http://samba.idealx.org/dist/).
Comments and/or questions can be sent to the smbldap-tools mailing list
(http://lists.idealx.org/lists/samba).

%prep

%setup -q -a1
%patch0 -p0 -b .mdvconf
%patch1 -p1 -b .utf8

# nuke that IDEALX stuff from the code
for i in `find -type f`; do
    perl -pi -e "s|/etc/opt/IDEALX/smbldap-tools/|%{_sysconfdir}/smbldap-tools/|g; \
    s|/opt/IDEALX/bin:||g; \
    s|/opt/IDEALX/sbin|%{_sbindir}|g" $i
done

%build
%serverbuild

pushd mkntpwd
%make CFLAGS="$CFLAGS"
popd

# make some manpages
for i in smbldap-groupadd smbldap-groupdel smbldap-groupmod smbldap-groupshow smbldap-passwd \
    smbldap-populate smbldap-useradd smbldap-userdel smbldap-userinfo smbldap-usermod smbldap-usershow; do
    perldoc $i > $i.1
done

%install

install -d %{buildroot}%{_sysconfdir}/smbldap-tools
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{perl_vendorlib}
install -d %{buildroot}%{_mandir}/man1

install -m0644 smbldap.conf %{buildroot}%{_sysconfdir}/smbldap-tools/
install -m0600 smbldap_bind.conf %{buildroot}%{_sysconfdir}/smbldap-tools/
install -m0644 smbldap_tools.pm %{buildroot}%{perl_vendorlib}/

install -m0755 smbldap-groupadd %{buildroot}%{_sbindir}/
install -m0755 smbldap-groupdel %{buildroot}%{_sbindir}/
install -m0755 smbldap-groupmod %{buildroot}%{_sbindir}/
install -m0755 smbldap-groupshow %{buildroot}%{_sbindir}/
install -m0755 smbldap-passwd %{buildroot}%{_sbindir}/
install -m0755 smbldap-populate %{buildroot}%{_sbindir}/
install -m0755 smbldap-useradd %{buildroot}%{_sbindir}/
install -m0755 smbldap-userdel %{buildroot}%{_sbindir}/
install -m0755 smbldap-userinfo %{buildroot}%{_sbindir}/
install -m0755 smbldap-usermod %{buildroot}%{_sbindir}/
install -m0755 smbldap-usershow %{buildroot}%{_sbindir}/
install -m0755 mkntpwd/mkntpwd %{buildroot}%{_sbindir}/
install -m0644 smbldap-*.1 %{buildroot}%{_mandir}/man1/

%clean

%files
%doc CONTRIBUTORS COPYING ChangeLog INFRA INSTALL README TODO doc
%doc smbldap.conf smbldap_bind.conf configure.pl
%dir %{_sysconfdir}/smbldap-tools
%config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap.conf
%config(noreplace) %{_sysconfdir}/smbldap-tools/smbldap_bind.conf
%{_sbindir}/*
%{perl_vendorlib}/smbldap_tools.pm
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8794 |21cr|smokegen-4.14.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scripting MetaObject Kompiler Engine tools
Name:		smokegen
Version:	4.14.3
Release:	7
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
%define is_beta %(if test `echo %version |cut -d. -f3` -ge 70; then echo -n 1; else echo -n 0; fi)
%if %{is_beta}
%define ftpdir unstable
%else
%define ftpdir stable
%endif
Source:		ftp://ftp.kde.org/pub/kde/%{ftpdir}/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	kdelibs4-devel

%description
SMOKE provides infrastructure which is used for creating bindings for
multiple languages such as Ruby, C# and PHP.

This package contains the development tools to do bindings with the
Scripting MetaObject Kompiler Engine, used by several Qt and KDE bindings,
as well as some bindings for the Wt library.

#------------------------------------------------------------

%define libsmokebase_major 3
%define libsmokebase %mklibname smokebase %{libsmokebase_major}

%package -n %{libsmokebase}
Summary:	smokegen Library
Group:		Development/KDE and Qt
Conflicts:	%{_lib}smokeqt3 <= 1:4.5.80-1

%description -n %{libsmokebase}
smokegen Library

%files -n %{libsmokebase}
%{_kde_libdir}/libsmokebase.so.%{libsmokebase_major}*

#------------------------------------------------------------

%package devel
Summary:	Header files for %{name}
Group:		Development/KDE and Qt
Conflicts:	smoke4-devel < 1:4.6.90
Requires:	kdelibs4-devel
Requires:	%{libsmokebase} = %{EVRD}

%description devel
Header files for %{name}

%files devel
%{_kde_bindir}/smokegen
%{_kde_bindir}/smokeapi
%{_kde_libdir}/libcppparser.so
%{_kde_libdir}/libsmokebase.so
%{_kde_includedir}/smokegen/generatorenvironment.h
%{_kde_includedir}/smokegen/generator_export.h
%{_kde_includedir}/smokegen/generatorpreprocessor.h
%{_kde_includedir}/smokegen/generatorvisitor.h
%{_kde_includedir}/smokegen/name_compiler.h
%{_kde_includedir}/smokegen/options.h
%{_kde_includedir}/smokegen/type_compiler.h
%{_kde_includedir}/smokegen/type.h
%{_kde_includedir}/smoke.h
%{_kde_datadir}/smokegen
%{_kde_libdir}/smokegen/generator_smoke.so
%{_kde_libdir}/smokegen/generator_dump.so
%{_kde_datadir}/smoke/cmake/SmokeConfig.cmake
%{_kde_datadir}/smoke/cmake/FindLibraryWithDebug.cmake
%{_kde_datadir}/smoke/cmake/FindPhonon.cmake
%{_kde_datadir}/smoke/cmake/FindQImageBlitz.cmake
%{_kde_datadir}/smoke/cmake/FindQScintilla.cmake
%{_kde_datadir}/smoke/cmake/FindQwt5.cmake
%{_kde_datadir}/smoke/cmake/HandleImportedTargetsInCMakeRequiredLibraries.cmake
%{_kde_datadir}/smoke/cmake/MacroLogFeature.cmake
%{_kde_datadir}/smoke/cmake/MacroOptionalAddBindings.cmake
%{_kde_datadir}/smoke/cmake/MacroOptionalFindPackage.cmake
%{_kde_datadir}/smoke/cmake/SmokeVersionConfig.cmake

#------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8795 |21cr|smokeping-2.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?filter_setup:
%filter_provides_in %{_datadir}/%{name}/
%filter_from_requires /perl(Authen::.*)/d; /perl(Net::OpenSSH)/d; /Smokeping/d
%filter_setup
}

Summary:          Latency Logging and Graphing System
Group:            Networking/WWW
Name:             smokeping
Version:          2.8.2
Release:          1
License:          GPLv2+
URL:              https://oss.oetiker.ch/smokeping/
Source0:          https://oss.oetiker.ch/smokeping/pub/smokeping-%{version}.tar.gz
Source1:          smokeping.service
Source2:          smokeping-httpd.conf.d
Source3:          http://oss.oetiker.ch/smokeping-demo/img/smokeping.png
Source4:          http://oss.oetiker.ch/smokeping-demo/img/rrdtool.png
Source5:          smokeping-tmpfs.conf
Source6:          smokeping-fix-ownership
Source7:          README.fedora
Source8:          smokeping.sysusers.conf
Patch0:           smokeping-2.8.2-paths.patch
Patch1:           smokeping-2.7.0-config.patch
Patch2:           smokeping-2.6.7-silence.patch
Patch3:           smokeping-2.8.2-no-3rd-party.patch
Patch4:           smokeping-2.8.2-remove-date.patch
BuildRequires:    /usr/bin/pod2man
BuildRequires:    perl(Authen::Radius)
BuildRequires:    perl(CGI)
BuildRequires:    perl(CGI::Fast)
BuildRequires:    perl(Config::Grammar)
BuildRequires:    perl(Data::Dumper)
BuildRequires:    perl(Digest::HMAC_MD5)
BuildRequires:    perl(Digest::MD5)
BuildRequires:    perl(ExtUtils::MakeMaker)
BuildRequires:    perl(ExtUtils::Manifest)
BuildRequires:    perl(FCGI)
BuildRequires:    perl(File::Basename)
BuildRequires:    perl(Getopt::Long)
BuildRequires:    perl(IO::Pty)
BuildRequires:    perl(IO::Socket::SSL)
BuildRequires:    perl(LWP)
BuildRequires:    perl(LWP::UserAgent)
BuildRequires:    perl(Net::DNS)
BuildRequires:    perl(Net::LDAP)
BuildRequires:    perl(Net::OpenSSH)
BuildRequires:    perl(Net::SNMP)
BuildRequires:    perl(Net::Telnet)
BuildRequires:    perl(POSIX)
BuildRequires:    perl(Pod::Usage)
BuildRequires:    perl(RRDs)
BuildRequires:    perl(SNMP_Session)
BuildRequires:    perl(SNMP_util) >= 1.13
BuildRequires:    perl(Safe)
BuildRequires:    perl(Socket6)
BuildRequires:    perl(Storable)
BuildRequires:    perl(Sys::Hostname)
BuildRequires:    perl(Sys::Syslog)
BuildRequires:    perl(Time::HiRes)
BuildRequires:    perl(URI::Escape)
BuildRequires:    perl(strict)
BuildRequires:    perl(vars)
BuildRequires:    perl(warnings)
BuildRequires:    perl-generators
BuildRequires:    systemd-units
BuildRequires:    autoconf
Requires:         findutils
Requires:         fping >= 2.4b2
# only httpd supported without config changes
Requires:         httpd
Requires:         apache-mod_fcgid
# not picked up for some reason
Requires:         perl(Config::Grammar)
Requires:         perl(SNMP_util) >= 1.13
Requires:         perl-interpreter >= 5.6.1
Requires:         rrdtool >= 1.0.33
Requires:         traceroute
Requires(pre):    httpd
Requires(pre):    /bin/systemd-sysusers
BuildArch:        noarch

%description
SmokePing is a latency logging and graphing system. It consists of a
daemon process which organizes the latency measurements and a CGI
which presents the graphs.

%prep
%autosetup -p1
install -p -m 0644 %{SOURCE7} .
iconv -f ISO-8859-1 -t utf-8 -o CHANGES.utf8 CHANGES
touch -r CHANGES CHANGES.utf8 
mv CHANGES.utf8 CHANGES

# remove some external modules
rm -f lib/{SNMP_Session,SNMP_util,BER}.pm
rm -rf thirdparty/
[ -e VERSION ] || echo %{version} > VERSION

%build
autoreconf --force --install --verbose --make

%configure --with-htdocs-dir=%{_datadir}/smokeping/htdocs \
    --disable-silent-rules

%install
make install DESTDIR=%{buildroot}

# Some additional dirs and files
install -d %{buildroot}%{_localstatedir}/lib/smokeping/{rrd,images} \
    %{buildroot}/run/smokeping %{buildroot}%{_datadir}/smokeping/cgi
install -Dp -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/smokeping.service
install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/smokeping.conf
install  -p -m 0644 %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/smokeping/htdocs
install -Dp -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/smokeping.conf
install -Dp -m 0755 %{SOURCE6} %{buildroot}%{_libexecdir}/smokeping-fix-ownership

# Fix some files
for f in config basepage.html smokemail tmail smokeping_secrets ; do
    mv %{buildroot}%{_sysconfdir}/smokeping/$f.dist \
       %{buildroot}%{_sysconfdir}/smokeping/$f
done
mv %{buildroot}%{_sysconfdir}/smokeping/examples __examples
mv %{buildroot}%{_bindir}/smokeping_cgi %{buildroot}%{_datadir}/smokeping/cgi
ln -s smokeping_cgi %{buildroot}%{_datadir}/smokeping/cgi/smokeping.fcgi
rm -f %{buildroot}%{_datadir}/smokeping/htdocs/smokeping.fcgi.dist

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE8} %{buildroot}%{_sysusersdir}/smokeping.conf

%pre
# create user and add it to apache group
%sysusers_create_package smokeping %{SOURCE8}

%post
%systemd_post smokeping.service

%preun
%systemd_preun smokeping.service

%postun
%systemd_postun_with_restart smokeping.service

%files
%license COPYRIGHT LICENSE
%doc CHANGES CONTRIBUTORS README.md TODO README.fedora
%doc __examples/*
%{_sbindir}/smokeping
%{_bindir}/smokeinfo
%{_bindir}/tSmoke
%{_libexecdir}/smokeping-fix-ownership
%{_unitdir}/smokeping.service
%dir %{_sysconfdir}/smokeping
%attr(0640, root, apache) %config(noreplace) %{_sysconfdir}/smokeping/config
%config(noreplace) %{_sysconfdir}/smokeping/basepage.html
%config(noreplace) %{_sysconfdir}/smokeping/smokemail
%attr(0640, root, root) %config(noreplace) %{_sysconfdir}/smokeping/smokeping_secrets
%config(noreplace) %{_sysconfdir}/smokeping/tmail
%config(noreplace) %{_sysconfdir}/httpd/conf.d/smokeping.conf
%{_tmpfilesdir}/smokeping.conf
%{_datadir}/smokeping
%dir %{_localstatedir}/lib/smokeping
%attr(0755, smokeping, apache) %{_localstatedir}/lib/smokeping/rrd
%attr(0755, smokeping, apache) /run/smokeping
%attr(0755, apache, apache) %{_localstatedir}/lib/smokeping/images
%{_mandir}/man1/smokeping*.1*
%{_mandir}/man1/smokeinfo*.1*
%{_mandir}/man1/tSmoke.1*
%{_mandir}/man3/Smokeping_*.3*
%{_mandir}/man5/smokeping_*.5*
%{_mandir}/man7/smokeping_*.7*
%{_sysusersdir}/smokeping.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8796 |21cr|smooth-rospo-sound-theme-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Smooth-Rospo

Summary:	Sound scheme Smooth-ROSPO
Name:		smooth-rospo-sound-theme
Version:	1.2
Release:	1
License:	GPLv3+
Group:		Sound
Url:		https://vk.com/xfce_rospo
Source0:	%{oname}-%{version}.tar.gz
BuildArch:	noarch

%description
Fork sound scheme Smooth for ROSA Linux XFCE

%files
%dir %{_datadir}/sounds/Smooth-Rospo
%dir %{_datadir}/sounds/Smooth-Rospo/stereo
%{_datadir}/sounds/Smooth-Rospo/index.theme
%{_datadir}/sounds/Smooth-Rospo/stereo/*

%prep
%setup -qn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/sounds/Smooth-Rospo/stereo
cp index.theme %{buildroot}%{_datadir}/sounds/Smooth-Rospo/
cp stereo/* %{buildroot}%{_datadir}/sounds/Smooth-Rospo/stereo/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8797 |21cr|smpeg2-2.0.0-1.3496f5.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 3496f57c254ae0a6ad2063fc266785471de4219b
%define git 3496f5

%define major 0
%define api 2.0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	SDL MPEG Library
Name:		smpeg2
Version:	2.0.0
Release:	1.%{git}.3
License:	LGPLv2+
Group:		Video
Url:		http://icculus.org/smpeg/
Source0:	https://github.com/Distrotech/smpeg/archive/%{commit}.zip?/smpeg-%{git}.zip
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(sdl2)

%description
SMPEG is based on UC Berkeley's mpeg_play software MPEG decoder and SPLAY,
an mpeg audio decoder created by Woo-jae Jung. We have completed the
initial work to wed these two projects in order to create a general
purpose MPEG video/audio player for the Linux OS.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc README
%{_libdir}/libsmpeg2-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
#gw smpeg2-config calls sdl-config
Requires:	pkgconfig(sdl2)
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc CHANGES README
%license COPYING
%{_bindir}/smpeg2-config
%{_includedir}/*
%{_libdir}/libsmpeg2.so
%{_datadir}/aclocal/smpeg2.m4

#----------------------------------------------------------------------------

%package tools
Summary:	Command line tools for working with %{name}
Group:		Video
Requires:	%{libname} = %{EVRD}

%description tools
Command line tools for working with %{name}

%files tools
%{_bindir}/plaympeg
%exclude %{_mandir}/man1/gtv*
%{_mandir}/man1/plaympeg*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n smpeg-%{commit}

%build
%global optflags %{optflags} -Wno-error=narrowing
%configure \
	--disable-debug		\
	--disable-static	\
	--with-sdl-prefix=%{_prefix}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8798 |21cr|smplayer-skins-20.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		smplayer-skins
Version:	20.11.0
Release:	1
Epoch:		1
Summary:	Skins for SMPlayer
# Actually, various
License:	GPLv2
Group:		Video
URL:		http://smplayer.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	qt4-devel
Requires:	smplayer >= 0.8.2
BuildArch:	noarch

%description
This package provides skin themes for SMPlayer.

SMPlayer intends to be a complete front-end for Mplayer, from basic features
like playing videos, DVDs, and VCDs to more advanced features like support
for Mplayer filters and more. One of the main features is the ability to
remember the state of a played file, so when you play it later it will resume
at the same point and with the same settings. smplayer is developed with
the Qt toolkit, so it's multi-platform.

%prep
%setup -q

%build
%make

%install
%makeinstall_std DESTDIR=%{buildroot} PREFIX=%{_prefix}

%files
%doc README.txt Changelog COPYING*.txt
%dir %{_datadir}/smplayer/themes
%{_datadir}/smplayer/themes/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8799 |21cr|smplayer-themes-20.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Themes for SMPlayer
Name:		smplayer-themes
Version:	20.11.0
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Video
Url:		http://smplayer.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/smplayer/SMPlayer-themes/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	qt4-devel
Requires:	smplayer
BuildArch:	noarch

%description
A set of themes for SMPlayer.

%files
%doc README.txt Changelog
%dir %{_datadir}/smplayer/themes
%{_datadir}/smplayer/themes/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
%makeinstall_std DESTDIR=%{buildroot} PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8800 |21cr|smstools-3.1.15-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _varlogdir      %{_localstatedir}/log/smsd
%define _varrundir      %{_localstatedir}/run/smsd

Summary:	Tools to send and receive short messages through GSM modems or mobile phones
Name:		smstools
Version:	3.1.15
Release:	6
License:	GPLv2+
Group:		Communications
Url:		http://smstools3.kekekasvi.com
Source0:	http://smstools3.kekekasvi.com/packages/smstools3-%{version}.tar.gz
Source1:	smsd.service
Source2:	smsd.logrotate
Source3:	smsd.tmpfiles
Patch0:		smstools3-3.1.5-loglocation.patch
Patch1:		smstools3-3.1.15-rundirectory.patch
Patch2:		smstools3-3.1.15-makefile-whitespace.patch
Requires(pre):	shadow-utils
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

%description
The SMS Server Tools are made to send and receive short messages through
GSM modems. It supports easy file interfaces and it can run external
programs for automatic actions.

%files
%doc LICENSE manual/ examples/ scripts/checkhandler-utf-8 scripts/email2sms scripts/eventhandler-utf-8
%doc scripts/mysmsd scripts/regular_run scripts/smsevent scripts/smsresend scripts/sql_demo
%{_sbindir}/*
%{_bindir}/*
%{_unitdir}/smsd.service
%config(noreplace) %{_sysconfdir}/logrotate.d/smstools
%config(noreplace) %{_sysconfdir}/smsd.conf
%config %{_sysconfdir}/tmpfiles.d/smstools.conf
%attr(-,smstools,smstools) %dir %{_localstatedir}/spool/sms/
%attr(-,smstools,smstools) %dir %{_localstatedir}/spool/sms/checked
%attr(-,smstools,smstools) %dir %{_localstatedir}/spool/sms/failed
%attr(-,smstools,smstools) %dir %{_localstatedir}/spool/sms/incoming
%attr(-,smstools,smstools) %dir %{_localstatedir}/spool/sms/outgoing
%attr(-,smstools,smstools) %dir %{_localstatedir}/spool/sms/sent
%attr(0750,smstools,smstools) %dir %{_varlogdir}
%attr(0640,smstools,smstools) %ghost %{_varlogdir}/smsd.log
%attr(0640,smstools,smstools) %ghost %{_varlogdir}/smsd_trouble.log
%attr(0750,smstools,smstools) %dir %{_varlogdir}/smsd_stats

%pre
getent group smstools >/dev/null || groupadd -r smstools

# on older releases we need to use uucp (here it seems only the uucp group exists)
# on newer releases it's dialout (here it seems both groups exist)
# it would be more elegant to base my if clause on the udev rules instead of the group existence
if [ `getent group dialout` ]
  then
    getent passwd smstools >/dev/null || useradd -r -d /var/lib/smstools -m -g smstools -G dialout smstools
  else
    getent passwd smstools >/dev/null || useradd -r -d /var/lib/smstools -m -g smstools -G uucp smstools
fi

%post
%systemd_post %{name}.service

# Create initial log files so that logrotate doesn't complain
for n in smsd.log smsd_trouble.log; do
        [ -f %{_varlogdir}/$n ] || touch %{_varlogdir}/$n
        chown smstools:smstools %{_varlogdir}/$n
        chmod 640 %{_varlogdir}/$n
done

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q -n smstools3
%patch0 -p1 -b .loglocation~
%patch1 -p1 -b .conf~
%patch2 -p1 -b .make4~

mv doc manual
mv examples/.procmailrc examples/procmailrc
mv examples/.qmailrc examples/qmailrc
find scripts/ examples/ manual/ -type f -print0 |xargs -0 chmod 644

%build
%make -C src CFLAGS="%{optflags} -DNOSTATS -D NUMBER_OF_MODEMS=64" LFLAGS="%{ldflags}"

%install
install -Dm 644 %{SOURCE1} %{buildroot}%{_unitdir}/smsd.service
install -Dm 664 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/smstools
install -Dm 664 %{SOURCE3} %{buildroot}%{_sysconfdir}/tmpfiles.d/smstools.conf
install -Dm 600 examples/smsd.conf.easy %{buildroot}%{_sysconfdir}/smsd.conf
install -Dm 755 src/smsd %{buildroot}%{_sbindir}/smsd
install -Dm 755 scripts/sendsms %{buildroot}%{_bindir}/smssend
install -Dm 755 scripts/sms2html %{buildroot}%{_bindir}/sms2html
install -Dm 755 scripts/sms2unicode %{buildroot}%{_bindir}/sms2unicode
install -Dm 755 scripts/sms2xml %{buildroot}%{_bindir}/sms2xml
install -Dm 755 scripts/unicode2sms %{buildroot}%{_bindir}/unicode2sms
install -dm 750 %{buildroot}%{_localstatedir}/spool/sms/checked
install -dm 750 %{buildroot}%{_localstatedir}/spool/sms/failed
install -dm 750 %{buildroot}/%{_localstatedir}/spool/sms/incoming
install -dm 770 %{buildroot}/%{_localstatedir}/spool/sms/outgoing
install -dm 750 %{buildroot}/%{_localstatedir}/spool/sms/sent
mkdir -p %{buildroot}/%{_varlogdir}
mkdir -p %{buildroot}/%{_varlogdir}/smsd_stats

# Create ghost files
for n in smsd.log smsd_trouble.log; do
    touch %{buildroot}/%{_varlogdir}/$n
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8801 |21cr|smtp-benchmark-1.0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SMTP Benchmark Suite
Name:		smtp-benchmark
Version:	1.0.3
Release:	11
License:	BSD
Group:		Networking/Other
URL:		http://www.etc.msys.ch/software/smtp-benchmark/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		smtp-benchmark-linux_fix.diff

%description
smtp-benchmark consists of two programs, smtpsend and smtpsink.
Whereas smtpsend is used to send generated e-mail messages using
SMTP to a mail transfer agent, smtpsink is designed to dispose of
received messages as quick as possible.

smtpsend measures the time spent sending e-mails and the number
of e-mails actually sent and outputs statistics after the program
run.

smtpsend can fork one or more parallel senders each using one or
more sequential connections to a SMTP server to deliver one or
more messages per connection.

smtpsink comes in handy when the relaying performance of a MTA is
to be measured.

%prep

%setup -q -n %{name}
%patch0 -p0

%build

gcc %{optflags} -o smtpsend/smtpsend smtpsend/smtpsend.c
gcc %{optflags} -o smtpsink/smtpsink smtpsink/smtpsink.c

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8
install -m0755 smtpsend/smtpsend %{buildroot}%{_sbindir}/
install -m0755 smtpsink/smtpsink %{buildroot}%{_sbindir}/
install -m0644 smtpsend/smtpsend.8 %{buildroot}%{_mandir}/man8/
install -m0644 smtpsink/smtpsink.8 %{buildroot}%{_mandir}/man8/
  
%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr (-,root,root)
%doc README
%{_sbindir}/smtpsend
%{_sbindir}/smtpsink
%{_mandir}/man8/smtpsend.8*
%{_mandir}/man8/smtpsink.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8802 |21cr|smtpscan-0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Remote SMTP Server Detection
Name:		smtpscan
Version:	0.5
Release:	8
License:	GPL
Group:		Monitoring
URL:		http://www.greyhats.org/outils/smtpscan/
Source0:	%{name}-%{version}.tar.bz2
Source1:	remote_smtp_detect.pdf.bz2
Patch0:		smtpscan-0.4.patch
Requires:	perl perl-Net-DNS
BuildArch:	noarch

%description
Smtpscan is a tool to guess which MTA is used by sending several
"special" SMTP requests and by comparing error codes returned with
those in the fingerprint database. It does not take into account
banners and other text information, that cannot be trusted, only
error codes.

%prep

%setup -q -n %{name} 
%patch0 -p1

%build

%install
rm -rf %{buildroot} 

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_datadir}/smtpscan

install -m755 src/smtpscan %{buildroot}%{_bindir}/
install -m644 docs/man/smtpscan.1 %{buildroot}%{_mandir}/man1/
install -m644 src/fingerprints  %{buildroot}%{_datadir}/smtpscan/
install -m644 src/tests %{buildroot}%{_datadir}/smtpscan/

bzcat %{SOURCE1} > remote_smtp_detect.pdf

%clean 
rm -rf %{buildroot} 

%files
%defattr(-,root,root)
%doc CHANGELOG CONTRIBUTORS remote_smtp_detect.pdf
%{_bindir}/smtpscan
%{_datadir}/smtpscan
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8803 |21cr|smtube-20.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Allows to play and download videos from YouTube
Name:		smtube
Version:	20.6.0
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://www.smtube.org/
Source0:	http://sourceforge.net/projects/smtube/files/SMTube/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Recommends:	smplayer

%description
SMTube is a tool for searching and downloading videos from YouTube.
It supports SMPlayer, VLC and some other players.

%files
%{_bindir}/%{name}
%{_datadir}/applications//%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}/translations/*.qm
%{_docdir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%setup_compile_flags
%make \
	QMAKE=%{_bindir}/qmake-qt5 \
	LRELEASE=%{_bindir}/lrelease-qt5 \
	PREFIX=%{_prefix}


%install
%makeinstall_std PREFIX=%{_prefix}

find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8804 |21cr|snack-2.2.10-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Script-driven sound processing toolkit
Name:		snack
Version:	2.2.10
Release:	13
License:	BSD
Group:		Sound
Url:		http://www.speech.kth.se/snack/
Source0:	http://www.speech.kth.se/~kare/%{name}%{version}.tar.bz2
# Fix underlinking
Patch0:		snack-2.2.10-underlinking.patch
Patch1:		snack-2.2.10-unity-linux-fix-roundf.patch
Patch2:		snack-2.2.10-unity-linux-gcc44.patch
Patch3:		snack-2.2.10-mdv-fix-string-format.patch
Patch4:		snack-2.2.10-suse-alsa.patch
Patch5:		tcl-snack-2.2.10-CVE-2012-6303-fix.patch
Patch6:		snack-python3.patch
BuildRequires:	dos2unix
BuildRequires:	tcl-devel
BuildRequires:	tk-devel
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)

%description
Snack is a sound processing toolkit designed as an extension
to a scripting language. Snack currently works with the scripting
languages Tcl/Tk, Python, and Ruby.

Snack has commands to play, record, process, and visualize sound.
Snack provides high level sound objects, with flexible storage management,
and streaming support. It handles most common sound file formats.
The visualization canvas item types update in real-time and can output
postscript. The same scripts run on Unix (Linux, Solaris, HP-UX, IRIX,
FreeBSD, NetBSD), Macintosh, and Windows 95/98/NT/2000/XP.

#----------------------------------------------------------------------------

%package -n tcl-%{name}
Summary:	Snack Sound Toolkit for Tcl
Group:		Sound
Requires:	tcl

%description -n tcl-%{name}
Snack Sound Toolkit for Tcl.

%files -n tcl-%{name}
%doc changes COPYING doc/tcl-man.html demos/tcl/* doc/A* doc/C* doc/F* README doc/S*
%{tcl_sitearch}/%{name}%{version}

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Snack Sound Toolkit for Python
Group:		Sound
Requires:	tcl-%{name} = %{EVRD}
Requires:	tkinter

%description -n python3-%{name}
Snack Sound Toolkit for Python.

%files -n python3-%{name}
%doc doc/python-man.html demos/python/*
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}%{version}
%patch0 -p1 -b .underlink
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p0
%patch5 -p1
%patch6 -p1
chmod 644 COPYING README changes

%build
cd unix
%configure --with-tcl=%{_libdir} --with-tk=%{_libdir} --with-ogg-include=/usr/include/ogg --with-ogg-lib=%{_libdir}
%make TCL_INCPATH=/usr/include TK_INCPATH=/usr/include CC="gcc %{optflags}"
%make TCL_INCPATH=/usr/include TK_INCPATH=/usr/include CC="gcc %{optflags}" libsnackogg.so

%install
chmod 644 doc/*
chmod 755 python/*.py
chmod 644 demos/tcl/*
chmod 755 demos/tcl/*.tcl
dos2unix demos/tcl/*.txt
rm -f demos/tcl/tclkit-linux-x86
chmod 644 demos/python/*
chmod 755 demos/python/*.py
dos2unix demos/python/*.txt

cd unix
mkdir -p %{buildroot}%{tcl_sitearch}/%{name}%{version}
mkdir -p %{buildroot}%{py2_puresitedir}
cp *.so %{buildroot}%{tcl_sitearch}/%{name}%{version}
install -m 0755 *.tcl %{buildroot}%{tcl_sitearch}/%{name}%{version}
cd ../python
%__python3 setup.py install --root=%{buildroot} --compile --optimize=2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8805 |21cr|snapd-2.63-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (Based on Fedora spec: https://src.fedoraproject.org/rpms/snapd/blob/rawhide/f/snapd.spec)

# A switch to allow building the package with support for testkeys which
# are used for the spread test suite of snapd.
%bcond_with testkeys

# Selinux policy is not buildable and is not needed much for now
%bcond_with selinux

# https://bugs.launchpad.net/snappy/+bug/1947563
%define _libexecdir /usr/lib

%global with_devel 1
%global with_debug 1
%global with_check 0
%global with_unit_test 0
%global with_test_keys 0

# Set if multilib is enabled for supported arches
%ifarch %{x86_64} aarch64 %{power64} s390x
%global with_multilib 1
%endif

# Set if valgrind is to be run
%ifnarch ppc64le
%global with_valgrind 1
%endif

# Do not package go modules separately, use bundled ones
%global with_bundled 1

%if ! %{with testkeys}
%global with_test_keys 0
%else
%global with_test_keys 1
%endif

%global _dwz_low_mem_die_limit 0

%global provider        github
%global provider_tld    com
%global project         snapcore
%global repo            snapd
# https://github.com/snapcore/snapd
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

%global snappy_svcs      snapd.service snapd.socket snapd.autoimport.service snapd.seeded.service 
%global snappy_user_svcs snapd.session-agent.service snapd.session-agent.socket

# Until we have a way to add more extldflags to gobuild macro...
# Always use external linking when building static binaries.
%define gobuild_static(o:) go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -linkmode external -extldflags '%__global_ldflags -static'" -a -v -x %{?**};

Name:           snapd
Version:        2.63
Release:        2
Summary:        A transactional software package manager
Group:          System/Base
License:        GPLv3
URL:            https://github.com/snapcore/snapd
Source0:        https://%{provider_prefix}/releases/download/%{version}/%{name}_%{version}.no-vendor.tar.xz
Source1:        https://%{provider_prefix}/releases/download/%{version}/%{name}_%{version}.only-vendor.tar.xz
ExclusiveArch:  %{go_arches}

# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:  autoconf-archive
BuildRequires:  make
BuildRequires:  golang
BuildRequires:  go-srpm-macros
BuildRequires:  go-rpm-macros
BuildRequires:  systemd

Requires:       snap-confine%{?_isa} = %{EVRD}
Requires:       squashfs-tools
# Kernel module may be not available, snapd will fallback to fuse
Recommends:       squashfuse
Recommends:       fuse
# bash-completion owns /usr/share/bash-completion/completions
Requires:       bash-completion
# store_download.go:143: no host system xdelta3 available to use deltas
Requires:       xdelta3

%if %{with selinux}
Recommends:       (%{name}-selinux if selinux-policy)
%endif

%description
Snappy is a modern, cross-distribution, transactional package manager
designed for working with self-contained, immutable packages.

%files
%license COPYING
%doc README.md docs/*
%{_bindir}/snap
%{_bindir}/snapctl
%{_environmentdir}/990-snapd.conf
%dir %{_libexecdir}/snapd
%{_libexecdir}/snapd/snapctl
%{_libexecdir}/snapd/snapd
%{_libexecdir}/snapd/snap-exec
%{_libexecdir}/snapd/snap-failure
%{_libexecdir}/snapd/info
%{_libexecdir}/snapd/snap-mgmt
%{_libexecdir}/snapd/snap-mgmt-selinux
%{_mandir}/man8/snap.8*
%{_datadir}/applications/snap-handle-link.desktop
%{_datadir}/bash-completion/completions/snap
%{_datadir}/fish/vendor_conf.d/snapd.fish
%{_libexecdir}/snapd/complete.sh
%{_libexecdir}/snapd/etelpmoc.sh
%{_datadir}/zsh/site-functions/_snap
%{_libexecdir}/snapd/snapd.run-from-snap
%{_sysconfdir}/profile.d/snapd.sh
%{_mandir}/man8/snapd-env-generator.8*
%{_systemd_system_env_generator_dir}/snapd-env-generator
%{_unitdir}/snapd.socket
%{_unitdir}/snapd.service
%{_unitdir}/snapd.autoimport.service
%{_unitdir}/snapd.failure.service
%{_unitdir}/snapd.seeded.service
%{_unitdir}/snapd.mounts-pre.target
%{_unitdir}/snapd.mounts.target
%{_userunitdir}/snapd.session-agent.service
%{_userunitdir}/snapd.session-agent.socket
%{_presetdir}/86-snapd.preset
%{_datadir}/dbus-1/services/io.snapcraft.Launcher.service
%{_datadir}/dbus-1/services/io.snapcraft.SessionAgent.service
%{_datadir}/dbus-1/services/io.snapcraft.Settings.service
%{_datadir}/dbus-1/session.d/snapd.session-services.conf
%{_datadir}/dbus-1/system.d/snapd.system-services.conf
%{_datadir}/polkit-1/actions/io.snapcraft.snapd.policy
%{_datadir}/applications/io.snapcraft.SessionAgent.desktop
%{_datadir}/snapd/snapcraft-logo-bird.svg
%{_sysconfdir}/xdg/autostart/snap-userd-autostart.desktop
%{_tmpfilesdir}/snapd.conf

%config(noreplace) %{_sysconfdir}/sysconfig/snapd
%dir %{_sharedstatedir}/snapd
%dir %{_sharedstatedir}/snapd/assertions
%dir %{_sharedstatedir}/snapd/cookie
%dir %{_sharedstatedir}/snapd/dbus-1
%dir %{_sharedstatedir}/snapd/dbus-1/services
%dir %{_sharedstatedir}/snapd/dbus-1/system-services
%dir %{_sharedstatedir}/snapd/desktop
%dir %{_sharedstatedir}/snapd/desktop/applications
%dir %{_sharedstatedir}/snapd/device
%dir %{_sharedstatedir}/snapd/hostfs
%dir %{_sharedstatedir}/snapd/inhibit
%dir %{_sharedstatedir}/snapd/lib
%dir %{_sharedstatedir}/snapd/lib/gl
%dir %{_sharedstatedir}/snapd/lib/gl32
%dir %{_sharedstatedir}/snapd/lib/glvnd
%dir %{_sharedstatedir}/snapd/lib/vulkan
%dir %{_sharedstatedir}/snapd/mount
%dir %{_sharedstatedir}/snapd/seccomp
%dir %{_sharedstatedir}/snapd/seccomp/bpf
%dir /snaps
%dir %{_localstatedir}/cache/snapd
%dir /snap
%ghost /snap/README
%ghost /snap/bin
%ghost %{_sharedstatedir}/snapd/state.json
# this is typically owned by zsh, but we do not want to explicitly require zsh
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions

%post
%systemd_post %{snappy_svcs}
%systemd_user_post %{snappy_user_svcs}
# If install, test if snapd socket is enabled.
# If enabled, then attempt to start them. This will silently fail
# in chroots or other environments where services aren't expected
# to be started. Makes "snap" command workable right after installation
# (snapd.socket gets enable by systemd preset).
if [ $1 -eq 1 ] ; then
   if systemctl -q is-enabled snapd.socket > /dev/null 2>&1 ; then
      systemctl start snapd.socket > /dev/null 2>&1 || :
   fi
fi

%preun
%systemd_preun %{snappy_svcs}
%systemd_user_preun %{snappy_user_svcs}

# Remove all Snappy content if snapd is being fully uninstalled
if [ $1 -eq 0 ]; then
   %{_libexecdir}/snapd/snap-mgmt --purge || :
fi

%postun
%systemd_postun_with_restart %{snappy_svcs}
%systemd_user_postun_with_restart %{snappy_user_svcs}

#----------------------------------------------------

%package -n snap-confine
Summary:        Confinement system for snap applications
License:        GPLv3
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  gcc
BuildRequires:  gettext
BuildRequires:  gnupg
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libcap)
BuildRequires:  pkgconfig(libseccomp)
BuildRequires:  pkgconfig(libselinux)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pkgconfig(udev)
BuildRequires:  xfsprogs-devel
BuildRequires:  glibc-static-devel
%if 0%{?with_valgrind}
BuildRequires:  valgrind
%endif
BuildRequires:  %{_bindir}/rst2man

%description -n snap-confine
This package is used internally by snapd to apply confinement to
the started snap applications.

%files -n snap-confine
%doc cmd/snap-confine/PORTING
%license COPYING
%dir %{_libexecdir}/snapd
# For now, we can't use caps
# FIXME: Switch to "%%attr(0755,root,root) %%caps(cap_sys_admin=pe)" asap!
%attr(4755,root,root) %{_libexecdir}/snapd/snap-confine
%{_libexecdir}/snapd/snap-device-helper
%{_libexecdir}/snapd/snap-discard-ns
%{_libexecdir}/snapd/snap-gdb-shim
%{_libexecdir}/snapd/snap-gdbserver-shim
%{_libexecdir}/snapd/snap-seccomp
%{_libexecdir}/snapd/snap-update-ns
%{_mandir}/man8/snap-confine.8*
%{_mandir}/man8/snap-discard-ns.8*
%{_systemdgeneratordir}/snapd-generator
%attr(0111,root,root) %{_sharedstatedir}/snapd/void

#----------------------------------------------------

%if %{with selinux}

%package selinux
Summary:        SELinux module for snapd
License:        GPLv2+
BuildArch:      noarch
BuildRequires:  selinux-policy
BuildRequires:  selinux-policy-devel
Requires(post): selinux-policy-base
Requires(post): policycoreutils
Requires(post): policycoreutils-python-utils
Requires(pre):  libselinux-utils
Requires(post): libselinux-utils

%description selinux
This package provides the SELinux policy module to ensure snapd
runs properly under an environment with SELinux enabled.

%files selinux
%license data/selinux/COPYING
%doc data/selinux/README.md
%{_datadir}/selinux/packages/snappy.pp.bz2
%{_datadir}/selinux/devel/include/contrib/snappy.if

%pre selinux
%selinux_relabel_pre

%post selinux
%selinux_modules_install %{_datadir}/selinux/packages/snappy.pp.bz2
%selinux_relabel_post

%posttrans selinux
%selinux_relabel_post

%postun selinux
%selinux_modules_uninstall snappy
if [ $1 -eq 0 ]; then
    %selinux_relabel_post
fi

%endif #with_selinux
#----------------------------------------------------

%if 0%{?with_devel}
%package devel
Summary:       Development files for %{name}
Group:         Development/Other
BuildArch:     noarch

%if 0%{?with_check} && ! 0%{?with_bundled}
%endif

%description devel
This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

%files devel -f devel.file-list
%license COPYING
%doc README.md
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
%endif

#----------------------------------------------------

%if 0%{?with_unit_test} && 0%{?with_devel}
%package unit-test-devel
Summary:         Unit tests for %{name} package

%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif

# test subpackage tests code from devel subpackage
Requires:        %{name}-devel = %{EVRD}

%description unit-test-devel
This package contains unit tests for project
providing packages with %{import_path} prefix.

%files unit-test-devel -f unit-test-devel.file-list
%license COPYING
%doc README.md
%endif

#----------------------------------------------------

%prep
# Extract each tarball properly
%setup -q -D -b 1
# Apply patches
%autopatch -p1

%build
# Generate version files
./mkversion.sh "%{version}-%{release}"

# We don't want/need squashfuse in the rpm, as it's available in Fedora and EPEL
sed -e 's:_ "github.com/snapcore/squashfuse"::g' -i systemd/systemd.go

# Build snapd
mkdir -p src/github.com/snapcore
ln -s ../../../ src/github.com/snapcore/snapd || :

export GOPATH=$(pwd):%{gopath}
# remove the mod file, we are building without go modules support
rm -f go.mod
export GO111MODULE=off

# see https://github.com/gofed/go-macros/blob/master/rpm/macros.d/macros.go-compilers-golang
BUILDTAGS=
%if 0%{?with_test_keys}
BUILDTAGS="withtestkeys nosecboot"
%else
BUILDTAGS="nosecboot"
%endif

%if ! 0%{?with_bundled}
# We don't need mvo5 fork for seccomp, as we have seccomp 2.3.x
sed -e "s:github.com/mvo5/libseccomp-golang:github.com/seccomp/libseccomp-golang:g" -i cmd/snap-seccomp/*.go
# We don't need the snapcore fork for bolt - it is just a fix on ppc
sed -e "s:github.com/snapcore/bolt:github.com/boltdb/bolt:g" -i advisor/*.go errtracker/*.go
%endif

# We have to build snapd first to prevent the build from
# building various things from the tree without additional
# set tags.
%gobuild -o bin/snapd $GOFLAGS %{import_path}/cmd/snapd
BUILDTAGS="${BUILDTAGS} nomanagers"
%gobuild -o bin/snap $GOFLAGS %{import_path}/cmd/snap
%gobuild -o bin/snap-failure $GOFLAGS %{import_path}/cmd/snap-failure

# To ensure things work correctly with base snaps,
# snap-exec, snap-update-ns, and snapctl need to be built statically
(
%if 0%{?rhel} >= 8
    # since 1.12.1, the go-toolset module is built with FIPS compliance that
    # defaults to using libcrypto.so which gets loaded at runtime via dlopen(),
    # disable that functionality for statically built binaries
    BUILDTAGS="${BUILDTAGS} no_openssl"
%endif
    %gobuild_static -o bin/snap-exec $GOFLAGS %{import_path}/cmd/snap-exec
    %gobuild_static -o bin/snap-update-ns $GOFLAGS %{import_path}/cmd/snap-update-ns
    %gobuild_static -o bin/snapctl $GOFLAGS %{import_path}/cmd/snapctl
)

# There's no static link library for libseccomp in RHEL/CentOS...
sed -e "s/-Bstatic -lseccomp/-Bstatic/g" -i cmd/snap-seccomp/*.go
%gobuild -o bin/snap-seccomp $GOFLAGS %{import_path}/cmd/snap-seccomp

%if %{with selinux}
(
    # Build SELinux module
    cd ./data/selinux
    # pass M4PARAM in env instead of as an override, so that make can still
    # manipulate it freely, for more details see:
    # https://www.gnu.org/software/make/manual/html_node/Override-Directive.html
    M4PARAM="$M4PARAM" make SHARE="%{_datadir}" TARGETS="snappy"
)
%endif

# Build snap-confine
pushd ./cmd
autoreconf -if
# FIXME: add --enable-caps-over-setuid as soon as possible (setuid discouraged!)
%configure \
    --disable-apparmor \
    --enable-selinux \
    --libexecdir=%{_libexecdir}/snapd/ \
    --enable-nvidia-biarch \
    %{?with_multilib:--with-32bit-libdir=%{_prefix}/lib} \
    --disable-merged-usr

%make_build %{!?with_valgrind:HAVE_VALGRIND=}
popd

# Build systemd units, dbus services, and env files
pushd ./data
make BINDIR="%{_bindir}" LIBEXECDIR="%{_libexecdir}" \
     SYSTEMDSYSTEMUNITDIR="%{_unitdir}" \
     SNAP_MOUNT_DIR="/snap" \
     SNAPD_ENVIRONMENT_FILE="%{_sysconfdir}/sysconfig/snapd"
popd

%install
install -d -p %{buildroot}%{_bindir}
install -d -p %{buildroot}%{_libexecdir}/snapd
install -d -p %{buildroot}%{_mandir}/man8
install -d -p %{buildroot}%{_environmentdir}
install -d -p %{buildroot}%{_systemdgeneratordir}
install -d -p %{buildroot}%{_systemd_system_env_generator_dir}
install -d -p %{buildroot}%{_unitdir}
install -d -p %{buildroot}%{_userunitdir}
install -d -p %{buildroot}%{_sysconfdir}/profile.d
install -d -p %{buildroot}%{_sysconfdir}/sysconfig
install -d -p %{buildroot}%{_sharedstatedir}/snapd/assertions
install -d -p %{buildroot}%{_sharedstatedir}/snapd/cookie
install -d -p %{buildroot}%{_sharedstatedir}/snapd/dbus-1/services
install -d -p %{buildroot}%{_sharedstatedir}/snapd/dbus-1/system-services
install -d -p %{buildroot}%{_sharedstatedir}/snapd/desktop/applications
install -d -p %{buildroot}%{_sharedstatedir}/snapd/device
install -d -p %{buildroot}%{_sharedstatedir}/snapd/hostfs
install -d -p %{buildroot}%{_sharedstatedir}/snapd/inhibit
install -d -p %{buildroot}%{_sharedstatedir}/snapd/lib/gl
install -d -p %{buildroot}%{_sharedstatedir}/snapd/lib/gl32
install -d -p %{buildroot}%{_sharedstatedir}/snapd/lib/glvnd
install -d -p %{buildroot}%{_sharedstatedir}/snapd/lib/vulkan
install -d -p %{buildroot}%{_sharedstatedir}/snapd/mount
install -d -p %{buildroot}%{_sharedstatedir}/snapd/seccomp/bpf
install -d -p %{buildroot}/snaps
install -d -p %{buildroot}/snap/bin
install -d -p %{buildroot}%{_localstatedir}/snap
install -d -p %{buildroot}%{_localstatedir}/cache/snapd
install -d -p %{buildroot}%{_datadir}/polkit-1/actions
install -d -p %{buildroot}%{_datadir}/selinux/devel/include/contrib
install -d -p %{buildroot}%{_datadir}/selinux/packages

# Install snap and snapd
install -p -m 0755 bin/snap %{buildroot}%{_bindir}
install -p -m 0755 bin/snap-exec %{buildroot}%{_libexecdir}/snapd
install -p -m 0755 bin/snap-failure %{buildroot}%{_libexecdir}/snapd
install -p -m 0755 bin/snapd %{buildroot}%{_libexecdir}/snapd
install -p -m 0755 bin/snap-update-ns %{buildroot}%{_libexecdir}/snapd
install -p -m 0755 bin/snap-seccomp %{buildroot}%{_libexecdir}/snapd
# Ensure /usr/bin/snapctl is a symlink to /usr/libexec/snapd/snapctl
install -p -m 0755 bin/snapctl %{buildroot}%{_libexecdir}/snapd/snapctl
ln -sf %{_libexecdir}/snapd/snapctl %{buildroot}%{_bindir}/snapctl

%if %{with selinux}
# Install SELinux module
install -p -m 0644 data/selinux/snappy.if %{buildroot}%{_datadir}/selinux/devel/include/contrib
install -p -m 0644 data/selinux/snappy.pp.bz2 %{buildroot}%{_datadir}/selinux/packages
%endif

# Install snap(8) man page
bin/snap help --man > %{buildroot}%{_mandir}/man8/snap.8

# Install the "info" data file with snapd version
install -m 644 -D data/info %{buildroot}%{_libexecdir}/snapd/info

# Install bash completion for "snap"
install -m 644 -D data/completion/bash/snap %{buildroot}%{_datadir}/bash-completion/completions/snap
install -m 644 -D data/completion/bash/complete.sh %{buildroot}%{_libexecdir}/snapd
install -m 644 -D data/completion/bash/etelpmoc.sh %{buildroot}%{_libexecdir}/snapd
# Install zsh completion for "snap"
install -d -p %{buildroot}%{_datadir}/zsh/site-functions
install -m 644 -D data/completion/zsh/_snap %{buildroot}%{_datadir}/zsh/site-functions/_snap

# Install snap-confine
pushd ./cmd
%make_install
# Undo the 0111 permissions, they are restored in the files section
chmod 0755 %{buildroot}%{_sharedstatedir}/snapd/void
# We don't use AppArmor
rm -rfv %{buildroot}%{_sysconfdir}/apparmor.d
# ubuntu-core-launcher is dead
rm -fv %{buildroot}%{_bindir}/ubuntu-core-launcher
popd

# Install all systemd and dbus units, and env files
pushd ./data
%make_install BINDIR="%{_bindir}" LIBEXECDIR="%{_libexecdir}" \
              SYSTEMDSYSTEMUNITDIR="%{_unitdir}" SYSTEMDUSERUNITDIR="%{_userunitdir}" \
              SNAP_MOUNT_DIR="/snap" \
              SNAPD_ENVIRONMENT_FILE="%{_sysconfdir}/sysconfig/snapd"
popd
# Sudo tweaks do not work anyway, see
# https://bugzilla.redhat.com/show_bug.cgi?id=1691996 for more details
rm -rfv %{buildroot}%{_sysconfdir}/sudoers.d

# Remove snappy core specific units
rm -fv %{buildroot}%{_unitdir}/snapd.system-shutdown.service
rm -fv %{buildroot}%{_unitdir}/snapd.snap-repair.*
rm -fv %{buildroot}%{_unitdir}/snapd.core-fixup.*
rm -fv %{buildroot}%{_unitdir}/snapd.recovery-chooser-trigger.service

# Remove snappy core specific scripts and binaries
rm %{buildroot}%{_libexecdir}/snapd/snapd.core-fixup.sh
rm %{buildroot}%{_libexecdir}/snapd/system-shutdown

# Remove snapd apparmor service
rm -f %{buildroot}%{_unitdir}/snapd.apparmor.service
rm -f %{buildroot}%{_libexecdir}/snapd/snapd-apparmor

# Install Polkit configuration
install -m 644 -D data/polkit/io.snapcraft.snapd.policy %{buildroot}%{_datadir}/polkit-1/actions

# Disable re-exec by default
echo 'SNAP_REEXEC=0' > %{buildroot}%{_sysconfdir}/sysconfig/snapd

mkdir -p %{buildroot}/snap

# Create state.json and the README file to be ghosted
touch %{buildroot}%{_sharedstatedir}/snapd/state.json
touch %{buildroot}/snap/README

# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" -o -iname "*.s" \! -iname "*_test.go") ; do
    echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
done
%endif

# testing files for this project
%if 0%{?with_unit_test} && 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test.file-list
for file in $(find . -iname "*_test.go"); do
    echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list
done

# Install additional testdata
install -d %{buildroot}/%{gopath}/src/%{import_path}/cmd/snap/test-data/
cp -pav cmd/snap/test-data/* %{buildroot}/%{gopath}/src/%{import_path}/cmd/snap/test-data/
echo "%%{gopath}/src/%%{import_path}/cmd/snap/test-data" >> unit-test-devel.file-list
%endif

# make "snap" command work out of the box
mkdir -p %{buildroot}%{_presetdir}
echo "enable snapd.socket" > %{buildroot}%{_presetdir}/86-snapd.preset

%if 0%{?with_devel}
sort -u -o devel.file-list devel.file-list
%endif

# there are some problems with find-debuginfo
strip %{buildroot}/usr/lib/snapd/snap-gdb-shim
strip %{buildroot}/usr/lib/snapd/snap-gdbserver-shim
strip %{buildroot}/usr/lib/snapd/snap-update-ns
strip %{buildroot}/usr/lib/snapd/snap-exec
strip %{buildroot}/usr/lib/snapd/snapctl

%check
for binary in snap-exec snap-update-ns snapctl; do
    ldd bin/$binary 2>&1 | grep 'not a dynamic executable'
done

# snapd tests
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif
export GO111MODULE=off
%gotest %{import_path}/...
%endif

# snap-confine tests (these always run!)
pushd ./cmd
make check
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8806 |21cr|snapfly-0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight PyGTK menu
Name:		snapfly
Version:	0.8
Release:	4
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/drakmail/snapfly
# from git
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	python-setuptools
BuildArch:	noarch
Requires:	pygtk2
Requires:	python-cairo
Requires:	python-dbus
Requires:	python-pyinotify

%description
SnapFly is a lightweight PyGTK menu which can be run as a daemon (in this
case you can call the menu from any place on your desktop using snapfly-show)
or as a standalone menu with a systray icon. The development began as a
patchset for adeskmenu, but nowadays SnapFly is almost fully rewritten.

%prep
%setup -q

%build
python setup.py build

%install
python setup.py install --root=%{buildroot}

%find_lang %{name} --with-man

%files -f %{name}.lang
%{_bindir}/%{name}
%{_bindir}/%{name}-show
%{python_sitelib}/%{name}
%{python_sitelib}/*.egg-info
%{_iconsdir}/hicolor/*/apps/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8807 |21cr|snapper-0.10.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 0

%define snapperlib %{_prefix}/lib/%{name}
%define pamsnapperlib %{_prefix}/lib/pam_%{name}

%define major 7
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Tool for filesystem snapshot management
Name:		snapper
Version:	0.10.7
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://snapper.io
Source0:	https://github.com/openSUSE/snapper/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch1:		%{name}-0.2.8-rename-cron-files.patch
Patch2:		%{name}-link-with-ncurses.patch
BuildRequires:	docbook-style-xsl
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	ncurses-devel
BuildRequires:	xsltproc
BuildRequires:	acl-devel
BuildRequires:	boost-devel
BuildRequires:	btrfs-devel
BuildRequires:	btrfsutil-devel
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	stdc++-devel
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mount)
Obsoletes:	%{name}-libs < %{EVRD}
Requires:	coreutils
Requires:	diffutils
Requires:	e2fsprogs
Requires:	lvm2
Requires:	util-linux

%description
This package contains snapper, a tool for filesystem snapshot management.

%files -f %{name}.lang
%doc AUTHORS COPYING
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/configs
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_sysconfdir}/cron.hourly/%{name}
%{_sysconfdir}/cron.daily/%{name}
%{_bindir}/%{name}
%{_sbindir}/mksubvolume
%{_sbindir}/snapperd
%{_unitdir}/%{name}-cleanup.*
%{_unitdir}/%{name}-timeline.*
%{_unitdir}/snapperd.service
%{_unitdir}/snapper-boot.service
%{_unitdir}/snapper-boot.timer
%dir %{snapperlib}
%{snapperlib}/*
%{_datadir}/snapper
%{_datadir}/zsh/site-functions/_snapper
%{_datadir}/bash-completion/completions/snapper
%{_datadir}/dbus-1/system.d/org.opensuse.Snapper.conf
%{_datadir}/dbus-1/system-services/org.opensuse.Snapper.service
%{_mandir}/man5/%{name}-configs.5*
%{_mandir}/man8/%{name}.8*
%{_mandir}/man8/mksubvolume.8*
%{_mandir}/man8/snapperd.8*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for filesystem snapshot management
Group:		System/Libraries

%description -n %{libname}
This package contains the snapper shared library for filesystem snapshot
management.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libsnapper.so.*

#-----------------------------------------------------------------------------

%package -n pam_snapper
Summary:        PAM module for calling snapper
Group:          System/Configuration/Packaging
Requires:       pam
Requires:       %{name} = %{EVRD}


%description -n pam_snapper
A PAM module for calling snapper during user login and logout.

%files -n pam_snapper
%{_libdir}/security/pam_%{name}.so
%{pamsnapperlib}/*.sh
%{_mandir}/man8/pam_snapper.8*

#-----------------------------------------------------------------------------

%package -n %{devname}
Group:		Development/Other
Summary:	Header files and documentation for libsnapper
BuildRequires:	pkgconfig(mount)
Obsoletes:	%{name}-devel = 0.5.6-1.git3b8888.2
Provides:	%{name}-devel
Requires:	%{libname} = %{EVRD}
Requires:	acl-devel
Requires:	boost-devel
Requires:	btrfs-devel
Requires:	stdc++-devel
Requires:	pkgconfig(libxml-2.0)

%description -n %{devname}
This package contains header files and documentation for developing with
snapper.

%files -n %{devname}
%doc AUTHORS COPYING
%doc examples/c++-lib/*.cc
%doc examples/c/*.c
%{_libdir}/libsnapper.so
%{_includedir}/%{name}
%{_libdir}/snapper/testsuite

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="%{ldflags} -lpthread"
aclocal
libtoolize --force --automake --copy
autoheader
automake --add-missing --copy
autoconf

# NOTE: --disable-ext4 option removes support for ext4 internal snapshots since the feature
# never made it into upstream kernel
%configure \
	--disable-silent-rules \
	--disable-ext4 \
	--disable-zypp \
	--enable-xattrs \
	--disable-static

#NOTE: avoid 'unused-direct-shlib-dependency' warning in rpmlint checks
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
export LDFLAGS="-lboost_system-mt"
export CFLAGS="-lboost_system-mt -Wl,-lboost_system-mt"
export CXXFLAGS="-lboost_system-mt -Wl,-lboost_system-mt"
%make

%install
%makeinstall_std

install -m644 -D data/sysconfig.snapper %{buildroot}%{_sysconfdir}/sysconfig/%{name}

%if %{mdvver} <= 202115
mkdir -p %{buildroot}/lib
mv -fv %{buildroot}%{_prefix}/lib/systemd \
 %{buildroot}/lib
%endif

find %{buildroot} -name "*.la" -delete

%find_lang %{name}

%check
# https://github.com/openSUSE/snapper/issues/848#issuecomment-1823065456

#Running 6 test cases...
#unknown location(0): fatal error: in "parse1": std::runtime_error: locale::facet::_S_create_c_locale name not valid
#limit.cc(37): last checkpoint
#unknown location(0): fatal error: in "parse2": std::runtime_error: locale::facet::_S_create_c_locale name not valid
#limit.cc(45): last checkpoint
#unknown location(0): fatal error: in "error1": std::runtime_error: locale::facet::_S_create_c_locale name not valid
#limit.cc(55): last checkpoint
#unknown location(0): fatal error: in "error2": std::runtime_error: locale::facet::_S_create_c_locale name not valid
#limit.cc(61): last checkpoint

%make check || true



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8808 |21cr|snapraid-12.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Backup program for disk arrays
Name:		snapraid
Version:	12.2
Release:	1
License:	GPLv3+
Group:		Archiving/Backup
Url:		http://www.snapraid.it
Source0:	https://github.com/amadvance/snapraid/releases/download/v%{version}/%{name}-%{version}.tar.gz

%description
SnapRAID is a backup program for disk arrays. It stores parity information
of your data and it's able to recover from up to six disk failures.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8809 |21cr|snd-23.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Audio file editor
Name:		snd
Version:	23.1
Release:	1
License:	BSD
Group:		Sound
Url:		https://ccrma.stanford.edu/software/snd/
Source0:	https://ccrma.stanford.edu/software/snd/snd-%{version}.tar.gz
Patch0:		snd-15.4-fix-build.patch
Patch1:		snd-22.1-fix-env-shebang.patch
# Math
BuildRequires:	gmp-devel
BuildRequires:	pkgconfig(fftw3)
# Output audio
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(alsa)
#BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(samplerate)
# GUI stuff
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gsl) >= 1.0
BuildRequires:	pkgconfig(xpm)
BuildRequires:	openmotif-devel
# Encoders & Co.
BuildRequires:	flac
BuildRequires:	mpg123
BuildRequires:	speex
BuildRequires:	TiMidity++
BuildRequires:	ttaenc
BuildRequires:	vorbis-tools
BuildRequires:	wavpack
BuildRequires:	libmpc-devel

%description
Snd is a free sound editor modelled loosely after Emacs and an old, 
sorely-missed PDP-10 sound editor named Dpysnd.

%files
%doc README.Snd HISTORY.Snd NEWS COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="-lportaudio"
%configure \
	--with-gsl \
	--with-gmp \
	--with-fftw \
	--with-alsa \
	--with-portaudio \
	--with-jack \
	--with-ladspa \
	--with-gtk \
	--without-motif \
	--with-gui

%make


%install
%makeinstall_std

# Provide a menu item
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Snd
Comment=%{summary}
Exec=%{name} %U
Icon=sound_section
Terminal=false
Type=Application
Categories=GTK;Audio;AudioVideo;AudioVideoEditing;
EOF

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/grani.rb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8810 |21cr|sndlib-22-1.20170802.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Take from the last change recorded in HISTORY.sndlib.
# Actually, they don't seem to be updating it reliably, so
# just go with the tarball date...
%define date	20170802
%define	rel		3
%define	release		1.%{date}.%{rel}
%define	lib_name_orig	lib%{name}
%define develname	%mklibname %{name} -d
%define staticname	%mklibname %{name} -s -d

Name:		sndlib
Summary:	Library of sound-related functions
Version:	22
Release:	%{release}
License:	BSD
Group:		Sound
Url:		http://ccrma.stanford.edu/software/snd/%{name}/
Source0:	ftp://ccrma-ftp.stanford.edu/pub/Lisp/%{name}.tar.gz
Patch0:		%{name}-22-fix-pkgconfig-file-install.patch
BuildRequires: 	pkgconfig(alsa)
BuildRequires:	pkgconfig(gsl)
BuildRequires: 	pkgconfig(guile-3.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(samplerate)
ExcludeArch:	%{armx}

%description
The sound library is a collection of sound file and audio hardware handlers
written in C, Forth, Scheme, Common Lisp, and Ruby, and running currently on
SGI, Sun, Linux, Mac, HPUX, LinuxPPC, Mac OSX, and Windoze systems (but I'm
not making any effort to keep the Windoze code going). It provides relatively
straightforward access to many sound file headers and data types, and most of
the features of the audio hardware.

#-----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Provides:	%{lib_name_orig}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{staticname}

%description -n	%{develname}
The sound library is a collection of sound file and audio hardware handlers
written in C, Forth, Scheme, Common Lisp, and Ruby, and running currently on
SGI, Sun, Linux, Mac, HPUX, LinuxPPC, Mac OSX, and Windoze systems (but I'm
not making any effort to keep the Windoze code going). It provides relatively
straightforward access to many sound file headers and data types, and most of
the features of the audio hardware.

%files -n %{develname}
%doc README.sndlib HISTORY.sndlib sndins/README
%{_bindir}/%{name}-config
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}.h

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%apply_patches


%build
CFLAGS="%{optflags} -fPIC" LDFLAGS="-ldl -lm" \
%configure	--with-alsa \
		--with-jack \
		--with-portaudio \
		--with-gsl
%make


%install
%makeinstall


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8811 |21cr|snes9x-1.61-0.gita2e058.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit a2e0580992873ec3913fd1ef09f22f368fe44b3b
%define commit_short %(echo %{commit} | head -c6)

Summary:	Super NES emulator
Name:		snes9x
Version:	1.61
Release:	0.git%{commit_short}.1
License:	Freeware and LGPLv2
Group:		Emulators
Url:		https://github.com/snes9xgit/snes9x
Source0:	https://github.com/snes9xgit/snes9x/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source1:	external.tar.gz
Patch0:		snes9x-1.58-unix_flags.patch
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	nasm
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse-simple)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(zlib)

%description
Snes9X is a portable, freeware Super Nintendo Entertainment System (SNES)
emulator. It basically allows you to play most games designed for the SNES
and Super Famicom Nintendo game systems on your PC or Workstation.

%files
%doc docs/*
%doc unix/docs/readme_unix.html
%doc LICENSE
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{name}-gtk
Summary:	Graphical User Interface for snes9x
Group:		Emulators

%description -n %{name}-gtk
This package adds a GTK graphical user interface to snes9x.

%files -n %{name}-gtk -f snes9x-gtk.lang
%doc docs/*
%doc LICENSE README.md
%{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}-gtk.desktop
%{_datadir}/snes9x/cheats.bml
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit} -a1

%build
pushd gtk
%meson \
	-Doss=false
%meson_build
popd

# Second, build the CLI version
pushd unix
autoreconf -fi
%configure \
	--enable-netplay
%make V=1
popd

%install
pushd gtk
%meson_install
popd

mkdir -p %{buildroot}%{_bindir}
install -m 755 unix/snes9x %{buildroot}%{_bindir}

%find_lang snes9x-gtk

# remove cpirv_cross and glslang files. not needed.
rm -r %{buildroot}%{_prefix}/lib
rm %{buildroot}%{_bindir}/{glslangValidator,spirv*}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8812 |21cr|snespurify-11b1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to clean up SNES ROMs for compatibility with BSNES
Name:		snespurify
Version:	11b1
Release:	4
License:	GPLv2
URL:		http://byuu.org/
Group:		Emulators
Source0:	%{name}_v%{version}.tar.bz2
BuildRequires:	qt4-devel

%description
A tool to clean up SNES ROMs for compatibility with BSNES.

With a single tool and a handful of clicks, you can:
- decompress archives
- strip headers
- fix file extensions
- convert IPS patches to the UPS file format

%files
%defattr(-,root,root)
#{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}-qt.desktop
%{_bindir}/%{name}-qt

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
sed -i "s/g++-4.5/g++/" cc-qt.sh

#use system optflags
sed -i "s/-O3/%{optflags}/" cc-qt.sh

#don't strip the binaries prematurely
sed -i "s/-s //" cc-qt.sh

sh cc-qt.sh

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%__mkdir -p %{buildroot}%{_bindir}
%__mkdir -p %{buildroot}%{_datadir}/applications
#__mkdir -p %{buildroot}%{_datadir}/pixmaps

#install icon
#__install -m 644 data/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

#install binaries
%__install -m 755 %{name}-qt %{buildroot}%{_bindir}/%{name}-qt

#install XDG menu entries
cat > %{buildroot}%{_datadir}/applications/%{name}-qt.desktop << EOF
[Desktop Entry]
Version=1.0
Name=SnesPurify (Qt4)
Comment=SNES ROMs purification utility
Exec=%{name}-qt
Icon=configure
Terminal=false
Type=Application
Categories=Qt;Game;Emulator;
EOF

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8813 |21cr|sni-qt-0.2.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define plugin %mklibname %{name}

Summary:	Qt4 plugin that turns QSystemTrayIcons into status notifiers (config)
Name:		sni-qt
Version:	0.2.6
Release:	6
License:	LGPLv3+
Group:		System/Libraries
Url:		https://launchpad.net/sni-qt
Source0:	https://launchpad.net/sni-qt/trunk/%{version}/+download/%{name}-%{version}.tar.bz2
# From Ubuntu packaging version 0.2.5-0ubuntu3
Source1:	sni-qt.conf
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(dbusmenu-qt)
Requires:	%{plugin}
# To support system tray for 32 bit applications in x86_64 system
%ifarch x86_64
Recommends:	sni-qt-32
%endif

%description
This package contains config for a Qt4 plugin which turns all QSystemTrayIcon
into StatusNotifierItems (appindicators).

%files
%doc COPYING NEWS README
%config %{_sysconfdir}/xdg/sni-qt.conf

#----------------------------------------------------------------------------

%package -n %{plugin}
Summary:	Qt4 plugin that turns QSystemTrayIcons into status notifiers (plugin)
Group:		System/Libraries
Requires:	%{name}
%ifarch x86_64
Provides:	sni-qt-64 = %{EVRD}
%else
Provides:	sni-qt-32 = %{EVRD}
%endif
Conflicts:	%{name} < 0.2.6-2

%description -n %{plugin}
This package contains a Qt4 plugin which turns all QSystemTrayIcon into
StatusNotifierItems (appindicators).

%files -n %{plugin}
%{_qt_plugindir}/systemtrayicon/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt4
%make

%install
%makeinstall_std -C build

install -m644 -D -p %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/sni-qt.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8814 |21cr|snmptt-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           snmptt
Version:	1.4.2
Release:	1
Summary:        SNMP Trap Translator
Group:          System/Servers
License:        GPL
URL:            http://snmptt.sourceforge.net/
Source0:        http://downloads.sourceforge.net/project/%{name}/%{name}/%{name}_%{version}/%{name}_%{version}.tgz
BuildArch:	noarch
Requires(pre):	rpm-helper

%description
SNMPTT (SNMP Trap Translator) is an SNMP trap handler written in Perl for use
with the Net-SNMP / UCD-SNMP snmptrapd program (www.net-snmp.org).

%prep
%setup -q -n %{name}_%{version}

%install
install -d -m 755 %{buildroot}%{_sbindir}
install -m 755 snmptt snmpttconvert snmpttconvertmib snmptthandler \
    %{buildroot}%{_sbindir}
 
install -d -m 755 %{buildroot}%{_sysconfdir}/snmp
install -m 644 snmptt.ini %{buildroot}%{_sysconfdir}/snmp
install -m 644 examples/snmptt.conf.generic \
    %{buildroot}%{_sysconfdir}/snmp/snmptt.conf

install -d -m 755 %{buildroot}%{_initrddir}
install -m 755 snmptt-init.d %{buildroot}%{_initrddir}/snmptt

install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/snmptt <<EOF
/var/log/snmptt/*.log /var/log/snmptt/*.debug {
   sharedscripts
   postrotate
       /etc/init.d/snmptt restart > /dev/null
   endscript
}
EOF

install -d -m 755 %{buildroot}%{_localstatedir}/log/snmptt
install -d -m 755 %{buildroot}%{_localstatedir}/spool/snmptt

%pre
%_pre_useradd %{name} %{_localstatedir}/spool/%{name} /bin/sh

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}

%files
%doc BUGS ChangeLog COPYING README
%doc docs/*html docs/*.css examples
%{_initrddir}/snmptt
%config(noreplace) %{_sysconfdir}/snmp
%config(noreplace) %{_sysconfdir}/logrotate.d/snmptt
%{_sbindir}/snmptt
%{_sbindir}/snmpttconvert
%{_sbindir}/snmpttconvertmib
%{_sbindir}/snmptthandler
%attr(-,snmptt,snmptt) %{_localstatedir}/log/snmptt
%attr(-,snmptt,snmptt) %{_localstatedir}/spool/snmptt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8815 |21cr|snort-community-rules-2.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Community Rulesets for Snort
Name:		snort-community-rules
Version:	2.4
Release:	9
License:	GPL
Group:		Networking/Other
URL:		http://www.snort.org/
Source0:	http://www.snort.org/pub-bin/downloads.cgi/Download/comm_rules/Community-Rules-%{version}.tar.bz2
BuildArch:	noarch

%description
The Community Rulesets contain rules submitted by members of the
open source community. While these rules are available as is, the
VRT performs basic tests to ensure that new rules will not break
Snort. These rules are distributed under the GPL and are freely
available to all open source Snort users.

%prep

%setup -q -c -n Community-Rules-%{version}
%{__mv} docs signatures

%build

%install
%{__rm} -rf %{buildroot} 

%{__mkdir_p} %{buildroot}%{_sysconfdir}/snort/rules
%{__cp} -a rules/*.rules %{buildroot}%{_sysconfdir}/snort/rules/

%clean
%{__rm} -rf %{buildroot} 

%files
%defattr(0644,root,root,0755)
%doc signatures
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/rules/*.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8816 |21cr|snortsam-2.70-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		snortsam
Version:	2.70
Release:	5
Summary:	SnortSAM module
License:	BSD
Group:		Networking/Other
URL:		http://www.snortsam.net/
Source:		http://www.snortsam.net/files/snortsam/%{name}-src-%{version}.tar.gz
Patch0:		snortsam-debug.patch

%description
Snortsam is a daemon that interacts with snort to use a firewall.

%prep
%setup -qn %{name}
%patch0 -p1
cat > Makefile <<EOF
install:
EOF

%build
sh ./makesnortsam.sh
cd src
make samtool
#%make "CFLAGS=%optflags"

%install
install -d %{buildroot}%{_sbindir}
rm -rf %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sysconfdir}
install snortsam %{buildroot}%{_sbindir}
install samtool %{buildroot}%{_sbindir}
install conf/snortsam.conf.sample %{buildroot}%{_sysconfdir}/snortsam.conf
%makeinstall
#%{__rm} -rf %{buildroot}

#mkdir %{buildroot}%_mandir/man1
#mv %{buildroot}%_mandir/*.1 %{buildroot}%_mandir/man1/

%clean

%files
%doc docs/{README*,LICENSE,INSTALL,FAQ,CREDITS,BUGS,AUTHORS}
%{_sbindir}/*
%{_sysconfdir}/snortsam.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8817 |21cr|snr-1.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tag_postfix -alt1

Summary:	Simple wrapper to quickly run systemd-nspawn containers
Name:		snr
Version:	1.7
Release:	4
License:	MIT
Group:		System/Base
Url:		https://github.com/mikhailnov/snr
Source0:	https://github.com/mikhailnov/snr/archive/%{version}%{tag_postfix}.tar.gz?/snr-%{version}%{tag_postfix}.tag.gz
BuildRequires:	md2man
# systemd-nspawn
Requires:	gawk
Requires:	grep
Requires:	iproute2
# pactl
Requires:	pulseaudio-utils
Requires:	systemd
Requires:	xhost
BuildArch:	noarch

%description
Simple wrapper to quickly run systemd-nspawn containers with support to:
- run graphical applications inside container
- have full access to videocard
- have working sound input and output
- bind to network bridge
- specify any other options for systemd-nspawn

%files
%doc README.md
%{_bindir}/snr
%{_mandir}/man1/snr.1*
%config(noreplace) %{_sysconfdir}/snr.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}%{tag_postfix}

%build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8818 |21cr|SoapySDR-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_lto %nil
%define major 0.8
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:		SoapySDR
Version:	0.8.1
Release:	1
Summary:	A Vendor Neutral and Platform Independent SDR Support Library
Group:		System/Libraries
License:	Boost
URL:		https://github.com/pothosware/%{name}
Source0:	https://github.com/pothosware/SoapySDR/archive/soapy-sdr-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	swig
BuildRequires:	doxygen
BuildRequires:	python3-devel
BuildRequires:	python3-numpy

%description
SoapySDR is an open-source generalized C/C++ API and runtime library
for interfacing with Software-Defined Radio (SDR) devices.

%files
%license LICENSE_1_0.txt
%{_bindir}/SoapySDRUtil
%{_mandir}/man1/*
%doc README.md
# for hardware support modules
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/modules0.7

#-------------------------------------------------------------------
%package -n python-%{name}
Summary:	Python Bindings for SoapySDR
Group:		Development/Python

%description -n python-%{name}
SoapySDR is an open-source generalized C/C++ API and runtime library
for interfacing with Software-Defined Radio (SDR) devices.

%files -n python-%{name}
%license LICENSE_1_0.txt
%{python3_sitearch}/SoapySDR.py
%{python3_sitearch}/_SoapySDR.so
%{python3_sitearch}/__pycache__/SoapySDR.cpython-*.pyc

#-------------------------------------------------------------------

%package -n %{libname}
Summary:	Development Files for SoapySDR
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
SoapySDR is an open-source generalized C/C++ API and runtime library
for interfacing with Software-Defined Radio (SDR) devices.

%files -n %{libname}
%{_libdir}/libSoapySDR.so.%{major}*

#-------------------------------------------------------------------

%package -n %{devname}
Summary:	Development Files for SoapySDR
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
SoapySDR is an open-source generalized C/C++ API and runtime library
for interfacing with Software-Defined Radio (SDR) devices.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libSoapySDR.so
%{_libdir}/pkgconfig/*
%dir %{_datadir}/cmake/%{name}
%{_datadir}/cmake/%{name}/*

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-soapy-sdr-%{version}
sed -i 's!head-ref!HEAD!g' cmake/Modules/GetGitRevisionDescription.cmake.in

%build
export Python_ADDITIONAL_VERSIONS="%{python_version}"
export CFLAGS="%{optflags} -pthread"
export CXXFLAGS="%{optflags} -pthread"
%cmake -DUSE_PYTHON_CONFIG=ON -DPYTHON3_EXECUTABLE=%{__python3} -DBUILD_PYTHON3=ON
%make_build LIBS="-pthread"

%install
%make_install -C build
mkdir -p %{buildroot}/%{_libdir}/%{name}/modules0.7

%check
ctest -V %{?_smp_mflags}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8819 |21cr|sobby-0.4.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Standalone collaborative editing server, to use with gobby
Name:		sobby
Version:	0.4.8
Release:	6
License:	GPLv2+
Group:		System/Servers
Url:		http://gobby.0x539.de/trac/
Source0:	http://releases.0x539.de/sobby/%{name}-%{version}.tar.gz
Source1:	%{name}.conf
Source2:	%{name}.service
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(libxml++-2.6)
BuildRequires:	pkgconfig(net6-1.3)
BuildRequires:	pkgconfig(obby-0.4)
Requires(post,preun):	systemd
Requires(pre,postun):	rpm-helper

%description
Sobby is a standalone collaborative editor, to be used with gobby. It allows 
to save the edited document automatically, and to trigger actions after various
editing events.

%files
%dir %attr(700,sobby,sobby) /var/lib/%{name}
%dir %attr(700,sobby,sobby) /var/lib/%{name}/command
%dir %attr(700,sobby,sobby) /var/lib/%{name}/tmp
%{_bindir}/%{name}
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0644,root,root) %{_unitdir}/%{name}.service
%ghost %attr(0600,sobby,sobby) /var/lib/%{name}/autosave.obby

%pre
%_pre_useradd %{name} /var/lib/%{name} /sbin/nologin

%post
%systemd_post %{name}
if [ ! -f /var/lib/%{name}/autosave.obby ] ; then
cat <<EOF > /var/lib/%{name}/autosave.obby
!obby
session version="%{version}"
 user_table
 chat
EOF

fi

%preun
%systemd_preun %{name}

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_unitdir}
mkdir -p %{buildroot}/%{_sysconfdir}
cp %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}.conf
cp %{SOURCE2} %{buildroot}/%{_unitdir}/%{name}.service
mkdir -p %{buildroot}/var/lib/%{name}/{command,tmp}
touch  %{buildroot}/var/lib/%{name}/autosave.obby

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8820 |21cr|soci-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without mysql
%bcond_without sqlite3
%bcond_without postgresql
%bcond_without odbc

%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ Database Access Library
Name:		soci
Version:	4.0.2
Release:	1
License:	MIT
Group:		Development/Databases
URL:		http://soci.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/soci/%{name}/%{name}-%{version}/%{name}-%{version}.zip
BuildRequires:	cmake
BuildRequires:	boost-devel
%if %{with_sqlite3}
BuildRequires:	sqlite3-devel
%endif
%if %{with_postgresql}
BuildRequires:	postgresql-devel
%endif
%if %{with_mysql}
BuildRequires:	mysql-devel
%endif
%if %{with_odbc}
BuildRequires:	unixODBC-devel
%endif

%description
SOCI is a database access library for C++ that makes the illusion of
embedding SQL queries in the regular C++ code, staying entirely within
the Standard C++.

PostgreSQL, Firebird, MySQL, SQLite are supported databases.

%files
%doc CHANGES LICENSE_1_0.txt

#---------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ Database Access Libraries
Group:		Development/Databases

%description -n %{libname}
SOCI is a database access library for C++ that makes the illusion of
embedding SQL queries in the regular C++ code, staying entirely within
the Standard C++.

PostgreSQL, MySQL, SQLite are supported databases.

%files -n %{libname}
%{_libdir}/libsoci_*.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	C++ Database Access Library development files
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}
Group:		Development/Databases

%description -n %{devname}
SOCI is a database access library for C++ that makes the illusion of
embedding SQL queries in the regular C++ code, staying entirely within
the Standard C++.

This package contains development files.

%files -n %{devname}
%{_libdir}/libsoci_*.so
%{_libdir}/libsoci_*.a
%{_libdir}/cmake/SOCI/*
%{_includedir}/soci

#---------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DSOCI_EMPTY:BOOL=OFF \
%if %{with_mysql}
	-DSOCI_MYSQL:BOOL=ON \
%else
	-DSOCI_MYSQL:BOOL=OFF \
%endif
%if %{with_odbc}
	-DSOCI_ODBC:BOOL=ON \
%else
	-DSOCI_ODBC:BOOL=OFF \
%endif
%if %{with_postgresql}
	-DSOCI_POSTGRESQL:BOOL=ON \
%else
	-DSOCI_POSTGRESQL:BOOL=OFF \
%endif
%if %{with_sqlite3}
	-DSOCI_SQLITE3:BOOL=ON
%else
	-DSOCI_SQLITE3:BOOL=OFF
%endif

%make

%install
pushd build
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8821 |21cr|socketlock-0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %_lib%name

Summary: A library wraper for libc's bind() and connect() functions
Name: socketlock
Version: 0.2
Release: 9
Source0: http://mega.ist.utl.pt/~luis/socketlock/%{name}-%{version}.tar.bz2
License: GPL
Group: System/Servers
Url: http://mega.ist.utl.pt/~luis/socketlock/ 

%description
socketlock is a dynamic library that wraps libc's bind() and connect()
functions. Its purpose is to force bad programs to bind to specific IP's 
on multihomed machines. Both listening sockets and outbound sockets are
supported.

The idea was taken from a similar tool called socketbind. There were serious
problems and lack of features, so this I written this new tool.

To use it simply run:

export LD_PRELOAD=libsocketlock.so
export BINDTO=<ipaddress>

<start program>

%package -n %libname
Group: System/Servers
Summary: A library wraper for libc's bind() and connect() functions
Provides: %name = %version-%release

%description -n %libname
socketlock is a dynamic library that wraps libc's bind() and connect()
functions. Its purpose is to force bad programs to bind to specific IP's 
on multihomed machines. Both listening sockets and outbound sockets are
supported.

The idea was taken from a similar tool called socketbind. There were serious
problems and lack of features, so this I written this new tool.

To use it simply run:

export LD_PRELOAD=%_libdir/libsocketlock.so
export BINDTO=<ipaddress>

<start program>

%prep
%setup -q

%build
gcc $RPM_OPT_FLAGS -c -rdynamic -fPIC socketlock.c
gcc $RPM_OPT_FLAGS -shared -rdynamic -fPIC -ldl socketlock.o -o libsocketlock.so
# strip libsocketlock.so 

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot%_libdir
install -m 755 libsocketlock.so %buildroot%_libdir/libsocketlock.so

%clean
rm -rf $RPM_BUILD_ROOT

%files -n %libname
%defattr(-,root,root)
%doc TODO README.txt
%_libdir/libsocketlock.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8822 |21cr|sofia-sip-1.13.45-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define gmajor 3
%define libname %mklibname sofia-sip-ua %{major}
%define libglib %mklibname sofia-sip-ua-glib %{gmajor}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	An open-source SIP User-Agent library
Name:		sofia-sip
Version:	1.13.45
Release:	1
License:	LGPLv2+
Group:		Networking/Instant messaging
Url:		http://sofia-sip.sourceforge.net/
Source0:	https://github.com/BelledonneCommunications/sofia-sip/archive/%{version}bc.tar.gz?/sofia-sip-%{version}bc.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(openssl)

%description
Sofia-SIP is an open-source SIP  User-Agent library, compliant with the
IETF RFC3261 specification (see the feature table). It can be used as
a building block for SIP client software for uses such as VoIP, IM,
and many other real-time and person-to-person communication services.
The primary target platform for Sofia-SIP is GNU/Linux. Sofia-SIP is
based on a SIP stack developed at the Nokia  Research Center.
Sofia-SIP is licensed under the LGPL.

%files
%{_bindir}/addrinfo
%{_bindir}/localinfo
%{_bindir}/sip-date
%{_bindir}/sip-dig
%{_bindir}/sip-options
%{_bindir}/stunc
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Sophia-sip shared library
Group:		System/Libraries
Conflicts:	%{_lib}sofia-sip0 < 1.12.11-5
Obsoletes:	%{_lib}sofia-sip0 < 1.12.11-5

%description -n %{libname}
Sophia-sip shared library.

%files -n %{libname}
%{_libdir}/libsofia-sip-ua.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libglib}
Summary:	Sophia-sip shared library
Group:		System/Libraries
Conflicts:	%{_lib}sofia-sip0 < 1.12.11-5

%description -n %{libglib}
Sophia-sip shared library.

%files -n %{libglib}
%{_libdir}/libsofia-sip-ua-glib.so.%{gmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of %{name} for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libglib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
%{_datadir}/sofia-sip/msg_parser.awk
%{_datadir}/sofia-sip/tag_dll.awk
%{_includedir}/sofia-sip-1.13
%{_libdir}/libsofia-sip-ua-glib.so
%{_libdir}/libsofia-sip-ua.so
%{_libdir}/pkgconfig/sofia-sip-ua-glib.pc
%{_libdir}/pkgconfig/sofia-sip-ua.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}bc

%build
libtoolize --automake --force
aclocal -I m4 --force
autoheader --force
autoconf --force
automake --gnu --force-missing --add-missing

%configure \
	--disable-rpath
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8823 |21cr|sofia-sip-freeswitch-1.13.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%global __provides_exclude_from ^%{_libdir}/
%global __requires_exclude libsofia-sip-ua.*$|pkgconfig\\(sofia-sip-ua\\)

%define major 0
%define gmajor 3
%define libname %mklibname sofia-sip-ua_freeswitch %{major}
%define libglib %mklibname sofia-sip-ua-glib_freeswitch %{gmajor}
%define devname %mklibname %{name} -d

Summary:	An open-source SIP User-Agent library
Name:		sofia-sip-freeswitch
Version:	1.13.16
Release:	1
License:	LGPLv2+
Group:		Networking/Instant messaging
Url:		http://sofia-sip.sourceforge.net/
Source0:	https://github.com/freeswitch/sofia-sip/archive/refs/tags/v%{version}.tar.gz?/sofia-sip-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(openssl)
Requires:	%{libname} = %{EVRD}
Requires:	%{libglib} = %{EVRD}
Conflicts:	sofia-sip

%description
Sofia-SIP is an open-source SIP  User-Agent library, compliant with the
IETF RFC3261 specification (see the feature table). It can be used as
a building block for SIP client software for uses such as VoIP, IM,
and many other real-time and person-to-person communication services.
The primary target platform for Sofia-SIP is GNU/Linux. Sofia-SIP is
based on a SIP stack developed at the Nokia  Research Center.
Sofia-SIP is licensed under the LGPL.

%files
%{_bindir}/addrinfo
%{_bindir}/localinfo
%{_bindir}/sip-date
%{_bindir}/sip-dig
%{_bindir}/sip-options
%{_bindir}/stunc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Sophia-sip shared library
Group:		System/Libraries
Conflicts:	%{_lib}sofia-sip-ua0 > %{EVRD}

%description -n %{libname}
Sophia-sip shared library.

%files -n %{libname}
%{_libdir}/libsofia-sip-ua.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libglib}
Summary:	Sophia-sip shared library
Group:		System/Libraries
Conflicts:	%{_lib}sofia-sip-ua-glib3 > %{EVRD}

%description -n %{libglib}
Sophia-sip shared library.

%files -n %{libglib}
%{_libdir}/libsofia-sip-ua-glib.so.%{gmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of %{name} for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libglib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
%{_datadir}/sofia-sip/msg_parser.awk
%{_datadir}/sofia-sip/tag_dll.awk
%{_includedir}/sofia-sip-1.13
%{_libdir}/libsofia-sip-ua-glib.so
%{_libdir}/libsofia-sip-ua.so
%{_libdir}/pkgconfig/sofia-sip-ua-glib.pc
%{_libdir}/pkgconfig/sofia-sip-ua.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n sofia-sip-%{version}

%build
libtoolize --automake --force
aclocal -I m4 --force
autoheader --force
autoconf --force
automake --gnu --force-missing --add-missing

%configure \
	--disable-rpath
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8824 |21cr|solaar-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Solaar

Summary:	Device manager for Logitech's Unifying Receiver
Name:		solaar
Version:	1.0.4
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://pwr-solaar.github.io/Solaar/
Source0:	https://github.com/pwr-Solaar/Solaar/archive/%{oname}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	python3 >= 3.5
BuildRequires:	python3-setuptools
Requires:	kernel >= 5.2.0
Requires:	python3-udev
Requires:	python3-gi
Requires:	typelib(AppIndicator3)
Requires:	typelib(Notify)
BuildArch:	noarch


%description
A Linux device manager for Logitech’s Unifying Receiver peripherals. It is
able to pair/unpair devices to the receiver, and for most devices read
battery status. It comes in two flavors, command-line and GUI. Both are able
to list the devices paired to a Unifying Receiver, show detailed info for each
device, and also pair/unpair supported devices with the receiver.

%files -f %{name}.lang
%doc docs/*.md docs/*.txt docs/devices
%{_bindir}/%{name}*
%{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{py3_puresitedir}/hidapi/
%{py3_puresitedir}/logitech_receiver/
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}-%{version}-*.egg-info
%{_udevrulesdir}/42-logitech-unify-permissions.rules

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}


%build
%py3_build

# Build lang support
pushd tools
	./po-compile.sh
popd


%install
%py3_install

# Install udev rules
mkdir -p %{buildroot}%{_udevrulesdir}
install -m 0644 rules.d/42-logitech-unify-permissions.rules %{buildroot}%{_udevrulesdir}

# Install autostart file
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
install -m 0644 share/autostart/%{name}.desktop %{buildroot}%{_sysconfdir}/xdg/autostart

# Fix perms
chmod +x %{buildroot}%{py3_puresitedir}/%{name}/{gtk,tasks}.py


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8825 |21cr|solaar-1.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Solaar

Summary:	Device manager for Logitech's Unifying Receiver
Name:		solaar
Version:	1.1.9
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://pwr-solaar.github.io/Solaar/
Source0:	https://github.com/pwr-Solaar/Solaar/archive/refs/tags/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	python3 >= 3.5
BuildRequires:	python3-setuptools
Requires:	kernel >= 5.2.0
Requires:	python3-udev
Requires:	python3-gi
Requires:	typelib(AppIndicator3)
Requires:	typelib(Notify)
BuildArch:	noarch


%description
A Linux device manager for Logitech’s Unifying Receiver peripherals. It is
able to pair/unpair devices to the receiver, and for most devices read
battery status. It comes in two flavors, command-line and GUI. Both are able
to list the devices paired to a Unifying Receiver, show detailed info for each
device, and also pair/unpair supported devices with the receiver.

%files -f %{name}.lang
%doc docs/*.md docs/*.txt docs/devices
%{_bindir}/%{name}*
%{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/metainfo/io.github.pwr_solaar.solaar.metainfo.xml
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{py3_puresitedir}/hidapi/
%{py3_puresitedir}/logitech_receiver/
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}-%{version}-*.egg-info
%{py3_puresitedir}/keysyms
%{_udevrulesdir}/42-logitech-unify-permissions.rules

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}


%build
%py3_build

# Build lang support
pushd tools
	./po-compile.sh
popd


%install
%py3_install

# Install udev rules
mkdir -p %{buildroot}%{_udevrulesdir}
install -m 0644 rules.d/42-logitech-unify-permissions.rules %{buildroot}%{_udevrulesdir}

# Install autostart file
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
install -m 0644 share/autostart/%{name}.desktop %{buildroot}%{_sysconfdir}/xdg/autostart

# Fix perms
chmod +x %{buildroot}%{py3_puresitedir}/%{name}/{gtk,tasks}.py


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8826 |21cr|solarus-1.6.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An open-source Zelda-like 2D game engine
Name:		solarus
Version:	1.6.5
Release:	3
License:	GPLv3+
Group:		Games/Adventure
Url:		https://www.solarus-games.org/
Source0:	https://gitlab.com/solarus-games/solarus/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	glm-devel
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(vorbis)

%description
Solarus is an open-source Zelda-like 2D game engine written in C++. If you
want, you can download games "Zelda Mystery of Solarus DX" and "Zelda
Mystery of Solarus XD" on solarus site at:
http://www.solarus-games.org/games/.
Their licenses do not allow redistribution, they are open-source but
contain copyrighted material from Nintendo, thus preventing their
redistribution as per our licensing policy.

%files
%doc changelog.md readme.md
%license license.txt
%{_appdatadir}/org.%{name}_games.%{name}.appdata.xml
%{_bindir}/%{name}-launcher
%{_bindir}/%{name}-run
%{_datadir}/applications/org.%{name}_games.%{name}.Launcher.desktop
%{_datadir}/pixmaps/org.%{name}_games.%{name}.*.png
%{_iconsdir}/hicolor/*/apps/org.%{name}_games.%{name}.*.png
%{_iconsdir}/hicolor/*/apps/org.%{name}_games.%{name}.*.svg
%lang(es) %{_datadir}/%{name}-gui/translations/%{name}_es.qm
%lang(fr) %{_datadir}/%{name}-gui/translations/%{name}_fr.qm
%{_mandir}/man6/%{name}-*.6.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Solarus library
Group:		System/Libraries

%description -n %{libname}
Solarus library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/lib%{name}-gui.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for solarus
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for solarus.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}-gui.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
LDFLAGS="%{ldflags} -ldl"
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8827 |21cr|solarwolf-1.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		solarwolf
Version:	1.5
Release:	13
URL:		http://www.pygame.org/shredwheat/solarwolf/
Source0:	%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
License:	LGPL
Group:		Games/Arcade
Summary:	2D frantic arcade game of collecting boxes and dodging bullets
BuildArch:	noarch
Requires:	pygame

%description
SolarWolf is an action/arcade game written entirely in Python.

Advance through 48 levels levels. Collect the boxes on each stage,
while enemies shoot at you from all sides. The game is originally based
of one of the author's childhood favorites, SolarFox on the Atari 2600. 

%prep
%setup -q
rm -rf `find -type d -name .xvpics`

%build

%install
%{__install} -d %{buildroot}{%{_gamesdatadir}/%{name},%{_gamesbindir}}
cp -pr data code %{name}.py %{buildroot}%{_gamesdatadir}/%{name}/

%{__cat} <<EOF > %{buildroot}%{_gamesbindir}/%{name}
#!/bin/sh
cd %{_gamesdatadir}/%{name}
./%{name}.py $@
EOF

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%name.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Categories=Game;ArcadeGame;
Name=SolarWolf
Comment=%{Summary}
EOF

%{__install} %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
%{__install} %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
%{__install} %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png


%files
%defattr(644,root,root,755)
%doc readme.txt
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/data
%{_gamesdatadir}/%{name}/code
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8828 |21cr|sonata-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An elegant music client for MPD
Name:		sonata
Epoch:		1
Version:	1.7.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://www.nongnu.org/sonata/
Source0:	https://github.com/multani/sonata/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	norwegian-nb.po
BuildArch:	noarch
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
Requires:	mpd
Requires:	python3-dbus
Requires:	python3-gobject3
Requires:	python3-mpd
Requires:	python3-tagpy

%description
Sonata is an elegant GTK+ music client for the Music Player Daemon (MPD).

%files -f %{name}.lang
%doc CHANGELOG README.rst TODO TRANSLATORS PLUGINS.rst
%{_bindir}/%{name}
%{py3_puresitedir}/*
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*

#-----------------------------------------------------------------------

%prep
%setup -q

install -m644 %{SOURCE1} po/nb.po

%build
%py3_build

%install
%py3_install -- --no-compile

mkdir -p %{buildroot}%{_prefix}
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_docdir}/%{name}
mkdir -p %{buildroot}%{_mandir}
install -m644 sonata/pixmaps/%{name}.png -D %{buildroot}%{_datadir}/pixmaps/%{name}.png
rm -f %{buildroot}%{_datadir}/%{name}/{CHANGELOG,README.rst,TODO,TRANSLATORS}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8829 |21cr|sonatype-oss-parent-7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global artifactid oss-parent

Name:           sonatype-oss-parent
Version:        7
Release:        4
Summary:        Sonatype OSS Parent

Group:          Development/Java
License:        ASL 2.0
URL:            https://github.com/sonatype/oss-parents
#svn export http://svn.sonatype.org/spice/tags/oss-parent-6 sonatype-oss-parent-6
#tar zcf sonatype-oss-parent-6.tar.gz sonatype-oss-parent-6/
Source0:       %{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildArch: noarch

BuildRequires:  jpackage-utils >= 0:1.7.2

Requires:          jpackage-utils
Requires(post):    jpackage-utils >= 0:1.7.2
Requires(postun):  jpackage-utils >= 0:1.7.2

%description
Sonatype OSS parent pom used by other sonatype packages

%prep
%setup -q
cp -p %{SOURCE1} LICENSE

%build
#nothing to do for the pom

%install
# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml \
    %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

%add_to_maven_depmap org.sonatype.oss %{artifactid} %{version} JPP %{name}

%post
%update_maven_depmap

%postun
%update_maven_depmap

%files
%doc LICENSE
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8830 |21cr|songs-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:	 	songs
Summary:	A little tool used to record and mix audio files
Version:	0.5
Release:	3
License:	Public Domain
Group:		Sound
URL:		http://sed.free.fr/songs/
Source0:	http://sed.free.fr/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(alsa)

%description
A sort of a hacker tool, using GTK 2.0 and ALSA or OSS.
There are Linux recording tools, but these are too complex, too huge, eat too
much memory and resources. Songs tries to prove that small machines can be
used to record and mix audio files, even with a graphical interface.
Features of Songs:
    * Unlimited number of tracks
    * Supports WAV files (mono/stereo, only 44.1 KHz, 16 bits)
    * Supports raw float files (mono/stereo)
    * Several effects
    * Not too much memory used.
    
%files
%doc BUGS ChangeLog README TODO
%{_bindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
    
#-----------------------------------------------------------------------------    

%prep
%setup -q


%build
export CFLAGS="%{optflags}"
%make


%install
install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}
#menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=sound_section
Name=Songs
Comment=Multitrack wave editor
Categories=Audio;AudioVideo;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8831 |21cr|songwrite3-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Songwrite3

Summary:	Guitar tabulature editor with playing and printing
Name:		songwrite3
Version:	0.1
Release:	2
License:	GPLv3+
Group:		Sound
Url:		http://www.lesfleursdunormal.fr/static/informatique/songwrite/index_en.html
Source0:	http://download.gna.org/songwrite/%{oname}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	python3-setuptools
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(python3)
Requires:	editobj3
Requires:	TiMidity++
Requires:	lilypond
BuildArch:	noarch
%rename		songwrite2

%description
This is a tablature (guitar partition) editor. It's the successor of songwrite
and songwrite2. It is coded in Python3 and now uses Qt5; it relies on
Timidity++ to play midi and on Lilypond for printing.

%files -f %{name}.lang
%doc AUTHORS CHANGES README.rst
%doc doc/en/doc.pdf doc/*.xml
%{_bindir}/%{name}
%{py3_puresitedir}/%{name}/*.py*
%{py3_puresitedir}/%{name}/__pycache__/*.pyc
%{py3_puresitedir}/%{name}/data/
%{py3_puresitedir}/%{name}/plugins/
%{py3_puresitedir}/*.egg-info
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.xz

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
%py3_build


%install
%py3_install

# Install the provided .desktop file...
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install %{name}.desktop \
	--remove-key=Encoding \
	--set-icon=%{name} \
	--remove-category=Application \
	--dir=%{buildroot}%{_datadir}/applications
# ... and the man page
mkdir -p %{buildroot}%{_mandir}/man1/
install -m 0644 manpage/man1/%{name} %{buildroot}%{_mandir}/man1/

# Remove provided docs (we take them with our macro)...
rm -rf %{buildroot}%{py3_puresitedir}/%{name}/doc/
# ... and the manpage (already installed in the right place)...
rm -rf %{buildroot}%{py3_puresitedir}/%{name}/manpage/
# .. and uninteresting lang source files
rm -f %{buildroot}%{py3_puresitedir}/%{name}/locale/*/LC_MESSAGES/%{name}.po

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8832 |21cr|sonic-visualiser-4.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	snapshot	0
%define	commit		89a6d56803fd

Summary:	Application for viewing and analyzing contents of audio files
Name:		sonic-visualiser
Version:	4.4
Release:	4
Group:		Sound
License:	GPLv2+
Url:		https://www.sonicvisualiser.org
%if %{snapshot}
Source0:	https://code.soundsoftware.ac.uk/hg/sonic-visualiser/archive/%{name}-%{commit}.zip
%else
Source0:	https://code.soundsoftware.ac.uk/attachments/download/2786/%{name}-%{version}.tar.gz
%endif
BuildRequires:	capnproto
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	meson >= 0.54.0
BuildRequires:	ninja
BuildRequires:	alsa-oss-devel
BuildRequires:	bzip2-devel
BuildRequires:	libfishsound-devel >= 1.0.0
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(capnp) >= 0.6.1
#BuildRequires:	pkgconfig(dataquay)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fishsound) >= 1.0.0
BuildRequires:	pkgconfig(id3tag) >= 0.15.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(lrdf)
BuildRequires:	pkgconfig(mad) >= 0.15.0
BuildRequires:	pkgconfig(oggz) >= 1.0.0
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(portaudio-2.0) >= 19
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
#BuildRequires:	pkgconfig(raptor)
BuildRequires:	pkgconfig(redland)
BuildRequires:	pkgconfig(rubberband)
BuildRequires:	pkgconfig(samplerate) >= 0.1.2
BuildRequires:	pkgconfig(serd-0) >= 0.5
BuildRequires:	pkgconfig(sndfile) >= 1.0.16
BuildRequires:	pkgconfig(sord-0) >= 0.5
BuildRequires:	pkgconfig(vamp) >= 2.1
BuildRequires:	pkgconfig(x11)

%description
Sonic Visualiser is an application for viewing and analyzing the contents of
music audio files. The aim of Sonic Visualiser is to be the first program you
reach for when want to study a musical recording rather than simply listen to
it.
As well as a number of features designed to make exploring audio data as
revealing and fun as possible, it also has powerful annotation capabilities
to help you to describe what you find, and the ability to run automated
annotation and analysis plugins in the Vamp analysis plugin format as well as
applying standard audio effects.

%files
%doc CHANGELOG COPYING README.md README_OSC.md
%{_bindir}/%{name}
%{_bindir}/piper-convert
%{_bindir}/piper-vamp-simple-server
%{_bindir}/vamp-plugin-load-checker
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/icons
%dir %{_datadir}/%{name}/samples
%{_datadir}/%{name}/icons/*
%{_datadir}/%{name}/samples/*.wav
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*

#-----------------------------------------------------------------------------

%prep
%if %{snapshot}
%setup -qn %{name}-%{commit}
%else
%setup -q
%endif


%build
%meson

%meson_build


%install
%meson_install

# Prepare and install other icon files
for s in 16 22 24 32 48 64 128; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
	install -m 644 -p icons/sv-${s}x${s}.png %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done
mkdir -p %{buildroot}%{_datadir}/%{name}/icons/
install -m 644 -p icons/*.{png,svg,xbm} %{buildroot}%{_datadir}/%{name}/icons/

# Install sample files
mkdir -p %{buildroot}%{_datadir}/%{name}/samples/
install -m 644 -p samples/*.wav %{buildroot}%{_datadir}/%{name}/samples/

# Adjust the provided .desktop file
desktop-file-edit --set-generic-name="Audio visualisation tool" %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8833 |21cr|sonivox-3.6.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 3
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

# The README.md file strongly recommends always running tests.
# Do it while updating locally and disable it for ABF builds.
%bcond_with	tests

Summary:	Small wave table and GM synthesizer
Name:		sonivox
Version:	3.6.12
Release:	1
License:	Apache License
Group:		Sound
Url:			https://github.com/pedrolcl/sonivox
Source0:	https://github.com/pedrolcl/sonivox/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 3.14
%if %{with tests}
BuildRequires:	pkgconfig(gtest)
%endif

%description
This is a Wave Table synthesizer, not using external sound-font files but
embedded samples instead. It is also a real time GM synthesizer. It consumes
very little resources, so it may be indicated in projects for small embedded
devices. There is neither MIDI input nor Audio output facilities included in
the library. You need to provide your own input/output.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This is a Wave Table synthesizer, not using external sound-font files but
embedded samples instead. It is also a real time GM synthesizer.
This package contains the main library for %{name}.

%files -n %{libname}
%doc LICENSE NOTICE README.md
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:		name-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This is a Wave Table synthesizer, not using external sound-font files but
embedded samples instead. It is also a real time GM synthesizer.
This package contains the needed for programs using %{name}.

%files -n %{devname}
%doc docs/*.pdf
%{_includedir}/%{name}/eas*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/%{name}-*.cmake

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake	-DBUILD_SONIVOX_STATIC=OFF \
				-DBUILD_SONIVOX_SHARED=ON \
%if %{with tests}
				-DBUILD_TESTING=ON \
				-DCMAKE_SKIP_RPATH=OFF
%else
				-DBUILD_TESTING=OFF
%endif
%make


%install
%makeinstall_std -C build


%if %{with tests}
%check
# WARNING: Always verify that the chosen dir for TMP is writable, before exporting
export TMP="$HOME/rpm/tmp"
export TEST_RESOURCES="test/res"
cmake --build build --target test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8834 |21cr|sooperlooper-1.7.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuilding configure without using their autogen.sh script fails
%global	_disable_rebuild_configure	%{nil}

Summary:	Live audio looper
Name:		sooperlooper
Version:	1.7.9
Release:	3
License:	GPLv2+
Group:		Sound
Url:		https://sonosaurus.com/sooperlooper
# See also: https://github.com/essej/sooperlooper
Source0:	http://sonosaurus.com/%{name}/%{name}-%{version}.tar.gz
# Shamelessly stolen from Fedora
Source1:	%{name}.appdata.xml
Patch0:		sooperlooper-invalid-conversion.patch
BuildRequires:	gettext-devel
BuildRequires:	wxgtku3.2-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo) >= 0.18
BuildRequires:	pkgconfig(libxml-2.0) >= 2.5
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(rubberband) >= 0.0.13
BuildRequires:	pkgconfig(samplerate) >= 0.0.13
BuildRequires:	pkgconfig(sigc++-2.0) >= 2.2.10
BuildRequires:	pkgconfig(sndfile) >= 1.0.2

%description
SooperLooper is a live looping sampler capable of immediate loop recording, 
overdubbing, multiplying, reversing and more. It allows for multiple 
simultaneous multi-channel loops limited only by your computer's available
memory.

%files
%doc README.md
%{_bindir}/%{name}
%{_bindir}/slconsole
%{_bindir}/slgui
%{_bindir}/slregister
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CXXFLAGS="-std=c++14 %{optflags}"

./autogen.sh
%configure
%make


%install
%makeinstall_std

# Provide menu entry
mkdir -p %{buildroot}/%{_datadir}/applications
cat > %{buildroot}/%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=SooperLooper
Comment=Live Audio Looper
Exec=slgui
Icon=sound_section
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;Audio;AudioVideoEditing;Midi;
Keywords=Music;Sound;Looper;
EOF

# Install appdata
mkdir -p %{buildroot}%{_datadir}/appdata
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/appdata

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8835 |21cr|soqt-1.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define oname SoQt

%define major 20
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	SoQt interfaces Coin with the Qt GUI library
Name:		soqt
Version:	1.6.0
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.coin3d.org/
Source0:	https://github.com/coin3d/soqt/releases/download/SoQt-%{version}/%{name}-%{version}-src.tar.gz
Patch0:			soqt-1.6.0-cmake.patch
Patch1:			soqt-1.6.0-pkgconf.patch
# https://github.com/coin3d/soqt/commit/fb8f655632bb9c9c60e0ff9fa69a5ba22d3ff99d.patch$
Patch2:         fb8f655632bb9c9c60e0ff9fa69a5ba22d3ff99d.patch
BuildRequires:		cmake
BuildRequires:		doxygen
BuildRequires:		pkgconfig(Coin) >= 4.0.0
BuildRequires:		pkgconfig(Qt5Core)
BuildRequires:		pkgconfig(Qt5Gui)
BuildRequires:		pkgconfig(Qt5OpenGL)
BuildRequires:		pkgconfig(Qt5Widgets)
BuildRequires:		pkgconfig(xi)

%description
SoQt interfaces Coin with the Qt GUI library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for SoQt
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with SoQt.

%files -n %{libname}
%{_libdir}/libSoQt.so.%{major}*
%{_libdir}/libSoQt.so.%{version}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use SoQt
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use SoQt.

%files -n %{devname}
%doc README FAQ AUTHORS NEWS
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_libdir}/pkgconfig/SoQt.pc
%{_includedir}/*
%{_datadir}/SoQt
%{_datadir}/info/*
%{_docdir}/SoQt/*
%{_mandir}/man3/*
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%cmake -DSOQT_BUILD_DOCUMENTATION=TRUE \
       -DSOQT_BUILD_DOC_MAN=TRUE \
       -DCMAKE_INSTALL_INCLUDEDIR=%{_includedir}/Coin4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8836 |21cr|soundconverter-4.0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sound converter application for the GNOME environment
Name:		soundconverter
Version:	4.0.5
Release:	2
License:	GPLv3+
Group:		Sound
Url:		https://soundconverter.org/
Source0:	https://launchpad.net/soundconverter/trunk/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	python3-distutils-extra
BuildRequires:	python3-gobject3-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(python3)
Requires:	dconf
Requires:	python3-gobject3
Requires:	gstreamer1.0-decoders-audio
Requires:	gstreamer1.0-libav
Requires:	gstreamer1.0-lame
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-ugly
Requires:	typelib(GstBadAudio)
Requires:	typelib(GstBase)
Requires:	typelib(GstCodecs)
Requires:	typelib(GstPbutils)
Requires:	typelib(Gtk)
Requires:	typelib(Notify)
Requires:	typelib(Pango)

BuildArch:	noarch

%description
SoundConverter is a simple sound converter application for the GNOME
environment. It reads and writes WAV, FLAC, MP3 and Ogg Vorbis. The user
interface is raw, but should be simple enough to get the job done.

%files -f %{name}.lang
%doc CHANGELOG NEWS README.md
%{_bindir}/%{name}
%{py3_puresitedir}/%{name}
%{py3_puresitedir}/%{name}-*.egg-info
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.gschema.xml
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
%py3_build


%install
%py3_install

# Drop unwanted stuff
rm -f %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled

# Somehow distutils won't install the translations files after building them:
# do it manually
mkdir -p %{buildroot}%{_datadir}/locale
mv build/mo/* %{buildroot}%{_datadir}/locale/

# Ditto for the desktop file
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	--delete-original \
	build/share/applications/%{name}.desktop

# Fix exec bits to avoid rpmlint noise
find %{buildroot}%{py3_puresitedir}/%{name}/ -name "*.py" |xargs chmod +x 

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8837 |21cr|soundkonverter-3.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	3
%define	libsoundkonvertercore	%mklibname soundkonvertercore %{major}

Summary:	An audio file converter, CD ripper and replay gain tool
Name:		soundkonverter
Version:	3.0.1
Release:	6
License:	GPLv2+
Group:		Sound
Url:		https://github.com/dfaust/soundkonverter
Source0:	https://github.com/dfaust/%{name}/archive/%{name}-%{version}.tar.gz
# !!! Make sure to update this patch on EVERY version update !!!_
Patch0:		soundkonverter-3.0.1-soname.patch
Patch1:		soundkonverter-3.0.1-fix_translate.patch
Patch2:		soundkonverter-3.0.1-fix-adding-directories-to-replaygain.patch
Patch3:		soundkonverter-3.0.1-put-appdata-in-metainfo-dir.patch
Patch4:		soundkonverter-3.0.1-fix-translations.patch
# ECM >= 5.72 interferes with internal FindTaglib module
Patch5:		soundkonverter-3.0.1-fix-taglib-inclusion.patch
BuildRequires:	appstream
BuildRequires:	cmake >= 3.3.0
BuildRequires:	desktop-file-utils
BuildRequires:	extra-cmake-modules
BuildRequires:	gettext
BuildRequires:	cdda-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5cddb-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libcdio_paranoia)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9.1
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(taglib) >= 1.10
Requires:	%{name}-plugins = %{EVRD}
Requires:	aften
Requires:	cdparanoia
Requires:	cdrtools
Requires:	faac
Requires:	faad2
Requires:	flac
Requires:	flac123
Requires:	fluidsynth
Requires:	ffmpeg
Requires:	lame
Requires:	mac
Requires:	mp3gain
Requires:	mplayer
Requires:	mppenc
Requires:	opus-tools
Requires:	sox
Requires:	speex
Requires:	TiMidity++
Requires:	ttaenc
Requires:	twolame
Requires:	vorbis-tools
Requires:	vorbisgain
Requires:	wavpack
# Suggest stuff from Non-free
Recommends:	shorten
#aacgain
#mppdec
#neroaac

%description
An audio file converter, CD ripper and replay gain tool GUI for various
back-ends.

%files -f %{name}.lang
%doc CHANGELOG COPYING README
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/%{name}.desktop
#{_kde5_appsdir}/%%{name}
%{_kde5_datadir}/solid/actions/%{name}-*
%{_kde5_datadir}/%{name}/images/nocover.png
%{_kde5_iconsdir}/hicolor/*/apps/*.png
%{_kde5_services}/%{name}_*
%{_kde5_servicetypes}/%{name}_*
%{_kde5_xmlguidir}/%{name}/soundkonverterui.rc
%{_appdatadir}/%{name}.appdata.xml

#----------------------------------------------------------------------------

%package -n %{libsoundkonvertercore}
Summary:	Library for %{name}
Group:		System/Libraries
%rename	%{_lib}soundkonverter
%rename	%{_lib}soundkonvertercore2

%description -n %{libsoundkonvertercore}
This package provides the library for %{name}.

%files -n %{libsoundkonvertercore}
%doc COPYING
%{_kde5_libdir}/libsoundkonvertercore.so.%{major}*

#----------------------------------------------------------------------------

%package plugins
Summary:	Codecs and filters for %{name}
Group:		Sound

%description plugins
Codecs and filters for %{name}.

%files plugins
%doc COPYING
%{_kde5_libdir}/qt5/plugins/soundkonverter_*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Fix debug linting
find . -type f -exec chmod -x {} \;


%build
%cmake_kde5
%make


%install
%makeinstall_std -C build

# We don't need it as there are no headers anyway
rm -f %{buildroot}%{_kde5_libdir}/libsoundkonvertercore.so

# Fix provided .desktop file
desktop-file-edit	--remove-key="Encoding" \
					--add-category="Qt" \
					%{buildroot}%{_kde5_applicationsdir}/%{name}.desktop


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8838 |21cr|SourceCodePro-1.009-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: SourceCodePro
Version: 1.009
Release: 4
Summary: Xorg X11 font encodings
Group: Development/X11
URL: http://www.adobe.com
Source: http://citylan.dl.sourceforge.net/project/sourcecodepro.adobe/SourceCodePro_FontsOnly-1.009.zip
License: OFL
BuildArch: noarch

Requires(post,postun): mkfontdir

%description
This package contains the professional monospace fonts.

%prep
%setup -q -n SourceCodePro_FontsOnly-1.009

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/fonts/SourceCodePro
cp *.otf %{buildroot}%{_datadir}/fonts/SourceCodePro

%clean
rm -rf %{buildroot}

%post
mkfontdir -n -e %{_datadir}/fonts/SourceCodePro %{_datadir}/fonts/SourceCodePro

%files
%defattr(-,root,root)
%dir %{_datadir}/fonts/SourceCodePro
%{_datadir}/fonts/SourceCodePro/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8839 |21cr|sourceinstall-2.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GNU Source Installer
Name:		sourceinstall
Version:	2.5
Release:	6
License:	GPLv3+
Group:		Development/Tools
Url:		http://www.gnu.org/software/sourceinstall
Source0:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libsrcinst)

%description
For an experienced user, this sofware provides a way to centralize source
installation, keep track of already installed packages and their relevant
files, check installations for consistency, and have enhanced uninstallation.
For the novice but interested user, this software also offers a way to gain
confidence with the command line (yes really), the file system, the traditional
UNIX commands, and of course with common source configuration and installation
procedures and options.
The software is targeted at UNIX-like systems, and should work on recent
UNIX-likes, with GNU/Linux as the primary target.
Please report any portability problem you should encounter.
After completing installation of `sourceinstall' itself, the install procedure
becomes:
   - surf the web, browse a CD or other resource
   - identify a desired source package
   - add it using the installer

%files -f %{name}.lang
%doc AUTHORS ChangeLog
%{_bindir}/sourceinstall
%{_mandir}/man1/sourceinstall*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8840 |21cr|sourceinstall-gtk-2.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI front end for sourceinstall
Name:		sourceinstall-gtk
Version:	2.5
Release:	6
License:	GPLv3+
Group:		Development/Tools
Url:		http://www.gnu.org/software/sourceinstall
Source0:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libsrcinst)

%description
For an experienced user, sourceinstall provides a way to centralize source
installation, keep track of already installed packages and their relevant 
files, check installations for consistency, and have enhanced uninstallation.
sourceinstall-gtk is a GUI front end for sourceinstall.

%files -f %{name}.lang
%doc AUTHORS ChangeLog
%{_bindir}/%{name}
%{_mandir}/*/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m 0644 images/icon48x48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 images/icon48x48.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 images/icon48x48.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=GNU Source Installer
Comment=Install software from source code
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Settings;PackageManager;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8841 |21cr|source-sans-fonts-1.065-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _name SourceSansPro
%define	fontdir	%{_datadir}/fonts/source-sans

Name:           source-sans-fonts
Version:        1.065
Release:        3
Summary:        A set of OpenType fonts designed for user interfaces
License:        OFL-1.1
Group:          System/X11
URL:            http://sourceforge.net/projects/sourcesans.adobe/
Source:         1.065R-it.tar.gz
BuildArch:      noarch

%description
Source Sans is a set of OpenType fonts that have been designed to work well
in user interface (UI) environments, as well as in text setting for screen
and print.

%prep
%setup -q -n source-sans-pro-2.010R-ro-%{version}R-it
# Fix line endings
sed -i 's/\r$//g' LICENSE.txt

%build

%install
install -d %{buildroot}%{fontdir}
install TTF/*.ttf %{buildroot}%{fontdir}
chmod a-x %{buildroot}%{fontdir}/*ttf

%files
%doc LICENSE.txt *.html
%{fontdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8842 |21cr|space-1.0.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Desktop backgrounds - Photo and data images from NASA
Name: space
Version: 1.0.0
Release: 17
License: Public domain 
Group: Graphical desktop/Other
Source: %{name}-%{version}.tar.bz2
Source1: README.space
Source2: PHOTO_FAQ.ps

URL: http://www.nasa.gov/gallery/photo/
BuildArchitectures: noarch

%description
An extract of more than 500,000 photos and data images from 10 NASA
Centers have been linked together to create a searchable database of
agency imagery covering a variety of NASA programs. The NASA Image
Exchange (http://nix.nasa.gov/) is the first step toward a
comprehensive online imagery collection, and other collections will be
added as they become available. Curators of NASA image collections can
contact the NIX for details on how to join the project.

%prep
rm -rf $RPM_BUILd_ROOT

%setup0 -c

%install

mkdir -p $RPM_BUILD_ROOT%{_datadir}/pixmaps/backgrounds
cd $RPM_BUILD_ROOT%{_datadir}/pixmaps/backgrounds
bzcat %{SOURCE0}|tar xv

cd $RPM_BUILD_SOURCE
mkdir -p $RPM_BUILD_ROOT/%{_docdir}/%name-%version
cp %{SOURCE1} %{SOURCE2} $RPM_BUILD_ROOT/%{_docdir}/%name-%version/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%{_datadir}/pixmaps/backgrounds/space
%_docdir/%name-%version/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8843 |21cr|spacebar-22.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Instant messenger for Plasma Mobile
Name:		spacebar
Version:	22.11
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	spacebar-22.9_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	telepathy-qt5-devel
BuildRequires:	qcoro-qt5-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	kf5people-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	phonenumber-devel

%description
Instant messenger for Plasma Mobile.

%files -f spacebar.lang
%{_kde5_bindir}/spacebar
%{_kde5_applicationsdir}/org.kde.spacebar.desktop
%{_appdatadir}/org.kde.spacebar.appdata.xml
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.spacebar.svg
%{_kde5_libexecdir}/spacebar-daemon
%{_kde5_notificationsdir}/spacebar.notifyrc
%{_sysconfdir}/xdg/autostart/org.kde.spacebar.daemon.desktop

#-------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8844 |21cr|spacefm-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A multi-panel tabbed file manager
Name:		spacefm
Version:	1.0.6
Release:	1
License:	GPLv3+
Group:		File tools
Url:		http://ignorantguru.github.io/spacefm/
Source0:	https://github.com/IgnorantGuru/spacefm/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		include-sysmacros-h.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libffmpegthumbnailer)

# To perform 'run as root' functions
Requires:	gksu
# Eject media
Requires:	util-linux
# For device processes
Requires:	lsof
# Mount as non-root user
Requires:	udisks2
# For plugin download
Requires:	wget

%description
SpaceFM is a multi-panel tabbed file manager with built-in VFS, udev-based
device manager, customizable menu system, and bash integration.

%files -f %{name}.lang
%doc data/spacefm-manual-en.html
%{_bindir}/%{name}*
/etc/%{name}/%{name}.conf
%{_datadir}/%{name}/
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/spacefm-mime.xml
%{_iconsdir}/hicolor/*/apps/%{name}*.png
%{_iconsdir}/Faenza/apps/*/spacefm*.png

#-----------------------------------------------------------------

%prep
%autosetup -p1

%build
LDFLAGS="%{ldflags} -z muldefs"
%configure
%make

%install
%makeinstall_std

# handle docs in files section
rm -rf %{buildroot}%{_defaultdocdir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8845 |21cr|spacehulk-1.5-0.beta2.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define distsuffix plf

%define beta	beta2

Name:		spacehulk
Version:	1.5
Release:	0.%{beta}.4
Summary:	Science-fiction board game in the world of Warhammer 40000
License:	GPLv2
Group:		Games/Strategy
URL:		http://savannah.nongnu.org/projects/spacehulk/
Source0:	%{name}-%{version}-%{beta}.tar.bz2
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
BuildRequires:	qt3-devel
ExclusiveArch:	%{ix86} x86_64

%description
Space Hulk is a science-fiction board game in the world of Warhammer
40000. The project is aiming at providing a way to play Space Hulk on
your computer with the exact same rules as in the board version.

This package is in restricted as it contains potentially copyrighted material.

%prep
%setup -q -n %{name}-%{version}-%{beta}

%build
%configure_qt3 \
		--bindir=%{_gamesbindir} \
        --datadir=%{_gamesdatadir} \
        --with-qt-bin=%{qt3bin} \
        --with-qt-libs=%{_libdir}
%make LIBS="-lz"

%install
%makeinstall bindir=%{buildroot}%{_gamesbindir} datadir=%{buildroot}%{_gamesdatadir}
# icons
install -D -m644 %{SOURCE3} %{buildroot}%{_liconsdir}/q%{name}.png 
install -D -m644 %{SOURCE2} %{buildroot}%{_iconsdir}/q%{name}.png 
install -D -m644 %{SOURCE1} %{buildroot}%{_miconsdir}/q%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Space Hulk
Encoding=UTF-8
Comment=Science-fiction board game
Exec=%{_gamesbindir}/q%{name}
Icon=q%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;BoardGame;
EOF

%files
%doc AUTHORS COPYING ChangeLog INSTALL README TODO
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/q%{name}.png
%{_miconsdir}/q%{name}.png
%{_liconsdir}/q%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8846 |21cr|spacepong-0.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An innovative pong like game
Name:		spacepong
Version:	0.0.2
Release:	7
License:	GPLv2+
Group:		Games/Arcade
URL:		http://spacepong.sourceforge.net/
Source0:	http://belnet.dl.sourceforge.net/sourceforge/spacepong/%{name}_%{version}-1.tar.bz2
BuildArch:	noarch
Requires:	pygame
BuildRequires:	imagemagick

%description
An innovative game that is controlled with the mouse.
Steer you spacecraft ball around the screen and pickup
speed by bouncing off the walls. The goal is to collect
a certain amount of space boxes in a short time

%prep 
%setup -q -n %{name}-%{version}
convert data/ship.png -size 48x48 ship-48x48.png

%build 
#no build, this is a python script

%install
%makeinstall_std datadir=%{_gamesdatadir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications/

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=arcade_section
Categories=Game;ArcadeGame;
Name=SpacePong
Comment=%{Summary}
EOF

install -m644 data/ship-small.png -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 data/ship.png -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 ship-48x48.png -D %{buildroot}%{_liconsdir}/%{name}.png

%files
%defattr(-,root,root,0755) 
%{_datadir}/applications/mandriva-%{name}.desktop
%{_gamesdatadir}/%{name}/data
%{_gamesbindir}/%{name}
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8847 |21cr|spacerocks-0.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname  space_rocks 

Summary:        An Asteroids-like space shooter made with Godot engine
Name:           spacerocks
Version:        0.14
Release:        1
Group:          Games/Arcade
License:        MIT
Url:            https://github.com/kidscancode/space_rocks
Source0:        https://github.com/kidscancode/space_rocks/archive/master.zip
BuildRequires:  imagemagick
Requires:       godot2-runner
BuildArch:      noarch

%description
%{summary}.

%files
%doc README.md LICENSE 
%{_gamesdatadir}/%{name}
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------
%prep
%setup -qn %{oname}-master


%build

%install
# data
install -dm755 %{buildroot}%{_gamesdatadir}/%{name}
find . -type f -name "*.png" -exec convert {} -strip {} \;
cp -R -t %{buildroot}%{_gamesdatadir}/%{name} *

# wrapper
install -dm755 %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
godot2-runner -path "%{_gamesdatadir}/%{name}" $@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{name}

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size ship_icon.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

#menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{oname}
GenericName=%{oname}
Comment=%{oname}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8848 |21cr|spacewar-1.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pyspacewar
%define	module	spacewar

Name:		%{module}
Version:	1.1.1
Release:	2
Summary:	A game loosely inspired by the original Spacewar
Source0:	http://pypi.python.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
License:	GPLv2
Group:		Games/Arcade 
Url:		http://mg.pov.lt/pyspacewar/
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-pygame-devel
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(pygame)

Requires:	python3egg(pygame)

BuildArch:  noarch

%description
Two ships duel in a gravity field.   Gravity doesn't affect
the ships themselves (which have spanking new anti-gravity
devices), but it affects missiles launced by the ships.

You can play against the computer, or two players can play
with one keyboard.  There is also a Gravity Wars mode, where
the two ships do not move, and the players repeatedly
specify the direction and velocity of their missiles.

Latest changes
--------------

September 21, 2016: Released version 1.1.0:

- Support Python 3.4 and 3.5 in addition to 2.7.
- Made 'pip install pyspacewar' work.

%files
%doc LICENSE NEWS.rst README.rst TODO.rst
%{_bindir}/pyspacewar
%{py3_puresitedir}/pyspacewar
%{py3_puresitedir}/pyspacewar*.egg-info
%{_iconsdir}/hicolor/*/apps/%{oname}.svg
%{_datadir}/applications/%{name}.desktop
#----------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

# icons
for size in 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps 
done       
    install -m644 src/pyspacewar/icons/%{oname}48.svg \
        %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{oname}.svg
    install -m644 src/pyspacewar/icons/%{oname}32.svg \
	%{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{oname}.svg
    install -m644 src/pyspacewar/icons/%{oname}16.svg \
	%{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{oname}.svg


# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Python port of Spacewar 
Exec=%{oname}
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF


%check
PYTHONPATH=%{buildroot}%{py3_puresitedir} python3 -m pytest -v


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8849 |21cr|spacezero-0.86.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		spacezero
Version:	0.86.01
Release:	1
Summary:	2D multi player net game
Group:		Games/Other
License:	GPLv3
URL:		http://sourceforge.net/projects/spacezero/
Source0:	http://download.sourceforge.net/project/spacezero/spacezero%200.86/%{name}-%{version}.tar.gz
Source1:	%{name}.png
Patch0:		spacezero-make-0.84.01.patch
Patch1:		spacezero-debug.patch

BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)

%description
SpaceZero is a 2D space combat, multi player (two players by now) net game.


%prep
%autosetup -p1 -n %{name}

find src -name '*.c' -exec chmod a-x {} \;
find include -name '*.h' -exec chmod a-x {} \;

%build
%make

%install
# game data
install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -r dat/sounds %{buildroot}%{_datadir}/%{name}/

# binaries
install -d -m 755 %{buildroot}%{_bindir}
install -m 755  bin/%{name} %{buildroot}%{_bindir}/
chmod a+x %{buildroot}%{_bindir}/%{name}

# icons
install -d -m755 %{buildroot}%{_iconsdir}
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png

# man pages
install -d -m755 %{buildroot}%{_docdir}/%{name}
cp -R html/manual.html html/manual_files %{buildroot}%{_docdir}/%{name}
find %{buildroot}%{_docdir}/%{name} -name '*.png' -exec chmod a-x {} \;
chmod a-x %{buildroot}%{_docdir}/%{name}/manual.html
chmod a-x %{buildroot}%{_docdir}/%{name}/manual_files/cssscreen.css
chmod a-x %{buildroot}%{_docdir}/%{name}/manual_files/space.ico
chmod a-x %{buildroot}%{_docdir}/%{name}/manual_files/cssprint.css

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Categories=GNOME;GTK;Game;
Comment=funny 2D game
Exec=spacezero
GenericName=spacezero
Icon=spacezero
Name=spacezero
Terminal=false
Type=Application
EOF

%files 
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_docdir}/%{name}
%{_iconsdir}/%{name}.png
%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8850 |21cr|spamoracle-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		spamoracle
Version:	1.6
Release:	1
Group:		Networking/Mail
Summary:	Spam filter based on statistical analysis of e-mail contents
License:	GPL
Url:		http://pauillac.inria.fr/~xleroy/software.html#spamoracle
Source:		https://github.com/xavierleroy/spamoracle/archive/refs/tags/release16.tar.gz?/spamoracle-%{version}.tar.gz
BuildRequires:	ocaml

%description
SpamOracle is a tool to help detect and filter away "spam"
(unsolicited commercial e-mail).  It proceeds by statistical analysis
of the words that appear in the e-mail, comparing the frequencies of
words with those found in a user-provided corpus of known spam and
known legitimate e-mail.  The classification algorithm is based on
Bayes' formula, and is described in Paul Graham's paper, "A plan for
spam", http://www.paulgraham.com/spam.html.

%prep
%setup -q -n %{name}-release16

%build
%make

%install
mkdir -p %{buildroot}/{%{_bindir},%{_mandir}/{man1,man5}}
%makeinstall BINDIR=%{buildroot}/%{_bindir} MANDIR=%{buildroot}/%{_mandir}

%clean

%files
%doc README Changes
%{_bindir}/spamoracle
%{_mandir}/man1/spamoracle.1*
%{_mandir}/man5/spamoracle.conf.5*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8851 |21cr|spampd-2.30-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Spam Proxy Daemon
Name:		spampd
Version:	2.30
Release:	12
License:	GPLv2+
Group:		Networking/Mail
Url:		http://www.wdg.us/index.cfm/rd/mta/spampd.htm
Source0:	http://www.wdg.us/Content/rd/mta/%{name}/%{name}-%{version}.tar.bz2
Patch0:		spampd-2.30-mdv.patch
Patch1:		spampd-2.30-pod.patch
BuildRequires:	perl
Requires(post,preun):	rpm-helper
BuildArch:	noarch

%description
spampd is an SMTP/LMTP proxy that marks (or tags) spam using SpamAssassin
(http://www.SpamAssassin.org/). The proxy is designed to be transparent to
the sending and receiving mail servers and at no point takes responsibility
for the message itself. If a failure occurs within spampd (or SpamAssassin)
then the mail servers will disconnect and the sending server is still
responsible for retrying the message for as long as it is configured to do so.

%files
%defattr(-,root,root,755)
%doc changelog.txt spampd.html
%{_sbindir}/spampd
%config(noreplace) %{_initrddir}/spampd
%config(noreplace) %{_sysconfdir}/sysconfig/spampd
%{_mandir}/man8/spampd.8*

%post
%_post_service spampd
if [ -x /usr/sbin/postconf ] && [ -z `/usr/sbin/postconf -h content_filter` ] && \
	grep -qs '^lmtp-filter\>' /etc/postfix/master.cf;then
		LISTEN=127.0.0.1:10025
		MAXCHILD=5
		[ -f /etc/sysconfig/spampd ] && . /etc/sysconfig/spampd
		postconf -e content_filter=lmtp-filter:${LISTEN}
		postconf -e receive_override_options=no_address_mappings
		postconf -e lmtp-filter_destination_concurrency_limit=${MAXCHILD}
fi

%preun
%_preun_service spampd

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .mdv
%patch1 -p1 -b .pod
make spampd.8
chmod 644 *

%install
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_mandir}/man8
install -m 755 spampd %{buildroot}%{_sbindir}/spampd
install -m 755 spampd-rh-rc-script %{buildroot}%{_initrddir}/spampd
install -m 644 spampd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/spampd
install -m 644 spampd.8 %{buildroot}%{_mandir}/man8/spampd.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8852 |21cr|spatialindex-1.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	6
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

Name:		spatialindex
Version:	1.9.3
Release:	1
Summary:	Spatial index library
Group:		System/Libraries
License:	MIT
Url:		http://libspatialindex.org
# https://github.com/libspatialindex/libspatialindex
Source0:	http://download.osgeo.org/lib%{name}/%{name}-src-%{version}.tar.bz2
Patch0:     restore-pkg-config-functionality.patch

BuildRequires:	cmake

%description
Spatialindex provides a general framework for developing spatial indices.
Currently it defines generic interfaces, provides simple main memory and
disk based storage managers and a robust implementation of an R*-tree,
an MVR-tree and a TPR-tree.


#-----------------------------------------------------

%package -n %{libname}
Summary:	Spatial index library
Group:		System/Libraries

%description -n %{libname}
Spatialindex provides a general framework for developing spatial indices.
Currently it defines generic interfaces, provides simple main memory and
disk based storage managers and a robust implementation of an R*-tree,
an MVR-tree and a TPR-tree.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING
%{_libdir}/lib%{name}*.so.*

#-----------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
Development files for %{name}.


%files -n %{devname}
%doc AUTHORS ChangeLog COPYING
%{_includedir}/%{name}
%{_libdir}/lib%{name}*.so
%{_libdir}/pkgconfig/libspatialindex.pc
#-----------------------------------------------------

%prep
%setup -qn %{name}-src-%{version}
%patch0 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8853 |21cr|spawn-fcgi-1.6.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    spawn-fcgi
Version: 1.6.4
Release: 3
Summary: Simple program for spawning FastCGI processes
License: BSD
Group:   System/Servers
URL:     http://redmine.lighttpd.net/projects/spawn-fcgi/
Source0: http://www.lighttpd.net/download/spawn-fcgi-%{version}.tar.gz

%description
This package contains the spawn-fcgi program used for spawning FastCGI
processes, which can be local or remote.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%doc AUTHORS COPYING NEWS README
%{_bindir}/spawn-fcgi
%{_mandir}/man1/spawn-fcgi.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8854 |21cr|spec-gen-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		spec-gen
Version:	1.0
Release:	3
Summary:	ROSA RPM spec file generator
Group:		System/Configuration/Packaging
License:	GPLv2+
Url:		http://wiki.rosalab.ru/en/index.php/spec-file-generator
Source0:	https://abf.io/soft/spec-gen-dev/blob/master/spec-gen.py
BuildArch:	noarch
BuildRequires:	python3

%description
Generate spec file on the basis of source tarball analysis.

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE0} %{buildroot}%{_bindir}/

%files
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8855 |21cr|speedcrunch-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast, high precision and powerful desktop calculator
Name:		speedcrunch
Version:	0.12.0
Release:	1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		https://bitbucket.org/heldercorreia/speedcrunch
# Obtaining the source:
# git clone https://bitbucket.org/heldercorreia/speedcrunch.git --branch release-%%{version} --single-branch
# tar -zcvf %%{name}-%%{version}.tar.gz %%{name}
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
SpeedCrunch is a fast, high precision and powerful desktop calculator.

Among its features are:
- high precision, up to 50 decimal digits
- to be enjoyed using keyboard
- result shown in scrollable window
- history of last expressions (use up and down arrow)
- built-in functions: abs, sqrt, pi, log, exp, ln, sin, cos, tan, sinh,
  cosh, tanh, asin, acos, atan, arsinh, arcosh, artanh
- postfix operator ! lets you compute factorials
- support for variables, e.g try x=pi/3 and then sin(x)
- special variable ans holds the last calculation result
- percent operator, try e.g. 45%*75 or price/80%
- angle mode: Alt+D for degrees, Alt+R for radians
- automatic parentheses closing, e.g. cos(pi/4 becomes cos(pi/4)

%files
%doc README.md doc/legacy/logic-unit.pdf doc/legacy/new_engine.pdf doc/legacy/speedcrunch-manual.odt
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
%qmake_qt5 src/%{name}.pro

%install
%makeinstall_qt

mkdir -p %{buildroot}%{_prefix}
mv %{buildroot}/bin %{buildroot}%{_prefix}/
mv %{buildroot}/share %{buildroot}%{_prefix}/

# move and convert speedcrunch icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48}/apps
pushd %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
mv %{buildroot}%{_datadir}/pixmaps/%{name}.png %{name}.png
convert -resize 16x16 %{name}.png \
	%{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
convert -resize 32x32 %{name}.png \
	%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
rm -rf %{buildroot}%{_datadir}/pixmaps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8856 |21cr|speed-dreams-2.2.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rev	7616

%define _disable_ld_no_undefined 1

%define __provides_exclude_from ^%{_libdir}/games
%define __requires_exclude ^libtgf*.|^libportability.*|^librobottools.*|^libnetworking.*

Summary:	Speed Dreams: An open motorsport simulation
Name:		speed-dreams
Version:	2.2.3
Release:	4
License:	GPLv2
Group:		Games/Simulation
Url:		http://www.speed-dreams.org
Source0:	http://downloads.sf.net/speed-dreams/%{name}-src-base-%{version}-r%{rev}.tar.xz
Source1:	http://downloads.sf.net/speed-dreams/%{name}-src-hq-cars-and-tracks-2.2.3-r7616.tar.xz
Source2:	http://downloads.sf.net/speed-dreams/%{name}-src-more-hq-cars-and-tracks-2.2.3-r7616.tar.xz
Source3:	http://downloads.sf.net/speed-dreams/%{name}-src-wip-cars-and-tracks-2.2.3-r7616.tar.xz
Source4:	http://downloads.sf.net/speed-dreams/%{name}-src-unmaintained-2.2.3-r7616.tar.xz
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	mesa-common-devel
BuildRequires:	plib-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(freeglut)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libenet)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}
Obsoletes:	%{name}-data-wip < 2.2.3
Obsoletes:	%{name}-robots-hq < 2.2.3
Obsoletes:	%{name}-robots-more-hq < 2.2.3
Obsoletes:	%{name}-robots-wip < 2.2.3

%description
A fork of the open racing car simulator Torcs,
aiming to implement exciting new features, cars, tracks and
AI opponents to make a more enjoyable game for the player,
as well as constantly improving visual and physics realism.

%files
%doc CHANGES.txt README.txt
%license COPYING.txt
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}-2
%{_gamesbindir}/sd2-*
%{_iconsdir}/%{name}.png
%dir %{_libdir}/games/%{name}-2
%{_libdir}/games/%{name}-2/drivers/
%{_libdir}/games/%{name}-2/lib/
%{_libdir}/games/%{name}-2/modules/
%{_liconsdir}/%{name}.png
%{_mandir}/man6/%{name}-2.6*
%{_mandir}/man6/sd2-*.6*
%{_miconsdir}/%{name}.png

#------------------------------------------------------

%package data-base
Summary:	Base data for Speed Dreams 2
Provides:	%{name}-data = %{EVRD}
Obsoletes:	%{name}-data-base < %{EVRD}
BuildArch:	noarch

%description data-base
Base data for Speed Dreams 2. Contains the track "espie".

%files data-base
%doc CHANGES.txt README.txt
%license COPYING.txt
%dir %{_gamesdatadir}/%{name}-2
%{_gamesdatadir}/%{name}-2/*

#------------------------------------------------------

%prep
%setup -qn %{name}-2 -c -a1 -a2 -a3 -a4
%apply_patches

%build
%cmake \
	-DBUILD_SHARED_LIBS=OFF		\
	-DCMAKE_SKIP_RPATH=OFF		\
	-DOPTION_3RDPARTY_EXPAT=ON	\
	-DOPTION_3RDPARTY_SOLID=OFF	\
	-DOPTION_AUTOVERSION=OFF	\
	-DOPTION_OFFICIAL_ONLY=ON	\
	-DOPTION_OSGGRAPH=OFF
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_gamesdatadir}/%{name}-2/cmake
rm -rf %{buildroot}%{_gamesdatadir}/%{name}-2/*.txt
rm -rf %{buildroot}%{_includedir}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Speed Dreams
Comment=An open motorsport simulation
Exec=%{name}-2
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;SportsGame;
EOF

install -d %{buildroot}{%{_miconsdir},%{_liconsdir}}
convert -size 16x16 data/data/icons/icon.png %{buildroot}%{_miconsdir}/%{name}.png
install data/data/icons/icon.png %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 data/data/icons/icon.png %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_mandir}/man6
install -m644 doc/man/* %{buildroot}%{_mandir}/man6/
rm -fr %{buildroot}%{_gamesdatadir}/%{name}-2/drivers/dandroid_sc/readme.txt

find %{buildroot}%{_libdir}/games -type f -name '*.so' -exec chmod +x {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8857 |21cr|speedtest-cli-2.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line interface for testing internet bandwidth
Name:		speedtest-cli
Version:	2.1.3
Release:	2
License:	ASL 2.0 
Group:		Development/Tools
Url:		https://github.com/sivel/speedtest-cli
Source0:	https://github.com/sivel/speedtest-cli/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	python(abi) >= 3.5
Requires:	python3egg(setuptools)
Provides:	speedtest = %{EVRD}
BuildArch:	noarch

%description
Command line interface for testing internet bandwidth using speedtest.net

%files
%doc CONTRIBUTING.md  LICENSE  README.rst
%{_bindir}/speedtest-cli
%{_bindir}/speedtest
%{py3_puresitedir}/*
%{_mandir}/man1/speedtest-cli.1.*
%{_mandir}/man1/speedtest.1.*

#-----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e '/^#!\//, 1d' *.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_mandir}/man1
install -p -m 644 speedtest-cli.1 %{buildroot}%{_mandir}/man1/speedtest-cli.1

# replace copy of file with symlink
( cd %{buildroot}%{_bindir} ; ln -sf speedtest-cli speedtest )
( cd %{buildroot}%{_mandir}/man1 ; ln -s speedtest-cli.1 speedtest.1 )

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8858 |21cr|spek-0.8.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for audio spectrum analysis and visualization
Name:		spek
Version:	0.8.3
Release:	3
License:	GPLv3+
Group:		Sound
Url:		http://spek.cc/
Source0:	https://github.com/alexkay/spek/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		spek-0.8.1-disable-updates.patch
Patch1:		spek-0.8.3-ffmpeg3.patch
Patch2:		spek-0.8.3-ffmpeg3-1.patch
BuildRequires:	intltool
BuildRequires:	ffmpeg-devel
BuildRequires:	wxgtku2.8-devel

%description
Spek (IPA: /spɛk/, ‘bacon’ in Dutch) helps to analyse your audio files by
showing their spectrogram. Spek is free software available for Unix,
Windows and Mac OS X.

Features:
* Supports all popular lossy and lossless audio file formats 
  (thanks to the FFmpeg libraries.)
* Ultra-fast signal processing, uses multiple threads to further
  speed up the analysis.
* Shows the codec name and the audio signal parameters.
* Allows to save the spectrogram as an image file.
* Drag-and-drop support; associates with common audio file formats.
* Auto-fitting time, frequency and spectral density rulers.
* Adjustable spectral density range.
* Translated into 16 languages.

%files -f %{name}.lang
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8859 |21cr|spellutils-0.7-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Programs for helping spell checking
Name:		spellutils
Version:	0.7
Release:	17
License:	GPLv2+
Group:		Text tools
Url:		http://home.worldonline.dk/byrial/spellutils/
Source0:	http://home.worldonline.dk/byrial/spellutils/%{name}-%{version}.tar.bz2
Requires:	common-licenses

%description
Spellutils is a suite of programs which are used to isolate some parts
or texts from various types of files and hand them over to another
program which may change the texts; it is typically a spell checker.
Afterwards the possibly changed text parts are copied back in place in the
original file.

The programs in the Spellutils package are:

* newsbody which can isolate your own text from headers, quotes and
  signature in e-mail or Usenet messages
* pospell which can isolate translations in .po files
* More programs are likely to follow

%files
%doc README FILES NEWS
%{_mandir}/man1/*
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8860 |21cr|spew-1.0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An I/O benchmark tool
Name:		spew
Version:	1.0.8
Release:	5
Source0:	ftp://ftp.berlios.de/pub/spew/%{version}/%{name}-%{version}.tgz
Patch0:		%{name}-1.0.7-fix-str-fmt.patch
License:	GPLv2
Group:		System/Kernel and hardware 
Url:		http://spew.berlios.de/
BuildRequires:	popt-devel 
BuildRequires:	ncurses-devel

%description
Spew is used to measure I/O performance of character devices,
block devices, and regular files. It can also be used to generate 
high I/O loads to stress systems while verifying data integrity.

%files
%defattr(-,root,root)
%config(noreplace)/%{_sysconfdir}/spew.conf
%{_bindir}/gorge
%{_bindir}/regorge
%{_bindir}/spew
%{_mandir}/man1/gorge.1*
%{_mandir}/man1/regorge.1*
%{_mandir}/man1/spew.1*

#---------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .strfmt

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8861 |21cr|spglib-1.10.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname symspg %{major}
%define develname	%mklibname -d %{name}

Name:		spglib
Version:	1.10.4
Release:	1
Summary:	C library for finding and handling crystal symmetries
License:	BSD
Group:		System/Libraries
Url:		https://atztogo.github.io/spglib/
Source:		https://github.com/atztogo/spglib/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	libtool

%description
C library for finding and handling crystal symmetries.

#----------------------------------------------------

%package -n	%{libname}
Summary:	C library for finding and handling crystal symmetries
Group:		System/Libraries

%description -n	%{libname}
C library for finding and handling crystal symmetries.
This package contains library files for %{name}.

#----------------------------------------------------

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} >= %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	libspg-devel = %{version}-%{release}

%description -n	%{develname}
The %{develname} package contains libraries and header files for
developing applications that use %{name}.

#----------------------------------------------------

%prep
%setup -q

%build
touch INSTALL NEWS README AUTHORS
autoreconf -vfi

%configure --disable-static

%make

%install
%makeinstall_std

find %{buildroot} -name '*.la' -delete

%files -n %{libname}
%doc README.md
%{_libdir}/libsymspg.so.*

%files -n %{develname}
%doc ChangeLog README.md
# %license COPYING
%{_includedir}/%{name}/
%{_libdir}/libsymspg.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8862 |21cr|sphinxbase-0.9-0.20211103
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	3
%define	admajor	3

%define	libname	%mklibname %{name} %{major}
%define	adlibname %mklibname sphinxad %{admajor}
%define	devname	%mklibname %{name} -d
%define	alphaname 20211103

%define	commit 9e901850ee4cd1c0b22f2d3b3c15f162564ca283

Name:		sphinxbase
# Fake version number to allow easy upgrading from previous 0.8:
# the actual source version is "5prealpha"
Version:	0.9
Release:	0.%{alphaname}
Summary:	The CMU Sphinx Recognition System
Group:		Sound
License:	BSD and LGPLv2+
Url:		http://cmusphinx.sourceforge.net/
Source0:	https://github.com/cmusphinx/sphinxbase/archive/%{commit}.zip
# From upstream
# http://sourceforge.net/p/cmusphinx/bugs/314/
#Patch0:	sphinxbase-0.8-fix-testsuite.patch
BuildRequires:	bison
BuildRequires:	doxygen
# for check
BuildRequires:	locales-fr
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(python3)
BuildRequires:	swig >= 2.0

%description
The CMU Sphinx Recognition System is a library and a set of examples and
utilities for speech recognition. This package contains the utilities.

%files
%doc LICENSE README
%{_bindir}/sphinx*
%{_mandir}/man1/sphinx*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared components for Sphinx speech recognition
Group:		System/Libraries

%description -n %{libname}
The CMU Sphinx Recognition System is a library and a set of examples and
utilities for speech recognition. This package contains the shared libraries.

%files -n %{libname}
%doc LICENSE README
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{adlibname}
Summary:	Shared components for Sphinx speech recognition
Group:		System/Libraries

%description -n %{adlibname}
The CMU Sphinx Recognition System is a library and a set of examples and
utilities for speech recognition. This package contains the shared libraries.

%files -n %{adlibname}
%doc LICENSE README
%{_libdir}/libsphinxad.so.%{admajor}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for developing with The CMU Sphinx Recognition System
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{adlibname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The CMU Sphinx Recognition System is a library and a set of examples and
utilities for speech recognition. This package contains the header files and
examples for developing with The CMU Sphinx Recognition System.

%files -n %{devname}
%doc LICENSE README
%doc doc/html/
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so
%{_libdir}/libsphinxad.so

#-----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python extension for The CMU Sphinx Recognition System
Group:		Development/Python
Provides:	python-%{name} = %{EVRD}

%description -n python3-%{name}
The CMU Sphinx Recognition System is a library and a set of examples and
utilities for speech recognition. This package contains the python extension.

%files -n python3-%{name}
%doc LICENSE README
%{py3_platsitedir}/*
%{_datadir}/%{name}/swig/*.i

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
./autogen.sh
%configure --disable-static
%make


%install
%makeinstall_std

# man pages
mkdir -p %{buildroot}%{_mandir}/man1
install -pm644 doc/*.1 %{buildroot}%{_mandir}/man1/


%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8863 |21cr|sphinxtrain-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}

Name:          sphinxtrain
Version:       5.0.0
Release:       1
Summary:       An acoustic model trainer for CMU's Sphinx tools
Group:         Development/Other
License:       BSD and LGPLv2+
URL:           http://www.cmusphinx.org/
Source0:       https://github.com/cmusphinx/sphinxtrain/archive/refs/tags/v5.0.0.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: blas-devel
BuildRequires: lapack-devel

%description
SphinxTrain is Carnegie Mellon University's open source acoustic model
trainer.  It contains the scripts and instructions necessary for building
models for the CMU Sphinx Recognizer.

%files
%doc LICENSE README* NEWS
%{_bindir}/%{name}
%{_libexecdir}/%{name}
%{_datadir}/%{name}

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

# devel pkg not provided
rm %{buildroot}%{_libdir}/*.so

# fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8864 |21cr|spicctrl-1.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sony Vaio SPIC Control Program
Name:		spicctrl
Version:	1.9
Release:	10
License:	GPL
Group:		System/Configuration/Hardware
Source:		http://popies.net/sonypi/%{name}-%{version}.tar.bz2
Patch0:		spicctrl-1.9-debug.patch
URL:		http://popies.net/sonypi/

%description
This utility allows one to query and set a variety of parameters on your
Sony Vaio laptop computer, including:

 * AC Power status
 * Battery status 
 * Screen brightness
 * Bluetooth device power status

%prep
%setup
%patch0 -p1

%build
%make

%clean

%install
mkdir -p %{buildroot}%{_sbindir}/
install %{_builddir}/%{name}-%{version}/spicctrl %{buildroot}/usr/sbin

%post
if [ ! -c /dev/sonypi ]; then
	rm -f /dev/sonypi
	mknod /dev/sonypi c 10 250
fi
grep 'alias char-major-10-250 sonypi' /etc/modules.conf > /dev/null
RETVAL=$?
if [ $RETVAL -ne 0 ]; then
	echo 'alias char-major-10-250 sonypi' >> /etc/modules.conf
	echo 'options sonypi minor=250' >> /etc/modules.conf
	echo 'alias char-major-10-250 sonypi' >> /etc/modprobe.conf
	echo 'options sonypi minor=250' >> /etc/modprobe.conf
fi

%files
%{_sbindir}/*
%doc AUTHORS LICENSE CHANGES

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8865 |21cr|spindown-0.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:    Daemon that can spin idle disks down
Name:       spindown
Version:    0.4.0
Release:    6
License:    GPLv3+
Group:      System/Servers
Url:        http://code.google.com/p/spindown
Source0:    http://spindown.googlecode.com/files/spindown-%{version}.tar.gz
Source1:    spindown.service
Source2:    01spindown

Patch0: spindown-0.4.0-Makefile.patch
Patch1: spindown-0.4.0-iniparser.patch
Patch2: spindown-0.4.0-iniparser-3.0-1.patch
Patch3: spindown-0.4.0-bz1037334.patch

Requires(preun): systemd-units

BuildRequires: iniparser-devel
BuildRequires: systemd-units

%description
Spindown is a daemon that can spin idle disks down and thus save energy and
improve disk lifetime. It periodically checks for read or written blocks. When
no blocks are read or written the disk is idle. When a disk stays idle long
enough, spindown uses custom command like sg_start or hdparm to spin it down.
It also works with USB disks and hot-swappable disks because it doesn't watch
the device name (hda, sdb, ...), but the device ID. This means that it doesn't
matter if the disk is swapped while the daemon is running.

%prep
%setup -q
rm -rf src/ininiparser3.0b
cp -pf %{SOURCE1} spindown.service
cp -pf %{SOURCE2} 01spindown
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%make OPT="%{optflags}"

%install
make DESTDIR="%{buildroot}" install
mkdir -p %{buildroot}/%{_libdir}/pm-utils/sleep.d
mkdir -p %{buildroot}/%{_unitdir}
install -p -m 755 01spindown %{buildroot}/%{_libdir}/pm-utils/sleep.d/01spindown
install -p -m 755 spindown.service %{buildroot}/%{_unitdir}/spindown.service

%post
%systemd_post spindown.service

%preun
%systemd_preun spindown.service

%files
%defattr(-,root,root,-)
%doc COPYING CHANGELOG README
%{_unitdir}/spindown.service
%{_sbindir}/spindownd
%{_libdir}/pm-utils/sleep.d/01spindown
%config(noreplace) %{_sysconfdir}/spindown.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8866 |21cr|spip-2.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	Name	SPIP

%if %{_use_internal_dependency_generator}
%global __requires_exclude pear(SourceMap.class.php)
%else
%define _requires_exceptions pear(SourceMap.class.php)
%endif


Name:		spip
Version:	2.1.1
Release:	6
Summary:	CMS tool for Internet
License:	GPLv2+
Group:		System/Servers
URL:		http://www.spip.net/
Source0:	%{name}-v%{version}.zip
Source1:	%{name}.logrotate.bz2
Source2:	%{name}-apache.conf.bz2
BuildArch:	noarch

%description
SPIP is a publishing system developed by the minirezo to manage the site
uZine. We provide it to anyone as a free software under GPL licence.
Therefore, you can use it freely for your own site, be it personnal,
co-operative, institutional or commercial.

To finish the installation, just go to http://localhost/spip/ecrire/

%prep
%setup -q 
find . -name remove.txt -exec rm -f {} \;
find . -type f -exec chmod 644 {} \;
find . -name '*svn*' -exec rm -f {} \;

%build
:

%install
# install files
install -d -m 755 %{buildroot}%{_var}/www/%{name}
cp -pR * %{buildroot}%{_var}/www/%{name}

# logrotate
install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# apache configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
bzcat %{SOURCE2} > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf

%clean
rm -rf %{buildroot}

%post
%create_ghostfile /var/log/httpd/spip.log apache apache 640


%files
%defattr(-,root,root)
%dir %{_var}/www/%{name}
%{_var}/www/%{name}/*.php
#%{_var}/www/%{name}/*.htc
%{_var}/www/%{name}/*.txt
%{_var}/www/%{name}/*.gif
%{_var}/www/%{name}/config
%{_var}/www/%{name}/squelettes-dist
%{_var}/www/%{name}/ecrire/*
%{_var}/www/%{name}/local
%{_var}/www/%{name}/tmp
%{_var}/www/%{name}/prive
%{_var}/www/%{name}/mutualisation/*
%{_var}/www/%{name}/extensions/*
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}.conf
%dir %attr(775,root,apache) %{_var}/www/%{name}/IMG
%dir %attr(775,root,apache) %{_var}/www/%{name}/ecrire
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8867 |21cr|SpiralSynth-2.0.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		SpiralSynth
Summary:	Simple software synthesizer
Version:	2.0.0
Release:	14
License:	GPLv2+
Group:		Sound
Url:		http://www.pawfal.org/Software/SpiralSynth
Source0:	%{name}-%{version}.tar.bz2
Source1: 	SpiralLogo48.png
Source2: 	SpiralLogo32.png
Source3: 	SpiralLogo16.png
Patch0:		%{name}-2.0.0.patch
Patch1:		SpiralSynth-2.0.0-fix-build.patch
Patch2:		SpiralSynth-2.0.0-gcc43.patch
Patch3:		SpiralSynth-2.0.0-newer-fltk.patch
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(gl)

%description
SSM's little brother has been updated at last, much much faster, better
sounding, a bit prettier and soon to be a SSM polyphonic plugin.
SpiralSynth is a simple polyphonic analogue modelling softsynth that tries
to be as easy to use as possible. 

%files
%doc README CHANGES COPYING
%{_bindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p0
perl -pi -e 's/usr\/X11R6\/lib/usr\/X11R6\/%{_lib}/g' Makefile.in PluginLink.sh


%build
%configure
%make CXXFLAGS="%{optflags}" LFLAGS="%{?ldflags}"


%install
mkdir -p %{buildroot}/%{_bindir}
cp %{name} %{buildroot}/%{_bindir}


# Menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Synthesized Loops
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Audio;Video;X-MandrivaLinux-Multimedia-Video;AudioVideoEditing;
EOF


#icons
mkdir -p %{buildroot}/%{_liconsdir}
cat %{SOURCE1} > %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
cat %{SOURCE2} > %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
cat %{SOURCE3} > %{buildroot}/%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8868 |21cr|splint-3.1.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Splint - Secure Programming Lint
Name:		splint
Version:	3.1.2
Release:	11
License:	GPLv2+
Group:		Development/C
Url:		http://www.splint.org
Source0:	http://www.splint.org/downloads/splint-%{version}.tar.bz2
BuildRequires:	flex

%description
Splint is a tool for statically checking C programs for security
vulnerabilities and coding mistakes. With minimal effort, Splint can
be used as a better lint. If additional effort is invested adding
annotations to programs, Splint can perform stronger checking than can
be done by any standard lint.

%files
%attr(0755,root,root) %{_bindir}/splint
%defattr(0644,root,root,0755)
%doc README
%{_mandir}/man1/splint.1*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8869 |21cr|splitvt-1.6.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Split terminal into two windows
Name:		splitvt
Version:	1.6.6
Release:	10
License:	GPL
Group:		Terminals 
URL:		http://www.devolution.com/~slouken/projects/splitvt
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-destdir.patch
BuildRequires:	libnet-devel
BuildRequires:	termcap-devel

%description
This program takes any VT100 terminal window and splits it
into two shell windows, one on top and one on bottom.
It allows you to watch two terminal sessions at once, which can
be very useful whenever you want more screen real-estate without
messing with windows.

%prep

%setup -q
%patch0 -p0 -b .destdir

# lib64 fix
perl -pi -e "s|/usr/lib\b|%{_libdir}|g" config.c
perl -pi -e "s|\.a\b|\.so|g" config.c

%build
./configure
%make

%install
chmod 644 README BLURB ANNOUNCE CHANGES NOTES COPYING TODO
mkdir -p %buildroot%{_bindir}
mkdir -p %buildroot%{_mandir}/man1/

%makeinstall_std PREFIX=%_prefix MANDIR=%_mandir

chmod 755 %buildroot%{_bindir}/*

%clean

%files
%defattr(-,root,root)
%doc README BLURB ANNOUNCE CHANGES NOTES COPYING TODO
%_bindir/splitvt
%_bindir/xsplitvt
%attr(0644,root,root) %_mandir/man1/splitvt.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8870 |21cr|spoofdpi-0.12.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=off
%global goipath github.com/xvzc/SpoofDPI

Summary:	A simple and fast software designed to bypass Deep Packet Inspection
Name:		spoofdpi
Version:	0.12.0
Release:	2
License:	Apache-2.0
Group:		Networking/Other
Url:		https://github.com/xvzc/SpoofDPI
Source0:	https://github.com/xvzc/SpoofDPI/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	spoof-dpi.service
# created by ./upd.sh
Source2:	spoofdpi-%{version}-go-mod-vendor.tar.xz
BuildRequires:	golang
Provides:	SpoofDPI = %{EVRD}
Provides:	spoof-dpi = %{EVRD}
Provides:	youtube-kostylen = %{EVRD}
%gometa

%description
A simple and fast software designed to bypass Deep Packet Inspection

%files
%license LICENSE*
%doc *.md
%{_bindir}/spoof-dpi
%{_bindir}/spoofdpi
%{_userunitdir}/spoof-dpi.service

%post
# migrate from incorrect systemd unit
if test -L /etc/systemd/user/multi-user.target.wants/spoof-dpi.service; then
	systemctl --global disable spoof-dpi.service && \
	systemctl --global preset spoof-dpi.service || :
fi
%systemd_user_post spoof-dpi.service

%preun
%systemd_user_preun spoof-dpi.service

#----------------------------------------------------------------------------

%prep
%goprep
%autopatch -p1

tar -C .. -xf %{SOURCE2}

%build
%gobuild -o %{gobuilddir}/bin/spoofdpi %{goipath}/cmd/spoofdpi

%install
install -d %{buildroot}/%{_bindir}/
install -m 0755 %{gobuilddir}/bin/spoofdpi %{buildroot}/%{_bindir}/
install -d %{buildroot}/%{_userunitdir}
install -m 0644 %{SOURCE1} %{buildroot}/%{_userunitdir}
ln -s spoofdpi %{buildroot}%{_bindir}/spoof-dpi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8871 |21cr|spread-sheet-widget-0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary(ru_RU.UTF-8): Библиотека для Gtk+, которая предоставляет виджет для просмотра двумерных табличных данных и манипулирования ими
Summary: Library for Gtk+ which provides a widget for viewing and manipulating 2 dimensional tabular data

Name:    spread-sheet-widget
Version: 0.10
Release: 1

License: GPLv3+
Group:   System/Libraries
Url:     https://www.gnu.org/software/ssw/

Source0: http://alpha.gnu.org/gnu/ssw/%name-%version.tar.gz?/%name-%version.tar.gz

BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: texinfo

%description
Demo binaries for %{libname}.
GNU Spread Sheet Widget is a library for Gtk+ which provides a widget for viewing
and manipulating 2 dimensional tabular data.

%description -l ru_RU.UTF-8
Демонстрационные двоичные файлы для %{libname}.
GNU Spread Sheet Widget - это библиотека для Gtk+, которая предоставляет виджет
для просмотра и манипулирования двумерными табличными данными.

%files
%{_bindir}/*

#------------------------------------------------------------------------------------

%package -n %{libname}
Summary(ru_RU.UTF-8): GNU Spread Sheet Widget - библиотека для Gtk+
Summary:  GNU Spread Sheet Widget library for Gtk+
Group:    System/Libraries
Provides: %{NAME} = %{EVRD}
Provides: %{NAME}%{_isa} = %{EVRD}

%description -n %{libname} 
GNU Spread Sheet Widget is a library for Gtk+ which provides a widget
for viewing and manipulating 2 dimensional tabular data in a manner
similar to many popular spread sheet programs.

The design follows the model-view-controller paradigm and is of
complexity O(1) in both time and space. This means that it is
efficient and fast even for very large data.

Features commonly found in graphical user interfaces such as cut and
paste, drag and drop and row/column labelling are also included.

%description -l ru_RU.UTF-8 -n %{libname}
GNU Spread Sheet Widget - это библиотека для Gtk+, которая предоставляет виджет
для просмотра и манипулирования двумерными табличными данными
аналогично многим популярным программам для работы с электронными таблицами.

Дизайн соответствует парадигме model-view-controller. Он эффективен и быстр
даже при работе с очень большими данными.

В графических интерфейсах пользователя реализованы такие функции, как вырезать и
вставка, перетаскивание и маркировка строк и столбцов.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README TODO
%{_libdir}/lib*.so.%{major}*

#------------------------------------------------------------------------------------

%package -n %{devname}
Summary(ru_RU.UTF-8): Файлы разработчика для библиотеки %{name}
Summary:  Development files for %{name}
Group:    Development/GNOME and GTK+
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n %{devname}
This package provides development files for %name library.

%description -l ru_RU.UTF-8 -n %{devname}
Этот пакет предоставляет файлы разработчика для библиотеки %{name}

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/ssw*.h
%{_libdir}/pkgconfig/*.pc
%{_infodir}/*.info*

#------------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
       --disable-static

%make_build
make doc/spread-sheet-widget.info

%install
%makeinstall

install -D doc/.libs/prog2 %{buildroot}%{_bindir}/%{name}-prog2
install -D doc/.libs/prog1 %{buildroot}%{_bindir}/%{name}-prog1
install -D demo/.libs/demo %{buildroot}%{_bindir}/%{name}-demo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8872 |21cr|sprng-5.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Scalable Parallel Pseudo Random Number Generators Library
Name:		sprng
Version:	5.0
Release:	4
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://sprng.cs.fsu.edu/
Source0:	http://www.sprng.org/Version5.0/sprng5.tar.bz2
Patch0:		sprng5-gcc5.patch
BuildRequires:	openmpi
BuildRequires:	gcc-gfortran
BuildRequires:	gmp-devel
Requires:	sprng-devel

%description
Scalable Parallel Pseudo Random Number Generators Library.

M. Mascagni and A. Srinivasan (2000), "Algorithm 806: SPRNG: A Scalable
Library for Pseudorandom Number Generation," ACM Transactions on
Mathematical Software, 26: 436-461.

%files

#----------------------------------------------------------------------------

%package devel
Summary:	Scalable Parallel Pseudo Random Number Generators Library
Group:		Development/Other

%description devel
Scalable Parallel Pseudo Random Number Generators Library.

M. Mascagni and A. Srinivasan (2000), "Algorithm 806: SPRNG: A Scalable
Library for Pseudorandom Number Generation," ACM Transactions on
Mathematical Software, 26: 436-461.

%files devel
%{_includedir}/sprng
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -qn sprng5
%patch0 -p1

%build
autoreconf -fi
%configure
make

%install
mkdir -p %{buildroot}{%{_includedir}/sprng,%{_libdir}}
install -m 644 include/*.h %{buildroot}%{_includedir}/sprng
install -m 644 lib/*.a %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8873 |21cr|spybye-0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A proxy to help finding malware
Name:		spybye
Version:	0.3
Release:	11
Group:		System/Servers
License:	GPLv2
URL:		http://www.monkey.org/~provos/spybye/
Source0:	http://www.monkey.org/~provos/%{name}-%{version}.tar.gz
Source1:	http://www.monkey.org/~provos/%{name}-%{version}.tar.gz.sig
Source2:	spybye.service
Source3:	spybye.sysconfig
Source4:	spybye.logrotate
Source5:	README.urpmi
Patch0:		spybye-memleak.diff
BuildRequires:	autoconf2.5
BuildRequires:	libevent-devel
#BuildRequires:	clamav-devel
Requires(post): rpm-helper
Requires(preun): rpm-helper
Requires:	clamav
Requires(pre):	rpm-helper
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

%description
The crawl tool provide a proxy server through which web pages can be fetched
and analyzed for potentially dangerous includes. To use , you need to configure
your web browser to use the port configured by -p as proxy port.


%prep

%setup -q -n %{name}-%{version}
%patch0 -p0

cp %{SOURCE2} %{name}.init
cp %{SOURCE3} %{name}.sysconfig
cp %{SOURCE4} %{name}.logrotate
cp %{SOURCE5} README.urpmi

%build

%configure \
    --bindir=%{_sbindir} \
    --datadir=%{_localstatedir}/lib

%make

%install

# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

%makeinstall_std

install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}/var/log/%{name}

install -m0755 %{name}.init %{buildroot}%{_unitdir}/%{name}.service
install -m0644 %{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m0644 %{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# create ghostfile
touch %{buildroot}/var/log/%{name}/%{name}.log

%post
%create_ghostfile /var/log/%{name}/%{name}.log root root 0644
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%clean

%files
%doc README.urpmi
%attr(0755,root,root) %{_unitdir}/%{name}.service
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
%attr(0755,root,root) %{_sbindir}/*
%dir %{_localstatedir}/lib/%{name}
%{_localstatedir}/lib/%{name}/*
%dir %attr(0755,root,root) /var/log/%{name}
%attr(0644,root,root) %ghost %config(noreplace) /var/log/%{name}/%{name}.log
%attr(0644,root,root) %{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8874 |21cr|spyder-5.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scientific Python Development Environment
Name:		spyder
Version:	5.4.3
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/spyder-ide/spyder
Source0:	https://github.com/spyder-ide/spyder/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-sphinx
Requires:	python3-matplotlib-qt5
Requires:	python3-qt5
Requires:	python3-ipython
Requires:	python3-matplotlib
Requires:	python3-numpy
Requires:	python3-pyflakes
Requires:	python3-pylint
Requires:	python3-qt5-qscintilla
Requires:	python3-rope
Requires:	python3-scipy
BuildArch:	noarch

%description
Spyder is a powerful scientific environment written in Python,
for Python, and designed by and for scientists, engineers and data analysts.
It offers a unique combination of the advanced editing, analysis, debugging,
and profiling functionality of a comprehensive development tool
with the data exploration, interactive execution, deep inspection,
and beautiful visualization capabilities of a scientific package.

Beyond its many built-in features, its abilities can be extended
even further via its plugin system and API. Furthermore, Spyder can also
be used as a PyQt5 extension library, allowing you to build upon its
functionality and embed its components, such as the interactive console,
in your own software.

%files
%license LICENSE.txt
%doc README.md
%{py3_puresitedir}/spyder-*.egg-info
%{py3_puresitedir}/%{name}/
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.png
%{_datadir}/metainfo/org.spyder_ide.spyder.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i 's|#!/usr/bin/python|&3|' scripts/%{name}

# Remove DOS line endings
for file in `find -name "*.rst" -o -name "*.py" -o -name "*.css"` README.md; do
	sed "s|\r||g" $file > $file.new && \
	touch -r $file $file.new && \
	mv $file.new $file
done

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8875 |21cr|sqlgrey-1.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Postfix grey-listing policy service
Name:		sqlgrey
Version:	1.8.0
Release:	3
License:	GPLv2+
Group:		System/Servers
URL:		http://sqlgrey.sourceforge.net
Source0:	%{name}-%{version}.tar.gz
Source1:	sqlgrey.service
Patch0:         sqlgrey-1.7.4-sqlite.patch
Patch1:         sqlgrey-1.7.4-warnings.patch
BuildRequires:	perl-Pod-Perldoc
Requires:	postfix
Requires:	perl-DBD-SQLite
Requires(pre):	shadow-utils
Requires(post):	systemd
BuildRequires: 	systemd
BuildArch:	noarch

%description
SQLgrey is a Postfix grey-listing policy service with
auto-white-listing written in Perl with SQL database as storage
backend. Greylisting stops 50 to 90 % junk mails (spam and virus)
before they reach your Postfix server (saves BW, user time and CPU
time).

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
make

%install
make rh-install ROOTDIR=%{buildroot}
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/sqlgrey.service
rm -rf %{buildroot}%{_sysconfdir}/init.d/
mkdir -p -m 755 %{buildroot}%{_var}/lib
mkdir -m 755 %{buildroot}%{_var}/lib/sqlgrey
touch %{buildroot}%{_var}/lib/sqlgrey/sqlgrey.db

%pre
getent group sqlgrey >/dev/null || groupadd -r sqlgrey
getent passwd sqlgrey >/dev/null || \
    useradd -r -g sqlgrey -d /var/lib/sqlgrey -s /sbin/nologin \
    -c "SQLgrey server" sqlgrey
exit 0

%post
%systemd_post sqlgrey.service

%preun
%systemd_preun sqlgrey.service

%postun
%systemd_postun_with_restart sqlgrey.service

%files
%doc Changelog CONTRIB COPYING FAQ HOWTO README* TODO
%{_unitdir}/sqlgrey.service
%{_sbindir}/sqlgrey
%{_sbindir}/update_sqlgrey_config
%{_bindir}/sqlgrey-logstats.pl
%{_mandir}/man1/sqlgrey.1*
%attr(-,sqlgrey,sqlgrey) %dir %{_var}/lib/sqlgrey
%attr(-,sqlgrey,sqlgrey) %ghost %{_var}/lib/sqlgrey/sqlgrey.db
%dir %{_sysconfdir}/sqlgrey
%config(noreplace) %{_sysconfdir}/sqlgrey/sqlgrey.conf
# Content of these files are changed by sqlgrey itself
%config(noreplace) %{_sysconfdir}/sqlgrey/clients_ip_whitelist
%config(noreplace) %{_sysconfdir}/sqlgrey/clients_fqdn_whitelist
%config(noreplace) %{_sysconfdir}/sqlgrey/*.regexp
# Warning admins to not touch the above files
%attr(644,root,root) %config %{_sysconfdir}/sqlgrey/README
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8876 |21cr|sqlite2-2.8.17-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# i'll keep this only as BR for others.

%define	major 0
%define libname %mklibname %{name} %{major}

Summary:	C library that implements an embeddable SQL database engine
Name:		sqlite2
Version:	2.8.17
Release:	14
License:	Public Domain
Group:		System/Libraries
Url:		http://www.sqlite.org/
Source0:	http://www.sqlite.org/sqlite-%{version}.tar.bz2
Patch1:         sqlite-2.8.15.rpath.patch
Patch2:         sqlite-2.8.15-makefile.patch
Patch3:         sqlite-2.8.3.test.rh9.patch
Patch4:         sqlite-64bit-fixes.patch
Patch5:         sqlite-2.8.15-arch-double-differences.patch
Patch6:         sqlite-2.8.17-test.patch
Patch7:         sqlite-2.8.17-tcl.patch
Patch8:         sqlite-2.8.17-ppc64.patch
Patch9:         sqlite-2.8.17-format-security.patch
Patch10:        sqlite-2.8.17-tcl86.patch
Patch11:        sqlite-2.8.17-cleanup-temp-c.patch
Patch12:        sqlite-2.8.17-suse-cleanups.patch
Patch13:        sqlite-2.8.17-suse-detect-sqlite3.patch
Patch14:        sqlite-2.8.17-CVE-2007-1888.patch
Patch15:        sqlite-2.8.17-lemon-snprintf.patch
Patch16:        sqlite-2.8.17-fix-sort-syntax.patch
Patch17:        sqlite-2.8.17-ldflags.patch
Patch18:        sqlite-2.8.17-fix-unsigned-FTBFS.patch
Patch19:        sqlite-2.8.17-gcc10.patch

Provides:	sqlite2 = 2.8.17-16
Obsoletes:	sqlite < 2.8.17-16
BuildRequires:	chrpath
BuildRequires:	ncurses-devel
BuildRequires:	readline-devel
BuildRequires:	tcl tcl-devel

%description
SQLite2 is an old version of the SQLite library.

SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.
#----------------------------------------------

%package -n	%{libname}
Summary:	C library that implements an embeddable SQL database engine
Group:          System/Libraries

%description -n	%{libname}
SQLite2 is an old version of the SQLite library.

SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

This package contains the shared libraries for %{name}

%files -n %{libname}
%doc README
%{_libdir}/lib*.so.%{major}*
#----------------------------------------------
%package -n	%{libname}-devel
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} >= %{version}-%{release}
Provides:	lib%{name}-devel
Provides:	%{name}-devel

%description -n	%{libname}-devel
SQLite2 is an old version of the SQLite library.

SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

This package contains the static %{libname} library and its header
files.

%files -n %{libname}-devel
%doc doc/*.html doc/*.png
%{_includedir}/*.h
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
#----------------------------------------------
%package	tools
Summary:	Command line tools for managing the %{libname} library
Group:		Databases
Requires:	%{libname} = %{version}-%{release}

%description	tools
SQLite2 is an old version of the SQLite library.

SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

This package contains command line tools for managing the
%{libname} library.

%files tools
%{_bindir}/*
%{_mandir}/man1/*
#----------------------------------------------
%package        tcl
Summary:        Tcl bindings for sqlite
Requires:       tcl
Requires:       %{name}-tools = %{EVRD}

%description    tcl
SQLite is a small, fast, embeddable SQL database engine that supports
most of SQL92, including transactions with atomic commit and rollback,
subqueries, compound queries, triggers, and views.
This package contains tcl bindings for sqlite.

%files tcl
%doc doc/tclsqlite.html
%{tcl_sitearch}/sqlite2/
#----------------------------------------------

%prep
%autosetup -p1 -n sqlite-%{version}

sed -i.rpath 's!__VERSION__!%{version}!g' Makefile.in
# Patch additional /usr/lib locations where we don't have $(libdir)
# to substitute with.
sed -i.lib 's!@exec_prefix@/lib!%{_libdir}!g' Makefile.in

%build
CFLAGS="$RPM_OPT_FLAGS -DNDEBUG=1"
%configure --enable-utf8 --disable-static --disable-rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make
make tclsqlite libtclsqlite.la doc

%install
DIRECTORY=%{buildroot}%{_libdir}/sqlite-%{version}
install -d $DIRECTORY
echo 'package ifneeded sqlite 2 [list load [file join $dir libtclsqlite.so]]' > $DIRECTORY/pkgIndex.tcl

%makeinstall
install -D -m 0644 sqlite.1 %{buildroot}%{_mandir}/man1/sqlite.1
mkdir -p %{buildroot}%{tcl_sitearch}
mv -f $DIRECTORY %{buildroot}%{tcl_sitearch}/sqlite2

find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
rm -f %{buildroot}%{_bindir}/tclsqlite

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8877 |21cr|sqlitebrowser-3.11.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Design and edit database files compatible with SQLite
Name:		sqlitebrowser
Version:	3.11.2
Release:	2
License:	Public Domain
Group:		System/Configuration/Other
Url:		https://dbhub.io
Source0:	https://github.com/sqlitebrowser/sqlitebrowser/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	appstream-util
BuildRequires:	sqlite3-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
SQLite Database Browser is a freeware, public domain, open source
visual tool used to create, design and edit database files compatible
with SQLite. It is meant to be used for users and developers that want
to create databases, edit and search data using a familiar
spreadsheet-like interface, without the need to learn complicated
SQL commands.

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.desktop.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%{_qt5_translationsdir}

#--------------------------------------------------------------------

%prep
%setup -q

%build
cmake \
	-DUSE_QT5=1\
	-DCMAKE_INSTALL_PREFIX=/usr \
	-DFORCE_INTERNAL_QSCINTILLA=ON

%make

%install
%makeinstall_std
%{_bindir}/appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.desktop.appdata.xml

cat >%{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=SQLite database browser
GenericName=DB Browser for SQLite
GenericName[ru]=Браузер для SQLite
Comment=GUI editor for SQLite databases
Comment[ru]=Графический редактор для баз данных SQLite
TryExec=sqlitebrowser
Exec=sqlitebrowser
Icon=sqlitebrowser
Terminal=false
Type=Application
Categories=Development;Database;Qt;
MimeType=application/x-sqlite3;
EOF

mkdir -p %{buildroot}%{_qt5_translationsdir}
install -D src/translations/*.qm %{buildroot}%{_qt5_translationsdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8878 |21cr|sqliteodbc-0.9998-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		sqliteodbc
Version:	0.9998
Release:	1
Summary:	SQLite ODBC Driver

Group:		Databases
License:	BSD
URL:		http://www.ch-werner.de/sqliteodbc
Source0:	http://www.ch-werner.de/sqliteodbc/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc

BuildRequires:	libxml2-devel
BuildRequires:	sqlite-devel
BuildRequires:	unixODBC-devel
BuildRequires:	zlib-devel

Requires:	unixODBC


%description
ODBC driver for SQLite interfacing SQLite 2.x and/or 3.x using the
unixODBC or iODBC driver managers. For more information refer to:
- http://www.sqlite.org    -  SQLite engine
- http://www.unixodbc.org  -  unixODBC Driver Manager
- http://www.iodbc.org     -  iODBC Driver Manager


%prep
%setup -q
# correct EOL
for i in README; do
	sed 's#\r##g' $i > $i.tmp && \
	touch -r $i $i.tmp && \
	mv $i.tmp $i
done

# Convert encoding to UTF-8
for i in ChangeLog; do
	iconv -f ISO-8859-1 -t UTF-8 -o $i.tmp $i && \
	touch -r $i $i.tmp && \
	mv $i.tmp $i
done


%build
%configure
%make


%install
mkdir -p %{buildroot}%{_libdir}
make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/libsqliteodbc*.{a,la}
rm -f %{buildroot}%{_libdir}/libsqlite3odbc*.{a,la}
rm -f %{buildroot}%{_libdir}/libsqlite3_mod_*.{a,la}
# install example file
cat > odbc.ini.sample <<- 'EOD'
	# ~/.odbc.ini example file
	[mysqlitedb]
	Description=My SQLite3 test database
	Driver=SQLite3
	Database=/home/user_name/Documents/databases/testdb.sqlite
	# optional lock timeout in milliseconds
	# Timeout=2000
	# StepAPI = No|Yes
	# ShortNames = No|Yes
	# FKSupport = No|Yes
	# SyncPragma = NORMAL|OFF|FULL
	# JournalMode = WAL|MEMORY|TRUNCATE|OFF|PERSIST|DELETE
	# BigInt = No|Yes
EOD

%post
if [ -x %{_bindir}/odbcinst ] ; then
	INST=/tmp/sqliteodbcinst$$

	if [ -r %{_libdir}/libsqliteodbc.so ] ; then
		cat > $INST <<- 'EOD'
			[SQLITE]
			Description=SQLite ODBC 2.X
			Driver=%{_libdir}/libsqliteodbc.so
			Setup=%{_libdir}/libsqliteodbc.so
			Threading=2
			FileUsage=1
		EOD

		%{_bindir}/odbcinst -q -d -n SQLITE | grep '^\[SQLITE\]' >/dev/null || {
			%{_bindir}/odbcinst -i -d -n SQLITE -f $INST || true
		}

		cat > $INST <<- 'EOD'
			[SQLite Datasource]
			Driver=SQLITE
		EOD

		%{_bindir}/odbcinst -q -s -n "SQLite Datasource" | \
		grep '^\[SQLite Datasource\]' >/dev/null || {
			%{_bindir}/odbcinst -i -l -s -n "SQLite Datasource" -f $INST || true
		}
	fi

	if [ -r %{_libdir}/libsqlite3odbc.so ] ; then
		cat > $INST <<- 'EOD'
			[SQLITE3]
			Description=SQLite ODBC 3.X
			Driver=%{_libdir}/libsqlite3odbc.so
			Setup=%{_libdir}/libsqlite3odbc.so
			Threading=2
			FileUsage=1
		EOD

		%{_bindir}/odbcinst -q -d -n SQLITE3 | grep '^\[SQLITE3\]' >/dev/null || {
			%{_bindir}/odbcinst -i -d -n SQLITE3 -f $INST || true
		}

		cat > $INST <<- 'EOD'
			[SQLite3 Datasource]
			Driver=SQLITE3
		EOD

		%{_bindir}/odbcinst -q -s -n "SQLite3 Datasource" | \
		grep '^\[SQLite3 Datasource\]' >/dev/null || {
			%{_bindir}/odbcinst -i -l -s -n "SQLite3 Datasource" -f $INST || true
		}
	fi

	rm -f $INST || true
fi


%preun
if [ "$1" = "0" ] ; then
	test -x %{_bindir}/odbcinst && {
		%{_bindir}/odbcinst -u -d -n SQLITE || true
		%{_bindir}/odbcinst -u -l -s -n "SQLite Datasource" || true
		%{_bindir}/odbcinst -u -d -n SQLITE3 || true
		%{_bindir}/odbcinst -u -l -s -n "SQLite3 Datasource" || true
	}

	true
fi


%files
%doc README license.terms ChangeLog odbc.ini.sample
%{_libdir}/*.so*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8879 |21cr|sqlitestudio-3.4.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} %(pkg-config --cflags-only-I --libs python3)
%define _disable_ld_no_undefined 1

Name: sqlitestudio
Version: 3.4.4
Release: 3

Group: Development/Databases
License: GPLv3+
Url: https://github.com/pawelsalawa/sqlitestudio

Summary: Database manager for SQLite
Summary(ru_RU.UTF-8): Менеджер баз данных типа SQLite

Source0: https://github.com/pawelsalawa/sqlitestudio/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1: %{name}.svg

Patch1: 0001-fix-PyThreadState.patch

BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(readline)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5UiTools)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Xml)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(Qt5PrintSupport)
BuildRequires: pkgconfig(tcl)
BuildRequires: pkgconfig(python3)

%description
SQLiteStudio is a free, open source, multi-platform SQLite database manager
written in C++, with use of Qt framework.

Features:
* Single executable file
* Intuitive interface
* All SQLite3 and SQLite2 features wrapped within simple GUI
* Cross-platform
* Localizations
* Exporting to various formats
* Importing data from various formats
* Numerous small additions
* UTF-8 support
* Skinnable
* Configurable colors, fonts and shortcuts

%description -l ru_RU.UTF-8
SQLiteStudio - это свободный многоплатформенный менеджер баз данных SQLite
с открытым исходным кодом, написанный на C++ с использованием фреймворка Qt.

Возможности:
* Единый исполняемый файл
* Интуитивно понятный интерфейс
* Все возможности SQLite3 и SQLite2 заключены в простой графический интерфейс.
* Кросс-платформенность
* Локализации
* Экспорт в различные форматы
* Импорт данных из различных форматов
* Многочисленные мелкие дополнения
* Поддержка UTF-8
* Возможность смены стиля
* Настраиваемые цвета, шрифты и ярлыки

%files
%{_bindir}/%{name}*
%{_libdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------------

%prep
%setup

%patch1 -p1

# ld: cannot find -lpython3.9: No such file or directory
sed -i -e 's/lpython3.9/lpython3/g' ./Plugins/ScriptingPython/ScriptingPython.pro

%ifnarch %ix86 x86_64
# as of 3.4.1
sed -i '/-msse/d' Plugins/DbSqliteWx/DbSqliteWx.pro
%endif

%build
%qmake_qt5 ./SQLiteStudio3/SQLiteStudio3.pro
%make_build

%qmake_qt5 ./Plugins/Plugins.pro
%make_build -j1

%install
install -p -m644 -D %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

install -d -m755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Sqlitestudio
Comment=Database manager for SQLite
Exec=%name
Icon=%name
Terminal=false
StartupNotify=false
Categories=Application;Development
EOF

mkdir -p %{buildroot}%{_libdir}/%{name}/
pushd %{_builddir}/%{name}-%{version}/output/SQLiteStudio
cp -a *.so* plugins %{name}* %{buildroot}%{_libdir}/%{name}/
popd

mkdir -p %{buildroot}%{_bindir}/
# create wrappers to avoid messing with rpath
for i in %{name}{,cli}; do
	cat > %{buildroot}%{_bindir}/$i <<-EOF
	#!/bin/sh
	# start SQLiteStudio with plugins
	export SQLITESTUDIO_PLUGINS=%{_libdir}/%{name}/plugins
	export LD_LIBRARY_PATH=%{_libdir}/%{name}
	%{_libdir}/%{name}/$i
	EOF
	chmod 755 %{buildroot}%{_bindir}/$i
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8880 |21cr|sqlmap-1.2.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# binaries are exploits, intended to be used on remote systems
%define _binaries_in_noarch_packages_terminate_build 0

# exclude binaries from dependencies computing
%global __requires_exclude_from ^%{_datadir}/%{name}/udf/.*$
%global __provides_exclude_from ^%{_datadir}/%{name}/udf/.*$

Name:           sqlmap
Version:        1.2.12
Release:        1
Summary:        Automatic SQL injection and database takeover tool
Group:          Security
License:        GPL
URL:            http://sqlmap.org/
Source0:        https://github.com/sqlmapproject/sqlmap/archive/%{name}-%{version}.tar.gz
BuildArch:      noarch

%description
sqlmap is an open source penetration testing tool that automates the process
of detecting and exploiting SQL injection flaws and taking over of database
servers. It comes with a powerful detection engine, many niche features for
the ultimate penetration tester and a broad range of switches lasting from
database fingerprinting, over data fetching from the database, to accessing
the underlying file system and executing commands on the operating system
via
out-of-band connections.

%prep
%setup -q

%install
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 755 sqlmap.py %{buildroot}%{_datadir}/%{name}
cp -pr extra %{buildroot}%{_datadir}/%{name}
cp -pr lib %{buildroot}%{_datadir}/%{name}
cp -pr plugins %{buildroot}%{_datadir}/%{name}
cp -pr procs %{buildroot}%{_datadir}/%{name}
cp -pr shell %{buildroot}%{_datadir}/%{name}
cp -pr tamper %{buildroot}%{_datadir}/%{name}
cp -pr thirdparty %{buildroot}%{_datadir}/%{name}
cp -pr txt %{buildroot}%{_datadir}/%{name}
cp -pr udf %{buildroot}%{_datadir}/%{name}
cp -pr waf %{buildroot}%{_datadir}/%{name}
cp -pr xml %{buildroot}%{_datadir}/%{name}

install -d -m 755 %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/sqlmap <<'EOF'
#!/bin/sh
cd %{_datadir}/%{name}
./sqlmap.py "$@"
EOF
chmod +x %{buildroot}%{_bindir}/sqlmap

install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 sqlmap.conf %{buildroot}%{_sysconfdir}
pushd %{buildroot}%{_datadir}/%{name}
ln -s ../../..%{_sysconfdir}/sqlmap.conf .
popd

%files
%doc doc/*
%{_datadir}/%{name}
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8881 |21cr|squashfuse-0.1.100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FUSE filesystem to mount squashfs archives
Name:		squashfuse
Version:	0.1.100
Release:	1
License:	BSD
Group:		System/Base
Url:		https://github.com/vasi/squashfuse
Source0:	https://github.com/vasi/squashfuse/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	attr-devel
BuildRequires:	liblzo-devel
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)
Requires:	fuse

%description
Squashfuse lets you mount SquashFS archives in user-space. It supports almost
all features of the SquashFS format, yet is still fast and memory-efficient.
SquashFS is an efficiently compressed, read-only storage format. Support for it
has been built into the Linux kernel since 2009. It is very common on Live CDs
and embedded Linux distributions.

%files
%doc LICENSE
%{_bindir}/squashfuse
%{_bindir}/squashfuse_ll
%{_mandir}/man1/squashfuse.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8882 |21cr|squeak-image-4.5.13680-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sourcever %(echo %{version} |sed "s/\\\./-/2")
%define majorver %(echo %{version} |cut -d. -f-2)

Summary:	The image files for Squeak
Name:		squeak-image
Version:	4.5.13680
Release:	1
License:	MIT
Group:		Development/Other
Url:		http://www.squeak.org
Source0:	http://ftp.squeak.org/%{majorver}/Squeak%{sourcever}.zip
Source1:	http://ftp.squeak.org/sources_files/SqueakV41.sources.gz
Source2:	http://ftp.squeak.org/4.1/LICENSE
Source3:	squeak-image-doc.html
Requires:	squeak-vm
BuildArch:	noarch

%description
This is the standard Squeak image as distributed by sqeak.org.
The Squeak image is split into three interdependent parts,
the .image file, the .changes file, and the .sources file.

%files
%doc squeak-image-doc.html
%license LICENSE
%{_datadir}/squeak/*

#------------------------------------------------------------------

%prep
%autosetup -c %{name}-%{version}
cp -p %{SOURCE2} %{SOURCE3} .

%build

%install
mkdir -p %{buildroot}%{_datadir}/squeak
cp Squeak%{sourcever}.image %{buildroot}%{_datadir}/squeak
cp Squeak%{sourcever}.changes %{buildroot}%{_datadir}/squeak
zcat %{SOURCE1} >%{buildroot}%{_datadir}/squeak/SqueakV41.sources
pushd %{buildroot}%{_datadir}/squeak
gzip Squeak%{sourcever}.image
gzip Squeak%{sourcever}.changes
gzip SqueakV41.sources
ln -sf Squeak%{sourcever}.image.gz squeak.image.gz
ln -sf Squeak%{sourcever}.changes.gz squeak.changes.gz
ln -s SqueakV41.sources.gz SqueakV4.sources.gz
ln -s SqueakV41.sources.gz squeak.sources.gz
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8883 |21cr|squeak-vm-4.10.2.2614-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define vmver %(echo %{version} |cut -d. -f-3)
%define svntag %(echo %{version} |cut -d. -f4)

Summary:	The Squeak virtual machine
Name:		squeak-vm
Version:	4.10.2.2614
Release:	12
License:	MIT
Group:		Development/Other
Url:		http://squeakvm.org/unix
Source0:	http://squeakvm.org/unix/release/Squeak-%{version}-src.tar.gz
Source1:	inisqueak
Source2:	squeak-desktop-files.tar.gz
Patch0:		squeak-vm-dprintf.patch
Patch1:		squeak-vm-4.10.2-alsa-fixes.patch
Patch2:		squeak-vm-4.10.2-fix-cmake.patch
Patch3:		squeak-vm-4.10.2-squeak-init-fix.patch
Patch4:		squeak-vm-4.10.2-format-security.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gstreamer-0.10)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xt)
Requires:	zenity
Recommends:	squeak-image

%description
Squeak is a full-featured implementation of the Smalltalk programming
language and environment based on (and largely compatible with) the original
Smalltalk-80 system.

This package contains just the Squeak virtual machine.

%files
%doc unix/ChangeLog unix/doc/{README*,*RELEASE_NOTES}
%license unix/doc/LICENSE
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/gnome/*/*/*
%{_datadir}/mime/packages/*
%{_datadir}/pixmaps/*
%dir %{_libdir}/squeak
%{_libdir}/squeak/*
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Squeak-%{version}-src -a2

sed -i 's|SET\s*\(imgdir\s+.+\)|SET (imgdir share/squeak)|i;
s|SET\s*\(plgdir\s+.+\)|SET (plgdir %{_lib}/squeak/${version}${versionsuffix})|i' \
unix/CMakeLists.txt

sed -i 's|^libdir=.*$|libdir="%{_libdir}/squeak"|' unix/cmake/squeak.in
sed -i 's|^libdir=.*$|libdir="%{_libdir}/squeak"|' unix/cmake/squeak.sh.in

# The source files chmod'd here have the execute bit set in the upstream tarball
# which bothers rpmlint, need submit a request upstream to have this changed
find . -name '*.[ch]' -exec chmod ug=rw,o=r {} \;

%build
pushd unix
%cmake -DVM_HOST="%{_host}" -DVM_VERSION="%{vmver}-%{svntag}" -DPLATFORM_SOURCE_VERSION="%{svntag}"
%make
popd

%install
pushd unix
%makeinstall_std -C build
popd

# these files will be put in std RPM doc location
rm -rf %{buildroot}%{_prefix}/doc/squeak

# install the desktop stuff
install -D --mode=u=rwx,go=rx mysqueak %{buildroot}%{_bindir}/mysqueak
install -D --mode=u=rw,go=r mysqueak.1 %{buildroot}%{_mandir}/man1/mysqueak.1
install -D --mode=u=rw,go=r squeak.xml %{buildroot}%{_datadir}/mime/packages/squeak.xml
install -D --mode=u=rw,go=r squeak.desktop %{buildroot}%{_datadir}/applications/squeak.desktop
install -D --mode=u=rw,go=r squeak.png %{buildroot}%{_datadir}/pixmaps/squeak.png
cp %{SOURCE1} %{buildroot}%{_bindir}
chmod +x %{buildroot}%{_bindir}/inisqueak

%define icons_dir %{buildroot}%{_datadir}/icons/gnome
for size in 16 24 32 48 64 72 96
do
	mkdir -p %{icons_dir}/${size}x${size}/mimetypes
	install -m0644 squeak${size}.png %{icons_dir}/${size}x${size}/mimetypes/application-x-squeak-image.png
	install -m0644 squeaksource${size}.png %{icons_dir}/${size}x${size}/mimetypes/application-x-squeak-source.png
done

# If an image cant find the .sources in the current directory it will look
# in %{_libdir}/squeak/%{vmver}
pushd %{buildroot}%{_libdir}/squeak/%{vmver}-%{svntag}
DOTDOTS=$(echo %{_libdir}/squeak/%{vmver}-%{svntag} | sed -e 's:/[^/]\+:../:g')
ln -s ${DOTDOTS}%{_datadir}/squeak/SqueakV41.sources .
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8884 |21cr|squeekboard-1.38.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An on-screen-keyboard input method for Wayland
Name:		squeekboard
Version:	1.38.0
Release:	1
License:	GPLv3
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/World/Phosh/squeekboard
Source0:	https://gitlab.gnome.org/World/Phosh/squeekboard/-/archive/v%{version}/%{name}-v%{version}.tar.gz
# cd squeekboard-v%%{version}
# mkdir cargo-home
# cat >cargo-home/config <<EOF
# [source.crates-io]
# registry = 'https://github.com/rust-lang/crates.io-index'
# replace-with = 'vendored-sources'
# [source.vendored-sources]
# directory = './vendor'
# EOF
# export CARGO_HOME=$(pwd)/cargo-home
# cargo vendor
# tar -cpJf ../vendor-%%{version}.tar.xz vendor
Source1:	vendor-%{version}.tar.xz
Source2:	squeekboard.desktop
BuildRequires:	cargo
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	wayland-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(libfeedback-0.0)
BuildRequires:	pkgconfig(wayland-protocols)

%description
Squeekboard is a keyboard-shaped input method supporting Wayland,
built primarily for the Librem 5 phone.

%files -f %{name}.lang
%doc NEWS.md README.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-entry
%{_bindir}/%{name}-restyled
%{_bindir}/%{name}-test-layout
%{_datadir}/applications/sm.puri.Squeekboard.desktop
%{_sysconfdir}/xdg/autostart/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version} -a1
mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
export CARGO_HOME=$(pwd)/cargo-home
%meson -Dtests=false
%meson_build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_localedir}
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
cp -rf *-rosa-linux-gnu/po/* %{buildroot}%{_localedir}
cp *-rosa-linux-gnu/data/sm.puri.Squeekboard.desktop %{buildroot}%{_datadir}/applications
cp *-rosa-linux-gnu/src/%{name} %{buildroot}%{_bindir}
cp *-rosa-linux-gnu/tools/%{name}-* %{buildroot}%{_bindir}
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/xdg/autostart/
cp tools/%{name}-restyled %{buildroot}%{_bindir}

chmod +x %{buildroot}%{_bindir}/squeekboard-entry
chmod +x %{buildroot}%{_bindir}/squeekboard-restyled

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8885 |21cr|squidanalyzer-6.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define webdir /var/www

Summary:	Squid proxy log analyzer and report generator
Name:		squidanalyzer
Version:	6.6
Release:	1
License:	GPLv3+
Group:		Monitoring
URL:		http://squidanalyzer.darold.net/
Source:		http://prdownloads.sourceforge.net/squid-report/%{name}-%{version}.tar.gz
BuildRequires:	perl
BuildRequires:	perl(ExtUtils::MakeMaker)
# user and group squid provided squid pkg
Requires:	squid
BuildArch:	noarch

%description
Squid proxy native log analyzer and reports generator with full
statistics about times, hits, bytes, users, networks, top URLs and
top domains. Statistic reports are oriented toward user and
bandwidth control; this is not a pure cache statistics generator.

SquidAnalyzer uses flat files to store data and doesn't need any SQL,
SQL Lite or Berkeley databases.

This log analyzer is incremental and should be run in a daily cron,
or more often with heavy proxy usage.

%files
%doc README ChangeLog
%{_mandir}/man3/squid-analyzer.3*
%{_mandir}/man3/SquidAnalyzer.3pm*
%{perl_vendorlib}/SquidAnalyzer.pm
%attr(0755,root,squid) %{_sbindir}/squid-analyzer
%attr(0755,root,squid) %dir %{_sysconfdir}/%{name}
%attr(0664,root,squid) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/excluded
%config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/included
%config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/network-aliases
%config(noreplace) %attr(0644,root,squid) %{_sysconfdir}/%{name}/user-aliases
%config(noreplace) %attr(0754,root,squid) %{_sysconfdir}/cron.daily/0%{name}
%attr(0755,root,squid) %dir %{_sysconfdir}/%{name}/lang
%{_sysconfdir}/%{name}/lang/*
%attr(0755,root,squid) %dir %{webdir}/%{name}
%{webdir}/%{name}/flotr2.js
%{webdir}/%{name}/sorttable.js
%{webdir}/%{name}/%{name}.css
%attr(0755,root,squid) %dir %{webdir}/%{name}/images
%{webdir}/%{name}/images/*.png

#---------------------------------------------------------------------
%prep
%setup -q

%build
# Build Makefile for SquidAnalyzer
perl Makefile.PL INSTALLDIRS=vendor DESTDIR=%{buildroot} LOGFILE=%{_logdir}/squid/access.log \
    BINDIR=%{_sbindir} HTMLDIR=%{webdir}/%{name} BASEURL=/%{name} MANDIR=%{_mandir}/man3 QUIET=yes

# Compile
make

%install
# Make install distrib files
%make_install

# Remove .packlist file (per rpmlint)
rm -f %{buildroot}/%{perl_vendorarch}/auto/SquidAnalyzer/.packlist
rm -f `find %{buildroot}/%{_libdir}/perl*/ -name .packlist -type f`
rm -f `find %{buildroot}/%{_libdir}/perl*/ -name perllocal.pod -type f`

# Install cron
%{__install} -d %{buildroot}/%{_sysconfdir}/cron.daily
echo -e "#!/bin/sh\n%{_sbindir}/squid-analyzer" > %{buildroot}/%{_sysconfdir}/cron.daily/0%{name}

# moved to usr/sbin
rm -f %{buildroot}%{_bindir}/squid-analyzer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8886 |21cr|squidclamav-7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Clamav Antivirus Redirector for Squid
Name:		squidclamav
Version:	7.2
Release:	1
Group:		System/Servers
License:	GPLv2
URL:		http://sourceforge.net/projects/%{name}/
Source0:	http://sourceforge.net/projects/squidclamav/files/squidclamav/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	curl-devel
BuildRequires:	c-icap-devel
Requires:	squid curl clamav clamd
Recommends:	squidGuard
Patch0:		squidclamav.conf.diff

%description
SquidClamAv is a dedicated ClamAV antivirus redirector for Squid. It can run
antivirus checks based on filename regex, content-type regex, and more. It is
easy to install and works even with heavy Squid access. 

%files
%doc ChangeLog README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/icapd/%{name}.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
#%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_libexecdir}/%{name}/*
%attr(0755,root,root) %{_libdir}/c_icap/%{name}.so
%attr(0755,root,root) %{_mandir}/man1/*1*
%attr(0755,squid,squid) %dir /var/log/%{name}
%{_sysconfdir}/icapd/squidclamav.conf.default
%{_datadir}/c_icap/templates/squidclamav/en/MALWARE_FOUND

#-------------------------------------------------------------------------------
%prep
%autosetup -p1

#chmod 644 ChangeLog README clwarn.cgi*

%build
%configure
%make

%install
install -d -m 0755 %{buildroot}%{_sysconfdir}
install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
install -d -m 0755 %{buildroot}/var/log/%{name}
install -d -m 0755 %{buildroot}/%{_libexecdir}

%makeinstall_std


#install -m0644 {name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
#install -m0755 clwarn.cgi %{buildroot}/var/www/cgi-bin/

# fix logrotate entries
cat > %{name}.logrotate << EOF
/var/log/%{name}/%{name}.log {
    rotate 5
    monthly
    missingok
    notifempty
}
EOF
install -m0644 %{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

rm -f %{buildroot}%{_datadir}/%{name}/README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8887 |21cr|squidguard-1.5-0.beta.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define rname	squidGuard
%define prerel	beta

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\((.*)\\)
%global __provides_exclude perl\\((.*)\\)
%else
%define _requires_exceptions perl(
%define _provides_exceptions perl(
%endif

Summary:	Filter, redirector and access controller plugin for Squid
Name:		squidguard
Version:	1.5
Release:	0.%{prerel}.6
License:	GPLv2+
Group:		System/Servers
Url:		http://www.squidguard.org
Source0:	http://www.squidguard.org/Downloads/%{?prerel:Devel/}%{rname}-%{version}%{?prerel:-%{prerel}}.tar.gz
Source1:	%{rname}.conf.sample
Source2:	blacklists-readme
Source3:	%{rname}.cgi
Source4:	nulbanner.png
Source5:	blacklist-update
Source6:	%{rname}.logrotate
Source7:	squidGuard-1.4-patch-20150201.tar.gz
Patch0:		squidGuard-1.2.0.default_dir.patch
Patch1:		squidGuard-DESTDIR.diff
Patch2:		squidGuard-1.4-make_default_config_work.diff

#Debian patches
Patch11:	04_update-links-in-doc-files.patch
Patch12:	05_distclean-more-files.patch
Patch13:	06_move-setuserinfo-to-sg-y.patch
Patch15:	09_missing-content-after-percent-sign.patch
Patch16:	10_use-newer-ldapsearch-of-denis.patch
Patch17:	11_fix-for-clean-target-without-syslog.patch

BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	db-devel
BuildRequires:	openldap-devel
Requires:	squid
Provides:	squidGuard = %{EVRD}

%description
SquidGuard is a combined filter, redirector and access controller plugin for
Squid. It is free, very flexible, extremely fast, easily installed, portable.
SquidGuard can be used to 
- limit the web access for some users to a list of accepted/well known web
servers and/or URLs only. 
- block access to some listed or blacklisted web servers and/or URLs for
some users. 
- block access to URLs matching a list of regular expressions or words for
some users. 
- enforce the use of domainnames/prohibit the use of IP address in URLs. 
- redirect blocked URLs to an "intelligent" CGI based info page.
- redirect unregistered user to a registration form. 
- redirect popular downloads like Netscape, MSIE etc. to local copies. 
- redirect banners to an empty GIF.
- have different access rules based on time of day, day of the week, date
etc. 
- have different rules for different user groups. 

Neither squidGuard nor Squid can be used to 

- filter/censor/edit text inside documents 
- filter/censor/edit embeded scripting languages 
  like JavaScript or VBscript inside HTML 

%files
%doc COPYING GPL README README.LDAP ANNOUNCE CHANGELOG blacklists-readme doc/*.{html,gif,txt}
%config(noreplace) %{_sysconfdir}/squid/*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{rname}
%{_bindir}/*
%attr(0755,apache,apache) /var/www/cgi-bin/*.cgi
%attr(0755,apache,apache) /var/www/cgi-bin/*.png
%{_datadir}/%{rname}-%{version}/contrib
%{_datadir}/%{rname}-%{version}/samples
%{_datadir}/%{rname}-%{version}/db
%dir %attr(-,squid,squid)/var/log/%{rname}
%attr(-,squid,squid)/var/log/%{rname}/*

%post
rm -rf `find %{_datadir}/%{rname}-%{version}/db |grep "\.db"`
%{_bindir}/%{rname} -c  %{_sysconfdir}/squid/%{rname}.conf.sample -C all
for i in privilegedsource bannedsource timerestriction lansource banneddestination advertising; do
    rm -rf /usr/share/%{rname}-%{version}/db/$i/*.db 
done
chown -R squid:squid /usr/share/%{rname}-%{version}/db

echo "WARNING !!! WARNING !!! WARNING !!! WARNING !!!"
echo ""
echo "Modify the following line in the /etc/squid/squid.conf file:"
echo "url_rewrite_program /usr/bin/squidGuard -c /etc/squid/squidGuard.conf"

%preun
if [ $1 = 0 ] ; then
        rm -f /var/log/squidGuard/*
fi

%postun
if [ "$1" = "0" ]; then
    rm -rf %{_datadir}/%{rname}-%{version}
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{rname}-%{version}-%{prerel}

# fix attribs
find . -type d -perm 0750 -exec chmod 755 {} \;
find . -type f -perm 0640 -exec chmod 644 {} \;

%patch0 -p1
%patch1 -p0
%patch2 -p0

%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1

cp %{SOURCE6} %{rname}.logrotate

%build
%serverbuild

%configure \
    --with-ldap \
    --with-sg-config=%{_sysconfdir}/squid/%{rname}.conf \
    --with-sg-logdir=/var/log/squidGuard \
    --with-sg-dbhome=%{_datadir}/%{rname}-%{version}/db

make

#Apply squidGuard-1.4-patch-20150201.tar.gz
tar -xzf %{SOURCE7} --overwrite -C samples/ --strip-components=1

%install
Q=%{buildroot}%{_datadir}/%{rname}-%{version}

install -d %{buildroot}%{_sysconfdir}/squid
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}/var/log/squidGuard
install -d %{buildroot}/var/www/cgi-bin
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/%{rname}-%{version}/contrib
install -d %{buildroot}%{_datadir}/%{rname}-%{version}/db/{advertising,bannedsource,banneddestination}
install -d %{buildroot}%{_datadir}/%{rname}-%{version}/db/{timerestriction,lansource,privilegedsource}
install -d %{buildroot}%{_datadir}/%{rname}-%{version}/db/{porn,adult,audio-video,forums,hacking,redirector}
install -d %{buildroot}%{_datadir}/%{rname}-%{version}/db/{warez,ads,aggressive,drugs,gambling,publicite,violence}

%makeinstall_std SQUIDUSER="`id -nu`"

install -m0644 %{rname}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{rname}

touch $Q/db/advertising/{domains,urls}
touch $Q/db/banneddestination/{domains,urls,expressions}
touch $Q/db/bannedsource/ips
touch $Q/db/lansource/lan
touch $Q/db/timerestriction/lan
touch $Q/db/privilegedsource/ips

# the blacklists default directories (Fabrice Pringent's one)
touch $Q/db/porn/{domains,urls,expressions}
touch $Q/db/adult/{domains,urls,expressions}
touch $Q/db/audio-video/{domains,urls}
touch $Q/db/forums/{domains,urls,expressions}
touch $Q/db/hacking/{domains,urls}
touch $Q/db/redirector/{domains,urls,expressions}
touch $Q/db/warez/{domains,urls}
touch $Q/db/ads/{domains,urls}
touch $Q/db/aggressive/{domains,urls}
touch $Q/db/drugs/{domains,urls}
touch $Q/db/gambling/{domains,urls}
touch $Q/db/publicite/{domains,urls,expressions}
touch $Q/db/violence/{domains,urls,expressions}

cd samples/dest/
tar xzf blacklists.tar.gz
cp -af blacklists/* $Q/db
cd -

cp -a contrib/hostbyname/hostbyname $Q/contrib/
cp -a contrib/sgclean/sgclean $Q/contrib/
cp -a contrib/squidGuardRobot/{squidGuardRobot,RobotUserAgent.pm} $Q/contrib/

cp -a samples/dest $Q/samples
cp -a samples/*{.conf,.cgi} $Q/samples

cp -a %{SOURCE2} .
cp -a %{SOURCE5} .

rm -rf $Q/test/test*.conf.*

# default config files
# log & error files
touch %{buildroot}/var/log/%{rname}/%{rname}.{log,error}
touch %{buildroot}/var/log/%{rname}/advertising.log

# conf file
install %{SOURCE1} %{buildroot}/etc/squid/%{rname}.conf.sample
cp -af %{SOURCE3} %{SOURCE4} %{buildroot}/var/www/cgi-bin
rm -rf %{buildroot}%{_datadir}/%{rname}-%{version}/samples/dest

# cleanup
rm -rf %{buildroot}%{_prefix}/squidGuard

# fix attribs
find %{buildroot} -type d -perm 0750 -exec chmod 755 {} \;
find %{buildroot} -type f -perm 0640 -exec chmod 644 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8888 |21cr|squid_nufw_helper-1.1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NuFW SSO module for Squid
Name:		squid_nufw_helper
Version:	1.1.3
Release:	10
Group:		System/Servers
License:	GPL
URL:		http://www.inl.fr/squid-nufw-helper.html
Source0:	http://www.nufw.org/attachments/download/7/squid-nufw-helper-%{version}.tar.bz2
Patch0:		squid_nufw_helper-1.1.3-postgresql.diff
Patch1:		squid_nufw_helper-1.1.3-configure.diff
BuildRequires:	mysql-devel
#BuildRequires:	postgresql-devel
BuildRequires:	libxslt-devel
BuildRequires:	pam-devel
BuildRequires:	readline-devel
Requires:	squid


%description
squid-nufw-helper is the authentication SSO module for Squid, working with a
NuFW firewall. It allows for transparent (Single Sign On) authentication of
users on a Squid proxy, even if the proxy is a "transparent" one.

%prep

%setup -q -n squid-nufw-helper-%{version}
%patch0 -p0
%patch1 -p0

# cleanup
rm -rf autom4te.cache
rm -f squid_nufw_helper

%build

# Build with mysql, fails to build with modern PostgreSQL
%configure \
    --with-mysql

make clean
%make

mv squid_nufw_helper squid_nufw_helper-postgresql

%configure \
    --with-mysql
%make
mv squid_nufw_helper squid_nufw_helper-mysql

%install
install -d %{buildroot}%{_sbindir}

install -m0755 squid_nufw_helper-postgresql %{buildroot}%{_sbindir}/
install -m0755 squid_nufw_helper-mysql %{buildroot}%{_sbindir}/

%files
%doc README ChangeLog squid_nufw_helper.conf
%attr(0755,root,root) %{_sbindir}/squid_nufw_helper-postgresql
%attr(0755,root,root) %{_sbindir}/squid_nufw_helper-mysql

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8889 |21cr|squid-purge-20040201-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		squid-purge
Version:	20040201
Release:	6
Summary:    Squid pruger utility
License:    GPLv2+
Group:      Networking/Other
URL:        http://www.squid-cache.org/contrib/
Source:     http://www.squid-cache.org/contrib/purge-%{version}-src.tar.gz
Patch0:     purge-gcc4.patch
Patch1:     make-install.patch
Patch2:     purge-conf.patch
BuildRequires:  gcc-c++
#Requires:	apache
Recommends:	webproxy


%description
The purge tool is a kind of magnifying glass into your squid-2 cache. You
can use purge to have a look at what URLs are stored in which file within
your cache. The purge tool can also be used to release objects which URLs
match user specified regular expressions. A more troublesome feature is the
ability to remove files squid does not seem to know about any longer.

%prep
%setup -q -n purge
%patch0 -p0 -b .gcc4
%patch1 -p0 -b .make
%patch2 -p0 -b .etc

%build
%make CXX="g++ %optflags" OPT_NORM="" SOCKLEN=socklen_t EXTRALIB="-lstdc++"


%install
#%makeinstall
mv purge squid-purge
install -d  %{buildroot}%{_sbindir}
install -m0700  squid-purge %{buildroot}%{_sbindir}/squid-purge


%clean
%{__rm} -rf %{buildroot}


%files
%defattr(0755,root,root)
%doc README
%{_sbindir}/squid-purge

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8890 |21cr|squirrel-3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined %{nil}

%define oname squirrel3

%define major 0
%define libname %mklibname %{name} %{major}
%define libstdl %mklibname sqstdlib %{major}
%define devname %mklibname %{name} -d

%define	ver %(echo %{version}|sed s/\\\\\./_/g)

Summary:	The squirrel language
Name:		squirrel
Version:	3.2
Release:	1
License:	zlib
Group:		Development/Tools
URL:		http://squirrel-lang.org
Source0:	https://downloads.sourceforge.net/project/squirrel/squirrel3/squirrel%203.2%20stable/squirrel_%{ver}_stable.tar.gz

Patch0:		squirrel-autoconfiscate.patch

%description
Squirrel is a light weight programming language featuring higher-order
functions,classes/inheritance, delegation, tail recursion, generators,
cooperative threads,exception handling, reference counting and garbage
collection on demand. C-like syntax.

%files
%doc README HISTORY COPYRIGHT COMPILE
%{_bindir}/sq

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library from %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library from %{name}.

%files -n %{libname}
%{_libdir}/libsquirrel.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libstdl}
Summary:	Shared library from %{name}
Group:		System/Libraries

%description -n %{libstdl}
Shared library from %{name}.

%files -n %{libstdl}
%{_libdir}/libsqstdlib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libstdl} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files from %{name}.

%files -n %{devname}
%dir %{_datadir}/%{name}/examples/
%{_datadir}/%{name}/examples/*.nut
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}
%patch0 -p1 -b .autotools

# fix file permissions
find . -type f -exec chmod a-x {} \;
chmod +x configure config.guess config.sub

# fix EOL + preserve timestamps
for f in README HISTORY COPYRIGHT
do
    perl -pi -e 's/\015$//' $f
done

%build
autoreconf -fi
%configure \
	--includedir=%{_includedir}/%{name} \
	--disable-static
%make

%install
%makeinstall_std INSTALL="/usr/bin/install -p"

# Add pkgconfig file
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat >%{buildroot}%{_libdir}/pkgconfig/squirrel.pc <<EOF
prefix=%{_prefix}
exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}/squirrel

Name: %{name}
Description: squirrel library
Version: %{version}

Requires:
Libs: -lsquirrel -lsqstdlib
Cflags: -I\${includedir}
EOF

#correct wrong file end of line encoding
perl -pi -e 's/\015$//' %{buildroot}/%{_includedir}/*

# Fix SUSE-ism
mv %{buildroot}%{_docdir}/packages/%{name} %{buildroot}%{_docdir}/%{name}
rmdir %{buildroot}%{_docdir}/packages

# remove pdf
rm -fv %{buildroot}/%{_docdir}/%{name}/*.pdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8891 |21cr|squirrelmail-1.4.23-0.0.r14325.11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# These ones don't show up with now
#define __noautoreq pear(\\(class.JavaScriptPacker.php\\|/etc/squirrelmail/plugins/change_pass_settings.php\\))

%global __requires_exclude /usr/bin/php

# helps to find new languages
%define _unpackaged_files_terminate_build 0

%define basedir /var/www/squirrelmail
%define varlibdir /var/lib/squirrelmail
%define prefsdir %{varlibdir}/prefs
%define varspooldir /var/spool/squirrelmail
%define attdir %{varspooldir}/attach
%define etcdir /etc/squirrelmail
%define crondir /etc/cron.daily
# Plugin config files
%define pluginetc %{etcdir}/plugins

%define locale_stamp 20090526

%define snap r14325

Summary:	Webmail client for PHP
Name:		squirrelmail
Version:	1.4.23
Release:	0.0.%{snap}.11
License:	GPLv2+
Group:		System/Servers
Url:		http://www.squirrelmail.org/
#Source0:	http://prdownloads.sf.net/squirrelmail/%{name}-webmail-%{version}.tar.gz
Source0:	squirrelmail.tar.gz
Source1:	http://prdownloads.sf.net/squirrelmail/all_locales-1.4.18-%{locale_stamp}.tar.bz2
Source2:	squirrelmail-RPM.readme
# http://squirrelmail.org/plugin_list.php
Source3:	http://www.squirrelmail.org/plugins/address_add-2.1-1.4.0.tar.bz2
Source4:	http://www.squirrelmail.org/plugins/block_sender.2.02-1.4.0.tar.bz2
Source5:	http://www.squirrelmail.org/plugins/login_image-0.2.tar.bz2
Source6:	http://www.squirrelmail.org/plugins/secure_login-1.4-1.2.8.tar.bz2
Source7:	http://www.squirrelmail.org/plugins/compatibility-2.0.14-1.0.tar.bz2
Source8:	http://www.squirrelmail.org/plugins/change_pass-3.0-1.4.0.tar.gz
Source9:	http://www.squirrelmail.org/plugins/quota_usage-1.3.1-1.2.7.tar.bz2
# http://sourceforge.net/tracker/index.php?func=detail&aid=1255733&group_id=311&atid=300311
Source10:	http://www.squirrelmail.org/plugins/change_ldappass-2.2-1.4.0.tar.bz2
Source11:	http://www.squirrelmail.org/plugins/avelsieve-1.9.9.tar.gz
Source12:	http://www.squirrelmail.org/plugins/windows-1.6-1.4.tar.bz2
Source13:	http://www.squirrelmail.org/plugins/folder_sizes-1.5-1.4.0.tar.bz2
Source14:	http://www.squirrelmail.org/plugins/archive_mail.1.2-1.4.2.tar.bz2
Source15:	http://www.squirrelmail.org/plugins/empty_folders-2.0.1-1.2.tar.bz2
Source16:	http://www.squirrelmail.org/plugins/abook_import_export-1.1-1.4.4.tar.bz2
Source17:	http://www.squirrelmail.org/plugins/ldifimport-1.4-1.2.x.tar.bz2
Source18:	http://www.squirrelmail.org/plugins/username-2.3-1.0.0.tar.bz2
Source19:	http://www.squirrelmail.org/plugins/bookmarks-2.0.3-1.4.1.tar.bz2
Source20:	http://www.squirrelmail.org/plugins/select_range-3.7.1-1.4.4.tar.gz
Source21:	http://www.squirrelmail.org/plugins/rewrap-1.3-1.4.0.tar.bz2
Source22:	http://www.squirrelmail.org/spam_buttons-2.3-1.4.0.tar.gz
# http://sourceforge.net/projects/php-sa-mysql
Source23:	http://prdownloads.sourceforge.net/php-sa-mysql/SquirrelSAP105.tar.bz2
Source24:	http://squirrelmail.org/plugins/junkfolder-1.0.tar.bz2
Source25:	conf.pl
# javascript_libs is required/recommended by avelsieve-1.9.8
Source26:	http://email.uoa.gr/download/squirrelmail/javascript_libs/javascript_libs-0.1.2.tar.bz2
# http://code.google.com/p/yubico-squirrelmail-plugin/
Source27:	http://yubico-squirrelmail-plugin.googlecode.com/files/yubikey-0.8.1-1.4.0.tar.bz2
# branding :)
Source100:	logoMDA-CS.png
Patch0:		squirrelmail-1.4.8-get_branded.diff
Patch1:		squirrelmail-1.4.2-config.php.patch
Patch2:		squirrelmail-1.4.5-change_pass_syntax.diff
Patch5:		login_image-position.diff
Patch6:		secure_login-stayinssl.patch
Patch7:		squirrelmail-1.4.1-default_folder_prefix.patch
Patch8:		squirrelmail-select_range.diff
Patch10:	squirrelmail-1.4.6-ldappass.diff
Patch11:	squirrelmail-avelsieve.diff
Patch12:	squirrelmail-1.4.2-sqspell.patch
Patch13:	squirrelmail-1.4.2-filters.patch
Patch14:	squirrelmail-1.4.6-aspell.diff
Patch17:	squirrelmail-1.4.4-log_failed_login_attempts.diff
Patch18:	squirrelmail-broken_sql_auth_fix.diff
Patch19:	squirrelmail-1.4.19-more_rosa_branding.diff
Patch20:	squirrelmail-1.4.22-CVE-2017-7692.patch
Patch50:	CVE-2018-8741.patch
Patch51:        sqbug-2831.patch
Requires:	apache-mod_php
Requires:	sendmail-command
Requires:	aspell
Requires:	php-imap
Requires:	php-ldap
Requires:	poppassd-ceti
Requires:	tmpwatch >= 2.8
# We use ccp to upgrade our config file when possible
Requires(post):	ccp >= 0.4.0
BuildArch:	noarch

%description
SquirrelMail is a standards-based webmail package written in PHP. It
includes built-in pure PHP support for the IMAP and SMTP protocols, and
all pages render in pure HTML 4.0 (with no Javascript) for maximum
compatibility across browsers.  It has very few requirements and is very
easy to configure and install. SquirrelMail has all the functionality
you would want from an email client, including strong MIME support,
address books, and folder manipulation.

%package poutils
Summary:	Some development tools for SquirrelMail
Group:		System/Servers
Requires:	%{name} = %{version}

%description poutils
This package includes some development tools for squirrelmail
i18n, including the main po file and some compilation scripts.

%package cyrus
Summary:	Cyrus meta package for SquirrelMail
Group:		System/Servers
Requires:	%{name} = %{version}
Requires:	sasl-plug-login
Requires:	sasl-plug-plain
Requires:	cyrus-imapd
Requires:	cyrus-imapd-utils
Requires:	cyrus-sasl

%description cyrus
Cyrus meta package for SquirrelMail.

%package ar
Summary:	Arabic language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ar
Requires:	%{name} = %{version}

%description ar
This add-on package provides Arabic translation for
Squirrelmail.

%package bg
Summary:	Bulgarian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-bg
Requires:	%{name} = %{version}

%description bg
This add-on package provides Bulgarian translation for
Squirrelmail.

%package bn-india
Summary:	Bengali (India) language files for SquirrelMail
Group:		System/Servers
Requires:	locales-bn
Requires:	%{name} = %{version}

%description bn-india
This add-on package provides Bengali (India) translation for
Squirrelmail.

%package bn-bangladesh
Summary:	Bengali (Bangladesh) language files for SquirrelMail
Group:		System/Servers
Requires:	locales-bn
Requires:	%{name} = %{version}

%description bn-bangladesh
This add-on package provides Bengali (Bangladesh) translation for
Squirrelmail.

%package ca
Summary:	Catalan language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ca
Requires:	%{name} = %{version}

%description ca
This add-on package provides Catalan translation for
Squirrelmail.

%package cs
Summary:	Czech language files for SquirrelMail
Group:		System/Servers
Requires:	locales-cs
Requires:	%{name} = %{version}

%description cs
This add-on package provides Czech translation for
Squirrelmail.

%package cy
Summary:	Welsh language files for SquirrelMail
Group:		System/Servers
Requires:	locales-cy
Requires:	%{name} = %{version}

%description cy
This add-on package provides Welsh translation for
Squirrelmail.

%package da
Summary:	Danish language files for SquirrelMail
Group:		System/Servers
Requires:	locales-da
Requires:	%{name} = %{version}

%description da
This add-on package provides Danish translation for
Squirrelmail.

%package de
Summary:	German language files for SquirrelMail
Group:		System/Servers
Requires:	locales-de
Requires:	%{name} = %{version}

%description de
This add-on package provides German translation for
Squirrelmail.

%package el
Summary:	Greek language files for SquirrelMail
Group:		System/Servers
Requires:	locales-el
Requires:	%{name} = %{version}

%description el
This add-on package provides Greek translation for
Squirrelmail.

%package es
Summary:	Spanish language files for SquirrelMail
Group:		System/Servers
Requires:	locales-es
Requires:	%{name} = %{version}

%description es
This add-on package provides Spanish translation for
Squirrelmail.

%package et
Summary:	Estonian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-et
Requires:	%{name} = %{version}

%description et
This add-on package provides Estonian translation for
Squirrelmail.

%package eu
Summary:	Basque language files for SquirrelMail
Group:		System/Servers
Requires:	locales-eu
Requires:	%{name} = %{version}

%description eu
This add-on package provides Basque translation for
Squirrelmail.

%package fa
Summary:	Farsi language files for SquirrelMail
Group:		System/Servers
Requires:	locales-fa
Requires:	%{name} = %{version}

%description fa
This add-on package provides Farsi translation for
Squirrelmail.

%package fi
Summary:	Finnish language files for SquirrelMail
Group:		System/Servers
Requires:	locales-fi
Requires:	%{name} = %{version}

%description fi
This add-on package provides Finnish translation for
Squirrelmail.

%package fo
Summary:	Faroese language files for SquirrelMail
Group:		System/Servers
Requires:	locales-fo
Requires:	%{name} = %{version}

%description fo
This add-on package provides Faroese translation for
Squirrelmail.

%package fr
Summary:	French language files for SquirrelMail
Group:		System/Servers
Requires:	locales-fr
Requires:	%{name} = %{version}

%description fr
This add-on package provides French translation for
Squirrelmail.

%package fy
Summary:	Frisian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-fy
Requires:	%{name} = %{version}

%description fy
This add-on package provides Frisian translation for
Squirrelmail.

%package he
Summary:	Hebrew language files for SquirrelMail
Group:		System/Servers
Requires:	locales-he
Requires:	%{name} = %{version}

%description he
This add-on package provides Hebrew translation for
Squirrelmail.

%package hr
Summary:	Croatian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-hr
Requires:	%{name} = %{version}

%description hr
This add-on package provides Croatian translation for
Squirrelmail.

%package hu
Summary:	Hungarian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-hu
Requires:	%{name} = %{version}

%description hu
This add-on package provides Hungarian translation for
Squirrelmail.

%package id
Summary:	Indonesian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-id
Requires:	%{name} = %{version}

%description id
This add-on package provides Indonesian translation for
Squirrelmail.

%package is
Summary:	Icelandic language files for SquirrelMail
Group:		System/Servers
Requires:	locales-is
Requires:	%{name} = %{version}

%description is
This add-on package provides Icelandic translation for
Squirrelmail.

%package it
Summary:	Italian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-it
Requires:	%{name} = %{version}

%description it
This add-on package provides Italian translation for
Squirrelmail.

%package ja
Summary:	Japanese language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ja
Requires:	%{name} = %{version}

%description ja
This add-on package provides Japanese translation for
Squirrelmail.

%package	ko
Summary:	Korean language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ko
Requires:	%{name} = %{version}

%description ko
This add-on package provides Korean translation for
Squirrelmail.

%package lt
Summary:	Lithuanian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-lt
Requires:	%{name} = %{version}

%description lt
This add-on package provides Lithuanian translation for
Squirrelmail.

%package ms
Summary:	Bahasa Melayu language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ms
Requires:	%{name} = %{version}

%description ms
This add-on package provides Bahasa Melayu translation for
Squirrelmail.

%package nb
Summary:	Norwegian Bokmal language files for SquirrelMail
Group:		System/Servers
Requires:	locales-nb
Requires:	%{name} = %{version}

%description nb
This add-on package provides Norwegian Bokmal translation for
Squirrelmail.

%package nl
Summary:	Dutch language files for SquirrelMail
Group:		System/Servers
Requires:	locales-nl
Requires:	%{name} = %{version}

%description nl
This add-on package provides Dutch translation for
Squirrelmail.

%package nn
Summary:	Norwegian Nynorsk language files for SquirrelMail
Group:		System/Servers
Requires:	locales-nn
Requires:	%{name} = %{version}

%description nn
This add-on package provides Norwegian Nynorsk translation for
Squirrelmail.

%package pl
Summary:	Polish language files for SquirrelMail
Group:		System/Servers
Requires:	locales-pl
Requires:	%{name} = %{version}

%description pl
This add-on package provides Polish translation for
Squirrelmail.

%package pt
Summary:	Portuguese and Brazilian Portuguese language files for SquirrelMail
Group:		System/Servers
Requires:	locales-pt
Requires:	%{name} = %{version}
Provides:	%{name}-pt_BR = %{version}

%description pt
This add-on package provides Portuguese and Brazilian Portuguese translation
for Squirrelmail.

%package ro
Summary:	Romanian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ro
Requires:	%{name} = %{version}

%description ro
This add-on package provides Romanian translation for
Squirrelmail.

%package ru
Summary:	Russian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ru
Requires:	%{name} = %{version}

%description ru
This add-on package provides Russian translation for
Squirrelmail.

%package sk
Summary:	Slovak language files for SquirrelMail
Group:		System/Servers
Requires:	locales-sk
Requires:	%{name} = %{version}

%description sk
This add-on package provides Slovak translation for
Squirrelmail.

%package sl
Summary:	Slovenian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-sl
Requires:	%{name} = %{version}

%description sl
This add-on package provides Slovenian translation for
Squirrelmail.

%package sr
Summary:	Serbian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-sr
Requires:	%{name} = %{version}

%description sr
This add-on package provides Serbian translation for
Squirrelmail.

%package sv
Summary:	Swedish language files for SquirrelMail
Group:		System/Servers
Requires:	locales-sv
Requires:	%{name} = %{version}

%description sv
This add-on package provides Swedish translation for
Squirrelmail.

%package th
Summary:	Thai language files for SquirrelMail
Group:		System/Servers
Requires:	locales-th
Requires:	%{name} = %{version}

%description th
This add-on package provides Thai translation for
Squirrelmail.

%package tr
Summary:	Turkish language files for SquirrelMail
Group:		System/Servers
Requires:	locales-tr
Requires:	%{name} = %{version}

%description tr
This add-on package provides Turkish translation for
Squirrelmail.

%package ug
Summary:	Uighur language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ug
Requires:	%{name} = %{version}

%description ug
This add-on package provides Uighur translation for
Squirrelmail.

%package uk
Summary:	Ukrainian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-uk
Requires:	%{name} = %{version}

%description uk
This add-on package provides Ukrainian translation for
Squirrelmail.

%package vi
Summary:	Vietnamese language files for SquirrelMail
Group:		System/Servers
Requires:	locales-vi
Requires:	%{name} = %{version}

%description vi
This add-on package provides Vietnamese translation for
Squirrelmail.

%package zh_CN
Summary:	Chinese Simplified language files for SquirrelMail
Group:		System/Servers
Requires:	locales-zh
Requires:	%{name} = %{version}

%description zh_CN
This add-on package provides Chinese Simplified translation for
Squirrelmail.

%package zh_TW
Summary:	Chinese Traditional language files for SquirrelMail
Group:		System/Servers
Requires:	locales-zh
Requires:	%{name} = %{version}

%description zh_TW
This add-on package provides Chinese Traditional translation for
Squirrelmail.

%package ka
Summary:	Georgian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ka
Requires:	%{name} = %{version}

%description ka
This add-on package provides Georgian translation for
Squirrelmail.

%package km
Summary:	Khmer language files for SquirrelMail
Group:		System/Servers
Requires:	locales-km
Requires:	%{name} = %{version}

%description km
This add-on package provides Khmer translation for
Squirrelmail.

%package lv
Summary:	Latvian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-lv
Requires:	%{name} = %{version}

%description lv
This add-on package provides Latvian translation for
Squirrelmail.

%package mk
Summary:	Macedonian language files for SquirrelMail
Group:		System/Servers
Requires:	locales-mk
Requires:	%{name} = %{version}

%description mk
This add-on package provides Macedonian translation for
Squirrelmail.

%package ta
Summary:	Tamil language files for SquirrelMail
Group:		System/Servers
Requires:	locales-ta
Requires:	%{name} = %{version}

%description ta
This add-on package provides Tamil translation for
Squirrelmail.

%prep

#setup -q -n %{name}-webmail-%{version} -a1
%setup -q -n squirrelmail -a1

for i in `find . -type d -name .svn`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%patch0 -p0
%patch7 -p1
%patch8 -p1
%patch12 -p1
%patch14 -p0
%patch17 -p0
%patch18 -p0

rm -f plugins/make_archive.pl

# branding :)
install -m0644 %{SOURCE100} images/rosa.png
%patch19 -p0

%patch20 -p1
%patch50 -p0
%patch51 -p0

# hard code the path to the core config files

find . -type f|xargs perl -pi -e "s|SM_PATH \. \'config/config\.php\'|\'%{etcdir}/config\.php\'|g; \
    s|SM_PATH \. \"config/config\.php\"|\'%{etcdir}/config\.php\'|g; \
    s|\'config/config\.php\'|\'%{etcdir}/config\.php\'|g; \
    s|\.\./config/config\.php|%{etcdir}/config\.php|g; \
    s|SM_PATH \. \'config/config_default\.php\'|\'%{etcdir}/config_default\.php\'|g; \
    s|SM_PATH \. \'config/config_local\.php\'|\'%{etcdir}/config_local\.php\'|g"

perl -pi -e "s|config/config\.php|%{etcdir}/config\.php|g; \
    s|\"config\.php\"|\"%{etcdir}/config\.php\"|g; \
    s|\"config_default\.php\"|\"%{etcdir}/config_default\.php\"|g; \
    s|\"config_local\.php\"|\"%{etcdir}/config_local\.php\"|g; \
    s|\.\./plugins|%{basedir}/plugins|g; \
    s|\.\./themes|%{basedir}/themes|g; \
    s|\>config\.php|\>%{etcdir}/config\.php|g" config/conf.pl

# hard code the path to the plugins config files

perl -pi -e "s|SM_PATH \. \'config/admins\'|\'%{pluginetc}/administrator-admins\'|g" plugins/administrator/*.php
perl -pi -e "s|SM_PATH \. \\\$SQSPELL_DIR \. \'sqspell_config\.php\'|\'%{pluginetc}/sqspell_config\.php\'|g" plugins/squirrelspell/*.php


if [ -d plugins/address_add ]; then
    echo "address_add plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE3}
	# Do not use chmod -R 644, otherwise you can't chdir to the
	# directory anymore
	chmod 644 address_add/*.php address_add/classes/*.php address_add/README
    popd
fi

if [ -d plugins/block_sender ]; then
    echo "block_sender plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE4}
	chmod 755 block_sender
	find block_sender -type f -print | xargs chmod 644
	perl -pi -e 's|data_dir \. \$username|data_dir ."/". \$username|;' block_sender/*.php
    popd
fi

if [ -d plugins/login_image ]; then
    echo "login_image plugin already present"
    sleep 360
else
    pushd plugins; tar -jxf %{SOURCE5}; chmod 0644 login_image/*.php; popd
fi
%patch5 -p0


if [ -d plugins/secure_login ]; then
    echo "secure_login plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE6}
    popd
fi
pushd plugins/secure_login
    cp -f config.sample.php config.php
popd
%patch6 -p0
perl -pi -e "s|SM_PATH \. \'plugins/secure_login/config\.php\'|\'%{pluginetc}/secure_login_config\.php\'|g" plugins/secure_login/*.php
perl -pi -e "s|\'\.\./plugins/secure_login/config\.php\'|\'%{pluginetc}/secure_login_config\.php\'|g" plugins/secure_login/*.php

if [ -d plugins/compatibility ]; then
    echo "compatibility plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE7}
    popd
    cat plugins/compatibility/patches/compatibility_patch-1.4.11.diff | patch -p2
    rm -rf plugins/compatibility/patches plugins/compatibility/patches.old
    rm -f plugins/compatibility/COPYING plugins/compatibility/make_release.sh plugins/compatibility/getpot
fi

if [ -d plugins/change_pass ]; then
    echo "change_pass plugin already present"
    sleep 360
else
    pushd plugins
	tar -zxf %{SOURCE8}
	pushd change_pass
%patch2 -p0
	    perl -pi -e "s|SM_PATH \. \'plugins/change_pass/config.php\'|\'%{pluginetc}/change_pass_settings.php\'|g" *.php
	popd
    popd
fi

if [ -d plugins/quota_usage ]; then
    echo "quota_usage plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE9}
	cp -f quota_usage/config.php.sample quota_usage/config.php
	rm -f quota_usage/screen.jpg quota_usage/getpot
    popd
perl -pi -e "s|SM_PATH \. \'plugins/quota_usage/config.php\'|\'%{pluginetc}/quota_usage_config.php\'|g" plugins/quota_usage/*.php
fi

if [ -d plugins/change_ldappass ]; then
    echo "change_ldappass plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE10}
    popd
    pushd plugins/change_ldappass
%patch10 -p0
	cp -f config_sample.php config.php
	perl -pi -e "s|SM_PATH \. \'config/config\.php\'|\'%{etcdir}/config\.php\'|g; \
	    s|\"\.\./plugins/change_ldappass/config\.php\"|\'%{pluginetc}/change_ldappass_config\.php\'|g" *.php
    popd
fi

if [ -d plugins/avelsieve ]; then
    echo "avelsieve plugin already present"
    sleep 360
else
    pushd plugins
	tar -zxf %{SOURCE11}
    popd
fi
pushd plugins/avelsieve
%patch11 -p0
    cp -f config/config_sample.php config/config.php
    rm -rf po
    perl -pi -e "s|^include \"config\.php\"\;|include \'%{pluginetc}/avelsieve_config\.php\'\;|g; \
	s|SM_PATH \. \'plugins/avelsieve/config/rule|\'%{pluginetc}/avelsieve_rules|g; \
	s|SM_PATH \. \'plugins/avelsieve/config/config\.php\'|\'%{pluginetc}/avelsieve_config\.php\'|g; \
	s|SM_PATH \. \'plugins/junkfolder/config\.php\'|\'%{pluginetc}/junkfolder_config\.php\'|g" *.php include/*.php config/*.php
popd

if [ -d plugins/windows ]; then
    echo "windows plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE12}
    popd
fi
pushd plugins/windows
    rm -f *.diff
popd

if [ -d plugins/folder_sizes ]; then
    echo "folder_sizes plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE13}
    popd
perl -pi -e "s|SM_PATH \. \"/plugins/folder_sizes/folder_sizes_config\.php\"|\'%{pluginetc}/folder_sizes_config\.php\'|g" plugins/folder_sizes/*.php
fi

if [ -d plugins/archive_mail ]; then
    echo "archive_mail plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE14}
    popd
fi

if [ -d plugins/empty_folders ]; then
    echo "empty_folders plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE15}
    popd
fi

pushd plugins/empty_folders
    cp -f config_example.php config.php
    rm -f empty_folder.php.old getpot make_release.sh
    rm -rf patches
    perl -pi -e "s|\'config\.php\'|\'%{pluginetc}/empty_folders_config\.php\'|g" *.php
popd

if [ -d plugins/abook_import_export ]; then
    echo "abook_import_export plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE16}
    popd
perl -pi -e "s|SM_PATH \. \'plugins/abook_import_export/config_default\.php\'|\'%{pluginetc}/abook_import_export_config\.php\'|g" plugins/abook_import_export/*.php
fi

if [ -d plugins/ldifimport ]; then
    echo "ldifimport plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE17}
    popd
perl -pi -e "s|\'config.php\'|\'%{pluginetc}/ldifimport_config\.php\'|g" plugins/ldifimport/*php
fi

if [ -d plugins/username ]; then
    echo "username plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE18}
    popd
fi

pushd plugins/username
    cp -f config.php.sample config.php
    perl -pi -e "s|SM_PATH \. \'plugins/username/config\.php\'|\'%{pluginetc}/username_config\.php\'|g; \
	s|\.\./plugins/username/config\.php|%{pluginetc}/username_config\.php|g" *.php
popd

if [ -d plugins/bookmarks ]; then
    echo "bookmarks plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE19}
    popd
fi

pushd plugins/bookmarks
    cp -f bookmarks_data_text.php bookmarks_data.php
    chmod 644 *
popd

if [ -d plugins/select_range ]; then
    echo "select_range plugin already present"
    sleep 360
else
    pushd plugins
        tar -zxf %{SOURCE20}
    popd
fi

pushd plugins/select_range
    cp -p config_example.php config.php
    rm -rf patch
    perl -pi -e "s|SM_PATH \. \'plugins/select_range/config\.php\'|\'%{pluginetc}/select_range_config\.php\'|g" *.php
popd

if [ -d plugins/rewrap ]; then
    echo "rewrap plugin already present"
    sleep 360
else
    pushd plugins
        tar -jxf %{SOURCE21}
    popd
fi

pushd plugins/rewrap
    rm -f getpot make_release.sh rewrap.pot
popd

if [ -d plugins/spam_buttons ]; then
    echo "spam_buttons plugin already present"
    sleep 360
else
    pushd plugins
	tar -zxf %{SOURCE22}
    popd
fi

pushd plugins/spam_buttons
    cp -p config_example.php config.php
    rm -f getpot
    perl -pi -e "s|\'\.\.\/\.\.\/config\/config_spam_buttons\.php\'|\'%{pluginetc}/spam_buttons_config\.php\'|g" functions.php
popd

if [ -d plugins/spamassassin ]; then
    echo "spamassassin plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxvf %{SOURCE23}
	mv SquirrelSAP*/spamassassin .
	mv SquirrelSAP*/ReadMe_SquirrelSAP spamassassin/
	perl -pi -e "s|\r|\n|g" spamassassin/config.php
	perl -pi -e "s|\r|\n|g" spamassassin/options.php
	perl -pi -e "s|\r|\n|g" spamassassin/spamassassin.php
	rm -rf SquirrelSAP*
    popd
perl -pi -e "s|SM_PATH \. \'plugins/spamassassin/config\.php\'|\'%{pluginetc}/spamassassin_config\.php\'|g" plugins/spamassassin/*.php
perl -pi -e "s|define\(\'SM_PATH\', \'\.\./\.\./\'\)\;||g" plugins/spamassassin/setup.php

fi

if [ -d plugins/junkfolder ]; then
    echo "junkfolder plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE24}
    popd
fi

pushd plugins/junkfolder
    rm -f po/xgetpo
    perl -pi -e "s|SM_PATH \. \'plugins/junkfolder/config\.php\'|\'%{pluginetc}/junkfolder_config\.php\'|g" config.php
popd

# Don't enable SPAM RBL by default
pushd plugins/filters
%patch13 -p0
popd

# javascript_libs is required/recommended by avelsieve-1.9.8
if [ -d plugins/javascript_libs ]; then
    echo "javascript_libs plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE26}
    popd
fi

pushd plugins/javascript_libs
    perl -pi -e "s|SM_PATH \. \'plugins/javascript_libs/config\.php\'|\'%{pluginetc}/javascript_libs_config\.php\'|g" *.php
    perl -pi -e "s|^#\!/usr/bin/php5|#\!/usr/bin/php|g" minify_offline.php
popd

if [ -d plugins/yubikey ]; then
    echo "yubikey plugin already present"
    sleep 360
else
    pushd plugins
	tar -jxf %{SOURCE27}
    popd
fi

pushd plugins/yubikey
    rm -f getpot yubikey.pot
    perl -pi -e "s|SM_PATH \. \'config/config_yubikey\.php\'|\'%{pluginetc}/yubikey_glogal_config\.php\'|g" *.php
    perl -pi -e "s|SM_PATH \. \'plugins/yubikey/config\.php\'|\'%{pluginetc}/yubikey_config\.php\'|g" *.php
popd

# Rearrange the documentation
mv README doc/
mv themes/README.themes doc/

for f in `find plugins -name "README*" -or -name INSTALL -or -name CHANGES \
    -or -name HISTORY -or -name CHANGELOG -or -name ChangeLog -or -name FAQ`; do
    mkdir -p doc/`dirname $f`
    mv $f $_
done

# cleanup
for f in `find plugins -name COPYING -or -name LICENSE`; do
    rm -f $f
done

#mv doc/plugins/squirrelspell/doc/README doc/plugins/squirrelspell
#rmdir doc/plugins/squirrelspell/doc
mv plugins/squirrelspell/doc/* doc/plugins/squirrelspell
rm -f doc/plugins/squirrelspell/index.php
rmdir plugins/squirrelspell/doc
mv doc/index.html doc/index2.html

cat << EOF > doc/index.html
Your squirrelmail package is installed in <a href=/squirrelmail/>%{basedir}</a>, and is aliased to <a href=/webmail>/webmail</a>.
<p>
<a href=index2.html>Read documentation</a>
EOF

# Fixup various files
echo "left_refresh=300" >> data/default_pref
%patch1 -p0 -b .oldconf
for f in contrib/RPM/squirrelmail.cron contrib/RPM/config.php.redhat; do
    perl -pi -e "s|__ATTDIR__|%{attdir}|g;s|__PREFSDIR__|%{prefsdir}|g;" $f
done

pushd plugins/mail_fetch
    cp -f config_example.php mail_fetch_config.php
    perl -pi -e "s|SM_PATH \. \'plugins/mail_fetch/config\.php\'|\'%{pluginetc}/mail_fetch_config\.php\'|g" *.php
popd

cp %{SOURCE2} doc/RPM.readme

%install
export DONT_RELINK=1

install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
install -d %{buildroot}%{_sysconfdir}/httpd/conf.d
install -d %{buildroot}%{etcdir}
install -d %{buildroot}%{prefsdir}
install -d %{buildroot}%{attdir}
install -d %{buildroot}%{basedir}
install -d %{buildroot}%{crondir}
install -d %{buildroot}%{_sbindir}/

# install default_pref
install -m 0644 data/default_pref %{buildroot}%{prefsdir}

# install the config files
install -m0644 config/config*.php %{buildroot}%{etcdir}/
install -m0644 contrib/RPM/config.php.redhat %{buildroot}%{etcdir}/config.php
install -m0750 config/conf.pl %{buildroot}%{_sbindir}/squirrelmail-conf

# install index.php
install -m0644 index.php %{buildroot}%{basedir}/

# install classes
install -d -m0755 %{buildroot}%{basedir}/class
cp -pr class %{buildroot}%{basedir}

# install include
install -d -m0755 %{buildroot}%{basedir}/include
cp -pr include %{buildroot}%{basedir}

# install functions
install -d -m0755 %{buildroot}%{basedir}/functions/decode
install -d -m0755 %{buildroot}%{basedir}/functions/encode
install -m 0644 functions/*.php %{buildroot}%{basedir}/functions/
install -m 0644 functions/decode/*.php %{buildroot}%{basedir}/functions/decode
install -m 0644 functions/encode/*.php %{buildroot}%{basedir}/functions/encode

# install src
install -d -m0755 %{buildroot}%{basedir}/src
install -m 0644 src/* %{buildroot}%{basedir}/src/

# install themes
install -d -m0755 %{buildroot}%{basedir}/themes
install -m 0644 themes/*.php %{buildroot}%{basedir}/themes/
install -d -m0755 %{buildroot}%{basedir}/themes/css
install -m 0644 themes/css/*.css %{buildroot}%{basedir}/themes/css/

# install images
install -d -m0755 %{buildroot}%{basedir}/images
install -m 0644 images/* %{buildroot}%{basedir}/images/

# install the plugins
cp -rp plugins %{buildroot}%{basedir}

# install the locales.
cp -rp locale %{buildroot}%{basedir}

# install help files
cp -rp help %{buildroot}%{basedir}

# po will go into the poutils package, so just copy it
cp -rp po %{buildroot}%{basedir}

# install the cron script
install -m 0755 contrib/RPM/squirrelmail.cron %{buildroot}/%{crondir}

install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# squirrelmail.conf

Alias /%{name} %{basedir}

<Directory %{basedir}>
    Require local granted
    ErrorDocument 403 "Access denied per %{_webappconfdir}/%{name}.conf"

    php_admin_value session.bug_compat_42 0
    # Otherwise can't send mails
    php_admin_value safe_mode 0
    # Misc
    php_flag register_globals	off
    # Other increased PHP parameters
    php_admin_value memory_limit    64M
    php_admin_value post_max_size   17M
    php_admin_value upload_max_filesize 16M
    php_admin_value max_execution_time 120
</Directory>
EOF


# Move plugin config files
mkdir -p %{buildroot}%{pluginetc}
mv %{buildroot}%{basedir}/plugins/avelsieve/config/config.php %{buildroot}%{pluginetc}/avelsieve_config.php

# fix rules
install -d %{buildroot}%{pluginetc}/avelsieve_rules
mv %{buildroot}%{basedir}/plugins/avelsieve/config/rule.*.default.php %{buildroot}%{pluginetc}/avelsieve_rules/

mv %{buildroot}%{basedir}/plugins/change_ldappass/config.php %{buildroot}%{pluginetc}/change_ldappass_config.php
mv %{buildroot}%{basedir}/plugins/change_pass/config_example.php %{buildroot}%{pluginetc}/change_pass_config.php
mv %{buildroot}%{basedir}/plugins/empty_folders/config.php %{buildroot}%{pluginetc}/empty_folders_config.php
#mv %{buildroot}%{basedir}/plugins/folder_sizes/folder_sizes_config.php %{buildroot}%{pluginetc}/folder_sizes_config.php
mv %{buildroot}%{basedir}/plugins/ldifimport/config.php %{buildroot}%{pluginetc}/ldifimport_config.php
mv %{buildroot}%{basedir}/plugins/quota_usage/config.php %{buildroot}%{pluginetc}/quota_usage_config.php
mv %{buildroot}%{basedir}/plugins/secure_login/config.php %{buildroot}%{pluginetc}/secure_login_config.php
mv %{buildroot}%{basedir}/plugins/squirrelspell/sqspell_config.php %{buildroot}%{pluginetc}/sqspell_config.php
mv %{buildroot}%{basedir}/plugins/username/config.php %{buildroot}%{pluginetc}/username_config.php
mv %{buildroot}%{basedir}/plugins/select_range/config.php %{buildroot}%{pluginetc}/select_range_config.php
mv %{buildroot}%{basedir}/plugins/spam_buttons/config.php %{buildroot}%{pluginetc}/spam_buttons_config.php
mv %{buildroot}%{basedir}/plugins/spamassassin/config.php %{buildroot}%{pluginetc}/spamassassin_config.php
mv %{buildroot}%{basedir}/plugins/junkfolder/config.php %{buildroot}%{pluginetc}/junkfolder_config.php
mv %{buildroot}%{basedir}/plugins/abook_import_export/config_default.php %{buildroot}%{pluginetc}/abook_import_export_config.php
mv %{buildroot}%{basedir}/plugins/javascript_libs/config.php %{buildroot}%{pluginetc}/javascript_libs_config.php
mv %{buildroot}%{basedir}/plugins/yubikey/config_example.php %{buildroot}%{pluginetc}/yubikey_config.php
cp %{buildroot}%{pluginetc}/yubikey_config.php %{buildroot}%{pluginetc}/yubikey_glogal_config.php
mv %{buildroot}%{basedir}/plugins/mail_fetch/mail_fetch_config.php %{buildroot}%{pluginetc}/mail_fetch_config.php

# wrong locale name, would never be used, and it is duplicated with a
# correct name (just "pl")
rm -rf %{buildroot}%{basedir}/plugins/change_ldappass/locale/PL_pl

# make some po file lists
find %{buildroot} -type f -name "*.po" | sed -e 's|^%{buildroot}|%%exclude |' > exclude_pofiles.list
find %{buildroot} -type f -name "*.po" | sed -e 's|^%{buildroot}||' > pofiles.list
find %{buildroot} -type f -name "*.mo" | sed -e 's|^%{buildroot}||' > mofiles.list

ls -1d locale/*/|sed -e 's/locale\///'|sed -e 's/\///'> LOCALES

# add some extra locales here
cat >> LOCALES << EOF
th_TH
uk_UA
vi_VN
EOF

for i in `cat LOCALES`; do
    grep "/${i}/" mofiles.list > ${i}.list
    if [ -d help/${i} ]; then echo "%{basedir}/help/${i}" >> ${i}.list; fi
    if [ -f images/sec_remove_${i}.png ]; then echo "%{basedir}/images/sec_remove_${i}.png" >> ${i}.list; fi
    if [ -f locale/${i}/setup.php ]; then echo "%{basedir}/locale/${i}/setup.php" >> ${i}.list; fi
done

#  merge the pt and pt_BR packages as locales-pt includes locales-pt_BR but does not provide
cat pt_BR.list >> pt_PT.list

# nuke unwanted files
rm -rf contrib/RPM
find %{buildroot} -name "\.htaccess" | xargs rm -f

install -d %{buildroot}%{basedir}/conf
install -m0750 %{SOURCE25} %{buildroot}%{basedir}/conf/conf.pl

mv doc/ReleaseNotes doc/ReleaseNotes.txt

# cleanup
rm -f %{buildroot}%{basedir}/plugins/address_add/locale/he_HE/LC_MESSAGES/address_add.mo
rm -f %{buildroot}%{basedir}/plugins/address_add/locale/compileall.pl
rm -f %{buildroot}%{basedir}/plugins/address_add/locale/index.php
rm -f %{buildroot}%{basedir}/plugins/address_add/locale/no_NO/LC_MESSAGES/address_add.mo
rm -f %{buildroot}%{basedir}/plugins/change_ldappass/locale/no_NO/LC_MESSAGES/change_ldappass.mo

%post
# Put correct hostname in config. We do this every time, since we change the
# .rpmnew as well. This is safe even if someone already modified the config,
# because the script will not find __HOSTNAME__ in the file and will do
# nothing.
for f in %{etcdir}/config.php %{etcdir}/config.php.rpmnew \
    %{pluginetc}/avelsieve_config.php %{basedir}/plugins/avelsieve/addrule_html.php; do
    perl -pi -e "s|__HOSTNAME__|$HOSTNAME|g" $f 2>/dev/null
done

# Upgrade the configuration file using ccp if needed
# --ifexists makes sure it doesn't do anything (or whine/return nonzero)
# --ignoreopt config_version makes sure the config_version in config.php.rpmnew is kept
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{etcdir}/config.php --newfile %{etcdir}/config.php.rpmnew

# try to fix the plugins config too
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/avelsieve_config.php --newfile %{pluginetc}/avelsieve_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/change_ldappass_config.php --newfile %{pluginetc}/change_ldappass_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/change_pass_config.php --newfile %{pluginetc}/change_pass_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/empty_folders_config.php --newfile %{pluginetc}/empty_folders_config.php.rpmnew
#ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/folder_sizes_config.php --newfile %{pluginetc}/folder_sizes_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/ldifimport_config.php --newfile %{pluginetc}/ldifimport_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/quota_usage_config.php --newfile %{pluginetc}/quota_usage_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/secure_login_config.php --newfile %{pluginetc}/secure_login_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/select_range_config.php --newfile %{pluginetc}/select_range_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/spamassassin_config.php --newfile %{pluginetc}/spamassassin_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/spam_buttons_config.php --newfile %{pluginetc}/spam_buttons_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/sqspell_config.php --newfile %{pluginetc}/sqspell_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/username_config.php --newfile %{pluginetc}/username_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/junkfolder_config.php --newfile %{pluginetc}/junkfolder_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/abook_import_export_config.php --newfile %{pluginetc}/abook_import_export_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/javascript_libs_config.php --newfile %{pluginetc}/javascript_libs_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/yubikey_config.php --newfile %{pluginetc}/yubikey_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/yubikey_glogal_config.php --newfile %{pluginetc}/yubikey_glogal_config.php.rpmnew
ccp --delete --ifexists --set "NoOrphans" --ignoreopt config_version --oldfile %{pluginetc}/mail_fetch_config.php --newfile %{pluginetc}/mail_fetch_config.php.rpmnew


%files -f exclude_pofiles.list
%doc doc/* contrib
%config(noreplace) %{_webappconfdir}/%{name}.conf
%dir %{etcdir}
%attr(0644,root,root) %config(noreplace) %{etcdir}/config.php
%attr(0644,root,root) %config(noreplace) %{etcdir}/config_default.php
%attr(0644,root,root) %config(noreplace) %{etcdir}/config_local.php
%dir %{pluginetc}
%attr(0644,root,root) %config(noreplace) %{pluginetc}/avelsieve_config.php
%attr(0755,root,apache) %dir %{pluginetc}/avelsieve_rules
%attr(0644,root,root) %config(noreplace) %{pluginetc}/avelsieve_rules/rule.*.default.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/change_ldappass_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/change_pass_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/empty_folders_config.php
#%attr(0644,root,root) %config(noreplace) %{pluginetc}/folder_sizes_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/ldifimport_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/quota_usage_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/secure_login_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/select_range_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/spamassassin_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/spam_buttons_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/sqspell_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/username_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/junkfolder_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/abook_import_export_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/javascript_libs_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/yubikey_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/yubikey_glogal_config.php
%attr(0644,root,root) %config(noreplace) %{pluginetc}/mail_fetch_config.php
%dir %{basedir}
%dir %{varlibdir}
%dir %{varspooldir}
%dir %{basedir}/conf
%dir %{basedir}/help
%dir %{basedir}/images
%dir %{basedir}/locale
%dir %{basedir}/plugins
%{basedir}/class
%{basedir}/functions
%{basedir}/help/en_US
%{basedir}/help/index.php
%{basedir}/locale/timezones.cfg
%{basedir}/locale/index.php
%{basedir}/locale/README.locales
%{basedir}/images/blank.png
%{basedir}/images/delitem.png
%{basedir}/images/down_pointer.png
%{basedir}/images/draft.png
%{basedir}/images/folder.png
%{basedir}/images/inbox.png
%{basedir}/images/index.php
%{basedir}/images/minus.png
%{basedir}/images/plus.png
%{basedir}/images/sec_remove_eng.png
%{basedir}/images/senti.png
%{basedir}/images/sm_logo.png
%{basedir}/images/sort_none.png
%{basedir}/images/up_pointer.png
%{basedir}/images/rosa.png
%{basedir}/include
%exclude %{basedir}/plugins/address_add/locale
%exclude %{basedir}/plugins/avelsieve/locale
%exclude %{basedir}/plugins/change_ldappass/locale
%exclude %{basedir}/plugins/junkfolder/locale/el_GR/LC_MESSAGES/junkfolder.mo
%exclude %{basedir}/plugins/quota_usage/locale/it_IT/LC_MESSAGES/quota_usage.mo
%{basedir}/plugins/index.php
# bundled plugins
%{basedir}/plugins/administrator
%{basedir}/plugins/bug_report
%{basedir}/plugins/calendar
%{basedir}/plugins/delete_move_next
%{basedir}/plugins/demo
%{basedir}/plugins/filters
%{basedir}/plugins/fortune
%{basedir}/plugins/info
%{basedir}/plugins/listcommands
%{basedir}/plugins/mail_fetch
%{basedir}/plugins/message_details
%{basedir}/plugins/newmail
%{basedir}/plugins/sent_subfolders
%{basedir}/plugins/spamcop
%{basedir}/plugins/squirrelspell
%{basedir}/plugins/test
%{basedir}/plugins/translate
# added plugins
%{basedir}/plugins/abook_import_export
%{basedir}/plugins/address_add
%{basedir}/plugins/archive_mail
%{basedir}/plugins/avelsieve
%{basedir}/plugins/block_sender
%{basedir}/plugins/bookmarks
%{basedir}/plugins/change_ldappass
%{basedir}/plugins/change_pass
%{basedir}/plugins/compatibility
%{basedir}/plugins/empty_folders
%{basedir}/plugins/folder_sizes
%{basedir}/plugins/ldifimport
%{basedir}/plugins/login_image
%{basedir}/plugins/quota_usage
%{basedir}/plugins/rewrap
%{basedir}/plugins/secure_login
%{basedir}/plugins/select_range
%{basedir}/plugins/spamassassin
%{basedir}/plugins/spam_buttons
%{basedir}/plugins/username
%{basedir}/plugins/windows
%{basedir}/plugins/junkfolder
%{basedir}/plugins/javascript_libs
%{basedir}/plugins/yubikey
%{basedir}/src
%{basedir}/themes
%{basedir}/index.php
%attr(0750,root,root) %{_sbindir}/squirrelmail-conf
%attr(0750,root,root) %{basedir}/conf/conf.pl
%attr(0770,root,apache) %dir %{prefsdir}
%attr(0730,root,apache) %dir %{attdir}
%{prefsdir}/default_pref
%{crondir}/squirrelmail.cron

%files poutils -f pofiles.list
%{basedir}/po

%files cyrus

%files ar -f ar.list

%files bg -f bg_BG.list

%files bn-india -f bn_IN.list

%files bn-bangladesh -f bn_BD.list

%files ca -f ca_ES.list

%files cs -f cs_CZ.list

%files cy -f cy_GB.list

%files da -f da_DK.list

%files de -f de_DE.list

%files el -f el_GR.list

%files es -f es_ES.list

%files et -f et_EE.list

%files eu -f eu_ES.list

%files fa -f fa_IR.list

%files fi -f fi_FI.list

%files fo -f fo_FO.list

%files fr -f fr_FR.list

%files fy -f fy.list

%files he -f he_IL.list

%files hr -f hr_HR.list

%files hu -f hu_HU.list

%files id -f id_ID.list

%files is -f is_IS.list

%files it -f it_IT.list

%files ja -f ja_JP.list

%files ko -f ko_KR.list

%files lt -f lt_LT.list

%files ms -f ms_MY.list

# "no" is a deprecated language code for "nb"
%files nb -f nb_NO.list

%files nl -f nl_NL.list

%files nn -f nn_NO.list

%files pl -f pl_PL.list

%files pt -f pt_PT.list

%files ro -f ro_RO.list

%files ru -f ru_RU.list

%files sk -f sk_SK.list

%files sl -f sl_SI.list

%files sr -f sr_YU.list

%files sv -f sv_SE.list

%files th -f th_TH.list

%files tr -f tr_TR.list

%files ug -f ug.list

%files uk -f uk_UA.list

%files vi -f vi_VN.list

%files zh_CN -f zh_CN.list

%files zh_TW -f zh_TW.list

%files ka -f ka.list

%files km -f km.list

%files lv -f lv_LV.list

%files mk -f mk.list

%files ta -f ta_LK.list

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8892 |21cr|srecord-1.65.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname %{name} -d

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Manipulate EPROM load files
Name:		srecord
Version:	1.65.0
Release:	1
License:	GPLv3+ and LGPLv3+
Group:		Development/Other
Url:		http://srecord.sourceforge.net/
Source0:	https://sourceforge.net/projects/srecord/files/srecord/%{url_ver}/srecord-%{version}-Source.tar.gz
Patch0:		srecord-cmake.patch
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	psutils
BuildRequires:	ghostscript
BuildRequires:	ghostscript-common
BuildRequires:	groff
BuildRequires:	cmake
BuildRequires:	pkgconfig(libgcrypt)

%description
The SRecord package is a collection of powerful tools for manipulating
EPROM load files.

- The SRecord package understands a number of file formats: Motorola
  S-Record, Intel, Tektronix, Binary.  These file formats may be read
  and written.  Also C array definitions, for output only.

- The SRecord package has a number of tools: srec_cat for copying and
  and converting files, srec_cmp for comparing files and srec_info for
  printing summaries.

- The SRecord package has a number for filters: checksum to add checksums
  to the data, crop to keep address ranges, exclude to remove address
  ranges, fill to plug holes in the data, length to insert the data
  length, maximum to insert the data address maximum, minimum to insert
  the data address minimum, offset to adjust addresses, and split for
  wide data buses and memory striping.

More than one filter may be applied to each input file.  Different filters
may be applied to each input file.  All filters may be applied to all
file formats.

%files
%doc %{_docdir}/srecord
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for SRecord
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.62
Obsoletes:	%{name}-devel < 1.62
Conflicts:	%{name} < 1.62

%description -n %{devname}
Development headers and libraries for developing applications against SRecord.

%files -n %{devname}
%{_includedir}/srecord/
%{_libdir}/liblib_srecord.a
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-Source

%build
%cmake
%make

%install
%makeinstall_std -C build

# cleanup
rm %{buildroot}%{_libdir}/*.so*
rm -r %{buildroot}%{_docdir}/srecord/htdocs/man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8893 |21cr|sreditor-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		sreditor
Version:	0.5
Release:	1
Summary:	Automatic Rule Editor for Scanners
Group:		System/Configuration/Printing
License:	GPLv3
URL:		https://github.com/AKotov-dev/sreditor
Source0:	https://github.com/AKotov-dev/sreditor/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	sreditor
Source2:	sreditor.png
Source3:	sreditor.desktop
Source4:	sreditor.policy
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	sane-backends
Requires:	gtk2


%description
SrEditor designed for automatically inserting rules for scanners
that are not in the lists of rules /etc/udev/rules.d/60-libsane.rules

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/%{name}.policy

#------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}/
cp -r ico %{buildroot}%{_datadir}/%{name}/
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp %{SOURCE4} %{buildroot}%{_datadir}/polkit-1/actions/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8894 |21cr|srm-1.2.15-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Secure rm - destroys file contents before unlinking
Name:		srm
Version:	1.2.15
Release:	4
License:	MIT
Group:		System/Base
Url:		http://srm.sourceforge.net
Source:		http://downloads.sourceforge.net/srm/%{name}-%{version}.tar.gz

%files
%attr(-, root, root) %{_bindir}/srm
%attr(0644,root,root) %{_mandir}/man1/*

#--------------------------------------------------------------

%description
This is srm, a secure replacement for rm(1). Unlike the standard rm,
it overwrites the data in the target files before unlinking them. This
prevents command-line recovery of the data by examining the raw block
device. It may also help frustrate physical examination of the disk,
although it's unlikely that completely protects against this type of
recovery.

%prep

%setup

%configure
%make

%build

%install
%makeinstall_std
rm -f %{buildroot}%{_bindir}/fill_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8895 |21cr|sshdfilter-1.5.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with logwatch

Summary:	SSH brute force attack blocker
Name:		sshdfilter
Version:	1.5.6
Release:	5
License:	GPLv2+
Group:		Monitoring
Url:		http://www.csc.liv.ac.uk/~greg/sshdfilter/
Source0:	http://www.csc.liv.ac.uk/~greg/sshdfilter-%{version}.tar.gz
Patch0:		sshdfilter-1.5.6-pod.patch
Requires(post,postun):	iptables
Requires(post,postun):	openssh-server
BuildArch:	noarch

%description
sshdfilter blocks the frequent brute force attacks on ssh daemons, it
does this by directly reading the sshd logging output and generating
iptables rules, the process can be quick enough to block an attack
before they get a chance to enter any password at all.

sshdfilter starts sshd itself, having started sshd with the -e and -D
options. This means it can see events as they happen. sshdfilter then
looks for lines of the form:

Did not receive identification string from x.x.x.x
Illegal user x from x.x.x.x
Failed password for illegal user x from x.x.x.x port x ssh2
Failed password for x from x.x.x.x port x ssh2

The former three instantly trigger sshdfilter into creating iptables
rules which block all ssh access from that IP. The latter failure is
given a few chances before it too is blocked. These are in fact example
rules, the exact wording varies between Linux distributions, so
sshdfilter exists as a base program and groups of patterns for each
distribution.

All new rules are inserted into a custom chain, and to prevent the chain
from becoming overloaded with old rules, rules over a week old are
deleted.

%files
%defattr(0644,root,root,0755)
%doc INSTALL todo
%attr(0755,root,root) %{_sbindir}/sshdfilter
%{_mandir}/man1/sshdfilter.1*
%{_mandir}/man5/sshdfilterrc.5*
%config(noreplace) %{_sysconfdir}/sshdfilterrc
%config(noreplace) %{_sysconfdir}/sysconfig/sshdfilter

%post
if [ -r %{_sysconfdir}/sysconfig/iptables ]; then
    perl -pi -e 's/.*SSHD.*\n//g' %{_sysconfdir}/sysconfig/iptables
    perl -pi -e 's/COMMIT\n//g' %{_sysconfdir}/sysconfig/iptables
    cat >> %{_sysconfdir}/sysconfig/iptables << EOF
:SSHD - [0:0]
-A INPUT -p tcp -m tcp --dport 22 -j SSHD
COMMIT
EOF
else
    cat > %{_sysconfdir}/sysconfig/iptables << EOF
*filter
:INPUT ACCEPT [835:105991]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [368:40879]
:SSHD - [0:0]
-A INPUT -p tcp -m tcp --dport 22 -j SSHD
COMMIT
EOF
fi
/sbin/service iptables condrestart
/sbin/service sshd condrestart

%postun
if [ -r %{_sysconfdir}/sysconfig/iptables ]; then
    perl -pi -e 's/.*SSHD.*\n//g' %{_sysconfdir}/sysconfig/iptables
fi
/sbin/service iptables condrestart
/sbin/service sshd condrestart

#----------------------------------------------------------------------------

%if %{with logwatch}
%package logwatch
Summary:	Logwatch scripts for sshdfilter
Group:		Monitoring
Requires:	%{name} = %{EVRD}
Requires(post,postun):	logwatch

%description logwatch
Logwatch scripts for sshdfilter.

%files logwatch
%defattr(0644,root,root,0755)
%config(noreplace) %{_sysconfdir}/log.d/conf/services/sshdfilt.conf
%attr(0755,root,root) %{_sysconfdir}/log.d/scripts/services/sshdfilt

%post logwatch
perl -pi -e 's/ sshdfilt//g'%{_sysconfdir}/log.d/conf/services/secure.conf
perl -pi -e 's/ sshd/ sshd sshdfilt/g' %{_sysconfdir}/log.d/conf/services/secure.conf

%postun logwatch
perl -pi -e 's/ sshdfilt//g' %{_sysconfdir}/log.d/conf/services/secure.conf

%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}
cat etc/sshdfilterrc patterns/rhFC30.partconf > %{buildroot}%{_sysconfdir}/sshdfilterrc

mkdir -p %{buildroot}%{_sbindir}
cp -a source/sshdfilter.pl %{buildroot}%{_sbindir}/sshdfilter

(cd man; sh ./pod2man.sh)
mkdir -p %{buildroot}%{_mandir}/man1
cp -a man/sshdfilter.1 %{buildroot}%{_mandir}/man1/sshdfilter.1
mkdir -p %{buildroot}%{_mandir}/man5
cp -a man/sshdfilterrc.5 %{buildroot}%{_mandir}/man5/sshdfilterrc.5

%if %{with logwatch}
mkdir -p %{buildroot}%{_sysconfdir}/log.d/{conf,scripts}/services
install -m 644 etc/log.d/conf/services/sshdfilt.conf %{buildroot}%{_sysconfdir}/log.d/conf/services/sshdfilt.conf
install -m 644 etc/log.d/scripts/services/sshdfilt %{buildroot}%{_sysconfdir}/log.d/scripts/services/sshdfilt
%endif

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
cat > %{buildroot}%{_sysconfdir}/sysconfig/sshdfilter << EOF
USE_SSHDFILTER_DEFAULT="no"
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8896 |21cr|sshproxy-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		sshproxy
Version:	0.2
Release:	1
Summary:	GUI for connecting to an external proxy through an SSH tunnel
Group:		Networking/Remote access
License:	GPLv3+
URL:		https://github.com/AKotov-dev/SSHProxy
Source0:	https://github.com/AKotov-dev/SSHProxy/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	sshproxy.service
Source2:	sshproxy.png
Source3:	sshproxy.desktop
BuildRequires:	lazarus
Requires:	openssh-clients
Requires:	sshpass
Requires:	systemd
Requires:	gtk2

%description
GUI for connecting to an external proxy through an SSH tunnel (port forwarding, encryption)

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_userunitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service
#-----------------------------------------------------------------------------------------
%prep
%setup -n SSHProxy-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_userunitdir}

cp usr/bin/%{name} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp %{SOURCE1} %{buildroot}%{_userunitdir}/
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8897 |21cr|sshuttle-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:            Transparent Proxy VPN
Name:               sshuttle
License:            LGPLv2+
Group:              Networking/Other
Version:            1.1.1
Release:            1
Url:                https://github.com/sshuttle/sshuttle
#Source0:            https://files.pythonhosted.org/packages/source/s/%{name}/%{name}-%{version}.tar.gz
Source0:            https://github.com/sshuttle/sshuttle/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:          noarch

BuildRequires:      make
BuildRequires:      python3-devel
BuildRequires:      python3-setuptools
BuildRequires:      python3-setuptools_scm
BuildRequires:      python3-pytest-runner
BuildRequires:      python3-mock
BuildRequires:      python3-sphinx
BuildRequires:      texinfo

# For tests
BuildRequires:      python3-pytest
BuildRequires:      python3-pytest-cov
BuildRequires:      python3-pytest-runner
BuildRequires:      python3-pytest-mock
BuildRequires:      python3-psutil
BuildRequires:      python3-flake8

Requires:           iptables
Requires:           openssh-clients

%description
Transparent proxy server that works as a poor man's VPN. Forwards over ssh.
Doesn't require admin. Works with Linux, MacOS, BSD. Supports DNS tunneling.

%files
%license LICENSE
%{_mandir}/man1/%{name}.1.*
%{_infodir}/%{name}.info.*
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}*.egg-info
%{_bindir}/sshuttle
#---------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%py3_build

# Build docs
pushd docs
make man
make info
popd


%install
%py3_install

# Install docs
pushd docs
# Man
mkdir -p %{buildroot}/%{_mandir}/man1
mv _build/man/%{name}.1 %{buildroot}/%{_mandir}/man1
# Info
mkdir -p %{buildroot}/%{_infodir}
mv _build/texinfo/%{name}.info %{buildroot}/%{_infodir}
popd


%check
%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8898 |21cr|sshuttle-gui-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		sshuttle-gui
Version:	0.2
Release:	1
Group:		System/Configuration/Networking
Summary:	GUI for SShuttle - Transparent proxy server
License:	GPLv3
URL:		https://github.com/AKotov-dev/SShuttle-GUI
Source0:	https://github.com/AKotov-dev/SShuttle-GUI/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	sshuttle
Requires:	systemd
Requires:	iptables
Requires:	sshpass
Requires:	polkit
Requires:	fping
Requires:	gtk2


%description
GUI for SShuttle - Transparent proxy server that works as a poor man's VPN.
Forwards over ssh.

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/*
%{_unitdir}/sshuttle.service

%post
%systemd_post sshuttle.service

%preun
%systemd_preun sshuttle.service

#------------------------------------------------------------------
%prep
%setup -n SShuttle-GUI-%{version}/%{name}

# remove prebuild file
rm -f sshuttle_gui

%build
lazbuild --build-all *.lpi

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications,polkit-1}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_unitdir}

cp ./all/usr/bin/* %{buildroot}%{_bindir}/
cp ./sshuttle_gui %{buildroot}%{_datadir}/%{name}
cp ./all/usr/share/icons/* %{buildroot}%{_datadir}/pixmaps/
cp ./all/usr/share/applications/* %{buildroot}%{_datadir}/applications/
cp ./languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp -r ./all/usr/share/polkit-1/actions %{buildroot}%{_datadir}/polkit-1/
cp ./all/etc/systemd/system/sshuttle.service %{buildroot}%{_unitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8899 |21cr|ssl-cert-check-3.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SSL certificate expiration checker
Name:		ssl-cert-check
Version:	3.3
Release:	6
License:	BSD-like
Group:		Monitoring
URL:		http://prefetch.net/code/ssl-cert-check.html
Source0:	http://prefetch.net/code/ssl-cert-check.bz2
Patch0:		ssl-cert-check-3.3-mdv_conf.diff
BuildArch:	noarch

%description
ssl-cert-check is a utility for checking the expiration date of an X.509
certificate. ssl-cert-check can be run against a live server or a PEM encoded
digital certificate.

%prep

%setup -q -c -T
bzcat %{SOURCE0} > %{name}
%patch0 -p0

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8900 |21cr|sslscan-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast SSL Scanner
Name:		sslscan
Version:	2.1.1
Release:	1
License:	GPLv3+
Group:		Monitoring
Url:		https://github.com/rbsec/sslscan
Source0:	https://github.com/rbsec/sslscan/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(openssl)

%description
SSLScan queries SSL services, such as HTTPS, in order to determine the ciphers
that are supported. SSLScan is designed to be easy, lean and fast. The output
includes prefered ciphers of the SSL service, the certificate and is in Text
and XML formats.

%files
%doc Changelog README.md TODO
%license LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/sslscan.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags} -lssl -lcrypto"

%install
install -D -m 755 sslscan %{buildroot}%{_bindir}/sslscan
install -D -m 644 sslscan.1 %{buildroot}%{_mandir}/man1/sslscan.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8901 |21cr|ssmtp-2.64-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A minimal mail-transfer agent which forwards mail to an SMTP server
Name:		ssmtp
Version:	2.64
Release:	10
License:	GPL
URL:		http://packages.debian.org/unstable/mail/ssmtp.html
Group:		System/Servers
BuildRequires:	rcs
BuildRequires:	openssl-devel
Provides:	sendmail-command
Requires:	common-licenses

Source:		http://ftp.debian.org/debian/pool/main/s/ssmtp/%{name}_%{version}.orig.tar.bz2

%description
This is sSMTP, a program that replaces sendmail on workstations that
should send their mail via the departmental mailhub from which they pick up
their mail (via pop, imap, rsmtp, pop_fetch, NFS... or the like).  This
program accepts mail and sends it to the mailhub, optionally replacing the
domain in the From: line with a different one.

%prep
%setup -q

# viet 05/08/2003 / by default, the configure script sets sysconfdir
# to /usr/etc, which is no good. The --sysconfdir= switch doesn't do
# anything either because Makefile.in is not using it => patching Makefile.in
perl -pi -e 's|etcdir=\$\(prefix\)/etc|etcdir=\@sysconfdir\@|' Makefile.in

%build
%serverbuild
export LIBS="-lcrypto"
%configure --enable-ssl --enable-md5auth
%make

%install
install -D -m 755 ssmtp		%{buildroot}%{_sbindir}/ssmtp
install -D -m 644 ssmtp.conf	%{buildroot}%{_sysconfdir}/ssmtp/ssmtp.conf
install -D -m 644 revaliases	%{buildroot}%{_sysconfdir}/ssmtp/revaliases
install -D -m 644 ssmtp.conf.5	%{buildroot}%{_mandir}/man5/ssmtp.conf.5
install -D -m 644 ssmtp.8	%{buildroot}%{_mandir}/man8/ssmtp.8

# fix doc permissions:
chmod 644 INSTALL README ChangeLog CHANGELOG_OLD COPYRIGHT TLS *.lsm

#ln -s %{_sbindir}/ssmtp %{buildroot}%{_sbindir}/sendmail
# ln -s %{_mandir}/man8/ssmtp.8.bz2 %{buildroot}%{_mandir}/man8/sendmail.8.bz2
#ln -s ssmtp.8.bz2 %{buildroot}%{_mandir}/man8/sendmail.8.bz2

%clean

%post
update-alternatives --install %{_sbindir}/sendmail sendmail-command %{_sbindir}/ssmtp 5 --slave %{_prefix}/lib/sendmail sendmail-command-in_libdir %{_sbindir}/ssmtp


%preun
if [ $1 = 0 ]; then
        update-alternatives --remove sendmail-command %{_sbindir}/ssmtp
fi


%files
%doc INSTALL README ChangeLog CHANGELOG_OLD COPYRIGHT TLS *.lsm 
%{_sbindir}/ssmtp
%config(noreplace) %dir %{_sysconfdir}/ssmtp
%config(noreplace) %{_sysconfdir}/ssmtp/*
%{_mandir}/man8/*
%{_mandir}/man5/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8902 |21cr|st-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             st
Version:          0.9.2
Release:          1
Summary:          A simple terminal implementation for X
Group:            Graphical desktop/Other
License:          MIT
URL:              http://%{name}.suckless.org/
Source0:          http://dl.suckless.org/%{name}/%{name}-%{version}.tar.gz
Source1:          %{name}.desktop
BuildRequires:    desktop-file-utils
BuildRequires:    pkgconfig(x11)
BuildRequires:    pkgconfig(xext)
BuildRequires:    pkgconfig(xft)
BuildRequires:    pkgconfig(xproto)
BuildRequires:    pkgconfig(freetype2)
Requires:         font(liberationmono)
Requires:         terminus-font

%description
A simple virtual terminal emulator for X which sucks less.

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%make_install PREFIX=%{_prefix}

desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

%files
%doc FAQ LEGACY README TODO %{name}.info LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8903 |21cr|stacer-1.0.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Stacer

Summary:	Linux System Optimizer and Monitoring
Name:		stacer
Version:	1.0.9
Release:	3
License:	MIT
Group:		Monitoring
Url:		https://oguzhaninan.github.io/Stacer-Web
Source0:	https://github.com/oguzhaninan/Stacer/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		stacer-1.0.9-fix-build-against-qt-5.11.0.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Charts)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Linux System Optimizer and Monitoring

%files
%doc README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*.png

#-----------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%cmake_qt5 \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo
%make

%install
%makeinstall_std -C build

# properly install icons instead
rm -rf %{buildroot}%{_iconsdir}/%{name}.png

# install menu icons
for N in 16 32 64 128 256;
do
install -D -m 0644 icons/hicolor/${N}x${N}/apps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8904 |21cr|stalonetray-0.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Stand-alone, full-featured system tray
Name:		stalonetray
Version:	0.8.4
Release:	1
License:	GPLv2
Group:		Graphical desktop/Other
URL:		http://stalonetray.sourceforge.net/
Source:		https://github.com/kolbusa/stalonetray/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl


%description
Stalonetray is a stand-alone freedesktop.org and KDE system tray (notification
area) for X Window System/X11. It has full XEMBED support and minimal
dependencies: an X11 lib only. Stalonetray works with virtually any
EWMH-compliant window manager.

%prep
%setup -q

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

%files
%doc AUTHORS README* NEWS TODO
%{_bindir}/%{name}
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8905 |21cr|stardict-dalf-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dict_name 	dalf

Name: 			stardict-dalf
Version: 		2.4.2
Release: 		4
Summary: 		Dal's Russian Dictionary
License: 		GPLv2+
URL:			http://xdxf.revdanica.com/down/index.php
Group: 			Text tools
Source0: 		atla02_rus-rus_%dict_name.dict.dz
Source1: 		atla02_rus-rus_%dict_name.idx
Source2: 		atla02_rus-rus_%dict_name.ifo
BuildArch: 		noarch
Requires: 		stardict

%description
Dal's Russian Dictionary in stardict format

%install
rm -rf %{buildroot}
install -p -m644 -D %SOURCE0 %{buildroot}%{_datadir}/stardict/dic/%dict_name.dict.dz
install -p -m644 -D %SOURCE1 %{buildroot}%{_datadir}/stardict/dic/%dict_name.idx
install -p -m644 -D %SOURCE2 %{buildroot}%{_datadir}/stardict/dic/%dict_name.ifo

%clean
rm -rf %{buildroot}

%files
%{_datadir}/stardict/dic/%{dict_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8906 |21cr|stardict-dict.org-devils-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Devil's Dictionary for StarDict 2
Name:		stardict-dict.org-devils
Version:	2.4.2
Release:	4
License:	Public Domain
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.dict.org_devils-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
The Devil's Dictionary converted into StarDict 2 format (originally for dictd)

%prep
%setup -q -n stardict-dictd_www.dict.org_devils-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 *.ifo *.idx* *.dict.dz $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8907 |21cr|stardict-dict.org-elements-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Elements database for StarDict 2
Name:		stardict-dict.org-elements
Version:	2.4.2
Release:	4
License:	Public Domain
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.dict.org_elements-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Elements database converted into StarDict 2 format (originally for dictd)

%prep
%setup -q -n stardict-dictd_www.dict.org_elements-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 *.ifo *.idx* *.dict.dz $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8908 |21cr|stardict-dict.org-gazetteer-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	U.S. Gazetteer for StarDict 2
Name:		stardict-dict.org-gazetteer
Version:	2.4.2
Release:	4
License:	Public Domain
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.dict.org_gazetteer-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
U.S. Gazetteer converted into StarDict 2 format (originally for dictd)

%prep
%setup -q -n stardict-dictd_www.dict.org_gazetteer-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 *.ifo *.idx* *.dict.dz $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8909 |21cr|stardict-dict.org-gcide-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GCIDE english dictionray for StarDict 2
Name:		stardict-dict.org-gcide
Version:	2.4.2
Release:	4
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.dict.org_gcide-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
GCIDE (GNU Collaborative International Dictionary of English) converted into
StarDict 2 format (originally for dictd)

%prep
%setup -q -n stardict-dictd_www.dict.org_gcide-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 *.ifo *.idx* *.dict.dz $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8910 |21cr|stardict-dict.org-hitchcock-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hitchcock's Bible Names for StarDict 2
Name:		stardict-dict.org-hitchcock
Version:	2.4.2
Release:	4
License:	Public Domain
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.dict.org_hitchcock-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Hitchcock's Bible Names converted into StarDict 2 format (originally for dictd)

%prep
%setup -q -n stardict-dictd_www.dict.org_hitchcock-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 *.ifo *.idx* *.dict.dz $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8911 |21cr|stardict-dict.org-wn-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	WordNet for StarDict 2
Name:		stardict-dict.org-wn
Version:	2.4.2
Release:	4
License:	BSD style
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.dict.org_wn-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
WordNet converted into StarDict 2 format (originally for dictd)

%prep
%setup -q -n stardict-dictd_www.dict.org_wn-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 *.ifo *.idx* *.dict.dz $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8912 |21cr|stardict-dict.org-world95-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CIA World Factbook for StarDict 2
Name:		stardict-dict.org-world95
Version:	2.4.2
Release:	4
License:	Public Domain
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.dict.org_world95-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
CIA World Factbook converted into StarDict 2 format (originally for dictd)

%prep
%setup -q -n stardict-dictd_www.dict.org_world95-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 *.ifo *.idx* *.dict.dz $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8913 |21cr|stardict-freedict-eng-ara-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	English -> Arabic Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-ara
Version:	2.4.2
Release:	8
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-ara-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
English -> Arabic Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-ara-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8914 |21cr|stardict-jmdict-en-ja-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	JMDICT (English -> Japanese dictionary) converted to StarDict 2
Name:		stardict-jmdict-en-ja
Version:	2.4.2
Release:	8
License:	General Dictionary Licence
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	http://prdownloads.sourceforge.net/stardict/%{name}-%{version}.tar.bz2
Source1:	general-dictionary-licence.html.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
The JMdict (Japanese-Multilingual Dictionary) project began in 1999 as an
offshoot of the EDICT Japanese-English Electronic Dictionary project. It
involved a major rebuild of the main files, with a more complex structure
using XML.
This package contains JMDICT database (English -> Japanese) converted
into StarDict 2 format.

Please refer to http://www.csse.monash.edu.au/~jwb/j_jmdict.html
for more info.

%prep
%setup -q
bzip2 -dc %SOURCE1 > general-dictionary-licence.html

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/stardict/dic
install -m 0644 * %{buildroot}%{_datadir}/stardict/dic

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc general-dictionary-licence.html
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8915 |21cr|stardict-jmdict-ja-en-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	JMDICT (Japanese -> English dictionary) converted to StarDict 2
Name:		stardict-jmdict-ja-en
Version:	2.4.2
Release:	8
License:	General Dictionary Licence
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	http://prdownloads.sourceforge.net/stardict/%{name}-%{version}.tar.bz2
Source1:	general-dictionary-licence.html.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
The JMdict (Japanese-Multilingual Dictionary) project began in 1999 as an
offshoot of the EDICT Japanese-English Electronic Dictionary project. It
involved a major rebuild of the main files, with a more complex structure
using XML.
This package contains JMDICT database (Japanese -> English) converted
into StarDict 2 format.

Please refer to http://www.csse.monash.edu.au/~jwb/j_jmdict.html
for more info.

%prep
%setup -q
bzip2 -dc %SOURCE1 > general-dictionary-licence.html

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/stardict/dic
install -m 0644 * %{buildroot}%{_datadir}/stardict/dic

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc general-dictionary-licence.html
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8916 |21cr|stardict-mueller24-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dict_name	mueller24
%define version		2.4.2
%define release		4

Name: 			stardict-%dict_name
Version: 		2.4.2
Release: 		4
Summary: 		Mueller's English-Russian Dictionary, 24th edition
License: 		GPLv2+
URL:			http://xdxf.revdanica.com/down/index.php
Group: 			Text tools
Source0: 		%dict_name.dict.dz
Source1: 		%dict_name.idx
Source2: 		%dict_name.ifo
BuildArch: 		noarch
Requires: 		stardict

%description
Mueller's English-Russian Dictionary, 24th edition, in stardict format

%install
rm -rf %{buildroot}
install -p -m644 -D %SOURCE0 %{buildroot}%{_datadir}/stardict/dic/%dict_name.dict.dz
install -p -m644 -D %SOURCE1 %{buildroot}%{_datadir}/stardict/dic/%dict_name.idx
install -p -m644 -D %SOURCE2 %{buildroot}%{_datadir}/stardict/dic/%dict_name.ifo
 	
%clean
rm -rf %{buildroot}
 	
%files
%{_datadir}/stardict/dic/%{dict_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8917 |21cr|stardict-nbars-magus-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	dict_name	magus
%define version		2.4.2
%define release		4

Name:			stardict-nbars-%dict_name
Version:		2.4.2
Release:		%mkrel %{release}
Summary:		New Big English-Russian Dictionary
License:		GPLv2+
URL:			http://xdxf.revdanica.com/down/index.php
Group:			Text tools
Source0:		%{dict_name}.dict.dz
Source1:		%{dict_name}.idx
Source2:		%{dict_name}.ifo
BuildArch:		noarch
Requires:		stardict

%description
New Comprehensive English-Russian Dictionary under the editorship
of academician Y.D.Apresyan and professor E.M.Mednikova; Transmagus by
Delta Lingotronic Inc.; http://www.callamer.com/~dlingo; ver. 1.2 for
Unix; in stardict format

%install
rm -rf %{buildroot}
install -p -m644 -D %SOURCE0 %{buildroot}%{_datadir}/stardict/dic/%dict_name.dict.dz
install -p -m644 -D %SOURCE1 %{buildroot}%{_datadir}/stardict/dic/%dict_name.idx
install -p -m644 -D %SOURCE2 %{buildroot}%{_datadir}/stardict/dic/%dict_name.ifo
 	
%clean
rm -rf %{buildroot}
	
%files
%{_datadir}/stardict/dic/%{dict_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8918 |21cr|stardict-ozhshv-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dict_name	ozhshv
%define version		2.4.2
%define release		4

Name: 			stardict-%dict_name
Version: 		2.4.2
Release: 		4
Summary: 		Ozhegov's and Shvedova's Russian Dictionary
License: 		GPLv2+
URL:			http://xdxf.revdanica.com/down/index.php
Group: 			Text tools
Source0: 		%dict_name.dict.dz
Source1: 		%dict_name.idx
Source2: 		%dict_name.ifo
BuildArch: 		noarch
Requires: 		stardict

%description
Ozhegov's and Shvedova's Russian dictionary in stardict format

%install
rm -rf %{buildroot}
install -p -m644 -D %SOURCE0 %{buildroot}%{_datadir}/stardict/dic/%dict_name.dict.dz
install -p -m644 -D %SOURCE1 %{buildroot}%{_datadir}/stardict/dic/%dict_name.idx
install -p -m644 -D %SOURCE2 %{buildroot}%{_datadir}/stardict/dic/%dict_name.ifo
 	
%clean
rm -rf %{buildroot}
 	
%files
%{_datadir}/stardict/dic/%{dict_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8919 |21cr|stardict-quick-afr-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Afrikaanss -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-afr-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_afr-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Afrikaanss -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_afr-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8920 |21cr|stardict-quick-bul-swe-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bulgarian -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-bul-swe
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_bul-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Bulgarian -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_bul-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8921 |21cr|stardict-quick-dan-fin-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Finnish *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-fin
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-fin-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Finnish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-fin-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8922 |21cr|stardict-quick-dan-hun-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Hungarian *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-hun
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-hun-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Hungarian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-hun-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8923 |21cr|stardict-quick-dan-ind-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Indonesian *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-ind
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-ind-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Indonesian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-ind-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8924 |21cr|stardict-quick-dan-ita-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Italian *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-ita
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-ita-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Italian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-ita-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8925 |21cr|stardict-quick-dan-jpn-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Japanese *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-jpn
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-jpn-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Japanese *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-jpn-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8926 |21cr|stardict-quick-dan-lat-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Latin *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-lat
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-lat-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Latin *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-lat-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8927 |21cr|stardict-quick-dan-nld-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Dutch *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-nld
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-nld-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Dutch *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-nld-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8928 |21cr|stardict-quick-dan-nor-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Norwegian *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-nor
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-nor-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Norwegian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-nor-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8929 |21cr|stardict-quick-dan-por-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Portuguese *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-por
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-por-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Portuguese *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-por-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8930 |21cr|stardict-quick-dan-rus-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Russian *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-rus
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-rus-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Russian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-rus-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8931 |21cr|stardict-quick-dan-spa-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Spanish *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-spa
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-spa-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Spanish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-spa-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8932 |21cr|stardict-quick-dan-swa-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Swahili *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-swa
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-swa-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Swahili *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-swa-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8933 |21cr|stardict-quick-dan-swe-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Danish -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-swe
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Danish -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8934 |21cr|stardict-quick-esp-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Esperanto -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-esp-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_esp-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Esperanto -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_esp-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8935 |21cr|stardict-quick-fin-dan-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Finnish -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-fin-dan
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_fin-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Finnish -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_fin-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8936 |21cr|stardict-quick-fin-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Finnish -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-fin-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_fin-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Finnish -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_fin-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8937 |21cr|stardict-quick-fry-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Frisian -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-fry-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_fry-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Frisian -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_fry-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8938 |21cr|stardict-quick-gre-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Greek -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-gre-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_gre-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Greek -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_gre-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8939 |21cr|stardict-quick-hun-dan-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hungarian -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-hun-dan
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_hun-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Hungarian -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_hun-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8940 |21cr|stardict-quick-hun-swe-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hungarian -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-hun-swe
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_hun-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Hungarian -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_hun-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8941 |21cr|stardict-quick-ind-dan-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Indonesian -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-ind-dan
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_ind-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Indonesian -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_ind-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8942 |21cr|stardict-quick-ind-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Indonesian -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-ind-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_ind-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Indonesian -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_ind-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8943 |21cr|stardict-quick-isl-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Icelandic -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-isl-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_isl-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Icelandic -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_isl-swe-%{version}
# tarball contains broken filename
for i in *; do mv -f $i ${i/\?\?/an}; done

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8944 |21cr|stardict-quick-ita-dan-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Italian -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-ita-dan
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_ita-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Italian -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_ita-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8945 |21cr|stardict-quick-ita-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Italian -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-ita-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_ita-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Italian -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_ita-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8946 |21cr|stardict-quick-jpn-dan-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release	9
%define dict_format_version	2.4.2

Summary:	Japanese -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-jpn-dan
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_jpn-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Japanese -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_jpn-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8947 |21cr|stardict-quick-jpn-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Japanese -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-jpn-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_jpn-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Japanese -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_jpn-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8948 |21cr|stardict-quick-lat-dan-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Latin -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-lat-dan
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_lat-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Latin -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_lat-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8949 |21cr|stardict-quick-lat-swe-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Latin -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-lat-swe
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_lat-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Latin -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_lat-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8950 |21cr|stardict-quick-nld-dan-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dutch -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-nld-dan
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_nld-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Dutch -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_nld-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8951 |21cr|stardict-quick-nld-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dutch -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-nld-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_nld-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Dutch -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_nld-swe-%{version}
# tarball contains broken filename
for i in *; do mv -f $i ${i/\?\?/an}; done

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8952 |21cr|stardict-quick-nor-dan-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Norwegian -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-nor-dan
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_nor-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Norwegian -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_nor-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8953 |21cr|stardict-quick-nor-swe-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Norwegian -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-nor-swe
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_nor-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Norwegian -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_nor-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8954 |21cr|stardict-quick-pol-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Polish -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-pol-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_pol-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Polish -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_pol-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8955 |21cr|stardict-quick-por-dan-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Portuguese -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-por-dan
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_por-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Portuguese -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_por-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8956 |21cr|stardict-quick-por-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Portuguese -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-por-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_por-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Portuguese -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_por-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8957 |21cr|stardict-quick-rum-swe-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Romanian -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-rum-swe
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_rum-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Romanian -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_rum-swe-%{version}
# tarball contains broken filename
for i in *; do mv -f $i ${i/\?\?/an}; done

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8958 |21cr|stardict-quick-rus-dan-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Russian -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-rus-dan
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_rus-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Russian -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_rus-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8959 |21cr|stardict-quick-rus-swe-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Russian -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-rus-swe
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_rus-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Russian -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_rus-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8960 |21cr|stardict-quick-slo-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Slovak -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-slo-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_slo-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Slovak -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_slo-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8961 |21cr|stardict-quick-spa-dan-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Spanish -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-spa-dan
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_spa-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Spanish -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_spa-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8962 |21cr|stardict-quick-spa-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Spanish -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-spa-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_spa-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Spanish -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_spa-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8963 |21cr|stardict-quick-swa-dan-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swahili -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-swa-dan
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swa-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swahili -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swa-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8964 |21cr|stardict-quick-swa-swe-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swahili -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-swa-swe
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swa-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swahili -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swa-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8965 |21cr|stardict-quick-swe-afr-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Afrikaanss *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-afr
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-afr-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Afrikaanss *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-afr-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8966 |21cr|stardict-quick-swe-bul-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Bulgarian *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-bul
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-bul-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Bulgarian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-bul-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8967 |21cr|stardict-quick-swe-dan-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-dan
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8968 |21cr|stardict-quick-swe-esp-2.4.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Esperanto *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-esp
Version:	2.4.2
Release:	10
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-esp-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Esperanto *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-esp-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8969 |21cr|stardict-quick-swe-fin-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Finnish *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-fin
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-fin-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Finnish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-fin-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8970 |21cr|stardict-quick-swe-fry-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Frisian *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-fry
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-fry-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Frisian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-fry-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8971 |21cr|stardict-quick-swe-gre-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Greek *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-gre
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-gre-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Greek *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-gre-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8972 |21cr|stardict-quick-swe-hun-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Hungarian *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-hun
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-hun-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Hungarian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-hun-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8973 |21cr|stardict-quick-swe-ind-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Indonesian *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-ind
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-ind-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Indonesian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-ind-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8974 |21cr|stardict-quick-swe-isl-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Icelandic *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-isl
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-isl-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Icelandic *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-isl-%{version}
# tarball contains broken filename
for i in *; do mv -f $i ${i/\?\?/an}; done

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8975 |21cr|stardict-quick-swe-ita-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Italian *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-ita
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-ita-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Italian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-ita-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8976 |21cr|stardict-quick-swe-jpn-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Japanese *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-jpn
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-jpn-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Japanese *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-jpn-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8977 |21cr|stardict-quick-swe-lat-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Latin *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-lat
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-lat-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Latin *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-lat-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8978 |21cr|stardict-quick-swe-nld-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Dutch *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-nld
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-nld-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Dutch *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-nld-%{version}
# tarball contains broken filename
for i in *; do mv -f $i ${i/\?\?/an}; done

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8979 |21cr|stardict-quick-swe-nor-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Norwegian *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-nor
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-nor-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Norwegian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-nor-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8980 |21cr|stardict-quick-swe-pol-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Polish *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-pol
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-pol-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Polish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-pol-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8981 |21cr|stardict-quick-swe-por-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Portuguese *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-por
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-por-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Portuguese *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-por-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8982 |21cr|stardict-quick-swe-rum-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Romanian *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-rum
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-rum-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Romanian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-rum-%{version}
# tarball contains broken filename
for i in *; do mv -f $i ${i/\?\?/an}; done

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8983 |21cr|stardict-quick-swe-rus-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release	8
%define dict_format_version	2.4.2

Summary:	Swedish -> Russian *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-rus
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-rus-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Swedish -> Russian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-rus-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8984 |21cr|stardict-quick-swe-slo-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Slovak *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-slo
Version:	2.4.2
Release:	8
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-slo-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Slovak *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-slo-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8985 |21cr|stardict-quick-swe-spa-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Spanish *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-spa
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-spa-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Spanish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-spa-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8986 |21cr|stardict-quick-swe-swa-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Swahili *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-swa
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-swa-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Swahili *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-swa-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8987 |21cr|stardict-quick-swe-wel-2.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Swedish -> Welsh *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-wel
Version:	2.4.2
Release:	9
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-wel-%{version}.tar.bz2

Provides:	stardict-dictionary = %{version}
Requires:	stardict >= %{version}

%description
Swedish -> Welsh *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-wel-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8988 |21cr|stardict-quick-wel-swe-2.4.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dict_format_version 2.4.2

Summary:	Welsh -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-wel-swe
Version:	2.4.2
Release:	10
License:	Distributable
Group:		Databases
Url:		http://stardict.sourceforge.net/
Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_wel-swe-%{version}.tar.bz2
Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}
BuildArch:	noarch

%description
Welsh -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%files
%{_datadir}/stardict/dic/*

#----------------------------------------------------------------------------

%prep
%setup -q -n stardict-quick_wel-swe-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/stardict/dic
install -m 0644 * %{buildroot}%{_datadir}/stardict/dic

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8989 |21cr|stardict-ushakov-2.4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dict_name	ushakov
%define version		2.4.2
%define release		4

Name: 			stardict-%dict_name
Version: 		2.4.2
Release: 		%mkrel %{release}
Summary: 		Russian Ushakov's Dictionary
License: 		GPLv2+
URL:			http://xdxf.revdanica.com/down/index.php
Group: 			Text tools
Source0: 		%dict_name.dict.dz
Source1: 		%dict_name.idx
Source2: 		%dict_name.ifo
BuildArch: 		noarch
Requires: 		stardict

%description
Russian Ushakov's Dictionary in stardict format

%install
rm -rf %{buildroot}
install -p -m644 -D %SOURCE0 %{buildroot}%{_datadir}/stardict/dic/%dict_name.dict.dz
install -p -m644 -D %SOURCE1 %{buildroot}%{_datadir}/stardict/dic/%dict_name.idx
install -p -m644 -D %SOURCE2 %{buildroot}%{_datadir}/stardict/dic/%dict_name.ifo
 	
%clean
rm -rf %{buildroot}
%files
%{_datadir}/stardict/dic/%{dict_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8990 |21cr|starfighter-2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Space/Arcade game which uses SDL libraries
Name:		starfighter
Version:	2.4
Release:	3
License:	GPLv2+
Group:		Games/Arcade
Url:		https://pr-starfighter.github.io
Source0:	https://github.com/pr-starfighter/starfighter/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)

%description
Project: Starfighter is a is a Space/Arcade game which uses SDL libraries.
The story:
After decades of war one company, who had gained powerful supplying both
sides with weaponary, steps forwards and crushes both warring factions in
one swift movement. Using far superior weaponary and AI craft, the company
was completely unstoppable and now no one can stand in their way. Thousands
began to perish under the iron fist of the company. The people cried out
for a saviour, for someone to light this dark hour... and someone did.
Features:
- 26 missions over 4 star systems.
- Primary and Secondary Weapons (including laser cannon and charge weapon).
- A weapon powerup system.
- Wingmates.
- Missions with Primary and Secondary Objectives.
- A Variety of Missions (Protect, Destroy, etc).
- 13 different music tracks.
- Boss battles.

%files
%doc README.txt
%license COPYING LICENSES
%{_gamesbindir}/%{name}
%dir %{_gamesdatadir}/%{name}
%dir %{_gamesdatadir}/%{name}/data
%dir %{_gamesdatadir}/%{name}/gfx
%dir %{_gamesdatadir}/%{name}/locale
%dir %{_gamesdatadir}/%{name}/music
%dir %{_gamesdatadir}/%{name}/sound
%{_gamesdatadir}/%{name}/data/*
%{_gamesdatadir}/%{name}/gfx/*
%{_gamesdatadir}/%{name}/locale/*
%{_gamesdatadir}/%{name}/music/*.ogg
%{_gamesdatadir}/%{name}/sound/*.ogg
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/%{name}.6.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-src

# Fix perms
find . -perm 0600 -exec chmod 0644 {} \;

%build
autoreconf -vfi
%configure2_5x \
	--bindir="%{_gamesbindir}" \
	--datadir="%{_gamesdatadir}"
%make

%install
%makeinstall_std

# Install the provided 128x128 icon...
install -Dm644 misc/%{name}.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
# ...and resize it to have more sizes
for i in 16x16 22x22 32x32 48x48 64x64 256x256; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/apps
	convert misc/%{name}.png -resize $i %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{name}.png
done

# Fix provided .desktop file
desktop-file-edit --remove-category="ActionGame" %{buildroot}/%{_datadir}/applications/%{name}.desktop

# Drop unwanted stuff
rm -rf %{buildroot}%{_datadir}/pixmaps
rm -f %{buildroot}%{_gamesdatadir}/%{name}/locale/build.py
rm -f %{buildroot}%{_gamesdatadir}/%{name}/locale/genpot.sh
rm -f %{buildroot}%{_gamesdatadir}/%{name}/locale/pr-starfighter.pot
rm -f %{buildroot}%{_defaultdocdir}/%{name}/{COPYING,LICENSES}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8991 |21cr|startsess-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	Tool to start LTSP sessions
Name:		startsess
Version:	1.1
Release:	8
License:	GPL
Group:		System/Servers
URL:		http://www.ltsp.org
Source0:	http://www.ltsp.org/tarballs/%{name}-%{version}.tar.bz2
BuildRequires:	dietlibc-devel
Patch0:		startsess.patch

%description
This program is used in LTSP to start the sessions (shell, telnet, startx).

%prep

%setup -n %{name}-%{version}
%patch0 -p0

%build
diet gcc -Os -o %{name} %{name}.c

%install
rm -rf %{buildroot}

install -d %{buildroot}/bin
install -m0755 %{name} %{buildroot}/bin/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README
%attr(0755,root,root) /bin/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8992 |21cr|startwine-408-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname StartWine

Summary:	Launcher for quickly and easily launch Windows applications
Name:		startwine
Version:	408
Release:	1
License:	GPLv3
Group:		Games/Other
Url:		https://github.com/RusNor/StartWine-Launcher
Source0:	https://github.com/Survolog/StartWine-Launcher/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		startwine-407-default-settings.patch
BuildRequires:	meson
Requires:	bc
Requires:	bubblewrap
Requires:	cabextract
Requires:	canberra-gtk
Requires:	coreutils
Requires:	curl
Requires:	file
Requires:	htop
Requires:	icoutils
Requires:	imagemagick
Requires:	lib64drm2
Requires:	lib64opencl1
Requires:	lib64vte-gir2.91
Requires:	libnotify
Requires:	openssl
Requires:	python3-gobject
Requires:	sysvinit-tools
Requires:	tar
Requires:	vulkan-tools
Requires:	wget
Requires:	xdg-user-dirs
Requires:	xdg-utils
Requires:	xz
Requires:	zenity
Requires:	zstd
Requires:	python3dist(evdev)
Requires:	python3dist(numpy)
Requires:	python3dist(pillow)
Requires:	python3dist(psutil)
Requires:	python3dist(pycairo)
Requires:	python3dist(six)
Requires:	rubygem(vte3)
Requires:	vkd3d(x86-64)
Requires:	vte291(x86-64)
Requires:	vulkan(x86-64)
Recommends:	lib64d3dadapter9_1
Recommends:	lib64freetype6
Recommends:	lib64txc-dxtn
Recommends:	python3dist(pyopengl)
Recommends:	ibus-gtk(x86-32)
Recommends:	libcurl4(x86-32)
Recommends:	libd3dadapter9_1(x86-32)
Recommends:	libdrm2(x86-32)
Recommends:	libfreetype6(x86-32)
Recommends:	libGL1(x86-32)
Recommends:	libnss3(x86-32)
Recommends:	libopencl1(x86-32)
Recommends:	libtxc-dxtn(x86-32)
Recommends:	libvte-gir2.91(x86-32)
Recommends:	libvulkan1(x86-32)
Recommends:	mesa(x86-32)
Recommends:	vkd3d(x86-32)
Recommends:	vte291(x86-32)
Recommends:	vulkan(x86-32)
Obsoletes:	startwine <= 384
BuildArch:	noarch
ExclusiveArch:	x86_64

%description
It is a launcher that allows you to quickly and easily launch
Windows applications on Linux operating systems.

%files -f StartWine.lang
%doc handbook README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/StartWine.desktop
%{_datadir}/%{name}/data/app_config
%{_datadir}/%{name}/data/app_patches
%{_datadir}/%{name}/data/img
%{_datadir}/%{name}/data/scripts/appid*.json
%{_datadir}/%{name}/data/scripts/dxvk_vkd3d_version.json
%{_datadir}/%{name}/data/scripts/__pycache__
%{_datadir}/%{name}/data/scripts/sw_*
%{_datadir}/%{name}/data/scripts/wine_version.json
%dir %{_datadir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

%posttrans
for i in $(ls /home); do
	[ -f /home/$i/.local/share/applications/StartWine.desktop ] && rm -f /home/$i/.local/share/applications/StartWine.desktop
done
mv -f %{_datadir}/applications/StartWine.desktop{,~}
# Wait update desktop's info in DE. Other methods don't always work.
sleep 10
mv -f %{_datadir}/applications/StartWine.desktop{~,}

#----------------------------------------------------------------------------

%prep
%autosetup -p1
find . -name "*.svg" -o -name "*.css" -o -name "*.json" |xargs chmod -x
chmod -x data/scripts/sw_shaders.py
sed -i "s/\r$//" README.md
sed -i "s,^#!/usr/bin/env ,#!/usr/bin/," data/app_config/.default/* data/%{name}.in data/scripts/sw_*

%build
%meson
%meson_build

%install
%meson_install

sed -i "s|sed .1,.* -C \(.*\)\(. &&\)|cp -rf %{_datadir}/%{name}/data \1/StartWine\2|" %{buildroot}%{_bindir}/%{name}

rm -f %{buildroot}%{_datadir}/%{name}/data/scripts/locale/*/LC_MESSAGES/*.po
rm -f %{buildroot}%{_datadir}/%{name}/data/scripts/locale/*.po*

%find_lang StartWine

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8993 |21cr|statifier-1.7.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert elf dynamic linked exe to "pseudo-static"
Name:		statifier
Version:	1.7.4
Release:	3
License:	GPLv2
Group:		Development/Other
Url:		http://statifier.sourceforge.net	
Source:		http://prdownloads.sourceforge.net/statifier/%{name}-%{version}.tar.gz
ExclusiveArch:	%ix86 alpha x86_64
BuildRequires:  glibc-static-devel
Requires:      coreutils
Requires:      gawk
Requires:      gdb

%description
Statifier create from dynamically linked ELF executable
and all it's libraries (and all LD_PRELOAD libraries if any)
one file. This file can be copied and run on another machine
without need to drag all it's libraries.

%prep
%setup -q

%build
make all

%install

%makeinstall_std
chmod -R u+w %buildroot

%files
%doc AUTHORS ChangeLog LICENSE NEWS README TODO
%attr(755,root,root)	%{_bindir}/statifier
%dir %{_prefix}/lib/statifier
%attr(755,root,root)	%{_prefix}/lib/statifier/*
%{_mandir}/man1/statifier.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8994 |21cr|statist-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Statist is a terminal-based statistics program
Name:		statist
Version:	1.4.2
Release:	1
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://statist.wald.intevation.org/
Source0:	https://wald.intevation.org/frs/download.php/file/689/statist-%{version}.tar.gz
Patch0:		statist-1.4.1-lang.patch
Patch1:		statist-1.4.1-flags.patch
Patch3:		statist-1.4.1-no-strip.patch
Requires:	gnuplot

%description
Statist is a terminal-based statistics program with an interactive menu that
makes it very easy to use. It can also be run in scripts and big datasets are
handled reasonably well even on small machines. In spite of its low overhead
statist can do quite a bunch of regression functions and tests. It can produce
colorized output and uses gnuplot to create graphics.

%files -f %{name}.lang
%doc CHANGES COPYING CREDITS KNOWN_BUGS README
%doc examples/ sample.statistrc
%exclude %{_docdir}/%{name}/*.pdf
%{_bindir}/statist
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch3 -p1

%build
make \
	COMPILERCFLAGS="%{optflags} -c" \
	PREFIX=%{buildroot}%{_prefix}

%install
%makeinstall_std PREFIX=%{buildroot}%{_prefix}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8995 |21cr|statserial-1.1-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	A tool which displays the status of serial port modem lines
Name:		statserial
Version:	1.1
Release:	31
License:	BSD
Group:		Communications
URL:		ftp://sunsite.unc.edu/pub/Linux/system/serial/
Source0:	ftp://sunsite.unc.edu/pub/Linux/system/serial/%{name}-%{version}.tar.bz2
Patch0:		%{name}-1.1-config.patch
Patch1: 	%{name}-1.1-dev.patch
Patch2:		statserial-1.1-LDFLAGS.diff
BuildRequires:	ncurses-devel
BuildRequires:	glibc-static-devel 

%description
The statserial utility displays a table of the signals on a standard 9-pin or
25-pin serial port and indicates the status of the handshaking lines.
Statserial is useful for debugging serial port and/or modem problems.

Install the statserial package if you need a tool to help debug serial port or
modem problems.

%prep

%setup -q
%patch0 -p1 -b .config
%patch1 -p1 -b .dev
%patch2 -p0 -b .LDFLAGS

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags} -static"

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}/{%{_bindir},%{_mandir}/man1}

install -m 755 --strip statserial %{buildroot}%{_bindir}/statserial
install -m 444 statserial.1 %{buildroot}%{_mandir}/man1/statserial.1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING ChangeLog README
%{_bindir}/statserial
%{_mandir}/man1/statserial.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8996 |21cr|stb-2.37-1.5ba0ba.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5ba0baaa269b3fd681828e0e3b3ac0f1472eaf40
%define git 5ba0ba
%define devname %mklibname %{name} -d

Name:		stb
Version:	2.37
Release:	1.%{git}.1
Summary:	single-file libraries for C/C++
Group:		Development/C++
License:	MIT
# see stb.h for the version
Url:		http://github.com/nothings/stb
Source:		https://github.com/nothings/stb/archive/%{commit}.zip?/%{name}-%{git}.zip
BuildArch:	noarch

%description
Noteworthy:
* image loader: stb_image.h
* image writer: stb_image_write.h
* image resizer: stb_image_resize.h
* font text rasterizer: stb_truetype.h
* typesafe containers: stb_ds.h

#-----------------------------------------------------------------
%package -n %{devname}
Summary:	single-file libraries for C/C++
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for STB library.

Noteworthy:
* image loader: stb_image.h
* image writer: stb_image_write.h
* image resizer: stb_image_resize.h
* font text rasterizer: stb_truetype.h
* typesafe containers: stb_ds.h

%files -n %{devname}
%{_includedir}/stb
%doc *.md docs/*

#-----------------------------------------------------------------
%prep
%setup -n %{name}-%{commit}

%build

%install
mv stb_vorbis.c stb_vorbis.h
mkdir -p %{buildroot}%{_includedir}/stb
install -pm644 *.h %{buildroot}%{_includedir}/stb



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8997 |21cr|steak-1.7.3-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:         steak
Url:          http://www.informatik.uni-frankfurt.de/~razi/steak/steak.html
License:      GPLv2+
Group:        System/Internationalization
Summary:      English <-> German translator
Version:      1.7.3
Release:      17
Source0:      Steak.%{version}.tar.bz2
Patch0:       Steak-1.7.3-install.patch
Patch1:	      steak-1.7.3-aspell.patch
Patch2:	      Steak-recode-printbuffer-to-utf8.patch
Patch3:		Steak-debug.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)
BuildRequires:	recode
Requires: aspell-de
Requires: aspell-en
Requires: recode

%description
steak translates and explain words. You can use it to translate
between German and English on the command line. It will even translate
the word you've selected under X when you call steak without
arguments.

%prep
%setup -q -n Steak
%patch3 -p1
%patch0 -p 0 -E
%patch1 -p0 -b .aspell
%patch2 -p1
find -type d | xargs chmod 755
perl -pi -e "s!xxxLIBDIRx!%_libdir!" steak_install.sh
recode l9..u8 iso2txt 
recode l9..u8 Datensatz/ger-eng.txt

%build
%make X11LIBDIR="-L%{_prefix}/X11R6/%_lib"

%install
mkdir -p %{buildroot}%{_libdir}/Steak/
echo | %makeinstall_std

cat > README.urpmi <<EOF
Anpassungen spezifisch fÃ¼r das Mandriva-Paket

Die Datenbank und das Programm wurden so umgestellt, dass es nur noch in der
UTF-8-Kodierung funktioniert, die inzwischen Standard ist. Die ursprÃ¼ngliche
Version funktionierte nur mit ISO-8859-1.


Mandriva RPM specific notes

The database and the program were changed to work in the UTF-8 encoding only. 
This is the current default. The original version only worked in ISO-8859-1.
EOF


%files
%doc README* INSTALL INSTALL.ger ChangeLog
%{_bindir}/*
%{_libdir}/Steak

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8998 |21cr|steghide-0.5.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A steganography program
Name:		steghide
Version:	0.5.1
Release:	19
License:	GPLv2+
Group:		File tools
URL:		http://steghide.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		steghide-0.5.1-gcc34.patch
Patch1:		steghide-0.5.1-gcc4.diff
Patch2:		steghide-0.5.1-passphrase-file.diff
Patch3:		steghide-0.5.1-gcc4_1.diff
Patch4:		steghide-0.5.1-libtool.diff
Patch5:		steghide-0.5.1-gcc43.patch
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	libmcrypt-devel >= 2.5.8
BuildRequires:	libmhash-devel
BuildRequires:	libtool
BuildRequires:	libtool-devel
BuildRequires:	zlib-devel

%description
Steghide is a steganography program which embeds a secret message
in a cover file by replacing some of the least significant bits of
the cover file with bits of the secret message. After that, the
secret message is imperceptible and can only be extracted with the
correct passphrase. To increase invisibility the hidden bits are
encrypted (using the blowfish encryption algorithm) and
pseudo-randomly spreaded in the stego file. Steghide is able to
embed data in BMP, WAV and AU files.

%prep

%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p1
%patch5 -p1

%build
rm -f configure
libtoolize --force --copy; aclocal -I m4; autoheader; automake --add-missing --copy --foreign; autoconf
#touch NEWS ChangeLog AUTHORS

export CPPFLAGS="%{optflags}"
%configure
%make

%install
%makeinstall_std

# add the html docs
rm -rf html; cp -r doc/doxygen/html .

# fix this
rm -rf %{buildroot}%{_datadir}/doc

%find_lang %{name}

%files -f %{name}.lang
%doc BUGS CREDITS HISTORY INSTALL README TODO html
%{_bindir}/steghide
%{_mandir}/man1/steghide.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 8999 |21cr|stella-6.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	An Atari 2600 Video Computer System emulator
Name:		stella
Version:	6.7
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		https://github.com/stella-emu/stella
Source0:	https://github.com/stella-emu/stella/releases/download/%{version}/%{name}-%{version}-src.tar.xz
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)

%description
The Atari 2600 Video Computer System (VCS), introduced in 1977, was the most
popular home video game system of the early 1980's. This emulator will run
most Atari ROM images, so that you can play your favorite old Atari 2600 games
on your PC.

%files
%{_docdir}/%{name}/*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1
perl -pi -e "s|$(INSTALL) -c -s|$(INSTALL) -c|" Makefile

%build
%setup_compile_flags
touch configure.in
./configure \
	--enable-cheats		\
	--enable-debugger	\
	--enable-joystick	\
	--enable-shared		\
	--enable-sound		\
	--docdir=%{_docdir}/%{name} \
	--prefix=%{_prefix}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9000 |21cr|stellarium-23.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Desktop planetarium
Name:		stellarium
Version:	23.2
Release:	1
License:	GPLv2+
Group:		Sciences/Astronomy
Url:		http://www.stellarium.org
Source0:	https://github.com/Stellarium/stellarium/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source2:	https://github.com/indilib/indi/archive/v2.0.2.zip
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	imagemagick
BuildRequires:	ninja
BuildRequires:	qt6-cmake
BuildRequires:	qt6-linguist-tools
BuildRequires:	qt6-qtdeclarative
BuildRequires:	qt6-qtwebengine
BuildRequires:	calcmysky-devel
BuildRequires:	cmake(Qt6Charts)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Help)
BuildRequires:	cmake(Qt6Multimedia)
BuildRequires:	cmake(Qt6MultimediaWidgets)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6Positioning)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6SerialPort)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6WebEngineWidgets)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(QXlsxQt6)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(vulkan)

%description
Stellarium renders 3D photo-realistic skies in real time.
With stellarium, you really see what you can see with your eyes,
binoculars or a small telescope.

%files
%doc README.md CREDITS.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/org.%{name}.Stellarium.desktop
%{_datadir}/metainfo/org.%{name}.Stellarium.appdata.xml
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man1/*.1.*
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i "s/ShowMySky REQUIRED/ShowMySky-Qt6 REQUIRED/" CMakeLists.txt
mkdir -p build/_deps/indiclient-subbuild/indiclient-populate-prefix/src/
cp %{SOURCE2} build/_deps/indiclient-subbuild/indiclient-populate-prefix/src/

%build
%cmake	\
	-G Ninja		\
	-DENABLE_GPS=OFF	\
	-DENABLE_MEDIA=OFF
export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%ninja_build

%install
export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%ninja_install -C build

install -d -m 755 %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert %{buildroot}%{_datadir}/stellarium/data/stellarium.ico[1] \
	%{buildroot}%{_liconsdir}/stellarium.png
convert %{buildroot}%{_datadir}/stellarium/data/stellarium.ico[2] \
	%{buildroot}%{_iconsdir}/stellarium.png
convert %{buildroot}%{_datadir}/stellarium/data/stellarium.ico[4] \
	%{buildroot}%{_miconsdir}/stellarium.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9001 |21cr|stepmania-5.0.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable support for mp3.
%bcond_without mp3

Summary:	A dance and rhythm game
Name:		stepmania
Version:	5.0.12
Release:	3
# GPL, because of ffmpeg and MAD library.
License:	GPL
Group:		Games/Arcade
Url:		http://www.stepmania.com/download/
Source0:	https://github.com/stepmania/stepmania/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

Patch2:		stepmania-5.0.9-mga-unbundle-libs.patch
Patch3:		stepmania-5.0.12-ffmpeg3.patch

BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	bzip2-devel
%if %{with ffmpeg}
BuildRequires:	ffmpeg-devel
%endif
BuildRequires:	jpeg-devel
%if %{with mp3}
BuildRequires:	mad-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
ExcludeArch:	%{armx}
Requires:	%{name}-data = %{version}-%{release}
Recommends:	stepmania-stepmix1

%description
StepMania is a free dance and rhythm game. It features 3D graphics, 
keyboard and dance pad support, and an editor for creating your own steps.
To add songs, simply copy the content of your folder containing songs 
to ~/.stepmania-5.0/Songs.

%files
%doc Manual/
%doc Docs/SimfileFormats/ Docs/Themerdocs/ Docs/Userdocs/
%doc Docs/Changelog*
%doc Docs/{CommandLineArgs.txt,CourseFormat.txt,credits.txt,Licenses.txt}
%doc Docs/KnownIssues.txt
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}-ssc.*
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%package data
Summary:	Data files for StepMania
Obsoletes:	stepmania-data < 5.0
BuildArch:	noarch

%description data
This package contains arch-independent data files for StepMania.

%files data
%{_gamesdatadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -G Ninja \
	-DWITH_SYSTEM_FFMPEG=ON \
%if %{with mp3}
	-DWITH_MP3=ON
%else
	-DWITH_MP3=OFF
%endif

%ninja_build

%install
# By default, StepMania 5.0 installs everything to /usr/stepmania-5, which 
# is difficult to override. Installing manually.
install -D -m 755 %{name} %{buildroot}%{_gamesbindir}/%{name}

install -d %{buildroot}%{_iconsdir}
cp -af icons/hicolor %{buildroot}%{_iconsdir}/

install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -af \
	Announcers \
	BackgroundEffects \
	BackgroundTransitions \
	BGAnimations \
	Characters \
	Courses \
	Data \
	NoteSkins \
	Scripts \
	Songs \
	Themes \
	%{buildroot}%{_gamesdatadir}/%{name}/

install -d %{buildroot}%{_datadir}/applications

cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=StepMania
Name[ru]=StepMania
Comment=A dance and rhythm game
Comment[ru]=Танцевальная игра StepMania
Exec=%{_gamesbindir}/%{name}
Icon=%{name}-ssc
Type=Application
Terminal=false
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9002 |21cr|stepmania-stepmix1-1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	StepMania StepMix1 song pack
Name:		stepmania-stepmix1
Version:	1
Release:	11
# from http://www.tfbw.com/dancegames/songs/
License:	Creative Commons Attribution/Attribution-ShareAlike 2.5
Group:		Games/Arcade
Url:		http://www.stepmania.com/wiki/StepMix_1_Contest
Source0:	http://files.tfbw.com/stepmania/songs/StepMania_all_StepMix1_entries.smzip
Requires:	stepmania >= 5.0
BuildArch:	noarch

%description
This packages contains the songs from the StepMania StepMix1 contest.

%files
%{_gamesdatadir}/stepmania/Packages/StepMix1.smzip

#----------------------------------------------------------------------------

%prep
%setup -q -c -T

%install
install -D -m 644 %{SOURCE0} %{buildroot}%{_gamesdatadir}/stepmania/Packages/StepMix1.smzip

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9003 |21cr|stfl-0.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0

%define libname   %mklibname %{name} %{major}
%define develname %mklibname -d %{name}

Summary:	Structured Terminal Forms Language
Name:		stfl
Version:	0.24
Release:	1
URL:		http://www.clifford.at/stfl/
Source0:	https://github.com/dennisschagt/stfl/archive/refs/tags/r0.24.tar.gz?/%{name}-%{version}.tar.gz
License:	LGPLv3+
Group:		Development/Other
BuildRequires:	ncurses-devel
BuildRequires:	perl-devel
# Python3 is not supported, nobody builds this binding and
# nobody uses it.
#BuildRequires:  python-devel
BuildRequires:	ruby
BuildRequires:	ruby-devel
BuildRequires:	swig
 
%description
STFL is a library which implements a curses-based widget set for text
terminals. The STFL API can be used from C, SPL, Python, Perl and
Ruby. Since the API is only 14 simple function calls big and there are
already generic SWIG bindings, it is very easy to port STFL to
other scripting languages.

A special language (the Structured Terminal Forms Language) is used to
describe STFL GUIs. The language is designed to be easy and fast to
write so an application programmer does not need to spend ages
fiddling around with the GUI and can concentrate on the more
interesting programming tasks.

#--------------------------------------------------------------------

%package -n	%{libname}
Summary:	Structured Terminal Forms Language library
Group:		System/Libraries

%description -n	%{libname}
STFL is a library which implements a curses-based widget set for text
terminals.

This package contains the shared library required for running programs
that use STFL.

%files -n %{libname}
%{_libdir}/libstfl.so.%{major}*

#--------------------------------------------------------------------

%package -n	%{develname}
Summary:	Structured Terminal Forms Language development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
STFL is a library which implements a curses-based widget set for text
terminals.

This package contains the C headers and other files needed to compile
programs that use STFL.

%files -n %{develname}
%doc COPYING README
%{_includedir}/stfl.h
%{_libdir}/libstfl.a
%{_libdir}/libstfl.so
%{_libdir}/pkgconfig/stfl.pc

#--------------------------------------------------------------------

#%package -n	python-%{name}
#Summary:	Structured Terminal Forms Language Python bindings
#
#Group:		Development/Python
#
#%description -n	python-%{name}
#STFL is a library which implements a curses-based widget set for text
#terminals.
#
#This package contains the bindings needed to use STFL with Python.

#%files -n python-%{name}
# XXX: python extension should likely not be located under this directory..
#%{py2_dyndir}/_stfl.so
#%dir %{py2_platsitedir}/lib-dynload
#%{py2_platsitedir}/lib-dynload/_stfl.so
#%{py2_platsitedir}/stfl.py*

#--------------------------------------------------------------------

%package -n	perl-%{name}
Summary:	Structured Terminal Forms Language Perl bindings
Group:		Development/Perl

%description -n	perl-%{name}
STFL is a library which implements a curses-based widget set for text
terminals.

This package contains the bindings needed to use STFL with Perl.

%files -n perl-%{name}
%{perl_vendorarch}/example.pl
%{perl_vendorarch}/stfl.pm
%dir %{perl_vendorarch}/auto/stfl
%{perl_vendorarch}/auto/stfl/stfl.so
%{perl_vendorarch}/example2.pl

#--------------------------------------------------------------------

%package -n	ruby-%{name}
Summary:	Structured Terminal Forms Language Ruby bindings
Group:		Development/Ruby

%description -n	ruby-%{name}
STFL is a library which implements a curses-based widget set for text
terminals.

This package contains the bindings needed to use STFL with Ruby.

%files -n ruby-%{name}
%{ruby_libarchdir}/stfl.so

#--------------------------------------------------------------------
%prep
%setup -q -n %{name}-r%{version}

sed -i 's,$(prefix)/lib,/%{_libdir},g' python/Makefile.snippet
sed -i 's,$(prefix)/lib,/%{_libdir},g' ruby/Makefile.snippet
sed -i 's,$(prefix)/$(libdir)/ruby,%{ruby_libarchdir},g' ruby/Makefile.snippet
sed -i 's,libdir=lib,libdir=%{_libdir},g' Makefile 
#sed -i "s,cd python && python -c 'import stfl',python -mcompileall .," python/Makefile.snippet
sed -i 's,export prefix ?= /usr/local,export prefix ?= %{_prefix},g' Makefile.cfg
sed -i 's,mkdir -p \$(DESTDIR)\$(prefix)/lib/pkgconfig,mkdir -p \$(DESTDIR)%{_libdir}/pkgconfig,g' Makefile
sed -i 's,libstfl.a \$(DESTDIR)\$(prefix)/lib/,libstfl.a \$(DESTDIR)%{_libdir},g' Makefile
sed -i 's,stfl.pc \$(DESTDIR)\$(prefix)/lib/pkgconfig/,stfl.pc \$(DESTDIR)%{_libdir}\/pkgconfig/,g' Makefile
sed -i.path -e '/mkdir.*lib-dynload/d' -e '/cp/s|lib-dynload||' python/Makefile.*

%build

CFLAGS="%{optflags}" LDFLAGS="%{ldflags}" %make

%install
%makeinstall_std prefix=%{_prefix} libdir=%{_lib} sitearchdir=%{buildroot}%{ruby_libarchdir}

# fix rpmlint error
strip %{buildroot}%{_libdir}/libstfl.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9004 |21cr|stgit-2.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Stacked GIT
Name:		stgit
Version:	2.0.4
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		https://stacked-git.github.io/
Source0:	https://github.com/stacked-git/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
# make with command: `cargo vendor && tar czf vendor.tar.gz vendor`
Source1:	vendor.tar.gz
# use vendor directory on build
Patch0:		use-vendor-archive.patch
# no rust on these architectures yet
ExcludeArch:	%{e2k} %{riscv}
BuildRequires:	cargo
BuildRequires:	pkgconfig(openssl)
BuildRequires:	asciidoc
BuildRequires:	xmlto
Requires:	git-core
Recommends:	bzip2
Recommends:	curl

%description
Stacked Git, StGit for short, is an application for managing Git commits
as a stack of patches.

With a patch stack workflow, multiple patches can be developed concurrently
and efficiently, with each patch focused on a single concern, resulting
in both a clean Git commit history and improved productivity.

%files
%doc AUTHORS.md README.md CHANGELOG.md
%license COPYING
%{_bindir}/stg
%{_datadir}/bash-completion/completions/stg
%{_datadir}/fish/vendor_completions.d/stg.fish
%{_datadir}/zsh/site-functions/_stg
%{_datadir}/emacs/site-lisp/stgit.el
%{_datadir}/vim/vimfiles/ftdetect/stg.vim
%{_datadir}/vim/vimfiles/syntax/stg*.vim
%{_mandir}/man1/stg*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make_build

%install
%make_install prefix=%{_prefix} \
	install-completion \
	install-contrib \
	install-man

%check
%make_build unit-test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9005 |21cr|stickynotes-0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		stickynotes
Version:	0.6
Release:	2
Summary:	Colorful Sticky Notes
Group:		Text tools
License:	GPLv3
URL:		https://github.com/AKotov-dev/StickyNotes
Source0:	https://github.com/AKotov-dev/StickyNotes/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	stickynotes
Source2:	stickynotes.png
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	gtk2


%description
Simple, colorful sticky notes to use at work every day

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#------------------------------------------------------------------
%prep
%setup -n StickyNotes-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{name}.desktop %{buildroot}%{_datadir}/applications/
cp %{name}.desktop %{buildroot}%{_datadir}/%{name}/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9006 |21cr|stjerm-0.14-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GTK+-based drop-down terminal emulator
Name:		stjerm
Version:	0.14
Release:	4
Group:		Terminals	
License:	GPLv2
URL:		http://code.google.com/p/stjerm-terminal-emulator/
Source0:	http://stjerm-terminal-emulator.googlecode.com/files/%{name}-%{version}.tar.xz

BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(vte)

%description
Stjerm is a GTK+-based drop-down terminal emulator similar to the consoles used
in PC games such as Quake and Half-Life2. Stjerm sets itself apart from similar
programs by providing a minimalistic interface combined with a small file size,
lightweight memory usage and easy integration with composite window managers
such as Compiz.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%doc AUTHORS COPYING ChangeLog README TODO NEWS
%{_bindir}/%{name}
%{_mandir}/man8/stjerm.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9007 |21cr|stlink-1.7.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -Wno-strict-aliasing

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Tool set to program and debug STM32 devices
Name:		stlink
Version:	1.7.0
Release:	3
License:	BSD-3
Group:		Development/Tools
Url:		https://github.com/stlink-org/stlink
Source0:	https://github.com/stlink-org/stlink/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  libusb-devel
BuildRequires:  pkgconfig(libcanberra-gtk3)

%description
Stlink is an open source toolset to program and debug STM32 devices and boards manufactured by STMicroelectronics.
The STlink toolset includes:

st-info - a programmer and chip information tool
st-flash - a flash manipulation tool
st-trace - a logging tool to record information on execution
st-util - a GDB server (supported in Visual Studio Code / VSCodium via the Cortex-Debug plugin)
stlink-lib - a communication library
stlink-gui - GUI for stlink

%files
%{_udevrulesdir}/*.rules
%{_datadir}/applications/stlink-gui.desktop
%{_bindir}/st-*
%{_bindir}/stlink-gui
%{_sysconfdir}/modprobe.d/stlink_v1.conf
%{_datadir}/icons/hicolor/scalable/apps/stlink-gui.svg
%{_datadir}/man/man1/st-*.1*
%{_datadir}/stlink

#--------------------------------------------------------------
%package -n %{libname}
Summary:	%{name} shared library
Group:		Development/Tools

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files of stlink
Group:		Development/Tools
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and static library for stlink

%files -n %{devname}
%{_includedir}/stlink
%{_libdir}/libstlink.a
%{_libdir}/libstlink.so

#-------------------------------------------------__------------------
%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9008 |21cr|stopmotion-0.8.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname linuxstopmotion
%define	git_commit e519f61597c826701d4c8a9c3efc0dc69e4cd0e9

Summary:	An application for creating stopmotion animations
Name:		stopmotion
Version:	0.8.6
Release:	2
License:	GPLv2+
Group:		Video
Url:		http://linuxstopmotion.sourceforge.net/
Source0:	%{oname}-code-%{git_commit}.tar.xz
# Needed for icons
BuildRequires:	librsvg
BuildRequires:	qt5-linguist-tools
BuildRequires:	inotifytools-devel
BuildRequires:	libtar-devel
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(vorbis)
Requires:	vgrabbj

%description
This is a free application for creating stop-motion animation movies. The
users will be able to create stop-motions from pictures imported from a camera
or from the harddrive, add sound effects and export the animation to different
video formats such as MPEG or AVI.

%files
%doc README.md AUTHORS COPYING manual/
%{_docdir}/%{name}/html/*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/%{name}.svg

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-code-%{git_commit}


%build
%qmake_qt5 PREFIX=%{_prefix} TRANSLATIONS_PATH="%{_datadir}/stopmotion/translations/"
%make


%install
%makeinstall_qt

# Install icons of various sizes
for s in 256 128 96 48 32 22 16 ; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
	rsvg-convert -w ${s} -h ${s} graphics/%{name}.svg -o \
	%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9009 |21cr|stoqdrivers-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Fiscal driver collection
Name:		stoqdrivers
Version:	2.1.0
Release:	1
License:	LGPL
Group:		System/Libraries
URL:		http://www.stoq.com.br/
Source0:	https://github.com/stoq/stoqdrivers/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		stoqdrivers-requires.patch
BuildRequires:	python3-devel
BuildRequires:	python3-pytest
BuildRequires:	python3-zope-interface
BuildRequires:	pyproject-rpm-macros
%generate_buildrequires
%pyproject_buildrequires -r

%description
This is a powerful collection of device drivers written in Python and totally
focused on retail systems. Stoqdrivers also offers an unified API for devices
like fiscal printers which makes it easy to embed in many applications.

%files -f %{pyproject_files}
%doc AUTHORS ChangeLog COPYING NEWS README.md

#----------------------------------------------------------------------
%prep
%autosetup -p1

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9010 |21cr|stow-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Separate software packages manager
Name:		stow
Version:	2.3.1
Release:	1
License:	GPL
Group:		System/Configuration/Packaging
Source0:	http://ftp.gnu.org/gnu/stow/%{name}-%{version}.tar.gz
URL:		http://www.gnu.org/software/stow/
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(IO::Scalar)
BuildArch:	noarch

%description
GNU Stow is a program for managing the installation of software packages,
keeping them separate (/usr/local/stow/emacs vs. /usr/local/stow/perl, for
example) while making them appear to e installed in the same place
(/usr/local).

%prep
%autosetup -p1

%build
%configure --with-pmdir=%{perl_vendorlib}
%make

%install
%makeinstall_std

%check
make check

%files
%doc %{_docdir}/stow
%{_bindir}/*
%{_infodir}/*
%{_mandir}/man8/stow.*
%{perl_vendorlib}/Stow/*.pm
%{perl_vendorlib}/*.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9011 |21cr|stp-2.3.3-0.git33b635.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 33b6355fe8b342d00a07f43c238b04a1ff884b2e
%define commit_short %(echo %{commit} | head -c6)

%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Constraint solver used by program analysis tools
Name:		stp
Version:	2.3.3
Release:	0.git%{commit_short}.1
License:	MIT and BSD
Group:		Development/Other
Url:		https://sites.google.com/site/stpfastprover/
Source0:	https://github.com/stp/stp/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	bison
BuildRequires:	boost-devel
BuildRequires:	flex
BuildRequires:	minisat-devel
BuildRequires:	cryptominisat-devel
BuildRequires:	cmake
# build man not work, help2man error
#BuildRequires:	help2man
BuildRequires:	pkgconfig(zlib)

%description
STP is a constraint solver (also referred to as a decision procedure or
automated prover) aimed at solving constraints generated by program analysis
tools, theorem provers, automated bug finders, biology, cryptography,
intelligent fuzzers and model checkers. STP has been used in many research
projects at Stanford, Berkeley, MIT, CMU and other universities. It is also
being used at many companies such as NVIDIA, some startup companies, and
by certain government agencies.

The input to STP are formulas over the theory of bit-vectors and arrays
(This theory captures most expressions from languages like C/C++/Java and
Verilog), and the output of STP is a single bit of information that
indicates whether the formula is satisfiable or not. If the input is
satisfiable, then it also generates a variable assignment to satisfy the
input formula.

%files
%doc README* LICENSE* AUTHORS
%{_bindir}/*

#------------------------------------------------------------------
%package -n python3-%{name}
Summary:	%{name} python bindings
Group:		Development/Python
Provides:	python-%{name} = %{EVRD}

%description -n python3-%{name}
%{name} python bindings.

%files -n python3-%{name}
%{python3_sitelib}/stp

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%{_includedir}/stp
%{_libdir}/cmake/STP
%{_libdir}/*.so

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9012 |21cr|stratagus-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}
%global	_enable_debug_packages %{nil}

Summary:	A real time strategy game engine
Name:		stratagus
Version:	3.3.2
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://stratagus.com/
Source0:	https://github.com/Wargus/stratagus/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		stratagus-3.3.2-drop-c++17.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	bzip2-devel
BuildRequires:	gomp-devel
BuildRequires:	tolua++-devel
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(libmng)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)
# Without one of the packages below stratagus crashes on start
# beacuse it cannot find any game to be run. But we cannot
# require them because they in turn require stratagus...
Recommends:	war1gus = %{version}
Recommends:	wargus = %{version}

%description
Stratagus is a free cross-platform real-time strategy gaming engine.
It includes support for playing over the internet/LAN, or playing a computer
opponent. The engine is configurable and can be used to create games with a
wide-range of features specific to your needs.

%files
%doc README.md doc/*
%{_gamesbindir}/%{name}
%{_bindir}/png2stratagus

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description devel
This package contains development files for %{name}.

%files devel
%{_includedir}/%{name}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CXXFLAGS="%{optflags} -Wno-error=strict-aliasing"
%cmake -DENABLE_DEV=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9013 |21cr|strawberry-1.0.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Audio player and music collection organizer forked from Clementine (and Clementine from Amarok 1.4)
Name:		strawberry
Release:	1
Version:	1.0.21
License:	GPLv2 and GPLv3+ and LGPLv2 and ASL 2.0 and MIT and Boost
Group:		Sound
Url:		https://www.strawberrymusicplayer.org/
Source0:	https://github.com/strawberrymusicplayer/strawberry/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	cmake(qt6)
BuildRequires:	qmake-qt6
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gstreamer-tag-1.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtest)
BuildRequires:	pkgconfig(icu-io)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libebur128)
BuildRequires:	pkgconfig(libgpod-1.0)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libplist-2.0)
BuildRequires:	pkgconfig(libusbmuxd-2.0)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(protobuf) >= 3.3.2
BuildRequires:	pkgconfig(taglib) >= 1.11.1
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6LinguistTools)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(absl)
BuildRequires:	qt6-qttools
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	vulkan-headers


Requires:	gstreamer1.0-tools
Requires:	gstreamer1.0-flac
Requires:	gstreamer1.0-plugins-ugly
Requires:	gstreamer1.0-plugins-bad
Suggests:	gstreamer1.0-decoders-audio
# Needed to be able to mount ipod/iphone/ipad (not tested locally) but it's also pulling gvfs
# which is need at least to mount mtp devices (tested locally)
Suggests:	gvfs-iphone
# Need for listen music from some online sources like Google Drive or SoundCloud (bug 2133)
Recommends:	glib-networking

%description
Strawberry is a music player and music collection organizer. It is a fork of Clementine released in 2018 aimed at music collectors and audiophiles. 
It's written in C++ using the Qt toolkit.

%files
%{_bindir}/strawberry
%{_bindir}/strawberry-tagreader
%{_datadir}/applications/org.strawberrymusicplayer.strawberry.desktop
%{_iconsdir}/hicolor/*x*/apps/strawberry.png
%{_datadir}/metainfo/org.strawberrymusicplayer.strawberry.appdata.xml
%{_mandir}/man1/strawberry-tagreader.1.*
%{_mandir}/man1/strawberry.1.*
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake \
	-DCMAKE_BUILD_TYPE:STRING=Release \
	-DBUILD_WERROR=OFF \
	-DBUILD_WITH_QT6=ON

%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9014 |21cr|streamripper-1.64.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Audio stream recorder
Name:		streamripper
Version:	1.64.6
Release:	6
Group:		Sound
URL:		http://sourceforge.net/projects/streamripper
License:	GPLv2+
Source0:	http://mesh.dl.sourceforge.net/sourceforge/streamripper/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	tre-devel
BuildRequires:	pkgconfig(mad)

%description
Streamripper records shoutcast compatible and live365 streams.
For shoutcast style streams it finds the "meta data" or track
separation data, and uses that as a marker for where the track
should be separated. For live365 streams it hits the website 
and finds when a track has changed. Either way, the MP3 data 
will be decoded and scanned for a silent point which is where 
tracks will be created.

%files
%defattr(-,root,root)
%doc README THANKS *.txt
%_bindir/*
%_mandir/man1/*

#----------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9015 |21cr|streamtuner-2.1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _name   streamtuner2

Name:           streamtuner
Version:        2.1.9
Release:        2
Summary:        An internet radio browser
Group:          Sound
License:        Public Domain
URL:            http://sourceforge.net/projects/streamtuner2/
Source0:        http://downloads.sf.net/streamtuner2/streamtuner2-%{version}.src.txz
Patch0:         streamtuner2-default-config-desktop-file.patch
BuildRequires:  findutils
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig(python2)
Requires:       python
Requires:       python-chardet
Requires:       python-keybinder
Requires:       python-lxml
Requires:       python-pyquery
Requires:       python-requests
Requires:       python-simplejson
Requires:       pygtk2
Requires:       pyxdg
Requires:       audacious
Requires:       perl
Requires:       xterm
# required for youtube record
Requires:       youtube-dl
BuildArch:      noarch


%description
Streamtuner lists radio directory services like Shoutcast, Xiph, Live365, 
MyOggRadio, Jamendo. It allows listening via any audio player and recording of
streams via streamripper.
This is streamtuner2 which mimics the older streamtuner 0.99.99 application
in look and feel. But it's an independent rewrite and runs on Python;
is therefore easier to extend.

%prep
%setup -qn %{_name}
%patch0 -p1 -b .default-config-desktop-file

%build

%install
install -Dpm 755 bin %{buildroot}/%{_bindir}/%{_name}
install -Dpm 644 %{_name}.desktop %{buildroot}/%{_datadir}/applications/%{_name}.desktop
install -Dpm 644 icon.png %{buildroot}/%{_datadir}/pixmaps/%{_name}.png

mkdir %{buildroot}/%{_datadir}/%{_name}
files=`find . -maxdepth 1 -type f -name "*.py" -or -name "*.png" -or -name "*.xml" -or -name "*.xml.gz"`
for f in $files
    do install -pm 644 $f %{buildroot}/%{_datadir}/%{_name}/
done

# Permission correction
chmod 0755 %{buildroot}/%{_datadir}/%{_name}/st2.py

# Gnome help browser
mkdir -p %{buildroot}%{_datadir}/doc/%{_name}/help
cp -rp help %{buildroot}%{_datadir}/doc/%{_name}

# Channels
mkdir %{buildroot}/%{_datadir}/%{_name}/channels
pushd channels
files=`find . -maxdepth 1 -type f -name "*.py*" -or -name "*.png"`
for f in $files
    do install -pm 644 $f %{buildroot}/%{_datadir}/%{_name}/channels/
done
popd

# Fix encoding issues
for file in README; do
   sed 's|\r||' $file > $file.tmp
   iconv -f ISO-8859-1 -t UTF8 $file.tmp > $file.tmp2
   touch -r $file $file.tmp2
   mv -f $file.tmp2 $file
done

sed -i -e 's/^Value=/Version=/g' %{buildroot}%{_datadir}/applications/%{_name}.desktop

# install man file
install -Dpm 644 help/streamtuner2.1 %{buildroot}%{_mandir}/man1/streamtuner2.1

desktop-file-install                         \
  --dir %{buildroot}%{_datadir}/applications \
  --add-category Audio                       \
  --add-category Tuner                       \
  --add-category GTK                         \
  --delete-original                          \
  %{buildroot}%{_datadir}/applications/%{_name}.desktop

%files
%doc README
%{_bindir}/%{_name}
%{_datadir}/applications/%{_name}.desktop
%{_datadir}/pixmaps/%{_name}.png
%{_datadir}/%{_name}/
%{_datadir}/doc/%{_name}/
%{_mandir}/man1/streamtuner2.1.*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9016 |21cr|stress-1.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool which imposes a configurable amount of load on your system
Name:		stress
Version:	1.0.4
Release:	4
License:	GPL
Group:		System/Kernel and hardware
Url:		http://weather.ou.edu/~apw/projects/stress/
Source:		http://weather.ou.edu/~apw/projects/stress/%{name}-%{version}.tar.gz

%description
stress is a tool which imposes a configurable amount of CPU, memory, I/O, or
disk stress on a POSIX-compliant operating system. It is written in
highly-portable ANSI C, and uses the GNU Autotools to compile on a great number
of UNIX-like operating systems.

stress is not a benchmark. It is a tool used by system administrators to
evaluate how well their systems will scale, by kernel programmers to evaluate
perceived performance characteristics, and by systems programmers to expose the
classes of bugs which only or more frequently manifest themselves when the
system is under heavy load. 

%files
%{_bindir}/stress
%{_infodir}/stress.info.*
%{_mandir}/man1/*

#--------------------------------------------------------------

%prep
%setup

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9017 |21cr|stress-ng-0.15.00-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool which imposes a configurable amount of load on your system
Name:		stress-ng
Version:	0.15.00
Release:	1
License:	GPL
Group:		System/Kernel and hardware
Url:		https://github.com/ColinIanKing/stress-ng
Source:		https://github.com/ColinIanKing/stress-ng/archive/refs/tags/V%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	make
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libkeyutils)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	libaio-devel

%description
Stress test a computer system in various ways. It was designed to exercise
various physical subsystems of a computer as well as the various operating
system kernel interfaces.

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/bash-completion/completions/%{name}

#--------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
%make

%install
install -p -m 755 -D %{name} %{buildroot}%{_bindir}/%{name}
install -p -m 644 -D %{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
install -pm 644 bash-completion/%{name} %{buildroot}%{_datadir}/bash-completion/completions/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9018 |21cr|strigi-0.7.8-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Desktop Search
Name:		strigi
Version:	0.7.8
Release:	28
Epoch:		1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://strigi.sourceforge.net
Source0:	http://www.vandenoever.info/software/strigi/%{name}-%{version}.tar.bz2
Patch0:		strigi-0.7.7-missinglink.patch
Patch1:		strigi-0.7.8-ffmpeg3.patch
Patch2:		strigi-0.7.8-ffmpeg4.patch
Patch3:		strigi-0.7.8-gcc.patch
# Fix build with exiv2 0.27+
Patch4:		strigi-0.7.8-exiv2-0.27.patch
BuildRequires:	cmake
BuildRequires:	attr-devel
BuildRequires:	bzip2-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	magic-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libclucene-core)
BuildRequires:	pkgconfig(openssl)
Obsoletes:	%{mklibname cluceneindex 0} < 0.7.7-2

%description
Here are the main features of Strigi:

    * very fast crawling
    * very small memory footprint
    * no hammering of the system
    * pluggable backend, currently clucene and hyperestraier, 
        sqlite3 and xapian are in the works
    * communication between daemon and search program over an 
        abstract interface, this is currently a simple socket 
        but implementation of dbus is a possibility. There's a 
        small perl program in the code as an example of how to 
        query. This is so easy that any KDE app could implement this.
    * simple interface for implementing plugins for extracting 
        information. we'll try to reuse the kat plugins, although 
        native plugins will have a large speed advantage
    * calculation of sha1 for every file crawled (allows fast finding
        of duplicates)

%files
%{_bindir}/*
%dir %{_libdir}/strigi
%{_libdir}/strigi/*
%{_datadir}/strigi/*
%{_datadir}/dbus-1/services/
%exclude %{_bindir}/strigiclient

#--------------------------------------------------------------------

%package gui
Summary:	Strigi interface
Group:		Graphical desktop/KDE

%description gui
Strigi interface

%files gui
%{_bindir}/strigiclient

#--------------------------------------------------------------------

%define searchclient_major 0
%define libsearchclient %mklibname searchclient %{searchclient_major}

%package -n %{libsearchclient}
Summary:	Strigi library
Group:		System/Libraries

%description -n %{libsearchclient}
Strigi library.

%files -n %{libsearchclient}
%{_libdir}/libsearchclient.so.%{searchclient_major}*

#--------------------------------------------------------------------

%define streamanalyzer_major 0
%define libstreamanalyzer %mklibname streamanalyzer %{streamanalyzer_major}

%package -n %{libstreamanalyzer}
Summary:	Strigi library
Group:		System/Libraries

%description -n %{libstreamanalyzer}
Strigi library.

%files -n %{libstreamanalyzer}
%{_libdir}/libstreamanalyzer.so.%{streamanalyzer_major}*

#--------------------------------------------------------------------

%define streams_major 0
%define libstreams %mklibname streams %{streams_major}

%package -n %{libstreams}
Summary:	Strigi library
Group:		System/Libraries

%description -n %{libstreams}
Strigi library.

%files -n %{libstreams}
%{_libdir}/libstreams.so.%{streams_major}*

#--------------------------------------------------------------------

%define strigihtmlgui_major 0
%define libstrigihtmlgui %mklibname strigihtmlgui %{strigihtmlgui_major}

%package -n %{libstrigihtmlgui}
Summary:	Strigi library
Group:		System/Libraries

%description -n %{libstrigihtmlgui}
Strigi library.

%files -n %{libstrigihtmlgui}
%{_libdir}/libstrigihtmlgui.so.%{strigihtmlgui_major}*

#--------------------------------------------------------------------

%define strigiqtdbusclient_major 0
%define libstrigiqtdbusclient %mklibname strigiqtdbusclient %{strigiqtdbusclient_major}

%package -n %{libstrigiqtdbusclient}
Summary:	Strigi library
Group:		System/Libraries

%description -n %{libstrigiqtdbusclient}
Strigi library.

%files -n %{libstrigiqtdbusclient}
%{_libdir}/libstrigiqtdbusclient.so.%{strigiqtdbusclient_major}*

#--------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libstrigihtmlgui} = %{EVRD}
Requires:	%{libstrigiqtdbusclient} = %{EVRD}
Requires:	%{libsearchclient} = %{EVRD}
Requires:	%{libstreamanalyzer} = %{EVRD}
Requires:	%{libstreams} = %{EVRD}
Requires:	strigi = %{EVRD}
Provides:	libstrigi-devel = %{EVRD}

%description devel
Development files for %{name}.

%files devel
%{_libdir}/*.so
%{_includedir}/strigi
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/LibSearchClient/LibSearchClientConfig.cmake
%{_libdir}/cmake/LibStreamAnalyzer/LibStreamAnalyzerConfig.cmake
%{_libdir}/cmake/LibStreamAnalyzer/LibStreamAnalyzerConfigVersion.cmake
%{_libdir}/cmake/LibStreams/LibStreamsConfig.cmake
%{_libdir}/cmake/LibStreams/LibStreamsTargets.cmake
%{_libdir}/cmake/LibStreams/LibStreamsTargets-noconfig.cmake
%{_libdir}/cmake/LibStreams/LibStreamsConfigVersion.cmake
%{_libdir}/cmake/Strigi

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .missinglink~
%patch1 -p1 -b .ffmpeg3~
%patch2 -p1 -b .ffmpeg4~
%patch3 -p1 -b .gcc~
%if %{mdvver} > 201610
%patch4 -p1 -b .exiv2~
%endif

%build
%global optflags %{optflags} -std=c++11
%cmake_qt4 -DCMAKE_INSTALL_LIBDIR=%{_lib}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9019 |21cr|strongswan-5.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%define Werror_cflags %%nil
%define	_disable_ld_no_undefined 1

%bcond_without nm

Summary:	IPSEC implementation
Name:		strongswan
Version:	5.7.2
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		https://www.strongswan.org/
Source0:	http://download.strongswan.org/%{name}-%{version}.tar.bz2
Patch1:         strongswan-5.6.0-uintptr_t.patch
Patch3:         strongswan-5.6.2-CVE-2018-5388.patch
Source100:	%{name}.rpmlintrc
BuildRequires:	gettext-devel
BuildRequires:	gmp-devel >= 4.1.4
BuildRequires:	openldap-devel
BuildRequires:	trousers-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3) >= 3.3.1
BuildRequires:	pkgconfig(systemd)
%if %{with nm}
BuildRequires:	pkgconfig(NetworkManager)
BuildRequires:	pkgconfig(libnm-glib-vpn)
BuildRequires:	pkgconfig(libnm-util)
BuildRequires:	pkgconfig(libnm-glib)
BuildRequires:	pkgconfig(libnm)
%endif
Requires(post,preun):	rpm-helper

%description
FreeS/WAN is a free implementation of IPSEC & IKE for Linux. IPSEC is the
Internet Protocol Security and uses strong cryptography to provide both
authentication and encryption services. These services allow you to build
secure tunnels through untrusted networks. Everything passing through the
untrusted net is encrypted by the ipsec gateway machine and decrypted by the
gateway at the other end of the tunnel. The resulting tunnel is a virtual
private network or VPN.
This package contains the daemons and userland tools for setting up FreeS/WAN
on a freeswan enabled kernel.

%files
%doc README COPYING NEWS TODO
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/ipsec.d/
%config(noreplace) %{_sysconfdir}/%{name}/ipsec.conf
%config(noreplace) %{_sysconfdir}/%{name}/ipsec.secrets
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_sysconfdir}/dbus-1/system.d/nm-%{name}-service.conf
%{_unitdir}/%{name}.service
%{_sysconfdir}/%{name}/%{name}.d
%{_sysconfdir}/%{name}/swanctl
%{_datadir}/%{name}/templates/config/plugins/*.conf
%{_datadir}/%{name}/templates/config/%{name}.conf
%{_datadir}/%{name}/templates/config/%{name}.d/*.conf
%{_datadir}/%{name}/templates/database/imv/*.sql
%{_libdir}/%{name}/libcharon.so.0
%{_libdir}/%{name}/libcharon.so.0.0.0
%{_libdir}/%{name}/libtls.so.0
%{_libdir}/%{name}/libtls.so.0.0.0
%{_libdir}/%{name}/libpttls.so.0
%{_libdir}/%{name}/libpttls.so.0.0.0
%{_libdir}/%{name}/libtpmtss.so.0
%{_libdir}/%{name}/libtpmtss.so.0.0.0
%{_libdir}/%{name}/lib%{name}.so.0
%{_libdir}/%{name}/lib%{name}.so.0.0.0
%{_libdir}/%{name}/libvici.so.0
%{_libdir}/%{name}/libvici.so.0.0.0
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/lib%{name}-aes.so
%{_libdir}/%{name}/plugins/lib%{name}-attr.so
%{_libdir}/%{name}/plugins/lib%{name}-cmac.so
%{_libdir}/%{name}/plugins/lib%{name}-constraints.so
%{_libdir}/%{name}/plugins/lib%{name}-counters.so
%{_libdir}/%{name}/plugins/lib%{name}-curve25519.so
%{_libdir}/%{name}/plugins/lib%{name}-des.so
%{_libdir}/%{name}/plugins/lib%{name}-dnskey.so
%{_libdir}/%{name}/plugins/lib%{name}-fips-prf.so
%{_libdir}/%{name}/plugins/lib%{name}-gmp.so
%{_libdir}/%{name}/plugins/lib%{name}-hmac.so
%{_libdir}/%{name}/plugins/lib%{name}-kernel-netlink.so
%{_libdir}/%{name}/plugins/lib%{name}-md5.so
%{_libdir}/%{name}/plugins/lib%{name}-mgf1.so
%{_libdir}/%{name}/plugins/lib%{name}-nonce.so
%{_libdir}/%{name}/plugins/lib%{name}-openssl.so
%{_libdir}/%{name}/plugins/lib%{name}-pem.so
%{_libdir}/%{name}/plugins/lib%{name}-pgp.so
%{_libdir}/%{name}/plugins/lib%{name}-pkcs1.so
%{_libdir}/%{name}/plugins/lib%{name}-pkcs8.so
%{_libdir}/%{name}/plugins/lib%{name}-pkcs12.so
%{_libdir}/%{name}/plugins/lib%{name}-rc2.so
%{_libdir}/%{name}/plugins/lib%{name}-sshkey.so
%{_libdir}/%{name}/plugins/lib%{name}-pubkey.so
%{_libdir}/%{name}/plugins/lib%{name}-random.so
%{_libdir}/%{name}/plugins/lib%{name}-resolve.so
%{_libdir}/%{name}/plugins/lib%{name}-revocation.so
%{_libdir}/%{name}/plugins/lib%{name}-sha1.so
%{_libdir}/%{name}/plugins/lib%{name}-sha2.so
%{_libdir}/%{name}/plugins/lib%{name}-socket-default.so
%{_libdir}/%{name}/plugins/lib%{name}-stroke.so
%{_libdir}/%{name}/plugins/lib%{name}-updown.so
%{_libdir}/%{name}/plugins/lib%{name}-x509.so
%{_libdir}/%{name}/plugins/lib%{name}-xauth-generic.so
%{_libdir}/%{name}/plugins/lib%{name}-xauth-eap.so
%{_libdir}/%{name}/plugins/lib%{name}-xcbc.so
%{_libdir}/%{name}/plugins/lib%{name}-md4.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-md5.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-gtc.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-tls.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-ttls.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-peap.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-mschapv2.so
%{_libdir}/%{name}/plugins/lib%{name}-farp.so
%{_libdir}/%{name}/plugins/lib%{name}-dhcp.so
%{_libdir}/%{name}/plugins/lib%{name}-curl.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-identity.so
%{_libdir}/%{name}/plugins/lib%{name}-vici.so
%{_libdir}/%{name}/plugins/lib%{name}-systime-fix.so
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/_copyright
%{_libexecdir}/%{name}/_updown
%{_libexecdir}/%{name}/charon
%{_libexecdir}/%{name}/scepclient
%{_libexecdir}/%{name}/starter
%{_libexecdir}/%{name}/stroke
%{_libexecdir}/%{name}/_imv_policy
%{_libexecdir}/%{name}/imv_policy_manager
#{_libexecdir}/%%{name}/pt-tls-client
%{_sbindir}/%{name}
%{_sbindir}/swanctl
%{_bindir}/pki
%{_bindir}/pt-tls-client
%{_mandir}/man5/%{name}.conf.5.*
%{_mandir}/man1/%{name}*.1.*
%{_mandir}/man5/%{name}_ipsec.conf.5.*
%{_mandir}/man5/%{name}_ipsec.secrets.5.*
%{_mandir}/man5/%{name}_swanctl.conf.5.*
%{_mandir}/man8/%{name}.8.*
%{_mandir}/man8/%{name}_scepclient.8.*
%{_mandir}/man8/%{name}_swanctl.8.*

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#%%postun
#%%_postun_userdel strongswan

#----------------------------------------------------------------------------

%if %{with nm}
%package	charon-nm
Summary:	NetworkManager plugin for Strongswan
Group:		System/Servers

%description charon-nm
NetworkManager plugin integrates a subset of Strongswan capabilities
to NetworkManager.

%files charon-nm
%doc COPYING
%{_libexecdir}/%{name}/charon-nm
%endif

#----------------------------------------------------------------------------

%package tnc-imcvs
Summary:	Trusted network connect (TNC)'s IMC/IMV functionality
Group:		System/Servers
Requires:	%{name} = %{version}

%description tnc-imcvs
This package provides Trusted Network Connect's (TNC) IMC and IMV
functionality. Specifically it includes PTS based IMC/IMV for TPM based
remote attestation and scanner and test IMCs and IMVs. The Strongswan's
IMC/IMV dynamic libraries can be used by any third party TNC Client/Server
implementation possessing a standard IF-IMC/IMV interface.

%files tnc-imcvs
%doc COPYING
%{_libdir}/%{name}/libimcv.so.0
%{_libdir}/%{name}/libimcv.so.0.0.0
%{_libdir}/%{name}/libtnccs.so.0
%{_libdir}/%{name}/libtnccs.so.0.0.0
%{_libdir}/%{name}/libradius.so.0
%{_libdir}/%{name}/libradius.so.0.0.0
%dir %{_libdir}/%{name}/imcvs
%{_libdir}/%{name}/imcvs/imc-attestation.so
%{_libdir}/%{name}/imcvs/imc-scanner.so
%{_libdir}/%{name}/imcvs/imc-test.so
%{_libdir}/%{name}/imcvs/imc-os.so
%{_libdir}/%{name}/imcvs/imv-attestation.so
%{_libdir}/%{name}/imcvs/imv-scanner.so
%{_libdir}/%{name}/imcvs/imv-test.so
%{_libdir}/%{name}/imcvs/imv-os.so
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/lib%{name}-pkcs7.so
%{_libdir}/%{name}/plugins/lib%{name}-sqlite.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-tnc.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-imc.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-imv.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-tnccs.so
%{_libdir}/%{name}/plugins/lib%{name}-tnccs-20.so
%{_libdir}/%{name}/plugins/lib%{name}-tnccs-11.so
%{_libdir}/%{name}/plugins/lib%{name}-tnccs-dynamic.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-radius.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-ifmap.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-pdp.so
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/attest

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1
%patch3 -p1

%build
libtoolize --install --copy --force --automake
aclocal -I m4
autoconf
autoheader
automake --add-missing --copy

%serverbuild
%configure \
    --disable-static \
    --with-ipsec-script=%{name} \
    --sysconfdir=%{_sysconfdir}/%{name} \
    --with-ipsecdir=%{_libexecdir}/%{name} \
    --with-ipseclibdir=%{_libdir}/%{name} \
    --with-fips-mode=2 \
    --enable-openssl \
    --enable-md4 \
    --enable-xauth-eap \
    --enable-eap-md5 \
    --enable-eap-gtc \
    --enable-eap-tls \
    --enable-eap-ttls \
    --enable-eap-peap \
    --enable-eap-mschapv2 \
    --enable-farp \
    --enable-dhcp \
    --enable-sqlite \
    --enable-tnc-ifmap \
    --enable-tnc-pdp \
    --enable-imc-test \
    --enable-imv-test \
    --enable-imc-scanner \
    --enable-imv-scanner  \
    --enable-imc-attestation \
    --enable-imv-attestation \
    --enable-imv-os \
    --enable-imc-os \
    --enable-eap-tnc \
    --enable-tnccs-20 \
    --enable-tnccs-11 \
    --enable-tnccs-dynamic \
    --enable-tnc-imc \
    --enable-tnc-imv \
    --enable-tss-trousers \
    --enable-eap-radius \
    --enable-curl \
    --enable-eap-identity \
    --enable-systime-fix \
%if %{with nm}
    --enable-nm \
%endif

%make
sed -i 's/\t/    /' src/starter/ipsec.conf


%install
%make_install

# Prefix man pages
for i in %{buildroot}%{_mandir}/*/*; do
	if echo "$i" | grep -vq '/%{name}[^\/]*$'; then
		mv "$i" "`echo "$i" | sed -re 's|/([^/]+)$|/%{name}_\1|'`"
	fi
done

# Delete unwanted library files
rm %{buildroot}%{_libdir}/%{name}/*.so
find %{buildroot} -type f -name '*.la' -delete

# Fix config permissions
chmod 644 %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf

# Protect configuration from ordinary user's eyes
chmod 700 %{buildroot}%{_sysconfdir}/%{name}

# Create ipsec.d directory tree.
install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/ipsec.d
for i in aacerts acerts certs cacerts crls ocspcerts private reqs; do
    install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/ipsec.d/${i}
done

# Put a conf file in the right spot
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d/
mv %{buildroot}%{_sysconfdir}/%{name}/dbus-1/system.d/nm-%{name}-service.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
rm -rf %{buildroot}%{_sysconfdir}/%{name}/dbus-1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9020 |21cr|stun-0.97-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        STUN server and client
Name:           stun
Version:        0.97
Release:        2
License:        BSD
Group:          System/Servers
URL:            https://sourceforge.net/projects/stun/
Source0:        http://downloads.sourceforge.net/%{name}/stund-%{version}.tgz
Source1:        stun-server.service
Source2:        stun-server.sysconfig
Patch0:         stund-0.94-mdk_conf.diff
BuildRequires:	dos2unix
BuildRequires:	openssl-devel

%description
The STUN (Simple Traversal of UDP through NATs (Network Address Translation))
server is an implementation of the STUN protocol that enables STUN
functionality in SIP-based systems. The STUN server tar ball also include a
client API to enable STUN functionality in SIP endpoints. In addition there is
a command line UNIX client and a graphical windows client that check what type
of NAT the user is using.

STUN is an application-layer protocol that can determine the public IP and
nature of a NAT device that sits between the STUN client and STUN server.

%package         server
Summary:         STUN server
Group:           System/Servers

%description     server
The STUN (Simple Traversal of UDP through NATs (Network Address Translation))
server is an implementation of the STUN protocol that enables STUN
functionality in SIP-based systems. The STUN server tar ball also include a
client API to enable STUN functionality in SIP endpoints. In addition there is
a command line UNIX client and a graphical windows client that check what type
of NAT the user is using.

STUN is an application-layer protocol that can determine the public IP and
nature of a NAT device that sits between the STUN client and STUN server.

This package contains the STUN server.

%package        client
Summary:        STUN client
Group:          System/Servers

%description    client
The STUN (Simple Traversal of UDP through NATs (Network Address Translation))
server is an implementation of the STUN protocol that enables STUN
functionality in SIP-based systems. The STUN server tar ball also include a
client API to enable STUN functionality in SIP endpoints. In addition there is
a command line UNIX client and a graphical windows client that check what type
of NAT the user is using.

STUN is an application-layer protocol that can determine the public IP and
nature of a NAT device that sits between the STUN client and STUN server.

This package contains the STUN client.

%prep

%autosetup -p1 -n stund

# strip away annoying ^M
find -type f -exec dos2unix -U {} \;

%build

%make CXXFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_unitdir}

install -m0755 stun-server %{buildroot}%{_sbindir}/stun-server
install -m0755 stun-client %{buildroot}%{_bindir}/stun-client

install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/stun-server.service
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/stun-server

# compat with Debian
( cd %{buildroot}%{_sbindir} && ln -s stun-server stund )
( cd %{buildroot}%{_bindir} && ln -s stun-client stun )

%post server
%systemd_post stun-server.service

%preun server
%systemd_preun stun-server.service

%files server
%doc nattest nattestwarning.txt rfc3489.txt
%attr(0644,root,root) %{_unitdir}/stun-server.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/stun-server
%attr(0755,root,root) %{_sbindir}/stun-server
%{_sbindir}/stund

%files client
%attr(0755,root,root) %{_bindir}/stun-client 
%{_bindir}/stun

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9021 |21cr|sub2srt-0.5.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert subtitles from .sub to subviewer .srt format
Name:		sub2srt
Version:	0.5.5
Release:	3
License:	GPL
Group:		Video
URL:		http://www.robelix.com/sub2srt/
Source0:	https://github.com/robelix/sub2srt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
sub2srt is a simple tool to convert 2 common subtitle formats (microdvd
and subrip - both are known as ".sub") to subviewer ".srt" format.

%prep
%setup -q

%build

%install
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9022 |21cr|subdownloader-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automatic subtitle downloader/uploader
Name:		subdownloader
Version:	2.1.0
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://subdownloader.net/
Source:		https://github.com/subdownloader/subdownloader/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	python3-qt5-devel
BuildRequires:	python3egg(sphinx)
Requires:	python3-qt5-gui
BuildArch:	noarch

%description
Open Source tool written in Python for automatic download/upload
subtitles for videofiles (DIVX,MPEG,AVI,VOB,etc) and DVD's using fast
hashing.

%files -f %{name}.lang
%doc ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/%{name}.png
%{python3_sitelib}/subdownloader
%{python3_sitelib}/subdownloader-*-py*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

# move locale to right place
install -d -m755 %{buildroot}%{_datadir}/locale
mv %{buildroot}%{python3_sitelib}/subdownloader/client/locale/* %{buildroot}%{_datadir}/locale
find %{buildroot}%{_datadir}/locale -name *.po -exec rm {} \;
rm %{buildroot}%{_datadir}/locale/*.pot


install -d -m755 %{buildroot}%{_datadir}/applications
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications

for i in 64x64 48x48 32x32 16x16; do
    install -d -m755 %{buildroot}%{_iconsdir}/hicolor/$i
    convert scripts/gui/rc/images/%{name}.png -resize $i %{buildroot}%{_iconsdir}/hicolor/$i/%{name}.png
done

install -d -m755 %{buildroot}%{_liconsdir} %{buildroot}%{_miconsdir}
ln %{buildroot}%{_iconsdir}/hicolor/48x48/%{name}.png %{buildroot}%{_liconsdir}
ln %{buildroot}%{_iconsdir}/hicolor/32x32/%{name}.png %{buildroot}%{_iconsdir}
ln %{buildroot}%{_iconsdir}/hicolor/16x16/%{name}.png %{buildroot}%{_miconsdir}

%find_lang %{name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9023 |21cr|sublib-0.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A library that eases the development of subtitling applications
Name:		sublib
Version:	0.9
Release:	10
License:	GPLv2+
Group:		System/Libraries
Url:		http://sublib.sourceforge.net/
Source0:	http://downloads.sourceforge.net/sublib/%{name}-%{version}.zip
Patch0:		sublib-0.9-mcs.patch
BuildRequires:	pkgconfig(mono)

%description
SubLib is a library that eases the development of subtitling applications.
It supports the most common text-based subtitle formats and allows for
subtitle editing, conversion and synchronization.

%files
%doc README CREDITS NEWS ChangeLog
%{_libdir}/sublib/sublib.dll

#----------------------------------------------------------------------------

%package devel
Summary:	SubLib development files
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
This package contains all files that are needed to build against %{name}.

%files devel
%{_libdir}/pkgconfig/sublib.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9024 |21cr|subscription-manager-1.29.35-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools and libraries for subscription and repository management
Name:		subscription-manager
Version:	1.29.35
Release:	1
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		https://github.com/candlepin/subscription-manager/
Source0:	https://github.com/candlepin/subscription-manager/archive/%{name}-%{version}-1.tar.gz?/%{name}-%{name}-%{version}-1.tar.gz
Source1:	https://github.com/candlepin/subscription-manager-rhsm-certificates/archive/%{name}-rhsm-certificates-20220623-1.tar.gz?/%{name}-rhsm-certificates-%{name}-rhsm-certificates-20220623-1.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	python3dist(python-dateutil)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libdnf)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
Requires:	logrotate
Requires:	%{name}-plugin-dnf = %{EVRD}
Requires:	%{name}-rhsm-certificates = %{EVRD}
Requires:	python3-cloud-what = %{EVRD}
Requires:	python3-gobject2
Requires:	python3-%{name}-rhsm = %{EVRD}
Requires:	usermode-consoleonly
Requires:	virt-what
Requires:	python3dist(dbus-python)
Requires:	python3dist(decorator)
Requires:	python3dist(ethtool)
Requires:	python3dist(iniparse)
Requires:	python3dist(python-dateutil)
Requires:	python3dist(python-dmidecode)
Requires:	python3dist(simplejson)
Requires:	python3-librepo
Requires:	python3-gi
Requires(post,preun,postun):	systemd

%description
The Subscription Manager package provides programs and libraries to allow users
to manage subscriptions and yum repositories from the Red Hat entitlement
platform.

%files -f rhsm.lang
%doc README.md
%license LICENSE
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/rhsm/rhsm.conf
%attr(644,root,root) %{_sysconfdir}/rhsm/syspurpose/valid_fields.json
%attr(644,root,root) %{_tmpfilesdir}/%{name}.conf
%attr(644,root,root) %{_unitdir}/rhsmcertd.service
%attr(755,root,root) %{_bindir}/rct
%attr(755,root,root) %{_bindir}/rhsmcertd
%attr(755,root,root) %{_bindir}/rhsm-debug
%attr(755,root,root) %dir %{_sysconfdir}/pki/consumer
%attr(755,root,root) %dir %{_sysconfdir}/pki/entitlement
%attr(755,root,root) %dir %{_sysconfdir}/rhsm
%attr(755,root,root) %dir %{_sysconfdir}/rhsm/facts
%attr(755,root,root) %dir %{_var}/lib/rhsm
%attr(755,root,root) %dir %{_var}/lib/rhsm/cache
%attr(755,root,root) %dir %{_var}/lib/rhsm/facts
%attr(755,root,root) %dir %{_var}/lib/rhsm/packages
%attr(755,root,root) %dir %{_var}/log/rhsm
%attr(755,root,root) %{_libexecdir}/rhsmcertd-worker
%attr(755,root,root) %{_libexecdir}/rhsm-facts-service
%attr(755,root,root) %{_libexecdir}/rhsm-service
%attr(755,root,root) %{_libexecdir}/rhsm-package-profile-uploader
%attr(755,root,root) %{_sbindir}/%{name}
%{_bindir}/%{name}
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnf/plugins/%{name}.conf
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dnf/plugins/product-id.conf
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.RHSM1.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.RHSM1.Facts.conf
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/bash-completion/completions/rct
%{_datadir}/bash-completion/completions/rhsmcertd
%{_datadir}/bash-completion/completions/rhsm-debug
%{_datadir}/dbus-1/system-services/com.redhat.RHSM1.Facts.service
%{_datadir}/dbus-1/system-services/com.redhat.RHSM1.service
%{_datadir}/polkit-1/actions/com.redhat.RHSM1.Facts.policy
%{_datadir}/polkit-1/actions/com.redhat.RHSM1.policy
%dir %{_datadir}/rhsm-plugins
%dir %{python3_sitearch}/syspurpose
%dir %{_sysconfdir}/rhsm/pluginconf.d
%ghost %attr(755,root,root) %dir %{_var}/run/rhsm
%ghost %{_sysconfdir}/yum.repos.d/redhat.repo
%ghost %{_sysconfdir}/yum.repos.d/rosa.repo
%{_libdir}/libdnf/plugins/product-id.so
%{_mandir}/man5/rhsm.conf.5.xz
%{_mandir}/man8/%{name}.8*
%{_mandir}/man8/rct.8*
%{_mandir}/man8/rhsmcertd.8*
%{_mandir}/man8/rhsm-debug.8.xz
%{python3_sitearch}/rct
%{python3_sitearch}/rhsm_debug
%{python3_sitearch}/rhsmlib/
%{python3_sitearch}/subscription_manager/
%{python3_sitearch}/subscription_manager-%{version}-py*.egg-info/
%{python3_sitearch}/syspurpose/*.py*
%{python3_sitearch}/syspurpose/__pycache__
%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}
%{_unitdir}/rhsm-facts.service
%{_unitdir}/rhsm.service

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post rhsmcertd.service
%systemd_post rhsm.service
%systemd_post rhsm-facts.service

%preun
%systemd_preun rhsmcertd.service
%systemd_preun rhsm.service
%systemd_preun rhsm-facts.service

#----------------------------------------------------------------------------

%package -n python3-%{name}-rhsm
Summary:	A Python library to communicate with a Red Hat Unified Entitlement Platform
Group:		System/Configuration/Packaging
Requires:	python3dist(python-dateutil)
Requires:	python3dist(iniparse)
Requires:	%{name}-rhsm-certificates = %{EVRD}
Requires:	python3-cloud-what = %{EVRD}
Requires:	python3dist(rpm)
Provides:	python3-rhsm = %{EVRD}

%description -n python3-%{name}-rhsm
A small library for communicating with the REST interface of a Red Hat Unified
Entitlement Platform. This interface is used for the management of system
entitlements, certificates, and access to content.

%files -n python3-%{name}-rhsm
%doc README.md
%license LICENSE
%{python3_sitearch}/rhsm

#----------------------------------------------------------------------------

%package -n python3-cloud-what
Summary:	Python package for detection of public cloud provider
Group:		System/Configuration/Packaging
Requires:	python3dist(requests)
%ifarch %{ix86} x86_64 aarch64
Requires:	dmidecode
%endif

%description -n python3-cloud-what
This package contains a Python module for detection and collection of public
cloud metadata and signatures.

%files -n python3-cloud-what
%doc README.md
%license LICENSE
%attr(750,root,root) %dir %{_var}/cache/cloud-what
%{python3_sitearch}/cloud_what

#----------------------------------------------------------------------------

%package plugin-ostree
Summary:	A plugin for handling OSTree content
Group:		System/Configuration/Packaging
Requires:	%{name} = %{EVRD}

%description plugin-ostree
Enables handling of content of type 'ostree' in any certificates
from the server. Populates /ostree/repo/config as well as updates
the remote in the currently deployed .origin file.

%files plugin-ostree
%doc README.md
%license LICENSE
%{_datadir}/rhsm-plugins/ostree_content.py*
%{_datadir}/rhsm-plugins/__pycache__/*ostree*
%{python3_sitearch}/subscription_manager/plugin/ostree
%{_sysconfdir}/rhsm/pluginconf.d/ostree_content.OstreeContentPlugin.conf

#----------------------------------------------------------------------------

%package plugin-container
Summary:	A plugin for handling container content
Group:		System/Configuration/Packaging
Requires:	%{name} = %{EVRD}

%description plugin-container
Enables handling of content of type 'containerImage' in any certificates
from the server. Populates /etc/docker/certs.d appropriately.

%files plugin-container
%{_datadir}/rhsm-plugins/container_content.py*
%{_datadir}/rhsm-plugins/__pycache__/*container*
%{python3_sitearch}/subscription_manager/plugin/container
%{_sysconfdir}/rhsm/pluginconf.d/container_content.ContainerContentPlugin.conf

%post plugin-container
%{__python3} %{_datadir}/rhsm-plugins/container_content.py || :

#----------------------------------------------------------------------------

%package plugin-dnf
Summary:	Subscription Manager plugins for DNF
Group:		System/Configuration/Packaging
Requires:	%{name} = %{EVRD}

%description plugin-dnf
This package provides plugins to interact with repositories and subscriptions
from the Red Hat entitlement platform; contains subscription-manager and
product-id plugins.

%files plugin-dnf
%doc README.md
%license LICENSE
%{_libdir}/libdnf/plugins/product-id.so
%{python3_sitelib}/dnf-plugins

#----------------------------------------------------------------------------

%package rhsm-certificates
Summary:	Certificates required to communicate with a Red Hat Unified Entitlement Platform
Group:		System/Configuration/Packaging

%description rhsm-certificates
This package contains certificates required for communicating with the REST interface
of a Red Hat Unified Entitlement Platform, used for the management of system entitlements
and to receive access to content.

%files rhsm-certificates
%doc README.md
%license LICENSE
%dir %{_sysconfdir}/rhsm
%dir %{_sysconfdir}/rhsm/ca
%{_sysconfdir}/rhsm/ca/*.pem

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}-1 -a1

%build
make -f Makefile		\
	CFLAGS="%{optflags}"	\
	LDFLAGS="%{ldflags} -lpython%{py3_ver}"	\
	OS_DIST="rosa"		\
	PYTHON="%{__python3}"	\
	PYTHON_SITELIB=%{python3_sitearch}	\
	VERSION=%{version}-%{release}
pushd src/plugins/libdnf
%cmake -DCMAKE_BUILD_TYPE="Release"
%make
popd

%install
make -f Makefile install		\
	COMPLETION_DIR=%{_datadir}/bash-completion/completions	\
	DESTDIR=%{buildroot}		\
	INSTALL_DNF_PLUGINS=true	\
	OS_DIST=rosa			\
	OS_VERSION=2021.1		\
	PREFIX=%{_prefix}		\
	PYTHON=%{__python3}		\
	PYTHON_SITELIB=%{python3_sitearch}	\
	VERSION=%{version}-%{release}
pushd src/plugins/libdnf
%make_install -C build
popd

pushd %{name}-rhsm-certificates*
%make_install	\
	PREFIX=%{_prefix}	\
	SYSCONFDIR=%{_sysconfdir}
popd

# Replace physical link
ln -sf consolehelper %{buildroot}%{_bindir}/subscription-manager

mkdir -p %{buildroot}/lib/systemd/system/
mv %{buildroot}/usr/lib/systemd/system/*.service %{buildroot}/lib/systemd/system/

# fake out repo files
mkdir %{buildroot}%{_sysconfdir}/yum.repos.d
touch %{buildroot}%{_sysconfdir}/yum.repos.d/redhat.repo
touch %{buildroot}%{_sysconfdir}/yum.repos.d/rosa.repo

# fake out the certificate directories
mkdir -p %{buildroot}%{_sysconfdir}/pki/consumer
mkdir -p %{buildroot}%{_sysconfdir}/pki/entitlement

# fix timestamps on our byte compiled files so them match across arches
find %{buildroot} -name \*.py -exec touch -r %{SOURCE0} '{}' \;

%find_lang rhsm

# fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{python3_sitearch}/subscription_manager/action_client.py
chmod +x %{buildroot}%{python3_sitearch}/subscription_manager/action_client.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9025 |21cr|subtitleeditor-0.54.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}

Summary:	GTK+3 subtitle editor
Name:		subtitleeditor
Version:	0.54.0
Release:	2
License:	GPLv3+
Group:		Video
Url:		http://kitone.github.io/subtitleeditor/
Source0:	https://github.com/kitone/subtitleeditor/releases/download/0.54.0/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	iso-codes
BuildRequires:	libtool
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(enchant) >= 1.4.0
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glibmm-2.4) >= 2.18.0
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gstreamermm-1.0) >= 1.0
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0) >= 3.10
BuildRequires:	pkgconfig(gtkglextmm-1.2)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml++-2.6) >= 2.20
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	gstreamer1.0-plugins-good
Requires:	iso-codes
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-ffmpeg
Requires:	mplayer
# Due to library splitting
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{name} < 0.41

%description
Subtitle Editor is a GTK+3 tool to edit subtitles. It can be used for new
subtitles or as a tool to transform, edit, correct and refine existing
subtitle. This program also shows sound waves, which makes it easier to
synchronise subtitles to voices.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/pixmaps/%{name}.svg

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library associated with %{name}
Group:		System/Libraries

%description -n %{libname}
A GTK+3 tool to edit subtitles. This package contains the shared libraries
needed to use %{name}.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING
%{_libdir}/%{name}
%{_libdir}/lib%{name}.so.*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
./autogen.sh
%configure \
	--disable-static \
	--with-default-audio-sink=pulsesink \
	--with-default-video-sink=autovideosink
# This one makes the build fail with errors from gtkglextmm
#		--enable-gl \
%make


%install
%makeinstall_std

# We don't ship devel files for now
rm -f %{buildroot}%{_libdir}/*.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9026 |21cr|subtitleripper-0.6.14-0.20051106.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define cvs 20051106

Summary:	DVD Subtitle Ripper for Linux
Name:		subtitleripper
Version:	0.6.14
Release:	0.%{cvs}.7
Epoch:		1
License:	GPL+
Group:		Video
Url:		http://subtitleripper.sourceforge.net/
Source0:	%{name}-%{cvs}.tar.bz2
Patch0:		subtitleripper-20051106-netpbm.patch
BuildRequires:	netpbm-devel
BuildRequires:	pkgconfig(libpng)
Requires:	transcode

%description
If you want to convert DVD subtitles into text format (e.g. subrip
format) this program could be useful for you. However, it is only one
tiny tool that you need in the process.
The output of this program should be processed by some OCR software.

This package is in restricted as it depends on transcode.

%files
%doc src/README* src/ChangeLog techdoc/spuformat.tex
%{_bindir}/subtitle2vobsub
%{_bindir}/srttool
%{_bindir}/subtitle2pgm
%{_bindir}/pgm2txt
%{_bindir}/vobsub2pgm
%{_datadir}/subtitleripper

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p1 -b .netpbm

%build
cd src
%make all COPT="%{optflags} -DHAVE_GETLINE"
%__perl -pi -e 's|PATH_TO_LANGUAGE_FILTER=.*|PATH_TO_LANGUAGE_FILTER=%{_datadir}/subtitleripper|' pgm2txt

%install
cd src
mkdir -p %{buildroot}%{_bindir}
install -m 755 subtitle2vobsub srttool subtitle2pgm pgm2txt vobsub2pgm %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/subtitleripper
install -m 644 *.sed %{buildroot}%{_datadir}/subtitleripper

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9027 |21cr|suck-4.3.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Download news from remote NNTP server
Name:		suck
Version:	4.3.2
Release:	14
License:	Public Domain
Group:		Networking/News
Url:		http://home.comcast.net/~bobyetman/index.html
Source0:	%{name}-%{version}.tar.bz2
Patch0:		suck-4.3.2-no-strip.patch

%description
This package contains software for copying news from an NNTP server to your
local machine, and copying replies back up to an NNTP server.  It works
with most standard NNTP servers, including INN, CNEWS, DNEWS, and typhoon.

%files
%doc README CHANGELOG
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
export CFLAGS="%{optflags} -I/usr/include/db1"
%configure
make

%install
%makeinstall

mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_mandir}/*.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9028 |21cr|sudoku-savant-1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GTK+ Sudoku Game
Name:		sudoku-savant
Version:	1.3
Release:	4
License:	GPLv3
Group:		Games/Other
Url:		http://sourceforge.net/projects/sudoku-savant/
Source0:	http://downloads.sourceforge.net/project/sudoku-savant/sudoku-savant/sudoku-savant-1.3/%{name}-%{version}.tar.bz2

BuildRequires:	pkgconfig(gtk+-2.0)

%description
A simple GUI-driven application to solve and generate sudoku puzzles through 
logical means. Also supports manual solving, with pencil marks and cell 
colouring. Should be able to solve any standard sudoku from a newspaper or 
magazine.

%prep
%setup -q

%build
%configure

%make

%install
mkdir -p %{buildroot}%{_datadir}/pixmaps
%makeinstall

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9029 |21cr|suitesparse-5.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define amd_version_major 2
%define amd_packagename %mklibname amd %{amd_version_major}
%define amd_packagedev %mklibname amd -d
%define btf_version_major 1
%define btf_packagename %mklibname btf %{btf_version_major}
%define btf_packagedev %mklibname btf -d
%define camd_version_major 2
%define camd_packagename %mklibname camd %{camd_version_major}
%define camd_packagedev %mklibname camd -d
%define ccolamd_version_major 2
%define ccolamd_packagename %mklibname ccolamd %{ccolamd_version_major}
%define ccolamd_packagedev %mklibname ccolamd -d
%define cholmod_version_major 3
%define cholmod_packagename %mklibname cholmod %{cholmod_version_major}
%define cholmod_packagedev %mklibname cholmod -d
%define colamd_version_major 2
%define colamd_packagename %mklibname colamd %{colamd_version_major}
%define colamd_packagedev %mklibname colamd -d
%define cxsparse_version_major 3
%define cxsparse_packagename %mklibname cxsparse %{cxsparse_version_major}
%define cxsparse_packagedev %mklibname cxsparse -d
%define klu_version_major 1
%define klu_packagename %mklibname klu %{klu_version_major}
%define klu_packagedev %mklibname klu -d
%define ldl_version_major 2
%define ldl_packagename %mklibname ldl %{ldl_version_major}
%define ldl_packagedev %mklibname ldl -d
%define umfpack_version_major 5
%define umfpack_packagename %mklibname umfpack %{umfpack_version_major}
%define umfpack_packagedev %mklibname umfpack -d
%define spqr_version_major 2
%define spqr_packagename %mklibname spqr %{spqr_version_major}
%define spqr_packagedev %mklibname spqr -d
%define rbio_version_major 2
%define rbio_packagename %mklibname rbio %{rbio_version_major}
%define rbio_packagedev %mklibname rbio -d
%define suitesparseconfig_version %{version}
%define suitesparseconfig_version_major 5
%define suitesparseconfig_packagename %mklibname suitesparseconfig %{suitesparseconfig_version_major}
%define suitesparseconfig_packagedev %mklibname suitesparseconfig -d
%define mongoose_version_major 2
%define mongoose_packagename %mklibname mongoose %{mongoose_version_major}
%define mongoose_packagedev %mklibname mongoose -d
%define graphblas_version_major 3
%define graphblas_packagename %mklibname graphblas %{graphblas_version_major}
%define graphblas_packagedev %mklibname graphblas -d

Name:           suitesparse
Version:        5.7.2
Release:        1
Summary:        A collection of sparse matrix libraries

Group:          Development/C
License:        LGPLv2+ and GPLv2+
URL:            http://faculty.cse.tamu.edu/davis/suitesparse.html
Source0:        http://faculty.cse.tamu.edu/davis/SuiteSparse/SuiteSparse-%{version}.tar.gz
Source100:	 %{name}.rpmlintrc

BuildRequires:  cmake
BuildRequires:  blas-devel
BuildRequires:  lapack-devel
%ifnarch aarch64
BuildRequires:  tbb-devel
%endif
BuildRequires:  hardlink
BuildRequires:  gomp-devel

%description
suitesparse is a collection of libraries for computations involving sparse
matrices.  The package includes the following libraries:
  AMD                 approximate minimum degree ordering
  BTF                 permutation to block triangular form
  CAMD                constrained approximate minimum degree ordering
  COLAMD              column approximate minimum degree ordering
  CCOLAMD             constrained column approximate minimum degree ordering
  CHOLMOD             sparse Cholesky factorization
  CSparse             a concise sparse matrix package
  CXSparse            int/long/real/complex version of CSparse
  KLU                 sparse LU factorization, BLAS-free
  LDL                 a simple LDL factorization
  SQPR                a multithread, multifrontal, rank-revealing sparse QR
                      factorization method
  UMFPACK             sparse LU factorization, with the BLAS
  SuiteSparse_config  configuration file for all the above packages.
  RBio                read/write files in Rutherford/Boeing format

#=========================================================================
%package -n %{suitesparseconfig_packagedev}
Summary:        Development headers for SuiteSparse
Group:          Development/C

Requires:	%{suitesparseconfig_packagename} = %{EVRD}
Provides:       suitesparse-common-devel = %{EVRD}
Provides:       %{suitesparseconfig_packagedev} = %{EVRD}
Obsoletes:      %{suitesparseconfig_packagedev} < %{EVRD}
Obsoletes:      suitesparse-common-devel < %{EVRD}

Requires:	%{amd_packagename} = %{EVRD}
Provides:       amd-devel = %{EVRD}
Provides:       %{amd_packagedev} = %{EVRD}
Obsoletes:      %{amd_packagedev} < %{EVRD}
Obsoletes:      amd-devel < %{EVRD}

Requires:	%{btf_packagename} = %{EVRD}
Provides:       btf-devel = %{EVRD}
Provides:       %{btf_packagedev} = %{EVRD}
Obsoletes:      %{btf_packagedev} < %{EVRD}
Obsoletes:      btf-devel < %{EVRD}

Requires:	%{camd_packagename} = %{EVRD}
Provides:       camd-devel = %{EVRD}
Provides:       %{camd_packagedev} = %{EVRD}
Obsoletes:      %{camd_packagedev} < %{EVRD}
Obsoletes:      camd-devel < %{EVRD}

Requires:	%{ccolamd_packagename} = %{EVRD}
Provides:       ccolamd-devel = %{EVRD}
Provides:       %{ccolamd_packagedev} = %{EVRD}
Obsoletes:      %{ccolamd_packagedev} < %{EVRD}
Obsoletes:      ccolamd-devel < %{EVRD}

Requires:	%{cholmod_packagename} = %{EVRD}
Provides:       cholmod-devel = %{EVRD}
Provides:       %{cholmod_packagedev} = %{EVRD}
Obsoletes:      %{cholmod_packagedev} < %{EVRD}
Obsoletes:      cholmod-devel < %{EVRD}

Requires:	%{colamd_packagename} = %{EVRD}
Provides:       colamd-devel = %{EVRD}
Provides:       %{colamd_packagedev} = %{EVRD}
Obsoletes:      %{colamd_packagedev} < %{EVRD}
Obsoletes:      colamd-devel < %{EVRD}

Requires:	%{cxsparse_packagename} = %{EVRD}
Provides:       cxsparse-devel = %{EVRD}
Provides:       %{cxsparse_packagedev} = %{EVRD}
Obsoletes:      %{cxsparse_packagedev} < %{EVRD}
Obsoletes:      cxsparse-devel < %{EVRD}

Requires:	%{klu_packagename} = %{EVRD}
Provides:       klu-devel = %{EVRD}
Provides:       %{klu_packagedev} = %{EVRD}
Obsoletes:      %{klu_packagedev} < %{EVRD}
Obsoletes:      klu-devel < %{EVRD}

Requires:	%{ldl_packagename} = %{EVRD}
Provides:       ldl-devel = %{EVRD}
Provides:       %{ldl_packagedev} = %{EVRD}
Obsoletes:      %{ldl_packagedev} < %{EVRD}
Obsoletes:      ldl-devel < %{EVRD}

Requires:	%{umfpack_packagename} = %{EVRD}
Provides:       umfpack-devel = %{EVRD}
Provides:       %{umfpack_packagedev} = %{EVRD}
Obsoletes:      %{umfpack_packagedev} < %{EVRD}
Obsoletes:      umfpack-devel < %{EVRD}

Requires:	%{spqr_packagename} = %{EVRD}
Provides:       spqr-devel = %{EVRD}
Provides:       %{spqr_packagedev} = %{EVRD}
Obsoletes:      %{spqr_packagedev} < %{EVRD}
Obsoletes:      spqr-devel < %{EVRD}

Requires:	%{rbio_packagename} = %{EVRD}
Provides:       rbio-devel = %{EVRD}
Provides:       %{rbio_packagedev} = %{EVRD}
Obsoletes:      %{rbio_packagedev} < %{EVRD}
Obsoletes:      rbio-devel < %{EVRD}

Requires:	%{mongoose_packagename} = %{EVRD}
Provides:       mongoose-devel = %{EVRD}
Provides:       %{mongoose_packagedev} = %{EVRD}
Obsoletes:      %{mongoose_packagedev} < %{EVRD}
Obsoletes:      mongoose-devel < %{EVRD}

%description -n %{suitesparseconfig_packagedev}
The suitesparse-devel package contains files needed for developing
applications which use the suitesparse libraries.


%files -n %{suitesparseconfig_packagedev}
%{_includedir}/*.h
%{_libdir}/libsuitesparseconfig.so
%{_libdir}/libamd.so
%{_libdir}/libbtf.so
%{_libdir}/libcamd.so
%{_libdir}/libccolamd.so
%{_libdir}/libcholmod.so
%{_libdir}/libcolamd.so
%{_libdir}/libcxsparse.so
%{_libdir}/libklu.so
%{_libdir}/libldl.so
%{_libdir}/libumfpack.so
%{_libdir}/libspqr.so
%{_libdir}/librbio.so
%{_libdir}/libmongoose.so

#=========================================================================

%package doc
Summary:        Documentation files for SuiteSparse
Group:          Development/C
BuildArch:      noarch

%description doc
This package contains documentation files for %{name}.

%files doc
%{_docdir}/suitesparse-%{version}/*.txt
%{_docdir}/suitesparse-%{version}/*.pdf
%{_docdir}/suitesparse-%{version}/SuiteSparse_README.md

#=========================================================================

%package -n %{suitesparseconfig_packagename}
Summary:	Configuration file for SuiteSparse packages
Group:		Development/C
Provides:	%{suitesparseconfig_packagename} = %{EVRD}
Obsoletes:	%{suitesparseconfig_packagename} < %{EVRD}

%description -n %{suitesparseconfig_packagename}
SuiteSparse_config provides a configuration header file needed by most of 
the other packages in SuiteSparse.

%files -n %{suitesparseconfig_packagename}
%{_libdir}/libsuitesparseconfig.so.%{suitesparseconfig_version_major}*

#=========================================================================

%package -n %{amd_packagename}
Summary:	Routines for permuting sparse matricies prior to factorization
Group:		Development/C
Provides:	%{amd_packagename} = %{EVRD}
Obsoletes:	%{amd_packagename} < %{EVRD}

%description -n %{amd_packagename}
AMD provides a set of routines for permuting sparse matricies prior to
Cholesky factorization (or LU factorization with diagonal pivoting).

%files -n %{amd_packagename}
%{_libdir}/libamd.so.%{camd_version_major}*

#=========================================================================

%package -n %{btf_packagename}
Summary:	Routines for permuting sparse matricies to block triangular form
Group:		Development/C
Provides:	%{btf_packagename} = %{EVRD}
Obsoletes:	%{btf_packagename} < %{EVRD}

%description -n %{btf_packagename}
BTF is a software package for permuting a matrix into block upper triangular
form.  It includes a maximum transversal algorithm, which finds a permutation
of a square or rectangular matrix so that it has a zero-free diagonal (if one
exists); otherwise, it finds a maximal matching which maximizes the number of
nonzeros on the diagonal.  The package also includes a method for finding the
strongly connected components of a graph.  These two methods together give the
permutation to block upper triangular form.

%files -n %{btf_packagename}
%{_libdir}/libbtf.so.%{btf_version_major}*

#=========================================================================

%package -n %{camd_packagename}
Summary:	Routines for permuting sparse matricies prior to factorization
Group:		Development/C
Provides:	%{camd_packagename} = %{EVRD}
Obsoletes:	%{camd_packagename} < %{EVRD}

%description -n %{camd_packagename}
CAMD provides a set of routines for permuting sparse matricies prior
to factorization.

%files -n %{camd_packagename}
%{_libdir}/libcamd.so.%{camd_version_major}*

#=========================================================================

%package -n %{ccolamd_packagename}
Summary:	Routines for computing column approximate minimum degree ordering
Group:		Development/C
Provides:	%{ccolamd_packagename} = %{EVRD}
Obsoletes:	%{ccolamd_packagename} < %{EVRD}

%description -n %{ccolamd_packagename}
The CCOLAMD column approximate minimum degree ordering algorithm computes
a permutation vector P such that the LU factorization of A (:,P)
tends to be sparser than that of A.  The Cholesky factorization of
(A (:,P))'*(A (:,P)) will also tend to be sparser than that of A'*A.

%files -n %{ccolamd_packagename}
%{_libdir}/libccolamd.so.%{ccolamd_version_major}*

#=========================================================================

%package -n %{cholmod_packagename}
Summary:	Routines for factorizing sparse symmetric positive definite matricies
Group:		Development/C
Provides:	%{cholmod_packagename} = %{EVRD}
Obsoletes:	%{cholmod_packagename} < %{EVRD}

%description -n %{cholmod_packagename}
CHOLMOD is a set of routines for factorizing sparse symmetric positive
definite matrices of the form A or AA', updating/downdating a sparse
Cholesky factorization, solving linear systems, updating/downdating
the solution to the triangular system Lx=b, and many other sparse
matrix functions for both symmetric and unsymmetric matrices.  Its
supernodal Cholesky factorization relies on LAPACK and the Level-3
BLAS, and obtains a substantial fraction of the peak performance of
the BLAS.  Both real and complex matrices are supported.

%files -n %{cholmod_packagename}
%{_libdir}/libcholmod.so.%{cholmod_version_major}*
%{_libdir}/libmetis.so

#=========================================================================

%package -n %{colamd_packagename}
Summary:	Routines for computing column approximate minimum degree ordering
Group:		Development/C
Provides:	%{colamd_packagename} = %{EVRD}
Obsoletes:	%{colamd_packagename} < %{EVRD}

%description -n %{colamd_packagename}
The COLAMD column approximate minimum degree ordering algorithm computes
a permutation vector P such that the LU factorization of A (:,P)
tends to be sparser than that of A.  The Cholesky factorization of
(A (:,P))'*(A (:,P)) will also tend to be sparser than that of A'*A.

%files -n %{colamd_packagename}
%{_libdir}/libcolamd.so.%{colamd_version_major}*

#=========================================================================

%package -n %{cxsparse_packagename}
Summary:	Direct methods for sparse linear systems
Group:		Development/C
Provides:	%{cxsparse_packagename} = %{EVRD}
Obsoletes:	%{cxsparse_packagename} < %{EVRD}

%description -n %{cxsparse_packagename}
CSparse is a package of direct methods for sparse linear systems written
to complement the book "Direct Methods for Sparse Linear Systems", by
Timothy A. Davis. The algorithms in CSparse have been chosen with 
five goals in mind:

(1) they must embody much of the theory behind sparse matrix algorithms,
(2) they must be either asymptotically optimal in their run time and memory
    usage or be fast in practice,
(3) they must be concise so as to be easily understood and short enough to
    print in the book,
(4) they must cover a wide spectrum of matrix operations, and
(5) they must be accurate and robust.

The focus is on direct methods; iterative methods and solvers for
eigenvalue problems are beyond the scope of this package.

CXSparse is a version of CSparse that operates on both real and complex
matrices, using either int or UF_long integers.

%files -n %{cxsparse_packagename}
%{_libdir}/libcxsparse.so.%{cxsparse_version_major}*

#=========================================================================

%package -n %{klu_packagename}
Summary:	Sparse LU factorization, for circuit simulation
Group:		Development/C
Provides:	%{klu_packagename} = %{EVRD}
Obsoletes:	%{klu_packagename} < %{EVRD}

%description -n %{klu_packagename}
KLU is a sparse LU factorization algorithm well-suited for use in
circuit simulation.

%files -n %{klu_packagename}
%{_libdir}/libklu.so.%{klu_version_major}*

#=========================================================================

%package -n %{ldl_packagename}
Summary:	A consise sparse Cholesky factorization package
Group:		Development/C
Provides:	%{ldl_packagename} = %{EVRD}
Obsoletes:	%{ldl_packagename} < %{EVRD}

%description -n %{ldl_packagename}
LDL is a set of concise routines for factorizing symmetric positive-definite 
sparse matrices, with some applicability to symmetric indefinite matrices. 
Its primary purpose is to illustrate much of the basic theory of sparse matrix 
algorithms in as concise a code as possible, including an elegant new method 
of sparse symmetric factorization that computes the factorization row-by-row 
but stores it column-by-column. The entire symbolic and numeric factorization 
consists of a total of only 49 lines of code. The package is written in C,
and includes a MATLAB interface. 

%files -n %{ldl_packagename}
%{_libdir}/libldl.so.%{ldl_version_major}*

#=========================================================================

%package -n %{umfpack_packagename}
Summary:	Routines for solving unsymmetric sparse linear systems
Group:		Development/C
Provides:	%{umfpack_packagename} = %{EVRD}
Obsoletes:	%{umfpack_packagename} < %{EVRD}

%description -n %{umfpack_packagename}
UMFPACK provides a set of routines for solving unsymmetric sparse
linear systems Ax=b using the Unsymmetric MultiFrontal method. It is
written in ANSI/ISO C. Note that "UMFPACK" is pronounced in two
syllables, "Umph Pack"; it is not "You Em Ef Pack".

%files -n %{umfpack_packagename}
%{_libdir}/libumfpack.so.%{umfpack_version_major}*

#=========================================================================

%package -n %{spqr_packagename}
Summary:	Multithreaded multifrontal sparse QR factorization
Group:		Development/C
Provides:	%{spqr_packagename} = %{EVRD}
Obsoletes:	%{spqr_packagename} < %{EVRD}

%description -n %{spqr_packagename}
SuiteSparseQR is an implementation of the multifrontal sparse QR factorization
method. Parallelism is exploited both in the BLAS and across different frontal
matrices using Intel's Threading Building Blocks, a shared-memory programming
model for modern multicore architectures. It can obtain a substantial fraction
of the theoretical peak performance of a multicore computer. The package is
written in C++ with user interfaces for MATLAB, C, and C++.

%files -n %{spqr_packagename}
%{_libdir}/libspqr.so.%{spqr_version_major}*

#=========================================================================

%package -n %{rbio_packagename}
Summary:	MATLAB toolbox for reading/writing sparse matrices in Rutherford/Boeing
Group:		Development/C
Provides:	%{rbio_packagename} = %{EVRD}
Obsoletes:	%{rbio_packagename} < %{EVRD}

%description -n %{rbio_packagename}
RBio - MATLAB toolbox for reading/writing sparse matrices in the 
Rutherford/Boeing format, and for reading/writing problems in the UF Sparse 
Matrix Collection from/to a set of files in a directory. 
Version 2.0 is written in C. Older versions are in Fortran. 

%files -n %{rbio_packagename}
%{_libdir}/librbio.so.%{rbio_version_major}*

#=========================================================================

%package -n %{mongoose_packagename}
Summary:	Mongoose is a graph partitioning library
Group:		Development/C
Provides:	%{mongoose_packagename} = %{EVRD}
Obsoletes:	%{mongoose_packagename} < %{EVRD}

%description -n %{mongoose_packagename}
Mongoose is a graph partitioning library. Currently, Mongoose only supports edge partitioning, 
but in the future a vertex separator extension will be added.

%files -n %{mongoose_packagename}
%{_libdir}/libmongoose.so.%{mongoose_version_major}*

#=========================================================================

%package -n mongoose-bin
Summary:	Mongoose is a graph partitioning library
Group:		Development/C
Requires:	%{mongoose_packagename} = %{EVRD}

%description -n mongoose-bin
Mongoose is a graph partitioning library. Currently, Mongoose only supports edge partitioning, 
but in the future a vertex separator extension will be added.

%files -n mongoose-bin
%{_bindir}/mongoose

#=========================================================================

%package -n %{graphblas_packagename}
Summary:	SuiteSparse:GraphBLAS is an full implementation of the GraphBLAS standard
Group:		Development/C
Provides:	%{graphblas_packagename} = %{EVRD}
Obsoletes:	%{graphblas_packagename} < %{EVRD}


%description -n %{graphblas_packagename}
SuiteSparse:GraphBLAS is an full implementation of the GraphBLAS standard, 
which defines a set of sparse matrix operations on an extended algebra of 
semirings using an almost unlimited variety of operators and types. 
When applied to sparse adjacency matrices, these algebraic operations are 
equivalent to computations on graphs. GraphBLAS provides a powerful 
and expressive framework for creating graph algorithms based on the elegant 
mathematics of sparse matrix operations on a semiring.

See the user guide in Doc/GraphBLAS_UserGuide.pdf for documentation on the 
SuiteSparse implementation of GraphBLAS, and how to use it in your applications.

%files -n %{graphblas_packagename}
#%%{_bindir}/gr*
%{_libdir}/libgraphblas.so.%{graphblas_version_major}*

#=========================================================================

%package -n %{graphblas_packagedev}
Summary:	SuiteSparse:GraphBLAS development files
Group:		Development/C
Requires:	%{graphblas_packagename} = %{EVRD}
Provides:       graphblas-devel = %{EVRD}
Provides:       %{graphblas_packagedev} = %{EVRD}
Obsoletes:      %{graphblas_packagedev} < %{EVRD}
Obsoletes:      graphblas-devel < %{EVRD}

%description -n %{graphblas_packagedev}
SuiteSparse:GraphBLAS development files

%files -n %{graphblas_packagedev}
%{_libdir}/libgraphblas.so
%{_includedir}/GraphBLAS.h

#=========================================================================

%prep
%setup -qn SuiteSparse-%{version}

%build
export BLAS=-lblas 
export LAPACK=-llapack
%make config
%make

%install
#do not use makeinstall macros
make install BLAS=-lblas LAPACK=-llapack INSTALL=%{buildroot}%{_prefix} INSTALL_LIB=%{buildroot}%{_libdir}

pushd GraphBLAS
make install
popd

#move GraphBLAS files to needed location
cp -f include/GraphBLAS.h %{buildroot}%{_includedir}/
cp -f -P %{_lib}/libgraphblas.so* %{buildroot}%{_libdir}/

#remove unneeded files
rm -f %{buildroot}%{_includedir}/*.hpp
rm -f %{buildroot}%{_libdir}/libmongoose.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9030 |21cr|sunflow-0.07.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		sunflow
Version:	0.07.4
Release:	1
Summary:	Sunflow Rendering System
License:	MIT
Group:		Development/Java
URL:		http://sunflow.sourceforge.net/
# svn co https://sunflow.svn.sourceforge.net/svnroot/sunflow/trunk sunflow
# tar czf sunflow-0.07.3-src-svn.tar.gz sunflow
Source0:	sunflow-0.07.3-src-svn.tar.gz
Patch0:		sunflow-0.07.3g-patch
Patch1:		sunflow-0.07.3-noclasspathinmanifest.patch
BuildArch:	noarch
BuildRequires:	ant
BuildRequires:	janino
BuildRequires:	java-devel
BuildRequires:	jpackage-utils
BuildRequires:	java-rpmbuild
BuildRequires:	junit

Requires:	jpackage-utils


%description
Sunflow is an open source rendering system for photo-realistic image synthesis.
It is written in Java and built around a flexible ray tracing core and
an extensible object-oriented design.

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description javadoc
Sunflow Rendering System.

This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}

for j in $(find . -name "*.jar"); do
  mv $j $j.no
done

%patch0 -p1
%patch1 -p0

ln -sf $(build-classpath janino/janino) janino.jar

find examples -name ".svn" -type d -depth -exec rm -rf {} \;


%build
%ant

%install
# .jar-repertory
mkdir -p %{buildroot}%{_javadir}
install -m 644 release/sunflow.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar

(
  cd %{buildroot}%{_javadir}
  for jar in *-%{version}.jar; do
    ln -sf ${jar} ${jar/-%{version}/}
  done
)

# javadoc-repertory
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr release/javadoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}/
ln -s sunflow-%{version} %{buildroot}%{_javadocdir}/%{name}

%files
%doc CHANGELOG LICENSE README* examples
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar

%files javadoc
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9031 |21cr|sunpinyin-3.0.0-0.rc2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude '/usr/bin/make'

%define debug_package %{nil}

%define prel rc2

%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A statistical language model based Chinese input method
Name:		sunpinyin
Version:	3.0.0
Release:	0.%{prel}.1
License:	LGPLv2+
Group:		System/Internationalization
Url:		http://code.google.com/p/sunpinyin
Source0:	https://github.com/sunpinyin/sunpinyin/archive/v%{version}-%{prel}.tar.gz?/%{name}-%{version}-%{prel}.tar.gz
Source1:	https://download.sourceforge.net/open-gram/lm_sc.3gm.arpa-20140820.tar.bz2
Source2:	https://download.sourceforge.net/open-gram/dict.utf8-20131214.tar.bz2
BuildRequires:	scons
BuildRequires:	python2dist(functools32)
BuildRequires:	pkgconfig(sqlite3)

%description
SunPinyin is a statistical language model based Chinese input method,
which was firstly developed by Sun Beijing Globalization team, and
opensource'd to community with opensolaris project, with LGPLv2 and
CDDL dual-licenses.

%files
%{_bindir}/*
%{_datadir}/sunpinyin
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
SunPinyin is a statistical language model based Chinese input method,
which was firstly developed by Sun Beijing Globalization team, and
opensource'd to community with opensolaris project, with LGPLv2 and
CDDL dual-licenses.

This package contains shared library for %{name}.

%files -n %{libname}
%{_libdir}/libsunpinyin.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
SunPinyin is a statistical language model based Chinese input method,
which was firstly developed by Sun Beijing Globalization team, and
opensource'd to community with opensolaris project, with LGPLv2 and
CDDL dual-licenses.

This package contains all necessary files to compile or develop
programs/libraries that use %{name}.

%files -n %{devname}
%{_libdir}/libsunpinyin.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{prel} -a1 -a2

mkdir -p raw
mv lm_sc.3gm.arpa dict.utf8 raw/

%build
%setup_compile_flags
export CXXFLAGS="$CXXFLAGS -std=c++11"
scons \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--datadir=%{_datadir}

cp -af doc/SLM-inst.mk raw/Makefile
%make -C raw PATH=../src:$PATH

%install
scons install \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--datadir=%{_datadir} \
	--install-sandbox=%{buildroot}

%makeinstall_std -C raw

rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9032 |21cr|supergfxctl-5.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

# Use hardening ldflags.
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now

%bcond_without alt_rustc
%global rustc_path_bin %(echo /opt/rust*/bin)

Summary:	Super graphics mode controller
Name:		supergfxctl
Version:	5.2.1
Release:	1
License:	MPLv2
Group:		System/Kernel and hardware
Url:		https://gitlab.com/asus-linux/supergfxctl
Source0:	https://gitlab.com/asus-linux/supergfxctl/-/archive/%version/%{name}-%{version}.tar.gz
Source1:	vendor-%{version}.tar.xz
BuildRequires:	clang-devel
%if %{without alt_rustc}
BuildRequires:	cargo
BuildRequires:	rust
BuildRequires:	rust-std-static
%else
BuildRequires:	rust-nightly
%endif
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(systemd)

%description
supergfxctl is a super graphics mode controller for laptops with hybrid nvidia.

%files
%license LICENSE
%{_bindir}/supergfxd
%{_bindir}/supergfxctl
%{_unitdir}/supergfxd.service
%{_presetdir}/99-supergfxd.preset
%{_udevrulesdir}/90-supergfxd-nvidia-pm.rules
%{_sysconfdir}/dbus-1/system.d/org.supergfxctl.Daemon.conf
%{_datadir}/doc/%{name}/*

%post
%systemd_post supergfxd.service

%postun
%systemd_postun supergfxd.service

#---------------------------------------------

%prep
%autosetup
%setup -q -D -T -a 1

mkdir .cargo
cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"
[source.vendored-sources]
directory = "vendor"
EOF

%build
%if %{with alt_rustc}
export PATH="%{rustc_path_bin}:${PATH}"
%endif

export RUSTFLAGS="%{rustflags}"
RUST_BACKTRACE=1 cargo build --release --features "daemon cli"

%install
export RUSTFLAGS="%{rustflags}"

mkdir -p "%{buildroot}%{_bindir}"
install -D -m 0755 target/release/supergfxd %{buildroot}%{_bindir}/supergfxd
install -D -m 0755 target/release/supergfxctl %{buildroot}%{_bindir}/supergfxctl
install -D -m 0644 data/90-supergfxd-nvidia-pm.rules %{buildroot}%{_udevrulesdir}/90-supergfxd-nvidia-pm.rules
install -D -m 0644 data/org.supergfxctl.Daemon.conf  %{buildroot}%{_sysconfdir}/dbus-1/system.d/org.supergfxctl.Daemon.conf
install -D -m 0644 data/supergfxd.service %{buildroot}%{_unitdir}/supergfxd.service
install -D -m 0644 data/supergfxd.preset %{buildroot}%{_presetdir}/99-supergfxd.preset

install -D -m 0644 LICENSE %{buildroot}%{_datadir}/licenses/%{name}/LICENSE
install -D -m 0644 README.md %{buildroot}%{_datadir}/doc/%{name}/README.md
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9033 |21cr|superglu-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package          %{nil}

%define devname %mklibname %{name} -d

Summary:	A support library for Coin
Name:		superglu
Version:	1.3.0
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://www.coin3d.org/
Source0:	https://github.com/coin3d/superglu/releases/download/superglu-%{version}/superglu-%{version}-src.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(glx)

%description
A support library for Coin

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use superglu
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use simage.

%files -n %{devname}
%doc README AUTHORS NEWS COPYING
%{_libdir}/cmake/superglu-%{version}/*.cmake
%{_includedir}/*
%{_libdir}/libGLU.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9034 |21cr|superiotool-4.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Detect which Super I/O you have on your mainboard
Name:		superiotool
Version:	4.18
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.coreboot.org/Superiotool
# from https://github.com/coreboot/coreboot/
Source0:	%{name}-%{version}.tar.gz
Patch0:		makefiles_normal_dir.patch
BuildRequires:	pciutils
BuildRequires:	pkgconfig(libpci)
ExclusiveArch:	%{ix86} %{x86_64}

%description
Superiotool is a GPL'd user-space helper tool for LinuxBIOS development
purposes (but may also be useful for other things).

It allows you to detect which Super I/O you have on your mainboard,
and it can provide detailed information about the register contents
of the Super I/O.

%files
%{_sbindir}/superiotool
%{_mandir}/man8/superiotool*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%setup_compile_flags
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9035 |21cr|superkaramba-theme-AeroG-0.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define theme_name AeroG
%define aname aeroG

Summary:	Monitoring theme for superkaramba
Name:		superkaramba-theme-%{theme_name}
Version:	0.8
Release:	10
License:	GPL
Group:		Monitoring
Url:		http://kde-look.org/content/show.php?content=21407
Source0:	%{theme_name}.tar.bz2
Requires:	superkaramba
BuildArch:	noarch

%description
This is a superkaramba theme which is a desktop applet that displays
system information.

%files
%dir %{_datadir}/apps/superkaramba/themes/%{theme_name}
%{_datadir}/apps/superkaramba/themes/%{theme_name}/*

%post
if [ $1 = 1 ]; then
echo "THEME path=%{theme_name}/%{aname}-cpu.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{aname}-disktheme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{aname}-mail.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{aname}-ram.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{aname}-swap.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
fi

%postun
if [ $1 = 0 ]; then
grep -v "%{theme_name}" %{_datadir}/apps/superkaramba/themes/default.theme > %{_datadir}/apps/superkaramba/themes/default.theme
exit 0
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build

%install
mkdir -p %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
cp -rf * %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9036 |21cr|superkaramba-theme-cynapses-2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define theme_name cynapses

Summary:	Monitoring theme for superkaramba
Name:		superkaramba-theme-%{theme_name}
Version:	2.0
Release:	10
License:	GPL
Group:		Monitoring
Url:		http://kde-look.org/content/show.php?content=11405
Source0:	11405-%{theme_name}_karamba.tar.bz2
Requires:	superkaramba
BuildArch:	noarch

%description
This is a superkaramba theme which is a desktop applet that displays
system information.

%files
%doc ChangeLog
%dir %{_datadir}/apps/superkaramba/themes/%{theme_name}
%{_datadir}/apps/superkaramba/themes/%{theme_name}/*

%post
if [ $1 = 1 ]; then
echo "THEME path=%{theme_name}/sys_mon.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
fi

%postun
if [ $1 = 0 ]; then
cat %{_datadir}/apps/superkaramba/themes/default.theme | grep -v "%{theme_name}" > %{_datadir}/apps/superkaramba/themes/default.theme
exit 0
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}_karamba

%build

%install
mkdir -p %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
cp -rf * %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
chmod 755 %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}/scripts/mails_pop3.pl
chmod 755 %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}/scripts/osinfo.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9037 |21cr|superkaramba-theme-cynapses_karamba-2.0.alpha-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define theme_name cynapses_karamba
%define aname sys_mon

Summary:	Monitoring theme for superkaramba
Name:		superkaramba-theme-%{theme_name}
Version:	2.0.alpha
Release:	10
License:	GPL
Group:		Monitoring
Url:		http://www.cynapses.org/
Source0:	11405-%{theme_name}.tar.bz2
Requires:	superkaramba
BuildArch:	noarch

%description
This is a desktop applet that displays system informations.

%files
%doc ChangeLog
%dir %{_datadir}/apps/superkaramba/themes/%{theme_name}
%{_datadir}/apps/superkaramba/themes/%{theme_name}/*

%post
if [ $1 = 1 ]; then
echo "THEME path=%{theme_name}/%{aname}.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
fi

%postun
if [ $1 = 0 ]; then
cat %{_datadir}/apps/superkaramba/themes/default.theme | grep -v "%{theme_name}" > %{_datadir}/apps/superkaramba/themes/default.theme
exit 0
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build

%install
mkdir -p  %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
cp -rf *  %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
chmod 755 %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}/scripts/mails_pop3.pl
chmod 755 %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}/scripts/osinfo.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9038 |21cr|superkaramba-theme-fantastik-3.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define theme_name      fantastik

Summary:	Monitoring theme for superkaramba
Name:		superkaramba-theme-%{theme_name}
Version:	3.0
Release:	11
License:	GPL
Group:		Monitoring
Url:		http://kde-look.org/content/show.php?content=21396
Source0:	%{theme_name}-%{version}.tar.bz2
Requires:	superkaramba
BuildArch:	noarch

%description
This is a superkaramba theme which is a desktop applet 
that displays system information.

%files
%dir %{_datadir}/apps/superkaramba/themes/%{theme_name}
%{_datadir}/apps/superkaramba/themes/%{theme_name}/*

%post
if [ $1 = 1 ]; then
echo "THEME path=%{theme_name}/%{theme_name}.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
fi

%postun
if [ $1 = 0 ]; then
cat %{_datadir}/apps/superkaramba/themes/default.theme | grep -v "%{theme_name}" > %{_datadir}/apps/superkaramba/themes/default.theme
exit 0
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
cp -rf * %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
chmod 755 %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}/programs/mails_pop3.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9039 |21cr|superkaramba-theme-systemtux-1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define theme_name systemtux

Summary:	Monitoring theme for superkaramba
Name:		superkaramba-theme-%{theme_name}
Version:	1.3
Release:	10
License:	GPL
Group:		Monitoring
Url:		http://kde-look.org/content/show.php?content=16265
Source0:	%{theme_name}_%{version}.tar.bz2
Requires:	superkaramba
BuildArch:	noarch

%description
This is a superkaramba theme which is a desktop applet that displays
system information.

%files
%doc COPYING
%dir %{_datadir}/apps/superkaramba/themes/%{theme_name}
%{_datadir}/apps/superkaramba/themes/%{theme_name}/*

%post
if [ $1 = 1 ]; then
echo "THEME path=%{theme_name}/%{theme_name}-ModAmarok.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{theme_name}-Modjuk.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{theme_name}-ModClock.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{theme_name}-ModNoatun.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{theme_name}-ModSystem.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{theme_name}-ModXmms.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
echo "THEME path=%{theme_name}/%{theme_name}_v1.1.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
fi

%postun
if [ $1 = 0 ]; then
cat %{_datadir}/apps/superkaramba/themes/default.theme | grep -v "%{theme_name}" > %{_datadir}/apps/superkaramba/themes/default.theme
exit 0
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}_%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
cp -rf * %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9040 |21cr|superkaramba-theme-topmon-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define theme_name topmon

Summary:	Monitoring theme for superkaramba
Name:		superkaramba-theme-%{theme_name}
Version:	0.3
Release:	10
License:	GPL
Group:		Monitoring
Url:		http://kde-look.org/content/show.php?content=21482
Source0:	%{theme_name}.tar.bz2
Requires:	superkaramba
BuildArch:	noarch

%description
This is a superkaramba theme which is a desktop applet that displays
system information.

%files
%dir %{_datadir}/apps/superkaramba/themes/%{theme_name}
%{_datadir}/apps/superkaramba/themes/%{theme_name}/*

%post
if [ $1 = 1 ]; then
echo "THEME path=%{theme_name}/%{theme_name}.theme" >> %{_datadir}/apps/superkaramba/themes/default.theme
fi

%postun
if [ $1 = 0 ]; then
cat %{_datadir}/apps/superkaramba/themes/default.theme | grep -v "%{theme_name}" > %{_datadir}/apps/superkaramba/themes/default.theme
exit 0
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build

%install
mkdir -p %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}
cp -rf * %{buildroot}%{_datadir}/apps/superkaramba/themes/%{theme_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9041 |21cr|superreadahead-0.01-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           superreadahead
Version:        0.01
Release:        4
Summary:        Read ahead pagecontent at boot
Group:          System/Base
URL:            http://repo.moblin.org/moblin/development/source/
License:        GPLv2
Source0:        superreadahead-0.01.tar.gz

%description
Superreadahead is a read ahead pagecontent at boot.


%prep
%setup -q
# (tv) remove hardocded flags:
%ifarch %ix86
perl -pi -e 's!-march=i686!-march=i586!' Makefile
%else
perl -pi -e 's!-O0 -march=i686!-O2!' Makefile
%endif


%build
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make install DESTDIR=$RPM_BUILD_ROOT


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%_sbindir/generate_filelist
%_sbindir/sreadahead

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9042 |21cr|superswitcher-0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Featureful window switcher
Name:		superswitcher
Version:	0.6
Release:	5
License:	GPLv2
Group:		Graphical desktop/Other
Url:		http://superswitcher.googlecode.com/
Source0:	%{name}-%{version}.tar.gz
Patch0:		superswitcher-0.6-glib-single-include.patch
Patch1:		superswitcher-0.6-wnck-workspace.patch
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libwnck-1.0)

%description
SuperSwitcher is a (more feature-ful) replacement for the Alt-Tab window
switching behavior and Ctrl-Alt-Left/Right/Up/Down workspace switching behavior
that is currently provided by Metacity.

%files
%doc AUTHORS ChangeLog COPYING README TODO
%{_bindir}/%{name}
%{_datadir}/dbus-1/services/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure
# GDK_DISPLAY deprecated
pushd src
for f in *; do sed -i 's/gdk_display/GDK_DISPLAY_XDISPLAY (gdk_display_get_default ())/g' "$f" ; done
popd
%make

%install
%makeinstall
rm -rf %{buildroot}%{_datadir}/locale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9043 |21cr|supertux-0.6.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Classic 2D jump n run sidescroller with Tux
Name:		supertux
Version:	0.6.3
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		https://www.supertux.org
Source0:	https://github.com/SuperTux/supertux/releases/download/v%{version}/SuperTux-v%{version}-Source.tar.gz
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	boost-devel
BuildRequires:	glm-devel
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(squirrel)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)

%description
SuperTux is a classic 2D jump 'n run sidescroller game in a similar style like
the original SuperMario games.

%files
%doc NEWS.md README.md
%license LICENSE.txt
%{_gamesbindir}/%{name}2
%{_gamesdatadir}/%{name}2
%{_datadir}/applications/%{name}2.desktop
%{_datadir}/metainfo/%{name}2.appdata.xml
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/icons/hicolor/scalable/apps/%{name}2.svg
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}*.png
%{_miconsdir}/%{name}*.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n SuperTux-v%{version}-Source

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DENABLE_BOOST_STATIC_LIBS=OFF
%make

%install
%makeinstall_std -C build

# Install our icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

# Drop unwanted stuff
rm -fr %{buildroot}%{_docdir}/%{name}2
rm -f %{buildroot}%{_gamesdatadir}/%{name}2/images/engine/fonts/devanagari/File

# Fix perms
chmod +x %{buildroot}%{_gamesdatadir}/%{name}2/sounds/normalize.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9044 |21cr|supertuxkart-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	SuperTuxKart

Summary:	Kart racing game
Name:		supertuxkart
Version:	1.4
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		https://supertuxkart.net
Source0:	https://github.com/supertuxkart/stk-code/releases/download/%{version}/%{oname}-%{version}-src.tar.xz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	git
BuildRequires:	mcpp-devel
BuildRequires:	wiiuse-devel
BuildRequires:	angelscript-devel
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(freealut)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libenet)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)

%description
SuperTuxKart is an improved version of TuxKart, a kart racing game featuring
Tux and friends. It contains new characters, new tracks and a reworked user
interface.

%files
%doc CHANGELOG.md NETWORKING.md README.md
%license COPYING
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/pixmaps/%{name}.png
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png


#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}-src

# Fix perms
find . -name "*.c" -o -name "*.h" | xargs chmod 0644

%build
%cmake \
	-DBUILD_RECORDER:BOOL=OFF	\
	-DBUILD_SHARED_LIBS:BOOL=OFF	\
	-DSTK_INSTALL_BINARY_DIR=%{_gamesbindir}	\
	-DSTK_INSTALL_DATA_DIR=%{_gamesdatadir}/%{name}	\
    -DUSE_SYSTEM_ANGELSCRIPT=ON \
	-DUSE_SYSTEM_ENET=ON		\
	-DUSE_SYSTEM_GLEW=ON		\
	-DUSE_SYSTEM_WIIUSE=ON
%make

%install
%makeinstall_std -C build

# Fix .desktop file
desktop-file-edit --remove-key="PrefersNonDefaultGPU" \
				--set-key="X-PrefersNonDefaultGPU" --set-value="true" \
				%{buildroot}%{_datadir}/applications/%{name}.desktop

# Fix perms
chmod +x %{buildroot}%{_datadir}/games/%{name}/data/optimize_data.sh

# Drop useless translation scripts
rm -f %{buildroot}%{_datadir}/games/%{name}/data/po/pull_from_transifex.sh
rm -f %{buildroot}%{_datadir}/games/%{name}/data/po/*.py
rm -f %{buildroot}%{_datadir}/games/%{name}/data/po/.gitattributes

#install pixmaps file
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp data/%{name}_64.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9045 |21cr|supervisor-4.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A System for Allowing the Control of Process State on UNIX
Name:		supervisor
Version:	4.2.4
Release:	2

License:	ZPLv2.1 and BSD and MIT
Group:		System/Base
URL:		https://supervisord.org
Source0:	https://pypi.io/packages/source/s/%{name}/%{name}-%{version}.tar.gz
Source1:	supervisord.service
Source2:	supervisord.conf
Source3:	supervisor.logrotate
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools


%description
The supervisor is a client/server system that allows its users to control a
number of processes on UNIX-like operating systems.

%prep
%setup -q

%build
CFLAGS="%{optflags}" %__python3 setup.py build

%install
%py3_install
mkdir -p %{buildroot}/%{_sysconfdir}
mkdir -p %{buildroot}/%{_sysconfdir}/supervisord.d
mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d/
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}/%{_localstatedir}/log/%{name}
chmod 770 %{buildroot}/%{_localstatedir}/log/%{name}
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/supervisord.service
install -p -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/supervisord.conf
install -p -m 644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/logrotate.d/supervisor

%post
%systemd_post %{name}d.service

%preun
%systemd_preun %{name}d.service

%postun
%systemd_postun_with_restart %{name}d.service

%files
%doc README.rst LICENSES.txt CHANGES.rst COPYRIGHT.txt
%dir %{_localstatedir}/log/%{name}
%{_unitdir}/supervisord.service
%{py3_puresitedir}/*
%{_bindir}/supervisor*
%{_bindir}/echo_supervisord_conf
%{_bindir}/pidproxy

%config(noreplace) %{_sysconfdir}/supervisord.conf
%dir %{_sysconfdir}/supervisord.d
%config(noreplace) %{_sysconfdir}/logrotate.d/supervisor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9046 |21cr|surfraw-1.0.7-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Command line interface to various web search engines
Name: surfraw
Version: 1.0.7
Release: 13
URL: http://surfraw.sf.net/
Source0: ftp://ftp.netbsd.org/pub/NetBSD/misc/proff/surfraw-%{version}.tar.bz2
License: GPL
Group: Networking/WWW
BuildArch: noarch
Requires: links
Patch: surfraw-1.0.7-no-graphical-browser-by-default.patch

%description
Surfraw provides a fast unix command line interface to a variety
of popular WWW search engines and other artifacts of power.
Forsake GUI idolatry! Apostate return!

%prep
%setup -q
%patch -p1

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

rm $RPM_BUILD_ROOT%{_bindir}/rhyme

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README NEWS TODO
%config(noreplace) /etc/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9047 |21cr|svg2pdf-0-1.20100407.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git_clone_date 20100407

Summary:	Simple SVG to PDF converter
Name:		svg2pdf
Version:	0
Release:	1.%{git_clone_date}.2
License:	MIT
Group:		Development/X11
Url:		http://cgit.freedesktop.org/~cworth/svg2pdf/
Source0:	svg2pdf.c
Source1:	Makefile
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(librsvg-2.0)

%description
svg2pdf is a very simple tool to convert SVG files to PDF using cairo.

%files
%{_bindir}/svg2pdf

#----------------------------------------------------------------------------

%prep
%setup -q -c -T
cp %{SOURCE0} .
cp %{SOURCE1} .

%build
%setup_compile_flags
%make

%install
mkdir -p %{buildroot}/%{_bindir}
install svg2pdf %{buildroot}/%{_bindir}/svg2pdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9048 |21cr|svgalib-1.9.25-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A low-level fullscreen SVGA graphics library
Name:		svgalib
Version:	1.9.25
Release:	19
License:	Public Domain
Group:		System/Libraries
Url:		http://www.svgalib.org/
Source0:	http://www.arava.co.il/matan/svgalib/%{name}-%{version}.tar.gz
Patch0:		svgalib-1.9.21-makefiles.patch
Patch1:		svgalib-1.4.3-fhs.patch
Patch2:		svgalib-1.9.21-demos.patch
Patch3:		svgalib-1.9.21-cfg.patch
Patch4:		svgalib-1.9.25-kernel-2.6.26.patch
Patch5:		svgalib-1.9.25-LDFLAGS.diff
Patch6:		svgalib-1.9.25-round_gtf_gtfcalc_c.patch
Patch7:		svgalib-1.9.25-quickmath-h-redefinitions.patch
Patch8:		svgalib-1.9.25-vga_getmodenumber.patch
# patch from Alt Linux
Patch9:		svgalib-1.9.23-unresolved.patch
Patch10:	svgalib-1.9.25-alt-asm-fix.patch
Patch11:	svgalib-threeDKit-glibc.patch
ExclusiveArch:	%{ix86} x86_64

%description
The svgalib package provides the SVGAlib low-level graphics library for
Linux. SVGAlib is a library which allows applications to use full screen
graphics on a variety of hardware platforms. Many games and utilities use
SVGAlib for their graphics.

You'll need to have the svgalib package installed if you use any of the
programs which rely on SVGAlib for their graphics support.

%files
%doc 0-README LICENSE svgalib.lsm
%dir %{_sysconfdir}/vga
%config(noreplace) %{_sysconfdir}/vga/*
%{_bindir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs using the SVGAlib graphics library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Conflicts:	%{_lib}svgalib1-devel < 1.9.25-14
Obsoletes:	%{_lib}svgalib1-devel < 1.9.25-14

%description -n %{devname}
The svgalib-devel package contains the libraries and header files needed
to build programs which will use the SVGAlib low-level graphics library.

Install the svgalib-devel package if you want to develop applications
which will use the SVGAlib library. Please take note that SVGAlib is
independent from X Window System. Thus, this package is useless if you
want to develop X11 applications.

%files -n %{devname}
%doc doc/CHANGES doc/DESIGN doc/Driver-programming-HOWTO doc/README.joystick doc/README.keymap doc/README.patching doc/README.vesa doc/TODO doc/svgalib.lsm
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

#the testlinear demo needs svgalib's internal libvga header, so copy it to the
#demo dir
cp src/libvga.h demos

%build
make OPTIMIZE="%{optflags} -Wno-pointer-sign" \
    LDFLAGS="%{ldflags}" \
    prefix=%{_prefix} \
    NO_HELPER=y \
    INCLUDE_ET4000_DRIVER=y \
    INCLUDE_OAK_DRIVER=y \
    INCLUDE_MACH32_DRIVER=y \
    INCLUDE_ET3000_DRIVER=y \
    INCLUDE_GVGA6400_DRIVER=y \
    INCLUDE_ATI_DRIVER=y \
    INCLUDE_G450C2_DRIVER=y \
    INCLUDE_ET4000_DRIVER_TEST=y \
    INCLUDE_FBDEV_DRIVER_TEST=y \
    INCLUDE_VESA_DRIVER_TEST=y \
    shared

pushd utils
    make OPTIMIZE="%{optflags} -Wno-pointer-sign" \
    LDFLAGS="%{ldflags}" \
    prefix=%{_prefix}
popd

pushd threeDKit
make OPTIMIZE="%{optflags} -Wno-pointer-sign -I../gl" \
    LDFLAGS="%{ldflags}" \
    LIBS="-L../sharedlib -lm -lvgagl -lvga" \
    prefix=%{_prefix} lib3dkit.so.%{version}
popd

%ifarch %{ix86}
pushd lrmi-0.9
    make CFLAGS="%{optflags}" \
    LDFLAGS="%{ldflags}"
popd
%endif

%install
install -d %{buildroot}{%{_libdir},%{_sysconfdir}/vga}

%makeinstall \
    TOPDIR=%{buildroot} \
    prefix=%{buildroot}%{_prefix} \
    mandir=%{buildroot}%{_mandir} \
    sharedlibdir=%{buildroot}%{_libdir} \
    NO_HELPER=y \
    INSTALL_PROGRAM="install -p -m755" \
    INSTALL_SCRIPT="install -p -m755" \
    INSTALL_SHLIB="install -p -m755" \
    INSTALL_DATA="install -p -m644" \
    INSTALLMODULE="" \
    INSTALLDEV="" \

install -m644 ./src/config/* %{buildroot}%{_sysconfdir}/vga

rm -f %{buildroot}%{_datadir}/{dvorak-us.keymap,libvga.config,libvga.et4000,null.keymap}

%ifarch %{ix86}
# use the newer lrmi stuff
install -m0755 lrmi-0.9/mode3 %{buildroot}%{_bindir}/
install -m0755 lrmi-0.9/vga_reset %{buildroot}%{_bindir}/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9049 |21cr|SVG-cards-2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name SVG-cards
%define version 2.0
%define release 10
 
Summary: A set of playing cards in SVG
Name: %name
Version: %version
Release: %release
Group: Games/Cards
License: LGPL
Url:	 http://david.bellot.free.fr/svg-cards/files
Source: http://david.bellot.free.fr/svg-cards/files/%{name}-%{version}.tar.bz2
Buildarch: noarch

%description
This is a set of playing cards made in pure SVG with all kings, 
queens, jacks, numbers, jokers and backs of cards.
This set of SVG files is intended to be used in games, figures, 
illustrations and web sites.
The kings, queens and jacks are based on the french representation, 
because I find them beautiful.

%prep
%setup -q

%build
echo "Ready to use"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/%name
install *.svg $RPM_BUILD_ROOT/%{_datadir}/%name

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS Changelog NEWS README COPYING
%_datadir/SVG-cards

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9050 |21cr|svgcleaner-0.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to clean up SVG files
Name:		svgcleaner
Version:	0.9.5
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/RazrFalcon/svgcleaner
Source0:	https://github.com/RazrFalcon/svgcleaner/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/RazrFalcon/svgcleaner-gui/archive/refs/tags/v%{version}.tar.gz?/%{name}-gui-%{version}.tar.gz
BuildRequires:	cargo
BuildRequires:	rust
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	p7zip
Provides:	SVGCleaner = %{EVRD}

%description
Generally, SVG files produced by vector editors contain a lot of unused
elements and attributes that just blow up their size without providing better
visible quality.
SVG Cleaner could help you to clean up your SVG files from unnecessary data.
It has a lot of options for cleanup and optimization, works in batch mode,
provides threaded processing on the multicore processors and basically does
two things:
  - removing elements and attributes that don't contribute to the final
    rendering;
  - making those elements and attributes in use more compact.
Images cleaned by SVG Cleaner are typically 10-60 percent smaller than the
original ones.

%files
%doc README.rst
%license LICENSE.txt
%{_bindir}/svgcleaner
%{_bindir}/svgcleaner-gui
%{_datadir}/applications/svgcleaner.desktop
%{_iconsdir}/hicolor/*/apps/svgcleaner.*

#-----------------------------------------------------------------------------

%prep
%setup -q -a1

%build
cargo build --release

pushd %{name}-gui-%{version}
%qmake_qt5
%make
popd

%install
cargo install --root %{buildroot}%{_prefix}

%makeinstall_qt -C %{name}-gui-%{version}

rm -f %{buildroot}%{_prefix}/.crates*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9051 |21cr|svn2cl-0.13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Generator of ChangeLog(s) from `svn log` output
Name: svn2cl
Version: 0.13
Release: 4
Source0: http://ch.tudelft.nl/~arthur/svn2cl/%name-%version.tar.gz
Patch0: svn2cl-0.12-accum.patch
Patch1: svn2cl-0.11-authors.patch
Patch2: svn2cl-fix-stripping.patch
License: BSD
Group: Development/Other
Url: http://ch.tudelft.nl/~arthur/svn2cl/
Requires: libxslt-proc
BuildArch: noarch

%description
svn2cl is a simple xsl transformation and shellscript wrapper for generating a
classic GNU-style ChangeLog from a subversion repository log. It is made from
several changelog-like scripts using common xslt constructs found in different
places.

%prep

%setup -q
%patch0 -p0 -b .accum
%patch1 -p1 -b .authors
%patch2 -p0 -b .strip

sed -i -e 's|^XSL="$dir/|XSL="%{_datadir}/svn2cl/|' svn2cl.sh
chmod 0644 ChangeLog NEWS README TODO authors.xml
chmod 0755 convert_authors.pl

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_datadir}/%{name}
install -m 755 svn2cl.sh %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_bindir}
ln -sf %{_datadir}/%{name}/svn2cl.sh %{buildroot}%{_bindir}/%{name}
install -m 644 svn2cl.xsl svn2html.css svn2html.xsl %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_mandir}/man1
install -m 644 svn2cl.1 %{buildroot}%{_mandir}/man1/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog NEWS README TODO authors.xml convert_authors.pl
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9052 |21cr|svnauthcheck-1.0.15-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		svnauthcheck
Version:	1.0.15
Release:	3
Summary:	Tool to check the syntax of subversion acl file
License:	GPLv2+
Group:		Development/Other
Url:		https://svn.id.ethz.ch/docs/svnauthcheck.html
Source:		https://svn.id.ethz.ch/files/%{name}-%{version}.tar.bz2
BuildRequires:	flex
BuildRequires:	bison

%description
svnauthcheck is a tool to check the syntax of Subversion access control files.
It was developed to be able to delegate to certain repository users the ability
to manage the access control to the repository itself.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9053 |21cr|svox-pico-20160125-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname ttspico %{major}
%define develname	%mklibname ttspico -d

Summary:	Text-To-Speech engine from Android project
Name:		svox-pico
Version:	20160125
Release:	1
License:	ASL 2.0
Group:		Sound
Url:		http://android.googlesource.com/platform/external/svox.git
# tarball taken from:
# git clone https://android.googlesource.com/platform/external/svox
# commit: dfb9937746b1828d093faf3b1494f9dc403f392d
Source0:	%{name}-%{version}.tar.xz
# patches taken from debian:
Patch1:		0001-autoconf-building-of-library-using-libtool.patch
Patch2:		0002-gitignore-for-autotools-files.patch
Patch3:		0003-pico2wave-Convert-text-to-.wav-using-svox-text-to-sp.patch
Patch4:		0004-add-header-files.patch
Patch5:		0005-Install-lang-files.patch
Patch6:		0006-Set-picolangdir.patch
Patch9:		0009-Fix-link-order.patch
Patch10:	0010-platform.patch
Patch11:	0011-add-include-stdint.h.patch

BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(popt)

%description
Text-To-Speech engine from Android project.

%files
%doc pico_resources/NOTICE
%{_bindir}/*
%{_datadir}/pico/

#------------------------------------------------

%package -n	%{libname}
Summary:	Svox-pico library
Group:		System/Libraries

%description -n	%{libname}
Library for svox-pico.

%files -n %{libname}
%doc pico_resources/NOTICE
%{_libdir}/libttspico.so.%{major}
%{_libdir}/libttspico.so.%{major}.*

#------------------------------------------------

%package -n	%{develname}
Summary:	Svox-pico development files
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
Development files needed by svox-pico.

%files -n %{develname}
%doc pico_resources/NOTICE
%{_includedir}/*
%{_libdir}/libttspico.so
#------------------------------------------------

%prep
%setup -q
%autopatch -p1

chmod +x ./pico/autogen.sh

%build
pushd pico
	NOCONFIGURE=1 ./autogen.sh
	%configure --disable-static
	%make
popd

%install
%makeinstall -C pico
find %{buildroot} -name '*.la' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9054 |21cr|svrcore-4.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define nspr_version 4.12
%define nss_version 3.11

%define major	  0
%define libname   %mklibname %{name} %{major}
%define devname   %mklibname %{name} -d

Summary:          Secure PIN handling using NSS crypto
Name:             svrcore
Version:          4.1.2
Release:          4
License:          MPLv1.1 or GPLv2+ or LGPLv2+
URL:              http://www.mozilla.org/projects/security/pki/
Group:            Security
Requires:         nspr >= %{nspr_version}
Requires:         nss >= %{nss_version}
BuildRequires:    nspr-devel >= %{nspr_version}
BuildRequires:    nss-devel >= %{nss_version}
BuildRequires:    pkgconfig

Source0:          ftp://ftp.mozilla.org/pub/mozilla.org/directory/svrcore/releases/%{version}/src/%{name}-%{version}.tar.bz2

%description
svrcore provides applications with several ways to handle secure PIN storage
e.g. in an application that must be restarted, but needs the PIN to unlock
the private key and other crypto material, without user intervention.  svrcore
uses the facilities provided by NSS.

%package -n %{libname}
Summary:	Secure PIN handling using NSS crypto
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Obsoletes:	%{name} < 4.0.4-5

%description -n %{libname}
svrcore provides applications with several ways to handle secure PIN storage
e.g. in an application that must be restarted, but needs the PIN to unlock
the private key and other crypto material, without user intervention.  svrcore
uses the facilities provided by NSS.

%package -n %{devname}
Summary: 	Development files for secure PIN handling using NSS crypto
Group: 		Development/C
Requires: 	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{name}-devel < 4.0.4-5

%description -n %{devname}
svrcore provides applications with several ways to handle secure PIN storage
e.g. in an application that must be restarted, but needs the PIN to unlock
the private key and other crypto material, without user intervention.  svrcore
uses the facilities provided by NSS.

This package contains header files and symlinks to develop programs which will
use the libsvrcore library.  You should install this package if you need to
develop programs which will use the svrcore library.

%prep
%setup -q

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/libsvrcore.{a,la}

%files -n %{libname}
%doc LICENSE README NEWS
%{_libdir}/libsvrcore.so.%{major}
%{_libdir}/libsvrcore.so.%{major}.*

%files -n %{devname}
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libsvrcore.so
%{_includedir}/svrcore.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9055 |21cr|swami-2.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Instrument patch editor for wave-table synths (soundfont)
Name:		swami
Version:	2.2.2
Release:	2
License:	GPLv2+
Group:		Sound
Url:		http://swami.sourceforge.net
Source0:	https://github.com/swami/swami/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 2.8.12
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	instpatch
BuildRequires:	intltool
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtksourceview-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnomecanvasmm-2.6)
BuildRequires:	pkgconfig(libinstpatch-1.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(pygobject-2.0)
BuildRequires:	pkgconfig(sndfile)
Requires:	fluidsynth
Requires:	instpatch
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}swami0 < 2.0.0-5

%description
Swami is an instrument patch file editor using SoundFont files that allows you
to create and distribute instruments from audio samples used for composing
music. It uses the fluidsynth software synthesizer, which has real time effect
control, support for modulators, and routable audio via Jack.
Swami requires the instpatch library containing tools for soundfont editing.

%files
%license COPYING
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}-2.ui
%dir %{_datadir}/%{name}/images
%{_datadir}/%{name}/images/*.png
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for processing Music Instrument patch files
Group:		System/Libraries

%description -n %{libname}
Dynamic library files needed by the swami instrument patch editor.

%files -n %{libname}
%doc AUTHORS ChangeLog README.md
%license COPYING
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/lib%{name}gui.so.%{major}*
%{_libdir}/%{name}/*.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Swami development headers
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files to build applications with swami headers.

%files -n %{devname}
%license COPYING
%dir %{_includedir}/%{name}/lib%{name}
%dir %{_includedir}/%{name}/lib%{name}gui
%{_includedir}/%{name}/lib%{name}/*.h
%{_includedir}/%{name}/lib%{name}gui/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}gui.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake ..
%make

%install
%makeinstall_std -C build

desktop-file-edit \
	--add-category="X-MandrivaLinux-Multimedia-Sound;" \
	--remove-category="Application;" \
	--remove-category="Midi;" \
	--remove-category="Music;" \
	%{buildroot}%{_datadir}/applications/*

mkdir -p %{buildroot}%{_datadir}/pixmaps/
cp %{name}.svg %{buildroot}%{_datadir}/pixmaps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9056 |21cr|swatch-3.2.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility for monitoring system logs files

Name:		swatch
Version:	3.2.3
Release:	9
License:	GPLv2
Group:		Monitoring
Source0:	%{name}-%{version}.tar.gz
URL:		http://swatch.sourceforge.net/
Source1:	swatchrc.bz2
Source2:	README-mandrake.bz2
BuildRequires:	perl-devel perl-File-Tail perl-Date-Calc perl-Time-HiRes perl-TimeDate
Requires:	perl perl-File-Tail perl-Date-Calc perl-Time-HiRes perl-TimeDate
BuildArch:	noarch

%description
The Swatch utility monitors system log files, filters out unwanted data
and takes specified actions (i.e., sending email, executing a script,
etc.) based upon what it finds in the log files.

Install the swatch package if you need a program that will monitor log
files and alert you in certain situations.

%prep
%setup -q
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
eval `perl '-V:installarchlib'`
mkdir -p %{buildroot}/$installarchlib
perl -pi -e "s|^(INSTALLMAN1DIR\s=\s/usr/share/man/man1)|INSTALLMAN1DIR = \\$\(PREFIX\)/share/man/man1|" $RPM_BUILD_DIR/%{name}-%{version}/Makefile
%makeinstall_std
install tools/swatch_oldrc2newrc -D %{buildroot}%{_bindir}/swatch_oldrc2newrc

mkdir -p %{buildroot}%{_sysconfdir}
bzcat %{SOURCE1} >> %{buildroot}%{_sysconfdir}/swatchrc

bzcat %{SOURCE2} >> $RPM_BUILD_DIR/%{name}-%{version}/README-Mandrake

rm -rf %{buildroot}%{perl_vendorlib}/auto

%clean

%files
%doc CHANGES INSTALL COPYRIGHT KNOWN_BUGS README* examples tools
%{_bindir}/swatch
%{_bindir}/swatch_oldrc2newrc
%{_mandir}/man?/*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/swatchrc
%dir %{perl_vendorlib}/Swatch
%{perl_vendorlib}/Swatch/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9057 |21cr|sway-1.8.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global Werror_cflags %nil

Summary:	SirCmpwn's Wayland window manager
Name:		sway
Version:	1.8.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://swaywm.org/
# git clone https://github.com/SirCmpwn/sway.git
# git archive --format=tar --prefix sway-0.5-$(date +%Y%m%d)/ HEAD | xz -vf > ../sway-0.5-$(date +%Y%m%d).tar.xz
# Source0:	https://github.com/SirCmpwn/sway/archive/%{name}-%{version}-%{date}.tar.xz
Source0:    https://github.com/swaywm/sway/archive/refs/tags/%{version}.tar.gz

BuildRequires:	meson
BuildRequires:	egl-devel
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(wlroots)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	scdoc
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pcre-devel
BuildRequires:	pam-devel
BuildRequires:	xsltproc
BuildRequires:	docbook-dtds

Requires(pre):	libcap-utils
Requires:	imagemagick
# update it too next time
Requires:	swaylock
Requires:	swayidle
Requires:	grim
Requires:	slurp
Requires:	swaybg
Requires:	mako
Requires:	wl-clipboard
Requires:	pavucontrol-qt
Requires:	fonts-ttf-liberation
Requires:   seatd

Recommends:	sway-systemd
Recommends:	dri-drivers
Recommends:	qt5-qtwayland
Recommends:	Rosa-theme-common
Recommends:	xwayland
Recommends:	kitty
Recommends:	fontconfig
Recommends:	alacritty

%description
"SirCmpwn's Wayland window manager" is a work in progress
i3-compatible window manager for Wayland.

%prep
%autosetup -p1
sed -i 's!werror=true!werror=false!g' meson.build

%build
%meson -Dsd-bus-provider=libsystemd
%meson_build

%install
%meson_install
# use kitty terminal
sed -i 's!foot!kitty!g' %{buildroot}/etc/sway/config
# set our background
sed -i "s|^output \* bg .*|output * bg /usr/share/wallpapers/default.jpg fill|" %{buildroot}%{_sysconfdir}/sway/config
# Create directory for extra config snippets
install -d -m755 -pv %{buildroot}%{_sysconfdir}/sway/config.d

%post
%{_sbindir}/setcap cap_sys_ptrace=eip %{_bindir}/sway

%files
%config(noreplace)%{_sysconfdir}/%{name}/config
%dir %{_sysconfdir}/sway/config.d
%{_bindir}/sway*
%{_mandir}/man5/%{name}*.*
%{_mandir}/man7/sway*.7.*
%{_mandir}/man1/%{name}*.*
%{_datadir}/backgrounds/%{name}/
%{_datadir}/wayland-sessions/sway.desktop
%{_datadir}/bash-completion/completions/*
%{_datadir}/fish/vendor_completions.d/*
%{_datadir}/zsh/site-functions/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9058 |21cr|swaybg-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       swaybg
Version:    1.1.1
Release:    1
Summary:    Wallpaper tool for Wayland compositors
Group:          Graphical desktop/Other
License:    MIT
URL:        https://github.com/swaywm/swaybg
Source0:	https://github.com/swaywm/swaybg/archive/v%{version}.tar.gz

BuildRequires:  meson >= 0.48.0
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols) >= 1.14
# Man page compilation
BuildRequires:  scdoc

%description
%{summary}.

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%files
%doc README.md
%license LICENSE
%{_bindir}/swaybg
%{_mandir}/man1/swaybg.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9059 |21cr|swayidle-1.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		swayidle
Version:	1.7.1
Release:	2
Summary:	Sway idle manager
Group:		Graphical desktop/Other
License:	MIT
URL:		https://github.com/swaywm/swayidle
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
# Older versions were part of the sway package
Conflicts:	sway < 1.0

BuildRequires:	meson >= 0.48.0
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-protocols) >= 1.14
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	scdoc

%description
swaylock is a screen locking utility for Wayland compositors.

%prep
%autosetup

%build
export CFLAGS=`echo %{optflags} -Wno-format -Wno-error=format-security`
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
# Co-own completion directories
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/%{name}
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_%{name}
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/%{name}.fish

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9060 |21cr|swaylock-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       swaylock
Version:	1.6
Release:	1
Summary:    Screen locker for Wayland
Group:		Graphical desktop/Other
License:    MIT
URL:        https://github.com/swaywm/swaylock
Source0:    %{url}/archive/%{version}/%{name}-%{version}.tar.gz
# Older versions were part of the sway package
Conflicts:      sway < 1.0

BuildRequires:  meson >= 0.48.0
BuildRequires:  pam-devel
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols) >= 1.14
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  scdoc

%description
swaylock is a screen locking utility for Wayland compositors.

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
# Co-own completion directories
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/%{name}
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_%{name}
%dir %{_datadir}/fish
%dir %{_datadir}/fish/vendor_completions.d
%{_datadir}/fish/vendor_completions.d/%{name}.fish

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9061 |21cr|sweep-0.9.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sound sample editor
Name:		sweep
Version:	0.9.3
Release:	10
License:	GPLv2+
Group:		Sound
Url:		http://sweep.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/sweep/%{name}-%{version}.tar.gz
#gw received by mail from Pavel Fric
Source1:	cs.po
Patch0:		sweep-0.9.3-add-cs-po.patch
Patch1:		sweep-0.9.3-multithread.patch
BuildRequires:	desktop-file-utils
BuildRequires:	librsvg
BuildRequires:	libtool
#gw aclocal
Buildrequires:	gettext-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(tdb)
BuildRequires:	pkgconfig(vorbis)
#gw lam also has a binary named sweep
Conflicts:	lam-runtime

%description
Sweep is an audio editor and live playback tool for GNU/Linux, BSD and
compatible systems. It supports many music and voice formats including
WAV, AIFF, Ogg Vorbis, Speex and MP3, with multichannel editing and
LADSPA effects plugins. Inside lives a pesky little virtual stylus called
Scrubby who enjoys mixing around in your files.

%files -f %{name}.lang
%doc README ABOUT-NLS AUTHORS COPYING ChangeLog NEWS
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%dir %{_libdir}/sweep/
%{_libdir}/sweep/*.so
%dir %{_datadir}/sweep/
%{_datadir}/sweep/sweep_splash.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------

%package devel
Summary:	C headers for developing Sweep plugins
Group:		Development/C

%description devel
Sweep is an audio editor and live playback tool for GNU/Linux, BSD and
compatible systems. It supports many music and voice formats including
WAV, AIFF, Ogg Vorbis, Speex and MP3, with multichannel editing and
LADSPA effects plugins. Inside lives a pesky little virtual stylus called
Scrubby who enjoys mixing around in your files.

This package contains the C headers needed to compile plugins for Sweep.

%files devel
%doc doc/*.txt
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
cp %{SOURCE1} po/

%build
autoreconf -fi
# fix for wrongly set plugin dir on 64-bit
sed -i 's/sweep_plugin_dir=.*/sweep_plugin_dir="$PACKAGE_PLUGIN_DIR"/' configure
LDFLAGS="-lgmodule-2.0 -lX11" %configure --enable-alsa

%make

%install
%makeinstall_std MKINSTALLDIRS=`pwd`/mkinstalldirs
rm -rf %{buildroot}%{_datadir}/locale/en_AU

%find_lang %{name}

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --add-category="X-MandrivaLinux-Multimedia-Sound" \
  --add-category="AudioVideo" \
  --add-category="Audio" \
  --add-category="Sequencer" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

install -d %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
install -m644 %{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9062 |21cr|SweetHome3D-7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname SweetHome3D
%define pkgmod 3DModels
%define pkgtextu Textures
%define modelver 1.9.1
%define textuver 1.3
%define texturesver 2.0
%define furniturever 2.0

Summary:	A free interior design application, with a 3D preview
Name:		SweetHome3D
Version:	7.2
Release:	1
License:	GPLv2
Group:		Graphics
Url:		http://www.sweethome3d.com/
Source0:	http://sourceforge.net/projects/sweethome3d/files/SweetHome3D-source/%{pkgname}-%{version}-src/%{pkgname}-%{version}-src.zip
Source1:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-models/3DModels-%{modelver}/%{pkgmod}-Contributions-%{modelver}.zip
Source2:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-models/3DModels-%{modelver}/%{pkgmod}-KatorLegaz-%{modelver}.zip
Source3:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-models/3DModels-%{modelver}/%{pkgmod}-LucaPresidente-%{modelver}.zip
Source4:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-models/3DModels-%{modelver}/%{pkgmod}-Reallusion-%{modelver}.zip
Source5:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-models/3DModels-%{modelver}/%{pkgmod}-Scopia-%{modelver}.zip
Source6:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-models/3DModels-%{modelver}/%{pkgmod}-Trees-%{modelver}.zip
Source7:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-models/3DModels-%{modelver}/%{pkgmod}-BlendSwap-CC-BY-%{modelver}.zip
Source8:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-models/3DModels-%{modelver}/%{pkgmod}-BlendSwap-CC-0-%{modelver}.zip
Source9:	sweethome3d_128x128.png
Source10:	sweethome3d-4.6-script
Source11:	http://sourceforge.net/projects/%{name}/files/TexturesLibraryEditor-source/TexturesLibraryEditor-%{texturesver}-src.zip
Source12:	https://sourceforge.net/projects/sweethome3d/files/FurnitureLibraryEditor-source/FurnitureLibraryEditor-%{furniturever}-src.zip
Source13:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-textures/Textures-%{textuver}/%{pkgtextu}-Contributions-%{textuver}.zip
Source14:	http://sourceforge.net/projects/%{name}/files/SweetHome3D-textures/Textures-%{textuver}/%{pkgtextu}-eTeksScopia-%{textuver}.zip
Source15:	SweetHome3D.rpmlintrc
Patch0:		sweethome3d-7.2-01noMacOSX.patch 
Patch1:		sweethome3d-7.2-build_xml.patch
Patch2:		sweethome3d-7.2-javadoc.patch
Patch3:		sweethome3d-7.2-disable_checkForUpdates.patch

BuildArch:	noarch
ExclusiveArch:  x86_64

BuildRequires:	ant
BuildRequires:	batik
BuildRequires:	desktop-file-utils
BuildRequires:	dos2unix
BuildRequires:	gnu-regexp
BuildRequires:	icedtea-web
BuildRequires:	imagemagick
BuildRequires:	itext
BuildRequires:	java-1.8.0-devel
BuildRequires:	java-1.8.0-javadoc
BuildRequires:	java-rpmbuild
BuildRequires:	java3d
BuildRequires:	java3d-javadoc
BuildRequires:	jdepend
BuildRequires:	jdom
BuildRequires:	jiprof
BuildRequires:	junit
BuildRequires:	jpackage-utils
# need patched bundled version of sunflow
# BuildRequires:	sunflow
BuildRequires:	vecmath
BuildRequires:	xerces-j2
BuildRequires:	xml-commons-apis

Requires:	batik
Requires:	icedtea-web
Requires:	itext
Requires:	java-headless
Requires:	java3d
Requires:	jpackage-utils
#Requires:	sunflow
Requires:	vecmath

Recommends:	%{name}-3dmodels
Recommends:	%{name}-textures

%description
Sweet Home 3D is a free interior design application that helps you place your
furniture on a house 2D plan, with a 3D preview.
Available at http://www.sweethome3d.eu/, this program is aimed at people who
want to design their interior quickly, whether they are moving or they just
want to redesign their existing home. Numerous visual guides help you draw the
plan of your home and layout furniture. You may draw the walls of your rooms
upon the image of an existing plan, and then, drag and drop furniture onto the
plan from a catalog organized by categories. Each change in the 2D plan is
simultaneously updated in the 3D view, to show you a realistic rendering of
your layout.

%files
%doc COPYING* LICENSE.TXT README.TXT
%{_bindir}/%{name}
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/Furniture.jar
%{_javadir}/%{name}/Help.jar
%{_javadir}/%{name}/%{pkgname}-%{version}.jar
%{_javadir}/%{name}/%{pkgname}.jar
%{_javadir}/%{name}/Textures.jar
# FIXME for package jar that does not exist
%{_javadir}/%{name}/jmf.jar
%{_javadir}/%{name}/freehep-vectorgraphics-svg-2.1.1c.jar
%{_javadir}/%{name}/jnlp.jar
%{_javadir}/%{name}/jeksparser-calculator.jar
%{_javadir}/%{name}/sunflow-0.07.3i.jar
#
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/*.jpg
%{_iconsdir}/*.gif
%{_iconsdir}/hicolor/*x*/apps/%{name}.png

#-----------------------------------------------------------------------------

%package 3dmodels
Summary:	Some extra 3DModels for %{pkgname}
Group:		Graphics
BuildArch:	noarch
Requires:	%{name} = %{EVRD}

%description 3dmodels
Some extra 3DModels for %{pkgname}.

This package contains:
* 3DModels Contributions %{modelver}
* 3DModels KatorLegaz %{modelver}
* 3DModels Scopia %{modelver}
* 3DModels Trees %{modelver}
* 3DModels LucaPresidente %{modelver}
* 3DModels Reallusion-%{modelver}
* 3DModels BlendSwap-CC-BY-%{modelver}
* 3DModels BlendSwap-CC-0-%{modelver}

%files 3dmodels
%doc 3DModels-Contributions/*.txt 3DModels-KatorLegaz/*.txt 3DModels-Scopia/*.txt 3DModels-Trees/*.txt 3DModels-LucaPresidente/*.txt 3DModels-Reallusion/*.txt 3DModels-BlendSwap-CC-BY/*.txt 3DModels-BlendSwap-CC-0/*.txt
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{pkgmod}
%{_datadir}/%{name}/%{pkgmod}/*.sh3f

#-----------------------------------------------------------------------------

%package textures
Summary:	Some extra Textures for %{pkgname}
Group:		Graphics
BuildArch:	noarch
Requires:	%{name} = %{EVRD}

%description textures
(New) Some extra Textures for %{pkgname}.

This package contains:
* Textures Contributions %{textuver}
* Textures eTeksScopia %{textuver}

%files textures
%doc Textures-Contributions/*.txt Textures-eTeksScopia/*.txt
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{pkgtextu}
%{_datadir}/%{name}/%{pkgtextu}/*.sh3t

#-----------------------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{pkgname}
Group:		Documentation
BuildArch:	noarch

%description javadoc
Sweet Home 3D - An application for placing your furniture on a house 2D plan,
with a 3D preview

This package contains javadoc for %{pkgname}.

%files javadoc
%dir %{_javadocdir}/%{name}
%{_javadocdir}/%{name}/*

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{version}-src
%apply_patches

for j in $(find . -name "*.jar"); do
	mv $j $j.no
done

rm -rf lib/windows
rm -rf lib/macosx
rm -rf lib/linux

pushd lib
	ln -sf $(build-classpath batik-all) batik-svgpathparser-1.7.jar
	ln -sf $(build-classpath itext) iText-2.1.7.jar
	ln -sf $(build-classpath java3d/j3dcore) j3dcore.jar
	ln -sf $(build-classpath java3d/j3dutils) j3dutils.jar
# need patched version of sunflow
#	ln -sf $(build-classpath sunflow) sunflow-0.07.3i.jar
	ln -sf $(build-classpath vecmath) vecmath.jar
	ln -sf %{_datadir}/icedtea-web/javaws.jar javaws.jar
# FIXME for package jar that does not exist on Mageia
	mv jmf.jar.no jmf.jar
	mv freehep-vectorgraphics-svg-2.1.1c.jar.no freehep-vectorgraphics-svg-2.1.1c.jar
	mv jeksparser-calculator.jar.no jeksparser-calculator.jar
	mv sunflow-0.07.3i.jar.no sunflow-0.07.3i.jar
popd

# Abbot is not built yet
pushd libtest
	ln -sf $(build-classpath gnu-regexp) gnu-regexp-1.1.4.jar
	ln -sf $(build-classpath jdepend) jdepend-2.9.jar
	ln -sf $(build-classpath jdom) jdom-1.1.1.jar
	ln -sf %{_datadir}/icedtea-web/netx.jar jnlp.jar
	ln -sf $(build-classpath jiprof/profile) profile.jar
popd

for c in $(find lib -name "*.class"); do
	rm -f $c
done

dos2unix  *.TXT
chmod 644 *.TXT

# for extra 3DModels
mkdir -p 3DModels-Contributions
pushd 3DModels-Contributions
	unzip -q %{SOURCE1}
	mv README.TXT README-3DModels-Contributions.txt
	mv LICENSE.TXT LICENSE-3DModels-Contributions.txt
	sed -i 's/\r$//' *.txt
popd
mkdir -p 3DModels-KatorLegaz
pushd 3DModels-KatorLegaz
	unzip -q %{SOURCE2}
	mv README.TXT README-3DModels-KatorLegaz.txt
	mv LICENSE.TXT LICENSE-3DModels-KatorLegaz.txt
	sed -i 's/\r$//' *.txt
popd
mkdir -p 3DModels-LucaPresidente
pushd 3DModels-LucaPresidente
	unzip -q %{SOURCE3}
	mv README.TXT README-3DModels-LucaPresidente.txt
	mv LICENSE.TXT LICENSE-3DModels-LucaPresidente.txt
	sed -i 's/\r$//' *.txt
popd
mkdir -p 3DModels-Reallusion
pushd 3DModels-Reallusion
	unzip -q %{SOURCE4}
	mv README.TXT README-3DModels-Reallusion.txt
	mv LICENSE.TXT LICENSE-3DModels-Reallusion.txt
	sed -i 's/\r$//' *.txt
popd
mkdir -p 3DModels-Scopia
pushd 3DModels-Scopia
	unzip -q %{SOURCE5}
	mv README.TXT README-3DModels-Scopia.txt
	mv LICENSE.TXT LICENSE-3DModels-Scopia.txt
	sed -i 's/\r$//' *.txt
popd
mkdir -p 3DModels-Trees
pushd 3DModels-Trees
	unzip -q %{SOURCE6}
	mv README.TXT README-3DModels-Trees.txt
	mv LICENSE.TXT LICENSE-3DModels-Trees.txt
	sed -i 's/\r$//' *.txt
popd
mkdir -p 3DModels-BlendSwap-CC-BY
pushd 3DModels-BlendSwap-CC-BY
	unzip -q %{SOURCE7}
	mv README.TXT README-3DModels-BlendSwap-CC-BY.txt
	mv LICENSE.TXT LICENSE-3DModels-BlendSwap-CC-BY.txt
	sed -i 's/\r$//' *.txt
popd
mkdir -p 3DModels-BlendSwap-CC-0
pushd 3DModels-BlendSwap-CC-0
	unzip -q %{SOURCE8}
	mv README.TXT README-3DModels-BlendSwap-CC-0.txt
	mv LICENSE.TXT LICENSE-3DModels-BlendSwap-CC-0.txt
	sed -i 's/\r$//' *.txt
popd
# for extra Textures
mkdir -p Textures-Contributions
pushd Textures-Contributions
	unzip -q %{SOURCE13}
	mv README.TXT README-Textures-Contributions.txt
	mv LICENSE.TXT LICENSE-Textures-Contributions.txt
	sed -i 's/\r$//' *.txt
popd
mkdir -p Textures-eTeksScopia
pushd Textures-eTeksScopia
	unzip -q %{SOURCE14}
	mv README.TXT README-Textures-eTeksScopia.txt
	mv LICENSE.TXT LICENSE-Textures-eTeksScopia.txt
	sed -i 's/\r$//' *.txt
popd

%build
%ant application furniture textures help javadoc

%install
# .jar-repertory
mkdir -p %{buildroot}%{_javadir}/%{name}
install -pm 644 build/SweetHome3D.jar \
	%{buildroot}%{_javadir}/%{name}/%{pkgname}-%{version}.jar

(
	cd %{buildroot}%{_javadir}/%{name}
	for jar in *-%{version}*; do
		ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`
	done
)

for i in Furniture Textures Help; do
	install -pm 644 build/$i.jar %{buildroot}%{_javadir}/%{name}
done

rm -rf lib/iText-2.1.7.jar
rm -rf lib/j3dcore.jar
rm -rf lib/j3dutils.jar
#rm -rf lib/sunflow-0.07.3i.jar
rm -rf lib/vecmath.jar
rm -rf lib/Loader3DS1_2u.jar

# FIXME for package jar that does not exist on Mageia
install -pm 644 lib/jmf.jar %{buildroot}%{_javadir}/%{name}
install -pm 644 lib/freehep-vectorgraphics-svg-2.1.1c.jar %{buildroot}%{_javadir}/%{name}
# FIXME for display the sweethome3d splash screen
install -pm 644 libtest/jnlp.jar.no %{buildroot}%{_javadir}/%{name}/jnlp.jar
install -pm 644 lib/sunflow-0.07.3i.jar %{buildroot}%{_javadir}/%{name}
install -pm 644 lib/jeksparser-calculator.jar %{buildroot}%{_javadir}/%{name}

# 3Dmodels-repertory
mkdir -p %{buildroot}%{_datadir}/%{name}/%{pkgmod}
for i in Contributions KatorLegaz LucaPresidente Reallusion Scopia Trees BlendSwap-CC-BY BlendSwap-CC-0; do
	install -m 644 3DModels-$i/*.sh3f %{buildroot}%{_datadir}/%{name}/%{pkgmod}
done

# Textures-repertory
mkdir -p %{buildroot}%{_datadir}/%{name}/%{pkgtextu}
for i in Contributions eTeksScopia; do
	install -m 644 Textures-$i/*.sh3t %{buildroot}%{_datadir}/%{name}/%{pkgtextu}
done

# javadoc-repertory
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}

# binary-repertory
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE10} %{buildroot}%{_bindir}/%{name}

# icons-repertory
mkdir -p %{buildroot}%{_datadir}/pixmaps %{buildroot}%{_iconsdir} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/
cp -pr %{SOURCE9} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
cp -pr %{SOURCE9} %{buildroot}%{_datadir}/pixmaps/%{name}.png
cp -pr deploy/%{pkgname}*.jpg %{buildroot}%{_iconsdir}
cp -pr deploy/%{pkgname}*.gif %{buildroot}%{_iconsdir}

for png in 64x64 32x32 22x22 16x16; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${png}/apps/
	convert -geometry $png %{SOURCE9} %{buildroot}%{_iconsdir}/hicolor/${png}/apps/%{name}.png
done

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=Sweet Home 3D
Name[fr]=Sweet Home 3D
Name[ru]=Sweet Home 3D
GenericName=Sweet Home 3D
GenericName[fr]=Sweet Home 3D
GenericName[ru]=Проектирование домашнего интерьера в 3D
Comment=Design Application
Comment[fr]=Application de conception d'intérieur en 3D
Comment[ru]=Программа проектирования домашнего интерьера в 3D
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
StartupWMClass=com-eteks-sweethome3d-SweetHome3D
Categories=Graphics;2DGraphics;3DGraphics;
EOF

desktop-file-install \
	--mode=0644 \
	--dir=%{buildroot}%{_datadir}/applications %{name}.desktop

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9063 |21cr|swell-foop-41.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME colored tiles puzzle game
Name:		swell-foop
Version:	41.1
Release:	1
License:	GPLv2+ and GFDL
Group:		Games/Other
Url:		https://download.gnome.org/sources/swell-foop
Source0:	https://download.gnome.org/sources/swell-foop/%{url_ver}/swell-foop-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	yelp-tools
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libgnome-games-support-1)

%description
Clear the screen by removing groups of colored and shaped tiles.

%files -f %{name}.lang
%license COPYING
%{_appdatadir}/org.gnome.SwellFoop.appdata.xml
%{_bindir}/swell-foop
%{_datadir}/applications/org.gnome.SwellFoop.desktop
%{_datadir}/dbus-1/services/org.gnome.SwellFoop.service
%{_datadir}/glib-2.0/schemas/org.gnome.SwellFoop.gschema.xml
%{_datadir}/icons/*/*/*/*
%{_datadir}/swell-foop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9064 |21cr|swh-lv2-1.0.16-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SWH LV2 plugins converted from LADSPA
Name:		swh-lv2
Version:	1.0.16
Release:	4
License:	GPLv2+
Group:		Sound
Url:		http://plugin.org.uk/
Source0:	http://plugin.org.uk/lv2/lv2-%{version}.tar.gz
BuildRequires:	libxslt-proc
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(lv2)
Requires:	lv2

%description
This is an early experimental port of my LADSPA plugins to the LV2
specification (see http://lv2plug.in/). It's still quite early days, but most
things should work as well or not as they did in LADSPA.

%files
%doc README
%{_libdir}/lv2/*-swh.lv2/plugin-Linux.so
%{_libdir}/lv2/*-swh.lv2/*.ttl

#----------------------------------------------------------------------------

%prep
%setup -qn lv2-%{version}

%build
%setup_compile_flags
%make

%install
make install-system \
	PREFIX=%{buildroot} \
	INSTALL_DIR=%{buildroot}%{_libdir}/lv2

# Fix perms
chmod 644 %{buildroot}%{_libdir}/lv2/*/*.ttl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9065 |21cr|swig3-3.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with guile
%bcond_without mono
%bcond_without ocaml
%bcond_without php
%bcond_without ruby
%bcond_without lua
%define oname swig

Summary:	Simplified Wrapper and Interface Generator (SWIG)
Name:		swig3
Version:	3.0.12
Release:	1

License:	BSD
Group:		Development/Other
Url:		http://www.swig.org/
Source0:	http://download.sourceforge.net/%{oname}/%{oname}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	imake
BuildRequires:	libtool
%if %{with mono}
BuildRequires:	mono
BuildRequires:	pkgconfig(mono)
%endif
%if %{with ocaml}
BuildRequires:	ocaml
%endif
BuildRequires:	boost-devel
BuildRequires:	libstdc++-devel
%if %{with guile}
BuildRequires:	lua-devel
%endif
BuildRequires:	perl-devel
%if %{with php}
BuildRequires:	php-devel
%endif
%if %{with ruby}
BuildRequires:	ruby-devel
%endif
BuildRequires:	tcl-devel
%if %{with guile}
BuildRequires:	pkgconfig(guile-2.0)
%endif
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(python3)

Conflicts:	swig
Provides:   %{name} = %{EVRD}

%description
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

%files
%doc  LICENSE
%{_bindir}/swig
%{_bindir}/ccache-swig
%{_datadir}/swig

#----------------------------------------------------------------------------


%prep
%setup -qn %{oname}-%{version}

%build
./autogen.sh
%configure \
	--with-2to3=%{_bindir}/2to3 \
	--with-python3=%{_bindir}/python3
%make

%install
%makeinstall_std
find %{buildroot} -type f -empty -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9066 |21cr|swing-layout-1.0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		swing-layout
Summary:	Natural layout for Swing panels
Version:	1.0.4
Release:	3
Group:		Development/Java
Source:		%{name}-%{version}-src.zip
URL:		https://swing-layout.dev.java.net/
License:	LGPLv2
BuildArch:	noarch
BuildRequires:	java-devel >= 1.6.0
BuildRequires:	ant
BuildRequires:  java-rpmbuild
Requires:       java >= 1.3

%description
Swing Layout Extensions goal is to make it easy to create professional
cross platform layouts with Swing. This project will consist of extensions
to Swing and possibly a new LayoutManager. The long term goal is to roll
these changes back into Swing proper.

#%package javadoc
#Summary:	Javadoc for %name
#Group:		Development/Java

#%description javadoc
#Javadoc for %{name}

%prep
%setup -q

%build
%ant jar
cd dist
mv %{name}.jar %{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{name}.jar


%install
mkdir -p %{buildroot}%{_javadir}
#%{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a dist/%{name}.jar dist/%{name}-%{version}.jar %{buildroot}%{_javadir}
#cp -pr dist/javadoc/*  %{buildroot}%{_javadocdir}/%{name}-%{version}/

%files
%doc COPYING releaseNotes.txt
%{_javadir}/%{name}.jar
%{_javadir}/%{name}-%{version}.jar

#%files javadoc
#%{_javadocdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9067 |21cr|swi-prolog-9.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define _disable_ld_no_undefined 1
%global __requires_exclude /usr/bin/../swipl.sh|/usr/bin/pl|/usr/bin/swipl

%define major 9
%define libname %mklibname swipl %{major}

Summary:	Prolog interpreter and compiler
Name:		swi-prolog
Version:	9.0.0
Release:	1
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.swi-prolog.org/
Source0:	http://www.swi-prolog.org/download/stable/src/swipl-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gmp-devel
BuildRequires:	jpeg-devel
BuildRequires:	pcre2-devel
BuildRequires:	readline-devel
BuildRequires:	unixODBC-devel
BuildRequires:	yaml-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(ncursesw)
Buildrequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-nox
Requires:	%{name}-xpce
Recommends:	%{name}-doc

%description
Edinburgh-style Prolog compiler including modules, autoload, libraries,
Garbage-collector, stack-expandor, C-interface, GNU-readline and GNU-Emacs
interface, very fast compiler.

%files

#----------------------------------------------------------------------------

%package nox
Summary:	SWI-Prolog without GUI components
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Recommends:	%{name}-doc

%description nox
This package provide SWI-Prolog and several libraries, but without
GUI components.

%files nox
%doc README* VERSION
%{_mandir}/*/swipl*
%{_bindir}/swipl
%{_bindir}/swipl-ld
%{_libdir}/swipl
%{_libdir}/*.so
%{_libdir}/cmake/swipl
%{_libdir}/pkgconfig/swipl.pc
%exclude %{_libdir}/swipl/doc
%exclude %{_libdir}/swipl/xpce/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libswipl.so.%{major}*

#------------------------------------------------------------------
%package x
Summary:	SWI-Prolog native GUI library
Group:		Development/Other
Requires:	%{name}-nox = %{EVRD}
Provides:	%{name}-xpce = %{EVRD}

%description x
XPCE is a toolkit for developing graphical applications in Prolog and
other interactive and dynamically typed languages.

%files x
%doc %{_libdir}/swipl/doc/Manual/*xpce.html
%{_bindir}/swipl-win*
%{_libdir}/swipl/xpce/*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for SWI-Prolog
Group:		Documentation
Requires:	%{name}-nox = %{EVRD}

%description doc
Documentation for SWI-Prolog.

%files doc
%dir %{_libdir}/swipl/doc
%doc %{_libdir}/swipl/doc/Manual
%exclude %{_libdir}/swipl/doc/Manual/*xpce.html
%doc %{_libdir}/swipl/doc/packages

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n swipl-%{version}

# set install path
sed -i 's|lib/${SWIPL|%{_lib}/${SWIPL|' CMakeLists.txt
sed -i 's|lib/cmake|%{_lib}/cmake|' CMakeLists.txt

%build
%cmake \
	-DSWIPL_INSTALL_IN_LIB=ON \
	-DSWIPL_INSTALL_PKGCONFIG=%{_libdir}/pkgconfig \
	-GNinja

export LD_LIBRARY_PATH="$(pwd)/src:$LD_LIBRARY_PATH"
export PATH="$(pwd)/src:$PATH"
%ninja_build

%install
export LD_LIBRARY_PATH="$(pwd)/build/src:$LD_LIBRARY_PATH"
export PATH="$(pwd)/build/src:$PATH"
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9068 |21cr|switcheroo-control-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           switcheroo-control
Version:        2.4
Release:        1
Summary:        D-Bus service to check the availability of dual-GPU
Group:          System/Configuration/Hardware
License:        GPLv3
URL:            https://gitlab.freedesktop.org/hadess/switcheroo-control/
# URL from https://gitlab.freedesktop.org/hadess/switcheroo-control/-/releases
Source0:        https://gitlab.freedesktop.org/hadess/switcheroo-control/uploads/accd4a9492979bfd91b587ae7e18d3a2/switcheroo-control-2.4.tar.xz
Patch0:         switcheroo-control-systemd.patch
BuildRequires:  cmake
BuildRequires:  pkgconfig(gudev-1.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  gtk-doc
BuildRequires:  meson
BuildRequires:  pkgconfig(systemd)

%{?systemd_requires}

%description
D-Bus service to check the availability of dual-GPU.

#------------------------------------------------------------
%package docs
Summary:        Documentation for %{name}
Group:          Documentation
BuildArch:      noarch

%description docs
This package contains the documentation for %{name}.

%files docs
%dir %{_datadir}/gtk-doc/
%dir %{_datadir}/gtk-doc/html/
%{_datadir}/gtk-doc/html/%{name}/

#------------------------------------------------------------

%prep
%autosetup -p1


%build
%meson -Dgtk_doc=true
%meson_build


%install
%meson_install

%post
if [ $1 -eq 2 ] && [ -x /usr/bin/systemctl ] ; then
	/usr/bin/systemctl daemon-reload
fi
%systemd_post switcheroo-control.service
%udev_hwdb_update

%preun
%systemd_preun switcheroo-control.service

%postun
%systemd_postun_with_restart switcheroo-control.service
%udev_hwdb_update

%files
%license COPYING
%doc NEWS README.md
%{_bindir}/switcherooctl
%{_sysconfdir}/dbus-1/system.d/net.hadess.SwitcherooControl.conf
%{_unitdir}/switcheroo-control.service
%{_libexecdir}/switcheroo-control
%{_udevhwdbdir}/30-pci-intel-gpu.hwdb
%{_mandir}/man1/switcherooctl.1*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9069 |21cr|swm-1.2.5-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	relver	1.2.3

Summary:	A small window manager for X11
Name:		swm
Version:	1.2.5
Release:	16
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.informatik.hu-berlin.de/prog/swm.html
Source0:	http://www.informatik.hu-berlin.de/prog/%{name}-%{relver}-src.tar.bz2
Patch0:		swm-makefile.fix.relocate.patch
Patch1:		swm-1.2.3-link.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)

%description
Swm is a small window manager for X11 designed for very small laptop-screens
with a resolution of 640x400 pixels and above. (Or with PDA-mode 
320x240) SWM is even smaller than a rxvt!

%files
%{_bindir}/*
%{_mandir}/man1/*
%doc TODO README LIESMICH COMPILE_PARAMS AUTHORS README.iPaq COPYING
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{relver}-src
%patch0 -p0 -b .dir
%patch1 -p0

%build
%make CFLAGS="%{optflags}" CC="gcc %{ldflags}"

%install
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}

make PREFIX=%{buildroot}%{_prefix} install

mkdir -p %{buildroot}%{_sysconfdir}/X11/wmsession.d
cat << EOF > %{buildroot}%{_sysconfdir}/X11/wmsession.d/12swm
NAME=Swm
DESC=Swm Window manager
EXEC=%{_bindir}/startswm
SCRIPT:
exec %{_bindir}/startswm
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9070 |21cr|sword-1.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define soversion %{url_ver}
%define libname   %mklibname %name %soversion
%define devname   %mklibname %name -d

Summary:        The SWORD Project framework for manipulating Bible texts
Name:           sword
Version:        1.9.0
Release:        3
License:        GPLv2+
Group:          System/Libraries
Url:            https://www.crosswire.org/sword/software/
Source:         https://www.crosswire.org/ftpmirror/pub/sword/source/v%{url_ver}/%{name}-%{version}.tar.gz
Source2:        sword_icons.tar.bz2
Patch0:         cmake-perl-bindings.diff
BuildRequires:  cmake
BuildRequires:  icu
BuildRequires:  swig
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  pkgconfig(libidn)
BuildRequires:  pkgconfig(libclucene-core)
BuildRequires:  pkgconfig(cppunit)
BuildRequires:  pkgconfig(python3)

Requires:       curl


%description
The SWORD Project is an effort to create an ever expanding software package
for research and study of God and His Word.  The SWORD Framework
allows easy manipulation of Bible texts, commentaries, lexicons, dictionaries,
etc.  Many frontends are build using this framework.  An installed module
set may be shared between any frontend using the framework.

%files
%doc README AUTHORS NEWS ChangeLog
%doc samples/ doc/*.*
%license LICENSE
%{_bindir}/*
%{_datadir}/%{name}/
%config(noreplace) %{_sysconfdir}/sword.conf
#-----------------------------------------------------

%package -n %{libname}
Summary:         Main library for SWORD
Group:           System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with SWORD.

%files -n %{libname}
%doc README AUTHORS NEWS ChangeLog
%{_libdir}/*%{name}.so.%{soversion}

#-----------------------------------------------------
%package -n %{devname}
Summary:         Development files for SWORD
Group:           Development/C
Requires:        %{libname} = %{version}-%{release}
Provides:        %{name}-devel = %{version}-%{release}
Provides:        lib%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the headers that programmers
will need to develop applications which will use the SWORD Bible Framework.

%files -n %{devname}
%doc README AUTHORS NEWS ChangeLog
%{_includedir}/sword/
%{_libdir}/*%{name}.so
%{_libdir}/pkgconfig/*.pc
#-----------------------------------------------------

%package -n python3-sword
Summary:         Python3 bindings for Sword
Group:           Development/Python
%{?python_provide:%python_provide python3-sword}
Requires:        python3

%description -n python3-sword
Python 3 bindings for The SWORD Library.

%files -n python3-sword
%doc README AUTHORS NEWS ChangeLog
%{python3_sitearch}/Sword.py
%{python3_sitearch}/_Sword.cpython-*-*-linux-gnu.so
%{python3_sitearch}/__pycache__/*
%{python3_sitearch}/sword-%{version}-py%{python3_version}.egg-info

#-----------------------------------------------------

%prep
%setup -q -a2
%autopatch -p1

%build
%cmake -DLIBSWORD_LIBRARY_TYPE=Shared \
       -DSWORD_PYTHON_3:BOOL=TRUE \
       -DSWORD_PERL:BOOL=FALSE \
       -DSWORD_BUILD_UTILS="Yes" \
       -DLIBSWORD_SOVERSION=%{soversion} \
       -DLIBDIR=%{_libdir} \
       -DSWORD_BUILD_TESTS=Yes \
       -DSWORD_PYTHON_INSTALL_DIR="%{buildroot}%{_prefix}"
%make

%install
%makeinstall_std -C build

rm -f doc/Makefile.am samples/Makefile.am


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9071 |21cr|swtpm-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# Macros needed by SELinux
%global selinuxtype targeted

Summary: TPM Emulator
Name:		swtpm
Version:	0.8.0
Release:	1
License:	BSD
Group:		Emulators
Url:		http://github.com/stefanberger/swtpm
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libtasn1)
BuildRequires:	pkgconfig(libtpms)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	selinux-policy-devel
BuildRequires:	expect
BuildRequires:	net-tools
BuildRequires:	socat
BuildRequires:	softhsm
BuildRequires:	trousers
BuildRequires:	tpm2-abrmd
BuildRequires:	tpm2-pkcs11
BuildRequires:	python3-tpm2-pkcs11

%description
TPM emulator built on libtpms providing TPM functionality for QEMU VMs

%files
%license LICENSE
%doc README
%{_bindir}/swtpm
%{_mandir}/man8/swtpm.8*
%{_datadir}/selinux/packages/swtpm.pp
%{_datadir}/selinux/packages/swtpm_svirt.pp

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Private libraries for swtpm TPM emulators
License:	BSD

%description -n %{libname}
A private library with callback functions for libtpms based swtpm TPM emulator

%files -n %{libname}
%license LICENSE
%doc README
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libswtpm_libtpms.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Include files for the TPM emulator's CUSE interface for usage by clients
License:	BSD
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Include files for the TPM emulator's CUSE interface.

%files  -n %{devname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/swtpm/libswtpm_libtpms.so
%{_mandir}/man3/swtpm_ioctls.3*

#------------------------------------------------------------------

%package	tools
Summary:	Tools for the TPM emulator
License:	BSD
Requires:	swtpm = %{EVRD}
# trousers: for tss account
Requires:	gnutls
Requires:	trousers

%description	tools
Tools for the TPM emulator from the swtpm package

%files tools
%doc README
%{_bindir}/swtpm_bios
%{_bindir}/swtpm_cert
%{_bindir}/swtpm_setup
%{_bindir}/swtpm_ioctl
%{_bindir}/swtpm_localca
%{_mandir}/man5/swtpm-localca.conf.5*
%{_mandir}/man5/swtpm-localca.options.5*
%{_mandir}/man5/swtpm_setup.conf.5*
%{_mandir}/man8/swtpm_bios.8*
%{_mandir}/man8/swtpm_cert.8*
%{_mandir}/man8/swtpm_ioctl.8*
%{_mandir}/man8/swtpm-localca.8*
%{_mandir}/man8/swtpm_localca.8*
%{_mandir}/man8/swtpm_setup.8*
%exclude %{_mandir}/man8/swtpm_cuse.8*
%config(noreplace) %{_sysconfdir}/swtpm_setup.conf
%config(noreplace) %{_sysconfdir}/swtpm-localca.options
%config(noreplace) %{_sysconfdir}/swtpm-localca.conf
%dir %{_datadir}/swtpm
%{_datadir}/swtpm/swtpm-localca
%{_datadir}/swtpm/swtpm-create-user-config-files
%attr( 750, tss, root) %{_localstatedir}/lib/swtpm-localca

#------------------------------------------------------------------

%package	tools-pkcs11
Summary:	Tools for creating a local CA based on a TPM pkcs11 device
License:	BSD
Requires:	swtpm-tools = %{EVRD}
Requires:	tpm2-pkcs11
Requires:	python3-tpm2-pkcs11
Requires:	tpm2-tools
Requires:	tpm2-abrmd
Requires:	expect
Requires:	gnutls
Requires:	trousers

%description	tools-pkcs11
Tools for creating a local CA based on a pkcs11 device

%files tools-pkcs11
%{_mandir}/man8/swtpm-create-tpmca.8*
%{_datadir}/swtpm/swtpm-create-tpmca

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
NOCONFIGURE=1 ./autogen.sh
CFLAGS="%{optflags} -fno-strict-aliasing"
%configure \
	--with-gnutls

%make_build

%install
%make_install

%post
for pp in /usr/share/selinux/packages/swtpm.pp \
          /usr/share/selinux/packages/swtpm_svirt.pp; do
  %selinux_modules_install -s %{selinuxtype} ${pp}
done
restorecon %{_bindir}/swtpm

%postun
if [ $1 -eq  0 ]; then
  for p in swtpm swtpm_svirt; do
    %selinux_modules_uninstall -s %{selinuxtype} $p
  done
fi

%posttrans
%selinux_relabel_post -s %{selinuxtype}

%check
# the commandline test doesn't pass on the abf builder
# error: TPM did not open port 11234
sed -i '/test_commandline/d' tests/Makefile.am
make %{?_smp_mflags} check VERBOSE=1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9072 |21cr|sxhkd-0.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Simple X hotkey daemon
Name:           sxhkd
Version:        0.6.2
Release:        1
License:        BSD
Group:          System/X11
Url:            https://github.com/baskerville/sxhkd
Source0:        https://github.com/baskerville/sxhkd/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(xcb-util)
BuildRequires:  pkgconfig(xcb-keysyms)

%description
sxhkd is an X daemon that reacts to input events by executing commands.
Its configuration file is a series of bindings that define the associations
between the input events and the commands.
The format of the configuration file supports a simple notation for mapping
multiple shortcuts to multiple commands in parallel.

%files
%license LICENSE
%doc %{_docdir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9073 |21cr|sxiv-26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Otherwise we have an error from rpmlint
%global	debug_package	%{nil}

Name:		sxiv
Version:	26
Release:	1
Summary:	Simple (or small or suckless) X Image Viewer
Group:		Graphics
License:	GPLv2+
Url:		https://github.com/muennich/sxiv/
Source0:	https://github.com/downloads/muennich/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	giflib-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)

%description
This is an alternative to feh and qiv. The primary goal for writing sxiv is to
create an image viewer, which only has the most basic features required for
fast image viewing (the ones I want). It works nicely with tiling window
managers and its code base should be kept small and clean to make it easy for
you to dig into it and customize it for your needs.

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/exec/*
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%make


%install
%makeinstall_std PREFIX=%{_prefix}

# Install the source provided icons
%makeinstall_std -C icon PREFIX=%{_prefix}

# Install the source provided .desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9074 |21cr|sylpheed-3.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%define major %%(echo %%{version}|cut -d. -f1,2)
%define urlver %(echo %{version}|cut -d. -f1,2)

%define api 0
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	A GTK+2 based, lightweight, and fast e-mail client
Name:		sylpheed
Version:	3.7.0
Release:	2
License:	GPLv2+
Group:		Networking/Mail
Url:		http://sylpheed.sraoss.jp/
Source0:	http://sylpheed.sraoss.jp/sylpheed/v%{urlver}/%{name}-%{version}.tar.bz2
BuildRequires:	imagemagick
BuildRequires:	openldap-devel
BuildRequires:	gpgme-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkspell-2.0)
Requires:	curl
Provides:	sylpheed-main = %{EVRD}

%description
This program is an X based fast e-mail client which has features
(or go for it :-)) like:
	o user-friendly and intuitive interface
	o integrated NetNews client (partially implemented)
	o ability of keyboard-only operation
	o Mew/Wanderlust-like key bind
	o multipart MIME
	o built-in image view
	o external editor support
	o unlimited multiple account handling
	o message queueing
	o filtering
	o XML-based address book
See 'README' for more information.

%files -f %{name}.lang
%doc AUTHORS ChangeLog* NEWS README* TODO*
%{_bindir}/*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/faq
%lang(de) %doc %{_datadir}/%{name}/faq/de
%lang(en) %doc %{_datadir}/%{name}/faq/en
%lang(es) %doc %{_datadir}/%{name}/faq/es
%lang(fr) %doc %{_datadir}/%{name}/faq/fr
%lang(it) %doc %{_datadir}/%{name}/faq/it
%dir %{_datadir}/%{name}/manual
%lang(en) %doc %{_datadir}/%{name}/manual/en
%lang(ja) %doc %{_datadir}/%{name}/manual/ja
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/sylpheed.png
%{_liconsdir}/sylpheed.png
%{_miconsdir}/sylpheed.png

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains shared library files for %{name}.

%files -n %{libname}
%doc AUTHORS ChangeLog* NEWS README* TODO*
%{_libdir}/*-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog* NEWS README* TODO*
%{_libdir}/*.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-gpgme \
	--enable-ssl \
	--enable-ldap \
	--enable-ipv6

%make

%install
%makeinstall_std

mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
convert sylpheed.png -geometry 48x48 %{buildroot}%{_liconsdir}/sylpheed.png
convert sylpheed.png -geometry 32x32 %{buildroot}%{_iconsdir}/sylpheed.png
convert sylpheed.png -geometry 16x16 %{buildroot}%{_miconsdir}/sylpheed.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9075 |21cr|symmetrica-2.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name			symmetrica
%define libsymmetrica		%mklibname %{name} 0
%define libsymmetrica_devel	%mklibname %{name} -d
%define libsymmetrica_static	%mklibname %{name} -d -s

Name:		%{name}
Version:	2.0
Release:	15
Summary:	A Collection of Routines for Solving Symmetric Groups
Group:		Sciences/Mathematics
# Note: they claim it's 'public domain' but then provide this:
# http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/copyright_engl.html
License:	MIT
URL:		http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/
Source0:	http://www.algorithm.uni-bayreuth.de/en/research/SYMMETRICA/SYM2_0_tar.gz
# Sent upstream 8 May 2012.  Sagemath patch to fix namespace collisions on the
# names "sort" and "sum".
Patch0:		symmetrica-sort_sum_rename.patch
# Sent upstream 8 May 2012.  The INT type should always be a 4-byte type, but
# the sources use an incorrect and outdated method of ensuring this.
Patch1:		symmetrica-int.patch
# Will not be sent upstream, as it is GCC-specific.  Add function attributes
# to quiet GCC warnings and improve opportunities for optimization.
Patch2:		symmetrica-attribute.patch

%description
Symmetrica is a collection of routines, written in the programming
language C, through which the user can readily write his/her own
programs. Routines which manipulate many types of mathematical objects
are available.

%package	-n %{libsymmetrica}
Group:		System/Libraries
Summary:	Symmetrica runtime files
Obsoletes:	symmetrica < %{version}-%{release}

%description	-n %{libsymmetrica}
Symmetrica runtime files.

%package	-n %{libsymmetrica_devel}
Group:		Development/C
Summary:	Symmetrica development files
Requires:	%{libsymmetrica} = %{version}-%{release}
Provides:	symmetrica-devel = %{version}-%{release}
Obsoletes:	symmetrica-devel < %{version}-%{release}
Obsoletes:	%{libsymmetrica_static} < %{version}-%{release}

%description	-n %{libsymmetrica_devel}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q -c
%patch0 -p0
%patch1 -p0
%patch2 -p0

# Don't print the banner on every library load and API function call
sed -i "s/^\(INT no_banner = \)FALSE/\1TRUE/" de.c

%build
# All the silly *TRUE defines:
#DFLAGS=$(for def in $(grep '#ifdef' *.c | cut -d':' -f2 | cut -d' ' -f2 | egrep .*TRUE | sort | uniq); do echo -D${def}; done)
DFLAGS="-DBINTREETRUE -DBRUCHTRUE -DCHARTRUE -DCYCLOTRUE -DDGTRUE \
  -DELMSYMTRUE -DFFTRUE -DGRALTRUE -DGRAPHTRUE -DGRTRUE -DHOMSYMTRUE \
  -DINTEGERTRUE -DKOSTKATRUE -DKRANZTRUE -DLAURENTTRUE -DLISTTRUE \
  -DLONGINTTRUE -DMATRIXTRUE -DMONOMIALTRUE -DMONOMTRUE \
  -DMONOPOLYTRUE -DNUMBERTRUE -DPARTTRUE -DPERMTRUE -DPLETTRUE \
  -DPOLYTRUE -DPOWSYMTRUE -DREIHETRUE -DSABTRUE -DSCHUBERTTRUE \
  -DSCHURTRUE -DSHUFFLETRUE -DSKEWPARTTRUE -DSQRADTRUE -DTABLEAUXTRUE \
  -DVECTORTRUE -DWORDTRUE -DZYKTRUE"

for file in *.c; do
  if [ $file != "test.c" ] ; then
    gcc %{optflags} -c ${file} -I. -DFAST ${DFLAGS}
  fi
done
ar rcs lib%{name}.a *.o
rm -f *.o
for file in *.c; do
  if [ $file != "test.c" ] ; then
    gcc %{optflags} -fPIC -c ${file} -I. -DFAST ${DFLAGS}
  fi
done
gcc %{optflags} $RPM_LD_FLAGS -shared -lm -Xlinker -hlib%{name}.so.0 \
    -o lib%{name}.so.0.0.0 *.o

%install
chmod -R a+r .
mkdir -p %{buildroot}%{_libdir}
install -m 755 lib%{name}.so.0.0.0 %{buildroot}%{_libdir}/
ln -s lib%{name}.so.0.0.0 %{buildroot}%{_libdir}/lib%{name}.so.0
ln -s lib%{name}.so.0 %{buildroot}%{_libdir}/lib%{name}.so
mkdir -p %{buildroot}%{_includedir}/%{name}
install -m 644 *.h %{buildroot}%{_includedir}/%{name}/

%files		-n %{libsymmetrica}
%doc *.doc
%{_libdir}/lib%{name}.so.0.0.0
%{_libdir}/lib%{name}.so.0

%files		-n %{libsymmetrica_devel}
%doc test.c
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9076 |21cr|sympa-6.2.68-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global static_content %{_datadir}/sympa/static_content

Name:		sympa
Version:	6.2.68
Release:	1
Summary:	Electronic mailing list manager
License:	GPL
Group:		System/Servers
URL:		http://www.sympa.org/
Source0:	https://github.com/sympa-community/sympa/releases/download/%{version}/sympa-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	sympa.sysusers.conf
Source101:   sympa-httpd24-spawn_fcgi.conf
Source102:   sympa-lighttpd.conf
Source103:   sympa-nginx-spawn_fcgi.conf
Source106:   sympa-rsyslog.conf
Source107:   sympa-logrotate.conf
Source113:   sympa-systemd-README.RPM.md
Source114:   aliases.sympa.sendmail
Source115:   aliases.sympa.postfix
Source129:   sympa.service.d-dependencies.conf
Source130:   sympa-sysconfig
# Add path to MHonArc::UTF8 so that sympa_wizard won't miss it
Patch5:      sympa-6.2.36-wizard-mhonarc.patch
# RPM specific customization of site defaults
Patch13:     sympa-6.2.57b.1-confdef.patch

Requires:	openssl >= 0.9.5a
Requires:	mhonarc >= 2.4.5
Requires:	mail-server
Requires(post):     mail-server
Requires(preun):    mail-server
BuildRequires:	    openssl-devel >= 0.9.5a
BuildRequires:	    perl-MailTools
BuildRequires:	    perl-libintl-perl
BuildRequires:	    gettext-devel
BuildRequires:	    perl(HTML::StripScripts::Parser)

Requires:    mhonarc
Requires:    logrotate
Requires:    perl(DBD::mysql)
Requires:    perl(FCGI)
Provides:    perl(SympaTransport)
# Optional CPAN packages
Requires:    perl(AuthCAS)
Requires:    perl(Clone)
Requires:    perl(Crypt::CipherSaber)
Requires:    perl(Crypt::Eksblowfish)
Requires:    perl(Crypt::OpenSSL::X509)
Requires:    perl(Crypt::SMIME)
Requires:    perl(Data::Password)
Requires:    perl(DateTime::TimeZone)
Requires:    perl(DBD::CSV)
Requires:    perl(Encode::Locale)
# Recommended for handling Japanese vendor codepages.
Requires:    perl(Encode::EUCJPASCII)
# Handling several Chinese standards.
Requires:    perl(Encode::HanExtra)
Requires:    perl(IO::Socket::IP)
Requires:    perl(IO::Socket::SSL)
Requires:    perl(List::Util::XS)
Requires:    perl(LWP::Protocol::https)
Requires:    perl(Mail::DKIM::Verifier)
Requires:    perl(Net::DNS)
Requires:    perl(Net::SMTP)
Requires:    perl(Unicode::Normalize)
Requires:    perl(Unicode::UTF8)
Requires(pre): /bin/systemd-sysusers

%description
SYMPA is an electronic mailing list manager. It is used to automate list
management functions such as subscription, moderation and management of 
archives. SYMPA also manages sending of messages to the lists, and 
makes it possible to reduce the load on the system. Provided that you 
have enough memory on your system, Sympa is especially well adapted for big 
lists. For a list with 20 000 subscribers, it takes 5 minutes to send a
message to 90% of subscribers, of course considering that the network is 
available.

Documentation is available under HTML and SGML (source) formats. 

%files -f %{name}.lang -f web_help.lang
%doc __doc/*
%license COPYING
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/
%{_sysconfdir}/sympa/README
%config(noreplace) %attr(0640,sympa,sympa) %{_sysconfdir}/sympa/sympa.conf
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/auth.conf
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/charset.conf
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/crawlers_detection.conf
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/create_list.conf
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/edit_list.conf
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/nrcpt_by_domain.conf
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/topics.conf
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/mime.types
%config(noreplace,missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/sympa.wsdl
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/create_list_templates
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/tasks
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/scenari
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/mail_tt2
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/web_tt2
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/custom_actions
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/custom_conditions
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/data_sources
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/families
%dir %attr(-,sympa,sympa) %{_sysconfdir}/sympa/search_filters
%config(missingok) %attr(-,sympa,sympa) %{_sysconfdir}/sympa/data_structure.current_version
%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.sendmail
%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.sendmail.db
%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.postfix
%config(noreplace) %{_sysconfdir}/sympa/aliases.sympa.postfix.db
%{_sysconfdir}/smrsh/*
%config(noreplace) %{_sysconfdir}/rsyslog.d/*
%config(noreplace) %{_sysconfdir}/logrotate.d/sympa
%{_sbindir}/*
%dir %{_libexecdir}/sympa/
%attr(4755,sympa,sympa) %{_libexecdir}/sympa/bouncequeue
%attr(4755,sympa,sympa) %{_libexecdir}/sympa/familyqueue
%attr(4755,sympa,sympa) %{_libexecdir}/sympa/queue
%attr(4750,root,sympa) %{_libexecdir}/sympa/sympa_newaliases-wrapper
%{_libexecdir}/sympa/sympa_soap_server.fcgi
%attr(6755,sympa,sympa) %{_libexecdir}/sympa/sympa_soap_server-wrapper.fcgi
%{_libexecdir}/sympa/wwsympa.fcgi
%attr(6755,sympa,sympa) %{_libexecdir}/sympa/wwsympa-wrapper.fcgi
%attr(-,sympa,sympa) %{_localstatedir}/lib/sympa/
%attr(-,sympa,sympa) %{_localstatedir}/spool/sympa/
%{_datadir}/sympa/
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_unitdir}/sympa.service
%{_unitdir}/sympa-outgoing.service
%{_unitdir}/sympa-archive.service
%{_unitdir}/sympa-bounce.service
%{_unitdir}/sympa-task.service
%{_tmpfilesdir}/sympa.conf
%ghost %attr(-,sympa,sympa) %{_rundir}/sympa/
%dir %{_sysconfdir}/systemd/system/sympa.service.d/
%config(noreplace) %{_sysconfdir}/systemd/system/sympa.service.d/*
%config(noreplace) %{_sysconfdir}/sysconfig/sympa
%{_sysusersdir}/sympa.conf

%pre
# create user and group sympa
%sysusers_create_package sympa %{SOURCE1}

# Fix CSS and pictures paths
if [ $1 -gt 1 ]; then
    if [ -d %{_localstatedir}/lib/%{name}/static_content/css ]; then
        mv -fu %{_localstatedir}/lib/%{name}/static_content/css/* \
            %{_localstatedir}/lib/%{name}/css/ \
            && rm -rf %{_localstatedir}/lib/%{name}/static_content/css/
    fi
    if [ -d %{_localstatedir}/lib/%{name}/static_content/pictures ]; then
        mv -fu %{_localstatedir}/lib/%{name}/static_content/pictures/* \
            %{_localstatedir}/lib/%{name}/pictures/ \
            && rm -rf %{_localstatedir}/lib/%{name}/static_content/pictures/
    fi
    if [ ! -d %{_localstatedir}/lib/%{name}/static_content/css \
        -a ! -d %{_localstatedir}/lib/%{name}/static_content/pictures \
        -a -d %{_localstatedir}/lib/%{name}/static_content ]; then
        rm -r %{_localstatedir}/lib/%{name}/static_content/
    fi
fi
exit 0

%post
%systemd_post sympa.service
%tmpfiles_create %{name}.conf

# create cookie
function create_cookie {
    cook=`mktemp`
    perl -ne 'chomp $_; print $1 if /^cookie\s+(\S.*)/' \
        %{_sysconfdir}/sympa/sympa.conf > $cook
    if [ '!' -s $cook ]; then
        if [ -e %{_sysconfdir}/sympa/cookies.history ]; then
            cp -p %{_sysconfdir}/sympa/cookies.history $cook
        else
            dd if=/dev/urandom bs=2048 count=1 2>/dev/null | md5sum | \
            cut -d" " -f1 > $cook
        fi
        perl -i -pe '/^#cookie\s/ and $_ = "cookie ".`cat '$cook'`."\n"' \
            %{_sysconfdir}/sympa/sympa.conf
    fi
    rm -f $cook
}

# create config at first time.
function create_config {
    ## create site configurations
    if [ '!' -e %{_sysconfdir}/sympa/data_structure.version ]; then
        cp -p %{_sysconfdir}/sympa/data_structure.current_version \
            %{_sysconfdir}/sympa/data_structure.version
    fi
    ## create sympa_aliases
    if [ '!' -e %{_localstatedir}/lib/sympa/sympa_aliases ]; then
        touch %{_localstatedir}/lib/sympa/sympa_aliases
        chown sympa:sympa %{_localstatedir}/lib/sympa/sympa_aliases
        chmod 644 %{_localstatedir}/lib/sympa/sympa_aliases
        touch %{_localstatedir}/lib/sympa/sympa_aliases.db
        chown sympa:root %{_localstatedir}/lib/sympa/sympa_aliases.db
        chmod 664 %{_localstatedir}/lib/sympa/sympa_aliases.db
    fi
}

function upgrade_data_structure {
    # Stop sympa if it is running
    if systemctl is-active sympa > /dev/null 2>&1; then
        /usr/bin/systemctl stop sympa > /dev/null 2>&1
        ACTIVE="yes"
    fi
    # Upgrade
    rm -f %{_sysconfdir}/sympa/sympa.conf.bin > /dev/null 2>&1
    if %{_sbindir}/sympa.pl --upgrade > /dev/null 2>&1; then
        # Start sympa if it was running previously
        if [ "$ACTIVE" == "yes" ]; then
            /usr/bin/systemctl start sympa > /dev/null 2>&1
        fi
    else
        echo ============================================================
        echo Notice: Failed upgrading data structure.  See logfile.
        echo Sympa is stopped.
        echo ============================================================
    fi
}

# Install
if [ $1 -eq 1 ]; then
    create_cookie
    create_config
    echo ============================================================
    echo Sympa had been installed successfully.  If you installed
    echo Sympa at first time, please read:
    echo %{_docdir}/%{name}-%{version}/README.RPM.md
    echo ============================================================
fi

# Update
if [ $1 -gt 1 ]; then
    upgrade_data_structure
fi


%preun
%systemd_preun sympa.service

%postun
%systemd_postun_with_restart sympa.service

#-------------------------------------------------------------------------
%package httpd
Summary:	Sympa with Apache HTTP Server
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	httpd
Requires:	spawn-fcgi
Conflicts:	%{name}-lighttpd, %{name}-nginx

%description httpd
Apache HTTP Server support for Sympa.

%files httpd
%config(noreplace) %{_sysconfdir}/httpd/conf.d/sympa.conf
%{_unitdir}/wwsympa.service
%{_unitdir}/sympasoap.service

%post httpd
# register service
%systemd_post wwsympa.service
%systemd_post sympasoap.service

%preun httpd
%systemd_preun wwsympa.service
%systemd_preun sympasoap.service

%postun httpd
%systemd_postun_with_restart wwsympa.service
%systemd_postun_with_restart sympasoap.service
#-------------------------------------------------------------------------

%package lighttpd
Summary:	Sympa with lighttpd
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	lighttpd
Conflicts:	%{name}-httpd, %{name}-nginx

%description lighttpd
lighttpd support for Sympa.

%files lighttpd
%config(noreplace) %{_sysconfdir}/lighttpd/conf.d/sympa.conf
#-------------------------------------------------------------------------

%package nginx
Summary:	Sympa with nginx
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	nginx
Requires:	spawn-fcgi
Conflicts:	%{name}-httpd, %{name}-lighttpd

%description nginx
nginx support for Sympa.

%files nginx
%config(noreplace) %{_sysconfdir}/nginx/conf.d/sympa.conf
%{_unitdir}/wwsympa.service
%{_unitdir}/sympasoap.service

%preun nginx
# nginx
%systemd_preun wwsympa.service
%systemd_preun sympasoap.service

%post nginx
# register service
%systemd_post wwsympa.service
%systemd_post sympasoap.service

%postun nginx
%systemd_postun_with_restart wwsympa.service
%systemd_postun_with_restart sympasoap.service
#-------------------------------------------------------------------------

%package devel-doc
Summary:	Sympa devel doc
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description devel-doc
Sympa documentation for developers.

%files devel-doc
%{_mandir}/man3/*
#-------------------------------------------------------------------------

%prep
%setup -q 
%patch5 -p0 -b .mhonarc
%patch13 -p0 -b .confdef

%build
%serverbuild
%configure \
    --enable-fhs \
    --prefix=%{_prefix} \
    --bindir=%{_libexecdir}/sympa \
    --docdir=%{_docdir}/%{name} \
    --libexecdir=%{_libexecdir}/sympa \
    --localstatedir=%{_localstatedir} \
    --sysconfdir=%{_sysconfdir}/sympa \
    --with-cgidir=%{_libexecdir}/sympa \
    --with-confdir=%{_sysconfdir}/sympa \
    --without-initdir \
    --with-unitsdir=%{_unitdir} \
    --with-piddir=%{_rundir}/sympa \
    --with-smrshdir=%{_sysconfdir}/smrsh \
    --with-aliases_file=%{_localstatedir}/lib/sympa/sympa_aliases \
    --with-perl=%{_bindir}/perl \
    --with-staticdir=%{static_content} \
    --with-cssdir=%{_localstatedir}/lib/sympa/css \
    --with-picturesdir=%{_localstatedir}/lib/sympa/pictures \
    INSTALL_DATA='install -c -p -m 644'
%make

# cancel workaround in Makefile getting previous version.
rm -f previous_sympa_version

pushd po/sympa; rm -f stamp-po; make; popd
pushd po/web_help; rm -f stamp-po; make; popd

%install
%makeinstall_std HOST=localhost

%find_lang sympa
%find_lang web_help

# Save version info.
mv %{buildroot}%{_sysconfdir}/sympa/data_structure.version \
    %{buildroot}%{_sysconfdir}/sympa/data_structure.current_version

# Copy *httpd config files.
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
install -m 0644 %{SOURCE101} %{buildroot}%{_sysconfdir}/httpd/conf.d/sympa.conf
mkdir -p %{buildroot}%{_sysconfdir}/lighttpd/conf.d
install -m 0644 %{SOURCE102} %{buildroot}%{_sysconfdir}/lighttpd/conf.d/sympa.conf
mkdir -p %{buildroot}%{_sysconfdir}/nginx/conf.d
install -m 0644 %{SOURCE103} %{buildroot}%{_sysconfdir}/nginx/conf.d/sympa.conf

# Copy init scripts or unit files for nginx/spawn-fcgi etc.
install -m 0644 src/etc/script/wwsympa.service \
    %{buildroot}%{_unitdir}/wwsympa.service
install -m 0644 src/etc/script/sympasoap.service \
    %{buildroot}%{_unitdir}/sympasoap.service
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 src/etc/script/sympa-tmpfiles.conf \
    %{buildroot}%{_tmpfilesdir}/sympa.conf
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/sympa.service.d
install -m 0644 %{SOURCE129} \
    %{buildroot}%{_sysconfdir}/systemd/system/sympa.service.d/dependencies.conf

# Copy system config file.
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m 0644 %{SOURCE130} %{buildroot}%{_sysconfdir}/sysconfig/sympa

# Copy docs.
mv %{buildroot}%{_docdir}/%{name} __doc
cp -p AUTHORS.md CONTRIBUTING.md NEWS.md README.md __doc/
cp -p %{SOURCE113} __doc/README.RPM.md
mv %{buildroot}%{_sysconfdir}/sympa/README __doc/
ln -s %{_datadir}/doc/%{name}/README \
    %{buildroot}/%{_sysconfdir}/sympa/README
ln -s %{_datadir}/doc/%{name}/README \
    %{buildroot}/%{_datadir}/sympa/default/README
mv %{buildroot}%{_sysconfdir}/sympa/sympa.conf-dist __doc/

# Copy robot aliases.
install -m 0644 %{SOURCE114} %{SOURCE115} %{buildroot}%{_sysconfdir}/sympa/
touch %{buildroot}%{_sysconfdir}/sympa/aliases.sympa.sendmail.db
touch %{buildroot}%{_sysconfdir}/sympa/aliases.sympa.postfix.db

# Copy rsyslog config
mkdir -p %{buildroot}%{_sysconfdir}/rsyslog.d
install -m 0644 %{SOURCE106} %{buildroot}%{_sysconfdir}/rsyslog.d/sympa.conf

# Create logrotate item
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 %{SOURCE107} %{buildroot}%{_sysconfdir}/logrotate.d/sympa

# Create configuration override structure
for conffile in \
    auth.conf charset.conf crawlers_detection.conf create_list.conf \
    edit_list.conf nrcpt_by_domain.conf topics.conf \
    mime.types sympa.wsdl ;
    do cp -a %{buildroot}%{_datadir}/%{name}/default/$conffile \
        %{buildroot}%{_sysconfdir}/%{name}/;
done

# Create directory for S/MIME user certificates
mkdir -p %{buildroot}%{_localstatedir}/lib/sympa/X509-user-certs

# install sysuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/sympa.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9077 |21cr|sympow-2.023.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define sympowdir %{_datadir}/%{name}

Summary:	Compute special values of symmetric power elliptic curve L-functions
Name:		sympow
Version:	2.023.6
Release:	1
License:	BSD
Group:		Sciences/Mathematics
Url:		http://www.maths.bris.ac.uk/~mamjw/
Source0:	https://gitlab.com/rezozer/forks/sympow/-/archive/v2.023.6/sympow-v2.023.6.tar.gz
BuildRequires:	help2man
BuildRequires:	pari
Requires:	pari

%description
SYMPOW is a package to compute special values of symmetric power elliptic
curve L-functions. It can compute up to about 64 digits of precision.

%files
%{_bindir}/%{name}
%{_mandir}/man1/*
%{sympowdir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

sed -i 's|(standard.\.gp)|%{sympowdir}/$1|g;' generate.c
sed -i 's|PREFIX/lib|%{_prefix}/data|g;' Configure

%build
PREFIX=%{_prefix} ./Configure
make

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9078 |21cr|sympytexpackage-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		sympytexpackage
Version:	0.3
Release:	1
Summary:	Include symbolic computation (using sympy) in documents
Group:		Publishing
URL:		https://ctan.org/pkg/sympytex
License:	GNU General Public License, version 2
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sympytexpackage.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sympytexpackage.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sympytexpackage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle supports inclusion of symbolic-python (sympy) expressions, 
as well as graphical output from the sympy plotting module (or from matplotlib).
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sympytexpackage
%doc %{_texmfdistdir}/doc/latex/sympytexpackage
%doc %{_texmfdistdir}/source/latex/sympytexpackage
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9079 |21cr|syncevolution-2.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _libexecdir %{_prefix}/libexec
%define _disable_ld_no_undefined 1

%define gdbussyncevo_major 0
%define gdbussyncevo_libname %mklibname gdbussyncevo %{gdbussyncevo_major}
%define smltk_major 0
%define smltk_libname %mklibname smltk %{smltk_major}
%define syncevodbus_major 0
%define syncevodbus_libname %mklibname syncevo-dbus %{syncevodbus_major}
%define syncevolution_major 0
%define syncevolution_libname %mklibname syncevolution %{syncevolution_major}
%define synthesis_major 0
%define synthesis_libname %mklibname synthesis %{synthesis_major}

%define devname %mklibname %{name} -d

Summary:	SyncML client for evolution
Name:		syncevolution
Version:	2.0.0
Release:	4
License:	LGPLv2+
Group:		Networking/Remote access
Url:		http://syncevolution.org/
Source0:	https://downloads.syncevolution.org/syncevolution/sources/syncevolution-%{version}.tar.gz
# from Fedora
Patch1:		syncevolution-1.5.1-libical2.patch
Patch2:		syncevolution-1.5.3-autoconf-2.71.patch
Patch3:		003-pcre2.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	libtlen-devel
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-bluetooth-3.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libedataserver-1.2)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(openobex)
BuildRequires:	pkgconfig(unique-1.0)
BuildRequires:	python3egg(docutils)
BuildRequires:	python3egg(pygments)

Requires:	python3-twisted
Requires:	%{name}-backends

%description
syncevolution is designed to provide a SyncML client that can
connect to and sync with various SyncML-based servers

%files -f %{name}.lang
%doc AUTHORS NEWS README HACKING README.html README.rst
%{_sysconfdir}/xdg/autostart/syncevo-dbus-server.desktop
%{_bindir}/syncevolution
%{_bindir}/syncevo-http-server
%{_bindir}/syncevo-phone-config
%{_bindir}/synclog2html
%{_bindir}/syncevo-webdav-lookup
%{_libexecdir}/syncevo-dbus-helper
%{_libexecdir}/syncevo-dbus-server
%{_libexecdir}/syncevo-dbus-server-startup.sh
%{_libexecdir}/syncevo-local-sync
%{_datadir}/syncevolution
%{_datadir}/dbus-1/services/org.syncevolution.service
%{_mandir}/man1/syncevolution.1*
%{_userunitdir}/syncevo-dbus-server.service
%exclude %{_datadir}/syncevolution/xml/*.pl

#----------------------------------------------------------------------------

%package backends
Summary:	%{name} backend plugins
Group:		System/Libraries

%description backends
This package contains the backend plugins for %{name}.

%files backends
%doc AUTHORS NEWS README
%dir %{_libdir}/syncevolution
%{_libdir}/syncevolution/backends

#----------------------------------------------------------------------------

%package -n %{gdbussyncevo_libname}
Summary:	Gdbussyncevo library
Group:		System/Libraries

%description -n %{gdbussyncevo_libname}
This package contains the gdbussyncevo library.

%files -n %{gdbussyncevo_libname}
%doc AUTHORS NEWS README
%{_libdir}/libgdbussyncevo.so.%{gdbussyncevo_major}*


#----------------------------------------------------------------------------

%package -n %{smltk_libname}
Summary:	Smltk library
Group:		System/Libraries

%description -n %{smltk_libname}
This package contains the smltk library.

%files -n %{smltk_libname}
%doc AUTHORS NEWS README
%{_libdir}/libsmltk.so.%{smltk_major}*

#----------------------------------------------------------------------------

%package -n %{syncevodbus_libname}
Summary:	Syncevo-dbus library
Group:		System/Libraries

%description -n %{syncevodbus_libname}
This package contains the syncevo-dbus library.

%files -n %{syncevodbus_libname}
%doc AUTHORS NEWS README
%{_libdir}/libsyncevo-dbus.so.%{syncevodbus_major}*

#----------------------------------------------------------------------------

%package -n %{syncevolution_libname}
Summary:	Syncevolution library
Group:		System/Libraries

%description -n %{syncevolution_libname}
This package contains the syncevolution library.

%files -n %{syncevolution_libname}
%doc AUTHORS NEWS README
%{_libdir}/libsyncevolution.so.%{syncevolution_major}*

#----------------------------------------------------------------------------

%package -n %{synthesis_libname}
Summary:	Synthesis library
Group:		System/Libraries

%description -n %{synthesis_libname}
This package contains the synthesis library.

%files -n %{synthesis_libname}
%doc AUTHORS NEWS README
%{_libdir}/libsynthesis.so.%{synthesis_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%doc AUTHORS NEWS README
%{_includedir}/syncevo
%{_includedir}/syncevo-dbus
%{_includedir}/synthesis
%{_libdir}/pkgconfig/s*.pc
%{_libdir}/*.so
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package gtk
Summary:	GTK+ GUI for %{name}
Group:		Networking/Remote access 
Requires:	%{name} = %{EVRD}

%description gtk
GTK+ GUI for use with %{name}.

%files gtk
%doc AUTHORS NEWS README
%{_bindir}/sync-ui
%{_datadir}/applications/sync.desktop
%{_datadir}/icons/hicolor/48x48/apps/sync.png

#----------------------------------------------------------------------------

%package perl
Summary:	Perl utils for %{name}
Group:		Development/Perl
Requires:	%{name} = %{EVRD}

%description perl
Perl utils for use with %{name}.

%files perl
%doc AUTHORS NEWS README
%{_bindir}/synccompare
%{_datadir}/syncevolution/xml/*.pl

#----------------------------------------------------------------------------

%prep
%autosetup -p1

find . -name "*.c" -o -name "*.h" -o -name "*.cpp" |xargs chmod 0644

# use the ac macros in Makefile.am
sed -i '/^ACLOCAL_AMFLAGS/{ /m4-repo/!s/$/ -I m4-repo/ }' Makefile*.am

%build
#intltoolize --automake --copy --force
#autoreconf -fiv
autoheader
(cd src/synthesis && autoupdate && autoreconf -fi && ./autogen.sh)
(cd src/synthesis/src/pcre && autoheader)

%configure \
	--disable-static \
	--enable-shared \
	--enable-libcurl \
	--disable-libsoup \
	--enable-dbus-service \
	--enable-gtk=3 \
	--enable-gui \
	--with-gio-gdbus \
	--with-expat=system \
	--enable-dav \
	--enable-bluetooth \
	--enable-pbap \
	--disable-akonadi \
	--enable-gnomebluetooth

sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g
        s|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

make
find . -type d -perm 02755 -exec chmod 0755 '{}' \;

%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/doc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9080 |21cr|syncthing-1.27.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define goipath github.com/syncthing/syncthing

Summary:	Continuous file synchronization program
Name:		syncthing
Version:	1.27.10
Release:	1
License:	MIT
Group:		Networking/File transfer
Url:		http://syncthing.net
Source0:	https://github.com/syncthing/syncthing/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	syncthing@.service
Source2:	syncthing.init
Source3:	syncthing.sysconfig
Source4:	syncthing-tmpfiles.conf
Source5:	syncthing.sh
Source6:	syncthing-%{version}-go-mod-vendor.tar.xz
Source7:	upd.sh
Source100:	%{name}.rpmlintrc
Source101:	syncthing.sysusers.conf
BuildRequires:	golang
BuildRequires:	systemd
BuildRequires:	unzip
Requires:	coreutils
Requires(post):	systemd
Recommends:	cpulimit

%gometa

%description
Syncthing replaces Dropbox and BitTorrent Sync with something open, trustworthy
and decentralized. Your data is your data alone and you deserve to choose where
it is stored, if it is shared with some third party and how it's transmitted
over the Internet.

Using syncthing, that control is returned to you.

%files
%doc README* CONTRIBUTING.md
%license LICENSE
%{_bindir}/*
%config (noreplace) /etc/sysconfig/%{name}
%{_sysusersdir}/syncthing.conf
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}@.service

#--------------------------------------------------------------------------------

%prep
%goprep -k

%build
export GO111MODULE=on

( cd .. && tar -xf %{SOURCE6} )

# compile assets used by the build process
pushd _build/src/%{goipath}
go run build.go assets
rm build.go
popd

# set variables expected by syncthing binaries as additional LDFLAGS
export BUILD_HOST=rosa
export COMMON_LDFLAGS="-X %{goipath}/lib/build.Version=v%{version} -X %{goipath}/lib/build.Stamp=$(date +%s) -X %{goipath}/lib/build.User=$USER -X %{goipath}/lib/build.Host=$BUILD_HOST"
export BUILDTAGS="noupgrade"

export LDFLAGS="-X %{goipath}/lib/build.Program=syncthing $COMMON_LDFLAGS"
%gobuild -o _bin/syncthing %{goipath}/cmd/syncthing
export LDFLAGS="-X %{goipath}/lib/build.Program=stdiscosrv $COMMON_LDFLAGS"
%gobuild -o _bin/stdiscosrv %{goipath}/cmd/stdiscosrv
export LDFLAGS="-X %{goipath}/lib/build.Program=strelaysrv $COMMON_LDFLAGS"
%gobuild -o _bin/strelaysrv %{goipath}/cmd/strelaysrv
export LDFLAGS="-X %{goipath}/lib/build.Program=strelaypoolsrv $COMMON_LDFLAGS"
%gobuild -o _bin/strelaypoolsrv %{goipath}/cmd/strelaypoolsrv

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}/etc/sysconfig
mkdir -p %{buildroot}/var/run/syncthing
install -p -m 0755 _bin/* %{buildroot}%{_bindir}
install %{SOURCE3} %{buildroot}/etc/sysconfig/%{name}
install -p -m 0755 %{SOURCE5} %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}
install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf

install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE101} %{buildroot}%{_sysusersdir}/syncthing.conf

%post
%sysusers_create %{name}.conf
%tmpfiles_create %{name}
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9081 |21cr|synergy-1.14.6.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define oname %{name}-core

Summary:	Mouse and keyboard sharing utility
Name:		synergy
Version:	1.14.6.19
Release:	1
License:	GPLv2
Url:		http://synergy-foss.org/
Group:		Networking/Remote access
Source0:	https://github.com/symless/synergy-core/archive/%{version}-stable.tar.gz?/%{oname}-%{version}.tar.gz
Source10:	https://github.com/zeux/pugixml/archive/9e382f98076e57581fcc61323728443374889646.zip
Patch0:		0001-fixed-SIZE_MAX-was-not-declared.patch
BuildRequires: cmake
BuildRequires: desktop-file-utils
BuildRequires: ninja
BuildRequires: pkgconfig(avahi-compat-libdns_sd)
BuildRequires: pkgconfig(gdk-pixbuf-2.0)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xkbfile)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(cryptopp)
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(libnotify)
BuildRequires: qt5-linguist-tools
BuildRequires: qt5-devel

Provides: synergy-plus = %{EVRD}
Obsoletes: synergy-plus < %{EVRD}

%description
Synergy lets you easily share a single mouse and keyboard between
multiple computers with different operating systems, each with its
own display, without special hardware.  It's intended for users
with multiple computers on their desk since each system uses its
own display.

%files
%doc ChangeLog
%doc doc/synergy.conf.*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/synergyc
%{_bindir}/synergys
%{_bindir}/synergyd
%{_bindir}/syntool
%{_mandir}/man8/synergys.8*
#---------------------------------------------

%package gui
Summary:	Qt based GUI for %{name}
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}
Provides:	qsynergy = %{EVRD}

%description gui
The Synergy GUI is based on QSynergy by Volker Lanz.

%files gui
%doc ChangeLog
%{_datadir}/applications/synergy.desktop
%{_bindir}/synergy
%{_bindir}/synergy-core
%{_mandir}/man8/synergyc.8*
%{_iconsdir}/hicolor/scalable/apps/synergy.svg
%{_datadir}/metainfo/synergy.appdata.xml
#------------------------------------------
%prep
%autosetup -p1 -n %{oname}-%{version}-stable

unzip %{SOURCE10}
mv pugixml*/* ext/pugixml

%build
%cmake -G Ninja -Wno-dev \
	-DSYNERGY_VERSION_STAGE:STRING=stable \
	-DBUILD_TESTS=false \
	-DSYNERGY_ENTERPRISE=true

%ninja_build

%install
%ninja_install -C build

install -D -p -m 0755 build/bin/synergyd %{buildroot}%{_bindir}/synergyd
install -D -p -m 0644 doc/synergy.conf.example %{buildroot}%{_sysconfdir}/%{name}.conf
install -D -p -m 0644 doc/synergyc.man %{buildroot}%{_mandir}/man8/synergyc.8
install -D -p -m 0644 doc/synergys.man %{buildroot}%{_mandir}/man8/synergys.8

mkdir -p %{buildroot}%{_datadir}/metainfo
## Write AppStream
cat <<END> %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2018 Ding-Yi Chen <dchen@redhat.com> -->
<component type="desktop-application">
  <id>%{name}</id>
  <metadata_license>FSFAP</metadata_license>
  <project_license>GPLv2</project_license>
  <name>synergy</name>
  <summary>Share mouse and keyboard between multiple computers over the network</summary>

  <description>
    <p>
    Synergy lets you easily share your mouse and keyboard between multiple
    computers, where each computer has its own display. No special hardware is
    required, all you need is a local area network. Synergy is supported on
    Windows, Mac OS X and Linux. Redirecting the mouse and keyboard is as simple
    as moving the mouse off the edge of your screen.
    </p>
  </description>

  <launchable type="desktop-id">%{name}.desktop</launchable>

  <url type="homepage">https://symless.com/synergy</url>

  <provides>
    <binary>synergy</binary>
    <binary>synergyc</binary>
    <binary>synergys</binary>
    <binary>syntool</binary>
  </provides>

  <releases>
    <release version="%{epoch}:%{version}" date="2019-05-10" />
  </releases>
</component>
END

desktop-file-install --delete-original  \
  --dir %{buildroot}%{_datadir}/applications            \
  --set-icon=%{_datadir}/pixmaps/synergy.ico            \
  %{buildroot}%{_datadir}/applications/synergy.desktop

desktop-file-validate %{buildroot}/%{_datadir}/applications/synergy.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9082 |21cr|synfig-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Vector-based 2D animation renderer
Name:		synfig
Version:	1.5.1
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		https://www.synfig.org
Source0:	http://downloads.sourceforge.net/synfig/%{name}-%{version}.tar.gz
#Source0:	https://github.com/synfig/synfig/archive/refs/tags/v%%{version}.tar.gz?/%%{name}-%%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		synfig-1.1.10-optflags.patch
Patch1:		synfig-1.0.2-ltld.patch
BuildRequires:	automake
BuildRequires:	config(autoconf)
BuildRequires:	cvs
BuildRequires:	gettext >= 0.15
BuildRequires:	intltool
BuildRequires:	boost-devel >= 1.53.0
BuildRequires:	ffmpeg-devel
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(cairo) >= 1.12.0
BuildRequires:	pkgconfig(ETL) >= 1.5.1
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(giomm-2.4) >= 2.18.2
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glibmm-2.4) >= 2.24.2
BuildRequires:	pkgconfig(GraphicsMagick++)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(ImageMagick) >= 6.4.2
BuildRequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmng)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml++-2.6)
BuildRequires:	pkgconfig(mlt++-7)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(zlib)
Requires:	ffmpeg
Requires:	libdv-apps
Requires:	imagemagick
Requires:	x11-font-cursor-misc
Requires:	x11-font-misc


%description
Synfig is a vector based 2D animation renderer. It is designed to be capable
of producing feature-film quality animation.
This package contains the command-line renderer. For the GUI animation editor,
please install synfigstudio.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%config(noreplace) %{_sysconfdir}/%{name}_modules.cfg
%{_bindir}/%{name}
%{_libdir}/%{name}

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Synfig is a vector based 2D animation renderer. It is designed to be capable
of producing feature-film quality animation.
This package contains the shared library needed by synfig.

%files -n %{libname}
%doc COPYING ChangeLog NEWS
%{_libdir}/lib*.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Synfig is a vector based 2D animation renderer. It is designed to be capable
of producing feature-film quality animation.
This package contains the development files for the shared library provided
by %{libname}.

%files -n %{devname}
%doc COPYING ChangeLog NEWS
%{_bindir}/%{name}-config
%{_includedir}/%{name}-*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# Drop internal library sources to force use of the system one
# (see Patch1)
rm -r libltdl

# Fix non-UTF8
iconv -f iso8859-1 -t utf-8 ChangeLog -o ChangeLog.conv && mv -f ChangeLog.conv ChangeLog


%build
export CC=gcc
export CXX=g++
export LDFLAGS="%{ldflags} -lpthread"
#autoreconf -vfi
#intltoolize --copy --force
%configure \
	--disable-static \
	--with-imagemagick \
	--with-magickpp \
	--with-ltdl-include=%{_includedir} \
	--with-ltdl-lib=%{_libdir} \
	--without-opengl
%make

# Remove rpath from libtool
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool


%install
%makeinstall_std

# FIXME zh-Hant is not supported by Rosa language tree:
# remove offending lang file until we will support it and avoid 2 rpmlint errors
rm -rf %{buildroot}%{_datadir}/locale/zh-Hant

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9083 |21cr|synfigstudio-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname synfigapp %{major}
%define	devname %mklibname synfigapp -d

Summary:	Vector-based 2D animation GUI
Name:		synfigstudio
Version:	1.5.1
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		https://www.synfig.org/cms/
Source0:	https://downloads.sourceforge.net/synfig/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	fontconfig
BuildRequires:	gettext >= 0.15
BuildRequires:	imagemagick
BuildRequires:	intltool >= 0.35.2
BuildRequires:	perl
BuildRequires:	perl(XML::Parser)
BuildRequires:	synfig
BuildRequires:	pkgconfig(atkmm-1.6)
BuildRequires:	pkgconfig(ETL) >= 1.5.1
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(Magick++)
BuildRequires:	pkgconfig(MagickCore)
BuildRequires:	pkgconfig(MagickWand)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pangomm-1.4)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(synfig) >= 1.5.1
Requires:	synfig >= 1.5.1

%description
Synfig is a vector based 2D animation renderer. It is designed to be capable
of producing feature-film quality animation.
This package contains the graphical user interface for synfig.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README NEWS TODO
%{_bindir}/%{name}
%{_bindir}/synfigplayer
%{_datadir}/synfig/css/
%{_datadir}/synfig/brushes/
%{_datadir}/synfig/icons/
%{_datadir}/synfig/images/
%{_datadir}/synfig/plugins/
%{_datadir}/synfig/sounds/
%{_datadir}/synfig/ui/
%{_datadir}/applications/org.synfig.SynfigStudio.desktop
%{_iconsdir}/hicolor/*x*/apps/synfig_icon.png
%{_iconsdir}/hicolor/scalable/apps/org.synfig.SynfigStudio.svg
%{_datadir}/appdata/org.synfig.SynfigStudio.appdata.xml
%{_datadir}/mime-info/%{name}.*
%{_datadir}/mime/packages/org.synfig.SynfigStudio.xml

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Synfig is a vector based 2D animation renderer. It is designed to be capable
of producing feature-film quality animation.
This package contains the shared library provided by %{name}.

%files -n %{libname}
%doc COPYING ChangeLog NEWS
%{_libdir}/libsynfigapp.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C++
Provides:	synfigapp-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Synfig is a vector based 2D animation renderer. It is designed to be capable
of producing feature-film quality animation.
This package contains the development files for the shared library provided
by %{name}.

%files -n %{devname}
%doc COPYING ChangeLog NEWS
%{_includedir}/synfigapp-0.0
%{_libdir}/libsynfigapp.so

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix non-UTF8
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv && mv -f ChangeLog.conv ChangeLog


%build
autoreconf -vfi
intltoolize --force
%configure --enable-jack \
	--disable-static \
	--disable-rpath \
	--disable-update-mimedb
%make


%install
%makeinstall_std

desktop-file-edit		--add-category="X-MandrivaLinux-CrossDesktop" \
				%{buildroot}%{_datadir}/applications/org.synfig.SynfigStudio.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9084 |21cr|synkron-1.6.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname	Synkron

%define debug_package %{nil}

Summary:	A synchronization tool with QT4 GUI
Name:		synkron
Version:	1.6.2
Release:	4
Group:		File tools
License:	GPLv2
URL:		http://sourceforge.net/projects/synkron/
Source0:	http://downloads.sourceforge.net/project/%name/%name/%version/%srcname-%{version}-src.tar.gz
Source1:	Synkron.desktop
BuildRequires:	qt4-devel >= 4:4.3 desktop-file-utils
Requires:	qt4-common >= 4:4.3

%description
Synkron is an application for folder synchronisation that allows you
to configure your synchronisations in detail. Despite having many
features, the user interface of Synkron is very user-friendly and easy
to use.

Synkron is able to synchronise multiple folders at once, analyse
folders before sync, restore overwritten or deleted files, plan
synchronisations and much more.

Synkron is a cross-platform application and runs on Mac OS X, Linux
and Windows.

Synkron is distributed under the terms of the GPL v2 licence.

%files
%doc gpl.txt readme.txt
%{_bindir}/synkron
%{_datadir}/icons/synkron/
%{_datadir}/applications/Synkron.desktop

#---------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}-src

%build
lrelease Synkron.pro
qmake -config release
%make 

%install
#binary
install -d %{buildroot}/%{_bindir}
install -m 0755 synkron -s %{buildroot}/%{_bindir}

#icon
install -d %{buildroot}%{_datadir}/icons/%{name}
install -m 0644 images/Synkron48.png %{buildroot}/%{_datadir}/icons/%{name}


#desktop file
desktop-file-install  --dir="%{buildroot}/%{_datadir}/applications" %{SOURCE1}
# Fix perms
chmod 644  gpl.txt readme.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9085 |21cr|syntek-3.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname stk11xx

Name: 		syntek
Version: 	3.0.0
Release: 	3
Summary: 	Syntek USB Video Camera driver for DC-1125 and STK-1135
Group: 		System/Configuration/Hardware
License: 	GPLv2
URL:		http://syntekdriver.sourceforge.net/
#http://syntekdriver.svn.sourceforge.net/viewvc/syntekdriver/tags/%{version}/?view=tar
Source:         syntekdriver-%{version}.tar.gz
BuildRequires:	doxygen
BuildArch:	noarch

%description
Documentation for the syntek USB 2.0 video camera driver for DC-1125 and
STK-1135


%package -n dkms-%name
Summary:	DKMS-ready kernel-source for the Syntek USB Video Camera kernel module
Group:		System/Configuration/Hardware
Requires(post):	ctags
Requires(post):	dkms
Requires(preun):dkms

%description -n dkms-%name
DKMS-ready syntek USB 2.0 video camera driver for DC-1125 and STK-1135


%prep
%setup -qn %{version}

%build
%make -f Makefile.standalone doc

%install
mkdir -p -m755 %{buildroot}%{_docdir}/%{name}-%{version}/html
install -m644 %{_builddir}/doxygen/html/* %{buildroot}%{_docdir}/%{name}-%{version}/html
install -m644 README %{buildroot}%{_docdir}/%{name}-%{version}

# DKMS stuff
mkdir -p -m755 %{buildroot}%{_usrsrc}/%{name}-%{version}-%{release}
cp -a * %{buildroot}%{_usrsrc}/%{name}-%{version}-%{release}
# Configuration for dkms
cat > %{buildroot}%{_usrsrc}/%{name}-%{version}-%{release}/dkms.conf << 'EOF'
PACKAGE_VERSION=%{version}-%{release}
# Items below here should not have to change with each driver version
PACKAGE_NAME=%{name}
BUILT_MODULE_NAME[0]="%{modname}"
DEST_MODULE_LOCATION[0]="/kernel/3rdparty/%{name}"
REMAKE_INITRD="no"
AUTOINSTALL=yes
EOF

%post -n dkms-%{name}
dkms add -m %{name} -v %{version}-%{release} --rpm_safe_upgrade || :
dkms build -m %{name} -v %{version}-%{release} --rpm_safe_upgrade || :
dkms install -m %{name} -v %{version}-%{release} --rpm_safe_upgrade || :

%preun -n dkms-%{name}
dkms remove -m %{name} -v %{version}-%{release} --all --rpm_safe_upgrade || :

%files
%dir %{_docdir}/%{name}-%{version}/
%doc %{_docdir}/%{name}-%{version}/README
%dir %{_docdir}/%{name}-%{version}/html/
%doc %{_docdir}/%{name}-%{version}/html/*

%files -n dkms-%{name}
%doc README
%{_usrsrc}/%{name}-%{version}-%{release}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9086 |21cr|synthein-0.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           synthein
Version:        0.2.1
Release:        2
Summary:        A space ship building and combat game
Group:          Games/Arcade
License:        GPLv3+
Url:            https://github.com/synthein/synthein
Source0:        https://github.com/synthein/synthein/archive/v%{version}.tar.gz
BuildRequires:  imagemagick
BuildRequires:  zip
BuildRequires:  desktop-file-utils
Requires:       love
BuildArch:      noarch

%description
Synthein is a game about blowing up 
space ships and using their parts 
to make your space ship bigger and better.
Features:
*You can build onto your ship.
*Enemies spawn at random.
*AI allies can follow you and attack nearby enemies.

 

%files
%doc README.md LICENSE
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/%{name}.love
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------
%prep
%setup  -q
pushd src
zip -9 -q -r %{name}.love .
popd

%build

%install
# data
install -D -m 644 src/%{name}.love %{buildroot}%{_gamesdatadir}/%{name}/%{name}.love

# wrapper
mkdir -p %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
exec love %{_gamesdatadir}/%{name}/%{name}.love "$@"
EOF
chmod 0755 %{buildroot}%{_gamesbindir}/%{name}

# Desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
      package/%{name}.desktop


# icons
for size in 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size  -background transparent package/%{name}.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9087 |21cr|sysbench-1.0.20-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:       System performance benchmark
Name:          sysbench
Version:       1.0.20
Release:       2
Group:         System/Kernel and hardware
License:       GPLv2+
Source0:       https://github.com/akopytov/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
URL:           https://github.com/akopytov/sysbench/
Patch0:        sysbench-obsolete-egrep.patch
BuildRequires: automake
BuildRequires: pkgconfig(ck)
BuildRequires: docbook-style-xsl
BuildRequires: libaio-devel
BuildRequires: libtool
BuildRequires: xsltproc
BuildRequires: luajit-devel
BuildRequires: mariadb-devel
#BuildRequires: mariadb-connector-c-devel
#BuildRequires: libpq-devel
BuildRequires: postgresql-devel
BuildRequires: python3-cram

%description
SysBench is a modular, cross-platform and multi-threaded benchmark
tool for evaluating OS parameters that are important for a system
running a database under intensive load.

The idea of this benchmark suite is to quickly get an impression about
system performance without setting up complex database benchmarks or
even without installing a database at all. Current features allow to
test the following system parameters:
- file I/O performance
- scheduler performance
- memory allocation and transfer speed
- POSIX threads implementation performance
- database server performance (OLTP benchmark)

Primarily written for MySQL server benchmarking, SysBench will be
further extended to support multiple database backends, distributed
benchmarks and third-party plug-in modules.


%prep
%autosetup -p1
rm -r third_party/luajit/luajit/
rm -r third_party/concurrency_kit/ck/
rm -r third_party/cram/

%build
export CFLAGS="%{optflags}"
autoreconf -vif
%configure --with-mysql \
           --with-pgsql \
           --with-system-ck \
           --with-system-luajit \
           --without-gcc-arch

%make

%install
%makeinstall_std
mv %{buildroot}%{_docdir}/sysbench/manual.html .

%check
cd tests
./test_run.sh

%files
%doc ChangeLog README.md manual.html
%doc COPYING
%{_bindir}/*
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9088 |21cr|sysconftool-0.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Group:		Development/Tools
Summary:	Macros for aclocal to install configuration files
Name:		sysconftool
Version:	0.19
Release:	1
License:	GPLv3 with exceptions
Source0:	http://downloads.sourceforge.net/project/courier/sysconftool/%version/%name-%version.tar.bz2
Source44:	import.info
Url:		http://www.courier-mta.org/sysconftool/
BuildArch:	noarch
BuildRequires:	autoconf
BuildRequires:	automake

%description
sysconftool is a development utility that helps to install application
configuration files. sysconftool allows an existing application to be
upgraded without losing the older version's configuration settings.

%prep
%setup

%build
autoreconf
%configure

%make

%install
make install DESTDIR=%{buildroot}

# make the symlinks relative
ln -sf ../share/sysconftool/sysconftoolcheck %{buildroot}%{_bindir}/
ln -sf ../share/sysconftool/sysconftoolize.pl %{buildroot}%{_bindir}/sysconftoolize

%check
make check

%files
%doc AUTHORS ChangeLog COPYING *.html NEWS
%{_bindir}/sysconftoolcheck
%{_bindir}/sysconftoolize
%{_datadir}/sysconftool
%{_mandir}/man1/sysconftool.1*
%{_mandir}/man1/sysconftoolcheck.1*
%{_mandir}/man1/sysconftoolize.1.xz
%{_mandir}/man7/sysconftool.7*
%{_datadir}/aclocal/sysconftool.m4

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9089 |21cr|syslog-ng-patterndb-20091209-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		syslog-ng-patterndb
Version:	20091209
Release:	5
Summary:    Syslog-ng pattern database
License:    GPL
Group:      Graphical desktop/GNOME
URL:        http://www.balabit.com/downloads/files/patterndb-snapshot
Source0:    http://www.balabit.com/downloads/files/patterndb-snapshot/patterndb-%{version}.zip
BuildArch:      noarch

%description
This package contains a pattern database for syslog-ng.

%prep
%setup -q -n patterndb

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/syslog-ng
install -m 644 *.xml %{buildroot}%{_datadir}/syslog-ng

%files
%{_datadir}/syslog-ng

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9090 |21cr|sysprof-3.38.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 4
%define libname %mklibname %{name} %{api}
%define libnameui %mklibname %{name}-ui %{api}
%define libnamemem %mklibname %{name}-memory %{api}
%define libnamespeed %mklibname %{name}-speedtrack %{api}
%define devname %mklibname %{name} %{api} -d

Summary:	System-wide Linux Profiler
Name:		sysprof
Version:	3.38.0
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/sushi/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libdazzle-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(polkit-gobject-1)

%description
Sysprof is a sampling profiler that uses a kernel module to generate
stacktraces which are then interpreted by the userspace program
"sysprof".

Sysprof handles shared libraries and applications do not need to be
recompiled. In fact they don't even have to be restarted.

Just insert the kernel module and start sysprof.

%files -f %{name}.lang
%doc AUTHORS COPYING README.md
%{_appdatadir}/org.gnome.Sysprof3.appdata.xml
%{_bindir}/sysprof
%{_bindir}/sysprof-cli
%{_datadir}/applications/org.gnome.Sysprof3.desktop
%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof2.xml
%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml
%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Service.xml
%{_datadir}/dbus-1/system.d/org.gnome.Sysprof2.conf
%{_datadir}/dbus-1/system.d/org.gnome.Sysprof3.conf
%{_datadir}/dbus-1/system-services/org.gnome.Sysprof2.service
%{_datadir}/dbus-1/system-services/org.gnome.Sysprof3.service
%{_datadir}/glib-2.0/schemas/org.gnome.sysprof3.gschema.xml
%{_datadir}/mime/packages/sysprof-mime.xml
%{_datadir}/polkit-1/actions/org.gnome.sysprof3.policy
%{_iconsdir}/hicolor/*/*/*
%{_libexecdir}/sysprofd
%{_unitdir}/sysprof2.service
%{_unitdir}/sysprof3.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libsysprof-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libnamemem}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnamemem}
Shared library for %{name}.

%files -n %{libnamemem}
%{_libdir}/libsysprof-memory-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libnamespeed}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnamespeed}
Shared library for %{name}.

%files -n %{libnamespeed}
%{_libdir}/libsysprof-speedtrack-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libnameui}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnameui}
Shared library for %{name}.

%files -n %{libnameui}
%{_libdir}/libsysprof-ui-%{api}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	%{libnameui} = %{EVRD}
Requires:	%{libnamemem} = %{EVRD}
Requires:	%{libnamespeed} = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/sysprof-%{api}/
%{_libdir}/libsysprof-capture-%{api}.a
%{_libdir}/pkgconfig/sysprof-%{api}.pc
%{_libdir}/pkgconfig/sysprof-capture-%{api}.pc
%{_libdir}/pkgconfig/sysprof-ui-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
	-Denable_gtk=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9091 |21cr|systemctl-tui-0.3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         debug_package %{nil}

Name:           systemctl-tui
Version:        0.3.8
Release:        1
Summary:        A fast, simple TUI for interacting with systemd services and their logs
License:        MIT
Group:          System/Base
URL:            https://github.com/rgwood/systemctl-tui
Source0:        %{name}-%{version}.tar.gz
Source1:        systemctl-tui-vendor-0.3.8.tar.xz
Source10:       upd.sh
BuildRequires:  cargo

%description
systemctl-tui can quickly browse service status and logs, 
and start/stop/restart services. It aims to do a small 
number of things well.

%prep
%autosetup -p1 -a1

mkdir -p .cargo
cat > .cargo/config.toml << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline %{?_smp_mflags}

%install
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}

%files
%doc README.md
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9092 |21cr|systemd-ui-3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	System and Service Manager UI for systemd
Name:		systemd-ui
Version:	3
Release:	5
License:	GPLv2+
Group:		System/Configuration/Boot and Init
Url:		http://www.freedesktop.org/wiki/Software/systemd
Source0:	http://www.freedesktop.org/software/systemd/systemd-ui-%{version}.tar.xz
Patch0:		systemd-ui-0-linkage_fix.diff
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	m4
BuildRequires:	libtool
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	vala >= 0.11
BuildRequires:	xsltproc
Requires:	polkit
Requires:	systemd
Obsoletes:	systemd-gtk < 45
Provides:	systemd-gtk = %{EVRD}
Provides:	systemadm = %{EVRD}
Obsoletes:	systemadm <= 0-3

%description
Graphical front-end for systemd

It contains :
	* systemadm is a graphical frontend for the systemd system and service manager
	      and allows introspection and control of systemd

%files
%{_bindir}/systemadm
%{_bindir}/systemd-gnome-ask-password-agent
%{_mandir}/man1/systemadm.*
%{_datadir}/applications/systemadm.desktop

#------------------------------------------------------

%prep

%autosetup -p1 -n systemd-ui-%{version}

%build
export CC=gcc
export CXX=g++

autoreconf -fi

%configure
%make

%install
%makeinstall_std

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/systemadm.desktop <<EOF
[Desktop Entry]
Name=Graphical front-end for systemd
Name[ru]=Графический интерфейс для systemd
Comment=Modify systemd configuration
Comment[ru]=Настройка параметров и мониторинг systemd
Exec=systemadm
Terminal=false
Type=Application
Icon=development_tools_section
Categories=GTK;Settings;System;X-Mageia-CrossDesktop;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9093 |21cr|system-monitoring-center-2.22.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multi-featured system monitor
Name:		system-monitoring-center
Version:	2.22.2
Release:	1
License:	GPLv3
Group:		Monitoring
Url:		https://github.com/hakandundar34coding/system-monitoring-center
Source0:	https://github.com/hakandundar34coding/system-monitoring-center/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	python3-gi
Requires:	python3dist(pycairo)
Requires:	python3dist(pygobject)
Requires:	typelib(Adw)
BuildArch:	noarch

%description
Provides information about CPU/RAM/Disk/Network/GPU performance, sensors,
processes, users, storage, startup programs, services, environment
variables and system.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/appdata/io.github.hakandundar34coding.%{name}.appdata.xml
%{_datadir}/applications/io.github.hakandundar34coding.%{name}.desktop
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/scalable/apps/io.github.hakandundar34coding.%{name}.svg
%{_localedir}/*
%{_mandir}/man1/%{name}.1.*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9094 |21cr|systray-x-0.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without  kde5

# see spec file https://abf.io/import/thunderbird-68
%define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
%define tbextdir %{_libdir}/mozilla/extensions/%{tb_appid}

Name:		systray-x
Version:	0.9.5
Release:	1
Summary:	A system tray extension for Thunderbird 68+
License:	MPL-2.0
Group:		Graphical desktop/Other
Url:		https://github.com/Ximi1970/systray-x
Source0:	https://github.com/Ximi1970/systray-x/archive/refs/tags/0.9.5.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		systray-x-version.patch

BuildRequires: pkgconfig(Qt5Core)
BuildRequires: zip
BuildRequires: unzip
%if %{with kde5}
BuildRequires: knotifications-devel
%endif

Requires: thunderbird

%description
SysTray-X is a system tray extension for Thunderbird 68+. The addon uses the
WebExtension API's to control an external system dependent system tray
application.

The addon and system tray application can do:
* custom new mail icon
* display number of unread / new mails
* show / hide Thunderbird (minimize)
* minimizing hides to tray
* minimize on startup
* minimize on close

%prep
%autosetup -p1

%build
export PATH=$PATH:%{_qt5_bindir}
%make_build \
%if %{without kde5}
	OPTIONS="DEFINES+=NO_KDE_INTEGRATION"
%endif

sed < app/config/linux/SysTray_X.json.template -e 's|SYSTRAY_X_PATH|%{_bindir}/SysTray-X|' > SysTray_X.json

%install
install -Dm0755 SysTray-X %{buildroot}/%{_bindir}/SysTray-X
install -Dm0644 SysTray_X.json %{buildroot}%{_libdir}/mozilla/native-messaging-hosts/SysTray_X.json
mkdir -p %{buildroot}%{tbextdir}/systray-x@Ximi1970
unzip -d %{buildroot}%{tbextdir}/systray-x@Ximi1970 systray-x@Ximi1970.xpi

%files
%doc README.md FAQ.txt README.preferences.md
%{_bindir}/SysTray-X
%{_libdir}/mozilla/native-messaging-hosts/SysTray_X.json
%{tbextdir}/systray-x@Ximi1970


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9095 |21cr|t1lib-5.1.2-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Type 1 font rasterizer
Name:		t1lib
Version:	5.1.2
Release:	21
Epoch:		1
License:	LGPLv2.1+
Group:		System/Libraries
URL:		ftp://sunsite.unc.edu/pub/Linux/libs/graphics/
Source:		ftp://sunsite.unc.edu/pub/Linux/libs/graphics/%{name}-%{version}.tar.gz
Patch1:		t1lib-doc.patch
Patch2:		t1lib-config.patch
Patch4:		t1lib-5.1.2-lib-cleanup.patch
Patch5:		t1lib-5.1.2-segf.patch
Patch6:		t1lib-5.1.2-format_not_a_string_literal_and_no_format_arguments.diff
Patch7:		t1lib-5.1.2-CVE-2010-2642,CVE-2011-0433.diff
Patch8:		t1lib-5.1.2-CVE-2011-0764,1552,1553,1554.diff
BuildRequires:	texlive
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
T1lib is a library for generating character and string-glyphs from
Adobe Type 1 fonts under UNIX. T1lib uses most of the code of the X11
rasterizer donated by IBM to the X11-project. But some disadvantages
of the rasterizer being included in X11 have been eliminated.  T1lib
also includes a support for antialiasing.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Type 1 font rasterizer
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Provides:	%{name}1 = %{EVRD}
Provides:	lib%{name} = %{EVRD}
Requires:	%{name}-config

%description -n %{libname}
T1lib is a library for generating character and string-glyphs from
Adobe Type 1 fonts under UNIX. T1lib uses most of the code of the X11
rasterizer donated by IBM to the X11-project. But some disadvantages
of the rasterizer being included in X11 have been eliminated.  T1lib
also includes a support for antialiasing.

%files -n %{libname}
%dir %{_sysconfdir}/t1lib
%doc Changes LGPL README.t1*
%attr(0755,root,root) %{_libdir}/libt1*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for Type 1 font rasterizer
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}1-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Header files required for compiling packages needing the t1lib.

%files -n %{devname}
%doc doc/t1lib_doc.pdf
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package progs
Summary:	Programs dor manipulating Type 1 font
Group:		Graphics
License:	GPLv2+
Provides:	%{name}1-progs = %{EVRD}

%description progs
The t1lib-progs contains the programs "xglyph" and "type1afm" It also
contains the "t1libconfig" script used to configure t1lib.

%files progs
%doc README.t1python
%attr(0755,root,root) %{_bindir}/*


#----------------------------------------------------------------------------

%package config
Summary:	Configuration for %{name}
Group:		Graphics

%description config
The t1lib-config contains configuration files for t1lib library.

%files config
%config(noreplace) %{_sysconfdir}/t1lib/t1lib.config

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p0
%patch2 -p0
%patch4 -p1 -b .lib-cleanup
%patch5 -p1 -b .fix-segfault
%patch6 -p1 -b .format_not_a_string_literal_and_no_format_arguments
%patch7 -p1 -b .CVE-2010-2642,CVE-2011-0433
%patch8 -p1 -b .CVE-2011-0764,1552,1553,1554

%build
%configure
perl -pi -e 's,-DGLOBAL_CONFIG_DIR="\\"/usr/share/t1lib\\"",-DGLOBAL_CONFIG_DIR="\\"/etc/t1lib\\"",;' Makefile
make without_doc

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/t1lib
mv %{buildroot}%{_datadir}/t1lib/t1lib.config %{buildroot}%{_sysconfdir}/t1lib

# cleanup
rm -rf %{buildroot}%{_libdir}/*.*a

chmod 0755 %{buildroot}%{_libdir}/*.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9096 |21cr|tabatha-0.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name 	tabatha
%define version 0.6
%define release 8

Summary: 	Push-button menu for system commands
Name: 		%name
Version: 	%version
Release: 	%release
Url: 		http://groundstate.ca/tabatha/
License: 	GPL
Group: 		System/Configuration/Other
Source: 	%{name}-%{version}.tar.bz2

Buildroot: 	%_tmppath/%name-%version-buildroot
BuildArch:	noarch
Requires:	usermode-consoleonly

%description
Tabatha is a GTK2 popup menu for tablet PCs, handhelds, and other frequently
changed desktops. It can be called with a single keypress, and allows system
configurations (power, X display, networking, etc.) to be changed with a
single button push. New buttons are easily configured through a simple XML
file, with no programming necessary.

%prep
%setup -q

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/{%_bindir,%_sbindir,%_datadir}
%makeinstall_std

#menu
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/tabatha
Name=Tabatha
Comment=Quick-configure menu
Icon=configuration_section
Categories=Settings;
EOF

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%update_menus
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ChangeLog INSTALL README 
%_bindir/%name
%_sbindir/%name
%_datadir/%name
%{_datadir}/applications/mandriva-%name.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9097 |21cr|tablet-rotation-9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: tablet-rotation
Summary: Scripts to automatically rotate screens on different hardware
License: GPLv3
Group: Graphical desktop/Other
Version: 9
Release: 1
Url: http://abf.io/import/tablet-rotation
Source10: tablet-rotation.desktop
Source11: rotate-mig8.sh
Source12: rotate-mig10v1.sh
Source13: rotate-mig10v2.sh
Source14: tablet-autodetect.sh
Source15: systemd-generator-tablet-rotation.sh
Source16: tablet-onboard.desktop
Source17: filetrigger-plasma-clock.sh
Source18: kwinrc
BuildArch: noarch

Requires: grep
Requires: %{_bindir}/awk
# iio-sensor-proxy
Requires: %{_bindir}/monitor-sensor
Requires: %{_bindir}/xinput
Requires: %{_bindir}/xrandr
# systemd.generator(7) script activates touchegg daemon on known tablets
# /etc/xdg/autostart/touchegg.desktop is patched to avoid autostart if no daemon
# (https://github.com/JoseExposito/touchegg/issues/615)
Recommends: touchegg
Recommends: onboard
Recommends: (%{name}-gdm if gdm)
# file changed by the filetrigger is in plasma5-applet-digitalclock
Recommends: (%{name}-plasma-settings if plasma5-applet-digitalclock)
Requires(post): update-alternatives
Requires(postun): update-alternatives

%description
%{summary}
Run:
update-alternatives --config %{name}
to choose which script to run.
Defaults to script which tries to automatically detect hardware.
Does not start automatically if "tabletmode=0" is in kernel cmdline.

%files
%ghost %{_bindir}/%{name}
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/rotate-mig8.sh
%{_libexecdir}/%{name}/rotate-mig10v1.sh
%{_libexecdir}/%{name}/rotate-mig10v2.sh
%{_libexecdir}/%{name}/tablet-autodetect.sh
%{_sysconfdir}/xdg/autostart/tablet-rotation.desktop
%{_sysconfdir}/xdg/autostart/tablet-onboard.desktop
%{_systemdgeneratordir}/tablet-rotation

%post
# XXX alternatives here make probably no sense now, TODO: remove them?
update-alternatives --install %{_bindir}/%{name} %{name} %{_libexecdir}/%{name}/tablet-autodetect.sh 100
update-alternatives --install %{_bindir}/%{name} %{name} %{_libexecdir}/%{name}/rotate-mig8.sh 11
update-alternatives --install %{_bindir}/%{name} %{name} %{_libexecdir}/%{name}/rotate-mig10v1.sh 12
update-alternatives --install %{_bindir}/%{name} %{name} %{_libexecdir}/%{name}/rotate-mig10v2.sh 13

%postun
[ $1 = 0 ] || exit 0
update-alternatives --remove %{name} /dev/null
update-alternatives --remove %{name} %{_libexecdir}/%{name}/rotate-mig8.sh
update-alternatives --remove %{name} %{_libexecdir}/%{name}/rotate-mig10v1.sh
update-alternatives --remove %{name} %{_libexecdir}/%{name}/rotate-mig10v2.sh

#---------------------------------------------------------------------------

%package gdm
Summary: Intergrate tablet-rotation hacks with GDM
Requires: %{name}
# this hackery is for Xorg, not Wayland
Recommends: gdm-default-to-xorg

%description gdm
Intergrate tablet-rotation hacks with GDM
(run tablet rotation script inside gnome-shell in GDM)

%files gdm
%{_datadir}/gdm/greeter/autostart/tablet-rotation.desktop

#---------------------------------------------------------------------------

%package plasma-settings
Summary: Settings of KDE Plasma for tablets
Requires: bash
Requires: coreutils

%description plasma-settings
Settings of KDE Plasma for tablets.
Enables showing seconds in the clock applet to workaround issues with
not redrawing the panel after screen rotation.

%files plasma-settings
%{_libexecdir}/%{name}/filetrigger-plasma-clock.sh
/etc/skel/.config/kwinrc

%transfiletriggerin plasma-settings -- /usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/config
if ! grep -q "^/usr/share/plasma/plasmoids/org.kde.plasma.digitalclock/contents/config/main.xml$"; then exit 0; fi
exec %{_libexecdir}/%{name}/filetrigger-plasma-clock.sh

#---------------------------------------------------------------------------

%prep
cp %sources .

%install
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
mkdir -p %{buildroot}%{_datadir}/gdm/greeter/autostart
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libexecdir}/%{name}
mkdir -p %{buildroot}%{_systemdgeneratordir}
mkdir -p %{buildroot}/etc/skel/.config
install -m0755 %{SOURCE11} %{buildroot}%{_libexecdir}/%{name}/
install -m0755 %{SOURCE12} %{buildroot}%{_libexecdir}/%{name}/
install -m0755 %{SOURCE13} %{buildroot}%{_libexecdir}/%{name}/
install -m0755 %{SOURCE14} %{buildroot}%{_libexecdir}/%{name}/
install -m0755 %{SOURCE17} %{buildroot}%{_libexecdir}/%{name}/
install -m0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/xdg/autostart/
install -m0755 %{SOURCE16} %{buildroot}%{_sysconfdir}/xdg/autostart/
install -m0644 %{SOURCE10} %{buildroot}%{_datadir}/gdm/greeter/autostart/tablet-rotation.desktop
install -m0755 %{SOURCE15} %{buildroot}%{_systemdgeneratordir}/tablet-rotation
install -m0644 %{SOURCE18} %{buildroot}/etc/skel/.config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9098 |21cr|tachyon-0.99.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{x86_64} aarch64 %{risc} %{e2k}
%define target linux-64
%else
%define target linux
%endif

%define variants thr thr-ogl

%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

Summary:	Parallel / Multiprocessor Ray Tracing System
Name:		tachyon
Version:	0.99.5
Release:	1
License:	BSD with advertising
Group:		Graphics
Url:		http://jedi.ks.uiuc.edu/~johns/raytracer/
Source0:	http://jedi.ks.uiuc.edu/~johns/raytracer/files/%{version}/tachyon-%{version}.tar.gz
# taken from Debian package, rediff for 0.99.5
Source1:	%{name}.1
Patch0:		%{name}-rpm.patch
Patch1:		%{name}-shared.patch
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpng)
Conflicts:	%{name}-docs < 0.99-0.b2.2
Obsoletes:	%{name}-docs < 0.99-0.b2.2

%description
A portable, high performance parallel ray tracing system with
multithreaded implementation.

%files
%doc Changes
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package gl
Summary:	Parallel / Multiprocessor Ray Tracing System with OpenGL display
Group:		Graphics
Requires:	%{name}

%description gl
A portable, high performance parallel ray tracing system with
multithreaded implementation.

This package contains OpenGL-enabled build.

%files gl
%{_bindir}/%{name}-ogl
%{_mandir}/man1/%{name}-ogl.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Parallel / Multiprocessor Ray Tracing System library
Group:		System/Libraries
Conflicts:	%{name}-libs < 0.99-0.b2.2
Obsoletes:	%{name}-libs < 0.99-0.b2.2

%description -n %{libname}
A portable, high performance parallel ray tracing system with
multithreaded implementation.  Tachyon is built as a C callable
library, which can be used with the included demo programs or within
your own application.

This package contains the shared library.

%files -n %{libname}
%doc Copyright README
%{_libdir}/libtachyon-%{version}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for tachyon
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.99-0.b2.2
Obsoletes:	%{name}-devel < 0.99-0.b2.2

%description -n %{devname}
This package contains development headers and libraries for developing
with tachyon.

%files -n %{devname}
%{_includedir}/tachyon
%{_libdir}/libtachyon.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

find . -name CVS | xargs rm -r
# executable sources
chmod 644 src/hash.{c,h}
chmod 644 src/pngfile.h
chmod 644 src/ProfileHooks.h
chmod 644 src/TachyonOptiX.h
chmod 644 demosrc/spaceball.c
chmod 644 demosrc/trackball.{c,h}

%build
pushd unix
for variant in %{variants} ; do
  %make OPTFLAGS="%{optflags}" %{target}-$variant
done
popd

%install
mkdir -p %{buildroot}{%{_bindir},%{_libdir},{%{_datadir},%{_includedir}}/tachyon,%{_mandir}/man1}
for variant in %{variants} ; do
  install -pm755 compile/%{target}-$variant/tachyon %{buildroot}%{_bindir}/tachyon-$variant
done
rename -- -thr "" %{buildroot}%{_bindir}/*
cp -pr scenes %{buildroot}%{_datadir}/tachyon/
install -pm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
echo ".so tachyon.1" > %{buildroot}%{_mandir}/man1/tachyon-ogl.1
cp -a compile/%{target}-thr/libtachyon*.so %{buildroot}%{_libdir}/
install -pm644 src/{hash,tachyon{,_dep},util}.h %{buildroot}%{_includedir}/tachyon/

find %{buildroot}%{_datadir}/%{name}/ -type f | xargs chmod 0644

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9099 |21cr|tachyon-0.99.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{x86_64}
%define target linux-64
%else
%define target linux
%endif

%define variants thr thr-ogl

%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

Summary:	Parallel / Multiprocessor Ray Tracing System
Name:		tachyon
Version:	0.99.5
Release:	2
License:	BSD with advertising
Group:		Graphics
Url:		http://jedi.ks.uiuc.edu/~johns/raytracer/
Source0:	http://jedi.ks.uiuc.edu/~johns/raytracer/files/%{version}/tachyon-%{version}.tar.gz
# taken from Debian package, rediff for 0.99.5
Source1:	%{name}.1
Patch0:		%{name}-rpm.patch
Patch1:		%{name}-shared.patch
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpng)
Conflicts:	%{name}-docs < 0.99-0.b2.2
Obsoletes:	%{name}-docs < 0.99-0.b2.2
ExclusiveArch:	%{ix86} %{x86_64}

%description
A portable, high performance parallel ray tracing system with
multithreaded implementation.

%files
%doc Changes
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package gl
Summary:	Parallel / Multiprocessor Ray Tracing System with OpenGL display
Group:		Graphics
Requires:	%{name}

%description gl
A portable, high performance parallel ray tracing system with
multithreaded implementation.

This package contains OpenGL-enabled build.

%files gl
%{_bindir}/%{name}-ogl
%{_mandir}/man1/%{name}-ogl.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Parallel / Multiprocessor Ray Tracing System library
Group:		System/Libraries
Conflicts:	%{name}-libs < 0.99-0.b2.2
Obsoletes:	%{name}-libs < 0.99-0.b2.2

%description -n %{libname}
A portable, high performance parallel ray tracing system with
multithreaded implementation.  Tachyon is built as a C callable
library, which can be used with the included demo programs or within
your own application.

This package contains the shared library.

%files -n %{libname}
%doc Copyright README
%{_libdir}/libtachyon-%{version}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for tachyon
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.99-0.b2.2
Obsoletes:	%{name}-devel < 0.99-0.b2.2

%description -n %{devname}
This package contains development headers and libraries for developing
with tachyon.

%files -n %{devname}
%{_includedir}/tachyon
%{_libdir}/libtachyon.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

find . -name CVS | xargs rm -r
# executable sources
chmod 644 src/hash.{c,h}
chmod 644 src/pngfile.h
chmod 644 src/ProfileHooks.h
chmod 644 src/TachyonOptiX.h
chmod 644 demosrc/spaceball.c
chmod 644 demosrc/trackball.{c,h}

%build
pushd unix
for variant in %{variants} ; do
  %make OPTFLAGS="%{optflags}" %{target}-$variant
done
popd

%install
mkdir -p %{buildroot}{%{_bindir},%{_libdir},{%{_datadir},%{_includedir}}/tachyon,%{_mandir}/man1}
for variant in %{variants} ; do
  install -pm755 compile/%{target}-$variant/tachyon %{buildroot}%{_bindir}/tachyon-$variant
done
rename -- -thr "" %{buildroot}%{_bindir}/*
cp -pr scenes %{buildroot}%{_datadir}/tachyon/
install -pm644 %{SOURCE1} %{buildroot}%{_mandir}/man1/
echo ".so tachyon.1" > %{buildroot}%{_mandir}/man1/tachyon-ogl.1
cp -a compile/%{target}-thr/libtachyon*.so %{buildroot}%{_libdir}/
install -pm644 src/{hash,tachyon{,_dep},util}.h %{buildroot}%{_includedir}/tachyon/

find %{buildroot}%{_datadir}/%{name}/ -type f | xargs chmod 0644

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9100 |21cr|tac_plus-4.0.4.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	TACACS++ server based on Cisco engineering release
Name:		tac_plus
Version:	4.0.4.28
Release:	1
License:	BSD
Group:		System/Servers
Url:		http://www.shrubbery.net/tac_plus/
Source:		https://shrubbery.net/pub/tac_plus/tacacs-F%{version}.tar.gz
Source1:	tac_plus.conf
Source2:	tac_plus.pamd
Source3:	tac_plus.service
Source4:	tac_plus.sysconfig
Source5:	tac_plus-wrapper.sh
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libnsl)

%description
The base source for this TACACS+ package is Cisco's publicly available TACACS+
"developer's kit", for which we are grateful.

We needed a way to limit certain groups within the company from logging into
or getting enable access on certain devices. Access lists (ACLs) of a sort have
been added that match against the address of the device speaking with the
daemon.

Being paranoid, we also wanted to limit which hosts could connect to the
daemon. This can be done with tcp_wrappers via inetd, but this does not work if
the daemon is running standalone. So, calls to libwrap, the tcp_wrappers
library, have been added. For the source and more information about
tcp_wrappers, see Wietse Venema's site at http://www.porcupine.org/.

Along the way we have also added autoconf, expanded the manual pages,
cleaned-up various formatting and STD C nits, added PAM authentication support,
and fixed a few LP64 problems.

Of course we have also received some enchancement requests from users. One of
which was the addition of a host clause (per-host configuration). This has been
added; ported from Devrim Seral's implementation. See the documentation for
further information. 

%files
%{_bindir}/tac_*
%{_sbindir}/tac_plus
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0644,root,root) %{_unitdir}/%{name}.service
%doc %{_mandir}/man5/tac_plus.conf.5.*
%doc %{_mandir}/man8/tac_plus.8.*
%doc %{_mandir}/man8/tac_pwd.8.*
%doc users_guide
%{_datadir}/%{name}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libtacacs.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so

#------------------------------------------------------------------

%prep
%setup -q -n tacacs-F%{version}

%build
./configure \
	--prefix=/usr \
	--enable-acls \
	--enable-uenable \
	--libdir=%{_libdir} \
	--disable-static

%make

%install
%makeinstall_std

mkdir -p %{buildroot}/{%{_unitdir},%{_sysconfdir}/{pam.d,sysconfig}}
install -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}/
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -m0644 -D %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m0755 -D %{SOURCE5} %{buildroot}%{_bindir}/tac_plus-wrapper.sh
mv %{buildroot}%{_datadir}/tacacs %{buildroot}%{_datadir}/%{name}

sed "s:libexecdir:%{_libexecdir}:" -i %{buildroot}%{_unitdir}/%{name}.service
sed "s:sysconfig:%{_sysconfdir}/sysconfig:" -i %{buildroot}%{_unitdir}/%{name}.service


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9101 |21cr|tagtool-0.14.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tagtool
Summary:	Audio file (MP3/OGG) tag editor
Version:	0.14.5
Release:	1
License:	GPLv2+
Group:		Sound
# More recent fork, supporting GTK3
Url:		https://github.com/impegoraro/%{name}
Source0:	https://github.com/impegoraro/%{name}/archive/%{name}-master.zip
Patch0:		%{name}-0.14.2-fix-fmt-string.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	id3lib-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.16
BuildRequires:	pkgconfig(libglade-2.0) >= 2.6.0
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Audio Tag Tool is a program to manage the information fields in MP3 and Ogg
Vorbis files, commonly called tags.Tag Tool can be used to edit tags one by
one, but the most useful features are the ability to easily tag or rename
hundreds of files at once, in any desired format.  The mass tag and mass
rename features can handle filenames in any format thanks to an easily
configurable format template.

%files -f %{name}.lang
%doc AUTHORS BUGS ChangeLog COPYING README README.md NEWS THANKS TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/TagTool.*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-master
%patch0 -p1


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

# Fix provided .desktop file
sed -i -e 's|False|false|g' %{buildroot}/%{_datadir}/applications/%{name}.desktop
desktop-file-install	--add-category="GTK" \
			--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Provide more icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{32x32,16x16}/apps/
convert -size 32x32 pixmaps/TagTool.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/TagTool.png
convert -size 16x16 pixmaps/TagTool.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/TagTool.png

# Drop build-produced icon cache data
rm -f %{buildroot}/%{_iconsdir}/hicolor/*.cache

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9102 |21cr|taipeifonts-1.2-35
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	taipeifonts
%define version	1.2

Summary:	Taipei Chinese big5 fonts 
Name:		%{name}
Version:	%{version}
Release:	35
License:	Public Domain
Group:		System/Fonts/X11 bitmap
Source0:	%{name}-%{version}.tar.bz2
#Packager:	platin@ch.ntu.edu.tw
BuildArch:	noarch   
BuildRequires:	bdftopcf
Requires(post,postun):	mkfontscale
Requires(post,postun):	mkfontdir     
Provides:	zh-pcf-fonts, taipei16, taipeik20, taipeik24, taipeim20, taipeim24

%description
These are the Traditional Chinese fonts for X found on GNU's FTP mirror.

%prep
%setup -q

%build
bdftopcf taipei24.bdf | gzip -c > taipei24.pcf.gz
bdftopcf taipei20.bdf | gzip -c > taipei20.pcf.gz
bdftopcf taipei16.bdf | gzip -c > taipei16.pcf.gz

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/fonts/misc

install -m 644 taipei24.pcf.gz $RPM_BUILD_ROOT%{_datadir}/fonts/misc/
install -m 644 taipei20.pcf.gz $RPM_BUILD_ROOT%{_datadir}/fonts/misc/
install -m 644 taipei16.pcf.gz $RPM_BUILD_ROOT%{_datadir}/fonts/misc/
install -m 644 vga12x24.pcf.gz $RPM_BUILD_ROOT%{_datadir}/fonts/misc/

%post
mkfontscale %_datadir/fonts/misc
mkfontdir %_datadir/fonts/misc

%postun
mkfontscale %_datadir/fonts/misc
mkfontdir %_datadir/fonts/misc

%clean
rm -rf $RPM_BUILD_ROOT

%files 
%defattr(0644,root,root,0755)
%{_datadir}/fonts/misc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9103 |21cr|talk-0.17-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Talk client for one-on-one Internet chatting
Name:		talk
Version:	0.17
Release:	24
License:	BSD
Group:		Networking/Chat
Source0:	ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-ntalk-%{version}.tar.gz
Source1:	talk-xinetd
Source2:	ntalk-xinetd
Patch0:		netkit-ntalk-0.17-pre20000412-time.patch
Patch1:		netkit-ntalk-0.17-strip.patch
Patch2:		netkit-ntalk-0.17-sockopt.patch
Patch3:		netkit-ntalk-0.17-i18n.patch
Patch4:		netkit-ntalk-0.17-resize.patch
Patch5:		netkit-ntalk-0.17-fix-dos-condition.patch
Patch6:		netkit-ntalk-0.17-man-ln.patch
BuildRequires:	pkgconfig(ncurses)

%description
The talk package provides client and daemon programs for the Internet
talk protocol, which allows you to chat with other users on different
systems.  Talk is a communication program which copies lines from one
terminal to the terminal of another user.

Install talk if you'd like to use talk for chatting with users on
different systems.

%files
%{_bindir}/talk
%{_mandir}/man1/talk.1*

#----------------------------------------------------------------------------

%package server
Summary:	Server for the talk program
Group:		System/Servers
Requires:	xinetd

%description	server
The talk-server package provides daemon programs for the Internet talk
protocol, which allows you to chat with other users on different
machines.  Talk is a communication program which copies lines from one
terminal to the terminal of another user.

%files server
%config (noreplace) %{_sysconfdir}/xinetd.d/*
%attr(0711,root,root)%{_sbindir}/in.ntalkd
%{_sbindir}/in.talkd
%{_mandir}/man8/in.ntalkd.8*
%{_mandir}/man8/in.talkd.8*
%{_mandir}/man8/ntalkd.8*
%{_mandir}/man8/talkd.8*

#----------------------------------------------------------------------------

%prep
%setup -q -n netkit-ntalk-%{version}
%patch0 -p1 -b .time
%patch1 -p1 -b .strip
%patch2 -p1 -b .sockopt
%patch3 -p1 -b .i18n
%patch4 -p1 -b .resize
%patch5 -p1 -b .dos
%patch6 -p0 -b .man

cp %{SOURCE1} talk.xinetd
cp %{SOURCE2} ntalk.xinetd

%build
sh configure
perl -pi -e '
    s,^CC=.*$,CC=cc,;
    s,-O2,\$(RPM_OPT_FLAGS) -D_GNU_SOURCE,;
    s,^BINDIR=.*$,BINDIR=%{_bindir},;
    s,^MANDIR=.*$,MANDIR=%{_mandir},;
    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
    ' MCONFIG

%make

%install
install -d %{buildroot}%{_sysconfdir}/xinetd.d
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_mandir}/man8

make INSTALLROOT=%{buildroot} install MANDIR=%{_mandir}

install -m0644 talk.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/talk
install -m0644 ntalk.xinetd %{buildroot}%{_sysconfdir}/xinetd.d/ntalk

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9104 |21cr|talkfilters-2.3.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define libnamedev %mklibname -d %{name}

Summary:	GNU Talk filters
Name:		talkfilters
Version:	2.3.8
Release:	11
Source0:	%{name}-%{version}.tar.gz
Patch:		talkfilters-2.3.7-info-dir.patch
Patch1:		talkfilters-2.3.8-format-strings.patch
License:	GPLv2+
Group:		Toys
Url:		http://www.hyperrealm.com/talkfilters/talkfilters.html
BuildRequires:	texinfo
BuildRequires:	flex

%description
The GNU Talk Filters are filter programs that convert ordinary English
text into text that mimics a stereotyped or otherwise humorous
dialect. These filters have been in the public domain for many years,
but now for the first time they are provided as a single integrated
package. The filters include austro, b1ff, brooklyn, chef, cockney,
drawl, dubya, fudd, funetak, jethro, jive, kraut, pansy, pirate,
postmodern, redneck, valspeak, and warez. Each program reads from
standard input and writes to standard output. The package also
provides the filters as a C library, so they can be easily used by
other programs.

%package -n %{libname}
Summary:	GNU Talk filters shared library
Group:		System/Libraries

%description -n %{libname}
The GNU Talk Filters are filter programs that convert ordinary English
text into text that mimics a stereotyped or otherwise humorous
dialect. These filters have been in the public domain for many years,
but now for the first time they are provided as a single integrated
package. The filters include austro, b1ff, brooklyn, chef, cockney,
drawl, dubya, fudd, funetak, jethro, jive, kraut, pansy, pirate,
postmodern, redneck, valspeak, and warez. Each program reads from
standard input and writes to standard output. The package also
provides the filters as a C library, so they can be easily used by
other programs.

%package -n %{libnamedev}
Summary:	GNU Talk filters shared library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{libnamedev}
The GNU Talk Filters are filter programs that convert ordinary English
text into text that mimics a stereotyped or otherwise humorous
dialect. These filters have been in the public domain for many years,
but now for the first time they are provided as a single integrated
package. The filters include austro, b1ff, brooklyn, chef, cockney,
drawl, dubya, fudd, funetak, jethro, jive, kraut, pansy, pirate,
postmodern, redneck, valspeak, and warez. Each program reads from
standard input and writes to standard output. The package also
provides the filters as a C library, so they can be easily used by
other programs.

%prep
%setup -q
%patch -p1 -b .info-dir
%patch1 -p1

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%files
%doc README AUTHORS
%{_bindir}/*
%{_mandir}/man1/*

%files -n %{libname}
%{_libdir}/libtalkfilters.so.%{major}*

%files -n %{libnamedev}
%doc ChangeLog
%{_libdir}/libtalkfilters.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_infodir}/talkfilters.info*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9105 |21cr|tang-11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network Presence Binding Daemon
Name:		tang
Version:	11
Release:	2
License:	GPLv3+
Group:		Networking/Other
Url:		https://github.com/latchset/tang
Source0:	https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1:	tang.sysusers
BuildRequires:	asciidoc
BuildRequires:	coreutils
BuildRequires:	curl
BuildRequires:	git-core
BuildRequires:	jose
BuildRequires:	meson
BuildRequires:	socat
BuildRequires:	systemd-units
BuildRequires:	http-parser-devel
BuildRequires:	pkgconfig(jose)
BuildRequires:	pkgconfig(systemd)
Requires:	coreutils
Requires:	grep
Requires:	jose
Requires:	sed
Requires:	systemd
Requires(pre):	shadow-utils

%description
Tang is a small daemon for binding data to the presence of a third party.

%files
%doc README.md
%license COPYING
%attr(0700, %{name}, %{name}) %{_localstatedir}/db/%{name}
%{_bindir}/%{name}-show-keys
%{_libexecdir}/%{name}d
%{_libexecdir}/%{name}d-keygen
%{_libexecdir}/%{name}d-rotate-keys
%{_sysusersdir}/tang.conf
%{_unitdir}/%{name}d@.service
%{_unitdir}/%{name}d.socket

%pre
%sysusers_create_compat %{SOURCE1}
exit 0

%post
%systemd_post %{name}d.socket

# Let's make sure any existing keys are readable only
# by the owner/group.
if [ -d /var/db/tang ]; then
	for k in /var/db/tang/*.jwk; do
		test -e "${k}" || continue
		chmod 0440 -- "${k}"
	done
	for k in /var/db/tang/.*.jwk; do
		test -e "${k}" || continue
		chmod 0440 -- "${k}"
	done
	chown tang:tang -R /var/db/tang
fi

%preun
%systemd_preun %{name}d.socket

%postun
%systemd_postun_with_restart %{name}d.socket

#------------------------------------------------------------------

%prep
%autosetup -S git
sed -i "s:^systemunitdir.*:systemunitdir = '"%{_unitdir}"':" meson.build

%build
%meson
%meson_build

%install
%meson_install
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/tang.conf
mkdir -p %{buildroot}%{_localstatedir}/db/%{name}

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9106 |21cr|tanglet-1.6.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Word finding game
Name:		tanglet
Version:	1.6.1.1
Release:	2
Group:		Games/Puzzles
License:	GPLv3+
Url:		http://gottcode.org/%{name}/
Source0:	http://gottcode.org/%{name}/%{name}-%{version}-src.tar.bz2
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	qt5-linguist-tools
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util

%description
A single player word finding game based on Boggle. The object of the
game is to list as many words as you can before the time runs out.
There are several timer modes that determine how much time you start
with, and if you get extra time when you find a word.

You can join letters horizontally, vertically, or diagonally in any
direction to make a word, so as long as the letters are next to each
other on the board. However, you can not reuse the same letter cells
in a single word. Also, each word must be at least three letters on
a normal board, and four letters on a large board.

%files -f %{name}.lang
%{_gamesbindir}/%{name}
%{_datadir}/%{name}/data/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_appdatadir}/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man6/%{name}.6*
#--------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5 PREFIX=%{_prefix} \
    BINDIR=games
%make

%install
%makeinstall_qt PREFIX=%{_prefix} \
    BINDIR=games

rm -fr %{buildroot}%{_datadir}/pixmaps
rm -fr %{buildroot}%{_datadir}/tanglet/translations/tanglet_szl.qm

%{find_lang} %{name} --with-qt

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9107 |21cr|tango-generator-3.2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define name tango-generator
%define version 3.2.1
%define unmangled_version 3.2.1
%define release 7
%define _unpackaged_files_terminate_build 0

Summary: Tango Generator
Name: %{name}
Version: %{version}
Release: %{release}
License: GPLv2
Group: Graphical desktop/Other
Url: http://mejogid.ohallwebservices.com/
Source0: %{name}-%{unmangled_version}.tar.gz

BuildRequires:	pkgconfig(python)

Prefix: %{_prefix}
Requires: python >= 2.4
Requires: librsvg2
Requires: imagemagick
Requires: pygtk2.0 >= 2.6.3-2



%description
An icon theme creation application

%prep
%setup -q -n %{name}-%{unmangled_version}

%build
python setup.py build

%install
python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES



%files
%doc COPYING AUTHORS README
%_bindir/tango-generator
%_datadir/applications/tango-generator.desktop
%_iconsdir/*/*/*/*
%_datadir/mime/packages/*.xml
%_datadir/tango-generator
%py_puresitedir/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9108 |21cr|tango-icon-theme-0.8.90-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define extraname tango-icon-theme-extras
%define extraversion 0.1.0

Summary:	Tango icon theme
Name:		tango-icon-theme
Version:	0.8.90
Release:	9
License:	Public Domain
Group:		Graphical desktop/Other
Url:		http://tango.freedesktop.org/Tango_Icon_Library#Download
Source0:	http://tango.freedesktop.org/releases/%{name}-%{version}.tar.bz2
Source1:	http://tango.freedesktop.org/releases/%{extraname}-%{extraversion}.tar.gz
# http://www.gnome-look.org/content/show.php?content=41229
Source2:	tango_addon-0.5b.tar.bz2
Source3:	tango-icon-theme-xfce.tar.bz2
BuildRequires:	icon-naming-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	pkgconfig(ImageMagick)
Requires(post,preun):	gtk+2.0
Provides:	tango-icon-theme-kde = %{EVRD}
BuildArch:	noarch

%description
This is an icon theme that follows the Tango visual guidelines.
It bundles with the extra icon set and additional Mandriva icons.

%files
%defattr(-,root,root,-)
%doc README* AUTHORS* ChangeLog* COPYING
%doc tango_addon/readme.txt
%dir %{_datadir}/icons/Tango/
%{_datadir}/icons/Tango/index.theme
%{_datadir}/icons/Tango/16x16
%{_datadir}/icons/Tango/22x22
%{_datadir}/icons/Tango/24x24
%{_datadir}/icons/Tango/32x32
%{_datadir}/icons/Tango/scalable
%ghost %{_datadir}/icons/Tango/icon-theme.cache

%post
%update_icon_cache Tango

%postun
%clean_icon_cache Tango

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -a 2 -a 3
cp %{extraname}-%{extraversion}/README README.extra
cp %{extraname}-%{extraversion}/AUTHORS AUTHORS.extra
cp %{extraname}-%{extraversion}/ChangeLog ChangeLog.extra
mv "tango addon" tango_addon
chmod 644 tango_addon/readme.txt
rm tango_addon/apps/gtk-close.svg

%build
./configure --prefix=%{_prefix}
%make
cd %{extraname}-%{extraversion}
./configure --prefix=%{_prefix}
%make

%install
%makeinstall_std
cd %{extraname}-%{extraversion}
%makeinstall_std
cd ../tango_addon
install -m 644 apps/* %{buildroot}%{_datadir}/icons/Tango/scalable/apps
install -m 644 categories/* %{buildroot}%{_datadir}/icons/Tango/scalable/categories

cd ../tango-icon-theme-xfce
install -m 644 scalable/apps/* %{buildroot}%{_datadir}/icons/Tango/scalable/apps

touch %{buildroot}%{_datadir}/icons/Tango/icon-theme.cache

ln -s mozilla-firefox.svg %{buildroot}%{_iconsdir}/Tango/scalable/apps/firefox.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9109 |21cr|tanks-of-freedom-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   Tanks-of-Freedom

Summary:        Indie Turn Based Strategy in Isometric Pixel Art
Name:           tanks-of-freedom
Version:        0.7.0
Release:        1
Group:          Games/Strategy
# https://github.com/w84death/Tanks-of-Freedom/blob/master/LICENSE.md
License:        MIT 
Url:            http://tof.p1x.in
Source0:        https://github.com/w84death/%{oname}/archive/%{version}-beta/%{oname}-%{version}-beta.tar.gz
BuildRequires:  imagemagick
Requires:       godot2-runner

BuildArch:      noarch


%description
Classic turn-based strategy game with two armies fighting against each
other. Challenge yourself in campaign against AI or hot-seat battle
with a friend. Using easy map editor you can create any imaginable
scenario to play and share online for others to discover!

%files
%doc *.md
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
#-------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}-beta


# clean before copy
rm -rf .git{attributes,ignore}
find . -perm 0600 -exec chmod 0644 {} \;

%build

%install
# game data
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -a . %{buildroot}%{_gamesdatadir}/%{name}/

# godot2 wrapper
cat << EOF > %{name}.sh
#!/bin/sh
exec godot2-runner -path %{_gamesdatadir}/%{name} "\$@"
EOF
install -D -m755 %{name}.sh %{buildroot}%{_gamesbindir}/%{name}

# icons
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size assets/icons/icon1024.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

# menu entry
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Tanks of Freedom
GenericName=Turn-based strategy game
Comment=Indie Turn Based Strategy in Isometric Pixel Art
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;StrategyGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9110 |21cr|tap-plugins-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tom's Audio Processing plugins
Name:		tap-plugins
Version:	1.0.1
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://tomscii.sig7.se/tap-plugins/
#See also: https://github.com/tomszilagyi/tap-plugins
Source0:	https://github.com/tomszilagyi/tap-plugins/archive/refs/tags/%{name}-%{version}.tar.gz

%description
TAP-plugins is short for Tom's Audio Processing plugins. It is a bunch of
LADSPA plugins for digital audio processing, intended for use in a
professional DAW environment such as Ardour.

%files
%doc COPYING CREDITS README
%dir %{_libdir}/ladspa
%{_libdir}/ladspa/*.so
%{_datadir}/ladspa/rdf/*

#-----------------------------------------------------------------------------

%prep
%setup -q
perl -p -i -e "s/-O3/%{optflags}/g" Makefile


%build
%make


%install
mkdir -p %{buildroot}%{_libdir}/ladspa
make INSTALL_PLUGINS_DIR=%{buildroot}%{_libdir}/ladspa/ \
     INSTALL_LRDF_DIR=%{buildroot}%{_datadir}/ladspa/rdf/ install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9111 |21cr|targetcli-2.1.54-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname targetcli-fb

Name:           targetcli
License:        ASL 2.0
Summary:        An administration shell for storage targets
Group:          System/Configuration/Hardware
Version:        2.1.54
Release:        1
URL:            https://github.com/open-iscsi/%{oname}
Source:         %{url}/archive/v%{version}/%{oname}-%{version}.tar.gz
# Proposed upstream
## From: https://github.com/open-iscsi/targetcli-fb/pull/176
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-rtslib
Requires:       python3-configshell-fb
Requires:       python3-six
Requires:       python3-dbus
Requires:       python3-gobject


%description
An administration shell for configuring iSCSI, FCoE, and other
SCSI targets, using the TCM/LIO kernel target subsystem. FCoE
users will also need to install and use fcoe-utils.


%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_sysconfdir}/target/backup
mkdir -p %{buildroot}%{_mandir}/man8/
install -m 644 targetcli*.8 %{buildroot}%{_mandir}/man8/
mkdir -p %{buildroot}%{_unitdir}/
install -m 644 systemd/* %{buildroot}%{_unitdir}/

%files
%doc README.md
%license COPYING
%{python3_sitelib}/targetcli*
%{_bindir}/targetcli
%{_bindir}/targetclid
%{_mandir}/man8/targetcli*.8*
%{_unitdir}/*
%dir %{_sysconfdir}/target
%dir %{_sysconfdir}/target/backup


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9112 |21cr|targetd-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           targetd
License:        GPLv3
Summary:        Service to make storage remotely configurable
Group:          System/Configuration/Hardware
Version:        0.10.0
Release:        1
URL:            https://github.com/open-iscsi/targetd
Source:         https://github.com/open-iscsi/targetd/archive/v%{version}/targetd-%{version}.tar.gz
Source1:        targetd.service
BuildRequires:  python3-devel
Requires:       python3-PyYAML
Requires:       python3-setproctitle
Requires:       python3-rtslib
Requires:       nfs-utils
Requires:       btrfs-progs
Requires:       python3-blockdev
Requires:       libblockdev-lvm
BuildArch:      noarch

%description
targetd turns the machine into a remotely-configurable storage appliance.
It supports an HTTP/jsonrpc-2.0 interface to let a remote
administrator allocate volumes from an LVM volume group, and export
those volumes over iSCSI.

%prep
%setup -q

%build
%py3_build

%install
mkdir -p %{buildroot}%{_mandir}/man8/
mkdir -p %{buildroot}%{_mandir}/man5/
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/target/
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/targetd.service
install -m 644 targetd.yaml %{buildroot}%{_sysconfdir}/target/targetd.yaml
install -m 644 targetd.8 %{buildroot}%{_mandir}/man8/
install -m 644 targetd.yaml.5 %{buildroot}%{_mandir}/man5/
%py3_install

%post
%systemd_post targetd.service

%preun
%systemd_preun targetd.service

%postun
%systemd_postun_with_restart targetd.service

%files
%{_bindir}/targetd
%{_unitdir}/targetd.service
%{python3_sitelib}/targetd/
%{python3_sitelib}/*.egg-info
%license LICENSE
%doc README.md API.md client
%{_mandir}/man8/targetd.8*
%{_mandir}/man5/targetd.yaml.5*
%config(noreplace) %{_sysconfdir}/target/targetd.yaml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9113 |21cr|target-isns-0.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __cmake_in_source_build 1

Name:           target-isns
License:        GPLv2+
Summary:        An iSNS client for the Linux LIO iSCSI target
Group:          System/Configuration/Hardware
Version:        0.6.8
Release:        1
URL:            https://github.com/cvubrugier/target-isns
Source0:        https://github.com/open-iscsi/target-isns/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:         0001-disable-stringop-overflow-and-stringop-truncation-er.patch
BuildRequires:  cmake
BuildRequires:  systemd-units


%description
Target-isns is an Internet Storage Name Service (iSNS) client for the Linux
LIO iSCSI target. It allows registering LIO iSCSI targets with an iSNS server.

%prep
%autosetup -p1

%build
%cmake
%make

%install
%make_install -C build

install -D -m0644 target-isns.service %{buildroot}%{_unitdir}/target-isns.service
%post
%systemd_post target-isns.service

%preun
%systemd_preun target-isns.service

%postun
%systemd_postun_with_restart target-isns.service

%files
%{_bindir}/target-isns
%config(noreplace) %{_sysconfdir}/target-isns.conf
%{_mandir}/man8/target-isns.8*
%{_unitdir}/target-isns.service
%doc README.md
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9114 |21cr|task-2.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A command-line to do list manager
Name:		task
Version:	2.5.1
Release:	3
License:	MIT
Group:		Office
Url:		http://taskwarrior.org
Source0:	http://taskwarrior.org/download/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(uuid)
Provides:	taskwarrior = %{EVRD}

%description
Task is a command-line to do list manager. It has support for GTD functionality
and includes the following features: tags, colorful tabular output, reports and
graphs, lots of manipulation commands, low-level API, abbreviations for all
commands and options, multi-user file locking, recurring tasks.

%files
%{_bindir}/task
%{_mandir}/man1/task.1.xz
%{_mandir}/man5/taskrc.5.xz
%{_mandir}/man5/task-color.5.xz
%{_mandir}/man5/task-sync.5.xz
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_datadir}/bash-completion/completions/task
%{_datadir}/fish/completions/task.fish
%{_datadir}/vim/site/ftdetect/*.vim
%{_datadir}/vim/site/syntax/*.vim
%{_datadir}/zsh/site-functions/_task

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DTASK_RCDIR=%{_datadir}/%{name}
# Too greedy for resources
make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
install -m 644 scripts/bash/task.sh %{buildroot}%{_datadir}/bash-completion/completions/task

mkdir -p %{buildroot}%{_datadir}/zsh/site-functions/
install -m 644 scripts/zsh/_task %{buildroot}%{_datadir}/zsh/site-functions/

mkdir -p %{buildroot}%{_datadir}/fish/completions/
install -m 644 scripts/fish/task.fish %{buildroot}%{_datadir}/fish/completions/

mkdir -p %{buildroot}%{_datadir}/vim/site/ftdetect/
mkdir -p %{buildroot}%{_datadir}/vim/site/syntax/
install -m 644 scripts/vim/ftdetect/*vim %{buildroot}%{_datadir}/vim/site/ftdetect/
install -m 644 scripts/vim/syntax/*vim %{buildroot}%{_datadir}/vim/site/syntax/

rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9115 |21cr|task-codecs-2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Meta-package for codecs
Name:		task-codecs
Version:	2
Release:	4
License:	GPLv2+
Group:		Video
Requires:	task-codecs-minimal

Recommends:	gstreamer1.0-a52dec
Recommends:	gstreamer1.0-dts
Recommends:	gstreamer1.0-dv
Recommends:	gstreamer1.0-faad
Recommends:	gstreamer1.0-faac
Recommends:	gstreamer1.0-flac
Recommends:	gstreamer1.0-gsm
Recommends:	gstreamer1.0-lame
Recommends:	gstreamer1.0-libass
Recommends:	gstreamer1.0-libav
Recommends:	gstreamer1.0-mms
Recommends:	gstreamer1.0-mpeg
Recommends:	gstreamer1.0-mpeg2enc
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-good
Recommends:	gstreamer1.0-plugins-ugly
Recommends:	gstreamer1.0-pulse
Recommends:	gstreamer1.0-rtmp
Recommends:	gstreamer1.0-soup
Recommends:	gstreamer1.0-speex
Recommends:	gstreamer1.0-twolame
Recommends:	gstreamer1.0-vp8
Recommends:	gstreamer1.0-wavpack
Recommends:	gstreamer1.0-x264

%description
This meta-package is used to install a set of codecs.

%files

#---------------------------------------------------------------------

%package minimal
Summary:	Minimal needed codecs meta-package
Group:		Video

Recommends:	a52dec
Recommends:	gstreamer0.10-a52dec
Recommends:	gstreamer0.10-decoders
Recommends:	gstreamer0.10-decoders-audio
Recommends:	gstreamer0.10-dts
Recommends:	gstreamer0.10-dv
Recommends:	gstreamer0.10-faad
Recommends:	gstreamer0.10-faac
Recommends:	gstreamer0.10-flac
Recommends:	gstreamer0.10-gsm
Recommends:	gstreamer0.10-jp2k
Recommends:	gstreamer0.10-lame
Recommends:	gstreamer0.10-libass
Recommends:	gstreamer0.10-mms
Recommends:	gstreamer0.10-mpeg
Recommends:	gstreamer0.10-mpeg2enc
Recommends:	gstreamer0.10-musepack
Recommends:	gstreamer0.10-neon
Recommends:	gstreamer0.10-plugins-bad
Recommends:	gstreamer0.10-plugins-good
Recommends:	gstreamer0.10-plugins-ugly
Recommends:	gstreamer0.10-plugins-gl
Recommends:	gstreamer0.10-resindvd
Recommends:	gstreamer0.10-rsvg
Recommends:	gstreamer0.10-rtmp
Recommends:	gstreamer0.10-speex
Recommends:	gstreamer0.10-twolame
Recommends:	gstreamer0.10-voip
Recommends:	gstreamer0.10-vp8
Recommends:	gstreamer0.10-wavpack
Recommends:	gstreamer0.10-x264
Recommends:	gstreamer0.10-xvid
Recommends:	faac
Recommends:	faad2
Recommends:	x264
Recommends:	twolame
Recommends:	mpeg2dec
Recommends:	gpac
Recommends:	flac
Recommends:	wavpack

%ifarch x86
Recommends:	gstreamer0.10-pitfdll
%endif

%description minimal
This meta-package is used to install a minimal set of codecs.

%files minimal

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9116 |21cr|task-compiz-stable-2019.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		task-compiz-stable
Version:	%{rosa_release}
Release:	3
Summary:	Meta task for stable version of Compiz
License:	GPLv2
Group:		System/X11
URL:		http://www.compiz.org/
Requires:	compiz0.8
Requires:	ccsm0.8
Requires:	compiz-fusion
Requires:	compiz-fusion-plugins-main
Requires:	compiz-fusion-plugins-extra
Requires:	emerald
Requires:	emerald-themes
Requires:	fusion-icon
Conflicts:	compiz > 0.9
BuildArch:	noarch

%description
Meta task for stable version of Compiz.

%prep
# nothing

%build
# nothing

%install
# nothing

%files
# nothing
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9117 |21cr|task-edu-1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Task packages for games
Name: task-edu
Version: 1
Release: 5
License: GPL
Group:   Education
Url: http://wiki.mandriva.com/en/Docs
BuildArch: noarch
Recommends: kdeedu4
Recommends: educazionik
Recommends: kdegames4
Recommends: semantik
Recommends: tuxpaint
Recommends: tuxpaint-stamps
Recommends: scribus
Recommends: celestia
Recommends: stellarium
Recommends: drgeo
Recommends: freemind
Recommends: gcompris gcompris-music

%description
This task package Suggests edu packages selected by Mandriva.

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9118 |21cr|task-enlightenment-0.24.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for the Enlightenment
Name:		task-enlightenment
Version:	0.24.2
Release:	2
Epoch:		1
License:	BSD
Group:		Graphical desktop/Enlightenment
Url:		http://www.rosalinux.com
Requires:	%{name}-minimal = %{EVRD}
Requires:	econnman
# Seems to be useless for now
#Requires:	emote
Requires:	emprint
Requires:	ephoto
Requires:	epour
Requires:	evisum
Requires:	python3-efl
Requires:	rage
Requires:	terminology
# prefered apps
# Suggests:	lxdm
Obsoletes:	task-e17 < 1:0.18
Provides:	task-e21 = %{EVRD}
Provides:	task-e20 = %{EVRD}
Provides:	task-e21 = %{EVRD}
Provides:	task-e22 = %{EVRD}
Provides:	task-e23 = %{EVRD}
Provides:	task-e19 = %{EVRD}
Provides:	task-e18 = %{EVRD}
Provides:	task-e17 = %{EVRD}
BuildArch:	noarch

%description
This package is a meta-package, meaning that its purpose is to contain
all Enlightenment applications and libraries.

%files

#----------------------------------------------------------------------------

%package minimal
Summary:	Metapackage minimal for the Enlightenment
License:	BSD
Group:		Graphical desktop/Enlightenment
Requires:	e
Requires:	ecore
Requires:	edje
Requires:	eet
Requires:	eeze
Requires:	efreet
Requires:	eldbus
Requires:	elementary
Requires:	elua
Requires:	embryo
Requires:	emotion
Requires:	ethumb
Requires:	evas
Obsoletes:	e_dbus < 1.8.0
Obsoletes:	editje < 0.9.3-1
Obsoletes:	edje_viewer < 1.1.1
Obsoletes:	enki < 0.6.1
Obsoletes:	enlil < 0.6.1
Obsoletes:	exalt < 0.9-2
Obsoletes:	expedite < 1.7.11
Obsoletes:	task-e17-minimal < 1:0.18
Provides:	task-e21-minimal = %{EVRD}
Provides:	task-e20-minimal = %{EVRD}
Provides:	task-e21-minimal = %{EVRD}
Provides:	task-e22-minimal = %{EVRD}
Provides:	task-e23-minimal = %{EVRD}
Provides:	task-e19-minimal = %{EVRD}
Provides:	task-e18-minimal = %{EVRD}
Provides:	task-e17-minimal = %{EVRD}
BuildArch:	noarch

%description minimal
This package is a meta-package, meaning that its purpose is to contain
minimal set of Enlightenment applications and libraries.

%files minimal

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9119 |21cr|taskflow-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Taskflow helps you quickly write parallel and heterogeneous task programs in modern C++
Name:		taskflow
Version:	3.4.0
Release:	1
License:	MIT
Group:		Development/C++
Url:		https://github.com/taskflow/taskflow
Source0:	https://github.com/taskflow/taskflow/archive/v3.4.0.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
Taskflow helps you quickly write parallel and heterogeneous task programs in modern C++

%files
%doc README*
%license LICENSE
%{_includedir}/%{name}
%{_libdir}/cmake/Taskflow

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
    -DTF_BUILD_EXAMPLES=OFF \
    -DTF_BUILD_TESTS=OFF
%make

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9120 |21cr|task-games-2021.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Task packages for games
Name:    task-games
Version: %{rosa_release}
Release: 14
License: GPL
Group:   Games/Other
Url: http://wiki.mandriva.com/en/Docs/Games
BuildArch: noarch
Recommends: armagetron
Recommends: blobby
Recommends: bobobot
Recommends: bos
Recommends: bzflag
Recommends: chromium
Recommends: crack-attack crack-attack-music crack-attack-sounds
Recommends: egoboo
Recommends: fillets-ng
Recommends: flightgear
Recommends: freeciv-client
Recommends: frozen-bubble
Recommends: foobillard
Recommends: gcompris
Recommends: gcompris-sounds-da gcompris-sounds-de gcompris-sounds-en gcompris-sounds-es gcompris-sounds-eu
Recommends: gcompris-sounds-fi gcompris-sounds-fr gcompris-sounds-hu gcompris-sounds-it
Recommends: gcompris-sounds-nl gcompris-sounds-pt gcompris-sounds-ru gcompris-sounds-sv
Recommends: gl-117
Recommends: glest
Recommends: globulation2
Recommends: gtetrinet
Recommends: lincity-ng
Recommends: maniadrive
Recommends: netpanzer
Recommends: neverball
Recommends: nexuiz-sdl
Recommends: openarena
Recommends: openmortal
Recommends: powermanga
Recommends: ppracer
Recommends: prboom
Recommends: ri-li
Recommends: scourge
Recommends: slune
Recommends: starfighter
Recommends: stepmania
Recommends: stepmania-stepmix1
Recommends: supertux
Recommends: supertuxkart
Recommends: toppler
Recommends: torcs
Recommends: tremulous tremulous-maps
Recommends: tuxpuck
Recommends: vegastrike
Recommends: vdrift
Recommends: warzone2100
Recommends: wesnoth
Recommends: widelands
Recommends: wormux
Recommends: xmoto

%description
This task package Suggests game packages selected by Mandriva.

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9121 |21cr|task-i3-2021.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define cfg rosa-i3-configs
Summary:	Metapackage for the i3 window manager
Name:		task-i3
Version:	%{rosa_release}
Release:	5
License:	GPLv2+
Group:		System/X11
Url:		http://www.rosalinux.com
Source0:	i3
Source1:	i3lib
Source2:	config
Source3:	polybar.sh
Source4:	polybar.cfg
Source5:	rofi.cfg
Source6:	compton.cfg
Source7:	Xresources
Source8:	i3rosa.desktop
Source9: 	i3rosa.po
Source10:	https://raw.githubusercontent.com/gryf/tabbedalt/master/tabbedalt
Source11:	monitors

BuildRequires:	/usr/bin/msgfmt

Requires:	i3-minimal
Recommends:	(chromium-browser-stable or firefox)
Recommends:	gparted
Recommends:	l3afpad
Recommends:	lumina-calculator
Recommends:	(thunar or pcmanfm or caja)
Recommends:	(mpv or mplayer)
Recommends:	(gpicview or geeqie or xviewer)
Recommends:	(file-roller or xarchiver)
# We use GDM because of good support of corporate features, e.g. smartcard login
Recommends:	(gdm or lightdm)
# Pull config to set XFCE as the default session in XFCE if GDM is installed
Recommends:	(rosa-xfce-config-gdm if gdm)
Recommends:	rosa-icons
# default mail client in rosa-xfce-config
Recommends:	thunderbird

# Install GTK+3 interface for LibreOffice if it is installed
Recommends:	(libreoffice-gnome if libreoffice-common)

# GUI for Bluetooth if daemon is installed
Recommends:	(blueman if bluez)

# GUI for NetworkManager
Recommends:	(networkmanager-applet if networkmanager)

# Qt5 will use it by default if it is installed and will use fonts and file dialogs from GTK+3
# https://github.com/qt/qtbase/blob/5.15/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp#L849-L882
Recommends:	qt5-platformtheme-gtk3
# translations for it and other Qt apps

Provides:	i3rosa = %{EVRD}

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies for running the ROSA i3 WM.


%files

#----------------------------------------------------------------------------

%package minimal
Summary:	Minimal dependencies needed for rosa i3 wm
Group:		System/X11
Url:		http://www.rosalinux.com
Requires:	%{cfg} == %{EVRD}
Requires:	i3-wm
Requires:	polybar
Requires:	x11-font-siji-misc
Requires:	fonts-ttf-dejavu
Requires:	rofi
Requires:	libnotify
Requires:	rosa-i3-configs
Requires:	dex
Requires:	rxvt-unicode
Requires:	feh
Requires:	compton
Requires:	xdotool
Requires:	zenity

Provides:	i3-minimal = %{EVRD}

%description minimal
Deps for rosa-i3-configs

%files minimal

#----------------------------------------------------------------------------

%package -n %{cfg}
Summary:	Package with rosa configs for i3, rofi, polybar
Group:		System/X11

%description -n %{cfg}
Package with rosa configs for i3, rofi, polybar to use i3 WM as DE

%files -n %{cfg}
%{_bindir}/i3rosa
%dir %{_datadir}/%{cfg}
%{_datadir}/%{cfg}/*
%{_datadir}/xsessions/i3rosa.desktop
%{_localedir}/ru/LC_MESSAGES/i3rosa.mo
#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/%{cfg}
mkdir -p %{buildroot}/%{_datadir}/xsessions
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/

install -m 755 %{SOURCE0} %{buildroot}/%{_bindir}/i3rosa

install -m 755 %{SOURCE1} %{buildroot}/%{_datadir}/%{cfg}/
install -m 644 %{SOURCE2} %{buildroot}/%{_datadir}/%{cfg}/
install -m 755 %{SOURCE3} %{buildroot}/%{_datadir}/%{cfg}/
install -m 644 %{SOURCE4} %{buildroot}/%{_datadir}/%{cfg}/
install -m 644 %{SOURCE5} %{buildroot}/%{_datadir}/%{cfg}/
install -m 644 %{SOURCE6} %{buildroot}/%{_datadir}/%{cfg}/
install -m 644 %{SOURCE7} %{buildroot}/%{_datadir}/%{cfg}/
install -m 644 %{SOURCE8} %{buildroot}/%{_datadir}/xsessions/
install -m 644 %{SOURCE10} %{buildroot}/%{_datadir}/%{cfg}/
install -m 755 %{SOURCE11} %{buildroot}/%{_datadir}/%{cfg}/

msgfmt -v %{SOURCE9} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/i3rosa.mo


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9122 |21cr|task-kernel_mcst-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Meta package to install and update Linux kernel for elbrus
Name:		task-kernel_mcst
Version:	0.5
Release:	1
License:	GPLv3
Group:		System/Kernel and hardware
Url:		https://abf.io/import/task-kernel_mcst

# Be ok with any kernel, but prefer 6.1 if another is not explicitly installed
Requires:	meta(kernel)
Suggests:	meta(kernel) = 5.4

ExclusiveArch:	%{e2k}
Epoch:		1

# Force dnf to keep multiple (default 3) versions of this
# empty meta package installed. If we decide to migrate users from
# e.g. kernel 5.10 to 5.20, this will allow to:
# 1) recommends a new kernel;
# 2) keep older one installed and do not orphan it,
#    because the version of the meta package which pulled it will
#    be kep installed.
# Obsoletes can be used to force removal of installonlypkgs (?).
Provides: installonlypkg(kernel) = %{EVRD}.meta

%define _description \
Meta package to install and update Linux kernel.\
\
It may be needed to add additional binary kernel modules\
or even migrate users to a new mahor kernel version inside\
the release cycle of a ROSA platform. This meta package\
allows to centrally control which kernel packages\
are recommended (but not forced!) to be installed.\
\
Usage of installonlypkg() here allows to keep multiple\
version of this meta package installed and not remove an\
older major kernel version as an orphan if we decide to\
migrate to a newer one\
(see dnf options installonlypkgs and installonly_limit).\
\
%{nil}

%description
%_description

%files
# empty files, keep empty to allow coninstalling multiple versions

#-----------------------------------------------------------

%package 5.4-generic
Summary:	Meta package for Linux kernel 5.4
# a dummy provide used in the main package
Provides:	meta(kernel) = 5.4
Provides:	task-kernel-5.4-generic

# installonlypkg() is NOT needed this for this subpackage!
# Requires make more sense than Recommends here
Requires:	kernel-5.4-generic

# More binary kmods for different WiFis etc will be added here
Recommends:	kernel-module-8821ce-5.10-generic
Recommends:	kernel-module-8821cu-5.10-generic
Recommends:	kernel-module-88x2bu-5.10-generic
Recommends:	kernel-module-8812au-5.10-generic
Recommends:	kernel-module-8821au-5.10-generic
Recommends:	kernel-module-8814au-5.10-generic
Recommends:	kernel-module-rtk_btusb-5.10-generic
Recommends:	kernel-module-wl-5.10-generic
Recommends:	kernel-modules-rtw88-5.10-generic
Recommends:	kernel-modules-rtw89-5.10-generic

%description 5.4-generic
%_description
This meta package pulls Linux kernel v5.4.

%files 5.4-generic
# empty

#-----------------------------------------------------------

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9123 |21cr|task-lamp-2021.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		task-lamp
Version:	%{rosa_release}
Release:	9
Summary:	Metapackage for the Linux, Apache, MySQL, PHP and Perl server
Group:		System/Servers
License:	GPL
Requires:	task-lamp-php
Requires:	task-lamp-perl
Requires:	mysql
Recommends:	task-lamp-extras

BuildArch:	noarch

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies for running LAMP-server, allowing easy installation of a 
comprehensive LAMP testing/development setup. For a production server, 
you may prefer to install a subset of the dependencies.

%package php
Summary:	Metapackage for the Linux, Apache, MySQL, PHP server
Group:		System/Servers
License:	GPL
Requires:	apache-base
Recommends:	apache-mpm-prefork
Requires:	apache-mod_php
Requires:	freetype
Requires:	php-mysql
#Suggests:	php-pear
Requires:	php-gettext
Requires:	php-xml
Requires:	php-imap
Requires:	php-mcrypt
Requires:	php-gd
Requires:	php-sqlite3
Recommends:	mysql
Recommends:	phpmyadmin
# Eaccelerator is not in a good shape and has been moved to contrib
# Suggests:	php-eaccelerator-admin

%description php
This package is a meta-package, meaning that its purpose is to contain
dependencies for running LAMP (PHP) server

%package perl
Summary:	Metapackage for the Linux, Apache, MySQL, Perl server
Group:		System/Servers
License:	GPL
Requires:	apache-base
Requires:	apache-mod_perl
Requires:	perl-DBD-mysql
#Requires:	perl-DBD-SQLite2 ??
Recommends:	mysql

%description perl
This package is a meta-package, meaning that its purpose is to contain
dependencies for running LAMP (Perl) server

%package extras
Summary:	Metapackage for the Linux, Apache, MySQL, PHP/Perl/Python extras
Group:		System/Servers
License:	GPL
Requires:	apache-mod_userdir
Requires:	apache-mod_dav
Recommends:	proftpd

%description extras
This package is a meta-package, meaning that its purpose is to add 
additional packages for a LAMP setup that are not strictly required, 
but are often provided in other similar bundles. These extra packages
are usually a convenience, and not recommended for use on production
servers without securing them.

%files

%files php

%files perl

%files extras

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9124 |21cr|task-lxqt-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for the LXQt (LXDE-Qt) desktop environment
Name:		task-lxqt
Version:	0.14.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://lxqt.org/
# LXQt itself
Requires:	lxqt-about >= %{version}
Requires:	lxqt-admin >= %{version}
Requires:	lxqt-themes >= %{version}
Requires:	lxqt-config >= %{version}
Requires:	lxqt-globalkeys >= %{version}
Requires:	lxqt-notificationd >= %{version}
Requires:	lxqt-openssh-askpass >= %{version}
Requires:	lxqt-panel >= %{version}
Requires:	lxqt-policykit >= %{version}
Requires:	lxqt-powermanagement >= %{version}
Requires:	lxqt-runner >= %{version}
Requires:	lxqt-session >= %{version}
Requires:	lxqt-sudo >= %{version}
Requires:	pcmanfm-qt >= %{version}
Requires:	pavucontrol-qt
Requires:	qt5-platformtheme-lxqt >= %{version}
# Other stuff
#Suggests:	compton-conf
Requires:	drakconf-lxqt
Suggests:	easypaint
Requires:	lximage-qt
Suggests:	lxqt-archiver
#Suggests:	lxqt-connman-applet
Requires:	lxqt-kcm-integration
Requires:	lxqt-wallet
Requires:	newmoon
Suggests:	newmoon-ru
Requires:	obconf-qt
Requires:	openbox
Suggests:	picom
Requires:	qps
Requires:	qterminal
Suggests:	rosa-imagewriter-lxqt
Suggests:	screengrab
Suggests:	trojita
BuildArch:	noarch

Obsoletes:	lxqt-common < 0.12.0
Conflicts:	lxqt-common < 0.12.0

%description
This package is a meta-package, meaning that its purpose is to contain
all LXQt applications and libraries.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9125 |21cr|task-mate-1.20.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for MATE desktop environment
Name:		task-mate
Version:	1.20.0
Release:	14
License:	GPLv2+
Group:		Graphical desktop/MATE
Recommends:	%{name}-minimal >= %{version}
Recommends:	atril >= %{version}
Recommends:	caja-dropbox >= %{version}
Recommends:	caja-image-converter >= %{version}
Recommends:	caja-open-terminal >= %{version}
Recommends:	caja-sendto >= %{version}
Recommends:	caja-sendto-pidgin >= %{version}
%if %rpm5
Recommends:	caja-sendto-upnp >= %{version}
%endif
Recommends:	caja-share >= %{version}
Recommends:	caja-wallpaper >= %{version}
Recommends:	dconf-editor
%if %rpm5
Recommends:	drakconf-mate
%endif
Recommends:	engrampa >= %{version}
Recommends:	eom >= %{version}
Recommends:	gparted
Recommends:	marco >= %{version}
Recommends:	mate-calc >= %{version}
Recommends:	mate-icon-theme-faenza >= %{version}
Recommends:	mate-icon-theme-menta
Recommends:	mate-indicator-applet >= %{version}
Recommends:	mate-media >= %{version}
Recommends:	mate-neru-canta-theme
Recommends:	mate-neru-icon-classic-theme
Recommends:	mate-netbook >= %{version}
Recommends:	mate-notification-daemon >= %{version}
Recommends:	mate-polkit >= %{version}
Recommends:	mate-screensaver >= %{version}
Recommends:	mate-sensors-applet >= %{version}
Recommends:	mate-themes >= %{version}
Recommends:	mate-user-share >= %{version}
Recommends:	mate-utils >= %{version}
Recommends:	mozo >= %{version}
Recommends:	networkmanager-applet
%if %rpm5
Recommends:	python-caja >= %{version}
%else
Recommends:	python3-caja >= %{version}
%endif
Recommends:	vorbis-tools
Recommends:	deadbeef
Recommends:	mucharmap
Recommends:	remmina
Recommends:	remmina-plugins-rdp
Recommends:	remmina-plugins-vnc
Recommends:	totem-gtk2
Recommends:	transmission
# pam_gnome_keyring is in /etc/pam.d/* of GDM, SDDM etc.
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14483
Recommends:	gnome-keyring
BuildArch:	noarch

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies for running the MATE.

%files

#----------------------------------------------------------------------------

%package minimal
Summary:	Minimal dependencies needed for MATE desktop
Group:		Graphical desktop/MATE
Recommends:	accountsservice
Recommends:	blueman
Recommends:	caja >= %{version}
Recommends:	libgnomesu
Recommends:	marco >= %{version}
Recommends:	mate-applets >= %{version}
Recommends:	mate-accessibility
Recommends:	mate-backgrounds >= %{version}
Recommends:	mate-common >= %{version}
Recommends:	mate-control-center >= %{version}
Recommends:	mate-desktop >= %{version}
Recommends:	mate-icon-theme >= %{version}
Recommends:	mate-menus >= %{version}
Recommends:	mate-panel >= %{version}
Recommends:	mate-power-manager >= %{version}
Recommends:	mate-session-manager >= %{version}
Recommends:	mate-settings-daemon >= %{version}
Recommends:	mate-system-monitor >= %{version}
Recommends:	mate-terminal >= %{version}
Recommends:	mate-user-guide >= %{version}
Recommends:	parcellite
Recommends:	pluma >= %{version}
Recommends:	preload
Recommends:	rosa-icons-2021-mate
Recommends:	rosa-icons-2021-mate-dark
Recommends:	task-pulseaudio
Recommends:	task-x11

%description minimal
This package is a meta-package, meaning that its purpose is to contain
minimal dependencies for running a minimal MATE desktop environment.

%files minimal

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9126 |21cr|task-MRB-2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for MRB
Name:		task-MRB
Version:	2
Release:	1
License:	GPL
Group:		Graphical desktop/Other
# filter some linting .
Source100:	%{name}.rpmlintrc
Requires:	task-MRB-tty
Recommends:	latte-dock
Recommends:	rosalinuxro-repo
Recommends:	qmplay2
Recommends:	plasma5-applet-panon
Recommends:	kvantum
Recommends:	plasma5-applet-virtual-desktop-bar
Recommends: get-skypeforlinux
Recommends:	cinelerra-gg
Recommends:	otter-browser
Recommends:	telegram-desktop
Recommends:	kmail
Recommends:	mpv
Recommends:	gimp
Recommends:	meld
Recommends:	jag
Recommends:	p7zip
Recommends:	task-printing-minimal
Recommends:	task-printing-server
Recommends:	screenfetch

# if restricted is available
Recommends:	libdvdcss

BuildArch:	noarch

Provides:	task-MRB = %{EVRD}

%description
This package is a meta-package, meaning that its purpose is to contain
the Rosalinux.Ro (MRB) GUI apps customizations.

%files

#---------------------------------------------------------------------

%package tty
Summary:	This is tty dependencies needed by %{name} package
Group:		Graphical desktop/Other
Recommends:	fbterm
Recommends:	fbv
Recommends:	byobu
Recommends:	lynx
Recommends:	centerim5
Recommends:	youtube-dl
Recommends:	alpine
Recommends:	mc
Recommends:	cmatrix
Recommends:	caca-utils
Recommends:	asciiquarium
Recommends:	dvtm
Recommends:	fbida
Recommends:	fbcat
Recommends:	inxi
Recommends:	bsd-games
Recommends:	htop
# rosalinuxro
Recommends:	moc

%description tty
This package is a meta-package, meaning that its purpose is to contain
the Rosalinux.Ro (MRB) CLI && tty apps customizations.

%files tty

#--------------------------------------------------------------------

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9127 |21cr|task-nagios-0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for Nagios(tm)

Name:		task-nagios
Version:	0
Release:	10
Group:		System/Servers
License:	GPL
BuildArch:	noarch
Requires:	nagios
Requires:	nagios-conf
Requires:	nagios-imagepaks
Requires:	nagios-plugins
Requires:	nagios-www
Requires:	nagios-check_breeze
Requires:	nagios-check_by_ssh
Requires:	nagios-check_cluster
Requires:	nagios-check_dhcp
Requires:	nagios-check_dig
Requires:	nagios-check_disk
Requires:	nagios-check_disk_smb
Requires:	nagios-check_dns
Requires:	nagios-check_dummy
Requires:	nagios-check_file_age
Requires:	nagios-check_flexlm
Requires:	nagios-check_fping
Requires:	nagios-check_game
Requires:	nagios-check_hpjd
Requires:	nagios-check_http
Requires:	nagios-check_icmp
Requires:	nagios-check_ide_smart
Requires:	nagios-check_ifoperstatus
Requires:	nagios-check_ifstatus
Requires:	nagios-check_ircd
Requires:	nagios-check_ldap
Requires:	nagios-check_load
Requires:	nagios-check_log
Requires:	nagios-check_mailq
Requires:	nagios-check_mysql
Requires:	nagios-check_mysql_query
Requires:	nagios-check_nagios
Requires:	nagios-check_netapp
Requires:	nagios-check_nt
Requires:	nagios-check_ntp
Requires:	nagios-check_ntp_peer
Requires:	nagios-check_ntp_time
Requires:	nagios-check_nwstat
Requires:	nagios-check_oracle
Requires:	nagios-check_overcr
Requires:	nagios-check_pgsql
Requires:	nagios-check_ping
Requires:	nagios-check_procs
Requires:	nagios-check_radius
Requires:	nagios-check_real
Requires:	nagios-check_rpc
Requires:	nagios-check_sensors
Requires:	nagios-check_smtp
Requires:	nagios-check_snmp
Requires:	nagios-check_ssh
Requires:	nagios-check_swap
Requires:	nagios-check_tcp
Requires:	nagios-check_time
Requires:	nagios-check_ups
Requires:	nagios-check_users
Requires:	nagios-check_wave

%description
This package is a meta-package that will suck in most of the needed packages
to run Nagios(tm) seamlessly.

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9128 |21cr|task-nodejs-es6-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dversion 0.1.1
%define es5version 0.10.11
%define itversion 2.0.0 
%define mapversion 0.1.2
%define setversion 0.1.3
%define symversion 3.0.2
%define wmapversion 2.0.1
%define eeversion 0.3.4

Summary:        Task-es5 and 6
Name:           task-nodejs-es6
Version:        1.0
Release:        4
License:        MIT
Group:          Development/Other
Url:            https://www.npmjs.com/
Source0:https://github.com/medikoo/d/archive/v0.1.1.tar.gz
Source1:https://github.com/medikoo/es5-ext/archive/v0.10.11.tar.gz
Source2:https://github.com/medikoo/es6-iterator/archive/v2.0.0.tar.gz
Source3:https://github.com/medikoo/es6-map/archive/v0.1.2.tar.gz
Source4:https://github.com/medikoo/es6-set/archive/v0.1.3.tar.gz
Source5:https://github.com/medikoo/es6-symbol/archive/v3.0.2.tar.gz
Source6:https://github.com/medikoo/es6-weak-map/archive/v2.0.1.tar.gz
Source7:https://github.com/medikoo/event-emitter/archive/v0.3.4.tar.gz  

BuildRequires:  nodejs-packaging
BuildArch:      noarch

%description
This is build as task because are all circular among each other,
and I don't know where to open the circular chain.
#===================================================================
%package -n nodejs-d
Summary:        Property descriptor factory
Version:        %{dversion}
License:        MIT
BuildArch:      noarch

%description -n nodejs-d
%{summary}.

%files -n nodejs-d
%doc d-%{dversion}/CHANGES d-%{dversion}/LICENCE d-%{dversion}/README.md
%{nodejs_sitelib}/d

#------------------------------------------------------------------
%package -n nodejs-es5-ext

Summary:        ECMAScript extensions and shims
Version:        %{es5version}
License:        MIT
BuildArch:      noarch

%description -n nodejs-es5-ext
%{summary}.

%files -n nodejs-es5-ext
%doc es5-ext-%{es5version}/LICENSE es5-ext-%{es5version}/README.md es5-ext-%{es5version}/CHANGES
%{nodejs_sitelib}/es5-ext

#------------------------------------------------------------------
%package -n nodejs-es6-iterator

Summary:        Iterator abstraction based on ES6 specification
Version:        %{itversion}
License:        MIT
BuildArch:      noarch

%description -n nodejs-es6-iterator
%{summary}.

%files -n nodejs-es6-iterator
%doc es6-iterator-%{itversion}/LICENSE es6-iterator-%{itversion}/README.md es6-iterator-%{itversion}/CHANGES
%{nodejs_sitelib}/es6-iterator
#------------------------------------------------------------------
%package -n nodejs-es6-map

Summary:        ECMAScript6 Map polyfill
Version:        %{mapversion}
License:        MIT
BuildArch:      noarch

%description -n nodejs-es6-map
%{summary}.

%files -n nodejs-es6-map
%doc es6-map-%{mapversion}/LICENSE es6-map-%{mapversion}/README.md es6-map-%{mapversion}/CHANGES
%{nodejs_sitelib}/es6-map
#------------------------------------------------------------------
%package -n nodejs-es6-set

Summary:        ECMAScript6 Set polyfill
Version:        %{setversion}
License:        MIT
BuildArch:      noarch

%description -n nodejs-es6-set
%{summary}.

%files -n nodejs-es6-set
%doc es6-set-%{setversion}/LICENSE es6-set-%{setversion}/README.md es6-set-%{setversion}/CHANGES
%{nodejs_sitelib}/es6-set
#------------------------------------------------------------------
%package -n nodejs-es6-symbol

Summary:        ECMAScript 6 Symbol polyfill   
Version:        %{symversion}
License:        MIT
BuildArch:      noarch

%description -n nodejs-es6-symbol
%{summary}.

%files -n nodejs-es6-symbol
%doc es6-symbol-%{symversion}/LICENSE es6-symbol-%{symversion}/README.md es6-symbol-%{symversion}/CHANGES
%{nodejs_sitelib}/es6-symbol
#------------------------------------------------------------------

%package -n nodejs-es6-weak-map

Summary:        ECMAScript6 WeakMap polyfill
Version:        %{wmapversion}
License:        MIT
BuildArch:      noarch

%description -n nodejs-es6-weak-map
%{summary}.

%files -n nodejs-es6-weak-map
%doc es6-weak-map-%{wmapversion}/LICENSE es6-weak-map-%{wmapversion}/README.md es6-weak-map-%{wmapversion}/CHANGES
%{nodejs_sitelib}/es6-weak-map
#------------------------------------------------------------------

%package -n nodejs-event-emitter

Summary:        Environment agnostic event emitter
Version:        %{eeversion}
License:        MIT
BuildArch:      noarch

%description -n nodejs-event-emitter
%{summary}.

%files -n nodejs-event-emitter
%doc event-emitter-%{eeversion}/LICENSE event-emitter-%{eeversion}/README.md event-emitter-%{eeversion}/CHANGES
%{nodejs_sitelib}/event-emitter
#------------------------------------------------------------------
%prep
### d
%setup -q -c -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7


%build

%install
mkdir -p \
  %{buildroot}%{nodejs_sitelib}/{d,es5-ext,es6-iterator,es6-map,es6-set,es6-symbol,es6-weak-map,event-emitter}

### d
pushd d-%{dversion}
mkdir -p node_modules
ln -sf ../../{es5-ext,es6-iterator,es6-symbol} node_modules
cp -pr package.json *.js node_modules %{buildroot}%{nodejs_sitelib}/d
popd

### es5-ext
pushd es5-ext-%{es5version}
mkdir -p node_modules
ln -sf ../../{d,es6-iterator,es6-symbol} node_modules 
cp -pr package.json array error *.js iterable math object string boolean date function number reg-exp node_modules  %{buildroot}%{nodejs_sitelib}/es5-ext
popd

### es6-iterator
pushd es6-iterator-%{itversion}
mkdir -p node_modules
ln -sf ../../{d,es5-ext,es6-symbol} node_modules
cp -pr package.json *.js node_modules %{buildroot}%{nodejs_sitelib}/es6-iterator
popd

### es6-map
pushd es6-map-%{mapversion}
mkdir -p node_modules
ln -sf ../../{d,es5-ext,es6-iterator,es6-set,es6-symbol,event-emitter} node_modules
cp -pr package.json *.js primitive lib node_modules \
  %{buildroot}%{nodejs_sitelib}/es6-map
popd

### es6-set
pushd es6-set-%{setversion}
mkdir -p node_modules
ln -sf ../../{d,es5-ext,es6-iterator,es6-symbol,event-emitter} node_modules
cp -pr package.json *.js primitive lib ext node_modules \
  %{buildroot}%{nodejs_sitelib}/es6-set
popd

### es6-symbol
pushd es6-symbol-%{symversion}
mkdir -p node_modules
ln -sf ../../{d,es5-ext,es6-iterator} node_modules
cp -pr package.json *.js  node_modules %{buildroot}%{nodejs_sitelib}/es6-symbol
popd

### es6-weak-map
pushd es6-weak-map-%{wmapversion}
mkdir -p node_modules
ln -sf ../../{d,es5-ext,es6-iterator,es6-symbol} node_modules
cp -pr package.json *.js  node_modules \
  %{buildroot}/%{nodejs_sitelib}/es6-weak-map
popd

### event-emitter
pushd event-emitter-%{eeversion}
mkdir -p node_modules
ln -sf ../../{d,es5-ext,es6-iterator,es6-symbol} node_modules
cp -pr package.json *.js  node_modules \
  %{buildroot}%{nodejs_sitelib}/event-emitter
popd  

#------------------------------------------------------------------

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9129 |21cr|task-sound-studio-0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		task-sound-studio
Version:	0.3
Release:	14
Summary:	Meta package for Sound Studio and Music Production
Group:		Sound
License:	GPLv2+

## Packages organized by groups and divided in Suggests and Requires
####################################################################

# Jack engine-related
Requires:	jack
Requires:	jack-example-clients
Requires:	laditools
Requires:	qjackctl
Recommends:	ladish
Recommends:	ac3jack
Recommends:	ffado

# Bridges to other sound systems
Recommends:	tritonus-fluidsynth
Requires:	jackasyn

# Basic MIDI utilities
Recommends: a2jmidid
Recommends: vmpk
Recommends: qmidiroute
Recommends: qmidiarp

# Soundfont-related
Requires: fluid-soundfont-common
Requires: fluid-soundfont-gm
Requires: fluid-soundfont-gs
Requires: soundfont-utils
Recommends: swami
Requires: timidity-patch-gravis
Requires: timidity-patch-freepats
Requires: TiMidity++
Recommends: TiMidity++-interfaces-extra

# Score and tablature editors
Requires: lilypond
Recommends: nted
Recommends: ktabedit
Recommends: mscore

# Ladspa system and effect plugins
Requires: ladspa
Requires: ladspa-quitte-dsp
Requires: mcp-plugins
Requires: pvc
Requires: pvoc
Requires: rev-plugins
Requires: swh-plugins
Requires: tap-plugins
Requires: cmt
Requires: blop
Requires: caps

# LV2 system and plugins
Requires: lv2core
Requires: slv2
Requires: swh-lv2
Requires: ll-plugins
Requires: calf
Requires: ll-plugins-gui
Requires: invada-studio-plugins-lv2
Requires: foo-yc20

# DSSI system and synth plugins
Requires: dssi
Requires: fluidsynth-dssi
Requires: hexter
Requires: whysynth
Requires: wsynth-dssi
Requires: xsynth-dssi

# Standalone Synths
Requires: fluidsynth
Recommends: yoshimi
Recommends: qsynth
Recommends: ams
Recommends: amsynth
Recommends: phasex
Recommends: bristol
Recommends: bristol-arp2600
Recommends: bristol-axxe
Recommends: bristol-b3
Recommends: bristol-dx
Recommends: bristol-explorer
Recommends: bristol-juno
Recommends: bristol-memory
Recommends: bristol-mini
Recommends: bristol-mono
Recommends: bristol-obx
Recommends: bristol-obxa
Recommends: bristol-odyssey
Recommends: bristol-poly800
Recommends: bristol-prophet
Recommends: bristol-rhodes
Recommends: bristol-rhodesbass
Recommends: bristol-roadrunner
Recommends: bristol-solina
Recommends: bristol-vox
Recommends: qsampler

# Simple audio recorders and players
Recommends: jack_capture
Recommends: timemachine
Recommends: qarecord
Recommends: uade
Recommends: upse
Recommends: xmp

# DAW - SAW and sequencers
Recommends: ardour
Recommends: audacity
Recommends: dino
Recommends: jokosher
Recommends: lmms
Recommends: qtractor
Recommends: rezound
Recommends: rosegarden
Recommends: seq24
Recommends: jackbeat
Recommends: beast
Recommends: kmid2

# Trackers
Recommends: schismtracker

# Effect racks
Recommends: jack-rack
Recommends: zynjacku
Recommends: ecamegapedal
Recommends: gnuitar
Recommends: guitarix
Recommends: jcgui
Recommends: jconvolver
Recommends: rakarrack
Recommends: tuxguitar
Recommends: jackeq
Recommends: zita-rev1

# Drum machines, live audio tools
Recommends: hydrogen
Recommends: mixxx
Recommends: terminatorx
Recommends: sooperlooper

# Audio developpers
Recommends: faust
Recommends: pd
Recommends: drumstick

# KernelRT
Recommends: kernel-rt-latest
Recommends: kernel-rt-devel-latest
Recommends: rtirq

# Media players
Recommends: xine-jack
Recommends: mplayer
Recommends: vlc-plugin-jack
Recommends: gstreamer0.10-plugins-good

# Desktop-specific configuration files
Recommends: lilypond-kde4

# Cadence set of tools for audio production
Recommends: cadence

#########################################################

BuildArch:  noarch

%description
This package is a meta-package which installs everything needed to have
a complete sound creation and processing studio.
- Rosa/Mandriva for Digital Audio Workstations -


%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9130 |21cr|task-xfce-2021.1-46
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for the Xfce desktop environment
Name:		task-xfce
Version:	%{rosa_release}
Epoch:		2
Release:	46
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.rosalinux.com

# Please keep requires in alphabetical order
# Note that apps, configured in rosa-xfce-config, are Recommended deps there

Requires:	task-xfce-minimal

Recommends:	alarm-clock-applet
Recommends:	avatar-theme-neru
Recommends:	catfish
Recommends:	cheese
# default browser in rosa-xfce-config
Recommends:	chromium-browser-stable
Recommends:	file-roller
Recommends:	gigolo
Recommends:	gnome-disk-utility
Recommends:	gnome-keyring
Recommends:	gparted
Recommends:	gtk-theme-config
Recommends:	libnotify
Recommends:	menulibre
Recommends:	l3afpad
Recommends:	lumina-calculator
Recommends:	mugshot
Recommends:	neofetch
# We use GDM because of good support of corporate features, e.g. smartcard login
Recommends:	(gdm or lightdm)
# Pull config to set XFCE as the default session in XFCE if GDM is installed
Recommends:	(rosa-xfce-config-gdm if gdm)
Recommends:	seahorse
Recommends:	task-xfce-plugins
Recommends:	templates
Recommends:	thunar-archive-plugin
Recommends:	thunar-media-tags-plugin
Recommends:	thunar-shares-plugin
Recommends:	thunar-thumbnailers
Recommends:	tumbler
Recommends:	rosa-xfce-config
Recommends:	rosa-icons
Recommends:	rosa-icons-2021-xfce
Recommends:	rosa-icons-2021-xfce-dark
# default mail client in rosa-xfce-config
Recommends:	thunderbird
Recommends:	vertex-green-rospo
Recommends:	vertex-light-rospo
Recommends:	xfce-backgrounds-rospo
Recommends:	xfce-rospo-icon-theme
Recommends:	xfce4-panel-profiles

# Install GTK+3 interface for LibreOffice if it is installed
Recommends:	(libreoffice-gnome if libreoffice-common)

# GUI for Bluetooth if daemon is installed
Recommends:	(blueman if bluez)

# GUI for NetworkManager
Recommends:	(networkmanager-applet if networkmanager)

# Qt5 will use it by default if it is installed and will use fonts and file dialogs from GTK+3
# https://github.com/qt/qtbase/blob/5.15/src/platformsupport/themes/genericunix/qgenericunixthemes.cpp#L849-L882
Recommends:	qt5-platformtheme-gtk3
# translations for it and other Qt apps
Recommends:	qt5-qttranslations
# make SVG icons work in Qt apps
Recommends:	libQt5Svg.so.5%{_arch_tag_suffix}

Provides:	xfce = %{EVRD}
Provides:	xfce-maximal = %{EVRD}

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies for running the ROSA Xfce Desktop.

Xfce panel plugins can be found in %{name}-plugins.

%files

#----------------------------------------------------------------------------

%package minimal
Summary:	Minimal dependencies needed for Xfce desktop
Group:		Graphical desktop/Xfce
Url:		http://www.rosalinux.com
Recommends:	exo
Recommends:	thunar
Recommends:	thunar-volman
Recommends:	typelib(GMenu)
Recommends:	xfce4-pulseaudio-plugin
Recommends:	xfce4-notifyd
Recommends:	xfce4-panel
Recommends:	xfce4-power-manager
Recommends:	xfce4-session
Recommends:	xfce4-taskmanager
Recommends:	xfce4-terminal
Recommends:	xfce4-settings
Recommends:	xfce4-volumed-pulse
Recommends:	xfconf
Recommends:	xfdesktop
Recommends:	xfwm4
Recommends:	xfce4-appfinder
Recommends:	xfce4-whiskermenu-plugin
Recommends:	xfce4-screensaver
Recommends:	xfce4-screenshooter

Provides:	xfce-minimal = %{EVRD}

%description minimal
Xfce is a lightweight desktop environment for various *NIX systems.
Designed for productivity, it loads and executes applications fast,
while conserving system resources.

Xfce 4.13 embodies the traditional UNIX philosophy of modularity and
re-usability. It consists of a number of components that together
provide the full functionality of the desktop environment. They are
packaged separately and you can pick and choose from the available
packages to create the best personal working environment.

This package is a meta-package, meaning that its purpose is to contain
minimal dependencies for running a minimal Xfce desktop environment.

%files minimal

#----------------------------------------------------------------------------

%package plugins
Summary:	Metapackage for the Xfce panel plugins
Group:		Graphical desktop/Xfce
Url:		http://www.rosalinux.com
Recommends:	task-xfce-minimal

Recommends:	xfce4-battery-plugin
Recommends:	xfce4-clipman-plugin
Recommends:	xfce4-cpufreq-plugin
Recommends:	xfce4-dict-plugin
Recommends:	xfce4-fsguard-plugin
Recommends:	xfce4-indicator-plugin
Recommends:	xfce4-netload-plugin
Recommends:	xfce4-places-plugin
Recommends:	xfce4-sensors-plugin
Recommends:	xfce4-screenshooter-plugin
Recommends:	xfce4-systemload-plugin
Recommends:	xfce4-time-out-plugin
Recommends:	xfce4-xkb-plugin
Recommends:	xfce4-weather-plugin

%description plugins
This package is a meta-package, meaning that its purpose is to contain
dependencies for running the Xfce panel plugins.

%files plugins

#----------------------------------------------------------------------------

%package devel
Summary:	Xfce development metapackage
Group:		Development/Other
Url:		http://www.rosalinux.com

Recommends:	libxfce4ui-devel
Recommends:	garcon-devel
Recommends:	libxfce4util-devel
Recommends:	thunar-devel
Recommends:	xfce4-dev-tools
Recommends:	xfce4-panel-devel
Recommends:	xfconf-devel
Recommends:	exo-devel

%description devel
This package is a meta-package, meaning that its purpose is to contain
dependencies for Xfce development environment.

%files devel

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9131 |21cr|tauri-cli-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		tauri-cli
Version:	2.1.0
Release:	1
Summary:	Command line interface for building Tauri apps
License:	Apache-2.0
Group:		Development/Other
URL:		https://github.com/tauri-apps/tauri
Source:		https://github.com/tauri-apps/tauri/archive/refs/tags/tauri-cli-v%{version}.tar.gz
# use 'cargo vendor' and compress vendor dir, or upd.sh
Source1:	%{name}-vendor-%{version}.tar.xz
Source10:	upd.sh
BuildRequires:	cargo
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(javascriptcoregtk-4.1)
Provides:	cargo-tauri = %{EVRD}

%description
Command line interface for building Tauri apps.

%files
%doc README.md
%{_bindir}/cargo-tauri

#------------------------------------------------------------------
%prep
%autosetup -p1 -a1 -n tauri-%{name}-v%{version}

mkdir -p .cargo
cat > .cargo/config.toml <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source."git+https://github.com/tauri-apps/schemars.git?branch=feat/preserve-description-newlines"]
git = "https://github.com/tauri-apps/schemars.git"
branch = "feat/preserve-description-newlines"
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --frozen %{?_smp_mflags}

%install
install -Dm 755 "target/release/cargo-tauri" -t %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9132 |21cr|tcc-0.9.27-1.git747ad40.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 747ad409ac5358ca521983a8b6183239a33f17e0
%define commit_short %(echo %{commit} | head -c7)

%define debug_package %{nil}
# (tv) fix build:
%global _ssp_cflags %{nil}

Summary:	Tiny C Compiler
Name:		tcc
Version:	0.9.27
Release:	1.git%{commit_short}.1
License:	GPL
Group:		Development/C
Url:		http://bellard.org/tcc/
Source0:	https://repo.or.cz/tinycc.git/snapshot/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	texinfo

%description
Tiny C Compiler - C Scripting Everywhere - The Smallest ANSI C compiler.

%files
%doc Changelog README TODO *.html examples
%{_bindir}/*
%{_libdir}/tcc/include/*.h
%{_libdir}/tcc/*.a
%{_libdir}/*.so
%{_includedir}/*.h
%{_infodir}/tcc-doc*
%{_mandir}/man1/tcc.1*

#----------------------------------------------------------------------------

%prep
%setup -qn tinycc-%{commit_short}

# path fix
find -type f | xargs perl -pi -e "s|^#\!/usr/local/bin|#\!%{_bindir}|g"

# (tv) fix path on x86_64:
%ifnarch %{ix86}
perl -pi -e 's!/usr/lib!/usr/lib64!' libtcc.c tcc.h
%endif

# fix attribs
chmod 644 examples/*

%build
%configure

make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_mandir}/man1

%makeinstall_std

# cleanup
rm -rf %{buildroot}%{_docdir}/tcc
rm -rf %{buildroot}%{_docdir}/tcc-doc.html
rm -rf %{buildroot}%{_libdir}/tcc/*.o

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9133 |21cr|tclreadline-2.1.0-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tcl/Tk readline enhanced shells
Name:		tclreadline
Version:	2.1.0
Release:	23
License:	BSD
Group:		Development/Other
Url:		http://tclreadline.sourceforge.net
Source0:	ftp://tclreadline.sourceforge.net/pub/tclreadline/%{name}-%{version}.tar.bz2
Patch0:		tclreadline-2.1.0-link.patch
Patch1:		tclreadline-amd64.patch
# upstream assumes tkConfig.sh and tclConfig.sh are always in the same
# directory, which isn't the case for us now - AdamW 2008/10
Patch2:		tclreadline-2.1.0-tk.patch
# installs everything to whatever's set as libdir - so we can just
# install the whole thing to tcl_sitearch/name (see below) - AdamW
# 2008/10
Patch3:		tclreadline-2.1.0-tcl_relocate.patch
Patch4:		tclreadline-2.1.0-readline6.3.patch
BuildRequires:	tcl
BuildRequires:	tk
BuildRequires:	readline-devel
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(tk)

%description
This package contains tclreadline, a TCL package which builds a connection
between TCL and the GNU readline.

%files
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/tclshrl
%{_bindir}/wishrl
%{tcl_sitearch}/%{name}%{version}
%{_mandir}/mann/tclreadline.n.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch2 -p1
%patch1 -p1
%patch3 -p1
%patch4 -p1

# fix interpreter path
perl -pi -e 's|^#!/usr/local/bin/tclsh|#!/usr/bin/tclsh|' \
    tclreadlineInit.tcl.in \
    tclreadlineSetup.tcl.in \
    pkgIndex.tcl.in

%build
rm -f config/missing
autoreconf -fi -I aux
%configure \
	--enable-tclshrl \
	--enable-wishrl \
	--with-tcl=%{_libdir} \
	--libdir=%{tcl_sitearch}/%{name}%{version}
make

%install
%makeinstall_std

# remove unneeded crap - it's not really a shared library and nothing
# is ever going to build against it - AdamW 2008/10
rm -f %{buildroot}%{tcl_sitearch}/%{name}%{version}/*.*a
rm -rf %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9134 |21cr|tcl-tcllib-1.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	tcllib

Summary:	Collection of utility modules for Tcl
Name:		tcl-%{oname}
Version:	1.21
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.tcl.tk/software/tcllib/
Source0:	https://core.tcl-lang.org/tcllib/uv/tcllib-%{version}.tar.gz
BuildRequires:	tcl-devel
BuildArch:	noarch

%description
Tcllib is a collection of utility modules for Tcl. These modules
provide a wide variety of functionality, from implementations of
standard data structures to implementations of common networking
protocols. The intent is to collect commonly used function into
a single library, which users can rely on to be available and
stable.

%files
%doc support/releases/PACKAGES README* support/releases/history/README-1.9.txt
%doc ChangeLog license.terms
%{_bindir}/*
%{tcl_sitelib}/tcllib%{version}
%{_mandir}/mann/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

chmod -x modules/doctools/mpformats/fr.msg
# Convert a couple of files to UTF-8
for file in modules/struct/pool.html ; do
    iconv --from=ISO-8859-1 --to=UTF-8 ${file} > ${file}.new
    mv -f ${file}.new ${file}
done

%build
%configure --libdir=%{tcl_sitelib}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9135 |21cr|tcl-TclXML-3.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname TclXML

Summary:	XML parsing library for the Tcl scripting language
Name:		tcl-%{oname}
Version:	3.3.1
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://tclxml.sourceforge.net/
Source0:	https://github.com/flightaware/TclXML/archive/refs/tags/v%{version}.tar.gz?/tclxml-%{version}.tar.gz
Source1:	pkgIndex.tcl.in.gui
Patch0:		tclxml-3.2-sgmlparser.patch
Patch1:		tclxml-3.2-sfmt.patch
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
Provides:	tclxml = %{EVRD}
Provides:	tcldom = %{EVRD}
Provides:	tclxslt = %{EVRD}
Requires:	tcl
Requires:	tcl-tcllib

%description
TclXML is a package that provides XML, DOM, and XSLT parsing for the
Tcl scripting language.

%files
%doc LICENSE ANNOUNCE ChangeLog README.md
%dir %{tcl_sitearch}/%{oname}%{version}
%{tcl_sitearch}/%{oname}%{version}/*.so
%{tcl_sitearch}/%{oname}%{version}/*.tcl
%{_libdir}/libTclxml%{version}.so

#----------------------------------------------------------------------------

%package gui
Summary:	UI widgets for manipulating a DOM tree
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description gui
This package provides some useful widgets for manipulating a DOM tree.

%files gui
%dir %{tcl_sitelib}/%{oname}-gui%{version}
%{tcl_sitelib}/%{oname}-gui%{version}/*.tcl

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for the tclxml packages
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Development header files for the tclxml packages. This includes all of the
header files for the tclxml, tcldom, and tclxslt packages

%files devel
%{_includedir}/tclxml
%{_includedir}/tcldom-libxml2
%{_includedir}/tclxml-libxml2
%{_libdir}/TclxmlConfig.sh
%{tcl_sitearch}/%{oname}%{version}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# Fix a few spurious execute permissions
chmod -x ChangeLog doc/xsltsl/cmp.xsl *.c

# Clean up some DOS line endings
sed -i -e 's/\r//' doc/README.xml.in

%build
%configure
%make

%install
%makeinstall_std
install -p -m 0644 include/tclxml/*.h %{buildroot}%{_includedir}/tclxml
mkdir -p %{buildroot}%{_includedir}/tcldom-libxml2
install -p -m 0644 include/tcldom-libxml2/*.h %{buildroot}%{_includedir}/tcldom-libxml2
mkdir -p %{buildroot}%{_includedir}/tclxml-libxml2
install -p -m 0644 include/tclxml-libxml2/*.h %{buildroot}%{_includedir}/tclxml-libxml2

mkdir -p %{buildroot}%{tcl_sitearch}
mv %{buildroot}%{_libdir}/Tclxml%{version} %{buildroot}%{tcl_sitearch}/%{oname}%{version}

ln -s tcl%{tcl_version}/%{oname}%{version}/libTclxml%{version}.so %{buildroot}%{_libdir}/libTclxml%{version}.so

sed s,"%{_libdir}/Tclxml%{version}","%{tcl_sitearch}/%{oname}%{version}",g -i %{buildroot}%{_libdir}/TclxmlConfig.sh

chmod a-x %{buildroot}%{tcl_sitearch}/%{oname}%{version}/*.a

# Install the examples in a -gui subpackage
install -d %{buildroot}%{tcl_sitelib}/%{oname}-gui%{version}
sed -e 's/@VERSION@/%{version}/' < %{SOURCE1} > %{buildroot}%{tcl_sitelib}/%{oname}-gui%{version}/pkgIndex.tcl
install -p -m 0644 examples/tcldom/domtree.tcl \
	examples/tcldom/domtree-treectrl.tcl \
	examples/tcldom/domtext.tcl \
	examples/tcldom/cgi2dom.tcl \
	%{buildroot}%{tcl_sitelib}/%{oname}-gui%{version}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9136 |21cr|tcl-tkdnd-2.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname	tkdnd

Name:		tcl-%{oname}
Version:	2.9.2
Release:	1
Summary:	Tk extension that adds native drag & drop capabilities
Group:		Development/Other
License:	BSD
URL:		http://tkdnd.sourceforge.net/
Source0:	https://github.com/petasis/tkdnd/archive/refs/tags/tkdnd-release-test-v%{version}.tar.gz
BuildRequires:	tcl-devel >= 8.4
BuildRequires:	tk-devel >= 8.4
Requires:	tcl >= 8.4
Provides:	tkdnd = %{version}-%{release}

%description
Tk Drag & Drop: tkdnd is an extension that adds native drag & drop capabilities
to the tk toolkit. It can be used with any tk version equal or greater to 8.4.
Under Unix the drag & drop protocol in use is the XDND protocol version 4
(also used by the QT toolkit, KDE & GNOME Desktops).

%prep
%setup -q -n %{oname}-%{oname}-release-test-v%{version}

# fix file rights
chmod 644 doc/tkDND.htm

%build
%configure --libdir=%{tcl_sitearch} \
%ifarch x86_64
	--enable-64bit \
%endif
	--enable-symbols
%make

%install
%makeinstall_std

%files
%doc doc/tkDND.htm
%{tcl_sitearch}/%{oname}%{version}
%{_mandir}/mann/tkDND.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9137 |21cr|tcl-tklib-0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define oname tklib

Summary:	Collection of utility modules for Tk
Name:		tcl-%{oname}
Version:	0.5
Release:	6
License:	BSD
Group:		Networking/WWW
Url:		http://www.tcl.tk/software/tcllib/
Source0:	http://sourceforge.net/projects/tcllib/files/tklib/0.5/tklib-%{version}.tar.bz2
BuildRequires:	groff-for-man
BuildRequires:	tcl-tcllib
BuildRequires:	tcl
BuildRequires:	tk

%description
Tklib is like Tcllib, a collection of many small packages providing 
utilities, except that packages here are expected to depend on Tk. 
Tklib specializes in utilities for GUI programming.

%files
%defattr(-,root,root,0755)
%dir %{_libdir}/tklib0.5
%{_libdir}/tklib0.5/*
%{_mandir}/mann/*

#--------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9138 |21cr|tcl-tkpng-0.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tkpng

Summary:	PNG support for Tcl/Tk
Name:		tcl-%{oname}
Version:	0.9
Release:	5
License:	TCL
Group:		System/Libraries
Url:		http://www.muonics.com/FreeStuff/TkPNG/
Source0:	http://downloads.sourceforge.net/tkpng/%{oname}%{version}.tgz
Provides:	%{oname} = %{EVRD}
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(zlib)

%description
TkPNG is an open source package that adds PNG photo image support to Tcl/Tk. 
Although other extensions such as Img also add support for PNG images, this 
package was designed to be lightweight, not depending on libpng nor 
implementing other image formats, and suitable for inclusion in the Tk core. 
Tk does not currently have native support for any image formats that allow 
for alpha (partial-transparency) channels, although it does have support for 
alpha blending internally.

%files
%doc README license.terms ChangeLog
%{tcl_sitearch}/%{oname}%{version}/
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}%{version}

%build
%configure \
%ifarch x86_64
	--enable-64bit
%endif

%make LIBS="-lm -lz"

%install
%makeinstall_std
install -d %{buildroot}%{tcl_sitearch}
mv %{buildroot}%{_libdir}/%{oname}%{version} %{buildroot}%{tcl_sitearch}/%{oname}%{version}

ln -s tcl%{tcl_version}/%{oname}%{version}/lib%{oname}%{version}.so %{buildroot}%{_libdir}/lib%{oname}%{version}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9139 |21cr|tcltls-1.7.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?tcl_version: %global tcl_version %((echo '8.5'; echo 'puts $tcl_version' | tclsh 2>/dev/null) | tail -1)}
%{!?tcl_sitearch: %global tcl_sitearch %{_libdir}/tcl%{tcl_version}}

Name:           tcltls
Version:        1.7.22
Release:        1
Summary:        OpenSSL extension for Tcl
Group:          System/Libraries
License:        BSD
URL:            https://core.tcl.tk/tcltls/home
Source0:        https://core.tcl.tk/tcltls/uv/%{name}-%{version}.tar.gz

Patch0:         tcltls-1.7.21-cipher-tests.patch
Patch1:         tcltls-1.7.21-hostname-tests.patch
Patch2:         tcltls-1.7.22-cert-tests.patch
Patch3:         tcltls-1.7.22-fall-through.patch
Patch4:         tcltls-1.7.22-openssl3.patch

BuildRequires:  make
BuildRequires:  openssl-devel
BuildRequires:  tcl-devel

Requires:       tcl >= %{tcl_version}

%description
A TLS OpenSSL extension for Tcl

%files
%license license.terms
%doc README.txt ChangeLog
%{tcl_sitearch}/%{name}%{version}

#-----------------------------------------------------------
%package devel
Summary:        Header files for the OpenSSL extension for Tcl
Requires:       %{name}%{?_isa} = %{EVRD}

%description devel
The TLS OpenSSL extension to Tcl

This package contains the development files for tls.

%files devel
%{_includedir}/tls.h

#-----------------------------------------------------------

%prep
%autosetup -p1
%config_update

# Disable strip via objcopy(1) to achieve -debuginfo
sed -e 's/-@\(WEAKEN\|REMOVE\)SYMS@/:/' -i Makefile.in

%build
# hmm... configure macros not work
./configure --disable-rpath --with-ssl-dir=%{_prefix}
%make_build

%check
make test

%install
%make_install libdir=%{tcl_sitearch}

install -D -p -m 0644 tls.h %{buildroot}%{_includedir}/tls.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9140 |21cr|tclx-8.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%{!?tcl_version: %define tcl_version %(echo 'puts $tcl_version' | tclsh || echo 'Unknown version')}
%{!?tcl_sitearch: %define tcl_sitearch %{_libdir}/tcl%{tcl_version}}

Name:   		tclx
Version:    	8.4.1
Release:    	1
Summary:    	Tcl/Tk extensions for POSIX systems
License:    	BSD
Group:  		System/Libraries
URL:    		http://tclx.sourceforge.net/
Source0:    	http://prdownloads.sourceforge.net/tclx/tclx%{version}.tar.bz2
Patch1: 		tclx-8.4-varinit.patch
Patch2: 		tclx-8.4-man.patch
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)
BuildRequires:	groff

%description
TclX is a set of extensions which make it easier to use the Tcl
scripting language for common UNIX/Linux programming tasks.  TclX
enhances Tcl support for files, network access, debugging, math, lists,
and message catalogs.  TclX can be used with both Tcl and Tcl/Tk
applications.

Install TclX if you are developing applications with Tcl/Tk.  You'll
also need to install the tcl and tk packages.

%package -n	%{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries
Requires:	tcl
Requires:	tk
Provides:	%{name} = %{EVRD}

%description -n %{libname}
TclX is a set of extensions which make it easier to use the Tcl
scripting language for common UNIX/Linux programming tasks.  TclX
enhances Tcl support for files, network access, debugging, math, lists,
and message catalogs.  TclX can be used with both Tcl and Tcl/Tk
applications.

Install TclX if you are developing applications with Tcl/Tk.  You'll
also need to install the tcl and tk packages.

%files -n %{libname}
%doc ChangeLog README
%{_sysconfdir}/ld.so.conf.d/%{name}%{major}.4-%{_arch}.conf
%{tcl_sitearch}/tclx%{major}*

#-----------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{libname}-devel = %{EVRD}

%description -n	%{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_includedir}/*.h
%{_mandir}/mann/*

#-----------------------------------------------------------------

%prep
%setup -q -n tclx%{major}.4

%build
%configure \
	--enable-tk=YES \
	--with-tclconfig=%{_libdir} \
	--with-tkconfig=%{_libdir} \
	--with-tclinclude=%{_includedir} \
	--with-tkinclude=%{_includedir} \
	--libdir=%{tcl_sitearch} \
	--enable-gcc \
	--disable-threads \
	--enable-shared \
	--enable-64bit

# parallell build is borked!
%make

%install
%makeinstall_std

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/
echo '%{_libdir}/tcl%{tcl_version}/%{name}%{major}.4' > $RPM_BUILD_ROOT%{_sysconfdir}/ld.so.conf.d/%{name}%{major}.4-%{_arch}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9141 |21cr|tcl-zlib-2.0.1-0.svn40.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zlib

Summary:	Zlib support for Tcl
Name:		tcl-%{oname}
Version:	2.0.1
Release:	0.svn40.2
Group:		System/Libraries
License:	MIT
Url:		http://svn.scheffers.net/
# Snapshot of SVN40 downloaded on June 26, 2008
# Originally found at http://svn.scheffers.net/zlib.tar.gz
Source0:	%{oname}.tar.gz
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(zlib)

%description
This is extension is a standalone version of the tclkit [zlib]
command/extension. See http://wiki.tcl.tk/zlib for command syntax.

%files
%doc README ChangeLog
%dir %{tcl_sitearch}/%{oname}%{version}
%{tcl_sitearch}/%{oname}%{version}/*.so
%{tcl_sitearch}/%{oname}%{version}/pkgIndex.tcl
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Development files for %{name}.

%files devel
%{tcl_sitearch}/%{oname}%{version}/libzlibstub*.a
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}

%build
%configure \
	--with-tcl=%{_libdir}
make

%install
make DESTDIR=%{buildroot} install-binaries install-libraries

install -d %{buildroot}%{tcl_sitearch}
mv %{buildroot}%{_libdir}/%{oname}%{version} %{buildroot}%{tcl_sitearch}/%{oname}%{version}
ln -s tcl%{tcl_version}/%{oname}%{version}/lib%{oname}%{version}.so %{buildroot}%{_libdir}/lib%{oname}%{version}.so

rm -rf %{buildroot}%{tcl_sitearch}/%{oname}%{version}/zlib.c
chmod -x %{buildroot}%{tcl_sitearch}/%{oname}%{version}/libzlibstub*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9142 |21cr|tcmu-runner-1.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname tcmu %{major}
%define devname %mklibname tcmu -d

Summary:	A daemon that handles the userspace side of the LIO TCM-User backstore
Name:		tcmu-runner
Version:	1.6.2
Release:	2
License:	LGPLV2+ or ASL 2.0
Group:		System/Base
Url:		https://github.com/open-iscsi/tcmu-runner
Source0:	https://github.com/open-iscsi/tcmu-runner/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		tcmu-runner-handler_file-add-libtcmu.patch
Patch1:		tcmu-runner-fix-i586-size_t-error.patch
Patch2:		tcmu-runner-1.6.2-service-path.patch
# bug present only on rosa2021.1 (rosa13 not affected)
Patch3:		tcmu-runner-handler-path.patch
BuildRequires:	cmake
BuildRequires:	systemd
BuildRequires:	ceph-devel
#BuildRequires:  libzbc-devel # Don't have it
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glusterfs-api)
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libprofiler)
BuildRequires:	pkgconfig(zlib)
Requires:	targetcli
ExcludeArch:	%{ix86}

%description
A daemon that handles the userspace side of the LIO TCM-User backstore.

LIO is the SCSI target in the Linux kernel. It is entirely kernel code, and
allows exported SCSI logical units (LUNs) to be backed by regular files or
block devices. But, if we want to get fancier with the capabilities of the
device we're emulating, the kernel is not necessarily the right place. While
there are userspace libraries for compression, encryption, and clustered
storage solutions like Ceph or Gluster, these are not accessible from the
kernel.

The TCMU userspace-passthrough backstore allows a userspace process to handle
requests to a LUN. But since the kernel-user interface that TCMU provides
must be fast and flexible, it is complex enough that we'd like to avoid each
userspace handler having to write boilerplate code.

tcmu-runner handles the messy details of the TCMU interface -- UIO, netlink,
pthreads, and DBus -- and exports a more friendly C plugin module API. Modules
using this API are called "TCMU handlers". Handler authors can write code just
to handle the SCSI commands as desired, and can also link with whatever
userspace libraries they like.

%files
%doc README.md
%license LICENSE*
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config %{_sysconfdir}/dbus-1/system.d/%{name}.conf
%config %{_sysconfdir}/tcmu/tcmu.conf
%{_datadir}/dbus-1/system-services/org.kernel.TCMUService1.service
%dir %{_sysconfdir}/tcmu
%ghost %attr(0644,-,-) %{_sysconfdir}/logrotate.d/%{name}.bak/%{name}
%ghost %attr(0644,-,-) %{_sysconfdir}/tcmu/tcmu.conf.old
%{_libdir}/%{name}
%{_mandir}/man8/*
%{_unitdir}/%{name}.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	A library supporting LIO TCM-User backstores processing
Group:		System/Libraries

%description -n %{libname}
libtcmu provides a library for processing SCSI commands exposed by the
LIO kernel target's TCM-User backend.

%files -n %{libname}
%{_libdir}/libtcmu.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for libtcmu
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development header(s) for developing against libtcmu.

%files -n %{devname}
%{_libdir}/libtcmu.so

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake	\
	-DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now"	\
	-DSUPPORT_SYSTEMD=ON	\
	-Dwith-zbc=false
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9143 |21cr|tcpflow-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network traffic recorder
Name:		tcpflow
Version:	1.6.1
Release:	1
License:	GPL
Group:		Networking/Other
Source0:	https://github.com/simsong/tcpflow/releases/download/tcpflow-%{version}/tcpflow-%{version}.tar.gz
URL:		https://github.com/simsong/tcpflow
Patch0:		tcpflow-update-datalink.patch
BuildRequires:	libpcap-devel
BuildRequires:	autoconf
BuildRequires:	boost-devel
BuildRequires:	gtk+2.0
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libmd)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(tre)

%description
tcpflow is a program that captures data transmitted as part of TCP 
connections (flows), and stores the data in a way that is convenient
for protocol analysis or debugging.
A program like 'tcpdump' shows a summary of packets seen on the wire,
but usually doesn't store the data that's actually being transmitted.
In contrast, tcpflow reconstructs the actual data streams and stores
each flow in a separate file for later analysis.

%prep
%autosetup -p1 -n %{name}-%{version}

chmod -x COPYING

%build
%configure
%make

%install
%makeinstall

%files
%doc AUTHORS COPYING ChangeLog NEWS INSTALL
%{_bindir}/*
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9144 |21cr|tcpreplay-4.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A tool to replay captured network traffic
Name:		tcpreplay
Version:	4.4.2
Release:	1
License:	BSD
Group:		Networking/Other
Url:		http://tcpreplay.appneta.com
Source0:	http://prdownloads.sourceforge.net/tcpreplay/%{name}-%{version}.tar.gz
BuildRequires:	autogen >= 5.9
BuildRequires:	autogen-devel >= 5.9
BuildRequires:	libdnet-devel
BuildRequires:	libpcap-devel >= 0.7.2
BuildRequires:	tcpdump

%description
Tcpreplay is a tool to replay captured network traffic. Currently, tcpreplay
supports pcap (tcpdump) and snoop capture formats. Also included, is tcpprep a
tool to pre-process capture files to allow increased performance under certain
conditions as well as capinfo which provides basic information about capture
files.

%files
%doc docs/*
%{_bindir}/tcpbridge
%{_bindir}/tcpprep
%{_bindir}/tcpreplay
%{_bindir}/tcpreplay-edit
%{_bindir}/tcprewrite
%{_bindir}/tcpcapinfo
%{_bindir}/tcpliveplay
%{_mandir}/man1/*

#------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-dynamic-link \
	--enable-tcpreplay-edit \
	--with-testnic=eth0 \
	--with-testnic2=eth1
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9145 |21cr|tcpslice-1.7-0.20230728.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap 20230728

%define commit cdce8c7f56ebb1a5dcd8be3ebd2198aa75e500a0

Summary:	A tool for extracting portions of packet trace files
Name:		tcpslice
Version:	1.7
Release:	0.%{snap}.1
Group:		Monitoring
License:	BSD
URL:		http://www.tcpdump.org
Source0:	https://github.com/the-tcpdump-group/tcpslice/archive/%{commit}.zip?/%{name}-%{commit}.zip
Patch0:		tcpslice-ooh323c.patch
BuildRequires:	libpcap-devel >= 0.9.5
BuildRequires:	libnids-devel >= 1.21
BuildRequires:	libosip2-devel >= 3.0.3
BuildRequires:	libooh323c-devel >= 0.8.2
BuildRequires:	libtool
Requires:	tcpdump >= 0.9.5

%description
A tool for extracting portions of packet trace files generated using tcpdump's
-w flag.

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
autoreconf -vfi

%configure
%make

%install
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 tcpslice %{buildroot}%{_sbindir}
install -m0644 tcpslice.1 %{buildroot}%{_mandir}/man1/tcpslice.1

%clean

%files
%doc CHANGES CREDITS INSTALL* README*
%{_sbindir}/tcpslice
%{_mandir}/man1/tcpslice.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9146 |21cr|tcpstat-1.5-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A network statistics reporter
Name: tcpstat
Version: 1.5
Release: 15
Source0: %{name}-%{version}.tar.bz2
License: BSD
Group: Monitoring
Url: http://www.frenchfries.net/paul/tcpstat/index.html
BuildRequires: libpcap-devel

%description
Tcpstat reports certain network interface statistics much like 
vmstat does for system statistics. tcpstat gets its information by 
either monitoring a specific interface, or by reading previously 
saved tcpdump data from a file. 

Some of the statistics tcpstat calculates: 
- bandwidth 
- number of packets 
- packets per second 
- average packet size 
- standard deviation of packet size 
- interface load 
- more...

tcpstat is written with performance and efficiency in mind and is capable 
of handling large amounts of packets per second. Its compact command line 
interface is geared for the network researcher, system administrator and 
desktop shell user. tcpstat has been a valuable tool in university research 
papers and commercial networks alike.

%prep
%setup -q

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL LICENSE NEWS README doc/Tips_and_Tricks.txt
%_bindir/tcp*
%_mandir/man1/tcp*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9147 |21cr|tcptrace-6.6.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for analysis of TCP dump files
Name:		tcptrace
Version:	6.6.7
Release:	10
License:	GPLv2+
Group:		Monitoring
Url:		http://www.tcptrace.org/index.shtml
Source:		http://jarok.cs.ohiou.edu/software/tcptrace/download/%{name}-%{version}.tar.gz
Patch0:		tcptrace-6.6.7-pcap-ftbfs.patch
BuildRequires:	libpcap-devel

%description
tcptrace is a tool written by Shawn Ostermann at Ohio University, for
analysis of TCP dump files. It can take as input the files produced by
several popular packet-capture programs, including tcpdump, snoop,
etherpeek, HP Net Metrix, and WinDump. tcptrace can produce several
different types of output containing information on each connection seen,
such as elapsed time, bytes and segments sent and received, retransmissions,
round trip times, window advertisements, throughput, and more. It can
also produce a number of graphs for further analysis.

%files
%doc ARGS CHANGES COPYING COPYRIGHT FAQ README WWW THANKS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
rm -Rf %{buildroot}
export CHOWNPROG='echo "**** chown "'
export CHGRPPROG='echo "**** chgrp "'
%makeinstall \
	MANDIR=%{buildroot}%{_mandir} \
	BINDIR=%{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9148 |21cr|tcptrack-1.4.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A packet sniffer which displays TCP information like the 'top' command
Name:		tcptrack
Version:	1.4.2
Release:	5
License:	GPLv2+
Group:		Monitoring
Url:		http://www.rhythm.cx/~steve/devel/tcptrack/
Source0:	http://www.rhythm.cx/~steve/devel/tcptrack/release/%{version}/source/%{name}-%{version}.tar.gz
# Increase text ui select timeout to 10000 usec, upstream agrees
Patch0:		tcptrack-1.4.0-timeout.patch
# Kick out -Werror from AM_CXXFLAGS
Patch1:		tcptrack-1.4.2-no-werror.patch
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(ncurses)

%description
tcptrack is a sniffer which displays information about TCP connections it sees
on a network interface. It passively watches for connections on the network
interface, keeps track of their state and displays a list of connections in a
manner similar to the unix 'top' command. It displays source and destination
addresses and ports, connection state, idle time, and bandwidth usage.

%files
%doc AUTHORS COPYING ChangeLog README INSTALL NEWS
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .timeout~
%patch1 -p1 -b .werror~

%build
%serverbuild

%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9149 |21cr|tcron-0.5.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name}

Summary:	Another cron daemon
Name:		tcron
Version:	0.5.3
Release:	11
License:	LGPLv2+
Group:		System/Servers
Url:		http://tcron.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}.makefile.patch
Patch1:		tcron-check-dev_rtc.patch
Requires(post,preun):	rpm-helper

%description
Tcron integrates 'cron' with the ATX power-up capability.
It can invoke multiple cron jobs and switch the computer on
and off any number of times per day.

%files
%doc README Changelog
%config(noreplace) %{_sysconfdir}/tcron.conf
%{_sbindir}/tcrond
%{_bindir}/*
%{_initrddir}/tcrond
%{_libdir}/tcrontab-ap
%{_var}/spool/tcron

%post
%_post_service tcrond

%preun
%_preun_service tcrond

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library need by tcron
Group:		System/Libraries

%description -n %{libname}
Tcron integrates 'cron' with the ATX power-up capability.
It can invoke multiple cron jobs and switch the computer on
and off any number of times per day.

This package contains the tcron common library.

%files -n %{libname}
%doc README Changelog
%{_libdir}/libtcrontab-api.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The development files from tcron
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Tcron integrates 'cron' with the ATX power-up capability.
It can invoke multiple cron jobs and switch the computer on
and off any number of times per day.

This package contains files need to create applications using
tcron library.

%files -n %{devname}
%doc README README.api Changelog demo
%{_libdir}/libtcrontab-api.so
%{_libdir}/libtcrontab-api.a
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .orig
%patch1 -p0 -b .devrtc

%build
%make \
	prefix=%{_prefix} \
	TCRONTAB_AP_LIB=%{_libdir} \
	OFLAGS="%{optflags}"

%install
%makeinstall_std \
	prefix=%{_prefix} \
	TCRONTAB_AP_LIB=%{_libdir} \
	OFLAGS="%{optflags}"

mkdir -p %{buildroot}%{_initrddir}
mv %{buildroot}%{_sysconfdir}/init.d/tcrond %{buildroot}%{_initrddir}/tcrond

(
cd %{buildroot}%{_libdir}
ln -s libtcrontab-api.so.%{major} libtcrontab-api.so
)

mkdir -p %{buildroot}%{_var}/spool/tcron

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9150 |21cr|tdom-0.8.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A XML/DOM/XPath/XSLT Implementation for Tcl
Name:		tdom
Version:	0.8.3
Release:	4
License:	MPLv1.1
Group:		System/Libraries
Url:		http://tdom.github.com/
Source0:	https://github.com/downloads/tDOM/tdom/tDOM-%{version}.tgz
Patch0:		tdom.patch
Patch1:		tdom-expat.patch
Patch2:		tdom-tnc.patch
BuildRequires:	tcl-tcllib
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(expat)

%description
tDOM combines high performance XML data processing with easy and
powerful Tcl scripting functionality. tDOM should be one of the fastest
ways to manipulate XML with a scripting language and uses very few
memory: for example, the DOM tree of the XML recommendation in XML
(160K) needs only about 450K of memory.

%files
%doc ChangeLog CHANGES README NPL-1_1Final.html LICENSE
%{_libdir}/*.so
%{tcl_sitearch}/%{name}%{version}/
%{tcl_sitearch}/tnc0.3.0/
%{_mandir}/mann/*.n.*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for tDOM
Group:		Development/Other
Requires:	tcl-devel
Requires:	%{name} = %{EVRD}

%description devel
This package contains files for developing software based on tDOM.

%files devel
%{_libdir}/tdomConfig.sh
%{_libdir}/*.a
%{_includedir}/tdom.h

#----------------------------------------------------------------------------

%prep
%setup -q -n tDOM-%{version}
%patch0
%patch1
%patch2

%build
autoreconf --force
mkdir build
cd build
CFLAGS="%{optflags} -DUSE_INTERP_ERRORLINE" ../configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir} \
	--with-tcl=%{tcl_sitearch} \
	--disable-tdomalloc \
	--with-expat
%make
cd ../extensions/tnc
autoreconf --force
CFLAGS="%{optflags}" ./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir} \
	--with-tcl=%{tcl_sitearch} \
	--with-tdom=../../build
%make

%install
%makeinstall_std pkglibdir=%{tcl_sitearch}/%{name}%{version} -C build
%makeinstall_std pkglibdir=%{tcl_sitearch}/tnc0.3.0 -C extensions/tnc

mv %{buildroot}%{_libdir}/lib%{name}%{version}.so %{buildroot}%{tcl_sitearch}/%{name}%{version}/
ln -s tcl%{tcl_version}/%{name}%{version}/lib%{name}%{version}.so %{buildroot}%{_libdir}/lib%{name}%{version}.so

mv %{buildroot}%{_libdir}/libtnc0.3.0.so %{buildroot}%{tcl_sitearch}/tnc0.3.0/
ln -s tcl%{tcl_version}/tnc0.3.0/libtnc0.3.0.so %{buildroot}%{_libdir}/libtnc0.3.0.so

chmod 644 %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9151 |21cr|tea-50.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Powerful text editor with many HTML editing and text processing functions
Name:		tea
Version:	50.0.4
Release:	2
License:	GPLv3+
Group:		Editors
Url:		http://semiletov.org/tea/
Source0:	https://github.com/psemiletov/tea-qt/archive/%{version}.tar.gz?/%{name}-qt-%{version}.tar.gz
BuildRequires:	aspell-devel
BuildRequires:	cmake
BuildRequires:	hunspell-devel
BuildRequires:	imagemagick
BuildRequires:	locales-ru
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Powerful text editor with many HTML editing and text processing functions.

%files
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-qt-%{version}

%build
%cmake
%make -s

%install
%makeinstall_std -s -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat <<EOF >%{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Tea
Comment=Tea is a small but powerful text editor
Comment[ru]=Tea — небольшой, но мощный текстовый редактор
Comment[ua]=Tea — малий, але дуже потужний текстовий редактор
TryExec=%{name}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Qt;Utility;TextEditor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9152 |21cr|tecnoballz-0.93.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Brick Busting game
Name:		tecnoballz
Version:	0.93.1
Release:	3
License:	GPLv3+
Group:		Games/Arcade
Url:		http://linux.tlk.fr/games/TecnoballZ/
Source0:	http://linux.tlk.fr/games/TecnoballZ/download/%{name}-%{version}.tgz
Source1:	%{name}.xpm
Source2:	%{name}.desktop
Patch0:		tecnoballz-0.93.1-gamesdir.patch

BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	tinyxml-devel

%description
A exciting Brick Breaker with 50 levels of game and 11 special levels,
distributed on the 2 modes of game to give the player a sophisticated
system of attack weapons with an enormous power of fire that can be
build by gaining bonuses. Numerous decors, musics and sounds
complete this great game. This game was ported from the Commodore Amiga.

%files
%doc AUTHORS CHANGES COPYING README
%attr(2755,root,games) %{_bindir}/%{name}
%attr(-,root,games) %{_datadir}/%{name}
%dir %{_localstatedir}/games/%{name}
%attr(-,root,games) %config(noreplace) %{_localstatedir}/games/%{name}/%{name}.hi
%{_mandir}/man6/%{name}.6*
%{_iconsdir}/hicolor/32x32/apps/%{name}.xpm
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fvi
%configure
# FIX: ovverride CXXFLAGS to pick up RPM_OPT_FLAGS
%make CXXFLAGS="%{optflags}"

%install
%makeinstall_std

# install desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cp %{SOURCE2} %{buildroot}%{_datadir}/applications/

# install icon
mkdir -p %{buildroot}%{_iconsdir}/hicolor/32x32/apps
install -p -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9153 |21cr|teeworlds-0.7.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		teeworlds
Version:	0.7.5
Release:	3
Summary:	Online multi-player platform 2D shooter
Group:		Games/Arcade
License:	Teeworlds
Url:		https://www.teeworlds.com/
Source0:	https://github.com/teeworlds/teeworlds/releases/download/%{version}/%{name}-%{version}-src.tar.gz
Source1:	%{name}.desktop
Patch0:		teeworlds-0.7.5-install-in-gamesbindir.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	dos2unix
BuildRequires:	git
BuildRequires:	icoutils
BuildRequires:	imagemagick
BuildRequires:	pnglite-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}

%description
The game features cartoon-themed graphics and physics, and relies heavily on
classic shooter weaponry and gameplay. The controls are heavily inspired by
the FPS genre of computer games.

%files
%doc readme.md
%license license.txt
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#------------------------------------------------------------------------------

%package server
Summary:	Server for %{name}
Group:		Games/Arcade
Requires:	%{name}-data = %{EVRD}

%description	server
The server daemon for %{name}, an online multi-player platform 2D shooter,
which allows you to host online %{name} games.

%files server
%license license.txt
%{_gamesbindir}/%{name}_srv

#----------------------------------------------------------------------------------

%package data
Summary:	Data-files for %{name}
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description data
Data files for %{name}, an online multi-player platform 2D shooter.

%files data
%license license.txt
%{_datadir}/%{name}/

#--------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-src

dos2unix readme.md

# Fix perms
find . -name "*.cpp" -o -name "*.h" | xargs chmod -x
find . -name "*.c" -o -name "*.txt" -o -name "*.md" | xargs chmod -x

%build
%cmake
%make

%install
%makeinstall_std -C build

# Install source provided icon...
install -d %{buildroot}%{_iconsdir}/hicolor/256x256/apps
icotool -i 1 -x other/icons/teeworlds.ico -o %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png
# ... and have more sizes
for i in 16x16 22x22 32x32 48x48 64x64 128x128; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/apps
	convert %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png -scale $i %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{name}.png
done

# Install .desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9154 |21cr|tegaki-0.3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Chinese and Japanese Handwriting Recognition
Name: 		tegaki
Version: 	0.3.1
Release: 	7
License: 	GPLv2+
Group: 		System/Internationalization
Source: 	http://www.tegaki.org/releases/%version/tegaki-python-%version.tar.gz
URL: 		http://www.tegaki.org
BuildRequires:	python2-setuptools
BuildArch:	noarch
Requires:	tegaki-engine
Requires:	tegaki-models

%description
Tegaki is an ongoing project which aims to develop a free and open-source
modern implementation of handwriting recognition software, that is suitable for
both the desktop and mobile devices, and that is designed from the ground up to
work well with Chinese and Japanese.

%prep
%setup -qn tegaki-python-%version

%build
%py2_build

%install
%py2_install

%files
%defattr (-,root,root)
%{py2_puresitedir}/tegaki*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9155 |21cr|tegaki-zinnia-japanese-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Japanese Models for tegaki zinnia engine
Name: tegaki-zinnia-japanese
Version: 0.3
Release: 4
License: GPLv2+
Group: System/Internationalization
Source0: http://www.tegaki.org/releases/0.3/models/tegaki-zinnia-japanese-0.3.zip
URL: http://www.tegaki.org
Buildroot: %{_tmppath}/%{name}-%{version}-buildroot
BuildArch: noarch
Requires: locales-ja
Requires: tegaki
Requires: zinnia
Provides: tegaki-models

%description
Tegaki is an ongoing project which aims to develop a free and open-source
modern implementation of handwriting recognition software, that is suitable for
both the desktop and mobile devices, and that is designed from the ground up to
work well with Chinese and Japanese.

%prep
%setup -qn %name-%version

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/tegaki/models/zinnia/
install -m0644 *.meta *.model %{buildroot}%{_datadir}/tegaki/models/zinnia/

%clean
rm -rf %{buildroot}

%files
%defattr (-,root,root)
%{_datadir}/tegaki/models/zinnia/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9156 |21cr|tegaki-zinnia-simplified-chinese-0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Simplified Chinese Models for tegaki zinnia engine
Name:    tegaki-zinnia-simplified-chinese
Version: 0.3
Release: 5
License: GPLv2+
Group:   System/Internationalization
Source0: http://www.tegaki.org/releases/0.3/models/%{name}-%{version}.zip
Url:     http://www.tegaki.org
BuildArch: noarch
Requires: locales-zh
Requires: tegaki
Requires: zinnia
Provides: tegaki-models

%description
Tegaki is an ongoing project which aims to develop a free and open-source
modern implementation of handwriting recognition software, that is suitable for
both the desktop and mobile devices, and that is designed from the ground up to
work well with Chinese and Japanese.

%prep
%setup -qn %{name}-%{version}

%install
mkdir -p %{buildroot}%{_datadir}/tegaki/models/zinnia/
install -m0644 *.meta *.model %{buildroot}%{_datadir}/tegaki/models/zinnia/

%clean

%files
%{_datadir}/tegaki/models/zinnia/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9157 |21cr|tegaki-zinnia-traditional-chinese-0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Traditional Chinese Models for tegaki zinnia engine
Name:    tegaki-zinnia-traditional-chinese
Version: 0.3
Release: 5
License: GPLv2+
Group:   System/Internationalization
Source0: http://www.tegaki.org/releases/0.3/models/%{name}-%{version}.zip
Url:     http://www.tegaki.org
BuildArch: noarch
Requires: locales-zh
Requires: tegaki
Requires: zinnia
Provides: tegaki-models

%description
Tegaki is an ongoing project which aims to develop a free and open-source
modern implementation of handwriting recognition software, that is suitable for
both the desktop and mobile devices, and that is designed from the ground up to
work well with Chinese and Japanese.

%prep
%setup -qn %{name}-%{version}

%install
mkdir -p %{buildroot}%{_datadir}/tegaki/models/zinnia/
install -m0644 *.meta *.model %{buildroot}%{_datadir}/tegaki/models/zinnia/

%clean

%files
%{_datadir}/tegaki/models/zinnia/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9158 |21cr|TEI-DTD-P4-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dtdver %(echo %{release} |cut -d- -f 3)

Name:		TEI-DTD-P4
Version:	1.0
Release:	14
Group:		Publishing
Summary:	XML document type definition for TEI
License:	Artistic like
URL:		http://www.tei-c.org/
# Zip file downloadable at http://www.tei-c.org/P4X/DTD/dtd.zip
Source0:	%{name}.tar.bz2
Provides:	TEI-DTD
Requires(pre):	coreutils
Requires(pre):	sgml-common

BuildArch:	noarch


%define sgmlbase %{_datadir}/sgml

%Description

The TEI (Text Encoding Initiative) Document Type Definition (DTD)
describes the syntax of literature and human sciences related texts.
This syntax is XML-compliant and is developed by the TEI consortium.
This is the version %{dtdver} of this DTD.

%Prep
%setup -n %{name}

%Build

%Install
DESTDIR=%{buildroot}%{sgmlbase}/TEI/dtd-%{dtdver}
mkdir -p $DESTDIR
install -m644 teicatalog.xml catalog.tei catalog.xml $DESTDIR
install -m644 *.dtd $DESTDIR
install -m644 *.ent $DESTDIR
install -m644 *.dec $DESTDIR

%Files
%defattr (-,root,root)
%doc index.html index.xml
%{sgmlbase}/TEI/dtd-%{dtdver}

# Catalogs management left for brave packagers.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9159 |21cr|tei-xsl-5.2.16-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sgmlbase %{_datadir}/sgml/

Summary:	Sebastian Rahtz's modular stylesheets for TEI
Name:		tei-xsl
Version:	5.2.16
Release:	4
License:	Artistic like
Group:		Publishing
Url:		http://www.tei-c.org/Stylesheets/teixsl.html
# ZIP spurce downloadable at http://sourceforge.net/project/showfiles.php?group_id=106328&package_id=141124
Source0:	%{name}-%{version}.tar.bz2
Requires:	TEI-DTD
Requires:	sgml-common
Provides:	TEI-style-html
BuildArch:	noarch

%description
These XSL stylesheets allow to convert any TEI document
to the HTML, FO and LaTeX formats.

%files
%doc doc/*
%{sgmlbase}/TEI/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
DESTDIR=%{buildroot}%{sgmlbase}/TEI/xsl-stylesheets-%{version}
mkdir -p $DESTDIR
cp -a p4 p5 $DESTDIR

ln -sf xsl-stylesheets-%{version} \
	%{buildroot}%{sgmlbase}/TEI/xsl-stylesheets

# Catalogs management left for brave packagers.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9160 |21cr|telegnome-0.3.6-0.git2deb5a.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 2deb5ad9a8b3188ed2109afc6d21b22ffab873bd
%define commit_short %(echo %{commit} | head -c6)

Summary:	Graphical teletext viewer
Name:		telegnome
Version:	0.3.6
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/telegnome
Source0:	https://github.com/GNOME/telegnome/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	vala
BuildRequires:	yelp-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uuid)

%description
Graphical teletext viewer.

%files -f %{name}.lang
%doc README
%license COPYING
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_iconsdir}/hicolor/*x*/apps/%{name}.png

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
sed -i "/YELP_HELP_INIT\|AX_IS_RELEASE\|AX_CHECK_ENABLE_DEBUG\|doc/d" configure.ac
sed -i "s/ doc//" Makefile.am
autoreconf -fi
%configure
%make

%install
%make_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9161 |21cr|telegram-desktop-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# See also:
# https://github.com/rpmfusion/telegram-desktop

# XXX rpmlint fails (it has a bug)
#DEBUG:   File "/usr/share/rpmlint/AbstractCheck.py", line 51, in check
#DEBUG:     return self.check_binary(pkg)
#DEBUG:   File "/usr/share/rpmlint/DistributionCheck.py", line 40, in check_binary
#DEBUG:     for fname in pkg.files():
#DEBUG:   File "/usr/share/rpmlint/Pkg.py", line 633, in files
#DEBUG:     self._gatherFilesInfo()
#DEBUG:   File "/usr/share/rpmlint/Pkg.py", line 718, in _gatherFilesInfo
#DEBUG:     pkgfile.size = sizes[idx]
#DEBUG: IndexError: list index out of range
%global _build_pkgcheck_set /bin/true

# Telegram Desktop require patched version of rlottie since 1.8.0.
# Pull Request pending: https://github.com/Samsung/rlottie/pull/252
%bcond_with rlottie
%bcond_without spellcheck
%bcond_without fonts
%bcond_without gsl

# Telegram Desktop's constants...
%global appname tdesktop
%global launcher telegramdesktop
%global tarsuffix -full

# Telegram API tokens...
%global apiid 208164
%global apihash dfbe1bc42dc9d20507e17d1814cc2f0a

# From https://github.com/telegramdesktop/tdesktop/blob/v%{version}/snap/snapcraft.yaml
%define tg_owt_commit 91d836dc84a16584c6ac52b36c04c0de504d9c34
# https://chromium.googlesource.com/libyuv/libyuv
# Commit hash is from https://github.com/desktop-app/tg_owt/tree/master/src/third_party
%define libyuv_commit ad890067f661dc747a975bc55ba3767fe30d4452

# Decrease debuginfo verbosity to reduce memory consumption...
%if %{__isa_bits} == 32
%global debugcflags %{nil}
%global debug_package %{nil}
%endif

Name: telegram-desktop
Version:	3.0.1
Release:	1
Group:	Networking/Instant messaging

# Application and 3rd-party modules licensing:
# * Telegram Desktop - GPLv3+ with OpenSSL exception -- main tarball;
# * rlottie - LGPLv2+ -- static dependency;
# * qt_functions.cpp - LGPLv3 -- build-time dependency.
License: GPLv3+ and LGPLv2+ and LGPLv3
URL: https://github.com/telegramdesktop/tdesktop
Summary: Telegram Desktop official messaging app

Source0: %{url}/releases/download/v%{version}/%{appname}-%{version}%{tarsuffix}.tar.gz
Source1: https://github.com/desktop-app/tg_owt/archive/%{tg_owt_commit}.tar.gz?/tg_owt-%{tg_owt_commit}.tar.gz
# API of libyuv is not stable, upstgream of tdesktop supports only bundled libyuv in tg_owt and tdesktop
Source2: https://chromium.googlesource.com/libyuv/libyuv/+archive/%{libyuv_commit}.tar.gz?/libyuv-%{libyuv_commit}.tar.gz

# Upstream rejected https://github.com/telegramdesktop/tdesktop/pull/8263
Patch1: ru.diff
# https://github.com/telegramdesktop/tdesktop/issues/16311#issuecomment-840784493
Patch2: Disable-register-custom-scheme.patch

# Telegram Desktop require exact version of Qt due to Qt private API usage.
%{?_qt5:Requires: %{_qt5}%{?_isa} = %{_qt5_version}}
Requires: qt5-qtimageformats%{?_isa}
Requires: hicolor-icon-theme

# Telegram Desktop require patched version of rlottie since 1.8.0.
# Pull Request pending: https://github.com/Samsung/rlottie/pull/252
%if %{with rlottie}
BuildRequires: rlottie-devel
%else
Provides: bundled(rlottie) = 0~git
%endif

# Telegram Desktop require patched version of lxqt-qtplugin.
# Pull Request pending: https://github.com/lxqt/lxqt-qtplugin/pull/52
Provides: bundled(lxqt-qtplugin) = 0.14.0~git
Provides:	telegram = %{EVRD}

# Compilers and tools...
BuildRequires: desktop-file-utils
BuildRequires: cmake
BuildRequires: gyp

# Development packages for Telegram Desktop...
%if %{with gsl}
BuildRequires: guidelines-support-library-devel
%endif
# seems that C++ standards do not match with system abseil-cpp, use bundled one
#BuildRequires: abseil-cpp-devel
BuildRequires: mapbox-variant-devel
BuildRequires: ffmpeg-devel
BuildRequires: expected-devel
BuildRequires: qr-code-generator-devel
BuildRequires: qr-code-generator-c++-devel
BuildRequires: openal-soft-devel
BuildRequires: qt5-qtbase-devel
BuildRequires: libstdc++-devel
BuildRequires: range-v3-devel
BuildRequires: openssl-devel
BuildRequires: minizip-devel
BuildRequires: xxhash-devel
BuildRequires: xcb-util-keysyms-devel
BuildRequires: appstream-util
BuildRequires: pkgconfig(jemalloc)
BuildRequires: pkgconfig(libpipewire-0.3)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(protobuf)
BuildRequires: pkgconfig(rnnoise)
BuildRequires: pkgconfig(liblzma)
BuildRequires: pkgconfig(glibmm-2.4)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(json11)
BuildRequires: pkgconfig(liblz4)
BuildRequires: pkgconfig(hunspell)
BuildRequires: pkgconfig(RapidJSON)
BuildRequires: qt5-devel
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(xcb)
BuildRequires: cmake(Qt5WaylandClient)
BuildRequires: cmake(KF5Wayland)
BuildRequires: cmake(ECM)
BuildRequires: pkgconfig(dbusmenu-qt5)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(xcomposite)
BuildRequires: pkgconfig(xdamage)
BuildRequires: pkgconfig(xrender)
BuildRequires: pkgconfig(xrandr)
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: ninja
BuildRequires: pkgconfig(gtk+-3.0)
# dlopen()'ed
Requires: libgtk-3.so.0%{_arch_tag_suffix}

%if %{with spellcheck}
BuildRequires: enchant2-devel
BuildRequires: glib2.0-devel
%endif

%if %{with fonts}
Requires: fonts-ttf-opensans
%endif

# for tg_owt
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(libavcodec)
BuildRequires: pkgconfig(libavformat)
BuildRequires: pkgconfig(libavresample)
BuildRequires: pkgconfig(libavutil)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(libswscale)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(opus)
BuildRequires: pkgconfig(protobuf)
BuildRequires: pkgconfig(vpx)
BuildRequires: pkgconfig(openh264)

%description
Telegram is a messaging app with a focus on speed and security, it’s super
fast, simple and free. You can use Telegram on all your devices at the same
time — your messages sync seamlessly across any number of your phones,
tablets or computers.

With Telegram, you can send messages, photos, videos and files of any type
(doc, zip, mp3, etc), as well as create groups for up to 50,000 people or
channels for broadcasting to unlimited audiences. You can write to your
phone contacts and find people by their usernames. As a result, Telegram is
like SMS and email combined — and can take care of all your personal or
business messaging needs.

%prep
# Unpacking Telegram Desktop source archive...
%autosetup -n %{appname}-%{version}%{tarsuffix} -p1 -a1

# Patching default desktop file...
desktop-file-edit --set-key=Exec --set-value="%{_bindir}/%{name} -- %u" --copy-name-to-generic-name lib/xdg/telegramdesktop.desktop

%build

( cd tg_owt-%{tg_owt_commit}

# Make sure nothing pulls in superfluous bundled libraries
rm -rf src/third_party/libvpx cmake/libvpx.cmake src/third_party/openh264 cmake/libopenh264.cmake
sed -i'' -e '/include(cmake\/libvpx.cmake)/d' -e '/include(cmake\/libopenh264.cmake)/d' CMakeLists.txt

  ( cd src/third_party/libyuv && tar -xf %{SOURCE2} )

# (mikhailnov) Building a static library only because:
# - upstream of telegram-desktop officially supports only static linkage of tg_owt
# - there are some community efforts to support using it as a shared library
#   https://github.com/desktop-app/tg_owt/commit/13d889f52ebf5a1a54
# - but support of this may be dropped anytime
#   https://www.opennet.ru/opennews/art.shtml?num=54681
# - telegram-desktop is and will be the only consumer of tg_owt
# So, to my mind, it is absolutely OK to build a static version.
# The only advantage of the dynamic one is potentially a bit easier debugging.

# CMAKE_BUILD_TYPE should always be Release due to some hardcoded checks.

%cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \
    -DTG_OWT_USE_PROTOBUF:BOOL=ON \
    -DTG_OWT_PACKAGED_BUILD:BOOL=ON \
    -DBUILD_SHARED_LIBS=OFF
%make
)

%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -Dtg_owt_DIR="${PWD}/../tg_owt-%{tg_owt_commit}/build" \
%if %{without spellcheck}
    -DDESKTOP_APP_DISABLE_SPELLCHECK:BOOL=ON \
%endif
%if %{without fonts}
    -DDESKTOP_APP_USE_PACKAGED_FONTS:BOOL=OFF \
%endif
%if %{with rlottie}
    -DDESKTOP_APP_LOTTIE_USE_CACHE:BOOL=OFF \
%endif
    -DTDESKTOP_API_ID=%{apiid} \
    -DTDESKTOP_API_HASH=%{apihash}
%ninja_build

%install
%ninja_install -C build

%check
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{launcher}.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{launcher}.desktop

%files
%doc README.md changelog.txt
%license LICENSE LEGAL
%{_bindir}/%{name}
%{_datadir}/applications/%{launcher}.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_metainfodir}/%{launcher}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9162 |21cr|telepathy-sharp-0.13.2-0.svn2034.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rev 2034

Summary:	.NET package containing proxy classes for use in clients 
Name:		telepathy-sharp
Version:	0.13.2
Release:	0.svn%{rev}.5
License:	MIT
Group:		System/Libraries
Url:		http://tapioca-voip.sourceforge.net/wiki/index.php/SubProjects
Source0:	%{name}-rev%{rev}.tar.bz2
Patch0:		telepathy-sharp-dir.patch
Patch1:		telepathy-sharp-mcs.patch
BuildRequires:	gnome-common
BuildRequires:	ndesk-dbus-devel
BuildRequires:	pkgconfig(mono)
BuildArch:	noarch

%description
Telepathy-sharp is a .NET package containing proxy classes for use in clients. 

%files
%doc README
%{_prefix}/lib/mono/gac/INdT.Telepathy/
%{_prefix}/lib/mono/telepathy-sharp/INdT.Telepathy.dll

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Telepathy-sharp is a .NET package containing proxy classes for use in clients. 

%files devel
%{_datadir}/pkgconfig/telepathy-sharp.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p0
%patch1 -p1

%build
./autogen.sh
./configure \
	--prefix=%{_prefix}
make

%install
%makeinstall_std \
	pkgconfigdir=%{_datadir}/pkgconfig \
	INdT_Telepathydir=%{_prefix}/lib/mono/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9163 |21cr|telepathy-sofiasip-0.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           telepathy-sofiasip
Version:        0.7.1
Release:        4
Summary:        A SIP protocol implementation for the Telepathy stack
Group:          Networking/Instant messaging
License:        LGPLv2+
URL:            http://%{name}.sf.net
Source0:        http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(telepathy-glib)
BuildRequires:  libxslt-proc
BuildRequires:  pkgconfig(sofia-sip-ua-glib)
BuildRequires:  python2
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
Requires:       telepathy-filesystem

%description
telepathy-sofiasip is a SIP-protocol connection manager (protocol plugin)
for the Telepathy (http://telepathy.freedesktop.org) framework based on
SofiaSIP-stack.

%files
%doc COPYING AUTHORS
%{_datadir}/dbus-1/services/*.service
%{_datadir}/telepathy/managers/*.manager
%{_libexecdir}/%{name}
%{_mandir}/man*/*
%{_includedir}/telepathy-sofiasip-0.6/tpsip/*.h


%prep
%setup -q

%build
export PYTHON=%__python2
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9164 |21cr|tellico-3.4.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A collection manager
Name:		tellico
Version:	3.4.6
Release:	2
Epoch:		3
License:	GPLv2+
Group:		Databases
Url:		http://tellico-project.org/
Source0:	http://www.tellico-project.org/files/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	imagemagick
BuildRequires:	kde5-macros
BuildRequires:	gettext-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5cddb-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5sane-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(libexslt)
BuildRequires:	pkgconfig(libv4l2) >= 0.8.3
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5Core) >= 5.6.2
BuildRequires:	pkgconfig(Qt5Charts)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(yaz) >= 3.0
%rename	bookcase

%description
Tellico is a collection manager for KF5. It includes default collections for
books, bibliographies, comic books, videos, music, coins, stamps, trading
cards, and wines, and also allows custom collections. Unlimited user-defined
fields are allowed. Filters are available to limit the visible entries by
definable criteria. Full customization for printing is possible through
editing the default XSLT file. It can import CSV, Bibtex, and Bibtexml and
export CSV, HTML, Bibtex, Bibtexml, and PilotDB. Entries may be imported
directly from different web services such as amazon.com.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING README.md
%{_kde5_docdir}/HTML/*/%{name}/*
%{_kde5_sysconfdir}/xdg/%{name}*
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_kde5_xmlguidir}/%{name}/%{name}ui.rc
%{_kde5_datadir}/config.kcfg/%{name}_config.kcfg
%{_kde5_datadir}/kconf_update/%{name}*
%{_kde5_datadir}/metainfo/org.kde.%{name}.appdata.xml
%{_kde5_datadir}/mime/packages/%{name}.xml
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.png
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-%{name}.png
%{_kde5_datadir}/%{name}/*
%{_kde5_datadir}/knsrcfiles/*.knsrc

#--------------------------------------------------------------------

%prep
%setup -q


%build
%cmake_kde5 -DENABLE_WEBCAM="TRUE" -DBUILD_TESTS="FALSE"
%make


%install
%makeinstall_std -C build

# Remove the executable bit wrongly set by the installation process
chmod -x %{buildroot}%{_kde5_applicationsdir}/org.kde.%{name}.desktop

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9165 |21cr|teng-2.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Templating engine writen in C++
Name:		teng
Version:	2.1.1
Release:	5
License:	LGPLv2+
Group:		System/Libraries
Url:		http://teng.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/teng/%{name}-%{version}.tar.gz
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	libtool

%description
Teng is a general purpose templating engine writen in C++ (i.e. library). It is
also available as Python module or PHP extension. The main idea of teng is to
strictly separate application logic from presentation layer. Widely used on
dynamic web sites.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The shared Teng libraries
Group:		System/Libraries

%description -n %{libname}
Teng is a general purpose templating engine writen in C++ (i.e. library). It is
also available as Python module or PHP extension. The main idea of teng is to
strictly separate application logic from presentation layer. Widely used on
dynamic web sites.

This package contains the shared Teng libraries.

%files -n %{libname}
%doc COPYING README INSTALL AUTHORS
%{_libdir}/libteng.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from Teng
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files from Teng.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libteng.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#autoreconf -fi
%configure

%make

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9166 |21cr|tenr-de-styles-pkg-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           tenr-de-styles-pkg
Version:        1.1
Release:        6
Summary:        A collection of styles for fluxbox

Group:          Graphical desktop/Other
License:        Creative Commons Attribution-ShareAlike 2.5
URL:            http://tenr.de
Source0:        http://tenr.de/files/%{name}-%{version}.tar.bz2
Buildarch:      noarch
Requires:       fluxbox

%define  _styledir %{_datadir}/%{name}-%{version}

%description
A collection of styles/themes for use with Fluxbox. All styles/themes are
compatible with fluxStyle.

%prep
%setup -q
# I keep finding files and dirs with the wrong premissions on them in the tar
# balls from upstream
find styles/ \( -type d -exec chmod 755 '{}' \; -o -type f -exec chmod 644 '{}' \; \)

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT%{_styledir}/
cp -a styles $RPM_BUILD_ROOT%{_styledir}/

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc README NEWS License
%dir %{_styledir}
%{_styledir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9167 |21cr|tenshi-0.15-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Log monitoring program
Name:		tenshi
Version:	0.15
Release:	4
Group:		Monitoring
License:	Public Domain
Url:		http://www.inversepath.com/tenshi.html
Source0:	http://dev.inversepath.com/download/%{name}/%{name}-%{version}.tar.gz
Source1:	tenshi.service
Source2:	tenshi.rosa-conf
Source3:        %{name}.tmpfiles.d
Patch0:		tenshi-0.14-buildfix.diff
Requires:	perl

%define debug_package %{nil}

%description
tenshi is a log monitoring program, designed to watch one or more log
files for lines matching user defined regular expressions and report
on the matches. The regular expressions are assigned to queues which
have an alert interval and a list of mail recipients.

%prep
%setup -q
%patch0 -p1

%build

%install
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}.d
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_mandir}/man8/

%makeinstall

rm -rf %{buildroot}%{_sysconfdir}/%{name}
install -m0644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -m755 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}.conf
mkdir -p %{buildroot}/var/log/%{name}
mkfifo %{buildroot}/var/log/%{name}.fifo

sed "s:sysconfig:%{_sysconfdir}/sysconfig:" -i %{buildroot}%{_unitdir}/%{name}.service

install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%pre
%_pre_useradd %{name} /dev/null /sbin/nologin

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post %{name}
if [ ! -n "`grep '/var/log/tenshi.fifo' %{_sysconfdir}/security/msec/perms.conf`" ] ; then
	echo "/var/log/tenshi.fifo	current.tenshi 640" >> \
		%{_sysconfdir}/security/msec/perms.conf
fi

if [ ! -n "`grep '# BEGIN: Automatically added by tenshi installation' /etc/syslog-ng.conf`" ] ; then
cat << EOF >> /etc/syslog-ng.conf
# BEGIN: Automatically added by tenshi installation
destination d_tenshi {
	pipe("/var/log/tenshi.fifo"
	group(tenshi)
	perm(0640)
	);
};
filter f_level_tenshi { level(debug..emerg); };
log { source(s_sys); filter(f_level_tenshi); destination(d_tenshi); };
# END
EOF

elif [ ! -n "`grep '# BEGIN: Automatically added by tenshi installation' %{_sysconfdir}/syslog.conf`" ] ; then
cat << EOF >> %{_sysconfdir}/syslog.conf
# BEGIN: Automatically added by tenshi installation
*.*					-/var/log/tenshi.fifo
# END
EOF

elif [ -d %{_sysconfdir}/rsyslog.d ] ; then
	if [ ! -e %{_sysconfdir}/rsyslog.d/tenshi.conf ] ; then
		cat << EOF >> %{_sysconfdir}/rsyslog.d/tenshi.conf
# Create by tenshi install
*.* |/var/log/tenshi.fifo
EOF
	fi

else
	echo "Not found your syslog daemon's config file."
	echo "Please setup with your hand."
fi

%preun
%systemd_preun %{name}
%_preun_syslogdel 

%postun
%_postun_userdel %{name}
if [ ! -e %{_sysconfdir}/rsyslog.d/tenshi.conf ] ; then
	rm -f %{_sysconfdir}/rsyslog.d/tenshi.conf
fi

%files
%defattr(644,root,root,755)
%doc README INSTALL CREDITS LICENSE Changelog FAQ tenshi.conf
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0644,root,root) %{_unitdir}/%{name}.service
%attr(755,root,root) %{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*
%dir %attr(755,root,root) %{_sysconfdir}/%{name}.d
%attr(644,root,tenshi) /var/log/%{name}.fifo
%{_tmpfilesdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9168 |21cr|tepl-4.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 4
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Text editor product line
Name:		tepl
Version:	4.4.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://wiki.gnome.org/Projects/Tepl
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/tepl/%{url_ver}/tepl-%{version}.tar.xz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uchardet)
BuildRequires:	pkgconfig(amtk-5)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	gtk-doc

%description
Tepl is a library that eases the development of GtkSourceView-based text
editors and IDEs. Tepl is the acronym for "Text editor product line".

#----------------------------------------------------------------------------

%package i18n
Summary:	Translations for %{name}
Group:		System/Internationalization

%description i18n
Translations for %{name}.

%files i18n -f %{name}-%{api}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{libname}
%{_libdir}/libtepl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Tepl-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc AUTHORS NEWS README
%{_includedir}/tepl-%{api}/
%{_libdir}/libtepl-%{api}.so
%{_libdir}/pkgconfig/tepl-%{api}.pc
%{_datadir}/gir-1.0/Tepl-%{api}.gir
%{_datadir}/gtk-doc/html/tepl-*/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure 
%make

%install
%make_install

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9169 |21cr|tepl-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Text editor product line
Name:		tepl
Version:	5.0.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://wiki.gnome.org/Projects/Tepl
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/tepl/%{url_ver}/tepl-%{version}.tar.xz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uchardet)
BuildRequires:	pkgconfig(amtk-5)
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	cmake

%description
Tepl is a library that eases the development of GtkSourceView-based text
editors and IDEs. Tepl is the acronym for "Text editor product line".

#----------------------------------------------------------------------------

%package i18n
Summary:	Translations for %{name}
Group:		System/Internationalization

%description i18n
Translations for %{name}.

%files i18n -f %{name}-%{api}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{libname}
%{_libdir}/libtepl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Tepl-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc AUTHORS NEWS README
%{_includedir}/tepl-%{api}/
%{_libdir}/libtepl-%{api}.so
%{_libdir}/pkgconfig/tepl-%{api}.pc
%{_datadir}/gir-1.0/Tepl-%{api}.gir
%{_datadir}/gtk-doc/html/tepl-*/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9170 |21cr|termhelper-0.2-20210421
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev	9bcc657
%define gitdate 20210420

### #!/bin/bash
### git clone https://github.com/betcher/termhelper.git 
### pushd ./termhelper
### hash="$(git log -1 --format='%h')" 
### date="$(git log -1 --format='%cd' --date=short | tr -d -)"
### rm -rf .git
### tar czf ../termhelper-${date}-git${hash}.tar.gz ../termhelper
### popd
### sed -i '/^.define/s/gitdate.*/gitdate '"$date"'/' ./termhelper.spec
### sed -i '/^.define/s/gitrev.*/gitrev	'"$hash"'/' ./termhelper.spec
### sed -i 's/^Release.*/Release:	'"$date"'/' ./termhelper.spec

# To get sources and set version please run: 
# cat ./termhelper.spec |sed -e '/^###/!d' -e 's/^###[[:space:]]*//' > ./spec.updater ; bash ./spec.updater

Summary:	Terminal based help system
Name:		termhelper
Version:	0.2
Release:	20210421
License:	GPLv3
Group:		System/Base
Url:		https://github.com/betcher/termhelper
Source0:	%{name}-%{gitdate}-git%{gitrev}.tar.gz
Source100:	%{name}.rpmlintrc
Requires:	bash
Requires:	gettext
Recommends:	bash-completion
Provides:	termhelper-ru
BuildArch:	noarch 

%description
Termhelper is a fork of termhelper-ru (https://abf.io/survolog/termhelper-ru), 
terminal based help system

%files
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%lang(ru) %{_localedir}/ru/LC_MESSAGES/termhelper.mo
%{_mandir}/*/*
%{_sysconfdir}/bash_completion.d/%{name}
%{_sysconfdir}/profile.d/%{name}.sh

#------------------------------------------------------------------

%prep
%setup -qn %{name}

%build

%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_datadir}/%{name} %{buildroot}%{_mandir}
mkdir -p %{buildroot}%{_sysconfdir}/{bash_completion.d,profile.d} %{buildroot}%{_localedir}
cp -f ./%{name} %{buildroot}%{_bindir}/
cp -fr ./helps/* %{buildroot}%{_datadir}/%{name}/
cp -fr ./locale/* %{buildroot}%{_localedir}
cp -fr ./man/* %{buildroot}%{_mandir}
cp -f ./bash-completion/%{name} %{buildroot}%{_sysconfdir}/bash_completion.d/
cp -f ./profile.d/%{name}.sh %{buildroot}%{_sysconfdir}/profile.d/
echo "alias справка=termhelper" >> %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
sed -i '/complete/s/\(.*\)/\1 справка/' %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9171 |21cr|termhelper-ru-0.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ru-en command helper for terminal
Name:		termhelper-ru
Version:	0.1.1
Release:	2
License:	GPL
Group:		Education
Url:		https://vk.com/rpmbuild
Source0:	%{name}
Source1:	%{name}-aliases
Requires:	locales-ru
BuildArch:	noarch

%description
%{summary}

%files
%{_sysconfdir}/profile.d/60termhelper-ru_alias.sh
%{_bindir}/справка

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}/
# We need name "справка" for the command to work immediately after package is installed
install -m755 %{SOURCE0} %{buildroot}%{_bindir}/справка
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/60termhelper-ru_alias.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9172 |21cr|terminology-1.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Terminal emulator that uses modern EFL
Name:		terminology
Version:	1.13.0
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/Enlightenment
Url:		http://www.enlightenment.org/
Source0:	https://download.enlightenment.org/rel/apps/%{name}/%{name}-%{version}.tar.xz
# Non-devel packages are needed to compile themes
BuildRequires:	meson
BuildRequires:	e
BuildRequires:	ecore
BuildRequires:	eet
BuildRequires:	edje
BuildRequires:	elementary-devel
BuildRequires:	emotion-devel
Requires:	edje
Requires:	elementary
Requires:	emotion
Requires:	ethumb

%description
EFL Terminal Emulator.

%files -f %{name}.lang
%doc AUTHORS README*
%license COPYING
%{_bindir}/%{name}
%{_bindir}/ty*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}
 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9173 |21cr|terminus-font-4.48-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontdir %{_datadir}/fonts/terminus
%define consolefontdir %{_prefix}/lib/kbd/consolefonts

Summary:        Fixed width font especially for long hacking sessions
Name:           terminus-font
Version:        4.48
Release:        2
License:        GPLv2+
Group:          System/Fonts/X11 bitmap
URL:            http://terminus-font.sourceforge.net/terminus-font
Source0:        http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:  perl
BuildRequires:	mkfontdir
BuildRequires:	bdftopcf
BuildRequires:	fontconfig
BuildRequires:	python3
BuildArch:	noarch

%description
The Terminus font is a complete set of fixed-size fonts designed
especially for the usage in terms and the console.

%files
%doc README
%{_sysconfdir}/X11/fontpath.d/terminus:unscaled:pri=50
%{consolefontdir}/*.psf.gz
%{fontdir}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
sh ./configure \
	--prefix=%{_prefix} \
	--psfdir=%{consolefontdir} \
	--x11dir=%{fontdir}

%install
%makeinstall_std \
	install-psf \
	fontdir

sed -e 's/.pcf.gz//' %{buildroot}%{fontdir}/fonts.dir | grep terminus > %{buildroot}%{fontdir}/fonts.alias

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{fontdir} %{buildroot}%{_sysconfdir}/X11/fontpath.d/terminus:unscaled:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9174 |21cr|terminus-font-4.49.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontdir %{_datadir}/fonts/terminus
%define consolefontdir %{_prefix}/lib/kbd/consolefonts

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:        Fixed width font especially for long hacking sessions
Name:           terminus-font
Version:        4.49.1
Release:        1
License:        GPLv2+
Group:          System/Fonts/X11 bitmap
URL:            http://terminus-font.sourceforge.net/terminus-font
Source0:        https://downloads.sourceforge.net/project/terminus-font/terminus-font-%{url_ver}/terminus-font-%{version}.tar.gz
BuildRequires:  perl
BuildRequires:	mkfontdir
BuildRequires:	bdftopcf
BuildRequires:	fontconfig
BuildRequires:	python3
BuildArch:	noarch

%description
The Terminus font is a complete set of fixed-size fonts designed
especially for the usage in terms and the console.

%files
%doc README
%{_sysconfdir}/X11/fontpath.d/terminus:unscaled:pri=50
%{consolefontdir}/*.psf.gz
%{fontdir}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
sh ./configure \
	--prefix=%{_prefix} \
	--psfdir=%{consolefontdir} \
	--x11dir=%{fontdir}

%install
%makeinstall_std \
	install-psf \
	fontdir

sed -e 's/.pcf.gz//' %{buildroot}%{fontdir}/fonts.dir | grep terminus > %{buildroot}%{fontdir}/fonts.alias

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{fontdir} %{buildroot}%{_sysconfdir}/X11/fontpath.d/terminus:unscaled:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9175 |21cr|termit-3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple terminal emulator based on vte library
Name:		termit
Version:	3.1
Release:	1
License:	GPLv2+
Group:		Terminals
Url:		https://github.com/nonstop/termit
Source0:	https://github.com/nonstop/termit/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(vte-2.91)

%description
TermIt is a simple terminal emulator based on vte library with a lot of 
features:
 * tabs
 * bookmarks
 * sessions
 * changing tab name
 * changing font for tabs
 * encodings (all available from GTK)
 * integrated lua interpreter
Configuration can be changed via $HOME/.config/termit/termit.cfg file.

%files -f %{name}.lang
%doc ChangeLog COPYING TODO
%doc doc/README doc/rc.lua.example doc/lua_api.txt doc/termit.svg
%{_bindir}/%{name}
%{_sysconfdir}/xdg/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/termit.metainfo.xml
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}
# fix paths in the README
sed -i 's!doc/!%{_docdir}/%{name}-%{version}!' ./doc/README
# LUA_INCLUDE_DIR is not set, which leads to problems and does not make sense,
# since the lua header files are in /usr/include
sed -i 's/-I${LUA_INCLUDE_DIR}//' src/CMakeLists.txt

%build
%cmake
%make

%install
%makeinstall_std -C build

desktop-file-install \
	--delete-original \
	--remove-category=Utility \
	--add-category=System \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}
# we install the docfiles versioned
rm -rf %{buildroot}%{_datadir}/doc/termit/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9176 |21cr|termsaver-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name termsaver
%define version 0.4

Summary:    Simple text-based terminal screensaver
Name:       %{name}
Version:    %{version}
Release:    1
License:    ASL 2.0
Group:      Text tools
Url:        http://termsaver.brunobraga.net
Source0:     https://files.pythonhosted.org/packages/9a/b0/4428c151d94b5358dd92b92c045cd40b448ff65a37b994ecb7252ad559f8/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig(python)
BuildRequires: pythonegg(setuptools)
BuildArch: noarch

%description
The motivation behind this project is basically pure boredom (laughs).
Seriously, it may look like nonsense to have a screensaver look-alike
program running on a terminal window.

%files  -f %{name}.lang
%doc README
%{_bindir}/%{name}
%{py2_puresitedir}/%{name}lib/
%{py2_puresitedir}/%{name}-%{version}-py?.?.egg-info
%{_mandir}/man1/%{name}.*
%{_datadir}/zsh/site-functions/_termsaver
%config(noreplace) %{_sysconfdir}/bash_completion.d/termsaver-completion.bash

#----------------------------------------------------------------
%prep
%setup -q

%build
%py2_build

%install
%py2_install
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
mv %{buildroot}/usr/etc/bash_completion.d/termsaver-completion.bash \
  %{buildroot}%{_sysconfdir}/bash_completion.d/termsaver-completion.bash
rm -fr %{buildroot}/usr/etc


%{find_lang} %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9177 |21cr|termshark-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=off
%global goipath github.com/gcla/termshark/v2

Name:		termshark
Version:	2.4.0
Release:	1
Summary:	A terminal UI for tshark
License:	MIT
Group:		Development/Other
URL:		https://termshark.io/
Source0:	https://github.com/gcla/termshark/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# run 'go mod vendor' in source dir and tar.gz vendor dir
Source2:	vendor.tar.gz
BuildRequires:	golang
BuildRequires:	upx
Requires:	tshark
%gometa

%description
A terminal user-interface for tshark, inspired by Wireshark

%files
%doc README.md docs
%{_bindir}/%{name}
#-------------------------------------------------------------

%prep
%goprep

%build
tar -xf %{SOURCE2}
cp -r ./vendor/* _build/src/
%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/cmd/%{name}

upx %{gobuilddir}/bin/%{name}

%install
install -d %{buildroot}%{_bindir}
install -Dm0755 %{gobuilddir}/bin/%{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9178 |21cr|termusic-0.7.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           termusic
Version:        0.7.11
Release:        1
Summary:        Music Player TUI written in Rust
Group:          Sound
License:        GPLv3 MIT
Url:            https://github.com/tramhao/termusic
Source0:        https://github.com/tramhao/termusic/v%{version}/%{name}-%{version}.tar.gz
# generated with cargo vendor
Source1:        %{name}-crates-%{version}.tar.xz

BuildRequires:  cargo
BuildRequires:  rust
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(alsa)
BuildRequires:  gstreamer1.0-plugins-base
BuildRequires:  gstreamer1.0-plugins-good
BuildRequires:  gstreamer1.0-plugins-bad
BuildRequires:  gstreamer1.0-plugins-ugly
BuildRequires:  gstreamer1.0-ffmpeg
BuildRequires:  dbus
BuildRequires:  pkgconfig(protobuf)
BuildRequires:  python3egg(ueberzug)
BuildRequires:  pkgconfig(mpv)
BuildRequires:  yt-dlp
BuildRequires:  ffmpeg
BuildRequires:  python3egg(ueberzug)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  imagemagick

Requires:  mpv
Requires:  yt-dlp
Requires:  ffmpeg



%description
Terminal Music Player written in Rust.

%files
%doc *.md LICENSE*
%{_bindir}/%{name}
%{_bindir}/%{name}-server
%{_datadir}/termusic/

#---------------------------

%prep
%autosetup -a1
%{__mv} %{name}-%{version}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use our offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"
cat >.cargo/config <<EOF
[source.crates-io]
replace-with = 'vendored-sources'

[source.vendored-sources]
directory = '$PWD/vendor'
EOF

find -name "*.rs"  -exec chmod 0644 {} \;


%build
export CARGO_HOME="$(pwd)/.cargo"
RUSTFLAGS=-g cargo build --all-targets --release --offline --frozen


%install
# export CARGO_HOME="$(pwd)/.cargo"
# RUSTFLAGS=-g cargo install --features mpris,cover,discord --offline --frozen \
#     --no-track --root=%{buildroot}%{_prefix} --path .

install -Dm 755 "target/release/%{name}" -t "%{buildroot}%{_bindir}"
install -Dm 755 "target/release/%{name}-server" -t "%{buildroot}%{_bindir}"

mkdir -p %{buildroot}%{_datadir}/termusic
cp -R lib/themes %{buildroot}%{_datadir}/termusic/themes

%check
# usefull only if build with --debug
# cargo test --frozen


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9179 |21cr|test-selinux-socket-mls-3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: test-selinux-socket-mls
Summary: Small test of SELinux MLS via network
License: GPLv3
Group: Development/Other
Version: 3
Release: 1
Url: https://abf.rosalinux.ru/import/test-selinux-socket-mls
Source10: test-selinux-socket-mls.sh
Source11: test-selinux-socket-mls@.service
Source12: test-selinux-socket-mls.socket
Source13: Makefile
Source14: test-selinux-socket-mls.sysusers.conf
BuildRequires: make
BuildRequires: sed
BuildRequires: systemd-units
Requires(pre): /bin/systemd-sysusers
BuildArch: noarch

%description
Small demonstration of SELinux MLS via network
Run "nc ip 8080" to connect.

%files
%{_bindir}/%{name}
%{_unitdir}/%{name}@.service
%{_unitdir}/%{name}.socket
%{_presetdir}/80-%{name}.preset
%{_userunitdir}/%{name}@.service
%{_userunitdir}/%{name}.socket
%{_userpresetdir}/80-%{name}.preset
%{_sysusersdir}/%{name}.conf
%attr(0755,zhora-mls,zhora-mls) /var/lib/zhora-mls

%pre
%sysusers_create_package %{name} %{SOURCE14}

%post
%systemd_post %{name}.socket
%systemd_user_post %{name}.socket

%preun
%systemd_preun %{name}.socket
%systemd_user_preun %{name}.socket

%postun
%systemd_postun_with_restart %{name}.socket
%systemd_user_postun_with_restart %{name}.socket

#------------------------------------------------------------

%prep
cp %sources .

%install
%makeinstall_std SSDIR=%{_unitdir} SUDIR=%{_userunitdir} BINDIR=%{_bindir}

mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE14} %{buildroot}%{_sysusersdir}/%{name}.conf
mkdir -p %{buildroot}/var/lib/zhora-mls

mkdir -p %{buildroot}%{_presetdir}
echo "disable %{name}.socket" >> %{buildroot}%{_presetdir}/80-%{name}.preset
mkdir -p %{buildroot}%{_userpresetdir}
echo "disable %{name}.socket" >> %{buildroot}%{_userpresetdir}/80-%{name}.preset

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9180 |21cr|tetrinetx-1.13.16-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	qversion 1.40c

Summary:	TetriNET server
Name:		tetrinetx
Version:	1.13.16
Release:	10
License:	GPL
Group:		Games/Other
URL:		http://tetrinetx.sf.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
Source:		%{name}-%{version}+qirc-%{qversion}.tar.bz2
Source1:	%{name}.init.bz2
# (Abel) 1.3.16-1mdk don't search for all files under cwd
Patch0:		%{name}-1.13.16-filepath.patch.bz2
# (Abel) 1.3.16-1mdk more secure default config
Patch1:		%{name}-1.13.16-config.patch.bz2
BuildRequires:	libadns-devel
Requires(post,preun):	rpm-helper

%description
Tetrinet is a multiplayer tetris game with special blocks and supports
up to 6 players at once. You can choose either playing team with your
buddies or individually against all tetrinet addicts around the world.
You can also chat with other players during the game.

Tetrinet-x is an open source implementation of Tetrinet server.

%prep
%setup -q -n %{name}-%{version}+qirc-%{qversion}
%patch0 -p1 -b .filepath
%patch1 -p1

%build
cd src
%__cc $RPM_OPT_FLAGS -fno-omit-frame-pointer -Wall main.c -o tetrix -ladns

%install
rm -rf %{buildroot}
install -D -m 0755 src/tetrix %{buildroot}%{_gamesbindir}/tetrix

mkdir -p %{buildroot}%{_initrddir}
bzcat %{SOURCE1} > %{buildroot}%{_initrddir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/%{name}
install -m 0644 bin/* %{buildroot}%{_sysconfdir}/%{name}/

mkdir -p %{buildroot}/var/log/%{name}
mkdir -p %{buildroot}%{_localstatedir}/lib/games/%{name}
touch %{buildroot}%{_localstatedir}/lib/games/%{name}/game.winlist{,2,3}

%clean
rm -rf %{buildroot}

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%defattr(0644,root,root,0755)
%doc AUTHORS ChangeLog COPYING README README.qirc.spectators
%attr(2555,root,games) %{_gamesbindir}/*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/game.allow
%config(noreplace) %{_sysconfdir}/%{name}/game.ban
%config(noreplace) %{_sysconfdir}/%{name}/game.ban.compromise
%config(noreplace) %{_sysconfdir}/%{name}/game.conf
%config(noreplace) %{_sysconfdir}/%{name}/game.motd
%config(noreplace) %{_sysconfdir}/%{name}/game.pmotd
%attr(0755,root,root) %config(noreplace) %{_initrddir}/%{name}

%defattr(0640,root,games)
%config(noreplace) %{_sysconfdir}/%{name}/game.secure

%defattr(0660,root,games,0770)
%dir %{_localstatedir}/lib/games/tetrinetx
%ghost %{_localstatedir}/lib/games/tetrinetx/game.winlist
%ghost %{_localstatedir}/lib/games/tetrinetx/game.winlist2
%ghost %{_localstatedir}/lib/games/tetrinetx/game.winlist3
%dir /var/log/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9181 |21cr|tetzle-2.1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tetzle
Version:	2.1.6
Release:	2
Summary:	Jigsaw puzzle game with tetrominoes
License:	GPLv3
Group:		Games/Puzzles
URL:		http://gottcode.org/tetzle/
Source:		http://gottcode.org/tetzle/%{name}-%{version}-src.tar.bz2
BuildRequires:	qt5-devel
BuildRequires:	qt5-linguist-tools


%description
A jigsaw puzzle game that uses tetrominoes for the pieces.
Any image can be imported and used to create puzzles with
a wide range of sizes. Games are saved automatically, and
you can select between currently in progress games.


%files  -f %{name}.lang
%doc COPYING CREDITS ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_datadir}/pixmaps/%{name}.xpm
%{_appdatadir}/%{name}.appdata.xml
%{_mandir}/man6/tetzle.6.*

#-----------------------------------------------------------
%prep
%setup -q 

# not needed crap
rm -fr mac_deploy.sh windows_deploy.bat windows

%build
%setup_compile_flags
%qmake_qt5 PREFIX=%{_prefix}
%make

%install
%makeinstall_qt

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=Tetzle
GenericName=Jigsaw Puzzle Game
GenericName[de]=Jigsaw Puzzle Spiel
Comment=Jigsaw puzzle with tetromino pieces
Comment[de]=Jigsaw Puzzle mit Tetromino Stücke
Icon=tetzle
Exec=tetzle
Terminal=false
Categories=Game;LogicGame;
EOF


%{find_lang} %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9182 |21cr|tex2im-1.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name 	tex2im
%define version 1.8
%define release 6

Summary: 	A simple tool for converting LaTeX formulas into pixmap graphics
Name: 		tex2im
Version: 	1.8
Release: 	6
Source0: 	%{name}-%{version}.tar.bz2
License: 	GPL
Group: 		Publishing
Url: 		http://www.nought.de/tex2im.php
BuildArchitectures: noarch
Requires: 	imagemagick, tetex-latex, bash
Provides: 	tex2im = %{version}-%{release}

%description
Tex2im is a simple tool that converts LaTeX formulas into high resolution
pixmap graphics for inclusion in text processors or presentations. Many 
different graphics formats are supported.

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
%{__install} -d -m0755 %{buildroot}%{_bindir}
%{__install} -m0755 tex2im %{buildroot}%{_bindir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGELOG README LICENSE examples/
%{_bindir}/tex2im

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9183 |21cr|texlive-12many-0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/12many
# catalog-date 2008-10-03 01:00:01 +0200
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-12many
Version:	0.3
Release:	9
Summary:	Generalising mathematical index sets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/12many
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/12many.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/12many.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/12many.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
In the discrete branches of mathematics and the computer
sciences, it will only take some seconds before you're faced
with a set like {1,...,m}. Some people write $1\ldotp\ldotp m$,
others $\{j:1\leq j\leq m\}$, and that journal you're
submitting to might want something else entirely. The 12many
package provides an interface that makes changing from one to
another a one-line change.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/12many/12many.sty
%doc %{_texmfdistdir}/doc/latex/12many/12many.pdf
%doc %{_texmfdistdir}/doc/latex/12many/README
#- source
%doc %{_texmfdistdir}/source/latex/12many/12many.dtx
%doc %{_texmfdistdir}/source/latex/12many/12many.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9184 |21cr|texlive-a2ping-2.83p-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category TLCore
# catalog-ctan /graphics/a2ping/a2ping.pl
# catalog-date 2012-04-13 20:01:51 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-a2ping
Version:	2.83p
Release:	1
Epoch:		1
Summary:	Advanced PS, PDF, EPS converter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/a2ping/a2ping.pl
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/a2ping.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/a2ping.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-a2ping.bin = %{EVRD}

%description
a2ping is a Perl script command line utility written for Unix
that converts many raster image and vector graphics formats to
EPS or PDF and other page description formats. Accepted input
file formats are: PS (PostScript), EPS, PDF, PNG, JPEG, TIFF,
PNM, BMP, GIF, LBM, XPM, PCX, TGA. Accepted output formats are:
EPS, PCL5, PDF, PDF1, PBM, PGM, PPM, PS, markedEPS, markedPS,
PNG, XWD, BMP, TIFF, JPEG, GIF, XPM. a2ping delegates the low-
level work to Ghostscript (GS), pdftops and sam2p. a2ping fixes
many glitches during the EPS to EPS conversion, so its output
is often more compatible and better embeddable than its input.

#-----------------------------------------------------------------------
%files
%{_bindir}/a2ping
%{_texmfdistdir}/scripts/a2ping/a2ping.pl
%doc %{_mandir}/man1/a2ping.1*
%doc %{_texmfdistdir}/doc/man/man1/a2ping.man1.pdf
%doc %{_texmfdistdir}/doc/support/a2ping/HISTORY.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/a2ping/a2ping.pl a2ping
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9185 |21cr|texlive-aaai-named-52470-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname aaai-named

Summary:	BibTeX style for AAAI
Name:		texlive-aaai-named
Version:	52470
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
A BibTeX style derived from the standard master, presumably for
use with the aaai package.

%files
%{_texmfdistdir}/bibtex/bst/aaai-named

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9186 |21cr|texlive-aalok-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname aalok

Summary:	LaTeX class file for the Marathi journal 'Aalok'
Name:		texlive-aalok
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(aalok.cls) = 2024
BuildArch:	noarch

%description
aalok mraatthii niytkaalikaacii akssrjulnnii krnnyaakritaa
laattek-vrg. This package provides the class file for
typesetting 'Aalok', a Marathi journal with LaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/aalok
%{_texmfdistdir}/tex/latex/aalok

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9187 |21cr|texlive-abbr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/generic/abbr
# catalog-date 2007-05-25 16:15:27 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-abbr
Version:	20190228
Release:	1
Summary:	Simple macros supporting abreviations for Plain and LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/abbr
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abbr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abbr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Abbr is a set of some simple macros to support abbreviations in
Plain or LaTeX. It allows writing e.g. \<TEX> instead of \TeX,
hence frees users from having to escape space after
parameterless macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/abbr/abbr.tex
%doc %{_texmfdistdir}/doc/generic/abbr/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9188 |21cr|texlive-abntexto-65705-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname abntexto

Summary:	LaTeX class for formatting academic papers in ABNT standards
Name:		texlive-abntexto
Version:	65705
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(abntexto.cls) = 2024
BuildArch:	noarch

%description
This is a LaTeX class created for Brazilian students to
facilitate the use of standards from the Associacao Brasileira
de Normas Tecnicas (ABNT) in academic works like TCCs,
dissertations, theses.

%files
%doc %{_texmfdistdir}/doc/latex/abntexto
%{_texmfdistdir}/tex/latex/abntexto

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9189 |21cr|texlive-aboensis-62977-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname aboensis

Summary:	A late medieval OpenType cursive font
Name:		texlive-aboensis
Version:	62977
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(aboensis.sty) = 2024
BuildArch:	noarch

%description
The package contains the free OpenType medieval cursive font
Aboensis and a style file to use it in XeLaTeX documents. The
font is based on Codex Aboensis, that is a law book written in
Sweden in the 1430s. Since medieval cursive is very difficult
to read for modern people, the font is not suitable for use as
an ordinary book font, but is intended for emulating late
medieval manuscripts. The font contains two sets of initials:
Lombardic and cursive to go with the basic alphabet, and there
is support for writing two-colored initials and capitals. There
are also a large number of abbreviation sigla that can be
accessed as ligature substitutions. The style file contains
macros that help to use the extended features of the font such
as initials and two-colored capitals. There are also macros to
help achieve even pages with consistent line spacing.

%files
%doc %{_texmfdistdir}/doc/fonts/aboensis
%{_texmfdistdir}/fonts/opentype/public/aboensis
%{_texmfdistdir}/tex/latex/aboensis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9190 |21cr|texlive-abspos-64465-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname abspos

Summary:	Absolute placement with coffins
Name:		texlive-abspos
Version:	64465
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(abspos.sty) = 2024
BuildArch:	noarch

%description
This package lets you place contents at an absolute position,
anchored at some specified part of the contents, similar to how
TikZ nodes work, though without using the two-pass strategy of
TikZ. It also avoids messing with the order of beamer overlays,
which is what happens when one uses the textpos package with
the overlay option. The solution used is quite straightforward,
combining coffins (using l3coffins) with the placement
mechanisms of atbegshi.

%files
%doc %{_texmfdistdir}/doc/latex/abspos
%{_texmfdistdir}/tex/latex/abspos

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9191 |21cr|texlive-abstyles-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-abstyles
Version:	20190228
Release:	1
Summary:	Adaptable BibTeX styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/abstyles
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abstyles.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abstyles.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A family of modifications of the standard BibTeX styles whose
behaviour may be changed by changing the user document, without
change to the styles themselves. The package is largely used
nowadays in its adaptation for working with Babel.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/abstyles
%{_texmfdistdir}/bibtex/bst/abstyles
%{_texmfdistdir}/tex/generic/abstyles
%doc %{_texmfdistdir}/doc/bibtex/abstyles

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9192 |21cr|texlive-academicons-62622-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname academicons

Summary:	Font containing icons of online academic profiles
Name:		texlive-academicons
Version:	62622
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-academicons = 2024
Provides:	tex(academicons.sty) = 2024
Provides:	tex(academicons.ttf) = 2024
Provides:	tex(tuacademicons.fd) = 2024
BuildArch:	noarch

%description
The academicons package provides access in (La)TeX to 112 high
quality icons of online academic profiles included in the free
"Academicons" font. This package requires either the Xe(La)TeX
or Lua(La)TeX engine to load the "Academicons" font from the
system, which requires installing the bundled academicons.ttf
font file. As new releases come out, it is recommended to
install the bundled font version as there may be differences
between the package and previous font versions or newest font
versions not yet contemplated in the package. The "Academicons"
font was designed by James Walsh and released (see
http://jpswalsh.github.io/academicons/) under the open SIL Open
Font License. This package is a redistribution of the free
"Academicons" font with specific bindings for (La)TeX. It is
inspired and based on the fontawesome" package. The academicons
package provides the generic \aiicon command to access icons,
which takes as mandatory argument the name of the desired icon.
It also provides individual direct commands for each specific
icon. The full list of icons and their respective names and
direct commands can be found in the manual. For example,
\aiicon{googlescholar} yields the same result as
\aiGoogleScholar.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/truetype/public/academicons/
%{_texmfdistdir}/tex/latex/academicons/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9193 |21cr|texlive-accanthis-64844-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname accanthis

Summary:	Accanthis fonts, with LaTeX support
Name:		texlive-accanthis
Version:	64844
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex-accanthis = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalicLCDFJ.pfb) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ly1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ly1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ly1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ly1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ot1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ot1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ot1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ot1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-t1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-t1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-t1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-t1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ts1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ts1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic-lf-ts1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic.otf) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldItalic.pfb) = 2024
Provides:	tex(AccanthisADFStdNo3-BoldLCDFJ.pfb) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ly1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ly1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ly1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ly1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ot1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ot1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ot1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ot1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-t1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-t1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-t1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-t1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ts1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ts1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold-lf-ts1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold.otf) = 2024
Provides:	tex(AccanthisADFStdNo3-Bold.pfb) = 2024
Provides:	tex(AccanthisADFStdNo3-ItalicLCDFJ.pfb) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ly1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ly1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ly1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ly1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ot1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ot1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ot1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ot1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-t1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-t1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-t1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-t1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ts1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ts1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic-lf-ts1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic.otf) = 2024
Provides:	tex(AccanthisADFStdNo3-Italic.pfb) = 2024
Provides:	tex(AccanthisADFStdNo3-RegularLCDFJ.pfb) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ly1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ly1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ly1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ly1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ot1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ot1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ot1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ot1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-t1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-t1--lcdfj.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-t1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-t1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ts1--base.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ts1.tfm) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular-lf-ts1.vf) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular.otf) = 2024
Provides:	tex(AccanthisADFStdNo3-Regular.pfb) = 2024
Provides:	tex(accanthis.map) = 2024
Provides:	tex(accanthis.sty) = 2024
Provides:	tex(acnt_m4gnvn.enc) = 2024
Provides:	tex(acnt_qu6a6x.enc) = 2024
Provides:	tex(acnt_sjpjw4.enc) = 2024
Provides:	tex(acnt_z4e4wk.enc) = 2024
Provides:	tex(LY1AccanthisADFStdNoThree-LF.fd) = 2024
Provides:	tex(OT1AccanthisADFStdNoThree-LF.fd) = 2024
Provides:	tex(T1AccanthisADFStdNoThree-LF.fd) = 2024
Provides:	tex(TS1AccanthisADFStdNoThree-LF.fd) = 2024
BuildArch:	noarch

%description
Accanthis No. 3 is designed by Hirwin Harendal and is suitable
as an alternative to fonts such as Garamond, Galliard, Horley
old style, Sabon, and Bembo. The support files are suitable for
use with all LaTeX engines.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/accanthis/
%{_texmfdistdir}/fonts/map/dvips/accanthis/
%{_texmfdistdir}/fonts/opentype/arkandis/accanthis/
%{_texmfdistdir}/fonts/tfm/arkandis/accanthis/
%{_texmfdistdir}/fonts/type1/arkandis/accanthis/
%{_texmfdistdir}/fonts/vf/arkandis/accanthis/
%{_texmfdistdir}/tex/latex/accanthis/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9194 |21cr|texlive-accents-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-accents
Version:	1.4
Release:	1
Summary:	A package for multiple accents in mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/accents.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/accents.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for multiple accents in mathematics, with nice features 
concerning the creation of accents and placement of scripts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9195 |21cr|texlive-accessibility-55777-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname accessibility

Summary:	Create tagged and structured PDF files
Name:		texlive-accessibility
Version:	55777
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(accessibility.sty) = 2024
BuildArch:	noarch

%description
The accessibility package is intended to create tagged,
structured PDF documents from LaTeX source code. It allows to
produce tagged PDF output following Adobe's PDF-1.5 and 1.6
specifications. This package is predominantly targeted at
documents produced using the KOMA-Script document classes.

%files
%doc %{_texmfdistdir}/doc/latex/accessibility
%{_texmfdistdir}/tex/latex/accessibility

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9196 |21cr|texlive-accsupp-53052-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname accsupp

Summary:	Better accessibility support for PDF files
Name:		texlive-accsupp
Version:	53052
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(accsupp-dvipdfm.def) = 2024
Provides:	tex(accsupp-dvips.def) = 2024
Provides:	tex(accsupp-luatex.def) = 2024
Provides:	tex(accsupp-pdftex.def) = 2024
Provides:	tex(accsupp.sty) = 2024
BuildArch:	noarch

%description
Since PDF 1.5 portions of a page can be marked for better
accessibility support. For example, replacement texts or
expansions of abbreviations can be provided. This package
starts with providing a minimal low-level interface for
programmers; its status is experimental. Support necessary for
the package was added to the "distill" capabilities of
Ghostscript with version 9.15 of Ghostscript; the dvips is only
available with that version (or later).

%files
%doc %{_texmfdistdir}/doc/latex/accsupp
%{_texmfdistdir}/tex/latex/accsupp

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9197 |21cr|texlive-addfont-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-addfont
Version:	1.1
Release:	1
Summary:	Fixes fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	GNU General Public License
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/addfont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/addfont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is intended for use by users who know about fonts. It is a quick-fix for
fonts which does not have genuine LATEX support. It is not meant as a replacement of
the LATEX font definition files.
It is meant as something more useable for LATEX users than the \newfont command.
With addfont the loaded font scales along with the usual LATEX size selection.
Using this package still requires some knowledge on how to use fonts with LATEX. 
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9198 |21cr|texlive-addliga-50912-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname addliga

Summary:	Access basic ligatures in legacy TrueType fonts
Name:		texlive-addliga
Version:	50912
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(addliga.sty) = 2024
BuildArch:	noarch

%description
This small and simple package allows LuaLaTeX users to access
basic ligatures (ff, fi, ffi, fl, ffl) in legacy TrueType fonts
(those lacking a liga table) accessed via fontspec.

%files
%doc %{_texmfdistdir}/doc/lualatex/addliga/
%{_texmfdistdir}/tex/lualatex/addliga/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9199 |21cr|texlive-adforn-1.001b2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20019
# category Package
# catalog-ctan /fonts/adforn
# catalog-date 2010-10-06 08:49:34 +0200
# catalog-license lppl
# catalog-version 1.001-b-2
Name:		texlive-adforn
Version:	1.001b2
Release:	8
Summary:	OrnementsADF font with TeX/LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/adforn
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adforn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adforn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides the Ornements ADF font in PostScript type 1
format with TeX/LaTeX support files. The font is licensed under
GPL v2 or later with font exception. (See NOTICE, COPYING,
README.) The TeX/LaTeX support is licensed under LPPL. (See
README, manifest.txt.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/arkandis/adforn/OrnementsADF.afm
%{_texmfdistdir}/fonts/enc/dvips/adforn/OrnementsADF.enc
%{_texmfdistdir}/fonts/map/dvips/adforn/OrnementsADF.map
%{_texmfdistdir}/fonts/tfm/arkandis/adforn/OrnementsADF.tfm
%{_texmfdistdir}/fonts/type1/arkandis/adforn/OrnementsADF.pfb
%{_texmfdistdir}/tex/latex/adforn/adforn.sty
%{_texmfdistdir}/tex/latex/adforn/uornementsadf.fd
%doc %{_texmfdistdir}/doc/fonts/adforn/COPYING
%doc %{_texmfdistdir}/doc/fonts/adforn/NOTICE
%doc %{_texmfdistdir}/doc/fonts/adforn/README
%doc %{_texmfdistdir}/doc/fonts/adforn/adforn.pdf
%doc %{_texmfdistdir}/doc/fonts/adforn/adforn.tex
%doc %{_texmfdistdir}/doc/fonts/adforn/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9200 |21cr|texlive-adfsymbols-1.001-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19766
# category Package
# catalog-ctan /fonts/adfsymbols
# catalog-date 2010-09-13 13:22:42 +0200
# catalog-license lppl
# catalog-version 1.001
Name:		texlive-adfsymbols
Version:	1.001
Release:	8
Summary:	SymbolsADF with TeX/LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/adfsymbols
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adfsymbols.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adfsymbols.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
The package provides Arkandis foundry's ArrowsADF and
BulletsADF fonts in Adobe Type 1 format, together with
TeX/LaTeX support files. The fonts are licensed under GPL v2 or
later with font exception. (See NOTICE, COPYING, README.) The
TeX/LaTeX support is licensed under LPPL. (See README,
manifest.txt.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/arkandis/adfsymbols/ArrowsADF.afm
%{_texmfdistdir}/fonts/afm/arkandis/adfsymbols/BulletsADF.afm
%{_texmfdistdir}/fonts/enc/dvips/adfsymbols/SymbolsADF.enc
%{_texmfdistdir}/fonts/map/dvips/adfsymbols/ArrowsADF.map
%{_texmfdistdir}/fonts/map/dvips/adfsymbols/BulletsADF.map
%{_texmfdistdir}/fonts/tfm/arkandis/adfsymbols/ArrowsADF.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/adfsymbols/BulletsADF.tfm
%{_texmfdistdir}/fonts/type1/arkandis/adfsymbols/ArrowsADF.pfb
%{_texmfdistdir}/fonts/type1/arkandis/adfsymbols/BulletsADF.pfb
%{_texmfdistdir}/tex/latex/adfsymbols/adfarrows.sty
%{_texmfdistdir}/tex/latex/adfsymbols/adfbullets.sty
%{_texmfdistdir}/tex/latex/adfsymbols/uarrowsadf.fd
%{_texmfdistdir}/tex/latex/adfsymbols/ubulletsadf.fd
%_texmf_updmap_d/adfsymbols
%doc %{_texmfdistdir}/doc/fonts/adfsymbols/COPYING
%doc %{_texmfdistdir}/doc/fonts/adfsymbols/NOTICE
%doc %{_texmfdistdir}/doc/fonts/adfsymbols/README
%doc %{_texmfdistdir}/doc/fonts/adfsymbols/adfsymbols.pdf
%doc %{_texmfdistdir}/doc/fonts/adfsymbols/adfsymbols.tex
%doc %{_texmfdistdir}/doc/fonts/adfsymbols/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/adfsymbols <<EOF
Map ArrowsADF.map
Map BulletsADF.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9201 |21cr|texlive-adhocfilelist-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /support/adhocfilelist
# catalog-date 2013-01-04 14:33:54 +0100
# catalog-license lppl
# catalog-version 2013-01-04
Name:		texlive-adhocfilelist
Version:	20190228
Release:	1
Summary:	'\listfiles' entries from the command line
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/adhocfilelist
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adhocfilelist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adhocfilelist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adhocfilelist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-adhocfilelist.bin = %{EVRD}

%description
The package provides a Unix shell script to display a list of
LaTeX \Provides...-command contexts on screen. Provision is
made for controlling the searches that the package does. The
package was developed on a Unix-like system, using (among other
things) the gnu variant of the find command.

#-----------------------------------------------------------------------
%files
%{_bindir}/adhocfilelist
%{_texmfdistdir}/scripts/adhocfilelist/adhocfilelist.sh
%{_texmfdistdir}/scripts/adhocfilelist/herelist.sh
%{_texmfdistdir}/tex/support/adhocfilelist/adhocfilelist.RLS
%doc %{_texmfdistdir}/doc/support/adhocfilelist/README
%doc %{_texmfdistdir}/doc/support/adhocfilelist/RELEASEs.txt
%doc %{_texmfdistdir}/doc/support/adhocfilelist/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/support/adhocfilelist/adhocfilelist.htm
%doc %{_texmfdistdir}/doc/support/adhocfilelist/demo/herelist.txt
#- source
%doc %{_texmfdistdir}/source/support/adhocfilelist/adhocfilelist.tex
%doc %{_texmfdistdir}/source/support/adhocfilelist/fdatechk.tex
%doc %{_texmfdistdir}/source/support/adhocfilelist/makehtml.tex
%doc %{_texmfdistdir}/source/support/adhocfilelist/srcfiles.tex
%doc %{_texmfdistdir}/source/support/adhocfilelist/texblog.fdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/adhocfilelist/adhocfilelist.sh adhocfilelist
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9202 |21cr|texlive-adtrees-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-adtrees
Version:	1.1
Release:	1
Summary:	Macros for drawing adpositional trees
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/adtrees
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/adtrees.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/adtrees.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a means to write adpositional trees, a
formalism devoted to representing natural language expressions.
The package relies on epic and cancel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9203 |21cr|texlive-aesupp-58253-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname aesupp

Summary:	Special support for the ae character
Name:		texlive-aesupp
Version:	58253
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(aesupp.map) = 2024
Provides:	tex(aesupp.sty) = 2024
Provides:	tex(tg.enc) = 2024
BuildArch:	noarch

%description
This package provides special support for the italic 'ae'
character in some fonts, due to design flaws (in the author's
opinion) regarding this character. At the moment only the fonts
TeX Gyre Bonum, TeX Gyre Schola, TeX Gyre Pagella, and the
Latin Modern fonts are supported. The other fonts in the TeX
Gyre bundle do not need this support.

%files
%doc %{_texmfdistdir}/doc/fonts/aesupp
%{_texmfdistdir}/fonts/enc/dvips/aesupp
%{_texmfdistdir}/fonts/map/dvips/aesupp
%{_texmfdistdir}/fonts/opentype/public/aesupp
%{_texmfdistdir}/fonts/tfm/public/aesupp
%{_texmfdistdir}/fonts/type1/public/aesupp
%{_texmfdistdir}/tex/latex/aesupp

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9204 |21cr|texlive-aichej-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/misc/aichej.bst
# catalog-date 2008-08-16 20:32:59 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-aichej
Version:	20190228
Release:	1
Summary:	Bibliography style file for the AIChE Journal
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/misc/aichej.bst
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aichej.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The style was generated using custom-bib, and implements the
style of the American Institute of Chemical Engineers Jounal
(or AIChE Journal or AIChE J or AIChEJ).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/aichej/aichej.bst

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9205 |21cr|texlive-ajl-34016.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ajl

Summary:	BibTeX style for AJL
Name:		texlive-ajl
Version:	34016.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-ajl = 2024
BuildArch:	noarch

%description
Bibliographic style references in style of Australian Journal
of Linguistics.

%files
%{_texmfdistdir}/bibtex/bst/ajl/

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9206 |21cr|texlive-akshar-56277-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname akshar

Summary:	Support for syllables in the Devanagari script
Name:		texlive-akshar
Version:	56277
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(akshar.sty) = 2024
BuildArch:	noarch

%description
This LaTeX3 package provides macros and interfaces to work with
Devanagari characters and syllables in a more correct way.

%files
%doc %{_texmfdistdir}/doc/latex/akshar
%{_texmfdistdir}/tex/latex/akshar

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9207 |21cr|texlive-alegreya-64384-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname alegreya

Summary:	Alegreya fonts with LaTeX support
Name:		texlive-alegreya
Version:	64384
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex-alegreya = 2024
Provides:	tex(AlegreyaSans.sty) = 2024
Provides:	tex(Alegreya.sty) = 2024
Provides:	tex(algr_226fyf.enc) = 2024
Provides:	tex(algr_2vgxay.enc) = 2024
Provides:	tex(algr_32il6z.enc) = 2024
Provides:	tex(algr_3ej7ja.enc) = 2024
Provides:	tex(algr_3j6zf7.enc) = 2024
Provides:	tex(algr_3w755y.enc) = 2024
Provides:	tex(algr_4ns4wz.enc) = 2024
Provides:	tex(algr_4v37z4.enc) = 2024
Provides:	tex(algr_5gibri.enc) = 2024
Provides:	tex(algr_5io2mf.enc) = 2024
Provides:	tex(algr_5rsmqe.enc) = 2024
Provides:	tex(algr_62cj7n.enc) = 2024
Provides:	tex(algr_66zd6s.enc) = 2024
Provides:	tex(algr_6jp7bb.enc) = 2024
Provides:	tex(algr_6lq5ex.enc) = 2024
Provides:	tex(algr_6q4car.enc) = 2024
Provides:	tex(algr_6wvqta.enc) = 2024
Provides:	tex(algr_7cbt5m.enc) = 2024
Provides:	tex(algr_7jzpyg.enc) = 2024
Provides:	tex(algr_b53fje.enc) = 2024
Provides:	tex(algr_bwwxle.enc) = 2024
Provides:	tex(algr_chmses.enc) = 2024
Provides:	tex(algr_ck23qu.enc) = 2024
Provides:	tex(algr_dfcgiv.enc) = 2024
Provides:	tex(algr_dokm3m.enc) = 2024
Provides:	tex(algr_dte76s.enc) = 2024
Provides:	tex(algr_ec6aae.enc) = 2024
Provides:	tex(algr_eltpie.enc) = 2024
Provides:	tex(algr_es2wca.enc) = 2024
Provides:	tex(algr_evb22y.enc) = 2024
Provides:	tex(algr_f7lt35.enc) = 2024
Provides:	tex(algr_fbntfe.enc) = 2024
Provides:	tex(algr_fi2sgn.enc) = 2024
Provides:	tex(algr_g3cfdt.enc) = 2024
Provides:	tex(algr_h4wxrq.enc) = 2024
Provides:	tex(algr_hnbre7.enc) = 2024
Provides:	tex(algr_hxyeky.enc) = 2024
Provides:	tex(algr_hzbvjz.enc) = 2024
Provides:	tex(algr_isiobp.enc) = 2024
Provides:	tex(algr_iszm25.enc) = 2024
Provides:	tex(algr_jfvu45.enc) = 2024
Provides:	tex(algr_jmly6e.enc) = 2024
Provides:	tex(algr_kvnvnq.enc) = 2024
Provides:	tex(algr_l3q2fl.enc) = 2024
Provides:	tex(algr_mlgxyz.enc) = 2024
Provides:	tex(algr_n26fs4.enc) = 2024
Provides:	tex(algr_nwaz6g.enc) = 2024
Provides:	tex(algr_oq6qvg.enc) = 2024
Provides:	tex(algr_oqh4wu.enc) = 2024
Provides:	tex(algr_orkgok.enc) = 2024
Provides:	tex(algr_oum7q3.enc) = 2024
Provides:	tex(algr_p7kywn.enc) = 2024
Provides:	tex(algr_phmojf.enc) = 2024
Provides:	tex(algr_qizth5.enc) = 2024
Provides:	tex(algr_qy2xvu.enc) = 2024
Provides:	tex(algr_r57u46.enc) = 2024
Provides:	tex(algr_rpkba2.enc) = 2024
Provides:	tex(algr_rxhb6t.enc) = 2024
Provides:	tex(algr_su2s7h.enc) = 2024
Provides:	tex(algr_te6qwy.enc) = 2024
Provides:	tex(algr_tf5zvx.enc) = 2024
Provides:	tex(algr_u7nq5p.enc) = 2024
Provides:	tex(algr_unkqzs.enc) = 2024
Provides:	tex(algr_v7kvmg.enc) = 2024
Provides:	tex(algr_v7zz7p.enc) = 2024
Provides:	tex(algr_vbs4kl.enc) = 2024
Provides:	tex(algr_vwfggt.enc) = 2024
Provides:	tex(algr_w4wd2e.enc) = 2024
Provides:	tex(algr_wbb64e.enc) = 2024
Provides:	tex(algr_wnb4kq.enc) = 2024
Provides:	tex(algr_xyef6o.enc) = 2024
Provides:	tex(algr_y2uq4q.enc) = 2024
Provides:	tex(algr_ywnyo5.enc) = 2024
Provides:	tex(algr_zbisw7.enc) = 2024
Provides:	tex(algr_zgz46n.enc) = 2024
Provides:	tex(algr_zsorhr.enc) = 2024
Provides:	tex(algr_zt4bhv.enc) = 2024
Provides:	tex(LGRAlegreya-Inf.fd) = 2024
Provides:	tex(LGRAlegreya-LF.fd) = 2024
Provides:	tex(LGRAlegreya-OsF.fd) = 2024
Provides:	tex(LGRAlegreyaSans-Inf.fd) = 2024
Provides:	tex(LGRAlegreyaSans-LF.fd) = 2024
Provides:	tex(LGRAlegreyaSans-OsF.fd) = 2024
Provides:	tex(LGRAlegreyaSans-Sup.fd) = 2024
Provides:	tex(LGRAlegreyaSans-TLF.fd) = 2024
Provides:	tex(LGRAlegreyaSans-TOsF.fd) = 2024
Provides:	tex(LGRAlegreya-Sup.fd) = 2024
Provides:	tex(LGRAlegreya-TLF.fd) = 2024
Provides:	tex(LGRAlegreya-TOsF.fd) = 2024
Provides:	tex(LY1Alegreya-Inf.fd) = 2024
Provides:	tex(LY1Alegreya-LF.fd) = 2024
Provides:	tex(LY1Alegreya-OsF.fd) = 2024
Provides:	tex(LY1AlegreyaSans-Inf.fd) = 2024
Provides:	tex(LY1AlegreyaSans-LF.fd) = 2024
Provides:	tex(LY1AlegreyaSans-OsF.fd) = 2024
Provides:	tex(LY1AlegreyaSans-Sup.fd) = 2024
Provides:	tex(LY1AlegreyaSans-TLF.fd) = 2024
Provides:	tex(LY1AlegreyaSans-TOsF.fd) = 2024
Provides:	tex(LY1Alegreya-Sup.fd) = 2024
Provides:	tex(LY1Alegreya-TLF.fd) = 2024
Provides:	tex(LY1Alegreya-TOsF.fd) = 2024
Provides:	tex(OT1Alegreya-Inf.fd) = 2024
Provides:	tex(OT1Alegreya-LF.fd) = 2024
Provides:	tex(OT1Alegreya-OsF.fd) = 2024
Provides:	tex(OT1AlegreyaSans-Inf.fd) = 2024
Provides:	tex(OT1AlegreyaSans-LF.fd) = 2024
Provides:	tex(OT1AlegreyaSans-OsF.fd) = 2024
Provides:	tex(OT1AlegreyaSans-Sup.fd) = 2024
Provides:	tex(OT1AlegreyaSans-TLF.fd) = 2024
Provides:	tex(OT1AlegreyaSans-TOsF.fd) = 2024
Provides:	tex(OT1Alegreya-Sup.fd) = 2024
Provides:	tex(OT1Alegreya-TLF.fd) = 2024
Provides:	tex(OT1Alegreya-TOsF.fd) = 2024
Provides:	tex(T1Alegreya-Inf.fd) = 2024
Provides:	tex(T1Alegreya-LF.fd) = 2024
Provides:	tex(T1Alegreya-OsF.fd) = 2024
Provides:	tex(T1AlegreyaSans-Inf.fd) = 2024
Provides:	tex(T1AlegreyaSans-LF.fd) = 2024
Provides:	tex(T1AlegreyaSans-OsF.fd) = 2024
Provides:	tex(T1AlegreyaSans-Sup.fd) = 2024
Provides:	tex(T1AlegreyaSans-TLF.fd) = 2024
Provides:	tex(T1AlegreyaSans-TOsF.fd) = 2024
Provides:	tex(T1Alegreya-Sup.fd) = 2024
Provides:	tex(T1Alegreya-TLF.fd) = 2024
Provides:	tex(T1Alegreya-TOsF.fd) = 2024
Provides:	tex(TS1Alegreya-LF.fd) = 2024
Provides:	tex(TS1Alegreya-OsF.fd) = 2024
Provides:	tex(TS1AlegreyaSans-LF.fd) = 2024
Provides:	tex(TS1AlegreyaSans-OsF.fd) = 2024
Provides:	tex(TS1AlegreyaSans-TLF.fd) = 2024
Provides:	tex(TS1AlegreyaSans-TOsF.fd) = 2024
Provides:	tex(TS1Alegreya-TLF.fd) = 2024
Provides:	tex(TS1Alegreya-TOsF.fd) = 2024
BuildArch:	noarch

%description
The Alegreya fonts are designed by Juan Pablo del Peral for
Huerta Tipografica. Alegreya is a typeface originally intended
for literature. It conveys a dynamic and varied rhythm which
facilitates the reading of long texts. The italic has just as
much care and attention to detail in the design as the roman.
Bold, black, small caps and five number styles are available.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/alegreya/
%{_texmfdistdir}/fonts/map/dvips/alegreya/
%{_texmfdistdir}/fonts/opentype/huerta/alegreya/
%{_texmfdistdir}/fonts/tfm/huerta/alegreya/
%{_texmfdistdir}/fonts/type1/huerta/alegreya/
%{_texmfdistdir}/fonts/vf/huerta/alegreya/
%{_texmfdistdir}/tex/latex/alegreya/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9208 |21cr|texlive-alertmessage-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-alertmessage
Version:	1.1
Release:	1
Summary:	Displays alert messages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	GNU General Public License
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alertmessage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alertmessage.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/alertmessage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides beautiful boxes to display alert messages. The alerts are
inspired by the Bootstrap framework.The size of the box increases according to the text length until a certain limit
to guarantee the responsiveness of the alert.There are four alerts available for information, warning, error and success
messages. Each one has its own color and icon. 
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9209 |21cr|texlive-alfaslabone-57452-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname alfaslabone

Summary:	The Alfa Slab One font face with support for LaTeX and pdfLaTeX
Name:		texlive-alfaslabone
Version:	57452
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_5xld5w.enc) = 2024
Provides:	tex(a_adz5lu.enc) = 2024
Provides:	tex(a_d2anrk.enc) = 2024
Provides:	tex(alfaslabone.sty) = 2024
Provides:	tex(AlphaSlabOne.map) = 2024
Provides:	tex(a_lzhlbi.enc) = 2024
Provides:	tex(a_rymxky.enc) = 2024
Provides:	tex(a_taosrr.enc) = 2024
Provides:	tex(a_vqpkf5.enc) = 2024
Provides:	tex(LY1AlphaSlabOne-Sup.fd) = 2024
Provides:	tex(LY1AlphaSlabOne-TLF.fd) = 2024
Provides:	tex(OT1AlphaSlabOne-Sup.fd) = 2024
Provides:	tex(OT1AlphaSlabOne-TLF.fd) = 2024
Provides:	tex(T1AlphaSlabOne-Sup.fd) = 2024
Provides:	tex(T1AlphaSlabOne-TLF.fd) = 2024
Provides:	tex(TS1AlphaSlabOne-TLF.fd) = 2024
BuildArch:	noarch

%description
The alfaslabone package supports the Alfa Slab One font face
for LaTeX. There is only a Regular font face. It's useful for
book-chapter headlines.

%files
%doc %{_texmfdistdir}/doc/fonts/alfaslabone
%{_texmfdistdir}/fonts/enc/dvips/alfaslabone
%{_texmfdistdir}/fonts/map/dvips/alfaslabone
%{_texmfdistdir}/fonts/opentype/public/alfaslabone
%{_texmfdistdir}/fonts/tfm/public/alfaslabone
%{_texmfdistdir}/fonts/type1/public/alfaslabone
%{_texmfdistdir}/fonts/vf/public/alfaslabone
%{_texmfdistdir}/tex/latex/alfaslabone

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9210 |21cr|texlive-algobox-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 52204
# category Package
# catalog-ctan /macros/latex/contrib/algobox
# catalog-date 2019-09-29 19:21:54 +0200
# catalog-license gpl3+
# catalog-version 1.3
Name:		texlive-algobox
Version:	1.3
Release:	2
Summary:	Typeset Algobox programs
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/algobox
License:	GPL3+
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algobox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algobox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algobox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package can typeset Algobox programs almost exactly
as displayed when editing with Algobox itself, using an input
syntax very similar to the actual Algobox program text. It
gives better results than Algobox's own LaTeX export which does
not look like the editor rendition, produces standalone
documents cumbersome to customize, and has arbitrary and
inconsistent differences between the input syntax and the
program text. This package depends upon the following other
LaTeX packages: expl3, TikZ, environ, xparse, and xcolor.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/algobox/algobox.sty
%doc %{_texmfdistdir}/doc/latex/algobox/algobox.pdf
%doc %{_texmfdistdir}/doc/latex/algobox/README.md
%doc %{_texmfdistdir}/doc/latex/algobox/LICENSE
#- source
%doc %{_texmfdistdir}/source/latex/algobox/algobox.dtx
%doc %{_texmfdistdir}/source/latex/algobox/algobox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9211 |21cr|texlive-algolrevived-56864-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname algolrevived

Summary:	A revival of Frutiger's Algol alphabet
Name:		texlive-algolrevived
Version:	56864
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(AlgolRevived.map) = 2024
Provides:	tex(algolrevived.sty) = 2024
Provides:	tex(LY1AlgolRevived-Inf.fd) = 2024
Provides:	tex(LY1AlgolRevived-OsF.fd) = 2024
Provides:	tex(LY1AlgolRevived-OsF-TT.fd) = 2024
Provides:	tex(LY1AlgolRevived-Sup.fd) = 2024
Provides:	tex(LY1AlgolRevived-TLF.fd) = 2024
Provides:	tex(LY1AlgolRevived-TLF-TT.fd) = 2024
Provides:	tex(OT1AlgolRevived-Inf.fd) = 2024
Provides:	tex(OT1AlgolRevived-OsF.fd) = 2024
Provides:	tex(OT1AlgolRevived-OsF-TT.fd) = 2024
Provides:	tex(OT1AlgolRevived-Sup.fd) = 2024
Provides:	tex(OT1AlgolRevived-TLF.fd) = 2024
Provides:	tex(OT1AlgolRevived-TLF-TT.fd) = 2024
Provides:	tex(T1AlgolRevived-Inf.fd) = 2024
Provides:	tex(T1AlgolRevived-OsF.fd) = 2024
Provides:	tex(T1AlgolRevived-OsF-TT.fd) = 2024
Provides:	tex(T1AlgolRevived-Sup.fd) = 2024
Provides:	tex(T1AlgolRevived-TLF.fd) = 2024
Provides:	tex(T1AlgolRevived-TLF-TT.fd) = 2024
Provides:	tex(TS1AlgolRevived-OsF.fd) = 2024
Provides:	tex(TS1AlgolRevived-TLF.fd) = 2024
Provides:	tex(zal0-LY1TT.enc) = 2024
Provides:	tex(zal0-OT1TT.enc) = 2024
Provides:	tex(zal0-T1TT.enc) = 2024
Provides:	tex(zal1-LY1TT.enc) = 2024
Provides:	tex(zal1-OT1TT.enc) = 2024
Provides:	tex(zal1-T1TT.enc) = 2024
Provides:	tex(zal_2jqefy.enc) = 2024
Provides:	tex(zal_2mszih.enc) = 2024
Provides:	tex(zal_2vzrvx.enc) = 2024
Provides:	tex(zal_4nnq6y.enc) = 2024
Provides:	tex(zal_4rrrqj.enc) = 2024
Provides:	tex(zal_5ziufx.enc) = 2024
Provides:	tex(zal_72x6h3.enc) = 2024
Provides:	tex(zal_7ov2yu.enc) = 2024
Provides:	tex(zal_ajioas.enc) = 2024
Provides:	tex(zal_bfgpej.enc) = 2024
Provides:	tex(zal_ekxevm.enc) = 2024
Provides:	tex(zal_hqfuhr.enc) = 2024
Provides:	tex(zal_iky7rf.enc) = 2024
Provides:	tex(zal_jmq5jf.enc) = 2024
Provides:	tex(zal_lxmhqh.enc) = 2024
Provides:	tex(zal_mdij5b.enc) = 2024
Provides:	tex(zal_pasij5.enc) = 2024
Provides:	tex(zal_psjebe.enc) = 2024
Provides:	tex(zal_q4jbw7.enc) = 2024
Provides:	tex(zal_qtlmay.enc) = 2024
Provides:	tex(zal_rj5tka.enc) = 2024
Provides:	tex(zal_ts1.enc) = 2024
Provides:	tex(zal_v4trah.enc) = 2024
Provides:	tex(zal_vawbng.enc) = 2024
Provides:	tex(zal_wqyrc5.enc) = 2024
Provides:	tex(zal_wzkcbe.enc) = 2024
Provides:	tex(zal_yz65wh.enc) = 2024
Provides:	tex(zal_ziib6p.enc) = 2024
Provides:	tex(zal_zqbwat.enc) = 2024
BuildArch:	noarch

%description
The package revives Frutinger's Algol alphabet, designed in
1963 for the code segments in an ALGOL manual. OpenType and
type1, regular and medium weights, upright and slanted. Not
monospaced, but good for listings if you don't need code to be
aligned with specific columns. It also makes a passable but
limited text font.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/algolrevived/
%{_texmfdistdir}/fonts/map/dvips/algolrevived/
%{_texmfdistdir}/fonts/opentype/public/algolrevived/
%{_texmfdistdir}/fonts/tfm/public/algolrevived/
%{_texmfdistdir}/fonts/type1/public/algolrevived/
%{_texmfdistdir}/fonts/vf/public/algolrevived/
%{_texmfdistdir}/tex/latex/algolrevived/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9212 |21cr|texlive-algpseudocodex-65860-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname algpseudocodex

Summary:	Package for typesetting pseudocode
Name:		texlive-algpseudocodex
Version:	65860
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(algorithmicx.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(fifo-stack.sty)
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tabto.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(varwidth.sty)
Provides:	tex(algpseudocodex.sty) = 2024
BuildArch:	noarch

%description
This package allows typesetting pseudocode in LaTeX. It is
based on algpseudocode from the algorithmicx package and uses
the same syntax, but adds several new features and
improvements. Notable features include customizable indent
guide lines and the ability to draw boxes around parts of the
code for highlighting differences. This package also has better
support for long code lines spanning several lines and improved
comments.

%files
%doc %{_texmfdistdir}/doc/latex/algpseudocodex
%{_texmfdistdir}/tex/latex/algpseudocodex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9213 |21cr|texlive-algxpar-56006-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname algxpar

Summary:	Support multiple lines pseudocode
Name:		texlive-algxpar
Version:	56006
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(algorithmicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(algxpar.sty) = 2024
BuildArch:	noarch

%description
This package extends the package algorithmicx to support long
text which spans over multiple lines.

%files
%doc %{_texmfdistdir}/doc/latex/algxpar
%{_texmfdistdir}/tex/latex/algxpar

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9214 |21cr|texlive-aligned-overset-0.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 47290
# category Package
# catalog-ctan /macros/latex/contrib/aligned-overset
# catalog-date 2018-04-04 16:01:59 +0200
# catalog-license lppl1.3c
# catalog-version 0.1.0
Name:		texlive-aligned-overset
Version:	0.1.0
Release:	2
Summary:	Fix alignment at \overset or \underset
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/aligned-overset
License:	LPPL1.3C
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aligned-overset.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aligned-overset.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aligned-overset.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows the base character of \underset or \overset
to be used as the alignment position for the amsmath aligned
math environments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/aligned-overset/aligned-overset.sty
%doc %{_texmfdistdir}/doc/latex/aligned-overset/aligned-overset.pdf
%doc %{_texmfdistdir}/doc/latex/aligned-overset/README.md
#- source
%doc %{_texmfdistdir}/source/latex/aligned-overset/aligned-overset.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9215 |21cr|texlive-allrunes-2.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-allrunes
Version:	2.1.1
Release:	2
Summary:	Fonts and LaTeX package for almost all runes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/allrunes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/allrunes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/allrunes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/allrunes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This large collection of fonts (in Adobe Type 1 format), with
the LaTeX package gives access to almost all runes ever used in
Europe. The bundle covers not only the main forms but also a
lot of varieties.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/allrunes
%{_texmfdistdir}/fonts/source/public/allrunes
%{_texmfdistdir}/fonts/type1/public/allrunes
%{_texmfdistdir}/tex/latex/allrunes
%doc %{_texmfdistdir}/doc/fonts/allrunes
#- source
%doc %{_texmfdistdir}/source/fonts/allrunes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9216 |21cr|texlive-almendra-64539-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname almendra

Summary:	Almendra fonts with LaTeX support
Name:		texlive-almendra
Version:	64539
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(almendra.map) = 2024
Provides:	tex(almendra.sty) = 2024
Provides:	tex(almndr_2bmcpz.enc) = 2024
Provides:	tex(almndr_aphd5h.enc) = 2024
Provides:	tex(almndr_d2g35l.enc) = 2024
Provides:	tex(almndr_fqyk3x.enc) = 2024
Provides:	tex(almndr_gd2dkq.enc) = 2024
Provides:	tex(almndr_jcmsbq.enc) = 2024
Provides:	tex(almndr_ktaaad.enc) = 2024
Provides:	tex(almndr_ncjtqa.enc) = 2024
Provides:	tex(almndr_piphgo.enc) = 2024
Provides:	tex(almndr_x2ojwl.enc) = 2024
Provides:	tex(almndr_xs7q5m.enc) = 2024
Provides:	tex(almndr_yxs7h5.enc) = 2024
Provides:	tex(almndr_zt62bd.enc) = 2024
Provides:	tex(LY1Almndr-OsF.fd) = 2024
Provides:	tex(OT1Almndr-OsF.fd) = 2024
Provides:	tex(T1Almndr-OsF.fd) = 2024
Provides:	tex(TS1Almndr-OsF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Almendra family of fonts, designed by Ana
Sanfelippo. Almendra is a typeface design based on calligraphy.
Its style is related to the chancery and gothic hands. There
are regular and bold weights with matching italics. There is
also a regular-weight small-caps.

%files
%doc %{_texmfdistdir}/doc/fonts/almendra/
%{_texmfdistdir}/fonts/enc/dvips/almendra/
%{_texmfdistdir}/fonts/map/dvips/almendra/
%{_texmfdistdir}/fonts/tfm/public/almendra/
%{_texmfdistdir}/fonts/truetype/public/almendra/
%{_texmfdistdir}/fonts/type1/public/almendra/
%{_texmfdistdir}/fonts/vf/public/almendra/
%{_texmfdistdir}/tex/latex/almendra/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9217 |21cr|texlive-almfixed-35065.0.92-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname almfixed

Summary:	Arabic-Latin Modern Fixed extends TeX-Gyre Latin Modern Mono 10 Regular to full Arabic Unicode support
Name:		texlive-almfixed
Version:	35065.0.92
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-almfixed = 2024
Provides:	tex(almfixed.otf) = 2024
Provides:	tex(almfixed.ttf) = 2024
BuildArch:	noarch

%description
Arabic-Latin Modern Fixed is an extension of TeX-Gyre Latin
Modern Mono 10 Regular. Every glyph and opentype feature of the
Latin Modern Mono has been retained, with minor improvements.
On the other hand, we have changed the vertical metrics of the
font. Although the Arabic script is designed to use the same x-
size as Latin Modern Mono, the former script needs greater
ascender and descender space. Every Arabic glyph in each
Unicode-code block is supported (up to Unicode 7.0): Arabic,
Arabic Supplement, Arabic Extended, Arabic Presentation-Forms
A, and Arabic Presentation-Forms B. There are two versions of
the font: otf and ttf. The opentype version is for print
applications (and usually the default for TeX). The TrueType
version is for on-screen applications such as text editors.
Hinting in the ttf version is much better for on-screen, at
least on Microsoft Windows. The unique feature of Arabic-Latin
Modern is its treatment of vowels and diacritics. Each vowel
and diacritic (ALM Fixed contains a total of 68 such glyphs)
may now be edited horizontally within any text editor or
processor. The author believes this is the very first opentype
Arabic font ever to have this capability. Editing complex
Arabic texts will now be much easier to input and to proofread.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/almfixed/
%{_texmfdistdir}/fonts/truetype/public/almfixed/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9218 |21cr|texlive-alphalph-53087-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname alphalph

Summary:	Convert numbers to letters
Name:		texlive-alphalph
Version:	53087
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(alphalph.sty) = 2024
BuildArch:	noarch

%description
Provides commands \alphalph and \AlphAlph. They are like
\number but the expansion consists of lowercase and uppercase
letters respectively (1 to a, 26 to z, 27 to aa, 52 to zz, 53
to ba, 702 to zz, 703 to aaa, etc.). Can be used as a
replacement for LaTeX's \@alph and \@Alph macros.

%files
%doc %{_texmfdistdir}/doc/latex/alphalph
%{_texmfdistdir}/tex/generic/alphalph

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9219 |21cr|texlive-alpha-persian-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-alpha-persian
Version:	1.0
Release:	1
Summary:	Persian version of alpha.bst
Group:		Publishing
URL:		https://pkgs.org/download/texlive-alpha-persian
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/alpha-persian.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/alpha-persian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a Persian version of the alpha BibTeX
style and offers several enhancements. It is compatible with
the hyperref, url, natbib, and cite packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9220 |21cr|texlive-altsubsup-62738-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname altsubsup

Summary:	Subscripts and superscripts with square brackets
Name:		texlive-altsubsup
Version:	62738
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(altsubsup.sty) = 2024
BuildArch:	noarch

%description
A LaTeX package to write alternative and customisable
subscripts and superscripts, with square brackets in the source
code.

%files
%doc %{_texmfdistdir}/doc/latex/altsubsup
%{_texmfdistdir}/tex/latex/altsubsup

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9221 |21cr|texlive-amiweb2c-guide-56878-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname amiweb2c-guide

Summary:	How to install AmiWeb2c
Name:		texlive-amiweb2c-guide
Version:	56878
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a guide for the installation of (La)TeX with the Amiga
port of Web2C named AmiWeb2C in the version 2.1 on an emulated
Amiga 4000 computer running Workbench 3.1. Furthermore the
installation of an ARexx server for calling LaTeX from an
editor is described and some tips for the installation of new
fonts are given.

%files
%doc %{_texmfdistdir}/doc/latex/amiweb2c-guide

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9222 |21cr|texlive-amscdx-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
# revision 54512
# category Package
# catalog-ctan 	/macros/latex/contrib/amscdx
# catalog-license lppl1.3
# catalogue-topics dissertation class
Name:		texlive-amscdx 
Version:	2.2
Release:	1
Epoch:		1
Summary:	Class for providing a CD environment
Group:		Publishing
URL:		https://www.ctan.org/pkg/amscdx
License:	PPL 1.3c
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/amscdx.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/amscdx.source.tar.xz
Source2:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/amscdx.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea


%description
The original amscd package provides a CD environment that emulates 
the commutative diagram capabilities of AMS-TeX version 2.x. 
This means that only simple rectangular diagrams are supported, 
with no diagonal arrows or more exotic features.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9223 |21cr|texlive-amsrefs-2.14-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30646
# category Package
# catalog-ctan /macros/latex/contrib/amsrefs
# catalog-date 2013-03-09 15:08:10 +0100
# catalog-license lppl1.3
# catalog-version 2.14
Name:		texlive-amsrefs
Version:	2.14
Release:	11
Summary:	A LaTeX-based replacement for BibTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/amsrefs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsrefs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsrefs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsrefs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Amsrefs is a LaTeX package for bibliographies that provides an
archival data format similar to the format of BibTeX database
files, but adapted to make direct processing by LaTeX easier.
The package can be used either in conjunction with BibTeX or as
a replacement for BibTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/amsrefs/amsj.bib
%{_texmfdistdir}/bibtex/bst/amsrefs/amsra.bst
%{_texmfdistdir}/bibtex/bst/amsrefs/amsrn.bst
%{_texmfdistdir}/bibtex/bst/amsrefs/amsrs.bst
%{_texmfdistdir}/bibtex/bst/amsrefs/amsru.bst
%{_texmfdistdir}/bibtex/bst/amsrefs/amsry.bst
%{_texmfdistdir}/tex/latex/amsrefs/amsbst.sty
%{_texmfdistdir}/tex/latex/amsrefs/amsrefs.sty
%{_texmfdistdir}/tex/latex/amsrefs/ifoption.sty
%{_texmfdistdir}/tex/latex/amsrefs/mathscinet.sty
%{_texmfdistdir}/tex/latex/amsrefs/pcatcode.sty
%{_texmfdistdir}/tex/latex/amsrefs/rkeyval.sty
%{_texmfdistdir}/tex/latex/amsrefs/textcmds.sty
%doc %{_texmfdistdir}/doc/latex/amsrefs/amsrdoc.pdf
%doc %{_texmfdistdir}/doc/latex/amsrefs/amsrefs.faq
%doc %{_texmfdistdir}/doc/latex/amsrefs/amsrefs.pdf
%doc %{_texmfdistdir}/doc/latex/amsrefs/amsxport.pdf
%doc %{_texmfdistdir}/doc/latex/amsrefs/changes.pdf
%doc %{_texmfdistdir}/doc/latex/amsrefs/cite-xa.tex
%doc %{_texmfdistdir}/doc/latex/amsrefs/cite-xb.tex
%doc %{_texmfdistdir}/doc/latex/amsrefs/cite-xh.tex
%doc %{_texmfdistdir}/doc/latex/amsrefs/cite-xs.tex
%doc %{_texmfdistdir}/doc/latex/amsrefs/gktest.ltb
%doc %{_texmfdistdir}/doc/latex/amsrefs/ifoption.pdf
%doc %{_texmfdistdir}/doc/latex/amsrefs/jr.bib
%doc %{_texmfdistdir}/doc/latex/amsrefs/mathscinet.pdf
%doc %{_texmfdistdir}/doc/latex/amsrefs/pcatcode.pdf
%doc %{_texmfdistdir}/doc/latex/amsrefs/rkeyval.pdf
%doc %{_texmfdistdir}/doc/latex/amsrefs/textcmds.pdf
#- source
%doc %{_texmfdistdir}/source/latex/amsrefs/README
%doc %{_texmfdistdir}/source/latex/amsrefs/amsrdoc.tex
%doc %{_texmfdistdir}/source/latex/amsrefs/amsrefs.dtx
%doc %{_texmfdistdir}/source/latex/amsrefs/amsrefs.ins
%doc %{_texmfdistdir}/source/latex/amsrefs/amsxport.dtx
%doc %{_texmfdistdir}/source/latex/amsrefs/amsxport.ins
%doc %{_texmfdistdir}/source/latex/amsrefs/changes.tex
%doc %{_texmfdistdir}/source/latex/amsrefs/ifoption.dtx
%doc %{_texmfdistdir}/source/latex/amsrefs/ifoption.ins
%doc %{_texmfdistdir}/source/latex/amsrefs/install.txt
%doc %{_texmfdistdir}/source/latex/amsrefs/manifest.txt
%doc %{_texmfdistdir}/source/latex/amsrefs/mathscinet.dtx
%doc %{_texmfdistdir}/source/latex/amsrefs/mathscinet.ins
%doc %{_texmfdistdir}/source/latex/amsrefs/pcatcode.dtx
%doc %{_texmfdistdir}/source/latex/amsrefs/pcatcode.ins
%doc %{_texmfdistdir}/source/latex/amsrefs/rkeyval.dtx
%doc %{_texmfdistdir}/source/latex/amsrefs/rkeyval.ins
%doc %{_texmfdistdir}/source/latex/amsrefs/textcmds.dtx
%doc %{_texmfdistdir}/source/latex/amsrefs/textcmds.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9224 |21cr|texlive-andika-64540-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname andika

Summary:	Andika fonts with support for all LaTeX engines
Name:		texlive-andika
Version:	64540
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_4x6wej.enc) = 2024
Provides:	tex(a_5kj227.enc) = 2024
Provides:	tex(a_d7tkvq.enc) = 2024
Provides:	tex(a_fh3q3k.enc) = 2024
Provides:	tex(a_fryoln.enc) = 2024
Provides:	tex(a_gn36ar.enc) = 2024
Provides:	tex(a_hrgzjy.enc) = 2024
Provides:	tex(a_k2qdsf.enc) = 2024
Provides:	tex(a_lqpsni.enc) = 2024
Provides:	tex(andika.map) = 2024
Provides:	tex(andika.sty) = 2024
Provides:	tex(a_q2mpm3.enc) = 2024
Provides:	tex(a_slnzzz.enc) = 2024
Provides:	tex(a_xvqrq2.enc) = 2024
Provides:	tex(a_zn43lu.enc) = 2024
Provides:	tex(a_zvjtl6.enc) = 2024
Provides:	tex(LY1andk-TLF.fd) = 2024
Provides:	tex(OT1andk-TLF.fd) = 2024
Provides:	tex(T1andk-TLF.fd) = 2024
Provides:	tex(T2Aandk-TLF.fd) = 2024
Provides:	tex(T2Bandk-TLF.fd) = 2024
Provides:	tex(T2Candk-TLF.fd) = 2024
Provides:	tex(TS1andk-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Andika family of fonts designed by SIL
International especially for literacy use, taking into account
the needs of beginning readers. The focus is on clear,
easy-to-perceive letterforms that will not be readily confused
with one another.

%files
%doc %{_texmfdistdir}/doc/fonts/andika
%{_texmfdistdir}/fonts/enc/dvips/andika
%{_texmfdistdir}/fonts/map/dvips/andika
%{_texmfdistdir}/fonts/tfm/SIL/andika
%{_texmfdistdir}/fonts/truetype/SIL/andika
%{_texmfdistdir}/fonts/type1/SIL/andika
%{_texmfdistdir}/fonts/vf/SIL/andika
%{_texmfdistdir}/tex/latex/andika

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9225 |21cr|texlive-annee-scolaire-55988-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname annee-scolaire

Summary:	Automatically typeset the academic year (French way)
Name:		texlive-annee-scolaire
Version:	55988
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(annee-scolaire.sty) = 2024
BuildArch:	noarch

%description
This package provides a macro \anneescolaire to automatically
write the academic year in the French way, according to the
date of compilation, two other macros to obtain the first and
the second calendar year of the academic year, a macro to be
redefined to change the presentation of the years.

%files
%doc %{_texmfdistdir}/doc/latex/annee-scolaire
%{_texmfdistdir}/tex/latex/annee-scolaire

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9226 |21cr|texlive-annotate-52824-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname annotate

Summary:	A bibliography style with annotations
Name:		texlive-annotate
Version:	52824
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The style is a derivative of the standard alpha style, which
processes an entry's annotate field as part of the printed
output.

%files
%{_texmfdistdir}/bibtex/bst/annotate

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9227 |21cr|texlive-annotate-equations-65851-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname annotate-equations

Summary:	Easily annotate math equations using TikZ
Name:		texlive-annotate-equations
Version:	65851
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(annotate-equations.sty) = 2024
BuildArch:	noarch

%description
This package provides commands that make it easy to highlight
terms in equations and add annotation labels using TikZ. It
should work with pdfLaTeX as well as LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/annotate-equations
%{_texmfdistdir}/tex/latex/annotate-equations

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9228 |21cr|texlive-anonymous-acm-55121-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname anonymous-acm

Summary:	Typeset anonymous versions for ACM articles
Name:		texlive-anonymous-acm
Version:	55121
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(anonymous-acm.sty) = 2024
BuildArch:	noarch

%description
Academics often need to submit anonymous versions of their
papers for peer-review. This often requires anonymization which
at some future date needs to be reversed. However
de-anonymizing an anonymized paper can be laborious and
error-prone. This LaTeX package allows anonymization options to
be specified at the time of writing for authors using
acmart.cls, the official Association of Computing Machinery
(ACM) master article template. Anonymization or deanonymization
is carried out by simply changing one option and recompiling.

%files
%doc %{_texmfdistdir}/doc/latex/anonymous-acm
%{_texmfdistdir}/tex/latex/anonymous-acm

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9229 |21cr|texlive-anonymouspro-51631-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname anonymouspro

Summary:	Use AnonymousPro fonts with LaTeX
Name:		texlive-anonymouspro
Version:	51631
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Provides:	tex(AnonymousPro-01.enc) = 2024
Provides:	tex(AnonymousPro-02.enc) = 2024
Provides:	tex(AnonymousPro-03.enc) = 2024
Provides:	tex-anonymouspro = 2024
Provides:	tex(AnonymousPro-Bold-01.tfm) = 2024
Provides:	tex(AnonymousPro-Bold-02.tfm) = 2024
Provides:	tex(AnonymousPro-Bold-03.tfm) = 2024
Provides:	tex(AnonymousPro-Bold-base.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-01.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-02.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-03.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-base.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic.pfb) = 2024
Provides:	tex(AnonymousPro-BoldItalic-Symbols-base.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-Symbols-u.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-Symbols-u.vf) = 2024
Provides:	tex(AnonymousPro-BoldItalic-t1.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-t1.vf) = 2024
Provides:	tex(AnonymousPro-BoldItalic.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-ts1.tfm) = 2024
Provides:	tex(AnonymousPro-BoldItalic-ts1.vf) = 2024
Provides:	tex(AnonymousPro-BoldItalic.ttf) = 2024
Provides:	tex(AnonymousPro-Bold.pfb) = 2024
Provides:	tex(AnonymousPro-BoldSC-t1.tfm) = 2024
Provides:	tex(AnonymousPro-BoldSC-t1.vf) = 2024
Provides:	tex(AnonymousPro-Bold-Symbols-base.tfm) = 2024
Provides:	tex(AnonymousPro-Bold-Symbols-u.tfm) = 2024
Provides:	tex(AnonymousPro-Bold-Symbols-u.vf) = 2024
Provides:	tex(AnonymousPro-Bold-t1.tfm) = 2024
Provides:	tex(AnonymousPro-Bold-t1.vf) = 2024
Provides:	tex(AnonymousPro-Bold.tfm) = 2024
Provides:	tex(AnonymousPro-Bold-ts1.tfm) = 2024
Provides:	tex(AnonymousPro-Bold-ts1.vf) = 2024
Provides:	tex(AnonymousPro-Bold.ttf) = 2024
Provides:	tex(AnonymousPro-Italic-01.tfm) = 2024
Provides:	tex(AnonymousPro-Italic-02.tfm) = 2024
Provides:	tex(AnonymousPro-Italic-03.tfm) = 2024
Provides:	tex(AnonymousPro-Italic-base.tfm) = 2024
Provides:	tex(AnonymousPro-Italic.pfb) = 2024
Provides:	tex(AnonymousPro-Italic-Symbols-base.tfm) = 2024
Provides:	tex(AnonymousPro-Italic-Symbols-u.tfm) = 2024
Provides:	tex(AnonymousPro-Italic-Symbols-u.vf) = 2024
Provides:	tex(AnonymousPro-Italic-t1.tfm) = 2024
Provides:	tex(AnonymousPro-Italic-t1.vf) = 2024
Provides:	tex(AnonymousPro-Italic.tfm) = 2024
Provides:	tex(AnonymousPro-Italic-ts1.tfm) = 2024
Provides:	tex(AnonymousPro-Italic-ts1.vf) = 2024
Provides:	tex(AnonymousPro-Italic.ttf) = 2024
Provides:	tex(AnonymousPro.map) = 2024
Provides:	tex(AnonymousPro-Regular-01.tfm) = 2024
Provides:	tex(AnonymousPro-Regular-02.tfm) = 2024
Provides:	tex(AnonymousPro-Regular-03.tfm) = 2024
Provides:	tex(AnonymousPro-Regular-base.tfm) = 2024
Provides:	tex(AnonymousPro-Regular.pfb) = 2024
Provides:	tex(AnonymousPro-RegularSC-t1.tfm) = 2024
Provides:	tex(AnonymousPro-RegularSC-t1.vf) = 2024
Provides:	tex(AnonymousPro-Regular-Symbols-base.tfm) = 2024
Provides:	tex(AnonymousPro-Regular-Symbols-u.tfm) = 2024
Provides:	tex(AnonymousPro-Regular-Symbols-u.vf) = 2024
Provides:	tex(AnonymousPro-Regular-t1.tfm) = 2024
Provides:	tex(AnonymousPro-Regular-t1.vf) = 2024
Provides:	tex(AnonymousPro-Regular.tfm) = 2024
Provides:	tex(AnonymousPro-Regular-ts1.tfm) = 2024
Provides:	tex(AnonymousPro-Regular-ts1.vf) = 2024
Provides:	tex(AnonymousPro-Regular.ttf) = 2024
Provides:	tex(AnonymousPro.sty) = 2024
Provides:	tex(AnonymousPro-symbols.enc) = 2024
Provides:	tex(t1anonymouspro.fd) = 2024
Provides:	tex(ts1anonymouspro.fd) = 2024
Provides:	tex(uanonymouspro.fd) = 2024
BuildArch:	noarch

%description
The fonts are a monowidth set, designed for use by coders. They
appear as a set of four TrueType, or Adobe Type 1 font files,
and LaTeX support is also provided.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/anonymouspro/
%{_texmfdistdir}/fonts/enc/dvips/anonymouspro/
%{_texmfdistdir}/fonts/map/dvips/anonymouspro/
%{_texmfdistdir}/fonts/tfm/public/anonymouspro/
%{_texmfdistdir}/fonts/truetype/public/anonymouspro/
%{_texmfdistdir}/fonts/type1/public/anonymouspro/
%{_texmfdistdir}/fonts/vf/public/anonymouspro/
%{_texmfdistdir}/tex/latex/anonymouspro/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9230 |21cr|texlive-antanilipsum-55250-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname antanilipsum

Summary:	Generate sentences in the style of "Amici miei"
Name:		texlive-antanilipsum
Version:	55250
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xparse.sty)
Provides:	tex(antanilipsum.sty) = 2024
BuildArch:	noarch

%description
This package is an italian blind text generator that ouputs
supercazzole, mocking nonsense phrases from the movie series
Amici Miei ("My friends"), directed by Mario Monicelli.

%files
%doc %{_texmfdistdir}/doc/latex/antanilipsum
%{_texmfdistdir}/tex/latex/antanilipsum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9231 |21cr|texlive-antiqua-001.003-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24266
# category Package
# catalog-ctan /fonts/urw/antiqua
# catalog-date 2011-10-11 17:17:32 +0200
# catalog-license gpl
# catalog-version 001.003
Name:		texlive-antiqua
Version:	001.003
Release:	8
Summary:	URW Antiqua condensed font, for use with TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/antiqua
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/antiqua.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/antiqua.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The directory contains a copy of the Type 1 font "URW Antiqua
2051 Regular Condensed" released under the GPL by URW, with
supporting files for use with (La)TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/urw/antiqua/uaqr8ac.afm
%{_texmfdistdir}/fonts/map/dvips/antiqua/uaq.map
%{_texmfdistdir}/fonts/map/vtex/antiqua/uaq.ali
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqr7tc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqr8ac.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqr8cc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqr8rc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqr8tc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqrc7tc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqrc8tc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqro7tc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqro8cc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqro8rc.tfm
%{_texmfdistdir}/fonts/tfm/urw/antiqua/uaqro8tc.tfm
%{_texmfdistdir}/fonts/type1/urw/antiqua/uaqr8ac.pfb
%{_texmfdistdir}/fonts/type1/urw/antiqua/uaqr8ac.pfm
%{_texmfdistdir}/fonts/vf/urw/antiqua/uaqr7tc.vf
%{_texmfdistdir}/fonts/vf/urw/antiqua/uaqr8cc.vf
%{_texmfdistdir}/fonts/vf/urw/antiqua/uaqr8tc.vf
%{_texmfdistdir}/fonts/vf/urw/antiqua/uaqrc7tc.vf
%{_texmfdistdir}/fonts/vf/urw/antiqua/uaqrc8tc.vf
%{_texmfdistdir}/fonts/vf/urw/antiqua/uaqro7tc.vf
%{_texmfdistdir}/fonts/vf/urw/antiqua/uaqro8cc.vf
%{_texmfdistdir}/fonts/vf/urw/antiqua/uaqro8tc.vf
%{_texmfdistdir}/tex/latex/antiqua/ot1uaq.fd
%{_texmfdistdir}/tex/latex/antiqua/t1uaq.fd
%{_texmfdistdir}/tex/latex/antiqua/ts1uaq.fd
%doc %{_texmfdistdir}/doc/fonts/antiqua/antiqua.txt
%doc %{_texmfdistdir}/doc/fonts/antiqua/uaqr8ac.afm.org

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9232 |21cr|texlive-apa7-63974-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname apa7

Summary:	Format documents in APA style (7th edition)
Name:		texlive-apa7
Version:	63974
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(apa7.cls) = 2024
BuildArch:	noarch

%description
This class formats documents in APA style (7th Edition). It
provides a full set of facilities in four different output
modes (journal-like appearance, double-spaced manuscript,
double-spaced student manuscript, LaTeX-like document). The
class can mask author identity for copies for use in masked
peer review. The class is a development of the apa6 class.

%files
%doc %{_texmfdistdir}/doc/latex/apa7
%{_texmfdistdir}/tex/latex/apa7

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9233 |21cr|texlive-apacite-6.03-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31264
# category Package
# catalog-ctan /biblio/bibtex/contrib/apacite
# catalog-date 2013-07-22 09:44:36 +0200
# catalog-license lppl
# catalog-version 6.03
Name:		texlive-apacite
Version:	6.03
Release:	11
Summary:	Citation style following the rules of the APA
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/apacite
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apacite.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apacite.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apacite.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Apacite provides a BibTeX style and a LaTeX package which are
designed to match the requirements of the American
Psychological Association's style for citations. The package
follows the 6th edition of the APA manual, and is designed to
work with the apa6 class. A test document is provided. The
package is compatible with chapterbib and (to some extent) with
hyperref (for limits of compatibility, see the documentation).
The package also includes a means of generating an author index
for a document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/apacite/apacann.bst
%{_texmfdistdir}/bibtex/bst/apacite/apacannx.bst
%{_texmfdistdir}/bibtex/bst/apacite/apacite.bst
%{_texmfdistdir}/bibtex/bst/apacite/apacitex.bst
%{_texmfdistdir}/tex/latex/apacite/apacdoc.sty
%{_texmfdistdir}/tex/latex/apacite/apacite.sty
%{_texmfdistdir}/tex/latex/apacite/dutch.apc
%{_texmfdistdir}/tex/latex/apacite/english.apc
%{_texmfdistdir}/tex/latex/apacite/finnish.apc
%{_texmfdistdir}/tex/latex/apacite/french.apc
%{_texmfdistdir}/tex/latex/apacite/german.apc
%{_texmfdistdir}/tex/latex/apacite/greek.apc
%{_texmfdistdir}/tex/latex/apacite/ngerman.apc
%{_texmfdistdir}/tex/latex/apacite/norsk.apc
%{_texmfdistdir}/tex/latex/apacite/spanish.apc
%{_texmfdistdir}/tex/latex/apacite/swedish.apc
%doc %{_texmfdistdir}/doc/bibtex/apacite/README
%doc %{_texmfdistdir}/doc/bibtex/apacite/apa5ex.bib
%doc %{_texmfdistdir}/doc/bibtex/apacite/apacite.pdf
%doc %{_texmfdistdir}/doc/bibtex/apacite/apacxmpl.tex
#- source
%doc %{_texmfdistdir}/source/bibtex/apacite/apacite.drv
%doc %{_texmfdistdir}/source/bibtex/apacite/apacite.dtx
%doc %{_texmfdistdir}/source/bibtex/apacite/apacite.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9234 |21cr|texlive-apalike2-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/apalike2/apalike2.bst
# catalog-date 2009-11-09 13:03:38 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-apalike2
Version:	20190228
Release:	1
Summary:	Bibliography style that approaches APA requirements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/apalike2/apalike2.bst
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apalike2.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Described as a "local adaptation" of apalike.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/apalike2/apalike2.bst

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9235 |21cr|texlive-apalike-ejor-59667-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname apalike-ejor

Summary:	A BibTeX style file for the European Journal of Operational Research
Name:		texlive-apalike-ejor
Version:	59667
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package contains a BibTeX style file, apalike-ejor.bst,
made to follow the European Journal of Operational Research
reference style guidelines. It is a fork of apalike version
0.99a, by Oren Patashnik, and consists of minor modifications
of standard APA style. Among other changes it adds support for
hyperlinked URL and DOI fields (which requires hyperref).

%files
%doc %{_texmfdistdir}/doc/bibtex/apalike-ejor
%{_texmfdistdir}/bibtex/bst/apalike-ejor

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9236 |21cr|texlive-apalike-german-65403-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname apalike-german

Summary:	A copy of apalike.bst with German localization
Name:		texlive-apalike-german
Version:	65403
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
A copy of apalike.bst (which is part of the base BibTeX
distribution) with German localization.

%files
%doc %{_texmfdistdir}/doc/bibtex/apalike-german/
%{_texmfdistdir}/bibtex/bst/apalike-german/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9237 |21cr|texlive-apnum-1.7-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29776
# category Package
# catalog-ctan /macros/latex/contrib/mpgraphics
# catalog-date 2013-04-08 09:07:09 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-apnum
Version:	1.7
Release:	12
Summary:	Arbitrary precision numbers implemented by TeX macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/apnum
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apnum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apnum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The basic operations (addition, subtraction, multiplication,
division, power to an integer) are implemented by TeX macros
 in this package. Operands may be numbers with arbitrary numbers 
of digits; scientific notation is allowed.

The expression scanner is also provided.

As of version 1.4 (December 2015) the calculation of common 
functions (sqrt, exp, ln, sin, cos, tan, asin, acos, atan, pi)
with arbitrary precision in the result has been added.

Exhaustive documentation (including detailed TeXnical documentation)
is included. The macro includes many optimizations and uses only
TeX primitives (from classic TeX) and \newcount macro. 
----------------
%files
%{_texmfdistdir}/tex/generic/apnum/apnum.tex
#- doc
%doc %{_texmfdistdir}/doc/generic/apnum/README
%doc %{_texmfdistdir}/doc/generic/apnum/apnum.pdf
%doc %{_texmfdistdir}/doc/generic/apnum/apnum.d

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9238 |21cr|texlive-apprendre-a-programmer-en-tex-57179-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname apprendre-a-programmer-en-tex

Summary:	The book "Apprendre a programmer en TeX"
Name:		texlive-apprendre-a-programmer-en-tex
Version:	57179
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This book explains the basic concepts required for programming
in TeX and explains the programming methods, providing many
examples. The package makes the compileable source code as well
as the compiled pdf file accessible to everyone.

%files
%doc %{_texmfdistdir}/doc

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9239 |21cr|texlive-apxproof-1.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-apxproof
Version:	1.2.3
Release:	1
Epoch:		1
Summary:	Proofs in appendix
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/apxproof
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apxproof.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apxproof.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apxproof.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes it easier to write articles where proofs and
other material are deferred to the appendix. The appendix
material is written in the LaTeX code along with the main text
which it naturally complements, and it is automatically
deferred. The package can automatically send proofs to the
appendix, can repeat in the appendix the theorem environments
stated in the main text, can section the appendix automatically
based on the sectioning of the main text, and supports a
separate bibliography for the appendix material. It depends on
the following other packages: amsthm, bibunits (if the
bibliography option is set to separate), environ, etoolbox,
fancyvrb, ifthen, and kvoptions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9240 |21cr|texlive-arabi-add-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-arabi-add
Version:	1.0
Release:	1
Summary:	Using hyperref and bookmark packages with arabic and farsi languages
Group:		Publishing
URL:		https://fedora.pkgs.org/34/fedora-updates-testing-x86_64/texlive-arabi-add-svn37709-38.fc34.noarch.rpm.html
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/arabi-add.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/arabi-add.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package takes advantage of some of the possibilities that
hyperref and bookmark packages offer when you create a table of
contents for Arabic texts created by the arabi package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9241 |21cr|texlive-arabic-book-59594-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname arabic-book

Summary:	An Arabic book class
Name:		texlive-arabic-book
Version:	59594
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(arabic-book.cls) = 2024
BuildArch:	noarch

%description
This document class provides both Arabic and English support
for TeX/LaTeX. Input may be in ASCII transliteration or other
encodings (including UTF-8), and output may be Arabic, Hebrew,
or any of several languages that use the Arabic script, as can
be specified by the polyglossia package. The Arabic font is
presently available in any Arabic fonts style. In order to use
Amiri font style, the user needs to install the amiri package.
This document class runs with the XeTeX engine. PDF files
generated using this class can be searched, and text can be
copied from them and pasted elsewhere.

%files
%doc %{_texmfdistdir}/doc/xelatex/arabic-book
%{_texmfdistdir}/tex/xelatex/arabic-book

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9242 |21cr|texlive-arabicfront-51474-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname arabicfront

Summary:	Frontmatter with arabic page numbers
Name:		texlive-arabicfront
Version:	51474
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(arabicfront.sty) = 2024
BuildArch:	noarch

%description
This package modifies the definitions of \frontmatter and
\mainmatter so that page numbering starts in arabic style from
the front matter while preserving the rest of the original
definitions. For it to work, \pagenumbering has to be inside
these macros--most of classes do that, but there are exceptions
like memoir.

%files
%doc %{_texmfdistdir}/doc/latex/arabicfront
%{_texmfdistdir}/tex/latex/arabicfront

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9243 |21cr|texlive-arabluatex-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname arabluatex

Summary:	An ArabTeX-like interface for LuaLaTeX
Name:		texlive-arabluatex
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-arabluatex = 2024
Provides:	tex(arabluatex-patch.sty) = 2024
Provides:	tex(arabluatex.sty) = 2024
BuildArch:	noarch

%description
This package provides for LuaLaTeX an ArabTeX-like interface to
generate Arabic writing from an ascii transliteration. It is
particularly well-suited for complex documents such as
technical documents or critical editions where a lot of
left-to-right commands intertwine with Arabic writing.
arabluatex is able to process any ArabTeX input notation. Its
output can be set in the same modes of vocalization as ArabTeX,
or in different roman transliterations. It further allows many
typographical refinements. It will eventually interact with
some other packages yet to come to produce from .tex source
files, in addition to printed books, TEI xml compliant critical
editions and/or lexicons that can be searched, analyzed and
correlated in various ways.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/lualatex/arabluatex/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9244 |21cr|texlive-arara-4.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-arara
Version:	4.0.5
Release:	1
Summary:	Automation of LaTeX compilation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/arara
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arara.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arara.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arara.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-arara.bin = %{EVRD}

%description
Arara is comparable with other well-known compilation tools
like latexmk and rubber. The key difference is that that arara
determines its actions from metadata in the source code, rather
than relying on indirect resources, such as log file analysis.

#-----------------------------------------------------------------------
%files
%{_bindir}/arara
%{_texmfdistdir}/scripts/arara
%doc %{_texmfdistdir}/doc/support/arara
#- source
%doc %{_texmfdistdir}/source/support/arara

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/arara/arara.sh arara
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9245 |21cr|texlive-archaeologie-57090-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname archaeologie

Summary:	Citation-style which covers rules of the German Archaeology Institute
Name:		texlive-archaeologie
Version:	57090
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-archaeologie = 2024
Provides:	tex(archaeologie.bbx) = 2024
Provides:	tex(archaeologie.cbx) = 2024
BuildArch:	noarch

%description
This citation-style covers the citation and bibliography rules
of the German Archaeological Institute (DAI). Various options
are available to change and adjust the outcome according to
one's own preferences.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/bibtex/bib/archaeologie/
%{_texmfdistdir}/tex/latex/archaeologie/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9246 |21cr|texlive-archaic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/archaic
# catalog-date 2006-11-08 11:10:08 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-archaic
Version:	20190228
Release:	1
Summary:	A collection of archaic fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/archaic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/archaic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/archaic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/archaic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The collection contains fonts to represent Aramaic, Cypriot,
Etruscan, Greek of the 6th and 4th centuries BCE, Egyptian
hieroglyphics, Linear A, Linear B, Nabatean old Persian, the
Phaistos disc, Phoenician, proto-Semitic, runic, South Arabian
Ugaritic and Viking scripts. The bundle also includes a small
font for use in phonetic transcription of the archaic writings.
The bundle's own directory includes a font installation map
file for the whole collection.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/archaic/aram10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/copsn10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/cugar10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/cypr10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/etr10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/fut10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/givbc10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/gvibc10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/linb10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/nab10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/oandsi10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/oandsu10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/phnc10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/pmhg.afm
%{_texmfdistdir}/fonts/afm/public/archaic/proto10.afm
%{_texmfdistdir}/fonts/afm/public/archaic/sarab10.afm
%{_texmfdistdir}/fonts/map/dvips/archaic/aramaic.map
%{_texmfdistdir}/fonts/map/dvips/archaic/archaicprw.map
%{_texmfdistdir}/fonts/map/dvips/archaic/cypriot.map
%{_texmfdistdir}/fonts/map/dvips/archaic/etruscan.map
%{_texmfdistdir}/fonts/map/dvips/archaic/fut10.map
%{_texmfdistdir}/fonts/map/dvips/archaic/greek4cbc.map
%{_texmfdistdir}/fonts/map/dvips/archaic/greek6cbc.map
%{_texmfdistdir}/fonts/map/dvips/archaic/hieroglf.map
%{_texmfdistdir}/fonts/map/dvips/archaic/linearb.map
%{_texmfdistdir}/fonts/map/dvips/archaic/nabatean.map
%{_texmfdistdir}/fonts/map/dvips/archaic/oands.map
%{_texmfdistdir}/fonts/map/dvips/archaic/oldprsn.map
%{_texmfdistdir}/fonts/map/dvips/archaic/phoenician.map
%{_texmfdistdir}/fonts/map/dvips/archaic/protosem.map
%{_texmfdistdir}/fonts/map/dvips/archaic/sarabian.map
%{_texmfdistdir}/fonts/map/dvips/archaic/ugarite.map
%{_texmfdistdir}/fonts/source/public/archaic/copsn10.mf
%{_texmfdistdir}/fonts/source/public/archaic/givbc10.mf
%{_texmfdistdir}/fonts/source/public/archaic/gvibc10.mf
%{_texmfdistdir}/fonts/source/public/archaic/sarab10.mf
%{_texmfdistdir}/fonts/source/public/archaic/vik10.mf
%{_texmfdistdir}/fonts/source/public/archaic/vikglyph.mf
%{_texmfdistdir}/fonts/source/public/archaic/viktitle.mf
%{_texmfdistdir}/fonts/tfm/public/archaic/aram10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/copsn10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/cugar10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/cypr10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/etr10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/fut10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/givbc10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/gvibc10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/linb10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/nab10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/oandsi10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/oandsu10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/phnc10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/pmhg.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/proto10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/sarab10.tfm
%{_texmfdistdir}/fonts/tfm/public/archaic/vik10.tfm
%{_texmfdistdir}/fonts/type1/public/archaic/aram10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/copsn10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/cugar10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/cypr10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/etr10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/fut10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/givbc10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/gvibc10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/linb10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/nab10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/oandsi10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/oandsu10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/phnc10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/pmhg.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/proto10.pfb
%{_texmfdistdir}/fonts/type1/public/archaic/sarab10.pfb
%{_texmfdistdir}/tex/latex/archaic/aramaic.sty
%{_texmfdistdir}/tex/latex/archaic/cypriot.sty
%{_texmfdistdir}/tex/latex/archaic/etruscan.sty
%{_texmfdistdir}/tex/latex/archaic/greek4cbc.sty
%{_texmfdistdir}/tex/latex/archaic/greek6cbc.sty
%{_texmfdistdir}/tex/latex/archaic/hieroglf.sty
%{_texmfdistdir}/tex/latex/archaic/linearb.sty
%{_texmfdistdir}/tex/latex/archaic/nabatean.sty
%{_texmfdistdir}/tex/latex/archaic/oands.sty
%{_texmfdistdir}/tex/latex/archaic/oldprsn.sty
%{_texmfdistdir}/tex/latex/archaic/ot1aram.fd
%{_texmfdistdir}/tex/latex/archaic/ot1copsn.fd
%{_texmfdistdir}/tex/latex/archaic/ot1cugar.fd
%{_texmfdistdir}/tex/latex/archaic/ot1cypr.fd
%{_texmfdistdir}/tex/latex/archaic/ot1etr.fd
%{_texmfdistdir}/tex/latex/archaic/ot1fut.fd
%{_texmfdistdir}/tex/latex/archaic/ot1givbc.fd
%{_texmfdistdir}/tex/latex/archaic/ot1gvibc.fd
%{_texmfdistdir}/tex/latex/archaic/ot1nab.fd
%{_texmfdistdir}/tex/latex/archaic/ot1oands.fd
%{_texmfdistdir}/tex/latex/archaic/ot1phnc.fd
%{_texmfdistdir}/tex/latex/archaic/ot1pmhg.fd
%{_texmfdistdir}/tex/latex/archaic/ot1proto.fd
%{_texmfdistdir}/tex/latex/archaic/ot1sarab.fd
%{_texmfdistdir}/tex/latex/archaic/ot1vik.fd
%{_texmfdistdir}/tex/latex/archaic/phoenician.sty
%{_texmfdistdir}/tex/latex/archaic/protosem.sty
%{_texmfdistdir}/tex/latex/archaic/runic.sty
%{_texmfdistdir}/tex/latex/archaic/sarabian.sty
%{_texmfdistdir}/tex/latex/archaic/t1aram.fd
%{_texmfdistdir}/tex/latex/archaic/t1copsn.fd
%{_texmfdistdir}/tex/latex/archaic/t1cugar.fd
%{_texmfdistdir}/tex/latex/archaic/t1cypr.fd
%{_texmfdistdir}/tex/latex/archaic/t1etr.fd
%{_texmfdistdir}/tex/latex/archaic/t1fut.fd
%{_texmfdistdir}/tex/latex/archaic/t1givbc.fd
%{_texmfdistdir}/tex/latex/archaic/t1gvibc.fd
%{_texmfdistdir}/tex/latex/archaic/t1linb.fd
%{_texmfdistdir}/tex/latex/archaic/t1nab.fd
%{_texmfdistdir}/tex/latex/archaic/t1oands.fd
%{_texmfdistdir}/tex/latex/archaic/t1phnc.fd
%{_texmfdistdir}/tex/latex/archaic/t1pmhg.fd
%{_texmfdistdir}/tex/latex/archaic/t1proto.fd
%{_texmfdistdir}/tex/latex/archaic/t1sarab.fd
%{_texmfdistdir}/tex/latex/archaic/t1vik.fd
%{_texmfdistdir}/tex/latex/archaic/ugarite.sty
%{_texmfdistdir}/tex/latex/archaic/viking.sty
%doc %{_texmfdistdir}/doc/fonts/archaic/README.PRW
%doc %{_texmfdistdir}/doc/fonts/archaic/aramaic-README
%doc %{_texmfdistdir}/doc/fonts/archaic/aramaic.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/asamples.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/asamples.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/cypriot-README
%doc %{_texmfdistdir}/doc/fonts/archaic/cypriot.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/etruscan-README
%doc %{_texmfdistdir}/doc/fonts/archaic/etruscan.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/greek4cbc-README
%doc %{_texmfdistdir}/doc/fonts/archaic/greek4cbc-trygivbc.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/greek4cbc-trygivbc.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/greek4cbc.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/greek6cbc-README
%doc %{_texmfdistdir}/doc/fonts/archaic/greek6cbc-trygvibc.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/greek6cbc-trygvibc.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/greek6cbc.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/hieroglf-README
%doc %{_texmfdistdir}/doc/fonts/archaic/hieroglf-trypmhg.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/hieroglf-trypmhg.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/hieroglf.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/linearb-README
%doc %{_texmfdistdir}/doc/fonts/archaic/linearb.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/nabatean-README
%doc %{_texmfdistdir}/doc/fonts/archaic/nabatean.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/oands-README
%doc %{_texmfdistdir}/doc/fonts/archaic/oands.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/oldprsn-README
%doc %{_texmfdistdir}/doc/fonts/archaic/oldprsn.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/phoenician-README
%doc %{_texmfdistdir}/doc/fonts/archaic/phoenician-tryphnc.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/phoenician-tryphnc.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/phoenician.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/protosem-README
%doc %{_texmfdistdir}/doc/fonts/archaic/protosem.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/runic-README
%doc %{_texmfdistdir}/doc/fonts/archaic/runic.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/sarabian-README
%doc %{_texmfdistdir}/doc/fonts/archaic/sarabian.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/tryaramaic.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/tryaramaic.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/trycypriot.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/trycypriot.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/tryetruscan.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/tryetruscan.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/trylinearb.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/trylinearb.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/trynabatean.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/trynabatean.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/tryoands.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/tryoands.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/tryoldprsn.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/tryoldprsn.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/tryprotosem.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/tryprotosem.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/tryrunic.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/tryrunic.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/trysarabian.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/trysarabian.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/tryugarite.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/tryugarite.tex
%doc %{_texmfdistdir}/doc/fonts/archaic/ugarite-README
%doc %{_texmfdistdir}/doc/fonts/archaic/ugarite.pdf
%doc %{_texmfdistdir}/doc/fonts/archaic/viking-README
%doc %{_texmfdistdir}/doc/fonts/archaic/viking-try_vik.tex
#- source
%doc %{_texmfdistdir}/source/fonts/archaic/aramaic.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/aramaic.ins
%doc %{_texmfdistdir}/source/fonts/archaic/cypriot.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/cypriot.ins
%doc %{_texmfdistdir}/source/fonts/archaic/etruscan.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/etruscan.ins
%doc %{_texmfdistdir}/source/fonts/archaic/greek4cbc.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/greek4cbc.ins
%doc %{_texmfdistdir}/source/fonts/archaic/greek6cbc.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/greek6cbc.ins
%doc %{_texmfdistdir}/source/fonts/archaic/hieroglf.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/hieroglf.ins
%doc %{_texmfdistdir}/source/fonts/archaic/linearb.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/linearb.ins
%doc %{_texmfdistdir}/source/fonts/archaic/nabatean.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/nabatean.ins
%doc %{_texmfdistdir}/source/fonts/archaic/oands.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/oands.ins
%doc %{_texmfdistdir}/source/fonts/archaic/oldprsn.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/oldprsn.ins
%doc %{_texmfdistdir}/source/fonts/archaic/phoenician.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/phoenician.ins
%doc %{_texmfdistdir}/source/fonts/archaic/protosem.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/protosem.ins
%doc %{_texmfdistdir}/source/fonts/archaic/runic.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/runic.ins
%doc %{_texmfdistdir}/source/fonts/archaic/sarabian.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/sarabian.ins
%doc %{_texmfdistdir}/source/fonts/archaic/ugarite.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/ugarite.ins
%doc %{_texmfdistdir}/source/fonts/archaic/viking.dtx
%doc %{_texmfdistdir}/source/fonts/archaic/viking.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9247 |21cr|texlive-arev-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/arev
# catalog-date 2007-02-25 15:08:52 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-arev
Version:	20190228
Release:	1
Summary:	Fonts and LaTeX support files for Arev Sans
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/arev
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arev.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arev.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arev.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package arev provides type 1 and virtual fonts, together
with LaTeX packages for using Arev Sans in both text and
mathematics. Arev Sans is a derivative of Bitstream Vera Sans
created by Tavmjong Bah, adding support for Greek and Cyrillic
characters. Bah also added a few variant letters that are more
appropriate for mathematics. The primary purpose for using Arev
Sans in LaTeX is presentations, particularly when using a
computer projector. In such a context, Arev Sans is quite
readable, with large x-height, "open letters", wide spacing,
and thick stems. The style is very similar to the SliTeX font
lcmss, but heavier. Arev is one of a very small number of sans-
font mathematics support packages. Others are cmbright, hvmath
and kerkis.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/arev/ArevSans-Bold.afm
%{_texmfdistdir}/fonts/afm/public/arev/ArevSans-BoldOblique.afm
%{_texmfdistdir}/fonts/afm/public/arev/ArevSans-Oblique.afm
%{_texmfdistdir}/fonts/afm/public/arev/ArevSans-Roman.afm
%{_texmfdistdir}/fonts/enc/dvips/arev/arevoml.enc
%{_texmfdistdir}/fonts/enc/dvips/arev/arevoms.enc
%{_texmfdistdir}/fonts/enc/dvips/arev/arevot1.enc
%{_texmfdistdir}/fonts/map/dvips/arev/arev.map
%{_texmfdistdir}/fonts/tfm/public/arev/ArevSans-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/ArevSans-BoldOblique.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/ArevSans-Oblique.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/ArevSans-Roman.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favb8r.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favbi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favmb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favmbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favmr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favmr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favmri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favr8r.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favri8r.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/favri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/zavmb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/zavmbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/zavmr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/zavmr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/arev/zavmri7m.tfm
%{_texmfdistdir}/fonts/type1/public/arev/ArevSans-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/arev/ArevSans-BoldOblique.pfb
%{_texmfdistdir}/fonts/type1/public/arev/ArevSans-Oblique.pfb
%{_texmfdistdir}/fonts/type1/public/arev/ArevSans-Roman.pfb
%{_texmfdistdir}/fonts/vf/public/arev/favb8t.vf
%{_texmfdistdir}/fonts/vf/public/arev/favbi8t.vf
%{_texmfdistdir}/fonts/vf/public/arev/favr8t.vf
%{_texmfdistdir}/fonts/vf/public/arev/favri8t.vf
%{_texmfdistdir}/fonts/vf/public/arev/zavmb7t.vf
%{_texmfdistdir}/fonts/vf/public/arev/zavmbi7m.vf
%{_texmfdistdir}/fonts/vf/public/arev/zavmr7t.vf
%{_texmfdistdir}/fonts/vf/public/arev/zavmr7y.vf
%{_texmfdistdir}/fonts/vf/public/arev/zavmri7m.vf
%{_texmfdistdir}/tex/latex/arev/ams-mdbch.sty
%{_texmfdistdir}/tex/latex/arev/arev.sty
%{_texmfdistdir}/tex/latex/arev/arevmath.sty
%{_texmfdistdir}/tex/latex/arev/arevsymbols.tex
%{_texmfdistdir}/tex/latex/arev/arevtext.sty
%{_texmfdistdir}/tex/latex/arev/omlzavm.fd
%{_texmfdistdir}/tex/latex/arev/omszavm.fd
%{_texmfdistdir}/tex/latex/arev/ot1zavm.fd
%{_texmfdistdir}/tex/latex/arev/t1fav.fd
%{_texmfdistdir}/tex/latex/arev/uzavm.fd
%doc %{_texmfdistdir}/doc/fonts/arev/ArevSansLicense.txt
%doc %{_texmfdistdir}/doc/fonts/arev/BitstreamVeraLicense.txt
%doc %{_texmfdistdir}/doc/fonts/arev/ChangeLog
%doc %{_texmfdistdir}/doc/fonts/arev/GPLv2.txt
%doc %{_texmfdistdir}/doc/fonts/arev/LPPLv1-3a.txt
%doc %{_texmfdistdir}/doc/fonts/arev/Makefile
%doc %{_texmfdistdir}/doc/fonts/arev/README
%doc %{_texmfdistdir}/doc/fonts/arev/arevdoc.lyx
%doc %{_texmfdistdir}/doc/fonts/arev/arevdoc.pdf
%doc %{_texmfdistdir}/doc/fonts/arev/arevdoc.tex
%doc %{_texmfdistdir}/doc/fonts/arev/fontsample.tex
%doc %{_texmfdistdir}/doc/fonts/arev/mathtesty.pdf
%doc %{_texmfdistdir}/doc/fonts/arev/mathtesty.tex
%doc %{_texmfdistdir}/doc/fonts/arev/prosper-arev.tex
%doc %{_texmfdistdir}/doc/fonts/arev/prosper-cmbright.tex
%doc %{_texmfdistdir}/doc/fonts/arev/prosper-cmss.tex
%doc %{_texmfdistdir}/doc/fonts/arev/prosper-header.tex
%doc %{_texmfdistdir}/doc/fonts/arev/prosper-helvetica.tex
%doc %{_texmfdistdir}/doc/fonts/arev/prosper-kerkis.tex
%doc %{_texmfdistdir}/doc/fonts/arev/prosper-lcmss.tex
%doc %{_texmfdistdir}/doc/fonts/arev/prosper-text.tex
#- source
%doc %{_texmfdistdir}/source/fonts/arev/TODO.txt
%doc %{_texmfdistdir}/source/fonts/arev/afmtoglyphlist
%doc %{_texmfdistdir}/source/fonts/arev/arevfontinst.tex
%doc %{_texmfdistdir}/source/fonts/arev/arevoml.etx
%doc %{_texmfdistdir}/source/fonts/arev/arevoms.etx
%doc %{_texmfdistdir}/source/fonts/arev/arevot1.etx
%doc %{_texmfdistdir}/source/fonts/arev/convert-ff
%doc %{_texmfdistdir}/source/fonts/arev/createkerndata
%doc %{_texmfdistdir}/source/fonts/arev/enctofontpos
%doc %{_texmfdistdir}/source/fonts/arev/fixkernaccents.tex
%doc %{_texmfdistdir}/source/fonts/arev/fixweierstrass.mtx
%doc %{_texmfdistdir}/source/fonts/arev/fonttokernsfd.ff
%doc %{_texmfdistdir}/source/fonts/arev/fonttopfb.ff
%doc %{_texmfdistdir}/source/fonts/arev/glyphlistoml.tex
%doc %{_texmfdistdir}/source/fonts/arev/glyphlistoms.tex
%doc %{_texmfdistdir}/source/fonts/arev/glyphlistot1.tex
%doc %{_texmfdistdir}/source/fonts/arev/makefontfiles
%doc %{_texmfdistdir}/source/fonts/arev/resetdotlessi.mtx
%doc %{_texmfdistdir}/source/fonts/arev/sfdtokernaccent
%doc %{_texmfdistdir}/source/fonts/arev/unsetomssymbols.mtx
%doc %{_texmfdistdir}/source/fonts/arev/unsetot1symbols.mtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9248 |21cr|texlive-arimo-64548-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname arimo

Summary:	Arimo sans serif fonts with LaTeX support
Name:		texlive-arimo
Version:	64548
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(Arimo-BoldItalic.pfb) = 2024
Provides:	tex(Arimo-BoldItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Arimo-BoldItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Arimo-BoldItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Arimo-BoldItalic-tlf-t1.tfm) = 2024
Provides:	tex(Arimo-BoldItalic-tlf-t1.vf) = 2024
Provides:	tex(Arimo-BoldItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Arimo-BoldItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Arimo-BoldItalic-tlf-ts1.vf) = 2024
Provides:	tex(Arimo-BoldItalic.ttf) = 2024
Provides:	tex(Arimo-Bold.pfb) = 2024
Provides:	tex(Arimo-Bold-tlf-ly1.tfm) = 2024
Provides:	tex(Arimo-Bold-tlf-ot1.tfm) = 2024
Provides:	tex(Arimo-Bold-tlf-t1--base.tfm) = 2024
Provides:	tex(Arimo-Bold-tlf-t1.tfm) = 2024
Provides:	tex(Arimo-Bold-tlf-t1.vf) = 2024
Provides:	tex(Arimo-Bold-tlf-ts1--base.tfm) = 2024
Provides:	tex(Arimo-Bold-tlf-ts1.tfm) = 2024
Provides:	tex(Arimo-Bold-tlf-ts1.vf) = 2024
Provides:	tex(Arimo-Bold.ttf) = 2024
Provides:	tex(Arimo-Italic.pfb) = 2024
Provides:	tex(Arimo-Italic-tlf-ly1.tfm) = 2024
Provides:	tex(Arimo-Italic-tlf-ot1.tfm) = 2024
Provides:	tex(Arimo-Italic-tlf-t1--base.tfm) = 2024
Provides:	tex(Arimo-Italic-tlf-t1.tfm) = 2024
Provides:	tex(Arimo-Italic-tlf-t1.vf) = 2024
Provides:	tex(Arimo-Italic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Arimo-Italic-tlf-ts1.tfm) = 2024
Provides:	tex(Arimo-Italic-tlf-ts1.vf) = 2024
Provides:	tex(Arimo-Italic.ttf) = 2024
Provides:	tex(arimo.map) = 2024
Provides:	tex(Arimo.pfb) = 2024
Provides:	tex(Arimo-Regular.ttf) = 2024
Provides:	tex(arimo.sty) = 2024
Provides:	tex(Arimo-tlf-ly1.tfm) = 2024
Provides:	tex(Arimo-tlf-ot1.tfm) = 2024
Provides:	tex(Arimo-tlf-t1--base.tfm) = 2024
Provides:	tex(Arimo-tlf-t1.tfm) = 2024
Provides:	tex(Arimo-tlf-t1.vf) = 2024
Provides:	tex(Arimo-tlf-ts1--base.tfm) = 2024
Provides:	tex(Arimo-tlf-ts1.tfm) = 2024
Provides:	tex(Arimo-tlf-ts1.vf) = 2024
Provides:	tex(arm_7miqnq.enc) = 2024
Provides:	tex(arm_c3z4r2.enc) = 2024
Provides:	tex(arm_f4duzd.enc) = 2024
Provides:	tex(arm_l3opzb.enc) = 2024
Provides:	tex(LY1Arimo-TLF.fd) = 2024
Provides:	tex(OT1Arimo-TLF.fd) = 2024
Provides:	tex(T1Arimo-TLF.fd) = 2024
Provides:	tex(TS1Arimo-TLF.fd) = 2024
BuildArch:	noarch

%description
The Arimo family, designed by Steve Matteson, is an innovative,
refreshing sans serif design which is metrically compatible
with Arial.

%files
%doc %{_texmfdistdir}/doc/fonts/arimo/
%{_texmfdistdir}/fonts/enc/dvips/arimo/
%{_texmfdistdir}/fonts/map/dvips/arimo/
%{_texmfdistdir}/fonts/tfm/google/arimo/
%{_texmfdistdir}/fonts/truetype/google/arimo/
%{_texmfdistdir}/fonts/type1/google/arimo/
%{_texmfdistdir}/fonts/vf/google/arimo/
%{_texmfdistdir}/tex/latex/arimo/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9249 |21cr|texlive-armtex-20221026-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-armtex
Version:	20221026
Release:	1
Summary:	ArmTeX is a system for typesetting Armenian text with Plain TeX or LaTeX(2e)
Group:		Publishing
URL:		https://ctan.org/tex-archive/language/armenian/armtex
License:	The LaTeX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/armtex.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/armtex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
ArmTeX is a system for writing in Armenian with plain TeX and/or LaTeX(2e).
It can be used with a standard Latin keyboard without any special support for
Armenian letters. It can also be used with an Armenian keyboard which
supports either Unicode (UTF-8) encoding, or any single-byte encoding having
Armenian letters in the second half (characters 128-255) of the extended ASCII
table (however, single-byte encoding definition files are provided for
ArmSCII8 encoding only; for other single-byte encodings you will have to write
corresponding encoding definition files for plain TeX and/or for LaTeX
yourself, using respectively `armkb-a8.tex' and `armscii8.def' as examples).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/armenian
%{_texmfdistdir}/tex/latex/armenian
%{_texmfdistdir}/fonts/type1/public/armenian
%{_texmfdistdir}/fonts/tfm/public/armenian
%{_texmfdistdir}/fonts/source/public/armenian
%{_texmfdistdir}/fonts/map/dvips/armenian
%{_texmfdistdir}/fonts/afm/public/armenian
%doc %{_texmfdistdir}/doc/generic/armenian/README
%doc %{_texmfdistdir}/doc/generic/armenian/manual-e.pdf
%doc %{_texmfdistdir}/doc/generic/armenian/manual.pdf
%doc %{_texmfdistdir}/doc/generic/armenian/examples/latex
%doc %{_texmfdistdir}/doc/generic/armenian/examples/plain

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc fonts %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9250 |21cr|texlive-arphic-ttf-42675-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname arphic-ttf

Summary:	TrueType version of Chinese Arphic fonts
Name:		texlive-arphic-ttf
Version:	42675
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bkai00mp.ttf) = 2024
Provides:	tex(bsmi00lp.ttf) = 2024
Provides:	tex(gbsn00lp.ttf) = 2024
Provides:	tex(gkai00mp.ttf) = 2024
BuildArch:	noarch

%description
This package provides TrueType versions of the Chinese Arphic
fonts for use with XeLaTeX and LuaLaTeX. Type1 versions of
these fonts, for use with pdfLaTeX and the cjk package, are
provided by the arphic package. Arphic is actually the name of
the company which created these fonts.

%files
%doc %{_texmfdistdir}/doc/fonts/arphic-ttf/
%{_texmfdistdir}/fonts/truetype/public/arphic-ttf/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9251 |21cr|texlive-arraycols-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname arraycols

Summary:	New column types for array and tabular environments
Name:		texlive-arraycols
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(arraycols.sty) = 2024
BuildArch:	noarch

%description
This small package provides new column types for array and
tabular environments, horizontally and vertically centered, or
with adjusted height for big mathematical expressions. The
columns width can be fixed or calculated like in tabularx
environments. Macros for drawing vertical and horizontal rules
of variable thickness are also provided.

%files
%doc %{_texmfdistdir}/doc/latex/arraycols
%{_texmfdistdir}/tex/latex/arraycols

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9252 |21cr|texlive-arvo-57213-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname arvo

Summary:	The Arvo font face with support for LaTeX and pdfLaTeX
Name:		texlive-arvo
Version:	57213
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_6czsg4.enc) = 2024
Provides:	tex(a_fibvii.enc) = 2024
Provides:	tex(a_fin2th.enc) = 2024
Provides:	tex(a_jtfq37.enc) = 2024
Provides:	tex(a_od575u.enc) = 2024
Provides:	tex(Arvo.map) = 2024
Provides:	tex(Arvo.sty) = 2024
Provides:	tex(a_vt66fp.enc) = 2024
Provides:	tex(a_zmrji7.enc) = 2024
Provides:	tex(LY1Arvo-TLF.fd) = 2024
Provides:	tex(OT1Arvo-TLF.fd) = 2024
Provides:	tex(T1Arvo-TLF.fd) = 2024
Provides:	tex(TS1Arvo-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides the Arvo family of fonts designed by
Anton Koovit, with support for LaTeX and pdfLaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/arvo
%{_texmfdistdir}/fonts/enc/dvips/arvo
%{_texmfdistdir}/fonts/map/dvips/arvo
%{_texmfdistdir}/fonts/tfm/public/arvo
%{_texmfdistdir}/fonts/truetype/public/arvo
%{_texmfdistdir}/fonts/vf/public/arvo
%{_texmfdistdir}/tex/latex/arvo

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9253 |21cr|texlive-asapsym-40201-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname asapsym

Summary:	Using the free ASAP Symbol font with LaTeX and Plain TeX
Name:		texlive-asapsym
Version:	40201
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-asapsym = 2024
Provides:	tex(Asap-Symbol.otf) = 2024
Provides:	tex(asapsym.code.tex) = 2024
Provides:	tex(asapsym-generic.tex) = 2024
Provides:	tex(asapsym.sty) = 2024
BuildArch:	noarch

%description
The package provides macros (usable with LaTeX or Plain TeX)
for using the freely available ASAP Symbol font, which is also
included. The font is distributed in OpenType format, and makes
extensive use of OpenType features. Therefore, at this time,
only XeTeX and LuaTeX are supported. An error message is issued
if an OTF-capable engine is not detected.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/omnibus-type/asapsym/
%{_texmfdistdir}/tex/generic/asapsym/
%{_texmfdistdir}/tex/latex/asapsym/
%{_texmfdistdir}/tex/plain/asapsym/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9254 |21cr|texlive-ascii-font-29989.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ascii-font

Summary:	Use the ASCII "font" in LaTeX
Name:		texlive-ascii-font
Version:	29989.2.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(xspace.sty)
Provides:	tex-ascii-font = 2024
Provides:	tex(ascii.map) = 2024
Provides:	tex(ASCII.pfb) = 2024
Provides:	tex(ascii.sty) = 2024
Provides:	tex(ASCII.tfm) = 2024
BuildArch:	noarch

%description
The package provides glyph and font access commands so that
LaTeX users can use the ASCII glyphs in their documents. The
ASCII font is encoded according to the IBM PC Code Page 437 C0
Graphics. This package replaces any early LaTeX 2.09 package
and "font" by R. Ramasubramanian and R.W.D. Nickalls.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/map/dvips/ascii-font/
%{_texmfdistdir}/fonts/tfm/public/ascii-font/
%{_texmfdistdir}/fonts/type1/public/ascii-font/
%{_texmfdistdir}/tex/latex/ascii-font/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9255 |21cr|texlive-ascmac-53411-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ascmac

Summary:	Boxes and picture macros with Japanese vertical writing support
Name:		texlive-ascmac
Version:	53411
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ascgrp.mf) = 2024
Provides:	tex(ascgrp.pfb) = 2024
Provides:	tex(ascgrp.tfm) = 2024
Provides:	tex(ascii10.mf) = 2024
Provides:	tex(ascii10.pfb) = 2024
Provides:	tex(ascii10.tfm) = 2024
Provides:	tex(ascii36.mf) = 2024
Provides:	tex(ascii36.pfb) = 2024
Provides:	tex(ascii36.tfm) = 2024
Provides:	tex(ascii.mf) = 2024
Provides:	tex(ascmac.sty) = 2024
Provides:	tex(tascmac.sty) = 2024
BuildArch:	noarch

%description
The bundle provides boxes and picture macros with Japanese
vertical writing support. It uses only native picture macros
and fonts for drawing boxes and is thus driver-independent.
Formerly part of the Japanese pLaTeX bundle, it now supports
all LaTeX engines.

%files
%doc %{_texmfdistdir}/doc/latex/ascmac/
%{_texmfdistdir}/fonts/map/dvips/ascmac/
%{_texmfdistdir}/fonts/source/public/ascmac/
%{_texmfdistdir}/fonts/tfm/public/ascmac/
%{_texmfdistdir}/fonts/type1/public/ascmac/
%{_texmfdistdir}/tex/latex/ascmac/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9256 |21cr|texlive-askinclude-54725-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname askinclude

Summary:	Interactive use of \includeonly
Name:		texlive-askinclude
Version:	54725
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(askinclude.sty) = 2024
BuildArch:	noarch

%description
The package asks the user which files to put in a \includeonly
command. There is provision for answering "same as last time"
or "all files".

%files
%doc %{_texmfdistdir}/doc/latex/askinclude
%{_texmfdistdir}/tex/latex/askinclude

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9257 |21cr|texlive-asmeconf-65413-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname asmeconf

Summary:	A template for ASME conference papers
Name:		texlive-asmeconf
Version:	65413
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-newtx
Provides:	tex(asmeconf.bst) = 2024
Provides:	tex(asmeconf.cls) = 2024
BuildArch:	noarch

%description
The asmeconf class provides a LaTeX template for ASME
conference papers, following ASME's guidelines for margins,
fonts, headings, captions, and reference formats as of 2021.
This LaTeX template is intended to be used with the
asmeconf.bst BibTeX style, for reference formatting, which is
part of this distribution. Unlike older ASME conference LaTeX
templates, asmeconf pdfs will contain hyperlinks, bookmarks,
and metadata; and the references can include the DOI and URL
fields. This LaTeX template enables inline author names,
following ASME's current style, but it can also produce the
traditional grid style. Options include line numbering, final
column balancing, various math options, government copyright,
archivability (PDF/A), and multilingual support. The code is
compatible with pdfLaTeX or LuaLaTeX. This LaTeX template is
not a publication of ASME, but it does conform to ASME's
currently published guidelines for conference papers.

%files
%doc %{_texmfdistdir}/doc/latex/asmeconf
%{_texmfdistdir}/bibtex/bst/asmeconf
%{_texmfdistdir}/tex/latex/asmeconf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9258 |21cr|texlive-asmejour-65405-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname asmejour

Summary:	A template for ASME journal papers
Name:		texlive-asmejour
Version:	65405
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-newtx
Provides:	tex(asmejour.bst) = 2024
Provides:	tex(asmejour.cls) = 2024
BuildArch:	noarch

%description
The asmejour class provides a template to format preprints
submitted to ASME journals. The layout and reference formats
closely follow the style that is currently being used for
published papers. The class is intended to be used with the
asmejour.bst BibTeX style, which is part of this distribution.
Unlike older ASME LaTeX templates, asmejour pdfs will contain
hyperlinks, bookmarks, and metadata, and references can include
the DOI and URL fields. Options include line numbering, final
column balancing, various math options, government copyright,
and archivability (PDF/A). The class is compatible with
pdfLaTeX or LuaLaTeX. This package is not a publication of
ASME.

%files
%doc %{_texmfdistdir}/doc/latex/asmejour
%{_texmfdistdir}/bibtex/bst/asmejour
%{_texmfdistdir}/tex/latex/asmejour

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9259 |21cr|texlive-aspectratio-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25243
# category Package
# catalog-ctan /macros/latex/contrib/aspectratio
# catalog-date 2012-01-28 10:04:30 +0100
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-aspectratio
Version:	2.0
Release:	7
Summary:	Capital A and capital R ligature for Aspect Ratio
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/aspectratio
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aspectratio.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aspectratio.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides fonts (both as Adobe Type 1 format, and as
Metafont source) for the 'AR' symbol (for Aspect Ratio) used by
aeronautical scientists and engineers.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/aspectratio/aspectratio.map
%{_texmfdistdir}/fonts/source/public/aspectratio/ar10.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/ar12.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/ar6.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/ar7.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/ar8.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/ar9.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arb10.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arb12.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arb5.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arb6.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arb7.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arb8.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arb9.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arssbi10.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/arssi10.mf
%{_texmfdistdir}/fonts/source/public/aspectratio/artti10.mf
%{_texmfdistdir}/fonts/tfm/public/aspectratio/amarbi.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/amarri.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/aparbi.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/aparri.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/ar10.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/ar12.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/ar5.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/ar6.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/ar7.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/ar8.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/ar9.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arb10.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arb12.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arb5.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arb6.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arb7.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arb8.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arb9.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arssbi10.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/arssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/aspectratio/artti10.tfm
%{_texmfdistdir}/fonts/type1/public/aspectratio/amarbi.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/amarri.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/ar10.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/ar12.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/ar5.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/ar6.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/ar7.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/ar8.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/ar9.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arb10.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arb12.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arb5.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arb6.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arb7.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arb8.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arb9.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arssbi10.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/arssi10.pfb
%{_texmfdistdir}/fonts/type1/public/aspectratio/artti10.pfb
%{_texmfdistdir}/tex/latex/aspectratio/ar.sty
%doc %{_texmfdistdir}/doc/latex/aspectratio/ar.pdf
%doc %{_texmfdistdir}/doc/latex/aspectratio/ar.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9260 |21cr|texlive-association-matrix-64845-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname association-matrix

Summary:	LaTeX support for creating association matrices
Name:		texlive-association-matrix
Version:	64845
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
#Requires:	tex(forloop.sty)
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(textcomp.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(association-matrix.sty) = 2024
BuildArch:	noarch

%description
This package allows the creation of association matrices in an
clear and concise fashion, without having to deal with manually
generating and modifying the tables while working. All you have
to do is define the rows and the columns by their unique
identifier, and then specify which cells should be marked as
associated. Then, the \amxgenerate command generates a table
that shows in the cells with a blip (*) where the association
was added. The package depends on etoolbox, forloop, ifthen,
textcomp, and xparse.

%files
%doc %{_texmfdistdir}/doc/latex/association-matrix
%{_texmfdistdir}/tex/latex/association-matrix

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9261 |21cr|texlive-asternote-63838-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname asternote

Summary:	Annotation symbols enclosed in square brackets and marked with an asterisk
Name:		texlive-asternote
Version:	63838
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(asternote.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package can output annotation symbols enclosed in
square brackets and marked with an asterisk.

%files
%doc %{_texmfdistdir}/doc/latex/asternote
%{_texmfdistdir}/tex/latex/asternote

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9262 |21cr|texlive-astro-2.20-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/astro
# catalog-date 2008-10-03 22:28:15 +0200
# catalog-license lppl
# catalog-version 2.20
Name:		texlive-astro
Version:	2.20
Release:	8
Summary:	Astronomical (planetary) symbols
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/astro
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/astro.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/astro.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Astrosym is a font containing astronomical symbols, including
those used for the planets, four planetoids, the phases of the
moon, the signs of the zodiac, and some additional symbols. The
font is distributed in MetaFont format.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/astro/astrosym.cal
%{_texmfdistdir}/fonts/source/public/astro/astrosym.cmn
%{_texmfdistdir}/fonts/source/public/astro/astrosym.mac
%{_texmfdistdir}/fonts/source/public/astro/astrosym.mf
%{_texmfdistdir}/fonts/source/public/astro/astrosym.uni
%{_texmfdistdir}/fonts/source/public/astro/astrosym.xtr
%{_texmfdistdir}/fonts/tfm/public/astro/astrosym.tfm
%doc %{_texmfdistdir}/doc/fonts/astro/astrosym.tex
%doc %{_texmfdistdir}/doc/fonts/astro/astrosym.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9263 |21cr|texlive-atbegshi-53051-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname atbegshi

Summary:	Execute stuff at \shipout time
Name:		texlive-atbegshi
Version:	53051
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(atbegshi.sty) = 2024
BuildArch:	noarch

%description
This package is a modern reimplementation of package everyshi,
providing various commands to be executed before a \shipout
command. It makes use of e-TeX's facilities if they are
available. The package may be used either with LaTeX or with
plain TeX.

%files
%doc %{_texmfdistdir}/doc/latex/atbegshi
%{_texmfdistdir}/tex/generic/atbegshi

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9264 |21cr|texlive-atenddvi-56922-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname atenddvi

Summary:	Provides the \AtEndDvi command
Name:		texlive-atenddvi
Version:	56922
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(atenddvi-2019-12-11.sty) = 2024
Provides:	tex(atenddvi.sty) = 2024
BuildArch:	noarch

%description
This package is unneeded and does nothing when used with a
LaTeX format 2020-10-01 or newer as in this case the format
provides the \AtEndDvi command. For older formats it implements
\AtEndDvi, a counterpart to \AtBeginDvi. The execution of its
argument is delayed to the end of the document at the end of
the last page. Thus \special and \write remain effective,
because they are put into the last page. This is the main
difference to \AtEndDocument.

%files
%doc %{_texmfdistdir}/doc/latex/atenddvi
%{_texmfdistdir}/tex/latex/atenddvi

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9265 |21cr|texlive-atendofenv-62164-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname atendofenv

Summary:	Add a custom symbol at the end of an environment
Name:		texlive-atendofenv
Version:	62164
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(atendofenv.sty) = 2024
BuildArch:	noarch

%description
This package allows adding a custom symbol at the end of an
environment (e.g. theorems, definitions, remarks).

%files
%doc %{_texmfdistdir}/doc/latex/atendofenv
%{_texmfdistdir}/tex/latex/atendofenv

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9266 |21cr|texlive-atkinson-64385-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname atkinson

Summary:	Support for the Atkinson Hyperlegible family of fonts
Name:		texlive-atkinson
Version:	64385
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(atkinson.map) = 2024
Provides:	tex(atkinson.sty) = 2024
Provides:	tex(atksn_2covbz.enc) = 2024
Provides:	tex(atksn_2hyoa7.enc) = 2024
Provides:	tex(atksn_cvs3iv.enc) = 2024
Provides:	tex(atksn_eyh74z.enc) = 2024
Provides:	tex(atksn_g47ykb.enc) = 2024
Provides:	tex(atksn_oy2yah.enc) = 2024
Provides:	tex(atksn_vucprl.enc) = 2024
Provides:	tex(atksn_w3wxei.enc) = 2024
Provides:	tex(atksn_wy3za2.enc) = 2024
Provides:	tex(atksn_ycy2xh.enc) = 2024
Provides:	tex(LY1atkinsn-LF.fd) = 2024
Provides:	tex(LY1atkinsn-Sup.fd) = 2024
Provides:	tex(LY1atkinsn-TLF.fd) = 2024
Provides:	tex(OT1atkinsn-LF.fd) = 2024
Provides:	tex(OT1atkinsn-Sup.fd) = 2024
Provides:	tex(OT1atkinsn-TLF.fd) = 2024
Provides:	tex(T1atkinsn-LF.fd) = 2024
Provides:	tex(T1atkinsn-Sup.fd) = 2024
Provides:	tex(T1atkinsn-TLF.fd) = 2024
Provides:	tex(TS1atkinsn-LF.fd) = 2024
Provides:	tex(TS1atkinsn-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Atkinson Hyperlegible family of fonts, named
after Braille Institute founder, J. Robert Atkinson. What makes
it different from traditional typography design is that it
focuses on letterform distinction to increase character
recognition, ultimately improving readability.

%files
%doc %{_texmfdistdir}/doc/fonts/atkinson
%{_texmfdistdir}/fonts/enc/dvips/atkinson
%{_texmfdistdir}/fonts/map/dvips/atkinson
%{_texmfdistdir}/fonts/opentype/public/atkinson
%{_texmfdistdir}/fonts/tfm/public/atkinson
%{_texmfdistdir}/fonts/type1/public/atkinson
%{_texmfdistdir}/fonts/vf/public/atkinson
%{_texmfdistdir}/tex/latex/atkinson

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9267 |21cr|texlive-atveryend-53108-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname atveryend

Summary:	Hooks at the very end of a document
Name:		texlive-atveryend
Version:	53108
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(atveryend.sty) = 2024
BuildArch:	noarch

%description
This LaTeX packages provides two hooks for \end{document} that
are executed after the hook of \AtEndDocument:
\AfterLastShipout can be used for code that is to be executed
right after the last \clearpage before the `.aux' file is
closed. \AtVeryEndDocument is used for code after closing and
final reading of the `.aux' file.

%files
%doc %{_texmfdistdir}/doc/latex/atveryend
%{_texmfdistdir}/tex/latex/atveryend

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9268 |21cr|texlive-aucklandthesis-20180107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-aucklandthesis
Version:	20180107
Release:	1
Summary:	Memoir-based class for formatting University of Auckland theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/aucklandthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aucklandthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aucklandthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A memoir-based class for formatting University of Auckland
masters' and doctors' thesis dissertations in any discipline.
The title page does not handle short dissertations for
diplomas.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/aucklandthesis
%doc %{_texmfdistdir}/doc/latex/aucklandthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9269 |21cr|texlive-augie-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18948
# category Package
# catalog-ctan /fonts/augie
# catalog-date 2006-12-29 12:26:56 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-augie
Version:	20190228
Release:	1
Summary:	Calligraphic font for typesetting handwriting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/augie
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/augie.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/augie.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A calligraphic font for simulating American-style informal
handwriting. The font is distributed in Adobe Type 1 format.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/augie/augie___.afm
%{_texmfdistdir}/fonts/map/dvips/augie/augie.map
%{_texmfdistdir}/fonts/tfm/public/augie/augie7t.tfm
%{_texmfdistdir}/fonts/tfm/public/augie/augie8c.tfm
%{_texmfdistdir}/fonts/tfm/public/augie/augie8r.tfm
%{_texmfdistdir}/fonts/tfm/public/augie/augie8t.tfm
%{_texmfdistdir}/fonts/tfm/public/augie/augie___.tfm
%{_texmfdistdir}/fonts/type1/public/augie/augie___.pfb
%{_texmfdistdir}/fonts/vf/public/augie/augie7t.vf
%{_texmfdistdir}/fonts/vf/public/augie/augie8c.vf
%{_texmfdistdir}/fonts/vf/public/augie/augie8t.vf
%{_texmfdistdir}/tex/latex/augie/ot1augie.fd
%{_texmfdistdir}/tex/latex/augie/t1augie.fd
%{_texmfdistdir}/tex/latex/augie/ts1augie.fd
%doc %{_texmfdistdir}/doc/latex/augie/README.augie
%doc %{_texmfdistdir}/doc/latex/augie/augie.txt
%doc %{_texmfdistdir}/doc/latex/augie/other/Augie___.pfm
%doc %{_texmfdistdir}/doc/latex/augie/other/augie___.inf
%doc %{_texmfdistdir}/doc/latex/augie/vtex/augie.ali

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9270 |21cr|texlive-auncial-new-2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/auncial-new
# catalog-date 2008-08-16 20:32:59 +0200
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-auncial-new
Version:	2.0
Release:	8
Summary:	Artificial Uncial font and LaTeX support macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/auncial-new
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/auncial-new.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/auncial-new.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/auncial-new.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The auncial-new bundle provides packages and fonts for a script
based on the Artificial Uncial manuscript book-hand used
between the 6th & 10th century AD. The script consists of
minuscules and digits, with some appropriate period punctuation
marks. Both normal and bold versions are provided, and the font
is distributed in Adobe Type 1 format. This is an experimental
new version of the auncial bundle, which is one of a series of
bookhand fonts. The font follows the B1 encoding developed for
bookhands. Access to the encoding is essential. The encoding
mainly follows the standard T1 encoding.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/auncial-new/auncl10.afm
%{_texmfdistdir}/fonts/afm/public/auncial-new/aunclb10.afm
%{_texmfdistdir}/fonts/map/dvips/auncial-new/auncial.map
%{_texmfdistdir}/fonts/tfm/public/auncial-new/auncl10.tfm
%{_texmfdistdir}/fonts/tfm/public/auncial-new/aunclb10.tfm
%{_texmfdistdir}/fonts/type1/public/auncial-new/auncl10.pfb
%{_texmfdistdir}/fonts/type1/public/auncial-new/aunclb10.pfb
%{_texmfdistdir}/tex/latex/auncial-new/allauncl.sty
%{_texmfdistdir}/tex/latex/auncial-new/auncial.sty
%{_texmfdistdir}/tex/latex/auncial-new/b1auncl.fd
%doc %{_texmfdistdir}/doc/fonts/auncial-new/README
%doc %{_texmfdistdir}/doc/fonts/auncial-new/auncial.pdf
%doc %{_texmfdistdir}/doc/fonts/auncial-new/tryauncial.pdf
%doc %{_texmfdistdir}/doc/fonts/auncial-new/tryauncial.tex
#- source
%doc %{_texmfdistdir}/source/fonts/auncial-new/auncial.dtx
%doc %{_texmfdistdir}/source/fonts/auncial-new/auncial.ins
%doc %{_texmfdistdir}/source/fonts/auncial-new/aunclmfb.dtx
%doc %{_texmfdistdir}/source/fonts/auncial-new/aunclmfc.dtx
%doc %{_texmfdistdir}/source/fonts/auncial-new/aunclmft.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9271 |21cr|texlive-aurical-1.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/aurical
# catalog-date 2008-07-27 23:11:56 +0200
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-aurical
Version:	1.5
Release:	8
Summary:	Calligraphic fonts for use with LaTeX in T1 encoding
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/aurical
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aurical.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aurical.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package that implements a set (AuriocusKalligraphicus) of
three calligraphic fonts derived from the author's handwriting
in Adobe Type 1 Format, T1 (Cork) encoding for use with LaTeX:
- Auriocus Kalligraphicus; - Lukas Svatba; and - Jana Skrivana.
Each font features oldstyle digits and (machine-generated)
boldface and slanted versions. A variant of Lukas Svatba offers
a 'long s'.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/aurical/AmiciLogo.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AmiciLogoBold.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AmiciLogoBoldRslant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AmiciLogoBoldSlant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AmiciLogoRslant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AmiciLogoSlant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AuriocusKalligraphicus.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AuriocusKalligraphicusBold.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AuriocusKalligraphicusBoldRslant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AuriocusKalligraphicusBoldSlant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AuriocusKalligraphicusRslant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/AuriocusKalligraphicusSlant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/JanaSkrivana.afm
%{_texmfdistdir}/fonts/afm/public/aurical/JanaSkrivanaBold.afm
%{_texmfdistdir}/fonts/afm/public/aurical/JanaSkrivanaBoldRslant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/JanaSkrivanaBoldSlant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/JanaSkrivanaRslant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/JanaSkrivanaSlant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/LukasSvatba.afm
%{_texmfdistdir}/fonts/afm/public/aurical/LukasSvatbaBold.afm
%{_texmfdistdir}/fonts/afm/public/aurical/LukasSvatbaBoldRslant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/LukasSvatbaBoldSlant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/LukasSvatbaRslant.afm
%{_texmfdistdir}/fonts/afm/public/aurical/LukasSvatbaSlant.afm
%{_texmfdistdir}/fonts/map/dvips/aurical/aurical.map
%{_texmfdistdir}/fonts/source/public/aurical/aurical_source.zip
%{_texmfdistdir}/fonts/tfm/public/aurical/AmiciLogo.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AmiciLogoBold.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AmiciLogoBoldRslant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AmiciLogoBoldSlant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AmiciLogoRslant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AmiciLogoSlant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AuriocusKalligraphicus.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AuriocusKalligraphicusBold.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AuriocusKalligraphicusBoldRslant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AuriocusKalligraphicusBoldSlant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AuriocusKalligraphicusRslant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/AuriocusKalligraphicusSlant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/JanaSkrivana.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/JanaSkrivanaBold.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/JanaSkrivanaBoldRslant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/JanaSkrivanaBoldSlant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/JanaSkrivanaRslant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/JanaSkrivanaSlant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/LukasSvatba.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/LukasSvatbaBold.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/LukasSvatbaBoldRslant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/LukasSvatbaBoldSlant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/LukasSvatbaRslant.tfm
%{_texmfdistdir}/fonts/tfm/public/aurical/LukasSvatbaSlant.tfm
%{_texmfdistdir}/fonts/type1/public/aurical/AmiciLogo.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AmiciLogoBold.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AmiciLogoBoldRslant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AmiciLogoBoldSlant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AmiciLogoRslant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AmiciLogoSlant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AuriocusKalligraphicus.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AuriocusKalligraphicusBold.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AuriocusKalligraphicusBoldRslant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AuriocusKalligraphicusBoldSlant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AuriocusKalligraphicusRslant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/AuriocusKalligraphicusSlant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/JanaSkrivana.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/JanaSkrivanaBold.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/JanaSkrivanaBoldRslant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/JanaSkrivanaBoldSlant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/JanaSkrivanaRslant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/JanaSkrivanaSlant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/LukasSvatba.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/LukasSvatbaBold.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/LukasSvatbaBoldRslant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/LukasSvatbaBoldSlant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/LukasSvatbaRslant.pfb
%{_texmfdistdir}/fonts/type1/public/aurical/LukasSvatbaSlant.pfb
%{_texmfdistdir}/tex/latex/aurical/T1AmiciLogo.fd
%{_texmfdistdir}/tex/latex/aurical/T1AuriocusKalligraphicus.fd
%{_texmfdistdir}/tex/latex/aurical/T1JanaSkrivana.fd
%{_texmfdistdir}/tex/latex/aurical/T1LukasSvatba.fd
%{_texmfdistdir}/tex/latex/aurical/aurical.sty
%doc %{_texmfdistdir}/doc/latex/aurical/aurical.pdf
%doc %{_texmfdistdir}/doc/latex/aurical/aurical.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9272 |21cr|texlive-authordate-52564-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname authordate

Summary:	Author/date style citation styles
Name:		texlive-authordate
Version:	52564
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(authordate1-4.sty) = 2024
BuildArch:	noarch

%description
Authordate produces styles loosely based on the recommendations
of British Standard 1629(1976), Butcher's Copy-editing and the
Chicago Manual of Style. The bundle provides four BibTeX styles
(authordate1, ..., authordate4), and a LaTeX package, for
citation in author/date style. The BibTeX styles differ in how
they format names and titles; one of them is necessary for the
LaTeX package to work.

%files
%doc %{_texmfdistdir}/doc/bibtex/authordate
%{_texmfdistdir}/bibtex/bst/authordate
%{_texmfdistdir}/tex/latex/authordate

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9273 |21cr|texlive-autoaligne-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22142
# category Package
# catalog-ctan /macros/generic/autoaligne
# catalog-date 2018-11-17
# catalog-license lppl1.3
# catalog-version 1.5
Name:		texlive-autoaligne
Version:	1.5
Release:	1
Summary:	Monthly Notices of the Royal Astronomical Society
Group:		Publishing
URL:		https://www.ctan.org/pkg/autoaligne
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autoaligne.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autoaligne.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows to align terms and members between lines 
containing math expressions.
 
#-----------------------------------------------------------------------
%files

%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9274 |21cr|texlive-autobreak-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-autobreak
Version:	0.3
Release:	1
Epoch:		1
Summary:	Simple line breaking of long formulae
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/autobreak
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autobreak.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autobreak.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autobreak.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements a simple mechanism of line/page
breaking within the align environment of the amsmath package;
new line characters are considered as possible candidates for
the breaks and the package tries to put breaks at adequate
places. It is suitable for computer-generated long formulae
with many terms.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9275 |21cr|texlive-autofancyhdr-54049-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname autofancyhdr

Summary:	Automatically compute headlength for fancyhdr package
Name:		texlive-autofancyhdr
Version:	54049
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(autofancyhdr.sty) = 2024
BuildArch:	noarch

%description
The package automatically computes headlength for the fancyhdr
package

%files
%doc %{_texmfdistdir}/doc/latex/autofancyhdr
%{_texmfdistdir}/tex/latex/autofancyhdr

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9276 |21cr|texlive-auto-pst-pdf-lua-54779-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname auto-pst-pdf-lua

Summary:	Using LuaLaTeX together with PostScript code
Name:		texlive-auto-pst-pdf-lua
Version:	54779
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(ifpdf.sty)
#Requires:	tex(ifplatform.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(auto-pst-pdf-lua.sty) = 2024
BuildArch:	noarch

%description
This package is a slightly modified version of auto-pst-pdf by
Will Robertson, which itself is a wrapper for pst-pdf by Rolf
Niepraschk. The package allows the use of LuaLaTeX together
with PostScript related code, eg. PSTricks. It depends on
ifpdf, ifluatex, ifplatform, and xkeyval.

%files
%doc %{_texmfdistdir}/doc/latex/auto-pst-pdf-lua/
%{_texmfdistdir}/tex/latex/auto-pst-pdf-lua/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9277 |21cr|texlive-autopuncitems-63045-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname autopuncitems

Summary:	Automatically punctuate lists
Name:		texlive-autopuncitems
Version:	63045
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-luatex
Provides:	tex(autopuncitems.sty) = 2024
BuildArch:	noarch

%description
This package provides the autopunc option in the enumitem
environments itemize, enumerate, and description to
automatically punctuate the items. It uses lua pattern matching
to modify the environment's contents.

%files
%doc %{_texmfdistdir}/doc/lualatex/autopuncitems
%{_texmfdistdir}/tex/lualatex/autopuncitems

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9278 |21cr|texlive-auxhook-53173-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname auxhook

Summary:	Hooks for auxiliary files
Name:		texlive-auxhook
Version:	53173
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(auxhook.sty) = 2024
BuildArch:	noarch

%description
This package auxhook provides hooks for adding stuff at the
begin of .aux files.

%files
%doc %{_texmfdistdir}/doc/latex/auxhook
%{_texmfdistdir}/tex/latex/auxhook

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9279 |21cr|texlive-awesomebox-0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-awesomebox
Version:	0.6
Release:	1
Summary:	Draw admonition blocks in your documents, illustrated with FontAwesome icons
Group:		Publishing
URL:		https://ctan.org/pkg/awesomebox
License:	Free license not otherwise listed
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/awesomebox.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/awesomebox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Awesome Boxes is all about drawing admonition blocks around text to inform or alert readers about something particular.
The specific aim of this package is to use FontAwesome icons to ease the illustration of these blocks.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/tlpkg/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex tlpkg doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9280 |21cr|texlive-axodraw2-2.1.1b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54055
# category Package
# catalog-ctan /macros/latex/contrib/axodraw2
# catalog-version 2.1.1b
# catalog-license gpl3
Name:		texlive-axodraw2
Version:	2.1.1b
Release:	1
Summary:	Feynman diagrams in a LaTeX document
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/axodraw2
License:	GPLv3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/axodraw2.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/axodraw2.source.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/axodraw2.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Axodraw2 is a package that defines macros for drawing Feynman graphs
in LaTeX documents.

It is an important development from the axodraw package, but since it
is not completely backwards compatible, we have given the style file a
changed name.

Compared with axodraw, many new features have been added, with new
types of line, and much more flexibility in their properties: For
details see the documentation.

In addition, it is now possible to use axodraw2 with pdflatex, as well
as with the latex-dvips method. However with pdflatex (and also
lualatex and xelatex), an external helper program, axohelp, is used to
perform the geometrical calculations needed for the pdf code inserted
in the output file. The processing involves a run of pdflatex, a run
of axohelp, and then another run of pdflatex.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/axodraw2
%doc %{_texmfdistdir}/source/latex/axodraw2
%doc %{_texmfdistdir}/doc/latex/axodraw2
%doc %{_texmfdistdir}/doc/man/man1

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/tex texmf-dist/doc texmf-dist/source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9281 |21cr|texlive-b1encoding-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21271
# category Package
# catalog-ctan /macros/latex/contrib/b1encoding
# catalog-date 2011-02-01 08:52:21 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-b1encoding
Version:	1.0
Release:	8
Summary:	LaTeX encoding tools for Bookhands fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/b1encoding
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/b1encoding.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/b1encoding.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/b1encoding.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package characterises and defines the author's B1 encoding
for use with LaTeX when typesetting things using his Bookhands
fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/b1encoding/TeXB1.enc
%{_texmfdistdir}/tex/latex/b1encoding/b1cmr.fd
%{_texmfdistdir}/tex/latex/b1encoding/b1enc.def
%doc %{_texmfdistdir}/doc/latex/b1encoding/README
%doc %{_texmfdistdir}/doc/latex/b1encoding/b1encoding.pdf
#- source
%doc %{_texmfdistdir}/source/latex/b1encoding/b1encoding.dtx
%doc %{_texmfdistdir}/source/latex/b1encoding/b1encoding.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9282 |21cr|texlive-babel-belarusian-49022-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname babel-belarusian

Summary:	Babel support for Belarusian
Name:		texlive-babel-belarusian
Version:	49022
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-babel-belarusian = 2024
Provides:	tex(belarusianb.ldf) = 2024
BuildArch:	noarch

%description
The package provides support for use of Babel in documents
written in Belarusian.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/generic/babel-belarusian/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9283 |21cr|texlive-babel-bosnian-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-bosnian
Version:	1.4
Release:	1
Summary:	Support for the Bosnian language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/babel-bosnian.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/babel-bosnian.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/babel-bosnian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides language definition files for use with babel, which
establishes Bosnian conventions in a document (or a subset of the
conventions, if Bosnian is not the main language of the document).
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9284 |21cr|texlive-babel-indonesian-43235-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname babel-indonesian

Summary:	Support for Indonesian within babel
Name:		texlive-babel-indonesian
Version:	43235
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex-babel-indonesian = 2024
Provides:	tex(bahasai.ldf) = 2024
Provides:	tex(bahasa.ldf) = 2024
Provides:	tex(indonesian.ldf) = 2024
Provides:	tex(indon.ldf) = 2024
BuildArch:	noarch

%description
Support for Indonesian within babel.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/generic/babel-indonesian/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9285 |21cr|texlive-babel-japanese-57733-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname babel-japanese

Summary:	Babel support for Japanes
Name:		texlive-babel-japanese
Version:	57733
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(japanese.ldf) = 2024
BuildArch:	noarch

%description
This package provides a japanese option for the babel package.
It defines all the language definition macros in Japanese.
Currently this package works with pLaTeX, upLaTeX, XeLaTeX and
LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/generic/babel-japanese/
%{_texmfdistdir}/tex/generic/babel-japanese/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9286 |21cr|texlive-babel-latvian-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-latvian
Version:	1.4
Release:	1
Summary:	Support for the Latvian language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/babel-latvian.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/babel-latvian.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/babel-latvian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is the babel style for Latvian. It bears the version number 2.0
because there were a 1.x, by Andris Lasis. Version 2.0 is heavily
based on the latter.
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar source tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9287 |21cr|texlive-babel-lithuanian-66513-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname babel-lithuanian

Summary:	Babel support for documents written in Lithuanian
Name:		texlive-babel-lithuanian
Version:	66513
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
Babel support material for documents written in Lithuanian
moved from the lithuanian package into a new package
babel-lithuanian to match babel support for other languages.

%files
%doc %{_texmfdistdir}/doc/generic/babel-lithuanian
%{_texmfdistdir}/tex/generic/babel-lithuanian

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9288 |21cr|texlive-babel-macedonian-20211212-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-macedonian
Version:	20211212
Release:	1
Summary:	TeXLive babel-macedonian package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/babel-macedonian.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/babel-macedonian.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/babel-macedonian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-macedonian package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-macedonian/macedonian.ldf
%doc %{_texmfdistdir}/doc/generic/babel-macedonian/
%doc %{_texmfdistdir}/source/generic/babel-macedonian/

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9289 |21cr|texlive-babel-malay-43234-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname babel-malay

Summary:	Support for Malay within babel
Name:		texlive-babel-malay
Version:	43234
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex-babel-malay = 2024
Provides:	tex(bahasam.ldf) = 2024
Provides:	tex(malay.ldf) = 2024
Provides:	tex(melayu.ldf) = 2024
Provides:	tex(meyalu.ldf) = 2024
BuildArch:	noarch

%description
Support for Malay within babel.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/generic/babel-malay/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9290 |21cr|texlive-babel-occitan-20211212-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-occitan
Version:	20211212
Release:	1
Summary:	TeXLive babel-occitan package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/babel-occitan.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/babel-occitan.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/babel-occitan.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-occitan package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-occitan/occitan.ldf
%doc %{_texmfdistdir}/doc/generic/babel-occitan/
%doc %{_texmfdistdir}/source/generic/babel-occitan/

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9291 |21cr|texlive-babel-ukrainian-56674-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname babel-ukrainian

Summary:	Babel support for Ukrainian
Name:		texlive-babel-ukrainian
Version:	56674
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	babel-ukraineb = 2024
Provides:	tex-babel-ukraineb = 2024
Provides:	tex-babel-ukrainian = 2024
Provides:	tex(ukraineb.ldf) = 2024
BuildArch:	noarch

%description
The package provides support for use of babel in documents
written in Ukrainian. The support is adapted for use under
legacy TeX engines as well as XeTeX and LuaTeX.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/generic/babel-ukrainian/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9292 |21cr|texlive-backnaur-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28513
# category Package
# catalog-ctan /macros/latex/contrib/backnaur
# catalog-date 2012-12-12 18:40:20 +0100
# catalog-license lppl1.3
# catalog-version 0.60.d
Name:		texlive-backnaur
Version:	2.0
Release:	1
Summary:	Typeset Backus Naur Form definitions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/backnaur
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/backnaur.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/backnaur.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/backnaur.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package typesets Backus-Naur Form (BNF) definitions. It
creates aligned lists of productions, with numbers if required.
It can also print in-line BNF expressions using math mode.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/backnaur/backnaur.sty
%doc %{_texmfdistdir}/doc/latex/backnaur/README
%doc %{_texmfdistdir}/doc/latex/backnaur/backnaur.pdf
#- source
%doc %{_texmfdistdir}/source/latex/backnaur/backnaur.dtx
%doc %{_texmfdistdir}/source/latex/backnaur/backnaur.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9293 |21cr|texlive-baekmuk-56915-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname baekmuk

Summary:	Baekmuk Korean TrueType fonts
Name:		texlive-baekmuk
Version:	56915
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(batang.ttf) = 2024
Provides:	tex(dotum.ttf) = 2024
Provides:	tex(gulim.ttf) = 2024
Provides:	tex(hline.ttf) = 2024
BuildArch:	noarch

%description
This bundle consists of four Korean fonts: batang.ttf: serif
dotum.ttf: sans-serif gulim.ttf: sans-serif (rounded)
hline.ttf: headline These fonts were originally retrieved from
http://kldp.net/baekmuk/ and are no longer maintained.

%files
%doc %{_texmfdistdir}/doc/fonts/baekmuk/
%{_texmfdistdir}/fonts/truetype/public/baekmuk/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9294 |21cr|texlive-bangla-65786-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bangla

Summary:	A comprehensive Bangla LaTeX package
Name:		texlive-bangla
Version:	65786
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-charissil
Requires:	texlive-doulossil
Requires:	texlive-kpathsea
Provides:	tex(banglamap.tex) = 2024
Provides:	tex(bangla.sty) = 2024
BuildArch:	noarch

%description
This package provides all the necessary LaTeX frontends for the
Bangla language and comes with some fonts of its own.

%files
%doc %{_texmfdistdir}/doc/latex/bangla
%{_texmfdistdir}/fonts/truetype/public/bangla
%{_texmfdistdir}/tex/latex/bangla

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9295 |21cr|texlive-bangorcsthesis-1.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bangorcsthesis
Version:	1.5.3
Release:	1
Summary:	Typeset a thesis at Bangor University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bangorcsthesis
License:	lppl1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bangorcsthesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bangorcsthesis.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bangorcsthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class typesets thesis/dissertation documents for all levels
(i.e., both undergraduate and graduate students may use the
class). It also provides macros designed to optimise the
process of producing a thesis.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bangorcsthesis/bangorcsthesis.cls
%doc %{_texmfdistdir}/source/latex/bangorcsthesis/bangorcsthesis.dtx
%doc %{_texmfdistdir}/source/latex/bangorcsthesis/bangorcsthesis.ins
%doc %{_texmfdistdir}/doc/latex/bangorcsthesis/README
%doc %{_texmfdistdir}/doc/latex/bangorcsthesis/bangorcsthesis.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9296 |21cr|texlive-bangorexam-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bangorexam
Version:	1.4.0
Release:	1
Summary:	Typeset an examination at Bangor University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bangorexam
License:	lppl1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bangorexam.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bangorexam.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bangorexam.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows typesetting of Bangor Univesity's exam
style. It currently supports a standard A/B choice, A-only
compulsory and 'n' from 'm' exam styles. Marks are totalled and
checked automatically.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9297 |21cr|texlive-barcodes-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/barcodes/willadt
# catalog-date 2008-08-17 01:00:50 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-barcodes
Version:	20190228
Release:	1
Summary:	Fonts for making barcodes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/barcodes/willadt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/barcodes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/barcodes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/barcodes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package deals with EAN barcodes; MetaFont fonts are
provided, and a set of examples; for some codes, a small Perl
script is needed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/barcodes/wlc11.mf
%{_texmfdistdir}/fonts/source/public/barcodes/wlc128.mf
%{_texmfdistdir}/fonts/source/public/barcodes/wlc39.mf
%{_texmfdistdir}/fonts/source/public/barcodes/wlc93.mf
%{_texmfdistdir}/fonts/source/public/barcodes/wlcr39.mf
%{_texmfdistdir}/fonts/source/public/barcodes/wlean.mf
%{_texmfdistdir}/fonts/tfm/public/barcodes/wlc11.tfm
%{_texmfdistdir}/fonts/tfm/public/barcodes/wlc128.tfm
%{_texmfdistdir}/fonts/tfm/public/barcodes/wlc39.tfm
%{_texmfdistdir}/fonts/tfm/public/barcodes/wlc93.tfm
%{_texmfdistdir}/fonts/tfm/public/barcodes/wlcr39.tfm
%{_texmfdistdir}/tex/latex/barcodes/barcodes.sty
%doc %{_texmfdistdir}/doc/latex/barcodes/README
%doc %{_texmfdistdir}/doc/latex/barcodes/bcfaq.tex
%doc %{_texmfdistdir}/doc/latex/barcodes/changes
%doc %{_texmfdistdir}/doc/latex/barcodes/code39.tex
%doc %{_texmfdistdir}/doc/latex/barcodes/codean.pl
%doc %{_texmfdistdir}/doc/latex/barcodes/eandoc.pdf
%doc %{_texmfdistdir}/doc/latex/barcodes/eandoc.tex
%doc %{_texmfdistdir}/doc/latex/barcodes/examples.tex
%doc %{_texmfdistdir}/doc/latex/barcodes/install.bat
%doc %{_texmfdistdir}/doc/latex/barcodes/wlcdb.vpl
%doc %{_texmfdistdir}/doc/latex/barcodes/wlcf39.vpl
%doc %{_texmfdistdir}/doc/latex/barcodes/wlitf.vpl
#- source
%doc %{_texmfdistdir}/source/latex/barcodes/barcodes.dtx
%doc %{_texmfdistdir}/source/latex/barcodes/barcodes.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9298 |21cr|texlive-barr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-barr
Version:	20190228
Release:	1
Summary:	Diagram macros by Michael Barr
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/diagrams/barr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/barr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/barr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Diagxy is a general diagramming package, useful for diagrams in
a number of mathematical disciplines. Diagxy is a development
of an earlier (successful) package to use the facilities of the
xypic bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/barr
%doc %{_texmfdistdir}/doc/generic/barr

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9299 |21cr|texlive-barracuda-63708-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname barracuda

Summary:	Draw barcodes with Lua
Name:		texlive-barracuda
Version:	63708
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(barracuda.sty) = 2024
BuildArch:	noarch

%description
The barracuda library is a modular Lua package for drawing
barcode symbols. It provides modules for writing barcodes from
a LuaTeX document. It is also possible to use Barracuda with a
standalone Lua interpreter to draw barcodes in different
graphic formats like SVG.

%files
%doc %{_texmfdistdir}/doc/luatex/barracuda
%{_texmfdistdir}/scripts/barracuda
%{_texmfdistdir}/tex/luatex/barracuda

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9300 |21cr|texlive-baskervald-1.016-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19490
# category Package
# catalog-ctan /fonts/baskervaldadf
# catalog-date 2010-07-14 23:45:16 +0200
# catalog-license lppl
# catalog-version 1.016
Name:		texlive-baskervald
Version:	1.016
Release:	8
Summary:	Baskervald ADF fonts collection with TeX/LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/baskervaldadf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/baskervald.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/baskervald.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/baskervald.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Baskervald ADF is a serif family with lining figures designed
as a substitute for Baskerville. The family currently includes
upright and italic or oblique shapes in each of regular, bold
and heavy weights. All fonts include the slashed zero and
additional non-standard ligatures. The support package renames
them according to the Karl Berry fontname scheme and defines
two families. One of these primarily provides access to the
"standard" or default characters while the other supports
additional ligatures. The included package files provide access
to these features in LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/arkandis/baskervald/ybvb8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/baskervald/ybvbi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/baskervald/ybvh8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/baskervald/ybvho8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/baskervald/ybvr8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/baskervald/ybvri8a.afm
%{_texmfdistdir}/fonts/enc/dvips/baskervald/supp-ybv.enc
%{_texmfdistdir}/fonts/map/dvips/baskervald/ybv.map
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvb8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvb8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvb8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvb8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvbi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvbi8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvbi8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvbi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvbiw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvbw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvh8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvh8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvh8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvh8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvho8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvho8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvho8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvho8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvhow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvhw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvr8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvr8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvr8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvr8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvri8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvri8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvri8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvri8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvriw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/baskervald/ybvrw8t.tfm
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvb8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvb8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvbi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvbi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvh8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvh8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvho8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvho8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvr8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvr8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvri8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/baskervald/ybvri8a.pfm
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvb8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvb8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvbi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvbi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvbiw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvbw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvh8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvh8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvho8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvho8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvhow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvhw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvr8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvr8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvri8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvri8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvriw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/baskervald/ybvrw8t.vf
%{_texmfdistdir}/tex/latex/baskervald/baskervald.sty
%{_texmfdistdir}/tex/latex/baskervald/t1ybv.fd
%{_texmfdistdir}/tex/latex/baskervald/t1ybvw.fd
%{_texmfdistdir}/tex/latex/baskervald/ts1ybv.fd
%{_texmfdistdir}/tex/latex/baskervald/ts1ybvw.fd
%doc %{_texmfdistdir}/doc/fonts/baskervald/COPYING
%doc %{_texmfdistdir}/doc/fonts/baskervald/NOTICE.txt
%doc %{_texmfdistdir}/doc/fonts/baskervald/README
%doc %{_texmfdistdir}/doc/fonts/baskervald/baskervaldadf.pdf
%doc %{_texmfdistdir}/doc/fonts/baskervald/baskervaldadf.tex
%doc %{_texmfdistdir}/doc/fonts/baskervald/manifest.txt
#- source
%doc %{_texmfdistdir}/source/fonts/baskervald/reglyph-ybv.tex
%doc %{_texmfdistdir}/source/fonts/baskervald/supp-ybv.etx
%doc %{_texmfdistdir}/source/fonts/baskervald/t1-baskervald-lig.etx
%doc %{_texmfdistdir}/source/fonts/baskervald/t1-baskervald.etx
%doc %{_texmfdistdir}/source/fonts/baskervald/ts1-baskervald.etx
%doc %{_texmfdistdir}/source/fonts/baskervald/ybv-drv.tex
%doc %{_texmfdistdir}/source/fonts/baskervald/ybv-map.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9301 |21cr|texlive-baskervaldx-57080-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname baskervaldx

Summary:	Extension and modification of BaskervaldADF with LaTeX support
Name:		texlive-baskervaldx
Version:	57080
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex-baskervaldx = 2024
Provides:	tex(Baskervaldx.map) = 2024
Provides:	tex(Baskervaldx.sty) = 2024
Provides:	tex(bvalph.enc) = 2024
Provides:	tex(bvtabosf.enc) = 2024
Provides:	tex(LY1Baskervaldx-LF.fd) = 2024
Provides:	tex(LY1Baskervaldx-OsF.fd) = 2024
Provides:	tex(LY1Baskervaldx-Sup.fd) = 2024
Provides:	tex(LY1Baskervaldx-TLF.fd) = 2024
Provides:	tex(LY1Baskervaldx-TOsF.fd) = 2024
Provides:	tex(OT1Baskervaldx-LF.fd) = 2024
Provides:	tex(OT1Baskervaldx-OsF.fd) = 2024
Provides:	tex(OT1Baskervaldx-Sup.fd) = 2024
Provides:	tex(OT1Baskervaldx-TLF.fd) = 2024
Provides:	tex(OT1Baskervaldx-TOsF.fd) = 2024
Provides:	tex(T1Baskervaldx-LF.fd) = 2024
Provides:	tex(T1Baskervaldx-OsF.fd) = 2024
Provides:	tex(T1Baskervaldx-Sup.fd) = 2024
Provides:	tex(T1Baskervaldx-TLF.fd) = 2024
Provides:	tex(T1Baskervaldx-TOsF.fd) = 2024
Provides:	tex(TS1Baskervaldx-LF.fd) = 2024
Provides:	tex(TS1Baskervaldx-OsF.fd) = 2024
Provides:	tex(TS1Baskervaldx-TLF.fd) = 2024
Provides:	tex(TS1Baskervaldx-TOsF.fd) = 2024
Provides:	tex(zbv_23jm4j.enc) = 2024
Provides:	tex(zbv_2445cl.enc) = 2024
Provides:	tex(zbv_2kku7k.enc) = 2024
Provides:	tex(zbv_2n2qka.enc) = 2024
Provides:	tex(zbv_2xv27p.enc) = 2024
Provides:	tex(zbv_2zeho7.enc) = 2024
Provides:	tex(zbv_34qyyt.enc) = 2024
Provides:	tex(zbv_4f5bev.enc) = 2024
Provides:	tex(zbv_524fcc.enc) = 2024
Provides:	tex(zbv_556rta.enc) = 2024
Provides:	tex(zbv_5p6atn.enc) = 2024
Provides:	tex(zbv_5zt4ml.enc) = 2024
Provides:	tex(zbv_6dnovg.enc) = 2024
Provides:	tex(zbv_6lr3v3.enc) = 2024
Provides:	tex(zbv_6rdtju.enc) = 2024
Provides:	tex(zbv_6xreh4.enc) = 2024
Provides:	tex(zbv_7d54ky.enc) = 2024
Provides:	tex(zbv_7i75ol.enc) = 2024
Provides:	tex(zbv_7nnme4.enc) = 2024
Provides:	tex(zbv_ahc6ab.enc) = 2024
Provides:	tex(zbv_ak7beg.enc) = 2024
Provides:	tex(zbv_aorlch.enc) = 2024
Provides:	tex(zbv_auq4k5.enc) = 2024
Provides:	tex(zbv_awcfcx.enc) = 2024
Provides:	tex(zbv_ax2yo2.enc) = 2024
Provides:	tex(zbv_ax7osu.enc) = 2024
Provides:	tex(zbv_c3asvt.enc) = 2024
Provides:	tex(zbv_ck4t6h.enc) = 2024
Provides:	tex(zbv_cl2iyt.enc) = 2024
Provides:	tex(zbv_clcsgf.enc) = 2024
Provides:	tex(zbv_coqtyh.enc) = 2024
Provides:	tex(zbv_cv7nez.enc) = 2024
Provides:	tex(zbv_d7elqy.enc) = 2024
Provides:	tex(zbv_d7lahw.enc) = 2024
Provides:	tex(zbv_dbb2hd.enc) = 2024
Provides:	tex(zbv_dw7i6y.enc) = 2024
Provides:	tex(zbv_edkp5z.enc) = 2024
Provides:	tex(zbv_ezfzzx.enc) = 2024
Provides:	tex(zbv_feassy.enc) = 2024
Provides:	tex(zbv_g4f2qe.enc) = 2024
Provides:	tex(zbv_g5xsbp.enc) = 2024
Provides:	tex(zbv_gar3zb.enc) = 2024
Provides:	tex(zbv_gjwmpg.enc) = 2024
Provides:	tex(zbv_h4nqsn.enc) = 2024
Provides:	tex(zbv_ik76ei.enc) = 2024
Provides:	tex(zbv_ilkd46.enc) = 2024
Provides:	tex(zbv_itooof.enc) = 2024
Provides:	tex(zbv_jwmruw.enc) = 2024
Provides:	tex(zbv_k3ascw.enc) = 2024
Provides:	tex(zbv_k6hbcl.enc) = 2024
Provides:	tex(zbv_kq7kv3.enc) = 2024
Provides:	tex(zbv_l44ess.enc) = 2024
Provides:	tex(zbv_lewyuf.enc) = 2024
Provides:	tex(zbv_lozoyg.enc) = 2024
Provides:	tex(zbv_lxdjmd.enc) = 2024
Provides:	tex(zbv_m4qttc.enc) = 2024
Provides:	tex(zbv_m5lkgj.enc) = 2024
Provides:	tex(zbv_mu6kzn.enc) = 2024
Provides:	tex(zbv_mvsyl4.enc) = 2024
Provides:	tex(zbv_mys6kl.enc) = 2024
Provides:	tex(zbv_nt5h45.enc) = 2024
Provides:	tex(zbv_nwv7yn.enc) = 2024
Provides:	tex(zbv_ofzzxu.enc) = 2024
Provides:	tex(zbv_pqcihf.enc) = 2024
Provides:	tex(zbv_puztjr.enc) = 2024
Provides:	tex(zbv_riybhr.enc) = 2024
Provides:	tex(zbv_rosua2.enc) = 2024
Provides:	tex(zbv_scthrl.enc) = 2024
Provides:	tex(zbv_sv3nex.enc) = 2024
Provides:	tex(zbv_teykvl.enc) = 2024
Provides:	tex(zbv_tfcpq3.enc) = 2024
Provides:	tex(zbv_tnmdy3.enc) = 2024
Provides:	tex(zbv_tv7w6k.enc) = 2024
Provides:	tex(zbv_uguye6.enc) = 2024
Provides:	tex(zbv_untte3.enc) = 2024
Provides:	tex(zbv_upot5e.enc) = 2024
Provides:	tex(zbv_uy4eps.enc) = 2024
Provides:	tex(zbv_v577lu.enc) = 2024
Provides:	tex(zbv_wg6wcc.enc) = 2024
Provides:	tex(zbv_wvrs5w.enc) = 2024
Provides:	tex(zbv_xbckbj.enc) = 2024
Provides:	tex(zbv_xebzk2.enc) = 2024
Provides:	tex(zbv_xjuza2.enc) = 2024
Provides:	tex(zbv_xotpaa.enc) = 2024
Provides:	tex(zbv_y62qbt.enc) = 2024
Provides:	tex(zbv_y77okd.enc) = 2024
Provides:	tex(zbv_yk4dqp.enc) = 2024
Provides:	tex(zbv_ymibyh.enc) = 2024
Provides:	tex(zbv_zag37q.enc) = 2024
Provides:	tex(zbv_zb3hlf.enc) = 2024
Provides:	tex(zbv_zey2cz.enc) = 2024
Provides:	tex(zbv_zkqdv4.enc) = 2024
BuildArch:	noarch

%description
Extends and modifies the BaskervaldADF font (a Baskerville
substitute) with more accented glyphs, with small caps and
oldstyle figures in all shapes. Includes OpenType and
PostScript fonts, as well as LaTeX support files.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/baskervaldx/
%{_texmfdistdir}/fonts/enc/dvips/baskervaldx/
%{_texmfdistdir}/fonts/map/dvips/baskervaldx/
%{_texmfdistdir}/fonts/opentype/public/baskervaldx/
%{_texmfdistdir}/fonts/tfm/public/baskervaldx/
%{_texmfdistdir}/fonts/type1/public/baskervaldx/
%{_texmfdistdir}/fonts/vf/public/baskervaldx/
%{_texmfdistdir}/tex/latex/baskervaldx/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9302 |21cr|texlive-baskervillef-55475-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname baskervillef

Summary:	Fry's Baskerville look-alike, with math support
Name:		texlive-baskervillef
Version:	55475
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(BaskervilleF.map) = 2024
Provides:	tex(baskervillef.sty) = 2024
Provides:	tex(LY1BaskervilleF-Dnom.fd) = 2024
Provides:	tex(LY1BaskervilleF-LF.fd) = 2024
Provides:	tex(LY1BaskervilleF-OsF.fd) = 2024
Provides:	tex(LY1BaskervilleF-Sup.fd) = 2024
Provides:	tex(LY1BaskervilleF-TLF.fd) = 2024
Provides:	tex(LY1BaskervilleF-TOsF.fd) = 2024
Provides:	tex(omlzbami.fd) = 2024
Provides:	tex(OT1BaskervilleF-Dnom.fd) = 2024
Provides:	tex(OT1BaskervilleF-LF.fd) = 2024
Provides:	tex(OT1BaskervilleF-OsF.fd) = 2024
Provides:	tex(OT1BaskervilleF-Sup.fd) = 2024
Provides:	tex(OT1BaskervilleF-TLF.fd) = 2024
Provides:	tex(OT1BaskervilleF-TOsF.fd) = 2024
Provides:	tex(T1BaskervilleF-Dnom.fd) = 2024
Provides:	tex(T1BaskervilleF-LF.fd) = 2024
Provides:	tex(T1BaskervilleF-OsF.fd) = 2024
Provides:	tex(T1BaskervilleF-Sup.fd) = 2024
Provides:	tex(T1BaskervilleF-TLF.fd) = 2024
Provides:	tex(T1BaskervilleF-TOsF.fd) = 2024
Provides:	tex(TS1BaskervilleF-LF.fd) = 2024
Provides:	tex(TS1BaskervilleF-OsF.fd) = 2024
Provides:	tex(TS1BaskervilleF-TLF.fd) = 2024
Provides:	tex(TS1BaskervilleF-TOsF.fd) = 2024
Provides:	tex(zba_23ismr.enc) = 2024
Provides:	tex(zba_2hmbf5.enc) = 2024
Provides:	tex(zba_2j2bbt.enc) = 2024
Provides:	tex(zba_2vxxim.enc) = 2024
Provides:	tex(zba_336dgv.enc) = 2024
Provides:	tex(zba_3a6nlu.enc) = 2024
Provides:	tex(zba_3kjwvw.enc) = 2024
Provides:	tex(zba_4hfcgk.enc) = 2024
Provides:	tex(zba_523v7l.enc) = 2024
Provides:	tex(zba_532cq4.enc) = 2024
Provides:	tex(zba_5cwn7d.enc) = 2024
Provides:	tex(zba_5k66dt.enc) = 2024
Provides:	tex(zba_5oqvu4.enc) = 2024
Provides:	tex(zba_6vkpq5.enc) = 2024
Provides:	tex(zba_734fzj.enc) = 2024
Provides:	tex(zba_73mseb.enc) = 2024
Provides:	tex(zba_7cypa5.enc) = 2024
Provides:	tex(zba_7qcgfh.enc) = 2024
Provides:	tex(zba_a3asoq.enc) = 2024
Provides:	tex(zba_a73a6q.enc) = 2024
Provides:	tex(zba_aqsbza.enc) = 2024
Provides:	tex(zba_arki3d.enc) = 2024
Provides:	tex(zba_art6xf.enc) = 2024
Provides:	tex(zba_b5bk2y.enc) = 2024
Provides:	tex(zba_bnjopg.enc) = 2024
Provides:	tex(zba_cjo72v.enc) = 2024
Provides:	tex(zba_ck2hfy.enc) = 2024
Provides:	tex(zba_cvjygd.enc) = 2024
Provides:	tex(zba_e3xw3x.enc) = 2024
Provides:	tex(zba_e5ewsu.enc) = 2024
Provides:	tex(zba_etzx2k.enc) = 2024
Provides:	tex(zba_fcs4fj.enc) = 2024
Provides:	tex(zba_gliky3.enc) = 2024
Provides:	tex(zba_gmq6ah.enc) = 2024
Provides:	tex(zba_hwnpjr.enc) = 2024
Provides:	tex(zba_hykkzd.enc) = 2024
Provides:	tex(zba_ihgygy.enc) = 2024
Provides:	tex(zba_iy3fha.enc) = 2024
Provides:	tex(zba_jjbdnj.enc) = 2024
Provides:	tex(zba_kodzea.enc) = 2024
Provides:	tex(zba_lfhy4n.enc) = 2024
Provides:	tex(zba_lfjjhs.enc) = 2024
Provides:	tex(zba_lh5uiy.enc) = 2024
Provides:	tex(zba_lkeymy.enc) = 2024
Provides:	tex(zba_m7qm6t.enc) = 2024
Provides:	tex(zba_mby7uf.enc) = 2024
Provides:	tex(zba_ogu2yp.enc) = 2024
Provides:	tex(zba_oxcsv2.enc) = 2024
Provides:	tex(zba_pxbj3a.enc) = 2024
Provides:	tex(zba_qiwnw4.enc) = 2024
Provides:	tex(zba_qvggep.enc) = 2024
Provides:	tex(zba_rqjco3.enc) = 2024
Provides:	tex(zba_rtk6yp.enc) = 2024
Provides:	tex(zba_skajg2.enc) = 2024
Provides:	tex(zba_srcuqk.enc) = 2024
Provides:	tex(zba_t3ys54.enc) = 2024
Provides:	tex(zba_th2k46.enc) = 2024
Provides:	tex(zba_to6jjw.enc) = 2024
Provides:	tex(zba_twn2qn.enc) = 2024
Provides:	tex(zba_typa7y.enc) = 2024
Provides:	tex(zba_ueebfa.enc) = 2024
Provides:	tex(zba_uf5aa7.enc) = 2024
Provides:	tex(zba_uf7ozb.enc) = 2024
Provides:	tex(zba_ugitcp.enc) = 2024
Provides:	tex(zba_uqoays.enc) = 2024
Provides:	tex(zba_uutbpy.enc) = 2024
Provides:	tex(zba_ve4agh.enc) = 2024
Provides:	tex(zba_vydigt.enc) = 2024
Provides:	tex(zba_w4i4io.enc) = 2024
Provides:	tex(zba_w54rd4.enc) = 2024
Provides:	tex(zba_wbekxi.enc) = 2024
Provides:	tex(zba_wn2rfu.enc) = 2024
Provides:	tex(zba_wxljbs.enc) = 2024
Provides:	tex(zba_wybx5h.enc) = 2024
Provides:	tex(zba_wyngyv.enc) = 2024
Provides:	tex(zba_x7qzb2.enc) = 2024
Provides:	tex(zba_xpcegd.enc) = 2024
Provides:	tex(zba_y3x75k.enc) = 2024
Provides:	tex(zba_y7xbvf.enc) = 2024
Provides:	tex(zba_ymdv6d.enc) = 2024
Provides:	tex(zba_zkzy6d.enc) = 2024
Provides:	tex(zba_zpc5ms.enc) = 2024
Provides:	tex(zba_zvejcx.enc) = 2024
Provides:	tex(zba_zygn7r.enc) = 2024
BuildArch:	noarch

%description
BaskervilleF is a fork from the Libre Baskerville fonts (Roman,
Italic, Bold only) released under the OFL by Paolo Impallari
and Rodrigo Fuenzalida. Their fonts are optimized for web
usage, while BaskervilleF is optimized for traditional TeX
usage, normally destined for production of pdf files. A bold
italic style was added and mathematical support is offered as
an option to newtxmath.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/baskervillef/
%{_texmfdistdir}/fonts/map/dvips/baskervillef/
%{_texmfdistdir}/fonts/opentype/public/baskervillef/
%{_texmfdistdir}/fonts/tfm/public/baskervillef/
%{_texmfdistdir}/fonts/type1/public/baskervillef/
%{_texmfdistdir}/fonts/vf/public/baskervillef/
%{_texmfdistdir}/tex/latex/baskervillef/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9303 |21cr|texlive-bath-bst-4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bath-bst
Version:	4.0
Release:	4
Summary:	Harvard referencing style as recommended by the University of Bath Library
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/biblio/bibtex/contrib/bath-bst
License:	lppl1.3с
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bath-bst.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bath-bst.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bath-bst.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a BibTeX style to format reference lists
in the Harvard style recommended by the University of Bath
Library. It should be used in conjunction with natbib for
citations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/*
%doc %{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9304 |21cr|texlive-bbding-1.01-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17186
# category Package
# catalog-ctan /fonts/bbding
# catalog-date 2010-02-15 12:02:42 +0100
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-bbding
Version:	1.01
Release:	8
Summary:	A symbol (dingbat) font and LaTeX macros for its use
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/bbding
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbding.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbding.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbding.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A symbol font (distributed as MetaFont source) that contains
many of the symbols of the Zapf dingbats set, together with an
NFSS interface for using the font. An Adobe Type 1 version of
the fonts is available in the niceframe fonts bundle.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/bbding/bbding10.mf
%{_texmfdistdir}/fonts/tfm/public/bbding/bbding10.tfm
%{_texmfdistdir}/tex/latex/bbding/Uding.fd
%{_texmfdistdir}/tex/latex/bbding/bbding.sty
%doc %{_texmfdistdir}/doc/latex/bbding/README
%doc %{_texmfdistdir}/doc/latex/bbding/bbding.pdf
%doc %{_texmfdistdir}/doc/latex/bbding/bbding10.org
#- source
%doc %{_texmfdistdir}/source/latex/bbding/bbding.dtx
%doc %{_texmfdistdir}/source/latex/bbding/bbding.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9305 |21cr|texlive-bbold-type1-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33143
# category Package
# catalog-ctan /fonts/bbold-type1
# catalog-date 2014-03-09 23:53:06 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-bbold-type1
Version:	20190228
Release:	1
Summary:	An Adobe Type 1 format version of the bbold font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/bbold-type1
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbold-type1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbold-type1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The files offer an Adobe Type 1 format version of the 5pt, 7pt
and 10pt versions of the bbold fonts. The distribution also
includes a map file, for use when incorporating the fonts into
TeX documents; the macros provided with the original Metafont
version of the font serve for the scaleable version, too. The
fonts were produced to be part of the TeX distribution from
Y&Y; they were generously donated to the TeX Users Group when
Y&Y closed its doors as a business.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/bbold-type1/bbold10.afm
%{_texmfdistdir}/fonts/afm/public/bbold-type1/bbold5.afm
%{_texmfdistdir}/fonts/afm/public/bbold-type1/bbold7.afm
%{_texmfdistdir}/fonts/map/dvips/bbold-type1/bbold.map
%{_texmfdistdir}/fonts/type1/public/bbold-type1/bbold10.pfb
%{_texmfdistdir}/fonts/type1/public/bbold-type1/bbold5.pfb
%{_texmfdistdir}/fonts/type1/public/bbold-type1/bbold7.pfb
%doc %{_texmfdistdir}/doc/fonts/bbold-type1/README
%doc %{_texmfdistdir}/doc/fonts/bbold-type1/test.pdf
%doc %{_texmfdistdir}/doc/fonts/bbold-type1/test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9306 |21cr|texlive-bboldx-65424-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bboldx

Summary:	Extension of the bbold package with a Blackboard Bold alphabet
Name:		texlive-bboldx
Version:	65424
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bboldx.enc) = 2024
Provides:	tex(bboldx.map) = 2024
Provides:	tex(bboldx.sty) = 2024
Provides:	tex(Ubboldx.fd) = 2024
BuildArch:	noarch

%description
Extension of bbold to a package with three weights, of which
the original is considered as light and the additions as
regular and bold.

%files
%doc %{_texmfdistdir}/doc/fonts/bboldx
%{_texmfdistdir}/fonts/afm/public/bboldx
%{_texmfdistdir}/fonts/enc/dvips/bboldx
%{_texmfdistdir}/fonts/map/dvips/bboldx
%{_texmfdistdir}/fonts/tfm/public/bboldx
%{_texmfdistdir}/fonts/type1/public/bboldx
%{_texmfdistdir}/tex/latex/bboldx

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9307 |21cr|texlive-beamerappendixnote-55732-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamerappendixnote

Summary:	Create notes on appendix frames in beamer
Name:		texlive-beamerappendixnote
Version:	55732
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamerappendixnote.sty) = 2024
BuildArch:	noarch

%description
This package introduces the \appxnote command, which puts the
note's content on a separate beamer frame shown by the command
\printappxnotes. It also creates interactive buttons to move
back and forth between the two frames.

%files
%doc %{_texmfdistdir}/doc/latex/beamerappendixnote
%{_texmfdistdir}/tex/latex/beamerappendixnote

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9308 |21cr|texlive-beamerauxtheme-56087-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamerauxtheme

Summary:	Supplementary outer and inner themes for beamer
Name:		texlive-beamerauxtheme
Version:	56087
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamerinnerthemesimplelines.sty) = 2024
Provides:	tex(beamerouterthemesidebarwithminiframes.sty) = 2024
Provides:	tex(beamerouterthemesplitwithminiframes.sty) = 2024
Provides:	tex(beamerouterthemetwolines.sty) = 2024
BuildArch:	noarch

%description
This bundle provides a collection of inner and outer themes as
supplements to the default themes in the beamer distribution.
These themes can be used in combination with existing inner,
outer, and color themes.

%files
%doc %{_texmfdistdir}/doc/latex/beamerauxtheme
%{_texmfdistdir}/tex/latex/beamerauxtheme

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9309 |21cr|texlive-beamer-rl-65725-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamer-rl

Summary:	Right to left presentation with beamer and babel
Name:		texlive-beamer-rl
Version:	65725
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-babel
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamer-rl.cls) = 2024
Provides:	tex(pgfpages-rl.sty) = 2024
BuildArch:	noarch

%description
This package provides patches of some beamer templates and
commands for presentation from right to left. It requires Babel
with the LuaLaTeX engine.

%files
%doc %{_texmfdistdir}/doc/lualatex/beamer-rl
%{_texmfdistdir}/tex/lualatex/beamer-rl

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9310 |21cr|texlive-beamerswitch-64182-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamerswitch

Summary:	Convenient mode selection in Beamer documents
Name:		texlive-beamerswitch
Version:	64182
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamerswitch.cls) = 2024
BuildArch:	noarch

%description
This class is a wrapper around the beamer class to make it
easier to use the same document to generate the different forms
of the presentation: the slides themselves, an abbreviated
slide set for transparencies or online reference, an n-up
handout version (various layouts are provided), and a
transcript or set of notes using the article class. The class
provides a variety of handout layouts, and allows the mode to
be chosen from the command line (without changing the document
itself).

%files
%doc %{_texmfdistdir}/doc/latex/beamerswitch/
%{_texmfdistdir}/tex/latex/beamerswitch/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9311 |21cr|texlive-beamerthemeamurmaple-65698-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamerthemeamurmaple

Summary:	A new modern beamer theme
Name:		texlive-beamerthemeamurmaple
Version:	65698
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamerthemeAmurmaple.sty) = 2024
BuildArch:	noarch

%description
This Beamer theme is a suitable theme for my use of Beamer in
applied mathematics research. It meets my needs in my work.
However, if you like this theme, and if you want to ask for or
make improvements, don't hesitate to write to me!

%files
%doc %{_texmfdistdir}/doc/latex/beamerthemeamurmaple
%{_texmfdistdir}/tex/latex/beamerthemeamurmaple

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9312 |21cr|texlive-beamertheme-arguelles-66358-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamertheme-arguelles

Summary:	Simple, typographic beamer theme
Name:		texlive-beamertheme-arguelles
Version:	66358
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemeArguelles.sty) = 2024
Provides:	tex(beamerfontthemeArguelles.sty) = 2024
Provides:	tex(beamerinnerthemeArguelles.sty) = 2024
Provides:	tex(beamerouterthemeArguelles.sty) = 2024
Provides:	tex(beamerthemeArguelles.sty) = 2024
BuildArch:	noarch

%description
Arguelles is a beamer theme that helps you create beautiful
presentations. It aims for simplicity and readability by
following best practices of graphic design. The layout is
elegant but subtle, so as to keep the audience's attention on
your content. This is brought to life by Alegreya, one of the
53 Fonts of the Decade selected by the Association
Typographique Internationale (2011).

%files
%doc %{_texmfdistdir}/doc/latex/beamertheme-arguelles
%{_texmfdistdir}/tex/latex/beamertheme-arguelles

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9313 |21cr|texlive-beamerthemelalic-58777-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamerthemelalic

Summary:	A beamer theme for LALIC
Name:		texlive-beamerthemelalic
Version:	58777
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemelalic.sty) = 2024
Provides:	tex(beamerfontthemelalic.sty) = 2024
Provides:	tex(beamerinnerthemelalic.sty) = 2024
Provides:	tex(beamerouterthemelalic.sty) = 2024
Provides:	tex(beamerthemelalic.sty) = 2024
BuildArch:	noarch

%description
This package provides the beamer theme for LALIC (Laboratorio
de Linguistica e Inteligencia Computacional of the Federal
University of Sao Carlos, Brazil).

%files
%doc %{_texmfdistdir}/doc/latex/beamerthemelalic
%{_texmfdistdir}/tex/latex/beamerthemelalic

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9314 |21cr|texlive-beamerthemenord-56180-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamerthemenord

Summary:	A simple beamer theme using the "Nord" color theme
Name:		texlive-beamerthemenord
Version:	56180
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemeNord.sty) = 2024
Provides:	tex(beamerfontthemeNord.sty) = 2024
Provides:	tex(beamerthemeNord.sty) = 2024
BuildArch:	noarch

%description
This package provides a simple beamer theme using the Nord
color theme.

%files
%doc %{_texmfdistdir}/doc/latex/beamerthemenord
%{_texmfdistdir}/tex/latex/beamerthemenord

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9315 |21cr|texlive-beamertheme-phnompenh-39100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamertheme-phnompenh

Summary:	Beamertheme-phnompenh package
Name:		texlive-beamertheme-phnompenh
Version:	39100
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	beamerthemephnompenh = 2024
Provides:	tex-beamertheme-phnompenh = 2024
Provides:	tex-beamerthemephnompenh = 2024
Provides:	tex(beamerthemePhnomPenh.sty) = 2024
BuildArch:	noarch

%description
beamertheme-phnompenh package

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/beamertheme-phnompenh/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9316 |21cr|texlive-beamertheme-pure-minimalistic-56934-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamertheme-pure-minimalistic

Summary:	A minimalistic presentation theme for LaTeX Beamer
Name:		texlive-beamertheme-pure-minimalistic
Version:	56934
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemepureminimalistic.sty) = 2024
Provides:	tex(beamerfontthemepureminimalistic.sty) = 2024
Provides:	tex(beamerinnerthemepureminimalistic.sty) = 2024
Provides:	tex(beamerouterthemepureminimalistic.sty) = 2024
Provides:	tex(beamerthemepureminimalistic.sty) = 2024
BuildArch:	noarch

%description
The main features of this minimalistic Beamer theme are: Easily
use own logos. Customizable. Looks good in a 4:3 and 16:9
aspect ratio, without the need to change anything. Provides an
environment for vertically-spaced items. Provides light and
dark mode. Is designed to be purely minimalistic without any
distractions.

%files
%doc %{_texmfdistdir}/doc/latex/beamertheme-pure-minimalistic
%{_texmfdistdir}/tex/latex/beamertheme-pure-minimalistic

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9317 |21cr|texlive-beamertheme-simpledarkblue-60061-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamertheme-simpledarkblue

Summary:	Template for a simple presentation
Name:		texlive-beamertheme-simpledarkblue
Version:	60061
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemeSimpleDarkBlue.sty) = 2024
Provides:	tex(beamerfontthemeSimpleDarkBlue.sty) = 2024
Provides:	tex(beamerthemeSimpleDarkBlue.sty) = 2024
BuildArch:	noarch

%description
This is a simple but nice theme for Beamer. Features: simple
structure: with page numbers in footer, no side bar, simple
colors: using only several foreground and background colors.

%files
%doc %{_texmfdistdir}/doc/latex/beamertheme-simpledarkblue
%{_texmfdistdir}/tex/latex/beamertheme-simpledarkblue

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9318 |21cr|texlive-beamertheme-simpleplus-64770-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamertheme-simpleplus

Summary:	A simple and clean theme for LaTeX beamer
Name:		texlive-beamertheme-simpleplus
Version:	64770
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemeSimplePlus.sty) = 2024
Provides:	tex(beamerfontthemeSimplePlus.sty) = 2024
Provides:	tex(beamerinnerthemeSimplePlus.sty) = 2024
Provides:	tex(beamerthemeSimplePlus.sty) = 2024
BuildArch:	noarch

%description
This package provides a simple and clean theme for LaTeX
Beamer. It can be used for academic and scientific
presentations.

%files
%doc %{_texmfdistdir}/doc/latex/beamertheme-simpleplus
%{_texmfdistdir}/tex/latex/beamertheme-simpleplus

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9319 |21cr|texlive-beamertheme-tcolorbox-64387-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamertheme-tcolorbox

Summary:	A beamer inner theme which reproduces standard beamer blocks using tcolorboxes
Name:		texlive-beamertheme-tcolorbox
Version:	64387
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamerinnerthemetcolorbox.sty) = 2024
BuildArch:	noarch

%description
This package provides an inner theme for beamer which
reproduces standard beamer blocks using tcolorboxes. The look
and feel (rounded/sharp corners, shadows and colours) will
automatically adapt to which other themes are loaded.

%files
%doc %{_texmfdistdir}/doc/latex/beamertheme-tcolorbox
%{_texmfdistdir}/tex/latex/beamertheme-tcolorbox

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9320 |21cr|texlive-beamertheme-trigon-65985-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beamertheme-trigon

Summary:	A modern, elegant, and versatile theme for Beamer
Name:		texlive-beamertheme-trigon
Version:	65985
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemetrigon.sty) = 2024
Provides:	tex(beamerfontthemetrigon.sty) = 2024
Provides:	tex(beamerinnerthemetrigon.sty) = 2024
Provides:	tex(beamerouterthemetrigon.sty) = 2024
Provides:	tex(beamerthemetrigon.sty) = 2024
BuildArch:	noarch

%description
This package provides a modern, elegant and versatile theme for
Beamer, with a high degree of customization. Trigon found its
origin and inspiration in the graphical guidelines resulting
from the visual identity overhaul of the University of Liege.
Although directly inspired from these guidelines, the theme was
stripped out of any mention or specificities related to the
University and its faculties. This makes the Trigon theme
perfectly suitable for many different contexts. The final
product provides a modern, elegant and versatile theme with a
high degree of customization. The main design focuses on
triangular shapes for major layout elements and noise
minimization for the main body of the work. The theme's
implementation is heavily inspired from the Metropolis theme.
Most options from Metropolis have been ported to Trigon in
order to improve customization and ease-of-use. Trigon also
includes different styles and layouts for the main title page,
the section page and the default slide background.

%files
%doc %{_texmfdistdir}/doc/latex/beamertheme-trigon
%{_texmfdistdir}/tex/latex/beamertheme-trigon

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9321 |21cr|texlive-beamer-verona-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamer-verona
Version:	0.2
Release:	1
Summary:	This package provides the 'Verona' theme for the Beamer class by Till Tantau
Group:		Publishing
URL:		https://ctan.org/pkg/beamer-verona
License:	LaTeX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/beamer-verona.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/beamer-verona.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the 'Verona' theme for the Beamer class by Till Tantau. Few options allow you to change the theme defaults.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9322 |21cr|texlive-bearwear-54826-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bearwear

Summary:	Shirts to dress TikZbears
Name:		texlive-bearwear
Version:	54826
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bearwear.sty) = 2024
BuildArch:	noarch

%description
The package offers tools to create shirts for TikZbears from
the TikZlings package.

%files
%doc %{_texmfdistdir}/doc/latex/bearwear
%{_texmfdistdir}/tex/latex/bearwear

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9323 |21cr|texlive-beaulivre-65475-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beaulivre

Summary:	Write your books in a colorful way
Name:		texlive-beaulivre
Version:	65475
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(colorist.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beaulivre.cls) = 2024
BuildArch:	noarch

%description
This package provides a LaTeX class for typesetting books with
a colorful design. Currently, it has native support for Chinese
(both simplified and traditional), English, French, German,
Italian, Japanese, Portuguese (European and Brazilian), Russian
and Spanish typesetting. It compiles with either XeLaTeX or
LuaLaTeX. This is part of the colorist class series and depends
on colorist.sty from the colorist package. The package name
"beaulivre" is taken from the French words "beau" (=
"beautiful") and "livre" (= "book").

%files
%doc %{_texmfdistdir}/doc/latex/beaulivre
%{_texmfdistdir}/tex/latex/beaulivre

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9324 |21cr|texlive-beebe-20190407-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beebe
Version:	20190407
Release:	1
Summary:	TeXLive beebe package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beebe.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive beebe package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/beebe
%{_texmfdistdir}/bibtex/bst/beebe
%{_texmfdistdir}/tex/generic/beebe

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9325 |21cr|texlive-begingreek-63255-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname begingreek

Summary:	Greek environment to be used with pdflatex only
Name:		texlive-begingreek
Version:	63255
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-begingreek = 2024
Provides:	tex(begingreek.sty) = 2024
BuildArch:	noarch

%description
This simple package defines a greek environment to be used with
pdfLaTeX only, that accepts an optional Greek font family name
to type its contents with. A similar \greektxt command does a
similar action for shorter texts.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/begingreek/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9326 |21cr|texlive-beilstein-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beilstein
Version:	2.1
Release:	1
Summary:	Support for submissions to the “Beilstein Journal of Nanotechnology”
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/beilstein
License:	The LATEX Project Public License 1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beilstein.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive//beilstein.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive//beilstein.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Beilstein bundle provides a LATEX class file and a BibTEX style file in accordance with 
the requirements of submissions to the Beilstein Journal of 
Nanotechnology. Although the files can be used for any kind of document, 
they have only been designed and tested to be suitable 
for submission to the Beilstein Journal of Nanotechnology.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beilstein
%{_texmfdistdir}/bibtex/
%doc %{_texmfdistdir}/source/latex/beilstein
%doc %{_texmfdistdir}/doc/latex/beilstein

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9327 |21cr|texlive-belleek-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/belleek/belleek.zip
# catalog-date 2008-11-30 15:59:19 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-belleek
Version:	20190228
Release:	1
Summary:	Free replacement for basic MathTime fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/belleek/belleek.zip
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/belleek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/belleek.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/belleek.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package replaces the original MathTime fonts, not
MathTime-Plus or MathTime Professional (the last being the only
currently available commercial bundle).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/belleek/belleek.map
%{_texmfdistdir}/fonts/truetype/public/belleek/blex.ttf
%{_texmfdistdir}/fonts/truetype/public/belleek/blsy.ttf
%{_texmfdistdir}/fonts/truetype/public/belleek/rblmi.ttf
%{_texmfdistdir}/fonts/type1/public/belleek/blex.pfb
%{_texmfdistdir}/fonts/type1/public/belleek/blsy.pfb
%{_texmfdistdir}/fonts/type1/public/belleek/rblmi.pfb
%doc %{_texmfdistdir}/doc/fonts/belleek/README
#- source
%doc %{_texmfdistdir}/source/latex/belleek/my1mtt.fd
%doc %{_texmfdistdir}/source/latex/belleek/my2mtt.fd
%doc %{_texmfdistdir}/source/latex/belleek/my3mtt.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9328 |21cr|texlive-bera-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20031
# category Package
# catalog-ctan /fonts/bera
# catalog-date 2008-01-28 20:53:41 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-bera
Version:	20190228
Release:	1
Summary:	Bera fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/bera
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bera.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bera.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains the Bera Type 1 fonts, and a zip archive
containing files to use the fonts with LaTeX. Bera is a set of
three font families: Bera Serif (a slab-serif Roman), Bera Sans
(a Frutiger descendant), and Bera Mono (monospaced/typewriter).
Support for use in LaTeX is also provided. The Bera family is a
repackaging, for use with TeX, of the Bitstream Vera family.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/bera/fveb8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fver8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fvmb8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fvmbo8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fvmr8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fvmro8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fvsb8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fvsbo8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fvsr8a.afm
%{_texmfdistdir}/fonts/afm/public/bera/fvsro8a.afm
%{_texmfdistdir}/fonts/map/dvips/bera/bera.map
%{_texmfdistdir}/fonts/tfm/public/bera/fveb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fveb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fveb8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fveb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvebo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvebo8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvebo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fver8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fver8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fver8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fver8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvero8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvero8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvero8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmb8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmbo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmbo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmbo8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmbo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmr8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmr8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmro8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmro8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvmro8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsb8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsbo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsbo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsbo8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsbo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsr8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsr8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsro8a.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsro8r.tfm
%{_texmfdistdir}/fonts/tfm/public/bera/fvsro8t.tfm
%{_texmfdistdir}/fonts/type1/public/bera/fveb8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fver8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fvmb8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fvmbo8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fvmr8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fvmro8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fvsb8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fvsbo8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fvsr8a.pfb
%{_texmfdistdir}/fonts/type1/public/bera/fvsro8a.pfb
%{_texmfdistdir}/fonts/vf/public/bera/fveb8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fveb8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvebo8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvebo8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fver8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fver8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvero8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvero8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvmb8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvmb8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvmbo8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvmbo8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvmr8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvmr8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvmro8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvmro8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvsb8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvsb8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvsbo8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvsbo8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvsr8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvsr8t.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvsro8c.vf
%{_texmfdistdir}/fonts/vf/public/bera/fvsro8t.vf
%{_texmfdistdir}/tex/latex/bera/bera.sty
%{_texmfdistdir}/tex/latex/bera/beramono.sty
%{_texmfdistdir}/tex/latex/bera/berasans.sty
%{_texmfdistdir}/tex/latex/bera/beraserif.sty
%{_texmfdistdir}/tex/latex/bera/t1fve.fd
%{_texmfdistdir}/tex/latex/bera/t1fvm.fd
%{_texmfdistdir}/tex/latex/bera/t1fvs.fd
%{_texmfdistdir}/tex/latex/bera/ts1fve.fd
%{_texmfdistdir}/tex/latex/bera/ts1fvm.fd
%{_texmfdistdir}/tex/latex/bera/ts1fvs.fd
%doc %{_texmfdistdir}/doc/fonts/bera/LICENSE
%doc %{_texmfdistdir}/doc/fonts/bera/README
%doc %{_texmfdistdir}/doc/fonts/bera/bera.pdf
%doc %{_texmfdistdir}/doc/fonts/bera/bera.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9329 |21cr|texlive-berenisadf-1.004-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19952
# category Package
# catalog-ctan /fonts/berenisadf
# catalog-date 2010-09-22 13:22:51 +0200
# catalog-license other-free
# catalog-version 1.004

%if %{_use_internal_dependency_generator}
%global __requires_exclude /usr/bin/fontforge
%endif

Summary:	Berenis ADF fonts and TeX/LaTeX support
Name:		texlive-berenisadf
Version:	1.004
Release:	9
License:	OTHER-FREE
Group:		Publishing
Url:		http://www.ctan.org/tex-archive/fonts/berenisadf
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/berenisadf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/berenisadf.doc.tar.xz
#Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/berenisadf.source.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	fontforge
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
BuildArch:	noarch

%description
The bundle provides the BerenisADF Pro font collection, in
OpenType and PostScript Type 1 formats, together with support
files to use the fonts in TeXnANSI (LY1) encoding.

%files
%{_texmfdistdir}/fonts/afm/arkandis/berenisadf
%{_texmfdistdir}/fonts/enc/dvips/berenisadf
%{_texmfdistdir}/fonts/tfm/arkandis/berenisadf
%{_texmfdistdir}/fonts/type1/arkandis/berenisadf
%{_texmfdistdir}/fonts/opentype/arkandis/berenisadf
%{_texmfdistdir}/fonts/map/dvips/berenisadf
%{_texmfdistdir}/tex/latex/berenisadf
%doc %{_texmfdistdir}/doc/fonts/berenisadf



#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

perl -pi -e 's|/usr/local/bin/fontforge|/usr/bin/fontforge|'		\
    source/fonts/berenisadf/ff-ybd.pe

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9330 |21cr|texlive-besjournals-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32275
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-besjournals
Version:	20190228
Release:	1
Summary:	TeXLive besjournals package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/besjournals.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/besjournals.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive besjournals package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/besjournals/besjournals.bst
%doc %{_texmfdistdir}/doc/bibtex/besjournals/README
%doc %{_texmfdistdir}/doc/bibtex/besjournals/besjournals.dbj

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9331 |21cr|texlive-bestpapers-38708-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bestpapers

Summary:	A BibTeX package to produce lists of authors' best papers
Name:		texlive-bestpapers
Version:	38708
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-bestpapers = 2024
BuildArch:	noarch

%description
Many people preparing their resumes find the requirement
"please list five (or six, or ten) papers authored by you". The
same requirement is often stated for reports prepared by
professional teams. The creation of such lists may be a
cumbersome task. Even more difficult is it to support such
lists over the time, when new papers are added. The BibTeX
style bestpapers.bst is intended to facilitate this task. It is
based on the idea that it is easier to score than to sort: We
can assign a score to a paper and then let the computer select
the papers with highest scores. This work was commissioned by
the Consumer Financial Protection Bureau, United States
Treasury. This package is in the public domain.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/bibtex/bst/bestpapers/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9332 |21cr|texlive-beuron-46374-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname beuron

Summary:	The script of the Beuronese art school
Name:		texlive-beuron
Version:	46374
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(BeuronCondensed-Regular.otf) = 2024
Provides:	tex(beuronc.pfb) = 2024
Provides:	tex(beuronc.tfm) = 2024
Provides:	tex(BeuronExtended-Regular.otf) = 2024
Provides:	tex(beuron.map) = 2024
Provides:	tex(beuron.pfb) = 2024
Provides:	tex(Beuron-Regular.otf) = 2024
Provides:	tex(beuron.sty) = 2024
Provides:	tex(beuron.tfm) = 2024
Provides:	tex(beuronx.pfb) = 2024
Provides:	tex(beuronx.tfm) = 2024
Provides:	tex(t1beuron.fd) = 2024
BuildArch:	noarch

%description
This package provides the script used in the works of the
Beuron art school for use with TeX and LaTeX. It is a
monumental script consisting of capital letters only. The fonts
are provided as Metafont sources, in the Type1 and in the
OpenType format. The package includes suitable font selection
commands for use with LaTeX.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/map/dvips/beuron/
%{_texmfdistdir}/fonts/opentype/public/beuron/
%{_texmfdistdir}/fonts/source/public/beuron/
%{_texmfdistdir}/fonts/tfm/public/beuron/
%{_texmfdistdir}/fonts/type1/public/beuron/
%{_texmfdistdir}/tex/latex/beuron/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9333 |21cr|texlive-bezierplot-51398-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bezierplot

Summary:	Approximate smooth function graphs with cubic bezier splines for use with TikZ or MetaPost
Name:		texlive-bezierplot
Version:	51398
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bezierplot.sty) = 2024
BuildArch:	noarch

%description
This package consists of a Lua program as well as a (Lua)LaTeX
.sty file. Given a smooth function, bezierplot returns a smooth
bezier path written in TikZ notation (which also matches
MetaPost) that approximates the graph of the function. For
polynomial functions of degree [?] 3 and their inverses the
approximation is exact (up to numeric precision). bezierplot
also finds special points such as extreme points and inflection
points and reduces the number of used points.

%files
%doc %{_texmfdistdir}/doc/lualatex/bezierplot/
%{_texmfdistdir}/tex/lualatex/bezierplot/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9334 |21cr|texlive-bfh-ci-66461-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bfh-ci

Summary:	Corporate Design for Bern University of Applied Sciences
Name:		texlive-bfh-ci
Version:	66461
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemeBFH.sty) = 2024
Provides:	tex(beamerfontthemeBFH.sty) = 2024
Provides:	tex(beamerinnerthemeBFH.sty) = 2024
Provides:	tex(beamerouterthemeBFH-sidebar.sty) = 2024
Provides:	tex(beamerouterthemeBFH.sty) = 2024
Provides:	tex(beamerthemeBFH.sty) = 2024
Provides:	tex(bfh-a0paper.clo) = 2024
Provides:	tex(bfh-a1paper.clo) = 2024
Provides:	tex(bfh-a2paper.clo) = 2024
Provides:	tex(bfh-a3paper.clo) = 2024
Provides:	tex(bfh-a4paper.clo) = 2024
Provides:	tex(bfh-a5paper.clo) = 2024
Provides:	tex(bfh-a6paper.clo) = 2024
Provides:	tex(bfhbeamer.cls) = 2024
Provides:	tex(bfhcolors.sty) = 2024
Provides:	tex(bfhfonts.sty) = 2024
Provides:	tex(bfhlayout.sty) = 2024
Provides:	tex(bfhlettersize9.5pt.clo) = 2024
Provides:	tex(bfhletter.sty) = 2024
Provides:	tex(bfhmodule.sty) = 2024
Provides:	tex(bfhpub.cls) = 2024
Provides:	tex(bfhsciposter.cls) = 2024
Provides:	tex(bfhthesis.cls) = 2024
BuildArch:	noarch

%description
This bundle provides possibilities to use the Corporate Design
of Bern University of Applied Sciences (BFH) with LaTeX. To
this end it contains classes as well as some helper packages
and config files together with some demo files.

%files
%doc %{_texmfdistdir}/doc/latex/bfh-ci
%{_texmfdistdir}/tex/latex/bfh-ci

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9335 |21cr|texlive-bguq-0.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27401
# category Package
# catalog-ctan /fonts/bguq
# catalog-date 2012-08-14 15:05:39 +0200
# catalog-license lppl
# catalog-version 0.4
Name:		texlive-bguq
Version:	0.4
Release:	11
Summary:	Improved quantifier stroke for Begriffsschrift packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/bguq
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bguq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bguq.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bguq.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The font contains a single character: the Begriffsschrift
quantifier (in several sizes), as used to set the
Begriffsschrift (concept notation) of Frege. The font is not
intended for end users; instead it is expected that it will be
used by other packages which implement the Begriffsschrift. An
(unofficial) modified version of Josh Parsons' begriff is
included as an example of implementation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/bguq/bguq.map
%{_texmfdistdir}/fonts/source/public/bguq/bguq.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t04.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t05.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t06.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t07.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t08.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t09.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t10.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t11.mf
%{_texmfdistdir}/fonts/source/public/bguq/bguq10t12.mf
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t04.tfm
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t05.tfm
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t06.tfm
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t07.tfm
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t08.tfm
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t09.tfm
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t10.tfm
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t11.tfm
%{_texmfdistdir}/fonts/tfm/public/bguq/bguq10t12.tfm
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t04.pfb
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t05.pfb
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t06.pfb
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t07.pfb
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t08.pfb
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t09.pfb
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t10.pfb
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t11.pfb
%{_texmfdistdir}/fonts/type1/public/bguq/bguq10t12.pfb
%{_texmfdistdir}/tex/latex/bguq/Ubguq04.fd
%{_texmfdistdir}/tex/latex/bguq/Ubguq05.fd
%{_texmfdistdir}/tex/latex/bguq/Ubguq06.fd
%{_texmfdistdir}/tex/latex/bguq/Ubguq07.fd
%{_texmfdistdir}/tex/latex/bguq/Ubguq08.fd
%{_texmfdistdir}/tex/latex/bguq/Ubguq09.fd
%{_texmfdistdir}/tex/latex/bguq/Ubguq10.fd
%{_texmfdistdir}/tex/latex/bguq/Ubguq11.fd
%{_texmfdistdir}/tex/latex/bguq/Ubguq12.fd
%{_texmfdistdir}/tex/latex/bguq/begriff-bguq.sty
%{_texmfdistdir}/tex/latex/bguq/bguq.cfg
%{_texmfdistdir}/tex/latex/bguq/bguq.sty
%doc %{_texmfdistdir}/doc/fonts/bguq/INSTALL.txt
%doc %{_texmfdistdir}/doc/fonts/bguq/Makefile
%doc %{_texmfdistdir}/doc/fonts/bguq/README
%doc %{_texmfdistdir}/doc/fonts/bguq/bguq-doc.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/bguq/bguq.dtx
%doc %{_texmfdistdir}/source/fonts/bguq/bguq.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9336 |21cr|texlive-bibarts-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bibarts
Version:	2.2
Release:	1
Epoch:		1
Summary:	"Arts"-style bibliographical information
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibarts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibarts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibarts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibarts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bibarts package assists in making bibliographical lists in
the way that is common in the arts; it requires an auxiliary
program, for which source and a DOS executable are provided.
(Documentation is in German, though bibarts.sty does contain a
brief introduction in English, as a comment.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibarts
%doc %{_texmfdistdir}/doc/latex/bibarts
#- source
%doc %{_texmfdistdir}/source/latex/bibarts

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9337 |21cr|texlive-bibexport-3.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /biblio/bibtex/utils/bibexport
# catalog-date 2011-12-03 09:04:10 +0100
# catalog-license lppl1.3
# catalog-version 3.01
Name:		texlive-bibexport
Version:	3.03
Release:	1
Summary:	Extract a BibTeX file based on a .aux file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/utils/bibexport
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibexport.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibexport.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibexport.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-bibexport.bin = %{EVRD}

%description
A Bourne shell script that uses BibTeX to extract bibliography
entries that are \cite'd in a document. It can also expand a
BibTeX file, expanding the abbreviations (other than the built-
in ones like month names) and following the cross-references.

#-----------------------------------------------------------------------
%files
%{_bindir}/bibexport
%{_texmfdistdir}/bibtex/bst/bibexport/expcites.bst
%{_texmfdistdir}/bibtex/bst/bibexport/expkeys.bst
%{_texmfdistdir}/bibtex/bst/bibexport/export.bst
%{_texmfdistdir}/scripts/bibexport/bibexport.sh
%doc %{_texmfdistdir}/doc/bibtex/bibexport/README
%doc %{_texmfdistdir}/doc/bibtex/bibexport/bibexport.pdf
#- source
%doc %{_texmfdistdir}/source/bibtex/bibexport/bibexport.dtx
%doc %{_texmfdistdir}/source/bibtex/bibexport/bibexport.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/bibexport/bibexport.sh bibexport
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9338 |21cr|texlive-bibhtml-2.0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16093
# category Package
# catalog-ctan /biblio/bibtex/contrib/bibhtml
# catalog-date 2009-11-03 16:56:08 +0100
# catalog-license gpl
# catalog-version 2.0.2
Name:		texlive-bibhtml
Version:	2.0.2
Release:	8
Summary:	BibTeX support for HTML files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/bibhtml
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibhtml.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibhtml.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Bibhtml consists of a Perl script and a set of BibTeX style
files, which together allow you to output a bibliography as a
collection of HTML files. The references in the text are linked
directly to the corresponding bibliography entry, and if a URL
is defined in the entry within the BibTeX database file, then
the generated bibliography entry is linked to this. The package
provides three different style files derived from each of the
standard plain.bst and alpha.bst, as well as two style files
derived from abbrv.bst and unsrt.bst (i.e., eight in total).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/bibhtml/abbrvhtml.bst
%{_texmfdistdir}/bibtex/bst/bibhtml/alphahtml.bst
%{_texmfdistdir}/bibtex/bst/bibhtml/alphahtmldate.bst
%{_texmfdistdir}/bibtex/bst/bibhtml/alphahtmldater.bst
%{_texmfdistdir}/bibtex/bst/bibhtml/plainhtml.bst
%{_texmfdistdir}/bibtex/bst/bibhtml/plainhtmldate.bst
%{_texmfdistdir}/bibtex/bst/bibhtml/plainhtmldater.bst
%{_texmfdistdir}/bibtex/bst/bibhtml/unsrthtml.bst
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/LICENCE
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/README
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/bibhtml
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/bibhtml-extract-aux.xslt
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/bibhtml-insert-bib.xslt
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/bibhtml.html
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/bibrefs.bib
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/detex.sed
%doc %{_texmfdistdir}/doc/bibtex/bibhtml/style.css

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9339 |21cr|texlive-biblatex2bibitem-61648-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex2bibitem

Summary:	Convert BibLaTeX-generated bibliography to bibitems
Name:		texlive-biblatex2bibitem
Version:	61648
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(biblatex2bibitem.sty) = 2024
BuildArch:	noarch

%description
Some journals accept the reference list only as \bibitems. If
you use BibTeX, there is no problem: just paste the content of
the .bbl file into your document. However, there was no
out-of-the-box way to do the same for biblatex, and you had to
struggle with searching appropriate .bst files, or formatting
your reference list by hand, or something like that. Using the
workaround provided by this package solves the problem.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex2bibitem
%{_texmfdistdir}/tex/latex/biblatex2bibitem

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9340 |21cr|texlive-biblatex-3.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex
Version:	3.12
Release:	1
Summary:	Bibliographies in LaTeX using BibTeX for sorting only
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Biblatex is a complete reimplementation of the bibliographic
facilities provided by LaTeX in conjunction with BibTeX. It
redesigns the way in which LaTeX interacts with BibTeX at a
fairly fundamental level. With biblatex, BibTeX is only used
(if it is used at all) to sort the bibliography and to generate
labels. Formatting of the bibliography is entirely controlled
by TeX macros (the BibTeX-based mechanism embeds some parts of
formatting in the BibTeX style file. Good working knowledge in
LaTeX should be sufficient to design new bibliography and
citation styles; nothing related to BibTeX's language is
needed. In fact, users need not remain bound to BibTeX for use
with biblatex: an alternative bibliography processor biblatex-
biber is available. Development of biblatex and biblatex-biber
is closely coupled; the present release of biblatex is designed
to work with biblatex-biber version 0.9.6. The package needs e-
TeX, and uses the author's etoolbox and logreq packages. For
users of biblatex-biber, version 0.9 is required (at least;
refer to the notes for the version of biblatex-biber that you
are using). Apart from the features unique to biblatex, the
package also incorporates core features of the following
packages: babelbib, bibtopic, bibunits, chapterbib, cite,
inlinebib, mcite and mciteplus, mlbib, multibib, splitbib.
Biblatex supports split bibliographies and multiple
bibliographies within one document, and separate lists of
bibliographic shorthands. Bibliographies may be subdivided into
parts (by chapter, by section, etc.) and/or segmented by topics
(by type, by keyword, etc.). Biblatex is fully localized and
can interface with the babel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/biblatex
%{_texmfdistdir}/bibtex/bst/biblatex
%{_texmfdistdir}/tex/latex/biblatex
%doc %{_texmfdistdir}/doc/latex/biblatex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9341 |21cr|texlive-biblatex-abnt-49179-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-abnt

Summary:	BibLaTeX style for Brazil's ABNT rules
Name:		texlive-biblatex-abnt
Version:	49179
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(abnt.bbx) = 2024
Provides:	tex(abnt.cbx) = 2024
Provides:	tex(abnt-numeric.bbx) = 2024
Provides:	tex(abnt-numeric.cbx) = 2024
Provides:	tex-biblatex-abnt = 2024
BuildArch:	noarch

%description
This package offers a BibLaTeX style for Brazil's ABNT
(Brazilian Association of Technical Norms) rules.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-abnt/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9342 |21cr|texlive-biblatex-ajc2020unofficial-54401-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-ajc2020unofficial

Summary:	BibLaTeX style for the Australasian Journal of Combinatorics
Name:		texlive-biblatex-ajc2020unofficial
Version:	54401
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ajc2020unofficial.bbx) = 2024
Provides:	tex(ajc2020unofficial.cbx) = 2024
BuildArch:	noarch

%description
This is an unofficial BibLaTeX style for the Australasian
Journal of Combinatorics. Note that the journal (as for 01
March 2020) does not accept BibLaTeX, so you probably want to
use biblatex2bibitem.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-ajc2020unofficial
%{_texmfdistdir}/tex/latex/biblatex-ajc2020unofficial

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9343 |21cr|texlive-biblatex-anonymous-48548-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-anonymous

Summary:	A tool to manage anonymous work with biblatex
Name:		texlive-biblatex-anonymous
Version:	48548
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-anonymous = 2024
Provides:	tex(biblatex-anonymous.sty) = 2024
BuildArch:	noarch

%description
The package provides tools to help manage anonymous work with
biblatex. It will be useful, for example, in history or
classical philology.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-anonymous/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9344 |21cr|texlive-biblatex-apa6-56209-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-apa6

Summary:	BibLaTeX citation and reference style for APA 6th Edition
Name:		texlive-biblatex-apa6
Version:	56209
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(apa6.bbx) = 2024
Provides:	tex(apa6.cbx) = 2024
BuildArch:	noarch

%description
This is a fairly complete BibLaTeX style (citations and
references) for APA (American Psychological Association) 6th
Edition conformant publications. It implements and automates
most of the guidelines in the APA 6th edition style guide for
citations and references. An example document is also given
which typesets every citation and reference example in the APA
6th edition style guide. This is a legacy style for 6th Edition
documents. Please use the BibLaTeX-apa style package for the
latest APA edition conformance.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-apa6
%{_texmfdistdir}/tex/latex/biblatex-apa6

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9345 |21cr|texlive-biblatex-apa-7.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-apa
Version:	7.7
Release:	3
Summary:	Biblatex citation and reference style for APA
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-apa
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-apa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-apa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a fairly complete biblatex style (citations and
references) for APA (American Psychological Association)
publications. It implements and automates most of the
guidelines in the APA 6th edition style guide for citations and
references with a few (documented) exceptions (which are mainly
currently impossible to automate in principle for any BibTeX-
backed system). An example document is also given which
typesets every citation and reference example in the APA 6th
edition style guide. This version of the package requires use
of biblatex v2.0 and biber v1.0 (at least).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-apa
%doc %{_texmfdistdir}/doc/latex/biblatex-apa

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9346 |21cr|texlive-biblatex-archaeology-53281-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-archaeology

Summary:	A collection of BibLaTeX styles for German prehistory
Name:		texlive-biblatex-archaeology
Version:	53281
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(aefkw.bbx) = 2024
Provides:	tex(aefkw.cbx) = 2024
Provides:	tex(aefkw.dbx) = 2024
Provides:	tex(afwl.bbx) = 2024
Provides:	tex(afwl.cbx) = 2024
Provides:	tex(afwl.dbx) = 2024
Provides:	tex(american-aefkw.lbx) = 2024
Provides:	tex(american-archaeology.lbx) = 2024
Provides:	tex(american-archa.lbx) = 2024
Provides:	tex(american-dguf-alt.lbx) = 2024
Provides:	tex(american-dguf-apa.lbx) = 2024
Provides:	tex(american-eaz.lbx) = 2024
Provides:	tex(american-foe.lbx) = 2024
Provides:	tex(american-jb-kreis-neuss.lbx) = 2024
Provides:	tex(american-karl.lbx) = 2024
Provides:	tex(american-maja.lbx) = 2024
Provides:	tex(american-mpk.lbx) = 2024
Provides:	tex(american-mpkoeaw.lbx) = 2024
Provides:	tex(american-offa.lbx) = 2024
Provides:	tex(american-rgzm.lbx) = 2024
Provides:	tex(american-zaak.lbx) = 2024
Provides:	tex(american-zaes.lbx) = 2024
Provides:	tex(amit.bbx) = 2024
Provides:	tex(amit.cbx) = 2024
Provides:	tex(amit.dbx) = 2024
Provides:	tex(archa.bbx) = 2024
Provides:	tex(archa.cbx) = 2024
Provides:	tex(archa.dbx) = 2024
Provides:	tex(australian-aefkw.lbx) = 2024
Provides:	tex(australian-archaeology.lbx) = 2024
Provides:	tex(australian-archa.lbx) = 2024
Provides:	tex(australian-dguf-alt.lbx) = 2024
Provides:	tex(australian-dguf-apa.lbx) = 2024
Provides:	tex(australian-eaz.lbx) = 2024
Provides:	tex(australian-foe.lbx) = 2024
Provides:	tex(australian-jb-kreis-neuss.lbx) = 2024
Provides:	tex(australian-karl.lbx) = 2024
Provides:	tex(australian-maja.lbx) = 2024
Provides:	tex(australian-mpk.lbx) = 2024
Provides:	tex(australian-mpkoeaw.lbx) = 2024
Provides:	tex(australian-offa.lbx) = 2024
Provides:	tex(australian-rgzm.lbx) = 2024
Provides:	tex(australian-zaak.lbx) = 2024
Provides:	tex(australian-zaes.lbx) = 2024
Provides:	tex(austrian-aefkw.lbx) = 2024
Provides:	tex(austrian-archaeology.lbx) = 2024
Provides:	tex(austrian-archa.lbx) = 2024
Provides:	tex(austrian-dguf-alt.lbx) = 2024
Provides:	tex(austrian-dguf-apa.lbx) = 2024
Provides:	tex(austrian-eaz.lbx) = 2024
Provides:	tex(austrian-foe.lbx) = 2024
Provides:	tex(austrian-jb-kreis-neuss.lbx) = 2024
Provides:	tex(austrian-karl.lbx) = 2024
Provides:	tex(austrian-maja.lbx) = 2024
Provides:	tex(austrian-mpk.lbx) = 2024
Provides:	tex(austrian-mpkoeaw.lbx) = 2024
Provides:	tex(austrian-offa.lbx) = 2024
Provides:	tex(austrian-rgzm.lbx) = 2024
Provides:	tex(austrian-zaak.lbx) = 2024
Provides:	tex(austrian-zaes.lbx) = 2024
Provides:	tex(authoryear-archaeology.bbx) = 2024
Provides:	tex(authoryear-archaeology.cbx) = 2024
Provides:	tex(authoryear-archaeology.dbx) = 2024
Provides:	tex(authoryear-comp-archaeology.bbx) = 2024
Provides:	tex(authoryear-comp-archaeology.cbx) = 2024
Provides:	tex(authoryear-comp-archaeology.dbx) = 2024
Provides:	tex(authoryear-ibid-archaeology.bbx) = 2024
Provides:	tex(authoryear-ibid-archaeology.cbx) = 2024
Provides:	tex(authoryear-ibid-archaeology.dbx) = 2024
Provides:	tex(authoryear-icomp-archaeology.bbx) = 2024
Provides:	tex(authoryear-icomp-archaeology.cbx) = 2024
Provides:	tex(authoryear-icomp-archaeology.dbx) = 2024
Provides:	tex(biblatex-archaeology.sty) = 2024
Provides:	tex(british-aefkw.lbx) = 2024
Provides:	tex(british-archaeology.lbx) = 2024
Provides:	tex(british-archa.lbx) = 2024
Provides:	tex(british-dguf-alt.lbx) = 2024
Provides:	tex(british-dguf-apa.lbx) = 2024
Provides:	tex(british-eaz.lbx) = 2024
Provides:	tex(british-foe.lbx) = 2024
Provides:	tex(british-jb-kreis-neuss.lbx) = 2024
Provides:	tex(british-karl.lbx) = 2024
Provides:	tex(british-maja.lbx) = 2024
Provides:	tex(british-mpk.lbx) = 2024
Provides:	tex(british-mpkoeaw.lbx) = 2024
Provides:	tex(british-offa.lbx) = 2024
Provides:	tex(british-rgzm.lbx) = 2024
Provides:	tex(british-zaak.lbx) = 2024
Provides:	tex(british-zaes.lbx) = 2024
Provides:	tex(canadian-aefkw.lbx) = 2024
Provides:	tex(canadian-archaeology.lbx) = 2024
Provides:	tex(canadian-archa.lbx) = 2024
Provides:	tex(canadian-dguf-alt.lbx) = 2024
Provides:	tex(canadian-dguf-apa.lbx) = 2024
Provides:	tex(canadian-eaz.lbx) = 2024
Provides:	tex(canadian-foe.lbx) = 2024
Provides:	tex(canadian-jb-kreis-neuss.lbx) = 2024
Provides:	tex(canadian-karl.lbx) = 2024
Provides:	tex(canadian-maja.lbx) = 2024
Provides:	tex(canadian-mpk.lbx) = 2024
Provides:	tex(canadian-mpkoeaw.lbx) = 2024
Provides:	tex(canadian-offa.lbx) = 2024
Provides:	tex(canadian-rgzm.lbx) = 2024
Provides:	tex(canadian-zaak.lbx) = 2024
Provides:	tex(canadian-zaes.lbx) = 2024
Provides:	tex(dguf-alt.bbx) = 2024
Provides:	tex(dguf-alt.cbx) = 2024
Provides:	tex(dguf-alt.dbx) = 2024
Provides:	tex(dguf-apa.bbx) = 2024
Provides:	tex(dguf-apa.cbx) = 2024
Provides:	tex(dguf-apa.dbx) = 2024
Provides:	tex(dguf.bbx) = 2024
Provides:	tex(dguf.cbx) = 2024
Provides:	tex(dguf.dbx) = 2024
Provides:	tex(eaz-alt.bbx) = 2024
Provides:	tex(eaz-alt.cbx) = 2024
Provides:	tex(eaz-alt.dbx) = 2024
Provides:	tex(eaz.bbx) = 2024
Provides:	tex(eaz.cbx) = 2024
Provides:	tex(eaz.dbx) = 2024
Provides:	tex(english-aefkw.lbx) = 2024
Provides:	tex(english-archaeology.lbx) = 2024
Provides:	tex(english-archa.lbx) = 2024
Provides:	tex(english-dguf-alt.lbx) = 2024
Provides:	tex(english-dguf-apa.lbx) = 2024
Provides:	tex(english-eaz.lbx) = 2024
Provides:	tex(english-foe.lbx) = 2024
Provides:	tex(english-jb-kreis-neuss.lbx) = 2024
Provides:	tex(english-karl.lbx) = 2024
Provides:	tex(english-maja.lbx) = 2024
Provides:	tex(english-mpk.lbx) = 2024
Provides:	tex(english-mpkoeaw.lbx) = 2024
Provides:	tex(english-offa.lbx) = 2024
Provides:	tex(english-rgzm.lbx) = 2024
Provides:	tex(english-zaak.lbx) = 2024
Provides:	tex(english-zaes.lbx) = 2024
Provides:	tex(foe.bbx) = 2024
Provides:	tex(foe.cbx) = 2024
Provides:	tex(foe.dbx) = 2024
Provides:	tex(german-aefkw.lbx) = 2024
Provides:	tex(german-archaeology.lbx) = 2024
Provides:	tex(german-archa.lbx) = 2024
Provides:	tex(german-dguf-alt.lbx) = 2024
Provides:	tex(german-dguf-apa.lbx) = 2024
Provides:	tex(german-eaz.lbx) = 2024
Provides:	tex(german-foe.lbx) = 2024
Provides:	tex(german-jb-kreis-neuss.lbx) = 2024
Provides:	tex(german-karl.lbx) = 2024
Provides:	tex(german-maja.lbx) = 2024
Provides:	tex(german-mpk.lbx) = 2024
Provides:	tex(german-mpkoeaw.lbx) = 2024
Provides:	tex(german-offa.lbx) = 2024
Provides:	tex(german-rgzm.lbx) = 2024
Provides:	tex(german-zaak.lbx) = 2024
Provides:	tex(german-zaes.lbx) = 2024
Provides:	tex(jb-halle.bbx) = 2024
Provides:	tex(jb-halle.cbx) = 2024
Provides:	tex(jb-halle.dbx) = 2024
Provides:	tex(jb-kreis-neuss.bbx) = 2024
Provides:	tex(jb-kreis-neuss.cbx) = 2024
Provides:	tex(jb-kreis-neuss.dbx) = 2024
Provides:	tex(karl.bbx) = 2024
Provides:	tex(karl.cbx) = 2024
Provides:	tex(karl.dbx) = 2024
Provides:	tex(maja.bbx) = 2024
Provides:	tex(maja.cbx) = 2024
Provides:	tex(maja.dbx) = 2024
Provides:	tex(mpk.bbx) = 2024
Provides:	tex(mpk.cbx) = 2024
Provides:	tex(mpk.dbx) = 2024
Provides:	tex(mpkoeaw.bbx) = 2024
Provides:	tex(mpkoeaw.cbx) = 2024
Provides:	tex(mpkoeaw.dbx) = 2024
Provides:	tex(naustrian-aefkw.lbx) = 2024
Provides:	tex(naustrian-archaeology.lbx) = 2024
Provides:	tex(naustrian-archa.lbx) = 2024
Provides:	tex(naustrian-dguf-alt.lbx) = 2024
Provides:	tex(naustrian-dguf-apa.lbx) = 2024
Provides:	tex(naustrian-eaz.lbx) = 2024
Provides:	tex(naustrian-foe.lbx) = 2024
Provides:	tex(naustrian-jb-kreis-neuss.lbx) = 2024
Provides:	tex(naustrian-karl.lbx) = 2024
Provides:	tex(naustrian-maja.lbx) = 2024
Provides:	tex(naustrian-mpk.lbx) = 2024
Provides:	tex(naustrian-mpkoeaw.lbx) = 2024
Provides:	tex(naustrian-offa.lbx) = 2024
Provides:	tex(naustrian-rgzm.lbx) = 2024
Provides:	tex(naustrian-zaak.lbx) = 2024
Provides:	tex(naustrian-zaes.lbx) = 2024
Provides:	tex(newzealand-aefkw.lbx) = 2024
Provides:	tex(newzealand-archaeology.lbx) = 2024
Provides:	tex(newzealand-archa.lbx) = 2024
Provides:	tex(newzealand-dguf-alt.lbx) = 2024
Provides:	tex(newzealand-dguf-apa.lbx) = 2024
Provides:	tex(newzealand-eaz.lbx) = 2024
Provides:	tex(newzealand-foe.lbx) = 2024
Provides:	tex(newzealand-jb-kreis-neuss.lbx) = 2024
Provides:	tex(newzealand-karl.lbx) = 2024
Provides:	tex(newzealand-maja.lbx) = 2024
Provides:	tex(newzealand-mpk.lbx) = 2024
Provides:	tex(newzealand-mpkoeaw.lbx) = 2024
Provides:	tex(newzealand-offa.lbx) = 2024
Provides:	tex(newzealand-rgzm.lbx) = 2024
Provides:	tex(newzealand-zaak.lbx) = 2024
Provides:	tex(newzealand-zaes.lbx) = 2024
Provides:	tex(ngerman-aefkw.lbx) = 2024
Provides:	tex(ngerman-archaeology.lbx) = 2024
Provides:	tex(ngerman-archa.lbx) = 2024
Provides:	tex(ngerman-dguf-alt.lbx) = 2024
Provides:	tex(ngerman-dguf-apa.lbx) = 2024
Provides:	tex(ngerman-eaz.lbx) = 2024
Provides:	tex(ngerman-foe.lbx) = 2024
Provides:	tex(ngerman-jb-kreis-neuss.lbx) = 2024
Provides:	tex(ngerman-karl.lbx) = 2024
Provides:	tex(ngerman-maja.lbx) = 2024
Provides:	tex(ngerman-mpk.lbx) = 2024
Provides:	tex(ngerman-mpkoeaw.lbx) = 2024
Provides:	tex(ngerman-offa.lbx) = 2024
Provides:	tex(ngerman-rgzm.lbx) = 2024
Provides:	tex(ngerman-zaak.lbx) = 2024
Provides:	tex(ngerman-zaes.lbx) = 2024
Provides:	tex(nnu.bbx) = 2024
Provides:	tex(nnu.cbx) = 2024
Provides:	tex(nnu.dbx) = 2024
Provides:	tex(nswissgerman-aefkw.lbx) = 2024
Provides:	tex(nswissgerman-archaeology.lbx) = 2024
Provides:	tex(nswissgerman-archa.lbx) = 2024
Provides:	tex(nswissgerman-dguf-alt.lbx) = 2024
Provides:	tex(nswissgerman-dguf-apa.lbx) = 2024
Provides:	tex(nswissgerman-eaz.lbx) = 2024
Provides:	tex(nswissgerman-foe.lbx) = 2024
Provides:	tex(nswissgerman-jb-kreis-neuss.lbx) = 2024
Provides:	tex(nswissgerman-karl.lbx) = 2024
Provides:	tex(nswissgerman-maja.lbx) = 2024
Provides:	tex(nswissgerman-mpk.lbx) = 2024
Provides:	tex(nswissgerman-mpkoeaw.lbx) = 2024
Provides:	tex(nswissgerman-offa.lbx) = 2024
Provides:	tex(nswissgerman-rgzm.lbx) = 2024
Provides:	tex(nswissgerman-zaak.lbx) = 2024
Provides:	tex(nswissgerman-zaes.lbx) = 2024
Provides:	tex(numeric-comp-archaeology.bbx) = 2024
Provides:	tex(numeric-comp-archaeology.cbx) = 2024
Provides:	tex(numeric-comp-archaeology.dbx) = 2024
Provides:	tex(offa.bbx) = 2024
Provides:	tex(offa.cbx) = 2024
Provides:	tex(offa.dbx) = 2024
Provides:	tex(rgk-inline.bbx) = 2024
Provides:	tex(rgk-inline.cbx) = 2024
Provides:	tex(rgk-inline.dbx) = 2024
Provides:	tex(rgk-numeric.bbx) = 2024
Provides:	tex(rgk-numeric.cbx) = 2024
Provides:	tex(rgk-numeric.dbx) = 2024
Provides:	tex(rgk-verbose.bbx) = 2024
Provides:	tex(rgk-verbose.cbx) = 2024
Provides:	tex(rgk-verbose.dbx) = 2024
Provides:	tex(rgzm-inline.bbx) = 2024
Provides:	tex(rgzm-inline.cbx) = 2024
Provides:	tex(rgzm-inline.dbx) = 2024
Provides:	tex(rgzm-numeric.bbx) = 2024
Provides:	tex(rgzm-numeric.cbx) = 2024
Provides:	tex(rgzm-numeric.dbx) = 2024
Provides:	tex(rgzm-verbose.bbx) = 2024
Provides:	tex(rgzm-verbose.cbx) = 2024
Provides:	tex(rgzm-verbose.dbx) = 2024
Provides:	tex(swissgerman-aefkw.lbx) = 2024
Provides:	tex(swissgerman-archaeology.lbx) = 2024
Provides:	tex(swissgerman-archa.lbx) = 2024
Provides:	tex(swissgerman-dguf-alt.lbx) = 2024
Provides:	tex(swissgerman-dguf-apa.lbx) = 2024
Provides:	tex(swissgerman-eaz.lbx) = 2024
Provides:	tex(swissgerman-foe.lbx) = 2024
Provides:	tex(swissgerman-jb-kreis-neuss.lbx) = 2024
Provides:	tex(swissgerman-karl.lbx) = 2024
Provides:	tex(swissgerman-maja.lbx) = 2024
Provides:	tex(swissgerman-mpk.lbx) = 2024
Provides:	tex(swissgerman-mpkoeaw.lbx) = 2024
Provides:	tex(swissgerman-offa.lbx) = 2024
Provides:	tex(swissgerman-rgzm.lbx) = 2024
Provides:	tex(swissgerman-zaak.lbx) = 2024
Provides:	tex(swissgerman-zaes.lbx) = 2024
Provides:	tex(ufg-muenster-inline.bbx) = 2024
Provides:	tex(ufg-muenster-inline.cbx) = 2024
Provides:	tex(ufg-muenster-inline.dbx) = 2024
Provides:	tex(ufg-muenster-numeric.bbx) = 2024
Provides:	tex(ufg-muenster-numeric.cbx) = 2024
Provides:	tex(ufg-muenster-numeric.dbx) = 2024
Provides:	tex(ufg-muenster-verbose.bbx) = 2024
Provides:	tex(ufg-muenster-verbose.cbx) = 2024
Provides:	tex(ufg-muenster-verbose.dbx) = 2024
Provides:	tex(UKenglish-aefkw.lbx) = 2024
Provides:	tex(UKenglish-archaeology.lbx) = 2024
Provides:	tex(UKenglish-archa.lbx) = 2024
Provides:	tex(UKenglish-dguf-alt.lbx) = 2024
Provides:	tex(UKenglish-dguf-apa.lbx) = 2024
Provides:	tex(UKenglish-eaz.lbx) = 2024
Provides:	tex(UKenglish-foe.lbx) = 2024
Provides:	tex(UKenglish-jb-kreis-neuss.lbx) = 2024
Provides:	tex(UKenglish-karl.lbx) = 2024
Provides:	tex(UKenglish-maja.lbx) = 2024
Provides:	tex(UKenglish-mpk.lbx) = 2024
Provides:	tex(UKenglish-mpkoeaw.lbx) = 2024
Provides:	tex(UKenglish-offa.lbx) = 2024
Provides:	tex(UKenglish-rgzm.lbx) = 2024
Provides:	tex(UKenglish-zaak.lbx) = 2024
Provides:	tex(UKenglish-zaes.lbx) = 2024
Provides:	tex(USenglish-aefkw.lbx) = 2024
Provides:	tex(USenglish-archaeology.lbx) = 2024
Provides:	tex(USenglish-archa.lbx) = 2024
Provides:	tex(USenglish-dguf-alt.lbx) = 2024
Provides:	tex(USenglish-dguf-apa.lbx) = 2024
Provides:	tex(USenglish-eaz.lbx) = 2024
Provides:	tex(USenglish-foe.lbx) = 2024
Provides:	tex(USenglish-jb-kreis-neuss.lbx) = 2024
Provides:	tex(USenglish-karl.lbx) = 2024
Provides:	tex(USenglish-maja.lbx) = 2024
Provides:	tex(USenglish-mpk.lbx) = 2024
Provides:	tex(USenglish-mpkoeaw.lbx) = 2024
Provides:	tex(USenglish-offa.lbx) = 2024
Provides:	tex(USenglish-rgzm.lbx) = 2024
Provides:	tex(USenglish-zaak.lbx) = 2024
Provides:	tex(USenglish-zaes.lbx) = 2024
Provides:	tex(verbose-archaeology.bbx) = 2024
Provides:	tex(verbose-archaeology.cbx) = 2024
Provides:	tex(verbose-archaeology.dbx) = 2024
Provides:	tex(verbose-ibid-archaeology.bbx) = 2024
Provides:	tex(verbose-ibid-archaeology.cbx) = 2024
Provides:	tex(verbose-ibid-archaeology.dbx) = 2024
Provides:	tex(verbose-trad2note-archaeology.bbx) = 2024
Provides:	tex(verbose-trad2note-archaeology.cbx) = 2024
Provides:	tex(verbose-trad2note-archaeology.dbx) = 2024
Provides:	tex(volkskunde.bbx) = 2024
Provides:	tex(volkskunde.cbx) = 2024
Provides:	tex(volkskunde.dbx) = 2024
Provides:	tex(zaak.bbx) = 2024
Provides:	tex(zaak.cbx) = 2024
Provides:	tex(zaak.dbx) = 2024
Provides:	tex(zaes.bbx) = 2024
Provides:	tex(zaes.cbx) = 2024
Provides:	tex(zaes.dbx) = 2024
BuildArch:	noarch

%description
This package provides additional BibLaTeX styles for German
humanities. Its core purpose is to enable the referencing rules
of the Romano-Germanic Commission (>Romisch-Germanische
Kommission), the department of prehistory of the German
Archaeological Institute (Deutsches Archaologisches Institut),
since these are referenced by most guidelines in German
prehistory and medieval archaeology and serve as a kind of
template. biblatex-archaeology provides verbose, numeric and
author date styles as well and adaptions to specific document
types like exhibition and auction catalogues.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-archaeology/
%{_texmfdistdir}/tex/latex/biblatex-archaeology/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9347 |21cr|texlive-biblatex-arthistory-bonn-46637-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-arthistory-bonn

Summary:	BibLaTeX citation style covers the citation and bibliography guidelines for art historians
Name:		texlive-biblatex-arthistory-bonn
Version:	46637
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(arthistory-bonn.bbx) = 2024
Provides:	tex(arthistory-bonn.cbx) = 2024
Provides:	tex(arthistory-bonn.dbx) = 2024
Provides:	tex(arthistory-bonn-english.lbx) = 2024
Provides:	tex(arthistory-bonn-german.lbx) = 2024
BuildArch:	noarch

%description
This citation style covers the citation and bibliography
guidelines of the Kunsthistorisches Institut der Universitat
Bonn for undergraduates. It introduces bibliography entry types
for catalogs and features a tabular bibliography, among other
things. Various options are available to change and adjust the
outcome according to one's own preferences. The style is
compatible with English and German.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-arthistory-bonn/
%{_texmfdistdir}/tex/latex/biblatex-arthistory-bonn/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9348 |21cr|texlive-biblatex-bath-63401-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-bath

Summary:	Harvard referencing style as recommended by the University of Bath Library
Name:		texlive-biblatex-bath
Version:	63401
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bath.bbx) = 2024
Provides:	tex(bath.cbx) = 2024
Provides:	tex(bath.dbx) = 2024
Provides:	tex(british-bath.lbx) = 2024
Provides:	tex(english-bath.lbx) = 2024
BuildArch:	noarch

%description
This package provides a BibLaTeX style to format reference
lists in the Harvard style recommended by the University of
Bath Library.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-bath
%{_texmfdistdir}/tex/latex/biblatex-bath

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9349 |21cr|texlive-biblatex-bookinarticle-40323-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-bookinarticle

Summary:	Manage book edited in article
Name:		texlive-biblatex-bookinarticle
Version:	40323
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-bookinarticle = 2024
Provides:	tex(biblatex-bookinarticle.sty) = 2024
BuildArch:	noarch

%description
This package provides two new biblatex entry types:
@bookinarticle and @bookinincollection, to refer to a modern
edition of an old book, where this modern edition is provided
in a @article or in a @incollection.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-bookinarticle/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9350 |21cr|texlive-biblatex-bookinother-54015-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-bookinother

Summary:	Manage book edited in other entry type
Name:		texlive-biblatex-bookinother
Version:	54015
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-bookinother = 2024
Provides:	tex(bookinother.bbx) = 2024
BuildArch:	noarch

%description
This package provides new BibLaTeX entry types and fields for
book edited in other types, like for instance @bookinarticle.
It offers more types than the older package biblatex-
bookinarticle which it superseeds.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-bookinother/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9351 |21cr|texlive-biblatex-bwl-0.02-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26556
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-biblatex-bwl
Version:	0.02
Release:	3
Epoch:		1
Summary:	TeXLive biblatex-bwl package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-bwl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-bwl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive biblatex-bwl package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-bwl/bwl-FU.bbx
%{_texmfdistdir}/tex/latex/biblatex-bwl/bwl-FU.cbx
%doc %{_texmfdistdir}/doc/latex/biblatex-bwl/Changes
%doc %{_texmfdistdir}/doc/latex/biblatex-bwl/doc/bwl-FU.bib
%doc %{_texmfdistdir}/doc/latex/biblatex-bwl/doc/bwl-FU.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-bwl/doc/bwl-FU.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9352 |21cr|texlive-biblatex-caspervector-0.2.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32516
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/biblatex-caspervector
# catalog-date 2013-12-27 09:49:55 +0100
# catalog-license lppl1.3
# catalog-version 0.1.9
Name:		texlive-biblatex-caspervector
Version:	0.2.7
Release:	2
Summary:	A simple citation style for Chinese users
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-caspervector
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-caspervector.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-caspervector.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a simple and easily extensible
biblography/citation style for Chinese LaTeX users, using
biblatex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-caspervector/biblatex-caspervector-gbk.def
%{_texmfdistdir}/tex/latex/biblatex-caspervector/biblatex-caspervector-utf8.def
%{_texmfdistdir}/tex/latex/biblatex-caspervector/caspervector.bbx
%{_texmfdistdir}/tex/latex/biblatex-caspervector/caspervector.cbx
%doc %{_texmfdistdir}/doc/latex/biblatex-caspervector/ChangeLog.txt
%doc %{_texmfdistdir}/doc/latex/biblatex-caspervector/Makefile
%doc %{_texmfdistdir}/doc/latex/biblatex-caspervector/readme.bib
%doc %{_texmfdistdir}/doc/latex/biblatex-caspervector/readme.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-caspervector/readme.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9353 |21cr|texlive-biblatex-chem-1.1w-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-chem
Version:	1.1w
Release:	1
Summary:	A set of biblatex implementations of chemistry-related bibliography styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-chem
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-chem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-chem.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle offers a set of styles to allow chemists to use
biblatex. The package has complete styles for: - all ACS
journals; - RSC journals using standard (Chem. Commun.) style;
and - Angewandte Chem. style, thus covering a wide range of
journals. A comprehensive set of examples of use is included.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-chem
%doc %{_texmfdistdir}/doc/latex/biblatex-chem

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9354 |21cr|texlive-biblatex-chicago-1.0rc5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-chicago
Version:	1.0rc5
Release:	2
Summary:	Chicago style files for biblatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-chicago
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-chicago.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-chicago.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a biblatex style that implements the Chicago 'author-
date' and 'notes with bibliography' style specifications given
in the Chicago Manual of Style, 16th edition. The style
implements entry types for citing audio-visual materials. The
package was previously known as biblatex-chicago-notes-df.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-chicago
%doc %{_texmfdistdir}/doc/latex/biblatex-chicago

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9355 |21cr|texlive-biblatex-claves-43723-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-claves

Summary:	A tool to manage claves of old litterature with BibLaTeX
Name:		texlive-biblatex-claves
Version:	43723
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-claves = 2024
Provides:	tex(claves.bbx) = 2024
BuildArch:	noarch

%description
When studying antic and medieval literature, we may find many
different texts published with the same title, or, in contrary,
the same text published with different titles. To avoid
confusion, scholars have published claves, which are books
listing ancient texts, identifying them by an identifier -- a
number or a string of text. For example, for early
Christianity, we have the Bibliotheca Hagiographica Graeca, the
Clavis Apocryphorum Novi Testamenti and other claves. It could
be useful to print the identifier of a texts in one specific
clavis, or in many claves. The package allows us to create new
field for different claves, and to present all these fields in
a consistent way.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-claves/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9356 |21cr|texlive-biblatex-cv-59433-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-cv

Summary:	Create a CV from BibTeX files
Name:		texlive-biblatex-cv
Version:	59433
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(biblatex-cv.bbx) = 2024
Provides:	tex(biblatex-cv.cbx) = 2024
Provides:	tex(biblatex-cv.sty) = 2024
BuildArch:	noarch

%description
This package creates an academic curriculum vitae (CV) from a
BibTeX .bib file. The package makes use of BibLaTeX/biber to
automatically format, group, and sort the entries on a CV.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-cv
%{_texmfdistdir}/tex/latex/biblatex-cv

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9357 |21cr|texlive-biblatex-dw-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31752
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/biblatex-dw
# catalog-date 2013-09-23 15:23:00 +0200
# catalog-license lppl
# catalog-version 1.6a
Name:		texlive-biblatex-dw
Version:	1.7
Release:	2
Summary:	Humanities styles for biblatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-dw
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-dw.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-dw.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A small collection of styles for the biblatex package. It was
designed for citations in the humanities and offers some
features that are not provided by the standard biblatex styles.
The styles are dependent on biblatex (at least version 0.9b)
and cannot be used without it. Eine kleine Sammlung von Stilen
fur das Paket biblatex. Es ist auf geisteswissenschaftliche
Zitierweise zugeschnitten und bietet einige Funktionen, die von
den Standard-Stilen von biblatex nicht direkt bereitgestellt
werden. Biblatex-dw baut vollstandig auf biblatex auf und kann
nicht ohne biblatex (mindestens in der Version 0.9b) verwendet
werden.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-dw/bbx/authortitle-dw.bbx
%{_texmfdistdir}/tex/latex/biblatex-dw/bbx/footnote-dw.bbx
%{_texmfdistdir}/tex/latex/biblatex-dw/bbx/standard-dw.bbx
%{_texmfdistdir}/tex/latex/biblatex-dw/cbx/authortitle-dw.cbx
%{_texmfdistdir}/tex/latex/biblatex-dw/cbx/footnote-dw.cbx
%{_texmfdistdir}/tex/latex/biblatex-dw/cbx/standard-dw.cbx
%{_texmfdistdir}/tex/latex/biblatex-dw/lbx/english-dw.lbx
%{_texmfdistdir}/tex/latex/biblatex-dw/lbx/german-dw.lbx
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/CHANGES
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/LIESMICH
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/README
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/biblatex-dw-preamble.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/biblatex-dw-print.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/biblatex-dw-screen.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/biblatex-dw.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/biblatex-dw.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/de-biblatex-dw.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/de-biblatex-dw.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/de-authortitle-dw.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/de-authortitle-dw.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/de-examples-dw.bib
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/de-footnote-dw.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/de-footnote-dw.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/en-authortitle-dw.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/en-authortitle-dw.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/en-footnote-dw.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/en-footnote-dw.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-dw/examples/examples-dw.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9358 |21cr|texlive-biblatex-enc-44627-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-enc

Summary:	BibLaTeX style for the Ecole nationale des chartes (Paris)
Name:		texlive-biblatex-enc
Version:	44627
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(enc.bbx) = 2024
Provides:	tex(enc.cbx) = 2024
BuildArch:	noarch

%description
This package provides a citation and bibliography style for use
with BibLaTeX. It conforms to the bibliographic standards used
at the Ecole nationale des chartes (Paris), and may be suitable
for a more general use in historical and philological works.
The package was initially derived from historische-zeitschrift,
with the necessary modifications.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-enc/
%{_texmfdistdir}/tex/latex/biblatex-enc/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9359 |21cr|texlive-biblatex-ext-63638-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-ext

Summary:	Extended BibLaTeX standard styles
Name:		texlive-biblatex-ext
Version:	63638
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(biblatex-ext-oa-doiapi.sty) = 2024
Provides:	tex(biblatex-ext-oa.sty) = 2024
Provides:	tex(biblatex-ext-oasymb-l3draw.sty) = 2024
Provides:	tex(biblatex-ext-oasymb-pict2e.sty) = 2024
Provides:	tex(biblatex-ext-oasymb-tikz.sty) = 2024
Provides:	tex(biblatex-ext-tabular.sty) = 2024
Provides:	tex(blxextdoiapi.lua) = 2024
Provides:	tex(ext-alphabetic.bbx) = 2024
Provides:	tex(ext-alphabetic.cbx) = 2024
Provides:	tex(ext-alphabetic-verb.bbx) = 2024
Provides:	tex(ext-alphabetic-verb.cbx) = 2024
Provides:	tex(ext-authortitle.bbx) = 2024
Provides:	tex(ext-authortitle.cbx) = 2024
Provides:	tex(ext-authortitle-common.bbx) = 2024
Provides:	tex(ext-authortitle-comp.bbx) = 2024
Provides:	tex(ext-authortitle-comp.cbx) = 2024
Provides:	tex(ext-authortitle-ibid.bbx) = 2024
Provides:	tex(ext-authortitle-ibid.cbx) = 2024
Provides:	tex(ext-authortitle-icomp.bbx) = 2024
Provides:	tex(ext-authortitle-icomp.cbx) = 2024
Provides:	tex(ext-authortitle-tcomp.bbx) = 2024
Provides:	tex(ext-authortitle-tcomp.cbx) = 2024
Provides:	tex(ext-authortitle-terse.bbx) = 2024
Provides:	tex(ext-authortitle-terse.cbx) = 2024
Provides:	tex(ext-authortitle-ticomp.bbx) = 2024
Provides:	tex(ext-authortitle-ticomp.cbx) = 2024
Provides:	tex(ext-authoryear.bbx) = 2024
Provides:	tex(ext-authoryear.cbx) = 2024
Provides:	tex(ext-authoryear-common.bbx) = 2024
Provides:	tex(ext-authoryear-comp.bbx) = 2024
Provides:	tex(ext-authoryear-comp.cbx) = 2024
Provides:	tex(ext-authoryear-ecomp.bbx) = 2024
Provides:	tex(ext-authoryear-ecomp.cbx) = 2024
Provides:	tex(ext-authoryear-ibid.bbx) = 2024
Provides:	tex(ext-authoryear-ibid.cbx) = 2024
Provides:	tex(ext-authoryear-icomp.bbx) = 2024
Provides:	tex(ext-authoryear-icomp.cbx) = 2024
Provides:	tex(ext-authoryear-iecomp.bbx) = 2024
Provides:	tex(ext-authoryear-iecomp.cbx) = 2024
Provides:	tex(ext-authoryear-tcomp.bbx) = 2024
Provides:	tex(ext-authoryear-tcomp.cbx) = 2024
Provides:	tex(ext-authoryear-tecomp.bbx) = 2024
Provides:	tex(ext-authoryear-tecomp.cbx) = 2024
Provides:	tex(ext-authoryear-terse.bbx) = 2024
Provides:	tex(ext-authoryear-terse.cbx) = 2024
Provides:	tex(ext-authoryear-ticomp.bbx) = 2024
Provides:	tex(ext-authoryear-ticomp.cbx) = 2024
Provides:	tex(ext-authoryear-tiecomp.bbx) = 2024
Provides:	tex(ext-authoryear-tiecomp.cbx) = 2024
Provides:	tex(ext-biblatex-aux.def) = 2024
Provides:	tex(ext-dashed-common.bbx) = 2024
Provides:	tex(ext-numeric.bbx) = 2024
Provides:	tex(ext-numeric.cbx) = 2024
Provides:	tex(ext-numeric-comp.bbx) = 2024
Provides:	tex(ext-numeric-comp.cbx) = 2024
Provides:	tex(ext-numeric-verb.bbx) = 2024
Provides:	tex(ext-numeric-verb.cbx) = 2024
Provides:	tex(ext-standard.bbx) = 2024
Provides:	tex(ext-verbose.bbx) = 2024
Provides:	tex(ext-verbose.cbx) = 2024
Provides:	tex(ext-verbose-common.cbx) = 2024
Provides:	tex(ext-verbose-ibid.bbx) = 2024
Provides:	tex(ext-verbose-ibid.cbx) = 2024
Provides:	tex(ext-verbose-inote.bbx) = 2024
Provides:	tex(ext-verbose-inote.cbx) = 2024
Provides:	tex(ext-verbose-note.bbx) = 2024
Provides:	tex(ext-verbose-note.cbx) = 2024
Provides:	tex(ext-verbose-trad1.bbx) = 2024
Provides:	tex(ext-verbose-trad1.cbx) = 2024
Provides:	tex(ext-verbose-trad2.bbx) = 2024
Provides:	tex(ext-verbose-trad2.cbx) = 2024
Provides:	tex(ext-verbose-trad3.bbx) = 2024
Provides:	tex(ext-verbose-trad3.cbx) = 2024
BuildArch:	noarch

%description
The BibLaTeX-ext bundle provides styles that slightly extend
the standard styles that ship with BibLaTeX. The styles offered
in this bundle provide a simple interface to change some of the
stylistic decisions made in the standard styles. At the same
time they stay as close to their standard counterparts as
possible, so that most customisation methods can be applied
here as well.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-ext
%{_texmfdistdir}/tex/latex/biblatex-ext

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9360 |21cr|texlive-biblatex-fiwi-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-fiwi
Version:	1.7
Release:	2
Summary:	Biblatex styles for use in German humanities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-fiwi
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-fiwi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-fiwi.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a collection of styles for biblatex
(version 1.7 is required, currently). It was designed for
citations in German Humanities, especially film studies, and
offers some features that are not provided by the standard
biblatex styles. The style is highly optimized for documents
written in German, and the main documentation is only available
in German.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-fiwi
%doc %{_texmfdistdir}/doc/latex/biblatex-fiwi

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9361 |21cr|texlive-biblatex-gb7714-2015-64967-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-gb7714-2015

Summary:	A BibLaTeX implementation of the GBT7714-2015 bibliography style for Chinese users
Name:		texlive-biblatex-gb7714-2015
Version:	64967
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(chinese-erj.bbx) = 2024
Provides:	tex(chinese-erj.cbx) = 2024
Provides:	tex(gb7714-1987ay.bbx) = 2024
Provides:	tex(gb7714-1987ay.cbx) = 2024
Provides:	tex(gb7714-1987.bbx) = 2024
Provides:	tex(gb7714-1987.cbx) = 2024
Provides:	tex(gb7714-2005ay.bbx) = 2024
Provides:	tex(gb7714-2005ay.cbx) = 2024
Provides:	tex(gb7714-2005.bbx) = 2024
Provides:	tex(gb7714-2005.cbx) = 2024
Provides:	tex(gb7714-2015ay.bbx) = 2024
Provides:	tex(gb7714-2015ay.cbx) = 2024
Provides:	tex(gb7714-2015.bbx) = 2024
Provides:	tex(gb7714-2015.cbx) = 2024
Provides:	tex(gb7714-2015-gbk.def) = 2024
Provides:	tex(gb7714-2015ms.bbx) = 2024
Provides:	tex(gb7714-2015ms.cbx) = 2024
Provides:	tex(gb7714-2015mx.bbx) = 2024
Provides:	tex(gb7714-2015mx.cbx) = 2024
Provides:	tex(gb7714-CCNU.bbx) = 2024
Provides:	tex(gb7714-CCNU.cbx) = 2024
Provides:	tex(gb7714-NWAFU.bbx) = 2024
Provides:	tex(gb7714-NWAFU.cbx) = 2024
Provides:	tex(gb7714-SEU.bbx) = 2024
Provides:	tex(gb7714-SEU.cbx) = 2024
BuildArch:	noarch

%description
This package provides an implementation of the GBT7714-2015
bibliography style. This implementation follows the
GBT7714-2015 standard and can be used by simply loading
BibLaTeX with the appropriate option. A demonstration database
is provided to show how to format input for the style.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-gb7714-2015/
%{_texmfdistdir}/tex/latex/biblatex-gb7714-2015/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9362 |21cr|texlive-biblatex-german-legal-66461-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-german-legal

Summary:	Comprehensive citation style for German legal texts
Name:		texlive-biblatex-german-legal
Version:	66461
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(german-legal-book.bbx) = 2024
Provides:	tex(german-legal-book.cbx) = 2024
BuildArch:	noarch

%description
This package aims to provide citation styles (for footnotes and
bibliographies) for German legal texts. It is currently focused
on citations in books (style german-legal-book), but may be
extended to journal articles in the future. Dieses Paket
enthalt BibLaTeX-Zitierstile fur die Rechtswissenschaften in
Deutschland. Aktuell enthalt es einen auf Monographien in den
deutschen Rechtswissenschaften ausgerichteten Zitierstil namens
german-legal-book.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-german-legal
%{_texmfdistdir}/tex/latex/biblatex-german-legal

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9363 |21cr|texlive-biblatex-gost-1.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-gost
Version:	1.17
Release:	2
Summary:	Biblatex support for GOST standard bibliographies
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-gost
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-gost.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-gost.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides biblatex support for Russian bibliography
style GOST 7.0.5-2008.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-gost
%doc %{_texmfdistdir}/doc/latex/biblatex-gost

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9364 |21cr|texlive-biblatex-historian-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19787
# category Package
# catalog-ctan /macros/latex/exptl/biblatex-contrib/biblatex-historian
# catalog-date 2010-08-23 11:17:08 +0200
# catalog-license lppl
# catalog-version 0.4
Name:		texlive-biblatex-historian
Version:	0.4
Release:	8
Summary:	A Biblatex style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/exptl/biblatex-contrib/biblatex-historian
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-historian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-historian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A biblatex style, based on the Turabian Manual (a version of
Chicago).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-historian/historian.bbx
%{_texmfdistdir}/tex/latex/biblatex-historian/historian.cbx
%{_texmfdistdir}/tex/latex/biblatex-historian/historian.lbx
%doc %{_texmfdistdir}/doc/latex/biblatex-historian/README.txt
%doc %{_texmfdistdir}/doc/latex/biblatex-historian/historian.bib
%doc %{_texmfdistdir}/doc/latex/biblatex-historian/historian.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9365 |21cr|texlive-biblatex-ieee-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-ieee
Version:	1.3
Release:	1
Summary:	Ieee style files for biblatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-ieee
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-ieee.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-ieee.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a biblatex style that implements the bibliography style
of the IEEE for biblatex. The implementation follows standard
biblatex conventions, and can be used simply by loading
biblatex with the appropriate option:
\usepackage[style=ieee]{biblatex} A demonstration database is
provided to show how to format input for the style.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-ieee
%doc %{_texmfdistdir}/doc/latex/biblatex-ieee

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9366 |21cr|texlive-biblatex-ijsra-41634-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-ijsra

Summary:	BibLaTeX style for the International Journal of Student Research in Archaeology
Name:		texlive-biblatex-ijsra
Version:	41634
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-ijsra = 2024
Provides:	tex(ijsra.bbx) = 2024
Provides:	tex(ijsra.cbx) = 2024
BuildArch:	noarch

%description
BibLaTeX style used for the journal International Journal of
Student Research in Archaeology.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-ijsra/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9367 |21cr|texlive-biblatex-iso690-62866-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-iso690

Summary:	BibLaTeX style for ISO 690 standard
Name:		texlive-biblatex-iso690
Version:	62866
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-iso690 = 2024
Provides:	tex(iso-alphabetic.bbx) = 2024
Provides:	tex(iso-alphabetic.cbx) = 2024
Provides:	tex(iso-authortitle.bbx) = 2024
Provides:	tex(iso-authortitle.cbx) = 2024
Provides:	tex(iso-authoryear.bbx) = 2024
Provides:	tex(iso-authoryear.cbx) = 2024
Provides:	tex(iso.bbx) = 2024
Provides:	tex(iso-fullcite.cbx) = 2024
Provides:	tex(iso-numeric.bbx) = 2024
Provides:	tex(iso-numeric.cbx) = 2024
BuildArch:	noarch

%description
The package provides a bibliography and citation style which
conforms to the latest revision of the international standard
ISO 690:2010. The implementation follows BibLaTeX conventions
and requires biblatex >= 3.4 and biber >= 2.5.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-iso690/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9368 |21cr|texlive-biblatex-jura2-64762-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-jura2

Summary:	Citation style for the German legal profession
Name:		texlive-biblatex-jura2
Version:	64762
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jura2.bbx) = 2024
Provides:	tex(jura2.cbx) = 2024
BuildArch:	noarch

%description
The package offers BibLaTeX support for citations in German
legal texts. This is a style that, unlike other styles in 2019,
actually works with modern TeX distributions.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-jura2
%{_texmfdistdir}/tex/latex/biblatex-jura2

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9369 |21cr|texlive-biblatex-juradiss-0.1g-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29252
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/biblatex-juradiss
# catalog-date 2013-03-01 08:15:18 +0100
# catalog-license lppl
# catalog-version 0.1f
Name:		texlive-biblatex-juradiss
Version:	0.1g
Release:	2
Summary:	Biblatex stylefiles for German law thesis
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-juradiss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-juradiss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-juradiss.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a style for use in typesetting a German
law thesis with LaTeX. The style (using biblatex) is based on
biblatex-dw.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-juradiss/biblatex-juradiss.bbx
%{_texmfdistdir}/tex/latex/biblatex-juradiss/biblatex-juradiss.cbx
%doc %{_texmfdistdir}/doc/latex/biblatex-juradiss/README
%doc %{_texmfdistdir}/doc/latex/biblatex-juradiss/biber.conf
%doc %{_texmfdistdir}/doc/latex/biblatex-juradiss/biblatex-juradiss.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-juradiss/biblatex-juradiss.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9370 |21cr|texlive-biblatex-license-58437-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-license

Summary:	Add license data to the bibliography
Name:		texlive-biblatex-license
Version:	58437
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(biblatex-license.sty) = 2024
BuildArch:	noarch

%description
This package is for adding license data to bibliography entries
via BibLaTeX's built-in related mechanism. It provides a new
relatedtype license and some bibmacros for typesetting these
related entries.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-license
%{_texmfdistdir}/tex/latex/biblatex-license

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9371 |21cr|texlive-biblatex-lncs-65280-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-lncs

Summary:	BibLaTeX style for Springer Lecture Notes in Computer Science
Name:		texlive-biblatex-lncs
Version:	65280
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lncs.bbx) = 2024
Provides:	tex(lncs.cbx) = 2024
BuildArch:	noarch

%description
This is a BibLaTeX style for Springer Lecture Notes in Computer
Science (LNCS). It extends the standard BiBTeX model by an
acronym entry.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-lncs
%{_texmfdistdir}/tex/latex/biblatex-lncs

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9372 |21cr|texlive-biblatex-lni-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-lni

Summary:	LNI style for BibLaTeX
Name:		texlive-biblatex-lni
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-lni = 2024
Provides:	tex(LNI.bbx) = 2024
Provides:	tex(LNI.cbx) = 2024
BuildArch:	noarch

%description
BibLaTeX style for the Lecture Notes in Informatics, which is
published by the Gesellschaft fur Informatik (GI e.V.).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-lni/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9373 |21cr|texlive-biblatex-luh-ipw-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25093
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/biblatex-luh-ipw
# catalog-date 2012-01-10 17:14:00 +0100
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-biblatex-luh-ipw
Version:	0.3
Release:	7
Summary:	Biblatex styles for social sciences
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-luh-ipw
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-luh-ipw.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-luh-ipw.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle is a small collection of styles for biblatex. It was
designed for citations in the Humanities, following the
guidelines of style of the institutes for the social sciences
of the Leibniz University Hannover/LUH (especially the
Institute of Political Science). The bundle depends on biblatex
(version 1.1 at least) and cannot be used without it.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-luh-ipw/bbx/authoryear-luh-ipw.bbx
%{_texmfdistdir}/tex/latex/biblatex-luh-ipw/bbx/standard-luh-ipw.bbx
%{_texmfdistdir}/tex/latex/biblatex-luh-ipw/bbx/verbose-inote-luh-ipw.bbx
%{_texmfdistdir}/tex/latex/biblatex-luh-ipw/cbx/authoryear-luh-ipw.cbx
%{_texmfdistdir}/tex/latex/biblatex-luh-ipw/cbx/standard-luh-ipw.cbx
%{_texmfdistdir}/tex/latex/biblatex-luh-ipw/cbx/verbose-inote-luh-ipw.cbx
%{_texmfdistdir}/tex/latex/biblatex-luh-ipw/lbx/english-luh-ipw.lbx
%{_texmfdistdir}/tex/latex/biblatex-luh-ipw/lbx/german-luh-ipw.lbx
%doc %{_texmfdistdir}/doc/latex/biblatex-luh-ipw/README
%doc %{_texmfdistdir}/doc/latex/biblatex-luh-ipw/biblatex-luh-ipw-preamble.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-luh-ipw/biblatex-luh-ipw-print.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-luh-ipw/biblatex-luh-ipw-screen.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-luh-ipw/de-biblatex-luh-ipw.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-luh-ipw/de-biblatex-luh-ipw.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9374 |21cr|texlive-biblatex-manuscripts-philology-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-manuscripts-philology
Version:	2.1.0
Release:	1
Summary:	Manage classical manuscripts with biblatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-manuscripts-philology
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-manuscripts-philology.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-manuscripts-philology.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package adds a new entry type: @manuscript to manage
manuscript in classical philology, for example to prepare a
critical edition.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-manuscripts-philology
%doc %{_texmfdistdir}/doc/latex/biblatex-manuscripts-philology

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9375 |21cr|texlive-biblatex-mla-1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-mla
Version:	1.9
Release:	2
Summary:	MLA style files for biblatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-mla
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-mla.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-mla.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides biblatex support for citations in the
format specified by the MLA handbook.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-mla
%doc %{_texmfdistdir}/doc/latex/biblatex-mla

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9376 |21cr|texlive-biblatex-morenames-43049-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-morenames

Summary:	New names for standard BibLaTeX entry type
Name:		texlive-biblatex-morenames
Version:	43049
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-morenames = 2024
Provides:	tex(morenames.bbx) = 2024
BuildArch:	noarch

%description
This package adds new fields of "name" type to the standard
entry types of BibLaTeX. For example: maineditor, for a
@collection, means the editor of @mvcollection, and not the
editor of the @collection. bookineditor, for a @bookinbook,
means the editor of the entry, and not, as the standard editor
field, the editor of the volume in which the entry is
contained.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-morenames/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9377 |21cr|texlive-biblatex-ms-66480-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-ms

Summary:	Sophisticated Bibliographies in LaTeX (multiscript version)
Name:		texlive-biblatex-ms
Version:	66480
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(logreq.sty)
Requires:	tex(pdftexcmds.sty)
#Requires:	tex(url.sty)
Provides:	tex(alphabetic-ms.bbx) = 2024
Provides:	tex(alphabetic-ms.cbx) = 2024
Provides:	tex(alphabetic-verb-ms.bbx) = 2024
Provides:	tex(alphabetic-verb-ms.cbx) = 2024
Provides:	tex(authortitle-comp-ms.bbx) = 2024
Provides:	tex(authortitle-comp-ms.cbx) = 2024
Provides:	tex(authortitle-ibid-ms.bbx) = 2024
Provides:	tex(authortitle-ibid-ms.cbx) = 2024
Provides:	tex(authortitle-icomp-ms.bbx) = 2024
Provides:	tex(authortitle-icomp-ms.cbx) = 2024
Provides:	tex(authortitle-ms.bbx) = 2024
Provides:	tex(authortitle-ms.cbx) = 2024
Provides:	tex(authortitle-tcomp-ms.bbx) = 2024
Provides:	tex(authortitle-tcomp-ms.cbx) = 2024
Provides:	tex(authortitle-terse-ms.bbx) = 2024
Provides:	tex(authortitle-terse-ms.cbx) = 2024
Provides:	tex(authortitle-ticomp-ms.bbx) = 2024
Provides:	tex(authortitle-ticomp-ms.cbx) = 2024
Provides:	tex(authoryear-comp-ms.bbx) = 2024
Provides:	tex(authoryear-comp-ms.cbx) = 2024
Provides:	tex(authoryear-ibid-ms.bbx) = 2024
Provides:	tex(authoryear-ibid-ms.cbx) = 2024
Provides:	tex(authoryear-icomp-ms.bbx) = 2024
Provides:	tex(authoryear-icomp-ms.cbx) = 2024
Provides:	tex(authoryear-ms.bbx) = 2024
Provides:	tex(authoryear-ms.cbx) = 2024
Provides:	tex(biblatex-ms.def) = 2024
Provides:	tex(biblatex-ms.sty) = 2024
Provides:	tex(blx-bibtex-ms.def) = 2024
Provides:	tex(blx-case-expl3-ms.sty) = 2024
Provides:	tex(blx-case-latex2e-ms.sty) = 2024
Provides:	tex(blx-compat-ms.def) = 2024
Provides:	tex(blx-dm-ms.def) = 2024
Provides:	tex(blx-mcite-ms.def) = 2024
Provides:	tex(blx-natbib-ms.def) = 2024
Provides:	tex(blx-unicode-ms.def) = 2024
Provides:	tex(debug-ms.bbx) = 2024
Provides:	tex(debug-ms.cbx) = 2024
Provides:	tex(draft-ms.bbx) = 2024
Provides:	tex(draft-ms.cbx) = 2024
Provides:	tex(numeric-comp-ms.bbx) = 2024
Provides:	tex(numeric-comp-ms.cbx) = 2024
Provides:	tex(numeric-ms.bbx) = 2024
Provides:	tex(numeric-ms.cbx) = 2024
Provides:	tex(numeric-verb-ms.bbx) = 2024
Provides:	tex(numeric-verb-ms.cbx) = 2024
Provides:	tex(reading-ms.bbx) = 2024
Provides:	tex(reading-ms.cbx) = 2024
Provides:	tex(standard-ms.bbx) = 2024
Provides:	tex(verbose-ibid-ms.bbx) = 2024
Provides:	tex(verbose-ibid-ms.cbx) = 2024
Provides:	tex(verbose-inote-ms.bbx) = 2024
Provides:	tex(verbose-inote-ms.cbx) = 2024
Provides:	tex(verbose-ms.bbx) = 2024
Provides:	tex(verbose-ms.cbx) = 2024
Provides:	tex(verbose-note-ms.bbx) = 2024
Provides:	tex(verbose-note-ms.cbx) = 2024
Provides:	tex(verbose-trad1-ms.bbx) = 2024
Provides:	tex(verbose-trad1-ms.cbx) = 2024
Provides:	tex(verbose-trad2-ms.bbx) = 2024
Provides:	tex(verbose-trad2-ms.cbx) = 2024
Provides:	tex(verbose-trad3-ms.bbx) = 2024
Provides:	tex(verbose-trad3-ms.cbx) = 2024
BuildArch:	noarch

%description
This package is the "multiscript" version of the BibLaTeX
package intended to solve the issues faced by those wishing to
create multiligual bibliographies. It is intended to be
backwards-compatible with the standard BibLaTeX package and
includes significantly enhanced optional functionality: Fields
in data files can have different form/language alternates in
the same entry Options to select/print a specific alternate are
generally available babel/polyglossia language switching is
done automatically based on the language associated with a
field The intention is that this version will eventually
replace standard BibLaTeX and is being released as an
independent package to allow for wider testing and feedback. It
can be installed in parallel with standard BibLaTeX and the
package name is biblatex-ms. It requires the use of the
multiscript version of biber (biber-ms).

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-ms
%{_texmfdistdir}/bibtex/bib/biblatex-ms
%{_texmfdistdir}/bibtex/bst/biblatex-ms
%{_texmfdistdir}/tex/latex/biblatex-ms

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9378 |21cr|texlive-biblatex-multiple-dm-37081.1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-multiple-dm

Summary:	Load multiple datamodels in biblatex
Name:		texlive-biblatex-multiple-dm
Version:	37081.1.0.1
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Provides:	tex-biblatex-multiple-dm = 2024
Provides:	tex(biblatex-multiple-dm.sty) = 2024
Provides:	tex(multiple-dm.bbx) = 2024
BuildArch:	noarch

%description
The package adds the possibility to biblatex to load data
models from multiple sources.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-multiple-dm/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9379 |21cr|texlive-biblatex-musuos-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24097
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/biblatex-musuos
# catalog-date 2011-09-23 15:58:32 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-biblatex-musuos
Version:	1.0
Release:	8
Summary:	A biblatex style for citations in musuos.cls
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-musuos
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-musuos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-musuos.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The style is designed for use with the musuos class, but it
should be usable with other classes, too.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-musuos/german-musuos.lbx
%{_texmfdistdir}/tex/latex/biblatex-musuos/musuos.bbx
%{_texmfdistdir}/tex/latex/biblatex-musuos/musuos.cbx
%doc %{_texmfdistdir}/doc/latex/biblatex-musuos/README
%doc %{_texmfdistdir}/doc/latex/biblatex-musuos/biblatex-musuos.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-musuos/biblatex-musuos.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-musuos/musuos-bsp.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9380 |21cr|texlive-biblatex-nature-1.3c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-nature
Version:	1.3c
Release:	1
Summary:	Biblatex support for Nature
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-nature
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-nature.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-nature.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle offers styles that allow authors to use biblatex
when preparing papers for submission to the journal Nature.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-nature
%doc %{_texmfdistdir}/doc/latex/biblatex-nature

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9381 |21cr|texlive-biblatex-nejm-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24011
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/biblatex-nejm
# catalog-date 2011-09-09 20:27:18 +0200
# catalog-license lppl1.3
# catalog-version 0.4
Name:		texlive-biblatex-nejm
Version:	0.5.0
Release:	1
Summary:	Biblatex style for the New England Journal of Medicine (NEJM)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-nejm
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-nejm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-nejm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a biblatex numeric style based on the design of the New
England Journal of Medicine (NEJM).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-nejm/nejm.bbx
%{_texmfdistdir}/tex/latex/biblatex-nejm/nejm.cbx
%doc %{_texmfdistdir}/doc/latex/biblatex-nejm/README
%doc %{_texmfdistdir}/doc/latex/biblatex-nejm/biblatex-nejm.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-nejm/biblatex-nejm.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9382 |21cr|texlive-biblatex-nottsclassic-41596-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-nottsclassic

Summary:	Citation style covering the citation and bibliography rules of the University of Nottingham
Name:		texlive-biblatex-nottsclassic
Version:	41596
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-biblatex-nottsclassic = 2024
Provides:	tex(nottsclassic.bbx) = 2024
Provides:	tex(nottsclassic.cbx) = 2024
BuildArch:	noarch

%description
This citation-style covers the citation and bibliography rules
of the University of Nottingham.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-nottsclassic/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9383 |21cr|texlive-biblatex-opcit-booktitle-48983-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-opcit-booktitle

Summary:	Use op. cit. for the booktitle of a subentry
Name:		texlive-biblatex-opcit-booktitle
Version:	48983
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(xpatch.sty)
Provides:	tex-biblatex-opcit-booktitle = 2024
Provides:	tex(biblatex-opcit-booktitle.sty) = 2024
BuildArch:	noarch

%description
The default citation styles verbose-trad1+; verbose-trad2 ;
verbose-trad3 use the op. cit. form in order to have shorter
reference when a title have been already cited. However, when
you cite two entries which share the same booktitle but not the
same title, the op. cit. mechanism does not work. This package
enables to obtain references like this: Author1, Title, in
Booktitle, Location, Publiser, Year, pages xxx Author2, Title2,
in Booktitle, op. cit, pages.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-opcit-booktitle/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9384 |21cr|texlive-biblatex-oxref-65707-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-oxref

Summary:	BibLaTeX styles inspired by the Oxford Guide to Style
Name:		texlive-biblatex-oxref
Version:	65707
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(oxalph.bbx) = 2024
Provides:	tex(oxalph.cbx) = 2024
Provides:	tex(oxalph.dbx) = 2024
Provides:	tex(oxnotes.bbx) = 2024
Provides:	tex(oxnotes.cbx) = 2024
Provides:	tex(oxnotes.dbx) = 2024
Provides:	tex(oxnotes-ibid.bbx) = 2024
Provides:	tex(oxnotes-ibid.cbx) = 2024
Provides:	tex(oxnotes-ibid.dbx) = 2024
Provides:	tex(oxnotes-inote.bbx) = 2024
Provides:	tex(oxnotes-inote.cbx) = 2024
Provides:	tex(oxnotes-inote.dbx) = 2024
Provides:	tex(oxnotes-note.bbx) = 2024
Provides:	tex(oxnotes-note.cbx) = 2024
Provides:	tex(oxnotes-note.dbx) = 2024
Provides:	tex(oxnotes-trad1.bbx) = 2024
Provides:	tex(oxnotes-trad1.cbx) = 2024
Provides:	tex(oxnotes-trad1.dbx) = 2024
Provides:	tex(oxnotes-trad2.bbx) = 2024
Provides:	tex(oxnotes-trad2.cbx) = 2024
Provides:	tex(oxnotes-trad2.dbx) = 2024
Provides:	tex(oxnotes-trad3.bbx) = 2024
Provides:	tex(oxnotes-trad3.cbx) = 2024
Provides:	tex(oxnotes-trad3.dbx) = 2024
Provides:	tex(oxnum.bbx) = 2024
Provides:	tex(oxnum.cbx) = 2024
Provides:	tex(oxnum.dbx) = 2024
Provides:	tex(oxref.bbx) = 2024
Provides:	tex(oxyear.bbx) = 2024
Provides:	tex(oxyear.cbx) = 2024
Provides:	tex(oxyear.dbx) = 2024
BuildArch:	noarch

%description
This bundle provides four BibLaTeX styles that implement (many
of) the stipulations and examples provided by the 2014 New
Hart's Rules and the 2002 Oxford Guide to Style: 'oxnotes' is a
style similar to the standard 'verbose', intended for use with
footnotes; 'oxnum' is a style similar to the standard
'numeric', intended for use with numeric in-text citations;
'oxalph' is a style similar to the standard 'alphabetic',
intended for use with alphabetic in-text citations; 'oxyear' is
a style similar to the standard 'author-year', intended for use
with parenthetical in-text citations. The bundle provides
support for a wide variety of content types, including
manuscripts, audiovisual resources, social media and legal
references.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-oxref/
%{_texmfdistdir}/tex/latex/biblatex-oxref/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9385 |21cr|texlive-biblatex-philosophy-1.9.8a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-philosophy
Version:	1.9.8a
Release:	2
Summary:	Styles for using biblatex for work in philosophy
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-philosophy
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-philosophy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-philosophy.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-philosophy.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The packages offers two styles philosophy-classic and
philosophy-modern, that facilitate the production of produce
two different kinds of bibliography, based on the authoryear
style, with options and features to manage the information
about the translation of foreign texts or their reprints.
Though the package's default settings are based on the
conventions used in Italian publications, these styles can be
used with every language recognized by babel, possibly with
some simple redefinitions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-philosophy
%doc %{_texmfdistdir}/doc/latex/biblatex-philosophy
#- source
%doc %{_texmfdistdir}/source/latex/biblatex-philosophy

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9386 |21cr|texlive-biblatex-phys-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-phys
Version:	1.1
Release:	1
Summary:	A biblatex implementation of the AIP and APS bibliography style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-phys
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-phys.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-phys.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The biblatex-phys package provides an implementation of the
bibliography styles of both the AIP and the APS for biblatex.
This implementation follows standard biblatex conventions, and
can be used simply by loading biblatex with the appropriate
option: \usepackage[style=phys]{biblatex} A demonstration
database is provided to show how to format input for the style.
Style options are provided to cover the minor formatting
variations between the AIP and APS bibliography styles.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-phys
%doc %{_texmfdistdir}/doc/latex/biblatex-phys

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9387 |21cr|texlive-biblatex-publist-1.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-publist
Version:	1.16
Release:	1
Summary:	BibLaTeX bibliography support for publication lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-publist
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-publist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-publist.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a BibLaTeX bibliography style file (*.bbx)
for publication lists. The style file draws on BibLaTeX's
authoryear style, but provides some extra features often
desired for publication lists, such as the omission of the
author's own name from author or editor data.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-publist
%doc %{_texmfdistdir}/doc/latex/biblatex-publist

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9388 |21cr|texlive-biblatex-readbbl-61549-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-readbbl

Summary:	Read a .bbl file created by biber
Name:		texlive-biblatex-readbbl
Version:	61549
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(biblatex-readbbl.sty) = 2024
BuildArch:	noarch

%description
This small package modifies the biblatex macro which reads a
.bbl file created by Biber. It is thus possible to include a
.bbl file into the main document with the filecontents
environment and send it to a publisher who does not need to run
the Biber program. However, when the bibliography changes one
has to create a new .bbl file.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-readbbl
%{_texmfdistdir}/tex/latex/biblatex-readbbl

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9389 |21cr|texlive-biblatex-realauthor-45865-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-realauthor

Summary:	Indicate the real author of a work
Name:		texlive-biblatex-realauthor
Version:	45865
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(verbose.bbx)
Provides:	tex-biblatex-realauthor = 2024
Provides:	tex(realauthor.bbx) = 2024
BuildArch:	noarch

%description
This package allows to use a new field "realauthor", which
indicates the real author of a work, when published in a
pseudepigraphic name.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-realauthor/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9390 |21cr|texlive-biblatex-sbl-63639-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-sbl

Summary:	Society of Biblical Literature (SBL) style files for BibLaTeX
Name:		texlive-biblatex-sbl
Version:	63639
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(biblatex-sbl.def) = 2024
Provides:	tex(sbl.bbx) = 2024
Provides:	tex(sbl.cbx) = 2024
Provides:	tex(sbl.dbx) = 2024
Provides:	tex(sbl-paper.sty) = 2024
BuildArch:	noarch

%description
The package provides BibLaTeX support for citations in the
format specified by the second edition of the Society of
Biblical Literature (SBL) Handbook of Style. All example notes
and bibliography entries from the handbook are supported and
shown in an example file. A style file for writing SBL student
papers is also included.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-sbl/
%{_texmfdistdir}/makeindex/biblatex-sbl/
%{_texmfdistdir}/tex/latex/biblatex-sbl/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9391 |21cr|texlive-biblatex-science-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-science
Version:	1.2
Release:	1
Summary:	Biblatex implementation of the Science bibliography style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-science
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-science.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-science.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle offers styles that allow authors to use biblatex
when preparing papers for submission to the journal Science.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-science
%doc %{_texmfdistdir}/doc/latex/biblatex-science

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9392 |21cr|texlive-biblatex-shortfields-45858-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-shortfields

Summary:	Use short forms of fields with BibLaTeX
Name:		texlive-biblatex-shortfields
Version:	45858
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(biblatex-shortfields.sty) = 2024
BuildArch:	noarch

%description
The BibLaTeX package provides shortseries and shortjournal
field, but the default styles don't use them. It also provides
a mechanism to print the equivalence between short forms of
fields and long fields (\printbiblist), but this mechanism does
not allow to mix between different type of short fields, for
example, between short forms of journal title and short forms
of series titles. This package provides a solution to these two
problems: If a shortjournal field is defined, it prints it
instead of the \journal field. If a shortseries field is
defined, it prints it instead of the \series field. It provides
a \printbibshortfields command to print a list of the sort
forms of the fields. This list also includes the claves defined
with the biblatex-claves package version 1.2 or later.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-shortfields/
%{_texmfdistdir}/tex/latex/biblatex-shortfields/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9393 |21cr|texlive-biblatex-socialscienceshuberlin-47839-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-socialscienceshuberlin

Summary:	BibLaTeX-style for the social sciences at HU Berlin
Name:		texlive-biblatex-socialscienceshuberlin
Version:	47839
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(german-socialscienceshuberlin.lbx) = 2024
Provides:	tex(socialscienceshuberlin.bbx) = 2024
Provides:	tex(socialscienceshuberlin.cbx) = 2024
BuildArch:	noarch

%description
This is a BibLaTeX style for the social sciences at the
Humboldt-Universitat zu Berlin.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-socialscienceshuberlin/
%{_texmfdistdir}/tex/latex/biblatex-socialscienceshuberlin/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9394 |21cr|texlive-biblatex-software-64030-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-software

Summary:	BibLaTeX stylefiles for software products
Name:		texlive-biblatex-software
Version:	64030
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(software.bbx) = 2024
Provides:	tex(software-biblatex.sty) = 2024
BuildArch:	noarch

%description
This package implements software entry types for BibLaTeX in
the form of a bibliography style extension. It requires the
Biber backend.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-software
%{_texmfdistdir}/tex/latex/biblatex-software

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9395 |21cr|texlive-biblatex-source-division-2.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34267
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/biblatex-source-division
# catalog-date 2014-06-17 21:28:47 +0200
# catalog-license lppl1.3
# catalog-version 2.2.0
Name:		texlive-biblatex-source-division
Version:	2.4.2
Release:	2
Summary:	References by "division" in classical sources
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-source-division
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-source-division.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-source-division.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to make reference to "division
marks" (such as book, chapter, section), in the document being
referenced, in addition to the page-based references that
BibTeX-based citations have always had. The citation is made in
the same way as the LaTeX standard, but what's inside the
square brackets may include the "division" specification, as in
\cite[<division spec.>]{<document>}.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-source-division/biblatex-source-division.sty
%doc %{_texmfdistdir}/doc/latex/biblatex-source-division/README
%doc %{_texmfdistdir}/doc/latex/biblatex-source-division/biblatex-source-division.bib
%doc %{_texmfdistdir}/doc/latex/biblatex-source-division/biblatex-source-division.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-source-division/biblatex-source-division.tex
%doc %{_texmfdistdir}/doc/latex/biblatex-source-division/latexmkrc
%doc %{_texmfdistdir}/doc/latex/biblatex-source-division/makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9396 |21cr|texlive-biblatex-spbasic-61439-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-spbasic

Summary:	A BibLaTeX style emulating Springer's old spbasic.bst
Name:		texlive-biblatex-spbasic
Version:	61439
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(biblatex-spbasic.bbx) = 2024
Provides:	tex(biblatex-spbasic.cbx) = 2024
BuildArch:	noarch

%description
This package provides a bibliography and citation style for
BibLaTeX/biber for typesetting articles for Springer's
journals. It is the same as the old BibTeX style spbasic.bst.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-spbasic
%{_texmfdistdir}/tex/latex/biblatex-spbasic

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9397 |21cr|texlive-biblatex-subseries-43330-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-subseries

Summary:	Manages subseries with biblatex
Name:		texlive-biblatex-subseries
Version:	43330
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(verbose.bbx)
Provides:	tex-biblatex-subseries = 2024
Provides:	tex(subseries.bbx) = 2024
BuildArch:	noarch

%description
Some publishers organize book series with subseries. In this
case, two numbers are associated with one volume: the number
inside the series and the number inside the subseries. That is
the case of the series Corpus Scriptorium Christianorum
Orientalium published by Peeters. This package provides new
fields to manage such system.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-subseries/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9398 |21cr|texlive-biblatex-swiss-legal-1.1.2a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32750
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/biblatex-swiss-legal
# catalog-date 2014-01-21 12:42:17 +0100
# catalog-license lppl1.3
# catalog-version 1.1.2a
Name:		texlive-biblatex-swiss-legal
Version:	1.1.2a
Release:	7
Summary:	Bibliography and citation styles following Swiss legal practice
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-swiss-legal
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-swiss-legal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-swiss-legal.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides biblatex bibliography and citation styles
for documents written in accordance with Swiss legal citation
standards. Currently, the package is usable for French and
German documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-base.bbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-base.cbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-bibliography.bbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-bibliography.cbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-de.lbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-fr.lbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-general.bbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-general.cbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-longarticle.bbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-longarticle.cbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-shortarticle.bbx
%{_texmfdistdir}/tex/latex/biblatex-swiss-legal/biblatex-swiss-legal-shortarticle.cbx
%doc %{_texmfdistdir}/doc/latex/biblatex-swiss-legal/README
%doc %{_texmfdistdir}/doc/latex/biblatex-swiss-legal/biblatex-swiss-legal.pdf
%doc %{_texmfdistdir}/doc/latex/biblatex-swiss-legal/doc_source/biblatex-swiss-legal.bib
%doc %{_texmfdistdir}/doc/latex/biblatex-swiss-legal/doc_source/biblatex-swiss-legal.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9399 |21cr|texlive-biblatex-trad-0.4a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biblatex-trad
Version:	0.4a
Release:	2
Summary:	"Traditional" BibTeX styles with BibLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/biblatex-trad
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-trad.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblatex-trad.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides implementations of the "traditional" BibTeX
styles (plain, abbrev, unsrt and alpha) with BibLaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblatex-trad
%doc %{_texmfdistdir}/doc/latex/biblatex-trad

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9400 |21cr|texlive-biblatex-true-citepages-omit-44653-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-true-citepages-omit

Summary:	Correction of some limitation of the citepages=omit option of biblatex styles
Name:		texlive-biblatex-true-citepages-omit
Version:	44653
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(xstring.sty)
Provides:	tex-biblatex-true-citepages-omit = 2024
Provides:	tex(biblatex-true-citepages-omit.sty) = 2024
BuildArch:	noarch

%description
This package deals with a limitation of the citepages=omit
option of the verbose family of biblatex citestyles. The option
works when you \cite[xx]{key}, but not when you \cite[\pno~xx,
some text]{key}. The package corrects this problem.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/biblatex-true-citepages-omit/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9401 |21cr|texlive-biblatex-unified-64975-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-unified

Summary:	BibLaTeX implementation of the unified stylesheet for linguistics journals
Name:		texlive-biblatex-unified
Version:	64975
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unified.bbx) = 2024
Provides:	tex(unified.cbx) = 2024
BuildArch:	noarch

%description
BibLaTeX-unified is an opinionated BibLaTeX implementation of
the Unified Stylesheet for Linguistics Journals

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-unified
%{_texmfdistdir}/tex/latex/biblatex-unified

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9402 |21cr|texlive-biblatex-vancouver-55339-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biblatex-vancouver

Summary:	Vancouver style for BibLaTeX
Name:		texlive-biblatex-vancouver
Version:	55339
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(vancouver.bbx) = 2024
Provides:	tex(vancouver.cbx) = 2024
BuildArch:	noarch

%description
This package provides the Vancouver reference style for
BibLaTeX. It is based on the numeric style and requires biber.

%files
%doc %{_texmfdistdir}/doc/latex/biblatex-vancouver
%{_texmfdistdir}/tex/latex/biblatex-vancouver

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9403 |21cr|texlive-biblist-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17116
# category Package
# catalog-ctan /macros/latex209/contrib/biblist
# catalog-date 2010-02-21 11:42:27 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-biblist
Version:	20190228
Release:	1
Summary:	Print a BibTeX database
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex209/contrib/biblist
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biblist.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means of listing an entire BibTeX
database, avoiding the potentially large (macro) impact
associated with \nocite{*}.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biblist/biblist.sty
%doc %{_texmfdistdir}/doc/latex/biblist/README
%doc %{_texmfdistdir}/doc/latex/biblist/biblist.bst-dist
%doc %{_texmfdistdir}/doc/latex/biblist/biblist.gde
%doc %{_texmfdistdir}/doc/latex/biblist/biblist.pdf
%doc %{_texmfdistdir}/doc/latex/biblist/biblist.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9404 |21cr|texlive-bibtexperllibs-57137-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bibtexperllibs

Summary:	BibTeX Perl Libraries
Name:		texlive-bibtexperllibs
Version:	57137
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
BuildRequires:	texlive-tlpkg
#Requires:	perl(BibTeX::Parser)
#Requires:	perl(LaTeX::ToUnicode)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-bibtexperllibs = 2024
Provides:	tex-bibtexperllibs-doc = 2024
Provides:	texlive-bibtexperllibs-doc = 2024
BuildArch:	noarch

%description
This package provides BibTeX related Perl libraries by Gerhard
Gossen, repacked by Boris Veytsman, for TeX Live and other TDS-
compliant distributions. The libraries are written in pure
Perl, so should work out of the box on any architecture. They
have been packaged here mostly for Boris Veytsman's BibTeX
suite, but can be used in any other Perl script.

%files

#------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9405 |21cr|texlive-bibtexu-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29743
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-bibtexu
Version:	20180303
Release:	2
Summary:	TeXLive bibtexu package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtexu.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtexu.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-bibtexu.bin

%description
TeXLive bibtexu package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/bibtexu/00readme.txt
%doc %{_texmfdistdir}/doc/bibtexu/HISTORY
%doc %{_texmfdistdir}/doc/bibtexu/csfile.txt
%doc %{_texmfdistdir}/doc/bibtexu/file_id.diz

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9406 |21cr|texlive-bibtopicprefix-1.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/bibtopicprefix
# catalog-date 2008-08-17 01:00:50 +0200
# catalog-license lppl
# catalog-version 1.10
Name:		texlive-bibtopicprefix
Version:	1.10
Release:	8
Summary:	Prefix references to bibliographies produced by bibtopic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibtopicprefix
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtopicprefix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtopicprefix.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtopicprefix.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package permits users to apply prefixes (fixed strings) to
references to entries in bibliographies produced by the
bibtopic package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibtopicprefix/bibtopicprefix.sty
%doc %{_texmfdistdir}/doc/latex/bibtopicprefix/README
%doc %{_texmfdistdir}/doc/latex/bibtopicprefix/bibtopicprefix.pdf
%doc %{_texmfdistdir}/doc/latex/bibtopicprefix/bibtopicprefix.xml
#- source
%doc %{_texmfdistdir}/source/latex/bibtopicprefix/bibtopicprefix.drv
%doc %{_texmfdistdir}/source/latex/bibtopicprefix/bibtopicprefix.dtx
%doc %{_texmfdistdir}/source/latex/bibtopicprefix/bibtopicprefix.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9407 |21cr|texlive-bibunits-2.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/bibunits
# catalog-date 2009-09-27 09:44:19 +0200
# catalog-license lppl
# catalog-version 2.2
Name:		texlive-bibunits
Version:	2.2
Release:	8
Summary:	Multiple bibliographies in one document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibunits
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibunits.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibunits.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibunits.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provide a mechanism to generate separate
bibliographies for different units (chapters, sections or
bibunit-environments) of a text. The package separates the
citations of each unit of text into a separate file to be
processed by BibTeX. The global bibliography section produced
by LaTeX may also appear in the document and citations can be
placed in both the local unit and the global bibliographies at
the same time. The package is compatible with koma-script and
with the babel French option frenchb.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibunits/bibunits.sty
%doc %{_texmfdistdir}/doc/latex/bibunits/README
%doc %{_texmfdistdir}/doc/latex/bibunits/bibtexall
%doc %{_texmfdistdir}/doc/latex/bibunits/bibunits.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bibunits/bibunits.dtx
%doc %{_texmfdistdir}/source/latex/bibunits/bibunits.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9408 |21cr|texlive-bidi-atbegshi-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bidi-atbegshi
Version:	0.2
Release:	1
Summary:	Bidi-aware shipout macros
Group:		Publishing
URL:		https://www.ctan.org/pkg/bidi-atbegshi 
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bidi-atbegshi.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bidi-atbegshi.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package adds some commands to the atbegshi package for proper placement of
 background material in the left and right corners of the output page, in both LTR and RTL modes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/bidi-atbegshi 
%doc %{_texmfdistdir}/doc/xelatex/bidi-atbegshi

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9409 |21cr|texlive-bidicontour-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bidicontour
Version:	0.2
Release:	1
Summary:	Bidi-aware coloured contour around text
Group:		Publishing
URL:		https://www.ctan.org/pkg/bidicontour 
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bidicontour.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bidicontour.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a re-implementation of the contour package, making it bidi-aware,
 and adding support of the xdvipdfmx (when the outline option of the package is used).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/bidicontour
%doc %{_texmfdistdir}/doc/xelatex/bidicontour

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9410 |21cr|texlive-bidihl-37795.0.1c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bidihl

Summary:	Experimental bidi-aware text highlighting
Name:		texlive-bidihl
Version:	37795.0.1c
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(color.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-bidihl = 2024
Provides:	tex(bidihl.sty) = 2024
BuildArch:	noarch

%description
Experimental bidi-aware text highlighting.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/xelatex/bidihl/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9411 |21cr|texlive-bidipagegrid-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bidipagegrid
Version:	0.2
Release:	1
Summary:	Bidi-aware page grid in background
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/xetex/latex/bidipagegrid
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bidipagegrid.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bidipagegrid.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bidipagegrid package provides all the options and 
user commands of pagegrid package; in addition, it 
provides an option for the direction of the page grid, 
namely direction (for entire document).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/bidipagegrid
%doc %{_texmfdistdir}/doc/xelatex/bidipagegrid

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9412 |21cr|texlive-bidipresentation-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bidipresentation
Version:	0.3
Release:	1
Summary:	Experimental bidi presentation
Group:		Publishing
URL:		https://www.ctan.org/pkg/bidipresentation
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bidipresentation.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bidipresentation.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A great portion of the code is borrowed from the texpower
bundle, with modifications to get things working properly in
both right to left and left to right modes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9413 |21cr|texlive-bidishadowtext-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bidishadowtext
Version:	0.1
Release:	1
Summary:	Re-implementation of the shadowtext package adding bidi support
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/xetex/latex/bidishadowtext
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bidishadowtext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bidishadowtext.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The shadowtext package allows you to have colored shadow text; 
unfortunately this package does not work well together with bidi 
package. The bidishadowtext package is a re-implementation of
shadowtext package adding bidi support.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/bidishadowtext
%doc %{_texmfdistdir}/doc/xelatex/bidishadowtext

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9414 |21cr|texlive-bigintcalc-53172-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bigintcalc

Summary:	Integer calculations on very large numbers
Name:		texlive-bigintcalc
Version:	53172
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bigintcalc.sty) = 2024
BuildArch:	noarch

%description
This package provides expandable arithmetic operations with big
integers that can exceed TeX's number limits.

%files
%doc %{_texmfdistdir}/doc/latex/bigintcalc
%{_texmfdistdir}/tex/generic/bigintcalc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9415 |21cr|texlive-bilingualpages-59643-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bilingualpages

Summary:	Typeset two columns in parallel
Name:		texlive-bilingualpages
Version:	59643
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bilingualpages.sty) = 2024
BuildArch:	noarch

%description
This is a simple wrapper for the paracol package for setting
two-column parallel text.

%files
%doc %{_texmfdistdir}/doc/latex/bilingualpages
%{_texmfdistdir}/tex/latex/bilingualpages

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9416 |21cr|texlive-binomexp-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/binomexp
# catalog-date 2007-03-05 14:17:42 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-binomexp
Version:	1.0
Release:	8
Summary:	Calculate Pascal's triangle
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/binomexp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/binomexp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/binomexp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/binomexp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package calculates and prints rows of Pascal's triangle. It
may be used: - simply to print successive rows of the triangle,
or - to print the rows inside an array or tabular.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/binomexp/binomexp.sty
%doc %{_texmfdistdir}/doc/latex/binomexp/README
%doc %{_texmfdistdir}/doc/latex/binomexp/binomexp.pdf
#- source
%doc %{_texmfdistdir}/source/latex/binomexp/binomexp.dtx
%doc %{_texmfdistdir}/source/latex/binomexp/binomexp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9417 |21cr|texlive-biolett-bst-66115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname biolett-bst

Summary:	A BibTeX style for the journal "Biology Letters"
Name:		texlive-biolett-bst
Version:	66115
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides a BibTeX style (.bst) file for the
journal "Biology Letters" published by the Royal Society. This
style was produced independently and hence has no formal
approval from the Royal Society.

%files
%doc %{_texmfdistdir}/doc/bibtex/biolett-bst/
%{_texmfdistdir}/bibtex/bst/biolett-bst/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9418 |21cr|texlive-bitelist-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25779
# category Package
# catalog-ctan /macros/generic/bitelist
# catalog-date 2012-03-29 18:26:00 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-bitelist
Version:	0.1
Release:	7
Summary:	Split list, in TeX's mouth
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/bitelist
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bitelist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bitelist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bitelist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands for "splitting" a token list at
the first occurrence of another (specified) token list. I.e.,
for given token lists s, t return b and the shortest a, such
that t = a s b. The package's mechanism differs from those of
packages providing similar features, in the following ways: -
the method uses TeX's mechanism of reading delimited macro
parameters; - the splitting macros work by pure expansion,
without assignments; - the operation is carried out in a single
macro call. A variant of the operation is provided, that
retains outer braces.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/bitelist/bitedemo.tex
%{_texmfdistdir}/tex/generic/bitelist/bitelist.sty
%doc %{_texmfdistdir}/doc/generic/bitelist/README
%doc %{_texmfdistdir}/doc/generic/bitelist/bitelist.pdf
#- source
%doc %{_texmfdistdir}/source/generic/bitelist/bitelist.tex
%doc %{_texmfdistdir}/source/generic/bitelist/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9419 |21cr|texlive-bithesis-66622-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bithesis

Summary:	Templates for the Beijing Institute of Technology
Name:		texlive-bithesis
Version:	66622
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bitart.cls) = 2024
Provides:	tex(bitbeamer.cls) = 2024
Provides:	tex(bitbook.cls) = 2024
Provides:	tex(bitgrad.cls) = 2024
Provides:	tex(bithesis.cls) = 2024
Provides:	tex(bitreport.cls) = 2024
BuildArch:	noarch

%description
This package establishes a simple and easy-to-use LaTeX
template for Beijing Institute of Technology dissertations,
including general undergraduate theses and master theses.

%files
%doc %{_texmfdistdir}/doc/latex/bithesis
%{_texmfdistdir}/tex/latex/bithesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9420 |21cr|texlive-bitpattern-20210114-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 39073
# category Package
# catalog-ctan /macros/latex/contrib/bitpattern
# catalog-date 2016-06-24 19:18:15 +0200
# catalog-license lppl
Name:		texlive-bitpattern
Version:	20210114
Release:	1
Summary:	Typeset bit pattern diagrams
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/bitpattern
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bitpattern.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/bitpattern.source.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bitpattern.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package to typeset bit pattern diagrams such as those used to
longdesc describe hardware, data format or protocols.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bitpattern
%doc %{_texmfdistdir}/source/latex/bitpattern
%doc %{_texmfdistdir}/doc/latex/bitpattern

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9421 |21cr|texlive-bitset-53837-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bitset

Summary:	Handle bit-vector datatype
Name:		texlive-bitset
Version:	53837
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-bigintcalc
Requires:	texlive-kpathsea
Provides:	tex(bitset.sty) = 2024
BuildArch:	noarch

%description
This package defines and implements the data type bit set, a
vector of bits. The size of the vector may grow dynamically.
Individual bits can be manipulated.

%files
%doc %{_texmfdistdir}/doc/latex/bitset
%{_texmfdistdir}/tex/generic/bitset

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9422 |21cr|texlive-bitter-64541-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bitter

Summary:	LaTeX support for the Bitter family of fonts
Name:		texlive-bitter
Version:	64541
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bitter.map) = 2024
Provides:	tex(bitter.sty) = 2024
Provides:	tex(bttr_6upxhe.enc) = 2024
Provides:	tex(bttr_72jdjw.enc) = 2024
Provides:	tex(bttr_azarls.enc) = 2024
Provides:	tex(bttr_b5i5mx.enc) = 2024
Provides:	tex(bttr_f2umud.enc) = 2024
Provides:	tex(bttr_gljolu.enc) = 2024
Provides:	tex(bttr_ncjtqa.enc) = 2024
Provides:	tex(bttr_ssdm5h.enc) = 2024
Provides:	tex(bttr_vzfpnj.enc) = 2024
Provides:	tex(bttr_w3wxei.enc) = 2024
Provides:	tex(bttr_x2bjkb.enc) = 2024
Provides:	tex(LY1Bttr-TLF.fd) = 2024
Provides:	tex(OT1Bttr-TLF.fd) = 2024
Provides:	tex(T1Bttr-TLF.fd) = 2024
Provides:	tex(TS1Bttr-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Bitter family of fonts, designed by Sol Matas
for Huerta Tipografica Bitter is a contemporary slab-serif
typeface for text. There are regular and bold weights and an
italic, but no bold italic.

%files
%doc %{_texmfdistdir}/doc/fonts/bitter
%{_texmfdistdir}/fonts/enc/dvips/bitter
%{_texmfdistdir}/fonts/map/dvips/bitter
%{_texmfdistdir}/fonts/tfm/huerta/bitter
%{_texmfdistdir}/fonts/truetype/huerta/bitter
%{_texmfdistdir}/fonts/type1/huerta/bitter
%{_texmfdistdir}/fonts/vf/huerta/bitter
%{_texmfdistdir}/tex/latex/bitter

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9423 |21cr|texlive-bjfuthesis-59809-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bjfuthesis

Summary:	A thesis class for Beijing Forestry University
Name:		texlive-bjfuthesis
Version:	59809
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bjfuthesis.cls) = 2024
BuildArch:	noarch

%description
This is a class file for producing dissertations and theses
according to the Beijing Forestry University (BJFU) Guidelines
for Undergraduate Theses and Dissertations. The class should
meet all current requirements and is updated whenever the
university guidelines change.

%files
%doc %{_texmfdistdir}/doc/latex/bjfuthesis
%{_texmfdistdir}/tex/latex/bjfuthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9424 |21cr|texlive-blacklettert1-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/gothic/blacklettert1
# catalog-date 2008-04-19 22:58:44 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-blacklettert1
Version:	20190228
Release:	1
Summary:	T1-encoded versions of Haralambous old German fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/gothic/blacklettert1
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blacklettert1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blacklettert1.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blacklettert1.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides virtual fonts for T1-like variants of
Yannis Haralambous's old German fonts Gothic, Schwabacher and
Fraktur (which are also available in Adobe type 1 format). The
package includes LaTeX macros to embed the fonts into the LaTeX
font selection scheme.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/blacklettert1/tfrak.tfm
%{_texmfdistdir}/fonts/tfm/public/blacklettert1/tfrakls.tfm
%{_texmfdistdir}/fonts/tfm/public/blacklettert1/tgoth.tfm
%{_texmfdistdir}/fonts/tfm/public/blacklettert1/tswab.tfm
%{_texmfdistdir}/fonts/vf/public/blacklettert1/tfrak.vf
%{_texmfdistdir}/fonts/vf/public/blacklettert1/tfrakls.vf
%{_texmfdistdir}/fonts/vf/public/blacklettert1/tgoth.vf
%{_texmfdistdir}/fonts/vf/public/blacklettert1/tswab.vf
%{_texmfdistdir}/tex/latex/blacklettert1/t1yfrak.fd
%doc %{_texmfdistdir}/doc/fonts/blacklettert1/COPYING
%doc %{_texmfdistdir}/doc/fonts/blacklettert1/INSTALL
%doc %{_texmfdistdir}/doc/fonts/blacklettert1/README
%doc %{_texmfdistdir}/doc/fonts/blacklettert1/blacklettert1.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/blacklettert1/Makefile
%doc %{_texmfdistdir}/source/fonts/blacklettert1/blacklettert1.dtx
%doc %{_texmfdistdir}/source/fonts/blacklettert1/blacklettert1.ins
%doc %{_texmfdistdir}/source/fonts/blacklettert1/cmbsy10.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/cmbx10.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/cmmi10.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/cmmib10.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/cmr10.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/cmr7.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/cmsy10.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/cmu10.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/ecbx1000.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/ecrm0700.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/ecrm1000.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/yfrak.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/ygoth.pl
%doc %{_texmfdistdir}/source/fonts/blacklettert1/yswab.pl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9425 |21cr|texlive-blopentype-65441-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname blopentype

Summary:	A basic LuaTeX OpenType handler
Name:		texlive-blopentype
Version:	65441
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(gates.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-texapi
#Requires:	tex(yax.sty)
Provides:	tex(blot-files.tex) = 2024
Provides:	tex(blot-fonts.tex) = 2024
Provides:	tex(blot-lua.tex) = 2024
Provides:	tex(blot.tex) = 2024
BuildArch:	noarch

%description
This is a basic LuaTeX OpenType handler, based on Paul
Isambert's PiTeX code. It should work with Plain TeX at least.

%files
%doc %{_texmfdistdir}/doc/luatex/blopentype
%{_texmfdistdir}/tex/luatex/blopentype

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9426 |21cr|texlive-bmstu-65897-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bmstu

Summary:	A LaTeX class for Bauman Moscow State Technical University
Name:		texlive-bmstu
Version:	65897
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bmstu-appendix.sty) = 2024
Provides:	tex(bmstu-biblio.sty) = 2024
Provides:	tex(bmstu.cls) = 2024
Provides:	tex(bmstu-defabbr.sty) = 2024
Provides:	tex(bmstu-essay.sty) = 2024
Provides:	tex(bmstu-figure.sty) = 2024
Provides:	tex(bmstu-listing.sty) = 2024
Provides:	tex(bmstu-title.sty) = 2024
Provides:	tex(bmstu-toc.sty) = 2024
BuildArch:	noarch

%description
The class defines commands and environments for creating
reports and explanatory notes in Bauman Moscow State Technical
University (Russia). Klass opredeliaet komandy i okruzheniia
dlia sozdaniia otchetov i raschetno-poiasnitel'nykh zapisok v
MGTU im. N. E. Baumana. Sgenerirovannye faily sootvetstvuiut
trebovaniiam MGTU im. N. E. Baumanai GOST 7.32-2017.
Raschetno-poiasnitel'nye zapiski k vypusknym kvalifikatsionnym
rabotam uspeshno prokhodiat proverku TestVKR (sborka 203).

%files
%doc %{_texmfdistdir}/doc/latex/bmstu
%{_texmfdistdir}/tex/latex/bmstu

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9427 |21cr|texlive-bmstu-iu8-61937-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bmstu-iu8

Summary:	A class for IU8 reports
Name:		texlive-bmstu-iu8
Version:	61937
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(01-IU8-base.sty) = 2024
Provides:	tex(02-IU8-construction.sty) = 2024
Provides:	tex(03-IU8-numbering.sty) = 2024
Provides:	tex(04-IU8-section-numbering.sty) = 2024
Provides:	tex(05-IU8-figures.sty) = 2024
Provides:	tex(06-IU8-tables.sty) = 2024
Provides:	tex(07-IU8-footnotes.sty) = 2024
Provides:	tex(08-IU8-formulas.sty) = 2024
Provides:	tex(09-IU8-cites.sty) = 2024
Provides:	tex(10-IU8-titlepage.sty) = 2024
Provides:	tex(11-IU8-performers.sty) = 2024
Provides:	tex(12-IU8-abstract.sty) = 2024
Provides:	tex(13-IU8-contents.sty) = 2024
Provides:	tex(14-IU8-terms-and-definitions.sty) = 2024
Provides:	tex(15-IU8-list-of-abbreviations.sty) = 2024
Provides:	tex(16-IU8-references.sty) = 2024
Provides:	tex(17-IU8-appendices.sty) = 2024
Provides:	tex(18-IU8-extra.sty) = 2024
Provides:	tex(19-IU8-counters.sty) = 2024
Provides:	tex(20-IU8-listing.sty) = 2024
Provides:	tex(21-IU8-math.sty) = 2024
Provides:	tex(22-IU8-algorithms.sty) = 2024
Provides:	tex(BMSTU-IU8.cls) = 2024
BuildArch:	noarch

%description
This package consists of a class file and style files for
writing reports at the IU8 department of IU faculty of BMSTU
(Bauman Moscow State Technical University). The class defines
all headings, structure elements and other things in respect of
Russian standard GOST 7.32-2017. But there are correctives to
be compatible with our local IU8 department requirements.

%files
%doc %{_texmfdistdir}/doc/latex/bmstu-iu8
%{_texmfdistdir}/tex/latex/bmstu-iu8

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9428 |21cr|texlive-bnumexpr-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bnumexpr
Version:	1.5
Release:	1
Summary:	Allows expandable computations with integers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	GNU General Public License
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bnumexpr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bnumexpr.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/bnumexpr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The LaTeX package `bnumexpr` allows expandable computations with
integers and the four infix operators `+`, `-`, `*`, `/` using the
expression syntax familiar from the `\numexpr` e-TeX parser, with
these extensions:
- arbitrarily big integers,
- floored division `//`,
- associated modulo `/:`,
- power operators `^` and `**`,
- factorial post-fix operator `!`,
- comma separated expressions,
- the space character as well as the underscore may serve
  to separate groups of digits,
- optional conversion of output to hexadecimal,
- customizability and extendibility of the syntax.
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9429 |21cr|texlive-bodeplot-65074-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bodeplot

Summary:	Draw Bode, Nyquist and Nichols plots with gnuplot or pgfplots
Name:		texlive-bodeplot
Version:	65074
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bodeplot.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package to plot Bode, Nichols, and Nyquist
diagrams. It provides added functionality over the similar
bodegraph package: New \BodeZPK and \BodeTF commands to
generate Bode plots of any transfer function given either
poles, zeros, gain, and delay, or numerator and denominator
coefficients and delay Support for unstable poles and zeros.
Support for complex poles and zeros. Support for general stable
and unstable second order transfer functions. Support for both
Gnuplot (default) and pgfplots (package option pgf). Support
for linear and asymptotic approximation of magnitude and phase
plots of any transfer function given poles, zeros, and gain.

%files
%doc %{_texmfdistdir}/doc/latex/bodeplot
%{_texmfdistdir}/tex/latex/bodeplot

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9430 |21cr|texlive-boisik-0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/boisik
# catalog-date 2009-08-23 18:29:20 +0200
# catalog-license gpl2
# catalog-version 0.5
Name:		texlive-boisik
Version:	0.5
Release:	8
Summary:	A font inspired by Baskerville design
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/boisik
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boisik.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boisik.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Boisik is a serif font (inspired by the Baskerville typeface),
written in MetaFont. It comprises roman and italic text fonts
and maths fonts. LaTeX support is offered for use with OT1, IL2
and OM* encodings.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/boisik/bskarr10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskarrows.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskbase.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskex10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskext.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskhc10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bski10-TS1.mf
%{_texmfdistdir}/fonts/source/public/boisik/bski10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskib10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskiol10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskital.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskiu10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskiub10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskletters-i.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskletters-o.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskletters-r.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskligtab-i.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskligtab-sc.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskligtab.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-T1.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-TS1.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-ar.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-bb.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-ex.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-lc.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-ma.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-mi-up.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-mi.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-ms.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-sc.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-sy.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsklist-uc.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskma10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmab10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmath.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmathma.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmathms.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmathsy.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmi10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmib10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskms10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmsb10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmsbsl10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskmssl10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskr10-T1.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskr10-TS1.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskr10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrb10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrc10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrcb10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrf10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrl10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrol10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskroman.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrsb10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrsl10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bskrw10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsksc.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsksc10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsksy10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsksyb10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsksybsl10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsksymbols.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsksyol10.mf
%{_texmfdistdir}/fonts/source/public/boisik/bsksysl10.mf
%{_texmfdistdir}/fonts/tfm/public/boisik/bskarr10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskex10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskhc10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bski10-TS1.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bski10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskib10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskiol10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskiu10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskiub10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskma10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskmab10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskmib10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskms10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskmsb10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskmsbsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskmssl10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskr10-T1.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskr10-TS1.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskr10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrb10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrc10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrcb10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrf10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrl10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrol10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrsb10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bskrw10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bsksc10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bsksy10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bsksyol10.tfm
%{_texmfdistdir}/fonts/tfm/public/boisik/bsksysl10.tfm
%{_texmfdistdir}/tex/latex/boisik/boisik.sty
%{_texmfdistdir}/tex/latex/boisik/il2bsk.fd
%{_texmfdistdir}/tex/latex/boisik/il2bskf.fd
%{_texmfdistdir}/tex/latex/boisik/lblbskm.fd
%{_texmfdistdir}/tex/latex/boisik/lblcmr.fd
%{_texmfdistdir}/tex/latex/boisik/lblenc.def
%{_texmfdistdir}/tex/latex/boisik/lbmbsk.fd
%{_texmfdistdir}/tex/latex/boisik/lbmbskms.fd
%{_texmfdistdir}/tex/latex/boisik/lbmcmr.fd
%{_texmfdistdir}/tex/latex/boisik/lbmenc.def
%{_texmfdistdir}/tex/latex/boisik/lbsbsk.fd
%{_texmfdistdir}/tex/latex/boisik/lbsbsksy.fd
%{_texmfdistdir}/tex/latex/boisik/lbscmr.fd
%{_texmfdistdir}/tex/latex/boisik/lbsenc.def
%{_texmfdistdir}/tex/latex/boisik/ot1bsk.fd
%{_texmfdistdir}/tex/latex/boisik/ot1bskf.fd
%{_texmfdistdir}/tex/latex/boisik/ts1bsk.fd
%{_texmfdistdir}/tex/latex/boisik/ubskex.fd
%doc %{_texmfdistdir}/doc/fonts/boisik/README
%doc %{_texmfdistdir}/doc/fonts/boisik/example/boisik-idiot.pdf
%doc %{_texmfdistdir}/doc/fonts/boisik/example/boisik-idiot.tex
%doc %{_texmfdistdir}/doc/fonts/boisik/example/boisik.pdf
%doc %{_texmfdistdir}/doc/fonts/boisik/example/boisik.tex
%doc %{_texmfdistdir}/doc/fonts/boisik/example/bskrlogo10.mf
%doc %{_texmfdistdir}/doc/fonts/boisik/example/table.pdf
%doc %{_texmfdistdir}/doc/fonts/boisik/example/table.tex
%doc %{_texmfdistdir}/doc/fonts/boisik/example/testfont.pdf
%doc %{_texmfdistdir}/doc/fonts/boisik/example/testfont.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9431 |21cr|texlive-boldtensors-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/boldtensors
# catalog-date 2008-08-17 01:00:50 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-boldtensors
Version:	20190228
Release:	1
Summary:	Bold latin and greek characters through simple prefix characters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/boldtensors
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boldtensors.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boldtensors.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides bold latin and greek characters within
\mathversion{normal}, by using ~ and " as prefix characters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/boldtensors/boldtensors.sty
%doc %{_texmfdistdir}/doc/latex/boldtensors/boldtensors.pdf
%doc %{_texmfdistdir}/doc/latex/boldtensors/boldtensors.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9432 |21cr|texlive-bondgraphs-36605.1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bondgraphs

Summary:	Draws bond graphs in LaTeX, using pgf/TikZ
Name:		texlive-bondgraphs
Version:	36605.1.0.1
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsfonts.sty)
#Requires:	tex(bm.sty)
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
#Requires:	tex(tikz.sty)
Provides:	tex-bondgraphs = 2024
Provides:	tex(bondgraphs.sty) = 2024
BuildArch:	noarch

%description
The package is used to draw bond graphs in LaTeX. It uses a
recent version (3.0+) of PGF and TikZ for the drawing, hence,
it is mainly a set of TikZ styles that makes the drawing of
bond graphs easier. Compared to the bondgraph package this
package relies more on TikZ styles and less on macros, to
generate the drawings. As such it can be more flexible than
his, but requires more TikZ knowledge of the user.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/bondgraphs/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9433 |21cr|texlive-bookcover-3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bookcover
Version:	3.3
Release:	1
Summary:	A class for book covers and dust jackets
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/bookcover
License:	lppl1.2
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/bookcover.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/bookcover.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/bookcover.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This class helps typesetting book covers and dust jackets.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bookcover/*
%doc %{_texmfdistdir}/doc/latex/bookcover/*
%doc %{_texmfdistdir}/source/latex/bookcover/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9434 |21cr|texlive-bookdb-37536.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bookdb

Summary:	A BibTeX style file for cataloguing a home library
Name:		texlive-bookdb
Version:	37536.0.2
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-bookdb = 2024
BuildArch:	noarch

%description
This package provides an extended book entry for use in
cataloguing a home library. The extensions include fields for
binding, category, collator, condition, copy, illustrations,
introduction, location, pages, size, value, volumes.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/bibtex/bst/bookdb/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9435 |21cr|texlive-bookhands-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23609
# category Package
# catalog-ctan /fonts/bookhands
# catalog-date 2008-01-03 17:18:54 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-bookhands
Version:	20170414
Release:	2
Summary:	A collection of book-hand fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/bookhands
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookhands.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookhands.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookhands.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a set of book-hand (MetaFont) fonts and packages
covering manuscript scripts from the 1st century until
Gutenberg and Caxton. The included hands are: Square Capitals
(1st century onwards); Roman Rustic (1st-6th centuries);
Insular Minuscule (6th cenury onwards); Carolingian Minuscule
(8th-12th centuries); Early Gothic (11th-12th centuries);
Gothic Textura Quadrata (13th-15th centuries); Gothic Textura
Prescisus vel sine pedibus (13th century onwards); Rotunda (13-
15th centuries); Humanist Minuscule (14th century onwards);
Uncial (3rd-6th centuries); Half Uncial (3rd-9th centuries);
Artificial Uncial (6th-10th centuries); and Insular Majuscule
(6th-9th centuries).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/bookhands/sqrc10.afm
%{_texmfdistdir}/fonts/afm/public/bookhands/sqrcb10.afm
%{_texmfdistdir}/fonts/map/dvips/bookhands/sqrcaps.map
%{_texmfdistdir}/fonts/source/public/bookhands/auncl10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/auncl17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/auncl7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/aunclb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/aunclb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/aunclb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/auncldig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/auncll.mf
%{_texmfdistdir}/fonts/source/public/bookhands/auncllig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/aunclpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/auncltitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/aunclu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cmin10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cmin17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cmin7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cminb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cminb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cminb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cmindig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cminl.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cminlig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cminpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cmintitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/cminu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egoth10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egoth17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egoth7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothdig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothl.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothlig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothtitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/egothu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hmin10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hmin17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hmin7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hminb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hminb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hminb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hmindig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hminl.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hminlig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hminpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hmintitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hminu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/huncl10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/huncl17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/huncl7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hunclb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hunclb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hunclb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/huncldig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/huncll.mf
%{_texmfdistdir}/fonts/source/public/bookhands/huncllig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hunclpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/huncltitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/hunclu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imaj10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imaj17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imaj7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imajb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imajb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imajb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imajdig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imajl.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imajlig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imajpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imajtitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imaju.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imin10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imin17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imin7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/iminb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/iminb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/iminb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imindig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/iminl.mf
%{_texmfdistdir}/fonts/source/public/bookhands/iminlig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/iminpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/imintitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/iminu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgoth10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgoth17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgoth7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothdig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothl.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothlig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothtitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/pgothu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtnd10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtnd17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtnd7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtndb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtndb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtndb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtnddig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtndl.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtndlig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtndpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtndtitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rtndu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rust10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rust17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rust7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rustb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rustb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rustb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rustdig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rustl.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rustlig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rustpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rusttitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/rustu.mf
%{_texmfdistdir}/fonts/source/public/bookhands/uncl10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/uncl17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/uncl7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/unclb10.mf
%{_texmfdistdir}/fonts/source/public/bookhands/unclb17.mf
%{_texmfdistdir}/fonts/source/public/bookhands/unclb7.mf
%{_texmfdistdir}/fonts/source/public/bookhands/uncldig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/uncll.mf
%{_texmfdistdir}/fonts/source/public/bookhands/uncllig.mf
%{_texmfdistdir}/fonts/source/public/bookhands/unclpunct.mf
%{_texmfdistdir}/fonts/source/public/bookhands/uncltitle.mf
%{_texmfdistdir}/fonts/source/public/bookhands/unclu.mf
%{_texmfdistdir}/fonts/tfm/public/bookhands/auncl17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/auncl7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/aunclb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/aunclb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/cmin10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/cmin17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/cmin7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/cminb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/cminb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/cminb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/egoth10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/egoth17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/egoth7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/egothb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/egothb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/egothb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hmin10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hmin17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hmin7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hminb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hminb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hminb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/huncl10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/huncl17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/huncl7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hunclb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hunclb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/hunclb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imaj10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imaj17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imaj7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imajb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imajb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imajb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imin10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imin17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/imin7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/iminb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/iminb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/iminb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/pgoth10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/pgoth17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/pgoth7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/pgothb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/pgothb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rtnd10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rtnd17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rtnd7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rtndb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rtndb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rtndb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rust10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rust17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rust7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rustb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rustb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/rustb7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/sqrc10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/sqrcb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/uncl10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/uncl17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/uncl7.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/unclb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/unclb17.tfm
%{_texmfdistdir}/fonts/tfm/public/bookhands/unclb7.tfm
%{_texmfdistdir}/fonts/type1/public/bookhands/sqrc10.pfb
%{_texmfdistdir}/fonts/type1/public/bookhands/sqrcb10.pfb
%{_texmfdistdir}/tex/latex/bookhands/allcmin.sty
%{_texmfdistdir}/tex/latex/bookhands/allegoth.sty
%{_texmfdistdir}/tex/latex/bookhands/allhmin.sty
%{_texmfdistdir}/tex/latex/bookhands/allhuncl.sty
%{_texmfdistdir}/tex/latex/bookhands/allimaj.sty
%{_texmfdistdir}/tex/latex/bookhands/allimin.sty
%{_texmfdistdir}/tex/latex/bookhands/allpgoth.sty
%{_texmfdistdir}/tex/latex/bookhands/allrtnd.sty
%{_texmfdistdir}/tex/latex/bookhands/allrust.sty
%{_texmfdistdir}/tex/latex/bookhands/allsqrc.sty
%{_texmfdistdir}/tex/latex/bookhands/alluncl.sty
%{_texmfdistdir}/tex/latex/bookhands/carolmin.sty
%{_texmfdistdir}/tex/latex/bookhands/egothic.sty
%{_texmfdistdir}/tex/latex/bookhands/humanist.sty
%{_texmfdistdir}/tex/latex/bookhands/huncial.sty
%{_texmfdistdir}/tex/latex/bookhands/inslrmaj.sty
%{_texmfdistdir}/tex/latex/bookhands/inslrmin.sty
%{_texmfdistdir}/tex/latex/bookhands/ot1auncl.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1cmin.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1egoth.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1hmin.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1huncl.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1imaj.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1imin.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1pgoth.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1rtnd.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1rust.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1sqrc.fd
%{_texmfdistdir}/tex/latex/bookhands/ot1uncl.fd
%{_texmfdistdir}/tex/latex/bookhands/pgothic.sty
%{_texmfdistdir}/tex/latex/bookhands/rotunda.sty
%{_texmfdistdir}/tex/latex/bookhands/rustic.sty
%{_texmfdistdir}/tex/latex/bookhands/sqrcaps.sty
%{_texmfdistdir}/tex/latex/bookhands/t1auncl.fd
%{_texmfdistdir}/tex/latex/bookhands/t1cmin.fd
%{_texmfdistdir}/tex/latex/bookhands/t1egoth.fd
%{_texmfdistdir}/tex/latex/bookhands/t1hmin.fd
%{_texmfdistdir}/tex/latex/bookhands/t1huncl.fd
%{_texmfdistdir}/tex/latex/bookhands/t1imaj.fd
%{_texmfdistdir}/tex/latex/bookhands/t1imin.fd
%{_texmfdistdir}/tex/latex/bookhands/t1pgoth.fd
%{_texmfdistdir}/tex/latex/bookhands/t1rtnd.fd
%{_texmfdistdir}/tex/latex/bookhands/t1rust.fd
%{_texmfdistdir}/tex/latex/bookhands/t1sqrc.fd
%{_texmfdistdir}/tex/latex/bookhands/t1uncl.fd
%{_texmfdistdir}/tex/latex/bookhands/uncial.sty
%doc %{_texmfdistdir}/doc/fonts/bookhands/README.PRW
%doc %{_texmfdistdir}/doc/fonts/bookhands/allsqrcaps.pdf
%doc %{_texmfdistdir}/doc/fonts/bookhands/auncial-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/auncial-tryfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/auncial-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/auncial/allfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/auncial/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/bsamples.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/bsamples.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/carolmin-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/carolmin-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/carolmin/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/egothic-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/egothic-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/egothic/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/humanist-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/humanist-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/humanist/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/huncial-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/huncial-tryfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/huncial-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/huncial/allfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/huncial/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/inslrmaj-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/inslrmaj-tryfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/inslrmaj-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/inslrmaj/allfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/inslrmaj/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/inslrmin-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/inslrmin-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/inslrmin/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/pgothic-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/pgothic-tryfont.pdf
%doc %{_texmfdistdir}/doc/fonts/bookhands/pgothic-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/pgothic/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/rotunda-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/rotunda-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/rotunda/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/rustic-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/rustic-tryfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/rustic-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/rustic/allfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/rustic/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/sqrcaps-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/sqrcaps.pdf
%doc %{_texmfdistdir}/doc/fonts/bookhands/sqrcaps/allsqrcaps.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/tgothic/README
%doc %{_texmfdistdir}/doc/fonts/bookhands/tgothic/allfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/tgothic/tgothic.dtx
%doc %{_texmfdistdir}/doc/fonts/bookhands/tgothic/tgothic.ins
%doc %{_texmfdistdir}/doc/fonts/bookhands/tgothic/tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/trysqrcaps.pdf
%doc %{_texmfdistdir}/doc/fonts/bookhands/trysqrcaps.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/uncial-README
%doc %{_texmfdistdir}/doc/fonts/bookhands/uncial-tryfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/uncial-tryfont.tex
%doc %{_texmfdistdir}/doc/fonts/bookhands/uncial/allfont.ps.gz
%doc %{_texmfdistdir}/doc/fonts/bookhands/uncial/allfont.tex
#- source
%doc %{_texmfdistdir}/source/fonts/bookhands/auncial.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/auncial.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/carolmin.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/carolmin.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/egothic.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/egothic.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/humanist.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/humanist.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/huncial.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/huncial.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/inslrmaj.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/inslrmaj.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/inslrmin.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/inslrmin.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/pgothic.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/pgothic.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/rotunda.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/rotunda.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/rustic.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/rustic.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/sqrcaps.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/sqrcaps.ins
%doc %{_texmfdistdir}/source/fonts/bookhands/uncial.dtx
%doc %{_texmfdistdir}/source/fonts/bookhands/uncial.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9436 |21cr|texlive-book-of-common-prayer-62240-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname book-of-common-prayer

Summary:	Typeset in the style of "Book of Common Prayer"
Name:		texlive-book-of-common-prayer
Version:	62240
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(book-of-common-prayer.sty) = 2024
BuildArch:	noarch

%description
This a package for the typesetting of liturgical documents in
the style of the 1979 "Book of Common Prayer". It provides
macros for common liturgical situations (e.g. versicle and
response, longer prayers, etc.). This package is designed to
work with the Sabon font, but it is not necessary to run the
macros.

%files
%doc %{_texmfdistdir}/doc/latex/book-of-common-prayer
%{_texmfdistdir}/tex/latex/book-of-common-prayer

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9437 |21cr|texlive-bookshelf-55475-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bookshelf

Summary:	Create a nice image from a BibTeX file
Name:		texlive-bookshelf
Version:	55475
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bookshelf.cls) = 2024
BuildArch:	noarch

%description
This package turns a BibTeX bibliography file into a
randomly-coloured, randomly-sized shelf of books, with the
title and author in a randomly-chosen typeface.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/bibtex/bst/bookshelf
%{_texmfdistdir}/scripts/bookshelf
%{_texmfdistdir}/tex/latex/bookshelf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9438 |21cr|texlive-boondox-1.02d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-boondox
Version:	1.02d
Release:	2
Summary:	Mathematical alphabets derived from the STIX fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/boondox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boondox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boondox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains a number of PostScript fonts derived from
the STIX OpenType fonts, that may be used in maths mode in
regular and bold weights for calligraphic, fraktur and double-
struck alphabets. Virtual fonts with metrics suitable for maths
mode are provided, as are LaTeX support files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/boondox
%{_texmfdistdir}/fonts/tfm/public/boondox
%{_texmfdistdir}/fonts/type1/public/boondox
%{_texmfdistdir}/fonts/vf/public/boondox
%{_texmfdistdir}/tex/latex/boondox
%doc %{_texmfdistdir}/doc/fonts/boondox

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9439 |21cr|texlive-borceux-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21047
# category Package
# catalog-ctan /macros/generic/diagrams/borceux
# catalog-date 2009-01-02 20:30:08 +0100
# catalog-license noinfo
# catalog-version 3.1
Name:		texlive-borceux
Version:	20190228
Release:	1
Summary:	Diagram macros by Francois Borceux
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/diagrams/borceux
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/borceux.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/borceux.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The macros support the construction of diagrams, such as those
that appear in category theory texts. The user gives the list
of vertices and arrows to be included, just as when composing a
matrix, and the program takes care of computing the dimensions
of the arrows and realizing the pagesetting. All the user has
to do about the arrows is to specify their type (monomorphism,
pair of adjoint arrows, etc.) and their direction (north,
south-east, etc.); 12 types and 32 directions are available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/borceux/Diagram
%{_texmfdistdir}/tex/generic/borceux/MaxiDiagram
%{_texmfdistdir}/tex/generic/borceux/MicroDiagram
%{_texmfdistdir}/tex/generic/borceux/MiniDiagram
%{_texmfdistdir}/tex/generic/borceux/MultipleArrows
%doc %{_texmfdistdir}/doc/generic/borceux/Diagram_Mode_d_Emploi
%doc %{_texmfdistdir}/doc/generic/borceux/Diagram_Read_Me
%doc %{_texmfdistdir}/doc/generic/borceux/README
%doc %{_texmfdistdir}/doc/generic/borceux/compatibility/OldDiagram
%doc %{_texmfdistdir}/doc/generic/borceux/compatibility/OldMaxiDiagram
%doc %{_texmfdistdir}/doc/generic/borceux/compatibility/OldMicroDiagram
%doc %{_texmfdistdir}/doc/generic/borceux/compatibility/OldMiniDiagram
%doc %{_texmfdistdir}/doc/generic/borceux/compatibility/OldMultipleArrows

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9440 |21cr|texlive-bosisio-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16989
# category Package
# catalog-ctan /macros/latex/contrib/bosisio
# catalog-date 2010-02-10 21:47:34 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-bosisio
Version:	20190228
Release:	1
Summary:	A collection of packages by Francesco Bosisio
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bosisio
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bosisio.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bosisio.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bosisio.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of packages containing: accenti dblfont; envmath;
evenpage; graphfig; mathcmd; quotes; and sobolev.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bosisio/accenti.sty
%{_texmfdistdir}/tex/latex/bosisio/dblfont.sty
%{_texmfdistdir}/tex/latex/bosisio/envmath.sty
%{_texmfdistdir}/tex/latex/bosisio/evenpage.sty
%{_texmfdistdir}/tex/latex/bosisio/graphfig.sty
%{_texmfdistdir}/tex/latex/bosisio/mathcmd.sty
%{_texmfdistdir}/tex/latex/bosisio/quotes.sty
%{_texmfdistdir}/tex/latex/bosisio/sobolev.sty
%doc %{_texmfdistdir}/doc/latex/bosisio/README
%doc %{_texmfdistdir}/doc/latex/bosisio/accenti.html
%doc %{_texmfdistdir}/doc/latex/bosisio/accenti.pdf
%doc %{_texmfdistdir}/doc/latex/bosisio/dblfont.html
%doc %{_texmfdistdir}/doc/latex/bosisio/dblfont.pdf
%doc %{_texmfdistdir}/doc/latex/bosisio/envmath.html
%doc %{_texmfdistdir}/doc/latex/bosisio/envmath.pdf
%doc %{_texmfdistdir}/doc/latex/bosisio/evenpage.html
%doc %{_texmfdistdir}/doc/latex/bosisio/evenpage.pdf
%doc %{_texmfdistdir}/doc/latex/bosisio/graphfig.html
%doc %{_texmfdistdir}/doc/latex/bosisio/graphfig.pdf
%doc %{_texmfdistdir}/doc/latex/bosisio/index.html
%doc %{_texmfdistdir}/doc/latex/bosisio/makedoc
%doc %{_texmfdistdir}/doc/latex/bosisio/mathcmd.html
%doc %{_texmfdistdir}/doc/latex/bosisio/mathcmd.pdf
%doc %{_texmfdistdir}/doc/latex/bosisio/quotes.html
%doc %{_texmfdistdir}/doc/latex/bosisio/quotes.pdf
%doc %{_texmfdistdir}/doc/latex/bosisio/sobolev.html
%doc %{_texmfdistdir}/doc/latex/bosisio/sobolev.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bosisio/accenti.drv
%doc %{_texmfdistdir}/source/latex/bosisio/accenti.dtx
%doc %{_texmfdistdir}/source/latex/bosisio/dblfont.drv
%doc %{_texmfdistdir}/source/latex/bosisio/dblfont.dtx
%doc %{_texmfdistdir}/source/latex/bosisio/envmath.drv
%doc %{_texmfdistdir}/source/latex/bosisio/envmath.dtx
%doc %{_texmfdistdir}/source/latex/bosisio/evenpage.drv
%doc %{_texmfdistdir}/source/latex/bosisio/evenpage.dtx
%doc %{_texmfdistdir}/source/latex/bosisio/graphfig.drv
%doc %{_texmfdistdir}/source/latex/bosisio/graphfig.dtx
%doc %{_texmfdistdir}/source/latex/bosisio/mathcmd.drv
%doc %{_texmfdistdir}/source/latex/bosisio/mathcmd.dtx
%doc %{_texmfdistdir}/source/latex/bosisio/quotes.drv
%doc %{_texmfdistdir}/source/latex/bosisio/quotes.dtx
%doc %{_texmfdistdir}/source/latex/bosisio/sobolev.drv
%doc %{_texmfdistdir}/source/latex/bosisio/sobolev.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9441 |21cr|texlive-braille-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20655
# category Package
# catalog-ctan /macros/latex/contrib/braille
# catalog-date 2010-02-20 15:53:07 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-braille
Version:	20190228
Release:	1
Summary:	Support for braille
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/braille
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/braille.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/braille.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows the user to produce Braille documents on
paper for the blind without knowing Braille (which can take
years to learn). Python scripts grade1.py and grade2.py convert
ordinary text to grade 1 and 2 braille tags; then, the LaTeX
package braille.sty takes the tags and prints out corresponding
braille symbols.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/braille/braille.sty
%doc %{_texmfdistdir}/doc/latex/braille/README
%doc %{_texmfdistdir}/doc/latex/braille/braille.html
%doc %{_texmfdistdir}/doc/latex/braille/braillegif1.gif
%doc %{_texmfdistdir}/doc/latex/braille/braillegif2.gif
%doc %{_texmfdistdir}/doc/latex/braille/grade1.py
%doc %{_texmfdistdir}/doc/latex/braille/grade2.py
%doc %{_texmfdistdir}/doc/latex/braille/summary.pdf
%doc %{_texmfdistdir}/doc/latex/braille/summary.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9442 |21cr|texlive-brandeis-problemset-0.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: texlive-brandeis-problemset
Version: 0.5.5
Release:1
Summary: Document class for COSI Problem sets at Brandeis University
Group: Publishing
URL: https://ctan.org/tex-archive/macros/latex/contrib/brandeis-problemset
License: LPPL1
Source0: http://mirrors.ctan.org/systems/texlive/tlnet/archive/brandeis-problemset.tar.xz
Source1: http://mirrors.ctan.org/systems/texlive/tlnet/archive/brandeis-problemset.doc.tar.xz
BuildArch: noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
 
%description
Brandeis University's computer science ("COSI") courses often
assign "problem sets" which require fairly rigorous formatting.
This document class, which extends article, provides a simple
way to typeset these problem sets in LaTeX. Although the class
is compatible with all LaTeX flavors, XeLaTeX or LuaLaTeX are
recommended for fontspec support.

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9443 |21cr|texlive-brandeis-thesis-59832-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname brandeis-thesis

Summary:	A class for Brandeis University M.A. theses
Name:		texlive-brandeis-thesis
Version:	59832
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(brandeis-thesis.cls) = 2024
BuildArch:	noarch

%description
brandeis-thesis.cls provides the structures and formatting
information for an M.A. thesis for the Brandeis University
Graduate School of Arts and Sciences.

%files
%doc %{_texmfdistdir}/doc/latex/brandeis-thesis
%{_texmfdistdir}/tex/latex/brandeis-thesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9444 |21cr|texlive-breakcites-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21014
# category Package
# catalog-ctan /macros/latex/contrib/breakcites
# catalog-date 2010-12-11 10:17:50 +0100
# catalog-license noinfo
# catalog-version undef
Name:		texlive-breakcites
Version:	20190228
Release:	1
Summary:	Ensure that multiple citations may break at line end
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/breakcites
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/breakcites.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/breakcites.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Makes a very minor change to the operation of the \cite
command. Note that the change is not necessary in unmodified
LaTeX; however, there remain packages that restore the
undesirable behaviour of the command as provided in LaTeX 2.09.
(Note that neither cite nor natbib make this mistake.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/breakcites/breakcites.sty
%doc %{_texmfdistdir}/doc/latex/breakcites/README
%doc %{_texmfdistdir}/doc/latex/breakcites/breakcites.pdf
%doc %{_texmfdistdir}/doc/latex/breakcites/breakcites.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9445 |21cr|texlive-bredzenie-44371-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bredzenie

Summary:	A Polish version of "lorem ipsum..." in the form of a LaTeX package
Name:		texlive-bredzenie
Version:	44371
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bredzenie.sty) = 2024
BuildArch:	noarch

%description
This is a polish version of the classic pseudo-Latin "lorem
ipsum dolor sit amet...". It provides access to several
paragraphs of pseudo-Polish generated with Hidden Markov Models
and Recurrent Neural Networks trained on a corpus of Polish.

%files
%doc %{_texmfdistdir}/doc/latex/bredzenie/
%{_texmfdistdir}/tex/latex/bredzenie/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9446 |21cr|texlive-br-lex-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-br-lex
Version:	1.0
Release:	1
Summary:	A Class for Typesetting Brazilian legal texts
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/br-lex
License:	The LATEX Project Public License 1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/br-lex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/br-lex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class implements rules to typeset Brazilian legal texts.
Its purpose is to be an easy-to-use implementation for the
end-user.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9447 |21cr|texlive-bropd-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28222
# category Package
# catalog-ctan /macros/latex/contrib/bropd
# catalog-date 2012-11-09 11:55:25 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-bropd
Version:	1.2
Release:	2
Summary:	Simplified brackets and differentials in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bropd
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bropd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bropd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bropd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package simplifies the process of writing differential
operators and brackets in LaTeX. The commands facilitate the
easy manipulation of equations involving brackets and allow
partial differentials to be expressed in an alternate form.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bropd/bropd.sty
%doc %{_texmfdistdir}/doc/latex/bropd/README
%doc %{_texmfdistdir}/doc/latex/bropd/bropd.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bropd/bropd.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9448 |21cr|texlive-brushscr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28363
# category Package
# catalog-ctan /fonts/brushscr
# catalog-date 2012-10-18 12:56:21 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-brushscr
Version:	20190228
Release:	1
Summary:	A handwriting script font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/brushscr
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/brushscr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/brushscr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The BrushScript font simulates hand-written characters; it is
distributed in Adobe Type 1 format (but is available in italic
shape only). The package includes the files needed by LaTeX in
order to use that font. The file AAA_readme.tex fully describes
the package and sample.tex illustrates its use.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/brushscr/config.pbsi
%{_texmfdistdir}/fonts/afm/public/brushscr/BrushScriptX-Italic.afm
%{_texmfdistdir}/fonts/map/dvips/brushscr/pbsi.map
%{_texmfdistdir}/fonts/tfm/public/brushscr/pbsi.tfm
%{_texmfdistdir}/fonts/tfm/public/brushscr/pbsi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/brushscr/pbsi8t.tfm
%{_texmfdistdir}/fonts/type1/public/brushscr/BrushScriptX-Italic.pfa
%{_texmfdistdir}/fonts/vf/public/brushscr/pbsi8t.vf
%{_texmfdistdir}/tex/latex/brushscr/pbsi.sty
%{_texmfdistdir}/tex/latex/brushscr/t1pbsi.fd
%doc %{_texmfdistdir}/doc/fonts/brushscr/AAA_readme.tex
%doc %{_texmfdistdir}/doc/fonts/brushscr/Makefile
%doc %{_texmfdistdir}/doc/fonts/brushscr/README
%doc %{_texmfdistdir}/doc/fonts/brushscr/example.tex
%doc %{_texmfdistdir}/doc/fonts/brushscr/generate.tex
%doc %{_texmfdistdir}/doc/fonts/brushscr/kern.txt
%doc %{_texmfdistdir}/doc/fonts/brushscr/sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9449 |21cr|texlive-bubblesort-56070-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bubblesort

Summary:	Bubble sorts a list
Name:		texlive-bubblesort
Version:	56070
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bubblesort.sty) = 2024
BuildArch:	noarch

%description
This package sorts a list of TeX items {item 1}...{item k} in
"increasing" order where "increasing" is determined by a
comparator macro. By default it sorts real numbers with the
usual meaning of "increasing" but some other examples are
discussed in the documentation. A second macro is included
which sorts one list and applies the same permutation to a
second list.

%files
%doc %{_texmfdistdir}/doc/latex/bubblesort
%{_texmfdistdir}/tex/latex/bubblesort

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9450 |21cr|texlive-buctthesis-64004-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname buctthesis

Summary:	Beijing University of Chemical Technology Thesis Template
Name:		texlive-buctthesis
Version:	64004
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(buctcover.cls) = 2024
Provides:	tex(buctthesis.cls) = 2024
BuildArch:	noarch

%description
This package provides a LaTeX class and template for Beijing
University of Chemical Technology, supporting bachelor, master,
and doctor theses.

%files
%doc %{_texmfdistdir}/doc/xelatex/buctthesis
%{_texmfdistdir}/tex/xelatex/buctthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9451 |21cr|texlive-bundledoc-3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bundledoc
Version:	3.3
Release:	3
Summary:	Bundle together all the files needed to build a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/bundledoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bundledoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bundledoc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-bundledoc.bin = %{EVRD}

%description
The bundledoc package is a post-processor for the snapshot
package that bundles together all the classes, packages and
files needed to build a given LaTeX document. It reads the .dep
file that snapshot produces, finds each of the files mentioned
therein, and archives them into a single .tar.gz (or .zip, or
whatever) file, suitable for moving across systems,
transmitting to a colleague, etc. A script, arlatex, provides
an alternative "archiving" mechanism, creating a single LaTeX
file that contains all of the ancillary files of a LaTeX
document, together with the document itself, using the
filecontents* environment.

#-----------------------------------------------------------------------
%files
%{_bindir}/arlatex
%{_bindir}/bundledoc
%{_texmfdistdir}/scripts/bundledoc
%{_texmfdistdir}/tex/latex/bundledoc
%doc %{_mandir}/man1/arlatex.1*
%doc %{_texmfdistdir}/doc/man/man1/arlatex.man1.pdf
%doc %{_mandir}/man1/bundledoc.1*
%doc %{_texmfdistdir}/doc/man/man1/bundledoc.man1.pdf
%doc %{_texmfdistdir}/doc/support/bundledoc/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/bundledoc/arlatex arlatex
    ln -sf %{_texmfdistdir}/scripts/bundledoc/bundledoc bundledoc
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9452 |21cr|texlive-businesscard-qrcode-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-businesscard-qrcode
Version:	1.2
Release:	1
Summary:	Business cards with QR-Code
Group:		Publishing
URL:		https://www.ctan.org/pkg/businesscard-qrcode
License:	GNU Lesser General Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/businesscard-qrcode.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/businesscard-qrcode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
What happens when you give your visiting card to someone?
Either they manually type the text into their computer or
mobile phone, or it will end up in a box and be forgotten.
Nowadays data is required electronically, not on paper. Here is
the solution: A visiting card with QR-Code that contains a full
vcard so that it can be scanned with an app on the mobile phone
and thereby automatically imported into the electronic
contacts. This also works well when you are offline and
bluetooth transfer fails. So here is the highly configurable
business card or visiting card with full vcard as QR-Code,
ready to send to online printers. You can specify the exact
size of the paper and the content within the paper, inluding
generation of crop marks. The package depends on the following
other LaTeX packages: calc, crop, DejaVuSans, etoolbox,
fontawesome, fontenc, geometry, kvoptions, marvosym, qrcode,
varwidth, and wrapfig. The package needs XeLaTeX for working
properly.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9453 |21cr|texlive-bussproofs-extra-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bussproofs-extra
Version:	0.4
Release:	2
Summary:	Additional functionality for bussproofs.sty
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/bussproofs-extra
License:	LPPL1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/bussproofs-extra.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/bussproofs-extra.doc.tar.xz
Source2:    https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/bussproofs-extra.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides additional functionality for bussproofs.sty; specifically, it allows for typesetting of entire (sub)deductions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bussproofs-extra
%{_texmfdistdir}/source/latex/bussproofs-extra
%doc %{_texmfdistdir}/doc/latex/bussproofs-extra

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9454 |21cr|texlive-bxghost-66147-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bxghost

Summary:	Ghost insertion for proper xkanjiskip
Name:		texlive-bxghost
Version:	66147
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bxghost-lib.sty) = 2024
Provides:	tex(bxghost.sty) = 2024
BuildArch:	noarch

%description
The package provides two commands to help authors for documents
in Japanese to insert proper xkanjiskips. It supports LuaTeX,
XeTeX, pTeX, upTeX, and ApTeX (pTeX-ng).

%files
%doc %{_texmfdistdir}/doc/latex/bxghost
%{_texmfdistdir}/tex/latex/bxghost

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9455 |21cr|texlive-bxjaholiday-60636-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bxjaholiday

Summary:	Support for Japanese holidays
Name:		texlive-bxjaholiday
Version:	60636
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bxjaholiday.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides a command to convert dates to names
of Japanese holidays. Another command, converting dates to the
day of the week in Japanese, is available as a free gift.
Further (lower-level) APIs are provided for expl3. The package
supports pdfTeX, XeTeX, LuaTeX, pTeX, and upTeX.

%files
%doc %{_texmfdistdir}/doc/latex/bxjaholiday
%{_texmfdistdir}/tex/latex/bxjaholiday

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9456 |21cr|texlive-bxjalipsum-66013-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bxjalipsum

Summary:	Dummy text in Japanese
Name:		texlive-bxjalipsum
Version:	66013
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bxjalipsum.sty) = 2024
BuildArch:	noarch

%description
This package enables users to print some Japanese text that can
be used as dummy text. It is a Japanese counterpart of the
lipsum package. Since there is no well-known nonsense text like
Lipsum in the Japanese language, the package uses some real
text in public domain.

%files
%doc %{_texmfdistdir}/doc/latex/bxjalipsum/
%{_texmfdistdir}/tex/latex/bxjalipsum/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9457 |21cr|texlive-bxjaprnind-59641-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bxjaprnind

Summary:	Adjust the position of parentheses at paragraph head
Name:		texlive-bxjaprnind
Version:	59641
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bxjaprnind.sty) = 2024
BuildArch:	noarch

%description
In Japanese typesetting, opening parentheses placed at the
beginning of paragraphs or lines are treated specially; for
example, while the paragraph indent before normal kanji
characters is 1em, the indent before parentheses can be 0.5em,
1em or 1.5em deoending on the local rule in effect.

%files
%doc %{_texmfdistdir}/doc/latex/bxjaprnind/
%{_texmfdistdir}/tex/latex/bxjaprnind/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9458 |21cr|texlive-bxjatoucs-52509-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bxjatoucs

Summary:	Convert Japanese character code to Unicode
Name:		texlive-bxjatoucs
Version:	52509
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bxjatoucs.sty) = 2024
BuildArch:	noarch

%description
This package is meant for macro/package developers: It provides
function-like (fully-expandable) macros that convert a
character code value in one of several Japanese encodings to a
Unicode value. Supported source encodings are: ISO-2022-JP
(jis), EUC-JP (euc), Shift_JIS (sjis), and the Adobe-Japan1
glyph set.

%files
%doc %{_texmfdistdir}/doc/latex/bxjatoucs
%{_texmfdistdir}/fonts/tfm/public/bxjatoucs
%{_texmfdistdir}/tex/latex/bxjatoucs

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9459 |21cr|texlive-bxorigcapt-64072-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bxorigcapt

Summary:	To retain the original caption names when using Babel
Name:		texlive-bxorigcapt
Version:	64072
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bxorigcapt.sty) = 2024
BuildArch:	noarch

%description
This package forces the caption names (`\chaptername`,
`\today`, etc) declared by the document class in use to be used
as the caption names for a specific language introduced by the
Babel package.

%files
%doc %{_texmfdistdir}/doc/latex/bxorigcapt/
%{_texmfdistdir}/tex/latex/bxorigcapt/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9460 |21cr|texlive-bxpapersize-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxpapersize
Version:	0.5
Release:	1
Summary:	Synchronize output paper size with layout paper size
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/bxpapersize
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bxpapersize.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/bxpapersize.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
As is well known, in LATEX processing layout paper size 
specified by document class options is not automatically applied to output paper size. 
This package enables LATEX authors to synchronize both kinds of paper sizes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9461 |21cr|texlive-bxwareki-51286-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bxwareki

Summary:	Convert dates from Gregorian to Japanese calender
Name:		texlive-bxwareki
Version:	51286
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bxwareki2019.def) = 2024
Provides:	tex(bxwareki-cd.def) = 2024
Provides:	tex(bxwareki.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides commands to convert from the
Gregorian calendar (e. g. 2018/8/28) to the Japanese rendering
of the Japanese calendar (e. g. Heisei 30 nen 8 gatsu 28 nichi;
actually with kanji characters). You can choose whether the
numbers are written in Western numerals or kanji numerals. Note
that the package only deals with dates in the year 1873 or
later, where the Japanese calendar is really a Gregorian
calendar with a different notation of years.

%files
%doc %{_texmfdistdir}/doc/latex/bxwareki
%{_texmfdistdir}/tex/latex/bxwareki

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9462 |21cr|texlive-byo-twemojis-58917-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname byo-twemojis

Summary:	"Build Your Own Twemojis" with TikZ
Name:		texlive-byo-twemojis
Version:	58917
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(byo-twemojis.sty) = 2024
BuildArch:	noarch

%description
This package provides the means to create your own emojis (the
simple, round, and mostly yellow ones) from elements of
existing emojis. The provided command creates a TikZ picture
from the stated elements with multiple possibilities to modify
the result in color and position.

%files
%doc %{_texmfdistdir}/doc/latex/byo-twemojis
%{_texmfdistdir}/tex/latex/byo-twemojis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9463 |21cr|texlive-byrne-61943-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname byrne

Summary:	This package provides a set of tools to typeset geometric proofs in the style of Oliver Byrne's 1847 ed. of Euclid's "Elements"
Name:		texlive-byrne
Version:	61943
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(luamplib.sty)
Provides:	tex(byrne.sty) = 2024
BuildArch:	noarch

%description
This package is a LaTeX adaptation of a set of tools developed
for ConTeXt reproduction of Oliver Byrne's 1847 edition of the
first six books of Euclid's "Elements";
(https://github.com/jemmybutton/byrne-euclid). It consists of a
MetaPost library, responsible for all the drawing and a set of
LaTeX macros to conveniently use them. This package works with
LuaLaTeX and relies on luamplib v2.23.0 or higher.

%files
%doc %{_texmfdistdir}/doc/metapost/byrne
%{_texmfdistdir}/metapost/byrne
%{_texmfdistdir}/tex/latex/byrne

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9464 |21cr|texlive-cabin-65358-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cabin

Summary:	A humanist Sans Serif font, with LaTeX support
Name:		texlive-cabin
Version:	65358
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex-cabin = 2024
Provides:	tex(cabin.map) = 2024
Provides:	tex(cabin.sty) = 2024
Provides:	tex(cbn_5xld5w.enc) = 2024
Provides:	tex(cbn_fp7bit.enc) = 2024
Provides:	tex(cbn_hau3x5.enc) = 2024
Provides:	tex(cbn_i3ioen.enc) = 2024
Provides:	tex(cbn_jjp77t.enc) = 2024
Provides:	tex(cbn_meva6t.enc) = 2024
Provides:	tex(cbn_taosrr.enc) = 2024
Provides:	tex(cbn_vqopxp.enc) = 2024
Provides:	tex(cbn_vqpkf5.enc) = 2024
Provides:	tex(cbn_yhiurv.enc) = 2024
Provides:	tex(cbn_yhzmyq.enc) = 2024
Provides:	tex(LY1Cabin-Sup.fd) = 2024
Provides:	tex(LY1Cabin-TLF.fd) = 2024
Provides:	tex(OT1Cabin-Sup.fd) = 2024
Provides:	tex(OT1Cabin-TLF.fd) = 2024
Provides:	tex(T1Cabin-Sup.fd) = 2024
Provides:	tex(T1Cabin-TLF.fd) = 2024
Provides:	tex(TS1Cabin-TLF.fd) = 2024
BuildArch:	noarch

%description
Cabin is a humanist sans with four weights and true italics and
small capitals. According to the designer, Pablo Impallari,
Cabin was inspired by Edward Johnston's and Eric Gill's
typefaces, with a touch of modernism. Cabin incorporates modern
proportions, optical adjustments, and some elements of the
geometric sans. cabin.sty supports use of the font under LaTeX,
pdfLaTeX, xeLaTeX and luaLaTeX; it uses the mweights, to manage
the user's view of all those font weights. An sfdefault option
is provided to enable Cabin as the default text font. The
fontaxes package is required for use with [pdf]LaTeX.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/cabin/
%{_texmfdistdir}/fonts/map/dvips/cabin/
%{_texmfdistdir}/fonts/opentype/impallari/cabin/
%{_texmfdistdir}/fonts/tfm/impallari/cabin/
%{_texmfdistdir}/fonts/type1/impallari/cabin/
%{_texmfdistdir}/fonts/vf/impallari/cabin/
%{_texmfdistdir}/tex/latex/cabin/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9465 |21cr|texlive-caladea-64549-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname caladea

Summary:	Support for the Caladea family of fonts
Name:		texlive-caladea
Version:	64549
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex-caladea = 2024
Provides:	tex(Caladea-BoldItalic.pfb) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-ly1.vf) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-t1.tfm) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-t1.vf) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Caladea-BoldItalic-tlf-ts1.vf) = 2024
Provides:	tex(Caladea-BoldItalic.ttf) = 2024
Provides:	tex(Caladea-Bold.pfb) = 2024
Provides:	tex(Caladea-Bold-tlf-ly1--base.tfm) = 2024
Provides:	tex(Caladea-Bold-tlf-ly1.tfm) = 2024
Provides:	tex(Caladea-Bold-tlf-ly1.vf) = 2024
Provides:	tex(Caladea-Bold-tlf-ot1.tfm) = 2024
Provides:	tex(Caladea-Bold-tlf-t1--base.tfm) = 2024
Provides:	tex(Caladea-Bold-tlf-t1.tfm) = 2024
Provides:	tex(Caladea-Bold-tlf-t1.vf) = 2024
Provides:	tex(Caladea-Bold-tlf-ts1--base.tfm) = 2024
Provides:	tex(Caladea-Bold-tlf-ts1.tfm) = 2024
Provides:	tex(Caladea-Bold-tlf-ts1.vf) = 2024
Provides:	tex(Caladea-Bold.ttf) = 2024
Provides:	tex(Caladea-Italic.pfb) = 2024
Provides:	tex(Caladea-Italic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Caladea-Italic-tlf-ly1.tfm) = 2024
Provides:	tex(Caladea-Italic-tlf-ly1.vf) = 2024
Provides:	tex(Caladea-Italic-tlf-ot1.tfm) = 2024
Provides:	tex(Caladea-Italic-tlf-t1--base.tfm) = 2024
Provides:	tex(Caladea-Italic-tlf-t1.tfm) = 2024
Provides:	tex(Caladea-Italic-tlf-t1.vf) = 2024
Provides:	tex(Caladea-Italic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Caladea-Italic-tlf-ts1.tfm) = 2024
Provides:	tex(Caladea-Italic-tlf-ts1.vf) = 2024
Provides:	tex(Caladea-Italic.ttf) = 2024
Provides:	tex(caladea.map) = 2024
Provides:	tex(Caladea-Regular.pfb) = 2024
Provides:	tex(Caladea-Regular-tlf-ly1--base.tfm) = 2024
Provides:	tex(Caladea-Regular-tlf-ly1.tfm) = 2024
Provides:	tex(Caladea-Regular-tlf-ly1.vf) = 2024
Provides:	tex(Caladea-Regular-tlf-ot1.tfm) = 2024
Provides:	tex(Caladea-Regular-tlf-t1--base.tfm) = 2024
Provides:	tex(Caladea-Regular-tlf-t1.tfm) = 2024
Provides:	tex(Caladea-Regular-tlf-t1.vf) = 2024
Provides:	tex(Caladea-Regular-tlf-ts1--base.tfm) = 2024
Provides:	tex(Caladea-Regular-tlf-ts1.tfm) = 2024
Provides:	tex(Caladea-Regular-tlf-ts1.vf) = 2024
Provides:	tex(Caladea-Regular.ttf) = 2024
Provides:	tex(caladea.sty) = 2024
Provides:	tex(cld_cb3g7n.enc) = 2024
Provides:	tex(cld_fjy5hl.enc) = 2024
Provides:	tex(cld_prieif.enc) = 2024
Provides:	tex(cld_w45fff.enc) = 2024
Provides:	tex(LY1Caladea-TLF.fd) = 2024
Provides:	tex(OT1Caladea-TLF.fd) = 2024
Provides:	tex(T1Caladea-TLF.fd) = 2024
Provides:	tex(TS1Caladea-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Caladea family of fonts, designed by Carolina
Giovagnoli and Andres Torresi of the Huerta Tipografica foundry
and adopted by Google for ChromeOS as a font-metric compatible
replacement for Cambria.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/caladea/
%{_texmfdistdir}/fonts/map/dvips/caladea/
%{_texmfdistdir}/fonts/tfm/huerta/caladea/
%{_texmfdistdir}/fonts/truetype/huerta/caladea/
%{_texmfdistdir}/fonts/type1/huerta/caladea/
%{_texmfdistdir}/fonts/vf/huerta/caladea/
%{_texmfdistdir}/tex/latex/caladea/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9466 |21cr|texlive-calculation-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-calculation
Version:	1.0
Release:	1
Summary:	Typesetting reasoned calculations, also called calculational proofs
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/calculation
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/calculation.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/calculation.doc.tar.xz
Source2:    http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/calculation.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The calculation environment formats reasoned
calculations, also called calculational proofs.

The notion of reasoned calculations or calculational
proofs was originally advocated by Wim Feijen and
Edsger Dijkstra. The package accepts options fleqn
and leqno (with the same effect as the LaTeX options
fleqn and leqno, or may inherit the options from the
document class). It allows steps and expressions to
be numbered (by LaTeX equation numbers, obeying the
LaTeX \label command to refer to these numbers), and
a step doesn't take vertical space if its hint is
empty. An expression in a calculation can be given a
comment; it is placed at the side opposite to the
equation numbers. Calculations are allowed inside
hints although numbering and commenting is then disabled. 

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/calculation/calculation.sty
/usr/share/texmf-dist/source/latex/calculation/calculation.drv
/usr/share/texmf-dist/source/latex/calculation/calculation.dtx
/usr/share/texmf-dist/source/latex/calculation/calculation.ins
%doc /usr/share/texmf-dist/doc/latex/calculation/README
%doc /usr/share/texmf-dist/doc/latex/calculation/calculation.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc source %{buildroot}/usr/share/texmf-dist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9467 |21cr|texlive-calligra-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/calligra
# catalog-date 2010-05-03 23:11:16 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-calligra
Version:	20190228
Release:	1
Summary:	Calligraphic font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/calligra
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calligra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calligra.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A calligraphic font in the handwriting style of the author,
Peter Vanroose. The font is supplied as MetaFont source LaTeX
support of the font is provided in the calligra package in the
fundus bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/calligra/callig15.mf
%{_texmfdistdir}/fonts/source/public/calligra/calligra.mf
%{_texmfdistdir}/fonts/tfm/public/calligra/callig15.tfm
%doc %{_texmfdistdir}/doc/latex/calligra/README
%doc %{_texmfdistdir}/doc/latex/calligra/testfont.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9468 |21cr|texlive-calligra-type1-001.000-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24302
# category Package
# catalog-ctan /fonts/calligra-type1
# catalog-date 2011-10-16 10:43:33 +0200
# catalog-license other-free
# catalog-version 001.000
Name:		texlive-calligra-type1
Version:	001.000
Release:	8
Summary:	Type 1 version of Caliigra
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/calligra-type1
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calligra-type1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calligra-type1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a converstion (using mf2pt1 of Peter Vanroose's
handwriting font.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/calligra-type1/callig15.afm
%{_texmfdistdir}/fonts/map/dvips/calligra-type1/calligra.map
%{_texmfdistdir}/fonts/type1/public/calligra-type1/callig15.pfb
%doc %{_texmfdistdir}/doc/fonts/calligra-type1/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9469 |21cr|texlive-callouts-44899-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname callouts

Summary:	Put simple annotations and notes inside a picture
Name:		texlive-callouts
Version:	44899
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(callouts.sty) = 2024
BuildArch:	noarch

%description
The package defines the annotation environment in which
callouts, notes, arrows, and the like can be placed to describe
certain parts of a picture.

%files
%doc %{_texmfdistdir}/doc/latex/callouts/
%{_texmfdistdir}/tex/latex/callouts/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9470 |21cr|texlive-cantarell-2.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27066
# category Package
# catalog-ctan /fonts/cantarell
# catalog-date 2012-06-11 20:28:41 +0200
# catalog-license lppl1.3
# catalog-version 2.4
Name:		texlive-cantarell
Version:	2.4
Release:	7
Summary:	LaTeX support for the Cantarell font family
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cantarell
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cantarell.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cantarell.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cantarell.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Cantarell is a contemporary Humanist sans serif designed by
Dave Crossland and Jakub Steiner. This font, delivered under
the OFL version 1.1, is available on the GNOME download server.
The present package provides support for this font in LaTeX. It
includes Type 1 versions of the fonts, converted for this
package using FontForge from its sources, for full support with
Dvips.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/cantarell/Cantarell-Bold.afm
%{_texmfdistdir}/fonts/afm/public/cantarell/Cantarell-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/cantarell/cantarell-01.enc
%{_texmfdistdir}/fonts/enc/dvips/cantarell/cantarell-02.enc
%{_texmfdistdir}/fonts/enc/dvips/cantarell/cantarell-03.enc
%{_texmfdistdir}/fonts/map/dvips/cantarell/cantarell.map
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-01.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-02.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-03.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-01.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-02.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-03.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-Slanted-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Bold-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-01.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-02.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-03.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-01.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-02.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-03.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-Slanted-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/cantarell/Cantarell-Regular-x2.tfm
%{_texmfdistdir}/fonts/type1/public/cantarell/Cantarell-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/cantarell/Cantarell-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-ot1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-t1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-t2a.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-t2b.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-t2c.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-ts1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-Slanted-x2.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-ot1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-t1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-t2a.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-t2b.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-t2c.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-ts1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Bold-x2.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-ot1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-t1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-t2a.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-t2b.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-t2c.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-ts1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-Slanted-x2.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-ot1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-t1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-t2a.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-t2b.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-t2c.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-ts1.vf
%{_texmfdistdir}/fonts/vf/public/cantarell/Cantarell-Regular-x2.vf
%{_texmfdistdir}/tex/latex/cantarell/cantarell.sty
%{_texmfdistdir}/tex/latex/cantarell/ot1fca.fd
%{_texmfdistdir}/tex/latex/cantarell/t1fca.fd
%{_texmfdistdir}/tex/latex/cantarell/t2afca.fd
%{_texmfdistdir}/tex/latex/cantarell/t2bfca.fd
%{_texmfdistdir}/tex/latex/cantarell/t2cfca.fd
%{_texmfdistdir}/tex/latex/cantarell/ts1fca.fd
%{_texmfdistdir}/tex/latex/cantarell/x2fca.fd
%doc %{_texmfdistdir}/doc/fonts/cantarell/CHANGES
%doc %{_texmfdistdir}/doc/fonts/cantarell/README
%doc %{_texmfdistdir}/doc/fonts/cantarell/cantarell-samples.pdf
%doc %{_texmfdistdir}/doc/fonts/cantarell/cantarell-samples.tex
%doc %{_texmfdistdir}/doc/fonts/cantarell/cantarell.pdf
%doc %{_texmfdistdir}/doc/fonts/cantarell/cantarell.tex
%doc %{_texmfdistdir}/doc/fonts/cantarell/manifest.txt
#- source
%doc %{_texmfdistdir}/source/fonts/cantarell/Cantarell-Bold.sfd
%doc %{_texmfdistdir}/source/fonts/cantarell/Cantarell-Regular.sfd
%doc %{_texmfdistdir}/source/fonts/cantarell/Makefile
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-01.etx
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-02.etx
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-03.etx
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-drv.tex
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-fixcyrillic.mtx
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-fixgreek.mtx
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-fixlatin.mtx
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-fixtextcomp.mtx
%doc %{_texmfdistdir}/source/fonts/cantarell/cantarell-map.tex
%doc %{_texmfdistdir}/source/fonts/cantarell/sfd2type1.pe

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9471 |21cr|texlive-carlito-64624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname carlito

Summary:	Support for Carlito sans-serif fonts
Name:		texlive-carlito
Version:	64624
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex-carlito = 2024
Provides:	tex(carlito.map) = 2024
Provides:	tex(carlito.sty) = 2024
Provides:	tex(crlt_7oxnun.enc) = 2024
Provides:	tex(crlt_diffle.enc) = 2024
Provides:	tex(crlt_du3rrv.enc) = 2024
Provides:	tex(crlt_egrrry.enc) = 2024
Provides:	tex(crlt_ggvanz.enc) = 2024
Provides:	tex(crlt_hsqwq5.enc) = 2024
Provides:	tex(crlt_j4hweq.enc) = 2024
Provides:	tex(crlt_kvbpjz.enc) = 2024
Provides:	tex(crlt_ln7ww5.enc) = 2024
Provides:	tex(crlt_lu4jub.enc) = 2024
Provides:	tex(crlt_nhqtbp.enc) = 2024
Provides:	tex(crlt_nnew6j.enc) = 2024
Provides:	tex(crlt_qnx4q4.enc) = 2024
Provides:	tex(crlt_shvaqa.enc) = 2024
Provides:	tex(crlt_toeewq.enc) = 2024
Provides:	tex(crlt_tqddrq.enc) = 2024
Provides:	tex(crlt_txfnxl.enc) = 2024
Provides:	tex(crlt_ys3vdn.enc) = 2024
Provides:	tex(crlt_zisnlb.enc) = 2024
Provides:	tex(crlt_zmzg5w.enc) = 2024
Provides:	tex(LY1Crlt-Inf.fd) = 2024
Provides:	tex(LY1Crlt-LF.fd) = 2024
Provides:	tex(LY1Crlt-OsF.fd) = 2024
Provides:	tex(LY1Crlt-Sup.fd) = 2024
Provides:	tex(LY1Crlt-TLF.fd) = 2024
Provides:	tex(LY1Crlt-TOsF.fd) = 2024
Provides:	tex(OT1Crlt-Inf.fd) = 2024
Provides:	tex(OT1Crlt-LF.fd) = 2024
Provides:	tex(OT1Crlt-OsF.fd) = 2024
Provides:	tex(OT1Crlt-Sup.fd) = 2024
Provides:	tex(OT1Crlt-TLF.fd) = 2024
Provides:	tex(OT1Crlt-TOsF.fd) = 2024
Provides:	tex(T1Crlt-Inf.fd) = 2024
Provides:	tex(T1Crlt-LF.fd) = 2024
Provides:	tex(T1Crlt-OsF.fd) = 2024
Provides:	tex(T1Crlt-Sup.fd) = 2024
Provides:	tex(T1Crlt-TLF.fd) = 2024
Provides:	tex(T1Crlt-TOsF.fd) = 2024
Provides:	tex(TS1Crlt-LF.fd) = 2024
Provides:	tex(TS1Crlt-OsF.fd) = 2024
Provides:	tex(TS1Crlt-TLF.fd) = 2024
Provides:	tex(TS1Crlt-TOsF.fd) = 2024
BuildArch:	noarch

%description
The package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Carlito family of sans serif fonts, designed by
Lukasz Dziedzic of the tyPoland foundry and adopted by Google
for ChromeOS as a font-metric compatible replacement for
Calibri.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/carlito/
%{_texmfdistdir}/fonts/map/dvips/carlito/
%{_texmfdistdir}/fonts/tfm/google/carlito/
%{_texmfdistdir}/fonts/truetype/google/carlito/
%{_texmfdistdir}/fonts/type1/google/carlito/
%{_texmfdistdir}/fonts/vf/google/carlito/
%{_texmfdistdir}/tex/latex/carlito/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9472 |21cr|texlive-carolmin-ps-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/carolmin-ps
# catalog-date 2007-02-21 12:51:17 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-carolmin-ps
Version:	20190228
Release:	1
Summary:	Adobe Type 1 format of Carolingian Minuscule fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/carolmin-ps
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/carolmin-ps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/carolmin-ps.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle offers Adobe Type 1 format versions of Peter
Wilson's Carolingian Minuscule font set (part of the bookhands
collection). The fonts in the bundle are ready-to-use
replacements for the MetaFont originals.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/carolmin-ps/cmin10.afm
%{_texmfdistdir}/fonts/afm/public/carolmin-ps/cmin17.afm
%{_texmfdistdir}/fonts/afm/public/carolmin-ps/cmin7.afm
%{_texmfdistdir}/fonts/afm/public/carolmin-ps/cminb10.afm
%{_texmfdistdir}/fonts/afm/public/carolmin-ps/cminb17.afm
%{_texmfdistdir}/fonts/afm/public/carolmin-ps/cminb7.afm
%{_texmfdistdir}/fonts/map/dvips/carolmin-ps/cmin.map
%{_texmfdistdir}/fonts/type1/public/carolmin-ps/cmin10.pfb
%{_texmfdistdir}/fonts/type1/public/carolmin-ps/cmin17.pfb
%{_texmfdistdir}/fonts/type1/public/carolmin-ps/cmin7.pfb
%{_texmfdistdir}/fonts/type1/public/carolmin-ps/cminb10.pfb
%{_texmfdistdir}/fonts/type1/public/carolmin-ps/cminb17.pfb
%{_texmfdistdir}/fonts/type1/public/carolmin-ps/cminb7.pfb
%doc %{_texmfdistdir}/doc/fonts/carolmin-ps/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9473 |21cr|texlive-cartonaugh-59938-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cartonaugh

Summary:	A LuaLaTeX package for drawing karnaugh maps with up to 6 variables
Name:		texlive-cartonaugh
Version:	59938
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
#Requires:	tex(xparse.sty)
#Requires:	tex(xstring.sty)
Provides:	tex(cartonaugh.sty) = 2024
BuildArch:	noarch

%description
This package, a fork of 2pi's karnaugh-map package, draws
karnaugh maps with 2, 3, 4, 5, and 6 variables. It also
contains commands for filling the karnaugh map with terms
semi-automatically or manually. Last but not least it contains
commands for drawing implicants on top of the map. The name
"cartonaugh" is a portmanteau of "cartographer" and "karnaugh".
The package needs LuaLaTeX and depends on TikZ, xparse, and
xstring.

%files
%doc %{_texmfdistdir}/doc/latex/cartonaugh
%{_texmfdistdir}/tex/latex/cartonaugh

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9474 |21cr|texlive-cascade-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cascade
Version:	1.1
Release:	1
Summary:	Constructions with braces to present mathematical demonstrations
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/cascade
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/cascade.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/cascade.doc.tar.xz
Source2:    http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/cascade.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The LaTeX package cascade provides a command 
\Cascade to do constructions to present 
mathematical demonstrations with successive 
braces for the deductions.

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/cascade/cascade.sty
/usr/share/texmf-dist/source/latex/cascade/cascade.dtx
/usr/share/texmf-dist/source/latex/cascade/cascade.ins
%doc /usr/share/texmf-dist/doc/latex/cascade/README.md
%doc /usr/share/texmf-dist/doc/latex/cascade/cascade-french.pdf
%doc /usr/share/texmf-dist/doc/latex/cascade/cascade-french.tex
%doc /usr/share/texmf-dist/doc/latex/cascade/cascade.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc source %{buildroot}/usr/share/texmf-dist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9475 |21cr|texlive-cascadia-code-57478-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cascadia-code

Summary:	The Cascadia Code font with support for LaTeX and pdfLaTeX
Name:		texlive-cascadia-code
Version:	57478
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_5rnmoj.enc) = 2024
Provides:	tex(a_i3ioen.enc) = 2024
Provides:	tex(a_lzhlbi.enc) = 2024
Provides:	tex(a_r2ngzv.enc) = 2024
Provides:	tex(a_rzdm5y.enc) = 2024
Provides:	tex(a_vqpkf5.enc) = 2024
Provides:	tex(a_zrxj4s.enc) = 2024
Provides:	tex(cascadia-code.sty) = 2024
Provides:	tex(CascadiaCodThree.map) = 2024
Provides:	tex(LY1CascadiaCodThree-Sup.fd) = 2024
Provides:	tex(LY1CascadiaCodThree-TLF.fd) = 2024
Provides:	tex(OT1CascadiaCodThree-Sup.fd) = 2024
Provides:	tex(OT1CascadiaCodThree-TLF.fd) = 2024
Provides:	tex(T1CascadiaCodThree-Sup.fd) = 2024
Provides:	tex(T1CascadiaCodThree-TLF.fd) = 2024
Provides:	tex(TS1CascadiaCodThree-TLF.fd) = 2024
BuildArch:	noarch

%description
Cascadia Code is a monospaced font by Microsoft. This package
provides the Cascadia Code family of fonts with support for
LaTeX and pdfLaTeX. Adding \usepackage{cascadia-code} to the
preamble of your document will activate Cascadia Code as the
typewriter font (\ttdefault).

%files
%doc %{_texmfdistdir}/doc/fonts/cascadia-code
%{_texmfdistdir}/fonts/enc/dvips/cascadia-code
%{_texmfdistdir}/fonts/map/dvips/cascadia-code
%{_texmfdistdir}/fonts/opentype/public/cascadia-code
%{_texmfdistdir}/fonts/tfm/public/cascadia-code
%{_texmfdistdir}/fonts/type1/public/cascadia-code
%{_texmfdistdir}/fonts/vf/public/cascadia-code
%{_texmfdistdir}/tex/latex/cascadia-code

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9476 |21cr|texlive-catchfile-53084-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname catchfile

Summary:	Catch an external file into a macro
Name:		texlive-catchfile
Version:	53084
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(etexcmds.sty)
Requires:	tex(infwarerr.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(ltxcmds.sty)
Provides:	tex(catchfile.sty) = 2024
BuildArch:	noarch

%description
This package catches the contents of a file and puts it in a
macro. It requires e-TeX. Both LaTeX and plain TeX are
supported.

%files
%doc %{_texmfdistdir}/doc/latex/catchfile
%{_texmfdistdir}/tex/generic/catchfile

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9477 |21cr|texlive-catcodes-r0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28210
# category Package
# catalog-ctan /macros/generic/catcodes
# catalog-date 2012-11-08 10:49:44 +0100
# catalog-license lppl1.3
# catalog-version 0.3a
Name:		texlive-catcodes
Epoch:		1
Version:	r0.2
Release:	2
Summary:	Generic handling of TeX category codes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/catcodes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catcodes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catcodes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catcodes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle deals with category code switching; the packages of
the bundle should work with any TeX format (with the support of
the plainpkg package). The bundle provides: - stacklet.sty,
which supports stacks that control the use of different
catcodes; - actcodes.sty, which deals with active characters;
and - catchdq.sty, which provides a simple quotation character
control mechanism.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/catcodes/actcodes.sty
%{_texmfdistdir}/tex/generic/catcodes/catchdq.sty
%{_texmfdistdir}/tex/generic/catcodes/catcodes.RLS
%{_texmfdistdir}/tex/generic/catcodes/stacklet.sty
%doc %{_texmfdistdir}/doc/generic/catcodes/README
%doc %{_texmfdistdir}/doc/generic/catcodes/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/generic/catcodes/catcodes.pdf
#- source
%doc %{_texmfdistdir}/source/generic/catcodes/catcodes.tex
%doc %{_texmfdistdir}/source/generic/catcodes/fdatechk.tex
%doc %{_texmfdistdir}/source/generic/catcodes/makedoc.cfg
%doc %{_texmfdistdir}/source/generic/catcodes/mdoccorr.cfg
%doc %{_texmfdistdir}/source/generic/catcodes/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9478 |21cr|texlive-causets-66359-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname causets

Summary:	Draw causal set (Hasse) diagrams
Name:		texlive-causets
Version:	66359
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(causets.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package uses TikZ to generate (Hasse) diagrams for
causal sets (causets) to be used inline with text or in
mathematical expressions. The macros can also be used in the
tikzpicture environment to annotate or modify a diagram, as
shown with some examples in the documentation.

%files
%doc %{_texmfdistdir}/doc/latex/causets
%{_texmfdistdir}/tex/latex/causets

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9479 |21cr|texlive-ccfonts-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17122
# category Package
# catalog-ctan /macros/latex/contrib/ccfonts
# catalog-date 2020-03-25
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-ccfonts
Version:	1.2
Release:	1
Summary:	Support for Concrete text and math fonts in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ccfonts
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccfonts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccfonts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
LaTeX font definition files for the Concrete fonts and a LaTeX
package for typesetting documents using Concrete as the default
font family. The files support OT1, T1, TS1, and Concrete
mathematics including AMS fonts (Ulrik Vieth's concmath).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ccfonts/ccfonts.sty
%{_texmfdistdir}/tex/latex/ccfonts/t1ccr.fd
%{_texmfdistdir}/tex/latex/ccfonts/ts1ccr.fd
%doc %{_texmfdistdir}/doc/latex/ccfonts/ccfonts.pdf
%doc %{_texmfdistdir}/doc/latex/ccfonts/LICENSE
%doc %{_texmfdistdir}/doc/latex/ccfonts/README
#- source
%doc %{_texmfdistdir}/source/latex/ccfonts/cc.fdd
%doc %{_texmfdistdir}/source/latex/ccfonts/ccfonts.dtx
%doc %{_texmfdistdir}/source/latex/ccfonts/ccfonts.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9480 |21cr|texlive-ccool-60600-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ccool

Summary:	Encoding notational conventions
Name:		texlive-ccool
Version:	60600
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ccool.sty) = 2024
BuildArch:	noarch

%description
This package provides a key-value interface, \Ccool, on top of
xparse's document command parser. Global options control input
processing and its expansion. By default, they are set to meet
likely requirements, depending on context: the selected
language, and which of text and math mode is active. These
options can be overridden inline. This versality could find its
use, for example, to encode notational conventions (such as
\Real - \mathbb{R}) at the point where they are introduced in
the document ("Let R denote real numbers"). Polymorphic
commands can be generated by parameterizing the keys (for
instance, one parameter value for style, another for a
property). User input to \Ccool can optionally be serialized.
This can useful for typesetting documents sharing the same
notation.

%files
%doc %{_texmfdistdir}/doc/latex/ccool
%{_texmfdistdir}/tex/latex/ccool

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9481 |21cr|texlive-cdcmd-60742-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cdcmd

Summary:	Expandable conditional commands for LaTeX
Name:		texlive-cdcmd
Version:	60742
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cdcmd.sty) = 2024
BuildArch:	noarch

%description
This package provides some conditional commands, just like the
styledcmd package. The difference is that cdcmd can define
expandable conditional commands.

%files
%doc %{_texmfdistdir}/doc/latex/cdcmd
%{_texmfdistdir}/tex/latex/cdcmd

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9482 |21cr|texlive-cell-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20756
# category Package
# catalog-ctan /macros/latex/contrib/cell
# catalog-date 2010-12-15 11:00:48 +0100
# catalog-license pd
# catalog-version 1.28/2.03
Name:		texlive-cell
Version:	20190228
Release:	1
Summary:	Bibliography style for Cell
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cell
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cell.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cell.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is an "apa-like" style (cf. apalike.bst in the BibTeX
distribution), developed from the same author's JMB style. A
supporting LaTeX package is also provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/cell/cell.bst
%{_texmfdistdir}/tex/latex/cell/cell.sty
%doc %{_texmfdistdir}/doc/latex/cell/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9483 |21cr|texlive-centeredline-64672-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname centeredline

Summary:	A macro for centering lines
Name:		texlive-centeredline
Version:	64672
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(centeredline.sty) = 2024
BuildArch:	noarch

%description
This package provides a macro \centeredline{...} which allows
to conveniently center a line inside a paragraph while allowing
usage therein of \verb or other macros changing catcodes. It
works nicely in list environments, and material whose natural
width exceeds the current linewidth will get properly centered
too.

%files
%doc %{_texmfdistdir}/doc/latex/centeredline
%{_texmfdistdir}/tex/latex/centeredline

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9484 |21cr|texlive-centerlastline-56644-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname centerlastline

Summary:	Paragraphs with last line centered, known as "Spanish" paragraphs
Name:		texlive-centerlastline
Version:	56644
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(centerlastline.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides a command \centerlastline and an
environment centerlastline that typeset "Spanish" paragraphs,
that is paragraphs without indentation, and last line centered,
useful to finish a large paragraph of text at the end of
chapters, prologues, etc.

%files
%doc %{_texmfdistdir}/doc/latex/centerlastline
%{_texmfdistdir}/tex/latex/centerlastline

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9485 |21cr|texlive-cesenaexam-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cesenaexam	
Version:		0.2
Release:		1
Summary:		A class file to typeset exams
Group:		Publishing
URL:		https://ctan.org/pkg/cesenaexam
License:		The LATEX Project Public License 1.3c
Source0:		https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/cesenaexam.tar.xz
Source1:		https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/cesenaexam.doc.tar.xz
Source2:		https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/cesenaexam.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LATEX document class has been designed to typeset exams.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9486 |21cr|texlive-cfr-initials-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cfr-initials

Summary:	LaTeX packages for use of initials
Name:		texlive-cfr-initials
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(Acorn.fd)
#Requires:	tex(AnnSton.fd)
#Requires:	tex(ArtNouvc.fd)
#Requires:	tex(ArtNouv.fd)
#Requires:	tex(Carrickc.fd)
#Requires:	tex(Eichenla.fd)
#Requires:	tex(EileenBl.fd)
#Requires:	tex(Eileen.fd)
#Requires:	tex(Elzevier.fd)
#Requires:	tex(GotIn.fd)
#Requires:	tex(GoudyIn.fd)
#Requires:	tex(Kinigcap.fd)
#Requires:	tex(Konanur.fd)
Requires:	texlive-kpathsea
#Requires:	tex(Kramer.fd)
Requires:	texlive-tlpkg
#Requires:	tex(MorrisIn.fd)
#Requires:	tex(Nouveaud.fd)
#Requires:	tex(Romantik.fd)
#Requires:	tex(Rothdn.fd)
#Requires:	tex(RoyalIn.fd)
#Requires:	tex(Sanremo.fd)
#Requires:	tex(Starburst.fd)
#Requires:	tex(Typocaps.fd)
#Requires:	tex(Zallman.fd)
Provides:	tex(Acorn.sty) = 2024
Provides:	tex(AnnSton.sty) = 2024
Provides:	tex(ArtNouvc.sty) = 2024
Provides:	tex(ArtNouv.sty) = 2024
Provides:	tex(Carrickc.sty) = 2024
Provides:	tex-cfr-initials = 2024
Provides:	tex(Eichenla.sty) = 2024
Provides:	tex(EileenBl.sty) = 2024
Provides:	tex(Eileen.sty) = 2024
Provides:	tex(Elzevier.sty) = 2024
Provides:	tex(GotIn.sty) = 2024
Provides:	tex(GoudyIn.sty) = 2024
Provides:	tex(Kinigcap.sty) = 2024
Provides:	tex(Konanur.sty) = 2024
Provides:	tex(Kramer.sty) = 2024
Provides:	tex(MorrisIn.sty) = 2024
Provides:	tex(Nouveaud.sty) = 2024
Provides:	tex(Romantik.sty) = 2024
Provides:	tex(Rothdn.sty) = 2024
Provides:	tex(Royal.sty) = 2024
Provides:	tex(Sanremo.sty) = 2024
Provides:	tex(Starburst.sty) = 2024
Provides:	tex(Typocaps.sty) = 2024
Provides:	tex(Zallman.sty) = 2024
BuildArch:	noarch

%description
This is a set of 23 tiny packages designed to make it easier to
use fonts from the initials package in LaTeX, e.g. with the
lettrine package. It is a response to comments on an answer at
TeX Stack Exchange (http://tex.stackexchange.com/a/236410/)
requesting sample package files for others to copy. I had
previously assumed these were too trivial to be of interest,
but if they would be useful, then I would prefer them to be
generally available via CTAN.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/cfr-initials/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9487 |21cr|texlive-cfr-lm-1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33090
# category Package
# catalog-ctan /fonts/cfr-lm
# catalog-date 2014-03-03 08:32:08 +0100
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-cfr-lm
Version:	1.5
Release:	3
Summary:	Enhanced support for the Latin Modern fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cfr-lm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cfr-lm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cfr-lm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cfr-lm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports a number of features of the Latin Modern
fonts which are not easily accessible via the default (La)TeX
support provided in the official distribution. In particular,
the package supports the use of the various styles of digits
available, small-caps and upright italic shapes, and
alternative weights and widths. It also supports variable width
typewriter and the "quotation" font. Version 2.004 of the Latin
Modern fonts is supported. By default, the package uses
proportional oldstyle digits and variable width typewriter but
this can be changed by passing appropriate options to the
package. The package also supports using (for example)
different styles of digits within a document so it is possible
to use proportional oldstyle digits by default, say, but
tabular lining digits within a particular table. The package
requires the official Latin Modern distribution, including its
(La)TeX support. The package relies on the availability of both
the fonts themselves and the official font support files. The
package also makes use of the nfssext-cfr package. Only the T1
and TS1 encodings are supported for text fonts. The set up of
fonts for mathematics is identical to that provided by Latin
Modern.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/cfr-lm/dotdigits-clm.enc
%{_texmfdistdir}/fonts/enc/dvips/cfr-lm/t1-clm.enc
%{_texmfdistdir}/fonts/map/dvips/cfr-lm/clm.map
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmb28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmb2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmb2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmb2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmb8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx28t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx28t5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx28t6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx28t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx28t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx28t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2i8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2ij8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2j8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2j8t5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2j8t6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2j8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2j8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2j8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx8t5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx8t6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbx8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxi8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxj8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxj8t5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxj8t6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxj8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxj8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxj8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxji8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmbxo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmcsc28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmcsc2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmcsc2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmcsc2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmcsc8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmcscj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmcscjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmcsco8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmdun2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmdun2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmdunh28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmdunh2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmdunh8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmdunhj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmdunjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmduno8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr28t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr28t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr28t5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr28t6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr28t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr28t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr28t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2i8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2i8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2i8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2i8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2i8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2ij8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2ij8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2ij8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2ij8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2ij8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2j8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2j8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2j8t5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2j8t6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2j8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2j8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2j8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2jo8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2jo8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2jo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2jo8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2o8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2o8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2o8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr2o8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr8t5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr8t6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmr8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmri8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmri8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmri8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmri8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmri8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrj8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrj8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrj8t5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrj8t6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrj8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrj8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrj8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrji8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrji8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrji8t7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrji8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrji8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrjo8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrjo8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrjo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmrjo8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmro8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmro8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmro8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmro8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmro8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss28t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss28t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss28t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss28t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2j8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2j8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2j8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2j8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2jo8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2jo8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2jo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss2jo8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmss8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssb2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssb2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssbjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssbo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssbx28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssbx2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssbx8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssbxj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssd2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssd2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssdc28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssdc2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssdc8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssdcj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssdjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssdo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssj8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssj8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssj8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssj8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssjo8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssjo8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssjo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssjo8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso28t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso28t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso28t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso28t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso8t17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmsso8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssq28t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssq2j8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssq2jo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssq2o8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssq8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqb2jo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqb2o8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqbjo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqbo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqbx28t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqbx2j8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqbx8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqbxj8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqj8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqjo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmssqo8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtcsc8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtcscj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtcsjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtcso8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtk8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtkj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtkjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtko8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtl8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtlc8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtlcj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtlcjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtlco8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtlj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtljo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtlo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtt8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtt8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtt8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtt8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtti8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmttij8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmttj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmttj8t12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmttj8t8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmttj8t9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmttjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmtto8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmu28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmu2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmu8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmuj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtk28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtk2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtk2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtk2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtk8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtkj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtkjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtko8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtl28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtl2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtl2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtl2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtl8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtlj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtljo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtlo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtt28t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtt2j8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtt2jo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtt2o8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtt8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvttj8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvttjo8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/clmvtto8t10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/dd-lmvtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmb8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbo8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbx8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbx8ttl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbx8ttl5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbx8ttl6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbx8ttl7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbx8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbx8ttl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbxi8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmbxo8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmcsc8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmcsco8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmdunh8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmduno8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmr8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmr8ttl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmr8ttl17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmr8ttl5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmr8ttl6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmr8ttl7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmr8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmr8ttl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmri8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmri8ttl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmri8ttl7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmri8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmri8ttl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmro8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmro8ttl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmro8ttl17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmro8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmro8ttl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmss8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmss8ttl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmss8ttl17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmss8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmss8ttl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmssbo8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmssbx8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmssdc8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmssdo8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmsso8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmsso8ttl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmsso8ttl17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmsso8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmsso8ttl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmssq8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmssqbo8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmssqbx8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmssqo8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtcsc8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtcso8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtk8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtko8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtl8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtlc8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtlco8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtlo8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtt8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtt8ttl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtt8ttl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtt8ttl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtti8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmtto8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmu8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmvtk8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmvtko8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmvtl8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmvtlo8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmvtt8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/lmvtto8ttl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cfr-lm/u-clmvtto10.tfm
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmb28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmb2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmb2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmb2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmb8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx28t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx28t5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx28t6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx28t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx28t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx28t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2i8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2ij8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2j8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2j8t5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2j8t6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2j8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2j8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2j8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx8t5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx8t6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbx8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxi8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxj8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxj8t5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxj8t6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxj8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxj8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxj8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxji8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmbxo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmcsc28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmcsc2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmcsc2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmcsc2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmcsc8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmcscj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmcscjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmcsco8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmdun2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmdun2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmdunh28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmdunh2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmdunh8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmdunhj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmdunjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmduno8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr28t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr28t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr28t5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr28t6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr28t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr28t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr28t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2i8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2i8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2i8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2i8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2i8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2ij8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2ij8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2ij8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2ij8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2ij8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2j8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2j8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2j8t5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2j8t6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2j8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2j8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2j8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2jo8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2jo8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2jo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2jo8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2o8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2o8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2o8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr2o8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr8t5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr8t6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmr8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmri8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmri8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmri8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmri8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmri8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrj8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrj8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrj8t5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrj8t6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrj8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrj8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrj8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrji8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrji8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrji8t7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrji8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrji8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrjo8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrjo8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrjo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmrjo8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmro8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmro8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmro8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmro8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmro8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss28t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss28t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss28t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss28t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2j8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2j8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2j8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2j8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2jo8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2jo8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2jo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss2jo8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmss8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssb2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssb2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssbjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssbo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssbx28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssbx2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssbx8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssbxj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssd2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssd2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssdc28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssdc2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssdc8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssdcj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssdjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssdo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssj8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssj8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssj8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssj8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssjo8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssjo8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssjo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssjo8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso28t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso28t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso28t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso28t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso8t17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmsso8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssq28t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssq2j8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssq2jo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssq2o8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssq8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqb2jo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqb2o8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqbjo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqbo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqbx28t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqbx2j8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqbx8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqbxj8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqj8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqjo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmssqo8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtcsc8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtcscj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtcsjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtcso8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtk8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtkj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtkjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtko8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtl8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtlc8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtlcj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtlcjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtlco8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtlj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtljo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtlo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtt8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtt8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtt8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtt8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtti8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmttij8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmttj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmttj8t12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmttj8t8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmttj8t9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmttjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmtto8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmu28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmu2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmu8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmuj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtk28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtk2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtk2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtk2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtk8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtkj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtkjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtko8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtl28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtl2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtl2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtl2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtl8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtlj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtljo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtlo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtt28t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtt2j8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtt2jo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtt2o8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtt8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvttj8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvttjo8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/clmvtto8t10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmb10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbo10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbx10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbx12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbx5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbx6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbx7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbx8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbx9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbxi10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmbxo10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmcsc10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmcsco10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmdunh10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmduno10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmr10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmr12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmr17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmr5.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmr6.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmr7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmr8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmr9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmri10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmri12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmri7.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmri8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmri9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmro10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmro12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmro17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmro8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmro9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmss10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmss12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmss17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmss8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmss9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmssbo10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmssbx10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmssdc10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmssdo10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmsso10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmsso12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmsso17.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmsso8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmsso9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmssq8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmssqbo8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmssqbx8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmssqo8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtcsc10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtcso10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtk10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtko10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtl10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtlc10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtlco10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtlo10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtt10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtt12.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtt8.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtt9.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtti10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmtto10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmu10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmvtk10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmvtko10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmvtl10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmvtlo10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmvtt10.vf
%{_texmfdistdir}/fonts/vf/public/cfr-lm/u-clmvtto10.vf
%{_texmfdistdir}/tex/latex/cfr-lm/cfr-lm.sty
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2d.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2dj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2j.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2jqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2js.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2jt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2jv.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2qs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2s.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2t.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clm2v.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmd.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmdj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmjqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmjs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmjt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmjv.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clms.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/t1clmv.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2d.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2dj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2j.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2jqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2js.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2jt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2jv.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2qs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2s.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2t.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clm2v.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmd.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmdj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmjqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmjs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmjt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmjv.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clms.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/ts1clmv.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2d.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2dj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2j.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2jqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2js.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2jt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2jv.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2qs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2s.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2t.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclm2v.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmd.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmdj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmj.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmjqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmjs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmjt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmjv.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmqs.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclms.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmt.fd
%{_texmfdistdir}/tex/latex/cfr-lm/uclmv.fd
%doc %{_texmfdistdir}/doc/fonts/cfr-lm/README
%doc %{_texmfdistdir}/doc/fonts/cfr-lm/cfr-lm.pdf
%doc %{_texmfdistdir}/doc/fonts/cfr-lm/cfr-lm.tex
%doc %{_texmfdistdir}/doc/fonts/cfr-lm/clm-test.pdf
%doc %{_texmfdistdir}/doc/fonts/cfr-lm/clm-test.tex
%doc %{_texmfdistdir}/doc/fonts/cfr-lm/manifest.txt
#- source
%doc %{_texmfdistdir}/source/fonts/cfr-lm/clm-map.tex
%doc %{_texmfdistdir}/source/fonts/cfr-lm/clm-t1-drv.tex
%doc %{_texmfdistdir}/source/fonts/cfr-lm/clm-ts1-drv.tex
%doc %{_texmfdistdir}/source/fonts/cfr-lm/dotdigits.etx
%doc %{_texmfdistdir}/source/fonts/cfr-lm/dotoldstyle.etx
%doc %{_texmfdistdir}/source/fonts/cfr-lm/dotprop.etx
%doc %{_texmfdistdir}/source/fonts/cfr-lm/dottaboldstyle.etx
%doc %{_texmfdistdir}/source/fonts/cfr-lm/t1-clm.etx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9488 |21cr|texlive-charissil-64998-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname charissil

Summary:	CharisSIL fonts with support for XeLaTeX or LuaLaTeX
Name:		texlive-charissil
Version:	64998
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_26lu5p.enc) = 2024
Provides:	tex(a_7qkcho.enc) = 2024
Provides:	tex(a_byetuc.enc) = 2024
Provides:	tex(a_fhbboz.enc) = 2024
Provides:	tex(a_fr2ebm.enc) = 2024
Provides:	tex(a_jf3wr2.enc) = 2024
Provides:	tex(a_l6xsmm.enc) = 2024
Provides:	tex(a_liimvs.enc) = 2024
Provides:	tex(a_lxhc3o.enc) = 2024
Provides:	tex(a_rflyh3.enc) = 2024
Provides:	tex(a_x7dpvy.enc) = 2024
Provides:	tex(a_yszurh.enc) = 2024
Provides:	tex(a_zn43lu.enc) = 2024
Provides:	tex(CharisSIL.sty) = 2024
Provides:	tex(charssil.map) = 2024
Provides:	tex(LY1charssil-TLF.fd) = 2024
Provides:	tex(OT1charssil-TLF.fd) = 2024
Provides:	tex(T1charssil-TLF.fd) = 2024
Provides:	tex(T2Acharssil-TLF.fd) = 2024
Provides:	tex(T2Bcharssil-TLF.fd) = 2024
Provides:	tex(T2Ccharssil-TLF.fd) = 2024
Provides:	tex(TS1charssil-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides the CharisSIL family of fonts adapted by
SIL International from Bitstream Charter in TrueType format,
with support for XeLaTeX or LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/charissil
%{_texmfdistdir}/fonts/enc/dvips/charissil
%{_texmfdistdir}/fonts/map/dvips/charissil
%{_texmfdistdir}/fonts/tfm/SIL/charissil
%{_texmfdistdir}/fonts/truetype/SIL/charissil
%{_texmfdistdir}/fonts/type1/SIL/charissil
%{_texmfdistdir}/fonts/vf/SIL/charissil
%{_texmfdistdir}/tex/latex/charissil

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9489 |21cr|texlive-chbibref-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17120
# category Package
# catalog-ctan /macros/latex/contrib/chbibref
# catalog-date 2010-02-23 16:16:11 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-chbibref
Version:	1.0
Release:	8
Summary:	Change the Bibliography/References title
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chbibref
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chbibref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chbibref.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a single command, \setbibref, which sets whichever of
\bibname and \refname is in use. (\bibname is used in book.cls
and report.cls, and \refname is used in article.cls.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chbibref/chbibref.sty
%doc %{_texmfdistdir}/doc/latex/chbibref/chbibref.pdf
%doc %{_texmfdistdir}/doc/latex/chbibref/chbibref.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9490 |21cr|texlive-checkend-51475-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname checkend

Summary:	Extend "improperly closed environment" messages
Name:		texlive-checkend
Version:	51475
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(checkend.sty) = 2024
BuildArch:	noarch

%description
When an environment is left open, LaTeX gives an error at the
end of the document. However it only informs about the first of
them, while the rest are shown with meaningless errors: (\end
occurred inside a group at level N) This package replaces these
errors with more useful messages which show which environments
(in reverse order) were not closed. There are no user macros:
just use the package.

%files
%doc %{_texmfdistdir}/doc/latex/checkend
%{_texmfdistdir}/tex/latex/checkend

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9491 |21cr|texlive-chembst-0.2.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/chembst
# catalog-date 2008-09-20 13:36:26 +0200
# catalog-license lppl
# catalog-version 0.2.5
Name:		texlive-chembst
Version:	0.2.5
Release:	9
Summary:	A collection of BibTeX files for chemistry journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/chembst
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chembst.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chembst.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chembst.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a collection of advanced BibTeX style files
suitable for publications in chemistry journals. Currently,
style files for journals published by the American Chemical
Society, Wiley-VCH and The Royal Society of Chemistry are
available. The style files support advanced features such as
automatic formatting of errata or creating an appropriate entry
for publications in Angewandte Chemie where both English and
German should be cited simultaneously.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/chembst/ChemCommun.bst
%{_texmfdistdir}/bibtex/bst/chembst/ChemEurJ.bst
%{_texmfdistdir}/bibtex/bst/chembst/InorgChem.bst
%{_texmfdistdir}/bibtex/bst/chembst/JAmChemSoc.bst
%{_texmfdistdir}/bibtex/bst/chembst/JAmChemSoc_all.bst
%{_texmfdistdir}/bibtex/bst/chembst/cv.bst
%doc %{_texmfdistdir}/doc/latex/chembst/README
%doc %{_texmfdistdir}/doc/latex/chembst/chembst.pdf
#- source
%doc %{_texmfdistdir}/source/latex/chembst/chembst.dtx
%doc %{_texmfdistdir}/source/latex/chembst/chembst.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9492 |21cr|texlive-chemformula-4.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chemformula
Version:	4.15
Release:	1
Summary:	Tex module for chemical formulas
Group:      Education	
URL:		http://ctan.org/tex-archive/macros/latex/contrib/chemformula
License:	The LaTeX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemformula.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemformula.doc.tar.xz
BuildArch:      noarch
BuildRequires:	texlive-tlpkg
Requires:       texlive-units
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a command to typeset chemical formulas and reactions in support of other chemistry packages (such as chemmacros).
The package used to be distributed as a part of chemmacros. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9493 |21cr|texlive-chemgreek-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chemgreek
Version:	1.1
Release:	1
Summary:	Tex module for greek letters in chemical formulas
Group:      Education	
URL:		http://ctan.org/pkg/chemgreek
License:	The LaTeX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemgreek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemgreek.doc.tar.xz
BuildArch:      noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides upright Greek letters in support of other chemistry packages (such as chemmacros).
The package used to be distributed as a part of chemmacros. 
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9494 |21cr|texlive-chemobabel-64778-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chemobabel

Summary:	Convert chemical structures from ChemDraw, MDL molfile or SMILES using Open Babel
Name:		texlive-chemobabel
Version:	64778
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(chemobabel.sty) = 2024
BuildArch:	noarch

%description
This package provides a way to convert and include chemical
structure graphics from various chemical formats, such as
ChemDraw files, MDL molfile or SMILES notations using Open
Babel. To use this LaTeX package, it is necessary to enable
execution of the following external commands via latex
-shell-escape. obabel (Open Babel) inkscape or rsvg-convert
(for SVG -> PDF/EPS conversion) pdfcrop or ps2eps (optional;
for cropping large margins of PDF/EPS)

%files
%doc %{_texmfdistdir}/doc/latex/chemobabel
%{_texmfdistdir}/tex/latex/chemobabel

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9495 |21cr|texlive-chemplants-60606-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chemplants

Summary:	Symbology to draw chemical plants with TikZ
Name:		texlive-chemplants
Version:	60606
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(chemplants.sty) = 2024
BuildArch:	noarch

%description
This package offers tools to draw simple or barely complex
schemes of chemical processes. The package defines several
standard symbols and styles to draw process units and streams.
The guiding light of the package is the UNICHIM regulation. All
of the symbols and styles are defined using tools of the TikZ
package, thus a basic knowledge of the logic of this powerful
tool is required to profitably use chemplants.

%files
%doc %{_texmfdistdir}/doc/latex/chemplants
%{_texmfdistdir}/tex/latex/chemplants

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9496 |21cr|texlive-chemschemex-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chemschemex
Version:	1.2
Release:	1
Summary:	Tex module for typesetting chemical schemes
Group:      Education	
URL:		http://ctan.org/tex-archive/macros/latex/contrib/chemschemex
License:	The LaTeX Project Public License 1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemschemex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemschemex.doc.tar.xz
BuildArch:      noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a command to typeset chemical formulas and reactions in support of other chemistry packages (such as chemmacros).
The package used to be distributed as a part of chemmacros. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9497 |21cr|texlive-chemsec-1.12a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chemsec
Version:	1.12a
Release:	2
Summary:	Automated creation of numeric entity labels
Group:		Publishing
URL:		https://ctan.org/pkg/chemsec
License:	The LATEX Project Public License 1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/chemsec.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/chemsec.doc.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/chemsec.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Packages provides creation of sequential numeric labels for entities in a document.
The motivating example is chemical structures in a scientific document.
The package can automatically output a full object name and label on the
first occurence in the document and just labels only on subsequent references.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9498 |21cr|texlive-cherokee-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21046
# category Package
# catalog-ctan /fonts/cherokee
# catalog-date 2008-12-25 20:17:19 +0100
# catalog-license noinfo
# catalog-version undef
Name:		texlive-cherokee
Version:	20190228
Release:	1
Summary:	A font for the Cherokee script
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cherokee
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cherokee.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cherokee.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Cherokee script was designed in 1821 by Segwoya. The
alphabet is essentially syllabic, only 6 characters (a e i o s
u) correspond to Roman letters: the font encodes these to the
corresponding roman letter. The remaining 79 characters have
been arbitrarily encoded in the range 38-122; the cherokee
package provides commands that map each such syllable to the
appropriate character; for example, Segwoya himself would be
represented \Cse\Cgwo\Cya.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/cherokee/cherokee.mf
%{_texmfdistdir}/fonts/tfm/public/cherokee/cherokee.tfm
%{_texmfdistdir}/tex/latex/cherokee/cherokee.sty
%doc %{_texmfdistdir}/doc/fonts/cherokee/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9499 |21cr|texlive-chhaya-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chhaya

Summary:	Linguistic glossing in Marathi language
Name:		texlive-chhaya
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(chhaya.sty) = 2024
Provides:	tex(sankshep.tex) = 2024
BuildArch:	noarch

%description
muNbii vidyaapiitthaacyaa chaayaalekhn niymaavliis anusruun
bhaassaavaijnyaanik chaayaaNgaaNce sNkssep purvnnaaraa
aajnyaasNc. This package provides macros for linguistic
glossing as per the rules given by Mumbai University.

%files
%doc %{_texmfdistdir}/doc/latex/chhaya
%{_texmfdistdir}/tex/latex/chhaya

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9500 |21cr|texlive-chicago-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/chicago
# catalog-date 2008-12-25 20:17:19 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-chicago
Version:	20190228
Release:	1
Summary:	A "Chicago" bibliography style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/chicago
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chicago.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Chicago is a BibTeX style that follows the "B" reference style
of the 13th Edition of the Chicago manual of style; a LaTeX
package (to LaTeX 2.09 conventions) is also provided. The style
was derived from the newapa style.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/chicago/chicago.bst
%{_texmfdistdir}/tex/latex/chicago/chicago.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9501 |21cr|texlive-chicagoa-52567-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chicagoa

Summary:	"Chicago" bibliography style with annotations
Name:		texlive-chicagoa
Version:	52567
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a modification of the author's chicago style, to
support an 'annotation' field in bibliographies.

%files
%{_texmfdistdir}/bibtex/bst/chicagoa

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9502 |21cr|texlive-chicago-annote-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/chicago-annote/chicago-annote.bst
# catalog-date 2009-02-03 15:12:24 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-chicago-annote
Version:	20190228
Release:	1
Summary:	Chicago-based annotated BibTeX style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/chicago-annote/chicago-annote.bst
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chicago-annote.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chicago-annote.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a revision of chicagoa.bst, using the commonly-used
annote field in place of the original's annotation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/chicago-annote/chicago-annote.bst
%doc %{_texmfdistdir}/doc/bibtex/chicago-annote/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9503 |21cr|texlive-chifoot-57312-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chifoot

Summary:	Chicago-style footnote formatting
Name:		texlive-chifoot
Version:	57312
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(chifoot.sty) = 2024
BuildArch:	noarch

%description
A very short snippet. Will set the footnotes to be conformant
with the Chicago style, so the footnotes at the bottom of the
page are now marked with a full-sized number, rather than with
a superscript number.

%files
%doc %{_texmfdistdir}/doc/latex/chifoot
%{_texmfdistdir}/tex/latex/chifoot

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9504 |21cr|texlive-chinesechess-63276-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chinesechess

Summary:	Typeset Chinese chess with l3draw
Name:		texlive-chinesechess
Version:	63276
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(chinesechess.sty) = 2024
BuildArch:	noarch

%description
This LaTeX3 package based on l3draw provides macros and an
environment for Chinese chess manual writing.

%files
%doc %{_texmfdistdir}/doc/latex/chinesechess
%{_texmfdistdir}/tex/latex/chinesechess

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9505 |21cr|texlive-chinese-jfm-57758-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chinese-jfm

Summary:	Luatexja-jfm files for Chinese typesetting
Name:		texlive-chinese-jfm
Version:	57758
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
ChineseJFM is a series of luatexja-jfm files for better Chinese
typesetting, providing quanjiao, banjiao, and kaiming three
styles and other fancy features. It can be used for both
horizontal and vertical writing mode in Simplified/Traditional
Chinese or Japanese fonts.

%files
%doc %{_texmfdistdir}/doc/luatex/chinese-jfm
%{_texmfdistdir}/tex/luatex/chinese-jfm

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9506 |21cr|texlive-chivo-65029-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chivo

Summary:	Using the free Chivo fonts with LaTeX
Name:		texlive-chivo
Version:	65029
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(chi_24xxsv.enc) = 2024
Provides:	tex(chi_2lqlus.enc) = 2024
Provides:	tex(chi_3avctt.enc) = 2024
Provides:	tex(chi_bpya7g.enc) = 2024
Provides:	tex(chi_bv7x5e.enc) = 2024
Provides:	tex(chi_e6xqta.enc) = 2024
Provides:	tex(chi_enwuwl.enc) = 2024
Provides:	tex(chi_fiyauo.enc) = 2024
Provides:	tex(chi_flfbvu.enc) = 2024
Provides:	tex(chi_g5vh6e.enc) = 2024
Provides:	tex(chi_h6jra2.enc) = 2024
Provides:	tex(chi_hlkxho.enc) = 2024
Provides:	tex(chi_htgzz3.enc) = 2024
Provides:	tex(chi_k3a3gz.enc) = 2024
Provides:	tex(chi_krtxg6.enc) = 2024
Provides:	tex(chi_ksf2oq.enc) = 2024
Provides:	tex(chi_lad3zv.enc) = 2024
Provides:	tex(chi_mwxmvo.enc) = 2024
Provides:	tex(chi_oreysz.enc) = 2024
Provides:	tex(chi_phg2dy.enc) = 2024
Provides:	tex(chi_qszeh7.enc) = 2024
Provides:	tex(chi_qxdnz3.enc) = 2024
Provides:	tex(chi_rymxky.enc) = 2024
Provides:	tex(chi_s4nbci.enc) = 2024
Provides:	tex(chi_skmp7i.enc) = 2024
Provides:	tex(chi_sol2hx.enc) = 2024
Provides:	tex-chivo = 2024
Provides:	tex(Chivo.map) = 2024
Provides:	tex(Chivo.sty) = 2024
Provides:	tex(chi_wxmaut.enc) = 2024
Provides:	tex(chi_zvnssh.enc) = 2024
Provides:	tex(LY1Chivo-Dnom.fd) = 2024
Provides:	tex(LY1Chivo-Inf.fd) = 2024
Provides:	tex(LY1Chivo-LF.fd) = 2024
Provides:	tex(LY1Chivo-Numr.fd) = 2024
Provides:	tex(LY1Chivo-OsF.fd) = 2024
Provides:	tex(LY1Chivo-Sup.fd) = 2024
Provides:	tex(LY1Chivo-TLF.fd) = 2024
Provides:	tex(LY1Chivo-TOsF.fd) = 2024
Provides:	tex(OT1Chivo-Dnom.fd) = 2024
Provides:	tex(OT1Chivo-Inf.fd) = 2024
Provides:	tex(OT1Chivo-LF.fd) = 2024
Provides:	tex(OT1Chivo-Numr.fd) = 2024
Provides:	tex(OT1Chivo-OsF.fd) = 2024
Provides:	tex(OT1Chivo-Sup.fd) = 2024
Provides:	tex(OT1Chivo-TLF.fd) = 2024
Provides:	tex(OT1Chivo-TOsF.fd) = 2024
Provides:	tex(T1Chivo-Dnom.fd) = 2024
Provides:	tex(T1Chivo-Inf.fd) = 2024
Provides:	tex(T1Chivo-LF.fd) = 2024
Provides:	tex(T1Chivo-Numr.fd) = 2024
Provides:	tex(T1Chivo-OsF.fd) = 2024
Provides:	tex(T1Chivo-Sup.fd) = 2024
Provides:	tex(T1Chivo-TLF.fd) = 2024
Provides:	tex(T1Chivo-TOsF.fd) = 2024
Provides:	tex(TS1Chivo-LF.fd) = 2024
Provides:	tex(TS1Chivo-OsF.fd) = 2024
Provides:	tex(TS1Chivo-TLF.fd) = 2024
Provides:	tex(TS1Chivo-TOsF.fd) = 2024
BuildArch:	noarch

%description
This work provides the necessary files to use the Chivo fonts
with LaTeX. Chivo is a set of eight fonts provided by Hector
Gatti & Omnibus Team under the Open Font License (OFL), version
1.1. The fonts are copyright (c) 2011-2019, Omnibus-Type.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/chivo/
%{_texmfdistdir}/fonts/map/dvips/chivo/
%{_texmfdistdir}/fonts/opentype/public/chivo/
%{_texmfdistdir}/fonts/tfm/public/chivo/
%{_texmfdistdir}/fonts/type1/public/chivo/
%{_texmfdistdir}/fonts/vf/public/chivo/
%{_texmfdistdir}/tex/latex/chivo/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9507 |21cr|texlive-chktex-20191119-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chktex
Version:	20191119
Release:	2
Summary:	Check for errors in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/chktex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chktex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chktex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-chktex.bin

%description
The program reports typographic and other errors in LaTeX
documents. Filters are also provided for checking the LaTeX
parts of CWEB documents.

#-----------------------------------------------------------------------
%files
%{_bindir}/chkweb
%{_bindir}/deweb
%{_texmfdistdir}/chktex/chktexrc
%{_texmfdistdir}/scripts/chktex/chkweb.sh
%{_texmfdistdir}/scripts/chktex/deweb.pl
%doc %{_texmfdistdir}/doc/chktex/ChkTeX.pdf
%doc %{_mandir}/man1/chktex.1*
%doc %{_texmfdistdir}/doc/man/man1/chktex.man1.pdf
%doc %{_mandir}/man1/chkweb.1*
%doc %{_texmfdistdir}/doc/man/man1/chkweb.man1.pdf
%doc %{_mandir}/man1/deweb.1*
%doc %{_texmfdistdir}/doc/man/man1/deweb.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/chktex/chkweb.sh chkweb
    ln -sf %{_texmfdistdir}/scripts/chktex/deweb.pl deweb
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9508 |21cr|texlive-chordbox-51000-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname chordbox

Summary:	Draw chord diagrams
Name:		texlive-chordbox
Version:	51000
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(chordbox.sty) = 2024
BuildArch:	noarch

%description
This package provides two macros for drawing chord diagrams, as
may be found for example in chord charts/books and educational
materials. They are composed as TikZ pictures and have several
options to modify their appearance.

%files
%doc %{_texmfdistdir}/doc/latex/chordbox
%{_texmfdistdir}/tex/latex/chordbox

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9509 |21cr|texlive-chronosys-1.20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26700
# category Package
# catalog-ctan /macros/latex/contrib/chronosys
# catalog-date 2012-05-28 13:36:39 +0200
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-chronosys
Version:	1.20
Release:	7
Summary:	Drawing time-line diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chronosys
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chronosys.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chronosys.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Macros to produce time line diagrams. Interfaces for Plain TeX,
Context and LaTeX are provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/chronosys/chronosys.sty
%{_texmfdistdir}/tex/generic/chronosys/chronosys.tex
%{_texmfdistdir}/tex/generic/chronosys/chronosyschr.tex
%{_texmfdistdir}/tex/generic/chronosys/x-chronosys.tex
%doc %{_texmfdistdir}/doc/generic/chronosys/README
%doc %{_texmfdistdir}/doc/generic/chronosys/docchronosys_en.pdf
%doc %{_texmfdistdir}/doc/generic/chronosys/docchronosys_en.tex
%doc %{_texmfdistdir}/doc/generic/chronosys/docchronosys_fr.pdf
%doc %{_texmfdistdir}/doc/generic/chronosys/docchronosys_fr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9510 |21cr|texlive-chscite-2.9999-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28552
# category Package
# catalog-ctan /macros/latex/contrib/chscite
# catalog-date 2012-05-14 12:19:39 +0200
# catalog-license lppl1.2
# catalog-version 2.999
Name:		texlive-chscite
Version:	2.9999
Release:	2
Summary:	Bibliography style for Chalmers University of Technology
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chscite
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chscite.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chscite.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chscite.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package, heavily based on the harvard package for Harvard-
style citations, provides a citation suite for students at
Chalmers University of Technology that follows given
recommendations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/chscite/chscite.bst
%{_texmfdistdir}/tex/latex/chscite/chscite.sty
%doc %{_texmfdistdir}/doc/latex/chscite/README
%doc %{_texmfdistdir}/doc/latex/chscite/chscite.pdf
#- source
%doc %{_texmfdistdir}/source/latex/chscite/chscite.dtx
%doc %{_texmfdistdir}/source/latex/chscite/chscite.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9511 |21cr|texlive-chs-physics-report-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chs-physics-report
Version:	1.0
Release:	1
Summary:	Physics lab reports for Carmel High School
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/chs-physics-report
License:	CC BY-SA 3.0
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chs-physics-report.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chs-physics-report.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package may optionally be used by students at Carmel High
School in Indiana in the United States to write physics lab
reports for FW physics courses. As many students are beginners
at LaTeX, it also attempts to simplify the report-writing
process by offering macros for commonly used notation and by
automatically formatting the documents for students who will
only use TeX for mathematics and not typesetting. The package
depends on amsmath, calc, fancyhdr, geometry, graphicx,
letltxmacro, titlesec, transparent, and xcolor.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9512 |21cr|texlive-churchslavonic-42751-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname churchslavonic

Summary:	Typesetting documents in Church Slavonic language using Unicode
Name:		texlive-churchslavonic
Version:	42751
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-churchslavonic = 2024
Provides:	tex(churchslavonic.sty) = 2024
Provides:	tex(cu-calendar.sty) = 2024
Provides:	tex(cu-kinovar.sty) = 2024
Provides:	tex(cu-num.sty) = 2024
Provides:	tex(cu-util.sty) = 2024
BuildArch:	noarch

%description
The package provides fonts, hyphenation patterns and supporting
macros to typeset Church Slavonic texts.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/churchslavonic/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9513 |21cr|texlive-cinzel-64550-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cinzel

Summary:	LaTeX support for Cinzel and Cinzel Decorative fonts
Name:		texlive-cinzel
Version:	64550
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex-cinzel = 2024
Provides:	tex(cinzel.map) = 2024
Provides:	tex(cinzel.sty) = 2024
Provides:	tex(cnzl_7luz43.enc) = 2024
Provides:	tex(cnzl_7t2zcj.enc) = 2024
Provides:	tex(cnzl_aakhvz.enc) = 2024
Provides:	tex(cnzl_k6z3ge.enc) = 2024
Provides:	tex(LY1CinzelDecorative-LF.fd) = 2024
Provides:	tex(LY1Cinzel-LF.fd) = 2024
Provides:	tex(OT1CinzelDecorative-LF.fd) = 2024
Provides:	tex(OT1Cinzel-LF.fd) = 2024
Provides:	tex(T1CinzelDecorative-LF.fd) = 2024
Provides:	tex(T1Cinzel-LF.fd) = 2024
Provides:	tex(TS1CinzelDecorative-LF.fd) = 2024
Provides:	tex(TS1Cinzel-LF.fd) = 2024
BuildArch:	noarch

%description
Cinzel and Cinzel Decorative fonts, designed by Natanael Gama
Natanael Gama), find their inspiration in first century roman
inscriptions, and are based on classical proportions. Cinzel is
all-caps (similar to Trajan and Michelangelo), but is available
in three weights (Regular, Bold, Black). There are no italic
fonts, but there are Decorative variants, which can be selected
by the usual italic-selection commands in the package's LaTeX
support.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/cinzel/
%{_texmfdistdir}/fonts/map/dvips/cinzel/
%{_texmfdistdir}/fonts/tfm/ndiscovered/cinzel/
%{_texmfdistdir}/fonts/truetype/ndiscovered/cinzel/
%{_texmfdistdir}/fonts/type1/ndiscovered/cinzel/
%{_texmfdistdir}/fonts/vf/ndiscovered/cinzel/
%{_texmfdistdir}/tex/latex/cinzel/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9514 |21cr|texlive-circledsteps-63255-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname circledsteps

Summary:	Typeset circled numbers
Name:		texlive-circledsteps
Version:	63255
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(circledsteps.sty) = 2024
BuildArch:	noarch

%description
This package generates circled numbers (or other kinds of
markers or small text) to mark "steps" in procedures,
exercises, and so on.

%files
%doc %{_texmfdistdir}/doc/latex/circledsteps
%{_texmfdistdir}/tex/latex/circledsteps

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9515 |21cr|texlive-circledtext-63166-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname circledtext

Summary:	Create circled text
Name:		texlive-circledtext
Version:	63166
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(circledtext.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides a macro \circledtext to typeset
circled text. Its starred version can produce an inverted
version.

%files
%doc %{_texmfdistdir}/doc/latex/circledtext
%{_texmfdistdir}/tex/latex/circledtext

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9516 |21cr|texlive-circuit-macros-66549-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname circuit-macros

Summary:	M4 macros for electric circuit diagrams
Name:		texlive-circuit-macros
Version:	66549
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(boxdims.sty) = 2024
BuildArch:	noarch

%description
A set of m4 macros for drawing high-quality electric circuits
containing fundamental elements, amplifiers, transistors, and
basic logic gates to include in TeX, LaTeX, or similar
documents. Some tools and examples for other types of diagrams
are also included. The macros can be evaluated to drawing
commands in the pic language, which is very easy to understand
and which has a good power/complexity ratio. Pic contains
elements of a simple programming language, and is well-suited
to line drawings requiring parametric or conditional
components, fine tuning, significant geometric calculations or
repetition, or that are naturally block structured or tree
structured. (The m4 and pic processors are readily available
for Unix and PC machines.) Alternative output macros can create
TeX output to be read by pstricks, TikZ commands for use by the
pgf bundle, or SVG.

%files
%doc %{_texmfdistdir}/doc/latex/circuit-macros
%{_texmfdistdir}/tex/latex/circuit-macros

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9517 |21cr|texlive-citeall-45975-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname citeall

Summary:	Cite all entries of a bbl created with biblatex
Name:		texlive-citeall
Version:	45975
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(xparse.sty)
Provides:	tex-citeall = 2024
Provides:	tex(citeall.sty) = 2024
BuildArch:	noarch

%description
This small package allows to cite all entries of a bbl-file
created with biblatex (v1.9).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/citeall/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9518 |21cr|texlive-citeref-47407-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname citeref

Summary:	Add reference-page-list to bibliography-items
Name:		texlive-citeref
Version:	47407
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(citeref.sty) = 2024
BuildArch:	noarch

%description
The package does its job without using the indexing facilities,
and needs no special \cite-replacement package.

%files
%doc %{_texmfdistdir}/doc/latex/citeref/
%{_texmfdistdir}/tex/latex/citeref/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9519 |21cr|texlive-cje-1.06-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cje
Version:	1.06
Release:	2
Summary:	LaTeX document class for CJE articles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cje
License:	lppl1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/cje.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/cje.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The cje article class allows authors to format their papers to
Canadian Journal of Economics style with minimum effort. The
class includes options for two other formats: "review" (double
spaced, for use at the submission stage) and "proof" (used by
the typesetters to prepare the proof authors will receive for
approval).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/bibtex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9520 |21cr|texlive-cjk-gs-integrate-20210625.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cjk-gs-integrate
Version:	20210625.0
Release:	1
Summary:	Tools to integrate CJK fonts into Ghostscript
Group:		Publishing
URL:		https://ctan.org/pkg/cjk-gs-integrate
License:	gpl3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjk-gs-integrate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjk-gs-integrate.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjk-gs-integrate.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This script searches a list of directories for CJK fonts, and makes them available to an installed Ghostscript. 
In the simplest case, with sufficient privileges, a run without arguments should result in a complete setup of Ghostscript.


#-----------------------------------------------------------------------
%files
%{_bindir}/cjk-gs-integrate
%{_texmfdistdir}/scripts/cjk-gs-integrate/cjk-gs-integrate.pl
%{_texmfdistdir}/fonts/misc/cjk-gs-integrate
%doc %{_texmfdistdir}/doc/fonts/cjk-gs-integrate

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/cjk-gs-integrate/cjk-gs-integrate.pl cjk-gs-integrate
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9521 |21cr|texlive-clara-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname clara

Summary:	A serif font family
Name:		texlive-clara
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_2loy6v.enc) = 2024
Provides:	tex(a_2qt3g3.enc) = 2024
Provides:	tex(a_2sd372.enc) = 2024
Provides:	tex(a_3o7uxl.enc) = 2024
Provides:	tex(a_3xxmye.enc) = 2024
Provides:	tex(a_4fqbn7.enc) = 2024
Provides:	tex(a_4vguwe.enc) = 2024
Provides:	tex(a_5cnopr.enc) = 2024
Provides:	tex(a_6vj46g.enc) = 2024
Provides:	tex(a_7ho2jb.enc) = 2024
Provides:	tex(a_agquuh.enc) = 2024
Provides:	tex(a_awbndy.enc) = 2024
Provides:	tex(a_bcypke.enc) = 2024
Provides:	tex(a_bgeg5m.enc) = 2024
Provides:	tex(a_bjoktg.enc) = 2024
Provides:	tex(a_cf2qhu.enc) = 2024
Provides:	tex(a_cfejg4.enc) = 2024
Provides:	tex(a_d6finu.enc) = 2024
Provides:	tex(a_e42l7t.enc) = 2024
Provides:	tex(a_evkdvu.enc) = 2024
Provides:	tex(a_fsonrn.enc) = 2024
Provides:	tex(a_fyi7ch.enc) = 2024
Provides:	tex(a_g7oet2.enc) = 2024
Provides:	tex(a_h4oqw4.enc) = 2024
Provides:	tex(a_hbnu3g.enc) = 2024
Provides:	tex(a_hwn42e.enc) = 2024
Provides:	tex(a_hz5tc2.enc) = 2024
Provides:	tex(a_hzws3u.enc) = 2024
Provides:	tex(a_i325yp.enc) = 2024
Provides:	tex(a_iuscur.enc) = 2024
Provides:	tex(a_juafn7.enc) = 2024
Provides:	tex(a_k2goe4.enc) = 2024
Provides:	tex(a_kc6xc3.enc) = 2024
Provides:	tex(a_kkzari.enc) = 2024
Provides:	tex(a_klgvoj.enc) = 2024
Provides:	tex(a_lpkscq.enc) = 2024
Provides:	tex(a_mfkt2q.enc) = 2024
Provides:	tex(a_nggrjd.enc) = 2024
Provides:	tex(a_njaghn.enc) = 2024
Provides:	tex(a_nms33f.enc) = 2024
Provides:	tex(a_nppcjs.enc) = 2024
Provides:	tex(a_nrthq5.enc) = 2024
Provides:	tex(a_nw6hje.enc) = 2024
Provides:	tex(a_nyfqzj.enc) = 2024
Provides:	tex(a_nygz6z.enc) = 2024
Provides:	tex(a_o7cu7p.enc) = 2024
Provides:	tex(a_od3gqf.enc) = 2024
Provides:	tex(a_okrfpx.enc) = 2024
Provides:	tex(a_olbow4.enc) = 2024
Provides:	tex(a_ouhtwv.enc) = 2024
Provides:	tex(a_pq5qh7.enc) = 2024
Provides:	tex(a_rjjgaj.enc) = 2024
Provides:	tex(a_rn6hxp.enc) = 2024
Provides:	tex(a_rxba6k.enc) = 2024
Provides:	tex(a_ryhnwz.enc) = 2024
Provides:	tex(a_sax4h4.enc) = 2024
Provides:	tex(a_sgjkrw.enc) = 2024
Provides:	tex(a_tifa47.enc) = 2024
Provides:	tex(a_tlcr5j.enc) = 2024
Provides:	tex(a_tloikb.enc) = 2024
Provides:	tex(a_tsfqnz.enc) = 2024
Provides:	tex(a_tvfcps.enc) = 2024
Provides:	tex(a_udnfrw.enc) = 2024
Provides:	tex(a_vij5s5.enc) = 2024
Provides:	tex(a_vn5qte.enc) = 2024
Provides:	tex(a_vrmtcj.enc) = 2024
Provides:	tex(a_vzapqb.enc) = 2024
Provides:	tex(a_wtwzna.enc) = 2024
Provides:	tex(a_xhofkf.enc) = 2024
Provides:	tex(a_xojh7w.enc) = 2024
Provides:	tex(a_xxjjii.enc) = 2024
Provides:	tex(a_y2j5na.enc) = 2024
Provides:	tex(a_y55f6a.enc) = 2024
Provides:	tex(a_ylukkp.enc) = 2024
Provides:	tex(a_ytymvu.enc) = 2024
Provides:	tex(Clara.map) = 2024
Provides:	tex(clara.sty) = 2024
Provides:	tex(LGRClara-Sup.fd) = 2024
Provides:	tex(LGRClara-TLF.fd) = 2024
Provides:	tex(LGRClara-TOsF.fd) = 2024
Provides:	tex(LY1Clara-Sup.fd) = 2024
Provides:	tex(LY1Clara-TLF.fd) = 2024
Provides:	tex(LY1Clara-TOsF.fd) = 2024
Provides:	tex(OT1Clara-Sup.fd) = 2024
Provides:	tex(OT1Clara-TLF.fd) = 2024
Provides:	tex(OT1Clara-TOsF.fd) = 2024
Provides:	tex(T1Clara-Sup.fd) = 2024
Provides:	tex(T1Clara-TLF.fd) = 2024
Provides:	tex(T1Clara-TOsF.fd) = 2024
Provides:	tex(T2AClara-Sup.fd) = 2024
Provides:	tex(T2AClara-TLF.fd) = 2024
Provides:	tex(T2AClara-TOsF.fd) = 2024
Provides:	tex(T2BClara-Sup.fd) = 2024
Provides:	tex(T2BClara-TLF.fd) = 2024
Provides:	tex(T2BClara-TOsF.fd) = 2024
Provides:	tex(T2CClara-Sup.fd) = 2024
Provides:	tex(T2CClara-TLF.fd) = 2024
Provides:	tex(T2CClara-TOsF.fd) = 2024
Provides:	tex(TS1Clara-TLF.fd) = 2024
Provides:	tex(TS1Clara-TOsF.fd) = 2024
BuildArch:	noarch

%description
Clara is a type family created specially by Seamas O Brogain
for printing A Dictionary of Editing (2015). The family
includes italic, bold, bold italic, and small capitals, while
the character set includes (monotonic) Greek, Cyrillic, ogham,
phonetic and mathematical ranges, scribal abbreviations and
other specialist characters. The fonts also include some
OpenType features (such as ligature substitution, small
capitals, and old-style numerals) and variant forms for
particular languages.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/clara
%{_texmfdistdir}/fonts/map/dvips/clara
%{_texmfdistdir}/fonts/opentype/public/clara
%{_texmfdistdir}/fonts/tfm/public/clara
%{_texmfdistdir}/fonts/type1/public/clara
%{_texmfdistdir}/fonts/vf/public/clara
%{_texmfdistdir}/tex/latex/clara

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9522 |21cr|texlive-classpack-1.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-classpack
Version:	1.19
Release:	1
Summary:	XML mastering for LATEX classes and packages
Group:		Publishing
URL:		https://www.ctan.org/pkg/classpack
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/classpack.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/classpack.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/classpack.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an experiment in using XML (specifically DocBook 5) to mark up and maintain LATEX classes and packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/classpack/*
%doc %{_texmfdistdir}/doc/support/classpack/*
%doc %{_texmfdistdir}/source/support/classpack/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9523 |21cr|texlive-cleanthesis-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cleanthesis
Version:	0.4.1
Release:	1
Summary:	A clean LaTeX style for thesis documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cleanthesis
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/cleanthesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/cleanthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a clean, simple, and elegant LaTeX style for
thesis documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9524 |21cr|texlive-clearsans-64400-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname clearsans

Summary:	Clear Sans fonts with LaTeX support
Name:		texlive-clearsans
Version:	64400
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex-clearsans = 2024
Provides:	tex(ClearSans.map) = 2024
Provides:	tex(ClearSans.sty) = 2024
Provides:	tex(clr_c5eikb.enc) = 2024
Provides:	tex(clr_lz5qp4.enc) = 2024
Provides:	tex(clr_nrghxx.enc) = 2024
Provides:	tex(clr_zxbkm4.enc) = 2024
Provides:	tex(LY1ClearSans-TLF.fd) = 2024
Provides:	tex(OT1ClearSans-TLF.fd) = 2024
Provides:	tex(T1ClearSans-TLF.fd) = 2024
Provides:	tex(TS1ClearSans-TLF.fd) = 2024
BuildArch:	noarch

%description
Clear Sans was designed by Daniel Ratighan at Monotype under
the direction of the User Experience team at Intel's Open
weights (regular, medium, and bold) with corresponding italics,
plus light and thin upright (without italics). Clear Sans has
minimized, unambiguous characters and slightly narrow
proportions, making it ideal for UI design. Its strong,
recognizable forms avoid distracting ambiguity, making Clear
Sans comfortable for reading short UI labels and long passages
in both screen and print. The fonts are available in both
TrueType and Type 1 formats.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/clearsans/
%{_texmfdistdir}/fonts/map/dvips/clearsans/
%{_texmfdistdir}/fonts/tfm/intel/clearsans/
%{_texmfdistdir}/fonts/truetype/intel/clearsans/
%{_texmfdistdir}/fonts/type1/intel/clearsans/
%{_texmfdistdir}/fonts/vf/intel/clearsans/
%{_texmfdistdir}/tex/latex/clearsans/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9525 |21cr|texlive-clicks-64602-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname clicks

Summary:	Slide Deck Animation
Name:		texlive-clicks
Version:	64602
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(clicks.sty) = 2024
BuildArch:	noarch

%description
With the help of this package you can simulate animation in
your slide deck, making it look similar to what PowerPoint can
do.

%files
%doc %{_texmfdistdir}/doc/latex/clicks
%{_texmfdistdir}/tex/latex/clicks

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9526 |21cr|texlive-clistmap-61811-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname clistmap

Summary:	Map and iterate over LaTeX3 clists
Name:		texlive-clistmap
Version:	61811
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(clistmap.sty) = 2024
BuildArch:	noarch

%description
This package provides a key-based interface for defining
templates whose job is to partition LaTeX3 clists and map
differentiatedly across its components.

%files
%doc %{_texmfdistdir}/doc/latex/clistmap
%{_texmfdistdir}/tex/latex/clistmap

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9527 |21cr|texlive-clrscode3e-20140807-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-clrscode3e
Version:	20140807
Release:	1
Summary:	This package allows you to typeset pseudocode in the style of Introduction to Algorithms
Group:		Publishing
URL:		https://ctan.org/pkg/clrscode3e
License:	The LATEX Project Public License
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/clrscode3e.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/clrscode3e.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows you to typeset pseudocode in the style of 
Introduction to Algorithms, Third edition, by Cormen, Leiserson, Rivest, and Stein. 
The package was written by the authors. Use the commands the same way the package’s 
author did when writing the book, and your output will look just like the pseudocode in the text.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9528 |21cr|texlive-cmathbb-56414-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cmathbb

Summary:	Computer modern mathematical blackboard bold font
Name:		texlive-cmathbb
Version:	56414
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_ghauqe.enc) = 2024
Provides:	tex(a_jggq4p.enc) = 2024
Provides:	tex(a_ns6ls2.enc) = 2024
Provides:	tex(a_szuv3s.enc) = 2024
Provides:	tex(cmathbb.map) = 2024
Provides:	tex(cmathbb.sty) = 2024
Provides:	tex(ucmath.fd) = 2024
BuildArch:	noarch

%description
This font contains all digits and latin letters uppercase and
lowercase for the Computer Modern font family in blackboard
bold.

%files
%doc %{_texmfdistdir}/doc/fonts/cmathbb
%{_texmfdistdir}/fonts/enc/dvips/cmathbb
%{_texmfdistdir}/fonts/map/dvips/cmathbb
%{_texmfdistdir}/fonts/tfm/public/cmathbb
%{_texmfdistdir}/fonts/type1/public/cmathbb
%{_texmfdistdir}/fonts/vf/public/cmathbb
%{_texmfdistdir}/tex/latex/cmathbb

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9529 |21cr|texlive-cmexb-54074-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cmexb

Summary:	PFB font support
Name:		texlive-cmexb
Version:	54074
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(cmexb10.pfb) = 2024
Provides:	tex(cmexb10.tfm) = 2024
Provides:	tex-cmexb = 2024
Provides:	tex(cmexb.map) = 2024
BuildArch:	noarch

%description
Computer Modern Math Extension bold, metrics and .pfb file.
Made by Petr Olsak via autotracing.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/map/dvips/cmexb/
%{_texmfdistdir}/fonts/tfm/public/cmexb/
%{_texmfdistdir}/fonts/type1/public/cmexb/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9530 |21cr|texlive-cm-lgc-0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/ps-type1/cm-lgc
# catalog-date 2008-06-12 19:44:55 +0200
# catalog-license gpl
# catalog-version 0.5
Name:		texlive-cm-lgc
Version:	0.5
Release:	8
Summary:	Type 1 CM-based fonts for Latin, Greek and Cyrillic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ps-type1/cm-lgc
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cm-lgc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cm-lgc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts are converted from MetaFont sources of the Computer
Modern font families, using textrace. Supported encodings are:
T1 (Latin), T2A (Cyrillic), LGR (Greek) and TS1. The package
also includes Unicode virtual fonts for use with Omega. The
font set is not a replacement for any of the other Computer
Modern-based font sets (for example, cm-super for Latin and
Cyrillic, or cbgreek for Greek), since it is available at a
single size only; it offers a compact set for 'general'
working. The fonts themselves are encoded to external
standards, and virtual fonts are provided for use with TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/cm-lgc
%{_texmfdistdir}/fonts/enc/dvips/cm-lgc
%{_texmfdistdir}/fonts/map/dvips/cm-lgc
%{_texmfdistdir}/fonts/ofm/public/cm-lgc
%{_texmfdistdir}/fonts/ovf/public/cm-lgc
%{_texmfdistdir}/fonts/tfm/public/cm-lgc
%{_texmfdistdir}/fonts/type1/public/cm-lgc
%{_texmfdistdir}/fonts/vf/public/cm-lgc
%{_texmfdistdir}/tex/latex/cm-lgc
%doc %{_texmfdistdir}/doc/fonts/cm-lgc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9531 |21cr|texlive-cmll-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17964
# category Package
# catalog-ctan /fonts/cmll
# catalog-date 2010-04-20 23:51:50 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-cmll
Version:	20190228
Release:	1
Summary:	Symbols for linear logic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cmll
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmll.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmll.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmll.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a very small font set that contain some symbols useful
in linear logic, which are apparently not available elsewhere.
Variants are included for use with Computer Modern serif and
sans-serif and with the AMS Euler series. The font is provided
both as MetaFont source, and in Adobe Type 1 format. LaTeX
support is provided. format.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/cmll/cmll.map
%{_texmfdistdir}/fonts/source/public/cmll/cmllbx10.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllbx12.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllbx5.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllbx6.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllbx7.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllbx8.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllbx9.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllr10.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllr12.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllr17.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllr5.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllr6.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllr7.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllr8.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllr9.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllss10.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllss12.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllss17.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllss8.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllss9.mf
%{_texmfdistdir}/fonts/source/public/cmll/cmllssbx10.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullbx10.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullbx5.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullbx6.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullbx7.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullbx8.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullbx9.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullr10.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullr5.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullr6.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullr7.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullr8.mf
%{_texmfdistdir}/fonts/source/public/cmll/eullr9.mf
%{_texmfdistdir}/fonts/source/public/cmll/llcommon.mf
%{_texmfdistdir}/fonts/source/public/cmll/lleusym.mf
%{_texmfdistdir}/fonts/source/public/cmll/llsymbols.mf
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/cmllssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmll/eullr9.tfm
%{_texmfdistdir}/fonts/type1/public/cmll/cmllbx10.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllbx12.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllbx5.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllbx6.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllbx7.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllbx8.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllbx9.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllr10.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllr12.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllr17.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllr5.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllr6.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllr7.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllr8.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllr9.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllss10.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllss12.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllss17.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllss8.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllss9.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/cmllssbx10.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullbx10.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullbx5.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullbx6.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullbx7.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullbx8.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullbx9.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullr10.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullr5.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullr6.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullr7.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullr8.pfb
%{_texmfdistdir}/fonts/type1/public/cmll/eullr9.pfb
%{_texmfdistdir}/tex/latex/cmll/cmll.sty
%{_texmfdistdir}/tex/latex/cmll/ucmllr.fd
%{_texmfdistdir}/tex/latex/cmll/ucmllss.fd
%{_texmfdistdir}/tex/latex/cmll/ueull.fd
%doc %{_texmfdistdir}/doc/fonts/cmll/README
%doc %{_texmfdistdir}/doc/fonts/cmll/cmll.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cmll/cmll.dtx
%doc %{_texmfdistdir}/source/latex/cmll/cmll.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9532 |21cr|texlive-cm-mf-extra-bold-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cm-mf-extra-bold

Summary:	Extra Metafont files for CM
Name:		texlive-cm-mf-extra-bold
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cmbcsc10.mf) = 2024
Provides:	tex(cmbcsc10.tfm) = 2024
Provides:	tex(cmbtex10.mf) = 2024
Provides:	tex(cmbtex10.tfm) = 2024
Provides:	tex(cmbtt10.mf) = 2024
Provides:	tex(cmbtt10.tfm) = 2024
Provides:	tex(cmbtt8.mf) = 2024
Provides:	tex(cmbtt8.tfm) = 2024
Provides:	tex(cmbtt9.mf) = 2024
Provides:	tex(cmbtt9.tfm) = 2024
Provides:	tex(cmexb10.mf) = 2024
Provides:	tex(cmttb10.mf) = 2024
Provides:	tex(cmttb10.tfm) = 2024
BuildArch:	noarch

%description
The bundle provides bold versions of cmcsc, cmex, cmtex and
cmtt fonts (all parts of the standard computer modern font
distribution), as Metafont base files.

%files
%{_texmfdistdir}/fonts/source/public/cm-mf-extra-bold/
%{_texmfdistdir}/fonts/tfm/public/cm-mf-extra-bold/

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9533 |21cr|texlive-cmpica-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/cmpica
# catalog-date 2008-11-15 17:22:14 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-cmpica
Version:	20190228
Release:	1
Summary:	A Computer Modern Pica variant
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cmpica
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmpica.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmpica.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An approximate equivalent of the Xerox Pica typeface; the font
is optimised for submitting fiction manuscripts to mainline
publishers. The font is a fixed-width one, rather less heavy
than Computer Modern typewriter. Emphasis for bold-face comes
from a wavy underline of each letter. The two fonts are
supplied as MetaFont source.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/cmpica/cmpica.mf
%{_texmfdistdir}/fonts/source/public/cmpica/cmpicab.mf
%{_texmfdistdir}/fonts/source/public/cmpica/cmpicati.mf
%{_texmfdistdir}/fonts/source/public/cmpica/pcpunct.mf
%{_texmfdistdir}/fonts/source/public/cmpica/pica.mf
%{_texmfdistdir}/fonts/tfm/public/cmpica/cmpica.tfm
%{_texmfdistdir}/fonts/tfm/public/cmpica/cmpicab.tfm
%{_texmfdistdir}/fonts/tfm/public/cmpica/cmpicati.tfm
%doc %{_texmfdistdir}/doc/latex/cmpica/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9534 |21cr|texlive-cmsrb-54706-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cmsrb

Summary:	Computer Modern for Serbian and Macedonian
Name:		texlive-cmsrb
Version:	54706
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cmsrbecmsrb1.enc) = 2024
Provides:	tex(cmsrbecmsrb2.enc) = 2024
Provides:	tex(cmsrb.map) = 2024
Provides:	tex(cmsrbot2.enc) = 2024
Provides:	tex(cmsrb.sty) = 2024
Provides:	tex(cmsrbt1.enc) = 2024
Provides:	tex(cmsrbt2a.enc) = 2024
Provides:	tex(cmsrbts1.enc) = 2024
Provides:	tex(cmsrbx2.enc) = 2024
Provides:	tex(ecmsrb1cmr.fd) = 2024
Provides:	tex(ecmsrb1cmsrbr.fd) = 2024
Provides:	tex(ecmsrb1cmsrbs.fd) = 2024
Provides:	tex(ecmsrb1cmsrbt.fd) = 2024
Provides:	tex(ecmsrb1enc.def) = 2024
Provides:	tex(ecmsrb2cmr.fd) = 2024
Provides:	tex(ecmsrb2cmsrbr.fd) = 2024
Provides:	tex(ecmsrb2cmsrbs.fd) = 2024
Provides:	tex(ecmsrb2cmsrbt.fd) = 2024
Provides:	tex(ecmsrb2enc.def) = 2024
Provides:	tex(ot2cmsrbr.fd) = 2024
Provides:	tex(ot2cmsrbs.fd) = 2024
Provides:	tex(ot2cmsrbt.fd) = 2024
Provides:	tex(t1cmsrbr.fd) = 2024
Provides:	tex(t1cmsrbs.fd) = 2024
Provides:	tex(t1cmsrbt.fd) = 2024
Provides:	tex(t2acmsrbr.fd) = 2024
Provides:	tex(t2acmsrbs.fd) = 2024
Provides:	tex(t2acmsrbt.fd) = 2024
Provides:	tex(ts1cmsrbr.fd) = 2024
Provides:	tex(ts1cmsrbs.fd) = 2024
Provides:	tex(ts1cmsrbt.fd) = 2024
Provides:	tex(x2cmsrbr.fd) = 2024
Provides:	tex(x2cmsrbs.fd) = 2024
Provides:	tex(x2cmsrbt.fd) = 2024
BuildArch:	noarch

%description
This package provides provides Adobe Type 1 Computer Modern
fonts for the Serbian and Macedonian languages. Although the
cm-super package provides great support for cyrillic script in
various languages, there remains a problem with italic variants
of some letters for Serbian and Macedonian. This package
includes the correct shapes for italic letters \cyrb, \cyrg,
\cyrd, \cyrp, and \cyrt. It also offers some improvements in
letters and accents used in the Serbian language. Supported
encodings are: T1, T2A, TS1, X2 and OT2. The OT2 encoding is
modified so that it is now easy to transcribe Latin text to
Cyrillic.

%files
%doc %{_texmfdistdir}/doc/fonts/cmsrb/
%{_texmfdistdir}/fonts/afm/public/cmsrb/
%{_texmfdistdir}/fonts/enc/dvips/cmsrb/
%{_texmfdistdir}/fonts/map/dvips/cmsrb/
%{_texmfdistdir}/fonts/tfm/public/cmsrb/
%{_texmfdistdir}/fonts/type1/public/cmsrb/
%{_texmfdistdir}/fonts/vf/public/cmsrb/
%{_texmfdistdir}/tex/latex/cmsrb/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9535 |21cr|texlive-cmtiup-2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cmtiup
Version:	2.1
Release:	2
Summary:	Upright punctuation with CM slanted
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cm/cmtiup
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmtiup.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmtiup.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The cmtiup fonts address a problem with the appearance of
punctuation in italic text in mathematical documents. To
achieve this, all punctuation characters are upright, and
kerning between letters and punctuation is adjusted to allow
for the italic correction. The fonts are implemented as a set
of vf files; a package for support in LaTeX 2e is provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/cmtiup
%{_texmfdistdir}/fonts/tfm/public/cmtiup
%{_texmfdistdir}/fonts/vf/public/cmtiup
%{_texmfdistdir}/tex/latex/cmtiup
%doc %{_texmfdistdir}/doc/latex/cmtiup

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9536 |21cr|texlive-cm-unicode-0.7.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19445
# category Package
# catalog-ctan /fonts/cm-unicode
# catalog-date 2010-07-13 15:28:23 +0200
# catalog-license ofl
# catalog-version 0.7.0
Name:		texlive-cm-unicode
Version:	0.7.0
Release:	8
Summary:	Computer Modern Unicode font family
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cm-unicode
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cm-unicode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cm-unicode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Computer Modern Unicode fonts were converted from metafont
sources using mftrace with autotrace backend and fontforge.
Some characters in several fonts are copied from Blue Sky type
1 fonts released by AMS. Currently the fonts contain glyphs
from Latin (Metafont ec, tc, vnr), Cyrillic (lh), Greek
(cbgreek when available) code sets and IPA extensions (from
tipa). This font set contains 33 fonts. This archive contains
AFM, PFB and OTF versions; the OTF version of the Computer
Modern Unicode fonts works with TeX engines that directly
support OpenType features, such as XeTeX and LuaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbbx.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbi.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbl.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbmo.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbmr.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbso.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbsr.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbtl.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbto.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbx.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunbxo.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunci.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunit.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunobi.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunobx.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunorm.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunoti.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunrb.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunrm.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunsi.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunsl.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunso.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunss.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunssdc.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunst.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunsx.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmuntb.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunti.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmuntt.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmuntx.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunui.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunvi.afm
%{_texmfdistdir}/fonts/afm/public/cm-unicode/cmunvt.afm
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-ec.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-ecsc.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-g.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-gsc.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-la.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-lasc.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-lb.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-lc.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-ld.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-rx.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-tc.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-tipa.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-tipx.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-ux.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-uxsc.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-unicode/cmu-vn.enc
%{_texmfdistdir}/fonts/map/dvips/cm-unicode/cmu.map
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbbx.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbi.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbl.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbmo.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbmr.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbso.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbsr.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbtl.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbto.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbx.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunbxo.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunci.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunit.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunobi.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunobx.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunorm.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunoti.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunrb.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunrm.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunsi.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunsl.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunso.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunss.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunssdc.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunst.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunsx.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmuntb.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunti.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmuntt.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmuntx.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunui.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunvi.otf
%{_texmfdistdir}/fonts/opentype/public/cm-unicode/cmunvt.otf
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbbx.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbi.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbl.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbmo.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbmr.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbso.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbsr.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbtl.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbto.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbx.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunbxo.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunci.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunit.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunobi.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunobx.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunorm.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunoti.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunrb.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunrm.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunsi.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunsl.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunso.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunss.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunssdc.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunst.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunsx.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmuntb.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunti.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmuntt.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmuntx.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunui.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunvi.pfb
%{_texmfdistdir}/fonts/type1/public/cm-unicode/cmunvt.pfb
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/Changes
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/FAQ
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/FontLog.txt
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/Fontmap.CMU.alias
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/Fontmap.CMU.otf
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/Fontmap.CMU.pfb
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/INSTALL
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/README
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/README.doc
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/TODO
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/cmunrm.pdf
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/cmunti.pdf
%doc %{_texmfdistdir}/doc/fonts/cm-unicode/config.cmu

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9537 |21cr|texlive-cmupint-54735-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cmupint

Summary:	Upright integral symbols for Computer Modern
Name:		texlive-cmupint
Version:	54735
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cmupint.map) = 2024
Provides:	tex(cmupint.sty) = 2024
Provides:	tex(ucmupint.fd) = 2024
BuildArch:	noarch

%description
This package contains various upright integral symbols to match
the Computer Modern font.

%files
%doc %{_texmfdistdir}/doc/fonts/cmupint
%{_texmfdistdir}/fonts/afm/public/cmupint
%{_texmfdistdir}/fonts/map/dvips/cmupint
%{_texmfdistdir}/fonts/source/public/cmupint
%{_texmfdistdir}/fonts/tfm/public/cmupint
%{_texmfdistdir}/fonts/type1/public/cmupint
%{_texmfdistdir}/tex/latex/cmupint

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9538 |21cr|texlive-cochineal-62063-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cochineal

Summary:	Cochineal fonts with LaTeX support
Name:		texlive-cochineal
Version:	62063
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(coch_2eakhu.enc) = 2024
Provides:	tex(coch_2expjo.enc) = 2024
Provides:	tex(coch_2gvyjv.enc) = 2024
Provides:	tex(coch_2wxnkf.enc) = 2024
Provides:	tex(coch_2zgday.enc) = 2024
Provides:	tex(coch_3brrog.enc) = 2024
Provides:	tex(coch_3q3crd.enc) = 2024
Provides:	tex(coch_3r6zg3.enc) = 2024
Provides:	tex(coch_3tt4zg.enc) = 2024
Provides:	tex(coch_47bkd3.enc) = 2024
Provides:	tex(coch_4agesf.enc) = 2024
Provides:	tex(coch_4plcvc.enc) = 2024
Provides:	tex(coch_5bitfe.enc) = 2024
Provides:	tex(coch_5f3gw2.enc) = 2024
Provides:	tex(coch_5o2hga.enc) = 2024
Provides:	tex(coch_5tib5i.enc) = 2024
Provides:	tex(coch_5tmqae.enc) = 2024
Provides:	tex(coch_5xilzy.enc) = 2024
Provides:	tex(coch_5xjvtq.enc) = 2024
Provides:	tex(coch_6lje3b.enc) = 2024
Provides:	tex(coch_6ry5ir.enc) = 2024
Provides:	tex(coch_6uoyes.enc) = 2024
Provides:	tex(coch_6wh55u.enc) = 2024
Provides:	tex(coch_6xmcha.enc) = 2024
Provides:	tex(coch_7fzfry.enc) = 2024
Provides:	tex(coch_7trhhc.enc) = 2024
Provides:	tex(coch_7v73vk.enc) = 2024
Provides:	tex(coch_aeaj7m.enc) = 2024
Provides:	tex(coch_aiajjq.enc) = 2024
Provides:	tex(cochalph.enc) = 2024
Provides:	tex(coch_alzuis.enc) = 2024
Provides:	tex(coch_awf6hz.enc) = 2024
Provides:	tex(coch_bat6hu.enc) = 2024
Provides:	tex(coch_bhnmej.enc) = 2024
Provides:	tex(coch_bi2nei.enc) = 2024
Provides:	tex(coch_bjqtqq.enc) = 2024
Provides:	tex(coch_bjtzvy.enc) = 2024
Provides:	tex(coch_bnbjdf.enc) = 2024
Provides:	tex(coch_bp2pg7.enc) = 2024
Provides:	tex(coch_cacm2n.enc) = 2024
Provides:	tex(coch_cbs7ow.enc) = 2024
Provides:	tex(coch_cuw7wa.enc) = 2024
Provides:	tex(coch_d2hjcw.enc) = 2024
Provides:	tex(coch_da7weg.enc) = 2024
Provides:	tex(coch_dbsvsj.enc) = 2024
Provides:	tex(coch_ddt3vr.enc) = 2024
Provides:	tex(coch_df5kan.enc) = 2024
Provides:	tex(coch_djzri5.enc) = 2024
Provides:	tex(coch_dwjlw5.enc) = 2024
Provides:	tex(coch_dx3muq.enc) = 2024
Provides:	tex(coch_dxwjai.enc) = 2024
Provides:	tex(coch_e745te.enc) = 2024
Provides:	tex(coch_e77avd.enc) = 2024
Provides:	tex(coch_ekjpcs.enc) = 2024
Provides:	tex(coch_eluj5m.enc) = 2024
Provides:	tex(coch_ermyhb.enc) = 2024
Provides:	tex(coch_fdemcn.enc) = 2024
Provides:	tex(coch_fgurd2.enc) = 2024
Provides:	tex(coch_g2axst.enc) = 2024
Provides:	tex(coch_gcpa6j.enc) = 2024
Provides:	tex(coch_gkpez6.enc) = 2024
Provides:	tex(coch_grutwx.enc) = 2024
Provides:	tex(coch_h2t4ei.enc) = 2024
Provides:	tex(coch_hqneph.enc) = 2024
Provides:	tex(coch_huz7n5.enc) = 2024
Provides:	tex(coch_ibp3xz.enc) = 2024
Provides:	tex(coch_ikkvry.enc) = 2024
Provides:	tex-cochineal = 2024
Provides:	tex(Cochineal.map) = 2024
Provides:	tex(cochineal.sty) = 2024
Provides:	tex(coch_j7mi7a.enc) = 2024
Provides:	tex(coch_jgxutr.enc) = 2024
Provides:	tex(coch_jhwmea.enc) = 2024
Provides:	tex(coch_jhwq7e.enc) = 2024
Provides:	tex(coch_kbpxlj.enc) = 2024
Provides:	tex(coch_kbxkrg.enc) = 2024
Provides:	tex(coch_kfj2qw.enc) = 2024
Provides:	tex(coch_kfnsdu.enc) = 2024
Provides:	tex(coch_klonus.enc) = 2024
Provides:	tex(coch_ktoy4w.enc) = 2024
Provides:	tex(coch_kuld3f.enc) = 2024
Provides:	tex(coch_kxx5cy.enc) = 2024
Provides:	tex(coch_kzot5v.enc) = 2024
Provides:	tex(coch_l47tcy.enc) = 2024
Provides:	tex(coch_l64ji6.enc) = 2024
Provides:	tex(coch_lchlkf.enc) = 2024
Provides:	tex(coch_ldgozj.enc) = 2024
Provides:	tex(cochlf-lgr.enc) = 2024
Provides:	tex(cochlf-ot2.enc) = 2024
Provides:	tex(coch_liz2hd.enc) = 2024
Provides:	tex(coch_lqmdx6.enc) = 2024
Provides:	tex(coch_lropbz.enc) = 2024
Provides:	tex(coch_lzqtrs.enc) = 2024
Provides:	tex(coch_m4bmrm.enc) = 2024
Provides:	tex(coch_max2ec.enc) = 2024
Provides:	tex(coch_mo2enl.enc) = 2024
Provides:	tex(coch_nj5yu3.enc) = 2024
Provides:	tex(coch_nlwa7l.enc) = 2024
Provides:	tex(coch_o4vutb.enc) = 2024
Provides:	tex(coch_o5mx43.enc) = 2024
Provides:	tex(coch_odnecf.enc) = 2024
Provides:	tex(coch_okzdl2.enc) = 2024
Provides:	tex(coch_ol4knl.enc) = 2024
Provides:	tex(coch_opxmsy.enc) = 2024
Provides:	tex(coch_oqmhja.enc) = 2024
Provides:	tex(cochosf-lgr.enc) = 2024
Provides:	tex(cochosf-ot2.enc) = 2024
Provides:	tex(coch_otkq6i.enc) = 2024
Provides:	tex(coch_p7j4gw.enc) = 2024
Provides:	tex(coch_pf3hrr.enc) = 2024
Provides:	tex(coch_pfcyih.enc) = 2024
Provides:	tex(coch_pilffg.enc) = 2024
Provides:	tex(coch_pqzq4p.enc) = 2024
Provides:	tex(coch_q35ey5.enc) = 2024
Provides:	tex(coch_q4ulxa.enc) = 2024
Provides:	tex(coch_qkxc47.enc) = 2024
Provides:	tex(coch_qqsbmj.enc) = 2024
Provides:	tex(coch_qy633g.enc) = 2024
Provides:	tex(coch_qyvxxn.enc) = 2024
Provides:	tex(coch_qzhi24.enc) = 2024
Provides:	tex(coch_r2kqsv.enc) = 2024
Provides:	tex(coch_rix5n3.enc) = 2024
Provides:	tex(coch_rv5tmq.enc) = 2024
Provides:	tex(coch_s4niqi.enc) = 2024
Provides:	tex(coch_saoql6.enc) = 2024
Provides:	tex(coch_sc4bro.enc) = 2024
Provides:	tex(coch_sq6y2y.enc) = 2024
Provides:	tex(coch_sygphi.enc) = 2024
Provides:	tex(coch_syo7sr.enc) = 2024
Provides:	tex(coch-t2a.enc) = 2024
Provides:	tex(coch_t556x2.enc) = 2024
Provides:	tex(coch_t7e5d4.enc) = 2024
Provides:	tex(cochtabosf.enc) = 2024
Provides:	tex(coch_tfefcu.enc) = 2024
Provides:	tex(coch_th736v.enc) = 2024
Provides:	tex(cochTH-ec.enc) = 2024
Provides:	tex(cochTH-lf-ly1.enc) = 2024
Provides:	tex(cochTH-lf-ot1.enc) = 2024
Provides:	tex(cochTH-lf-t1.enc) = 2024
Provides:	tex(cochTH-osf-ly1.enc) = 2024
Provides:	tex(cochTH-osf-ot1.enc) = 2024
Provides:	tex(cochTH-osf-t1.enc) = 2024
Provides:	tex(cochTH-tlf-ly1.enc) = 2024
Provides:	tex(cochTH-tlf-ot1.enc) = 2024
Provides:	tex(cochTH-tlf-t1.enc) = 2024
Provides:	tex(cochTH-tosf-ly1.enc) = 2024
Provides:	tex(cochTH-tosf-ot1.enc) = 2024
Provides:	tex(cochTH-tosf-t1.enc) = 2024
Provides:	tex(coch_tjygyt.enc) = 2024
Provides:	tex(coch_tkhq7f.enc) = 2024
Provides:	tex(cochtlf-lgr.enc) = 2024
Provides:	tex(cochtlf-ot2.enc) = 2024
Provides:	tex(coch_tnxjqs.enc) = 2024
Provides:	tex(cochtosf-lgr.enc) = 2024
Provides:	tex(cochtosf-ot2.enc) = 2024
Provides:	tex(coch_u3j4lk.enc) = 2024
Provides:	tex(coch_uavkhn.enc) = 2024
Provides:	tex(coch_uemkt3.enc) = 2024
Provides:	tex(coch_uh66oa.enc) = 2024
Provides:	tex(coch_uqbj7f.enc) = 2024
Provides:	tex(coch_vew4u5.enc) = 2024
Provides:	tex(coch_vpdkzq.enc) = 2024
Provides:	tex(coch_w6vdgs.enc) = 2024
Provides:	tex(coch_wa4y3o.enc) = 2024
Provides:	tex(coch_wcbuwv.enc) = 2024
Provides:	tex(coch_wnd62o.enc) = 2024
Provides:	tex(coch_wpweoy.enc) = 2024
Provides:	tex(coch_wuwrcy.enc) = 2024
Provides:	tex(coch_x3v6nt.enc) = 2024
Provides:	tex(coch_x4ugem.enc) = 2024
Provides:	tex(coch_xaxcx7.enc) = 2024
Provides:	tex(coch_xsridg.enc) = 2024
Provides:	tex(coch_y3tmc2.enc) = 2024
Provides:	tex(coch_ygltby.enc) = 2024
Provides:	tex(coch_ylbzwi.enc) = 2024
Provides:	tex(coch_yprnrw.enc) = 2024
Provides:	tex(coch_z2oun7.enc) = 2024
Provides:	tex(coch_zbphsw.enc) = 2024
Provides:	tex(coch_zg5irv.enc) = 2024
Provides:	tex(LGRCochineal-LF.fd) = 2024
Provides:	tex(LGRCochineal-OsF.fd) = 2024
Provides:	tex(LGRCochineal-TLF.fd) = 2024
Provides:	tex(LGRCochineal-TOsF.fd) = 2024
Provides:	tex(LY1Cochineal-Dnom.fd) = 2024
Provides:	tex(LY1Cochineal-Inf.fd) = 2024
Provides:	tex(LY1Cochineal-LF.fd) = 2024
Provides:	tex(LY1Cochineal-OsF.fd) = 2024
Provides:	tex(LY1Cochineal-Sup.fd) = 2024
Provides:	tex(LY1Cochineal-TLF.fd) = 2024
Provides:	tex(LY1Cochineal-TOsF.fd) = 2024
Provides:	tex(ly1mincochineal.fd) = 2024
Provides:	tex(omlzcochmi.fd) = 2024
Provides:	tex(OT1Cochineal-Dnom.fd) = 2024
Provides:	tex(OT1Cochineal-Inf.fd) = 2024
Provides:	tex(OT1Cochineal-LF.fd) = 2024
Provides:	tex(OT1Cochineal-OsF.fd) = 2024
Provides:	tex(OT1Cochineal-Sup.fd) = 2024
Provides:	tex(OT1Cochineal-TLF.fd) = 2024
Provides:	tex(OT1Cochineal-TOsF.fd) = 2024
Provides:	tex(ot1mincochineal.fd) = 2024
Provides:	tex(OT2Cochineal-LF.fd) = 2024
Provides:	tex(OT2Cochineal-OsF.fd) = 2024
Provides:	tex(OT2Cochineal-TLF.fd) = 2024
Provides:	tex(OT2Cochineal-TOsF.fd) = 2024
Provides:	tex(T1Cochineal-Dnom.fd) = 2024
Provides:	tex(T1Cochineal-Inf.fd) = 2024
Provides:	tex(T1Cochineal-LF.fd) = 2024
Provides:	tex(T1Cochineal-OsF.fd) = 2024
Provides:	tex(T1Cochineal-Sup.fd) = 2024
Provides:	tex(T1Cochineal-TLF.fd) = 2024
Provides:	tex(T1Cochineal-TOsF.fd) = 2024
Provides:	tex(t1mincochineal.fd) = 2024
Provides:	tex(T2ACochineal-TLF.fd) = 2024
Provides:	tex(TS1Cochineal-LF.fd) = 2024
Provides:	tex(TS1Cochineal-OsF.fd) = 2024
Provides:	tex(TS1Cochineal-TLF.fd) = 2024
Provides:	tex(TS1Cochineal-TOsF.fd) = 2024
Provides:	tex(uzcochmia.fd) = 2024
BuildArch:	noarch

%description
Cochineal is a fork from the Crimson fonts (Roman, Italic,
Bold, BoldItalic only) released under the OFL by Sebastian
Kosch. These remarkable fonts are inspired by the famous
oldstyle fonts in the garalde family (Garamond, Bembo) but, in
the end, look more similar to Minion, though with smaller
xheight and less plain in detail. The Crimson fonts on which
these were based had roughly 4200 glyphs in the four styles
mentioned above. Cochineal adds more than 1500 glyphs in those
styles so that it is possible to make a TeX support collection
that contains essentially all glyphs in all styles. Bringing
the Semibold styles up the same level would have required
adding about 2000 additional glyphs, which I could not even
contemplate. The fonts are provided in OpenType and PostScript
formats.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/cochineal
%{_texmfdistdir}/fonts/enc/dvips/cochineal
%{_texmfdistdir}/fonts/map/dvips/cochineal
%{_texmfdistdir}/fonts/opentype/public/cochineal
%{_texmfdistdir}/fonts/tfm/public/cochineal
%{_texmfdistdir}/fonts/type1/public/cochineal
%{_texmfdistdir}/fonts/vf/public/cochineal
%{_texmfdistdir}/tex/latex/cochineal

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9539 |21cr|texlive-codeanatomy-0.4_a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-codeanatomy
Version:	0.4_a
Release:	1
Summary:	This package is to typeset illustrations of pieces of code with annotations
Group:		Publishing
URL:		https://ctan.org/pkg/codeanatomy
License:	lppl1.3c
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/codeanatomy.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/codeanatomy.doc.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/codeanatomy.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The idea of this Package is to typeset illustrations of pieces of code with
annotations on each single part of code (Code Anatomy).
The origin of this idea are code illustrations from the book
“Computer Science: An Interdisciplinary Approach” from Robert Sedgewick and
Kevin Wayne.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9540 |21cr|texlive-codebox-61771-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname codebox

Summary:	Highlighted source code in a fancy box
Name:		texlive-codebox
Version:	61771
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(codebox.sty) = 2024
BuildArch:	noarch

%description
This LaTeX3 package provides environments codebox and codeview
to typset with an environment body, and macros \codefile and
\cvfile to typeset programming source code from a file in a
fancy box. Starred versions of these environments and macros
are provided to add a comment at the bottom of the fancy box.
The package is based on tcolorbox, minted, and listings.

%files
%doc %{_texmfdistdir}/doc/latex/codebox
%{_texmfdistdir}/tex/latex/codebox

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9541 |21cr|texlive-codehigh-65787-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname codehigh

Summary:	Highlight code and demos with l3regex and lpeg
Name:		texlive-codehigh
Version:	65787
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(codehigh.sty) = 2024
BuildArch:	noarch

%description
This package uses the l3regex package from the LaTeX3
Programming Layer to parse and highlight source code and demos.
It is more powerful than the listings package, and more easy to
use than minted. But it is slower than both of them. Therefore
in LuaTeX the package provides another way to highlight code:
using LPeg (Parsing Expression Grammars for Lua). LPeg is much
more powerful and faster than l3regex.

%files
%doc %{_texmfdistdir}/doc/latex/codehigh
%{_texmfdistdir}/tex/latex/codehigh

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9542 |21cr|texlive-coelacanth-64558-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname coelacanth

Summary:	Coelacanth fonts with LaTeX support
Name:		texlive-coelacanth
Version:	64558
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(coel_2bq22m.enc) = 2024
Provides:	tex(coel_35r5ki.enc) = 2024
Provides:	tex(coel_3oskfe.enc) = 2024
Provides:	tex(coel_4ecnef.enc) = 2024
Provides:	tex(coel_5fxan5.enc) = 2024
Provides:	tex(coel_67mokw.enc) = 2024
Provides:	tex(coel_7svyb7.enc) = 2024
Provides:	tex(Coelacanth.map) = 2024
Provides:	tex(coelacanth.sty) = 2024
Provides:	tex(coel_asvvw4.enc) = 2024
Provides:	tex(coel_bgukot.enc) = 2024
Provides:	tex(coel_byq3vs.enc) = 2024
Provides:	tex(coel_ch6j2t.enc) = 2024
Provides:	tex(coel_cktdqa.enc) = 2024
Provides:	tex(coel_dorh3b.enc) = 2024
Provides:	tex(coel_ebzac6.enc) = 2024
Provides:	tex(coel_emnr2s.enc) = 2024
Provides:	tex(coel_f7qowf.enc) = 2024
Provides:	tex(coel_fv62g6.enc) = 2024
Provides:	tex(coel_gi7fl5.enc) = 2024
Provides:	tex(coel_h4us3h.enc) = 2024
Provides:	tex(coel_h5bkro.enc) = 2024
Provides:	tex(coel_imsj7k.enc) = 2024
Provides:	tex(coel_k3v2sl.enc) = 2024
Provides:	tex(coel_ko4m4s.enc) = 2024
Provides:	tex(coel_kue4xj.enc) = 2024
Provides:	tex(coel_lv7uve.enc) = 2024
Provides:	tex(coel_ozxgjl.enc) = 2024
Provides:	tex(coel_pvge6z.enc) = 2024
Provides:	tex(coel_pxgy5y.enc) = 2024
Provides:	tex(coel_qu2jnl.enc) = 2024
Provides:	tex(coel_qyombs.enc) = 2024
Provides:	tex(coel_r3sloy.enc) = 2024
Provides:	tex(coel_rvr22c.enc) = 2024
Provides:	tex(coel_s2u7t3.enc) = 2024
Provides:	tex(coel_st6med.enc) = 2024
Provides:	tex(coel_surv45.enc) = 2024
Provides:	tex(coel_tzvqqj.enc) = 2024
Provides:	tex(coel_u3c7bp.enc) = 2024
Provides:	tex(coel_uohwx2.enc) = 2024
Provides:	tex(coel_v4acog.enc) = 2024
Provides:	tex(coel_w7crpc.enc) = 2024
Provides:	tex(coel_wabiju.enc) = 2024
Provides:	tex(coel_wcgv5q.enc) = 2024
Provides:	tex(coel_xy7bza.enc) = 2024
Provides:	tex(coel_ycj2j6.enc) = 2024
Provides:	tex(coel_z3thca.enc) = 2024
Provides:	tex(coel_z4xltd.enc) = 2024
Provides:	tex(LY1Coelacanth-LF.fd) = 2024
Provides:	tex(LY1Coelacanth-OsF.fd) = 2024
Provides:	tex(LY1Coelacanth-TLF.fd) = 2024
Provides:	tex(LY1Coelacanth-TOsF.fd) = 2024
Provides:	tex(OT1Coelacanth-LF.fd) = 2024
Provides:	tex(OT1Coelacanth-OsF.fd) = 2024
Provides:	tex(OT1Coelacanth-TLF.fd) = 2024
Provides:	tex(OT1Coelacanth-TOsF.fd) = 2024
Provides:	tex(T1Coelacanth-LF.fd) = 2024
Provides:	tex(T1Coelacanth-OsF.fd) = 2024
Provides:	tex(T1Coelacanth-TLF.fd) = 2024
Provides:	tex(T1Coelacanth-TOsF.fd) = 2024
Provides:	tex(TS1Coelacanth-LF.fd) = 2024
Provides:	tex(TS1Coelacanth-OsF.fd) = 2024
Provides:	tex(TS1Coelacanth-TLF.fd) = 2024
Provides:	tex(TS1Coelacanth-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX, and LuaLaTeX
support for Coelecanth fonts, designed by Ben Whitmore.
Coelacanth is inspired by the classic Centaur type design of
Bruce Rogers, described by some as the most beautiful typeface
ever designed. It aims to be a professional quality type family
for general book typesetting.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/coelacanth
%{_texmfdistdir}/fonts/map/dvips/coelacanth
%{_texmfdistdir}/fonts/opentype/public/coelacanth
%{_texmfdistdir}/fonts/tfm/public/coelacanth
%{_texmfdistdir}/fonts/type1/public/coelacanth
%{_texmfdistdir}/fonts/vf/public/coelacanth
%{_texmfdistdir}/tex/latex/coelacanth

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9543 |21cr|texlive-coffeestains-59703-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname coffeestains

Summary:	Add coffee stains to documents
Name:		texlive-coffeestains
Version:	59703
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(coffeestains.sty) = 2024
BuildArch:	noarch

%description
This package provides an essential feature that LaTeX has been
missing for too long: It adds coffee stains to your documents.
A lot of time can be saved by printing stains directly on the
page rather than adding them manually.

%files
%doc %{_texmfdistdir}/doc/latex/coffeestains
%{_texmfdistdir}/tex/latex/coffeestains

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9544 |21cr|texlive-collection-bibtexextra-20190328-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-collection-bibtexextra
Epoch:		1
Version:	20190328
Release:	2
Summary:	BibTeX additional styles
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-bibtexextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-latex
Requires:	texlive-aichej
Requires:	texlive-amsrefs
Requires:	texlive-apacite
Requires:	texlive-apalike2
Requires:	texlive-beebe
Requires:	texlive-besjournals
Requires:	texlive-bibarts
Requires:	texlive-bibexport
Requires:	texlive-bibhtml
Requires:	texlive-biblatex
Requires:	texlive-biblatex-apa
Requires:	texlive-biblatex-bwl
Requires:	texlive-biblatex-caspervector
Requires:	texlive-biblatex-chem
Requires:	texlive-biblatex-chicago
Requires:	texlive-biblatex-dw
Requires:	texlive-biblatex-fiwi
Requires:	texlive-biblatex-gost
Requires:	texlive-biblatex-historian
Requires:	texlive-biblatex-ieee
Requires:	texlive-biblatex-juradiss
Requires:	texlive-biblatex-luh-ipw
Requires:	texlive-biblatex-manuscripts-philology
Requires:	texlive-biblatex-mla
Requires:	texlive-biblatex-musuos
Requires:	texlive-biblatex-nature
Requires:	texlive-biblatex-nejm
Requires:	texlive-biblatex-philosophy
Requires:	texlive-biblatex-phys
Requires:	texlive-biblatex-publist
Requires:	texlive-biblatex-science
Requires:	texlive-biblatex-source-division
Requires:	texlive-biblatex-swiss-legal
Requires:	texlive-biblatex-trad
Requires:	texlive-biblist
Requires:	texlive-bibtopic
Requires:	texlive-bibtopicprefix
Requires:	texlive-bibunits
Requires:	texlive-breakcites
Requires:	texlive-cell
Requires:	texlive-chbibref
Requires:	texlive-chicago
Requires:	texlive-chicago-annote
Requires:	texlive-chembst
Requires:	texlive-chscite
Requires:	texlive-collref
Requires:	texlive-compactbib
Requires:	texlive-custom-bib
Requires:	texlive-din1505
Requires:	texlive-dk-bib
Requires:	texlive-doipubmed
Requires:	texlive-economic
Requires:	texlive-fbs
Requires:	texlive-figbib
Requires:	texlive-footbib
Requires:	texlive-francais-bst
Requires:	texlive-geschichtsfrkl
Requires:	texlive-harvard
Requires:	texlive-harvmac
Requires:	texlive-historische-zeitschrift
Requires:	texlive-ijqc
Requires:	texlive-inlinebib
Requires:	texlive-iopart-num
Requires:	texlive-jneurosci
Requires:	texlive-jurabib
Requires:	texlive-ksfh_nat
Requires:	texlive-listbib
Requires:	texlive-logreq
Requires:	texlive-margbib
Requires:	texlive-multibib
Requires:	texlive-multibibliography
Requires:	texlive-munich
Requires:	texlive-notes2bib
Requires:	texlive-oscola
Requires:	texlive-perception
Requires:	texlive-pnas2009
Requires:	texlive-rsc
Requires:	texlive-showtags
Requires:	texlive-sort-by-letters
Requires:	texlive-splitbib
Requires:	texlive-uni-wtal-ger
Requires:	texlive-uni-wtal-lin
Requires:	texlive-urlbst
Requires:	texlive-usebib
Requires:	texlive-vak
Requires:	texlive-xcite
# Not in repos yet
Recommends:	texlive-ajl
Recommends:	texlive-archaeologie
Recommends:	texlive-bestpapers
Recommends:	texlive-bib2gls
Recommends:	texlive-biblatex-abnt
Recommends:	texlive-biblatex-anonymous
Recommends:	texlive-biblatex-archaeology
Recommends:	texlive-biblatex-arthistory-bonn
Recommends:	texlive-biblatex-bath
Recommends:	texlive-biblatex-bookinarticle
Recommends:	texlive-biblatex-bookinother
Recommends:	texlive-biblatex-claves
Recommends:	texlive-biblatex-enc
Recommends:	texlive-biblatex-ext
Recommends:	texlive-biblatex-gb7714-2015
Recommends:	texlive-biblatex-ijsra
Recommends:	texlive-biblatex-iso690
Recommends:	texlive-biblatex-lni
Recommends:	texlive-biblatex-morenames
Recommends:	texlive-biblatex-multiple-dm
Recommends:	texlive-biblatex-nottsclassic
Recommends:	texlive-biblatex-opcit-booktitle
Recommends:	texlive-biblatex-oxref
Recommends:	texlive-biblatex-realauthor
Recommends:	texlive-biblatex-sbl
Recommends:	texlive-biblatex-shortfields
Recommends:	texlive-biblatex-socialscienceshuberlin
Recommends:	texlive-biblatex-subseries
Recommends:	texlive-biblatex-true-citepages-omit
Recommends:	texlive-bibtexperllibs
Recommends:	texlive-biolett-bst
Recommends:	texlive-bookdb
Recommends:	texlive-citeall
Recommends:	texlive-citeref
Recommends:	texlive-crossrefware
Recommends:	texlive-ecobiblatex
Recommends:	texlive-econ-bst
Recommends:	texlive-gbt7714
Recommends:	texlive-ietfbibs
Recommends:	texlive-ltb2bib
Requires:	texlive-luabibentry
Recommends:	texlive-nar
Recommends:	texlive-nmbib
Recommends:	texlive-notex-bst
Recommends:	texlive-turabian-formatting
Recommends:	texlive-windycity

%description
Additional BibTeX styles and bibliography data(bases), notably
including BibLaTeX.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9545 |21cr|texlive-collection-binextra-20190311-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32346
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-binextra
Epoch:		1
Version:	20190311
Release:	2
Summary:	TeX auxiliary programs
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-binextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-a2ping
Requires:	texlive-adhocfilelist
Requires:	texlive-arara
Requires:	texlive-bibtex8
Requires:	texlive-bibtexu
Requires:	texlive-bundledoc
Requires:	texlive-chktex
Requires:	texlive-ctanify
Recommends:	texlive-ctanupload
Requires:	texlive-ctie
Requires:	texlive-cweb
Requires:	texlive-de-macro
Requires:	texlive-detex
Requires:	texlive-dtl
Requires:	texlive-dtxgen
Requires:	texlive-dvi2tty
Requires:	texlive-dviasm
Requires:	texlive-dvicopy
Requires:	texlive-dvidvi
Requires:	texlive-dviljk
Requires:	texlive-dvipng
Requires:	texlive-dvipos
Requires:	texlive-dvisvgm
Requires:	texlive-findhyph
Requires:	texlive-fragmaster
Requires:	texlive-hyphenex
Requires:	texlive-installfont
Requires:	texlive-lacheck
Requires:	texlive-latex-git-log
Requires:	texlive-latex2man
Requires:	texlive-latexdiff
Requires:	texlive-latexfileversion
Requires:	texlive-latexmk
Requires:	texlive-latexpand
Requires:	texlive-latexindent
Requires:	texlive-ltxfileinfo
Requires:	texlive-ltximg
Requires:	texlive-listings-ext
Requires:	texlive-match_parens
Requires:	texlive-mkjobtexmf
Requires:	texlive-patgen
Requires:	texlive-pdfcrop
Requires:	texlive-pdfjam
Requires:	texlive-pdftools
Requires:	texlive-pfarrei
Requires:	texlive-pkfix
Requires:	texlive-pkfix-helper
Requires:	texlive-purifyeps
Requires:	texlive-pythontex
Requires:	texlive-seetexk
Requires:	texlive-sty2dtx
Requires:	texlive-synctex
Requires:	texlive-texcount
Requires:	texlive-texdef
Requires:	texlive-texdiff
Requires:	texlive-texdirflatten
Requires:	texlive-texdoc
Requires:	texlive-texliveonfly
Requires:	texlive-texloganalyser
Requires:	texlive-texware
Requires:	texlive-tie
Requires:	texlive-tpic2pdftex
Requires:	texlive-typeoutfileinfo
Requires:	texlive-web
# Not in repos yet
Recommends:	texlive-checklistings
Recommends:	texlive-cluttex
Recommends:	texlive-ctan-o-mat
Recommends:	texlive-ctan_chk
Recommends:	texlive-ctanbib
Recommends:	texlive-dviinfox
Recommends:	texlive-hook-pre-commit-pkg
Recommends:	texlive-ketcindy
Recommends:	texlive-latex-papersize
Recommends:	texlive-latex2nemeth
Requires:	texlive-make4ht
Recommends:	texlive-mflua
Recommends:	texlive-pdfbook2
Recommends:	texlive-pdflatexpicscale
Recommends:	texlive-pdftex-quiet
Recommends:	texlive-pdfxup
Recommends:	texlive-srcredact
Recommends:	texlive-tex4ebook
Recommends:	texlive-texdoctk
Recommends:	texlive-texfot
Recommends:	texlive-texosquery
Recommends:	texlive-tlcockpit
Recommends:	texlive-tlshell
Recommends:	texlive-xindex

%description
Various useful, but non-essential, support programs. Includes
programs and macros for DVI file manipulation, literate
programming, patgen, and the TeX Works Editor.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9546 |21cr|texlive-collection-fontsextra-20190228-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27110
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-fontsextra
Epoch:		1
Version:	20190228
Release:	12
Summary:	Extra fonts
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-fontsextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-Asana-Math
Requires:	texlive-adforn
Requires:	texlive-adfsymbols
Requires:	texlive-allrunes
Requires:	texlive-antiqua
Requires:	texlive-antt
Requires:	texlive-archaic
Requires:	texlive-arev
Requires:	texlive-aspectratio
Requires:	texlive-astro
Requires:	texlive-augie
Requires:	texlive-auncial-new
Requires:	texlive-aurical
Requires:	texlive-b1encoding
Requires:	texlive-barcodes
Requires:	texlive-baskervald
Requires:	texlive-bbding
Requires:	texlive-bbm
Requires:	texlive-bbm-macros
Requires:	texlive-bbold
Requires:	texlive-bbold-type1
Requires:	texlive-belleek
Requires:	texlive-bera
Requires:	texlive-berenisadf
Requires:	texlive-bguq
Requires:	texlive-blacklettert1
Requires:	texlive-boisik
Requires:	texlive-bookhands
Requires:	texlive-boondox
Requires:	texlive-braille
Requires:	texlive-brushscr
Requires:	texlive-calligra
Requires:	texlive-calligra-type1
Requires:	texlive-cantarell
Requires:	texlive-carolmin-ps
Requires:	texlive-ccicons
Requires:	texlive-cfr-lm
Requires:	texlive-cherokee
Requires:	texlive-cm-lgc
Requires:	texlive-cm-unicode
Requires:	texlive-cmbright
Requires:	texlive-cmll
Requires:	texlive-cmpica
Requires:	texlive-cmtiup
Requires:	texlive-comfortaa
Requires:	texlive-concmath-fonts
Requires:	texlive-cookingsymbols
Requires:	texlive-countriesofeurope
Requires:	texlive-courier-scaled
Requires:	texlive-cryst
Requires:	texlive-cyklop
Requires:	texlive-dancers
Requires:	texlive-dejavu
Requires:	texlive-dice
Requires:	texlive-dictsym
Requires:	texlive-dingbat
Requires:	texlive-doublestroke
Requires:	texlive-dozenal
Requires:	texlive-droid
Requires:	texlive-duerer
Requires:	texlive-duerer-latex
Requires:	texlive-dutchcal
Requires:	texlive-ean
Requires:	texlive-ecc
Requires:	texlive-eco
Requires:	texlive-eiad
Requires:	texlive-eiad-ltx
Requires:	texlive-electrum
Requires:	texlive-elvish
Requires:	texlive-epigrafica
Requires:	texlive-epsdice
Requires:	texlive-esstix
Requires:	texlive-esvect
Requires:	texlive-eulervm
Requires:	texlive-euxm
Requires:	texlive-fdsymbol
Requires:	texlive-feyn
Requires:	texlive-fge
Requires:	texlive-foekfont
Requires:	texlive-fonetika
Requires:	texlive-fourier
Requires:	texlive-fouriernc
Requires:	texlive-frcursive
Requires:	texlive-genealogy
Requires:	texlive-gentium-tug
Requires:	texlive-gfsartemisia
Requires:	texlive-gfsbodoni
Requires:	texlive-gfscomplutum
Requires:	texlive-gfsdidot
Requires:	texlive-gfsneohellenic
Requires:	texlive-gfssolomos
Requires:	texlive-gillcm
Requires:	texlive-gnu-freefont
Requires:	texlive-gothic
Requires:	texlive-greenpoint
Requires:	texlive-grotesq
Requires:	texlive-hands
Requires:	texlive-hfbright
Requires:	texlive-hfoldsty
Requires:	texlive-ifsym
Requires:	texlive-inconsolata
Requires:	texlive-initials
Requires:	texlive-iwona
Requires:	texlive-jablantile
Requires:	texlive-jamtimes
Requires:	texlive-junicode
Requires:	texlive-kixfont
Requires:	texlive-kpfonts
Requires:	texlive-kurier
Requires:	texlive-lato
Requires:	texlive-lfb
Requires:	texlive-libertine
Requires:	texlive-libris
Requires:	texlive-linearA
Requires:	texlive-lxfonts
Requires:	texlive-ly1
Requires:	texlive-mathabx
Requires:	texlive-mathabx-type1
Requires:	texlive-mathdesign
Requires:	texlive-mdputu
Requires:	texlive-mdsymbol
Requires:	texlive-mnsymbol
Requires:	texlive-mweights
Requires:	texlive-newtx
Requires:	texlive-nkarta
Requires:	texlive-ocherokee
Requires:	texlive-ocr-b
Requires:	texlive-ocr-b-outline
Requires:	texlive-ogham
Requires:	texlive-oinuit
Requires:	texlive-oldlatin
Requires:	texlive-oldstandard
Requires:	texlive-opensans
Requires:	texlive-orkhun
Requires:	texlive-pacioli
Requires:	texlive-paratype
Requires:	texlive-phaistos
Requires:	texlive-phonetic
Requires:	texlive-pigpen
Requires:	texlive-poltawski
Requires:	texlive-prodint
Requires:	texlive-pxtxalfa
Requires:	texlive-punk
Requires:	texlive-punknova
Requires:	texlive-recycle
Requires:	texlive-romande
Requires:	texlive-rsfso
Requires:	texlive-sansmathaccent
Requires:	texlive-sauter
Requires:	texlive-sauterfonts
Requires:	texlive-semaphor
Requires:	texlive-skull
Requires:	texlive-staves
Requires:	texlive-starfont
Requires:	texlive-stix
Requires:	texlive-tapir
Requires:	texlive-tengwarscript
Requires:	texlive-tfrupee
Requires:	texlive-tpslifonts
Requires:	texlive-trajan
Requires:	texlive-txfontsb
Requires:	texlive-umtypewriter
Requires:	texlive-universa
Requires:	texlive-urwchancal
Requires:	texlive-venturisadf
Requires:	texlive-wsuipa
Requires:	texlive-xits
Requires:	texlive-yfonts
Requires:	texlive-collection-basic
Recommends: texlive-academicons
Recommends: texlive-accanthis
Recommends: texlive-aecc
Recommends: texlive-alegreya
Recommends: texlive-algolrevived
Recommends: texlive-almfixed
Recommends: texlive-anonymouspro
Recommends: texlive-arimo
Recommends: texlive-asapsym
Recommends: texlive-ascii-font
Recommends: texlive-baskervaldx
Recommends: texlive-baskervillef
Recommends: texlive-beuron
Recommends: texlive-cabin
Recommends: texlive-caladea
Recommends: texlive-carlito
Recommends: texlive-cfr-initials
Recommends: texlive-chivo
Recommends: texlive-cinzel
Recommends: texlive-clearsans
Recommends: texlive-cm-mf-extra-bold
Recommends: texlive-cmexb
Recommends: texlive-cmsrb
Recommends: texlive-cochineal
Recommends: texlive-coelacanth
Recommends: texlive-comicneue
Recommends: texlive-cormorantgaramond
Recommends: texlive-crimson
Recommends: texlive-crimsonpro
Recommends: texlive-cuprum
Requires: texlive-dantelogo
Requires: texlive-dejavu-otf
Requires: texlive-drm
Requires: texlive-dsserif
Recommends: texlive-ebgaramond
Recommends: texlive-ebgaramond-maths
Requires: texlive-erewhon
Requires: texlive-esrelation
Recommends: texlive-fbb
Requires: texlive-fetamont
Requires: texlive-fira
Requires: texlive-firamath
Requires: texlive-firamath-otf
Requires: texlive-fontawesome
Recommends: texlive-fontawesome5
Requires: texlive-fontmfizz
Recommends: texlive-fonts-churchslavonic
Recommends: texlive-frederika2016
Recommends: texlive-garamond-math
Recommends: texlive-gfsneohellenicmath
Recommends: texlive-gillius
Recommends: texlive-gofonts
Recommends: texlive-hacm
Recommends: texlive-heuristica
Recommends: texlive-imfellenglish
Recommends: texlive-inriafonts
Recommends: texlive-ipaex-type1
Recommends: texlive-libertinegc
Recommends: texlive-libertinus
Recommends: texlive-libertinus-fonts
Recommends: texlive-libertinus-otf
Recommends: texlive-libertinus-type1
Recommends: texlive-libertinust1math
Recommends: texlive-librebaskerville
Recommends: texlive-librebodoni
Recommends: texlive-librecaslon
Recommends: texlive-lobster2
Requires: texlive-merriweather
Requires: texlive-miama
Requires: texlive-mintspirit
Recommends: texlive-missaali
Recommends: texlive-montserrat
Recommends: texlive-newpx
Recommends: texlive-newtxsf
Recommends: texlive-newtxtt
Recommends: texlive-niceframe-type1
Recommends: texlive-nimbus15
Recommends: texlive-noto
Recommends: texlive-obnov
Recommends: texlive-old-arrows
Recommends: texlive-overlock
Recommends: texlive-playfair
Recommends: texlive-plex
Recommends: texlive-plex-otf
Recommends: texlive-punk-latex
Recommends: texlive-quattrocento
Recommends: texlive-raleway
Recommends: texlive-roboto
Recommends: texlive-rosario
Recommends: texlive-sansmathfonts
Recommends: texlive-schulschriften
Recommends: texlive-shobhika
Recommends: texlive-sourcecodepro
Recommends: texlive-sourcesanspro
Recommends: texlive-sourceserifpro
Recommends: texlive-stickstoo
Recommends: texlive-stix2-otf
Recommends: texlive-stix2-type1
Recommends: texlive-superiors
Recommends: texlive-svrsymbols
Recommends: texlive-tempora
Recommends: texlive-tinos
Recommends: texlive-txuprcal
Recommends: texlive-typicons
Recommends: texlive-universalis
Recommends: texlive-uppunctlm
Requires: texlive-xcharter
Recommends: texlive-yfonts-t1
Recommends: texlive-yinit-otf
Recommends: texlive-zlmtt
%rename texlive-fontsextra

%description
TeXLive collection-fontsextra package.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9547 |21cr|texlive-collection-formatsextra-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30396
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-formatsextra
Epoch:		1
Version:	20190228
Release:	1
Summary:	Additional formats
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-formatsextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-collection-latex
Requires:	texlive-edmac
Requires:	texlive-eplain
Requires:	texlive-mltex
Requires:	texlive-psizzl
Requires:	texlive-startex
Requires:	texlive-texsis
Requires:	texlive-aleph
Requires:	texlive-antomega
Requires:	texlive-lambda
Requires:	texlive-mxedruli
Requires:	texlive-omega
Requires:	texlive-omegaware
Requires:	texlive-otibet
Requires:       texlive-jadetex
Requires:       texlive-passivetex
Requires:       texlive-tex4ht
Requires:       texlive-xmltex
Requires:	texlive-lollipop
Requires:	texlive-xmltexconfig

%rename texlive-collection-omega
%rename texlive-collection-htmlxml

%description
Collected TeX `formats', i.e., large-scale macro packages
designed to be dumped into .fmt files, other than most common
ones, such as latex and context.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9548 |21cr|texlive-collection-langchinese-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33790
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langchinese
Version:	20190228
Release:	1
Summary:	Chinese
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langchinese.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-langcjk
Requires:	texlive-arphic
Requires:	texlive-cns
Requires:	texlive-ctex
Requires:	texlive-ctex-faq
Requires:	texlive-fandol
Requires:	texlive-hyphen-chinese
Requires:	texlive-latex-notes-zh-cn
Requires:	texlive-lshort-chinese
Requires:	texlive-texlive-zh-cn
Requires:	texlive-xpinyin
Requires:	texlive-zhmetrics
Requires:	texlive-zhnumber
Requires:	texlive-zhspacing

%description
Support for Chinese; additional packages in collection-langcjk.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9549 |21cr|texlive-collection-langjapanese-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33790
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langjapanese
Version:	20190228
Release:	1
Summary:	Japanese
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langjapanese.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-langcjk
Requires:	texlive-bxbase
Requires:	texlive-bxcjkjatype
Requires:	texlive-bxjscls
Requires:	texlive-convbkmk
Requires:	texlive-ipaex
Requires:	texlive-japanese
Requires:	texlive-japanese-otf
Requires:	texlive-japanese-otf-uptex
Requires:	texlive-jfontmaps
Requires:	texlive-jsclasses
Requires:	texlive-lshort-japanese
Requires:	texlive-luatexja
Requires:	texlive-ptex
Requires:	texlive-ptex2pdf
Requires:	texlive-pxbase
Requires:	texlive-pxchfon
Requires:	texlive-pxcjkcat
Requires:	texlive-pxjahyper
Requires:	texlive-pxrubrica
Requires:	texlive-uptex
Requires:	texlive-wadalab
Requires:	texlive-zxjafbfont
Requires:	texlive-zxjatype

%description
Support for Japanese; additional packages in collection-
langcjk.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9550 |21cr|texlive-collection-langkorean-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33790
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langkorean
Version:	20190228
Release:	1
Summary:	Korean
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langkorean.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-langcjk
Requires:	texlive-cjk-ko
Requires:	texlive-kotex-oblivoir
Requires:	texlive-kotex-plain
Requires:	texlive-kotex-utf
Requires:	texlive-kotex-utils
Requires:	texlive-lshort-korean
Requires:	texlive-nanumtype1
Requires:	texlive-uhc

%description
Support for Korean; additional packages in collection-langcjk.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9551 |21cr|texlive-collection-mathextra-20140621-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32693
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-mathextra
Epoch:		1
Version:	20140621
Release:	5
Summary:	Mathematics packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-mathextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-fontsrecommended
Requires:	texlive-collection-latex
Requires:	texlive-12many
Requires:	texlive-amstex
Requires:	texlive-backnaur
Requires:	texlive-binomexp
Requires:	texlive-boldtensors
Requires:	texlive-bosisio
Requires:	texlive-bropd
Requires:	texlive-ccfonts
Requires:	texlive-commath
Requires:	texlive-concmath
Requires:	texlive-concrete
Requires:	texlive-conteq
Requires:	texlive-eqnarray
Requires:	texlive-extarrows
Requires:	texlive-extpfeil
Requires:	texlive-faktor
Requires:	texlive-interval
Requires:	texlive-ionumbers
Requires:	texlive-isomath
Requires:	texlive-lplfitch
Requires:	texlive-mathcomp
Requires:	texlive-mattens
Requires:	texlive-mhequ
Requires:	texlive-multiobjective
Requires:	texlive-natded
Requires:	texlive-nath
Requires:	texlive-ot-tableau
Requires:	texlive-oubraces
Requires:	texlive-proba
Requires:	texlive-rec-thy
Requires:	texlive-ribbonproofs
Requires:	texlive-shuffle
Requires:	texlive-skmath
Requires:	texlive-statex
Requires:	texlive-statex2
Requires:	texlive-stmaryrd
Requires:	texlive-subsupscripts
Requires:	texlive-susy
Requires:	texlive-syllogism
Requires:	texlive-synproof
Requires:	texlive-tablor
Requires:	texlive-tensor
Requires:	texlive-tex-ewd
Requires:	texlive-thmbox
Requires:	texlive-turnstile
Requires:	texlive-unicode-math
Requires:	texlive-venn
Requires:	texlive-yhmath
Requires:	texlive-ytableau
Recommends:	texlive-begriff
Recommends:	texlive-grundgesetze
Recommends:	texlive-logicproof
Recommends:	texlive-sympytexpackage


%description
TeXLive collection-mathextra package.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9552 |21cr|texlive-collection-mathscience-20190911-36
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-collection-mathscience
Version:	20190911
Release:	36
Summary:	Mathematics packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-mathscience.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-fontsrecommended
Requires:	texlive-collection-latex
Requires:	texlive-12many
Requires:	texlive-amstex
Requires:	texlive-backnaur
Requires:	texlive-binomexp
Requires:	texlive-boldtensors
Requires:	texlive-bosisio
Requires:	texlive-bropd
Requires:	texlive-ccfonts
Requires:	texlive-commath
Requires:	texlive-concmath
Requires:	texlive-concrete
Requires:	texlive-conteq
Requires:	texlive-eqnarray
Requires:	texlive-extarrows
Requires:	texlive-extpfeil
Requires:	texlive-faktor
Requires:	texlive-interval
Requires:	texlive-ionumbers
Requires:	texlive-isomath
Requires:	texlive-lplfitch
Requires:	texlive-mathcomp
Requires:	texlive-mattens
Requires:	texlive-mhequ
Requires:	texlive-multiobjective
Requires:	texlive-natded
Requires:	texlive-nath
Requires:	texlive-ot-tableau
Requires:	texlive-oubraces
Requires:	texlive-proba
Requires:	texlive-rec-thy
Requires:	texlive-ribbonproofs
Requires:	texlive-shuffle
Requires:	texlive-skmath
Requires:	texlive-statex
Requires:	texlive-statex2
Requires:	texlive-stmaryrd
Requires:	texlive-subsupscripts
Requires:	texlive-susy
Requires:	texlive-syllogism
Requires:	texlive-synproof
Requires:	texlive-tablor
Requires:	texlive-tensor
Requires:	texlive-tex-ewd
Requires:	texlive-thmbox
Requires:	texlive-turnstile
Requires:	texlive-venn
Requires:	texlive-yhmath
Requires:	texlive-ytableau
Requires: texlive-SIstyle
Requires: texlive-SIunits
Requires: texlive-accents
Requires: texlive-alg
Requires: texlive-algobox
Requires: texlive-algorithm2e
Requires: texlive-algorithmicx
Requires: texlive-algorithms
Requires: texlive-aligned-overset
Requires: texlive-amscdx
Requires: texlive-apxproof
Requires: texlive-autobreak
Requires: texlive-axodraw2
Requires: texlive-begriff
Requires: texlive-biocon
Requires: texlive-bitpattern
Requires: texlive-bohr
Requires: texlive-bpchem
Requires: texlive-bussproofs
Requires: texlive-bussproofs-extra
Requires: texlive-bytefield
Requires: texlive-calculation
Requires: texlive-cascade
Requires: texlive-chemarrow
Requires: texlive-chemcompounds
Requires: texlive-chemcono
Requires: texlive-chemexec
Requires: texlive-chemformula
Requires: texlive-chemgreek
Requires: texlive-chemmacros
Requires: texlive-chemnum
Requires: texlive-chemschemex
Requires: texlive-chemsec
Requires: texlive-chemstyle
Requires: texlive-clrscode
Requires: texlive-clrscode3e
Requires: texlive-codeanatomy
Requires: texlive-complexity
Requires: texlive-computational-complexity

Requires: texlive-correctmathalign
Requires: texlive-cryptocode
Requires: texlive-delim
Requires: texlive-delimseasy
Requires: texlive-delimset
Requires: texlive-derivative
Requires: texlive-diffcoeff
Requires: texlive-digiconfigs
Requires: texlive-dijkstra
Requires: texlive-drawmatrix
Requires: texlive-drawstack
Requires: texlive-dyntree
Requires: texlive-ebproof
Requires: texlive-econometrics
Requires: texlive-eltex
Requires: texlive-emf
Requires: texlive-endiagram
Requires: texlive-engtlc
Requires: texlive-eqexpl
Requires: texlive-eqnnumwarn
Requires: texlive-fascicules
Requires: texlive-fnspe
Requires: texlive-fouridx
Requires: texlive-functan
Requires: texlive-galois
Requires: texlive-gastex
Requires: texlive-gene-logic
Requires: texlive-ghsystem
Requires: texlive-glosmathtools
Requires: texlive-gotoh
Requires: texlive-grundgesetze
Requires: texlive-gu
Requires: texlive-hep
Requires: texlive-hepnames
Requires: texlive-hepparticles
Requires: texlive-hepthesis
Requires: texlive-hepunits
Requires: texlive-includernw
Requires: texlive-jkmath
Requires: texlive-karnaugh
Requires: texlive-karnaugh-map
Requires: texlive-karnaughmap
Requires: texlive-kvmap
Requires: texlive-logicproof
Requires: texlive-longdivision
Requires: texlive-lpform
Requires: texlive-lstbayes
Requires: texlive-mathcommand
Recommends: texlive-mathfixs
Requires: texlive-mathpartir
Requires: texlive-mathpunctspace
Requires: texlive-matrix-skeleton
Requires: texlive-matlab-prettifier
Requires: texlive-memorygraphs
Requires: texlive-mgltex
Requires: texlive-mhchem
Requires: texlive-miller
Requires: texlive-mismath
Requires: texlive-mychemistry
Requires: texlive-nicematrix
Requires: texlive-nuc
Requires: texlive-nucleardata
Requires: texlive-objectz
Requires: texlive-oplotsymbl
Requires: texlive-perfectcut
Requires: texlive-physics
Requires: texlive-pm-isomath
Requires: texlive-polexpr
Requires: texlive-prftree
Requires: texlive-proof-at-the-end
Requires: texlive-prooftrees
Requires: texlive-pseudo
Requires: texlive-pseudocode
Requires: texlive-pythonhighlight
Requires: texlive-qsharp
Requires: texlive-rank-2-roots
Requires: texlive-revquantum
Requires: texlive-rmathbr
Requires: texlive-sasnrdisplay
Requires: texlive-sciposter
Requires: texlive-sclang-prettifier
Requires: texlive-scratchx
Requires: texlive-sesamanuel
Requires: texlive-sfg
Requires: texlive-simpler-wick
Requires: texlive-simplewick
Requires: texlive-siunitx
Requires: texlive-spalign
Requires: texlive-stanli
Requires: texlive-statistics
Requires: texlive-statistik
Requires: texlive-statmath
Requires: texlive-steinmetz
Requires: texlive-structmech
Requires: texlive-struktex
Requires: texlive-substances
Requires: texlive-subtext
Recommends: texlive-sympytexpackage
Requires: texlive-t-angles
Recommends: texlive-tensind
Requires: texlive-textgreek
Requires: texlive-textopo
Requires: texlive-ulqda
Requires: texlive-unitsdef
Recommends: texlive-witharrows
Requires: texlive-xymtex
Requires: texlive-youngtab

%rename texlive-collection-mathextra
%rename texlive-collection-science

%description
TeXLive collection-mathscience package.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9553 |21cr|texlive-collection-plaingeneric-20190910-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-collection-plaingeneric
Version:	20190910
Release:	7
Summary:	Plain (La)TeX packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-plaingeneric.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires: texlive-collection-basic
Requires: texlive-abbr
Requires: texlive-abstyles
Recommends: texlive-apnum
Requires: texlive-autoaligne
Requires: texlive-barr
Requires: texlive-bitelist
Requires: texlive-borceux
Requires: texlive-c-pascal
Requires: texlive-catcodes
Requires: texlive-chronosys
Requires: texlive-colorsep
Recommends: texlive-cweb-old
Requires: texlive-dinat
Requires: texlive-dirtree
Requires: texlive-docbytex
Requires: texlive-dowith
Requires: texlive-eijkhout
Requires: texlive-encxvlna
Requires: texlive-epigram
Requires: texlive-epsf
Requires: texlive-epsf-dvipdfmx
Requires: texlive-fenixpar
Requires: texlive-figflow
Requires: texlive-fixpdfmag
Requires: texlive-fltpoint
Requires: texlive-fntproof
Requires: texlive-font-change
Requires: texlive-fontch
Requires: texlive-fontname
Requires: texlive-gates
Requires: texlive-genmisc
Requires: texlive-getoptk
Recommends: texlive-gfnotation
Recommends: texlive-gobble
Requires: texlive-graphics-pln
Requires: texlive-gtl
Recommends: texlive-hlist
Requires: texlive-hyplain
Requires: texlive-ifetex
Requires: texlive-iftex
Requires: texlive-insbox
Requires: texlive-js-misc
Requires: texlive-kastrup
Requires: texlive-lambda-lists
Requires: texlive-langcode
Requires: texlive-lecturer
Requires: texlive-librarian
Requires: texlive-listofitems
Requires: texlive-mathdots
Requires: texlive-metatex
Requires: texlive-midnight
Requires: texlive-mkpattern
Requires: texlive-modulus
Requires: texlive-multido
Requires: texlive-navigator
Requires: texlive-newsletr
Requires: texlive-ofs
Requires: texlive-olsak-misc
Requires: texlive-path
Requires: texlive-pdf-trans
Requires: texlive-pitex
Requires: texlive-placeins-plain
Requires: texlive-plainpkg
Requires: texlive-plipsum
Requires: texlive-plnfss
Requires: texlive-plstmary
Requires: texlive-poormanlog
Requires: texlive-present
Recommends: texlive-randomlist
Requires: texlive-resumemac
Requires: texlive-schemata
Requires: texlive-shade
Requires: texlive-simplekv
Requires: texlive-systeme
Requires: texlive-tabto-generic
Recommends: texlive-termmenu
Requires: texlive-tex-ps
Requires: texlive-tex4ht
Requires: texlive-texapi
Requires: texlive-texdate
Requires: texlive-texinfo
Requires: texlive-timetable
Requires: texlive-tracklang
Requires: texlive-treetex
Requires: texlive-trigonometry
Requires: texlive-ulem
Requires: texlive-upca
Requires: texlive-varisize
Requires: texlive-xii
Requires: texlive-xii-lat
Requires: texlive-xlop
Requires: texlive-yax
%rename texlive-collection-genericextra
%rename texlive-collection-genericrecommended
%rename texlive-collection-plainextra

%description
Plain (La)TeX packages

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9554 |21cr|texlive-collection-texworks-54074-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname collection-texworks

Summary:	TeXworks editor; TL includes only the Windows binary
Name:		texlive-collection-texworks
Version:	54074
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
See http://tug.org/texworks.

%files

#------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9555 |21cr|texlive-collref-2.0c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-collref
Version:	2.0c
Release:	2
Summary:	Collect blocks of references into a single reference
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/collref
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collref.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collref.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
The package automatically collects multiple \bibitem
references, which always appear in the same sequence in \cite,
into a single \bibitem block.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/collref
%doc %{_texmfdistdir}/doc/latex/collref
#- source
%doc %{_texmfdistdir}/source/latex/collref

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9556 |21cr|texlive-color-edits-56707-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname color-edits

Summary:	Colorful edits for multiple authors of a shared document
Name:		texlive-color-edits
Version:	56707
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(color-edits.sty) = 2024
BuildArch:	noarch

%description
This package provides a fairly light-weight solution for
annotating LaTeX source code with color to show
additions/changes, replacements, deletions, and comments. This
is particularly useful when a document is being edited by
multiple authors. Two package options allow the quick
suppression of all colorful edits and comments, and showing
text whose deletion was proposed.

%files
%doc %{_texmfdistdir}/doc/latex/color-edits
%{_texmfdistdir}/tex/latex/color-edits

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9557 |21cr|texlive-colorframed-64551-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname colorframed

Summary:	Fix color problems with the package "framed"
Name:		texlive-colorframed
Version:	64551
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(colorframed.sty) = 2024
BuildArch:	noarch

%description
This package fixes problems with colour loss that occurres in
the environments of the framed package.

%files
%doc %{_texmfdistdir}/doc/latex/colorframed
%{_texmfdistdir}/tex/latex/colorframed

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9558 |21cr|texlive-colorist-66434-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname colorist

Summary:	Write your articles or books in a colorful way
Name:		texlive-colorist
Version:	66434
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-projlib
Provides:	tex(colorart.cls) = 2024
Provides:	tex(colorbook.cls) = 2024
Provides:	tex(colorist-fancy.sty) = 2024
Provides:	tex(colorist.sty) = 2024
BuildArch:	noarch

%description
This package offers you a LaTeX style file and two classes to
typeset articles or books in a colorful way. These classes
currently have native support for English, French, German,
Italian, Portuguese (European and Brazilian), and Spanish
typesetting. They compile with any major TeX engine. You may
also wish to consider the packages lebhart and beaulivre, which
are enhanced versions of the classes provided here. They have
unicode support, thus can only be used with either XeLaTeX or
LuaLaTeX. Currently they have native support for Chinese (both
simplified and traditional), English, French, German, Italian,
Japanese, Portuguese (European and Brazilian), Russian and
Spanish typesetting, and also use more beautiful fonts.

%files
%doc %{_texmfdistdir}/doc/latex/colorist
%{_texmfdistdir}/tex/latex/colorist

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9559 |21cr|texlive-colorprofiles-49086-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname colorprofiles

Summary:	Collection of free ICC profiles
Name:		texlive-colorprofiles
Version:	49086
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(colorprofiles.sty) = 2024
Provides:	tex(colorprofiles.tex) = 2024
Provides:	tex(FOGRA39L_coated.icc) = 2024
Provides:	tex(sRGB.icc) = 2024
BuildArch:	noarch

%description
This package collects free ICC profiles that can be used by
color profile aware applications/tools like the pdfx package,
as well as TeX and LaTeX packages to access them.

%files
%doc %{_texmfdistdir}/doc/generic/colorprofiles
%{_texmfdistdir}/tex/generic/colorprofiles

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9560 |21cr|texlive-colorsep-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 13293
# category Package
# catalog-ctan /graphics/colorsep/colorsep.pro
# catalog-date 2009-09-15 14:15:21 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-colorsep
Version:	20190228
Release:	1
Summary:	Color separation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/colorsep/colorsep.pro
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorsep.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Support for colour separation when using dvips.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/colorsep/colorsep.pro

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9561 |21cr|texlive-combofont-51348-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname combofont

Summary:	Add NFSS-declarations of combo fonts to LuaLaTeX documents
Name:		texlive-combofont
Version:	51348
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(combofont.sty) = 2024
BuildArch:	noarch

%description
This highly experimental package can be used to add
NFSS-declarations of combo fonts to LuaLaTeX documents. This
package may disappear without notice, e.g. if luaotfload
changes in a way so that it no longer works, or if LuaTeX
changes, or if fontspec itself includes the code. It is also
possible that the package's syntax and commands may change in
an incompatible way. So if you use it in a production
environment: You have been warned.

%files
%doc %{_texmfdistdir}/doc/lualatex/combofont/
%{_texmfdistdir}/tex/lualatex/combofont/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9562 |21cr|texlive-comfortaa-2.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25090
# category Package
# catalog-ctan /fonts/comfortaa
# catalog-date 2012-01-10 07:43:57 +0100
# catalog-license lppl1.3
# catalog-version 2.3
Name:		texlive-comfortaa
Version:	2.3
Release:	7
Summary:	Sans serif font, with LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/comfortaa
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comfortaa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comfortaa.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comfortaa.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Comfortaa is a sans-serif font, comfortable in every aspect,
designed by Johan Aakerlund. The font, which includes three
weights (thin, regular and bold), is available on Johan's
deviantArt web page as TrueType files under the Open Font
License version 1.1. This package provides support for this
font in LaTeX, and includes both the TrueType fonts, and
conversions to Adobe Type 1 format.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/comfortaa/Comfortaa-Bold-LCDFJ.afm
%{_texmfdistdir}/fonts/afm/public/comfortaa/Comfortaa-Bold.afm
%{_texmfdistdir}/fonts/afm/public/comfortaa/Comfortaa-Light-LCDFJ.afm
%{_texmfdistdir}/fonts/afm/public/comfortaa/Comfortaa-Light.afm
%{_texmfdistdir}/fonts/afm/public/comfortaa/Comfortaa-Regular-LCDFJ.afm
%{_texmfdistdir}/fonts/afm/public/comfortaa/Comfortaa-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/comfortaa/comfortaa-01.enc
%{_texmfdistdir}/fonts/enc/dvips/comfortaa/comfortaa-02.enc
%{_texmfdistdir}/fonts/enc/dvips/comfortaa/comfortaa-03.enc
%{_texmfdistdir}/fonts/enc/dvips/comfortaa/comfortaa-dotlessj.enc
%{_texmfdistdir}/fonts/map/dvips/comfortaa/comfortaa.map
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-01.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-02.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-03.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-01.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-02.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-03.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-dotlessj.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-Slanted-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-SmallCaps-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-dotlessj.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Bold-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-01.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-02.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-03.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-01.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-02.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-03.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-dotlessj.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-Slanted-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-SmallCaps-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-dotlessj.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Light-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-01.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-02.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-03.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-01.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-02.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-03.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-dotlessj.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-Slanted-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-SmallCaps-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-SmallCaps-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-SmallCaps-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-SmallCaps-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-SmallCaps-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-SmallCaps-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-SmallCaps-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-dotlessj.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/comfortaa/Comfortaa-Regular-x2.tfm
%{_texmfdistdir}/fonts/truetype/public/comfortaa/Comfortaa-Bold.ttf
%{_texmfdistdir}/fonts/truetype/public/comfortaa/Comfortaa-Light.ttf
%{_texmfdistdir}/fonts/truetype/public/comfortaa/Comfortaa-Regular.ttf
%{_texmfdistdir}/fonts/type1/public/comfortaa/Comfortaa-Bold-LCDFJ.pfb
%{_texmfdistdir}/fonts/type1/public/comfortaa/Comfortaa-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/comfortaa/Comfortaa-Light-LCDFJ.pfb
%{_texmfdistdir}/fonts/type1/public/comfortaa/Comfortaa-Light.pfb
%{_texmfdistdir}/fonts/type1/public/comfortaa/Comfortaa-Regular-LCDFJ.pfb
%{_texmfdistdir}/fonts/type1/public/comfortaa/Comfortaa-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-ts1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-Slanted-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-SmallCaps-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-ts1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Bold-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-ts1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-Slanted-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-SmallCaps-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-ts1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Light-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-ts1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-Slanted-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-SmallCaps-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-SmallCaps-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-SmallCaps-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-SmallCaps-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-SmallCaps-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-SmallCaps-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-SmallCaps-x2.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-lgr.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-ot1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-t1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-t2a.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-t2b.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-t2c.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-ts1.vf
%{_texmfdistdir}/fonts/vf/public/comfortaa/Comfortaa-Regular-x2.vf
%{_texmfdistdir}/tex/latex/comfortaa/comfortaa.sty
%{_texmfdistdir}/tex/latex/comfortaa/lgrfco.fd
%{_texmfdistdir}/tex/latex/comfortaa/ot1fco.fd
%{_texmfdistdir}/tex/latex/comfortaa/t1fco.fd
%{_texmfdistdir}/tex/latex/comfortaa/t2afco.fd
%{_texmfdistdir}/tex/latex/comfortaa/t2bfco.fd
%{_texmfdistdir}/tex/latex/comfortaa/t2cfco.fd
%{_texmfdistdir}/tex/latex/comfortaa/ts1fco.fd
%{_texmfdistdir}/tex/latex/comfortaa/x2fco.fd
%doc %{_texmfdistdir}/doc/fonts/comfortaa/CHANGES
%doc %{_texmfdistdir}/doc/fonts/comfortaa/README
%doc %{_texmfdistdir}/doc/fonts/comfortaa/comfortaa-samples.pdf
%doc %{_texmfdistdir}/doc/fonts/comfortaa/comfortaa-samples.tex
%doc %{_texmfdistdir}/doc/fonts/comfortaa/comfortaa.pdf
%doc %{_texmfdistdir}/doc/fonts/comfortaa/comfortaa.tex
%doc %{_texmfdistdir}/doc/fonts/comfortaa/manifest.txt
#- source
%doc %{_texmfdistdir}/source/fonts/comfortaa/Makefile
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-01.etx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-02.etx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-03.etx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-diacritics.mtx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-dotlessj.etx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-drv.tex
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-fixcyrillic.mtx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-fixgreek.mtx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-fixlatin.mtx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-fixtextcomp.mtx
%doc %{_texmfdistdir}/source/fonts/comfortaa/comfortaa-map.tex
%doc %{_texmfdistdir}/source/fonts/comfortaa/ttf2type1.pe

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9563 |21cr|texlive-comicneue-54891-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname comicneue

Summary:	Use Comic Neue with TeX(-alike) systems
Name:		texlive-comicneue
Version:	54891
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(a_3f3vls.enc) = 2024
Provides:	tex(a_d7lrxj.enc) = 2024
Provides:	tex(a_fqjac7.enc) = 2024
Provides:	tex(a_ixwebc.enc) = 2024
Provides:	tex(a_ncyf37.enc) = 2024
Provides:	tex(a_nhwyv3.enc) = 2024
Provides:	tex(a_trnund.enc) = 2024
Provides:	tex(a_upn2ip.enc) = 2024
Provides:	tex(a_wfs66e.enc) = 2024
Provides:	tex-comicneue = 2024
Provides:	tex(ComicNeueAngular.map) = 2024
Provides:	tex(ComicNeue.map) = 2024
Provides:	tex(comicneue.sty) = 2024
Provides:	tex(LY1ComicNeueAngular-TLF.fd) = 2024
Provides:	tex(LY1ComicNeue-TLF.fd) = 2024
Provides:	tex(OT1ComicNeueAngular-TLF.fd) = 2024
Provides:	tex(OT1ComicNeue-TLF.fd) = 2024
Provides:	tex(T1ComicNeueAngular-TLF.fd) = 2024
Provides:	tex(T1ComicNeue-TLF.fd) = 2024
Provides:	tex(TS1ComicNeueAngular-TLF.fd) = 2024
Provides:	tex(TS1ComicNeue-TLF.fd) = 2024
BuildArch:	noarch

%description
Comic Neue is a well-known redesign of the (in)famous Comic
Sans font. The package provides the original OpenType font for
XeTeX and LuaTeX users, and also has converted Type1 files for
pdfTeX users. Issues with this package can be reported on
GitHub or emailed to tex@slxh.nl.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/comicneue/
%{_texmfdistdir}/fonts/map/dvips/comicneue/
%{_texmfdistdir}/fonts/opentype/rozynski/comicneue/
%{_texmfdistdir}/fonts/tfm/rozynski/comicneue/
%{_texmfdistdir}/fonts/type1/rozynski/comicneue/
%{_texmfdistdir}/fonts/vf/rozynski/comicneue/
%{_texmfdistdir}/tex/latex/comicneue/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9564 |21cr|texlive-commath-0.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/commath
# catalog-date 2007-03-05 14:17:42 +0100
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-commath
Version:	0.3
Release:	8
Summary:	Mathematics typesetting support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/commath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/commath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/commath.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a range of differential, partial differential and
delimiter commands, together with a \fullfunction (function,
with both domain and range, and function operation) and various
reference commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/commath/commath.sty
%doc %{_texmfdistdir}/doc/latex/commath/README
%doc %{_texmfdistdir}/doc/latex/commath/commath.pdf
%doc %{_texmfdistdir}/doc/latex/commath/commath.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9565 |21cr|texlive-commonunicode-62901-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname commonunicode

Summary:	Convert common unicode symbols to LaTeX code
Name:		texlive-commonunicode
Version:	62901
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(commonunicode.sty) = 2024
BuildArch:	noarch

%description
The aim of this LaTeX package is to provide a complete as
possible list of common Unicode symbols with their translations
to LaTeX code. This is useful in the development of templates
which are intended to work with modern TeX engines (LuaTeX,
XeTeX) as well as traditional ones (TeX, pdfTeX).

%files
%doc %{_texmfdistdir}/doc/latex/commonunicode
%{_texmfdistdir}/tex/latex/commonunicode

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9566 |21cr|texlive-commutative-diagrams-55526-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname commutative-diagrams

Summary:	CoDi: Commutative Diagrams for TeX
Name:		texlive-commutative-diagrams
Version:	55526
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(commutative-diagrams.sty) = 2024
Provides:	tex(commutative-diagrams.tex) = 2024
Provides:	tex(kodi.sty) = 2024
Provides:	tex(t-commutative-diagrams.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.bapto.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.diorthono.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.ektropi.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.katharizo.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.koinos.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.mandyas.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.mitra.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.ozos.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.ramma.code.tex) = 2024
Provides:	tex(tikzlibrarycommutative-diagrams.velos.code.tex) = 2024
BuildArch:	noarch

%description
This package provides a TikZ library for making commutative
diagrams easy to design, parse and tweak.

%files
%doc %{_texmfdistdir}/doc/generic/commutative-diagrams
%{_texmfdistdir}/tex/context/third/commutative-diagrams
%{_texmfdistdir}/tex/generic/commutative-diagrams
%{_texmfdistdir}/tex/latex/commutative-diagrams
%{_texmfdistdir}/tex/plain/commutative-diagrams

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9567 |21cr|texlive-compactbib-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/compactbib/compactbib.sty
# catalog-date 2007-01-01 11:39:06 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-compactbib
Version:	20190228
Release:	1
Summary:	Multiple thebibliography environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/compactbib/compactbib.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/compactbib.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Allows a second bibliography, optionally with a different
title, after the main bibliography.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/compactbib/compactbib.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9568 |21cr|texlive-compare-54265-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname compare

Summary:	Compare two strings
Name:		texlive-compare
Version:	54265
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(compare.tex) = 2024
BuildArch:	noarch

%description
The file defines a macro \compare, which takes two arguments;
the macro expands to -1, 0, 1, according as the first argument
is less than, equal to, or greater than the second argument.
Sorting is alphabetic, using ASCII collating order.

%files
%{_texmfdistdir}/tex/generic/compare

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9569 |21cr|texlive-concmath-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17219
# category Package
# catalog-ctan /macros/latex/contrib/concmath
# catalog-date 2010-02-24 21:28:09 +0100
# catalog-license lppl
# catalog-version 1999/03/18
Name:		texlive-concmath
Version:	20190228
Release:	1
Summary:	Concrete Math fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/concmath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concmath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concmath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concmath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package and font definition files to access the
Concrete mathematics fonts, which were derived from Computer
Modern math fonts using parameters from Concrete Roman text
fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/concmath/concmath.sty
%{_texmfdistdir}/tex/latex/concmath/omlccm.fd
%{_texmfdistdir}/tex/latex/concmath/omlccr.fd
%{_texmfdistdir}/tex/latex/concmath/omsccr.fd
%{_texmfdistdir}/tex/latex/concmath/omsccsy.fd
%{_texmfdistdir}/tex/latex/concmath/omxccex.fd
%{_texmfdistdir}/tex/latex/concmath/ot1ccr.fd
%{_texmfdistdir}/tex/latex/concmath/ucca.fd
%{_texmfdistdir}/tex/latex/concmath/uccb.fd
%doc %{_texmfdistdir}/doc/fonts/concmath/CATALOGUE
%doc %{_texmfdistdir}/doc/fonts/concmath/README
%doc %{_texmfdistdir}/doc/fonts/concmath/concmath.pdf
#- source
%doc %{_texmfdistdir}/source/latex/concmath/Makefile
%doc %{_texmfdistdir}/source/latex/concmath/concmath.dtx
%doc %{_texmfdistdir}/source/latex/concmath/concmath.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9570 |21cr|texlive-concmath-fonts-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17218
# category Package
# catalog-ctan /fonts/concmath
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-concmath-fonts
Version:	20190228
Release:	1
Summary:	Concrete mathematics fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/concmath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concmath-fonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concmath-fonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts are derived from the computer modern mathematics
fonts and from Knuth's Concrete Roman fonts. LaTeX support is
offered by the concmath package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccam10.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccam5.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccam6.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccam7.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccam8.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccam9.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccbm10.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccbm5.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccbm6.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccbm7.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccbm8.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccbm9.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccex10.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccex7.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccex8.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccex9.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccmi10.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccmi5.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccmi6.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccmi7.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccmi8.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccmi9.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccsy10.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccsy5.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccsy6.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccsy7.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccsy8.mf
%{_texmfdistdir}/fonts/source/public/concmath-fonts/xccsy9.mf
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccam10.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccam5.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccam6.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccam7.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccam8.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccam9.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccbm10.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccbm5.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccbm6.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccbm7.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccbm8.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccbm9.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccex10.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccex7.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccex8.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccex9.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccmi5.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccmi6.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccmi7.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccmi9.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccsy10.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccsy5.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccsy6.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccsy7.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccsy8.tfm
%{_texmfdistdir}/fonts/tfm/public/concmath-fonts/xccsy9.tfm
%doc %{_texmfdistdir}/doc/fonts/concmath-fonts/CATALOGUE
%doc %{_texmfdistdir}/doc/fonts/concmath-fonts/Makefile
%doc %{_texmfdistdir}/doc/fonts/concmath-fonts/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9571 |21cr|texlive-concmath-otf-65683-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname concmath-otf

Summary:	Concrete based OpenType Math font
Name:		texlive-concmath-otf
Version:	65683
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(concmath-otf.sty) = 2024
BuildArch:	noarch

%description
This package provides an OpenType version of the Concrete Math
font created by Ulrik Vieth in Metafont. "concmath-otf.sty" is
a replacement for the original "concmath.sty" package to be
used with LuaTeX or XeTeX engines.

%files
%doc %{_texmfdistdir}/doc/fonts/concmath-otf
%{_texmfdistdir}/fonts/opentype/public/concmath-otf
%{_texmfdistdir}/tex/latex/concmath-otf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9572 |21cr|texlive-conditext-55387-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname conditext

Summary:	Define and manage conditional content
Name:		texlive-conditext
Version:	55387
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(CondiTeXt.sty) = 2024
BuildArch:	noarch

%description
This package provides some commands to define and manage
conditional content in a LaTeX source document. A conditional
content, in the sense within this is understood in this
package, is a text (including mathematical or other formulas)
and/or a graphical element (diagram, figure, image...) as
substitutable forms, which, according to a condition test, may
or may not appear in the generated document. One of the most
common forms of conditional content management is multilingual
; but it can also include versioning, confidentiality levels,
and so on. The philosophy of this package is based on the
respective notions of condition field, condition property and
condition space. With this package, any substitutable form in a
source document is identified by a condition field and a
condition property. The condition field is a functional theme
that allows you to group together substitutable forms for the
same conditional management. The condition property is a
functional characterization specific to each substitutable form
of a single condition domain. The condition space is used to
designate the substitutable form(s) that must appear in the
generated document. A condition space is defined by specifying
a condition domain and a condition property to match with one
or more substitutable forms.

%files
%doc %{_texmfdistdir}/doc/latex/conditext
%{_texmfdistdir}/tex/latex/conditext

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9573 |21cr|texlive-conteq-0.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-conteq
Version:	0.1.1
Release:	2
Summary:	Typeset multiline continued equalities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/conteq
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/conteq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/conteq.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/conteq.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an environment conteq, which will lay out
systems of continued equalities (or inequalities). Several
variant layouts of the equalities are provided, and the user
may define their own. The package is written use LaTeX 3
macros.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/conteq
%doc %{_texmfdistdir}/doc/latex/conteq
#- source
%doc %{_texmfdistdir}/source/latex/conteq

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9574 |21cr|texlive-context-animation-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-animation
Version:	1.4
Release:	1
Summary:	Generate fieldstack based animation with ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-animation.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-animation.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a port, to Context (mkvi), of the corresponding
LaTeX package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9575 |21cr|texlive-context-annotation-20220306-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-annotation
Version:	20220306
Release:	1
Summary:	Annotate text blocks
Group:		Publishing
URL:		https://ctan.org/pkg/context-annotation
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-annotation.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-annotation.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
BuildRequires:	texlive-context
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The annotation module lets you create your own commands and environments to mark text blocks.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9576 |21cr|texlive-context-cmscbf-20220306-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-cmscbf
Version:	20220306
Release:	1
Summary:	Use Computer Modern bold Caps and Small-caps in ConTeXt
Group:		Publishing
URL:		https://ctan.org/pkg/context-cmscbf
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-cmscbf.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-cmscbf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
BuildRequires:	texlive-context
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The module makes provision for bold caps and small caps CM fonts, in ConTeXt. Such a font may be found in the Computer Modern 'extra bold' font set.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9577 |21cr|texlive-context-cmttbf-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-cmttbf
Version:	1.4
Release:	1
Summary:	OpenType Unicode text and maths fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-cmttbf.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-cmttbf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Scientific and Technical Information eXchange (STIX) fonts
are intended to satisfy the demanding needs of authors,
publishers, printers, and others working in the scientific,
medical, and technical fields. They combine a comprehensive
Unicode-based collection of mathematical symbols and alphabets
with a set of text faces suitable for professional publishing.
The fonts are available royalty-free under the SIL Open Font
License. 
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9578 |21cr|texlive-context-fancybreak-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-fancybreak
Version:	1.4
Release:	1
Summary:	OpenType Unicode text and maths fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-fancybreak.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-fancybreak.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Scientific and Technical Information eXchange (STIX) fonts
are intended to satisfy the demanding needs of authors,
publishers, printers, and others working in the scientific,
medical, and technical fields. They combine a comprehensive
Unicode-based collection of mathematical symbols and alphabets
with a set of text faces suitable for professional publishing.
The fonts are available royalty-free under the SIL Open Font
License. 
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9579 |21cr|texlive-context-handlecsv-20190527-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-handlecsv
Version:	20190527
Release:	1
Summary:	Data merging for automatic document creation
Group:		Publishing
URL:		https://www.ctan.org/pkg/context-handlecsv
License:	GNU General Public License, version 3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-handlecsv.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-handlecsv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package handles csv data merging for automatic document creation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/handlecsv
%doc %{_texmfdistdir}/doc/context/third/handlecsv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9580 |21cr|texlive-context-inifile-20080715-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-inifile
Version:	20080715
Release:	1
Summary:	An ini-file pretty-printer, using ConTEXt
Group:		Publishing
URL:		https://www.ctan.org/pkg/context-inifile
License:	GNU General Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-inifile.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-inifile.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The module parses an ini-file and prints the contents with a user-defined layout.
 The entries of the file may be sorted by up to three sort keys.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/inifile 
%doc %{_texmfdistdir}/doc/context/third/inifile 

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9581 |21cr|texlive-context-layout-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-layout
Version:	1.4
Release:	1
Summary:	Show ConTeXt layouts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/context-layout
License:	GNU General Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-layout.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-layout.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Draws a representation of the layout of the current page and
displays the sizes of the widths and heights of the margins,
header, footer and text body.
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9582 |21cr|texlive-context-title-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-title
Version:	1.4
Release:	1
Summary:	Place document titles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/context-title
License:	GNU General Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-title.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/context-title.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The title module provides the \placetitle command to put a
title block into your document. With the command \setuptitle
values can be set for \placetitle and change the formatting of
the content.
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9583 |21cr|texlive-context-visualcounter-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-visualcounter
Version:	1.5
Release:	1
Summary:	A package for multiple accents in mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/texlive-context-visualcounter
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/texlive-context-visualcounter.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/texlive-context-visualcounter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for multiple accents in mathematics, with nice features 
concerning the creation of accents and placement of scripts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9584 |21cr|texlive-cookingsymbols-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24526
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-cookingsymbols
Version:	1.1
Release:	2
Epoch:		1
Summary:	TeXLive cookingsymbols package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cookingsymbols.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cookingsymbols.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cookingsymbols.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
TeXLive cookingsymbols package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/cookingsymbols/cookingsymbols.mf
%{_texmfdistdir}/fonts/tfm/public/cookingsymbols/cookingsymbols.tfm
%{_texmfdistdir}/tex/latex/cookingsymbols/cookingsymbols.sty
%doc %{_texmfdistdir}/doc/latex/cookingsymbols/README
%doc %{_texmfdistdir}/doc/latex/cookingsymbols/cookingsymbols.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cookingsymbols/cookingsymbols.dtx
%doc %{_texmfdistdir}/source/latex/cookingsymbols/cookingsymbols.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9585 |21cr|texlive-coolfn-66221-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname coolfn

Summary:	Typeset long legal footnotes
Name:		texlive-coolfn
Version:	66221
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(coolfn.sty) = 2024
BuildArch:	noarch

%description
This package provides formatting for footnotes in long legal
documents, using hanging indents to make them look nicer.

%files
%doc %{_texmfdistdir}/doc/latex/coolfn
%{_texmfdistdir}/tex/latex/coolfn

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9586 |21cr|texlive-cooperhewitt-64967-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cooperhewitt

Summary:	LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX support for the Cooper Hewitt family of sans serif fonts
Name:		texlive-cooperhewitt
Version:	64967
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(CooperHewitt.map) = 2024
Provides:	tex(CooperHewitt.sty) = 2024
Provides:	tex(cphwt_4je6jj.enc) = 2024
Provides:	tex(cphwt_kvtx4d.enc) = 2024
Provides:	tex(cphwt_psuovm.enc) = 2024
Provides:	tex(cphwt_r6y6f6.enc) = 2024
Provides:	tex(cphwt_sz67he.enc) = 2024
Provides:	tex(cphwt_tjvrzf.enc) = 2024
Provides:	tex(cphwt_vrwj46.enc) = 2024
Provides:	tex(LY1CpHwt-Sup.fd) = 2024
Provides:	tex(LY1CpHwt-TLF.fd) = 2024
Provides:	tex(OT1CpHwt-Sup.fd) = 2024
Provides:	tex(OT1CpHwt-TLF.fd) = 2024
Provides:	tex(T1CpHwt-Sup.fd) = 2024
Provides:	tex(T1CpHwt-TLF.fd) = 2024
Provides:	tex(TS1CpHwt-TLF.fd) = 2024
BuildArch:	noarch

%description
Cooper Hewitt is a contemporary sans serif, with characters
composed of modified-geometric curves and arches. Initially
commissioned by Pentagram to evolve his Polaris Condensed
typeface, Chester Jenkins created a new digital form to support
the newly transformed Smithsonian Design Museum.

%files
%doc %{_texmfdistdir}/doc/fonts/cooperhewitt
%{_texmfdistdir}/fonts/enc/dvips/cooperhewitt
%{_texmfdistdir}/fonts/map/dvips/cooperhewitt
%{_texmfdistdir}/fonts/opentype/public/cooperhewitt
%{_texmfdistdir}/fonts/tfm/public/cooperhewitt
%{_texmfdistdir}/fonts/type1/public/cooperhewitt
%{_texmfdistdir}/fonts/vf/public/cooperhewitt
%{_texmfdistdir}/tex/latex/cooperhewitt

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9587 |21cr|texlive-coop-writing-61607-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname coop-writing

Summary:	Support for Cooperative Writing and editorial comments
Name:		texlive-coop-writing
Version:	61607
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(coop-writing.sty) = 2024
BuildArch:	noarch

%description
This package for Cooperative Writing supports editorial
comments and gives some extra support for writing and
submitting papers, such as anonymization commands for any
document that involves more than one author or editor. The
general behavior of this package is to provide different ways
of marking your text, for example with comments or to-do-notes,
suggestions to add, remove or change text that can be totally
supressed from the output when desired. Mostly, this can be
easily done using one of the three main option states: editing,
submit, and publish. Users should use the editing state most of
the time. In this state, all markings will appear and
anonymization will be off. When submitting, the submit state
will provide a clean article, without any markings, but
anonymized. It is possible to use the options submit and
noanonymize together. Publish will never anonymize. The goal is
to make the submit and publish documents states minimally
invasive, to avoid any clash with publishers' styles. Commands
were inspired from different packages that do not work together
very well, such as ed, todonotes, and color-edits.

%files
%doc %{_texmfdistdir}/doc/latex/coop-writing
%{_texmfdistdir}/tex/latex/coop-writing

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9588 |21cr|texlive-cormorantgaramond-64411-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cormorantgaramond

Summary:	Cormorant Garamond family of fonts
Name:		texlive-cormorantgaramond
Version:	64411
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cgrm_2ahxjn.enc) = 2024
Provides:	tex(cgrm_2fszuh.enc) = 2024
Provides:	tex(cgrm_2qzove.enc) = 2024
Provides:	tex(cgrm_2woykf.enc) = 2024
Provides:	tex(cgrm_2xvhcw.enc) = 2024
Provides:	tex(cgrm_33cvom.enc) = 2024
Provides:	tex(cgrm_36gbzh.enc) = 2024
Provides:	tex(cgrm_45xxtj.enc) = 2024
Provides:	tex(cgrm_4fize4.enc) = 2024
Provides:	tex(cgrm_554p77.enc) = 2024
Provides:	tex(cgrm_575fly.enc) = 2024
Provides:	tex(cgrm_5ezmem.enc) = 2024
Provides:	tex(cgrm_5zuknm.enc) = 2024
Provides:	tex(cgrm_6cgyqp.enc) = 2024
Provides:	tex(cgrm_726bjo.enc) = 2024
Provides:	tex(cgrm_7l65a5.enc) = 2024
Provides:	tex(cgrm_ahqoow.enc) = 2024
Provides:	tex(cgrm_baamnb.enc) = 2024
Provides:	tex(cgrm_bndooo.enc) = 2024
Provides:	tex(cgrm_cjaria.enc) = 2024
Provides:	tex(cgrm_cpu34x.enc) = 2024
Provides:	tex(cgrm_ctw2ju.enc) = 2024
Provides:	tex(cgrm_czjvuz.enc) = 2024
Provides:	tex(cgrm_edlrwy.enc) = 2024
Provides:	tex(cgrm_ehskq2.enc) = 2024
Provides:	tex(cgrm_ezmsqi.enc) = 2024
Provides:	tex(cgrm_fnl4sj.enc) = 2024
Provides:	tex(cgrm_fqbaih.enc) = 2024
Provides:	tex(cgrm_g7ehha.enc) = 2024
Provides:	tex(cgrm_gfgzzm.enc) = 2024
Provides:	tex(cgrm_ggoxrw.enc) = 2024
Provides:	tex(cgrm_goqtbf.enc) = 2024
Provides:	tex(cgrm_hnmd4t.enc) = 2024
Provides:	tex(cgrm_ho7x2y.enc) = 2024
Provides:	tex(cgrm_i4ztt6.enc) = 2024
Provides:	tex(cgrm_imua2m.enc) = 2024
Provides:	tex(cgrm_ira4mj.enc) = 2024
Provides:	tex(cgrm_iuhjfz.enc) = 2024
Provides:	tex(cgrm_iyf2ai.enc) = 2024
Provides:	tex(cgrm_j2hlib.enc) = 2024
Provides:	tex(cgrm_j5xrmg.enc) = 2024
Provides:	tex(cgrm_jg7lls.enc) = 2024
Provides:	tex(cgrm_jwbavo.enc) = 2024
Provides:	tex(cgrm_k54atz.enc) = 2024
Provides:	tex(cgrm_kbv5uy.enc) = 2024
Provides:	tex(cgrm_ksmxc6.enc) = 2024
Provides:	tex(cgrm_kwxzcp.enc) = 2024
Provides:	tex(cgrm_l5f566.enc) = 2024
Provides:	tex(cgrm_ldw23p.enc) = 2024
Provides:	tex(cgrm_lksf3x.enc) = 2024
Provides:	tex(cgrm_mcvd3c.enc) = 2024
Provides:	tex(cgrm_mq3pk7.enc) = 2024
Provides:	tex(cgrm_myrl74.enc) = 2024
Provides:	tex(cgrm_nniu67.enc) = 2024
Provides:	tex(cgrm_nswxfs.enc) = 2024
Provides:	tex(cgrm_nxkups.enc) = 2024
Provides:	tex(cgrm_nxzswi.enc) = 2024
Provides:	tex(cgrm_od3ly4.enc) = 2024
Provides:	tex(cgrm_olzkph.enc) = 2024
Provides:	tex(cgrm_p4fks4.enc) = 2024
Provides:	tex(cgrm_p5fsj2.enc) = 2024
Provides:	tex(cgrm_payxmf.enc) = 2024
Provides:	tex(cgrm_pm4rjs.enc) = 2024
Provides:	tex(cgrm_qaa67y.enc) = 2024
Provides:	tex(cgrm_qco72e.enc) = 2024
Provides:	tex(cgrm_qnkxku.enc) = 2024
Provides:	tex(cgrm_qrc2n2.enc) = 2024
Provides:	tex(cgrm_rnb5y6.enc) = 2024
Provides:	tex(cgrm_rohdbu.enc) = 2024
Provides:	tex(cgrm_ry5pl7.enc) = 2024
Provides:	tex(cgrm_s2pyjf.enc) = 2024
Provides:	tex(cgrm_s4zbbx.enc) = 2024
Provides:	tex(cgrm_sfoqzm.enc) = 2024
Provides:	tex(cgrm_sowbon.enc) = 2024
Provides:	tex(cgrm_txosmw.enc) = 2024
Provides:	tex(cgrm_tzoazu.enc) = 2024
Provides:	tex(cgrm_usix3v.enc) = 2024
Provides:	tex(cgrm_uys5qk.enc) = 2024
Provides:	tex(cgrm_v2z4dl.enc) = 2024
Provides:	tex(cgrm_v7t4yx.enc) = 2024
Provides:	tex(cgrm_vabk2p.enc) = 2024
Provides:	tex(cgrm_vdpe4c.enc) = 2024
Provides:	tex(cgrm_vnv5uk.enc) = 2024
Provides:	tex(cgrm_vqhfd3.enc) = 2024
Provides:	tex(cgrm_vs5evg.enc) = 2024
Provides:	tex(cgrm_vuc6nl.enc) = 2024
Provides:	tex(cgrm_xrzidp.enc) = 2024
Provides:	tex(cgrm_xwhmgi.enc) = 2024
Provides:	tex(cgrm_xzjjkx.enc) = 2024
Provides:	tex(cgrm_y22u7a.enc) = 2024
Provides:	tex(cgrm_yah5fp.enc) = 2024
Provides:	tex(cgrm_ycbsw5.enc) = 2024
Provides:	tex(cgrm_ye4dng.enc) = 2024
Provides:	tex(cgrm_yifvzr.enc) = 2024
Provides:	tex(cgrm_yksu3h.enc) = 2024
Provides:	tex(cgrm_yo6qap.enc) = 2024
Provides:	tex(cgrm_zc6byq.enc) = 2024
Provides:	tex(cgrm_zcfdr3.enc) = 2024
Provides:	tex(cgrm_zkhuis.enc) = 2024
Provides:	tex(cgrm_zzgqip.enc) = 2024
Provides:	tex(CormorantGaramond.map) = 2024
Provides:	tex(CormorantGaramond.sty) = 2024
Provides:	tex(LY1CormorantGaramond-Inf.fd) = 2024
Provides:	tex(LY1CormorantGaramond-LF.fd) = 2024
Provides:	tex(LY1CormorantGaramond-OsF.fd) = 2024
Provides:	tex(LY1CormorantGaramond-Sup.fd) = 2024
Provides:	tex(LY1CormorantGaramond-TLF.fd) = 2024
Provides:	tex(LY1CormorantGaramond-TOsF.fd) = 2024
Provides:	tex(OT1CormorantGaramond-Inf.fd) = 2024
Provides:	tex(OT1CormorantGaramond-LF.fd) = 2024
Provides:	tex(OT1CormorantGaramond-OsF.fd) = 2024
Provides:	tex(OT1CormorantGaramond-Sup.fd) = 2024
Provides:	tex(OT1CormorantGaramond-TLF.fd) = 2024
Provides:	tex(OT1CormorantGaramond-TOsF.fd) = 2024
Provides:	tex(T1CormorantGaramond-Inf.fd) = 2024
Provides:	tex(T1CormorantGaramond-LF.fd) = 2024
Provides:	tex(T1CormorantGaramond-OsF.fd) = 2024
Provides:	tex(T1CormorantGaramond-Sup.fd) = 2024
Provides:	tex(T1CormorantGaramond-TLF.fd) = 2024
Provides:	tex(T1CormorantGaramond-TOsF.fd) = 2024
Provides:	tex(T2ACormorantGaramond-Inf.fd) = 2024
Provides:	tex(T2ACormorantGaramond-LF.fd) = 2024
Provides:	tex(T2ACormorantGaramond-OsF.fd) = 2024
Provides:	tex(T2ACormorantGaramond-Sup.fd) = 2024
Provides:	tex(T2ACormorantGaramond-TLF.fd) = 2024
Provides:	tex(T2ACormorantGaramond-TOsF.fd) = 2024
Provides:	tex(T2BCormorantGaramond-Inf.fd) = 2024
Provides:	tex(T2BCormorantGaramond-LF.fd) = 2024
Provides:	tex(T2BCormorantGaramond-OsF.fd) = 2024
Provides:	tex(T2BCormorantGaramond-Sup.fd) = 2024
Provides:	tex(T2BCormorantGaramond-TLF.fd) = 2024
Provides:	tex(T2BCormorantGaramond-TOsF.fd) = 2024
Provides:	tex(T2CCormorantGaramond-Inf.fd) = 2024
Provides:	tex(T2CCormorantGaramond-LF.fd) = 2024
Provides:	tex(T2CCormorantGaramond-OsF.fd) = 2024
Provides:	tex(T2CCormorantGaramond-Sup.fd) = 2024
Provides:	tex(T2CCormorantGaramond-TLF.fd) = 2024
Provides:	tex(T2CCormorantGaramond-TOsF.fd) = 2024
Provides:	tex(TS1CormorantGaramond-LF.fd) = 2024
Provides:	tex(TS1CormorantGaramond-OsF.fd) = 2024
Provides:	tex(TS1CormorantGaramond-TLF.fd) = 2024
Provides:	tex(TS1CormorantGaramond-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Cormorant Garamond family of fonts, designed by
Christian Thalman of Catharsis Fonts. The family includes
light, regular, medium, semi-bold and bold weights, with
italics.

%files
%doc %{_texmfdistdir}/doc/fonts/cormorantgaramond/
%{_texmfdistdir}/fonts/enc/dvips/cormorantgaramond/
%{_texmfdistdir}/fonts/map/dvips/cormorantgaramond/
%{_texmfdistdir}/fonts/tfm/catharsis/cormorantgaramond/
%{_texmfdistdir}/fonts/truetype/catharsis/cormorantgaramond/
%{_texmfdistdir}/fonts/type1/catharsis/cormorantgaramond/
%{_texmfdistdir}/fonts/vf/catharsis/cormorantgaramond/
%{_texmfdistdir}/tex/latex/cormorantgaramond/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9589 |21cr|texlive-correctmathalign-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-correctmathalign
Version:	1.1
Release:	2
Summary:	Correct spacing of the alignment in expressions
Group:		Publishing
URL:		https://ctan.org/pkg/correctmathalign
License:	bsd
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/correctmathalign.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/correctmathalign.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package realigns the horizontal spacing of the alignments in some mathematical environments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9590 |21cr|texlive-countriesofeurope-0.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54512
# category Package
# catalog-ctan /fonts/countriesofeurope
# catalog-date 2020-03-28
# catalog-license lppl
# catalog-version 0.21
Name:		texlive-countriesofeurope
Version:	0.23
Release:	1
Summary:	A font with the images of the countries of Europe
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/countriesofeurope
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/countriesofeurope.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/countriesofeurope.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a font "CountriesOfEurope" (in Adobe Type 1
format) and the necessary metrics, together with LaTeX macros
for its use. The font provides glyphs with a filled outline of
the shape of each country; each glyph is at the same
cartographic scale.


#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/fonts/countriesofeurope/README*
%doc %{_texmfdistdir}/doc/fonts/countriesofeurope/Changes
%doc %{_texmfdistdir}/doc/fonts/countriesofeurope/countriesofeurope.bib
%doc %{_texmfdistdir}/doc/fonts/countriesofeurope/countriesofeurope.pdf
%doc %{_texmfdistdir}/doc/fonts/countriesofeurope/countriesofeurope.tex
%{_texmfdistdir}/fonts/afm/public/countriesofeurope/countriesofeurope.afm
%{_texmfdistdir}/fonts/enc/dvips/countriesofeurope/countriesofeurope.enc
%{_texmfdistdir}/fonts/map/dvips/countriesofeurope/countriesofeurope.map
%{_texmfdistdir}/fonts/opentype/public/countriesofeurope/countriesofeurope.otf
%{_texmfdistdir}/fonts/tfm/public/countriesofeurope/countriesofeurope.tfm
%{_texmfdistdir}/fonts/type1/public/countriesofeurope/countriesofeurope.pfb
%{_texmfdistdir}/tex/latex/countriesofeurope/countriesofeurope.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9591 |21cr|texlive-courier-scaled-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24940
# category Package
# catalog-ctan /fonts/psfonts/courier-scaled
# catalog-date 2011-12-25 01:31:26 +0100
# catalog-license lppl1.2
# catalog-version undef
Name:		texlive-courier-scaled
Version:	20190228
Release:	1
Summary:	Provides a scaled Courier font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/psfonts/courier-scaled
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/courier-scaled.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/courier-scaled.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package sets the default typewriter font to Courier with a
possible scale factor (in the same way as the helvet package
for Helvetica works for sans serif).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/courier-scaled/8rpcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/couriers.sty
%{_texmfdistdir}/tex/latex/courier-scaled/il2pcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/ly1pcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/omlpcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/omspcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/ot1pcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/t1pcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/t5pcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/ts1pcrs.fd
%{_texmfdistdir}/tex/latex/courier-scaled/xl2pcrs.fd
%doc %{_texmfdistdir}/doc/fonts/courier-scaled/Couriers.pdf
%doc %{_texmfdistdir}/doc/fonts/courier-scaled/Couriers.tex
%doc %{_texmfdistdir}/doc/fonts/courier-scaled/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9592 |21cr|texlive-courierten-55436-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname courierten

Summary:	Courier 10 Pitch BT with LaTeX support
Name:		texlive-courierten
Version:	55436
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_2hg32y.enc) = 2024
Provides:	tex(a_5k4rzj.enc) = 2024
Provides:	tex(a_keoqme.enc) = 2024
Provides:	tex(a_n2okah.enc) = 2024
Provides:	tex(CourierOneZeroPitch.map) = 2024
Provides:	tex(courierten.sty) = 2024
Provides:	tex(LY1CourierOneZeroPitch-TLF.fd) = 2024
Provides:	tex(OT1CourierOneZeroPitch-TLF.fd) = 2024
Provides:	tex(T1CourierOneZeroPitch-TLF.fd) = 2024
Provides:	tex(TS1CourierOneZeroPitch-TLF.fd) = 2024
BuildArch:	noarch

%description
This is the font Courier 10 Pitch BT, with LaTeX support and an
OpenType conversion as well.

%files
%doc %{_texmfdistdir}/doc/fonts/courierten
%{_texmfdistdir}/fonts/enc/dvips/courierten
%{_texmfdistdir}/fonts/map/dvips/courierten
%{_texmfdistdir}/fonts/opentype/public/courierten
%{_texmfdistdir}/fonts/tfm/public/courierten
%{_texmfdistdir}/fonts/type1/public/courierten
%{_texmfdistdir}/fonts/vf/public/courierten
%{_texmfdistdir}/tex/latex/courierten

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9593 |21cr|texlive-c-pascal-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18337
# category Package
# catalog-ctan /macros/generic/c_pascal
# catalog-date 2008-01-08 01:09:19 +0100
# catalog-license pd
# catalog-version 1.2
Name:		texlive-c-pascal
Version:	1.2
Release:	7
Summary:	Typeset Python, C and Pascal programs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/c_pascal
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/c-pascal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/c-pascal.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0
%define		_python_bytecompile_build 0

%description
A TeX macro package for easy typesetting programs in Python, C
and Pascal. Program source files may also be input.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/c-pascal/cap.tex
%{_texmfdistdir}/tex/generic/c-pascal/cap_c.tex
%{_texmfdistdir}/tex/generic/c-pascal/cap_comm.tex
%{_texmfdistdir}/tex/generic/c-pascal/cap_pas.tex
%{_texmfdistdir}/tex/generic/c-pascal/cap_pyt.tex
%doc %{_texmfdistdir}/doc/generic/c-pascal/README.eng
%doc %{_texmfdistdir}/doc/generic/c-pascal/README.pol
%doc %{_texmfdistdir}/doc/generic/c-pascal/demo1.tex
%doc %{_texmfdistdir}/doc/generic/c-pascal/demo2.tex
%doc %{_texmfdistdir}/doc/generic/c-pascal/prog/fib.py
%doc %{_texmfdistdir}/doc/generic/c-pascal/prog/guess.pas
%doc %{_texmfdistdir}/doc/generic/c-pascal/prog/sun.c

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9594 |21cr|texlive-cprotectinside-63833-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cprotectinside

Summary:	Use cprotect arbitrarily nested
Name:		texlive-cprotectinside
Version:	63833
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cprotectinside.sty) = 2024
BuildArch:	noarch

%description
This package extends the cprotect package to allow users to use
verbatim-like commands inside arbitrary parameters.

%files
%doc %{_texmfdistdir}/doc/latex/cprotectinside
%{_texmfdistdir}/tex/latex/cprotectinside

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9595 |21cr|texlive-cqubeamer-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cqubeamer
Version:	1
Release:	1
Summary:	LATEX Beamer Template for Chongqing University
Group:		Publishing
URL:		https://www.ctan.org/pkg/cqubeamer 
License:	MIT License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/cqubeamer.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/cqubeamer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a LATEX beamer template designed for researchers of Chongqing University.
 It can be used for academic reports, conferences,
 or thesis defense, and can be helpful for delivering a speech.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/cqubeamer
%doc %{_texmfdistdir}/doc/xelatex/cqubeamer

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9596 |21cr|texlive-cquthesis-2019.10.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 52355
# category Package
# catalogue-ctan /macros/latex/contrib/cquthesis
# catalogue-topics dissertation class chinese
# catalog-date 2019-10-12 15:19:03 +0200
# catalog-license lppl1.3
# catalog-version 1.40

Name:		texlive-cquthesis
Version:	2019.10.12
Release:	1
Summary:	LaTeX Thesis Template for Chongqing University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cquthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cquthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cquthesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cquthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
CQUThesis stands for Chongqing University Thesis Template for
LaTeX, bearing the ability to support bachelor, master, doctor
dissertations with grace and speed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cquthesis/
%doc %{_texmfdistdir}/doc/latex/cquthesis/
%{_texmfdistdir}/source/latex/cquthesis/
%{_texmfdistdir}/bibtex/bst/cquthesis/

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9597 |21cr|texlive-create-theorem-64104-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname create-theorem

Summary:	Multilingual support for theorem-like environments
Name:		texlive-create-theorem
Version:	64104
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(crefthe.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(create-theorem.sty) = 2024
BuildArch:	noarch

%description
This package provides commands for naming, initializing and
configuring theorem-like environments. These commands have
key-value based interfaces and are especially useful in
multilingual documents, allowing the easy declaration of
theorem-like environments that can automatically adapt to the
language settings.

%files
%doc %{_texmfdistdir}/doc/latex/create-theorem
%{_texmfdistdir}/tex/latex/create-theorem

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9598 |21cr|texlive-crefthe-64498-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname crefthe

Summary:	Cross referencing with proper definite articles
Name:		texlive-crefthe
Version:	64498
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(crefthe.sty) = 2024
BuildArch:	noarch

%description
By default, when using cleveref's \cref to reference
theorem-like environments, the names do not contain definite
articles. In languages such as French, Italian, Portuguese,
Spanish, etc. this results in incorrect grammar. For this
purpose, the current package offers \crefthe, which handles the
definite articles properly (especially for the article
contractions in many European languages).

%files
%doc %{_texmfdistdir}/doc/latex/crefthe
%{_texmfdistdir}/tex/latex/crefthe

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9599 |21cr|texlive-crimson-64559-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname crimson

Summary:	Crimson fonts with LaTeX support
Name:		texlive-crimson
Version:	64559
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-crimson = 2024
Provides:	tex(crimson.map) = 2024
Provides:	tex(crimson.sty) = 2024
Provides:	tex(crm_3bejww.enc) = 2024
Provides:	tex(crm_axwm4k.enc) = 2024
Provides:	tex(crm_ayvnmf.enc) = 2024
Provides:	tex(crm_bchha2.enc) = 2024
Provides:	tex(crm_fllea6.enc) = 2024
Provides:	tex(crm_g4bzis.enc) = 2024
Provides:	tex(crm_izufyi.enc) = 2024
Provides:	tex(crm_jdlmpi.enc) = 2024
Provides:	tex(crm_kwsa5r.enc) = 2024
Provides:	tex(crm_myjoho.enc) = 2024
Provides:	tex(crm_n3gbj7.enc) = 2024
Provides:	tex(crm_odbuza.enc) = 2024
Provides:	tex(crm_ory2k7.enc) = 2024
Provides:	tex(crm_qrsm2e.enc) = 2024
Provides:	tex(crm_qst7o4.enc) = 2024
Provides:	tex(crm_tyw3ea.enc) = 2024
Provides:	tex(crm_uafi7a.enc) = 2024
Provides:	tex(crm_ue2axx.enc) = 2024
Provides:	tex(crm_vcz7kx.enc) = 2024
Provides:	tex(crm_wef5am.enc) = 2024
Provides:	tex(crm_wsbs26.enc) = 2024
Provides:	tex(crm_wttfgh.enc) = 2024
Provides:	tex(LY1Crimson-TLF.fd) = 2024
Provides:	tex(OT1Crimson-TLF.fd) = 2024
Provides:	tex(T1Crimson-TLF.fd) = 2024
Provides:	tex(TS1Crimson-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX, and LuaLaTeX
support for the Crimson family of fonts, designed by Sebastian
Kosch. The Crimson family is for book production in the
tradition of beautiful oldstyle typefaces, inspired
particularly by the work of people like Jan Tschichold (Sabon),
Robert Slimbach (Arno, Minion), and Jonathan Hoefler (Hoefler
Text). Support for small caps and old-style numerals is still
"under construction"; these features are not supported by this
version of the package.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/crimson/
%{_texmfdistdir}/fonts/map/dvips/crimson/
%{_texmfdistdir}/fonts/opentype/kosch/crimson/
%{_texmfdistdir}/fonts/tfm/kosch/crimson/
%{_texmfdistdir}/fonts/type1/kosch/crimson/
%{_texmfdistdir}/fonts/vf/kosch/crimson/
%{_texmfdistdir}/tex/latex/crimson/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9600 |21cr|texlive-crimsonpro-64565-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname crimsonpro

Summary:	CrimsonPro fonts with LaTeX support
Name:		texlive-crimsonpro
Version:	64565
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(CrimsonPro.map) = 2024
Provides:	tex(CrimsonPro.sty) = 2024
Provides:	tex(crp_2sgwql.enc) = 2024
Provides:	tex(crp_3lrgtj.enc) = 2024
Provides:	tex(crp_b4nxop.enc) = 2024
Provides:	tex(crp_bapnwu.enc) = 2024
Provides:	tex(crp_hxzdi6.enc) = 2024
Provides:	tex(crp_iqth5t.enc) = 2024
Provides:	tex(crp_izapv7.enc) = 2024
Provides:	tex(crp_jvsxek.enc) = 2024
Provides:	tex(crp_kpggsy.enc) = 2024
Provides:	tex(crp_krtxg6.enc) = 2024
Provides:	tex(crp_ldjqep.enc) = 2024
Provides:	tex(crp_q22ex3.enc) = 2024
Provides:	tex(crp_qlkdbr.enc) = 2024
Provides:	tex(crp_spbxfw.enc) = 2024
Provides:	tex(crp_umrhwx.enc) = 2024
Provides:	tex(crp_wslvgt.enc) = 2024
Provides:	tex(crp_xsutkk.enc) = 2024
Provides:	tex(crp_ylc3fo.enc) = 2024
Provides:	tex(crp_yyrdtm.enc) = 2024
Provides:	tex(LY1CrimsonPro-Inf.fd) = 2024
Provides:	tex(LY1CrimsonPro-LF.fd) = 2024
Provides:	tex(LY1CrimsonPro-OsF.fd) = 2024
Provides:	tex(LY1CrimsonPro-Sup.fd) = 2024
Provides:	tex(LY1CrimsonPro-TLF.fd) = 2024
Provides:	tex(LY1CrimsonPro-TOsF.fd) = 2024
Provides:	tex(OT1CrimsonPro-Inf.fd) = 2024
Provides:	tex(OT1CrimsonPro-LF.fd) = 2024
Provides:	tex(OT1CrimsonPro-OsF.fd) = 2024
Provides:	tex(OT1CrimsonPro-Sup.fd) = 2024
Provides:	tex(OT1CrimsonPro-TLF.fd) = 2024
Provides:	tex(OT1CrimsonPro-TOsF.fd) = 2024
Provides:	tex(T1CrimsonPro-Inf.fd) = 2024
Provides:	tex(T1CrimsonPro-LF.fd) = 2024
Provides:	tex(T1CrimsonPro-OsF.fd) = 2024
Provides:	tex(T1CrimsonPro-Sup.fd) = 2024
Provides:	tex(T1CrimsonPro-TLF.fd) = 2024
Provides:	tex(T1CrimsonPro-TOsF.fd) = 2024
Provides:	tex(TS1CrimsonPro-LF.fd) = 2024
Provides:	tex(TS1CrimsonPro-OsF.fd) = 2024
Provides:	tex(TS1CrimsonPro-TLF.fd) = 2024
Provides:	tex(TS1CrimsonPro-TOsF.fd) = 2024
BuildArch:	noarch

%description
The CrimsonPro fonts are designed by Jacques Le Bailly and
derived from the Crimson Text fonts designed by Sebastian
Kosch. The family includes eight weights and italics for each
weight.

%files
%doc %{_texmfdistdir}/doc/fonts/crimsonpro
%{_texmfdistdir}/fonts/enc/dvips/crimsonpro
%{_texmfdistdir}/fonts/map/dvips/crimsonpro
%{_texmfdistdir}/fonts/tfm/public/crimsonpro
%{_texmfdistdir}/fonts/truetype/public/crimsonpro
%{_texmfdistdir}/fonts/type1/public/crimsonpro
%{_texmfdistdir}/fonts/vf/public/crimsonpro
%{_texmfdistdir}/tex/latex/crimsonpro

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9601 |21cr|texlive-crossrefenum-66014-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname crossrefenum

Summary:	Smart typesetting of enumerated cross-references for various TeX formats
Name:		texlive-crossrefenum
Version:	66014
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(crossrefenum.sty) = 2024
Provides:	tex(crossrefenum.tex) = 2024
Provides:	tex(t-crossrefenum.tex) = 2024
BuildArch:	noarch

%description
crossrefenum lets TeX manage the formatting of bunches of
cross-references for you. It features: Automatic collapsing of
references; Support for references by various criteria,
including page and note number, line number in ConTeXt and
edpage and edline when used in conjunction with reledmac
Handling of references combining two criteria (e.g. by page and
note number) Extension mechanisms to add support to other types
of references without modifying the internal macros. Note that
sorting is not supported. I assume that users know in what
order the labels they refer to appear in their document. It is
written in Plain TeX as much as possible in order to make it
compatible with a wide array of formats. For the moment, it
works out of the box with ConTeXt and LaTeX.

%files
%doc %{_texmfdistdir}/doc/generic/crossrefenum
%{_texmfdistdir}/tex/generic/crossrefenum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9602 |21cr|texlive-crumbs-64602-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname crumbs

Summary:	Add a Navigation Path to the page header
Name:		texlive-crumbs
Version:	64602
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(catchfile.sty)
#Requires:	tex(etoolbox.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(crumbs.sty) = 2024
BuildArch:	noarch

%description
This package adds a navigation path ("breadcrumb trail") at the
header of a presentation, just like some websites do in order
to simplify navigation.

%files
%doc %{_texmfdistdir}/doc/latex/crumbs
%{_texmfdistdir}/tex/latex/crumbs

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9603 |21cr|texlive-cryptocode-0.40-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cryptocode 
Version:	0.40
Release:	1
Summary:	Typesetting pseudocode, protocols, game-based proofs and black-box reductions in cryptography
Group:		Publishing
URL:		https://ctan.org/pkg/cryptocode
License:	The LATEX Project Public License 1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/cryptocode.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/cryptocode.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/cryptocode.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The cryptocode package provides a set of macros to ease the typesetting of pseudocode, algorithms and protocols. 
In addition it comes with a wide range of tools to typeset cryptographic papers. 
This includes simple predefined commands for concepts such as a security parameter
or advantage terms but also flexible and powerful environments to layout game-based proofs or black-box reductions.
is automatic and the end user is saved the tiresome processing.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9604 |21cr|texlive-cryst-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/cryst
# catalog-date 2008-08-15 14:30:40 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-cryst
Version:	20190228
Release:	1
Summary:	Font for graphical symbols used in crystallography
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cryst
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cryst.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cryst.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The font is provided as an Adobe Type 1 font, and as MetaFont
source. Instructions for use are available both in the README
file and (with a font diagram) in the documentation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/cryst/cryst.afm
%{_texmfdistdir}/fonts/source/public/cryst/cryst.mf
%{_texmfdistdir}/fonts/tfm/public/cryst/cryst.tfm
%{_texmfdistdir}/fonts/type1/public/cryst/cryst.pfb
%doc %{_texmfdistdir}/doc/latex/cryst/README
%doc %{_texmfdistdir}/doc/latex/cryst/cryst1.pdf
%doc %{_texmfdistdir}/doc/latex/cryst/cryst1.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9605 |21cr|texlive-csassignments-63992-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname csassignments

Summary:	A wrapper for article with macros and customizations for computer science assignments
Name:		texlive-csassignments
Version:	63992
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(csassignments.cls) = 2024
BuildArch:	noarch

%description
This class wraps the default article and extends it for a
homogeneous look of hand-in assignments at university (RWTH
Aachen University, Computer Science Department), specifically
in the field of computer science, but easily extensible to
other fields. It provides macros for structuring exercises,
aggregating points, and displaying a grading table, as well as
several macros for easier math mode usage.

%files
%doc %{_texmfdistdir}/doc/latex/csassignments
%{_texmfdistdir}/tex/latex/csassignments

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9606 |21cr|texlive-css-colors-20170420-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-css-colors
Version:	20170420
Release:	2
Epoch:		1
Summary:	Named colors for web-safe design
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/css-colors
License:	GNU General Public License - The LaTeX Project Public License
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/css-colors.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/css-colors.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines web-safe colors for use with D.P. Carlisle’s color package.
It is intended for both authors and package writers (e.g. to create Beamer color themes). 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9607 |21cr|texlive-cstypo-41986-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cstypo

Summary:	Czech typography rules enforced through LuaTeX hooks
Name:		texlive-cstypo
Version:	41986
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cstypo.sty) = 2024
Provides:	tex(cstypo-tex.tex) = 2024
BuildArch:	noarch

%description
This package provides macros that enforce basic Czech
typography rules through Lua hooks available in LuaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/cstypo/
%{_texmfdistdir}/tex/lualatex/cstypo/
%{_texmfdistdir}/tex/luatex/cstypo/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9608 |21cr|texlive-csvmerge-51857-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname csvmerge

Summary:	Merge TeX code with csv data
Name:		texlive-csvmerge
Version:	51857
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(csvmerge.sty) = 2024
BuildArch:	noarch

%description
This package provides macros for processing a csv spreadsheet
file with a minimum of configuration for the csv file. The
first row names the columns and the remaining rows are data.
This data can be merged with TeX code residing in an auxiliary
file and the process repeated for each data row. There is one
macro to set things up, one to extract the data, and one to
tell if the field is empty or not. The documentation contains
examples.

%files
%doc %{_texmfdistdir}/doc/latex/csvmerge
%{_texmfdistdir}/tex/latex/csvmerge

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9609 |21cr|texlive-ctablestack-38514-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ctablestack

Summary:	Catcode table stable support
Name:		texlive-ctablestack
Version:	38514
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-ctablestack = 2024
Provides:	tex(ctablestack.sty) = 2024
BuildArch:	noarch

%description
This package provides a method for defining category code table
stacks in LuaTeX. It builds on code provided by the 2015/10/01
release of LaTeX2e (also available as ltluatex.sty for plain
users). It is required by the luatexbase package (v1.0 onward)
which uses ctablestack to provide a back-compatibility form of
this concept.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/luatex/ctablestack/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9610 |21cr|texlive-ctanify-1.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30921
# category Package
# catalog-ctan /support/ctanify
# catalog-date 2013-06-19 07:13:38 +0200
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-ctanify
Version:	1.9.1
Release:	2
Summary:	Prepare a package for upload to CTAN
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/ctanify
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctanify.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctanify.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-ctanify.bin = %{EVRD}

%description
Given a list of filenames, ctanify creates a tarball (a .tar.gz
file) with the files laid out in CTAN's preferred structure.
The tarball additionally contains a ZIP (.zip) file with copies
of all files laid out in the standard TeX Directory Structure
(TDS), which may be used by those intending to install the
package, or by those who need to incorporate it in a
distribution. (The TDS ZIP file will be installed in the CTAN
install/ tree.).

#-----------------------------------------------------------------------
%files
%{_bindir}/ctanify
%{_texmfdistdir}/scripts/ctanify/ctanify
%doc %{_texmfdistdir}/doc/latex/ctanify/README
%doc %{_texmfdistdir}/doc/latex/ctanify/ctanify.pdf
%doc %{_mandir}/man1/ctanify.1*
%doc %{_texmfdistdir}/doc/man/man1/ctanify.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/ctanify/ctanify ctanify
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9611 |21cr|texlive-ctanupload-1.2c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /support/ctanupload
# catalog-date 2012-05-08 15:13:49 +0200
# catalog-license gpl3
# catalog-version 1.7
Name:		texlive-ctanupload
Version:	1.2c
Release:	2
Epoch:		1
Summary:	Support for users uploading to CTAN
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/ctanupload
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctanupload.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctanupload.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-ctanupload.bin = %{EVRD}

%description
The package provides a Perl script that allows the uploads of a
contribution to CTAN from the command line. The aim us to
simplify the release process for LaTeX package authors.

#-----------------------------------------------------------------------
%files
%{_bindir}/ctanupload
%{_texmfdistdir}/scripts/ctanupload/ctanupload.pl
%doc %{_texmfdistdir}/doc/support/ctanupload/Makefile.example
%doc %{_texmfdistdir}/doc/support/ctanupload/README
%doc %{_texmfdistdir}/doc/support/ctanupload/ctanupload.pdf
%doc %{_texmfdistdir}/doc/support/ctanupload/ctanupload.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/ctanupload/ctanupload.pl ctanupload
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9612 |21cr|texlive-cuprum-49909-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cuprum

Summary:	Cuprum font family support for LaTeX
Name:		texlive-cuprum
Version:	49909
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cprbit8t.tfm) = 2024
Provides:	tex(cprbn8t.tfm) = 2024
Provides:	tex(cprmit8t.tfm) = 2024
Provides:	tex(cprmn8t.tfm) = 2024
Provides:	tex(Cuprum-BoldItalic.ttf) = 2024
Provides:	tex(Cuprum-Bold.ttf) = 2024
Provides:	tex(Cuprum-Italic.ttf) = 2024
Provides:	tex(cuprum.map) = 2024
Provides:	tex(Cuprum-Regular.ttf) = 2024
Provides:	tex(cuprum.sty) = 2024
Provides:	tex(t1cpr.fd) = 2024
BuildArch:	noarch

%description
This package provides support for the Cuprum font family (see
http://jovanny.ru).

%files
%doc %{_texmfdistdir}/doc/fonts/cuprum
%{_texmfdistdir}/fonts/map/dvips/cuprum
%{_texmfdistdir}/fonts/tfm/public/cuprum
%{_texmfdistdir}/fonts/truetype/public/cuprum
%{_texmfdistdir}/tex/latex/cuprum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9613 |21cr|texlive-custom-bib-4.33-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24729
# category Package
# catalog-ctan /macros/latex/contrib/custom-bib
# catalog-date 2011-11-18 13:01:42 +0100
# catalog-license lppl
# catalog-version 4.33
Name:		texlive-custom-bib
Version:	4.33
Release:	8
Summary:	Customised BibTeX styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/custom-bib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/custom-bib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/custom-bib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/custom-bib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Package generating customized BibTeX bibliography styles from a
generic file using docstrip driven by parameters generated by a
menu application. Includes support for the Harvard style of
citations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/custom-bib/catalan.mbs
%{_texmfdistdir}/tex/latex/custom-bib/dansk.mbs
%{_texmfdistdir}/tex/latex/custom-bib/dutch.mbs
%{_texmfdistdir}/tex/latex/custom-bib/english.mbs
%{_texmfdistdir}/tex/latex/custom-bib/esperant.mbs
%{_texmfdistdir}/tex/latex/custom-bib/finnish.mbs
%{_texmfdistdir}/tex/latex/custom-bib/french.mbs
%{_texmfdistdir}/tex/latex/custom-bib/geojour.mbs
%{_texmfdistdir}/tex/latex/custom-bib/geophys.tex
%{_texmfdistdir}/tex/latex/custom-bib/german.mbs
%{_texmfdistdir}/tex/latex/custom-bib/italian.mbs
%{_texmfdistdir}/tex/latex/custom-bib/makebst.tex
%{_texmfdistdir}/tex/latex/custom-bib/merlin.mbs
%{_texmfdistdir}/tex/latex/custom-bib/norsk.mbs
%{_texmfdistdir}/tex/latex/custom-bib/photjour.mbs
%{_texmfdistdir}/tex/latex/custom-bib/physjour.mbs
%{_texmfdistdir}/tex/latex/custom-bib/polski.mbs
%{_texmfdistdir}/tex/latex/custom-bib/portuges.mbs
%{_texmfdistdir}/tex/latex/custom-bib/shorthnd.tex
%{_texmfdistdir}/tex/latex/custom-bib/slovene.mbs
%{_texmfdistdir}/tex/latex/custom-bib/spanish.mbs
%{_texmfdistdir}/tex/latex/custom-bib/suppjour.mbs
%{_texmfdistdir}/tex/latex/custom-bib/svenska.mbs
%doc %{_texmfdistdir}/doc/latex/custom-bib/README
%doc %{_texmfdistdir}/doc/latex/custom-bib/makebst.pdf
%doc %{_texmfdistdir}/doc/latex/custom-bib/merlin.pdf
%doc %{_texmfdistdir}/doc/latex/custom-bib/readme.mkb
#- source
%doc %{_texmfdistdir}/source/latex/custom-bib/makebst.drv
%doc %{_texmfdistdir}/source/latex/custom-bib/makebst.dtx
%doc %{_texmfdistdir}/source/latex/custom-bib/makebst.ins
%doc %{_texmfdistdir}/source/latex/custom-bib/shorthnd.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9614 |21cr|texlive-customdice-64089-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname customdice

Summary:	Simple commands for drawing customisable dice
Name:		texlive-customdice
Version:	64089
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(customdice.sty) = 2024
BuildArch:	noarch

%description
The customdice package for LaTeX, LuaLaTeX and XeTeX that
provides functionality for drawing dice. The aim is to provide
highly-customisable but simple-to-use commands, allowing:
adding custom text to dice faces; control over colouring;
control over sizing.

%files
%doc %{_texmfdistdir}/doc/latex/customdice
%{_texmfdistdir}/tex/latex/customdice

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9615 |21cr|texlive-cvss-65169-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cvss

Summary:	Compute and display CVSS base scores
Name:		texlive-cvss
Version:	65169
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cvss.sty) = 2024
BuildArch:	noarch

%description
The Common Vulnerability Scoring System (CVSS) is an open
framework for communicating the characteristics and severity of
software vulnerabilities. CVSS consists of three metric groups:
Base, Temporal, and Environmental. This package allows the user
to compute CVSS3.1 base scores and use them in documents, i.e.
it only deals with the Base score. Temporal and Environental
scores will be part of a future release. More information can
be found at https://www.first.org/cvss/specification-document.

%files
%doc %{_texmfdistdir}/doc/latex/cvss
%{_texmfdistdir}/tex/latex/cvss

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9616 |21cr|texlive-cweb-old-49271-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname cweb-old

Summary:	Old cweb files
Name:		texlive-cweb-old
Version:	49271
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdfcwebmac.tex) = 2024
Provides:	tex(pdfdcwebmac.tex) = 2024
Provides:	tex(pdffcwebmac.tex) = 2024
Provides:	tex(pdficwebmac.tex) = 2024
Provides:	tex(pdfwebmac.tex) = 2024
Provides:	tex(pdfXcwebmac.tex) = 2024
Provides:	tex(README) = 2024
BuildArch:	noarch

%description
Old cweb files.

%files
%{_texmfdistdir}/tex/plain/cweb-old

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9617 |21cr|texlive-cyber-20180301-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cyber
Version:	20180301
Release:	1
Summary:	Annotate compliance with cybersecurity requirements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cyber
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyber.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyber.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyber.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package helps you write documents indicating your compliance with cybersecurity requirements. 
It also helps you format your document in a form suitable inside the U.S. 
Department of Defense, by attaching distribution statements, destruction notices, organization logos, and security labels to it.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cyber/cyber.sty
%doc %{_texmfdistdir}/doc/latex/cyber/README
%doc %{_texmfdistdir}/doc/latex/cyber/cyber.pdf	
%doc %{_texmfdistdir}/doc/latex/cyber/LICENSE	
#- source
%doc %{_texmfdistdir}/source/latex/cyber/cyber.dtx
%doc %{_texmfdistdir}/source/latex/cyber/cyber.ins
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9618 |21cr|texlive-cybercic-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cybercic
Version:	2.1
Release:	1
Summary:	This package is used in concert with the cyber package to make documents with annotations of compliance with cybersecurity requirements
Group:		Publishing
URL:		https://ctan.org/pkg/cybercic
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cybercic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cybercic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cybercic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is cybercic, a horrible hack for LaTeX which is used in concert with the
cyber package to make documents with annotations of compliance with information
assurance (IA) requirements. "cic" stands for Controls in Contents, and when
you include this package, some notations of compliance are added to section
names as seen in the table of contents of the final document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9619 |21cr|texlive-dad-54191-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dad

Summary:	Simple typesetting system for mixed Arabic/Latin documents
Name:		texlive-dad
Version:	54191
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-dad = 2024
Provides:	tex(Dad-bold.pfb) = 2024
Provides:	tex(dad.map) = 2024
Provides:	tex(Dad-mono.pfb) = 2024
Provides:	tex(Dad.pfb) = 2024
Provides:	tex(dadrealbold.tfm) = 2024
Provides:	tex(dadrealmono.tfm) = 2024
Provides:	tex(dadreal.tfm) = 2024
Provides:	tex(dad.sty) = 2024
Provides:	tex(OT1dad.fd) = 2024
Provides:	tex(T1dad.fd) = 2024
BuildArch:	noarch

%description
This package allows simple typesetting in Arabic script,
intended for mixed Arabic/Latin script usage in situations
where heavy-duty solutions are discouraged. The system
operates with both Unicode and transliterated input, allowing
the user to choose the most appropriate approach for every
situation.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/dad/
%{_texmfdistdir}/fonts/map/dvips/dad/
%{_texmfdistdir}/fonts/ofm/public/dad/
%{_texmfdistdir}/fonts/ovf/public/dad/
%{_texmfdistdir}/fonts/tfm/public/dad/
%{_texmfdistdir}/fonts/type1/public/dad/
%{_texmfdistdir}/tex/lualatex/dad/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9620 |21cr|texlive-dancers-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 13293
# category Package
# catalog-ctan /fonts/dancers/dancers.mf
# catalog-date 2008-11-24 17:20:15 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-dancers
Version:	20190228
Release:	1
Summary:	Font for Conan Doyle's "The Dancing Men"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/dancers/dancers.mf
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dancers.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The (Sherlock Holmes) book contains a code which uses dancing
men as glyphs. The alphabet as given is not complete, lacking
f, j, k, q, u, w, x and z, so those letters in the font are not
due to Conan Doyle. The code required word endings to be marked
by the dancing man representing the last letter to be holding a
flag: these are coded as A-Z.
thaTiStOsaYsentenceSiNthEcodElooKlikEthiS. In some cases, the
man has no arms, making it impossible for him to hold a flag.
In these cases, he is wearing a flag on his hat in the
'character'. The font is distributed as MetaFont source.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/dancers/dancers.mf
%{_texmfdistdir}/fonts/tfm/public/dancers/dancers.tfm

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9621 |21cr|texlive-dantelogo-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dantelogo
Version:	20160624
Release:	1
Summary:	A font for DANTE's logo
Group:		Publishing
URL:		https://ctan.org/pkg/dantelogo
License:	LPPL
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/dantelogo.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/dantelogo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The DANTE font for the logo of DANTE (http://www.dante.de), the 
German speaking TeX users group. The font includes only the
five characters d, a, n, t, and e. dantelogo.sty provides an
interface for LuaLaTeX/XeLaTeX/pdfLaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dantelogo
%{_texmfdistdir}/fonts/*
%doc %{_texmfdistdir}/doc/fonts/dantelogo

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9622 |21cr|texlive-darkmode-64271-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname darkmode

Summary:	General Dark Mode Support for LaTeX-Documents
Name:		texlive-darkmode
Version:	64271
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(darkmode.sty) = 2024
BuildArch:	noarch

%description
This package provides an API for template and package
developers to create dynamic color schemes for light- and
darkmodes. For those unaware: We refer to dark mode when a
document has a dark background with a light font and to light
mode if it has a dark font with a light background.

%files
%doc %{_texmfdistdir}/doc/latex/darkmode
%{_texmfdistdir}/tex/latex/darkmode

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9623 |21cr|texlive-datax-61772-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datax

Summary:	Import individual data from script files
Name:		texlive-datax
Version:	61772
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(datax.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package uses pgfkeys to retrieve individual data
points generated in some script. Analogous to how one might
generate graphics in a script and import those graphics into a
LaTeX document.

%files
%doc %{_texmfdistdir}/doc/latex/datax
%{_texmfdistdir}/tex/latex/datax

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9624 |21cr|texlive-datestamp-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datestamp

Summary:	Fixed date-stamps with LuaLaTeX
Name:		texlive-datestamp
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(datestamp.sty) = 2024
BuildArch:	noarch

%description
Add fixed date-stamps with simple and customizable aux files
and LuaLaTeX. As long as the aux file is not deleted/modified
the date-stamp generated with this package remains intact.

%files
%doc %{_texmfdistdir}/doc/lualatex/datestamp
%{_texmfdistdir}/tex/lualatex/datestamp

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9625 |21cr|texlive-datetime2-1.5.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2
Version:	1.5.7
Release:	1
Summary:	Provides commands for formatting dates, times and time zones
Group:		Publishing
URL:		https://ctan.org/pkg/datetime2
License:	LaTeX Project Public License
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides commands for formatting dates, times and time zones.
Language and regional support is provided by independently
maintained and installed modules.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9626 |21cr|texlive-datetime2-bahasai-46287-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datetime2-bahasai

Summary:	Bahasai language module for the datetime2 package
Name:		texlive-datetime2-bahasai
Version:	46287
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-datetime2-bahasai = 2024
Provides:	tex(datetime2-bahasai.ldf) = 2024
BuildArch:	noarch

%description
This module provides the "bahasai" style that can be set using
\DTMsetstyle provided by datetime2.sty. This package is
currently unmaintained. Please see the README for the procedure
to follow if you want to take over the maintenance.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/datetime2-bahasai/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9627 |21cr|texlive-datetime2-basque-1.2a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-basque
Version:	1.2a
Release:	1
Summary:	Basque Language Module for datetime2 Package
Group:		Publishing
#URL:		https://ctan.org/tex-archive/macros/latex/contrib/
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-basque.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-basque.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-basque.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is the Basque language module for the datetime2 package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-basque/*
%doc %{_texmfdistdir}/doc/latex/datetime2-basque/*
%doc %{_texmfdistdir}/source/latex/datetime2-basque/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9628 |21cr|texlive-datetime2-breton-52647-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datetime2-breton

Summary:	Breton language module for the datetime2 package
Name:		texlive-datetime2-breton
Version:	52647
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-datetime2-breton = 2024
Provides:	tex(datetime2-breton-ascii.ldf) = 2024
Provides:	tex(datetime2-breton.ldf) = 2024
Provides:	tex(datetime2-breton-utf8.ldf) = 2024
BuildArch:	noarch

%description
This module provides the "breton" style that can be set using
\DTMsetstyle provided by datetime2.sty. This package is
currently unmaintained. Please see the README for the procedure
to follow if you want to take over the maintenance.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/datetime2-breton/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9629 |21cr|texlive-datetime2-bulgarian-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-bulgarian
Version:	1.1
Release:	1
Summary:	Bulgarian language module for the datetime2 package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-bulgarian
License:	The LATEX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-bulgarian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-bulgarian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-bulgarian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “bulgarian” style that can be set using \DTMsetstyle provided by datetime2.sty.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-bulgarian/datetime2-bulgarian-ascii.ldf
%{_texmfdistdir}/tex/latex/datetime2-bulgarian/datetime2-bulgarian-utf8.ldf
%{_texmfdistdir}/tex/latex/datetime2-bulgarian/datetime2-bulgarian.ldf
%doc %{_texmfdistdir}/doc/latex/datetime2-bulgarian/README
%doc %{_texmfdistdir}/doc/latex/datetime2-bulgarian/datetime2-bulgarian.pdf
#- source
%doc %{_texmfdistdir}/source/latex/datetime2-bulgarian/datetime2-bulgarian.dtx
%doc %{_texmfdistdir}/source/latex/datetime2-bulgarian/datetime2-bulgarian.ins


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9630 |21cr|texlive-datetime2-catalan-20180319-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-catalan
Version:	20180319
Release:	1
Epoch:		1
Summary:	Catalan language module for the datetime2 package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/datetime2-catalan
License:	The LaTeX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-catalan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-catalan.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-catalan.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “catalan” style that can be set using \DTMsetstyle provided by datetime2.sty.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9631 |21cr|texlive-datetime2-croatian-20180107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-croatian
Version:	20180107
Release:	1
Summary:	Croatian language module for the datetime2 package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-croatian
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-croatian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-croatian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-croatian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the "croatian" style that can be set using \DTMsetstyle provided by datetime2.sty.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-croatian/datetime2-croatian-ascii.ldf
%{_texmfdistdir}/tex/latex/datetime2-croatian/datetime2-croatian-utf8.ldf
%{_texmfdistdir}/tex/latex/datetime2-croatian/datetime2-croatian.ldf
%doc %{_texmfdistdir}/doc/latex/datetime2-croatian/datetime2-croatian.pdf
%doc %{_texmfdistdir}/doc/latex/datetime2-croatian/README		
#- source
%doc %{_texmfdistdir}/source/latex/datetime2-croatian/datetime2-croatian.dtx
%doc %{_texmfdistdir}/source/latex/datetime2-croatian/datetime2-croatian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9632 |21cr|texlive-datetime2-dutch-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-dutch
Version:	1.1
Release:	1
Summary:	Dutch language module for the datetime2 package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-dutch
License:	The LATEX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-dutch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-dutch.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-dutch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “dutch” style that can be set using \DTMsetstyle provided by datetime2.sty.
This package is currently unmaintained. Please see the README for the procedure to follow if you want to take over the maintenance.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-dutch
%doc %{_texmfdistdir}/source/latex/datetime2-dutch
%doc %{_texmfdistdir}/doc/latex/datetime2-dutch


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9633 |21cr|texlive-datetime2-finnish-47047-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datetime2-finnish

Summary:	Finnish language module for the datetime2 package
Name:		texlive-datetime2-finnish
Version:	47047
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-datetime2-finnish = 2024
Provides:	tex(datetime2-finnish-ascii.ldf) = 2024
Provides:	tex(datetime2-finnish.ldf) = 2024
Provides:	tex(datetime2-finnish-utf8.ldf) = 2024
BuildArch:	noarch

%description
This module provides the "finnish" style that can be set using
\DTMsetstyle provided by datetime2.sty. This package is
currently unmaintained. Please see the README for the procedure
to follow if you want to take over the maintenance.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/datetime2-finnish/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9634 |21cr|texlive-datetime2-french-1.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-french
Version:	1.03
Release:	1
Summary:	French Language Module for datetime2 Package
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-french
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-french.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-french.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-french.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “french” style that can be set using 
\DTMsetstyle provided by datetime2.sty.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-french
%doc %{_texmfdistdir}/doc/latex/datetime2-french
%doc %{_texmfdistdir}/source/latex/datetime2-french

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9635 |21cr|texlive-datetime2-galician-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-galician
Version:	1.0
Release:	1
Summary:	Galician Language Module for datetime2 CTAN Package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-galician
License:	LPPL
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-galician.doc.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-galician.source.tar.xz
Source2:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-galician.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-datetime2-galician.bin = %{EVRD}

%description
This is the Galician language module for the datetime2 package.
If you want to use the settings in this module you must install it in addition to installing datetime2.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-galician/*
%doc %{_texmfdistdir}/doc/latex/datetime2-galician/*
#- source
%doc %{_texmfdistdir}/source/latex/datetime2-galician/datetime2-galician.dtx
%doc %{_texmfdistdir}/source/latex/datetime2-galician/datetime2-galician.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9636 |21cr|texlive-datetime2-german-53125-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datetime2-german

Summary:	German language module for the datetime2 package
Name:		texlive-datetime2-german
Version:	53125
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-datetime2-german = 2024
Provides:	tex(datetime2-german-ascii.ldf) = 2024
Provides:	tex(datetime2-german.ldf) = 2024
Provides:	tex(datetime2-german-utf8.ldf) = 2024
BuildArch:	noarch

%description
This module provides the "german" style that can be set using
\DTMsetstyle provided by datetime2.sty.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/datetime2-german/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9637 |21cr|texlive-datetime2-greek-47533-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datetime2-greek

Summary:	Greek language module for the datetime2 package
Name:		texlive-datetime2-greek
Version:	47533
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-datetime2-greek = 2024
Provides:	tex(datetime2-greek-ascii.ldf) = 2024
Provides:	tex(datetime2-greek.ldf) = 2024
Provides:	tex(datetime2-greek-utf8.ldf) = 2024
BuildArch:	noarch

%description
This module provides the "greek" style that can be set using
\DTMsetstyle provided by datetime2.sty. This package is
currently unmaintained. Please see the README for the procedure
to follow if you want to take over the maintenance.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/datetime2-greek/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9638 |21cr|texlive-datetime2-it-fulltext-54779-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datetime2-it-fulltext

Summary:	Italian full text styles for the datetime2 package
Name:		texlive-datetime2-it-fulltext
Version:	54779
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(datetime2.sty)
#Requires:	tex(itnumpar.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-datetime2-it-fulltext = 2024
Provides:	tex(datetime2-it-fulltext-ascii.ldf) = 2024
Provides:	tex(datetime2-it-fulltext.sty) = 2024
Provides:	tex(datetime2-it-fulltext-utf8.ldf) = 2024
BuildArch:	noarch

%description
Italian date and time styles that use words for the numbers and
ordinals. This package provides the following date and time
styles: "it-fulltext" and "it-fulltext-twenty-four". The first
style uses a format "am pm", the second a format "24 hours".
The necessary packages are datetime2, itnumpar, ifxetex, and
ifluatex. This package is the translation and adaptation of
datetime2-en-fulltext.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/datetime2-it-fulltext/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9639 |21cr|texlive-datetime2-norsk-48267-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datetime2-norsk

Summary:	Norsk language module for the datetime2 package
Name:		texlive-datetime2-norsk
Version:	48267
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-datetime2-norsk = 2024
Provides:	tex(datetime2-norsk-ascii.ldf) = 2024
Provides:	tex(datetime2-norsk.ldf) = 2024
Provides:	tex(datetime2-norsk-utf8.ldf) = 2024
BuildArch:	noarch

%description
This module provides the "norsk" style that can be set using
\DTMsetstyle provided by datetime2.sty. This package is
currently unmaintained. Please see the README for the procedure
to follow if you want to take over the maintenance.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/datetime2-norsk/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9640 |21cr|texlive-datetime2-polish-1.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29776
# category Package
# catalog-ctan /macros/latex/contrib/mpgraphics
# catalog-date 2013-04-08 09:07:09 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-datetime2-polish
Version:	1.1
Release:	12
Summary:	Polish style
Group:		Publishing
URL:		https://ctan.org/pkg/datetime2-polish
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-polish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-polish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-polish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “polish” style that can be
 set using \DTMsetstyle provided by datetime2.sty.

This package is currently unmaintained. Please see the 
README for the procedure to follow if you want to take 
over the maintenance.
----------------
%files
%{_texmfdistdir}/tex/latex/datetime2-polish/datetime2-polish-ascii.ldf
%{_texmfdistdir}/tex/latex/datetime2-polish/datetime2-polish.ldf
%{_texmfdistdir}/tex/latex/datetime2-polish/datetime2-polish-utf8.ldf
#- doc
%doc %{_texmfdistdir}/doc/latex/datetime2-polish/README
%doc %{_texmfdistdir}/doc/latex/datetime2-polish/datetime2-polish.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9641 |21cr|texlive-datetime2-russian-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-russian
Version:	1.1
Release:	1
Summary:	Russian language module for the datetime2 package
Group:		Publishing
URL:		https://www.dickimaw-books.com/contact.php
License:	LaTeX Project Public License
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/datetime2-russian.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/datetime2-russian.doc.tar.xz
Source2:    https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/datetime2-russian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is the Russian language module for the datetime2 package. If you
want to use the settings in this module you must install it in addition to
installing datetime2. If you use babel or polyglossia, you will need this module
to prevent them from redefining \today. The datetime2 useregional
setting must be set to text or numeric for the language styles to be set.
Alternatively, you can set the style in the document using \DTMsetstyle,
but this may be changed by \date⟨language⟩ depending on the value of the
useregional setting.
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9642 |21cr|texlive-datetime2-samin-49346-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname datetime2-samin

Summary:	Northern Sami language module for the datetime2 package
Name:		texlive-datetime2-samin
Version:	49346
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-datetime2-samin = 2024
Provides:	tex(datetime2-samin-ascii.ldf) = 2024
Provides:	tex(datetime2-samin.ldf) = 2024
Provides:	tex(datetime2-samin-utf8.ldf) = 2024
BuildArch:	noarch

%description
This module provides the "samin" style that can be set using
\DTMsetstyle provided by datetime2.sty. This package is
currently unmaintained. Please see the README for the procedure
to follow if you want to take over the maintenance.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/datetime2-samin/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9643 |21cr|texlive-datetime2-scottish-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-scottish
Version:	1.1
Release:	1
Summary:	Scottish Gaelic Language Module for datetime2 Package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-scottish
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-scottish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-scottish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-scottish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “scottish” style that can be set using \DTMsetstyle provided by datetime2.sty.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-scottish/*
%doc %{_texmfdistdir}/doc/latex/datetime2-scottish/*
%doc %{_texmfdistdir}/source/latex/datetime2-scottish/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9644 |21cr|texlive-datetime2-serbian-20221022-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-serbian
Version:	20221022
Release:	1
Summary:	Serbian Language Module for datetime2 CTAN Package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-serbian
License:	LPPL
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-serbian.doc.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-serbian.source.tar.xz
Source2:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-serbian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-datetime2-serbian.bin = %{EVRD}

%description
This is the Serbian language module for the datetime2 package.
If you want to use the settings in this module you must install it in addition to installing datetime2.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-serbian/*
%doc %{_texmfdistdir}/doc/latex/datetime2-serbian/*
#- source
%doc %{_texmfdistdir}/source/latex/datetime2-serbian/datetime2-serbian.dtx
%doc %{_texmfdistdir}/source/latex/datetime2-serbian/datetime2-serbian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9645 |21cr|texlive-datetime2-slovak-20191004-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-slovak
Version:	20191004
Release:	1
Summary:	Slovak language module for the datetime2 package
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-slovak
License:	LPPL 1.3
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/datetime2-slovak.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/datetime2-slovak.doc.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/datetime2-slovak.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “slovak” style that can be set using \DTMsetstyle provided by datetime2.sty.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-slovak/*
#- docs
%doc %{_texmfdistdir}/doc/latex/datetime2-slovak/*
#- source
%doc %{_texmfdistdir}/source/latex/datetime2-slovak/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9646 |21cr|texlive-datetime2-slovene-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-slovene
Version:	1.1
Release:	1
Summary:	Slovene language module for the datetime2 package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-slovene
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-slovene.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-slovene.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-slovene.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “slovene” style that can be set using \DTMsetstyle provided by datetime2.sty.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-slovene/datetime2-slovene-ascii.ldf
%{_texmfdistdir}/tex/latex/datetime2-slovene/datetime2-slovene-utf8.ldf
%{_texmfdistdir}/tex/latex/datetime2-slovene/datetime2-slovene.ldf
%doc %{_texmfdistdir}/doc/latex/datetime2-slovene/README
%doc %{_texmfdistdir}/doc/latex/datetime2-slovene/datetime2-slovene.pdf
#- source
%doc %{_texmfdistdir}/source/latex/datetime2-slovene/datetime2-slovene.dtx
%doc %{_texmfdistdir}/source/latex/datetime2-slovene/datetime2-slovene.ins


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9647 |21cr|texlive-datetime2-spanish-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-spanish
Version:	1.1
Release:	1
Summary:	Spanish Language Module for datetime2 Package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-spanish
License:	The LATEX Project Public License 1.3
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-spanish.doc.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-spanish.source.tar.xz
Source2:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-spanish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-datetime2-spanish.bin = %{EVRD}

%description
This module provides the “spanish” style that can be set using \DTMsetstyle provided by datetime2.sty.

This package is currently unmaintained. Please see the README for the procedure to follow if you want to take over the maintenance.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-spanish/datetime2-spanish-ascii.ldf
%{_texmfdistdir}/tex/latex/datetime2-spanish/datetime2-spanish-utf8.ldf
%{_texmfdistdir}/tex/latex/datetime2-spanish/datetime2-spanish.ldf
%doc %{_texmfdistdir}/source/latex/datetime2-spanish/datetime2-spanish.dtx
%doc %{_texmfdistdir}/source/latex/datetime2-spanish/datetime2-spanish.ins
%doc %{_texmfdistdir}/doc/latex/datetime2-spanish/README
%doc %{_texmfdistdir}/doc/latex/datetime2-spanish/datetime2-spanish.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9648 |21cr|texlive-datetime2-swedish-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-swedish
Version:	2.7
Release:	1
Summary:	Swedish language module for the datetime2 package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/datetime2-swedish
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-swedish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime2-swedish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
his module provides the "swedish" style that can be set using
\DTMsetstyle provided by datetime2.sty. This package is
currently unmaintained. Please see the README for the procedure
to follow if you want to take over the maintenance.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9649 |21cr|texlive-datetime2-turkish-20191010-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-turkish
Version:	20191010
Release:	1
Summary:	Turkish language module for the datetime2 package
Group:		Publishing
URL:		https://ctan.org/pkg/datetime2-turkish
License:	LPPL1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/datetime2-turkish.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/datetime2-turkish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the "turkish" style that can be set using
\DTMsetstyle provided by datetime2.sty. This package is
currently unmaintained. Please see the README for the procedure
to follow if you want to take over the maintenance.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9650 |21cr|texlive-datetime2-ukrainian-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           texlive-datetime2-ukrainian
Version:        1.2
Release:        1
Summary:        This module provides the “ukrainian” style
License:        The LATEX Project Public License 1.3
Group:          Publishing
URL:            https://ctan.org/pkg/datetime2-ukrainian
Source0:        https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/datetime2-ukrainian.tar.xz
Source1:        https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/datetime2-ukrainian.source.tar.xz
Source2:        https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/datetime2-ukrainian.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post): texlive-kpathsea
BuildArch: noarch

%description
This module provides the “ukrainian” style that can be set using \DTMsetstyle provided by datetime2.sty

%prep
%setup -c -a0 -a1 -a2

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9651 |21cr|texlive-datetime2-usorbian-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-usorbian
Version:	1.1
Release:	1
Summary:	Upper Sorbian language module for the datetime2 package
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-usorbian
License:	LPPL
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/datetime2-usorbian.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/datetime2-usorbian.doc.tar.xz
Source2:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/datetime2-usorbian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This module provides the “usorbian” style that can be set using \DTMsetstyle provided by datetime2.sty.
This package is currently unmaintained. Please see the README for the procedure to follow if you want to take over the maintenance.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-usorbian/datetime2-usorbian-ascii.ldf
%{_texmfdistdir}/tex/latex/datetime2-usorbian/datetime2-usorbian-utf8.ldf
%{_texmfdistdir}/tex/latex/datetime2-usorbian/datetime2-usorbian.ldf
%doc %{_texmfdistdir}/doc/latex/datetime2-usorbian/README
%doc %{_texmfdistdir}/doc/latex/datetime2-usorbian/datetime2-usorbian.pdf
#- source
%doc %{_texmfdistdir}/source/latex/datetime2-usorbian/datetime2-usorbian.dtx
%doc %{_texmfdistdir}/source/latex/datetime2-usorbian/datetime2-usorbian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9652 |21cr|texlive-datetime2-welsh-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime2-welsh
Version:	1.1
Release:	1
Summary:	Welsh language module for the datetime2 package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/datetime2-contrib/datetime2-welsh
License:	The LATEX Project Public License 1.3
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-welsh.doc.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-welsh.source.tar.xz
Source2:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/datetime2-welsh.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-datetime2-welsh.bin = %{EVRD}

%description
This module provides the “welsh” style that can be set using \DTMsetstyle provided by datetime2.sty.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime2-welsh/datetime2-welsh-ascii.ldf
%{_texmfdistdir}/tex/latex/datetime2-welsh/datetime2-welsh-utf8.ldf
%{_texmfdistdir}/tex/latex/datetime2-welsh/datetime2-welsh.ldf
%doc %{_texmfdistdir}/source/latex/datetime2-welsh/datetime2-welsh.dtx
%doc %{_texmfdistdir}/source/latex/datetime2-welsh/datetime2-welsh.ins
%doc %{_texmfdistdir}/doc/latex/datetime2-welsh/README
%doc %{_texmfdistdir}/doc/latex/datetime2-welsh/datetime2-welsh.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9653 |21cr|texlive-dbshow-61634-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dbshow

Summary:	A package to store and display data with custom filters, orders, and styles
Name:		texlive-dbshow
Version:	61634
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(dbshow.sty) = 2024
BuildArch:	noarch

%description
The package provides four core functions: data storage and
display data filtering data sorting data display All data is
saved once and then you can display these data with custom
filters, orders and styles. The package can be used, for
example, to record and display something you'd like to review,
maybe the question you always answered incorrectly or some
forgettable knowledge. But obviously, the package is much more
powerful and extensible for more interesting tasks depending on
the individual.

%files
%doc %{_texmfdistdir}/doc/latex/dbshow
%{_texmfdistdir}/tex/latex/dbshow

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9654 |21cr|texlive-ddphonism-52009-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ddphonism

Summary:	Dodecaphonic diagrams: twelve-tone matrices, clock diagrams, etc
Name:		texlive-ddphonism
Version:	52009
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ddphonism.sty) = 2024
BuildArch:	noarch

%description
This is a music-related package which is focused on notation
from the Twelve-Tone System, also called Dodecaphonism. It
provides LaTeX algorithms that produce typical dodecaphonic
notation based off a musical series, or row sequence, of
variable length. The package requires etoolbox, pgfkeys, TikZ,
xparse, and xstring.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/ddphonism

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9655 |21cr|texlive-debate-64846-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname debate

Summary:	Debates between reviewers
Name:		texlive-debate
Version:	64846
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(listings.sty)
Requires:	tex(listingsutf8.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(pdfcol.sty)
#Requires:	tex(tcolorbox.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(debate.sty) = 2024
BuildArch:	noarch

%description
This package helps to organize debates between multiple
reviewers of a paper within the text.

%files
%doc %{_texmfdistdir}/doc/latex/debate
%{_texmfdistdir}/tex/latex/debate

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9656 |21cr|texlive-decision-table-60673-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname decision-table

Summary:	An easy way to create Decision Model and Notation decision tables
Name:		texlive-decision-table
Version:	60673
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(nicematrix.sty)
Provides:	tex(decision-table.sty) = 2024
BuildArch:	noarch

%description
The decision-table package allows for an easy way to generate
decision tables in the Decision Model and Notation (DMN)
format. This package ensures consistency in the tables (i.e.
fontsize), and is thus a better alternative to inserting tables
via images. The decision-table package adds the \dmntable
command, with which tables can be created. This command expands
into a tabular, so it can be used within a table or figure
environment. Furthermore, this allows labels and captions to be
added seamlessly. It is also possible to place multiple DMN
tables in one table/figure environment. The package relies on
nicematrix and l3keys2e.

%files
%doc %{_texmfdistdir}/doc/latex/decision-table
%{_texmfdistdir}/tex/latex/decision-table

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9657 |21cr|texlive-dejavu-2.34-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31771
# category Package
# catalog-ctan /fonts/dejavu
# catalog-date 2013-04-22 01:01:25 +0200
# catalog-license lppl
# catalog-version 2.33
Name:		texlive-dejavu
Version:	2.34
Release:	3
Summary:	LaTeX support for the DejaVu fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/dejavu
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dejavu.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dejavu.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains LaTeX support for the DejaVu fonts. They
are derived from the Vera fonts, but contain more characters
and styles. The fonts are included in the original TrueType
format and converted Type 1 format. The (currently) supported
encodings are: OT1, T1, IL2, TS1, T2*, X2, QX, and LGR. The
package doesn't (currently) support mathematics. More encodings
and/or features will come later.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSans-Bold.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSans-BoldOblique.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSans-ExtraLight.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSans-Oblique.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSans.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSansCondensed-Bold.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSansCondensed-BoldOblique.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSansCondensed-Oblique.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSansCondensed.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSansMono-Bold.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSansMono-BoldOblique.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSansMono-Oblique.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSansMono.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSerif-Bold.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSerif-BoldItalic.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSerif-Italic.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSerif.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSerifCondensed-Bold.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSerifCondensed-BoldItalic.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSerifCondensed-Italic.afm
%{_texmfdistdir}/fonts/afm/public/dejavu/DejaVuSerifCondensed.afm
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_il2.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_lgr.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_qx.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_t1-truetype.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_t1-type1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavumono_x2.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_il2.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_lgr.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_qx.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_t1-truetype.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_t1-type1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusans_x2.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_il2.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_lgr.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_qx.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_t1-truetype.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_t1-type1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavusanslight_x2.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_il2.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_lgr.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_qx.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_t1-truetype.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_t1-type1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/dejavu/dejavuserif_x2.enc
%{_texmfdistdir}/fonts/map/dvips/dejavu/dejavu-truetype.map
%{_texmfdistdir}/fonts/map/dvips/dejavu/dejavu-type1.map
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Bold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-BoldOblique-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-ExtraLight-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-Oblique-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSans-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Bold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-Oblique-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansCondensed-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-lgr--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Bold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-lgr--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-BoldOblique-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-lgr--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-Oblique-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-lgr--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSansMono-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Bold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-BoldItalic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-Italic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerif-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Bold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-Italic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-lgr.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-qx--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-qx.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/dejavu/DejaVuSerifCondensed-tlf-x2.tfm
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSans-Bold.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSans-BoldOblique.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSans-ExtraLight.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSans-Oblique.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSans.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSansCondensed-Bold.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSansCondensed-BoldOblique.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSansCondensed-Oblique.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSansCondensed.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSansMono-Bold.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSansMono-BoldOblique.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSansMono-Oblique.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSansMono.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSerif-Bold.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSerif-BoldItalic.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSerif-Italic.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSerif.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSerifCondensed-Bold.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSerifCondensed-BoldItalic.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSerifCondensed-Italic.ttf
%{_texmfdistdir}/fonts/truetype/public/dejavu/DejaVuSerifCondensed.ttf
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans-Bold.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans-BoldOblique.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans-BoldOblique.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans-ExtraLight.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans-ExtraLight.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans-Oblique.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans-Oblique.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSans.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansCondensed-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansCondensed-Bold.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansCondensed-BoldOblique.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansCondensed-BoldOblique.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansCondensed-Oblique.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansCondensed-Oblique.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansCondensed.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansCondensed.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansMono-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansMono-Bold.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansMono-BoldOblique.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansMono-BoldOblique.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansMono-Oblique.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansMono-Oblique.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansMono.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSansMono.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerif-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerif-Bold.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerif-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerif-BoldItalic.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerif-Italic.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerif-Italic.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerif.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerif.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerifCondensed-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerifCondensed-Bold.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerifCondensed-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerifCondensed-BoldItalic.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerifCondensed-Italic.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerifCondensed-Italic.pfm
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerifCondensed.pfb
%{_texmfdistdir}/fonts/type1/public/dejavu/DejaVuSerifCondensed.pfm
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-Bold-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-BoldOblique-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-BoldOblique-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-BoldOblique-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-ExtraLight-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-ExtraLight-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-ExtraLight-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-ExtraLight-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-ExtraLight-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-ExtraLight-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-ExtraLight-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-Oblique-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-Oblique-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-Oblique-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSans-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-Bold-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-BoldOblique-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-Oblique-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-Oblique-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-Oblique-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansCondensed-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Bold-tlf-lgr.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Bold-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Bold-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Bold-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Bold-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Bold-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-BoldOblique-tlf-lgr.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-BoldOblique-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-BoldOblique-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-BoldOblique-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-BoldOblique-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Oblique-tlf-lgr.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Oblique-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Oblique-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Oblique-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Oblique-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Oblique-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Oblique-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-Oblique-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-tlf-lgr.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSansMono-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-Bold-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-BoldItalic-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-BoldItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-BoldItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-Italic-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-Italic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-Italic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerif-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-Bold-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-BoldItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-Italic-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-Italic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-Italic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-tlf-qx.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/dejavu/DejaVuSerifCondensed-tlf-ts1.vf
%{_texmfdistdir}/tex/latex/dejavu/DejaVuSans.sty
%{_texmfdistdir}/tex/latex/dejavu/DejaVuSansCondensed.sty
%{_texmfdistdir}/tex/latex/dejavu/DejaVuSansMono.sty
%{_texmfdistdir}/tex/latex/dejavu/DejaVuSerif.sty
%{_texmfdistdir}/tex/latex/dejavu/DejaVuSerifCondensed.sty
%{_texmfdistdir}/tex/latex/dejavu/IL2DejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/IL2DejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/IL2DejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/IL2DejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/IL2DejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/LGRDejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/LGRDejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/LGRDejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/LGRDejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/LGRDejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/OT1DejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/OT1DejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/OT1DejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/OT1DejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/OT1DejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/QXDejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/QXDejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/QXDejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/QXDejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/QXDejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T1DejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T1DejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T1DejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T1DejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T1DejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2ADejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2ADejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2ADejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2ADejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2ADejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2BDejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2BDejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2BDejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2BDejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2BDejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2CDejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2CDejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2CDejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2CDejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/T2CDejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/TS1DejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/TS1DejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/TS1DejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/TS1DejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/TS1DejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/X2DejaVuSans-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/X2DejaVuSansCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/X2DejaVuSansMono-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/X2DejaVuSerif-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/X2DejaVuSerifCondensed-TLF.fd
%{_texmfdistdir}/tex/latex/dejavu/dejavu.sty
%doc %{_texmfdistdir}/doc/fonts/dejavu/AUTHORS
%doc %{_texmfdistdir}/doc/fonts/dejavu/BUGS
%doc %{_texmfdistdir}/doc/fonts/dejavu/CHANGELOG
%doc %{_texmfdistdir}/doc/fonts/dejavu/LICENSE
%doc %{_texmfdistdir}/doc/fonts/dejavu/NEWS
%doc %{_texmfdistdir}/doc/fonts/dejavu/README-font
%doc %{_texmfdistdir}/doc/fonts/dejavu/README.doc
%doc %{_texmfdistdir}/doc/fonts/dejavu/dejavu-sample.pdf
%doc %{_texmfdistdir}/doc/fonts/dejavu/dejavu-sample.tex
%doc %{_texmfdistdir}/doc/fonts/dejavu/dejavu.pdf
%doc %{_texmfdistdir}/doc/fonts/dejavu/dejavu.tex
%doc %{_texmfdistdir}/doc/fonts/dejavu/extrakerns.zip
%doc %{_texmfdistdir}/doc/fonts/dejavu/langcover.txt
%doc %{_texmfdistdir}/doc/fonts/dejavu/manifest.txt
%doc %{_texmfdistdir}/doc/fonts/dejavu/status.txt
%doc %{_texmfdistdir}/doc/fonts/dejavu/unicover.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9658 |21cr|texlive-dejavu-otf-0.04-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dejavu-otf
Version:	0.04
Release:	1
Summary:	Memoir-based class for formatting QrCodes 
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dejavu-otf
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/dejavu-otf.doc.tar.xz  
#changed links from mirror....
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/dejavu-otf.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
#we may write suggests instead of requires to avoid tests which require necessary packages
Requires(post):	texlive-kpathsea  

%description 
#change description
This package generates Quick Response (QR) codes in
LaTeX without the need for pstricks or any other graphics
packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dejavu-otf
%doc %{_texmfdistdir}/doc/fonts/dejavu-otf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 
#added -a2 as soon as i added source2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
#added source

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9659 |21cr|texlive-delimseasy-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-delimseasy
Version:	2.0
Release:	1
Summary:	Memoir-based class for formatting University of Auckland theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/delimseasy
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/delimseasy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/delimseasy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A memoir-based class for formatting University of Auckland
masters' and doctors' thesis dissertations in any discipline.
The title page does not handle short dissertations for
diplomas.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/delimseasy
%doc %{_texmfdistdir}/doc/latex/delimseasy

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9660 |21cr|texlive-delimset-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-delimset
Version:	1.1
Release:	1
Summary:	Typeset and declare sets of delimiters with convenient size control
Group:		Publishing
URL:		https://ctan.org/pkg/delimset
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/delimset.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/delimset.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/delimset.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Delimset is a LaTeX2e package to typeset and declare sets of
delimiters in math mode whose size can be adjustedconveniently.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9661 |21cr|texlive-de-macro-1.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26355
# category Package
# catalog-ctan /support/de-macro
# catalog-date 2010-03-10 11:48:14 +0100
# catalog-license other-free
# catalog-version 1.3
Name:		texlive-de-macro
Version:	1.3
Release:	12
Summary:	Expand private macros in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/de-macro
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/de-macro.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/de-macro.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-de-macro.bin = %{EVRD}

%description
De-macro is a Python script that helps authors who like to use
private LaTeX macros (for example, as abbreviations). A
technical editor or a cooperating author may balk at such a
manuscript; you can avoid manuscript rejection misery by
running de-macro on it. De-macro will expand macros defined in
\(re)newcommand or \(re)newenvironment commands, within the
document, or in the document's "private" package file.

#-----------------------------------------------------------------------
%files
%{_bindir}/de-macro
%{_texmfdistdir}/scripts/de-macro/de-macro
%doc %{_texmfdistdir}/doc/support/de-macro/README
%doc %{_texmfdistdir}/doc/support/de-macro/user-guide.pdf
%doc %{_texmfdistdir}/doc/support/de-macro/user-guide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/de-macro/de-macro de-macro
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9662 |21cr|texlive-democodetools-64314-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname democodetools

Summary:	Package for LaTeX code documentation
Name:		texlive-democodetools
Version:	64314
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(democodelisting.sty) = 2024
Provides:	tex(democodetools.sty) = 2024
BuildArch:	noarch

%description
This is 'yet another doc/docx/doc3' package for LaTeX code
documentation.

%files
%doc %{_texmfdistdir}/doc/latex/democodetools
%{_texmfdistdir}/tex/latex/democodetools

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9663 |21cr|texlive-denisbdoc-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-denisbdoc
Version:	0.9.3
Release:	1
Summary:	A personal dirty package for documenting packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tui
License:	LPPL
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/denisbdoc.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/denisbdoc.source.tar.xz
Source2:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/denisbdoc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A personal dirty package for documenting packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9664 |21cr|texlive-derivative-0.98-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29776
# category Package
# catalog-ctan /macros/latex/contrib/derivative
# catalog-date 2011-04-20 18:25:54 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-derivative
Version:	0.98
Release:	1
Summary:	Process and display MetaPost figures inline
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/derivative.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/derivative.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows LaTeX users to typeset MetaPost code inline
and display figures in their documents with only and only one
run of LaTeX, PDFLaTeX or XelaTeX (no separate runs of mpost).
Mpgraphics achieves this by using the shell escape (\write 18)
feature of current TeX distributions, so that the whole process
is automatic and the end user is saved the tiresome processing.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/derivative/derivative.sty

%doc %{_texmfdistdir}/doc/latex/derivative/derivative.pdf
%doc %{_texmfdistdir}/doc/latex/derivative/derivative.tex
%doc %{_texmfdistdir}/doc/latex/derivative/README.md

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9665 |21cr|texlive-diabetes-logbook-54810-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname diabetes-logbook

Summary:	A logbook for people with type one diabetes
Name:		texlive-diabetes-logbook
Version:	54810
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(dmlb.sty) = 2024
BuildArch:	noarch

%description
Initally a logbook for me, a person with type one diabetes
mellitus, this evolved over time into a TeX project, making it
prettier and/or easier to use. I've made it simple to use,
while not forgoing the document's beauty or the speed of input.
The logbook, with slight commenting out and editing, could be
used as a journal by anybody, although the template and
graphing functionality are set up for people using insulin
injections and blood glucose teststrips, as well as
counting/estimating carbs, protein, and fat. Note: The names of
the package's files are not constructed using the long
"diabetes-logbook", but the acronym "dmlb" (for "diabetes
mellitus log book").

%files
%doc %{_texmfdistdir}/doc/latex/diabetes-logbook
%{_texmfdistdir}/tex/latex/diabetes-logbook

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9666 |21cr|texlive-diadia-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-diadia
Version:	1.1
Release:	1
Summary:	Package to keep a diabetes diary
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/diadia
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/diadia.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/diadia.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The diadia package allows you to keep a diabetes diary.
Usually, this means keeping record of certain medical values
like blood sugar, blood pressure, pulse or weight. It might
also include other medical, pharmaceutical or nutritional data
(HbA1c, insulin doses, carbohydrate units). The diadia package
supports all of this plus more - simply by adding more columns
to the data file! It is able to evaluate the data file and
typesets formatted tables and derived plots. Furthermore, it
supports medication charts and info boxes. Supported languages:
English, German. Feel free to provide other translation files!

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/tex texmf-dist/doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9667 |21cr|texlive-dice-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28501
# category Package
# catalog-ctan /fonts/dice
# catalog-date 2012-12-11 20:24:18 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-dice
Version:	20190228
Release:	1
Summary:	A font for die faces
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/dice
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dice.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dice.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A Metafont font that can produce die faces in 2D or with
various 3D effects.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/dice/dice3d.mf
%{_texmfdistdir}/fonts/tfm/public/dice/dice3d.tfm
%doc %{_texmfdistdir}/doc/fonts/dice/dice3d.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9668 |21cr|texlive-dictsym-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20031
# category Package
# catalog-ctan /fonts/dictsym
# catalog-date 2007-09-25 10:20:14 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-dictsym
Version:	20190228
Release:	1
Summary:	DictSym font and macro package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/dictsym
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dictsym.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dictsym.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This directory contains the DictSym Type1 font designed by
Georg Verweyen and all files required to use it with LaTeX on
the Unix or PC platforms. The font provides a number of symbols
commonly used in dictionaries. The accompanying macro package
makes the symbols accessible as LaTeX commands.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/dictsym/dictsym.afm
%{_texmfdistdir}/fonts/map/dvips/dictsym/dictsym.map
%{_texmfdistdir}/fonts/tfm/public/dictsym/dictsym.tfm
%{_texmfdistdir}/fonts/type1/public/dictsym/dictsym.pfb
%{_texmfdistdir}/fonts/type1/public/dictsym/dictsym.pfm
%{_texmfdistdir}/tex/latex/dictsym/dictsym.sty
%doc %{_texmfdistdir}/doc/fonts/dictsym/README
%doc %{_texmfdistdir}/doc/fonts/dictsym/dictsym.pdf
%doc %{_texmfdistdir}/doc/fonts/dictsym/dictsym.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9669 |21cr|texlive-diffcoeff-3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22142
# category Package
# catalog-ctan /macros/latex/contrib/diffcoeff
# catalog-date 2011-04-20 18:25:54 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-diffcoeff
Version:	3.2
Release:	1
Summary:	Write differential coefficients easily and consistently
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/diffcoeff
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diffcoeff.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diffcoeff.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
iffcoeff.sty allows the easy and consistent writing
of ordinary, partial and other derivatives of 
arbitrary (algebraic or numeric) order. For mixed
partial derivatives, the total order of differentiation
is calculated by the package. Optional arguments
allow specification of points of evaluation (ordinary
derivatives), or variables held constant (partial
derivatives), and the placement of the differentiand
(numerator or appended).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/diffcoeff/diffcoeff-doc.def
%{_texmfdistdir}/tex/latex/diffcoeff/diffcoeff.sty
%doc %{_texmfdistdir}/doc/latex/diffcoeff/README.txt
%doc %{_texmfdistdir}/doc/latex/diffcoeff/diffcoeff.tex
%doc %{_texmfdistdir}/doc/latex/diffcoeff/diffcoeff.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9670 |21cr|texlive-dijkstra-0.12-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29776
# category Package
# catalog-ctan /macros/latex/contrib/dijkstra
# catalog-date 2013-04-08 09:07:09 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-dijkstra
Version:	0.12
Release:	12
Summary:	Dijkstra algorithm for LATEX
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/dijkstra
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dijkstra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dijkstra.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small package uses the Dijkstra algorithm for
weighted graphs,directed or not: the search table
of the shortest path can be displayed, the minimum
distance between two vertices and the corresponding
path are stored in macros.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dijkstra/dijkstra.sty
%doc %{_texmfdistdir}/doc/latex/dijkstra/README
%doc %{_texmfdistdir}/doc/latex/dijkstra/dijkstra-fr.tex
%doc %{_texmfdistdir}/doc/latex/dijkstra/dijkstra-fr.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9671 |21cr|texlive-dimnum-58774-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dimnum

Summary:	Commands for dimensionless numbers
Name:		texlive-dimnum
Version:	58774
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(dimnum.sty) = 2024
BuildArch:	noarch

%description
This package simplifies the calling of Dimensionless Numbers in
math or text mode.

%files
%doc %{_texmfdistdir}/doc/latex/dimnum
%{_texmfdistdir}/tex/latex/dimnum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9672 |21cr|texlive-din1505-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19441
# category Package
# catalog-ctan /biblio/bibtex/contrib/german/din1505
# catalog-date 2008-11-25 15:33:33 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-din1505
Version:	20190228
Release:	1
Summary:	Bibliography styles for German texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/german/din1505
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/din1505.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/din1505.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of bibliography styles that conformt to DIN 1505, and
match the original BibTeX standard set (plain, unsrt, alpha and
abbrv), together with a style natdin to work with natbib.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/din1505/abbrvdin.bst
%{_texmfdistdir}/bibtex/bst/din1505/alphadin.bst
%{_texmfdistdir}/bibtex/bst/din1505/natdin.bst
%{_texmfdistdir}/bibtex/bst/din1505/plaindin.bst
%{_texmfdistdir}/bibtex/bst/din1505/unsrtdin.bst
%doc %{_texmfdistdir}/doc/latex/din1505/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/din1505/leitbild.bib
%doc %{_texmfdistdir}/doc/latex/din1505/natbib.cfg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9673 |21cr|texlive-dinat-2.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/german/dinat
# catalog-date 2008-11-11 09:02:39 +0100
# catalog-license pd
# catalog-version 2.5
Name:		texlive-dinat
Version:	2.5
Release:	8
Summary:	Bibliography style for German texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/german/dinat
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dinat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dinat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Bibliography style files intended for texts in german. They
draw up bibliographies in accordance with the german DIN 1505,
parts 2 and 3.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/dinat/dinat.bst
%doc %{_texmfdistdir}/doc/bibtex/dinat/dinat-index.html
%doc %{_texmfdistdir}/doc/bibtex/dinat/history.html

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9674 |21cr|texlive-dingbat-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27918
# category Package
# catalog-ctan /fonts/dingbat
# catalog-date 2012-06-28 23:28:54 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-dingbat
Version:	1.0
Release:	12
Summary:	Two dingbat symbol fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/dingbat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dingbat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dingbat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dingbat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts (ark10 and dingbat) are specified in Metafont;
support macros are provided for use in LaTeX. An Adobe Type 1
version of the fonts is available in the niceframe fonts
bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/dingbat/ark10.mf
%{_texmfdistdir}/fonts/source/public/dingbat/dingbat.mf
%{_texmfdistdir}/fonts/tfm/public/dingbat/ark10.tfm
%{_texmfdistdir}/fonts/tfm/public/dingbat/dingbat.tfm
%{_texmfdistdir}/tex/latex/dingbat/dingbat.sty
%{_texmfdistdir}/tex/latex/dingbat/uark.fd
%{_texmfdistdir}/tex/latex/dingbat/udingbat.fd
%doc %{_texmfdistdir}/doc/fonts/dingbat/README
%doc %{_texmfdistdir}/doc/fonts/dingbat/dingbat.pdf
%doc %{_texmfdistdir}/doc/fonts/dingbat/dingbat.tex
#- source
%doc %{_texmfdistdir}/source/latex/dingbat/dingbat.dtx
%doc %{_texmfdistdir}/source/latex/dingbat/dingbat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9675 |21cr|texlive-dirtree-0.32-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19882
# category Package
# catalog-ctan /macros/generic/dirtree
# catalog-date 2009-04-10 11:30:41 +0200
# catalog-license lppl
# catalog-version 0.32
Name:		texlive-dirtree
Version:	0.32
Release:	8
Summary:	Display trees in the style of windows explorer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/dirtree
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dirtree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dirtree.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dirtree.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is designed to emulate the way windows explorer
displays directory and file trees, with the root at top left,
and each level of subtree displaying one step in to the right.
The macros work equally well with Plain TeX and with LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/dirtree/dirtree.sty
%{_texmfdistdir}/tex/generic/dirtree/dirtree.tex
%doc %{_texmfdistdir}/doc/generic/dirtree/README
%doc %{_texmfdistdir}/doc/generic/dirtree/dirtree.pdf
#- source
%doc %{_texmfdistdir}/source/generic/dirtree/dirtree.dtx
%doc %{_texmfdistdir}/source/generic/dirtree/dirtree.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9676 |21cr|texlive-dk-bib-0.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/dk-bib
# catalog-date 2009-09-25 22:54:35 +0200
# catalog-license other-free
# catalog-version 0.6
Name:		texlive-dk-bib
Version:	0.6
Release:	8
Summary:	Danish variants of standard BibTeX styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/dk-bib
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dk-bib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dk-bib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dk-bib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Dk-bib is a translation of the four standard BibTeX style files
(abbrv, alpha, plain and unsrt) and the apalike style file into
Danish. The files have been extended with URL, ISBN, ISSN,
annote and printing fields which can be enabled through a LaTeX
style file. Dk-bib also comes with a couple of Danish sorting
order files for BibTeX8.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/dk-bib/litteratur.bib
%{_texmfdistdir}/bibtex/bst/dk-bib/dk-abbrv.bst
%{_texmfdistdir}/bibtex/bst/dk-bib/dk-alpha.bst
%{_texmfdistdir}/bibtex/bst/dk-bib/dk-apali.bst
%{_texmfdistdir}/bibtex/bst/dk-bib/dk-plain.bst
%{_texmfdistdir}/bibtex/bst/dk-bib/dk-unsrt.bst
%{_texmfdistdir}/bibtex/csf/dk-bib/88591-dk.csf
%{_texmfdistdir}/bibtex/csf/dk-bib/cp850-dk.csf
%{_texmfdistdir}/bibtex/csf/dk-bib/mac-dk.csf
%{_texmfdistdir}/bibtex/csf/dk-bib/utf8-dk.csf
%{_texmfdistdir}/tex/latex/dk-bib/dk-apali.sty
%{_texmfdistdir}/tex/latex/dk-bib/dk-bib.sty
%doc %{_texmfdistdir}/doc/latex/dk-bib/COPYRIGHT
%doc %{_texmfdistdir}/doc/latex/dk-bib/README
%doc %{_texmfdistdir}/doc/latex/dk-bib/dk-bib.ltx
%doc %{_texmfdistdir}/doc/latex/dk-bib/dk-bib.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dk-bib/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9677 |21cr|texlive-docbytex-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-docbytex
Version:	1.4
Release:	1
Summary:	Documentation from C source code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/docbytex.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/docbytex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package creates documentation from C source code, or other
programming languages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9678 |21cr|texlive-doclicense-63340-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname doclicense

Summary:	Support for putting documents under a license
Name:		texlive-doclicense
Version:	63340
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doclicense.source.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(ccicons.sty)
#Requires:	tex(csquotes.sty)
#Requires:	tex(etoolbox.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(hyperref.sty)
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
#Requires:	tex(xifthen.sty)
#Requires:	tex(xspace.sty)
Provides:	tex-doclicense = 2024
Provides:	tex(doclicense-acadian.ldf) = 2024
Provides:	tex(doclicense-american.ldf) = 2024
Provides:	tex(doclicense-australian.ldf) = 2024
Provides:	tex(doclicense-british.ldf) = 2024
Provides:	tex(doclicense-canadian.ldf) = 2024
Provides:	tex(doclicense-canadien.ldf) = 2024
Provides:	tex(doclicense-CC-by-3.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-3.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-4.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-4.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-3.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-3.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-4.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-4.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-nd-3.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-nd-3.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-nd-4.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-nd-4.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-sa-3.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-sa-3.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-sa-4.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-nc-sa-4.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-nd-3.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-nd-3.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-nd-4.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-nd-4.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-sa-3.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-sa-3.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-by-sa-4.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-by-sa-4.0-plaintext.tex) = 2024
Provides:	tex(doclicense-CC-zero-1.0-latex.tex) = 2024
Provides:	tex(doclicense-CC-zero-1.0-plaintext.tex) = 2024
Provides:	tex(doclicense-english.ldf) = 2024
Provides:	tex(doclicense-french.ldf) = 2024
Provides:	tex(doclicense-german.ldf) = 2024
Provides:	tex(doclicense-newzealand.ldf) = 2024
Provides:	tex(doclicense-ngerman.ldf) = 2024
Provides:	tex(doclicense-spanish.ldf) = 2024
Provides:	tex(doclicense.sty) = 2024
Provides:	tex(doclicense-UKenglish.ldf) = 2024
Provides:	tex(doclicense-USenglish.ldf) = 2024
BuildArch:	noarch

%description
This package allows you to put your document under a license
and include a link to read about the license or include an icon
or image of the license. Currently, only Creative Commons is
supported, but this package is designed to handle all kinds of
licenses.

%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc/latex/doclicense/README.md
%doc %{_texmfdistdir}/doc/latex/doclicense/doclicense.pdf
%doc %{_texmfdistdir}/doc/latex/doclicense/manifest.txt
%doc %{_texmfdistdir}/doc/latex/doclicense/test-package-option-matrix
#- source
%doc %{_texmfdistdir}/source/latex/doclicense/doclicense.dtx
%doc %{_texmfdistdir}/source/latex/doclicense/doclicense.ins
%doc %{_texmfdistdir}/source/latex/doclicense/Makefile

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9679 |21cr|texlive-docshots-65141-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname docshots

Summary:	TeX samples next to their PDF Snapshots
Name:		texlive-docshots
Version:	65141
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(fancyvrb.sty)
Requires:	tex(iexec.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-pdfcrop
Requires:	texlive-pgf-blur
#Requires:	tex(pgf.sty)
Provides:	tex(docshots.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package helps you show TeX code next to the
corresponding PDF snapshots, in two-column formatting. You can
use it either in .dtx documentation or in .tex files.

%files
%doc %{_texmfdistdir}/doc/latex/docshots
%{_texmfdistdir}/tex/latex/docshots

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9680 |21cr|texlive-docstruct-0.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	docstruct
Name:	            texlive-%{oname}
Version:          0.0.1
Release:          4
Summary:          discopal.ispras.ru styles for books, articles and slides
Group:	         Publishing
License:	         LPPL
Source0:          https://abf.io/belonesox/docstruct/archive/%{oname}-v%{version}.tar.gz
BuildArch:	      noarch
BuildRequires:	   texlive-tlpkg
Requires(pre):	   texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
discopal.ispras.ru styles for books, articles and slides

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/docstruct/*

#-----------------------------------------------------------------------
%prep
%setup -qn %{oname}-v%{version}

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}/tex/latex/docstruct/
cp docstruct.sty %{buildroot}%{_texmfdistdir}/tex/latex/docstruct/

%post
TEXHASH=/usr/bin/texhash
[ -x "$TEXHASH" ] || "$TEXHASH" 2>/dev/null ||:

%postun
TEXHASH=/usr/bin/texhash
[ -x "$TEXHASH" ] || "$TEXHASH" 2>/dev/null ||:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9681 |21cr|texlive-doctools-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-doctools
Version:	0.1
Release:	1
Summary:	Tools for the documentation of LATEX code
Group:		Publishing
Url:		https://www.ctan.org/tex-archive/macros/latex/contrib/doctools
License:	LPPL 1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doctools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doctools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doctools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(pre):	texlive-kpathsea
Provides:	texlive-doctools.bin = %{EVRD}

%description
The package provides a collection of tools for use either in an “ordinary” LATEX document, or within a .dtx file.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/doctools/doctools.sty
%doc %{_texmfdistdir}/doc/latex/doctools/README
%doc %{_texmfdistdir}/doc/latex/doctools/doctools.pdf
#- source
%doc %{_texmfdistdir}/source/latex/doctools/doctools.dtx
%doc %{_texmfdistdir}/source/latex/doctools/doctools.ins


#----------------------------------------------------------------------------

%prep
%setup -c -a0 -a1 -a2


%build


%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9682 |21cr|texlive-docutils-56594-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname docutils

Summary:	Helper commands and element definitions for Docutils LaTeX output
Name:		texlive-docutils
Version:	56594
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(docutils.sty) = 2024
BuildArch:	noarch

%description
The package is intended for use with LaTeX documents generated
from reStructuredText sources with Docutils. When generating
LaTeX documents, specify this package with the stylesheet
configuration option, e.g. rst2latex --stylesheet=docutils
exampledocument.txt

%files
%doc %{_texmfdistdir}/doc/latex/docutils
%{_texmfdistdir}/tex/latex/docutils

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9683 |21cr|texlive-doipubmed-1.01-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/doipubmed
# catalog-date 2009-09-27 10:36:15 +0200
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-doipubmed
Version:	1.01
Release:	8
Summary:	Special commands for use in bibliographies
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/doipubmed
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doipubmed.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doipubmed.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doipubmed.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the commands \doi, \pubmed and \citeurl.
These commands are primarily designed for use in
bibliographies. A LaTeX2HTML style file is also provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/doipubmed/doipubmed.sty
%doc %{_texmfdistdir}/doc/latex/doipubmed/CHANGES
%doc %{_texmfdistdir}/doc/latex/doipubmed/README
%doc %{_texmfdistdir}/doc/latex/doipubmed/doipubmed-manual.html
%doc %{_texmfdistdir}/doc/latex/doipubmed/doipubmed.pdf
%doc %{_texmfdistdir}/doc/latex/doipubmed/doipubmed.perl
#- source
%doc %{_texmfdistdir}/source/latex/doipubmed/doipubmed.dtx
%doc %{_texmfdistdir}/source/latex/doipubmed/doipubmed.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9684 |21cr|texlive-domitian-55286-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname domitian

Summary:	Drop-in replacement for Palatino
Name:		texlive-domitian
Version:	55286
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_35nio2.enc) = 2024
Provides:	tex(a_3pltbn.enc) = 2024
Provides:	tex(a_3w3llx.enc) = 2024
Provides:	tex(a_4ivb7d.enc) = 2024
Provides:	tex(a_6377uz.enc) = 2024
Provides:	tex(a_67soe5.enc) = 2024
Provides:	tex(a_6i6esj.enc) = 2024
Provides:	tex(a_6scvia.enc) = 2024
Provides:	tex(a_7xosgq.enc) = 2024
Provides:	tex(a_b7m3mh.enc) = 2024
Provides:	tex(a_bhlgjd.enc) = 2024
Provides:	tex(a_bwxm6z.enc) = 2024
Provides:	tex(a_c6a6zb.enc) = 2024
Provides:	tex(a_cekwsu.enc) = 2024
Provides:	tex(a_clsg45.enc) = 2024
Provides:	tex(a_d6ffl3.enc) = 2024
Provides:	tex(a_emqd3c.enc) = 2024
Provides:	tex(a_ghqtel.enc) = 2024
Provides:	tex(a_h7ftxd.enc) = 2024
Provides:	tex(a_hjkpcv.enc) = 2024
Provides:	tex(a_hxu6ib.enc) = 2024
Provides:	tex(a_i2hixx.enc) = 2024
Provides:	tex(a_iobvua.enc) = 2024
Provides:	tex(a_jdvb5w.enc) = 2024
Provides:	tex(a_kqwyxb.enc) = 2024
Provides:	tex(a_kvnmfl.enc) = 2024
Provides:	tex(a_lrhprf.enc) = 2024
Provides:	tex(a_m4gebc.enc) = 2024
Provides:	tex(a_mndshu.enc) = 2024
Provides:	tex(a_mpk3tx.enc) = 2024
Provides:	tex(a_ms3bme.enc) = 2024
Provides:	tex(a_mwmumz.enc) = 2024
Provides:	tex(a_mwtjfi.enc) = 2024
Provides:	tex(a_o47vim.enc) = 2024
Provides:	tex(a_oozihx.enc) = 2024
Provides:	tex(a_p3vr7e.enc) = 2024
Provides:	tex(a_p56tga.enc) = 2024
Provides:	tex(a_qd6cjk.enc) = 2024
Provides:	tex(a_qenzo5.enc) = 2024
Provides:	tex(a_qn46nm.enc) = 2024
Provides:	tex(a_rs25bv.enc) = 2024
Provides:	tex(a_rxs5r4.enc) = 2024
Provides:	tex(a_rxxvt2.enc) = 2024
Provides:	tex(a_s2ytkg.enc) = 2024
Provides:	tex(a_uih534.enc) = 2024
Provides:	tex(a_ulgwo3.enc) = 2024
Provides:	tex(a_vbh7z5.enc) = 2024
Provides:	tex(a_veicm7.enc) = 2024
Provides:	tex(a_walexi.enc) = 2024
Provides:	tex(a_x44hng.enc) = 2024
Provides:	tex(a_xammmp.enc) = 2024
Provides:	tex(a_xhkga7.enc) = 2024
Provides:	tex(a_ze7hit.enc) = 2024
Provides:	tex(a_zkzzwq.enc) = 2024
Provides:	tex(Domitian.map) = 2024
Provides:	tex(domitian.sty) = 2024
Provides:	tex(LGRDomitian-Inf.fd) = 2024
Provides:	tex(LGRDomitian-Sup.fd) = 2024
Provides:	tex(LGRDomitian-TLF.fd) = 2024
Provides:	tex(LGRDomitian-TOsF.fd) = 2024
Provides:	tex(LY1Domitian-Inf.fd) = 2024
Provides:	tex(LY1Domitian-Sup.fd) = 2024
Provides:	tex(LY1Domitian-TLF.fd) = 2024
Provides:	tex(LY1Domitian-TOsF.fd) = 2024
Provides:	tex(OT1Domitian-Inf.fd) = 2024
Provides:	tex(OT1Domitian-Sup.fd) = 2024
Provides:	tex(OT1Domitian-TLF.fd) = 2024
Provides:	tex(OT1Domitian-TOsF.fd) = 2024
Provides:	tex(T1Domitian-Inf.fd) = 2024
Provides:	tex(T1Domitian-Sup.fd) = 2024
Provides:	tex(T1Domitian-TLF.fd) = 2024
Provides:	tex(T1Domitian-TOsF.fd) = 2024
Provides:	tex(T2ADomitian-Inf.fd) = 2024
Provides:	tex(T2ADomitian-Sup.fd) = 2024
Provides:	tex(T2ADomitian-TLF.fd) = 2024
Provides:	tex(T2ADomitian-TOsF.fd) = 2024
Provides:	tex(T2BDomitian-Inf.fd) = 2024
Provides:	tex(T2BDomitian-Sup.fd) = 2024
Provides:	tex(T2BDomitian-TLF.fd) = 2024
Provides:	tex(T2BDomitian-TOsF.fd) = 2024
Provides:	tex(T2CDomitian-Inf.fd) = 2024
Provides:	tex(T2CDomitian-Sup.fd) = 2024
Provides:	tex(T2CDomitian-TLF.fd) = 2024
Provides:	tex(T2CDomitian-TOsF.fd) = 2024
Provides:	tex(T3Domitian-Inf.fd) = 2024
Provides:	tex(T3Domitian-Sup.fd) = 2024
Provides:	tex(T3Domitian-TLF.fd) = 2024
Provides:	tex(T3Domitian-TOsF.fd) = 2024
Provides:	tex(TS1Domitian-TLF.fd) = 2024
Provides:	tex(TS1Domitian-TOsF.fd) = 2024
Provides:	tex(TS3Domitian-Inf.fd) = 2024
Provides:	tex(TS3Domitian-Sup.fd) = 2024
Provides:	tex(TS3Domitian-TLF.fd) = 2024
Provides:	tex(TS3Domitian-TOsF.fd) = 2024
BuildArch:	noarch

%description
The Domitian fonts are a free and open-source OpenType font
family, based on the Palatino design by Hermann Zapf
(1918-2015), as implemented in Palladio, the version
distributed as part of URW's free Core 35 PostScript fonts
(2.0). Domitian is meant as a drop-in replacement for Adobe's
version of Palatino. It extends Palladio with small capitals,
old-style figures and scientific inferiors. The metrics have
been adjusted to more closely match Adobe Palatino, and hinting
has been improved.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/domitian
%{_texmfdistdir}/fonts/map/dvips/domitian
%{_texmfdistdir}/fonts/opentype/public/domitian
%{_texmfdistdir}/fonts/tfm/public/domitian
%{_texmfdistdir}/fonts/type1/public/domitian
%{_texmfdistdir}/fonts/vf/public/domitian
%{_texmfdistdir}/tex/latex/domitian

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9685 |21cr|texlive-dotlessi-51476-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dotlessi

Summary:	Provides dotless i's and j's for use in any math font
Name:		texlive-dotlessi
Version:	51476
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(dotlessi.sty) = 2024
BuildArch:	noarch

%description
The package provides two commands: \dotlessi and \dotlessj,
which give access to dotless i's and j's in math mode. They are
intended for symbols in non English languages.

%files
%doc %{_texmfdistdir}/doc/latex/dotlessi
%{_texmfdistdir}/tex/latex/dotlessi

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9686 |21cr|texlive-doulossil-63255-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname doulossil

Summary:	A font for typesetting the International Phonetic Alphabet (IPA)
Name:		texlive-doulossil
Version:	63255
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides the IPA font Doulos SIL in TrueType
format.

%files
%doc %{_texmfdistdir}/doc/fonts/doulossil
%{_texmfdistdir}/fonts/truetype/public/doulossil

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9687 |21cr|texlive-dowith-r0.32-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29501
# category Package
# catalog-ctan /macros/generic/dowith
# catalog-date 2013-03-24 11:10:16 +0100
# catalog-license lppl1.3
# catalog-version 0.31a
Name:		texlive-dowith
Version:	r0.32
Release:	3
Epoch:		1
Summary:	Apply a command to a list of items
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/dowith
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dowith.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dowith.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dowith.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for applying a command to all
elements of a list without separators, such as
'\DoWithAllIn{<cmd>}{<list-macro>}', and also for extending and
reducing macros storing such lists. Applications in mind
belonged to LaTeX, but the package should work with other
formats as well. Loop and list macros in other packages are
discussed. A further package, domore, is also provided, which
enhances the functionality of dowith.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/dowith/domore.sty
%{_texmfdistdir}/tex/generic/dowith/dowith.RLS
%{_texmfdistdir}/tex/generic/dowith/dowith.sty
%doc %{_texmfdistdir}/doc/generic/dowith/Announce.txt
%doc %{_texmfdistdir}/doc/generic/dowith/README
%doc %{_texmfdistdir}/doc/generic/dowith/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/generic/dowith/domore.pdf
%doc %{_texmfdistdir}/doc/generic/dowith/dowith.pdf
#- source
%doc %{_texmfdistdir}/source/generic/dowith/domore.tex
%doc %{_texmfdistdir}/source/generic/dowith/dowith.tex
%doc %{_texmfdistdir}/source/generic/dowith/fdatechk.tex
%doc %{_texmfdistdir}/source/generic/dowith/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9688 |21cr|texlive-dozenal-7.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dozenal
Version:	7.2
Release:	3
Summary:	Typeset documents using base twelve numbering (also called "dozenal")
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/dozenal
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dozenal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dozenal.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dozenal.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports typesetting documents whose counters are
represented in base twelve, also called "dozenal". It includes
a macro by David Kastrup for converting positive whole numbers
to dozenal from decimal (base ten) representation. The package
also includes a few other macros and redefines all the standard
counters to produce dozenal output. Fonts, in Roman, italic,
slanted, and boldface versions, provide ten and eleven (the
Pitman characters preferred by the Dozenal Society of Great
Britain). The fonts were designed to blend well with the
Computer Modern fonts, and are available both as Metafont
source and in Adobe Type 1 format.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/dozenal
%{_texmfdistdir}/fonts/map/dvips/dozenal
%{_texmfdistdir}/fonts/source/public/dozenal
%{_texmfdistdir}/fonts/tfm/public/dozenal
%{_texmfdistdir}/fonts/type1/public/dozenal
%{_texmfdistdir}/tex/latex/dozenal
%doc %{_texmfdistdir}/doc/fonts/dozenal
#- source
%doc %{_texmfdistdir}/source/fonts/dozenal

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9689 |21cr|texlive-dpcircling-54994-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dpcircling

Summary:	Decorated text boxes using TikZ
Name:		texlive-dpcircling
Version:	54994
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(DPcircling.sty) = 2024
BuildArch:	noarch

%description
This simple package provides four types of text decorations
using TikZ. You can frame your text with circles, rectangles,
jagged rectangles, and fan-shapes. The baseline will be
adjusted properly according to the surroundings. You can use
these decorations both in text mode and in math mode. You can
specify line color, line width, width, and height using option
keys. Note: The "DP" in the package name stands for "Decorated
Packets".

%files
%doc %{_texmfdistdir}/doc/latex/dpcircling
%{_texmfdistdir}/tex/latex/dpcircling

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9690 |21cr|texlive-drm-4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-drm
Group:		Publishing
Version: 	4.4
Release:	2

Summary:	A complete family of fonts written in Metafont
License:	LPPL1.3

URL:		https://www.ctan.org/pkg/drm
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drm.source.tar.xz

BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea


%description
The package provides access to the DRM (Don's Revised Modern) family of fonts,
which includes a variety of optical sizes in Roman (in four weights), italic,
and small caps, among other shapes, along with a set of symbols and ornaments.
It is intended to be a full-body text font, but its larger sizes can also be
used for simple display purposes, and its significant body of symbols can
stand on its own. It comes complete with textual (“old-style”) and lining
figures, and even has small-caps figures. It also comes with extensible
decorative rules to be used with ornaments from itself or other fonts, along
with an extremely flexible ellipsis package.

#------------------------------------------------------

%files
%{_texmfdistdir}/fonts/afm/public/drm/*
%{_texmfdistdir}/fonts/map/dvips/drm/drm.map
%{_texmfdistdir}/fonts/opentype/public/drm/*
%{_texmfdistdir}/fonts/source/public/drm/*
%{_texmfdistdir}/fonts/tfm/public/drm/*
%{_texmfdistdir}/fonts/type1/public/drm/*
%{_texmfdistdir}/tex/latex/drm/drm.sty


%doc %{_texmfdistdir}/doc/fonts/drm/*
#- source
%doc %{_texmfdistdir}/source/fonts/drm/drm.dtx
%doc %{_texmfdistdir}/source/fonts/drm/drm.ins

%prep
%setup -c -a0 -a1 -a2

#fix path in shebang
sed -i 's:/local::'  doc/fonts/drm/fontconvert.sh
%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9691 |21cr|texlive-droid-3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54512
# category Package
# catalog-ctan /fonts/droid
# catalog-date 2020-03-24
# catalog-license lppl1.3
# catalog-version 3.2
Name:		texlive-droid
Version:	3.2
Release:	1
Summary:	LaTeX support for the Droid font families
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/droid
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/droid.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/droid.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Droid typeface family was designed in the fall of 2006 by
Steve Matteson, as a commission from Google to create a set of
system fonts for its Android platform. The goal was to provide
optimal quality and comfort on a mobile handset when rendered
in application menus, web browsers and for other screen text.
The Droid family consists of Droid Serif, Droid Sans and Droid
Sans Mono fonts, licensed under the Apache License Version 2.0.
The bundle includes the fonts in both TrueType and Adobe Type 1
formats. The package does not support the Droid Pro family of
fonts, available for purchase from the Ascender foundry.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/droid/LGRdroidsans.fd
%{_texmfdistdir}/tex/latex/droid/LGRdroidsansmono.fd
%{_texmfdistdir}/tex/latex/droid/LGRdroidserif.fd
%{_texmfdistdir}/tex/latex/droid/OT1droidsans.fd
%{_texmfdistdir}/tex/latex/droid/OT1droidsansmono.fd
%{_texmfdistdir}/tex/latex/droid/OT1droidserif.fd
%{_texmfdistdir}/tex/latex/droid/T1droidsans.fd
%{_texmfdistdir}/tex/latex/droid/T1droidsansmono.fd
%{_texmfdistdir}/tex/latex/droid/T1droidserif.fd
%{_texmfdistdir}/tex/latex/droid/T2Adroidsans.fd
%{_texmfdistdir}/tex/latex/droid/T2Adroidsansmono.fd
%{_texmfdistdir}/tex/latex/droid/T2Adroidserif.fd
%{_texmfdistdir}/tex/latex/droid/T2Bdroidsans.fd
%{_texmfdistdir}/tex/latex/droid/T2Bdroidsansmono.fd
%{_texmfdistdir}/tex/latex/droid/T2Bdroidserif.fd
%{_texmfdistdir}/tex/latex/droid/T2Cdroidsans.fd
%{_texmfdistdir}/tex/latex/droid/T2Cdroidsansmono.fd
%{_texmfdistdir}/tex/latex/droid/T2Cdroidserif.fd
%{_texmfdistdir}/tex/latex/droid/TS1droidsans.fd
%{_texmfdistdir}/tex/latex/droid/TS1droidsansmono.fd
%{_texmfdistdir}/tex/latex/droid/TS1droidserif.fd
%{_texmfdistdir}/tex/latex/droid/X2droidsans.fd
%{_texmfdistdir}/tex/latex/droid/X2droidsansmono.fd
%{_texmfdistdir}/tex/latex/droid/X2droidserif.fd
%{_texmfdistdir}/tex/latex/droid/droid.sty
%{_texmfdistdir}/tex/latex/droid/droidsans.sty
%{_texmfdistdir}/tex/latex/droid/droidsansmono.sty
%{_texmfdistdir}/tex/latex/droid/droidserif.sty
%{_texmfdistdir}/doc/fonts/droid/droid-samples.pdf
%{_texmfdistdir}/fonts/enc/dvips/droid/a_55mctf.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_6t6vor.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_7xkq4l.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_atrmj4.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_auqje4.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_dhbph5.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_es3zal.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_gyeryq.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_hyyrer.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_i77vuw.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_joxy3n.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_k2ku5j.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_l5aj6z.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_lzb5hy.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_nm2gjd.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_nwf7uv.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_slcnpg.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_vtfkvv.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_w466e2.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_xgvdme.enc
%{_texmfdistdir}/fonts/enc/dvips/droid/a_zpgv3j.enc
%{_texmfdistdir}/fonts/map/dvips/droid/droidsans.map
%{_texmfdistdir}/fonts/map/dvips/droid/droidsansmono.map
%{_texmfdistdir}/fonts/map/dvips/droid/droidserif.map
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-LGR--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-LGR-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-LGR-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-LGR.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-OT1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-OT1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-OT1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-OT1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2A--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2A-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2A-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2A.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2B--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2B-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2B-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2B.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2C--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2C-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2C-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-T2C.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-TS1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-TS1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-TS1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-TS1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-X2--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-X2-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-X2-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-Bold-X2.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-LGR--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-LGR-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-LGR-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-LGR.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-OT1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-OT1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-OT1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-OT1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2A--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2A-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2A-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2A.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2B--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2B-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2B-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2B.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2C--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2C-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2C-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-T2C.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-TS1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-TS1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-TS1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-TS1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-X2--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-X2-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-X2-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsans/DroidSans-X2.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-LGR--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-LGR-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-LGR-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-LGR.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-OT1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-OT1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-OT1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-OT1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2A--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2A-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2A-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2A.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2B--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2B-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2B-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2B.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2C--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2C-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2C-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-T2C.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-TS1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-TS1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-TS1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-TS1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-X2--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-X2-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-X2-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidsansmono/DroidSansMono-X2.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-LGR-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-LGR.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-OT1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-OT1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-OT1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-OT1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2A--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2A-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2A-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2A.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2B--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2B-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2B-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2B.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2C--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2C-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2C-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-T2C.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-TS1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-TS1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-TS1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-TS1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-X2--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-X2-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-X2-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Bold-X2.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-LGR-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-LGR.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-OT1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-OT1-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-OT1-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-OT1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T1-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T1-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2A--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2A-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2A-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2A.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2B--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2B-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2B-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2B.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2C--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2C-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2C-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-T2C.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-TS1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-TS1-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-TS1-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-TS1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-X2--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-X2-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-X2-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-BoldItalic-X2.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-LGR-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-LGR.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-OT1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-OT1-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-OT1-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-OT1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T1-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T1-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2A--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2A-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2A-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2A.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2B--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2B-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2B-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2B.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2C--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2C-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2C-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-T2C.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-TS1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-TS1-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-TS1-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-TS1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-X2--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-X2-Upright--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-X2-Upright.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Italic-X2.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-LGR-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-LGR.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-OT1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-OT1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-OT1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-OT1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2A--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2A-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2A-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2A.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2B--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2B-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2B-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2B.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2C--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2C-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2C-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-T2C.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-TS1--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-TS1-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-TS1-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-TS1.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-X2--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-X2-Slanted--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-X2-Slanted.tfm
%{_texmfdistdir}/fonts/tfm/ascender/droid/droidserif/DroidSerif-Regular-X2.tfm
%{_texmfdistdir}/fonts/truetype/ascender/droid/droidsans/DroidSans-Bold.ttf
%{_texmfdistdir}/fonts/truetype/ascender/droid/droidsans/DroidSans.ttf
%{_texmfdistdir}/fonts/truetype/ascender/droid/droidsansmono/DroidSansMono.ttf
%{_texmfdistdir}/fonts/truetype/ascender/droid/droidserif/DroidSerif-Bold.ttf
%{_texmfdistdir}/fonts/truetype/ascender/droid/droidserif/DroidSerif-BoldItalic.ttf
%{_texmfdistdir}/fonts/truetype/ascender/droid/droidserif/DroidSerif-Italic.ttf
%{_texmfdistdir}/fonts/truetype/ascender/droid/droidserif/DroidSerif-Regular.ttf
%{_texmfdistdir}/fonts/type1/ascender/droid/droidsans/DroidSans-Bold.pfb
%{_texmfdistdir}/fonts/type1/ascender/droid/droidsans/DroidSans.pfb
%{_texmfdistdir}/fonts/type1/ascender/droid/droidsansmono/DroidSansMono.pfb
%{_texmfdistdir}/fonts/type1/ascender/droid/droidserif/DroidSerif-Bold.pfb
%{_texmfdistdir}/fonts/type1/ascender/droid/droidserif/DroidSerif-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/ascender/droid/droidserif/DroidSerif-Italic.pfb
%{_texmfdistdir}/fonts/type1/ascender/droid/droidserif/DroidSerif-Regular.pfb
%{_texmfdistdir}/fonts/type1/ascender/droid/droidserif/DroidSerif.pfb
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-LGR-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-LGR.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-OT1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-OT1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-T1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-T1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-T2A-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-T2A.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-T2B-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-T2B.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-T2C-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-T2C.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-TS1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-TS1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-X2-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-Bold-X2.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-LGR-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-LGR.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-OT1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-OT1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-T1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-T1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-T2A-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-T2A.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-T2B-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-T2B.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-T2C-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-T2C.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-TS1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-TS1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-X2-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsans/DroidSans-X2.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-LGR-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-LGR.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-OT1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-OT1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-T1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-T1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-T2A-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-T2A.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-T2B-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-T2B.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-T2C-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-T2C.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-TS1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-TS1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-X2-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidsansmono/DroidSansMono-X2.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-OT1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-OT1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-T1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-T1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-T2A-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-T2A.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-T2B-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-T2B.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-T2C-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-T2C.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-TS1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-TS1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-X2-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Bold-X2.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-OT1-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-OT1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-T1-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-T1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-T2A-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-T2A.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-T2B-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-T2B.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-T2C-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-T2C.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-TS1-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-TS1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-X2-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-BoldItalic-X2.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-OT1-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-OT1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-T1-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-T1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-T2A-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-T2A.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-T2B-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-T2B.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-T2C-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-T2C.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-TS1-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-TS1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-X2-Upright.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Italic-X2.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-OT1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-OT1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-T1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-T1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-T2A-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-T2A.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-T2B-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-T2B.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-T2C-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-T2C.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-TS1-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-TS1.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-X2-Slanted.vf
%{_texmfdistdir}/fonts/vf/ascender/droid/droidserif/DroidSerif-Regular-X2.vf

%doc %{_texmfdistdir}/doc/fonts/droid/CHANGES
%doc %{_texmfdistdir}/doc/fonts/droid/README
%doc %{_texmfdistdir}/doc/fonts/droid/droid.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9692 |21cr|texlive-dsserif-1.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dsserif
Version:	1.01
Release:	1
Summary:	A double-struck serifed font for mathematical use
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dsserif
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dsserif.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dsserif.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
DSSerif is a mathematical font package with double struck
serifed digits, upper and lower case letters, in regular and
bold weights. The design was inspired by the STIX double struck
fonts, which are sans serif, but starting from a Courier-like
base.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%{_texmfdistdir}/fonts
%doc %{_texmfdistdir}/doc


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9693 |21cr|texlive-dtxdescribe-1.05-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dtxdescribe
Version:	1.05
Release:	1
Summary:	Describe additional object types in dtx source files
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/dtxdescribe
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxdescribe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxdescribe.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxdescribe.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The doc package includes tools for describing macros and environments in LATEX source .dtx format.
The dtxdescribe package adds additional tools for describing booleans, lengths, counters, keys,
packages, classes, options, files, commands, arguments, and other objects,
and also works with the standard document classes as well, for those who do not wish to use the .dtx format.
Each item is given a margin tag similar to \DescribeEnv, and is listed in the index by itself and also by category.
Each item may be sorted further by an optional class.
All index entries except code lines are hyperlinked.
The dtxexample environment is provided for typesetting example code and its results. Contents are displayed verbatim along with a caption and cross-referencing.
They are then input and executed, and the result is shown.
Environments are also provided for displaying verbatim or formatted source code, user-interface displays, and sidebars with titles.
Macros are provided for formatting the names of inline LATEX objects such as packages and booleans, as well as program and file names,
file types, internet objects, the names of certain programs, a number of logos, and inline dashes and slashes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dtxdescribe/dtxdescribe.sty
%doc %{_texmfdistdir}/doc/latex/dtxdescribe/README.txt
%doc %{_texmfdistdir}/doc/latex/dtxdescribe/dtxdescribe.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dtxdescribe/dtxdescribe.dtx
%doc %{_texmfdistdir}/source/latex/dtxdescribe/dtxdescribe.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9694 |21cr|texlive-dtxgen-1.07-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33681
# category Package
# catalog-ctan /support/dtxgen
# catalog-date 2014-04-25 13:42:50 +0200
# catalog-license gpl
# catalog-version 1.04
Name:		texlive-dtxgen
Version:	1.07
Release:	2
Summary:	Creates a template for a self-extracting .dtx file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/dtxgen
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxgen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxgen.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-dtxgen.bin = %{EVRD}

%description
The bash script dtxgen creates a template for a self-extracting
.dtx file. It is useful for those who plan to create a new
Documented LaTeX Source (.dtx) file.

#-----------------------------------------------------------------------
%files
%{_bindir}/dtxgen
%{_texmfdistdir}/scripts/dtxgen/dtxgen
%doc %{_texmfdistdir}/doc/support/dtxgen/README
%doc %{_texmfdistdir}/doc/support/dtxgen/dtxgen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/dtxgen/dtxgen dtxgen
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9695 |21cr|texlive-duerer-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20741
# category Package
# catalog-ctan /fonts/duerer
# catalog-date 2010-12-14 12:03:20 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-duerer
Version:	20190228
Release:	1
Summary:	Computer Duerer fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/duerer
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/duerer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/duerer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These fonts are designed for titling use, and consist of
capital roman letters only. Together with the normal set of
base shapes, the family also offers an informal shape. LaTeX
support is available in the duerer-latex bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/duerer/cdb10.mf
%{_texmfdistdir}/fonts/source/public/duerer/cdi10.mf
%{_texmfdistdir}/fonts/source/public/duerer/cdr10.mf
%{_texmfdistdir}/fonts/source/public/duerer/cdsl10.mf
%{_texmfdistdir}/fonts/source/public/duerer/cdss10.mf
%{_texmfdistdir}/fonts/source/public/duerer/cdtt10.mf
%{_texmfdistdir}/fonts/source/public/duerer/dromani.mf
%{_texmfdistdir}/fonts/source/public/duerer/dromanu.mf
%{_texmfdistdir}/fonts/source/public/duerer/dtitle.mf
%{_texmfdistdir}/fonts/tfm/public/duerer/cdb10.tfm
%{_texmfdistdir}/fonts/tfm/public/duerer/cdi10.tfm
%{_texmfdistdir}/fonts/tfm/public/duerer/cdr10.tfm
%{_texmfdistdir}/fonts/tfm/public/duerer/cdsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/duerer/cdss10.tfm
%{_texmfdistdir}/fonts/tfm/public/duerer/cdtt10.tfm
%doc %{_texmfdistdir}/doc/fonts/duerer/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9696 |21cr|texlive-duerer-latex-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/duerer-latex
# catalog-date 2008-08-18 13:49:16 +0200
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-duerer-latex
Version:	1.1
Release:	8
Summary:	LaTeX support for the Duerer fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/duerer-latex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/duerer-latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/duerer-latex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX support for Hoenig's Computer Duerer fonts, using their
standard fontname names.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/duerer-latex/duerer.sty
%{_texmfdistdir}/tex/latex/duerer-latex/ot1cdin.fd
%{_texmfdistdir}/tex/latex/duerer-latex/ot1cdr.fd
%{_texmfdistdir}/tex/latex/duerer-latex/ot1cdss.fd
%{_texmfdistdir}/tex/latex/duerer-latex/ot1cdtt.fd
%doc %{_texmfdistdir}/doc/latex/duerer-latex/README
%doc %{_texmfdistdir}/doc/latex/duerer-latex/duerer.pdf
%doc %{_texmfdistdir}/doc/latex/duerer-latex/duerer.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9697 |21cr|texlive-dutchcal-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23448
# category Package
# catalog-ctan /fonts/dutchcal
# catalog-date 2011-06-24 10:20:36 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-dutchcal
Version:	1.0
Release:	8
Summary:	A reworking of ESSTIX13, adding a bold version
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/dutchcal
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dutchcal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dutchcal.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package reworks the mathematical calligraphic font
ESSTIX13, adding a bold version. LaTeX support files are
included. The new fonts may also be accessed from the most
recent version of mathalfa. The fonts themselves are subject to
the SIL OPEN FONT LICENSE, version 1.1.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/dutchcal/DutchCalBold.afm
%{_texmfdistdir}/fonts/afm/public/dutchcal/DutchCalReg.afm
%{_texmfdistdir}/fonts/map/dvips/dutchcal/dutchcal.map
%{_texmfdistdir}/fonts/tfm/public/dutchcal/dutchcal-b.tfm
%{_texmfdistdir}/fonts/tfm/public/dutchcal/dutchcal-r.tfm
%{_texmfdistdir}/fonts/tfm/public/dutchcal/rdutchcalb.tfm
%{_texmfdistdir}/fonts/tfm/public/dutchcal/rdutchcalr.tfm
%{_texmfdistdir}/fonts/type1/public/dutchcal/DutchCalBold.pfb
%{_texmfdistdir}/fonts/type1/public/dutchcal/DutchCalReg.pfb
%{_texmfdistdir}/fonts/vf/public/dutchcal/dutchcal-b.vf
%{_texmfdistdir}/fonts/vf/public/dutchcal/dutchcal-r.vf
%{_texmfdistdir}/tex/latex/dutchcal/dutchcal.sty
%{_texmfdistdir}/tex/latex/dutchcal/udutchcal.fd
%doc %{_texmfdistdir}/doc/fonts/dutchcal/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9698 |21cr|texlive-dviasm-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /dviware/dviasm
# catalog-date 2012-04-10 15:00:16 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-dviasm
Version:	20190228
Release:	1
Summary:	A utility for editing DVI files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dviasm
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dviasm.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-dviasm.bin = %{EVRD}

%description
A Python script to support changing or creating DVI files via
disassembling into text, editing, and then reassembling into
binary format. It supports advanced features such as adding a
preprint number or watermarks.

#-----------------------------------------------------------------------
%files
%{_bindir}/dviasm
%{_texmfdistdir}/scripts/dviasm/dviasm.py

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/dviasm/dviasm.py dviasm
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9699 |21cr|texlive-dvipng-1.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34145
# category TLCore
# catalog-ctan /dviware/dvipng
# catalog-date 2013-12-16 20:22:01 +0100
# catalog-license lgpl
# catalog-version 1.14
Name:		texlive-dvipng
Version:	1.15
Release:	2
Summary:	A fast DVI to PNG/GIF converter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dvipng
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvipng.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvipng.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-dvipng.bin

%description
This program makes PNG and/or GIF graphics from DVI files as
obtained from TeX and its relatives. Its benefits include:
Speed. It offers very fast rendering of DVI as bitmap files,
which makes it suitable for generating large amounts of images
on-the-fly, as needed in preview-latex, WeBWorK and others; It
does not read the postamble, so it can be started before TeX
finishes. There is a --follow switch that makes dvipng wait at
end-of-file for further output, unless it finds the POST marker
that indicates the end of the DVI; Interactive query of
options. dvipng can read options interactively through stdin,
and all options are usable. It is even possible to change the
input file through this interface. Support for PK, VF,
PostScript Type1, and TrueType fonts, colour specials, and
inclusion of PostScript, PNG, JPEG or GIF images.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/dvipng/dvipng.html
%doc %{_texmfdistdir}/doc/dvipng/dvipng.pdf
%doc %{_infodir}/dvipng.info*
%doc %{_mandir}/man1/dvigif.1*
%doc %{_texmfdistdir}/doc/man/man1/dvigif.man1.pdf
%doc %{_mandir}/man1/dvipng.1*
%doc %{_texmfdistdir}/doc/man/man1/dvipng.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9700 |21cr|texlive-dvipos-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dvipos
Version:	20190327
Release:	1
Summary:	TeXLive dvipos package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvipos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvipos.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-dvipos.bin

%description
TeXLive dvipos package.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/dvipos.1*
%doc %{_texmfdistdir}/doc/man/man1/dvipos.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9701 |21cr|texlive-dvisvgm-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33825
# category TLCore
# catalog-ctan /dviware/dvisvgm
# catalog-date 2014-04-27 12:29:14 +0200
# catalog-license gpl
# catalog-version 1.6
Name:		texlive-dvisvgm
Version:	2.7
Release:	1
Summary:	Convert DVI files to Scalable Vector Graphics format (SVG)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dvisvgm
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvisvgm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvisvgm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-dvisvgm.bin

%description
Dvisvgm is a command line utility that converts TeX DVI files
to the XML-based Scalable Vector Graphics (SVG) format. It
provides full font support including virtual fonts, font maps,
and sub-fonts. If necessary, dvisvgm vectorizes Metafont's
bitmap output in order to always create lossless scalable
output. The embedded SVG fonts can optionally be replaced with
graphics paths so that applications that don't support SVG
fonts are enabled to render the graphics properly. Besides many
other features, dvisvgm also supports color, emTeX, tpic, PDF
mapfile and PostScript specials. Users will need a working TeX
installation including the kpathsea library. For more detailed
information, see the project page.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/dvisvgm.1*
%doc %{_texmfdistdir}/doc/man/man1/dvisvgm.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9702 |21cr|texlive-dynamicnumber-0.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 38726
# category Package
# catalogue-ctan /macros/latex/contrib/dynamicnumber
# catalog-date 2017-04-18 05:31:40 +0200
# catalog-license mit
# catalog-version 0.1.3

Name:		texlive-dynamicnumber
Version:	0.1.3
Release:	1
Summary:	Dynamically typeset numbers and values in LaTeX through "symbolic links"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dynamicnumber
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dynamicnumber.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dynamicnumber.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package dynamically typesets values generated by different
kinds of scripts in LaTeX through the use of "symbolic links"
(which are not in any way related to the "symbolic links" used
in UNIX systems!). The aim is to reduce errors resulting from
out-of-date numbers by directly setting them in the number
generating file and importing a "symbolic link" into the LaTeX
source file. It can be used to import not only numerical
values, but strings and pieces of code are also possible.
Currently only MATLAB and Python are supported to produce
Dynamic Number list files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dynamicnumber/
%doc %{_texmfdistdir}/doc/latex/dynamicnumber/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9703 |21cr|texlive-ean-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20851
# category Package
# catalog-ctan /macros/generic/ean
# catalog-date 2007-01-01 18:45:52 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-ean
Version:	20190228
Release:	1
Summary:	Macros for making EAN barcodes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/ean
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ean.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ean.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides EAN-8 and EAN-13 forms. The package needs the ocr-b
fonts; note that the fonts are not available under a free
licence, as the macros are.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/ean/ean13.tex
%{_texmfdistdir}/tex/generic/ean/ean8.tex
%doc %{_texmfdistdir}/doc/generic/ean/README
%doc %{_texmfdistdir}/doc/generic/ean/eantest.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9704 |21cr|texlive-easing-59975-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname easing

Summary:	Easing functions for pgfmath
Name:		texlive-easing
Version:	59975
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pgflibraryeasing.code.tex) = 2024
BuildArch:	noarch

%description
This library implements a collection of easing functions and
adds them to the PGF mathematical engine.

%files
%doc %{_texmfdistdir}/doc/latex/easing
%{_texmfdistdir}/tex/latex/easing

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9705 |21cr|texlive-easybook-64976-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname easybook

Summary:	Typeset Chinese books or notes
Name:		texlive-easybook
Version:	64976
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(easybase.sty) = 2024
Provides:	tex(easybook.cls) = 2024
BuildArch:	noarch

%description
easybook is a pure academic template created based on the
ctexbook book document class. It also has the functions of book
and article document class. Combined with the general framework
design of the dissertation of many universities in China,
providing multiple commands and interfaces allows users to
easily customize the thesis template. Its basic macro package
easybase can also be used with CTeX and standard document
classes.

%files
%doc %{_texmfdistdir}/doc/latex/easybook
%{_texmfdistdir}/tex/latex/easybook

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9706 |21cr|texlive-easyfloats-57204-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname easyfloats

Summary:	An easier interface to insert figures, tables and other objects in LaTeX
Name:		texlive-easyfloats
Version:	57204
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(caption.sty)
#Requires:	tex(environ.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(float.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pgf.sty)
Provides:	tex(easyfloats.sty) = 2024
BuildArch:	noarch

%description
In standard LaTeX inserting objects like figures or tables
requires too much knowledge for beginners and too much typing
effort and hardcoding for people like me. This package aims to
make insertion of figures and tables easier for both beginners
and experts. Despite the term floats in it's name it also
allows to disable floating of such objects.

%files
%doc %{_texmfdistdir}/doc/latex/easyfloats
%{_texmfdistdir}/tex/latex/easyfloats

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9707 |21cr|texlive-easyformat-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 44543
# category Package
# catalogue-ctan /macros/latex/contrib/easyformat
# catalog-date 2017-06-10 09:03:50 +0200
# catalog-license gpl3+
# catalog-version 1.4.0

Name:		texlive-easyformat
Version:	1.4.0
Release:	1
Summary:	Easily add boldface, italics and smallcaps
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/easyformat
License:	GPL3+
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyformat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyformat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows the use of underscores and circumflexes to
begin resp. end italic, bold or SMALLCAPS formatting, as an
alternative to the standard LaTeX \textit{...}, \textbf{...}
and/or \textsc{...}. The meaning of underscore and circumflex
in mathmode remain the same.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/easyformat/
%doc %{_texmfdistdir}/doc/latex/easyformat/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9708 |21cr|texlive-ebgaramond-66604-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ebgaramond

Summary:	LaTeX support for EBGaramond fonts
Name:		texlive-ebgaramond
Version:	66604
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex(ebg_2ybfsp.enc) = 2024
Provides:	tex(ebg_3fqt6z.enc) = 2024
Provides:	tex(ebg_3uowis.enc) = 2024
Provides:	tex(ebg_3vzm4e.enc) = 2024
Provides:	tex(ebg_3zuots.enc) = 2024
Provides:	tex(ebg_44fx2b.enc) = 2024
Provides:	tex(ebg_4a6c3c.enc) = 2024
Provides:	tex(ebg_5xwr64.enc) = 2024
Provides:	tex(ebg_67ivnh.enc) = 2024
Provides:	tex(ebg_6f65kf.enc) = 2024
Provides:	tex(ebg_6vgerf.enc) = 2024
Provides:	tex(ebg_76r3mr.enc) = 2024
Provides:	tex(ebg_7bnove.enc) = 2024
Provides:	tex(ebg_7kld4e.enc) = 2024
Provides:	tex(ebg_a47fbg.enc) = 2024
Provides:	tex(ebg_a56nal.enc) = 2024
Provides:	tex(ebg_aetq3h.enc) = 2024
Provides:	tex-ebgaramond = 2024
Provides:	tex(EBGaramond.map) = 2024
Provides:	tex(ebgaramond.sty) = 2024
Provides:	tex(ebg_b3o4f3.enc) = 2024
Provides:	tex(ebg_bisgyq.enc) = 2024
Provides:	tex(ebg_bk5d2z.enc) = 2024
Provides:	tex(ebg_brg5ul.enc) = 2024
Provides:	tex(ebg_bszlvl.enc) = 2024
Provides:	tex(ebg_byuyni.enc) = 2024
Provides:	tex(ebg_chpilv.enc) = 2024
Provides:	tex(ebg_cqx43s.enc) = 2024
Provides:	tex(ebg_csz5sy.enc) = 2024
Provides:	tex(ebg_cxm7q6.enc) = 2024
Provides:	tex(ebg_czgldd.enc) = 2024
Provides:	tex(ebg_dacnth.enc) = 2024
Provides:	tex(ebg_dueoe2.enc) = 2024
Provides:	tex(ebg_egxhgf.enc) = 2024
Provides:	tex(ebg_fbpsnn.enc) = 2024
Provides:	tex(ebg_fc5dte.enc) = 2024
Provides:	tex(ebg_gom7pk.enc) = 2024
Provides:	tex(ebg_hp76oj.enc) = 2024
Provides:	tex(ebg_hw36ef.enc) = 2024
Provides:	tex(ebg_io7fa4.enc) = 2024
Provides:	tex(ebg_jcj62x.enc) = 2024
Provides:	tex(ebg_jnlxoz.enc) = 2024
Provides:	tex(ebg_kcfom2.enc) = 2024
Provides:	tex(ebg_kfeykp.enc) = 2024
Provides:	tex(ebg_kntoon.enc) = 2024
Provides:	tex(ebg_l5gusm.enc) = 2024
Provides:	tex(ebg_ldtcgl.enc) = 2024
Provides:	tex(ebg_liamow.enc) = 2024
Provides:	tex(ebg_ljow5q.enc) = 2024
Provides:	tex(ebg_lusvph.enc) = 2024
Provides:	tex(ebg_lwn542.enc) = 2024
Provides:	tex(ebg_mfbzjz.enc) = 2024
Provides:	tex(ebg_mknaq2.enc) = 2024
Provides:	tex(ebg_mnmcle.enc) = 2024
Provides:	tex(ebg_myzmkp.enc) = 2024
Provides:	tex(ebg_ne3tkd.enc) = 2024
Provides:	tex(ebg_nfvoop.enc) = 2024
Provides:	tex(ebg_nhfy4v.enc) = 2024
Provides:	tex(ebg_notamz.enc) = 2024
Provides:	tex(ebg_omaeoe.enc) = 2024
Provides:	tex(ebg_oskdwa.enc) = 2024
Provides:	tex(ebg_oyql7g.enc) = 2024
Provides:	tex(ebg_pp67px.enc) = 2024
Provides:	tex(ebg_pt4oo6.enc) = 2024
Provides:	tex(ebg_q5xwdw.enc) = 2024
Provides:	tex(ebg_q66dhc.enc) = 2024
Provides:	tex(ebg_qn2lct.enc) = 2024
Provides:	tex(ebg_qn3sxp.enc) = 2024
Provides:	tex(ebg_qopy46.enc) = 2024
Provides:	tex(ebg_qtn4jw.enc) = 2024
Provides:	tex(ebg_qwnohr.enc) = 2024
Provides:	tex(ebg_r6u53g.enc) = 2024
Provides:	tex(ebg_rqcrtt.enc) = 2024
Provides:	tex(ebg_ssaxzz.enc) = 2024
Provides:	tex(ebg_swtfyq.enc) = 2024
Provides:	tex(ebg_t35j2l.enc) = 2024
Provides:	tex(ebg_tcdnmr.enc) = 2024
Provides:	tex(ebg_tnqsun.enc) = 2024
Provides:	tex(ebg_tupdk5.enc) = 2024
Provides:	tex(ebg_uq734l.enc) = 2024
Provides:	tex(ebg_utcbyj.enc) = 2024
Provides:	tex(ebg_utfkrl.enc) = 2024
Provides:	tex(ebg_vqtmeh.enc) = 2024
Provides:	tex(ebg_vrf56d.enc) = 2024
Provides:	tex(ebg_vxqeam.enc) = 2024
Provides:	tex(ebg_wuzenr.enc) = 2024
Provides:	tex(ebg_xoskhe.enc) = 2024
Provides:	tex(ebg_xvcw4o.enc) = 2024
Provides:	tex(ebg_xzodth.enc) = 2024
Provides:	tex(ebg_yjkoc2.enc) = 2024
Provides:	tex(ebg_yod6vr.enc) = 2024
Provides:	tex(ebg_zesep7.enc) = 2024
Provides:	tex(ebg_zkec3z.enc) = 2024
Provides:	tex(ebg_zw743z.enc) = 2024
Provides:	tex(LGREBGaramond-Inf.fd) = 2024
Provides:	tex(LGREBGaramondInitials-TLF.fd) = 2024
Provides:	tex(LGREBGaramond-LF.fd) = 2024
Provides:	tex(LGREBGaramond-OsF.fd) = 2024
Provides:	tex(LGREBGaramond-Sup.fd) = 2024
Provides:	tex(LGREBGaramond-TLF.fd) = 2024
Provides:	tex(LGREBGaramond-TOsF.fd) = 2024
Provides:	tex(LY1EBGaramond-Inf.fd) = 2024
Provides:	tex(LY1EBGaramondInitials-TLF.fd) = 2024
Provides:	tex(LY1EBGaramond-LF.fd) = 2024
Provides:	tex(LY1EBGaramond-OsF.fd) = 2024
Provides:	tex(LY1EBGaramond-Sup.fd) = 2024
Provides:	tex(LY1EBGaramond-TLF.fd) = 2024
Provides:	tex(LY1EBGaramond-TOsF.fd) = 2024
Provides:	tex(OT1EBGaramond-Inf.fd) = 2024
Provides:	tex(OT1EBGaramondInitials-TLF.fd) = 2024
Provides:	tex(OT1EBGaramond-LF.fd) = 2024
Provides:	tex(OT1EBGaramond-OsF.fd) = 2024
Provides:	tex(OT1EBGaramond-Sup.fd) = 2024
Provides:	tex(OT1EBGaramond-TLF.fd) = 2024
Provides:	tex(OT1EBGaramond-TOsF.fd) = 2024
Provides:	tex(T1EBGaramond-Inf.fd) = 2024
Provides:	tex(T1EBGaramondInitials-TLF.fd) = 2024
Provides:	tex(T1EBGaramond-LF.fd) = 2024
Provides:	tex(T1EBGaramond-OsF.fd) = 2024
Provides:	tex(T1EBGaramond-Sup.fd) = 2024
Provides:	tex(T1EBGaramond-TLF.fd) = 2024
Provides:	tex(T1EBGaramond-TOsF.fd) = 2024
Provides:	tex(TS1EBGaramondInitials-TLF.fd) = 2024
Provides:	tex(TS1EBGaramond-LF.fd) = 2024
Provides:	tex(TS1EBGaramond-OsF.fd) = 2024
Provides:	tex(TS1EBGaramond-TLF.fd) = 2024
Provides:	tex(TS1EBGaramond-TOsF.fd) = 2024
BuildArch:	noarch

%description
EB Garamond is a revival by Georg Duffner of the 16th century
fonts designed by Claude Garamond. The LaTeX support package
works for (pdf)LaTeX, xeLaTeX and luaLaTeX users; configuration
files for use with microtype are provided.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/ebgaramond/
%{_texmfdistdir}/fonts/map/dvips/ebgaramond/
%{_texmfdistdir}/fonts/opentype/public/ebgaramond/
%{_texmfdistdir}/fonts/tfm/public/ebgaramond/
%{_texmfdistdir}/fonts/type1/public/ebgaramond/
%{_texmfdistdir}/fonts/vf/public/ebgaramond/
%{_texmfdistdir}/tex/latex/ebgaramond/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9709 |21cr|texlive-ebgaramond-maths-52168-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ebgaramond-maths

Summary:	LaTeX support for EBGaramond fonts in mathematics
Name:		texlive-ebgaramond-maths
Version:	52168
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ebgaramond.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(a_w5zv5t.enc) = 2024
Provides:	tex-ebgaramond-maths = 2024
Provides:	tex(EBGaramond-Maths.map) = 2024
Provides:	tex(ebgaramond-maths.sty) = 2024
Provides:	tex(OMLEBGaramond-Maths.fd) = 2024
BuildArch:	noarch

%description
This package provides some LaTeX support for the use of
EBGaramond12 in mathematics. It is based on, and requires,
ebgaramond. The package was created in response to a question
at TeX-stackexchange. and tested in the form of an answer in
the same forum.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/ebgaramond-maths/
%{_texmfdistdir}/fonts/map/dvips/ebgaramond-maths/
%{_texmfdistdir}/fonts/tfm/public/ebgaramond-maths/
%{_texmfdistdir}/tex/latex/ebgaramond-maths/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9710 |21cr|texlive-ebproof-20170517-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ebproof
Version:	20170517
Release:	1
Summary:	Formal proofs in the style of sequent calculus
Group:		Publishing
URL:		https://ctan.org/pkg/ebproof
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/ebproof.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/ebproof.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides commands to typeset proof trees in the
style of sequent calculus and related systems. The commands
allow for writing inferences with any number of premises and
alignment of successive formulas on an arbitrary point. Various
options allow complete control over spacing, styles of
inference rules, placement of labels, etc. The package requires
expl3 and xparse.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9711 |21cr|texlive-ecc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/ecc
# catalog-date 2006-12-07 15:13:33 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-ecc
Version:	20190228
Release:	1
Summary:	Sources for the European Concrete fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ecc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The MetaFont sources and TFM files of the European Concrete
Fonts. This is the T1-encoded extension of Knuth's Concrete
fonts, including also the corresponding text companion fonts.
Adobe Type 1 versions of the fonts are available as part of the
cm-super font bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/ecc/conc10pt.mf
%{_texmfdistdir}/fonts/source/public/ecc/conc5pt.mf
%{_texmfdistdir}/fonts/source/public/ecc/conc6pt.mf
%{_texmfdistdir}/fonts/source/public/ecc/conc7pt.mf
%{_texmfdistdir}/fonts/source/public/ecc/conc8pt.mf
%{_texmfdistdir}/fonts/source/public/ecc/conc9pt.mf
%{_texmfdistdir}/fonts/source/public/ecc/coni10pt.mf
%{_texmfdistdir}/fonts/source/public/ecc/eocc10.mf
%{_texmfdistdir}/fonts/source/public/ecc/eorm10.mf
%{_texmfdistdir}/fonts/source/public/ecc/eorm5.mf
%{_texmfdistdir}/fonts/source/public/ecc/eorm6.mf
%{_texmfdistdir}/fonts/source/public/ecc/eorm7.mf
%{_texmfdistdir}/fonts/source/public/ecc/eorm8.mf
%{_texmfdistdir}/fonts/source/public/ecc/eorm9.mf
%{_texmfdistdir}/fonts/source/public/ecc/eosl10.mf
%{_texmfdistdir}/fonts/source/public/ecc/eosl5.mf
%{_texmfdistdir}/fonts/source/public/ecc/eosl6.mf
%{_texmfdistdir}/fonts/source/public/ecc/eosl7.mf
%{_texmfdistdir}/fonts/source/public/ecc/eosl8.mf
%{_texmfdistdir}/fonts/source/public/ecc/eosl9.mf
%{_texmfdistdir}/fonts/source/public/ecc/eoti10.mf
%{_texmfdistdir}/fonts/source/public/ecc/tcssdc10.mf
%{_texmfdistdir}/fonts/source/public/ecc/torm10.mf
%{_texmfdistdir}/fonts/source/public/ecc/torm5.mf
%{_texmfdistdir}/fonts/source/public/ecc/torm6.mf
%{_texmfdistdir}/fonts/source/public/ecc/torm7.mf
%{_texmfdistdir}/fonts/source/public/ecc/torm8.mf
%{_texmfdistdir}/fonts/source/public/ecc/torm9.mf
%{_texmfdistdir}/fonts/source/public/ecc/tosl10.mf
%{_texmfdistdir}/fonts/source/public/ecc/tosl5.mf
%{_texmfdistdir}/fonts/source/public/ecc/tosl6.mf
%{_texmfdistdir}/fonts/source/public/ecc/tosl7.mf
%{_texmfdistdir}/fonts/source/public/ecc/tosl8.mf
%{_texmfdistdir}/fonts/source/public/ecc/tosl9.mf
%{_texmfdistdir}/fonts/source/public/ecc/toti10.mf
%{_texmfdistdir}/fonts/tfm/public/ecc/eocc10.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eorm10.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eorm5.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eorm6.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eorm7.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eorm8.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eorm9.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eosl10.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eosl5.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eosl6.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eosl7.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eosl8.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eosl9.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/eoti10.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/tcssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/torm10.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/torm5.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/torm6.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/torm7.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/torm8.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/torm9.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/tosl10.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/tosl5.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/tosl6.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/tosl7.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/tosl8.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/tosl9.tfm
%{_texmfdistdir}/fonts/tfm/public/ecc/toti10.tfm
%doc %{_texmfdistdir}/doc/fonts/ecc/copyrite
%doc %{_texmfdistdir}/doc/fonts/ecc/liesmich
%doc %{_texmfdistdir}/doc/fonts/ecc/readme

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9712 |21cr|texlive-eco-1.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /fonts/eco
# catalog-date 2012-07-10 21:25:56 +0200
# catalog-license gpl
# catalog-version 1.3
Name:		texlive-eco
Version:	1.3
Release:	12
Summary:	Oldstyle numerals using EC fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/eco
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eco.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eco.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eco.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of font metric files and virtual fonts for using the EC
fonts with oldstyle numerals. These files can only be used
together with the standard ec fonts. The style file eco.sty is
sufficient to use the eco fonts but if you intend to use other
font families as well, e.g., PostScript fonts, try altfont.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobl3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecobx3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecodh3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoit3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorb3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecorm3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosl3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoso3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoss3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecost3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecosx3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoti3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecott3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui0500.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecoui3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt0600.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt0700.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt0800.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt0900.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt1000.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt1095.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt1200.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt1440.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt1728.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt2074.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt2488.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt2986.tfm
%{_texmfdistdir}/fonts/tfm/public/eco/ecovt3583.tfm
%{_texmfdistdir}/fonts/vf/public/eco/ecobi0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobi3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobl3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecobx3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecodh3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoit3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorb3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecorm3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosi3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosl3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoso3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoss3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecost3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecosx3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoti3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecott3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui0500.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecoui3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovi3583.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt0600.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt0700.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt0800.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt0900.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt1000.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt1095.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt1200.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt1440.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt1728.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt2074.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt2488.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt2986.vf
%{_texmfdistdir}/fonts/vf/public/eco/ecovt3583.vf
%{_texmfdistdir}/tex/latex/eco/T1cmodh.fd
%{_texmfdistdir}/tex/latex/eco/T1cmor.fd
%{_texmfdistdir}/tex/latex/eco/T1cmoss.fd
%{_texmfdistdir}/tex/latex/eco/T1cmott.fd
%{_texmfdistdir}/tex/latex/eco/T1cmovt.fd
%{_texmfdistdir}/tex/latex/eco/eco.sty
%doc %{_texmfdistdir}/doc/fonts/eco/CHANGES
%doc %{_texmfdistdir}/doc/fonts/eco/COPYING
%doc %{_texmfdistdir}/doc/fonts/eco/INSTALL
%doc %{_texmfdistdir}/doc/fonts/eco/README
%doc %{_texmfdistdir}/doc/fonts/eco/VERSION
#- source
%doc %{_texmfdistdir}/source/fonts/eco/TS1.etx
%doc %{_texmfdistdir}/source/fonts/eco/create.sh
%doc %{_texmfdistdir}/source/fonts/eco/dostretch.mtx
%doc %{_texmfdistdir}/source/fonts/eco/ecodh.tex
%doc %{_texmfdistdir}/source/fonts/eco/ecor.tex
%doc %{_texmfdistdir}/source/fonts/eco/ecori.tex
%doc %{_texmfdistdir}/source/fonts/eco/ecoss.tex
%doc %{_texmfdistdir}/source/fonts/eco/ecott.tex
%doc %{_texmfdistdir}/source/fonts/eco/ecovt.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9713 |21cr|texlive-ecobiblatex-39233-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ecobiblatex

Summary:	Global Ecology and Biogeography BibLaTeX styles for the Biber backend
Name:		texlive-ecobiblatex
Version:	39233
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-ecobiblatex = 2024
BuildArch:	noarch

%description
This bundle provides a set of styles for creating
bibliographies using BibLaTeX in the style of the Global
Ecology and Biogeography journal. It comprises styles based on
the conventions of John Wiley & Sons Ltd and Global Ecology and
Biogeography Conventions (c).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/ecobiblatex/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9714 |21cr|texlive-econ-bst-61499-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname econ-bst

Summary:	BibTeX style for economics papers
Name:		texlive-econ-bst
Version:	61499
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a BibTeX style file for papers in economics. It
provides the following features: author-year type citation
reference style used in economics papers highly customizable
use of "certified random order" as proposed by Ray Robson
(2018)

%files
%doc %{_texmfdistdir}/doc/bibtex/econ-bst
%{_texmfdistdir}/bibtex/bst/econ-bst

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9715 |21cr|texlive-econlipsum-58390-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname econlipsum

Summary:	Generate sentences from economic articles
Name:		texlive-econlipsum
Version:	58390
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(econlipsum.sty) = 2024
BuildArch:	noarch

%description
This package is a blind text generator that ouputs sentences
inferred from abstracts of economic articles. All the
paragraphs are taken with permission from
https://ipsum.mwt.me/.

%files
%doc %{_texmfdistdir}/doc/latex/econlipsum
%{_texmfdistdir}/tex/latex/econlipsum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9716 |21cr|texlive-econometrics-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# texlive-econometrics test project
# project name: 
%define TEXTPKG econometrics
Name:       texlive-%{TEXTPKG}
Version:	1.1.2
Release:	1
Summary:	Defines some commands that simplify mathematic notation in economic and econometrics writing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/%{TEXTPKG}
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
%description
A package that defines some commands that simplify mathematic
notation in economic and econometrics writing. The commands are
related to the notation of
- vectors, matrices, sets, calligraphic and roman letters;
- statistical distributions;
- constants and symbols;
- matrix operators and statistical operators.
The package is based on "Notation in Econometrics: a proposal
for a standard" by Karim Abadir and Jan R. Magnus,
The Econometrics Journal (2002), 5, 76-90.
	
%files
%{_texmfdistdir}/tex/latex/%{TEXTPKG}
%doc %{_texmfdistdir}/doc/latex/%{TEXTPKG}

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9717 |21cr|texlive-economic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32639
# category Package
# catalog-ctan /biblio/bibtex/contrib/economic
# catalog-date 2014-01-08 00:12:39 +0100
# catalog-license noinfo
# catalog-version undef
Name:		texlive-economic
Version:	20190228
Release:	1
Summary:	BibTeX support for submitting to Economics journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/economic
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/economic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/economic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle offers macros and BibTeX styles for the American
Economic Review (AER), the American Journal of Agricultural
Economics (AJAE), the Canadian Journal of Economics (CJE), the
European Review of Agricultural Economics (ERAE), the
International Economic Review (IER) and Economica. The macro
sets are based on (and require) the harvard package, and all
provide variations of author-date styles of presentation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/economic/aer.bst
%{_texmfdistdir}/bibtex/bst/economic/aertt.bst
%{_texmfdistdir}/bibtex/bst/economic/agecon.bst
%{_texmfdistdir}/bibtex/bst/economic/ajae.bst
%{_texmfdistdir}/bibtex/bst/economic/apecon.bst
%{_texmfdistdir}/bibtex/bst/economic/cje.bst
%{_texmfdistdir}/bibtex/bst/economic/ecca.bst
%{_texmfdistdir}/bibtex/bst/economic/ecta.bst
%{_texmfdistdir}/bibtex/bst/economic/erae.bst
%{_texmfdistdir}/bibtex/bst/economic/ier.bst
%{_texmfdistdir}/bibtex/bst/economic/itaxpf.bst
%{_texmfdistdir}/bibtex/bst/economic/jae.bst
%{_texmfdistdir}/bibtex/bst/economic/jpe.bst
%{_texmfdistdir}/bibtex/bst/economic/jss2.bst
%{_texmfdistdir}/bibtex/bst/economic/oega.bst
%{_texmfdistdir}/bibtex/bst/economic/regstud.bst
%{_texmfdistdir}/bibtex/bst/economic/tandfx.bst
%{_texmfdistdir}/bibtex/bst/economic/worlddev.bst
%{_texmfdistdir}/tex/latex/economic/aer.sty
%{_texmfdistdir}/tex/latex/economic/aertt.sty
%{_texmfdistdir}/tex/latex/economic/agecon.cls
%{_texmfdistdir}/tex/latex/economic/ajae.cls
%{_texmfdistdir}/tex/latex/economic/apecon.cls
%{_texmfdistdir}/tex/latex/economic/cje.sty
%{_texmfdistdir}/tex/latex/economic/ecca.cls
%{_texmfdistdir}/tex/latex/economic/erae.cls
%{_texmfdistdir}/tex/latex/economic/itaxpf.cls
%{_texmfdistdir}/tex/latex/economic/jrurstud.cls
%{_texmfdistdir}/tex/latex/economic/njf.cls
%{_texmfdistdir}/tex/latex/economic/oegatb.cls
%{_texmfdistdir}/tex/latex/economic/pocoec.cls
%{_texmfdistdir}/tex/latex/economic/regstud.cls
%{_texmfdistdir}/tex/latex/economic/worlddev.cls
%doc %{_texmfdistdir}/doc/bibtex/economic/CHANGELOG
%doc %{_texmfdistdir}/doc/bibtex/economic/NEWS
%doc %{_texmfdistdir}/doc/bibtex/economic/README
%doc %{_texmfdistdir}/doc/bibtex/economic/aer-cje-ex.bib
%doc %{_texmfdistdir}/doc/bibtex/economic/aer-cje-ex.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/aer-natbib-ex.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/ajae-ex.bib
%doc %{_texmfdistdir}/doc/bibtex/economic/ajae-ex.pdf
%doc %{_texmfdistdir}/doc/bibtex/economic/ajae-ex.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/apecon-ex.bib
%doc %{_texmfdistdir}/doc/bibtex/economic/apecon-ex.pdf
%doc %{_texmfdistdir}/doc/bibtex/economic/apecon-ex.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/ecca-ex.bib
%doc %{_texmfdistdir}/doc/bibtex/economic/ecca-ex.pdf
%doc %{_texmfdistdir}/doc/bibtex/economic/ecca-ex.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/erae-ex.bib
%doc %{_texmfdistdir}/doc/bibtex/economic/erae-ex.pdf
%doc %{_texmfdistdir}/doc/bibtex/economic/erae-ex.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/ier-bib-test.pdf
%doc %{_texmfdistdir}/doc/bibtex/economic/ier-bib-test.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/ier-ex.bib
%doc %{_texmfdistdir}/doc/bibtex/economic/itaxpf-ex-title.pdf
%doc %{_texmfdistdir}/doc/bibtex/economic/itaxpf-ex-title.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/itaxpf-ex.bib
%doc %{_texmfdistdir}/doc/bibtex/economic/itaxpf-ex.pdf
%doc %{_texmfdistdir}/doc/bibtex/economic/itaxpf-ex.tex
%doc %{_texmfdistdir}/doc/bibtex/economic/oegatb-ex.bib
%doc %{_texmfdistdir}/doc/bibtex/economic/oegatb-ex.pdf
%doc %{_texmfdistdir}/doc/bibtex/economic/oegatb-ex.png
%doc %{_texmfdistdir}/doc/bibtex/economic/oegatb-ex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9718 |21cr|texlive-ecothesis-1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ecothesis
Version:	1.3
Release:	3
Summary:	LaTeX thesis template for the Universidade Federal de Vicosa (UFV), Brazil
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ecothesis
License:	lppl1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ecothesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ecothesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a LaTeX thesis template for the
Universidade Federal de Vicosa (UFV), Brazil.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir} 
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9719 |21cr|texlive-eczar-57716-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname eczar

Summary:	A font family supporting Devanagari and Latin script
Name:		texlive-eczar
Version:	57716
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
rojhettaa sNsthecaa egjhaar haa yunikodd aadhaarit mukt ttNk
aahe. hyaa ttNkaat 45+3 bhaassaa leNttin v devnaagrii lipiit
purskRt kelyaa jaataat. vaibhv siNh hyaaNnii hyaa ttNkaacaa
abhiklp kelaa aahe v aajnyaavlii tsec nirmitii ddevhidd
brejhiinaa hyaaNnii kelii aahe. egzaar yh rozettaa dvaaraa
prkaashit yunikodd aadhaarit mukt ttNk hai / is ttNk dvaaraa
45+3 bhaassaaeN laittin tthaa devnaagrii lipi meN purskRt kii
jaatii hai / vaibhv siNh ne is kaa abhiklp kiyaa hai aur
aajnyaavli tthaa nirmiti ddevidd breziinaa dvaaraa kii gyii hai
/ Eczar is an open-source type family published by Rosetta. The
fonts support over 45+3 languages in Latin and Devanagari
scripts in 5 weights. These fonts were designed by Vaibhav
Singh, code and production are by David Brezina.

%files
%doc %{_texmfdistdir}/doc/fonts/eczar
%{_texmfdistdir}/fonts/opentype/public/eczar

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9720 |21cr|texlive-edichokey-56223-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname edichokey

Summary:	Typeset dichotomous identification keys
Name:		texlive-edichokey
Version:	56223
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(edichokey.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package for typesetting dichotomous
identification key in indented style. It can be considered as
an extended version of package dichokey, as edichokey is more
capable of dealing with complex keys.

%files
%doc %{_texmfdistdir}/doc/latex/edichokey
%{_texmfdistdir}/tex/latex/edichokey

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9721 |21cr|texlive-edmac-3.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/edmac
# catalog-date 2007-01-02 10:01:06 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-edmac
Version:	3.17
Release:	2
Epoch:		1
Summary:	Typeset scholarly edition
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/edmac
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edmac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edmac.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edmac.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A macro package for typesetting scholarly critical editions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/edmac/edmac.tex
%{_texmfdistdir}/tex/generic/edmac/edmacfss.sty
%{_texmfdistdir}/tex/generic/edmac/edstanza.tex
%{_texmfdistdir}/tex/generic/edmac/tabmac.tex
%doc %{_texmfdistdir}/doc/latex/edmac/COPYRIGHT
%doc %{_texmfdistdir}/doc/latex/edmac/braonain.tex
%doc %{_texmfdistdir}/doc/latex/edmac/copying
%doc %{_texmfdistdir}/doc/latex/edmac/ed-nfss.txt
%doc %{_texmfdistdir}/doc/latex/edmac/edmac.doc
%doc %{_texmfdistdir}/doc/latex/edmac/edstanza.doc
%doc %{_texmfdistdir}/doc/latex/edmac/edszadoc.tex
%doc %{_texmfdistdir}/doc/latex/edmac/features.tex
%doc %{_texmfdistdir}/doc/latex/edmac/readme
#- source
%doc %{_texmfdistdir}/source/latex/edmac/edmac.drv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9722 |21cr|texlive-e-french-52027-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname e-french

Summary:	Comprehensive LaTeX support for French-language typesetting
Name:		texlive-e-french
Version:	52027
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(german.sty)
Requires:	texlive-kpathsea
Requires:	tex(latexsym.sty)
Requires:	texlive-tlpkg
#Requires:	tex(msg.sty)
#Requires:	tex(ngerman.sty)
Provides:	tex-e-french = 2024
Provides:	tex(efrench.sty) = 2024
Provides:	tex(efrenchu.tex) = 2024
Provides:	tex(epreuve.sty) = 2024
Provides:	tex(fenglish.sty) = 2024
Provides:	tex(frabbrev.tex) = 2024
Provides:	tex(frabbrev-u8.tex) = 2024
Provides:	tex(french_french-msg.tex) = 2024
Provides:	tex(frenchle.sty) = 2024
Provides:	tex(french-msg.tex) = 2024
Provides:	tex(frenchpro.sty) = 2024
Provides:	tex(french.sty) = 2024
Provides:	tex(frhyphex.tex) = 2024
Provides:	tex(fxabbrev.tex) = 2024
Provides:	tex(german_french-msg.tex) = 2024
Provides:	tex(mlp-01.sty) = 2024
Provides:	tex(mlp-33.sty) = 2024
Provides:	tex(mlp-49n.sty) = 2024
Provides:	tex(mlp-49.sty) = 2024
Provides:	tex(mlp-opts.sty) = 2024
Provides:	tex(mlp.sty) = 2024
Provides:	tex(pmfrench.sty) = 2024
BuildArch:	noarch

%description
E-french is a distribution that keeps alive the work of Bernard
Gaulle (now deceased), under a free licence. It replaces the
the old "full" frenchpro (the "professional" distribution) and
the light-weight frenchle packages.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/makeindex/e-french/
%{_texmfdistdir}/tex/generic/e-french/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9723 |21cr|texlive-egpeirce-66636-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname egpeirce

Summary:	Draw existential graphs invented by Charles S. Peirce
Name:		texlive-egpeirce
Version:	66636
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(egpeirce.sty) = 2024
BuildArch:	noarch

%description
This package is for drawing existential graphs invented and
developed by philosopher and polymath Charles S. Peirce. It
also contains new and unique symbols for several types of
linear logical operators Peirce invented and used in his larger
logical system.

%files
%doc %{_texmfdistdir}/doc/latex/egpeirce
%{_texmfdistdir}/tex/latex/egpeirce

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9724 |21cr|texlive-ehhline-54676-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ehhline

Summary:	Extend the \hhline command
Name:		texlive-ehhline
Version:	54676
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ehhline.sty) = 2024
BuildArch:	noarch

%description
This package extends the \hhline command with a !{...} token,
which allows to create lines with arbitrary LaTeX commands.

%files
%doc %{_texmfdistdir}/doc/latex/ehhline
%{_texmfdistdir}/tex/latex/ehhline

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9725 |21cr|texlive-eiad-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/eiad
# catalog-date 2008-12-05 21:50:47 +0100
# catalog-license noinfo
# catalog-version undef
Name:		texlive-eiad
Version:	20190228
Release:	1
Summary:	Traditional style Irish fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/eiad
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eiad.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eiad.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
In both lower and upper case 32 letters are defined (18 'plain'
ones, 5 long vowels and 9 aspirated consonants). The ligature
'agus' is also made available. The remaining characters
(digits, punctuation and accents) are inherited from the
Computer Modern family of fonts. The font definitions use code
from the sauter fonts, so those fonts have to be installed
before using eiad. OT1*.fd files are provided for use with
LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/eiad/eiadb10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadbx10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadbxi10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadbxsl10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadccsc10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadci10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadcr10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadcsc10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadcsl10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadcslc9.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiaddunh10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadff10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadfi10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadfib8.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadi10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiaditt10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadr10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadr12.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadr17.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadsl10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadsltt10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadss10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadssbx10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadssdc10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadssi10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadssq8.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadssqi8.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadtcsc10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadtt10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiadvtt10.mf
%{_texmfdistdir}/fonts/source/public/eiad/eira.mf
%{_texmfdistdir}/fonts/source/public/eiad/eirl.mf
%{_texmfdistdir}/fonts/source/public/eiad/eiru.mf
%{_texmfdistdir}/fonts/source/public/eiad/gaec7cb.mf
%{_texmfdistdir}/fonts/source/public/eiad/gaelach.mf
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadb10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadccsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadci10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadcr10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadcsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadcslc9.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiaddunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadff10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadfi10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadfib8.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadi10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiaditt10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadr10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadr12.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadr17.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadss10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/eiad/eiadvtt10.tfm
%{_texmfdistdir}/tex/latex/eiad/OT1eiad.fd
%{_texmfdistdir}/tex/latex/eiad/OT1eiadcc.fd
%{_texmfdistdir}/tex/latex/eiad/OT1eiadss.fd
%{_texmfdistdir}/tex/latex/eiad/OT1eiadtt.fd
%doc %{_texmfdistdir}/doc/fonts/eiad/Leigh_me.txt
%doc %{_texmfdistdir}/doc/fonts/eiad/amhrawn.pdf
%doc %{_texmfdistdir}/doc/fonts/eiad/amhrawn.tex
%doc %{_texmfdistdir}/doc/fonts/eiad/evening.pdf
%doc %{_texmfdistdir}/doc/fonts/eiad/evening.tex
%doc %{_texmfdistdir}/doc/fonts/eiad/micheal.ps
%doc %{_texmfdistdir}/doc/fonts/eiad/micheal.tex
%doc %{_texmfdistdir}/doc/fonts/eiad/recreat.pdf
%doc %{_texmfdistdir}/doc/fonts/eiad/recreat.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9726 |21cr|texlive-eiad-ltx-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/eiad
# catalog-date 2007-02-06 22:00:42 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-eiad-ltx
Version:	1.0
Release:	8
Summary:	LaTeX support for the eiad font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eiad
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eiad-ltx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eiad-ltx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eiad-ltx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides macros for use of the eiad fonts in OT1 encoding. Also
offers a couple of MetaFont files described in the font
package, but not provided there.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/eiad-ltx/Fbf10.mf
%{_texmfdistdir}/fonts/source/public/eiad-ltx/Fr10.mf
%{_texmfdistdir}/tex/latex/eiad-ltx/eiad.sty
%doc %{_texmfdistdir}/doc/latex/eiad-ltx/README
#- source
%doc %{_texmfdistdir}/source/latex/eiad-ltx/eiad.dtx
%doc %{_texmfdistdir}/source/latex/eiad-ltx/eiad.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9727 |21cr|texlive-eijkhout-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/generic/eijkhout
# catalog-date 2009-01-21 09:11:46 +0100
# catalog-license collection
# catalog-version undef
Name:		texlive-eijkhout
Version:	20190228
Release:	1
Summary:	Victor Eijkhout's packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/eijkhout
License:	COLLECTION
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eijkhout.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Three unrelated packages: - DB_process, to parse and process
database output; - CD_labeler, to typeset user text to fit on a
CD label; and - repeat, a nestable, generic loop macro.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/eijkhout/CD_labeler.tex
%{_texmfdistdir}/tex/generic/eijkhout/CD_labeler_test.tex
%{_texmfdistdir}/tex/generic/eijkhout/DB_process.tex
%{_texmfdistdir}/tex/generic/eijkhout/repeat.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9728 |21cr|texlive-einfart-65475-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname einfart

Summary:	Write your articles in a simple and clear way
Name:		texlive-einfart
Version:	65475
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(minimalist.sty)
Provides:	tex(einfart.cls) = 2024
BuildArch:	noarch

%description
This package provides a LaTeX class for typesetting articles
with a simple and clear design. Currently, it has native
support for Chinese (simplified and traditional), English,
French, German, Italian, Japanese, Portuguese (European and
Brazilian), Russian and Spanish typesetting. It compiles with
either XeLaTeX or LuaLaTeX. This is part of the minimalist
class series and depends on minimalist.sty from the minimalist
package. The package name "einfart" is taken from the German
word "einfach" ("simple"), combined with the first three
letters of "Artikel" ("article").

%files
%doc %{_texmfdistdir}/doc/latex/einfart
%{_texmfdistdir}/tex/latex/einfart

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9729 |21cr|texlive-ekaia-1.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ekaia
Version:	1.06
Release:	1
Summary:	extended search tries to interprete some words and characters specially
Group:		Publishing
License:	https://ctan.org/license/lppl1.2
Url:		https://ctan.org/pkg/ekaia
Source0:	ftp://tug.org/historic/systems/texlive/ekaia.source.tar.xz
Source1:	ftp://tug.org/historic/systems/texlive/ekaia.tar.xz
Source2:	ftp://tug.org/historic/systems/texlive/ekaia.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the template required for submiting a manuscript to the
UPV/EHU science and technology journal Ekaia.

#-----------------------------------------------------------------------


%files
%{_texmfdistdir}/tex/latex/ekaia
%doc %{_texmfdistdir}/source/latex/ekaia
%doc %{_texmfdistdir}/doc/latex/ekaia

#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9730 |21cr|texlive-ekdosis-61113-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ekdosis

Summary:	Typesetting TEI-xml compliant Critical Editions
Name:		texlive-ekdosis
Version:	61113
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ekdosis.sty) = 2024
BuildArch:	noarch

%description
ekdosis is a LuaLaTeX package designed for multilingual
critical editions. It can be used to typeset texts and
different layers of critical notes in any direction accepted by
LuaTeX. Texts can be arranged in running paragraphs or on
facing pages, in any number of columns which in turn can be
synchronized or not. In addition to printed texts, ekdosis can
convert .tex source files so as to produce TEI-xml compliant
critical editions. Database-driven encoding under LaTeX then
allows extraction of texts entered segment by segment according
to various criteria: main edited text, variant readings,
translations or annotated borrowings between texts.

%files
%doc %{_texmfdistdir}/doc/lualatex/ekdosis
%{_texmfdistdir}/tex/lualatex/ekdosis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9731 |21cr|texlive-ektype-tanka-63255-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ektype-tanka

Summary:	Devanagari fonts by EkType
Name:		texlive-ektype-tanka
Version:	63255
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
ek-ttaaiip sNsthecyaa kaahii utkRsstt devnaagrii ttNkaaNcaa
sNgrh. ek-ttaaip sNsthaa ke kii utkRsstt devnaagrii ttNkoN kaa
sNgrh / . This package provides a collection of some excellent
Devanagari fonts by EkType: Mukta, Baloo, Modak, and Jaini.

%files
%doc %{_texmfdistdir}/doc/fonts/ektype-tanka
%{_texmfdistdir}/fonts/truetype/public/ektype-tanka

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9732 |21cr|texlive-electrum-1.005b-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19705
# category Package
# catalog-ctan /fonts/electrumadf
# catalog-date 2010-07-28 12:27:25 +0200
# catalog-license other-free
# catalog-version 1.005-b
Name:		texlive-electrum
Version:	1.005b
Release:	8
Summary:	Electrum ADF fonts collection
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/electrumadf
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/electrum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/electrum.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/electrum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Electrum ADF is a slab-serif font featuring optical and italic
small-caps; additional ligatures and an alternate Q; lining,
hanging, inferior and superior digits; and four weights. The
fonts are provided in Adobe Type 1 format and the support
material enables use with LaTeX. Licence is mixed: LPPL for
LaTeX support; GPL with font exception for the fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/arkandis/electrum/yesb8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/electrum/yesbo8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/electrum/yesl8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/electrum/yeslo8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/electrum/yesr8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/electrum/yesro8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/electrum/yess8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/electrum/yesso8a.afm
%{_texmfdistdir}/fonts/enc/dvips/electrum/supp-yes.enc
%{_texmfdistdir}/fonts/map/dvips/electrum/yes.map
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb08c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb08t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb0o8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb0o8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb18c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb18t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb1o8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb1o8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesb8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbc8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbcj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbcjo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbcjow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbcjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbco8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbcow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbcw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbj8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbjo8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbjo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbjow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbo8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbo8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbo8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesbw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl08c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl08t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl0o8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl0o8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl18c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl18t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl1o8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl1o8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesl8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslc8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslcj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslcjo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslcjow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslcjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslco8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslcow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslcw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslj8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesljo8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesljo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesljow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesljw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslo8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslo8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslo8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yeslw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr08c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr08t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr0o8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr0o8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr18c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr18t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr1o8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr1o8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesr8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrc8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrcj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrcjo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrcjow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrcjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrco8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrcow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrcw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrj8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrjo8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrjo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrjow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesro8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesro8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesro8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesro8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesrw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess08c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess08t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess0o8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess0o8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess18c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess18t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess1o8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess1o8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yess8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessc8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesscj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesscjo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesscjow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesscjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessco8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesscow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesscw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessj8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessjo8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessjo8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessjow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesso8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesso8r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesso8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yesso8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessow8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/electrum/yessw8t.tfm
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesb8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesb8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesbo8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesbo8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesl8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesl8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yeslo8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yeslo8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesr8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesr8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesro8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesro8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yess8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yess8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesso8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/electrum/yesso8a.pfm
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb08c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb08t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb0o8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb0o8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb18c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb18t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb1o8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb1o8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesb8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbc8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbcj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbcjo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbcjow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbcjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbco8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbcow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbcw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbj8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbjo8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbjo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbjow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbo8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesbw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl08c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl08t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl0o8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl0o8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl18c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl18t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl1o8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl1o8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesl8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslc8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslcj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslcjo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslcjow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslcjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslco8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslcow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslcw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslj8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesljo8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesljo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesljow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesljw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslo8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yeslw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr08c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr08t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr0o8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr0o8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr18c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr18t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr1o8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr1o8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesr8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrc8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrcj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrcjo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrcjow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrcjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrco8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrcow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrcw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrj8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrjo8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrjo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrjow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesro8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesro8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesrw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess08c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess08t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess0o8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess0o8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess18c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess18t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess1o8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess1o8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yess8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessc8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesscj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesscjo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesscjow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesscjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessco8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesscow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesscw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessj8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessjo8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessjo8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessjow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesso8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yesso8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessow8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/electrum/yessw8t.vf
%{_texmfdistdir}/tex/latex/electrum/electrum.sty
%{_texmfdistdir}/tex/latex/electrum/t1yes.fd
%{_texmfdistdir}/tex/latex/electrum/t1yes0.fd
%{_texmfdistdir}/tex/latex/electrum/t1yes1.fd
%{_texmfdistdir}/tex/latex/electrum/t1yesj.fd
%{_texmfdistdir}/tex/latex/electrum/t1yesjw.fd
%{_texmfdistdir}/tex/latex/electrum/t1yesw.fd
%{_texmfdistdir}/tex/latex/electrum/ts1yes.fd
%{_texmfdistdir}/tex/latex/electrum/ts1yes0.fd
%{_texmfdistdir}/tex/latex/electrum/ts1yes1.fd
%{_texmfdistdir}/tex/latex/electrum/ts1yesj.fd
%{_texmfdistdir}/tex/latex/electrum/ts1yesjw.fd
%{_texmfdistdir}/tex/latex/electrum/ts1yesw.fd
%doc %{_texmfdistdir}/doc/fonts/electrum/COPYING
%doc %{_texmfdistdir}/doc/fonts/electrum/NOTICE.txt
%doc %{_texmfdistdir}/doc/fonts/electrum/README
%doc %{_texmfdistdir}/doc/fonts/electrum/electrumadf.pdf
%doc %{_texmfdistdir}/doc/fonts/electrum/electrumadf.tex
%doc %{_texmfdistdir}/doc/fonts/electrum/manifest.txt
#- source
%doc %{_texmfdistdir}/source/fonts/electrum/build-ttsc.mtx
%doc %{_texmfdistdir}/source/fonts/electrum/dotsc2.etx
%doc %{_texmfdistdir}/source/fonts/electrum/dotscbuild.mtx
%doc %{_texmfdistdir}/source/fonts/electrum/dotscmisc.mtx
%doc %{_texmfdistdir}/source/fonts/electrum/newlatin-dotsc.mtx
%doc %{_texmfdistdir}/source/fonts/electrum/reglyph-yes.tex
%doc %{_texmfdistdir}/source/fonts/electrum/supp-yes.etx
%doc %{_texmfdistdir}/source/fonts/electrum/t1-dotinferior.etx
%doc %{_texmfdistdir}/source/fonts/electrum/t1-dotsuperior.etx
%doc %{_texmfdistdir}/source/fonts/electrum/t1-yes.etx
%doc %{_texmfdistdir}/source/fonts/electrum/t1-yesw-sc.etx
%doc %{_texmfdistdir}/source/fonts/electrum/t1-yesw.etx
%doc %{_texmfdistdir}/source/fonts/electrum/t1j-yes.etx
%doc %{_texmfdistdir}/source/fonts/electrum/t1j-yesw-sc.etx
%doc %{_texmfdistdir}/source/fonts/electrum/t1j-yesw.etx
%doc %{_texmfdistdir}/source/fonts/electrum/ts1-dotinferior.etx
%doc %{_texmfdistdir}/source/fonts/electrum/ts1-dotoldstyle-yes.etx
%doc %{_texmfdistdir}/source/fonts/electrum/ts1-dotsuperior.etx
%doc %{_texmfdistdir}/source/fonts/electrum/ts1-yes.etx
%doc %{_texmfdistdir}/source/fonts/electrum/yes-drv.tex
%doc %{_texmfdistdir}/source/fonts/electrum/yes-map.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9733 |21cr|texlive-els-cas-templates-62931-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname els-cas-templates

Summary:	Elsevier updated LaTeX templates
Name:		texlive-els-cas-templates
Version:	62931
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(cas-common.sty) = 2024
Provides:	tex(cas-dc.cls) = 2024
Provides:	tex(cas-model2-names.bst) = 2024
Provides:	tex(cas-sc.cls) = 2024
BuildArch:	noarch

%description
This bundle provides two class and corresponding template files
for typesetting journal articles supposed to go through
Elsevier's updated workflow. One of the sets is meant for
one-column, the other for two-column layout. These are now
accepted for submitting articles both in Elsevier's electronic
submission system and elsewhere.

%files
%doc %{_texmfdistdir}/doc/latex/els-cas-templates
%{_texmfdistdir}/bibtex/bst/els-cas-templates
%{_texmfdistdir}/tex/latex/els-cas-templates

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9734 |21cr|texlive-elvish-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-elvish
Version:	20190228
Release:	1
Summary:	Fonts for typesetting Tolkien Elvish scripts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/elvish
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elvish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elvish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides fonts for Cirth (cirth.mf, etc.) and for
Tengwar (teng10.mf). The Tengwar fonts are supported by macros
in teng.tex, or by the (better documented) tengtex package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/elvish
%{_texmfdistdir}/fonts/tfm/public/elvish
%doc %{_texmfdistdir}/doc/fonts/elvish

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9735 |21cr|texlive-elzcards-1.60-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-elzcards
Version:	1.60
Release:	1
Summary:	A package for typesetting business cards
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/elzcards
License:	LPPL1.3
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/elzcards.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/elzcards.doc.tar.xz
Source2:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/elzcards.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LATEX package for typesetting business cards, index cards, and flash cards in an easy and flexible way,
optionally also the reverse side.
You will have to furnish the paper size, the desired size of your card,
the printable area of your printer, and the design of the card. Everything else is taken care of by elzcards.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/elzcards/elzcards.sty
%doc %{_texmfdistdir}/doc/latex/elzcards/README
%doc %{_texmfdistdir}/doc/latex/elzcards/elzcards-examples.tex
%doc %{_texmfdistdir}/doc/latex/elzcards/elzcards.pdf
%doc %{_texmfdistdir}/doc/latex/elzcards/elzcards-examples.pdf
#- source
%doc %{_texmfdistdir}/source/latex/elzcards/elzcards.dtx
%doc %{_texmfdistdir}/source/latex/elzcards/elzcards.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9736 |21cr|texlive-embedfile-65528-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname embedfile

Summary:	Embed files into PDF
Name:		texlive-embedfile
Version:	65528
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(dtx-attach.sty) = 2024
Provides:	tex(embedfile.sty) = 2024
BuildArch:	noarch

%description
This package embeds files in a PDF document, using the PDF
format's embedding operation (note the contrast with the attach
operation used by the attachfile and attachfile2 packages).
Currently only pdfTeX >=1.30, in PDF mode, is supported.

%files
%doc %{_texmfdistdir}/doc/latex/embedfile
%{_texmfdistdir}/tex/generic/embedfile
%{_texmfdistdir}/tex/latex/embedfile

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9737 |21cr|texlive-emf-20160914-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-emf
Version:	20160914
Release:	1
Summary:	Support for the EMF symbol
Group:		Publishing
URL:		https://ctan.org/pkg/emf
License:	GPL3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/emf.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/emf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides LaTeX support for the symbol for the EMF in electric circuits and electrodynamics. 
It provides support for multiple symbols but does not provide any fonts. The fonts themselves must be aquired otherwise. 
However the fonts are part of a normal TeX Live installation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9738 |21cr|texlive-emoji-59961-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname emoji

Summary:	Emoji support in (Lua)LaTeX
Name:		texlive-emoji
Version:	59961
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-latex
Provides:	tex(emoji.sty) = 2024
Provides:	tex(emoji-table.def) = 2024
BuildArch:	noarch

%description
This package allows users to typeset emojis in LaTeX documents.
It requires the LuaHBTeX engine, which can be called by
lualatex since TeX Live 2020, or lualatex-dev in TeX Live 2019.

%files
%doc %{_texmfdistdir}/doc/latex/emoji
%{_texmfdistdir}/tex/latex/emoji

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9739 |21cr|texlive-emojicite-55131-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname emojicite

Summary:	Add emojis to citations
Name:		texlive-emojicite
Version:	55131
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(emojicite.sty) = 2024
BuildArch:	noarch

%description
This package adds emojis to citations.

%files
%doc %{_texmfdistdir}/doc/lualatex/emojicite
%{_texmfdistdir}/tex/lualatex/emojicite

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9740 |21cr|texlive-encxvlna-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/generic/encxvlna
# catalog-date 2008-08-19 08:58:40 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-encxvlna
Version:	1.1
Release:	2
Epoch:		1
Summary:	Insert nonbreakable spaces, using encTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/encxvlna
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/encxvlna.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/encxvlna.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides tools for inserting nonbreakable spaces
after nonsyllabic prepositions and single letter conjunctions
as required by Czech and Slovak typographical rules. It is
implemented using encTeX and provides files both for plain TeX
and LaTeX. The LaTeX solution tries to avoid conflicts with
other packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/encxvlna/encxvlna.sty
%{_texmfdistdir}/tex/plain/encxvlna/encxvlna.tex
%doc %{_texmfdistdir}/doc/generic/encxvlna/License.txt
%doc %{_texmfdistdir}/doc/generic/encxvlna/README
%doc %{_texmfdistdir}/doc/generic/encxvlna/encxvlna.pdf
%doc %{_texmfdistdir}/doc/generic/encxvlna/encxvlna.tex
%doc %{_texmfdistdir}/doc/generic/encxvlna/vlna-inc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9741 |21cr|texlive-endnotes-hy-54758-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname endnotes-hy

Summary:	Patches the endnotes package to create hypertext links to the correct anchors
Name:		texlive-endnotes-hy
Version:	54758
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(endnotes-hy.sty) = 2024
BuildArch:	noarch

%description
The package supports the creation of hypertext links in support
of the endnotes package. The package modifies the syntax of the
\endnote command: \endnote*[<num>]{<text>}\label{<name>}. When
the *-option is used, no endnote mark is created, but the
endnote itself is written. The \label command appears at the
end of the \endnote and its arguments, rather than within the
argument of the <text> argument.

%files
%doc %{_texmfdistdir}/doc/latex/endnotes-hy
%{_texmfdistdir}/tex/latex/endnotes-hy

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9742 |21cr|texlive-endnotesj-47703-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname endnotesj

Summary:	Japanese-style endnotes
Name:		texlive-endnotesj
Version:	47703
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(endnotesj.sty) = 2024
BuildArch:	noarch

%description
This package provides customized styles for endnotes to be used
with Japanese documents. It can be used on pLaTeX, upLaTeX, and
LuaLaTeX (LuaTeX-ja).

%files
%doc %{_texmfdistdir}/doc/latex/endnotesj/
%{_texmfdistdir}/tex/latex/endnotesj/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9743 |21cr|texlive-eolang-66274-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(tools\\)

%define oname eolang

Summary:	Formulas and graphs for the EO programming language
Name:		texlive-eolang
Version:	66274
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsfonts.sty)
#Requires:	tex(amsmath.sty)
#Requires:	tex(fancyvrb.sty)
Requires:	tex(iexec.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pgfopts.sty)
#Requires:	tex(pgf.sty)
#Requires:	tex(stmaryrd.sty)
Provides:	tex(eolang.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package helps you write [?] -calculus formulas and
SODG graphs for the EO programming language.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/scripts/%{oname}
%{_texmfdistdir}/tex/latex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9744 |21cr|texlive-epigrafica-1.01-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17210
# category Package
# catalog-ctan /fonts/greek/epigrafica
# catalog-date 2010-02-24 20:55:02 +0100
# catalog-license gpl
# catalog-version 1.01
Name:		texlive-epigrafica
Version:	1.01
Release:	8
Summary:	A Greek and Latin font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/epigrafica
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epigrafica.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epigrafica.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Epigrafica is forked from the development of the MgOpen font
Cosmetica, which is a similar design to Optima and includes
Greek. Development has been supported by the Laboratory of
Digital Typography and Mathematical Software, of the Department
of Mathematics of the University of the Aegean, Greece.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/epigrafica/Epigrafica-Entona.afm
%{_texmfdistdir}/fonts/afm/public/epigrafica/Epigrafica-EntonaReonta.afm
%{_texmfdistdir}/fonts/afm/public/epigrafica/Epigrafica-Ortha.afm
%{_texmfdistdir}/fonts/afm/public/epigrafica/Epigrafica-Pezokefalaia.afm
%{_texmfdistdir}/fonts/afm/public/epigrafica/Epigrafica-Reonta.afm
%{_texmfdistdir}/fonts/enc/dvips/epigrafica/epigraficahellenic.enc
%{_texmfdistdir}/fonts/map/dvips/epigrafica/epigrafica.map
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficab8a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficab8r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficabi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficabi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficabo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficabo8r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficac8a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficac8r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahb7a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahb7r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahbi7a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahbi7r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahbo7a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahbo7r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahc7a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahc7r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahi7a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahi7r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficahn7r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficaho7a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficaho7r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficai8a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficai8r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigrafican8a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigrafican8r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficao8a.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/epigraficao8r.tfm
%{_texmfdistdir}/fonts/tfm/public/epigrafica/gepigraficahn7a.tfm
%{_texmfdistdir}/fonts/type1/public/epigrafica/Epigrafica-Entona.pfb
%{_texmfdistdir}/fonts/type1/public/epigrafica/Epigrafica-EntonaReonta.pfb
%{_texmfdistdir}/fonts/type1/public/epigrafica/Epigrafica-Ortha.pfb
%{_texmfdistdir}/fonts/type1/public/epigrafica/Epigrafica-Pezokefalaia.pfb
%{_texmfdistdir}/fonts/type1/public/epigrafica/Epigrafica-Reonta.pfb
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficab8r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficabi8r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficabo8r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficac8r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficahb7r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficahbi7r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficahbo7r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficahc7r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficahi7r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficahn7r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficaho7r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficai8r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigrafican8r.vf
%{_texmfdistdir}/fonts/vf/public/epigrafica/epigraficao8r.vf
%{_texmfdistdir}/tex/latex/epigrafica/epigrafica.sty
%{_texmfdistdir}/tex/latex/epigrafica/lgrepigrafica.fd
%{_texmfdistdir}/tex/latex/epigrafica/ot1epigrafica.fd
%doc %{_texmfdistdir}/doc/fonts/epigrafica/README
%doc %{_texmfdistdir}/doc/fonts/epigrafica/doc.zip
%doc %{_texmfdistdir}/doc/fonts/epigrafica/epigrafica.pdf
%doc %{_texmfdistdir}/doc/fonts/epigrafica/epigrafica.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9745 |21cr|texlive-epigram-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20513
# category Package
# catalog-ctan /macros/generic/misc/epigram.tex
# catalog-date 2010-11-20 18:15:00 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-epigram
Version:	20190228
Release:	1
Summary:	Display short quotations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/misc/epigram.tex
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epigram.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package determines (on the basis of the width of the text
of the epigram, laid out on a single line) whether to produce a
line or a displayed paragraph.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/epigram/epigram.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9746 |21cr|texlive-epigraph-keys-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname epigraph-keys

Summary:	Epigraphs using key values
Name:		texlive-epigraph-keys
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(conditionals.sty)
#Requires:	tex(enumitem.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(microtype.sty)
#Requires:	tex(pgfkeys.sty)
Provides:	tex(epigraph-keys.sty) = 2024
BuildArch:	noarch

%description
This package lays out epigraphs: quotations across a page,
usually to open or close a chapter. It is intended as a simple
replacement for the more sophisticated epigraph package. The
package depends on pgfkeys, conditionals (which is distributed
as part of the songbook package), enumitem, and microtype.

%files
%doc %{_texmfdistdir}/doc/latex/epigraph-keys
%{_texmfdistdir}/tex/latex/epigraph-keys

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9747 |21cr|texlive-epsdice-2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/epsdice
# catalog-date 2007-02-15 14:08:03 +0100
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-epsdice
Version:	2.1
Release:	8
Summary:	A scalable dice "font"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/epsdice
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsdice.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsdice.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsdice.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The epsdice package defines a single command \epsdice that
takes a numeric argument (in the range 1-6), and selects a face
image from a file that contains each of the 6 possible die
faces. The graphic file is provided in both Encapsulated
PostScript and PDF formats.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/epsdice/dice.eps
%{_texmfdistdir}/tex/latex/epsdice/dice.pdf
%{_texmfdistdir}/tex/latex/epsdice/epsdice.cfg
%{_texmfdistdir}/tex/latex/epsdice/epsdice.sty
%doc %{_texmfdistdir}/doc/latex/epsdice/README
%doc %{_texmfdistdir}/doc/latex/epsdice/dice.eps
%doc %{_texmfdistdir}/doc/latex/epsdice/dice.pdf
%doc %{_texmfdistdir}/doc/latex/epsdice/epsdice.pdf
#- source
%doc %{_texmfdistdir}/source/latex/epsdice/epsdice.dtx
%doc %{_texmfdistdir}/source/latex/epsdice/epsdice.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9748 |21cr|texlive-epsf-dvipdfmx-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-epsf-dvipdfmx
Version:	20160624
Release:	1
Summary:	Plain TeX file for using epsf.tex with (x)dvipdfmx
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/plain/contrib/epsf-dvipdfmx
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsf-dvipdfmx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsf-dvipdfmx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
epsf-dvipdfmx.tex is a plain TeX file to be \input after
epsf.tex when using plain TeX with dvipdfmx. As in: \input epsf
\input epsf-dvipdfmx It is needed when an .eps file has
anything except the origin (0,0) for the lower-left of its
bounding box.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9749 |21cr|texlive-eqexpl-20190701-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eqexpl
Version:	20190701
Release:	1
Summary:	Align explanations for formulas
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eqexpl
License:	CC-BY-SA-4
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqexpl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqexpl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package was developed in response to a question on
https://tex.stackexchange.com. Its purpose is to enable a
perfectly formatted explanation of components of a formula. The
package depends on calc, etoolbox, and xparse.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9750 |21cr|texlive-eqnalign-20170222-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eqnalign
Version:	20170222
Release:	1
Summary:	Make eqnarray behave like align
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eqnalign
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnalign.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnalign.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnalign.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes eqnarray environment behave like align from
amsmath'. It is intended for quick-fixing documents that use
eqnarray. In cases where it fails, manual conversion to align
is required, but these cases should be seldom.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%doc %{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9751 |21cr|texlive-eqnarray-1.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20641
# category Package
# catalog-ctan /macros/latex/contrib/eqnarray
# catalog-date 2010-12-02 11:00:56 +0100
# catalog-license gpl3
# catalog-version 1.3
Name:		texlive-eqnarray
Version:	1.3
Release:	8
Summary:	More generalised equation arrays with numbering
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eqnarray
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnarray.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnarray.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnarray.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines an equationarray environment, that allows more than
three columns, but otherwise behaves like LaTeX's eqnarray
environment. This environment is similar, in some ways, to the
align environment of amsmath. The package requires the array
package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eqnarray/eqnarray.sty
%doc %{_texmfdistdir}/doc/latex/eqnarray/README
%doc %{_texmfdistdir}/doc/latex/eqnarray/eqnarray.pdf
#- source
%doc %{_texmfdistdir}/source/latex/eqnarray/eqnarray.drv
%doc %{_texmfdistdir}/source/latex/eqnarray/eqnarray.dtx
%doc %{_texmfdistdir}/source/latex/eqnarray/eqnarray.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9752 |21cr|texlive-eqnnumwarn-20180107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eqnnumwarn
Version:	20180107
Release:	1
Summary:	Modifies the amsmath equation environments to warn for a displaced equation number
Group:		Publishing
URL:		https://ctan.org/pkg/eqnnumwarn
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnnumwarn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnnumwarn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sometimes an equation is too long that an equation number will
be typeset below the equation itself, but yet not long enough
to yield an "overfull \hbox" warning. The eqnnumwarn package
modifies the standard amsmath numbered equation environments to
throw a warning whenever this occurs.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9753 |21cr|texlive-eq-pin2corr-59477-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname eq-pin2corr

Summary:	Add PIN security to the "Correct" button of a quiz created by exerquiz
Name:		texlive-eq-pin2corr
Version:	59477
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(eq-pin2corr.sty) = 2024
BuildArch:	noarch

%description
This package is an add-on to the quiz environment of the
exerquiz package (part of the acrotex bundle). It adds PIN
security to a quiz created by the quiz environment. To correct
a quiz, the document consumer must press the "Correct" button
of the quiz and successfully enter the correct PIN number. The
PIN security is designed for the instructor to mark and record
the student's effort on that quiz. The package works for the
usual workflows.

%files
%doc %{_texmfdistdir}/doc/latex/eq-pin2corr
%{_texmfdistdir}/tex/latex/eq-pin2corr

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9754 |21cr|texlive-erewhon-20191113-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-erewhon
Version:	20191113
Release:	1
Summary:	Font package derived from Heuristica and Utopia
Group:		Publishing
URL:		https://ctan.org/pkg/erewhon
License:	OFLLPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/erewhon.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/erewhon.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Erewhon is based on the Heuristica package, which is based in
turn on Utopia. Erewhon adds a number of new features -- small
caps in all styles rather than just regular, added figure
styles (proportional, inferior, numerator, denominator) and
superior letters. The size is 6% smaller than Heuristica,
matching that of UtopiaStd.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%{_texmfdistdir}/fonts
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9755 |21cr|texlive-erewhon-math-65684-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname erewhon-math

Summary:	Utopia based OpenType Math font
Name:		texlive-erewhon-math
Version:	65684
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fourier-otf.sty) = 2024
BuildArch:	noarch

%description
Erewhon Math is an OpenType math font meant to be used together
with Erewhon text fonts in LuaLaTeX or XeLaTeX documents. Like
Fourier-GUTenberg, it is Utopia based and has been designed as
a replacement of Fourier-GUTenberg for Unicode engines.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/erewhon-math
%{_texmfdistdir}/tex/latex/erewhon-math

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9756 |21cr|texlive-esindex-52342-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname esindex

Summary:	Typset index entries in Spanish documents
Name:		texlive-esindex
Version:	52342
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(esindex.sty) = 2024
BuildArch:	noarch

%description
This package helps you to create indexes in Spanish. With
esindex you can write, say, \esindex{canon} and the entry will
be correctly alphabetized in the index. This release of esindex
works with accented characters in any encoding, and without
babel.

%files
%doc %{_texmfdistdir}/doc/latex/esindex
%{_texmfdistdir}/tex/latex/esindex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9757 |21cr|texlive-esrelation-20200217-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-esrelation
Version:	20200217
Release:	1
Summary:	Provides a symbol set for describing relations between ordered pairs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/esrelation
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esrelation.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esrelation.source.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esrelation.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Around 2008, researcher Byron Cook and several colleagues began
developing a new set of interrelated algorithms capable of
automatically reasoning about the behavior of computer programs
and other systems (such as biological systems, circuit designs,
etc). At the center of these algorithms were new ideas about
the relationships between structures expressable as
mathematical sets and relations. Using the language of
mathematics and logic, the researchers communicated these new
results to others in their community via published papers,
research talks, etc. Unfortunately, they found the symbols
already available for reasoning about relations lacking (in
contrast to sets, which have a long-ago developed and robust
symbol vocabulary). Early presentations were unnecessarily
cluttered. To more elegantly express these ideas around
relations, Cook recruited artist Tauba Auerbach to help develop
a set of symbols. This package provides an math symbol font for
describing relations between ordered pairs by using Metafont.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/*
%{_texmfdistdir}/tex/latex/esrelation
%doc %{_texmfdistdir}/doc/fonts/esrelation
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9758 |21cr|texlive-esstix-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22426
# category Package
# catalog-ctan /fonts/esstix
# catalog-date 2011-05-10 11:05:00 +0200
# catalog-license ofl
# catalog-version 1.0
Name:		texlive-esstix
Version:	1.0
Release:	8
Summary:	PostScript versions of the ESSTIX, with macro support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/esstix
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esstix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esstix.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These fonts represent translation to PostScript Type 1 of the
ESSTIX fonts. ESSTIX seem to have been a precursor to the STIX
project, and were donated by Elsevier to that project. The
accompanying virtual fonts with customized metrics and LaTeX
support files allow their use as calligraphic, fraktur and
double-struck (blackboard bold) in maths mode.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX10.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX10.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX11.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX11.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX12.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX12.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX13.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX13.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX14.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX14.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX15.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX15.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX16.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX16.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX17.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX17.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX1_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX1_.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX2_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX2_.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX3_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX3_.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX4_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX4_.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX5_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX5_.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX6_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX6_.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX7_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX7_.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX8_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX8_.afm
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX9_.PFM
%{_texmfdistdir}/fonts/afm/esstix/ESSTIX9_.afm
%{_texmfdistdir}/fonts/map/dvips/esstix/ESSTIX.map
%{_texmfdistdir}/fonts/tfm/public/esstix/esstixbb.tfm
%{_texmfdistdir}/fonts/tfm/public/esstix/esstixcal.tfm
%{_texmfdistdir}/fonts/tfm/public/esstix/esstixfrak.tfm
%{_texmfdistdir}/fonts/tfm/public/esstix/rESSTIX13.tfm
%{_texmfdistdir}/fonts/tfm/public/esstix/rESSTIX14.tfm
%{_texmfdistdir}/fonts/tfm/public/esstix/rESSTIX15.tfm
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX10.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX11.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX12.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX13.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX14.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX15.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX16.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX17.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX1_.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX2_.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX3_.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX4_.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX5_.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX6_.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX7_.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX8_.pfb
%{_texmfdistdir}/fonts/type1/public/esstix/ESSTIX9_.pfb
%{_texmfdistdir}/fonts/vf/public/esstix/esstixbb.vf
%{_texmfdistdir}/fonts/vf/public/esstix/esstixcal.vf
%{_texmfdistdir}/fonts/vf/public/esstix/esstixfrak.vf
%{_texmfdistdir}/tex/latex/esstix/esstixbb.sty
%{_texmfdistdir}/tex/latex/esstix/esstixcal.sty
%{_texmfdistdir}/tex/latex/esstix/esstixfrak.sty
%{_texmfdistdir}/tex/latex/esstix/uesstixbb.fd
%{_texmfdistdir}/tex/latex/esstix/uesstixcal.fd
%{_texmfdistdir}/tex/latex/esstix/uesstixfrak.fd
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX10.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX11.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX12.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX13.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX14.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX15.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX16.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX17.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX1_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX2_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX3_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX4_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX5_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX6_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX7_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX8_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/ESSTIX9_.tfm
%doc %{_texmfdistdir}/doc/fonts/esstix/Esstix.pdf
%doc %{_texmfdistdir}/doc/fonts/esstix/Esstix.tex
%doc %{_texmfdistdir}/doc/fonts/esstix/README
%doc %{_texmfdistdir}/doc/fonts/esstix/esstixOther.map

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9759 |21cr|texlive-esvect-1.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/esvect
# catalog-date 2006-10-27 00:09:51 +0200
# catalog-license gpl
# catalog-version 1.3
Name:		texlive-esvect
Version:	1.3
Release:	8
Summary:	Vector arrows
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/esvect
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esvect.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esvect.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esvect.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Write vectors using an arrow which is different to the Computer
Modern one. You have the choice between several kinds of
arrows. The package consists of the relevant metafont code and
a package to use it.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/esvect/esvect.map
%{_texmfdistdir}/fonts/source/public/esvect/mathvec.mf
%{_texmfdistdir}/fonts/source/public/esvect/vecsym.mf
%{_texmfdistdir}/fonts/source/public/esvect/vect10.mf
%{_texmfdistdir}/fonts/source/public/esvect/vect5.mf
%{_texmfdistdir}/fonts/source/public/esvect/vect6.mf
%{_texmfdistdir}/fonts/source/public/esvect/vect7.mf
%{_texmfdistdir}/fonts/source/public/esvect/vect8.mf
%{_texmfdistdir}/fonts/source/public/esvect/vect9.mf
%{_texmfdistdir}/fonts/source/public/esvect/vsymbol.mf
%{_texmfdistdir}/fonts/tfm/public/esvect/vect10.tfm
%{_texmfdistdir}/fonts/tfm/public/esvect/vect5.tfm
%{_texmfdistdir}/fonts/tfm/public/esvect/vect6.tfm
%{_texmfdistdir}/fonts/tfm/public/esvect/vect7.tfm
%{_texmfdistdir}/fonts/tfm/public/esvect/vect8.tfm
%{_texmfdistdir}/fonts/tfm/public/esvect/vect9.tfm
%{_texmfdistdir}/fonts/type1/public/esvect/vect10.pfb
%{_texmfdistdir}/fonts/type1/public/esvect/vect5.pfb
%{_texmfdistdir}/fonts/type1/public/esvect/vect6.pfb
%{_texmfdistdir}/fonts/type1/public/esvect/vect7.pfb
%{_texmfdistdir}/fonts/type1/public/esvect/vect8.pfb
%{_texmfdistdir}/fonts/type1/public/esvect/vect9.pfb
%{_texmfdistdir}/tex/latex/esvect/esvect.sty
%{_texmfdistdir}/tex/latex/esvect/uesvect.fd
%doc %{_texmfdistdir}/doc/latex/esvect/README
%doc %{_texmfdistdir}/doc/latex/esvect/esvect.pdf
#- source
%doc %{_texmfdistdir}/source/latex/esvect/esvect.dtx
%doc %{_texmfdistdir}/source/latex/esvect/esvect.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9760 |21cr|texlive-etbb-61872-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname etbb

Summary:	An expansion of Edward Tufte's ET-Bembo family
Name:		texlive-etbb
Version:	61872
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(etbb1_3ccbvp.enc) = 2024
Provides:	tex(etbb1_3ggaku.enc) = 2024
Provides:	tex(etbb1_6bhqsy.enc) = 2024
Provides:	tex(etbb1_6dkfmm.enc) = 2024
Provides:	tex(etbb1_d63baf.enc) = 2024
Provides:	tex(etbb1_dpvwoq.enc) = 2024
Provides:	tex(etbb1_eqc2ac.enc) = 2024
Provides:	tex(etbb1_frcze6.enc) = 2024
Provides:	tex(etbb1_hah5or.enc) = 2024
Provides:	tex(etbb1_mfrons.enc) = 2024
Provides:	tex(etbb1_mgm6re.enc) = 2024
Provides:	tex(etbb1_pvrda3.enc) = 2024
Provides:	tex(etbb1_sb7odk.enc) = 2024
Provides:	tex(etbb1_vtabip.enc) = 2024
Provides:	tex(etbb1_xaqh3v.enc) = 2024
Provides:	tex(etbb1_yziesh.enc) = 2024
Provides:	tex(etbb_242knm.enc) = 2024
Provides:	tex(etbb_2jmcdk.enc) = 2024
Provides:	tex(etbb_2ynk4h.enc) = 2024
Provides:	tex(etbb_33mftd.enc) = 2024
Provides:	tex(etbb_3ccbvp.enc) = 2024
Provides:	tex(etbb_3ggaku.enc) = 2024
Provides:	tex(etbb_3obh62.enc) = 2024
Provides:	tex(etbb_3pymqv.enc) = 2024
Provides:	tex(etbb_3ygfa2.enc) = 2024
Provides:	tex(etbb_42bwpg.enc) = 2024
Provides:	tex(etbb_4hpi45.enc) = 2024
Provides:	tex(etbb_4o3pf4.enc) = 2024
Provides:	tex(etbb_4sxvu4.enc) = 2024
Provides:	tex(etbb_4xv7ax.enc) = 2024
Provides:	tex(etbb_5drz2o.enc) = 2024
Provides:	tex(etbb_5iollt.enc) = 2024
Provides:	tex(etbb_5um4so.enc) = 2024
Provides:	tex(etbb_65swoa.enc) = 2024
Provides:	tex(etbb_6bhqsy.enc) = 2024
Provides:	tex(etbb_6dkfmm.enc) = 2024
Provides:	tex(etbb_6z6nrw.enc) = 2024
Provides:	tex(etbb_7dlbn4.enc) = 2024
Provides:	tex(etbb_7ipmvr.enc) = 2024
Provides:	tex(etbb_7pzsmk.enc) = 2024
Provides:	tex(etbb_7t4ywj.enc) = 2024
Provides:	tex(etbb_7tqudy.enc) = 2024
Provides:	tex(etbb_7uz5xh.enc) = 2024
Provides:	tex(etbb_atf2m5.enc) = 2024
Provides:	tex(etbb_b3flk2.enc) = 2024
Provides:	tex(etbb_bb5xlm.enc) = 2024
Provides:	tex(etbb_boj3jd.enc) = 2024
Provides:	tex(etbb_cq6xx2.enc) = 2024
Provides:	tex(etbb_cxbogn.enc) = 2024
Provides:	tex(etbb_cyp5f5.enc) = 2024
Provides:	tex(etbb_cyyszv.enc) = 2024
Provides:	tex(etbb_d63baf.enc) = 2024
Provides:	tex(etbb_dkuysn.enc) = 2024
Provides:	tex(etbb_dpvwoq.enc) = 2024
Provides:	tex(etbb_e7zo2o.enc) = 2024
Provides:	tex(etbb_ehl4wc.enc) = 2024
Provides:	tex(etbb_elsw3h.enc) = 2024
Provides:	tex(etbb_eqc2ac.enc) = 2024
Provides:	tex(etbb_eqlboo.enc) = 2024
Provides:	tex(etbb_f55msl.enc) = 2024
Provides:	tex(etbb_fpvlkw.enc) = 2024
Provides:	tex(etbb_frcze6.enc) = 2024
Provides:	tex(etbb_fveuju.enc) = 2024
Provides:	tex(etbb_fwcdph.enc) = 2024
Provides:	tex(etbb_fyek6u.enc) = 2024
Provides:	tex(etbb_g2yynh.enc) = 2024
Provides:	tex(etbb_gteq3q.enc) = 2024
Provides:	tex(etbb_gtqfg2.enc) = 2024
Provides:	tex(etbb_hah5or.enc) = 2024
Provides:	tex(etbb_hdnox5.enc) = 2024
Provides:	tex(etbb_hn62ay.enc) = 2024
Provides:	tex(etbb_i2z4ax.enc) = 2024
Provides:	tex(etbb_i5ezvi.enc) = 2024
Provides:	tex(etbb_izxro2.enc) = 2024
Provides:	tex(etbb_j43iwo.enc) = 2024
Provides:	tex(etbb_j4gzyc.enc) = 2024
Provides:	tex(etbb_j7myeh.enc) = 2024
Provides:	tex(etbb_jjhcst.enc) = 2024
Provides:	tex(etbb_kvzzr3.enc) = 2024
Provides:	tex(etbb_ladhhj.enc) = 2024
Provides:	tex(etbb_m5kdwt.enc) = 2024
Provides:	tex(ETbb.map) = 2024
Provides:	tex(etbb_mfrons.enc) = 2024
Provides:	tex(etbb_mgm6re.enc) = 2024
Provides:	tex(etbb_mpvq56.enc) = 2024
Provides:	tex(etbb_n73bzf.enc) = 2024
Provides:	tex(etbb_num7wi.enc) = 2024
Provides:	tex(etbb_nvfc5y.enc) = 2024
Provides:	tex(etbb_oe3mzn.enc) = 2024
Provides:	tex(etbb_ohc25e.enc) = 2024
Provides:	tex(etbb_olodrh.enc) = 2024
Provides:	tex(etbb_onypnl.enc) = 2024
Provides:	tex(etbb_ooqfsa.enc) = 2024
Provides:	tex(etbb_ow4ien.enc) = 2024
Provides:	tex(etbb_oynaqb.enc) = 2024
Provides:	tex(etbb_p6ehom.enc) = 2024
Provides:	tex(etbb_pqh27d.enc) = 2024
Provides:	tex(etbb_pvrda3.enc) = 2024
Provides:	tex(etbb_q62n24.enc) = 2024
Provides:	tex(etbb_rgl4wj.enc) = 2024
Provides:	tex(etbb_riohwx.enc) = 2024
Provides:	tex(etbb_rzlqzq.enc) = 2024
Provides:	tex(etbb_sb7odk.enc) = 2024
Provides:	tex(etbb_sjtq2a.enc) = 2024
Provides:	tex(etbb_skushq.enc) = 2024
Provides:	tex(ETbb.sty) = 2024
Provides:	tex(etbb_t4d6nl.enc) = 2024
Provides:	tex(etbb_tbmtgo.enc) = 2024
Provides:	tex(etbb_tunzhv.enc) = 2024
Provides:	tex(etbb_ujzbb6.enc) = 2024
Provides:	tex(etbb_v6nho7.enc) = 2024
Provides:	tex(etbb_vazzz3.enc) = 2024
Provides:	tex(etbb_veuqiz.enc) = 2024
Provides:	tex(etbb_vmilsn.enc) = 2024
Provides:	tex(etbb_vqghpl.enc) = 2024
Provides:	tex(etbb_vtabip.enc) = 2024
Provides:	tex(etbb_xaqh3v.enc) = 2024
Provides:	tex(etbb_xe5wuh.enc) = 2024
Provides:	tex(etbb_xmn5et.enc) = 2024
Provides:	tex(etbb_xwgzeq.enc) = 2024
Provides:	tex(etbb_y6dqd4.enc) = 2024
Provides:	tex(etbb_yadlkl.enc) = 2024
Provides:	tex(etbb_ybjyd4.enc) = 2024
Provides:	tex(etbb_yiqwpu.enc) = 2024
Provides:	tex(etbb_ytzykv.enc) = 2024
Provides:	tex(etbb_yziesh.enc) = 2024
Provides:	tex(etbb_yzoycr.enc) = 2024
Provides:	tex(etbb_zpkt7y.enc) = 2024
Provides:	tex(LY1ETbb-Dnom.fd) = 2024
Provides:	tex(LY1ETbb-Inf.fd) = 2024
Provides:	tex(LY1ETbb-LF.fd) = 2024
Provides:	tex(LY1ETbb-OsF.fd) = 2024
Provides:	tex(LY1ETbb-Sup.fd) = 2024
Provides:	tex(LY1ETbb-TLF.fd) = 2024
Provides:	tex(LY1ETbb-TOsF.fd) = 2024
Provides:	tex(OT1ETbb-Dnom.fd) = 2024
Provides:	tex(OT1ETbb-Inf.fd) = 2024
Provides:	tex(OT1ETbb-LF.fd) = 2024
Provides:	tex(OT1ETbb-OsF.fd) = 2024
Provides:	tex(OT1ETbb-Sup.fd) = 2024
Provides:	tex(OT1ETbb-TLF.fd) = 2024
Provides:	tex(OT1ETbb-TOsF.fd) = 2024
Provides:	tex(T1ETbb-Dnom.fd) = 2024
Provides:	tex(T1ETbb-Inf.fd) = 2024
Provides:	tex(T1ETbb-LF.fd) = 2024
Provides:	tex(T1ETbb-OsF.fd) = 2024
Provides:	tex(T1ETbb-Sup.fd) = 2024
Provides:	tex(T1ETbb-TLF.fd) = 2024
Provides:	tex(T1ETbb-TOsF.fd) = 2024
Provides:	tex(TS1ETbb-LF.fd) = 2024
Provides:	tex(TS1ETbb-OsF.fd) = 2024
Provides:	tex(TS1ETbb-TLF.fd) = 2024
Provides:	tex(TS1ETbb-TOsF.fd) = 2024
BuildArch:	noarch

%description
Based on Daniel Benjamin Miller's XETBook, which expanded
Tufte's ETBook, the family name for the Bembo-like font family
he commissioned for his books, ETbb expands its features to
include a full set of figure styles, small caps in all styles,
superior letters and figures, inferior figures, a new capital
Sharp S with small caps version, along with macros to activate
these features in LaTeX. Both otf and pfb are provided.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/etbb
%{_texmfdistdir}/fonts/enc/dvips/etbb
%{_texmfdistdir}/fonts/map/dvips/etbb
%{_texmfdistdir}/fonts/opentype/public/etbb
%{_texmfdistdir}/fonts/tfm/public/etbb
%{_texmfdistdir}/fonts/type1/public/etbb
%{_texmfdistdir}/fonts/vf/public/etbb
%{_texmfdistdir}/tex/latex/etbb

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9761 |21cr|texlive-etexcmds-53171-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname etexcmds

Summary:	Avoid name clashes with e-TeX commands
Name:		texlive-etexcmds
Version:	53171
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(etexcmds.sty) = 2024
BuildArch:	noarch

%description
New primitive commands are introduced in e-TeX; sometimes the
names collide with existing macros. This package solves the
name clashes by adding a prefix to e-TeX's commands. For
example, eTeX's \unexpanded is provided as \etex@unexpanded.

%files
%doc %{_texmfdistdir}/doc/latex/etexcmds
%{_texmfdistdir}/tex/generic/etexcmds

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9762 |21cr|texlive-etl-60998-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname etl

Summary:	Expandable token list operations
Name:		texlive-etl
Version:	60998
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(etl.sty) = 2024
BuildArch:	noarch

%description
This package provides expandable token list operations for
which expl3's l3tl only has unexpandable variants. These
expandable versions are typically slower than the unexpandable
code. Unlike the l3tl versions, the functions in this module
may contain braces and macro parameter tokens in their
arguments, but as a drawback they cannot distinguish some
tokens and do not consider the character code of group-begin
and group-end tokens. Additionally a general map to token lists
is provided, modelled after the expl3 internal __tl_act:NNNn
but with additional features. The package has no immediate use
for document authors; it only contains expl3 functions intended
for programmers.

%files
%doc %{_texmfdistdir}/doc/latex/etl
%{_texmfdistdir}/tex/latex/etl

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9763 |21cr|texlive-euclideangeometry-60697-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname euclideangeometry

Summary:	Draw geometrical constructions
Name:		texlive-euclideangeometry
Version:	60697
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(euclideangeometry.sty) = 2024
BuildArch:	noarch

%description
This package provides tools to draw most of the geometrical
constructions that a high school instructor or bachelor degree
professor might need to teach geometry. The connection to
Euclide depends on the fact that in his times calculations were
made with ruler, compass and also with ellipsograph. This
package extends the functionalities of the curve2e package.

%files
%doc %{_texmfdistdir}/doc/latex/euclideangeometry
%{_texmfdistdir}/tex/latex/euclideangeometry

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9764 |21cr|texlive-euler-math-65685-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname euler-math

Summary:	OpenType version of Hermann Zapf's Euler maths font
Name:		texlive-euler-math
Version:	65685
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(euler-math.sty) = 2024
Provides:	tex(neo-euler.sty) = 2024
BuildArch:	noarch

%description
Euler-Math.otf (formerly named 'Neo-Euler.otf') is an OpenType
version of Hermann Zapf's Euler maths font. It is the
continuation of the Euler project initiated by Khaled Hosny in
2009 and abandoned in 2016. A style file euler-math.sty is
provided as a replacement of the eulervm package for LuaLaTeX
and XeLaTeX users.

%files
%doc %{_texmfdistdir}/doc/fonts/euler-math
%{_texmfdistdir}/fonts/opentype/public/euler-math
%{_texmfdistdir}/tex/latex/euler-math

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9765 |21cr|texlive-euxm-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20202
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-euxm
Version:	20190228
Release:	1
Summary:	TeXLive euxm package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euxm.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive euxm package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/euxm/eubase.mf
%{_texmfdistdir}/fonts/source/public/euxm/eusmch.mf
%{_texmfdistdir}/fonts/source/public/euxm/euxm10.mf
%{_texmfdistdir}/fonts/source/public/euxm/euxm5.mf
%{_texmfdistdir}/fonts/source/public/euxm/euxm7.mf
%{_texmfdistdir}/fonts/source/public/euxm/euxmch.mf
%{_texmfdistdir}/fonts/tfm/public/euxm/euxm10.tfm
%{_texmfdistdir}/fonts/tfm/public/euxm/euxm5.tfm
%{_texmfdistdir}/fonts/tfm/public/euxm/euxm7.tfm

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9766 |21cr|texlive-evangelion-jfm-65824-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname evangelion-jfm

Summary:	A Japanese font metric supporting many advanced features
Name:		texlive-evangelion-jfm
Version:	65824
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides a Japanese Font Metric supporting
vertical and horizontal typesetting, 'linegap punctuations',
'extended fonts', and more interesting and helpful features
using traditional and simplified Chinese or Japanese fonts
under LuaTeX-ja. It also makes full use of the 'priority'
feature, meeting the standards, and allows easy customisation.

%files
%doc %{_texmfdistdir}/doc/luatex/evangelion-jfm
%{_texmfdistdir}/tex/luatex/evangelion-jfm

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9767 |21cr|texlive-everysel-57489-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname everysel

Summary:	Provides hooks into \selectfont
Name:		texlive-everysel
Version:	57489
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(everysel-2011-10-28.sty) = 2024
Provides:	tex(everysel.sty) = 2024
BuildArch:	noarch

%description
The package provided hooks whose arguments are executed just
after LaTeX has loaded a new font by means of \selectfont. It
has become obsolete with LaTeX versions 2021/01/05 or newer,
since LaTeX now provides its own hooks to fulfill this task.
For newer versions of LaTeX everysel only provides macros using
LaTeX's hook management due to compatibility reasons. See
lthooks-doc.pdf for instructions how to use lthooks instead of
everysel.

%files
%doc %{_texmfdistdir}/doc/latex/everysel
%{_texmfdistdir}/tex/latex/everysel

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9768 |21cr|texlive-everyshi-57001-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname everyshi

Summary:	Take action at every \shipout
Name:		texlive-everyshi
Version:	57001
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(everyshi-2001-05-15.sty) = 2024
Provides:	tex(everyshi.sty) = 2024
BuildArch:	noarch

%description
This package provides hooks into \sshipout called \EveryShipout
and \AtNextShipout analogous to \AtBeginDocument. With the
introduction of the LaTeX hook management this package became
obsolete in 2020 and is only provided for backwards
compatibility. For current versions of LaTeX it is only mapping
the hooks to the original everyshi macros. In case you use an
older LaTeX format, everyshi will automatically fall back to
its old implementation by loading everyshi-2001-05-15.

%files
%doc %{_texmfdistdir}/doc/latex/everyshi
%{_texmfdistdir}/tex/latex/everyshi

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9769 |21cr|texlive-exam-lite-65754-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname exam-lite

Summary:	Quicker preparation of exams in LaTeX
Name:		texlive-exam-lite
Version:	65754
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(exam-lite.cls) = 2024
BuildArch:	noarch

%description
This template is devoted to the quicker preparation of exams in
LaTeX. Its main features are: Minimalistic design. Include the
custom logo of the affiliation. Predefined commands for a
subject, study year, study program, exam type, place of exam,
date. Many macros contained in this package speed up the
process of preparing the necessary ingredients for the exam.
Automatic calculation of total points.

%files
%doc %{_texmfdistdir}/doc/latex/exam-lite
%{_texmfdistdir}/tex/latex/exam-lite

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9770 |21cr|texlive-example-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           texlive-example
Version:        1.0
Release:        1
Summary:        Provides an example environment
License:        GNU General Public License
Group:          Publishing
URL:            https://ctan.org/pkg/example
Source0:        https://ctan.altspu.ru/systems/texlive/tlnet/archive/example.tar.xz
BuildArch:      noarch
Requires(pre):  texlive-tlpkg
BuildRequires:	texlive-tlpkg
BuildRequires:  texlive-kpathsea

%description
The package makes it easier to produce examples for TeX course.
%files
%{_texmfdistdir}/tex/latex/example/*

%prep
%setup -c -a0

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -rf tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9771 |21cr|texlive-exam-randomizechoices-20171104-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exam-randomizechoices 
Version:	20171104
Release:	1
Summary:	Randomize mc choices using the exam class
Group:		Publishing
URL:		https://ctan.org/pkg/exam-randomizechoices
License:	LPPL1.3
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/exam-randomizechoices.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/exam-randomizechoices.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is an extension to the exam document class. It
provides the user with four new multiple choice typesetting
environments which place their content in a random order. It
can (only) be used in combination with the exam class. It can
only randomize the placement of choices in multiple choice
questions. The questions themselves cannot be randomized with
this package. Furthermore, the package provides a simple answer
key table typesetter and has a command for writing the answer
keys to an external file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9772 |21cr|texlive-exam-zh-64434-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname exam-zh

Summary:	LaTeX template for Chinese exams
Name:		texlive-exam-zh
Version:	64434
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(exam-zh-chinese-english.sty) = 2024
Provides:	tex(exam-zh-choices.sty) = 2024
Provides:	tex(exam-zh.cls) = 2024
Provides:	tex(exam-zh-font.sty) = 2024
Provides:	tex(exam-zh-question.sty) = 2024
Provides:	tex(exam-zh-symbols.sty) = 2024
Provides:	tex(exam-zh-textfigure.sty) = 2024
BuildArch:	noarch

%description
Although there are already several excellent exam packages or
classes like exam and bhcexam, these do not fit the Chinese
style very well, or they cannot be customized easily for
Chinese exams of all types, like exams in primary school,
junior high school, senior high school and even college. This
is the main reason why this package was created. This package
provides a class exam-zh.cls and several module packages like
exam-zh-question.sty and exam-zh-choices.sty, where these
module packages can be used individually. Using exam-zh you can
separate the format and the content very well; use the choices
environment to typeset choice items easily and automatically;
design the seal line easily; and more (see manual).

%files
%doc %{_texmfdistdir}/doc/xelatex/exam-zh
%{_texmfdistdir}/tex/latex/exam-zh

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9773 |21cr|texlive-exercises-20200517-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exercises
Version:	20200517
Release:	1
Summary:	Typeset exercises and solutions with automatic addition of points
Group:		Publishing
URL:		https://ctan.org/pkg/exercises
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exercises.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exercises.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/exercises.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines the environments exercise and solution.
The layout of these environments can be customized. 
The optional points in the exercises can be added automatically.
The package also permits to hide the solutions.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%doc %{_texmfdistdir}/source
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9774 |21cr|texlive-exesheet-65577-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname exesheet

Summary:	Typesetting exercise or exam sheets
Name:		texlive-exesheet
Version:	65577
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(exesheet.cls) = 2024
Provides:	tex(exesheet.sty) = 2024
BuildArch:	noarch

%description
This package is used for typesetting exercise or exam sheets.
In addition, the exesheet class loads the schooldocs package.
The package provides: macros to mark out exercises and
subparts, specific settings for enumeration lists, environments
for questions and answers, with conditional display, macros for
marking scheme with detailed comments.

%files
%doc %{_texmfdistdir}/doc/latex/exesheet
%{_texmfdistdir}/tex/latex/exesheet

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9775 |21cr|texlive-expex-acro-63319-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname expex-acro

Summary:	Wrapper for the expex package
Name:		texlive-expex-acro
Version:	63319
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(expex-acro.sty) = 2024
BuildArch:	noarch

%description
This is a small wrapper for the expex package, adding ways to
define, use, and summarize glossing abbreviations. It also
provides commands to refer to examples, as well as some inline
formatting commands commonly used in linguistics.

%files
%doc %{_texmfdistdir}/doc/generic/expex-acro
%{_texmfdistdir}/tex/generic/expex-acro

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9776 |21cr|texlive-expkv-bundle-65623-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname expkv-bundle

Summary:	An expandable key=val implementation and friends
Name:		texlive-expkv-bundle
Version:	65623
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(expkv-cs.sty) = 2024
Provides:	tex(expkv-cs.tex) = 2024
Provides:	tex(expkv-def.sty) = 2024
Provides:	tex(expkv-def.tex) = 2024
Provides:	tex(expkv-opt-2020-10-10.sty) = 2024
Provides:	tex(expkv-opt.sty) = 2024
Provides:	tex(expkv-pop.sty) = 2024
Provides:	tex(expkv-pop.tex) = 2024
Provides:	tex(expkv.sty) = 2024
Provides:	tex(expkv.tex) = 2024
Provides:	texlive-expkv = 2024
Provides:	texlive-expkv-cs = 2024
Provides:	texlive-expkv-def = 2024
Provides:	texlive-expkv-opt = 2024
Provides:	tex(t-expkv-cs.tex) = 2024
Provides:	tex(t-expkv-def.tex) = 2024
Provides:	tex(t-expkv-pop.tex) = 2024
Provides:	tex(t-expkv.tex) = 2024
BuildArch:	noarch

%description
This is a collection of different packages that provide
key=value functionality in plainTeX, LaTeX, and ConTeXt. At the
core, the expkv package implements two expandable key=value
parsers that are somewhat fast and robust against common bugs
in many key=value implementations (no accidental brace
stripping, no fragility for active commas or equals signs).
expkv-cs enables users to define expandable key=value macros in
a comfortable and straightforward way. expkv-def provides an
interface to define common key types for expkv similar to the
key defining interfaces of widespread key=value
implementations. expkv-opt allows to parse package or class
options in LaTeX via expkv. expkv-pop is a utility package to
define prefix oriented parsers that allow a somewhat natural
formulation (it provides the core functionality for the
key-defining front ends of both expkv-cs and expkv-def).

%files
%doc %{_texmfdistdir}/doc/latex/expkv-bundle
%{_texmfdistdir}/tex/context/third/expkv-bundle
%{_texmfdistdir}/tex/generic/expkv-bundle
%{_texmfdistdir}/tex/latex/expkv-bundle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9777 |21cr|texlive-expose-expl3-dunkerque-2019-54451-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname expose-expl3-dunkerque-2019

Summary:	Using expl3 to implement some numerical algorithms
Name:		texlive-expose-expl3-dunkerque-2019
Version:	54451
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
An article, in French, based on a presentation made in
Dunkerque for the "stage LaTeX" on 12 June 2019. The articles
gives three examples of code in expl3 with (lots of) comments:
Knuth's algorithm to create a list of primes, the sieve of
Eratosthenes, Kaprekar sequences. The package contains the code
itself, the documentation as a PDF file, and all the files
needed to produce it.

%files
%doc %{_texmfdistdir}/doc/latex/expose-expl3-dunkerque-2019

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9778 |21cr|texlive-extarrows-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/extarrows
# catalog-date 2020-03-12
# catalog-license lgpl
# catalog-version 1.2.0
Name:		texlive-extarrows
Version:	1.2.0
Release:	1
Summary:	Extra Arrows beyond those provided in AMSmath
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/extarrows
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extarrows.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extarrows.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Arrows are provided to supplement \xleftarrow and \xrightarrow
of the AMSMath package: \xlongequal, \xLongleftarrow,
\xLongrightarrow, \xLongleftrightarrow, \xLeftrightarrow.
\xlongleftrightarrow, \xleftrightarrow, \xlongleftarrow and
\xlongrightarrow.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/extarrows/extarrows.sty
%doc %{_texmfdistdir}/doc/latex/extarrows/README*
%doc %{_texmfdistdir}/doc/latex/extarrows/extarrows-test.pdf
%doc %{_texmfdistdir}/doc/latex/extarrows/extarrows-test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9779 |21cr|texlive-extpfeil-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16243
# category Package
# catalog-ctan /macros/latex/contrib/extpfeil
# catalog-date 2009-10-31 20:51:21 +0100
# catalog-license lppl1.3
# catalog-version 0.4
Name:		texlive-extpfeil
Version:	0.4
Release:	8
Summary:	Extensible arrows in mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/extpfeil
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extpfeil.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extpfeil.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extpfeil.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The exptfeil package provides some more extensible arrows
(usable in the same way as \xleftarrow from amsmath), and a
command to simply create new ones.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/extpfeil/extpfeil.sty
%doc %{_texmfdistdir}/doc/latex/extpfeil/README
%doc %{_texmfdistdir}/doc/latex/extpfeil/extpfeil.pdf
#- source
%doc %{_texmfdistdir}/source/latex/extpfeil/extpfeil.dtx
%doc %{_texmfdistdir}/source/latex/extpfeil/extpfeil.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9780 |21cr|texlive-facture-belge-simple-sans-tva-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-facture-belge-simple-sans-tva
Version:	2.1  
Release:	1
Summary:	The package can also generate expense reports
License:	https://ctan.org/license/lppl1.3c
Group:		Publishing
Url:		https://ctan.org/pkg/facture-belge-simple-sans-tva
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/facture-belge-simple-sans-tva.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/facture-belge-simple-sans-tva.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package can be used to generate invoices for Belgian individuals 
who do not have a VAT number and who wish to do occasional work, 
or to carry out paid additional activities during their free time up to 6,000 euros 
per calendar year (amount indexed annually) without having to pay tax or social security contributions
#-----------------------------------------------------------------------


%files
%{_texmfdistdir}/tex/xelatex/facture-belge-simple-sans-tva
%doc %{_texmfdistdir}/doc/xelatex/facture-belge-simple-sans-tva

#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9781 |21cr|texlive-faktor-0.1b-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/faktor
# catalog-date 2007-02-27 14:19:10 +0100
# catalog-license lppl
# catalog-version 0.1b
Name:		texlive-faktor
Version:	0.1b
Release:	8
Summary:	Typeset quotient structures with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/faktor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/faktor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/faktor.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/faktor.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to typeset factor structures, as
are used in many areas of algebraic notation. The structure is
similar to the 'A/B' that is provided by the nicefrac package
(part of the units distribution), and by the xfrac package; the
most obvious difference is that the numerator and denominator's
sizes do not change in the \faktor command.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/faktor/faktor.sty
%doc %{_texmfdistdir}/doc/latex/faktor/README
%doc %{_texmfdistdir}/doc/latex/faktor/faktor.pdf
#- source
%doc %{_texmfdistdir}/source/latex/faktor/faktor.dtx
%doc %{_texmfdistdir}/source/latex/faktor/faktor.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9782 |21cr|texlive-familytree-63739-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname familytree

Summary:	Draw family trees
Name:		texlive-familytree
Version:	63739
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(familytree.sty) = 2024
BuildArch:	noarch

%description
Boxes describe individuals; lines connecting boxes represent
sibling or parent-child relationships, or marriages. Excluding
the marriage box, you can get a maleline/patrilineal tree, or a
femaleline/matrilineal tree. For Japanese, the jlreq.cls
vertical option (tate) is supported.

%files
%doc %{_texmfdistdir}/doc/latex/familytree
%{_texmfdistdir}/tex/latex/familytree

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9783 |21cr|texlive-fancyqr-64182-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fancyqr

Summary:	Fancy QR-Codes with TikZ
Name:		texlive-fancyqr
Version:	64182
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fancyqr.sty) = 2024
BuildArch:	noarch

%description
A simple package to create fancy QR-codes with the help of the
qrcode package.

%files
%doc %{_texmfdistdir}/doc/latex/fancyqr
%{_texmfdistdir}/tex/latex/fancyqr

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9784 |21cr|texlive-fascicules-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fascicules
Version:	1
Release:	1
Summary:	This package enables LaTeX users to create math books for middle and high schools
Group:		Publishing
URL:		https://www.ctan.org/pkg/fascicules
License:	The LATEX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/fascicules.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/fascicules.doc.tar.xz
Source2:        http://ctan.altspu.ru/systems/texlive/tlnet/archive/fascicules.source.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea
Requires: texlive-actuarialangle

%description
This class allows LaTeX users to create mathematics books for secondary/upper secondary schools and using LaTeX.
This package provides commands to create the front page of the manual and the chapters. 
Each chapter can consist of three sections: the lesson, the exercises and the activities.
In the version 1, the manual will be preferably in French. This can be easily improved in a near future.

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/fascicules
/usr/share/texmf-dist/source/latex/fascicules
%doc /usr/share/texmf-dist/doc/latex/fascicules

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc source %{buildroot}/usr/share/texmf-dist 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9785 |21cr|texlive-fbb-55728-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fbb

Summary:	A free Bembo-like font
Name:		texlive-fbb
Version:	55728
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	tex(fontenc.sty)
#Requires:	tex(ifetex.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex-fbb = 2024
Provides:	tex(fbb_24fmi7.enc) = 2024
Provides:	tex(fbb_24put5.enc) = 2024
Provides:	tex(fbb_2b4mld.enc) = 2024
Provides:	tex(fbb_2igduj.enc) = 2024
Provides:	tex(fbb_2jnzza.enc) = 2024
Provides:	tex(fbb_2op7s3.enc) = 2024
Provides:	tex(fbb_2xprkz.enc) = 2024
Provides:	tex(fbb_3cnzgn.enc) = 2024
Provides:	tex(fbb_3duhfc.enc) = 2024
Provides:	tex(fbb_3gn25k.enc) = 2024
Provides:	tex(fbb_3xwxat.enc) = 2024
Provides:	tex(fbb_3zscfd.enc) = 2024
Provides:	tex(fbb_4ejvjt.enc) = 2024
Provides:	tex(fbb_4mw2rr.enc) = 2024
Provides:	tex(fbb_4qmemg.enc) = 2024
Provides:	tex(fbb_4qxxhr.enc) = 2024
Provides:	tex(fbb_4wcgh5.enc) = 2024
Provides:	tex(fbb_4zjlsx.enc) = 2024
Provides:	tex(fbb_54lzpc.enc) = 2024
Provides:	tex(fbb_62speq.enc) = 2024
Provides:	tex(fbb_6kt7zw.enc) = 2024
Provides:	tex(fbb_6poto5.enc) = 2024
Provides:	tex(fbb_6vkgd4.enc) = 2024
Provides:	tex(fbb_6x3k7a.enc) = 2024
Provides:	tex(fbb_6xtdz5.enc) = 2024
Provides:	tex(fbb_73u7o6.enc) = 2024
Provides:	tex(fbb_7uozom.enc) = 2024
Provides:	tex(fbb_7zfhk4.enc) = 2024
Provides:	tex(fbb_aeezmr.enc) = 2024
Provides:	tex(fbb_alifw3.enc) = 2024
Provides:	tex(fbb_anjsak.enc) = 2024
Provides:	tex(fbb_b4m333.enc) = 2024
Provides:	tex(fbb_ba3tof.enc) = 2024
Provides:	tex(fbb_bjh4if.enc) = 2024
Provides:	tex(fbb_bus4he.enc) = 2024
Provides:	tex(fbb_cocscg.enc) = 2024
Provides:	tex(fbb_dejuay.enc) = 2024
Provides:	tex(fbb_dvpyqt.enc) = 2024
Provides:	tex(fbb_dz2n6o.enc) = 2024
Provides:	tex(fbb_enzkw5.enc) = 2024
Provides:	tex(fbb_f32ejw.enc) = 2024
Provides:	tex(fbb_f7memx.enc) = 2024
Provides:	tex(fbb_fmbb57.enc) = 2024
Provides:	tex(fbb_fq2tsq.enc) = 2024
Provides:	tex(fbb_g53n3i.enc) = 2024
Provides:	tex(fbb_gebqxj.enc) = 2024
Provides:	tex(fbb_go7ogc.enc) = 2024
Provides:	tex(fbb_gspevp.enc) = 2024
Provides:	tex(fbb_hcrfa2.enc) = 2024
Provides:	tex(fbb_i5idwu.enc) = 2024
Provides:	tex(fbb_ihegxb.enc) = 2024
Provides:	tex(fbb_ivhnor.enc) = 2024
Provides:	tex(fbb_iygvdi.enc) = 2024
Provides:	tex(fbb_j5xf4u.enc) = 2024
Provides:	tex(fbb_jc4ywh.enc) = 2024
Provides:	tex(fbb_jssv6r.enc) = 2024
Provides:	tex(fbb_k3h4c5.enc) = 2024
Provides:	tex(fbb_kc7qho.enc) = 2024
Provides:	tex(fbb_l27jix.enc) = 2024
Provides:	tex(fbb_lbjzwe.enc) = 2024
Provides:	tex(fbb_lpkr6b.enc) = 2024
Provides:	tex(fbb_lulz6h.enc) = 2024
Provides:	tex(fbb_m5ynvh.enc) = 2024
Provides:	tex(fbb_m7ioki.enc) = 2024
Provides:	tex(fbb.map) = 2024
Provides:	tex(fbb_mbwkti.enc) = 2024
Provides:	tex(fbb_mlvt4q.enc) = 2024
Provides:	tex(fbb_mpf4qq.enc) = 2024
Provides:	tex(fbb_naynxa.enc) = 2024
Provides:	tex(fbb_nc4uw4.enc) = 2024
Provides:	tex(fbb_nc5i6g.enc) = 2024
Provides:	tex(fbb_ned4xv.enc) = 2024
Provides:	tex(fbb_nrlzkf.enc) = 2024
Provides:	tex(fbb_o52cyd.enc) = 2024
Provides:	tex(fbb_oiqgfb.enc) = 2024
Provides:	tex(fbb_orcs6b.enc) = 2024
Provides:	tex(fbbP_24put5.enc) = 2024
Provides:	tex(fbbP_2igduj.enc) = 2024
Provides:	tex(fbbP_2jnzza.enc) = 2024
Provides:	tex(fbbP_3duhfc.enc) = 2024
Provides:	tex(fbbP_3zscfd.enc) = 2024
Provides:	tex(fbbP_4mw2rr.enc) = 2024
Provides:	tex(fbbP_4wcgh5.enc) = 2024
Provides:	tex(fbbP_4zjlsx.enc) = 2024
Provides:	tex(fbb_p5akwa.enc) = 2024
Provides:	tex(fbbP_62speq.enc) = 2024
Provides:	tex(fbbP_6kt7zw.enc) = 2024
Provides:	tex(fbbP_6poto5.enc) = 2024
Provides:	tex(fbbP_6vkgd4.enc) = 2024
Provides:	tex(fbbP_6x3k7a.enc) = 2024
Provides:	tex(fbbP_73u7o6.enc) = 2024
Provides:	tex(fbbP_7uozom.enc) = 2024
Provides:	tex(fbbP_7zfhk4.enc) = 2024
Provides:	tex(fbbP_ba3tof.enc) = 2024
Provides:	tex(fbbP_bjh4if.enc) = 2024
Provides:	tex(fbbP_enzkw5.enc) = 2024
Provides:	tex(fbbP_f32ejw.enc) = 2024
Provides:	tex(fbbP_f7memx.enc) = 2024
Provides:	tex(fbbP_fmbb57.enc) = 2024
Provides:	tex(fbbP_ivhnor.enc) = 2024
Provides:	tex(fbbP_k3h4c5.enc) = 2024
Provides:	tex(fbbP_kc7qho.enc) = 2024
Provides:	tex(fbbP_lpkr6b.enc) = 2024
Provides:	tex(fbbP_mbwkti.enc) = 2024
Provides:	tex(fbbP_naynxa.enc) = 2024
Provides:	tex(fbbP_ned4xv.enc) = 2024
Provides:	tex(fbbP_nrlzkf.enc) = 2024
Provides:	tex(fbbP_oiqgfb.enc) = 2024
Provides:	tex(fbbP_orcs6b.enc) = 2024
Provides:	tex(fbbP_qfprdo.enc) = 2024
Provides:	tex(fbbP_qznuv4.enc) = 2024
Provides:	tex(fbbP_rkdrjp.enc) = 2024
Provides:	tex(fbbP_tu2qnw.enc) = 2024
Provides:	tex(fbbP_ub5jdu.enc) = 2024
Provides:	tex(fbbP_ulsnvv.enc) = 2024
Provides:	tex(fbbP_uscd66.enc) = 2024
Provides:	tex(fbbP_v6tazz.enc) = 2024
Provides:	tex(fbbP_vo3hij.enc) = 2024
Provides:	tex(fbbP_wblpum.enc) = 2024
Provides:	tex(fbb_pwpiae.enc) = 2024
Provides:	tex(fbbP_x5klbo.enc) = 2024
Provides:	tex(fbbP_xctm5z.enc) = 2024
Provides:	tex(fbbP_xp6hp3.enc) = 2024
Provides:	tex(fbbP_xyrmbw.enc) = 2024
Provides:	tex(fbbP_y2ahej.enc) = 2024
Provides:	tex(fbbP_yragzx.enc) = 2024
Provides:	tex(fbb_qfprdo.enc) = 2024
Provides:	tex(fbb_qznuv4.enc) = 2024
Provides:	tex(fbb_rdlb6f.enc) = 2024
Provides:	tex(fbb_rkdrjp.enc) = 2024
Provides:	tex(fbb_s5g7rn.enc) = 2024
Provides:	tex(fbb.sty) = 2024
Provides:	tex(fbb_tonehg.enc) = 2024
Provides:	tex(fbb_tu2qnw.enc) = 2024
Provides:	tex(fbb_ub5jdu.enc) = 2024
Provides:	tex(fbb_ulsnvv.enc) = 2024
Provides:	tex(fbb_uscd66.enc) = 2024
Provides:	tex(fbb_v6tazz.enc) = 2024
Provides:	tex(fbb_vk4up5.enc) = 2024
Provides:	tex(fbb_vo3hij.enc) = 2024
Provides:	tex(fbb_wblpum.enc) = 2024
Provides:	tex(fbb_wdb4p7.enc) = 2024
Provides:	tex(fbb_x5klbo.enc) = 2024
Provides:	tex(fbb_xctm5z.enc) = 2024
Provides:	tex(fbb_xp6hp3.enc) = 2024
Provides:	tex(fbb_xyrmbw.enc) = 2024
Provides:	tex(fbb_y2ahej.enc) = 2024
Provides:	tex(fbb_yragzx.enc) = 2024
Provides:	tex(fbb_ywg272.enc) = 2024
Provides:	tex(fbb_ywphh4.enc) = 2024
Provides:	tex(fbb_zbnzwf.enc) = 2024
Provides:	tex(fbb_zjfw7l.enc) = 2024
Provides:	tex(LY1fbb-Inf.fd) = 2024
Provides:	tex(LY1fbb-LF.fd) = 2024
Provides:	tex(LY1fbb-OsF.fd) = 2024
Provides:	tex(LY1fbb-Sup.fd) = 2024
Provides:	tex(LY1fbb-TLF.fd) = 2024
Provides:	tex(LY1fbb-TOsF.fd) = 2024
Provides:	tex(OT1fbb-Inf.fd) = 2024
Provides:	tex(OT1fbb-LF.fd) = 2024
Provides:	tex(OT1fbb-OsF.fd) = 2024
Provides:	tex(OT1fbb-Sup.fd) = 2024
Provides:	tex(OT1fbb-TLF.fd) = 2024
Provides:	tex(OT1fbb-TOsF.fd) = 2024
Provides:	tex(T1fbb-Inf.fd) = 2024
Provides:	tex(T1fbb-LF.fd) = 2024
Provides:	tex(T1fbb-OsF.fd) = 2024
Provides:	tex(T1fbb-Sup.fd) = 2024
Provides:	tex(T1fbb-TLF.fd) = 2024
Provides:	tex(T1fbb-TOsF.fd) = 2024
Provides:	tex(TS1fbb-LF.fd) = 2024
Provides:	tex(TS1fbb-OsF.fd) = 2024
Provides:	tex(TS1fbb-TLF.fd) = 2024
Provides:	tex(TS1fbb-TOsF.fd) = 2024
BuildArch:	noarch

%description
The package provides a Bembo-like font package based on Cardo
but with many modifications, adding Bold Italic, small caps in
all styles, six figure choices in all styles, updated kerning
tables, added figure tables and corrected f-ligatures. Both
OpenType and Adobe Type 1 versions are provided; all necessary
support files are provided. The font works well with
newtxmath's libertine option.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/fbb/
%{_texmfdistdir}/fonts/map/dvips/fbb/
%{_texmfdistdir}/fonts/opentype/public/fbb/
%{_texmfdistdir}/fonts/tfm/public/fbb/
%{_texmfdistdir}/fonts/type1/public/fbb/
%{_texmfdistdir}/fonts/vf/public/fbb/
%{_texmfdistdir}/tex/latex/fbb/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9786 |21cr|texlive-fbox-62126-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fbox

Summary:	Extended \fbox macro from standard LaTeX
Name:		texlive-fbox
Version:	62126
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fbox.sty) = 2024
BuildArch:	noarch

%description
This package redefines \fbox to allow an optional argument for
different frames. It can be any combination of l)eft, r)ight,
t)op, and b)ottom, for example: \fbox[lt]{foo}. Using uppercase
letters or a combination of lowercase and uppercase is also
possible.

%files
%doc %{_texmfdistdir}/doc/latex/fbox
%{_texmfdistdir}/tex/latex/fbox

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9787 |21cr|texlive-fbs-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fbs
Version:	20190228
Release:	1
Summary:	BibTeX style for Frontiers in Bioscience
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/misc/fbs.bst
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fbs.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A BibTeX style file made with custom-bib to fit Frontiers in
Bioscience requirements: - all authors, no et al, full author
names, initials abbreviated; - only abbreviated journal name
italicised, no abbreviation dots; - only year, no month, at end
of reference; and - DOI excluded, ISSN excluded.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/fbs

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9788 |21cr|texlive-fcavtex-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# r38074

Name:          texlive-fcavtex
Version:       1.1
Release:       2
Summary:       A thesis class for the FCAV/UNESP (Brazil)
Group:         Publishing
URL:           https://ctan.org/tex-archive/macros/latex/contrib/fcavtex
License:       LPPL1
Source0:       http://mirrors.ctan.org/systems/texlive/tlnet/archive/fcavtex.tar.xz
Source1:       http://mirrors.ctan.org/systems/texlive/tlnet/archive/fcavtex.doc.tar.xz
BuildArch:     noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg

%description
This package provides a class and a bibliography style for the FCAV-
UNESP (Faculdade de Ciências Agrárias e Veterinárias de
Jaboticabal UNESP) brazilian university, written based on the
institution rules for thesis publications.

%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/bibtex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9789 |21cr|texlive-fcolumn-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fcolumn
Version:	2.7
Release:	1
Summary:	Typesetting financial tables
Group:		Publishing
URL:		https://ctan.org/pkg/fcolumn
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fcolumn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fcolumn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
In financial reports, text and currency amounts are regularly
put in one table, e.g., a year balance or a profit-and-loss
overview. This package provides the settings for automatically
typesetting such columns, including the sum line (preceded by a
rule of the correct width) using the specifier "f".


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9790 |21cr|texlive-fdsymbol-0.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26722
# category Package
# catalog-ctan /fonts/fdsymbol
# catalog-date 2012-05-29 12:56:38 +0200
# catalog-license ofl
# catalog-version 0.8
Name:		texlive-fdsymbol
Version:	0.8
Release:	10
Summary:	A maths symbol font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/fdsymbol
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fdsymbol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fdsymbol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fdsymbol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
FdSymbol is a maths symbol font, designed as a companion to the
Fedra family by Typotheque, but it might also fit other
contemporary typefaces.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/fdsymbol/fdsymbol-a.enc
%{_texmfdistdir}/fonts/enc/dvips/fdsymbol/fdsymbol-b.enc
%{_texmfdistdir}/fonts/enc/dvips/fdsymbol/fdsymbol-c.enc
%{_texmfdistdir}/fonts/enc/dvips/fdsymbol/fdsymbol-d.enc
%{_texmfdistdir}/fonts/enc/dvips/fdsymbol/fdsymbol-e.enc
%{_texmfdistdir}/fonts/enc/dvips/fdsymbol/fdsymbol-f.enc
%{_texmfdistdir}/fonts/map/dvips/fdsymbol/fdsymbol.map
%{_texmfdistdir}/fonts/opentype/public/fdsymbol/FdSymbol-Bold.otf
%{_texmfdistdir}/fonts/opentype/public/fdsymbol/FdSymbol-Book.otf
%{_texmfdistdir}/fonts/opentype/public/fdsymbol/FdSymbol-Medium.otf
%{_texmfdistdir}/fonts/opentype/public/fdsymbol/FdSymbol-Regular.otf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolA-Bold.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolA-Book.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolA-Medium.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolA-Regular.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolA.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolB-Bold.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolB-Book.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolB-Medium.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolB-Regular.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolB.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolC-Bold.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolC-Book.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolC-Medium.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolC-Regular.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolC.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolD-Bold.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolD-Book.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolD-Medium.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolD-Regular.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolD.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolE-Bold.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolE-Book.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolE-Medium.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolE-Regular.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolE.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolF-Bold.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolF-Book.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolF-Medium.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolF-Regular.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/FdSymbolF.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/fdaccents.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/fdarrows.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/fdbase.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/fddelims.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/fdgeometric.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/fdoperators.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/fdrelations.mf
%{_texmfdistdir}/fonts/source/public/fdsymbol/fdturnstile.mf
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolA-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolA-Book.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolA-Medium.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolA-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolB-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolB-Book.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolB-Medium.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolB-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolC-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolC-Book.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolC-Medium.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolC-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolD-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolD-Book.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolD-Medium.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolD-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolE-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolE-Book.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolE-Medium.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolE-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolF-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolF-Book.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolF-Medium.tfm
%{_texmfdistdir}/fonts/tfm/public/fdsymbol/FdSymbolF-Regular.tfm
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolA-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolA-Book.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolA-Medium.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolA-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolB-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolB-Book.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolB-Medium.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolB-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolC-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolC-Book.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolC-Medium.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolC-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolD-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolD-Book.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolD-Medium.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolD-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolE-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolE-Book.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolE-Medium.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolE-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolF-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolF-Book.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolF-Medium.pfb
%{_texmfdistdir}/fonts/type1/public/fdsymbol/FdSymbolF-Regular.pfb
%{_texmfdistdir}/tex/latex/fdsymbol/fdsymbol.sty
%doc %{_texmfdistdir}/doc/fonts/fdsymbol/FONTLOG.txt
%doc %{_texmfdistdir}/doc/fonts/fdsymbol/OFL.txt
%doc %{_texmfdistdir}/doc/latex/fdsymbol/fdsymbol.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fdsymbol/fdsymbol.dtx
%doc %{_texmfdistdir}/source/latex/fdsymbol/fdsymbol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9791 |21cr|texlive-fduthesis-66188-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fduthesis

Summary:	LaTeX thesis template for Fudan University
Name:		texlive-fduthesis
Version:	66188
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fdudoc.cls) = 2024
Provides:	tex(fdulogo.sty) = 2024
Provides:	tex(fduthesis.cls) = 2024
Provides:	tex(fduthesis.def) = 2024
Provides:	tex(fduthesis-en.cls) = 2024
BuildArch:	noarch

%description
This package is a LaTeX thesis template package for Fudan
University. It can make it easy to write theses both in Chinese
and English.

%files
%doc %{_texmfdistdir}/doc/latex/fduthesis/
%{_texmfdistdir}/tex/latex/fduthesis/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9792 |21cr|texlive-fei-4.10.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: texlive-fei
Version: 4.10.3
Release: 1
Summary: Class for academic works at FEI University Center — Brazil
Group: Publishing
URL: https://ctan.org/tex-archive/macros/latex/contrib/fei
License: LPPL1
Source0: http://mirrors.ctan.org/systems/texlive/tlnet/archive/fei.tar.xz
Source1: http://mirrors.ctan.org/systems/texlive/tlnet/archive/fei.doc.tar.xz
BuildArch: noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg

%description
fei is a class created by graduate students and LATEX enthusiasts that allows 
students from FEI University Center to create their academic works, be it a 
monograph, masters dissertation or phd thesis, under the typographic rules of the 
institution. The class makes it possible to create a full academic work, supporting 
functionalities such as cover, title page, catalog entry, dedication, summary, lists 
of figures, tables, algorithms, acronyms and symbols, multiple authors, index, 
references, appendices and attachments. fei is loosely based in the Brazilian National 
Standards Organization (Associação Brasileira de Normas Técnicas, ABNT) standards for the 
creation of academic works, such as ABNT NBR 10520:2002 (Citations) and ABNT NBR
6023:2002 (Bibliographic References).

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9793 |21cr|texlive-fenetrecas-66611-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fenetrecas

Summary:	Commands for CAS-like windows (Xcas or Geogebra) in TikZ
Name:		texlive-fenetrecas
Version:	66611
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(FenetreCas.sty) = 2024
BuildArch:	noarch

%description
This package provides some commands (in French) to display,
with TikZ, windows like Xcas or Geogebra :
\begin{CalculFormelGeogebra} and \LigneCalculsGeogebra ;
\begin{CalculFormelXcas} and \LigneCalculsXcas.

%files
%doc %{_texmfdistdir}/doc/latex/fenetrecas
%{_texmfdistdir}/tex/latex/fenetrecas

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9794 |21cr|texlive-fenixpar-0.92-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24730
# category Package
# catalog-ctan /macros/generic/fenixpar
# catalog-date 2011-11-18 23:08:42 +0100
# catalog-license lppl
# catalog-version 0.92
Name:		texlive-fenixpar
Version:	0.92
Release:	8
Summary:	One-shot changes to token registers such as \everypar
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/fenixpar
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fenixpar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fenixpar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides two packages, fenxitok and fenixpar. The
fenixtok package provides user macros to add material to a
token register; the material will be (automatically) removed
from the token register when the register is executed. Material
may be added either to the left or to the right, and care is
taken not to override any redefinition that may be included in
the token register itself. The fenixpar package uses the macros
of fenixtok to provide a user interface to manipulation of the
\everypar token register. The packages require the e-TeX
extensions; with them, they work either with Plain TeX or with
LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/fenixpar/fenixpar.sty
%{_texmfdistdir}/tex/generic/fenixpar/fenixtok.sty
%doc %{_texmfdistdir}/doc/generic/fenixpar/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9795 |21cr|texlive-fewerfloatpages-58058-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fewerfloatpages

Summary:	Reduce the number of unnecessary float pages
Name:		texlive-fewerfloatpages
Version:	58058
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fewerfloatpages.sty) = 2024
BuildArch:	noarch

%description
This package implements a float algorithm extension for
handling float pages. It attempts to reduce the number of
unnecessary (fairly empty) float pages while making sure that
floats nevertheless stay close to their call-outs. Several
aspects of the algorithm behavior are adjustable.

%files
%doc %{_texmfdistdir}/doc/latex/fewerfloatpages
%{_texmfdistdir}/tex/latex/fewerfloatpages

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9796 |21cr|texlive-feyn-0.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-feyn
Version:	0.4.1
Release:	2
Summary:	A font for in-text Feynman diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/feyn
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feyn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feyn.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feyn.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Feyn may be used to produce relatively simple Feynman diagrams
within equations in a LaTeX document. While the feynmf package
is good at drawing large diagrams for figures, the present
package and its fonts allow diagrams within equations or text,
at a matching size. The fonts are distributed as MetaFont
source, and macros for their use are also provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/feyn
%{_texmfdistdir}/fonts/tfm/public/feyn
%{_texmfdistdir}/tex/latex/feyn
%doc %{_texmfdistdir}/doc/fonts/feyn
#- source
%doc %{_texmfdistdir}/source/fonts/feyn

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9797 |21cr|texlive-ffcode-65170-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ffcode

Summary:	Fixed-font code blocks formatted nicely
Name:		texlive-ffcode
Version:	65170
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(environ.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(microtype.sty)
#Requires:	tex(minted.sty)
#Requires:	tex(pgf.sty)
#Requires:	tex(tcolorbox.sty)
Provides:	tex(ffcode.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package helps you write source code in your academic
papers and make it looks neat. It uses minted and tcolorbox,
configuring them the right way, to ensure that code fragments
and code blocks look nicer.

%files
%doc %{_texmfdistdir}/doc/latex/ffcode
%{_texmfdistdir}/tex/latex/ffcode

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9798 |21cr|texlive-fge-1.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24732
# category Package
# catalog-ctan /fonts/fge
# catalog-date 2011-11-18 06:50:27 +0100
# catalog-license lppl
# catalog-version 1.24
Name:		texlive-fge
Version:	1.25
Release:	2
Summary:	A font for Frege's Grundgesetze der Arithmetik
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/fge
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fge.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fge.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fge.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts are provided as Metafont source and Adobe Type 1
(pfb) files. A small LaTeX package (fge) is included.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/fge/fge.map
%{_texmfdistdir}/fonts/source/public/fge/fgebase.mf
%{_texmfdistdir}/fonts/source/public/fge/fgeit.mf
%{_texmfdistdir}/fonts/source/public/fge/fgeit10.mf
%{_texmfdistdir}/fonts/source/public/fge/fgerm.mf
%{_texmfdistdir}/fonts/source/public/fge/fgerm10.mf
%{_texmfdistdir}/fonts/tfm/public/fge/fgeit10.tfm
%{_texmfdistdir}/fonts/tfm/public/fge/fgerm10.tfm
%{_texmfdistdir}/fonts/type1/public/fge/fgeit10.pfb
%{_texmfdistdir}/fonts/type1/public/fge/fgerm10.pfb
%{_texmfdistdir}/tex/latex/fge/Ufgeit.fd
%{_texmfdistdir}/tex/latex/fge/Ufgerm.fd
%{_texmfdistdir}/tex/latex/fge/fge.cfg
%{_texmfdistdir}/tex/latex/fge/fge.sty
%doc %{_texmfdistdir}/doc/fonts/fge/README
%doc %{_texmfdistdir}/doc/fonts/fge/fge-doc.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/fge/fge.dtx
%doc %{_texmfdistdir}/source/fonts/fge/fge.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9799 |21cr|texlive-fgruler-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fgruler
Version:	1.5
Release:	1
Summary:	Package for drawing rulers on the foreground or in the text
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/fgruler
License:	The LATEX Project Public License 1.3
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/fgruler.source.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/fgruler.tar.xz
Source2:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/fgruler.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-fgruler.bin = %{EVRD}

%description
This package draws horizontal and vertical rulers on the foreground of every
(or the current) page at absolute positions. In this way, you can check the
page layout dimensions. You can also draw various rulers in the text. God, help me.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fgruler/fgruler.sty
%doc %{_texmfdistdir}/source/latex/fgruler/fgruler.dtx
%doc %{_texmfdistdir}/source/latex/fgruler/fgruler.ins
%doc %{_texmfdistdir}/doc/latex/fgruler/README
%doc %{_texmfdistdir}/doc/latex/fgruler/fgruler.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9800 |21cr|texlive-fifo-stack-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fifo-stack
Version:	1.0
Release:	1
Summary:	FIFO and stack implementation for package writers
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/fifo-stack
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fifo-stack.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fifo-stack.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fifo-stack.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package renames the original’s \Push and \Pop commands \FSPush and \FSPop,
and which work on the top/end of the FIFO/Stack), and adds the ability
to \FSUnshift and \FSShift from the bottom (front) of the FIFO/Stack.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fifo-stack/fifo-stack.sty
%doc %{_texmfdistdir}/doc/latex/fifo-stack/README
%doc %{_texmfdistdir}/doc/latex/fifo-stack/fifo-stack-test.tex
%doc %{_texmfdistdir}/doc/latex/fifo-stack/fifo-stack.cwl
%doc %{_texmfdistdir}/doc/latex/fifo-stack/fifo-stack.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fifo-stack/fifo-stack.dtx
%doc %{_texmfdistdir}/source/latex/fifo-stack/fifo-stack.ins


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9801 |21cr|texlive-figbib-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-figbib
Version:	20190228
Release:	1
Summary:	Organize figure databases with BibTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/figbib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/figbib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/figbib.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
FigBib lets you organize your figures in BibTeX databases. Some
FigBib features are: - Store and manage figures in a BibTeX
database; - Include figures in your LaTeX document with one
short command; - Generate a List of Figures containing
more/other information than the figure captions; - Control with
one switch where to output the figures, either as usual float
objects or in a separate part at the end of your document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/figbib
%{_texmfdistdir}/tex/latex/figbib
%doc %{_texmfdistdir}/doc/latex/figbib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9802 |21cr|texlive-figchild-62945-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname figchild

Summary:	Pictures for creating children's activities
Name:		texlive-figchild
Version:	62945
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(figchild.sty) = 2024
BuildArch:	noarch

%description
This package was created with the aim of facilitating the work
of Elementary School teachers who need to create colorful and
attractive activities for their students. It is a product of
the Computational Mathematics discipline offered at the Federal
University of Vicosa -- Campus UFV -- Florestal by professor
Fernando de Souza Bastos. It makes use of the TikZ and xcolor
packages.

%files
%doc %{_texmfdistdir}/doc/latex/figchild
%{_texmfdistdir}/tex/latex/figchild

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9803 |21cr|texlive-figflow-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21462
# category Package
# catalog-ctan /macros/plain/contrib/figflow
# catalog-date 2011-02-18 10:42:52 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-figflow
Version:	20190228
Release:	1
Summary:	Flow text around a figure
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/figflow
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/figflow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/figflow.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a Plain TeX macro \figflow that allows one to insert a
figure into an area inset into a paragraph. Command arguments
are width and height of the figure, and the figure (and its
caption) itself. Usage details are to be found in the TeX file
itself. The package does not work with LaTeX; packages such as
wrapfig, floatflt and picins support the needs of LaTeX users
in this area.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/figflow/figflow.tex
%doc %{_texmfdistdir}/doc/plain/figflow/README.figflow

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9804 |21cr|texlive-figput-63957-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname figput

Summary:	Create interactive figures in LaTeX
Name:		texlive-figput
Version:	63957
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(figput.sty) = 2024
BuildArch:	noarch

%description
FigPut allows figures to be specified using JavaScript. The
resulting document can be viewed as a static PDF, as usual, or
the document can be viewed in a web-browser, in which case the
figures are interactive. A variety of interactive widgets are
included.

%files
%doc %{_texmfdistdir}/doc/latex/figput
%{_texmfdistdir}/tex/latex/figput

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9805 |21cr|texlive-findhyph-3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30915
# category Package
# catalog-ctan /support/findhyph
# catalog-date 2013-06-21 02:36:55 +0200
# catalog-license gpl
# catalog-version 3.3
Name:		texlive-findhyph
Version:	3.4
Release:	2
Summary:	Find hyphenated words in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/findhyph
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/findhyph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/findhyph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-findhyph.bin = %{EVRD}

%description
Findhyph is a Perl script that will analyse the log file from
running your document with \tracingparagraphs=1 set. The output
contains enough context to enable you to find the hyphenated
word that's being referenced.

#-----------------------------------------------------------------------
%files
%{_bindir}/findhyph
%{_texmfdistdir}/scripts/findhyph/findhyph
%doc %{_mandir}/man1/findhyph.1*
%doc %{_texmfdistdir}/doc/man/man1/findhyph.man1.pdf
%doc %{_texmfdistdir}/doc/support/findhyph/Makefile.doc
%doc %{_texmfdistdir}/doc/support/findhyph/README
%doc %{_texmfdistdir}/doc/support/findhyph/findhyph.bat
%doc %{_texmfdistdir}/doc/support/findhyph/findhyph.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/findhyph/findhyph findhyph
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9806 |21cr|texlive-fira-4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fira
Version:	4.3
Release:	2
Summary:	TeXLive fira package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fira.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fira.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX 
and LuaLaTeX support for the Fira Sans family 
of fonts designed by Erik Spiekermann and Ralph 
du Carrois of Carrois Type Design. Fira Sans 
is available in eleven weights with corresponding 
italics: light, regular, medium, bold, ...

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%{_texmfdistdir}/fonts/*
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9807 |21cr|texlive-firamath-0.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-firamath
Version:	0.3.3
Release:	2
Epoch:		1
Summary:	TeXLive firamath package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/firamath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/firamath.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Fira Math is a sans-serif font with Unicode 
math support. The design of this font is 
based on Fira Sans and FiraGO. Fira Math is 
distributed in OpenType format and can be 
used with the unicode-math package under 
XeLaTeX or LuaLaTeX. More support is offered 
by the firamath-otf package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9808 |21cr|texlive-firamath-otf-0.02a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-firamath-otf
Version:	0.02a
Release:	1
Summary:	Use OpenType math font Fira Math
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/firamath-otf
License:	lppl1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/firamath-otf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/firamath-otf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers XETEX/LuaTEX support for the Sans Serif OpenType Fira Math Font.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/firamath-otf
%doc %{_texmfdistdir}/doc/fonts/firamath-otf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9809 |21cr|texlive-firstaid-64892-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname firstaid

Summary:	First aid for external LaTeX files and packages that need updating
Name:		texlive-firstaid
Version:	64892
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(everysel-ltx.sty) = 2024
Provides:	tex(filehook-ltx.sty) = 2024
BuildArch:	noarch

%description
This package contains some first aid for LaTeX packages or
classes that require updates because of internal changes to the
LaTeX kernel that are not yet reflected in the package's or
class's code. The file latex2e-first-aid-for-external-files.ltx
provided by this package is meant to be loaded during format
generation and not by the user.

%files
%doc %{_texmfdistdir}/doc/latex/firstaid
%{_texmfdistdir}/tex/latex/firstaid

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9810 |21cr|texlive-fistrum-66461-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fistrum

Summary:	Access to 150 paragraphs of Lorem Fistrum very dummy text
Name:		texlive-fistrum
Version:	66461
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fistrum.sty) = 2024
BuildArch:	noarch

%description
Fistrum is a LaTeX package forked from lipsum that produces
dummy text for use in documents and examples. The paragraphs
were taken with permission from https://www.chiquitoipsum.com/.
Fistrum es un paquete de LaTeX derivado de lipsum que produce
texto de ejemplo para usarlo en documentos y ejemplos. Los
parrafos se han tomado con permiso de
https://www.chiquitoipsum.com/.

%files
%doc %{_texmfdistdir}/doc/latex/fistrum
%{_texmfdistdir}/tex/latex/fistrum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9811 |21cr|texlive-fixdif-66606-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fixdif

Summary:	Macros for typesetting differential operators
Name:		texlive-fixdif
Version:	66606
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fixdif.sty) = 2024
BuildArch:	noarch

%description
This package redefines the \d command in LaTeX and provides an
interface to define new commands for differential operators. It
is compatible with pdfTeX, XeTeX and LuaTeX, and can also be
used with the unicode-math package.

%files
%doc %{_texmfdistdir}/doc/latex/fixdif
%{_texmfdistdir}/tex/latex/fixdif

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9812 |21cr|texlive-fixmath-64648-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fixmath

Summary:	Make maths comply with ISO 31-0:1992 to ISO 31-13:1992
Name:		texlive-fixmath
Version:	64648
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fixmath.sty) = 2024
BuildArch:	noarch

%description
LaTeX's default style of typesetting mathematics does not
comply with the International Standards ISO 31-0:1992 to ISO
31-13:1992 which require that uppercase Greek letters always be
typset upright, as opposed to italic (even though they usually
represent variables) and allow for typsetting of variables in a
boldface italic style (even though the required fonts are
available). This package ensures that uppercase Greek be
typeset in italic style, that upright $\Delta$ and $\Omega$
symbols are available through the commands \upDelta and
\upOmega; and provides a new math alphabet \mathbold for
boldface italic letters, including Greek. This package used to
be part of the was bundle, but has now become a package in its
own right.

%files
%doc %{_texmfdistdir}/doc/latex/fixmath
%{_texmfdistdir}/tex/latex/fixmath

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9813 |21cr|texlive-fixpdfmag-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/misc/fixpdfmag.tex
# catalog-date 2009-09-17 21:16:39 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-fixpdfmag
Version:	20190228
Release:	1
Summary:	Fix magnification in PDFTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/misc/fixpdfmag.tex
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixpdfmag.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A recent change to PDFTeX has caused magnification to apply to
page dimensions. This small package changes the values set in
the page dimension variables from pt to truept, thus evading
the effects of \mag.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/fixpdfmag/fixpdfmag.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9814 |21cr|texlive-fiziko-61944-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fiziko

Summary:	A MetaPost library for physics textbook illustrations
Name:		texlive-fiziko
Version:	61944
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fiziko.mp) = 2024
BuildArch:	noarch

%description
This MetaPost library was initially written to automate some
elements of black and white illustrations for a physics
textbook. It provides functions to draw things like lines of
variable width, shaded spheres, and tubes of different kinds,
which can be used to produce images of a variety of objects.
The library also contains functions to draw some objects
constructed from these primitives.

%files
%doc %{_texmfdistdir}/doc/metapost/fiziko
%{_texmfdistdir}/metapost/fiziko

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9815 |21cr|texlive-flexipage-64572-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname flexipage

Summary:	Flexible page geometry with marginalia
Name:		texlive-flexipage
Version:	64572
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(flexipage.sty) = 2024
BuildArch:	noarch

%description
The package flexipage allows easy page layout if marginalia is
required. Mid document changes are possible such as: new
marginal width, full width text, and landscape text without
marginal. Partners well with the package sidenotesplus. The
package also aids the layout for book printing, allowing for
binding corrections and adding page bleed, if required.

%files
%doc %{_texmfdistdir}/doc/latex/flexipage
%{_texmfdistdir}/tex/latex/flexipage

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9816 |21cr|texlive-fltpoint-1.1b-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/fltpoint
# catalog-date 2008-04-20 19:53:04 +0200
# catalog-license other-free
# catalog-version 1.1b
Name:		texlive-fltpoint
Version:	1.1b
Release:	8
Summary:	Simple floating point arithmetic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fltpoint
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fltpoint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fltpoint.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fltpoint.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides simple floating point operations
(addition, subtraction, multiplication, division and rounding).
Used, for example, by rccol.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/fltpoint/deccomma.sty
%{_texmfdistdir}/tex/generic/fltpoint/fltpoint.sty
%{_texmfdistdir}/tex/generic/fltpoint/fltpoint.tex
%doc %{_texmfdistdir}/doc/generic/fltpoint/README
%doc %{_texmfdistdir}/doc/generic/fltpoint/fltpoint.pdf
#- source
%doc %{_texmfdistdir}/source/generic/fltpoint/fltpoint.dtx
%doc %{_texmfdistdir}/source/generic/fltpoint/fltpoint.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9817 |21cr|texlive-fnspe-1.2a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fnspe
Version:	1.2a
Release:	1
Summary:	This package enables LATEX users to create math books for middle and high schools
Group:		Publishing
URL:		https://ctan.org/pkg/fnspe
License:	The LATEX Project Public License
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnspe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnspe.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements different standards of tensor notation, 
interval notation and complex notation. Further many macros and 
shortcuts are added, e.q. for spaces, operators, physics unit, etc.

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/fnspe
%doc /usr/share/texmf-dist/doc/latex/fnspe

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc %{buildroot}/usr/share/texmf-dist


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9818 |21cr|texlive-fntproof-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20638
# category Package
# catalog-ctan /macros/generic/fntproof
# catalog-date 2010-12-01 01:24:27 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-fntproof
Version:	20190228
Release:	1
Summary:	A programmable font test pattern generator
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/fntproof
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fntproof.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fntproof.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package implements all the font testing commands of Knuth's
testfont.tex, but arranges that information necessary for each
command is supplied as arguments to that command, rather than
prompted for. This makes it possible to type all the tests in
one command line, and easy to input the package in a file and
to use the commands there. A few additional commands supporting
this last purpose are also made available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/fntproof/fntproof.tex
%doc %{_texmfdistdir}/doc/generic/fntproof/README
%doc %{_texmfdistdir}/doc/generic/fntproof/fntproof-doc.pdf
%doc %{_texmfdistdir}/doc/generic/fntproof/fntproof-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9819 |21cr|texlive-foekfont-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/foekfont
# catalog-date 2007-02-27 14:19:10 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-foekfont
Version:	20190228
Release:	1
Summary:	The title font of the Mads Fok magazine
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/foekfont
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/foekfont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/foekfont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides an Adobe Type 1 font, and LaTeX support for
its use. The magazine web site shows the font in use in a few
places.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/foekfont/foekfont.map
%{_texmfdistdir}/fonts/tfm/public/foekfont/foekfont.tfm
%{_texmfdistdir}/fonts/type1/public/foekfont/FoekFont.pfb
%{_texmfdistdir}/tex/latex/foekfont/foekfont.sty
%{_texmfdistdir}/tex/latex/foekfont/ot1foekfont.fd
%{_texmfdistdir}/tex/latex/foekfont/t1foekfont.fd
%doc %{_texmfdistdir}/doc/latex/foekfont/FoekFont.sfd
%doc %{_texmfdistdir}/doc/latex/foekfont/README
%doc %{_texmfdistdir}/doc/latex/foekfont/foekfont.pdf
%doc %{_texmfdistdir}/doc/latex/foekfont/foekfont.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9820 |21cr|texlive-foliono-58877-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname foliono

Summary:	Use folio numbers to replace page numbers
Name:		texlive-foliono
Version:	58877
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(foliono.sty) = 2024
BuildArch:	noarch

%description
This package adds functionality to create several styles of
folio numbers. Folio numbering preceded the modern page
numbering convention and was in common use until the 18th
century. In folio numbering the numbers are placed only on odd
(right-side) pages and the numbers typically comprise of two
parts: quire and folio numbers. The intended use for this
package is to help creating old-style books.

%files
%doc %{_texmfdistdir}/doc/latex/foliono
%{_texmfdistdir}/tex/latex/foliono

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9821 |21cr|texlive-fonetika-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21326
# category Package
# catalog-ctan /fonts/fonetika
# catalog-date 2008-08-19 20:38:14 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-fonetika
Version:	20190228
Release:	1
Summary:	Support for the danish "Dania" phonetic system
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/fonetika
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fonetika.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fonetika.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Fonetika Dania is a font bundle with a serif font and a sans
serif font for the danish phonetic system Dania. Both fonts
exist in regular and bold weights. LaTeX support is provided.
The fonts are based on URW Palladio and Iwona Condensed, and
were created using FontForge.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/fonetika/FonetikaDaniaIwonaeBold.afm
%{_texmfdistdir}/fonts/afm/public/fonetika/FonetikaDaniaIwonaeRegular.afm
%{_texmfdistdir}/fonts/afm/public/fonetika/FonetikaDaniaPallaeBold.afm
%{_texmfdistdir}/fonts/afm/public/fonetika/FonetikaDaniaPallaeRegular.afm
%{_texmfdistdir}/fonts/map/dvips/fonetika/fonetika.map
%{_texmfdistdir}/fonts/tfm/public/fonetika/fonetika.tfm
%{_texmfdistdir}/fonts/tfm/public/fonetika/fonetikabold.tfm
%{_texmfdistdir}/fonts/tfm/public/fonetika/fonetikasans.tfm
%{_texmfdistdir}/fonts/tfm/public/fonetika/fonetikasansbold.tfm
%{_texmfdistdir}/fonts/truetype/public/fonetika/FonetikaDaniaIwonaeBold.ttf
%{_texmfdistdir}/fonts/truetype/public/fonetika/FonetikaDaniaIwonaeRegular.ttf
%{_texmfdistdir}/fonts/truetype/public/fonetika/FonetikaDaniaPallaeBold.ttf
%{_texmfdistdir}/fonts/truetype/public/fonetika/FonetikaDaniaPallaeRegular.ttf
%{_texmfdistdir}/fonts/type1/public/fonetika/FonetikaDaniaIwonaeBold.pfb
%{_texmfdistdir}/fonts/type1/public/fonetika/FonetikaDaniaIwonaeRegular.pfb
%{_texmfdistdir}/fonts/type1/public/fonetika/FonetikaDaniaPallaeBold.pfb
%{_texmfdistdir}/fonts/type1/public/fonetika/FonetikaDaniaPallaeRegular.pfb
%{_texmfdistdir}/tex/latex/fonetika/fonetika.sty
%{_texmfdistdir}/tex/latex/fonetika/t1fonetika.fd
%doc %{_texmfdistdir}/doc/fonts/fonetika/README
%doc %{_texmfdistdir}/doc/fonts/fonetika/fonetika.pdf
%doc %{_texmfdistdir}/doc/fonts/fonetika/fonetika.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9822 |21cr|texlive-fontawesome-20170418-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fontawesome
Version:	20170418
Release:	1
Summary:	Font containing web-related icons
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fontawesome
License:	LPPL1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/fontawesome.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/fontawesome.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers access to the large number of web-related
icons provided by the included font. The package requires the
package, fontspec, if run with XeTeX or LuaTeX.


%files
%{_texmfdistdir}/tex
%{_texmfdistdir}/fonts
%doc %{_texmfdistdir}/doc

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9823 |21cr|texlive-fontawesome5-63207-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fontawesome5

Summary:	Font Awesome 5 with with LaTeX support
Name:		texlive-fontawesome5
Version:	63207
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fa5brands0.enc) = 2024
Provides:	tex(fa5brands1.enc) = 2024
Provides:	tex(fa5free0.enc) = 2024
Provides:	tex(fa5free1.enc) = 2024
Provides:	tex(fa5free2.enc) = 2024
Provides:	tex(fa5free3.enc) = 2024
Provides:	tex(fontawesome5-generic-helper.sty) = 2024
Provides:	tex(fontawesome5.map) = 2024
Provides:	tex(fontawesome5-mapping.def) = 2024
Provides:	tex(fontawesome5.sty) = 2024
Provides:	tex(fontawesome5-utex-helper.sty) = 2024
Provides:	tex(tufontawesomebrands.fd) = 2024
Provides:	tex(tufontawesomefree.fd) = 2024
Provides:	tex(tufontawesomepro.fd) = 2024
Provides:	tex(ufontawesomebrands0.fd) = 2024
Provides:	tex(ufontawesomebrands1.fd) = 2024
Provides:	tex(ufontawesomefree0.fd) = 2024
Provides:	tex(ufontawesomefree1.fd) = 2024
Provides:	tex(ufontawesomefree2.fd) = 2024
Provides:	tex(ufontawesomefree3.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX support for the included "Font
Awesome 5 Free" icon set. These icons were designed by Fort
Awesome and released under the SIL OFL 1.1 license. The
commercial "Pro" version is also supported, if it is installed
and XeLaTeX or LuaLaTeX is used.

%files
%doc %{_texmfdistdir}/doc/fonts/fontawesome5/
%{_texmfdistdir}/fonts/enc/dvips/fontawesome5/
%{_texmfdistdir}/fonts/map/dvips/fontawesome5/
%{_texmfdistdir}/fonts/opentype/public/fontawesome5/
%{_texmfdistdir}/fonts/tfm/public/fontawesome5/
%{_texmfdistdir}/fonts/type1/public/fontawesome5/
%{_texmfdistdir}/tex/latex/fontawesome5/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9824 |21cr|texlive-fontch-2.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17859
# category Package
# catalog-ctan /macros/plain/contrib/fontch
# catalog-date 2010-04-13 09:02:45 +0200
# catalog-license lppl
# catalog-version 2.2
Name:		texlive-fontch
Version:	2.2
Release:	8
Summary:	Changing fonts, sizes and encodings in Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/fontch
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontch.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fontch macros allow the user to change font size and family
anywhere in a plain TeX document. Sizes of 8, 10, 12, 14, 20
and 24 points are available. A sans serif family (\sf) is
defined in addition to the families already defined in plain
TeX. Optional support for Latin Modern T1 and TS1 fonts is
given. There are macros for non-latin1 letters and for most TS1
symbols. Math mode always uses CM fonts. A command for
producing doubled-spaced documents is also provided. The
present version of the package is designed to deal with the
latest release of the Latin Modern fonts version 1.106.
Unfortunately, it can no longer support earlier versions of the
fonts, so an obsolete version of the package is retained for
users who don't yet have access to the latest version of the
fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/fontch/DSmac.tex
%{_texmfdistdir}/tex/plain/fontch/TS1mac.tex
%{_texmfdistdir}/tex/plain/fontch/bsymbols.tex
%{_texmfdistdir}/tex/plain/fontch/fontch.tex
%{_texmfdistdir}/tex/plain/fontch/fontch_doc.tex
%doc %{_texmfdistdir}/doc/plain/fontch/README
%doc %{_texmfdistdir}/doc/plain/fontch/fontch.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9825 |21cr|texlive-font-change-2015.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-font-change
Version:	2015.2
Release:	2
Summary:	Macros to Change Text and Math fonts in plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/font-change
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/font-change.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/font-change.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Macros to Change Text and Math fonts in TeX: 19 Beautiful
Variants These macros are written for plain TeX and can be used
with other packages like AmSTeX, eplain, etc. They allow you to
change the fonts (text and math) in your TeX document with only
one statement. Also different font sizes are available. All the
fonts called by these macro files are free and are included in
the present MiKTeX and TeX Live distributions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/font-change
%doc %{_texmfdistdir}/doc/plain/font-change

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9826 |21cr|texlive-fontinstallationguide-59755-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fontinstallationguide

Summary:	Font installation guide
Name:		texlive-fontinstallationguide
Version:	59755
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This guide discusses the most common scenarios you are likely
to encounter when installing Type 1 PostScript fonts. While the
individual tools employed in the installation process are
documented well, the actual difficulty most users are facing
when trying to install new fonts is understanding how to put
all the pieces together. This is what this guide is about.

%files
%doc %{_texmfdistdir}/doc/fonts/fontinstallationguide

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9827 |21cr|texlive-fontmfizz-20170418-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fontmfizz
Version:	20170418
Release:	1
Summary:	Font Mfizz icons for use in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/afthesis
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/fontmfizz.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/fontmfizz.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The MFizz font provides scalable vector icons representing
programming languages, operating systems, software engineering,
and technology. It can be seen as an extension to FontAwesome.
This package requires the fontspec package and either the
Xe(La)TeX or Lua(La)TeX engine to load the included ttf font.

%files
%{_texmfdistdir}/tex
%{_texmfdistdir}/fonts
%doc %{_texmfdistdir}/doc

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9828 |21cr|texlive-fonts-churchslavonic-56350-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fonts-churchslavonic

Summary:	Fonts for typesetting in Church Slavonic language
Name:		texlive-fonts-churchslavonic
Version:	56350
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(FedorovskUnicode.otf) = 2024
Provides:	tex(FedorovskUnicode.ttf) = 2024
Provides:	tex-fonts-churchslavonic = 2024
Provides:	tex(MenaionUnicode.otf) = 2024
Provides:	tex(MenaionUnicode.ttf) = 2024
Provides:	tex(PomorskyUnicode.otf) = 2024
Provides:	tex(PomorskyUnicode.ttf) = 2024
Provides:	tex(PonomarUnicode.otf) = 2024
Provides:	tex(PonomarUnicode.ttf) = 2024
BuildArch:	noarch

%description
The package provides Unicode-encoded OpenType fonts for Church
Slavonic.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/fonts-churchslavonic/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9829 |21cr|texlive-fontsetup-65439-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fontsetup

Summary:	A front-end to fontspec, for selected fonts with math support
Name:		texlive-fontsetup
Version:	65439
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fontsetup.sty) = 2024
Provides:	tex(fspconcrete.sty) = 2024
Provides:	tex(fspdefault.sty) = 2024
Provides:	tex(fspebgaramondot.sty) = 2024
Provides:	tex(fspfiraot.sty) = 2024
Provides:	tex(fspgfsartemisiaot.sty) = 2024
Provides:	tex(fspgfsdidotclassicot.sty) = 2024
Provides:	tex(fspgfsdidotot.sty) = 2024
Provides:	tex(fspgfsneohellenicot.sty) = 2024
Provides:	tex(fspkerkisot.sty) = 2024
Provides:	tex(fspneoeulerot.sty) = 2024
Provides:	tex(fspolddefault.sty) = 2024
Provides:	tex(fspoldstandard.sty) = 2024
Provides:	tex(fspstixtwoot.sty) = 2024
Provides:	tex(fsptalos.sty) = 2024
Provides:	tex(fsptimesot.sty) = 2024
Provides:	tex(fspxcharter.sty) = 2024
BuildArch:	noarch

%description
This package facilitates the use of fontspec for users who do
not wish to bother with details, with a special focus on
quality fonts supporting Mathematics.

%files
%doc %{_texmfdistdir}/doc/latex/fontsetup
%{_texmfdistdir}/tex/latex/fontsetup

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9830 |21cr|texlive-fontsize-60161-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fontsize

Summary:	A small package to set arbitrary sizes for the main font of the document
Name:		texlive-fontsize
Version:	60161
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(fontsize.sty) = 2024
BuildArch:	noarch

%description
The package allows you to set arbitrary sizes for the main font
of the document, through the fontsize=<size> option.

%files
%doc %{_texmfdistdir}/doc/latex/fontsize
%{_texmfdistdir}/tex/latex/fontsize

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9831 |21cr|texlive-footbib-2.0.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17115
# category Package
# catalog-ctan /macros/latex/contrib/footbib
# catalog-date 2010-02-20 20:57:03 +0100
# catalog-license lppl
# catalog-version 2.0.7
Name:		texlive-footbib
Version:	2.0.7
Release:	8
Summary:	Bibliographic references as footnotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/footbib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footbib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footbib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footbib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes bibliographic references appear as footnotes.
It defines a command \footcite which is similar to the LaTeX
\cite command but the references cited in this way appear at
the bottom of the pages. This 'foot bibliography' does not
conflict with the standard one and both may exist
simultaneously in a document. The command \cite may still be
used to produce the standard bibliography. The foot
bibliography uses its own style and bibliographic database
which may be specified independently of the standard one. Any
standard bibliography style may be used.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/footbib/footbib.sty
%doc %{_texmfdistdir}/doc/latex/footbib/README
%doc %{_texmfdistdir}/doc/latex/footbib/footbib.pdf
#- source
%doc %{_texmfdistdir}/source/latex/footbib/footbib.dtx
%doc %{_texmfdistdir}/source/latex/footbib/footbib.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9832 |21cr|texlive-footmisx-20161201-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-footmisx
Version:	20161201
Release:	1
Summary:	A range of footnote options
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/footmisx
License:	LPPL 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footmisx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footmisx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footmisx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides means of changing the layout of the footnotes themselves, a way to number
footnotes per page, to make footnotes disappear in a ‘moving’ argument and to deal with multiple
references to footnotes from the same place. The package also has a range of techniques for labelling footnotes with symbols rather than numbers.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/footmisx/footmisx.sty
%doc %{_texmfdistdir}/doc/latex/footmisx/README
#- source
%doc %{_texmfdistdir}/source/latex/footmisx/footmisx.dtx
%doc %{_texmfdistdir}/source/latex/footmisx/footmisx.ins


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9833 |21cr|texlive-footnotehyper-20210813-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-footnotehyper
Version:	20210813
Release:	1
Summary:	Package allows to gather footnotes
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/footnotehyper
License:	LPPL 1.3c
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/footnotehyper.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/footnotehyper.doc.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/footnotehyper.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The `footnote` package by Mark Wooding allows to gather footnotes and later 
insert them at the bottom of the page, even if the intervening material 
consists of tabulars, minipages or framed contents for example. 


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/footnotehyper/footnotehyper.sty
#- docs
%doc %{_texmfdistdir}/doc/latex/footnotehyper/*
#- source
%doc %{_texmfdistdir}/source/latex/footnotehyper/footnotehyper.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9834 |21cr|texlive-formal-grammar-61955-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname formal-grammar

Summary:	Typeset formal grammars
Name:		texlive-formal-grammar
Version:	61955
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(formal-grammar.sty) = 2024
BuildArch:	noarch

%description
This package provides a new environment and associated commands
to typeset BNF grammars. It allows to easily write formal
grammars. Its original motivation was to typeset grammars for
beamer presentations, therefore, there are macros to emphasize
or downplay some parts of the grammar (which is the main
novelty compared to other BNF packages).

%files
%doc %{_texmfdistdir}/doc/latex/formal-grammar
%{_texmfdistdir}/tex/latex/formal-grammar

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9835 |21cr|texlive-formation-latex-ul-56714-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname formation-latex-ul

Summary:	Introductory LaTeX course in French
Name:		texlive-formation-latex-ul
Version:	56714
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	texlive-formation-latex-ul-doc = %{EVRD}
BuildArch:	noarch

%description
This package contains the supporting documentation, slides,
exercise files, and templates for an introductory LaTeX course
(in French) prepared for Universite Laval, Quebec, Canada.

%files
%doc %{_texmfdistdir}/doc/latex/formation-latex-ul/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9836 |21cr|texlive-forms16be-20190320-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-forms16be
Version:	20190320
Release:	1
Summary:	Initialize form properties using big-endian encoding
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/forms16be
License:	LPPL 1.2
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/forms16be.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/forms16be.doc.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/forms16be.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides support for UTF-16BE Unicode character encoding 
(called a big-endian character string) for the text string type (PDF Reference, 
version 1.7, beginning on page 158). Text strings are used in “text annotations, 
bookmark names, article threads, document information, and so forth” (to partially 
quote page 158). The particular application is to set property values of form fields, 
at least those properties that take the text strings as its value.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/forms16be/*
#- docs
%doc %{_texmfdistdir}/doc/latex/forms16be/*
#- source
%doc %{_texmfdistdir}/source/latex/forms16be/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9837 |21cr|texlive-forum-64566-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname forum

Summary:	TeX support for the Forum font
Name:		texlive-forum
Version:	64566
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(forum.map) = 2024
Provides:	tex(forum.sty) = 2024
Provides:	tex(frm_acf3pt.enc) = 2024
Provides:	tex(frm_b5i5mx.enc) = 2024
Provides:	tex(frm_brq6mf.enc) = 2024
Provides:	tex(frm_e2otk2.enc) = 2024
Provides:	tex(frm_fx2ufv.enc) = 2024
Provides:	tex(frm_jsuphk.enc) = 2024
Provides:	tex(frm_smvvub.enc) = 2024
Provides:	tex(frm_ylkcu6.enc) = 2024
Provides:	tex(LY1Frm-LF.fd) = 2024
Provides:	tex(OT1Frm-LF.fd) = 2024
Provides:	tex(T1Frm-LF.fd) = 2024
Provides:	tex(T2AFrm-LF.fd) = 2024
Provides:	tex(T2BFrm-LF.fd) = 2024
Provides:	tex(T2CFrm-LF.fd) = 2024
Provides:	tex(TS1Frm-LF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Forum font, designed by Denis Masharov.
Forum has antique, classic "Roman" proportions. It can
be used to set body texts and works well in titles and
headlines too. It is truly multilingual, with glyphs for
Central and Eastern Europe, Baltics, Cyrillic and Asian
Cyrillic communities. There is currently just a regular
weight and an artificially emboldened bold.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/forum
%{_texmfdistdir}/fonts/map/dvips/forum
%{_texmfdistdir}/fonts/opentype/public/forum
%{_texmfdistdir}/fonts/tfm/public/forum
%{_texmfdistdir}/fonts/type1/public/forum
%{_texmfdistdir}/fonts/vf/public/forum
%{_texmfdistdir}/tex/latex/forum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9838 |21cr|texlive-fourier-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 61937
# category Package
# catalog-ctan /fonts/fourier-GUT
# catalog-date 2008-12-13 14:57:21 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-fourier
Version:	2.3
Release:	1
Summary:	Using Utopia fonts in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/fourier-GUT
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fourier.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fourier.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
Fourier-GUTenberg is a LaTeX typesetting system which uses
Adobe Utopia as its standard base font. Fourier-GUTenberg
provides all complementary typefaces needed to allow Utopia
based TeX typesetting, including an extensive mathematics set
and several other symbols. The system is absolutely stand-
alone: apart from Utopia and Fourier, no other typefaces are
required. The fourier fonts will also work with Adobe Utopia
Expert fonts, which are only available for purchase. Utopia is
a registered trademark of Adobe Systems Incorporated.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-alt-black.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-alt-bold.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-alt-boldita.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-alt-ita.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-alt-semi.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-alt-semiita.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-alt.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-bb.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-mcl.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-mex.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-ml.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-mlb.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-mlit.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-mlitb.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-ms.afm
%{_texmfdistdir}/fonts/afm/public/fourier/fourier-orns.afm
%{_texmfdistdir}/fonts/map/dvips/fourier/fourier-utopia-expert.map
%{_texmfdistdir}/fonts/map/dvips/fourier/fourier.map
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-black.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-bold-sl.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-bold.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-boldita.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-ita.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-semi-sl.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-semi.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-semiita.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt-sl.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-alt.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-bb.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-mcl.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-mex.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-ml.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-mlb.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-mlit.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-mlitb.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-ms.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-orns.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futb8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futb8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futb9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futb9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futb9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbi8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbi9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbi9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbi9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbo8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbo8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbo9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbo9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbo9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futboorn.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futborn.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futc8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futc9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futc9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futc9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futcorn.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futmi.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futmib.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futmii.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futmiib.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futr8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futr8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futr9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futr9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futr9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrc9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrc9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrd8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrd8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futri8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futri8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futri9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futri9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futri9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futro8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futro8t.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futro8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futro9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futro9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futro9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futroorn.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrorn.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futs8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futs8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futs9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futs9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futs9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsc9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsc9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsi8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsi9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsi9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsi9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futso8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futso8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futso9c.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futso9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futso9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsoorn.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsorn.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsy.tfm
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-alt-black.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-alt-bold.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-alt-boldita.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-alt-ita.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-alt-semi.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-alt-semiita.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-alt.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-bb.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-mcl.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-mex.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-ml.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-mlb.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-mlit.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-mlitb.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-ms.pfb
%{_texmfdistdir}/fonts/type1/public/fourier/fourier-orns.pfb
%{_texmfdistdir}/fonts/vf/public/fourier/futb8c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futb8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futb9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futb9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futb9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbc8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbi8c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbi8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbi9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbi9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbi9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbo8c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbo8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbo9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbo9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbo9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futboorn.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futborn.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futc9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futc9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futc9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futcorn.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futmi.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futmib.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futmii.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futmiib.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futr8c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futr8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futr9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futr9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futr9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futrc8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futrc9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futrc9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futrd8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futri8c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futri8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futri9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futri9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futri9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futro8c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futro8t.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futro9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futro9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futro9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futroorn.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futrorn.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futs9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futs9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futs9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsc9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsc9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsi9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsi9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsi9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futso9c.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futso9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futso9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsoorn.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsorn.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsy.vf
%{_texmfdistdir}/tex/latex/fourier/fmlfutm.fd
%{_texmfdistdir}/tex/latex/fourier/fmlfutmi.fd
%{_texmfdistdir}/tex/latex/fourier/fmsfutm.fd
%{_texmfdistdir}/tex/latex/fourier/fmxfutm.fd
%{_texmfdistdir}/tex/latex/fourier/fourier-orns.sty
%{_texmfdistdir}/tex/latex/fourier/fourier.sty
%{_texmfdistdir}/tex/latex/fourier/t1futj.fd
%{_texmfdistdir}/tex/latex/fourier/t1futs.fd
%{_texmfdistdir}/tex/latex/fourier/t1futx.fd
%{_texmfdistdir}/tex/latex/fourier/ts1futj.fd
%{_texmfdistdir}/tex/latex/fourier/ts1futs.fd
%{_texmfdistdir}/tex/latex/fourier/ts1futx.fd
%{_texmfdistdir}/tex/latex/fourier/ufuts.fd
%{_texmfdistdir}/fonts/opentype/public/fourier/FourierOrns-Regular.otf
%{_texmfdistdir}/fonts/tfm/public/fourier/fourier-ligs-it.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futb-sup.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futbi-sup.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futc-sup.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futr-sup.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrci9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrci9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrco8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futrco9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futri-sup.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futs-sup.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsci9d.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsci9e.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsco8r.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/futsi-sup.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putb8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putbi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putbi8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putbo8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putc8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putr8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putr8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putrc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putrd8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putri8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putri8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putro8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/puts8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/puts8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putsc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putsi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putsi8x.tfm
%{_texmfdistdir}/fonts/tfm/public/fourier/putso8x.tfm
%{_texmfdistdir}/fonts/vf/public/fourier/futb-sup.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futbi-sup.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futc-sup.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futr-sup.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futrci9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futrci9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futrco9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futri-sup.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futs-sup.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsci9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsci9e.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsco9d.vf
%{_texmfdistdir}/fonts/vf/public/fourier/futsi-sup.vf
%{_texmfdistdir}/tex/latex/fourier/t1fut-sup.fd
%_texmf_updmap_d/fourier
%doc %{_texmfdistdir}/doc/fonts/fourier/README
%doc %{_texmfdistdir}/doc/fonts/fourier/fourier-doc-en.pdf
%doc %{_texmfdistdir}/doc/fonts/fourier/fourier-doc-en.tex
%doc %{_texmfdistdir}/doc/fonts/fourier/fourier-orns-doc.pdf
%doc %{_texmfdistdir}/doc/fonts/fourier/fourier-orns-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/fourier <<EOF
Map fourier-utopia-expert.map
Map fourier.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9839 |21cr|texlive-fouriernc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29646
# category Package
# catalog-ctan /fonts/fouriernc
# catalog-date 2013-04-03 16:06:16 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-fouriernc
Version:	20190228
Release:	1
Summary:	Use New Century Schoolbook text with Fourier maths fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/fouriernc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fouriernc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fouriernc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a LaTeX mathematics font setup for use
with New Century Schoolbook text. In order to use it you need
to have the Fourier-GUTenberg fonts installed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/fouriernc/fourier-mcl.afm
%{_texmfdistdir}/fonts/afm/public/fouriernc/fourier-ml.afm
%{_texmfdistdir}/fonts/afm/public/fouriernc/fourier-mlb.afm
%{_texmfdistdir}/fonts/afm/public/fouriernc/fourier-mlit.afm
%{_texmfdistdir}/fonts/afm/public/fouriernc/fourier-mlitb.afm
%{_texmfdistdir}/fonts/afm/public/fouriernc/fourier-ms.afm
%{_texmfdistdir}/fonts/tfm/public/fouriernc/fncmi.tfm
%{_texmfdistdir}/fonts/tfm/public/fouriernc/fncmib.tfm
%{_texmfdistdir}/fonts/tfm/public/fouriernc/fncmii.tfm
%{_texmfdistdir}/fonts/tfm/public/fouriernc/fncmiib.tfm
%{_texmfdistdir}/fonts/tfm/public/fouriernc/fncsy.tfm
%{_texmfdistdir}/fonts/vf/public/fouriernc/fncmi.vf
%{_texmfdistdir}/fonts/vf/public/fouriernc/fncmib.vf
%{_texmfdistdir}/fonts/vf/public/fouriernc/fncmii.vf
%{_texmfdistdir}/fonts/vf/public/fouriernc/fncmiib.vf
%{_texmfdistdir}/fonts/vf/public/fouriernc/fncsy.vf
%{_texmfdistdir}/tex/latex/fouriernc/fmlfncm.fd
%{_texmfdistdir}/tex/latex/fouriernc/fmlfncmi.fd
%{_texmfdistdir}/tex/latex/fouriernc/fmsfncm.fd
%{_texmfdistdir}/tex/latex/fouriernc/fouriernc.sty
%{_texmfdistdir}/tex/latex/fouriernc/t1fnc.fd
%{_texmfdistdir}/tex/latex/fouriernc/ts1fnc.fd
%doc %{_texmfdistdir}/doc/fonts/fouriernc/README
%doc %{_texmfdistdir}/doc/fonts/fouriernc/build-fouriernc.tex
%doc %{_texmfdistdir}/doc/fonts/fouriernc/mathit.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/mathsy.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/omlgutop.etx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/omsgutop.etx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/setxheight.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/specialkernings.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/specialkerningsital.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/substitutes.zip
%doc %{_texmfdistdir}/doc/fonts/fouriernc/test_fouriernc.pdf
%doc %{_texmfdistdir}/doc/fonts/fouriernc/unset0.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/unset0A.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/unsetAlph.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/unsetUCgreek.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/unsetfontparams.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/unsetmu.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/unsetpar.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/zrmhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fouriernc/zrykernx.mtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9840 |21cr|texlive-fragmaster-1.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /support/fragmaster
# catalog-date 2011-02-18 08:51:11 +0100
# catalog-license gpl
# catalog-version 1.6
Name:		texlive-fragmaster
Version:	1.6
Release:	10
Summary:	Using psfrag with PDFLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/fragmaster
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fragmaster.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fragmaster.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-fragmaster.bin = %{EVRD}

%description
Fragmaster enables you to use psfrag with PDFLaTeX. It takes
EPS files and psfrag substitution definition files, and
produces PDF and EPS files with the substitutions included.


#-----------------------------------------------------------------------
%files
%{_bindir}/fragmaster
%{_texmfdistdir}/scripts/fragmaster/fragmaster.pl
%doc %{_texmfdistdir}/doc/support/fragmaster/AUTHORS
%doc %{_texmfdistdir}/doc/support/fragmaster/COPYING
%doc %{_texmfdistdir}/doc/support/fragmaster/CREDITS
%doc %{_texmfdistdir}/doc/support/fragmaster/Changes
%doc %{_texmfdistdir}/doc/support/fragmaster/README
%doc %{_texmfdistdir}/doc/support/fragmaster/README.de
%doc %{_texmfdistdir}/doc/support/fragmaster/example/document.pdf
%doc %{_texmfdistdir}/doc/support/fragmaster/example/document.ps
%doc %{_texmfdistdir}/doc/support/fragmaster/example/document.tex
%doc %{_texmfdistdir}/doc/support/fragmaster/example/parabel.eps
%doc %{_texmfdistdir}/doc/support/fragmaster/example/parabel.pdf
%doc %{_texmfdistdir}/doc/support/fragmaster/example/parabel_fm
%doc %{_texmfdistdir}/doc/support/fragmaster/example/parabel_fm.eps
%doc %{_texmfdistdir}/doc/support/fragmaster/example/parabel_fm.gp
%doc %{_texmfdistdir}/doc/support/fragmaster/example/parabel_fm.pdf
%doc %{_texmfdistdir}/doc/support/fragmaster/fragmaster.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/fragmaster/fragmaster.pl fragmaster
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9841 |21cr|texlive-francais-bst-1.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30446
# category Package
# catalog-ctan /biblio/bibtex/contrib/francais-bst
# catalog-date 2013-05-12 22:32:31 +0200
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-francais-bst
Epoch:		1
Version:	1.1
Release:	12
Summary:	Bibliographies conforming to French typographic standards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/francais-bst
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/francais-bst.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/francais-bst.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides bibliographies (in French) conforming to
the rules in "Guide de la communication ecrite" (Malo, M.,
Quebec Amerique, 1996. ISBN 978-2-8903-7875-9) The BibTeX
styles were generated using custom-bib and they are compatible
with natbib.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/francais-bst/francais.bst
%{_texmfdistdir}/bibtex/bst/francais-bst/francaissc.bst
%{_texmfdistdir}/tex/latex/francais-bst/francaisbst.tex
%doc %{_texmfdistdir}/doc/bibtex/francais-bst/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9842 |21cr|texlive-frcursive-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24559
# category Package
# catalog-ctan /fonts/frcursive
# catalog-date 2011-11-09 16:18:27 +0100
# catalog-license lppl1.2
# catalog-version undef
Name:		texlive-frcursive
Version:	20190228
Release:	1
Summary:	French cursive hand fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/frcursive
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frcursive.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frcursive.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A hand-writing font in the style of the French academic
running-hand. The font was written in Metafont and and has been
converted to Adobe Type 1 format. LaTeX support (NFFS fd files,
and a package) and font maps are provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/frcursive/frcursive.map
%{_texmfdistdir}/fonts/source/public/frcursive/frcbx10.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcbx14.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcbx6.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcc10.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcc14.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcc6.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcf10.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcf14.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcf6.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcr10.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcr14.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcr6.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcsl10.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcsl14.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcsl6.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcslbx10.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcslbx14.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcslbx6.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcslc10.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcslc14.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcslc6.mf
%{_texmfdistdir}/fonts/source/public/frcursive/frcursive.mf
%{_texmfdistdir}/fonts/tfm/public/frcursive/frca10.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcbx14.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcc10.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcc14.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcc6.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcf10.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcf14.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcf6.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcr10.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcr14.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcr6.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcsl14.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcsl6.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcslbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcslbx14.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcslbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcslc10.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcslc14.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcslc6.tfm
%{_texmfdistdir}/fonts/tfm/public/frcursive/frcw10.tfm
%{_texmfdistdir}/fonts/type1/public/frcursive/frca10.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcbx10.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcbx14.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcbx6.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcc10.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcc14.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcc6.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcf10.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcf14.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcf6.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcr10.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcr14.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcr6.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcsl10.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcsl14.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcsl6.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcslbx10.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcslbx14.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcslbx6.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcslc10.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcslc14.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcslc6.pfb
%{_texmfdistdir}/fonts/type1/public/frcursive/frcw10.pfb
%{_texmfdistdir}/tex/latex/frcursive/frcursive.sty
%{_texmfdistdir}/tex/latex/frcursive/ot1frc.fd
%{_texmfdistdir}/tex/latex/frcursive/t1frc.fd
%doc %{_texmfdistdir}/doc/fonts/frcursive/COPYING
%doc %{_texmfdistdir}/doc/fonts/frcursive/README
%doc %{_texmfdistdir}/doc/fonts/frcursive/frcursive.pdf
#- source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9843 |21cr|texlive-frederika2016-42157-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname frederika2016

Summary:	An OpenType Greek calligraphy font
Name:		texlive-frederika2016
Version:	42157
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(Frederika2016.otf) = 2024
BuildArch:	noarch

%description
Frederika2016 is an attempt to digitize Hermann Zapf's
Frederika font. The font is the Greek companion of Virtuosa by
the same designer. This font is a calligraphy font and this is
an initial release.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/frederika2016/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9844 |21cr|texlive-frenchmath-66470-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname frenchmath

Summary:	Typesetting mathematics according to French rules
Name:		texlive-frenchmath
Version:	66470
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(frenchmath.sty) = 2024
BuildArch:	noarch

%description
The package provides: capital letters in roman (upright shape)
in mathematical mode according to French rule (can be
optionnally disabled), optionally lowercase Greek letters in
upright shape, correct spacing in math mode after commas,
before a semicolon and around square brackets, some useful
macros and aliases for symbols used in France: \infeg, \supeg,
\paral, ... several macros for writing french operator names
like pgcd, ppcm, Card, rg, Vect, ...

%files
%doc %{_texmfdistdir}/doc/latex/frenchmath
%{_texmfdistdir}/tex/latex/frenchmath

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9845 |21cr|texlive-frimurer-56704-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname frimurer

Summary:	Access to the 'frimurer' cipher for use with LaTeX
Name:		texlive-frimurer
Version:	56704
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(frimurer.enc) = 2024
Provides:	tex(frimurer.sty) = 2024
BuildArch:	noarch

%description
This package provides access to the 'frimurer' cipher for use
with LaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/frimurer
%{_texmfdistdir}/fonts/afm/public/frimurer
%{_texmfdistdir}/fonts/enc/dvips/frimurer
%{_texmfdistdir}/fonts/tfm/public/frimurer
%{_texmfdistdir}/fonts/type1/public/frimurer
%{_texmfdistdir}/tex/latex/frimurer

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9846 |21cr|texlive-froufrou-59103-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname froufrou

Summary:	Fancy section separators
Name:		texlive-froufrou
Version:	59103
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(froufrou.sty) = 2024
BuildArch:	noarch

%description
This package provides fancy separators, which are visual cues
that indicate a change of subject or context without actually
starting a new chapter or section.

%files
%doc %{_texmfdistdir}/doc/latex/froufrou
%{_texmfdistdir}/tex/latex/froufrou

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9847 |21cr|texlive-frpseudocode-56088-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname frpseudocode

Summary:	French translation for the algorithmicx package
Name:		texlive-frpseudocode
Version:	56088
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(frpseudocode.sty) = 2024
BuildArch:	noarch

%description
This package is intended for use alongside Szasz Janos'
algorithmicx package. Its aim is to provide a French
translation of terms and words used in algorithms to make it
integrate seamlessly in a French written document.

%files
%doc %{_texmfdistdir}/doc/latex/frpseudocode
%{_texmfdistdir}/tex/latex/frpseudocode

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9848 |21cr|texlive-ftc-notebook-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: texlive-ftc-notebook
Version: 1.1
Release: 1
Summary: Typeset FIRST Tech Challenge (FTC) notebooks
Group: Publishing
URL: https://ctan.org/tex-archive/macros/latex/contrib/ftc-notebook
License: LPPL1
Source0: http://mirrors.ctan.org/systems/texlive/tlnet/archive/ftc-notebook.tar.xz
Source1: http://mirrors.ctan.org/systems/texlive/tlnet/archive/ftc-notebook.doc.tar.xz
BuildArch: noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg

%description
This LATEX package will greatly simplify filling entries for your FIRST Tech Challenge (FTC) engineering or 
outreach notebook. We developed this package to support most frequently used constructs encountered in an 
FTC notebook: meetings, asks, decisions with pros and cons, tables, figures with explanations, team stories and bios, and more.
We developed this package during the 2018-2019 season and are using it for our engineering notebook. Team Robocracy is sharing
this style in the spirit of coopertition.

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9849 |21cr|texlive-fullminipage-20211021-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fullminipage
Version:	20211021
Release:	1
Summary:	This package provides the environment |fullminipage|
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/fullminipage
License:	GGPL 3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/fullminipage.doc.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/fullminipage.source.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/fullminipage.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the environment |fullminipage|, which generates a
|minipage| spanning a new, complete page with page style |empty|.
The environment provides options to set margins around the |minipage| and
configure the background.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fullminipage/fullminipage.sty
%doc %{_texmfdistdir}/doc/latex/fullminipage/README
%doc %{_texmfdistdir}/doc/latex/fullminipage/Makefile
%doc %{_texmfdistdir}/doc/latex/fullminipage/fullminipage.pdf
%doc %{_texmfdistdir}/doc/latex/fullminipage/fullminipage_test.tex
%doc %{_texmfdistdir}/doc/latex/fullminipage/fullminipage_test.pdf
%doc %{_texmfdistdir}/doc/latex/fullminipage/COPYING
#- source
%{_texmfdistdir}/source/latex/fullminipage/fullminipage.dtx
%{_texmfdistdir}/source/latex/fullminipage/fullminipage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9850 |21cr|texlive-functional-65485-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname functional

Summary:	Provide an intuitive functional programming interface for LaTeX2
Name:		texlive-functional
Version:	65485
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(functional.sty) = 2024
BuildArch:	noarch

%description
This package provides an intuitive functional programming
interface for LaTeX2, which is an alternative choice to expl3
or LuaTeX, if you want to do programming in LaTeX. Although
there are functions in LaTeX3 programming layer (expl3), the
evaluation of them is from outside to inside. With this
package, the evaluation of functions is from inside to outside,
which is the same as other programming languages such as Lua.
In this way, it is rather easy to debug code too.

%files
%doc %{_texmfdistdir}/doc/latex/functional
%{_texmfdistdir}/tex/latex/functional

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9851 |21cr|texlive-fvextra-20211021-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fvextra
Version:	20211021
Release:	1
Summary:	fvextra provides several extensions to fancyvrb, including automatic line breaking and improved math mode
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/fvextra
License:	LPPL v1.3 or later
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fvextra.doc.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fvextra.source.tar.xz
Source2:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fvextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
fvextra provides several extensions to fancyvrb, including automatic line
breaking and improved math mode.  It also patches some fancyvrb internals.
fvextra provides a reimplemented \Verb command that works (with a few
limitations) inside other commands, even in movable arguments and PDF
bookmarks.  It also provides \EscVerb, which is similar to \Verb except that
it works everywhere without limitations by allowing the backslash to serve as
an escape character.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fvextra/fvextra.sty
%doc %{_texmfdistdir}/doc/latex/fvextra/*
#- source
%{_texmfdistdir}/source/latex/fvextra/fvextra.dtx
%{_texmfdistdir}/source/latex/fvextra/fvextra.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9852 |21cr|texlive-gamebooklib-63424-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gamebooklib

Summary:	Macros for setting numbered entries in shuffled order
Name:		texlive-gamebooklib
Version:	63424
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gamebooklib.sty) = 2024
BuildArch:	noarch

%description
This package provides macros and environments to allow the user
to typeset a series of cross-referenced, numbered "entries",
shuffled into random order, to produce an interactive novel or
"gamebook". This allows entries to be written in natural order
and shuffled automatically into a repeatable non-linear order.
Limited support is provided for footnotes to appear at the
natural position: the end of each entry, or the end of each
page, whichever is closest to the footnote mark. This is
unrelated to the gamebook package which is more concerned with
the formatting of entries rather than their order. The two
packages can be used together or separately.

%files
%doc %{_texmfdistdir}/doc/latex/gamebooklib
%{_texmfdistdir}/tex/latex/gamebooklib

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9853 |21cr|texlive-gammas-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gammas
Version:	1.1
Release:	1
Summary:	This directory contains the LaTeX2e class `gammas'
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gammas
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gammas.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gammas.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is the official document class for typesetting journal
articles for GAMM Archive for Students (GAMMAS), the
open-access online yournal run by the GAMM Juniors (GAMM =
Gesellschaft fur angewandte Mathematik und Mechanik).
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9854 |21cr|texlive-garamond-libre-64412-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname garamond-libre

Summary:	The Garamond Libre font face
Name:		texlive-garamond-libre
Version:	64412
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(GaramondLibre.map) = 2024
Provides:	tex(garamondlibre.sty) = 2024
Provides:	tex(grmlbr_26qpf7.enc) = 2024
Provides:	tex(grmlbr_2ituzd.enc) = 2024
Provides:	tex(grmlbr_3mt3an.enc) = 2024
Provides:	tex(grmlbr_3w7ozp.enc) = 2024
Provides:	tex(grmlbr_4b5hhp.enc) = 2024
Provides:	tex(grmlbr_6l5pxo.enc) = 2024
Provides:	tex(grmlbr_af3fmk.enc) = 2024
Provides:	tex(grmlbr_c7o3pq.enc) = 2024
Provides:	tex(grmlbr_crzyr4.enc) = 2024
Provides:	tex(grmlbr_cwdpfu.enc) = 2024
Provides:	tex(grmlbr_d5jenc.enc) = 2024
Provides:	tex(grmlbr_ddg2jn.enc) = 2024
Provides:	tex(grmlbr_ddnxa5.enc) = 2024
Provides:	tex(grmlbr_fb533q.enc) = 2024
Provides:	tex(grmlbr_ft27f3.enc) = 2024
Provides:	tex(grmlbr_fukic5.enc) = 2024
Provides:	tex(grmlbr_h5igdn.enc) = 2024
Provides:	tex(grmlbr_hbrvqa.enc) = 2024
Provides:	tex(grmlbr_hejid2.enc) = 2024
Provides:	tex(grmlbr_huatgi.enc) = 2024
Provides:	tex(grmlbr_ikpupx.enc) = 2024
Provides:	tex(grmlbr_iqbnqe.enc) = 2024
Provides:	tex(grmlbr_jwpqsx.enc) = 2024
Provides:	tex(grmlbr_kk2l3t.enc) = 2024
Provides:	tex(grmlbr_kyvbob.enc) = 2024
Provides:	tex(grmlbr_l5k5jt.enc) = 2024
Provides:	tex(grmlbr_ljc3nf.enc) = 2024
Provides:	tex(grmlbr_m5zyzk.enc) = 2024
Provides:	tex(grmlbr_madlva.enc) = 2024
Provides:	tex(grmlbr_nhixbh.enc) = 2024
Provides:	tex(grmlbr_nnzq7g.enc) = 2024
Provides:	tex(grmlbr_o3pzn3.enc) = 2024
Provides:	tex(grmlbr_oo4va4.enc) = 2024
Provides:	tex(grmlbr_p5a7xq.enc) = 2024
Provides:	tex(grmlbr_pcz4ad.enc) = 2024
Provides:	tex(grmlbr_pmempd.enc) = 2024
Provides:	tex(grmlbr_qgzksw.enc) = 2024
Provides:	tex(grmlbr_ql6cag.enc) = 2024
Provides:	tex(grmlbr_qnkmaf.enc) = 2024
Provides:	tex(grmlbr_qyly2w.enc) = 2024
Provides:	tex(grmlbr_rxhqtw.enc) = 2024
Provides:	tex(grmlbr_sbgl2v.enc) = 2024
Provides:	tex(grmlbr_srtteg.enc) = 2024
Provides:	tex(grmlbr_syncrn.enc) = 2024
Provides:	tex(grmlbr_tx4wra.enc) = 2024
Provides:	tex(grmlbr_u674gk.enc) = 2024
Provides:	tex(grmlbr_u7zlyy.enc) = 2024
Provides:	tex(grmlbr_ujl4dj.enc) = 2024
Provides:	tex(grmlbr_vzduxe.enc) = 2024
Provides:	tex(grmlbr_wgjy5a.enc) = 2024
Provides:	tex(grmlbr_wkdlc7.enc) = 2024
Provides:	tex(grmlbr_wt2iav.enc) = 2024
Provides:	tex(grmlbr_xqilo4.enc) = 2024
Provides:	tex(grmlbr_y75trc.enc) = 2024
Provides:	tex(grmlbr_yeyti3.enc) = 2024
Provides:	tex(grmlbr_yonrxo.enc) = 2024
Provides:	tex(grmlbr_zoesgh.enc) = 2024
Provides:	tex(grmlbr_zslxeq.enc) = 2024
Provides:	tex(grmlbr_zy2up7.enc) = 2024
Provides:	tex(LGRGaramondLibre-Inf.fd) = 2024
Provides:	tex(LGRGaramondLibre-LF.fd) = 2024
Provides:	tex(LGRGaramondLibre-OsF.fd) = 2024
Provides:	tex(LGRGaramondLibre-Sup.fd) = 2024
Provides:	tex(LY1GaramondLibre-Inf.fd) = 2024
Provides:	tex(LY1GaramondLibre-LF.fd) = 2024
Provides:	tex(LY1GaramondLibre-OsF.fd) = 2024
Provides:	tex(LY1GaramondLibre-Sup.fd) = 2024
Provides:	tex(OT1GaramondLibre-Inf.fd) = 2024
Provides:	tex(OT1GaramondLibre-LF.fd) = 2024
Provides:	tex(OT1GaramondLibre-OsF.fd) = 2024
Provides:	tex(OT1GaramondLibre-Sup.fd) = 2024
Provides:	tex(T1GaramondLibre-Inf.fd) = 2024
Provides:	tex(T1GaramondLibre-LF.fd) = 2024
Provides:	tex(T1GaramondLibre-OsF.fd) = 2024
Provides:	tex(T1GaramondLibre-Sup.fd) = 2024
Provides:	tex(T2AGaramondLibre-Inf.fd) = 2024
Provides:	tex(T2AGaramondLibre-LF.fd) = 2024
Provides:	tex(T2AGaramondLibre-OsF.fd) = 2024
Provides:	tex(T2AGaramondLibre-Sup.fd) = 2024
Provides:	tex(T2BGaramondLibre-Inf.fd) = 2024
Provides:	tex(T2BGaramondLibre-LF.fd) = 2024
Provides:	tex(T2BGaramondLibre-OsF.fd) = 2024
Provides:	tex(T2BGaramondLibre-Sup.fd) = 2024
Provides:	tex(T2CGaramondLibre-Inf.fd) = 2024
Provides:	tex(T2CGaramondLibre-LF.fd) = 2024
Provides:	tex(T2CGaramondLibre-OsF.fd) = 2024
Provides:	tex(T2CGaramondLibre-Sup.fd) = 2024
Provides:	tex(TS1GaramondLibre-LF.fd) = 2024
Provides:	tex(TS1GaramondLibre-OsF.fd) = 2024
Provides:	tex(UGaramondLibre-Orn.fd) = 2024
BuildArch:	noarch

%description
Garamond Libre is a free and open-source old-style font family.
It is a "true Garamond," i.e., it is based off the designs of
16th-century French engraver Claude Garamond (also spelled
Garamont). The Roman design is Garamond's; the italics are from
a design by Robert Granjon. The upright Greek font is after a
design by Firmin Didot; the "italic" Greek font is after a
design by Alexander Wilson. The font family includes support
for Latin, Greek (monotonic and polytonic) and Cyrillic
scripts, as well as small capitals, old-style figures, superior
and inferior figures, historical ligatures, Byzantine musical
symbols, the IPA and swash capitals. The fonts are provided in
OpenType format, and are intended to be used with LuaLaTeX or
XeLaTeX via fontspec.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/garamond-libre
%{_texmfdistdir}/fonts/map/dvips/garamond-libre
%{_texmfdistdir}/fonts/opentype/public/garamond-libre
%{_texmfdistdir}/fonts/tfm/public/garamond-libre
%{_texmfdistdir}/fonts/type1/public/garamond-libre
%{_texmfdistdir}/fonts/vf/public/garamond-libre
%{_texmfdistdir}/tex/latex/garamond-libre

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9855 |21cr|texlive-garamond-math-61481-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname garamond-math

Summary:	An OTF math font matching EB Garamond
Name:		texlive-garamond-math
Version:	61481
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(Garamond-Math.otf) = 2024
BuildArch:	noarch

%description
Garamond-Math is an open type math font matching EB Garamond
(Octavio Pardo) and EB Garamond (Georg Mayr-Duffner). Many
mathematical symbols are derived from other fonts, others are
made from scratch. The metric is generated with a Python
script. Issues, bug reports and other contributions are
welcome.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/garamond-math

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9856 |21cr|texlive-gates-0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/generic/gates
# catalog-date 2012-05-27 01:03:23 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-gates
Version:	0.2
Release:	12
Summary:	Support for writing modular and customisable code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/gates
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gates.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gates.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means of writing code in a modular
fashion: big macros or functions are divided into small chunks
(called gates) with names, which can be externally controlled
(e.g. they can be disabled, subjected to conditionals,
loops...) and/or augmented with new chunks. Thus complex code
may easily be customised without having to rewrite it, or even
understand its implementation: the behavior of existing gates
can be modified, and new ones can be added, without endangering
the whole design. This allows code to be hacked in ways the
original authors might have never envisioned. The gates package
is implemented independently for both TeX and Lua. The TeX
implementation, running in any current environment, requires
the texapi package, whereas the Lua version can be run with any
Lua interpreter, not just LuaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/gates/gates.lua
%{_texmfdistdir}/tex/generic/gates/gates.sty
%{_texmfdistdir}/tex/generic/gates/gates.tex
%{_texmfdistdir}/tex/generic/gates/t-gates.tex
%doc %{_texmfdistdir}/doc/generic/gates/README
%doc %{_texmfdistdir}/doc/generic/gates/gates-doc.pdf
%doc %{_texmfdistdir}/doc/generic/gates/gates-doc.tex
%doc %{_texmfdistdir}/doc/generic/gates/gates-doc.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9857 |21cr|texlive-gatherenum-1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gatherenum
Version:	1.8
Release:	1
Summary:	gatherenum – A crossover of align* and enumerate
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/gatherenum
License:	GPL 3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gatherenum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gatherenum.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/gatherenum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package (ab)uses the inline enumeration capabilities of enumitem.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gatherenum/gatherenum.sty
%doc %{_texmfdistdir}/doc/latex/gatherenum/LICENSE
%doc %{_texmfdistdir}/doc/latex/gatherenum/README.md
%doc %{_texmfdistdir}/doc/latex/gatherenum/gatherenum.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9858 |21cr|texlive-gbt7714-64633-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gbt7714

Summary:	BibTeX implementation of China's bibliography style standard GB/T 7714-2015
Name:		texlive-gbt7714
Version:	64633
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-bibtex
Requires:	texlive-kpathsea
#Requires:	tex(natbib.sty)
#Requires:	tex(url.sty)
Provides:	tex(gbt7714-author-year.bst) = 2024
Provides:	tex(gbt7714-numerical.bst) = 2024
Provides:	tex(gbt7714.sty) = 2024
BuildArch:	noarch

%description
The package provides a BibTeX implementation for the Chinese
national bibliography style standard GB/T 7714-2015. It
consists of two bst files for numerical and author-year styles
as well as a LaTeX package which provides the citation style
defined in the standard. The package is compatible with natbib
and supports language detection (Chinese and English) for each
biblilography entry.

%files
%doc %{_texmfdistdir}/doc/bibtex/gbt7714/
%{_texmfdistdir}/bibtex/bst/gbt7714/
%{_texmfdistdir}/tex/latex/gbt7714/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9859 |21cr|texlive-gckanbun-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gckanbun

Summary:	Kanbun typesetting for (u)pLaTeX and LuaLaTeX
Name:		texlive-gckanbun
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gckanbun.sty) = 2024
BuildArch:	noarch

%description
This package provides a Kanbun (Han Wen , "Chinese writing")
typesetting for (u)pLaTeX and LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/gckanbun
%{_texmfdistdir}/tex/latex/gckanbun

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9860 |21cr|texlive-gender-36464.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gender

Summary:	Gender neutrality for languages with grammatical gender
Name:		texlive-gender
Version:	36464.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-gender = 2024
Provides:	tex(gender.sty) = 2024
BuildArch:	noarch

%description
Many languages -- like German or French -- use masculine and
feminine grammatical genders. There are many ideas how to
promote gender neutrality in those languages. The gender
package uses alternately masculine and feminine forms. It is
also possible to use just one form out of a template.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/gender/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9861 |21cr|texlive-genealogy-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25112
# category Package
# catalog-ctan /fonts/genealogy
# catalog-date 2011-04-10 21:40:35 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-genealogy
Version:	20190228
Release:	1
Summary:	A compilation genealogy font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/genealogy
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/genealogy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/genealogy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A simple compilation of the genealogical symbols found in the
wasy and gen fonts, essentially adding the male and female
symbols to Knuth's 'gen' font, and so avoiding loading two
fonts when you need only genealogical symbols. The font is
distributed as Metafont source.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/genealogy/drgen.mf
%{_texmfdistdir}/fonts/source/public/genealogy/drgen10.mf
%{_texmfdistdir}/fonts/tfm/public/genealogy/drgen10.tfm
%doc %{_texmfdistdir}/doc/fonts/genealogy/README
%doc %{_texmfdistdir}/doc/fonts/genealogy/licence.txt
%doc %{_texmfdistdir}/doc/fonts/genealogy/testgen.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9862 |21cr|texlive-gensymb-64740-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gensymb

Summary:	Generic symbols for both text and math mode
Name:		texlive-gensymb
Version:	64740
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gensymb.sty) = 2024
BuildArch:	noarch

%description
Provides generic commands \degree, \celsius, \perthousand,
\micro and \ohm which work both in text and maths mode. Various
means are provided to fake the symbols or take them from
particular symbol fonts, if they are not available in the
default fonts used in the document. This should be perfectly
transparent at user level, so that one can apply the same
notation for units of measurement in text and math mode and
with arbitrary typefaces. Note that the package has been
designed to work in conjunction with units.sty. This package
used to be part of the was bundle, but has now become a package
in its own right.

%files
%doc %{_texmfdistdir}/doc/latex/gensymb
%{_texmfdistdir}/tex/latex/gensymb

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9863 |21cr|texlive-gentombow-64333-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gentombow

Summary:	Generate Japanese-style crop marks
Name:		texlive-gentombow
Version:	64333
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bounddvi.sty) = 2024
Provides:	tex(gentombow.sty) = 2024
Provides:	tex(pxesopic.sty) = 2024
Provides:	tex(pxgentombow.sty) = 2024
Provides:	tex(pxpdfpages.sty) = 2024
Provides:	tex(pxtextpos.sty) = 2024
BuildArch:	noarch

%description
This bundle provides a LaTeX package for generating
Japanese-style crop marks (called 'tombow' in Japanese) for
practical use in self-publishing. The bundle contains the
following packages: gentombow.sty: Generate crop marks (called
'tombow' in Japanese) for practical use in self-publishing. It
provides the core 'tombow' feature if not available.
pxgentombow.sty: Superseded by gentombow.sty; kept for
compatibility only. bounddvi.sty: Set papersize special to DVI
file. Can be used on LaTeX/pLaTeX/upLaTeX (with DVI output
mode) with dvips or dvipdfmx drivers.

%files
%doc %{_texmfdistdir}/doc/latex/gentombow/
%{_texmfdistdir}/tex/latex/gentombow/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9864 |21cr|texlive-geradwp-63134-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname geradwp

Summary:	Document class for the Cahiers du GERAD series
Name:		texlive-geradwp
Version:	63134
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(geradwp.cls) = 2024
BuildArch:	noarch

%description
This package provides the geradwp class, a class based on
article and compatible with LaTeX. With this class, researchers
at GERAD will be able to write their working paper while
complying to all the presentation standards required by the
Cahiers du GERAD series.

%files
%doc %{_texmfdistdir}/doc/latex/geradwp
%{_texmfdistdir}/tex/latex/geradwp

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9865 |21cr|texlive-geschichtsfrkl-1.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-geschichtsfrkl
Version:	1.4
Release:	3
Summary:	BibLaTeX style for historians
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/geschichtsfrkl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/geschichtsfrkl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/geschichtsfrkl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/geschichtsfrkl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a BibLaTeX style, (mostly) meeting the
requirements of the History Faculty of the University of
Freiburg (Germany).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/geschichtsfrkl
%doc %{_texmfdistdir}/doc/latex/geschichtsfrkl
#- source
%doc %{_texmfdistdir}/source/latex/geschichtsfrkl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9866 |21cr|texlive-getitems-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-getitems
Version:	1.1
Release:	1
Summary:	Organize latex composing
Group:		Publishing
URL:		https://www.tug.org/texlive//Contents/live/texmf-dist/tex/latex/getitems
License:	LaTeX Project Public License
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/getitems.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/getitems.doc.tar.xz
Source2:    https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/getitems.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The enumerate and itemize environments of LATEX organize their contents
through the use of the \item command. Each entry in these lists is prefaced
with the command \item, making for very compact and easily readable source
code. Package designers may find it useful to use the same syntax for their custom
environments. The getitems package makes it easy to code such environments
by parsing a string of tokens, separating them by the occurrence of \item’s, and
saving the contents as macros. Nested environments are handled correctly.
Moreover, some typesetting tasks naturally consist of a “header” followed by
several related items; one example would be a multiple-choice question on a school
examination. This package saves any TEX tokens appearing before the first \item
as the zeroth item for special handling.
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9867 |21cr|texlive-getoptk-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23567
# category Package
# catalog-ctan /macros/plain/contrib/getoptk
# catalog-date 2011-08-07 22:43:01 +0200
# catalog-license nosource
# catalog-version 1.0
Name:		texlive-getoptk
Version:	1.0
Release:	8
Summary:	Define macros with sophisticated options
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/getoptk
License:	NOSOURCE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/getoptk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/getoptk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of defining macros whose options
are taken from a dictionary, which includes options which
themselves have arguments. The package was designed for use
with Plain TeX; its syntax derives from that of the \hbox,
\hrule, etc., TeX primitives.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/getoptk/getoptk.tex
%{_texmfdistdir}/tex/plain/getoptk/guide.tex
%doc %{_texmfdistdir}/doc/plain/getoptk/COPYING
%doc %{_texmfdistdir}/doc/plain/getoptk/COPYING-FR
%doc %{_texmfdistdir}/doc/plain/getoptk/README
%doc %{_texmfdistdir}/doc/plain/getoptk/guide.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9868 |21cr|texlive-gettitlestring-53170-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gettitlestring

Summary:	Clean up title references
Name:		texlive-gettitlestring
Version:	53170
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gettitlestring.sty) = 2024
BuildArch:	noarch

%description
Cleans up the title string (removing \label commands) for
packages (such as nameref) that typeset such strings.

%files
%doc %{_texmfdistdir}/doc/latex/gettitlestring
%{_texmfdistdir}/tex/generic/gettitlestring

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9869 |21cr|texlive-gfdl-65415-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gfdl

Summary:	Support for using GFDL in LaTeX
Name:		texlive-gfdl
Version:	65415
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gfdl.sty) = 2024
Provides:	tex(gfdl-tex-1p1.tex) = 2024
Provides:	tex(gfdl-tex-1p2.tex) = 2024
Provides:	tex(gfdl-tex-1p3.tex) = 2024
BuildArch:	noarch

%description
The GFDL (GNU Free Documentation License) is a popular license
used for programming manuals, documentations and various other
textual works too, but using this license with LaTeX is not
very convenient. This package aims to help users in easily
using the license without violating any rules of the license.
With a handful of commands, users can rest assured that their
document will be perfectly licensed under GFDL.

%files
%doc %{_texmfdistdir}/doc/latex/gfdl
%{_texmfdistdir}/tex/latex/gfdl

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9870 |21cr|texlive-gfnotation-2.9-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29776
# category Package
# catalog-ctan /macros/latex/contrib/mpgraphics
# catalog-date 2013-04-08 09:07:09 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-gfnotation
Version:	2.9
Release:	12
Summary:	Typeset Gottlob Frege's notation in plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gfnotation
License:	GNU General Public License, version 3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfnotation.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfnotation.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package implements macros for plain TeX to
typeset the notation invented by Gottlob Frege
in 1879 for his books “Begriffsschrift” and
“Grundgesetze der Arithmetik” (two volumes).
The output styles of both books are supported. 
----------------
%files
%{_texmfdistdir}/tex/plain/gfnotation/GFnotation.tex
#- doc
%doc %{_texmfdistdir}/doc/plain/gfnotation/COPYING
%doc %{_texmfdistdir}/doc/plain/gfnotation/GFnotation-doc.pdf
%doc %{_texmfdistdir}/doc/plain/gfnotation/GFnotation-doc.tex
%doc %{_texmfdistdir}/doc/plain/gfnotation/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9871 |21cr|texlive-gfsartemisia-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19469
# category Package
# catalog-ctan /fonts/greek/gfs/gfsartemisia
# catalog-date 2008-08-19 21:00:04 +0200
# catalog-license other-free
# catalog-version 1.0
Name:		texlive-gfsartemisia
Version:	1.0
Release:	8
Summary:	A modern Greek font design
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/gfs/gfsartemisia
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsartemisia.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsartemisia.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
GFS Artemisia is a relatively modern font, designed as a
'general purpose' font in the same sense as Times is nowadays
treated. The present version has been provided by the Greek
Font Society. The font supports the Greek and Latin alphabets.
LaTeX support is provided, using the OT1, T1 and LGR encodings.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gfsartemisia/GFSArtemisia-Bold.afm
%{_texmfdistdir}/fonts/afm/public/gfsartemisia/GFSArtemisia-BoldItalic.afm
%{_texmfdistdir}/fonts/afm/public/gfsartemisia/GFSArtemisia-Italic.afm
%{_texmfdistdir}/fonts/afm/public/gfsartemisia/GFSArtemisia-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisia.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisiadenomnums.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisiaec.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisiaecsc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisiael.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisiaelsc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisiamath.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisianumnums.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisiasc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsartemisia/artemisiatabnums.enc
%{_texmfdistdir}/fonts/map/dvips/gfsartemisia/gfsartemisia.map
%{_texmfdistdir}/fonts/opentype/public/gfsartemisia/GFSArtemisia.otf
%{_texmfdistdir}/fonts/opentype/public/gfsartemisia/GFSArtemisiaBold.otf
%{_texmfdistdir}/fonts/opentype/public/gfsartemisia/GFSArtemisiaBoldIt.otf
%{_texmfdistdir}/fonts/opentype/public/gfsartemisia/GFSArtemisiaIt.otf
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiab8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiab8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiab9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiab9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiabi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiabi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiabi9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiabi9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiabo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiabo8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiabo9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiabo9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiadenomnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiadenomnums8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiai8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiai8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiai9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiai9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiamath8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiamath8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisianumnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisianumnums8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiao8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiao8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiao9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiao9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiarg8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiarg8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiarg9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiarg9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiasc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiasc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiasc9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiasc9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiasco8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiasco8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiasco9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiasco9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiatabnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/artemisiatabnums8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiab6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiab6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiabi6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiabi6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiabo6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiabo6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiai6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiai6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiao6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiao6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiarg6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiarg6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiasc6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiasc6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiasco6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsartemisia/gartemisiasco6r.tfm
%{_texmfdistdir}/fonts/type1/public/gfsartemisia/GFSArtemisia-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/gfsartemisia/GFSArtemisia-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/public/gfsartemisia/GFSArtemisia-Italic.pfb
%{_texmfdistdir}/fonts/type1/public/gfsartemisia/GFSArtemisia-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiab8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiab9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiabi8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiabi9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiabo8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiabo9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiadenomnums8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiai8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiai9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiamath8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisianumnums8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiao8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiao9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiarg8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiarg9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiasc8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiasc9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiasco8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiasco9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/artemisiatabnums8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/gartemisiab6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/gartemisiabi6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/gartemisiabo6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/gartemisiai6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/gartemisiao6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/gartemisiarg6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/gartemisiasc6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsartemisia/gartemisiasco6a.vf
%{_texmfdistdir}/tex/latex/gfsartemisia/gfsartemisia-euler.sty
%{_texmfdistdir}/tex/latex/gfsartemisia/gfsartemisia.sty
%{_texmfdistdir}/tex/latex/gfsartemisia/lgrartemisia.fd
%{_texmfdistdir}/tex/latex/gfsartemisia/lgrartemisiaeuler.fd
%{_texmfdistdir}/tex/latex/gfsartemisia/ot1artemisia.fd
%{_texmfdistdir}/tex/latex/gfsartemisia/ot1artemisiaeuler.fd
%{_texmfdistdir}/tex/latex/gfsartemisia/t1artemisia.fd
%{_texmfdistdir}/tex/latex/gfsartemisia/t1artemisiaeuler.fd
%{_texmfdistdir}/tex/latex/gfsartemisia/uartemisiaeulernums.fd
%{_texmfdistdir}/tex/latex/gfsartemisia/uartemisianums.fd
%doc %{_texmfdistdir}/doc/fonts/gfsartemisia/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/gfsartemisia/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/gfsartemisia/README
%doc %{_texmfdistdir}/doc/fonts/gfsartemisia/README.TEXLIVE
%doc %{_texmfdistdir}/doc/fonts/gfsartemisia/gfsartemisia.pdf
%doc %{_texmfdistdir}/doc/fonts/gfsartemisia/gfsartemisia.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9872 |21cr|texlive-gfsbodoni-1.01-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28484
# category Package
# catalog-ctan /fonts/greek/gfs/gfsbodoni
# catalog-date 2012-05-17 11:22:16 +0200
# catalog-license ofl
# catalog-version 1.01
Name:		texlive-gfsbodoni
Version:	1.01
Release:	13
Summary:	A Greek and Latin font based on Bodoni
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/gfs/gfsbodoni
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsbodoni.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsbodoni.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Bodoni's Greek fonts in the 18th century broke, for the first
time, with the Byzantine cursive tradition of Greek fonts. GFS
Bodoni resurrects his work for general use. The font family
supports both Greek and Latin letters. LaTeX support of the
fonts is provided, offering OT1, T1 and LGR encodings. The
fonts themselves are provided in Adobe Type 1 and OpenType
formats.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gfsbodoni/GFSBodoni-Bold.afm
%{_texmfdistdir}/fonts/afm/public/gfsbodoni/GFSBodoni-BoldItalic.afm
%{_texmfdistdir}/fonts/afm/public/gfsbodoni/GFSBodoni-Italic.afm
%{_texmfdistdir}/fonts/afm/public/gfsbodoni/GFSBodoni-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodoni.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodonidenomnums.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodoniec.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodoniecsc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodoniel.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodonielsc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodoninumnums.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodonisc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsbodoni/bodonitabnums.enc
%{_texmfdistdir}/fonts/map/dvips/gfsbodoni/gfsbodoni.map
%{_texmfdistdir}/fonts/opentype/public/gfsbodoni/GFSBodoni.otf
%{_texmfdistdir}/fonts/opentype/public/gfsbodoni/GFSBodoniBold.otf
%{_texmfdistdir}/fonts/opentype/public/gfsbodoni/GFSBodoniBoldIt.otf
%{_texmfdistdir}/fonts/opentype/public/gfsbodoni/GFSBodoniIt.otf
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonib8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonib8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonib9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonib9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonibi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonibi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonibi9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonibi9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonibo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonibo8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonibo9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonibo9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonidenomnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonidenomnums8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonii8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonii8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonii9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonii9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodoninumnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodoninumnums8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonio8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonio8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonio9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonio9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonirg8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonirg8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonirg9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonirg9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonisc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonisc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonisc9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonisc9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonisco8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonisco8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonisco9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonisco9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonitabnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/bodonitabnums8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonib6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonib6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonibi6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonibi6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonibo6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonibo6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonii6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonii6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonio6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonio6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonio9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonirg6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonirg6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonisc6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonisc6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonisco6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbodoni/gbodonisco6r.tfm
%{_texmfdistdir}/fonts/type1/public/gfsbodoni/GFSBodoni-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/gfsbodoni/GFSBodoni-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/public/gfsbodoni/GFSBodoni-Italic.pfb
%{_texmfdistdir}/fonts/type1/public/gfsbodoni/GFSBodoni-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonib8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonib9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonibi8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonibi9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonibo8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonibo9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonidenomnums8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonii8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonii9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodoninumnums8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonio8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonio9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonirg8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonirg9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonisc8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonisc9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonisco8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonisco9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/bodonitabnums8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonib6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonibi6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonibo6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonii6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonio6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonio9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonirg6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonisc6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsbodoni/gbodonisco6a.vf
%{_texmfdistdir}/tex/latex/gfsbodoni/gfsbodoni.sty
%{_texmfdistdir}/tex/latex/gfsbodoni/lgrbodoni.fd
%{_texmfdistdir}/tex/latex/gfsbodoni/ot1bodoni.fd
%{_texmfdistdir}/tex/latex/gfsbodoni/t1bodoni.fd
%{_texmfdistdir}/tex/latex/gfsbodoni/ubodoninums.fd
%doc %{_texmfdistdir}/doc/fonts/gfsbodoni/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/gfsbodoni/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/gfsbodoni/README
%doc %{_texmfdistdir}/doc/fonts/gfsbodoni/README.TEXLIVE
%doc %{_texmfdistdir}/doc/fonts/gfsbodoni/gfsbodoni.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9873 |21cr|texlive-gfscomplutum-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19469
# category Package
# catalog-ctan /fonts/greek/gfs/gfscomplutum
# catalog-date 2008-08-19 21:00:04 +0200
# catalog-license ofl
# catalog-version 1.0
Name:		texlive-gfscomplutum
Version:	1.0
Release:	8
Summary:	A Greek font with a long history
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/gfs/gfscomplutum
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfscomplutum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfscomplutum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
GFS Complutum derives, via a long development, from a
minuscule-only font cut in the 16th century. An unsatisfactory
set of majuscules were added in the early 20th century, but its
author died before he could complete the revival of the font.
The Greek Font Society has released this version, which has a
new set of majuscules.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gfscomplutum/GFSComplutum-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/gfscomplutum/gpcomplutum.enc
%{_texmfdistdir}/fonts/map/dvips/gfscomplutum/gfscomplutum.map
%{_texmfdistdir}/fonts/opentype/public/gfscomplutum/GFSPolyglot.otf
%{_texmfdistdir}/fonts/tfm/public/gfscomplutum/gcomplutum8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfscomplutum/gcomplutum8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfscomplutum/gcomplutumo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfscomplutum/gcomplutumo8r.tfm
%{_texmfdistdir}/fonts/type1/public/gfscomplutum/GFSComplutum-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/gfscomplutum/gcomplutum8a.vf
%{_texmfdistdir}/fonts/vf/public/gfscomplutum/gcomplutumo8a.vf
%{_texmfdistdir}/tex/latex/gfscomplutum/gfscomplutum.sty
%{_texmfdistdir}/tex/latex/gfscomplutum/lgrcomplutum.fd
%doc %{_texmfdistdir}/doc/fonts/gfscomplutum/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/gfscomplutum/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/gfscomplutum/README
%doc %{_texmfdistdir}/doc/fonts/gfscomplutum/README.TEXLIVE
%doc %{_texmfdistdir}/doc/fonts/gfscomplutum/gfscomplutum.pdf
%doc %{_texmfdistdir}/doc/fonts/gfscomplutum/gfscomplutum.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9874 |21cr|texlive-gfsdidot-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gfsdidot
Version:	20190228
Release:	1
Summary:	A Greek font based on Didot's work
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/gfs/gfsdidot
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsdidot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsdidot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The design of Didot's 1805 Greek typeface was influenced by the
neoclassical ideals of the late 18th century. The font was
brought to Greece at the time of the 1821 Greek Revolution, by
Didot's son, and was very widely used. The present version is
provided by the Greek Font Society. The font supports the Greek
alphabet, and is accompanied by a matching Latin alphabet based
on Zapf's Palatino. LaTeX support is provided, using the OT1,
T1 and LGR encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gfsdidot
%{_texmfdistdir}/fonts/enc/dvips/gfsdidot
%{_texmfdistdir}/fonts/map/dvips/gfsdidot
%{_texmfdistdir}/fonts/opentype/public/gfsdidot
%{_texmfdistdir}/fonts/tfm/public/gfsdidot
%{_texmfdistdir}/fonts/type1/public/gfsdidot
%{_texmfdistdir}/fonts/vf/public/gfsdidot
%{_texmfdistdir}/tex/latex/gfsdidot
%doc %{_texmfdistdir}/doc/fonts/gfsdidot

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9875 |21cr|texlive-gfsdidotclassic-52778-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gfsdidotclassic

Summary:	The classic version of GFSDidot
Name:		texlive-gfsdidotclassic
Version:	52778
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The classic version of GFSDidot provided for Unicode TeX
engines.

%files
%doc %{_texmfdistdir}/doc/fonts/gfsdidotclassic
%{_texmfdistdir}/fonts/opentype/public/gfsdidotclassic

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9876 |21cr|texlive-gfsneohellenic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31979
# category Package
# catalog-ctan /fonts/greek/gfs/gfsneohellenic
# catalog-date 2013-10-23 14:10:10 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-gfsneohellenic
Version:	20190228
Release:	1
Summary:	A Greek font in the Neo-Hellenic style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/gfs/gfsneohellenic
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsneohellenic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsneohellenic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The NeoHellenic style evolved in academic circles in the 19th
and 20th century; the present font follows a cut commissioned
from Monotype in 1927. The present version was provided by the
Greek Font Society. The font supports both Greek and Latin
characters, and has been adjusted to work well with the
cmbright fonts for mathematics support. LaTeX support of the
fonts is provided, offering OT1, T1 and LGR encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gfsneohellenic/GFSNeohellenic-Bold.afm
%{_texmfdistdir}/fonts/afm/public/gfsneohellenic/GFSNeohellenic-BoldItalic.afm
%{_texmfdistdir}/fonts/afm/public/gfsneohellenic/GFSNeohellenic-Italic.afm
%{_texmfdistdir}/fonts/afm/public/gfsneohellenic/GFSNeohellenic-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenic.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenicdenomnums.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenicec.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenicecsc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenicel.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenicelsc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenicmath.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenicnumnums.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenicsc.enc
%{_texmfdistdir}/fonts/enc/dvips/gfsneohellenic/neohellenictabnums.enc
%{_texmfdistdir}/fonts/map/dvips/gfsneohellenic/gfsneohellenic.map
%{_texmfdistdir}/fonts/opentype/public/gfsneohellenic/GFSNeohellenic.otf
%{_texmfdistdir}/fonts/opentype/public/gfsneohellenic/GFSNeohellenicBold.otf
%{_texmfdistdir}/fonts/opentype/public/gfsneohellenic/GFSNeohellenicBoldIt.otf
%{_texmfdistdir}/fonts/opentype/public/gfsneohellenic/GFSNeohellenicIt.otf
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gfsneohellenicmath8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gfsneohellenicmath8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicb6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicb6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicbi6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicbi6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicbo6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicbo6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenici6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenici6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenico6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenico6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicrg6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicrg6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicsc6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicsc6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicsco6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/gneohellenicsco6r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicb8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicb9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicb9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicbi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicbi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicbi9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicbi9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicbo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicbo8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicbo9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicbo9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicdenomnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicdenomnums8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenici8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenici8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenici9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenici9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicnumnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicnumnums8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenico8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenico8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenico9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenico9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicrg8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicrg8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicrg9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicrg9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicsc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicsc9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicsc9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicsco8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicsco8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicsco9a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenicsco9r.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenictabnums8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsneohellenic/neohellenictabnums8r.tfm
%{_texmfdistdir}/fonts/type1/public/gfsneohellenic/GFSNeohellenic-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/gfsneohellenic/GFSNeohellenic-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/public/gfsneohellenic/GFSNeohellenic-Italic.pfb
%{_texmfdistdir}/fonts/type1/public/gfsneohellenic/GFSNeohellenic-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gfsneohellenicmath8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gneohellenicb6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gneohellenicbi6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gneohellenicbo6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gneohellenici6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gneohellenico6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gneohellenicrg6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gneohellenicsc6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/gneohellenicsco6a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicb8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicb9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicbi8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicbi9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicbo8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicbo9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicdenomnums8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenici8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenici9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicnumnums8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenico8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenico9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicrg8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicrg9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicsc8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicsc9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicsco8a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenicsco9a.vf
%{_texmfdistdir}/fonts/vf/public/gfsneohellenic/neohellenictabnums8a.vf
%{_texmfdistdir}/tex/latex/gfsneohellenic/gfsneohellenic.sty
%{_texmfdistdir}/tex/latex/gfsneohellenic/lgrneohellenic.fd
%{_texmfdistdir}/tex/latex/gfsneohellenic/omlneohellenic.fd
%{_texmfdistdir}/tex/latex/gfsneohellenic/ot1neohellenic.fd
%{_texmfdistdir}/tex/latex/gfsneohellenic/t1neohellenic.fd
%{_texmfdistdir}/tex/latex/gfsneohellenic/uneohellenicnums.fd
%doc %{_texmfdistdir}/doc/fonts/gfsneohellenic/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/gfsneohellenic/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/gfsneohellenic/README
%doc %{_texmfdistdir}/doc/fonts/gfsneohellenic/README.TEXLIVE
%doc %{_texmfdistdir}/doc/fonts/gfsneohellenic/VERSION

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9877 |21cr|texlive-gfsneohellenicmath-63928-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gfsneohellenicmath

Summary:	A Greek math font in the Neo-Hellenic style
Name:		texlive-gfsneohellenicmath
Version:	63928
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gfsneohellenicot.sty) = 2024
BuildArch:	noarch

%description
The GFSNeohellenic font, a historic font first designed by
Victor Scholderer, and digitized by George Matthiopoulos of the
Greek Font Society (GFS), now has native support for
Mathematics. The project was commissioned to GFS by the
Department of Mathematics of the University of the Aegean,
Samos, Greece. The Math Table was constructed by the
Mathematics Professor A. Tsolomitis. A useful application is in
beamer documents since this is a Sans Math font. The
GFSNeohellenic fontfamily supports many languages (including
Greek), and it is distributed (both text and math) under the
OFL license.

%files
%doc %{_texmfdistdir}/doc/fonts/gfsneohellenicmath/
%{_texmfdistdir}/fonts/opentype/public/gfsneohellenicmath/
%{_texmfdistdir}/tex/latex/gfsneohellenicmath/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9878 |21cr|texlive-gfssolomos-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/greek/gfs/gfssolomos
# catalog-date 2008-08-19 21:00:04 +0200
# catalog-license ofl
# catalog-version 1.0
Name:		texlive-gfssolomos
Version:	1.0
Release:	8
Summary:	A Greek-alphabet font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/gfs/gfssolomos
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfssolomos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfssolomos.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Solomos is a font which traces its descent from a
calligraphically-inspired font of the mid-19th century. LaTeX
support, for use with the LGR encoding only, is provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gfssolomos/GFSSolomos-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/gfssolomos/gpsolomos.enc
%{_texmfdistdir}/fonts/map/dvips/gfssolomos/gfssolomos.map
%{_texmfdistdir}/fonts/opentype/public/gfssolomos/GFSSolomos.otf
%{_texmfdistdir}/fonts/tfm/public/gfssolomos/gsolomos8a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfssolomos/gsolomos8r.tfm
%{_texmfdistdir}/fonts/type1/public/gfssolomos/GFSSolomos-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/gfssolomos/gsolomos8a.vf
%{_texmfdistdir}/tex/latex/gfssolomos/gfssolomos.sty
%{_texmfdistdir}/tex/latex/gfssolomos/lgrsolomos.fd
%doc %{_texmfdistdir}/doc/fonts/gfssolomos/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/gfssolomos/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/gfssolomos/README
%doc %{_texmfdistdir}/doc/fonts/gfssolomos/gfssolomos.pdf
%doc %{_texmfdistdir}/doc/fonts/gfssolomos/gfssolomos.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9879 |21cr|texlive-ghsystem-4.8c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ghsystem
Version:	4.8c
Release:	1
Summary:	Typeset all the hazard and precautionary statements and pictograms
Group:		Publishing
URL:		https://www.ctan.org/pkg/ghsystem
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ghsystem.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ghsystem.doc.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea
Requires: texlive-actuarialangle

%description
The package provides the means to typeset all the hazard and precautionary statements and pictograms in a straightforward way

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/ghsystem
%doc /usr/share/texmf-dist/doc/latex/ghsystem

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc %{buildroot}/usr/share/texmf-dist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9880 |21cr|texlive-gillcm-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19878
# category Package
# catalog-ctan undef
# catalog-date 2010-08-11 13:58:09 +0200
# catalog-license other-free
# catalog-version 1.1
Name:		texlive-gillcm
Version:	1.1
Release:	8
Summary:	Alternative unslanted italic Computer Modern fonts
Group:		Publishing
URL:		http://tug.org/texlive
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gillcm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gillcm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a demonstration of the use of virtual fonts for unusual
effects: the package implements an old idea of Eric Gill. The
package was written for the author's talk at TUG 2010.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/gillcm/cmg.map
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgb8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgbi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgbi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgbi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgbiu7t.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgbiu8c.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgbiu8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgbiu8t.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgm8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgmi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgmi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgmi8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgmi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgmiu7t.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgmiu8c.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgmiu8r.tfm
%{_texmfdistdir}/fonts/tfm/public/gillcm/cmgmiu8t.tfm
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgbi7t.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgbi8c.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgbi8t.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgbiu7t.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgbiu8c.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgbiu8t.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgmi7t.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgmi8c.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgmi8t.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgmiu7t.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgmiu8c.vf
%{_texmfdistdir}/fonts/vf/public/gillcm/cmgmiu8t.vf
%{_texmfdistdir}/tex/latex/gillcm/gillcm.sty
%{_texmfdistdir}/tex/latex/gillcm/ot1cmg.fd
%{_texmfdistdir}/tex/latex/gillcm/t1cmg.fd
%{_texmfdistdir}/tex/latex/gillcm/ts1cmg.fd
%doc %{_texmfdistdir}/doc/latex/gillcm/README
%doc %{_texmfdistdir}/doc/latex/gillcm/gillcm.bib
%doc %{_texmfdistdir}/doc/latex/gillcm/gillcm.dtx
%doc %{_texmfdistdir}/doc/latex/gillcm/gillcm.ins
%doc %{_texmfdistdir}/doc/latex/gillcm/gillcm.pdf
%doc %{_texmfdistdir}/doc/latex/gillcm/sample.pdf
%doc %{_texmfdistdir}/doc/latex/gillcm/sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9881 |21cr|texlive-gillius-64865-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gillius

Summary:	Gillius fonts with LaTeX support
Name:		texlive-gillius
Version:	64865
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex-gillius = 2024
Provides:	tex(gillius2.sty) = 2024
Provides:	tex(gillius.map) = 2024
Provides:	tex(gillius.sty) = 2024
Provides:	tex(gls_4bsedw.enc) = 2024
Provides:	tex(gls_a6mi7n.enc) = 2024
Provides:	tex(gls_az7pev.enc) = 2024
Provides:	tex(gls_bg5e7z.enc) = 2024
Provides:	tex(gls_efuo7w.enc) = 2024
Provides:	tex(gls_lf6eoq.enc) = 2024
Provides:	tex(gls_pqq4vh.enc) = 2024
Provides:	tex(gls_shb4ap.enc) = 2024
Provides:	tex(LY1GilliusADFCond-LF.fd) = 2024
Provides:	tex(LY1GilliusADF-LF.fd) = 2024
Provides:	tex(LY1GilliusADFNoTwoCond-LF.fd) = 2024
Provides:	tex(LY1GilliusADFNoTwo-LF.fd) = 2024
Provides:	tex(OT1GilliusADFCond-LF.fd) = 2024
Provides:	tex(OT1GilliusADF-LF.fd) = 2024
Provides:	tex(OT1GilliusADFNoTwoCond-LF.fd) = 2024
Provides:	tex(OT1GilliusADFNoTwo-LF.fd) = 2024
Provides:	tex(T1GilliusADFCond-LF.fd) = 2024
Provides:	tex(T1GilliusADF-LF.fd) = 2024
Provides:	tex(T1GilliusADFNoTwoCond-LF.fd) = 2024
Provides:	tex(T1GilliusADFNoTwo-LF.fd) = 2024
Provides:	tex(TS1GilliusADFCond-LF.fd) = 2024
Provides:	tex(TS1GilliusADF-LF.fd) = 2024
Provides:	tex(TS1GilliusADFNoTwoCond-LF.fd) = 2024
Provides:	tex(TS1GilliusADFNoTwo-LF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Gillius and Gillius No. 2 families of sans
serif fonts and condensed versions of them, designed by Hirwen
Harendal. According to the designer, the fonts were inspired by
Gill Sans.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/gillius/
%{_texmfdistdir}/fonts/map/dvips/gillius/
%{_texmfdistdir}/fonts/opentype/arkandis/gillius/
%{_texmfdistdir}/fonts/tfm/arkandis/gillius/
%{_texmfdistdir}/fonts/type1/arkandis/gillius/
%{_texmfdistdir}/fonts/vf/arkandis/gillius/
%{_texmfdistdir}/tex/latex/gillius/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9882 |21cr|texlive-gindex-52311-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gindex

Summary:	Formatting indexes
Name:		texlive-gindex
Version:	52311
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gindex.sty) = 2024
BuildArch:	noarch

%description
This package provides a way to generate the format of index
entries from within LaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/gindex
%{_texmfdistdir}/makeindex/gindex
%{_texmfdistdir}/tex/latex/gindex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9883 |21cr|texlive-gitlog-0.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29776
# category Package
# catalog-ctan /macros/latex/contrib/mpgraphics
# catalog-date 2013-04-08 09:07:09 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-gitlog
Version:	0.0
Release:	12
Summary:	Git log
Group:		Publishing
URL:		https://ctan.org/pkg/gitlog
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gitlog.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gitlog.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows git change log history 
to be incorporated into LATEX documents; the
 log data is obtained from the git distributed
 version control system.

The current release (0.0.beta) is a proof-of-concept
 release to allow users an early evaluation and to attract
 ideas and support. Requests and suggestions, as well 
as code contributions are welcome.
----------------
%files
%{_texmfdistdir}/tex/latex/gitlog/gitlog.bbx
%{_texmfdistdir}/tex/latex/gitlog/gitlog.dbx 
%{_texmfdistdir}/tex/latex/gitlog/gitlog.sty
#- doc
%doc %{_texmfdistdir}/doc/latex/gitlog/README.md
%doc %{_texmfdistdir}/doc/latex/gitlog/gitlog.pdf
%doc %{_texmfdistdir}/doc/latex/gitlog/gitHeadLocal.gin
%doc %{_texmfdistdir}/doc/latex/gitlog/gitlog.sample.bib
%doc %{_texmfdistdir}/doc/latex/gitlog/gitlog.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9884 |21cr|texlive-gitstatus-64662-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gitstatus

Summary:	Include Git information in the document as watermark or via variables
Name:		texlive-gitstatus
Version:	64662
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gitstatus.sty) = 2024
BuildArch:	noarch

%description
If your LaTeX-document is version-controlled with git, you
might encounter situations, where you want to include some
information of your git-repository into your LaTeX-document-
e.g. to keep track on who gave you feedback on which version of
your document. This git-information can be included on every
page by a watermark or (for custom needs) via provided
variables.

%files
%doc %{_texmfdistdir}/doc/latex/gitstatus
%{_texmfdistdir}/tex/latex/gitstatus

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9885 |21cr|texlive-gitver-63920-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gitver

Summary:	Get the current git hash of a project and typeset it in the document
Name:		texlive-gitver
Version:	63920
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(catchfile.sty)
#Requires:	tex(datetime.sty)
#Requires:	tex(hyperref.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(pdftexcmds.sty)
Provides:	tex(gitver.sty) = 2024
BuildArch:	noarch

%description
This package will get a description of the current git version
of the document and store it in a command \gitVer. If memoir or
fancyhdr are in use, it will also add this to the document
footers unless the option "noheader" is passed. The package
also defines a command \versionBox which outputs a box
containing the version and date of compilation. The package
requires hyperref, catchfile, pdftexcmds, and datetime.

%files
%doc %{_texmfdistdir}/doc/latex/gitver
%{_texmfdistdir}/tex/latex/gitver

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9886 |21cr|texlive-glosmathtools-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category TLCore
# catalog-ctan /graphics/glosmathtools/glosmathtools.pl
# catalog-date 2009-11-09 13:03:38 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-glosmathtools
Version:	1.0
Release:	2
Summary:	The glosmathtools package can be used to generate a mathematical nomenclature 
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/glosmathtools
License:	GPL
Source0:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/glosmathtools.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/glosmathtools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-glosmathtools.bin = %{EVRD}

%description
This package can be used to generate a mathematical nomenclature (also called “list of symbols” or “notation”). 
It is based on the glossaries package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/glosmathtools
%doc %{_texmfdistdir}/doc/latex/glosmathtools

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9887 |21cr|texlive-glossaries-danish-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-glossaries-danish
Version:	1.0
Release:	1
Summary:	Danish language module for glossaries packages
Group:		Publishing
URL:		https://www.ctan.org/pkg/glossaries-danish
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-danish.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-danish.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-danish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides Danish language module for glossaries packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/glossaries-danish/*
%doc %{_texmfdistdir}/doc/latex/glossaries-danish/*
%doc %{_texmfdistdir}/source/latex/glossaries-danish/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9888 |21cr|texlive-glossaries-dutch-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-glossaries-dutch
Version:	1.1
Release:	1
Summary:	Dutch language module for glossaries packages
Group:		Publishing
URL:		https://www.ctan.org/pkg/glossaries-dutch
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-dutch.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-dutch.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-dutch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides Dutch language module for glossaries packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/glossaries-dutch/*
%doc %{_texmfdistdir}/doc/latex/glossaries-dutch/*
%doc %{_texmfdistdir}/source/latex/glossaries-dutch/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9889 |21cr|texlive-glossaries-english-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		texlive-glossaries-english
Version:	20190228
Release:	1
Summary:	English language module for glossaries package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/glossaries-english
License:	lppl1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries-english.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries-english.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries-english.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
English language module for glossariesr package.

%prep
%setup -c -a1 -a2
%autopatch -p1

%build

%install
rm -rf tlpkg
mkdir -p %{buildroot}%{_texmfdistdir}
cp -a * %{buildroot}%{_texmfdistdir}

%files
%doc %{_texmfdistdir}/source/latex/glossaries-english
%{_texmfdistdir}/tex/latex/glossaries-english
%doc %{_texmfdistdir}/doc/latex/glossaries-english

%post -p %{_sbindir}/texlive.post

%postun
[ "$1" -eq 0 ] && %{_sbindir}/texlive.post
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9890 |21cr|texlive-glossaries-extra-1.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-glossaries-extra
Epoch:		1
Version:	1.50
Release:	1
Summary:	An extension to the glossaries package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/glossaries-extra
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries-extra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries-extra.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries-extra.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides improvements and extra features to the glossaries package. 
Some of the default glossaries.sty behaviour is changed by glossaries-extra.sty.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/glossaries-extra
%{_texmfdistdir}/tex/latex/glossaries-extra
%doc %{_texmfdistdir}/doc/latex/glossaries-extra
#- source
%doc %{_texmfdistdir}/source/latex/glossaries-extra

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9891 |21cr|texlive-glossaries-finnish-54080-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname glossaries-finnish

Summary:	Finnish language module for glossaries package
Name:		texlive-glossaries-finnish
Version:	54080
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(glossaries.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(glossaries-finnish-ascii.ldf) = 2024
Provides:	tex(glossaries-finnish.ldf) = 2024
Provides:	tex(glossaries-finnish-utf8.ldf) = 2024
BuildArch:	noarch

%description
Finnish language module for glossaries package.

%files
%doc %{_texmfdistdir}/doc/latex/glossaries-finnish/
%{_texmfdistdir}/tex/latex/glossaries-finnish/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9892 |21cr|texlive-glossaries-french-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-glossaries-french
Version:	1.1
Release:	1
Summary:	French language module for glossaries package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/glossaries-french
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-french.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-french.doc.tar.xz
Source2:    http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-french.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
French language module for glossaries package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9893 |21cr|texlive-glossaries-german-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-glossaries-german
Version:	1.0
Release:	1
Summary:	German language module for glossaries package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/glossaries-german
License:	lppl1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-german.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-german.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/glossaries-german.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
German language module for glossaries package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9894 |21cr|texlive-glossaries-italian-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Italian language module for glossaries package
Name:		texlive-glossaries-italian
Version:	1.0
Release:	1
License:	The LATEX Project Public License 1.3
Group:		Publishing
Url:		https://ctan.org/tex-archive/macros/latex/contrib/glossaries-italian
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/glossaries-italian.source.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/glossaries-italian.tar.xz
BuildRequires:	texlive-tlpkg
Requires(pre): 	texlive-tlpkg
Requires(post):	texlive-kpathsea
BuildArch: noarch

%description
Italian language module for glossaries package.

%prep
%setup -c -a0 -a1

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source %{buildroot}%{_texmfdistdir}

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/source/*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9895 |21cr|texlive-glossaries-nynorsk-55189-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname glossaries-nynorsk

Summary:	Nynorsk language module for the glossaries package
Name:		texlive-glossaries-nynorsk
Version:	55189
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
Norwegian Nynorsk language module for the glossaries package.

%files
%doc %{_texmfdistdir}/doc/latex/glossaries-nynorsk
%{_texmfdistdir}/tex/latex/glossaries-nynorsk

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9896 |21cr|texlive-glossaries-polish-35665.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname glossaries-polish

Summary:	Polish language module for glossaries package
Name:		texlive-glossaries-polish
Version:	35665.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-glossaries-polish = 2024
Provides:	tex(glossaries-polish.ldf) = 2024
Provides:	tex(glossaries-polish-noenc.ldf) = 2024
Provides:	tex(glossaries-polish-utf8.ldf) = 2024
BuildArch:	noarch

%description
Polish language module for glossariesr package.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/glossaries-polish/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9897 |21cr|texlive-glossaries-portuges-36064.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname glossaries-portuges

Summary:	Portuges language module for glossaries package
Name:		texlive-glossaries-portuges
Version:	36064.1.1
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-glossaries-portuges = 2024
Provides:	tex(glossaries-portuges.ldf) = 2024
Provides:	tex(glossaries-portuges-noenc.ldf) = 2024
Provides:	tex(glossaries-portuges-utf8.ldf) = 2024
Provides:	tex(glossaries-pt-BR.ldf) = 2024
BuildArch:	noarch

%description
Portuges language module for glossaries package.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/glossaries-portuges/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9898 |21cr|texlive-glossaries-serbian-35665.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname glossaries-serbian

Summary:	Serbian language module for glossaries package
Name:		texlive-glossaries-serbian
Version:	35665.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-glossaries-serbian = 2024
Provides:	tex(glossaries-serbian.ldf) = 2024
Provides:	tex(glossaries-serbian-noenc.ldf) = 2024
Provides:	tex(glossaries-serbian-utf8.ldf) = 2024
BuildArch:	noarch

%description
Serbian language module for glossaries package.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/glossaries-serbian/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9899 |21cr|texlive-glossaries-slovene-51211-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname glossaries-slovene

Summary:	Slovene language module for glossaries package
Name:		texlive-glossaries-slovene
Version:	51211
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(glossaries-slovene.ldf) = 2024
BuildArch:	noarch

%description
Slovene language module for glossaries package.

%files
%doc %{_texmfdistdir}/doc/latex/glossaries-slovene
%{_texmfdistdir}/tex/latex/glossaries-slovene

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9900 |21cr|texlive-glossaries-spanish-35665.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname glossaries-spanish

Summary:	Spanish language module for glossaries package
Name:		texlive-glossaries-spanish
Version:	35665.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-glossaries-spanish = 2024
Provides:	tex(glossaries-spanish.ldf) = 2024
Provides:	tex(glossaries-spanish-noenc.ldf) = 2024
Provides:	tex(glossaries-spanish-utf8.ldf) = 2024
BuildArch:	noarch

%description
Spanish language module for glossaries package.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/glossaries-spanish/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9901 |21cr|texlive-gloss-occitan-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gloss-occitan
Version:	0.1
Release:	1
Summary:	The Occitan language module for polyglossia
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/gloss-occitan
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gloss-occitan.source.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gloss-occitan.doc.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/gloss-occitan.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a language definition file for use with plyglossia, which 
establishes Occitan conventions in a document even if Occitan is not the main 
language of the document.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9902 |21cr|texlive-gnu-freefont-20170414-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _python_bytecompile_build 0
# revision 29349
# category Package
# catalog-ctan /fonts/gnu-freefont
# catalog-date 2012-07-05 15:28:28 +0200
# catalog-license gpl3
# catalog-version undef
Name:		texlive-gnu-freefont
Version:	20170414
Release:	3
Summary:	A Unicode font, with rather wide coverage
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/gnu-freefont
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gnu-freefont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gnu-freefont.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gnu-freefont.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	fontforge
%global __requires_exclude /usr/bin/fontforge

%description
The package provides a set of outline (i.e. OpenType) fonts
covering as much as possible of the Unicode character set. The
set consists of three typefaces: one monospaced and two
proportional (one with uniform and one with modulated stroke).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeMono.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeMonoBold.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeMonoBoldOblique.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeMonoOblique.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeSans.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeSansBold.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeSansBoldOblique.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeSansOblique.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeSerif.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeSerifBold.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeSerifBoldItalic.otf
%{_texmfdistdir}/fonts/opentype/public/gnu-freefont/FreeSerifItalic.otf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeMono.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeMonoBold.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeMonoBoldOblique.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeMonoOblique.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeSans.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeSansBold.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeSansBoldOblique.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeSansOblique.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeSerif.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeSerifBold.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeSerifBoldItalic.ttf
%{_texmfdistdir}/fonts/truetype/public/gnu-freefont/FreeSerifItalic.ttf
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/AUTHORS
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/BUILDING
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/COPYING
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/CREDITS
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/ChangeLog
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/INSTALL
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/Makefile
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/README
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/TROUBLESHOOTING
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/USAGE
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/notes/README-downloads.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/notes/building.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/notes/features.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/notes/maintenance.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/notes/troubleshooting.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/notes/usage.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/notes/webfont_guidelines.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/generate/MacTT
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/generate/OpenType
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/generate/TrueType
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/generate/WOFF
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/generate/buildutils.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/generate/buildutils.pyc
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/report/OS2UnicodeRange
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/report/OpenType/UnicodeRanges.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/report/OpenType/__init__.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/report/kernclasses.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/report/ligatureLookups.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/report/private_use.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/report/range_report.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/script-menu/nameBySlot.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/script-menu/unnameBySlot.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/CheckConformance.pl
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/MES-1.lst
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/MES-1.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/MES-2.lst
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/MES-2.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/MES-3B.lst
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/MES-3B.txt
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/WGL4.lst
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/MES-Conformance/mes-list-expand.pl
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/checkGlyphNumbers.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/findBackLayers.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/isMonoMono.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/ranges/Arabic/arabic_test.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/ranges/Arabic/generate_arabic_shaping.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/ranges/Arabic/unicode_joining.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/test/validate.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/utility/KerningNumerals.pl
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/utility/fontforge-interp.sh
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/utility/freefont-ttf.spec
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/utility/hex_range.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/utility/metafont/bulk_eps_import.py
%doc %{_texmfdistdir}/doc/fonts/gnu-freefont/tools/utility/special-purpose/makeBraille.py
#- source
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeMono.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeMonoBold.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeMonoBoldOblique.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeMonoOblique.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeSans.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeSansBold.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeSansBoldOblique.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeSansOblique.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeSerif.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeSerifBold.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeSerifBoldItalic.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/FreeSerifItalic.sfd
%doc %{_texmfdistdir}/source/fonts/gnu-freefont/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9903 |21cr|texlive-gobble-64967-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gobble

Summary:	More gobble macros for PlainTeX and LaTeX
Name:		texlive-gobble
Version:	64967
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-gobble = 2024
Provides:	tex(gobble.sty) = 2024
Provides:	tex(gobble.tex) = 2024
Provides:	tex(gobble-user.sty) = 2024
Provides:	tex(gobble-user.tex) = 2024
BuildArch:	noarch

%description
The LaTeX package gobble includes several gobble macros not
included in the LaTeX kernel. These macros remove a number of
arguments after them, a feature regulary used inside other
macros. This includes gobble macros for optional arguments. The
LaTeX package gobble-user provides these macros at the user
level, i.e. using names without @ so that these can be used
without \makeatletter and \makeatother. The same macros are
provided inside .tex files for use with plain-TeX or other TeX
formats. However, the gobble macros for optional macros require
\@ifnextchar to be defined.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/generic/gobble/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9904 |21cr|texlive-gofonts-64358-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gofonts

Summary:	GoSans and GoMono fonts with LaTeX support
Name:		texlive-gofonts
Version:	64358
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(go_2qimm2.enc) = 2024
Provides:	tex(go_4whde3.enc) = 2024
Provides:	tex(go_73mlya.enc) = 2024
Provides:	tex(go_c3licl.enc) = 2024
Provides:	tex(go_dhlxve.enc) = 2024
Provides:	tex(go_icpxvt.enc) = 2024
Provides:	tex(go_iypgt7.enc) = 2024
Provides:	tex(go.map) = 2024
Provides:	tex(GoMono.sty) = 2024
Provides:	tex(GoSans.sty) = 2024
Provides:	tex(go_zwiz3b.enc) = 2024
Provides:	tex(LGRGoMono-TLF.fd) = 2024
Provides:	tex(LGRGo-TLF.fd) = 2024
Provides:	tex(LY1GoMono-TLF.fd) = 2024
Provides:	tex(LY1Go-TLF.fd) = 2024
Provides:	tex(OT1GoMono-TLF.fd) = 2024
Provides:	tex(OT1Go-TLF.fd) = 2024
Provides:	tex(T1GoMono-TLF.fd) = 2024
Provides:	tex(T1Go-TLF.fd) = 2024
Provides:	tex(TS1GoMono-TLF.fd) = 2024
Provides:	tex(TS1Go-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the GoSans and GoMono families of fonts designed by
the Bigelow & Holmes foundry for the Go project. GoSans is
available in three weights: Regular, Medium, and Bold (with
corresponding italics). GoMono is available in regular and
bold, with italics. Notes on the design may be found at
https://blog.golang.org/go-fonts.

%files
%doc %{_texmfdistdir}/doc/fonts/gofonts/
%{_texmfdistdir}/fonts/enc/dvips/gofonts/
%{_texmfdistdir}/fonts/map/dvips/gofonts/
%{_texmfdistdir}/fonts/tfm/bh/gofonts/
%{_texmfdistdir}/fonts/truetype/bh/gofonts/
%{_texmfdistdir}/fonts/type1/bh/gofonts/
%{_texmfdistdir}/fonts/vf/bh/gofonts/
%{_texmfdistdir}/tex/latex/gofonts/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9905 |21cr|texlive-gothic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gothic
Version:	20190228
Release:	1
Summary:	A collection of old German-style fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/gothic
License:	COLLECTION
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gothic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gothic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of fonts that reproduce those used in "old German"
printing. The set comprises Gothic, Schwabacher and Fraktur
fonts, a pair of handwriting fonts, Suetterlin and Schwell, and
a font containing decorative initials. In addition, there are
two re-encoding packages for Haralambous's fonts, providing T1,
using virtual fonts, and OT1 and T1, using Metafont.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/gothic
%{_texmfdistdir}/fonts/tfm/public/gothic
%doc %{_texmfdistdir}/doc/fonts/gothic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9906 |21cr|texlive-gotoh-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category TLCore
# catalog-ctan /graphics/gotoh/gotoh.pl
# catalog-date 2009-11-09 13:03:38 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-gotoh
Version:	1.1
Release:	2
Summary:	An implementation of the Gotoh sequence alignment algorithm
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/gotoh
License:	MIT
Source0:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/gotoh.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/gotoh.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/gotoh.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-gotoh.bin = %{EVRD}

%description
This package calculates biological sequence alignment with the Gotoh algorithm. 
The package also provides an interface to control various settings including algorithm parameters

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gotoh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9907 |21cr|texlive-gradient-text-65567-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gradient-text

Summary:	Decorate text with linear gradient colors
Name:		texlive-gradient-text
Version:	65567
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gradient-text.sty) = 2024
BuildArch:	noarch

%description
This package enables writers to conveniently decorate text with
linear gradient colors. The RGB values of the first and the
last character are specified as parameters while the rest of
the text is colored automatically.

%files
%doc %{_texmfdistdir}/doc/latex/gradient-text
%{_texmfdistdir}/tex/latex/gradient-text

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9908 |21cr|texlive-grading-scheme-62505-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname grading-scheme

Summary:	Typeset grading schemes in tabular format
Name:		texlive-grading-scheme
Version:	62505
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(grading-scheme.sty) = 2024
BuildArch:	noarch

%description
This package aims at an easy-to-use interface to typeset
grading schemes in tabular format, in particular
grading-schemes of exercises of mathematical olympiads where
multiple solutions have to be graded and might offer mutual
exclusive ways of receiving points.

%files
%doc %{_texmfdistdir}/doc/latex/grading-scheme
%{_texmfdistdir}/tex/latex/grading-scheme

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9909 |21cr|texlive-gradstudentresume-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gradstudentresume
Version:	1.1
Release:	1
Summary:	A generic template for graduate student resumes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	lppl1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gradstudentresume.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gradstudentresume.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a template for graduate students writing an
academic CV. The goal is to create a flexible template that can
be customized based on each specific individual's needs.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9910 |21cr|texlive-grant-0.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-grant
Version:	0.0.5
Release:	1
Summary:	Classes for formatting federal grant proposals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/grant
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/grant.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/grant.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/grant.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX classes for formatting federal grant proposals: grant:
Base class for formatting grant proposals grant-arl: Army
Research Laboratory grant-darpa: Defense Advanced Research
Projects Agency grant-doe: Department of Energy grant-nih:
National Institutes of Health grant-nrl: Naval Research
Laboratory grant-nsf: National Science Foundation grant-onr:
Office of Naval Research

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9911 |21cr|texlive-graphicscache-65318-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname graphicscache

Summary:	Cache includegraphics calls
Name:		texlive-graphicscache
Version:	65318
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(graphicscache.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides caching of \includegraphics calls,
with several useful effects: Recompilations are much faster
(10x speedup observed). Images can be postprocessed with
ghostscript before inclusion, thus: Automatic downscaling to
specified DPI Automatic JPEG compression with configurable
quality Much smaller files (e.g. 10MB instead of 150MB)! Note:
Due to the one-by-one invocation of pdflatex and ghostscript
for each graphics element, the first compilation is typically
slower than usual. Note: graphicscache needs the \write18 call
(also called shell escape). This is a security risk if you have
untrusted TeX sources. graphicscache supports pdfLaTeX and
LuaLaTeX; XeLaTeX is not supported.

%files
%doc %{_texmfdistdir}/doc/latex/graphicscache
%{_texmfdistdir}/tex/latex/graphicscache

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9912 |21cr|texlive-graphics-def-64487-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname graphics-def

Summary:	Colour and graphics option files
Name:		texlive-graphics-def
Version:	64487
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	texlive-epstopdf-pkg
Provides:	tex(dvipdfmx.def) = 2024
Provides:	tex(dvips.def) = 2024
Provides:	tex(dvisvgm.def) = 2024
Provides:	tex-graphics-def = 2024
Provides:	texlive-dvipdfmx-def = 2024
Provides:	texlive-dvisvgm-def = 2024
Provides:	texlive-luatex-def = 2024
Provides:	texlive-pdftex-def = 2024
Provides:	texlive-xetex-def = 2024
Provides:	tex(luatex.def) = 2024
Provides:	tex(pdftex.def) = 2024
Provides:	tex(xetex.def) = 2024
BuildArch:	noarch

%description
This bundle is a combined distribution consisting of dvips.def,
pdftex.def, luatex.def, xetex.def, dvipdfmx.def, and
dvisvgm.def driver option files for the LaTeX graphics and
color packages. It is hoped that by combining their source
repositories at https://github.com/latex3/graphics-def it will
be easier to coordinate updates.

%files
%{_texmfdistdir}/tex/latex/graphics-def/

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9913 |21cr|texlive-graphics-pln-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-graphics-pln
Version:	20190228
Release:	1
Summary:	LaTeX-style graphics for Plain TeX users
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/graphics
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics-pln.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics-pln.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Plain TeX graphics package is mostly a thin shell around
the LaTeX graphicx and color packages, with support of the
LaTeX-isms in those packages provided by miniltx (which is the
largest part of the bundle). The bundle also contains a file
"picture.tex", which is a wrapper around the autopict.sty, and
provides the LaTeX picture mode to Plain TeX users.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/graphics-pln
%doc %{_texmfdistdir}/doc/plain/graphics-pln

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9914 |21cr|texlive-graphpaper-63116-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname graphpaper

Summary:	A LaTeX class to generate several types of graph papers
Name:		texlive-graphpaper
Version:	63116
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(euclideangeometry.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xcolor.sty)
Provides:	tex(graphpaper.cls) = 2024
BuildArch:	noarch

%description
Graphpaper is a LaTeX document class which allows to print
several types of graph papers: bilinear (millimeter paper),
semilogarithmic, bilogarithmic, polar, log-polar, Smith charts.
It is based on the picture environment and its extensions.

%files
%doc %{_texmfdistdir}/doc/latex/graphpaper
%{_texmfdistdir}/tex/latex/graphpaper

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9915 |21cr|texlive-greektonoi-20160101-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-greektonoi 
Version:        20160101
Release:	1
Summary:	The greektonoi mapping extends the betababel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/greektonoi
License:	GNU Lesser General Public License 3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greektonoi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greektonoi.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The greektonoi mapping extends the betababel 
package or the babel polutonikogreek option 
to provide a simple way to insert ancient 
Greek texts with diacritical characters 
into your document using a similar method 
to the commonly used Beta Code transliteration, 
but with much more freedom. It is designed 
especially for the XETEX engine and it could 
also be used for fast and easy modification of 
monotonic greek texts to polytonic. The output 
text is natively encoded in Unicode, so it can 
be reused in any possible way. The greektonoi 
package provides, in addition to inserting 
greek accents and breathings, many other 
symbols used in greek numbers and arithmetic 
or in the greek archaic period. 
It could be used with greektonoi mapping 
or indepedently.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts
%{_texmfdistdir}/tex/latex/greektonoi/greektonoi.sty
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9916 |21cr|texlive-greenpoint-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/greenpoint
# catalog-date 2006-12-09 16:48:33 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-greenpoint
Version:	20190228
Release:	1
Summary:	The Green Point logo
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greenpoint
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greenpoint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greenpoint.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A MetaFont-implementation of the logo commonly known as 'Der
Grune Punkt' ('The Green Point'). In Austria, it can be found
on nearly every bottle. It should not be confused with the
'Recycle'-logo, implemented by Ian Green.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/greenpoint/greenpoint.mf
%{_texmfdistdir}/fonts/tfm/public/greenpoint/greenpoint.tfm
%doc %{_texmfdistdir}/doc/fonts/greenpoint/ChangeLog
%doc %{_texmfdistdir}/doc/fonts/greenpoint/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9917 |21cr|texlive-grfext-20191205-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#https://ctan.org/pkg/grfext

Name:		texlive-grfext
Version:	20191205
Release:	2
Summary:	Manipulate the graphics package's list of extensions
Group:		Publishing
URL:		https://github.com/ho-tex/grfext
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grfext.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides macros for adding to, and reordering the
list of graphics file extensions recognised by package
graphics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/grfext/grfext.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9918 |21cr|texlive-grffile-52756-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname grffile

Summary:	Extended file name support for graphics (legacy package)
Name:		texlive-grffile
Version:	52756
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(grffile-2017-06-30.sty) = 2024
Provides:	tex(grffile.sty) = 2024
BuildArch:	noarch

%description
The original package extended the file name processing of
package graphics to support a larger range of file names. The
base LaTeX code now supports multiple dots and spaces, and this
package by default is a stub that just loads graphicx. However,
\usepackage{grffile}[=v1] may be used to access version 1(.18)
of the package if that is needed.

%files
%doc %{_texmfdistdir}/doc/latex/grffile
%{_texmfdistdir}/tex/latex/grffile

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9919 |21cr|texlive-gridpapers-58723-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gridpapers

Summary:	Graph paper backgrounds and color schemes
Name:		texlive-gridpapers
Version:	58723
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(geometry.sty)
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pagecolor.sty)
#Requires:	tex(tikzpagenodes.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(gridpapers.sty) = 2024
BuildArch:	noarch

%description
This package provides many preset yet customizable graph paper
backgrounds. Some of the preset patterns include standard
quadrille or graph pattern, dot grid, hexagons, isometric or
triangular grid, squares with 45deg "light cone" lines, ruled,
and more. Pattern sizes can be controlled via package options.
There are several preset color palletes, and colors can be
overridden. The package uses the PGF/TikZ package, and the
geometry package to control page size.

%files
%doc %{_texmfdistdir}/doc/latex/gridpapers
%{_texmfdistdir}/tex/latex/gridpapers

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9920 |21cr|texlive-gridslides-0.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gridslides
Version:	0.1.1
Release:	1
Summary:	Free form slides with blocks placed on a grid
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/gridslides
License:	The LATEX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gridslides.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gridslides.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows creating free form slides with blocks
placed on a grid. The blocks can be filled with text,
equations, figures etc. The resulting slides are similar to the
ones produced with LaTeX beamer, but more flexible. Sequential
unconvering of elements is supported. A compiler script is
provided which compiles each slide separately, this way
avoiding long compile times.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9921 |21cr|texlive-grotesq-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-grotesq
Version:	20190228
Release:	1
Summary:	URW Grotesq font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/grotesq
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grotesq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grotesq.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The directory contains a copy of the Type 1 font "URW Grotesq
2031 Bold' released under the GPL by URW, with supporting files
for use with (La)TeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/urw/grotesq
%{_texmfdistdir}/fonts/map/dvips/grotesq
%{_texmfdistdir}/fonts/tfm/urw/grotesq
%{_texmfdistdir}/fonts/type1/urw/grotesq
%{_texmfdistdir}/fonts/vf/urw/grotesq
%{_texmfdistdir}/tex/latex/grotesq
%doc %{_texmfdistdir}/doc/fonts/grotesq

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9922 |21cr|texlive-grundgesetze-1.02-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 58997
# category TLCore
# catalog-ctan /graphics/grundgesetze/grundgesetze.pl
# catalog-date 2021-04-28 13:03:38 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-grundgesetze
Version:	1.02
Release:	3
Summary:	A LaTeX2e package for typesetting
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/grundgesetze
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grundgesetze.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grundgesetze.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grundgesetze.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-grundgesetze.bin = %{EVRD}

%description
The package defines maths mode commands for typesetting Gottlob Frege’s concept-script in the 
style of his “Grundgesetze der Arithmetik” (Basic Laws of Arithmetic)

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/grundgesetze
%doc %{_texmfdistdir}/source/latex/grundgesetze
%doc %{_texmfdistdir}/doc/latex/grundgesetze

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9923 |21cr|texlive-gsemthesis-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gsemthesis
Version:	1.4
Release:	1
Summary:	Geneva School of Economics and Management PhD thesis format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gsemthesis
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gsemthesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gsemthesis.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gsemthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides a PhD thesis template for the Geneva School of Economics and Management (GSEM), University of Geneva, Switzerland.

#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9924 |21cr|texlive-gtrlib-largetrees-49062-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gtrlib-largetrees

Summary:	Library for genealogytree package aiming at large trees
Name:		texlive-gtrlib-largetrees
Version:	49062
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(gtrlib.largetrees.code.tex) = 2024
Provides:	tex(gtrlib.largetrees.sty) = 2024
BuildArch:	noarch

%description
The main goal of the gtrlib.largetrees package is to offer
additional database fields and formats for the genealogytree
package, particularly for typesetting large trees.

%files
%doc %{_texmfdistdir}/doc/latex/gtrlib-largetrees/
%{_texmfdistdir}/tex/latex/gtrlib-largetrees/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9925 |21cr|texlive-gudea-57359-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gudea

Summary:	The Gudea font face with support for LaTeX and pdfLaTeX
Name:		texlive-gudea
Version:	57359
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_i65yxe.enc) = 2024
Provides:	tex(a_lksl5v.enc) = 2024
Provides:	tex(a_qnu4g5.enc) = 2024
Provides:	tex(a_ys4752.enc) = 2024
Provides:	tex(Gudea.map) = 2024
Provides:	tex(Gudea.sty) = 2024
Provides:	tex(LY1Gudea-TLF.fd) = 2024
Provides:	tex(OT1Gudea-TLF.fd) = 2024
Provides:	tex(T1Gudea-TLF.fd) = 2024
Provides:	tex(TS1Gudea-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides the Gudea family of fonts designed by
Agustina Mingote, with support for LaTeX and pdfLaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/gudea
%{_texmfdistdir}/fonts/enc/dvips/gudea
%{_texmfdistdir}/fonts/map/dvips/gudea
%{_texmfdistdir}/fonts/tfm/public/gudea
%{_texmfdistdir}/fonts/type1/public/gudea
%{_texmfdistdir}/fonts/vf/public/gudea
%{_texmfdistdir}/tex/latex/gudea

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9926 |21cr|texlive-gzt-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gzt
Version:	1.4
Release:	1
Summary:	Bundle of classes for “La Gazette des Mathématiciens”
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gzt
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gzt.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gzt.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/gzt.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description

This bundle provides two classes and BibLATEX styles for the French journal “La Gazette des Mathématiciens”

gzt for the complete issues of the journal, aimed at the Gazette’s team,
gztarticle, intended for authors who wish to publish an article in the Gazette. This class’s goals are to
faithfully reproduce the layout of the Gazette, thus enabling the authors to be able to work their document in actual conditions, and
provide a number of tools (commands and environments) to facilitate the drafting of documents, in particular those containing mathematical formulas.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9927 |21cr|texlive-h2020proposal-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-h2020proposal
Version:	1.4
Release:	1
Summary:	LATEX class and template for EU H2020 RIA proposal
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/h2020proposal
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/h2020proposal.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/h2020proposal.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package consists of a class file as well as FET and ICT proposal templates
for writing EU H2020 RIA proposals and generating automatically the many cross-referenced tables that are required.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9928 |21cr|texlive-hagenberg-thesis-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hagenberg-thesis
Version:	1.4
Release:	1
Summary:	A Collection of LaTeX classes, style files, and example documents for academic manuscripts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/hagenberg-thesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/hagenberg-thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle contains a collection of modern LaTeX classes,
style files, and example documents for authoring Bachelor,
Master, or Diploma theses and related academic manuscripts in
English and German. Includes a comprehensive tutorial (in
German) with detailed instructions and authoring guidelines.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9929 |21cr|texlive-hamnosys-61941-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hamnosys

Summary:	A font for sign languages
Name:		texlive-hamnosys
Version:	61941
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hamnosys.sty) = 2024
BuildArch:	noarch

%description
The Hamburg Notation System, HamNoSys for short, is a system
for the phonetic transcription of signed languages. This
package makes HamNoSys available in XeLaTeX and LuaLaTeX. The
package provides a Unicode font for rendering HamNoSys symbols
as well as three methods for entering them.

%files
%doc %{_texmfdistdir}/doc/fonts/hamnosys
%{_texmfdistdir}/fonts/truetype/public/hamnosys
%{_texmfdistdir}/tex/latex/hamnosys

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9930 |21cr|texlive-handin-0.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-handin
Version:	0.1.1
Release:	1
Summary:	Light weight template for creating school submissions using LATEX
Group:		Publishing
URL:		https://www.ctan.org/pkg/handin
License:	The LATEX Project Public License 1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/handin.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/handin.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Light weight template for creating school submissions using LaTeX. Especially suitable for math, physics, statistics and the like.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/handin/*
%doc %{_texmfdistdir}/doc/latex/handin/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9931 |21cr|texlive-handoutwithnotes-62140-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname handoutwithnotes

Summary:	Create Handouts with notes from your LaTeX beamer presentation
Name:		texlive-handoutwithnotes
Version:	62140
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(handoutWithNotes.sty) = 2024
BuildArch:	noarch

%description
This package provides pgfpages layouts to place notes next to
the scaled slides.

%files
%doc %{_texmfdistdir}/doc/latex/handoutwithnotes
%{_texmfdistdir}/tex/latex/handoutwithnotes

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9932 |21cr|texlive-hands-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 13293
# category Package
# catalog-ctan /fonts/hands
# catalog-date 2008-10-05 01:10:25 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-hands
Version:	20190228
Release:	1
Summary:	Pointing hand font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/hands
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hands.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides right- and left-pointing hands in both black-on-white
and white-on-black realisation. The font is distributed as
MetaFont source.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/hands/hands.mf
%{_texmfdistdir}/fonts/source/public/hands/handsdef.mf
%{_texmfdistdir}/fonts/source/public/hands/mirror.mf
%{_texmfdistdir}/fonts/source/public/hands/reverse.mf
%{_texmfdistdir}/fonts/source/public/hands/rvmirror.mf
%{_texmfdistdir}/fonts/tfm/public/hands/hands.tfm

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9933 |21cr|texlive-hang-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hang
Version:	2.1
Release:	1
Summary:	Environments for hanging paragraphs and list items
Group:		Publishing
URL:		https://www.ctan.org/pkg/hang
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/hang.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/hang.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides environments for hanging paragraphs and list items. In addition, it defines environments for labeled paragraphs and list items.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hang/*
%doc %{_texmfdistdir}/doc/latex/hang/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9934 |21cr|texlive-hanzibox-63062-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hanzibox

Summary:	Boxed Chinese characters with Pinyin above and translation below
Name:		texlive-hanzibox
Version:	63062
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hanzibox.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package written to simplify the input of
Chinese with Hanyu Pinyin and translation. Hanyu Pinyin is
placed above Chinese with the xpinyin package, and the
translation is placed below. The package can be used as a
utility for learning to write and pronounce Chinese characters,
for Chinese character learning plans, presentations, exercise
booklets and other documentation work.

%files
%doc %{_texmfdistdir}/doc/xelatex/hanzibox
%{_texmfdistdir}/tex/xelatex/hanzibox

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9935 |21cr|texlive-haranoaji-66115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname haranoaji

Summary:	Harano Aji Fonts
Name:		texlive-haranoaji
Version:	66115
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
Harano Aji Fonts (Harano Aji Mincho and Harano Aji Gothic) are
fonts obtained by replacing Adobe-Identity-0 (AI0) CIDs of
Adobe-Japan1 (AJ1) CIDs. There are 14 fonts, 7 weights each for
Mincho and Gothic.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/%{oname}
%{_texmfdistdir}/tex/latex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9936 |21cr|texlive-haranoaji-extra-66115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname haranoaji-extra

Summary:	Harano Aji Fonts
Name:		texlive-haranoaji-extra
Version:	66115
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
Harano Aji Fonts (Harano Aji Mincho and Harano Aji Gothic) are
fonts obtained by replacing Adobe-Identity-0 (AI0) CIDs of
Adobe-Japan1 (AJ1) CIDs. There are 14 fonts, 7 weights each for
Mincho and Gothic.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/haranoaji-extra

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9937 |21cr|texlive-harvard-2.0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/harvard
# catalog-date 2009-01-31 11:13:28 +0100
# catalog-license lppl
# catalog-version 2.0.5
Name:		texlive-harvard
Version:	2.0.5
Release:	8
Summary:	Harvard citation package for use with LaTeX 2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/harvard
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harvard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harvard.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harvard.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a re-implementation, for LaTeX 2e, of the original
Harvard package. The bundle contains the LaTeX package, several
BibTeX styles, and a 'Perl package' for use with LaTeX2HTML.
Harvard is an author-year citation style (all but the first
author are suppressed in second and subsequent citations of the
same entry); the package defines several variant styles: -
apsr.bst for the American Political Science Review; - agsm.bst
for Australian Government publications; - dcu.bst from the
Design Computing Unit of the University of Sydney; -
kluwer.bstwhich aims at the format preferred in Kluwer
publications; - nederlands.bst which deals with sorting Dutch
names with prefixes (such as van) according to Dutch rules;
together with several styles whose authors offer no description
of their behaviour.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/harvard/harvard.bib
%{_texmfdistdir}/bibtex/bst/harvard/agsm.bst
%{_texmfdistdir}/bibtex/bst/harvard/apsr.bst
%{_texmfdistdir}/bibtex/bst/harvard/dcu.bst
%{_texmfdistdir}/bibtex/bst/harvard/jmr.bst
%{_texmfdistdir}/bibtex/bst/harvard/jphysicsB.bst
%{_texmfdistdir}/bibtex/bst/harvard/kluwer.bst
%{_texmfdistdir}/bibtex/bst/harvard/nederlands.bst
%{_texmfdistdir}/tex/latex/harvard/harvard.sty
%doc %{_texmfdistdir}/doc/latex/harvard/INSTALL
%doc %{_texmfdistdir}/doc/latex/harvard/README
%doc %{_texmfdistdir}/doc/latex/harvard/harvard.pdf
%doc %{_texmfdistdir}/doc/latex/harvard/harvard.perl
%doc %{_texmfdistdir}/doc/latex/harvard/harvard.tex
%doc %{_texmfdistdir}/doc/latex/harvard/manifest.txt
#- source
%doc %{_texmfdistdir}/source/latex/harvard/Makefile
%doc %{_texmfdistdir}/source/latex/harvard/doc_Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9938 |21cr|texlive-harvmac-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-harvmac
Version:	20190228
Release:	1
Summary:	Macros for scientific articles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/harvmac
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harvmac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harvmac.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Known as 'Harvard macros', since written at that University.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/harvmac
%doc %{_texmfdistdir}/doc/plain/harvmac

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9939 |21cr|texlive-havannah-20211220-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-havannah
Version:	20211220
Release:	1
Summary:	Diagrams of board positions in the games of Havannah and Hex 
Group:		Publishing
URL:		https://ctan.org/pkg/havannah
License:	The LaTeX Project Public License 1.2
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/havannah.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/havannah.doc.tar.xz
Source2:    http://ctan.altspu.ru/systems/texlive/tlnet/archive/havannah.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines macros for typesetting diagrams of board positions 
in the games of Havannah and Hex. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/havannah/havannah.sty
%doc %{_texmfdistdir}/doc/latex/havannah/README
%doc %{_texmfdistdir}/doc/latex/havannah/havannah.pdf

#- source
%doc %{_texmfdistdir}/source/latex/havannah/havannah.ins
%doc %{_texmfdistdir}/source/latex/havannah/havannah.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9940 |21cr|texlive-hecthese-20210907-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hecthese
Version:	20210907
Release:	1
Summary:	This package provides the hecthese class
Group:		Publishing
URL:		https://ctan.org/pkg/hecthese
License:	The LATEX Project Public License 1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hecthese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hecthese.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/hecthese.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the hecthese class, 
a class based on memoir and compatible with LATEX.
Using this class, postgraduate students at HEC Montréal 
will be able to write their dissertation or thesis while complying 
with all the presentation standards required by the University.
This class is meant to be as flexible as possible; in particular, 
there are very few hardcoded features except 
those that take care of the document’s layout.
Dissertations and theses at HEC Montréal can be written on a per-chapter or per-article basis.
Documents that are written on a per-article basis require a bibliography 
for each of the included articles and a general bibliography for the entire document. 
The hecthese class takes care of these requirements.
The class depends on babel, color, enumitem, fontawesome, framed, numprint, url, and hyperref.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hecthese
%doc %{_texmfdistdir}/doc/latex/hecthese
%doc %{_texmfdistdir}/source/latex/hecthese
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9941 |21cr|texlive-helmholtz-ellis-ji-notation-55213-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname helmholtz-ellis-ji-notation

Summary:	Beautiful in-line microtonal just intonation accidentals
Name:		texlive-helmholtz-ellis-ji-notation
Version:	55213
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(helmholtz-ellis-ji-notation.sty) = 2024
BuildArch:	noarch

%description
The Helmholtz-Ellis JI Pitch Notation (HEJI), devised in the
early 2000s by Marc Sabat and Wolfgang von Schweinitz,
explicitly notates the raising and lowering of the untempered
diatonic Pythagorean notes by specific microtonal ratios
defined for each prime. It provides visually distinctive
"logos" distinguishing families of justly tuned intervals that
relate to the harmonic series. These take the form of strings
of additional accidental symbols based on historical
precedents, extending the traditional sharps and flats. Since
its 2020 update, HEJI ver. 2 ("HEJI2") provides unique
microtonal symbols through the 47-limit. This package is a
simple LaTeX implementation of HEJI2 that allows for in-line
typesetting of microtonal accidentals for use within
theoretical texts, program notes, symbol legends, etc.
Documents must be compiled using XeLaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/helmholtz-ellis-ji-notation
%{_texmfdistdir}/fonts/opentype/public/helmholtz-ellis-ji-notation
%{_texmfdistdir}/tex/latex/helmholtz-ellis-ji-notation

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9942 |21cr|texlive-hep-acronym-64890-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hep-acronym

Summary:	An acronym extension for glossaries
Name:		texlive-hep-acronym
Version:	64890
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hep-acronym.sty) = 2024
BuildArch:	noarch

%description
The hep-acronym package provides an acronym macro based on the
glossaries package. The package is loaded with
\usepackage{hep-acronym}.

%files
%doc %{_texmfdistdir}/doc/latex/hep-acronym
%{_texmfdistdir}/tex/latex/hep-acronym

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9943 |21cr|texlive-hep-bibliography-64888-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hep-bibliography

Summary:	An acronym extension for glossaries
Name:		texlive-hep-bibliography
Version:	64888
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hep-bibliography.sty) = 2024
BuildArch:	noarch

%description
The hep-bibliography package extends the BibLaTeX package with
some functionality mostly useful for high energy physics. In
particular it makes full use of all BibTeX fields provided by
Discover High-Energy Physics. The package is loaded with
\usepackage{hep-bibliography}.

%files
%doc %{_texmfdistdir}/doc/latex/hep-bibliography
%{_texmfdistdir}/tex/latex/hep-bibliography

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9944 |21cr|texlive-hep-float-64904-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hep-float

Summary:	Convenience package for float placement
Name:		texlive-hep-float
Version:	64904
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hep-float.sty) = 2024
BuildArch:	noarch

%description
The hep-float package redefines some LaTeX float placement
defaults and defines convenience wrappers for floats. The
package is loaded with \usepackage{hep-float}.

%files
%doc %{_texmfdistdir}/doc/latex/hep-float
%{_texmfdistdir}/tex/latex/hep-float

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9945 |21cr|texlive-hep-math-64905-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hep-math

Summary:	Extended math macros
Name:		texlive-hep-math
Version:	64905
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hep-math.sty) = 2024
BuildArch:	noarch

%description
The hep-math package provides some additional features beyond
the mathtools and amsmath packages. To use the package place
\usepackage{hep-math} in the preamble

%files
%doc %{_texmfdistdir}/doc/latex/hep-math
%{_texmfdistdir}/tex/latex/hep-math

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9946 |21cr|texlive-hep-paper-64917-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hep-paper

Summary:	Publications in High Energy Physics
Name:		texlive-hep-paper
Version:	64917
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hep-paper.sty) = 2024
BuildArch:	noarch

%description
This package aims to provide a single style file containing
most configurations and macros necessary to write appealing
publications in High Energy Physics. Instead of reinventing the
wheel by introducing newly created macros, hep-paper preferably
loads third party packages as long as they are light-weight
enough. For usual publications it suffices to load the
hep-paper package, without optional arguments, in addition to
the article class.

%files
%doc %{_texmfdistdir}/doc/latex/hep-paper
%{_texmfdistdir}/tex/latex/hep-paper

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9947 |21cr|texlive-hep-reference-64853-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hep-reference

Summary:	Adjustments for publications in High Energy Physics
Name:		texlive-hep-reference
Version:	64853
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hep-reference.sty) = 2024
BuildArch:	noarch

%description
This package makes some changes to the reference, citation and
footnote macros to improve the default behavior of LaTeX for
High Energy Physics publications.

%files
%doc %{_texmfdistdir}/doc/latex/hep-reference
%{_texmfdistdir}/tex/latex/hep-reference

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9948 |21cr|texlive-hep-text-64906-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hep-text

Summary:	List and text extensions
Name:		texlive-hep-text
Version:	64906
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hep-text.sty) = 2024
BuildArch:	noarch

%description
The hep-text package extends LaTeX lists using the enumitem
package and provides some text macros. The package is loaded
with \usepackage{hep-text}.

%files
%doc %{_texmfdistdir}/doc/latex/hep-text
%{_texmfdistdir}/tex/latex/hep-text

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9949 |21cr|texlive-hep-title-64907-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hep-title

Summary:	Extensions for the title page
Name:		texlive-hep-title
Version:	64907
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hep-title.sty) = 2024
BuildArch:	noarch

%description
The hep-title package extends the title macros of the standard
classes with macros for a preprint, affiliation, editors, and
endorsers. The package is loaded with \usepackage{hep-title}.

%files
%doc %{_texmfdistdir}/doc/latex/hep-title
%{_texmfdistdir}/tex/latex/hep-title

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9950 |21cr|texlive-hereapplies-65251-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hereapplies

Summary:	A LaTeX package for referencing groups of pages that share something in common
Name:		texlive-hereapplies
Version:	65251
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hereapplies.sty) = 2024
BuildArch:	noarch

%description
Here Applies is a LaTeX package that allows to collect groups
of labels and reference them altogether. It can be used for
creating informal glossaries that cross-link concepts to their
applications, or simply mentioning multiple pages that share
something in common.

%files
%doc %{_texmfdistdir}/doc/latex/hereapplies
%{_texmfdistdir}/tex/latex/hereapplies

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9951 |21cr|texlive-hershey-mp-64878-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hershey-mp

Summary:	MetaPost support for the Hershey font file format
Name:		texlive-hershey-mp
Version:	64878
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides MetaPost support for reading jhf vector
font files, used by (mostly? only?) the so-called Hershey Fonts
of the late 1960s. The package does not include the actual font
files, which you can probably find in the software repository
of your operating system.

%files
%doc %{_texmfdistdir}/doc/metapost/hershey-mp
%{_texmfdistdir}/metapost/hershey-mp

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9952 |21cr|texlive-heuristica-51362-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname heuristica

Summary:	Fonts extending Utopia, with LaTeX support files
Name:		texlive-heuristica
Version:	51362
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex-heuristica = 2024
Provides:	tex(Heuristica-Bold-inf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Bold-inf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Bold-inf-t1.tfm) = 2024
Provides:	tex(Heuristica-Bold-inf-t1.vf) = 2024
Provides:	tex(Heuristica-Bold-inf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Bold-inf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Bold-inf-t2c.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-inf-ly1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-inf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-inf-t1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-inf-t1.vf) = 2024
Provides:	tex(Heuristica-BoldItalic-inf-t2a.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-inf-t2b.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-inf-t2c.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic.otf) = 2024
Provides:	tex(Heuristica-BoldItalic.pfb) = 2024
Provides:	tex(Heuristica-BoldItalic-sup-ly1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-sup-t1--base.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-sup-t1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-sup-t1.vf) = 2024
Provides:	tex(Heuristica-BoldItalic-sup-t2a.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-sup-t2b.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-sup-t2c.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-t1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-t1.vf) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-t2a.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-t2b.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-t2c.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tlf-ts1.vf) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-t1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-t1.vf) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-t2a.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-t2b.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-t2c.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Heuristica-BoldItalic-tosf-ts1.vf) = 2024
Provides:	tex(Heuristica-Bold.otf) = 2024
Provides:	tex(Heuristica-Bold.pfb) = 2024
Provides:	tex(Heuristica-Bold-sup-ly1.tfm) = 2024
Provides:	tex(Heuristica-Bold-sup-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Bold-sup-t1.tfm) = 2024
Provides:	tex(Heuristica-Bold-sup-t1.vf) = 2024
Provides:	tex(Heuristica-Bold-sup-t2a.tfm) = 2024
Provides:	tex(Heuristica-Bold-sup-t2b.tfm) = 2024
Provides:	tex(Heuristica-Bold-sup-t2c.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-t1.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-t1.vf) = 2024
Provides:	tex(Heuristica-Bold-tlf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-t2c.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-ts1--base.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-ts1.tfm) = 2024
Provides:	tex(Heuristica-Bold-tlf-ts1.vf) = 2024
Provides:	tex(Heuristica-Bold-tosf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Bold-tosf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Bold-tosf-t1.tfm) = 2024
Provides:	tex(Heuristica-Bold-tosf-t1.vf) = 2024
Provides:	tex(Heuristica-Bold-tosf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Bold-tosf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Bold-tosf-t2c.tfm) = 2024
Provides:	tex(Heuristica-Bold-tosf-ts1--base.tfm) = 2024
Provides:	tex(Heuristica-Bold-tosf-ts1.tfm) = 2024
Provides:	tex(Heuristica-Bold-tosf-ts1.vf) = 2024
Provides:	tex(Heuristica-Italic-inf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Italic-inf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Italic-inf-t1.tfm) = 2024
Provides:	tex(Heuristica-Italic-inf-t1.vf) = 2024
Provides:	tex(Heuristica-Italic-inf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Italic-inf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Italic-inf-t2c.tfm) = 2024
Provides:	tex(Heuristica-Italic.otf) = 2024
Provides:	tex(Heuristica-Italic.pfb) = 2024
Provides:	tex(Heuristica-Italic-sup-ly1.tfm) = 2024
Provides:	tex(Heuristica-Italic-sup-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Italic-sup-t1.tfm) = 2024
Provides:	tex(Heuristica-Italic-sup-t1.vf) = 2024
Provides:	tex(Heuristica-Italic-sup-t2a.tfm) = 2024
Provides:	tex(Heuristica-Italic-sup-t2b.tfm) = 2024
Provides:	tex(Heuristica-Italic-sup-t2c.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-t1.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-t1.vf) = 2024
Provides:	tex(Heuristica-Italic-tlf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-t2c.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-ts1.tfm) = 2024
Provides:	tex(Heuristica-Italic-tlf-ts1.vf) = 2024
Provides:	tex(Heuristica-Italic-tosf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Italic-tosf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Italic-tosf-t1.tfm) = 2024
Provides:	tex(Heuristica-Italic-tosf-t1.vf) = 2024
Provides:	tex(Heuristica-Italic-tosf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Italic-tosf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Italic-tosf-t2c.tfm) = 2024
Provides:	tex(Heuristica-Italic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Heuristica-Italic-tosf-ts1.tfm) = 2024
Provides:	tex(Heuristica-Italic-tosf-ts1.vf) = 2024
Provides:	tex(Heuristica.map) = 2024
Provides:	tex(Heuristica-Regular-inf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Regular-inf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-inf-t1.tfm) = 2024
Provides:	tex(Heuristica-Regular-inf-t1.vf) = 2024
Provides:	tex(Heuristica-Regular-inf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Regular-inf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Regular-inf-t2c.tfm) = 2024
Provides:	tex(Heuristica-Regular.otf) = 2024
Provides:	tex(Heuristica-Regular.pfb) = 2024
Provides:	tex(Heuristica-Regular-sup-ly1.tfm) = 2024
Provides:	tex(Heuristica-Regular-sup-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-sup-t1.tfm) = 2024
Provides:	tex(Heuristica-Regular-sup-t1.vf) = 2024
Provides:	tex(Heuristica-Regular-sup-t2a.tfm) = 2024
Provides:	tex(Heuristica-Regular-sup-t2b.tfm) = 2024
Provides:	tex(Heuristica-Regular-sup-t2c.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-ly1.vf) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-t1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-t1.vf) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-t2a.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-t2b.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-sc-t2c.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-t1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-t1.vf) = 2024
Provides:	tex(Heuristica-Regular-tlf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-t2c.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-ts1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-ts1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tlf-ts1.vf) = 2024
Provides:	tex(Heuristica-Regular-tosf-ly1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-ly1.vf) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-t1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-t1.vf) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-t2a.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-t2b.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-sc-t2c.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-t1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-t1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-t1.vf) = 2024
Provides:	tex(Heuristica-Regular-tosf-t2a.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-t2b.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-t2c.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-ts1--base.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-ts1.tfm) = 2024
Provides:	tex(Heuristica-Regular-tosf-ts1.vf) = 2024
Provides:	tex(heuristica.sty) = 2024
Provides:	tex(LY1Heuristica-Inf.fd) = 2024
Provides:	tex(LY1Heuristica-Sup.fd) = 2024
Provides:	tex(LY1Heuristica-TLF.fd) = 2024
Provides:	tex(LY1Heuristica-TOsF.fd) = 2024
Provides:	tex(T1Heuristica-Inf.fd) = 2024
Provides:	tex(T1Heuristica-Sup.fd) = 2024
Provides:	tex(T1Heuristica-TLF.fd) = 2024
Provides:	tex(T1Heuristica-TOsF.fd) = 2024
Provides:	tex(T2AHeuristica-Inf.fd) = 2024
Provides:	tex(T2AHeuristica-Sup.fd) = 2024
Provides:	tex(T2AHeuristica-TLF.fd) = 2024
Provides:	tex(T2AHeuristica-TOsF.fd) = 2024
Provides:	tex(T2BHeuristica-Inf.fd) = 2024
Provides:	tex(T2BHeuristica-Sup.fd) = 2024
Provides:	tex(T2BHeuristica-TLF.fd) = 2024
Provides:	tex(T2BHeuristica-TOsF.fd) = 2024
Provides:	tex(T2CHeuristica-Inf.fd) = 2024
Provides:	tex(T2CHeuristica-Sup.fd) = 2024
Provides:	tex(T2CHeuristica-TLF.fd) = 2024
Provides:	tex(T2CHeuristica-TOsF.fd) = 2024
Provides:	tex(TS1Heuristica-TLF.fd) = 2024
Provides:	tex(TS1Heuristica-TOsF.fd) = 2024
Provides:	tex(zut_5b7xz5.enc) = 2024
Provides:	tex(zut_bavnqe.enc) = 2024
Provides:	tex(zut_ckaykl.enc) = 2024
Provides:	tex(zut_cq6rqq.enc) = 2024
Provides:	tex(zut_cvig5d.enc) = 2024
Provides:	tex(zut_d3dvo4.enc) = 2024
Provides:	tex(zut_dcwkkw.enc) = 2024
Provides:	tex(zut_dhvb6d.enc) = 2024
Provides:	tex(zut_dvh2xl.enc) = 2024
Provides:	tex(zut_e7tlds.enc) = 2024
Provides:	tex(zut_edf5gu.enc) = 2024
Provides:	tex(zut_etrbro.enc) = 2024
Provides:	tex(zut_evgarn.enc) = 2024
Provides:	tex(zut_f5n2rf.enc) = 2024
Provides:	tex(zut_fc3mov.enc) = 2024
Provides:	tex(zut_flhghs.enc) = 2024
Provides:	tex(zut_g4w54e.enc) = 2024
Provides:	tex(zut_geqeyh.enc) = 2024
Provides:	tex(zut_hbxdik.enc) = 2024
Provides:	tex(zut_hln2hy.enc) = 2024
Provides:	tex(zut_hvy566.enc) = 2024
Provides:	tex(zut_ijw3px.enc) = 2024
Provides:	tex(zut_it5nv3.enc) = 2024
Provides:	tex(zut_j3hjx2.enc) = 2024
Provides:	tex(zut_k42udk.enc) = 2024
Provides:	tex(zut_n2gc2n.enc) = 2024
Provides:	tex(zut_nvi5ys.enc) = 2024
Provides:	tex(zut_qy67bk.enc) = 2024
Provides:	tex(zut_rhmrtx.enc) = 2024
Provides:	tex(zut_rutxxy.enc) = 2024
Provides:	tex(zut_tfeu3y.enc) = 2024
Provides:	tex(zut_thxlbm.enc) = 2024
Provides:	tex(zut_tsvs4d.enc) = 2024
Provides:	tex(zut_u7pc6m.enc) = 2024
Provides:	tex(zut_ul3ofd.enc) = 2024
Provides:	tex(zut_v7it2w.enc) = 2024
Provides:	tex(zut_vaioc2.enc) = 2024
Provides:	tex(zut_vtjod4.enc) = 2024
Provides:	tex(zut_ysltpx.enc) = 2024
Provides:	tex(zut_zk7stm.enc) = 2024
Provides:	tex(zut_zl5g24.enc) = 2024
BuildArch:	noarch

%description
The fonts extend the utopia set with Cyrillic glyphs,
additional figure styles, ligatures and Small Caps in Regular
style only. Macro support, and maths fonts that match the
Utopia family, are provided by the Fourier and the Mathdesign
font packages.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/heuristica/
%{_texmfdistdir}/fonts/map/dvips/heuristica/
%{_texmfdistdir}/fonts/opentype/public/heuristica/
%{_texmfdistdir}/fonts/tfm/public/heuristica/
%{_texmfdistdir}/fonts/type1/public/heuristica/
%{_texmfdistdir}/fonts/vf/public/heuristica/
%{_texmfdistdir}/tex/latex/heuristica/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9953 |21cr|texlive-hexboard-62102-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hexboard

Summary:	For drawing Hex boards and games
Name:		texlive-hexboard
Version:	62102
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hexboard.sty) = 2024
BuildArch:	noarch

%description
hexboard is a package for LaTeX that should also work with
LuaTeX and XeTeX, that provides functionality for drawing Hex
boards and games. The aim is a clean, clear design with
flexibility for drawing different sorts of Hex diagrams.

%files
%doc %{_texmfdistdir}/doc/latex/hexboard
%{_texmfdistdir}/tex/latex/hexboard

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9954 |21cr|texlive-hfbright-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /fonts/ps-type1/hfbright
# catalog-date 2012-07-13 13:47:30 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-hfbright
Version:	20190228
Release:	1
Summary:	The hfbright fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ps-type1/hfbright
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hfbright.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hfbright.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These are Adobe Type 1 versions of the OT1-encoded and maths
parts of the Computer Modern Bright fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbr10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbr17.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbr8.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbr9.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbras10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbras8.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbras9.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrbs10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrbs8.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrbs9.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrbx10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrmb10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrmi10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrmi8.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrmi9.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrsl10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrsl17.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrsl8.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrsl9.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrsy10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrsy8.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfbrsy9.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hfsltl10.afm
%{_texmfdistdir}/fonts/afm/public/hfbright/hftl10.afm
%{_texmfdistdir}/fonts/enc/dvips/hfbright/hfmital.enc
%{_texmfdistdir}/fonts/enc/dvips/hfbright/hfmsa.enc
%{_texmfdistdir}/fonts/enc/dvips/hfbright/hfmsb.enc
%{_texmfdistdir}/fonts/enc/dvips/hfbright/hfmsym.enc
%{_texmfdistdir}/fonts/enc/dvips/hfbright/hfot1.enc
%{_texmfdistdir}/fonts/map/dvips/hfbright/hfbright.map
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbr10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbr17.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbr8.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbr9.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbras10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbras8.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbras9.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrbs10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrbs8.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrbs9.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrbx10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrmb10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrmi10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrmi8.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrmi9.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrsl10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrsl17.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrsl8.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrsl9.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrsy10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrsy8.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfbrsy9.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hfsltl10.pfb
%{_texmfdistdir}/fonts/type1/public/hfbright/hftl10.pfb
%doc %{_texmfdistdir}/doc/fonts/hfbright/README
%doc %{_texmfdistdir}/doc/fonts/hfbright/config.hfbright
%doc %{_texmfdistdir}/doc/fonts/hfbright/generate.sh
%doc %{_texmfdistdir}/doc/fonts/hfbright/install.sh
%doc %{_texmfdistdir}/doc/fonts/hfbright/simplify-rename.pe

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9955 |21cr|texlive-hfoldsty-1.15-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /fonts/hfoldsty
# catalog-date 2012-07-15 22:58:12 +0200
# catalog-license gpl
# catalog-version 1.15
Name:		texlive-hfoldsty
Version:	1.15
Release:	10
Summary:	Old style numerals with EC fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/hfoldsty
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hfoldsty.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hfoldsty.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hfoldsty.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The hfoldsty package provides virtual fonts for using oldstyle
(0123456789) figures with the European Computer Modern fonts.
It does a similar job as the eco package by Sebastian Kirsch
but includes a couple of improvements, i.e., better kerning
with guillemets, and support for character protruding using the
pdfcprot package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobl3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfobx3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfocc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfodh3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoit3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfooc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hforb3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hform3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosl3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoso3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoss3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfost3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfosx3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfotc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoti3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfott3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoui3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfovt3583.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/hfoldsty/hfoxc3583.tfm
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobi3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobl3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfobx3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfocc3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfodh3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoit3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfooc3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hforb3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hform3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosc3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosi3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosl3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoso3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoss3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfost3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfosx3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfotc3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoti3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfott3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoui3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovi3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfovt3583.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc0500.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc0600.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc0700.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc0800.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc0900.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc1000.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc1095.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc1200.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc1440.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc1728.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc2074.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc2488.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc2986.vf
%{_texmfdistdir}/fonts/vf/public/hfoldsty/hfoxc3583.vf
%{_texmfdistdir}/tex/latex/hfoldsty/hfoldsty.sty
%{_texmfdistdir}/tex/latex/hfoldsty/hforbxitT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hforbxitTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hforbxnT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hforbxnTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hforbxslT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hforbxslTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hformitT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hformitTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hformnT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hformnTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hformslT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hformslTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossbxitT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossbxitTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossbxnT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossbxnTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossbxslT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossbxslTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossmitT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossmitTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossmnT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossmnTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossmslT1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/hfossmslTS1.cpa
%{_texmfdistdir}/tex/latex/hfoldsty/omlhfor.fd
%{_texmfdistdir}/tex/latex/hfoldsty/omshfor.fd
%{_texmfdistdir}/tex/latex/hfoldsty/t1hfodh.fd
%{_texmfdistdir}/tex/latex/hfoldsty/t1hfor.fd
%{_texmfdistdir}/tex/latex/hfoldsty/t1hfoss.fd
%{_texmfdistdir}/tex/latex/hfoldsty/t1hfott.fd
%{_texmfdistdir}/tex/latex/hfoldsty/t1hfovt.fd
%{_texmfdistdir}/tex/latex/hfoldsty/ts1hfor.fd
%{_texmfdistdir}/tex/latex/hfoldsty/ts1hfoss.fd
%{_texmfdistdir}/tex/latex/hfoldsty/ts1hfott.fd
%{_texmfdistdir}/tex/latex/hfoldsty/ts1hfovtt.fd
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/ChangeLog
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/Makefile
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/README
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/TODO
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/gpl.txt
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/hfoldsty.pdf
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/hfoldsty.xml
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/test-eco-hfo.tex
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/test-eco.tex
%doc %{_texmfdistdir}/doc/fonts/hfoldsty/test-hfo.tex
#- source
%doc %{_texmfdistdir}/source/fonts/hfoldsty/Makefile
%doc %{_texmfdistdir}/source/fonts/hfoldsty/hfoldsty.dtx
%doc %{_texmfdistdir}/source/fonts/hfoldsty/hfoldsty.ins
%doc %{_texmfdistdir}/source/fonts/hfoldsty/src/Makefile
%doc %{_texmfdistdir}/source/fonts/hfoldsty/src/TS1.etx
%doc %{_texmfdistdir}/source/fonts/hfoldsty/src/dostretch.mtx
%doc %{_texmfdistdir}/source/fonts/hfoldsty/src/generate.sh
%doc %{_texmfdistdir}/source/fonts/hfoldsty/src/t19.etx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9956 |21cr|texlive-hfutexam-66550-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hfutexam

Summary:	Exam class for Hefei University of Technology (China)
Name:		texlive-hfutexam
Version:	66550
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hfutexam.cls) = 2024
BuildArch:	noarch

%description
This package provides an exam class for Hefei University of
Technology (China).

%files
%doc %{_texmfdistdir}/doc/latex/hfutexam
%{_texmfdistdir}/tex/latex/hfutexam

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9957 |21cr|texlive-hfutthesis-64025-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hfutthesis

Summary:	LaTeX Thesis Template for Hefei University of Technology
Name:		texlive-hfutthesis
Version:	64025
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hfutthesis.cls) = 2024
BuildArch:	noarch

%description
This project is based on the HFUT_Thesis LaTeX template of
Hefei University of Technology compiled on the basis of
ustctug/ustcthesis, in accordance with the latest version of
Hefei University of Technology Graduate Dissertation Writing
Specifications and Hefei University of Technology Undergraduate
Graduation Project (Thesis) Work Implementation Rules.

%files
%doc %{_texmfdistdir}/doc/xelatex/hfutthesis
%{_texmfdistdir}/tex/xelatex/hfutthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9958 |21cr|texlive-hideanswer-63852-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hideanswer

Summary:	Generate documents with and without answers by toggling a switch
Name:		texlive-hideanswer
Version:	63852
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hideanswer.sty) = 2024
BuildArch:	noarch

%description
This package can generate documents with and without answers
from a single file by toggling a switch. However, it can only
be used to create documents to be printed on paper.

%files
%doc %{_texmfdistdir}/doc/latex/hideanswer
%{_texmfdistdir}/tex/latex/hideanswer

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9959 |21cr|texlive-highlightlatex-58392-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname highlightlatex

Summary:	Syntax highlighting for LaTeX
Name:		texlive-highlightlatex
Version:	58392
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
#Requires:	tex(listings.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xcolor.sty)
Provides:	tex(highlightlatex.sty) = 2024
BuildArch:	noarch

%description
This package provides extensive colored syntax highlighting for
LaTeX. For this purpose it builds on the generic listings
package.

%files
%doc %{_texmfdistdir}/doc/latex/highlightlatex
%{_texmfdistdir}/tex/latex/highlightlatex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9960 |21cr|texlive-hindawi-latex-template-57757-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hindawi-latex-template

Summary:	A LaTeX template for authors of the Hindawi journals
Name:		texlive-hindawi-latex-template
Version:	57757
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package contains a LaTeX template for authors of the
Hindawi journals. Authors can use this template for formatting
their research articles for submissions. The package has been
created and is maintained by the Typeset team.

%files
%doc %{_texmfdistdir}/doc/latex/hindawi-latex-template

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9961 |21cr|texlive-hindmadurai-57360-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hindmadurai

Summary:	The HindMadurai font face with support for LaTeX and pdfLaTeX
Name:		texlive-hindmadurai
Version:	57360
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_4f5hpf.enc) = 2024
Provides:	tex(a_mlnerp.enc) = 2024
Provides:	tex(a_u5lxld.enc) = 2024
Provides:	tex(a_ym6dij.enc) = 2024
Provides:	tex(HindMadurai.map) = 2024
Provides:	tex(HindMadurai.sty) = 2024
Provides:	tex(LY1HindMadurai-TLF.fd) = 2024
Provides:	tex(OT1HindMadurai-TLF.fd) = 2024
Provides:	tex(T1HindMadurai-TLF.fd) = 2024
Provides:	tex(TS1HindMadurai-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides the HindMadurai family of fonts designed
by the Indian Type Foundry, with support for LaTeX and
pdfLaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/hindmadurai
%{_texmfdistdir}/fonts/enc/dvips/hindmadurai
%{_texmfdistdir}/fonts/map/dvips/hindmadurai
%{_texmfdistdir}/fonts/opentype/public/hindmadurai
%{_texmfdistdir}/fonts/tfm/public/hindmadurai
%{_texmfdistdir}/fonts/type1/public/hindmadurai
%{_texmfdistdir}/fonts/vf/public/hindmadurai
%{_texmfdistdir}/tex/latex/hindmadurai

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9962 |21cr|texlive-historische-zeitschrift-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-historische-zeitschrift
Version:	1.2
Release:	2
Summary:	Biblatex style for the journal 'Historische Zeitschrift'
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/historische-zeitschrift
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/historische-zeitschrift.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/historische-zeitschrift.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides citations according with the house style
of the 'Historische Zeitschrift', a German historical journal.
The scheme is a fullcite for the first citation and 'Author,
Shorttitle (as note N, P)' for later citations (P being the
page number). For further details, see the description of the
house style at the journal's site. The package depends on
biblatex (version 0.8 or higher) as well as etoolbox (version
1.5 or higher).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/historische-zeitschrift
%doc %{_texmfdistdir}/doc/latex/historische-zeitschrift

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9963 |21cr|texlive-hithesis-2.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hithesis
Version:	2.0.11
Release:	1
Summary:	hithesis is a LATEX thesis template package
Group:		Publishing
URL:		https://ctan.org/pkg/hithesis
License:    The LATEX Project Public License 1.3a 
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hithesis.doc.tar.xz 
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/hithesis.source.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/hithesis.tar.xz 
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
hithesis is a LATEX thesis 
template package for Harbin 
Institute of Technology 
supporting bachelor, master, 
doctor dissertations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/hithesis
%{_texmfdistdir}/bibtex/bst/hithesis/hithesis.bst
%{_texmfdistdir}/makeindex/hithesis/hithesis.ist
%doc %{_texmfdistdir}/doc/xelatex/hithesis
%doc %{_texmfdistdir}/source/xelatex/hithesis
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source bibtex makeindex %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9964 |21cr|texlive-hitreport-58357-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hitreport

Summary:	Harbin Institute of Technology Report LaTeX Template
Name:		texlive-hitreport
Version:	58357
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hitreport.cls) = 2024
BuildArch:	noarch

%description
This package provides an assignment and experiment report
template free of configuration designed for undergraduates on
the three campuses of Harbin Institute of Technology.

%files
%doc %{_texmfdistdir}/doc/latex/hitreport
%{_texmfdistdir}/tex/latex/hitreport

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9965 |21cr|texlive-hitszbeamer-54381-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hitszbeamer

Summary:	A beamer theme for Harbin Institute of Technology, ShenZhen
Name:		texlive-hitszbeamer
Version:	54381
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemehitszbeamer.sty) = 2024
Provides:	tex(beamerinnerthemehitszbeamer.sty) = 2024
Provides:	tex(beamerouterthemehitszbeamer.sty) = 2024
Provides:	tex(beamerthemehitszbeamer.sty) = 2024
BuildArch:	noarch

%description
This is a beamer theme designed for Harbin Institute of
Technology, ShenZhen (HITSZ).

%files
%doc %{_texmfdistdir}/doc/latex/hitszbeamer
%{_texmfdistdir}/bibtex/bst/hitszbeamer
%{_texmfdistdir}/tex/latex/hitszbeamer

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9966 |21cr|texlive-hitszthesis-61073-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hitszthesis

Summary:	A dissertation template for Harbin Institute of Technology, ShenZhen
Name:		texlive-hitszthesis
Version:	61073
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hitszthesis.cls) = 2024
Provides:	tex(hitszthesis.sty) = 2024
BuildArch:	noarch

%description
This package provides a dissertation template for Harbin
Institute of Technology, ShenZhen (HITSZ), including bachelor,
master and doctor dissertations.

%files
%doc %{_texmfdistdir}/doc/latex/hitszthesis
%{_texmfdistdir}/bibtex/bst/hitszthesis
%{_texmfdistdir}/makeindex/hitszthesis
%{_texmfdistdir}/tex/latex/hitszthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9967 |21cr|texlive-hlist-44983-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hlist

Summary:	Horizontal and columned lists
Name:		texlive-hlist
Version:	44983
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(simplekv.sty)
Provides:	tex(hlist.sty) = 2024
Provides:	tex(hlist.tex) = 2024
BuildArch:	noarch

%description
This plain TeX and LaTeX package provides the "hlist"
environment in which \hitem starts a horizontal and columned
item. It depends upon the simplekv package.

%files
%{_texmfdistdir}/tex/generic/hlist/

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9968 |21cr|texlive-hmtrump-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hmtrump

Summary:	Describe card games
Name:		texlive-hmtrump
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hmtrump.sty) = 2024
BuildArch:	noarch

%description
This package provides a font with LuaLaTeX support for
describing card games.

%files
%doc %{_texmfdistdir}/doc/lualatex/hmtrump
%{_texmfdistdir}/fonts/truetype/public/hmtrump
%{_texmfdistdir}/tex/lualatex/hmtrump

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9969 |21cr|texlive-hobsub-52810-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hobsub

Summary:	Construct package bundles
Name:		texlive-hobsub
Version:	52810
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hobsub-generic.sty) = 2024
Provides:	tex(hobsub-hyperref.sty) = 2024
Provides:	tex(hobsub.sty) = 2024
BuildArch:	noarch

%description
Heiko Oberdiek's hobsub package (and hobsub-hyperref and
hobsub-generic packages) defined a mechanism for concatenating
multiple files into a single file for faster loading. The
disadvantage is that it introduces hard dependencies between
the source files that are included and complicates distribution
and updates. It was principally used with hyperref but is not
currently used in any standard packages in TeX Live. The
packages are still distributed as simple stubs that reference
the included packages via \RequirePackage rather than copying
their source. The documented source of the original packages is
available at github, but is not distributed to CTAN.

%files
%doc %{_texmfdistdir}/doc/latex/hobsub
%{_texmfdistdir}/tex/latex/hobsub

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9970 |21cr|texlive-hologo-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hologo

Summary:	A collection of logos with bookmark support
Name:		texlive-hologo
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hologo.sty) = 2024
BuildArch:	noarch

%description
The package defines a single command \hologo, whose argument is
the usual case-confused ASCII version of the logo. The command
is bookmark-enabled, so that every logo becomes available in
bookmarks without further work.

%files
%doc %{_texmfdistdir}/doc/generic/hologo
%{_texmfdistdir}/tex/generic/hologo

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9971 |21cr|texlive-hopatch-65491-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hopatch

Summary:	Load patches for packages
Name:		texlive-hopatch
Version:	65491
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(ltxcmds.sty)
Provides:	tex(hopatch-2016-05-16.sty) = 2024
Provides:	tex(hopatch.sty) = 2024
BuildArch:	noarch

%description
Hopatch provides a command with which the user may register of
patch code for a particular package. Hopatch will apply the
patch immediately, if the relevant package has already been
loaded; otherwise it will store the patch until the package
appears.

%files
%doc %{_texmfdistdir}/doc/latex/hopatch
%{_texmfdistdir}/tex/latex/hopatch

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9972 |21cr|texlive-href-ul-64880-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname href-ul

Summary:	Underscored LaTeX hyperlinks
Name:		texlive-href-ul
Version:	64880
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(hyperref.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(ulem.sty)
Provides:	tex(href-ul.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package makes hyperlinks underscored, just like on
the web. The package uses hyperref and ulem.

%files
%doc %{_texmfdistdir}/doc/latex/href-ul
%{_texmfdistdir}/tex/latex/href-ul

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9973 |21cr|texlive-huawei-65264-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname huawei

Summary:	Template for Huawei documents
Name:		texlive-huawei
Version:	65264
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(biblatex.sty)
#Requires:	tex(currfile.sty)
#Requires:	tex(datetime.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(fancyhdr.sty)
#Requires:	tex(footmisc.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(graphics.sty)
#Requires:	tex(hyperref.sty)
#Requires:	tex(lastpage.sty)
#Requires:	tex(libertine.sty)
Requires:	texlive-tlpkg
Requires:	texlive-cjk
Requires:	texlive-kpathsea
Requires:	texlive-l3packages
Requires:	texlive-tools
#Requires:	tex(makecell.sty)
#Requires:	tex(microtype.sty)
#Requires:	tex(minted.sty)
#Requires:	tex(paralist.sty)
#Requires:	tex(pgf.sty)
#Requires:	tex(setspace.sty)
#Requires:	tex(svg.sty)
#Requires:	tex(tcolorbox.sty)
#Requires:	tex(textpos.sty)
#Requires:	tex(titling.sty)
#Requires:	tex(ulem.sty)
#Requires:	tex(wrapfig.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(huawei.cls) = 2024
BuildArch:	noarch

%description
This unofficial package provides a class for creating documents
for people working with Huawei Technologies Co., Ltd..

%files
%doc %{_texmfdistdir}/doc/latex/huawei
%{_texmfdistdir}/tex/latex/huawei

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9974 |21cr|texlive-huaz-64723-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname huaz

Summary:	Automatic Hungarian definite articles
Name:		texlive-huaz
Version:	64723
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(huaz.sty) = 2024
BuildArch:	noarch

%description
In Hungarian there are two definite articles, "a" and "az",
which are determined by the pronunciation of the subsequent
word. The definite article is "az", if the first phoneme of the
pronounced word is a vowel, otherwise it is "a". The huaz
package helps the user to insert automatically the correct
definite article for cross-references and other commands
containing text.

%files
%doc %{_texmfdistdir}/doc/latex/huaz
%{_texmfdistdir}/tex/latex/huaz

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9975 |21cr|texlive-hu-berlin-bundle-57580-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hu-berlin-bundle

Summary:	LaTeX classes for the Humboldt-Universitat zu Berlin
Name:		texlive-hu-berlin-bundle
Version:	57580
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hu-berlin-base.sty) = 2024
Provides:	tex(hu-berlin-bundle-style.sty) = 2024
Provides:	tex(hu-berlin-letter.cls) = 2024
BuildArch:	noarch

%description
This package provides files according to the corporate design
of the Humboldt-Universitat zu Berlin. This is not an official
package by the university itself, and not officially approved
by it. More information can be found in the Humboldt
University's corporate design guideline and on the website
https://www.hu-berlin.de/de/hu-intern/design. At present, the
bundle contains a letter class based on scrlttr2 and a package
hu-berlin-base.sty which contains all relevant code for
documents and documentclasses of the bundle.

%files
%doc %{_texmfdistdir}/doc/lualatex/hu-berlin-bundle
%{_texmfdistdir}/tex/lualatex/hu-berlin-bundle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9976 |21cr|texlive-hulipsum-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hulipsum
Version:	1.1
Release:	1
Summary:	Hungarian dummy text (Lórum ipse)
Group:		Publishing
URL:		https://ctan.org/pkg/sanhyph
License:	MIT
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/hulipsum.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/hulipsum.doc.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/hulipsum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Hungarian dummy text (Lorum ipse) for demonstrating the textual elements of a document template
All paragraphs are taken with permission from http://www.lorumipse.hu/.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9977 |21cr|texlive-hustthesis-20170418-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           texlive-hustthesis
URL:            https://ctan.org/pkg/hustthesis
Summary:        Unofficial thesis template for Huazhong University
License:        LPPL
Version:        20170418
Release:        1
Source0:        https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/hustthesis.tar.xz
Source1:        https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/hustthesis.doc.tar.xz
Group:          Publishing

BuildArch:      noarch
BuildRequires:  texlive-tlpkg
Requires(pre):  texlive-tlpkg
Requires(post): texlive-kpathsea

%description
The package provides an Unofficial Thesis Template in LATEX for Huazhong University of Science and Technology.

#---------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%{_texmfdistdir}/bibtex
%doc %{_texmfdistdir}/doc
#---------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9978 |21cr|texlive-hvarabic-59423-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hvarabic

Summary:	Macros for RTL typesetting
Name:		texlive-hvarabic
Version:	59423
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(iftex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hvarabic.sty) = 2024
BuildArch:	noarch

%description
This package provides some macros for right-to-left
typesetting. It uses by default the arabic fonts Scheherazade
and ALM fixed, the only monospaced arabic font. The package
works with LuaLaTeX or XeLaTeX, but not with pdfLaTeX or latex.

%files
%doc %{_texmfdistdir}/doc/latex/hvarabic
%{_texmfdistdir}/tex/latex/hvarabic

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9979 |21cr|texlive-hvextern-65670-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hvextern

Summary:	Write and execute external code, and insert the output
Name:		texlive-hvextern
Version:	65670
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hvextern.sty) = 2024
BuildArch:	noarch

%description
This package allows to write MetaPost, TeX, ConTeXt, LaTeX,
LuaTeX, LuaLaTeX, XeTeX, XeLaTeX, Lua, Perl, or Python source
code into an external file, run that file via shell-escape to
create PDF, PNG, or text output, and include that output
automatically into the main LaTeX document.

%files
%doc %{_texmfdistdir}/doc/latex/hvextern
%{_texmfdistdir}/tex/latex/hvextern

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9980 |21cr|texlive-hvlogos-63261-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hvlogos

Summary:	Print TeX-related names as logo
Name:		texlive-hvlogos
Version:	63261
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hvlogos.sty) = 2024
BuildArch:	noarch

%description
This package is more or less an extension to Heiko Oberdiek's
package hologo. It prints TeX-related names as logos. The
package requires fetamont, hologo, dantelogo, and xspace.

%files
%doc %{_texmfdistdir}/doc/latex/hvlogos
%{_texmfdistdir}/tex/latex/hvlogos

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9981 |21cr|texlive-hvpygmentex-62405-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hvpygmentex

Summary:	Syntax-Highlighting of program code
Name:		texlive-hvpygmentex
Version:	62405
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hvpygmentex.sty) = 2024
BuildArch:	noarch

%description
The package is based on pygmentex but provides an automatic run
from within the document itself, with the option
--shell-escape. It does not need the additional action by the
user to run the external program pygmentize to create the code
snippets.

%files
%doc %{_texmfdistdir}/doc/latex/hvpygmentex
%{_texmfdistdir}/tex/latex/hvpygmentex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9982 |21cr|texlive-hvqrurl-59256-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hvqrurl

Summary:	Insert a QR code in the margin
Name:		texlive-hvqrurl
Version:	59256
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hvqrurl.sty) = 2024
BuildArch:	noarch

%description
This package allows to draw an URL as a QR code into the margin
of a one- or twosided document. The following packages are
loaded by default: qrcode, marginnote, url, xcolor and xkeyval.

%files
%doc %{_texmfdistdir}/doc/latex/hvqrurl
%{_texmfdistdir}/tex/latex/hvqrurl

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9983 |21cr|texlive-hwemoji-65001-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hwemoji

Summary:	Unicode emoji support for pdfLaTeX with sequences
Name:		texlive-hwemoji
Version:	65001
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hwemoji.sty) = 2024
BuildArch:	noarch

%description
This package provides direct support for Unicode emoji in
pdfLaTeX, with full access to emoji sequences including but not
limited to flag sequences, diversity modifier sequences, and
tag sequences. Emojis are displayed through Twemoji digital
assets, as licensed under the CC-BY 4.0.

%files
%doc %{_texmfdistdir}/doc/latex/hwemoji
%{_texmfdistdir}/tex/latex/hwemoji

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9984 |21cr|texlive-hycolor-53584-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hycolor

Summary:	Implements colour for packages hyperref and bookmark
Name:		texlive-hycolor
Version:	53584
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hycolor.sty) = 2024
Provides:	tex(xcolor-patch.sty) = 2024
BuildArch:	noarch

%description
This package provides the code for the color option that is
used by packages hyperref and bookmark. It is not intended as
package for the user.

%files
%doc %{_texmfdistdir}/doc/latex/hycolor
%{_texmfdistdir}/tex/latex/hycolor

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9985 |21cr|texlive-hypdestopt-56253-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hypdestopt

Summary:	Hyperref destination optimizer
Name:		texlive-hypdestopt
Version:	56253
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(alphalph.sty)
Requires:	tex(auxhook.sty)
#Requires:	tex(iftex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(pdfescape.sty)
Requires:	tex(pdftexcmds.sty)
Provides:	tex(hypdestopt.sty) = 2024
BuildArch:	noarch

%description
This package supports hyperref's pdfTeX driver. It removes
unnecessary destinations and shortens the destination names or
uses numbered destinations to get smaller PDF files.

%files
%doc %{_texmfdistdir}/doc/latex/hypdestopt
%{_texmfdistdir}/tex/latex/hypdestopt

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9986 |21cr|texlive-hypdoc-65678-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hypdoc

Summary:	Hyper extensions for doc.sty
Name:		texlive-hypdoc
Version:	65678
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hypdoc.sty) = 2024
BuildArch:	noarch

%description
This package adds hypertext features to the package doc that is
used in the documentation system of LaTeX2e. Bookmarks are
added and references are linked as far as possible.

%files
%doc %{_texmfdistdir}/doc/latex/hypdoc
%{_texmfdistdir}/tex/latex/hypdoc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9987 |21cr|texlive-hyperbar-48147-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hyperbar

Summary:	Add interactive Barcode fields to PDF forms
Name:		texlive-hyperbar
Version:	48147
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(hyperbar.sty) = 2024
BuildArch:	noarch

%description
The package extends the hyperref functionality for creating
interactive forms to allow adding Barcode form fields supported
by some modern PDF readers. Currently, only pdfTeX is
supported.

%files
%doc %{_texmfdistdir}/doc/latex/hyperbar/
%{_texmfdistdir}/tex/latex/hyperbar/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9988 |21cr|texlive-hyphenex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /info/digests/tugboat/hyphenex
# catalog-date 2012-05-16 13:34:59 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-hyphenex
Version:	20190228
Release:	1
Summary:	Generate a hyphenation exceptions file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/digests/tugboat/hyphenex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphenex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphenex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Exceptions for American English hyphenation patterns are
occasionally published in the TeX User Group magazine TUGboat.
This bundle provides alternative Perl and Bourne shell scripts
to convert the source of such an article into an exceptions
file, together with a recent copy of the article and its
translation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyphenex/ushyphex.tex
#- source
%doc %{_texmfdistdir}/source/generic/hyphenex/GNUmakefile
%doc %{_texmfdistdir}/source/generic/hyphenex/README
%doc %{_texmfdistdir}/source/generic/hyphenex/hyphenex.pl
%doc %{_texmfdistdir}/source/generic/hyphenex/hyphenex.sh
%doc %{_texmfdistdir}/source/generic/hyphenex/tb0hyf.pdf
%doc %{_texmfdistdir}/source/generic/hyphenex/tb0hyf.tex
%doc %{_texmfdistdir}/source/generic/hyphenex/test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9989 |21cr|texlive-hyphen-macedonian-58652-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hyphen-macedonian

Summary:	Macedonian hyphenation patterns
Name:		texlive-hyphen-macedonian
Version:	58652
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-hyphen-base
Requires:	texlive-hyph-utf8
Requires:	texlive-kpathsea
Provides:	tex(hyph-mk.tex) = 2024
Provides:	tex(loadhyph-mk.tex) = 2024
BuildArch:	noarch

%description
Hyphenation patterns for Macedonian.

%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/loadhyph-mk.tex
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/tex-8bit/hyph-mk.macedonian.tex
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/tex/hyph-mk.tex
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/txt/hyph-mk.pat.txt

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9990 |21cr|texlive-hyplain-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/hyplain
# catalog-date 2007-03-07 20:05:57 +0100
# catalog-license pd
# catalog-version 1.0
Name:		texlive-hyplain
Version:	1.0
Release:	8
Summary:	Basic support for multiple languages in Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/hyplain
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyplain.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyplain.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a means to set up hyphenation suitable for
several languages and/or dialects, and to select them or switch
between them while typesetting.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/hyplain/hylang.tex
%{_texmfdistdir}/tex/plain/hyplain/hypdfplain.ini
%{_texmfdistdir}/tex/plain/hyplain/hyplain.tex
%{_texmfdistdir}/tex/plain/hyplain/hyrules.tex
%doc %{_texmfdistdir}/doc/plain/hyplain/README
%doc %{_texmfdistdir}/doc/plain/hyplain/hydoc.pdf
%doc %{_texmfdistdir}/doc/plain/hyplain/hydoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9991 |21cr|texlive-ibarra-64567-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ibarra

Summary:	LaTeX support for the Ibarra Real Nova family of fonts
Name:		texlive-ibarra
Version:	64567
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ibarra.map) = 2024
Provides:	tex(ibarra.sty) = 2024
Provides:	tex(ibrr_2qacnp.enc) = 2024
Provides:	tex(ibrr_6jlwjs.enc) = 2024
Provides:	tex(ibrr_a3lg2q.enc) = 2024
Provides:	tex(ibrr_bqfkme.enc) = 2024
Provides:	tex(ibrr_eocuub.enc) = 2024
Provides:	tex(ibrr_gj2f64.enc) = 2024
Provides:	tex(ibrr_ifilzm.enc) = 2024
Provides:	tex(ibrr_j5nrvp.enc) = 2024
Provides:	tex(ibrr_miztrm.enc) = 2024
Provides:	tex(ibrr_qbzklr.enc) = 2024
Provides:	tex(ibrr_rszbuw.enc) = 2024
Provides:	tex(ibrr_s4svbt.enc) = 2024
Provides:	tex(ibrr_xjlkg7.enc) = 2024
Provides:	tex(ibrr_xx2mp7.enc) = 2024
Provides:	tex(ibrr_yt2suz.enc) = 2024
Provides:	tex(ibrr_yyhfj4.enc) = 2024
Provides:	tex(LY1IbarraRealNova-LF.fd) = 2024
Provides:	tex(LY1IbarraRealNova-OsF.fd) = 2024
Provides:	tex(LY1IbarraRealNova-Sup.fd) = 2024
Provides:	tex(OT1IbarraRealNova-LF.fd) = 2024
Provides:	tex(OT1IbarraRealNova-OsF.fd) = 2024
Provides:	tex(OT1IbarraRealNova-Sup.fd) = 2024
Provides:	tex(T1IbarraRealNova-LF.fd) = 2024
Provides:	tex(T1IbarraRealNova-OsF.fd) = 2024
Provides:	tex(T1IbarraRealNova-Sup.fd) = 2024
Provides:	tex(TS1IbarraRealNova-LF.fd) = 2024
Provides:	tex(TS1IbarraRealNova-OsF.fd) = 2024
BuildArch:	noarch

%description
The Ibarra Real Nova is a revival of a typeface designed by
Geronimo Gil for the publication of Don Quixote for the Real
Academia de la Lengua in 1780. Joaquin Ibarra was the printer.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/%{oname}
%{_texmfdistdir}/fonts/map/dvips/%{oname}
%{_texmfdistdir}/fonts/tfm/public/%{oname}
%{_texmfdistdir}/fonts/truetype/public/%{oname}
%{_texmfdistdir}/fonts/type1/public/%{oname}
%{_texmfdistdir}/fonts/vf/public/%{oname}
%{_texmfdistdir}/tex/latex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9992 |21cr|texlive-ibrackets-65383-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ibrackets

Summary:	Intelligent brackets
Name:		texlive-ibrackets
Version:	65383
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ibrackets.sty) = 2024
BuildArch:	noarch

%description
This small package provides a new definition of brackets [ and
] as active characters to get correct blank spaces in
mathematical mode when using for open intervals. Instead of
parenthesis: ]-\infty, 0[ is equivalent to (-\infty, 0).

%files
%doc %{_texmfdistdir}/doc/latex/ibrackets
%{_texmfdistdir}/tex/latex/ibrackets

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9993 |21cr|texlive-icite-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname icite

Summary:	Indices locorum citatorum
Name:		texlive-icite
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(icite.sty) = 2024
BuildArch:	noarch

%description
The package is designed to produce from BibTeX or BibLaTeX
bibliographical databases the different indices of authors and
works cited which are called indices locorum citatorum. It
relies on a specific \icite command and can operate with either
BibTeX or BibLaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/icite
%{_texmfdistdir}/tex/latex/icite

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9994 |21cr|texlive-identkey-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:	    texlive-identkey
Version:	0.1.0
Release:	1
Summary:	Typesetting bracketed dichotomous identification keys
Group:		Publishing
URL:		hhttps://www.ctan.org/pkg/identkey
License:	GNU General Public License, version 3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/identkey.tar.xz  
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/identkey.doc.tar.xz  
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is for typesetting bracketed dichotomous identification keys

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/identkey
%doc %{_texmfdistdir}/doc/latex/identkey
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9995 |21cr|texlive-ieejtran-65641-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ieejtran

Summary:	Unofficial bibliography style file for the Institute of Electrical Engineers of Japan
Name:		texlive-ieejtran
Version:	65641
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides an unofficial BibTeX style for authors of
the Institute of Electrical Engineers of Japan (IEEJ)
transactions journals and conferences.

%files
%doc %{_texmfdistdir}/doc/bibtex/ieejtran
%{_texmfdistdir}/bibtex/bst/ieejtran

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9996 |21cr|texlive-iexec-64908-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname iexec

Summary:	Execute shell commands and input their output
Name:		texlive-iexec
Version:	64908
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tools
Provides:	tex(iexec.sty) = 2024
BuildArch:	noarch

%description
With the help of the \iexec command, you can execute a shell
command and then input its output into your document. This
package also lets you use any special symbols inside your
command.

%files
%doc %{_texmfdistdir}/doc/latex/iexec
%{_texmfdistdir}/tex/latex/iexec

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9997 |21cr|texlive-ifallfalse-60027-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ifallfalse

Summary:	Compare a string against a set of other strings
Name:		texlive-ifallfalse
Version:	60027
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ifallfalse.sty) = 2024
BuildArch:	noarch

%description
This package allows you to check whether a string is contained
within another set of strings, and perform an action if it is
not. This is done by using the allfalse environment and passing
in a string and an action to be performed if the string is not
contained in the set. Then, passing in a string to the \orcheck
macro inside the respective allfalse environment adds that to
the set of strings. This package does not work with the LuaTeX
engine.

%files
%doc %{_texmfdistdir}/doc/latex/ifallfalse
%{_texmfdistdir}/tex/latex/ifallfalse

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9998 |21cr|texlive-ifetex-1.2a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24853
# category Package
# catalog-ctan /macros/latex/contrib/ifetex
# catalog-date 2011-12-15 16:49:50 +0100
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-ifetex
Version:	1.2a
Release:	1
Summary:	Provides \ifetex switch
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ifetex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifetex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifetex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifetex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the switch \ifetex which indicates whether
e-TeX is available or not. The package can be loaded as LaTeX
package using \usepackage{ifetex} or in plain TeX using \input
ifetex. In either case it aborts silently if the \ifetex macro
is already defined. The package's test is whether \eTeXversion
is defined as a primitive; if it is, the package assumes e-TeX
features are available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ifetex/ifetex.sty
%{_texmfdistdir}/tex/plain/ifetex/ifetex.tex
%doc %{_texmfdistdir}/doc/latex/ifetex/README
%doc %{_texmfdistdir}/doc/latex/ifetex/ifetex.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ifetex/ifetex.dtx
%doc %{_texmfdistdir}/source/latex/ifetex/ifetex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 9999 |21cr|texlive-iffont-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-iffont
Version:	20190228
Release:	1
Summary:	Conditionally load fonts with fontspec
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/iffont
License:	lppl1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iffont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iffont.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iffont.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a macro to select the first font XeLaTeX
or LuaTeX can find in a comma separated list and, additionally,
a number of macro tests.

%prep
%setup -c -a1 -a2
%autopatch -p1

%build

%install
rm -rf tlpkg
mkdir -p %{buildroot}%{_texmfdistdir}
cp -a * %{buildroot}%{_texmfdistdir}

%files
%doc %{_texmfdistdir}/source/latex/iffont
%{_texmfdistdir}/tex/latex/iffont
%doc %{_texmfdistdir}/doc/latex/iffont

%post -p %{_sbindir}/texlive.post

%postun
[ "$1" -eq 0 ] && %{_sbindir}/texlive.post
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10000 |21cr|texlive-ifptex-62982-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ifptex

Summary:	Check if the engine is pTeX or one of its derivatives
Name:		texlive-ifptex
Version:	62982
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ifptex.sty) = 2024
Provides:	tex(ifuptex.sty) = 2024
BuildArch:	noarch

%description
The ifptex package is a counterpart of ifxetex, ifluatex, etc.
for the ptex engine. The ifuptex package is an alias to ifptex
provided for backward compatibility.

%files
%doc %{_texmfdistdir}/doc/generic/ifptex/
%{_texmfdistdir}/tex/generic/ifptex/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10001 |21cr|texlive-ifsym-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24868
# category Package
# catalog-ctan /fonts/ifsym
# catalog-date 2011-04-10 22:02:30 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-ifsym
Version:	20190228
Release:	1
Summary:	A collection of symbols
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ifsym
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifsym.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifsym.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of symbol fonts, written in Metafont, offering
(respectively) clock-face symbols, geometrical symbols, weather
symbols, mountaineering symbols, electronic circuit symbols and
a set of miscellaneous symbols. A LaTeX package is provided,
that allows the user to load only those symbols needed in a
document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/ifsym/ifclk.gen
%{_texmfdistdir}/fonts/source/public/ifsym/ifclk10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifclkb10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifgeo.gen
%{_texmfdistdir}/fonts/source/public/ifsym/ifgeo10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifgeob10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifgeobn10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifgeobw10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifgeon10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifgeow10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifsym.gen
%{_texmfdistdir}/fonts/source/public/ifsym/ifsym10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifsymb10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifsymbi10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifsymi10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifwea.gen
%{_texmfdistdir}/fonts/source/public/ifsym/ifwea10.mf
%{_texmfdistdir}/fonts/source/public/ifsym/ifweab10.mf
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifclk10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifclkb10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifgeo10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifgeob10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifgeobn10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifgeobw10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifgeon10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifgeow10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifsym10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifsymb10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifsymbi10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifsymi10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifwea10.tfm
%{_texmfdistdir}/fonts/tfm/public/ifsym/ifweab10.tfm
%{_texmfdistdir}/tex/latex/ifsym/ifsym.sty
%{_texmfdistdir}/tex/latex/ifsym/uifblk.fd
%{_texmfdistdir}/tex/latex/ifsym/uifclk.fd
%{_texmfdistdir}/tex/latex/ifsym/uifgeo.fd
%{_texmfdistdir}/tex/latex/ifsym/uifsym.fd
%{_texmfdistdir}/tex/latex/ifsym/uifwea.fd
%doc %{_texmfdistdir}/doc/fonts/ifsym/ifsym.ps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10002 |21cr|texlive-ifxptex-46153-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ifxptex

Summary:	Detect pTeX and its derivatives
Name:		texlive-ifxptex
Version:	46153
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ifxptex.sty) = 2024
BuildArch:	noarch

%description
The package provides commands for detecting pTeX and its
derivatives (e-pTeX, upTeX, e-upTeX, and ApTeX). Both LaTeX and
plain TeX are supported.

%files
%doc %{_texmfdistdir}/doc/generic/ifxptex/
%{_texmfdistdir}/tex/generic/ifxptex/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10003 |21cr|texlive-ijqc-1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/ijqc
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-ijqc
Version:	1.2
Release:	8
Summary:	BibTeX style file for the Intl. J. Quantum Chem
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/ijqc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ijqc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ijqc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
ijqc.bst is a BibTeX style file to support publication in
Wiley's International Journal of Quantum Chemistry. It is not
in any way officially endorsed by the publisher or editors, and
is provided without any warranty one could ever think of.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/ijqc/ijqc.bst
%doc %{_texmfdistdir}/doc/bibtex/ijqc/README
%doc %{_texmfdistdir}/doc/bibtex/ijqc/makefile
%doc %{_texmfdistdir}/doc/bibtex/ijqc/mybib.bib
%doc %{_texmfdistdir}/doc/bibtex/ijqc/xampl.pdf
%doc %{_texmfdistdir}/doc/bibtex/ijqc/xampl.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10004 |21cr|texlive-ijsra-44886-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ijsra

Summary:	LaTeX document class for the International Journal of Student Research in Archaeology
Name:		texlive-ijsra
Version:	44886
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ijsra.cls) = 2024
BuildArch:	noarch

%description
This is a document class called ijsra which is used for the
International Journal of Student Research in Archaeology.

%files
%doc %{_texmfdistdir}/doc/latex/ijsra/
%{_texmfdistdir}/tex/latex/ijsra/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10005 |21cr|texlive-imfellenglish-64568-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname imfellenglish

Summary:	IM Fell English fonts with LaTeX support
Name:		texlive-imfellenglish
Version:	64568
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(imfe_5cupvv.enc) = 2024
Provides:	tex(imfe_5k4rzj.enc) = 2024
Provides:	tex(imfe_5vh7x2.enc) = 2024
Provides:	tex(imfe_6clpkg.enc) = 2024
Provides:	tex(imfe_f45kxn.enc) = 2024
Provides:	tex-imfellenglish = 2024
Provides:	tex(imfellEnglish.map) = 2024
Provides:	tex(imfellEnglish.sty) = 2024
Provides:	tex(imfe_mwjp4u.enc) = 2024
Provides:	tex(imfe_o7go57.enc) = 2024
Provides:	tex(imfe_q75qgb.enc) = 2024
Provides:	tex(imfe_qauovj.enc) = 2024
Provides:	tex(imfe_smj6bz.enc) = 2024
Provides:	tex(imfe_srzjep.enc) = 2024
Provides:	tex(LY1IMFELLEnglish-TLF.fd) = 2024
Provides:	tex(OT1IMFELLEnglish-TLF.fd) = 2024
Provides:	tex(T1IMFELLEnglish-TLF.fd) = 2024
Provides:	tex(TS1IMFELLEnglish-TLF.fd) = 2024
BuildArch:	noarch

%description
Igino Marini has implemented digital revivals of fonts
bequeathed to Oxford University by Dr. John Fell, Bishop of
Oxford and Dean of Christ Church in 1686. This package provides
the English family, consisting of Roman, Italic and Small-Cap
fonts.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/imfellenglish/
%{_texmfdistdir}/fonts/map/dvips/imfellenglish/
%{_texmfdistdir}/fonts/opentype/iginomarini/imfellenglish/
%{_texmfdistdir}/fonts/tfm/iginomarini/imfellenglish/
%{_texmfdistdir}/fonts/type1/iginomarini/imfellenglish/
%{_texmfdistdir}/fonts/vf/iginomarini/imfellenglish/
%{_texmfdistdir}/tex/latex/imfellenglish/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10006 |21cr|texlive-includernw-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-includernw
Version:	0.1.0
Release:	1
Summary:	This package is for including .Rnw (knitr/sweave)-files inside .tex-files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/includernw
License:	The LATEX Project Public License 1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/includernw.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/includernw.doc.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
This package is for including .Rnw (knitr/sweave)-files inside .tex-files. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/includernw
%doc %{_texmfdistdir}/doc/latex/includernw

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10007 |21cr|texlive-infwarerr-53023-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname infwarerr

Summary:	Complete set of information/warning/error message macros
Name:		texlive-infwarerr
Version:	53023
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(infwarerr.sty) = 2024
BuildArch:	noarch

%description
This package provides a complete set of macros for information,
warning and error messages. Under LaTeX, the commands are
wrappers for the corresponding LaTeX commands; under Plain TeX
they are available as complete implementations.

%files
%doc %{_texmfdistdir}/doc/latex/infwarerr
%{_texmfdistdir}/tex/generic/infwarerr

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10008 |21cr|texlive-ini-files-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ini-files
Version:	20190228
Release:	1
Summary:	Collection of model .ini files for creating TeX formats
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/generic/tex-ini-files
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-ini-files.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-ini-files.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
This bundle provides a collection of model .ini files for creating TeX formats.
These files are commonly used to introduced distribution-dependent
variations in formats.

They are also used to allow existing format source files to be used with
newer engines, for example to adapt the plain e-TeX source file to work
with XeTeX and LuaTeX.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/doc/generic/tex-ini-files/README.md
%{_texmfdistdir}/tex/generic/tex-ini-files/dvilualatex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/dviluatex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/lualatex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/luatex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/luatexconfig.tex
%{_texmfdistdir}/tex/generic/tex-ini-files/pdftexconfig.tex
%{_texmfdistdir}/tex/generic/tex-ini-files/xelatex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/xetex.ini
%{_texmfdistdir}/tlpkg/tlpobj/tex-ini-files.doc.tlpobj
%{_texmfdistdir}/tlpkg/tlpobj/tex-ini-files.tlpobj

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10009 |21cr|texlive-initials-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/initials
# catalog-date 2008-08-19 23:32:24 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-initials
Version:	20190228
Release:	1
Summary:	Adobe Type 1 decorative initial fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/initials
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/initials.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/initials.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
For each font, at least an .pfb and .tfm file is provided, with
a .fd file for use with LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/initials/config.Acorn
%{_texmfdistdir}/dvips/initials/config.AnnSton
%{_texmfdistdir}/dvips/initials/config.ArtNouv
%{_texmfdistdir}/dvips/initials/config.ArtNouvc
%{_texmfdistdir}/dvips/initials/config.Carrickc
%{_texmfdistdir}/dvips/initials/config.Eichenla
%{_texmfdistdir}/dvips/initials/config.Eileen
%{_texmfdistdir}/dvips/initials/config.EileenBl
%{_texmfdistdir}/dvips/initials/config.Elzevier
%{_texmfdistdir}/dvips/initials/config.GotIn
%{_texmfdistdir}/dvips/initials/config.GoudyIn
%{_texmfdistdir}/dvips/initials/config.Kinigcap
%{_texmfdistdir}/dvips/initials/config.Konanur
%{_texmfdistdir}/dvips/initials/config.Kramer
%{_texmfdistdir}/dvips/initials/config.MorrisIn
%{_texmfdistdir}/dvips/initials/config.Nouveaud
%{_texmfdistdir}/dvips/initials/config.Romantik
%{_texmfdistdir}/dvips/initials/config.Rothdn
%{_texmfdistdir}/dvips/initials/config.RoyalIn
%{_texmfdistdir}/dvips/initials/config.Sanremo
%{_texmfdistdir}/dvips/initials/config.Starburst
%{_texmfdistdir}/dvips/initials/config.Typocaps
%{_texmfdistdir}/dvips/initials/config.Zallman
%{_texmfdistdir}/fonts/afm/public/initials/Acorn.afm
%{_texmfdistdir}/fonts/afm/public/initials/AnnSton.afm
%{_texmfdistdir}/fonts/afm/public/initials/ArtNouv.afm
%{_texmfdistdir}/fonts/afm/public/initials/ArtNouvc.afm
%{_texmfdistdir}/fonts/afm/public/initials/Carrickc.afm
%{_texmfdistdir}/fonts/afm/public/initials/Eichenla.afm
%{_texmfdistdir}/fonts/afm/public/initials/Eileen.afm
%{_texmfdistdir}/fonts/afm/public/initials/EileenBl.afm
%{_texmfdistdir}/fonts/afm/public/initials/Elzevier.afm
%{_texmfdistdir}/fonts/afm/public/initials/GotIn.afm
%{_texmfdistdir}/fonts/afm/public/initials/GoudyIn.afm
%{_texmfdistdir}/fonts/afm/public/initials/Kinigcap.afm
%{_texmfdistdir}/fonts/afm/public/initials/Konanur.afm
%{_texmfdistdir}/fonts/afm/public/initials/Kramer.afm
%{_texmfdistdir}/fonts/afm/public/initials/MorrisIn.afm
%{_texmfdistdir}/fonts/afm/public/initials/Nouveaud.afm
%{_texmfdistdir}/fonts/afm/public/initials/Romantik.afm
%{_texmfdistdir}/fonts/afm/public/initials/Rothdn.afm
%{_texmfdistdir}/fonts/afm/public/initials/RoyalIn.afm
%{_texmfdistdir}/fonts/afm/public/initials/Sanremo.afm
%{_texmfdistdir}/fonts/afm/public/initials/Starburst.afm
%{_texmfdistdir}/fonts/afm/public/initials/Typocaps.afm
%{_texmfdistdir}/fonts/afm/public/initials/Zallman.afm
%{_texmfdistdir}/fonts/map/dvips/initials/Acorn.map
%{_texmfdistdir}/fonts/map/dvips/initials/AnnSton.map
%{_texmfdistdir}/fonts/map/dvips/initials/ArtNouv.map
%{_texmfdistdir}/fonts/map/dvips/initials/ArtNouvc.map
%{_texmfdistdir}/fonts/map/dvips/initials/Carrickc.map
%{_texmfdistdir}/fonts/map/dvips/initials/Eichenla.map
%{_texmfdistdir}/fonts/map/dvips/initials/Eileen.map
%{_texmfdistdir}/fonts/map/dvips/initials/EileenBl.map
%{_texmfdistdir}/fonts/map/dvips/initials/Elzevier.map
%{_texmfdistdir}/fonts/map/dvips/initials/GotIn.map
%{_texmfdistdir}/fonts/map/dvips/initials/GoudyIn.map
%{_texmfdistdir}/fonts/map/dvips/initials/Kinigcap.map
%{_texmfdistdir}/fonts/map/dvips/initials/Konanur.map
%{_texmfdistdir}/fonts/map/dvips/initials/Kramer.map
%{_texmfdistdir}/fonts/map/dvips/initials/MorrisIn.map
%{_texmfdistdir}/fonts/map/dvips/initials/Nouveaud.map
%{_texmfdistdir}/fonts/map/dvips/initials/Romantik.map
%{_texmfdistdir}/fonts/map/dvips/initials/Rothdn.map
%{_texmfdistdir}/fonts/map/dvips/initials/RoyalIn.map
%{_texmfdistdir}/fonts/map/dvips/initials/Sanremo.map
%{_texmfdistdir}/fonts/map/dvips/initials/Starburst.map
%{_texmfdistdir}/fonts/map/dvips/initials/Typocaps.map
%{_texmfdistdir}/fonts/map/dvips/initials/Zallman.map
%{_texmfdistdir}/fonts/tfm/public/initials/Acorn.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/AnnSton.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/ArtNouv.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/ArtNouvc.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Carrickc.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Eichenla.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Eileen.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/EileenBl.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Elzevier.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/GotIn.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/GoudyIn.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Kinigcap.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Konanur.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Kramer.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/MorrisIn.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Nouveaud.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Romantik.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Rothdn.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/RoyalIn.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Sanremo.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Starburst.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Typocaps.tfm
%{_texmfdistdir}/fonts/tfm/public/initials/Zallman.tfm
%{_texmfdistdir}/fonts/type1/public/initials/Acorn.pfb
%{_texmfdistdir}/fonts/type1/public/initials/AnnSton.pfb
%{_texmfdistdir}/fonts/type1/public/initials/ArtNouv.pfb
%{_texmfdistdir}/fonts/type1/public/initials/ArtNouvc.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Carrickc.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Eichenla.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Eileen.pfb
%{_texmfdistdir}/fonts/type1/public/initials/EileenBl.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Elzevier.pfb
%{_texmfdistdir}/fonts/type1/public/initials/GotIn.pfb
%{_texmfdistdir}/fonts/type1/public/initials/GoudyIn.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Kinigcap.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Konanur.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Kramer.pfb
%{_texmfdistdir}/fonts/type1/public/initials/MorrisIn.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Nouveaud.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Romantik.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Rothdn.pfb
%{_texmfdistdir}/fonts/type1/public/initials/RoyalIn.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Sanremo.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Starburst.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Typocaps.pfb
%{_texmfdistdir}/fonts/type1/public/initials/Zallman.pfb
%{_texmfdistdir}/tex/latex/initials/Acorn.fd
%{_texmfdistdir}/tex/latex/initials/AnnSton.fd
%{_texmfdistdir}/tex/latex/initials/ArtNouv.fd
%{_texmfdistdir}/tex/latex/initials/ArtNouvc.fd
%{_texmfdistdir}/tex/latex/initials/Carrickc.fd
%{_texmfdistdir}/tex/latex/initials/Eichenla.fd
%{_texmfdistdir}/tex/latex/initials/Eileen.fd
%{_texmfdistdir}/tex/latex/initials/EileenBl.fd
%{_texmfdistdir}/tex/latex/initials/Elzevier.fd
%{_texmfdistdir}/tex/latex/initials/GotIn.fd
%{_texmfdistdir}/tex/latex/initials/GoudyIn.fd
%{_texmfdistdir}/tex/latex/initials/Kinigcap.fd
%{_texmfdistdir}/tex/latex/initials/Konanur.fd
%{_texmfdistdir}/tex/latex/initials/Kramer.fd
%{_texmfdistdir}/tex/latex/initials/MorrisIn.fd
%{_texmfdistdir}/tex/latex/initials/Nouveaud.fd
%{_texmfdistdir}/tex/latex/initials/Romantik.fd
%{_texmfdistdir}/tex/latex/initials/Rothdn.fd
%{_texmfdistdir}/tex/latex/initials/RoyalIn.fd
%{_texmfdistdir}/tex/latex/initials/Sanremo.fd
%{_texmfdistdir}/tex/latex/initials/Starburst.fd
%{_texmfdistdir}/tex/latex/initials/Typocaps.fd
%{_texmfdistdir}/tex/latex/initials/Zallman.fd
%_texmf_updmap_d/initials
%doc %{_texmfdistdir}/doc/fonts/initials/Acorn.tex
%doc %{_texmfdistdir}/doc/fonts/initials/AnnSton.tex
%doc %{_texmfdistdir}/doc/fonts/initials/ArtNouv.tex
%doc %{_texmfdistdir}/doc/fonts/initials/ArtNouvc.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Carrickc.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Eichenla.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Eileen.tex
%doc %{_texmfdistdir}/doc/fonts/initials/EileenBl.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Elzevier.tex
%doc %{_texmfdistdir}/doc/fonts/initials/GotIn.tex
%doc %{_texmfdistdir}/doc/fonts/initials/GoudyIn.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Kinigcap.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Konanur.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Kramer.tex
%doc %{_texmfdistdir}/doc/fonts/initials/MorrisIn.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Nouveaud.tex
%doc %{_texmfdistdir}/doc/fonts/initials/README
%doc %{_texmfdistdir}/doc/fonts/initials/Romantik.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Rothdn.tex
%doc %{_texmfdistdir}/doc/fonts/initials/RoyalIn.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Sanremo.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Starburst.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Typocaps.tex
%doc %{_texmfdistdir}/doc/fonts/initials/Zallman.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/initials <<EOF
Map Acorn.map
Map AnnSton.map
Map ArtNouv.map
Map ArtNouvc.map
Map Carrickc.map
Map Eichenla.map
Map Eileen.map
Map EileenBl.map
Map Elzevier.map
Map GotIn.map
Map GoudyIn.map
Map Kinigcap.map
Map Konanur.map
Map Kramer.map
Map MorrisIn.map
Map Nouveaud.map
Map Romantik.map
Map Rothdn.map
Map RoyalIn.map
Map Sanremo.map
Map Starburst.map
Map Typocaps.map
Map Zallman.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10010 |21cr|texlive-inkpaper-54080-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname inkpaper

Summary:	A LaTeX class for writing a thesis following French rules
Name:		texlive-inkpaper
Version:	54080
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(inkpaper.cls) = 2024
BuildArch:	noarch

%description
InkPaper is designed to write mathematical papers,especially
designed for Mathematics Students. ZJGS students. magazine
editors. NOTICE.This is not a Thesis class.

%files
%doc %{_texmfdistdir}/doc/latex/inkpaper
%{_texmfdistdir}/tex/latex/inkpaper

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10011 |21cr|texlive-inlinebib-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22018
# category Package
# catalog-ctan /biblio/bibtex/contrib/inlinebib
# catalog-date 2006-12-12 00:29:31 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-inlinebib
Version:	20190228
Release:	2
Summary:	Citations in footnotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/inlinebib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inlinebib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inlinebib.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A BibTeX style and a LaTeX package that allow for a full
bibliography at the end of the document as well as citation
details in footnotes. The footnote details include "op. cit."
and "ibid." contractions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/inlinebib/inlinebib.bst
%{_texmfdistdir}/tex/latex/inlinebib/inlinebib.sty
%{_texmfdistdir}/tex/latex/inlinebib/pageranges.sty
%doc %{_texmfdistdir}/doc/bibtex/inlinebib/MANIFEST
%doc %{_texmfdistdir}/doc/bibtex/inlinebib/inlinebib.htm
%doc %{_texmfdistdir}/doc/bibtex/inlinebib/inlinebib.txt
%doc %{_texmfdistdir}/doc/bibtex/inlinebib/inlinebib1.gif
%doc %{_texmfdistdir}/doc/bibtex/inlinebib/inlinebib2.gif

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10012 |21cr|texlive-inlinelabel-63853-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname inlinelabel

Summary:	Assign equation numbers to inline equations
Name:		texlive-inlinelabel
Version:	63853
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(inlinelabel.sty) = 2024
BuildArch:	noarch

%description
This package can assign equation numbers to inline equations.
When Japanese is supported, you can switch to circled equation
numbers.

%files
%doc %{_texmfdistdir}/doc/latex/inlinelabel
%{_texmfdistdir}/tex/latex/inlinelabel

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10013 |21cr|texlive-innerscript-57672-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname innerscript

Summary:	Modifies automatic mathematics spacing
Name:		texlive-innerscript
Version:	57672
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(innerscript.sty) = 2024
BuildArch:	noarch

%description
This package modifies two aspects of TeX's automatic interatom
mathematics spacing. It uses LuaTeX's \Umath primitives to make
superscripts and subscripts more closely resemble \textstyle
and \displaystyle math and to treat \mathinner subformulas as
\mathord, effectively eliminating this class.

%files
%doc %{_texmfdistdir}/doc/lualatex/innerscript
%{_texmfdistdir}/tex/lualatex/innerscript

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10014 |21cr|texlive-inputenx-52986-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname inputenx

Summary:	Enhanced input encoding handling
Name:		texlive-inputenx
Version:	52986
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(inputenx.sty) = 2024
Provides:	tex(ix-alias.def) = 2024
Provides:	tex(ix-math.def) = 2024
Provides:	tex(ix-name.def) = 2024
Provides:	tex(ix-slot.def) = 2024
Provides:	tex(ix-uc.def) = 2024
Provides:	tex(x-ascii.def) = 2024
Provides:	tex(x-atarist.def) = 2024
Provides:	tex(x-cp1250.def) = 2024
Provides:	tex(x-cp1251.def) = 2024
Provides:	tex(x-cp1252.def) = 2024
Provides:	tex(x-cp1255.def) = 2024
Provides:	tex(x-cp1257.def) = 2024
Provides:	tex(x-cp437.def) = 2024
Provides:	tex(x-cp850.def) = 2024
Provides:	tex(x-cp852.def) = 2024
Provides:	tex(x-cp855.def) = 2024
Provides:	tex(x-cp858.def) = 2024
Provides:	tex(x-cp865.def) = 2024
Provides:	tex(x-cp866.def) = 2024
Provides:	tex(x-dec-mcs.def) = 2024
Provides:	tex(x-iso-8859-10.def) = 2024
Provides:	tex(x-iso-8859-13.def) = 2024
Provides:	tex(x-iso-8859-14.def) = 2024
Provides:	tex(x-iso-8859-15.def) = 2024
Provides:	tex(x-iso-8859-16.def) = 2024
Provides:	tex(x-iso-8859-1.def) = 2024
Provides:	tex(x-iso-8859-2.def) = 2024
Provides:	tex(x-iso-8859-3.def) = 2024
Provides:	tex(x-iso-8859-4.def) = 2024
Provides:	tex(x-iso-8859-5.def) = 2024
Provides:	tex(x-iso-8859-8.def) = 2024
Provides:	tex(x-iso-8859-9.def) = 2024
Provides:	tex(x-koi8-r.def) = 2024
Provides:	tex(x-mac-centeuro.def) = 2024
Provides:	tex(x-mac-cyrillic.def) = 2024
Provides:	tex(x-mac-roman.def) = 2024
Provides:	tex(x-nextstep.def) = 2024
Provides:	tex(x-verbatim.def) = 2024
BuildArch:	noarch

%description
This package deals with input encodings. It provides a wider
range of input encodings using standard mappings, than does
inputenc; it also covers nearly all slots. In this way, it
serves as more uptodate replacement for package inputenc.

%files
%doc %{_texmfdistdir}/doc/latex/inputenx
%{_texmfdistdir}/tex/latex/inputenx

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10015 |21cr|texlive-inputnormalization-59850-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname inputnormalization

Summary:	Wrapper for XeTeX's and LuaTeX's input normalization
Name:		texlive-inputnormalization
Version:	59850
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(inputnormalization.sty) = 2024
BuildArch:	noarch

%description
This package provides a cross engine interface to normalizing
input before it's read by TeX. It is based on XeTeX's
\XeTeXinputnormalization primitive and lua-uni-algos for
LuaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/inputnormalization
%{_texmfdistdir}/tex/latex/inputnormalization

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10016 |21cr|texlive-inriafonts-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname inriafonts

Summary:	Inria fonts with LaTeX support
Name:		texlive-inriafonts
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(inriasans_2ikqt3.enc) = 2024
Provides:	tex(inriasans_aeswfl.enc) = 2024
Provides:	tex(inriasans_azhk4k.enc) = 2024
Provides:	tex(inriasans_clzm26.enc) = 2024
Provides:	tex(inriasans_dl3y4j.enc) = 2024
Provides:	tex(inriasans_efwr3l.enc) = 2024
Provides:	tex(inriasans_fhoe3z.enc) = 2024
Provides:	tex(inriasans_g56wvz.enc) = 2024
Provides:	tex(inriasans_gn4bcn.enc) = 2024
Provides:	tex(inriasans_kgbpoz.enc) = 2024
Provides:	tex(InriaSans.map) = 2024
Provides:	tex(inriasans_necsus.enc) = 2024
Provides:	tex(inriasans_psyc4t.enc) = 2024
Provides:	tex(inriasans_pv4xsz.enc) = 2024
Provides:	tex(inriasans_rhfpoz.enc) = 2024
Provides:	tex(inriasans_rriqaz.enc) = 2024
Provides:	tex(InriaSans.sty) = 2024
Provides:	tex(inriasans_svhg3d.enc) = 2024
Provides:	tex(inriasans_x5ybkq.enc) = 2024
Provides:	tex(inriasans_yeotsr.enc) = 2024
Provides:	tex(inriasans_yl5fy2.enc) = 2024
Provides:	tex(inriaserif_2ikqt3.enc) = 2024
Provides:	tex(inriaserif_aeswfl.enc) = 2024
Provides:	tex(inriaserif_azhk4k.enc) = 2024
Provides:	tex(inriaserif_clzm26.enc) = 2024
Provides:	tex(inriaserif_dl3y4j.enc) = 2024
Provides:	tex(inriaserif_efwr3l.enc) = 2024
Provides:	tex(inriaserif_fhoe3z.enc) = 2024
Provides:	tex(inriaserif_g56wvz.enc) = 2024
Provides:	tex(inriaserif_gn4bcn.enc) = 2024
Provides:	tex(inriaserif_kgbpoz.enc) = 2024
Provides:	tex(InriaSerif.map) = 2024
Provides:	tex(inriaserif_necsus.enc) = 2024
Provides:	tex(inriaserif_psyc4t.enc) = 2024
Provides:	tex(inriaserif_pv4xsz.enc) = 2024
Provides:	tex(inriaserif_rhfpoz.enc) = 2024
Provides:	tex(inriaserif_rriqaz.enc) = 2024
Provides:	tex(InriaSerif.sty) = 2024
Provides:	tex(inriaserif_svhg3d.enc) = 2024
Provides:	tex(inriaserif_x5ybkq.enc) = 2024
Provides:	tex(inriaserif_yeotsr.enc) = 2024
Provides:	tex(inriaserif_yl5fy2.enc) = 2024
Provides:	tex(LY1InriaSans-LF.fd) = 2024
Provides:	tex(LY1InriaSans-OsF.fd) = 2024
Provides:	tex(LY1InriaSans-Sup.fd) = 2024
Provides:	tex(LY1InriaSans-TLF.fd) = 2024
Provides:	tex(LY1InriaSans-TOsF.fd) = 2024
Provides:	tex(LY1InriaSerif-LF.fd) = 2024
Provides:	tex(LY1InriaSerif-OsF.fd) = 2024
Provides:	tex(LY1InriaSerif-Sup.fd) = 2024
Provides:	tex(LY1InriaSerif-TLF.fd) = 2024
Provides:	tex(LY1InriaSerif-TOsF.fd) = 2024
Provides:	tex(OT1InriaSans-LF.fd) = 2024
Provides:	tex(OT1InriaSans-OsF.fd) = 2024
Provides:	tex(OT1InriaSans-Sup.fd) = 2024
Provides:	tex(OT1InriaSans-TLF.fd) = 2024
Provides:	tex(OT1InriaSans-TOsF.fd) = 2024
Provides:	tex(OT1InriaSerif-LF.fd) = 2024
Provides:	tex(OT1InriaSerif-OsF.fd) = 2024
Provides:	tex(OT1InriaSerif-Sup.fd) = 2024
Provides:	tex(OT1InriaSerif-TLF.fd) = 2024
Provides:	tex(OT1InriaSerif-TOsF.fd) = 2024
Provides:	tex(T1InriaSans-LF.fd) = 2024
Provides:	tex(T1InriaSans-OsF.fd) = 2024
Provides:	tex(T1InriaSans-Sup.fd) = 2024
Provides:	tex(T1InriaSans-TLF.fd) = 2024
Provides:	tex(T1InriaSans-TOsF.fd) = 2024
Provides:	tex(T1InriaSerif-LF.fd) = 2024
Provides:	tex(T1InriaSerif-OsF.fd) = 2024
Provides:	tex(T1InriaSerif-Sup.fd) = 2024
Provides:	tex(T1InriaSerif-TLF.fd) = 2024
Provides:	tex(T1InriaSerif-TOsF.fd) = 2024
Provides:	tex(TS1InriaSans-LF.fd) = 2024
Provides:	tex(TS1InriaSans-OsF.fd) = 2024
Provides:	tex(TS1InriaSans-TLF.fd) = 2024
Provides:	tex(TS1InriaSans-TOsF.fd) = 2024
Provides:	tex(TS1InriaSerif-LF.fd) = 2024
Provides:	tex(TS1InriaSerif-OsF.fd) = 2024
Provides:	tex(TS1InriaSerif-TLF.fd) = 2024
Provides:	tex(TS1InriaSerif-TOsF.fd) = 2024
BuildArch:	noarch

%description
Inria is a free font designed by Black[Foundry] for Inria
research institute. The font is available for free. It comes as
Serif and Sans Serif, each with three weights and matching
italics. Using these fonts with XeLaTeX and LuaLaTeX is easy
using the fontspec package; we refer to the documentation of
fontspec for more information. The present package provides a
way of using them with LaTeX and pdfLaTeX: it provides two
style files, InriaSerif.sty and InriaSans.sty, together with
the PostScript version of the fonts and their associated files.
These were created using autoinst.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/inriafonts
%{_texmfdistdir}/fonts/map/dvips/inriafonts
%{_texmfdistdir}/fonts/opentype/public/inriafonts
%{_texmfdistdir}/fonts/tfm/public/inriafonts
%{_texmfdistdir}/fonts/truetype/public/inriafonts
%{_texmfdistdir}/fonts/type1/public/inriafonts
%{_texmfdistdir}/fonts/vf/public/inriafonts
%{_texmfdistdir}/tex/latex/inriafonts

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10017 |21cr|texlive-insbox-2.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17694
# category Package
# catalog-ctan /macros/generic/insbox
# catalog-date 2007-01-07 15:47:33 +0100
# catalog-license pd
# catalog-version 2.2
Name:		texlive-insbox
Version:	2.2
Release:	8
Summary:	A TeX macro for inserting pictures/boxes into paragraphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/insbox
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/insbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/insbox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive insbox package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/insbox/insbox.tex
%doc %{_texmfdistdir}/doc/generic/insbox/demo.pdf
%doc %{_texmfdistdir}/doc/generic/insbox/demo.tex
%doc %{_texmfdistdir}/doc/generic/insbox/pic1.eps
%doc %{_texmfdistdir}/doc/generic/insbox/pic2.eps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10018 |21cr|texlive-installfont-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-installfont
Version:	1.7
Release:	2
Summary:	A bash script for installing a LaTeX font family
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/installfont
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/installfont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/installfont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-installfont.bin = %{EVRD}

%description
With this script you can install a LaTeX font family
(PostScript Type 1, TrueType and OpenType formats are
supported). Font series from light to ultra bold, and (faked)
small caps and (faked) slanted shapes are supported, but not
expert fonts. The script will rename the fonts automatically
(optional) or will otherwise expect the *.afm files and the
font files (in PostScript Type1 format) named in the Karl Berry
scheme (e.g. 5bbr8a.pfb). After running the script, you should
have a working font installation in your local TeX tree.

#-----------------------------------------------------------------------
%files
%{_bindir}/installfont-tl
%{_texmfdistdir}/scripts/installfont/installfont-tl
%doc %{_texmfdistdir}/doc/support/installfont/LICENSE
%doc %{_texmfdistdir}/doc/support/installfont/README
%doc %{_texmfdistdir}/doc/support/installfont/installfont
%doc %{_texmfdistdir}/doc/support/installfont/installfont.pdf
%doc %{_texmfdistdir}/doc/support/installfont/installfont.tex
%doc %{_texmfdistdir}/doc/support/installfont/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}	 
pushd %{buildroot}%{_bindir}	 
    ln -sf %{_texmfdistdir}/scripts/installfont/installfont-tl installfont-tl
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10019 |21cr|texlive-install-latex-guide-zh-cn-65434-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname install-latex-guide-zh-cn

Summary:	A short introduction to LaTeX installation written in Chinese
Name:		texlive-install-latex-guide-zh-cn
Version:	65434
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package will introduce the operations related to
installing TeX Live (introducing MacTeX in macOS), upgrading
macro packages, and compiling simple documents on Windows 10,
Ubuntu 20.04, and macOS systems, and mainly introducing command
line operations.

%files
%doc %{_texmfdistdir}/doc/latex/install-latex-guide-zh-cn

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10020 |21cr|texlive-intcalc-53168-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname intcalc

Summary:	Expandable arithmetic operations with integers
Name:		texlive-intcalc
Version:	53168
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(intcalc.sty) = 2024
BuildArch:	noarch

%description
This package provides expandable arithmetic operations with
integers, using the e-TeX extension \numexpr if it is
available.

%files
%doc %{_texmfdistdir}/doc/latex/intcalc
%{_texmfdistdir}/tex/generic/intcalc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10021 |21cr|texlive-inter-58892-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname inter

Summary:	The inter font face with support for LaTeX, XeLaTeX, and LuaLaTeX
Name:		texlive-inter
Version:	58892
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(textcomp.sty)
Provides:	tex(a_2p3rhn.enc) = 2024
Provides:	tex(a_3kvptd.enc) = 2024
Provides:	tex(a_6drkwd.enc) = 2024
Provides:	tex(a_6juwg2.enc) = 2024
Provides:	tex(a_bal5qf.enc) = 2024
Provides:	tex(a_cwhrm5.enc) = 2024
Provides:	tex(a_cyrdxo.enc) = 2024
Provides:	tex(a_doz5y6.enc) = 2024
Provides:	tex(a_dxdtrq.enc) = 2024
Provides:	tex(a_g6if7q.enc) = 2024
Provides:	tex(a_ggbt67.enc) = 2024
Provides:	tex(a_hx3dc4.enc) = 2024
Provides:	tex(a_jvxmtv.enc) = 2024
Provides:	tex(a_n63sgl.enc) = 2024
Provides:	tex(a_nkgz7y.enc) = 2024
Provides:	tex(a_pj3fbv.enc) = 2024
Provides:	tex(a_pn4hzq.enc) = 2024
Provides:	tex(a_rjznlt.enc) = 2024
Provides:	tex(a_v3wpkc.enc) = 2024
Provides:	tex(a_wgqtfc.enc) = 2024
Provides:	tex(a_y2idd3.enc) = 2024
Provides:	tex(a_y6622h.enc) = 2024
Provides:	tex(a_yzlvkb.enc) = 2024
Provides:	tex(a_zasxrl.enc) = 2024
Provides:	tex(a_zxuxr2.enc) = 2024
Provides:	tex(Inter.map) = 2024
Provides:	tex(inter.sty) = 2024
Provides:	tex(LY1Inter-LF.fd) = 2024
Provides:	tex(LY1Inter-Sup.fd) = 2024
Provides:	tex(LY1Inter-TLF.fd) = 2024
Provides:	tex(OT1Inter-LF.fd) = 2024
Provides:	tex(OT1Inter-Sup.fd) = 2024
Provides:	tex(OT1Inter-TLF.fd) = 2024
Provides:	tex(T1Inter-LF.fd) = 2024
Provides:	tex(T1Inter-Sup.fd) = 2024
Provides:	tex(T1Inter-TLF.fd) = 2024
Provides:	tex(TS1Inter-LF.fd) = 2024
Provides:	tex(TS1Inter-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Inter Sans family of fonts (version 3.015),
designed by Rasmus Andersson. Inter is a typeface specially
designed for user interfaces with focus on high legibility of
small-to-medium sized text on computer screens. The family
features a tall x-height to aid in readability of mixed-case
and lower-case text.

%files
%doc %{_texmfdistdir}/doc/fonts/inter
%{_texmfdistdir}/fonts/enc/dvips/inter
%{_texmfdistdir}/fonts/map/dvips/inter
%{_texmfdistdir}/fonts/opentype/public/inter
%{_texmfdistdir}/fonts/tfm/public/inter
%{_texmfdistdir}/fonts/type1/public/inter
%{_texmfdistdir}/fonts/vf/public/inter
%{_texmfdistdir}/tex/latex/inter

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10022 |21cr|texlive-interval-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-interval
Version:	0.4
Release:	1
Summary:	Format mathematical intervals, ensuring proper spacing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/interval
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interval.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interval.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
When typing an open interval as $]a,b[$, a closing bracket is
being used in place of an opening fence and vice versa. This
leads to the wrong spacing in, say, $]-a,b[$ or $A\in]a,b[=B$.
The package attempts to solve this using: \interval{a}{b} ->
[a,b] \interval[open]{a}{b} -> ]a,b[ \interval[open left]{a}{b}
-> ]a,b] The package also supports fence scaling and ensures
that the enclosing fences will end up having the proper closing
and opening types. TeX maths does not do this job properly.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/interval
%doc %{_texmfdistdir}/doc/latex/interval

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10023 |21cr|texlive-intopdf-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-intopdf
Version:	0.4.1
Release:	1
Summary:	Embed non-PDF files into PDF with hyperlink
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/intopdf
License:	The LATEX Project Public License 1.3
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/intopdf.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/intopdf.doc.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/intopdf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows to embed non-PDF files (e.g., BibTEX) into PDF with a hyperlink.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/intopdf
%doc %{_texmfdistdir}/doc/latex/intopdf
#- source
%doc %{_texmfdistdir}/source/latex/intopdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10024 |21cr|texlive-invoice2-46364-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname invoice2

Summary:	Intelligent invoices with LaTeX3
Name:		texlive-invoice2
Version:	46364
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(invoice2.sty) = 2024
BuildArch:	noarch

%description
Typeset invoices with automatic VAT and calculation of totals.
Supports internationalization, invoices are typeset with
booktabs for readability. Does not support separate projects
per invoice. Can be used as a replacement for invoice in most
cases.

%files
%doc %{_texmfdistdir}/doc/latex/invoice2/
%{_texmfdistdir}/tex/latex/invoice2/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10025 |21cr|texlive-iodhbwm-57773-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname iodhbwm

Summary:	Unofficial template of the DHBW Mannheim
Name:		texlive-iodhbwm
Version:	57773
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(iodhbwm.cls) = 2024
Provides:	tex(iodhbwm-i18n.def) = 2024
Provides:	tex(iodhbwm-templates.sty) = 2024
BuildArch:	noarch

%description
This package provides an unofficial template of the DHBW
Mannheim for the creation of bachelor thesis, studies or
project work with LaTeX. The aim of the package is the quick
creation of a basic framework without much effort.

%files
%doc %{_texmfdistdir}/doc/latex/iodhbwm
%{_texmfdistdir}/tex/latex/iodhbwm

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10026 |21cr|texlive-ionumbers-0.3.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33457
# category Package
# catalog-ctan /macros/latex/contrib/ionumbers
# catalog-date 2014-04-15 20:08:53 +0200
# catalog-license gpl
# catalog-version 0.3.3
Name:		texlive-ionumbers
Version:	0.3.3
Release:	5
Summary:	Restyle numbers in maths mode
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ionumbers
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ionumbers.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ionumbers.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ionumbers.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
'ionumbers' stands for 'input/output numbers'. The package
restyles numbers in maths mode. If a number in the input file
is written, e.g., as $3,231.44$ as commonly used in English
texts, the package is able to restyle it to be output as
$3\,231{,}44$ as commonly used in German texts (and vice
versa). This may be useful, for example, if you have a large
table and want to include it in texts with different output
conventions without the need to change the table. The package
can also automatically group digits left of the decimal
separator (thousands) and right of the decimal separator
(thousandths) in triplets without the need of specifing commas
(English) or points (German) as separators. E.g., the input
$1234.567890$ can be output as $1\,234.\,567\,890$. Finally, an
e starts the exponent of the number. For example, $21e6$ may be
output as $26\times10\,^{6}$.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ionumbers/ionumbers.sty
%doc %{_texmfdistdir}/doc/latex/ionumbers/COPYING
%doc %{_texmfdistdir}/doc/latex/ionumbers/Makefile
%doc %{_texmfdistdir}/doc/latex/ionumbers/README
%doc %{_texmfdistdir}/doc/latex/ionumbers/ionumbers.pdf
%doc %{_texmfdistdir}/doc/latex/ionumbers/ionumbers_test.pdf
%doc %{_texmfdistdir}/doc/latex/ionumbers/ionumbers_test.tex
#- source
%doc %{_texmfdistdir}/source/latex/ionumbers/ionumbers.dtx
%doc %{_texmfdistdir}/source/latex/ionumbers/ionumbers.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10027 |21cr|texlive-iopart-num-2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/iopart-num
# catalog-date 2009-01-27 15:17:42 +0100
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-iopart-num
Version:	2.1
Release:	8
Summary:	Numeric citation style for IOP journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/iopart-num
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iopart-num.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iopart-num.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A BibTeX style providing numeric citation in Harvard-like
format. Intended for use with Institute of Physics (IOP)
journals, including Journal of Physics.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/iopart-num/iopart-num.bst
%doc %{_texmfdistdir}/doc/bibtex/iopart-num/README
%doc %{_texmfdistdir}/doc/bibtex/iopart-num/iopart-num.bib
%doc %{_texmfdistdir}/doc/bibtex/iopart-num/iopart-num.pdf
%doc %{_texmfdistdir}/doc/bibtex/iopart-num/iopart-num.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10028 |21cr|texlive-ipaex-type1-47700-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ipaex-type1

Summary:	IPAex fonts converted to Type-1 format Unicode subfonts
Name:		texlive-ipaex-type1
Version:	47700
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(c70ipxga.fd) = 2024
Provides:	tex(c70ipxg.fd) = 2024
Provides:	tex(c70ipxma.fd) = 2024
Provides:	tex(c70ipxm.fd) = 2024
Provides:	tex-ipaex-type1 = 2024
Provides:	tex(ipaex-type1.map) = 2024
Provides:	tex(ot1ipxg.fd) = 2024
Provides:	tex(ot1ipxm.fd) = 2024
Provides:	tex(t1ipxg.fd) = 2024
Provides:	tex(t1ipxm.fd) = 2024
Provides:	tex(ts1ipxg.fd) = 2024
Provides:	tex(ts1ipxm.fd) = 2024
BuildArch:	noarch

%description
The package contains the IPAex Fonts converted into Unicode
subfonts in Type1 format, which is most suitable for use with
the CJK package. Font conversion was done with ttf2pt1.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/ipaex-type1/
%{_texmfdistdir}/fonts/map/dvips/ipaex-type1/
%{_texmfdistdir}/fonts/tfm/public/ipaex-type1/
%{_texmfdistdir}/fonts/type1/public/ipaex-type1/
%{_texmfdistdir}/tex/latex/ipaex-type1/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10029 |21cr|texlive-is-bst-52623-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname is-bst

Summary:	Extended versions of standard BibTeX styles
Name:		texlive-is-bst
Version:	52623
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The bundle contains an extended version (xbtxbst.doc) of the
source of the standard BibTeX styles, together with
corresponding versions of the standard styles. The styles offer
support for CODEN, ISBN, ISSN, LCCN, and PRICE fields, extended
PAGES fields, the PERIODICAL entry, and extended citation label
suffixing.

%files
%doc %{_texmfdistdir}/doc/bibtex/is-bst
%{_texmfdistdir}/bibtex/bst/is-bst

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10030 |21cr|texlive-iscram-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-iscram
Version:	1.4
Release:	1
Summary:	A LaTeX class to publish article to ISCRAM conferences
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/iscram.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/iscram.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX class to publish article to ISCRAM (International
Conference on Information Systems for Crisis Response and
Management).
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10031 |21cr|texlive-isomath-0.6.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27654
# category Package
# catalog-ctan /macros/latex/contrib/isomath
# catalog-date 2012-09-12 18:41:18 +0200
# catalog-license lppl
# catalog-version 0.6.1
Name:		texlive-isomath
Version:	0.6.1
Release:	11
Summary:	Mathematics style for science and technology
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/isomath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isomath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isomath.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides tools for a mathematical style that
conforms to the International Standard ISO 80000-2 and is
common in science and technology. It changes the default shape
of capital Greek letters to italic, sets up bold italic and
sans-serif bold italic math alphabets with Latin and Greek
characters, and defines macros for markup of vector, matrix and
tensor symbols.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/isomath/isomath.sty
%doc %{_texmfdistdir}/doc/latex/isomath/README.html
%doc %{_texmfdistdir}/doc/latex/isomath/README.txt
%doc %{_texmfdistdir}/doc/latex/isomath/isomath-test.pdf
%doc %{_texmfdistdir}/doc/latex/isomath/isomath-test.tex
%doc %{_texmfdistdir}/doc/latex/isomath/isomath.html
%doc %{_texmfdistdir}/doc/latex/isomath/isomath.pdf
%doc %{_texmfdistdir}/doc/latex/isomath/isomath.sty.html
%doc %{_texmfdistdir}/doc/latex/isomath/isomath.sty.txt
%doc %{_texmfdistdir}/doc/latex/isomath/isomath.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10032 |21cr|texlive-isort-0.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-isort
Version:	0.01
Release:	1
Summary:	Writing a TEX length with a space between number and unit
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/isopt
License:	LPPL
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/isopt.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/isopt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Writing a TEX length with the writes the value
and the unit without a space. Package isopt provides
a macro ISO which inserts a user defined space
between number and unit.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/isopt
%doc %{_texmfdistdir}/doc/latex/isopt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10033 |21cr|texlive-jablantile-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16364
# category Package
# catalog-ctan /fonts/jablantile
# catalog-date 2009-12-10 11:03:10 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-jablantile
Version:	20190228
Release:	2
Summary:	Metafont version of tiles in the style of Slavik Jablan
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/jablantile
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jablantile.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jablantile.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a small Metafont font to implement the modular tiles
described by Slavik Jablan. For an outline of the theoretical
structure of the tiles, see (for example) Jablan's JMM 2006
Exhibit.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/jablantile/jablantile.mf
%doc %{_texmfdistdir}/doc/fonts/jablantile/README
%doc %{_texmfdistdir}/doc/fonts/jablantile/dearjablan.tex
%doc %{_texmfdistdir}/doc/fonts/jablantile/jablantile.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10034 |21cr|texlive-jacow-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-jacow
Version:	1.4
Release:	1
Summary:	The "jacow.cls" class is used for submissions to the proceedings of conferences on JACoW.org
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/jacow.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/jacow.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The jacow class is used for submissions to the proceedings of
conferences on Joint Accelerator Conferences Website (JACoW),
an international collaboration that publishes the proceedings
of accelerator conferences held around the world.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10035 |21cr|texlive-jamtimes-1.12-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20408
# category Package
# catalog-ctan /fonts/jamtimes
# catalog-date 2009-11-07 09:52:42 +0000
# catalog-license other-free
# catalog-version 1.12
Name:		texlive-jamtimes
Version:	1.12
Release:	8
Summary:	Expanded Times Roman fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/jamtimes
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jamtimes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jamtimes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers LaTeX support for the expanded Times Roman
font, which has been used for many years in the Journal
d'Analyse Mathematique. Mathematics support is based on the
Belleek fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/jamtimes/jtm.map
%{_texmfdistdir}/fonts/tfm/public/jamtimes/blsy.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmb7tv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmb8cv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmb8rv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmb8tv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbc7tv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbc8tv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbi7me.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbi7tv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbi8cv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbi8rv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbi8tv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbo7tv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbo8cv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbo8rv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmbo8tv.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr7tc.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr7te.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr7tw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr7ye.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr7yoe.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8cc.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8ce.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8cw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8rc.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8re.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8rw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8tc.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8te.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmr8tw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmrc7te.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmrc7tw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmrc8te.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmrc8tw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri7me.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri7te.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri7tw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri7ze.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri8ce.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri8cw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri8re.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri8rw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri8te.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmri8tw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmro7te.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmro7tw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmro8ce.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmro8cw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmro8re.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmro8rw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmro8te.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/jtmro8tw.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/ptmb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/ptmbi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/ptmr8a.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/ptmri8a.tfm
%{_texmfdistdir}/fonts/tfm/public/jamtimes/rblmi.tfm
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmb7tv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmb8cv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmb8tv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbc7tv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbc8tv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbi7me.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbi7tv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbi8cv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbi8tv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbo7tv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbo8cv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmbo8tv.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr7tc.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr7te.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr7tw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr7ye.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr8cc.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr8ce.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr8cw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr8tc.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr8te.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmr8tw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmrc7te.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmrc7tw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmrc8te.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmrc8tw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmri7me.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmri7te.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmri7tw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmri8ce.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmri8cw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmri8te.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmri8tw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmro7te.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmro7tw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmro8ce.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmro8cw.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmro8te.vf
%{_texmfdistdir}/fonts/vf/public/jamtimes/jtmro8tw.vf
%{_texmfdistdir}/tex/latex/jamtimes/jamtimes.sty
%{_texmfdistdir}/tex/latex/jamtimes/omljtm.fd
%{_texmfdistdir}/tex/latex/jamtimes/omsjtm.fd
%{_texmfdistdir}/tex/latex/jamtimes/ot1jtm.fd
%{_texmfdistdir}/tex/latex/jamtimes/t1jtm.fd
%{_texmfdistdir}/tex/latex/jamtimes/ts1jtm.fd
%doc %{_texmfdistdir}/doc/latex/jamtimes/README
%doc %{_texmfdistdir}/doc/latex/jamtimes/jamtimes.bib
%doc %{_texmfdistdir}/doc/latex/jamtimes/jamtimes.dtx
%doc %{_texmfdistdir}/doc/latex/jamtimes/jamtimes.ins
%doc %{_texmfdistdir}/doc/latex/jamtimes/jamtimes.pdf
%doc %{_texmfdistdir}/doc/latex/jamtimes/mathsample.pdf
%doc %{_texmfdistdir}/doc/latex/jamtimes/mathsample.tex
%doc %{_texmfdistdir}/doc/latex/jamtimes/mathsample_ps.pdf
%doc %{_texmfdistdir}/doc/latex/jamtimes/textsample.pdf
%doc %{_texmfdistdir}/doc/latex/jamtimes/textsample.tex
%doc %{_texmfdistdir}/doc/latex/jamtimes/textsample_ps.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10036 |21cr|texlive-japanese-mathformulas-64678-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname japanese-mathformulas

Summary:	Compiling basic math formulas in Japanese using LuaLaTeX
Name:		texlive-japanese-mathformulas
Version:	64678
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(japanese-mathformulas.sty) = 2024
BuildArch:	noarch

%description
This is a style file for compiling basic maths formulas in
Japanese using LuaLaTeX. \NewDocumentCommand allows you to
specify whether the formula should be used within a sentence or
on a new line. The main packages used in
japanese-mathformulas.sty are amsmath, amssymb, siunitx,
ifthen, xparse, TikZ, mathtools, and graphics.

%files
%doc %{_texmfdistdir}/doc/lualatex/japanese-mathformulas
%{_texmfdistdir}/tex/lualatex/japanese-mathformulas

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10037 |21cr|texlive-jbact-52717-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jbact

Summary:	BibTeX style for biology journals
Name:		texlive-jbact
Version:	52717
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The style is a development of apalike.bst in the BibTeX bundle.
The style serves two journals -- if the user executes
"\nocite{TitlesOn}", the style serves for the Journal of
Theoretical Biology; otherwise it serves for the Journal of
Molecular Biology.

%files
%{_texmfdistdir}/bibtex/bst/jbact

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10038 |21cr|texlive-jeuxcartes-66600-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jeuxcartes

Summary:	Macros to insert playing cards
Name:		texlive-jeuxcartes
Version:	66600
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(JeuxCartes.sty) = 2024
BuildArch:	noarch

%description
This package provides macros to insert playing cards, single,
or hand, or random-hand, Poker or French Tarot or Uno, from png
files.

%files
%doc %{_texmfdistdir}/doc/latex/jeuxcartes
%{_texmfdistdir}/tex/latex/jeuxcartes

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10039 |21cr|texlive-jfmutil-1-20221028.0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-jfmutil
Version:	1
Release:	20221028.0
Summary:	Utility to process pTeX-extended TFM and VF
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/fonts/utilities/jfmutil
License:	mit
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jfmutil.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jfmutil.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This program provides functionality to process data files (JFM and VF) that form logical fonts used in (u)pTeX. 
The functions currently available include: The mutual conversion betweenc Japanese virtual fonts (pairs of VF and JFM) and files in the "ZVP format", 
which is an original text format representing data in virtual fonts. This function can be seen as a counterpart to the vftovp/vptovf programs. 
The mutual conversion between VF files alone and files in the "ZVP0 format", which is a subset of the ZVP format.


#-----------------------------------------------------------------------
%files
%{_bindir}/jfmutil
%{_texmfdistdir}/scripts/jfmutil/jfmutil.pl
%doc %{_texmfdistdir}/doc/fonts/jfmutil

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/jfmutil/jfmutil.pl jfmutil
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10040 |21cr|texlive-jieeetran-65642-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jieeetran

Summary:	UnofficiaL BibTeX style for citing Japanese articles in IEEE format
Name:		texlive-jieeetran
Version:	65642
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides an unofficial BibTeX style for authors
trying to cite Japanese articles in the Institute of Electrical
and Electronics Engineers (IEEE) format.

%files
%doc %{_texmfdistdir}/doc/bibtex/jieeetran
%{_texmfdistdir}/bibtex/bst/jieeetran

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10041 |21cr|texlive-jigsaw-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-jigsaw
Version:	0.3
Release:	1
Summary:	Draw jigsaw pieces with TikZ
Group:		Publishing
URL:		https://www.ctan.org/pkg/jigsaw
License:	The LATEX Project Public License 1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/jigsaw.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/jigsaw.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a small LATEX package to draw jigsaw pieces with TikZ. 
It is possible to draw individual pieces and adjust their shape, create tile patterns or automatically generate complete jigsaws.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/jigsaw
%doc %{_texmfdistdir}/doc/latex/jigsaw

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10042 |21cr|texlive-jkmath-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-jkmath
Version:	0.1
Release:	1
Summary:	Simple macros for mathematical notation 
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jkmath
License:	The LATEX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/jkmath.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/jkmath.doc.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
Inspired by the physicspackage on CTAN, the package defines some simple macros
for mathematical notation which make the code more readable and/or allow
flexibility in typesetting material.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/jkmath
%doc %{_texmfdistdir}/doc/latex/jkmath

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10043 |21cr|texlive-jlreq-66362-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jlreq

Summary:	Japanese document class based on requirements for Japanese text layout
Name:		texlive-jlreq
Version:	66362
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jlreq.cls) = 2024
Provides:	tex(jlreq-complements.sty) = 2024
Provides:	tex(jlreq-helpers.sty) = 2024
Provides:	tex(jlreq-trimmarks.sty) = 2024
BuildArch:	noarch

%description
This package provides a Japanese document class based on
requirements for Japanese text layout. The class file and the
JFM (Japanese font metric) files for LuaTeX-ja / pLaTeX /
upLaTeX are provided.

%files
%doc %{_texmfdistdir}/doc/latex/jlreq/
%{_texmfdistdir}/fonts/tfm/public/jlreq/
%{_texmfdistdir}/fonts/vf/public/jlreq/
%{_texmfdistdir}/tex/latex/jlreq/
%{_texmfdistdir}/tex/luatex/jlreq/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10044 |21cr|texlive-jlreq-deluxe-66115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jlreq-deluxe

Summary:	Multi-weight Japanese font support for the jlreq class
Name:		texlive-jlreq-deluxe
Version:	66115
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jlreq-deluxe.sty) = 2024
BuildArch:	noarch

%description
This package provides multi-weight Japanese font support for
the jlreq class.

%files
%doc %{_texmfdistdir}/doc/platex/jlreq-deluxe
%{_texmfdistdir}/fonts/tfm/public/jlreq-deluxe
%{_texmfdistdir}/fonts/vf/public/jlreq-deluxe
%{_texmfdistdir}/tex/platex/jlreq-deluxe

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10045 |21cr|texlive-jmb-52718-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jmb

Summary:	BibTeX style for the Journal of Theoretical Biology
Name:		texlive-jmb
Version:	52718
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jmb.sty) = 2024
BuildArch:	noarch

%description
This BibTeX bibliography style is for the Journal of Molecular
Biology and Journal of Theoretical Biology; the accompanying
LaTeX (2.09) package is a close relative of apalike.sty in the
BibTeX distribution; it features author-date references. The
bibliography style has control over whether to print reference
titles; if your database contains an article with the cite key
"TitlesOn", and you invoke it by \nocite{TitlesOn}, titles will
be printed; otherwise titles will not be printed.

%files
%{_texmfdistdir}/bibtex/bst/jmb
%{_texmfdistdir}/tex/latex/jmb

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10046 |21cr|texlive-jmsdelim-62630-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jmsdelim

Summary:	A package for compositional delimiter sizing
Name:		texlive-jmsdelim
Version:	62630
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jmsdelim.sty) = 2024
BuildArch:	noarch

%description
Correctly sizing delimiters is very difficult, particularly in
well-architected documents: a correctly engineered mathematical
document will include macros for all operations, and these
macros necessarily will include delimiters (such as
parentheses). However, the correct size for the delimiter
cannot be chosen ahead of time, because it will depend on the
arguments; two options are available: Provide optional
arguments to each notation macro for choosing delimiter sizes.
This is nearly intractable to do in practice. Ignore delimiter
sizes. With jmsdelim we offer an alternative: the correct
delimiter sizes can be set at the leaf nodes of a mathematical
expression, and magically bubble upward through the delimiters.

%files
%doc %{_texmfdistdir}/doc/latex/jmsdelim
%{_texmfdistdir}/tex/latex/jmsdelim

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10047 |21cr|texlive-jneurosci-1.00-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17346
# category Package
# catalog-ctan /biblio/bibtex/contrib/jneurosci
# catalog-date 2010-03-06 20:55:14 +0100
# catalog-license lppl
# catalog-version 1.00
Name:		texlive-jneurosci
Version:	1.00
Release:	8
Summary:	BibTeX style for the Journal of Neuroscience
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/jneurosci
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jneurosci.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jneurosci.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a slightly modified version of the namedplus style,
which fully conforms with the Journal of Neuroscience citation
style. It should be characterised as an author-date citation
style; a BibTeX style and a LaTeX package are provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/jneurosci/jneurosci.bst
%{_texmfdistdir}/tex/latex/jneurosci/jneurosci.sty
%doc %{_texmfdistdir}/doc/latex/jneurosci/README
%doc %{_texmfdistdir}/doc/latex/jneurosci/jneurosci.pdf
%doc %{_texmfdistdir}/doc/latex/jneurosci/jneurosci.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10048 |21cr|texlive-jnuexam-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-jnuexam
Version:	1.4
Release:	1
Summary:	Exam class for Jinan University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/jnuexam.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/jnuexam.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an exam class for Jinan University
(China).
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10049 |21cr|texlive-jobname-suffix-64797-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jobname-suffix

Summary:	Compile differently based on the filename
Name:		texlive-jobname-suffix
Version:	64797
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jobname-suffix.sty) = 2024
BuildArch:	noarch

%description
This package allows to compile a document differently depending
on the portion of the document's file name (internally, the
\jobname) that comes after the first "-" character. This allows
one to have one source file and multiple links to this source
file that each compile differently.

%files
%doc %{_texmfdistdir}/doc/latex/jobname-suffix
%{_texmfdistdir}/tex/latex/jobname-suffix

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10050 |21cr|texlive-josefin-64569-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname josefin

Summary:	Josefin fonts with LaTeX support
Name:		texlive-josefin
Version:	64569
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jfn_2p3jiy.enc) = 2024
Provides:	tex(jfn_adz5lu.enc) = 2024
Provides:	tex(jfn_d2anrk.enc) = 2024
Provides:	tex(jfn_ehgfhq.enc) = 2024
Provides:	tex(jfn_hf4msv.enc) = 2024
Provides:	tex(jfn_ti63qo.enc) = 2024
Provides:	tex(jfn_umrhwx.enc) = 2024
Provides:	tex(jfn_w4rwtq.enc) = 2024
Provides:	tex(josefin.map) = 2024
Provides:	tex(josefin.sty) = 2024
Provides:	tex(LY1JosefinSans-LF.fd) = 2024
Provides:	tex(OT1JosefinSans-LF.fd) = 2024
Provides:	tex(T1JosefinSans-LF.fd) = 2024
Provides:	tex(TS1JosefinSans-LF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Josefin Sans family of fonts, designed by
Santiago Orozco of the Typemade foundry in Monterey, Mexico.
Josefin Sans is available in seven weights, with corresponding
italics.

%files
%doc %{_texmfdistdir}/doc/fonts/josefin
%{_texmfdistdir}/fonts/enc/dvips/josefin
%{_texmfdistdir}/fonts/map/dvips/josefin
%{_texmfdistdir}/fonts/tfm/public/josefin
%{_texmfdistdir}/fonts/truetype/public/josefin
%{_texmfdistdir}/fonts/type1/public/josefin
%{_texmfdistdir}/fonts/vf/public/josefin
%{_texmfdistdir}/tex/latex/josefin

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10051 |21cr|texlive-jourcl-65290-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jourcl

Summary:	Cover letter for journal submissions
Name:		texlive-jourcl
Version:	65290
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jourcl.cls) = 2024
BuildArch:	noarch

%description
Paper submissions to journals are usually accompanied by a
cover letter. This package provides a LaTeX class and a
template for such a cover letter with the following main
features: Minimalistic design. Custom image. Pre-defined
commands for journal name, author, date, etc. Many macros
contained in this package speed up the process of preparing the
necessary ingredients for the cover letter. Macros for
recommending up to three reviewers and/or editors. ORCID logo
and link to the submitting author's ORCID page. Controls for
adding a "Conflict of interest" statement and declaration.
Custom greeting (e.g., "Dear Editor" for a regular submission,
"Dear Editor-in-Chief" for a submission to a journal's special
issue, etc.) Predefined valedictions for different types of
submissions (e.g., Yours sincerely, Yours faithfully, Best
regards, etc.)

%files
%doc %{_texmfdistdir}/doc/latex/jourcl
%{_texmfdistdir}/tex/latex/jourcl

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10052 |21cr|texlive-jpneduenumerate-63893-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jpneduenumerate

Summary:	Enumerative expressions in Japanese education
Name:		texlive-jpneduenumerate
Version:	63893
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jpneduenumerate.sty) = 2024
BuildArch:	noarch

%description
Mathematical equation representation in Japanese education
differs somewhat from the standard LaTeX writing style. This
package introduces enumerative expressions in Japanese
education.

%files
%doc %{_texmfdistdir}/doc/latex/jpneduenumerate
%{_texmfdistdir}/tex/latex/jpneduenumerate

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10053 |21cr|texlive-jpnedumathsymbols-63864-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jpnedumathsymbols

Summary:	Mathematical equation representation in Japanese education
Name:		texlive-jpnedumathsymbols
Version:	63864
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(jpnedumathsymbols.sty) = 2024
BuildArch:	noarch

%description
Mathematical equation representation in Japanese education
differs somewhat from the standard LaTeX writing style. This
package introduces mathematical equation representation in
Japanese education.

%files
%doc %{_texmfdistdir}/doc/latex/jpnedumathsymbols
%{_texmfdistdir}/tex/latex/jpnedumathsymbols

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10054 |21cr|texlive-js-misc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16211
# category Package
# catalog-ctan /macros/plain/contrib/js-misc
# catalog-date 2009-11-28 12:18:01 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-js-misc
Version:	20190228
Release:	1
Summary:	Miscellaneous macros from Joachim Schrod
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/js-misc
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/js-misc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/js-misc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A bunch of packages, including: - idverb.tex, for 'short
verbatim'; - xfig.tex, for including xfig/transfig output in a
TeX document; and - cassette.tex for setting cassette labels.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/js-misc/cassette.tex
%{_texmfdistdir}/tex/plain/js-misc/idverb.tex
%{_texmfdistdir}/tex/plain/js-misc/js-misc.tex
%{_texmfdistdir}/tex/plain/js-misc/schild.tex
%{_texmfdistdir}/tex/plain/js-misc/sperr.tex
%{_texmfdistdir}/tex/plain/js-misc/xfig.tex
%doc %{_texmfdistdir}/doc/plain/js-misc/History
%doc %{_texmfdistdir}/doc/plain/js-misc/INSTALL
%doc %{_texmfdistdir}/doc/plain/js-misc/Imakefile
%doc %{_texmfdistdir}/doc/plain/js-misc/License
%doc %{_texmfdistdir}/doc/plain/js-misc/Makefile
%doc %{_texmfdistdir}/doc/plain/js-misc/README
%doc %{_texmfdistdir}/doc/plain/js-misc/TODO
%doc %{_texmfdistdir}/doc/plain/js-misc/deutsch.doc
%doc %{_texmfdistdir}/doc/plain/js-misc/deutsch.tex
%doc %{_texmfdistdir}/doc/plain/js-misc/idverb.doc
%doc %{_texmfdistdir}/doc/plain/js-misc/names.sty
%doc %{_texmfdistdir}/doc/plain/js-misc/xfig/text-2.1-doc.tex
%doc %{_texmfdistdir}/doc/plain/js-misc/xfig/text-2.1.fig
%doc %{_texmfdistdir}/doc/plain/js-misc/xfig/text-2.1.latex
%doc %{_texmfdistdir}/doc/plain/js-misc/xfig/text-3.1-doc.tex
%doc %{_texmfdistdir}/doc/plain/js-misc/xfig/text-3.1.latex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10055 |21cr|texlive-junicode-0.7.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28286
# category Package
# catalog-ctan /fonts/junicode
# catalog-date 2012-11-17 16:00:23 +0100
# catalog-license gpl
# catalog-version 0.7.7
Name:		texlive-junicode
Version:	0.7.7
Release:	10
Summary:	A TrueType font for mediaevalists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/junicode
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/junicode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/junicode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Junicode is a TrueType font with many OpenType features for
antiquarians (especially medievalists) based on typefaces used
by the Oxford Press in the late 17th and early 18th centuries.
It works well with Xe(La)TeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/truetype/public/junicode/Junicode-Bold.ttf
%{_texmfdistdir}/fonts/truetype/public/junicode/Junicode-BoldItalic.ttf
%{_texmfdistdir}/fonts/truetype/public/junicode/Junicode-Italic.ttf
%{_texmfdistdir}/fonts/truetype/public/junicode/Junicode.ttf
%{_texmfdistdir}/tex/latex/junicode/mt-Junicode.cfg
%doc %{_texmfdistdir}/doc/fonts/junicode/Junicode.pdf
%doc %{_texmfdistdir}/doc/fonts/junicode/Junicode.tex
%doc %{_texmfdistdir}/doc/fonts/junicode/README
%doc %{_texmfdistdir}/doc/fonts/junicode/aelfric_job.pdf
%doc %{_texmfdistdir}/doc/fonts/junicode/aelfric_job.tex
%doc %{_texmfdistdir}/doc/fonts/junicode/fleurons
%doc %{_texmfdistdir}/doc/fonts/junicode/homer_sample.pdf
%doc %{_texmfdistdir}/doc/fonts/junicode/homer_sample.tex
%doc %{_texmfdistdir}/doc/fonts/junicode/replacements

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10056 |21cr|texlive-jupynotex-56715-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jupynotex

Summary:	Include whole or partial Jupyter notebooks in LaTeX documents
Name:		texlive-jupynotex
Version:	56715
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tcolorbox.sty)
Provides:	tex(jupynotex.sty) = 2024
BuildArch:	noarch

%description
This package provides a python3 script and a LaTeX .sty file
which can be used together to include Jupyter Notebooks (all of
them, or some specific cells) as part of a LaTeX document. It
will convert the Jupyter Notebook format to proper LaTeX so it
gets included seamlessly, supporting text, LaTeX, images, etc.

%files
%doc %{_texmfdistdir}/doc/latex/jupynotex
%{_texmfdistdir}/tex/latex/jupynotex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10057 |21cr|texlive-jurabib-0.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/jurabib
# catalog-date 2007-01-08 14:12:54 +0100
# catalog-license gpl
# catalog-version 0.6
Name:		texlive-jurabib
Version:	0.6
Release:	8
Summary:	Extended BibTeX citation support for the humanities and legal texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jurabib
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jurabib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jurabib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jurabib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package enables automated citation with BibTeX for legal
studies and the humanities. In addition, the package provides
commands for specifying editors in a commentary in a convenient
way. Simplified formatting of the citation as well as the
bibliography entry is also provided. It is possible to display
the (short) title of a work only if an authors is cited with
multiple works. Giving a full citation in the text, conforming
to the bibliography entry, is supported. Several options are
provided which might be of special interest for those outside
legal studies--for instance, displaying multiple full
citations. In addition, the format of last names and first
names of authors may be changed easily. Cross references to
other footnotes are possible. Language dependent handling of
bibliography entries is possible by the special language field.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/jurabib/book.bib
%{_texmfdistdir}/bibtex/bib/jurabib/comment.bib
%{_texmfdistdir}/bibtex/bib/jurabib/jbtest.bib
%{_texmfdistdir}/bibtex/bib/jurabib/jbtesthu.bib
%{_texmfdistdir}/bibtex/bst/jurabib/jox.bst
%{_texmfdistdir}/bibtex/bst/jurabib/jurabib.bst
%{_texmfdistdir}/bibtex/bst/jurabib/jureco.bst
%{_texmfdistdir}/bibtex/bst/jurabib/jurunsrt.bst
%{_texmfdistdir}/tex/latex/jurabib/dajbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/dejbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/dujbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/enjbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/fijbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/frjbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/itjbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/jblong.cfg
%{_texmfdistdir}/tex/latex/jurabib/jurabib.cfg
%{_texmfdistdir}/tex/latex/jurabib/jurabib.sty
%{_texmfdistdir}/tex/latex/jurabib/nojbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/ptjbbib.ldf
%{_texmfdistdir}/tex/latex/jurabib/spjbbib.ldf
%doc %{_texmfdistdir}/doc/latex/jurabib/changes.txt
%doc %{_texmfdistdir}/doc/latex/jurabib/docs/english/jbendoc.pdf
%doc %{_texmfdistdir}/doc/latex/jurabib/docs/english/jbendoc.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/docs/german/jbgerdoc.pdf
%doc %{_texmfdistdir}/doc/latex/jurabib/docs/german/jbgerdoc.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtest.pdf
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtest.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtest.url
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtestbt.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtestbu.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtestcb.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtestcb1.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtestcb2.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtesthu.tex
%doc %{_texmfdistdir}/doc/latex/jurabib/jbtestmb.tex
#- source
%doc %{_texmfdistdir}/source/latex/jurabib/jurabib.dtx
%doc %{_texmfdistdir}/source/latex/jurabib/jurabib.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10058 |21cr|texlive-jwjournal-65480-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname jwjournal

Summary:	A personal class for writing journals
Name:		texlive-jwjournal
Version:	65480
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-einfart
Requires:	texlive-kpathsea
Provides:	tex(jwjournal.cls) = 2024
BuildArch:	noarch

%description
This LaTeX document class enables the user to turn simple pure
text entries into a colorful and nicely formatted journal.

%files
%doc %{_texmfdistdir}/doc/latex/jwjournal
%{_texmfdistdir}/tex/latex/jwjournal

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10059 |21cr|texlive-kanaparser-48052-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kanaparser

Summary:	Kana parser for LuaTeX
Name:		texlive-kanaparser
Version:	48052
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(kanaparser.lua) = 2024
Provides:	tex(kanaparser.tex) = 2024
BuildArch:	noarch

%description
The package provides a kana parser for LuaTeX. It is a set of 4
macros that handle transliteration of text: from hiragana and
katakana to Latin from Latin and katakana to hiragana from
Latin and hiragana to katakana It can be used to write kana
directly using only the ASCII character set or for education
purposes. The package has support for obsolete and rarely used
syllables, some only accessible via the provided toggle macro.

%files
%doc %{_texmfdistdir}/doc/luatex/kanaparser/
%{_texmfdistdir}/tex/luatex/kanaparser/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10060 |21cr|texlive-kanbun-62026-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kanbun

Summary:	Typeset kanbun-kundoku with support for kanbun annotation
Name:		texlive-kanbun
Version:	62026
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(kanbun.sty) = 2024
BuildArch:	noarch

%description
This package allows users to manually input macros for elements
in a kanbun-kundoku (Han Wen Xun Du ) paragraph. More
importantly, it accepts plain text input in the "kanbun
annotation" form when used with LuaLaTeX, which allows
typesetting kanbun-kundoku paragraphs efficiently.

%files
%doc %{_texmfdistdir}/doc/latex/kanbun
%{_texmfdistdir}/tex/latex/kanbun

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10061 |21cr|texlive-karnaugh-map-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-karnaugh-map
Version:	1.1
Release:	1
Summary:	This package draws karnaugh maps with 2, 3, 4, 5, and 6 variables
Group:		Publishing
URL:		https://ctan.org/pkg/karnaugh-map
License:	Free license not otherwise listed
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/karnaugh-map.tar.xz 
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/karnaugh-map.doc.tar.xz 
Source2:       http://ctan.altspu.ru/systems/texlive/tlnet/archive/karnaugh-map.source.tar.xz 
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
This package draws [karnaugh maps](https://en.wikipedia.org/wiki/Karnaugh_map)
with 2, 3, 4, 5, and 6 variables.
It also contains commands for filling the karnaugh map with terms
semi-automatically or manually.
Last but not least it contains commands for drawing implicants on top of
the map.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/karnaugh-map
%doc %{_texmfdistdir}/doc/latex/karnaugh-map/README.md
%doc %{_texmfdistdir}/doc/latex/karnaugh-map/karnaugh-map.pdf
#- source
%{_texmfdistdir}/source/latex/karnaugh-map/karnaugh-map.dtx
%{_texmfdistdir}/source/latex/karnaugh-map/karnaugh-map.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10062 |21cr|texlive-karnaughmap-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-karnaughmap
Version:	2.0
Release:	1
Summary:	Typeset Karnaugh maps
Group:		Publishing
URL:		https://ctan.org/pkg/karnaughmap
License:	LPPL1.2
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/karnaughmap.tar.xz 
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/karnaughmap.doc.tar.xz 
Source2:        http://ctan.altspu.ru/systems/texlive/tlnet/archive/karnaughmap.source.tar.xz 
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
This package provides an easy to use interface to typeset
Karnaugh maps using TikZ. Though similar to the karnaugh
macros, it provides a key-value system to customize
karnaughmaps and a proper LaTeX package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10063 |21cr|texlive-kaytannollista-latexia-65461-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kaytannollista-latexia

Summary:	Practical manual for LaTeX (Finnish)
Name:		texlive-kaytannollista-latexia
Version:	65461
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
"Kaytannollista Latexia" is a practical manual for LaTeX
written in the Finnish language. The manual covers most of the
topics that a typical document author needs. So it can be a
useful guide for beginners as well as a reference manual for
advanced users.

%files
%doc %{_texmfdistdir}/doc/latex/kaytannollista-latexia

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10064 |21cr|texlive-kblocks-57617-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kblocks

Summary:	Easily typeset Control Block Diagrams and Signal Flow Graphs
Name:		texlive-kblocks
Version:	57617
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(kblocks.sty) = 2024
BuildArch:	noarch

%description
Kblocks defines a number of commands to make drawing control
block diagrams using TikZ/PGF more structured and easier. It
reduces the learning curve forTikZ/PGF and serves as a
frontend, by focusing on the block resp. flow diagrams only.

%files
%doc %{_texmfdistdir}/doc/latex/kblocks
%{_texmfdistdir}/tex/latex/kblocks

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10065 |21cr|texlive-kdpcover-65150-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kdpcover

Summary:	Covers for books published by Kindle Direct Publishing
Name:		texlive-kdpcover
Version:	65150
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(anyfontsize.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(graphics.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tools
#Requires:	tex(microtype.sty)
#Requires:	tex(pgf.sty)
#Requires:	tex(setspace.sty)
#Requires:	tex(textpos.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xifthen.sty)
Provides:	tex(kdpcover.cls) = 2024
BuildArch:	noarch

%description
The problem this class solves is the necessity to change the
size of the cover PDF according to the number of pages in the
book -- the bigger the book, the larger the spine of the book
must be. The provided class makes the necessary calculations
on-the-fly, using the qpdf tool. Obviously, you need to have it
installed. Also, you must run pdflatex with the --shell-escape
option, in order to allow LaTeX to run qpdf.

%files
%doc %{_texmfdistdir}/doc/latex/kdpcover
%{_texmfdistdir}/tex/latex/kdpcover

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10066 |21cr|texlive-keyindex-50828-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname keyindex

Summary:	Index entries by key lookup
Name:		texlive-keyindex
Version:	50828
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(keyindex.sty) = 2024
BuildArch:	noarch

%description
The package provides functionality for producing an index
without directly entering index entries into the text using the
\index command, but instead by looking up short keys and
printing a predefined string in the main text and adding a
corresponding index entry. The standard use case is the
production of an index of names.

%files
%doc %{_texmfdistdir}/doc/latex/keyindex
%{_texmfdistdir}/tex/latex/keyindex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10067 |21cr|texlive-keyparse-60277-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname keyparse

Summary:	Key based parser
Name:		texlive-keyparse
Version:	60277
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(keyparse.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides an interface to define and evaluate
key-based replacement rules. It can be used to parse the
argument specification of a document command.

%files
%doc %{_texmfdistdir}/doc/latex/keyparse
%{_texmfdistdir}/tex/latex/keyparse

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10068 |21cr|texlive-kfupm-math-exam-63977-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kfupm-math-exam

Summary:	A LaTeX document style to produce homework, quiz and exam papers
Name:		texlive-kfupm-math-exam
Version:	63977
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(kfupm-math-exam.cls) = 2024
BuildArch:	noarch

%description
The package provides commands and environments that simplify
and streamline the process of preparing homework, quiz and exam
papers according to apreffered style. The default style is
based on the guidelines set by the department of mathematics at
King Fahd University of Petroleum and Minerals (KFUPM). It can
be easily customized to fit any style for any institution.

%files
%doc %{_texmfdistdir}/doc/latex/kfupm-math-exam
%{_texmfdistdir}/tex/latex/kfupm-math-exam

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10069 |21cr|texlive-kinematikz-61392-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kinematikz

Summary:	Design kinematic chains and mechanisms
Name:		texlive-kinematikz
Version:	61392
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(kinematikz.sty) = 2024
BuildArch:	noarch

%description
This package provides functionalities to draw kinematic
diagrams for mechanisms using dedicate symbols (some from the
ISO standard and others). The intention is not to represent CAD
mechanical drawings of mechanisms and robots, but only to
represent 2D and 3D kinematic chains. The package provides
links, joints and other symbols, mostly in the form of TikZ pic
objects. These pics can be placed in the canvas either by a
central point for joints, and start and end points for some
links.

%files
%doc %{_texmfdistdir}/doc/latex/kinematikz
%{_texmfdistdir}/tex/latex/kinematikz

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10070 |21cr|texlive-kixfont-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kixfont
Version:	20190228
Release:	1
Summary:	A font for KIX codes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/kixfont
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kixfont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kixfont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The KIX code is a barcode-like format used by the Dutch PTT to
encode country codes, zip codes and street numbers in a
machine-readable format. If printed below the address line on
bulk mailings, a discount can be obtained. The font is
distributed in MetaFont format, and covers the numbers and
upper-case letters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/kixfont
%{_texmfdistdir}/fonts/tfm/public/kixfont
%doc %{_texmfdistdir}/doc/fonts/kixfont

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10071 |21cr|texlive-knowledge-61991-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname knowledge

Summary:	Displaying, hyperlinking, and indexing notions in a document
Name:		texlive-knowledge
Version:	61991
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(knowledge.sty) = 2024
BuildArch:	noarch

%description
The package offers a systematic way to handle
notions/concepts/terms throughout a document. It helps building
an index. In combination with hyperref it makes it easy to have
every reference of a concept linked to its introduction. It
also offers simple notations.

%files
%doc %{_texmfdistdir}/doc/latex/knowledge/
%{_texmfdistdir}/tex/latex/knowledge/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10072 |21cr|texlive-knuth-errata-58682-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname knuth-errata

Summary:	Knuth's published errata
Name:		texlive-knuth-errata
Version:	58682
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
These files record details of problems reported in Knuth's
'Computers and Typesetting' series of books, for the Computer
Modern fonts, and for TeX, Metafont and related programs.

%files
%doc %{_texmfdistdir}/doc/generic/knuth-errata

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10073 |21cr|texlive-knuth-hint-62971-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname knuth-hint

Summary:	HINT collection of typeset C/WEB sources in TeX Live
Name:		texlive-knuth-hint
Version:	62971
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The knuth-hint package contains the large collection of HINT
documents for many of the CWEB amd WEB sources of programs in
the TeX Live distribution (and, for technical reasons, PDF
documents for CTWILL and XeTeX). Each program is presented in
its original form as written by the respective authors, and in
the "changed" form as used in TeX Live. Care has been taken to
keep the section numbering intact, so that you can study the
codes and the changes in parallel. Also included are the
"errata" for Donald Knuth's "Computers & Typesetting". HINT is
the dynamic document format created by Martin Ruckert's HiTeX
engine that was added to TeX Live 2022. The HINT files can be
viewed on Linux, Windows, and Android with the hintview
application. The knuth-hint package is a showcase of HiTeX's
capabilities.

%files
%doc %{_texmfdistdir}/doc/generic/knuth-hint

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10074 |21cr|texlive-knuth-local-57963-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname knuth-local

Summary:	Knuth's local information
Name:		texlive-knuth-local
Version:	57963
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-knuth-local = 2024
Provides:	tex(xepsf.tex) = 2024
BuildArch:	noarch

%description
A collection of experimental programs and developments based
on, or complementary to, the matter in his distribution
directories.

%files
%{_texmfdistdir}/fonts/source/public/knuth-local/
%{_texmfdistdir}/fonts/tfm/public/knuth-local/
%{_texmfdistdir}/mft/knuth-local/
%{_texmfdistdir}/tex/plain/knuth-local/

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10075 |21cr|texlive-knuth-pdf-62969-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname knuth-pdf

Summary:	PDF library for C/WEB sources in TeX Live
Name:		texlive-knuth-pdf
Version:	62969
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
Here you find a large collection of PDF documents for many
C/WEB programs in TeX Live, both in their original form as
written by their respective authors, and in the changed form as
they are actually used in the TeX Live system. Care has been
taken to keep the section numbering intact, so that you can
study the sources and their changes in parallel. Also included
is the collection of "errata" for Donald Knuth's "Computers &
Typesetting series";. Although not all the texts here are
written or maintained by Donald Knuth, it is more convenient
for everything to be collected in one place for reading and
searching. They all stem from the system that Knuth created.
The central entry point is the "index" file, with links to the
individual documents, either in HTML or in PDF format.

%files
%doc %{_texmfdistdir}/doc/generic/knuth-pdf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10076 |21cr|texlive-komacv-57721-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname komacv

Summary:	Typesetting a beuatiful CV with various style options
Name:		texlive-komacv
Version:	57721
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(array.sty)
#Requires:	tex(calc.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(fontawesome.sty)
Requires:	tex(fontenc.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(hyperref.sty)
#Requires:	tex(ifpdf.sty)
Requires:	tex(ifthen.sty)
Requires:	tex(inputenc.sty)
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
#Requires:	tex(lastpage.sty)
Requires:	texlive-tlpkg
#Requires:	tex(marvosym.sty)
#Requires:	tex(microtype.sty)
Requires:	tex(ragged2e.sty)
#Requires:	tex(scrlayer-scrpage.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex-komacv = 2024
Provides:	tex(komacv-casual.sty) = 2024
Provides:	tex(komacv-classic.sty) = 2024
Provides:	tex(komacv.cls) = 2024
Provides:	tex(komacv-oldstyle.sty) = 2024
BuildArch:	noarch

%description
The class simplifies the creation of beautiful CV. The user may
choose between different styles, and may adjust settings to
tune the output.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/komacv/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10077 |21cr|texlive-kpfonts-3.31-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /fonts/kpfonts
# catalog-date 2012-07-05 15:28:28 +0200
# catalog-license gpl
# catalog-version 3.31
Name:		texlive-kpfonts
Version:	3.31
Release:	12
Summary:	A complete set of fonts for text and mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/kpfonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kpfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kpfonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The family contains text fonts in roman, sans-serif and
monospaced shapes, with true small caps and old-style numbers;
the package offers full support of the textcomp package. The
mathematics fonts include all the AMS fonts, in both normal and
bold weights. Each of the font types is available in two main
versions: default and 'light'. Each version is available in
four variants: default; oldstyle numbers; oldstyle numbers with
old ligatures such as ct and st, and long-tailed capital Q; and
veryoldstyle with long s. Other variants include small caps as
default or 'large small caps', and for mathematics both upright
and slanted shapes for Greek letters, as well as default and
narrow versions of multiple integrals. The fonts were
originally derived from URW Palladio (with URW's agreement)
though the fonts are very clearly different in appearance from
their parent.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpbit8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpbitc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpbite.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpbn8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpbnc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpbne.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpbsc8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpbsce.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpkbsc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpkmsc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplbit8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplbitc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplbite.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplbn8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplbnc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplbne.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplbsc8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplbsce.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplkbsc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplkmsc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplmit8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplmitc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplmite.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplmn8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplmnc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplmne.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplmsc8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkplmsce.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpmit8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpmitc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpmite.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpmn8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpmnc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpmne.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpmsc8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpmsce.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssbn8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssbnc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssbne.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssbsc8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssbsce.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpsskbsc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpsskmsc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssmn8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssmnc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssmne.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssmsc8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpssmsce.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpttbn8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpttbnc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpttbne.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpttmn8a.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpttmnc.afm
%{_texmfdistdir}/fonts/afm/public/kpfonts/jkpttmne.afm
%{_texmfdistdir}/fonts/enc/dvips/kpfonts/kpfonts-expert-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/kpfonts/kpfonts-expert-tt.enc
%{_texmfdistdir}/fonts/enc/dvips/kpfonts/kpfonts-expert.enc
%{_texmfdistdir}/fonts/enc/dvips/kpfonts/kpfonts-large-sc.enc
%{_texmfdistdir}/fonts/enc/pdftex/kpfonts/kpfonts-expert-sc.enc
%{_texmfdistdir}/fonts/enc/pdftex/kpfonts/kpfonts-expert-tt.enc
%{_texmfdistdir}/fonts/enc/pdftex/kpfonts/kpfonts-expert.enc
%{_texmfdistdir}/fonts/enc/pdftex/kpfonts/kpfonts-large-sc.enc
%{_texmfdistdir}/fonts/map/dvips/kpfonts/kpfonts.map
%{_texmfdistdir}/fonts/source/public/kpfonts/kpfonts-fontinst.zip
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbex.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbexa.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbit8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbit8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbitc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbite.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbmia.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbmiaw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbmifw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbmiw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbn8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsy.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsya.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsybw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsyc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsyd.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsydw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbsyw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxit8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxitc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxite.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpbxsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpex.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpexa.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfosnmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpfssosnmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbxsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbxscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkmsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkmscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpkosnmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbex.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbexa.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbit8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbit8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbitc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbite.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbmia.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbmiaw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbmifw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbmiw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbn8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsy.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsybw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsyc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsyd.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsydw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbsyw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxit8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxitc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxite.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplbxsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplex.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplexa.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplfosnmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbxsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbxscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkmsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkmscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplkosnmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmia.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmiaw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmifw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmit8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmit8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmitc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmite.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmiw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmn8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplmsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplosnmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplsy.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplsybw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplsyc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplsyd.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplsydw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplsyw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbmifw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbmiw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmifw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmiw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkplvosmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmia.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmiaw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmifw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmit8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmit8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmitc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmite.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmiw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmn8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpmsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmit7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkposnmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbex.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbmia.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbn8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbsybw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssbxsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssex.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssfosnmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbxsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbxscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskmsc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskmscsl.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsskosnmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsslbsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsslbsybw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsslsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsslsybw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmia.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmn8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsc7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsc8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsce.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmscsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmscsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmscsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssmsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbxscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbxscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnmscsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnmscsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssosnmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsssyb.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsssybw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbxsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbxsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosmsc7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosmsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpssvosmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsy.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsya.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsybw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsyc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsyd.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsydw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpsyw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbn8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttbsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmn7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmn8a.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmn8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmnc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmne.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmsl7c.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmsl8r.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmslc.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttmsle.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosnbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosnbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosnbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosnbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosnmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosnmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosnmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttosnmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttvosbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttvosbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttvosbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttvosbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttvosmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttvosmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttvosmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpttvosmsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbmifw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbmiw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbxit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbxit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbxn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbxn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbxsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosbxsl8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmi.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmif.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmifw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmit7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmit8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmiw.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmn7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmn8t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmsl7t.tfm
%{_texmfdistdir}/fonts/tfm/public/kpfonts/jkpvosmsl8t.tfm
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbex.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbexa.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbit8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbitc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbite.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbmi.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbmia.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbn8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbnc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbne.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbsc8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbsce.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbsy.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbsya.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbsyb.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbsyc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpbsyd.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpex.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpexa.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpkbsc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpkmsc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbex.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbexa.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbit8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbitc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbite.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbmi.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbmia.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbn8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbnc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbne.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbsc8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbsce.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbsy.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbsyb.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbsyc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplbsyd.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplex.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplexa.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplkbsc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplkmsc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmi.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmia.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmit8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmitc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmite.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmn8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmnc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmne.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmsc8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplmsce.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplsy.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplsyb.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplsyc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkplsyd.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmi.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmia.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmit8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmitc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmite.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmn8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmnc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmne.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmsc8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpmsce.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssbn8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssbnc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssbne.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssbsc8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssbsce.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpsskbsc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpsskmsc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssmn8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssmnc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssmne.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssmsc8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpssmsce.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpsy.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpsya.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpsyb.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpsyc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpsyd.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpttbn8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpttbnc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpttbne.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpttmn8a.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpttmnc.pfb
%{_texmfdistdir}/fonts/type1/public/kpfonts/jkpttmne.pfb
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbmiaw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbmifw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbmiw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsybw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsydw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbsyw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfosnmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpfssosnmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpkosnmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbmiaw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbmifw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbmiw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsybw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsydw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbsyw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplfosnmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplkosnmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmiaw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmifw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmiw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplosnmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplsybw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplsydw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplsyw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbmi.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbmifw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbmiw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmi.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmifw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmiw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkplvosmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmiaw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmifw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmiw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmit7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkposnmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbex.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbmi.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbmia.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbsyb.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbsybw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssex.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssfosnmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsskosnmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsslbsyb.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsslbsybw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsslsyb.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsslsybw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmi.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmia.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmsc7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmscsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbxscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbxscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnmscsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnmscsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssosnmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsssyb.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsssybw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbmi.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbxsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbxsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosmi.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosmsc7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosmsc8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpssvosmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsybw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsydw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpsyw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttbn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttbsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttmn7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttmsl7c.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosnbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosnbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosnbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosnbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosnmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosnmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosnmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttosnmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttvosbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttvosbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttvosbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttvosbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttvosmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttvosmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttvosmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpttvosmsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbmi.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbmifw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbmiw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbxit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbxit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbxn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbxn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbxsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosbxsl8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmi.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmif.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmifw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmit7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmit8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmiw.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmn7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmn8t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmsl7t.vf
%{_texmfdistdir}/fonts/vf/public/kpfonts/jkpvosmsl8t.vf
%{_texmfdistdir}/tex/latex/kpfonts/kpfonts.sty
%{_texmfdistdir}/tex/latex/kpfonts/omljkp.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkpl.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkplvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkplvosw.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkplw.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkpss.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkpssvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkpvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkpvosw.fd
%{_texmfdistdir}/tex/latex/kpfonts/omljkpw.fd
%{_texmfdistdir}/tex/latex/kpfonts/omsjkp.fd
%{_texmfdistdir}/tex/latex/kpfonts/omsjkpl.fd
%{_texmfdistdir}/tex/latex/kpfonts/omsjkplw.fd
%{_texmfdistdir}/tex/latex/kpfonts/omsjkpw.fd
%{_texmfdistdir}/tex/latex/kpfonts/omxjkp.fd
%{_texmfdistdir}/tex/latex/kpfonts/omxjkpl.fd
%{_texmfdistdir}/tex/latex/kpfonts/omxjkpss.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkp.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpk.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpl.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplk.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkplvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkposn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpss.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpssf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpssfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpssk.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpsskf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpsskfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpsskos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpsskosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpsskvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpssos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpssosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpssvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkptt.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpttos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpttosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpttvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpx.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxk.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ot1jkpxvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkp.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpf.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpk.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpl.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplf.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplk.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkplvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkposn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpss.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpssf.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpssfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpssk.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpsskf.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpsskfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpsskos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpsskosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpsskvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpssos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpssosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpssvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkptt.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpttos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpttosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpttvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpx.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxf.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxk.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxos.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/t1jkpxvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkp.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpk.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpl.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplk.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkplvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkposn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpss.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpssf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpssfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpssk.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpsskf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpsskfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpsskos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpsskosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpsskvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpssos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpssosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpssvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkptt.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpttos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpttosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpttvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpx.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxk.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxkf.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxkfosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxkos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxkosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxkvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxosn.fd
%{_texmfdistdir}/tex/latex/kpfonts/ts1jkpxvos.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpexa.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkplexa.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkplmia.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkplmiaw.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkplsyb.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkplsybw.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkplsyc.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkplsyd.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkplsydw.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpmia.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpmiaw.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsslsyb.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsslsybw.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpssmia.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsssyb.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsssybw.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsya.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsyb.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsybw.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsyc.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsyd.fd
%{_texmfdistdir}/tex/latex/kpfonts/ujkpsydw.fd
%doc %{_texmfdistdir}/doc/fonts/kpfonts/Kpfonts-Doc-French.pdf
%doc %{_texmfdistdir}/doc/fonts/kpfonts/Kpfonts-Doc-French.tex
%doc %{_texmfdistdir}/doc/fonts/kpfonts/christophe.cls
%doc %{_texmfdistdir}/doc/fonts/kpfonts/kpfonts-abstract.pdf
%doc %{_texmfdistdir}/doc/fonts/kpfonts/kpfonts-abstract.tex
%doc %{_texmfdistdir}/doc/fonts/kpfonts/kpfonts-math-symbols-tables.pdf
%doc %{_texmfdistdir}/doc/fonts/kpfonts/kpfonts-math-symbols-tables.tex
%doc %{_texmfdistdir}/doc/fonts/kpfonts/kpfonts.pdf
%doc %{_texmfdistdir}/doc/fonts/kpfonts/kpfonts.tex
%doc %{_texmfdistdir}/doc/fonts/kpfonts/readme.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10078 |21cr|texlive-kpfonts-otf-65560-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kpfonts-otf

Summary:	OTF version of the Kp-fonts
Name:		texlive-kpfonts-otf
Version:	65560
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(iftex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(unicode-math.sty)
Provides:	tex(kpfonts-otf.sty) = 2024
BuildArch:	noarch

%description
This bundle provides OpenType versions of the Type1 Kp-fonts
designed by Christophe Caignaert. It is usable with LuaTeX or
XeTeX engines only. It consists of sixteen Text fonts (eight
Serif, four Sans-Serif, four Monotype) and five Math fonts.
Serif and Sans-Serif families have small caps available in two
sizes (SmallCaps and PetitesCaps), upper and lowercase digits,
real superscripts and subscripts; ancient ligatures (ct and
st), ancient long-s and a long-tailed capital Q are available
via font features. Math fonts cover all usual symbols including
AMS'; a full list of available symbols is provided, see the
'List of glyphs'.

%files
%doc %{_texmfdistdir}/doc/fonts/kpfonts-otf
%{_texmfdistdir}/fonts/opentype/public/kpfonts-otf
%{_texmfdistdir}/tex/latex/kpfonts-otf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10079 |21cr|texlive-ksfh_nat-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24825
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-ksfh_nat
Version:	20190228
Release:	1
Summary:	TeXLive ksfh_nat package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ksfh_nat.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive ksfh_nat package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/ksfh_nat/ksfh_nat.bst

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10080 |21cr|texlive-ksp-thesis-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			texlive-ksp-thesis
Version:		1.0.2
Release:		1
Summary:		A LaTeX class for theses published with KIT Scientific Publishing
Group:			Publishing
URL:			https://ctan.org/tex-archive/macros/latex/contrib/ksp-thesis
License:		lppl1.3
Source0:		https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/ksp-thesis.tar.xz
Source1:		https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/ksp-thesis.doc.tar.xz
BuildArch:		noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a LaTeX class intended for authors who
want to publish their thesis or other scientific work with KIT
Scientific Publishing (KSP). The class is based on the scrbook
class of the KOMA-script bundle in combination with the
ClassicThesis and ArsClassica packages. It modifies some of the
layout and style definitions of these packages in order to
provide a document layout that should be compatible with the
requirements by KSP.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10081 |21cr|texlive-ku-template-0.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			texlive-ku-template
Version:		0.02
Release:		1
Summary:		Copenhagen University or faculty logo for front page
Group:			Publishing
URL:			https://ctan.org/tex-archive/macros/latex/contrib/ku-template
License:		mit
Source0:		https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/ku-template.tar.xz
Source1:		https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/ku-template.doc.tar.xz
BuildArch:		noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A comprehensive package for adding University of Copenhagen or
faculty logo to your front page. For use by student or staff at
University of Copenhagen (Kobenhavns Universitet).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10082 |21cr|texlive-kvdefinekeys-53193-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kvdefinekeys

Summary:	Define keys for use in the kvsetkeys package
Name:		texlive-kvdefinekeys
Version:	53193
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(kvdefinekeys.sty) = 2024
BuildArch:	noarch

%description
The package provides a macro \kv@define@key (analogous to
keyval's \define@key, to define keys for use by kvsetkeys.

%files
%doc %{_texmfdistdir}/doc/latex/kvdefinekeys
%{_texmfdistdir}/tex/generic/kvdefinekeys

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10083 |21cr|texlive-kvmap-0.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kvmap
Version:	0.3.5
Release:	1
Summary:	Create Karnaugh maps with LaTeX
Group:		Publishing
URL:		https://ctan.org/pkg/kvmap
License:	LPPL1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/kvmap.tar.xz 
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/kvmap.doc.tar.xz 
Source2:        http://ctan.altspu.ru/systems/texlive/tlnet/archive/kvmap.source.tar.xz 
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
This LaTeX package allows the creation of (even large) Karnaugh
maps. It provides a tabular-like input syntax and support for
drawing bundles (implicants) around adjacent values. It is
based on an answer at StackExchange.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10084 |21cr|texlive-kvsetkeys-64632-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kvsetkeys

Summary:	Key value parser with default handler support
Name:		texlive-kvsetkeys
Version:	64632
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(kvsetkeys.sty) = 2024
BuildArch:	noarch

%description
This package provides \kvsetkeys, a variant of package keyval's
\setkeys. It allows the user to specify a handler that deals
with unknown options. Active commas and equal signs may be used
(e.g. see babel's shorthands) and only one level of curly
braces are removed from the values.

%files
%doc %{_texmfdistdir}/doc/latex/kvsetkeys
%{_texmfdistdir}/tex/latex/kvsetkeys

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10085 |21cr|texlive-labels4easylist-51124-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname labels4easylist

Summary:	Add reference labels to easylist items
Name:		texlive-labels4easylist
Version:	51124
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(labels4easylist.sty) = 2024
BuildArch:	noarch

%description
This package provides the \itemLabel macro for adding
configurable reference labels to easylist items.

%files
%doc %{_texmfdistdir}/doc/latex/labels4easylist
%{_texmfdistdir}/tex/latex/labels4easylist

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10086 |21cr|texlive-labelschanged-46040-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname labelschanged

Summary:	Identify labels which cause endless "may have changed" warnings
Name:		texlive-labelschanged
Version:	46040
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(labelschanged.sty) = 2024
BuildArch:	noarch

%description
Several conditions can cause LaTeX labels to keep changing, no
matter how many times a document is recompiled. This package
helps diagnose the cause of repeated "Label(s) may have
changed" warnings. The names and before/after definitions of
changing labels are printed at the end of each compile.
Multiply-defined labels are printed as well.

%files
%doc %{_texmfdistdir}/doc/latex/labelschanged/
%{_texmfdistdir}/tex/latex/labelschanged/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10087 |21cr|texlive-labyrinth-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-labyrinth
Version:	1.0
Release:	1
Summary:	Draw labyrinths and solution paths
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/labyrinth
License:	The LATEX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/labyrinth.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/labyrinth.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The labyrinth package provides code and an environment for typesetting simple labyrinths with LATEX, 
and generating an automatic or manual solution path.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/labyrinth
%doc %{_texmfdistdir}/doc/latex/labyrinth

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10088 |21cr|texlive-lacheck-1.26-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33818
# category TLCore
# catalog-ctan /support/lacheck
# catalog-date 2012-06-24 00:35:21 +0200
# catalog-license gpl
# catalog-version 1.26
Name:		texlive-lacheck
Version:	1.26
Release:	15
Summary:	LaTeX checker
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/lacheck
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lacheck.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lacheck.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-lacheck.bin

%description
Lacheck is a tool for finding common mistakes in LaTeX
documents. The distribution includes sources, and executables
for OS/2 and Win32 environments.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/lacheck.1*
%doc %{_texmfdistdir}/doc/man/man1/lacheck.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10089 |21cr|texlive-lambda-lists-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31402
# category Package
# catalog-ctan /macros/generic/lambda-lists
# catalog-date 2013-08-09 20:26:41 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-lambda-lists
Version:	20190228
Release:	1
Summary:	Lists in TeX's mouth
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/lambda-lists
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lambda-lists.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lambda-lists.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These list-processing macros avoid the reassignments employed
in the macros shown in Appendix D of the TeXbook: all the
manipulations take place in what Knuth is pleased to call
"TeX's mouth".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/lambda-lists/lambda.sty
%doc %{_texmfdistdir}/doc/plain/lambda-lists/README
%doc %{_texmfdistdir}/doc/plain/lambda-lists/lambda-lists.pdf
%doc %{_texmfdistdir}/doc/plain/lambda-lists/lambda-lists.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10090 |21cr|texlive-lambdax-60278-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lambdax

Summary:	Use Lambda expression within LaTeX
Name:		texlive-lambdax
Version:	60278
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lambdax.sty) = 2024
BuildArch:	noarch

%description
This package provides Lambda expressions. It is an interface to
specify the parameters and replacement code of a
document-command, and then to evaluate it with compatible
arguments. Optionally, it can be used recursively.

%files
%doc %{_texmfdistdir}/doc/latex/lambdax
%{_texmfdistdir}/tex/latex/lambdax

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10091 |21cr|texlive-langcode-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27764
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-langcode
Version:	0.2
Release:	2
Epoch:		1
Summary:	TeXLive langcode package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/langcode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/langcode.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/langcode.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive langcode package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/langcode/langcode.sty
%doc %{_texmfdistdir}/doc/generic/langcode/README
%doc %{_texmfdistdir}/doc/generic/langcode/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/generic/langcode/langcode.pdf
#- source
%doc %{_texmfdistdir}/source/generic/langcode/langcode.tex
%doc %{_texmfdistdir}/source/generic/langcode/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10092 |21cr|texlive-langnames-65502-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname langnames

Summary:	Name languages and their genetic affiliations consistently
Name:		texlive-langnames
Version:	65502
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(langnames.sty) = 2024
Provides:	tex(ln_fams_glot.tex) = 2024
Provides:	tex(ln_fams_wals.tex) = 2024
Provides:	tex(ln_langs_glot_native.tex) = 2024
Provides:	tex(ln_langs_glot.tex) = 2024
Provides:	tex(ln_langs_wals_native.tex) = 2024
Provides:	tex(ln_langs_wals.tex) = 2024
BuildArch:	noarch

%description
This package attempts to make the typing of language names,
codes, and families slightly easier by providing macros to
access pre-defined language--code--family combinations from two
important databases, as well as the possibility to create new
combinations. It may be particularly useful for large,
collaborative projects as well as typologically minded ones
with a variety of language examples.

%files
%doc %{_texmfdistdir}/doc/latex/langnames
%{_texmfdistdir}/tex/latex/langnames

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10093 |21cr|texlive-langsci-20220216-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			texlive-langsci
Version:		20220216
Release:		1
Summary:		Typeset books for publication with Language Science Press
Group:			Publishing
URL:			https://ctan.org/tex-archive/macros/xetex/latex/langsci
License:		lppl1.3
Source0:		https://ctan.altspu.ru/systems/texlive/tlnet/archive/langsci.tar.xz
Source1:		https://ctan.altspu.ru/systems/texlive/tlnet/archive/langsci.doc.tar.xz
BuildArch:		noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows you to typeset monographs and edited
volumes for publication with Language Science Press
(http://www.langsci-press.org). It includes all necessary files
for title pages, frontmatter, main content, list of references
and indexes. Dust jackets for BoD and Createspace
(print-on-demand service providers) can also be produced.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10094 |21cr|texlive-langsci-avm-66016-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname langsci-avm

Summary:	Attribute-value matrices and feature structures for use in linguistics
Name:		texlive-langsci-avm
Version:	66016
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(langsci-avm.sty) = 2024
BuildArch:	noarch

%description
A package for typesetting feature structures, also known as
attribute-value matrices (AVMs), for use in linguistics. The
package provides a minimal and easy to read syntax. It depends
only on the array package and can be placed almost everywhere,
in particular in footnotes or graphs and tree structures. The
package serves the same purpose as, Christopher Manning's avm
package, but shares no code base with that package.

%files
%doc %{_texmfdistdir}/doc/latex/langsci-avm
%{_texmfdistdir}/tex/latex/langsci-avm

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10095 |21cr|texlive-lastpackage-34481.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lastpackage

Summary:	Indicates the last loaded package
Name:		texlive-lastpackage
Version:	34481.0.1
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-lastpackage = 2024
Provides:	tex(lastpackage.sty) = 2024
BuildArch:	noarch

%description
This package may be used to define the last point where some
code shall be executed. Its provides a package name for use in
package-placing commands from the author's templatetools. Usage
examples are provided in the documentation.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/lastpackage/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10096 |21cr|texlive-latex2man-1.29-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex2man
Version:	1.29
Release:	1
Summary:	Translate LaTeX-based manual pages into Unix man format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/latex2man
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex2man.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex2man.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-latex2man.bin = %{EVRD}

%description
A tool to translate UNIX manual pages written with LaTeX into a
man-page format understood by the Unix man(1) command.
Alternatively HTML or TexInfo code can be produced. Output of
parts of the text may be supressed using the conditional text
feature.

#-----------------------------------------------------------------------
%files
%{_bindir}/latex2man
%{_texmfdistdir}/scripts/latex2man
%{_texmfdistdir}/tex/latex/latex2man
%doc %{_infodir}/latex2man.info*
%doc %{_mandir}/man1/latex2man.1*
%doc %{_texmfdistdir}/doc/man/man1/latex2man.man1.pdf
%doc %{_texmfdistdir}/doc/support/latex2man

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    # generate relative link manually because it appears to trigger some
    # weird bug that causes the link to be removed
    %define dont_relink                        1
    ln -sf ../share/texmf-dist/scripts/latex2man/latex2man latex2man
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10097 |21cr|texlive-latexbangla-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexbangla
Version:	1.4
Release:	1
Summary:	Enhanced LaTeX integration for Bangla
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/latexbangla.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/latexbangla.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package simplifies the process of writing Bangla in LaTeX
and addresses most of the associated typesetting issues.
Notable features: Automated transition from Bangla to English
and vice versa. Patch for the unproportionate whitespace issue
in popular Bangla fonts. Full support for all the common
commands and environments. Bangla numbering for page, section,
chapter, footnotes etc. (extending polyglossia's support). New
theorem, problems, example, solution and other environments,
all of which are in Bangla.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10098 |21cr|texlive-latex-base-dev-66513-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latex-base-dev

Summary:	Development pre-release of the LaTeX kernel
Name:		texlive-latex-base-dev
Version:	66513
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(alltt.sty) = 2024
Provides:	tex(ansinew.def) = 2024
Provides:	tex(applemac.def) = 2024
Provides:	tex(article.cls) = 2024
Provides:	tex(article.sty) = 2024
Provides:	tex(ascii.def) = 2024
Provides:	tex(atbegshi-ltx.sty) = 2024
Provides:	tex(atveryend-ltx.sty) = 2024
Provides:	tex(bezier.sty) = 2024
Provides:	tex(bk10.clo) = 2024
Provides:	tex(bk11.clo) = 2024
Provides:	tex(bk12.clo) = 2024
Provides:	tex(book.cls) = 2024
Provides:	tex(book.sty) = 2024
Provides:	tex(cp1250.def) = 2024
Provides:	tex(cp1252.def) = 2024
Provides:	tex(cp1257.def) = 2024
Provides:	tex(cp437de.def) = 2024
Provides:	tex(cp437.def) = 2024
Provides:	tex(cp850.def) = 2024
Provides:	tex(cp852.def) = 2024
Provides:	tex(cp858.def) = 2024
Provides:	tex(cp865.def) = 2024
Provides:	tex(decmulti.def) = 2024
Provides:	tex(doc-2016-02-15.sty) = 2024
Provides:	tex(doc-2021-06-01.sty) = 2024
Provides:	tex(docstrip.tex) = 2024
Provides:	tex(doc.sty) = 2024
Provides:	tex(exscale.sty) = 2024
Provides:	tex(fix-cm.sty) = 2024
Provides:	tex(fixltx2e.sty) = 2024
Provides:	tex(flafter.sty) = 2024
Provides:	tex(fleqn.clo) = 2024
Provides:	tex(fleqn.sty) = 2024
Provides:	tex(fltrace.sty) = 2024
Provides:	tex(fontenc.sty) = 2024
Provides:	tex(graphpap.sty) = 2024
Provides:	tex(idx.tex) = 2024
Provides:	tex(ifthen.sty) = 2024
Provides:	tex(inputenc.sty) = 2024
Provides:	tex(lablst.tex) = 2024
Provides:	tex(latex209.def) = 2024
Provides:	tex(latexrelease.sty) = 2024
Provides:	tex(latexsym.sty) = 2024
Provides:	tex(latin10.def) = 2024
Provides:	tex(latin1.def) = 2024
Provides:	tex(latin2.def) = 2024
Provides:	tex(latin3.def) = 2024
Provides:	tex(latin4.def) = 2024
Provides:	tex(latin5.def) = 2024
Provides:	tex(latin9.def) = 2024
Provides:	tex(leqno.clo) = 2024
Provides:	tex(leqno.sty) = 2024
Provides:	tex(letter.cls) = 2024
Provides:	tex(letter.sty) = 2024
Provides:	tex(lppl.tex) = 2024
Provides:	tex(ltluatex.tex) = 2024
Provides:	tex(ltnews.cls) = 2024
Provides:	tex(ltxcheck.tex) = 2024
Provides:	tex(ltxdoc.cls) = 2024
Provides:	tex(ltxguide.cls) = 2024
Provides:	tex(macce.def) = 2024
Provides:	tex(makeidx.sty) = 2024
Provides:	tex(minimal.cls) = 2024
Provides:	tex(newlfont.sty) = 2024
Provides:	tex(next.def) = 2024
Provides:	tex(nfssfont.tex) = 2024
Provides:	tex(oldlfont.sty) = 2024
Provides:	tex(omlcmm.fd) = 2024
Provides:	tex(omlcmr.fd) = 2024
Provides:	tex(omlenc.def) = 2024
Provides:	tex(omllcmm.fd) = 2024
Provides:	tex(omscmr.fd) = 2024
Provides:	tex(omscmsy.fd) = 2024
Provides:	tex(omsenc.def) = 2024
Provides:	tex(omslcmsy.fd) = 2024
Provides:	tex(omxcmex.fd) = 2024
Provides:	tex(omxlcmex.fd) = 2024
Provides:	tex(openbib.sty) = 2024
Provides:	tex(ot1cmdh.fd) = 2024
Provides:	tex(ot1cmfib.fd) = 2024
Provides:	tex(ot1cmfr.fd) = 2024
Provides:	tex(ot1cmr.fd) = 2024
Provides:	tex(ot1cmss.fd) = 2024
Provides:	tex(ot1cmtt.fd) = 2024
Provides:	tex(ot1cmvtt.fd) = 2024
Provides:	tex(ot1enc.def) = 2024
Provides:	tex(ot1lcmss.fd) = 2024
Provides:	tex(ot1lcmtt.fd) = 2024
Provides:	tex(ot4enc.def) = 2024
Provides:	tex(proc.cls) = 2024
Provides:	tex(proc.sty) = 2024
Provides:	tex(report.cls) = 2024
Provides:	tex(report.sty) = 2024
Provides:	tex(sample2e.tex) = 2024
Provides:	tex(sfonts.def) = 2024
Provides:	tex(shortvrb.sty) = 2024
Provides:	tex(showidx.sty) = 2024
Provides:	tex(size10.clo) = 2024
Provides:	tex(size11.clo) = 2024
Provides:	tex(size12.clo) = 2024
Provides:	tex(slides.cls) = 2024
Provides:	tex(slides.def) = 2024
Provides:	tex(slides.sty) = 2024
Provides:	tex(small2e.tex) = 2024
Provides:	tex(source2edoc.cls) = 2024
Provides:	tex(structuredlog.sty) = 2024
Provides:	tex(syntonly.sty) = 2024
Provides:	tex(t1cmdh.fd) = 2024
Provides:	tex(t1cmfib.fd) = 2024
Provides:	tex(t1cmfr.fd) = 2024
Provides:	tex(t1cmr.fd) = 2024
Provides:	tex(t1cmss.fd) = 2024
Provides:	tex(t1cmtt.fd) = 2024
Provides:	tex(t1cmvtt.fd) = 2024
Provides:	tex(t1enc.def) = 2024
Provides:	tex(t1enc.sty) = 2024
Provides:	tex(t1lcmss.fd) = 2024
Provides:	tex(t1lcmtt.fd) = 2024
Provides:	tex(testpage.tex) = 2024
Provides:	tex(textcomp-2018-08-11.sty) = 2024
Provides:	tex(textcomp.sty) = 2024
Provides:	tex(tracefnt.sty) = 2024
Provides:	tex(ts1cmr.fd) = 2024
Provides:	tex(ts1cmss.fd) = 2024
Provides:	tex(ts1cmtt.fd) = 2024
Provides:	tex(ts1cmvtt.fd) = 2024
Provides:	tex(ts1enc.def) = 2024
Provides:	tex(tuenc.def) = 2024
Provides:	tex(tulmdh.fd) = 2024
Provides:	tex(tulmr.fd) = 2024
Provides:	tex(tulmss.fd) = 2024
Provides:	tex(tulmssq.fd) = 2024
Provides:	tex(tulmtt.fd) = 2024
Provides:	tex(tulmvtt.fd) = 2024
Provides:	tex(ucmr.fd) = 2024
Provides:	tex(ucmss.fd) = 2024
Provides:	tex(ucmtt.fd) = 2024
Provides:	tex(ulasy.fd) = 2024
Provides:	tex(ullasy.fd) = 2024
Provides:	tex(utf8-2018.def) = 2024
Provides:	tex(utf8.def) = 2024
BuildArch:	noarch

%description
This package provides a testing release for upcoming LaTeX2e
kernel changes. Testing by the LaTeX team itself suggests that
the code is stable and usable, but wider use by knowledgeable
users is required by adding these changes to the release LaTeX
kernel. Typically, the code here will be used by a TeX system
to create dedicated formats, for example pdflatex-dev, which
can then be used explicitly for testing.

%files
%doc %{_texmfdistdir}/doc/latex-dev/base
%{_texmfdistdir}/tex/latex-dev/base

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10099 |21cr|texlive-latex-bin-dev-66186-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latex-bin-dev

Summary:	LaTeX pre-release executables and formats
Name:		texlive-latex-bin-dev
Version:	66186
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-atbegshi
Requires:	texlive-atveryend
Requires:	texlive-babel
Requires:	texlive-tlpkg
Requires:	texlive-cm
Requires:	texlive-dehyph
Requires:	texlive-everyshi
Requires:	texlive-firstaid
Requires:	texlive-hyphen-base
Requires:	texlive-hyph-utf8
Requires:	texlive-kpathsea
#Requires:	texlive-l3backend
Requires:	texlive-l3kernel
Requires:	texlive-l3packages
Requires:	texlive-latex
Requires:	texlive-latex-base-dev
Requires:	texlive-latexconfig
Requires:	texlive-latex-firstaid-dev
Requires:	texlive-latex-fonts
Requires:	texlive-latex-graphics-dev
Requires:	texlive-lm
#Requires:	texlive-luahbtex
Requires:	texlive-luaotfload
Requires:	texlive-luatex
Requires:	texlive-pdftex
Requires:	texlive-tex-ini-files
Requires:	texlive-unicode-data
BuildArch:	noarch

%description
See the latex-base-dev package for information.

%files
%{_mandir}/man1/*latex-dev.*

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_mandir}
cp -fpar texmf-dist/doc/man/* %{buildroot}%{_mandir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10100 |21cr|texlive-latexcolors-49888-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latexcolors

Summary:	Use color definitions from latexcolor.com
Name:		texlive-latexcolors
Version:	49888
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(latexcolors.sty) = 2024
BuildArch:	noarch

%description
Built on top of the xcolor package, the latexcolors package
defines the set of colors shown on latexcolor.com for use in
documents typeset with LaTeX & friends.

%files
%doc %{_texmfdistdir}/doc/latex/latexcolors
%{_texmfdistdir}/tex/latex/latexcolors

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10101 |21cr|texlive-latexdemo-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexdemo
Version:	0.1
Release:	1
Summary:	The package provides configurable tools to print out LATEX code
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/latexdemo
License:	LPPL
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/latexdemo.doc.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/latexdemo.source.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/latexdemo.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides configurable tools to print out LATEX code and the
resulting output in the same document. It also supports printing the result
inside a conditional sequence.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/latexdemo/latexdemo.sty
%doc %{_texmfdistdir}/doc/latex/latexdemo/README
%doc %{_texmfdistdir}/doc/latex/latexdemo/latexdemo.pdf
#- source
%{_texmfdistdir}/source/latex/latexdemo/latexdemo.dtx
%{_texmfdistdir}/source/latex/latexdemo/latexdemo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10102 |21cr|texlive-latexdiff-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexdiff
Version:	1.3.0
Release:	1
Summary:	Determine and mark up significant differences between latex files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/latexdiff
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexdiff.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexdiff.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-latexdiff.bin = %{EVRD}
%rename latexdiff

%description
Latexdiff is a Perl script for visual mark up and revision of
significant differences between two latex files. Various
options are available for visual markup using standard latex
packages such as color. Changes not directly affecting visible
text, for example in formatting commands, are still marked in
the latex source. A rudimentary revision facilility is provided
by another Perl script, latexrevise, which accepts or rejects
all changes. Manual editing of the difference file can be used
to override this default behaviour and accept or reject
selected changes only.

#-----------------------------------------------------------------------
%files
%{_bindir}/latexdiff-vc
%{_bindir}/latexdiff
%{_bindir}/latexrevise
%{_texmfdistdir}/scripts/latexdiff
%doc %{_mandir}/man1/latexdiff-vc.1*
%doc %{_texmfdistdir}/doc/man/man1/latexdiff-vc.man1.pdf
%doc %{_mandir}/man1/latexdiff.1*
%doc %{_texmfdistdir}/doc/man/man1/latexdiff.man1.pdf
%doc %{_mandir}/man1/latexrevise.1*
%doc %{_texmfdistdir}/doc/man/man1/latexrevise.man1.pdf
%doc %{_texmfdistdir}/doc/support/latexdiff

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/latexdiff/latexdiff-vc.pl latexdiff-vc
    ln -sf %{_texmfdistdir}/scripts/latexdiff/latexdiff.pl latexdiff
    ln -sf %{_texmfdistdir}/scripts/latexdiff/latexrevise.pl latexrevise
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10103 |21cr|texlive-latexfileversion-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexfileversion
Version:	0.3
Release:	2
Summary:	Prints the version and date of a LaTeX class or style file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/latexfileversion
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexfileversion.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexfileversion.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-latexfileversion.bin = %{EVRD}

%description
This simple shell script prints the version and date of a LaTeX
class or style file. Syntax: latexfileversion <file> This
programme handles style files (extension .sty), class files
(extension .cls), and other tex input files. The file extension
must be given.

#-----------------------------------------------------------------------
%files
%{_bindir}/latexfileversion
%{_texmfdistdir}/scripts/latexfileversion/latexfileversion
%doc %{_texmfdistdir}/doc/support/latexfileversion/ChangeLog
%doc %{_texmfdistdir}/doc/support/latexfileversion/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/latexfileversion/latexfileversion latexfileversion
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10104 |21cr|texlive-latex-firstaid-dev-65181-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latex-firstaid-dev

Summary:	Development pre-release of the LaTeX firstaid package
Name:		texlive-latex-firstaid-dev
Version:	65181
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(everysel-ltx.sty) = 2024
Provides:	tex(filehook-ltx.sty) = 2024
BuildArch:	noarch

%description
This is a pre-release version of the standard LaTeX firstaid
package. It accompanies the pre-testing kernel code
(latex-base-dev), and is intended for testing by knowledgeable
users.

%files
%doc %{_texmfdistdir}/doc/latex-dev/firstaid
%{_texmfdistdir}/tex/latex-dev/firstaid

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10105 |21cr|texlive-latex-for-undergraduates-64647-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latex-for-undergraduates

Summary:	A tutorial aimed at introducing undergraduate students to LaTeX
Name:		texlive-latex-for-undergraduates
Version:	64647
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
A tutorial aimed at introducing undergraduate students to
LaTeX, including an introduction to LaTeX Workshop in Visual
Studio Code and an example package of user-defined LaTeX
commands.

%files
%doc %{_texmfdistdir}/doc/latex/latex-for-undergraduates

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10106 |21cr|texlive-latexgit-54811-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latexgit

Summary:	A LaTeX git wrapper
Name:		texlive-latexgit
Version:	54811
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(latexgit.sty) = 2024
BuildArch:	noarch

%description
This package provides several macros to fetch git information
and typeset it. The macros defined by LaTeXgit can be helpful
to documentation authors and others to whom clear document
versioning is important.

%files
%doc %{_texmfdistdir}/doc/latex/latexgit/
%{_texmfdistdir}/tex/latex/latexgit/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10107 |21cr|texlive-latex-git-log-0.9-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30983
# category Package
# catalog-ctan /support/latex-git-log
# catalog-date 2013-06-19 18:12:49 +0200
# catalog-license gpl3
# catalog-version 0.9
Name:		texlive-latex-git-log
Version:	0.9
Release:	13
Summary:	Typeset git log information
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/latex-git-log
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-git-log.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-git-log.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-latex-git-log.bin = %{EVRD}

%description
The program is run within a git repository, and outputs the
entire version history, as a LaTeX table. That output will
typically be redirected to a file; the author recommends
typesetting in landscape orientation.


#-----------------------------------------------------------------------
%files
%{_bindir}/latex-git-log
%{_texmfdistdir}/scripts/latex-git-log/latex-git-log
%doc %{_mandir}/man1/latex-git-log.1*
%doc %{_texmfdistdir}/doc/man/man1/latex-git-log.man1.pdf
%doc %{_texmfdistdir}/doc/support/latex-git-log/README*
%doc %{_texmfdistdir}/doc/support/latex-git-log/example-output.tex
%doc %{_texmfdistdir}/doc/support/latex-git-log/example.pdf
%doc %{_texmfdistdir}/doc/support/latex-git-log/example.tex
%doc %{_texmfdistdir}/doc/support/latex-git-log/po/de.po

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf ../share/texmf-dist/scripts/latex-git-log/latex-git-log latex-git-log
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10108 |21cr|texlive-latex-graphics-dev-64899-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latex-graphics-dev

Summary:	Development pre-release of the LaTeX graphics bundle
Name:		texlive-latex-graphics-dev
Version:	64899
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-graphics-cfg
Requires:	texlive-kpathsea
Provides:	tex(color.sty) = 2024
Provides:	tex(dvipdf.def) = 2024
Provides:	tex(dvipsnam.def) = 2024
Provides:	tex(dvipsone.def) = 2024
Provides:	tex(dviwin.def) = 2024
Provides:	tex(emtex.def) = 2024
Provides:	tex(epsfig.sty) = 2024
Provides:	tex(graphics-2017-06-25.sty) = 2024
Provides:	tex(graphics.sty) = 2024
Provides:	tex(graphicx.sty) = 2024
Provides:	tex(keyval.sty) = 2024
Provides:	tex(lscape.sty) = 2024
Provides:	tex(pctex32.def) = 2024
Provides:	tex(pctexhp.def) = 2024
Provides:	tex(pctexps.def) = 2024
Provides:	tex(pctexwin.def) = 2024
Provides:	tex(rotating.sty) = 2024
Provides:	tex(tcidvi.def) = 2024
Provides:	tex(trig.sty) = 2024
Provides:	tex(truetex.def) = 2024
BuildArch:	noarch

%description
This is a pre-release version of the standard LaTeX graphics
bundle. It accompanies the pre-testing kernel code
(latex-base-dev), and is intended for testing by knowledgeable
users.

%files
%doc %{_texmfdistdir}/doc/latex-dev/graphics
%{_texmfdistdir}/tex/latex-dev/graphics

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10109 |21cr|texlive-latexindent-3.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexindent
Version:	3.5.3
Release:	1
Summary:	Indent a LaTeX document, highlighting the programming structure
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/latexindent
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexindent.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexindent.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-latexindent.bin = %{EVRD}

%description
The Perl script (also available as a windows executable)
processes a LaTeX file, indenting parts so as to highlight the
structure for the reader.

#-----------------------------------------------------------------------
%files
%{_bindir}/latexindent
%{_texmfdistdir}/scripts/latexindent
%doc %{_texmfdistdir}/doc/support/latexindent

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/latexindent/latexindent.pl latexindent
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10110 |21cr|texlive-latex-lab-64892-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latex-lab

Summary:	LaTeX laboratory
Name:		texlive-latex-lab
Version:	64892
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(latex-lab-testphase-new-or.sty) = 2024
BuildArch:	noarch

%description
The LaTeX laboratory provides a route for additions to the
LaTeX kernel to be stablised, whilst still allowing some
stability for adventorous users.

%files
%doc %{_texmfdistdir}/doc/latex/latex-lab
%{_texmfdistdir}/tex/latex/latex-lab

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10111 |21cr|texlive-latex-make-60874-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latex-make

Summary:	Easy compiling of complex (and simple) LaTeX documents
Name:		texlive-latex-make
Version:	60874
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	make
#Requires:	tex(aeguill.sty)
#Requires:	tex(ae.sty)
Requires:	tex(color.sty)
#Requires:	tex(epstopdf.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(ifpdf.sty)
Requires:	tex(ifthen.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(figlatex.cfg) = 2024
Provides:	tex(figlatex.sty) = 2024
Provides:	tex-latex-make = 2024
Provides:	tex(pdfswitch.sty) = 2024
Provides:	tex(texdepends.sty) = 2024
Provides:	tex(texgraphicx.sty) = 2024
BuildArch:	noarch

%description
This package provides several tools that aim to simplify the
compilation of LaTeX documents: LaTeX.mk: a Makefile snippet to
help compiling LaTeX documents in DVI, PDF, PS, ... format.
Dependencies are automatically tracked: one should be able to
compile documents with a one-line Makefile containing 'include
LaTeX.mk'. Complex documents (with multiple bibliographies,
indexes, glossaries, ...) should be correctly managed.
figlatex.sty: a LaTeX package to easily insert xfig figures
(with \includegraphics{file.fig}). It can interact with
LaTeX.mk so that the latter automatically invokes transfig if
needed. And various helper tools for LaTeX.mk This package
requires GNUmake (>= 3.81).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/scripts/latex-make/
%{_texmfdistdir}/tex/latex/latex-make/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10112 |21cr|texlive-latexmk-4.63b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexmk
Version:	4.63b
Release:	1
Summary:	Fully automated LaTeX document generation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/latexmk
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexmk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexmk.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexmk.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-latexmk.bin = %{EVRD}

%description
Latexmk completely automates the process of generating a LaTeX
document. Given the source files for a document, latexmk issues
the appropriate sequence of commands to generate a .dvi, .ps,
.pdf or hardcopy version of the document. An important feature
is the "preview continuous mode", where the script watches all
of the source files (primary file and included TeX and graphics
files), and reruns LaTeX, etc., whenever a source file has
changed. Thus a previewer can offer a display of the document's
latest state.

#-----------------------------------------------------------------------
%files
%{_bindir}/latexmk
%{_texmfdistdir}/scripts/latexmk
%doc %{_mandir}/man1/latexmk.1*
%doc %{_texmfdistdir}/doc/man/man1/latexmk.man1.pdf
%doc %{_texmfdistdir}/doc/support/latexmk
#- source
%doc %{_texmfdistdir}/source/support/latexmk

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/latexmk/latexmk.pl latexmk
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10113 |21cr|texlive-latexpand-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexpand
Version:	1.5
Release:	1
Epoch:		1
Summary:	Expand \input and \include in a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/latexpand
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexpand.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexpand.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-latexpand.bin = %{EVRD}

%description
Latexpand is a Perl script that simply replaces \input and
\include commands with the content of the file input/included.
The script does not deal with \includeonly commands.

#-----------------------------------------------------------------------
%files
%{_bindir}/latexpand
%{_texmfdistdir}/scripts/latexpand
%doc %{_texmfdistdir}/doc/support/latexpand

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/latexpand/latexpand latexpand
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10114 |21cr|texlive-latex-uni8-0.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex-uni8
Version:	0.03
Release:	1
Summary:	Universal inputenc, fontenc and babel for pdflatex + lualatex
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/latex-uni8
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-uni8.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-uni8.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
uni8.sty is a LaTeX style file which makes it easy to use input encoding
(UTF-8 by default, can be changed), fontspec.sty (optional), font
encoding (T1 if fontspec.sty is not used), babel (English language by
default), hyphenation, underline (with soul.sty), default text and math
fonts (Computer Modern or Times) and paper sizes correctly with both
pdflatex and lualatex.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/latex-uni8
%doc %{_texmfdistdir}/doc/latex/latex-uni8

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10115 |21cr|texlive-latex-via-exemplos-63374-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latex-via-exemplos

Summary:	A LaTeX course written in brazilian portuguese language
Name:		texlive-latex-via-exemplos
Version:	63374
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a LaTeX2e course written in brazilian portuguese
language.

%files
%doc %{_texmfdistdir}/doc/latex/latex-via-exemplos/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10116 |21cr|texlive-latino-sine-flexione-53485-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname latino-sine-flexione

Summary:	LaTeX support for documents written in Peano's Interlingua
Name:		texlive-latino-sine-flexione
Version:	53485
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(latino-sine-flexione.sty) = 2024
BuildArch:	noarch

%description
Latino sine Flexione (or Interlingua) is a language constructed
by Giuseppe Peano at the beginning of the last century. This
simplified Latin is designed to be an instrument for
international cooperation, especially in the academic sphere.
(Note that this "Interlingua" is different from the
"Interlingua" that was created a few decades after Peano's work
and which is supported by babel-interlingua!) This package
provides the necessary translations to use the language within
a LaTeX document. It also imports fontenc in order to be able
to use ligatures and quotation marks. Finally, it offers a text
in Interlingua that can be used as a dummy text: Fundamento de
intelligentia. This article by H. Bijlsma was first published
in Schola et Vita Anno I (1926).

%files
%doc %{_texmfdistdir}/doc/latex/latino-sine-flexione
%{_texmfdistdir}/tex/latex/latino-sine-flexione

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10117 |21cr|texlive-lato-3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lato
Version:	3.0
Release:	2
Summary:	Lato font fanily and LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/lato
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lato.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lato.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Lato is a sanserif typeface family designed in the Summer 2010
by Warsaw-based designer Lukasz Dziedzic for the tyPoland
foundry. This font, which includes five weights (hairline,
light, regular, bold and black), is available from the Google
Font Directory as TrueType files under the Open Font License
version 1.1. The package provides support for this font in
LaTeX. It includes the original TrueType fonts, as well as Type
1 versions, converted for this package using FontForge for full
support with Dvips.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/lato
%{_texmfdistdir}/fonts/map/dvips/lato
%{_texmfdistdir}/fonts/tfm/typoland/lato
%{_texmfdistdir}/fonts/truetype/typoland/lato
%{_texmfdistdir}/fonts/type1/typoland/lato
%{_texmfdistdir}/fonts/vf/typoland/lato
%{_texmfdistdir}/tex/latex/lato
%doc %{_texmfdistdir}/doc/fonts/lato

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10118 |21cr|texlive-leadsheets-61504-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname leadsheets

Summary:	Typesetting leadsheets and songbooks
Name:		texlive-leadsheets
Version:	61504
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	texlive-kpathsea
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
#Requires:	tex(translations.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(leadsheet.cls) = 2024
Provides:	tex-leadsheets = 2024
Provides:	tex(leadsheets.library.chordnames.code.tex) = 2024
Provides:	tex(leadsheets.library.chords.code.tex) = 2024
Provides:	tex(leadsheets.library.external.code.tex) = 2024
Provides:	tex(leadsheets.library.musejazz.code.tex) = 2024
Provides:	tex(leadsheets.library.musicsymbols.code.tex) = 2024
Provides:	tex(leadsheets.library.properties.code.tex) = 2024
Provides:	tex(leadsheets.library.shorthands.code.tex) = 2024
Provides:	tex(leadsheets.library.songs.code.tex) = 2024
Provides:	tex(leadsheets.library.templates.code.tex) = 2024
Provides:	tex(leadsheets.library.translations.code.tex) = 2024
Provides:	tex(leadsheets.library.transposing.code.tex) = 2024
Provides:	tex(leadsheets.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package offers support for typesetting simple
leadsheets of songs, i.e. song lyrics and the corresponding
chords.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/leadsheets/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10119 |21cr|texlive-lebhart-65475-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lebhart

Summary:	Write your articles in a colorful way
Name:		texlive-lebhart
Version:	65475
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(colorist.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lebhart.cls) = 2024
BuildArch:	noarch

%description
This package provides a LaTeX class for typesetting articles
with a colorful design. Currently, it has native support for
Chinese (simplified and traditional), English, French, German,
Italian, Japanese, Portuguese (European and Brazilian), Russian
and Spanish typesetting. It compiles with either XeLaTeX or
LuaLaTeX. This is part of the colorist class series and depends
on colorist.sty from the colorist package. The package name
"lebhart" is taken from the German word "lebhaft" ("vivid"),
combined with the first three letters of "Artikel" ("article").

%files
%doc %{_texmfdistdir}/doc/latex/lebhart
%{_texmfdistdir}/tex/latex/lebhart

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10120 |21cr|texlive-lecturer-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23916
# category Package
# catalog-ctan /macros/generic/lecturer
# catalog-date 2011-09-11 12:44:24 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-lecturer
Version:	20190228
Release:	1
Summary:	On-screen presentations for (almost) all formats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/lecturer
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lecturer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lecturer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package creates slides for on-screen presentations based on
PDF features without manipulating TeX's typesetting process.
The presentation flow relies on PDF's abilities to display
content step by step. Features include: - Free positioning of
anything anywhere in painted areas on the slide, as well as in
the main textblock; - Numerous attributes to control the layout
and the presentation flow, from TeX's primitive dimensions to
the visibility of steps; - Feature inheritance from global to
local settings, with intermediate types; - Basic drawing
facilities to produce symbols, e.g., for list items or buttons;
- Colors, transparency, shades, and pictures; - Navigation with
links, pop-up menus, and customizable bookmarks; - Easy switch
between presentation and handout; and - PDF transitions.
Besides the traditional documentation, the distribution
includes visual documentation and six demo presentations
ranging from geometric abstraction to classic style to silly
video game. Lecturer is designed to work with all formats, but
presently fails with ConTeXt MkIV (because of clashes in
management of PDF objects, probably), works only with pdfTeX
and LuaTeX for the time being, and requires texapi and yax,
both v.1.02.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/lecturer/lecturer.sty
%{_texmfdistdir}/tex/generic/lecturer/lecturer.tex
%{_texmfdistdir}/tex/generic/lecturer/ltr-areas.tex
%{_texmfdistdir}/tex/generic/lecturer/ltr-graphics.tex
%{_texmfdistdir}/tex/generic/lecturer/ltr-job.tex
%{_texmfdistdir}/tex/generic/lecturer/ltr-navigation.tex
%{_texmfdistdir}/tex/generic/lecturer/ltr-slides.tex
%{_texmfdistdir}/tex/generic/lecturer/ltr-steps.tex
%{_texmfdistdir}/tex/generic/lecturer/t-lecturer.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-BeamerCambridgeUS.pdf
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-BeamerCambridgeUS.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-KitschScienceFiction.pdf
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-KitschScienceFiction.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-Mondrian.pdf
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-Mondrian.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-SimplePresentation.pdf
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-SimplePresentation.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-SquaresOfAs.pdf
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-SquaresOfAs.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-ThePoodleLectures.pdf
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-ThePoodleLectures.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-VisualDoc.pdf
%doc %{_texmfdistdir}/doc/generic/lecturer/LecturerDemo-VisualDoc.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/README
%doc %{_texmfdistdir}/doc/generic/lecturer/lecturer-doc.pdf
%doc %{_texmfdistdir}/doc/generic/lecturer/lecturer-doc.tex
%doc %{_texmfdistdir}/doc/generic/lecturer/universe.jpg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10121 |21cr|texlive-lectureslides-62292-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lectureslides

Summary:	Combine single PDF files into one file
Name:		texlive-lectureslides
Version:	62292
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(hyperref.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(parskip.sty)
#Requires:	tex(pdfpages.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(tocloft.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(lectureslides.sty) = 2024
BuildArch:	noarch

%description
This package makes it easy to combine and index individual PDF
files into one large PDF file.

%files
%doc %{_texmfdistdir}/doc/latex/lectureslides
%{_texmfdistdir}/tex/latex/lectureslides

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10122 |21cr|texlive-leftindex-56182-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname leftindex

Summary:	Left indices with better spacing
Name:		texlive-leftindex
Version:	56182
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(mathtools.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(leftindex.sty) = 2024
BuildArch:	noarch

%description
This package provides commands for typesetting left indices.
Unlike other similar packages, leftindex also indents the left
superscript, providing much better spacing in general.

%files
%doc %{_texmfdistdir}/doc/latex/leftindex
%{_texmfdistdir}/tex/latex/leftindex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10123 |21cr|texlive-letgut-65548-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname letgut

Summary:	Class for the newsletter "La Lettre GUTenberg" of the French TeX User Group GUTenberg
Name:		texlive-letgut
Version:	65548
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(informations-gut.tex) = 2024
Provides:	tex(letgut-acronyms.tex) = 2024
Provides:	tex(letgut-banner.sty) = 2024
Provides:	tex(letgut.cbx) = 2024
Provides:	tex(letgut.cls) = 2024
Provides:	tex(letgut-lstlang.sty) = 2024
BuildArch:	noarch

%description
The French TeX User Group GUTenberg has been publishing "The
GUTenberg Letter", its irregular newsletter, since February
1993. For this purpose, a dedicated, in-house (La)TeX class was
gradually created but, depending on new needs and on the people
who were publishing the Newsletter, its development was
somewhat erratic; in particular, it would not have been
possible to publish its code as it was. In addition, its
documentation was non-existent. The Board of Directors of the
association, elected in November 2020, wished to provide a
better structured, more perennial and documented class, able to
be published on the CTAN. This is now done with the present
'letgut' class. # French L'association GUTenberg publie "La
Lettre GUTenberg", son bulletin irregulomestriel, depuis
fevrier 1993. Pour ce faire, une classe (La)TeX dediee, maison,
a peu a peu vu le jour mais, au gre des nouveaux besoins et des
personnes qui ont assure la publication de la Lettre, son
developpement a ete quelque peu erratique ; il n'aurait
notamment pas ete possible de publier son code en l'etat. En
outre, sa documentation etait inexistante. Le Conseil
d'Administration de l'association, elu en novembre 2020, a
souhaite fournir une classe mieux structuree, davantage perenne
et documentee, a meme d'etre publiee sur le CTAN. C'est
desormais chose faite avec la presente classe letgut.

%files
%doc %{_texmfdistdir}/doc/lualatex/letgut
%{_texmfdistdir}/tex/lualatex/letgut

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10124 |21cr|texlive-letltxmacro-53022-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname letltxmacro

Summary:	Let assignment for LaTeX macros
Name:		texlive-letltxmacro
Version:	53022
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(letltxmacro.sty) = 2024
BuildArch:	noarch

%description
TeX's \let assignment does not work for LaTeX macros with
optional arguments or for macros that are defined as robust
macros by \DeclareRobustCommand. This package defines
\LetLtxMacro that also takes care of the involved internal
macros.

%files
%doc %{_texmfdistdir}/doc/latex/letltxmacro
%{_texmfdistdir}/tex/latex/letltxmacro

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10125 |21cr|texlive-letterspacing-54266-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname letterspacing

Summary:	Letter spacing
Name:		texlive-letterspacing
Version:	54266
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(letterspacing.tex) = 2024
BuildArch:	noarch

%description
Space out the letters of text; the command is
\letterspace<\hbox modifier>{<text>}: the text is placed in an
\hbox of the specified size, and space is inserted between each
glyph to make the text fit the box. Note that letterspacing is
not ordinarily considered acceptable in modern typesetting of
English.

%files
%{_texmfdistdir}/tex/generic/letterspacing

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10126 |21cr|texlive-letterswitharrows-59993-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname letterswitharrows

Summary:	Draw arrows over math letters
Name:		texlive-letterswitharrows
Version:	59993
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(letterswitharrows.sty) = 2024
BuildArch:	noarch

%description
This package provides LaTeX math-mode commands for setting left
and right arrows over mathematical symbols so that the arrows
dynamically scale with the symbols. While it is possible to set
arrows over longer strings of symbols, the focus lies on single
characters.

%files
%doc %{_texmfdistdir}/doc/latex/letterswitharrows
%{_texmfdistdir}/tex/latex/letterswitharrows

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10127 |21cr|texlive-lexend-57564-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lexend

Summary:	The Lexend fonts for XeLaTeX and LuaLaTeX through fontspec
Name:		texlive-lexend
Version:	57564
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lexend.sty) = 2024
BuildArch:	noarch

%description
The purpose of this package is pretty straight forward: The
Lexend font collection has been designed by Dr. Bonnie
Shaver-Troup and Thomas Jockin to make reading easier for
everyone. Now my goal is it to bring this wonderful collection
to world of LaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/lexend
%{_texmfdistdir}/fonts/truetype/public/lexend
%{_texmfdistdir}/tex/latex/lexend

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10128 |21cr|texlive-lfb-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/greek/lfb
# catalog-date 2006-10-18 08:58:01 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-lfb
Version:	1.0
Release:	8
Summary:	A Greek font with normal and bold variants
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/lfb
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lfb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lfb.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a Greek font written in MetaFont, with inspiration from
the Bodoni typefaces in old books. It is stylistically a little
more exotic than the standard textbook Greek fonts,
particularly in glyphs like the lowercase rho and kappa. It
aims for a rather calligraphic feel, but seems to blend well
with Computer Modern. There is a ligature scheme which
automatically inserts the breathings required for ancient
texts, making the input text more readable than in some
schemes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/lfb/accents.mf
%{_texmfdistdir}/fonts/source/public/lfb/alpha.mf
%{_texmfdistdir}/fonts/source/public/lfb/beta.mf
%{_texmfdistdir}/fonts/source/public/lfb/capitals.mf
%{_texmfdistdir}/fonts/source/public/lfb/charmap.mf
%{_texmfdistdir}/fonts/source/public/lfb/delta.mf
%{_texmfdistdir}/fonts/source/public/lfb/epsilon.mf
%{_texmfdistdir}/fonts/source/public/lfb/eta.mf
%{_texmfdistdir}/fonts/source/public/lfb/gamma.mf
%{_texmfdistdir}/fonts/source/public/lfb/iota.mf
%{_texmfdistdir}/fonts/source/public/lfb/kappa.mf
%{_texmfdistdir}/fonts/source/public/lfb/khi.mf
%{_texmfdistdir}/fonts/source/public/lfb/lambda.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb10.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb11.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb12.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb5.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb6.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb7.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb8.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfb9.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfbb10.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfbb11.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfbb12.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfbb5.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfbb6.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfbb7.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfbb8.mf
%{_texmfdistdir}/fonts/source/public/lfb/lfbb9.mf
%{_texmfdistdir}/fonts/source/public/lfb/ligature.mf
%{_texmfdistdir}/fonts/source/public/lfb/mu.mf
%{_texmfdistdir}/fonts/source/public/lfb/nu.mf
%{_texmfdistdir}/fonts/source/public/lfb/omega.mf
%{_texmfdistdir}/fonts/source/public/lfb/omikron.mf
%{_texmfdistdir}/fonts/source/public/lfb/others.mf
%{_texmfdistdir}/fonts/source/public/lfb/phi.mf
%{_texmfdistdir}/fonts/source/public/lfb/pi.mf
%{_texmfdistdir}/fonts/source/public/lfb/psi.mf
%{_texmfdistdir}/fonts/source/public/lfb/rho.mf
%{_texmfdistdir}/fonts/source/public/lfb/serifs.mf
%{_texmfdistdir}/fonts/source/public/lfb/sigma.mf
%{_texmfdistdir}/fonts/source/public/lfb/sigmafin.mf
%{_texmfdistdir}/fonts/source/public/lfb/tau.mf
%{_texmfdistdir}/fonts/source/public/lfb/theta.mf
%{_texmfdistdir}/fonts/source/public/lfb/upsilon.mf
%{_texmfdistdir}/fonts/source/public/lfb/xi.mf
%{_texmfdistdir}/fonts/source/public/lfb/zeta.mf
%{_texmfdistdir}/fonts/tfm/public/lfb/lfb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfb11.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfb12.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfb5.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfb6.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfb7.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfb8.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfb9.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfbb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfbb11.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfbb12.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfbb5.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfbb6.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfbb7.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfbb8.tfm
%{_texmfdistdir}/fonts/tfm/public/lfb/lfbb9.tfm
%doc %{_texmfdistdir}/doc/fonts/lfb/README
%doc %{_texmfdistdir}/doc/fonts/lfb/example.pdf
%doc %{_texmfdistdir}/doc/fonts/lfb/example.tex
%doc %{_texmfdistdir}/doc/fonts/lfb/lfb.make
%doc %{_texmfdistdir}/doc/fonts/lfb/lfbacc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10129 |21cr|texlive-libertinegc-44616-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libertinegc

Summary:	Libertine add-on to support Greek and Cyrillic
Name:		texlive-libertinegc
Version:	44616
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(LGRLinuxLibertineT-LF.fd) = 2024
Provides:	tex(LGRLinuxLibertineT-OsF.fd) = 2024
Provides:	tex(LGRLinuxLibertineT-TLF.fd) = 2024
Provides:	tex(LGRLinuxLibertineT-TOsF.fd) = 2024
Provides:	tex(lib1-ot2.enc) = 2024
Provides:	tex-libertinegc = 2024
Provides:	tex(libertinegc.map) = 2024
Provides:	tex(libertinegc.sty) = 2024
Provides:	tex(libosf-lgr.enc) = 2024
Provides:	tex(lib-ot2.enc) = 2024
Provides:	tex(lib-t2a1.enc) = 2024
Provides:	tex(lib-t2a2.enc) = 2024
Provides:	tex(lib-t2a.enc) = 2024
Provides:	tex(lib-t2b1.enc) = 2024
Provides:	tex(lib-t2b2.enc) = 2024
Provides:	tex(lib-t2b.enc) = 2024
Provides:	tex(lib-t2c1.enc) = 2024
Provides:	tex(lib-t2c2.enc) = 2024
Provides:	tex(lib-t2c.enc) = 2024
Provides:	tex(libtlf-lgr.enc) = 2024
Provides:	tex(LinLibertineTBI-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTBI-ot2.tfm) = 2024
Provides:	tex(LinLibertineTBI-t2a.tfm) = 2024
Provides:	tex(LinLibertineTBI-t2b.tfm) = 2024
Provides:	tex(LinLibertineTBI-t2c.tfm) = 2024
Provides:	tex(LinLibertineTBI-tlf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTBO-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTBO-ot2.tfm) = 2024
Provides:	tex(LinLibertineTB-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTBO-t2a.tfm) = 2024
Provides:	tex(LinLibertineTBO-t2b.tfm) = 2024
Provides:	tex(LinLibertineTBO-t2c.tfm) = 2024
Provides:	tex(LinLibertineTB-ot2.tfm) = 2024
Provides:	tex(LinLibertineTBO-tlf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTB-t2a.tfm) = 2024
Provides:	tex(LinLibertineTB-t2b.tfm) = 2024
Provides:	tex(LinLibertineTB-t2c.tfm) = 2024
Provides:	tex(LinLibertineTB-tlf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTI-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTI-ot2.tfm) = 2024
Provides:	tex(LinLibertineTI-t2a.tfm) = 2024
Provides:	tex(LinLibertineTI-t2b.tfm) = 2024
Provides:	tex(LinLibertineTI-t2c.tfm) = 2024
Provides:	tex(LinLibertineTI-tlf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTO-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTO-ot2.tfm) = 2024
Provides:	tex(LinLibertineT-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTO-t2a.tfm) = 2024
Provides:	tex(LinLibertineTO-t2b.tfm) = 2024
Provides:	tex(LinLibertineTO-t2c.tfm) = 2024
Provides:	tex(LinLIbertineT-ot2.tfm) = 2024
Provides:	tex(LinLibertineTO-tlf-lgr.tfm) = 2024
Provides:	tex(LinLibertineT-t2a.tfm) = 2024
Provides:	tex(LinLibertineT-t2b.tfm) = 2024
Provides:	tex(LinLibertineT-t2c.tfm) = 2024
Provides:	tex(LinLibertineT-tlf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTZI-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTZI-ot2.tfm) = 2024
Provides:	tex(LinLibertineTZI-t2a.tfm) = 2024
Provides:	tex(LinLibertineTZI-t2b.tfm) = 2024
Provides:	tex(LinLibertineTZI-t2c.tfm) = 2024
Provides:	tex(LinLibertineTZI-tlf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTZO-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTZO-ot2.tfm) = 2024
Provides:	tex(LinLibertineTZ-osf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTZO-t2a.tfm) = 2024
Provides:	tex(LinLibertineTZO-t2b.tfm) = 2024
Provides:	tex(LinLibertineTZO-t2c.tfm) = 2024
Provides:	tex(LinLibertineTZ-ot2.tfm) = 2024
Provides:	tex(LinLibertineTZO-tlf-lgr.tfm) = 2024
Provides:	tex(LinLibertineTZ-t2a.tfm) = 2024
Provides:	tex(LinLibertineTZ-t2b.tfm) = 2024
Provides:	tex(LinLibertineTZ-t2c.tfm) = 2024
Provides:	tex(LinLibertineTZ-tlf-lgr.tfm) = 2024
Provides:	tex(OT2LinuxLibertineT-LF.fd) = 2024
Provides:	tex(OT2LinuxLibertineT-OsF.fd) = 2024
Provides:	tex(OT2LinuxLibertineT-TLF.fd) = 2024
Provides:	tex(OT2LinuxLibertineT-TOsF.fd) = 2024
Provides:	tex(T2ALinuxLibertineT-LF.fd) = 2024
Provides:	tex(T2ALinuxLibertineT-OsF.fd) = 2024
Provides:	tex(T2ALinuxLibertineT-TLF.fd) = 2024
Provides:	tex(T2ALinuxLibertineT-TOsF.fd) = 2024
Provides:	tex(T2BLinuxLibertineT-LF.fd) = 2024
Provides:	tex(T2BLinuxLibertineT-OsF.fd) = 2024
Provides:	tex(T2BLinuxLibertineT-TLF.fd) = 2024
Provides:	tex(T2BLinuxLibertineT-TOsF.fd) = 2024
Provides:	tex(T2CLinuxLibertineT-LF.fd) = 2024
Provides:	tex(T2CLinuxLibertineT-OsF.fd) = 2024
Provides:	tex(T2CLinuxLibertineT-TLF.fd) = 2024
Provides:	tex(T2CLinuxLibertineT-TOsF.fd) = 2024
BuildArch:	noarch

%description
The package provides LaTeX support files to access the Greek
and Cyrillic glyphs in LinuxLibertine. It functions as an add-
on to the libertine package, using filenames and macro names
that are compatible with that package. Supported encodings:
LGR, T2A, T2B, T2C, OT2.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/libertinegc/
%{_texmfdistdir}/fonts/map/dvips/libertinegc/
%{_texmfdistdir}/fonts/tfm/public/libertinegc/
%{_texmfdistdir}/tex/latex/libertinegc/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10130 |21cr|texlive-libertinus-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libertinus

Summary:	The Libertinus font family
Name:		texlive-libertinus
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-libertinus = 2024
Provides:	tex(libertinus.sty) = 2024
BuildArch:	noarch

%description
This package is only a wrapper for the the two packages
libertinus-type1 (pdfLaTeX) and libertinus-otf
(LuaLaTeX/XeLaTeX). The Libertinus fonts are similiar to
Libertine and Biolinum, but come with math symbols.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/libertinus/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10131 |21cr|texlive-libertinus-fonts-57948-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libertinus-fonts

Summary:	The Libertinus font family
Name:		texlive-libertinus-fonts
Version:	57948
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a fork of the Linux Libertine and Linux Biolinum fonts
that started as an OpenType math companion of the Libertine
font family, but grown as a full fork to address some of the
bugs in the fonts. The family consists of: Libertinus Serif:
forked from Linux Libertine. Libertinus Sans: forked from Linux
Biolinum. Libertinus Mono: forked from Linux Libertine Mono.
Libertinus Math: an OpenType math font for use in OpenType
math-capable applications like LuaTeX, XeTeX or MS Word 2007+.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/libertinus-fonts

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10132 |21cr|texlive-libertinus-otf-60023-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libertinus-otf

Summary:	Support for Libertinus OpenType
Name:		texlive-libertinus-otf
Version:	60023
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-libertinus-fonts
Provides:	tex(libertinus-otf.sty) = 2024
BuildArch:	noarch

%description
This package offers LuaLaTeX/XeLaTeX support for the Libertinus
OpenType fonts maintained by Khaled Hosny. Missing fonts are
defined via several font feature settings. The Libertinus fonts
are similiar to Libertine and Biolinum, but come with math
symbols.

%files
%doc %{_texmfdistdir}/doc/fonts/libertinus-otf/
%{_texmfdistdir}/tex/latex/libertinus-otf/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10133 |21cr|texlive-libertinust1math-61751-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libertinust1math

Summary:	A Type 1 font and LaTeX support for Libertinus Math
Name:		texlive-libertinust1math
Version:	61751
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-libertinust1math = 2024
Provides:	tex(libertinust1math.map) = 2024
Provides:	tex(libertinust1math.sty) = 2024
Provides:	tex(libusBB.enc) = 2024
Provides:	tex(libusBMI.enc) = 2024
Provides:	tex(libusBMR.enc) = 2024
Provides:	tex(libusEX.enc) = 2024
Provides:	tex(libusFRK.enc) = 2024
Provides:	tex(libusMI.enc) = 2024
Provides:	tex(libusMR.enc) = 2024
Provides:	tex(libusSFB.enc) = 2024
Provides:	tex(libusSF.enc) = 2024
Provides:	tex(libusSFI.enc) = 2024
Provides:	tex(libussfMI.enc) = 2024
Provides:	tex(libussfMR.enc) = 2024
Provides:	tex(libusSYM.enc) = 2024
Provides:	tex(ls1libertinust1mathbb.fd) = 2024
Provides:	tex(ls1libertinust1math.fd) = 2024
Provides:	tex(ls1libertinust1mathsf.fd) = 2024
Provides:	tex(ls2libertinust1mathex.fd) = 2024
Provides:	tex(ls2libertinust1mathsym.fd) = 2024
Provides:	tex(ot1libertinust1mathsf.fd) = 2024
BuildArch:	noarch

%description
The package provides a Type1 version of Libertinus Math, with a
number of additions and changes, plus LaTeX support files that
allow it to serve as a math accompaniment to Libertine under
LaTeX. In addition, with option sansmath, it can function as a
standalone math font with sans serif Roman and Greek letters.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/libertinust1math/
%{_texmfdistdir}/fonts/enc/dvips/libertinust1math/
%{_texmfdistdir}/fonts/map/dvips/libertinust1math/
%{_texmfdistdir}/fonts/tfm/public/libertinust1math/
%{_texmfdistdir}/fonts/type1/public/libertinust1math/
%{_texmfdistdir}/fonts/vf/public/libertinust1math/
%{_texmfdistdir}/tex/latex/libertinust1math/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10134 |21cr|texlive-libertinus-type1-64958-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libertinus-type1

Summary:	Support for using Libertinus fonts with LaTeX/pdfLaTeX
Name:		texlive-libertinus-type1
Version:	64958
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lbts_2dnbtf.enc) = 2024
Provides:	tex(lbts_2fcdyd.enc) = 2024
Provides:	tex(lbts_2ojay3.enc) = 2024
Provides:	tex(lbts_2tlncs.enc) = 2024
Provides:	tex(lbts_2u3q4p.enc) = 2024
Provides:	tex(lbts_2vfnnw.enc) = 2024
Provides:	tex(lbts_2y652m.enc) = 2024
Provides:	tex(lbts_2yds7f.enc) = 2024
Provides:	tex(lbts_332eyj.enc) = 2024
Provides:	tex(lbts_35favc.enc) = 2024
Provides:	tex(lbts_36t55i.enc) = 2024
Provides:	tex(lbts_37i5h5.enc) = 2024
Provides:	tex(lbts_3d54jy.enc) = 2024
Provides:	tex(lbts_3j5xjf.enc) = 2024
Provides:	tex(lbts_3jolak.enc) = 2024
Provides:	tex(lbts_3kirmv.enc) = 2024
Provides:	tex(lbts_3kmpct.enc) = 2024
Provides:	tex(lbts_3m644f.enc) = 2024
Provides:	tex(lbts_3qta4x.enc) = 2024
Provides:	tex(lbts_3ssu23.enc) = 2024
Provides:	tex(lbts_3un72f.enc) = 2024
Provides:	tex(lbts_3vqmyw.enc) = 2024
Provides:	tex(lbts_3yrfnt.enc) = 2024
Provides:	tex(lbts_4crdwc.enc) = 2024
Provides:	tex(lbts_4d42wm.enc) = 2024
Provides:	tex(lbts_4gaomz.enc) = 2024
Provides:	tex(lbts_4hcz3c.enc) = 2024
Provides:	tex(lbts_4mrx7q.enc) = 2024
Provides:	tex(lbts_4q6kep.enc) = 2024
Provides:	tex(lbts_4sdcjk.enc) = 2024
Provides:	tex(lbts_4uwsiq.enc) = 2024
Provides:	tex(lbts_4wbnoe.enc) = 2024
Provides:	tex(lbts_4xoyfg.enc) = 2024
Provides:	tex(lbts_4zqa2g.enc) = 2024
Provides:	tex(lbts_57bjkg.enc) = 2024
Provides:	tex(lbts_5acxeg.enc) = 2024
Provides:	tex(lbts_5cy3nd.enc) = 2024
Provides:	tex(lbts_5h7qbk.enc) = 2024
Provides:	tex(lbts_5jnf2k.enc) = 2024
Provides:	tex(lbts_5mdojo.enc) = 2024
Provides:	tex(lbts_5xa72p.enc) = 2024
Provides:	tex(lbts_63ftwl.enc) = 2024
Provides:	tex(lbts_674lrv.enc) = 2024
Provides:	tex(lbts_6caxtj.enc) = 2024
Provides:	tex(lbts_6ewxxu.enc) = 2024
Provides:	tex(lbts_6gletg.enc) = 2024
Provides:	tex(lbts_6h6srf.enc) = 2024
Provides:	tex(lbts_6hdezz.enc) = 2024
Provides:	tex(lbts_6l4fbc.enc) = 2024
Provides:	tex(lbts_6lk76t.enc) = 2024
Provides:	tex(lbts_6wmeer.enc) = 2024
Provides:	tex(lbts_72youc.enc) = 2024
Provides:	tex(lbts_75t36g.enc) = 2024
Provides:	tex(lbts_76xdns.enc) = 2024
Provides:	tex(lbts_77jah4.enc) = 2024
Provides:	tex(lbts_77t54r.enc) = 2024
Provides:	tex(lbts_7aen2t.enc) = 2024
Provides:	tex(lbts_7bccbz.enc) = 2024
Provides:	tex(lbts_7d2mhk.enc) = 2024
Provides:	tex(lbts_7hmj2z.enc) = 2024
Provides:	tex(lbts_7lwjes.enc) = 2024
Provides:	tex(lbts_7mm7zy.enc) = 2024
Provides:	tex(lbts_7oodvn.enc) = 2024
Provides:	tex(lbts_7vsebg.enc) = 2024
Provides:	tex(lbts_7yclm6.enc) = 2024
Provides:	tex(lbts_a3f66t.enc) = 2024
Provides:	tex(lbts_aidrin.enc) = 2024
Provides:	tex(lbts_arfinu.enc) = 2024
Provides:	tex(lbts_at32ur.enc) = 2024
Provides:	tex(lbts_avlujb.enc) = 2024
Provides:	tex(lbts_avlydd.enc) = 2024
Provides:	tex(lbts_ayzaac.enc) = 2024
Provides:	tex(lbts_b4oezt.enc) = 2024
Provides:	tex(lbts_b5fzbp.enc) = 2024
Provides:	tex(lbts_b7xqh5.enc) = 2024
Provides:	tex(lbts_bgegdt.enc) = 2024
Provides:	tex(lbts_bjbyqz.enc) = 2024
Provides:	tex(lbts_bn2i3n.enc) = 2024
Provides:	tex(lbts_bvhzzu.enc) = 2024
Provides:	tex(lbts_bxwrog.enc) = 2024
Provides:	tex(lbts_c3bv3f.enc) = 2024
Provides:	tex(lbts_c4i7ev.enc) = 2024
Provides:	tex(lbts_c4nx3a.enc) = 2024
Provides:	tex(lbts_c6ebdh.enc) = 2024
Provides:	tex(lbts_c6vmpn.enc) = 2024
Provides:	tex(lbts_c7grr2.enc) = 2024
Provides:	tex(lbts_calslh.enc) = 2024
Provides:	tex(lbts_cb34qf.enc) = 2024
Provides:	tex(lbts_cclupu.enc) = 2024
Provides:	tex(lbts_cefqwa.enc) = 2024
Provides:	tex(lbts_ckbdgg.enc) = 2024
Provides:	tex(lbts_ckenly.enc) = 2024
Provides:	tex(lbts_cpinjp.enc) = 2024
Provides:	tex(lbts_cslza4.enc) = 2024
Provides:	tex(lbts_cykel7.enc) = 2024
Provides:	tex(lbts_d2pxsd.enc) = 2024
Provides:	tex(lbts_d37b7c.enc) = 2024
Provides:	tex(lbts_dgc4ye.enc) = 2024
Provides:	tex(lbts_dhtsou.enc) = 2024
Provides:	tex(lbts_dkknmm.enc) = 2024
Provides:	tex(lbts_dn22no.enc) = 2024
Provides:	tex(lbts_dsfsze.enc) = 2024
Provides:	tex(lbts_dzyoth.enc) = 2024
Provides:	tex(lbts_e35iwk.enc) = 2024
Provides:	tex(lbts_e5lu6a.enc) = 2024
Provides:	tex(lbts_ecxtyf.enc) = 2024
Provides:	tex(lbts_ed5ai4.enc) = 2024
Provides:	tex(lbts_eejjqw.enc) = 2024
Provides:	tex(lbts_ep5pfz.enc) = 2024
Provides:	tex(lbts_epdddg.enc) = 2024
Provides:	tex(lbts_ercrba.enc) = 2024
Provides:	tex(lbts_erdvwd.enc) = 2024
Provides:	tex(lbts_esgnlu.enc) = 2024
Provides:	tex(lbts_et5tau.enc) = 2024
Provides:	tex(lbts_exfok6.enc) = 2024
Provides:	tex(lbts_f2r76x.enc) = 2024
Provides:	tex(lbts_f3pcwn.enc) = 2024
Provides:	tex(lbts_fili27.enc) = 2024
Provides:	tex(lbts_fmdp7p.enc) = 2024
Provides:	tex(lbts_fmriqv.enc) = 2024
Provides:	tex(lbts_fph2zj.enc) = 2024
Provides:	tex(lbts_frnenp.enc) = 2024
Provides:	tex(lbts_fszxp3.enc) = 2024
Provides:	tex(lbts_fujx3h.enc) = 2024
Provides:	tex(lbts_fuyass.enc) = 2024
Provides:	tex(lbts_fy3had.enc) = 2024
Provides:	tex(lbts_g3dkmi.enc) = 2024
Provides:	tex(lbts_g6etas.enc) = 2024
Provides:	tex(lbts_gazpeh.enc) = 2024
Provides:	tex(lbts_gc5t3w.enc) = 2024
Provides:	tex(lbts_gekugp.enc) = 2024
Provides:	tex(lbts_gh4gmp.enc) = 2024
Provides:	tex(lbts_goqnek.enc) = 2024
Provides:	tex(lbts_gp3nhm.enc) = 2024
Provides:	tex(lbts_gq67ga.enc) = 2024
Provides:	tex(lbts_gr4hit.enc) = 2024
Provides:	tex(lbts_gz554e.enc) = 2024
Provides:	tex(lbts_gz7arp.enc) = 2024
Provides:	tex(lbts_hahfqq.enc) = 2024
Provides:	tex(lbts_hboyu3.enc) = 2024
Provides:	tex(lbts_hej6xm.enc) = 2024
Provides:	tex(lbts_hh5cao.enc) = 2024
Provides:	tex(lbts_hhbt6z.enc) = 2024
Provides:	tex(lbts_hhmpft.enc) = 2024
Provides:	tex(lbts_hjeuwr.enc) = 2024
Provides:	tex(lbts_hrrrjq.enc) = 2024
Provides:	tex(lbts_hvvyjb.enc) = 2024
Provides:	tex(lbts_hxvdny.enc) = 2024
Provides:	tex(lbts_hzjkgg.enc) = 2024
Provides:	tex(lbts_i52ngl.enc) = 2024
Provides:	tex(lbts_iadd5v.enc) = 2024
Provides:	tex(lbts_iaq24h.enc) = 2024
Provides:	tex(lbts_ibb6ig.enc) = 2024
Provides:	tex(lbts_icmtyb.enc) = 2024
Provides:	tex(lbts_ie56ak.enc) = 2024
Provides:	tex(lbts_ienuhe.enc) = 2024
Provides:	tex(lbts_ighl2q.enc) = 2024
Provides:	tex(lbts_igmfoi.enc) = 2024
Provides:	tex(lbts_ihsp6n.enc) = 2024
Provides:	tex(lbts_iknsvo.enc) = 2024
Provides:	tex(lbts_inpbes.enc) = 2024
Provides:	tex(lbts_ipd343.enc) = 2024
Provides:	tex(lbts_is673m.enc) = 2024
Provides:	tex(lbts_iv4zj2.enc) = 2024
Provides:	tex(lbts_j6sgbi.enc) = 2024
Provides:	tex(lbts_jb5pke.enc) = 2024
Provides:	tex(lbts_jdjwkh.enc) = 2024
Provides:	tex(lbts_jfamas.enc) = 2024
Provides:	tex(lbts_jrenuz.enc) = 2024
Provides:	tex(lbts_jwzfsl.enc) = 2024
Provides:	tex(lbts_k62zaj.enc) = 2024
Provides:	tex(lbts_kbhblx.enc) = 2024
Provides:	tex(lbts_kehxxc.enc) = 2024
Provides:	tex(lbts_koaj57.enc) = 2024
Provides:	tex(lbts_komy7m.enc) = 2024
Provides:	tex(lbts_kq3xmd.enc) = 2024
Provides:	tex(lbts_kwkowq.enc) = 2024
Provides:	tex(lbts_l5raak.enc) = 2024
Provides:	tex(lbts_l5ujiv.enc) = 2024
Provides:	tex(lbts_l5vej2.enc) = 2024
Provides:	tex(lbts_l6vzgi.enc) = 2024
Provides:	tex(lbts_l74upk.enc) = 2024
Provides:	tex(lbts_laenbp.enc) = 2024
Provides:	tex(lbts_lafzha.enc) = 2024
Provides:	tex(lbts_lhntva.enc) = 2024
Provides:	tex(lbts_lkanbr.enc) = 2024
Provides:	tex(lbts_llns2d.enc) = 2024
Provides:	tex(lbts_llzec3.enc) = 2024
Provides:	tex(lbts_lsubum.enc) = 2024
Provides:	tex(lbts_lwzthx.enc) = 2024
Provides:	tex(lbts_lyzgu3.enc) = 2024
Provides:	tex(lbts_lzae2z.enc) = 2024
Provides:	tex(lbts_lzywtf.enc) = 2024
Provides:	tex(lbts_m254rf.enc) = 2024
Provides:	tex(lbts_m2klan.enc) = 2024
Provides:	tex(lbts_m3c2oj.enc) = 2024
Provides:	tex(lbts_m3l6fs.enc) = 2024
Provides:	tex(lbts_m5c6xi.enc) = 2024
Provides:	tex(lbts_m7sqdm.enc) = 2024
Provides:	tex(lbts_mbfmc4.enc) = 2024
Provides:	tex(lbts_mfadfl.enc) = 2024
Provides:	tex(lbts_mi54ls.enc) = 2024
Provides:	tex(lbts_mll6fo.enc) = 2024
Provides:	tex(lbts_mlwm27.enc) = 2024
Provides:	tex(lbts_mmgovh.enc) = 2024
Provides:	tex(lbts_mphtgh.enc) = 2024
Provides:	tex(lbts_mrbizy.enc) = 2024
Provides:	tex(lbts_mvzwgg.enc) = 2024
Provides:	tex(lbts_mxiee2.enc) = 2024
Provides:	tex(lbts_mzxlpf.enc) = 2024
Provides:	tex(lbts_n3cifc.enc) = 2024
Provides:	tex(lbts_n3dtgz.enc) = 2024
Provides:	tex(lbts_n4gj6t.enc) = 2024
Provides:	tex(lbts_n4tewx.enc) = 2024
Provides:	tex(lbts_nl47lc.enc) = 2024
Provides:	tex(lbts_nufysp.enc) = 2024
Provides:	tex(lbts_nv3oiw.enc) = 2024
Provides:	tex(lbts_o7mh5o.enc) = 2024
Provides:	tex(lbts_oaaihm.enc) = 2024
Provides:	tex(lbts_obkmrl.enc) = 2024
Provides:	tex(lbts_obzz72.enc) = 2024
Provides:	tex(lbts_odbssz.enc) = 2024
Provides:	tex(lbts_of47id.enc) = 2024
Provides:	tex(lbts_of4nbw.enc) = 2024
Provides:	tex(lbts_olw3tj.enc) = 2024
Provides:	tex(lbts_onayya.enc) = 2024
Provides:	tex(lbts_opzo24.enc) = 2024
Provides:	tex(lbts_ork5hb.enc) = 2024
Provides:	tex(lbts_orvmfm.enc) = 2024
Provides:	tex(lbts_osdvzf.enc) = 2024
Provides:	tex(lbts_oxank3.enc) = 2024
Provides:	tex(lbts_p5b3to.enc) = 2024
Provides:	tex(lbts_p7snj6.enc) = 2024
Provides:	tex(lbts_pa7fun.enc) = 2024
Provides:	tex(lbts_pag3gg.enc) = 2024
Provides:	tex(lbts_pb7os7.enc) = 2024
Provides:	tex(lbts_pdot6l.enc) = 2024
Provides:	tex(lbts_peeabe.enc) = 2024
Provides:	tex(lbts_pkzsom.enc) = 2024
Provides:	tex(lbts_poicuj.enc) = 2024
Provides:	tex(lbts_ponsko.enc) = 2024
Provides:	tex(lbts_ppaygs.enc) = 2024
Provides:	tex(lbts_ppmlvs.enc) = 2024
Provides:	tex(lbts_pquqdo.enc) = 2024
Provides:	tex(lbts_ptnx64.enc) = 2024
Provides:	tex(lbts_pydski.enc) = 2024
Provides:	tex(lbts_q2cvbs.enc) = 2024
Provides:	tex(lbts_q2ibpc.enc) = 2024
Provides:	tex(lbts_q4imkx.enc) = 2024
Provides:	tex(lbts_q4q2yp.enc) = 2024
Provides:	tex(lbts_qamrlg.enc) = 2024
Provides:	tex(lbts_qcfvgl.enc) = 2024
Provides:	tex(lbts_qe2yqv.enc) = 2024
Provides:	tex(lbts_qpph5c.enc) = 2024
Provides:	tex(lbts_qqnp2h.enc) = 2024
Provides:	tex(lbts_qsv3bx.enc) = 2024
Provides:	tex(lbts_quwwcn.enc) = 2024
Provides:	tex(lbts_qylzkl.enc) = 2024
Provides:	tex(lbts_qzwhi6.enc) = 2024
Provides:	tex(lbts_r37ntu.enc) = 2024
Provides:	tex(lbts_r4goj2.enc) = 2024
Provides:	tex(lbts_r7yss2.enc) = 2024
Provides:	tex(lbts_rcarnw.enc) = 2024
Provides:	tex(lbts_rchowm.enc) = 2024
Provides:	tex(lbts_rfuadt.enc) = 2024
Provides:	tex(lbts_ridgvo.enc) = 2024
Provides:	tex(lbts_rlktsf.enc) = 2024
Provides:	tex(lbts_rpeiua.enc) = 2024
Provides:	tex(lbts_rqhkdi.enc) = 2024
Provides:	tex(lbts_rtitj6.enc) = 2024
Provides:	tex(lbts_rv4ogi.enc) = 2024
Provides:	tex(lbts_sceraq.enc) = 2024
Provides:	tex(lbts_segm3u.enc) = 2024
Provides:	tex(lbts_sewfus.enc) = 2024
Provides:	tex(lbts_sfissr.enc) = 2024
Provides:	tex(lbts_sihybe.enc) = 2024
Provides:	tex(lbts_sjlxxx.enc) = 2024
Provides:	tex(lbts_slsqbu.enc) = 2024
Provides:	tex(lbts_snijqp.enc) = 2024
Provides:	tex(lbts_sppvmf.enc) = 2024
Provides:	tex(lbts_srwzhm.enc) = 2024
Provides:	tex(lbts_st5lk5.enc) = 2024
Provides:	tex(lbts_sut3w7.enc) = 2024
Provides:	tex(lbts_szn4yf.enc) = 2024
Provides:	tex(lbts_szwnvb.enc) = 2024
Provides:	tex(lbts_tevnlg.enc) = 2024
Provides:	tex(lbts_tll2u3.enc) = 2024
Provides:	tex(lbts_trmgk4.enc) = 2024
Provides:	tex(lbts_trxlme.enc) = 2024
Provides:	tex(lbts_tzl7op.enc) = 2024
Provides:	tex(lbts_u2zr7g.enc) = 2024
Provides:	tex(lbts_u7nqae.enc) = 2024
Provides:	tex(lbts_ucipzb.enc) = 2024
Provides:	tex(lbts_ucscsg.enc) = 2024
Provides:	tex(lbts_ugujza.enc) = 2024
Provides:	tex(lbts_uhqgc3.enc) = 2024
Provides:	tex(lbts_uhwxqu.enc) = 2024
Provides:	tex(lbts_uoecuf.enc) = 2024
Provides:	tex(lbts_usfuuy.enc) = 2024
Provides:	tex(lbts_usl52j.enc) = 2024
Provides:	tex(lbts_usz5ut.enc) = 2024
Provides:	tex(lbts_utifxg.enc) = 2024
Provides:	tex(lbts_uwmf7x.enc) = 2024
Provides:	tex(lbts_uxbjn5.enc) = 2024
Provides:	tex(lbts_uxf4m5.enc) = 2024
Provides:	tex(lbts_uyjt7r.enc) = 2024
Provides:	tex(lbts_v5eacd.enc) = 2024
Provides:	tex(lbts_v5z4kv.enc) = 2024
Provides:	tex(lbts_vafbri.enc) = 2024
Provides:	tex(lbts_vejg7h.enc) = 2024
Provides:	tex(lbts_vftr22.enc) = 2024
Provides:	tex(lbts_vgeuwy.enc) = 2024
Provides:	tex(lbts_vgw5na.enc) = 2024
Provides:	tex(lbts_vhmker.enc) = 2024
Provides:	tex(lbts_vizicw.enc) = 2024
Provides:	tex(lbts_vjxogo.enc) = 2024
Provides:	tex(lbts_vkm6ln.enc) = 2024
Provides:	tex(lbts_vmhi4g.enc) = 2024
Provides:	tex(lbts_vmjjgq.enc) = 2024
Provides:	tex(lbts_vtz4pu.enc) = 2024
Provides:	tex(lbts_vu5j2r.enc) = 2024
Provides:	tex(lbts_vvzoei.enc) = 2024
Provides:	tex(lbts_w5ro75.enc) = 2024
Provides:	tex(lbts_waqoej.enc) = 2024
Provides:	tex(lbts_wm6att.enc) = 2024
Provides:	tex(lbts_wogi6j.enc) = 2024
Provides:	tex(lbts_wozmdw.enc) = 2024
Provides:	tex(lbts_wpqmwa.enc) = 2024
Provides:	tex(lbts_wrg6fm.enc) = 2024
Provides:	tex(lbts_wyusil.enc) = 2024
Provides:	tex(lbts_x7beke.enc) = 2024
Provides:	tex(lbts_xaezkf.enc) = 2024
Provides:	tex(lbts_xfy7gm.enc) = 2024
Provides:	tex(lbts_xh3iko.enc) = 2024
Provides:	tex(lbts_xhfw3j.enc) = 2024
Provides:	tex(lbts_xjb3td.enc) = 2024
Provides:	tex(lbts_xpehld.enc) = 2024
Provides:	tex(lbts_xrj6hp.enc) = 2024
Provides:	tex(lbts_ya3yeu.enc) = 2024
Provides:	tex(lbts_ya7mbv.enc) = 2024
Provides:	tex(lbts_yaf6wf.enc) = 2024
Provides:	tex(lbts_yahecb.enc) = 2024
Provides:	tex(lbts_ygr64v.enc) = 2024
Provides:	tex(lbts_yki2t7.enc) = 2024
Provides:	tex(lbts_ynfuvy.enc) = 2024
Provides:	tex(lbts_ysaokq.enc) = 2024
Provides:	tex(lbts_yt5vb5.enc) = 2024
Provides:	tex(lbts_yuwgqp.enc) = 2024
Provides:	tex(lbts_yzuq4p.enc) = 2024
Provides:	tex(lbts_z6ew44.enc) = 2024
Provides:	tex(lbts_z6nnva.enc) = 2024
Provides:	tex(lbts_zh5q6t.enc) = 2024
Provides:	tex(lbts_zjhiql.enc) = 2024
Provides:	tex(lbts_znslmj.enc) = 2024
Provides:	tex(lbts_zpwads.enc) = 2024
Provides:	tex(lbts_zqzvht.enc) = 2024
Provides:	tex(LGRLibertinusSans-LF.fd) = 2024
Provides:	tex(LGRLibertinusSans-OsF.fd) = 2024
Provides:	tex(LGRLibertinusSans-Sup.fd) = 2024
Provides:	tex(LGRLibertinusSans-TLF.fd) = 2024
Provides:	tex(LGRLibertinusSans-TOsF.fd) = 2024
Provides:	tex(LGRLibertinusSerifDisplay-LF.fd) = 2024
Provides:	tex(LGRLibertinusSerifDisplay-OsF.fd) = 2024
Provides:	tex(LGRLibertinusSerifDisplay-Sup.fd) = 2024
Provides:	tex(LGRLibertinusSerifDisplay-TLF.fd) = 2024
Provides:	tex(LGRLibertinusSerifDisplay-TOsF.fd) = 2024
Provides:	tex(LGRLibertinusSerifInitials-TLF.fd) = 2024
Provides:	tex(LGRLibertinusSerif-LF.fd) = 2024
Provides:	tex(LGRLibertinusSerif-OsF.fd) = 2024
Provides:	tex(LGRLibertinusSerif-Sup.fd) = 2024
Provides:	tex(LGRLibertinusSerif-TLF.fd) = 2024
Provides:	tex(LGRLibertinusSerif-TOsF.fd) = 2024
Provides:	tex(libertinus.map) = 2024
Provides:	tex(libertinus-type1.sty) = 2024
Provides:	tex(LY1LibertinusMono-LF.fd) = 2024
Provides:	tex(LY1LibertinusMono-Sup.fd) = 2024
Provides:	tex(LY1LibertinusMono-TLF.fd) = 2024
Provides:	tex(LY1LibertinusSans-LF.fd) = 2024
Provides:	tex(LY1LibertinusSans-OsF.fd) = 2024
Provides:	tex(LY1LibertinusSans-Sup.fd) = 2024
Provides:	tex(LY1LibertinusSans-TLF.fd) = 2024
Provides:	tex(LY1LibertinusSans-TOsF.fd) = 2024
Provides:	tex(LY1LibertinusSerifDisplay-LF.fd) = 2024
Provides:	tex(LY1LibertinusSerifDisplay-OsF.fd) = 2024
Provides:	tex(LY1LibertinusSerifDisplay-Sup.fd) = 2024
Provides:	tex(LY1LibertinusSerifDisplay-TLF.fd) = 2024
Provides:	tex(LY1LibertinusSerifDisplay-TOsF.fd) = 2024
Provides:	tex(LY1LibertinusSerifInitials-TLF.fd) = 2024
Provides:	tex(LY1LibertinusSerif-LF.fd) = 2024
Provides:	tex(LY1LibertinusSerif-OsF.fd) = 2024
Provides:	tex(LY1LibertinusSerif-Sup.fd) = 2024
Provides:	tex(LY1LibertinusSerif-TLF.fd) = 2024
Provides:	tex(LY1LibertinusSerif-TOsF.fd) = 2024
Provides:	tex(OT1LibertinusMono-LF.fd) = 2024
Provides:	tex(OT1LibertinusMono-Sup.fd) = 2024
Provides:	tex(OT1LibertinusMono-TLF.fd) = 2024
Provides:	tex(OT1LibertinusSans-LF.fd) = 2024
Provides:	tex(OT1LibertinusSans-OsF.fd) = 2024
Provides:	tex(OT1LibertinusSans-Sup.fd) = 2024
Provides:	tex(OT1LibertinusSans-TLF.fd) = 2024
Provides:	tex(OT1LibertinusSans-TOsF.fd) = 2024
Provides:	tex(OT1LibertinusSerifDisplay-LF.fd) = 2024
Provides:	tex(OT1LibertinusSerifDisplay-OsF.fd) = 2024
Provides:	tex(OT1LibertinusSerifDisplay-Sup.fd) = 2024
Provides:	tex(OT1LibertinusSerifDisplay-TLF.fd) = 2024
Provides:	tex(OT1LibertinusSerifDisplay-TOsF.fd) = 2024
Provides:	tex(OT1LibertinusSerifInitials-TLF.fd) = 2024
Provides:	tex(OT1LibertinusSerif-LF.fd) = 2024
Provides:	tex(OT1LibertinusSerif-OsF.fd) = 2024
Provides:	tex(OT1LibertinusSerif-Sup.fd) = 2024
Provides:	tex(OT1LibertinusSerif-TLF.fd) = 2024
Provides:	tex(OT1LibertinusSerif-TOsF.fd) = 2024
Provides:	tex(T1LibertinusMono-LF.fd) = 2024
Provides:	tex(T1LibertinusMono-Sup.fd) = 2024
Provides:	tex(T1LibertinusMono-TLF.fd) = 2024
Provides:	tex(T1LibertinusSans-LF.fd) = 2024
Provides:	tex(T1LibertinusSans-OsF.fd) = 2024
Provides:	tex(T1LibertinusSans-Sup.fd) = 2024
Provides:	tex(T1LibertinusSans-TLF.fd) = 2024
Provides:	tex(T1LibertinusSans-TOsF.fd) = 2024
Provides:	tex(T1LibertinusSerifDisplay-LF.fd) = 2024
Provides:	tex(T1LibertinusSerifDisplay-OsF.fd) = 2024
Provides:	tex(T1LibertinusSerifDisplay-Sup.fd) = 2024
Provides:	tex(T1LibertinusSerifDisplay-TLF.fd) = 2024
Provides:	tex(T1LibertinusSerifDisplay-TOsF.fd) = 2024
Provides:	tex(T1LibertinusSerifInitials-TLF.fd) = 2024
Provides:	tex(T1LibertinusSerif-LF.fd) = 2024
Provides:	tex(T1LibertinusSerif-OsF.fd) = 2024
Provides:	tex(T1LibertinusSerif-Sup.fd) = 2024
Provides:	tex(T1LibertinusSerif-TLF.fd) = 2024
Provides:	tex(T1LibertinusSerif-TOsF.fd) = 2024
Provides:	tex(T2ALibertinusSans-LF.fd) = 2024
Provides:	tex(T2ALibertinusSans-OsF.fd) = 2024
Provides:	tex(T2ALibertinusSans-Sup.fd) = 2024
Provides:	tex(T2ALibertinusSans-TLF.fd) = 2024
Provides:	tex(T2ALibertinusSans-TOsF.fd) = 2024
Provides:	tex(T2ALibertinusSerifDisplay-LF.fd) = 2024
Provides:	tex(T2ALibertinusSerifDisplay-OsF.fd) = 2024
Provides:	tex(T2ALibertinusSerifDisplay-Sup.fd) = 2024
Provides:	tex(T2ALibertinusSerifDisplay-TLF.fd) = 2024
Provides:	tex(T2ALibertinusSerifDisplay-TOsF.fd) = 2024
Provides:	tex(T2ALibertinusSerifInitials-TLF.fd) = 2024
Provides:	tex(T2ALibertinusSerif-LF.fd) = 2024
Provides:	tex(T2ALibertinusSerif-OsF.fd) = 2024
Provides:	tex(T2ALibertinusSerif-Sup.fd) = 2024
Provides:	tex(T2ALibertinusSerif-TLF.fd) = 2024
Provides:	tex(T2ALibertinusSerif-TOsF.fd) = 2024
Provides:	tex(T2BLibertinusSans-LF.fd) = 2024
Provides:	tex(T2BLibertinusSans-OsF.fd) = 2024
Provides:	tex(T2BLibertinusSans-Sup.fd) = 2024
Provides:	tex(T2BLibertinusSans-TLF.fd) = 2024
Provides:	tex(T2BLibertinusSans-TOsF.fd) = 2024
Provides:	tex(T2BLibertinusSerifDisplay-LF.fd) = 2024
Provides:	tex(T2BLibertinusSerifDisplay-OsF.fd) = 2024
Provides:	tex(T2BLibertinusSerifDisplay-Sup.fd) = 2024
Provides:	tex(T2BLibertinusSerifDisplay-TLF.fd) = 2024
Provides:	tex(T2BLibertinusSerifDisplay-TOsF.fd) = 2024
Provides:	tex(T2BLibertinusSerifInitials-TLF.fd) = 2024
Provides:	tex(T2BLibertinusSerif-LF.fd) = 2024
Provides:	tex(T2BLibertinusSerif-OsF.fd) = 2024
Provides:	tex(T2BLibertinusSerif-Sup.fd) = 2024
Provides:	tex(T2BLibertinusSerif-TLF.fd) = 2024
Provides:	tex(T2BLibertinusSerif-TOsF.fd) = 2024
Provides:	tex(T2CLibertinusSans-LF.fd) = 2024
Provides:	tex(T2CLibertinusSans-OsF.fd) = 2024
Provides:	tex(T2CLibertinusSans-Sup.fd) = 2024
Provides:	tex(T2CLibertinusSans-TLF.fd) = 2024
Provides:	tex(T2CLibertinusSans-TOsF.fd) = 2024
Provides:	tex(T2CLibertinusSerifDisplay-LF.fd) = 2024
Provides:	tex(T2CLibertinusSerifDisplay-OsF.fd) = 2024
Provides:	tex(T2CLibertinusSerifDisplay-Sup.fd) = 2024
Provides:	tex(T2CLibertinusSerifDisplay-TLF.fd) = 2024
Provides:	tex(T2CLibertinusSerifDisplay-TOsF.fd) = 2024
Provides:	tex(T2CLibertinusSerifInitials-TLF.fd) = 2024
Provides:	tex(T2CLibertinusSerif-LF.fd) = 2024
Provides:	tex(T2CLibertinusSerif-OsF.fd) = 2024
Provides:	tex(T2CLibertinusSerif-Sup.fd) = 2024
Provides:	tex(T2CLibertinusSerif-TLF.fd) = 2024
Provides:	tex(T2CLibertinusSerif-TOsF.fd) = 2024
Provides:	tex(TS1LibertinusMono-LF.fd) = 2024
Provides:	tex(TS1LibertinusMono-TLF.fd) = 2024
Provides:	tex(TS1LibertinusSans-LF.fd) = 2024
Provides:	tex(TS1LibertinusSans-OsF.fd) = 2024
Provides:	tex(TS1LibertinusSans-TLF.fd) = 2024
Provides:	tex(TS1LibertinusSans-TOsF.fd) = 2024
Provides:	tex(TS1LibertinusSerifDisplay-LF.fd) = 2024
Provides:	tex(TS1LibertinusSerifDisplay-OsF.fd) = 2024
Provides:	tex(TS1LibertinusSerifDisplay-TLF.fd) = 2024
Provides:	tex(TS1LibertinusSerifDisplay-TOsF.fd) = 2024
Provides:	tex(TS1LibertinusSerifInitials-TLF.fd) = 2024
Provides:	tex(TS1LibertinusSerif-LF.fd) = 2024
Provides:	tex(TS1LibertinusSerif-OsF.fd) = 2024
Provides:	tex(TS1LibertinusSerif-TLF.fd) = 2024
Provides:	tex(TS1LibertinusSerif-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides support for use of Libertinus fonts with
traditional processing engines (LaTeX with dvips or dvipdfmx,
or pdfLaTeX).

%files
%doc %{_texmfdistdir}/doc/fonts/libertinus-type1
%{_texmfdistdir}/fonts/enc/dvips/libertinus-type1
%{_texmfdistdir}/fonts/map/dvips/libertinus-type1
%{_texmfdistdir}/fonts/tfm/public/libertinus-type1
%{_texmfdistdir}/fonts/type1/public/libertinus-type1
%{_texmfdistdir}/fonts/vf/public/libertinus-type1
%{_texmfdistdir}/tex/latex/libertinus-type1

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10135 |21cr|texlive-librarian-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19880
# category Package
# catalog-ctan /macros/generic/librarian
# catalog-date 2010-06-25 08:56:08 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-librarian
Version:	1.0
Release:	8
Summary:	Tools to create bibliographies in TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/librarian
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/librarian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/librarian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extracts information in bib files, makes it
available in the current document, and sorts lists of entries
according to that information and the user's specifications.
Citation and bibliography styles can then be written directly
in TeX, without any use of BibTeX. Creating references thus
depends entirely on the user's skill in TeX. The package works
with all formats that use plain TeX's basic syntactic sugar;
the distribution includes a third-party file for ConTeXt and a
style file for LaTeX. As an example of use, an Author (Year)
style is given in a separate file and explained in the
documentation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/librarian/librarian.sty
%{_texmfdistdir}/tex/generic/librarian/librarian.tex
%{_texmfdistdir}/tex/generic/librarian/t-librarian.tex
%doc %{_texmfdistdir}/doc/generic/librarian/README
%doc %{_texmfdistdir}/doc/generic/librarian/authoryear.tex
%doc %{_texmfdistdir}/doc/generic/librarian/librarian-doc.pdf
%doc %{_texmfdistdir}/doc/generic/librarian/librarian-doc.tex
%doc %{_texmfdistdir}/doc/generic/librarian/librarian.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10136 |21cr|texlive-librebaskerville-64421-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname librebaskerville

Summary:	LaTeX support for the Libre Baskerville family of fonts
Name:		texlive-librebaskerville
Version:	64421
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex(lbskvl_4uz6a2.enc) = 2024
Provides:	tex(lbskvl_4yc6wb.enc) = 2024
Provides:	tex(lbskvl_6hj2ra.enc) = 2024
Provides:	tex(lbskvl_p6yehx.enc) = 2024
Provides:	tex(lbskvl_uf5aa7.enc) = 2024
Provides:	tex(lbskvl_ufnake.enc) = 2024
Provides:	tex(lbskvl_vepvv3.enc) = 2024
Provides:	tex(lbskvl_wpcz7d.enc) = 2024
Provides:	tex(lbskvl_yeotsr.enc) = 2024
Provides:	tex-librebaskerville = 2024
Provides:	tex(LibreBaskerville.map) = 2024
Provides:	tex(librebaskerville.sty) = 2024
Provides:	tex(LY1LibreBskvl-LF.fd) = 2024
Provides:	tex(LY1LibreBskvl-Sup.fd) = 2024
Provides:	tex(OT1LibreBskvl-LF.fd) = 2024
Provides:	tex(OT1LibreBskvl-Sup.fd) = 2024
Provides:	tex(T1LibreBskvl-LF.fd) = 2024
Provides:	tex(T1LibreBskvl-Sup.fd) = 2024
Provides:	tex(TS1LibreBskvl-LF.fd) = 2024
BuildArch:	noarch

%description
Libre Baskerville is designed by Pablo Impallari. It is
primarily intended to be a web font but is also attractive as a
TeX font. As there is currently no bold italic variant, an
artificially slanted version of the bold variant has been
generated.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/librebaskerville/
%{_texmfdistdir}/fonts/map/dvips/librebaskerville/
%{_texmfdistdir}/fonts/tfm/impallari/librebaskerville/
%{_texmfdistdir}/fonts/truetype/impallari/librebaskerville
%{_texmfdistdir}/fonts/type1/impallari/librebaskerville/
%{_texmfdistdir}/fonts/vf/impallari/librebaskerville/
%{_texmfdistdir}/tex/latex/librebaskerville/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10137 |21cr|texlive-librebodoni-64431-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname librebodoni

Summary:	Libre Bodoni fonts with LaTeX support
Name:		texlive-librebodoni
Version:	64431
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(lbd_2nc6ly.enc) = 2024
Provides:	tex(lbd_dwvqiv.enc) = 2024
Provides:	tex(lbd_fttd7q.enc) = 2024
Provides:	tex(lbd_gxeqsi.enc) = 2024
Provides:	tex(lbd_k2dfwc.enc) = 2024
Provides:	tex(lbd_oaf34p.enc) = 2024
Provides:	tex(lbd_pcwse4.enc) = 2024
Provides:	tex(lbd_rpuqof.enc) = 2024
Provides:	tex(lbd_yeotsr.enc) = 2024
Provides:	tex(lbd_zpaflu.enc) = 2024
Provides:	tex-librebodoni = 2024
Provides:	tex(LibreBodoni.map) = 2024
Provides:	tex(LibreBodoni.sty) = 2024
Provides:	tex(LY1LibreBodoni-Inf.fd) = 2024
Provides:	tex(LY1LibreBodoni-Sup.fd) = 2024
Provides:	tex(LY1LibreBodoni-TLF.fd) = 2024
Provides:	tex(OT1LibreBodoni-Inf.fd) = 2024
Provides:	tex(OT1LibreBodoni-Sup.fd) = 2024
Provides:	tex(OT1LibreBodoni-TLF.fd) = 2024
Provides:	tex(T1LibreBodoni-Inf.fd) = 2024
Provides:	tex(T1LibreBodoni-Sup.fd) = 2024
Provides:	tex(T1LibreBodoni-TLF.fd) = 2024
Provides:	tex(TS1LibreBodoni-TLF.fd) = 2024
BuildArch:	noarch

%description
The Libre Bodoni fonts are designed by Pablo Impallari and
Rodrigo Fuenzalida, based on the 19th century Morris Fuller
Benton's.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/librebodoni/
%{_texmfdistdir}/fonts/map/dvips/librebodoni/
%{_texmfdistdir}/fonts/opentype/impallari/librebodoni/
%{_texmfdistdir}/fonts/tfm/impallari/librebodoni/
%{_texmfdistdir}/fonts/type1/impallari/librebodoni/
%{_texmfdistdir}/fonts/vf/impallari/librebodoni/
%{_texmfdistdir}/tex/latex/librebodoni/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10138 |21cr|texlive-librecaslon-64432-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname librecaslon

Summary:	Libre Caslon fonts, with LaTeX support
Name:		texlive-librecaslon
Version:	64432
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex(lcsln_4uz6a2.enc) = 2024
Provides:	tex(lcsln_4yc6wb.enc) = 2024
Provides:	tex(lcsln_6hj2ra.enc) = 2024
Provides:	tex(lcsln_cfomvu.enc) = 2024
Provides:	tex(lcsln_dwvqiv.enc) = 2024
Provides:	tex(lcsln_dybe4i.enc) = 2024
Provides:	tex(lcsln_etzx2k.enc) = 2024
Provides:	tex(lcsln_fx4jx2.enc) = 2024
Provides:	tex(lcsln_igmdqj.enc) = 2024
Provides:	tex(lcsln_n56tqa.enc) = 2024
Provides:	tex(lcsln_p6yehx.enc) = 2024
Provides:	tex(lcsln_uf5aa7.enc) = 2024
Provides:	tex(lcsln_ufnake.enc) = 2024
Provides:	tex(lcsln_vwciie.enc) = 2024
Provides:	tex(lcsln_yeotsr.enc) = 2024
Provides:	tex(lcsln_yiohbm.enc) = 2024
Provides:	tex(lcsln_zdmgtj.enc) = 2024
Provides:	tex-librecaslon = 2024
Provides:	tex(LibreCaslon.map) = 2024
Provides:	tex(librecaslon.sty) = 2024
Provides:	tex(LY1LibreCsln-Inf.fd) = 2024
Provides:	tex(LY1LibreCsln-LF.fd) = 2024
Provides:	tex(LY1LibreCsln-OsF.fd) = 2024
Provides:	tex(LY1LibreCsln-Sup.fd) = 2024
Provides:	tex(LY1LibreCsln-TLF.fd) = 2024
Provides:	tex(LY1LibreCsln-TOsF.fd) = 2024
Provides:	tex(OT1LibreCsln-Inf.fd) = 2024
Provides:	tex(OT1LibreCsln-LF.fd) = 2024
Provides:	tex(OT1LibreCsln-OsF.fd) = 2024
Provides:	tex(OT1LibreCsln-Sup.fd) = 2024
Provides:	tex(OT1LibreCsln-TLF.fd) = 2024
Provides:	tex(OT1LibreCsln-TOsF.fd) = 2024
Provides:	tex(T1LibreCsln-Inf.fd) = 2024
Provides:	tex(T1LibreCsln-LF.fd) = 2024
Provides:	tex(T1LibreCsln-OsF.fd) = 2024
Provides:	tex(T1LibreCsln-Sup.fd) = 2024
Provides:	tex(T1LibreCsln-TLF.fd) = 2024
Provides:	tex(T1LibreCsln-TOsF.fd) = 2024
Provides:	tex(TS1LibreCsln-LF.fd) = 2024
Provides:	tex(TS1LibreCsln-OsF.fd) = 2024
Provides:	tex(TS1LibreCsln-TLF.fd) = 2024
Provides:	tex(TS1LibreCsln-TOsF.fd) = 2024
BuildArch:	noarch

%description
The Libre Caslon fonts are designed by Pablo Impallari.
Although they have been designed for use as web fonts, they
work well as conventional text fonts. A bold italic variant is
not currently available. As a stopgap, an artificially slanted
bold variant has been created and treated as italic.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/librecaslon/
%{_texmfdistdir}/fonts/map/dvips/librecaslon/
%{_texmfdistdir}/fonts/opentype/impallari/librecaslon/
%{_texmfdistdir}/fonts/tfm/impallari/librecaslon/
%{_texmfdistdir}/fonts/type1/impallari/librecaslon/
%{_texmfdistdir}/fonts/vf/impallari/librecaslon/
%{_texmfdistdir}/tex/latex/librecaslon/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10139 |21cr|texlive-librefranklin-64441-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname librefranklin

Summary:	LaTeX support for the Libre-Franklin family of fonts
Name:		texlive-librefranklin
Version:	64441
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lbfr_ejn2og.enc) = 2024
Provides:	tex(lbfr_hlvv6p.enc) = 2024
Provides:	tex(lbfr_nb4g6w.enc) = 2024
Provides:	tex(lbfr_spbxfw.enc) = 2024
Provides:	tex(lbfr_tdlrq7.enc) = 2024
Provides:	tex(lbfr_tf5jo5.enc) = 2024
Provides:	tex(lbfr_w4rwtq.enc) = 2024
Provides:	tex(lbfr_wmouhf.enc) = 2024
Provides:	tex(lbfr_xsutkk.enc) = 2024
Provides:	tex(LGRLibreFranklin-Sup.fd) = 2024
Provides:	tex(LGRLibreFranklin-TLF.fd) = 2024
Provides:	tex(LibreFranklin.map) = 2024
Provides:	tex(librefranklin.sty) = 2024
Provides:	tex(LY1LibreFranklin-Sup.fd) = 2024
Provides:	tex(LY1LibreFranklin-TLF.fd) = 2024
Provides:	tex(OT1LibreFranklin-Sup.fd) = 2024
Provides:	tex(OT1LibreFranklin-TLF.fd) = 2024
Provides:	tex(T1LibreFranklin-Sup.fd) = 2024
Provides:	tex(T1LibreFranklin-TLF.fd) = 2024
Provides:	tex(TS1LibreFranklin-TLF.fd) = 2024
BuildArch:	noarch

%description
Libre Franklin is an interpretation and expansion based on the
1912 Morris Fuller Benton's classic, designed by Pablo
Impallari, Rodrigo Fuenzalida and Nhung Nguyen.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/librefranklin
%{_texmfdistdir}/fonts/map/dvips/librefranklin
%{_texmfdistdir}/fonts/opentype/impallari/librefranklin
%{_texmfdistdir}/fonts/tfm/impallari/librefranklin
%{_texmfdistdir}/fonts/type1/impallari/librefranklin
%{_texmfdistdir}/fonts/vf/impallari/librefranklin
%{_texmfdistdir}/tex/latex/librefranklin

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10140 |21cr|texlive-libris-1.007-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19409
# category Package
# catalog-ctan /fonts/libris
# catalog-date 2010-07-10 19:16:06 +0200
# catalog-license gpl
# catalog-version 1.007
Name:		texlive-libris
Version:	1.007
Release:	8
Summary:	Libris ADF fonts, with LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/libris
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/libris.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/libris.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/libris.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LibrisADF is a sans-serif family designed to mimic Lydian. The
bundle includes: - fonts, in Adobe Type 1, TrueType and
OpenType formats, and - LaTeX support macros, for use with the
Type 1 versions of the fonts. The LaTeX macros depend on the
nfssext-cfr bundle. GPL licensing applies the the fonts
themselves; the support macros are distributed under LPPL
licensing.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/arkandis/libris/ylyb8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/libris/ylybi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/libris/ylyr8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/libris/ylyri8a.afm
%{_texmfdistdir}/fonts/enc/dvips/libris/libris-supp.enc
%{_texmfdistdir}/fonts/enc/dvips/libris/t1-cfr-yly.enc
%{_texmfdistdir}/fonts/enc/dvips/libris/ts1-euro-yly.enc
%{_texmfdistdir}/fonts/map/dvips/libris/yly.map
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyb-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyb-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyb8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyb8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyb8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylybi-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylybi-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylybi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylybi8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylybi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylybiw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylybw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyr-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyr-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyr8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyr8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyr8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyri-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyri-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyri8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyri8s.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyri8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyriw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/libris/ylyrw8t.tfm
%{_texmfdistdir}/fonts/type1/arkandis/libris/ylyb8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/libris/ylyb8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/libris/ylybi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/libris/ylybi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/libris/ylyr8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/libris/ylyr8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/libris/ylyri8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/libris/ylyri8a.pfm
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylyb8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylyb8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylybi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylybi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylybiw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylybw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylyr8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylyr8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylyri8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylyri8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylyriw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/libris/ylyrw8t.vf
%{_texmfdistdir}/tex/latex/libris/libris.sty
%{_texmfdistdir}/tex/latex/libris/t1yly.fd
%{_texmfdistdir}/tex/latex/libris/t1ylyw.fd
%{_texmfdistdir}/tex/latex/libris/ts1yly.fd
%{_texmfdistdir}/tex/latex/libris/ts1ylyw.fd
%doc %{_texmfdistdir}/doc/fonts/libris/COPYING
%doc %{_texmfdistdir}/doc/fonts/libris/NOTICE.txt
%doc %{_texmfdistdir}/doc/fonts/libris/README
%doc %{_texmfdistdir}/doc/fonts/libris/librisadf.pdf
%doc %{_texmfdistdir}/doc/fonts/libris/librisadf.tex
%doc %{_texmfdistdir}/doc/fonts/libris/manifest.txt
#- source
%doc %{_texmfdistdir}/source/fonts/libris/libris-supp.etx
%doc %{_texmfdistdir}/source/fonts/libris/reglyph-yly.tex
%doc %{_texmfdistdir}/source/fonts/libris/resetalt.mtx
%doc %{_texmfdistdir}/source/fonts/libris/t1-cfr.etx
%doc %{_texmfdistdir}/source/fonts/libris/t1-libris.etx
%doc %{_texmfdistdir}/source/fonts/libris/t1-librisswash.etx
%doc %{_texmfdistdir}/source/fonts/libris/ts1-euro.etx
%doc %{_texmfdistdir}/source/fonts/libris/yly-drv.tex
%doc %{_texmfdistdir}/source/fonts/libris/yly-map.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10141 |21cr|texlive-lie-hasse-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lie-hasse

Summary:	Draw Hasse diagrams
Name:		texlive-lie-hasse
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lie-hasse.sty) = 2024
BuildArch:	noarch

%description
This package draws Hasse diagrams of the partially ordered sets
of the simple roots of any complex simple Lie algebra. It uses
the Dynkin diagrams package dynkin-diagrams.

%files
%doc %{_texmfdistdir}/doc/latex/lie-hasse
%{_texmfdistdir}/tex/latex/lie-hasse

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10142 |21cr|texlive-liftarm-62981-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname liftarm

Summary:	Draw liftarms
Name:		texlive-liftarm
Version:	62981
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(liftarm.sty) = 2024
BuildArch:	noarch

%description
This package can be used to draw liftarms with TikZ. It
provides several options for the appearance of the liftarms, a
command which connects two liftarms and an environment to
describe a construction.

%files
%doc %{_texmfdistdir}/doc/latex/liftarm
%{_texmfdistdir}/tex/latex/liftarm

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10143 |21cr|texlive-ligtype-63577-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ligtype

Summary:	Comprehensive ligature suppression functionalities
Name:		texlive-ligtype
Version:	63577
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ligtype.sty) = 2024
BuildArch:	noarch

%description
This package suppresses inappropriate ligatures following
specified rules. Both font and user kerning are applied
correctly, and f-glyphs are automatically replaced with their
short-arm variant (if available). Also there is an emphasis on
speed. By default the package applies German language ligature
suppression rules. With the help of options and macros it can
be used for other languages as well. The package requires
LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/ligtype
%{_texmfdistdir}/tex/lualatex/ligtype

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10144 |21cr|texlive-linearA-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/archaic/linearA
# catalog-date 2006-12-01 16:33:32 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-linearA
Version:	20190228
Release:	1
Summary:	Linear A script fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/archaic/linearA
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/linearA.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/linearA.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/linearA.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The linearA package provides a simple interface to two fonts
which include all known symbols, simple and complex, of the
Linear A script. This way one can easily replicate Linear A
"texts" using modern typographic technology. Note that the
Linear A script has not been deciphered yet and probably never
will be deciphered.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/linearA/LinearA.afm
%{_texmfdistdir}/fonts/afm/public/linearA/LinearACmplxSigns.afm
%{_texmfdistdir}/fonts/map/dvips/linearA/linearA.map
%{_texmfdistdir}/fonts/tfm/public/linearA/LinearA.tfm
%{_texmfdistdir}/fonts/tfm/public/linearA/LinearACmplxSigns.tfm
%{_texmfdistdir}/fonts/type1/public/linearA/LinearA.pfb
%{_texmfdistdir}/fonts/type1/public/linearA/LinearACmplxSigns.pfb
%{_texmfdistdir}/tex/latex/linearA/linearA.sty
%doc %{_texmfdistdir}/doc/fonts/linearA/README
%doc %{_texmfdistdir}/doc/fonts/linearA/linearA_glyphs.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/linearA/linearA.dtx
%doc %{_texmfdistdir}/source/fonts/linearA/linearA.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10145 |21cr|texlive-linebreaker-66639-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname linebreaker

Summary:	Prevent overflow boxes with LuaLaTeX
Name:		texlive-linebreaker
Version:	66639
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(linebreaker.sty) = 2024
BuildArch:	noarch

%description
This package tries to prevent overflow lines in paragraphs or
boxes. It changes LuaTeX's \linebreak callback and re-typesets
the paragraph with increased values of \tolerance and
\emergencystretch until the overflow no longer happens. If that
doesn't help, it chooses the solution with the lowest badness.

%files
%doc %{_texmfdistdir}/doc/lualatex/linebreaker
%{_texmfdistdir}/tex/lualatex/linebreaker

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10146 |21cr|texlive-ling-macros-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ling-macros
Version:	2.2
Release:	1
Summary:	Macros for typesetting formal linguistics
Group:		Publishing
URL:		https://ctan.org/pkg/ling-macros
License:	The LATEX Project Public License 1.3
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/ling-macros.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/ling-macros.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package contains macros for typesetting glosses and formal expressions. 
It covers a range of subfields in formal linguistics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10147 |21cr|texlive-linguisticspro-64858-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname linguisticspro

Summary:	LinguisticsPro fonts with LaTeX support
Name:		texlive-linguisticspro
Version:	64858
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LGRLinguisticsPro-LF.fd) = 2024
Provides:	tex(LGRLinguisticsPro-OsF.fd) = 2024
Provides:	tex(LinguisticsPro.map) = 2024
Provides:	tex(linguisticspro.sty) = 2024
Provides:	tex(lnpr_2dchsz.enc) = 2024
Provides:	tex(lnpr_2io6ub.enc) = 2024
Provides:	tex(lnpr_2mzpfv.enc) = 2024
Provides:	tex(lnpr_2sam6o.enc) = 2024
Provides:	tex(lnpr_3ifnsw.enc) = 2024
Provides:	tex(lnpr_4slpb2.enc) = 2024
Provides:	tex(lnpr_5g7sdz.enc) = 2024
Provides:	tex(lnpr_6eapwe.enc) = 2024
Provides:	tex(lnpr_6ezgzr.enc) = 2024
Provides:	tex(lnpr_7s35zn.enc) = 2024
Provides:	tex(lnpr_bylpnz.enc) = 2024
Provides:	tex(lnpr_c3wdkv.enc) = 2024
Provides:	tex(lnpr_c5y55d.enc) = 2024
Provides:	tex(lnpr_clyilc.enc) = 2024
Provides:	tex(lnpr_ctp5bu.enc) = 2024
Provides:	tex(lnpr_d5qjpp.enc) = 2024
Provides:	tex(lnpr_ehss4d.enc) = 2024
Provides:	tex(lnpr_elz76p.enc) = 2024
Provides:	tex(lnpr_fxbwbp.enc) = 2024
Provides:	tex(lnpr_i7qe4r.enc) = 2024
Provides:	tex(lnpr_jlizdj.enc) = 2024
Provides:	tex(lnpr_jvdtnb.enc) = 2024
Provides:	tex(lnpr_klqkbd.enc) = 2024
Provides:	tex(lnpr_mptstw.enc) = 2024
Provides:	tex(lnpr_n5uv5s.enc) = 2024
Provides:	tex(lnpr_n7rfoz.enc) = 2024
Provides:	tex(lnpr_niynhd.enc) = 2024
Provides:	tex(lnpr_o6z2fv.enc) = 2024
Provides:	tex(lnpr_olwjlf.enc) = 2024
Provides:	tex(lnpr_p6qnqd.enc) = 2024
Provides:	tex(lnpr_pcxklf.enc) = 2024
Provides:	tex(lnpr_pq5q4e.enc) = 2024
Provides:	tex(lnpr_q4n4m4.enc) = 2024
Provides:	tex(lnpr_qzkx3x.enc) = 2024
Provides:	tex(lnpr_rozyzo.enc) = 2024
Provides:	tex(lnpr_rqjpbq.enc) = 2024
Provides:	tex(lnpr_rr27g2.enc) = 2024
Provides:	tex(lnpr_rwq5kg.enc) = 2024
Provides:	tex(lnpr_syddkj.enc) = 2024
Provides:	tex(lnpr_t2hwm2.enc) = 2024
Provides:	tex(lnpr_tdl523.enc) = 2024
Provides:	tex(lnpr_usrmsl.enc) = 2024
Provides:	tex(lnpr_vfi6fz.enc) = 2024
Provides:	tex(lnpr_vycqam.enc) = 2024
Provides:	tex(lnpr_waxsla.enc) = 2024
Provides:	tex(lnpr_whgjeg.enc) = 2024
Provides:	tex(lnpr_whn5dx.enc) = 2024
Provides:	tex(lnpr_wo5mze.enc) = 2024
Provides:	tex(lnpr_wsrlge.enc) = 2024
Provides:	tex(lnpr_wsw7yh.enc) = 2024
Provides:	tex(lnpr_xexdze.enc) = 2024
Provides:	tex(lnpr_xr332d.enc) = 2024
Provides:	tex(lnpr_xv6zbl.enc) = 2024
Provides:	tex(lnpr_y6ghoo.enc) = 2024
Provides:	tex(lnpr_ydj4q2.enc) = 2024
Provides:	tex(LY1LinguisticsPro-LF.fd) = 2024
Provides:	tex(LY1LinguisticsPro-OsF.fd) = 2024
Provides:	tex(OT1LinguisticsPro-LF.fd) = 2024
Provides:	tex(OT1LinguisticsPro-OsF.fd) = 2024
Provides:	tex(T1LinguisticsPro-LF.fd) = 2024
Provides:	tex(T1LinguisticsPro-OsF.fd) = 2024
Provides:	tex(T2ALinguisticsPro-LF.fd) = 2024
Provides:	tex(T2ALinguisticsPro-OsF.fd) = 2024
Provides:	tex(T2BLinguisticsPro-LF.fd) = 2024
Provides:	tex(T2BLinguisticsPro-OsF.fd) = 2024
Provides:	tex(T2CLinguisticsPro-LF.fd) = 2024
Provides:	tex(T2CLinguisticsPro-OsF.fd) = 2024
Provides:	tex(T3LinguisticsPro-LF.fd) = 2024
Provides:	tex(T3LinguisticsPro-OsF.fd) = 2024
Provides:	tex(TS1LinguisticsPro-LF.fd) = 2024
Provides:	tex(TS1LinguisticsPro-OsF.fd) = 2024
Provides:	tex(TS3LinguisticsPro-LF.fd) = 2024
Provides:	tex(TS3LinguisticsPro-OsF.fd) = 2024
BuildArch:	noarch

%description
The package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the LinguisticsPro family of fonts. This family is
derived from the Utopia Nova font family, by Andreas Nolda.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/linguisticspro
%{_texmfdistdir}/fonts/map/dvips/linguisticspro
%{_texmfdistdir}/fonts/opentype/public/linguisticspro
%{_texmfdistdir}/fonts/tfm/public/linguisticspro
%{_texmfdistdir}/fonts/type1/public/linguisticspro
%{_texmfdistdir}/fonts/vf/public/linguisticspro
%{_texmfdistdir}/tex/latex/linguisticspro

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10148 |21cr|texlive-linop-41304-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname linop

Summary:	Typeset linear operators as they appear in quantum theory or linear algebra
Name:		texlive-linop
Version:	41304
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-linop = 2024
Provides:	tex(linop.sty) = 2024
BuildArch:	noarch

%description
This small package aims to provide two simple commands and many
options to easily write linear operators as they appear in many-
body physics, quantum theory, and linear algebra, in any of the
ways commonly in use.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/linop/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10149 |21cr|texlive-listbib-2.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/listbib
# catalog-date 2012-04-21 20:14:11 +0200
# catalog-license gpl
# catalog-version 2.2
Name:		texlive-listbib
Version:	2.2
Release:	13
Summary:	Lists contents of BibTeX files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/listbib
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listbib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listbib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listbib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-listbib.bin = %{EVRD}

%description
Generates listings of bibliographic data bases in BibTeX format
-- for example for archival purposes. Included is a listbib.bst
which is better suited for this purpose than the standard
styles.

#-----------------------------------------------------------------------
%files
%{_bindir}/listbib
%{_texmfdistdir}/bibtex/bst/listbib/listbib.bst
%{_texmfdistdir}/scripts/listbib/listbib
%{_texmfdistdir}/tex/latex/listbib/listbib.cfg
%{_texmfdistdir}/tex/latex/listbib/listbib.sty
%{_texmfdistdir}/tex/latex/listbib/listbib.tex
%doc %{_texmfdistdir}/doc/latex/listbib/listbib-doc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/listbib/listbib-doc.drv
%doc %{_texmfdistdir}/source/latex/listbib/listbib.drv
%doc %{_texmfdistdir}/source/latex/listbib/listbib.dtx
%doc %{_texmfdistdir}/source/latex/listbib/listbib.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/listbib/listbib listbib
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10150 |21cr|texlive-listings-ext-67-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/listings-ext
# catalog-date 2012-04-21 20:14:11 +0200
# catalog-license lppl1.2
# catalog-version 67
Name:		texlive-listings-ext
Version:	67
Release:	12
Summary:	Automated input of source
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/listings-ext
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listings-ext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listings-ext.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listings-ext.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-listings-ext.bin = %{EVRD}

%description
The package provides a means of marking a source, so that
samples of it may be included in a document (by means of the
listings package) in a stable fashion, regardless of any change
to the source. The markup in the source text defines tags for
blocks of source. These tags are processed by a shell script to
make a steering file that is used by the package when LaTeX is
being run.y.

#-----------------------------------------------------------------------
%files
%{_bindir}/listings-ext.sh
%{_texmfdistdir}/scripts/listings-ext/listings-ext.sh
%{_texmfdistdir}/tex/latex/listings-ext/listings-ext.sty
%doc %{_texmfdistdir}/doc/latex/listings-ext/README
%doc %{_texmfdistdir}/doc/latex/listings-ext/THIS_IS_VERSION_v67
%doc %{_texmfdistdir}/doc/latex/listings-ext/getversion.tex
%doc %{_texmfdistdir}/doc/latex/listings-ext/hyperref.cfg
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext.bib
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext.el
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext.makemake
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext.mk
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext.pdf
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext_exmpl_a.java
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext_exmpl_b.java
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext_exmpl_c.java
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext_exmpl_d.java
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext_exmpl_e.java
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext_test_a.tex
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings-ext_test_d.tex
%doc %{_texmfdistdir}/doc/latex/listings-ext/listings.cfg
#- source
%doc %{_texmfdistdir}/source/latex/listings-ext/listings-ext.dtx
%doc %{_texmfdistdir}/source/latex/listings-ext/listings-ext.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/listings-ext/listings-ext.sh listings-ext.sh
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10151 |21cr|texlive-listingsutf8-53097-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname listingsutf8

Summary:	Allow UTF-8 in listings input
Name:		texlive-listingsutf8
Version:	53097
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(listingsutf8.sty) = 2024
BuildArch:	noarch

%description
Package listings does not support files with multi-byte
encodings such as UTF-8. In the case of \lstinputlisting, a
simple workaround is possible if a one-byte encoding exists
that the file can be converted to. The package requires the
e-TeX extensions under pdfTeX (in either PDF or DVI output
mode).

%files
%doc %{_texmfdistdir}/doc/latex/listingsutf8
%{_texmfdistdir}/tex/latex/listingsutf8

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10152 |21cr|texlive-listofitems-1.63-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			texlive-listofitems
Version:		1.63
Release:		1
Summary:		Grab items in lists using user-specified sep char
Group:			Publishing
URL:			https://ctan.org/tex-archive/macros/generic/listofitems
License:		lppl1.3c
Source0:		https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/listofitems.tar.xz
Source1:		https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/listofitems.doc.tar.xz
BuildArch:		noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows one to capture all the items of a list, for which
the parsing character has been selected by the user, and to access any
of these items with a simple syntax.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10153 |21cr|texlive-llncs-64299-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname llncs

Summary:	Document class and bibliography style for Lecture Notes in Computer Science (LNCS)
Name:		texlive-llncs
Version:	64299
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(llncs.cls) = 2024
BuildArch:	noarch

%description
This is Springer's official macro package for typesetting
contributions to be published in Springer's Lecture Notes in
Computer Science (LNCS) and its related proceedings series
CCIS, LNBIP, LNICST, and IFIP AICT.

%files
%doc %{_texmfdistdir}/doc/latex/llncs
%{_texmfdistdir}/bibtex/bst/llncs
%{_texmfdistdir}/tex/latex/llncs

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10154 |21cr|texlive-lni-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22142
# category Package
# catalog-ctan /macros/latex/contrib/lni
# catalog-date 2011-04-20 18:25:54 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-lni
Version:	0.1
Release:	1
Summary:	Official class for the "Lecture Notes in Informatics"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lni
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lni.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lni.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is the official version of the class "lni" for submissions to the Lecture Notes
in Informatics published by the Gesellschaft fur Informatik. To use it, download the
file lni-author-template.tex and edit it in your favorite LaTeX editor.

#-----------------------------------------------------------------------
%files

%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10155 |21cr|texlive-lobster2-64442-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lobster2

Summary:	Lobster Two fonts, with support for all LaTeX engines
Name:		texlive-lobster2
Version:	64442
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex(lbstr_2rydtx.enc) = 2024
Provides:	tex(lbstr_bucufw.enc) = 2024
Provides:	tex(lbstr_pvoz5h.enc) = 2024
Provides:	tex(lbstr_t7yaon.enc) = 2024
Provides:	tex-lobster2 = 2024
Provides:	tex(LobsterTwo.map) = 2024
Provides:	tex(LobsterTwo.sty) = 2024
Provides:	tex(LY1Lbstr-LF.fd) = 2024
Provides:	tex(OT1Lbstr-LF.fd) = 2024
Provides:	tex(T1Lbstr-LF.fd) = 2024
Provides:	tex(TS1Lbstr-LF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Lobster Two family of fonts, designed by Pablo
Impallari. This is a family of script fonts with many ligatures
and terminal forms; for the best results, use XeLaTeX or
LuaLaTeX. There are two weights and italic variants for both.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/lobster2/
%{_texmfdistdir}/fonts/map/dvips/lobster2/
%{_texmfdistdir}/fonts/opentype/impallari/lobster2/
%{_texmfdistdir}/fonts/tfm/impallari/lobster2/
%{_texmfdistdir}/fonts/type1/impallari/lobster2/
%{_texmfdistdir}/fonts/vf/impallari/lobster2/
%{_texmfdistdir}/tex/latex/lobster2/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10156 |21cr|texlive-logicproof-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-logicproof
Version:	20160624
Release:	1
Summary:	Box proofs for propositional and predicate logic
Group:		Publishing
URL:		https://ctan.org/pkg/logicproof
License:	LPPL1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/logicproof.tar.xz 
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/logicproof.doc.tar.xz 
Source2:    http://ctan.altspu.ru/systems/texlive/tlnet/archive/logicproof.source.tar.xz 
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
A common style of proof used in propositional and predicate
logic is Fitch proofs, in which each line of the proof has a
statement and a justification, and subproofs within a larger
proof have boxes around them. The package provides environments
for typesetting such proofs and boxes. It creates proofs in a
style similar to that used in "Logic in Computer Science" by
Huth and Ryan.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10157 |21cr|texlive-logix-63688-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname logix

Summary:	Supplement to the Unicode math symbols
Name:		texlive-logix
Version:	63688
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(logix.sty) = 2024
BuildArch:	noarch

%description
The package provides a Unicode font with over 4,000 symbols to
supplement the Unicode math symbols. It is compatible with and
complements the AMS STIX2 math fonts, but focuses on new
symbols and symbol variants more suited to work in logic.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/logix
%{_texmfdistdir}/fonts/truetype/public/logix
%{_texmfdistdir}/tex/latex/logix

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10158 |21cr|texlive-logreq-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19640
# category Package
# catalog-ctan /macros/latex/contrib/logreq
# catalog-date 2010-08-11 13:58:09 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-logreq
Version:	1.0
Release:	8
Summary:	Support for automation of the LaTeX workflow
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/logreq
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logreq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logreq.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package helps to automate a typical LaTeX workflow that
involves running LaTeX several times, running tools such as
BibTeX or makeindex, and so on. It will log requests like
"please rerun LaTeX" or "please run BibTeX on file X" to an
external XML file which lists all open tasks in a machine-
readable format. Compiler scripts and integrated LaTeX editing
environments may parse this file to determine the next steps in
the workflow in a way that is more efficient than parsing the
main log file. In sum, the package will do two things: 1)
enable package authors to use LaTeX commands to issue requests,
2) collect all requests from all packages and write them to an
external XML file at the end of the document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/logreq/logreq.def
%{_texmfdistdir}/tex/latex/logreq/logreq.sty
%doc %{_texmfdistdir}/doc/latex/logreq/README
%doc %{_texmfdistdir}/doc/latex/logreq/examples/01-basic.run.xml
%doc %{_texmfdistdir}/doc/latex/logreq/examples/01-basic.tex
%doc %{_texmfdistdir}/doc/latex/logreq/examples/02-index.run.xml
%doc %{_texmfdistdir}/doc/latex/logreq/examples/02-index.tex
%doc %{_texmfdistdir}/doc/latex/logreq/examples/03-biblatex+bibtex8.run.xml
%doc %{_texmfdistdir}/doc/latex/logreq/examples/03-biblatex+bibtex8.tex
%doc %{_texmfdistdir}/doc/latex/logreq/examples/04-biblatex+bibtex+refsections.run.xml
%doc %{_texmfdistdir}/doc/latex/logreq/examples/04-biblatex+bibtex+refsections.tex
%doc %{_texmfdistdir}/doc/latex/logreq/examples/05-biblatex+biber.run.xml
%doc %{_texmfdistdir}/doc/latex/logreq/examples/05-biblatex+biber.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10159 |21cr|texlive-lollipop-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lollipop
Version:	1.1
Release:	1
Summary:	TeX made easy
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/lollipop
License:	GNU
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/lollipop.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/lollipop.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Lollipop is "TeX made easy" -- it is a macro package that
functions as a toolbox for writing TeX macros. Its main aim is
to make macro writing so easy that implementing a fully new
layout in TeX would become a matter of less than an hour for an
average document. The aim is that such a task could be
accomplished by someone with only a very basic training in TeX
programming. Thus, Lollipop aims to make structured text
formatting available in environments where typical users would
switch to WYSIWYG packages for the freedom that such a
mechanism offers. In addition, development of support for
Lollipop documents written in RTL languages (such as Persian)
is underway.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lollipop/*
%doc %{_texmfdistdir}/doc/otherformats/lollipop/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/tex texmf-dist/doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10160 |21cr|texlive-longdivision-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-longdivision
Version:	1.2.0
Release:	1
Summary:	This package executes the long division algorithm and typesets the solutions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/longdivision
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/longdivision.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/longdivision.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Does the long division algorithm and typesets the results. 
The dividend must be a positive decimal number and the divisor must be a positive integer. 
Correctly handles repeating decimals, putting a bar over the repeated part of the decimal. 
Handles dividends up to 20 digits long gracefully (though the typeset result will take up about a page) 
and dividends between 20 and 60 digits long slightly less gracefully.
Defines macros longdivision and intlongdivision. 
Each takes two arguments, a dividend and divisor. 
longdivision keeps dividing until the remainder is zero, 
or it encounters a repeated remainder. longdivision stops when the dividend stops 
(though the dividend doesn't have to be an integer).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10161 |21cr|texlive-longfbox-39028-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname longfbox

Summary:	Draw framed boxes with standard CSS attributes that can break over multiple pages
Name:		texlive-longfbox
Version:	39028
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(longbox.sty) = 2024
Provides:	tex-longfbox = 2024
Provides:	tex(longfbox.sty) = 2024
BuildArch:	noarch

%description
The longfbox package provides framed boxes that can be
customized using standard CSS attributes. It was written to
support precise rendering of Madoko documents in LaTeX.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/longfbox/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10162 |21cr|texlive-lparse-65693-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lparse

Summary:	A Lua module for parsing key-value options
Name:		texlive-lparse
Version:	65693
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lparse.sty) = 2024
Provides:	tex(lparse.tex) = 2024
BuildArch:	noarch

%description
The name lparse is derived from xparse. The 'x' has been
replaced by an 'l' because this package only works with LuaTeX.
'l' stands for "Lua". Just as with xparse, it is possible to
use a special syntax consisting of single letters to express
the arguments of a macro. However, lparse is able to read
arguments regardless of the macro systemd used -- whether
LaTeX, or ConTeXt, or even plain TeX. Of course, LuaTeX must
always be used as the engine.

%files
%doc %{_texmfdistdir}/doc/luatex/lparse
%{_texmfdistdir}/tex/luatex/lparse

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10163 |21cr|texlive-lpform-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lpform
Version:	20160624
Release:	1
Summary:	Typesetting linear programming formulations and sets of equations
Group:		Publishing
URL:		http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/lpform
License:	LPPL
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/lpform.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/lpform.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is designed to aid the author writing linear
programming formulations, one restriction at a time. With the
package, one can easily label equations, formulations can span
lmultiple pages and several elements of the layout (such as
spacing, texts and equation tags) are also customizable.
Besides linear programming formulations, this package can also
be used to display any series of aligned equations with easy
labeling/referencing and other customization options.

#-----------------------------------------------------------------------
%files

%{_texmfdistdir}/tex/generic/lpform/
%doc %{_texmfdistdir}/doc/generic/lpform/

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10164 |21cr|texlive-lplfitch-0.9-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31077
# category Package
# catalog-ctan /macros/latex/contrib/lplfitch
# catalog-date 2013-07-02 16:20:31 +0200
# catalog-license lppl1.3
# catalog-version 0.9
Name:		texlive-lplfitch
Version:	0.9
Release:	11
Summary:	Fitch-style natural deduction proofs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lplfitch
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lplfitch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lplfitch.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lplfitch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for typesetting natural deduction
proofs in "Fitch" style, with subproofs indented and offset by
scope lines. The proofs from use of the package are in the
format used in the textbook Language, Proof, and Logic by Dave
Barker-Plummer, Jon Barwise, and John Etchemendy.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lplfitch/lplfitch.sty
%doc %{_texmfdistdir}/doc/latex/lplfitch/README
%doc %{_texmfdistdir}/doc/latex/lplfitch/lplfitch.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lplfitch/lplfitch.dtx
%doc %{_texmfdistdir}/source/latex/lplfitch/lplfitch.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10165 |21cr|texlive-lstbayes-2019.02.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lstbayes
Version:	2019.02.28
Release:	1
Summary:	The package provides language drivers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lstbayes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lstbayes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lstbayes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lstbayes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides language drivers for the listings package for several 
languages not included in that package: BUGS, JAGS, and Stan. 
To use, load the package
\usepackage{lstbayes}
Then use BUGS, JAGS or Stan as a language in one of the listings environments 
or commands.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10166 |21cr|texlive-lstfiracode-0.3.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lstfiracode

Summary:	Use Fira Code font for listings
Name:		texlive-lstfiracode
Version:	0.3.12
Release:	1
License:	lppl1.3c
Group:		Publishing
Url:		https://www.ctan.org/tex-archive/macros/latex/contrib/lstfiracode
Source0:	https://ctan.mirror.norbert-ruehl.de/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.mirror.norbert-ruehl.de/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
BuildArch:	noarch

%description
The lstfiracode package defines FiraCodeStyle
for the use with the listings package. This style
contains almost all ligatures in Nikita Prokopov’s
Fira Code family of fonts.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/%{oname}

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10167 |21cr|texlive-lt3luabridge-64801-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lt3luabridge

Summary:	Execute Lua code in any TeX engine that exposes the shell
Name:		texlive-lt3luabridge
Version:	64801
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lt3luabridge.sty) = 2024
Provides:	tex(lt3luabridge.tex) = 2024
Provides:	tex(t-lt3luabridge.tex) = 2024
BuildArch:	noarch

%description
This is an expl3(-generic) package for plain TeX, LaTeX, and
ConTeXt that allows you to execute Lua code in LuaTeX or any
other TeX engine that exposes the shell.

%files
%doc %{_texmfdistdir}/doc/generic/lt3luabridge
%{_texmfdistdir}/tex/generic/lt3luabridge

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10168 |21cr|texlive-lt3rawobjects-65230-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lt3rawobjects

Summary:	Objects and proxies in LaTeX3
Name:		texlive-lt3rawobjects
Version:	65230
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lt3rawobjects.sty) = 2024
BuildArch:	noarch

%description
This package introduces a new mechanism to create objects like
the well known C structures. The functions exported by this
package are quite low level, and many important mechanisms like
member protection and name resolution aren't already defined
and should be introduced by intermediate packages.

%files
%doc %{_texmfdistdir}/doc/latex/lt3rawobjects
%{_texmfdistdir}/tex/latex/lt3rawobjects

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10169 |21cr|texlive-ltb2bib-43746-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ltb2bib

Summary:	Converts amsrefs' .ltb bibliographical databases to BibTeX format
Name:		texlive-ltb2bib
Version:	43746
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ltb2bib.sty) = 2024
BuildArch:	noarch

%description
This package implements a LaTeX command that converts an
amsrefs bibliographical database (.ltb) to a BibTeX
bibliographical database (.bib). ltb2bib is the reverse of the
"amsxport" option in amsrefs. Typical uses are: produce bib
entries for some publishers which don't accept amsrefs (Taylor
& Francis, for example); import an ltb database in a database
management program, e.g. for sorting; access one's ltb database
within emacs's RefTeX mode.

%files
%doc %{_texmfdistdir}/doc/latex/ltb2bib/
%{_texmfdistdir}/tex/latex/ltb2bib/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10170 |21cr|texlive-ltxcmds-56421-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ltxcmds

Summary:	Some LaTeX kernel commands for general use
Name:		texlive-ltxcmds
Version:	56421
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ltxcmds.sty) = 2024
BuildArch:	noarch

%description
This package exports some utility macros from the LaTeX kernel
into a separate namespace and also makes them available for
other formats such as plain TeX.

%files
%doc %{_texmfdistdir}/doc/generic/ltxcmds
%{_texmfdistdir}/tex/generic/ltxcmds

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10171 |21cr|texlive-ltxfileinfo-2.04-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33670
# category Package
# catalog-ctan /support/ltxfileinfo
# catalog-date 2014-04-24 15:36:27 +0200
# catalog-license gpl
# catalog-version 2.01
Name:		texlive-ltxfileinfo
Version:	2.04
Release:	2
Summary:	Print version info for latex class or style file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/ltxfileinfo
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxfileinfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxfileinfo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-ltxfileinfo.bin = %{EVRD}

%description
The bash script ltxfileinfo prints information about a LaTeX
class, style and other files to standard output. The script is
based on Uwe Luck's readprov, so it prints information only for
files that contain a \ProvidesFile, \ProvidesClass or
\ProvidesPackage statement. The script tries to correct errors
in these \Provides... statements and it has options, useful for
developers, to make errors in those statements visible.

#-----------------------------------------------------------------------
%files
%{_bindir}/ltxfileinfo
%{_texmfdistdir}/scripts/ltxfileinfo/ltxfileinfo
%doc %{_texmfdistdir}/doc/support/ltxfileinfo/README
%doc %{_texmfdistdir}/doc/support/ltxfileinfo/ltxfileinfo.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/ltxfileinfo/ltxfileinfo ltxfileinfo
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10172 |21cr|texlive-ltximg-1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ltximg
Version:	1.5
Release:	2
Summary:	Split LaTeX files to sanitise a conversion process
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/ltximg
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltximg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltximg.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-ltximg.bin = %{EVRD}

%description
The package provides a Perl script that extracts all TikZ and
PStricks environments for separate processing to produce images
(in eps, pdf, png or jpg format) for use by a converter or the
preview bundle.

#-----------------------------------------------------------------------
%files
%{_bindir}/ltximg
%{_texmfdistdir}/scripts/ltximg
%doc %{_texmfdistdir}/doc/support/ltximg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/ltximg/ltximg.pl ltximg
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10173 |21cr|texlive-luaaddplot-62842-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luaaddplot

Summary:	An extension to pgfplots' \addplot macro
Name:		texlive-luaaddplot
Version:	62842
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luaaddplot.sty) = 2024
Provides:	tex(luaaddplot.tex) = 2024
BuildArch:	noarch

%description
This package is an extension to pgfplots. It extends the
\addplot macro by a facility which allows modification of data
files while they are read. With luaaddplot it is no longer
necessary to pre-process data files generated by measuring
devices with external scripts. This package can be used with
plain LuaTeX or LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/luatex/luaaddplot
%{_texmfdistdir}/tex/luatex/luaaddplot

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10174 |21cr|texlive-luacas-65042-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luacas

Summary:	A computer algebra system for users of LuaLaTeX
Name:		texlive-luacas
Version:	65042
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luacas.sty) = 2024
BuildArch:	noarch

%description
This package provides a portable computer algebra system
capable of symbolic computation, written entirely in Lua,
designed for use in LuaLaTeX. Features include:
arbitrary-precision integer and rational arithmetic, factoring
of univariate polynomials over the rationals and finite fields,
number theoretic algorithms, symbolic differentiation and
integration, and more. The target audience for this package are
mathematics students, instructors, and professionals who would
like some ability to perform basic symbolic computations within
LaTeX without the need for laborious and technical setup.

%files
%doc %{_texmfdistdir}/doc/lualatex/luacas
%{_texmfdistdir}/tex/lualatex/luacas

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10175 |21cr|texlive-luacensor-62167-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luacensor

Summary:	Securely redact sensitive information using Lua
Name:		texlive-luacensor
Version:	62167
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luacensor.sty) = 2024
BuildArch:	noarch

%description
This package provides simple tools for creating redacted Its
tools are useful for lawyers, workers in sensitive industries,
and others who need to easily produce both unrestricted
versions of documents (for limited, secure release) and
restricted versions of documents (for general release)
Redaction is done both by hiding all characters and by slightly
varying the length of strings to prevent jigsaw identification.
It also is friendly to screen readers by adding alt-text
indicating redacted content.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/truetype/public/%{oname}
%{_texmfdistdir}/tex/lualatex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10176 |21cr|texlive-luacolor-57829-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luacolor

Summary:	Color support based on LuaTeX's node attributes
Name:		texlive-luacolor
Version:	57829
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luacolor.sty) = 2024
BuildArch:	noarch

%description
This package implements color support based on LuaTeX's node
attributes.

%files
%doc %{_texmfdistdir}/doc/latex/luacolor
%{_texmfdistdir}/tex/latex/luacolor

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10177 |21cr|texlive-luacomplex-65833-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luacomplex

Summary:	Operations on complex numbers inside LaTeX documents using Lua
Name:		texlive-luacomplex
Version:	65833
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luacomplex.sty) = 2024
BuildArch:	noarch

%description
The luacomplex package is developed to define complex numbers
and perform basic arithmetic on complex numbers in LaTeX. It
also loads the luamathspackage. It provides an easy way to
define complex numbers and perform operations on complex
numbers. There is no particular environment for performing
operations on complex numbers. The package commands can be used
in any environment (including the mathematics environment). It
is written in Lua, and the .tex file is to be compiled with the
LuaLaTeX engine.

%files
%doc %{_texmfdistdir}/doc/lualatex/luacomplex
%{_texmfdistdir}/tex/lualatex/luacomplex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10178 |21cr|texlive-luagcd-65396-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luagcd

Summary:	Computation of gcd of integers inside LaTeX using Lua
Name:		texlive-luagcd
Version:	65396
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luagcd.sty) = 2024
BuildArch:	noarch

%description
Using Lua, the luagcd package is developped to find the
greatest common divisor (gcd) of integers in LaTeX. The package
provides commands to obtain step-by-step computation of gcd of
two integers by using the Euclidean algorithm. In addition, the
package has the command to express gcd of two integers as a
linear combination. The Bezout's Identity can be verified for
any two integers using commands in the package. No particular
environment is required for the use of commands in the package.
It is written in Lua, and the TeX file has to be compiled with
the LuaLaTeX engine.

%files
%doc %{_texmfdistdir}/doc/lualatex/luagcd
%{_texmfdistdir}/tex/lualatex/luagcd

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10179 |21cr|texlive-luaimageembed-50788-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luaimageembed

Summary:	Embed images as base64-encoded strings
Name:		texlive-luaimageembed
Version:	50788
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luaimageembed.sty) = 2024
BuildArch:	noarch

%description
This package allows to embed images directly as base64-encoded
strings into an LuaLaTeX document. This can be useful, e. g. to
package a document with images into a single TeX file, or with
automatically generated graphics.

%files
%doc %{_texmfdistdir}/doc/lualatex/luaimageembed
%{_texmfdistdir}/tex/lualatex/luaimageembed

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10180 |21cr|texlive-luakeys-65533-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luakeys

Summary:	A Lua module for parsing key-value options
Name:		texlive-luakeys
Version:	65533
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luakeys-debug.sty) = 2024
Provides:	tex(luakeys-debug.tex) = 2024
Provides:	tex(luakeys.sty) = 2024
Provides:	tex(luakeys.tex) = 2024
BuildArch:	noarch

%description
This package provides a Lua module that can parse key-value
options like the TeX packages keyval, kvsetkeys, kvoptions,
xkeyval, pgfkeys etc. luakeys, however, accomplishes this task
entirely by using the Lua language and does not rely on TeX.
Therefore this package can only be used with the TeX engine
LuaTeX. Since luakeys uses LPeg, the parsing mechanism should
be pretty robust.

%files
%doc %{_texmfdistdir}/doc/luatex/luakeys
%{_texmfdistdir}/tex/luatex/luakeys

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10181 |21cr|texlive-lualinalg-65834-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lualinalg

Summary:	A linear algebra package for LaTeX
Name:		texlive-lualinalg
Version:	65834
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lualinalg.sty) = 2024
BuildArch:	noarch

%description
The lualinalg package is developed to perform operations on
vectors and matrices defined over the field of real or complex
numbers inside LaTeX documents. It provides flexible ways for
defining and displaying vectors and matrices. No particular
environment of LaTeX is required to use commands in the
package. The package is written in Lua, and tex file is to be
compiled with the LuaLaTeX engine. The time required for
calculations is not an issue while compiling with LuaLaTeX.
There is no need to install Lua on the user's system as TeX
distributions (TeX Live or MikTeX) come bundled with LuaLaTeX.
It may also save users' efforts to copy vectors and matrices
from other software (which may not be in LaTeX-compatible
format) and to use them in a tex file. The vectors and matrices
of reasonable size can be handled with ease. The package can be
modified or extended by writing custom Lua programs.

%files
%doc %{_texmfdistdir}/doc/lualatex/lualinalg
%{_texmfdistdir}/tex/lualatex/lualinalg

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10182 |21cr|texlive-luamathalign-63226-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luamathalign

Summary:	More flexible alignment in amsmath environments
Name:		texlive-luamathalign
Version:	63226
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luamathalign.sty) = 2024
BuildArch:	noarch

%description
Allow aligning mathematical expressions on points where where
direcly using & is not possible, especially in nested macros or
environments.

%files
%doc %{_texmfdistdir}/doc/lualatex/luamathalign
%{_texmfdistdir}/tex/lualatex/luamathalign

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10183 |21cr|texlive-luamaths-65400-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luamaths

Summary:	Provide standard mathematical operations inside LaTeX documents using Lua
Name:		texlive-luamaths
Version:	65400
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luamaths.sty) = 2024
BuildArch:	noarch

%description
The luamaths package is developed to perform standard
mathematical operations inside LaTeX documents using Lua. It
provides an easy way to perform standard mathematical
operations. There is no particular environment in the package
for performing mathematical operations. The package commands
can be used in any environment (including the mathematics
environment). There is no need to install Lua on users system
as TeX distributions (TeX Live or MikTeX) come bundled with
LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/luamaths
%{_texmfdistdir}/tex/lualatex/luamaths

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10184 |21cr|texlive-luamodulartables-65485-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luamodulartables

Summary:	Modular addition and multiplication tables for positive ints
Name:		texlive-luamodulartables
Version:	65485
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luamodulartables.sty) = 2024
BuildArch:	noarch

%description
This package is developed to generate modular addition and
multiplication tables for positive integers. It provides an
easy way to generate modular addition and modular
multiplication tables for positive integers in LaTeX documents.
The commands in the package have optional arguments for the
formatting of tables. These commands can be used in an
environment similar to a tabular or array environment. The
commands can also be used with the booktabs package, which
provides nice formatting of tables in LaTeX. It is written in
Lua, and TeX file is to be compiled with LuaLaTeX engine.

%files
%doc %{_texmfdistdir}/doc/lualatex/luamodulartables
%{_texmfdistdir}/tex/lualatex/luamodulartables

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10185 |21cr|texlive-luaoptions-64870-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luaoptions

Summary:	Option handling for LuaLaTeX packages
Name:		texlive-luaoptions
Version:	64870
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luaoptions.sty) = 2024
BuildArch:	noarch

%description
This LuaLaTeX package provides extensive support for handling
options, on package level and locally. It allows the
declaration of sets of options, along with defaults,
expected/allowed values and limited type checking. These
options can be enforced as package options, changed at any
point during a document, or overwritten locally by optional
macro arguments. It is also possible to instantiate an Options
object as an independent Lua object, without linking it to a
package. Luaoptions can be used to enforce and prepopulate
options, or it can be used to simply handle the parsing of
optional key=value arguments into proper Lua tables.

%files
%doc %{_texmfdistdir}/doc/lualatex/luaoptions
%{_texmfdistdir}/tex/lualatex/luaoptions

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10186 |21cr|texlive-lua-physical-59138-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lua-physical

Summary:	Functions and objects for the computation of physical quantities
Name:		texlive-lua-physical
Version:	59138
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a pure Lua library, which provides functions and
objects for the computation of physical quantities. The package
provides units of the SI and the imperial system. In order to
display the numbers with measurement uncertainties, the package
is able to perform Gaussian error propagation.

%files
%doc %{_texmfdistdir}/doc/lualatex/lua-physical
%{_texmfdistdir}/scripts/lua-physical

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10187 |21cr|texlive-luaprogtable-56113-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luaprogtable

Summary:	Programmable table interface for LuaLaTeX
Name:		texlive-luaprogtable
Version:	56113
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
#Requires:	tex(iftex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(luatexbase.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(luaprogtable.sty) = 2024
BuildArch:	noarch

%description
This package allows you to modify a cell based on the contents
of other cells using LaTeX macros.

%files
%doc %{_texmfdistdir}/doc/lualatex/luaprogtable
%{_texmfdistdir}/tex/lualatex/luaprogtable

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10188 |21cr|texlive-luapstricks-65913-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luapstricks

Summary:	A PSTricks backend for LuaLaTeX
Name:		texlive-luapstricks
Version:	65913
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package enables the use of PSTricks directly in LuaLaTeX
documents, without invoking external programmes, by
implementing a PostScript interpreter in Lua. Therefore it does
not require shell escape to be enabled or special environments,
and instead allows PSTricks to be used exactly like in dvips
based documents.

%files
%doc %{_texmfdistdir}/doc/lualatex/luapstricks
%{_texmfdistdir}/fonts/opentype/public/luapstricks
%{_texmfdistdir}/tex/lualatex/luapstricks

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10189 |21cr|texlive-luaquotes-65652-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luaquotes

Summary:	Smart setting of quotation marks
Name:		texlive-luaquotes
Version:	65652
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luaquotes.sty) = 2024
BuildArch:	noarch

%description
This package automatically generates quotation marks and
punctuation depending on the selected language.

%files
%doc %{_texmfdistdir}/doc/lualatex/luaquotes
%{_texmfdistdir}/tex/lualatex/luaquotes

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10190 |21cr|texlive-luaset-65376-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luaset

Summary:	Set Operations inside LaTeX documents using Lua
Name:		texlive-luaset
Version:	65376
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luaset.sty) = 2024
BuildArch:	noarch

%description
The luaset package is developed to define finite sets and
perform operations on them inside LaTeX documents. There is no
particular environment in the package for performing set
operations. The package commands can be used in any environment
(including the mathematics environment). It is written in Lua,
and the .tex file is to be compiled with the LuaLaTeX engine.
The time required for operations on sets is not an issue while
compiling with the LuaLaTeX engine. There is no need to install
Lua on the users system as TeX distributions (TeX Live or
MikTeX) come bundled with LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/luaset
%{_texmfdistdir}/tex/lualatex/luaset

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10191 |21cr|texlive-luatex85-41456-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luatex85

Summary:	PdfTeX aliases for LuaTeX
Name:		texlive-luatex85
Version:	41456
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-luatex85 = 2024
Provides:	tex(luatex85.sty) = 2024
BuildArch:	noarch

%description
The package provides emulation of pdfTeX primitives for LuaTeX
v0.85+.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/generic/luatex85/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10192 |21cr|texlive-luatruthtable-64508-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luatruthtable

Summary:	Generate truth tables of boolean values in LuaLaTeX
Name:		texlive-luatruthtable
Version:	64508
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luatruthtable.sty) = 2024
BuildArch:	noarch

%description
This package provides an easy way for generating truth tables
of boolean values in LuaLaTeX. The time required for operations
is no issue while compiling with LuaLaTeX. The package supports
nesting of commands for multiple operations. It can be modified
or extended by writing custom lua programs. There is no need to
install lua on users system as TeX distributions (TeX Live or
MikTeX) come bundled with LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/luatruthtable
%{_texmfdistdir}/tex/lualatex/luatruthtable

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10193 |21cr|texlive-lua-typo-66513-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lua-typo

Summary:	Highlighting typographical flaws with LuaLaTeX
Name:		texlive-lua-typo
Version:	66513
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(atveryend.sty)
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(luacode.sty)
Requires:	tex(luacolor.sty)
#Requires:	tex(luatexbase.sty)
Provides:	tex(lua-typo-2021-04-18.sty) = 2024
Provides:	tex(lua-typo.sty) = 2024
BuildArch:	noarch

%description
This package tracks common typographic flaws in LuaLaTeX
documents, especially widows, orphans, hyphenated words split
over two pages, consecutive lines ending with hyphens,
paragraphs ending on too short lines, etc. Customisable colours
are used to highlight these flaws, and the list of pages on
which typographical flaws were found is printed.

%files
%doc %{_texmfdistdir}/doc/lualatex/lua-typo
%{_texmfdistdir}/tex/lualatex/lua-typo

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10194 |21cr|texlive-lua-uca-61023-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lua-uca

Summary:	Unicode Collation Algorithm library for Lua
Name:		texlive-lua-uca
Version:	61023
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The Lua-UCA library provides basic support for Unicode
Collation Algorithm in Lua. It can be used to sort arrays of
strings according to rules of particular languages. It can be
used in other Lua projects that need to sort text in a language
dependent way, like indexing processors, bibliographic
generators, etc

%files
%doc %{_texmfdistdir}/doc/support/lua-uca
%{_texmfdistdir}/scripts/lua-uca

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10195 |21cr|texlive-lua-ul-63469-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lua-ul

Summary:	Underlining for LuaLaTeX
Name:		texlive-lua-ul
Version:	63469
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-luatex
Provides:	tex(docstrip-luacode.sty) = 2024
Provides:	tex(lua-ul.sty) = 2024
BuildArch:	noarch

%description
This package provides underlining, strikethough, and
highlighting using features in LuaLaTeX which avoid the
restrictions imposed by other methods. In particular, kerning
is not affected, the underlined text can use arbitrary
commands, hyphenation works etc. The package requires LuaTeX
version [?] 1.12.0.

%files
%doc %{_texmfdistdir}/doc/lualatex/lua-ul
%{_texmfdistdir}/tex/lualatex/lua-ul

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10196 |21cr|texlive-lua-uni-algos-62204-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lua-uni-algos

Summary:	Unicode algorithms for LuaTeX
Name:		texlive-lua-uni-algos
Version:	62204
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-luatex
Requires:	texlive-unicode-data
BuildArch:	noarch

%description
Lua code working with Unicode data has to deal with quite some
challenges. For example there are many canonically equivalent
sequences which should be treated in the same way, and even
identifying a single character becomes quite different once you
have to deal with all kinds of combining characters, emoji
sequences and syllables in different scripts. Therefore
lua-uni-algos wants to build a collection of small libraries
implementing algorithms to deal with lots of the details in
Unicode, such that authors of LuaTeX packages can focus on
their actual functionality instead of having to fight against
the peculiarities of Unicode. Given that this package provides
Lua modules, it is only useful in Lua(HB)TeX. Additionally, it
expects an up-to-date version of the unicode-data package to be
present. This package is intended for package authors only; no
user-level functionality provided.

%files
%doc %{_texmfdistdir}/doc/luatex/lua-uni-algos
%{_texmfdistdir}/tex/luatex/lua-uni-algos

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10197 |21cr|texlive-luavlna-64142-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname luavlna

Summary:	Prevent line breaks after single letter words, units, or adademic titles
Name:		texlive-luavlna
Version:	64142
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(luavlna.4ht) = 2024
Provides:	tex(luavlna-csplain-langs.lua) = 2024
Provides:	tex(luavlna-langno.lua) = 2024
Provides:	tex(luavlna.lua) = 2024
Provides:	tex(luavlna-predegrees.lua) = 2024
Provides:	tex(luavlna-presi.lua) = 2024
Provides:	tex(luavlna-si.lua) = 2024
Provides:	tex(luavlna.sty) = 2024
Provides:	tex(luavlna-sufdegrees.lua) = 2024
Provides:	tex(luavlna.tex) = 2024
BuildArch:	noarch

%description
In some languages, like Czech or Polish, there should be no
single letter words at the end of a line, according to
typographical norms. This package handles such situations using
LuaTeX's callback mechanism. In doing this, the package can
detect languages used in the text and insert spaces only in
parts of the document where languages requiring this feature
are used. Another feature of this package is the inclusion of
non-breakable space after initials (like in personal names),
after or before academic degrees, and between numbers and
units. The package supports both plain LuaTeX and LuaLaTeX.
BTW: "vlna" is the Czech word for "wave" or "curl" and also
denotes the tilde which, in TeX, is used for "unbreakable
spaces".

%files
%doc %{_texmfdistdir}/doc/luatex/luavlna/
%{_texmfdistdir}/tex/luatex/luavlna/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10198 |21cr|texlive-lua-widow-control-65084-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lua-widow-control

Summary:	Automatically remove widows and orphans from any document
Name:		texlive-lua-widow-control
Version:	65084
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lua-widow-control-2022-02-22.sty) = 2024
Provides:	tex(lua-widow-control.sty) = 2024
Provides:	tex(lua-widow-control.tex) = 2024
BuildArch:	noarch

%description
Unmodified TeX has very few ways of preventing widows and
orphans. In documents with figures, section headings, and
equations, TeX can stretch the vertical glue between items in
order to prevent widows and orphans, but many documents have no
figures or headings. TeX can also shorten the page by 1 line,
but this will give each page a different length which can make
a document look uneven. The typical solution is to
strategically insert \looseness=1, but this requires manual
editing every time that the document is edited.
Lua-widow-control is essentially an automation of the
\looseness method: it uses Lua callbacks to find "stretchy"
paragraphs, then it lengthens them to remove widows and
orphans. Lua-widow-control is compatible with all LuaTeX and
LuaMetaTeX-based formats. All that is required is to load the
package at the start of your document. To load: Plain LuaTeX:
\input lua-widow-control LuaLaTeX:
\usepackage{lua-widow-control} ConTeXt:
\usemodule[lua-widow-control] OpTeX: \load[lua-widow-control]

%files
%doc %{_texmfdistdir}/doc/luatex/lua-widow-control
%{_texmfdistdir}/tex/context/third/lua-widow-control
%{_texmfdistdir}/tex/lualatex/lua-widow-control
%{_texmfdistdir}/tex/luatex/lua-widow-control
%{_texmfdistdir}/tex/optex/lua-widow-control

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10199 |21cr|texlive-lutabulartools-65153-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lutabulartools

Summary:	Some useful LuaLaTeX-based tabular tools
Name:		texlive-lutabulartools
Version:	65153
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(lutabulartools.sty) = 2024
BuildArch:	noarch

%description
This package provides some useful commands for tabular matter.
It uses LuaLaTeX and offers the ability to combine the
facilities of multirow and makecell with an easy to use syntax.
It also adds some enhanced rules for the booktabs package.

%files
%doc %{_texmfdistdir}/doc/luatex/lutabulartools
%{_texmfdistdir}/tex/luatex/lutabulartools

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10200 |21cr|texlive-lxfonts-2.0b-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32354
# category Package
# catalog-ctan /fonts/lxfonts
# catalog-date 2013-12-07 13:47:20 +0100
# catalog-license lppl
# catalog-version 2.0b
Name:		texlive-lxfonts
Version:	2.0b
Release:	6
Summary:	Set of slide fonts based on CM
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/lxfonts
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lxfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lxfonts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lxfonts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle contains the traditional slides fonts revised to be
completely usable both as text fonts and mathematics fonts;
they are fully integrate with the new operators, letters,
symbols and extensible delimiter fonts, as well as with the AMS
fonts, all redone with the same stylistic parameters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/lxfonts/lxfonts.map
%{_texmfdistdir}/fonts/source/public/lxfonts/lamsya.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lamsyb.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lasymbols.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lbigacc.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lbigdel.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lbigop.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lbsymbols.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lcmbsy8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lcmex8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lcmmi8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lcmmib8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lcmsy8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/leclb8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lecli8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/leclo8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/leclq8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lexroman.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lexslides.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/llasy.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/llasy8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/llasyb8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/llcmss8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/llcmssb8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/llcmssi8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/llcmsso8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lmathex.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lmathit.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lmathsy.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lmsam8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lmsbm8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lroman.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/ltclb8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/ltcli8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/ltclo8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/ltclq8.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/ltxsymb.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lxbbase.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lxbbold.mf
%{_texmfdistdir}/fonts/source/public/lxfonts/lxbcaps.mf
%{_texmfdistdir}/fonts/tfm/public/lxfonts/lcmbsy8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/lcmex8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/lcmmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/lcmmib8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/lcmsy8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/leclb8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/lecli8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/leclo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/leclq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/llasy8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/llasyb8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/llcmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/llcmssb8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/llcmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/llcmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/lmsam8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/lmsbm8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/ltclb8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/ltcli8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/ltclo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lxfonts/ltclq8.tfm
%{_texmfdistdir}/fonts/type1/public/lxfonts/lcmbsy8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/lcmex8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/lcmmi8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/lcmmib8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/lcmsy8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/leclb8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/lecli8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/leclo8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/leclq8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/llasy8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/llasyb8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/llcmss8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/llcmssb8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/llcmssi8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/llcmsso8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/lmsam8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/lmsbm8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/ltclb8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/ltcli8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/ltclo8.pfb
%{_texmfdistdir}/fonts/type1/public/lxfonts/ltclq8.pfb
%{_texmfdistdir}/tex/latex/lxfonts/lgrllcmss.fd
%{_texmfdistdir}/tex/latex/lxfonts/lgrllcmtt.fd
%{_texmfdistdir}/tex/latex/lxfonts/lxfonts.sty
%{_texmfdistdir}/tex/latex/lxfonts/omlllcmm.fd
%{_texmfdistdir}/tex/latex/lxfonts/omsllcmsy.fd
%{_texmfdistdir}/tex/latex/lxfonts/omxllcmex.fd
%{_texmfdistdir}/tex/latex/lxfonts/ot1llcmss.fd
%{_texmfdistdir}/tex/latex/lxfonts/ot1llcmtt.fd
%{_texmfdistdir}/tex/latex/lxfonts/t1llcmss.fd
%{_texmfdistdir}/tex/latex/lxfonts/t1llcmtt.fd
%{_texmfdistdir}/tex/latex/lxfonts/ts1llcmss.fd
%{_texmfdistdir}/tex/latex/lxfonts/ulllasy.fd
%{_texmfdistdir}/tex/latex/lxfonts/ulmsa.fd
%{_texmfdistdir}/tex/latex/lxfonts/ulmsb.fd
%doc %{_texmfdistdir}/doc/fonts/lxfonts/LXfonts-demo.pdf
%doc %{_texmfdistdir}/doc/fonts/lxfonts/LXfonts-demo.tex
%doc %{_texmfdistdir}/doc/fonts/lxfonts/LXfonts.readme
%doc %{_texmfdistdir}/doc/fonts/lxfonts/README
%doc %{_texmfdistdir}/doc/fonts/lxfonts/lxfonts.pdf
%doc %{_texmfdistdir}/doc/fonts/lxfonts/manifest.txt
#- source
%doc %{_texmfdistdir}/source/fonts/lxfonts/lxfonts.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10201 |21cr|texlive-macrolist-60139-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname macrolist

Summary:	List operations for LaTeX2e
Name:		texlive-macrolist
Version:	60139
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(macrolist.sty) = 2024
BuildArch:	noarch

%description
This package provides a list data structure and common list
functions such as \macrolistadd, \macrolistremove,
\macrolistforeach, as well as \macrolistremovelast (similar to
C++'s pop_back) and \macrolistjoin (similar to Javascript's
arr.join). Unlike most programming languages, the lists in this
package are 1-indexed, meaning the first element is numbered 1,
the second element numbered 2, and so on.

%files
%doc %{_texmfdistdir}/doc/latex/macrolist
%{_texmfdistdir}/tex/latex/macrolist

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10202 |21cr|texlive-magicnum-52983-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname magicnum

Summary:	Access TeX systems' "magic numbers"
Name:		texlive-magicnum
Version:	52983
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(iftex.sty)
Requires:	tex(infwarerr.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(magicnum.sty) = 2024
BuildArch:	noarch

%description
This package allows access to the various parameter values in
TeX (catcode values), e-TeX (group, if and node types, and
interaction mode), and LuaTeX (pdfliteral mode) by a
hierarchical name system.

%files
%doc %{_texmfdistdir}/doc/latex/magicnum
%{_texmfdistdir}/scripts/magicnum
%{_texmfdistdir}/tex/generic/magicnum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10203 |21cr|texlive-magicwatermark-63656-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname magicwatermark

Summary:	An easy and flexible way to set watermarks
Name:		texlive-magicwatermark
Version:	63656
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(magicwatermark.sty) = 2024
BuildArch:	noarch

%description
This package can flexibly set and clear watermarks. It is based
on everypage and TikZ, encapsulated by LaTeX3. All watermark
content is placed inside a TikZ node in the center of the page.

%files
%doc %{_texmfdistdir}/doc/latex/magicwatermark
%{_texmfdistdir}/tex/latex/magicwatermark

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10204 |21cr|texlive-magra-57373-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname magra

Summary:	The Magra font face with support for LaTeX and pdfLaTeX
Name:		texlive-magra
Version:	57373
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(a_dip3eq.enc) = 2024
Provides:	tex(a_jqnft2.enc) = 2024
Provides:	tex(a_radyzq.enc) = 2024
Provides:	tex(a_va7yvq.enc) = 2024
Provides:	tex(LY1Magra-TLF.fd) = 2024
Provides:	tex(Magra.map) = 2024
Provides:	tex(Magra.sty) = 2024
Provides:	tex(OT1Magra-TLF.fd) = 2024
Provides:	tex(T1Magra-TLF.fd) = 2024
Provides:	tex(TS1Magra-TLF.fd) = 2024
BuildArch:	noarch

%description
This package provides the Magra family of fonts designed by
FontFuror, with support for LaTeX and pdfLaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/magra
%{_texmfdistdir}/fonts/enc/dvips/magra
%{_texmfdistdir}/fonts/map/dvips/magra
%{_texmfdistdir}/fonts/tfm/public/magra
%{_texmfdistdir}/fonts/type1/public/magra
%{_texmfdistdir}/fonts/vf/public/magra
%{_texmfdistdir}/tex/latex/magra

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10205 |21cr|texlive-mahjong-58896-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mahjong

Summary:	Typeset Mahjong Tiles using MPSZ Notation
Name:		texlive-mahjong
Version:	58896
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(stackengine.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(mahjong.sty) = 2024
BuildArch:	noarch

%description
The mahjong package provides a LaTeX2e and LaTeX3 interface for
typesetting mahjong tiles using an extended version of MPSZ
algebraic notation. Features include spaces, rotated, blank,
and concealed tiles, as well as red fives. The size of the
mahjong tiles can be controlled using a package option and an
optional argument of \mahjong. It is primarily aimed at Riichi
(aka. Japanese) Mahjong but can be used to typeset any style of
mahjong.

%files
%doc %{_texmfdistdir}/doc/latex/mahjong
%{_texmfdistdir}/tex/latex/mahjong

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10206 |21cr|texlive-make4ht-20200122-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-make4ht
Version:	20200122
Release:	1
Summary:	A build system for tex4ht
Group:		Publishing
URL:		https://ctan.org/pkg/make4ht
License:	lppl1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/make4ht.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/make4ht.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
make4ht is a simple build system for tex4ht, a TeX to XML 
converter. It provides a command line tool that drives the 
conversion process. It also provides a library which can be 
used to create customized conversion tools.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/*
%{_bindir}/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
ln -s ../../%{_texmfdistdir}/scripts/make4ht/make4ht make4ht
popd
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10207 |21cr|texlive-makebase-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-makebase
Version:	20160624
Release:	1
Summary:	Typeset counters in a different base
Group:		Publishing
URL:		https://ctan.org/pkg/makebase
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebase.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebase.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package typesets a LaTeX counter such as page in an
arbitrary base (default 16). It does not change font or
typeface. The package extends the functionality of the existing
hex LaTeX 2.09 package and provides documentation. However, the
author is not a mathematician, and suggestions for rewriting
the code are welcomed. Warning: this is alpha software and may
contain bugs. Please report problems to the author.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10208 |21cr|texlive-makecookbook-20181206-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-makecookbook
Version:	20181206
Release:	1
Summary:	Make a Cookbook
Group:		Publishing
URL:		https://ctan.org/pkg/makecookbook
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecookbook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecookbook.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The makecookbook bundle contains the files needed to create a
nice quality family cookbook in a form ready to submit to most
print-on-demand companies. Modifiable choices have been made
regarding standard book features such as trim size, margins,
headers/footers, chapter heading formatting, front matter
(copyright page, table of contents, etc.) and back matter
(index). Commands and environments have been created to format
the food stories and recipes. The user will need to: supply
their own food stories and recipes(!), and install the needed
fonts. We assume a LuaTeX compile. Please note that no new
document class or package is included here. Rather, we provide
a modifiable preamble and a small number of other files that,
together, fully support creation of all of the internal pages
of a cookbook (i.e., everything except the cover art).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10209 |21cr|texlive-makelabels-60255-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname makelabels

Summary:	Add a '\makelabels' feature to KOMA-Script letter classes and package
Name:		texlive-makelabels
Version:	60255
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The standard letter class letter has a label feature. You can
activate it using \makelabels. While in Germany window
envelopes are common, printing labels is not common, and
scrlttr2 has never supported label printing. Using
makelabels.lco does implement a \makelabels feature similar to
the standard letter classes. Currently there are (almost) no
configuration features for makelabels.lco. But you may use the
envlab package after loading makelabels.lco to get various
configuration features.

%files
%doc %{_texmfdistdir}/doc/latex/makelabels
%{_texmfdistdir}/tex/latex/makelabels

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10210 |21cr|texlive-makerobust-52811-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname makerobust

Summary:	Making a macro robust (legacy package)
Name:		texlive-makerobust
Version:	52811
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(makerobust.sty) = 2024
BuildArch:	noarch

%description
Heiko Oberdiek's makerobust package defined a command with name
\MakeRobustCommand that could be used to make fragile commands
robust. The LaTeX format has, since 2015, included a command
\MakeRobust with the same syntax and behaviour. Also by 2019,
almost all commands in LaTeX that may be used in a moving
argument are already robust. This package is now just a simple
one-liner defining the name \MakeRobustCommand as an alias for
\MakeRobust. This package should not be used in any new
documents.

%files
%doc %{_texmfdistdir}/doc/latex/makerobust
%{_texmfdistdir}/tex/latex/makerobust

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10211 |21cr|texlive-mandi-2.7.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mandi
Version:	2.7.5
Release:	1
Summary:	Macros for introductory physics and astronomy
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mandi
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mandi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mandi.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mandi.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains commands for students and teachers of
introductory physics. Commands for physical quantities
intelligently handle SI units so the user need not do so. There
are other features that should make LaTeX easy for introductory
physics students.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mandi
%doc %{_texmfdistdir}/doc/latex/mandi
#- source
%doc %{_texmfdistdir}/source/latex/mandi

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10212 |21cr|texlive-marathi-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname marathi

Summary:	Typeset Marathi language using XeLaTeX or LuaLaTeX
Name:		texlive-marathi
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(iftex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pgfkeys.sty)
#Requires:	tex(setspace.sty)
Provides:	tex(marathi.sty) = 2024
Provides:	tex(namuna-article.tex) = 2024
Provides:	tex(namuna-beamer.tex) = 2024
Provides:	tex(namuna-book.tex) = 2024
Provides:	tex(namuna-letter.tex) = 2024
Provides:	tex(namuna-para.tex) = 2024
Provides:	tex(namuna-report.tex) = 2024
BuildArch:	noarch

%description
luaa-laattek v jhii-laattek hyaaNcyaash mraatthiicaa sulbh
vaapr krnnyaasaatthii. laattek-vriil mraatthiicyaa
sthaanikiikrnnaace kaam hyaa aajnyaasNcaamaarpht kele jaaiil.
expex v blindtext hyaa aajnyaasNcaaNce sthaanikiikrnn tuurtaas
hyaa aajnyaasNcaamaarpht purvle jaat aahe. For conveniently
typesetting Marathi language with LuaLaTeX and XeLaTeX. This
package will provide localizations needed for the Marathi
language. Currently the package localizes package blindtext and
package expex.

%files
%doc %{_texmfdistdir}/doc/latex/marathi
%{_texmfdistdir}/tex/latex/marathi

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10213 |21cr|texlive-marcellus-64451-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname marcellus

Summary:	Marcellus fonts with LaTeX support
Name:		texlive-marcellus
Version:	64451
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LY1Mrcls-LF.fd) = 2024
Provides:	tex(LY1Mrcls-Sup.fd) = 2024
Provides:	tex(marcellus.map) = 2024
Provides:	tex(marcellus.sty) = 2024
Provides:	tex(mrcls_37huou.enc) = 2024
Provides:	tex(mrcls_5az7w7.enc) = 2024
Provides:	tex(mrcls_cvodtw.enc) = 2024
Provides:	tex(mrcls_rfafok.enc) = 2024
Provides:	tex(mrcls_rwr7kk.enc) = 2024
Provides:	tex(mrcls_rzkwvt.enc) = 2024
Provides:	tex(mrcls_stzmvz.enc) = 2024
Provides:	tex(OT1Mrcls-LF.fd) = 2024
Provides:	tex(OT1Mrcls-Sup.fd) = 2024
Provides:	tex(T1Mrcls-LF.fd) = 2024
Provides:	tex(T1Mrcls-Sup.fd) = 2024
Provides:	tex(TS1Mrcls-LF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Marcellus family of fonts, designed by Brian J.
Bonislawsky. Marcellus is a flared-serif family, inspired by
classic Roman inscription letterforms. There is currently just
a regular weight and small-caps. The regular weight will be
silently substituted for bold.

%files
%doc %{_texmfdistdir}/doc/fonts/marcellus
%{_texmfdistdir}/fonts/enc/dvips/marcellus
%{_texmfdistdir}/fonts/map/dvips/marcellus
%{_texmfdistdir}/fonts/tfm/public/marcellus
%{_texmfdistdir}/fonts/truetype/public/marcellus
%{_texmfdistdir}/fonts/type1/public/marcellus
%{_texmfdistdir}/fonts/vf/public/marcellus
%{_texmfdistdir}/tex/latex/marcellus/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10214 |21cr|texlive-margbib-1.0c-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/margbib
# catalog-date 2008-09-23 13:30:27 +0200
# catalog-license gpl
# catalog-version 1.0c
Name:		texlive-margbib
Version:	1.0c
Release:	8
Summary:	Display bibitem tags in the margins
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/margbib
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/margbib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/margbib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/margbib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package redefines the 'thebibliography' environment to
place the citation key into the margin.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/margbib/margbib.sty
%doc %{_texmfdistdir}/doc/latex/margbib/margbib.pdf
#- source
%doc %{_texmfdistdir}/source/latex/margbib/margbib.dtx
%doc %{_texmfdistdir}/source/latex/margbib/margbib.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10215 |21cr|texlive-matapli-62632-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname matapli

Summary:	Class for the french journal "MATAPLI"
Name:		texlive-matapli
Version:	62632
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(matapli.cls) = 2024
BuildArch:	noarch

%description
This is a class for the french journal "MATAPLI" of the Societe
de Mathematiques Appliquees et Industrielles (SMAI).

%files
%doc %{_texmfdistdir}/doc/latex/matapli
%{_texmfdistdir}/tex/latex/matapli

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10216 |21cr|texlive-match_parens-1.43-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33682
# category Package
# catalog-ctan /support/match_parens
# catalog-date 2012-04-05 17:28:29 +0200
# catalog-license gpl
# catalog-version 1.4
Name:		texlive-match_parens
Version:	1.43
Release:	2
Summary:	Easily detect mismatched parens
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/match_parens
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/match_parens.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/match_parens.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-match_parens.bin = %{EVRD}

%description
Mismatches of parentheses, braces, (angle) brackets, especially
in TeX sources which may be rich in those, may be difficult to
trace. This little script helps you by writing your text to
standard output, after adding a left margin to your text, which
will normally be almost empty, but will clearly show any
mismatches.

#-----------------------------------------------------------------------
%files
%{_bindir}/match_parens
%{_texmfdistdir}/scripts/match_parens/match_parens
%doc %{_texmfdistdir}/doc/support/match_parens/README
%doc %{_texmfdistdir}/doc/support/match_parens/match_parens.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/match_parens/match_parens match_parens
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10217 |21cr|texlive-mathabx-type1-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21129
# category Package
# catalog-ctan /fonts/ps-type1/mathabx
# catalog-date 2011-01-19 07:58:01 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-mathabx-type1
Version:	20190228
Release:	1
Summary:	Outline version of the mathabx fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ps-type1/mathabx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathabx-type1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathabx-type1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-mathabx

%description
This is an Adobe Type 1 outline version of the mathabx fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/mathabx-type1/mathabx.map
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/matha10.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/matha12.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/matha5.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/matha6.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/matha7.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/matha8.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/matha9.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathastrotest10.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathb10.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathb12.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathb5.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathb6.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathb7.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathb8.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathb9.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathc10.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathu10.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathux10.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathx10.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathx12.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathx5.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathx6.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathx7.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathx8.pfb
%{_texmfdistdir}/fonts/type1/public/mathabx-type1/mathx9.pfb
%doc %{_texmfdistdir}/doc/fonts/mathabx-type1/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10218 |21cr|texlive-mathalpha-61089-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mathalpha

Summary:	General package for loading maths alphabets in LaTeX
Name:		texlive-mathalpha
Version:	61089
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	texlive-mathalfa = 8:svn51179
Provides:	tex-mathalfa = 2024
Provides:	tex(mathalfa.sty) = 2024
Provides:	tex-mathalpha = 2024
Provides:	tex(mathalpha.sty) = 2024
BuildArch:	noarch

%description
Package mathalfa was renamed to mathalpha. For backward
compatibility the old name will continue to be recognized in
LaTeX documents. The package provides means of loading maths
alphabets (such as are normally addressed via macros \mathcal,
\mathbb, \mathfrak and \mathscr), offering various features
normally missing in existing packages for this job.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/mathalpha/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10219 |21cr|texlive-mathcommand-20191206-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mathcommand
Version:	20191206
Release:	1
Summary:	\newcommand-like commands for defining math macros
Group:		Publishing
URL:		https://ctan.org/pkg/mathcommand
License:	LPPL1.2
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/mathcommand.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/mathcommand.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides functionalities for defining macros that
have different behaviors depending on whether in math or text
mode, that absorb Primes, Indices and Exponents (PIE) as extra
parameters usable in the code; and it offers some iteration
facilities for defining macros with similar code. The primary
objective of this package is to be used together with the
knowledge package for a proper handling of mathematical
notations.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10220 |21cr|texlive-mathcomp-0.1f-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mathcomp
# catalog-date 2007-01-09 18:22:13 +0100
# catalog-license lppl
# catalog-version 0.1f
Name:		texlive-mathcomp
Version:	0.1f
Release:	8
Summary:	Text symbols in maths mode
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mathcomp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathcomp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathcomp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathcomp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package which provides access to some interesting characters
of the Text Companion fonts (TS1 encoding) in maths mode.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mathcomp/mathcomp.sty
%doc %{_texmfdistdir}/doc/latex/mathcomp/mathcomp.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mathcomp/mathcomp.dtx
%doc %{_texmfdistdir}/source/latex/mathcomp/mathcomp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10221 |21cr|texlive-mathdesign-2.31-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31639
# category Package
# catalog-ctan /fonts/mathdesign
# catalog-date 2013-08-30 00:42:45 +0200
# catalog-license gpl
# catalog-version 2.31
Name:		texlive-mathdesign
Version:	2.31
Release:	11
Summary:	Mathematical fonts to fit with particular text fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/mathdesign
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathdesign.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathdesign.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
The Math Design project offers free mathematical fonts that
match with existing text fonts. To date, three free font
families are available: Adobe Utopia, URW Garamond and
Bitstream Charter. Three commercial fonts are also supported:
Adobe Garamond Pro, Adobe UtopiaStd and ITC Charter. Mathdesign
covers the whole LaTeX glyph set, including AMS symbols and
some extra. Both roman and bold versions of these symbols can
be used. Moreover you can choose between three greek fonts (two
of them created by the Greek Font Society).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/mathdesign/config.mdbch
%{_texmfdistdir}/dvips/mathdesign/config.mdici
%{_texmfdistdir}/dvips/mathdesign/config.mdpgd
%{_texmfdistdir}/dvips/mathdesign/config.mdpus
%{_texmfdistdir}/dvips/mathdesign/config.mdput
%{_texmfdistdir}/dvips/mathdesign/config.mdugm
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_2dncez.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_2rwgaw.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_42s2zl.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_45o73x.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_4b5i6w.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_57soyv.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_csqf63.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_e65dz6.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_g2masa.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_g47ck7.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_ipzj2o.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_kld4uc.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_mdpn2k.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_n2elaj.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_oxfbe4.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_py5znv.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_qnfjtt.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_qzg4u4.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_r2nxhw.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_rl4tn2.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_rxz3ga.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_telfo7.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_uwwzqd.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/a_yezm6g.enc
%{_texmfdistdir}/fonts/enc/dvips/mathdesign/md8x.enc
%{_texmfdistdir}/fonts/map/dvips/mathdesign/mdbch.map
%{_texmfdistdir}/fonts/map/dvips/mathdesign/mdgreek.map
%{_texmfdistdir}/fonts/map/dvips/mathdesign/mdici.map
%{_texmfdistdir}/fonts/map/dvips/mathdesign/mdpgd.map
%{_texmfdistdir}/fonts/map/dvips/mathdesign/mdpus.map
%{_texmfdistdir}/fonts/map/dvips/mathdesign/mdput.map
%{_texmfdistdir}/fonts/map/dvips/mathdesign/mdugm.map
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/bchb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/bchbc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/bchbc8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/bchbi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/bchr8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/bchrc8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/bchrc8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/bchri8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chb7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chb8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbc8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbi8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbo7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chbo8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chboc8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chr8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chrc8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chree.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chri8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chro7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chro8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chro8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/md-chroc8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchb7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbo7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchbofc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchrfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchrifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchro7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchro8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdbch/mdbchrofc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/md-grbb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/md-grbbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/md-grbr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/md-grbri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/md-grdb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/md-grdbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/md-grdr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/md-grdri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrbCb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrbCbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrbCr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrbCri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrbb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrbbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrbr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrbri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrdCb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrdCbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrdCri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrdb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrdbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrdr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrdrC7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdgreek/mdgrdri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cib7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cib7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cib7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cib7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cib8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cib8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cibee.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cibi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cibi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cibi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cibi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cibma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cibmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cir7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cir7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cir7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cir7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cir8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cir8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-ciree.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-ciri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-ciri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-ciri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-ciri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cirma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/md-cirmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicib7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicib7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicib7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicib7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicib8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicib8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibic8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicibmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicic8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicicc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicicc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicicfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicici8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicici8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicicic8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicicic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicicifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicir7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicir7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicir7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicir7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicir8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicir8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicirc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicirc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicirfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdiciri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdiciri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdiciri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdiciri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdiciric8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdiciric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicirifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicirma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdicirmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcib7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcib7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcib8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcibc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcibi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcibi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcibi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcibic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcic7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcic7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcicc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcici7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcici7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcici8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcicic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcir7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcir7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcir8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwcirc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwciri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwciri7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwciri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdwciric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcib7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcib7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcib8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcibc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcibi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcibi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcibi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcibic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcic7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcic7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcicc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcici7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcici7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcici8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcicic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcir7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcir7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcir8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxcirc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxciri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxciri7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxciri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdici/mdxciric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdree.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gds7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gds7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gds7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gds7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gds8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gds8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdsi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdsi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdsi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdsi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdsma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/md-gdsmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdbc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdbfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdbi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdbic8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdbic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdbifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdrc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdrfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdric8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdrifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgds7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgds7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgds7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgds7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgds8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgds8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsic8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdpgdsmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdbi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdbic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdri7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgds7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgds7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgds8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdsi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdsi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdsi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdwgdsic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdbi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdbi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdbic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdri7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgds7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgds7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgds8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdsc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdsi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdsi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdsi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpgd/mdxgdsic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7t5.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7t6.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7t7.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7t8.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7t9.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usree.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri7t5.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri7t6.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri7t7.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri7t8.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri7t9.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-usrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-uss7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-uss7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-uss7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-uss7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-uss8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-uss8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-ussi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-ussi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-ussi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-ussi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-ussma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/md-ussmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusbc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusbfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusbi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusbic8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusbic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusbifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusrc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusrfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusric8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusrifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpusrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpuss7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpuss7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpuss7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpuss7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpuss8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpuss8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussc8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussic8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdpussmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusbi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusbic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusri7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwusric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwuss7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwuss7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwuss8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwussc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwussi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwussi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwussi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdwussic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusbi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusbi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusbic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusri7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxusric8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxuss7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxuss7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxuss8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxussc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxussi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxussi7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxussi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdpus/mdxussic8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utb7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utb8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbee.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbi8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbo7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utbo8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utr8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utree.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utri8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utro7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utro8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/md-utro8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputb7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputb8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbo7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputbofc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputrc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputrfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputrifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputro7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputro8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/mdputrofc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/putb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/putb8x.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/putbi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/putr8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/putr8x.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdput/putri8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmm7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmm7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmm7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmm7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmm8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmm8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmm8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmi8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmo7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmmo8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmr8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmree.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmri8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmro7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmro8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/md-gmro8y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmm7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmm7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmm7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmm7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmm8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmm8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmi7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmi8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmo7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmo8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmmofc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmr7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmr8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmr8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmrfc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmri7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmri8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmri8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmrifc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmrma.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmrmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmro7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmro8c.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmro8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/mdugmrofc8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/ugmm8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/ugmmi8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/ugmr8a.tfm
%{_texmfdistdir}/fonts/tfm/public/mathdesign/mdugm/ugmri8a.tfm
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chb7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chb7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chb7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chb7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chb8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chb8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chbi7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chbi7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chbi8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chbi8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chbma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chbmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chr7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chr7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chr7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chr7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chr8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chr8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chree.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chri7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chri7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chri8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chri8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chrma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdbch/md-chrmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/UtopiaStd-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cib7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cib7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cib7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cib7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cib8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cib8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cibee.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cibi7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cibi7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cibi8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cibi8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cibma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cibmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cir7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cir7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cir7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cir7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cir8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cir8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-ciree.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-ciri7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-ciri7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-ciri8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-ciri8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cirma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdici/md-cirmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdr7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdr7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdr7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdr7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdr8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdr8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdree.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdri7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdri7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdri8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdri8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdrma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdrmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gds7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gds7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gds7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gds7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gds8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gds8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdsi7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdsi7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdsi8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdsi8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdsma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-gdsmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpgd/md-utrma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7t5.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7t6.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7t7.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7t8.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7t9.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usr8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usree.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri7t5.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri7t6.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri7t7.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri7t8.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri7t9.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usri8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usrma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-usrmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-uss7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-uss7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-uss7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-uss7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-uss8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-uss8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-ussi7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-ussi7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-ussi8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-ussi8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-ussma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdpus/md-ussmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utb7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utb7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utb7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utb7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utb8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utb8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utbee.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utbi7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utbi7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utbi8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utbi8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utbma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utbmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utr7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utr7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utr7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utr7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utr8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utr8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utree.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utri7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utri7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utri8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utri8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utrma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdput/md-utrmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmm7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmm7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmm7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmm7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmm8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmm8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmmi7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmmi7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmmi8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmmi8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmmma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmmmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmr7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmr7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmr7v.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmr7y.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmr8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmr8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmree.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmri7m.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmri7t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmri8c.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmri8t.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmrma.pfb
%{_texmfdistdir}/fonts/type1/public/mathdesign/mdugm/md-gmrmb.pfb
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchb7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchb7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchb7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchb7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchb8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchb8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbi7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbi8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbo7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbo8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbo8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchbofc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchr7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchr7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchr7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchr8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchr8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchrc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchrfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchri7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchri8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchrifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchrma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchrmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchro7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchro8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchro8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdbch/mdbchrofc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrbCb7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrbCbi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrbCr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrbCri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrbb7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrbbi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrbr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrbri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrdCb7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrdCbi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrdCri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrdb7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrdbi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrdr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrdrC7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdgreek/mdgrdri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicib7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicib7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicib7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicib7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicib8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicib8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibi7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibi8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibic8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibiu7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicibui7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicic8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicicc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicicc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicicfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicici8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicici8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicicic8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicicic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicicifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicir7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicir7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicir7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicir7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicir8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicir8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicirc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicirc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicirfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdiciri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdiciri7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdiciri8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdiciri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdiciric8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdiciric8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicirifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdiciriu7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicirma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicirmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdicirui7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcib7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcib8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcibc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcibi7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcibi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcibic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcic7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcicc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcici7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcici8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcicic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcir7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcir8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxcirc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxciri7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxciri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdici/mdxciric8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdb8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdb8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdbc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdbc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdbfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdbi8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdbi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdbic8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdbic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdbifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdr7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdr7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdr7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdr8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdr8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdrc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdrc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdrfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdri7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdri8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdric8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdric8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdrifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdrma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdrmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgds7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgds7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgds7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgds7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgds8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgds8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsi7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsi8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsic8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdpgdsmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdb7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdb8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdbc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdbi7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdbi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdbic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdr7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdr8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdrc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdri7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdric8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgds7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgds8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdsc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdsi7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdsi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpgd/mdxgdsic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusb8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusb8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusbc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusbc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusbfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusbi8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusbi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusbic8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusbic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusbifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusr7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusr7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusr7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusr8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusr8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusrc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusrc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusrfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusri7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusri8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusric8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusric8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusrifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusrma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpusrmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpuss7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpuss7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpuss7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpuss7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpuss8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpuss8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussc8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussi7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussi8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussic8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdpussmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusb7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusb8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusbc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusbi7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusbi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusbic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusr7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusr8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusrc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusri7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxusric8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxuss7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxuss8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxussc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxussi7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxussi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdpus/mdxussic8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputb7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputb7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputb7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputb7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputb8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputb8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbi7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbi8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbo7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbo8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbo8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputbofc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputr7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputr7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputr7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputr8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputr8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputrc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputrfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputri7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputri8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputrifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputrma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputrmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputro7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputro8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputro8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdput/mdputrofc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmm7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmm7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmm7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmm7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmm8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmm8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmi7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmi7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmi8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmi8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmo7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmo8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmo8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmmofc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmr7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmr7v.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmr7y.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmr8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmr8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmrfc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmri7m.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmri7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmri8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmri8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmrifc8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmrma.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmrmb.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmro7t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmro8c.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmro8t.vf
%{_texmfdistdir}/fonts/vf/public/mathdesign/mdugm/mdugmrofc8t.vf
%{_texmfdistdir}/tex/latex/mathdesign/mathdesign.sty
%{_texmfdistdir}/tex/latex/mathdesign/mdacmr.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/mdamdbch.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/mdbch.cfg
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/mdbch.sty
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/mdbmdbch.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/omlmdbch.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/omsmdbch.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/omxmdbch.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/ot1mdbch.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/t1mdbch.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbch/ts1mdbch.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdbcmr.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdfont.def
%{_texmfdistdir}/tex/latex/mathdesign/mdici/mdamdici.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdici/mdbmdici.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdici/mdici.cfg
%{_texmfdistdir}/tex/latex/mathdesign/mdici/mdici.sty
%{_texmfdistdir}/tex/latex/mathdesign/mdici/omlmdici.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdici/omsmdici.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdici/omxmdici.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdici/ot1mdici.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdici/t1mdici.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdici/ts1mdici.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/mdamdpgd.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/mdbmdpgd.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/mdpgd.cfg
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/mdpgd.sty
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/omlmdpgd.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/omsmdpgd.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/omxmdpgd.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/ot1mdpgd.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/t1mdpgd.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpgd/ts1mdpgd.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/mdamdpus.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/mdbmdpus.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/mdpus.cfg
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/mdpus.sty
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/omlmdpus.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/omsmdpus.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/omxmdpus.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/ot1mdpus.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/t1mdpus.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdpus/ts1mdpus.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdput/mdamdput.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdput/mdbmdput.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdput/mdput.cfg
%{_texmfdistdir}/tex/latex/mathdesign/mdput/mdput.sty
%{_texmfdistdir}/tex/latex/mathdesign/mdput/omlmdput.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdput/omsmdput.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdput/omxmdput.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdput/ot1mdput.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdput/t1mdput.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdput/ts1mdput.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdsffont.def
%{_texmfdistdir}/tex/latex/mathdesign/mdttfont.def
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/mdamdugm.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/mdbmdugm.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/mdugm.cfg
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/mdugm.sty
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/omlmdugm.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/omsmdugm.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/omxmdugm.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/ot1mdugm.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/t1mdugm.fd
%{_texmfdistdir}/tex/latex/mathdesign/mdugm/ts1mdugm.fd
%{_texmfdistdir}/tex/latex/mathdesign/omlmdgrb.fd
%{_texmfdistdir}/tex/latex/mathdesign/omlmdgrbc.fd
%{_texmfdistdir}/tex/latex/mathdesign/omlmdgrd.fd
%{_texmfdistdir}/tex/latex/mathdesign/omlmdgrdc.fd
%_texmf_updmap_d/mathdesign
%doc %{_texmfdistdir}/doc/fonts/mathdesign/MD-Adobe-Adobe-Garamond-Pro-example.tex
%doc %{_texmfdistdir}/doc/fonts/mathdesign/MD-Adobe-Utopia-Std-example.tex
%doc %{_texmfdistdir}/doc/fonts/mathdesign/MD-Adobe-Utopia-example.pdf
%doc %{_texmfdistdir}/doc/fonts/mathdesign/MD-Adobe-Utopia-example.tex
%doc %{_texmfdistdir}/doc/fonts/mathdesign/MD-Bitstream-Bitstream-Charter-example.pdf
%doc %{_texmfdistdir}/doc/fonts/mathdesign/MD-Bitstream-Bitstream-Charter-example.tex
%doc %{_texmfdistdir}/doc/fonts/mathdesign/MD-itc-Charter-ITC-Std-example.tex
%doc %{_texmfdistdir}/doc/fonts/mathdesign/MD-urw-GaramondNo8-example.tex
%doc %{_texmfdistdir}/doc/fonts/mathdesign/README
%doc %{_texmfdistdir}/doc/fonts/mathdesign/mathdesign-doc.pdf
%doc %{_texmfdistdir}/doc/fonts/mathdesign/mathdesign-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/mathdesign <<EOF
Map mdbch.map
Map mdgreek.map
Map mdici.map
Map mdpgd.map
Map mdpus.map
Map mdput.map
Map mdugm.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10222 |21cr|texlive-mathdots-0.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mathdots
Version:	0.9
Release:	2
Summary:	Commands to produce dots in math that respect font size
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/mathdots
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathdots.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathdots.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathdots.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Redefines \ddots and \vdots, and defines \iddots. The dots
produced by \iddots slant in the opposite direction to \ddots.
All the commands are designed to change size appropriately in
scripts, as well as in response to LaTeX size changing
commands. The commands may also be used in plain TeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/mathdots
%doc %{_texmfdistdir}/doc/generic/mathdots
#- source
%doc %{_texmfdistdir}/source/generic/mathdots

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10223 |21cr|texlive-mathfixs-20181230-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mathfixs
Version:	20181230
Release:	1
Summary:	Fix various layout issues in math mode
Group:		Publishing
URL:		https://ctan.org/pkg/mathfixs
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/mathfixs.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/mathfixs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a LaTeX2e package to fix some odd behaviour in math
mode such as spacing around fractions and roots, math symbols
within bold text as well as capital Greek letters. It also adds
some related macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10224 |21cr|texlive-mathlig-54244-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mathlig

Summary:	Define maths "ligatures"
Name:		texlive-mathlig
Version:	54244
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(mathlig.tex) = 2024
BuildArch:	noarch

%description
The package defines character sequences that "behave like"
ligatures, in maths mode. Example definitions (chosen to show
the package's flexibility, are: \mathlig{->}{\rightarrow}
\mathlig{<-}{\leftarrow} \mathlig{<->}{\leftrightarrow}

%files
%{_texmfdistdir}/tex/generic/mathlig

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10225 |21cr|texlive-mathpartir-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# texlive-mathpartir test project
# project name: 
%define TEXTPKG mathpartir
Name:       texlive-%{TEXTPKG}
Version:	1.3.2
Release:	1
Summary:	Correct placement of accents in sans-serif maths
Group:		Publishing
URL:		 http://www.ctan.org/tex-archive/macros/latex/contrib/%{TEXTPKG}
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for typesetting math formulas in
mixed horizontal and vertical mode, automatically as best fit.
It provides an environment mathpar that behaves much as a loose
centered paragraph where words are math formulas, and spaces
between them are larger and adjustable. It also provides a
macro \inferrule for typeseting fractions where both the
numerator and denominator may be sequences of formulas that
will be also typeset in a similar way. It can typically be used
for typeseting sets of type inference rules or typing
derivations. A macro inferrule for typesetting type inference
rules.

%files
%{_texmfdistdir}/tex/latex/%{TEXTPKG}
%doc %{_texmfdistdir}/doc/latex/%{TEXTPKG}
%{_texmfdistdir}/source/latex/%{TEXTPKG}


%prep
%setup -c -a0 -a1 -a2


%build


%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10226 |21cr|texlive-mathpunctspace-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# texlive-mathpunctspace test project
# project name: 
%define TEXTPKG mathpunctspace
Name:       texlive-%{TEXTPKG}
Version:	1.1
Release:	1
Summary:	A mechanism to control space after comma and semicolon in expressions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/%{TEXTPKG}
License:	bsd2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
%description
This package provides a mechanism to control the space after
commas and semicolons in mathematical expressions.
%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi 
	
%files
%{_texmfdistdir}/tex/latex/%{TEXTPKG}
%doc %{_texmfdistdir}/doc/latex/%{TEXTPKG}

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10227 |21cr|texlive-mathsemantics-63241-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mathsemantics

Summary:	Semantic math commands in LaTeX
Name:		texlive-mathsemantics
Version:	63241
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(mathsemantics-abbreviations.sty) = 2024
Provides:	tex(mathsemantics-commons.sty) = 2024
Provides:	tex(mathsemantics-manifolds.sty) = 2024
Provides:	tex(mathsemantics-names.sty) = 2024
Provides:	tex(mathsemantics-optimization.sty) = 2024
Provides:	tex(mathsemantics-semantic.sty) = 2024
Provides:	tex(mathsemantics.sty) = 2024
Provides:	tex(mathsemantics-syntax.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides both syntactic and semantic helpers
to typeset mathematics in LaTeX. The syntactic layer eases
typesetting of formulae in general, while the semantic layer
provides commands like \inner{x}{y} to unify typesetting of
inner products. These not only unify typesetting of math
formulae but also allow to easily adapt notation if a user
prefers to. The semantic layer is split into topics.

%files
%doc %{_texmfdistdir}/doc/latex/mathsemantics
%{_texmfdistdir}/tex/latex/mathsemantics

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10228 |21cr|texlive-mathtools-20220701-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mathtools
Version:	20220701
Release:	1
Summary:	doc files of mathtools
Group:		Publishing
URL:		https://ctan.org/pkg/mathtools
License:	LPPL1.3c
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/mathtools.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/mathtools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Mathtools provides a series of packages designed to enhance the
appearance of documents containing a lot of mathematics. The
main backbone is amsmath, so those unfamiliar with this
required part of the LaTeX system will probably not find the
packages very useful. Mathtools provides many useful tools for
mathematical typesetting. It is based on amsmath and fixes
various deficiencies of amsmath and standard LaTeX. It
provides: Extensible symbols, such as brackets, arrows,
harpoons, etc.; Various symbols such as \coloneqq (:=); Easy
creation of new tag forms; Showing equation numbers only for
referenced equations; Extensible arrows, harpoons and
hookarrows; Starred versions of the amsmath matrix environments
for specifying the column alignment; More building blocks:
lmultlined, cases-like environments, new gathered environments;
Maths versions of \makebox, \llap, \rlap etc.; Cramped math
styles; and more... Mathtools requires mhsetup.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10229 |21cr|texlive-matlab-prettifier-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-matlab-prettifier
Version:	0.3
Release:	1
Summary:	Implements prettyprinting of Matlab source code in LaTex etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/matlab-prettifier
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matlab-prettifier.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matlab-prettifier.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/matlab-prettifier.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Built on top of the listings package, the matlab-prettifier package allows
you to effortlessly prettyprint Matlab source code in documents typeset with
LaTeX & friends. Three predefined styles, one of which closely mimicks that
of the Matlab editor, are available and can be invoked by listings macros
and environments in conjunction with (most) options provided by the listings
package. The appearance of your Matlab listings can be further tweaked via a
key-value interface extending that of listings'. Partial support for Octave
syntax is provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/matlab-prettifier/matlab-prettifier.sty
%doc %{_texmfdistdir}/doc/latex/matlab-prettifier/README
%doc %{_texmfdistdir}/doc/latex/matlab-prettifier/matlab-prettifier.pdf
#- source
%doc %{_texmfdistdir}/source/latex/matlab-prettifier/matlab-prettifier.dtx
%doc %{_texmfdistdir}/source/latex/matlab-prettifier/matlab-prettifier.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10230 |21cr|texlive-matrix-skeleton-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/afthesis
# catalog-date 2008-11-01 22:12:33 +0100
# catalog-license pd
# catalog-version 2.7
Name:		texlive-matrix-skeleton
Version:	2.7
Release:	1
Summary:	A PGF/TikZ library that simplifies working with multiple matrix nodes
Group:		Publishing
URL:		http://ctan.org/pkg/matrix-skeleton
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matrix-skeleton.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matrix-skeleton.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a PGF/TikZ library that simplifies working
with multiple matrix nodes. To do so, it correctly aligns
groups of nodes with the content of the whole matrix.
Furthermore, matrix.skeleton provides rows and columns for easy
styling.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/*
%doc %{_texmfdistdir}/doc/latex/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10231 |21cr|texlive-mattens-1.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17582
# category Package
# catalog-ctan /macros/latex/contrib/mattens
# catalog-date 2009-11-09 23:10:10 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-mattens
Version:	1.3
Release:	8
Summary:	Matrices/tensor typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mattens
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mattens.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mattens.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mattens.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The mattens package contains the definitions to typeset
matrices, vectors and tensors as used in the engineering
community for the representation of common vectors and tensors
such as forces, velocities, moments of inertia, etc.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mattens/mattens.sty
%doc %{_texmfdistdir}/doc/latex/mattens/README
%doc %{_texmfdistdir}/doc/latex/mattens/mattens.pdf
%doc %{_texmfdistdir}/doc/latex/mattens/mattens_sample.pdf
%doc %{_texmfdistdir}/doc/latex/mattens/mattens_sample_src.zip
#- source
%doc %{_texmfdistdir}/source/latex/mattens/mattens.dtx
%doc %{_texmfdistdir}/source/latex/mattens/mattens.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10232 |21cr|texlive-maze-65508-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname maze

Summary:	Generate random mazes
Name:		texlive-maze
Version:	65508
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(maze.sty) = 2024
BuildArch:	noarch

%description
This package can generate random square mazes of a specified
size. The mazes generated by this package are natural and their
solution is not too obvious. The output it based on the picture
environment.

%files
%doc %{_texmfdistdir}/doc/latex/maze
%{_texmfdistdir}/tex/latex/maze

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10233 |21cr|texlive-mcexam-20171227-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/afthesis
# catalog-date 2008-11-01 22:12:33 +0100
# catalog-license pd
# catalog-version 2.7
Name:		texlive-mcexam
Version:	20171227
Release:	1
Summary:	Create randomized Multiple Choice questions
Group:		Publishing
URL:		http://ctan.org/pkg/mcexam
License:	lPPL1.3C
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcexam.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcexam.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package automatically randomly permutes the order of
questions as well as the answer options in different versions
of a multiple choice exam/test. Next to the exam versions
themselves, the package also allows printing a concept version
of the exam, a key table with the correct answers or points,
and a document with solutions and explanations per exam
version. The package also allows writing an R code which
processes the results of the exam and calculates the grades.
The following other LaTeX packages are required: enumitem,
environ, etoolbox, longtable, newfile, pgffor (from the
PGF/TikZ bundle), xkeyval, and xstring.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/*
%doc %{_texmfdistdir}/doc/latex/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10234 |21cr|texlive-mcmthesis-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22142
# category Package
# catalog-ctan /macros/latex/contrib/mcmthesis
# catalog-date 2011-04-20 18:25:54 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-mcmthesis
Version:	0.1
Release:	1
Summary:	Template designed for MCM/ICM
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mcmthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcmthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcmthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a template for MCM (The Mathematical Contest
in Modeling) and ICM (The Interdisciplinary Contest in Modeling)
for typesetting the submitted paper.

#-----------------------------------------------------------------------
%files

%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10235 |21cr|texlive-mdputu-1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20298
# category Package
# catalog-ctan /fonts/mdputu
# catalog-date 2010-11-03 15:55:25 +0100
# catalog-license other-free
# catalog-version 1.2
Name:		texlive-mdputu
Version:	1.2
Release:	8
Summary:	Upright digits in Adobe Utopia Italic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/mdputu
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdputu.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdputu.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Annals of Mathematics uses italics for theorems. However,
slanted digits and parentheses look disturbing when surrounded
by (upright) mathematics. This package provides virtual fonts
with italics and upright digits and punctuation, as an
extension to Mathdesign Utopia.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/mdputu/mdputubi7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mdputu/mdputubi8t.tfm
%{_texmfdistdir}/fonts/tfm/public/mdputu/mdputuri7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mdputu/mdputuri8t.tfm
%{_texmfdistdir}/fonts/vf/public/mdputu/mdputubi7t.vf
%{_texmfdistdir}/fonts/vf/public/mdputu/mdputubi8t.vf
%{_texmfdistdir}/fonts/vf/public/mdputu/mdputuri7t.vf
%{_texmfdistdir}/fonts/vf/public/mdputu/mdputuri8t.vf
%{_texmfdistdir}/tex/latex/mdputu/mdputu.sty
%{_texmfdistdir}/tex/latex/mdputu/ot1mdputu.fd
%{_texmfdistdir}/tex/latex/mdputu/t1mdputu.fd
%doc %{_texmfdistdir}/doc/latex/mdputu/README
%doc %{_texmfdistdir}/doc/latex/mdputu/mdputu.dtx
%doc %{_texmfdistdir}/doc/latex/mdputu/mdputu.ins
%doc %{_texmfdistdir}/doc/latex/mdputu/mdputu.pdf
%doc %{_texmfdistdir}/doc/latex/mdputu/sample.pdf
%doc %{_texmfdistdir}/doc/latex/mdputu/sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10236 |21cr|texlive-mdsymbol-0.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28399
# category Package
# catalog-ctan /fonts/mdsymbol
# catalog-date 2012-11-29 15:59:01 +0100
# catalog-license ofl
# catalog-version 0.5
Name:		texlive-mdsymbol
Version:	0.5
Release:	11
Summary:	Symbol fonts to match Adobe Myriad Pro
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/mdsymbol
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdsymbol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdsymbol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdsymbol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a font of mathematical symbols, MyriadPro
The font is designed as a companion to Adobe Myriad Pro, but it
might also fit well with other contemporary typefaces.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/mdsymbol/mdsymbol-a.enc
%{_texmfdistdir}/fonts/enc/dvips/mdsymbol/mdsymbol-b.enc
%{_texmfdistdir}/fonts/enc/dvips/mdsymbol/mdsymbol-c.enc
%{_texmfdistdir}/fonts/enc/dvips/mdsymbol/mdsymbol-d.enc
%{_texmfdistdir}/fonts/enc/dvips/mdsymbol/mdsymbol-e.enc
%{_texmfdistdir}/fonts/enc/dvips/mdsymbol/mdsymbol-f.enc
%{_texmfdistdir}/fonts/map/dvips/mdsymbol/mdsymbol.map
%{_texmfdistdir}/fonts/opentype/public/mdsymbol/MdSymbol-Bold.otf
%{_texmfdistdir}/fonts/opentype/public/mdsymbol/MdSymbol-Light.otf
%{_texmfdistdir}/fonts/opentype/public/mdsymbol/MdSymbol-Regular.otf
%{_texmfdistdir}/fonts/opentype/public/mdsymbol/MdSymbol-Semibold.otf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolA-Bold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolA-Light.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolA-Regular.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolA-Semibold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolA.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolB-Bold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolB-Light.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolB-Regular.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolB-Semibold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolB.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolC-Bold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolC-Light.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolC-Regular.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolC-Semibold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolC.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolD-Bold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolD-Light.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolD-Regular.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolD-Semibold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolD.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolE-Bold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolE-Light.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolE-Regular.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolE-Semibold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolE.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolF-Bold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolF-Light.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolF-Regular.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolF-Semibold.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/MdSymbolF.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/mdaccents.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/mdarrows.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/mdbase.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/mddelims.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/mdgeometric.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/mdoperators.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/mdrelations.mf
%{_texmfdistdir}/fonts/source/public/mdsymbol/mdturnstile.mf
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolA-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolA-Light.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolA-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolA-Semibold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolB-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolB-Light.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolB-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolB-Semibold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolC-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolC-Light.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolC-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolC-Semibold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolD-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolD-Light.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolD-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolD-Semibold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolE-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolE-Light.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolE-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolE-Semibold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolF-Bold.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolF-Light.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolF-Regular.tfm
%{_texmfdistdir}/fonts/tfm/public/mdsymbol/MdSymbolF-Semibold.tfm
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolA-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolA-Light.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolA-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolA-Semibold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolB-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolB-Light.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolB-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolB-Semibold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolC-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolC-Light.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolC-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolC-Semibold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolD-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolD-Light.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolD-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolD-Semibold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolE-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolE-Light.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolE-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolE-Semibold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolF-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolF-Light.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolF-Regular.pfb
%{_texmfdistdir}/fonts/type1/public/mdsymbol/MdSymbolF-Semibold.pfb
%{_texmfdistdir}/tex/latex/mdsymbol/mdsymbol.sty
%doc %{_texmfdistdir}/doc/fonts/mdsymbol/FONTLOG.txt
%doc %{_texmfdistdir}/doc/fonts/mdsymbol/OFL.txt
%doc %{_texmfdistdir}/doc/latex/mdsymbol/mdsymbol.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mdsymbol/mdsymbol.dtx
%doc %{_texmfdistdir}/source/latex/mdsymbol/mdsymbol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10237 |21cr|texlive-mecaso-60346-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mecaso

Summary:	Formulas frequently used in rigid body mechanics
Name:		texlive-mecaso
Version:	60346
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(mecaso.sty) = 2024
BuildArch:	noarch

%description
This package provides a number of formulas frequently used in
rigid body mechanics. Since most of these formulas are long and
tedious to write, this package wraps them up in short commands.

%files
%doc %{_texmfdistdir}/doc/latex/mecaso
%{_texmfdistdir}/tex/latex/mecaso

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10238 |21cr|texlive-media4svg-64686-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname media4svg

Summary:	Multimedia inclusion for the dvisvgm backend
Name:		texlive-media4svg
Version:	64686
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(media4svg.sty) = 2024
BuildArch:	noarch

%description
This package implements an interface for embedding video and
audio files in SVG (Scalable Vector Graphics) output. SVG with
embedded media is very portable, as it is supported by all
modern Web browsers across a variety of operating systems and
platforms, including portable devices. All DVI producing TeX
engines can be used. The dvisvgm utility, which is part of all
major TeX distributions, converts the intermediate DVI to SVG.
By default, media files are embedded into the SVG output to
make self-sufficient SVG files.

%files
%doc %{_texmfdistdir}/doc/latex/media4svg
%{_texmfdistdir}/tex/latex/media4svg

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10239 |21cr|texlive-medstarbeamer-20180422-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-medstarbeamer
Version:	20180422
Release:	1
Summary:	Beamer document class for MedStar Health Research Institute
Group:		Publishing
URL:		mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/medstarbeamer
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/medstarbeamer.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/medstarbeamer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a beamer template for MedStar Health presentations. It
includes sample presentations using both .tex files and .rnw
files. The document class is obviously compatible with both.
The advantage of the .rnw file is that it can be used with
knitr such that you can weave your R code with your
presentation.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10240 |21cr|texlive-membranecomputing-64627-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname membranecomputing

Summary:	Membrane Computing notation
Name:		texlive-membranecomputing
Version:	64627
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xstring.sty)
Provides:	tex(membranecomputing.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package for the Membrane Computing community.
It comprises the definition of P systems, rules and some
concepts related to languages and computational complexity
usually needed for Membrane Computing research. The package
depends on ifthen and xstring.

%files
%doc %{_texmfdistdir}/doc/latex/membranecomputing
%{_texmfdistdir}/tex/latex/membranecomputing

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10241 |21cr|texlive-memorygraphs-20190107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-memorygraphs
Version:	20190107
Release:	1
Summary:	TikZ styles to typeset graphs of program memory
Group:		Publishing
URL:		mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/memorygraphs
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/memorygraphs.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/memorygraphs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines some TikZ styles and adds anchors to
existing styles that ease the declaration of "memory graphs".
It is intended for graphs that represent the memory of a
computer program during its execution.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10242 |21cr|texlive-mensa-tex-20171205-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mensa-tex
Version:	20171205
Release:	1
Summary:	Typeset simple school cafeteria menus
Group:		Publishing
URL:		http://ctan.org/pkg/mensa-tex
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mensa-tex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mensa-tex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a flexible LaTeX2e class for typesetting
school cafeteria menus consisting of two lunches (with
dessert), and dinner. It supports two different layouts: The
first layout is optimized for printing the menu on A4 paper.
The second layout is optimized for smartphone screens and uses
one (A6 sized) page per day. Supported localizations are
English (GB/US) and German. A way of defining additional
localizations is described in the documentation. The package
requires array, colortbl, datetime2, datetime2-calc, geometry,
graphicx, lmodern, textcomp, and xcolor.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10243 |21cr|texlive-menucard-55643-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname menucard

Summary:	Typesetting menu cards with LaTeX
Name:		texlive-menucard
Version:	55643
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(soul.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(menucard.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package can be used for typesetting simple
restaurant menus.

%files
%doc %{_texmfdistdir}/doc/latex/menucard
%{_texmfdistdir}/tex/latex/menucard

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10244 |21cr|texlive-mercatormap-56060-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mercatormap

Summary:	Spherical Mercator coordinate systems and Web Mercator tile integration
Name:		texlive-mercatormap
Version:	56060
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(mercatormap.sty) = 2024
Provides:	tex(mercatorpy.def) = 2024
Provides:	tex(mercatorsupplier.def) = 2024
BuildArch:	noarch

%description
This package extends TikZ with tools to create map graphics.
The provided coordinate system relies on the Web Mercator
projection used on the Web by OpenStreetMap and others. The
package supports the seamless integration of graphics from
public map tile servers by a Python script. Also, common map
elements like markers, geodetic networks, bar scales, routes,
orthodrome pieces, and more are part of the package.

%files
%doc %{_texmfdistdir}/doc/latex/mercatormap
%{_texmfdistdir}/tex/latex/mercatormap

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10245 |21cr|texlive-merriweather-20191014-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-merriweather
Version:	20191014
Release:	2
Summary:	Merriweather and MerriweatherSans fonts, with LaTeX support
Group:		Publishing
URL:		https://ctan.org/pkg/merriweather
License:	ofl
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/merriweather.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/merriweather.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Merriweather features a very large x height, slightly condensed
letterforms, a mild diagonal stress, sturdy serifs and open
forms. The Sans family closely harmonizes with the weights and
styles of the serif family. There are four weights and italics
for each.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10246 |21cr|texlive-messagepassing-63116-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname messagepassing

Summary:	Draw diagrams to represent communication protocols
Name:		texlive-messagepassing
Version:	63116
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(messagepassing.sty) = 2024
BuildArch:	noarch

%description
This package provides an environment to easily draw diagrams to
represent communication protocols using message passing among
processes. Processes are represented as horizontal or vertical
lines, and communications as arrows between lines. The package
also provides multiple macros to decorate those diagrams, for
instance to annotate the diagram, to add crashes to the
processes, checkpoints, ...

%files
%doc %{_texmfdistdir}/doc/latex/messagepassing
%{_texmfdistdir}/tex/latex/messagepassing

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10247 |21cr|texlive-metanorma-55010-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname metanorma

Summary:	Write Metanorma standardization documents using LaTe
Name:		texlive-metanorma
Version:	55010
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(metanorma.cls) = 2024
BuildArch:	noarch

%description
metanorma This work includes a LaTeX document class, a
`latexml` script and a `latexmlpost` stylesheet which allow you
to write a LaTeX document and transcode it into Metanorma's
`ADOC` format. This work is sponsored by Ribose Inc.
(<https://www.ribose.com>). This work is maintained by Ribose
Inc. (<open.source@ribose.com>).

%files
%doc %{_texmfdistdir}/doc/latex/metanorma
%{_texmfdistdir}/tex/latex/metanorma

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10248 |21cr|texlive-metastr-56246-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname metastr

Summary:	Store and compose strings
Name:		texlive-metastr
Version:	56246
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(metastr.sty) = 2024
BuildArch:	noarch

%description
This is a package to store and compose strings in a structured
way. This can serve various purposes, for example: manage and
write document metadata; use templates for formatting document
data; assist in assembling and displaying document license
information; facilitate basic internationalisation and
localisation.

%files
%doc %{_texmfdistdir}/doc/latex/metastr
%{_texmfdistdir}/tex/latex/metastr

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10249 |21cr|texlive-metatex-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/metatex
# catalog-date 2007-01-09 22:36:10 +0100
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-metatex
Version:	1.1
Release:	8
Summary:	Incorporate MetaFont pictures in TeX source
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/metatex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metatex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
METATeX is a set of plain TeX and MetaFont macros that you can
use to define both the text and the figures in a single source
file. Because METATeX sets up two way communication, from TeX
to MetaFont and back from MetaFont to TeX, drawing dimensions
can be controlled by TeX and labels can be located by MetaFont.
Only standard features of TeX and MetaFont are used, but two
runs of TeX and one of MetaFont are needed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/metatex/metatex.tex
%doc %{_texmfdistdir}/doc/plain/metatex/README
%doc %{_texmfdistdir}/doc/plain/metatex/gpl.txt
%doc %{_texmfdistdir}/doc/plain/metatex/mtmp2pdf.tex
%doc %{_texmfdistdir}/doc/plain/metatex/mtpaper.pdf
%doc %{_texmfdistdir}/doc/plain/metatex/mtpaper/delay.mf
%doc %{_texmfdistdir}/doc/plain/metatex/mtpaper/diagram.tex
%doc %{_texmfdistdir}/doc/plain/metatex/mtpaper/frame.tex
%doc %{_texmfdistdir}/doc/plain/metatex/mtpaper/mtpaper.tex
%doc %{_texmfdistdir}/doc/plain/metatex/mtpaper/shadow.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10250 |21cr|texlive-mfirstuc-2.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mfirstuc
Version:	2.06
Release:	1
Summary:	Uppercase the first letter of a word
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mfirstuc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfirstuc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfirstuc.source.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfirstuc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands \makefirstuc that uppercases the
first letter in its argument (with a check for a semantic
markup command at the start of the argument), and \xmakefirstuc
which expands the argument before uppercasing. It also provides
longdesc \capitalisewords{phrase} which applies \makefirstuc to each
word in the phrase, where the words are separated by regular
spaces. (Exceptions can be made for words that shouldn't be
converted.)

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/mfirstuc
%{_texmfdistdir}/tex/latex/mfirstuc
%doc %{_texmfdistdir}/doc/latex/mfirstuc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10251 |21cr|texlive-mgltex-20160712-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mgltex
# catalog-date 2008-11-01 22:12:33 +0100
# catalog-license GPL3
# catalog-version 20160712
Name:		texlive-mgltex
Version:	20160712
Release:	1
Summary:	High-quality graphics from MGL scripts embedded in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mgltex
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mgltex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mgltex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
High-quality graphics from MGL scripts embedded in LaTeX documents


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/*
%doc %{_texmfdistdir}/doc/latex/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10252 |21cr|texlive-mhequ-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mhequ
Version:	1.7
Release:	2
Summary:	Multicolumn equations, tags, labels, sub-numbering
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mhequ
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mhequ.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mhequ.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MHequ simplifies creating multi-column equation environments,
and tagging the equations therein. It supports sub-numbers of
blocks of equations (like (1.2a), (1.2b), etc) and references
to each equation individually (1.2a) or to the whole block
(1.2). The labels can be shown in draft mode. Comments in the
package itself describe usage.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mhequ
%doc %{_texmfdistdir}/doc/latex/mhequ

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10253 |21cr|texlive-miama-20190618-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/afthesis
# catalog-date 2008-11-01 22:12:33 +0100
# catalog-license 
# catalog-version 1.1
Name:		texlive-miama
Version:	20190618
Release:	1
Summary:	The Miama Nueva handwriting font with LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/miama
License:	OFLLPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/miama.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/miama.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Miama Nueva is a handwriting / script font with over 1300 
glyphs that supports latin, cyrillic, and greek. It comes
complete with LaTeX support.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/miama
%{_texmfdistdir}/fonts/*/*
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10254 |21cr|texlive-midnight-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-midnight
Version:	20190228
Release:	1
Summary:	A set of useful macro tools
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/midnight
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/midnight.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/midnight.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Included are: - quire: making booklets, etc.; - gloss:
vertically align words in consecutive sentences; - loop: a
looping construct; - dolines: 'meta'-macros to separate
arguments by newlines; - labels: address labels and bulk mail
letters; - styledef: selectively input part of a file; and -
border: borders around boxes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/midnight
%doc %{_texmfdistdir}/doc/generic/midnight

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10255 |21cr|texlive-milog-41610-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname milog

Summary:	A LaTeX class for fulfilling the documentation duties according to the German minimum wage law MiLoG
Name:		texlive-milog
Version:	41610
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(milog.cls) = 2024
BuildArch:	noarch

%description
Seit dem 1. Januar 2015 gilt in Deutschland grundsatzlich fur
alle Arbeitnehmer ein flachendeckender gesetzlicher Mindestlohn
in Hohe von derzeit 8,50EUR pro Stunde. Mit Wirkung ab 1.
August 2015 wurden die Dokumentations- und
Aufzeichnungspflichten gelockert. Nach SS17 MiLoG, muss Beginn,
Ende und Dauer der taglichen Arbeitszeit der in SS22 MiLoG
definierten Arbeitnehmern (formlos) aufgezeichnet werden.
Zusatzlich ermoglicht milog.cls aus praktischen Grunden die
Aufzeichnug von unbezahlten Pausen und Bemerkungen (Ruhetag,
Urlaub, krank, ...). Die Erfassung der Arbeitszeiten erfolgt in
einer simplen CSV-Datei, aus der die Klasse automatisch einen
Arbeitszeitnachweis erstellt. Alternativ konnen die Daten auch
durch einen CSV-Export - mit eventueller Nachbearbeitung -
einer geeigneteten App erhoben werden. The milog.cls class
provides means to fulfill the documentation duties by the
German minimum wage law MiLoG. The recording of working hours
is carried out in a simple CSV file from which the class will
automatically create a time sheet. Alternatively, data can also
be collected by a CSV export of a suitable app.

%files
%doc %{_texmfdistdir}/doc/latex/milog/
%{_texmfdistdir}/tex/latex/milog/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10256 |21cr|texlive-mindflow-65236-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mindflow

Summary:	Write your ideas in a clear way
Name:		texlive-mindflow
Version:	65236
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsmath.sty)
#Requires:	tex(etoolbox.sty)
Requires:	tex(kvoptions.sty)
#Requires:	tex(lineno.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(nowidow.sty)
#Requires:	tex(verbatim.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(mindflow.sty) = 2024
BuildArch:	noarch

%description
This package provides an environment that has its own line
numbers or markers and can be well distinguished from the main
text, for writing you ideas or annotations.

%files
%doc %{_texmfdistdir}/doc/latex/mindflow
%{_texmfdistdir}/tex/latex/mindflow

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10257 |21cr|texlive-minidocument-43752-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minidocument

Summary:	Creates miniature documents inside other LaTeX documents
Name:		texlive-minidocument
Version:	43752
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(minidocument.sty) = 2024
BuildArch:	noarch

%description
This package can be used to create miniature documents inside
other LaTeX documents. Inside the minidocument all features of
the outer vertical mode like page breaking, floats, marginpars,
etc. are available.

%files
%doc %{_texmfdistdir}/doc/latex/minidocument/
%{_texmfdistdir}/tex/latex/minidocument/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10258 |21cr|texlive-minim-66395-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minim

Summary:	A modern plain format for the LuaTeX engine
Name:		texlive-minim
Version:	66395
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(minim-alloc.tex) = 2024
Provides:	tex(minim-doc.sty) = 2024
Provides:	tex(minim-etex.tex) = 2024
Provides:	tex(minim-hooks.tex) = 2024
Provides:	tex(minim-lmodern.tex) = 2024
Provides:	tex(minim-pdfresources.tex) = 2024
Provides:	tex(minim-plain.tex) = 2024
Provides:	tex(minim.tex) = 2024
BuildArch:	noarch

%description
This is a modern plain format for the LuaTeX engine, adding
improved low-level support for many LuaTeX extensions and newer
PDF features. While it can be used as drop-in replacement for
plain TeX, it probably is most useful as a basis for your own
formats. Most features included in the format are provided by
separate packages that can be used on their own; see the
packages minim-mp for mplib (MetaPost) support minim-math for
unicode mathematics minim-pdf for creating Tagged PDF minim-xmp
for XMP (metadata) inclusion This package contains only their
shared lowest-level programming interface, along with their
combined format.

%files
%doc %{_texmfdistdir}/doc/luatex/minim
%{_texmfdistdir}/tex/luatex/minim

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10259 |21cr|texlive-minimalist-66434-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minimalist

Summary:	Write your articles or books in a simple and clear way
Name:		texlive-minimalist
Version:	66434
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amssymb.sty)
#Requires:	tex(amsthm.sty)
#Requires:	tex(anyfontsize.sty)
#Requires:	tex(bookmark.sty)
#Requires:	tex(caption.sty)
#Requires:	tex(draftwatermark.sty)
#Requires:	tex(embrac.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(extramarks.sty)
#Requires:	tex(fancyhdr.sty)
#Requires:	tex(float.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(hyperref.sty)
#Requires:	tex(imakeidx.sty)
#Requires:	tex(indentfirst.sty)
#Requires:	tex(lineno.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(lua-widow-control.sty)
#Requires:	tex(mathpazo.sty)
#Requires:	tex(mathtools.sty)
Requires:	tex(newpxtext.sty)
#Requires:	tex(nowidow.sty)
#Requires:	tex(parskip.sty)
Requires:	tex(projlib-author.sty)
Requires:	tex(projlib-draft.sty)
Requires:	tex(projlib-font.sty)
Requires:	tex(projlib-language.sty)
Requires:	tex(projlib-paper.sty)
Requires:	tex(projlib-theorem.sty)
Requires:	tex(projlib-titlepage.sty)
#Requires:	tex(regexpatch.sty)
#Requires:	tex(relsize.sty)
#Requires:	tex(silence.sty)
#Requires:	tex(tcolorbox.sty)
#Requires:	tex(tikzpagenodes.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(titlesec.sty)
#Requires:	tex(titletoc.sty)
#Requires:	tex(ulem.sty)
#Requires:	tex(url.sty)
#Requires:	tex(wrapfig.sty)
Provides:	tex(minimalist-classical.sty) = 2024
Provides:	tex(minimalist-flow.sty) = 2024
Provides:	tex(minimalist-plain.sty) = 2024
Provides:	tex(minimalist-stream.sty) = 2024
Provides:	tex(minimalist.sty) = 2024
Provides:	tex(minimart.cls) = 2024
Provides:	tex(minimbook.cls) = 2024
BuildArch:	noarch

%description
This package offers you a LaTeX style file and two classes to
typeset articles or books in a simple and clear way. These
classes currently have native support for English, French,
German, Italian, Portuguese (European and Brazilian), and
Spanish typesetting. They compile with any major TeX engine.
You may also wish to consider the packages einfart and
simplivre, which are enhanced versions of the classes provided
here. They have unicode support, thus can only be used with
either XeLaTeX or LuaLaTeX. Currently they have native support
for Chinese (both simplified and traditional), English, French,
German, Italian, Japanese, Portuguese (European and Brazilian),
Russian and Spanish typesetting, and also use more beautiful
fonts.

%files
%doc %{_texmfdistdir}/doc/latex/minimalist
%{_texmfdistdir}/tex/latex/minimalist

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10260 |21cr|texlive-minim-hatching-62395-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minim-hatching

Summary:	Create tiling patterns with the minim-mp MetaPost processor
Name:		texlive-minim-hatching
Version:	62395
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a small proof-of-concept library of tiling patterns for
use with the minim-mp MetaPost processor.

%files
%doc %{_texmfdistdir}/doc/latex/minim-hatching
%{_texmfdistdir}/metapost/minim-hatching

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10261 |21cr|texlive-minim-math-66395-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minim-math

Summary:	Extensive maths for LuaTeX
Name:		texlive-minim-math
Version:	66395
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(minim-math.tex) = 2024
BuildArch:	noarch

%description
This package provides a simple and highly configurable way to
use Unicode and OpenType mathematics with simple LuaTeX, taking
advantage of most of the engine's new capabilities in
mathematical typesetting. Also included are the proper settings
and definitions for almost all Unicode mathematical characters.

%files
%doc %{_texmfdistdir}/doc/luatex/minim-math
%{_texmfdistdir}/tex/luatex/minim-math

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10262 |21cr|texlive-minim-mp-66395-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minim-mp

Summary:	Low-level mplib integration for LuaTeX
Name:		texlive-minim-mp
Version:	66395
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(minim-mp.tex) = 2024
BuildArch:	noarch

%description
This package offers low-level mplib integration for plain
LuaTeX and is designed with the purpose of being easy to
extend. The use of multiple simultaneous MetaPost instances is
supported, as well as running TeX or lua code from within
MetaPost. With the included minim-mp format file, you can even
use LuaTeX as a stand-alone MetaPost compiler.

%files
%doc %{_texmfdistdir}/doc/luatex/minim-mp
%{_texmfdistdir}/metapost/minim-mp
%{_texmfdistdir}/tex/luatex/minim-mp

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10263 |21cr|texlive-minim-pdf-66395-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minim-pdf

Summary:	Low-level PDF integration for LuaTeX
Name:		texlive-minim-pdf
Version:	66395
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(minim-pdf.tex) = 2024
BuildArch:	noarch

%description
This package adds low-level support to plain LuaTeX for marking
up the structure of a PDF document. The implementation is
rather basic, but should allow you to make your PDFs fully
PDF/A-compliant.

%files
%doc %{_texmfdistdir}/doc/luatex/minim-pdf
%{_texmfdistdir}/tex/luatex/minim-pdf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10264 |21cr|texlive-minim-xmp-66395-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname minim-xmp

Summary:	Embed XMP metadata in PDF with LuaTeX
Name:		texlive-minim-xmp
Version:	66395
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(minim-xmp.tex) = 2024
BuildArch:	noarch

%description
This package enables the inclusion of XMP (eXtensible Metadata
Platform) data in the pdf output generated by (plain) LuaTeX.
The use of XMP is required by PDF standards such as PDF/A.

%files
%doc %{_texmfdistdir}/doc/luatex/minim-xmp
%{_texmfdistdir}/tex/luatex/minim-xmp

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10265 |21cr|texlive-mintspirit-20131103-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32069
# category Package
# catalog-ctan /fonts/mintspirit
# catalog-date 2013-11-03 23:53:16 +0100
# catalog-license ofl
# catalog-version undef
Name:		texlive-mintspirit
Version:	20131103
Release:	9
Summary:	LaTeX support for MintSpirit font families
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/mintspirit
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mintspirit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mintspirit.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the MintSpirit and MintSpiritNo2 families of fonts,
designed by Hirwen Harendal. MintSpirit was originally designed
for use as a system font on a Linux Mint system. The No. 2
variant provides more conventional shapes for some glyphs.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_24uybq.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_2dxuba.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_3vy5j3.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_5cazkt.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_63vcua.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_6x4rw3.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_7ayy44.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_7u5374.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_amdskp.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_biiinc.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_bkoczj.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_dnk3mn.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_eex3ia.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_eqihrw.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_eqrkmo.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_fizmng.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_fm3wlu.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_j4bodc.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_k4fv75.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_l3e5vj.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_lm7mhw.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_lwraz3.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_me5dp6.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_oe76kg.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_ref42g.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_s7rd6p.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_taixll.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_tmtdfz.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt2_ywkmiw.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_2isll4.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_3sm7wd.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_3y5hmb.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_5lbatd.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_5yvi6n.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_675dmr.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_7enqs3.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_bjjcsi.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_f4utek.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_gcdgcc.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_gdx47l.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_girsvq.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_gr6qqq.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_imdxi4.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_lvhuc6.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_lzc2o4.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_oj7rfe.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_opresw.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_pulfbi.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_swumq4.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_v6lq4b.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_wk34ig.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_y4xqha.enc
%{_texmfdistdir}/fonts/enc/dvips/mintspirit/mntsprt_zt2pqo.enc
%{_texmfdistdir}/fonts/map/dvips/mintspirit/mintspirit.map
%{_texmfdistdir}/fonts/opentype/arkandis/mintspirit/MintSpirit-Bold.otf
%{_texmfdistdir}/fonts/opentype/arkandis/mintspirit/MintSpirit-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/arkandis/mintspirit/MintSpirit-Italic.otf
%{_texmfdistdir}/fonts/opentype/arkandis/mintspirit/MintSpirit-Regular.otf
%{_texmfdistdir}/fonts/opentype/arkandis/mintspirit/MintSpiritNo2-Bold.otf
%{_texmfdistdir}/fonts/opentype/arkandis/mintspirit/MintSpiritNo2-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/arkandis/mintspirit/MintSpiritNo2-Italic.otf
%{_texmfdistdir}/fonts/opentype/arkandis/mintspirit/MintSpiritNo2-Regular.otf
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-inf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-inf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-inf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-inf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-inf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Bold-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-inf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-inf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-inf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-inf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-inf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-inf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-inf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-inf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-inf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-inf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Italic-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-inf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-inf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-inf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-inf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-inf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpirit-Regular-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-inf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-inf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-inf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-inf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-inf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-inf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-inf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-inf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-inf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-inf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-inf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-inf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-inf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-inf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-inf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-inf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-inf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-inf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-inf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-inf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-ts1.tfm
%{_texmfdistdir}/fonts/type1/arkandis/mintspirit/MintSpirit-Bold.pfb
%{_texmfdistdir}/fonts/type1/arkandis/mintspirit/MintSpirit-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/arkandis/mintspirit/MintSpirit-Italic.pfb
%{_texmfdistdir}/fonts/type1/arkandis/mintspirit/MintSpirit-Regular.pfb
%{_texmfdistdir}/fonts/type1/arkandis/mintspirit/MintSpiritNo2-Bold.pfb
%{_texmfdistdir}/fonts/type1/arkandis/mintspirit/MintSpiritNo2-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/arkandis/mintspirit/MintSpiritNo2-Italic.pfb
%{_texmfdistdir}/fonts/type1/arkandis/mintspirit/MintSpiritNo2-Regular.pfb
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-inf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-inf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-lf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-osf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-sup-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Bold-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-inf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-inf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-lf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-osf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-sup-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-BoldItalic-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-inf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-inf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-lf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-osf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-sup-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Italic-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-inf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-inf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-lf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-osf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-sup-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpirit-Regular-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-inf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-inf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-lf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-osf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-sup-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Bold-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-inf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-inf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-sup-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-BoldItalic-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-inf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-inf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-lf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-osf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-sup-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Italic-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-inf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-inf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-lf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-osf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-sup-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/arkandis/mintspirit/MintSpiritNo2-Regular-tosf-ts1.vf
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpirit-Inf.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpirit-LF.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpirit-OsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpirit-Sup.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpirit-TLF.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpirit-TOsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpiritNoTwo-Inf.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpiritNoTwo-LF.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpiritNoTwo-OsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpiritNoTwo-Sup.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpiritNoTwo-TLF.fd
%{_texmfdistdir}/tex/latex/mintspirit/LY1MintSpiritNoTwo-TOsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpirit-Inf.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpirit-LF.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpirit-OsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpirit-Sup.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpirit-TLF.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpirit-TOsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpiritNoTwo-Inf.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpiritNoTwo-LF.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpiritNoTwo-OsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpiritNoTwo-Sup.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpiritNoTwo-TLF.fd
%{_texmfdistdir}/tex/latex/mintspirit/OT1MintSpiritNoTwo-TOsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpirit-Inf.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpirit-LF.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpirit-OsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpirit-Sup.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpirit-TLF.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpirit-TOsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpiritNoTwo-Inf.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpiritNoTwo-LF.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpiritNoTwo-OsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpiritNoTwo-Sup.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpiritNoTwo-TLF.fd
%{_texmfdistdir}/tex/latex/mintspirit/T1MintSpiritNoTwo-TOsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/TS1MintSpirit-LF.fd
%{_texmfdistdir}/tex/latex/mintspirit/TS1MintSpirit-OsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/TS1MintSpirit-TLF.fd
%{_texmfdistdir}/tex/latex/mintspirit/TS1MintSpirit-TOsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/TS1MintSpiritNoTwo-LF.fd
%{_texmfdistdir}/tex/latex/mintspirit/TS1MintSpiritNoTwo-OsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/TS1MintSpiritNoTwo-TLF.fd
%{_texmfdistdir}/tex/latex/mintspirit/TS1MintSpiritNoTwo-TOsF.fd
%{_texmfdistdir}/tex/latex/mintspirit/mintspirit.sty
%{_texmfdistdir}/tex/latex/mintspirit/mintspirit2.sty
%doc %{_texmfdistdir}/doc/fonts/mintspirit/MintSpirit-Cat.pdf
%doc %{_texmfdistdir}/doc/fonts/mintspirit/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/mintspirit/README
%doc %{_texmfdistdir}/doc/fonts/mintspirit/mintspirit-samples.pdf
%doc %{_texmfdistdir}/doc/fonts/mintspirit/mintspirit-samples.tex
%doc %{_texmfdistdir}/doc/fonts/mintspirit/mintspirit2-samples.pdf
%doc %{_texmfdistdir}/doc/fonts/mintspirit/mintspirit2-samples.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10266 |21cr|texlive-mismath-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		texlive-mismath
Version:	1.6
Release:	1
Summary:	Miscellaneous mathematical macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mismath
License:	lppl1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mismath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mismath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mismath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides some mathematical macros to typeset:
mathematical constants e, i, pi in upright shape
(automatically) as recommended by ISO 80000-2, vectors with
beautiful arrows and adjusted norm, some standard operator
names, improved spacings in mathematical formulas, systems of
equations and small matrices, displaymath in double columns for
long calculations.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mismath
%{_texmfdistdir}/source/latex/mismath
%doc %{_texmfdistdir}/doc/latex/mismath

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10267 |21cr|texlive-mi-solns-0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mi-solns
Version:	0.6
Release:	1
Summary:	Extract solutions from exercises and quizzes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mi-solns
License:	lppl1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mi-solns.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mi-solns.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/mi-solns.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is designed to mark a solution environment of an
exercise or quiz and insert it into the same or a different
document. Solutions are ones created by either the exerquiz or
eqexam package. All PDF creators are supported.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mi-solns
%{_texmfdistdir}/source/latex/mi-solns
%doc %{_texmfdistdir}/doc/latex/mi-solns

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10268 |21cr|texlive-missaali-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname missaali

Summary:	A late medieval OpenType textura font
Name:		texlive-missaali
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(Missaali-Regular.otf) = 2024
Provides:	tex(missaali.sty) = 2024
BuildArch:	noarch

%description
This package contains the free OpenType Textura font Missaali
and a style file for using it with XeLaTeX. Textura is a
typeface based on the textus quadratus form of the textualis
formata that late medieval scribes used for the most valuable
manuscripts. The font Missaali is based on Textura that German
printer Bartholomew Ghotan used for printing missals and
psalters in the 1480s. This font has two intended use cases: as
a Gothic display font; and for emulating late-medieval
manuscripts. In addition to the basic textura letters, the font
contains a large number of abbreviation sigla as well as a set
of Lombardic initials. As modern typesetting algorithms are not
intended for creating 15th century style layout, the package
contains a XeLaTeX style file that makes it easier to achieve
the classic incunabula look.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/missaali/
%{_texmfdistdir}/tex/latex/missaali/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10269 |21cr|texlive-mkjobtexmf-0.8-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category Package
# catalog-ctan /support/mkjobtexmf
# catalog-date 2011-11-16 11:07:17 +0100
# catalog-license artistic
# catalog-version 0.8
Name:		texlive-mkjobtexmf
Version:	0.8
Release:	14
Summary:	Generate a texmf tree for a particular job
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/mkjobtexmf
License:	ARTISTIC
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mkjobtexmf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mkjobtexmf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mkjobtexmf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-mkjobtexmf.bin = %{EVRD}

%description
The package provides a Perl script, which runs a program and
tries to find the names of file used. Two methods are
available, option -recorder of (Web2C) TeX and the program
strace. Then it generates a directory with a texmf tree. It
checks the found files and tries sort them in this texmf tree.
The script may be used for archiving purposes or to speed up
later TeX runs.


#-----------------------------------------------------------------------
%files
%{_bindir}/mkjobtexmf
%{_texmfdistdir}/scripts/mkjobtexmf/mkjobtexmf.pl
%doc %{_texmfdistdir}/doc/generic/mkjobtexmf/README
%doc %{_texmfdistdir}/doc/generic/mkjobtexmf/clean-case.pl
%doc %{_texmfdistdir}/doc/generic/mkjobtexmf/mkjobtexmf.html
%doc %{_texmfdistdir}/doc/generic/mkjobtexmf/mkjobtexmf.ltx
%doc %{_texmfdistdir}/doc/generic/mkjobtexmf/mkjobtexmf.pdf
%doc %{_texmfdistdir}/doc/generic/mkjobtexmf/mkjobtexmf.txt
%doc %{_texmfdistdir}/doc/generic/mkjobtexmf/version.pl
%doc %{_mandir}/man1/mkjobtexmf.1*
%doc %{_texmfdistdir}/doc/man/man1/mkjobtexmf.man1.pdf
#- source
%doc %{_texmfdistdir}/source/generic/mkjobtexmf/Makefile.in
%doc %{_texmfdistdir}/source/generic/mkjobtexmf/configure
%doc %{_texmfdistdir}/source/generic/mkjobtexmf/configure.ac
%doc %{_texmfdistdir}/source/generic/mkjobtexmf/install-sh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/mkjobtexmf/mkjobtexmf.pl mkjobtexmf
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10270 |21cr|texlive-mkpattern-1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/hyphenation/utils/mkpattern
# catalog-date 2008-08-22 16:39:18 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-mkpattern
Version:	1.2
Release:	8
Summary:	A utility for making hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/utils/mkpattern
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mkpattern.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mkpattern.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Mkpattern is a general purpose program for the generation of
hyphenation patterns, with definition of letter sets and
template-like constructions. It also provides an easy way to
handle different input and output encodings, and featgures
generation of clean UTF-8 patterns. The package was used for
the creation of the Galician patterns.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/mkpattern/mkpatter.tex
%doc %{_texmfdistdir}/doc/plain/mkpattern/README
%doc %{_texmfdistdir}/doc/plain/mkpattern/mkpatdoc.tex
%doc %{_texmfdistdir}/doc/plain/mkpattern/mkpatter.pdf
%doc %{_texmfdistdir}/doc/plain/mkpattern/mkpattern-exmpl.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10271 |21cr|texlive-mlacls-60508-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mlacls

Summary:	LaTeX class for MLA papers
Name:		texlive-mlacls
Version:	60508
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(mla.cls) = 2024
BuildArch:	noarch

%description
In the United States, secondary and undergraduate students are
generally expected to adhere to the format prescribed by the
Modern Language Association (MLA) for typewritten essays,
research papers and writings. This package provides a simple,
straightforward LaTeX class for composing papers almost
perfectly adherent to the MLA style guide.

%files
%doc %{_texmfdistdir}/doc/latex/mlacls
%{_texmfdistdir}/tex/latex/mlacls

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10272 |21cr|texlive-mleftright-53021-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mleftright

Summary:	Variants of delimiters that act as maths open/close
Name:		texlive-mleftright
Version:	53021
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(mleftright.sty) = 2024
BuildArch:	noarch

%description
The package defines variants \mleft and \mright of \left and
\right, that make the delimiters act as \mathopen and
\mathclose. These commands address spacing difficulties in
subformulas.

%files
%doc %{_texmfdistdir}/doc/latex/mleftright
%{_texmfdistdir}/tex/generic/mleftright

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10273 |21cr|texlive-mlmodern-57458-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mlmodern

Summary:	A blacker Type 1 version of Computer Modern, with multilingual support
Name:		texlive-mlmodern
Version:	57458
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(il2mlmdh.fd) = 2024
Provides:	tex(il2mlmr.fd) = 2024
Provides:	tex(il2mlmss.fd) = 2024
Provides:	tex(il2mlmssq.fd) = 2024
Provides:	tex(il2mlmtt.fd) = 2024
Provides:	tex(il2mlmvtt.fd) = 2024
Provides:	tex(l7xmlmdh.fd) = 2024
Provides:	tex(l7xmlmr.fd) = 2024
Provides:	tex(l7xmlmss.fd) = 2024
Provides:	tex(l7xmlmssq.fd) = 2024
Provides:	tex(l7xmlmtt.fd) = 2024
Provides:	tex(l7xmlmvtt.fd) = 2024
Provides:	tex(ly1mlmdh.fd) = 2024
Provides:	tex(ly1mlmr.fd) = 2024
Provides:	tex(ly1mlmss.fd) = 2024
Provides:	tex(ly1mlmssq.fd) = 2024
Provides:	tex(ly1mlmtt.fd) = 2024
Provides:	tex(ly1mlmvtt.fd) = 2024
Provides:	tex(mlm.map) = 2024
Provides:	tex(mlmodern.sty) = 2024
Provides:	tex(mlm-substitute.map) = 2024
Provides:	tex(omlmlmm.fd) = 2024
Provides:	tex(omlmlmr.fd) = 2024
Provides:	tex(omsmlmr.fd) = 2024
Provides:	tex(omsmlmsy.fd) = 2024
Provides:	tex(omxmlmex.fd) = 2024
Provides:	tex(ot1mlmdh.fd) = 2024
Provides:	tex(ot1mlmr.fd) = 2024
Provides:	tex(ot1mlmss.fd) = 2024
Provides:	tex(ot1mlmssq.fd) = 2024
Provides:	tex(ot1mlmtt.fd) = 2024
Provides:	tex(ot1mlmvtt.fd) = 2024
Provides:	tex(ot4mlmdh.fd) = 2024
Provides:	tex(ot4mlmr.fd) = 2024
Provides:	tex(ot4mlmss.fd) = 2024
Provides:	tex(ot4mlmssq.fd) = 2024
Provides:	tex(ot4mlmtt.fd) = 2024
Provides:	tex(ot4mlmvtt.fd) = 2024
Provides:	tex(qxmlmdh.fd) = 2024
Provides:	tex(qxmlmr.fd) = 2024
Provides:	tex(qxmlmss.fd) = 2024
Provides:	tex(qxmlmssq.fd) = 2024
Provides:	tex(qxmlmtt.fd) = 2024
Provides:	tex(qxmlmvtt.fd) = 2024
Provides:	tex(t1mlmdh.fd) = 2024
Provides:	tex(t1mlmr.fd) = 2024
Provides:	tex(t1mlmss.fd) = 2024
Provides:	tex(t1mlmssq.fd) = 2024
Provides:	tex(t1mlmtt.fd) = 2024
Provides:	tex(t1mlmvtt.fd) = 2024
Provides:	tex(t5mlmdh.fd) = 2024
Provides:	tex(t5mlmr.fd) = 2024
Provides:	tex(t5mlmss.fd) = 2024
Provides:	tex(t5mlmssq.fd) = 2024
Provides:	tex(t5mlmtt.fd) = 2024
Provides:	tex(t5mlmvtt.fd) = 2024
Provides:	tex(ts1mlmdh.fd) = 2024
Provides:	tex(ts1mlmr.fd) = 2024
Provides:	tex(ts1mlmss.fd) = 2024
Provides:	tex(ts1mlmssq.fd) = 2024
Provides:	tex(ts1mlmtt.fd) = 2024
Provides:	tex(ts1mlmvtt.fd) = 2024
BuildArch:	noarch

%description
MLModern is a text and math font family with (La)TeX support,
based on the design of Donald Knuth's Computer Modern and the
Latin Modern project. It avoids the spindliness of most other
Type 1 versions of Computer Modern.

%files
%doc %{_texmfdistdir}/doc/fonts/mlmodern
%{_texmfdistdir}/fonts/map/dvips/mlmodern
%{_texmfdistdir}/fonts/tfm/public/mlmodern
%{_texmfdistdir}/fonts/type1/public/mlmodern
%{_texmfdistdir}/tex/latex/mlmodern

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10274 |21cr|texlive-mluexercise-56927-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mluexercise

Summary:	Exercises/homework at the Martin Luther University Halle-Wittenberg
Name:		texlive-mluexercise
Version:	56927
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(mluexercise.cls) = 2024
BuildArch:	noarch

%description
This package provides a template class for solving weekly
exercises at the Institute for Computer Science of Martin
Luther University Halle-Wittenberg. The class can be used by
all students--especially first semesters--to typeset their
exercises with low effort in beautiful LaTeX. A bunch of handy
macros are included that are used throughout many lectures
during the bachelor's degree program. The class is maintained
by the students' council of the university. The focus is on
encouraging first semester students to use LaTeX for
typesetting, thus the package has been kept as simple as
possible.

%files
%doc %{_texmfdistdir}/doc/latex/mluexercise
%{_texmfdistdir}/tex/latex/mluexercise

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10275 |21cr|texlive-mnras-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22142
# category Package
# catalog-ctan /macros/latex/contrib/mnras
# catalog-date 2011-04-20 18:25:54 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-mnras
Version:	0.1
Release:	1
Summary:	Monthly Notices of the Royal Astronomical Society
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mnras
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mnras.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mnras.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Package for preparing papers in the journal "Monthly Notices of
the Royal Astronomical Society".
 
#-----------------------------------------------------------------------
%files

%{_texmfdistdir}/tex/*
%{_texmfdistdir}/bibtex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex bibtex doc %{buildroot}%{_texmfdistdir}
 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10276 |21cr|texlive-mnsymbol-1.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/mnsymbol
# catalog-date 2008-08-22 15:19:59 +0200
# catalog-license pd
# catalog-version 1.4
Name:		texlive-mnsymbol
Version:	1.4
Release:	8
Summary:	Mathematical symbol font for Adobe MinionPro
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/mnsymbol
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mnsymbol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mnsymbol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mnsymbol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MnSymbol is a symbol font family, designed to be used in
conjunction with Adobe Minion Pro (via the MinionPro package).
Almost all of LaTeX and AMS mathematical symbols are provided;
remaining coverage is available from the MinionPro font with
the MinionPro package. The fonts are available in both MetaFont
and Adobe Type 1 formats, and a comprehensive support package
is provided. While the fonts were designed to fit with Minon
Pro, the design should fit well with other renaissance or
baroque faces: indeed, it will probably work with most fonts
that are neither too wide nor too thin, for example Palatino or
Times; it is known to look good with Sabon. There is no package
designed to configure its use with any font other than Minion
Pro, but (for example) simply loading mnsymbol after mathpazo
will probably do what is needed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/mnsymbol/MnSymbolA.enc
%{_texmfdistdir}/fonts/enc/dvips/mnsymbol/MnSymbolB.enc
%{_texmfdistdir}/fonts/enc/dvips/mnsymbol/MnSymbolC.enc
%{_texmfdistdir}/fonts/enc/dvips/mnsymbol/MnSymbolD.enc
%{_texmfdistdir}/fonts/enc/dvips/mnsymbol/MnSymbolE.enc
%{_texmfdistdir}/fonts/enc/dvips/mnsymbol/MnSymbolF.enc
%{_texmfdistdir}/fonts/enc/dvips/mnsymbol/MnSymbolS.enc
%{_texmfdistdir}/fonts/map/dvips/mnsymbol/MnSymbol.map
%{_texmfdistdir}/fonts/map/vtex/mnsymbol/MnSymbol.ali
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol-Bold10.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol-Bold12.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol-Bold5.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol-Bold6.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol-Bold7.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol-Bold8.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol-Bold9.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol10.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol12.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol5.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol6.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol7.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol8.otf
%{_texmfdistdir}/fonts/opentype/public/mnsymbol/MnSymbol9.otf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbol-Parameter.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA-Bold.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA-Bold10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA-Bold12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA-Bold5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA-Bold6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA-Bold7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA-Bold8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA-Bold9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolA9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB-Bold.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB-Bold10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB-Bold12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB-Bold5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB-Bold6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB-Bold7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB-Bold8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB-Bold9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolB9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC-Bold.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC-Bold10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC-Bold12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC-Bold5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC-Bold6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC-Bold7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC-Bold8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC-Bold9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolC9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD-Bold.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD-Bold10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD-Bold12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD-Bold5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD-Bold6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD-Bold7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD-Bold8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD-Bold9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolD9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE-Bold.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE-Bold10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE-Bold12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE-Bold5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE-Bold6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE-Bold7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE-Bold8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE-Bold9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolE9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF-Bold.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF-Bold10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF-Bold12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF-Bold5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF-Bold6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF-Bold7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF-Bold8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF-Bold9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolF9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS-Bold.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS-Bold10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS-Bold12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS-Bold5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS-Bold6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS-Bold7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS-Bold8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS-Bold9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS10.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS12.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS5.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS6.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS7.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS8.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/MnSymbolS9.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/Sym-Accent.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/Sym-Arrows.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/Sym-Base.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/Sym-Delim.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/Sym-Geometric.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/Sym-Init.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/Sym-Operators.mf
%{_texmfdistdir}/fonts/source/public/mnsymbol/Sym-Order.mf
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA-Bold10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA-Bold12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA-Bold5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA-Bold6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA-Bold7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA-Bold8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA-Bold9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolA9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB-Bold10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB-Bold12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB-Bold5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB-Bold6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB-Bold7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB-Bold8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB-Bold9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolB9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC-Bold10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC-Bold12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC-Bold5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC-Bold6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC-Bold7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC-Bold8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC-Bold9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolC9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD-Bold10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD-Bold12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD-Bold5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD-Bold6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD-Bold7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD-Bold8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD-Bold9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolD9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE-Bold10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE-Bold12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE-Bold5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE-Bold6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE-Bold7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE-Bold8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE-Bold9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolE9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF-Bold10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF-Bold12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF-Bold5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF-Bold6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF-Bold7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF-Bold8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF-Bold9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolF9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS-Bold10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS-Bold12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS-Bold5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS-Bold6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS-Bold7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS-Bold8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS-Bold9.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS10.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS12.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS5.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS6.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS7.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS8.tfm
%{_texmfdistdir}/fonts/tfm/public/mnsymbol/MnSymbolS9.tfm
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol-Bold10.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol-Bold12.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol-Bold5.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol-Bold6.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol-Bold7.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol-Bold8.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol-Bold9.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol10.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol12.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol5.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol6.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol7.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol8.pfb
%{_texmfdistdir}/fonts/type1/public/mnsymbol/MnSymbol9.pfb
%{_texmfdistdir}/tex/latex/mnsymbol/MnSymbol.sty
%doc %{_texmfdistdir}/doc/latex/mnsymbol/MnSymbol.pdf
%doc %{_texmfdistdir}/doc/latex/mnsymbol/README
#- source
%doc %{_texmfdistdir}/source/latex/mnsymbol/MnSymbol.drv
%doc %{_texmfdistdir}/source/latex/mnsymbol/MnSymbol.dtx
%doc %{_texmfdistdir}/source/latex/mnsymbol/MnSymbol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10277 |21cr|texlive-modeles-factures-belges-assocs-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-modeles-factures-belges-assocs
Version:	1.0.1
Release:	1
Summary:	Generate invoices for Belgian non-profit organizations
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/modeles-factures-belges-assocs
License:	Released under the LATEX Project Public License v1.3c or later
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/modeles-factures-belges-assocs.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/modeles-factures-belges-assocs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides templates and a sty file for generating
invoices for Belgian non-profit organizations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10278 |21cr|texlive-modernposter-2019.168.1.03.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-modernposter
Version:	2019.168.1.03.1
Release:	1
Summary:	It does something, internet doesn't provide detailed information
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/modernposter
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modernposter.doc.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modernposter.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Single line


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/modernposter
%doc %{_texmfdistdir}/doc/latex/modernposter

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10279 |21cr|texlive-modes-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname modes

Summary:	A collection of Metafont mode_def's
Name:		texlive-modes
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The modes file collects all known Metafont modes for printing
or display devices, of whatever printing technology. Special
provision is made for write-white printers, and a 'landscape'
mode is available, for making suitable fonts for printers with
pixels whose aspect is non-square. The file also provides
definitions that make \specials identifying the mode in
Metafont's GF output, and put coding information and other
Xerox-world information in the TFM file.

%files
%doc %{_texmfdistdir}/doc/fonts/modes
%{_texmfdistdir}/fonts/source/public/modes

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10280 |21cr|texlive-modulus-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-modulus
Version:	1.0
Release:	1
Summary:	Assists with quotient of division operations to counters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/modulus
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modulus.doc.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modulus.source.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modulus.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The modulus package provides non-destructive, TeX-primitive
macros for assigning the modulus and quotient of division
operations to counters.

#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/generic/modulus
%{_texmfdistdir}/source/generic/modulus
%doc %{_texmfdistdir}/doc/generic/modulus

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10281 |21cr|texlive-montserrat-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname montserrat

Summary:	Montserrat sans serif, otf and pfb, with LaTeX support files
Name:		texlive-montserrat
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LY1MontserratAlternates-Dnom.fd) = 2024
Provides:	tex(LY1MontserratAlternates-Inf.fd) = 2024
Provides:	tex(LY1MontserratAlternates-LF.fd) = 2024
Provides:	tex(LY1MontserratAlternates-Numr.fd) = 2024
Provides:	tex(LY1MontserratAlternates-OsF.fd) = 2024
Provides:	tex(LY1MontserratAlternates-Sup.fd) = 2024
Provides:	tex(LY1MontserratAlternates-TLF.fd) = 2024
Provides:	tex(LY1MontserratAlternates-TOsF.fd) = 2024
Provides:	tex(LY1Montserrat-Dnom.fd) = 2024
Provides:	tex(LY1Montserrat-Inf.fd) = 2024
Provides:	tex(LY1Montserrat-LF.fd) = 2024
Provides:	tex(LY1Montserrat-Numr.fd) = 2024
Provides:	tex(LY1Montserrat-OsF.fd) = 2024
Provides:	tex(LY1Montserrat-Sup.fd) = 2024
Provides:	tex(LY1Montserrat-TLF.fd) = 2024
Provides:	tex(LY1Montserrat-TOsF.fd) = 2024
Provides:	tex(montserrat.map) = 2024
Provides:	tex(montserrat.sty) = 2024
Provides:	tex(OT1MontserratAlternates-Dnom.fd) = 2024
Provides:	tex(OT1MontserratAlternates-Inf.fd) = 2024
Provides:	tex(OT1MontserratAlternates-LF.fd) = 2024
Provides:	tex(OT1MontserratAlternates-Numr.fd) = 2024
Provides:	tex(OT1MontserratAlternates-OsF.fd) = 2024
Provides:	tex(OT1MontserratAlternates-Sup.fd) = 2024
Provides:	tex(OT1MontserratAlternates-TLF.fd) = 2024
Provides:	tex(OT1MontserratAlternates-TOsF.fd) = 2024
Provides:	tex(OT1Montserrat-Dnom.fd) = 2024
Provides:	tex(OT1Montserrat-Inf.fd) = 2024
Provides:	tex(OT1Montserrat-LF.fd) = 2024
Provides:	tex(OT1Montserrat-Numr.fd) = 2024
Provides:	tex(OT1Montserrat-OsF.fd) = 2024
Provides:	tex(OT1Montserrat-Sup.fd) = 2024
Provides:	tex(OT1Montserrat-TLF.fd) = 2024
Provides:	tex(OT1Montserrat-TOsF.fd) = 2024
Provides:	tex(T1MontserratAlternates-Dnom.fd) = 2024
Provides:	tex(T1MontserratAlternates-Inf.fd) = 2024
Provides:	tex(T1MontserratAlternates-LF.fd) = 2024
Provides:	tex(T1MontserratAlternates-Numr.fd) = 2024
Provides:	tex(T1MontserratAlternates-OsF.fd) = 2024
Provides:	tex(T1MontserratAlternates-Sup.fd) = 2024
Provides:	tex(T1MontserratAlternates-TLF.fd) = 2024
Provides:	tex(T1MontserratAlternates-TOsF.fd) = 2024
Provides:	tex(T1Montserrat-Dnom.fd) = 2024
Provides:	tex(T1Montserrat-Inf.fd) = 2024
Provides:	tex(T1Montserrat-LF.fd) = 2024
Provides:	tex(T1Montserrat-Numr.fd) = 2024
Provides:	tex(T1Montserrat-OsF.fd) = 2024
Provides:	tex(T1Montserrat-Sup.fd) = 2024
Provides:	tex(T1Montserrat-TLF.fd) = 2024
Provides:	tex(T1Montserrat-TOsF.fd) = 2024
Provides:	tex(TS1MontserratAlternates-LF.fd) = 2024
Provides:	tex(TS1MontserratAlternates-OsF.fd) = 2024
Provides:	tex(TS1MontserratAlternates-TLF.fd) = 2024
Provides:	tex(TS1MontserratAlternates-TOsF.fd) = 2024
Provides:	tex(TS1Montserrat-LF.fd) = 2024
Provides:	tex(TS1Montserrat-OsF.fd) = 2024
Provides:	tex(TS1Montserrat-TLF.fd) = 2024
Provides:	tex(TS1Montserrat-TOsF.fd) = 2024
Provides:	tex(zmo_2lqlus.enc) = 2024
Provides:	tex(zmo_2sgwql.enc) = 2024
Provides:	tex(zmo_35ovjx.enc) = 2024
Provides:	tex(zmo_46isxp.enc) = 2024
Provides:	tex(zmo_5xld5w.enc) = 2024
Provides:	tex(zmo_75k7z2.enc) = 2024
Provides:	tex(zmo_7l4c7j.enc) = 2024
Provides:	tex(zmo_7l6pgo.enc) = 2024
Provides:	tex(zmo_7sawpm.enc) = 2024
Provides:	tex(zmo_7yzfgj.enc) = 2024
Provides:	tex(zmo_b4nxop.enc) = 2024
Provides:	tex(zmo_b657mx.enc) = 2024
Provides:	tex(zmo_bapnwu.enc) = 2024
Provides:	tex(zmo_bhkf55.enc) = 2024
Provides:	tex(zmo_blyc36.enc) = 2024
Provides:	tex(zmo_c4h6ot.enc) = 2024
Provides:	tex(zmo_cm3oqe.enc) = 2024
Provides:	tex(zmo_ctxcke.enc) = 2024
Provides:	tex(zmo_drbxok.enc) = 2024
Provides:	tex(zmo_dvhcr3.enc) = 2024
Provides:	tex(zmo_each7f.enc) = 2024
Provides:	tex(zmo_f6ejpj.enc) = 2024
Provides:	tex(zmo_fbdit4.enc) = 2024
Provides:	tex(zmo_fkzqgd.enc) = 2024
Provides:	tex(zmo_fmi5lv.enc) = 2024
Provides:	tex(zmo_gcixud.enc) = 2024
Provides:	tex(zmo_h6jra2.enc) = 2024
Provides:	tex(zmo_hlvv6p.enc) = 2024
Provides:	tex(zmo_jb2i34.enc) = 2024
Provides:	tex(zmo_jhzg4t.enc) = 2024
Provides:	tex(zmo_jjp77t.enc) = 2024
Provides:	tex(zmo_jjwbah.enc) = 2024
Provides:	tex(zmo_jo7tnr.enc) = 2024
Provides:	tex(zmo_k7iqhv.enc) = 2024
Provides:	tex(zmo_li2ufe.enc) = 2024
Provides:	tex(zmo_lzhlbi.enc) = 2024
Provides:	tex(zmo_mp47y7.enc) = 2024
Provides:	tex(zmo_mwlday.enc) = 2024
Provides:	tex(zmo_n2k42m.enc) = 2024
Provides:	tex(zmo_nszfm3.enc) = 2024
Provides:	tex(zmo_nwaz6g.enc) = 2024
Provides:	tex(zmo_pdf5b7.enc) = 2024
Provides:	tex(zmo_poz7al.enc) = 2024
Provides:	tex(zmo_q22ex3.enc) = 2024
Provides:	tex(zmo_qex2f4.enc) = 2024
Provides:	tex(zmo_qs57ix.enc) = 2024
Provides:	tex(zmo_ro7vi7.enc) = 2024
Provides:	tex(zmo_rrs54x.enc) = 2024
Provides:	tex(zmo_ssrkmg.enc) = 2024
Provides:	tex(zmo_t44pvm.enc) = 2024
Provides:	tex(zmo_tq4ocg.enc) = 2024
Provides:	tex(zmo_tti6co.enc) = 2024
Provides:	tex(zmo_tygrj7.enc) = 2024
Provides:	tex(zmo_umrhwx.enc) = 2024
Provides:	tex(zmo_upca4a.enc) = 2024
Provides:	tex(zmo_w4rwtq.enc) = 2024
Provides:	tex(zmo_wxmaut.enc) = 2024
Provides:	tex(zmo_wzhhkn.enc) = 2024
Provides:	tex(zmo_x2ovsi.enc) = 2024
Provides:	tex(zmo_xcjjqo.enc) = 2024
Provides:	tex(zmo_ylc3fo.enc) = 2024
Provides:	tex(zmo_zmgh2c.enc) = 2024
Provides:	tex(zmo_znhcko.enc) = 2024
Provides:	tex(zmo_zrxj4s.enc) = 2024
BuildArch:	noarch

%description
Montserrat is a geometric sans-serif typeface designed by
Julieta Ulanovsky, inspired by posters and signage from her
historical Buenos Aires neighborhood of the same name. It is
rather close in spirit to Gotham and Proxima Nova, but has its
own individual appearance -- more informal, less extended, and
more idiosyncratic. It is provided in a total of nine different
weights, each having eight figure styles and small caps in both
upright and italic shapes. There are two quite different
versions that don't fit into the usual LaTeX classifications.
The version having the appellation "Alternates" has letter
shapes that are much more rounded than the default version,
reflecting the signage in the neighborhood of Montserrat.

%files
%doc %{_texmfdistdir}/doc/fonts/montserrat/
%{_texmfdistdir}/fonts/enc/dvips/montserrat/
%{_texmfdistdir}/fonts/map/dvips/montserrat/
%{_texmfdistdir}/fonts/opentype/public/montserrat/
%{_texmfdistdir}/fonts/tfm/public/montserrat/
%{_texmfdistdir}/fonts/type1/public/montserrat/
%{_texmfdistdir}/fonts/vf/public/montserrat/
%{_texmfdistdir}/tex/latex/montserrat/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10282 |21cr|texlive-moodle-65672-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname moodle

Summary:	Generating Moodle quizzes via LaTeX
Name:		texlive-moodle
Version:	65672
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-moodle = 2024
Provides:	tex(moodle.sty) = 2024
BuildArch:	noarch

%description
A package for writing Moodle quizzes in LaTeX. In addition to
typesetting the quizzes for proofreading, the package compiles
an XML file to be uploaded to a Moodle server.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/moodle/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10283 |21cr|texlive-morisawa-46946-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname morisawa

Summary:	Enables selection of 5 standard Japanese fonts for pLaTeX + dvips
Name:		texlive-morisawa
Version:	46946
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(FutoGoB101-Bold-H.tfm) = 2024
Provides:	tex(FutoGoB101-Bold-H.vf) = 2024
Provides:	tex(FutoGoB101-Bold-J.tfm) = 2024
Provides:	tex(FutoGoB101-Bold-J.vf) = 2024
Provides:	tex(FutoGoB101-Bold-V.tfm) = 2024
Provides:	tex(FutoGoB101-Bold-V.vf) = 2024
Provides:	tex(futogo-b.tfm) = 2024
Provides:	tex(futogo-b-v.tfm) = 2024
Provides:	tex(FutoMinA101-Bold-H.tfm) = 2024
Provides:	tex(FutoMinA101-Bold-H.vf) = 2024
Provides:	tex(FutoMinA101-Bold-J.tfm) = 2024
Provides:	tex(FutoMinA101-Bold-J.vf) = 2024
Provides:	tex(FutoMinA101-Bold-V.tfm) = 2024
Provides:	tex(FutoMinA101-Bold-V.vf) = 2024
Provides:	tex(futomin-b.tfm) = 2024
Provides:	tex(futomin-b-v.tfm) = 2024
Provides:	tex(GothicBBB-Medium-H.tfm) = 2024
Provides:	tex(GothicBBB-Medium-H.vf) = 2024
Provides:	tex(GothicBBB-Medium-J.tfm) = 2024
Provides:	tex(GothicBBB-Medium-J.vf) = 2024
Provides:	tex(GothicBBB-Medium-V.tfm) = 2024
Provides:	tex(GothicBBB-Medium-V.vf) = 2024
Provides:	tex(gtbbb-m.tfm) = 2024
Provides:	tex(gtbbb-m-v.tfm) = 2024
Provides:	tex(Jun101-Light-H.tfm) = 2024
Provides:	tex(Jun101-Light-H.vf) = 2024
Provides:	tex(Jun101-Light-J.tfm) = 2024
Provides:	tex(Jun101-Light-J.vf) = 2024
Provides:	tex(Jun101-Light-V.tfm) = 2024
Provides:	tex(Jun101-Light-V.vf) = 2024
Provides:	tex(jun101-l.tfm) = 2024
Provides:	tex(jun101-l-v.tfm) = 2024
Provides:	tex(morisawa5.map) = 2024
Provides:	tex(morisawa.sty) = 2024
Provides:	tex(Ryumin-Light-H.tfm) = 2024
Provides:	tex(Ryumin-Light-H.vf) = 2024
Provides:	tex(Ryumin-Light-J.tfm) = 2024
Provides:	tex(Ryumin-Light-J.vf) = 2024
Provides:	tex(Ryumin-Light-V.tfm) = 2024
Provides:	tex(Ryumin-Light-V.vf) = 2024
Provides:	tex(ryumin-l.tfm) = 2024
Provides:	tex(ryumin-l-v.tfm) = 2024
BuildArch:	noarch

%description
The package enables selection of 5 standard Japanese fonts for
pLaTeX + dvips. It was originally written by Haruhiko Okumura
as part of jsclasses bundle, and the TFM/VF files were
previously distributed as part of the ptex-fonts package.

%files
%doc %{_texmfdistdir}/doc/fonts/morisawa/
%{_texmfdistdir}/fonts/map/dvipdfmx/morisawa/
%{_texmfdistdir}/fonts/tfm/public/morisawa/
%{_texmfdistdir}/fonts/vf/public/morisawa/
%{_texmfdistdir}/tex/latex/morisawa/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10284 |21cr|texlive-mpfonts-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mpfonts

Summary:	Computer Modern Type 3 fonts converted using MetaPost
Name:		texlive-mpfonts
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(mpfonts.map) = 2024
BuildArch:	noarch

%description
The Computer Modern fonts are available in Type 1 format, but
these renditions are somewhat thin and spindly, and produce
much lighter results than the originals. It is alternatively
possible to use Metafont bitmaps, but this has its
disadvantages in comparison with vector fonts. These fonts are
conversions to Type 3 fonts, done entirely in MetaPost; they
are vector fonts which are a direct conversion from the
original Metafont files, so they are the design most authentic
to the originals. However, these fonts, because they are
PostScript Type 3 fonts, are not suitable for on-screen
reading, and should probably only be used for printing. Note:
do NOT add the map file to updmap!

%files
%doc %{_texmfdistdir}/doc/fonts/mpfonts
%{_texmfdistdir}/fonts/map/dvips/mpfonts
%{_texmfdistdir}/fonts/type3/mpfonts

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10285 |21cr|texlive-mucproc-20170418-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mucproc
Version:	20170418
Release:	1
Summary:	Conference proceedings for the German MuC-conference
Group:		Publishing
URL:		https://ctan.org/pkg/mucproc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mucproc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mucproc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The mucproc.cls is a document class to support the formatting
guidelines for submissions to the German Mensch und Computer
conference. This work consists of the files mucproc.dtx and
mucproc.ins and the derived files mucproc.cls,
mucfontsize10pt.clo. A compilable demonstration file using the
mucproc class can be found on
https://github.com/Blubu/mucproc/. This example fulfills the
formatting guidelines for MuC 2017.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10286 |21cr|texlive-mugsthesis-20170418-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mugsthesis
Version:	20170418
Release:	1
Summary:	Thesis class complying with Marquette University Graduate School requirements
Group:		Publishing
URL:		https://ctan.org/pkg/mugsthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mugsthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mugsthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle offers a thesis class, based on memoir, that
complies with Marquette University Graduate School
requirements.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc



#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10287 |21cr|texlive-muling-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname muling

Summary:	MA Thesis class for the Department of Linguistics, University of Mumbai
Name:		texlive-muling
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(muling.cls) = 2024
BuildArch:	noarch

%description
This is a class file for writing MA thesis as required by the
Department of Linguistics at the University of Mumbai.

%files
%doc %{_texmfdistdir}/doc/latex/muling
%{_texmfdistdir}/tex/latex/muling

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10288 |21cr|texlive-multiaudience-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-multiaudience
Version:	20160624
Release:	1
Summary:	Several versions of output from the same source
Group:		Publishing
URL:		https://www.ctan.org/pkg/multiaudience
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiaudience.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiaudience.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows to generate several versions of the same
document for different audiences.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10289 |21cr|texlive-multibib-1.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/multibib
# catalog-date 2008-12-10 20:42:30 +0100
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-multibib
Version:	1.4
Release:	8
Summary:	Multiple bibliographies within one document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/multibib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Multibib the creation of references to multiple bibliographies
within one document. It thus provides complementary
functionality to packages like bibunits and chapterbib, which
allow the creation of one bibliography for multiple, but
different parts of the document. Multibib is compatible with
inlinebib, natbib, and koma-script.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/multibib/mbplain.bst
%{_texmfdistdir}/bibtex/bst/multibib/mbunsrtdin.bst
%{_texmfdistdir}/makeindex/multibib/mbgglo.ist
%{_texmfdistdir}/makeindex/multibib/mbgind.ist
%{_texmfdistdir}/tex/latex/multibib/multibib.sty
%doc %{_texmfdistdir}/doc/latex/multibib/README
%doc %{_texmfdistdir}/doc/latex/multibib/bibtexall
%doc %{_texmfdistdir}/doc/latex/multibib/multibib.pdf
#- source
%doc %{_texmfdistdir}/source/latex/multibib/multibib.dtx
%doc %{_texmfdistdir}/source/latex/multibib/multibib.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10290 |21cr|texlive-multibibliography-1.03-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30939
# category Package
# catalog-ctan /macros/latex/contrib/multibibliography
# catalog-date 2013-06-25 10:24:07 +0200
# catalog-license lppl1.3
# catalog-version 1.03
Name:		texlive-multibibliography
Version:	1.03
Release:	12
Summary:	Multiple versions of a bibliography, with different sort orders
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/multibibliography
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibibliography.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibibliography.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibibliography.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-multibibliography.bin = %{EVRD}

%description
Conventional standards for bibliography styles impose a forced
choice between index and name/year citations, and corresponding
references. The package avoids this choice, by providing
alphabetic, sequenced, and even chronological orderings of
references. Inline citations, that integrate these
heterogeneous styles, are also supported (and work with other
bibliography packages).


#-----------------------------------------------------------------------
%files
%{_bindir}/multibibliography
%{_texmfdistdir}/bibtex/bst/multibibliography/chronological.bst
%{_texmfdistdir}/scripts/multibibliography/multibibliography.pl
%{_texmfdistdir}/tex/latex/multibibliography/multibibliography.sty
%doc %{_texmfdistdir}/doc/latex/multibibliography/Makefile
%doc %{_texmfdistdir}/doc/latex/multibibliography/README
%doc %{_texmfdistdir}/doc/latex/multibibliography/figure.pdf
%doc %{_texmfdistdir}/doc/latex/multibibliography/multibibliography.bib
%doc %{_texmfdistdir}/doc/latex/multibibliography/multibibliography.pdf
%doc %{_texmfdistdir}/doc/latex/multibibliography/tug-paper.pdf
%doc %{_texmfdistdir}/doc/latex/multibibliography/tug-paper.tex
%doc %{_texmfdistdir}/doc/latex/multibibliography/type.bib
#- source
%doc %{_texmfdistdir}/source/latex/multibibliography/multibibliography.dtx
%doc %{_texmfdistdir}/source/latex/multibibliography/multibibliography.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/multibibliography/multibibliography.pl multibibliography
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10291 |21cr|texlive-multidef-40637-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname multidef

Summary:	Quickly define several similar macros
Name:		texlive-multidef
Version:	40637
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-multidef = 2024
Provides:	tex(multidef.sty) = 2024
BuildArch:	noarch

%description
Multidef provides a simple way of defining several macros
having similar definitions.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/multidef/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10292 |21cr|texlive-multifootnote-63456-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname multifootnote

Summary:	Multiple numbers for the same footnote
Name:		texlive-multifootnote
Version:	63456
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(multifootnote.sty) = 2024
BuildArch:	noarch

%description
This package provides several commands for generating footnotes
with multiple numbers (resp. marks).

%files
%doc %{_texmfdistdir}/doc/latex/multifootnote
%{_texmfdistdir}/tex/latex/multifootnote

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10293 |21cr|texlive-multiobjective-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/multiobjective
# catalog-date 2008-09-09 11:27:07 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-multiobjective
Version:	1.0
Release:	8
Summary:	Symbols for multibojective optimisation etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/multiobjective
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiobjective.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiobjective.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiobjective.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a series of operators commonly used in
papers related to multiobjective optimisation, multiobjective
evolutionary algorithms, multicriteria decision making and
similar fields.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/multiobjective/multiobjective.sty
%doc %{_texmfdistdir}/doc/latex/multiobjective/README
%doc %{_texmfdistdir}/doc/latex/multiobjective/multiobjective.pdf
#- source
%doc %{_texmfdistdir}/source/latex/multiobjective/multiobjective.dtx
%doc %{_texmfdistdir}/source/latex/multiobjective/multiobjective.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10294 |21cr|texlive-multiple-choice-63722-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname multiple-choice

Summary:	LaTeX package for multiple-choice questions
Name:		texlive-multiple-choice
Version:	63722
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(multiple-choice.sty) = 2024
BuildArch:	noarch

%description
This package adjusts the choices of the multiple-choice
question automatically. It has been wholly inspired by the work
of Enrico Gregorio and improved by Vafa Khalighi and I've just
packed and redistributed it under the name of the
multiple-choice package.

%files
%doc %{_texmfdistdir}/doc/latex/multiple-choice
%{_texmfdistdir}/tex/latex/multiple-choice

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10295 |21cr|texlive-munich-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/munich
# catalog-date 2007-03-10 12:18:05 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-munich
Version:	20190228
Release:	1
Summary:	An alternative authordate bibliography style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/munich
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/munich.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/munich.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Munich BibTeX style is produced with custom-bib, as a
German (and, more generally, Continental European) alternative
to such author-date styles as harvard and oxford.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/munich/munich.bst
%doc %{_texmfdistdir}/doc/latex/munich/README
%doc %{_texmfdistdir}/doc/latex/munich/documenation_munich_Bibtex_style.pdf
%doc %{_texmfdistdir}/doc/latex/munich/documenation_munich_Bibtex_style.tex
%doc %{_texmfdistdir}/doc/latex/munich/example_DB.bib
%doc %{_texmfdistdir}/doc/latex/munich/example_munich_Bibtex_style.pdf
%doc %{_texmfdistdir}/doc/latex/munich/example_munich_Bibtex_style.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10296 |21cr|texlive-musical-54758-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname musical

Summary:	Typeset (musical) theatre scripts
Name:		texlive-musical
Version:	54758
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(musical.sty) = 2024
BuildArch:	noarch

%description
This package is designed to simplify the development and
distribution of scripts for theatrical musicals, especially
ones under development. The output is formatted to follow
generally accepted script style[1] while also maintaining a
high level of typographic integrity, and includes commands for
dialog, lyrics, stage directions, music and dance cues,
rehearsal marks, and more. It gracefully handles dialog that
crosses page breaks, and can generate lists of songs and lists
of dances in the show. [1] There are lots of references for the
One True Way to format a script. Naturally, none of them agree.

%files
%doc %{_texmfdistdir}/doc/latex/musical
%{_texmfdistdir}/tex/latex/musical

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10297 |21cr|texlive-musicography-2019.05.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 51251
# category Package
# catalogue-ctan /macros/latex/contrib/musicography
# catalog-date 2019-05-28 20:23:04 +0200
# catalog-license lppl1.3
# catalog-version 2.7
Name:		texlive-musicography
Version:	2019.05.28
Release:	1
Summary:	Accessing symbols for music writing with pdfLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/musicography
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musicography.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musicography.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
his package makes available the most commonly used symbols in
writing about music in a way that can be used with pdfLaTeX and
looks consistent and attractive. It includes accidentals,
meters, and notes of different rhythmic values. The package
builds on the approach used in the harmony package, where the
symbols are taken from the MusiXTeX fonts. But it provides a
larger range of symbols and a more flexible, user-friendly
interface written using xparse and stackengine.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/musicography/
%doc %{_texmfdistdir}/doc/latex/musicography/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10298 |21cr|texlive-mylatex-56751-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mylatex

Summary:	Make a format containing a document's preamble
Name:		texlive-mylatex
Version:	56751
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The file mylatex.ltx permits you to create a format that
pre-loads a set of package files (and/or other macros) that you
regularly use. In some circumstances, this can be a great
advantage (though on an ordinarily fast modern computer on the
desktop, gains will be limited). The general scheme is to
initialise your usage by a command of the form: latex -ini
mylatex.ltx <document> whick will create a format file
mylatex.fmt, which you then use as: latex -fmt=mylatex
<document>

%files
%doc %{_texmfdistdir}/doc/latex/mylatex
%{_texmfdistdir}/tex/latex/mylatex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10299 |21cr|texlive-mynsfc-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mynsfc
Version:	3.0
Release:	1
Summary:	XeLaTeX template for writing the main body of NSFC proposals
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/xetex/latex/mynsfc
License:	lppl1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mynsfc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mynsfc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mynsfc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a XeLaTeX template for writing the main
body of National Natural Science Foundation of China (NSFC)
proposals, which are allowed to apply online. The package
defines styles of the outlines and uses BibLaTeX/biber for the
management of references.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10300 |21cr|texlive-naive-ebnf-66017-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname naive-ebnf

Summary:	EBNF in Plain Text
Name:		texlive-naive-ebnf
Version:	66017
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(filecontentsdef.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-l3kernel
#Requires:	tex(pgfopts.sty)
Provides:	tex(naive-ebnf.sty) = 2024
BuildArch:	noarch

%description
With the help of this LaTeX package a context-free grammar
(CFG) may be rendered in a plain-text mode using a simplified
Extended Backus-Naur Form (EBNF) notation.

%files
%doc %{_texmfdistdir}/doc/latex/naive-ebnf
%{_texmfdistdir}/tex/latex/naive-ebnf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10301 |21cr|texlive-namedef-55881-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname namedef

Summary:	TeX definitions with named parameters
Name:		texlive-namedef
Version:	55881
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-l3kernel
Provides:	tex(namedef.sty) = 2024
BuildArch:	noarch

%description
This package provides a prefix \named to be used in TeX
definitions so that parameters can be identified by their name
rather than by number, giving parameters a semantic rather than
syntactic meaning, making it easy to understand long
definitions. A usual definition reads: \def\SayHello#1{Hello,
#1!} but with namedef you can replace #1 by, say, #[person]:
\named\def\SayHello#[person]{Hello, #[person]!} and \named will
figure out the numbering of the parameters for you.

%files
%doc %{_texmfdistdir}/doc/generic/namedef
%{_texmfdistdir}/tex/generic/namedef

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10302 |21cr|texlive-namedtensor-65346-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname namedtensor

Summary:	Macros for named tensor notation
Name:		texlive-namedtensor
Version:	65346
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(namedtensor.sty) = 2024
BuildArch:	noarch

%description
This style file provides macros for named tensor notation.
Please see the paper 'Named Tensor Notation' for background on
this notation.

%files
%doc %{_texmfdistdir}/doc/latex/namedtensor
%{_texmfdistdir}/tex/latex/namedtensor

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10303 |21cr|texlive-nanicolle-56224-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nanicolle

Summary:	Typesetting herbarium specimen labels
Name:		texlive-nanicolle
Version:	56224
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(nanicolle.cls) = 2024
BuildArch:	noarch

%description
This package provides a LaTeX class nanicolle.cls for
typesetting collection labels and identification labels in
Chinese style or in western style for plant herbarium
specimens. So far, documents using this class can only be
compiled with XeLaTeX. Note: The name of the package is a
compound of the Japanese "nani" (meaning "what") and a
truncated form of the English "collect", thus expressing the
ideas of identification/classification (taxonomy) and
collection.

%files
%doc %{_texmfdistdir}/doc/xelatex/nanicolle
%{_texmfdistdir}/tex/xelatex/nanicolle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10304 |21cr|texlive-na-position-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-na-position	
Version:		1.2
Release:		1
Summary:		Tables of relative positions of curves and asymptotes or tangents in Arabic documents
Group:		Publishing
URL:		https://ctan.org/pkg/na-position
License:		The LATEX Project Public License 1.3c
Source0:		https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/na-position.tar.xz
Source1:		https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/na-position.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package facilitates, in most cases, the creation of tables 
of relative positions of a curve and its asymptote or a curve 
and a tangent in one of its points.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10305 |21cr|texlive-nar-38100.3.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nar

Summary:	BibTeX style for Nucleic Acid Research
Name:		texlive-nar
Version:	38100.3.19
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-nar = 2024
BuildArch:	noarch

%description
This BibTeX bibliography style is for the journal Nucleic Acid
Research. It was adapted from the standard unsrt.bst style
file.

%files
%{_texmfdistdir}/bibtex/bst/nar/

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10306 |21cr|texlive-natded-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32693
# category Package
# catalog-ctan /macros/latex/contrib/natded
# catalog-date 2014-01-16 17:47:37 +0100
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-natded
Version:	0.1
Release:	7
Summary:	Typeset natural deduction proofs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/natded
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/natded.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/natded.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to typeset proofs in the style
used by Jaskowski, or that of Kalish and Montague.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/natded/natded.sty
%doc %{_texmfdistdir}/doc/latex/natded/README.md
%doc %{_texmfdistdir}/doc/latex/natded/extended_doc.pdf
%doc %{_texmfdistdir}/doc/latex/natded/extended_doc.tex
%doc %{_texmfdistdir}/doc/latex/natded/natded.pdf
%doc %{_texmfdistdir}/doc/latex/natded/natded.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10307 |21cr|texlive-nath-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nath
Version:	20190228
Release:	1
Summary:	Natural mathematics notation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nath
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nath.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Nath is a LaTeX (both 2e and 2.09) style to separate
presentation and content in mathematical typography. The style
delivers a particular context-dependent presentation on the
basis of a rather coarse context-independent notation.
Highlighted features: depending on the context, the command
\frac produces either built-up or case or solidus fractions,
with parentheses added whenever required for preservation of
the mathematical meaning; delimiters adapt their size to the
material enclosed, rendering \left and \right almost obsolete.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nath
%doc %{_texmfdistdir}/doc/latex/nath

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10308 |21cr|texlive-navigator-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29067
# category Package
# catalog-ctan /macros/generic/navigator
# catalog-date 2012-11-14 17:56:09 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-navigator
Version:	1.1
Release:	3
Summary:	PDF features across formats and engines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/navigator
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/navigator.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/navigator.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Navigator implements PDF features for all formats (with some
limitations in ConTeXt) with PDFTeX, LuaTeX and XeTeX (i.e.
xdvipdfmx). Features include: - Customizable outlines (i.e.
bookmarks); - Anchors; - Links and actions (e.g. JavaScript or
user-defined PDF actions); - File embedding (not in ConTeXt); -
Document information and PDF viewer's display (not in ConTeXt);
and - Commands to create and use raw PDF objects. Navigator
requires texapi and yax, both version at least 1.03.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/navigator/navigator.sty
%{_texmfdistdir}/tex/generic/navigator/navigator.tex
%{_texmfdistdir}/tex/generic/navigator/t-navigator.tex
%doc %{_texmfdistdir}/doc/generic/navigator/README
%doc %{_texmfdistdir}/doc/generic/navigator/navigator-doc.pdf
%doc %{_texmfdistdir}/doc/generic/navigator/navigator-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10309 |21cr|texlive-navydocs-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-navydocs
Version:	1.1
Release:	1
Summary:	Support for Technical Reports by US Navy Organizations
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/navydocs
License:	TLPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/navydocs.doc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/navydocs.source.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/navydocs.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The navydocs package provides an easy means for creating title
pages and the following supplementary material pages used in
technical reports by United States Navy organizations. These
pages are generated by specifying the page content via a set of
commands and then calling a macro to create the page at its
occurence in the document. This package is provided in the hope
that it proves useful to other Navy organizations, with users
contributing macros for their organizations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10310 |21cr|texlive-nchairx-60196-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nchairx

Summary:	Maths macros from chair X of Wurzburg University
Name:		texlive-nchairx
Version:	60196
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(chairxmath.sty) = 2024
Provides:	tex(nchairx.sty) = 2024
BuildArch:	noarch

%description
This package was developed by members of the chair for
mathematical physics at the University of Wurzburg as a
collection of macros and predefined environments for quickly
creating nice mathematical documents. (Note concerning the
package name: the "n" stands for "new", the "X" is a roman 10.)

%files
%doc %{_texmfdistdir}/doc/latex/nchairx
%{_texmfdistdir}/tex/latex/nchairx

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10311 |21cr|texlive-ndsu-thesis-20211015-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 46639
# category Package
# catalog-ctan /macros/latex/contrib/ndsu-thesis
# catalog-date 2018-02-14 07:10:49 +0100
# catalog-license lppl1.3
# catalogue-topics dissertation class
Name:		texlive-ndsu-thesis
Version:	20211015
Release:	1
Epoch:		1
Summary:	A class for generating disquisitions
Group:		Publishing
URL:		https://www.ctan.org/pkg/ndsu-thesis
License:	PPL 1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/ndsu-thesis.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/ndsu-thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-ndsu-thesis.bin = %{EVRD}

%description
A class for generating disquisitions, intended to be in compliance with North Dakota State University requirements. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10312 |21cr|texlive-ndsu-thesis-2022-63881-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ndsu-thesis-2022

Summary:	North Dakota State University disquisition class 2022
Name:		texlive-ndsu-thesis-2022
Version:	63881
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ndsu-thesis-2022.cls) = 2024
BuildArch:	noarch

%description
A class for generating disquisitions (MS and PhD - thesis,
dissertation, and paper), intended to be in compliance with
North Dakota State University requirements. Updated (2022)
North Dakota State University LaTeX thesis class features
several functionalities, including not limited to, numbered and
non-numbered versions, overall justification, document point
sizes, fonts options, SI units, show frames, URL breaking, long
tables, subfigures, multi-page figures, chapter styles,
subfiles, algorithm listing, BibTeX and BibLaTeX support,
individual chapter and whole document bibliography, natbib
citations, and clever references. The supplied simple and
extended samples illustrate these features and guide students
to use the class.

%files
%doc %{_texmfdistdir}/doc/latex/ndsu-thesis-2022
%{_texmfdistdir}/tex/latex/ndsu-thesis-2022

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10313 |21cr|texlive-ndsu-thesis-46639-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ndsu-thesis

Summary:	North Dakota State University disquisition class
Name:		texlive-ndsu-thesis
Version:	46639
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-ndsu-thesis = 2024
Provides:	tex(ndsu-thesis.cls) = 2024
BuildArch:	noarch

%description
A class for generating disquisitions, intended to be in
compliance with North Dakota State University requirements.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/ndsu-thesis/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10314 |21cr|texlive-nevelok-20151205-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nevelok
Version:	20151205
Release:	1
Summary:	LaTeX package for automatic definite articles for Hungarian
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/nevelok
License:	The LaTeX Project Public License 1.3
Source0:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/nevelok.tar.xz
Source1:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/nevelok.doc.tar.xz
Source2:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/nevelok.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX package for automatic definite articles for Hungarian.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10315 |21cr|texlive-newcastle-bst-62856-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname newcastle-bst

Summary:	A BibTeX style to format reference lists in the Harvard at Newcastle style
Name:		texlive-newcastle-bst
Version:	62856
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides a BibTeX style to format reference lists
in the Harvard at Newcastle style recommended by Newcastle
University. It should be used alongside natbib for citations.

%files
%doc %{_texmfdistdir}/doc/bibtex/newcastle-bst
%{_texmfdistdir}/bibtex/bst/newcastle-bst

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10316 |21cr|texlive-newcomputermodern-66327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname newcomputermodern

Summary:	Computer Modern fonts including matching non-latin alphabets
Name:		texlive-newcomputermodern
Version:	66327
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(newcomputermodern.sty) = 2024
BuildArch:	noarch

%description
This is a new assembly of Computer Modern fonts including
extensions in many directions for both Latin based languages,
non-Latin based languages and Mathematics, all compatible in
style to CM fonts. In addition to the Regular weight of
Computer Modern, it provides a Book weight for heavier
printing.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/newcomputermodern
%{_texmfdistdir}/tex/latex/newcomputermodern

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10317 |21cr|texlive-newfloat-52906-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname newfloat

Summary:	Define new floating environments
Name:		texlive-newfloat
Version:	52906
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(newfloat.sty) = 2024
BuildArch:	noarch

%description
The package offers the command \DeclareFloatingEnvironment,
which the user may use to define new floating environments
which behave like the LaTeX standard foating environments
figure and table.

%files
%doc %{_texmfdistdir}/doc/latex/newfloat
%{_texmfdistdir}/tex/latex/newfloat

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10318 |21cr|texlive-newpax-64415-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname newpax

Summary:	Experimental package to extract and reinsert PDF annotations
Name:		texlive-newpax
Version:	64415
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(auxhook.sty)
#Requires:	tex(etoolbox.sty)
Requires:	tex(graphicx.sty)
Requires:	tex(kvoptions.sty)
Requires:	tex(kvsetkeys.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(ltxcmds.sty)
Requires:	tex(pdfmanagement-testphase.sty)
#Requires:	tex(xfp.sty)
Provides:	tex(newpax.sty) = 2024
BuildArch:	noarch

%description
The package is based on the pax package from Heiko Oberdiek. It
offers a lua-based alternative to the java based pax.jar to
extract the annotations from a PDF. The resulting file can then
be used together with pax.sty. It also offers an extended style
which works with all three major engines.

%files
%doc %{_texmfdistdir}/doc/latex/newpax
%{_texmfdistdir}/tex/latex/newpax

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10319 |21cr|texlive-newpx-61806-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname newpx

Summary:	Alternative uses of the PX fonts, with improved metrics
Name:		texlive-newpx
Version:	61806
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsmath.sty)
#Requires:	tex(binhex.tex)
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	texlive-pxfonts
Requires:	texlive-tex-gyre
#Requires:	tex(newtxmath.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(lmsnpxsy.fd) = 2024
Provides:	tex(lmxnpxexx.fd) = 2024
Provides:	tex(ly1npxtt.fd) = 2024
Provides:	tex(ly1zpldnom.fd) = 2024
Provides:	tex(ly1zplinf.fd) = 2024
Provides:	tex(ly1zpllf.fd) = 2024
Provides:	tex(ly1zplosf.fd) = 2024
Provides:	tex(ly1zplsubs.fd) = 2024
Provides:	tex(ly1zplsups.fd) = 2024
Provides:	tex(ly1zplth-lf.fd) = 2024
Provides:	tex(ly1zplth-osf.fd) = 2024
Provides:	tex(ly1zplth-tlf.fd) = 2024
Provides:	tex(ly1zplth-tosf.fd) = 2024
Provides:	tex(ly1zpltlf.fd) = 2024
Provides:	tex(ly1zpltosf.fd) = 2024
Provides:	tex-newpx = 2024
Provides:	tex(newpx.map) = 2024
Provides:	tex(newpxmath.sty) = 2024
Provides:	tex(newpx-subs.tex) = 2024
Provides:	tex(newpxtext.sty) = 2024
Provides:	tex(npxdnom_LY1.enc) = 2024
Provides:	tex(npxdnom_OT1.enc) = 2024
Provides:	tex(npxdnom_T1.enc) = 2024
Provides:	tex(npxnumr_LY1.enc) = 2024
Provides:	tex(npxnumr_OT1.enc) = 2024
Provides:	tex(npxnumr_T1.enc) = 2024
Provides:	tex(npxsubs_LY1.enc) = 2024
Provides:	tex(npxsubs_OT1.enc) = 2024
Provides:	tex(npxsubs_T1.enc) = 2024
Provides:	tex(npxsups_LY1.enc) = 2024
Provides:	tex(npxsups_OT1.enc) = 2024
Provides:	tex(npxsups_T1.enc) = 2024
Provides:	tex(omlnpxmi.fd) = 2024
Provides:	tex(ot1npxtt.fd) = 2024
Provides:	tex(ot1zpldnom.fd) = 2024
Provides:	tex(ot1zplinf.fd) = 2024
Provides:	tex(ot1zpllf.fd) = 2024
Provides:	tex(ot1zplosf.fd) = 2024
Provides:	tex(ot1zplsubs.fd) = 2024
Provides:	tex(ot1zplsups.fd) = 2024
Provides:	tex(ot1zplth-lf.fd) = 2024
Provides:	tex(ot1zplth-osf.fd) = 2024
Provides:	tex(ot1zplth-tlf.fd) = 2024
Provides:	tex(ot1zplth-tosf.fd) = 2024
Provides:	tex(ot1zpltlf.fd) = 2024
Provides:	tex(ot1zpltosf.fd) = 2024
Provides:	tex(t1npxtt.fd) = 2024
Provides:	tex(t1zpldnom.fd) = 2024
Provides:	tex(t1zplinf.fd) = 2024
Provides:	tex(t1zpllf.fd) = 2024
Provides:	tex(t1zplnumr.fd) = 2024
Provides:	tex(t1zplosf.fd) = 2024
Provides:	tex(t1zplsubs.fd) = 2024
Provides:	tex(t1zplsups.fd) = 2024
Provides:	tex(t1zplth-lf.fd) = 2024
Provides:	tex(t1zplth-osf.fd) = 2024
Provides:	tex(t1zplth-tlf.fd) = 2024
Provides:	tex(t1zplth-tosf.fd) = 2024
Provides:	tex(t1zpltlf.fd) = 2024
Provides:	tex(t1zpltosf.fd) = 2024
Provides:	tex(tgpdiff.enc) = 2024
Provides:	tex(ts1npxtt.fd) = 2024
Provides:	tex(ts1zpllf.fd) = 2024
Provides:	tex(ts1zplosf.fd) = 2024
Provides:	tex(ts1zpltlf.fd) = 2024
Provides:	tex(ts1zpltosf.fd) = 2024
Provides:	tex(unpxexa.fd) = 2024
Provides:	tex(unpxmia.fd) = 2024
Provides:	tex(unpxss.fd) = 2024
Provides:	tex(unpxsyc.fd) = 2024
Provides:	tex(unpxsym.fd) = 2024
Provides:	tex(unpxtt.fd) = 2024
Provides:	tex(zpl_OsF.enc) = 2024
Provides:	tex(zpl_TOsF.enc) = 2024
BuildArch:	noarch

%description
This package, initially based on pxfonts, provides many fixes
and enhancements to that package, and splits it in two parts
(newpxtext and newpxmath) which may be run independently of one
another. It provides scaling, improved metrics, and other
options. For proper operation, the packages require that the
packages newtxmath, pxfonts, and TeXGyrePagella be installed
and their map files enabled.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/newpx/
%{_texmfdistdir}/fonts/enc/dvips/newpx/
%{_texmfdistdir}/fonts/map/dvips/newpx/
%{_texmfdistdir}/fonts/opentype/public/newpx/
%{_texmfdistdir}/fonts/tfm/public/newpx/
%{_texmfdistdir}/fonts/type1/public/newpx/
%{_texmfdistdir}/fonts/vf/public/newpx/
%{_texmfdistdir}/tex/latex/newpx/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10320 |21cr|texlive-newsletr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/newsletr
# catalog-date 2006-12-22 19:14:47 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-newsletr
Version:	20190228
Release:	1
Summary:	Macros for making newsletters with Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/newsletr
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newsletr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newsletr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive newsletr package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/newsletr/newsletr.tex
%doc %{_texmfdistdir}/doc/plain/newsletr/italic.tex
%doc %{_texmfdistdir}/doc/plain/newsletr/lodriver.tex
%doc %{_texmfdistdir}/doc/plain/newsletr/losample.tex
%doc %{_texmfdistdir}/doc/plain/newsletr/newsletr.txt
%doc %{_texmfdistdir}/doc/plain/newsletr/newssamp.pdf
%doc %{_texmfdistdir}/doc/plain/newsletr/newssamp.tex
%doc %{_texmfdistdir}/doc/plain/newsletr/quote.tex
%doc %{_texmfdistdir}/doc/plain/newsletr/read.me
%doc %{_texmfdistdir}/doc/plain/newsletr/sample.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10321 |21cr|texlive-newtx-1.554-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-newtx
Version:	1.554
Release:	3
Summary:	Alternative uses of the TX fonts, with improved metrics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/newtx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newtx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newtx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle splits txfonts.sty (from the TX fonts distribution)
into two independent packages, ntxtext.sty and ntxmath.sty,
each with fixes and enhancements. Ntxmath's metrics have been
re-evaluated to provide a less tight appearance, and to provide
a libertine option that substitutes Libertine italic and Greek
letter for the existing math italic and Greek glyphs, making a
mathematics package that matches Libertine text quite well.
Ntxmath can also use the maths italic font provided with the
garamondx package, thus offering a garamond-alike text-with-
maths combination.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/newtx
%{_texmfdistdir}/fonts/map/dvips/newtx
%{_texmfdistdir}/fonts/afm/public/newtx
%{_texmfdistdir}/fonts/tfm/public/newtx
%{_texmfdistdir}/fonts/opentype/public/newtx
%{_texmfdistdir}/fonts/type1/public/newtx
%{_texmfdistdir}/fonts/vf/public/newtx
%{_texmfdistdir}/tex/latex/newtx
%doc %{_texmfdistdir}/doc/fonts/newtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10322 |21cr|texlive-newtxsf-59227-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname newtxsf

Summary:	Sans-math fonts for use with newtx
Name:		texlive-newtxsf
Version:	59227
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsmath.sty)
#Requires:	tex(binhex.tex)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	texlive-newtx
Provides:	tex-newtxsf = 2024
Provides:	tex(newtxsf.map) = 2024
Provides:	tex(newtxsf.sty) = 2024
Provides:	tex(omlntxsfmi.fd) = 2024
Provides:	tex(untxsfmia.fd) = 2024
BuildArch:	noarch

%description
The package provides a maths support that amounts to
modifications of the STIX sans serif Roman and Greek letters
with most symbols taken from newtxmath (which must of course be
installed and its map file enabled).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/map/dvips/newtxsf/
%{_texmfdistdir}/fonts/tfm/public/newtxsf/
%{_texmfdistdir}/fonts/type1/public/newtxsf/
%{_texmfdistdir}/fonts/vf/public/newtxsf/
%{_texmfdistdir}/tex/latex/newtxsf/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10323 |21cr|texlive-newtxtt-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname newtxtt

Summary:	Enhancement of typewriter fonts from newtx
Name:		texlive-newtxtt
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex-newtxtt = 2024
Provides:	tex(newtxtt.map) = 2024
Provides:	tex(newtxtt.sty) = 2024
Provides:	tex(t1newtxtt.fd) = 2024
Provides:	tex(t1newtxttz.fd) = 2024
Provides:	tex(ts1newtxtt.fd) = 2024
Provides:	tex(ts1newtxttz.fd) = 2024
Provides:	tex(txttAec.enc) = 2024
Provides:	tex(txttAqec.enc) = 2024
Provides:	tex(txttBec.enc) = 2024
Provides:	tex(txttBqec.enc) = 2024
Provides:	tex(txttCec.enc) = 2024
Provides:	tex(txttCqec.enc) = 2024
Provides:	tex(txttDec.enc) = 2024
Provides:	tex(txttDqec.enc) = 2024
Provides:	tex(txttEec.enc) = 2024
Provides:	tex(txttEqec.enc) = 2024
BuildArch:	noarch

%description
The package provides enhanced fonts with LaTeX support files
providing access to the typewriter fonts from newtx. Regular
and bold weights, slanted variants and a choice of four
different styles for zero.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/newtxtt/
%{_texmfdistdir}/fonts/map/dvips/newtxtt/
%{_texmfdistdir}/fonts/tfm/public/newtxtt/
%{_texmfdistdir}/fonts/type1/public/newtxtt/
%{_texmfdistdir}/tex/latex/newtxtt/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10324 |21cr|texlive-niceframe-type1-44671-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname niceframe-type1

Summary:	Type 1 versions of the fonts recommended in niceframe
Name:		texlive-niceframe-type1
Version:	44671
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(bbding10.pfb) = 2024
Provides:	tex(dingbat.pfb) = 2024
Provides:	tex(karta15.pfb) = 2024
Provides:	tex(niceframe.map) = 2024
Provides:	tex(umranda.pfb) = 2024
Provides:	tex(umrandb.pfb) = 2024
BuildArch:	noarch

%description
The bundle provides Adobe Type 1 versions of the fonts
bbding10, dingbat, karta15, umranda and umrandb.

%files
%doc %{_texmfdistdir}/doc/fonts/niceframe-type1/
%{_texmfdistdir}/fonts/afm/public/niceframe-type1/
%{_texmfdistdir}/fonts/map/dvips/niceframe-type1/
%{_texmfdistdir}/fonts/type1/public/niceframe-type1/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10325 |21cr|texlive-nicematrix-20210222-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nicematrix
Version:	20210222
Release:	1
Summary:	Improve the typesetting of mathematical matrices with PGF
Group:		Publishing
URL:		https://ctan.org/pkg/nicematrix
License:	LPPL1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nicematrix.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nicematrix.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nicematrix.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is based on the package array. It creates PGF/TikZ
nodes under the cells of the array and uses these nodes to
provide functionalities to construct tabulars, arrays and
matrices. Among the features : continuous dotted lines for the
mathematical matrices; exterior rows and columns (so-called
border matrices); control of the width of the columns; tools tolongdesc color rows and columns with a good PDF result; blocks of cells;
etc. The package requires and loads l3keys2e, xparse, array,
amsmath, pgfcore, and the module shapes of PGF.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10326 |21cr|texlive-nidanfloat-48295-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nidanfloat

Summary:	Bottom placement option for double float in two column mode (nidan-kumi)
Name:		texlive-nidanfloat
Version:	48295
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(nidanfloat.sty) = 2024
BuildArch:	noarch

%description
This package enables a bottom placement option for double
floats in two column mode (nidan-kumi). It was originally part
of the Japanese pLaTeX bundle and is now distributed as a
separate package because it supports all LaTeX formats.

%files
%doc %{_texmfdistdir}/doc/latex/nidanfloat/
%{_texmfdistdir}/tex/latex/nidanfloat/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10327 |21cr|texlive-nihbiosketch-20160122-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nihbiosketch
Version:	20160122
Release:	4
Summary:	A class for NIH biosketches based on the 2015 updated format
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/nihbiosketch
License:	lppl1.3c
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nihbiosketch.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nihbiosketch.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX document class tries to adhere to the Biographical
Sketch formatting requirements outlined in NIH Notice
[NOT-OD-15-032]
(grants.nih.gov/grants/guide/notice-files/NOT-OD-15-032.html).
This new format is required for applications submitted for due
dates on or after May 25, 2015. The package tries to mimic the
example documents provided on the [SF 424 (R&R) Forms and
Applications page]
(grants.nih.gov/grants/funding/424/index.htm#format) as closely
as possible. The author has used this class for his own grant
submissions; however he offers no guarantee of conformity to
NIH requirements.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10328 |21cr|texlive-nimbus15-58839-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nimbus15

Summary:	Support files for Nimbus 2015 Core fonts
Name:		texlive-nimbus15
Version:	58839
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(LGRNimbuSans.fd) = 2024
Provides:	tex(LGRNimbusMono.fd) = 2024
Provides:	tex(LGRNimbusMonoN.fd) = 2024
Provides:	tex(LGRNimbusSerif.fd) = 2024
Provides:	tex-nimbus15 = 2024
Provides:	tex(nimbus15-ec.enc) = 2024
Provides:	tex(nimbus15-lgr.enc) = 2024
Provides:	tex(nimbus15.map) = 2024
Provides:	tex(nimbus15mono-ec.enc) = 2024
Provides:	tex(nimbus15mono-lgr.enc) = 2024
Provides:	tex(nimbus15mono-ot1.enc) = 2024
Provides:	tex(nimbus15mono-ot2.enc) = 2024
Provides:	tex(nimbus15mono-t2a.enc) = 2024
Provides:	tex(nimbus15mono-t2b.enc) = 2024
Provides:	tex(nimbus15mono-t2c.enc) = 2024
Provides:	tex(nimbus15-ot1.enc) = 2024
Provides:	tex(nimbus15-ot2.enc) = 2024
Provides:	tex(nimbus15-t2a.enc) = 2024
Provides:	tex(nimbus15-t2b.enc) = 2024
Provides:	tex(nimbus15-t2c.enc) = 2024
Provides:	tex(nimbus15-x2.enc) = 2024
Provides:	tex(nimbusmononarrow.sty) = 2024
Provides:	tex(nimbusmono.sty) = 2024
Provides:	tex(nimbussans.sty) = 2024
Provides:	tex(nimbusserif.sty) = 2024
Provides:	tex(OT1NimbusMono.fd) = 2024
Provides:	tex(OT1NimbusMonoN.fd) = 2024
Provides:	tex(OT1NimbusSans.fd) = 2024
Provides:	tex(OT1NimbusSerif.fd) = 2024
Provides:	tex(OT2NimbusMono.fd) = 2024
Provides:	tex(OT2NimbusMonoN.fd) = 2024
Provides:	tex(OT2NimbusSans.fd) = 2024
Provides:	tex(OT2NimbusSerif.fd) = 2024
Provides:	tex(T1NimbusMono.fd) = 2024
Provides:	tex(T1NimbusMonoN.fd) = 2024
Provides:	tex(T1NimbusSans.fd) = 2024
Provides:	tex(T1NimbusSerif.fd) = 2024
Provides:	tex(T2ANimbusMono.fd) = 2024
Provides:	tex(T2ANimbusMonoN.fd) = 2024
Provides:	tex(T2ANimbusSans.fd) = 2024
Provides:	tex(T2ANimbusSerif.fd) = 2024
Provides:	tex(T2BNimbusMono.fd) = 2024
Provides:	tex(T2BNimbusMonoN.fd) = 2024
Provides:	tex(T2BNimbusSans.fd) = 2024
Provides:	tex(T2BNimbusSerif.fd) = 2024
Provides:	tex(T2CNimbusMono.fd) = 2024
Provides:	tex(T2CNimbusMonoN.fd) = 2024
Provides:	tex(T2CNimbusSans.fd) = 2024
Provides:	tex(T2CNimbusSerif.fd) = 2024
Provides:	tex(TS1NimbusMono.fd) = 2024
Provides:	tex(TS1NimbusMonoN.fd) = 2024
Provides:	tex(TS1NimbusSans.fd) = 2024
Provides:	tex(TS1NimbusSerif.fd) = 2024
BuildArch:	noarch

%description
The Nimbus 2015 Core fonts added Greek and Cyrillic glyphs.
This package may be best suited as an add-on the a
comprehensive Times package, providing support for Greek and
Cyrillic. A new intermediate weight of NimbusMono (AKA Courier)
is provided, along with a narrower version which may be useful
for rendering code.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/nimbus15/
%{_texmfdistdir}/fonts/enc/dvips/nimbus15/
%{_texmfdistdir}/fonts/map/dvips/nimbus15/
%{_texmfdistdir}/fonts/opentype/public/nimbus15/
%{_texmfdistdir}/fonts/tfm/public/nimbus15/
%{_texmfdistdir}/fonts/type1/public/nimbus15/
%{_texmfdistdir}/fonts/vf/public/nimbus15/
%{_texmfdistdir}/tex/latex/nimbus15/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10329 |21cr|texlive-nimsticks-64118-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nimsticks

Summary:	Draws sticks for games of multi-pile Nim
Name:		texlive-nimsticks
Version:	64118
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ifthen.sty)
#Requires:	tex(lcg.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
Provides:	tex(nimsticks.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides commands \drawnimstick to draw a
single nim stick and \nimgame which represents games of
multi-pile Nim. Nim sticks are drawn with a little random
wobble so they look 'thrown together' and not too regular. The
package also provides options to customise the size and colour
of the sticks, and flexibility to draw heaps of different
objects.

%files
%doc %{_texmfdistdir}/doc/latex/nimsticks
%{_texmfdistdir}/tex/latex/nimsticks

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10330 |21cr|texlive-ninecolors-62006-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ninecolors

Summary:	Select colors with proper WCAG color contrast
Name:		texlive-ninecolors
Version:	62006
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xcolor.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(ninecolors.sty) = 2024
BuildArch:	noarch

%description
This package carefully selects and defines 9 colors for 13 hues
each. All colors with the same suffix number have equal
luminance level. Also the color black is of level 0, and the
color white is of level 10. By simply choosing two colors in
the above list, which differ in level by at least 5, as
foreground and background colors, you will get proper WCAG
Color Contrast.

%files
%doc %{_texmfdistdir}/doc/latex/ninecolors
%{_texmfdistdir}/tex/latex/ninecolors

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10331 |21cr|texlive-njurepo-50492-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname njurepo

Summary:	Reports for Nanjing University
Name:		texlive-njurepo
Version:	50492
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(njurepo.cls) = 2024
BuildArch:	noarch

%description
This LaTeX document class provides a thesis template for
Nanjing University in order to make it easy to write experiment
reports and homework for the bachelor's curriculum. NJUrepo
stands for Nanjing University versatile Report.

%files
%doc %{_texmfdistdir}/doc/latex/njurepo
%{_texmfdistdir}/tex/latex/njurepo

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10332 |21cr|texlive-njustthesis-62451-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname njustthesis

Summary:	Thesis template for the Nanjing University of Science and Technology
Name:		texlive-njustthesis
Version:	62451
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(njustthesis.cls) = 2024
BuildArch:	noarch

%description
This is a thesis template for the Nanjing University of Science
and Technology>.

%files
%doc %{_texmfdistdir}/doc/latex/njustthesis
%{_texmfdistdir}/tex/latex/njustthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10333 |21cr|texlive-njuthesis-65546-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname njuthesis

Summary:	LaTeX thesis template for Nanjing University
Name:		texlive-njuthesis
Version:	65546
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(njuthesis.cls) = 2024
Provides:	tex(njuthesis-graduate.def) = 2024
Provides:	tex(njuthesis-postdoctoral.def) = 2024
Provides:	tex(njuthesis-undergraduate.def) = 2024
BuildArch:	noarch

%description
The njuthesis class is intended for typesetting Nanjing
University dissertations with LaTeX, providing support for
bachelor, master, and doctoral theses as well as postdoctoral
reports. Compilation of this class requires either XeLaTeX or
LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/njuthesis
%{_texmfdistdir}/tex/latex/njuthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10334 |21cr|texlive-njuvisual-65261-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname njuvisual

Summary:	Display logos related to Nanjing University
Name:		texlive-njuvisual
Version:	65261
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(njuvisual-emblem-ai.def) = 2024
Provides:	tex(njuvisual-emblem-chem.def) = 2024
Provides:	tex(njuvisual-emblem-cs.def) = 2024
Provides:	tex(njuvisual-emblem-dii.def) = 2024
Provides:	tex(njuvisual-emblem-eng.def) = 2024
Provides:	tex(njuvisual-emblem-nju.def) = 2024
Provides:	tex(njuvisual-emblem-physics.def) = 2024
Provides:	tex(njuvisual-emblem-software.def) = 2024
Provides:	tex(njuvisual-motto-nju.def) = 2024
Provides:	tex(njuvisual-name-en-nju.def) = 2024
Provides:	tex(njuvisual-name-zh-nju.def) = 2024
Provides:	tex(njuvisual-spirit-nju.def) = 2024
Provides:	tex(njuvisual.sty) = 2024
BuildArch:	noarch

%description
The njuvisual package collects standard colors and logos
related to Nanjing University, saves the vector logos as TikZ
pictures and provides a user-friendly interface to display them
in documents and beamers.

%files
%doc %{_texmfdistdir}/doc/latex/njuvisual
%{_texmfdistdir}/tex/latex/njuvisual

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10335 |21cr|texlive-nkarta-0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16437
# category Package
# catalog-ctan /fonts/nkarta
# catalog-date 2009-12-20 19:35:44 +0100
# catalog-license pd
# catalog-version 0.2
Name:		texlive-nkarta
Version:	0.2
Release:	8
Summary:	A "new" version of the karta cartographic fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/nkarta
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nkarta.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nkarta.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nkarta.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A development of the karta font, offering more mathematical
stability in MetaFont. A version that will produce the glyphs
as Encapsulated PostScript, using MetaPost, is also provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/nkarta/nkarta.mf
%{_texmfdistdir}/fonts/source/public/nkarta/nkarta15.mf
%{_texmfdistdir}/fonts/source/public/nkarta/nkchars.mf
%{_texmfdistdir}/fonts/tfm/public/nkarta/nkarta15.tfm
%{_texmfdistdir}/metapost/nkarta/nkarta.mp
%{_texmfdistdir}/metapost/nkarta/nkchars.mp
%doc %{_texmfdistdir}/doc/fonts/nkarta/README
%doc %{_texmfdistdir}/doc/fonts/nkarta/figtable.pdf
%doc %{_texmfdistdir}/doc/fonts/nkarta/figtable.tex
%doc %{_texmfdistdir}/doc/fonts/nkarta/fonttable.pdf
%doc %{_texmfdistdir}/doc/fonts/nkarta/fonttable.tex
#- source
%doc %{_texmfdistdir}/source/latex/nkarta/nkarta.dtx
%doc %{_texmfdistdir}/source/latex/nkarta/nkarta.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts metapost doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10336 |21cr|texlive-nl-interval-58328-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nl-interval

Summary:	Represent intervals on the number line
Name:		texlive-nl-interval
Version:	58328
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tkz-fct.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(nl-interval.sty) = 2024
BuildArch:	noarch

%description
This package provides macros to simplify the process of
representing intervals on the number line. It depends on
tkz-fct, ifthen, and xparse.

%files
%doc %{_texmfdistdir}/doc/latex/nl-interval
%{_texmfdistdir}/tex/latex/nl-interval

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10337 |21cr|texlive-nmbib-37984.1.04-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nmbib

Summary:	Multiple versions of a bibliography, with different sort orders
Name:		texlive-nmbib
Version:	37984.1.04
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(natbib.sty)
Provides:	tex-nmbib = 2024
Provides:	tex(nmbib.sty) = 2024
BuildArch:	noarch

%description
This package is a rewrite of the multibibliography package
providing multiple bibliographies with different sorting. The
new version offers a number of citation commands, streamlines
the creation of bibliographies, ensures compatibility with the
natbib package, and provides other improvements.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/bibtex/bst/nmbib/
%{_texmfdistdir}/tex/latex/nmbib/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10338 |21cr|texlive-nndraw-59674-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nndraw

Summary:	Draw neural networks
Name:		texlive-nndraw
Version:	59674
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(nndraw.sty) = 2024
BuildArch:	noarch

%description
With this package you can create fully connected neural
networks in a simple and efficient way.

%files
%doc %{_texmfdistdir}/doc/latex/nndraw
%{_texmfdistdir}/tex/latex/nndraw

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10339 |21cr|texlive-nnext-56575-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nnext

Summary:	Extension for the gb4e package
Name:		texlive-nnext
Version:	56575
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xspace.sty)
Provides:	tex(nnext.sty) = 2024
BuildArch:	noarch

%description
This is an add-on for the gb4e package used in linguistics. It
implements the \Next, \NNext, \Last, and \LLast commands from
the linguex package or the \nextx, \anextx, \lastx, \blastx,
and \bblastx commands from the expex package.

%files
%doc %{_texmfdistdir}/doc/latex/nnext
%{_texmfdistdir}/tex/latex/nnext

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10340 |21cr|texlive-notes2bib-2.0k-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27196
# category Package
# catalog-ctan /macros/latex/contrib/notes2bib
# catalog-date 2012-07-17 10:47:29 +0200
# catalog-license lppl
# catalog-version 2.0k
Name:		texlive-notes2bib
Version:	2.0k
Release:	7
Summary:	Integrating notes into the bibliography
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/notes2bib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/notes2bib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/notes2bib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/notes2bib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a new type of note, bibnote, which will
always be added to the bibliography. The package allows
footnotes and endnotes to be moved into the bibliography in the
same way. The package can be used with natbib and biblatex as
well as plain LaTeX citations. Both sorted and unsorted
bibliography styles are supported. The package uses the LaTeX 3
macros and the associated xpackages bundle. It also makes use
of the e-TeX extensions (any post-2005 LaTeX distribution will
provide these by default, but users of older systems may need
to use an elatex command or equivalent). The package relies on
LaTeX 3 support from the l3kernel and l3packages bundles.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/notes2bib/notes2bib.sty
%doc %{_texmfdistdir}/doc/latex/notes2bib/README*
%doc %{_texmfdistdir}/doc/latex/notes2bib/notes2bib.pdf
%doc %{_texmfdistdir}/doc/latex/notes2bib/notes2bib-notes2bib.bib
#- source
%doc %{_texmfdistdir}/source/latex/notes2bib/notes2bib.ins
%doc %{_texmfdistdir}/source/latex/notes2bib/notes2bib.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10341 |21cr|texlive-notex-bst-42361-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname notex-bst

Summary:	A BibTeX style that outputs HTML
Name:		texlive-notex-bst
Version:	42361
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(noTeX.bst) = 2024
BuildArch:	noarch

%description
noTeX.bst produces a number of beautifully formatted HTML P
elements instead of TeX code. It can be used to automatically
generate bibliographies to be served on the web starting from
BibTeX files.

%files
%{_texmfdistdir}/bibtex/bst/notex-bst/

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10342 |21cr|texlive-noto-64351-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname noto

Summary:	Support for Noto fonts
Name:		texlive-noto
Version:	64351
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(a_23t6v6.enc) = 2024
Provides:	tex(a_2gssks.enc) = 2024
Provides:	tex(a_3gh25n.enc) = 2024
Provides:	tex(a_3idd2i.enc) = 2024
Provides:	tex(a_3nh6de.enc) = 2024
Provides:	tex(a_3njtyh.enc) = 2024
Provides:	tex(a_3pvjsh.enc) = 2024
Provides:	tex(a_3qka2q.enc) = 2024
Provides:	tex(a_3utovq.enc) = 2024
Provides:	tex(a_47rvkj.enc) = 2024
Provides:	tex(a_4g272e.enc) = 2024
Provides:	tex(a_4hfkmi.enc) = 2024
Provides:	tex(a_4u4rqx.enc) = 2024
Provides:	tex(a_52qs4q.enc) = 2024
Provides:	tex(a_533fr4.enc) = 2024
Provides:	tex(a_57pcdw.enc) = 2024
Provides:	tex(a_5mzvu7.enc) = 2024
Provides:	tex(a_5pmcwb.enc) = 2024
Provides:	tex(a_5xwbon.enc) = 2024
Provides:	tex(a_623vws.enc) = 2024
Provides:	tex(a_63wp3v.enc) = 2024
Provides:	tex(a_6aka6h.enc) = 2024
Provides:	tex(a_6twv4d.enc) = 2024
Provides:	tex(a_772cjc.enc) = 2024
Provides:	tex(a_7bgfws.enc) = 2024
Provides:	tex(a_7ixzi4.enc) = 2024
Provides:	tex(a_7kfhbb.enc) = 2024
Provides:	tex(a_7nvxzr.enc) = 2024
Provides:	tex(a_7tyugd.enc) = 2024
Provides:	tex(a_a3ay2j.enc) = 2024
Provides:	tex(a_andblm.enc) = 2024
Provides:	tex(a_anmevl.enc) = 2024
Provides:	tex(a_bvwui6.enc) = 2024
Provides:	tex(a_bxhngq.enc) = 2024
Provides:	tex(a_c3bld5.enc) = 2024
Provides:	tex(a_c6wwr2.enc) = 2024
Provides:	tex(a_cjhu7y.enc) = 2024
Provides:	tex(a_clpsiq.enc) = 2024
Provides:	tex(a_cn5brv.enc) = 2024
Provides:	tex(a_cp3cte.enc) = 2024
Provides:	tex(a_cwvxtj.enc) = 2024
Provides:	tex(a_d2rsb5.enc) = 2024
Provides:	tex(a_d4qnfi.enc) = 2024
Provides:	tex(a_dadzwx.enc) = 2024
Provides:	tex(a_dbnhwa.enc) = 2024
Provides:	tex(a_ditypz.enc) = 2024
Provides:	tex(a_dov7os.enc) = 2024
Provides:	tex(a_dudwhc.enc) = 2024
Provides:	tex(a_e3kj7m.enc) = 2024
Provides:	tex(a_efce2n.enc) = 2024
Provides:	tex(a_eoogfy.enc) = 2024
Provides:	tex(a_eosscl.enc) = 2024
Provides:	tex(a_ez2y5p.enc) = 2024
Provides:	tex(a_ez4wts.enc) = 2024
Provides:	tex(a_ezjax5.enc) = 2024
Provides:	tex(a_fv2jeg.enc) = 2024
Provides:	tex(a_g4k3w3.enc) = 2024
Provides:	tex(a_gphhjx.enc) = 2024
Provides:	tex(a_gwevhp.enc) = 2024
Provides:	tex(a_gyb4rp.enc) = 2024
Provides:	tex(a_h2q3hr.enc) = 2024
Provides:	tex(a_h6fjyk.enc) = 2024
Provides:	tex(a_hc6tg2.enc) = 2024
Provides:	tex(a_hge7ml.enc) = 2024
Provides:	tex(a_hj5qan.enc) = 2024
Provides:	tex(a_honops.enc) = 2024
Provides:	tex(a_hvbi2c.enc) = 2024
Provides:	tex(a_ibmxvo.enc) = 2024
Provides:	tex(a_ilpfnc.enc) = 2024
Provides:	tex(a_jbt6o3.enc) = 2024
Provides:	tex(a_jde47l.enc) = 2024
Provides:	tex(a_jdknzu.enc) = 2024
Provides:	tex(a_jjjryc.enc) = 2024
Provides:	tex(a_jjkxah.enc) = 2024
Provides:	tex(a_kcvkxa.enc) = 2024
Provides:	tex(a_kejqxe.enc) = 2024
Provides:	tex(a_ky2jui.enc) = 2024
Provides:	tex(a_lavhrd.enc) = 2024
Provides:	tex(a_lefphz.enc) = 2024
Provides:	tex(a_lhny74.enc) = 2024
Provides:	tex(a_m5xrw6.enc) = 2024
Provides:	tex(a_mpi44v.enc) = 2024
Provides:	tex(a_mth4zs.enc) = 2024
Provides:	tex(a_mun6gy.enc) = 2024
Provides:	tex(a_mz6bs5.enc) = 2024
Provides:	tex(a_n3icpd.enc) = 2024
Provides:	tex(a_n43hoi.enc) = 2024
Provides:	tex(a_ob47l7.enc) = 2024
Provides:	tex(a_og6ksl.enc) = 2024
Provides:	tex(a_ombcnn.enc) = 2024
Provides:	tex(a_oprn5k.enc) = 2024
Provides:	tex(a_pboqxw.enc) = 2024
Provides:	tex(a_pbvxm5.enc) = 2024
Provides:	tex(a_pgzpov.enc) = 2024
Provides:	tex(a_pi22w6.enc) = 2024
Provides:	tex(a_pke5io.enc) = 2024
Provides:	tex(a_pqgg2n.enc) = 2024
Provides:	tex(a_qbvbpy.enc) = 2024
Provides:	tex(a_qhtgxt.enc) = 2024
Provides:	tex(a_qndmgf.enc) = 2024
Provides:	tex(a_r26tzy.enc) = 2024
Provides:	tex(a_rhblzr.enc) = 2024
Provides:	tex(a_rjgu3w.enc) = 2024
Provides:	tex(a_rrep23.enc) = 2024
Provides:	tex(a_rxdup2.enc) = 2024
Provides:	tex(a_sprqvi.enc) = 2024
Provides:	tex(a_sqptsk.enc) = 2024
Provides:	tex(a_sxundy.enc) = 2024
Provides:	tex(a_t2unpo.enc) = 2024
Provides:	tex(a_t3opuj.enc) = 2024
Provides:	tex(a_t6vbrd.enc) = 2024
Provides:	tex(a_tnyntu.enc) = 2024
Provides:	tex(a_u3fnjl.enc) = 2024
Provides:	tex(a_u5bewk.enc) = 2024
Provides:	tex(a_uhbuf6.enc) = 2024
Provides:	tex(a_vlry66.enc) = 2024
Provides:	tex(a_vyfymq.enc) = 2024
Provides:	tex(a_w67jv7.enc) = 2024
Provides:	tex(a_wcjgjy.enc) = 2024
Provides:	tex(a_wfibuq.enc) = 2024
Provides:	tex(a_wiy4e7.enc) = 2024
Provides:	tex(a_wsd2lr.enc) = 2024
Provides:	tex(a_x3b3qr.enc) = 2024
Provides:	tex(a_xdaab2.enc) = 2024
Provides:	tex(a_xjknry.enc) = 2024
Provides:	tex(a_xroyy4.enc) = 2024
Provides:	tex(a_xt7xsz.enc) = 2024
Provides:	tex(a_y2n3gg.enc) = 2024
Provides:	tex(a_z556xg.enc) = 2024
Provides:	tex(a_zmzdvf.enc) = 2024
Provides:	tex(a_zo23om.enc) = 2024
Provides:	tex(LGRNotoSans-LF.fd) = 2024
Provides:	tex(LGRNotoSansMono-Sup.fd) = 2024
Provides:	tex(LGRNotoSansMono-TLF.fd) = 2024
Provides:	tex(LGRNotoSansMono-TOsF.fd) = 2024
Provides:	tex(LGRNotoSans-OsF.fd) = 2024
Provides:	tex(LGRNotoSans-Sup.fd) = 2024
Provides:	tex(LGRNotoSans-TLF.fd) = 2024
Provides:	tex(LGRNotoSans-TOsF.fd) = 2024
Provides:	tex(LGRNotoSerif-LF.fd) = 2024
Provides:	tex(LGRNotoSerif-OsF.fd) = 2024
Provides:	tex(LGRNotoSerif-Sup.fd) = 2024
Provides:	tex(LGRNotoSerif-TLF.fd) = 2024
Provides:	tex(LGRNotoSerif-TOsF.fd) = 2024
Provides:	tex(LY1NotoSans-LF.fd) = 2024
Provides:	tex(LY1NotoSansMono-Sup.fd) = 2024
Provides:	tex(LY1NotoSansMono-TLF.fd) = 2024
Provides:	tex(LY1NotoSansMono-TOsF.fd) = 2024
Provides:	tex(LY1NotoSans-OsF.fd) = 2024
Provides:	tex(LY1NotoSans-Sup.fd) = 2024
Provides:	tex(LY1NotoSans-TLF.fd) = 2024
Provides:	tex(LY1NotoSans-TOsF.fd) = 2024
Provides:	tex(LY1NotoSerif-LF.fd) = 2024
Provides:	tex(LY1NotoSerif-OsF.fd) = 2024
Provides:	tex(LY1NotoSerif-Sup.fd) = 2024
Provides:	tex(LY1NotoSerif-TLF.fd) = 2024
Provides:	tex(LY1NotoSerif-TOsF.fd) = 2024
Provides:	tex-noto = 2024
Provides:	tex(noto.map) = 2024
Provides:	tex(noto-mono.sty) = 2024
Provides:	tex(noto-sans.sty) = 2024
Provides:	tex(noto-serif.sty) = 2024
Provides:	tex(noto.sty) = 2024
Provides:	tex(OT1NotoSans-LF.fd) = 2024
Provides:	tex(OT1NotoSansMono-Sup.fd) = 2024
Provides:	tex(OT1NotoSansMono-TLF.fd) = 2024
Provides:	tex(OT1NotoSansMono-TOsF.fd) = 2024
Provides:	tex(OT1NotoSans-OsF.fd) = 2024
Provides:	tex(OT1NotoSans-Sup.fd) = 2024
Provides:	tex(OT1NotoSans-TLF.fd) = 2024
Provides:	tex(OT1NotoSans-TOsF.fd) = 2024
Provides:	tex(OT1NotoSerif-LF.fd) = 2024
Provides:	tex(OT1NotoSerif-OsF.fd) = 2024
Provides:	tex(OT1NotoSerif-Sup.fd) = 2024
Provides:	tex(OT1NotoSerif-TLF.fd) = 2024
Provides:	tex(OT1NotoSerif-TOsF.fd) = 2024
Provides:	tex(T1NotoSans-LF.fd) = 2024
Provides:	tex(T1NotoSansMono-Sup.fd) = 2024
Provides:	tex(T1NotoSansMono-TLF.fd) = 2024
Provides:	tex(T1NotoSansMono-TOsF.fd) = 2024
Provides:	tex(T1NotoSans-OsF.fd) = 2024
Provides:	tex(T1NotoSans-Sup.fd) = 2024
Provides:	tex(T1NotoSans-TLF.fd) = 2024
Provides:	tex(T1NotoSans-TOsF.fd) = 2024
Provides:	tex(T1NotoSerif-LF.fd) = 2024
Provides:	tex(T1NotoSerif-OsF.fd) = 2024
Provides:	tex(T1NotoSerif-Sup.fd) = 2024
Provides:	tex(T1NotoSerif-TLF.fd) = 2024
Provides:	tex(T1NotoSerif-TOsF.fd) = 2024
Provides:	tex(T2ANotoSans-LF.fd) = 2024
Provides:	tex(T2ANotoSansMono-Sup.fd) = 2024
Provides:	tex(T2ANotoSansMono-TLF.fd) = 2024
Provides:	tex(T2ANotoSansMono-TOsF.fd) = 2024
Provides:	tex(T2ANotoSans-OsF.fd) = 2024
Provides:	tex(T2ANotoSans-Sup.fd) = 2024
Provides:	tex(T2ANotoSans-TLF.fd) = 2024
Provides:	tex(T2ANotoSans-TOsF.fd) = 2024
Provides:	tex(T2ANotoSerif-LF.fd) = 2024
Provides:	tex(T2ANotoSerif-OsF.fd) = 2024
Provides:	tex(T2ANotoSerif-Sup.fd) = 2024
Provides:	tex(T2ANotoSerif-TLF.fd) = 2024
Provides:	tex(T2ANotoSerif-TOsF.fd) = 2024
Provides:	tex(T2BNotoSans-LF.fd) = 2024
Provides:	tex(T2BNotoSansMono-Sup.fd) = 2024
Provides:	tex(T2BNotoSansMono-TLF.fd) = 2024
Provides:	tex(T2BNotoSansMono-TOsF.fd) = 2024
Provides:	tex(T2BNotoSans-OsF.fd) = 2024
Provides:	tex(T2BNotoSans-Sup.fd) = 2024
Provides:	tex(T2BNotoSans-TLF.fd) = 2024
Provides:	tex(T2BNotoSans-TOsF.fd) = 2024
Provides:	tex(T2BNotoSerif-LF.fd) = 2024
Provides:	tex(T2BNotoSerif-OsF.fd) = 2024
Provides:	tex(T2BNotoSerif-Sup.fd) = 2024
Provides:	tex(T2BNotoSerif-TLF.fd) = 2024
Provides:	tex(T2BNotoSerif-TOsF.fd) = 2024
Provides:	tex(T2CNotoSans-LF.fd) = 2024
Provides:	tex(T2CNotoSansMono-Sup.fd) = 2024
Provides:	tex(T2CNotoSansMono-TLF.fd) = 2024
Provides:	tex(T2CNotoSansMono-TOsF.fd) = 2024
Provides:	tex(T2CNotoSans-OsF.fd) = 2024
Provides:	tex(T2CNotoSans-Sup.fd) = 2024
Provides:	tex(T2CNotoSans-TLF.fd) = 2024
Provides:	tex(T2CNotoSans-TOsF.fd) = 2024
Provides:	tex(T2CNotoSerif-LF.fd) = 2024
Provides:	tex(T2CNotoSerif-OsF.fd) = 2024
Provides:	tex(T2CNotoSerif-Sup.fd) = 2024
Provides:	tex(T2CNotoSerif-TLF.fd) = 2024
Provides:	tex(T2CNotoSerif-TOsF.fd) = 2024
Provides:	tex(TS1NotoSans-LF.fd) = 2024
Provides:	tex(TS1NotoSansMono-TLF.fd) = 2024
Provides:	tex(TS1NotoSansMono-TOsF.fd) = 2024
Provides:	tex(TS1NotoSans-OsF.fd) = 2024
Provides:	tex(TS1NotoSans-TLF.fd) = 2024
Provides:	tex(TS1NotoSans-TOsF.fd) = 2024
Provides:	tex(TS1NotoSerif-LF.fd) = 2024
Provides:	tex(TS1NotoSerif-OsF.fd) = 2024
Provides:	tex(TS1NotoSerif-TLF.fd) = 2024
Provides:	tex(TS1NotoSerif-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the NotoSerif, NotoSans and NotoSansMono families
of fonts, designed by Steve Matteson for Google.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/noto/
%{_texmfdistdir}/fonts/map/dvips/noto/
%{_texmfdistdir}/fonts/tfm/google/noto/
%{_texmfdistdir}/fonts/truetype/google/noto/
%{_texmfdistdir}/fonts/type1/google/noto/
%{_texmfdistdir}/fonts/vf/google/noto/
%{_texmfdistdir}/tex/latex/noto/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10343 |21cr|texlive-noto-emoji-62950-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname noto-emoji

Summary:	Noto Emoji fonts
Name:		texlive-noto-emoji
Version:	62950
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
Noto Color Emoji supports all emoji defined in the latest
Unicode version.

%files
%doc %{_texmfdistdir}/doc/fonts/noto-emoji
%{_texmfdistdir}/fonts/truetype/google/noto-emoji

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10344 |21cr|texlive-notomath-58726-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname notomath

Summary:	Math support for Noto fonts
Name:		texlive-notomath
Version:	58726
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(NotoMath.map) = 2024
Provides:	tex(notomath.sty) = 2024
Provides:	tex(omlnotomi.fd) = 2024
Provides:	tex(omlnotosansmi.fd) = 2024
BuildArch:	noarch

%description
Math support via newtxmath for Google's NotoSerif and NotoSans.
(Regular and Bold weights only.)

%files
%doc %{_texmfdistdir}/doc/fonts/notomath
%{_texmfdistdir}/fonts/map/dvips/notomath
%{_texmfdistdir}/fonts/tfm/public/notomath
%{_texmfdistdir}/fonts/type1/public/notomath
%{_texmfdistdir}/fonts/vf/public/notomath
%{_texmfdistdir}/tex/latex/notomath

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10345 |21cr|texlive-novel-1.52-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54512
# category Package
# catalog-ctan 	/macros/luatex/latex/novel
# catalog-license lppl1.3c
# catalogue-topics dissertation class
Name:		texlive-novel
Version:	1.52
Release:	1
Epoch:		1
Summary:	Class for printing fiction, such as novels
Group:		Publishing
URL:		https://www.ctan.org/pkg/novel
License:	PPL 1.3c
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/novel.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/novel.doc.tar.xz	
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea


%description
This LuaLaTeX document class is specifically written to meet the needs of original
fiction writers, who are typesetting their own novels for non-color print-on-demand
technology. Built-in PDF/X is available, using new technology.
The package is well suited for detective novels, science fiction, and short stories.
 It is however not recommended for creating color picture books or dissertations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/fonts/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex fonts doc %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10346 |21cr|texlive-npp-for-context-0.98-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-npp-for-context
Version:	0.98
Release:	1
Summary:	Context plugin for Notepad++
Group:		Publishing
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/npp-for-context.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/npp-for-context.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides A plugin for Notepad++ that implements,
for the ConTeXt document processing system, a language lexer
for semantic highlighting of TeX, LuaTeX, and ConTeXt commands;
autocompletion of commands with full support for calltips (set
in columns); tagging and insertion of markup and templates,
with support for mnemonic keys. A color scheme and two
complementary Notepad++ themes: "Silver Twilight Hi" and
"Silver Twilight Lo".
#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10347 |21cr|texlive-nth-54252-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nth

Summary:	Generate English ordinal numbers
Name:		texlive-nth
Version:	54252
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(nth.sty) = 2024
BuildArch:	noarch

%description
The command \nth{<number>} generates English ordinal numbers of
the form 1st, 2nd, 3rd, 4th, etc. LaTeX package options may
specify that the ordinal mark be superscripted, and that
negative numbers may be treated; Plain TeX users have no access
to package options, so need to redefine macros for these
changes.

%files
%{_texmfdistdir}/tex/generic/nth

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10348 |21cr|texlive-nucleardata-20180404-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nucleardata
Version:	20180404
Release:	1
Summary:	Provides data about atomic nuclides for documents
Group:		Publishing
URL:		https://ctan.org/pkg/nucleardata
License:	LPPL1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nucleardata.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nucleardata.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nucleardata.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides data and commands for including nuclear
and atomic mass and energy data in LaTeX documents. It uses the
PythonTeX package and requires pythontex.exe to be called with
the TeX file as the argument.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10349 |21cr|texlive-numberpt-51640-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname numberpt

Summary:	Counters spelled out in Portuguese
Name:		texlive-numberpt
Version:	51640
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(numberpt.sty) = 2024
BuildArch:	noarch

%description
This packages defines commands to display counters spelled out
in Portuguese. The styles are \numberpt for "all lowercase"
\Numberpt for "First word capitalized" \NumberPt for "All
Capitalized" \NUMBERPT for "ALL UPPERCASE" For example,
\renewcommand{\thechapter}{\NumberPt{chapter}} makes chapter
titles to be rendered as "Capitulo Um", "Capitulo Dois" etc.
Options are offered to select variations in the spelling of
"14", or Brazilian vs. European Portuguese forms in the
spelling of "16", "17", and "19". The package requires expl3
and xparse.

%files
%doc %{_texmfdistdir}/doc/latex/numberpt
%{_texmfdistdir}/tex/latex/numberpt

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10350 |21cr|texlive-numerica-61283-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname numerica

Summary:	Numerically evaluate mathematical expressions in LaTeX form
Name:		texlive-numerica
Version:	61283
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsmath.sty)
#Requires:	tex(expl3.sty)
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-l3kernel
Requires:	texlive-l3packages
#Requires:	tex(mathtools.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(numerica-lyx.def) = 2024
Provides:	tex(numerica-plus.def) = 2024
Provides:	tex(numerica.sty) = 2024
Provides:	tex(numerica-tables.def) = 2024
BuildArch:	noarch

%description
This package defines a command to wrap around a mathematical
expression in its LaTeX form and, once values are assigned to
variables, numerically evaluate it. The intent is to avoid the
need to modify the LaTeX form of the expression being
evaluated. For programs with a preview facility like LyX, or
compile-as-you-go systems, interactive back-of-envelope
calculations and numerical exploration are possible within the
document being worked on. The package requires the bundles
l3kernel and l3packages, and the amsmath and mathtools
packages.

%files
%doc %{_texmfdistdir}/doc/latex/numerica
%{_texmfdistdir}/tex/latex/numerica

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10351 |21cr|texlive-numerica-plus-61289-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname numerica-plus

Summary:	Iteration and recurrence relations: finding fixed points, zeros and extrema of functions
Name:		texlive-numerica-plus
Version:	61289
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(numerica-plus.sty) = 2024
BuildArch:	noarch

%description
The package defines commands to iterate functions of a single
variable, find fixed points, zeros and extrema of such
functions, and calculate the terms of recurrence relations.
numerica-plus requires the package numerica, version 2, which
in turn requires l3kernel , l3packages, and the amsmath and
mathtools packages.

%files
%doc %{_texmfdistdir}/doc/latex/numerica-plus
%{_texmfdistdir}/tex/latex/numerica-plus

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10352 |21cr|texlive-numerica-tables-61288-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname numerica-tables

Summary:	Create multi-column tables of mathematical functions
Name:		texlive-numerica-tables
Version:	61288
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(numerica-tables.sty) = 2024
BuildArch:	noarch

%description
The package defines a command to create possibly multi-column
tables of mathematical function values. Key = value settings
produce a wide variety of table styles consistent with the
booktabs package (required). Also required are the packages
numerica(v.2), l3kernel, l3packages, amsmath and mathtools.

%files
%doc %{_texmfdistdir}/doc/latex/numerica-tables
%{_texmfdistdir}/tex/latex/numerica-tables

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10353 |21cr|texlive-numnameru-44895-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname numnameru

Summary:	Converts a number to the russian spelled out name
Name:		texlive-numnameru
Version:	44895
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(numnameru.sty) = 2024
BuildArch:	noarch

%description
This package converts a numerical number to the russian spelled
out name of the number. For example, 1 - odin, 2 - dva, 12 -
dvenadtsat'.

%files
%doc %{_texmfdistdir}/doc/latex/numnameru/
%{_texmfdistdir}/tex/latex/numnameru/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10354 |21cr|texlive-nunito-57429-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nunito

Summary:	The Nunito font face with support for LaTeX and pdfLaTeX
Name:		texlive-nunito
Version:	57429
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_2owfxx.enc) = 2024
Provides:	tex(a_35ovjx.enc) = 2024
Provides:	tex(a_g4f2r6.enc) = 2024
Provides:	tex(a_hxzdi6.enc) = 2024
Provides:	tex(a_lzhlbi.enc) = 2024
Provides:	tex(a_nr4mc7.enc) = 2024
Provides:	tex(a_wslvgt.enc) = 2024
Provides:	tex(a_xcjjqo.enc) = 2024
Provides:	tex(a_xv7ze7.enc) = 2024
Provides:	tex(a_xzgqel.enc) = 2024
Provides:	tex(LY1Nunito-Sup.fd) = 2024
Provides:	tex(LY1Nunito-TLF.fd) = 2024
Provides:	tex(LY1Nunito-TOsF.fd) = 2024
Provides:	tex(Nunito.map) = 2024
Provides:	tex(nunito.sty) = 2024
Provides:	tex(OT1Nunito-Sup.fd) = 2024
Provides:	tex(OT1Nunito-TLF.fd) = 2024
Provides:	tex(OT1Nunito-TOsF.fd) = 2024
Provides:	tex(T1Nunito-Sup.fd) = 2024
Provides:	tex(T1Nunito-TLF.fd) = 2024
Provides:	tex(T1Nunito-TOsF.fd) = 2024
Provides:	tex(TS1Nunito-TLF.fd) = 2024
Provides:	tex(TS1Nunito-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX and pdfLaTeX support for the Nunito
family of fonts, designed by Vernon Adams, Cyreal.

%files
%doc %{_texmfdistdir}/doc/fonts/nunito
%{_texmfdistdir}/fonts/enc/dvips/nunito
%{_texmfdistdir}/fonts/map/dvips/nunito
%{_texmfdistdir}/fonts/opentype/public/nunito
%{_texmfdistdir}/fonts/tfm/public/nunito
%{_texmfdistdir}/fonts/type1/public/nunito
%{_texmfdistdir}/fonts/vf/public/nunito
%{_texmfdistdir}/tex/latex/nunito

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10355 |21cr|texlive-nwafuthesis-63438-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname nwafuthesis

Summary:	A thesis template package for Northwest A&F University, China
Name:		texlive-nwafuthesis
Version:	63438
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(nwafuthesis.cls) = 2024
BuildArch:	noarch

%description
This template supports doctoral and master dissertations and
undergraduate theses in Chinese. With the help of modern LaTeX3
technology, nwafuthesis aims to create a simple interface, a
normative format, as well as a hackable class for the users. At
present, nwafuthesis only supports XeTeX and LuaTeX engines.
nwafuthesis only allows UTF-8 encoding. nwafuthesis is based on
the fduthesis template.

%files
%doc %{_texmfdistdir}/doc/latex/nwafuthesis
%{_texmfdistdir}/tex/latex/nwafuthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10356 |21cr|texlive-nwejm-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 46639
# category Package
# catalog-ctan 	/macros/latex/contrib/nwejm
# catalog-date 2021-10-12
# catalog-license lppl1.3c
# catalogue-topics dissertation class
Name:		texlive-nwejm
Version:	1.0.2
Release:	1
Epoch:		1
Summary:	Support for the journal “North-Western European Journal of Mathematics”
Group:		Publishing
URL:		https://www.ctan.org/pkg/nwejm
License:	PPL 1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nwejm.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nwejm.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/nwejm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle includes LaTeX classes and BibLaTeX styles files dedicated to the new journal “North-Western European Journal of Mathematics”
nwejm for the complete issues of the journal, aimed at the NWEJM’s team,
nwejmart, intended for the authors who wish to publish an article in the NWEJM. This class’s goal is to:
faithfully reproduce the layout of the nwejm, thus enabling the authors to be able to work their document in actual conditions,
provide a number of tools (commands and environments) to facilitate the drafting of documents, in particular those containing mathematical formulas.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10357 |21cr|texlive-obnov-33355.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname obnov

Summary:	Obyknovennaya Novaya fonts
Name:		texlive-obnov
Version:	33355.0.11
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(lcywobn.fd) = 2024
Provides:	tex(obn10.tfm) = 2024
Provides:	tex(obn12.tfm) = 2024
Provides:	tex(obn17.tfm) = 2024
Provides:	tex(obn7.tfm) = 2024
Provides:	tex(obnb10.tfm) = 2024
Provides:	tex(obnb12.tfm) = 2024
Provides:	tex(obnb17.tfm) = 2024
Provides:	tex(obnb7.tfm) = 2024
Provides:	tex(obnit10.tfm) = 2024
Provides:	tex(obnit12.tfm) = 2024
Provides:	tex(obnit17.tfm) = 2024
Provides:	tex(obnit7.tfm) = 2024
Provides:	tex(obnitb10.tfm) = 2024
Provides:	tex(obnitb12.tfm) = 2024
Provides:	tex(obnitb17.tfm) = 2024
Provides:	tex-obnov = 2024
Provides:	tex(obnsc10.tfm) = 2024
Provides:	tex(obnsc12.tfm) = 2024
Provides:	tex(obnsc17.tfm) = 2024
Provides:	tex(obnsc7.tfm) = 2024
Provides:	tex(obnsl10.tfm) = 2024
Provides:	tex(obnsl12.tfm) = 2024
Provides:	tex(obnsl17.tfm) = 2024
Provides:	tex(obnsl7.tfm) = 2024
BuildArch:	noarch

%description
The Obyknovennaya Novaya (Ordinary New Face) typeface was
widely used in the USSR for scientific and technical
publications, as well as textbooks. The fonts are encoded to
KOI8-R (which is a long-established Russian font encoding,
rather than a TeX/LaTeX encoding). To use the fonts, the user
needs Cyrillic font support.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/source/public/obnov/
%{_texmfdistdir}/fonts/tfm/public/obnov/
%{_texmfdistdir}/tex/latex/obnov/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10358 |21cr|texlive-ocgx2-20220406-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ocgx2
Version:	20220406
Release:	2
Summary:	Drop-in replacement for the 'ocgx' package
Group:		Publishing
URL:		https://gitlab.com/agrahn/ocgx2
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocgx2.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocgx2.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package serves as a drop-in replacement for the packages
ocgx by Paul Gaborit and ocg-p by Werner Moshammer for the
creation of PDF Layers. It re-implements the functionality of
the ocg, ocgx, and ocg-p packages and adds support for all
known engines and back-ends including: LaTeX - dvips -
ps2pdf/Distiller (Xe)LaTeX(x) - dvipdfmx pdfLaTeX and LuaLaTeX
. It also ensures compatibility with the media9 and animate
packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ocgx2/*.sty
%doc %{_texmfdistdir}/doc/latex/ocgx2/README.txt
%doc %{_texmfdistdir}/doc/latex/ocgx2/ChangeLog

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10359 |21cr|texlive-ocherokee-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25689
# category Package
# catalog-ctan /language/cherokee/ocherokee
# catalog-date 2007-03-12 00:37:02 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-ocherokee
Version:	20190228
Release:	1
Summary:	LaTeX Support for the Cherokee language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/cherokee/ocherokee
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocherokee.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocherokee.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Macros and Type 1 fonts for Typesetting the Cherokee language
with the Omega version of LaTeX (known as Lambda).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/ocherokee/Cherokee-Bold.afm
%{_texmfdistdir}/fonts/afm/public/ocherokee/Cherokee.afm
%{_texmfdistdir}/fonts/map/dvips/ocherokee/cherokee.map
%{_texmfdistdir}/fonts/ofm/public/ocherokee/OCherokee.ofm
%{_texmfdistdir}/fonts/ofm/public/ocherokee/OCherokeeb.ofm
%{_texmfdistdir}/fonts/ofm/public/ocherokee/OCherokeebo.ofm
%{_texmfdistdir}/fonts/ofm/public/ocherokee/OCherokeeo.ofm
%{_texmfdistdir}/fonts/ovf/public/ocherokee/OCherokee.ovf
%{_texmfdistdir}/fonts/ovf/public/ocherokee/OCherokeeb.ovf
%{_texmfdistdir}/fonts/ovf/public/ocherokee/OCherokeebo.ovf
%{_texmfdistdir}/fonts/ovf/public/ocherokee/OCherokeeo.ovf
%{_texmfdistdir}/fonts/ovp/public/ocherokee/OCherokee.ovp
%{_texmfdistdir}/fonts/ovp/public/ocherokee/OCherokeeb.ovp
%{_texmfdistdir}/fonts/ovp/public/ocherokee/OCherokeebo.ovp
%{_texmfdistdir}/fonts/ovp/public/ocherokee/OCherokeeo.ovp
%{_texmfdistdir}/fonts/tfm/public/ocherokee/Cherokee.tfm
%{_texmfdistdir}/fonts/tfm/public/ocherokee/Cherokeeb.tfm
%{_texmfdistdir}/fonts/tfm/public/ocherokee/Cherokeebo.tfm
%{_texmfdistdir}/fonts/tfm/public/ocherokee/Cherokeeo.tfm
%{_texmfdistdir}/fonts/type1/public/ocherokee/Cherokee-Bold.pfb
%{_texmfdistdir}/fonts/type1/public/ocherokee/Cherokee.pfb
%{_texmfdistdir}/omega/ocp/ocherokee/cher2uni.ocp
%{_texmfdistdir}/omega/otp/ocherokee/cher2uni.otp
%{_texmfdistdir}/tex/lambda/ocherokee/lchcmr.fd
%{_texmfdistdir}/tex/lambda/ocherokee/lchenc.def
%{_texmfdistdir}/tex/lambda/ocherokee/ocherokee.sty
%doc %{_texmfdistdir}/doc/omega/ocherokee/READ.ME
%doc %{_texmfdistdir}/doc/omega/ocherokee/cherokee.pdf
%doc %{_texmfdistdir}/doc/omega/ocherokee/chief.tex
%doc %{_texmfdistdir}/doc/omega/ocherokee/proverb.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts omega tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10360 |21cr|texlive-ocr-b-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20852
# category Package
# catalog-ctan /fonts/ocr-b
# catalog-date 2010-12-24 15:25:32 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-ocr-b
Version:	20190228
Release:	1
Summary:	Fonts for OCR-B
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ocr-b
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocr-b.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocr-b.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MetaFont programs for OCR-B at several sizes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb10.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb10e.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb10f.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb10g.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb10l.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb10s.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb10x.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb5.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb6.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb7.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb8.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrb9.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrbdef.mf
%{_texmfdistdir}/fonts/source/public/ocr-b/ocrbmac.mf
%{_texmfdistdir}/fonts/tfm/public/ocr-b/ocrb10.tfm
%{_texmfdistdir}/fonts/tfm/public/ocr-b/ocrb5.tfm
%{_texmfdistdir}/fonts/tfm/public/ocr-b/ocrb6.tfm
%{_texmfdistdir}/fonts/tfm/public/ocr-b/ocrb7.tfm
%{_texmfdistdir}/fonts/tfm/public/ocr-b/ocrb8.tfm
%{_texmfdistdir}/fonts/tfm/public/ocr-b/ocrb9.tfm
%doc %{_texmfdistdir}/doc/fonts/ocr-b/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10361 |21cr|texlive-ocr-b-outline-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20969
# category Package
# catalog-ctan /fonts/ocr-b-outline
# catalog-date 2011-01-07 10:11:51 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-ocr-b-outline
Version:	20190228
Release:	1
Summary:	OCR-B fonts in Type 1 and OpenType
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ocr-b-outline
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocr-b-outline.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocr-b-outline.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocr-b-outline.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains OCR-B fonts in Type1 and OpenType formats.
They were generated from the MetaFont sources of the OCR-B
fonts. The metric files are not included here, so that original
ocr-b package should also be installed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/ocr-b-outline/ocrb.map
%{_texmfdistdir}/fonts/opentype/public/ocr-b-outline/ocrb10.otf
%{_texmfdistdir}/fonts/opentype/public/ocr-b-outline/ocrb5.otf
%{_texmfdistdir}/fonts/opentype/public/ocr-b-outline/ocrb6.otf
%{_texmfdistdir}/fonts/opentype/public/ocr-b-outline/ocrb7.otf
%{_texmfdistdir}/fonts/opentype/public/ocr-b-outline/ocrb8.otf
%{_texmfdistdir}/fonts/opentype/public/ocr-b-outline/ocrb9.otf
%{_texmfdistdir}/fonts/type1/public/ocr-b-outline/ocrb10.pfb
%{_texmfdistdir}/fonts/type1/public/ocr-b-outline/ocrb5.pfb
%{_texmfdistdir}/fonts/type1/public/ocr-b-outline/ocrb6.pfb
%{_texmfdistdir}/fonts/type1/public/ocr-b-outline/ocrb7.pfb
%{_texmfdistdir}/fonts/type1/public/ocr-b-outline/ocrb8.pfb
%{_texmfdistdir}/fonts/type1/public/ocr-b-outline/ocrb9.pfb
%doc %{_texmfdistdir}/doc/fonts/ocr-b-outline/README
%doc %{_texmfdistdir}/doc/fonts/ocr-b-outline/xe-test.tex
#- source
%doc %{_texmfdistdir}/source/fonts/ocr-b-outline/ocrb10.sfd
%doc %{_texmfdistdir}/source/fonts/ocr-b-outline/ocrb5.sfd
%doc %{_texmfdistdir}/source/fonts/ocr-b-outline/ocrb6.sfd
%doc %{_texmfdistdir}/source/fonts/ocr-b-outline/ocrb7.sfd
%doc %{_texmfdistdir}/source/fonts/ocr-b-outline/ocrb8.sfd
%doc %{_texmfdistdir}/source/fonts/ocr-b-outline/ocrb9.sfd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10362 |21cr|texlive-ofs-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16991
# category Package
# catalog-ctan /macros/generic/ofs
# catalog-date 2010-02-12 21:26:56 +0100
# catalog-license knuth
# catalog-version undef
Name:		texlive-ofs
Version:	20190228
Release:	1
Summary:	Macros for managing large font collections
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/ofs
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ofs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ofs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
OFS (Olsak's Font System) is a set of Plain TeX and LaTeX
macros for managing large font collections; it has been used by
Czech/Slovak users for many years. Main features include: -
Mapping from long names of fonts to the metric file name. The
user can specify only exact long names in documents. - Support
for many font encodings. - Printing of catalogues of fonts and
test samples of font families; the interactive macro \showfonts
shows all font families you have installed via OFS. - The user
interface is the same for Plain TeX and for LaTeX, but the
implementation differs: the LaTeX variant of OFS uses NFSS, but
the Plain variant implements its own font management (which may
even be better than NFSS) - Support for math fonts including TX
fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/ofs/a117.tex
%{_texmfdistdir}/tex/generic/ofs/a35.sty
%{_texmfdistdir}/tex/generic/ofs/a35.tex
%{_texmfdistdir}/tex/generic/ofs/allfonts.sty
%{_texmfdistdir}/tex/generic/ofs/allfonts.tex
%{_texmfdistdir}/tex/generic/ofs/amsfn.tex
%{_texmfdistdir}/tex/generic/ofs/mtfn.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-6a.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-6c.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-6k.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-6s.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-6t.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-6x.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-6y.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-8c.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-8t.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-8x.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-8z.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-ams.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-cm.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-mt.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-ps.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-px.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-slt.tex
%{_texmfdistdir}/tex/generic/ofs/ofs-tx.tex
%{_texmfdistdir}/tex/generic/ofs/ofs.sty
%{_texmfdistdir}/tex/generic/ofs/ofs.tex
%{_texmfdistdir}/tex/generic/ofs/ofsdef.tex
%{_texmfdistdir}/tex/generic/ofs/pantyk.tex
%{_texmfdistdir}/tex/generic/ofs/txfn.tex
%doc %{_texmfdistdir}/doc/generic/ofs/changes.txt
%doc %{_texmfdistdir}/doc/generic/ofs/eurotex2003-ofs.pdf
%doc %{_texmfdistdir}/doc/generic/ofs/eurotex2003-ofs.tex
%doc %{_texmfdistdir}/doc/generic/ofs/ofs-slt.pdf
%doc %{_texmfdistdir}/doc/generic/ofs/ofsdoc-e.pdf
%doc %{_texmfdistdir}/doc/generic/ofs/ofsdoc-e.tex
%doc %{_texmfdistdir}/doc/generic/ofs/ofsdoc.pdf
%doc %{_texmfdistdir}/doc/generic/ofs/ofsdoc.tex
%doc %{_texmfdistdir}/doc/generic/ofs/ofsmtdef.tex
%doc %{_texmfdistdir}/doc/generic/ofs/ofstest.tex
%doc %{_texmfdistdir}/doc/generic/ofs/readme.ofs

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10363 |21cr|texlive-ogham-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24876
# category Package
# catalog-ctan /fonts/ogham
# catalog-date 2011-12-19 12:56:45 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-ogham
Version:	20190228
Release:	1
Summary:	Fonts for typesetting Ogham script
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ogham
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ogham.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ogham.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The font provides the Ogham alphabet, which is found on a
number of Irish and Pictish carvings dating from the 4th
century AD. The font is distributed as Metafont source, which
has been patched (with the author's permission) for stability
at different output device resolutions. (Thanks are due to
Peter Flynn and Dan Luecking.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/ogham/ogham.mf
%{_texmfdistdir}/fonts/tfm/public/ogham/ogham.tfm
%doc %{_texmfdistdir}/doc/fonts/ogham/testfont.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10364 |21cr|texlive-oinuit-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28668
# category Package
# catalog-ctan /language/inuktitut/oinuit
# catalog-date 2012-12-31 10:40:46 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-oinuit
Version:	20190228
Release:	1
Summary:	LaTeX Support for the Inuktitut Language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/inuktitut/oinuit
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oinuit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oinuit.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oinuit.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a set of Lambda (Omega LaTeX) typesetting
tools for the Inuktitut language. Five different input methods
are supported and with the necessary fonts are also provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/oinuit/oinuit.map
%{_texmfdistdir}/fonts/ofm/public/oinuit/OInuit.ofm
%{_texmfdistdir}/fonts/ofm/public/oinuit/OInuitb.ofm
%{_texmfdistdir}/fonts/ofm/public/oinuit/OInuitbo.ofm
%{_texmfdistdir}/fonts/ofm/public/oinuit/OInuito.ofm
%{_texmfdistdir}/fonts/ovf/public/oinuit/OInuit.ovf
%{_texmfdistdir}/fonts/ovf/public/oinuit/OInuitb.ovf
%{_texmfdistdir}/fonts/ovf/public/oinuit/OInuitbo.ovf
%{_texmfdistdir}/fonts/ovf/public/oinuit/OInuito.ovf
%{_texmfdistdir}/fonts/tfm/public/oinuit/Inuit.tfm
%{_texmfdistdir}/fonts/tfm/public/oinuit/Inuitb.tfm
%{_texmfdistdir}/fonts/tfm/public/oinuit/Inuitbo.tfm
%{_texmfdistdir}/fonts/tfm/public/oinuit/Inuito.tfm
%{_texmfdistdir}/fonts/type1/public/oinuit/Inuit.pfb
%{_texmfdistdir}/fonts/type1/public/oinuit/Inuitb.pfb
%{_texmfdistdir}/fonts/type1/public/oinuit/Inuitbo.pfb
%{_texmfdistdir}/fonts/type1/public/oinuit/Inuito.pfb
%{_texmfdistdir}/fonts/type1/public/oinuit/cmssbxo10.pfb
%{_texmfdistdir}/omega/ocp/oinuit/Ninuit2uni.ocp
%{_texmfdistdir}/omega/ocp/oinuit/Qinuit2uni.ocp
%{_texmfdistdir}/omega/ocp/oinuit/inuitscii.ocp
%{_texmfdistdir}/omega/otp/oinuit/Ninuit2uni.otp
%{_texmfdistdir}/omega/otp/oinuit/Qinuit2uni.otp
%{_texmfdistdir}/omega/otp/oinuit/inuitscii.otp
%{_texmfdistdir}/tex/lambda/oinuit/litcmr.fd
%{_texmfdistdir}/tex/lambda/oinuit/litenc.def
%{_texmfdistdir}/tex/lambda/oinuit/oinuit.sty
%doc %{_texmfdistdir}/doc/fonts/oinuit/README.1ST
%doc %{_texmfdistdir}/doc/fonts/oinuit/README.TEXLIVE
%doc %{_texmfdistdir}/doc/fonts/oinuit/Table.eps
%doc %{_texmfdistdir}/doc/fonts/oinuit/book.tex
%doc %{_texmfdistdir}/doc/fonts/oinuit/inuit.tex
%doc %{_texmfdistdir}/doc/fonts/oinuit/taqtu.tex
#- source
%doc %{_texmfdistdir}/source/lambda/oinuit/oinuit.dtx
%doc %{_texmfdistdir}/source/lambda/oinuit/oinuit.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts omega tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10365 |21cr|texlive-old-arrows-42872-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname old-arrows

Summary:	Computer Modern old-style arrows with smaller arrowheads
Name:		texlive-old-arrows
Version:	42872
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(oabsy10.pfb) = 2024
Provides:	tex(oabsy10.tfm) = 2024
Provides:	tex(oabsy5.pfb) = 2024
Provides:	tex(oabsy5.tfm) = 2024
Provides:	tex(oabsy6.tfm) = 2024
Provides:	tex(oabsy7.pfb) = 2024
Provides:	tex(oabsy7.tfm) = 2024
Provides:	tex(oabsy8.tfm) = 2024
Provides:	tex(oabsy9.tfm) = 2024
Provides:	tex(oasy10.pfb) = 2024
Provides:	tex(oasy10.tfm) = 2024
Provides:	tex(oasy5.pfb) = 2024
Provides:	tex(oasy5.tfm) = 2024
Provides:	tex(oasy6.pfb) = 2024
Provides:	tex(oasy6.tfm) = 2024
Provides:	tex(oasy7.pfb) = 2024
Provides:	tex(oasy7.tfm) = 2024
Provides:	tex(oasy8.pfb) = 2024
Provides:	tex(oasy8.tfm) = 2024
Provides:	tex(oasy9.pfb) = 2024
Provides:	tex(oasy9.tfm) = 2024
Provides:	tex(oasy.enc) = 2024
Provides:	tex(oasy.map) = 2024
Provides:	tex-old-arrows = 2024
Provides:	tex(old-arrows.sty) = 2024
BuildArch:	noarch

%description
This package provides Computer Modern old-style arrows with
smaller arrowheads, associated with the usual LaTeX commands.
It can be used in documents that contain other amssymb arrow
characters that also have small arrowheads. It is also possible
to use the usual new-style Computer Modern arrows together with
the old-style ones.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/old-arrows/
%{_texmfdistdir}/fonts/enc/dvips/old-arrows/
%{_texmfdistdir}/fonts/map/dvips/old-arrows/
%{_texmfdistdir}/fonts/tfm/public/old-arrows/
%{_texmfdistdir}/fonts/type1/public/old-arrows/
%{_texmfdistdir}/tex/latex/old-arrows/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10366 |21cr|texlive-oldlatin-1.00-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17932
# category Package
# catalog-ctan /fonts/gothic/oldlatin
# catalog-date 2010-04-29 07:59:03 +0200
# catalog-license lppl
# catalog-version 1.00
Name:		texlive-oldlatin
Version:	1.00
Release:	8
Summary:	Compute Modern like font with long s
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/gothic/oldlatin
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oldlatin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oldlatin.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Metafont sources modified from Computer Modern in order to
generate "long s" which was used in old text.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/oldlatin/olb10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olbx10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olbx12.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olbx5.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olbx6.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olbx7.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olbx8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olbx9.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olbxsl10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oldunh10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olff10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olfib8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr10s.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr12.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr17.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr5.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr6.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr7.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olr9.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olsl10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olsl12.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olsl8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olsl9.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olsltt10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olss10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olss12.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olss17.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olss8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olss9.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssbx10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssdc10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssi10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssi12.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssi17.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssi8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssi9.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssq8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olssqi8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oltt10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oltt12.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oltt8.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oltt9.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/olvtt10.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oroman.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oromanl.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oromlig.mf
%{_texmfdistdir}/fonts/source/public/oldlatin/oromligs.mf
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olb10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/oldunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olff10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olfib8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olr10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olr12.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olr17.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olr5.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olr6.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olr7.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olr8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olr9.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olss10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olss12.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olss17.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olss8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olss9.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/oltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/oltt12.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/oltt8.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/oltt9.tfm
%{_texmfdistdir}/fonts/tfm/public/oldlatin/olvtt10.tfm
%doc %{_texmfdistdir}/doc/fonts/oldlatin/README
%doc %{_texmfdistdir}/doc/fonts/oldlatin/oldlatin.pdf
%doc %{_texmfdistdir}/doc/fonts/oldlatin/oldlatin.tex
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_alphabet.tex
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_all.pdf
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_all.tex
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_bf.pdf
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_bf.tex
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_rm.pdf
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_rm.tex
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_sl.pdf
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_sl.tex
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_ss.pdf
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_ss.tex
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_tt.pdf
%doc %{_texmfdistdir}/doc/fonts/oldlatin/test_ol_tt.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10367 |21cr|texlive-oldstandard-2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-oldstandard
Version:	2.2
Release:	2
Summary:	Old Standard: A Unicode Font for Classical and Medieval Studies
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/oldstandard
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oldstandard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oldstandard.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Old Standard is designed to reproduce the actual printing style
of the early 20th century, reviving a specific type of Modern
(classicist) style of serif typefaces, very commonly used in
various editions of the late 19th and early 20th century, but
almost completely abandoned later. The font supports
typesetting of Old and Middle English, Old Icelandic, Cyrillic
(with historical characters, extensions for Old Slavonic and
localised forms), Gothic transliterations, critical editions of
Classical Greek and Latin, and many more. Old Standard works
with TeX engines that directly support OpenType features, such
as XeTeX and LuaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips
%{_texmfdistdir}/fonts/enc/dvips
%{_texmfdistdir}/fonts/opentype/public/oldstandard
%{_texmfdistdir}/fonts/tfm/public/oldstandard
%{_texmfdistdir}/fonts/type1/public/oldstandard
%{_texmfdistdir}/fonts/vf/public/oldstandard
%doc %{_texmfdistdir}/doc/fonts/oldstandard

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10368 |21cr|texlive-olsak-misc-20220312-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			texlive-olsak-misc
Version:		20220312
Release:		1
Summary:		Collection of plain TeX macros written by Petr Olsak
Group:			Publishing
URL:			https://ctan.org/tex-archive/macros/generic/olsak-misc
License:		pd
Source0:		https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/olsak-misc.tar.xz
Source1:		https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/olsak-misc.doc.tar.xz
BuildArch:		noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a collection with various single-file plain TeX macros
written by Petr Olsak

The documentation is included in each file separately.

booklet.tex  .... re-orders PDF pages and collects them for booklet printing 
cnv.tex      .... conversion of texts
cnv-pu.tex   .... example of usage of cnv.tex --- pdf outlines in Unicode
cnv-word.tex .... example of usage of cnv.tex --- word to word conversion
eparam.tex   .... Full expansion during parameter scanning
fun-coffee.tex .. generates splotches in the document
openclose.tex ... repairs balanced text between \Open ...\Close pair
qrcode.tex   .... QR code generated at TeX level
scanbase.tex .... parser of text-style mysql outputs
scancsv.tex  .... parser of CSV format
seplist.tex  .... macros with alternative separators of a parameter
xmlparser.tex ... parser of XML language

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10369 |21cr|texlive-onedown-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-onedown
Version:	1.6
Release:	1
Summary:	Typeset Bridge Diagrams
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/onedown
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/onedown.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/onedown.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/onedown.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a comprehensive package to draw all sorts of bridge diagrams, 
including hands (stand alone or arround a compass), 
bidding tables (stand alone or in connection with hands/compass), trick tables, and expert quizzes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/onedown
%doc %{_texmfdistdir}/doc/latex/onedown
%doc %{_texmfdistdir}/source/latex/onedown

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10370 |21cr|texlive-opencolor-66363-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname opencolor

Summary:	Simple use of the Open Color colors
Name:		texlive-opencolor
Version:	66363
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(opencolor.sty) = 2024
BuildArch:	noarch

%description
This package that provides hexadecimal color definitions of the
130 colors included in the Open Color library.

%files
%doc %{_texmfdistdir}/doc/latex/opencolor
%{_texmfdistdir}/tex/latex/opencolor

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10371 |21cr|texlive-opensans-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54512
# category Package
# catalog-ctan /fonts/opensans
# catalog-date 2020-03-24
# catalog-license lppl1.3
# catalog-version 2.2
Name:		texlive-opensans
Version:	2.2
Release:	1
Summary:	The Open Sans font family, and LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/opensans
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/opensans.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/opensans.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Open Sans is a humanist sans serif typeface designed by Steve
Matteson; the font is available from the Google Font Directory
as TrueType files licensed under the Apache License version
2.0. The package provides support for this font family in
LaTeX. It includes the original TrueType fonts, as well as Type
1 versions, converted for this package using FontForge for full
support with dvips.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_22wi7j.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_3kulrh.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_6fef26.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_6fnoxn.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_a426mb.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_ajvczw.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_crnekn.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_cxxwxv.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_epwjz7.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_far7gh.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_iz27ck.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_jg4h6q.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_kjsjgs.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_lhblba.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_mx6tiu.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_n3lhbv.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_nvvucy.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_nwf7uv.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_p2vepx.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_rnfpjs.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_roa3ad.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_uqj6z7.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_uv4o4i.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_uw4ovh.enc
%{_texmfdistdir}/fonts/enc/dvips/opensans/a_v2kvzh.enc
%{_texmfdistdir}/fonts/map/dvips/opensans/opensans.map
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Bold-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-BoldItalic-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBold-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-ExtraBoldItalic-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Italic-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Light-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-LightItalic-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-Regular-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBold-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSans-SemiBoldItalic-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-LGR-LF.tfm
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-LightItalic-X2-TOsF.vf
%{_texmfdistdir}/tex/latex/opensans/LGRopensans-LF.fd
%{_texmfdistdir}/tex/latex/opensans/LGRopensans-OsF.fd
%{_texmfdistdir}/tex/latex/opensans/LGRopensans-TLF.fd
%{_texmfdistdir}/tex/latex/opensans/LGRopensans-TOsF.fd
%{_texmfdistdir}/tex/latex/opensans/OT1opensans-LF.fd
%{_texmfdistdir}/tex/latex/opensans/OT1opensans-OsF.fd
%{_texmfdistdir}/tex/latex/opensans/OT1opensans-TLF.fd
%{_texmfdistdir}/tex/latex/opensans/OT1opensans-TOsF.fd
%{_texmfdistdir}/tex/latex/opensans/T1opensans-LF.fd
%{_texmfdistdir}/tex/latex/opensans/T1opensans-OsF.fd
%{_texmfdistdir}/tex/latex/opensans/T1opensans-TLF.fd
%{_texmfdistdir}/tex/latex/opensans/T1opensans-TOsF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Aopensans-LF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Aopensans-OsF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Aopensans-TLF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Aopensans-TOsF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Bopensans-LF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Bopensans-OsF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Bopensans-TLF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Bopensans-TOsF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Copensans-LF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Copensans-OsF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Copensans-TLF.fd
%{_texmfdistdir}/tex/latex/opensans/T2Copensans-TOsF.fd
%{_texmfdistdir}/tex/latex/opensans/TS1opensans-LF.fd
%{_texmfdistdir}/tex/latex/opensans/TS1opensans-OsF.fd
%{_texmfdistdir}/tex/latex/opensans/TS1opensans-TLF.fd
%{_texmfdistdir}/tex/latex/opensans/TS1opensans-TOsF.fd
%{_texmfdistdir}/tex/latex/opensans/X2opensans-LF.fd
%{_texmfdistdir}/tex/latex/opensans/X2opensans-OsF.fd
%{_texmfdistdir}/tex/latex/opensans/X2opensans-TLF.fd
%{_texmfdistdir}/tex/latex/opensans/X2opensans-TOsF.fd
%{_texmfdistdir}/tex/latex/opensans/opensans.sty
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Bold-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-Light-X2-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-LGR-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-LGR-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-LGR-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-LGR-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-LGR-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-LGR-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-LGR-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-LGR-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-OT1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-OT1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-OT1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-OT1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-OT1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-OT1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-OT1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-OT1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2A-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2A-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2A-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2A-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2A-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2A-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2A-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2A-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2B-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2B-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2B-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2B-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2B-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2B-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2B-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2B-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2C-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2C-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2C-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2C-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2C-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2C-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2C-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-T2C-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-TS1-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-TS1-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-TS1-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-TS1-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-TS1-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-TS1-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-TS1-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-TS1-TOsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-X2-LF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-X2-LF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-X2-OsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-X2-OsF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-X2-TLF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-X2-TLF.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-X2-TOsF--base.tfm
%{_texmfdistdir}/fonts/tfm/ascender/opensans/OpenSansCondensed-LightItalic-X2-TOsF.tfm
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-Bold.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-BoldItalic.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-ExtraBold.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-ExtraBoldItalic.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-Italic.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-Light.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-LightItalic.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-Regular.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-SemiBold.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSans-SemiBoldItalic.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSansCondensed-Bold.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSansCondensed-Light.ttf
%{_texmfdistdir}/fonts/truetype/ascender/opensans/OpenSansCondensed-LightItalic.ttf
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-Bold.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-BoldItalic.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-ExtraBold.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-ExtraBoldItalic.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-Italic.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-Light.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-LightItalic.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-Regular.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-SemiBold.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSans-SemiBoldItalic.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSansCondensed-Bold.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSansCondensed-Light.pfb
%{_texmfdistdir}/fonts/type1/ascender/opensans/OpenSansCondensed-LightItalic.pfb
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Bold-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-BoldItalic-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBold-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-ExtraBoldItalic-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Italic-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Light-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-LightItalic-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-Regular-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBold-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSans-SemiBoldItalic-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-OT1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-OT1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-OT1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-OT1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2A-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2A-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2A-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2A-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2B-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2B-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2B-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2B-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2C-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2C-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2C-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-T2C-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-TS1-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-TS1-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-TS1-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-TS1-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-X2-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-X2-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-X2-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Bold-X2-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-LGR-LF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-LGR-OsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-LGR-TLF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-LGR-TOsF.vf
%{_texmfdistdir}/fonts/vf/ascender/opensans/OpenSansCondensed-Light-OT1-LF.vf

%doc %{_texmfdistdir}/doc/fonts/opensans/CHANGES
%doc %{_texmfdistdir}/doc/fonts/opensans/README
%doc %{_texmfdistdir}/doc/fonts/opensans/opensans-samples.pdf
%doc %{_texmfdistdir}/doc/fonts/opensans/opensans.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10372 |21cr|texlive-oplotsymbl-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-oplotsymbl
Version:	1.4
Release:	1
Summary:	Includes symbols, which are not easily available
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/oplotsymbl
License:	The LATEX Project Public License 1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/oplotsymbl.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/oplotsymbl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is named oPlotSymbl and it includes symbols, which
are not easily available. Especially, these symbols are used in
scientific plots, but the potential user is allowed to use them
in other ways. This package uses TikZ and xcolor.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10373 |21cr|texlive-optidef-3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		texlive-optidef
Version:	3.1
Release:	3
Summary:	Environments for writing optimization problems
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/optidef
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/optidef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/optidef.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small library provides a standard set of environments for
writing optimization problems. It automatically aligns the
problems in three points with an optional fourth: Beginning of
the words "minimize/argmin" and "subject to" The objective
function and the longest left hand side of the constraints. The
$= | > | <$ signs of the constraints. Optionally, the user can
add manually a double align character && to align some common
constraints feature. A clear example could be the constraints
names, e.g. (boundary constraint) alignment with (dynamic
constraint). Furthermore, it provides an easy interface to
define optimization problem for three different reference
situations: Where no equation is referenced/numbered. Where the
problem is referenced with a single number. Where each equation
has an individual reference. Finally, it also allows a
definition of any optimization problem without a limitless
number of constraints.


#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/optidef/
%{_texmfdistdir}/tex/latex/optidef/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10374 |21cr|texlive-orcidlink-59560-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname orcidlink

Summary:	Insert hyperlinked ORCiD logo
Name:		texlive-orcidlink
Version:	59560
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(hyperref.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
Provides:	tex(orcidlink.sty) = 2024
BuildArch:	noarch

%description
This package provides a command to insert the ORCiD logo, which
is hyperlinked to the URL of the researcher whose iD was
specified.

%files
%doc %{_texmfdistdir}/doc/latex/orcidlink
%{_texmfdistdir}/tex/latex/orcidlink

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10375 |21cr|texlive-orientation-57390-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname orientation

Summary:	Set page orientation with dvips/Ghostscript (ps2pdf)
Name:		texlive-orientation
Version:	57390
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(everypage.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(orientation.sty) = 2024
BuildArch:	noarch

%description
This package provides commands for manual (per-page and
per-document) orientation of pages in a PDF created with
dvips/Ghostscript (ps2pdf). For future versions it is planned
to add support for other drivers, allowing for PDF orientation
to be set in (x)dvipdfmx and pdfmode pdfTeX using the same
commands from the user perspective.

%files
%doc %{_texmfdistdir}/doc/latex/orientation
%{_texmfdistdir}/tex/latex/orientation

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10376 |21cr|texlive-orkhun-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-orkhun
Version:	20190228
Release:	1
Summary:	A font for orkhun script
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/orkhun
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/orkhun.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/orkhun.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The font covers an old Turkic script. It is provided as
MetaFont source.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/orkhun
%{_texmfdistdir}/fonts/tfm/public/orkhun
%doc %{_texmfdistdir}/doc/fonts/orkhun

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10377 |21cr|texlive-oscola-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-oscola
Version:	1.6
Release:	1
Summary:	BibLaTeX style for the Oxford Standard for the Citation of Legal Authorities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/oscola
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oscola.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oscola.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a set of style files for use with Biblatex
(v 2+) and Biber (v 1+) to produce citations and bibliographies
in accordance with the widely-used Oxford Standard for the
Citation of Legal Authorities. It also includes facilities for
constructing tables of cases and legislation from citations (in
conjunction with appropriate indexing packages).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/oscola
%{_texmfdistdir}/tex/latex/oscola
%doc %{_texmfdistdir}/doc/latex/oscola

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10378 |21cr|texlive-oswald-60784-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname oswald

Summary:	The Oswald family of fonts with support for LaTeX and pdfLaTeX
Name:		texlive-oswald
Version:	60784
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(a_7goukv.enc) = 2024
Provides:	tex(a_d2anrk.enc) = 2024
Provides:	tex(a_j5f6hs.enc) = 2024
Provides:	tex(a_leqwth.enc) = 2024
Provides:	tex(a_rymxky.enc) = 2024
Provides:	tex(a_ts7dz6.enc) = 2024
Provides:	tex(a_wbqrrh.enc) = 2024
Provides:	tex(LY1Zeroswald-Sup.fd) = 2024
Provides:	tex(LY1Zeroswald-TLF.fd) = 2024
Provides:	tex(Oswald.sty) = 2024
Provides:	tex(OT1Zeroswald-Sup.fd) = 2024
Provides:	tex(OT1Zeroswald-TLF.fd) = 2024
Provides:	tex(T1Zeroswald-Sup.fd) = 2024
Provides:	tex(T1Zeroswald-TLF.fd) = 2024
Provides:	tex(TS1Zeroswald-TLF.fd) = 2024
Provides:	tex(Zeroswald.map) = 2024
BuildArch:	noarch

%description
This package provides the Oswald family of fonts, designed by
Vernon Adams, Kalapi Gajjar, Cyreal, with support for LaTeX and
pdfLaTeX.

%files
%doc %{_texmfdistdir}/doc/fonts/oswald
%{_texmfdistdir}/fonts/enc/dvips/oswald
%{_texmfdistdir}/fonts/map/dvips/oswald
%{_texmfdistdir}/fonts/tfm/public/oswald
%{_texmfdistdir}/fonts/type1/public/oswald
%{_texmfdistdir}/fonts/vf/public/oswald
%{_texmfdistdir}/tex/latex/oswald

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10379 |21cr|texlive-ot-tableau-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17829
# category Package
# catalog-ctan /macros/latex/contrib/ot-tableau
# catalog-date 2010-04-14 18:13:33 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-ot-tableau
Version:	20190228
Release:	1
Summary:	Optimality Theory tableaux in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ot-tableau
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ot-tableau.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ot-tableau.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes it easy to create beautiful optimality-
theoretic tableaux. The LaTeX source is visually very similar
to a formatted tableau, which makes working with the source
code painless (well, less painful). A variety of stylistic
variants are available to suit personal taste.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ot-tableau/ot-tableau.sty
%doc %{_texmfdistdir}/doc/latex/ot-tableau/README
%doc %{_texmfdistdir}/doc/latex/ot-tableau/ot-tableau.pdf
%doc %{_texmfdistdir}/doc/latex/ot-tableau/ot-tableau.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10380 |21cr|texlive-oubraces-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21833
# category Package
# catalog-ctan /macros/latex/contrib/oubraces
# catalog-date 2011-03-25 11:24:40 +0100
# catalog-license noinfo
# catalog-version undef
Name:		texlive-oubraces
Version:	20190228
Release:	1
Summary:	Braces over and under a formula
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/oubraces
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oubraces.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oubraces.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a means to interleave \overbrace and \underbrace in
the same formula.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/oubraces/oubraces.sty
%doc %{_texmfdistdir}/doc/latex/oubraces/oubraces.pdf
%doc %{_texmfdistdir}/doc/latex/oubraces/oubraces.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10381 |21cr|texlive-oup-authoring-template-64491-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname oup-authoring-template

Summary:	A general template for journals published by Oxford University Press (OUP)
Name:		texlive-oup-authoring-template
Version:	64491
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(oup-authoring-template.cls) = 2024
BuildArch:	noarch

%description
This package provides a general LaTeX template for journals
published by Oxford University Press (OUP). The template
outputs to the three official page designs (traditional,
contemporary, modern) used by many journals published by OUP,
with large, medium and small page options. For more information
see
https://academic.oup.com/journals/pages/authors/preparing_your_
manuscript.

%files
%doc %{_texmfdistdir}/doc/latex/oup-authoring-template
%{_texmfdistdir}/tex/latex/oup-authoring-template

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10382 |21cr|texlive-outerhbox-54254-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname outerhbox

Summary:	Collect horizontal material for contributing to a paragraph
Name:		texlive-outerhbox
Version:	54254
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(outerhbox.sty) = 2024
BuildArch:	noarch

%description
The package provides the \outerhbox command, which is similar
to \hbox, except that material is set in outer horizontal mode.
This prevents TeX from optimising away maths penalties and the
like, that are needed when the material is \unhbox'ed.

%files
%{_texmfdistdir}/tex/generic/outerhbox

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10383 |21cr|texlive-outilsgeomtikz-66461-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname outilsgeomtikz

Summary:	Some geometric tools, with TikZ
Name:		texlive-outilsgeomtikz
Version:	66461
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(OutilsGeomTikz.sty) = 2024
BuildArch:	noarch

%description
This package provides some commands, with French keys, to
display geometric tools using TikZ, for example a pen, a
compass, a rule, a square, a protractor, ...

%files
%doc %{_texmfdistdir}/doc/latex/outilsgeomtikz
%{_texmfdistdir}/tex/latex/outilsgeomtikz

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10384 |21cr|texlive-overarrows-65853-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname overarrows

Summary:	Custom extensible arrows over math expressions
Name:		texlive-overarrows
Version:	65853
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(overarrows.sty) = 2024
BuildArch:	noarch

%description
A LaTeX package to create custom arrows over math expressions,
mainly for vectors (but arrows can as well be drawn below).
Arrows stretch with content, scale with math styles, and have a
correct kerning when a subscript follows. Some predefined
commands are also provided.

%files
%doc %{_texmfdistdir}/doc/latex/overarrows
%{_texmfdistdir}/tex/latex/overarrows

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10385 |21cr|texlive-overlock-64495-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname overlock

Summary:	Overlook sans fonts with LaTeX support
Name:		texlive-overlock
Version:	64495
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(LY1Ovrlck-LF.fd) = 2024
Provides:	tex(LY1Ovrlck-OsF.fd) = 2024
Provides:	tex(OT1Ovrlck-LF.fd) = 2024
Provides:	tex(OT1Ovrlck-OsF.fd) = 2024
Provides:	tex-overlock = 2024
Provides:	tex(overlock.map) = 2024
Provides:	tex(overlock.sty) = 2024
Provides:	tex(ovrlck_2sdgnb.enc) = 2024
Provides:	tex(ovrlck_325tkf.enc) = 2024
Provides:	tex(ovrlck_7l4e47.enc) = 2024
Provides:	tex(ovrlck_a4aghc.enc) = 2024
Provides:	tex(ovrlck_bhbhyo.enc) = 2024
Provides:	tex(ovrlck_cj365g.enc) = 2024
Provides:	tex(ovrlck_cr35rj.enc) = 2024
Provides:	tex(ovrlck_e3j4ia.enc) = 2024
Provides:	tex(ovrlck_fqfhhf.enc) = 2024
Provides:	tex(ovrlck_gmmlzo.enc) = 2024
Provides:	tex(ovrlck_irzqhk.enc) = 2024
Provides:	tex(ovrlck_j3mq5n.enc) = 2024
Provides:	tex(ovrlck_k2npiy.enc) = 2024
Provides:	tex(ovrlck_lhx5go.enc) = 2024
Provides:	tex(ovrlck_lqqrub.enc) = 2024
Provides:	tex(ovrlck_siy5zo.enc) = 2024
Provides:	tex(ovrlck_tmoia5.enc) = 2024
Provides:	tex(ovrlck_vvi6px.enc) = 2024
Provides:	tex(ovrlck_woxjio.enc) = 2024
Provides:	tex(T1Ovrlck-LF.fd) = 2024
Provides:	tex(T1Ovrlck-OsF.fd) = 2024
Provides:	tex(TS1Ovrlck-LF.fd) = 2024
Provides:	tex(TS1Ovrlck-OsF.fd) = 2024
BuildArch:	noarch

%description
The package provides the Overlock and OverlockSC families of
fonts, designed by Dario Manuel Muhafara of the TIPO foundry
(http://www.tipo.net.ar) are "rounded" sans-serif fonts in
three weights (Regular, Bold, Black) with italic variants for
each of them. There are also small-caps and old-style figures
in the Regular weight.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/overlock/
%{_texmfdistdir}/fonts/map/dvips/overlock/
%{_texmfdistdir}/fonts/opentype/tipo/overlock
%{_texmfdistdir}/fonts/tfm/tipo/overlock/
%{_texmfdistdir}/fonts/type1/tipo/overlock/
%{_texmfdistdir}/fonts/vf/tipo/overlock/
%{_texmfdistdir}/tex/latex/overlock/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10386 |21cr|texlive-pacioli-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24947
# category Package
# catalog-ctan /fonts/pacioli
# catalog-date 2011-06-16 21:20:53 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-pacioli
Version:	20190228
Release:	1
Summary:	Fonts designed by Fra Luca de Pacioli in 1497
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/pacioli
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pacioli.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pacioli.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pacioli.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pacioli was a c.15 mathematician, and his font was designed
according to 'the divine proportion'. The font is uppercase
letters together with punctuation and some analphabetics; no
lowercase or digits. The Metafont source is distributed in a
.dtx file, together with LaTeX support.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/pacioli/cpclig.mf
%{_texmfdistdir}/fonts/source/public/pacioli/cpcpunct.mf
%{_texmfdistdir}/fonts/source/public/pacioli/cpcr10.mf
%{_texmfdistdir}/fonts/source/public/pacioli/cpcromanp.mf
%{_texmfdistdir}/fonts/source/public/pacioli/cpcromanu.mf
%{_texmfdistdir}/fonts/source/public/pacioli/cpcsl10.mf
%{_texmfdistdir}/fonts/source/public/pacioli/cpctitle.mf
%{_texmfdistdir}/fonts/tfm/public/pacioli/cpcr10.tfm
%{_texmfdistdir}/fonts/tfm/public/pacioli/cpcsl10.tfm
%{_texmfdistdir}/tex/latex/pacioli/ot1cpc.fd
%{_texmfdistdir}/tex/latex/pacioli/pacioli.sty
%{_texmfdistdir}/tex/latex/pacioli/t1cpc.fd
%doc %{_texmfdistdir}/doc/fonts/pacioli/README
%doc %{_texmfdistdir}/doc/fonts/pacioli/tryfont.ps
%doc %{_texmfdistdir}/doc/fonts/pacioli/tryfont.tex
#- source
%doc %{_texmfdistdir}/source/fonts/pacioli/pacioli.dtx
%doc %{_texmfdistdir}/source/fonts/pacioli/pacioli.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10387 |21cr|texlive-padauk-3.002-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-padauk
Version:	3.002
Release:	1
Summary:	A high-quality TrueType font that supports the many diverse languages that use the Myanmar script
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/padauk.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/padauk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Padauk is a Unicode-based font family with broad support for 
writing systems that use the Myanmar script.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10388 |21cr|texlive-padcount-47621-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname padcount

Summary:	Pad numbers with arbitrary characters
Name:		texlive-padcount
Version:	47621
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(padcount.sty) = 2024
BuildArch:	noarch

%description
This package provides some simple macros which will pad numbers
(or, indeed, any expanded token) with your choice of character
(defaulting to "0") to your choice of number of places
(defaults to "2"). This works not only on arabic numerals, but
on any expanded list of tokens passed to it. This makes it
suitable for, among other things, counters of all kinds.

%files
%doc %{_texmfdistdir}/doc/latex/padcount/
%{_texmfdistdir}/tex/latex/padcount/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10389 |21cr|texlive-pagegrid-64470-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pagegrid

Summary:	Print page grid in background
Name:		texlive-pagegrid
Version:	64470
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pagegrid.sty) = 2024
BuildArch:	noarch

%description
This package puts a grid on the paper. It was written for
developers of a class or package who have to put elements on
definite locations on a page (e.g. letter class). The grid
allows a faster optical check, whether the positions are
correct. If the previewer already offers features for
measuring, the package might be unnecessary. Otherwise it saves
the developer from printing the page and measuring by hand. The
package was part of the oberdiek bundle.

%files
%doc %{_texmfdistdir}/doc/latex/pagegrid
%{_texmfdistdir}/tex/latex/pagegrid

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10390 |21cr|texlive-pagella-otf-64705-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pagella-otf

Summary:	Using the OpenType fonts TeX Gyre Pagella
Name:		texlive-pagella-otf
Version:	64705
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pagella-otf.sty) = 2024
BuildArch:	noarch

%description
This package can only be used with LuaLaTeX or XeLaTeX. It does
the font setting for the OpenType font 'TeX Gyre Pagella' for
text and math. The missing typefaces like bold math and slanted
text are also defined

%files
%doc %{_texmfdistdir}/doc/fonts/pagella-otf
%{_texmfdistdir}/tex/latex/pagella-otf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10391 |21cr|texlive-pagesel-56105-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pagesel

Summary:	Select pages of a document for output
Name:		texlive-pagesel
Version:	56105
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pagesel-2016-05-16.sty) = 2024
Provides:	tex(pagesel.sty) = 2024
BuildArch:	noarch

%description
Selects single pages, ranges of pages, odd pages or even pages
for output. The package is part of the oberdiek bundle.

%files
%doc %{_texmfdistdir}/doc/latex/pagesel
%{_texmfdistdir}/tex/latex/pagesel

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10392 |21cr|texlive-palette-60119-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname palette

Summary:	Create palettes for colors and symbols that can be swapped in
Name:		texlive-palette
Version:	60119
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(colorpalette.sty) = 2024
Provides:	tex(symbolpalette.sty) = 2024
BuildArch:	noarch

%description
The package `palette` contains two files: `colorpalette.sty`
and `symbolpalette`. One deals with colors and the other deals
with symbols; the implementation is quite similar. With this
package you can create themes. Each of these themes have a set
of colors, and you can create palettes based on this theme with
specific color values for each of the theme's color slots. The
active palette for each theme can be swapped in to make
experimenting with colors easier or give users choices as to
which theme they pick.

%files
%doc %{_texmfdistdir}/doc/latex/palette
%{_texmfdistdir}/tex/latex/palette

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10393 |21cr|texlive-pangram-66300-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pangram

Summary:	A LaTeX package for testing fonts
Name:		texlive-pangram
Version:	66300
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pangram.sty) = 2024
BuildArch:	noarch

%description
This package provides a simple way for font designers and users
to test their fonts in different sizes without much input.

%files
%doc %{_texmfdistdir}/doc/latex/pangram
%{_texmfdistdir}/tex/latex/pangram

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10394 |21cr|texlive-parades-40042-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname parades

Summary:	Tabulators and space between paragraphs in galley approach
Name:		texlive-parades
Version:	40042
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-parades = 2024
Provides:	tex(paravesp.sty) = 2024
BuildArch:	noarch

%description
The LaTeX package paravesp controls the spaces above and below
paragraphs. The python script parades.py generates paragraph
styles with support of space above, space below and tabulators.
The system imposes the galley approach on the document.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/parades/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10395 |21cr|texlive-paratype-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32859
# category Package
# catalog-ctan /fonts/paratype
# catalog-date 2013-05-21 15:19:45 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-paratype
Version:	20190228
Release:	1
Summary:	LaTeX support for free fonts by ParaType
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/paratype
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paratype.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paratype.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers LaTeX support for the fonts PT Sans, PT
Serif and PT Mono developed by ParaType for the project "Public
Types of Russian Federation", and released under an open user
license. The fonts themselves are provided in both the TrueType
and Type 1 formats, both created by ParaType). The fonts
provide encodings OT1, T1, IL2, TS1, T2* and X2. The package
provides a convenient replacement of the two packages ptsans
and ptserif.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/paratype/ptmono/PTM55F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptmono/PTM55F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptmono/PTM75F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptmono/PTM75F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTC55F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTC55F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTC75F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTC75F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTN57F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTN57F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTN77F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTN77F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTS55F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTS55F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTS56F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTS56F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTS75F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTS75F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTS76F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptsans/PTS76F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTF55F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTF55F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTF56F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTF56F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTF75F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTF75F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTF76F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTF76F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTZ55F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTZ55F.inf
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTZ56F.afm
%{_texmfdistdir}/fonts/afm/paratype/ptserif/PTZ56F.inf
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_il2.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_ot2.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_t1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptmono_x2.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_il2.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_ot2.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_t1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptsans_x2.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_il2.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_ot2.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_t1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/paratype/ptserif_x2.enc
%{_texmfdistdir}/fonts/map/dvips/paratype/paratype-truetype.map
%{_texmfdistdir}/fonts/map/dvips/paratype/paratype-type1.map
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-il2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Bold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-BoldSlanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-il2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Regular-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptmono/PTMono-Slanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Bold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-BoldItalic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Caption-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-CaptionSlanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Italic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Narrow-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-NarrowSlanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptsans/PTSans-Regular-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Bold-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldItalic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldSlanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Caption-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionItalic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionSlanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Italic-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Regular-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-ot2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-Slanted-tlf-x2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-il2.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-t2a--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-t2a.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-t2b--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-t2b.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-t2c--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-t2c.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-x2--base.tfm
%{_texmfdistdir}/fonts/tfm/paratype/ptserif/PTSerif-UprightItalic-tlf-x2.tfm
%{_texmfdistdir}/fonts/truetype/paratype/ptmono/PTM55F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptmono/PTM75F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptsans/PTC55F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptsans/PTC75F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptsans/PTN57F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptsans/PTN77F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptsans/PTS55F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptsans/PTS56F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptsans/PTS75F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptsans/PTS76F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptserif/PTF55F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptserif/PTF56F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptserif/PTF75F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptserif/PTF76F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptserif/PTZ55F.ttf
%{_texmfdistdir}/fonts/truetype/paratype/ptserif/PTZ56F.ttf
%{_texmfdistdir}/fonts/type1/paratype/ptmono/PTM55F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptmono/PTM55F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptmono/PTM75F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptmono/PTM75F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTC55F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTC55F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTC75F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTC75F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTN57F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTN57F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTN77F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTN77F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTS55F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTS55F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTS56F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTS56F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTS75F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTS75F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTS76F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptsans/PTS76F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTF55F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTF55F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTF56F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTF56F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTF75F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTF75F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTF76F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTF76F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTZ55F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTZ55F.pfm
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTZ56F.pfb
%{_texmfdistdir}/fonts/type1/paratype/ptserif/PTZ56F.pfm
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Bold-tlf-il2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Bold-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Bold-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Bold-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Bold-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Bold-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-BoldSlanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-BoldSlanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-BoldSlanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-BoldSlanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-BoldSlanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-BoldSlanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Regular-tlf-il2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Regular-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Regular-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Regular-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Regular-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Regular-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Regular-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Regular-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Slanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Slanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Slanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Slanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Slanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptmono/PTMono-Slanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Bold-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Bold-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Bold-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Bold-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-BoldItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-BoldItalic-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-BoldItalic-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-BoldItalic-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-BoldItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-BoldItalic-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Caption-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Caption-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Caption-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Caption-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Caption-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Caption-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBold-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBold-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBold-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBold-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionBoldSlanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionSlanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionSlanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionSlanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-CaptionSlanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Italic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Italic-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Italic-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Italic-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Italic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Italic-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Narrow-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Narrow-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Narrow-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Narrow-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Narrow-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Narrow-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBold-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBold-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBold-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBold-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowBoldSlanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowSlanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowSlanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowSlanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-NarrowSlanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Regular-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Regular-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Regular-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Regular-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Regular-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptsans/PTSans-Regular-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Bold-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Bold-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Bold-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Bold-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Bold-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Bold-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldItalic-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldItalic-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldItalic-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldItalic-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldSlanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldSlanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldSlanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldSlanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-BoldUprightItalic-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Caption-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Caption-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Caption-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Caption-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Caption-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Caption-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionItalic-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionItalic-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionSlanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionSlanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionSlanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-CaptionUprightItalic-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Italic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Italic-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Italic-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Italic-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Italic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Italic-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Regular-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Regular-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Regular-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Regular-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Regular-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Regular-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Slanted-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Slanted-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Slanted-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Slanted-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Slanted-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-Slanted-tlf-x2.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-UprightItalic-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-UprightItalic-tlf-t2a.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-UprightItalic-tlf-t2b.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-UprightItalic-tlf-t2c.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-UprightItalic-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/paratype/ptserif/PTSerif-UprightItalic-tlf-x2.vf
%{_texmfdistdir}/tex/latex/paratype/IL2PTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/IL2PTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/IL2PTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/IL2PTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/IL2PTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/IL2PTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT1PTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT1PTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT1PTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT1PTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT1PTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT1PTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT2PTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT2PTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT2PTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT2PTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT2PTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/OT2PTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/PTMono.sty
%{_texmfdistdir}/tex/latex/paratype/PTSans.sty
%{_texmfdistdir}/tex/latex/paratype/PTSansCaption.sty
%{_texmfdistdir}/tex/latex/paratype/PTSansNarrow.sty
%{_texmfdistdir}/tex/latex/paratype/PTSerif.sty
%{_texmfdistdir}/tex/latex/paratype/PTSerifCaption.sty
%{_texmfdistdir}/tex/latex/paratype/T1PTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T1PTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T1PTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T1PTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T1PTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T1PTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2APTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2APTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2APTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2APTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2APTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2APTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2BPTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2BPTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2BPTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2BPTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2BPTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2BPTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2CPTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2CPTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2CPTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2CPTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2CPTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/T2CPTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/TS1PTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/TS1PTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/TS1PTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/TS1PTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/TS1PTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/TS1PTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/X2PTMono-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/X2PTSans-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/X2PTSansCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/X2PTSansNarrow-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/X2PTSerif-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/X2PTSerifCaption-TLF.fd
%{_texmfdistdir}/tex/latex/paratype/paratype.sty
%doc %{_texmfdistdir}/doc/fonts/paratype/CHANGELOG
%doc %{_texmfdistdir}/doc/fonts/paratype/OT_TT_Install_E.txt
%doc %{_texmfdistdir}/doc/fonts/paratype/OT_TT_Install_R.txt
%doc %{_texmfdistdir}/doc/fonts/paratype/PT_Free_Font_License_eng_1.3.txt
%doc %{_texmfdistdir}/doc/fonts/paratype/PT_Free_Font_License_rus_1.3.txt
%doc %{_texmfdistdir}/doc/fonts/paratype/README
%doc %{_texmfdistdir}/doc/fonts/paratype/manifest.txt
%doc %{_texmfdistdir}/doc/fonts/paratype/paratype-sample.pdf
%doc %{_texmfdistdir}/doc/fonts/paratype/paratype-sample.tex
%doc %{_texmfdistdir}/doc/fonts/paratype/paratype.pdf
%doc %{_texmfdistdir}/doc/fonts/paratype/paratype.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10396 |21cr|texlive-parsa-54840-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname parsa

Summary:	A XeLaTeX package for theses and dissertations at Iranian Universities
Name:		texlive-parsa
Version:	54840
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(adjustbox.sty)
#Requires:	tex(fancyhdr.sty)
#Requires:	tex(float.sty)
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(multirow.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(parsa.sty) = 2024
BuildArch:	noarch

%description
A package for preparing dissertations and theses for Iranian
universities as fast and as efficiently as possible. The
package depends on xparse, fancyhdr, graphicx, multirow, float,
and adjustbox.

%files
%doc %{_texmfdistdir}/doc/xelatex/parsa
%{_texmfdistdir}/tex/xelatex/parsa

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10397 |21cr|texlive-pascaltriangle-61774-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pascaltriangle

Summary:	Draw beautiful Pascal (Yanghui) triangles
Name:		texlive-pascaltriangle
Version:	61774
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pascaltriangle.sty) = 2024
BuildArch:	noarch

%description
This LaTeX3 package based on TikZ helps to generate beautiful
Pascal (Yanghui) triangles. It provides a unique drawing macro
\pascal which can generate isosceles or right-angle triangles
customized by means of different \pascal macro options or the
\pascalset macro.

%files
%doc %{_texmfdistdir}/doc/latex/pascaltriangle
%{_texmfdistdir}/tex/latex/pascaltriangle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10398 |21cr|texlive-pbalance-64002-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pbalance

Summary:	Balance last page in two-column mode
Name:		texlive-pbalance
Version:	64002
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(atbegshi.sty)
Requires:	tex(atveryend.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(expl3.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(zref-abspage.sty)
Provides:	tex(pbalance.sty) = 2024
BuildArch:	noarch

%description
This package balances the columns on the last page of a
two-column document. If the page is "simple" (no footnotes,
floats, or marginpars), is uses the balance package; otherwise,
it uses \enlargethispage to make the left column shorter,
balancing the columns.

%files
%doc %{_texmfdistdir}/doc/latex/pbalance
%{_texmfdistdir}/tex/latex/pbalance

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10399 |21cr|texlive-pbibtex-base-66085-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pbibtex-base

Summary:	Bibliography styles and miscellaneous files for pBibTeX
Name:		texlive-pbibtex-base
Version:	66085
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-pbibtex-base = 2024
BuildArch:	noarch

%description
These are miscellaneous files, including bibliography styles
(.bst), for pBibTeX, which is a Japanese extended version of
BibTeX contained in TeX Live. The bundle is a redistribution
derived from the ptex-texmf distribution by ASCII MEDIA WORKS.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/pbibtex/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10400 |21cr|texlive-pbibtex-manual-66181-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pbibtex-manual

Summary:	Documentation files for (u)pBibTeX
Name:		texlive-pbibtex-manual
Version:	66181
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The bundle contains documentation files for Japanese pBibTeX
and upBibTeX. For historical reasons, this also contains old
documentation files for JBibTeX.

%files
%doc %{_texmfdistdir}/doc/latex/pbibtex-manual

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10401 |21cr|texlive-pdfarticle-51127-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfarticle

Summary:	Class for pdf publications
Name:		texlive-pdfarticle
Version:	51127
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdfArticle.cls) = 2024
BuildArch:	noarch

%description
pdfArticle is simple document class dedicated for creating pdf
documents with LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/pdfarticle
%{_texmfdistdir}/tex/lualatex/pdfarticle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10402 |21cr|texlive-pdfcol-64469-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfcol

Summary:	Macros for maintaining colour stacks under pdfTeX
Name:		texlive-pdfcol
Version:	64469
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdfcol.sty) = 2024
BuildArch:	noarch

%description
Since version 1.40 pdfTeX supports colour stacks. The driver
file pdftex.def for package color defines and uses a main
colour stack since version v0.04b. This package is intended for
package writers. It defines macros for setting and maintaining
new colour stacks.

%files
%doc %{_texmfdistdir}/doc/latex/pdfcol
%{_texmfdistdir}/tex/latex/pdfcol

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10403 |21cr|texlive-pdfcolfoot-65512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfcolfoot

Summary:	Separate color stack for footnotes with pdfTeX
Name:		texlive-pdfcolfoot
Version:	65512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdfcolfoot.sty) = 2024
BuildArch:	noarch

%description
Since version 1.40 pdfTeX supports several colour stacks. This
package uses a separate colour stack for footnotes that can
break across pages. The package is part of the oberdiek bundle.

%files
%doc %{_texmfdistdir}/doc/latex/pdfcolfoot
%{_texmfdistdir}/tex/latex/pdfcolfoot

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10404 |21cr|texlive-pdfcolmk-52912-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfcolmk

Summary:	Improved colour support under pdfTeX (legacy stub)
Name:		texlive-pdfcolmk
Version:	52912
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdfcolmk.sty) = 2024
BuildArch:	noarch

%description
The package used to provide macros that emulated the 'colour
stack' functionality of dvips. The colour stack deals with
colour manipulations when asynchronous events (like
page-breaking) occur. At the time the package was written,
pdfTeX did not (yet) have such a stack, though dvips had had
one for a long time. This package was an experimental solution
to the problem, and worked best with pdfeTeX. For current
releases of pdfTeX (later than version 1.40.0, released in
2007), this package is not needed, since "real" colour stacks
are available. The present pdfcolmk is therefore just an empty
stub that does nothing at all, just in case there are still
documents that reference it. The documented source of the
original package is still available at the github repository.

%files
%doc %{_texmfdistdir}/doc/latex/pdfcolmk
%{_texmfdistdir}/tex/latex/pdfcolmk

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10405 |21cr|texlive-pdfcrop-1.37-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /support/pdfcrop/pdfcrop.pl
# catalog-date 2012-04-18 16:26:37 +0200
# catalog-license lppl
# catalog-version 1.37
Name:		texlive-pdfcrop
Version:	1.37
Release:	8
Summary:	Crop PDF graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/pdfcrop/pdfcrop.pl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfcrop.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfcrop.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pdfcrop.bin = %{EVRD}

%description
A Perl script that can either trim pages of any whitespace
border, or trim them of a fixed border.


#-----------------------------------------------------------------------
%files
%{_bindir}/pdfcrop
%{_bindir}/rpdfcrop
%{_texmfdistdir}/scripts/pdfcrop/pdfcrop.pl
%doc %{_texmfdistdir}/doc/support/pdfcrop/README*
%doc %{_texmfdistdir}/doc/support/pdfcrop/LICENCE

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pdfcrop/pdfcrop.pl pdfcrop
    ln -sf pdfcrop rpdfcrop
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10406 |21cr|texlive-pdfescape-53082-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfescape

Summary:	Implements pdfTeX's escape features using TeX or e-TeX
Name:		texlive-pdfescape
Version:	53082
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdfescape.sty) = 2024
BuildArch:	noarch

%description
This package implements pdfTeX's escape features
(\pdfescapehex, \pdfunescapehex, \pdfescapename,
\pdfescapestring) using TeX or e-TeX.

%files
%doc %{_texmfdistdir}/doc/latex/pdfescape
%{_texmfdistdir}/tex/generic/pdfescape

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10407 |21cr|texlive-pdfextra-65184-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfextra

Summary:	Extra PDF features for (Op)TeX
Name:		texlive-pdfextra
Version:	65184
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdfextra.sty) = 2024
Provides:	tex(pdfextra.tex) = 2024
BuildArch:	noarch

%description
This package provides extra PDF features for OpTeX (or in
limited form for plain LuaTeX and LuaLaTeX). As a minimalistic
format, OpTeX does not support "advanced" features of the PDF
file format in its base. This third party package aims to
provide them. Summary of supported features: insertion of
multimedia (audio, video, 3D), hyperlinks and other actions,
triggering events, transitions, attachments.

%files
%doc %{_texmfdistdir}/doc/optex/pdfextra
%{_texmfdistdir}/tex/luatex/pdfextra
%{_texmfdistdir}/tex/optex/pdfextra

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10408 |21cr|texlive-pdfjam-2.02-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29752
# category Package
# catalog-ctan /support/pdfjam
# catalog-date 2012-06-17 01:47:14 +0200
# catalog-license gpl2
# catalog-version 2.02
Name:		texlive-pdfjam
Version:	2.02
Release:	15
Summary:	Shell scripts interfacing to pdfpages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/pdfjam
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfjam.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfjam.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pdfjam.bin = %{EVRD}
%rename pdfjam

%description
This is a collection of shell scripts which provide an
interface to the pdfpages LaTeX package. They do such jobs as
selecting pages, concatenating files, doing n-up formatting,
and so on.


#-----------------------------------------------------------------------
%files
%{_bindir}/pdfjam
%{_texmfdistdir}/scripts/pdfjam/pdfjam
%doc %{_mandir}/man1/pdfjam.1*
%doc %{_texmfdistdir}/doc/man/man1/pdfjam.man1.pdf
%doc %{_texmfdistdir}/doc/support/pdfjam/COPYING
%doc %{_texmfdistdir}/doc/support/pdfjam/VERSION
%doc %{_texmfdistdir}/doc/support/pdfjam/README*
%doc %{_texmfdistdir}/doc/support/pdfjam/pdfjam.conf
%doc %{_texmfdistdir}/doc/support/pdfjam/tests.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pdfjam/pdfjam pdfjam
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10409 |21cr|texlive-pdflscape-64851-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdflscape

Summary:	Make landscape pages display as landscape
Name:		texlive-pdflscape
Version:	64851
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdflscape-nometadata.sty) = 2024
Provides:	tex(pdflscape.sty) = 2024
BuildArch:	noarch

%description
The package adds PDF support to the landscape environment of
package lscape, by setting the PDF /Rotate page attribute.
Pages with this attribute will be displayed in landscape
orientation by conforming PDF viewers.

%files
%doc %{_texmfdistdir}/doc/latex/pdflscape
%{_texmfdistdir}/tex/latex/pdflscape

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10410 |21cr|texlive-pdfmanagement-testphase-66532-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfmanagement-testphase

Summary:	LaTeX PDF management testphase bundle
Name:		texlive-pdfmanagement-testphase
Version:	66532
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(lscape.sty)
Provides:	tex(color-ltx.sty) = 2024
Provides:	tex(colorspace-patches-tmp-ltx.sty) = 2024
Provides:	tex(hgeneric-testphase.def) = 2024
Provides:	tex(hyperref-colorschemes.def) = 2024
Provides:	tex(l3backend-testphase-dvipdfmx.def) = 2024
Provides:	tex(l3backend-testphase-dvips.def) = 2024
Provides:	tex(l3backend-testphase-dvisvgm.def) = 2024
Provides:	tex(l3backend-testphase-luatex.def) = 2024
Provides:	tex(l3backend-testphase-pdftex.def) = 2024
Provides:	tex(l3backend-testphase-xetex.def) = 2024
Provides:	tex(l3pdffield-testphase.sty) = 2024
Provides:	tex(l3ref-tmp.sty) = 2024
Provides:	tex(output-patches-tmp-ltx.sty) = 2024
Provides:	tex(pdfmanagement-firstaid.sty) = 2024
Provides:	tex(pdfmanagement-testphase.sty) = 2024
Provides:	tex(xcolor-patches-tmp-ltx.sty) = 2024
BuildArch:	noarch

%description
This is a temporary package, which is used during a test phase
to load the new PDF management code of LaTeX. The new PDF
management code offers backend independant interfaces to
central PDF dictionaries, tools to create annotations, form
Xobjects, to embed files, and to handle PDF standards. The code
is provided, during a testphase, as an independant package to
allow users and package authors to safely test the code. At a
later stage it will be integrated into the LaTeX kernel (or in
parts into permanent support packages), and the current
testphase bundle will be removed.

%files
%doc %{_texmfdistdir}/doc/latex/pdfmanagement-testphase
%{_texmfdistdir}/tex/latex/pdfmanagement-testphase

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10411 |21cr|texlive-pdfmsym-65324-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfmsym

Summary:	PDF Math Symbols -- various drawn mathematical symbols
Name:		texlive-pdfmsym
Version:	65324
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdfmsym.tex) = 2024
BuildArch:	noarch

%description
This package defines a handful of mathematical symbols many of
which are implemented via PDF's builtin drawing utility. It is
intended for use with pdfTeX and LuaTeX and is supported by
XeTeX to a lesser extent. Among the symbols it defines are some
variants of commonly used ones, as well as more obscure symbols
which cannot be as easily found in other TeX or LaTeX packages.

%files
%doc %{_texmfdistdir}/doc/generic/pdfmsym
%{_texmfdistdir}/tex/generic/pdfmsym

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10412 |21cr|texlive-pdfoverlay-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfoverlay
Version:	1.1
Release:	1
Summary:	Memoir-based class for formatting University of Auckland theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfoverlay
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/pdfoverlay.doc.tar.xz  
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/pdfoverlay.source.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/pdfoverlay.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A memoir-based class for formatting University of Auckland
masters' and doctors' thesis dissertations in any discipline.
The title page does not handle short dissertations for
diplomas.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfoverlay
%{_texmfdistdir}/source/latex/pdfoverlay 
%doc %{_texmfdistdir}/doc/latex/pdfoverlay

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10413 |21cr|texlive-pdfpc-63866-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfpc

Summary:	Define data for the pdfpc presentation viewer
Name:		texlive-pdfpc
Version:	63866
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(hyperxmp.sty)
#Requires:	tex(iftex.sty)
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xstring.sty)
Provides:	tex(pdfpc.sty) = 2024
BuildArch:	noarch

%description
This packages allows to define additional meta data within the
PDF file which can be interpreted by the PDF presenter console
(pdfpc) program. pdfpc depends on kvoptions, xstring, iftex,
and hyperxmp.

%files
%doc %{_texmfdistdir}/doc/latex/pdfpc
%{_texmfdistdir}/tex/latex/pdfpc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10414 |21cr|texlive-pdftexcmds-55777-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdftexcmds

Summary:	LuaTeX support for pdfTeX utility functions
Name:		texlive-pdftexcmds
Version:	55777
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pdftexcmds.sty) = 2024
BuildArch:	noarch

%description
LuaTeX provides most of the commands of pdfTeX 1.40. However, a
number of utility functions are not available. This package
tries to fill the gap and implements some of the missing
primitives using Lua.

%files
%doc %{_texmfdistdir}/doc/generic/pdftexcmds
%{_texmfdistdir}/tex/generic/pdftexcmds

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10415 |21cr|texlive-pdf-trans-2.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/generic/pdf-trans
# catalog-date 2007-05-25 16:15:27 +0200
# catalog-license pd
# catalog-version 2.4
Name:		texlive-pdf-trans
Version:	2.4
Release:	8
Summary:	A set of macros for various transformations of TeX boxes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/pdf-trans
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdf-trans.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdf-trans.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
pdf-trans is a set of macros for various transformations of TeX
boxes (based on plain and pdfeTeX primitives). It was initially
inspired by trans.tex, remade to work with pdfTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pdf-trans/pdf-trans.tex
%doc %{_texmfdistdir}/doc/generic/pdf-trans/example.pdf
%doc %{_texmfdistdir}/doc/generic/pdf-trans/example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10416 |21cr|texlive-pdftricks2-31016.1.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdftricks2

Summary:	Use pstricks in pdfTeX
Name:		texlive-pdftricks2
Version:	31016.1.01
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(graphicx.sty)
#Requires:	tex(ifpdf.sty)
#Requires:	tex(ifplatform.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(moreverb.sty)
#Requires:	tex(pstricks.sty)
Provides:	tex-pdftricks2 = 2024
Provides:	tex(pdftricks2.sty) = 2024
BuildArch:	noarch

%description
The package provides the means of processing documents (that
contain pstricks graphics specifications. The package is
inspired by pdftricks

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/pdftricks2/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10417 |21cr|texlive-penlight-64811-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname penlight

Summary:	Penlight Lua libraries made available to LuaLaTeX users
Name:		texlive-penlight
Version:	64811
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(penlight.sty) = 2024
BuildArch:	noarch

%description
This LuaLaTeX package provides a wrapper to use the penlight
Lua libraries with LuaLaTeX, with some extra functionality
added.

%files
%doc %{_texmfdistdir}/doc/luatex/penlight
%{_texmfdistdir}/tex/luatex/penlight

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10418 |21cr|texlive-perception-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-perception
Version:	20190228
Release:	1
Summary:	BibTeX style for the journal Perception
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/perception
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/perception.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/perception.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A product of custom-bib, provided simply to save others' time.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/perception
%doc %{_texmfdistdir}/doc/bibtex/perception

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10419 |21cr|texlive-pfarrei-r36-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31934
# category Package
# catalog-ctan /macros/latex/contrib/pfarrei
# catalog-date 2013-10-17 11:02:38 +0200
# catalog-license lppl1.3
# catalog-version r36
Name:		texlive-pfarrei
Version:	r36
Release:	11
Summary:	LaTeX support of pastors' and priests' work
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pfarrei
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pfarrei.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pfarrei.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pfarrei.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pfarrei.bin = %{EVRD}

%description
In "Die TeXnische Komodie" (issue 1/2013) Christian Justen
described his use of LaTeX in his work as priest (similar
requirements may be encountered in the work of pastors and
other ministers of religion). One point was to arrange A5 pages
onto A4 landscape paper, either side-by-side or as a booklet.
Justen made two bash scripts for this job; the package provides
one texlua script for both requirements. (Note that file
a5toa4.tlu should have execute permissions in any
installation.).


#-----------------------------------------------------------------------
%files
%{_bindir}/a5toa4
%{_bindir}/pfarrei
%{_texmfdistdir}/scripts/pfarrei/a5toa4.tlu
%{_texmfdistdir}/scripts/pfarrei/pfarrei.tlu
%{_texmfdistdir}/tex/latex/pfarrei/a5toa4.tex
%{_texmfdistdir}/tex/latex/pfarrei/pfarrei.sty
%doc %{_texmfdistdir}/doc/latex/pfarrei/pfarrei.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pfarrei/README
%doc %{_texmfdistdir}/source/latex/pfarrei/pfarrei.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pfarrei/a5toa4.tlu a5toa4
    ln -sf %{_texmfdistdir}/scripts/pfarrei/pfarrei.tlu pfarrei
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10420 |21cr|texlive-pfdicons-60089-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pfdicons

Summary:	Draw process flow diagrams in chemical engineering
Name:		texlive-pfdicons
Version:	60089
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pfdicons.sty) = 2024
BuildArch:	noarch

%description
This package provides TikZ shapes to represent commonly
encountered unit operations for depiction in process flow
diagrams (PFDs) and, to a lesser extent, process and
instrumentation diagrams (PIDs). The package was designed with
undergraduate chemical engineering students and faculty in
mind, and the number of units provided should cover--in
Turton's estimate--about 90 percent of all fluid processing
operations.

%files
%doc %{_texmfdistdir}/doc/latex/pfdicons
%{_texmfdistdir}/tex/latex/pfdicons

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10421 |21cr|texlive-pgf-interference-61562-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pgf-interference

Summary:	Drawing interference patterns with PGF/TikZ
Name:		texlive-pgf-interference
Version:	61562
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pgf-interference.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package makes it possible to simulate interference
patterns occuring on a screen if monochromatic light is
diffracted at regular structures of slits. It makes use of the
PGF/TikZ graphics package.

%files
%doc %{_texmfdistdir}/doc/latex/pgf-interference
%{_texmfdistdir}/tex/latex/pgf-interference

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10422 |21cr|texlive-pgfmath-xfp-59268-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pgfmath-xfp

Summary:	Define pgfmath functions using xfp
Name:		texlive-pgfmath-xfp
Version:	59268
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pgfmath-xfp.sty) = 2024
BuildArch:	noarch

%description
This package allows to define pgfmath functions that use the
xfp fpu for their calculations. The input arguments are parsed
with pgfmath (while the pgf-fpu is locally active), and the
results are forwarded to xfp's fpu for the function evaluation.
The result of that calculation is then parsed by pgfmath again
(with the surrounding settings of pgfmath). This way the
functions should be usable in every pgfmath context, though
there is some overhead to this approach. The package is only
meant as a temporary stopgap until a more dedicated solution is
available to use xfp in pgf.

%files
%doc %{_texmfdistdir}/doc/latex/pgfmath-xfp
%{_texmfdistdir}/tex/latex/pgfmath-xfp

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10423 |21cr|texlive-pgfmorepages-54770-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pgfmorepages

Summary:	Assemble multiple logical pages onto a physical page
Name:		texlive-pgfmorepages
Version:	54770
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pgfmorepageslayouts.code.tex) = 2024
Provides:	tex(pgfmorepages.sty) = 2024
BuildArch:	noarch

%description
This package replaces and extends the pgfpages sub-package of
the PGF system. It provides the capability to arrange multiple
"logical" pages on multiple "physical" pages, for example as
for arranging pages to make booklets.

%files
%doc %{_texmfdistdir}/doc/latex/pgfmorepages
%{_texmfdistdir}/tex/latex/pgfmorepages

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10424 |21cr|texlive-pgfornament-55326-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pgfornament

Summary:	Drawing of Vectorian ornaments with PGF/TikZ
Name:		texlive-pgfornament
Version:	55326
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(pgflibraryam.code.tex) = 2024
Provides:	tex(pgflibrarypgfhan.code.tex) = 2024
Provides:	tex(pgflibraryvectorian.code.tex) = 2024
Provides:	tex-pgfornament = 2024
Provides:	tex(pgfornament.sty) = 2024
Provides:	tex(tikzrput.sty) = 2024
BuildArch:	noarch

%description
This package allows the drawing of Vectorian ornaments (196)
with PGF/TikZ. The documentation presents the syntax and
parameters of the macro "pgfornament".

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/generic/pgfornament/
%{_texmfdistdir}/tex/latex/pgfornament/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10425 |21cr|texlive-pgfornament-han-54191-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pgfornament-han

Summary:	Pgfornament library for Chinese traditional motifs and patterns
Name:		texlive-pgfornament-han
Version:	54191
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamerthemeHeavenlyClouds.sty) = 2024
Provides:	tex(beamerthemeXiaoshan.sty) = 2024
Provides:	tex(cncolours.sty) = 2024
Provides:	tex(pgflibraryhan.code.tex) = 2024
Provides:	tex(pgfornament-han.sty) = 2024
BuildArch:	noarch

%description
This package provides a pgfornament library for Chinese
traditional motifs and patterns. The command \pgfornamenthan
takes the same options as \pgfornament from the pgfornament
package, but renders Chinese traditional motifs instead. The
list of supported motifs, as well as some examples, can be
found in the accompanying documentation.

%files
%doc %{_texmfdistdir}/doc/latex/pgfornament-han/
%{_texmfdistdir}/tex/latex/pgfornament-han/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10426 |21cr|texlive-pgf-periodictable-66010-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pgf-periodictable

Summary:	Create custom periodic tables of elements
Name:		texlive-pgf-periodictable
Version:	66010
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pgf-PeriodicTable.sty) = 2024
Provides:	tex(pgfPT.backcolors.keys.tex) = 2024
Provides:	tex(pgfPT.buildcell.tex) = 2024
Provides:	tex(pgfPT.coordinates.tex) = 2024
Provides:	tex(pgfPT.data.tex) = 2024
Provides:	tex(pgfPT.drawing.keys.tex) = 2024
Provides:	tex(pgfPT.formatNumbers.tex) = 2024
Provides:	tex(pgfPT.labels.tex) = 2024
Provides:	tex(pgfPT.names.tex) = 2024
Provides:	tex(pgfPT.process.language.tex) = 2024
BuildArch:	noarch

%description
The purpose of this package is to provide the Periodic Table of
Elements in a simple way. It relies on PGF/TikZ to offer a full
or partial periodic table with a variety of options and
displaying the desired data for all the 118 elements. It can be
done in six languages: English, French, German, Portuguese
(from Portugal and from Brazil), Spanish and Italian.
Compatible with pdfLaTeX, LuaLaTeX and XeLaTeX engines.

%files
%doc %{_texmfdistdir}/doc/latex/pgf-periodictable
%{_texmfdistdir}/tex/latex/pgf-periodictable

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10427 |21cr|texlive-pgf-pie-63603-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pgf-pie

Summary:	Draw pie charts, using PGF
Name:		texlive-pgf-pie
Version:	63603
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-carlisle
Requires:	texlive-kpathsea
Requires:	texlive-latex
#Requires:	tex(pgf.sty)
#Requires:	tex(tikz.sty)
Provides:	tex(pgf-pie.sty) = 2024
Provides:	tex(tikzlibrarypie.code.tex) = 2024
BuildArch:	noarch

%description
The package provides the means to draw pie (and variant)
charts, using PGF/TikZ.

%files
%doc %{_texmfdistdir}/doc/latex/pgf-pie
%{_texmfdistdir}/tex/latex/pgf-pie

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10428 |21cr|texlive-pgf-umlcd-63386-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pgf-umlcd

Summary:	Some LaTeX macros for UML Class Diagrams
Name:		texlive-pgf-umlcd
Version:	63386
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	texlive-latex
#Requires:	tex(pgf.sty)
#Requires:	tex(tikz.sty)
Provides:	tex-pgf-umlcd = 2024
Provides:	tex(pgf-umlcd.sty) = 2024
BuildArch:	noarch

%description
Some LaTeX macros for UML Class Diagrams.pgf

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/pgf-umlcd/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10429 |21cr|texlive-phaistos-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/archaic/phaistos
# catalog-date 2008-07-09 12:34:16 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-phaistos
Version:	1.0
Release:	8
Summary:	Disk of Phaistos font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/archaic/phaistos
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/phaistos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/phaistos.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/phaistos.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A font that contains all the symbols of the famous Disc of
Phaistos, together with a LaTeX package. The disc was 'printed'
by stamping the wet clay with some sort of punches, probably
around 1700 BCE. The font is available in Adobe Type 1 and
OpenType formats (the latter using the Unicode positions for
the symbols). There are those who believe that this Cretan
script was used to 'write' Greek (it is known, for example,
that the rather later Cretan Linear B script was used to write
Greek), but arguments for other languages have been presented.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/phaistos/phaistos.afm
%{_texmfdistdir}/fonts/map/dvips/phaistos/phaistos.map
%{_texmfdistdir}/fonts/opentype/public/phaistos/Phaistos.otf
%{_texmfdistdir}/fonts/tfm/public/phaistos/phaistos.tfm
%{_texmfdistdir}/fonts/type1/public/phaistos/phaistos.pfb
%{_texmfdistdir}/tex/latex/phaistos/phaistos.sty
%doc %{_texmfdistdir}/doc/fonts/phaistos/getglyphs
%doc %{_texmfdistdir}/doc/fonts/phaistos/glyphTable.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/phaistos/phaistos.dtx
%doc %{_texmfdistdir}/source/fonts/phaistos/phaistos.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10430 |21cr|texlive-phfcc-60731-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname phfcc

Summary:	Convenient inline commenting in collaborative documents
Name:		texlive-phfcc
Version:	60731
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phfcc.sty) = 2024
BuildArch:	noarch

%description
Easily define helper macros to insert comments in a LaTeX
document. A convenient syntax enables you to mark text
additions (e.g., "... \phf{I'm adding this text} ..." or "...
\phf I'm adding this text\endphf ..."), an in-line comment
(e.g., "... We're the best \phf[I'm not sure about this.]
..."), and text removals (e.g., "... \phf*{remove me} ...").
New colors are assigned automatically to each commenter by
default, and the appearance of all comments is highly
customizable.

%files
%doc %{_texmfdistdir}/doc/latex/phfcc
%{_texmfdistdir}/tex/latex/phfcc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10431 |21cr|texlive-phfextendedabstract-60732-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname phfextendedabstract

Summary:	Typeset extended abstracts for conferences, such as often encountered in quantum information theory
Name:		texlive-phfextendedabstract
Version:	60732
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phfextendedabstract.cls) = 2024
BuildArch:	noarch

%description
Several conferences in various fields (such as quantum
information theory) require the submission of extended
abstracts. An extended abstract is a summary of a scientific
result, presented at a high level, and consisting of at most a
small handful of pages. The phfextendedabstract LaTeX class
provides a simple style for such abstracts. There are only two
sectioning levels, sections and paragraphs, and the style is
optimized to save space as well as to guide the reader's eye
through the overall structure of the document. An option will
try to compress all vertical space to save some space, in case
you need to satisfy page constraints. The style builds upon the
powerful RevTeX class, so you can use all of RevTeX's features
such as author affiliations, etc.

%files
%doc %{_texmfdistdir}/doc/latex/phfextendedabstract
%{_texmfdistdir}/tex/latex/phfextendedabstract

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10432 |21cr|texlive-phffullpagefigure-41857-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname phffullpagefigure

Summary:	Figures which fill up a whole page
Name:		texlive-phffullpagefigure
Version:	41857
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phffullpagefigure.sty) = 2024
BuildArch:	noarch

%description
This package defines a figure environment which provides the
figure content on its own page, with the corresponding caption
reading for example "Figure 3 (on next page): <caption>".

%files
%doc %{_texmfdistdir}/doc/latex/phffullpagefigure/
%{_texmfdistdir}/tex/latex/phffullpagefigure/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10433 |21cr|texlive-phfparen-41859-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname phfparen

Summary:	Parenthetic math expressions made simpler and less redundant
Name:		texlive-phfparen
Version:	41859
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phfparen.sty) = 2024
BuildArch:	noarch

%description
This package provides a more condensed and flexible syntax for
parenthesis-delimited expressions in math mode which also
allows for an easier switching of brace sizes. For example, the
syntax " `\big( a + b ) " can be used to replace "\bigl( a + b
\bigr)".

%files
%doc %{_texmfdistdir}/doc/latex/phfparen/
%{_texmfdistdir}/tex/latex/phfparen/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10434 |21cr|texlive-phfquotetext-41869-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname phfquotetext

Summary:	Quote verbatim text without white space formatting
Name:		texlive-phfquotetext
Version:	41869
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phfquotetext.sty) = 2024
BuildArch:	noarch

%description
This package provides an environment for displaying block text
with special characters, such as verbatim quotes from a referee
report which may contain pseudo-(La)TeX code. This behaves like
a verbatim environment, except that it displays its content as
normal paragraph content, ignoring any white space
preformatting.

%files
%doc %{_texmfdistdir}/doc/latex/phfquotetext/
%{_texmfdistdir}/tex/latex/phfquotetext/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10435 |21cr|texlive-phfsvnwatermark-41870-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname phfsvnwatermark

Summary:	Watermarks with version control information from SVN
Name:		texlive-phfsvnwatermark
Version:	41870
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phfsvnwatermark.sty) = 2024
BuildArch:	noarch

%description
This package allows you to add version control information as a
gray watermark on each page of your document. The SVN info is
read from keyword tags such as $Id$, $Date$, and $Author$ via
the svn or svn-multi packages.

%files
%doc %{_texmfdistdir}/doc/latex/phfsvnwatermark/
%{_texmfdistdir}/tex/latex/phfsvnwatermark/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10436 |21cr|texlive-phfthm-60735-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname phfthm

Summary:	Goodies for theorems and proofs
Name:		texlive-phfthm
Version:	60735
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phfthm.sty) = 2024
BuildArch:	noarch

%description
This package provides enhanced theorem and proof environments
based on the amsthm original versions. It allows for hooks to
be placed, adds some default goodies and is highly
customizable. In particular, it can connect theorems to proofs,
automatically producing text such as "See proof on page XYZ"
and "Proof of Theorem 4: ...".

%files
%doc %{_texmfdistdir}/doc/latex/phfthm/
%{_texmfdistdir}/tex/latex/phfthm/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10437 |21cr|texlive-phonenumbers-63774-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname phonenumbers

Summary:	Typesetting telephone numbers with LaTeX
Name:		texlive-phonenumbers
Version:	63774
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phonenumbers-AT.def) = 2024
Provides:	tex(phonenumbers-DE.def) = 2024
Provides:	tex(phonenumbers-FR.def) = 2024
Provides:	tex(phonenumbers.sty) = 2024
Provides:	tex(phonenumbers-UK.def) = 2024
Provides:	tex(phonenumbers-US.def) = 2024
BuildArch:	noarch

%description
The phonenumbers package makes it possible to typeset telephone
numbers according to different national conventions. German,
Austrian, French, British and North American phone numbers are
supported. Phone numbers from other countries are supported
rudimentarily. The user can select from various formatting
options, including the additional output of the country calling
code. The package is able to check if a phone number is valid
according to the national rules. It also allows to link phone
numbers using the hyperref package.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/phonenumbers/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10438 |21cr|texlive-phonetic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21871
# category Package
# catalog-ctan /fonts/phonetic
# catalog-date 2011-03-28 22:21:58 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-phonetic
Version:	20190228
Release:	1
Summary:	MetaFont Phonetic fonts, based on Computer Modern
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/phonetic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/phonetic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/phonetic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts are based on Computer Modern, and specified in
MetaFont. Macros for the fonts' use are provided, both for
LaTeX 2.09 and for current LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/phonetic/cmph10.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmph5.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmph6.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmph7.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmph8.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmph9.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmphb10.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmphi10.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmphi7.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmphi8.mf
%{_texmfdistdir}/fonts/source/public/phonetic/cmphi9.mf
%{_texmfdistdir}/fonts/source/public/phonetic/local.mf
%{_texmfdistdir}/fonts/source/public/phonetic/phochar.mf
%{_texmfdistdir}/fonts/source/public/phonetic/phoital.mf
%{_texmfdistdir}/fonts/source/public/phonetic/phoitchar.mf
%{_texmfdistdir}/fonts/source/public/phonetic/phosym.mf
%{_texmfdistdir}/fonts/source/public/phonetic/symchar.mf
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmph10.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmph5.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmph6.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmph7.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmph8.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmph9.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmphb10.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmphi10.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmphi7.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmphi8.tfm
%{_texmfdistdir}/fonts/tfm/public/phonetic/cmphi9.tfm
%{_texmfdistdir}/tex/latex/phonetic/Uphon.fd
%{_texmfdistdir}/tex/latex/phonetic/phonetic.sty
%doc %{_texmfdistdir}/doc/fonts/phonetic/Doc/209/phonetic-table.tex
%doc %{_texmfdistdir}/doc/fonts/phonetic/Doc/209/phonetic.sty
%doc %{_texmfdistdir}/doc/fonts/phonetic/Doc/README
%doc %{_texmfdistdir}/doc/fonts/phonetic/README
%doc %{_texmfdistdir}/doc/fonts/phonetic/makefile
%doc %{_texmfdistdir}/doc/fonts/phonetic/phonetic-table.pdf
%doc %{_texmfdistdir}/doc/fonts/phonetic/phonetic-table.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10439 |21cr|texlive-photobook-66629-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname photobook

Summary:	A document class for typesetting photo books
Name:		texlive-photobook
Version:	66629
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(adjustbox.sty)
Requires:	tex(atbegshi.sty)
#Requires:	tex(changepage.sty)
#Requires:	tex(colorspace.sty)
#Requires:	tex(environ.sty)
#Requires:	tex(eso-pic.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(fancyhdr.sty)
#Requires:	tex(fancyvrb.sty)
#Requires:	tex(flowfram.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(graphics.sty)
#Requires:	tex(hyperref.sty)
#Requires:	tex(iftex.sty)
Requires:	tex(kvoptions.sty)
#Requires:	tex(listofitems.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(mdframed.sty)
#Requires:	tex(numprint.sty)
#Requires:	tex(pagecolor.sty)
#Requires:	tex(pdfcomment.sty)
#Requires:	tex(pdfpages.sty)
#Requires:	tex(pgf.sty)
#Requires:	tex(textpos.sty)
#Requires:	tex(xargs.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xint.sty)
Provides:	tex(photobook.cls) = 2024
BuildArch:	noarch

%description
This LaTeX document class extends the book class defining a set
of parameters, meta-macros, macros and environments with
reasonable defaults to help typeset, build and print books
mainly based on visual/image content.

%files
%doc %{_texmfdistdir}/doc/latex/photobook
%{_texmfdistdir}/tex/latex/photobook

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10440 |21cr|texlive-physconst-58727-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname physconst

Summary:	Macros for commonly used physical constants
Name:		texlive-physconst
Version:	58727
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(physconst.sty) = 2024
BuildArch:	noarch

%description
This package consists of several macros that are shorthand for
a variety of physical constants, e.g. the speed of light. The
package developed out of physics and astronomy classes that the
author has taught and wanted to ensure that he had correct
values for each constant and did not wish to retype them every
time he uses them. The constants can be used in two forms, the
most accurate available values, or versions that are rounded to
3 significant digits for use in typical classroom settings,
homework assignments, etc. Most constants are taken from CODATA
2018, with the exception of the astronomical objects, whose
values are taken from International Astronomical Union
specified values. Constants that are derived from true
constants, e.g. the fine structure constant, have been
calculated using the accepted values of the fundamental
constants.

%files
%doc %{_texmfdistdir}/doc/latex/physconst
%{_texmfdistdir}/tex/latex/physconst

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10441 |21cr|texlive-physics2-66115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname physics2

Summary:	Macros for typesetting math faster and more simply
Name:		texlive-physics2
Version:	66115
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(phy-ab.braket.sty) = 2024
Provides:	tex(phy-ab.legacy.sty) = 2024
Provides:	tex(phy-ab.sty) = 2024
Provides:	tex(phy-bm-um.legacy.sty) = 2024
Provides:	tex(phy-braket.sty) = 2024
Provides:	tex(phy-common.sty) = 2024
Provides:	tex(phy-diagmat.sty) = 2024
Provides:	tex(phy-doubleprod.sty) = 2024
Provides:	tex(phy-explsetup.sty) = 2024
Provides:	tex(phy-nabla.legacy.sty) = 2024
Provides:	tex(phy-op.legacy.sty) = 2024
Provides:	tex(phy-qtext.legacy.sty) = 2024
Provides:	tex(physics2.sty) = 2024
Provides:	tex(phy-xmat.sty) = 2024
BuildArch:	noarch

%description
The physics2 package defines commands for typesetting math
formulae faster andmore simply. physics2 is a modularized
package, each module provides its own function. You can load
modules separately after loading `physics2`. Modules of physics
provide the following supports: Automatic braces; Dirac bra-ket
notation; Easy way to typeset diagonal matrices and matrices
with similar entries; Double cross and double dot (binary)
operators for tensors.

%files
%doc %{_texmfdistdir}/doc/latex/physics2
%{_texmfdistdir}/tex/latex/physics2

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10442 |21cr|texlive-physunits-58728-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname physunits

Summary:	Macros for commonly used physical units
Name:		texlive-physunits
Version:	58728
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(physunits.sty) = 2024
BuildArch:	noarch

%description
This package provides a collection of macros to simplify using
physical units (e.g. m for meters, J for joules, etc.),
especially in math mode. All major SI units are included, as
well as some cgs units used in astronomy.

%files
%doc %{_texmfdistdir}/doc/latex/physunits
%{_texmfdistdir}/tex/latex/physunits

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10443 |21cr|texlive-picture-54867-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname picture

Summary:	Dimens for picture macros
Name:		texlive-picture
Version:	54867
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(picture.sty) = 2024
BuildArch:	noarch

%description
There are macro and environment arguments that expect numbers
that will internally be multiplied by \unitlength. This package
extends the syntax of these arguments, so that dimensions with
calculation support may be used for these arguments.

%files
%doc %{_texmfdistdir}/doc/latex/picture
%{_texmfdistdir}/tex/latex/picture

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10444 |21cr|texlive-pigpen-0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/pigpen
# catalog-date 2008-12-10 19:58:48 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-pigpen
Version:	0.2
Release:	8
Summary:	A font for the pigpen (or masonic) cipher
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/pigpen
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pigpen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pigpen.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Pigpen cipher package provides the font and the necessary
wrappers (style file, etc.) in order to write Pigpen ciphers, a
simple substitution cipher. The package provides a font
(available both as MetaFont source, and as an Adobe Type 1
file), and macros for its use.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/pigpen/pigpen.map
%{_texmfdistdir}/fonts/source/public/pigpen/pigpen.mf
%{_texmfdistdir}/fonts/tfm/public/pigpen/pigpen.tfm
%{_texmfdistdir}/fonts/type1/public/pigpen/pigpen.pfa
%{_texmfdistdir}/tex/latex/pigpen/pigpen.sty
%{_texmfdistdir}/tex/latex/pigpen/pigpen.tex
%doc %{_texmfdistdir}/doc/latex/pigpen/README
%doc %{_texmfdistdir}/doc/latex/pigpen/pigpendoc.pdf
%doc %{_texmfdistdir}/doc/latex/pigpen/pigpendoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10445 |21cr|texlive-pinoutikz-55966-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pinoutikz

Summary:	Draw chip pinouts with TikZ
Name:		texlive-pinoutikz
Version:	55966
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pinoutikz.sty) = 2024
BuildArch:	noarch

%description
The package provides a set of macros for typesetting electronic
chip pinouts. It is designed as a tool that is easy to use,
with a lean syntax, native to LaTeX, and directly supporting
PDF output format. It has therefore been based on the very
impressive TikZ package.

%files
%doc %{_texmfdistdir}/doc/latex/pinoutikz
%{_texmfdistdir}/tex/latex/pinoutikz

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10446 |21cr|texlive-pitex-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24731
# category Package
# catalog-ctan /macros/plain/contrib/pitex
# catalog-date 2011-11-18 01:28:58 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-pitex
Version:	20180303
Release:	2
Summary:	Documentation macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/pitex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pitex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pitex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides macros that the author uses when writing
documentation (for example, that of the texapi and yax
packages). The tools could be used by anyone, but there is no
documentation, and the macros are subject to change without
notice.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/pitex/base.ptxlua
%{_texmfdistdir}/tex/plain/pitex/blocks.ptx
%{_texmfdistdir}/tex/plain/pitex/files.ptx
%{_texmfdistdir}/tex/plain/pitex/fonts.ptx
%{_texmfdistdir}/tex/plain/pitex/fonts.ptxlua
%{_texmfdistdir}/tex/plain/pitex/inserts.ptx
%{_texmfdistdir}/tex/plain/pitex/lua.ptx
%{_texmfdistdir}/tex/plain/pitex/output.ptx
%{_texmfdistdir}/tex/plain/pitex/pitex.tex
%{_texmfdistdir}/tex/plain/pitex/references.ptx
%{_texmfdistdir}/tex/plain/pitex/sections.ptx
%{_texmfdistdir}/tex/plain/pitex/verbatim.ptx
%doc %{_texmfdistdir}/doc/plain/pitex/README
%doc %{_texmfdistdir}/doc/plain/pitex/foundry-settings.lua
%doc %{_texmfdistdir}/doc/plain/pitex/i-pitex.lua
%doc %{_texmfdistdir}/doc/plain/pitex/pitex-doc.pdf
%doc %{_texmfdistdir}/doc/plain/pitex/pitex-doc.tex
%doc %{_texmfdistdir}/doc/plain/pitex/pitex-doc.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10447 |21cr|texlive-piton-65835-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname piton

Summary:	Typeset Python listings with LPEG
Name:		texlive-piton
Version:	65835
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(piton.sty) = 2024
BuildArch:	noarch

%description
This package uses the Lua library LPEG to typeset and highlight
Python listings.

%files
%doc %{_texmfdistdir}/doc/lualatex/piton
%{_texmfdistdir}/tex/lualatex/piton

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10448 |21cr|texlive-pixelarttikz-65649-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pixelarttikz

Summary:	Work with PixelArts, with TikZ
Name:		texlive-pixelarttikz
Version:	65649
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(PixelArtTikz.sty) = 2024
BuildArch:	noarch

%description
The package defines commands and an environment for displaying
pixel arts.

%files
%doc %{_texmfdistdir}/doc/latex/pixelarttikz
%{_texmfdistdir}/tex/latex/pixelarttikz

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10449 |21cr|texlive-pkfix-1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26032
# category Package
# catalog-ctan /support/pkfix/pkfix.pl
# catalog-date 2012-04-18 16:26:37 +0200
# catalog-license lppl1.3
# catalog-version 1.7
Name:		texlive-pkfix
Version:	1.7
Release:	7
Summary:	Replace pk fonts in PostScript with Type 1 fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/pkfix/pkfix.pl
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pkfix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pkfix.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pkfix.bin = %{EVRD}

%description
The perl script pkfix looks for DVIPSBitmapFont comments in
PostScript files, generated by 'not too old' dvips, and
replaces them by type 1 versions of the fonts, if possible.


#-----------------------------------------------------------------------
%files
%{_bindir}/pkfix
%{_texmfdistdir}/scripts/pkfix/pkfix.pl
%doc %{_texmfdistdir}/doc/support/pkfix/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pkfix/pkfix.pl pkfix
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10450 |21cr|texlive-pkfix-helper-1.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category Package
# catalog-ctan /support/pkfix-helper
# catalog-date 2012-06-08 16:04:26 +0200
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-pkfix-helper
Version:	1.4
Release:	13
Summary:	Make PostScript files accessible to pkfix
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/pkfix-helper
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pkfix-helper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pkfix-helper.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pkfix-helper.bin = %{EVRD}

%description
Pkfix is a useful utility for replacing resolution-dependent
bitmapped fonts in a dvips-produced PostScript file with the
corresponding resolution-independent vector fonts.
Unfortunately, pkfix needs to parse certain PostScript comments
that appear only in files produced by dvips versions later than
5.58 (ca. 1996); it fails to work on PostScript files produced
by older versions of dvips. Pkfix-helper is a program that
attempts to insert newer-dvips comments into an older-dvips
PostScript file, thereby making the file suitable for
processing by pkfix. pkfix-helper can sometimes process
documents fully autonomously but does require the user to
verify and, if needed, correct its decisions.


#-----------------------------------------------------------------------
%files
%{_bindir}/pkfix-helper
%{_texmfdistdir}/scripts/pkfix-helper/pkfix-helper
%doc %{_mandir}/man1/pkfix-helper.1*
%doc %{_texmfdistdir}/doc/man/man1/pkfix-helper.man1.pdf
%doc %{_texmfdistdir}/doc/support/pkfix-helper/README
%doc %{_texmfdistdir}/doc/support/pkfix-helper/encoding-samples.pdf
%doc %{_texmfdistdir}/doc/support/pkfix-helper/encoding-samples.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pkfix-helper/pkfix-helper pkfix-helper
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10451 |21cr|texlive-placeat-45145-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname placeat

Summary:	Absolute content positioning
Name:		texlive-placeat
Version:	45145
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(atbegshi.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(luacode.sty)
#Requires:	tex(luatexbase.sty)
#Requires:	tex(xparse.sty)
Provides:	tex-placeat = 2024
Provides:	tex(placeat.sty) = 2024
BuildArch:	noarch

%description
The package provides commands so that the user of LuaLaTeX may
position arbitrary content at any position specified by
absolute coordinates on the page. The package draws a grid on
each page of the document, to aid positioning (the grid may be
disabled, for 'final copy' using the command \placeatsetup).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/scripts/placeat/
%{_texmfdistdir}/tex/lualatex/placeat/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10452 |21cr|texlive-placeins-plain-2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/misc/placeins.tex
# catalog-date 2009-11-10 09:15:37 +0100
# catalog-license pd
# catalog-version 2.0
Name:		texlive-placeins-plain
Version:	2.0
Release:	8
Summary:	Insertions that keep their place
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/misc/placeins.tex
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/placeins-plain.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This TeX file provides various mechanisms (for plain TeX and
close relatives) to let insertions (footnotes, topins, pageins,
etc.) float within their appropriate section, but to prevent
them from intruding into the following section, even when
sections do not normally begin a new page. (If your sections
normally begin a new page, just use \supereject to flush out
insertions.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/placeins-plain/placeins.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10453 |21cr|texlive-plainpkg-0.4a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27765
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-plainpkg
Version:	0.4a
Release:	2
Epoch:		1
Summary:	TeXLive plainpkg package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plainpkg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plainpkg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plainpkg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive plainpkg package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/plainpkg/plainpkg.tex
%doc %{_texmfdistdir}/doc/generic/plainpkg/README
%doc %{_texmfdistdir}/doc/generic/plainpkg/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/generic/plainpkg/plainpkg-doc.pdf
#- source
%doc %{_texmfdistdir}/source/generic/plainpkg/plainpkg-doc.tex
%doc %{_texmfdistdir}/source/generic/plainpkg/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10454 |21cr|texlive-plainyr-52783-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plainyr

Summary:	Plain bibliography style, sorted by year first
Name:		texlive-plainyr
Version:	52783
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a version of the standard plain BibTeX style, modified
to sort chronologically (by year) first, then by author, title,
etc. (The style's name isn't what the author submitted: it was
renamed for clarity.)

%files
%{_texmfdistdir}/bibtex/bst/plainyr

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10455 |21cr|texlive-plantuml-55214-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plantuml

Summary:	Support for rendering UML diagrams using the syntax and tool of PlantUML
Name:		texlive-plantuml
Version:	55214
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(plantuml.lua) = 2024
Provides:	tex(plantuml.sty) = 2024
BuildArch:	noarch

%description
The package provides support for rendering UML diagrams using
the syntax and tools of PlantUML. The PlantUML syntax is very
short and thus enables quickly specifying UML diagrams. Using
dot, PlantUML layouts the diagrams.

%files
%doc %{_texmfdistdir}/doc/lualatex/plantuml/
%{_texmfdistdir}/tex/lualatex/plantuml/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10456 |21cr|texlive-platex-66186-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname platex

Summary:	PLaTeX2e and miscellaneous macros for pTeX
Name:		texlive-platex
Version:	66186
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(atbegshi.sty)
Requires:	tex(atveryend.sty)
Requires:	tex(everyshi.sty)
Requires:	texlive-kpathsea
Requires:	texlive-babel
Requires:	texlive-tlpkg
Requires:	texlive-cm
Requires:	texlive-firstaid
Requires:	texlive-hyphen-base
#Requires:	texlive-l3backend
Requires:	texlive-l3kernel
Requires:	texlive-l3packages
Requires:	texlive-latex
Requires:	texlive-latex-base-dev
Requires:	texlive-latex-firstaid-dev
Requires:	texlive-latex-fonts
#Requires:	texlive-platex-bin
Requires:	texlive-ptex
Requires:	texlive-ptex-fonts
Requires:	texlive-tex-ini-files
Requires:	texlive-unicode-data
Provides:	tex(exppl2e.sty) = 2024
Provides:	tex(jarticle.cls) = 2024
Provides:	tex(jarticle.sty) = 2024
Provides:	tex(jbk10.clo) = 2024
Provides:	tex(jbk11.clo) = 2024
Provides:	tex(jbk12.clo) = 2024
Provides:	tex(jbook.cls) = 2024
Provides:	tex(jbook.sty) = 2024
Provides:	tex(jltxdoc.cls) = 2024
Provides:	tex(jreport.cls) = 2024
Provides:	tex(jreport.sty) = 2024
Provides:	tex(jsize10.clo) = 2024
Provides:	tex(jsize11.clo) = 2024
Provides:	tex(jsize12.clo) = 2024
Provides:	tex(jt1gt.fd) = 2024
Provides:	tex(jt1mc.fd) = 2024
Provides:	tex(jy1gt.fd) = 2024
Provides:	tex(jy1mc.fd) = 2024
Provides:	tex(kinsoku.tex) = 2024
Provides:	tex(oldpfont.sty) = 2024
Provides:	tex(pfltrace.sty) = 2024
Provides:	tex(pl209.def) = 2024
Provides:	tex-platex = 2024
Provides:	tex(platexrelease.sty) = 2024
Provides:	tex(plexpl3.sty) = 2024
Provides:	tex(plext.sty) = 2024
Provides:	tex(plnews.cls) = 2024
Provides:	tex(ptrace.sty) = 2024
Provides:	tex(tarticle.cls) = 2024
Provides:	tex(tarticle.sty) = 2024
Provides:	tex(tbk10.clo) = 2024
Provides:	tex(tbk11.clo) = 2024
Provides:	tex(tbk12.clo) = 2024
Provides:	tex(tbook.cls) = 2024
Provides:	tex(tbook.sty) = 2024
Provides:	tex(treport.cls) = 2024
Provides:	tex(treport.sty) = 2024
Provides:	tex(tsize10.clo) = 2024
Provides:	tex(tsize11.clo) = 2024
Provides:	tex(tsize12.clo) = 2024
BuildArch:	noarch

%description
The bundle provides pLaTeX2e and miscellaneous macros for pTeX
and e-pTeX. This is a community edition forked from the
original ASCII edition (ptex-texmf-2.5).

%files
%doc %{_texmfdistdir}/doc
%{_mandir}/man1/%{oname}.*
%{_texmfdistdir}/tex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_mandir}
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}
mv %{buildroot}%{_texmfdistdir}/doc/man/man1 %{buildroot}%{_mandir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10457 |21cr|texlive-platex-tools-66185-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname platex-tools

Summary:	PLaTeX standard tools bundle
Name:		texlive-platex-tools
Version:	66185
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-platex
Provides:	tex(plarray.sty) = 2024
Provides:	tex(pldocverb.sty) = 2024
Provides:	tex(plextarray.sty) = 2024
Provides:	tex(plextcolortbl.sty) = 2024
Provides:	tex(plextdelarray.sty) = 2024
Provides:	tex(pxatbegshi.sty) = 2024
Provides:	tex(pxeverysel.sty) = 2024
Provides:	tex(pxeveryshi.sty) = 2024
Provides:	tex(pxftnright.sty) = 2024
Provides:	tex(pxmulticol.sty) = 2024
Provides:	tex(pxxspace.sty) = 2024
BuildArch:	noarch

%description
This bundle is an extended version of the latex-tools bundle
developed by the LaTeX team, mainly intended to support
pLaTeX2e and upLaTeX2e. Currently patches for the latex-tools
bundle and Martin Schroder's ms bundle are included.

%files
%doc %{_texmfdistdir}/doc/latex/platex-tools/
%{_texmfdistdir}/tex/latex/platex-tools/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10458 |21cr|texlive-plautopatch-64072-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plautopatch

Summary:	Automated patches for pLaTeX/upLaTeX
Name:		texlive-plautopatch
Version:	64072
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(plarydshln.sty) = 2024
Provides:	tex(plautopatch.sty) = 2024
Provides:	tex(plcollcell.sty) = 2024
Provides:	tex(plextarydshln.sty) = 2024
Provides:	tex(plextcolortbl.sty) = 2024
Provides:	tex(plsiunitx.sty) = 2024
Provides:	tex(pxpgfrcs.sty) = 2024
Provides:	tex(pxstfloats.sty) = 2024
BuildArch:	noarch

%description
Japanese pLaTeX/upLaTeX formats and packages often conflict
with other LaTeX packages which are unaware of pLaTeX/upLaTeX.
In the worst case, such packages throw a fatal error or end up
with a wrong output. The goal of this package is that there
should be no need to worry about such incompatibilities,
because specific patches are loaded automatically whenever
necessary. This helps not only to simplify source files, but
also to make the appearance of working pLaTeX/upLaTeX sources
similar to those of ordinary LaTeX ones.

%files
%doc %{_texmfdistdir}/doc/latex/plautopatch
%{_texmfdistdir}/tex/latex/plautopatch

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10459 |21cr|texlive-playfair-64857-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname playfair

Summary:	Playfair Display fonts with LaTeX support
Name:		texlive-playfair
Version:	64857
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(LY1PlyfrDisplay-LF.fd) = 2024
Provides:	tex(LY1PlyfrDisplay-OsF.fd) = 2024
Provides:	tex(LY1PlyfrDisplay-Sup.fd) = 2024
Provides:	tex(OT1PlyfrDisplay-LF.fd) = 2024
Provides:	tex(OT1PlyfrDisplay-OsF.fd) = 2024
Provides:	tex(OT1PlyfrDisplay-Sup.fd) = 2024
Provides:	tex-playfair = 2024
Provides:	tex(PlayfairDisplay.map) = 2024
Provides:	tex(PlayfairDisplay.sty) = 2024
Provides:	tex(plyfr_3udzka.enc) = 2024
Provides:	tex(plyfr_4avjba.enc) = 2024
Provides:	tex(plyfr_4srszf.enc) = 2024
Provides:	tex(plyfr_b7y4dd.enc) = 2024
Provides:	tex(plyfr_chpa4l.enc) = 2024
Provides:	tex(plyfr_eb5cw4.enc) = 2024
Provides:	tex(plyfr_fmyrgi.enc) = 2024
Provides:	tex(plyfr_gb53zg.enc) = 2024
Provides:	tex(plyfr_h54wtc.enc) = 2024
Provides:	tex(plyfr_he4k5f.enc) = 2024
Provides:	tex(plyfr_j7rmxo.enc) = 2024
Provides:	tex(plyfr_jk5hji.enc) = 2024
Provides:	tex(plyfr_jowrio.enc) = 2024
Provides:	tex(plyfr_kdf3ua.enc) = 2024
Provides:	tex(plyfr_kzslp6.enc) = 2024
Provides:	tex(plyfr_me7kyw.enc) = 2024
Provides:	tex(plyfr_q6cjrr.enc) = 2024
Provides:	tex(plyfr_qfnkfj.enc) = 2024
Provides:	tex(plyfr_vw64ij.enc) = 2024
Provides:	tex(plyfr_ygz7pk.enc) = 2024
Provides:	tex(T1PlyfrDisplay-LF.fd) = 2024
Provides:	tex(T1PlyfrDisplay-OsF.fd) = 2024
Provides:	tex(T1PlyfrDisplay-Sup.fd) = 2024
Provides:	tex(TS1PlyfrDisplay-LF.fd) = 2024
Provides:	tex(TS1PlyfrDisplay-OsF.fd) = 2024
BuildArch:	noarch

%description
This package provides the PlayFairDisplay family of fonts,
designed by Claus Eggers Sorensen, for use with LaTeX,
pdfLaTeX, XeLaTeX and LuaLaTeX. PlayFairDisplay is well suited
for titling and headlines. It has an extra large x-height and
short descenders. It can be set with no leading if space is
tight, for instance in news headlines, or for stylistic effect
in titles. Capitals are extra short, and only very slightly
heavier than the lowercase characters. This helps achieve a
more even typographical colour when typesetting proper nouns
and initialisms.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/playfair/
%{_texmfdistdir}/fonts/map/dvips/playfair/
%{_texmfdistdir}/fonts/opentype/public/playfair/
%{_texmfdistdir}/fonts/tfm/public/playfair/
%{_texmfdistdir}/fonts/type1/public/playfair/
%{_texmfdistdir}/fonts/vf/public/playfair/
%{_texmfdistdir}/tex/latex/playfair/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10460 |21cr|texlive-plex-64496-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plex

Summary:	Support for IBM Plex fonts
Name:		texlive-plex
Version:	64496
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LGRIBMPlexSans-Sup.fd) = 2024
Provides:	tex(LGRIBMPlexSans-TLF.fd) = 2024
Provides:	tex(LY1IBMPlexMono-Sup.fd) = 2024
Provides:	tex(LY1IBMPlexMono-TLF.fd) = 2024
Provides:	tex(LY1IBMPlexSans-Sup.fd) = 2024
Provides:	tex(LY1IBMPlexSans-TLF.fd) = 2024
Provides:	tex(LY1IBMPlexSerif-Sup.fd) = 2024
Provides:	tex(LY1IBMPlexSerif-TLF.fd) = 2024
Provides:	tex(OT1IBMPlexMono-Sup.fd) = 2024
Provides:	tex(OT1IBMPlexMono-TLF.fd) = 2024
Provides:	tex(OT1IBMPlexSans-Sup.fd) = 2024
Provides:	tex(OT1IBMPlexSans-TLF.fd) = 2024
Provides:	tex(OT1IBMPlexSerif-Sup.fd) = 2024
Provides:	tex(OT1IBMPlexSerif-TLF.fd) = 2024
Provides:	tex(plex.map) = 2024
Provides:	tex(plex-mono.sty) = 2024
Provides:	tex(plex-sans.sty) = 2024
Provides:	tex(plex-serif.sty) = 2024
Provides:	tex(plx_2hzyxp.enc) = 2024
Provides:	tex(plx_4hck4s.enc) = 2024
Provides:	tex(plx_6tuc4c.enc) = 2024
Provides:	tex(plx_dzqm4q.enc) = 2024
Provides:	tex(plx_errukl.enc) = 2024
Provides:	tex(plx_eywvcp.enc) = 2024
Provides:	tex(plx_h3p6bl.enc) = 2024
Provides:	tex(plx_hrol52.enc) = 2024
Provides:	tex(plx_imandq.enc) = 2024
Provides:	tex(plx_lfnaaq.enc) = 2024
Provides:	tex(plx_lxmhqh.enc) = 2024
Provides:	tex(plx_mnk4s5.enc) = 2024
Provides:	tex(plx_n2etni.enc) = 2024
Provides:	tex(plx_nzsfse.enc) = 2024
Provides:	tex(plx_ojqnwd.enc) = 2024
Provides:	tex(plx_oqvkyq.enc) = 2024
Provides:	tex(plx_qdoxri.enc) = 2024
Provides:	tex(plx_sebx3h.enc) = 2024
Provides:	tex(plx_tibbib.enc) = 2024
Provides:	tex(plx_toaz2j.enc) = 2024
Provides:	tex(plx_umrhwx.enc) = 2024
Provides:	tex(plx_vf6q7q.enc) = 2024
Provides:	tex(plx_wot2a6.enc) = 2024
Provides:	tex(plx_x4zmfh.enc) = 2024
Provides:	tex(plx_xl2q4z.enc) = 2024
Provides:	tex(T1IBMPlexMono-Sup.fd) = 2024
Provides:	tex(T1IBMPlexMono-TLF.fd) = 2024
Provides:	tex(T1IBMPlexSans-Sup.fd) = 2024
Provides:	tex(T1IBMPlexSans-TLF.fd) = 2024
Provides:	tex(T1IBMPlexSerif-Sup.fd) = 2024
Provides:	tex(T1IBMPlexSerif-TLF.fd) = 2024
Provides:	tex(TS1IBMPlexMono-TLF.fd) = 2024
Provides:	tex(TS1IBMPlexSans-TLF.fd) = 2024
Provides:	tex(TS1IBMPlexSerif-TLF.fd) = 2024
BuildArch:	noarch

%description
The package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the IBM Plex families of fonts. Serif, Sans and
Mono families are available in eight weights: Regular, Light,
ExtraLight, Thin, Bold, Text, Medium and SemiBold (with
corresponding italics).

%files
%doc %{_texmfdistdir}/doc/fonts/plex/
%{_texmfdistdir}/fonts/enc/dvips/plex/
%{_texmfdistdir}/fonts/map/dvips/plex/
%{_texmfdistdir}/fonts/opentype/ibm/plex/
%{_texmfdistdir}/fonts/tfm/ibm/plex/
%{_texmfdistdir}/fonts/type1/ibm/plex/
%{_texmfdistdir}/fonts/vf/ibm/plex/
%{_texmfdistdir}/tex/latex/plex/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10461 |21cr|texlive-plex-otf-47562-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plex-otf

Summary:	Support for the OpenType font IBM Plex
Name:		texlive-plex-otf
Version:	47562
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(plex-otf.sty) = 2024
BuildArch:	noarch

%description
This package supports the free otf fonts from the IBM Plex
project which are available from GitHub or already part of your
system (Windows/Linux/...). This package supports only XeLaTeX
or LuaLaTeX; for pdfLaTeX use plex-mono.sty, plex-sans.sty,
and/or plex-serif.sty from the plex package. IBM Plex has no
math symbols. You will have to use one of the existing math
fonts if you need them.

%files
%doc %{_texmfdistdir}/doc/fonts/plex-otf/
%{_texmfdistdir}/tex/latex/plex-otf/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10462 |21cr|texlive-plimsoll-56605-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plimsoll

Summary:	Fonts with the Plimsoll symbol and LaTeX support
Name:		texlive-plimsoll
Version:	56605
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(plimsoll.enc) = 2024
Provides:	tex(plimsoll.map) = 2024
Provides:	tex(plimsoll.sty) = 2024
BuildArch:	noarch

%description
This package provides access to the Plimsoll symbol for use
with LaTeX. The Plimsoll symbol is sometimes used in chemistry
for denoting standard states and values. The LaTeX package
provides access to this notation as well. The syntax for
denoting the standard state is the same as suggested in the
Comprehensive LaTeX Symbol List for emulating the Plimsoll
mark.

%files
%doc %{_texmfdistdir}/doc/fonts/plimsoll
%{_texmfdistdir}/fonts/afm/public/plimsoll
%{_texmfdistdir}/fonts/enc/dvips/plimsoll
%{_texmfdistdir}/fonts/map/dvips/plimsoll
%{_texmfdistdir}/fonts/tfm/public/plimsoll
%{_texmfdistdir}/fonts/type1/public/plimsoll
%{_texmfdistdir}/tex/latex/plimsoll

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10463 |21cr|texlive-plipsum-4.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30353
# category Package
# catalog-ctan /macros/plain/contrib/plipsum
# catalog-date 2013-05-09 11:57:32 +0200
# catalog-license lppl
# catalog-version 4.3
Name:		texlive-plipsum
Version:	4.3
Release:	11
Summary:	'Lorem ipsum' for Plain TeX developers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/plipsum
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plipsum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plipsum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a paragraph generator designed for use in
Plain TeX documents. The paragraphs generated contain many 'f-
groups' (ff, fl etc.) so the text can act as a test of the
ligatures of the font in use.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/plipsum/plipsum.tex
%doc %{_texmfdistdir}/doc/plain/plipsum/README
%doc %{_texmfdistdir}/doc/plain/plipsum/compile.sh
%doc %{_texmfdistdir}/doc/plain/plipsum/plipsum-doc.pdf
%doc %{_texmfdistdir}/doc/plain/plipsum/plipsum.nw
%doc %{_texmfdistdir}/doc/plain/plipsum/pliptest.tex
%doc %{_texmfdistdir}/doc/plain/plipsum/stripc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10464 |21cr|texlive-plnfss-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/plnfss
# catalog-date 2008-05-21 10:21:02 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-plnfss
Version:	1.1
Release:	8
Summary:	Font selection for Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/plnfss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plnfss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plnfss.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Plnfss is a set of macros to provide easy font access (somewhat
similar to NFSS but with some limitations) with Plain TeX.
Plnfss can automatically make use of PSNFSS fd files, i.e.,
when an Adobe Type 1 is used the relevant fd file will be
loaded automatically. For cmr-like fonts (ec, vnr, csr or plr
fonts), a special format called pfd (plain fd) is required and
must be loaded manually. See ot1cmr.pfd for further
information.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/plnfss/MIKmathf.tex
%{_texmfdistdir}/tex/plain/plnfss/ams.pfd
%{_texmfdistdir}/tex/plain/plnfss/il2cm.pfd
%{_texmfdistdir}/tex/plain/plnfss/il2cmr.pfd
%{_texmfdistdir}/tex/plain/plnfss/ly1lm.pfd
%{_texmfdistdir}/tex/plain/plnfss/ot1cm.pfd
%{_texmfdistdir}/tex/plain/plnfss/ot1cmr.pfd
%{_texmfdistdir}/tex/plain/plnfss/ot4cm.pfd
%{_texmfdistdir}/tex/plain/plnfss/plnfss.tex
%{_texmfdistdir}/tex/plain/plnfss/qxlm.pfd
%{_texmfdistdir}/tex/plain/plnfss/t1lm.pfd
%{_texmfdistdir}/tex/plain/plnfss/t5cm.pfd
%{_texmfdistdir}/tex/plain/plnfss/t5cmr.pfd
%{_texmfdistdir}/tex/plain/plnfss/t5lm.pfd
%{_texmfdistdir}/tex/plain/plnfss/ts1lm.pfd
%doc %{_texmfdistdir}/doc/plain/plnfss/LPPL.txt
%doc %{_texmfdistdir}/doc/plain/plnfss/plnfss.txt
%doc %{_texmfdistdir}/doc/plain/plnfss/test-plnfss.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10465 |21cr|texlive-plstmary-0.5c-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31088
# category Package
# catalog-ctan /macros/plain/contrib/plstmary
# catalog-date 2013-07-03 23:04:38 +0200
# catalog-license pd
# catalog-version 0.5c
Name:		texlive-plstmary
Version:	0.5c
Release:	11
Summary:	St. Mary's Road font support for plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/plstmary
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plstmary.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plstmary.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to produce all the symbols of the
St Mary's Road fonts, in a Plain TeX environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/plstmary/stmary.tex
%doc %{_texmfdistdir}/doc/plain/plstmary/README
%doc %{_texmfdistdir}/doc/plain/plstmary/plstmary-doc.pdf
%doc %{_texmfdistdir}/doc/plain/plstmary/plstmary-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10466 |21cr|texlive-pmboxdraw-53046-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pmboxdraw

Summary:	Poor man's box drawing characters
Name:		texlive-pmboxdraw
Version:	53046
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pmboxdraw.sty) = 2024
BuildArch:	noarch

%description
This package declares box drawing characters of old code pages,
e.g. cp437. It uses rules instead of using a font.

%files
%doc %{_texmfdistdir}/doc/latex/pmboxdraw
%{_texmfdistdir}/tex/latex/pmboxdraw

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10467 |21cr|texlive-pmhanguljamo-66361-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pmhanguljamo

Summary:	Poor man's Hangul Jamo input method
Name:		texlive-pmhanguljamo
Version:	66361
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(frkjamofull.data.tex) = 2024
Provides:	tex(pmhanguljamo-frkim.code.tex) = 2024
Provides:	tex(pmhanguljamo-frkim.sty) = 2024
Provides:	tex(pmhanguljamo-rrk.sty) = 2024
Provides:	tex(pmhanguljamo.sty) = 2024
BuildArch:	noarch

%description
This package provides a Hangul transliteration input method
that allows to typeset Korean letters (Hangul) using the proper
fonts. The name is derived from "Poor man's Hangul Jamo Input
Method". The use of XeLaTeX is recommended. pdfTeX is not
supported.

%files
%doc %{_texmfdistdir}/doc/latex/pmhanguljamo
%{_texmfdistdir}/tex/latex/pmhanguljamo

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10468 |21cr|texlive-pm-isomath-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pm-isomath
Version:	1.2
Release:	1
Summary:	Poor man ISO math for pdfLaTeX users
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/pm-isomath
License:	The LATEX Project Public License 1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/pm-isomath.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/pm-isomath.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/pm-isomath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small package realizes a poor man approximation of the ISO
regulations for physical sciences and technology. Contrary to
other more elegant solutions, it does not load any math
alphabet, since pdfLaTeX can use only a maximum of such
alphabets. The necessary user macros are defined for typsetting
common math symbols that require special ISO treatment.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10469 |21cr|texlive-pnas2009-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16287
# category Package
# catalog-ctan /biblio/bibtex/contrib/misc/pnas2009.bst
# catalog-date 2009-12-06 09:16:45 +0100
# catalog-license other-free
# catalog-version 1.0
Name:		texlive-pnas2009
Version:	1.0
Release:	8
Summary:	Bibtex style for PNAS
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/misc/pnas2009.bst
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pnas2009.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This style produces bibliographies in the format of
"Proceedings of the National Academy of Sciences, USA". The
style was derived from the standard unsrt.bst and adapted to
the new (2009) formatting rules.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/pnas2009/pnas2009.bst

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10470 |21cr|texlive-poetry-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-poetry
Version:	2.2
Release:	1
Summary:	Facilities for typesetting poetry and poetical structure
Group:		Publishing
URL:		https://ctan.org/pkg/poetry
License:	The LATEX Project Public License 1.3c
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/poetry.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/poetry.source.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/poetry.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides some macros and general doodads for typesetting poetry. 
There is, of course, already the excellent verse package, 
and the poetrytex package provides some extra functionality on top of it.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10471 |21cr|texlive-poiretone-64856-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname poiretone

Summary:	Poiretone fonts with LaTeX support
Name:		texlive-poiretone
Version:	64856
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LY1PoiretOne-LF.fd) = 2024
Provides:	tex(OT1PoiretOne-LF.fd) = 2024
Provides:	tex(PoiretOne.map) = 2024
Provides:	tex(PoiretOne.sty) = 2024
Provides:	tex(prtn_2rdbwn.enc) = 2024
Provides:	tex(prtn_bjsotj.enc) = 2024
Provides:	tex(prtn_nt5tbh.enc) = 2024
Provides:	tex(prtn_opucty.enc) = 2024
Provides:	tex(T1PoiretOne-LF.fd) = 2024
Provides:	tex(TS1PoiretOne-LF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the PoiretOne family of fonts, designed by Denis
Masharov. PoiretOne is a decorative geometric grotesque with a
hint of Art Deco and constructivism. There is currently just a
regular weight and an artificially emboldened bold.

%files
%doc %{_texmfdistdir}/doc/fonts/poiretone
%{_texmfdistdir}/fonts/enc/dvips/poiretone
%{_texmfdistdir}/fonts/map/dvips/poiretone
%{_texmfdistdir}/fonts/tfm/public/poiretone
%{_texmfdistdir}/fonts/truetype/public/poiretone
%{_texmfdistdir}/fonts/type1/public/poiretone
%{_texmfdistdir}/fonts/vf/public/poiretone
%{_texmfdistdir}/tex/latex/poiretone

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10472 |21cr|texlive-polexpr-0.8.7a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-polexpr
Version:	0.8.7a
Release:	1
Summary:	A parser for polynomial expressions
Group:		Publishing
URL:		https://ctan.org/pkg/polexpr
License:	The LATEX Project Public License 1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/polexpr.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/polexpr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a parser \poldef of algebraic polynomial expressions.
As it is based on xintexpr, the coefficients are allowed to be arbitrary rational numbers.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/polexpr
%doc %{_texmfdistdir}/doc/generic/polexpr

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10473 |21cr|texlive-poormanlog-0.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22142
# category Package
# catalog-ctan /macros/generic/poormanlog
# catalog-date 2021-04-21
# catalog-license lppl1.3
# catalog-version 0.06
Name:		texlive-poormanlog
Version:	0.06
Release:	1
Summary:	Package for computing logarithms in base 10
Group:		Publishing
URL:		https://www.ctan.org/pkg/poormanlog
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poormanlog.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poormanlog.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small package (usable with Plain e-TEX, LATEX, or others)
with no dependencies provides two fast expandable macros computing
logarithms in base 10 and fractional powers of 10.

#-----------------------------------------------------------------------
%files

%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
 
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10474 |21cr|texlive-postnotes-66019-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname postnotes

Summary:	Endnotes for LaTeX
Name:		texlive-postnotes
Version:	66019
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(postnotes.sty) = 2024
BuildArch:	noarch

%description
This is an endnotes package for LaTeX. Its user interface
provides means to print multiple sections of notes along the
document, and to subdivide them either automatically -- by
chapter, by section -- or at manually specified places, thus
being able to easily handle both numbered and unnumbered
headings. The package also provides infrastructure for setting
up contextual running headers for printed notes. The default is
a simple but useful one, in the form "Notes to pages N-M", but
more elaborate ones can be built. When hyperref is loaded,
postnotes provides hyperlinked notes, including back links.

%files
%doc %{_texmfdistdir}/doc/latex/postnotes
%{_texmfdistdir}/tex/latex/postnotes

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10475 |21cr|texlive-powerdot-tuliplab-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-powerdot-tuliplab
Version:	1.0.0
Release:	1
Epoch:		1
Summary:	A style package for Powerdot to provide the design of TULIP Lab
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/powerdot-tuliplab
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/powerdot-tuliplab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/powerdot-tuliplab.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
powerdot-tuliplab is the LaTeX package used in TULIP Lab for
presentation drafting. It comes with several sample .tex files
so that you can quickly start working with it.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10476 |21cr|texlive-powerdot-tuliplab-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-powerdot-tuliplab
Version:	2.3.1
Release:	1
Epoch:		1
Summary:	Radboud University Titlepage Package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rutitlepage
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rutitlepage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rutitlepage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rutitlepage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is an unofficial LaTeX package to generate titlepages for
the Radboud University, Nijmegen. It uses official vector logos
from the university. This package requires the following other
LaTeX packages: geometry, graphicx, ifpdf, keyval, iflang, and,
optionnaly, babel-dutch.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10477 |21cr|texlive-ppt-slides-65194-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ppt-slides

Summary:	Good-looking slide decks a la PowerPoint (PPT)
Name:		texlive-ppt-slides
Version:	65194
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(crumbs.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(hyperref.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tools
#Requires:	tex(pagecolor.sty)
#Requires:	tex(pgfopts.sty)
#Requires:	tex(pgf.sty)
#Requires:	tex(qrcode.sty)
#Requires:	tex(seqsplit.sty)
#Requires:	tex(tikzpagenodes.sty)
#Requires:	tex(varwidth.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(ppt-9x6.tex) = 2024
Provides:	tex(ppt-dark-mono.tex) = 2024
Provides:	tex(ppt-dark.tex) = 2024
Provides:	tex(ppt-light-mono.tex) = 2024
Provides:	tex(ppt-light.tex) = 2024
Provides:	tex(ppt-slides.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package helps you create slide decks as good-looking
as with PowerPointtm, but more precise, uniform, and visually
strict. Check this series of lectures fully designed with the
use of this package.

%files
%doc %{_texmfdistdir}/doc/latex/ppt-slides
%{_texmfdistdir}/tex/latex/ppt-slides

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10478 |21cr|texlive-practicalreports-52312-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname practicalreports

Summary:	Some macros for writing practical reports
Name:		texlive-practicalreports
Version:	52312
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(practicalreports.sty) = 2024
BuildArch:	noarch

%description
This package provides a handful of macros for writing up
science practical reports.

%files
%doc %{_texmfdistdir}/doc/latex/practicalreports
%{_texmfdistdir}/tex/latex/practicalreports

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10479 |21cr|texlive-precattl-63967-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname precattl

Summary:	Prepare special catcodes from token list
Name:		texlive-precattl
Version:	63967
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(precattl.sty) = 2024
BuildArch:	noarch

%description
Allow users to write code that contains tokens with unusual
catcodes.

%files
%doc %{_texmfdistdir}/doc/latex/precattl
%{_texmfdistdir}/tex/latex/precattl

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10480 |21cr|texlive-prelim2e-57000-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname prelim2e

Summary:	Allows the marking of preliminary versions of a document
Name:		texlive-prelim2e
Version:	57000
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(scrtime.sty)
Provides:	tex(prelim2e.sty) = 2024
BuildArch:	noarch

%description
Puts text below the normal page content (the default text marks
the document as draft and puts a timestamp on it). Can be used
together with e.g. the vrsion, rcs and rcsinfo packages. Uses
the everyshi package and can use the scrtime package from the
koma-script bundle.

%files
%doc %{_texmfdistdir}/doc/latex/prelim2e
%{_texmfdistdir}/tex/latex/prelim2e

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10481 |21cr|texlive-present-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25953
# category Package
# catalog-ctan /macros/plain/contrib/present
# catalog-date 2019
# catalog-license lppl
# catalog-version 2.2.1
Name:		texlive-present
Version:	2.2.1
Release:	1
Summary:	Presentations with Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/present
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/present.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/present.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a collection of simple macros for preparing
presentations in Plain TeX. Slide colour and text colour may be
set, links between parts of the presentation, to other files,
and to web addresses may be inserted. Images may be included
easily, and code is available to provide transition effects
between slides or frames. The structure of the macros is not
overly complex, so that users should find it easy to adapt the
macros to their specific needs.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/present/present.tex
%doc %{_texmfdistdir}/doc/plain/present/HowToTalkTeX.pdf
%doc %{_texmfdistdir}/doc/plain/present/HowToTalkTeX.tex
%doc %{_texmfdistdir}/doc/plain/present/Pfeil1.pdf
%doc %{_texmfdistdir}/doc/plain/present/Pfeil2.pdf
%doc %{_texmfdistdir}/doc/plain/present/Pfeil3.pdf
%doc %{_texmfdistdir}/doc/plain/present/Pfeil4.pdf
%doc %{_texmfdistdir}/doc/plain/present/README
%doc %{_texmfdistdir}/doc/plain/present/Sagnac.pdf
%doc %{_texmfdistdir}/doc/plain/present/Stern.png
%doc %{_texmfdistdir}/doc/plain/present/background.png
%doc %{_texmfdistdir}/doc/plain/present/present-transitions.tex
%doc %{_texmfdistdir}/doc/plain/present/HowToTalkTeX.lp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10482 |21cr|texlive-pressrelease-35147.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pressrelease

Summary:	A class for typesetting press releases
Name:		texlive-pressrelease
Version:	35147.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
#Requires:	tex(geometry.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(marvosym.sty)
Requires:	tex(refcount.sty)
#Requires:	tex(setspace.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(url.sty)
Provides:	tex-pressrelease = 2024
Provides:	tex(pressrelease.cls) = 2024
Provides:	tex(pressrelease-symbols.sty) = 2024
BuildArch:	noarch

%description
A configurable class for writing press releases.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/pressrelease/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10483 |21cr|texlive-prettytok-63842-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname prettytok

Summary:	Pretty-print token lists
Name:		texlive-prettytok
Version:	63842
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(filecontentsdef.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-l3kernel
Requires:	tex(precattl.sty)
Provides:	tex(prettytok.sty) = 2024
BuildArch:	noarch

%description
Pretty-print token lists to HTML file for debugging purposes.
Open the file in any browser to view the result. Can be used to
replace \tl_analysis_show:n.

%files
%doc %{_texmfdistdir}/doc/latex/prettytok
%{_texmfdistdir}/tex/latex/prettytok

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1
sed -i "s,^#!/bin/python3$,^#!/usr/bin/python3," tex/latex/prettytok/prettytok-decode-8bit.py

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10484 |21cr|texlive-prftree-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-prftree
Version:	1.6
Release:	1
Summary:	A package to write proof trees for natural deduction calculi
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/prftree
License:	GNU General Public
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/prftree.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/prftree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The prftree package provides a package to write proof trees for
natural deduction calculi, sequent-like calculi, and similar.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10485 |21cr|texlive-principia-58927-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname principia

Summary:	Notations for typesetting the "Principia Mathematica"
Name:		texlive-principia
Version:	58927
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsmath.sty)
#Requires:	tex(amssymb.sty)
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pifont.sty)
Provides:	tex(principia.sty) = 2024
BuildArch:	noarch

%description
This package supports typesetting the Peanese notation in
Volume I of Whitehead and Russell's 1910 "Principia
Mathematica".

%files
%doc %{_texmfdistdir}/doc/latex/principia
%{_texmfdistdir}/tex/latex/principia

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10486 |21cr|texlive-proba-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/proba
# catalog-date 2009-06-02 14:48:32 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-proba
Version:	20190228
Release:	1
Summary:	Shortcuts commands to symbols used in probability texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/proba
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/proba.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/proba.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/proba.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package includes some of the most often used commands in
probability texts, e.g. probability, expectation, variance,
etc. It also includes some short commands for set (blackboard)
or filtrations (calligraphic). It requires LaTeX2e and the
amsfonts package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/proba/proba.sty
%doc %{_texmfdistdir}/doc/latex/proba/README
%doc %{_texmfdistdir}/doc/latex/proba/proba.pdf
#- source
%doc %{_texmfdistdir}/source/latex/proba/proba.dtx
%doc %{_texmfdistdir}/source/latex/proba/proba.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10487 |21cr|texlive-prodint-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21893
# category Package
# catalog-ctan /fonts/prodint
# catalog-date 2011-03-30 12:07:52 +0200
# catalog-license ofl
# catalog-version undef
Name:		texlive-prodint
Version:	20190228
Release:	1
Summary:	A font that provides the product integral symbol
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/prodint
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prodint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prodint.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Product integrals are to products, as integrals are to sums.
They have been around for more than a hundred years, they have
not become part of the standard toolbox, possibly because no-
one invented the right mathematical symbol for them. The
authors remedied that situation by proposing the symbol and
providing this font.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/prodint/prodint.afm
%{_texmfdistdir}/fonts/map/dvips/prodint/prodint.map
%{_texmfdistdir}/fonts/tfm/public/prodint/prodint.tfm
%{_texmfdistdir}/fonts/type1/public/prodint/prodint.pfb
%{_texmfdistdir}/tex/latex/prodint/prodint.sty
%doc %{_texmfdistdir}/doc/fonts/prodint/README
%doc %{_texmfdistdir}/doc/fonts/prodint/config.prodint
%doc %{_texmfdistdir}/doc/fonts/prodint/prodint.bma
%doc %{_texmfdistdir}/doc/fonts/prodint/prodint.mt1
%doc %{_texmfdistdir}/doc/fonts/prodint/prodint.pdf
%doc %{_texmfdistdir}/doc/fonts/prodint/prodint.pfa
%doc %{_texmfdistdir}/doc/fonts/prodint/prodint.sit.hqx
%doc %{_texmfdistdir}/doc/fonts/prodint/prodint.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10488 |21cr|texlive-profcollege-66364-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname profcollege

Summary:	A LaTeX package for French maths teachers in college
Name:		texlive-profcollege
Version:	66364
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amssymb.sty)
#Requires:	tex(cancel.sty)
#Requires:	tex(datatool.sty)
#Requires:	tex(environ.sty)
#Requires:	tex(gmp.sty)
#Requires:	tex(hhline.sty)
#Requires:	tex(ifoddpage.sty)
#Requires:	tex(iftex.sty)
Requires:	tex(ifthen.sty)
#Requires:	tex(listofitems.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(luamplib.sty)
#Requires:	tex(mathtools.sty)
#Requires:	tex(modulus.sty)
#Requires:	tex(multicol.sty)
#Requires:	tex(multido.sty)
#Requires:	tex(nicematrix.sty)
#Requires:	tex(simplekv.sty)
#Requires:	tex(siunitx.sty)
#Requires:	tex(stackengine.sty)
#Requires:	tex(suffix.sty)
#Requires:	tex(tcolorbox.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(verbatim.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xfp.sty)
#Requires:	tex(xintexpr.sty)
#Requires:	tex(xinttools.sty)
#Requires:	tex(xlop.sty)
#Requires:	tex(xstring.sty)
Provides:	tex(PfCEquationComposition2.tex) = 2024
Provides:	tex(PfCEquationLaurent1.tex) = 2024
Provides:	tex(PfCEquationPose1.tex) = 2024
Provides:	tex(PfCEquationSoustraction2.tex) = 2024
Provides:	tex(PfCEquationSymbole1.tex) = 2024
Provides:	tex(PfCEquationTerme1.tex) = 2024
Provides:	tex(ProfCollege.sty) = 2024
BuildArch:	noarch

%description
This package provides some commands to help French mathematics
teachers for 11-16 years olds, for example: \Tableau[Metre] to
write the tabular km|hm|... with some facilities,
\Pythagore{ABC}{5}{7} to write the entire calculation of AC
with the Pythagorean theorem, \Trigo[Cosinus]{ABC}{3}{}{60} to
write the entire calculation of AC with cosine, ... and some
others.

%files
%doc %{_texmfdistdir}/doc/latex/profcollege
%{_texmfdistdir}/metapost/profcollege
%{_texmfdistdir}/tex/latex/profcollege

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10489 |21cr|texlive-proflabo-63147-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname proflabo

Summary:	Draw laboratory equipment
Name:		texlive-proflabo
Version:	63147
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ProfLabo.sty) = 2024
BuildArch:	noarch

%description
This package was developed to help French chemistry teachers to
create drawings (using TikZ) for laboratory stuff.

%files
%doc %{_texmfdistdir}/doc/latex/proflabo
%{_texmfdistdir}/tex/latex/proflabo

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10490 |21cr|texlive-proflycee-66581-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname proflycee

Summary:	A LaTeX package for French maths teachers in high school
Name:		texlive-proflycee
Version:	66581
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ProfLycee-old.sty) = 2024
Provides:	tex(ProfLycee.sty) = 2024
Provides:	tex(proflycee-tools-minted.tex) = 2024
Provides:	tex(proflycee-tools-piton.tex) = 2024
Provides:	tex(proflycee-tools-pythontex.tex) = 2024
BuildArch:	noarch

%description
This package provides some commands to help French mathematics
teachers for 15-18 years olds, for example: \SplineTikz to
create splines with "derivative control";
\CalculFormelParametres and \CalculFormelLigne in order to
create an xcas-windows-like; \CodePythonLstFichier to create
code presentation and code execution with pythontex.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/metapost/%{oname}
%{_texmfdistdir}/tex/latex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10491 |21cr|texlive-projlib-65475-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname projlib

Summary:	A series of tools to simplify your workflow
Name:		texlive-projlib
Version:	65475
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(aliascnt.sty)
#Requires:	tex(amsmath.sty)
#Requires:	tex(amssymb.sty)
#Requires:	tex(amsthm.sty)
#Requires:	tex(babel.sty)
#Requires:	tex(biolinum.sty)
#Requires:	tex(calc.sty)
#Requires:	tex(cleveref.sty)
#Requires:	tex(datetime2.sty)
Requires:	tex(ebgaramond-maths.sty)
Requires:	tex(ebgaramond.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(fancyvrb.sty)
Requires:	tex(fontenc.sty)
Requires:	tex(garamondlibre.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(iftex.sty)
Requires:	tex(ifthen.sty)
Requires:	tex(kvoptions.sty)
Requires:	tex(libertinust1math.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(mathpazo.sty)
#Requires:	tex(mathtools.sty)
#Requires:	tex(microtype.sty)
Requires:	tex(newpxmath.sty)
Requires:	tex(newpxtext.sty)
#Requires:	tex(newtxmath.sty)
#Requires:	tex(newtxtext.sty)
#Requires:	tex(polyglossia.sty)
#Requires:	tex(setspace.sty)
#Requires:	tex(silence.sty)
#Requires:	tex(tcolorbox.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xstring.sty)
#Requires:	tex(zhnumber.sty)
Provides:	tex(projlib-author.sty) = 2024
Provides:	tex(projlib-datetime.sty) = 2024
Provides:	tex(projlib-draft.sty) = 2024
Provides:	tex(projlib-font.sty) = 2024
Provides:	tex(projlib-language.sty) = 2024
Provides:	tex(projlib-logo.sty) = 2024
Provides:	tex(projlib-math.sty) = 2024
Provides:	tex(projlib-paper.sty) = 2024
Provides:	tex(ProjLib.sty) = 2024
Provides:	tex(projlib-text.sty) = 2024
Provides:	tex(projlib-theorem.sty) = 2024
Provides:	tex(projlib-titlepage.sty) = 2024
BuildArch:	noarch

%description
ProjLib is a collection of tools to help you write LaTeX
documents. With the main package ProjLib loaded, you no longer
need to set up the theorem-like environments, nor to manually
configure the appropriate multilingual settings. In addition, a
series of auxiliary functionalities are introduced.

%files
%doc %{_texmfdistdir}/doc/latex/projlib
%{_texmfdistdir}/tex/latex/projlib

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10492 |21cr|texlive-proof-at-the-end-20190521-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-proof-at-the-end
Version:	20190521
Release:	1
Summary:	This package aims to provide a way to easily move proofs in the appendix
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/proof-at-the-end
License:	The LATEX Project Public License 1.3
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/proof-at-the-end.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/proof-at-the-end.doc.tar.xz
Source2: 	https://ctan.altspu.ru/systems/texlive/tlnet/archive/proof-at-the-end.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package aims to provide a way to easily move proofs to the appendix. 
You can (among other things) move proofs to different places/sections, create links from theorems to proofs, restate theorems, add comments in appendix…

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10493 |21cr|texlive-proofread-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname proofread

Summary:	Commands for inserting annotations
Name:		texlive-proofread
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(soul.sty)
#Requires:	tex(tikz.sty)
Provides:	tex-proofread = 2024
Provides:	tex(proofread.sty) = 2024
BuildArch:	noarch

%description
This package defines a few LaTeX commands that may be useful
when you proofread a LaTeX document. They allow you to easily
highlight text and add comments in the margin. Vim escape
sequences are provided for inserting or removing these LaTeX
commands in the source. Options are provided for displaying the
document with extra line spacing, and for displaying it in
either corrected or uncorrected state, both without margin
notes. The package is based on code for a text highlighting
command that was published by Antal Spector-Zabusky on
https://tex.stackexchange.com/questions/5959. The main file,
proofread.dtx, is self-extracting, so you can generate the
style file by compiling proofread.dtx with pdfLaTeX. This
package is based on the soul package; so if you plan to
highlight non-ASCII characters, you must compile your source
with either XeTeX- or LuaTeX-based compilers.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/proofread/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10494 |21cr|texlive-prooftrees-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-prooftrees
Version:	0.7
Release:	1
Summary:	The package supports drawing proof trees
Group:		Publishing
URL:		https://ctan.org/pkg/prooftrees
License:	The LATEX Project Public License 1.3
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/prooftrees.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/prooftrees.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports drawing proof trees of the kind often used in introductory logic classes

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10495 |21cr|texlive-prtec-51919-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname prtec

Summary:	A template for PRTEC conference papers
Name:		texlive-prtec
Version:	51919
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-newtx
Provides:	tex(prtec.bst) = 2024
Provides:	tex(prtec.cls) = 2024
BuildArch:	noarch

%description
This package provides a LaTeX class, a BibTeX style, and a
LaTeX template to format conference papers for the Pacific Rim
Thermal Engineering Conference (PRTEC). The .tex and .cls files
are commented and should be self-explanatory. The package
depends on newtx.

%files
%doc %{_texmfdistdir}/doc/latex/prtec
%{_texmfdistdir}/bibtex/bst/prtec
%{_texmfdistdir}/tex/latex/prtec

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10496 |21cr|texlive-pseudo-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pseudo
Version:	1.1.3
Release:	1
Summary:	The package permits writing pseudocode without much fuss and with quite a bit of configurability
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/pseudo
License:	MIT
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/pseudo.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/pseudo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package permits writing pseudocode without much fuss and with quite a bit of configurability.
Its main environment combines aspects of enumeration, tabbing and tabular for nonintrusive line 
numbering, indentation and highlighting, and there is functionality for typesetting common 
syntactic elements such as keywords, identifiers, and comments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10497 |21cr|texlive-psizzl-0.35-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/psizzl
# catalog-date 2006-12-03 01:48:16 +0100
# catalog-license lppl
# catalog-version 0.35
Name:		texlive-psizzl
Version:	0.35
Release:	7
Summary:	A TeX format for physics papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/psizzl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psizzl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psizzl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psizzl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
PSIZZL is a TeX format for physics papers written at SLAC and
used at several other places. It dates from rather early in the
development of TeX82; as a result, some of the descriptions of
limitations look rather quaint to modern eyes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/psizzl/base/chapters.Psizzl
%{_texmfdistdir}/tex/psizzl/base/citation.Psizzl
%{_texmfdistdir}/tex/psizzl/base/fontdefs.Psizzl
%{_texmfdistdir}/tex/psizzl/base/index.Psizzl
%{_texmfdistdir}/tex/psizzl/base/institut.Psizzl
%{_texmfdistdir}/tex/psizzl/base/letter.Psizzl
%{_texmfdistdir}/tex/psizzl/base/lists.Psizzl
%{_texmfdistdir}/tex/psizzl/base/macros.Psizzl
%{_texmfdistdir}/tex/psizzl/base/memo.Psizzl
%{_texmfdistdir}/tex/psizzl/base/mypsizzl.tex
%{_texmfdistdir}/tex/psizzl/base/options.Psizzl
%{_texmfdistdir}/tex/psizzl/base/output.Psizzl
%{_texmfdistdir}/tex/psizzl/base/picture.Psizzl
%{_texmfdistdir}/tex/psizzl/base/psizzl.tex
%{_texmfdistdir}/tex/psizzl/base/publicat.Psizzl
%{_texmfdistdir}/tex/psizzl/base/symbols.Psizzl
%{_texmfdistdir}/tex/psizzl/base/thesis.Psizzl
%{_texmfdistdir}/tex/psizzl/config/psizzl.ini
%doc %{_texmfdistdir}/doc/otherformats/psizzl/base/psizzl.commands
%doc %{_texmfdistdir}/doc/otherformats/psizzl/base/psizzl.doc
#- source
%doc %{_texmfdistdir}/source/psizzl/base/aaaread.me

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10498 |21cr|texlive-pst-arrow-61069-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pst-arrow

Summary:	Special arrows for PSTricks
Name:		texlive-pst-arrow
Version:	61069
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pst-arrow.sty) = 2024
Provides:	tex(pst-arrow.tex) = 2024
BuildArch:	noarch

%description
This package has all the code from the package pstricks-add
which was related to arrows, like multiple arrows and so on.

%files
%doc %{_texmfdistdir}/doc/generic/pst-arrow/
%{_texmfdistdir}/tex/generic/pst-arrow/
%{_texmfdistdir}/tex/latex/pst-arrow/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10499 |21cr|texlive-pst-flags-65501-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pst-flags

Summary:	Draw flags of countries using PSTricks
Name:		texlive-pst-flags
Version:	65501
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
#Requires:	tex(fp.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pst-all.sty)
#Requires:	tex(pstricks.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xfp.sty)
Provides:	tex(pst-Albania-flag-seal.tex) = 2024
Provides:	tex(pst-Angola-flag-seal.tex) = 2024
Provides:	tex(pst-Anguilla-flag-seal.tex) = 2024
Provides:	tex(pst-Barbados-flag-seal.tex) = 2024
Provides:	tex(pst-Dominica-flag.tex) = 2024
Provides:	tex(pst-Egypt-flag-seal.tex) = 2024
Provides:	tex(pst-Eritrea-flag-seal.tex) = 2024
Provides:	tex(pst-flags-colors-html.sty) = 2024
Provides:	tex(pst-flags.sty) = 2024
Provides:	tex(pst-Iraq-flag-slogan.tex) = 2024
Provides:	tex(pst-Lesotho-flag-seal.tex) = 2024
Provides:	tex(pst-Malta-flag-seal-corner.tex) = 2024
Provides:	tex(pst-Malta-flag-seal-horse.tex) = 2024
Provides:	tex(pst-Malta-flag-seal-text.tex) = 2024
Provides:	tex(pst-Mongolia-flag-seal.tex) = 2024
Provides:	tex(pst-Nicaragua-flag-seal.tex) = 2024
Provides:	tex(pst-Oman-seal.tex) = 2024
Provides:	tex(pst-Paraguay-seal-wreath.tex) = 2024
Provides:	tex(pst-Saudi-flag-seal.tex) = 2024
Provides:	tex(pst-SriLanka-seal.tex) = 2024
Provides:	tex(pst-Tajikistan-flag-seal-crown.tex) = 2024
Provides:	tex(pst-Uganda-flagseal.tex) = 2024
BuildArch:	noarch

%description
This package provides a number of macros for rendering flags of
countries and their associated artefacts using PSTricks.
Formatting of the resulting drawings is entirely controlled by
TeX macros. A good working knowledge of LaTeX should be
sufficient to design flags of sovereign countries and adapt
them to create new designs. Features such as color or shape
customisation and dynamic modifications are possible by
cleverly adjusting the options supplied to the TeX macros, see
the documentation for examples. This package requires expl3,
fp, xfp, xcolor, pstricks and pst-all.

%files
%doc %{_texmfdistdir}/doc/latex/pst-flags
%{_texmfdistdir}/tex/latex/pst-flags

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10500 |21cr|texlive-pst-hsb-61322-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pst-hsb

Summary:	Curves with continuous colours
Name:		texlive-pst-hsb
Version:	61322
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	texlive-pst-ghsb = %{EVRD}
Provides:	tex-pst-ghsb = 2024
Provides:	tex-pst-hsb = 2024
Provides:	tex(pst-hsb.sty) = 2024
Provides:	tex(pst-hsb.tex) = 2024
BuildArch:	noarch

%description
This is a PSTricks-related package. It can plot lines and/or
curves with continuous colours. Only colours defined in the hsb
model are supported.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/generic/pst-hsb/
%{_texmfdistdir}/tex/latex/pst-hsb/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10501 |21cr|texlive-pst-intersect-33210.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pst-intersect

Summary:	Compute intersections of arbitrary curves
Name:		texlive-pst-intersect
Version:	33210.0.4
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(pst-func.sty)
#Requires:	tex(pst-node.sty)
#Requires:	tex(pstricks.sty)
#Requires:	tex(pst-xkey.sty)
Provides:	tex-pst-intersect = 2024
Provides:	tex(pst-intersect.sty) = 2024
Provides:	tex(pst-intersect.tex) = 2024
BuildArch:	noarch

%description
The package computes the intersections between arbitrary
Postscript paths or Bezier curves, using the Bezier clipping
algorithm.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/dvips/pst-intersect/
%{_texmfdistdir}/tex/generic/pst-intersect/
%{_texmfdistdir}/tex/latex/pst-intersect/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10502 |21cr|texlive-pst-lsystem-49556-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pst-lsystem

Summary:	Create images based on a L-system
Name:		texlive-pst-lsystem
Version:	49556
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pst-lsystem.pro) = 2024
Provides:	tex(pst-lsystem.sty) = 2024
Provides:	tex(pst-lsystem.tex) = 2024
BuildArch:	noarch

%description
pst-lsystem is a PSTricks based package for creating images
based on a L-system. A L-system (Lindenmayer system) is a set
of rules which can be used to model the morphology of a variety
of organisms or fractals like the Kochflake or Hilbert curve.

%files
%doc %{_texmfdistdir}/doc/generic/pst-lsystem
%{_texmfdistdir}/dvips/pst-lsystem
%{_texmfdistdir}/tex/generic/pst-lsystem
%{_texmfdistdir}/tex/latex/pst-lsystem

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10503 |21cr|texlive-pstring-42857-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pstring

Summary:	Typeset sequences with justification pointers
Name:		texlive-pstring
Version:	42857
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pstring.sty) = 2024
BuildArch:	noarch

%description
This package lets you typeset justified sequences, also called
pointing strings. It's used for instance, in research papers
about Game Semantics to represent sequence of game moves with
their associated justification pointers. Depending on wether
using LaTeX or pdfLaTeX, the package uses PSTricks and pst-node
respectively pgf/TikZ.

%files
%doc %{_texmfdistdir}/doc/latex/pstring/
%{_texmfdistdir}/tex/latex/pstring/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10504 |21cr|texlive-pst-rputover-44724-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pst-rputover

Summary:	Place text over objects without obscuring background colors
Name:		texlive-pst-rputover
Version:	44724
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pst-rputover.sty) = 2024
Provides:	tex(pst-rputover.tex) = 2024
BuildArch:	noarch

%description
This is a PSTricks package which allows to place text over
objects without obscuring background colors.

%files
%doc %{_texmfdistdir}/doc/generic/pst-rputover/
%{_texmfdistdir}/tex/generic/pst-rputover/
%{_texmfdistdir}/tex/latex/pst-rputover/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10505 |21cr|texlive-pst-turtle-52261-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pst-turtle

Summary:	Commands for "turtle operations"
Name:		texlive-pst-turtle
Version:	52261
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pst-turtle.sty) = 2024
Provides:	tex(pst-turtle.tex) = 2024
BuildArch:	noarch

%description
This is a PSTricks related package for creating "Turtle"
graphics. It supports the commands forward, back, left, right,
penup, and pendown.

%files
%doc %{_texmfdistdir}/doc/generic/pst-turtle
%{_texmfdistdir}/dvips/pst-turtle
%{_texmfdistdir}/tex/generic/pst-turtle
%{_texmfdistdir}/tex/latex/pst-turtle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10506 |21cr|texlive-pst-venn-49316-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pst-venn

Summary:	A PSTricks package for drawing Venn sets
Name:		texlive-pst-venn
Version:	49316
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pst-venn.sty) = 2024
BuildArch:	noarch

%description
This is a PSTricks related package for drawing Venn diagrams
with three circles.

%files
%doc %{_texmfdistdir}/doc/generic/pst-venn
%{_texmfdistdir}/tex/latex/pst-venn

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10507 |21cr|texlive-ptex-base-64072-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ptex-base

Summary:	Plain TeX format for pTeX and e-pTeX
Name:		texlive-ptex-base
Version:	64072
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(ascii-jplain.tex) = 2024
Provides:	tex(eptex.ini) = 2024
Provides:	tex(kinsoku.tex) = 2024
Provides:	tex-ptex-base = 2024
Provides:	tex(ptex.ini) = 2024
Provides:	tex(ptex.tex) = 2024
BuildArch:	noarch

%description
The bundle contains plain TeX format for pTeX and e-pTeX.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/ptex/ptex-base/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10508 |21cr|texlive-ptex-fonts-64330-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ptex-fonts

Summary:	Fonts for use with pTeX
Name:		texlive-ptex-fonts
Version:	64330
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-ptex-fonts = 2024
BuildArch:	noarch

%description
The bundle contains fonts for use with pTeX and the documents
for the makejvf program. This is a redistribution derived from
the ptex-texmf distribution by ASCII MEDIA WORKS.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/source/ptex-fonts/
%{_texmfdistdir}/fonts/tfm/ptex-fonts/
%{_texmfdistdir}/fonts/vf/ptex-fonts/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10509 |21cr|texlive-ptex-manual-66182-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ptex-manual

Summary:	Japanese pTeX manual
Name:		texlive-ptex-manual
Version:	66182
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package contains the Japanese pTeX manual. Feedback is
welcome!

%files
%doc %{_texmfdistdir}/doc/ptex/ptex-manual

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10510 |21cr|texlive-ptolemaicastronomy-50810-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ptolemaicastronomy

Summary:	Diagrams of sphere models for variably strict conditionals (Lewis counterfactuals)
Name:		texlive-ptolemaicastronomy
Version:	50810
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ptolemaicastronomy.sty) = 2024
BuildArch:	noarch

%description
David K. Lewis (Counterfactuals, Blackwell 1973) introduced a
sphere semantics for counterfactual conditionals. He jokingly
referred to the diagrams depicting such sphere models as
Ptolemaic astronomy, hence the name of this package. The macros
provided in this package aid in the construction of sphere
model diagrams in the style of Lewis. The macros all make use
of TikZ.

%files
%doc %{_texmfdistdir}/doc/latex/ptolemaicastronomy
%{_texmfdistdir}/tex/latex/ptolemaicastronomy

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10511 |21cr|texlive-punk-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-punk
Version:	20190228
Release:	1
Summary:	Donald Knuth's punk font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/punk
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/punk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/punk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A response to the assertion in a lecture that "typography tends
to lag behind other stylistic changes by about 10 years". Knuth
felt it was (in 1988) time to design a replacement for his
designs of the 1970s, and came up with this font! The fonts are
distributed as Metafont source. The package offers LaTeX
support by Rohit Grover, from an original by Sebastian Rahtz,
which is slightly odd in claiming that the fonts are T1-
encoded. A (possibly) more rational support package is to be
found in punk-latex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/punk
%{_texmfdistdir}/fonts/tfm/public/punk
%doc %{_texmfdistdir}/doc/fonts/punk

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10512 |21cr|texlive-punknova-1.003-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24649
# category Package
# catalog-ctan /fonts/punknova
# catalog-date 2011-11-23 11:34:47 +0100
# catalog-license other-free
# catalog-version 1.003
Name:		texlive-punknova
Version:	1.003
Release:	8
Summary:	OpenType version of Knuth's Punk font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/punknova
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/punknova.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/punknova.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The font was generated from a MetaPost version of the sources
of the 'original' punk font. Knuth's original fonts generated
different shapes at random. This isn't actually possible in an
OpenType font; rather, the font contains several variants of
each glyph, and uses the OpenType randomize function to select
a variant for each invocation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/punknova/punknova-bold.otf
%{_texmfdistdir}/fonts/opentype/public/punknova/punknova-boldslanted.otf
%{_texmfdistdir}/fonts/opentype/public/punknova/punknova-regular.otf
%{_texmfdistdir}/fonts/opentype/public/punknova/punknova-slanted.otf
%doc %{_texmfdistdir}/doc/fonts/punknova/Makefile
%doc %{_texmfdistdir}/doc/fonts/punknova/NEWS
%doc %{_texmfdistdir}/doc/fonts/punknova/README
%doc %{_texmfdistdir}/doc/fonts/punknova/documentation/documentation-sources/sample.tex
%doc %{_texmfdistdir}/doc/fonts/punknova/documentation/sample.pdf
%doc %{_texmfdistdir}/doc/fonts/punknova/source/punkfont-bold.mp
%doc %{_texmfdistdir}/doc/fonts/punknova/source/punkfont-boldslanted.mp
%doc %{_texmfdistdir}/doc/fonts/punknova/source/punkfont-regular.mp
%doc %{_texmfdistdir}/doc/fonts/punknova/source/punkfont-slanted.mp
%doc %{_texmfdistdir}/doc/fonts/punknova/tools/build.py

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10513 |21cr|texlive-purifyeps-1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category Package
# catalog-ctan /support/purifyeps
# catalog-date 2012-05-07 16:41:43 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-purifyeps
Version:	1.1
Release:	11
Summary:	Make EPS work with both LaTeX/dvips and pdfLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/purifyeps
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/purifyeps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/purifyeps.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-purifyeps.bin = %{EVRD}

%description
While pdfLaTeX has a number of nice features, its primary
shortcoming relative to standard LaTeX+dvips is that it is
unable to read ordinary Encapsulated PostScript (EPS) files,
the most common graphics format in the LaTeX world. Purifyeps
converts EPS files into a 'purified' form that can be read by
both LaTeX+dvips and pdfLaTeX. The trick is that the standard
LaTeX2e graphics packages can parse MetaPost-produced EPS
directly. Hence, purifyeps need only convert an arbitrary EPS
file into the same stylized format that MetaPost outputs.


#-----------------------------------------------------------------------
%files
%{_bindir}/purifyeps
%{_texmfdistdir}/scripts/purifyeps/purifyeps
%doc %{_mandir}/man1/purifyeps.1*
%doc %{_texmfdistdir}/doc/man/man1/purifyeps.man1.pdf
%doc %{_texmfdistdir}/doc/support/purifyeps/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/purifyeps/purifyeps purifyeps
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10514 |21cr|texlive-puyotikz-57254-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname puyotikz

Summary:	Quickly typeset board states of Puyo Puyo games
Name:		texlive-puyotikz
Version:	57254
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(keyval.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-pythontex
#Requires:	tex(tikz.sty)
Provides:	tex(puyotikz.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package permits to quickly typeset board states of
Puyo Puyo games. It supports large and small boards with
arbitrary shape, hidden rows, current and next puyos, labels
and move planning markers. The package requires Python3 in
support of scripts driven by PythonTeX.

%files
%doc %{_texmfdistdir}/doc/latex/puyotikz
%{_texmfdistdir}/scripts/puyotikz
%{_texmfdistdir}/tex/latex/puyotikz

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10515 |21cr|texlive-pwebmac-63731-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pwebmac

Summary:	Consolidated WEB macros for DVI and PDF output
Name:		texlive-pwebmac
Version:	63731
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pwebmac.tex) = 2024
BuildArch:	noarch

%description
The original WEB system by Donald Knuth has the macros
webmac.tex that produce DVI output only; for historic reasons,
it will never be modified (apart from catastrophic errors). Han
The Thanh has modified these macros in his pdfwebmac.tex for
PDF output (only) with pdfTeX. Jonathan Kew's XeTeX has similar
macros xewebmac.tex by Khaled Hosny that modify webmac.tex for
PDF output; these macros can only be used with a specific "TeX
engine" each. The present pwebmac package integrates these
three WEB macro files similar to cwebmac.tex in Silvio Levy's
and Don Knuth's CWEB system, so pwebmac.tex can be used with
"plain TeX", pdfTeX, and XeTeX alike. Its initial application
is the production of PDF files for all major WEB programs for
"TeX and friends" as distributed in TeX Live. For this purpose,
the shell script makeall was whipped together; it provides
various commandline options and works around several "quirks"
in the WEB sources. WEB programmers who want to use pwebmac.tex
instead of the default webmac.tex in their programs have to
change the first line in the TeX file created by weave. From
there, all depends on the "TeX engine" you use.

%files
%doc %{_texmfdistdir}/doc/plain/pwebmac
%{_texmfdistdir}/tex/plain/pwebmac

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10516 |21cr|texlive-pxjodel-64072-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pxjodel

Summary:	Help change metrics of fonts from japanese-otf
Name:		texlive-pxjodel
Version:	64072
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pxjodel.sty) = 2024
BuildArch:	noarch

%description
This package changes the setup of the japanese-otf package so
that the TFMs for direct input are all replaced by new ones
with prefixed names; for exmaple, nmlminr-h will be replaced by
foo--nmlminr-h, where foo is a prefix specified by the user.
This function will assist users who want to use the
japanese-otf package together with tailored TFMs of Japanese
fonts. The "jodel" part of the package name stands for
"japanese-otf deluxe". Here "deluxe" is the name of
japanese-otf's option for employing multi-weight Japanese font
families. This option is probably the most likely reason for
using japanese-otf. So pxjodel is really about japanese-otf's
"deluxe" option, hence the name. It is not related to yodel
singing, although some sense of word-play is intended.

%files
%doc %{_texmfdistdir}/doc/latex/pxjodel
%{_texmfdistdir}/fonts/tfm/public/pxjodel
%{_texmfdistdir}/fonts/vf/public/pxjodel
%{_texmfdistdir}/tex/latex/pxjodel

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10517 |21cr|texlive-pxpic-65803-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pxpic

Summary:	Draw pixel pictures
Name:		texlive-pxpic
Version:	65803
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(expkv.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xcolor.sty)
Provides:	tex(pxpic.sty) = 2024
BuildArch:	noarch

%description
With pxpic you draw pictures pixel by pixel. It was inspired by
a lovely post by Paulo Cereda, among other things (most notably
a beautiful duck) showcasing the use of characters from the
Mario video games by Nintendo in LaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/pxpic
%{_texmfdistdir}/tex/latex/pxpic

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10518 |21cr|texlive-pxtatescale-28102022.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pxtatescale
Version:	28102022.0
Release:	1
Summary:	Patch to graphics driver for scaling in vertical direction of pTeX
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/jptex/latex/pxtatescale
License:	mit
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxtatescale.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxtatescale.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Patch for graphics driver 'dvipdfmx' to support correct scaling in vertical direction of Japanese pTeX/upTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pxtatescale
%doc %{_texmfdistdir}/doc/latex/pxtatescale

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10519 |21cr|texlive-pxtxalfa-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23682
# category Package
# catalog-ctan /fonts/pxtxalfa
# catalog-date 2021-10-21 14:32:14 +0200
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-pxtxalfa
Version:	2.0
Release:	1
Summary:	Virtual maths alphabets based on pxfonts and txfonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/pxtxalfa
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxtxalfa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxtxalfa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides virtual math alphabets based on pxfonts
and txfonts, with LaTeX support files and adjusted metrics. The
mathalfa package offers support for this collection.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/pxb-ds.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/pxr-ds.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/rtxmia.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/txb-cal.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/txb-frak.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/txb-of.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/txr-cal.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/txr-ds.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/txr-frak.tfm
%{_texmfdistdir}/fonts/tfm/public/pxtxalfa/txr-of.tfm
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/pxb-ds.vf
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/pxr-ds.vf
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/txb-cal.vf
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/txb-frak.vf
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/txb-of.vf
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/txr-cal.vf
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/txr-ds.vf
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/txr-frak.vf
%{_texmfdistdir}/fonts/vf/public/pxtxalfa/txr-of.vf
%{_texmfdistdir}/tex/latex/pxtxalfa/px-ds.sty
%{_texmfdistdir}/tex/latex/pxtxalfa/pxtx-cal.sty
%{_texmfdistdir}/tex/latex/pxtxalfa/pxtx-frak.sty
%{_texmfdistdir}/tex/latex/pxtxalfa/tx-of.sty
%{_texmfdistdir}/tex/latex/pxtxalfa/upx-ds.fd
%{_texmfdistdir}/tex/latex/pxtxalfa/utx-cal.fd
%{_texmfdistdir}/tex/latex/pxtxalfa/utx-of.fd
%{_texmfdistdir}/tex/latex/pxtxalfa/ot1tx-ds.fd
%{_texmfdistdir}/tex/latex/pxtxalfa/ot1tx-frak.fd
%{_texmfdistdir}/tex/latex/pxtxalfa/tx-ds.sty
%doc %{_texmfdistdir}/doc/fonts/pxtxalfa/README
%doc %{_texmfdistdir}/doc/fonts/pxtxalfa/pxtxalfa-doc.pdf
%doc %{_texmfdistdir}/doc/fonts/pxtxalfa/pxtxalfa-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10520 |21cr|texlive-pxufont-64072-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pxufont

Summary:	Emulate non-Unicode Japanese fonts using Unicode fonts
Name:		texlive-pxufont
Version:	64072
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pxufont-ruby.sty) = 2024
Provides:	tex(pxufont.sty) = 2024
BuildArch:	noarch

%description
The set of the Japanese logical fonts (JFMs) that are used as
standard fonts in pTeX and upTeX contains both Unicode JFMs and
non-Unicode JFMs. This bundle provides an alternative set of
non-Unicode JFMs that are tied to the virtual fonts (VFs) that
refer to the glyphs in the Unicode JFMs. Moreover it provides a
LaTeX package that redefines the NFSS settings of the Japanese
fonts of (u)pLaTeX so that the new set of non-Unicode JFMs will
be employed. As a whole, this bundle allows users to dispense
with the mapping setup on non-Unicode JFMs. Such a setup is
useful in particular when users want to use OpenType fonts
(such as Source Han Serif) that have a glyph encoding different
from Adobe-Japan1, because mapping setups from non-Unicode JFMs
to such physical fonts are difficult to prepare.

%files
%doc %{_texmfdistdir}/doc/latex/pxufont/
%{_texmfdistdir}/fonts/tfm/public/pxufont/
%{_texmfdistdir}/fonts/vf/public/pxufont/
%{_texmfdistdir}/tex/latex/pxufont/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10521 |21cr|texlive-pyluatex-65855-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyluatex

Summary:	Execute Python code on the fly in your LaTeX documents
Name:		texlive-pyluatex
Version:	65855
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pyluatex.sty) = 2024
BuildArch:	noarch

%description
PyLuaTeX allows you to execute Python code and to include the
resulting output in your LaTeX documents in a single
compilation run. LaTeX documents must be compiled with LuaLaTeX
for this to work. PyLuaTeX runs a Python InteractiveInterpreter
(actually several if you use different sessions) in the
background for on-the-fly code execution. Python code from your
LaTeX file is sent to the background interpreter through a TCP
socket. This approach allows your Python code to be executed
and the output to be integrated in your LaTeX file in a single
compilation run. No additional processing steps are needed. No
intermediate files have to be written. No placeholders have to
be inserted.

%files
%doc %{_texmfdistdir}/doc/lualatex/pyluatex
%{_texmfdistdir}/tex/lualatex/pyluatex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10522 |21cr|texlive-pythonhighlight-20170209-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pythonhighlight
Version:	20170209
Release:	1
Summary:	Highlighting of Python code
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/pythonhighlight
License:	Free license not otherwise listed
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/pythonhighlight.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/pythonhighlight.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Highlighting of Python code, based on the listings package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10523 |21cr|texlive-pythonimmediate-66461-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pythonimmediate

Summary:	Library to run Python code
Name:		texlive-pythonimmediate
Version:	66461
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(currfile.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-l3packages
Requires:	tex(precattl.sty)
Requires:	tex(saveenv.sty)
Provides:	tex(pythonimmediate.sty) = 2024
BuildArch:	noarch

%description
Just like PerlTeX or PyLuaTeX (and unlike PythonTeX or
lt3luabridge), this only requires a single run, and variables
are persistent throughout the run. Unlike PerlTeX or PyLuaTeX,
there is no restriction on compiler or script required to run
the code. There is also debugging functionalities TeX errors
results in Python traceback, and Python error results in TeX
traceback. Errors in code executed with the pycode environment
gives the correct traceback point to the Python line of code in
the TeX file. For advanced users, this package allows the user
to manipulate the TeX state directly from within Python, so you
don't need to write a single line of TeX code. CAUTION: In
addition to this LaTeX package you need the Python
pythonimmediate-tex package, which can be obtained from
https://pypi.org/project/pythonimmediate-tex/.

%files
%doc %{_texmfdistdir}/doc/latex/pythonimmediate
%{_texmfdistdir}/tex/latex/pythonimmediate

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10524 |21cr|texlive-pythontex-0.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pythontex
Version:	0.16
Release:	2
Summary:	Run Python from within a document, typesetting the results
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pythontex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pythontex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pythontex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pythontex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
# FIXME not really, only during update
Provides:	texlive-pythontex.bin
#Requires:	texlive-pythontex.bin

%description
The package allows you to enter Python code within a LaTeX
document, execute the code, and access its output in the
original document. Python code is only executed when it has
been modified, or when it meets user-specified criteria. Code
may be divided into user-defined sessions, which automatically
run in parallel. Errors and warnings are synchronized with the
LaTeX document, so that they refer to the document's line
numbers. External dependencies can be tracked, so that code is
re-executed when the data it depends on is modified. PythonTeX
also provides syntax highlighting for code in LaTeX documents
via the Pygments syntax highlighter. The package provides a
depythontex utility, that creates a copy of the document in
which all Python code has been replaced by its output. This is
useful for journal submissions, sharing documents, and
conversion to other formats.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/pythontex
%{_texmfdistdir}/tex/latex/pythontex
%doc %{_texmfdistdir}/doc/latex/pythontex
#- source
%doc %{_texmfdistdir}/source/latex/pythontex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10525 |21cr|texlive-qrbill-66301-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qrbill

Summary:	Create QR bills using LaTeX
Name:		texlive-qrbill
Version:	66301
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(iftex.sty)
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(numprint.sty)
#Requires:	tex(qrcode.sty)
#Requires:	tex(scrbase.sty)
Provides:	tex(epc.qrbill-cfg.tex) = 2024
Provides:	tex(qrbill.sty) = 2024
Provides:	tex(swiss.qrbill-cfg.tex) = 2024
BuildArch:	noarch

%description
This LaTeX package provides support for creating QR-bills for
the new Swiss payment standards. This open source
implementation is intended to offer a free option to support
these regulations and can be adapted for international use.
Packages loaded by qrbill are expl3, fontspec (except if one is
using a custom font setup), graphicx, scrbase, qrcode, iftex,
l3keys2e, and numprint.

%files
%doc %{_texmfdistdir}/doc/latex/qrbill
%{_texmfdistdir}/scripts/qrbill
%{_texmfdistdir}/tex/latex/qrbill

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10526 |21cr|texlive-qsharp-20180107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-qsharp
Version:	20180107
Release:	1
Summary:	Memoir-based class for formatting University of Auckland theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/qsharp
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/qsharp.doc.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/qsharp.source.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/qsharp.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides LATEX syntax highlighting for Q

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/qsharp
%{_texmfdistdir}/source/latex/qsharp 
%doc %{_texmfdistdir}/doc/latex/qsharp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10527 |21cr|texlive-qualitype-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qualitype

Summary:	The QualiType font collection
Name:		texlive-qualitype
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
These 45 fonts were created by QualiType. With the kind
permisison of John Colletti, these fonts have been released as
free and open-source.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/qualitype

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10528 |21cr|texlive-quantikz-54911-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname quantikz

Summary:	Draw quantum circuit diagrams
Name:		texlive-quantikz
Version:	54911
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibraryquantikz.code.tex) = 2024
BuildArch:	noarch

%description
The purpose of this package is to extend TikZ with the
functionality for drawing quantum circuit diagrams.

%files
%doc %{_texmfdistdir}/doc/latex/quantikz
%{_texmfdistdir}/tex/latex/quantikz

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10529 |21cr|texlive-quantumarticle-65242-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname quantumarticle

Summary:	Document class for submissions to the Quantum journal
Name:		texlive-quantumarticle
Version:	65242
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(quantumarticle.cls) = 2024
Provides:	tex(quantumview.cls) = 2024
BuildArch:	noarch

%description
This package provides the preferred document class for papers
to be submitted to "Quantum -- the open journal of quantum
science". It is based on the widely used article document class
and designed to allow a seamless transition from documents
typeset with the article, revtex4-1, and elsarticle document
classes. As a service to authors, the document class comes with
a predefined bibilography style quantum.bst that is optimized
to be used with the quantumarticle document class.
Additionally, the quantumview documentclass is provided, which
can be used as a proxy to typeset the HTML-only editorial
pieces in Quantum Views in a LaTeX editor. The quantumarticle
document class also offers an option to remove the
Quantum-related branding. In that way, users appreciating the
esthetics of this document class can use it for their notes as
well.

%files
%doc %{_texmfdistdir}/doc/latex/quantumarticle
%{_texmfdistdir}/bibtex/bst/quantumarticle
%{_texmfdistdir}/tex/latex/quantumarticle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10530 |21cr|texlive-quattrocento-64372-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname quattrocento

Summary:	LaTeX support for Quattrocento and Quattrocento Sans fonts
Name:		texlive-quattrocento
Version:	64372
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(textcomp.sty)
Provides:	tex(LY1Quattro-LF.fd) = 2024
Provides:	tex(LY1QuattroSans-LF.fd) = 2024
Provides:	tex(LY1QuattroSans-Sup.fd) = 2024
Provides:	tex(LY1Quattro-Sup.fd) = 2024
Provides:	tex(OT1Quattro-LF.fd) = 2024
Provides:	tex(OT1QuattroSans-LF.fd) = 2024
Provides:	tex(OT1QuattroSans-Sup.fd) = 2024
Provides:	tex(OT1Quattro-Sup.fd) = 2024
Provides:	tex(qcntr_3fwis5.enc) = 2024
Provides:	tex(qcntr_464xel.enc) = 2024
Provides:	tex(qcntr_4btof3.enc) = 2024
Provides:	tex(qcntr_564kqe.enc) = 2024
Provides:	tex(qcntr_6abmaa.enc) = 2024
Provides:	tex(qcntr_arxkdo.enc) = 2024
Provides:	tex(qcntr_bwr4r4.enc) = 2024
Provides:	tex(qcntr_cpzb4n.enc) = 2024
Provides:	tex(qcntr_dn5k7b.enc) = 2024
Provides:	tex(qcntr_ezrk6a.enc) = 2024
Provides:	tex(qcntr_iyhp72.enc) = 2024
Provides:	tex(qcntr_lten7n.enc) = 2024
Provides:	tex(qcntr_lzgh2n.enc) = 2024
Provides:	tex(qcntr_mamppr.enc) = 2024
Provides:	tex(qcntr_mizmmx.enc) = 2024
Provides:	tex(qcntr_mntdbg.enc) = 2024
Provides:	tex(qcntr_qwkegf.enc) = 2024
Provides:	tex(qcntr_rf6b27.enc) = 2024
Provides:	tex(qcntr_tldjzh.enc) = 2024
Provides:	tex(qcntr_vzn2dc.enc) = 2024
Provides:	tex(qcntr_wczi5x.enc) = 2024
Provides:	tex(qcntr_xvywtm.enc) = 2024
Provides:	tex(qcntr_y54nu7.enc) = 2024
Provides:	tex(qcntr_zievlx.enc) = 2024
Provides:	tex(qcntr_zq54sp.enc) = 2024
Provides:	tex-quattrocento = 2024
Provides:	tex(quattrocento.map) = 2024
Provides:	tex(quattrocento.sty) = 2024
Provides:	tex(T1Quattro-LF.fd) = 2024
Provides:	tex(T1QuattroSans-LF.fd) = 2024
Provides:	tex(T1QuattroSans-Sup.fd) = 2024
Provides:	tex(T1Quattro-Sup.fd) = 2024
Provides:	tex(TS1Quattro-LF.fd) = 2024
Provides:	tex(TS1QuattroSans-LF.fd) = 2024
BuildArch:	noarch

%description
The package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Quattrocento and Quattrocento Sans families of
fonts, designed by Pablo Impallari; the fonts themselves are
also provided, in both Type 1 and OpenType format. Quattrocento
is a classic typeface with wide and open letterforms, and great
x-height, which makes it very legible for body text at small
sizes. Tiny details that only show up at bigger sizes make it
also great for display use. Quattrocento Sans is the perfect
sans-serif companion for Quattrocento.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/quattrocento/
%{_texmfdistdir}/fonts/map/dvips/quattrocento/
%{_texmfdistdir}/fonts/tfm/impallari/quattrocento/
%{_texmfdistdir}/fonts/truetype/impallari/quattrocento/
%{_texmfdistdir}/fonts/type1/impallari/quattrocento/
%{_texmfdistdir}/fonts/vf/impallari/quattrocento/
%{_texmfdistdir}/tex/latex/quattrocento/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10531 |21cr|texlive-quicktype-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-quicktype
Version:	0.1
Release:	1
Summary:	Intended for the quick typesetting of basic documents using LaTeX 
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/quicktype
Group:		Publishing
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/quicktype.doc.tar.xz  
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/quicktype.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea  

%description 
Intended for the quick typesetting of basic documents using LaTeX
using shortcuts to existing commands and specific
commands for quick formatting.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/quicktype
%doc %{_texmfdistdir}/doc/latex/quicktype

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10532 |21cr|texlive-quiz2socrative-52276-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname quiz2socrative

Summary:	Prepare questions for socrative quizzes
Name:		texlive-quiz2socrative
Version:	52276
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(calc.sty)
#Requires:	tex(etoolbox.sty)
Requires:	tex(graphicx.sty)
Requires:	tex(ifthen.sty)
#Requires:	tex(listofitems.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(moresize.sty)
#Requires:	tex(pgfmath.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(quiz2socrative.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package for preparing multiple choice,
true/false, and short answer questions. Its main purpose is to
offer a tool to easily insert rather complicated mathematical
material in socrative quizzes (see https://socrative.com). The
package requires the following other LaTeX packages: calc,
etoolbox, graphicx, ifthen, listofitems, moresize, TikZ,
pgfmath, xcolor, and xparse.

%files
%doc %{_texmfdistdir}/doc/latex/quiz2socrative
%{_texmfdistdir}/tex/latex/quiz2socrative

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10533 |21cr|texlive-quran-1.81-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-quran	
Version:		1.81
Release:		1
Summary:		An easy way to typeset any part of The Holy Quran
Group:		Publishing
URL:		https://ctan.org/pkg/quran
License:		The LATEX Project Public License 1.3c
Source0:		https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/quran.tar.xz
Source1:		https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/quran.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is prepared for typesetting the holy Quran. 
This work provides several macros for typesetting the whole or 
any parts of the holy Quran based on its popular divisions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10534 |21cr|texlive-quran-bn-57602-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname quran-bn

Summary:	Bengali translations to the quran package
Name:		texlive-quran-bn
Version:	57602
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(biditools.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(quran.sty)
#Requires:	tex(xstring.sty)
Provides:	tex(quran-bn.sty) = 2024
Provides:	tex(qurantext-bnii.translation.def) = 2024
Provides:	tex(qurantext-bni.translation.def) = 2024
BuildArch:	noarch

%description
The package is prepared for typesetting some Bengali
translations of the Holy Quran. It adds two Bengali
translations to the quran package.

%files
%doc %{_texmfdistdir}/doc/latex/quran-bn
%{_texmfdistdir}/tex/latex/quran-bn

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10535 |21cr|texlive-quran-de-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-quran-de
Version:	0.2
Release:	1
Summary:	German translations to the quran package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/quran-de
License:	lppl1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/quran-de.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/quran-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The package is prepared for typesetting some German
translations of the Holy Quran. It adds three more German
translations to the quran package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10536 |21cr|texlive-quran-ur-57597-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname quran-ur

Summary:	Urdu translations to the quran package
Name:		texlive-quran-ur
Version:	57597
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(qurantext-uriii.translation.def) = 2024
Provides:	tex(qurantext-urii.translation.def) = 2024
Provides:	tex(qurantext-uri.translation.def) = 2024
Provides:	tex(qurantext-uriv.translation.def) = 2024
Provides:	tex(qurantext-urviii.translation.def) = 2024
Provides:	tex(qurantext-urvii.translation.def) = 2024
Provides:	tex(qurantext-urvi.translation.def) = 2024
Provides:	tex(qurantext-urv.translation.def) = 2024
Provides:	tex(quran-ur.sty) = 2024
BuildArch:	noarch

%description
The package is prepared for typesetting some Urdu translations
of the Holy Quran. It adds eight Urdu translations to the quran
package.

%files
%doc %{_texmfdistdir}/doc/latex/quran-ur
%{_texmfdistdir}/tex/latex/quran-ur

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10537 |21cr|texlive-qyxf-book-56319-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qyxf-book

Summary:	Book Template for Qian Yuan Xue Fu
Name:		texlive-qyxf-book
Version:	56319
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(qyxf-book.cls) = 2024
BuildArch:	noarch

%description
qyxf-book is a LaTeX document class (template) developed by
Qian Yuan Xue Fu (QYXF), a student club of Xi'an Jiaotong
University (XJTU). Up to now, this template has been applied to
academic counselling material ("course helpers") written by
members of QYXF, including Solutions to University Physics:
https://qyxf.site/latest/Da Wu Ti Jie (Shang ).pdf Notes on
Computing Methods: https://qyxf.site/latest/Ji Suan Fang Fa Xie
Ying -v1.1.pdf Guide to Computer Programming:
https://qyxf.site/latest/Ji Suan Ji She Ji Cheng Xu Zhi Nan
.pdf Features of the template: Minimalistic document style, as
preferred for "course helpers". Several color schemes are
offered, and it is easy to customize your own scheme. Simple
interfaces for users to customize the style of preface, main
part and so on. Currently the template is only designed for
Chinese typesetting.

%files
%doc %{_texmfdistdir}/doc/latex/qyxf-book
%{_texmfdistdir}/tex/latex/qyxf-book

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10538 |21cr|texlive-ragged2e-66152-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ragged2e

Summary:	Alternative versions of "ragged"-type commands
Name:		texlive-ragged2e
Version:	66152
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ragged2e.sty) = 2024
BuildArch:	noarch

%description
The package defines new commands \Centering, \RaggedLeft, and
\RaggedRight and new environments Center, FlushLeft, and
FlushRight, which set ragged text and are easily configurable
to allow hyphenation (the corresponding commands in LaTeX, all
of whose names are lower-case, prevent hyphenation altogether).

%files
%doc %{_texmfdistdir}/doc/latex/ragged2e
%{_texmfdistdir}/tex/latex/ragged2e

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10539 |21cr|texlive-raleway-42629-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname raleway

Summary:	Use Raleway with TeX(-alike) systems
Name:		texlive-raleway
Version:	42629
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(a_2bcjq6.enc) = 2024
Provides:	tex(a_biciir.enc) = 2024
Provides:	tex(a_bzmckq.enc) = 2024
Provides:	tex(a_f3uqdf.enc) = 2024
Provides:	tex(a_gvxmk7.enc) = 2024
Provides:	tex(a_ioname.enc) = 2024
Provides:	tex(a_k2dfwc.enc) = 2024
Provides:	tex(a_mgzrni.enc) = 2024
Provides:	tex(a_mzuigi.enc) = 2024
Provides:	tex(a_oaf34p.enc) = 2024
Provides:	tex(a_pcwse4.enc) = 2024
Provides:	tex(a_sor5xn.enc) = 2024
Provides:	tex(a_u6n666.enc) = 2024
Provides:	tex(a_yqxcf3.enc) = 2024
Provides:	tex(LY1Raleway-TLF.fd) = 2024
Provides:	tex(LY1Raleway-TOsF.fd) = 2024
Provides:	tex(OT1Raleway-TLF.fd) = 2024
Provides:	tex(OT1Raleway-TOsF.fd) = 2024
Provides:	tex-raleway = 2024
Provides:	tex(Raleway-Black-Italic.otf) = 2024
Provides:	tex(Raleway-BlackItalic.pfb) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-BlackItalic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Black.otf) = 2024
Provides:	tex(Raleway-Black.pfb) = 2024
Provides:	tex(Raleway-Black-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-Black-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Black-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Black-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Black-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-t1.vf) = 2024
Provides:	tex(Raleway-Black-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-Black-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-Black-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-Black-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Black-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Black-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Black-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-t1.vf) = 2024
Provides:	tex(Raleway-Black-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-Black-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Bold-Italic.otf) = 2024
Provides:	tex(Raleway-BoldItalic.pfb) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-BoldItalic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Bold.otf) = 2024
Provides:	tex(Raleway-Bold.pfb) = 2024
Provides:	tex(Raleway-Bold-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-Bold-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Bold-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-t1.vf) = 2024
Provides:	tex(Raleway-Bold-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-Bold-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-Bold-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-Bold-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Bold-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-t1.vf) = 2024
Provides:	tex(Raleway-Bold-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-Bold-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-Italic.otf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic.pfb) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-ExtraBoldItalic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-ExtraBold.otf) = 2024
Provides:	tex(Raleway-ExtraBold.pfb) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-t1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-t1.vf) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-ExtraBold-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-Italic.otf) = 2024
Provides:	tex(Raleway-ExtraLightItalic.pfb) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-ExtraLightItalic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-ExtraLight.otf) = 2024
Provides:	tex(Raleway-ExtraLight.pfb) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-t1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-t1.vf) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-ExtraLight-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Italic.pfb) = 2024
Provides:	tex(Raleway-Italic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-Italic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Italic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-Italic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-Italic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-Italic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-Italic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Italic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-Italic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-Italic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Light-Italic.otf) = 2024
Provides:	tex(Raleway-LightItalic.pfb) = 2024
Provides:	tex(Raleway-LightItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-LightItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-LightItalic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Light.otf) = 2024
Provides:	tex(Raleway-Light.pfb) = 2024
Provides:	tex(Raleway-Light-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-Light-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Light-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Light-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Light-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-t1.vf) = 2024
Provides:	tex(Raleway-Light-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-Light-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-Light-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-Light-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Light-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Light-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Light-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-t1.vf) = 2024
Provides:	tex(Raleway-Light-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-Light-tosf-ts1.vf) = 2024
Provides:	tex(Raleway.map) = 2024
Provides:	tex(Raleway-Medium-Italic.otf) = 2024
Provides:	tex(Raleway-MediumItalic.pfb) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-MediumItalic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Medium.otf) = 2024
Provides:	tex(Raleway-Medium.pfb) = 2024
Provides:	tex(Raleway-Medium-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-Medium-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Medium-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-t1.vf) = 2024
Provides:	tex(Raleway-Medium-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-Medium-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-Medium-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-Medium-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Medium-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-t1.vf) = 2024
Provides:	tex(Raleway-Medium-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-Medium-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Regular-Italic.otf) = 2024
Provides:	tex(Raleway-Regular.otf) = 2024
Provides:	tex(Raleway-Regular.pfb) = 2024
Provides:	tex(Raleway-Regular-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-Regular-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Regular-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-t1.vf) = 2024
Provides:	tex(Raleway-Regular-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-Regular-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-Regular-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-Regular-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Regular-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-t1.vf) = 2024
Provides:	tex(Raleway-Regular-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-Regular-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-SemiBold-Italic.otf) = 2024
Provides:	tex(Raleway-SemiBoldItalic.pfb) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-SemiBoldItalic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-SemiBold.otf) = 2024
Provides:	tex(Raleway-SemiBold.pfb) = 2024
Provides:	tex(Raleway-SemiBold-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-t1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-t1.vf) = 2024
Provides:	tex(Raleway-SemiBold-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-SemiBold-tosf-ts1.vf) = 2024
Provides:	tex(raleway.sty) = 2024
Provides:	tex(Raleway.sty) = 2024
Provides:	tex(Raleway-Thin-Italic.otf) = 2024
Provides:	tex(Raleway-ThinItalic.pfb) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-t1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-t1.vf) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-ThinItalic-tosf-ts1.vf) = 2024
Provides:	tex(Raleway-Thin.otf) = 2024
Provides:	tex(Raleway-Thin.pfb) = 2024
Provides:	tex(Raleway-Thin-tlf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-ly1.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-ly1.vf) = 2024
Provides:	tex(Raleway-Thin-tlf-ot1.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Thin-tlf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-t1.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-t1.vf) = 2024
Provides:	tex(Raleway-Thin-tlf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-ts1.tfm) = 2024
Provides:	tex(Raleway-Thin-tlf-ts1.vf) = 2024
Provides:	tex(Raleway-Thin-tosf-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-ly1.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-ly1.vf) = 2024
Provides:	tex(Raleway-Thin-tosf-ot1.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-ly1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-ly1.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-ly1.vf) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-ot1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-ot1.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-ot1.vf) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-t1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-t1.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-sc-t1.vf) = 2024
Provides:	tex(Raleway-Thin-tosf-t1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-t1.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-t1.vf) = 2024
Provides:	tex(Raleway-Thin-tosf-ts1--base.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-ts1.tfm) = 2024
Provides:	tex(Raleway-Thin-tosf-ts1.vf) = 2024
Provides:	tex(raleway-type1-autoinst.sty) = 2024
Provides:	tex(T1Raleway-TLF.fd) = 2024
Provides:	tex(T1Raleway-TOsF.fd) = 2024
Provides:	tex(TS1Raleway-TLF.fd) = 2024
Provides:	tex(TS1Raleway-TOsF.fd) = 2024
BuildArch:	noarch

%description
The package provides the Raleway family in an easy to use way.
For XeLaTeX and LuaLaTeX users the original OpenType fonts are
used. The entire font family is included.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/raleway/
%{_texmfdistdir}/fonts/map/dvips/raleway/
%{_texmfdistdir}/fonts/opentype/impallari/raleway/
%{_texmfdistdir}/fonts/tfm/impallari/raleway/
%{_texmfdistdir}/fonts/type1/impallari/raleway/
%{_texmfdistdir}/fonts/vf/impallari/raleway/
%{_texmfdistdir}/tex/latex/raleway/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10540 |21cr|texlive-random-54723-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname random

Summary:	Generating "random" numbers in TeX
Name:		texlive-random
Version:	54723
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(random.tex) = 2024
BuildArch:	noarch

%description
Generates pseudo-random integers in the range 1 to 2^{31}.
Macros are to provide random integers in a given range, or
random dimensions which can be used to provide random `real'
numbers, are also available.

%files
%doc %{_texmfdistdir}/doc/generic/random
%{_texmfdistdir}/tex/generic/random

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10541 |21cr|texlive-randomlist-20221027-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-randomlist
Version:	20221027
Release:	1
Summary:	Deal with database, loop, and random in order to build personalized exercises
Group:		Publishing
URL:		https://ctan.org/pkg/randomlist
License:	LPPL 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randomlist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randomlist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randomlist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The main aim of package randomlist is to work on list, especially with
random operation. The hidden aim is to build personnal collection of
exercices with different data for each pupils.

In order to build such exercices, some features about databases and
about loops are necessary.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/randomlist/*
%doc %{_texmfdistdir}/doc/generic/randomlist/*
#- source
%doc %{_texmfdistdir}/source/generic/randomlist/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10542 |21cr|texlive-rank-2-roots-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-rank-2-roots
Version:	1.0
Release:	1
Summary:	Draw (mathematical) rank 2 root systems
Group:		Publishing
URL:		https://ctan.org/pkg/rank-2-roots
License:	The LATEX Project Public License
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/rank-2-roots.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/rank-2-roots.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package concerns mathematical drawings arising in representation theory. 
The purpose of this package is to ease drawing of rank 2 root systems, 
with Weyl chambers, weight lattices, and parabolic subgroups.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10543 |21cr|texlive-rbt-mathnotes-61193-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rbt-mathnotes

Summary:	Rebecca Turner's personal macros and styles for typesetting mathematics notes
Name:		texlive-rbt-mathnotes
Version:	61193
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(rbt-mathnotes.cls) = 2024
Provides:	tex(rbt-mathnotes-formula-sheet.cls) = 2024
Provides:	tex(rbt-mathnotes-hw.cls) = 2024
Provides:	tex(rbt-mathnotes-messages.sty) = 2024
Provides:	tex(rbt-mathnotes.sty) = 2024
Provides:	tex(rbt-mathnotes-util.sty) = 2024
BuildArch:	noarch

%description
Styles for typesetting mathematics notes. Includes document
classes for typesetting homework assignments and "formula cheat
sheets" for exams. Several examples are included, along with
rendered PDFs.

%files
%doc %{_texmfdistdir}/doc/latex/rbt-mathnotes
%{_texmfdistdir}/tex/latex/rbt-mathnotes

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10544 |21cr|texlive-readablecv-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname readablecv

Summary:	A highly readable and good looking CV and letter class
Name:		texlive-readablecv
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ReadableCV.cls) = 2024
BuildArch:	noarch

%description
This class provides, what I have found, to be an extremely
attractive and highly readable CV which will lead to your CV
being read rather than disgarded.

%files
%doc %{_texmfdistdir}/doc/latex/readablecv
%{_texmfdistdir}/tex/latex/readablecv

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10545 |21cr|texlive-realhats-63595-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname realhats

Summary:	Put real hats on symbols instead of ^
Name:		texlive-realhats
Version:	63595
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsmath.sty)
#Requires:	tex(calc.sty)
Requires:	tex(graphicx.sty)
Requires:	tex(ifthen.sty)
#Requires:	tex(lcg.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(stackengine.sty)
Provides:	tex(realhats.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package makes \hat put real hats on symbols. The
package depends on amsmath, calc, graphicx, ifthen, lcg, and
stackengine.

%files
%doc %{_texmfdistdir}/doc/latex/realhats
%{_texmfdistdir}/tex/latex/realhats

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10546 |21cr|texlive-realtranspose-56623-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname realtranspose

Summary:	The "real" way to transpose a Matrix
Name:		texlive-realtranspose
Version:	56623
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(realtranspose.sty) = 2024
BuildArch:	noarch

%description
With realtranspose you can notate the transposition of a matrix
by rotating the symbols 90 degrees. This is a hommage to the
realhats package.

%files
%doc %{_texmfdistdir}/doc/latex/realtranspose
%{_texmfdistdir}/tex/latex/realtranspose

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10547 |21cr|texlive-recipebook-37026.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname recipebook

Summary:	Typeset 5.5" x 8" recipes for browsing or printing
Name:		texlive-recipebook
Version:	37026.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsfonts.sty)
#Requires:	tex(amsmath.sty)
#Requires:	tex(amssymb.sty)
#Requires:	tex(anyfontsize.sty)
#Requires:	tex(booktabs.sty)
#Requires:	tex(calc.sty)
#Requires:	tex(datetime.sty)
#Requires:	tex(environ.sty)
#Requires:	tex(eso-pic.sty)
#Requires:	tex(fancyhdr.sty)
Requires:	tex(fontenc.sty)
Requires:	tex(gensymb.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(hyperref.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(multicol.sty)
#Requires:	tex(multirow.sty)
#Requires:	tex(nicefrac.sty)
#Requires:	tex(parskip.sty)
Requires:	tex(picture.sty)
Requires:	tex(ragged2e.sty)
#Requires:	tex(scrextend.sty)
#Requires:	tex(tabularx.sty)
#Requires:	tex(tcolorbox.sty)
#Requires:	tex(tgtermes.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(tocloft.sty)
#Requires:	tex(wrapfig.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xparse.sty)
Provides:	tex-recipebook = 2024
Provides:	tex(RecipeBook.cls) = 2024
BuildArch:	noarch

%description
This is a LaTeX2e class for typesetting recipes. It is designed
for typesetting one or two recipes per page, with dimensions of
5.5" x 8.5". The hyperlinked table of contents (ToC) and page
numbers make browsing recipes convenient, and the pages can be
joined together or printed two per sheet to normal letterpaper
easily. The size was chosen to work in half-page 3-ring binder
cover sheets.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/recipebook/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10548 |21cr|texlive-recorder-fingering-66008-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname recorder-fingering

Summary:	Package to display recorder fingering diagrams
Name:		texlive-recorder-fingering
Version:	66008
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(recorder-fingering.sty) = 2024
BuildArch:	noarch

%description
This package provides support for generating and displaying
fingering diagrams for baroque fingering recorders. Standard
fingerings are provided for recorders in both C and F, along
with methods to create and display alternate fingerings for
trills, etc.

%files
%doc %{_texmfdistdir}/doc/latex/recorder-fingering
%{_texmfdistdir}/tex/latex/recorder-fingering

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10549 |21cr|texlive-rec-thy-3.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27225
# category Package
# catalog-ctan /macros/latex/contrib/rec-thy
# catalog-date 2012-06-21 10:44:34 +0200
# catalog-license pd
# catalog-version 1.3
Name:		texlive-rec-thy
Version:	3.01
Release:	1
Summary:	Commands to typeset recursion theory papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rec-thy
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rec-thy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rec-thy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides many macros to express standard notation
in recursion theory (otherwise known as computability theory).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rec-thy/rec-thy.sty
%doc %{_texmfdistdir}/doc/latex/rec-thy/README
%doc %{_texmfdistdir}/doc/latex/rec-thy/rec-thy.pdf
%doc %{_texmfdistdir}/doc/latex/rec-thy/rec-thy.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10550 |21cr|texlive-recycle-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-recycle
Version:	20190228
Release:	1
Summary:	A font providing the "recyclable" logo
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/recycle
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/recycle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/recycle.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This single-character font is provided as MetaFont source, and
in Adobe Type 1 format. It is accompanied by a trivial LaTeX
package to use the logo at various sizes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/recycle
%{_texmfdistdir}/fonts/source/public/recycle
%{_texmfdistdir}/fonts/tfm/public/recycle
%{_texmfdistdir}/fonts/type1/public/recycle
%{_texmfdistdir}/tex/latex/recycle
%doc %{_texmfdistdir}/doc/fonts/recycle

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10551 |21cr|texlive-refcount-53164-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname refcount

Summary:	Counter operations with label references
Name:		texlive-refcount
Version:	53164
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(refcount.sty) = 2024
BuildArch:	noarch

%description
Provides commands \setcounterref and \addtocounterref which use
the section (or whatever) number from the reference as the
value to put into the counter, as in: ...\label{sec:foo} ...
\setcounterref{foonum}{sec:foo} Commands \setcounterpageref and
\addtocounterpageref do the corresponding thing with the page
reference of the label. No .ins file is distributed; process
the .dtx with plain TeX to create one.

%files
%doc %{_texmfdistdir}/doc/latex/refcount
%{_texmfdistdir}/tex/latex/refcount

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10552 |21cr|texlive-reledmac-2.39-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-reledmac
Version:	2.39
Release:	1
Summary:	Typeset scholarly editions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/reledmac
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reledmac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reledmac.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reledmac.source.tar.xz
BuildRequires: texlive-tlpkg
BuildArch:	noarch

%description
A package for typesetting scholarly critical editions, 
replacing the established ledmac and eledmac packages.
Ledmac itself was a LATEX port of the plain TEX EDMAC macros.

The package supports indexing by page and by line numbers, 
and simple tabular- and array-style environments.

The package is distributed with the related reledpar package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/reledmac

%doc %{_texmfdistdir}/doc/latex/reledmac
#- source
%doc %{_texmfdistdir}/source/latex/reledmac


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10553 |21cr|texlive-repltext-56433-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname repltext

Summary:	Control how text gets copied from a PDF file
Name:		texlive-repltext
Version:	56433
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(graphicx.sty)
#Requires:	tex(ifpdf.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-repltext = 2024
Provides:	tex(repltext.sty) = 2024
BuildArch:	noarch

%description
The repltext package exposes to LaTeX a relatively obscure PDF
feature: replacement text. When replacement text is specified
for a piece of text, it is the replacement text, not the
typeset text that is copied and pasted.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/repltext/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10554 |21cr|texlive-rerunfilecheck-63869-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rerunfilecheck

Summary:	Checksum based rerun checks on auxiliary files
Name:		texlive-rerunfilecheck
Version:	63869
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-atveryend
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-uniquecounter
Provides:	tex(rerunfilecheck.sty) = 2024
BuildArch:	noarch

%description
The package provides additional rerun warnings if some
auxiliary files have changed. It is based on MD5 checksum,
provided by pdfTeX, LuaTeX, XeTeX.

%files
%doc %{_texmfdistdir}/doc/latex/rerunfilecheck
%{_texmfdistdir}/tex/latex/rerunfilecheck

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10555 |21cr|texlive-rescansync-63856-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rescansync

Summary:	Re-scan tokens with synctex information
Name:		texlive-rescansync
Version:	63856
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(rescansync.sty) = 2024
BuildArch:	noarch

%description
Allow users to execute saved code to typeset text while
preserving SyncTeX information.

%files
%doc %{_texmfdistdir}/doc/latex/rescansync
%{_texmfdistdir}/tex/latex/rescansync

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10556 |21cr|texlive-resmes-65375-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname resmes

Summary:	Measure restriction symbol in LaTeX
Name:		texlive-resmes
Version:	65375
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(resmes.sty) = 2024
BuildArch:	noarch

%description
This package provides a simple macro \resmes that prints the
measure restriction symbol.

%files
%doc %{_texmfdistdir}/doc/latex/resmes
%{_texmfdistdir}/tex/latex/resmes

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10557 |21cr|texlive-resolsysteme-66192-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname resolsysteme

Summary:	Work on linear systems using xint or pyluatex
Name:		texlive-resolsysteme
Version:	66192
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ResolSysteme.sty) = 2024
BuildArch:	noarch

%description
This package provides some commands (in French) to perform
calculations on small (2x2 or 3x3 or 4x4) linear systems, with
xint or pyluatex: \DetMatrice or \DetMatricePY to diplay the
determinant of a matrix (with formatting options);
\MatriceInverse or \MatriceInversePY to display the invers of a
matrix (with formatting options) ; \SolutionSysteme or
\SolutionSystemePY to display the solution of a linear system
(with formatting options); ...

%files
%doc %{_texmfdistdir}/doc/latex/resolsysteme
%{_texmfdistdir}/tex/latex/resolsysteme

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10558 |21cr|texlive-rest-api-57068-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rest-api

Summary:	Describing a rest api
Name:		texlive-rest-api
Version:	57068
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(rest-api.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides macros to describe rest apis for
documentation purposes. The endpoints can hold the following
information: method description path parameter request body and
content type response body, content type and status code

%files
%doc %{_texmfdistdir}/doc/latex/rest-api
%{_texmfdistdir}/tex/latex/rest-api

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10559 |21cr|texlive-resumemac-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/resumemac
# catalog-date 2008-11-21 01:34:08 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-resumemac
Version:	20190228
Release:	1
Summary:	Plain TeX macros for resumes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/resumemac
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/resumemac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/resumemac.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of macros is provided, together with an file that offers
an example of use.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/resumemac/resumemac.tex
%doc %{_texmfdistdir}/doc/plain/resumemac/README
%doc %{_texmfdistdir}/doc/plain/resumemac/sample_resume.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10560 |21cr|texlive-returntogrid-48485-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname returntogrid

Summary:	Semi-automatic grid typesetting
Name:		texlive-returntogrid
Version:	48485
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(returntogrid.sty) = 2024
BuildArch:	noarch

%description
returntogrid offers a few commands to get something like an
simple, semi-automatic grid typesetting. It does more or less
what the existing gridset package does. The main differences to
gridset are that returntogrid works also with LuaLaTeX and that
it has also a command to do some horizontal movements to get to
"tab" positions.

%files
%doc %{_texmfdistdir}/doc/latex/returntogrid
%{_texmfdistdir}/tex/latex/returntogrid

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10561 |21cr|texlive-revquantum-0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-revquantum
Version:	0.11
Release:	1
Summary:	Solve standard problems with writing quantum information papers in {revtex4-1}
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/revquantum
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/revquantum.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/revquantum.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/revquantum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a number of useful hacks to solve common annoyances
with the revtex4-1 package, and to define notation in common use within
quantum information. In doing so, it imports and configures a number of
commonly-available and used packages, and where reasonable, provides fallbacks.
It also warns when users try to load packages which are known to be incompatible
with revtex4-1. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10562 |21cr|texlive-revtex4-1-56590-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname revtex4-1

Summary:	Styles for various Physics Journals
Name:		texlive-revtex4-1
Version:	56590
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(revsymb4-1.sty) = 2024
Provides:	tex(revtex4-1.cls) = 2024
BuildArch:	noarch

%description
This is an old version of revtex, and is kept as a courtesy to
users having difficulty with the incompatibility of that latest
version.

%files
%doc %{_texmfdistdir}/doc/latex/revtex4-1
%{_texmfdistdir}/bibtex/bst/revtex4-1
%{_texmfdistdir}/tex/latex/revtex4-1

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10563 |21cr|texlive-rgltxdoc-53858-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rgltxdoc

Summary:	Common code for documentation of the author's packages
Name:		texlive-rgltxdoc
Version:	53858
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(rgltxdoc.sty) = 2024
BuildArch:	noarch

%description
This package combines several other packages and defines
additional macros and environments for documenting LaTeX code.
The package mainly serves the purpose of combining the
preferences used in the author's own package documentations.
However, others can use the package as well. Compatibility
between versions cannot be guaranteed, however.

%files
%doc %{_texmfdistdir}/doc/latex/rgltxdoc
%{_texmfdistdir}/tex/latex/rgltxdoc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10564 |21cr|texlive-ribbonproofs-1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31137
# category Package
# catalog-ctan /macros/latex/contrib/ribbonproofs
# catalog-date 2013-07-08 10:43:32 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-ribbonproofs
Version:	1.0
Release:	11
Summary:	Drawing ribbon proofs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ribbonproofs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ribbonproofs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ribbonproofs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a way to draw "ribbon proofs" in LaTeX. A
ribbon proof is a diagrammatic representation of a mathematical
proof that a computer program meets its specification. These
diagrams are more human-readable, more scalable, and more
easily modified than the corresponding textual proofs.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ribbonproofs/ribbonproofs.sty
%doc %{_texmfdistdir}/doc/latex/ribbonproofs/README
%doc %{_texmfdistdir}/doc/latex/ribbonproofs/ribbonproofsmanual.pdf
%doc %{_texmfdistdir}/doc/latex/ribbonproofs/ribbonproofsmanual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10565 |21cr|texlive-rmathbr-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-rmathbr
Version:	1.1.1
Release:	1
Summary:	Repeating of math operator at the broken line and the new line in inline equations
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/rmathbr
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/rmathbr.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/rmathbr.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/rmathbr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Repeating of math operator at the broken line and the new line
in inline equations (common in Cyrillic mathematical typography).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10566 |21cr|texlive-robotarm-63116-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname robotarm

Summary:	TikZ powered LaTeX package to draw parameterized 2D robot arms
Name:		texlive-robotarm
Version:	63116
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(robotarm.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package uses TikZ to draw parameterized 2D robot
arms, for example to be used in educational material.

%files
%doc %{_texmfdistdir}/doc/latex/robotarm
%{_texmfdistdir}/tex/latex/robotarm

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10567 |21cr|texlive-roboto-64350-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname roboto

Summary:	Support for the Roboto family of fonts
Name:		texlive-roboto
Version:	64350
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(LGRRoboto-LF.fd) = 2024
Provides:	tex(LGRRobotoMono-TLF.fd) = 2024
Provides:	tex(LGRRoboto-OsF.fd) = 2024
Provides:	tex(LGRRobotoSerif-LF.fd) = 2024
Provides:	tex(LGRRobotoSerif-OsF.fd) = 2024
Provides:	tex(LGRRobotoSerif-Sup.fd) = 2024
Provides:	tex(LGRRobotoSerif-TLF.fd) = 2024
Provides:	tex(LGRRobotoSerif-TOsF.fd) = 2024
Provides:	tex(LGRRobotoSlab-TLF.fd) = 2024
Provides:	tex(LGRRoboto-TLF.fd) = 2024
Provides:	tex(LGRRoboto-TOsF.fd) = 2024
Provides:	tex(LY1Roboto-LF.fd) = 2024
Provides:	tex(LY1RobotoMono-TLF.fd) = 2024
Provides:	tex(LY1Roboto-OsF.fd) = 2024
Provides:	tex(LY1RobotoSerif-LF.fd) = 2024
Provides:	tex(LY1RobotoSerif-OsF.fd) = 2024
Provides:	tex(LY1RobotoSerif-Sup.fd) = 2024
Provides:	tex(LY1RobotoSerif-TLF.fd) = 2024
Provides:	tex(LY1RobotoSerif-TOsF.fd) = 2024
Provides:	tex(LY1RobotoSlab-TLF.fd) = 2024
Provides:	tex(LY1Roboto-TLF.fd) = 2024
Provides:	tex(LY1Roboto-TOsF.fd) = 2024
Provides:	tex(OT1Roboto-LF.fd) = 2024
Provides:	tex(OT1RobotoMono-TLF.fd) = 2024
Provides:	tex(OT1Roboto-OsF.fd) = 2024
Provides:	tex(OT1RobotoSerif-LF.fd) = 2024
Provides:	tex(OT1RobotoSerif-OsF.fd) = 2024
Provides:	tex(OT1RobotoSerif-Sup.fd) = 2024
Provides:	tex(OT1RobotoSerif-TLF.fd) = 2024
Provides:	tex(OT1RobotoSerif-TOsF.fd) = 2024
Provides:	tex(OT1RobotoSlab-TLF.fd) = 2024
Provides:	tex(OT1Roboto-TLF.fd) = 2024
Provides:	tex(OT1Roboto-TOsF.fd) = 2024
Provides:	tex(rbto_2cs4gp.enc) = 2024
Provides:	tex(rbto_2uubtm.enc) = 2024
Provides:	tex(rbto_2ylw52.enc) = 2024
Provides:	tex(rbto_33jnad.enc) = 2024
Provides:	tex(rbto_35j2t6.enc) = 2024
Provides:	tex(rbto_4jpen6.enc) = 2024
Provides:	tex(rbto_5au2tj.enc) = 2024
Provides:	tex(rbto_5wuobl.enc) = 2024
Provides:	tex(rbto_5xgh2b.enc) = 2024
Provides:	tex(rbto_6i2fao.enc) = 2024
Provides:	tex(rbto_6rxeh6.enc) = 2024
Provides:	tex(rbto_7juiin.enc) = 2024
Provides:	tex(rbto_a4rth4.enc) = 2024
Provides:	tex(rbto_acwfoz.enc) = 2024
Provides:	tex(rbto_adklll.enc) = 2024
Provides:	tex(rbto_as7fdj.enc) = 2024
Provides:	tex(rbto_b5rac7.enc) = 2024
Provides:	tex(rbto_bsqqk2.enc) = 2024
Provides:	tex(rbto_bzwjdb.enc) = 2024
Provides:	tex(rbto_ddkove.enc) = 2024
Provides:	tex(rbto_dfqeeu.enc) = 2024
Provides:	tex(rbto_dqsbwe.enc) = 2024
Provides:	tex(rbto_dwsqhe.enc) = 2024
Provides:	tex(rbto_e24joy.enc) = 2024
Provides:	tex(rbto_el2qpt.enc) = 2024
Provides:	tex(rbto_epkquw.enc) = 2024
Provides:	tex(rbto_ghuabv.enc) = 2024
Provides:	tex(rbto_h4xxl2.enc) = 2024
Provides:	tex(rbto_h6xohf.enc) = 2024
Provides:	tex(rbto_hdhu7c.enc) = 2024
Provides:	tex(rbto_hlrajr.enc) = 2024
Provides:	tex(rbto_ifem6v.enc) = 2024
Provides:	tex(rbto_ihpqsf.enc) = 2024
Provides:	tex(rbto_imandq.enc) = 2024
Provides:	tex(rbto_iqgrsz.enc) = 2024
Provides:	tex(rbto_j2bk2t.enc) = 2024
Provides:	tex(rbto_je7obu.enc) = 2024
Provides:	tex(rbto_jsccdt.enc) = 2024
Provides:	tex(rbto_ktqtin.enc) = 2024
Provides:	tex(rbto_lbdvpp.enc) = 2024
Provides:	tex(rbto_lfutjz.enc) = 2024
Provides:	tex(rbto_lhlrii.enc) = 2024
Provides:	tex(rbto_lkebxp.enc) = 2024
Provides:	tex(rbto_meyhpi.enc) = 2024
Provides:	tex(rbto_muuaub.enc) = 2024
Provides:	tex(rbto_ocbbsb.enc) = 2024
Provides:	tex(rbto_ogts26.enc) = 2024
Provides:	tex(rbto_pn7nyn.enc) = 2024
Provides:	tex(rbto_pufewj.enc) = 2024
Provides:	tex(rbto_q5hjoy.enc) = 2024
Provides:	tex(rbto_qb5szn.enc) = 2024
Provides:	tex(rbto_qhmgos.enc) = 2024
Provides:	tex(rbto_qi3puo.enc) = 2024
Provides:	tex(rbto_qtf2ec.enc) = 2024
Provides:	tex(rbto_qulak4.enc) = 2024
Provides:	tex(rbto_r7pbwp.enc) = 2024
Provides:	tex(rbto_rehtu3.enc) = 2024
Provides:	tex(rbto_s5b5bo.enc) = 2024
Provides:	tex(rbto_schjax.enc) = 2024
Provides:	tex(rbto_shbyjm.enc) = 2024
Provides:	tex(rbto_swa2hd.enc) = 2024
Provides:	tex(rbto_t46jwv.enc) = 2024
Provides:	tex(rbto_t4kqic.enc) = 2024
Provides:	tex(rbto_tp43rw.enc) = 2024
Provides:	tex(rbto_u4yc4h.enc) = 2024
Provides:	tex(rbto_uf77so.enc) = 2024
Provides:	tex(rbto_wkn3wn.enc) = 2024
Provides:	tex(rbto_wttfgh.enc) = 2024
Provides:	tex(rbto_wywsyy.enc) = 2024
Provides:	tex(rbto_xzfhjt.enc) = 2024
Provides:	tex(rbto_z4nc45.enc) = 2024
Provides:	tex(rbto_zf56p3.enc) = 2024
Provides:	tex(rbto_zfcuyn.enc) = 2024
Provides:	tex-roboto = 2024
Provides:	tex(roboto.map) = 2024
Provides:	tex(roboto-mono.sty) = 2024
Provides:	tex(roboto-serif.sty) = 2024
Provides:	tex(roboto.sty) = 2024
Provides:	tex(T1Roboto-LF.fd) = 2024
Provides:	tex(T1RobotoMono-TLF.fd) = 2024
Provides:	tex(T1Roboto-OsF.fd) = 2024
Provides:	tex(T1RobotoSerif-LF.fd) = 2024
Provides:	tex(T1RobotoSerif-OsF.fd) = 2024
Provides:	tex(T1RobotoSerif-Sup.fd) = 2024
Provides:	tex(T1RobotoSerif-TLF.fd) = 2024
Provides:	tex(T1RobotoSerif-TOsF.fd) = 2024
Provides:	tex(T1RobotoSlab-TLF.fd) = 2024
Provides:	tex(T1Roboto-TLF.fd) = 2024
Provides:	tex(T1Roboto-TOsF.fd) = 2024
Provides:	tex(TS1Roboto-LF.fd) = 2024
Provides:	tex(TS1RobotoMono-TLF.fd) = 2024
Provides:	tex(TS1Roboto-OsF.fd) = 2024
Provides:	tex(TS1RobotoSerif-LF.fd) = 2024
Provides:	tex(TS1RobotoSerif-OsF.fd) = 2024
Provides:	tex(TS1RobotoSerif-TLF.fd) = 2024
Provides:	tex(TS1RobotoSerif-TOsF.fd) = 2024
Provides:	tex(TS1RobotoSlab-TLF.fd) = 2024
Provides:	tex(TS1Roboto-TLF.fd) = 2024
Provides:	tex(TS1Roboto-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Roboto Sans, Roboto Condensed, Roboto Mono,
Roboto Slab and Roboto Serif families of fonts, designed by
Christian Robertson and Greg Gazdowicz for Google.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/roboto/
%{_texmfdistdir}/fonts/map/dvips/roboto/
%{_texmfdistdir}/fonts/opentype/google/roboto/
%{_texmfdistdir}/fonts/tfm/google/roboto/
%{_texmfdistdir}/fonts/type1/google/roboto/
%{_texmfdistdir}/fonts/vf/google/roboto/
%{_texmfdistdir}/tex/latex/roboto/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10568 |21cr|texlive-rojud-56895-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rojud

Summary:	A font with the images of the counties of Romania
Name:		texlive-rojud
Version:	56895
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(iftex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ot1rojud.fd) = 2024
Provides:	tex(rojud.map) = 2024
Provides:	tex(rojud.sty) = 2024
Provides:	tex(turojud.fd) = 2024
BuildArch:	noarch

%description
This package provides a Type 1 font with images of the 42
counties of Romania, constructed using a general method which
is described in detail in the documentation. The package name
is an abbreviation of "judetele Romaniei" (= counties of
Romania).

%files
%doc %{_texmfdistdir}/doc/fonts/rojud
%{_texmfdistdir}/fonts/map/dvips/rojud
%{_texmfdistdir}/fonts/tfm/public/rojud
%{_texmfdistdir}/fonts/type1/public/rojud
%{_texmfdistdir}/tex/latex/rojud

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10569 |21cr|texlive-romanbarpagenumber-36236.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname romanbarpagenumber

Summary:	Typesetting roman page numbers
Name:		texlive-romanbarpagenumber
Version:	36236.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
#Requires:	tex(romanbar.sty)
#Requires:	tex(xifthen.sty)
Provides:	tex-romanbarpagenumber = 2024
Provides:	tex(romanbarpagenumber.sty) = 2024
BuildArch:	noarch

%description
The package romanbar allows to typeset roman numbers with bars.
This package allows you to use those roman numbers as page
number.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/romanbarpagenumber/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10570 |21cr|texlive-romande-1.008v7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19537
# category Package
# catalog-ctan /fonts/romandeadf
# catalog-date 2010-07-14 23:31:19 +0200
# catalog-license lppl
# catalog-version 1.008-v7
Name:		texlive-romande
Version:	1.008v7
Release:	8
Summary:	Romande ADF fonts and LaTeX support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/romandeadf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romande.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romande.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romande.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Romande ADF is a serif font family with oldstyle figures,
designed as a substitute for Times, Tiffany or Caslon. The
family currently includes upright, italic and small-caps shapes
in each of regular and demi-bold weights and an italic script
in regular. The support package renames the fonts according to
the Karl Berry fontname scheme and defines four families. Two
of these primarily provide access to the "standard" or default
characters while the "alternate" families support alternate
characters, additional ligatures and the long s. The included
package files provide access to these features in LaTeX as
explained in the documentation. The LaTeX support requires the
nfssext-cfr and the xkeyval packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/arkandis/romande/yrdd8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/romande/yrddc8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/romande/yrddi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/romande/yrdr8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/romande/yrdrc8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/romande/yrdri8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/romande/yrdriw8a.afm
%{_texmfdistdir}/fonts/enc/dvips/romande/romande-supp.enc
%{_texmfdistdir}/fonts/enc/dvips/romande/t1-romandeadf-alt.enc
%{_texmfdistdir}/fonts/enc/dvips/romande/t1-romandeadf.enc
%{_texmfdistdir}/fonts/enc/dvips/romande/ts1-euro-yrd.enc
%{_texmfdistdir}/fonts/map/dvips/romande/yrd.map
%{_texmfdistdir}/fonts/tfm/arkandis/romande/s-yrdd.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/s-yrddi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/s-yrdr.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/s-yrdri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/s-yrdriw.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-alt-yrdd.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-alt-yrddi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-alt-yrdr.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-alt-yrdri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-alt-yrdriw.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-yrdd.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-yrddc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-yrddi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-yrdr.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-yrdrc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-yrdri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/t1-romandeadf-yrdriw.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/ts1-yrdd.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/ts1-yrddi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/ts1-yrdr.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/ts1-yrdri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/ts1-yrdriw.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdd8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdd8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdda8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrddai8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrddc8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrddi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrddi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdr8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdr8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdra8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdrai8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdraiw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdrc8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdri8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdri8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdriw8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/romande/yrdriw8t.tfm
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdd8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdd8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrddc8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrddc8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrddi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrddi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdr8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdr8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdrc8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdrc8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdri8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdri8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdriw8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/romande/yrdriw8a.pfm
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdd8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdd8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdda8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrddai8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrddc8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrddi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrddi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdr8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdr8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdra8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdrai8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdraiw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdrc8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdri8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdri8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdriw8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/romande/yrdriw8t.vf
%{_texmfdistdir}/tex/latex/romande/romande.sty
%{_texmfdistdir}/tex/latex/romande/t1yrd.fd
%{_texmfdistdir}/tex/latex/romande/t1yrda.fd
%{_texmfdistdir}/tex/latex/romande/t1yrdaw.fd
%{_texmfdistdir}/tex/latex/romande/t1yrdw.fd
%{_texmfdistdir}/tex/latex/romande/ts1yrd.fd
%{_texmfdistdir}/tex/latex/romande/ts1yrda.fd
%{_texmfdistdir}/tex/latex/romande/ts1yrdaw.fd
%{_texmfdistdir}/tex/latex/romande/ts1yrdw.fd
%doc %{_texmfdistdir}/doc/fonts/romande/COPYING
%doc %{_texmfdistdir}/doc/fonts/romande/NOTICE.txt
%doc %{_texmfdistdir}/doc/fonts/romande/README
%doc %{_texmfdistdir}/doc/fonts/romande/manifest.txt
%doc %{_texmfdistdir}/doc/fonts/romande/romandeadf.pdf
%doc %{_texmfdistdir}/doc/fonts/romande/romandeadf.tex
#- source
%doc %{_texmfdistdir}/source/fonts/romande/reglyph-yrd.tex
%doc %{_texmfdistdir}/source/fonts/romande/romande-supp.etx
%doc %{_texmfdistdir}/source/fonts/romande/t1-romandeadf-alt.etx
%doc %{_texmfdistdir}/source/fonts/romande/t1-romandeadf.etx
%doc %{_texmfdistdir}/source/fonts/romande/ts1-euro.etx
%doc %{_texmfdistdir}/source/fonts/romande/yrd-drv.tex
%doc %{_texmfdistdir}/source/fonts/romande/yrd-map.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10571 |21cr|texlive-rosario-51688-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rosario

Summary:	Using the free Rosario fonts with LaTeX
Name:		texlive-rosario
Version:	51688
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(LY1Rosario-LF.fd) = 2024
Provides:	tex(OT1Rosario-LF.fd) = 2024
Provides:	tex(ros_amohrd.enc) = 2024
Provides:	tex-rosario = 2024
Provides:	tex(Rosario-BoldItalicLCDFJ.pfb) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ly1--base.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ly1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ly1.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ly1.vf) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ot1--base.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ot1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ot1.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ot1.vf) = 2024
Provides:	tex(Rosario-BoldItalic-lf-t1--base.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-t1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-t1.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-t1.vf) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ts1--base.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ts1.tfm) = 2024
Provides:	tex(Rosario-BoldItalic-lf-ts1.vf) = 2024
Provides:	tex(Rosario-BoldItalic.otf) = 2024
Provides:	tex(Rosario-BoldItalic.pfb) = 2024
Provides:	tex(Rosario-BoldLCDFJ.pfb) = 2024
Provides:	tex(Rosario-Bold-lf-ly1--base.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-ly1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-ly1.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-ly1.vf) = 2024
Provides:	tex(Rosario-Bold-lf-ot1--base.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-ot1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-ot1.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-ot1.vf) = 2024
Provides:	tex(Rosario-Bold-lf-t1--base.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-t1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-t1.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-t1.vf) = 2024
Provides:	tex(Rosario-Bold-lf-ts1--base.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-ts1.tfm) = 2024
Provides:	tex(Rosario-Bold-lf-ts1.vf) = 2024
Provides:	tex(Rosario-Bold.otf) = 2024
Provides:	tex(Rosario-Bold.pfb) = 2024
Provides:	tex(Rosario-ItalicLCDFJ.pfb) = 2024
Provides:	tex(Rosario-Italic-lf-ly1--base.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-ly1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-ly1.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-ly1.vf) = 2024
Provides:	tex(Rosario-Italic-lf-ot1--base.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-ot1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-ot1.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-ot1.vf) = 2024
Provides:	tex(Rosario-Italic-lf-t1--base.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-t1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-t1.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-t1.vf) = 2024
Provides:	tex(Rosario-Italic-lf-ts1--base.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-ts1.tfm) = 2024
Provides:	tex(Rosario-Italic-lf-ts1.vf) = 2024
Provides:	tex(Rosario-Italic.otf) = 2024
Provides:	tex(Rosario-Italic.pfb) = 2024
Provides:	tex(Rosario.map) = 2024
Provides:	tex(Rosario-RegularLCDFJ.pfb) = 2024
Provides:	tex(Rosario-Regular-lf-ly1--base.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-ly1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-ly1.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-ly1.vf) = 2024
Provides:	tex(Rosario-Regular-lf-ot1--base.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-ot1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-ot1.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-ot1.vf) = 2024
Provides:	tex(Rosario-Regular-lf-t1--base.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-t1--lcdfj.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-t1.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-t1.vf) = 2024
Provides:	tex(Rosario-Regular-lf-ts1--base.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-ts1.tfm) = 2024
Provides:	tex(Rosario-Regular-lf-ts1.vf) = 2024
Provides:	tex(Rosario-Regular.otf) = 2024
Provides:	tex(Rosario-Regular.pfb) = 2024
Provides:	tex(Rosario.sty) = 2024
Provides:	tex(ros_c353pt.enc) = 2024
Provides:	tex(ros_k6z3ge.enc) = 2024
Provides:	tex(ros_y2egj5.enc) = 2024
Provides:	tex(T1Rosario-LF.fd) = 2024
Provides:	tex(TS1Rosario-LF.fd) = 2024
BuildArch:	noarch

%description
The package provides the files required to use the Rosario
fonts with LaTeX. Rosario is a set of four fonts provided by
Hector Gatti, Adobe Typekit & Omnibus-Type Team under the Open
Font License (OFL), version 1.1. The fonts are copyright (c)
2012-2015, Omnibus-Type.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/rosario/
%{_texmfdistdir}/fonts/map/dvips/rosario/
%{_texmfdistdir}/fonts/opentype/public/rosario/
%{_texmfdistdir}/fonts/tfm/public/rosario/
%{_texmfdistdir}/fonts/type1/public/rosario/
%{_texmfdistdir}/fonts/vf/public/rosario/
%{_texmfdistdir}/tex/latex/rosario/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10572 |21cr|texlive-roundrect-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-roundrect
Version:	2.2
Release:	1
Summary:	MetaPost macros for highly configurable rounded rectangles (optionally with text)
Group:		Publishing
URL:		https://ctan.org/pkg/roundrect
License:	lppl1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/roundrect.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/roundrect.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/roundrect.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The roundrect macros for MetaPost provide ways to produce
rounded rectangles, which may or may not contain a title bar or
text (the title bar may itself contain text). They are
extremely configurable.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/roundrect/roundrect.mp

%doc %{_texmfdistdir}/doc/metapost/roundrect/lppl.txt
%doc %{_texmfdistdir}/doc/metapost/roundrect/roundrect.pdf
%doc %{_texmfdistdir}/doc/metapost/roundrect/CHANGES
%doc %{_texmfdistdir}/doc/metapost/roundrect/README
#- source
%doc %{_texmfdistdir}/source/metapost/roundrect/roundrect.dtx
%doc %{_texmfdistdir}/source/metapost/roundrect/roundrect.ins
#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10573 |21cr|texlive-rsc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-rsc
Version:	20190228
Release:	1
Summary:	BibTeX style for use with RSC journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rsc
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rsc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rsc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rsc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The rsc package provides a BibTeX style in accordance with the
requirements of the Royal Society of Chemistry. It was
originally based on the file pccp.bst, but also implements a
number of styles from the achemso package. The package is now a
stub for the chemstyle package, which the author developed to
unify the writing of articles with a chemistry content.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/rsc
%{_texmfdistdir}/tex/latex/rsc
%doc %{_texmfdistdir}/doc/latex/rsc
#- source
%doc %{_texmfdistdir}/source/latex/rsc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10574 |21cr|texlive-rsfso-1.02-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-rsfso
Version:	1.02
Release:	2
Summary:	A mathematical calligraphic font based on rsfs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/rsfso
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rsfso.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rsfso.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides virtual fonts and LaTeX support files for
mathematical calligraphic fonts based on the rsfs Adobe Type 1
fonts (which must also be present for successful installation,
with the slant substantially reduced. The output is quite
similar to that from the Adobe Mathematical Pi script font.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/rsfso
%{_texmfdistdir}/fonts/tfm/public/rsfso
%{_texmfdistdir}/fonts/vf/public/rsfso
%{_texmfdistdir}/tex/latex/rsfso
%doc %{_texmfdistdir}/doc/fonts/rsfso

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10575 |21cr|texlive-ruler-54251-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ruler

Summary:	A typographic ruler for TeX
Name:		texlive-ruler
Version:	54251
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ruler.tex) = 2024
BuildArch:	noarch

%description
The file processes to produce (real) rulers; the author
suggests printing them on transparent plastic and trimming for
use as a "real" ruler. The rule widths are 0.05mm, which can be
challenging for (old) laser printers.

%files
%{_texmfdistdir}/tex/generic/ruler

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10576 |21cr|texlive-rulerbox-50984-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rulerbox

Summary:	Draw rulers around a box
Name:		texlive-rulerbox
Version:	50984
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(rulerbox.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package for drawing rulers around a box. This
might be useful when showing the absolute size of something in
electronic documents, or designating the relative scale in
printed materials.

%files
%doc %{_texmfdistdir}/doc/latex/rulerbox
%{_texmfdistdir}/tex/latex/rulerbox

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10577 |21cr|texlive-runcode-65588-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname runcode

Summary:	Execute foreign source code and embed the result in the pdf file
Name:		texlive-runcode
Version:	65588
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(runcode.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package executes programming source codes (including
all command line tools) from within LaTeX and embeds the output
in the resulting .pdf file. Many programming languages can be
easily used and any command-line executable can be invoked when
preparing the .pdf file from a .tex file. It is however
recommended to use this package in server-mode together with
the Python talk2stat package. Currently, this server-mode
supports Julia, MatLab, Python, and R. More languages will be
added. For more details and usage examples, refer to the
package's github repository.

%files
%doc %{_texmfdistdir}/doc/latex/runcode
%{_texmfdistdir}/tex/latex/runcode

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10578 |21cr|texlive-ryersonsgsthesis-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ryersonsgsthesis
Version:	1.0.3
Release:	1
Summary:	Ryerson School of Graduate Studies thesis template
Group:		Publishing
URL:		http://ctan.org/tex-archive/macros/latex/contrib/ryersonsgsthesis
License:	Apache License 2.0
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/ryersonsgsthesis.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/ryersonsgsthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a LaTeX class and template files for
Ryerson School of Graduate Studies (SGS) theses.

%files
%{_texmfdistdir}/tex/
%doc %{_texmfdistdir}/doc/

%prep

%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10579 |21cr|texlive-sacsymb-65768-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sacsymb

Summary:	"Sacred Symbols" prepared with TikZ
Name:		texlive-sacsymb
Version:	65768
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(sacsymb.sty) = 2024
BuildArch:	noarch

%description
The author tells us: This is "a package with symbols prepared
with TikZ. These symbols are the variables used in the space of
the collapse of the wave function of a quantum field associated
with the micro-tubule while exploring an Orchestrated,
objective reduction (Orch OR) theory of consciousness as
applied to the three brains model of psychological experience."

%files
%doc %{_texmfdistdir}/doc/latex/sacsymb
%{_texmfdistdir}/tex/latex/sacsymb

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10580 |21cr|texlive-sanitize-umlaut-63770-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sanitize-umlaut

Summary:	Sanitize umlauts for MakeIndex and pdfLaTeX
Name:		texlive-sanitize-umlaut
Version:	63770
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-sanitize-umlaut = 2024
Provides:	tex(sanitize-umlaut.sty) = 2024
BuildArch:	noarch

%description
This packages sanitizes umlauts to be used directly in index
entries for MakeIndex and friends with pdfLaTeX. This means
that inside \index an umlaut can be used as "U or as U. In both
cases, the letter is written as "U into the raw index file for
correct processing with MakeIndex and pdfLaTeX.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/sanitize-umlaut/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10581 |21cr|texlive-sankey-61874-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sankey

Summary:	Draw Sankey diagrams with TikZ
Name:		texlive-sankey
Version:	61874
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(accsupp.sty)
#Requires:	tex(babel.sty)
#Requires:	tex(bookmark.sty)
#Requires:	tex(cmap.sty)
Requires:	tex(dtx-attach.sty)
Requires:	tex(embedfile.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(etoc.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(fancyvrb.sty)
Requires:	tex(fontenc.sty)
#Requires:	tex(footnote.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(hypdoc.sty)
#Requires:	tex(hyperref.sty)
Requires:	tex(inputenc.sty)
#Requires:	tex(listings.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(lmodern.sty)
#Requires:	tex(microtype.sty)
#Requires:	tex(siunitx.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(varioref.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xfp.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(sankey-doc-preamble.sty) = 2024
Provides:	tex(sankey.sty) = 2024
Provides:	tex(tikzlibrarydubins.code.tex) = 2024
BuildArch:	noarch

%description
This package provides macros and an environment for creating
Sankey diagrams, i.e. flow diagrams in which the width of the
arrows is proportional to the flow rate.

%files
%doc %{_texmfdistdir}/doc/latex/sankey
%{_texmfdistdir}/tex/latex/sankey

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10582 |21cr|texlive-sanskrit-t1-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sanskrit-t1
Version:	1.4
Release:	1
Summary:	Type 1 version of 'skt' fonts for Sanskrit
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sanskrit-t1.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sanskrit-t1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The sanskrit-t1 font package provides Type 1 version of Charles
Wikner's skt font series for the Sanskrit language.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10583 |21cr|texlive-sansmathaccent-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sansmathaccent
Version:	20190228
Release:	1
Summary:	Correct placement of accents in sans-serif maths
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/sansmathaccent
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sansmathaccent.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sansmathaccent.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sans serif maths (produced by the beamer class or the sfmath
package) often has accents positioned incorrectly. The package
fixes the positioning of such accents when the default font
(cmssi) is used for sans serif maths.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/sansmathaccent
%{_texmfdistdir}/fonts/tfm/public/sansmathaccent
%{_texmfdistdir}/fonts/vf/public/sansmathaccent
%{_texmfdistdir}/tex/latex/sansmathaccent
%doc %{_texmfdistdir}/doc/fonts/sansmathaccent

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10584 |21cr|texlive-sansmathfonts-64661-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sansmathfonts

Summary:	Correct placement of accents in sans-serif maths
Name:		texlive-sansmathfonts
Version:	64661
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(omlcmssm.fd) = 2024
Provides:	tex(omscmsssy.fd) = 2024
Provides:	tex(omxcmssex.fd) = 2024
Provides:	tex(ot1cmsmf.fd) = 2024
Provides:	tex(ot1xcmss.fd) = 2024
Provides:	tex-sansmathfonts = 2024
Provides:	tex(sansmathfonts.map) = 2024
Provides:	tex(sansmathfonts.sty) = 2024
Provides:	tex(t1xcmss.fd) = 2024
Provides:	tex(ucmsmf.fd) = 2024
Provides:	tex(ussesint.fd) = 2024
Provides:	tex(ussmsa.fd) = 2024
Provides:	tex(ussmsb.fd) = 2024
Provides:	tex(uxcmss.fd) = 2024
BuildArch:	noarch

%description
Sans serifsmall caps and math fonts for use with Computer
Modern.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/map/dvips/sansmathfonts/
%{_texmfdistdir}/fonts/source/public/sansmathfonts/
%{_texmfdistdir}/fonts/tfm/public/sansmathfonts/
%{_texmfdistdir}/fonts/type1/public/sansmathfonts/
%{_texmfdistdir}/fonts/vf/public/sansmathfonts/
%{_texmfdistdir}/tex/latex/sansmathfonts/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10585 |21cr|texlive-sauter-2.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 13293
# category Package
# catalog-ctan /fonts/cm/sauter
# catalog-date 2008-12-30 21:17:11 +0100
# catalog-license gpl
# catalog-version 2.4
Name:		texlive-sauter
Version:	2.4
Release:	8
Summary:	Wide range of design sizes for CM fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cm/sauter
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sauter.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Extensions, originally to the CM fonts, providing a
parameterization scheme to build MetaFont fonts at true design
sizes, for a large range of sizes. The scheme has now been
extended to a range of other fonts, including the AMS fonts,
bbm, bbold, rsfs and wasy fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/sauter/b-cmb.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmbsy.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmbx.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmbxsl.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmbxti.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmcsc.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmdunh.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmex.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmff.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmfi.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmfib.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cminch.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmitt.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmmi.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmmib.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmr.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmsl.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmsltt.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmss.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmssbx.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmssdc.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmssi.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmssq.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmssqi.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmssxi.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmsy.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmtcsc.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmtex.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmti.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmtt.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmu.mf
%{_texmfdistdir}/fonts/source/public/sauter/b-cmvtt.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-bmath.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmbx.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmex.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmff.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmmi.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmr.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmss.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmssbx.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmssq.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmsy.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmti.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-cmtt.mf
%{_texmfdistdir}/fonts/source/public/sauter/c-sigma.mf

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10586 |21cr|texlive-sauterfonts-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sauterfonts
# catalog-date 2007-01-14 10:43:12 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-sauterfonts
Version:	20190228
Release:	1
Summary:	Use sauter fonts in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sauterfonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sauterfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sauterfonts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sauterfonts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package providing font definition files (plus a replacement
for the package exscale) to access many of the fonts in
Sauter's collection. These fonts are available in all point
sizes and look nicer for such "intermediate" document sizes as
11pt. Also included is the package sbbm, an alternative to
access the bbm fonts, a nice collection of blackboard bold
symbols.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sauterfonts/sbbm.sty
%{_texmfdistdir}/tex/latex/sauterfonts/sexscale.sty
%{_texmfdistdir}/tex/latex/sauterfonts/somlcmm.fd
%{_texmfdistdir}/tex/latex/sauterfonts/somlcmr.fd
%{_texmfdistdir}/tex/latex/sauterfonts/somscmr.fd
%{_texmfdistdir}/tex/latex/sauterfonts/somscmsy.fd
%{_texmfdistdir}/tex/latex/sauterfonts/somxcmex.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sot1cmdh.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sot1cmfib.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sot1cmfr.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sot1cmr.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sot1cmss.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sot1cmtt.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sot1cmvtt.fd
%{_texmfdistdir}/tex/latex/sauterfonts/subbm.fd
%{_texmfdistdir}/tex/latex/sauterfonts/subbmdh.fd
%{_texmfdistdir}/tex/latex/sauterfonts/subbmfib.fd
%{_texmfdistdir}/tex/latex/sauterfonts/subbmss.fd
%{_texmfdistdir}/tex/latex/sauterfonts/subbmtt.fd
%{_texmfdistdir}/tex/latex/sauterfonts/subbmvtt.fd
%{_texmfdistdir}/tex/latex/sauterfonts/subbold.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sucmr.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sucmss.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sucmtt.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sulasy.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sumsa.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sumsb.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sursfs.fd
%{_texmfdistdir}/tex/latex/sauterfonts/sustmry.fd
%{_texmfdistdir}/tex/latex/sauterfonts/suwasy.fd
%doc %{_texmfdistdir}/doc/latex/sauterfonts/README
#- source
%doc %{_texmfdistdir}/source/latex/sauterfonts/sauterfonts.fdd
%doc %{_texmfdistdir}/source/latex/sauterfonts/sauterfonts.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10587 |21cr|texlive-saveenv-65346-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname saveenv

Summary:	Save environment content verbatim
Name:		texlive-saveenv
Version:	65346
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(precattl.sty)
Provides:	tex(saveenv.sty) = 2024
BuildArch:	noarch

%description
This package provides tools to create your own verbatim
environments, and works for all values of \endlinechar.

%files
%doc %{_texmfdistdir}/doc/latex/saveenv
%{_texmfdistdir}/tex/latex/saveenv

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10588 |21cr|texlive-schedule-51805-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname schedule

Summary:	Weekly schedules
Name:		texlive-schedule
Version:	51805
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(schedule.sty) = 2024
BuildArch:	noarch

%description
Automatically format weekly schedules using LaTeX's picture
environment. It requires the packages calc and color. Its main
feature is the accuracy with which appointments are
represented: boxes drawn to represent a particular appointment
are accurate to the minute -- i.e., a 31-minute appointment
will have a box 1/30th longer than a 30-minute appointment. A
number of features are included to allow the user to customize
the output.

%files
%doc %{_texmfdistdir}/doc/latex/schedule
%{_texmfdistdir}/tex/latex/schedule

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10589 |21cr|texlive-schemata-0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-schemata
Version:	0.8
Release:	2
Summary:	Print topical diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/schemata
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/schemata.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/schemata.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/schemata.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package facilitates the creation of topical schemata,
outlines that use braces (or facsimiles thereof) to illustrate
the breakdown of concepts and categories in Scholastic thought
from late medieval and early modern periods.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/schemata
%doc %{_texmfdistdir}/doc/generic/schemata
#- source
%doc %{_texmfdistdir}/source/generic/schemata

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10590 |21cr|texlive-schola-otf-64734-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname schola-otf

Summary:	Using the OpenType fonts TeX Gyre schola
Name:		texlive-schola-otf
Version:	64734
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(schola-otf.sty) = 2024
BuildArch:	noarch

%description
This package can only be used with LuaLaTeX or XeLaTeX. It does
the font setting for the OpenType font TeX Gyre Schola for text
and math. The missing typefaces like bold math and slanted text
are also defined

%files
%doc %{_texmfdistdir}/doc/fonts/schola-otf
%{_texmfdistdir}/tex/latex/schola-otf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10591 |21cr|texlive-scholax-61836-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scholax

Summary:	Extension of TeXGyreSchola (New Century Schoolbook) with math support
Name:		texlive-scholax
Version:	61836
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LY1TeXGyreScholaX-Inf.fd) = 2024
Provides:	tex(LY1TeXGyreScholaX-LF.fd) = 2024
Provides:	tex(LY1TeXGyreScholaX-OsF.fd) = 2024
Provides:	tex(LY1TeXGyreScholaX-Sup.fd) = 2024
Provides:	tex(LY1TeXGyreScholaX-TLF.fd) = 2024
Provides:	tex(LY1TeXGyreScholaX-TOsF.fd) = 2024
Provides:	tex(ly1zcsth-lf.fd) = 2024
Provides:	tex(ly1zcsth-osf.fd) = 2024
Provides:	tex(newtx-ncf-subs.tex) = 2024
Provides:	tex(newtx-nc-subs.tex) = 2024
Provides:	tex(omlzncfmi.fd) = 2024
Provides:	tex(omlzncmi.fd) = 2024
Provides:	tex(OT1TeXGyreScholaX-Inf.fd) = 2024
Provides:	tex(OT1TeXGyreScholaX-LF.fd) = 2024
Provides:	tex(OT1TeXGyreScholaX-OsF.fd) = 2024
Provides:	tex(OT1TeXGyreScholaX-Sup.fd) = 2024
Provides:	tex(OT1TeXGyreScholaX-TLF.fd) = 2024
Provides:	tex(OT1TeXGyreScholaX-TOsF.fd) = 2024
Provides:	tex(ot1zcsth-lf.fd) = 2024
Provides:	tex(ot1zcsth-osf.fd) = 2024
Provides:	tex(ScholaX.map) = 2024
Provides:	tex(scholax.sty) = 2024
Provides:	tex(T1TeXGyreScholaX-Inf.fd) = 2024
Provides:	tex(T1TeXGyreScholaX-LF.fd) = 2024
Provides:	tex(T1TeXGyreScholaX-OsF.fd) = 2024
Provides:	tex(T1TeXGyreScholaX-Sup.fd) = 2024
Provides:	tex(T1TeXGyreScholaX-TLF.fd) = 2024
Provides:	tex(T1TeXGyreScholaX-TOsF.fd) = 2024
Provides:	tex(t1zcsth-lf.fd) = 2024
Provides:	tex(t1zcsth-osf.fd) = 2024
Provides:	tex(TS1TeXGyreScholaX-LF.fd) = 2024
Provides:	tex(TS1TeXGyreScholaX-OsF.fd) = 2024
Provides:	tex(TS1TeXGyreScholaX-TLF.fd) = 2024
Provides:	tex(TS1TeXGyreScholaX-TOsF.fd) = 2024
Provides:	tex(zcs_2p3dps.enc) = 2024
Provides:	tex(zcs_2ulndi.enc) = 2024
Provides:	tex(zcs_2zpiql.enc) = 2024
Provides:	tex(zcs_3uk2yo.enc) = 2024
Provides:	tex(zcs_72zhkj.enc) = 2024
Provides:	tex(zcs_7xuij4.enc) = 2024
Provides:	tex(zcs_aisocu.enc) = 2024
Provides:	tex(zcs_c3rnvk.enc) = 2024
Provides:	tex(zcs_c5ugpk.enc) = 2024
Provides:	tex(zcs_czuex4.enc) = 2024
Provides:	tex(zcs_dcwile.enc) = 2024
Provides:	tex(zcs_dodlyj.enc) = 2024
Provides:	tex(zcs-ecth-osf.enc) = 2024
Provides:	tex(zcs-ecth-tlf.enc) = 2024
Provides:	tex(zcs_fn6vum.enc) = 2024
Provides:	tex(zcs_heobe3.enc) = 2024
Provides:	tex(zcs_ioc2dx.enc) = 2024
Provides:	tex(zcs_jkq3qs.enc) = 2024
Provides:	tex(zcs_k56gxg.enc) = 2024
Provides:	tex(zcs_lewktp.enc) = 2024
Provides:	tex(zcs_litts3.enc) = 2024
Provides:	tex(zcs_mett7y.enc) = 2024
Provides:	tex(zcs_mnnbkz.enc) = 2024
Provides:	tex(zcs-ot1-th-osf.enc) = 2024
Provides:	tex(zcs-ot1-th-tlf.enc) = 2024
Provides:	tex(zcs_qfh2v7.enc) = 2024
Provides:	tex(zcs_ra2vxf.enc) = 2024
Provides:	tex(zcs_t6txtr.enc) = 2024
Provides:	tex(zcs-texnansi-th-osf.enc) = 2024
Provides:	tex(zcs-texnansi-th-tlf.enc) = 2024
Provides:	tex(zcs_tpfstq.enc) = 2024
Provides:	tex(zcs_ujimmk.enc) = 2024
Provides:	tex(zcs_wg6py3.enc) = 2024
Provides:	tex(zcs_wlo5nq.enc) = 2024
Provides:	tex(zcs_wylu46.enc) = 2024
Provides:	tex(zcs_x5uxyb.enc) = 2024
Provides:	tex(zcs_xrqdd6.enc) = 2024
Provides:	tex(zcs_xzuu25.enc) = 2024
Provides:	tex(zcs_y6waxr.enc) = 2024
Provides:	tex(zcs_zgzte3.enc) = 2024
BuildArch:	noarch

%description
This package contains an extension of TeXGyreSchola with
extensive superiors, inferior figures, upright punctuation
glyphs added to the Italic face for a theorem font, plus
slanted and bold slanted faces. Math support is provided by one
of two options to newtxmath, one of which uses an adaptation of
the fourier math Greek letters.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/scholax
%{_texmfdistdir}/fonts/enc/dvips/scholax
%{_texmfdistdir}/fonts/map/dvips/scholax
%{_texmfdistdir}/fonts/opentype/public/scholax
%{_texmfdistdir}/fonts/tfm/public/scholax
%{_texmfdistdir}/fonts/type1/public/scholax
%{_texmfdistdir}/fonts/vf/public/scholax
%{_texmfdistdir}/tex/latex/scholax

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10592 |21cr|texlive-schooldocs-65650-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname schooldocs

Summary:	Various layout styles for school documents
Name:		texlive-schooldocs
Version:	65650
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(fancybox.sty)
#Requires:	tex(fancyhdr.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(ifthen.sty)
#Requires:	tex(lastpage.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xcolor.sty)
Provides:	tex(schooldocs.sty) = 2024
BuildArch:	noarch

%description
The purpose of this package is to provide several layout styles
for school documents. It is useful for exercise sheets, exams,
course materials. The package sets the page geometry
(dimensions of text and margins) and the title typesetting; the
various styles define the header, footer and title formatting.
Many features are freely configurable.

%files
%doc %{_texmfdistdir}/doc/latex/schooldocs
%{_texmfdistdir}/tex/latex/schooldocs

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10593 |21cr|texlive-schule-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-schule
Version:	0.8.3
Release:	1
Summary:	Support for teachers at German schools
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/schule
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/schule.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/schule.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The 'schule' bundle was built to provide packages and commands
that could be useful for documents in German schools. At the
moment its main focus lies on documents for informatics as a
school subject. An extension for physics is currently in
progress. Extensions for other subjects are welcome. For the
time being, the whole package splits up into individual
packages for informatics (including syntax diagrams,
Nassi-Shneiderman diagrams, sequence diagrams, object diagrams,
and class diagrams) as well as classes for written exams
(tests, quizzes, teaching observations, information sheets,
worksheets, and answer keys).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10594 |21cr|texlive-schulmathematik-64108-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname schulmathematik

Summary:	Commands and document classes for German-speaking teachers of mathematics and physics
Name:		texlive-schulmathematik
Version:	64108
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(schulma-ab.cls) = 2024
Provides:	tex(schulma-gutachten.cls) = 2024
Provides:	tex(schulma-klausur.cls) = 2024
Provides:	tex(schulma-komp.cls) = 2024
Provides:	tex(schulma-mdlprf.cls) = 2024
Provides:	tex(schulma-physik.sty) = 2024
Provides:	tex(schulma-praes.cls) = 2024
Provides:	tex(schulma.sty) = 2024
BuildArch:	noarch

%description
The schulmathematik bundle provides two LaTeX packages and six
document classes for German-speaking teachers of mathematics
and physics.

%files
%doc %{_texmfdistdir}/doc/latex/schulmathematik
%{_texmfdistdir}/tex/latex/schulmathematik

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10595 |21cr|texlive-schulschriften-59388-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname schulschriften

Summary:	German "school scripts" from Suetterlin to the present day
Name:		texlive-schulschriften
Version:	59388
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-schulschriften = 2024
Provides:	tex(t1wedn.fd) = 2024
Provides:	tex(t1wela.fd) = 2024
Provides:	tex(t1wesa.fd) = 2024
Provides:	tex(t1wesu.fd) = 2024
Provides:	tex(t1weva.fd) = 2024
Provides:	tex(wedn.sty) = 2024
Provides:	tex(wela.sty) = 2024
Provides:	tex(wesa.sty) = 2024
Provides:	tex(wesu.sty) = 2024
Provides:	tex(weva.sty) = 2024
BuildArch:	noarch

%description
Das Paket enthalt im wesentlichen die METAFONT-Quellfiles fur
die folgenden Schulausgangsschriften: Suetterlinschrift,
Deutsche Normalschrift, Lateinische Ausgangsschrift,
Schulausgangsschrift, Vereinfachte Ausgangsschrift. Damit ist
es moglich, beliebige deutsche Texte in diesen Schreibschriften
zu schreiben.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/source/public/schulschriften/
%{_texmfdistdir}/fonts/tfm/public/schulschriften/
%{_texmfdistdir}/tex/latex/schulschriften/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10596 |21cr|texlive-scientific-thesis-cover-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-scientific-thesis-cover
Version:	4.0.2
Release:	1
Summary:	Provides cover page and affirmation at the end of a thesis
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/scientific-thesis-cover
License:	The LATEX Project Public License 1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/scientific-thesis-cover.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/scientific-thesis-cover.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/scientific-thesis-cover.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Institutions require a cover page and an affirmation at the end
of a thesis. This package provides both.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10597 |21cr|texlive-scikgtex-65256-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scikgtex

Summary:	Mark research contributions in scientific documents and embed them in PDF metadata
Name:		texlive-scikgtex
Version:	65256
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(scikgtex.sty) = 2024
BuildArch:	noarch

%description
Scientific Knowledge Graph TeX (SciKgTeX) is a LuaLaTeX package
which makes it possible to annotate specific research
contributions in scientific documents. SciKGTeX will enrich the
document by adding the marked contributions to PDF metadata in
a structured XMP format which can be picked up by search
engines and knowledge graphs.

%files
%doc %{_texmfdistdir}/doc/lualatex/scikgtex
%{_texmfdistdir}/tex/lualatex/scikgtex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10598 |21cr|texlive-sclang-prettifier-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sclang-prettifier
Version:	0.1 
Release:	1
Summary:	Allows you to effortlessly prettyprint SuperCollider source code in documents
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/sclang-prettifier
License:	LPPL1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sclang-prettifier.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sclang-prettifier.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sclang-prettifier.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Built on top of the listings package, the sclang-prettifier package allows
you to effortlessly prettyprint SuperCollider source code in documents typeset 
with LaTeX & friends.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10599 |21cr|texlive-scontents-62902-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scontents

Summary:	Store and reuse code sequences
Name:		texlive-scontents
Version:	62902
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(scontents-code.tex) = 2024
Provides:	tex(scontents.sty) = 2024
Provides:	tex(scontents.tex) = 2024
BuildArch:	noarch

%description
This package stores valid LaTeX code in sequences using the
l3seq module of expl3. The stored content (including verbatim)
can be used as many times as desired in the document,
additionally can be written to external files if desired.

%files
%doc %{_texmfdistdir}/doc/latex/scontents
%{_texmfdistdir}/tex/context/third/scontents
%{_texmfdistdir}/tex/generic/scontents
%{_texmfdistdir}/tex/latex/scontents

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10600 |21cr|texlive-scrabble-65507-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scrabble

Summary:	Commands for Scrabble boards
Name:		texlive-scrabble
Version:	65507
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(Scrabble.sty) = 2024
BuildArch:	noarch

%description
This package provides some commands (in English and in French)
to work with a Scrabble Board : \ScrabbleBoard and
\begin{EnvScrabble} and \ScrabblePutWord for the English
version, \PlateauScrabble and \begin{EnvScrabble} and
\ScrabblePlaceMot for the French version.

%files
%doc %{_texmfdistdir}/doc/latex/scrabble
%{_texmfdistdir}/tex/latex/scrabble

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10601 |21cr|texlive-scrambledenvs-60615-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scrambledenvs

Summary:	Create and print scrambled environments
Name:		texlive-scrambledenvs
Version:	60615
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(scrambledenvs.sty) = 2024
BuildArch:	noarch

%description
This package allows you to create and print scrambled
environments for purposes such as randomized hint environments.
You can mark a location with a series of hints, and then print
the hints at the end in a pseudo-random order. The general
structure follows: there is an outer environment which creates
the label, an inner environment that creates the references,
and a print command that prints out all of the hints. This
generalizes beyond hints; one can create scrambled solutions as
well, etc.

%files
%doc %{_texmfdistdir}/doc/latex/scrambledenvs
%{_texmfdistdir}/tex/latex/scrambledenvs

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10602 |21cr|texlive-scratch3-61921-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scratch3

Summary:	Draw programs like "scratch"
Name:		texlive-scratch3
Version:	61921
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(simplekv.sty)
#Requires:	tex(tikz.sty)
Provides:	tex(scratch3.sty) = 2024
BuildArch:	noarch

%description
This package permits to draw program charts in the style of the
scatch project (scratch.mit.edu). It depends on the other LaTeX
packages TikZ and simplekv.

%files
%doc %{_texmfdistdir}/doc/latex/scratch3
%{_texmfdistdir}/tex/latex/scratch3

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10603 |21cr|texlive-scratch-50073-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scratch

Summary:	Draw programs like "scratch"
Name:		texlive-scratch
Version:	50073
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(scratch.sty) = 2024
BuildArch:	noarch

%description
This package permits to draw program charts in the style of the
scatch project (scratch.mit.edu). It depends on the other LaTeX
packages TikZ and simplekv.

%files
%doc %{_texmfdistdir}/doc/latex/scratch/
%{_texmfdistdir}/tex/latex/scratch/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10604 |21cr|texlive-scratchx-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-scratchx
Version:	1.1
Release:	1
Summary:	Include Scratch programs in LaTeX documents
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/scratchx
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scratchx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scratchx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Recommends:	texlive-calc 
Requires:	texlive-fp
Requires:	texlive-ifsym
Requires:	texlive-multido
Recommends:	texlive-tikz
Requires:	texlive-xargs
Requires:	texlive-xstring
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The ScratchX package is used in order to include every
kind of Scratch programs in LaTeX documents.
Particularly useful for Math Teachers ans IT specialists.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/scratchx/ScratchX.sty
%doc %{_texmfdistdir}/doc/latex/scratchx/README.txt
%doc %{_texmfdistdir}/doc/latex/scratchx/Explications_ScratchX.tex
%doc %{_texmfdistdir}/doc/latex/scratchx/Explications_ScratchX.pdf
%doc %{_texmfdistdir}/doc/latex/scratchx/Explanations_ScratchX.tex
%doc %{_texmfdistdir}/doc/latex/scratchx/Explanations_ScratchX.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10605 |21cr|texlive-screenplay-pkg-1.1-0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-screenplay-pkg
Version:	1.1
Release:	0
Summary:	Package version of the screenplay document class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/screenplay-pkg
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/screenplay-pkg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/screenplay-pkg.doc.tar.xz
BuildRequires: texlive-tlpkg
BuildArch:	noarch

%description
This package implements the tools of the screenplay document
be included within another document class. For full
documentation of the available commands, please consult the
screenplay class documentation in addition to the included
package documentation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/screenplay-pkg

%doc %{_texmfdistdir}/doc/latex/screenplay-pkg


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10606 |21cr|texlive-scripture-65493-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scripture

Summary:	A LaTeX style for typesetting Bible quotations
Name:		texlive-scripture
Version:	65493
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(scripture.sty) = 2024
BuildArch:	noarch

%description
The scripture package provides a set of macros for typesetting
quotations from the Bible. It provides many features commonly
seen in Bibles such as dropped text for chapter numbers,
superscripts for verse numbers, indented lines for poetry
sections, narrow sections and hanging paragraphs. A reference
for the quotation can optionally be added.

%files
%doc %{_texmfdistdir}/doc/latex/scripture
%{_texmfdistdir}/tex/latex/scripture

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10607 |21cr|texlive-scrlayer-fancyhdr-63844-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scrlayer-fancyhdr

Summary:	Combining package fancyhdr with KOMA-Script's scrlayer
Name:		texlive-scrlayer-fancyhdr
Version:	63844
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(fancyhdr.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(scrlayer.sty)
Provides:	tex(scrlayer-fancyhdr.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package uses KOMA-Script's scrlayer to redefine the
page styles of package fancyhdr. This allows the combination of
features of fancyhdr with features of scrlayer. Before
KOMA-Script v3.33 scrlayer-fancyhdr was part of KOMA-Script
itself.

%files
%doc %{_texmfdistdir}/doc/latex/scrlayer-fancyhdr
%{_texmfdistdir}/tex/latex/scrlayer-fancyhdr

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10608 |21cr|texlive-scrlttr2copy-56733-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scrlttr2copy

Summary:	A letter class option file for the automatic creation of copies
Name:		texlive-scrlttr2copy
Version:	56733
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-scrlttr2copy = 2024
BuildArch:	noarch

%description
The file copy.lco provides the new class option "copy" for the
KOMA-Script letter class scrlttr2. If the option "copy" is
given, all pages of a specific letter are duplicated with
background text marking as copies.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/scrlttr2copy/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10609 |21cr|texlive-scsnowman-66115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname scsnowman

Summary:	Snowman variants using TikZ
Name:		texlive-scsnowman
Version:	66115
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(scsnowman-normal.def) = 2024
Provides:	tex(scsnowman.sty) = 2024
Provides:	tex(sctkzsym-base.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package provides a command \scsnowman which can
display many variants of "snowman" ("yukidaruma" in Japanese).
TikZ is required for drawing these snowmen.

%files
%doc %{_texmfdistdir}/doc/latex/scsnowman/
%{_texmfdistdir}/tex/latex/scsnowman/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10610 |21cr|texlive-sdaps-65345-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sdaps

Summary:	LaTeX support files for SDAPS
Name:		texlive-sdaps
Version:	65345
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(environ.sty)
#Requires:	tex(lastpage.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pgf.sty)
#Requires:	tex(qrcode.sty)
#Requires:	tex(sectsty.sty)
#Requires:	tex(translator.sty)
Provides:	tex(sdapsarray.sty) = 2024
Provides:	tex(sdapsbase.sty) = 2024
Provides:	tex(sdapsclassic.cls) = 2024
Provides:	tex(sdapscode128.tex) = 2024
Provides:	tex(sdapslayout.sty) = 2024
Provides:	tex(sdapspdf.sty) = 2024
BuildArch:	noarch

%description
This bundle contains LaTeX classes and packages to create
machine readable questionnaires. Metadata is generated for the
whole document and it is possible to process created forms
fully automatically using the SDAPS main program. Features
include: PDF Form generation Advanced array like layouting Can
flow over multiple pages and repeats the header automatically
Optional document wide alignment of array environments Has
complex layout features like rotating the headers to safe space
Ability to exchange rows and columns on the fly Different
question types: Freeform text Single/multiple choice questions
Range questions Layouting questions in rows or columns
Possibility to pre-fill questionnaires from LaTeX Documentation
can be found online at https://sdaps.org/class-doc.

%files
%doc %{_texmfdistdir}/doc/latex/sdaps
%{_texmfdistdir}/tex/latex/sdaps

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10611 |21cr|texlive-sduthesis-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sduthesis
Version:	1.2.1
Release:	1
Summary:	Thesis Template of Shandong University
Group:	Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/sduthesis
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sduthesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sduthesis.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sduthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Thesis Template of Shandong University.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sduthesis
%doc %{_texmfdistdir}/doc/latex/sduthesis
%doc %{_texmfdistdir}/source/latex/sduthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10612 |21cr|texlive-se2thesis-65645-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname se2thesis

Summary:	A Thesis Class for the Chair of Software Engineering II at the University of Passau, Germany
Name:		texlive-se2thesis
Version:	65645
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(se2colors.sty) = 2024
Provides:	tex(se2fonts.sty) = 2024
Provides:	tex(se2thesis.cls) = 2024
BuildArch:	noarch

%description
The se2thesis bundle provides a document class for writing a
theses with the Chair of Software Engineering II at the
University of Passau, Germany. The class is based on Markus
Kohm's KOMA-Script classes and provides several additions and
customizations to these classes. While the class provides some
basic settings, mostly regrading the type area, fonts, and the
title page, it still provides large degrees of freedom to its
users. However, the package's documentation also provides
recommendations regarding several aspects, for example,
recommending BibLaTeX for bibliographies.

%files
%doc %{_texmfdistdir}/doc/latex/se2thesis
%{_texmfdistdir}/tex/latex/se2thesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10613 |21cr|texlive-secnum-61813-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname secnum

Summary:	A macro to format section numbering intuitively
Name:		texlive-secnum
Version:	61813
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(secnum.sty) = 2024
BuildArch:	noarch

%description
This package provides a macro \setsecnum to format section
numbering intuitively. \setsecnum{1.1.1} will set the section
numbering format to arabic.arabic.arabic and the depth to 3.
The package uses LaTeX3.

%files
%doc %{_texmfdistdir}/doc/latex/secnum
%{_texmfdistdir}/tex/latex/secnum

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10614 |21cr|texlive-sectionbreak-50339-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sectionbreak

Summary:	LaTeX support for section breaks
Name:		texlive-sectionbreak
Version:	50339
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(sectionbreak.sty) = 2024
BuildArch:	noarch

%description
This package provides LaTeX support for section breaks, used
mainly in fiction books to signal changes in a story, like
changes in time, location, etc. It supports the asterism
symbol, text content, or custom macros as the section break
mark symbol.

%files
%doc %{_texmfdistdir}/doc/latex/sectionbreak/
%{_texmfdistdir}/tex/latex/sectionbreak/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10615 |21cr|texlive-seealso-43595-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname seealso

Summary:	Improve the performance of \see macros with makeindex
Name:		texlive-seealso
Version:	43595
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Provides:	tex-seealso = 2024
Provides:	tex(seealso.sty) = 2024
BuildArch:	noarch

%description
The package amends the \see and \seealso macros that are used
in building indexes with makeindex, to deal with repetitions,
and to ensure page numbers are present in the actual index
entries. on these indirecty

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/seealso/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10616 |21cr|texlive-selinput-53098-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname selinput

Summary:	Semi-automatic detection of input encoding
Name:		texlive-selinput
Version:	53098
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(selinput.sty) = 2024
BuildArch:	noarch

%description
This package selects the input encoding by specifying pairs of
input characters and their glyph names.

%files
%doc %{_texmfdistdir}/doc/latex/selinput
%{_texmfdistdir}/tex/latex/selinput

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10617 |21cr|texlive-semantex-65679-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname semantex

Summary:	Semantic, keyval-based mathematics
Name:		texlive-semantex
Version:	65679
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(l3keys2e.sty)
Requires:	tex(leftindex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(semtex.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(semantex.sty) = 2024
Provides:	tex(stripsemantex.sty) = 2024
BuildArch:	noarch

%description
The SemanTeX package for LaTeX delivers a more semantic,
systematized way of writing mathematics, compared to the
classical math syntax in LaTeX. The system uses keyval syntax,
and the user can define their own keys and customize the system
down to the last detail. At the same time, care has been taken
to make the syntax as simple, natural, practical, and
lightweight as possible. Furthermore, the package has a
companion package, called stripsemantex, which allows you to
completely strip your documents of SemanTeX markup to prepare
them e.g. for publication. The package is still in beta, but is
considered feature-complete and more or less stable, so using
it at this point should be safe. Still, suggestions, ideas, and
bug reports are more than welcome!

%files
%doc %{_texmfdistdir}/doc/latex/semantex
%{_texmfdistdir}/tex/latex/semantex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10618 |21cr|texlive-semantic-markup-53607-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname semantic-markup

Summary:	Meaningful semantic markup in the spirit of the Text Encoding Initiative
Name:		texlive-semantic-markup
Version:	53607
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(semantic-markup.sty) = 2024
BuildArch:	noarch

%description
The package provides simple commands to allow authors
(especially scholars in the humanities) to write with a focus
on content rather than presentation. The commands are inspired
by the XML elements of the Text Encoding Initiative. Commands
like \term and \foreign are aliases for \emph. \quoted and
\soCalled are aliases for quoting commands. These commands
could be easily redefined for different formats. The package
also provides a footnote environment so that long footnotes can
be more cleanly separated from the main text. Because the
author is a music scholar, the package also includes some
macros for musical symbols and other basic notations for
musical analysis.

%files
%doc %{_texmfdistdir}/doc/latex/semantic-markup/
%{_texmfdistdir}/tex/latex/semantic-markup/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10619 |21cr|texlive-semaphor-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/semaphor
# catalog-date 2008-04-15 09:54:26 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-semaphor
Version:	20190228
Release:	1
Summary:	Semaphore alphabet font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/semaphor
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/semaphor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/semaphor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These fonts represent semaphore in a highly schematic, but very
clear, fashion. The fonts are provided as MetaFont source, and
in both OpenType and Adobe Type 1 formats.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/semaphor/smfb10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfbsl10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfeb10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfebsl10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfer10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfesl10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfett10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfpb10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfpbsl10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfpr10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfpsl10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfptt10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfr10-1.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfr10-2.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfr10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smfsl10.afm
%{_texmfdistdir}/fonts/afm/public/semaphor/smftt10.afm
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfb10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfbsl10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfeb10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfebsl10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfer10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfesl10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfett10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfpb10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfpbsl10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfpr10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfpsl10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfptt10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfr10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smfsl10.enc
%{_texmfdistdir}/fonts/enc/dvips/semaphor/smftt10.enc
%{_texmfdistdir}/fonts/map/dvips/semaphor/semaf.map
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfb10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfbsl10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfeb10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfebsl10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfer10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfesl10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfett10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfpb10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfpbsl10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfpr10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfpsl10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfptt10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfr10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smfsl10.otf
%{_texmfdistdir}/fonts/opentype/public/semaphor/smftt10.otf
%{_texmfdistdir}/fonts/source/public/semaphor/Makefile
%{_texmfdistdir}/fonts/source/public/semaphor/README
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/semaf.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfbf10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfebf10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfer10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfesl10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfett10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfpbf10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfpr10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfpsl10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfptt10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfr10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smfsl10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/metafont/smftt10.mf
%{_texmfdistdir}/fonts/source/public/semaphor/pfb2otf.pe
%{_texmfdistdir}/fonts/source/public/semaphor/semaf.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfb10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfbsl10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfeb10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfebsl10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfer10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfesl10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfett10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfpb10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfpbsl10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfpr10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfpsl10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfptt10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfr10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smfsl10.mp
%{_texmfdistdir}/fonts/source/public/semaphor/smftt10.mp
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfb10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfbsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfeb10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfebsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfer10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfesl10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfett10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfpb10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfpbsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfpr10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfpsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfptt10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfr10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smfsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/semaphor/smftt10.tfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfb10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfb10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfbsl10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfbsl10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfeb10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfeb10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfebsl10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfebsl10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfer10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfer10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfesl10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfesl10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfett10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfett10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfpb10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfpb10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfpbsl10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfpbsl10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfpr10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfpr10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfpsl10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfpsl10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfptt10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfptt10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfr10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfr10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smfsl10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smfsl10.pfm
%{_texmfdistdir}/fonts/type1/public/semaphor/smftt10.pfb
%{_texmfdistdir}/fonts/type1/public/semaphor/smftt10.pfm
%{_texmfdistdir}/tex/context/third/semaphor/t-type-semaf.tex
%{_texmfdistdir}/tex/latex/semaphor/il2semaf.fd
%{_texmfdistdir}/tex/latex/semaphor/semaf.fd
%{_texmfdistdir}/tex/plain/semaphor/semaf.tex
%doc %{_texmfdistdir}/doc/fonts/semaphor/README
%doc %{_texmfdistdir}/doc/fonts/semaphor/example.pdf
%doc %{_texmfdistdir}/doc/fonts/semaphor/example.tex
%doc %{_texmfdistdir}/doc/fonts/semaphor/test-context.pdf
%doc %{_texmfdistdir}/doc/fonts/semaphor/test-context.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10620 |21cr|texlive-semesterplanner-56841-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname semesterplanner

Summary:	Create beautiful semester timetables and more
Name:		texlive-semesterplanner
Version:	56841
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(color.sty)
#Requires:	tex(fontawesome.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(schedule.sty)
#Requires:	tex(tikz.sty)
Provides:	tex(semesterplanner.sty) = 2024
BuildArch:	noarch

%description
This package defines several useful environments for a
beautiful printable semester plan. It includes a timetable
(which is using the schedule-Package) as well as appointments,
deadlines, and exams. The package requires color, TikZ,
schedule, and fontawesome. Furthermore, documents need to be
compiled with LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/semesterplanner
%{_texmfdistdir}/tex/lualatex/semesterplanner

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10621 |21cr|texlive-semproc-37568.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname semproc

Summary:	Seminar proceedings
Name:		texlive-semproc
Version:	37568.0.1
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(biblatex.sty)
#Requires:	tex(bookmark.sty)
#Requires:	tex(csquotes.sty)
#Requires:	tex(etoc.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(hyperref.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(xcolor.sty)
Provides:	tex-semproc = 2024
Provides:	tex(semproc.cls) = 2024
BuildArch:	noarch

%description
The package provides functionality for typesetting seminar
proceedings based on KOMA-Script's scrreprt class and etoc. It
offers an alternative to \chapter that typesets the speaker and
if necessary the typist of the notes for the talk in question.
Moreover, the class provides two types of table of contents. A
global table of contents showing only the talks of the seminar
and the respective speakers and a local table of contents for
each talk showing the sections and subsections of the
respective talk.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/semproc/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10622 |21cr|texlive-semtex-56530-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname semtex

Summary:	Deals with stripped SemanTeX documents
Name:		texlive-semtex
Version:	56530
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xparse.sty)
Provides:	tex(semtex.sty) = 2024
BuildArch:	noarch

%description
This package is a small LaTeX package that adds a collection of
simple macros for parentheses and bullets. It exists for one
purpose only: To be loaded by documents which were originally
typeset using the package SemanTeX, but which have been
stripped of SemanTeX markup using the package stripsemantex
which is part of SemanTeX. Therefore, unless your document is
one of those, simply don't use this package. And even if your
document is one of those, there is a good chance you will not
have to load it after all. In most cases, you will be able to
replace the macros it provides by macros from other packages.

%files
%doc %{_texmfdistdir}/doc/latex/semtex
%{_texmfdistdir}/tex/latex/semtex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10623 |21cr|texlive-sesamanuel-0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sesamanuel
Version:	0.6
Release:	1
Summary:	Class and package for sesamath books or paper
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sesamanuel
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sesamanuel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sesamanuel.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sesamanuel.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sesamath Society's goal is to develop and freely diffuse  tough the
Internet pedagogical materials  and professional tools for teaching
Mathematics.
sesamanuel class has been written to compose a student's classroom
book with LaTeX.
The sesamanuel package allows to use some special commands of the
sesamanuel class by using an other class as such as beamer.
The sesamanualTIKZ package is needed to compile parts of the
sesamath's book that content TIKZ pictures.
No transaltion of the class, the packages and the user's manual have
been scheduled.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sesamanuel/sesamanuel.cls
%{_texmfdistdir}/tex/latex/sesamanuel/sesamanuel.sty
%{_texmfdistdir}/tex/latex/sesamanuel/sesamanuelTIKZ.sty
%doc %{_texmfdistdir}/doc/latex/sesamanuel/Lisez.moi
%doc %{_texmfdistdir}/doc/latex/sesamanuel/logotex.eps
%doc %{_texmfdistdir}/doc/latex/sesamanuel/read.me
%doc %{_texmfdistdir}/doc/latex/sesamanuel/sesamanuel.pdf
%doc %{_texmfdistdir}/doc/latex/sesamanuel/sesamath-doc-fr.pdf
%doc %{_texmfdistdir}/doc/latex/sesamanuel/sesamath-doc-fr.tex
%doc %{_texmfdistdir}/doc/latex/sesamanuel/tiger.eps

#- source
%doc %{_texmfdistdir}/source/latex/sesamanuel/sesamanuel.dtx
%doc %{_texmfdistdir}/source/latex/sesamanuel/sesamanuel.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10624 |21cr|texlive-sesstime-49750-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sesstime

Summary:	Session and timing information in lecture notes
Name:		texlive-sesstime
Version:	49750
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(sesstime.sty) = 2024
BuildArch:	noarch

%description
This LaTeX2e package makes it possible to add timing marks to
lecture notes in order to help managing the time available for
presenting a given section of the document. It also provides
tools to record and estimate the progress throughout the
course.

%files
%doc %{_texmfdistdir}/doc/latex/sesstime/
%{_texmfdistdir}/tex/latex/sesstime/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10625 |21cr|texlive-seu-ml-assign-62933-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname seu-ml-assign

Summary:	Southeast University Machine Learning Assignment template
Name:		texlive-seu-ml-assign
Version:	62933
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(seu-ml-assign.cls) = 2024
BuildArch:	noarch

%description
This is a template for the Southeast University Machine
Learning Assignment that can be easily adapted to other usages.
This template features a colorful theme that makes it look
elegant and attractive. You can also find the template
available on Overleaf.

%files
%doc %{_texmfdistdir}/doc/latex/seu-ml-assign
%{_texmfdistdir}/tex/latex/seu-ml-assign

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10626 |21cr|texlive-seuthesix-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-seuthesix
Version:	1.2.1
Release:	1
Summary:	Southeast University, Nanjing, China
Group:	Publishing
URL:		https://ctan.org/pkg/seuthesix
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/seuthesix.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/seuthesix.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/seuthesix.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Southeast University, Nanjing, China

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/seuthesix
%{_texmfdistdir}/bibtex/bst/seuthesix
%doc %{_texmfdistdir}/doc/latex/seuthesix
%doc %{_texmfdistdir}/source/latex/seuthesix

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10627 |21cr|texlive-shade-1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22212
# category Package
# catalog-ctan /macros/generic/shade
# catalog-date 2011-04-25 22:01:30 +0200
# catalog-license lppl1
# catalog-version 1
Name:		texlive-shade
Version:	1
Release:	9
Summary:	Shade pieces of text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/shade
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shade.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shade.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a shaded backdrop to a box of text. It
uses a Metafont font (provided) which generates to appropriate
shading dependent on the resolution used in the Metafont
printer parameters.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/shade/shade.mf
%{_texmfdistdir}/tex/generic/shade/shade.tex
%doc %{_texmfdistdir}/doc/generic/shade/README
%doc %{_texmfdistdir}/doc/generic/shade/description.pdf
%doc %{_texmfdistdir}/doc/generic/shade/description.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10628 |21cr|texlive-shapes-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-shapes
Version:	1.1
Release:	1
Summary:	Draw polygons, reentrant stars, and fractions in circles with MetaPost
Group:		Publishing
URL:		https://ctan.org/tex-archive/graphics/metapost/contrib/macros/shapes
License:	lppl1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shapes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shapes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shapes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The shapes set of macros allows drawing regular polygons; their
corresponding reentrant stars in all their variations; and
fractionally filled circles (useful for visually demonstrating
the nature of fractions) in MetaPost.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10629 |21cr|texlive-shdoc-41991-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname shdoc

Summary:	Float environment to document the shell commands of a terminal session
Name:		texlive-shdoc
Version:	41991
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(caption.sty)
#Requires:	tex(float.sty)
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
#Requires:	tex(mdframed.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex-shdoc = 2024
Provides:	tex(shdoc.sty) = 2024
BuildArch:	noarch

%description
The package provides a simple, though fancy float environment
to document terminal sessions -- like command executions or
shell operations. The look and feel of the package output
imitates the look of a shell prompt.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/shdoc/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10630 |21cr|texlive-shobhika-50555-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname shobhika

Summary:	An OpenType Devanagari font designed for scholars
Name:		texlive-shobhika
Version:	50555
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(Shobhika-Bold.otf) = 2024
Provides:	tex(Shobhika-Regular.otf) = 2024
BuildArch:	noarch

%description
This package provides a free, open source, Unicode compliant,
OpenType font with support for Devanagari, Latin, and Cyrillic
scripts. It is available in two weights--regular and bold. The
font is designed with over 1600 Devanagari glyphs, including
support for over 1100 conjunct consonants, as well as vedic
accents. The Latin component of the font not only supports a
wide range of characters required for Roman transliteration of
Sanskrit, but also provides a subset of regularly used
mathematical symbols for scholars working with scientific and
technical documents. The project has been launched under the
auspices of the Science and Heritage Initiative (SandHI) at IIT
Bombay, and builds upon the following two fonts for its
Devanagari and Latin components respectively: (i) Yashomudra by
Rajya Marathi Vikas Samstha, and (ii) PT Serif by ParaType. We
would like to thank both these organisations for releasing
their fonts under the SIL Open Font Licence, which has enabled
us to create Shobhika.

%files
%doc %{_texmfdistdir}/doc/fonts/shobhika/
%{_texmfdistdir}/fonts/opentype/public/shobhika/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10631 |21cr|texlive-short-math-guide-46126-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname short-math-guide

Summary:	Guide to using amsmath and related packages to typeset mathematical notation with LaTeX
Name:		texlive-short-math-guide
Version:	46126
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The Short Math Guide is intended to be a concise introduction
to the use of the facilities provided by amsmath and various
other LaTeX packages for typesetting mathematical notation.
Originally created by Michael Downes of the American
Mathematical Society based only on amsmath, it has been brought
up to date with references to related packages and other useful
information.

%files
%doc %{_texmfdistdir}/doc/latex/short-math-guide/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10632 |21cr|texlive-shortmathj-54407-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname shortmathj

Summary:	Automatically shortify titles of mathematical journals
Name:		texlive-shortmathj
Version:	54407
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(shortmathj.sty) = 2024
BuildArch:	noarch

%description
This small dummy package just contains a simple list of full
and short journal names aswritten in AMS standard:
https://mathscinet.ams.org/msnhtml/serials.pdf

%files
%doc %{_texmfdistdir}/doc/latex/shortmathj
%{_texmfdistdir}/tex/latex/shortmathj

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10633 |21cr|texlive-showhyphenation-63578-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname showhyphenation

Summary:	Marking of hyphenation points
Name:		texlive-showhyphenation
Version:	63578
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(showhyphenation.sty) = 2024
BuildArch:	noarch

%description
The package shows the hyphenation points in the document by
either inserting small triangles below the baseline or by
typesetting explicit hyphens. The markers are correctly placed
even within ligatures and their size adjusts to the font size.
By option the markers can be placed behind or in front of the
glyphs. The package requires LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/showhyphenation
%{_texmfdistdir}/tex/lualatex/showhyphenation

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10634 |21cr|texlive-showkerning-63708-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname showkerning

Summary:	Showing kerns in a document
Name:		texlive-showkerning
Version:	63708
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(showkerning.sty) = 2024
BuildArch:	noarch

%description
The package displays all kerning values in the form of colored
bars directly at the respective position in the document.
Positive values are displayed in green, negative values in red.
The width of the bars corresponds exactly to the respective
kerning value. By option the bars can be placed behind or in
front of the glyphs. The package requires LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/showkerning
%{_texmfdistdir}/tex/lualatex/showkerning

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10635 |21cr|texlive-showtags-1.05-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20336
# category Package
# catalog-ctan /macros/latex/contrib/showtags
# catalog-date 2010-11-05 08:48:20 +0100
# catalog-license pd
# catalog-version 1.05
Name:		texlive-showtags
Version:	1.05
Release:	8
Summary:	Print the tags of bibliography entries
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/showtags
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showtags.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showtags.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Prints the tag right-aligned on each line of the bibliography.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/showtags/showtags.sty
%doc %{_texmfdistdir}/doc/latex/showtags/showtags-doc.pdf
%doc %{_texmfdistdir}/doc/latex/showtags/showtags-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10636 |21cr|texlive-shtthesis-62441-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname shtthesis

Summary:	An unofficial LaTeX thesis template for ShanghaiTech University
Name:		texlive-shtthesis
Version:	62441
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	biber
Requires:	latexmk
Requires:	tex(alphalph.sty)
#Requires:	tex(biblatex.sty)
#Requires:	tex(booktabs.sty)
#Requires:	tex(caption.sty)
#Requires:	tex(colortbl.sty)
#Requires:	tex(ctex.sty)
#Requires:	tex(datetime.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(fancyhdr.sty)
#Requires:	tex(fmtcount.sty)
#Requires:	tex(lastpage.sty)
#Requires:	tex(listings.sty)
Requires:	texlive-tlpkg
Requires:	texlive-biblatex-gb7714-2015
Requires:	texlive-kpathsea
Requires:	texlive-lua-alt-getopt
Requires:	texlive-tex-gyre
Requires:	texlive-xits
#Requires:	tex(lualatex-math.sty)
#Requires:	tex(mathtools.sty)
#Requires:	tex(ntheorem.sty)
#Requires:	tex(tocvsec2.sty)
Requires:	tex(transparent.sty)
#Requires:	tex(undolabl.sty)
#Requires:	tex(unicode-math.sty)
#Requires:	tex(xstring.sty)
Provides:	tex(shtthesis.cls) = 2024
BuildArch:	noarch

%description
This package, forked from ucasthesis, is an unofficial LaTeX
thesis template for ShanghaiTech University and satisfies all
format requirements of the school. The user just needs to set
\documentclass{shtthesis} and to set up mandatory information
via \shtsetup, then his or her thesis document will be typeset
properly.

%files
%doc %{_texmfdistdir}/doc/latex/shtthesis
%{_texmfdistdir}/tex/latex/shtthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10637 |21cr|texlive-shuffle-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/shuffle
# catalog-date 2008-10-30 09:46:08 +0100
# catalog-license pd
# catalog-version 1.0
Name:		texlive-shuffle
Version:	1.0
Release:	8
Summary:	A symbol for the shuffle product
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/shuffle
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shuffle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shuffle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shuffle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a LaTeX package and a font (as MetaFont
source) for the shuffle product which is used in some part of
mathematics and physics.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/shuffle/shuffle.mf
%{_texmfdistdir}/fonts/source/public/shuffle/shuffle10.mf
%{_texmfdistdir}/fonts/source/public/shuffle/shuffle7.mf
%{_texmfdistdir}/fonts/tfm/public/shuffle/shuffle10.tfm
%{_texmfdistdir}/fonts/tfm/public/shuffle/shuffle7.tfm
%{_texmfdistdir}/tex/latex/shuffle/Ushuffle.fd
%{_texmfdistdir}/tex/latex/shuffle/shuffle.sty
%doc %{_texmfdistdir}/doc/latex/shuffle/README
%doc %{_texmfdistdir}/doc/latex/shuffle/shuffle.pdf
#- source
%doc %{_texmfdistdir}/source/latex/shuffle/shuffle.dtx
%doc %{_texmfdistdir}/source/latex/shuffle/shuffle.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10638 |21cr|texlive-sidenotesplus-63867-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sidenotesplus

Summary:	Place referenced notes, alerts, figures and tables into the document margin
Name:		texlive-sidenotesplus
Version:	63867
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(sidenotesplus.sty) = 2024
BuildArch:	noarch

%description
Sidenotesplus is a comprehensive package for placing labeled or
referenced notes, temporary alerts, bibliography references,
figures and tables into the margin. Marginals can be either
floated or at fixed positions relative to the text. Twoside
symmetry is preserved. For BibLaTeX users, macros for side
references are provided. Three margin styles are provided.
Two-page symmetric layouts either as (i) Ragged outer with note
reverences in the margin separator or (ii) justified with last
line ragged outer. And (iii) a classic look, justified with
last line ragged right and note reference to the left of the
note, but two-page symmetry is lost. The command \sidenote
mimics the \footnote command and provides labelled (numbers,
alphabetic, roman) references. However, un-numbered and custom
symbols can also be specified. Temporary sidealerts are
rendered only if the package option alerton is specified.
Alerts are useful as to do reminders during document
development. Furthermore, captions for figures and tables can
also be placed into margin. Also, full width environments for
figures, tables and text are provided. The text environment can
be partially widened, suitable if that extra space for an
equation is required.

%files
%doc %{_texmfdistdir}/doc/latex/sidenotesplus
%{_texmfdistdir}/tex/latex/sidenotesplus

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10639 |21cr|texlive-signchart-39707-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname signchart

Summary:	Create beautifully typeset sign charts
Name:		texlive-signchart
Version:	39707
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-signchart = 2024
Provides:	tex(signchart.sty) = 2024
BuildArch:	noarch

%description
The package allows users to easily typeset beautiful looking
sign charts directly into their (La)TeX document.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/signchart/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10640 |21cr|texlive-sillypage-66349-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sillypage

Summary:	John Cleese's Silly Walk as page numbering style
Name:		texlive-sillypage
Version:	66349
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(sillypage.sty) = 2024
BuildArch:	noarch

%description
This simple LaTeX package provides John Cleese's iconic silly
walk routine as a page numbering style. Other counters, as well
as integers, can be typeset in this "silly" style, too.

%files
%doc %{_texmfdistdir}/doc/latex/sillypage
%{_texmfdistdir}/tex/latex/sillypage

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10641 |21cr|texlive-simplebnf-65485-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname simplebnf

Summary:	A simple package to format Backus-Naur form (BNF)
Name:		texlive-simplebnf
Version:	65485
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(mathtools.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(simplebnf.sty) = 2024
BuildArch:	noarch

%description
This package provides a simple way to format Backus-Naur form
(BNF). The included bnfgrammar environment parses BNF
expressions (possibly annotated), so users can write readable
BNF expressions in their documents. The package requires expl3,
xparse, and mathtools.

%files
%doc %{_texmfdistdir}/doc/latex/simplebnf
%{_texmfdistdir}/tex/latex/simplebnf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10642 |21cr|texlive-simpleicons-66617-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname simpleicons

Summary:	Simple Icons for LaTeX
Name:		texlive-simpleicons
Version:	66617
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(simpleiconsEight.enc) = 2024
Provides:	tex(simpleiconsFive.enc) = 2024
Provides:	tex(simpleiconsFour.enc) = 2024
Provides:	tex(simpleiconsglyphs-pdftex.tex) = 2024
Provides:	tex(simpleiconsglyphs-xeluatex.tex) = 2024
Provides:	tex(simpleicons.map) = 2024
Provides:	tex(simpleiconsNine.enc) = 2024
Provides:	tex(simpleiconsOne.enc) = 2024
Provides:	tex(simpleiconsOneZero.enc) = 2024
Provides:	tex(simpleiconsSeven.enc) = 2024
Provides:	tex(simpleiconsSix.enc) = 2024
Provides:	tex(simpleicons.sty) = 2024
Provides:	tex(simpleiconsThree.enc) = 2024
Provides:	tex(simpleiconsTwo.enc) = 2024
Provides:	tex(usimpleiconsEight.fd) = 2024
Provides:	tex(usimpleiconsFive.fd) = 2024
Provides:	tex(usimpleiconsFour.fd) = 2024
Provides:	tex(usimpleiconsNine.fd) = 2024
Provides:	tex(usimpleiconsOne.fd) = 2024
Provides:	tex(usimpleiconsOneZero.fd) = 2024
Provides:	tex(usimpleiconsSeven.fd) = 2024
Provides:	tex(usimpleiconsSix.fd) = 2024
Provides:	tex(usimpleiconsThree.fd) = 2024
Provides:	tex(usimpleiconsTwo.fd) = 2024
BuildArch:	noarch

%description
Similar to FontAwesome icons being provided on LaTeX by the
fontawesome package, this package aims to do the same with
Simple Icons. For reference, visit their website:
https://simpleicons.org/.

%files
%doc %{_texmfdistdir}/doc/fonts/simpleicons
%{_texmfdistdir}/fonts/enc/dvips/simpleicons
%{_texmfdistdir}/fonts/map/dvips/simpleicons
%{_texmfdistdir}/fonts/opentype/public/simpleicons
%{_texmfdistdir}/fonts/tfm/public/simpleicons
%{_texmfdistdir}/fonts/type1/public/simpleicons
%{_texmfdistdir}/tex/latex/simpleicons

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10643 |21cr|texlive-simpleinvoice-45673-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname simpleinvoice

Summary:	Easy typesetting of invoices
Name:		texlive-simpleinvoice
Version:	45673
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(simpleinvoice.sty) = 2024
BuildArch:	noarch

%description
This package lets you easily typeset professional-looking
invoices. The user specifies the content of the invoice by
different \setPROPERTY commands, and an invoice is generated
automatically with the \makeinvoice command.

%files
%doc %{_texmfdistdir}/doc/latex/simpleinvoice/
%{_texmfdistdir}/tex/latex/simpleinvoice/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10644 |21cr|texlive-simplekv-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-simplekv
Version:	0.2
Release:	1
Summary:	A simple key/value system for TeX and LaTeX
Group:		Publishing
URL:		https://ctan.org/pkg/simplekv
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplekv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplekv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a simple key/value system for TEX and LATEX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10645 |21cr|texlive-simplenodes-62888-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname simplenodes

Summary:	Simple nodes in four colors written in TikZ for LaTeX
Name:		texlive-simplenodes
Version:	62888
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(simplenodes.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX macro package for generating simple node-based
flow graphs or diagrams built upon the TikZ package. The
package provides two basic commands, one to generate a node and
one to create links between nodes. The positioning of the nodes
is not handled by the package itself but is preferably done in
a tabular environment. In total, four simple node types are
defined, loosely based on the nomenclature and color patterns
of the popular Java script Bootstrap.

%files
%doc %{_texmfdistdir}/doc/latex/simplenodes
%{_texmfdistdir}/tex/latex/simplenodes

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10646 |21cr|texlive-simpleoptics-62977-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname simpleoptics

Summary:	Drawing lenses and mirrors for optical diagrams
Name:		texlive-simpleoptics
Version:	62977
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(simpleoptics.sty) = 2024
BuildArch:	noarch

%description
This package provides some of macros for drawing simple lenses
and mirrors for use in optical diagrams.

%files
%doc %{_texmfdistdir}/doc/latex/simpleoptics
%{_texmfdistdir}/tex/latex/simpleoptics

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10647 |21cr|texlive-simple-resume-cv-20161225-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-simple-resume-cv
Version:	20161225
Release:	1
Summary:	Template for a simple resume or curriculum vitae (CV), in XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/macros/xetex/latex/simple-resume-cv
License:	PD
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/simple-resume-cv.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/simple-resume-cv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Template for a simple resume or curriculum vitae (CV), in
XeLaTeX. Simple template that can be further customized or
extended, with numerous examples.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10648 |21cr|texlive-simpler-wick-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-simpler-wick
Version:	1.0.0 
Release:	1
Summary:	Simpler Wick contractions
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/simpler-wick
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simpler-wick.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simpler-wick.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
In every quantum field theory course, there will be a chapter
about Wick's theorem and how it can be used to convert a very
large product of many creation and annihilation operators into
something more tractable and normal ordered. The contractions
are denoted with a square bracket over the operators which are
being contracted, which used to be rather annoying to typeset
in LaTeX as the only other package available was simplewick,
which is rather unwieldy. This package provides a simpler
syntax for Wick contractions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/simpler-wick/simpler-wick.sty
%doc %{_texmfdistdir}/doc/latex/simpler-wick/LICENSE
%doc %{_texmfdistdir}/doc/latex/simpler-wick/README.md
%doc %{_texmfdistdir}/doc/latex/simpler-wick/simpler-wick.pdf
%doc %{_texmfdistdir}/doc/latex/simpler-wick/simpler-wick.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10649 |21cr|texlive-simples-matrices-63802-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname simples-matrices

Summary:	Define matrices by given list of values
Name:		texlive-simples-matrices
Version:	63802
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(simples-matrices.sty) = 2024
BuildArch:	noarch

%description
Macros to define and write matrices whose coefficients are
given row by row in a list of values separated by commas.

%files
%doc %{_texmfdistdir}/doc/latex/simples-matrices
%{_texmfdistdir}/tex/latex/simples-matrices

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10650 |21cr|texlive-simple-thesis-dissertation-20220324-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-simple-thesis-dissertation
Version:	20220324
Release:	1
Summary:	Template for a simple thesis or dissertation
Group:		Publishing
URL:		https://ctan.org/pkg/simple-thesis-dissertation
License:	https://ctan.org/license/pd
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simple-thesis-dissertation.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simple-thesis-dissertation.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Template for a simple thesis or dissertation (Ph.D. or master's degree) or technical report, in XELATEX. 
Simple template that can be further customized or extended, with numerous examples. 
Consistent style for figures, tables, mathematical theorems, definitions, lemmas, etc.

#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/xelatex/simple-thesis-dissertation
%doc %{_texmfdistdir}/doc/xelatex/simple-thesis-dissertation


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10651 |21cr|texlive-simplivre-65475-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname simplivre

Summary:	Write your books in a simple and clear way
Name:		texlive-simplivre
Version:	65475
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(minimalist.sty)
Provides:	tex(simplivre.cls) = 2024
BuildArch:	noarch

%description
This package provides a LaTeX class for typesetting books with
a simple and clear design. Currently, it has native support for
Chinese (simplified and traditional), English, French, German,
Italian, Japanese, Portuguese (European and Brazilian), Russian
and Spanish typesetting. It compiles with either XeLaTeX or
LuaLaTeX. This is part of the minimalist class series and
depends on minimalist.sty from the minimalist package. The
package name "simplivre" is taken from the French words
"simple" and "livre" (= "book").

%files
%doc %{_texmfdistdir}/doc/latex/simplivre
%{_texmfdistdir}/tex/latex/simplivre

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10652 |21cr|texlive-skeldoc-57922-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname skeldoc

Summary:	Placeholders for unfinished documents
Name:		texlive-skeldoc
Version:	57922
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(booktabs.sty)
#Requires:	tex(enotez.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(expl3.sty)
#Requires:	tex(hyperref.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(marginnote.sty)
#Requires:	tex(tabularx.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(skeldoc.sty) = 2024
BuildArch:	noarch

%description
This package lets you produce placeholder elements for
documents under development, similar to the skeleton screens
used while loading contents in many applications and websites.
It also has a mechanism for attaching explanatory endnotes to
these placeholders, or to anything else in your document. The
same note mechanism can also be used with ordinary content,
e.g., as a to-do mechanism.

%files
%doc %{_texmfdistdir}/doc/latex/skeldoc
%{_texmfdistdir}/tex/latex/skeldoc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10653 |21cr|texlive-skills-56734-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname skills

Summary:	Create proficiency tests
Name:		texlive-skills
Version:	56734
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(glossaries.sty)
#Requires:	tex(iftex.sty)
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(skills.sty) = 2024
BuildArch:	noarch

%description
This package attempts to make it easy for even a LaTeX novice
to prepare proficiency tests, especially in combination with
the exam document class. Thus, almost all command names are
very similar. After defining skills in the preamble or in an
external file, they are declared using labels, and can
optionally be set as global skills. A skills table is generated
to summarize the evaluated competencies and to allow for
writing down the resulting proficiency level. A user's guide
attempts to explain all of the possibilities in a readable way,
with many examples.

%files
%doc %{_texmfdistdir}/doc/latex/skills
%{_texmfdistdir}/tex/latex/skills

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10654 |21cr|texlive-skmath-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-skmath
Version:	0.5
Release:	1
Summary:	Extensions to the maths command repertoir
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/skmath
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skmath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skmath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skmath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a selection of new maths commands and
improved re-definitions of existing commands.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/skmath
%doc %{_texmfdistdir}/doc/latex/skmath
#- source
%doc %{_texmfdistdir}/source/latex/skmath

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10655 |21cr|texlive-skull-0.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25608
# category Package
# catalog-ctan /fonts/skull
# catalog-date 2011-04-11 22:34:22 +0200
# catalog-license gpl
# catalog-version 0.1
Name:		texlive-skull
Version:	0.1
Release:	9
Summary:	A font to draw a skull
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/skull
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skull.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skull.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The font (defined in MetaFont) defines a single character, a
black solid skull. A package is supplied to make this character
available as a symbol in maths mode.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/skull/skull.mf
%{_texmfdistdir}/fonts/tfm/public/skull/skull.tfm
%{_texmfdistdir}/tex/latex/skull/skull.sty
#- source
%doc %{_texmfdistdir}/source/fonts/skull/skull.dtx
%doc %{_texmfdistdir}/source/fonts/skull/skull.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10656 |21cr|texlive-smart-eqn-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname smart-eqn

Summary:	Automatic math symbol styling for LaTeX documents
Name:		texlive-smart-eqn
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(smart-eqn.sty) = 2024
BuildArch:	noarch

%description
In LaTeX typesetting, one usually needs to use different
variants of a math symbol to clarify the meanings. For example,
in linear algebra literature, it is common to use boldfaced
symbols to represent vectors, and normal symbols to represent
scalars. However, applying these variants by typing \mathbf,
\mathrm commands manually can be daunting. This package aims to
provide an automatic and customizable approach for math symbol
styling which eliminates the need to enter style commands
repeatedly.

%files
%doc %{_texmfdistdir}/doc/latex/smart-eqn
%{_texmfdistdir}/tex/latex/smart-eqn

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10657 |21cr|texlive-smartunits-39592-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname smartunits

Summary:	Converting between common metric and Imperial units
Name:		texlive-smartunits
Version:	39592
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-smartunits = 2024
Provides:	tex(smartunits.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package implements a \SmartUnit macro for converting
between (some) metric and Imperial units. The package requires
pgfkeys and siunitx.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/smartunits/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10658 |21cr|texlive-smflatex-58910-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname smflatex

Summary:	Classes for Societe mathematique de France publications
Name:		texlive-smflatex
Version:	58910
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(ae.sty)
#Requires:	tex(amscd.sty)
#Requires:	tex(amssymb.sty)
#Requires:	tex(babel.sty)
Requires:	tex(fontenc.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(textcomp.sty)
#Requires:	tex(url.sty)
#Requires:	tex(xspace.sty)
#Requires:	tex(xy.sty)
Provides:	tex(smfart.cls) = 2024
Provides:	tex(smfbib.sty) = 2024
Provides:	tex(smfbook.cls) = 2024
Provides:	tex(smfbull.sty) = 2024
Provides:	tex(smfenum.sty) = 2024
Provides:	tex(smfgen.sty) = 2024
Provides:	tex(smfhyperref.sty) = 2024
Provides:	tex(smfmulti.sty) = 2024
Provides:	tex(smfthm.sty) = 2024
BuildArch:	noarch

%description
The Societe mathematique de France provides a set of classes,
packages and BibTeX styles that are used in its publications.
They are based on AMS classes (whose code is sometimes
recopied) and mainly 'upward-compatible'. Their main features
are: quite different design; new environments for typesetting
some information in two languages (altabstract, alttitle,
altkeywords); if necessary, use of babel (option frenchb) and
deactivation of some features of frenchb. Includes smfart.cls,
smfbook.cls, smfplain.bst, smfalpha.bst, amongst others.

%files
%doc %{_texmfdistdir}/doc/latex/smflatex
%{_texmfdistdir}/bibtex/bst/smflatex
%{_texmfdistdir}/tex/latex/smflatex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10659 |21cr|texlive-snaptodo-61155-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname snaptodo

Summary:	A todo that snaps to the closer side
Name:		texlive-snaptodo
Version:	61155
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(snaptodo.sty) = 2024
BuildArch:	noarch

%description
This package is an alternative to todonotes, from which it
differs in the following ways: Depending on where you call
\snaptodo, the note is put in the left or the right margin,
whichever is closer. The notes bump each other so they never
overlap; the lines never overlap either. Aesthetic and
customizable style.

%files
%doc %{_texmfdistdir}/doc/latex/snaptodo
%{_texmfdistdir}/tex/latex/snaptodo

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10660 |21cr|texlive-songproj-64966-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname songproj

Summary:	Generate Beamer slideshows with song lyrics
Name:		texlive-songproj
Version:	64966
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(songproj.sty) = 2024
BuildArch:	noarch

%description
This package, together with the Beamer class, is used to
generate slideshows with song lyrics. This is typically used in
religious services in churches equipped with a projector, for
which this package has been written, but it can be useful for
any type of singing assembly. It provides environments to
describe a song in a natural way, and formatting it into slides
with overlays. The package comes with an additional Python
script that can be used to convert plain-text song lyrics to
the expected LaTeX markup.

%files
%doc %{_texmfdistdir}/doc/latex/songproj
%{_texmfdistdir}/tex/latex/songproj

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10661 |21cr|texlive-sort-by-letters-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27128
# category Package
# catalog-ctan /biblio/bibtex/contrib/sort-by-letters
# catalog-date 2012-06-04 23:25:44 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-sort-by-letters
Version:	20190228
Release:	1
Summary:	Bibliography styles for alphabetic sorting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/sort-by-letters
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sort-by-letters.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sort-by-letters.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle contains several bibliography styles for separating
a document's references by the first letter of the first
author/editor in the bibliography entry. The styles are adapted
from standard ones or from natbib ones.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/sort-by-letters/abbrv-letters.bst
%{_texmfdistdir}/bibtex/bst/sort-by-letters/alpha-letters.bst
%{_texmfdistdir}/bibtex/bst/sort-by-letters/apalike-letters.bst
%{_texmfdistdir}/bibtex/bst/sort-by-letters/frplainnat-letters.bst
%{_texmfdistdir}/bibtex/bst/sort-by-letters/plain-letters.bst
%{_texmfdistdir}/bibtex/bst/sort-by-letters/plainnat-letters.bst
%{_texmfdistdir}/bibtex/bst/sort-by-letters/siam-letters.bst
%doc %{_texmfdistdir}/doc/bibtex/sort-by-letters/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10662 |21cr|texlive-soulpos-60772-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname soulpos

Summary:	A fancy means of underlining
Name:		texlive-soulpos
Version:	60772
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-oberdiek
Requires:	texlive-soul
Provides:	tex(soulpos.sty) = 2024
BuildArch:	noarch

%description
The package combines the use of soul with the savepos mechanism
of current pdfTeX so that the user can create (almost)
arbitrary underlining and similar "decorations", including
rules, leaders and even pictures (pgf, pstricks, etc.). Unlike
soul underlines, which are built by repeating small elements,
here each chunk of text to be underlined is a single element.

%files
%doc %{_texmfdistdir}/doc/latex/soulpos
%{_texmfdistdir}/tex/latex/soulpos

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10663 |21cr|texlive-soup-10220190405-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-soup
Version:	10220190405
Release:	1
Summary:	Generate alphabet soup puzzles
Group:		Publishing
URL:		https://www.ctan.org/pkg/soup
License:	GNU General Public License, version 3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/soup.doc.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/soup.source.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/soup.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Generate alphabet soup puzzles (aka word search puzzles),
and variations using numbers or other symbols.
Provides macros to generate an alphabet soup style puzzle
(also known as word search puzzles or "find-the-word" puzzles).
Allow creating numbersoup and soups with custom symbol sets.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10664 |21cr|texlive-sourcecodepro-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sourcecodepro

Summary:	Use SourceCodePro with TeX(-alike) systems
Name:		texlive-sourcecodepro
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(a_3iph7b.enc) = 2024
Provides:	tex(a_4bagdb.enc) = 2024
Provides:	tex(a_4jrrta.enc) = 2024
Provides:	tex(a_6samag.enc) = 2024
Provides:	tex(a_beydf2.enc) = 2024
Provides:	tex(a_bzs6pp.enc) = 2024
Provides:	tex(a_ciozbc.enc) = 2024
Provides:	tex(a_cy5ftw.enc) = 2024
Provides:	tex(a_d56bnw.enc) = 2024
Provides:	tex(a_fhxzui.enc) = 2024
Provides:	tex(a_fnt2zo.enc) = 2024
Provides:	tex(a_fy4e5k.enc) = 2024
Provides:	tex(a_gog54w.enc) = 2024
Provides:	tex(a_gufhru.enc) = 2024
Provides:	tex(a_h3vs4v.enc) = 2024
Provides:	tex(a_j24bgz.enc) = 2024
Provides:	tex(a_jjp77t.enc) = 2024
Provides:	tex(a_ljusoa.enc) = 2024
Provides:	tex(a_lutrty.enc) = 2024
Provides:	tex(a_lxssho.enc) = 2024
Provides:	tex(a_mjxvy6.enc) = 2024
Provides:	tex(a_n5gv3r.enc) = 2024
Provides:	tex(a_npftpj.enc) = 2024
Provides:	tex(a_o4vjd2.enc) = 2024
Provides:	tex(a_pyiqqv.enc) = 2024
Provides:	tex(a_snirjt.enc) = 2024
Provides:	tex(a_tadnvb.enc) = 2024
Provides:	tex(a_uio74x.enc) = 2024
Provides:	tex(a_v5qca6.enc) = 2024
Provides:	tex(a_xmlzny.enc) = 2024
Provides:	tex(a_yyete5.enc) = 2024
Provides:	tex(LY1SourceCodePro-Dnom.fd) = 2024
Provides:	tex(LY1SourceCodePro-Numr.fd) = 2024
Provides:	tex(LY1SourceCodePro-Sup.fd) = 2024
Provides:	tex(LY1SourceCodePro-TLF.fd) = 2024
Provides:	tex(LY1SourceCodePro-TOsF.fd) = 2024
Provides:	tex(OT1SourceCodePro-Dnom.fd) = 2024
Provides:	tex(OT1SourceCodePro-Numr.fd) = 2024
Provides:	tex(OT1SourceCodePro-Sup.fd) = 2024
Provides:	tex(OT1SourceCodePro-TLF.fd) = 2024
Provides:	tex(OT1SourceCodePro-TOsF.fd) = 2024
Provides:	tex-sourcecodepro = 2024
Provides:	tex(SourceCodePro.map) = 2024
Provides:	tex(sourcecodepro.sty) = 2024
Provides:	tex(sourcecodepro-type1-autoinst.sty) = 2024
Provides:	tex(T1SourceCodePro-Dnom.fd) = 2024
Provides:	tex(T1SourceCodePro-Numr.fd) = 2024
Provides:	tex(T1SourceCodePro-Sup.fd) = 2024
Provides:	tex(T1SourceCodePro-TLF.fd) = 2024
Provides:	tex(T1SourceCodePro-TOsF.fd) = 2024
Provides:	tex(T2ASourceCodePro-Dnom.fd) = 2024
Provides:	tex(T2ASourceCodePro-Numr.fd) = 2024
Provides:	tex(T2ASourceCodePro-Sup.fd) = 2024
Provides:	tex(T2ASourceCodePro-TLF.fd) = 2024
Provides:	tex(T2ASourceCodePro-TOsF.fd) = 2024
Provides:	tex(TS1SourceCodePro-TLF.fd) = 2024
Provides:	tex(TS1SourceCodePro-TOsF.fd) = 2024
BuildArch:	noarch

%description
The font is an open-source Monospaced development from Adobe.
The package provides fonts (in both Adobe Type 1 and OpenType
formats) and macros supporting their use in LaTeX (Type 1) and
XeLaTeX/LuaLaTeX (OTF).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/sourcecodepro/
%{_texmfdistdir}/fonts/map/dvips/sourcecodepro/
%{_texmfdistdir}/fonts/opentype/adobe/sourcecodepro/
%{_texmfdistdir}/fonts/tfm/adobe/sourcecodepro/
%{_texmfdistdir}/fonts/type1/adobe/sourcecodepro/
%{_texmfdistdir}/fonts/vf/adobe/sourcecodepro/
%{_texmfdistdir}/tex/latex/sourcecodepro/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10665 |21cr|texlive-sourcesanspro-54892-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sourcesanspro

Summary:	Use SourceSansPro with TeX(-alike) systems
Name:		texlive-sourcesanspro
Version:	54892
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(a_3x2gk5.enc) = 2024
Provides:	tex(a_3yibv2.enc) = 2024
Provides:	tex(a_46wjfg.enc) = 2024
Provides:	tex(a_4blavb.enc) = 2024
Provides:	tex(a_4hbp34.enc) = 2024
Provides:	tex(a_4jropk.enc) = 2024
Provides:	tex(a_5ponh6.enc) = 2024
Provides:	tex(a_65vrnz.enc) = 2024
Provides:	tex(a_6qpf2n.enc) = 2024
Provides:	tex(a_77nslr.enc) = 2024
Provides:	tex(a_7n4q7u.enc) = 2024
Provides:	tex(a_ahahpn.enc) = 2024
Provides:	tex(a_bkdqh2.enc) = 2024
Provides:	tex(a_c3pynx.enc) = 2024
Provides:	tex(a_cgcyrm.enc) = 2024
Provides:	tex(a_cqavns.enc) = 2024
Provides:	tex(a_dbwo4p.enc) = 2024
Provides:	tex(a_ea4zg5.enc) = 2024
Provides:	tex(a_emkxm5.enc) = 2024
Provides:	tex(a_ercdtc.enc) = 2024
Provides:	tex(a_f2tdxs.enc) = 2024
Provides:	tex(a_fbyhkd.enc) = 2024
Provides:	tex(a_ghwomg.enc) = 2024
Provides:	tex(a_gpgjtc.enc) = 2024
Provides:	tex(a_gvn2fe.enc) = 2024
Provides:	tex(a_i5t6gn.enc) = 2024
Provides:	tex(a_ivdnq2.enc) = 2024
Provides:	tex(a_kjpvhx.enc) = 2024
Provides:	tex(a_ktnhmk.enc) = 2024
Provides:	tex(a_lhxooi.enc) = 2024
Provides:	tex(a_li5oiy.enc) = 2024
Provides:	tex(a_msbdn3.enc) = 2024
Provides:	tex(a_nxd2w7.enc) = 2024
Provides:	tex(a_o3uzeo.enc) = 2024
Provides:	tex(a_oazma5.enc) = 2024
Provides:	tex(a_oph6lb.enc) = 2024
Provides:	tex(a_ordpq2.enc) = 2024
Provides:	tex(a_p7zagl.enc) = 2024
Provides:	tex(a_q6ppsi.enc) = 2024
Provides:	tex(a_qthovn.enc) = 2024
Provides:	tex(a_sj7g2w.enc) = 2024
Provides:	tex(a_svsr4s.enc) = 2024
Provides:	tex(a_t773hb.enc) = 2024
Provides:	tex(a_ufai4b.enc) = 2024
Provides:	tex(a_vauq2g.enc) = 2024
Provides:	tex(a_wp5x3v.enc) = 2024
Provides:	tex(a_ywoy3g.enc) = 2024
Provides:	tex(a_zphccl.enc) = 2024
Provides:	tex(a_zypyw7.enc) = 2024
Provides:	tex(LGRSourceSansPro-Dnom.fd) = 2024
Provides:	tex(LGRSourceSansPro-Inf.fd) = 2024
Provides:	tex(LGRSourceSansPro-LF.fd) = 2024
Provides:	tex(LGRSourceSansPro-Numr.fd) = 2024
Provides:	tex(LGRSourceSansPro-OsF.fd) = 2024
Provides:	tex(LGRSourceSansPro-Sup.fd) = 2024
Provides:	tex(LGRSourceSansPro-TLF.fd) = 2024
Provides:	tex(LGRSourceSansPro-TOsF.fd) = 2024
Provides:	tex(LY1SourceSansPro-Dnom.fd) = 2024
Provides:	tex(LY1SourceSansPro-Inf.fd) = 2024
Provides:	tex(LY1SourceSansPro-LF.fd) = 2024
Provides:	tex(LY1SourceSansPro-Numr.fd) = 2024
Provides:	tex(LY1SourceSansPro-OsF.fd) = 2024
Provides:	tex(LY1SourceSansPro-Sup.fd) = 2024
Provides:	tex(LY1SourceSansPro-TLF.fd) = 2024
Provides:	tex(LY1SourceSansPro-TOsF.fd) = 2024
Provides:	tex(OT1SourceSansPro-Dnom.fd) = 2024
Provides:	tex(OT1SourceSansPro-Inf.fd) = 2024
Provides:	tex(OT1SourceSansPro-LF.fd) = 2024
Provides:	tex(OT1SourceSansPro-Numr.fd) = 2024
Provides:	tex(OT1SourceSansPro-OsF.fd) = 2024
Provides:	tex(OT1SourceSansPro-Sup.fd) = 2024
Provides:	tex(OT1SourceSansPro-TLF.fd) = 2024
Provides:	tex(OT1SourceSansPro-TOsF.fd) = 2024
Provides:	tex-sourcesanspro = 2024
Provides:	tex(SourceSansPro.map) = 2024
Provides:	tex(sourcesanspro.sty) = 2024
Provides:	tex(sourcesanspro-type1-autoinst.sty) = 2024
Provides:	tex(T1SourceSansPro-Dnom.fd) = 2024
Provides:	tex(T1SourceSansPro-Inf.fd) = 2024
Provides:	tex(T1SourceSansPro-LF.fd) = 2024
Provides:	tex(T1SourceSansPro-Numr.fd) = 2024
Provides:	tex(T1SourceSansPro-OsF.fd) = 2024
Provides:	tex(T1SourceSansPro-Sup.fd) = 2024
Provides:	tex(T1SourceSansPro-TLF.fd) = 2024
Provides:	tex(T1SourceSansPro-TOsF.fd) = 2024
Provides:	tex(TS1SourceSansPro-LF.fd) = 2024
Provides:	tex(TS1SourceSansPro-OsF.fd) = 2024
Provides:	tex(TS1SourceSansPro-TLF.fd) = 2024
Provides:	tex(TS1SourceSansPro-TOsF.fd) = 2024
BuildArch:	noarch

%description
The font is an open-source Sans-Serif development from Adobe.
The package provides fonts (in both Adobe Type 1 and OpenType
formats) and macros supporting their use in LaTeX (Type 1) and
XeLaTeX/LuaLaTeX (OTF).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/sourcesanspro/
%{_texmfdistdir}/fonts/map/dvips/sourcesanspro/
%{_texmfdistdir}/fonts/opentype/adobe/sourcesanspro/
%{_texmfdistdir}/fonts/tfm/adobe/sourcesanspro/
%{_texmfdistdir}/fonts/type1/adobe/sourcesanspro/
%{_texmfdistdir}/fonts/vf/adobe/sourcesanspro/
%{_texmfdistdir}/tex/latex/sourcesanspro/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10666 |21cr|texlive-sourceserifpro-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sourceserifpro

Summary:	Use SourceSerifPro with TeX(-alike) systems
Name:		texlive-sourceserifpro
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(a_3wqk3b.enc) = 2024
Provides:	tex(a_5mjl2d.enc) = 2024
Provides:	tex(a_5ts2b6.enc) = 2024
Provides:	tex(a_6lyhkv.enc) = 2024
Provides:	tex(a_a6i6f2.enc) = 2024
Provides:	tex(a_abavx3.enc) = 2024
Provides:	tex(a_an4p3v.enc) = 2024
Provides:	tex(a_bdm2ki.enc) = 2024
Provides:	tex(a_bizpe5.enc) = 2024
Provides:	tex(a_brdplf.enc) = 2024
Provides:	tex(a_dc746j.enc) = 2024
Provides:	tex(a_etdltz.enc) = 2024
Provides:	tex(a_flbt57.enc) = 2024
Provides:	tex(a_g6m65j.enc) = 2024
Provides:	tex(a_gtvdgc.enc) = 2024
Provides:	tex(a_jevuw6.enc) = 2024
Provides:	tex(a_l72wii.enc) = 2024
Provides:	tex(a_lnjzcs.enc) = 2024
Provides:	tex(a_lseshj.enc) = 2024
Provides:	tex(a_meqgh4.enc) = 2024
Provides:	tex(a_mjlzxh.enc) = 2024
Provides:	tex(a_n7bg2c.enc) = 2024
Provides:	tex(a_nan7a4.enc) = 2024
Provides:	tex(a_nqu667.enc) = 2024
Provides:	tex(a_nx47sx.enc) = 2024
Provides:	tex(a_ob4xxw.enc) = 2024
Provides:	tex(a_oi66c4.enc) = 2024
Provides:	tex(a_oprvft.enc) = 2024
Provides:	tex(a_osimgj.enc) = 2024
Provides:	tex(a_osnaur.enc) = 2024
Provides:	tex(a_qiz27h.enc) = 2024
Provides:	tex(a_r74etr.enc) = 2024
Provides:	tex(a_rlbtkr.enc) = 2024
Provides:	tex(a_s5phdg.enc) = 2024
Provides:	tex(a_s6kslv.enc) = 2024
Provides:	tex(a_sboynu.enc) = 2024
Provides:	tex(a_sonlso.enc) = 2024
Provides:	tex(a_sor56s.enc) = 2024
Provides:	tex(a_tf7hcc.enc) = 2024
Provides:	tex(a_uima5p.enc) = 2024
Provides:	tex(a_upudw7.enc) = 2024
Provides:	tex(a_vbwd4w.enc) = 2024
Provides:	tex(a_vnu3m6.enc) = 2024
Provides:	tex(a_z6lp4v.enc) = 2024
Provides:	tex(a_ztztxn.enc) = 2024
Provides:	tex(LY1SourceSerifPro-Dnom.fd) = 2024
Provides:	tex(LY1SourceSerifPro-LF.fd) = 2024
Provides:	tex(LY1SourceSerifPro-Numr.fd) = 2024
Provides:	tex(LY1SourceSerifPro-OsF.fd) = 2024
Provides:	tex(LY1SourceSerifPro-Sup.fd) = 2024
Provides:	tex(LY1SourceSerifPro-TLF.fd) = 2024
Provides:	tex(LY1SourceSerifPro-TOsF.fd) = 2024
Provides:	tex(OT1SourceSerifPro-Dnom.fd) = 2024
Provides:	tex(OT1SourceSerifPro-LF.fd) = 2024
Provides:	tex(OT1SourceSerifPro-Numr.fd) = 2024
Provides:	tex(OT1SourceSerifPro-OsF.fd) = 2024
Provides:	tex(OT1SourceSerifPro-Sup.fd) = 2024
Provides:	tex(OT1SourceSerifPro-TLF.fd) = 2024
Provides:	tex(OT1SourceSerifPro-TOsF.fd) = 2024
Provides:	tex-sourceserifpro = 2024
Provides:	tex(SourceSerifPro.map) = 2024
Provides:	tex(sourceserifpro.sty) = 2024
Provides:	tex(sourceserifpro-type1-autoinst.sty) = 2024
Provides:	tex(T1SourceSerifPro-Dnom.fd) = 2024
Provides:	tex(T1SourceSerifPro-LF.fd) = 2024
Provides:	tex(T1SourceSerifPro-Numr.fd) = 2024
Provides:	tex(T1SourceSerifPro-OsF.fd) = 2024
Provides:	tex(T1SourceSerifPro-Sup.fd) = 2024
Provides:	tex(T1SourceSerifPro-TLF.fd) = 2024
Provides:	tex(T1SourceSerifPro-TOsF.fd) = 2024
Provides:	tex(TS1SourceSerifPro-LF.fd) = 2024
Provides:	tex(TS1SourceSerifPro-OsF.fd) = 2024
Provides:	tex(TS1SourceSerifPro-TLF.fd) = 2024
Provides:	tex(TS1SourceSerifPro-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides Source Serif Pro for LaTeX. It includes
both Type1 and OpenType fonts and selects the latter when using
XeLaTeX or LuaLaTeX. Issues with this package can be reported
on GitHub (https://github.com/silkeh/latex-
sourceserifpro/issues) or emailed to tex@slxh.nl.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/sourceserifpro/
%{_texmfdistdir}/fonts/map/dvips/sourceserifpro/
%{_texmfdistdir}/fonts/opentype/adobe/sourceserifpro/
%{_texmfdistdir}/fonts/tfm/adobe/sourceserifpro/
%{_texmfdistdir}/fonts/type1/adobe/sourceserifpro/
%{_texmfdistdir}/fonts/vf/adobe/sourceserifpro/
%{_texmfdistdir}/tex/latex/sourceserifpro/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10667 |21cr|texlive-spacekern-63552-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname spacekern

Summary:	Kerning between words and against space
Name:		texlive-spacekern
Version:	63552
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(spacekern.sty) = 2024
BuildArch:	noarch

%description
This package provides two shorthands for typesetting breaking
and non-breaking small spaces, where both hyphenation and
kerning against space are correctly applied. Additionally,
interword kerning can be applied.

%files
%doc %{_texmfdistdir}/doc/lualatex/spacekern
%{_texmfdistdir}/tex/lualatex/spacekern

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10668 |21cr|texlive-spacingtricks-66393-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname spacingtricks

Summary:	Dealing with some spacing issues
Name:		texlive-spacingtricks
Version:	66393
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(spacingtricks.sty) = 2024
BuildArch:	noarch

%description
The spacingtricks package provides macros for dealing with some
spacing issues e.g. centering a single line, making a variable
strut, indenting a block, typesetting a compact list, placing
two boxes side by side with vertical adjustment.

%files
%doc %{_texmfdistdir}/doc/latex/spacingtricks
%{_texmfdistdir}/tex/latex/spacingtricks

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10669 |21cr|texlive-spalign-20161005-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-spalign
Version:	20161005
Release:	1
Summary:	Typeset matrices and arrays with spaces and semicolons as delimiters
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/spalign
License:	LPPL
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/spalign.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/spalign.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/spalign.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The purpose of this package is to decrease the number of keystrokes needed 
to typeset small amounts of aligned material (matrices, arrays, etc.)

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10670 |21cr|texlive-spark-otf-62481-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname spark-otf

Summary:	Support OpenType Spark fonts
Name:		texlive-spark-otf
Version:	62481
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(spark-otf.sty) = 2024
BuildArch:	noarch

%description
The package supports the free fonts from "After the Flood"
which are available from AtF Spark. The following fonts are
supported: Spark -- Bar -- Medium Spark -- Bar -- Narrow Spark
-- Bar -- Thin Spark -- Dot-line -- Medium Spark -- Dot --
Medium Spark -- Dot -- Small

%files
%doc %{_texmfdistdir}/doc/fonts/spark-otf/
%{_texmfdistdir}/fonts/opentype/public/spark-otf/
%{_texmfdistdir}/tex/latex/spark-otf/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10671 |21cr|texlive-spbmark-64706-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname spbmark

Summary:	Customize superscripts and subscripts
Name:		texlive-spbmark
Version:	64706
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(spbmark.sty) = 2024
BuildArch:	noarch

%description
This package provides three commands \super, \sub and \supersub
to improve the layout of superscripts and subscripts which can
be adjusted with respect to relative position and format, and
can be used in text and math mode.

%files
%doc %{_texmfdistdir}/doc/latex/spbmark
%{_texmfdistdir}/tex/latex/spbmark

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10672 |21cr|texlive-spectral-64528-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname spectral

Summary:	Spectral fonts with LaTeX support
Name:		texlive-spectral
Version:	64528
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LY1Spectral-LF.fd) = 2024
Provides:	tex(LY1Spectral-OsF.fd) = 2024
Provides:	tex(LY1Spectral-Sup.fd) = 2024
Provides:	tex(LY1Spectral-TLF.fd) = 2024
Provides:	tex(LY1Spectral-TOsF.fd) = 2024
Provides:	tex(OT1Spectral-LF.fd) = 2024
Provides:	tex(OT1Spectral-OsF.fd) = 2024
Provides:	tex(OT1Spectral-Sup.fd) = 2024
Provides:	tex(OT1Spectral-TLF.fd) = 2024
Provides:	tex(OT1Spectral-TOsF.fd) = 2024
Provides:	tex(spctrl_2aac4b.enc) = 2024
Provides:	tex(spctrl_3w4m5o.enc) = 2024
Provides:	tex(spctrl_4pmhlc.enc) = 2024
Provides:	tex(spctrl_557mkd.enc) = 2024
Provides:	tex(spctrl_5nvskg.enc) = 2024
Provides:	tex(spctrl_7723dm.enc) = 2024
Provides:	tex(spctrl_7yrmk2.enc) = 2024
Provides:	tex(spctrl_afnhyv.enc) = 2024
Provides:	tex(spctrl_aqo46g.enc) = 2024
Provides:	tex(spctrl_euyf7f.enc) = 2024
Provides:	tex(spctrl_f72vab.enc) = 2024
Provides:	tex(spctrl_fjos6u.enc) = 2024
Provides:	tex(spctrl_fx5a3s.enc) = 2024
Provides:	tex(spctrl_gjclhi.enc) = 2024
Provides:	tex(spctrl_grm5gg.enc) = 2024
Provides:	tex(spctrl_idimeu.enc) = 2024
Provides:	tex(spctrl_jbpxno.enc) = 2024
Provides:	tex(spctrl_jn4bsu.enc) = 2024
Provides:	tex(spctrl_kxtkh6.enc) = 2024
Provides:	tex(spctrl_li2pym.enc) = 2024
Provides:	tex(spctrl_n2dqb2.enc) = 2024
Provides:	tex(spctrl_nmk6rb.enc) = 2024
Provides:	tex(spctrl_nnruvf.enc) = 2024
Provides:	tex(spctrl_pfe23f.enc) = 2024
Provides:	tex(spctrl_ph2c4v.enc) = 2024
Provides:	tex(spctrl_qkttcp.enc) = 2024
Provides:	tex(spctrl_ti2bo2.enc) = 2024
Provides:	tex(spctrl_tljjuh.enc) = 2024
Provides:	tex(spctrl_vm23tp.enc) = 2024
Provides:	tex(spctrl_y3a2sk.enc) = 2024
Provides:	tex(spectral.map) = 2024
Provides:	tex(spectral.sty) = 2024
Provides:	tex(T1Spectral-LF.fd) = 2024
Provides:	tex(T1Spectral-OsF.fd) = 2024
Provides:	tex(T1Spectral-Sup.fd) = 2024
Provides:	tex(T1Spectral-TLF.fd) = 2024
Provides:	tex(T1Spectral-TOsF.fd) = 2024
Provides:	tex(TS1Spectral-LF.fd) = 2024
Provides:	tex(TS1Spectral-OsF.fd) = 2024
Provides:	tex(TS1Spectral-TLF.fd) = 2024
Provides:	tex(TS1Spectral-TOsF.fd) = 2024
Provides:	tex(USpectral-Orn.fd) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the Spectral family of fonts, designed by
Jean-Baptiste Levee at the Production Type digital type design
agency. Spectral is a new and versatile serif face available in
seven weights of roman and italic, with small caps.

%files
%doc %{_texmfdistdir}/doc/fonts/spectral
%{_texmfdistdir}/fonts/enc/dvips/spectral
%{_texmfdistdir}/fonts/map/dvips/spectral
%{_texmfdistdir}/fonts/tfm/production/spectral
%{_texmfdistdir}/fonts/truetype/production/spectral
%{_texmfdistdir}/fonts/type1/production/spectral
%{_texmfdistdir}/fonts/vf/production/spectral
%{_texmfdistdir}/tex/latex/spectral

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10673 |21cr|texlive-spectralsequences-65667-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname spectralsequences

Summary:	Print spectral sequence diagrams using PGF/TikZ
Name:		texlive-spectralsequences
Version:	65667
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(spectralsequences.sty) = 2024
Provides:	tex(sseqcheckdefinitions.code.tex) = 2024
Provides:	tex(sseqdrawing.code.tex) = 2024
Provides:	tex(sseqforeach.code.tex) = 2024
Provides:	tex(sseqkeys.code.tex) = 2024
Provides:	tex(sseqloadstore.code.tex) = 2024
Provides:	tex(sseqmacromakers.code.tex) = 2024
Provides:	tex(sseqmain.code.tex) = 2024
Provides:	tex(sseqmessages.code.tex) = 2024
Provides:	tex(sseqparsers.code.tex) = 2024
BuildArch:	noarch

%description
The package is a specialized tool built on top of PGF/TikZ for
drawing spectral sequences. It provides a powerful, concise
syntax for specifying the data of a spectral sequence, and then
allows the user to print various pages of spectral sequences,
automatically choosing which subset of the classes,
differentials, and structure lines to display on each page. It
also handles most of the details of the layout. At the same
time, it is extremely flexible. spectralsequences is closely
integrated with TikZ to ensure that users can take advantage of
as much as possible of its expressive power. It is possible to
turn off most of the automated layout features and draw
replacements using TikZ commands. The package also provides a
carefully designed error reporting system intended to ensure
that it is as clear as possible what is going wrong.

%files
%doc %{_texmfdistdir}/doc/latex/spectralsequences/
%{_texmfdistdir}/tex/latex/spectralsequences/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10674 |21cr|texlive-sphdthesis-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sphdthesis
Version:	1.2.1
Release:	1
Summary:	School of Computing (SoC), National University of Singapore (NUS)
Group:	Publishing
URL:		https://ctan.org/pkg/sphdthesis
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sphdthesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/sphdthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The author developed it while writing his PhD thesis in School of Computing (SoC)
National University of Singapore (NUS)
By default, the class adheres to the NUS Guidelines on Format of Research Thesis Submitted For Examination 
However, the class for conformation to a different guideline should not be difficult

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sphdthesis
%doc %{_texmfdistdir}/doc/latex/sphdthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10675 |21cr|texlive-splitbib-1.17-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/splitbib
# catalog-date 2007-01-15 00:27:07 +0100
# catalog-license lppl
# catalog-version 1.17
Name:		texlive-splitbib
Version:	1.17
Release:	8
Summary:	Split and reorder your bibliography
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/splitbib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splitbib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splitbib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splitbib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package enables you to split a bibliography into several
categories and subcategories. It does not depend on BibTeX: any
bibliography may be split and reordered.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/splitbib/splitbib.sty
%doc %{_texmfdistdir}/doc/latex/splitbib/README
%doc %{_texmfdistdir}/doc/latex/splitbib/splitbib.pdf
#- source
%doc %{_texmfdistdir}/source/latex/splitbib/splitbib.dtx
%doc %{_texmfdistdir}/source/latex/splitbib/splitbib.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10676 |21cr|texlive-srbtiks-63308-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname srbtiks

Summary:	Font STIX2 for Serbian and Macedonian
Name:		texlive-srbtiks
Version:	63308
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-stix2-type1
Provides:	tex(srbtiks.map) = 2024
Provides:	tex(srbtiks.sty) = 2024
Provides:	tex(srbtiks-t1.enc) = 2024
Provides:	tex(srbtiks-t1-it.enc) = 2024
Provides:	tex(srbtiks-t1-sc.enc) = 2024
Provides:	tex(t1srbtiks.fd) = 2024
Provides:	tex(ts1srbtiks.fd) = 2024
BuildArch:	noarch

%description
The srbtiks package is the extension of the stix2-type1 package
that enables usage of the STIX2 font in LaTeX for the Serbian
and Macedonian languages (therefore, it is required to have the
stix2-type1 package installed).

%files
%doc %{_texmfdistdir}/doc/fonts/srbtiks
%{_texmfdistdir}/fonts/enc/dvips/srbtiks
%{_texmfdistdir}/fonts/map/dvips/srbtiks
%{_texmfdistdir}/fonts/tfm/public/srbtiks
%{_texmfdistdir}/fonts/vf/public/srbtiks
%{_texmfdistdir}/tex/latex/srbtiks

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10677 |21cr|texlive-srdp-mathematik-1.10.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-srdp-mathematik
Version:	1.10.3
Release:	1
Summary:	This package provides basic cmds for the formats of the Austrian sRDP in math
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/srdp-mathematik
License:	LPPL
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/srdp-mathematik.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/srdp-mathematik.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides basic commands 
for the defined formats of the Austrian sRDP in mathematics. 
Furthermore, it includes ways to implement answers 
in the tex file, which can be voluntarily displayed 
in the pdf file and it offers a way of varying the answers 
in order to create different groups (e.g. for tests) easily.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/srdp-mathematik
%doc %{_texmfdistdir}/doc/latex/srdp-mathematik

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10678 |21cr|texlive-stanli-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-stanli
Version:	3.0
Release:	1
Summary:	2D Structural Analysis Library base on TikZ
Group:		Publishing
URL:		https://www.tug.org/texlive//Contents/live/texmf-dist/tex/latex/stanli/
License:	MIT
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/stanli.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/stanli.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
2D Structural Analysis Library base on TikZ

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10679 |21cr|texlive-starfont-1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19982
# category Package
# catalog-ctan /fonts/ps-type1/starfont
# catalog-date 2010-09-30 00:35:45 +0200
# catalog-license pd
# catalog-version 1.2
Name:		texlive-starfont
Version:	1.2
Release:	8
Summary:	The StarFont Sans astrological font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ps-type1/starfont
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/starfont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/starfont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains StarFontSans and StarFontSerif, two
public-domain astrological fonts designed by Anthony I.P. Owen,
and the appropriate macros to use them with TeX and LaTeX. The
fonts are supplied in the original TrueType Format and as
PostScript font files.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/starfont/starfont.afm
%{_texmfdistdir}/fonts/afm/public/starfont/strfnser.afm
%{_texmfdistdir}/fonts/map/dvips/starfont/starfont.map
%{_texmfdistdir}/fonts/tfm/public/starfont/fstr8x.tfm
%{_texmfdistdir}/fonts/tfm/public/starfont/fsts8x.tfm
%{_texmfdistdir}/fonts/type1/public/starfont/starfont.pfb
%{_texmfdistdir}/fonts/type1/public/starfont/strfnser.pfb
%{_texmfdistdir}/tex/latex/starfont/starfont.sty
%doc %{_texmfdistdir}/doc/fonts/starfont/COPYING
%doc %{_texmfdistdir}/doc/fonts/starfont/Makefile
%doc %{_texmfdistdir}/doc/fonts/starfont/README
%doc %{_texmfdistdir}/doc/fonts/starfont/STRFNSAN.TTF
%doc %{_texmfdistdir}/doc/fonts/starfont/STRFNSER.TTF
%doc %{_texmfdistdir}/doc/fonts/starfont/starfont.pdf
%doc %{_texmfdistdir}/doc/fonts/starfont/starfont.tex
%doc %{_texmfdistdir}/doc/fonts/starfont/table.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10680 |21cr|texlive-startex-1.04-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/startex
# catalog-date 2008-12-31 20:54:46 +0100
# catalog-license pd
# catalog-version 1.04
Name:		texlive-startex
Version:	1.04
Release:	7
Summary:	An XML-inspired format for student use
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/startex
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/startex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/startex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/startex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A TeX format designed to help students write short reports and
essays. It provides the user with a suitable set of commands
for such a task. It is also more robust than plain TeX and
LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/startex/stxglo.ist
%{_texmfdistdir}/makeindex/startex/stxind.ist
%{_texmfdistdir}/tex/startex/base/a4-article.stx
%{_texmfdistdir}/tex/startex/base/article.stx
%{_texmfdistdir}/tex/startex/base/ifi-article.stx
%{_texmfdistdir}/tex/startex/base/ifi-artikkel.stx
%{_texmfdistdir}/tex/startex/base/startex.lan
%{_texmfdistdir}/tex/startex/base/startex.tex
%doc %{_texmfdistdir}/doc/otherformats/startex/base/guide.pdf
%doc %{_texmfdistdir}/doc/otherformats/startex/base/ideas.pdf
%doc %{_texmfdistdir}/doc/otherformats/startex/base/startex.pdf
#- source
%doc %{_texmfdistdir}/source/startex/base/INSTALL
%doc %{_texmfdistdir}/source/startex/base/README
%doc %{_texmfdistdir}/source/startex/base/startex.bib
%doc %{_texmfdistdir}/source/startex/base/startex.dtx
%doc %{_texmfdistdir}/source/startex/base/startex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10681 |21cr|texlive-statex-1.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20306
# category Package
# catalog-ctan /macros/latex/contrib/statex
# catalog-date 2010-11-03 11:47:38 +0100
# catalog-license lppl
# catalog-version 1.6
Name:		texlive-statex
Version:	1.6
Release:	8
Summary:	Statistics style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/statex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/statex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/statex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package defining many macros for items of significance in
statistical presentations. An updated, but incompatible,
version of the package is available: statex2.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/statex/statex.sty
%doc %{_texmfdistdir}/doc/latex/statex/statex-example.pdf
%doc %{_texmfdistdir}/doc/latex/statex/statex-example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10682 |21cr|texlive-statex2-2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23961
# category Package
# catalog-ctan /macros/latex/contrib/statex2
# catalog-date 2011-09-14 18:03:50 +0200
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-statex2
Version:	2.1
Release:	8
Summary:	Statistics style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/statex2
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/statex2.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/statex2.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines many macros for items of significance in
statistical presentations. It represents a syntax-incompatible
upgrade of statex.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/statex2/statex2.sty
%doc %{_texmfdistdir}/doc/latex/statex2/statex2-example.pdf
%doc %{_texmfdistdir}/doc/latex/statex2/statex2-example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10683 |21cr|texlive-statistics-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-statistics
Version:	2.2
Release:	1
Summary:	The package can compute and typeset statistics like frequency tables
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/statistics
License:	GPL
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/statistics.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/statistics.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/statistics.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The 'statistics' package can compute and typeset statistics like frequency tables, 
cumulative distribution functions (increasing or decreasing, in frequency or absolute count domain), 
from the counts of individual values, or ranges, or even the raw 
value list with repetitions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10684 |21cr|texlive-statmath-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-statmath
Version:	1.4
Release:	1
Summary:	A package for statistic in mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/statmath
License:    The LaTeX Project Public 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/statmath.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/statmath.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/statmath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Applied and theoretical papers in statistics usually contain a number of
notational conventions which are currently lacking in the popular 
amsmath package. The seasoned `LaTeX` user will see that the provided
commands are simple, almost trivial, but will hopefully offer less
cluttered preambles as well as a welcome help for novice users.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10685 |21cr|texlive-staves-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/staves
# catalog-date 2008-08-23 15:48:35 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-staves
Version:	20190228
Release:	1
Summary:	Typeset Icelandic staves and runic letters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/staves
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/staves.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/staves.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/staves.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package contains all the necessary tools to typeset the
"magical" Icelandic staves plus the runic letters used in
Iceland. Included are a font in Adobe Type 1 format and LaTeX
support.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/staves/icelandic.map
%{_texmfdistdir}/fonts/tfm/public/staves/icelandic.tfm
%{_texmfdistdir}/fonts/type1/public/staves/icelandic.pfb
%{_texmfdistdir}/tex/latex/staves/staves.sty
%doc %{_texmfdistdir}/doc/fonts/staves/README
%doc %{_texmfdistdir}/doc/fonts/staves/staves.pdf
%doc %{_texmfdistdir}/doc/fonts/staves/symbols.pdf
#- source
%doc %{_texmfdistdir}/source/latex/staves/staves.dtx
%doc %{_texmfdistdir}/source/latex/staves/staves.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10686 |21cr|texlive-stealcaps-64967-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stealcaps

Summary:	"Steal" small capitals
Name:		texlive-stealcaps
Version:	64967
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(iftex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pgfopts.sty)
Provides:	tex(stealcaps.sty) = 2024
BuildArch:	noarch

%description
This little package is mainly meant to be used when there is a
(TrueType or OpenType) font that does not provide real small
capitals. As a workaround, this package helps to borrow, or
"steal", the small capitals from another font. This might also
be useful in the rare case that someone does not like the
present small capitals, and wants to change them, or likes
those from another font better. To achieve the borrowing, one
only needs to load the package and specify the name of the
target font via the from option. Package dependencies: pgfopts,
iftex, fontspec.

%files
%doc %{_texmfdistdir}/doc/latex/stealcaps/
%{_texmfdistdir}/tex/latex/stealcaps/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10687 |21cr|texlive-step-57307-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname step

Summary:	A free Times-like font
Name:		texlive-step
Version:	57307
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_2b3rql.enc) = 2024
Provides:	tex(a_2gbaam.enc) = 2024
Provides:	tex(a_3o23m2.enc) = 2024
Provides:	tex(a_3ovlch.enc) = 2024
Provides:	tex(a_3rxxvm.enc) = 2024
Provides:	tex(a_3yxiof.enc) = 2024
Provides:	tex(a_47wiac.enc) = 2024
Provides:	tex(a_4otmjh.enc) = 2024
Provides:	tex(a_4zqdxy.enc) = 2024
Provides:	tex(a_574n7u.enc) = 2024
Provides:	tex(a_5mws5y.enc) = 2024
Provides:	tex(a_5xnggg.enc) = 2024
Provides:	tex(a_6auynr.enc) = 2024
Provides:	tex(a_6tnupk.enc) = 2024
Provides:	tex(a_6vnxue.enc) = 2024
Provides:	tex(a_6vypkz.enc) = 2024
Provides:	tex(a_7if24z.enc) = 2024
Provides:	tex(a_7r4wrj.enc) = 2024
Provides:	tex(a_7xgfe3.enc) = 2024
Provides:	tex(a_aevneq.enc) = 2024
Provides:	tex(a_ahbw5k.enc) = 2024
Provides:	tex(a_arx325.enc) = 2024
Provides:	tex(a_az2atq.enc) = 2024
Provides:	tex(a_bmbu3p.enc) = 2024
Provides:	tex(a_bonk4u.enc) = 2024
Provides:	tex(a_bt7ykx.enc) = 2024
Provides:	tex(a_ccwxvq.enc) = 2024
Provides:	tex(a_cqqmgz.enc) = 2024
Provides:	tex(a_ds5txz.enc) = 2024
Provides:	tex(a_e4dxwh.enc) = 2024
Provides:	tex(a_enu25g.enc) = 2024
Provides:	tex(a_euweyh.enc) = 2024
Provides:	tex(a_f2t6y6.enc) = 2024
Provides:	tex(a_f5fqnw.enc) = 2024
Provides:	tex(a_fdcm6h.enc) = 2024
Provides:	tex(a_ffybip.enc) = 2024
Provides:	tex(a_fha2fn.enc) = 2024
Provides:	tex(a_fwzjjs.enc) = 2024
Provides:	tex(a_g5azuq.enc) = 2024
Provides:	tex(a_gbbiod.enc) = 2024
Provides:	tex(a_gl5exx.enc) = 2024
Provides:	tex(a_gnavrk.enc) = 2024
Provides:	tex(a_gwrxgc.enc) = 2024
Provides:	tex(a_gwwgis.enc) = 2024
Provides:	tex(a_h6i53a.enc) = 2024
Provides:	tex(a_hgebca.enc) = 2024
Provides:	tex(a_hnzbfi.enc) = 2024
Provides:	tex(a_inbzfq.enc) = 2024
Provides:	tex(a_jhwfjo.enc) = 2024
Provides:	tex(a_jothuw.enc) = 2024
Provides:	tex(a_k7io4a.enc) = 2024
Provides:	tex(a_kht4zk.enc) = 2024
Provides:	tex(a_kv7n4v.enc) = 2024
Provides:	tex(a_l3aktj.enc) = 2024
Provides:	tex(a_laf3gm.enc) = 2024
Provides:	tex(a_lihfjg.enc) = 2024
Provides:	tex(a_mjsrji.enc) = 2024
Provides:	tex(a_mkgnjm.enc) = 2024
Provides:	tex(a_mmhgd3.enc) = 2024
Provides:	tex(a_mpy73s.enc) = 2024
Provides:	tex(a_msql4j.enc) = 2024
Provides:	tex(a_n6yyi4.enc) = 2024
Provides:	tex(a_nk3vlt.enc) = 2024
Provides:	tex(a_nm3vu2.enc) = 2024
Provides:	tex(a_nm54me.enc) = 2024
Provides:	tex(a_np5cf6.enc) = 2024
Provides:	tex(a_nys5r4.enc) = 2024
Provides:	tex(a_oqx7v6.enc) = 2024
Provides:	tex(a_owwokh.enc) = 2024
Provides:	tex(a_ptac7y.enc) = 2024
Provides:	tex(a_q3sghv.enc) = 2024
Provides:	tex(a_qboisw.enc) = 2024
Provides:	tex(a_r2xedm.enc) = 2024
Provides:	tex(a_rcc5m6.enc) = 2024
Provides:	tex(a_rcz4zw.enc) = 2024
Provides:	tex(a_rgssq4.enc) = 2024
Provides:	tex(a_rx4otu.enc) = 2024
Provides:	tex(a_smf27h.enc) = 2024
Provides:	tex(a_sycgav.enc) = 2024
Provides:	tex(a_tatosb.enc) = 2024
Provides:	tex(a_tded26.enc) = 2024
Provides:	tex(a_timzpm.enc) = 2024
Provides:	tex(a_tmbyhw.enc) = 2024
Provides:	tex(a_tpegoz.enc) = 2024
Provides:	tex(a_tqaent.enc) = 2024
Provides:	tex(a_trfpj6.enc) = 2024
Provides:	tex(a_u5xlv2.enc) = 2024
Provides:	tex(a_uda4d5.enc) = 2024
Provides:	tex(a_udjv2r.enc) = 2024
Provides:	tex(a_uip2yp.enc) = 2024
Provides:	tex(a_uki32u.enc) = 2024
Provides:	tex(a_umr5bj.enc) = 2024
Provides:	tex(a_vca5tb.enc) = 2024
Provides:	tex(a_vmnawy.enc) = 2024
Provides:	tex(a_w7y2wc.enc) = 2024
Provides:	tex(a_wf6bkr.enc) = 2024
Provides:	tex(a_wmhjje.enc) = 2024
Provides:	tex(a_wql5wd.enc) = 2024
Provides:	tex(a_wzfdme.enc) = 2024
Provides:	tex(a_x7ixiy.enc) = 2024
Provides:	tex(a_xfoc2o.enc) = 2024
Provides:	tex(a_xnivr2.enc) = 2024
Provides:	tex(a_xscnug.enc) = 2024
Provides:	tex(a_xxqp46.enc) = 2024
Provides:	tex(a_xy7ndg.enc) = 2024
Provides:	tex(a_y3uxyj.enc) = 2024
Provides:	tex(a_ya3dy4.enc) = 2024
Provides:	tex(a_ylmzrw.enc) = 2024
Provides:	tex(a_zbkikv.enc) = 2024
Provides:	tex(LGRSTEP-Inf.fd) = 2024
Provides:	tex(LGRSTEP-Sup.fd) = 2024
Provides:	tex(LGRSTEP-TLF.fd) = 2024
Provides:	tex(LGRSTEP-TOsF.fd) = 2024
Provides:	tex(LY1STEP-Inf.fd) = 2024
Provides:	tex(LY1STEP-Sup.fd) = 2024
Provides:	tex(LY1STEP-TLF.fd) = 2024
Provides:	tex(LY1STEP-TOsF.fd) = 2024
Provides:	tex(OT1STEP-Inf.fd) = 2024
Provides:	tex(OT1STEP-Sup.fd) = 2024
Provides:	tex(OT1STEP-TLF.fd) = 2024
Provides:	tex(OT1STEP-TOsF.fd) = 2024
Provides:	tex(STEP.map) = 2024
Provides:	tex(step.sty) = 2024
Provides:	tex(T1STEP-Inf.fd) = 2024
Provides:	tex(T1STEP-Sup.fd) = 2024
Provides:	tex(T1STEP-TLF.fd) = 2024
Provides:	tex(T1STEP-TOsF.fd) = 2024
Provides:	tex(T2ASTEP-Inf.fd) = 2024
Provides:	tex(T2ASTEP-Sup.fd) = 2024
Provides:	tex(T2ASTEP-TLF.fd) = 2024
Provides:	tex(T2ASTEP-TOsF.fd) = 2024
Provides:	tex(T2BSTEP-Inf.fd) = 2024
Provides:	tex(T2BSTEP-Sup.fd) = 2024
Provides:	tex(T2BSTEP-TLF.fd) = 2024
Provides:	tex(T2BSTEP-TOsF.fd) = 2024
Provides:	tex(T2CSTEP-Inf.fd) = 2024
Provides:	tex(T2CSTEP-Sup.fd) = 2024
Provides:	tex(T2CSTEP-TLF.fd) = 2024
Provides:	tex(T2CSTEP-TOsF.fd) = 2024
Provides:	tex(T3STEP-Inf.fd) = 2024
Provides:	tex(T3STEP-Sup.fd) = 2024
Provides:	tex(T3STEP-TLF.fd) = 2024
Provides:	tex(T3STEP-TOsF.fd) = 2024
Provides:	tex(TS1STEP-TLF.fd) = 2024
Provides:	tex(TS1STEP-TOsF.fd) = 2024
Provides:	tex(TS3STEP-Inf.fd) = 2024
Provides:	tex(TS3STEP-Sup.fd) = 2024
Provides:	tex(TS3STEP-TLF.fd) = 2024
Provides:	tex(TS3STEP-TOsF.fd) = 2024
BuildArch:	noarch

%description
The STEP fonts are a free Times-like (i.e., Times replacement)
font family, implementing a design first created for The Times
of London in 1932. These fonts are meant to be compatible in
design with Adobe's digitization of Linotype Times, commonly
used in publishing. The fonts were forked from XITS/STIX and
Type 1 support is provided for legacy TeX engines.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/step
%{_texmfdistdir}/fonts/map/dvips/step
%{_texmfdistdir}/fonts/opentype/public/step
%{_texmfdistdir}/fonts/tfm/public/step
%{_texmfdistdir}/fonts/type1/public/step
%{_texmfdistdir}/fonts/vf/public/step
%{_texmfdistdir}/tex/latex/step

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10688 |21cr|texlive-stepgreek-57074-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stepgreek

Summary:	A free Times/Elsevier-style Greek font
Name:		texlive-stepgreek
Version:	57074
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(a_ewwrtj.enc) = 2024
Provides:	tex(a_ntxmjl.enc) = 2024
Provides:	tex(a_uo326q.enc) = 2024
Provides:	tex(a_voidup.enc) = 2024
Provides:	tex(a_wkkjyg.enc) = 2024
Provides:	tex(LGRSTEPGreekTest-Sup.fd) = 2024
Provides:	tex(LGRSTEPGreekTest-TLF.fd) = 2024
Provides:	tex(LGRSTEPGreekTest-TOsF.fd) = 2024
Provides:	tex(STEPGreekTest.map) = 2024
BuildArch:	noarch

%description
This is a beta version of the STEP Greek font. Only a regular
face is available at present, though there are plans to add
italic, bold and bold italic in the future. The font only
supports LGR in TeX and is meant to serve as a Greek complement
to a Times-like font such as STEP. The font supports polytonic
Greek.

%files
%doc %{_texmfdistdir}/doc/fonts/stepgreek
%{_texmfdistdir}/fonts/enc/dvips/stepgreek
%{_texmfdistdir}/fonts/map/dvips/stepgreek
%{_texmfdistdir}/fonts/tfm/public/stepgreek
%{_texmfdistdir}/fonts/type1/public/stepgreek
%{_texmfdistdir}/fonts/vf/public/stepgreek
%{_texmfdistdir}/tex/latex/stepgreek

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10689 |21cr|texlive-stickstoo-60793-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stickstoo

Summary:	A reworking of STIX2
Name:		texlive-stickstoo
Version:	60793
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LY1SticksTooText-Dnom.fd) = 2024
Provides:	tex(LY1SticksTooText-Inf.fd) = 2024
Provides:	tex(LY1SticksTooText-LF.fd) = 2024
Provides:	tex(LY1SticksTooText-Numr.fd) = 2024
Provides:	tex(LY1SticksTooText-OsF.fd) = 2024
Provides:	tex(LY1SticksTooText-Sup.fd) = 2024
Provides:	tex(LY1SticksTooText-TLF.fd) = 2024
Provides:	tex(LY1SticksTooText-TOsF.fd) = 2024
Provides:	tex(OT1SticksTooText-Dnom.fd) = 2024
Provides:	tex(OT1SticksTooText-Inf.fd) = 2024
Provides:	tex(OT1SticksTooText-LF.fd) = 2024
Provides:	tex(OT1SticksTooText-Numr.fd) = 2024
Provides:	tex(OT1SticksTooText-OsF.fd) = 2024
Provides:	tex(OT1SticksTooText-Sup.fd) = 2024
Provides:	tex(OT1SticksTooText-TLF.fd) = 2024
Provides:	tex(OT1SticksTooText-TOsF.fd) = 2024
Provides:	tex(SticksTooText.map) = 2024
Provides:	tex(stickstootext.sty) = 2024
Provides:	tex(stx2_3t3wpf.enc) = 2024
Provides:	tex(stx2_3vezss.enc) = 2024
Provides:	tex(stx2_4fcdhj.enc) = 2024
Provides:	tex(stx2_57cumc.enc) = 2024
Provides:	tex(stx2_5xzouo.enc) = 2024
Provides:	tex(stx2_7bhcze.enc) = 2024
Provides:	tex(stx2_7fpfyw.enc) = 2024
Provides:	tex(stx2_ao4o3i.enc) = 2024
Provides:	tex(stx2_b3i2vo.enc) = 2024
Provides:	tex(stx2_bg3hea.enc) = 2024
Provides:	tex(stx2_btooep.enc) = 2024
Provides:	tex(stx2_c34sac.enc) = 2024
Provides:	tex(stx2_dbm33u.enc) = 2024
Provides:	tex(stx2_eexofg.enc) = 2024
Provides:	tex(stx2_eqh7z7.enc) = 2024
Provides:	tex(stx2_gbmh45.enc) = 2024
Provides:	tex(stx2_gxpwoy.enc) = 2024
Provides:	tex(stx2_hfcbd6.enc) = 2024
Provides:	tex(stx2i-ot1.enc) = 2024
Provides:	tex(stx2_irreni.enc) = 2024
Provides:	tex(stx2_iximus.enc) = 2024
Provides:	tex(stx2_m7frfq.enc) = 2024
Provides:	tex(stx2_nb7tts.enc) = 2024
Provides:	tex(stx2_nl7rkm.enc) = 2024
Provides:	tex(stx2_noim42.enc) = 2024
Provides:	tex(stx2_opxk4k.enc) = 2024
Provides:	tex(stx2-ot1.enc) = 2024
Provides:	tex(stx2_pu4fsw.enc) = 2024
Provides:	tex(stx2_pwkoq7.enc) = 2024
Provides:	tex(stx2_qdtmbx.enc) = 2024
Provides:	tex(stx2_quvxut.enc) = 2024
Provides:	tex(stx2_rejbux.enc) = 2024
Provides:	tex(stx2_rfrl5v.enc) = 2024
Provides:	tex(stx2_sdn3a4.enc) = 2024
Provides:	tex(stx2_slv267.enc) = 2024
Provides:	tex(stx2_srw4fv.enc) = 2024
Provides:	tex(stx2_t6nmmd.enc) = 2024
Provides:	tex(stx2_tu2ozo.enc) = 2024
Provides:	tex(stx2_uab2xo.enc) = 2024
Provides:	tex(stx2_uhazou.enc) = 2024
Provides:	tex(stx2_uofyr3.enc) = 2024
Provides:	tex(stx2_v3a2cx.enc) = 2024
Provides:	tex(stx2_vydqhu.enc) = 2024
Provides:	tex(stx2_w6fsfr.enc) = 2024
Provides:	tex(stx2_wfth6k.enc) = 2024
Provides:	tex(stx2_wwmqdh.enc) = 2024
Provides:	tex(stx2_wwolpm.enc) = 2024
Provides:	tex(stx2_wxq2z6.enc) = 2024
Provides:	tex(stx2_y4oioo.enc) = 2024
Provides:	tex(stx2_ym7moh.enc) = 2024
Provides:	tex(stx2_zscetg.enc) = 2024
Provides:	tex(T1SticksTooText-Dnom.fd) = 2024
Provides:	tex(T1SticksTooText-Inf.fd) = 2024
Provides:	tex(T1SticksTooText-LF.fd) = 2024
Provides:	tex(T1SticksTooText-Numr.fd) = 2024
Provides:	tex(T1SticksTooText-OsF.fd) = 2024
Provides:	tex(T1SticksTooText-Sup.fd) = 2024
Provides:	tex(T1SticksTooText-TLF.fd) = 2024
Provides:	tex(T1SticksTooText-TOsF.fd) = 2024
Provides:	tex(TS1SticksTooText-LF.fd) = 2024
Provides:	tex(TS1SticksTooText-OsF.fd) = 2024
Provides:	tex(TS1SticksTooText-TLF.fd) = 2024
Provides:	tex(TS1SticksTooText-TOsF.fd) = 2024
BuildArch:	noarch

%description
SticksToo is a reworking of the STIX2 with support files
focussing on enhancements of support for LaTeX users wishing to
be able to access more of its features. A companion addition to
the newtxmath package (version 1.55) provides a matching math
package using STIX2 letters (Roman and Greek) with newtxmath
symbols.

%files
%doc %{_texmfdistdir}/doc/fonts/stickstoo/
%{_texmfdistdir}/fonts/afm/public/stickstoo/
%{_texmfdistdir}/fonts/enc/dvips/stickstoo/
%{_texmfdistdir}/fonts/map/dvips/stickstoo/
%{_texmfdistdir}/fonts/tfm/public/stickstoo/
%{_texmfdistdir}/fonts/type1/public/stickstoo/
%{_texmfdistdir}/fonts/vf/public/stickstoo/
%{_texmfdistdir}/tex/latex/stickstoo/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10690 |21cr|texlive-stix-1.1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-stix
Version:	1.1.3
Release:	3
Epoch:		1
Summary:	OpenType Unicode maths fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/stix
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stix.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stix.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The STIX fonts are a suite of unicode OpenType fonts containing
a complete set of mathematical glyphs. The CTAN package is a
copy of the fonts' official release, organised as specified by
the TeX Directory Structure, for inclusion in standard TeX
distributions. A Type 1 only distribution of the fonts is
available in the esstix bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/stix
%{_texmfdistdir}/fonts/map/dvips/stix
%{_texmfdistdir}/fonts/opentype/public/stix
%{_texmfdistdir}/fonts/source/public/stix
%{_texmfdistdir}/fonts/tfm/public/stix
%{_texmfdistdir}/fonts/type1/public/stix
%{_texmfdistdir}/fonts/vf/public/stix
%{_texmfdistdir}/tex/latex/stix
%doc %{_texmfdistdir}/doc/fonts/stix
#- source
%doc %{_texmfdistdir}/source/latex/stix

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10691 |21cr|texlive-stix2-otf-58735-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stix2-otf

Summary:	OpenType Unicode text and maths fonts
Name:		texlive-stix2-otf
Version:	58735
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The Scientific and Technical Information eXchange (STIX) fonts
are intended to satisfy the demanding needs of authors,
publishers, printers, and others working in the scientific,
medical, and technical fields. They combine a comprehensive
Unicode-based collection of mathematical symbols and alphabets
with a set of text faces suitable for professional publishing.
The fonts are available royalty-free under the SIL Open Font
License.

%files
%doc %{_texmfdistdir}/doc/fonts/stix2-otf/
%{_texmfdistdir}/fonts/opentype/public/stix2-otf/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10692 |21cr|texlive-stix2-type1-57448-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stix2-type1

Summary:	Type1 versions of the STIX Two OpenType fonts
Name:		texlive-stix2-type1
Version:	57448
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ls1stix2bb.fd) = 2024
Provides:	tex(ls1stix2.fd) = 2024
Provides:	tex(ls1stix2frak.fd) = 2024
Provides:	tex(ls1stix2scr.fd) = 2024
Provides:	tex(ls1stix2sf.fd) = 2024
Provides:	tex(ls2stix2cal.fd) = 2024
Provides:	tex(ls2stix2ex.fd) = 2024
Provides:	tex(ls2stix2.fd) = 2024
Provides:	tex(ls2stix2tt.fd) = 2024
Provides:	tex(ot1stix2.fd) = 2024
Provides:	tex(ot2stix2.fd) = 2024
Provides:	tex(stix2.map) = 2024
Provides:	tex(stix2-mathbb.enc) = 2024
Provides:	tex(stix2-mathbbit.enc) = 2024
Provides:	tex(stix2-mathcal.enc) = 2024
Provides:	tex(stix2-mathex.enc) = 2024
Provides:	tex(stix2-mathfrak-bold.enc) = 2024
Provides:	tex(stix2-mathfrak.enc) = 2024
Provides:	tex(stix2-mathit-bold.enc) = 2024
Provides:	tex(stix2-mathit.enc) = 2024
Provides:	tex(stix2-mathrm-bold.enc) = 2024
Provides:	tex(stix2-mathrm.enc) = 2024
Provides:	tex(stix2-mathscr-bold.enc) = 2024
Provides:	tex(stix2-mathscr.enc) = 2024
Provides:	tex(stix2-mathsf-bold.enc) = 2024
Provides:	tex(stix2-mathsf.enc) = 2024
Provides:	tex(stix2-mathsfit-bold.enc) = 2024
Provides:	tex(stix2-mathsfit.enc) = 2024
Provides:	tex(stix2-mathtt.enc) = 2024
Provides:	tex(stix2-ot1.enc) = 2024
Provides:	tex(stix2-ot1sc.enc) = 2024
Provides:	tex(stix2-ot2.enc) = 2024
Provides:	tex(stix2-ot2sc.enc) = 2024
Provides:	tex(stix2.sty) = 2024
Provides:	tex(stix2-t1.enc) = 2024
Provides:	tex(stix2-t1sc.enc) = 2024
Provides:	tex(stix2-ts1.enc) = 2024
Provides:	tex(t1stix2.fd) = 2024
Provides:	tex(ts1stix2.fd) = 2024
BuildArch:	noarch

%description
The stix2 package provides minimal support for using the STIX
Two fonts with versions of TeX that are limited to TFM files,
Type 1 PostScript fonts, and 8-bit font encodings. Version
2.0.0 of the STIX fonts are being released in this format in
hopes of easing the transition from legacy TeX engines to
modern fully Unicode-compatible systems. The Type 1 versions
are merely a repackaging of the original OpenType versions and
should not be viewed as independent entities. Some glyphs that
are traditionally available in TeX math fonts are not yet
available in the STIX Two OpenType fonts. In such cases, we
have chosen to omit them from the stix2 package rather than
create incompatibilities between the OpenType and Type 1
versions. In addition, while development of the OpenType
versions is ongoing, no further updates are planned to the Type
1 versions of the fonts.

%files
%doc %{_texmfdistdir}/doc/fonts/stix2-type1/
%{_texmfdistdir}/fonts/enc/dvips/stix2-type1/
%{_texmfdistdir}/fonts/map/dvips/stix2-type1/
%{_texmfdistdir}/fonts/tfm/public/stix2-type1/
%{_texmfdistdir}/fonts/type1/public/stix2-type1/
%{_texmfdistdir}/tex/latex/stix2-type1/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10693 |21cr|texlive-strands-59906-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname strands

Summary:	Draw objects constructed from strands
Name:		texlive-strands
Version:	59906
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(strands.sty) = 2024
BuildArch:	noarch

%description
This package permits to draw objects constructed from strands,
like set partitions, permutations, braids, etc. It depends on
forarray, ifthen, TikZ, xfp, xstring, and xkeyval.

%files
%doc %{_texmfdistdir}/doc/latex/strands
%{_texmfdistdir}/tex/latex/strands

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10694 |21cr|texlive-stricttex-56320-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stricttex

Summary:	Strictly balanced brackets and numbers in command names
Name:		texlive-stricttex
Version:	56320
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(stricttex.sty) = 2024
BuildArch:	noarch

%description
This is a small, LuaLaTeX-only package providing you with
three, sometimes useful features: It allows you to make
brackets [...] "strict", meaning that each [ must be balanced
by a ]. It allows you to use numbers in command names, so that
you can do stuff like \newcommand\pi12{\pi_{12}}. It allows you
to use numbers and primes in command names, so that you can do
stuff like \newcommand\pi'12{\pi '_{12}}.

%files
%doc %{_texmfdistdir}/doc/lualatex/stricttex
%{_texmfdistdir}/tex/lualatex/stricttex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10695 |21cr|texlive-stringenc-52982-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname stringenc

Summary:	Converting a string between different encodings
Name:		texlive-stringenc
Version:	52982
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(se-ascii.def) = 2024
Provides:	tex(se-ascii-print.def) = 2024
Provides:	tex(se-clean7bit.def) = 2024
Provides:	tex(se-cp1250.def) = 2024
Provides:	tex(se-cp1251.def) = 2024
Provides:	tex(se-cp1252.def) = 2024
Provides:	tex(se-cp1257.def) = 2024
Provides:	tex(se-cp437.def) = 2024
Provides:	tex(se-cp850.def) = 2024
Provides:	tex(se-cp852.def) = 2024
Provides:	tex(se-cp855.def) = 2024
Provides:	tex(se-cp858.def) = 2024
Provides:	tex(se-cp865.def) = 2024
Provides:	tex(se-cp866.def) = 2024
Provides:	tex(se-dec-mcs.def) = 2024
Provides:	tex(se-iso-8859-10.def) = 2024
Provides:	tex(se-iso-8859-11.def) = 2024
Provides:	tex(se-iso-8859-13.def) = 2024
Provides:	tex(se-iso-8859-14.def) = 2024
Provides:	tex(se-iso-8859-15.def) = 2024
Provides:	tex(se-iso-8859-16.def) = 2024
Provides:	tex(se-iso-8859-1.def) = 2024
Provides:	tex(se-iso-8859-2.def) = 2024
Provides:	tex(se-iso-8859-3.def) = 2024
Provides:	tex(se-iso-8859-4.def) = 2024
Provides:	tex(se-iso-8859-5.def) = 2024
Provides:	tex(se-iso-8859-6.def) = 2024
Provides:	tex(se-iso-8859-7.def) = 2024
Provides:	tex(se-iso-8859-8.def) = 2024
Provides:	tex(se-iso-8859-9.def) = 2024
Provides:	tex(se-koi8-r.def) = 2024
Provides:	tex(se-mac-centeuro.def) = 2024
Provides:	tex(se-mac-cyrillic.def) = 2024
Provides:	tex(se-mac-roman.def) = 2024
Provides:	tex(se-nextstep.def) = 2024
Provides:	tex(se-pdfdoc.def) = 2024
Provides:	tex(se-utf16le.def) = 2024
Provides:	tex(se-utf32be.def) = 2024
Provides:	tex(se-utf32le.def) = 2024
Provides:	tex(se-utf8.def) = 2024
Provides:	tex(stringenc.sty) = 2024
BuildArch:	noarch

%description
This package provides \StringEncodingConvert for converting a
string between different encodings. Both LaTeX and plain-TeX
are supported.

%files
%doc %{_texmfdistdir}/doc/latex/stringenc
%{_texmfdistdir}/tex/generic/stringenc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10696 |21cr|texlive-structmech-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-structmech
Version:	1.0
Release:	1
Summary:	This package provides a collection of TikZ commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/structmech
License:	GNU General Public License version 3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/structmech.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/structmech.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a collection of TikZ commands that allow users to draw
basic elements in material/structural mechanics. It is thus possible to draw
member forces, nodal forces/displacements, various boundary conditions,
internal force distributions, etc.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10697 |21cr|texlive-studenthandouts-43516-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname studenthandouts

Summary:	Management and styling of student handout projects
Name:		texlive-studenthandouts
Version:	43516
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(studenthandouts.sty) = 2024
BuildArch:	noarch

%description
This package can be used to generate a single master document
that contains a set of individual student handouts. The package
has two main functions. First, it provides a simple framework
for organizing handout source code, and supplies a set of
import management tools for selectively importing a subset of
the handouts into the master document. Selective import is
convenient when compilation of all of the handouts is
unnecessary, for example when working on a new handout. As a
secondary feature, the package defines a basic visual style for
handouts. This style can be easily changed.

%files
%{_texmfdistdir}/doc/latex/studenthandouts/
%{_texmfdistdir}/tex/latex/studenthandouts/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10698 |21cr|texlive-sty2dtx-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /support/sty2dtx
# catalog-date 2011-02-22 16:43:40 +0100
# catalog-license gpl3
# catalog-version 2.1
Name:		texlive-sty2dtx
Version:	2.3
Release:	1
Summary:	Create a .dtx file from a .sty file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/sty2dtx
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sty2dtx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sty2dtx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-sty2dtx.bin = %{EVRD}

%description
The package provides a Perl script that converts a .sty file
(LaTeX package) to .dtx format (documented LaTeX source), by
surrounding macro definitions with macro and macrocode
environments. The macro name is automatically inserted as an
argument to the macro environemnt. Code lines outside macro
definitions are wrapped only in macrocode environments. Empty
lines are removed. The script should not be thought to be fool
proof and 100% accurate but rather as a good start to the
business of making a .dtx file from an undocumented style file.
Full .dtx files are generated. A template based on the skeleton
file from 'dtxtut' is used. User level macros are added
automatically to the 'Usage' section of the .dtx file. A
corresponding .ins file can be generated as well.


#-----------------------------------------------------------------------
%files
%{_bindir}/sty2dtx
%{_texmfdistdir}/scripts/sty2dtx
%doc %{_texmfdistdir}/doc/support/sty2dtx
%doc %{_texmfdistdir}/doc/man/man1/sty2dtx*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/sty2dtx/sty2dtx.pl sty2dtx
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10699 |21cr|texlive-styledcmd-65262-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname styledcmd

Summary:	Handling multiple versions of user-defined macros
Name:		texlive-styledcmd
Version:	65262
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(styledcmd.sty) = 2024
BuildArch:	noarch

%description
This package allows creating and maintaining different versions
of the same command, in order to choose the best option for
every document. This includes expandable and protected
commands.

%files
%doc %{_texmfdistdir}/doc/latex/styledcmd
%{_texmfdistdir}/tex/latex/styledcmd

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10700 |21cr|texlive-subdocs-51480-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname subdocs

Summary:	Multifile documents
Name:		texlive-subdocs
Version:	51480
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(subdocs.sty) = 2024
BuildArch:	noarch

%description
This is an experimental package aiming to provide a different
approach for multidocument works (mainly, books with a document
per chapter). Unlike the \include mechanism, every subdocument
is a complete normal LaTeX document and may be typeset
separately. What the package does is sharing the .aux files.
The present release is an alpha version, and no attempt has yet
been made to allow it to work with, say, hyperref.

%files
%doc %{_texmfdistdir}/doc/latex/subdocs
%{_texmfdistdir}/tex/latex/subdocs

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10701 |21cr|texlive-subsupscripts-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16080
# category Package
# catalog-ctan /macros/latex/contrib/subsupscripts
# catalog-date 2009-11-20 12:24:11 +0100
# catalog-license noinfo
# catalog-version 1.0
Name:		texlive-subsupscripts
Version:	1.0
Release:	8
Summary:	A range of sub- and superscript commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/subsupscripts
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subsupscripts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subsupscripts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a comprehensive and flexible set of
commands for combinations of left and right sub- and
superscripts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subsupscripts/subsupscripts.sty
%doc %{_texmfdistdir}/doc/latex/subsupscripts/README
%doc %{_texmfdistdir}/doc/latex/subsupscripts/SubSupScripts.pdf
%doc %{_texmfdistdir}/doc/latex/subsupscripts/SubSupScripts.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10702 |21cr|texlive-subtext-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-subtext
Version:	1.1
Release:	3
Summary:	The subtext package provides easy access to subscripts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/subtext
License:	GNU General Public License, version 3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/subtext.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/subtext.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The subtext package provides easy access to subscripts using the
\text{} command from the amstext package. It is done by providing an
optional argument to in math mode. View documentation for further
details.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10703 |21cr|texlive-superiors-51909-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname superiors

Summary:	Attach superior figures to a font family
Name:		texlive-superiors
Version:	51909
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(pgffor.sty)
Provides:	tex-superiors = 2024
Provides:	tex(superiors.map) = 2024
Provides:	tex(superiors.sty) = 2024
Provides:	tex(sups.enc) = 2024
BuildArch:	noarch

%description
The package allows the attachment of an arbitrary superior
figures font to a font family that lacks one. (Superior figures
are commonly used as footnote markers.) Two superior figures
fonts are provided--one matching Times, the other matching
Libertine.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10704 |21cr|texlive-suppose-59281-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname suppose

Summary:	Abbreviate the word "Suppose"
Name:		texlive-suppose
Version:	59281
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsfonts.sty)
#Requires:	tex(amsmath.sty)
#Requires:	tex(euscript.sty)
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(suppose.sty) = 2024
BuildArch:	noarch

%description
This package provides commands for abbreviating the word
"Suppose" in six fonts and with other variations. The author
recommends only using these commands when the immediately
succeeding strings are mathematical in nature. He does not
recommend using them in formal work. The package requires
amsmath, amsfonts, and graphicx.

%files
%doc %{_texmfdistdir}/doc/latex/suppose
%{_texmfdistdir}/tex/latex/suppose

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10705 |21cr|texlive-susy-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/susy
# catalog-date 2008-08-23 22:26:13 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-susy
Version:	20190228
Release:	1
Summary:	Macros for SuperSymmetry-related work
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/susy
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/susy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/susy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides abbreviations of longer expressions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/susy/susy.sty
%doc %{_texmfdistdir}/doc/latex/susy/README
%doc %{_texmfdistdir}/doc/latex/susy/README.TEXLIVE

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10706 |21cr|texlive-svrsymbols-50019-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname svrsymbols

Summary:	A new font with symbols for use in Physics texts
Name:		texlive-svrsymbols
Version:	50019
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-svrsymbols = 2024
Provides:	tex(svrsymbols.map) = 2024
Provides:	tex(SVRsymbols.pfb) = 2024
Provides:	tex(svrsymbols.sty) = 2024
Provides:	tex(SVRsymbols.tfm) = 2024
BuildArch:	noarch

%description
The svrsymbols package is a LaTeX interface to theSVRsymbols
font. The glyphs of this font are ideograms that have been
designed for use in Physics texts. Some symbols are standard
and some are entirely new.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/%{oname}
%{_texmfdistdir}/fonts/map/dvips/%{oname}
%{_texmfdistdir}/fonts/opentype/public/%{oname}
%{_texmfdistdir}/fonts/tfm/public/%{oname}
%{_texmfdistdir}/fonts/type1/public/%{oname}
%{_texmfdistdir}/tex/latex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10707 |21cr|texlive-swfigure-63255-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname swfigure

Summary:	Insert large images that do not fit into a single page
Name:		texlive-swfigure
Version:	63255
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(afterpage.sty)
#Requires:	tex(etoolbox.sty)
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(wrapfig.sty)
#Requires:	tex(xfp.sty)
Provides:	tex(swfigure.sty) = 2024
BuildArch:	noarch

%description
Five different display modes are defined in order to place in a
document large figures that do not fit into a single page. A
single user macro is defined to handle all five display modes.

%files
%doc %{_texmfdistdir}/doc/latex/swfigure
%{_texmfdistdir}/tex/latex/swfigure

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10708 |21cr|texlive-swrule-54267-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname swrule

Summary:	Lines thicker in the middle than at the ends
Name:		texlive-swrule
Version:	54267
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(swrule.sty) = 2024
BuildArch:	noarch

%description
Defines commands that create rules split into a (specified)
number of pieces, whose size varies to produce the effect of a
rule that swells in its centre.

%files
%{_texmfdistdir}/tex/generic/swrule

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10709 |21cr|texlive-swungdash-64204-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname swungdash

Summary:	Typeset a swung dash in LaTeX
Name:		texlive-swungdash
Version:	64204
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(swungdash.sty) = 2024
BuildArch:	noarch

%description
The swung dash (U+2053) is a useful character traditionally
used in typsetting dictionaries, but not supported by most
typefaces. This package provides one simple command to typeset
a swung dash in XeLaTeX and LuaLaTeX, by applying
transformations to the given font's glyph for a tilde.

%files
%doc %{_texmfdistdir}/doc/latex/swungdash
%{_texmfdistdir}/tex/latex/swungdash

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10710 |21cr|texlive-syllogism-1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/syllogism
# catalog-date 2008-10-28 11:39:06 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-syllogism
Version:	1.2
Release:	9
Summary:	Typeset syllogisms in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/syllogism
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/syllogism.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/syllogism.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a simple, configurable, way for neatly
typesetting syllogisms and syllogistic-like arguments, composed
of two premises and a conclusion.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/syllogism/syllogism.sty
%doc %{_texmfdistdir}/doc/latex/syllogism/Examples.pdf
%doc %{_texmfdistdir}/doc/latex/syllogism/Examples.tex
%doc %{_texmfdistdir}/doc/latex/syllogism/README
%doc %{_texmfdistdir}/doc/latex/syllogism/syllogism.pdf
%doc %{_texmfdistdir}/doc/latex/syllogism/syllogism.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10711 |21cr|texlive-symbats3-63833-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname symbats3

Summary:	Macros to use the Symbats3 dingbats fonts
Name:		texlive-symbats3
Version:	63833
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(symbats3.sty) = 2024
BuildArch:	noarch

%description
This package makes available for LaTeX the glyphs in Feorag's
OpenType Symbats3 neopagan dingbats fonts.

%files
%doc %{_texmfdistdir}/doc/fonts/symbats3
%{_texmfdistdir}/tex/latex/symbats3

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10712 |21cr|texlive-synproof-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/synproof
# catalog-date 2009-07-05 17:22:22 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-synproof
Version:	1.0
Release:	8
Summary:	Easy drawing of syntactic proofs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/synproof
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/synproof.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/synproof.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a set of macros based on PSTricks that
will enable you to draw syntactic proofs easily (inspired by
the Gamut books). Very few commands are needed, however fine
tuning of the various parameters (dimensions) can still be
achieved through "key=value" pairs.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/synproof/synproof.sty
%doc %{_texmfdistdir}/doc/latex/synproof/README
%doc %{_texmfdistdir}/doc/latex/synproof/synproof-doc.pdf
%doc %{_texmfdistdir}/doc/latex/synproof/synproof-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10713 |21cr|texlive-syntaxdi-56685-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname syntaxdi

Summary:	Create "railroad" syntax diagrams
Name:		texlive-syntaxdi
Version:	56685
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(syntaxdi.sty) = 2024
BuildArch:	noarch

%description
This package provides TikZ styles for creating special syntax
diagrams known as "railroad" diagrams. The package was
originally distributed as part of the schule bundle.

%files
%doc %{_texmfdistdir}/doc/latex/syntaxdi
%{_texmfdistdir}/tex/latex/syntaxdi

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10714 |21cr|texlive-systeme-0.32-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-systeme
Version:	0.32
Release:	1
Summary:	Format systems of equations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/systeme
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/systeme.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/systeme.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows you to enter systems of equations or
inequalities in an intuitive way, and produces typeset output
where the terms and signs are aligned vertically. The package
works with plain TeX or LaTeX, but e-TeX is required. Cette
petite extension permet de saisir des systemes d'equations ou
inequations de facon intuitive, et produit un affichage ou les
termes et les signes sont alignes verticalement.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/systeme
%doc %{_texmfdistdir}/doc/generic/systeme

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10715 |21cr|texlive-table-fct-41849-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname table-fct

Summary:	Draw a variations table of functions and a convexity table of its graph
Name:		texlive-table-fct
Version:	41849
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(table-fct.sty) = 2024
BuildArch:	noarch

%description
Draw a variations table of functions and a convexity table of
its graph This version offers two environnements, to draw
variations table of a function and a convexity table of its
graph.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10716 |21cr|texlive-tablor-4.07g-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31855
# category Package
# catalog-ctan /macros/latex/contrib/tablor
# catalog-date 2013-10-07 18:39:11 +0200
# catalog-license lppl
# catalog-version 4.07-g
Name:		texlive-tablor
Version:	4.07g
Release:	11
Summary:	Create tables of signs and of variations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tablor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tablor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tablor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to use the computer algebra system
XCAS to generate tables of signs and of variations (the actual
plotting of the tables uses the MetaPost macro package
tableauVariations). Tables with forbidden regions may be
developed using the package. A configuration file permits some
configuration of the language to be used in the diagrams. The
tablor package requires that shell escape be enabled.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tablor/tablor-xetex.sty
%{_texmfdistdir}/tex/latex/tablor/tablor.cfg
%{_texmfdistdir}/tex/latex/tablor/tablor.sty
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/TSav-105.mp
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/capture.eps
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.0
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.1
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.10
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.105
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.11
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.12
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.13
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.14
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.15
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.16
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.17
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.18
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.19
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.2
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.20
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.21
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.22
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.23
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.24
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.25
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.26
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.27
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.28
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.29
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.3
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.30
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.31
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.32
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.33
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.35
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.36
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.37
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.38
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.39
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.4
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.40
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.41
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.42
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.43
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.44
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.45
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.47
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.48
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.49
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.5
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.50
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.51
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.52
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.53
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.54
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.55
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.56
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.57
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.6
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.7
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.8
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.9
%doc %{_texmfdistdir}/doc/latex/tablor/Figures/tablor_Tab.mp
%doc %{_texmfdistdir}/doc/latex/tablor/README
%doc %{_texmfdistdir}/doc/latex/tablor/README-fr.txt
%doc %{_texmfdistdir}/doc/latex/tablor/auto/tablor-xetex.el
%doc %{_texmfdistdir}/doc/latex/tablor/auto/tablor.el
%doc %{_texmfdistdir}/doc/latex/tablor/tablor.html
%doc %{_texmfdistdir}/doc/latex/tablor/tablor.pdf
%doc %{_texmfdistdir}/doc/latex/tablor/tablor.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10717 |21cr|texlive-tablvar-51543-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tablvar

Summary:	Typesetting pretty tables of signs and variations according to French usage
Name:		texlive-tablvar
Version:	51543
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tablvar.sty) = 2024
BuildArch:	noarch

%description
This is a complete and easy-to-use package for typesetting
pretty tables of signs and variations according to French
usage. The syntax is similar to that of the array environment
and uses intuitive position commands. Arrows are drawn
automatically (using PSTricks by default or TikZ as an option).
Macros are provided for drawing twin bars, single bars crossing
the zeros, areas where the function is not defined, or placing
special values. Several features of the variation tables can be
customized.

%files
%doc %{_texmfdistdir}/doc/latex/tablvar
%{_texmfdistdir}/tex/latex/tablvar

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10718 |21cr|texlive-tabto-generic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tabto-generic
Version:	20190228
Release:	1
Summary:	"Tab" to a measured position in the line
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/misc/tabto.tex
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabto-generic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
\tabto{<length>} moves the typesetting position to <length>
from the left margin of the paragraph. If the typesetting
position is already further along, \tabto starts a new line.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/tabto-generic

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10719 |21cr|texlive-tabularray-66276-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tabularray

Summary:	Typeset tabulars and arrays with LaTeX3
Name:		texlive-tabularray
Version:	66276
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tabularray-2021.sty) = 2024
Provides:	tex(tabularray.sty) = 2024
BuildArch:	noarch

%description
LaTeX tables are implemented using TeX commands such as
\halign, \noalign, \span, and \omit. In order to implement new
features, many macro packages have modified the inner table
commands inside LaTeX. This makes package code complicated,
difficult to maintain, and often conflicts with each other. At
present, the LaTeX3 programming layer is basically mature. This
tabularray package will discard the old \halign commands and
directly use LaTeX3 functions to parse the table, and then
typeset the entire table. Under the premise of being compatible
with the basic syntax of LaTeX2 tables, this macro package will
completely separate the content and style of the table, and the
style of the table can be completely set in keyval way.

%files
%doc %{_texmfdistdir}/doc/latex/tabularray
%{_texmfdistdir}/tex/latex/tabularray

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10720 |21cr|texlive-tagpair-42138-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tagpair

Summary:	Word-by-word glosses, translations, and bibliographic attributions
Name:		texlive-tagpair
Version:	42138
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(varwidth.sty)
Provides:	tex-tagpair = 2024
Provides:	tex(tagpair.sty) = 2024
BuildArch:	noarch

%description
This package provides environments and commands for pairing
lines, bottom lines, and tagged lines, intended to be used in
particular for word-by-word glosses, translations, and
bibliographic attributions, respectively. This LaTeX package is
inspired by Marcel R. van der Goot's classic Plain TeX macros
in gloss.tex.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/tagpair/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10721 |21cr|texlive-tagpdf-66461-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tagpdf

Summary:	Tools for experimenting with tagging using pdfLaTeX and LuaLaTeX
Name:		texlive-tagpdf
Version:	66461
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tagpdf-base.sty) = 2024
Provides:	tex(tagpdf-debug-generic.sty) = 2024
Provides:	tex(tagpdf-debug-lua.sty) = 2024
Provides:	tex(tagpdf-debug.sty) = 2024
Provides:	tex(tagpdfdocu-patches.sty) = 2024
Provides:	tex(tagpdf-luatex.def) = 2024
Provides:	tex(tagpdf-mc-code-generic.sty) = 2024
Provides:	tex(tagpdf-mc-code-lua.sty) = 2024
Provides:	tex(tagpdf-ns-latex-book.def) = 2024
Provides:	tex(tagpdf-ns-latex.def) = 2024
Provides:	tex(tagpdf-ns-latex-inline.def) = 2024
Provides:	tex(tagpdf-ns-mathml.def) = 2024
Provides:	tex(tagpdf-ns-pdf2.def) = 2024
Provides:	tex(tagpdf-ns-pdf.def) = 2024
Provides:	tex(tagpdf.sty) = 2024
BuildArch:	noarch

%description
The package offers tools to experiment with tagging and
accessibility using pdfLaTeX and LuaTeX. It isn't meant for
production but allows the user to try out how difficult it is
to tag some structures; to try out how much tagging is really
needed; to test what else is needed so that a pdf works e.g.
with a screen reader. Its goal is to get a feeling for what has
to be done, which kernel changes are needed, how packages
should be adapted.

%files
%doc %{_texmfdistdir}/doc/latex/tagpdf/
%{_texmfdistdir}/tex/latex/tagpdf/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10722 |21cr|texlive-talos-61820-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname talos

Summary:	A Greek cult font from the eighties
Name:		texlive-talos
Version:	61820
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
A cult Greek font from the eighties, used at the University of
Crete, Greece. It belonged to the first TeX installation in a
Greek University and most probably the first TeX installation
that supported the Greek language.

%files
%doc %{_texmfdistdir}/doc/fonts/talos
%{_texmfdistdir}/fonts/opentype/public/talos

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10723 |21cr|texlive-tangramtikz-66183-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tangramtikz

Summary:	Tangram puzzles, with TikZ
Name:		texlive-tangramtikz
Version:	66183
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(TangramTikz.sty) = 2024
BuildArch:	noarch

%description
This package provides some commands (with English and French
keys) to work with tangram puzzles: \begin{EnvTangramTikz} and
\PieceTangram to position a piece, \TangramTikz to display a
predefined Tangram.

%files
%doc %{_texmfdistdir}/doc/latex/tangramtikz
%{_texmfdistdir}/tex/latex/tangramtikz

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10724 |21cr|texlive-tapir-0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20484
# category Package
# catalog-ctan /fonts/tapir
# catalog-date 2007-03-12 14:32:12 +0100
# catalog-license gpl
# catalog-version 0.2
Name:		texlive-tapir
Version:	0.2
Release:	9
Summary:	A simple geometrical font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/tapir
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tapir.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tapir.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Tapir is a simple geometrical font mostly created of line and
circular segments with constant thickness. The font is
available as MetaFont source and in Adobe Type 1 format. The
character set contains all characters in the range 0-127 (as in
cmr10), accented characters used in the Czech, Slovak and
Polish languages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/tapir/tap-enc.mf
%{_texmfdistdir}/fonts/source/public/tapir/tap.mf
%{_texmfdistdir}/fonts/type1/public/tapir/tap.pfb
%doc %{_texmfdistdir}/doc/fonts/tapir/readme
%doc %{_texmfdistdir}/doc/fonts/tapir/readme.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10725 |21cr|texlive-tasks-61541-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tasks

Summary:	Horizontally columned lists
Name:		texlive-tasks
Version:	61541
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(cntformats.sty)
#Requires:	tex(environ.sty)
#Requires:	tex(epic.sty)
#Requires:	tex(expl3.sty)
Requires:	texlive-kpathsea
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
#Requires:	tex(xparse.sty)
#Requires:	tex(xtemplate.sty)
Provides:	tex-tasks = 2024
Provides:	tex(tasks.cfg) = 2024
Provides:	tex(tasks.sty) = 2024
BuildArch:	noarch

%description
The reason for the creation of the tasks environment was an
unwritten agreement in German maths textbooks (exspecially
(junior) high school textbooks) to organize exercises in
columns counting horizontally rather than vertically. This is
what the tasks package helps to achieve.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/tasks/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10726 |21cr|texlive-technion-thesis-template-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-technion-thesis-template
Version:	1.0
Release:	1
Summary:	This template for writing a thesis according to the Technion specifications
Group:		Publishing
URL:		https://www.texlive.info/CTAN/macros/xetex/latex/technion-thesis-template/
License:	CC BY 4.0
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/technion-thesis-template.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/technion-thesis-template.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a template for writing a thesis according to the Technion specifications. 
Please, however, check with the graduate school website 
to see if any specifications have changed. 
This template was written by Boaz Shuval (January 2019).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/technion-thesis-template
%doc %{_texmfdistdir}/doc/xelatex/technion-thesis-template

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10727 |21cr|texlive-templatetools-34495.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname templatetools

Summary:	Commands useful in LaTeX templates
Name:		texlive-templatetools
Version:	34495.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(array.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(ifdraft.sty)
#Requires:	tex(ifpdf.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Requires:	tex(ltxcmds.sty)
#Requires:	tex(scrlfile.sty)
Provides:	tex-templatetools = 2024
Provides:	tex(templatetools.sty) = 2024
BuildArch:	noarch

%description
The package provides a collection of tools, which are helpful
for the creation of a LaTeX template if conditional paths for
code execution are required. All the commands work both in the
preamble and in the document.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/templatetools/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10728 |21cr|texlive-tempora-39596-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tempora

Summary:	Greek and Cyrillic to accompany Times
Name:		texlive-tempora
Version:	39596
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(lgr-tempora.enc) = 2024
Provides:	tex(lgr-temporaosf.enc) = 2024
Provides:	tex(lgrtempora-tlf.fd) = 2024
Provides:	tex(lgrtempora-tosf.fd) = 2024
Provides:	tex(OT1Tempora-Sup.fd) = 2024
Provides:	tex(OT1Tempora-TLF.fd) = 2024
Provides:	tex(OT1Tempora-TOsF.fd) = 2024
Provides:	tex(ot2-tempora.enc) = 2024
Provides:	tex(ot2-temporaosf.enc) = 2024
Provides:	tex(ot2tempora-tlf.fd) = 2024
Provides:	tex(ot2tempora-tosf.fd) = 2024
Provides:	tex(T1Tempora-Sup.fd) = 2024
Provides:	tex(T1Tempora-TLF.fd) = 2024
Provides:	tex(T1Tempora-TOsF.fd) = 2024
Provides:	tex(t2a-tempora.enc) = 2024
Provides:	tex(t2a-temporaosf.enc) = 2024
Provides:	tex(t2atempora-tlf.fd) = 2024
Provides:	tex(t2atempora-tosf.fd) = 2024
Provides:	tex(t2b-tempora.enc) = 2024
Provides:	tex(t2b-temporaosf.enc) = 2024
Provides:	tex(t2btempora-tlf.fd) = 2024
Provides:	tex(t2btempora-tosf.fd) = 2024
Provides:	tex(t2c-tempora.enc) = 2024
Provides:	tex(t2c-temporaosf.enc) = 2024
Provides:	tex(t2ctempora-tlf.fd) = 2024
Provides:	tex(t2ctempora-tosf.fd) = 2024
Provides:	tex-tempora = 2024
Provides:	tex(Tempora-BoldItalic.otf) = 2024
Provides:	tex(Tempora-BoldItalic.pfb) = 2024
Provides:	tex(Tempora-BoldItalic-sup-ot1.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-sup-t1--base.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-sup-t1.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-sup-t1.vf) = 2024
Provides:	tex(Tempora-BoldItalic-TLF-lgr.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-ot1--base.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-ot1.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-ot1.vf) = 2024
Provides:	tex(Tempora-BoldItalic-TLF-ot2.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-t1--base.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-t1.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-t1.vf) = 2024
Provides:	tex(Tempora-BoldItalic-TLF-t2a.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-TLF-t2b.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-TLF-t2c.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-ts1.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tlf-ts1.vf) = 2024
Provides:	tex(Tempora-BoldItalic-TOsF-lgr.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-ot1--base.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-ot1.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-ot1.vf) = 2024
Provides:	tex(Tempora-BoldItalic-TOsF-ot2.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-t1--base.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-t1.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-t1.vf) = 2024
Provides:	tex(Tempora-BoldItalic-TOsF-t2a.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-TOsF-t2b.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-TOsF-t2c.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-ts1.tfm) = 2024
Provides:	tex(Tempora-BoldItalic-tosf-ts1.vf) = 2024
Provides:	tex(Tempora-Bold.otf) = 2024
Provides:	tex(Tempora-Bold.pfb) = 2024
Provides:	tex(Tempora-Bold-sup-ot1.tfm) = 2024
Provides:	tex(Tempora-Bold-sup-t1--base.tfm) = 2024
Provides:	tex(Tempora-Bold-sup-t1.tfm) = 2024
Provides:	tex(Tempora-Bold-sup-t1.vf) = 2024
Provides:	tex(Tempora-Bold-TLF-lgr.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-ot1--base.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-ot1.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-ot1.vf) = 2024
Provides:	tex(Tempora-Bold-TLF-ot2.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-t1--base.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-t1.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-t1.vf) = 2024
Provides:	tex(Tempora-Bold-TLF-t2a.tfm) = 2024
Provides:	tex(Tempora-Bold-TLF-t2b.tfm) = 2024
Provides:	tex(Tempora-Bold-TLF-t2c.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-ts1--base.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-ts1.tfm) = 2024
Provides:	tex(Tempora-Bold-tlf-ts1.vf) = 2024
Provides:	tex(Tempora-Bold-TOsF-lgr.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-ot1--base.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-ot1.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-ot1.vf) = 2024
Provides:	tex(Tempora-Bold-TOsF-ot2.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-t1--base.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-t1.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-t1.vf) = 2024
Provides:	tex(Tempora-Bold-TOsF-t2a.tfm) = 2024
Provides:	tex(Tempora-Bold-TOsF-t2b.tfm) = 2024
Provides:	tex(Tempora-Bold-TOsF-t2c.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-ts1--base.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-ts1.tfm) = 2024
Provides:	tex(Tempora-Bold-tosf-ts1.vf) = 2024
Provides:	tex(Tempora-Italic.otf) = 2024
Provides:	tex(Tempora-Italic.pfb) = 2024
Provides:	tex(Tempora-Italic-sup-ot1.tfm) = 2024
Provides:	tex(Tempora-Italic-sup-t1--base.tfm) = 2024
Provides:	tex(Tempora-Italic-sup-t1.tfm) = 2024
Provides:	tex(Tempora-Italic-sup-t1.vf) = 2024
Provides:	tex(Tempora-Italic-TLF-lgr.tfm) = 2024
Provides:	tex(Tempora-Italic-tlf-ot1.tfm) = 2024
Provides:	tex(Tempora-Italic-TLF-ot2.tfm) = 2024
Provides:	tex(Tempora-Italic-tlf-t1--base.tfm) = 2024
Provides:	tex(Tempora-Italic-tlf-t1.tfm) = 2024
Provides:	tex(Tempora-Italic-tlf-t1.vf) = 2024
Provides:	tex(Tempora-Italic-TLF-t2a.tfm) = 2024
Provides:	tex(Tempora-Italic-TLF-t2b.tfm) = 2024
Provides:	tex(Tempora-Italic-TLF-t2c.tfm) = 2024
Provides:	tex(Tempora-Italic-tlf-ts1--base.tfm) = 2024
Provides:	tex(Tempora-Italic-tlf-ts1.tfm) = 2024
Provides:	tex(Tempora-Italic-tlf-ts1.vf) = 2024
Provides:	tex(Tempora-Italic-TOsF-lgr.tfm) = 2024
Provides:	tex(Tempora-Italic-tosf-ot1.tfm) = 2024
Provides:	tex(Tempora-Italic-TOsF-ot2.tfm) = 2024
Provides:	tex(Tempora-Italic-tosf-t1--base.tfm) = 2024
Provides:	tex(Tempora-Italic-tosf-t1.tfm) = 2024
Provides:	tex(Tempora-Italic-tosf-t1.vf) = 2024
Provides:	tex(Tempora-Italic-TOsF-t2a.tfm) = 2024
Provides:	tex(Tempora-Italic-TOsF-t2b.tfm) = 2024
Provides:	tex(Tempora-Italic-TOsF-t2c.tfm) = 2024
Provides:	tex(Tempora-Italic-tosf-ts1--base.tfm) = 2024
Provides:	tex(Tempora-Italic-tosf-ts1.tfm) = 2024
Provides:	tex(Tempora-Italic-tosf-ts1.vf) = 2024
Provides:	tex(tempora.map) = 2024
Provides:	tex(Tempora-Regular.otf) = 2024
Provides:	tex(Tempora-Regular.pfb) = 2024
Provides:	tex(Tempora-Regular-sup-ot1.tfm) = 2024
Provides:	tex(Tempora-Regular-sup-t1--base.tfm) = 2024
Provides:	tex(Tempora-Regular-sup-t1.tfm) = 2024
Provides:	tex(Tempora-Regular-sup-t1.vf) = 2024
Provides:	tex(Tempora-Regular-TLF-lgr.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-ot1--base.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-ot1.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-ot1.vf) = 2024
Provides:	tex(Tempora-Regular-TLF-ot2.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-t1--base.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-t1.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-t1.vf) = 2024
Provides:	tex(Tempora-Regular-TLF-t2a.tfm) = 2024
Provides:	tex(Tempora-Regular-TLF-t2b.tfm) = 2024
Provides:	tex(Tempora-Regular-TLF-t2c.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-ts1--base.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-ts1.tfm) = 2024
Provides:	tex(Tempora-Regular-tlf-ts1.vf) = 2024
Provides:	tex(Tempora-Regular-TOsF-lgr.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-ot1--base.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-ot1.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-ot1.vf) = 2024
Provides:	tex(Tempora-Regular-TOsF-ot2.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-t1--base.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-t1.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-t1.vf) = 2024
Provides:	tex(Tempora-Regular-TOsF-t2a.tfm) = 2024
Provides:	tex(Tempora-Regular-TOsF-t2b.tfm) = 2024
Provides:	tex(Tempora-Regular-TOsF-t2c.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-ts1--base.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-ts1.tfm) = 2024
Provides:	tex(Tempora-Regular-tosf-ts1.vf) = 2024
Provides:	tex(tempora.sty) = 2024
Provides:	tex(tmp_6rqc3d.enc) = 2024
Provides:	tex(tmp_ac5xuc.enc) = 2024
Provides:	tex(tmp_aq2g6w.enc) = 2024
Provides:	tex(tmp_arnbc6.enc) = 2024
Provides:	tex(tmp_jglahm.enc) = 2024
Provides:	tex(tmp_m6t7eu.enc) = 2024
Provides:	tex(tmp_mdnuug.enc) = 2024
Provides:	tex(tmp_q3dzgc.enc) = 2024
Provides:	tex(tmp_v6f3ze.enc) = 2024
Provides:	tex(tmp_xvqxbr.enc) = 2024
Provides:	tex(tmp_y4r4km.enc) = 2024
Provides:	tex(tmp_yz5x6b.enc) = 2024
Provides:	tex(TS1Tempora-TLF.fd) = 2024
Provides:	tex(TS1Tempora-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package, derived from TemporaLGCUni by Alexej Kryukov, is
meant as a companion to Times text font packages, providing
Greek and Cyrillic in matching weights and styles. OpenType and
Type1 fonts are provided, with LaTeX support files giving
essentially complete LGR coverage of monotonic, polytonic and
ancient Greek, and almost full T2A coverage of Cyrillic.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/afm/public/tempora/
%{_texmfdistdir}/fonts/enc/dvips/tempora/
%{_texmfdistdir}/fonts/map/dvips/tempora/
%{_texmfdistdir}/fonts/opentype/public/tempora/
%{_texmfdistdir}/fonts/tfm/public/tempora/
%{_texmfdistdir}/fonts/type1/public/tempora/
%{_texmfdistdir}/fonts/vf/public/tempora/
%{_texmfdistdir}/tex/latex/tempora/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10729 |21cr|texlive-tengwarscript-1.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tengwarscript
Version:	1.3.1
Release:	3
Summary:	LaTeX support for using Tengwar fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tengwarscript
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tengwarscript.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tengwarscript.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tengwarscript.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides "mid-level" access to tengwar fonts,
providing good quality output. Each tengwar sign is represented
by a command, which will place the sign nicely in relation to
previous signs. A transcription package is available from the
package's home page: writing all those tengwar commands would
quickly become untenable. The package supports the use of a
wide variety of tengwar fonts that are available from the net;
metric and map files are provided for all the supported fonts.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/tengwarscript
%{_texmfdistdir}/fonts/map/dvips/tengwarscript
%{_texmfdistdir}/fonts/tfm/public/tengwarscript
%{_texmfdistdir}/fonts/vf/public/tengwarscript
%{_texmfdistdir}/tex/latex/tengwarscript
%doc %{_texmfdistdir}/doc/latex/tengwarscript
#- source
%doc %{_texmfdistdir}/source/latex/tengwarscript

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10730 |21cr|texlive-tensind-20190626-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tensind
Version:	20190626
Release:	1
Summary:	Typeset tensors
Group:		Publishing
URL:		https://ctan.org/pkg/tensind
License:	MIT
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/tensind.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/tensind.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typesets tensors with dots filling gaps and fine tuning of
index placement.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10731 |21cr|texlive-tensor-2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/tensor
# catalog-date 2006-11-03 07:18:50 +0100
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-tensor
Version:	2.1
Release:	8
Summary:	Typeset tensors
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tensor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tensor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tensor.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tensor.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package which allows the user to set tensor-style super- and
subscripts with offsets between successive indices. It supports
the typesetting of tensors with mixed upper and lower indices
with spacing, also typset preposed indices. This is a complete
revision and extension of the original 'tensor' package by Mike
Piff.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tensor/tensor.sty
%doc %{_texmfdistdir}/doc/latex/tensor/README
%doc %{_texmfdistdir}/doc/latex/tensor/tensor.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tensor/tensor.dtx
%doc %{_texmfdistdir}/source/latex/tensor/tensor.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10732 |21cr|texlive-termcal-de-47111-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname termcal-de

Summary:	German localization for termcal
Name:		texlive-termcal-de
Version:	47111
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(termcal-de.sty) = 2024
BuildArch:	noarch

%description
This package provides a German localization to the termcal
package written by Bill Mitchell, which is intended to print a
term calendar for use in planning a class.

%files
%{_texmfdistdir}/doc/latex/termcal-de/
%{_texmfdistdir}/tex/latex/termcal-de/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10733 |21cr|texlive-termes-otf-64733-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname termes-otf

Summary:	Using the OpenType fonts TeX Gyre Termes
Name:		texlive-termes-otf
Version:	64733
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(termes-otf.sty) = 2024
BuildArch:	noarch

%description
This package provides the OpenType version of the TeX Gyre
Termes font, including text and math fonts. The package needs
LuaLaTeX or XeLaTeX. The missing typefaces like bold math and
slanted text are also defined.

%files
%doc %{_texmfdistdir}/doc/fonts/termes-otf
%{_texmfdistdir}/tex/latex/termes-otf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10734 |21cr|texlive-termmenu-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-termmenu
Version:	1
Release:	1
Summary:	The package provides support for terminal-based menus using expl3
Group:		Publishing
URL:		https://ctan.org/pkg/termmenu
License:	LPPL
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/texlive-termmenu.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/texlive-termmenu.source.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/texlive-termmenu.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
When writing programs, it's often required to present the user
with a list of options/actions. The user is then expected to
select one of these options for the program to process.
termmenu provides this mechanism for TeX. It requires only
expl3 support, thus the l3kernel and l3packages are both

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/source/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10735 |21cr|texlive-termsim-61414-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname termsim

Summary:	Simulate Win10, Ubuntu, and Mac terminals
Name:		texlive-termsim
Version:	61414
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(termsim.sty) = 2024
BuildArch:	noarch

%description
This LaTeX3 package provides environments terminal and
terminal*, and macros \termfile and \termfile* to simulate
Win10, Ubuntu and Mac terminals. It is based on tcolorbox,
minted and listings.

%files
%doc %{_texmfdistdir}/doc/latex/termsim
%{_texmfdistdir}/tex/latex/termsim

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10736 |21cr|texlive-testhyphens-38928-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname testhyphens

Summary:	Testing hyphenation patterns
Name:		texlive-testhyphens
Version:	38928
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-testhyphens = 2024
Provides:	tex(testhyphens.sty) = 2024
BuildArch:	noarch

%description
The package may be used for testing hyphenation patterns or for
controlling that specific words are hyphenated as expected.
This package implements some old TUGboat code to adapt it to
LaTeX with some enhancements. It differs form \showhyphens,
because it typesets its output on the document's output file.
It also works with xelatex, where \showhyphens requires a
workaround.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/testhyphens/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10737 |21cr|texlive-testidx-60966-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname testidx

Summary:	Dummy text for testing index styles and indexing applications
Name:		texlive-testidx
Version:	60966
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(glossaries.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(testidx-glossaries-diglyphs.tex) = 2024
Provides:	tex(testidx-glossaries-nodiglyphs.tex) = 2024
Provides:	tex(testidx-glossaries-samples.tex) = 2024
Provides:	tex(testidx-glossaries.sty) = 2024
Provides:	tex(testidx.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package that provides a command to produce
dummy text interspersed with \index commands to test an index
style or indexing application. The dummy text is mostly in
English, but includes extended Latin characters provided either
through LaTeX accent commands or directly with UTF-8
characters, depending on the setup, to allow for testing
extended Latin alphabets. The supplementary package
testidx-glossaries.sty uses the indexing interface provided by
the glossaries package.

%files
%doc %{_texmfdistdir}/doc/latex/testidx/
%{_texmfdistdir}/bibtex/bib/testidx/
%{_texmfdistdir}/tex/latex/testidx/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10738 |21cr|texlive-tetragonos-20220324-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tetragonos
Version:	20220324
Release:	1
Summary:	This is a XELATEX package for mapping Chinese characters to their codes in the Four-Corner Method
Group:		Publishing
URL:		https://ctan.org/pkg/tetragonos
License:	https://ctan.org/license/lppl1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tetragonos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tetragonos.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
tetragonos is a XELATEX package for mapping Chinese characters to their codes in the Four-Corner Method. 
Four-Corner Method is an encoding system for Chinese characters, which attaches 
Chinese characters with four of five digits according to their shape, so they can be sorted and indexed. 
A macro for this purpose is provided in the package. This package can only run with xeCJK package and XELATEX.
The package manual in Chinese provides more details and explanations to the implementation.

#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/xelatex/tetragonos
%doc %{_texmfdistdir}/doc/xelatex/tetragonos


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10739 |21cr|texlive-texapi-1.04-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24237
# category Package
# catalog-ctan /macros/generic/texapi
# catalog-date 2011-10-03 08:52:14 +0200
# catalog-license lppl
# catalog-version 1.04
Name:		texlive-texapi
Version:	1.04
Release:	8
Summary:	Macros to write format-independent packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/texapi
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texapi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texapi.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Texapi provides utility macros to write format-independent (and
-aware) packages. It is similar in spirit to the etoolbox,
except that it isn't tied to LaTeX. Tools include: engine and
format detection, expansion control, command definition and
manipulation, various testing macros, string operations, and
highly customizable while and for loops. The package requires
e-TeX (and, should you want to compile its documentation, the
pitex package is also needed).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/texapi/texapi.tex
%doc %{_texmfdistdir}/doc/generic/texapi/README
%doc %{_texmfdistdir}/doc/generic/texapi/texapi-doc.pdf
%doc %{_texmfdistdir}/doc/generic/texapi/texapi-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10740 |21cr|texlive-texcount-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texcount
Version:	3.1.1
Release:	1
Summary:	Count words in a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/texcount
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texcount.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texcount.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texcount.bin = %{EVRD}

%description
TeXcount is a Perl script that counts words in the text of
LaTeX files. It has rules for handling most of the common
macros, and can provide colour-coded output showing which parts
of the text have been counted. The package script is available
as a Web service via its home page.

#-----------------------------------------------------------------------
%files
%{_bindir}/texcount
%{_texmfdistdir}/scripts/texcount
%doc %{_texmfdistdir}/doc/support/texcount

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texcount/texcount.pl texcount
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10741 |21cr|texlive-texdate-2.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29776
# category Package
# catalog-ctan /macros/latex/contrib/mpgraphics
# catalog-date 2013-04-08 09:07:09 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-texdate
Version:	2.0
Release:	12
Summary:	Date printing, formatting, and manipulation in TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/texdate
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdate.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdate.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeX and LaTeX provide few facilities for dates by default,
though many packages have filled this gap. This package 
fills it, as well, with a pure TeX-primitive implementation.
It can print dates, advance them by numbers of days, weeks,
or months, determine the weekday automatically TeX and LaTeX 
provide few facilities for dates by default, though many 
packages have filled this gap. This package fills it, as well,
with a pure TeX-primitive implementation. It can print dates,
advance them by numbers of days, weeks, or months, determine 
the weekday automatically (with an algorithm cribbed from the
dayofweek.tex file written by Martin Minow), and print them 
in (mostly) arbitrary format. It can also print calendars (monthly and yearly) automatically, and can be easily localized for non-English languages. 
----------------
%files
%{_texmfdistdir}/tex/generic/texdate/texdate.sty
%doc %{_texmfdistdir}/doc/generic/texdate/README
%doc %{_texmfdistdir}/doc/generic/texdate/lppl.txt
%doc %{_texmfdistdir}/doc/generic/texdate/CHANGES
%doc %{_texmfdistdir}/doc/generic/texdate/texdate.pdf
#- source
%doc %{_texmfdistdir}/source/generic/texdate/texdate.dtx
%doc %{_texmfdistdir}/source/generic/texdate/texdate.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10742 |21cr|texlive-texdef-1.8a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26420
# category Package
# catalog-ctan /support/texdef
# catalog-date 2012-05-15 15:44:48 +0200
# catalog-license gpl3
# catalog-version 1.7b
Name:		texlive-texdef
Version:	1.8a
Release:	2
Summary:	Display the definitions of TeX commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/texdef
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdef.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdef.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texdef.bin = %{EVRD}

%description
The (Perl) script displays the definition of (La)TeX command
sequences/macros. Various options allow the selection of the
used class and package files and other things which can have
influence on the definition (before/after the preamble, inside
an environment, ...). The script creates a temporary TeX file
which is then compiled using (La)TeX to find the '\meaning' of
the command sequence. The result is formatted and presented to
the user. Length or number command sequences (dimensions,
\char..., count registers, ...) are recognized and the
contained value is also shown (using \the). Special definitions
like protected macros are also recognized and the underlying
macros are shown as well. The script will show plain TeX
definitions by default. LaTeX and ConTeXt are supported,
including flavours (pdf(la)tex, lua(la)tex, xe(la)tex, ...).
The flavour can be selected using an command line option or
over the script name: latexdef will use LaTeX as default, etc.

#-----------------------------------------------------------------------
%files
%{_bindir}/texdef
%{_texmfdistdir}/scripts/texdef/texdef.pl
%doc %{_texmfdistdir}/doc/support/texdef/INSTALL
%doc %{_texmfdistdir}/doc/support/texdef/README
%doc %{_texmfdistdir}/doc/support/texdef/texdef.pdf
#- source
%doc %{_texmfdistdir}/source/support/texdef/texdef.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texdef/texdef.pl texdef
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10743 |21cr|texlive-texdiff-0.4-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29752
# category Package
# catalog-ctan /support/texdiff
# catalog-date 2012-06-27 20:43:57 +0200
# catalog-license artistic
# catalog-version 0.4
Name:		texlive-texdiff
Version:	0.4
Release:	14
Summary:	Compare documents and produce tagged merge
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/texdiff
License:	ARTISTIC
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdiff.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdiff.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texdiff.bin = %{EVRD}

%description
Two files are compared and a new TeX file is output. When the
output file is processed with (La)TeX it marks new changes with
blue and old text with red with a strike-through line.
Furthermore, passages with changes are marked at the margin
with grey bars by the LaTeX changebar package.


#-----------------------------------------------------------------------
%files
%{_bindir}/texdiff
%{_texmfdistdir}/scripts/texdiff/texdiff
%doc %{_mandir}/man1/texdiff.1*
%doc %{_texmfdistdir}/doc/man/man1/texdiff.man1.pdf
%doc %{_texmfdistdir}/doc/support/texdiff/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texdiff/texdiff texdiff
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10744 |21cr|texlive-texdimens-61070-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname texdimens

Summary:	Conversion of TeX dimensions to decimals
Name:		texlive-texdimens
Version:	61070
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(texdimens.sty) = 2024
Provides:	tex(texdimens.tex) = 2024
BuildArch:	noarch

%description
Utilities and documentation related to TeX dimensional units,
usable both with Plain (\input texdimens) and with LaTeX
(\usepackage{texdimens}).

%files
%doc %{_texmfdistdir}/doc/generic/texdimens
%{_texmfdistdir}/tex/generic/texdimens

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10745 |21cr|texlive-texdirflatten-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texdirflatten
Epoch:		1
Version:	1.3
Release:	2
Summary:	Collect files related to a LaTeX job in a single directory
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/texdirflatten
License:	ARTISTIC
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdirflatten.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdirflatten.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texdirflatten.bin = %{EVRD}

%description
The Perl script parses a LaTeX file recursively, scanning all
child files, and collects details of any included and other
data files. These component files, are then all put into a
single directory (thus "flattening" the document's directory
tree).

#-----------------------------------------------------------------------
%files
%{_bindir}/texdirflatten
%{_texmfdistdir}/scripts/texdirflatten
%doc %{_mandir}/man1/texdirflatten.1*
%doc %{_texmfdistdir}/doc/man/man1/texdirflatten.man1.pdf
%doc %{_texmfdistdir}/doc/support/texdirflatten

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texdirflatten/texdirflatten texdirflatten
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10746 |21cr|texlive-tex-ewd-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/generic/tex-ewd
# catalog-date 2008-11-15 12:33:11 +0100
# catalog-license bsd
# catalog-version undef
Name:		texlive-tex-ewd
Version:	20190228
Release:	1
Summary:	Macros to typeset calculational proofs and programs in Dijkstra's style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/tex-ewd
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-ewd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-ewd.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Edsger W. Dijkstra and others suggest a unique style to present
mathematical proofs and to construct programs. This package
provides macros that support calculational proofs and
Dijkstra's "guarded command language".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/tex-ewd/dotnot.tex
%doc %{_texmfdistdir}/doc/generic/tex-ewd/README
%doc %{_texmfdistdir}/doc/generic/tex-ewd/bsdlic.txt
%doc %{_texmfdistdir}/doc/generic/tex-ewd/p0.tex
%doc %{_texmfdistdir}/doc/generic/tex-ewd/t1.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10747 |21cr|texlive-texlive-ja-66482-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname texlive-ja

Summary:	TeX Live manual (Japanese)
Name:		texlive-texlive-ja
Version:	66482
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
TeX Live manual (Japanese).

%files
%doc %{_texmfdistdir}/doc/texlive/texlive-ja

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10748 |21cr|texlive-texlive-msg-translations-66593-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname texlive-msg-translations

Summary:	Translations of the TeX Live installer and TeX Live Manager
Name:		texlive-texlive-msg-translations
Version:	66593
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-texlive-msg-translations = 2024
BuildArch:	noarch

%description
This package contains the translated messages of the TeX Live
installer and TeX Live Manager. For information on creating or
updating translations, see
http://tug.org/texlive/doc.html#install-tl-xlate.

%files
%{_texmfdistdir}/tlpkg/translations

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}/tlpkg
cp -fpar tlpkg/translations %{buildroot}%{_texmfdistdir}/tlpkg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10749 |21cr|texlive-texliveonfly-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /support/texliveonfly
# catalog-date 2011-10-04 11:31:57 +0200
# catalog-license gpl3
# catalog-version undef
%global _python_bytecompile_build 0

Name:		texlive-texliveonfly
Version:	20190228
Release:	1
Summary:	On-the-fly download of missing TeX live packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/texliveonfly
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texliveonfly.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texliveonfly.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texliveonfly.bin = %{EVRD}

%description
The package provides a script that performs 'on the fly'
downloads of missing packages, while a document is being
compiled. (This feature is already available in the MikTeX
distribution for Windows machines.) To use the script, replace
your (LaTeX) compilation command with texliveonfly.py file.tex
(default options are --engine=lualatex and --arguments="-
synctex=1 -interaction=nonstopmode", both of which may be
changed). The script is designed to work on Linux
distributions.

#-----------------------------------------------------------------------
%files
%{_bindir}/texliveonfly
%{_texmfdistdir}/scripts/texliveonfly/texliveonfly.py
%doc %{_texmfdistdir}/doc/support/texliveonfly/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texliveonfly/texliveonfly.py texliveonfly
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10750 |21cr|texlive-tex-locale-48500-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tex-locale

Summary:	Localisation support for TeX and LaTeX documents
Name:		texlive-tex-locale
Version:	48500
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tex-locale-encodings.def) = 2024
Provides:	tex(tex-locale-scripts-enc.def) = 2024
Provides:	tex(tex-locale.sty) = 2024
Provides:	tex(tex-locale-support.def) = 2024
Provides:	tex(tex-locale.tex) = 2024
BuildArch:	noarch

%description
This package uses both tracklang and texosquery to look up the
locale information from the operating system and provide
commands that can access locale-dependent information, such as
the currency symbol and decimal separator. The file
tex-locale.tex provides generic TeX code. The LaTeX package
tex-locale.sty can additionally load babel or polyglossia with
the locale's language setting, as well as various other
packages such as fontspec (XeLaTeX/LuaLaTeX) or fontenc +
inputenc (pdfLaTeX).

%files
%doc %{_texmfdistdir}/doc/generic/tex-locale
%{_texmfdistdir}/tex/generic/tex-locale
%{_texmfdistdir}/tex/latex/tex-locale

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10751 |21cr|texlive-texloganalyser-0.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /support/texloganalyser
# catalog-date 2010-07-22 14:36:43 +0200
# catalog-license other-free
# catalog-version 0.7
Name:		texlive-texloganalyser
Version:	0.9
Release:	3
Summary:	Analyse TeX logs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/texloganalyser
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texloganalyser.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texloganalyser.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texloganalyser.bin = %{EVRD}

%description
The perl script allows the user to extract (and display)
elements of the log file.

#-----------------------------------------------------------------------
%files
%{_bindir}/texloganalyser
%{_texmfdistdir}/scripts/texloganalyser/texloganalyser
%doc %{_texmfdistdir}/doc/support/texloganalyser/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texloganalyser/texloganalyser texloganalyser
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10752 |21cr|texlive-texnegar-57692-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname texnegar

Summary:	Kashida justification in XeLaTeX and LuaLaTeX
Name:		texlive-texnegar
Version:	57692
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(array.sty)
#Requires:	tex(environ.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(newverbs.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xparse.sty)
#Requires:	tex(zref-savepos.sty)
Provides:	tex(texnegar-common-kashida.tex) = 2024
Provides:	tex(texnegar-ini.tex) = 2024
Provides:	tex(texnegar-luatex.sty) = 2024
Provides:	tex(texnegar.sty) = 2024
Provides:	tex(texnegar-xetex-kashida.tex) = 2024
Provides:	tex(texnegar-xetex.sty) = 2024
BuildArch:	noarch

%description
In some cursive scripts such as Persian or Arabic, kashida is
used to create justification. In this type of justification
characters are elongated rather than expanding spaces between
words. The kashida justification in xepersian has many bugs.
Also it has problems with some fonts. The xepersian-hm package
was the first attempt to fix these bugs in xepersian, which
uses the XeTeX engine. This package extends the kashida
justification to be used with the LuaTeX engine, too.
Explanation of the package name: Negar, in Persian, is the
present stem of negaashtan meaning to design, to paint, to
write; and as a noun it means "sweetheart, idol, beloved,
figuratively referring to a beautiful woman, pattern, painting,
and artistic design".

%files
%doc %{_texmfdistdir}/doc/latex/texnegar
%{_texmfdistdir}/tex/latex/texnegar

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10753 |21cr|texlive-tex-nutshell-63336-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tex-nutshell

Summary:	A short document about TeX principles
Name:		texlive-tex-nutshell
Version:	63336
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This document is meant for users who are looking for
information about the basics of TeX. Its main goal is its
brevity. The pure TeX features are described, no features
provided by macro extensions. Only the last section gives a
summary of plain TeX macros.

%files
%doc %{_texmfdistdir}/doc/plain/tex-nutshell

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10754 |21cr|texlive-texonly-50985-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname texonly

Summary:	A sample document in Plain TeX
Name:		texlive-texonly
Version:	50985
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
A file written with TeX, not using any packgages or sty-files,
to be compiled with TeX or pdfTeX only, not with LaTeX et al.

%files
%doc %{_texmfdistdir}/doc

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10755 |21cr|texlive-texsis-2.18-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31958
# category Package
# catalog-ctan /macros/texsis
# catalog-date 2012-06-05 22:22:59 +0200
# catalog-license lppl
# catalog-version 2.18
Name:		texlive-texsis
Version:	2.18
Release:	14
Summary:	Plain TeX macros for Physicists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/texsis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texsis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texsis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-tex
Requires:	texlive-texsis.bin

%description
TeXsis is a TeX macro package which provides useful features
for typesetting research papers and related documents. For
example, it includes support specifically for: Automatic
numbering of equations, figures, tables and references;
Simplified control of type sizes, line spacing, footnotes,
running headlines and footlines, and tables of contents,
figures and tables; Specialized document formats for research
papers, preprints and ``e-prints,'' conference proceedings,
theses, books, referee reports, letters, and memoranda;
Simplified means of constructing an index for a book or thesis;
Easy to use double column formatting; Specialized environments
for lists, theorems and proofs, centered or non-justified text,
and listing computer code; Specialized macros for easily
constructing ruled tables. TeXsis was originally developed for
physicists, but others may also find it useful. It is
completely compatible with Plain TeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/texsis/texsis.bst
%{_texmfdistdir}/tex/texsis/base/AIP.txs
%{_texmfdistdir}/tex/texsis/base/CVformat.txs
%{_texmfdistdir}/tex/texsis/base/Elsevier.txs
%{_texmfdistdir}/tex/texsis/base/Exam.txs
%{_texmfdistdir}/tex/texsis/base/Formletr.txs
%{_texmfdistdir}/tex/texsis/base/IEEE.txs
%{_texmfdistdir}/tex/texsis/base/PhysRev.txs
%{_texmfdistdir}/tex/texsis/base/Spanish.txs
%{_texmfdistdir}/tex/texsis/base/Swedish.txs
%{_texmfdistdir}/tex/texsis/base/TXSconts.tex
%{_texmfdistdir}/tex/texsis/base/TXSdcol.tex
%{_texmfdistdir}/tex/texsis/base/TXSenvmt.tex
%{_texmfdistdir}/tex/texsis/base/TXSeqns.tex
%{_texmfdistdir}/tex/texsis/base/TXSfigs.tex
%{_texmfdistdir}/tex/texsis/base/TXSfmts.tex
%{_texmfdistdir}/tex/texsis/base/TXSfonts.tex
%{_texmfdistdir}/tex/texsis/base/TXShead.tex
%{_texmfdistdir}/tex/texsis/base/TXSinit.tex
%{_texmfdistdir}/tex/texsis/base/TXSletr.tex
%{_texmfdistdir}/tex/texsis/base/TXSmacs.tex
%{_texmfdistdir}/tex/texsis/base/TXSmemo.tex
%{_texmfdistdir}/tex/texsis/base/TXSprns.tex
%{_texmfdistdir}/tex/texsis/base/TXSrefs.tex
%{_texmfdistdir}/tex/texsis/base/TXSruled.tex
%{_texmfdistdir}/tex/texsis/base/TXSsects.tex
%{_texmfdistdir}/tex/texsis/base/TXSsite.tex
%{_texmfdistdir}/tex/texsis/base/TXSsymb.tex
%{_texmfdistdir}/tex/texsis/base/TXStags.tex
%{_texmfdistdir}/tex/texsis/base/TXStitle.tex
%{_texmfdistdir}/tex/texsis/base/Tablebod.txs
%{_texmfdistdir}/tex/texsis/base/WorldSci.txs
%{_texmfdistdir}/tex/texsis/base/color.txs
%{_texmfdistdir}/tex/texsis/base/nuclproc.txs
%{_texmfdistdir}/tex/texsis/base/printfont.txs
%{_texmfdistdir}/tex/texsis/base/spine.txs
%{_texmfdistdir}/tex/texsis/base/texsis.tex
%{_texmfdistdir}/tex/texsis/base/thesis.txs
%{_texmfdistdir}/tex/texsis/base/twin.txs
%{_texmfdistdir}/tex/texsis/config/texsis.ini
%_texmf_fmtutil_d/texsis
%doc %{_mandir}/man1/texsis.1*
%doc %{_texmfdistdir}/doc/man/man1/texsis.man1.pdf
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/COPYING
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/Example.tex
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/Fonts.tex
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/INSTALL
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/Install.tex
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/MANIFEST
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/Manual.fgl
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/Manual.ref
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/Manual.tbl
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/Manual.tex
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/NEWS
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/README
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSapxF.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXScover.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSdcol.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSdoc.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSdoc0.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSdocM.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSend.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSenvmt.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSeqns.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSfigs.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSfmts.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSfonts.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSinstl.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSintro.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSletr.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSmisc.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSprns.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSrefs.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSrevs.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSruled.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSsects.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSsite.000
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXSsymb.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/TXStags.doc
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/index.tex
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/letr
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/penguin.eps
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/penguin2.eps
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/texsis.el
%doc %{_texmfdistdir}/doc/otherformats/texsis/base/texsis.lsm

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/texsis <<EOF
#
# from texsis:
texsis pdftex - -translate-file=cp227.tcx texsis.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10756 |21cr|texlive-texsurgery-59885-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname texsurgery

Summary:	A LaTeX companion to the "texsurgery" python project
Name:		texlive-texsurgery
Version:	59885
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(texsurgery.sty) = 2024
BuildArch:	noarch

%description
This LaTeX library is a companion to the texsurgery python
project. It will make sure that "pdflatex document.tex" will
work, with reasonable defaults, for a document that is intended
to work with texsurgery, and also has other uses, always in
tandem with the texsurgery pypi package.

%files
%doc %{_texmfdistdir}/doc/latex/texsurgery
%{_texmfdistdir}/tex/latex/texsurgery

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10757 |21cr|texlive-textcsc-64935-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname textcsc

Summary:	Simple commands for caps-to-small-caps text
Name:		texlive-textcsc
Version:	64935
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(textcsc.sty) = 2024
BuildArch:	noarch

%description
This package provides a simple command (\textcsc and \cscshape)
for caps-to-small-caps text, to allow for small caps acronyms
to be presented as uppercase in text (useful for things like
copying and pasting from a PDF).

%files
%doc %{_texmfdistdir}/doc/latex/textcsc
%{_texmfdistdir}/tex/latex/textcsc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10758 |21cr|texlive-textualicomma-48474-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname textualicomma

Summary:	Use the textual comma character as decimal separator in math mode
Name:		texlive-textualicomma
Version:	48474
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(textualicomma.sty) = 2024
BuildArch:	noarch

%description
The package is based on the icomma package, and intended as a
solution for situations where the text comma character discerns
from the math comma character, e. g. when fonts whithout math
support are involved. Escaping to text mode every time a comma
is used in math mode may slow down the compilation process.

%files
%doc %{_texmfdistdir}/doc/latex/textualicomma/
%{_texmfdistdir}/tex/latex/textualicomma/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10759 |21cr|texlive-texvc-46844-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname texvc

Summary:	Use MediaWiki LaTeX commands
Name:		texlive-texvc
Version:	46844
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-texvc = 2024
Provides:	tex(texvc.sty) = 2024
BuildArch:	noarch

%description
User MediaWiki LaTeX commands to copy and past formulae from
MediaWiki to LaTeX documents.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/texvc/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10760 |21cr|texlive-tex-vpat-63560-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tex-vpat

Summary:	TeX Accessibility Conformance Report
Name:		texlive-tex-vpat
Version:	63560
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
TeX Accessibility Conformance Report based on ITI VPAT(R)
guidelines. Currently it covers TeX Live. Other distributions
can be added if needed.

%files
%doc %{_texmfdistdir}/doc/latex/tex-vpat

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10761 |21cr|texlive-texware-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /systems/knuth/dist/texware
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license knuth
# catalog-version undef
Name:		texlive-texware
Version:	20190327
Release:	1
Summary:	Utility programs for use with TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/knuth/dist/texware
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texware.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texware.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-texware.bin

%description
Basic utitility programs, comprising: - dvitype, which converts
a TeX output (DVI) file to a plain text file (see also the DVI
Text Language suite); - pooltype, which converts a TeX-suite
program's "pool" (string) file into human-readable form; and -
tftopl and pltotf, which convert TeX Font Metric (TFM) file to
human readable Property List (PL) files and vice versa.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/dvitype.1*
%doc %{_texmfdistdir}/doc/man/man1/dvitype.man1.pdf
%doc %{_mandir}/man1/pooltype.1*
%doc %{_texmfdistdir}/doc/man/man1/pooltype.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10762 |21cr|texlive-tfrupee-1.02-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20770
# category Package
# catalog-ctan /fonts/tfrupee
# catalog-date 2010-12-16 15:42:40 +0100
# catalog-license gpl3
# catalog-version 1.02
Name:		texlive-tfrupee
Version:	1.02
Release:	8
Summary:	A font offering the new (Indian) Rupee symbol
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/tfrupee
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tfrupee.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tfrupee.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tfrupee.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
The package provides LaTeX support for the (Indian) Rupee
symbol font, created by TechFat. The original font has been
converted to Adobe Type 1 format, and simple LaTeX support
written for its use.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/tfrupee/tfrupee.afm
%{_texmfdistdir}/fonts/map/dvips/tfrupee/tfrupee.map
%{_texmfdistdir}/fonts/tfm/public/tfrupee/tfrupee.tfm
%{_texmfdistdir}/fonts/type1/public/tfrupee/tfrupee.pfb
%{_texmfdistdir}/tex/latex/tfrupee/tfrupee.sty
%doc %{_texmfdistdir}/doc/fonts/tfrupee/LICENSE
%doc %{_texmfdistdir}/doc/fonts/tfrupee/README
%doc %{_texmfdistdir}/doc/fonts/tfrupee/tfrupee.pdf
%doc %{_texmfdistdir}/doc/fonts/tfrupee/tfrupee.tex
#- source
%doc %{_texmfdistdir}/source/fonts/tfrupee/tfrupee.sfd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10763 |21cr|texlive-thaienum-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-thaienum
Version:	0.2
Release:	1
Summary:	Thai labels in enumerate environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thaienum
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/thaienum.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/thaienum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package provides a command to use Thai numerals or
characters as labels in enumerate environments. Once the
package is loaded with \usepackage{thaienum} you can use labels
such as \thainum* or \thaimultialph* in conjunction with the
package enumitem. Concrete examples are given in the
documentation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10764 |21cr|texlive-thaispec-58019-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname thaispec

Summary:	Thai Language Typesetting in XeLaTeX
Name:		texlive-thaispec
Version:	58019
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(afterpackage.sty)
#Requires:	tex(datetime2.sty)
#Requires:	tex(fp.sty)
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(polyglossia.sty)
#Requires:	tex(setspace.sty)
#Requires:	tex(ucharclasses.sty)
#Requires:	tex(xpatch.sty)
#Requires:	tex(xstring.sty)
Provides:	tex(thaispec.sty) = 2024
BuildArch:	noarch

%description
This package allows you to input Thai characters directly to
LaTeX documents and choose any (system wide) Thai fonts for
typesetting in XeLaTeX. It also tries to appropriately justify
paragraphs with no more external tools. Required packages are
fontspec, ucharclasses, polyglossia, setspace, kvoptions,
xstring, and xpatch.

%files
%doc %{_texmfdistdir}/doc/latex/thaispec/
%{_texmfdistdir}/tex/latex/thaispec/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10765 |21cr|texlive-theanodidot-64518-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname theanodidot

Summary:	TheanoDidot fonts with LaTeX support
Name:		texlive-theanodidot
Version:	64518
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LGRTheanoDidot-TLF.fd) = 2024
Provides:	tex(LGRTheanoDidot-TOsF.fd) = 2024
Provides:	tex(LY1TheanoDidot-TLF.fd) = 2024
Provides:	tex(LY1TheanoDidot-TOsF.fd) = 2024
Provides:	tex(OT1TheanoDidot-TLF.fd) = 2024
Provides:	tex(OT1TheanoDidot-TOsF.fd) = 2024
Provides:	tex(T1TheanoDidot-TLF.fd) = 2024
Provides:	tex(T1TheanoDidot-TOsF.fd) = 2024
Provides:	tex(thdid_alkcdl.enc) = 2024
Provides:	tex(thdid_ertqq3.enc) = 2024
Provides:	tex(thdid_f66p55.enc) = 2024
Provides:	tex(thdid_izaajv.enc) = 2024
Provides:	tex(thdid_k6ngqv.enc) = 2024
Provides:	tex(thdid_lqxlns.enc) = 2024
Provides:	tex(thdid_oiucyb.enc) = 2024
Provides:	tex(thdid_whuz6y.enc) = 2024
Provides:	tex(thdid_xgfkyc.enc) = 2024
Provides:	tex(thdid_zj2gif.enc) = 2024
Provides:	tex(TheanoDidot.map) = 2024
Provides:	tex(TheanoDidot.sty) = 2024
Provides:	tex(TS1TheanoDidot-TLF.fd) = 2024
Provides:	tex(TS1TheanoDidot-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides the TheanoDidot font designed by Alexey
Kryukov, in both TrueType and Type1 formats, with support for
both traditional and modern LaTeX processors. An
artificially-emboldened variant has been provided but there are
no italic variants. The package is named after Theano, a famous
Ancient Greek woman philosopher, who was first a student of
Pythagoras, and supposedly became his wife. The Didot family
were active as designers for about 100 years in the 18th and
19th centuries. They were printers, publishers, typeface
designers, inventors and intellectuals. Around 1800 the Didot
family owned the most important print shop and font foundry in
France. Pierre Didot, the printer, published a document with
the typefaces of his brother, Firmin Didot, the typeface
designer. The strong clear forms of this alphabet display
objective, rational characteristics and are representative of
the time and philosophy of the Enlightenment.

%files
%doc %{_texmfdistdir}/doc/fonts/theanodidot
%{_texmfdistdir}/fonts/enc/dvips/theanodidot
%{_texmfdistdir}/fonts/map/dvips/theanodidot
%{_texmfdistdir}/fonts/tfm/public/theanodidot
%{_texmfdistdir}/fonts/truetype/public/theanodidot
%{_texmfdistdir}/fonts/type1/public/theanodidot
%{_texmfdistdir}/fonts/vf/public/theanodidot
%{_texmfdistdir}/tex/latex/theanodidot

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10766 |21cr|texlive-theanomodern-64520-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname theanomodern

Summary:	Theano Modern fonts with LaTeX support
Name:		texlive-theanomodern
Version:	64520
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LGRTheanoModern-TLF.fd) = 2024
Provides:	tex(LGRTheanoModern-TOsF.fd) = 2024
Provides:	tex(LY1TheanoModern-TLF.fd) = 2024
Provides:	tex(LY1TheanoModern-TOsF.fd) = 2024
Provides:	tex(OT1TheanoModern-TLF.fd) = 2024
Provides:	tex(OT1TheanoModern-TOsF.fd) = 2024
Provides:	tex(T1TheanoModern-TLF.fd) = 2024
Provides:	tex(T1TheanoModern-TOsF.fd) = 2024
Provides:	tex(TheanoModern.map) = 2024
Provides:	tex(TheanoModern.sty) = 2024
Provides:	tex(thedid_alkcdl.enc) = 2024
Provides:	tex(thedid_ertqq3.enc) = 2024
Provides:	tex(thedid_f66p55.enc) = 2024
Provides:	tex(thedid_izaajv.enc) = 2024
Provides:	tex(thedid_k6ngqv.enc) = 2024
Provides:	tex(thedid_lqxlns.enc) = 2024
Provides:	tex(thedid_oiucyb.enc) = 2024
Provides:	tex(thedid_whuz6y.enc) = 2024
Provides:	tex(thedid_xgfkyc.enc) = 2024
Provides:	tex(thedid_zj2gif.enc) = 2024
Provides:	tex(TS1TheanoModern-TLF.fd) = 2024
Provides:	tex(TS1TheanoModern-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides the TheanoModern font designed by Alexey
Kryukov, in both TrueType and Type1 formats, with support for
both traditional and modern LaTeX processors. An
artificially-emboldened variant has been provided but there are
no italic variants. The package is named after Theano, a famous
Ancient Greek woman philosopher, who was first a student of
Pythagoras, and supposedly became his wife.

%files
%doc %{_texmfdistdir}/doc/fonts/theanomodern
%{_texmfdistdir}/fonts/enc/dvips/theanomodern
%{_texmfdistdir}/fonts/map/dvips/theanomodern
%{_texmfdistdir}/fonts/tfm/public/theanomodern
%{_texmfdistdir}/fonts/truetype/public/theanomodern
%{_texmfdistdir}/fonts/type1/public/theanomodern
%{_texmfdistdir}/fonts/vf/public/theanomodern
%{_texmfdistdir}/tex/latex/theanomodern

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10767 |21cr|texlive-theanooldstyle-64519-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname theanooldstyle

Summary:	Theano OldStyle fonts with LaTeX support
Name:		texlive-theanooldstyle
Version:	64519
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LGRTheanoOldStyle-TLF.fd) = 2024
Provides:	tex(LGRTheanoOldStyle-TOsF.fd) = 2024
Provides:	tex(LY1TheanoOldStyle-TLF.fd) = 2024
Provides:	tex(LY1TheanoOldStyle-TOsF.fd) = 2024
Provides:	tex(OT1TheanoOldStyle-TLF.fd) = 2024
Provides:	tex(OT1TheanoOldStyle-TOsF.fd) = 2024
Provides:	tex(T1TheanoOldStyle-TLF.fd) = 2024
Provides:	tex(T1TheanoOldStyle-TOsF.fd) = 2024
Provides:	tex(TheanoOldStyle.map) = 2024
Provides:	tex(TheanoOldStyle.sty) = 2024
Provides:	tex(thost_alkcdl.enc) = 2024
Provides:	tex(thost_ertqq3.enc) = 2024
Provides:	tex(thost_f66p55.enc) = 2024
Provides:	tex(thost_izaajv.enc) = 2024
Provides:	tex(thost_ogssaz.enc) = 2024
Provides:	tex(thost_oiucyb.enc) = 2024
Provides:	tex(thost_whuz6y.enc) = 2024
Provides:	tex(thost_xf32t5.enc) = 2024
Provides:	tex(thost_xgfkyc.enc) = 2024
Provides:	tex(thost_zj2gif.enc) = 2024
Provides:	tex(TS1TheanoOldStyle-TLF.fd) = 2024
Provides:	tex(TS1TheanoOldStyle-TOsF.fd) = 2024
BuildArch:	noarch

%description
This package provides the Theano OldStyle font designed by
Alexey Kryukov, in both TrueType and Type1 formats, with
support for both traditional and modern LaTeX processors. An
artificially-emboldened variant has been provided but there are
no italic variants. The package is named after Theano, a famous
Ancient Greek woman philosopher, who was first a student of
Pythagoras, and supposedly became his wife.

%files
%doc %{_texmfdistdir}/doc/fonts/theanooldstyle
%{_texmfdistdir}/fonts/enc/dvips/theanooldstyle
%{_texmfdistdir}/fonts/map/dvips/theanooldstyle
%{_texmfdistdir}/fonts/tfm/public/theanooldstyle
%{_texmfdistdir}/fonts/truetype/public/theanooldstyle
%{_texmfdistdir}/fonts/type1/public/theanooldstyle
%{_texmfdistdir}/fonts/vf/public/theanooldstyle
%{_texmfdistdir}/tex/latex/theanooldstyle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10768 |21cr|texlive-theatre-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-theatre
Version:	0.1
Release:	1
Summary:	A sophisticated package for typesetting stage plays
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/theatre
License:	The LATEX Project Public License 1.2
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/theatre.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/theatre.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This package enables the user to typeset stage plays in a way
that permits to create highly customized printouts for each
actor.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tlpkg/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tlpkg doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10769 |21cr|texlive-thermodynamics-63188-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname thermodynamics

Summary:	Macros for multicomponent thermodynamics documents
Name:		texlive-thermodynamics
Version:	63188
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(thermodynamics.sty) = 2024
BuildArch:	noarch

%description
This package makes typesetting quantities found in
thermodynamics texts relatively simple. The commands are
flexible and intended to be relatively intuitive. It handles
several sets of notation for total, specific, and molar
quantities; allows changes between symbols (e.g., A vs. F for
Helmholtz free energy); and greatly simplifies the typesetting
of symbols and partial derivatives commonly encountered in
mixture thermodynamics. Changes of one's notes from one
textbook to another can be achieved relatively easily by
changing package options. The package offers a collection of
macros and environments which are intended to make typesetting
thermodynamics documents faster, more convenient, and more
reliable. Macros include symbols for extensive, molar,
specific, and partial molar properties; exces and residual
(departure) properties; partial derivatives; heat capacities,
compressibilities, and expansivities; saturation, mixture, and
pure-component properties; Henry's Law parameters and activity
coefficients; and changes on mixing, fusion, reaction,
sublimation, and vaporization; and sets of all moles/mole
fractions/masses/etc. being held constant in derivatives.
Conversion of notes between textbooks is trivial for textbooks
supported by the package, and more general changes in notation
are also possible through package options.

%files
%doc %{_texmfdistdir}/doc/latex/thermodynamics
%{_texmfdistdir}/tex/latex/thermodynamics

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10770 |21cr|texlive-thesis-ekf-4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-thesis-ekf
Version:	4.2
Release:	1
Summary:	This is a class file for theses and dissertations at the Catholic University
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/thesis-ekf
License:	LPPL 1.2
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/thesis-ekf.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/thesis-ekf.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/thesis-ekf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a class file for theses and dissertations 
at the Eszterházy Károly Catholic University (Eger, Hungary).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thesis-ekf
%doc %{_texmfdistdir}/doc/latex/thesis-ekf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10771 |21cr|texlive-thesis-gwu-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-thesis-gwu
Version:	1.7.0
Release:	1
Summary:	Thesis class for George Washington University School of Engineering and Applied Science
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/thesis-gwu
License:	GPL3
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/thesis-gwu.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/thesis-gwu.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class is an attempt to create a standard format for GWU
SEAS dissertations/theses. It automatically handles many of the
complicated formatting requirements and includes many useful
packages. An example thesis is provided serving as a user guide
and a demonstration of the thesis.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thesis-gwu/*
%doc %{_texmfdistdir}/doc/latex/thesis-gwu/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10772 |21cr|texlive-thesis-qom-0.42-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-thesis-qom
Version:	0.42
Release:	1
Summary:	Thesis style of the University of Qom, Iran
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/xetex/latex/thesis-qom
License:	LPPL1.3c
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/thesis-qom.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/thesis-qom.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a class file for writing theses and
dissertations according to the University of Qom Graduate
Schools's guidelines for the electronic submission of master
theses and PhD dissertations. The class should meet all the
current requirements and is updated whenever the university
guidelines change. The class needs XeLaTeX in conjunction with
the following fonts: XB Niloofar, IranNastaliq, IRlotus, XB
Zar, XB Titre, and Yas.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/thesis-qom/*
%doc %{_texmfdistdir}/doc/xelatex/thesis-qom/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10773 |21cr|texlive-thmbox-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/thmbox
# catalog-date 2009-03-25 08:55:29 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-thmbox
Version:	20190228
Release:	1
Summary:	Decorate theorem statements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thmbox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thmbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thmbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thmbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines an environment thmbox that presents
theorems, definitions and similar objects in boxes decorated
with frames and various aesthetic features. The standard macro
\newtheorem may be redefined to use the environment.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thmbox/thmbox.sty
%doc %{_texmfdistdir}/doc/latex/thmbox/README
%doc %{_texmfdistdir}/doc/latex/thmbox/thmbox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/thmbox/thmbox.dtx
%doc %{_texmfdistdir}/source/latex/thmbox/thmbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10774 |21cr|texlive-thuaslogos-51347-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname thuaslogos

Summary:	Logos for The Hague University of Applied Sciences (THUAS)
Name:		texlive-thuaslogos
Version:	51347
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(thuaslogos.sty) = 2024
BuildArch:	noarch

%description
This package contains some logos of The Hague University of
Applied Sciences (THUAS). These Logos are available in English
and in Dutch. They are rendered via PGF.

%files
%doc %{_texmfdistdir}/doc/latex/thuaslogos
%{_texmfdistdir}/tex/latex/thuaslogos

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10775 |21cr|texlive-thubeamer-61071-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname thubeamer

Summary:	A beamer theme for Tsinghua University
Name:		texlive-thubeamer
Version:	61071
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(beamercolorthemethubeamer.sty) = 2024
Provides:	tex(beamerinnerthemethubeamer.sty) = 2024
Provides:	tex(beamerouterthemethubeamer.sty) = 2024
Provides:	tex(beamerthemethubeamer.sty) = 2024
BuildArch:	noarch

%description
This package provides a beamer theme designed for Tsinghua
University.

%files
%doc %{_texmfdistdir}/doc/latex/thubeamer
%{_texmfdistdir}/bibtex/bst/thubeamer
%{_texmfdistdir}/tex/latex/thubeamer

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10776 |21cr|texlive-thucoursework-2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-thucoursework
Version:	2.6
Release:	1
Summary:	Coursework template for Tsinghua University
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/thucoursework
License:	LPPL1.3
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/thucoursework.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/thucoursework.doc.tar.xz
Source2:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/thucoursework.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for students of Tsinghua University to write
coursework more efficiently. It can also be used by students
from other universities. Note that the package itself does not
import the ctex package; to use it with Chinese writing, see
example file ithw.tex for details.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thucoursework/*
%doc %{_texmfdistdir}/doc/latex/thucoursework/*
%doc %{_texmfdistdir}/source/latex/thucoursework/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10777 |21cr|texlive-ticollege-36306.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ticollege

Summary:	Graphical representation of keys on a standard scientific calculator
Name:		texlive-ticollege
Version:	36306.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amssymb.sty)
Requires:	tex(ifthen.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mathtools.sty)
#Requires:	tex(multido.sty)
#Requires:	tex(multirow.sty)
Requires:	tex(newtxtt.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex-ticollege = 2024
Provides:	tex(ticollege.sty) = 2024
BuildArch:	noarch

%description
This package provides commands to draw scientific calculator
keys with the help of TikZ. It also provides commands to draw
the content of screens and of menu items.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/ticollege/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10778 |21cr|texlive-tidyres-65789-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tidyres

Summary:	Create formal resumes easily
Name:		texlive-tidyres
Version:	65789
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tidyres.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package aims to provide users with a simple
interface to create multi-column formal resumes.

%files
%doc %{_texmfdistdir}/doc/latex/tidyres
%{_texmfdistdir}/tex/latex/tidyres

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10779 |21cr|texlive-tikz-among-us-60880-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-among-us

Summary:	Create some AmongUs characters in TikZ environments
Name:		texlive-tikz-among-us
Version:	60880
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(eso-pic.sty)
#Requires:	tex(fancyhdr.sty)
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
#Requires:	tex(xifthen.sty)
Provides:	tex(tikz-among-us-fancyhdr.sty) = 2024
Provides:	tex(tikz-among-us.sty) = 2024
Provides:	tex(tikz-among-us-watermark-eso-pic.sty) = 2024
BuildArch:	noarch

%description
This package recreates some AmongUs characters in TikZ
environments. Some interesting uses alongside other packages
are also supported.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-among-us
%{_texmfdistdir}/tex/latex/tikz-among-us

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10780 |21cr|texlive-tikz-bagua-64103-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-bagua

Summary:	Draw Bagua symbols in Yijing
Name:		texlive-tikz-bagua
Version:	64103
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikz-bagua.sty) = 2024
BuildArch:	noarch

%description
This package provides commands for drawing symbols in Yijing (I
Ching) or Zhouyi using TikZ. There is no need for extra special
fonts for showing these symbols. The package relies on TikZ,
bitset, xintexpr, xparse, and xstring.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-bagua
%{_texmfdistdir}/tex/latex/tikz-bagua

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10781 |21cr|texlive-tikz-bbox-57444-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-bbox

Summary:	Precise determination of bounding boxes in TikZ
Name:		texlive-tikz-bbox
Version:	57444
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pgflibrarybbox.code.tex) = 2024
BuildArch:	noarch

%description
The built-in determination of the bounding box in TikZ is not
entirely accurate. This is because, for Bezier curves, it is
the smallest box that contains all control points, which is in
general larger than the box that just contains the curve. This
library determines the exact bounding box of the curve.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-bbox
%{_texmfdistdir}/tex/latex/tikz-bbox

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10782 |21cr|texlive-tikzbricks-63952-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzbricks

Summary:	Drawing bricks with TikZ
Name:		texlive-tikzbricks
Version:	63952
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzbricks.sty) = 2024
BuildArch:	noarch

%description
A small LaTeX package to draw bricks with TikZ. The user can
modify color, shape, and viewpoint.

%files
%doc %{_texmfdistdir}/doc/latex/tikzbricks
%{_texmfdistdir}/tex/latex/tikzbricks

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10783 |21cr|texlive-tikzcodeblocks-54758-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzcodeblocks

Summary:	Helps to draw codeblocks like scratch, NEPO and PXT in TikZ
Name:		texlive-tikzcodeblocks
Version:	54758
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzcodeblocks.sty) = 2024
BuildArch:	noarch

%description
tikzcodeblocks is a LaTeX package for typesetting blockwise
graphic programming languages like scratch, nepo or pxt.

%files
%doc %{_texmfdistdir}/doc/latex/tikzcodeblocks/
%{_texmfdistdir}/tex/latex/tikzcodeblocks/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10784 |21cr|texlive-tikz-dimline-35805.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-dimline

Summary:	Technical dimension lines using PGF/TikZ
Name:		texlive-tikz-dimline
Version:	35805.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ifthen.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(pgfplots.sty)
#Requires:	tex(tikz.sty)
Provides:	tex-tikz-dimline = 2024
Provides:	tex(tikz-dimline.sty) = 2024
BuildArch:	noarch

%description
tikz-dimline helps drawing technical dimension lines in TikZ
picture environments. Its usage is similar to some
contributions posted on stackexchange.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/tikz-dimline/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10785 |21cr|texlive-tikzducks-55713-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzducks

Summary:	A little fun package for using rubber ducks in TikZ
Name:		texlive-tikzducks
Version:	55713
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzducks-generic.tex) = 2024
Provides:	tex(tikzducks.sty) = 2024
Provides:	tex(tikzlibraryducks.code.tex) = 2024
BuildArch:	noarch

%description
The package is a LaTeX package for ducks to be used in TikZ
pictures. This project is a continuation of an answer at
StackExchange How we can draw a duck?

%files
%doc %{_texmfdistdir}/doc/generic/tikzducks/
%{_texmfdistdir}/tex/generic/tikzducks/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10786 |21cr|texlive-tikz-ext-64920-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-ext

Summary:	A collection of libraries for PGF/TikZ
Name:		texlive-tikz-ext
Version:	64920
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(pgfcalendar-ext.code.tex) = 2024
Provides:	tex(pgfcalendar-ext.sty) = 2024
Provides:	tex(pgfcalendar-ext.tex) = 2024
Provides:	tex(pgfkeyslibraryext.pgfkeys-plus.code.tex) = 2024
Provides:	tex(pgflibraryext.pgfkeys-plus.code.tex) = 2024
Provides:	tex(pgflibraryext.shapes.circlearrow.code.tex) = 2024
Provides:	tex(pgflibraryext.shapes.circlecrosssplit.code.tex) = 2024
Provides:	tex(pgflibraryext.shapes.heatmark.code.tex) = 2024
Provides:	tex(pgflibraryext.shapes.rectangleroundedcorners.code.tex) = 2024
Provides:	tex(pgflibraryext.shapes.superellipse.code.tex) = 2024
Provides:	tex(pgflibraryext.shapes.uncenteredrectangle.code.tex) = 2024
Provides:	tex(pgflibraryext.transformations.mirror.code.tex) = 2024
Provides:	tex(tikzlibraryext.calendar-plus.code.tex) = 2024
Provides:	tex(tikzlibraryext.misc.code.tex) = 2024
Provides:	tex(tikzlibraryext.node-families.code.tex) = 2024
Provides:	tex(tikzlibraryext.node-families.shapes.geometric.code.tex) = 2024
Provides:	tex(tikzlibraryext.paths.arcto.code.tex) = 2024
Provides:	tex(tikzlibraryext.paths.ortho.code.tex) = 2024
Provides:	tex(tikzlibraryext.paths.timer.code.tex) = 2024
Provides:	tex(tikzlibraryext.patterns.images.code.tex) = 2024
Provides:	tex(tikzlibraryext.positioning-plus.code.tex) = 2024
Provides:	tex(tikzlibraryext.scalepicture.code.tex) = 2024
Provides:	tex(tikzlibraryext.topaths.arcthrough.code.tex) = 2024
Provides:	tex(tikzlibraryext.transformations.mirror.code.tex) = 2024
BuildArch:	noarch

%description
This is a collection of libraries for PGF/TikZ. Currently these
are transformations.mirror, paths.arcto, paths.ortho,
paths.timer, patterns.images, topaths.arcthrough and misc. Most
of these libraries were developed in response to questions on
TeX.stackexchange.com.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-ext
%{_texmfdistdir}/tex/generic/tikz-ext
%{_texmfdistdir}/tex/latex/tikz-ext
%{_texmfdistdir}/tex/plain/tikz-ext

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10787 |21cr|texlive-tikz-feynhand-51915-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-feynhand

Summary:	Feynman diagrams with TikZ
Name:		texlive-tikz-feynhand
Version:	51915
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzfeynhand.keys.code.tex) = 2024
Provides:	tex(tikz-feynhand.sty) = 2024
Provides:	tex(tikzlibraryfeynhand.code.tex) = 2024
BuildArch:	noarch

%description
This package lets you draw Feynman diagrams using TikZ. It is a
low-end modification of the TikZ-Feynman package, one of whose
principal advantages is the automatic generation of diagrams,
for which it needs LuaTex. TikZ-FeynHand only provides the
manual mode and hence runs in LaTeX without any reference to
LuaTeX. In addition it provides some new styles for vertices
and propagators, alternative shorter keywords in addition to
TikZ-Feynman's longer ones, some shortcut commands for quickly
customizing the diagrams' look, and the new feature of putting
one propagator "on top" of another. It also includes a quick
user guide for getting started, with many examples and a
5-minute introduction to TikZ.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-feynhand
%{_texmfdistdir}/tex/latex/tikz-feynhand

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10788 |21cr|texlive-tikz-feynman-56615-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-feynman

Summary:	Feynman diagrams with TikZ
Name:		texlive-tikz-feynman
Version:	56615
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-tikz-feynman = 2024
Provides:	tex(tikzfeynman.keys.code.tex) = 2024
Provides:	tex(tikz-feynman.sty) = 2024
Provides:	tex(tikzlibraryfeynman.code.tex) = 2024
BuildArch:	noarch

%description
This is a is a LaTeX package allowing Feynman diagrams to be
easily generated within LaTeX with minimal user instructions
and without the need of external programs. It builds upon the
TikZ package and leverages the graph placement algorithms from
TikZ in order to automate the placement of many vertices. tikz-
feynman still allows fine-tuned placement of vertices so that
even complex diagrams can still be generated with ease.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/tikz-feynman/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10789 |21cr|texlive-tikzfill-63947-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzfill

Summary:	TikZ libraries for filling with images and patterns
Name:		texlive-tikzfill
Version:	63947
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzfill-common.sty) = 2024
Provides:	tex(tikzfill.hexagon.sty) = 2024
Provides:	tex(tikzfill.image.sty) = 2024
Provides:	tex(tikzfill.rhombus.sty) = 2024
Provides:	tex(tikzfill.sty) = 2024
Provides:	tex(tikzlibraryfill.hexagon.code.tex) = 2024
Provides:	tex(tikzlibraryfill.image.code.tex) = 2024
Provides:	tex(tikzlibraryfill.rhombus.code.tex) = 2024
BuildArch:	noarch

%description
This is a collection of TikZ libraries which add further
options to fill TikZ paths with images and patterns. The
libraries comprise fillings with images from files and from
TikZ pictures. Also, patterns of hexagons and of rhombi are
provided.

%files
%doc %{_texmfdistdir}/doc/latex/tikzfill
%{_texmfdistdir}/tex/latex/tikzfill

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10790 |21cr|texlive-tikz-imagelabels-51490-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-imagelabels

Summary:	Put labels on images using TikZ
Name:		texlive-tikz-imagelabels
Version:	51490
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikz-imagelabels.sty) = 2024
BuildArch:	noarch

%description
This package allows to add label texts to an existing image
with the aid of TikZ. This may be used to label certain
features in an image.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-imagelabels
%{_texmfdistdir}/tex/latex/tikz-imagelabels

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10791 |21cr|texlive-tikz-kalender-52890-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-kalender

Summary:	A LaTeX based calendar using TikZ
Name:		texlive-tikz-kalender
Version:	52890
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
Provides:	tex(tikz-kalender.cls) = 2024
Provides:	tex(tikz-kalender-translation.clo) = 2024
BuildArch:	noarch

%description
For usage see the example files tikz-kalender-example1.tex,
tikz-kalender-example2.tex, and *.events. The Code is inspired
by this document and is subject to the >>Creative Commons
attribution license (CC-BY-SA)<<. The class tikz-kalender
requires the package TikZ and the TikZ libraries calc and
calendar.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-kalender/
%{_texmfdistdir}/tex/latex/tikz-kalender/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10792 |21cr|texlive-tikz-karnaugh-62040-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-karnaugh

Summary:	Typeset Karnaugh maps using TikZ
Name:		texlive-tikz-karnaugh
Version:	62040
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibrarykarnaugh.code.tex) = 2024
BuildArch:	noarch

%description
The tikz-karnaugh package is a LaTeX package used to draw
Karnaugh maps. It uses TikZ to produce high quality graph from
1 to 12 variables, but this upper limit depends on the TeX
memory usage and can be different for you. It is very good for
presentation since TikZ allows for a better control over the
final appearance of the map. You can control colour, styles and
distances. It can be considered as an upgrade and extension of
Andreas W. Wieland's karnaugh package towards TikZ supporting.
Upgrade because uses TikZ for more option on typesetting and
overall higher quality. Extension because it also supports
American style and inputting the values as they would appear in
the map or in the truth table. Complex maps with solution
(implicants) pointed out can be generated with external java
software (see documentation for details). It supports both
American and traditional (simplified labels) styles and from
version 1.3 on American style is natively supported, therefore,
no more addition work is required to typeset Gray coded labels,
variable names etc. From version 1.4, two new macros allow
typesetting a map much more similarly as it should appear.
Original order, as the values appear in the truth table, still
being supported.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-karnaugh/
%{_texmfdistdir}/tex/latex/tikz-karnaugh/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10793 |21cr|texlive-tikz-ladder-62992-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-ladder

Summary:	Draw ladder diagrams using TikZ
Name:		texlive-tikz-ladder
Version:	62992
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibrarycircuits.plc.ladder.code.tex) = 2024
BuildArch:	noarch

%description
The tikz-ladder package contains a collection of symbols for
typesetting ladder diagrams (PLC program) in agreement with the
international standard IEC-61131-3/2013. It includes blocks
(for representing functions and function blocks) besides
contacts and coils. It extends the circuit library of TikZ and
allows you to draw a ladder diagram in the same way as you
would draw any other circuit.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-ladder/
%{_texmfdistdir}/tex/latex/tikz-ladder/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10794 |21cr|texlive-tikz-lake-fig-55288-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-lake-fig

Summary:	Schematic diagrams of lakes
Name:		texlive-tikz-lake-fig
Version:	55288
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(array.sty)
#Requires:	tex(colortbl.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(multirow.sty)
#Requires:	tex(pbox.sty)
#Requires:	tex(relsize.sty)
#Requires:	tex(subfiles.sty)
#Requires:	tex(tabularx.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(tikz-lake-fig.sty) = 2024
BuildArch:	noarch

%description
This package contains a collection of schematic diagrams of
lakes for use in LaTeX documents. Diagrams include
representations of material budgets, fluxes, and connectivity
arrangements.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-lake-fig
%{_texmfdistdir}/tex/latex/tikz-lake-fig

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10795 |21cr|texlive-tikz-layers-46660-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-layers

Summary:	TikZ provides graphical layers on TikZ: "behind", "above" and "glass"
Name:		texlive-tikz-layers
Version:	46660
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikz-layers.sty) = 2024
BuildArch:	noarch

%description
TikZ-layers is a tiny package that provides, along side
"background", typical graphical layers on TikZ: "behind",
"above" and "glass". The layers may be selected with one of the
styles "on behind layer", "on above layer", "on glass layer" as
an option to a {scope} environment.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-layers/
%{_texmfdistdir}/tex/latex/tikz-layers/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10796 |21cr|texlive-tikzlings-63628-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzlings

Summary:	A collection of cute little animals and similar creatures
Name:		texlive-tikzlings
Version:	63628
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikzlibrarydecorations.pathmorphing.code.tex)
#Requires:	tex(tikzlibraryfadings.code.tex)
#Requires:	tex(tikzlibrarypatterns.code.tex)
#Requires:	tex(tikzlibraryshadows.blur.code.tex)
Provides:	tex(tikzlings-addons.sty) = 2024
Provides:	tex(tikzlings-anteaters.sty) = 2024
Provides:	tex(tikzlings-bats.sty) = 2024
Provides:	tex(tikzlings-bears.sty) = 2024
Provides:	tex(tikzlings-bees.sty) = 2024
Provides:	tex(tikzlings-bugs.sty) = 2024
Provides:	tex(tikzlings-cats.sty) = 2024
Provides:	tex(tikzlings-chickens.sty) = 2024
Provides:	tex(tikzlings-coatis.sty) = 2024
Provides:	tex(tikzlings-elephants.sty) = 2024
Provides:	tex(tikzlings-hippos.sty) = 2024
Provides:	tex(tikzlings-koalas.sty) = 2024
Provides:	tex(tikzlings-list.sty) = 2024
Provides:	tex(tikzlings-marmots.sty) = 2024
Provides:	tex(tikzlings-mice.sty) = 2024
Provides:	tex(tikzlings-moles.sty) = 2024
Provides:	tex(tikzlings-owls.sty) = 2024
Provides:	tex(tikzlings-pandas.sty) = 2024
Provides:	tex(tikzlings-penguins.sty) = 2024
Provides:	tex(tikzlings-pigs.sty) = 2024
Provides:	tex(tikzlings-rhinos.sty) = 2024
Provides:	tex(tikzlings-sheep.sty) = 2024
Provides:	tex(tikzlings-sloths.sty) = 2024
Provides:	tex(tikzlings-snowmen.sty) = 2024
Provides:	tex(tikzlings-squirrels.sty) = 2024
Provides:	tex(tikzlings.sty) = 2024
Provides:	tex(tikzlings-wolves.sty) = 2024
BuildArch:	noarch

%description
A collection of LaTeX packages for drawing cute little animals
and similar creatures using TikZ. Currently, the following
TikZlings are included: anteater bat bear bee bug cat chicken
coati elephant hippo koala marmot mole mouse owl panda penguin
pig rhino sheep sloth snowman squirrel wolf These little
drawings can be customized in many ways.

%files
%doc %{_texmfdistdir}/doc/latex/tikzlings
%{_texmfdistdir}/tex/latex/tikzlings

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10797 |21cr|texlive-tikzmarmots-54080-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzmarmots

Summary:	Drawing little marmots in TikZ
Name:		texlive-tikzmarmots
Version:	54080
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibrarymarmots.code.tex) = 2024
Provides:	tex(tikzmarmots.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package for marmots to be used in TikZ
pictures. These little figures are constructed in such a way
that they may even "borrow" some garments and other attributes
from the TikZducks.

%files
%doc %{_texmfdistdir}/doc/latex/tikzmarmots/
%{_texmfdistdir}/tex/latex/tikzmarmots/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10798 |21cr|texlive-tikz-mirror-lens-65500-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-mirror-lens

Summary:	Spherical mirrors and lenses in TikZ
Name:		texlive-tikz-mirror-lens
Version:	65500
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
Provides:	tex(tikz-mirror-lens.sty) = 2024
BuildArch:	noarch

%description
This package allows the automatic drawing of the image of
objects in spherical mirrors and lenses from the data of the
focus, from the position and height of the object. It
calculates the position and height of the image, and also
displays the notable rays.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-mirror-lens
%{_texmfdistdir}/tex/latex/tikz-mirror-lens

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10799 |21cr|texlive-tikz-nef-55920-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-nef

Summary:	Create diagrams for neural networks constructed with the methods of the Neural Engineering Framework (NEF)
Name:		texlive-tikz-nef
Version:	55920
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibrarynef.code.tex) = 2024
BuildArch:	noarch

%description
The nef TikZ library provides predefined styles and shapes to
create diagrams for neural networks constructed with the
methods of the Neural Engineering Framework (NEF). The
following styles are supported: ea: ensemble array ens:
ensemble ext: external input or output inhibt: inhibitory
connection net: network pnode: pass-through node rect:
rectification ensemble recurrent: recurrent connection.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-nef/
%{_texmfdistdir}/tex/latex/tikz-nef/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10800 |21cr|texlive-tikz-network-51884-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-network

Summary:	Draw networks with TikZ
Name:		texlive-tikz-network
Version:	51884
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(datatool.sty)
#Requires:	tex(etex.sty)
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
#Requires:	tex(trimspaces.sty)
#Requires:	tex(xifthen.sty)
Provides:	tex(tikz-network.sty) = 2024
BuildArch:	noarch

%description
This package allows the creation of images of complex networks
that are seamlessly integrated into the underlying LaTeX files.
The package requires datatool, etex, graphicx, tikz,
trimspaces, xifthen, and xkeyval.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-network/
%{_texmfdistdir}/tex/latex/tikz-network/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10801 |21cr|texlive-tikz-optics-62977-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-optics

Summary:	A library for drawing optical setups with TikZ
Name:		texlive-tikz-optics
Version:	62977
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
Provides:	tex(tikzlibraryoptics.code.tex) = 2024
BuildArch:	noarch

%description
This package provides a new TikZ library designed to easily
draw optical setups with TikZ. It provides shapes for lens,
mirror, etc. The geometrically (in)correct computation of light
rays through the setup is left to the user.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-optics/
%{_texmfdistdir}/tex/latex/tikz-optics/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10802 |21cr|texlive-tikzpackets-55827-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzpackets

Summary:	Display network packets
Name:		texlive-tikzpackets
Version:	55827
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pbox.sty)
#Requires:	tex(tcolorbox.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(tikzPackets.sty) = 2024
BuildArch:	noarch

%description
This package allows you to easily display network packets
graphically.

%files
%doc %{_texmfdistdir}/doc/latex/tikzpackets
%{_texmfdistdir}/tex/latex/tikzpackets

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10803 |21cr|texlive-tikz-page-42039-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-page

Summary:	Small macro to help building nice and complex layout materials
Name:		texlive-tikz-page
Version:	42039
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikz-page.sty) = 2024
BuildArch:	noarch

%description
The package provides a small macro to help building nice and
complex layout materials.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-page/
%{_texmfdistdir}/tex/latex/tikz-page/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10804 |21cr|texlive-tikz-palattice-43442-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-palattice

Summary:	Draw particle accelerator lattices with TikZ
Name:		texlive-tikz-palattice
Version:	43442
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etoolbox.sty)
Requires:	tex(ifthen.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(siunitx.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(xargs.sty)
Provides:	tex-tikz-palattice = 2024
Provides:	tex(tikz-palattice.sty) = 2024
BuildArch:	noarch

%description
This package allows for drawing a map of a particle accelerator
just by giving a list of elements -- similar to lattice files
for simulation software. The package includes 12 common element
types like dipoles, quadrupoles, cavities, or screens, as well
as automatic labels with element names, a legend, a rule, and
an environment to fade out parts of the accelerator. The
coordinate of any element can be saved and used for custom tikz
drawings or annotations. Thereby, lattices can be connected to
draw injection/extraction or even a complete accelerator
facility.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/tikz-palattice/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10805 |21cr|texlive-tikzpeople-43978-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzpeople

Summary:	Draw people-shaped nodes in TikZ
Name:		texlive-tikzpeople
Version:	43978
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzpeople.shape.alice.sty) = 2024
Provides:	tex(tikzpeople.shape.bob.sty) = 2024
Provides:	tex(tikzpeople.shape.bride.sty) = 2024
Provides:	tex(tikzpeople.shape.builder.sty) = 2024
Provides:	tex(tikzpeople.shape.businessman.sty) = 2024
Provides:	tex(tikzpeople.shape.charlie.sty) = 2024
Provides:	tex(tikzpeople.shape.chef.sty) = 2024
Provides:	tex(tikzpeople.shape.conductor.sty) = 2024
Provides:	tex(tikzpeople.shape.cowboy.sty) = 2024
Provides:	tex(tikzpeople.shape.criminal.sty) = 2024
Provides:	tex(tikzpeople.shape.dave.sty) = 2024
Provides:	tex(tikzpeople.shape.devil.sty) = 2024
Provides:	tex(tikzpeople.shape.duck.sty) = 2024
Provides:	tex(tikzpeople.shape.graduate.sty) = 2024
Provides:	tex(tikzpeople.shape.groom.sty) = 2024
Provides:	tex(tikzpeople.shape.guard.sty) = 2024
Provides:	tex(tikzpeople.shape.jester.sty) = 2024
Provides:	tex(tikzpeople.shape.judge.sty) = 2024
Provides:	tex(tikzpeople.shape.maninblack.sty) = 2024
Provides:	tex(tikzpeople.shape.mexican.sty) = 2024
Provides:	tex(tikzpeople.shape.nun.sty) = 2024
Provides:	tex(tikzpeople.shape.nurse.sty) = 2024
Provides:	tex(tikzpeople.shape.physician.sty) = 2024
Provides:	tex(tikzpeople.shape.pilot.sty) = 2024
Provides:	tex(tikzpeople.shape.police.sty) = 2024
Provides:	tex(tikzpeople.shape.priest.sty) = 2024
Provides:	tex(tikzpeople.shape.sailor.sty) = 2024
Provides:	tex(tikzpeople.shape.santa.sty) = 2024
Provides:	tex(tikzpeople.shape.surgeon.sty) = 2024
Provides:	tex(tikzpeople.sty) = 2024
BuildArch:	noarch

%description
This package provides people-shaped nodes in the style of
Microsoft Visio clip art, to be used with TikZ. The available,
highly customizable, node shapes are: alice, bob, bride,
builder, businessman, charlie, chef, conductor, cowboy,
criminal, dave, devil, duck, graduate, groom, guard, jester,
judge, maininblack, mexican, nun, nurse, physician, pilot,
police, priest, sailor, santa, surgeon.

%files
%doc %{_texmfdistdir}/doc/latex/tikzpeople/
%{_texmfdistdir}/tex/latex/tikzpeople/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10806 |21cr|texlive-tikzpingus-64199-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzpingus

Summary:	Penguins with TikZ
Name:		texlive-tikzpingus
Version:	64199
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzpingus-christmas.lib.tex) = 2024
Provides:	tex(tikzpingus-cloak.lib.tex) = 2024
Provides:	tex(tikzpingus-devil.lib.tex) = 2024
Provides:	tex(tikzpingus-emotions.lib.tex) = 2024
Provides:	tex(tikzpingus-flags.lib.tex) = 2024
Provides:	tex(tikzpingus-formal.lib.tex) = 2024
Provides:	tex(tikzpingus-fun.lib.tex) = 2024
Provides:	tex(tikzpingus-glasses.lib.tex) = 2024
Provides:	tex(tikzpingus-hats.lib.tex) = 2024
Provides:	tex(tikzpingus-horse.lib.tex) = 2024
Provides:	tex(tikzpingus-magic.lib.tex) = 2024
Provides:	tex(tikzpingus-medieval.lib.tex) = 2024
Provides:	tex(tikzpingus-movement.lib.tex) = 2024
Provides:	tex(tikzpingus-safe.lib.tex) = 2024
Provides:	tex(tikzpingus-science-fiction.lib.tex) = 2024
Provides:	tex(tikzpingus-shirts.lib.tex) = 2024
Provides:	tex(tikzpingus-signs.lib.tex) = 2024
Provides:	tex(tikzpingus-sport.lib.tex) = 2024
Provides:	tex(tikzpingus.sty) = 2024
Provides:	tex(tikzpingus-technology.lib.tex) = 2024
BuildArch:	noarch

%description
tikzpingus is a package similar to tikzducks but with penguins
and a vast set of gadgets and extras (capable of changing the
wing-positions, body-types, and more).

%files
%doc %{_texmfdistdir}/doc/latex/tikzpingus
%{_texmfdistdir}/makeindex/tikzpingus
%{_texmfdistdir}/tex/latex/tikzpingus

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10807 |21cr|texlive-tikz-planets-55002-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-planets

Summary:	Illustrate celestial mechanics and the solar system
Name:		texlive-tikz-planets
Version:	55002
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pgfkeys.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xstring.sty)
Provides:	tex(planets.sty) = 2024
BuildArch:	noarch

%description
This TikZ-package makes it easy to illustrate celestial
mechanics and the solar system. You can use it to draw sketches
of the eclipses, the phases of the Moon, etc. The package
requires the standard packages TikZ, xcolor, xstring, and
pgfkeys.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-planets
%{_texmfdistdir}/tex/latex/tikz-planets

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10808 |21cr|texlive-tikz-relay-64072-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-relay

Summary:	TikZ library for typesetting electrical diagrams
Name:		texlive-tikz-relay
Version:	64072
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibrarycircuits.ee.IEC.relay.code.tex) = 2024
BuildArch:	noarch

%description
This package contains a collection of symbols for typesetting
electrical wiring diagrams for relay control systems. The
symbols are meant to be in agreement with the international
standard IEC-60617 which has been adopted worldwide, with
perhaps the exception of the USA. It extends and modifies, when
needed, the TikZ-libray circuits.ee.IEC. A few non-standard
symbols are also included mainly to be used in presentations,
particularly with the beamer package.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-relay/
%{_texmfdistdir}/tex/latex/tikz-relay/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10809 |21cr|texlive-tikz-sfc-49424-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-sfc

Summary:	Symbols collection for typesetting Sequential Function Chart (SFC) diagrams (PLC programs)
Name:		texlive-tikz-sfc
Version:	49424
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibrarycircuits.plc.sfc.code.tex) = 2024
BuildArch:	noarch

%description
This package contains a collection of symbols for typesetting
Sequential Function Chart (SFC) diagrams in agreement with the
international standard IEC-61131-3/2013. It includes steps
(normal and initial), transitions, actions and actions
qualifiers (with and without time duration). It extends the
circuit library of TikZ and allows you to draw an SFC diagram
in same way you would draw any other circuit.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-sfc/
%{_texmfdistdir}/tex/latex/tikz-sfc/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10810 |21cr|texlive-tikz-swigs-59889-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-swigs

Summary:	Horizontally and vertically split elliptical nodes
Name:		texlive-tikz-swigs
Version:	59889
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibraryswigs.code.tex) = 2024
BuildArch:	noarch

%description
This package provides horizontally and vertically split
elliptical (pairs of) nodes in TikZ. The package name derives
from the fact that split ellipses of this type are used to
represent Single-World Intervention Graph (SWIG) models which
are used in counterfactual causal inference.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-swigs
%{_texmfdistdir}/tex/latex/tikz-swigs

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10811 |21cr|texlive-tikz-trackschematic-63480-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-trackschematic

Summary:	A TikZ library for creating track diagrams in railways
Name:		texlive-tikz-trackschematic
Version:	63480
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibrarytrackschematic.code.tex) = 2024
Provides:	tex(tikzlibrarytrackschematic.constructions.code.tex) = 2024
Provides:	tex(tikzlibrarytrackschematic.electrics.code.tex) = 2024
Provides:	tex(tikzlibrarytrackschematic.measures.code.tex) = 2024
Provides:	tex(tikzlibrarytrackschematic.symbology.code.tex) = 2024
Provides:	tex(tikzlibrarytrackschematic.topology.code.tex) = 2024
Provides:	tex(tikzlibrarytrackschematic.trafficcontrol.code.tex) = 2024
Provides:	tex(tikzlibrarytrackschematic.vehicles.code.tex) = 2024
BuildArch:	noarch

%description
This TikZ library is a toolbox of symbols geared primarily
towards creating track schematic for either research or
educational purposes. It provides a TikZ frontend to some of
the symbols which may be needed to describe situations and
layouts in railway operation. The library is divided into
sublibraries: topology, trafficcontrol, vehicles,
constructions, electrics, symbology, and measures.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-trackschematic
%{_texmfdistdir}/tex/latex/tikz-trackschematic

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10812 |21cr|texlive-tikz-truchet-50020-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikz-truchet

Summary:	Draw Truchet tiles
Name:		texlive-tikz-truchet
Version:	50020
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikz-truchet.sty) = 2024
BuildArch:	noarch

%description
This is a package for LaTeX that draws Truchet tiles, as used
in Colin Beveridge's article Too good to be Truchet in issue 08
of Chalkdust.

%files
%doc %{_texmfdistdir}/doc/latex/tikz-truchet
%{_texmfdistdir}/tex/latex/tikz-truchet

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10813 |21cr|texlive-tikzviolinplots-65687-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tikzviolinplots

Summary:	Draws violin plots from data
Name:		texlive-tikzviolinplots
Version:	65687
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzviolinplots.sty) = 2024
BuildArch:	noarch

%description
This package enables the user to draw violin plots, calculating
the kernel density estimation from the data and plotting the
resulting curve inside a tikzpicture environment. It supports
different kernels, and allows the user to either set the
bandwidth value for each plot or use a default value.

%files
%doc %{_texmfdistdir}/doc/latex/tikzviolinplots
%{_texmfdistdir}/tex/latex/tikzviolinplots

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10814 |21cr|texlive-tile-graphic-55325-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tile-graphic

Summary:	Create tiles of a graphical file
Name:		texlive-tile-graphic
Version:	55325
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tile-graphic.sty) = 2024
BuildArch:	noarch

%description
This package breaks a given graphical file into n rows and m
columns of subgraphics, which are called tiles. The tiles can
be written separately to individual PDF files, or packaged into
a single PDF file.

%files
%doc %{_texmfdistdir}/doc/latex/tile-graphic
%{_texmfdistdir}/tex/latex/tile-graphic

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10815 |21cr|texlive-timbreicmc-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-timbreicmc
Version:	2.0
Release:	1
Summary:	Typeset documents with ICMC/USP watermarks
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/timbreicmc
License:	lppl1.3c
Source0:	 http://mirrors.ctan.org/systems/texlive/tlnet/archive/timbreicmc.tar.xz
Source1:	 http://mirrors.ctan.org/systems/texlive/tlnet/archive/timbreicmc.doc.tar.xz
Source2:	 http://mirrors.ctan.org/systems/texlive/tlnet/archive/timbreicmc.source.tar.xz

BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
With this package you can typeset documents with ICMC/USP Sao
Carlos watermarks. ICMC is acronym for "Instituto de Ciencias
Matematicas e de Computacao" of the "Universidade de Sao Paulo"
(USP), in the city of Sao Carlos-SP, Brazil.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/timbreicmc
%doc %{_texmfdistdir}/doc/latex/timbreicmc
%doc %{_texmfdistdir}/source/latex/timbreicmc


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10816 |21cr|texlive-timetable-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/timetable/timetable.tex
# catalog-date 2008-09-11 15:08:12 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-timetable
Version:	20190228
Release:	1
Summary:	Generate timetables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/timetable/timetable.tex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/timetable.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A highly-configurable package, with nice output and simple
input. The macros use a radix sort mechanism so that the order
of input is not critical.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/timetable/timetable.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10817 |21cr|texlive-tinos-64504-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tinos

Summary:	Tinos fonts with LaTeX support
Name:		texlive-tinos
Version:	64504
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(LY1Tinos-TLF.fd) = 2024
Provides:	tex(OT1Tinos-TLF.fd) = 2024
Provides:	tex(T1Tinos-TLF.fd) = 2024
Provides:	tex(tinos.map) = 2024
Provides:	tex(tinos.sty) = 2024
Provides:	tex(tns_27astb.enc) = 2024
Provides:	tex(tns_s6t4vy.enc) = 2024
Provides:	tex(tns_xze2cy.enc) = 2024
Provides:	tex(tns_y6kixo.enc) = 2024
Provides:	tex(TS1Tinos-TLF.fd) = 2024
BuildArch:	noarch

%description
Tinos, designed by Steve Matteson, is an innovative, refreshing
serif design that is metrically compatible with Times New
Roman.

%files
%doc %{_texmfdistdir}/doc/fonts/tinos/
%{_texmfdistdir}/fonts/enc/dvips/tinos/
%{_texmfdistdir}/fonts/map/dvips/tinos/
%{_texmfdistdir}/fonts/tfm/google/tinos/
%{_texmfdistdir}/fonts/truetype/google/tinos/
%{_texmfdistdir}/fonts/type1/google/tinos/
%{_texmfdistdir}/fonts/vf/google/tinos/
%{_texmfdistdir}/tex/latex/tinos/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10818 |21cr|texlive-tipauni-65817-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tipauni

Summary:	Producing Unicode characters with TIPA commands
Name:		texlive-tipauni
Version:	65817
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(environ.sty)
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xparse.sty)
Provides:	tex(tipauni.sty) = 2024
BuildArch:	noarch

%description
Package TIPA uses the T3 encoding for producing IPA characters.
The package is widely used in the field of linguistics, but
because of the old encoding, the output documents are less
productive than Unicode-based documents. This package redefines
most of the TIPA-commands for outputting Unicode characters.
Users can now use their beloved TIPA shortcuts with the
benefits of Unicode, i.e. searchability, copy-pasting, changing
the font and many more. As this package needs the fontspec
package for loading an IPA font, it needs to be compiled with
XeLaTeX or LuaLaTeX. This package can also be viewed as an
ASCII-based input method for producing IPA characters in
Unicode. It needs the Charis SIL font for printing IPA
characters.

%files
%doc %{_texmfdistdir}/doc/latex/tipauni
%{_texmfdistdir}/tex/latex/tipauni

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10819 |21cr|texlive-tipfr-38646-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tipfr

Summary:	Produces calculator's keys with the help of TikZ
Name:		texlive-tipfr
Version:	38646
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-tipfr = 2024
Provides:	tex(tipfr.sty) = 2024
BuildArch:	noarch

%description
The package provides commands to draw calculator keys with the
help of TikZ. It also provides commands to draw the content of
screens and of menu items.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/tipfr/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10820 |21cr|texlive-tiscreen-62602-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tiscreen

Summary:	Mimic the screen of older Texas Instruments calculators
Name:		texlive-tiscreen
Version:	62602
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tiscreen.sty) = 2024
BuildArch:	noarch

%description
This package mimics the screen of older Texas Instruments dot
matrix display calculators, specifically the TI-82 STATS. It
relies on the lcd and xcolor packages.

%files
%doc %{_texmfdistdir}/doc/latex/tiscreen
%{_texmfdistdir}/tex/latex/tiscreen

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10821 |21cr|texlive-tkzexample-63908-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tkzexample

Summary:	Package for the documentation of all tkz-* packages
Name:		texlive-tkzexample
Version:	63908
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tkzexample.sty) = 2024
BuildArch:	noarch

%description
This package is needed to compile the documentation of all
tkz-* packages (like tkz-euclide).

%files
%doc %{_texmfdistdir}/doc/latex/tkzexample
%{_texmfdistdir}/tex/latex/tkzexample

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10822 |21cr|texlive-tlc3-examples-65496-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tlc3-examples

Summary:	All examples from "The LaTeX Companion", third edition
Name:		texlive-tlc3-examples
Version:	65496
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The PDFs (as used with spotcolor and trimming) and sources for
all examples from the third edition (Parts I+II), together with
necessary supporting files. The edition is published by
Addison-Wesley, 2023, ISBN-13: 978-0-13-816648-9, ISBN-10:
0-13-816648-X (bundle of Part I & II).

%files
%doc %{_texmfdistdir}/doc/latex/tlc3-examples

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10823 |21cr|texlive-tlmgrbasics-66271-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tlmgrbasics

Summary:	A simplified documentation for tlmgr
Name:		texlive-tlmgrbasics
Version:	66271
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides simplified documentation for tlmgr, the
TeX Live Manager. It describes the most commonly-used actions
and options in a convenient format.

%files
%doc %{_texmfdistdir}/doc/support/tlmgrbasics

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10824 |21cr|texlive-tlmgr-intro-zh-cn-59100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tlmgr-intro-zh-cn

Summary:	A short tutorial on using tlmgr in Chinese
Name:		texlive-tlmgr-intro-zh-cn
Version:	59100
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a Chinese translation of the tlmgr documentation. It
introduces some of the common usage of the TeX Live Manager.
The original can be found in the tlmgrbasics package.

%files
%doc %{_texmfdistdir}/doc/support/tlmgr-intro-zh-cn

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10825 |21cr|texlive-to-be-determined-64882-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname to-be-determined

Summary:	Highlight text passages that need further work
Name:		texlive-to-be-determined
Version:	64882
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(soul.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(to-be-determined.sty) = 2024
BuildArch:	noarch

%description
This package provides a single command \tbd which highlights
the pieces of text that need to be rewritten later. You can
hide them all with a single package option hide, or just make
them disappear entirely with the option off.

%files
%doc %{_texmfdistdir}/doc/latex/to-be-determined
%{_texmfdistdir}/tex/latex/to-be-determined

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10826 |21cr|texlive-tocdata-65451-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tocdata

Summary:	Adds names to chapters, sections, figures in the TOC and LOF
Name:		texlive-tocdata
Version:	65451
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tocdata.sty) = 2024
BuildArch:	noarch

%description
The package may be used to add a small amount of data to an
entry in the table of contents or list of figures, between the
section name and the page number. The typical use would be to
add the name of an author or artist of a chapter or section,
such as in an anthology or a collection of papers.
Additionally, user-level macros are provided which add the
author's name to a chapter or section, along with an optional
prefix and/or suffix, and add to a figure the artist's name,
prefix, and suffix, plus optional additional text. Author and
artist names are also added to the index. Additional user-level
macros control formatting. tocdata works with the
TOC/LOF formatting of the default LaTeX classes, memoir,
koma-script, and with titletoc, tocloft, tocbasic, and
tocstyle.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/tocdata/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10827 |21cr|texlive-tokcycle-60320-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tokcycle

Summary:	Build tools to process tokens from an input stream
Name:		texlive-tokcycle
Version:	60320
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tokcycle.sty) = 2024
Provides:	tex(tokcycle.tex) = 2024
BuildArch:	noarch

%description
The tokcycle package helps one to build tools to process tokens
from an input stream. If a macro to process an arbitrary single
token can be built, then tokcycle can provide a wrapper for
cycling through an input stream (including macros, spaces, and
groups) on a token-by-token basis, using the provided macro on
each successive character. tokcycle characterizes each
successive token in the input stream as a Character, a Group, a
Macro, or a Space. Each of these token categories are processed
with a unique directive, to bring about the desired effect of
the token cycle. If condition flags are provided to identify
active, implicit, and catcode-6 tokens as they are digested.
The package provides a number of options for handling groups.

%files
%doc %{_texmfdistdir}/doc/generic/tokcycle
%{_texmfdistdir}/tex/generic/tokcycle

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10828 |21cr|texlive-tonevalue-60058-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tonevalue

Summary:	Tool for linguists and phoneticians to visualize tone value patterns
Name:		texlive-tonevalue
Version:	60058
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tonevalue.sty) = 2024
BuildArch:	noarch

%description
This package provides a TikZ-based solution to typeset
visualisations of tone values. Currently, unt's model is
implemented. Support for more models is planned.

%files
%doc %{_texmfdistdir}/doc/latex/tonevalue
%{_texmfdistdir}/tex/latex/tonevalue

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10829 |21cr|texlive-topiclongtable-54758-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname topiclongtable

Summary:	Extend longtable with cells that merge hierarchically
Name:		texlive-topiclongtable
Version:	54758
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(array.sty)
#Requires:	tex(expl3.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(longtable.sty)
#Requires:	tex(multirow.sty)
#Requires:	tex(xparse.sty)
#Requires:	tex(zref-abspage.sty)
Provides:	tex(topiclongtable.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package extends longtable implementing cells that:
merge with the one above if it has the same content, do not
merge with the one above unless the ones on the left are
merged, are well behaved with respect to longtable chunking on
page breaks, and automatically draw the correct separation
lines. The typical use case is a table spanning multiple pages
that contains a list of hierarchically organized topics (hence
the package name). The package depends on array, expl3,
longtable, multirow, xparse, and zref-abspage.

%files
%doc %{_texmfdistdir}/doc/latex/topiclongtable
%{_texmfdistdir}/tex/latex/topiclongtable

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10830 |21cr|texlive-topletter-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-topletter
Version:	0.3.0
Release:	1
Summary:	Letter class for the Politecnico di Torino
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/topletter
License:	apache2
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/topletter.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/topletter.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/topletter.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a LaTeX class for typesetting letters
conforming to the official Corporate Image guidelines for the
Politecnico di Torino. The class can be used for letters
written in Italian and in English.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/topletter
%doc %{_texmfdistdir}/doc/latex/topletter
%doc %{_texmfdistdir}/source/latex/topletter

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10831 |21cr|texlive-totalcount-56214-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname totalcount

Summary:	Commands for typesetting total values of counters
Name:		texlive-totalcount
Version:	56214
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xspace.sty)
Provides:	tex(totalcount.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package offers commands for typesetting total values
of counters.

%files
%doc %{_texmfdistdir}/doc/latex/totalcount
%{_texmfdistdir}/tex/latex/totalcount

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10832 |21cr|texlive-tpic2pdftex-1.97-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /graphics/tpic2pdftex
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license gpl
# catalog-version 1.97
Name:		texlive-tpic2pdftex
Version:	1.97
Release:	14
Summary:	Use tpic commands in PDFTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/tpic2pdftex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tpic2pdftex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tpic2pdftex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tpic2pdftex.x86_64-linux.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Provides:	texlive-tpic2pdftex.bin = %{EVRD}

%description
The AWK script converts pic language, embedded inline
(delimited by .PS and .PE markers), to \pdfliteral commands.

#-----------------------------------------------------------------------
%files
%{_bindir}/tpic2pdftex
%doc %{_mandir}/man1/tpic2pdftex.1*
%doc %{_texmfdistdir}/doc/man/man1/tpic2pdftex.man1.pdf
%doc %{_texmfdistdir}/doc/tpic2pdftex/Makefile
%doc %{_texmfdistdir}/doc/tpic2pdftex/beamerexample.pdf
%doc %{_texmfdistdir}/doc/tpic2pdftex/beamerexample.pic
%doc %{_texmfdistdir}/doc/tpic2pdftex/example.pdf
%doc %{_texmfdistdir}/doc/tpic2pdftex/example.pic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
# shell script
mkdir -p %{buildroot}%{_bindir}
cp -fpa bin/x86_64-linux/tpic2pdftex %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10833 |21cr|texlive-tracklang-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54512
# category Package
# catalog-ctan 	/macros/generic/tracklang
# catalog-license lppl1.3
# catalogue-topics dissertation class
Name:		texlive-tracklang 
Version:	1.4
Release:	1
Epoch:		1
Summary:	Class for knowing requested lenguage
Group:		Publishing
URL:		https://www.ctan.org/pkg/tracklang
License:	PPL 1.3
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/tracklang.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/tracklang.source.tar.xz
Source2:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/tracklang.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea


%description

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10834 |21cr|texlive-trajan-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/trajan
# catalog-date 2007-10-24 18:05:15 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-trajan
Version:	1.1
Release:	8
Summary:	Fonts from the Trajan column in Rome
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/trajan
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trajan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trajan.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trajan.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides fonts (in both MetaFont and Adobe Type 1 format) based
on the capitals carved on the Trajan column in Rome in 114 AD,
together with macros to access the fonts. Many typographers
think these rank first among the Roman's artistic legacy. The
font is uppercase letters together with some punctuation and
analphabetics; no lowercase or digits.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/trajan/trjnr10.afm
%{_texmfdistdir}/fonts/afm/public/trajan/trjnsl10.afm
%{_texmfdistdir}/fonts/map/dvips/trajan/trajan.map
%{_texmfdistdir}/fonts/tfm/public/trajan/trjnr10.tfm
%{_texmfdistdir}/fonts/tfm/public/trajan/trjnsl10.tfm
%{_texmfdistdir}/fonts/type1/public/trajan/trjnr10.pfb
%{_texmfdistdir}/fonts/type1/public/trajan/trjnsl10.pfb
%{_texmfdistdir}/tex/latex/trajan/t1trjn.fd
%{_texmfdistdir}/tex/latex/trajan/trajan.sty
%doc %{_texmfdistdir}/doc/latex/trajan/README
%doc %{_texmfdistdir}/doc/latex/trajan/trajan.pdf
%doc %{_texmfdistdir}/doc/latex/trajan/trytrajan.pdf
%doc %{_texmfdistdir}/doc/latex/trajan/trytrajan.tex
#- source
%doc %{_texmfdistdir}/source/latex/trajan/trajan.dtx
%doc %{_texmfdistdir}/source/latex/trajan/trajan.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10835 |21cr|texlive-tramlines-65692-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tramlines

Summary:	A package for creating tramlines (lines above and below a title used by lawyers in the UK)
Name:		texlive-tramlines
Version:	65692
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tramlines.sty) = 2024
BuildArch:	noarch

%description
This package automatically creates tramlines (lines above and
below a title used by lawyers in the UK and the Commonwealth).

%files
%doc %{_texmfdistdir}/doc/latex/tramlines
%{_texmfdistdir}/tex/latex/tramlines

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10836 |21cr|texlive-transparent-64852-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname transparent

Summary:	Using a color stack for transparency with pdfTeX
Name:		texlive-transparent
Version:	64852
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(transparent-nometadata.sty) = 2024
Provides:	tex(transparent.sty) = 2024
BuildArch:	noarch

%description
pdfTeX and LuaTeX support several color stacks. This package
shows how a separate color stack can be used for transparency,
a property besides color that works across page breaks. If the
PDF management is used it can also be used with other engines,
but without support for page breaks.

%files
%doc %{_texmfdistdir}/doc/latex/transparent
%{_texmfdistdir}/tex/latex/transparent

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10837 |21cr|texlive-transparent-io-64113-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname transparent-io

Summary:	Show for approval the filenames used in \input, \openin, or \openout
Name:		texlive-transparent-io
Version:	64113
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This package provides macros to make the file I/O in plain TeX
more transparent. That is, every \input, \openin, and \openout
operation by TeX is presented to the user who must check
carefully if the file name of the source is acceptable. The
user must sometimes enter additional text and has to specify
the file name that the TeX operation should use. The macros
require a complex installation procedure; the package contains
sed and bash scripts to do this on a UNIX-like operating
system. Every installation is different from any other as
password-protected macro names and private messages have to be
chosen by the installer. Therefore, the files in the package
cannot be used directly. The files carry the extension .org,
and only after the user has performed an individual
customization for a private installation the changed files are
renamed and have the extension .tex. For details see the
manual.

%files
%doc %{_texmfdistdir}/doc/plain/transparent-io

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10838 |21cr|texlive-treetex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28176
# category Package
# catalog-ctan /macros/plain/contrib/treetex
# catalog-date 2012-01-20 11:26:32 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-treetex
Version:	20190228
Release:	1
Summary:	Draw trees
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/treetex
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/treetex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/treetex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Macros to draw trees, within TeX (or LaTeX). The algorithm used
is discussed in an accompanying paper (written using LaTeX
2.09).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/treetex/classes.tex
%{_texmfdistdir}/tex/plain/treetex/l_pic.tex
%{_texmfdistdir}/tex/plain/treetex/treetex.tex
%doc %{_texmfdistdir}/doc/plain/treetex/epodd.tex
%doc %{_texmfdistdir}/doc/plain/treetex/readme
%doc %{_texmfdistdir}/doc/plain/treetex/tree_doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10839 |21cr|texlive-trigonometry-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-trigonometry
Version:	1.4
Release:	1
Summary:	Trigonometry package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/accents
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/trigonometry.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/trigonometry.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
texlive-tree-dvips-doc - Documentation for texlive-tree-dvips

#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10840 |21cr|texlive-truthtable-60717-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname truthtable

Summary:	Automatically generate truth tables for given variables and statements
Name:		texlive-truthtable
Version:	60717
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(truthtable.sty) = 2024
BuildArch:	noarch

%description
This LuaLaTeX package permits to automatically generate truth
tables given a table header. It supports a number of logical
operations which can be combined as needed. It is built upon
the luacode package.

%files
%doc %{_texmfdistdir}/doc/lualatex/truthtable
%{_texmfdistdir}/tex/lualatex/truthtable

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10841 |21cr|texlive-tsvtemplate-65333-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tsvtemplate

Summary:	Apply a template to a tsv file
Name:		texlive-tsvtemplate
Version:	65333
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tsvtemplate.sty) = 2024
Provides:	tex(tsvtemplate.tex) = 2024
BuildArch:	noarch

%description
This is a simple tsv (tab-separated values) reader for LuaLaTeX
and plain LuaTeX. It also supports (non-quoted) comma-separated
values, or indeed values separated by any character.

%files
%doc %{_texmfdistdir}/doc/luatex/tsvtemplate
%{_texmfdistdir}/tex/luatex/tsvtemplate

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10842 |21cr|texlive-tuda-ci-65254-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tuda-ci

Summary:	LaTeX templates of Technische Universitat Darmstadt
Name:		texlive-tuda-ci
Version:	65254
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(anyfontsize.sty)
#Requires:	tex(environ.sty)
Requires:	tex(fontenc.sty)
Requires:	tex(graphicx.sty)
#Requires:	tex(iftex.sty)
Requires:	tex(inputenc.sty)
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(microtype.sty)
#Requires:	tex(pdfx.sty)
Requires:	tex(roboto-mono.sty)
Requires:	tex(roboto.sty)
#Requires:	tex(scrextend.sty)
#Requires:	tex(scrlayer-scrpage.sty)
#Requires:	tex(scrlayer.sty)
#Requires:	tex(scrlfile.sty)
Requires:	tex(textcomp.sty)
#Requires:	tex(trimclip.sty)
#Requires:	tex(URspecialopts.sty)
#Requires:	tex(XCharter.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(beamercolorthemeTUDa.sty) = 2024
Provides:	tex(beamerfontthemeTUDa.sty) = 2024
Provides:	tex(beamerinnerthemeTUDa.sty) = 2024
Provides:	tex(beamerouterthemeTUDa.sty) = 2024
Provides:	tex(beamerthemeTUDa-mecheng.sty) = 2024
Provides:	tex(beamerthemeTUDa.sty) = 2024
Provides:	tex(tuda-a0paper.clo) = 2024
Provides:	tex(tuda-a1paper.clo) = 2024
Provides:	tex(tuda-a2paper.clo) = 2024
Provides:	tex(tuda-a3paper.clo) = 2024
Provides:	tex(tuda-a4paper.clo) = 2024
Provides:	tex(tuda-a5paper.clo) = 2024
Provides:	tex(tudabeamer.cls) = 2024
Provides:	tex(tudacolors.def) = 2024
Provides:	tex(tudacolors.sty) = 2024
Provides:	tex(tudaexercise.cls) = 2024
Provides:	tex(tudafonts.sty) = 2024
Provides:	tex(tudaleaflet.cls) = 2024
Provides:	tex(tudaletter.cls) = 2024
Provides:	tex(tudalettersize10pt.clo) = 2024
Provides:	tex(tuda-pgfplots.sty) = 2024
Provides:	tex(tudaposter.cls) = 2024
Provides:	tex(tudapub.cls) = 2024
Provides:	tex(tudarules.sty) = 2024
Provides:	tex(tudasciposter.cls) = 2024
Provides:	tex(tudasize9pt.clo) = 2024
BuildArch:	noarch

%description
The TUDa-CI-Bundle provides a possibility to use the Corporate
Design of TU Darmstadt in LaTeX. It contains documentclasses as
well as some helper packages and config files together with
some templates for user documentation, which currently are only
available in German.

%files
%doc %{_texmfdistdir}/doc/latex/tuda-ci
%{_texmfdistdir}/tex/latex/tuda-ci

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10843 |21cr|texlive-tudscr-2.06n-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 59942
# category Package
# catalog-ctan catalogue-ctan /macros/latex/contrib/tudscr
# catalogue-license lppl1.3c
# catalog-version 2.06n
Name:		texlive-tudscr
Version:	2.06n
Release:	1
Summary:	Corporate Design of Technische Universitat Dresden
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tudscr
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tudscr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tudscr.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tudscr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The TUD-Script bundle provides both classes and packages in 
order to create LaTeX documents in the corporate design of the
Technische Universitat Dresden. It bases on the KOMA-Script
bundle, which must necessarily be present.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10844 |21cr|texlive-turabian-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 36298
# category Package
# catalog-ctan /macros/latex/contrib/turabian
# catalog-license lppl
# catalog-date 2016-06-24 19:18:15 +0200
# catalog-version 0.1.0
Name:		texlive-turabian
Version:	0.1.0
Release:	1
Summary:	doc files of turabian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/turabian
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turabian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turabian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a class file and a template for creating
Turabian-formatted projects. The class file supports citation
formatting conforming to the Turabian 8th Edition style guide.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10845 |21cr|texlive-turabian-formatting-58561-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname turabian-formatting

Summary:	Formatting based on Turabian's Manual
Name:		texlive-turabian-formatting
Version:	58561
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(caption.sty)
#Requires:	tex(endnotes.sty)
#Requires:	tex(etoolbox.sty)
#Requires:	tex(fancyhdr.sty)
Requires:	tex(flafter.sty)
#Requires:	tex(footmisc.sty)
#Requires:	tex(geometry.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(nowidow.sty)
#Requires:	tex(quoting.sty)
#Requires:	tex(setspace.sty)
#Requires:	tex(titlesec.sty)
#Requires:	tex(url.sty)
#Requires:	tex(xifthen.sty)
Provides:	tex-turabian-formatting = 2024
Provides:	tex(turabian-formatting.sty) = 2024
Provides:	tex(turabian-researchpaper.cls) = 2024
Provides:	tex(turabian-thesis.cls) = 2024
BuildArch:	noarch

%description
The turabian-formatting package provides Chicago-style
formatting based on Kate L. Turabian's "A Manual for Writers of
Research Papers, Theses, and Dissertations: Chicago Style for
Students and Researchers" (9th edition).

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/turabian-formatting/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10846 |21cr|texlive-turnstile-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/turnstile
# catalog-date 2008-08-24 14:43:48 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-turnstile
Version:	1.0
Release:	8
Summary:	Typeset the (logic) turnstile notation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/turnstile
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turnstile.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turnstile.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turnstile.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Among other uses, the turnstile sign is used by logicians for
denoting a consequence relation, related to a given logic,
between a collection of formulas and a derived formula.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/turnstile/turnstile.sty
%doc %{_texmfdistdir}/doc/latex/turnstile/README
%doc %{_texmfdistdir}/doc/latex/turnstile/README.en
%doc %{_texmfdistdir}/doc/latex/turnstile/README.pt
%doc %{_texmfdistdir}/doc/latex/turnstile/turnstile-en.pdf
%doc %{_texmfdistdir}/doc/latex/turnstile/turnstile-pt.pdf
%doc %{_texmfdistdir}/doc/latex/turnstile/turnstile_article.pdf
%doc %{_texmfdistdir}/doc/latex/turnstile/turnstile_article.tex
%doc %{_texmfdistdir}/doc/latex/turnstile/turnstile_artigo.pdf
%doc %{_texmfdistdir}/doc/latex/turnstile/turnstile_artigo.tex
#- source
%doc %{_texmfdistdir}/source/latex/turnstile/turnstile-en.dtx
%doc %{_texmfdistdir}/source/latex/turnstile/turnstile-en.ins
%doc %{_texmfdistdir}/source/latex/turnstile/turnstile-pt.dtx
%doc %{_texmfdistdir}/source/latex/turnstile/turnstile-pt.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10847 |21cr|texlive-twemoji-colr-64854-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname twemoji-colr

Summary:	Twemoji font in COLR/CPAL layered format
Name:		texlive-twemoji-colr
Version:	64854
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This is a COLR/CPAL-based color OpenType font from the Twemoji
collection of emoji images.

%files
%doc %{_texmfdistdir}/doc/fonts/twemoji-colr
%{_texmfdistdir}/fonts/truetype/public/twemoji-colr

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10848 |21cr|texlive-twemojis-62930-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname twemojis

Summary:	Use Twitter's open source emojis through LaTeX commands
Name:		texlive-twemojis
Version:	62930
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(twemojis.sty) = 2024
BuildArch:	noarch

%description
This package provides a simple wrapper which allows to use
Twitter's open source emojis through LaTeX commands. This
relies on images, so no fancy unicode-font stuff is needed and
it should work on every installation.

%files
%doc %{_texmfdistdir}/doc/latex/twemojis
%{_texmfdistdir}/tex/latex/twemojis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10849 |21cr|texlive-txfontsb-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21578
# category Package
# catalog-ctan /fonts/txfontsb
# catalog-date 2011-03-01 17:09:11 +0100
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-txfontsb
Version:	1.1.1
Release:	1
Summary:	Extensions to txfonts, using GNU Freefont
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/txfontsb
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/txfontsb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/txfontsb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/txfontsb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts that extend the txfonts bundle with small caps
and old style numbers, together with Greek support. The
extensions are made with modifications of the GNU Freefont.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/txfontsb/FreeSerifb-SmallCaps.afm
%{_texmfdistdir}/fonts/afm/public/txfontsb/FreeSerifb-SmallCapsAlt.afm
%{_texmfdistdir}/fonts/afm/public/txfontsb/FreeSerifb.afm
%{_texmfdistdir}/fonts/afm/public/txfontsb/FreeSerifbBold.afm
%{_texmfdistdir}/fonts/afm/public/txfontsb/FreeSerifbBoldItalic.afm
%{_texmfdistdir}/fonts/afm/public/txfontsb/FreeSerifbItalic.afm
%{_texmfdistdir}/fonts/enc/dvips/txfontsb/gptimes.enc
%{_texmfdistdir}/fonts/enc/dvips/txfontsb/gptimesy.enc
%{_texmfdistdir}/fonts/map/dvips/txfontsb/gptimes.map
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesb6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesb6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesbi6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesbi6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesg6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesi6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesi6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesrg6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimessc6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimessc6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimessco6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimessco6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesyb6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesyb6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesybi6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesybi6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesyg6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesyi6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesyi6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesyrg6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesysc6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesysc6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesysco6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/gtimesysco6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/timessc6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/timessc6r.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/timessco6a.tfm
%{_texmfdistdir}/fonts/tfm/public/txfontsb/timessco6r.tfm
%{_texmfdistdir}/fonts/type1/public/txfontsb/FreeSerifb-SmallCaps.pfb
%{_texmfdistdir}/fonts/type1/public/txfontsb/FreeSerifb-SmallCapsAlt.pfb
%{_texmfdistdir}/fonts/type1/public/txfontsb/FreeSerifb.pfb
%{_texmfdistdir}/fonts/type1/public/txfontsb/FreeSerifbBold.pfb
%{_texmfdistdir}/fonts/type1/public/txfontsb/FreeSerifbBoldItalic.pfb
%{_texmfdistdir}/fonts/type1/public/txfontsb/FreeSerifbItalic.pfb
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesb6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesbi6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesi6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesrg6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimessc6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimessco6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesyb6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesybi6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesyi6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesyrg6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesysc6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/gtimesysco6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/timessc6a.vf
%{_texmfdistdir}/fonts/vf/public/txfontsb/timessco6a.vf
%{_texmfdistdir}/tex/latex/txfontsb/lgrtxr.fd
%{_texmfdistdir}/tex/latex/txfontsb/lgrtxrc.fd
%{_texmfdistdir}/tex/latex/txfontsb/lgrtxry.fd
%{_texmfdistdir}/tex/latex/txfontsb/lgrtxryc.fd
%{_texmfdistdir}/tex/latex/txfontsb/ot1txrc.fd
%{_texmfdistdir}/tex/latex/txfontsb/ot1txryc.fd
%{_texmfdistdir}/tex/latex/txfontsb/txfontsb.sty
%{_texmfdistdir}/fonts/opentype/public/txfontsb/FreeSerifb-SmallCaps.otf
%{_texmfdistdir}/fonts/opentype/public/txfontsb/FreeSerifb-SmallCapsAlt.otf
%{_texmfdistdir}/fonts/opentype/public/txfontsb/FreeSerifb.otf
%{_texmfdistdir}/fonts/opentype/public/txfontsb/FreeSerifbBold.otf
%{_texmfdistdir}/fonts/opentype/public/txfontsb/FreeSerifbBoldItalic.otf
%{_texmfdistdir}/fonts/opentype/public/txfontsb/FreeSerifbItalic.otf
%doc %{_texmfdistdir}/doc/fonts/txfontsb/README
%doc %{_texmfdistdir}/doc/fonts/txfontsb/txfontsb.pdf
%doc %{_texmfdistdir}/doc/fonts/txfontsb/txfontsb.tex
#- source
%doc %{_texmfdistdir}/source/fonts/txfontsb/FreeSerifb-SmallCaps.sfd
%doc %{_texmfdistdir}/source/fonts/txfontsb/FreeSerifb-SmallCapsAlt.sfd
%doc %{_texmfdistdir}/source/fonts/txfontsb/FreeSerifb.sfd
%doc %{_texmfdistdir}/source/fonts/txfontsb/FreeSerifbBold.sfd
%doc %{_texmfdistdir}/source/fonts/txfontsb/FreeSerifbBoldItalic.sfd
%doc %{_texmfdistdir}/source/fonts/txfontsb/FreeSerifbItalic.sfd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10850 |21cr|texlive-txuprcal-43327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname txuprcal

Summary:	Upright calligraphic font based on TX calligraphic
Name:		texlive-txuprcal
Version:	43327
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(txuprcal-bold.pfb) = 2024
Provides:	tex(txUprCal-Bold.tfm) = 2024
Provides:	tex(TXUprCal.map) = 2024
Provides:	tex(txuprcal-reg.pfb) = 2024
Provides:	tex(txUprCal-Regular.tfm) = 2024
Provides:	tex(txuprcal.sty) = 2024
Provides:	tex(utxuprcal.fd) = 2024
BuildArch:	noarch

%description
This small package provides a means of loading as \mathcal an
uprighted version of the calligraphic fonts from the TX font
package. A scaled option to provided to allow arbitrary
scaling.

%files
%doc %{_texmfdistdir}/doc/fonts/txuprcal/
%{_texmfdistdir}/fonts/map/dvips/txuprcal/
%{_texmfdistdir}/fonts/tfm/public/txuprcal/
%{_texmfdistdir}/fonts/type1/public/txuprcal/
%{_texmfdistdir}/tex/latex/txuprcal/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10851 |21cr|texlive-typed-checklist-63445-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname typed-checklist

Summary:	Typesetting tasks, goals, milestones, artifacts, and more in LaTeX
Name:		texlive-typed-checklist
Version:	63445
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-typed-checklist = 2024
Provides:	tex(typed-checklist.sty) = 2024
BuildArch:	noarch

%description
The main goal of this package is to provide means for
typesetting checklists in a way that stipulates users to
explicitly distinguish checklists for goals, for tasks, for
artifacts, and for milestones -- i.e., the type of checklist
entries. The intention behind this is that a user of the
package is coerced to think about what kind of entries he/she
adds to the checklist. This shall yield a clearer result and,
in the long run, help with training to distinguish entries of
different types.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/typed-checklist/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10852 |21cr|texlive-typeoutfileinfo-0.31-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /support/typeoutfileinfo
# catalog-date 2012-03-16 14:12:34 +0100
# catalog-license lppl1.3
# catalog-version 0.31
Name:		texlive-typeoutfileinfo
Version:	0.31
Release:	8
Summary:	Display class/package/file information
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/typeoutfileinfo
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typeoutfileinfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typeoutfileinfo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-typeoutfileinfo.bin = %{EVRD}

%description
The package provides a minimalist shell script, for Unix
systems, that displays the information content in a
\ProvidesFile, \ProvidesPackage or \ProvidesClass command in a
LaTeX source file. The package requires that the readprov
package is available.


#-----------------------------------------------------------------------
%files
%{_bindir}/typeoutfileinfo
%{_texmfdistdir}/scripts/typeoutfileinfo/typeoutfileinfo.sh
%doc %{_texmfdistdir}/doc/support/typeoutfileinfo/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdir}/scripts/typeoutfileinfo/typeoutfileinfo.sh typeoutfileinfo
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10853 |21cr|texlive-typewriter-46641-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname typewriter

Summary:	Typeset with a randomly variable monospace font
Name:		texlive-typewriter
Version:	46641
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(typewriter.sty) = 2024
BuildArch:	noarch

%description
The typewriter package uses the OpenType Computer Modern
Unicode Typewriter font, together with a LuaTeX virtual font
setup that introduces random variability in grey level and
angle of each character. It was originally an answer to a
question on stackexchange.

%files
%doc %{_texmfdistdir}/doc/lualatex/typewriter/
%{_texmfdistdir}/tex/lualatex/typewriter/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10854 |21cr|texlive-typicons-37623.2.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname typicons

Summary:	Font containing a set of web-related icons
Name:		texlive-typicons
Version:	37623.2.0.7
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-typicons = 2024
Provides:	tex(typicons.sty) = 2024
Provides:	tex(typicons.ttf) = 2024
BuildArch:	noarch

%description
This package grants access to 336 web-related icons provided by
the included "Typicons" free font, designed by Stephen
Hutchings and released under the SIL Open Font License. See
http://www.typicons.com for more details about the font itself.
This package requires the fontspec package and either the
Xe(La)TeX or Lua(La)TeX engine to load the included ttf font.
Once the package is loaded, icons can be accessed through the
general \ticon command, which takes as argument the name of the
desired icon, or through direct commands specific to each icon.
The full list of icon designs, names and direct commands is
showcased in the manual.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/truetype/public/typicons/
%{_texmfdistdir}/tex/latex/typicons/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10855 |21cr|texlive-typoaid-44238-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname typoaid

Summary:	Macros for font diagnostics
Name:		texlive-typoaid
Version:	44238
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(typoaid.sty) = 2024
BuildArch:	noarch

%description
This package provides macros for measuring alphabet lengths
(i.e. the length occupied by the characters "abcd...xyz"), em-
widths and ex-heights, which may help in making typesetting
decisions. The package is compatible with pdfLaTeX, LuaLaTeX,
and XeLaTeX, and will accept font family switches defined via
the fontspec package. The plan is that future versions shall be
able to provide even more diagnostic tools, and some LuaTeX-
specific special commands, too. The package relies on the
following other LaTeX packages: expl3, array, booktabs, and
siunitx.

%files
%doc %{_texmfdistdir}/doc/latex/typoaid/
%{_texmfdistdir}/tex/latex/typoaid/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10856 |21cr|texlive-tzplot-64537-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tzplot

Summary:	Plot graphs with TikZ abbreviations
Name:		texlive-tzplot
Version:	64537
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(expl3.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(tzplot.sty) = 2024
BuildArch:	noarch

%description
This is a LaTeX package that provides TikZ-based macros to make
it easy to draw graphs. The macros provided in this package are
just abbreviations for TikZ codes, which can be complicated;
but using the package will hopefully make drawing easier,
especially when drawing repeatedly. The macros were chosen and
developed with an emphasis on drawing graphs in economics. The
package depends on TikZ, xparse, and expl3.

%files
%doc %{_texmfdistdir}/doc/latex/tzplot
%{_texmfdistdir}/tex/latex/tzplot

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10857 |21cr|texlive-uantwerpendocs-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-uantwerpendocs
Version:	4.4
Release:	1
Summary:	Course texts, master theses, and exams in University of Antwerp style
Group:		Publishing
URL:		https://ctan.org/pkg/uantwerpendocs
License:	LPPL1.3
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/uantwerpendocs.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/uantwerpendocs.doc.tar.xz
Source2:        https://ctan.altspu.ru/systems/texlive/tlnet/archive/uantwerpendocs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These class files implement the house style of the University
of Antwerp.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uantwerpendocs
%doc %{_texmfdistdir}/doc/latex/uantwerpendocs
%doc %{_texmfdistdir}/source/latex/uantwerpendocs/uantwerpendocs.dtx
%doc %{_texmfdistdir}/source/latex/uantwerpendocs/uantwerpendocs.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10858 |21cr|texlive-uassign-38459-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uassign

Summary:	Provides environments and options for typesetting university assignments
Name:		texlive-uassign
Version:	38459
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(ifthen.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-uassign = 2024
Provides:	tex(uassign.sty) = 2024
BuildArch:	noarch

%description
Provides environments and options for typesetting university
assignments

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/uassign/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10859 |21cr|texlive-ucalgmthesis-66602-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ucalgmthesis

Summary:	LaTeX thesis class for University of Calgary Faculty of Graduate Studies
Name:		texlive-ucalgmthesis
Version:	66602
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ucalgmthesis.cls) = 2024
BuildArch:	noarch

%description
ucalgmthesis.cls is a LaTeX class file that produces documents
according to the thesis guidelines of the University of Calgary
Faculty of Graduate Studies. It uses the memoir class, which
provides very powerful and flexible mechanisms for book design
and layout. All memoir commands for changing chapter and
section headings, page layout, fancy foot- and endnotes,
typesetting poems, etc., can be used. (Memoir is meant as a
replacement for the standard LaTeX classes, so all standard
LaTeX commands such as \chapter, \section, etc., still work.)
Likewise, any of memoir's class options can be passed as
options to ucalgmthesis, in particular 12pt to select 12 point
type (11 point is the default).

%files
%doc %{_texmfdistdir}/doc/latex/ucalgmthesis
%{_texmfdistdir}/tex/latex/ucalgmthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10860 |21cr|texlive-ucbthesis-3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ucbthesis
Version:	3.6
Release:	1
Summary:	Thesis and dissertation class supporting UCB requirements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ucbthesis
License:	The LATEX Project Public
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ucbthesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ucbthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides the necessary framework for electronic
submission of Masters theses and Ph.D. dissertations at the
University of California, Berkeley. It is based on the memoir
class.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10861 |21cr|texlive-ucsmonograph-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ucsmonograph
Version:	1.3.0
Release:	1
Summary:	Typesetting academic documents from the University of Caxias do Sul
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/ucsmonograph
License:	lppl1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ucsmonograph.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ucsmonograph.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ucsmonograph.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a LaTeX class for typesetting academic documents
according to the ABNT (Brazilian Technical Standards
Association) standards and the UCS (University of Caxias do
Sul) specifications.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10862 |21cr|texlive-udes-genie-these-65039-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname udes-genie-these

Summary:	A thesis class file for the Faculte de genie at the Universite de Sherbrooke
Name:		texlive-udes-genie-these
Version:	65039
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(udes-genie-these.cls) = 2024
BuildArch:	noarch

%description
The udes-genie-these class can be used for Ph.D. theses,
master's theses and project definitions at the Faculte de genie
of the Universite de Sherbrooke (Quebec, Canada). The class
file is coherent with the latest version of the Protocole de
redaction aux etudes superieures which is available on the
faculte's intranet. The class file documentation is in French,
the language of the typical user at the Universite de
Sherbrooke. An example of use is also distributed with the
documentation.

%files
%doc %{_texmfdistdir}/doc/latex/udes-genie-these
%{_texmfdistdir}/tex/latex/udes-genie-these

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10863 |21cr|texlive-ufrgscca-65661-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ufrgscca

Summary:	A bundle for undergraduate students final work/report (tcc) at UFRGS/EE
Name:		texlive-ufrgscca
Version:	65661
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ufrgscca-abnt.sty) = 2024
Provides:	tex(ufrgscca.cls) = 2024
Provides:	tex(ufrgscca-coord.sty) = 2024
Provides:	tex(ufrgscca-core.sty) = 2024
Provides:	tex(ufrgscca-cover.sty) = 2024
Provides:	tex(ufrgscca-curr-graph.sty) = 2024
Provides:	tex(ufrgscca-curr.sty) = 2024
Provides:	tex(ufrgscca-curr-tab.sty) = 2024
Provides:	tex(ufrgscca-en-base.def) = 2024
Provides:	tex(ufrgscca-en-coord.def) = 2024
Provides:	tex(ufrgscca-en-core.def) = 2024
Provides:	tex(ufrgscca-en-forms.def) = 2024
Provides:	tex(ufrgscca-forms.sty) = 2024
Provides:	tex(ufrgscca-gen.sty) = 2024
Provides:	tex(ufrgscca-lists.sty) = 2024
Provides:	tex(ufrgscca-ppc.sty) = 2024
Provides:	tex(ufrgscca-ptBR-base.def) = 2024
Provides:	tex(ufrgscca-ptBR-coord.def) = 2024
Provides:	tex(ufrgscca-ptBR-core.def) = 2024
Provides:	tex(ufrgscca-ptBR-forms.def) = 2024
BuildArch:	noarch

%description
This bundled is aimed at producing undergraduate students'
final work/report at UFRGS/EE (Engineering School at the
Federal University of Rio Grande do Sul), closely following
ABNT rules (Brazilian Association for Technical Norms). It is
composed of a main class, ufrgscca, and a set of auxiliary
packages, some of which can be used independently.

%files
%doc %{_texmfdistdir}/doc/latex/ufrgscca
%{_texmfdistdir}/tex/latex/ufrgscca

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10864 |21cr|texlive-uhhassignment-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-uhhassignment
Version:	1.0
Release:	1
Summary:	A document class for typesetting homework assignments
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/uhhassignment
License:	lppl1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/uhhassignment.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/uhhassignment.doc.tar.xz
Source2:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/uhhassignment.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This document class was created for typesetting solutions to
homework assignments at the university of Hamburg (Universitat
Hamburg).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10865 |21cr|texlive-uhrzeit-39570-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uhrzeit

Summary:	Time printing, in German
Name:		texlive-uhrzeit
Version:	39570
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-uhrzeit = 2024
Provides:	tex(uhrzeit.sty) = 2024
BuildArch:	noarch

%description
The primary goal of this package is to facilitate formats and
ranges of times as formerly used in Germany. A variety of
printing formats are available.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/uhrzeit/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10866 |21cr|texlive-ukbill-65485-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ukbill

Summary:	A class for typesetting UK legislation
Name:		texlive-ukbill
Version:	65485
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ukbill.cls) = 2024
BuildArch:	noarch

%description
This package provides formatting to easily typeset draft UK
legislation. The libre font Palatine Parliamentary is required
to use this package.

%files
%doc %{_texmfdistdir}/doc/latex/ukbill
%{_texmfdistdir}/tex/latex/ukbill

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10867 |21cr|texlive-umtypewriter-001.002-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/umtypewriter
# catalog-date 2009-07-23 15:45:58 +0200
# catalog-license ofl
# catalog-version 001.002
Name:		texlive-umtypewriter
Version:	001.002
Release:	8
Summary:	Fonts to typeset with the xgreek package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/umtypewriter
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umtypewriter.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The UMTypewriter font family is a monospaced font family that
was built from glyphs from the CB Greek fonts, the CyrTUG
Cyrillic alphabet fonts ("LH"), and the standard Computer
Modern font family. It contains four OpenType fonts which are
required for use of the xgreek package for XeLaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/umtypewriter/UMTypewriter-Bold.otf
%{_texmfdistdir}/fonts/opentype/public/umtypewriter/UMTypewriter-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/public/umtypewriter/UMTypewriter-Italic.otf
%{_texmfdistdir}/fonts/opentype/public/umtypewriter/UMTypewriter-Oblique.otf
%{_texmfdistdir}/fonts/opentype/public/umtypewriter/UMTypewriter-Regular.otf

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10868 |21cr|texlive-unam-thesis-51207-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unam-thesis

Summary:	Create documents according to the UNAM guidelines
Name:		texlive-unam-thesis
Version:	51207
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unam-thesis.cls) = 2024
BuildArch:	noarch

%description
This is a class for creating dissertation documents according
to the National Autonomous University of Mexico (UNAM)
guidelines.

%files
%doc %{_texmfdistdir}/doc/latex/unam-thesis
%{_texmfdistdir}/tex/latex/unam-thesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10869 |21cr|texlive-unamth-template-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-unamth-template
Version:	2.0
Release:	1
Summary:	UNAM Thesis LaTeX Template
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/unamth-template
License:	GNU General Public License, version 3
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/unamth-template.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/unamth-template.doc.tar.xz
BuildArch:	noarch 
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a template for UNAM's College of
Engineering Theses. The work is based on Harish Bhanderi's
PhD/MPhil template, and the University of Cambridge Engineering
Department template.
#-----------------------------------------------------------------------

%files 
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10870 |21cr|texlive-unbtex-64634-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unbtex

Summary:	A class for theses at University of Brasilia (UnB)
Name:		texlive-unbtex
Version:	64634
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unbtex.cls) = 2024
BuildArch:	noarch

%description
This package provides a class based on abnTeX and compatible
with pdflatex and biber to prepare bachelor, master, and
doctoral theses for the University of Brasilia (UnB), Brazil.
The class also comes with a template for the various types of
theses for undergraduate and graduate programs at UnB. The
documentation for the class and the comments in the templates
are all written in Portuguese, the language of the target
audience.

%files
%doc %{_texmfdistdir}/doc/latex/unbtex
%{_texmfdistdir}/tex/latex/unbtex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10871 |21cr|texlive-unfonts-core-56291-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unfonts-core

Summary:	TrueType version of Un-fonts
Name:		texlive-unfonts-core
Version:	56291
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The Un-fonts come from the HLaTeX as type1 fonts in 1998 by
Koaunghi Un, he made type1 fonts to use with Korean TeX
(HLaTeX) in the late 1990's and released it under the GPL
license. They were converted to TrueType with the FontForge
(PfaEdit) by Won-kyu Park in 2003. Core families (9 fonts):
UnBatang, UnBatangBold: serif UnDotum, UnDotumBold: sans-serif
UnGraphic, UnGraphicBold: sans-serif style UnPilgi,
UnPilgiBold: script UnGungseo: cursive, brush-stroke

%files
%doc %{_texmfdistdir}/doc/fonts/unfonts-core/
%{_texmfdistdir}/fonts/truetype/public/unfonts-core/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10872 |21cr|texlive-unfonts-extra-56291-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unfonts-extra

Summary:	TrueType version of Un-fonts
Name:		texlive-unfonts-extra
Version:	56291
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The Un-fonts come from the HLaTeX as type1 fonts in 1998 by
Koaunghi Un, he made type1 fonts to use with Korean TeX
(HLaTeX) in the late 1990's and released it under the GPL
license. They were converted to TrueType with the FontForge
(PfaEdit) by Won-kyu Park in 2003. Extra families (10 fonts):
UnPen, UnPenheulim: script UnTaza: typewriter style UnBom:
decorative UnShinmun UnYetgul: old Korean printing style
UnJamoSora, UnJamoNovel, UnJamoDotum, UnJamoBatang

%files
%doc %{_texmfdistdir}/doc/fonts/unfonts-extra/
%{_texmfdistdir}/fonts/truetype/public/unfonts-extra/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10873 |21cr|texlive-unicode-alphabets-66225-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unicode-alphabets

Summary:	Macros for using characters from Unicode's Private Use Area
Name:		texlive-unicode-alphabets
Version:	66225
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unicode-alphabets.agl.csv) = 2024
Provides:	tex(unicode-alphabets.cyfi.csv) = 2024
Provides:	tex(unicode-alphabets.mufi.csv) = 2024
Provides:	tex(unicode-alphabets.sil.csv) = 2024
Provides:	tex(unicode-alphabets.sty) = 2024
Provides:	tex(unicode-alphabets.titus.csv) = 2024
Provides:	tex(unicode-alphabets.ucsur.csv) = 2024
Provides:	tex(unicode-alphabets.unz.csv) = 2024
BuildArch:	noarch

%description
While Unicode supports the vast majority of use cases, there
are certain specialized niches which require characters and
glyphs not (yet) represented in the standard. Thus the Private
Use Area (PUA) at code points E000-F8FF, which enables third
parties to define arbitrary character sets. This package allows
configuring a number of macros for using various PUA character
sets in LaTeX (AGL, CYFI, MUFI, SIL, TITUS, UCSUR, UNZ), to
enable transcription and display of medieval and other
documents.

%files
%doc %{_texmfdistdir}/doc/latex/unicode-alphabets
%{_texmfdistdir}/tex/latex/unicode-alphabets

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10874 |21cr|texlive-unicode-bidi-0.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: texlive-unicode-bidi
Version: 0.01
Release: 1
Summary: Experimental unicode bidi package for XeTeX
Group: Publishing
URL: https://github.com/bidi-tex/unicode-bidi
License: LPPL1
Source0: http://mirrors.ctan.org/systems/texlive/tlnet/archive/unicode-bidi.tar.xz
Source1: http://mirrors.ctan.org/systems/texlive/tlnet/archive/unicode-bidi.doc.tar.xz
BuildArch: noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg

%description
The experimental unicode-bidi package
allows you to mix non-RTL script with RTL script without any markup.

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10875 |21cr|texlive-unicode-data-20210916-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-unicode-data
Version:	20210916
Release:	1
Summary:	Unicode data and loaders for TeX
Group:		Publishing
URL:		http://tug.org/texlive/
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unicode-data.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unicode-data.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle provides generic access to Unicode Consortium data
for TeX use. It contains a set of text files provided by the
Unicode Consortium which are currently all from Unicode 8.0.0,
with the exception of MathClass.txt which is not currently part
of the Unicode Character Database. Accompanying these source
data are generic TeX loader files allowing this data to be used
as part of TeX runs, in particular in building format files.
Currently there are two loader files: one for general character
set up and one for initialising XeTeX character classes as has
been carried out to date by unicode-letters.tex. The source
data are distributed in accordance with the license stipulated
by the Unicode Consortium. The bundle as a whole is co-
ordinated by the LaTeX3 Project as a general resource for TeX
users.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/unicode-data/*
%doc %{_texmfdistdir}/doc/generic/unicode-data/README.md

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10876 |21cr|texlive-unicodefonttable-65009-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unicodefonttable

Summary:	A Unicode font table generator
Name:		texlive-unicodefonttable
Version:	65009
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unicodefonttable.sty) = 2024
Provides:	tex(unicodefont.tex) = 2024
BuildArch:	noarch

%description
This package produces font tables for unicode fonts as well as
for 8bit fonts. The table layout can be adjusted in various
ways including restricting the range of output to show only a
portion of a specific font. To quickly produce a one-off table
there is a stand-alone version unicodefont.tex that asks you a
few questions and then generates the table --- somewhat similar
to nfssfont.tex for 8-bit fonts.

%files
%doc %{_texmfdistdir}/doc/latex/unicodefonttable
%{_texmfdistdir}/tex/latex/unicodefonttable

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10877 |21cr|texlive-unifith-60698-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unifith

Summary:	Typeset theses for University of Florence (Italy)
Name:		texlive-unifith
Version:	60698
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unifith.cls) = 2024
BuildArch:	noarch

%description
The package provides a class to typeset Ph.D., Master, and
Bachelor theses that adhere to the publishing guidelines of the
University of Florence (Italy).

%files
%doc %{_texmfdistdir}/doc/latex/unifith
%{_texmfdistdir}/bibtex/bst/unifith
%{_texmfdistdir}/tex/latex/unifith

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10878 |21cr|texlive-unigrazpub-64797-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unigrazpub

Summary:	LaTeX templates for University of Graz Library Publishing Services
Name:		texlive-unigrazpub
Version:	64797
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unigrazpub.cls) = 2024
BuildArch:	noarch

%description
This package provides a LaTeX class matching the preparation
guidelines of the Library Publishing Services of University of
Graz. The bundle also includes a comprehensive set of example
files for books and collections.

%files
%doc %{_texmfdistdir}/doc/latex/unigrazpub
%{_texmfdistdir}/tex/latex/unigrazpub

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10879 |21cr|texlive-unimath-plain-xetex-66394-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unimath-plain-xetex

Summary:	OpenType math support in (plain) XeTeX
Name:		texlive-unimath-plain-xetex
Version:	66394
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unimath-bbit.map) = 2024
Provides:	tex(unimath-bb.map) = 2024
Provides:	tex(unimath-bfit.map) = 2024
Provides:	tex(unimath-bf.map) = 2024
Provides:	tex(unimath-frakbf.map) = 2024
Provides:	tex(unimath-frak.map) = 2024
Provides:	tex(unimath-it.map) = 2024
Provides:	tex(unimath-plain-xetex.tex) = 2024
Provides:	tex(unimath-scrbf.map) = 2024
Provides:	tex(unimath-scr.map) = 2024
Provides:	tex(unimath-sfbfit.map) = 2024
Provides:	tex(unimath-sfbf.map) = 2024
Provides:	tex(unimath-sfit.map) = 2024
Provides:	tex(unimath-sf.map) = 2024
Provides:	tex(unimath-tt.map) = 2024
BuildArch:	noarch

%description
This package provides OpenType math font support in plain TeX
format. It only works with the XeTeX engine.

%files
%doc %{_texmfdistdir}/doc/xetex/unimath-plain-xetex
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/unimath-plain-xetex
%{_texmfdistdir}/tex/xetex/unimath-plain-xetex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10880 |21cr|texlive-uninormalize-57257-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uninormalize

Summary:	Unicode normalization support
Name:		texlive-uninormalize
Version:	57257
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(luacode.sty)
#Requires:	tex(luatexbase.sty)
Provides:	tex(uninormalize.sty) = 2024
BuildArch:	noarch

%description
This package provides Unicode normalization (useful for
composed characters) for LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/lualatex/uninormalize
%{_texmfdistdir}/tex/lualatex/uninormalize

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10881 |21cr|texlive-uniquecounter-53162-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uniquecounter

Summary:	Provides unlimited unique counter
Name:		texlive-uniquecounter
Version:	53162
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(uniquecounter.sty) = 2024
BuildArch:	noarch

%description
This package provides a kind of counter that provides unique
number values. Several counters can be created with different
names. The numeric values are not limited.

%files
%doc %{_texmfdistdir}/doc/latex/uniquecounter
%{_texmfdistdir}/tex/generic/uniquecounter

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10882 |21cr|texlive-unisc-63178-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unisc

Summary:	Unicode small caps with Lua/XeLaTeX
Name:		texlive-unisc
Version:	63178
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unisc.sty) = 2024
BuildArch:	noarch

%description
LaTeX produces small caps with \textsc{text} or {\scshape
text}. Neither of these commands produce small caps in Unicode.
If the output text is copied and pasted somewhere it shows the
same characters as used in the input. This package aims to
internally convert all the characters provided to the commands
mentioned above. It assumes that the file using this package is
compiled with Lua/XeLaTeX and a good Unicode font which has the
small caps characters, e.g., Charis SIL.

%files
%doc %{_texmfdistdir}/doc/latex/unisc
%{_texmfdistdir}/tex/latex/unisc

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10883 |21cr|texlive-unitconv-55060-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unitconv

Summary:	Convert a length into one with another unit
Name:		texlive-unitconv
Version:	55060
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(iftex.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(luacode.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(unitconv.sty) = 2024
BuildArch:	noarch

%description
This package defines two macros to convert a value with unit
into one with another unit. Supported are all TeX related
units, and also km and m. The output can be in scientic
notation for large values. The package only works with
LuaLaTeX!

%files
%doc %{_texmfdistdir}/doc/lualatex/unitconv
%{_texmfdistdir}/tex/lualatex/unitconv

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10884 |21cr|texlive-uni-titlepage-64306-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uni-titlepage

Summary:	Universal titlepages with configuration options and predefined styles
Name:		texlive-uni-titlepage
Version:	64306
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(title-DHBW.def) = 2024
Provides:	tex(title-JT-Aufsaetze.def) = 2024
Provides:	tex(title-JT-Geschichte.def) = 2024
Provides:	tex(title-JT-Typography.def) = 2024
Provides:	tex(title-KIT.def) = 2024
Provides:	tex(title-KOMAScript.def) = 2024
Provides:	tex(title-Markus-1.def) = 2024
Provides:	tex(title-Markus-2.def) = 2024
Provides:	tex(title-Spacer.def) = 2024
Provides:	tex(title-TU-DD.def) = 2024
Provides:	tex(title-TU-HH.def) = 2024
Provides:	tex(title-UKoLa.def) = 2024
Provides:	tex(title-WWUM.def) = 2024
Provides:	tex(uni-titlepage.sty) = 2024
BuildArch:	noarch

%description
Creation of title pages is something most authors should not
have to do. But reality is not perfect, so a lot of authors
have to do it. This package not only provides several pages for
the title instead of only one -- at least five are typical for
a thesis! --, it also provides a bunch of predefined titlepage
styles with several standard elements, and optionally
additional elements.

%files
%doc %{_texmfdistdir}/doc/latex/uni-titlepage
%{_texmfdistdir}/tex/latex/uni-titlepage

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10885 |21cr|texlive-unitn-bimrep-20171022-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-unitn-bimrep
Version:	20171022
Release:	1
Summary:	A bimonthly report class for the PhD School of Materials, Mechatronics and System Engineering
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/unitn-bimrep
License:	MIT License
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/unitn-bimrep.doc.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/unitn-bimrep.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg 
Requires(pre):	texlive-tlpkg 
Requires(post):	texlive-kpathsea

%description
This package allows to rapidly write the bimonthly report for The Ph.D. School in Materials, 
Mechatronics and System Engineering. It allows to define the research activities, the participation 
to school and congress, and the publication performed by a student.
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/* 

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex  doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10886 |21cr|texlive-universa-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/universa
# catalog-date 2019-11-02
# catalog-license gpl
# catalog-version 2.1
Name:		texlive-universa
Version:	2.1
Release:	1
Summary:	Herbert Bayer's 'universal' font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/universa
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/universa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/universa.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/universa.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An implementation of the universal font by Herbert Bayer of the
Bauhaus school. The MetaFont sources of the fonts, and their
LaTeX support, are all supplied in a LaTeX documented source
(.dtx) file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/universa/fulbc10.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbc12.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbc17.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbc8.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbc9.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbo10.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbo12.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbo17.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbo8.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbo9.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbr10.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbr12.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbr17.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbr8.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbr9.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbst10.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbst12.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbst17.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbst8.mf
%{_texmfdistdir}/fonts/source/public/universa/fulbst9.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmc10.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmc12.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmc17.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmc8.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmc9.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmo10.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmo12.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmo17.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmo8.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmo9.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmr10.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmr12.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmr17.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmr8.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmr9.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmst10.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmst12.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmst17.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmst8.mf
%{_texmfdistdir}/fonts/source/public/universa/fulmst9.mf
%{_texmfdistdir}/fonts/source/public/universa/uniacc.mf
%{_texmfdistdir}/fonts/source/public/universa/unibase.mf
%{_texmfdistdir}/fonts/source/public/universa/unidig.mf
%{_texmfdistdir}/fonts/source/public/universa/uniext.mf
%{_texmfdistdir}/fonts/source/public/universa/unilig.mf
%{_texmfdistdir}/fonts/source/public/universa/unilow.mf
%{_texmfdistdir}/fonts/source/public/universa/unipun.mf
%{_texmfdistdir}/fonts/source/public/universa/unispe.mf
%{_texmfdistdir}/fonts/source/public/universa/uniupp.mf
%{_texmfdistdir}/fonts/tfm/public/universa/fulbc10.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbc12.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbc17.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbc8.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbc9.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbo12.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbo17.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbo9.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbr10.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbr12.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbr17.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbr8.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbr9.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbst10.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbst12.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbst17.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbst8.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulbst9.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmc10.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmc12.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmc17.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmc8.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmc9.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmo10.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmo12.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmo17.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmo8.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmo9.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmst10.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmst12.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmst17.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmst8.tfm
%{_texmfdistdir}/fonts/tfm/public/universa/fulmst9.tfm
%{_texmfdistdir}/tex/latex/universa/omluni.fd
%{_texmfdistdir}/tex/latex/universa/omsuni.fd
%{_texmfdistdir}/tex/latex/universa/ot1uni.fd
%{_texmfdistdir}/tex/latex/universa/t1uni.fd
%{_texmfdistdir}/tex/latex/universa/uni.sty
%{_texmfdistdir}/tex/latex/universa/uuni.fd
%{_texmfdistdir}/doc/fonts/universa/README.md
%{_texmfdistdir}/doc/fonts/universa/copying.tex
%{_texmfdistdir}/doc/fonts/universa/universa.pdf

%{_texmfdistdir}/source/fonts/universa/universa.dtx
%{_texmfdistdir}/source/fonts/universa/universa.ins
%doc %{_texmfdistdir}/doc/fonts/universa/unidoc.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10887 |21cr|texlive-universalis-64505-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname universalis

Summary:	Universalis font, with support
Name:		texlive-universalis
Version:	64505
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(fontenc.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
#Requires:	tex(mweights.sty)
Requires:	tex(textcomp.sty)
Provides:	tex(LY1UniversalisADFStd-LF.fd) = 2024
Provides:	tex(OT1UniversalisADFStd-LF.fd) = 2024
Provides:	tex(T1UniversalisADFStd-LF.fd) = 2024
Provides:	tex(TS1UniversalisADFStd-LF.fd) = 2024
Provides:	tex-universalis = 2024
Provides:	tex(UniversalisADFStd.sty) = 2024
Provides:	tex(universalis.map) = 2024
Provides:	tex(universalis.sty) = 2024
Provides:	tex(unvsl_fe7xck.enc) = 2024
Provides:	tex(unvsl_qu6a6x.enc) = 2024
Provides:	tex(unvsl_sjpjw4.enc) = 2024
Provides:	tex(unvsl_xtabpf.enc) = 2024
BuildArch:	noarch

%description
This package provides LaTeX, pdfLaTeX, XeLaTeX and LuaLaTeX
support for the UniversalisADFStd family of fonts, designed by
Hirwin Harendal. The font is suitable as an alternative to
fonts such as Adrian Frutiger's Univers and Frutiger.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/enc/dvips/universalis/
%{_texmfdistdir}/fonts/map/dvips/universalis/
%{_texmfdistdir}/fonts/opentype/arkandis/universalis/
%{_texmfdistdir}/fonts/tfm/arkandis/universalis/
%{_texmfdistdir}/fonts/type1/arkandis/universalis/
%{_texmfdistdir}/fonts/vf/arkandis/universalis/
%{_texmfdistdir}/tex/latex/universalis/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10888 |21cr|texlive-univie-ling-1.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-univie-ling
Version:	1.14
Release:	1
Summary:	Papers, theses and research proposals in (Applied) Linguistics at Vienna University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/univie-ling
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/univie-ling.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/univie-ling.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle provides LaTeX2e classes, BibLaTeX files, and
templates suitable for student papers, PhD research proposals
(Exposes), and theses in (Applied) Linguistics at the
University of Vienna. The classes implement some standards for
these types of text, such as suitable title pages. They are
particularly suited for the field of (Applied) Linguistics and
pre-load some packages that are considered useful in this
context. The classes can also be used for General and
Historical Linguistics as well as for other fields of study at
Vienna University. In this case, however, some settings may
have to be adjusted.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10889 |21cr|texlive-uni-wtal-ger-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31541
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/uni-wtal-ger
# catalog-date 2013-08-30 07:53:51 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-uni-wtal-ger
Epoch:		1
Version:	0.2
Release:	10
Summary:	Citation style for literary studies at the University of Wuppertal
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/uni-wtal-ger
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uni-wtal-ger.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uni-wtal-ger.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a biblatex citation style based on the
author-title style of biblatex-dw. The citations are optimised
for literary studies in faculty of humanities at the Bergische
Universitat Wuppertal.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uni-wtal-ger/uni-wtal-ger.bbx
%{_texmfdistdir}/tex/latex/uni-wtal-ger/uni-wtal-ger.cbx
%doc %{_texmfdistdir}/doc/latex/uni-wtal-ger/CHANGES
%doc %{_texmfdistdir}/doc/latex/uni-wtal-ger/LIESMICH
%doc %{_texmfdistdir}/doc/latex/uni-wtal-ger/README
%doc %{_texmfdistdir}/doc/latex/uni-wtal-ger/germanistik.bib
%doc %{_texmfdistdir}/doc/latex/uni-wtal-ger/germanistik.pdf
%doc %{_texmfdistdir}/doc/latex/uni-wtal-ger/germanistik.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10890 |21cr|texlive-uni-wtal-lin-0.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31409
# category Package
# catalog-ctan /macros/latex/contrib/biblatex-contrib/uni-wtal-lin
# catalog-date 2013-08-10 17:37:59 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-uni-wtal-lin
Version:	0.2
Release:	11
Summary:	Citation style for linguistic studies at the University of Wuppertal
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biblatex-contrib/uni-wtal-lin
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uni-wtal-lin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uni-wtal-lin.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a biblatex citation style based on the
standard author-year style. The citations are optimised for
linguistic studies at the Institute of Linguistics at the
Bergische Universitat Wuppertal.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uni-wtal-lin/uni-wtal-lin.bbx
%{_texmfdistdir}/tex/latex/uni-wtal-lin/uni-wtal-lin.cbx
%doc %{_texmfdistdir}/doc/latex/uni-wtal-lin/CHANGES
%doc %{_texmfdistdir}/doc/latex/uni-wtal-lin/LIESMICH
%doc %{_texmfdistdir}/doc/latex/uni-wtal-lin/README
%doc %{_texmfdistdir}/doc/latex/uni-wtal-lin/uni-wtal-lin.bib
%doc %{_texmfdistdir}/doc/latex/uni-wtal-lin/uni-wtal-lin.pdf
%doc %{_texmfdistdir}/doc/latex/uni-wtal-lin/uni-wtal-lin.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10891 |21cr|texlive-unizgklasa-51647-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unizgklasa

Summary:	A LaTeX class for theses at the Faculty Of Graphic Arts in Zagreb
Name:		texlive-unizgklasa
Version:	51647
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(unizgklasa.cls) = 2024
BuildArch:	noarch

%description
This class is intended for generating graduate and final theses
according to the instructions of the Faculty of Graphic Arts,
University of Zagreb. It does not necessarily correspond to the
requirements of each component of the University, but is
designed as an idea for linking and uniformizing the look of
all graduate papers. Anyone who likes it is welcome to use it.

%files
%doc %{_texmfdistdir}/doc/latex/unizgklasa
%{_texmfdistdir}/tex/latex/unizgklasa

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10892 |21cr|texlive-uol-physics-report-65761-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uol-physics-report

Summary:	A LaTeX document class for writing lab reports
Name:		texlive-uol-physics-report
Version:	65761
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(uol-physics-report.cls) = 2024
BuildArch:	noarch

%description
The package provides physics students at the University of
Oldenburg with a prepared document class for writing laboratory
reports for the laboratory courses conducted by the Institute
of Physics. The document class consists of predefinded margins
and heading formats. Furthermore, it presets the headers of the
pages and excludes the titlepage and table of contents from the
page numbering.

%files
%doc %{_texmfdistdir}/doc/latex/uol-physics-report
%{_texmfdistdir}/tex/latex/uol-physics-report

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10893 |21cr|texlive-upca-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22511
# category Package
# catalog-ctan /macros/generic/upca
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-upca
Version:	20190228
Release:	1
Summary:	Print UPC-A barcodes
URL:		http://www.ctan.org/tex-archive/macros/generic/upca
Group:		Publishing
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/upca.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/upca.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a single macro \upca, to print UPC-A
barcodes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/upca/upca.tex
%doc %{_texmfdistdir}/doc/generic/upca/README
%doc %{_texmfdistdir}/doc/generic/upca/test-upca.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10894 |21cr|texlive-uplatex-66186-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uplatex

Summary:	PLaTeX2e and miscellaneous macros for upTeX
Name:		texlive-uplatex
Version:	66186
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(atbegshi.sty)
Requires:	tex(atveryend.sty)
Requires:	tex(everyshi.sty)
Requires:	texlive-kpathsea
Requires:	texlive-babel
Requires:	texlive-tlpkg
Requires:	texlive-cm
Requires:	texlive-firstaid
Requires:	texlive-hyphen-base
Requires:	texlive-hyph-utf8
#Requires:	texlive-l3backend
Requires:	texlive-l3kernel
Requires:	texlive-l3packages
Requires:	texlive-latex
Requires:	texlive-latex-base-dev
Requires:	texlive-latex-firstaid-dev
Requires:	texlive-latex-fonts
Requires:	texlive-platex
Requires:	texlive-tex-ini-files
Requires:	texlive-unicode-data
Requires:	texlive-uptex
Requires:	texlive-uptex-fonts
Provides:	tex(jt2gt.fd) = 2024
Provides:	tex(jt2mc.fd) = 2024
Provides:	tex(jy2gt.fd) = 2024
Provides:	tex(jy2mc.fd) = 2024
Provides:	tex(ujarticle.cls) = 2024
Provides:	tex(ujbk10.clo) = 2024
Provides:	tex(ujbk11.clo) = 2024
Provides:	tex(ujbk12.clo) = 2024
Provides:	tex(ujbook.cls) = 2024
Provides:	tex(ujreport.cls) = 2024
Provides:	tex(ujsize10.clo) = 2024
Provides:	tex(ujsize11.clo) = 2024
Provides:	tex(ujsize12.clo) = 2024
Provides:	tex(ukinsoku.tex) = 2024
Provides:	tex-uplatex = 2024
Provides:	tex(uptrace.sty) = 2024
Provides:	tex(utarticle.cls) = 2024
Provides:	tex(utbk10.clo) = 2024
Provides:	tex(utbk11.clo) = 2024
Provides:	tex(utbk12.clo) = 2024
Provides:	tex(utbook.cls) = 2024
Provides:	tex(utreport.cls) = 2024
Provides:	tex(utsize10.clo) = 2024
Provides:	tex(utsize11.clo) = 2024
Provides:	tex(utsize12.clo) = 2024
BuildArch:	noarch

%description
The bundle provides pLaTeX2e macros for upTeX by Takuji Tanaka.
This is a community edition syncing with platex. The bundle
depends on platex.

%files
%{_texmfdistdir}/tex/%{oname}

#------------------------------------------------------------------

%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10895 |21cr|texlive-uppunctlm-42334-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uppunctlm

Summary:	Always keep upright shape for some punctuation marks and Arabic numerals
Name:		texlive-uppunctlm
Version:	42334
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(ec-uplmri10.tfm) = 2024
Provides:	tex(ec-uplmri10.vf) = 2024
Provides:	tex(ec-uplmri12.tfm) = 2024
Provides:	tex(ec-uplmri12.vf) = 2024
Provides:	tex(ec-uplmri7.tfm) = 2024
Provides:	tex(ec-uplmri7.vf) = 2024
Provides:	tex(ec-uplmri8.tfm) = 2024
Provides:	tex(ec-uplmri8.vf) = 2024
Provides:	tex(ec-uplmri9.tfm) = 2024
Provides:	tex(ec-uplmri9.vf) = 2024
Provides:	tex(t1uplmr.fd) = 2024
Provides:	tex(uppunctlm.sty) = 2024
BuildArch:	noarch

%description
The package provides a mechanism to keep punctuation always in
upright shape even if italic was specified. It is directed to
Latin Modern fonts, and provides .tfm, .vf, .fd, and .sty
files. Here a list of punctuation characters always presented
in upright shapes: comma, period, semicolon, colon,
parentheses, square brackets, and Arabic numerals.

%files
%doc %{_texmfdistdir}/doc/fonts/uppunctlm/
%{_texmfdistdir}/fonts/tfm/public/uppunctlm/
%{_texmfdistdir}/fonts/vf/public/uppunctlm/
%{_texmfdistdir}/tex/latex/uppunctlm/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10896 |21cr|texlive-uptex-base-65802-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uptex-base

Summary:	Plain TeX format and documents for upTeX
Name:		texlive-uptex-base
Version:	65802
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(euptex.ini) = 2024
Provides:	tex(ukinsoku.tex) = 2024
Provides:	tex-uptex-base = 2024
Provides:	tex(uptex.ini) = 2024
Provides:	tex(uptex.tex) = 2024
BuildArch:	noarch

%description
The bundle contains plain TeX format and documents for
upTeX and e-upTeX.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/uptex/uptex-base/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10897 |21cr|texlive-uptex-fonts-65657-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uptex-fonts

Summary:	Fonts for use with upTeX
Name:		texlive-uptex-fonts
Version:	65657
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-uptex-fonts = 2024
BuildArch:	noarch

%description
The bundle contains fonts (TFM and VF) for use with upTeX. This
is a redistribution derived from the upTeX distribution by
Takuji Tanaka.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/cmap/uptex-fonts/
%{_texmfdistdir}/fonts/source/uptex-fonts/
%{_texmfdistdir}/fonts/tfm/uptex-fonts/
%{_texmfdistdir}/fonts/vf/uptex-fonts/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10898 |21cr|texlive-upzhkinsoku-47354-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname upzhkinsoku

Summary:	Supplementary Chinese kinsoku for Unicode *pTeX
Name:		texlive-upzhkinsoku
Version:	47354
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(upzhkinsoku.sty) = 2024
BuildArch:	noarch

%description
This package provides supplementary Chinese kinsoku (line
breaking rules etc.) settings for Unicode (e-)upTeX (when using
Unicode as its internal encoding), and ApTeX. Both LaTeX and
plain TeX are supported.

%files
%doc %{_texmfdistdir}/doc/generic/upzhkinsoku/
%{_texmfdistdir}/tex/generic/upzhkinsoku/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10899 |21cr|texlive-urcls-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-urcls
Version:	2.1
Release:	1
Summary:	Beamer and scrlttr2 classes and styles for the University of Regensburg
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/urcls
License:	The LATEX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/urcls.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/urcls.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a beamer-derived class and a theme style
file for the corporate design of the University of Regensburg.
It also contains a scrlttr2-derived class for letters using the
corporate design of the UR. Users may use the class itself
(URbeamer) or use the theme in the usual way with
\usetheme{UR}. Examples of using both letters and presentations
are provided as .tex and .pdf-files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10900 |21cr|texlive-urlbst-0.7-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /biblio/bibtex/contrib/urlbst
# catalog-date 2011-11-15 11:50:22 +0100
# catalog-license gpl
# catalog-version 0.7
Name:		texlive-urlbst
Version:	0.7
Release:	13
Summary:	Web support for BibTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/urlbst
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/urlbst.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/urlbst.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/urlbst.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-urlbst.bin = %{EVRD}

%description
Supports a new BibTeX 'webpage' entry type and 'url',
'lastchecked', and 'eprint' and 'DOI' fields. The Perl script
urlbst can be used to add this support to an arbitrary .bst
file which has a reasonably conventional structure. The result
is meant to be robust rather than pretty.

#-----------------------------------------------------------------------
%files
%{_bindir}/urlbst
%{_texmfdistdir}/bibtex/bst/urlbst/abbrvurl.bst
%{_texmfdistdir}/bibtex/bst/urlbst/alphaurl.bst
%{_texmfdistdir}/bibtex/bst/urlbst/plainurl.bst
%{_texmfdistdir}/bibtex/bst/urlbst/unsrturl.bst
%{_texmfdistdir}/scripts/urlbst/urlbst
%doc %{_texmfdistdir}/doc/bibtex/urlbst/Makefile.in
%doc %{_texmfdistdir}/doc/bibtex/urlbst/README
%doc %{_texmfdistdir}/doc/bibtex/urlbst/VERSION
%doc %{_texmfdistdir}/doc/bibtex/urlbst/urlbst.bib
%doc %{_texmfdistdir}/doc/bibtex/urlbst/urlbst.html
%doc %{_texmfdistdir}/doc/bibtex/urlbst/urlbst.html.in
%doc %{_texmfdistdir}/doc/bibtex/urlbst/urlbst.in
%doc %{_texmfdistdir}/doc/bibtex/urlbst/urlbst.pdf
%doc %{_texmfdistdir}/doc/bibtex/urlbst/urlbst.tex
%doc %{_texmfdistdir}/doc/bibtex/urlbst/urlbst.tex.in
#- source
%doc %{_texmfdistdir}/source/bibtex/urlbst/configure
%doc %{_texmfdistdir}/source/bibtex/urlbst/configure.ac

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/urlbst/urlbst urlbst
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10901 |21cr|texlive-urwchancal-1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21701
# category Package
# catalog-ctan /fonts/urwchancal
# catalog-date 2011-03-10 10:40:13 +0100
# catalog-license lppl
# catalog-version 1
Name:		texlive-urwchancal
Version:	1
Release:	8
Summary:	Use URW's clone of Zapf Chancery as a maths alphabet
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urwchancal
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/urwchancal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/urwchancal.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows (the URW clone of) Zapf Chancery to function
as a maths alphabet, the target of \mathcal or \mathscr, with
accents appearing where they should, and other spacing
parameters set to reasonable (not very tight) values.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/urw/urwchancal/urwchancal.tfm
%{_texmfdistdir}/fonts/vf/urw/urwchancal/urwchancal.vf
%{_texmfdistdir}/tex/latex/urwchancal/urwchancal.sty
%{_texmfdistdir}/tex/latex/urwchancal/uurwchancal.fd
%doc %{_texmfdistdir}/doc/fonts/urwchancal/README
%doc %{_texmfdistdir}/doc/fonts/urwchancal/urwchancal-doc.pdf
%doc %{_texmfdistdir}/doc/fonts/urwchancal/urwchancal-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10902 |21cr|texlive-usebib-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25969
# category Package
# catalog-ctan /macros/latex/contrib/usebib
# catalog-date 2012-04-13 23:54:56 +0200
# catalog-license lppl1.3
# catalog-version 1.0a
Name:		texlive-usebib
Version:	1.0a
Release:	7
Summary:	A simple bibloography processor
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/usebib
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/usebib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/usebib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/usebib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is described by its author as "a poor person's
replacement for the more powerful methods provided by biblatex
to access data from a .bib file". Its principle commands are
\bibinput (which specifies a database to use) and \usebibdata
(which typesets a single field from a specified entry in that
database.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/usebib/usebib.sty
%doc %{_texmfdistdir}/doc/latex/usebib/README
%doc %{_texmfdistdir}/doc/latex/usebib/usebib.pdf
#- source
%doc %{_texmfdistdir}/source/latex/usebib/usebib.dtx
%doc %{_texmfdistdir}/source/latex/usebib/usebib.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10903 |21cr|texlive-uspace-63123-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uspace

Summary:	Giving meaning to various Unicode space characters
Name:		texlive-uspace
Version:	63123
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(uspace.sty) = 2024
BuildArch:	noarch

%description
LaTeX package that gives meaning to various Unicode space
characters.

%files
%doc %{_texmfdistdir}/doc/latex/uspace/
%{_texmfdistdir}/tex/latex/uspace/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10904 |21cr|texlive-utexasthesis-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-utexasthesis
Version:	1.0
Release:	1
Summary:	University of Texas at Austin graduate thesis style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/utexasthesis
License:	CC0 1.0
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/utexasthesis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/utexasthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class file complies with the Digital Submission
Requirement for Masters and Ph.D. thesis submissions of the
University of Texas at Austin.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10905 |21cr|texlive-utf8add-61074-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname utf8add

Summary:	Additional support for UTF-8 encoded LaTeX input
Name:		texlive-utf8add
Version:	61074
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsmath.sty)
Requires:	tex(gensymb.sty)
Requires:	tex(inputenc.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(nicefrac.sty)
#Requires:	tex(upgreek.sty)
Provides:	tex(utf8add.sty) = 2024
Provides:	tex(utf8hax.sty) = 2024
BuildArch:	noarch

%description
This bundle contains the LaTeX packages utf8add.sty and
utf8hax.sty. The utf8add package provides additional support
for the use of UTF-8 encoded input. This is intended for making
LaTeX input more readable. The utf8hax package is using UTF-8
characters for easier access to math in LaTeX, however making
the LaTeX input less readable.

%files
%doc %{_texmfdistdir}/doc/latex/utf8add
%{_texmfdistdir}/tex/latex/utf8add

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10906 |21cr|texlive-utfsym-63076-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname utfsym

Summary:	Provides various Unicode symbols
Name:		texlive-utfsym
Version:	63076
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(utfsym.sty) = 2024
BuildArch:	noarch

%description
This package provides various symbols from the Unicode in order
to be able to use them originally in a school setting such as
on worksheets.

%files
%doc %{_texmfdistdir}/doc/latex/utfsym
%{_texmfdistdir}/tex/latex/utfsym

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10907 |21cr|texlive-uwa-colours-60443-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uwa-colours

Summary:	The colour palette of The University of Western Australia
Name:		texlive-uwa-colours
Version:	60443
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(uwa-colours.sty) = 2024
BuildArch:	noarch

%description
This package uses the xcolor package to define macros for the
colour palette of The University of Western Australia.

%files
%doc %{_texmfdistdir}/doc/latex/uwa-colours
%{_texmfdistdir}/tex/latex/uwa-colours

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10908 |21cr|texlive-uwa-letterhead-64491-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uwa-letterhead

Summary:	The letterhead of the University of Western Australia
Name:		texlive-uwa-letterhead
Version:	64491
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(uwa-letterhead.sty) = 2024
BuildArch:	noarch

%description
This package generates the letterhead of the University of
Western Australia. It requires the UWA logo in PDF format,
which is available in SVG format at
https://static-listing.weboffice.uwa.edu.au/visualid/core-rebra
nd/img/uwacrest/, and uses the Arial and UWA Slab fonts by
default. The package works with XeLaTeX and LuaLaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/uwa-letterhead
%{_texmfdistdir}/tex/latex/uwa-letterhead

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10909 |21cr|texlive-uwa-pcf-64491-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uwa-pcf

Summary:	A Participant Consent Form (PCF) for a human research protocol at the University of Western Australia
Name:		texlive-uwa-pcf
Version:	64491
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(uwa-pcf.cls) = 2024
BuildArch:	noarch

%description
This LaTeX class generates a Participant Consent Form (PCF) for
a human research protocol at the University of Western
Australia. It requires the UWA logo in PDF format, which is
available in SVG format at
https://static-listing.weboffice.uwa.edu.au/visualid/core-rebra
nd/img/uwacrest/, and uses the Arial and UWA Slab fonts by
default. The class works with XeLaTeX and LuaLaTeX. It depends
on the uwa-letterhead package.

%files
%doc %{_texmfdistdir}/doc/latex/uwa-pcf
%{_texmfdistdir}/tex/latex/uwa-pcf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10910 |21cr|texlive-uwa-pif-64491-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uwa-pif

Summary:	A Participant Information Form (PIF) for a human research protocol at the University of Western Australia
Name:		texlive-uwa-pif
Version:	64491
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(uwa-pif.cls) = 2024
BuildArch:	noarch

%description
This package generates a Participant Information Form (PIF) for
a human research protocol at the University of Western
Australia. It requires the UWA logo in PDF format, which is
available in SVG format at
https://static-listing.weboffice.uwa.edu.au/visualid/core-rebra
nd/img/uwacrest/, and uses the Calibri fonts by default. The
class works with XeLaTeX and LuaLaTeX. It depends on the
uwa-letterhead package.

%files
%doc %{_texmfdistdir}/doc/latex/uwa-pif
%{_texmfdistdir}/tex/latex/uwa-pif

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10911 |21cr|texlive-vak-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23431
# category Package
# catalog-ctan /biblio/bibtex/contrib/vak
# catalog-date 2011-07-04 16:33:07 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-vak
Version:	20190228
Release:	1
Summary:	BibTeX style for Russian Theses, books, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/vak
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vak.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vak.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The file can be used to format the bibliographies of PhD
theses, books etc., according to the latest Russian standards:
GOST 7.82 - 2001 and GOST 7.1 - 2003. It introduces the minimum
number of new entries and styles to cover all frequently used
situations. The style file provides an easy way to perform a
semiautomatic, or a completely manual sort of the list of the
references. Processing bibliographies produced by the style
requires a 8-bit BibTeX system.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/vak/vak.bst
%doc %{_texmfdistdir}/doc/bibtex/vak/README
%doc %{_texmfdistdir}/doc/bibtex/vak/test-key.zip
%doc %{_texmfdistdir}/doc/bibtex/vak/test.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10912 |21cr|texlive-variablelm-60014-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname variablelm

Summary:	Font definitions for the variable Latin Modern fonts
Name:		texlive-variablelm
Version:	60014
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(omlvlmm.fd) = 2024
Provides:	tex(omlvlmr.fd) = 2024
Provides:	tex(omsvlmr.fd) = 2024
Provides:	tex(omsvlmsy.fd) = 2024
Provides:	tex(omxvlmex.fd) = 2024
Provides:	tex(ot1vlmr.fd) = 2024
Provides:	tex(ot1vlmtt.fd) = 2024
Provides:	tex(t1vlmr.fd) = 2024
Provides:	tex(t1vlmss.fd) = 2024
Provides:	tex(t1vlmssq.fd) = 2024
Provides:	tex(t1vlmtt.fd) = 2024
Provides:	tex(t1vlmvtt.fd) = 2024
Provides:	tex(ts1vlmr.fd) = 2024
Provides:	tex(variablelm.sty) = 2024
BuildArch:	noarch

%description
This package provides a mechanism for scaling the typeface. It
is directed to Latin Modern fonts and provides the font
definitions and the corresponding style file. This mechanism is
useful in mixed text compositions, for example Japanese-Latin.

%files
%doc %{_texmfdistdir}/doc/fonts/variablelm/
%{_texmfdistdir}/tex/latex/variablelm/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10913 |21cr|texlive-varisize-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/plain/contrib/varisize
# catalog-date 2008-11-21 01:34:08 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-varisize
Version:	20190228
Release:	1
Summary:	Change font size in Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/varisize
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varisize.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varisize.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A series of files, each of which defines a size-change macro.
Note that 10point.tex is by convention called by one of the
other files, so that there's always a "way back".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/varisize/10point.tex
%{_texmfdistdir}/tex/plain/varisize/10pointss.tex
%{_texmfdistdir}/tex/plain/varisize/11point.tex
%{_texmfdistdir}/tex/plain/varisize/12point.tex
%{_texmfdistdir}/tex/plain/varisize/14point.tex
%{_texmfdistdir}/tex/plain/varisize/17point.tex
%{_texmfdistdir}/tex/plain/varisize/20point.tex
%{_texmfdistdir}/tex/plain/varisize/7point.tex
%{_texmfdistdir}/tex/plain/varisize/8point.tex
%{_texmfdistdir}/tex/plain/varisize/9point.tex
%doc %{_texmfdistdir}/doc/plain/varisize/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10914 |21cr|texlive-vcell-59039-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname vcell

Summary:	Vertical alignment of content inside table cells
Name:		texlive-vcell
Version:	59039
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(vcell.sty) = 2024
BuildArch:	noarch

%description
This package offers low-level macros to build rows with
vertically-aligned cells (top, middle or bottom) and calculate
the height of a row. These cells can have variable or fixed
height and can be paragraph-cells or inline-cells. Different
vertical alignments can be used in the same row.

%files
%doc %{_texmfdistdir}/doc/latex/vcell
%{_texmfdistdir}/tex/latex/vcell

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10915 |21cr|texlive-venn-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/venn/venn.mp
# catalog-date 2007-12-04 22:25:23 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-venn
Version:	20190228
Release:	1
Summary:	Creating Venn diagrams with MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/venn/venn.mp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/venn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/venn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MetaPost macros for venn diagrams.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/venn/venn.mp
%doc %{_texmfdistdir}/doc/metapost/venn/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10916 |21cr|texlive-venturisadf-1.005-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19444
# category Package
# catalog-ctan /fonts/venturisadf
# catalog-date 2010-07-12 22:26:03 +0200
# catalog-license other-free
# catalog-version 1.005
Name:		texlive-venturisadf
Version:	1.005
Release:	8
Summary:	Venturis ADF fonts collection
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/venturisadf
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/venturisadf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/venturisadf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/venturisadf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

Requires(post):	texlive-tetex

%description
Serif and sans serif complete text font families, in both Adobe
Type 1 and OpenType formats for publication. The family is
based on Utopia family, and has been modified and developed by
the Arkandis Digital foundry. Support for using the fonts, in
LaTeX, is also provided (and makes use of the nfssext-cfr
package).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtb8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtb8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtbc8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtbc8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtbci8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtbci8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtbd8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtbi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtbi8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvth8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvthi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtr8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtr8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtrc8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtrc8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtrci8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtrci8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtrdl8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtri8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis/yvtri8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2b8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2b8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2bi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2bi8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2m8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2mi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2r8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2r8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2ri8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2ri8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2x8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturis2/yv2xi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturisold/yvob8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturisold/yvobi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturisold/yvodd8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturisold/yvor8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturisold/yvori8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1b8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1b8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1b8ax.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1bd8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1bi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1bi8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1bi8ax.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1d8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1dd8au.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1di8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1h8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1ho8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1l8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1li8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1r8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1r8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1r8ax.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1ri8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1ri8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans/yv1ri8ax.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3b8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3b8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3b8ax.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3bi8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3bi8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3bi8ax.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3r8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3r8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3r8ax.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3ri8a.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3ri8ac.afm
%{_texmfdistdir}/fonts/afm/arkandis/venturissans2/yv3ri8ax.afm
%{_texmfdistdir}/fonts/enc/dvips/venturisadf/t1-dotalt-f_f-venturisadf.enc
%{_texmfdistdir}/fonts/enc/dvips/venturisadf/t1-f_f-venturisadf.enc
%{_texmfdistdir}/fonts/enc/dvips/venturisadf/t1-venturis.enc
%{_texmfdistdir}/fonts/enc/dvips/venturisadf/t1-venturisold-longs.enc
%{_texmfdistdir}/fonts/enc/dvips/venturisadf/ts1-euro-venturisadf.enc
%{_texmfdistdir}/fonts/map/dvips/venturis/yvt.map
%{_texmfdistdir}/fonts/map/dvips/venturis2/yv2.map
%{_texmfdistdir}/fonts/map/dvips/venturisold/yvo.map
%{_texmfdistdir}/fonts/map/dvips/venturissans/yv1.map
%{_texmfdistdir}/fonts/map/dvips/venturissans2/yv3.map
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtb-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtb.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtbc-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtbc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtbci-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtbci.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtbd-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtbi-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtbi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvth.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvthi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtr-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtr.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtrc-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtrc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtrci-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtrci.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtrdl.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtri-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1-yvtri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1alt-yvtbc-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1alt-yvtbc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1alt-yvtbci-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1alt-yvtbci.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1alt-yvtrc-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1alt-yvtrc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1alt-yvtrci-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/t1alt-yvtrci.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtb-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtb.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtbc-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtbc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtbci-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtbci.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtbd-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtbi-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtbi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvth.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvthi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtr-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtr.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtrc-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtrc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtrci-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtrci.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtrdl.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtri-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/ts1-yvtri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/vent-yvtr.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtb8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtb8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtb8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtb8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbc8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbc8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbc8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbc8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbci8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbci8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbci8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbci8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcij8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcij8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcijw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcijw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbciw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbciw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcj8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcjw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbcw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbd8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbd8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbi8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbi8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbij8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbij8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbijw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbijw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbiw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbiw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbj8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbjw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtbw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvth8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvth8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvthi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvthi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtr8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtr8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtr8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtr8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrajw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtraw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrc8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrc8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrc8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrc8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrci8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrci8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrci8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrci8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcij8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcij8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcijw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcijw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrciw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrciw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcj8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcjw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrcw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrdl8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrdl8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtri8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtri8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtri8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtri8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrij8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrij8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrijw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrijw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtriw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtriw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrj8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrj8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrjw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrjw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrw8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis/yvtrw8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2b-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2b.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2bi-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2bi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2m.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2mi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2r-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2ri-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2ri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/t1-yv2xi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2b-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2b.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2bi-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2bi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2m.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2mi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2r-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2ri-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2ri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/ts1-yv2xi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2b8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2b8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2b8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2b8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2bi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2bi8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2bi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2bi8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2m8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2m8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2mi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2mi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2r8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2r8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2r8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2r8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2ri8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2ri8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2ri8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2ri8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2x8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2x8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2xi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturis2/yv2xi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/t1-yvob.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/t1-yvobi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/t1-yvodd.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/t1-yvor.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/t1-yvori.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/ts1-yvob.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/ts1-yvobi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/ts1-yvodd.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/ts1-yvor.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/ts1-yvori.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvoab8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvoabi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvoar8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvoari8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvob8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvob8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvobi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvobi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvodd8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvodd8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvor8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvor8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvori8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturisold/yvori8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1b-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1b-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1b.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1bd.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1bi-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1bi-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1bi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1d.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1dd-u.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1di.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1h.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1ho.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1l.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1li.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1r-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1r-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1ri-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1ri-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/t1-yv1ri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1b-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1b-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1b.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1bd.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1bi-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1bi-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1bi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1d.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1dd-u.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1di.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1h.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1ho.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1l.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1li.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1r-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1r-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1ri-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1ri-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/ts1-yv1ri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1b8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1b8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1b8cx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1b8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1b8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1b8tx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1bd8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1bd8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1bi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1bi8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1bi8cx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1bi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1bi8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1bi8tx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1d8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1d8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1dd8cu.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1dd8tu.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1di8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1di8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1h8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1h8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1ho8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1ho8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1l8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1l8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1li8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1li8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1r8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1r8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1r8cx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1r8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1r8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1r8tx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1ri8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1ri8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1ri8cx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1ri8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1ri8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans/yv1ri8tx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3b-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3b-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3b.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3bi-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3bi-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3bi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3r-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3r-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3ri-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3ri-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/t1-yv3ri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3b-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3b-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3b.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3bi-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3bi-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3bi.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3r-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3r-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3r.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3ri-c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3ri-x.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/ts1-yv3ri.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3b8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3b8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3b8cx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3b8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3b8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3b8tx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3bi8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3bi8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3bi8cx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3bi8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3bi8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3bi8tx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3r8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3r8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3r8cx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3r8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3r8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3r8tx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3ri8c.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3ri8cc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3ri8cx.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3ri8t.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3ri8tc.tfm
%{_texmfdistdir}/fonts/tfm/arkandis/venturissans2/yv3ri8tx.tfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtb8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtb8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtb8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtb8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbc8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbc8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbc8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbc8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbci8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbci8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbci8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbci8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbd8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbd8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbi8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtbi8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvth8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvth8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvthi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvthi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtr8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtr8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtr8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtr8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrc8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrc8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrc8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrc8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrci8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrci8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrci8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrci8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrdl8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtrdl8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtri8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtri8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtri8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis/yvtri8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2b8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2b8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2b8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2b8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2bi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2bi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2bi8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2bi8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2m8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2m8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2mi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2mi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2r8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2r8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2r8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2r8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2ri8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2ri8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2ri8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2ri8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2x8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2x8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2xi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturis2/yv2xi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvob8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvob8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvobi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvobi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvodd8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvodd8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvor8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvor8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvori8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturisold/yvori8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1b8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1b8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1b8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1b8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1b8ax.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1b8ax.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1bd8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1bd8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1bi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1bi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1bi8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1bi8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1bi8ax.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1bi8ax.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1d8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1d8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1dd8au.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1dd8au.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1di8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1di8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1h8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1h8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1ho8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1ho8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1l8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1l8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1li8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1li8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1r8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1r8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1r8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1r8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1r8ax.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1r8ax.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1ri8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1ri8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1ri8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1ri8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1ri8ax.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans/yv1ri8ax.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3b8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3b8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3b8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3b8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3b8ax.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3b8ax.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3bi8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3bi8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3bi8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3bi8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3bi8ax.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3bi8ax.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3r8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3r8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3r8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3r8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3r8ax.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3r8ax.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3ri8a.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3ri8a.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3ri8ac.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3ri8ac.pfm
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3ri8ax.pfb
%{_texmfdistdir}/fonts/type1/arkandis/venturissans2/yv3ri8ax.pfm
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtb8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtb8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtb8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtb8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbc8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbc8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbc8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbc8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbci8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbci8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbci8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbci8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcij8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcij8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcijw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcijw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbciw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbciw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcj8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcjw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbcw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbd8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbd8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbi8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbi8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbij8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbij8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbijw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbijw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbiw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbiw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbj8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbjw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtbw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvth8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvth8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvthi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvthi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtr8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtr8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtr8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtr8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrajw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtraw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrc8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrc8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrc8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrc8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrci8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrci8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrci8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrci8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcij8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcij8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcijw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcijw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrciw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrciw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcj8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcjw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrcw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrdl8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrdl8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtri8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtri8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtri8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtri8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrij8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrij8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrijw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrijw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtriw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtriw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrj8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrj8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrjw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrjw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrw8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis/yvtrw8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2b8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2b8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2b8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2b8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2bi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2bi8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2bi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2bi8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2m8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2m8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2mi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2mi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2r8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2r8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2r8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2r8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2ri8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2ri8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2ri8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2ri8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2x8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2x8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2xi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturis2/yv2xi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvoab8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvoabi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvoar8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvoari8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvob8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvob8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvobi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvobi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvodd8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvodd8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvor8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvor8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvori8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturisold/yvori8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1b8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1b8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1b8cx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1b8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1b8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1b8tx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1bd8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1bd8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1bi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1bi8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1bi8cx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1bi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1bi8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1bi8tx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1d8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1d8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1dd8cu.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1dd8tu.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1di8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1di8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1h8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1h8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1ho8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1ho8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1l8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1l8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1li8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1li8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1r8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1r8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1r8cx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1r8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1r8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1r8tx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1ri8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1ri8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1ri8cx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1ri8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1ri8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans/yv1ri8tx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3b8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3b8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3b8cx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3b8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3b8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3b8tx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3bi8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3bi8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3bi8cx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3bi8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3bi8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3bi8tx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3r8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3r8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3r8cx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3r8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3r8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3r8tx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3ri8c.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3ri8cc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3ri8cx.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3ri8t.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3ri8tc.vf
%{_texmfdistdir}/fonts/vf/arkandis/venturissans2/yv3ri8tx.vf
%{_texmfdistdir}/tex/latex/venturis/t1yvt.fd
%{_texmfdistdir}/tex/latex/venturis/t1yvtajw.fd
%{_texmfdistdir}/tex/latex/venturis/t1yvtaw.fd
%{_texmfdistdir}/tex/latex/venturis/t1yvtd.fd
%{_texmfdistdir}/tex/latex/venturis/t1yvtj.fd
%{_texmfdistdir}/tex/latex/venturis/t1yvtjw.fd
%{_texmfdistdir}/tex/latex/venturis/t1yvtw.fd
%{_texmfdistdir}/tex/latex/venturis/ts1yvt.fd
%{_texmfdistdir}/tex/latex/venturis/ts1yvtajw.fd
%{_texmfdistdir}/tex/latex/venturis/ts1yvtaw.fd
%{_texmfdistdir}/tex/latex/venturis/ts1yvtd.fd
%{_texmfdistdir}/tex/latex/venturis/ts1yvtj.fd
%{_texmfdistdir}/tex/latex/venturis/ts1yvtjw.fd
%{_texmfdistdir}/tex/latex/venturis/ts1yvtw.fd
%{_texmfdistdir}/tex/latex/venturis2/t1yv2.fd
%{_texmfdistdir}/tex/latex/venturis2/ts1yv2.fd
%{_texmfdistdir}/tex/latex/venturisadf/venturis.sty
%{_texmfdistdir}/tex/latex/venturisadf/venturis2.sty
%{_texmfdistdir}/tex/latex/venturisadf/venturisold.sty
%{_texmfdistdir}/tex/latex/venturisold/t1yvo.fd
%{_texmfdistdir}/tex/latex/venturisold/t1yvoa.fd
%{_texmfdistdir}/tex/latex/venturisold/t1yvoad.fd
%{_texmfdistdir}/tex/latex/venturisold/t1yvod.fd
%{_texmfdistdir}/tex/latex/venturisold/ts1yvo.fd
%{_texmfdistdir}/tex/latex/venturisold/ts1yvoa.fd
%{_texmfdistdir}/tex/latex/venturisold/ts1yvoad.fd
%{_texmfdistdir}/tex/latex/venturisold/ts1yvod.fd
%{_texmfdistdir}/tex/latex/venturissans/t1yv1.fd
%{_texmfdistdir}/tex/latex/venturissans/t1yv1d.fd
%{_texmfdistdir}/tex/latex/venturissans/ts1yv1.fd
%{_texmfdistdir}/tex/latex/venturissans/ts1yv1d.fd
%{_texmfdistdir}/tex/latex/venturissans2/t1yv3.fd
%{_texmfdistdir}/tex/latex/venturissans2/ts1yv3.fd
%_texmf_updmap_d/venturisadf
%doc %{_texmfdistdir}/doc/fonts/venturisadf/LICENSE-utopia.txt
%doc %{_texmfdistdir}/doc/fonts/venturisadf/LIST-Venturis.txt
%doc %{_texmfdistdir}/doc/fonts/venturisadf/README
%doc %{_texmfdistdir}/doc/fonts/venturisadf/manifest.txt
%doc %{_texmfdistdir}/doc/fonts/venturisadf/venturisadf.pdf
%doc %{_texmfdistdir}/doc/fonts/venturisadf/venturisadf.tex
#- source
%doc %{_texmfdistdir}/source/fonts/venturisadf/lining.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/oldstyle.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/rename.venturis
%doc %{_texmfdistdir}/source/fonts/venturisadf/rename.venturis2
%doc %{_texmfdistdir}/source/fonts/venturisadf/rename.venturisold
%doc %{_texmfdistdir}/source/fonts/venturisadf/rename.venturissans
%doc %{_texmfdistdir}/source/fonts/venturisadf/rename.venturissans2
%doc %{_texmfdistdir}/source/fonts/venturisadf/rename.venturistitling
%doc %{_texmfdistdir}/source/fonts/venturisadf/resetalt.mtx
%doc %{_texmfdistdir}/source/fonts/venturisadf/t1-dotalt-f_f.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/t1-f_f.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/t1-venturis.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/t1-venturisold-longs.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/t1-venturisold.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/t1j-f_f.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/t1j-venturis.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/ts1-euro.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/ucdotalt.etx
%doc %{_texmfdistdir}/source/fonts/venturisadf/yv1-drv.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yv1-map.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yv2-drv.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yv2-map.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yv3-drv.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yv3-map.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yvo-drv.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yvo-map.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yvt-drv.tex
%doc %{_texmfdistdir}/source/fonts/venturisadf/yvt-map.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/venturisadf <<EOF
Map yv1.map
Map yv2.map
Map yv3.map
Map yvo.map
Map yvt.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10917 |21cr|texlive-verifica-56625-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname verifica

Summary:	Typeset (Italian high school) exercises
Name:		texlive-verifica
Version:	56625
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(verifica.cls) = 2024
BuildArch:	noarch

%description
This class provides various environments and commands to
produce the typical exercises contained in a test. It is mainly
intended for Italian high school teachers, as the style is
probably more in line with Italian high school tests.

%files
%doc %{_texmfdistdir}/doc/latex/verifica
%{_texmfdistdir}/tex/latex/verifica

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10918 |21cr|texlive-verifiche-64425-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname verifiche

Summary:	A LaTeX package to typeset (Italian) high school tests
Name:		texlive-verifiche
Version:	64425
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsmath.sty)
#Requires:	tex(amssymb.sty)
#Requires:	tex(booktabs.sty)
#Requires:	tex(enumitem.sty)
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(pgffor.sty)
#Requires:	tex(siunitx.sty)
#Requires:	tex(tikz.sty)
#Requires:	tex(ulem.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xparse.sty)
#Requires:	tex(xstring.sty)
Provides:	tex(verifiche.sty) = 2024
BuildArch:	noarch

%description
The purpose of this package is to manage the exercises for a
test, their points, levels of difficulty, and solutions. Some
typical formats of exercises are already implemented: Plain
exercise "Complete the Text" "True or false" Closed questions
Open questions "Find the error"

%files
%doc %{_texmfdistdir}/doc/latex/verifiche
%{_texmfdistdir}/tex/latex/verifiche

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10919 |21cr|texlive-versonotes-55777-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname versonotes

Summary:	Display brief notes on verso pages
Name:		texlive-versonotes
Version:	55777
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-versonotes = 2024
Provides:	tex(versonotes.sty) = 2024
BuildArch:	noarch

%description
This package allows you to place notes on the verso pages of an
otherwise single-sided document. If, in the run of text, you
include a call to the macro \versonote{This is a remark}, then
that text will be placed on the opposite (ie, 'verso') page,
lined up with the macro call.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/versonotes/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10920 |21cr|texlive-visualfaq-fr-61420-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname visualfaq-fr

Summary:	FAQ LaTeX visuelle francophone
Name:		texlive-visualfaq-fr
Version:	61420
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
(French version below.) The Visual LaTeX FAQ is an innovative
new search interface on LaTeX Frequently Asked Questions. This
version is a French translation, offering links to the
French-speaking LaTeX FAQ. Vous avez du mal a trouver la
reponse a une question sur LaTeX ou meme a trouver les mots
pour exprimer votre question? La FAQ LaTeX visuelle est une
interface de recherche innovante qui presente plus d'une
centaine d'exemples de mises en forme de documents frequemment
demandees. Il suffit de cliquer sur l'hyperlien qui correspond
a ce que vous souhaitez faire - ou ne pas faire - et la FAQ
LaTeX visuelle enverra votre navigateur web a la page
correspondante de la FAQ LaTeX francophone.

%files
%doc %{_texmfdistdir}/doc/latex/visualfaq-fr

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10921 |21cr|texlive-vtable-51126-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname vtable

Summary:	Vertical alignement of table cells
Name:		texlive-vtable
Version:	51126
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(vtable.sty) = 2024
BuildArch:	noarch

%description
The package allows vertical alignement of table cell by
providing: Z, L, C, R, J and I column types \nextRow and \lb
commands \setMultiColRow, \setMultiColumn, \setMultiRow and
\tableFormatedCell commands for tabular and similar
environment.

%files
%doc %{_texmfdistdir}/doc/latex/vtable
%{_texmfdistdir}/tex/latex/vtable

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10922 |21cr|texlive-wallcalendar-45568-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wallcalendar

Summary:	A wall calendar class with custom layouts
Name:		texlive-wallcalendar
Version:	45568
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(wallcalendar.cls) = 2024
Provides:	tex(wallcalendar-czech.tex) = 2024
Provides:	tex(wallcalendar-dutch.tex) = 2024
Provides:	tex(wallcalendar-english.tex) = 2024
Provides:	tex(wallcalendar-french.tex) = 2024
Provides:	tex(wallcalendar-german.tex) = 2024
Provides:	tex(wallcalendar-hungarian.tex) = 2024
Provides:	tex(wallcalendar-italian.tex) = 2024
Provides:	tex(wallcalendar-japanese.tex) = 2024
Provides:	tex(wallcalendar-norwegian.tex) = 2024
Provides:	tex(wallcalendar-portuguese.tex) = 2024
Provides:	tex(wallcalendar-romanian.tex) = 2024
Provides:	tex(wallcalendar-serbian.tex) = 2024
Provides:	tex(wallcalendar-slovakian.tex) = 2024
Provides:	tex(wallcalendar-slovenian.tex) = 2024
Provides:	tex(wallcalendar-spanish.tex) = 2024
Provides:	tex(wallcalendar-swedish.tex) = 2024
Provides:	tex(wallcalendar-thai.tex) = 2024
BuildArch:	noarch

%description
This package provides a wall calendar class with custom layouts
and support for internationalization. It comes with the
following layouts: Full page photo, the calendar days overlaid
with opacity Full page photo, the photo above the calendar days
Small landscape photo, with a calendar grid Year planner
Thumbnails and captions Varnish mask There is also support for
loading event marks from a CSV file.

%files
%doc %{_texmfdistdir}/doc/lualatex/wallcalendar/
%{_texmfdistdir}/tex/lualatex/wallcalendar/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10923 |21cr|texlive-wargame-64797-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wargame

Summary:	A LaTeX package to prepare hex'n'counter wargames
Name:		texlive-wargame
Version:	64797
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibrarywargame.chit.code.tex) = 2024
Provides:	tex(tikzlibrarywargame.hex.code.tex) = 2024
Provides:	tex(tikzlibrarywargame.natoapp6c.code.tex) = 2024
Provides:	tex(tikzlibrarywargame.util.code.tex) = 2024
Provides:	tex(wargame.sty) = 2024
Provides:	tex(wgexport.cls) = 2024
BuildArch:	noarch

%description
This package can help make classic Hex'n'Counter wargames using
LaTeX. The package provide tools for generating Hex maps and
boards Counters for units, markers, and so on Counter sheets
Order of Battle charts Illustrations in the rules using the
defined maps and counters The result will often be a PDF (or
set of PDFs) that contain everything one will need for a game
(rules, charts, boards, counter sheets). The package uses NATO
App6 symbology for units. The package uses NATO App6 symbology
for units. The package uses TikZ for most things. The package
support exporting the game to a VASSAL module See also the
README.md file for more, and of course the documentation
(including the tutorial in tutorial/game.pdf).

%files
%doc %{_texmfdistdir}/doc/latex/wargame
%{_texmfdistdir}/tex/latex/wargame

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10924 |21cr|texlive-wasy-type1-53534-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wasy-type1

Summary:	Type 1 versions of wasy fonts
Name:		texlive-wasy-type1
Version:	53534
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-wasy
Provides:	tex(wasy.map) = 2024
BuildArch:	noarch

%description
Converted (Adobe Type 1) outlines of the wasy fonts.

%files
%doc %{_texmfdistdir}/doc/fonts/wasy-type1
%{_texmfdistdir}/fonts/afm/public/wasy-type1
%{_texmfdistdir}/fonts/map/dvips/wasy-type1
%{_texmfdistdir}/fonts/type1/public/wasy-type1

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10925 |21cr|texlive-wheelchart-64373-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wheelchart

Summary:	Draw wheelcharts with TikZ
Name:		texlive-wheelchart
Version:	64373
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(wheelchart.sty) = 2024
BuildArch:	noarch

%description
This package is based on the package TikZ and can be used to
draw wheelcharts with TikZ. It provides several options to
customize the wheelcharts.

%files
%doc %{_texmfdistdir}/doc/latex/wheelchart
%{_texmfdistdir}/tex/latex/wheelchart

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10926 |21cr|texlive-widows-and-orphans-66532-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname widows-and-orphans

Summary:	Identify (typographic) widows and orphans
Name:		texlive-widows-and-orphans
Version:	66532
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(widows-and-orphans.sty) = 2024
BuildArch:	noarch

%description
This package identifies all widows and orphans in a document to
help a user to get rid of them. The act of resolving still
needs to be done manually: By rewriting text, running some
paragraph long or short or or explicitly breaking in some
strategic place. It will also identify and warn about words
broken across columns or pages and display formulas separated
from their introductory paragraph.

%files
%doc %{_texmfdistdir}/doc/latex/widows-and-orphans
%{_texmfdistdir}/tex/latex/widows-and-orphans

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10927 |21cr|texlive-willowtreebook-60638-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname willowtreebook

Summary:	Easy basic book class, built on memoir
Name:		texlive-willowtreebook
Version:	60638
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(willowtreebook.cls) = 2024
BuildArch:	noarch

%description
The willowtreebook class is a simple book class, which the
author uses for his lecture notes to be found on his web page
Benjamin McKay. It actually just selects options for the more
sophisticated memoir class.

%files
%doc %{_texmfdistdir}/doc/latex/willowtreebook
%{_texmfdistdir}/tex/latex/willowtreebook

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10928 |21cr|texlive-windycity-61223-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname windycity

Summary:	A Chicago style for BibLaTeX
Name:		texlive-windycity
Version:	61223
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(american-windycity.lbx) = 2024
Provides:	tex(windycity.bbx) = 2024
Provides:	tex(windycity.cbx) = 2024
Provides:	tex(windycity.dbx) = 2024
Provides:	tex(windycity.sty) = 2024
BuildArch:	noarch

%description
Windy City is a style for BibLaTeX that formats notes,
bibliographies, parenthetical citations, and reference lists
according to the 17th edition of The Chicago Manual of Style.

%files
%doc %{_texmfdistdir}/doc/latex/windycity
%{_texmfdistdir}/tex/latex/windycity

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10929 |21cr|texlive-witharrows-20220420-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-witharrows
Version:	20220420
Release:	1
Summary:	"Aligned" math environments with arrows for comments
Group:		Publishing
URL:		https://ctan.org/pkg/witharrows
License:	LPPL1.3
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/witharrows.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/witharrows.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides an environment WithArrows which is
similar to the environment aligned of amsmath (and mathtools),
but gives the possibility to draw arrows on the right side of
the alignment. These arrows are usually used to give
explanations concerning the mathematical calculus presented.
The package requires the following other LaTeX packages: expl3,
footnote, l3keys2e, tikz, and xparse.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10930 |21cr|texlive-worksheet-48423-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname worksheet

Summary:	Easy creation of worksheets
Name:		texlive-worksheet
Version:	48423
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(worksheet.sty) = 2024
BuildArch:	noarch

%description
This package provides macros and an environment for easy
worksheet creation: Use the exercise environment for formating
exercises in a simple, efficient design; typeset customized and
automatically numbered worksheet titles in the same way as
standard LaTeX titles (using \maketitle); provide course and
author information with a scrlayer-scrpage based automated
header; conforming to different babel languages. (Currently
English, French, and German are supported.)

%files
%doc %{_texmfdistdir}/doc/latex/worksheet
%{_texmfdistdir}/tex/latex/worksheet

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10931 |21cr|texlive-worldflags-59171-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname worldflags

Summary:	Drawing flags with TikZ
Name:		texlive-worldflags
Version:	59171
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(etex.sty)
Requires:	tex(ifthen.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
Provides:	tex(worldflag_0.tex) = 2024
Provides:	tex(worldflag_1.tex) = 2024
Provides:	tex(worldflag_2.tex) = 2024
Provides:	tex(worldflag_3.tex) = 2024
Provides:	tex(worldflag_4.tex) = 2024
Provides:	tex(worldflag_5.tex) = 2024
Provides:	tex(worldflag_6.tex) = 2024
Provides:	tex(worldflag_7.tex) = 2024
Provides:	tex(worldflag_8.tex) = 2024
Provides:	tex(worldflag_9.tex) = 2024
Provides:	tex(worldflag_Abkhazia.tex) = 2024
Provides:	tex(worldflag_AD.tex) = 2024
Provides:	tex(worldflag_AE.tex) = 2024
Provides:	tex(worldflag_AF.tex) = 2024
Provides:	tex(worldflag_AG.tex) = 2024
Provides:	tex(worldflag_AL.tex) = 2024
Provides:	tex(worldflag_AM.tex) = 2024
Provides:	tex(worldflag_AO.tex) = 2024
Provides:	tex(worldflag_AQ.tex) = 2024
Provides:	tex(worldflag_AR.tex) = 2024
Provides:	tex(worldflag_Artsakh.tex) = 2024
Provides:	tex(worldflag_AT-B.tex) = 2024
Provides:	tex(worldflag_A.tex) = 2024
Provides:	tex(worldflag_AT-K.tex) = 2024
Provides:	tex(worldflag_AT-N.tex) = 2024
Provides:	tex(worldflag_AT-O.tex) = 2024
Provides:	tex(worldflag_AT-S.tex) = 2024
Provides:	tex(worldflag_AT-St.tex) = 2024
Provides:	tex(worldflag_AT.tex) = 2024
Provides:	tex(worldflag_AT-T.tex) = 2024
Provides:	tex(worldflag_AT-V.tex) = 2024
Provides:	tex(worldflag_AT-W.tex) = 2024
Provides:	tex(worldflag_AU.tex) = 2024
Provides:	tex(worldflag_AX.tex) = 2024
Provides:	tex(worldflag_AZ.tex) = 2024
Provides:	tex(worldflag_BA.tex) = 2024
Provides:	tex(worldflag_BB.tex) = 2024
Provides:	tex(worldflag_BD.tex) = 2024
Provides:	tex(worldflag_BE.tex) = 2024
Provides:	tex(worldflag_BF.tex) = 2024
Provides:	tex(worldflag_BG.tex) = 2024
Provides:	tex(worldflag_BH.tex) = 2024
Provides:	tex(worldflag_BI.tex) = 2024
Provides:	tex(worldflag_BJ.tex) = 2024
Provides:	tex(worldflag_BN.tex) = 2024
Provides:	tex(worldflag_Bonaire.tex) = 2024
Provides:	tex(worldflag_BO.tex) = 2024
Provides:	tex(worldflag_BR.tex) = 2024
Provides:	tex(worldflag_BS.tex) = 2024
Provides:	tex(worldflag_B.tex) = 2024
Provides:	tex(worldflag_BT.tex) = 2024
Provides:	tex(worldflag_Buddhism.tex) = 2024
Provides:	tex(worldflag_BW.tex) = 2024
Provides:	tex(worldflag_BY.tex) = 2024
Provides:	tex(worldflag_BZ.tex) = 2024
Provides:	tex(worldflag_CA.tex) = 2024
Provides:	tex(worldflag_CD.tex) = 2024
Provides:	tex(worldflag_CF.tex) = 2024
Provides:	tex(worldflag_CG.tex) = 2024
Provides:	tex(worldflag_Christian.tex) = 2024
Provides:	tex(worldflag_CH.tex) = 2024
Provides:	tex(worldflag_CI.tex) = 2024
Provides:	tex(worldflag_CK.tex) = 2024
Provides:	tex(worldflag_CL.tex) = 2024
Provides:	tex(worldflag_CM.tex) = 2024
Provides:	tex(worldflag_CN.tex) = 2024
Provides:	tex(worldflag_CO.tex) = 2024
Provides:	tex(worldflag_CR.tex) = 2024
Provides:	tex(worldflag_C.tex) = 2024
Provides:	tex(worldflag_CU.tex) = 2024
Provides:	tex(worldflag_CV.tex) = 2024
Provides:	tex(worldflag_CY.tex) = 2024
Provides:	tex(worldflag_CZ.tex) = 2024
Provides:	tex(worldflag_DE.tex) = 2024
Provides:	tex(worldflag_DJ.tex) = 2024
Provides:	tex(worldflag_DK.tex) = 2024
Provides:	tex(worldflag_DM.tex) = 2024
Provides:	tex(worldflag_DO.tex) = 2024
Provides:	tex(worldflag_D.tex) = 2024
Provides:	tex(worldflag_DZ.tex) = 2024
Provides:	tex(worldflag_EC.tex) = 2024
Provides:	tex(worldflag_EE.tex) = 2024
Provides:	tex(worldflag_EG.tex) = 2024
Provides:	tex(worldflag_EH.tex) = 2024
Provides:	tex(worldflag_ER.tex) = 2024
Provides:	tex(worldflag_Esperanto.tex) = 2024
Provides:	tex(worldflag_ES.tex) = 2024
Provides:	tex(worldflag_E.tex) = 2024
Provides:	tex(worldflag_ET.tex) = 2024
Provides:	tex(worldflag_EU.tex) = 2024
Provides:	tex(worldflag_FI.tex) = 2024
Provides:	tex(worldflag_FJ.tex) = 2024
Provides:	tex(worldflag_FM.tex) = 2024
Provides:	tex(worldflag_FO.tex) = 2024
Provides:	tex(worldflag_FR.tex) = 2024
Provides:	tex(worldflag_F.tex) = 2024
Provides:	tex(worldflag_GA.tex) = 2024
Provides:	tex(worldflag_GB.tex) = 2024
Provides:	tex(worldflag_GD.tex) = 2024
Provides:	tex(worldflag_GE.tex) = 2024
Provides:	tex(worldflag_GF.tex) = 2024
Provides:	tex(worldflag_GG.tex) = 2024
Provides:	tex(worldflag_GH.tex) = 2024
Provides:	tex(worldflag_GI.tex) = 2024
Provides:	tex(worldflag_GL.tex) = 2024
Provides:	tex(worldflag_GM.tex) = 2024
Provides:	tex(worldflag_GN.tex) = 2024
Provides:	tex(worldflag_GQ.tex) = 2024
Provides:	tex(worldflag_GR.tex) = 2024
Provides:	tex(worldflag_G.tex) = 2024
Provides:	tex(worldflag_GT.tex) = 2024
Provides:	tex(worldflag_GW.tex) = 2024
Provides:	tex(worldflag_GY.tex) = 2024
Provides:	tex(worldflag_HN.tex) = 2024
Provides:	tex(worldflag_HR.tex) = 2024
Provides:	tex(worldflag_H.tex) = 2024
Provides:	tex(worldflag_HT.tex) = 2024
Provides:	tex(worldflag_HU.tex) = 2024
Provides:	tex(worldflag_ID.tex) = 2024
Provides:	tex(worldflag_IE.tex) = 2024
Provides:	tex(worldflag_IL.tex) = 2024
Provides:	tex(worldflag_IM.tex) = 2024
Provides:	tex(worldflag_IN.tex) = 2024
Provides:	tex(worldflag_IQ.tex) = 2024
Provides:	tex(worldflag_IR.tex) = 2024
Provides:	tex(worldflag_IS.tex) = 2024
Provides:	tex(worldflag_I.tex) = 2024
Provides:	tex(worldflag_IT.tex) = 2024
Provides:	tex(worldflag_JE.tex) = 2024
Provides:	tex(worldflag_JM.tex) = 2024
Provides:	tex(worldflag_JollyRoger.tex) = 2024
Provides:	tex(worldflag_JO.tex) = 2024
Provides:	tex(worldflag_JP.tex) = 2024
Provides:	tex(worldflag_J.tex) = 2024
Provides:	tex(worldflag_KE.tex) = 2024
Provides:	tex(worldflag_KG.tex) = 2024
Provides:	tex(worldflag_KH.tex) = 2024
Provides:	tex(worldflag_KI.tex) = 2024
Provides:	tex(worldflag_KM.tex) = 2024
Provides:	tex(worldflag_KN.tex) = 2024
Provides:	tex(worldflag_KO.tex) = 2024
Provides:	tex(worldflag_KP.tex) = 2024
Provides:	tex(worldflag_KR.tex) = 2024
Provides:	tex(worldflag_K.tex) = 2024
Provides:	tex(worldflag_KW.tex) = 2024
Provides:	tex(worldflag_KZ.tex) = 2024
Provides:	tex(worldflag_LA.tex) = 2024
Provides:	tex(worldflag_LB.tex) = 2024
Provides:	tex(worldflag_LC.tex) = 2024
Provides:	tex(worldflag_LI.tex) = 2024
Provides:	tex(worldflag_LK.tex) = 2024
Provides:	tex(worldflag_LR.tex) = 2024
Provides:	tex(worldflag_LS.tex) = 2024
Provides:	tex(worldflag_L.tex) = 2024
Provides:	tex(worldflag_LT.tex) = 2024
Provides:	tex(worldflag_LU.tex) = 2024
Provides:	tex(worldflag_LV.tex) = 2024
Provides:	tex(worldflag_LY.tex) = 2024
Provides:	tex(worldflag_MA.tex) = 2024
Provides:	tex(worldflag_MD.tex) = 2024
Provides:	tex(worldflag_ME.tex) = 2024
Provides:	tex(worldflag_MG.tex) = 2024
Provides:	tex(worldflag_MH.tex) = 2024
Provides:	tex(worldflag_MK.tex) = 2024
Provides:	tex(worldflag_ML.tex) = 2024
Provides:	tex(worldflag_MM.tex) = 2024
Provides:	tex(worldflag_MN.tex) = 2024
Provides:	tex(worldflag_MR.tex) = 2024
Provides:	tex(worldflag_M.tex) = 2024
Provides:	tex(worldflag_MT.tex) = 2024
Provides:	tex(worldflag_MU.tex) = 2024
Provides:	tex(worldflag_MV.tex) = 2024
Provides:	tex(worldflag_MW.tex) = 2024
Provides:	tex(worldflag_MX.tex) = 2024
Provides:	tex(worldflag_MY.tex) = 2024
Provides:	tex(worldflag_MZ.tex) = 2024
Provides:	tex(worldflag_NA.tex) = 2024
Provides:	tex(worldflag_NATO.tex) = 2024
Provides:	tex(worldflag_NE.tex) = 2024
Provides:	tex(worldflag_NG.tex) = 2024
Provides:	tex(worldflag_NI.tex) = 2024
Provides:	tex(worldflag_NL.tex) = 2024
Provides:	tex(worldflag_NO.tex) = 2024
Provides:	tex(worldflag_NP.tex) = 2024
Provides:	tex(worldflag_NR.tex) = 2024
Provides:	tex(worldflag_N.tex) = 2024
Provides:	tex(worldflag_NU.tex) = 2024
Provides:	tex(worldflag_NZ.tex) = 2024
Provides:	tex(worldflag_Olympics.tex) = 2024
Provides:	tex(worldflag_OM.tex) = 2024
Provides:	tex(worldflag_O.tex) = 2024
Provides:	tex(worldflag_PA.tex) = 2024
Provides:	tex(worldflag_PE.tex) = 2024
Provides:	tex(worldflag_PG.tex) = 2024
Provides:	tex(worldflag_PH.tex) = 2024
Provides:	tex(worldflag_PK.tex) = 2024
Provides:	tex(worldflag_PL.tex) = 2024
Provides:	tex(worldflag_PR.tex) = 2024
Provides:	tex(worldflag_PS.tex) = 2024
Provides:	tex(worldflag_P.tex) = 2024
Provides:	tex(worldflag_PT.tex) = 2024
Provides:	tex(worldflag_PW.tex) = 2024
Provides:	tex(worldflag_PY.tex) = 2024
Provides:	tex(worldflag_QA.tex) = 2024
Provides:	tex(worldflag_Q.tex) = 2024
Provides:	tex(worldflag_Rainbow.tex) = 2024
Provides:	tex(worldflag_RedCrescent.tex) = 2024
Provides:	tex(worldflag_RedCross.tex) = 2024
Provides:	tex(worldflag_RedCrystal.tex) = 2024
Provides:	tex(worldflag_RE.tex) = 2024
Provides:	tex(worldflag_RO.tex) = 2024
Provides:	tex(worldflag_RS.tex) = 2024
Provides:	tex(worldflag_R.tex) = 2024
Provides:	tex(worldflag_RU.tex) = 2024
Provides:	tex(worldflag_RW.tex) = 2024
Provides:	tex(worldflag_Saba.tex) = 2024
Provides:	tex(worldflag_SA.tex) = 2024
Provides:	tex(worldflag_SB.tex) = 2024
Provides:	tex(worldflag_SC.tex) = 2024
Provides:	tex(worldflag_SD.tex) = 2024
Provides:	tex(worldflag_SE.tex) = 2024
Provides:	tex(worldflag_SG.tex) = 2024
Provides:	tex(worldflag_SI.tex) = 2024
Provides:	tex(worldflag_SK.tex) = 2024
Provides:	tex(worldflag_SL.tex) = 2024
Provides:	tex(worldflag_SM.tex) = 2024
Provides:	tex(worldflag_SN.tex) = 2024
Provides:	tex(worldflag_Somaliland.tex) = 2024
Provides:	tex(worldflag_SO.tex) = 2024
Provides:	tex(worldflag_SR.tex) = 2024
Provides:	tex(worldflag_SS.tex) = 2024
Provides:	tex(worldflags.sty) = 2024
Provides:	tex(worldflag_StEustasius.tex) = 2024
Provides:	tex(worldflag_S.tex) = 2024
Provides:	tex(worldflag_ST.tex) = 2024
Provides:	tex(worldflag_SV.tex) = 2024
Provides:	tex(worldflag_SY.tex) = 2024
Provides:	tex(worldflag_SZ.tex) = 2024
Provides:	tex(worldflag_TD.tex) = 2024
Provides:	tex(worldflag_TG.tex) = 2024
Provides:	tex(worldflag_TH.tex) = 2024
Provides:	tex(worldflag_Tibet.tex) = 2024
Provides:	tex(worldflag_TJ.tex) = 2024
Provides:	tex(worldflag_TL.tex) = 2024
Provides:	tex(worldflag_TM.tex) = 2024
Provides:	tex(worldflag_TN.tex) = 2024
Provides:	tex(worldflag_TO.tex) = 2024
Provides:	tex(worldflag_Transnistria.tex) = 2024
Provides:	tex(worldflag_TR.tex) = 2024
Provides:	tex(worldflag_T.tex) = 2024
Provides:	tex(worldflag_TT.tex) = 2024
Provides:	tex(worldflag_TV.tex) = 2024
Provides:	tex(worldflag_TW.tex) = 2024
Provides:	tex(worldflag_TZ.tex) = 2024
Provides:	tex(worldflag_UA.tex) = 2024
Provides:	tex(worldflag_UG.tex) = 2024
Provides:	tex(worldflag_UNESCO.tex) = 2024
Provides:	tex(worldflag_UNO.tex) = 2024
Provides:	tex(worldflag_US.tex) = 2024
Provides:	tex(worldflag_U.tex) = 2024
Provides:	tex(worldflag_UY.tex) = 2024
Provides:	tex(worldflag_UZ.tex) = 2024
Provides:	tex(worldflag_VA.tex) = 2024
Provides:	tex(worldflag_VC.tex) = 2024
Provides:	tex(worldflag_VE.tex) = 2024
Provides:	tex(worldflag_VN.tex) = 2024
Provides:	tex(worldflag_V.tex) = 2024
Provides:	tex(worldflag_VU.tex) = 2024
Provides:	tex(worldflag_WB.tex) = 2024
Provides:	tex(worldflag_WHO.tex) = 2024
Provides:	tex(worldflag_WS.tex) = 2024
Provides:	tex(worldflag_W.tex) = 2024
Provides:	tex(worldflag_X.tex) = 2024
Provides:	tex(worldflag_YE.tex) = 2024
Provides:	tex(worldflag_Y.tex) = 2024
Provides:	tex(worldflag_ZA.tex) = 2024
Provides:	tex(worldflag_ZM.tex) = 2024
Provides:	tex(worldflag_Z.tex) = 2024
Provides:	tex(worldflag_ZW.tex) = 2024
BuildArch:	noarch

%description
This is a package for drawing flags using TikZ. Currently the
national flags of all independent nations are included,
additionally some other flags of various organizations. A flag
can be drawn ... as a single TikZ-picture within ordinary text,
as a picture element within a TikZ-picture. The appearance of a
flag (size, frame etc.) can be adapted using optional
parameters.

%files
%doc %{_texmfdistdir}/doc/latex/worldflags
%{_texmfdistdir}/tex/latex/worldflags

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10932 |21cr|texlive-wrapfig2-66115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wrapfig2

Summary:	Wrap text around figures
Name:		texlive-wrapfig2
Version:	66115
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(wrapfig2.sty) = 2024
BuildArch:	noarch

%description
This package is a fork of Donald Arseneau's wrapfig package. It
is backwards compatible with the original environments.
Therefore this package does not work with LaTeX2e kernels older
than about 2018, although a warning is issued if the LaTeX
format file is dated with a date older than 1st January 2019.

%files
%doc %{_texmfdistdir}/doc/latex/wrapfig2
%{_texmfdistdir}/tex/latex/wrapfig2

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10933 |21cr|texlive-wrapstuff-64058-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wrapstuff

Summary:	Wrapping text around stuff
Name:		texlive-wrapstuff
Version:	64058
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(wrapstuff.sty) = 2024
BuildArch:	noarch

%description
This package provides another implementation of text wrapping.
Its implementation benefits from the paragraph hooks available
since LaTeX 2021-06-01.

%files
%doc %{_texmfdistdir}/doc/latex/wrapstuff
%{_texmfdistdir}/tex/latex/wrapstuff

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10934 |21cr|texlive-writeongrid-66603-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname writeongrid

Summary:	Write on grid lines
Name:		texlive-writeongrid
Version:	66603
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(WriteOnGrid.sty) = 2024
BuildArch:	noarch

%description
An environment to create grids (type 5x5 or Seyes or Ruled) and
commands to write texts "right" on the lines.

%files
%doc %{_texmfdistdir}/doc/latex/writeongrid
%{_texmfdistdir}/tex/latex/writeongrid

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10935 |21cr|texlive-wsuipa-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25469
# category Package
# catalog-ctan /fonts/wsuipa
# catalog-date 2012-01-27 13:33:18 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-wsuipa
Version:	20190228
Release:	1
Summary:	International Phonetic Alphabet fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/wsuipa
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wsuipa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wsuipa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a 7-bit IPA font, as Metafont source, and
macros for support under TeXt1 and LaTeX. The fonts (and
macros) are now largely superseded by the tipa fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/wsuipa/iaccent.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/igreekl.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/iparoman.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/iromanl.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/iromanp.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/iromanu.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wbxipa10.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wbxipa11.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wbxipa12.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wbxipa17.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wbxipa8.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wbxipa9.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wslipa10.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wslipa11.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wslipa12.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wslipa17.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wslipa8.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wslipa9.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wsuipa10.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wsuipa11.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wsuipa12.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wsuipa17.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wsuipa8.mf
%{_texmfdistdir}/fonts/source/public/wsuipa/wsuipa9.mf
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wbxipa10.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wbxipa11.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wbxipa12.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wbxipa17.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wbxipa8.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wbxipa9.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wslipa10.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wslipa11.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wslipa12.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wslipa17.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wslipa8.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wslipa9.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wsuipa10.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wsuipa11.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wsuipa12.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wsuipa17.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wsuipa8.tfm
%{_texmfdistdir}/fonts/tfm/public/wsuipa/wsuipa9.tfm
%{_texmfdistdir}/tex/latex/wsuipa/ipa.sty
%{_texmfdistdir}/tex/latex/wsuipa/ipalmacs.sty
%{_texmfdistdir}/tex/latex/wsuipa/uipa.fd
%doc %{_texmfdistdir}/doc/fonts/wsuipa/LICENCE-wsuipa.txt
%doc %{_texmfdistdir}/doc/fonts/wsuipa/README
%doc %{_texmfdistdir}/doc/fonts/wsuipa/changes.dec93
%doc %{_texmfdistdir}/doc/fonts/wsuipa/changes.jun91
%doc %{_texmfdistdir}/doc/fonts/wsuipa/changes.mar91
%doc %{_texmfdistdir}/doc/fonts/wsuipa/changes.may92
%doc %{_texmfdistdir}/doc/fonts/wsuipa/changes.nov90
%doc %{_texmfdistdir}/doc/fonts/wsuipa/compilefonts
%doc %{_texmfdistdir}/doc/fonts/wsuipa/ipamacs.tex
%doc %{_texmfdistdir}/doc/fonts/wsuipa/ipaman.ps
%doc %{_texmfdistdir}/doc/fonts/wsuipa/latex209/ipalman.tex
%doc %{_texmfdistdir}/doc/fonts/wsuipa/latex209/lipaman.tex
%doc %{_texmfdistdir}/doc/fonts/wsuipa/latex2e/ipaman.tex
%doc %{_texmfdistdir}/doc/fonts/wsuipa/text1/ipaman.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10936 |21cr|texlive-xassoccnt-61112-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xassoccnt

Summary:	Associated counters stepping simultaneously
Name:		texlive-xassoccnt
Version:	61112
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-xassoccnt = 2024
Provides:	tex(xassoccnt.sty) = 2024
BuildArch:	noarch

%description
This package provides a way of associating counters to an
existing driver counter so that incrementing the driver counter
will increase its associated counters as well. This package can
be regarded as a supplement to the totcount package by
Vasileios Koutavas, but it can be used without it, too.
xassoccnt is a successor and a complete rewrite of the assoccnt
package by the same author. However, as of 2017-03-05, some
features of assoccnt are not (yet) contained in xassoccnt so
that the older package cannot yet be regarded as obsolete.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/xassoccnt/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10937 |21cr|texlive-xbmks-53448-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xbmks

Summary:	Create a cross-document bookmark tree
Name:		texlive-xbmks
Version:	53448
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xbmks-pdfmark.def) = 2024
Provides:	tex(xbmks-pdftex.def) = 2024
Provides:	tex(xbmks.sty) = 2024
Provides:	tex(xbmks-xetex.def) = 2024
BuildArch:	noarch

%description
The package defines the concept of a document bundle, which is
a collection of documents that are to be built separately, but
have a common bookmark tree. The only options are driver
options, these are dvips (Acrobat Distiller or ps2pdf these can
be used as the PDF creator), pdfLaTeX (and LuaLaTeX, which is
treated the same as pdfLaTeX), and XeLaTeX. The package
auto-detects pdfLaTeX and XeLaTeX, and dvips is the default, so
there is actually no need to pass the driver option.

%files
%doc %{_texmfdistdir}/doc/latex/xbmks
%{_texmfdistdir}/tex/latex/xbmks

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10938 |21cr|texlive-xcharter-1.215-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xcharter
Version:	1.215
Release:	1
Summary:	Extension of Bitstream Charter fonts
Group:		Publishing
URL:		https://ctan.org/pkg/xcharter
License:	LaTeX Project Public License, version 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcharter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcharter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package presents an extension of Bitstream Charter,
which provides small caps, oldstyle figures and superior
figures in all four styles, accompanied by LaTeX font
support files. The fonts themselves are provided in both
Adobe Type 1 and OTF formats, with supporting files as
necessary. 

#-----------------------------------------------------------------------
%prep
%setup -c -q -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

%files
%{_texmfdistdir}/tex/latex/xcharter
%doc %{_texmfdistdir}/doc/fonts/xcharter
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10939 |21cr|texlive-xcharter-math-65686-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xcharter-math

Summary:	XCharter-based OpenType Math font for LuaTeX and XeTeX
Name:		texlive-xcharter-math
Version:	65686
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xcharter-otf.sty) = 2024
BuildArch:	noarch

%description
This package provides an Unicode Math font XCharter-Math.otf
meant to be used together with XCharter Opentype Text fonts
(extension of Bitstream Charter) in LuaLaTeX or XeLaTeX
documents.

%files
%doc %{_texmfdistdir}/doc/fonts/xcharter-math
%{_texmfdistdir}/fonts/opentype/public/xcharter-math
%{_texmfdistdir}/tex/latex/xcharter-math

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10940 |21cr|texlive-xcite-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23783
# category Package
# catalog-ctan /macros/latex/contrib/xcite
# catalog-date 2011-09-03 01:03:37 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-xcite
Version:	1.0
Release:	8
Summary:	Use citation keys from a different document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xcite
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcite.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcite.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcite.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package lets you use citation keys from another document,
just as the xr package allows cross-document use of labels.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xcite/xcite.sty
%doc %{_texmfdistdir}/doc/latex/xcite/README
%doc %{_texmfdistdir}/doc/latex/xcite/xcite.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xcite/xcite.dtx
%doc %{_texmfdistdir}/source/latex/xcite/xcite.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10941 |21cr|texlive-xcntperchap-54080-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xcntperchap

Summary:	Track the number of subsections etc. that occur in a specified tracklevel
Name:		texlive-xcntperchap
Version:	54080
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-xcntperchap = 2024
Provides:	tex(xcntperchap.sty) = 2024
BuildArch:	noarch

%description
This package is the successor of cntperchap and allows to
provide more tracklevels than just only one.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/xcntperchap/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10942 |21cr|texlive-xcolor-material-42289-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xcolor-material

Summary:	Defines the 256 colors from Google Material Color Palette
Name:		texlive-xcolor-material
Version:	42289
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xcolor-material.sty) = 2024
BuildArch:	noarch

%description
The package is built on top of the great xcolor package. It
provides a useful definition of the beautiful Google Material
Color Palette, available at Google Material design, for its use
in document writing with LaTeX and Friends.

%files
%doc %{_texmfdistdir}/doc/latex/xcolor-material/
%{_texmfdistdir}/tex/latex/xcolor-material/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10943 |21cr|texlive-xcolor-solarized-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xcolor-solarized

Summary:	Defines the 16 colors from Ethan Schoonover's Solarized palette
Name:		texlive-xcolor-solarized
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	tex(kvoptions.sty)
Requires:	texlive-tlpkg
#Requires:	tex(xcolor.sty)
Provides:	tex-xcolor-solarized = 2024
Provides:	tex(xcolor-solarized.sty) = 2024
BuildArch:	noarch

%description
Built on top of the package, this package defines the sixteen
colors of Ethan Schoonover's popular color palette, Solarized,
for use in documents typeset with LaTeX and Friends.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/xcolor-solarized/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10944 |21cr|texlive-xcpdftips-50449-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xcpdftips

Summary:	Natbib citations with PDF tooltips
Name:		texlive-xcpdftips
Version:	50449
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xcpdftips.sty) = 2024
BuildArch:	noarch

%description
This LaTeX package uses pdfcomment and bibentry to surround
natbib citations with PDF tooltips.

%files
%doc %{_texmfdistdir}/doc/latex/xcpdftips
%{_texmfdistdir}/tex/latex/xcpdftips

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10945 |21cr|texlive-xduthesis-20211010-1.0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xduthesis
Version:	20211010
Release:	1.0
Summary:	XeLaTeX template for writing Xidian University Thesis
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xduthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xduthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xduthesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xduthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a XeLaTeX template for writing theses to apply academic degrees
in Xidian University. The template is designed according to the official
requirements on typesetting theses. The template currently supports all
levels of degrees from bachelor to doctor, including both academic
master and professional master. But it is not guaranteed that you will
pass the typesetting check and obtain your degree by using this
template.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xduthesis/xdubadge-gr.eps
%{_texmfdistdir}/tex/latex/xduthesis/xdubadge.eps
%{_texmfdistdir}/tex/latex/xduthesis/xdulogo.eps
%{_texmfdistdir}/tex/latex/xduthesis/xduthesis.cfg
%{_texmfdistdir}/tex/latex/xduthesis/xduthesis.cls
%doc %{_texmfdistdir}/doc/latex/xduthesis/README.md
%doc %{_texmfdistdir}/doc/latex/xduthesis/xduthesis.pdf
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/photo.png
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/thesis-doctor.pdf
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/abstract.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/achievements.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/acknowledgments.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/appendix01.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/biography.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/ch01-intro.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/ch02-options.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/ch03-frontmatter.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/ch04-mainmatter.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/ch05-backmatter.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/ch06-bibliography.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/ch07-conclusions.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/refs.bib
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/thesis-bachelor.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/thesis-doctor.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/thesis-master.tex
%doc %{_texmfdistdir}/doc/latex/xduthesis/examples/thesis-masterpro.tex
#- source
%doc %{_texmfdistdir}/source/latex/xduthesis/xduthesis.dtx
%doc %{_texmfdistdir}/source/latex/xduthesis/xduthesis.ins
#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10946 |21cr|texlive-xduts-66472-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xduts

Summary:	Xidian University TeX Suite
Name:		texlive-xduts
Version:	66472
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xdufont.sty) = 2024
Provides:	tex(xdupgthesis.cls) = 2024
Provides:	tex(xduugthesis.cls) = 2024
Provides:	tex(xduugtp.cls) = 2024
BuildArch:	noarch

%description
XDUTS is designed to help Xidian University students use LaTeX
typesetting efficiently. XDUTS contains a font configuration
package that meets the school's requirements and can be applied
to any document class. In addition, there are thesis and thesis
proposal templates for both undergraduate and postgraduate that
meet the school's requirements.

%files
%doc %{_texmfdistdir}/doc/xelatex/xduts
%{_texmfdistdir}/tex/xelatex/xduts

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10947 |21cr|texlive-xebaposter-2.51-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: texlive-xebaposter
Version: 2.51
Release: 1
Summary: Create beautiful scientific Persian/Latin posters using TikZ
Group: Publishing
URL: https://ctan.org/tex-archive/graphics/pgf/contrib/xebaposter
License: LPPL1
Source0: http://mirrors.ctan.org/systems/texlive/tlnet/archive/xebaposter.tar.xz
Source1: http://mirrors.ctan.org/systems/texlive/tlnet/archive/xebaposter.doc.tar.xz
BuildArch: noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg

%description
This package is designed for making beautiful scientific
Persian/Latin posters. It is a fork of baposter by Brian Amberg
and Reinhold Kainhofer available at
http://www.brian-amberg.de/uni/poster/. baposter's users should
be able to compile their poster using xebaposter (instead of
baposter) without any problem.

%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10948 |21cr|texlive-xechangebar-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xechangebar
Version:	1.0
Release:	1
Summary:	An extension of package changebar that can be used with XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/grant
License:	MIT
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/xechangebar.doc.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/xechangebar.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is package xechangebar that extends package changebar
so it can be used with XeLaTeX. The package introduces the
new option `xetex' for use with XeLaTeX. Everything else
remains the same and users should consult the original 
documenation for usage information.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10949 |21cr|texlive-xecyrmongolian-53160-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xecyrmongolian

Summary:	Basic support for the typesetting of Cyrillic Mongolian documents using (Xe|Lua)LaTeX
Name:		texlive-xecyrmongolian
Version:	53160
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xecyrmongolian.sty) = 2024
BuildArch:	noarch

%description
The 'xecyrmongolian' package can be used to produce documents
in Cyrillic Mongolian using either XeLaTeX or LuaLaTeX. The
command \setlanguage can be used to load alternative
hyphenation patterns so to be able to create multilingual
documents.

%files
%doc %{_texmfdistdir}/doc/latex/xecyrmongolian
%{_texmfdistdir}/tex/latex/xecyrmongolian

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10950 |21cr|texlive-xellipsis-47546-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xellipsis

Summary:	Extremely configurable ellipses with formats for various style manuals
Name:		texlive-xellipsis
Version:	47546
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-xellipsis = 2024
Provides:	tex(xellipsis.sty) = 2024
BuildArch:	noarch

%description
The xellipsis package provides a system for configuring
(almomst) every possible aspect of ellipses, including
preceding and proceeding characters; the character itself;
distances before and after each of these; and number of
characters. It comes with both a compatibility option for
standard LaTeX \ldots as well as preset package options for the
Chicago Manual of Style (Turabian); the Bluebook; and MLA
guidelines.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/xellipsis/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10951 |21cr|texlive-xepersian-hm-56272-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xepersian-hm

Summary:	Fixes kashida feature in xepersian package
Name:		texlive-xepersian-hm
Version:	56272
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(l3keys2e.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(xepersian.sty)
Provides:	tex(xepersian-hm-common-kashida.tex) = 2024
Provides:	tex(xepersian-hm-kashida.tex) = 2024
Provides:	tex(xepersian-hm.sty) = 2024
BuildArch:	noarch

%description
The kashida feature in xepersian has problems with some fonts
such as the HM Series fonts and the XB Series fonts. This
package fixes these problems. The package requires xepersian
and l3keys2e.

%files
%doc %{_texmfdistdir}/doc/xelatex/xepersian-hm
%{_texmfdistdir}/tex/xelatex/xepersian-hm

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10952 |21cr|texlive-xespotcolor-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xespotcolor
Version:	2.1
Release:	1
Summary:	doc files of xespotcolor
Group:		Publishing
URL:		https://ctan.org/pkg/xespotcolor
License:	MIT
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/xespotcolor.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/xespotcolor.doc.tar.xz
Source2:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/xespotcolor.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A spot color is one that is printed with its own ink. 
Typically, printers use spot colors in the production 
of books or other printed material. The spotcolor package
by Jens Elstner is a first attempt to introduce the use of 
spot colors with pdfLaTeX. The xespotcolor package is a 
reimplementation of this package so to be usable with 
XeLaTeX or LaTeX+dvipdfmx. As such, it has the same user 
interface and  the same capabilities. Version 2.0a added
support for the xcolor package and so one can use
spotcolors in TikZ pictures. In this version one can 
safely use spotcolors with the tcolorbox package and
I have updated the package so to use the correct shipout
hook provided by the LaTeX kernel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10953 |21cr|texlive-xfakebold-55654-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xfakebold

Summary:	Fake a regular font for bold characters
Name:		texlive-xfakebold
Version:	55654
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xfakebold.sty) = 2024
BuildArch:	noarch

%description
This package uses PDF's text rendering to modify the linewidth
of an outline font to get bold characters. It works only for
vectorfonts where the glyphs are defined by their outline. The
package works both in text and in math mode, for pdfLaTeX as
well as for LuaLaTeX. The package depends on ifluatex, ifxetex,
and xkeyval.

%files
%doc %{_texmfdistdir}/doc/latex/xfakebold/
%{_texmfdistdir}/tex/latex/xfakebold/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10954 |21cr|texlive-xii-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31683
# category Package
# catalog-ctan /macros/plain/contrib/xii
# catalog-date 2013-09-17 19:06:55 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-xii
Version:	20190228
Release:	1
Summary:	Christmas silliness
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/xii
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xii.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xii.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive xii package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/plain/xii

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10955 |21cr|texlive-xii-lat-20171113-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xii-lat
Version:	20171113
Release:	1
Summary:	Christmas silliness (Latin)
Group:		Publishing
URL:		https://ctan.org/pkg/xii-lat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xii-lat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xii-lat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is the plain TEX file xii-lat.tex.
Call “pdftex xii-lat.tex” to produce a (perhaps) surprising typeset document.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10956 |21cr|texlive-xindy-persian-59013-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xindy-persian

Summary:	Support for the Persian language in xindy
Name:		texlive-xindy-persian
Version:	59013
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
The package offers Persian language support for indexing using
xindy.

%files
%doc %{_texmfdistdir}/doc/support/xindy-persian

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10957 |21cr|texlive-xintsession-60926-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xintsession

Summary:	Interactive computing sessions (fractions, floating points, polynomials)
Name:		texlive-xintsession
Version:	60926
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xintsession.tex) = 2024
BuildArch:	noarch

%description
This package provides support for interactive computing
sessions with etex (or pdftex) executed on the command line, on
the basis of the xintexpr and polexpr packages. Once
xintsession is loaded, eTeX becomes an interactive computing
software capable of executing arbitrary precision calculations,
or exact calculations with arbitrarily big fractions. It can
also manipulate polynomials as algebraic entities. Numerical
variables and functions can be defined during the session, and
each evaluation result is stored in automatically labeled
variables. A file is automatically created storing inputs and
outputs.

%files
%doc %{_texmfdistdir}/doc/plain/xintsession
%{_texmfdistdir}/tex/plain/xintsession

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10958 |21cr|texlive-xistercian-61366-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xistercian

Summary:	Cistercian numerals in LaTeX
Name:		texlive-xistercian
Version:	61366
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xistercian.sty) = 2024
BuildArch:	noarch

%description
xistercian allows you to use Cistercian numerals in LaTeX. The
glyphs are created using PGF and to a certain degree
configurable. You can use Cistercian numerals as page numbers
using \pagenumbering{cistercian}. The two main macros are:
\cistercian{<counter>} formats the LaTeX2e counter as a
Cistercian numeral \cisterciannum{<integer>} formats the
integer (given as a string) as a Cistercian numeral

%files
%doc %{_texmfdistdir}/doc/latex/xistercian
%{_texmfdistdir}/tex/latex/xistercian

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10959 |21cr|texlive-xkcdcolors-54512-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xkcdcolors

Summary:	Xkcd names of colors
Name:		texlive-xkcdcolors
Version:	54512
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xkcdcolors.sty) = 2024
BuildArch:	noarch

%description
In the year 2010, Randall Munroe on posted a really funny and
nice article on xkcd. He made a very curious experiment:
showing colors to a lot of people and asking to name each one.
Afterward, he processed the data and sorted the names for each
color by popularity -- that means, how many people gave the
same name to the same color. This package makes the collected
color names usable with LaTeX.

%files
%doc %{_texmfdistdir}/doc/latex/xkcdcolors
%{_texmfdistdir}/tex/latex/xkcdcolors

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10960 |21cr|texlive-xlop-0.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xlop
Version:	0.26
Release:	1
Summary:	Calculates and displays arithmetic operations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/xlop
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xlop.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xlop.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xlop.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Xlop (eXtra Large OPeration) will typeset arithmetic problems
either in-line or "as in school" (using French school
conventions). So for example, \opadd{2}{3} can give either
$2+3=5$ or something similar to: \begin{tabular}{r} 2\\ +3\\
\hline 5\end{tabular}. Furthermore, numbers may be very large,
e.g 200 figures (with a very long compilation time). Many other
features allow to deal with numbers (tests, display, some high
level operations, etc.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/xlop/xlop.sty
%{_texmfdistdir}/tex/generic/xlop/xlop.tex
%doc %{_texmfdistdir}/doc/generic/xlop
#- source
%doc %{_texmfdistdir}/source/generic/xlop/manual.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10961 |21cr|texlive-xltabular-56855-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xltabular

Summary:	Longtable support with possible X-column specifier
Name:		texlive-xltabular
Version:	56855
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xltabular.sty) = 2024
BuildArch:	noarch

%description
This package loads package ltablex, but keeps the current
tabularx environment as is. The new environment xltabular is a
combination of longtable and tabularx: Header/footer
definitions, X-column specifier, and with possible pagebreaks.

%files
%doc %{_texmfdistdir}/doc/latex/xltabular/
%{_texmfdistdir}/tex/latex/xltabular/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10962 |21cr|texlive-xmltexconfig-20211220-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xmltexconfig
Version:	20211220
Release:	1
Summary:	xmltexconfig package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xmltexconfig
License:	LPPL
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/xmltexconfig.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Xmltexconfig package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xmltex/xmltexconfig/xmltex.ini
%{_texmfdistdir}/tex/xmltex/xmltexconfig/pdfxmltex.ini

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10963 |21cr|texlive-xmuthesis-56614-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xmuthesis

Summary:	XMU thesis style
Name:		texlive-xmuthesis
Version:	56614
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tikz.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(xmulogo.sty) = 2024
Provides:	tex(xmuthesis.cls) = 2024
BuildArch:	noarch

%description
This class is designed for XMU thesis's writing.

%files
%doc %{_texmfdistdir}/doc/latex/xmuthesis
%{_texmfdistdir}/tex/latex/xmuthesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10964 |21cr|texlive-xprintlen-35928.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xprintlen

Summary:	Print TeX lengths in a variety of units
Name:		texlive-xprintlen
Version:	35928.1.0
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(fp.sty)
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-xprintlen = 2024
Provides:	tex(xprintlen.sty) = 2024
BuildArch:	noarch

%description
The package defines a command, \printlen, to print TeX lengths
in a variety of units. It can handle all units supported by
TeX. The package requires that a reasonably up to date version
of the fp package be installed on you system.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/xprintlen/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10965 |21cr|texlive-xput-65325-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xput

Summary:	Declarative Desktop Publishing with LaTeX
Name:		texlive-xput
Version:	65325
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	imagemagick
Requires:	inkscape
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(tcolorbox.sty)
#Requires:	tex(tikz.sty)
Provides:	tex(xput.cls) = 2024
BuildArch:	noarch

%description
This LaTeX class provides a collection of macros that wrap the
macro \put to offer a more desktop-publishing-like experience
for creating graphic-rich documents like photo books. With Xput
you can create single- and double-sided documents, create pages
with margins, safety margins and bleed, use templates, align
text and graphics in a grid, wrap text across multiple pages
and use before pages. Generic templates, automatic grid layout
and a simple and consistent user interface make it easier than
ever to create graphic-rich documents with LaTeX. Under the
hood Xput uses the TikZ and tcolorbox packages, ImageMagick and
Inkscape.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/scripts/xput
%{_texmfdistdir}/tex/latex/xput

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10966 |21cr|texlive-xsavebox-64049-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xsavebox

Summary:	Saveboxes for repeating content without code replication, based on PDF Form XObjects
Name:		texlive-xsavebox
Version:	64049
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-xsavebox = 2024
Provides:	tex(xsavebox.sty) = 2024
BuildArch:	noarch

%description
The package defines commands for saving content that can be
repeatedly placed into the document without replicating DVI/PDF
code in the output file, allowing for smaller file size of the
final PDF and improved content caching for faster display in
certain PDF viewers. The method makes use of `Form XObjects'
defined in the PDF specification. The user commands are
modelled after the standard LaTeX commands \savebox, \sbox,
\usebox and the lrbox environment. All common TeX engines and
back-ends are supported: pdfLaTeX, LuaLaTeX LaTeX --> dvips -->
ps2pdf/Distiller (Xe)LaTeX --> (x)dvipdfmx

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/xsavebox/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10967 |21cr|texlive-xsim-61988-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xsim

Summary:	EXercise Sheets IMproved
Name:		texlive-xsim
Version:	61988
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(translations.sty)
Provides:	tex(xsim-manual.cls) = 2024
Provides:	tex(xsim.sty) = 2024
Provides:	tex(xsim.style.layouts.code.tex) = 2024
Provides:	tex(xsimverb.sty) = 2024
BuildArch:	noarch

%description
This package helps in creating exercises and the corresponding
solutions. It is the official successor of the exsheets package
and fixes/improves various long-standing issues.

%files
%doc %{_texmfdistdir}/doc/latex/xsim/
%{_texmfdistdir}/tex/latex/xsim/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10968 |21cr|texlive-xtuthesis-47049-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xtuthesis

Summary:	XTU thesis template
Name:		texlive-xtuthesis
Version:	47049
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xtuformat.sty) = 2024
BuildArch:	noarch

%description
The package provides a thesis template for the Xiangtan
University.

%files
%doc %{_texmfdistdir}/doc/latex/xtuthesis/
%{_texmfdistdir}/tex/latex/xtuthesis/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10969 |21cr|texlive-xurl-61553-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xurl

Summary:	Allow url break at any alphanumerical character
Name:		texlive-xurl
Version:	61553
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(xurl.sty) = 2024
BuildArch:	noarch

%description
Package xurl loads package url by default and defines possible
url breaks for all alphanumerical characters and = / . : * - ~
' " All arguments which are valid for url can be used. It will
be passed to package url. xurl itself has no special optional
argument. For more information read the documentation of
package url.

%files
%doc %{_texmfdistdir}/doc/latex/xurl/
%{_texmfdistdir}/tex/latex/xurl/ 

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10970 |21cr|texlive-yaletter-42830-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yaletter

Summary:	Extremely flexible macros for letters, envelopes, and label sheets
Name:		texlive-yaletter
Version:	42830
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(yaletter.cls) = 2024
BuildArch:	noarch

%description
The yaletter class provides extremely configurable macros for
typesetting letters in any conceivable style. It provides
facilities for maintaining easily-accessible databases of
letterheads and addresses for repeat use. It further provides
easy macros for envelopes and for label sheets. Finally, it
provides some nice defaults for a few of the more common styles
and sizes.

%files
%doc %{_texmfdistdir}/doc/latex/yaletter/
%{_texmfdistdir}/tex/latex/yaletter/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10971 |21cr|texlive-yamlvars-64949-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yamlvars

Summary:	A YAML parser and tool for easy LaTeX definition creation
Name:		texlive-yamlvars
Version:	64949
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(yamlvars.sty) = 2024
BuildArch:	noarch

%description
This LuaLaTeX package provides a YAML parser and some functions
to declare and define LaTeX definitions using YAML files.

%files
%doc %{_texmfdistdir}/doc/lualatex/yamlvars
%{_texmfdistdir}/tex/lualatex/yamlvars

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10972 |21cr|texlive-yathesis-20211025-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-yathesis
Version:	20211025
Release:	1
Summary:	A LaTeX class for writing a thesis following French rules
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/yathesis
License:	The LATEX Project Public License 1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yathesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yathesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yathesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The purpose of yathesis is to facilitate the typesetting of
theses prepared in France, whatever the disciplines and
institutes. It implements most notably recommendations from the
Ministry of Higher Education and Research, and this
transparently to the user. It has also been designed to
(optionally) take advantage of powerful tools available in
LaTeX, including packages: BibLaTeX for the bibliography;
glossaries for the glossary, list of acronyms and symbols list.
The yathesis class, based on the book class, aims to be both
simple to use and, to some extent, (easily) customizable.
yathesis comes with templates and samples in the
doc/latex/yathesis/french/exemples/ directory in the
distribution. They can also be tested on ShareLaTeX (template
and specimen) and on Overleaf (template and specimen). Note:
The "ya" in the package name stands for "yet another".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/yathesis/yathesis-demo.sty
%{_texmfdistdir}/tex/latex/yathesis/yathesis-translations.tex
%{_texmfdistdir}/tex/latex/yathesis/yathesis.cls
%doc %{_texmfdistdir}/doc/latex/yathesis/CHANGELOG.md
%doc %{_texmfdistdir}/doc/latex/yathesis/README.md
%doc %{_texmfdistdir}/doc/latex/yathesis/addons/completion/yathesis.cwl
%doc %{_texmfdistdir}/doc/latex/yathesis/english/README-TRANSLATION.md
%doc %{_texmfdistdir}/doc/latex/yathesis/french/canevas-specimen.zip
%doc %{_texmfdistdir}/doc/latex/yathesis/french/exemples/specimen/a-plat/
%doc %{_texmfdistdir}/doc/latex/yathesis/french/documentation/

#- source
%doc %{_texmfdistdir}/source/latex/yathesis/yathesis-samples-templates.dtx
%doc %{_texmfdistdir}/source/latex/yathesis/yathesis.dtx
#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10973 |21cr|texlive-yax-1.03-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21183
# category Package
# catalog-ctan /macros/generic/yax
# catalog-date 2011-01-23 17:05:29 +0100
# catalog-license lppl
# catalog-version 1.03
Name:		texlive-yax
Version:	1.03
Release:	8
Summary:	Yet Another Key System
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/yax
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yax.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yax.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
YaX is advertised as a key system, but it rather organizes
attributes in parameters, which parameters can be executed, so
that YaX is halfway between key management and macro definition
(and actually hopes to provide a user's interface). Values
assigned to attributes can be retrieved and tested in various
ways, with full expandability ensured as much as possible.
Finally, YaX's syntax is a quite peculiar (as few braces as
possible), but may be customized. YaX is based on texapi and
thus requires e-TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/yax/t-yax.tex
%{_texmfdistdir}/tex/generic/yax/yax.sty
%{_texmfdistdir}/tex/generic/yax/yax.tex
%doc %{_texmfdistdir}/doc/generic/yax/README
%doc %{_texmfdistdir}/doc/generic/yax/yax-doc.pdf
%doc %{_texmfdistdir}/doc/generic/yax/yax-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10974 |21cr|texlive-yazd-thesis-61719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yazd-thesis

Summary:	A template for the Yazd University
Name:		texlive-yazd-thesis
Version:	61719
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(yazd-thesis.cls) = 2024
BuildArch:	noarch

%description
This package offers a document class for typesetting theses and
dissertations at the Yazd University. The class requires use of
XeLaTeX.

%files
%doc %{_texmfdistdir}/doc/xelatex/yazd-thesis
%{_texmfdistdir}/tex/xelatex/yazd-thesis

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10975 |21cr|texlive-yb-book-64586-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yb-book

Summary:	Template for YB Branded Books
Name:		texlive-yb-book
Version:	64586
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(anyfontsize.sty)
#Requires:	tex(biblatex.sty)
#Requires:	tex(bigfoot.sty)
#Requires:	tex(changepage.sty)
#Requires:	tex(chngcntr.sty)
#Requires:	tex(csquotes.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(fancyhdr.sty)
#Requires:	tex(float.sty)
#Requires:	tex(footmisc.sty)
#Requires:	tex(geometry.sty)
#Requires:	tex(ifmtarg.sty)
#Requires:	tex(imakeidx.sty)
#Requires:	tex(lastpage.sty)
#Requires:	tex(libertine.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(mdframed.sty)
#Requires:	tex(microtype.sty)
#Requires:	tex(needspace.sty)
#Requires:	tex(paralist.sty)
#Requires:	tex(pgf.sty)
#Requires:	tex(qrcode.sty)
#Requires:	tex(setspace.sty)
#Requires:	tex(soul.sty)
#Requires:	tex(titlesec.sty)
#Requires:	tex(ulem.sty)
#Requires:	tex(wrapfig.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xifthen.sty)
Requires:	tex(zref.sty)
Provides:	tex(yb-book.cls) = 2024
BuildArch:	noarch

%description
This template helps the author design books published on Amazon
under the "Y.B." brand. You are welcome to use it too for your
own books.

%files
%doc %{_texmfdistdir}/doc/latex/yb-book
%{_texmfdistdir}/tex/latex/yb-book

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10976 |21cr|texlive-ycbook-46201-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ycbook

Summary:	A versatile book class
Name:		texlive-ycbook
Version:	46201
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-ycbook = 2024
Provides:	tex(ycbook.cls) = 2024
BuildArch:	noarch

%description
This class is intended to be an interpretation of the mwbk
class which is a part of the mwcls package. The mwcls classes
are simple, yet powerful and customizable classes that allow
the end-user to customize the layout of headers, headings etc.
They also have the benefit of being more economic in space than
the most common LaTeX classes, while keeping a clear appearance
and a smooth flow.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/tex/latex/ycbook/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10977 |21cr|texlive-yet-another-guide-latex2e-65714-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yet-another-guide-latex2e

Summary:	A short guide to using LaTeX2e to typeset high quality documents
Name:		texlive-yet-another-guide-latex2e
Version:	65714
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
BuildArch:	noarch

%description
This document is a short guide to using LaTeX2e to typeset high
quality documents. It focuses on users of Windows and guides
the reader through installation, some of LaTeX's conventions,
and creating the front matter, body and end matter. The
appendices contain a list of useful facilities not otherwise
covered in this document and a list of helpful resources.

%files
%doc %{_texmfdistdir}/doc/latex/yet-another-guide-latex2e

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10978 |21cr|texlive-yfonts-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/yfonts
# catalog-date 2007-03-01 23:46:20 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-yfonts
Version:	1.4
Release:	1
Summary:	Support for old German fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/yfonts
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yfonts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yfonts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX interface to the old-german fonts designed by Yannis
Haralambous: Gothic, Schwabacher, Fraktur and the baroque
initials.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/yfonts
%doc %{_texmfdistdir}/doc/latex/yfonts
#- source
%doc %{_texmfdistdir}/source/latex/yfonts

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10979 |21cr|texlive-yfonts-otf-65030-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yfonts-otf

Summary:	OpenType version of the Old German fonts designed by Yannis Haralambous
Name:		texlive-yfonts-otf
Version:	65030
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(oldgerm-otf.sty) = 2024
Provides:	tex(yfonts-otf.sty) = 2024
BuildArch:	noarch

%description
This is an OpenType version of the Old German fonts yfrak,
ygoth, yswab designed by Yannis Haralambous in Metafont. The
OpenType features make it easier to deal with the long/round s
and with older forms of umlauts (small e over the letter). A
style file yfonts-otf.sty is provided as a replacement, for
LuaLaTeX and XeLaTeX, of yfonts.sty or oldgerm.sty.

%files
%doc %{_texmfdistdir}/doc/fonts/yfonts-otf
%{_texmfdistdir}/fonts/opentype/public/yfonts-otf
%{_texmfdistdir}/tex/latex/yfonts-otf

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10980 |21cr|texlive-yfonts-t1-36013-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yfonts-t1

Summary:	Old German-style fonts, in Adobe type 1 format
Name:		texlive-yfonts-t1
Version:	36013
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-yfonts-t1 = 2024
Provides:	tex(yfrak.afm) = 2024
Provides:	tex(yfrak.map) = 2024
Provides:	tex(yfrak.pfb) = 2024
Provides:	tex(ygoth.afm) = 2024
Provides:	tex(ygoth.pfb) = 2024
Provides:	tex(yswab.afm) = 2024
Provides:	tex(yswab.pfb) = 2024
BuildArch:	noarch

%description
This package comprises type 1 versions of the Gothic,
Schwabacher and Fraktur fonts of Yannis Haralambous' set of old
German fonts.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/dvips/yfonts-t1/
%{_texmfdistdir}/fonts/afm/public/yfonts-t1/
%{_texmfdistdir}/fonts/map/dvips/yfonts-t1/
%{_texmfdistdir}/fonts/type1/public/yfonts-t1/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10981 |21cr|texlive-yhmath-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31155
# category Package
# catalog-ctan /fonts/yhmath
# catalog-date 2013-07-06 08:44:49 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-yhmath
Epoch:		1
Version:	1.1
Release:	10
Summary:	Extended maths fonts for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/yhmath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yhmath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yhmath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yhmath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The yhmath bundle contains fonts (in type 1 format) and a LaTeX
package for using them.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/yhmath/yhmath.map
%{_texmfdistdir}/fonts/source/public/yhmath/yhbigacc.mf
%{_texmfdistdir}/fonts/source/public/yhmath/yhbigdel.mf
%{_texmfdistdir}/fonts/source/public/yhmath/yhmathex.mf
%{_texmfdistdir}/fonts/source/public/yhmath/yrcmex10.mf
%{_texmfdistdir}/fonts/tfm/public/yhmath/yhcmex10.tfm
%{_texmfdistdir}/fonts/tfm/public/yhmath/yrcmex10.tfm
%{_texmfdistdir}/fonts/type1/public/yhmath/yhcmex.pfb
%{_texmfdistdir}/fonts/vf/public/yhmath/yhcmex10.vf
%{_texmfdistdir}/tex/latex/yhmath/OMXyhex.fd
%{_texmfdistdir}/tex/latex/yhmath/yhmath.sty
%doc %{_texmfdistdir}/doc/fonts/yhmath/Makefile
%doc %{_texmfdistdir}/doc/fonts/yhmath/README
%doc %{_texmfdistdir}/doc/fonts/yhmath/yhcmex10.vpl
%doc %{_texmfdistdir}/doc/fonts/yhmath/yhmath.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/yhmath/yhmath.drv
%doc %{_texmfdistdir}/source/fonts/yhmath/yhmath.dtx
%doc %{_texmfdistdir}/source/fonts/yhmath/yhmath.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10982 |21cr|texlive-yinit-otf-40207-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yinit-otf

Summary:	OTF conversion of Yannis Haralambous' Old German decorative initials
Name:		texlive-yinit-otf
Version:	40207
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex-yinit-otf = 2024
Provides:	tex(Yinit.otf) = 2024
BuildArch:	noarch

%description
This package is a conversion of the yinit font into OTF.
Original Metafont files for yinit are in the yinit package.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/opentype/public/yinit-otf/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10983 |21cr|texlive-yquant-65933-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yquant

Summary:	Typesetting quantum circuits in a human-readable language
Name:		texlive-yquant
Version:	65933
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(yquant-circuit.tex) = 2024
Provides:	tex(yquant-config.tex) = 2024
Provides:	tex(yquant-draw.tex) = 2024
Provides:	tex(yquant-env.tex) = 2024
Provides:	tex(yquant-langhelper.tex) = 2024
Provides:	tex(yquant-lang.tex) = 2024
Provides:	tex(yquantlanguage-groups.sty) = 2024
Provides:	tex(yquantlanguage-qasm.sty) = 2024
Provides:	tex(yquant-prepare.tex) = 2024
Provides:	tex(yquant-registers.tex) = 2024
Provides:	tex(yquant-shapes.tex) = 2024
Provides:	tex(yquant.sty) = 2024
Provides:	tex(yquant-tools.tex) = 2024
BuildArch:	noarch

%description
This LaTeX package allows to quickly draw quantum circuits. It
bridges the gap between the two groups of packages that already
exist: those that use a logic-oriented custom language, which
is then translated into TeX by means of an external program;
and the pure TeX versions that mainly provide some macros to
allow for an easier input. yquant is a pure-LaTeX solution --
i.e., it requires no external program -- that introduces a
logic oriented language and thus brings the best of both worlds
together. It builds on and interacts with TikZ, which brings an
enourmous flexibility for customization of individual circuit.

%files
%doc %{_texmfdistdir}/doc/latex/yquant
%{_texmfdistdir}/tex/latex/yquant

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10984 |21cr|texlive-ytableau-1.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27430
# category Package
# catalog-ctan /macros/latex/contrib/ytableau
# catalog-date 2012-08-16 12:45:33 +0200
# catalog-license lppl1.2
# catalog-version 1.3
Name:		texlive-ytableau
Version:	1.3
Release:	11
Summary:	Many-featured Young tableaux and Young diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ytableau
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ytableau.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ytableau.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ytableau.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides several functions for drawing Young
tableaux and Young diagrams, extending the young and youngtab
packages but providing lots more features. Skew and coloured
tableaux are easy, and pgfkeys-enabled options are provided
both at package load and configurably.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ytableau/ytableau.sty
%doc %{_texmfdistdir}/doc/latex/ytableau/README
%doc %{_texmfdistdir}/doc/latex/ytableau/ytableau.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ytableau/ytableau.dtx
%doc %{_texmfdistdir}/source/latex/ytableau/ytableau.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10985 |21cr|texlive-zbmath-review-template-59693-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zbmath-review-template

Summary:	Template for a zbMATH Open review
Name:		texlive-zbmath-review-template
Version:	59693
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
#Requires:	tex(amsfonts.sty)
#Requires:	tex(amsmath.sty)
#Requires:	tex(amssymb.sty)
#Requires:	tex(babel.sty)
#Requires:	tex(enumitem.sty)
#Requires:	tex(etoolbox.sty)
Requires:	tex(gensymb.sty)
#Requires:	tex(geometry.sty)
Requires:	tex(graphicx.sty)
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
#Requires:	tex(mathrsfs.sty)
#Requires:	tex(mathtools.sty)
#Requires:	tex(scrartcl.cls)
#Requires:	tex(scrlayer-scrpage.sty)
#Requires:	tex(stmaryrd.sty)
Requires:	tex(textcomp.sty)
#Requires:	tex(tikz-cd.sty)
#Requires:	tex(xcolor.sty)
#Requires:	tex(xparse.sty)
Provides:	tex(zb-basics.sty) = 2024
Provides:	tex(zbMATH.cls) = 2024
BuildArch:	noarch

%description
This package contains a template for zbMATH Open reviews. It
will show what your review will look like on zbMATH Open and
you can test whether your LaTeX-Code will compile on our
system. The template has to be compiled using XeLaTeX and
relies on scrartcl, scrlayer-scrpage, amsfonts, amssymb,
amsmath, babel, enumitem, etoolbox, fontspec, gensymb,
geometry, graphicx, mathrsfs, mathtools, stmaryrd, textcomp,
tikz-cd, xcolor, and xparse.

%files
%doc %{_texmfdistdir}/doc/xelatex/zbmath-review-template
%{_texmfdistdir}/tex/xelatex/zbmath-review-template

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10986 |21cr|texlive-zebra-goodies-51554-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zebra-goodies

Summary:	A collection of handy macros for paper writing
Name:		texlive-zebra-goodies
Version:	51554
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zebra-goodies.sty) = 2024
BuildArch:	noarch

%description
This package offers a collection of macros to help in the
process of writing a paper. You may add comments, todo notes,
etc. during revision, in a colourful way. The package also
summarizes the inserted notes at the end of the document. There
are some predefined note commands as well as a way of defining
new ones to suit the user's needs. You may safely remove this
package once the paper is finished. This package depends on the
following other LaTeX packages: kvoptions, manfnt, marginnote,
tikzpagenodes, xcolor, and, optionally, microtype. Note:
"zebra" is the name of the package author's lab.

%files
%doc %{_texmfdistdir}/doc/latex/zebra-goodies/
%{_texmfdistdir}/tex/latex/zebra-goodies/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10987 |21cr|texlive-zennote-65549-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zennote

Summary:	Streamline your note-taking process!
Name:		texlive-zennote
Version:	65549
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zennote.sty) = 2024
BuildArch:	noarch

%description
This package aims to provide you with an easy interface to
speed up the process when organizing and producing elegant
notes. All the tables, figures, equations, and listings are
labelled according to the notenumber with the \titlebox
command. The noteframe environment helps you generate fancy
colored boxes to emphasize the important information (e.g.
Theorems, Equations, Proofs, etc.) in your document. You can
customize the style and color to denote different categories,
too.

%files
%doc %{_texmfdistdir}/doc/latex/zennote
%{_texmfdistdir}/tex/latex/zennote

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10988 |21cr|texlive-zhlineskip-51142-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zhlineskip

Summary:	Line spacing for CJK documents
Name:		texlive-zhlineskip
Version:	51142
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zhlineskip.sty) = 2024
BuildArch:	noarch

%description
This package supports typesetting CJK documents. It allows
users to specify the two ratios between the leading and the
font size of the body text and the footnote text. For CJK
typesetting, these ratios usually range from 1.5 to 1.67. This
package is also capable of restoring the math leading to that
of the Latin text (usually 1.2 times the font size). Finally,
it is possible to achieve the Microsoft Word multiple line
spacing style using zhlineskip.

%files
%doc %{_texmfdistdir}/doc/latex/zhlineskip
%{_texmfdistdir}/tex/latex/zhlineskip

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10989 |21cr|texlive-zhlipsum-54994-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zhlipsum

Summary:	Chinese dummy text
Name:		texlive-zhlipsum
Version:	54994
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zhlipsum-big5.def) = 2024
Provides:	tex(zhlipsum-gbk.def) = 2024
Provides:	tex(zhlipsum.sty) = 2024
Provides:	tex(zhlipsum-utf8.def) = 2024
BuildArch:	noarch

%description
This package provides an interface to dummy text in Chinese
language, which will be useful for testing Chinese documents.
UTF-8, GBK and Big5 encodings are supported.

%files
%doc %{_texmfdistdir}/doc/latex/zhlipsum/
%{_texmfdistdir}/tex/latex/zhlipsum/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10990 |21cr|texlive-zhmetrics-uptex-40728-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zhmetrics-uptex

Summary:	Chinese font metrics for upTeX
Name:		texlive-zhmetrics-uptex
Version:	40728
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tlpkg
Provides:	tex(upmono-h.tfm) = 2024
Provides:	tex(upmono-v.tfm) = 2024
Provides:	tex(upsansb-h.tfm) = 2024
Provides:	tex(upsansb-v.tfm) = 2024
Provides:	tex(upsans-h.tfm) = 2024
Provides:	tex(upsans-v.tfm) = 2024
Provides:	tex(upserifb-h.tfm) = 2024
Provides:	tex(upserifb-v.tfm) = 2024
Provides:	tex(upserif-h.tfm) = 2024
Provides:	tex(upserifit-h.tfm) = 2024
Provides:	tex(upserifit-v.tfm) = 2024
Provides:	tex(upserif-v.tfm) = 2024
Provides:	tex(upzhmono-h.tfm) = 2024
Provides:	tex(upzhmono-h.vf) = 2024
Provides:	tex(upzhmono-v.tfm) = 2024
Provides:	tex(upzhmono-v.vf) = 2024
Provides:	tex(upzhsansb-h.tfm) = 2024
Provides:	tex(upzhsansb-h.vf) = 2024
Provides:	tex(upzhsansb-v.tfm) = 2024
Provides:	tex(upzhsansb-v.vf) = 2024
Provides:	tex(upzhsans-h.tfm) = 2024
Provides:	tex(upzhsans-h.vf) = 2024
Provides:	tex(upzhsans-v.tfm) = 2024
Provides:	tex(upzhsans-v.vf) = 2024
Provides:	tex(upzhserifb-h.tfm) = 2024
Provides:	tex(upzhserifb-h.vf) = 2024
Provides:	tex(upzhserifb-v.tfm) = 2024
Provides:	tex(upzhserifb-v.vf) = 2024
Provides:	tex(upzhserif-h.tfm) = 2024
Provides:	tex(upzhserif-h.vf) = 2024
Provides:	tex(upzhserifit-h.tfm) = 2024
Provides:	tex(upzhserifit-h.vf) = 2024
Provides:	tex(upzhserifit-v.tfm) = 2024
Provides:	tex(upzhserifit-v.vf) = 2024
Provides:	tex(upzhserif-v.tfm) = 2024
Provides:	tex(upzhserif-v.vf) = 2024
Provides:	tex-zhmetrics-uptex = 2024
BuildArch:	noarch

%description
The package contains some Chinese font metrics (JFM, VF, etc)
for upTeX engine, together with a simple DVIPDFMx font mapping
of Fandol fonts for DVIPDFMx.

%files
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/fonts/tfm/public/zhmetrics-uptex/
%{_texmfdistdir}/fonts/vf/public/zhmetrics-uptex/

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10991 |21cr|texlive-zitie-60676-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zitie

Summary:	Create CJK character calligraphy practicing sheets
Name:		texlive-zitie
Version:	60676
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zitie.luatex.def) = 2024
Provides:	tex(zitie.sty) = 2024
Provides:	tex(zitie.xetex.def) = 2024
BuildArch:	noarch

%description
This is a LaTeX package for creating CJK character calligraphy
practicing sheets (copybooks). Currently, only XeTeX is
supported.

%files
%doc %{_texmfdistdir}/doc/xelatex/zitie
%{_texmfdistdir}/tex/xelatex/zitie

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10992 |21cr|texlive-zootaxa-bst-50619-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zootaxa-bst

Summary:	A BibTeX style for the journal Zootaxa
Name:		texlive-zootaxa-bst
Version:	50619
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zootaxa.bst) = 2024
BuildArch:	noarch

%description
This package provides a .bst reference style file for the
journal Zootaxa that publishes contributions in zoology and
classification. This is a fork of apa.bst as provided by TeX
Live since this style file resembled the most Zootaxa's own
style. Further modifications were made to the code in order to
generate in-text citations and bibliography sections
appropriately.

%files
%doc %{_texmfdistdir}/doc/bibtex/zootaxa-bst
%{_texmfdistdir}/bibtex/bst/zootaxa-bst

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10993 |21cr|texlive-zref-62977-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zref

Summary:	A new reference scheme for LaTeX
Name:		texlive-zref
Version:	62977
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zref-abspage.sty) = 2024
Provides:	tex(zref-abspos.sty) = 2024
Provides:	tex(zref-base.sty) = 2024
Provides:	tex(zref-counter.sty) = 2024
Provides:	tex(zref-dotfill.sty) = 2024
Provides:	tex(zref-env.sty) = 2024
Provides:	tex(zref-hyperref.sty) = 2024
Provides:	tex(zref-lastpage.sty) = 2024
Provides:	tex(zref-marks.sty) = 2024
Provides:	tex(zref-nextpage.sty) = 2024
Provides:	tex(zref-pageattr.sty) = 2024
Provides:	tex(zref-pagelayout.sty) = 2024
Provides:	tex(zref-perpage.sty) = 2024
Provides:	tex(zref-runs.sty) = 2024
Provides:	tex(zref-savepos.sty) = 2024
Provides:	tex(zref.sty) = 2024
Provides:	tex(zref-thepage.sty) = 2024
Provides:	tex(zref-titleref.sty) = 2024
Provides:	tex(zref-totpages.sty) = 2024
Provides:	tex(zref-user.sty) = 2024
Provides:	tex(zref-xr.sty) = 2024
BuildArch:	noarch

%description
This package offers a means to remove the limitation, of only
two properties, that is inherent in the way LaTeX's reference
system works. The package implements an extensible referencing
system, where properties may be defined and used in the course
of a document. It provides an interface for macro programmers
to access the new reference scheme and some modules that use
it. Modules available are: zref-user, use zref for
"traditional" labels and references; zref-abspage, retrieve
absolute page numbers (physical pages, as opposed to the
'logical' page number that is normally typeset when a page
number is requested; zref-lastpage, provide a zref-label for
the last page of the document; zref-nextpage, provide the page
number of the next page of the document; zref-totpages, provide
the total number of pages in the document; zref-pagelayout,
provide the page layout parameters of a each page (which may
then be printed at the end of the document); zref-perpage, make
a counter reset for each new page; zref-titleref, make section
title or caption text available through the reference system;
zref-savepos, make positions on a page available; zref-dotfill,
controlled dot-filling; zref-env, record the latest
environment's name and the line it started on; and zref-xr,
provide the facilities of the xr and xr-hyper packages.

%files
%doc %{_texmfdistdir}/doc/latex/zref
%{_texmfdistdir}/tex/latex/zref

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10994 |21cr|texlive-zref-check-63845-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zref-check

Summary:	Flexible cross-references with contextual checks based on zref
Name:		texlive-zref-check
Version:	63845
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zref-check.sty) = 2024
BuildArch:	noarch

%description
This package provides an user interface for making LaTeX
cross-references flexibly, while allowing to have them checked
for consistency with the document structure as typeset.
Statements such as "above", "on the next page", "previously",
"as will be discussed", "on the previous chapter" and so on can
be given to \zcheck in free-form, and a set of "checks" can be
specified to be run against a given "label", which will result
in a warning at compilation time if any of these checks fail.
\zctarget and the zcregion environment are also defined as a
means to easily set label targets to arbitrary places in the
text which can be referred to by \zcheck.

%files
%doc %{_texmfdistdir}/doc/latex/zref-check
%{_texmfdistdir}/tex/latex/zref-check

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10995 |21cr|texlive-zref-clever-66021-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zref-clever

Summary:	Clever LaTeX cross-references based on zref
Name:		texlive-zref-clever
Version:	66021
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zref-clever.sty) = 2024
BuildArch:	noarch

%description
This package provides a user interface for making LaTeX
cross-references which automates some of their typical
features, thus easing their input in the document and improving
the consistency of typeset results. A reference made with
\zcref includes a "name" according to its "type", and lists of
multiple labels can be automatically sorted and compressed into
ranges when due. The reference format is highly and easily
customizable, both globally and locally. The package is based
on zref's extensible referencing system.

%files
%doc %{_texmfdistdir}/doc/latex/zref-clever
%{_texmfdistdir}/tex/latex/zref-clever

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10996 |21cr|texlive-zref-vario-65453-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zref-vario

Summary:	Extended LaTeX page cross-references with varioref and zref-clever
Name:		texlive-zref-vario
Version:	65453
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tools
Requires:	tex(zref-clever.sty)
Provides:	tex(zref-vario.sty) = 2024
BuildArch:	noarch

%description
This package offers a compatibility layer for varioref to be
used alongside zref-clever. It provides \z... counterparts to
varioref's main reference commands, each of which essentially
does some (scoped) setup for varioref, then calls the original
one.

%files
%doc %{_texmfdistdir}/doc/latex/zref-vario
%{_texmfdistdir}/tex/latex/zref-vario

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10997 |21cr|texlive-zx-calculus-60838-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zx-calculus

Summary:	A library to typeset ZX Calculus diagrams
Name:		texlive-zx-calculus
Version:	60838
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(tikzlibraryzx-calculus.code.tex) = 2024
Provides:	tex(zx-calculus.sty) = 2024
BuildArch:	noarch

%description
This library (based on the great TikZ and TikZ-cd packages)
allows you to typeset ZX-calculus directly in LaTeX. It comes
with many pre-built wire shapes, a highly customizable node
style (with multiple flavours for putting labels inside or
outside nodes), and a "debugging" mode to avoid getting lost in
big diagrams.

%files
%doc %{_texmfdistdir}/doc/latex/zx-calculus
%{_texmfdistdir}/tex/latex/zx-calculus

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10998 |21cr|texlive-zztex-55862-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zztex

Summary:	A full-featured TeX macro package for producing books, journals, and manuals
Name:		texlive-zztex
Version:	55862
Release:	1
License:	LPPL1.3
Group:		Publishing
Url:		https://www.ctan.org
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/%{oname}.doc.tar.xz
BuildRequires:	texlive-tlpkg
Requires:	texlive-tlpkg
Requires:	texlive-kpathsea
Provides:	tex(zzart.tex) = 2024
Provides:	tex(zzbiblio.tex) = 2024
Provides:	tex(zzbibtex.tex) = 2024
Provides:	tex(zzblock.tex) = 2024
Provides:	tex(zzcmmath.tex) = 2024
Provides:	tex(zzcomenc.tex) = 2024
Provides:	tex(zzdiv.tex) = 2024
Provides:	tex(zzdoc.tex) = 2024
Provides:	tex(zzerror.tex) = 2024
Provides:	tex(zzfloat.tex) = 2024
Provides:	tex(zzfont.tex) = 2024
Provides:	tex(zzfront.tex) = 2024
Provides:	tex(zzhelp.tex) = 2024
Provides:	tex(zzhmodeb.tex) = 2024
Provides:	tex(zzhmode.tex) = 2024
Provides:	tex(zzhyper.tex) = 2024
Provides:	tex(zzhyph.tex) = 2024
Provides:	tex(zzindexv1.tex) = 2024
Provides:	tex(zzindexv2.tex) = 2024
Provides:	tex(zzio.tex) = 2024
Provides:	tex(zzlist.tex) = 2024
Provides:	tex(zzltrspc.tex) = 2024
Provides:	tex(zzlucida.tex) = 2024
Provides:	tex(zzmath.tex) = 2024
Provides:	tex(zzmathv3.tex) = 2024
Provides:	tex(zzmathv4.tex) = 2024
Provides:	tex(zzmathv5.tex) = 2024
Provides:	tex(zzmathv6.tex) = 2024
Provides:	tex(zzmerge.tex) = 2024
Provides:	tex(zzmisc.tex) = 2024
Provides:	tex(zzmtime.tex) = 2024
Provides:	tex(zznewmath.tex) = 2024
Provides:	tex(zznote.tex) = 2024
Provides:	tex(zzoverlay.tex) = 2024
Provides:	tex(zzpage.tex) = 2024
Provides:	tex(zzplain.tex) = 2024
Provides:	tex(zzprog.tex) = 2024
Provides:	tex(zzps.tex) = 2024
Provides:	tex(zzreg.tex) = 2024
Provides:	tex(zzrunner.tex) = 2024
Provides:	tex(zzsect.tex) = 2024
Provides:	tex(zztabbing.tex) = 2024
Provides:	tex(zztabularv1.tex) = 2024
Provides:	tex(zztabularv2.tex) = 2024
Provides:	tex(zztabularv3.tex) = 2024
Provides:	tex(zztag.tex) = 2024
Provides:	tex(zztex.tex) = 2024
Provides:	tex(zztext.tex) = 2024
Provides:	tex(zzttladj.tex) = 2024
Provides:	tex(zztures.tex) = 2024
Provides:	tex(zzver.tex) = 2024
Provides:	tex(zzvmode.tex) = 2024
Provides:	tex(zzxref.tex) = 2024
BuildArch:	noarch

%description
The ZzTeX macro package is a full-featured TeX macro package
specially designed for producing books, journals, and manuals.
Development of the package began in 1989. Since then, about 500
textbooks and journals have been produced with it for a variety
of publishers. Numerous authors have used the package to
produce subsequent editions of their books. ZzTeX runs under
Plain TeX. The only documentation available for the package is
contained in the zz*.dat files that accompany the TeX files.

%files
%doc %{_texmfdistdir}/doc/plain/zztex
%{_texmfdistdir}/tex/plain/zztex

#------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
rm -rf tlpkg
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 10999 |21cr|texmaker-5.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:            texmaker
Version:         5.0.3
Release:         6
Epoch:           1
Summary:         A QT-based LATEX editor
License:         GPLv2+
Group:           Publishing
URL:             http://www.xm1math.net/texmaker/
Source0:         http://www.xm1math.net/texmaker/%{name}-%{version}.tar.bz2
### TODO: switch to qt5 build ###
# a compilation trouble has been fixed with Qt 5.5.x

BuildRequires:   desktop-file-utils
BuildRequires:   hunspell-devel
BuildRequires:   pkgconfig(Qt5Core)
BuildRequires:   pkgconfig(Qt5Concurrent)
BuildRequires:   pkgconfig(Qt5Gui)
BuildRequires:   pkgconfig(Qt5Network)
BuildRequires:   pkgconfig(Qt5PrintSupport)
BuildRequires:   pkgconfig(Qt5Script)
BuildRequires:   pkgconfig(Qt5Widgets)
BuildRequires:   pkgconfig(Qt5Xml)

Requires:        aspell
Requires:	 texlive-scheme-tetex

%description
Texmaker is a free LaTeX editor that integrates many tools needed to develop
documents with LaTeX, in just one application.

It includes the following features:
- an Unicode editor to write your LaTeX source files 
  (syntax highlighting, undo-redo, search-replace, ...)
- the principal LaTex tags can be inserted directly with the "LaTeX", 
  "Math" and "Greek" menus 
- 370 mathematical symbols can be inserted in just one click 
- wizards to generate code ('Quick document', 'Quick letter', tabular,
  tabbing and array environments) 
- LaTeX-related programs can be launched via the "Tools" menu 
- the standard Bibtex entry types can be inserted in the ".bib" file
  with the "Bibliography" menu 
- a "structure view" of the document for easier navigation of a document 
  (by clicking on an item in the "Structure" frame, you can jump directly 
  to the corresponding part of your document 
- extensive LaTeX documentation 
- in the "Messages / Log File" frame, you can see information about processes 
  and the log file after a LaTeX compilation 
- the "Next Latex Error" and "Previous Latex Error" commands let you reach the
  LaTeX errors detected by Kile in the log file 
- by clicking on the number of a line in the log file, the cursor jumps to the 
  corresponding line in the editor 

%prep
%setup -q
# not utf8
for file in dictionaries/{README_DIC_fr_FR,README_pt_PT,README_en_US,README_de_DE_frami,it_IT_README}.txt; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%qmake_qt5
%make

%install
%makeinstall INSTALL_ROOT=%{buildroot}

# icons
for size in 16 22 32 48 64 128
do
    dir="%{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/"
    install -d -m755 $dir
    ln -s "../../../../texmaker/texmaker${size}x${size}.png" "%{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png"
done
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
ln -s ../../../../texmaker/texmaker.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
install -d -m755 %{buildroot}%{_miconsdir}/
ln -s ../../texmaker/texmaker16x16.png %{buildroot}%{_miconsdir}/%{name}.png
ln -s ../texmaker/texmaker32x32.png %{buildroot}%{_iconsdir}/%{name}.png
install -d -m755 %{buildroot}%{_liconsdir}/
ln -s ../../texmaker/texmaker48x48.png %{buildroot}%{_liconsdir}/%{name}.png

install -d -m 755 %{buildroot}%{_docdir}/%{name}/
mv -f %{buildroot}%{_datadir}/texmaker/*.txt %{buildroot}%{_datadir}/texmaker/AUTHORS %{buildroot}%{_datadir}/texmaker/COPYING %{buildroot}%{_docdir}/%{name}/


%find_lang %{name} --with-qt --all-name


%files -f %{name}.lang
%doc %{_docdir}/%{name}
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.html
%{_datadir}/%{name}/*.png
%{_datadir}/%{name}/*.aff
%{_datadir}/%{name}/*.dic
%{_datadir}/%{name}/*.svg
%{_datadir}/%{name}/*.tms
%{_datadir}/metainfo/%{name}*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11000 |21cr|texstudio-4.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free cross-platform LaTeX editor
Name:		texstudio
Version:	4.5.2
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://texstudio.sourceforge.net/
Source0:	https://github.com/texstudio-org/texstudio/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:         texstudio-install-manpage-and-icon.patch
Patch3:         texstudio-disable-update-check.patch
BuildRequires:  qt5-tools
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5UiTools)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(phonon4qt5)
BuildRequires:  pkgconfig(poppler-cpp)
BuildRequires:  pkgconfig(poppler-qt5)
BuildRequires:  pkgconfig(hunspell)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  quazip1-qt5-devel
Requires:	desktop-file-utils

%description
TeXstudio is a LaTeX IDE that gives you an environment where you can easily
create and manage LaTeX documents. It provides modern writing support, like
interactive spell checking, code folding and syntax highlighting. Also it
serves as a starting point from where you can easily run all necessary LaTeX
tools.

%files
%doc README
%{_bindir}/texstudio
%{_datadir}/%{name}/*
%{_datadir}/applications/texstudio.desktop
%{_datadir}/metainfo/texstudio.metainfo.xml
%{_datadir}/icons/hicolor/scalable/apps/texstudio.svg
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
rm -r src/hunspell src/quazip
#src/quazip src/qtsingleapplication
%apply_patches
cp INSTALL README

%build
%qmake_qt5 \
        CONFIG-=debug \
        USE_SYSTEM_HUNSPELL=1 \
        USE_SYSTEM_QUAZIP=1 \
        QUAZIP_LIB=-lquazip1-qt5 \
        QUAZIP_INCLUDE=%{_includedir}/QuaZip-Qt5-1.3/quazip \
        texstudio.pro

%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11001 |21cr|text-engine-0.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_ver 0.1

%define libname %mklibname %{name} %{api_ver}
%define devname %mklibname %{name} %{api_ver} -d

Summary:	Rich-text editing framework for GTK
Name:		text-engine
Version:	0.1.1
Release:	3
License:	LGPLv2+
Group:		Development/GNOME and GTK+
Url:		https://github.com/mjakeman/text-engine/
Source0:	https://github.com/mjakeman/text-engine/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Rich-text editing framework for GTK.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Rich-text editing framework library for GTK
Group:		System/Libraries

%description -n %{libname}
Rich-text editing framework library for GTK.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api_ver}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc README.md
%license COPYING*
%{_bindir}/%{name}-demo
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}-%{api_ver}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11002 |21cr|textext-0.4.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Editable LaTeX objects for Inkscape
Name: 	 textext
Version: 0.4.4
Release: 5
Source0: %{name}-%{version}.tar.lzma
License: BSD
Group: 	 Graphics
Url: 	 http://www.elisanet.fi/ptvirtan/software/textext/
BuildArch: noarch
Requires: inkscape >= 0.46, tetex-latex, python-lxml
# Earlier revisions of pstoedit were not compiled with plot-svg support:
Requires: pstoedit >= 3.45-5mdv2008.0

%description
Textext is an extension for Inkscape that allows one to insert text
typeset with LaTeX into one's graphics. Unlike similar extensions such
as Inklatex, Textext provides the ability to edit LaTeX objects after
creation.

%prep
%setup -q -c %{name}-%{version}

%install
%__rm -rf %{buildroot}
%__mkdir -p %{buildroot}%{_datadir}/inkscape/extensions

%__install -m 644 textext.inx %{buildroot}%{_datadir}/inkscape/extensions/
%__install -m 755 textext.py %{buildroot}%{_datadir}/inkscape/extensions/

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_datadir}/inkscape/extensions/textext.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11003 |21cr|textsnatcher-2.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname TextSnatcher

Summary:	Copy Text from Images with ease, perform OCR operations in seconds
Name:		textsnatcher
Version:	2.0.0
Release:	3
License:	GPLv3
Group:		Text tools
Url:		https://github.com/RajSolai/TextSnatcher
Source0:	https://github.com/RajSolai/TextSnatcher/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		TextSnatcher-2.0.0-hard-ru-translate.patch
Patch1:		TextSnatcher-2.0.0-delete-unneed-file.patch
BuildRequires:	granite-vala
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(granite)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libportal)
BuildRequires:	pkgconfig(tesseract)
Requires:	scrot
Requires:	tesseract
Requires:	tesseract-ara
Requires:	tesseract-chi_sim
Requires:	tesseract-deu
Requires:	tesseract-eng
Requires:	tesseract-fra
Requires:	tesseract-jpn
Requires:	tesseract-nld
Requires:	tesseract-rus
Requires:	tesseract-tur

%description
Copy Text from Images with ease, perform OCR operations in seconds.

%files
%{_appdatadir}/com.github.rajsolai.%{name}.appdata.xml
%{_bindir}/%{name}
%{_bindir}/com.github.rajsolai.%{name}
%{_datadir}/applications/com.github.rajsolai.%{name}.desktop
%{_iconsdir}/hicolor/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%meson
%meson_build

%install
%meson_install
ln -s %{_bindir}/com.github.rajsolai.%{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11004 |21cr|texworks-0.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple interface for working with TeX documents
Name:		texworks
Version:	0.6.8
Release:	1
License:	GPLv2
Group:		Publishing
Url:		http://www.tug.org/texworks/
Source0:	https://github.com/TeXworks/texworks/archive/release-%{version}.tar.gz?/%{name}-release-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(lua)

%description
TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc)
documents, with a Unicode-based, TeX-aware editor, integrated PDF
viewer, and a clean, simple interface accessible to casual and
non-technical users.

TeXworks is inspired by Dick Koch's award-winning TeXShop program for
Mac OS X, which has made quality typesetting through TeX accessible to
a wider community of users, without a technical or intimidating
face. The goal of TeXworks is to deliver a similarly integrated,
easy-to-use environment for users on other platforms, especially
GNU/Linux and Windows.

%files
%doc COPYING NEWS README.md
%{_bindir}/%{name}
%{_libdir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
%{_mandir}/man1/%{name}.1*
%{_datadir}/icons/hicolor/*/apps/TeXworks.png

#--------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{version}

%build
%cmake \
	-DDESIRED_QT_VERSION=5 \
	-DTW_BUILD_ID=ROSA \
	-DWITH_PYTHON=ON \
	-DTeXworks_PLUGIN_DIR=%{_libdir}/%{name} \
	-DTeXworks_DIC_DIR=%{_datadir}/myspell
%make

%install
pushd build
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11005 |21cr|tgif-4.2.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define license QPL
%define prefix  /usr/X11R6

%define debug_package %{nil}

Summary: 	Xlib-based 2-D drawing tool
Name: 		tgif
Version: 	4.2.5
Release: 	6
Source0: 	%{name}-%{license}-%{version}.tar.gz
Source2:	tgif.png
Source3:	tgif-large.png
Source4:	tgif-mini.png
License: 	QPL
Group: 		Graphics
Url: 		http://bourbon.usc.edu/tgif/
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)

%description
Tgif (pronounced t-g-i-f) is an Xlib-based interactive 2-D drawing tool 
for Linux and most UNIX platforms.

%prep
%setup -q -n %{name}-%{license}-%{version}

%build
%configure
%make

%install
install -d -m 755 %{buildroot}%{prefix}/bin
install -d -m 755 %{buildroot}%{prefix}/lib/X11/tgif
install -d -m 755 %{buildroot}%{prefix}/man/man1

# Don't use make install because the paths are not correct:
install -s tgif %{buildroot}%{prefix}/bin/tgif
install -m 0444 tgif.Xdefaults %{buildroot}%{prefix}/lib/X11/tgif
install -m 0444 *.sym %{buildroot}%{prefix}/lib/X11/tgif
install -m 0444 keys.obj %{buildroot}%{prefix}/lib/X11/tgif

# Compress man page before installing:
cp tgif.man tgif.1
install -m 644 tgif.1 %{buildroot}%{prefix}/man/man1/

# Icons:
install -D -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/tgif.png
install -D -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/tgif.png
install -D -m 644 %{SOURCE4} %{buildroot}%{_miconsdir}/tgif.png

# XDG menu:
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Tgif
Comment=Xlib-based 2-D drawing tool
Comment[ru]=Создание 2D рисунков
Exec=%{prefix}/bin/%{name} %f
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Graphics;VectorGraphics;
EOF

%files
%doc HISTORY README LICENSE.QPL Copyright
%{prefix}/bin/tgif
%dir %{prefix}/lib/X11/tgif
%{prefix}/lib/X11/tgif/*
%{prefix}/man/man1/*
%{_iconsdir}/tgif.png
%{_miconsdir}/tgif.png
%{_liconsdir}/tgif.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11006 |21cr|tgsend-1.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# strange macro from ALT rpm-build-fpc for compatibility with original build commands
%define fpc_arch %([ "%_lib" = lib64 ] && echo x86_64-linux || echo i386-linux)

# On i586, fpc generates debuginfo in old format
# https://en.wikipedia.org/wiki/Stabs
# instead of DWARF. It cannot be handled in RPM.
%ifnarch x86_64
%define debug_package %{nil}
%endif

Summary:		Simple Telegram bot sender
Name:			tgsend
Version:		1.3.1
Release:		2
License:		GPLv3
Group:			Networking/WWW
# Author: Anton Shevtsov <x09@altlinux.org>
# There is no git, track http://git.altlinux.org/people/x09/packages/?p=tgsend.git
Source:			%{name}-%{version}.tar
BuildRequires:	fpc
BuildRequires:	lazarus
BuildRequires:	upx
BuildRequires:	pkgconfig(openssl)
ExclusiveArch:	x86_64 %ix86

%description
Simple Telegram bot message/file console sender

%files
%{_bindir}/tgsend
%{_sysconfdir}/tgsend.conf.example
#-----------------------------------------------------------------------------------

%prep
%setup -q

%build
lazbuild --verbose synapse/laz_synapse.lpk
fpc \
	-MObjFPC -Scgi -CX -Cg -Os3 -XX -l -vewnhibq \
%ifarch x86_64
	-g -gw4 \
%endif
	-Fu./synapse/lib/%{fpc_arch} \
	-Fu%{_libdir}/lazarus/packager/units/%{fpc_arch} \
	-Fu./ -o./%{name} \
	-Fr%{_libdir}/fpc/msg/errore.msg \
	%{name}.lpr

%install
mkdir -p  %{buildroot}%{_sysconfdir}
mkdir -p  %{buildroot}%{_bindir}
install -m 755 tgsend %{buildroot}%{_bindir}
# Note: default config is not valid, a config is optional
install -m 644 tgsend.conf %{buildroot}%{_sysconfdir}/tgsend.conf.example

# Dramatically reduce size of the binary by UPX-packing
# Pack to UPX after stripping debuginfo
cat << EOF > __debug_install_post.sh
set -xe
%__debug_install_post
upx %{buildroot}%{_bindir}/tgsend
EOF
chmod +x ./__debug_install_post.sh
%define __debug_install_post ./__debug_install_post.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11007 |21cr|tgt-1.0.84-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without iser
%bcond_with fcoe

Summary:	The SCSI target daemon and utility programs
Name:		tgt
Version:	1.0.84
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://stgt.sourceforge.net/
Source0:	https://github.com/fujita/tgt/archive/v%{version}.zip
%if %{with iser}
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	libibverbs-devel
BuildRequires:	rdmacm-devel
%endif

%description
The SCSI target package contains the daemon and tools to setup a SCSI targets.
Currently, software iSCSI targets are supported.

%files
%doc README.md doc/README.* doc/*.txt conf/examples/*
%doc %{_docdir}/tgt/html
%{_sbindir}/tgtd
%{_sbindir}/tgtadm
%{_sbindir}/tgt-setup-lun
%{_sbindir}/tgt-admin
%{_sbindir}/tgtimg
%{_mandir}/man8/*
%{_mandir}/man5/*
%{_unitdir}/tgtd.service
%config(noreplace) %{_sysconfdir}/tgt/targets.conf
%{_sysconfdir}/tgt/examples

%post
%systemd_post tgtd.service

%preun
%systemd_preun tgtd.service

#----------------------------------------------------------------------------

%prep
%setup -q -n tgt-%{version}

%build
%make RPM_OPT_FLAGS="%{optflags} -fno-strict-aliasing" \
%if %with iser
ISCSI_RDMA=1 \
%endif
%if %with fcoe
FCOE=1 \
%endif
ISCSI=1

%install
%makeinstall_std
install -d %{buildroot}%{_unitdir}
install -m0644 scripts/tgtd.service %{buildroot}%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11008 |21cr|thedarkmod-2.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%ifarch x86_64 aarch64
%define tdm_targetarch x64
%else
%ifarch %{ix86}
%define tdm_targetarch x86
%endif
%endif

Summary:	Steampunk Stealth Game
Name:		thedarkmod
Version:	2.10
Release:	1
License:	GPLv3 and CC-BY-SA
Group:		Games/Arcade
Url:		http://www.thedarkmod.com/
Source0:	http://www.thedarkmod.com/sources/%{name}.%{version}.src.7z
Source1:	thedarkmod32
Source2:	thedarkmod64
Source4:	thedarkmod.png
Source5:	thedarkmod.desktop
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	hicolor-icon-theme
BuildRequires:	boost-devel
BuildRequires:	bzip2-devel
BuildRequires:	glibc-devel
BuildRequires:	tinyxml-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	stdc++-static-devel
BuildRequires:	p7zip
BuildRequires:	zip
BuildRequires:	m4
Requires:	xdg-utils
Requires:	opengl-games-utils
ExclusiveArch:	%{ix86} %{x86_64}


%description
A first-person stealth game. In it you play a hooded figure
slinking through the shadows of a gothic steampunk city,
hunting priceless valuables while avoiding the swords and
arrows of those hired to stop you.

%files
%doc LICENSE.txt
%{_gamesbindir}/thedarkmod
%{_libexecdir}/thedarkmod
%{_datadir}/applications/thedarkmod.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
#---------------------------------------------------------

%prep
%setup -qc %{name}-%{version}
%apply_patches

%build
export CXXFLAGS="$CXXFLAGS -Wno-error=format-security"
%cmake -DGAME_DIR=.
%make

%install
mkdir -p %{buildroot}%{_libexecdir}/thedarkmod/
cp -R build/thedarkmod.%{tdm_targetarch} %{buildroot}%{_libexecdir}/thedarkmod/thedarkmod.bin
cp -R build/glprogs %{buildroot}%{_libexecdir}/thedarkmod/

# wrapper
# let's install data in home and avoid all linting hacks .Sflo
mkdir -p %{buildroot}%{_gamesbindir}
%ifarch x86_64
cp -R %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
%else
cp -R %{SOURCE1} %{buildroot}%{_gamesbindir}/%{name}
%endif
chmod +x %{buildroot}%{_gamesbindir}/%{name}
#


for size in 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size %{SOURCE4} \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install %{SOURCE5} %{buildroot}%{_datadir}/applications/thedarkmod.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11009 |21cr|thewidgetfactory-0.2.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Test tool for GTK2 theme
Name:		thewidgetfactory
Version:	0.2.1
Release:	12
License:	GPLv2+
Group: 		Development/Tools
Url:		http://www.stellingwerff.com/?page_id=10
Source0:	http://www.stellingwerff.com/TheWidgetFactory/%{name}-%{version}.tar.bz2
# (fc) add more widgets
Patch0:		thewidgetfactory-0.2.1-newwidgets.patch.bz2
# (fc) 0.2.1-3mdv port to libglade
Patch1:		thewidgetfactory-0.2.1-libglade.patch
Patch2:		thewidgetfactory-add-missing-includes.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)

%description
TheWidgetFactory is a showcase of GTK2 widgets, only useful to theme
developers.

%files
%doc README ChangeLog AUTHORS
%{_bindir}/*
%{_datadir}/thewidgetfactory

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .newwidgets
%patch1 -p1 -b .libglade
%patch2 -p1

%build
# needed by patch1
autoreconf -fi
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11010 |21cr|thinkfan-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple and lightweight fan control program
Name:		thinkfan
Version:	1.3.1
Release:	1
License:	GPLv3+
Group:		System/Base
Url:		https://github.com/vmatare/thinkfan
Source0:	https://github.com/vmatare/thinkfan/archive/refs/tags/1.3.1.tar.gz?/%{name}-%{version}.tar.gz
Source2:	%{name}.modprobe
Patch0:		thinkfan-systemd.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(yaml-cpp)

%description
Thinkfan is a simple, lightweight fan control program. Originally designed
specifically for IBM/Lenovo Thinkpads, it now supports any kind of system via
the sysfs hwmon interface (/sys/class/hwmon). It is designed to eat as little
CPU power as possible.

%files
%doc COPYING README.md examples/*
%{_sysconfdir}/modprobe.d/thinkfan.conf
%{_sysconfdir}/systemd/system/thinkfan.service.d/override.conf
%{_sbindir}/%{name}
%{_unitdir}/*.service
%{_mandir}/man1/*
%{_mandir}/man5/*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun %{name}.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

# Install modprobe configuration file
install -Dpm 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/modprobe.d/thinkfan.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11011 |21cr|thttpd-2.25b-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _default_patch_fuzz 2
%define webroot /var/lib/thttpd

Summary:	Throttleable lightweight httpd server

Name:		thttpd
Version:	2.25b
Release:	15
License:	BSD
Group:		System/Servers
URL:		http://www.acme.com/software/thttpd
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.service
Source2:	%{name}.conf
Source3:	%{name}.logrotate
Source4:	%{name}.sysconfig
Source5:	%{name}-index.html
Source11:	%{name}_powered_3.png
# http://rekl.yi.org/thttpd/pub/patch-thttpd-2.25b-re1
Patch0:		patch-thttpd-2.25b-re1
# http://jonas.fearmuffs.net/software/thttpd/thttpd-2.25b+impan-pl5.diff.gz
Patch1:		thttpd-2.25b+impan-pl5.diff
# http://www.ogris.de/thttpd/thttpd-2.25b.access.patch.diff
Patch2:		thttpd-2.25b.access.patch.diff
Patch3:		thttpd-2.25b-getline_conflict_fix.diff
Requires(post,preun):	rpm-helper
Provides:	webserver
BuildRequires:	zlib-devel

%description
Thttpd is a very compact no-frills httpd serving daemon that can
handle very high loads.  While lacking many of the advanced
features of Apachee, thttpd operates without forking and is
extremely efficient in memory use.  Basic support for cgi scripts,
authentication, and ssi is provided for. Advanced features include
the ability to throttle traffic.

%prep

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p0

# tag the default index.html page
perl -pi -e "s|_NAME_-_VERSION_|%{name}-%{version}|g" %{name}-index.html

echo "# put some css in here for directory listings" > dirlist.css 
echo "# put some css in here for custom error messages" > error.css
echo "<b>This directory contains 'el cheapo' style web links.</b>" > .description

%build
%configure
# Hacks :-)
perl -pi -e 's/-o bin -g bin//g' Makefile
perl -pi -e 's/-m 444/-m 644/g; s/-m 555/-m 755/g' Makefile
perl -pi -e 's/.*chgrp.*//g; s/.*chmod.*//g' extras/Makefile
# Config changes
%{?_without_indexes:      perl -pi -e 's/#define GENERATE_INDEXES/#undef GENERATE_INDEXES/g' config.h}
%{!?_with_showversion:    perl -pi -e 's/#define SHOW_SERVER_VERSION/#undef SHOW_SERVER_VERSION/g' config.h}
%{!?_with_expliciterrors: perl -pi -e 's/#define EXPLICIT_ERROR_PAGES/#undef EXPLICIT_ERROR_PAGES/g' config.h}

# (list SUBDIRS to exclude "cgi-src")
%make \
    SUBDIRS="extras" \
    WEBDIR=%{webroot} \
    STATICFLAG="" \
    CCOPT="%{optflags} -D_FILE_OFFSET_BITS=64"


%install
# make some directories
# Prepare required directories
mkdir -p %{buildroot}%{webroot}
mkdir -p %{buildroot}%{_mandir}/man{1,8}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_unitdir}

# Install init script and logrotate entry
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
install -Dpm 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/thttpd

# Main install (list SUBDIRS to exclude "cgi-src")
%make install SUBDIRS="extras" \
    BINDIR=%{buildroot}%{_sbindir} \
    MANDIR=%{buildroot}%{_mandir} \
    WEBDIR=%{buildroot}%{webroot}

# Rename htpasswd in case apache is installed too
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/htpasswd \
        %{buildroot}%{_bindir}/thtpasswd
mv %{buildroot}%{_mandir}/man1/htpasswd.1 \
        %{buildroot}%{_mandir}/man1/thtpasswd.1

# Install the default index.html and related files
install -pm 0644 %{SOURCE5} %{SOURCE11} \
    %{buildroot}%{webroot}/

# Symlink for the powered-by-$DISTRO image
%{__ln_s} %{_datadir}/pixmaps/poweredby.png \
    %{buildroot}%{webroot}/poweredby.png

# Install a default configuration file
cat << EOF > %{buildroot}%{_sysconfdir}/thttpd.conf
# BEWARE : No empty lines are allowed!
# This section overrides defaults
dir=%{webroot}
chroot
user=thttpd         # default = nobody
logfile=/var/log/thttpd.log
pidfile=/var/run/thttpd.pid
# This section _documents_ defaults in effect
# port=80
# nosymlink         # default = !chroot
# novhost
# nocgipat
# nothrottles
# host=0.0.0.0
# charset=iso-8859-1
EOF


%post
%systemd_post %{name}

%preun
%systemd_preun %{name}

%pre 
%_pre_useradd %{name} /var/lib/%{name} /bin/sh

%postun
%_postun_userdel %{name}

%files
%doc README TODO
%{_unitdir}/thttpd.service
%config(noreplace) %{_sysconfdir}/logrotate.d/thttpd
%config(noreplace) %{_sysconfdir}/thttpd.conf
%{_bindir}/thtpasswd
%{_sbindir}/syslogtocern
%{_sbindir}/thttpd
%{webroot}/
%attr(2755,%{name},%{name}) %{_sbindir}/makeweb
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11012 |21cr|thunar-4.16.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname Thunar
%define url_ver %(echo %{version} | cut -d. -f1,2)

%define major 0
%define api 3
%define gmajor	3.0
%define libname %mklibname thunarx %{api} %{major}
%define girname %mklibname thunarx-gir %{gmajor}
%define devname %mklibname %{name} -d
%define _disable_rebuild_configure 1

Summary:	New modern file manager for the Xfce Desktop Environment
Name:		thunar
Version:	4.16.11
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://thunar.xfce.org
Source0:	https://archive.xfce.org/src/xfce/thunar/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:		4.16.6-lang-ru.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	gtk-doc
BuildRequires:	git-core
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfconf-0)
Requires:	exo
Requires:	shared-mime-info
Requires:	thunar-volman

%description
Thunar has been designed from the ground up to be fast and easy-to-use.
Its user interface is clean and intuitive, and does not include any confusing
or useless options. Thunar is fast and responsive with a good start up time
and directory load time. Thunar is accessible using Assistive Technologies and
is fully standards  compliant.

Beside the basic file management features, Thunar includes additional features
that set it ahead of other file managers available for the Unix/Linux desktop
today. For example, Thunar includes a so called Bulk Renamer that allows users
to easily rename multiple files at once using criterions that can be specified
using the available renamer plugins. Probably the most interesting renamer here
is the Audio Tags renamer, which generates new file names based on the tags
present in audio files.

Using the Thunar Extensions Framework it is easy to extend the basic
functionality provided by Thunar to integrate even complex tasks into the file
manager, although the extension framework is still very limited in the 1.0
series, and the 2.0 series will include a way more powerful plugin interface
that allows to adjust virtually every aspect of the file manager. But since
writing extensions for the file manager is still a difficult and time consuming
job, the User Customizable Actions plugin provides users with an easy way to
extend the file and folder context menus with their own custom actions.

%files -f %{name}.lang
%doc AUTHORS FAQ HACKING README* THANKS
%doc docs/README*
%dir %{_sysconfdir}/xdg/Thunar
%dir %{_datadir}/Thunar
%dir %{_datadir}/Thunar/sendto
%{_bindir}/*
%{_libdir}/thunarx-%{api}
%{_libdir}/xfce4/panel/plugins/*
%{_libdir}/%{oname}/thunar-sendto-email
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*
%{_datadir}/dbus-1/services/*
%{_datadir}/Thunar/sendto/thunar-sendto-email.desktop
%{_datadir}/xfce4/panel/plugins/thunar-tpa.desktop
%{_datadir}/metainfo/org.xfce.thunar.appdata.xml
%{_datadir}/polkit-1/actions/org.xfce.thunar.policy
%{_mandir}/man1/*
%{_userunitdir}/thunar.service
%config(noreplace) %{_sysconfdir}/xdg/Thunar/uca.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for the thunar filemanager
Group:		Graphical desktop/Xfce
Conflicts:	libthunar2_0 < 1.6.10-4
Obsoletes:	libthunar2_0 < 1.6.10-4

%description -n %{libname}
Libraries for the thunar filemanager.

%files -n %{libname}
%{_libdir}/libthunarx-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the thunar filemanager
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Provides:	thunarx-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	libthunarx-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Development files for the thunar filemanager.

%files -n %{devname}
%dir %{_includedir}/thunarx-%{api}
%{_includedir}/thunarx-%{api}/*
%{_datadir}/gtk-doc/html/thunarx
%{_libdir}/libthunarx-%{api}.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/Thunarx-3.0.gir

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for Thunarx
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface library for Thunarx.

%files -n %{girname}
%{_libdir}/girepository-1.0/Thunarx-%{gmajor}.typelib

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--enable-dbus \
	--enable-exif \
	--enable-gio-unix \
	--enable-gtk-doc \
	--enable-gudev \
	--enable-notifications \
	--enable-pcre \
	--enable-apr-plugin \
	--enable-tpa-plugin \
	--enable-uca-plugin \
	--enable-wallpaper-plugin

%make

%install
%makeinstall_std

desktop-file-install \
	--remove-key="Encoding" \
	--add-category="FileManager;FileTools" \
	--remove-category="Application" \
	--add-mime-type="inode/directory;" \
	--remove-mime-type="x-directory/normal;x-directory/gnome-default-handler" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/thunar*

# Remove unneeded files
rm -f %{buildroot}%{_datadir}/doc/Thunar/README.gtkrc
rm -f %{buildroot}%{_datadir}/applications/Thunar-folder-handler.desktop
rm -f %{buildroot}%{_datadir}/applications/thunar-settings.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11013 |21cr|thunar-archive-plugin-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f 1,2)

Summary:	An archive plugin for the Thunar File Manager

Name:		thunar-archive-plugin
Version:	0.5.0
Release: 	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/thunar-plugins/thunar-archive-plugin
Source0:	http://archive.xfce.org/src/thunar-plugins/thunar-archive-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	thunar-devel
BuildRequires:	intltool
BuildRequires:	pkgconfig(exo-2)

%description
The thunar-archive-plugin is a plugin for the Thunar File Manager, which
adds archive operations to the file context menus. Using this plugin you
will be able to extract and create archive files from within Thunar using
a single click.
The plugin now supports a variety of archive managers through a generic
interface, that requires the archive manager to install a .desktop file
as usual, that lists the supported mime types, and a .tap file that acts
as a wrapper script to invoke the archive manager with the appropriate
parameters for the create, extract-here and extract-to actions.
Wrapper scripts for file-roller (the GNOME archive manager) and ark (the
KDE archive manager) have been added. Xarchiver, the Xfce archive manager,
will include an appropriate xarchiver.tap file in the next release. 

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

%clean

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS THANKS
%{_libdir}/thunarx-3/*
%{_libexecdir}/%{name}
%{_iconsdir}/hicolor/*/apps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11014 |21cr|thunar-media-tags-plugin-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)

Summary:	A tag plugin for the Thunar File Manager

Name:		thunar-media-tags-plugin
Version:	0.3.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/thunar-plugins/thunar-media-tags-plugin
Source0:	http://archive.xfce.org/src/thunar-plugins/thunar-media-tags-plugin/0.2/%{name}-%{version}.tar.bz2
Requires:	thunar >= 1.7.0
BuildRequires:	thunar-devel >= 1.3.1
BuildRequires:	taglib-devel >= 1.4
BuildRequires:	perl(XML::Parser)
BuildRequires:	intltool
BuildRequires:	pkgconfig(exo-2)

%description
The thunar-media-tags-plugin is a plugin for the Thunar File Manager, 
which adds ID3/OGG tag support to the bulk rename dialog. 

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} %{name}.lang

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_libdir}/thunarx-3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11015 |21cr|thunar-shares-plugin-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver %(echo %{version} | cut -d. -f 1,2)

Summary:	Samba support for Thunar filemanager
Name:		thunar-shares-plugin
Version:	0.3.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		https://archive.xfce.org/src/thunar-plugins/%{name}
Source0:	https://archive.xfce.org/src/thunar-plugins/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(thunarx-3)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	intltool
Requires:	samba-common

%description
A Thunar file manager extension to share files using Samba.

%prep
%setup -q

%build

%configure \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS README ChangeLog NEWS TODO
%{_libdir}/thunarx-3/thunar-shares-plugin.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11016 |21cr|thunar-vcs-plugin-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)

Summary:	VCS support for Thunar file manager
Name:		thunar-vcs-plugin
Version:	0.2.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/thunar-plugins/%{name}
Source0:	http://archive.xfce.org/src/thunar-plugins/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(thunarx-3) >= 1.7.0
BuildRequires:	intltool
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(libxfce4util-1.0) >= 4.8.0
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.18.0
BuildRequires:	pkgconfig(gobject-2.0) >= 2.18.0
BuildRequires:	pkgconfig(apr-1) >= 0.9.7
BuildRequires:	subversion-devel >= 1.5
BuildRequires:	pkgconfig(libsvn_client)
BuildRequires:	git
Recommends:	git

%description
The Thunar VCS Plugin adds Subversion actions to the context menu of thunar.
This gives a VCS integration to Thunar.

The current features are:
- Most of the svn action: add, blame, checkout, cleanup, commit, copy, delete,
  export, import, lock, log, move, properties, relocate, resolved, revert,
  status, switch, unlock, update.
- Subversion info in file properties dialog.
- Basic git support: add, blame, branch, clean, clone, log, move, reset,
  stash, status.


%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/thunarx-3/thunar-vcs-plugin.so
%{_libexecdir}/tvp-git-helper
%{_libexecdir}/tvp-svn-helper
%{_iconsdir}/hicolor/*/apps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11017 |21cr|thunar-volman-4.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define _disable_rebuild_configure 1

Summary:	A removable volume manager for Thunar
Name:		thunar-volman
Version:	4.16.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/thunar-plugins/%{name}
Source0:	https://archive.xfce.org/src/xfce/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	thunar-devel
BuildRequires:	dbus-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	xfconf-devel
BuildRequires:	pkgconfig(libnotify)
Requires:	thunar
Requires:	dbus
Requires:	gvfs
Obsoletes:	xfce4-volstatus-icon <= 0.1.0

%description
The Thunar Volume Manager is an extension for the Thunar
file manager, which enables automatic management of removable
drives and media. For example, if thunar-volman is installed
and configured properly, and you plug in your digital camera,
it will automatically launch your preferred photo application
and import the new pictures from the camera into your photo collection.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS THANKS
%{_bindir}/thunar-volman
%{_bindir}/thunar-volman-settings
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_datadir}/applications/thunar-volman-settings.desktop

%prep
%setup -q

%build
%configure \
	--enable-notifications

%make

%install
%makeinstall_std

%find_lang %{name} %{name}.lang


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11018 |21cr|thunarx-python-0.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)

Name:		thunarx-python
Version:	0.5.2
Release:	1
Summary:	Python bindings for the Thunar Extension Framework

Group:		Development/Other
License:	GPLv3
URL:		http://goodies.xfce.org/projects/bindings/thunarx-python
Source0:	http://archive.xfce.org/src/bindings/thunarx-python/%{url_ver}/%{name}-%{version}.tar.bz2	
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(thunarx-3)
BuildRequires:	pkgconfig(pygobject-3.0) >= 3.20.0
BuildRequires:	gtk-doc

%description
These bindings allow one to create python plugins for Thunar.

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/thunarx-3/
%doc %{_datadir}/gtk-doc/
%doc %{_docdir}/%{name}/examples

#--------------------------------------------------------------
%prep
%autosetup -p1


%build
./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-gtk-doc
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11019 |21cr|tickr-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RSS Reader
Name:		tickr
Version:	0.7.1
Release:	1
License:	GPLv3
Group:		Networking/News
Url:		http://open-tickr.net/
Source0:	http://www.open-tickr.net/src/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:  gnutls
BuildRequires:  pkgconfig(gnutls)

%description
RSS Reader.

%files
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/%{name}
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_mandir}/man1/
mkdir -p %{buildroot}/%{_datadir}/applications/
install -m644 tickr-url-list %{buildroot}/%{_datadir}/%{name}
install -m644 tickr.1 %{buildroot}/%{_mandir}/man1/
install -m644 tickr.desktop %{buildroot}/%{_datadir}/applications/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11020 |21cr|tidyp-1.04-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} 1.04
%define develname %mklibname %name -d

Summary:	Program for tidying up messy HTML
Name:		tidyp
Version:	1.04
Release:	5
Group:		Text tools
License:	W3C License
URL:		http://tidyp.com/
Source0:	http://github.com/downloads/petdance/tidyp/tidyp-%{version}.tar.gz
Patch0:		tidy-20081224cvs-fix-format-errors.patch

%description
tidyp is a program that can validate your HTML, as well as modify it to be more
clean and standard. tidyp does not validate HTML 5.

libtidyp is the library on which the program is based. It can be used by any
other program that can interface to it. The Perl module HTML::Tidy is based on
this library, allowing Perl programmers to easily validate HTML.

tidyp is a fork of the tidy project.

%package -n	%{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n	%{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files
%doc README ChangeLog
%{_bindir}/*

%files -n %{libname}
%{_libdir}/*.so.*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11021 |21cr|tig-2.5.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Text-mode interface for the git revision control system
Name:           tig
Version:        2.5.7
Release:        1
License:        GPLv3
Group:          Development/Other
Url:            https://jonas.github.io/tig/
Source0:        https://github.com/jonas/tig/releases/download/tig-%{version}/tig-tig-%{version}.tar.gz
BuildRequires:   pkgconfig(ncurses)
BuildRequires:   asciidoc
BuildRequires:   xmlto
Requires:        git-core

%description
Tig is a repository browser for the git revision control system that
additionally can act as a pager for output from various git commands.

When browsing repositories, it uses the underlying git commands to present the
user with various views, such as summarized revision log and showing the commit
with the log message, diffstat, and the diff.

Using it as a pager, it will display input from stdin and colorize it.

%files
%doc COPYING *.adoc
%config(noreplace) %{_sysconfdir}/tigrc
%{_bindir}/tig
%{_mandir}/man1/tig.1*
%{_mandir}/man5/tigrc.5*
%{_mandir}/man7/tigmanual.7*
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/tig-completion.bash
#------------------------------------------------------------------

%prep
%setup -qn tig-tig-%{version}
chmod -x contrib/tig-completion.bash
autoreconf -fiv

%build
%configure
%make


%install
%makeinstall_std install-doc-man
install -Dpm0644 -t %{buildroot}%{_datadir}/bash-completion/completions \
  contrib/tig-completion.bash





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11022 |21cr|tikiwiki-6.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%if %{_use_internal_dependency_generator}
%global __requires_exclude pear(\\(smarty.*\\|lib.*\\|tiki.*\\|db.*\\|pear.*\\|File/iCal.*\\|PHPUnit.*\\|Zend.*\\|Minify.*\\))
%else
%define _requires_exceptions pear(\\(smarty.*\\|lib.*\\|tiki.*\\|db.*\\|pear.*\\|File/iCal.*\\|PHPUnit.*\\|Zend.*\\|Minify.*\\))
%endif.


Name:       tikiwiki
Version:    6.6
Release:    13
Summary:    A PHP-based CMS/Groupware web application with a full Wiki environment
License:    LGPLv2
Group:      System/Servers
URL:        http://www.tikiwiki.org
Source:     http://prdownloads.sourceforge.net/%{name}/tiki-%{version}.tar.bz2
Patch0:     tikiwiki-6.4-use-external-pear-modules.patch
Patch1:     tikiwiki-6.0-use-external-smarty.patch
Patch2:     tikiwiki-6.4-bootstrap.patch
Patch3:     tikiwiki-6.0-fix-Zend-module.patch
Patch4:     _htaccess.patch
Requires:   php-pdo_mysql
Requires:   php-gd
#Requires:   php-smarty
Requires:   apache-mod_php
BuildArch:  noarch

%description
TikiWiki is an open source CMS/Groupware web application which provides
a full Wiki environment, as well as Articles, Sections/Categories,
User/Group Management (including optional LDAP), Polls and Quizzes,
File and Image Galleries, Forums, Weblogs, Calendars, Chat, Maps
and much more.

%prep
%setup -q -n tiki-%{version}
%patch0 -p 1
#patch1 -p 1
%patch2 -p 1
%patch3 -p 1
%patch4 -p 1

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp *.php %{buildroot}%{_datadir}/%{name}
cp *.png %{buildroot}%{_datadir}/%{name}
cp robots.txt %{buildroot}%{_datadir}/%{name}
cp license.txt %{buildroot}%{_datadir}/%{name}
cp favicon.ico %{buildroot}%{_datadir}/%{name}

for dir in css doc img images installer \
    lang lib maps modules pics; do 
    cp -pr $dir %{buildroot}%{_datadir}/%{name}
done

install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}

# writable directories
for dir in backups db dump files styles temp templates templates_c whelp; do
    cp -pr $dir %{buildroot}%{_localstatedir}/lib/%{name}
    chmod 2775 %{buildroot}%{_localstatedir}/lib/%{name}/$dir
    pushd %{buildroot}%{_datadir}/%{name}
    ln -s ../../..%{_localstatedir}/lib/%{name}/$dir .
    popd
done

install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/modules
mv %{buildroot}%{_datadir}/%{name}/modules/cache \
    %{buildroot}%{_localstatedir}/lib/%{name}/modules
chmod 2755 %{buildroot}%{_localstatedir}/lib/%{name}/modules/cache
pushd %{buildroot}%{_datadir}/%{name}/modules
ln -s ../../../..%{_localstatedir}/lib/%{name}/modules/cache .
popd

install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/img
for dir in wiki wiki_up trackers; do
    mv %{buildroot}%{_datadir}/%{name}/img/$dir \
        %{buildroot}%{_localstatedir}/lib/%{name}/img
    chmod 2775 %{buildroot}%{_localstatedir}/lib/%{name}/img/$dir
    pushd %{buildroot}%{_datadir}/%{name}/img
    ln -s ../../../..%{_localstatedir}/lib/%{name}/img/$dir .
    popd
done

# configuration file
install -d -m 755 %{buildroot}%{_sysconfdir}
touch %{buildroot}%{_sysconfdir}/%{name}.conf
pushd %{buildroot}%{_localstatedir}/lib/%{name}/db
ln -s ../../../..%{_sysconfdir}/%{name}.conf local.php
popd

# this is not a pear lib
mv %{buildroot}%{_datadir}/%{name}/lib/pear/Minify \
    %{buildroot}%{_datadir}/%{name}/lib/

# do not ship private copies of php libs
rm -rf %{buildroot}%{_datadir}/%{name}/lib/pear
#rm -rf %{buildroot}%{_datadir}/%{name}/lib/smarty

# cleanup
find %{buildroot}%{_datadir}/%{name} -name .htaccess -o -name README \
    | xargs rm -f
find %{buildroot}%{_localstatedir}/lib/%{name} -name .htaccess -o -name README \
    | xargs rm -f

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# Tikiwiki Apache configuration
Alias /tikiwiki/styles %{_localstatedir}/lib/%{name}/styles
Alias /tiki/styles %{_localstatedir}/lib/%{name}/styles
Alias /tikiwiki %{_datadir}/%{name}
Alias /tiki %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Options -FollowSymLinks
    Require all granted
</Directory>

<Directory %{_datadir}/%{name}/installer>
    <FilesMatch "\.ph(p(3|4)?|tml)$">
        Require all denied
    </FilesMatch>
</Directory>

<Directory %{_datadir}/%{name}/img>
    <FilesMatch "\.ph(p(3|4)?|tml)$">
        Require all denied
    </FilesMatch>
</Directory>

<Directory %{_datadir}/%{name}/images>
    <FilesMatch "\.ph(p(3|4)?|tml)$">
        Require all denied
    </FilesMatch>
</Directory>

<Directory %{_datadir}/%{name}/lib>
    <FilesMatch "\.ph(p(3|4)?|tml)$">
        Require all denied
    </FilesMatch>
</Directory>

<Directory %{_datadir}/%{name}/lib/fckeditor>
    <FilesMatch "\.ph(p(3|4)?|tml)$">
        Require all granted
    </FilesMatch>
</Directory>

<Directory %{_datadir}/%{name}/lib/fckeditor_tiki>
    <FilesMatch "\.ph(p(3|4)?|tml)$">
        Require all granted
    </FilesMatch>
</Directory>

<Directory %{_datadir}/%{name}/lang>
    Require all denied
</Directory>

<Directory %{_datadir}/%{name}/modules>
    Require all denied
</Directory>

<Directory %{_localstatedir}/lib/%{name}/styles>
    Require all granted
</Directory>

<Directory %{_localstatedir}/lib/%{name}/db>
    Require all denied
</Directory>

# Below part is required to enable SEFURLs

EOF

cat _htaccess >> %{buildroot}%{_webappconfdir}/%{name}.conf

%clean
rm -rf %{buildroot}



%files
%defattr(-,root,root)
%doc INSTALL README
%{_datadir}/tikiwiki
%attr(-,apache,apache) %{_localstatedir}/lib/tikiwiki
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %attr(-,apache,apache) %{_sysconfdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11023 |21cr|tilda-1.3.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drop Down Terminal for Linux
Name:		tilda
Version:	1.3.3
Release:	4
License:	GPLv2+
Group:		Terminals
Url:		https://github.com/lanoxx/tilda
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(libconfuse)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Linux terminal taking after the likeness of many classic terminals from
first person shooter games, Quake, Doom and Half-Life to name a few, where
the terminal has no border and is hidden from the desktop till a key or
keys is hit.

%files -f %{name}.lang
%doc ChangeLog COPYING NEWS
%{_bindir}/tilda
%{_datadir}/applications/tilda.desktop
%{_datadir}/appdata/tilda.appdata.xml
%{_datadir}/pixmaps/tilda.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure \
	--enable-lto \
	--disable-rpath

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11024 |21cr|tiled-1.10.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	General purpose tile map editor
Name:		tiled
Version:	1.10.1
Release:	2
Group:		Graphics
License:	GPLv2+ and BSD
Url:		http://www.mapeditor.org/
Source0:	https://github.com/mapeditor/tiled/archive/refs/tags/v%{version}.tar.gz?/tiled-%{version}.tar.gz
Source10:	tiled.rpmlintrc
BuildRequires:	qmake5
BuildRequires:	qt5-tools
BuildRequires:	qt5-qtbase-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	clang
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	qbs
BuildRequires:	qt-creator

%description
Tiled is a general purpose tile map editor.

It's built to be easy to use, yet flexible enough to work
with varying game engines, whether your game is an RPG,
platformer or Breakout clone.

%files
%doc AUTHORS COPYING NEWS.md README.md LICENSE.APACHE LICENSE.BSD LICENSE.GPL
%{_bindir}/terraingenerator
%{_bindir}/tiled
%{_bindir}/tmxviewer
%{_bindir}/tmxrasterizer
%{_mandir}/man1/tiled.1.*
%{_mandir}/man1/tmxrasterizer.1.*
%{_mandir}/man1/tmxviewer.1.*
%{_libdir}/tiled/
%{_libdir}/*.so
%{_datadir}/icons/hicolor/*/*/*%{name}.*
%{_datadir}/mime/packages/*.xml
%{_datadir}/applications/*.desktop
%{_datadir}/tiled/
%{_datadir}/thumbnailers/%{name}.thumbnailer
%{_datadir}/metainfo/org.mapeditor.Tiled.appdata.xml
#-------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Remove copy of zlib
rm -rf src/zlib

%build
qbs  setup-toolchains --detect
qbs setup-qt --detect
qbs moduleProviders.Qt.qmakeFilePaths:%{_qt5_bindir}/qmake \
    qbs.installPrefix:"%{_prefix}" \
    project.libDir:"%{_lib}" \
    project.Tiled.useRPaths:false

%install
qbs install --install-root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11025 |21cr|tiledarray-1.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude cmake()

Summary:	A massively-parallel, block-sparse tensor framework written in C++
Name:		tiledarray
Version:	1.0.0
Release:	4
License:	GPLv3
Group:		System/Libraries
Url:		https://github.com/ValeevGroup/tiledarray
Source0:	https://github.com/ValeevGroup/tiledarray/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
#repack from https://github.com/ValeevGroup/kit-cmake
Source1:	kit-cmake.tar.gz
Source2:	madness-src.tar.gz
Source10:	tiledarray.rpmlintrc
Patch0:		tiledarray-no-download.patch
Patch1:		tiledarray-versioning.patch
BuildRequires:	git
BuildRequires:	boost-devel
BuildRequires:	blas-devel
BuildRequires:	blaspp-devel
BuildRequires:	btas-devel
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	lapack-devel
BuildRequires:	lapackpp-devel
BuildRequires:	openmpi-devel
BuildRequires:	eigen3-devel
BuildRequires:	pkgconfig(tbb)
Provides:	%{name}-devel = %{EVRD}
Provides:	madness-devel = 0.10.0
Requires:	openmpi-devel

%description
TiledArray is a scalable, block-sparse tensor framework for rapid composition 
of high-performance tensor arithmetic, appearing for example in many-body 
quantum mechanics. It allows users to compose tensor expressions of arbitrary 
complexity in native C++ code that closely resembles the standard mathematical 
notation. The framework is designed to scale from a single multicore computer 
to a massive distributed-memory multiprocessor.

#------------------------------------------------------------------
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%package -n %{libname}
Summary:	A massively-parallel, block-sparse tensor framework written in C++
Group:		System/Libraries

%description -n %{libname}
TiledArray is a scalable, block-sparse tensor framework for rapid composition 
of high-performance tensor arithmetic, appearing for example in many-body 
quantum mechanics. It allows users to compose tensor expressions of arbitrary 
complexity in native C++ code that closely resembles the standard mathematical 
notation. The framework is designed to scale from a single multicore computer 
to a massive distributed-memory multiprocessor.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------
%define MADmajor 0
%define libMADworld %mklibname MADworld %{major}

%package -n %{libMADworld}
Summary:	Madness shared library
Group:		System/Libraries

%description -n %{libMADworld}
MadWorld shared library.

%files -n %{libMADworld}
%{_libdir}/libMADworld.so.%{MADmajor}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:	foo development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libMADworld} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
foo development files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/cmake/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#------------------------------------------------------------------
%prep
%setup -q -a1

cp -r kit-cmake/* cmake/

mkdir -p ./build/external
tar xvf %{SOURCE2} -C ./build/external

%apply_patches

# fix install path for files
sed -i 's|lib/pkgconfig|%{_lib}/pkgconfig|' CMakeLists.txt
sed -i 's|lib/cmake|%{_lib}/cmake|' ./build/external/madness-src/CMakeLists.txt
sed -i 's|"lib"|"%{_lib}"|' ./build/external/madness-src/CMakeLists.txt

%build
%cmake \
	-DCMAKE_TOOLCHAIN_FILE=cmake/toolchains/_gcc.cmake \
	-DTILEDARRAY_INSTALL_LIBDIR=%{_libdir} \
	-DTILEDARRAY_INSTALL_CMAKEDIR=%{_libdir}/cmake/tiledarray \
	-DSUPPORTS_SHARED=ON

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11026 |21cr|tilp2-1.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	TiLP is a TI<->PC linking program
Name:		tilp2
Version:	1.18
Release:	2
License:	GPLv2+
Group:		Communications
Url:		http://lpg.ticalc.org/prj_tilp
Source0:	http://downloads.sourceforge.net/project/tilp/tilp2-linux/tilp2-%{version}/%{name}-%{version}.tar.bz2
# This file was omitted from the release tarball of tilp2 1.18 by accident.
Source1:	https://github.com/debrouxl/tilp_and_gfm/blob/1.18/tilp/trunk/acinclude.m4
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(tifiles2)
BuildRequires:	pkgconfig(ticalcs2)
BuildRequires:	pkgconfig(ticonv)
BuildRequires:	glade
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	intltool
# For man page generation
BuildRequires:	groff
Requires:	xdg-utils >= 1.0.0

%description
TiLP is a TI<->PC linking program

%files -f %{name}.lang
%{_bindir}/tilp
%{_mandir}/man1/tilp*
%{_datadir}/tilp2
%{_datadir}/applications/lpg-tilp.desktop
%{_datadir}/mime/packages/tilp.xml
%{_datadir}/appdata/tilp.appdata.xml

#------------------------------------------------------------

%prep
%setup -q

cp %SOURCE1 .
autoreconf -fi

%build
%configure
%make

%install
%makeinstall_std
mkdir -p %{buildroot}/usr/share/applications
cat > %{buildroot}/usr/share/applications/tilp.desktop <<EOF
[Desktop Entry]
Name=TiLP
Name[ru]=TiLP
Name[fr_FR]=TiLP
Comment=Ti Linking Program
Comment[fr_FR]=Programme de connexion pour calculatrices TI
Comment[ru]=Программа для работы с устройствами TI
GenericName=TI Linking Program
GenericName[fr_FR]=Connexion calculatrices TI
GenericName[ru]=Программа для работы с устройствами TI
Encoding=UTF-8
Version=1.0
Type=Application
Exec=/usr/bin/tilp
Icon=/usr/share/tilp2/pixmaps/icon.xpm
Terminal=false
Categories=Utility;X-KDE-Utilities-Peripherals;
MimeType=application/x-tilp
EOF
desktop-file-install \
	--delete-original \
	--vendor lpg \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}/usr/share/applications/tilp.desktop

mkdir -p %{buildroot}%{_datadir}/mime/packages
cat > %{buildroot}%{_datadir}/mime/packages/tilp.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
    <mime-type type="application/x-tilp">
        <comment xml:lang="en">TI File</comment>
        <comment xml:lang="fr">Fichier TI</comment>
        <glob pattern="*.73?" />
        <glob pattern="*.82?" />
        <glob pattern="*.8[xX]?" />
        <glob pattern="*.85?" />
        <glob pattern="*.86?" />
        <glob pattern="*.89?" />
        <glob pattern="*.92?" />
        <glob pattern="*.9[xX]?" />
        <glob pattern="*.[vV]2?" />
  </mime-type>
</mime-info>
EOF

%find_lang %{name}

%post
update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

%postun
update-mime-database %{_datadir}/mime > /dev/null 2>&1 || :
update-desktop-database %{_datadir}/applications > /dev/null 2>&1 || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11027 |21cr|timeconfig-3.2-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Text mode tools for setting system time parameters
Name:		timeconfig
Version:	3.2
Release:	26
License:	GPL
Group:		System/Configuration/Other
Source0:	%{name}-%{version}.tar.bz2
Source5:	timeconfig.pamd
Source6:	timeconfig.apps
Patch0:		timeconfig-gmt.patch
Patch1:		timeconfig-mdkconf.patch
Patch2:		timeconfig-3.2-format_not_a_string_literal_and_no_format_arguments.diff
Patch3:		timeconfig-3.2-LDFLAGS.diff
Requires:	initscripts
Requires:	usermode-consoleonly
BuildRequires:	gettext
BuildRequires:	newt-devel
BuildRequires:	popt-devel
BuildRequires:	slang-devel
Requires(post): coreutils, gawk

%description
The timeconfig package contains two utilities: timeconfig and
setclock.  Timeconfig provides a simple text mode tool for configuring
the time parameters in /etc/sysconfig/clock and /etc/localtime. The
setclock tool sets the hardware clock on the system to the current
time stored in the system clock.

%prep

%setup -q
%patch0 -p0 -b .gmt
%patch1 -p0 -b .mdkconf
%patch2 -p0 -b .format_not_a_string_literal_and_no_format_arguments
%patch3 -p0 -b .LDFLAGS

%build
make RPM_OPT_FLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
rm -rf %{buildroot}

make PREFIX=%{buildroot}%{_prefix} install
rm -f %{buildroot}/usr/lib/zoneinfo

# fix indonesian locale, its language code is 'id' not 'in'.
mkdir -p %{buildroot}%{_datadir}/locale/id/LC_MESSAGES

# (fg) 20001004 In replacement of kdesu...
mkdir -p %{buildroot}/%{_sysconfdir}/{pam.d,security/console.apps}

install -m644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/pam.d/timeconfig
install -m644 %{SOURCE6} %{buildroot}/%{_sysconfdir}/security/console.apps/timeconfig

mkdir -p %{buildroot}%{_bindir}
ln -fs %{_bindir}/consolehelper %{buildroot}/%{_bindir}/timeconfig

# remove unpackaged files
rm -rf %{buildroot}%{_mandir}/pt_BR/

%{find_lang} %{name}

%post
if [ -L /etc/localtime ]; then
    _FNAME=`ls -ld /etc/localtime | awk '{ print $11}' | sed 's/lib/share/'`
    rm /etc/localtime
    cp -f $_FNAME /etc/localtime
    if [ -f /etc/sysconfig/clock ]; then
	grep -q "^ZONE=" /etc/sysconfig/clock && \
	echo "ZONE=\"$_FNAME\"" | sed -e "s|.*/zoneinfo/||" >> /etc/sysconfig/clock
    else
	echo "ZONE=\"$_FNAME\"" | sed -e "s|.*/zoneinfo/||" >> /etc/sysconfig/clock
    fi
fi

%clean
rm -rf %{buildroot}

%files -f %{name}.lang
%defattr(-,root,root)
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man*/*
%config(noreplace) %{_sysconfdir}/pam.d/timeconfig
%config(noreplace) %{_sysconfdir}/security/console.apps/timeconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11028 |21cr|timemachine-0.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Records audio up to ten seconds ago
Name:		timemachine
Version:	0.3.4
Release:	2
License:	GPLv2+
Group:		Sound
Url:		http://plugin.org.uk/timemachine/
Source0:		https://github.com/swh/timemachine/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:	timemachine-0.3.4-use-GtkType-instead-of-guint.patch
Patch1:	timemachine-0.3.4-use-ladish-instead-of-lash.patch
BuildRequires:	gettext
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblash) >= 1.1.1
BuildRequires:	pkgconfig(liblo) >= 0.24
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)

%description
I used to always keep a mini-disc recorder in my studio running in a mode where
when you pressed record it wrote the last 10 seconds of audio to the disk and
then caught up to real-time and kept recording. The recorder died and haven't
been able to replace it, so this is a simple jack app to do the same job. It
has the advantage that it never clips and can be wired to any part of the jack
graph.
The idea is that I doodle away with whatever is kicking around in my studio
and when I heard an interesting noise, I'd press record and capture it,
without having to try and recreate it. :)
I've been using it to record occasional bursts of interesting noise from jack
apps feeding back into each other. It seems to be stable for me, but there
could be threading issues and race condidtions if run without SCHED_FIFO (ie.
without jackd -R).

%files
%doc ChangeLog COPYING README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
%configure
%make


%install
%makeinstall_std

# Install menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=JACK TimeMachine
Comment=Records audio from ten seconds ago
Exec=%{name}
Icon=sound_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;Audio;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11029 |21cr|timidity-init-0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		timidity-init
Version:	0.3
Release:	9
Summary:	Init script for TiMidity++ ALSA sequencer
License:	GPL
Source0:	timidity.service
Source1:	timidity.sysconfig
Source2:        timidity-wrapper.sh
URL:		http://timidity.sourceforge.net/
Group:		Sound
BuildArch:	noarch
Requires:	TiMidity++

%description
Contains init script to launch TiMidity++ as a service. This allows one to
hear music played by any application which outputs to a MIDI device
even if you do not own a MIDI synthesizer soundcard.

%install

install -d -m 755 %{buildroot}%{_unitdir}
install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
install -m0644 %{SOURCE0} %{buildroot}%{_unitdir}/%{name}.service
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m0755 -D %{SOURCE2} %{buildroot}%{_bindir}/timidity-wrapper.sh

sed "s:sysconfig:%{_sysconfdir}/sysconfig:" -i %{buildroot}%{_unitdir}/%{name}.service

%post
%systemd_post %{name}

%preun
%systemd_preun %{name}

%clean

%files
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0644,root,root) %{_unitdir}/%{name}.service
%attr(0755,root,root) %{_bindir}/timidity-wrapper.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11030 |21cr|tinc-1.0.36-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           tinc
Version:        1.0.36
Release:        1
Summary:        A virtual private network daemon
Group:          System/Configuration/Networking
License:        GPLv2+
URL:            http://www.tinc-vpn.org/
Source0:        http://www.tinc-vpn.org/packages/%{name}-%{version}.tar.gz
BuildRequires:  openssl-devel
BuildRequires:  liblzo-devel
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pkgconfig(zlib)

Requires(post):  info
Requires(preun): info

%description
tinc is a Virtual Private Network (VPN) daemon that uses tunnelling
and encryption to create a secure private network between hosts on
the Internet. Because the tunnel appears to the IP level network
code as a normal network device, there is no need to adapt any
existing software. This tunnelling allows VPN sites to share
information with each other over the Internet without exposing any
information to others.

%prep
%setup -q

%build
%configure --with-systemd=%{_unitdir}
%make

%install
%makeinstall_std
rm -f %{buildroot}%{_infodir}/dir

%files
%doc AUTHORS COPYING COPYING.README NEWS README THANKS doc/sample* doc/*.tex
%{_mandir}/man*/%{name}*.*
%{_infodir}/%{name}.info.xz
%{_sbindir}/%{name}d
%{_unitdir}/tinc.service
%{_unitdir}/tinc@.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11031 |21cr|tint2-17.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tint2 - A Lightweight Panel and Taskbar
Name:		tint2
Version:	17.0.2
Release:	1
License:	GPLv2
Group:		Graphical desktop/Other
Url:		https://gitlab.com/o9000/tint2
Source0:	https://gitlab.com/o9000/tint2/-/archive/v%{version}/tint2-v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangoxft)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xrandr)

%description
Tint2 is a simple panel and taskbar intentionally made for
openbox3, but should also work with other window managers. The
goal is to keep a clean and unintrusive look with code
lightweight and compliance with freedesktop specifications.

%files -f tint2conf.lang
%doc AUTHORS COPYING README.md ChangeLog
%doc %{_docdir}/tint2/html
%doc %{_docdir}/tint2/tint2.md
%config(noreplace) %{_sysconfdir}/xdg/tint2/tint2rc
%{_bindir}/tint*
%{_datadir}/mime/packages/tint2conf.xml
%{_datadir}/%{name}
%{_datadir}/applications/tint2*.desktop
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_mandir}/man1/*

#------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang tint2conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11032 |21cr|tintii-2.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tintii
Version:	2.10.0
Release:	3
Summary:	Color photo image converter
License:	GPLv2+
Group:		Graphics
URL:		http://www.indii.org/software/tintii
Source0:	http://www.indii.org/files/tint/releases/%{name}-%{version}.tar.gz
Source1:	%{name}.png
BuildRequires:	scons
BuildRequires:	rcs
BuildRequires:	flex
BuildRequires:	wxgtku3.0-devel
BuildRequires:  bc
BuildRequires:	gomp-devel
BuildRequires:	boost-devel
BuildRequires:	doxygen
BuildRequires:	imagemagick

%description
Tintii takes full color photos and processes them into black and white with
some select regions highlighted in color. The technique is known as color
popping or selective coloring - tintii makes it easy. Think Schindler's List's
little girl in red, or the dramatic style of Sin City. Tintii takes a color
photo and cleverly separates it into a handful of major hues. You then select
which colours to pop, and the rest become black & white.

%files
%doc README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%ifarch x86_64
%define upstream_flags -msse2 -O3 -g3
%else
%define upstream_flags -O3 -g3
%endif

%configure CXXFLAGS="${CXXFLAGS} %{upstream_flags}"
%make


%install
install -dm 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

# icon
install -d %{buildroot}%{_iconsdir}/hicolor/16x16/apps/ %{buildroot}%{_iconsdir}/hicolor/32x32/apps/
convert -geometry 16x16 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -geometry 32x32 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -Dm 644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# menu-entry
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Encoding=UTF-8
Terminal=false
Name=Tintii
Comment=Color photo image converter
Comment[ru]=Конвертер цветных изображений
Exec=%{name}
Icon=%{name}
Categories=Graphics;Viewer;X-MandrivaLinux-Graphics-Utility;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11033 |21cr|tinyfugue-5.1.3-0.b8.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define fname tf-50b8

Summary: Flexible, screen-oriented MUD client, for use with any type of MUD
Name: tinyfugue
Version:	5.1.3
Release:0.b8.5
URL: http://tinyfugue.sourceforge.net/
Source0: http://ftp.tcp.com/pub/mud/Clients/tinyfugue/%{fname}.tar.bz2
License: GPLv2+
Group: Games/Adventure
BuildRequires: openssl-devel
BuildRequires: termcap-devel

%description
TinyFugue, aka "tf", is a flexible, screen-oriented MUD client, for
use with any type of MUD. TinyFugue is one of the most popular and
powerful mud clients.

%prep
%setup -q -n %fname

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %buildroot%_bindir
%makeinstall

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc CHANGES README CREDITS
%_bindir/tf
%_datadir/tf-lib

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11034 |21cr|tinyproxy-1.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight, non-caching, optionally anonymizing HTTP proxy
Name:		tinyproxy
Version:	1.11.1
Release:	1
Group:		System/Servers
# License bundled is gpl v3, but source code say gpl v2 or later
License:	GPLv2+
URL:		https://www.banu.com/%{name}/
Source0:	https://github.com/tinyproxy/tinyproxy/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	tinyproxy.service
BuildRequires:	asciidoc
BuildRequires:	a2x
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd45-xml
Provides:	webproxy

%description
An anonymizing http proxy which is very light on system resources, ideal for
smaller networks and similar situations where other proxies (such as Squid) may
be overkill and/or a security risk. Tinyproxy can also be configured to
anonymize http requests (allowing for exceptions on a per-header basis).

%prep

%autosetup -p1

%build
autoreconf -vfi
%configure \
    --enable-xtinyproxy \
    --enable-filter \
    --enable-upstream \
    --enable-transparent \
    --enable-reverse \
    --sysconfdir=%{_sysconfdir} \
    --with-stathost=localhost \
    --program-prefix="" \
    --bindir=%{_sbindir}

%make

%install
%make_install

install -d %{buildroot}%{_sysconfdir}/tinyproxy
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_logdir}/tinyproxy


/bin/touch %{buildroot}%{_sysconfdir}/tinyproxy/filter

/bin/echo "FLAGS=\" -c /etc/tinyproxy/tinyproxy.conf\"" > %{buildroot}%{_sysconfdir}/sysconfig/tinyproxy

cat > %{buildroot}%{_sysconfdir}/logrotate.d/tinyproxy <<EOF
/var/log/tinyproxy.log {
    rotate 7
    daily
    compress
    missingok
    postrotate
    if [ -f /var/run/tinyproxy.pid ]; then
       /etc/init.d/tinyproxy restart > /dev/null
    fi
    endscript
}
EOF

mkdir -p %{buildroot}%{_tmpfilesdir}
cat <<EOF > %{buildroot}%{_tmpfilesdir}/%{name}.conf
d /run/tinyproxy 0755 root root
EOF

install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post tinyproxy.service

%preun
%systemd_preun tinyproxy.service


%files
%doc docs/*.txt
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README* TODO
%attr(0755,root,root) %{_sbindir}/tinyproxy
%config(noreplace) %{_sysconfdir}/sysconfig/tinyproxy
%config(noreplace) %{_sysconfdir}/logrotate.d/tinyproxy
%dir %{_sysconfdir}/tinyproxy
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/tinyproxy/tinyproxy.conf
%config(noreplace) %{_sysconfdir}/tinyproxy/filter
%{_logdir}/tinyproxy/
%{_mandir}/man8/tinyproxy.8*
%{_mandir}/man5/*
%{_datadir}/tinyproxy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11035 |21cr|tio-2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple serial device I/O tool 
Name:		tio
Version:	2.6
Release:	1
License:	GPLv2
Group:		Terminals
Url:		https://github.com/tio/tio
Source0:	https://github.com/tio/tio/releases/download/v%{version}/tio-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	pkgconfig(inih)

%description
tio is a simple serial device tool which features a straightforward 
command-line and configuration file interface to easily connect 
to serial TTY devices for basic I/O operations.

%files
%{_bindir}/tio
%{_mandir}/man1/tio.1*
#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11036 |21cr|tiobench-0.3.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A test program for filesystem performance
Name:		tiobench
Version:	0.3.3
Release:	10
License:	GPLv2+
Group:		Development/Kernel
Url:		http://sourceforge.net/projects/tiobench/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		tiobench-0.3.3-glibc-2.16.patch
Patch1:		tiobench-0.3.3-sfmt.patch
Patch2:		tiobench-0.3.3-fix-build-with-gcc5.patch

%description
Threaded I/O bench for Linux (or any *nix system with POSIX threads
support library).

%files
%doc README BUGS TODO ChangeLog
%{_bindir}/tiotest
%{_bindir}/tiobench.pl
%{_bindir}/tiosum.pl

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%make CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_bindir}
install tiotest %{buildroot}%{_bindir}
install tiobench.pl %{buildroot}%{_bindir}
install tiosum.pl %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11037 |21cr|tipp10-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fversion %(echo %{version} |tr . -)
%define qtver 4.3.3

Summary:	German touch typing learning program
Name:		tipp10
Version:	2.1.0
Release:	1
Source0:	tipp10_source_v%{fversion}.zip
Source1:	%{name}.png
Patch0:		tipp10-gcc4.5.patch
License:	GPLv2+
Group:		Education
Url:		http://www.tipp10.de/
Requires:	locales-de
Requires:	qt4-database-plugin-sqlite >= %{qtver}
BuildRequires:	qt4-devel >= %{qtver}

%description
Learn touch typing with a nice and easy graphical user interface. At
the moment, the program comes with German texts only.

%prep
%setup -q -n tipp10_source_v%{fversion}
%apply_patches
find -name Thumbs.db |xargs rm -fv

%build
%{_prefix}/lib/qt4/bin/qmake
%make

%install
mkdir -p %{buildroot}{%{_bindir},%{_libdir}/%{name},%{_datadir}/applications}
cp -r release/help  release/tipp10v2.template %{name} *.wav %{buildroot}%{_libdir}/%{name}

cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/bash
cd %{_libdir}/%{name}
./tipp10 "\$@"
EOF

install -m 644 -D %{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Tipp10
Comment=Touch typing trainer
Comment[de]=Schreibtrainer
Exec=tipp10
Icon=tipp10
Terminal=false
Type=Application
Categories=Education;Qt;
EOF

%files
%doc *.txt
%attr(755,root,root) %{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11038 |21cr|tkabber-1.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Client for the Jabber instant messaging system
Name:		tkabber
Version:	1.1.2
Release:	2
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://tkabber.jabber.ru/
Source0:	http://files.jabber.ru/tkabber/%{name}-%{version}.tar.xz
Source2:	tkabber.png
Source3:	tkabber.desktop
Source4:	tkabber
Source5:	tkabber-remote
Patch0:		tkabber-1.0-install.patch
BuildRequires:	bwidget
BuildRequires:	desktop-file-utils
# Only to make sure we have these in repositories:
BuildRequires:	tcl-tcllib
BuildRequires:	tcl-TclXML
BuildRequires:	tcl-tkpng
BuildRequires:	tcl-zlib
BuildRequires:	tcltls
BuildRequires:	tdom
BuildRequires:	tkimg
BuildRequires:	tktray
Requires:	bwidget
Requires:	tcl-tcllib
Requires:	tcl-TclXML
Requires:	tcl-tkpng
Requires:	tcl-zlib
Requires:	tcltls
Requires:	tdom
Requires:	tkimg
Requires:	tktray
BuildArch:	noarch

%description
Tkabber is a Free and Open Source client for the Jabber
instant messaging system. It's written in Tcl/Tk, and
works on many platforms. The choice of Tcl/Tk for a Jabber
client is three-fold:
* it is portable: once you install a Tcl/Tk interpreter on
  your system, the Tkabber script "just runs" — without having
  to compile anything;
* it is customizable: Tkabber reads a configuration file when
  it starts that tells it the settings of various parameters; and,
* it is extensible: the configuration file is actually a Tcl
  script, so you can replace or augment entire portions of Tkabber
  (if you're so inclined).

%files
%doc AUTHORS COPYING ChangeLog README doc/tkabber.html
%{_bindir}/tkabber
%{_bindir}/tkabber-remote
%{_datadir}/tkabber
%{_datadir}/applications/tkabber.desktop
%{_datadir}/pixmaps/tkabber.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# nothing

%install
make install-bin DESTDIR=%{buildroot}

desktop-file-install \
	--dir=%{buildroot}%{_datadir}/applications \
	%{SOURCE3}

mkdir -p %{buildroot}%{_datadir}/pixmaps/
mkdir -p %{buildroot}%{_bindir}

install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/tkabber.png
install -m 0755 %{SOURCE4} %{buildroot}%{_bindir}/tkabber
install -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/tkabber-remote

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11039 |21cr|tkabber-plugins-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Additional plugins for tkabber
Name:		tkabber-plugins
Version:	1.1.2
Release:	1
# most have BSD, some GPL and tkabber-khim is under TCL
License:	GPLv2 and BSD and TCL
Group:		Networking/Instant messaging
Url:		http://tkabber.jabber.ru/
Source0:	http://files.jabber.ru/tkabber/%{name}-%{version}.tar.xz
Requires:	tkabber = %{version}
BuildArch:	noarch

%description
Additional plugins for tkabber.

%files
%doc COPYING ChangeLog README license.*
%{_datadir}/tkabber-plugins

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# empty here

%install
make install-bin PREFIX=%{_prefix} DESTDIR=%{buildroot}

cp attline/license.terms license.BSD
cp tkabber-khim/tklib_licence.terms license.TCL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11040 |21cr|tkbabel-0.59-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tk/Tcl frontend for babelfish language translation
Name:		tkbabel
Version:	0.59
Release:	10
License:	GPL
Group:		Communications

Source:		http://members.home.net/sdanis/%{name}/%{name}-%{version}.tar.bz2

URL:		http://members.home.ner/sdanis/%{name}/
Buildarch:	noarch
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
Tkbabel and tclbabel are simple Tcl/Tk programs to access babelfish from
either the command line (tclbabel) or from a simple GUI (tkbabel).


%prep
 
%setup -q -n %{name}-%{version}
  
%build
# replace the location of Babelfish.tcl in tkbabel and tclbabel
mv tclbabel tclbabel.orig
#sed -e "s/\/usr\/local\/lib\/tclbabel/\/usr\/share/" tclbabel.orig > tclbabel
perl -pi -e "s,/usr/local/lib/tclbabel/,/usr/share/," tclbabel.orig
perl -pi -e "s,/usr/lib/tclbabel/,/usr/share/," tclbabel.orig
cat tclbabel.orig > tclbabel

mv tkbabel  tkbabel.orig
#sed -e "s/\/usr\/local\/lib\/tclbabel/\/usr\/share/" tkbabel.orig  > tkbabel
perl -pi -e "s,/usr/local/lib/tclbabel/,/usr/share/," tkbabel.orig
perl -pi -e "s,/usr/lib/tclbabel/,/usr/share/," tkbabel.orig
cat tkbabel.orig > tkbabel

%install
rm -fr %buildroot

# install the actual executable
install -m 755 -d $RPM_BUILD_ROOT/usr
install -m 755 -d $RPM_BUILD_ROOT%{_bindir}
install -m 755 -d $RPM_BUILD_ROOT/usr/share
install -m 755 Babelfish.tcl  $RPM_BUILD_ROOT/usr/share/Babelfish.tcl
install -m 755 {tk,tcl}babel  $RPM_BUILD_ROOT%{_bindir}/


%clean
rm -fr %buildroot


%files
%defattr (-,root,root)
%doc CHANGELOG INSTALL LICENSE README USAGE BUGS
%{_bindir}/tclbabel
%{_bindir}/tkbabel
/usr/share/Babelfish.tcl 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11041 |21cr|tkcvs-8.2.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tk interface for CVS
Name:		tkcvs
Version: 	8.2.3
Release: 	3
License:	GPLv2
Group:		Development/Other
Url:            http://www.twobarleycorns.net/tkcvs.html
Source:         http://www.twobarleycorns.net/%{name}-%{version}.tar.gz
Patch0:		tkcvs-8.2.1-paths.patch
Requires:	tk
Requires:	cvs
Requires:	tcl
BuildArch:	noarch
Epoch:		1

%description
TkCVS is a Tcl/Tk-based graphical interface to the CVS and Subversion 
configuration management systems.  It includes facilities for providing 
"user friendly" names to modules and directories within the repository, 
and provides a facility to interactively browse the repository looking 
for modules and directories.

%prep
%setup -q
%patch0 -p1 -b .paths

%install
install -d %{buildroot}/%{_bindir}/
install -d %{buildroot}/%{_datadir}/tkcvs/bitmaps
install -d %{buildroot}/%{_mandir}/man1

install tkcvs/tkcvs.tcl %{buildroot}/%{_bindir}/tkcvs
install tkdiff/tkdiff %{buildroot}/%{_bindir}/tkdiff
install tkcvs/*.tcl       %{buildroot}/%{_datadir}/tkcvs
install tkcvs/tclIndex    %{buildroot}/%{_datadir}/tkcvs
install tkcvs/bitmaps/*         %{buildroot}/%{_datadir}/tkcvs/bitmaps/
install tkcvs/*.1         %{buildroot}/%{_mandir}/man1
rm -f %{buildroot}/%{_mandir}/tkcvs/tkcvs_def.tcl
install -d %{buildroot}/%{_sysconfdir}/cvs/
install tkcvs/tkcvs_def.tcl %{buildroot}/%{_sysconfdir}/cvs/

#README.tkcvs tkdiff/COPYING tkcvs/vendor.readme tkcvs/branchgen.sh
ln tkdiff/LICENSE.txt tkdiff.LICENSE.txt
ln tkdiff/README.txt tkdiff.README.txt
ln tkdiff/CHANGELOG.txt tkdiff.CHANGELOG.txt

# Menu support

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=TkCVS
Comment=Graphical interface to CVS and SVN
Comment[ru]=Графический интерфейс для CVS и SVN
Exec=%{_bindir}/%{name} 
Icon=development_tools_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;RevisionControl;X-MandrivaLinux-MoreApplications-Development-Tools;
EOF

cat > %{buildroot}%{_datadir}/applications/tkdiff.desktop <<EOF
[Desktop Entry]
Name=TkDiff
Comment=Graphical interface to diff
Comment[ru]=Графический интерфейс для команды diff
Exec=%{_bindir}/tkdiff
Icon=development_tools_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;RevisionControl;X-MandrivaLinux-MoreApplications-Development-Tools;
EOF


%files
%doc FAQ.txt CHANGELOG.txt tkdiff*.txt
%attr(755,root,root) %{_bindir}/*
%{_datadir}/tkcvs/*.tcl
%dir %{_datadir}/tkcvs/
%dir %{_datadir}/tkcvs/bitmaps/
%{_datadir}/tkcvs/tclIndex
%{_datadir}/applications/*.desktop
%{_mandir}/man*/*
%{_datadir}/tkcvs/bitmaps/*
%config(noreplace) %{_sysconfdir}/cvs/tkcvs_def.tcl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11042 |21cr|tkdvd-4.0.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple DVD mastering GUI
Name:		tkdvd
Version:	4.0.9
Release:	5
License:	GPLv2+
Group:		Archiving/Cd burning
URL:		http://regis.damongeot.free.fr/tkdvd/
Source0:	http://regis.damongeot.free.fr/tkdvd/dl/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
# For macros
BuildRequires:	tcl-devel
Requires:	dvd+rw-tools tk tcl
BuildArch:	noarch

%description
TkDVD is a GUI for growisofs which is a part of dvd+rw-tools.  It allows
burnning DVD+R/RW, -R/W and DVD+R DL easily.

Features:
    * View the current command line passed to growisofs with options and
      file listing
    * Burn DVD from iso images
    * Create ISO images from files
    * Can overburn DVD
    * Support multi-sessions DVD
    * Add/delete/exclude file/directories and show current used space
    * can keep directory structure
    * options to choose iso9660 filesystem extension (like Joliet or
      RockRidge extensions)
    * Prevent burning if used space > DVD+R/RW capacity
    * show output of growisofs/mkisofs to view burned % and estimated
      remaining time

%prep
%setup -q -n %{name}
chmod 755 TkDVD.sh
chmod 644 icons/*.*
chmod 644 src/*.tcl
perl -p -i -e 's|\$\{source_directory\}|%{tcl_sitelib}/%{name}||g' TkDVD.sh src/*

%install
rm -fr %{buildroot}
mkdir -p %{buildroot}%{tcl_sitelib}/%{name}
cp TkDVD.sh %{buildroot}%{tcl_sitelib}/%{name}
cp -r src %{buildroot}%{tcl_sitelib}/%{name}
mkdir -p %{buildroot}%{_bindir}
ln -sf %{tcl_sitelib}/%{name}/TkDVD.sh %{buildroot}%{_bindir}/%{name}

#menu

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=TkDVD
Comment=%{summary}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=DiscBurning;Archiving;
EOF

#icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
cp icons/%{name}-48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
cp icons/%{name}-32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -size 16x16 icons/%{name}-48.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%{update_menus}
%update_icon_cache hicolor
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%clean_icon_cache hicolor
%endif

%files
%defattr(-,root,root)
%doc ChangeLog FAQ README TODO
%{_bindir}/%{name}
%{tcl_sitelib}/%{name}
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11043 |21cr|tkeca-4.4.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		tkeca
Summary: 	Tk GUI for Ecasound multitrack audio editor and recorder
Version: 	4.4.3
Release: 	4
Source0:	http://sourceforge.net/projects/tkeca/files/%{name}-%{version}.tar.gz
URL:		http://tkeca.sourceforge.net/
License:	GPLv2+
Group:		Sound
# For macros
BuildRequires:	tcl-devel
Requires:	tk
Requires:	tcl
Requires:	ecasound
BuildArch:	noarch

%description
Tk Ecasound is a frontend for Ecasound. It has the look of a multitrack
recorder. It supports Ladspa plugins, multiple devices inputs/outputs,
and multiple effects.

%prep
%setup -q
										
%install
mkdir -p %{buildroot}/%{tcl_sitelib}/%{name}
cp tkeca.tcl %{buildroot}/%{tcl_sitelib}/%{name}/

mkdir -p %{buildroot}/%{_bindir}
cat > %{buildroot}/%{_bindir}/%{name} << EOF
#!/bin/bash
if [ -e ~/.ecasoundrc ]
then echo "~/.ecasoundrc found"
else echo "creating ~/.ecasoundrc"; cp /usr/share/ecasound/ecasoundrc ~/.ecasoundrc
fi
if [ -e ~/.ecasound/ecasoundrc ]
then echo "~/.ecasound/ecasoundrc found"
else echo "creating ~/.ecasound/ecasoundrc"; mkdir -p ~/.ecasound; cp /usr/share/ecasound/ecasoundrc ~/.ecasound
fi
%{tcl_sitelib}/%{name}/tkeca.tcl
EOF
chmod ugo+x %{buildroot}/%{_bindir}/%{name}

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=TkEca
Comment=%{summary}
Exec=%{_bindir}/%{name} 
Icon=sound_section
Terminal=false
Type=Application
Categories=AudioVideo;Audio;AudioVideoEditing;
EOF

%clean

%if %mdkversion < 200900
%post
%update_menus
%endif
		
%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%doc README.tkeca *.html
%{_bindir}/%{name}
%{_datadir}/applications/*
%{tcl_sitelib}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11044 |21cr|tkimg-1.4.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Image support library for Tk
Name:		tkimg
Version:	1.4.13
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://wiki.tcl-lang.org/page/Img
Source0:	https://downloads.sourceforge.net/project/tkimg/tkimg/%{url_ver}/tkimg%20%{version}/Img-%{version}-Source.tar.gz

BuildRequires:	tcl-tcllib
BuildRequires:	jpeg-devel
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(zlib)
Requires:	tcl

%description
This package contains a collection of image format handlers for the Tk
photo image type, and a new image type, pixmaps.
The provided format handlers include bmp, gif, ico, jpeg, pcx, png,
ppm, ps, sgi, sun, tga, tiff, xbm, and xpm.

%files
%doc README
%{_libdir}/*.so
%{tcl_sitearch}/Img%{version}
%exclude %{tcl_sitearch}/Img%{version}/*.a
%{_mandir}/mann/*.n*

#----------------------------------------------------------------------------

%package devel
Summary:	Libraries, includes, etc. used to develop an application with %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	jpeg-devel
Requires:	tcl-devel
Requires:	pkgconfig(libpng)
Requires:	pkgconfig(libtiff-4)
Requires:	pkgconfig(tk)
Requires:	pkgconfig(zlib)

%description devel
This are the header files needed to develop a %{name} application.

%files devel
%doc README
%{_includedir}/*
%{_libdir}/*.sh
%{tcl_sitearch}/Img%{version}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Img-%{version}

%build
export LDFLAGS="${LDFLAGS} -lm"
%configure \
	--with-tcl=%{tcl_sitearch} \
	--with-tk=%{_libdir} \
	--libdir=%{tcl_sitearch} \
	--enable-threads \
	--enable-64bit
%make

%install
make INSTALL_ROOT=%{buildroot} install

# Fixing some permissions
find %{buildroot}/%{tcl_sitearch} -name "*.sh" |xargs chmod 644
find %{buildroot}/%{tcl_sitearch} -name "*.tcl" |xargs chmod 644
find %{buildroot}/%{tcl_sitearch} -name "*.a" |xargs chmod 644
find %{buildroot}/%{tcl_sitearch} -name "*.so" |xargs chmod 755

# Make library links
mv %{buildroot}/%{tcl_sitearch}/*.sh %{buildroot}/%{_libdir}
for tcllibs in %{buildroot}/%{tcl_sitearch}/Img1.4/*tcl*.so; do
btcllibs=`basename $tcllibs`
ln -s tcl%{tcl_version}/Img1.4/$btcllibs %{buildroot}/%{_libdir}/$btcllibs
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11045 |21cr|tktray-1.3.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	System Tray Icon Support for Tk on X11
Name:		tktray
Version:	1.3.9
Release:	4
License:	BSD
Group:		System/Libraries
Url:		http://code.google.com/p/tktray/
Source0:	http://tktray.googlecode.com/files/%{name}%{version}.tar.gz
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	tk
Requires:	tcl

%description
Tktray is an extension that is able to create system tray icons.
It follows http://www.freedesktop.org specifications when looking 
up the system tray manager.

%files
%doc ChangeLog license.terms docs/tktray.html
%{tcl_sitearch}/%{name}%{version}
%{_libdir}/*.so
%{_mandir}/mann/%{name}.n.*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}%{version}

chmod 0644 ChangeLog license.terms docs/*

%build
%configure \
	--libdir=%{tcl_sitearch} \
	--with-tcl=%{_libdir} \
	--with-tk=%{_libdir}

%make CFLAGS_DEFAULT="%{optflags}" CFLAGS_WARNING="-Wall"

%install
%makeinstall_std

ln -s tcl%{tcl_version}/%{name}%{version}/lib%{name}%{version}.so %{buildroot}%{_libdir}/lib%{name}%{version}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11046 |21cr|tlc-article-1.0.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tlc-article
Version:	1.0.17
Release:	1
Summary:	A LaTeX document class for formal documents
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/tlc-article
License:	bsd3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tlc-article.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tlc-article.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a LaTeX document class that orchestrates a
logical arrangement for document header, footer, author,
abstract, table of contents, and margins. It standardizes a
document layout intended for formal documents. The tlc_article
GitHub repository uses a SCRUM framework adapted to standard
GitHub tooling. tlc_article is integrated with Travis-ci.org
for continuous integration and AllanConsulting.slack.com for
centralized notification.

#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/latex/tlc-article
%doc %{_texmfdistdir}/doc/latex/tlc-article

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11047 |21cr|tldr-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simplified and community-driven man pages
Name:		tldr
Version:	3.2.0
Release:	1
License:	MIT
Group:		Text tools
Url:		https://github.com/tldr-pages/tldr-python-client
Source0:	https://github.com/tldr-pages/tldr-python-client/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pyproject-rpm-macros
BuildRequires:	make
BuildRequires:	python3dist(colorama)
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(pytest-runner)
BuildRequires:	python3dist(shtab)
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3dist(sphinx-argparse)
BuildRequires:	python3dist(termcolor)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
A Python command line client for tldr: simplified and community-driven
man pages http://tldr-pages.github.io.

%files -f %{pyproject_files}
%doc CHANGELOG.md README.md
%license LICENSE.md
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/zsh/site-functions/_%{name}
%{_mandir}/man1/tldr.1*

#-------------------------------------------------

%prep
%autosetup -n %{name}-python-client-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
pushd docs
make man
popd
%pyproject_wheel
%{__python3} tldr.py --print-completion bash > tldr.bash
%{__python3} tldr.py --print-completion zsh > tldr.zsh

%install
%pyproject_install
%pyproject_save_files tldr

install -Dp --mode=0644 %{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -Dp --mode=0644 %{name}.zsh %{buildroot}%{_datadir}/zsh/site-functions/_%{name}

%check
%pytest -k "not test_error_message"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11048 |21cr|tlf-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	TLF is a contest logging program for Linux
Name:		tlf
Version:	1.4.1
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://home.iae.nl/users/reinc/TLF-0.2.html
Source0:	https://github.com/Tlf/tlf/releases/download/tlf-%{version}/tlf-%{version}.tar.gz
Patch1:	tlf-macro.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(hamlib)
BuildRequires:	pkgconfig(ncurses)

%description
Tlf is developed by Rein Couperus, PA0R. Hamlib is used here to get the rig's
frequency and track dx spots when logged in to a DX-cluser.

Tlf is a contest logging program with networking support, partially based on
TRLOG (but much better of course).

%files
%doc %{_docdir}/tlf
%{_bindir}/tlf
%{_bindir}/play_vk
%{_datadir}/man/man1/tlf.1.*
%{_bindir}/soundlog
%{_datadir}/tlf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
#--enable-hamlib
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11049 |21cr|tlog-12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           tlog
Version:        12.1
Release:        1
Summary:        Terminal I/O logger
Group:          Shells
License:        GPLv2+
URL:            https://github.com/Scribery/%{name}
Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1:        tlog.tmpfiles
Source2:        tlog.sysusers.conf
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  m4
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  pkgconfig(json-c)
BuildRequires:  pkgconfig(libcurl)
# need utempter > 0.5.5
#BuildRequires:  utempter-devel
BuildRequires:  pkgconfig(libsystemd)
Requires(pre):  /bin/systemd-sysusers

%description
Tlog is a terminal I/O recording program similar to "script", but used in
place of a user's shell, starting the recording and executing the real user's
shell afterwards. The recorded I/O can then be forwarded to a logging server
in JSON format.

%files
%license COPYING
%doc %{_docdir}/%{name}
%{_bindir}/%{name}-rec
%attr(6755,%{name},%{name}) %{_bindir}/%{name}-rec-session
%{_bindir}/%{name}-play
%{_libdir}/lib%{name}.so*
%{_datadir}/%{name}
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-rec.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-rec-session.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-play.conf

%pre
%sysusers_create_package tlog %{SOURCE2}

%post
%tmpfiles_create %{name}.conf

#------------------------------------------------------------------------------
%prep
%setup -q

#manual update config.guess and config.sub, aclocal command fail
for f in config.guess config.sub ; do
        test -f /usr/share/libtool/$f || continue
        find . -type f -name $f -exec cp /usr/share/libtool/$f \{\} \;
done

%build
./configure --disable-static --disable-utempter --enable-journal --docdir=%{_docdir}/%{name} \
	--prefix=%{_prefix} --localstatedir=%{_localstatedir} --sysconfdir=%{_sysconfdir} \
	--runstatedir=%{_rundir} --libdir=%{_libdir}

%make_build

%check
%make_build check

%install
%make_install

# Remove development files as we're not doing a devel package yet
rm %{buildroot}/%{_libdir}/*.so
rm -r %{buildroot}%{_includedir}

# Create tmpfiles.d configuration for the lock dir
install -d %{buildroot}%{_tmpfilesdir}
install -m0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# install sysusers config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11050 |21cr|tlpui-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without check

Name:    tlpui
Version: 1.6.1
Release: 1
Group:   System/Configuration/Hardware
Summary: A GTK user interface for TLP written in Python
License: GPL-2.0
URL:     https://github.com/d4nj1/TLPUI
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(wheel)

%if %{with check}
BuildRequires: python3dist(pytest)
BuildRequires: python3-gi
BuildRequires: gobject-introspection-devel
BuildRequires: pkgconfig(gtk+-3.0)
%endif

Requires: tlp

BuildArch: noarch

Source0: https://github.com/d4nj1/TLPUI/archive/refs/tags/tlpui-%{version}.tar.gz
Patch0: tlpui-1.6.0-alt-correct-test-case.patch

%description
The Python scripts in this project generate a GTK-UI to change TLP
configuration files easily. It has the aim to protect users from
setting bad configuration and to deliver a basic overview
of all the valid configuration values.

%prep
%autosetup -p1 -n TLPUI-%{name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%pytest

%files
%doc *.md
%{_bindir}/tlpui
%{python3_sitelib}/tlpui/
%{python3_sitelib}/TLPUI-%{version}*-info
%{_datadir}/applications/tlpui.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11051 |21cr|tmake-2.12-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Easy-to-use tool for creating and maintaining portable makefiles
Name:		tmake
Version:	2.12
Release:	10
Group:		Development/Other
License:	Distributable (see LICENSE file)
URL:		http://tmake.sourceforge.net
Source0:	http://heanet.dl.sourceforge.net/sourceforge/tmake/%name-%version.tar.bz2
Source1:	%{name}.rpmlintrc
Requires:	perl
BuildArch:	noarch

%description
Tmake is an easy-to-use tool for creating and maintaining makefiles across
many platforms and compilers. This is a command-line tool based on project
files. The idea is that you should spend your time writing code, not
makefiles.

%prep
%setup -q

%install
install -d %{buildroot}%{_libdir}/%{name}
install -d %{buildroot}%{_bindir}

cp -R lib %{buildroot}%{_libdir}/%{name}
install bin/%name %{buildroot}%{_libdir}/%{name}
install bin/progen %{buildroot}%{_libdir}/%{name}
cat > %{buildroot}%{_bindir}/%{name} <<EOF
export TMAKEPATH=%{_libdir}/%{name}/lib/linux-g++
exec %{_libdir}/%{name}/tmake "\$@"
EOF
cat > %{buildroot}%{_bindir}/progen <<EOF
export TMAKEPATH=%{_libdir}/%{name}/lib/linux-g++
exec %{_libdir}/%{name}/progen "\$@"
EOF

%files
%defattr(755, root, root)
%doc README LICENSE
%doc doc example
%{_libdir}/tmake
%{_bindir}/tmake
%{_bindir}/progen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11052 |21cr|tmatrix-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname TMatrix

Summary:        A cmatrix-like replica of the digital rain from the Matrix
Name:           tmatrix
Version:        1.4
Release:        1
License:        GPLv2
Group:          Terminals
Url:            https://github.com/M4444/TMatrix
Source:         https://github.com/M4444/TMatrix/releases/%{oname}-%{version}.tar.gz
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  pkgconfig(ncurses)


%description 
TMatrix is a program that simulates
the digital rain from The Matrix.
It's focused on being the most accurate
replica of the digital rain effect
achievable on a typical terminal,
while also being customizable and performant.

%files
%doc LICENSE *.txt
%{_bindir}/*
%{_datadir}/bash-completion/completions/tmatrix
%{_datadir}/zsh/
%{_mandir}/man6/tmatrix.6.*
#----------------------------------------------------

%prep 
%setup -qn %{oname}-%{version}

%build 
%cmake -DCMAKE_BUILD_TYPE=DEBUG
%make

%install 
%makeinstall_std -C build



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11053 |21cr|tmda-1.1.12-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	tmda
%define version 1.1.12
%define release 4


Summary:	Tagged Message Delivery Agent
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	http://download.sourceforge.net/%{name}/%{name}-%{version}.tgz
License:	BSD
Group:		Networking/Mail
URL:		http://tmda.net
BuildArch:	noarch
Requires:	python-cdb
BuildRequires:	python 
BuildRoot:	%{_tmppath}/%{name}-%{version}

%description
TMDA is an OSI certified software application designed to
significantly reduce the amount of SPAM/UCE (junk-mail) you
receive. TMDA combines a  "whitelist" (for known/trusted senders),
a "blacklist" (for undesired senders), and a cryptographically
enhanced confirmation system (for unknown, but legitimate
senders).

%package	emacs
Summary:	Tagged Message Deliver Agent - Emacs Support Files
Group:		Editors
Requires:	tmda >= %{version}, emacs

%description	emacs
This module contains useful helper routines for using TMDA from
Gnus (and perhaps other Emacs based mail/news readers). 

%prep
%setup -q

%build
mv doc/README README2

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}


install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/tmda
install -d %{buildroot}%{_datadir}/emacs/site-lisp
install -d %{buildroot}%{py_puresitedir}/TMDA/pythonlib/email

install -m0755 bin/tmda-* %{buildroot}%{_bindir}/
install -m0644 templates/*.txt %{buildroot}%{_datadir}/tmda/
install -m0644 TMDA/*.py %{buildroot}%{py_puresitedir}/TMDA/
install -m0644 TMDA/pythonlib/email/*.py %{buildroot}%{py_puresitedir}/TMDA/pythonlib/email/
install -m0755 contrib/{collectaddys,printcdb,printdbm} %{buildroot}%{_bindir}
install -m0644 contrib/tmda.el %{buildroot}%{_datadir}/emacs/site-lisp

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc ChangeLog CODENAMES COPYING CRYPTO INSTALL README* THANKS UPGRADE contrib doc/html/{*.html,attachments/} doc/pdf/*
%attr(0755,root,root) %{_bindir}/*
%{py_puresitedir}/TMDA/
%{_datadir}/tmda/*

%files emacs
%defattr(0644,root,root)
%{_datadir}/emacs/site-lisp/tmda.el




%changelog
* Wed Mar 30 2011 Stéphane Téletchéa <steletch@mandriva.org> 1.1.12-1mdv2011.0
+ Revision: 649098
- Update to latest release available, 1.1.12

* Tue Nov 02 2010 Michael Scherer <misc@mandriva.org> 1.0.3-11mdv2011.0
+ Revision: 592363
- rebuild for python 2.7

* Sun Sep 20 2009 Thierry Vignaud <tv@mandriva.org> 1.0.3-10mdv2010.0
+ Revision: 445488
- rebuild

* Tue Jan 06 2009 Funda Wang <fwang@mandriva.org> 1.0.3-9mdv2009.1
+ Revision: 326005
- rebuild

* Sun Aug 03 2008 Thierry Vignaud <tv@mandriva.org> 1.0.3-8mdv2009.0
+ Revision: 261570
- rebuild

* Wed Jul 30 2008 Thierry Vignaud <tv@mandriva.org> 1.0.3-7mdv2009.0
+ Revision: 254659
- rebuild

* Fri Dec 21 2007 Olivier Blin <oblin@mandriva.com> 1.0.3-5mdv2008.1
+ Revision: 136546
- restore BuildRoot

  + Thierry Vignaud <tv@mandriva.org>
    - kill re-definition of %%buildroot on Pixel's request


* Wed Dec 13 2006 Nicolas Lécureuil <neoclust@mandriva.org> 1.0.3-5mdv2007.0
+ Revision: 96544
- Rebuild against new python
- Import tmda

* Mon Jan 30 2006 Michael Scherer <misc@mandriva.org> 1.0.3-4mdk
- Remove requires on specific version
- use mkrel
- clean spec, use macro, fix unowned dir

* Thu Jan 06 2005 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0.3-3mdk
- merge spec file changes from the provided spec file, spotted
  by Simon Waldman

* Sun Dec 05 2004 Michael Scherer <misc@mandrake.org> 1.0.3-2mdk
- Rebuild for new python

* Mon Aug 02 2004 Oden Eriksson <oeriksson@mandrakesoft.com> 1.0.3-1mdk
- 1.0.3

* Thu Feb 26 2004 Olivier Thauvin <thauvin@aerov.jussieu.fr> 0.92-2mdk
- own dir

* Tue Dec 16 2003 Oden Eriksson <oden.eriksson@kvikkjokk.net> 0.92-1mdk
- 0.92


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11054 |21cr|tmux-3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _hardened_build 1

Name:           tmux
Version:        3.1
Release:        1%{?dist}
Summary:        A terminal multiplexer
# Most of the source is ISC licensed; some of the files in compat/ are 2 and
# 3 clause BSD licensed.
License:        ISC and BSD
Group:		Terminals
URL:            https://tmux.github.io/
Source0:        https://github.com/tmux/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
# Examples has been removed - so include the bash_completion here
Source1:        bash_completion_tmux.sh

BuildRequires:  pkgconfig(libevent)
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(ncursesw)
BuildRequires:  utempter-devel

%description
tmux is a "terminal multiplexer."  It enables a number of terminals (or
windows) to be accessed and controlled from a single terminal.  tmux is
intended to be a simple, modern, BSD-licensed alternative to programs such
as GNU Screen.

%prep
%autosetup

%build
%configure
%make_build

%install
%make_install
# bash completion
install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/tmux

%post
if [ "$1" = 1 ]; then
  if [ ! -f %{_sysconfdir}/shells ] ; then
    touch %{_sysconfdir}/shells
  fi
  for binpath in %{_bindir} /bin; do
    if ! grep -q "^${binpath}/tmux$" %{_sysconfdir}/shells; then
       (cat %{_sysconfdir}/shells; echo "$binpath/tmux") > %{_sysconfdir}/shells.new
       mv %{_sysconfdir}/shells{.new,}
    fi
  done
fi

%postun
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
  sed -e '\!^%{_bindir}/tmux$!d' -e '\!^/bin/tmux$!d' < %{_sysconfdir}/shells > %{_sysconfdir}/shells.new
  mv %{_sysconfdir}/shells{.new,}
fi

%files
%doc CHANGES
%{_bindir}/tmux
%{_mandir}/man1/tmux.1.*
%{_datadir}/bash-completion/completions/tmux

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11055 |21cr|tmwmusic-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tmwmusic
Version:	0.3
Release:	4
Summary:	The music for The Mana World
Group:		Games/Other
License:	GPLv2+
Url:		http://themanaworld.org/
Source0:	http://sourceforge.net/projects/themanaworld/files/TMW%20Music/0.3/%{name}-%{version}.tar.gz
BuildArch:	noarch

Recommends:	tmw

%description
This packages contains the music for The Mana World.

%prep
%setup -q

%install
mkdir -p %{buildroot}%{_gamesdatadir}/tmw/
cp -R data %{buildroot}%{_gamesdatadir}/tmw/

%clean

%files
%defattr(0644,root,root,0755)
%{_gamesdatadir}/tmw

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11056 |21cr|tntnet-3.1-0.gitffebd1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit ffebd17441d56c43749b88b3b51353feaf2e2a6d
%define commit_short %(echo %{commit} | head -c6)

%define major	13
%define libname	%mklibname tntnet %{major}
%define devname	%mklibname tntnet -d

Summary:	A web application server for web applications written in C++
Name:		tntnet
Version:	3.1
Release:	0.git%{commit_short}.1
License:	LGPLv2.1+
Group:		System/Servers
URL:		http://www.tntnet.org/
Source0:	https://github.com/maekitalo/tntnet/archive/%{commit}.zip?/%{name}-%{commit}.zip

BuildRequires:	zip
BuildRequires:	cxxtools-devel
BuildRequires:	minizip-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(zlib)

%description
Tntnet is a web application server for web applications written in C++.

You can write a Web-page with HTML and with special tags you embed
C++-code into the page for active contents. These pages, called
components are compiled into C++-classes with the ecpp-compilier
"ecppc", then compiled into objectcode and linked into a shared library.
This shared library is loaded by the webserver "tntnet" on request and
executed.

%files
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*.xml
%{_bindir}/tntnet
%{_datadir}/tntnet
%dir %{_libdir}/tntnet
%{_libdir}/tntnet/tntnet.*
%{_mandir}/man7/ecpp.*
%{_mandir}/man7/tntnet.*
%{_mandir}/man8/tntnet.*

#-------------------------------------------------------
%package demos
Summary:	Demos for tntnet
Group:		System/Servers
Requires:	%{name} = %{version}

%description demos
Demo web applications for tntnet.

%files demos
%exclude %{_libdir}/tntnet/tntnet.*
%{_libdir}/tntnet/*

#-------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of tntnet
Group:		System/Libraries

%description -n %{libname}
Tntnet library.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#-------------------------------------------------------

%package -n %{devname}
Summary:	Headers and static library for tntnet development
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	tntnet-devel = %{version}-%release

%description -n %{devname}
Headers and static library for tntnet development.

%files -n %{devname}
%doc AUTHORS README
%{_bindir}/tntnet-project
%{_bindir}/ecpp*
%{_libdir}/*.so
%{_includedir}/tnt
%{_libdir}/pkgconfig/tntnet.pc
%{_libdir}/pkgconfig/tntnet_sdk.pc
%{_mandir}/man1/ecppc.*
%{_mandir}/man1/tntnet-defcomp.1*

#-------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
autoreconf -vfi
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--sysconfdir=%{_sysconfdir} \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11057 |21cr|togl-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Name:		togl
Group:		Sciences/Other
Version:	2.1
Release:	1
Summary:	Togl - a Tk OpenGL widget
License:	BSD like
URL:		http://togl.sourceforge.net/index.html
# extracted from netgen source https://github.com/NGSolve/netgen
Source0:	Togl-2.1.tar.gz
Patch0:		togl-cmake.patch
#BuildRequires:	cmake
BuildRequires:	pkgconfig(gl)
BuildRequires:	tcl-devel
BuildRequires:	tk-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%description
Togl is a Tk widget for OpenGL rendering. Togl was originally based on OGLTK,
written by Benjamin Bederson at the University of New Mexico. Togl's main
features are:

    * unifies MS Windows, X11 (Linux/IRIX/...), and Mac OS X Aqua support
    * support for requesting stencil, accumulation, alpha buffers, etc.
    * multiple OpenGL drawing windows
    * simple stereo rendering support
    * simple, portable font support
    * color-index mode support including color allocation functions
    * overlay plane support
    * OpenGL extension testing from Tcl
    * Tcl Extension Architecture (TEA) 3 compliant 

Togl does almost no OpenGL drawing itself, instead it manages OpenGL drawing
by calling various Tcl commands (a.k.a., callback functions). Those commands
can be C functions that call OpenGL (in)directly or another Tcl package
(e.g., Tcl3D).

Togl is copyrighted by Brian Paul (brian_e_paulATyahooDOTcom),
Benjamin Bederson (bedersonATcsDOTumdDOTedu), and Greg Couch
(gregcouchATusersDOTsourceforgeDOTnet). See the LICENSE file for details.

%files
%doc doc/*
%license LICENSE
%{_libdir}/libTogl%{version}.so
%{_libdir}/lib*.a
%{_libdir}/*.tcl
%{_includedir}/*.h

#-----------------------------------------------------------------------
%prep
%autosetup -p1 -n Togl-%{version}

%build
%configure --enable-shared

# cmake build not work fine togl_ws.h and pkg_Index.tcl files not generated 
#%%cmake -Wno-dev \
#	-DTCL_INCLUDE_PATH=%{_includedir}/tcl8.6.11/ \
#	-DTK_INCLUDE_PATH=%{_includedir}/tk8.6.11/

%make

%install
%makeinstall_std

# for cmake build, manual install headers, but togl_ws.h and pkg_Index.tcl files not generated 
#install -d %{buildroot}%{_includedir}
#install -m0644 togl.h %{buildroot}%{_includedir}
#install -m0644 toglDecls.h %{buildroot}%{_includedir}

mv -f %{buildroot}%{_libdir}/Togl%{version}/* %{buildroot}%{_libdir}
mv -f %{buildroot}%{_libdir}/{,Togl%{version}-}pkgIndex.tcl
rmdir %{buildroot}%{_libdir}/Togl%{version}
rm %{buildroot}%{_libdir}/LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11058 |21cr|toilet-0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define debug_package %{nil}

Summary:	Powerful figlet replacement
Name:		toilet
Version:	0.3
Release:	6
License:	WTFPL
Group:		Text tools
Url:		http://libcaca.zoy.org/toilet.html
Source:		http://libcaca.zoy.org/files/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(caca) >= 0.99.beta18
BuildRequires:	pkgconfig(zlib)

%description
TOIlet is in its very early development phase. It uses the powerful libcucul
library to achieve various text-based effects. TOIlet implements or plans to
implement the following features:
 * The ability to load FIGlet fonts
 * Support for Unicode input and output
 * Support for color output
 * Support for various output formats: HTML, IRC, ANSI...

TOIlet also aims for full FIGlet compatibility. It is currently able to load
FIGlet fonts and perform horizontal smushing. 

%prep
%setup -q

%build
./bootstrap
%configure
%make

%install
%makeinstall 

%files
%_bindir/toilet
%_datadir/figlet
%_mandir/man1/toilet.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11059 |21cr|tokodon-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mastodon client for Plasma Mobile
Name:		tokodon
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	kf5config-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(mpv)

%description
Mastodon client for Plasma Mobile.

%files -f tokodon.lang
%{_kde5_bindir}/tokodon
%{_kde5_applicationsdir}/org.kde.tokodon.desktop
%{_kde5_notificationsdir}/tokodon.notifyrc
%{_kde5_datadir}/qlogging-categories5/tokodon.categories
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.tokodon.svg
%{_appdatadir}/org.kde.tokodon.appdata.xml

#-------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11060 |21cr|tolua++-1.0.93-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define apiver 5.3
%define soname tolua++%{apiver}
%define libname %mklibname %{name} %{apiver}
%define devname %mklibname %{name} -d

Name:		tolua++
Version:	1.0.93
Release:	8
Summary:	A tool to integrate C/C++ code with Lua
Group:		Development/Other
License:	MIT
# Upstream is defunct, so no URL
Source0:	%{name}-%{version}.tar.bz2
Patch0:		tolua++-1.0.93-no-buildin-bytecode.patch
Patch1:		tolua++-1.0.93-lua52.patch
Patch2:		tolua++-1.0.93-scons304.patch
BuildRequires:	gcc-c++
BuildRequires:	scons
BuildRequires:	lua-devel >= 5.3

%description
tolua++ is an extended version of tolua, a tool to integrate C/C++ code with
Lua. tolua++ includes new features oriented to C++.

%files
%{_bindir}/%{name}
%{_datadir}/%{name}

#-------------------------------------------------------------------
%package -n %{libname}
Summary:	Shared library for tolua++
Group:		Development/Other
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
Shared library for tolua++.

%files -n %{libname}
%{_libdir}/libtolua++%{apiver}.so

#----------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for tolua++
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(lua) >= 5.3
Provides:	tolua++-devel = %{EVRD}

%description -n %{devname}
Development files for tolua++.

%files -n %{devname}
%doc README doc/*
%{_libdir}/libtolua++.so
%{_includedir}/%{name}.h

#----------------------------------------------------------------------------
%prep
%autosetup -p1
sed -i 's/\r//' doc/%{name}.html


%build
scons %{?_smp_mflags} -Q CCFLAGS="%{optflags} $(pkg-config --cflags lua)" tolua_lib=tolua++%{apiver} LINKFLAGS="-Wl,-soname,libtolua++%{apiver}.so" shared=1
# Relink the tolua++ binary, to link it without the soname which we add to
# LINKFLAGS to build a shared lib
gcc -o bin/%{name} src/bin/tolua.o -Llib -ltolua++%{apiver} -llua -ldl -lm


%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
install -m 755 bin/%{name}  %{buildroot}%{_bindir}
install -m 755 lib/libtolua++%{apiver}.so %{buildroot}%{_libdir}
ln -s libtolua++%{apiver}.so %{buildroot}%{_libdir}/libtolua++.so
install -p -m 644 include/%{name}.h %{buildroot}%{_includedir}
# For use with Patch2 (not working yet)
mkdir -p %{buildroot}%{_datadir}/%{name}
install -p -m 644 src/bin/lua/*.lua %{buildroot}%{_datadir}/%{name}




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11061 |21cr|tolua-5.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sdevname %mklibname %{name} -d -s

Summary:	A tool that greatly simplifies the integration of C/C++ code with Lua
Name:		tolua
Version:	5.2.4
Release:	1
License:	GPL
Group:		Development/Other
Url:		http://www.tecgraf.puc-rio.br/~celes/tolua/
Source0:	https://web.tecgraf.puc-rio.br/~celes/tolua/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(lua)
Requires:	lua5.3
Requires:	%{name}-devel = %{EVRD}

%description
tolua is a tool that greatly simplifies the integration of C/C++ 
code with Lua. Based on a cleaned header file, tolua automatically 
generates the binding code to access C/C++ features from Lua. 
Using Lua API and tag method facilities, tolua maps C/C++ constants, 
external variables, functions, classes, and methods to Lua.

%files
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Header files for tolua
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{sdevname}
Header files for tolua.

%files -n %{sdevname}
%doc INSTALL README
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
sed -i	-e "s@LUA=/usr/local@LUA=/usr@" \
	-e "s@LUALIB=$(LUA)/lib@LUALIB=$(LUA)/%{_lib}@" \
	-e "s@CFLAGS=@CFLAGS=%{optflags}@" \
	-e "s@CXXFLAGS=@CXXFLAGS=%{optflags}@" \
	-e "s@-ansi@@" \
	config

%build
%make

%install
install -dm 755 %{buildroot}%{_bindir}
install -m 755 bin/%{name} %{buildroot}%{_bindir}

install -dm 755 %{buildroot}%{_includedir}
install -m 644 include/%{name}.h %{buildroot}%{_includedir}

install -dm 755 %{buildroot}%{_libdir}
install -m 644 lib/lib%{name}.a %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11062 |21cr|tomcat-native-1.2.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	api 1
%define	libname %mklibname tcnative %{api} %{major}
%define	devname %mklibname tcnative %{api} -d

Summary:	Tomcat Native Java library
Name:		tomcat-native
Version:	1.2.21
Release:	1
License:	Apache License
Group:		Development/Java
Url:		http://tomcat.apache.org/
Source0:	http://www.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/%{name}-%{version}-src.tar.gz
BuildRequires:	binutils
BuildRequires:	doxygen
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	pkgconfig(apr-1) >= 1.4.0
BuildRequires:	pkgconfig(openssl) >= 1.0.2

%description
The mission of the Tomcat Native Library (TCN) is to provide a free library of
C data structures and routines. It contains additional utility interfaces for
Java.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Tomcat Native development kit
Group:		Development/Java
%rename		%{_lib}tcnative1

%description -n %{libname}
The mission of the Tomcat Native Library (TCN) is to provide a free library of
C data structures and routines. It contains additional utility interfaces for
Java.
This package contains the library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libtcnative-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Tomcat Native development kit
Group:		Development/Java
Requires:	%{libname} = %{EVRD}
Provides:	%{_lib}tcnative-devel = %{EVRD}
%rename		%{_lib}tcnative1-devel

%description -n %{devname}
The mission of the Tomcat Native Library (TCN) is to provide a free library of
C data structures and routines. It contains additional utility interfaces for
Java.
This package contains the files needed to develop programs
using %{name}.

%files -n %{devname}
%doc CHANGELOG.txt LICENSE README.txt TODO.txt
%doc docs/*
%{_includedir}/%{name}/*.h
%{_libdir}/libtcnative-%{api}.so
%{_libdir}/pkgconfig/tcnative-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-src


%build
pushd native
export JAVA_HOME=%{java_home}
%configure \
	--with-apr=%{_prefix} \
	--includedir=%{_includedir}/%{name}
%make
popd


%install
pushd native
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11063 |21cr|tong-1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A mixture of two classic games
Name:		tong
Version:	1.3
Release:	3
License:	GPLv3+
Group:		Games/Puzzles
Url:		http://www.nongnu.org/tong
Source0:	http://www.nongnu.org/tong/tong-%{version}.tar.gz
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
Requires:	%{name}-data

%description
Sometimes, the total is greater than the sum of the parts.

Tetris and Pong are classics, addictive and unshakable from their places
in gaming history. TONG is the result of mixing the two, capitalizing
on the essential qualities of each classic and adding new twists of its own
to make an explosive chemical reaction out of it all.

%files
%doc COPYING CREDITS README making-of.txt
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/32x32/apps/%{name}.png

#----------------------------------------------------------------------------

%package data
Summary:	Data files for the Tong game
Group:		Games/Puzzles
Requires:	%{name}
BuildArch:	noarch

%description data
Data files for the Tong game.

%files data
%{_gamesdatadir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
%make \
	CC="%{__cxx} %{optflags}" \
	GAME_DATA_DIR=%{_gamesdatadir}/%{name}

%install
# As of version 1.3 their is no install target
# binary
install -D -m755 tong %{buildroot}%{_gamesbindir}/%{name}

# data + CREDITS file needed for the in-game credits
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -a media CREDITS %{buildroot}%{_gamesdatadir}/%{name}/

# icon
install -D -m644 media/icon.png %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png

# desktop file
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Tong
GenericName=A mixture of two classic games
Comment=Mixture of the classic Pong and Tetris games with some twists
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;BlocksGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11064 |21cr|toppler-1.1.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		toppler
Version:	1.1.6
Release:	7
Summary:	Reimplementation of the old game known as Tower Toppler or Nebulous
Group:		Games/Arcade
License:	GPL
URL:		http://toppler.sourceforge.net/
Source0:	https://sourceforge.net/projects/toppler/files/toppler/1.1.6/%{name}-%{version}.tar.gz
Patch1:		toppler-mkdir.patch
BuildRequires:	SDL-devel
BuildRequires:	SDL_mixer-devel
BuildRequires:	zlib-devel
BuildRequires:	gettext

%description
It is an almost complete reimplementation of the old game known as Tower
Toppler or Nebulous. This game was available at least for PC, Atari, C64
and now the PC version is abandonware.

The goal of the game is to reach the target door of each of the 8 towers
in currently 2 missions with this little green animal. This door is
usually at the very top of the tower.

But finding the way by using elevators and walking trough a maze of doors
and platforms is not the only problem you have to solve. There are a bunch
of other creatures living on the tower that will hinder you to reach your
target by pushing you over the edge of the platforms.

The only weapon of defence you have is to throw a little snowball. But
most of the other creatures just don't care about this. So you must avoid
them.

%files -f %{name}.lang
%defattr(-, root, root)
%doc %{_docdir}/%{name}-%{version}/*
%attr(664, root, games) %ghost %{_localstatedir}/lib/games/toppler.hsc
%attr(2755, root, games) %{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_mandir}/man?/%{name}*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

%post
%create_ghostfile %{_localstatedir}/lib/games/toppler.hsc root games 664

#------------------------------------------------------------------------
%prep
%autosetup -p1

%build
export CXXFLAGS="%{optflags} -U HISCOREDIR -D HISCOREDIR=\\\"%{_localstatedir}/lib/games\\\" -U TOP_DATADIR -D TOP_DATADIR=\\\"%{_gamesdatadir}/%{name}\\\""
%configure --bindir=%{_gamesbindir}
make

%install
make install DESTDIR=%{buildroot} pkglocalstatedir=%{_localstatedir}/lib/games pkgdatadir=%{_gamesdatadir}/%{name} pkgdocdir=%{_docdir}/%{name}-%{version}

rm -f %{buildroot}%{_datadir}/applications/%{name}.desktop
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Tower Toppler
Comment=%{Summary}
Comment[ru]=Игра наподобие Tower Toppler и Nebulous
Exec=soundwrapper %{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

chmod a+w %{buildroot}%{_localstatedir}/lib/games/toppler.hsc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11065 |21cr|torbrowser-launcher-0.3.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname torbrowser_launcher

Summary:        Download,update, and run the Tor Browser Bundle
Name:           torbrowser-launcher
Version:        0.3.5
Release:        2
License:        MIT
Group:          Networking/WWW
Url:            https://www.github.com/micahflee/torbrowser-launcher
Source0:        https://github.com/micahflee/torbrowser-launcher/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  desktop-file-utils
BuildRequires:  fakeroot
BuildRequires:  gnupg
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(twisted)
BuildRequires:  python3egg(distro)
BuildRequires:  wmctrl
Requires:       python3egg(parsley)
Requires:       python3egg(psutil)
Requires:       pylzma
Requires:       python3egg(service-identity)
Requires:       python3egg(twisted)
Requires:       python3egg(txws)
Requires:       wmctrl
BuildArch:      noarch

%description
Tor Browser Launcher is intended to make the Tor Browser Bundle (TBB) easier to
maintain and use for GNU/Linux users.

You install torbrowser-launcher from your distribution's package manager and
it handles downloading the most recent version of TBB for you, in your language
and for your architecture. It also adds a "Tor Browser" application launcher to
your operating system's menu, and lets you set Tor Browser as your default web
browser.

When you first launch Tor Browser Launcher, it will download TBB from
https://www.torproject.org/, extract it in your home directory, and execute it.

When you run it after that it will just execute TBB. When you open Tor Browser
after an update, it will download the newer version of TBB for you and extract
it over your old TBB directory, so you will maintain your TBB bookmarks and
always be running the latest version.

%files -f %{name}.lang
%doc LICENSE README.md
%{_bindir}/%{name}
%{py3_puresitedir}/%{oname}-%{version}-*.egg-info
%{py3_puresitedir}/%{oname}/
%{_datadir}/metainfo/torbrowser.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/128x128/apps/torbrowser.png
%{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/apparmor.d/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
python3 setup.py build

%install
python3 setup.py install --root=%{buildroot}
desktop-file-install %{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name}
find %{buildroot} -size 0 -delete
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11066 |21cr|torch-3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname Torch
%define oversion 3

Summary: State of the art machine learning library
Name:    torch
Version: 3.1
Release: 7
Source0: http://www.torch.ch/archives/%{oname}%{oversion}src.tar.bz2
License: BSD
Group:   System/Libraries
Url:     http://www.torch.ch

%description
Torch is a machine-learning library, written in C++. Its aim is to
provide the state-of-the-art of the best algorithms. It is, and it
will be, in development forever.

Main features:

* Many gradient-based methods, including multi-layered perceptrons,
  radial basis functions, and mixtures of experts. Many small
  "modules" (Linear module, Tanh module, SoftMax module, ...) can be
  plugged together.

* Support Vector Machine, for classification and regression.

* Distribution package, includes Kmeans, Gaussian Mixture Models,
  Hidden Markov Models, and Bayes Classifier, and classes for speech
  recognition with embedded training.

* Ensemble models such as Bagging and Adaboost.

* Non-parametric models such as K-nearest-neighbors, Parzen Regression
  and Parzen Density Estimator.

%package devel
Group: Development/C++
Summary: State of the art machine learning library

%description devel
Torch is a machine-learning library, written in C++. Its aim is to
provide the state-of-the-art of the best algorithms. It is, and it
will be, in development forever.

Main features:

* Many gradient-based methods, including multi-layered perceptrons,
  radial basis functions, and mixtures of experts. Many small
  "modules" (Linear module, Tanh module, SoftMax module, ...) can be
  plugged together.

* Support Vector Machine, for classification and regression.

* Distribution package, includes Kmeans, Gaussian Mixture Models,
  Hidden Markov Models, and Bayes Classifier, and classes for speech
  recognition with embedded training.

* Ensemble models such as Bagging and Adaboost.

* Non-parametric models such as K-nearest-neighbors, Parzen Regression
  and Parzen Density Estimator.

This package contains the static library and headers of Torch compiled
with single precision support.

%prep
%setup -q -n %{oname}%{oversion}
cp config/Makefile_options_Linux .

%build
%ifarch %ix86
export RPM_OPT_FLAGS="%{optflags} -malign-double"
%endif
make depend all CFLAGS_OPT_FLOAT="%{optflags} -ffast-math" LD="g++ -fPIC" PACKAGES="distributions gradients"

%install
mkdir -p %{buildroot}%{_includedir}/%{name}
install */*.h %{buildroot}%{_includedir}/%{name}
install -m 644 -D lib/*/libtorch.a %{buildroot}%{_libdir}/libtorch.a

%files devel
%doc LICENSE ChangeLog
%{_includedir}/%{name}
%{_libdir}/libtorch.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11067 |21cr|torrentsniff-0.3.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#fixed2
%{?!mkrel:%define mkrel(c:) %{-c: 0.%{-c*}.}%{!?_with_unstable:%(perl -e '$_="%{1}";m/(.\*\\D\+)?(\\d+)$/;$rel=${2}-1;re;print "$1$rel";').%{?subrel:%subrel}%{!?subrel:1}.%{?distversion:%distversion}%{?!distversion:%(echo $[%{mdkversion}/10])}}%{?_with_unstable:%{1}}%{?distsuffix:%distsuffix}%{?!distsuffix:mdk}}

Summary: Reports status information of BitTorrent distributed downloads

Name: torrentsniff
Version: 0.3.0
Release: 14
Source0: http://www.highprogrammer.com/alan/perl/%{name}-%{version}.tar.bz2
License: MIT
Group: Networking/File transfer
URL: http://www.highprogrammer.com/alan/perl/torrentsniff.html
BuildArch: noarch

%description
TorrentSniff reports status information for a given torrent including the
current number of complete copies (seeds) and incomplete copies (leeches)
currently active.  TorrentSniff is derived from TorrentSpy 0.1.0.3-BETA.


%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{perl_vendorlib}
install -m 755 torrentsniff %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{perl_vendorlib}/BitTorrent
install -m 644 BitTorrent/* %{buildroot}%{perl_vendorlib}/BitTorrent

%clean

%files
%doc README
%{_bindir}/torrentsniff
%{perl_vendorlib}/BitTorrent

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11068 |21cr|torrentutils-0.3.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Utilities for BitTorrent files
Name: torrentutils
Version: 0.3.0
Release: 13
Source0: http://oskarsapps.mine.nu/src/%{name}-%{version}.tar.bz2
URL: http://oskarsapps.mine.nu/torrentutils.html
License: GPL or Artistic
Group: Networking/File transfer
BuildArch: noarch
BuildRequires: perl

%description
The torrentutils are a set of utilities for managing BitTorrent
(`.torrent') files and interactiving with BitTorrent trackers. The
torrentutils contain the following programs:

torrenttool is a script that extracts and displays information from
BitTorrent files, as well as testing and generating checksums for
files listed in them.

defrag is a script that defrags files simply by making a copy of the
file. The original file is then replaced by the copy. Due to the fact
that BitTorrent splits files in pieces, and downloads these pieces in
random order, the downloaded files are often severely fragmented. This
means that reading these files will be slower, sometimes as much as
30% slower. defrag can also recurse directories.

torrentmcfs is a read-only virtual file system for Midnight Commander
that can be used to easier access the information in a BitTorrent
file.

%prep
%setup -q

%build

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall PREFIX=%buildroot%_prefix

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc NEWS README COPYING*
%_bindir/torrenttool
%_bindir/defrag
%_mandir/man1/torrenttool.1*
%_mandir/man1/defrag.1*
%_datadir/mc/extfs/torrentmcfs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11069 |21cr|torsmo-0.18-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name: torsmo
Summary: System monitor like gkrellm, but lightweight
Version: 0.18
Release: 10
Source0: http://ovh.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
Patch0: torsmo-0.18-link.patch
URL: http://torsmo.sourceforge.net/
Group: Monitoring
License: BSD
BuildRequires: pkgconfig(x11)

%description
Torsmo is a system monitor that sits in the corner of your desktop. It's very
simple, customizable and it renders only text on the desktop (and
percentagebars if you want it to ;) and the only lib it uses is Xlib.
Torsmo can show various information about your system and it's peripherals.

%prep
%setup -q
%patch0 -p0

%build
autoreconf -fi
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,0755)
%doc AUTHORS COPYING README torsmorc.sample
%{_mandir}/man1/torsmo.1*
%{_bindir}/torsmo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11070 |21cr|tortoisehg-6.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mercurial GUI command line tool hgtk
Name:		tortoisehg
Version:	6.2.2
Release:	1
License:	GPLv2+
Group:		Development/Tools
# - few files are however under the more permissive GPLv2+
Url:		http://tortoisehg.bitbucket.io/
Source0:	https://www.mercurial-scm.org/release/tortoisehg/targz/tortoisehg-%{version}.tar.gz
BuildRequires:	mercurial >= 4.9.1
BuildRequires:	python3-sphinx
BuildRequires:	python3-qt5-devel
BuildRequires:	pkgconfig(python3)
Requires:	python3-iniparse
Requires:	python3-qt5-network
Requires:	python3-qt5-printsupport
Requires:	python3-qt5-qscintilla
Requires:	python3-qt5-widgets
BuildArch:	noarch
Requires:	mercurial >= 4.9.1

%description
This package contains the hgtk command line tool, which provides a graphical
user interface to the Mercurial distributed revision control system.

%files -f %{name}.lang
%doc COPYING.txt doc/build/html/
%{_bindir}/thg
%{python3_sitelib}/*
%{_datadir}/nautilus-python/extensions/
%{_datadir}/pixmaps/thg_logo.svg
%{_datadir}/pixmaps/tortoisehg/
%{_datadir}/applications/thg.desktop

#----------------------------------------------------------------------------

%package        nautilus
Summary:        Mercurial GUI plugin to Nautilus file manager
Group:		Development/Tools
Requires:	%{name} = %{EVRD}
Requires:	nautilus-python

%description    nautilus
This package contains the TortoiseHg Gnome/Nautilus extension, which makes the
Mercurial distributed revision control system available in the file manager
with a graphical interface.

Note that the nautilus extension has been deprecated upstream.

%files nautilus
%{_datadir}/nautilus-python/extensions/nautilus-thg.py

#----------------------------------------------------------------------------

%prep
%setup -q

cat > tortoisehg/util/config.py << EOT
bin_path     = "%{_bindir}"
license_path = "%{_docdir}/%{name}-%{version}/COPYING.txt"
locale_path  = "%{_datadir}/locale"
icon_path    = "%{_datadir}/pixmaps/tortoisehg/icons"
nofork       = True
EOT

%build
%py3_build

(cd doc && make html)
rm doc/build/html/.buildinfo

%install
%py3_install

install -m0644 -D contrib/thg.desktop %{buildroot}%{_datadir}/applications/thg.desktop

#install -m 644 -D contrib/_hgtk %{buildroot}%{_datadir}/zsh/site-functions/_hgtk

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11071 |21cr|totem-42.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define api		1.0
%define major		0
%define girmajor	1.0
%define libname		%mklibname %{name} %{major}
%define girname		%mklibname %{name}-gir %{girmajor}
%define devname		%mklibname %{name} -d

Summary:	Movie player for GNOME
Name:		totem
Version:	42.0
Release:	3
License:	GPLv2 with exception
Group:		Video
Url:		https://download.gnome.org/sources/totem
Source0:	https://download.gnome.org/sources/totem/%{url_ver}/%{name}-%{version}.tar.xz
Source100:	totem.rpmlintrc
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd45-xml
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	gstreamer1.0-plugins-bad
BuildRequires:	gstreamer1.0-soundtouch
BuildRequires:	gstreamer1.0-soup
BuildRequires:	gstreamer1.0-tools
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pylint
BuildRequires:	vala
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gst-3.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-icon-theme)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(grilo-0.3)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libepc-ui-1.0)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(mx-1.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(totem-plparser)
BuildRequires:	pkgconfig(zeitgeist-2.0)
Requires:	dleyna-connector-dbus
Requires:	dleyna-server
Requires:	grilo-plugins
Requires:	iso-codes
Requires:	gstreamer1.0-gstclutter
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-soundtouch
Requires:	gstreamer1.0-soup
Requires:	lua-socket
Requires:	python3-beautifulsoup
Requires:	python3-dbus
Requires:	python3-feedparser
Requires:	python3-gi
Requires:	python3-httplib2
Requires:	python3-pyxdg
Recommends:	gstreamer1.0-a52dec
#Recommends:	gstreamer1.0-resindvd

%description
Totem is simple movie player for the GNOME desktop. It
features a simple playlist, a full-screen mode, seek and volume
controls, as well as a pretty complete keyboard navigation.

%files -f %{name}.lang
%doc AUTHORS README NEWS
%license COPYING
%{_appdatadir}/*.xml
%{_bindir}/%{name}
%{_bindir}/%{name}-video-thumbnailer
%{_datadir}/applications/org.gnome.Totem.desktop
%{_datadir}/dbus-1/services/org.gnome.Totem.service
%{_datadir}/GConf/gsettings/*.convert
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/thumbnailers/%{name}.thumbnailer
%{_datadir}/%{name}
%{_libdir}/%{name}/plugins/*
%{_libexecdir}/%{name}-gallery-thumbnailer
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%license COPYING
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/Totem-1.0.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%license COPYING
%{_datadir}/gir-1.0/Totem-1.0.gir
%{_includedir}/%{name}/%{api}/*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Denable-gtk-doc=true
%meson_build -j1

%install
%meson_install

sed s,"\${prefix}//","\${prefix}/",g -i %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

%find_lang %{name} --with-gnome

#menu
MIME_TYPES=`tr '\n' , < data/mime-type-list.txt | sed -e 's/,$//'`
desktop-file-install \
	--remove-category="Application" \
	--add-category="X-MandrivaLinux-Multimedia-Video" \
	--add-category="X-MandrivaLinux-CrossDesktop" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11072 |21cr|touchegg-2.0.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multi-touch gestures recognizer
Name:		touchegg
Version:	2.0.16
Release:	2
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://github.com/JoseExposito/touchegg
Source0:	https://github.com/JoseExposito/touchegg/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		no-autostart-if-no-daemon.patch
Patch1:		Disable-gestures-for-OpenBoard.patch
BuildRequires:	cmake
BuildRequires:	stdc++-static-devel
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	xinput
BuildRequires:	xtest


%description
Touchégg is a multi-touch gestures recognizer written in C++.

%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_sysconfdir}/xdg/autostart/touchegg.desktop
%{_unitdir}/touchegg.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11073 |21cr|touchfreeze-0.2.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to disable touchpad tap-clicking while typing
Name:		touchfreeze
Version:	0.2.5
Release:	9
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		http://qsynaptics.sourceforge.net/
Source0:	http://qsynaptics.sourceforge.net/%{name}-%{version}.tar.gz
Obsoletes:	qsynaptics < 0.22.0-15
BuildRequires:	qt4-devel
Requires:	synaptics

%description
TouchFreeze is a simple utility that disables the tap-click function
of Synaptics touchpads while you are typing. As long as you are typing,
tapping the touchpad will not count as a mouse click. It replaces
the previous QSynaptics and KSynaptics tools.

%files
%{_bindir}/%{name}
%{_sysconfdir}/xdg/autostart/rosa-%{name}.desktop
%{_datadir}/autostart/rosa-%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt4
%make LIBS="-lX11 -lQtCore -lQtGui"

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{name} %{buildroot}%{_bindir}/%{name}

# XDG autostart
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
cat > %{buildroot}%{_sysconfdir}/xdg/autostart/rosa-%{name}.desktop << EOF
[Desktop Entry]
Exec=%{_bindir}/%{name}
Name=TouchFreeze - touchpad tap-click inhibitor
Terminal=false
Type=Application
StartupNotify=false
X-KDE-autostart-phase=2
X-KDE-autostart-after=panel
EOF

# KDE autostart
mkdir -p %{buildroot}%{_datadir}/autostart
cp %{buildroot}%{_sysconfdir}/xdg/autostart/rosa-%{name}.desktop %{buildroot}%{_datadir}/autostart/rosa-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11074 |21cr|touchpad-indicator-2.2.3-1.git075f9f.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define commit 075f9f43bbaea561ec402e100a48118b84df63ed
%define commit_short %(echo %{commit} | head -c6)

Summary:	An indicator to show the status of the touchpad
Name:		touchpad-indicator
Version:	2.2.3
Release:	1.git%{commit_short}.1
License:	GPLv3
Group:		System/Configuration/Hardware
Url:		http://launchpad.net/touchpad-indicator/
Source0:	https://github.com/atareao/Touchpad-Indicator/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Requires:	laptop-mode-tools
Requires:	python3dist(evdev)
Requires:	python3dist(python-xlib)
Requires:	python3dist(pyudev)

%description
An indicator to show the status of the touchpad, and to enable and disable the 
touchpad.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.cinnamon.desktop.keybindings.custom-keybindings.%{name}.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.media-keys.custom-keybindings.%{name}.gschema.xml
%{_datadir}/glib-2.0/schemas/org.mate.desktop.keybindings.%{name}.gschema.xml
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*
%{_prefix}/lib/systemd/system-sleep/00_check_touchpad_status_systemd
%{_sysconfdir}/pm/sleep.d/00_check_touchpad_status

#------------------------------------------------------------------

%prep
%autosetup -p1 -n Touchpad-Indicator-%{commit}

# Install locales to correct directory
find . -type f -exec sed -i -e 's:locale-langpack:locale:g' '{}' \;

# Create a script to install the translations from the debian rules file
grep -A 1000 "Create languages directories" debian/rules | grep -B 1000 "End comile languages" | sed "s:\${CURDIR}/debian/%{name}:\"%{buildroot}\":g" > make_translations.sh
chmod +x make_translations.sh

%build

%install
while read _in _out ; do
	mkdir -p "%{buildroot}/$_out/"
	install -m644 ${_in} "%{buildroot}/$_out/"
done < debian/install
chmod 755 "%{buildroot}%{_bindir}/%{name}"
chmod -R 755 \
"%{buildroot}"/{usr/lib/systemd/system-sleep,usr/share/%{name},etc/pm/sleep.d}
./make_translations.sh

chmod -x %{buildroot}%{_datadir}/%{name}/icons/*.svg
chmod -x %{buildroot}%{_datadir}/%{name}/*.desktop
sed -i "1s,/usr/bin/env python3.*,/usr/bin/python3," %{buildroot}%{_datadir}/%{name}/*.py

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11075 |21cr|towitoko-linux-2.0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname towitoko %{major}
%define devname %mklibname towitoko -d

# autoreconf is enough
%define _disable_rebuild_configure 1

Summary:	CT-API and PCSC-Lite driver for Towitoko smart card readers
Name:		towitoko-linux
Version:	2.0.8
Release:	4
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/cprados/towitoko-linux
Source0:	https://github.com/cprados/towitoko-linux/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	towitoko.conf
# package was renamed to match upstream name
Conflicts:	towitoko < 2.0.8-2
Obsoletes:	towitoko < 2.0.8-2
Provides:	towitoko = %{EVRD}

%description
This library provides a driver for using Towitoko smartcard readers under UNIX
environment.

%files
%license COPYING
%doc AUTHORS NEWS README
%config(noreplace) %{_sysconfdir}/reader.conf.d/towitoko.conf
%{_bindir}/*

%post
if [ "$1" -eq "1" ]; then
	echo
	echo "Please configure %{_sysconfdir}/reader.conf.d/towitoko.conf"
	echo
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for Towitoko smart card readers
Group:		System/Libraries

%description -n %{libname}
This package contains header files and development libraries for
Towitoko smartcard readers.

%files -n %{libname}
%{_libdir}/libtowitoko.so.%{major}{,.*}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Towitoko smart card readers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	towitoko-devel = %{EVRD}
Provides:	towitoko-linux-devel = %{EVRD}
Provides:	libtowitoko-devel = %{EVRD}

%description -n %{devname}
This package contains header files and development libraries for
Towitoko smartcard readers.

%files -n %{devname}
%doc ChangeLog doc/*.html
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/reader.conf.d
sed -e 's,@LIBDIR@,%{_libdir},g' -e 's,@MAJOR@,%{major},g' %{SOURCE1} > %{buildroot}%{_sysconfdir}/reader.conf.d/towitoko.conf
chmod 644 %{buildroot}%{_sysconfdir}/reader.conf.d/towitoko.conf

mv %{buildroot}%{_bindir}/tester %{buildroot}%{_bindir}/towitoko-tester

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11076 |21cr|toxcore-0.2.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname c-toxcore

%define major 2
%define major_toxav %{major}
%define major_toxdns %{major}
%define major_toxcore %{major}
%define major_toxencryptsave %{major}

%define libtoxav %mklibname toxav %{major_toxav}
%define libtoxcore %mklibname toxcore %{major_toxcore}
%define libtoxencryptsave %mklibname toxencryptsave %{major_toxencryptsave}

%define devtoxav %mklibname toxav -d
%define devtoxcore %mklibname toxcore -d
%define devtoxencryptsave %mklibname toxencryptsave -d

Summary:	Tox core libraries
Name:		toxcore
Version:	0.2.18
Release:	1
License:	ISC license
Group:		System/Libraries
Url:		https://github.com/irungentoo/toxcore/
Source0:	https://github.com/TokTok/c-toxcore/releases/download/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(vpx)
Provides:	%{oname} = %{EVRD}
Obsoletes:	%{name} < 0:%{version}

%description
Tox core libraries.

%files

#----------------------------------------------------------------------------

%package -n %{libtoxav}
Summary:	Tox core shared library
Group:		System/Libraries

%description -n %{libtoxav}
Tox core shared library.

%files -n %{libtoxav}
%{_libdir}/libtoxav.so.%{major_toxav}*

#----------------------------------------------------------------------------

%package -n %{libtoxcore}
Summary:	Tox core shared library
Group:		System/Libraries

%description -n %{libtoxcore}
Tox core shared library.

%files -n %{libtoxcore}
%{_libdir}/libtoxcore.so.%{major_toxcore}*

#----------------------------------------------------------------------------

%package -n %{libtoxencryptsave}
Summary:	Tox core shared library
Group:		System/Libraries

%description -n %{libtoxencryptsave}
Tox core shared library.

%files -n %{libtoxencryptsave}
%{_libdir}/libtoxencryptsave.so.%{major_toxencryptsave}*

#----------------------------------------------------------------------------

%package -n %{devtoxav}
Summary:	Development files for libtoxav
Group:		Development/C
Requires:	%{libtoxav} = %{EVRD}

%description -n %{devtoxav}
Development files for libtoxav.

%files -n %{devtoxav}
%{_includedir}/tox/toxav.h
%{_libdir}/libtoxav.so
%{_libdir}/pkgconfig/libtoxav.pc

#----------------------------------------------------------------------------

%package -n %{devtoxcore}
Summary:	Development files for libtoxcore
Group:		Development/C
Requires:	%{libtoxcore} = %{EVRD}
Requires:	%{devtoxencryptsave} = %{EVRD}

%description -n %{devtoxcore}
Development files for libtoxcore.

%files -n %{devtoxcore}
%{_includedir}/tox/tox.h
%{_libdir}/libtoxcore.so
%{_libdir}/pkgconfig/libtoxcore.pc

#----------------------------------------------------------------------------

%package -n %{devtoxencryptsave}
Summary:	Development files for libtoxencryptsave
Group:		Development/C
Requires:	%{libtoxencryptsave} = %{EVRD}

%description -n %{devtoxencryptsave}
Development files for libtoxencryptsave.

%files -n %{devtoxencryptsave}
%{_includedir}/tox/toxencryptsave.h
%{_libdir}/libtoxencryptsave.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for toxcore (metapackage)
Group:		Development/C
Requires:	%{devtoxav} = %{EVRD}
Requires:	%{devtoxcore} = %{EVRD}
Requires:	%{devtoxencryptsave} = %{EVRD}

%description devel
Development files for toxcore (metapackage).

%files devel

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
autoreconf -if
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11077 |21cr|tpad-1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tpad
Summary:	Notepad clone written in Tcl/Tk
Version:	1.3
Release:	%{mkrel 6}
Source0:	http://monitor.deis.unical.it/ant/tpad/%{name}-%{version}.tar.bz2
Patch0:		tpad-1.3.patch
Patch1:		tpad-1.3-use-general-wish.patch
URL:		http://tclpad.sourceforge.net
Group:		Editors
License:	GPLv2+
Requires:	tk >= 8.4
Requires:	tcl
# For macros
BuildRequires:	tcl-devel
BuildArch:	noarch

%description
Apart from all the features Notepad has, tpad adds plugins
to invoke some common text utilities without leaving the
editor, an Ascii table, a tip database and support for
regexps. It also is fully configurable.
 
The executable `tpad' is a wish(1) shell script.

%prep  
%setup -q -c %{name}-%{version}
%patch0 -p1 -b .ant
%patch1 -p0 -b .wish

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=editors_section
Categories=TextEditor;
Name=TPad
Comment=Simple clone of Notepad
EOF

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{tcl_sitelib}/tpad%{version}/msgs
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_datadir}/tpad
install bin/tpad %{buildroot}%{_bindir}/tpad
for libfile in lib/tpad%{version}/*.tcl; do
	install $libfile %{buildroot}%{tcl_sitelib}/tpad%{version};
done
for msgfile in lib/tpad%{version}/msgs/*.msg; do
	install $msgfile %{buildroot}%{tcl_sitelib}/tpad%{version}/msgs;
done
install etc/tpad.conf %{buildroot}%{_sysconfdir}/tpad.conf
install man/man1/tpad.1 %{buildroot}%{_mandir}/man1/tpad.1
for datafile in share/tpad/*; do
	install $datafile %{buildroot}%{_datadir}/tpad;
done

cd %{buildroot}/%{_bindir}
ln -sf tpad tview
cd %{buildroot}/%{_mandir}/man1
ln -sf tpad.1 tview.1

%clean 
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%{update_menus} 
%endif

%if %mdkversion < 200900
%postun
%{clean_menus} 
%endif

%files
%defattr(-,root,root,0755)
%doc share/doc/tpad/bug.html share/doc/tpad/ChangeLog share/doc/tpad/conf.html share/doc/tpad/embed.html share/doc/tpad/index.html share/doc/tpad/intro.html share/doc/tpad/keys.html share/doc/tpad/log.html share/doc/tpad/mouse.html share/doc/tpad/tidy.html share/doc/tpad/tidy.png share/doc/tpad/todo share/doc/tpad/tpad.html
%{_mandir}/man1/tpad.1*
%{_mandir}/man1/tview.1*
%{_bindir}/tpad
%{_bindir}/tview
%{tcl_sitelib}/tpad%{version}
%{_datadir}/tpad
%{_datadir}/applications/mandriva-%{name}.desktop
%defattr(644,root,root,0755)
%config(noreplace) %{_sysconfdir}/tpad.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11078 |21cr|tpb-0.6.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tpb
Summary:	Program to use the IBM ThinkPad(tm) special keys
Version:	0.6.4
Release:	11
License:	GPL
Group:		Monitoring
URL:		http://www.nongnu.org/tpb/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.xinit
Source2:	90-tpb.rules
Patch0:		%{name}rc.patch
BuildRequires:	xosd-devel >= 2.0

%description
This program enables the IBM Thinkpad(tm) special keys. It is possible to bind
a program to the ThinkPad button. It has a on-screen display (OSD) to show
volume, mute and brightness of the LCD.

%prep
%setup -q
%patch0 -p1 -b .orig

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit.d
install -m 755 %{SOURCE1} $RPM_BUILD_ROOT/%{_sysconfdir}/X11/xinit.d/%{name}
mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d
install -m 644 %{SOURCE2} $RPM_BUILD_ROOT/%{_sysconfdir}/udev/rules.d/

%find_lang %name

%clean
rm -rf $RPM_BUILD_ROOT

%files -f %name.lang
%defattr(-,root,root)
%doc COPYING README CREDITS ChangeLog doc/callback_example.sh
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/X11/xinit.d/tpb
%config(noreplace) %{_sysconfdir}/udev/rules.d/*.rules
%defattr(0644,root,root,0755)
%config(noreplace) %{_sysconfdir}/tpbrc
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11079 |21cr|tpctl-4.17-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname smapidev %{major}
%define devname %mklibname smapidev -d

Summary:	Thinkpad Utilities
Name:		tpctl
Version:	4.17
Release:	24
Group:		System/Kernel and hardware
License:	GPLv2+
Url:		http://tpctl.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/tpctl/%{name}_%{version}.tar.gz
Source1:	apmiser.init.bz2
Source2:	hdparm-contrib-ultrabayd.tar.bz2
Source3:	ultrabayd.init.bz2
Source4:	ultrabay.suspend.bz2
Patch0:		hdparm-5.4-fix_path_bell_idectl.patch
Patch1:		tpctl-4.17_ncurses.patch
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
Requires:	hdparm
ExclusiveArch:	%{ix86} x86_64

%description
Utilities specific to IBM Thinkpads.

%files
%doc AUTHORS COPYING README SUPPORTED-MODELS TROUBLESHOOTING VGA-MODES
%doc contrib/idectl-README
%config(noreplace) %{_sysconfdir}/sysconfig/suspend-scripts/suspend.d/*
%{_initrddir}/*
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library associated with tpctl, needed for tpctl utilities
Group:		System/Libraries
Conflicts:	%{_lib}tpctl2 < 4.17-19
Obsoletes:	%{_lib}tpctl2 < 4.17-19

%description -n %{libname}
This library is mandatory for tpctl utilities.

%files -n %{libname}
%{_libdir}/libsmapidev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package with static libs and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}tpctl2-devel < 4.17-12
Obsoletes:	%{_lib}tpctl2-devel < 4.17-12
Obsoletes:	%{_lib}tpctl-devel < 4.17-19

%description -n %{devname}
This package contains header files and static library for tpctl
utilities.

%files -n %{devname}
%{_libdir}/libsmapidev.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -a 2
# 4.4-2mdk (Abel) needs Source2
%apply_patches
mv contrib/README contrib/idectl-README

# stupid makefile
perl -pi -e "s|-o 0 -g 0||g" Makefile

%build
%make PATH_LIB=%{_libdir}/

%install
mkdir -p %{buildroot}/{%{_sbindir},%{_mandir}/man1}
make install DEST=%{buildroot} PATH_LIB=%{_libdir}/

cd %{buildroot}/%{_libdir}/
ln -sf libsmapidev.so.2.0 libsmapidev.so
cd -
mkdir -p %{buildroot}/%{_initrddir}
bzcat %{SOURCE1} > %{buildroot}/%{_initrddir}/apmiser
chmod 755 %{buildroot}/%{_initrddir}/apmiser

mkdir -p %{buildroot}/%{_includedir}
cp -r include %{buildroot}/%{_includedir}/%{name}

mkdir -p %{buildroot}%{_mandir}/man8
install -m 0644 man/apmiser.8 %{buildroot}/%{_mandir}/man8/

# 4.4-2mdk (Abel) ultrabayd stuff
install -m 0755 contrib/idectl %{buildroot}/%{_sbindir}/idectl
install -m 0755 contrib/ultrabayd %{buildroot}/%{_sbindir}/ultrabayd
bzcat %{SOURCE3} > %{buildroot}%{_initrddir}/ultrabayd
chmod 755 %{buildroot}%{_initrddir}/ultrabayd
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/suspend-scripts/suspend.d/
bzcat %{SOURCE4} > %{buildroot}%{_sysconfdir}/sysconfig/suspend-scripts/suspend.d/ultrabay
chmod 755 %{buildroot}%{_sysconfdir}/sysconfig/suspend-scripts/suspend.d/ultrabay

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11080 |21cr|tpm2-pkcs11-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			tpm2-pkcs11
Version:		1.8.0
Release:		1
Summary:		Use a TPM2 device as the cryptographic token
License:		BSD-2-Clause
Group:			System/Configuration/Hardware
URL:			https://github.com/tpm2-software/tpm2-pkcs11
Source0:		%{URL}/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig
BuildRequires:	autoconf
BuildRequires:	autoconf-archive
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	pkgconfig
BuildRequires:	python3-tpm2-pytss
BuildRequires:	tpm2-tools
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(yaml-0.1)
BuildRequires:	python3egg(pyasn1)
BuildRequires:	python3egg(pyasn1-modules)
BuildRequires:	python3-cryptography
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(p11-kit-1)
BuildRequires:	pkgconfig(tss2-fapi)
BuildRequires:	pkgconfig(tss2-esys)
BuildRequires:	pkgconfig(tss2-mu)
BuildRequires:	pkgconfig(tss2-rc)
BuildRequires:	pkgconfig(tss2-tctildr)
Requires:	tpm2-abrmd
Requires:	tpm2-tools

%description
PKCS #11 is a Public-Key Cryptography Standard that defines a standard method 
to access cryptographic services from tokens/ devices such as hardware security 
modules (HSM), smart cards, etc. In this project we intend to use a TPM2 device 
as the cryptographic token.

%files
%license LICENSE
%doc docs/*
%{_datadir}/p11-kit/modules/tpm2_pkcs11.module
%dir %{_sysconfdir}/tpm2_pkcs11
%{_libdir}/pkcs11/libtpm2_pkcs11.so*

#-----------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python bindings for TSS
Requires:	python3-PyYAML
Requires:	python3-asn1crypto
Requires:	python3-cffi
Requires:	python3-cryptography
Requires:	python3-packaging
Requires:	python3-setuptools
Requires:	python3-pyasn1
Requires:	python3-pyasn1-modules
Requires:	python3-tpm2-pytss
Requires:	%{name} = %{EVRD}
Provides:	tpm2_ptool = %{EVRD}

%description -n python3-%{name}
Python3 binding for %{name}, tpm2_ptool util

%files -n python3-%{name}
%license LICENSE
%{_bindir}/tpm2_ptool
%dir %{python3_sitelib}/tpm2_pkcs11
%{python3_sitelib}/tpm2_pkcs11_tools-1.33.7-py3.8.egg-info/*
%{python3_sitelib}/tpm2_pkcs11/__pycache__/*.py*
%{python3_sitelib}/tpm2_pkcs11/*.py*

#-----------------------------------------------------------------

%package -n %{name}-devel
Summary: Devel package for %{name}
Requires: %{name} = %{EVRD}

%description -n %{name}-devel
Devel package  for %{name}.

%files -n %{name}-devel
%{_libdir}/pkgconfig/tpm2-pkcs11.pc
%{_libdir}/pkcs11/libtpm2_pkcs11.so

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
./bootstrap
CFLAGS="%{optflags} -Wno-error"
%configure --disable-static
%make_build

pushd tools
%py3_build
popd

%install
%make_install
mkdir -p %{buildroot}%{_sysconfdir}/tpm2_pkcs11
pushd tools
%{py3_install}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11081 |21cr|tpm2-tools-5.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A bunch of TPM testing toolS build upon tpm2-tss
Name:		tpm2-tools
Version:	5.3
Release:	2
License:	BSD
Group:		System/Configuration/Hardware
Url:		https://github.com/tpm2-software/tpm2-tools
Source0:	https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(cmocka)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(tss2-esys)
# tpm2-tss-devel provides tss2-mu/sys/esys package config
BuildRequires:	pkgconfig(tss2-mu)
BuildRequires:	pkgconfig(tss2-sys)
BuildRequires:	pkgconfig(uuid)
# tpm2-tools is heavily depending on TPM2.0-TSS project, matched tss is required
Requires:	tpm2-tss

%description
tpm2-tools is a batch of tools for tpm2.0. It is based on tpm2-tss.

%files
%doc docs/README.md docs/CHANGELOG.md
%license docs/LICENSE
%{_bindir}/tpm2
%{_bindir}/tpm2_*
%{_bindir}/tss2
%{_bindir}/tss2_*
%{_datadir}/bash-completion/completions/tpm2*
%{_datadir}/bash-completion/completions/tss2*
%{_mandir}/man1/tpm2.1.*
%{_mandir}/man1/tpm2_*.1.*
%{_mandir}/man1/tss2_*.1.*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure	\
	--disable-silent-rules	\
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11082 |21cr|trackballs-1.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Marble Madness-like game
Name:		trackballs
Version:	1.3.3
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		https://trackballs.github.io/
Source0:	https://github.com/trackballs/trackballs/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	guile
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(guile-3.0)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)

%description
Trackballs is a simple game similar to the classical game Marble Madness, on
the Amiga, in the 80's. By steering a marble ball through a labyrinth filled
with vicious hammers, pools of acid and other obstacles the player collects
points.
When the ball reaches the destination you continue on the next more difficult
level - unless, of course, the time runs out.
You steer the ball using the mouse and by pressing >spacebar< you can jump a
short distance. When all levels are finished, an editor mode permits to create
new ones ("trackballs -e"). All is explained in the docs.

%files -f %name.lang
%doc AUTHORS.md COPYING FAQ.md NEWS.md README.md TODO.md
%doc docs/*
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man6/%{name}.*
%attr(664, games, games) %ghost %{_localstatedir}/lib/games/%{name}/highScores

%post
%create_ghostfile %{_localstatedir}/lib/games/%{name}/highScores games games 664

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
export CXXFLAGS="%{optflags} -std=c++11"
%cmake \
	-DTRACKBALLS_BIN_DIR=%{_gamesbindir} \
	-DTRACKBALLS_DOC_DIR=%{_docdir}/%{name} \
	-DTRACKBALLS_SHARE_DIR=%{_gamesdatadir}/%{name} \
	-DTRACKBALLS_HIGHSCORES_DIR=%{_localstatedir}/lib/games/%{name}/highScores

%make


%install
%makeinstall_std -C build MKINSTALLDIRS=`pwd`/mkinstalldirs iconsdir=%{buildroot}%{_datadir}/icons/hicolor

%find_lang  %{name}

mkdir -p %{buildroot}%{_localstatedir}/lib/games/%{name}
touch %{buildroot}%{_localstatedir}/lib/games/%{name}/highScores

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11083 |21cr|transcode-1.1.7-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define build_pvm 0
%{?_without_pvm:		%{expand: %%global build_pvm 0}}
%{?_with_pvm:			%{expand: %%global build_pvm 1}}
%define build_dv 1
%define build_freetype 1
%define build_quicktime 1
%define build_theora 1

Summary:	A linux video stream processing utility
Name:		transcode
Version:	1.1.7
Release:	12
License:	GPLv2+
Group:		Video
Url:		http://www.transcoding.org
Source0:	http://www.jakemsr.com/transcode/%{name}-%{version}.tar.bz2
Patch0:		transcode-1.1.7-ffmpeg2.0.patch
Patch1:		transcode-1.1.7-preset-free.patch
Patch2:		transcode-1.1.7-preset-force.patch
Patch4:		transcode-1.1.7-freetype251.patch
Patch5:		transcode-1.1.7-ffmpeg2.4.patch
Patch6:		transcode-1.1.7-imagemagick7.patch
Patch7:		transcode-1.1.7-ffmpeg3.patch
Patch8:		transcode-1.1.7-ffmpeg4.patch
Patch9:		transcode-1.1.7-libav-10.patch
Patch10:	transcode-1.1.7-gcc10_fix-1.patch
Patch11:	transcode-1.1.7-glibc-2.32.patch
BuildRequires:	ffmpeg-devel
BuildRequires:	jbig-devel
BuildRequires:	liba52dec-devel
BuildRequires:	libfaac-devel
BuildRequires:	liblame-devel
BuildRequires:	liblzo-devel
BuildRequires:	libnetpbm-devel
BuildRequires:	xvid-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(libmpeg2)
BuildRequires:	pkgconfig(libv4l1)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mjpegtools)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(x264)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xv)
%if %{build_freetype}
BuildRequires:	pkgconfig(freetype2)
%endif
%if %{build_dv}
BuildRequires:	pkgconfig(libdv)
%endif
%if %{build_quicktime}
BuildRequires:	pkgconfig(libquicktime)
%endif
%if %{build_theora}
BuildRequires:	pkgconfig(theora)
%endif
%if %{build_pvm}
BuildRequires:	libpvm-devel >= 3.4
%endif

%description
Transcode is a text-console video stream processing tool. Decoding and
encoding is done by loading shared library modules that are responsible
for feeding transcode with raw RGB/PCM streams (import module) and encoding
the frames (export module). It supports elementary video and audio frame
transformations. Some example modules are included to enable import of MPEG
program streams (VOB), Digital Video (DV), or YUV video and export modules
for writing DivX, OpenDivX, or uncompressed AVI files.

A set of tools is available to extract and decode the sources into raw
video/audio streams for import and to enable post-processing of AVI files.

%files
%doc installed-docs/*
%{_bindir}/transcode
%{_bindir}/tccat
%{_bindir}/aviindex
%{_bindir}/avimerge
%{_bindir}/avisplit
%{_bindir}/tcdemux
%{_bindir}/tcprobe
%{_bindir}/avifix
%{_bindir}/tcscan
%{_bindir}/tcextract
%{_bindir}/avisync
%{_bindir}/tcdecode
%{_bindir}/tcmodinfo
%{_bindir}/tcxmlcheck
%{_bindir}/tcxpm2rgb
%{_bindir}/tcmp3cut
%{_bindir}/tcrequant
%if %{build_pvm}
%{_bindir}/tcpvmexportd
%endif
%{_bindir}/tcyait
%{_libdir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch4 -p1
%patch5 -p1
%if %{mdvver} >= 201610
%patch6 -p1
%endif
%patch7 -p1
%patch8 -p0
%patch9 -p0
%patch10 -p1
%patch11 -p1

%build
autoreconf -fi
%ifarch %{ix86}
export CPPFLAGS="$CPPFLAGS -mmmx"
%endif
%configure \
	--enable-libmpeg2 \
	--enable-libmpeg2convert \
%if %{build_dv}
	--enable-libdv \
%endif
%if %{build_pvm}
	--with-pvm3-lib=/usr/share/pvm3/lib/LINUX/ \
%else
	--disable-pvm3 \
%endif
	--enable-imagemagick \
	--enable-mjpegtools \
	--enable-ogg --enable-vorbis \
%if %{build_theora}
	--enable-theora \
%endif
%if %{build_quicktime}
	--enable-libquicktime \
%endif
	--enable-lzo --with-lzo-includes=%{_includedir}/lzo \
	--enable-libxml2 \
	--enable-a52 \
	--enable-sdl \
	--enable-v4l \
	--enable-libv4l2 \
	--enable-libv4lconvert \
	--enable-oss \
	--enable-alsa \
	--enable-libpostproc \
	--enable-faac \
	--enable-deprecated \
%if %{build_freetype}
	--enable-freetype2 \
%else
	--disable-freetype2 \
%endif
	--enable-xvid \
	--enable-x264

%make

%install
%makeinstall_std transform=""
for file in `find %{buildroot} -name "*.la"`; do
	perl -pi -e 's|'%{buildroot}'/%{name}-%{version}/||g' $file
done
mv %{buildroot}%{_datadir}/doc/transcode installed-docs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11084 |21cr|transfermii-0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       transfermii
Version:    0.6
Release:    3
Summary:    Transfer miis to/from a Nintendo wiimote
License:    GPL
Group:      System/Kernel and hardware
Url:        http://www.stacktic.org/
Source0:    %{name}-%{version}.tgz
Patch:      transfermii-0.6-fix-bluez-API-change.patch
BuildRequires: cwiid-devel
BuildRequires: gtk+2-devel

%description
This is a program which allows you to transfer miis to/from a Nintendo
wiimote with the possibility to change the mii mac address so as to be
able to modify the mii directly on your Wii.

%prep
%setup -q
%patch -p 1

%build
make -f Makefile.old cli CFLAGS="%{optflags}"
make -f Makefile.old gui CFLAGS="%{optflags} `pkg-config gtk+-2.0 --cflags`"

%install
rm -rf %{buildroot}
install -d %{buildroot}%{_bindir}
install -m755 %{name}_{cli,gui} %{buildroot}%{_bindir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/%{name}_*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11085 |21cr|transgui-5.18.0-1.git1c81df.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 1c81df7fa318eb3b1af23e6fd6bd537b3f8ba3c9
%define commit_short %(echo %{commit} | head -c6)

%define debug_package %{nil}

Summary:	An App to remotely control a Transmission Bit-Torrent client
Name:		transgui
Version:	5.18.0
Release:	1.git%{commit_short}.1
Group:		Networking/File transfer
License:	GPLv2+
Url:		https://code.google.com/p/transmisson-remote-gui/
Source0:	https://github.com/transmission-remote-gui/transgui/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source1:	%{name}.desktop
Source2:	%{name}.1
BuildRequires:	lazarus
ExclusiveArch:	%{ix86} %{x86_64}

%description
Transmission Remote GUI is a feature rich cross platform front-end to remotely
control a Transmission Bit-Torrent client daemon via its RPC protocol. It is 
faster and has more functionality than the built-in Transmission web interface.

%files
%doc readme.txt LICENSE rpc-spec.txt VERSION.txt
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}/lang

%prep
%setup -q -n %{name}-%{commit}

%build
lazbuild -B transgui.lpi
%make

%install
%makeinstall_std INSTALL_PREFIX=%{buildroot}%{_prefix}

#menu-entries
install -Dp -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -Dp -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man1/%{name}.1
install -pd %{buildroot}%{_datadir}/pixmaps
cp -p %{name}.png %{buildroot}%{_datadir}/pixmaps

# Lang
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a lang %{buildroot}%{_datadir}/%{name}/
rm -f %{buildroot}%{_datadir}/%{name}/lang/transgui.template

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11086 |21cr|transifex-client-0.14.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Command line client for transifex
Name:		transifex-client
Version:	0.14.4
Release:	3
License:	BSD
Group:		Networking/WWW
Url:		http://www.transifex.org/
Source0:	https://github.com/transifex/transifex-client/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
The Transifex Command-line Client is a command line tool that enables you
to easily manage your translations within a project without the need of
an elaborate UI system, by using Transifex hosted services, or your own
instance.

You can use the command line client to easily create new resources, map locale
files to translations and synchronize your Transifex project with your local
repository and vice verca. Translators and localization managers can also
use it to handle large volumes of translation files easily and without much
hassle.

%files
%{_bindir}/tx
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

sed -i 's#python-slugify<5.0.0#python-slugify#' requirements.txt

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11087 |21cr|translate-shell-0.9.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command-line interface and interactive shell for Google Translate
Name:		translate-shell
Version:	0.9.7
Release:	1
License:	Public Domain
Group:		Text tools
Url:		http://www.soimort.org/translate-shell
Source0:	https://github.com/soimort/translate-shell/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	gawk
Requires:	gawk
BuildArch:	noarch

%description
Translate Shell is a command-line interface and interactive shell
for Google Translate. It works just the way you want it to be.

Translate Shell is a complete rewrite of Google Translate CLI Legacy,
which is a tiny script written in 100 lines of AWK code.
Translate Shell is backward compatible with Google Translate CLI Legacy
in its command-line usage; furthermore, it provides more functionality
including verbose translation, Text-to-Speech and interactive mode, etc.

Run <man trans> in the terminal for usage information.

%files
%doc LICENSE README.md WAIVER CONTRIBUTING.md
%{_bindir}/trans
%{_mandir}/man1/trans.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
install -pm0755 build/trans %{buildroot}%{_bindir}
install -pm0644 man/trans.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11088 |21cr|trash-cli-0.22.10.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rosalinuxro
Summary:        Command line interface to the freedesktop.org trashcan
Name:           trash-cli
Version:	0.22.10.4.4
Release:	1
License:        GPLv2+
Group:          Development/Python
Url:          https://github.com/andreafrancia/trash-cli
Source0:        https://files.pythonhosted.org/packages/source/t/%{name}/%{name}-%{version}.tar.gz

BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
Requires:       python3egg(setuptools)
Requires:       python3egg(psutil)
BuildArch:      noarch

%description
trash-cli provides a command line trash usable with GNOME, KDE, Xfce or any
freedesktop.org compatible trash implementation. The command line interface is
compatible with rm and you can use trash-put as an alias to rm.

%files
%doc README.rst
%{_bindir}/trash*
%{py3_puresitedir}/trashcli/
%{py3_puresitedir}/trash_cli-*-py*.egg-info
%{_mandir}/man1/*

#------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11089 |21cr|traverso-0.49.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	sse_cxxflags %{optflags}
%global	sse_cmakeflags -DHOST_SUPPORTS_SSE:BOOL=FALSE
%ifarch %{ix86}
%global	with_sse %{!?_without_sse:1}%{?_without_sse:0}
%if %{with_sse}
%global	sse_cxxflags -DSSE_OPTIMIZATIONS -DARCH_X86 %{optflags}
%global	sse_cmakeflags -DHOST_SUPPORTS_SSE:BOOL=TRUE -DIS_ARCH_X86:BOOL=TRUE
%endif
%endif
%ifarch	ia64 x86_64
%global	with_sse 1
%global	sse_cxxflags -DSSE_OPTIMIZATIONS -DUSE_XMMINTRIN -DARCH_X86 -DUSE_X86_64_ASM %{optflags}
%global	sse_cmakeflags -DHOST_SUPPORTS_SSE:BOOL=TRUE -DIS_ARCH_X86_64:BOOL=TRUE
%endif

Name:		traverso
Version:	0.49.6
Release:	2
Summary:	Cross Platform Multitrack Audio Recording and Editing Suite
License:	GPLv2+ and LGPLv2+
Group:		Sound
Url:		https://traverso-daw.org/
Source0:	http://traverso-daw.org/download/releases/current/%{name}-%{version}.tar.gz
Patch0:		traverso-0.49.1-fix-str-fmt.patch
Patch1:		traverso-0.49.6-desktop.patch
Patch2:		traverso-0.49.5-fix-linking.patch
BuildRequires:	cmake >= 3.1.0
BuildRequires:	desktop-file-utils
BuildRequires:	alsa-oss-devel
BuildRequires:	lame-devel
BuildRequires:	libmad-devel >= 0.15.0
BuildRequires:	pkgconfig(alsa) >= 1.0.0
BuildRequires:	pkgconfig(flac) >= 1.1.2
BuildRequires:	pkgconfig(fftw3) >= 3.0.0
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(lilv-0) >= 0.4.4
BuildRequires:	pkgconfig(lv2core)
BuildRequires:	pkgconfig(portaudio-2.0) >= 19
BuildRequires:	pkgconfig(raptor2)
BuildRequires:	pkgconfig(Qt5Core) >= 5.6.0
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(raptor2)
BuildRequires:	pkgconfig(rasqal)
BuildRequires:	pkgconfig(redland)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(slv2) >= 0.6.1
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(vorbis) >= 1.1.2
BuildRequires:	pkgconfig(wavpack) >= 4.40.0
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
Traverso is a free, cross platform multi-track audio recording and editing
suite, with an innovative and easy to master User Interface. It's suited for
both the professional and home user, who needs a robust and solid DAW.

%files
%doc AUTHORS COPYRIGHT ChangeLog HISTORY README TODO
%doc resources/help.text
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/images
#dir %%{_datadir}/%%{name}/images/icons
%dir %{_datadir}/%{name}/themes
%dir %{_datadir}/%{name}/themes/default
%dir %{_datadir}/%{name}/themes/medium-contrast
%dir %{_datadir}/%{name}/themes/system-palette
%dir %{_datadir}/%{name}/themes/ubuntu
%{_datadir}/%{name}/*.xml
%{_datadir}/%{name}/images/*
#{_datadir}/%%{name}/images/icons/*
%{_datadir}/%{name}/themes/*/*.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/x-%{name}.xml
%{_iconsdir}/hicolor/*/*/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1

# Fix permission issues
chmod 644 ChangeLog TODO
for ext in h cpp; do
	find . -name "*.$ext" -exec chmod 644 {} \;
done


%build
%cmake	-DWANT_MP3_DECODE=ON \
		-DWANT_MP3_ENCODE=ON \
		-DDETECT_HOST_CPU_FEATURES=OFF \
		-DCXX_FLAGS:STRING="%{sse_cxxflags} -std=c++11" \
		%{sse_cmakeflags} \
		-DWANT_PORTAUDIO=ON \
		-DWANT_PULSEAUDIO=ON
%make


%install
%makeinstall_std -C build

# Still more things to install:
# icons...
mkdir -p %{buildroot}%{_iconsdir}/hicolor
cp -r resources/freedesktop/icons/*x* %{buildroot}%{_iconsdir}/hicolor/
# other images...
mkdir -p %{buildroot}%{_datadir}/%{name}/images
cp -r resources/images/* %{buildroot}%{_datadir}/%{name}/images
# theme files...
mkdir -p %{buildroot}%{_datadir}/%{name}/themes
cp -r resources/themes/* %{buildroot}%{_datadir}/%{name}/themes
cp resources/{fadeshapes,keymap}.xml %{buildroot}%{_datadir}/%{name}
# the .desktop file...
install -D -m 644 resources/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
# and finally the mimetype support file
install -D -m 644 resources/x-traverso.xml %{buildroot}%{_datadir}/mime/packages/x-traverso.xml

# Fix perms
chmod -x %{buildroot}%{_datadir}/%{name}/images/*.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11090 |21cr|tre-0.8.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Lightweight, robust, and efficient POSIX compliant regexp matching library
Name:		tre
Version:	0.8.0
Release:	11
License:	BSD
Group:		System/Libraries
Url:		http://ville.laurikari.net/tre/
Source0:	http://laurikari.net/tre/%{name}-%{version}.tar.bz2
Patch0:		tre-issue37.patch
Patch1:		tre-CVE-2016-8859.patch
BuildRequires:	libltdl-devel

%description
TRE is a lightweight, robust, and efficient POSIX compliant regexp
matching library with some exciting features such as approximate
matching.

#----------------------------------------------------------------------------

%package -n agrep
Summary:	Approximate matching
Group:		File tools

%description -n agrep
Approximate pattern matching allows matches to be approximate,
that is, allows the matches to be close to the searched pattern
under some measure of closeness. TRE uses the edit-distance
measure (also known as the Levenshtein distance) where characters
can be inserted, deleted, or substituted in the searched text in
order to get an exact match. Each insertion, deletion, or
substitution adds the distance, or cost, of the match. TRE can
report the matches which have a cost lower than some given
threshold value. TRE can also be used to search for matches with
the lowest cost.

TRE includes a version of the agrep command line tool for
approximate regexp matching in the style of grep.  Unlike other
agrep implementations (like the one by Sun Wu and Udi Manber from
University of Arizona available) TRE agrep allows full regexps of
any length, any number of errors, and non-uniform costs for
insertion, deletion and substitution.

%files -n agrep -f %{name}.lang
%{_bindir}/agrep
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lightweight, robust, and efficient POSIX compliant regexp matching library
Group:		System/Libraries
Conflicts:	%{_lib}tre4 < 0.8.0-6
Obsoletes:	%{_lib}tre4 < 0.8.0-6

%description -n %{libname}
TRE is a lightweight, robust, and efficient POSIX compliant regexp
matching library with some exciting features such as approximate
matching.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%doc doc/tre-syntax.html
%{_libdir}/libtre.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for developing apps with %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
TRE is a lightweight, robust, and efficient POSIX compliant regexp
matching library with some exciting features such as approximate
matching.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/tre.pc
%{_includedir}/tre

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--disable-rpath

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11091 |21cr|treecc-0.3.10-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

Name: 		treecc
Version: 	0.3.10
Release: 	10
Summary: 	A tool for helping in compiler development
Group: 		Development/C
License: 	GPLv2
Source0: 	http://download.savannah.gnu.org/releases/dotgnu-pnet/%{name}-%{version}.tar.gz
BuildRequires:	flex byacc
URL: 		http://www.southern-storm.com.au/treecc.html


%description
The treecc program is designed to assist in the development of 
compilers and other language-based tools. It manages the 
generation of code to handle abstract syntax trees and operations 
upon the trees.
Treecc was originally written to assist with the development of 
the C# compiler for the Portable.NET project. However, it is much 
more general than that and can be used in any system that makes 
heavy use of abstract syntax trees and the operations upon them.

%prep
%setup -q

%build
%configure
%make
make -C tests check-TESTS

%install
%makeinstall



%files
%doc AUTHORS ChangeLog COPYING NEWS README doc/essay.html
%_bindir/%name
%_infodir/* 
%_mandir/man1/%name.*
%_libdir/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11092 |21cr|treeline-3.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Versatile Tree-Style Outliner for Defining Custom Data Schemas
Name:		treeline
Version:	3.1.5
Release:	1
Group:		Office
License:	GPLv2+
Url:		http://treeline.bellz.org/
Source0:	https://github.com/doug-101/TreeLine/releases/download/v%{version}/treeline-%{version}.tar.gz
Source2:	httpload2.py.tar.gz
BuildArch:	noarch

BuildRequires:	python3
Requires:	python3-qt5
Requires(post,postun):	desktop-file-utils

%description
TreeLine is a versatile tool for working with all kinds of information
that fit into a tree-like structure.

It can be used to edit bookmark files, create mini-databases (for
example, for addresses, tasks, records, or CDs), outline documents, or
just collect ideas. It can also be used as a generic editor for XML
files.

The data schemas for any node in the data tree can be customized and
new types of nodes can be defined. The way data is presented on the
screen, exported to HTML, or printed can be defined with HTML-like
templates. Plug-ins can be written to load and save data from and to
custom file formats or external data sources and extend the
functionality of TreeLine.

TreeLine is written in Python and uses the PyQt bindings to the Qt
toolkit, which makes it very portable.

%prep
%setup -qn TreeLine -a2

%build

%install
for i in source/*.py; do
	sed -i "s|#!/usr/bin/env python|#!/usr/bin/python|g" $i
	chmod 755 $i
done

%__python3 install.py -x \
	-p %{_prefix} \
	-d %{_defaultdocdir}/%{name} \
	-i %{_datadir}/%{name}/icons \
	-b %{buildroot}

# httpload2 plugin
install -D -m 644 httpload2.py %{buildroot}%{_prefix}/lib/%{name}/plugins/httpload2.py

# Associate Files with MimeTypes (the KDE4/Gnome way)
mkdir -p %{buildroot}%{_datadir}/mime/packages
cat > %{buildroot}%{_datadir}/mime/packages/%{name}.xml << EOF
<?xml version="1.0"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-treeline">
    <comment>TreeLine File</comment>
    <glob pattern="*.trl"/>
    <glob pattern="*.TRL"/>
  </mime-type>
  <mime-type type="application/x-treeline-gz">
    <comment>Compressed TreeLine File</comment>
    <glob pattern="*.trl.gz"/>
    <glob pattern="*.TRL.GZ"/>
  </mime-type>
  <mime-type type="application/x-treepad">
    <comment>TreePad File</comment>
    <glob pattern="*.hjt"/>
    <glob pattern="*.HJT"/>
  </mime-type>
</mime-info>
EOF

# Menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Type=Application
Exec=%{name}
Icon=%{name}
Name=TreeLine
GenericName=Outliner
Categories=Office;X-MandrivaLinux-Office-TasksManagement;
MimeType=application/x-treeline;application/x-treeline-gz;application/x-treepad;text/xml;
StartupNotify=true
Terminal=false
EOF

# Icon
install -D -m 644 %{buildroot}%{_datadir}/%{name}/icons/tree/%{name}.png %{buildroot}%{_iconsdir}/%{name}.png

%files
%doc %{_defaultdocdir}/%{name}
%{_bindir}/%{name}
%{_usr}/lib/%{name}
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_iconsdir}/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/treeline-icon.png
%{_iconsdir}/hicolor/scalable/apps/treeline-icon.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11093 |21cr|tree-puzzle-5.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tree-puzzle
Version:	5.2
Release:	6
Summary:	Maximum likelihood analysis for nucleotide, amino acid and two-state data
Group:		Sciences/Biology
License:	GPL
URL:		http://www.tree-puzzle.de
Source:		http://www.tree-puzzle.de/%{name}-%{version}.tar.bz2

%description
TREE-PUZZLE is a computer program to reconstruct phylogenetic trees 
from molecular sequence data by maximum likelihood. It implements a 
fast tree search algorithm, quartet puzzling, that allows analysis 
of large data sets and automatically assigns estimations of support 
to each internal branch. TREE-PUZZLE also computes pairwise maximum
likelihood distances as well as branch lengths for user specified trees.
In addition, TREE-PUZZLE offers a novel method, likelihood mapping, 
to investigate the support of a hypothesized internal branch without 
computing an overall tree and to visualize the phylogenetic content 
of a sequence alignment. 

%prep
%setup -q

%build
%configure
%make 

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*
%doc AUTHORS COPYING ChangeLog README
%doc doc/tree-puzzle.pdf
%doc data/EF.3trees data/globin.a data/globin.trees data/marswolf.n 
%doc data/primates.b data/primates.trees data/EF.phy data/atp6.a 
%doc data/globin.ctrees data/marswolf.ctrees data/marswolf.trees
%doc data/primates.ctrees

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11094 |21cr|tree-sitter-0.20.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		tree-sitter
Version:	0.20.8
Release:	1
Summary:	An incremental parsing system for programming tools
Group:		System/Libraries
License:	MIT
URL:		https://tree-sitter.github.io/
Source0:	https://github.com/tree-sitter/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz

%description
Tree-sitter is a parser generator tool and an incremental parsing
library. It can build a concrete syntax tree for a source file
and efficiently update the syntax tree as the source file is
edited. Tree-sitter aims to be:

 * General enough to parse any programming language
 * Fast enough to parse on every keystroke in a text editor
 * Robust enough to provide useful results even in the presence
   of syntax errors
 * Dependency-free so that the runtime library (which is written
   in pure C) can be embedded in any application

#---------------------------------------------------------------
%package -n %{libname}
Summary:	Incremental parsing library for programming tools
Group:		System/Libraries

%description -n %{libname}
Tree-sitter is a parser generator tool and an incremental parsing
library. It can build a concrete syntax tree for a source file
and efficiently update the syntax tree as the source file is
edited. This is the package with the dynamically linked C library.

%files -n %{libname}
%{_libdir}/libtree-sitter.so.%{major}*

#---------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%license LICENSE
%doc README.md
%{_includedir}/tree_sitter
%{_libdir}/libtree-sitter.so
%{_libdir}/pkgconfig/tree-sitter.pc

#---------------------------------------------------------------

%prep
%autosetup -p1

%build
%set_build_flags
export PREFIX='%{_prefix}' LIBDIR='%{_libdir}'
%make_build


%install
export PREFIX='%{_prefix}' LIBDIR='%{_libdir}' INCLUDEDIR='%{_includedir}'
%make_install

find %{buildroot}%{_libdir} -type f \( -name "*.la" -o -name "*.a" \) -delete -print

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11095 |21cr|trigger-rally-0.6.6.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	trigger

Summary:	Rally racing game
Name:		%{oname}-rally
Version:	0.6.6.1
Release:	3
License:	GPLv2+
Group:		Games/Arcade
Url:		https://sourceforge.net/projects/trigger-rally/
# The sources now contain also the data files
Source0:	https://sourceforge.net/projects/trigger-rally/files/%{oname}-%{version}/%{name}-%{version}.tar.gz
# From Debian
Source1:	trigger-rally.6
# TODO: When tinyxml2 >= 7.0.0 P0 can be removed
Patch0:		trigger-rally-0.6.6.1-fix-build-against-old-tinyxml2.patch
Patch1:		trigger-rally-0.6.6.1-disable-strip.patch
BuildRequires:	freealut-devel
BuildRequires:	physfs-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(tinyxml2)
Requires:	%{name}-data = %{EVRD}

%description
Trigger is a fast-paced open source rally racing game.

%files
%{_docdir}/%{name}/*.txt
%{_gamesbindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man6/%{name}.6*

#-----------------------------------------------------------------------------

%package data
Summary:	Data files for the Trigger rally racing game
Group:		Games/Arcade
BuildArch:	noarch
# Previously the data files were in a separate SRPM
Obsoletes:	%{name}-data <= 0.6.2

%description data
Trigger is a fast-paced open source rally racing game.
This packages contain data files required by %{oname}.

%files data
%license doc/COPYING.txt
%config(noreplace) %{_sysconfdir}/%{name}.config.defs
%{_gamesdatadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
export OPTIMS=""
%make prefix="%{_prefix}" bindir="%{_gamesbindir}" datadir="%{_gamesdatadir}" -C src

%install
%makeinstall_std prefix="%{_prefix}" bindir="%{_gamesbindir}" datadir="%{_gamesdatadir}" -C src

# Install our man page
install -D -m644 %{SOURCE1} %{buildroot}%{_mandir}/man6/%{name}.6

# Install provided config file in the right place
rm -f %{buildroot}%{_gamesbindir}/%{name}.config.defs
install -D -m644 bin/%{name}.config.defs %{buildroot}%{_sysconfdir}/%{name}.config.defs
ln -s %{_sysconfdir}/%{name}.config.defs %{buildroot}%{_gamesdatadir}/%{name}/%{name}.config.defs

# Install icons
for size in 16 22 24 32 36 48 64 72 96 128 192 256; do
	install -D -m644 data/icon/trigger-${size}.png %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done
install -D -m644 data/icon/%{name}-icons.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

# Provide a menu entry
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=Trigger Rally
GenericName=Racing game
Comment=3D rally racing game
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11096 |21cr|trigger-rally-data-0.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	trigger

Summary:	Data files for the Trigger rally racing game
Name:		%{oname}-rally-data
Version:	0.6.2
Release:	3
Source0:	http://downloads.sourceforge.net/trigger-rally/%{oname}-rally-%{version}-data.tar.bz2
License:	GPLv2+ and CC0
Group:		Games/Arcade
Url:		http://sourceforge.net/projects/trigger-rally/
BuildArch:	noarch

%description
Trigger is a fast-paced open source rally racing game.
This packages contains data files required by Trigger.

%prep
%setup -q -n %{oname}-rally-%{version}-data

%build

%install
install -d %{buildroot}%{_gamesdatadir}/%{oname}
cp -ra * %{buildroot}%{_gamesdatadir}/%{oname}
rm -f %{buildroot}%{_gamesdatadir}/%{oname}/*.txt
chmod 644 %{buildroot}%{_gamesdatadir}/%{oname}/trigger.config.defs

%files
%doc README.txt README-stereo.txt
%{_gamesdatadir}/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11097 |21cr|trilead-ssh2-217-0.jenkins8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define patchlvl 8

Summary:	SSH-2 protocol implementation in pure Java
Name:		trilead-ssh2
Version:	217
Release:	0.jenkins%{patchlvl}.1
License:	BSD
Group:		Development/Java
Url:		https://github.com/jenkinsci/trilead-ssh2
Source0:	https://github.com/jenkinsci/%{name}/archive/%{name}-build%{version}-jenkins-%{patchlvl}.tar.gz?/%{name}-%{name}-build%{version}-jenkins-%{patchlvl}.tar.gz
Source1:	build.xml
BuildRequires:	jpackage-utils
BuildRequires:	java-devel
BuildRequires:	ant
Requires:	jpackage-utils
Requires:	java
Requires(post):	jpackage-utils
Requires(postun):	jpackage-utils
BuildArch:	noarch

%description
Trilead SSH-2 for Java is a library which implements the SSH-2 protocol in pure
Java (tested on J2SE 1.4.2 and 5.0). It allows one to connect to SSH servers
from within Java programs. It supports SSH sessions (remote command execution
and shell access), local and remote port forwarding, local stream forwarding,
X11 forwarding and SCP. There are no dependencies on any JCE provider, as all
crypto functionality is included.

%files
%{_mavenpomdir}/JPP-%{name}.pom
%{_mavendepmapfragdir}/%{name}
%{_javadir}/*
%doc LICENSE.txt HISTORY.txt README.txt

#------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-build%{version}-jenkins-%{patchlvl}
cp %{SOURCE1} .

# change file encoding
iconv -f ISO-8859-1 -t UTF-8 -o HISTORY.txt HISTORY.txt

# delete the jars that are in the archive
#rm %{name}-build%{version}.jar

# fixing wrong-file-end-of-line-encoding warnings
#sed -i 's/\r//' LICENSE.txt README.txt HISTORY.txt faq/FAQ.html
#find examples -name \*.java -exec sed -i 's/\r//' {} \;

%build
ant

%install
# jar
install -d -m 755 %{buildroot}%{_javadir}
install -m 644 %{name}.jar %{buildroot}%{_javadir}/%{name}.jar

# pom
mkdir -p %{buildroot}%{_mavenpomdir}
cp pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_to_maven_depmap org.tmatesoft.svnkit %{name} %{version} JPP %{name}

%post
%update_maven_depmap

%postun
%update_maven_depmap

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11098 |21cr|triplane-classic-1.0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tag -sp2

Name:		triplane-classic
Version:	1.0.8
Release:	2
Summary:	A side-scrolling dogfighting game
Group:		Games/Arcade
License:	GPLv3+
URL:		http://triplane.sourceforge.net/
Source0:	https://github.com/suomipelit/triplane/archive/refs/tags/v%{version}%{tag}.tar.gz?/%{name}-%{version}%{tag}.tar.gz
Source1:	FindSDL2.cmake
Source2:	FindSDL2_mixer.cmake
# Fix parameter handling issues (overflows and non-literal fmt string)
Patch0:		triplane-parameter-handling.patch
BuildRequires:	cmake
BuildRequires:	SDL2-devel
BuildRequires:	SDL2_mixer-devel
# for conversions
BuildRequires:	man
BuildRequires:	imagemagick
%rename triplane

%description
Triplane Classic is a side-scrolling dogfighting game featuring solo
missions and multiplayer mode with up to four players. It is a port of
the original Triplane Turmoil game for DOS and aims to match the
original game exactly so that high scores remain comparable to the
original.

%prep
%autosetup -p1 -n triplane-%{version}%{tag}

mkdir -p ./build/cmake-modules
cp %{SOURCE1} ./build/cmake-modules/
cp %{SOURCE2} ./build/cmake-modules/

# Convert the man page to a html page, this is a game after all:
# tail removes the first Context-type line and sed removes links to http targets
man2html doc/triplane.6 | tail -n +2 | sed -r 's,<a href="http[^>]+>(.*)</a>,\1,ig' > triplane.html

%build
%cmake -DTRIPLANE_DATA=%{_gamesdatadir}/triplane
%make

%install
# install not available
#makeinstall_std -C build

install -D -m755 build/triplane %{buildroot}%{_gamesbindir}/triplane
install -D -m644 build/fokker.dks %{buildroot}%{_gamesdatadir}/triplane/fokker.dks
install -D -m644 doc/triplane.6 %{buildroot}%{_mandir}/man6/triplane.6


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/triplane.desktop <<EOF
[Desktop Entry]
Name=Triplane
GenericName=Dogfighting game
Exec=%{_gamesbindir}/triplane
Icon=triplane
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/triplane-manual.desktop <<EOF
[Desktop Entry]
Name=Triplane Classic manual
Comment=Open help file of Triplane Classic
Exec=xdg-open %{_docdir}/triplane/triplane.html
Icon=triplane
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

for i in 16 32 48; do
	install -d -m755 %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps
	convert data/application_icon/triplane.xpm -resize $i %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/triplane.png
done

%files
%doc triplane.html doc/TODO doc/lvledit-keys.txt
%{_gamesbindir}/triplane
%{_gamesdatadir}/triplane
%{_datadir}/applications/triplane.desktop
%{_iconsdir}/hicolor/*x*/apps/triplane.png
%doc %{_datadir}/applications/triplane-manual.desktop
%{_mandir}/man6/triplane.6*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11099 |21cr|tripwire-2.4.3.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		path_to_vi /bin/vi
%define		path_to_sendmail /usr/sbin/sendmail

Name:		tripwire
Version:	2.4.3.7
Release:	1
Summary:	IDS (Intrusion Detection System)

License:	GPLv2+
Group:		Monitoring
URL:		http://www.tripwire.org/
Source0:	https://github.com/Tripwire/tripwire-open-source/releases/download/%{version}/tripwire-open-source-%{version}.tar.gz
Source1:	tripwire.cron.in
Source3:	tripwire.gif
Source4:	twcfg.txt.in
Source5:	tripwire-setup-keyfiles.in
Source6:	twpol.txt.in
Source7:	README.urpmi.in
Source9:	License-Issues

BuildRequires:	pkgconfig(openssl)
Requires(post):	sed

%description
Tripwire is a very valuable security tool for Linux systems, if  it  is
installed to a clean system. Tripwire should be installed  right  after
the OS installation, and before you have connected  your  system  to  a
network (i.e., before any possibility exists that someone  could  alter
files on your system).

When Tripwire is initially set up, it creates a database  that  records
certain file information. Then when it is run, it compares a designated
set of files and directories to the information stored in the database.
Added or deleted files are flagged and reported, as are any files  that
have changed from their previously recorded state in the database. When
Tripwire is run against system files  on  a  regular  basis,  any  file
changes will be spotted when Tripwire is run. Tripwire will report  the
changes, which will give system administrators a clue that they need to
enact damage control measures immediately if certain  files  have  been
altered.

%prep
%autosetup -p1 -n %{name}-open-source-%{version}

cp -p %{SOURCE3} .

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--sysconfdir=%{_sysconfdir}/tripwire \
	path_to_vi=%{path_to_vi} \
	path_to_sendmail=%{path_to_sendmail}

%make

%install
# Install the binaries.
mkdir -p %{buildroot}%{_sbindir}
install -p -m755 bin/siggen %{buildroot}%{_sbindir}
install -p -m755 bin/tripwire %{buildroot}%{_sbindir}
install -p -m755 bin/twadmin %{buildroot}%{_sbindir}
install -p -m755 bin/twprint %{buildroot}%{_sbindir}

# Install the man pages.
mkdir -p %{buildroot}%{_mandir}/{man4,man5,man8}
install -p -m644 man/man4/*.4 %{buildroot}%{_mandir}/man4/
install -p -m644 man/man5/*.5 %{buildroot}%{_mandir}/man5/
install -p -m644 man/man8/*.8 %{buildroot}%{_mandir}/man8/

# Create configuration files from templates.
rm -fr _tmpcfg
mkdir _tmpcfg
for infile in %{SOURCE1} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} ; do
	outfile=${infile##/*/}
	outfile=${outfile%.*n}
	cat ${infile} |\
	%{__sed} -e 's|@path_to_vi@|%{path_to_vi}|g' |\
	%{__sed} -e 's|@path_to_sendmail@|%{path_to_sendmail}|g' |\
	%{__sed} -e 's|@sysconfdir@|%{_sysconfdir}|g' |\
	%{__sed} -e 's|@sbindir@|%{_sbindir}|g' |\
	%{__sed} -e 's|@vardir@|%{_var}|g' >\
	_tmpcfg/${outfile}
done
mv _tmpcfg/{tripwire-setup-keyfiles,README.urpmi} .

# Create the reports directory.
install -d -m700 %{buildroot}%{_var}/lib/tripwire/report

# Install the cron job.
install -d -m755 %{buildroot}%{_sysconfdir}/cron.daily
install -p -m755 _tmpcfg/tripwire.cron \
	%{buildroot}%{_sysconfdir}/cron.daily/tripwire-check
rm _tmpcfg/tripwire.cron

# Install configuration files.
mkdir -p %{buildroot}%{_sysconfdir}/tripwire
for file in _tmpcfg/* ; do
	install -p -m644 ${file} %{buildroot}%{_sysconfdir}/tripwire
done

# Install the keyfile setup script
install -p -m755 tripwire-setup-keyfiles %{buildroot}%{_sbindir}

# Fix permissions on documentation files.
cp -p %{SOURCE9} .
chmod 644 \
	ChangeLog COMMERCIAL COPYING TRADEMARK tripwire.gif \
	README.urpmi policy/policyguide.txt License-Issues

%post
# Set the real hostname in twpol.txt
%{__sed} -i -e "s|localhost|$HOSTNAME|g" %{_sysconfdir}/tripwire/twpol.txt

%files
%defattr(0644,root,root,0755)
%doc ChangeLog COMMERCIAL COPYING TRADEMARK tripwire.gif
%doc README.urpmi policy/policyguide.txt License-Issues
%attr(0700,root,root) %dir %{_sysconfdir}/tripwire
%config(noreplace) %{_sysconfdir}/tripwire/twcfg.txt
%config(noreplace) %{_sysconfdir}/tripwire/twpol.txt
%attr(0755,root,root) %{_sysconfdir}/cron.daily/tripwire-check
%attr(0700,root,root) %dir %{_var}/lib/tripwire
%attr(0700,root,root) %dir %{_var}/lib/tripwire/report
%{_mandir}/*/*
%attr(0755,root,root) %{_sbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11100 |21cr|trn-3.6-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil
%define debug_package %nil

Summary:	A news reader that displays postings in threaded format
Name:		trn
Version:	3.6
Release:	24
License:	Distributable
Group:		Networking/News
Url:		http://trn.sourceforge.net/
Source0:	ftp://ftp.uu.net:/networking/news/readers/trn/trn-3.6.tar.bz2
Source1:	trn.wmconfig
Patch0:		trn-3.6-linux.patch.bz2
Patch1:		trn-3.6-sigtstp.patch.bz2
Patch2:		trn-3.6-make.patch.bz2
Patch3:		trn-3.6-bool.patch.bz2
Patch4:		trn-3.6-jbj.patch.bz2
Patch5:		trn-3.6-rh.patch.bz2
BuildRequires:	byacc
BuildRequires:	termcap-devel
BuildRequires:	pkgconfig(libbsd)

%description
Trn is a basic news reader that supports threading. This version is
configured to read news from an NNTP news server.

Install trn if you need a basic news reader that shows you newsgroup
postings in threaded format.

%files
%doc README INSTALL MANIFEST HINTS.TRN HACKERSGUIDE NEW
%{_bindir}/*
%{_libdir}/trn/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .linux
%patch1 -p1 -b .sigstp
%patch2 -p1 -b .make
%patch3 -p1 -b .bool
%patch4 -p1 -b .jbj
%patch5 -p1 -b .rh

%build
%make CFLAGS="-DI_TIME %{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/trn
mkdir -p %{buildroot}%{_mandir}/man1/

chmod 755 filexp
chmod 755 makedir

make install	rnbin="%{buildroot}%{_bindir}" \
		rnlib="%{buildroot}%{_libdir}/trn" \
		mansrc="%{buildroot}%{_mandir}/man1" \
		installfilexp="%{buildroot}%{_libdir}/trn/filexp"

chmod 755 %{buildroot}%{_bindir}/*
chmod 755 %{buildroot}%{_libdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11101 |21cr|trojita-0.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt-based IMAP e-mail client
Name:		trojita
Version:	0.7
Release:	5
License:	GPLv2+ or GPLv3+
Group:		Networking/Mail
Url:		http://trojita.flaska.net
Source0:	http://sourceforge.net/projects/trojita/files/src/%{name}-%{version}.tar.xz
Source1:	http://sourceforge.net/projects/trojita/files/src/%{name}-%{version}.tar.xz.asc
Source2:	trojita_common_ru.qm
Patch0:		trojita-0.7-desktop.patch
# gentoo patches https://bugs.gentoo.org/730058
Patch1:         trojita-0.7-qt-5.13.patch
# error: aggregate 'QPainterPath path' has incomplete type and cannot be defined
Patch2:         trojita-0.7-qt-5.15.patch
Patch3:         trojita-0.7-cmake-cxx11.patch
# https://bugs.kde.org/show_bug.cgi?id=404697
Patch4:         CVE-2019-10734.patch
# https://bugs.kde.org/show_bug.cgi?id=423453
Patch5:         CVE-2020-15047.patch

BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	ragel
BuildRequires:  cmake(Gpgmepp)
BuildRequires:  cmake(KF5Sonnet)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
# For tests
BuildRequires:	x11-server-xvfb
Requires:	qt5-database-plugin-sqlite

%description
Qt-based IMAP e-mail client.

* A pure Qt application with no additional dependencies
* Robust IMAP core implemented using Qt's Model-View framework
* Standards compliance is a design goal
* Support for bandwidth-saving mode aimed at mobile users 
  with expensive connection
* IMAP over SSH -- in addition to usual SSL/TLS connections, 
  the server could be accessed via SSH
* On-demand body part loading
* Offline IMAP support (you can access data you already have; 
  there's no complete "offline mail access" yet, though)
* Safe dealing with HTML mail (actually more robust than Thunderbird's)

%files
%{_bindir}/%{name}
%{_bindir}/be.contacts
%{_datadir}/appdata/*xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/%{name}/locale/*.qm
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Evil workaround for build failure
echo 'add_definitions(-fvisibility=default)' >>CMakeLists.txt

%cmake \
	-DWITH_TESTS=ON \
	-DWITH_QT5=ON \
	-DWITH_ZLIB=ON \
	-DWITH_RAGEL=ON \
	-DWITH_SHARED_PLUGINS=ON

# ragel: -C is an invalid argument
grep -lr "ragel -C" | xargs sed -i -e "s|ragel -C|ragel|g"


%build
%make -C build

%install
%makeinstall_std -C build

install -m644 %{SOURCE2} -D %{buildroot}%{_datadir}/%{name}/locale/trojita_common_ru.qm

#mkdir -p %{buildroot}%{_libdir}
#for i in AbookAddressbook AppVersion Common DesktopGui Composer Imap MSA Streams qwwsmtpclient; do
#	cp -a build/lib$i.so %{buildroot}%{_libdir}/
#done

%check
%define X_display ":98"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}%{buildroot}%{_libdir}"
export DISPLAY=%{X_display}
Xvfb %{X_display} &
trap "kill $! || true" EXIT
cd build
ctest --output-on-failure

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11102 |21cr|trompeloeil-47-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Header only C++14 mocking framework
Name:		trompeloeil
Version:	47
Release:	1
License:	DSLv1.0
Group:		Development/C++
Url:		https://github.com/rollbear/trompeloeil
Source0:	https://github.com/rollbear/trompeloeil/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(catch2)

%description
Thread-safe header-only mocking framework for C++11/14.

%files
%{_includedir}/*
%{_libdir}/cmake/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake	\
	-DCMAKE_BUILD_TYPE=Debug		\
	-DCMAKE_INSTALL_PREFIX=%{_prefix}	\
	-DTROMPELOEIL_BUILD_TESTS=yes		\
	-DTROMPELOEIL_INSTALL_DOCS=OFF		\
	-DTROMPELOEIL_INSTALL_TARGETS=ON	\
	-GNinja		\
	-Wno-dev

%install
%ninja_install -C build

%check
./build/test/self_test || exit -1
./build/test/thread_terror || exit -1
./build/test/custom_recursive_mutex || exit -1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11103 |21cr|trophy-2.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A 2D car racing action game for Linux
Name:		trophy
Version:	2.0.4
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://trophy.sourceforge.net/index.php3
Source0:	http://downloads.sourceforge.net/trophy/trophy-2.0.4.tar.gz
Source1:	trophy-designer-manual.tar.bz2
Source10:	%{name}.16.png
Source11:	%{name}.32.png
Source12:	%{name}.48.png
BuildRequires:	libclanlib-network
BuildRequires:	libclanlib-sound
BuildRequires:	clanlib0.8-devel
BuildRequires:	hermes-devel

%description
Trophy is a single-player racing game for Linux. Even though the goal is
basically to finish the laps as the first, Trophy is an action game which
offers much more than just a race. Lots of extras enable "unusual" features for
races such as shooting, putting mines and many others.

%files
%doc AUTHORS COPYING README designer_manual_en
%{_gamesbindir}/*
%{_gamesdatadir}/trophy
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/games/applications/%{name}.desktop
%{_datadir}/games/icons/%{name}.png
%{_datadir}/man/man6/%{name}.6.xz
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version} -a1

%build
# (gc) workaround g++ exception bug when -fomit-frame-pointer is set
#export CFLAGS="$RPM_OPT_FLAGS -fno-omit-frame-pointer" CXXFLAGS="$RPM_OPT_FLAGS -fno-omit-frame-pointer"
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Trophy
Comment=Trophy is a 2D car racing action game for Linux
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF


install -m644 %{SOURCE10} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11104 |21cr|tryton-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major %(echo %{version}|cut -d. -f1,2)

Name:           tryton
Version:        6.2.0
Release:        1
Summary:        Client for the Tryton application framework

License:        GPLv3+
URL:            http://www.tryton.org
Group:          Development/Python
Source0:        http://downloads.tryton.org/%{major}/%{name}-%{version}.tar.gz
Source1:        %{name}.1
Patch0:         %{name}-5.4.0-system.patch

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  desktop-file-utils


%description
This is client for the Tryton application framework. The server can be found
in the trytond package.

%files -f %{name}.lang
%doc CHANGELOG COPYRIGHT LICENSE README.rst
%doc doc/*
%{_bindir}/%{name}
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}-*.egg-info/
%{_mandir}/man1/%{name}.1*
%{_datadir}/pixmaps/%{name}/
%{_datadir}/pixmaps/%{name}-icon.png
%{_datadir}/applications/%{name}.desktop



#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_datadir}/
mkdir -p %{buildroot}%{_mandir}/man1/

# move data to system location
pushd %{buildroot}%{py3_puresitedir}/%{name}/data
rm locale/*/*/*.po
mv locale %{buildroot}%{_datadir}/
mv pixmaps %{buildroot}%{_datadir}/
popd
rmdir %{buildroot}%{py3_puresitedir}/%{name}/data

desktop-file-install --dir %{buildroot}%{_datadir}/applications %{name}.desktop

# prepare icon pixmap
pushd %{buildroot}%{_datadir}/pixmaps
ln -sf %{name}/%{name}-icon.png %{name}-icon.png
popd

install -D -p -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11105 |21cr|trytond-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major %(echo %{version}|cut -d. -f1,2)

Name:           trytond
Version:        6.2.0
Release:        1
Summary:        Server for the Tryton application framework
Group:          Development/Python
License:        GPLv3+
URL:            http://www.tryton.org
Source0:        http://downloads.tryton.org/%{major}/%{name}-%{version}.tar.gz
Source1:        %{name}.conf
Source2:        %{name}_log.conf
Source20:       %{name}.service
Source21:       tryton.sysusers.conf
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-sphinx
BuildRequires:  systemd

Requires:       %{name}-server = %{version}-%{release}
Requires(pre):  /bin/systemd-sysusers

Provides:       tryton(kernel) = %{major}
BuildArch:      noarch


%description
Tryton is a three-tiers high-level general purpose application framework
written in Python and use PostgreSQL as database engine. It is the core base
of an Open Source ERP. It provides modularity, scalability and security.

The core of Tryton (also called Tryton kernel) provides all the necessary
functionalities for a complete application framework: data persistence (i.e
an ORM with extensive modularity), users management (authentication, fine
grained control for data access, handling of concurrent access of resources),
workflow and report engines, web services and internationalisation. Thus
constituting a complete application platform which can be used for any
relevant purpose.

%files
%doc CHANGELOG COPYRIGHT LICENSE README*
%doc doc/*
%{_unitdir}/%{name}.service
%attr(0640,tryton,tryton) %config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}_log.conf
%{_bindir}/%{name}
%{_bindir}/%{name}-admin
%{_bindir}/%{name}-cron
%{_bindir}/%{name}-console
%{_bindir}/%{name}-stat
%{_bindir}/%{name}-worker
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}-*.egg-info/
%exclude %{py3_puresitedir}/%{name}/backend/postgresql
%exclude %{py3_puresitedir}/%{name}/backend/sqlite
%attr(0750,tryton,tryton) %{_localstatedir}/lib/%{name}
%attr(0750,tryton,tryton) %{_localstatedir}/log/%{name}
%{_sysusersdir}/tryton.conf

%pre
%sysusers_create_package tryton %{SOURCE21}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service


#----------------------------------------------------------------------------

%package pgsql
Summary:        PostgreSQL support for Tryton Server
Requires:       %{name} = %{version}-%{release}
Provides:       %{name}-server = %{version}-%{release}

%description pgsql
PostgreSQL support for Tryton Server.

%files pgsql
%{py3_puresitedir}/%{name}/backend/postgresql

#----------------------------------------------------------------------------

%package sqlite
Summary:        SQLite support for Tryton Server
Requires:       %{name} = %{version}-%{release}
Provides:       %{name}-server = %{version}-%{release}

%description sqlite
SQLite support for Tryton Server.

%files sqlite
%{py3_puresitedir}/%{name}/backend/sqlite


#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_sysconfdir}
install -p -m 640 %{SOURCE1} %{buildroot}%{_sysconfdir}
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}

mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/

mkdir -p %{buildroot}%{_localstatedir}/{lib,log}/%{name}

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE21} %{buildroot}%{_sysusersdir}/tryton.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11106 |21cr|tsid-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Time SID Manager
Name:		tsid
Version:	1.0
Release:	1
Group:		Sound
License:	GPLv2+
Url:		http://tsid.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/tsid/%name-%version.tar.gz
Patch0:		tsid-1.0-gcc4.patch
BuildRequires:	sidplay-devel

%description
A little library for collecting your time spent listening statistic about
HVSC sids from a sid player, and some programs for extracting and elaborating
these information. So, who is your best sid composer or tune? TSID probably
shows you something interesting...
This package contains the user executable programs.

%files
%doc README AUTHORS COPYING TODO doc/faq.html doc/tupdate.html
%{_bindir}/examiner
%{_bindir}/hvsctest
%{_bindir}/tupdate

#-----------------------------------------------------------------------------

%package -n %{name}-devel
Summary:	Header files for compiling apps that use libtsid
Group:		Development/C++

%description -n %{name}-devel
A little library for collecting your time spent listening statistic about
HVSC sids from a sid player, and some programs for extracting and elaborating
these information. So, who is your best sid composer or tune? TSID probably
shows you something interesting...
This is a developer package containing (only) the static library and the
header files.

%files -n %{name}-devel
%doc history/* doc/inside.html COPYING doc/thvs.txt
%{_libdir}/*.a
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .gcc4

# Fix wrong perms
find  src/pgr/ -name "*.cpp" -o -name "*.h" | xargs chmod 0644
find  src/tsid/ -name "*.cpp" -o -name "*.h" | xargs chmod 0644


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11107 |21cr|tslib-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api	0.0
%define major	0
%define libname	%mklibname ts %api %major
# (anssi) unversioned libts.so symlink exists, so no %api in develname
%define develname %mklibname ts -d

Name:		tslib
Version:	1.0
Release:	6
Source:		http://download.berlios.de/tslib/%name-%version.tar.bz2
Patch0:		tslib-glibc2.8.patch
Summary:	Touchscreen access library
URL:		http://developer.berlios.de/projects/tslib/
License:	GPL
Group:		System/Libraries

%description
Hardware independent touchscreen access library.

%package utils
Summary:	Touchscreen access library utilities
Group:		System/Kernel and hardware

%description utils
Hardware independent touchscreen access library.

This package contains the tslib utilities.

%package common
Summary:	Touchscreen access library common files
Group:		System/Kernel and hardware

%description common
Hardware independent touchscreen access library.

This package contains the tslib configuration file and documentation.

%package -n %{libname}
Summary:	Touchscreen access library
Group:		System/Libraries
Requires:	%{name}-common = %{version}-%{release}

%description -n %{libname}
Hardware independent touchscreen access library.

%package -n %{develname}
Summary:	Development library and headers for %name
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	libts-devel = %{version}-%{release}

%description -n %{develname}
Development files (headers etc.) for %name.

%prep
%setup -q
perl -pi -e 's,^# module_raw input$,module_raw input,' etc/ts.conf
# For quick verification during building:
grep "module_raw input" etc/ts.conf
%patch0 -p1

%build
./autogen.sh
%configure --with-plugindir=%{_libdir}/ts%{api}_%{major}
%make

%install
rm -rf %{buildroot}
%makeinstall_std
# (anssi) not needed for these libraries
rm %{buildroot}%{_libdir}/ts%{api}_%{major}/*.la

%clean
rm -rf %{buildroot}

%files utils
%defattr(-,root,root)
%_bindir/ts_*

%files common
%defattr(-,root,root)
%doc README AUTHORS ChangeLog
%config(noreplace) %_sysconfdir/ts.conf

%files -n %{libname}
%defattr(-,root,root)
%_libdir/*-%{api}.so.%{major}*
%dir %_libdir/ts%{api}_%{major}
%_libdir/ts%{api}_%{major}/*.so

%files -n %{develname}
%defattr(-,root,root)
%_libdir/*.so
%_includedir/tslib.h
%_libdir/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11108 |21cr|tstat-3.1.1-1.991.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
#%%global optflags %{optflags} -fcommon

%define svn 991

Name:		tstat
Version:	3.1.1
Release:	1.%{svn}.1
Summary:	Sniffer able to provide several insights on the traffic patterns
Group:		Monitoring
License:	GPL
Url:		http://tstat.tlc.polito.it/
#Source0:	http://tstat.tlc.polito.it/download/%{name}-%{version}.tar.gz
#svn co http://tstat.polito.it/svn/software/tstat/trunk tstat-991
Source0:	tstat-%{svn}.tar.gz
Source1:	tstat.service
Source2:	tstat_rrd.cgi
Source3:	tstat_net.conf
Source4:	tstat_rrd.conf
Source5:	tstat_global.conf
Buildrequires: pcap-devel
Buildrequires: rrdtool-devel
Buildrequires: pkgconfig(zlib)
Buildrequires: pkgconfig(openssl)
Buildrequires: pkgconfig(ldns)
Requires:      rrdtool

%description
The lack of automatic tools able to produce statistical data from network
packet traces was a major motivation to develop Tstat, a tool which, starting
from standard software libraries, offers to network managers and researchers
audit important information about classic and novel performance indexes and
statistical data about Internet traffic. Started as evolution of TCPtrace, 
Tstat analyzes either real-time captured packet traces, using either common PC 
hardware or more sophisticated ad-hoc cards such as the DAG cards. Beside live 
capture, Tstat can analyze previously recorded packet-level traces, supporting
various dump formats, such as the one supported by the libpcap library, and 
many more.

please adjust: %{_sysconfdir}/tstat/global.conf

%files
%doc doc/*
%{_bindir}/%{name}
%attr(0644,root,root) %{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/%{name}/rrd.conf
%config(noreplace) %{_sysconfdir}/%{name}/net.conf.sample
%config(noreplace) %{_sysconfdir}/%{name}/global.conf
/var/lib/%{name}/*

%post
%systemd_post tstat

%preun
%systemd_preun tstat

#--------------------------------------------------------------
%package -n %{name}-www
Summary:	Provides the CGI file for the tstat web interface
Group:		Networking/WWW
Requires:	apache
Requires:	perl-CGI
Requires:	apache-mod_fastcgi
Requires:	perl-Date-Manip

%description -n %{name}-www
Provides the CGI file for the tstat web interface

%files -n %{name}-www
%doc ChangeLog doc/README.RRDtool
%attr(755,apache,apache) /var/www/html/rrd_images
%attr(755,root,root) /var/www/cgi-bin/tstat_rrd.cgi

%post -n %{name}-www
if [ ! -e "/var/www/cgi-bin/rrd_data" ];then
	ln -sf /var/lib/%{name}/rrd_data /var/www/cgi-bin/rrd_data
fi
if [ ! -e "/var/www/cgi-bin/rrd_images" ];then
	ln -sf /var/www/html/rrd_images /var/www/cgi-bin/rrd_images
fi
chown -R apache.apache /var/www/html/rrd_images

#--------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{svn}

%build
./autogen.sh
./configure \
    --prefix=/usr \
    --enable-zlib \
    --enable-openssl \
    --enable-ldns \
    --enable-rrdthread

%make

%install
%makeinstall_std

rm %{buildroot}/%{_prefix}/lib/pkgconfig/libtstat.pc
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/tstat
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}/var/lib/%{name}/rrd_data/localhost
cp -v %{name}/tstat %{buildroot}%{_bindir}/tstat
cp -v %{SOURCE4} %{buildroot}%{_sysconfdir}/%{name}/rrd.conf
cp -v %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
cp -v %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/net.conf.sample
cp -v %{SOURCE5} %{buildroot}%{_sysconfdir}/%{name}/global.conf

mkdir -p %{buildroot}/var/www/cgi-bin
mkdir -p %{buildroot}/var/www/html/rrd_images
cp -v %{SOURCE2} %{buildroot}/var/www/cgi-bin/%{name}_rrd.cgi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11109 |21cr|tsung-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A distributed multi-protocol load testing tool
Name:		tsung
Version:	1.7.0
Release:	1
License:	GPLv2
Group:		Development/Other
Url:		http://tsung.erlang-projects.org/
Source0:	http://tsung.erlang-projects.org/dist/%{name}-%{version}.tar.gz
Patch0:		tsung-python-shebang.patch
BuildRequires:	erlang-devel
BuildRequires:	erlang-xmerl
BuildRequires:	erlang-ssl
BuildRequires:	erlang-crypto
BuildRequires:	erlang-compiler
BuildRequires:	erlang-snmp
BuildRequires:	erlang-eunit
BuildRequires:	erlang-public_key
Requires:	erlang-xmerl
Requires:	erlang-ssl
Requires:	erlang-crypto
Requires:	erlang-snmp
Requires:	perl(Template::Perl)

%description
It is protocol-independent and can currently be used to stress and
benchmark HTTP, Jabber/XMPP, PostgreSQL, MySQL and LDAP servers.
It simulates user behaviour using an XML description file, reports
many measurements in real time (statistics can be customized with
transactions, and graphics generated using gnuplot).
For HTTP, it supports 1.0 and 1.1, has a proxy mode to record
sessions, supports GET and POST methods, Cookies, and Basic
WWW-authentication. It also has support for SSL.

%files
%doc CHANGELOG.md CONTRIBUTORS COPYING  TODO
%{_bindir}/%{name}*
%{_bindir}/tsplot
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man1/tsplot.1*

#---------------------------------------------------------------

%prep
%autosetup -p1

iconv -f ISO-8859-1 -t UTF-8 CONTRIBUTORS > CONTRIBUTORS.new && \
touch -r CONTRIBUTORS CONTRIBUTORS.new && \
mv CONTRIBUTORS.new CONTRIBUTORS
sed -i 's/\r$//' examples/*

%build
%configure

%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_defaultdocdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11110 |21cr|ttaenc-3.4.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ttaenc
Version:	3.4.1
Release:	6
License:	GPLv2
Summary:	The True Audio (TTA) codec lossless audio compressor
Group:		Sound
URL:		http://sourceforge.net/projects/tta/
Source:		http://sourceforge.net/projects/tta/files/tta/ttaenc-src/%{name}-%{version}-src.tgz
Patch0:		ttaenc-3.4.1-src-shntool.patch
Patch1:		ttaenc-3.4.1-src-debug.patch

%description
TTA performs lossless compression on multichannel 8,16 and 24 bits
data of the Wav audio files. Being "lossless" means that no data-
quality is lost in the compression - when uncompressed, the data will
be identical to the original. The compression ratios of TTA depend on
the type of music file being compressed, but the compression size
will generally range between 30% - 70% of the original. TTA format
supports both of ID3v1/v2 and APEv2 tags. Detailed format description
is available at http://tta.sourceforge.net

This version is patched with shntool patch.

%files
%doc COPYING README
%{_bindir}/%{name}

#---------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}-src

%build
%ifarch %{armx}
sed -i 's/-msse//' Makefile
%endif

%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11111 |21cr|ttcp-1.12-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A tool for testing TCP connections
Name: ttcp
Version: 1.12
Release: 18
URL:	ftp://ftp.sgi.com/sgi/src/ttcp/
Source0: ftp://ftp.sgi.com/sgi/src/ttcp/ttcp.c
Source1: ftp://ftp.sgi.com/sgi/src/ttcp/ttcp.1
Source2: ftp://ftp.sgi.com/sgi/src/ttcp/README
Patch0: ttcp-big.patch
Patch1: ttcp-malloc.patch
Patch2: ttcp-GNU.patch
Patch3: ttcp-man.patch
BuildRequires: glibc-devel
Group: Monitoring
License: Public Domain

%description
ttcp is a tool for testing the throughput of TCP connections.  Unlike other
tools which might be used for this purpose (such as FTP clients), ttcp does
not read or write data from or to a disk while operating, which helps ensure
more accurate results.

%prep
%setup -c -T -q
cp -a %{SOURCE0} %{SOURCE1} %{SOURCE2} .
%patch0 -p1 -b .big
%patch1 -p1 -b .malloc
%patch2 -p1 -b .GNU
%patch3 -p1 -b .man

%build
%{__cc} -o ttcp $RPM_OPT_FLAGS ttcp.c

%install
mkdir -p %{buildroot}{%{_mandir}/man1,%{_bindir}}
install -p -m755 ttcp %{buildroot}%{_bindir}
install -p -m644 ttcp.1 %{buildroot}%{_mandir}/man1

%files
%doc README
%{_bindir}/ttcp
%{_mandir}/man1/ttcp.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11112 |21cr|tty-clock-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################################################
# SpecFile: tty-clock.spec 
# Generato: http://www.mandrivausers.ro/
# MRB-Falticska Florin
######################################################
#empty debug 
%define debug_package %{nil}

Summary:	Simple console clock
Name:		tty-clock
Version:	2.3
Release:	1
License:	GPLv2+
Group:		Shells
Url:		http://github.com/xorg62/tty-clock
Source0:	https://github.com/xorg62/tty-clock/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)
Requires:	ncurses

%description
An analog clock in ncurses

%files
%doc README
%{_bindir}/%{name}

#----------------------------------------------------------------

%prep
%setup -q 
chmod -x README

%build
%make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11113 |21cr|ttyrec-1.1.6.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tty recorder
Name:		ttyrec
Version:	1.1.6.7
Release:	1
License:	BSD
Group:		Text tools
#Url:		http://namazu.org/~satoru/ttyrec # old URL
Url:		https://github.com/ovh/ovh-ttyrec
Source0:	https://github.com/ovh/ovh-ttyrec/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	glibc-devel
BuildRequires:	zstd-devel
Provides:	ttyplay = %{version}
Provides:	ttytime = %{version}

%description
Extended (but compatible) fork of ttyrec.
ttyrec is a terminal (tty) recorder,
it comes with ttyplay, which is a tty player.

Some features of ovh-ttyrec follow:
- Drop-in replacement of the classic ttyrec,
  additional features don't break compatibility
- The code is portable and OS features that
  can be used are detected at compile time
- Supports ttyrec output file rotation
  without interrupting the session
- Supports locking the session after a keyboard input
  timeout, optionally displaying a custom message
- Supports terminating the session after a keyboard input timeout
- Supports manually locking or terminating the
  session via "cheatcodes" (specific keystrokes)
- Supports a no-tty mode, relying on pipes instead
  of pseudottys, while still recording stdout/stderr
- Automatically detects whether to use pseudottys
  or pipes, also overridable from command-line
- Supports reporting the number of bytes that
  were output to the terminal on session exit

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n ovh-%{name}-%{version}

%build
%configure NO_STATIC_ZSTD=1
%make_build


%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11114 |21cr|tty-solitaire-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define oname ttysolitaire

Name:           tty-solitaire
Version:        1.3.1
Release:        1
Summary:        An ncurses-based Klondike solitaire clone
License:        MIT
Group:          Games/Cards
Url:            https://github.com/mpereira/tty-solitaire
Source0:        https://github.com/mpereira/tty-solitaire/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:         tty-solitaire-glibc2.36.patch
BuildRequires:  pkgconfig(ncurses)

%description
%{summary}.

%files
%doc LICENSE CHANGELOG README
%{_bindir}/%{oname}

#----------------------------------------------

%prep
%autosetup -p1


%build
%setup_compile_flags
%make

%install
%makeinstall_std PREFIX=%{_prefix}

%check
make test
./ttysolitaire_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11115 |21cr|tucan-0.3.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define langs cs de en es fr it pl pt ru se sk
%define __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')

Summary:	Manager for downloads and uploads at hosting sites
Name:		tucan
Version:	0.3.10
Release:	6
License:	GPLv2+
Group:		Networking/WWW
Url:		http://cusl3-tucan.forja.rediris.es
Source0:	http://forja.rediris.es/frs/download.php/2051/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	desktop-file-utils
BuildRequires:	python
Requires:	librsvg2
Requires:	pygtk2
Requires:	python-imaging
Requires:	tesseract
BuildArch:	noarch

%description
Tucan is a graphical manager to upload and download from the most famous
file hosting sites (e.g. rapidshare, megaupload).

%files -f %{name}.lang
%doc CHANGELOG LICENSE README README.es TODO docs/*
%{_bindir}/%{name}
%{_datadir}/%{name}-%{version}/
%{_mandir}/man1/%{name}.1.*
%{_datadir}/pixmaps/%{name}.*
%{_datadir}/applications/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q
# fix tray
sed -i 's|OPTION_TRAY_CLOSE: "False"|OPTION_TRAY_CLOSE: "True"|g' core/config.py
# utf8 convert
for f in ./README.es ./docs/FAQ.es ./docs/service-HOWTO.es
do
  iconv -f iso-8859-1 -t utf-8 $f |sed 's|\r||g' > $f.utf8
  touch -c -r $f $f.utf8
  mv $f.utf8 $f
done
# fix locales
sed -i 's|PATH_LOCALES = os.path.join(PATH, "i18n")|PATH_LOCALES = os.path.join(PATH, "%{_datadir}/locale")|g' core/cons.py

# fix executable
sed -i 's|ln -sf $(MAINDIR)$(EXECFILE) $(BINDIR)$(NAME)|#ln -sf $(MAINDIR)$(EXECFILE) $(BINDIR)$(NAME)|g' Makefile

%build
for l in %{langs}
do
  rm -rf i18n/$l/LC_MESSAGES/%{name}.mo
  msgfmt i18n/$l/$l.po -o i18n/$l/LC_MESSAGES/%{name}.mo
done

%install
%makeinstall \
     DESTDIR=%{buildroot}%{_prefix} \
     MAINDIR=%{buildroot}%{_datadir}/%{name}-%{version}/

ln -sf %{_datadir}/%{name}-%{version}/%{name}.py \
      %{buildroot}%{_bindir}/%{name}

for l in %{langs}
do
  mkdir -p %{buildroot}%{_datadir}/locale/$l/LC_MESSAGES/
  install -Dpm0644 i18n/$l/LC_MESSAGES/%{name}.mo \
           %{buildroot}%{_datadir}/locale/$l/LC_MESSAGES/
done

desktop-file-install \
       --dir=%{buildroot}%{_datadir}/applications/ \
       %{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11116 |21cr|tucnak2-4.37-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	VHF contest logging program
Name:		tucnak2
Version:	4.37
Release:	2
License:	GPLv2+
Group:		Communications
Url:		http://tucnak.nagano.cz/wiki/Main_Page
Source0:	http://tucnak.nagano.cz/tucnak-%{version}.tar.gz
# This is to rename soundwrapper from the generic name to the
# tucnak-soundwrapper, it can avoid name conflicts with other
# soundwrappers possibly shipped by other packages in the future.
Patch0:		tucnak-4.18-soundwrapper.patch
Patch1:		tucnak-4.35-ftdi-path.patch
BuildRequires:	recode
#BuildRequires:	rtl-sdr-devel
BuildRequires:	desktop-file-utils
BuildRequires:	portaudio-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libzia)
BuildRequires:	pkgconfig(hamlib)
BuildRequires:	pkgconfig(sndfile)

%description
Tucnak2 is VHF/UHF/SHF log for hamradio contests. It supports multi
bands, free input, networking, voice and CW keyer, WWL database and
much more.

%files
%doc AUTHORS ChangeLog TODO
%doc doc/NAVOD.pdf doc/NAVOD.sxw
%doc data/*.html data/*.png
%license COPYING
%{_bindir}/tucnak
%{_bindir}/tucnak-soundwrapper
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/tucnak

#----------------------------------------------------------

%prep
%autosetup -p1 -n tucnak-%{version}

# fix encoding to UTF-8
recode ISO-8859-2..UTF-8 AUTHORS ChangeLog

%build
autoreconf -fiv
%configure
%make

%install
%makeinstall_std

desktop-file-validate %{buildroot}%{_datadir}/applications/tucnak.desktop

# rename soundwrapper to tucnak-soundwrapper
mv %{buildroot}%{_bindir}/soundwrapper %{buildroot}%{_bindir}/tucnak-soundwrapper 

# drop docs installed to wrong place
rm -f %{buildroot}%{_datadir}/tucnak/doc/*
rmdir %{buildroot}%{_datadir}/tucnak/doc

# drop unneeded files/dirs
rm -f %{buildroot}%{_prefix}/lib/tucnak/tucnak.d
rmdir %{buildroot}%{_prefix}/lib/tucnak

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11117 |21cr|tumbler-4.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define major 0
%define api 1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	A thumbnail D-Bus service
Name:		tumbler
Version:	4.16.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://git.xfce.org/apps/tumbler
Source0:	https://archive.xfce.org/src/xfce/tumbler/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	intltool
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgepub-0.6)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libffmpegthumbnailer)
BuildRequires:	pkgconfig(libopenraw-0.1)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	xfce4-dev-tools
BuildRequires:	gtk-doc
Requires:	%{libname} = %{EVRD}

%description
Tumbler is a D-Bus service for applications to request 
thumbnails for various URI schemes and MIME types.
It is an implementation of the thumbnail management D-Bus 
specification.

%files -f %{name}.lang
%doc AUTHORS TODO ChangeLog
%{_libdir}/tumbler-1/%{name}d
%{_libdir}/tumbler-1/plugins
%{_datadir}/dbus-1/services/*.service
%{_iconsdir}/hicolor/32x32/apps/org.xfce.tumbler.png
%{_sysconfdir}/xdg/tumbler/tumbler.rc

#-------------------------------------------------------------

%package -n %{libname}
Summary:	A D-bus thumbnailing framweork
Group:		System/Libraries

%description -n %{libname}
Tumbler is a D-Bus service for applications to request 
thumbnails for various URI schemes and MIME types.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#-------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%dir %{_includedir}/%{name}-%{api}
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_libdir}/lib%{name}-%{api}.so
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_datadir}/gtk-doc/html/%{name}

#-------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name} %{name}.lang


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11118 |21cr|tuna-0.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Application tuning GUI & command line utility
Name:		tuna
Version:	0.19
Release:	1
License:	GPLv2
Group:		System/Servers
Url:		https://rt.wiki.kernel.org/index.php/Tuna
Source0:	https://www.kernel.org/pub/software/utils/%{name}/%{name}-%{version}.tar.xz
# From Fedora
Patch0:		0001-Add-SPDX-license-identifiers.patch
Patch1:		0002-tuna-Remove-spec-file-from-git.patch
BuildRequires:	gettext
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	python3dist(python-linux-procfs)
BuildArch:	noarch

%description
Provides interface for changing scheduler and IRQ tunables, at whole CPU and at
per thread/IRQ level. Allows isolating CPUs for use by a specific application
and moving threads and interrupts to a CPU by just dragging and dropping them.
Operations can be done on CPU sockets, understanding CPU topology.

Can be used as a command line utility without requiring the GUI libraries to be
installed.

%files -f %{name}.lang
%doc ChangeLog
%{_bindir}/%{name}
%{_datadir}/polkit-1/actions/org.%{name}.policy
%{_datadir}/%{name}
%{_mandir}/man8/%{name}.8*
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/%{name}
%{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}.conf

#------------------------------------------------------------------

%package -n oscilloscope
Summary:	Generic graphical signal plotting tool
Group:		System/Servers
Requires:	gobject-introspection
Requires:	%{name} = %{EVRD}
Requires:	python3-matplotlib-gtk3
Requires:	python3dist(numpy)
Requires:	python3dist(cairocffi)

%description -n oscilloscope
Plots stream of values read from standard input on the screen together with
statistics and a histogram.
 
Allows to instantly see how a signal generator, such as cyclictest, signaltest
or even ping, reacts when, for instance, its scheduling policy or real time
priority is changed, be it using %{name} or plain chrt & taskset.

%files -n oscilloscope
%doc docs/oscilloscope+%{name}.html
%doc docs/oscilloscope+%{name}.pdf
%{_bindir}/oscilloscope

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build
%py3_shebang_fix %{name}
%py3_shebang_fix %{name}-cmd.py
%py3_shebang_fix oscilloscope-cmd.py

%install
%py3_install
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
mkdir -p %{buildroot}/{%{_bindir},%{_datadir}/%{name}/help/kthreads,%{_mandir}/man8}
mkdir -p %{buildroot}/%{_datadir}/polkit-1/actions/
install -p -m644 %{name}/%{name}_gui.glade %{buildroot}/%{_datadir}/%{name}
install -p -m755 %{name}-cmd.py %{buildroot}/%{_bindir}/%{name}
install -p -m755 oscilloscope-cmd.py %{buildroot}/%{_bindir}/oscilloscope
install -p -m644 help/kthreads/* %{buildroot}/%{_datadir}/%{name}/help/kthreads
install -p -m644 docs/%{name}.8 %{buildroot}/%{_mandir}/man8
install -p -m644 etc/%{name}/example.conf %{buildroot}/%{_sysconfdir}/%{name}
install -p -m644 etc/%{name}.conf %{buildroot}/%{_sysconfdir}
install -p -m644 org.%{name}.policy %{buildroot}/%{_datadir}/polkit-1/actions
	
# l10n-ed message catalogues
for lng in `cat po/LINGUAS`; do
	po=po/"$lng.po"
	mkdir -p %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES
	msgfmt $po -o %{buildroot}/%{_datadir}/locale/${lng}/LC_MESSAGES/%{name}.mo
done
	
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11119 |21cr|tuncel-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without plasma
%bcond_with gnome
%bcond_with kde4

Summary:	Servicemenu or Actions for KDE and GNOME desktops
Name:		tuncel
Version:	2.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://github.com/tarakbumba/tuncel
Source0:	https://github.com/tarakbumba/tuncel/releases/download/%{version}/tuncel-%{version}.tar.xz
BuildRequires:	coreutils
BuildRequires:	cpio
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	kdialog
%if %{with kde4}
BuildRequires:	kde4-macros
BuildRequires:	kdebase4
BuildRequires:	kdelibs4-core
BuildRequires:	konsole
%endif
%if %{with plasma}
BuildRequires:	kde5-macros
BuildRequires:	plasma5-konsole
%endif
BuildRequires:	python3
BuildRequires:	python3-polib
BuildRequires:	rpm
%if %{with gnome}
BuildRequires:	gnome-terminal
BuildRequires:	zenity
%endif
BuildArch:	noarch
Requires:	coreutils
Requires:	cpio
Requires:	rpm
%rename	kde-rpmxdgtool-servicemenu

%description
This is an updated fork of Heinemann Jürgen's rpmxdgtool: a service menu for
RPM, supporting Dolphin from KDE4 and KF5, and Nemo from GNOME.
It provides the following actions:
 1. Show RPM Main Info.
 2. Show Package Content.
 3. Unpack RPM.
 4. Unpack RPM to Directory.
 5. Open RPM Url from Package in Web Browser.
 6. Make Test Install.
 7. Force Upgrade Test Install.
 8. Install Source package in the local build environment.
This package contains the common script and config file.

%files -f %{name}.lang
%doc ChangeLog.md COPYING README.md
%config (noreplace) %{_sysconfdir}/%{name}.conf
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%if %{with kde4}
%package -n rpm-kde4-servicemenu
Summary:	KDE4 service menu for RPM Packages
Requires:	%{name} = %{EVRD}
Requires:	dolphin
Requires:	kdialog
Requires:	konsole

%description -n rpm-kde4-servicemenu
KDE4 service menu for easy operations on RPM packages.

%files -n rpm-kde4-servicemenu
%doc COPYING
%{_kde_services}/ServiceMenus/%{name}.desktop
%endif

#-----------------------------------------------------------------------------

%if %{with plasma}
%package -n plasma5-rpm-service
Summary:	Plasma/KF5 service menu for RPM Packages
Requires:	%{name} = %{EVRD}
Requires:	kdialog
Requires:	plasma5-dolphin
Requires:	plasma5-konsole

%description -n plasma5-rpm-service
Plasma/KF5 service menu for easy operations on RPM packages.

%files -n plasma5-rpm-service
%doc COPYING
%{_kde5_services}/ServiceMenus/%{name}.desktop
%endif

#-----------------------------------------------------------------------------

%if %{with gnome}
%package -n nemo-rpm-actions
Summary:	Nemo actions for RPM Packages
Requires:	%{name} = %{EVRD}
Requires:	gnome-terminal
Requires:	nemo
Requires:	zenity

%description -n nemo-rpm-actions
Nemo actions for easy operations on RPM packages.

%files -n nemo-rpm-actions
%doc COPYING
%{_datadir}/nemo/actions/*.nemo_action
%endif

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
NOCONFIGURE=1 ./autogen.sh

%configure	--sysconfdir=%{_sysconfdir} \
%if %{with kde4}
	--enable-kde4 \
%endif
%if %{with gnome}
	--disable-nautilus \
	--enable-nemo \
%endif
%if %{with plasma}
	--enable-plasma \
%endif
	--disable-tde

%make


%install
%makeinstall_std

%if %{with kde4}
mv %{buildroot}%{_kde_services}/ServiceMenus/%{name}_kde4.desktop %{buildroot}%{_kde_services}/ServiceMenus/%{name}.desktop
%endif

%if %{with plasma}
mv %{buildroot}%{_kde5_services}/ServiceMenus/%{name}_plasma.desktop %{buildroot}%{_kde5_services}/ServiceMenus/%{name}.desktop
%endif

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11120 |21cr|turo-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           turo
Version:        1.3.0
Release:        1
# https://f-droid.org/en/packages/ir.hsn6.turo/
License:        GPLv3+
Summary:        Build a Tower
Url:            https://github.com/HassanHeydariNasab/turo
Group:          Games/Arcade
Source0:        https://github.com/HassanHeydariNasab/turo/archive/%{name}-%{version}.tar.gz
BuildRequires:  imagemagick
Requires:       godot2-runner

BuildArch:      noarch

%description
Build a tower as tall as possible.
The game is developing using Godot v2.1.4.

%files
%{_gamesdatadir}/%{name}
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

%prep
%setup -q

%build

%install
# game data files
install -dm755 %{buildroot}%{_gamesdatadir}/%{name}
cp -R -t %{buildroot}%{_gamesdatadir}/%{name} *

# wrapper
install -dm755 %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} << EOF
#!/bin/sh
godot2-runner -path "%{_gamesdatadir}/%{name}" $@
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{name}

# icons
for size in 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size ikono.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done


# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
GenericName=%{name} 
Comment=Build a tower as tall as possible
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Game;ArcadeGame;
StartupNotify=true
EOF
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11121 |21cr|tutka-1.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Let's pick up them by packaging a devel snapshot
%define	git		0
%define gitdate	20170905

%global	debug_package	%{nil}

Name:		tutka
Summary:	Tracker-style MIDI sequencer with a Qt5 GUI
%if %{git}
Version:	1.1.1
Release:	0.%{gitdate}.0
%else
Version:	1.1.3
Release:	2
%endif
License:	GPLv2+
Group:		Sound
Url:		https://www.nongnu.org/tutka/
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
%else
Source0:	http://download.savannah.gnu.org/releases/tutka/%{name}-%{version}.tar.xz
%endif
Patch0:		tutka-1.1.3-drop-Werror.patch
Patch1:		tutka-1.1.3-avoid-qt-deprecation-warnings.patch
# Present in every qt release <= 5.12.3
Patch2:		tutka-1.1.3-workaround-qt-bug-76076.patch
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Tutka is a free (as in freedom) tracker style MIDI sequencer for GNU/Linux
(and other systems; only GNU/Linux is supported at this time though). It is
similar to programs like SoundTracker, ProTracker and FastTracker except that
it does not support samples and is meant for MIDI use only. It uses a custom
XML based file format for storing songs. Songs in OctaMED SoundStudio's MMD2
file format can also be loaded and saved. It has also a nice Qt5 GUI.

%files
%doc AUTHORS COPYING NEWS README TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
#{_datadir}/%%{name}
#{_iconsdir}/%%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{name}-%{gitdate}
%else
%setup -q
%endif
%patch0 -p1 -b .noWerror
%patch1 -p1
%patch2 -p1


%build
%qmake_qt5 Tutka.pro
%make


%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

#chmod 0644 %%{buildroot}%%{_iconsdir}/hicolor/48x48/apps/%%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11122 |21cr|tux_aqfh-1.0.14-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tux_aqfh
Version:	1.0.14
Release:	16
License:	GPL
URL:		http://tuxaqfh.sourceforge.net/
Group:		Games/Arcade
Source0:	http://tuxaqfh.sourceforge.net/dist/%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Summary:	Tuxedo T. Penguin: A Quest For Herring
BuildRequires:	plib-devel
BuildRequires:  pkgconfig(glu)
BuildRequires:	glut-devel
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xmu)

%description
Tuxedo T. Penguin: A Quest For Herring

%prep
%setup -q

%build
%configure --bindir=%{_gamesbindir} --x-libraries="-L%{_libdir} -lplibjs"
%make

%install
%{makeinstall} bindir=%{buildroot}%{_gamesbindir}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

#Move website to HTML so we can include it as a %doc instead of clutterng up %_datadir
mv %{buildroot}%{_datadir}/%{name} HTML

%files
%doc README HTML
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11123 |21cr|tuxguitar-1.5.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	rname TuxGuitar

Summary:	Multi-track guitar tablature editor and player
Name:		tuxguitar
Version:	1.5.6
Release:	1
License:	LGPLv2+
Group:		Sound
Url:		http://www.tuxguitar.com.ar
# Though tuxguitar is Open Source, currently we just repack binary tarballs from upstream
Source0:	http://sourceforge.net/projects/tuxguitar/files/TuxGuitar/TuxGuitar-%{version}/%{name}-%{version}-linux-x86.tar.gz
Source1:	http://sourceforge.net/projects/tuxguitar/files/TuxGuitar/TuxGuitar-%{version}/%{name}-%{version}-linux-x86_64.tar.gz
Source2:	%{name}.desktop
Source3:	%{name}.png
Source100:	%{name}.rpmlintrc
BuildRequires:	imagemagick
Requires:	java >= 1.6
Provides:	%{rname} = %{EVRD}
AutoReqProv:	no

%description
TuxGuitar is a multi-track guitar tablature editor and player.
With TuxGuitar, you will be able to compose music using the following
features:
* Tablature editor.
* Score Viewer.
* Multi-track display.
* Autoscroll while playing.
* Note duration management.
* Various effects (bend, slide, vibrato, hammer-on/pull-off).
* Support for triplets (5,6,7,9,10,11,12).
* Repeat open and close.
* Time signature management.
* Tempo management.
* Imports and exports gp3, gp4 and gp5 files.

%files
%ifarch %{ix86}
%doc %{name}-%{version}-linux-x86/doc/*
%else
%doc %{name}-%{version}-linux-x86_64/doc/*
%endif
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml

#-------------------------------------------------------------------

%prep
%setup -qcT
%ifarch %{ix86}
tar xf %{SOURCE0}
%else
tar xf %{SOURCE1}
%endif


%build
# Pre-built stuff


%install
# Manual install
# 1. The launch script
mkdir -p %{buildroot}%{_datadir}/%{name} %{buildroot}%{_bindir}
cp -r tuxguitar-*/* %{buildroot}%{_datadir}/%{name}
cat <<EOF > %{buildroot}%{_bindir}/%{name}
#!/bin/sh
pushd %{_datadir}/%{name}
./tuxguitar.sh
popd
EOF
chmod a+x %{buildroot}%{_bindir}/%{name}

# 2. The icons
for s in 16 24 32 48 64 128 256; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
	convert -geometry ${s}x${s} %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/%{name}.png
done

# 3. Our .desktop file
mkdir %{buildroot}%{_datadir}/applications
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop

# 4. Remove docs: we pick them with our macro
rm -rf %{buildroot}%{_datadir}/doc

# 5. Register as an application to be visible in the software center - Stolen from Fedora
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p %{buildroot}%{_datadir}/metainfo
cat > %{buildroot}%{_datadir}/metainfo/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<!--
BugReportURL: https://sourceforge.net/p/tuxguitar/support-requests/8/
SentUpstream: 2014-09-22
-->
<application>
  <id type="desktop">tuxguitar.desktop</id>
  <metadata_license>CC0-1.0</metadata_license>
  <summary>A multitrack tablature editor and player</summary>
  <description>
  <p>
    Tuxguitar is a multitrack tablature editor and player.
    It provides the following features:
  </p>
  <ul>
    <li>Tablature editor</li>
    <li>Score Viewer</li>
    <li>Multitrack display</li>
    <li>Autoscroll while playing</li>
    <li>Note duration management</li>
    <li>Various effects (bend, slide, vibrato, hammer-on/pull-off)</li>
    <li>Support for triplets (5,6,7,9,10,11,12)</li>
    <li>Repeat open and close</li>
    <li>Time signature management</li>
    <li>Tempo management</li>
    <li>Imports and exports gp3,gp4 and gp5 files</li>
  </ul>
  </description>
  <url type="homepage">http://www.tuxguitar.com.ar/</url>
  <screenshots>
    <screenshot type="default">http://www.tuxguitar.com.ar/rd.php/gallery/show_picture.do?galid=1&amp;picid=47</screenshot>
    <screenshot>http://www.tuxguitar.com.ar/rd.php/gallery/show_picture.do?galid=1&amp;picid=46</screenshot>
  </screenshots>
</application>
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11124 |21cr|tuxkart-0.4.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tuxedo T. Penguin stars in Tuxkart
Name:		tuxkart
Version:	0.4.0
Release:	15
License:	GPLv2
Group:		Games/Arcade
Source:		%{name}-%{version}.tar.bz2
Source1:	%{name}-mdkimgs.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		%{name}-remove-O6.patch
Patch1:		%{name}-gownsbow-drv.patch
Patch2:		tuxkart-0.4.0-link.patch
URL:		http://tuxkart.sourceforge.net/
BuildRequires:	pkgconfig(x11)
BuildRequires:	mesaglu-devel
BuildRequires:	plib-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
This is another game that stars your Favorite Hero: Tux, the Linux Penguin.

%prep
%setup -q -D -a 1
%patch0 -p0
%patch1 -p0
%patch2 -p0

%build
autoreconf -fi
%configure --bindir=%{_gamesbindir}
%make

%install
rm -rf $RPM_BUILD_ROOT
%{makeinstall_std}

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Name=Tuxkart
Comment=Karting with tux
Icon=%{name}
Categories=Game;ArcadeGame;
EOF

install -m644 %{SOURCE11} -D $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%{update_menus}
%endif
 
%if %mdkversion < 200900
%postun
%{clean_menus} 
%endif

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(755,root,root,755)
%{_gamesbindir}/%{name}
%defattr(644,root,root,755)
%{_gamesdatadir}/%{name}
%{_datadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop
%doc README CHANGES ChangeLog NEWS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11125 |21cr|tuxpaint-0.9.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple and fun paint program for kids
Name:		tuxpaint
Version:	0.9.28
Release:	1
# Newer than 9.0 cvs build:
Epoch:		1
License:	GPLv2+
Group:		Graphics
Url:		https://www.newbreedsoftware.com/tuxpaint/
Source0:	https://sourceforge.net/projects/tuxpaint/files/tuxpaint/%{version}/%{name}-%{version}-sdl2.tar.gz
Patch0:		tuxpaint-0.9.21-makej.patch
Patch1:		tuxpaint-upd_desktop.patch
Patch2:		tuxpaint-0.9.27-fix-python2-shebangs.patch
Patch3:		tuxpaint-0.9.27-fix-env-shebangs.patch
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
BuildRequires:	xdg-utils
BuildRequires:	gettext
BuildRequires:	gperf
BuildRequires:	libpaper-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(imagequant)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_gfx)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_Pango)
BuildRequires:	pkgconfig(SDL2_ttf)
# For printing
Requires:	netpbm
Recommends:	tuxpaint-config
Recommends:	tuxpaint-stamps

%description
Tux Paint is a simple paint program gear towards young children. It provides
a simple but entertaining interface, allows drawing with brushes, lines,
shapes, and 'stamps,' and has a 'magic' tool, for special effects. Loading
and saving is done via a graphical interface, and the underlying environment's
file-system isn't exposed (much like programs on PDAs).

%files -f %{name}.lang
%doc %{_docdir}/%{name}-%{version}
%dir %{_sysconfdir}/tuxpaint
%config(noreplace) %{_sysconfdir}/tuxpaint/tuxpaint.conf
%{_bindir}/%{name}
%{_bindir}/%{name}-import
%{_sysconfdir}/bash_completion.d/%{name}-completion.bash
%{_datadir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*png
%{_datadir}/pixmaps/%{name}.xpm
%{_miconsdir}/*.png
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-import.1*

#----------------------------------------------------------------------------

%package devel
Summary:	Development libraries for %{name}
Group:		Development/Other

%description devel
%{name} development headers and libraries.

%files devel
%doc %{_datadir}/doc/%{name}-%{version}/%{name}-dev
%{_bindir}/tp-magic-config
%{_includedir}/%{name}/*.h
%{_mandir}/man1/tp-magic-config.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-sdl2

# Fix unreadable files
find . -perm 0600 -exec chmod 0644 '{}' \;

sed -i -e '/\/gnome\/apps\/Graphics/d' Makefile
find docs -type f -exec perl -pi -e 's/\r\n/\n/' {} \;
find docs -type f -perm /100 -exec chmod a-x {} \;


%build
make PREFIX=/usr MAGIC_PREFIX=%{_libdir}/%{name}/plugins tp-magic-config
make OPTFLAGS="%{optflags}" PREFIX=%{_prefix} LIBDIR=%{_libdir} MAGIC_PREFIX=%{_libdir}/%{name}/plugins


%install
make install PKG_ROOT="%{buildroot}" \
	    PREFIX="%{_usr}" X11_ICON_PREFIX="%{buildroot}%{_datadir}/pixmaps" \
	    LIBDIR=%{_libdir} KDE_ICON_PREFIX=%{_iconsdir} MAGIC_PREFIX=%{buildroot}%{_libdir}/%{name}/plugins


mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
	--vendor="" \
	--dir %{buildroot}%{_datadir}/applications \
	--remove-category="Art" \
	src/%{name}.desktop

install -m644 data/images/icon16x16.png -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 data/images/icon32x32.png -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 data/images/icon48x48.png -D %{buildroot}%{_liconsdir}/%{name}.png

# Fix perms:
find %{buildroot} -type d|xargs chmod 0755
chmod -R go+r docs/
chmod +x %{buildroot}%{_datadir}/%{name}/fonts/locale/zh_tw_docs/maketuxfont.py
chmod +x %{buildroot}%{_datadir}/%{name}/fonts/locale/zh_tw_docs/tuxpaintsubset.pe

# Remove useless installed things 
rm -R %{buildroot}%{_datadir}/%{name}/images/icon32x32.xpm
rm -rf %{buildroot}%{_datadir}/%{name}/starters/.thumbs
rm -rf %{buildroot}%{_datadir}/%{name}/templates/.thumbs

# Drop unrecognized locale
rm -rf %{buildroot}%{_datadir}/locale/son/

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11126 |21cr|tuxpaint-config-0.0.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	Pictures for use with the paint program Tuxpaint
Name:		tuxpaint-config
Version:	0.0.19
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://sourceforge.net/projects/tuxpaint
Source0:		https://downloads.sourceforge.net/project/tuxpaint/%{name}/%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:	tuxpaint-config-0.0.18-use-OPTFLAGS-for-our-compile-flags.patch
BuildRequires:	desktop-file-utils
BuildRequires:	fltk-devel
BuildRequires:	libpaper-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libunibreak)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(xext)
Requires:	tuxpaint
ExclusiveArch:	x86_64

%description
Tux Paint Config is a graphical configuration tool for "Tux Paint." It
provides a point-and-click interface that allows parents and teachers to alter
Tux Paint's behavior -- disable sound effects, run in full-screen mode, etc. -
without needing to manipulate a text-based configuration file.

%files -f %{name}.lang
%doc %{_docdir}/%{name}/*
%{_bindir}/%{name}
%{_datadir}/%{name}/images/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_includedir}/X11/pixmaps/%{name}.xpm
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%setup_compile_flags
make PREFIX=%{_prefix} OPTFLAGS="%{optflags}"


%install
%makeinstall_std PREFIX=%{_prefix} X11_ICON_PREFIX="%{_includedir}/X11/pixmaps/"

# Install provided icons...
install -m644 data/images/icon16x16.png -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 data/images/icon32x32.png -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 data/images/icon48x48.png -D %{buildroot}%{_liconsdir}/%{name}.png
# ... and .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install	--vendor="" \
			--dir %{buildroot}%{_datadir}/applications \
			--remove-category="Settings" \
			--add-category="Education" \
			src/tuxpaint-config.desktop

%if 0
mkdir -p %{buildroot} %{buildroot}%{_bindir}
make install BUILDPREFIX="%{buildroot}" PKG_ROOT="%{buildroot}" PREFIX="%{buildroot}%{_usr}" X11_ICON_PREFIX="%{buildroot}%{_includedir}/X11/pixmaps/" LIBDIR="%{buildroot}%{_libdir}"

%endif

# Fix perms
chmod -R go+r docs/
chmod -R go=u-w %{buildroot}/*
chmod -x %{buildroot}%{_docdir}/%{name}/html/README.html
chmod -x %{buildroot}%{_docdir}/%{name}/*.txt

# Drop unrecognized locale
rm -rf %{buildroot}%{_datadir}/locale/son/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11127 |21cr|tuxpaint-stamps-2022.06.04-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|tr '.' '-')

Summary:	Pictures for use with the paint program Tuxpaint
Name:		tuxpaint-stamps
Version:	2022.06.04
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://www.newbreedsoftware.com/tuxpaint/
Source0:	https://sourceforge.net/projects/tuxpaint/files/%{name}/%{url_ver}/%{name}-%{version}.tar.gz
Patch0:		%{name}-2014.08.23-mixed-rules.patch
BuildArch:	noarch
Requires:	tuxpaint

%description
Tux Paint is a simple paint program gear towards young children. It provides a
simple but entertaining interface, allows drawing with brushes, lines, shapes
and 'stamps,' and has a 'magic'  tool, for special effects. Loading and saving
is done via a  graphical interface, and the underlying environment's
file-system isn't exposed (much like programs on PDAs).
This packages contains a lot of extra pictures (stamps) for tuxpaint.

%files
%doc docs/*
%{_datadir}/tuxpaint/*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
# Nothing to do


%install
make DATA_PREFIX=%{buildroot}%{_datadir}/tuxpaint/ install-all

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11128 |21cr|tuxpuck-0.8.2-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clone of ShufflePuck Cafe historical game
Name:		tuxpuck
Version:	0.8.2
Release:	24
Source0:	%{name}-%{version}.tar.bz2
Patch0: tuxpuck-0.8.2-cxx.patch  
Patch1: tuxpuck-0.8.2-png15.patch
URL:		http://altruistic.lbl.gov/mirrors/ubuntu/pool/universe/t/tuxpuck/
License:	GPLv2
Group:		Games/Arcade
BuildRequires:	pkgconfig(sdl) 
BuildRequires:	pkgconfig(libpng) 
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(freetype2)

%description
Anyone remember "Shufflepuck Cafe" for the Amiga/AtariST ?

%prep
%setup -q
%patch0 -p0
%patch1 -p0

sed -i 's|usr/man|usr/share/man|' Makefile
sed -i -e 's/-Werror//' \
       -e '/^CC/d' \
       Makefile \
       utils/Makefile \
       data/Makefile
       
%build
perl -pi -e 's/-Werror//' Makefile utils/Makefile
perl -pi -e 's/`sdl-config --cflags`/`sdl-config --cflags` `freetype-config --cflags`/' utils/Makefile
CFLAGS="$RPM_OPT_FLAGS" CXXFLAGS="$RPM_OPT_FLAGS -lpng" make

%install
install -m755 %{name} -D $RPM_BUILD_ROOT%{_gamesbindir}/%{name}
install -m755 man/tuxpuck.6.gz -D $RPM_BUILD_ROOT%{_mandir}/man1/tuxpuck.6.gz

install -m 755 -d $RPM_BUILD_ROOT%{_datadir}/applications/
cat > $RPM_BUILD_ROOT%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Tuxpuck
Comment=Clone of ShufflePuck Cafee
Exec=%{_gamesbindir}/%name
Icon=arcade_section
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Arcade;Game;ArcadeGame;
EOF




%files
%doc COPYING 
%{_gamesbindir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11129 |21cr|tvbrowser-4.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Digital TV guide
Name:		tvbrowser
Version:	4.2.4
Release:	1
License:	GPLv3+
Group:		Video
Url:		https://tv-browser.org
Source0:	https://downloads.sourceforge.net/project/tvbrowser/TV-Browser%20Releases%20%28Java%206%20and%20higher%29/%{version}/%{name}_%{version}_bin.tar.gz
Patch0:		tvbrowser-4.2.4-fix-launcher.patch
BuildRequires:	desktop-file-utils
BuildRequires:	dos2unix
BuildRequires:	java-openjdk >= 11.0.0
Requires:	java-openjdk >= 11.0.0
BuildArch:		noarch

%description
TV-Browser is Plugin based digital TV guide written in Java. Plugins can be
installed with the download function of TV-Browser.

%files
%doc COPYRIGHT.txt LICENSE.txt *.url
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix EOL
dos2unix LICENSE.txt *.url


%build
# Pre-built java archive: nothing to do


%install
# Install the source provided script launcher and .desktop file
install -D -p -m 755 %{name}.sh %{buildroot}%{_bindir}/%{name}
install -D -p -m 644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-edit --set-icon="%{name}" \
							--set-key="Exec" --set-value="%{name} %u" \
							%{buildroot}%{_datadir}/applications/%{name}.desktop 

# Install the main .jar file
install -D -p -m 644 %{name}.jar %{buildroot}%{_datadir}/%{name}/%{name}.jar

# Install all the support files
find hyphen icons imgs infothemes lib personas plugins themepacks -depth -print | cpio -p -d -m %{buildroot}%{_datadir}/%{name}

# Install icons
for size in 16 32 48 128; do
    (
	  install -d %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/
	  cd %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/
	  ln -s ../../../../tvbrowser/imgs/tvbrowser${size}.png %{name}.png
    )
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11130 |21cr|tvconnector-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		tvconnector
Version:	0.4
Release:	1
Summary:	Connecting an additional display (TV)
Group:		Video
License:	GPLv3
URL:		https://github.com/AKotov-dev/TVConnector
Source0:	https://github.com/AKotov-dev/TVConnector/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	tvconnector.png
Source3:	tvconnector.desktop
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	xrandr
Requires:	gtk2

%description
Connecting an additional display (TV)

%files
%doc ../README.md
%license ../LICENSE
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------
%prep
%setup -n TVConnector-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp %{name} %{buildroot}%{_datadir}/%{name}
cp getprimary.sh %{buildroot}%{_datadir}/%{name}
cp -r ico  %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11131 |21cr|tv-fonts-1.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fonts for TV programs (fbtv, motv, ttv, xawtv)
Name:		tv-fonts
Version:	1.1
Release:	21
Group:		Video
License:	GPLv2+
Url:		http://bytesex.org/xawtv
Source0:	%{name}-%{version}.tar.bz2
Patch0:		tv-fonts-Makefile.patch
BuildRequires:	bdftopcf
BuildRequires:	mkfontdir
BuildRequires:	mkfontscale
Requires:	mkfontscale
Requires:	mkfontdir
Requires(post,postun):	mkfontdir
BuildArch:	noarch

%description
Tv-fonts is a set of fonts, mainly used by xawtv.

%files
%doc README
%{_datadir}/fonts/misc

%post
cd %{_datadir}/fonts/misc
%{_prefix}/bin/mkfontdir
if [ -f /var/lock/subsys/xfs ]; then
    service xfs restart || true
fi
test -n "$DISPLAY" && xset fp rehash || true

%postun
if [ "$1" = "0" ]; then
    cd %{_datadir}/fonts/misc
    %{_prefix}/bin/mkfontdir
    if [ -f /var/lock/subsys/xfs ]; then
	service xfs restart || true
    fi
    test -n "$DISPLAY" && xset fp rehash || true
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# to prevent make doing some xset stuff :
# Geoff -- only unset if DISPLAY is present or it will return 1 and
# build will barf.
[ -n "$DISPLAY" ] && unset DISPLAY
%make

%install
mkdir -p %{buildroot}%{_datadir}/fonts/misc/
install *.gz %{buildroot}%{_datadir}/fonts/misc/

cat <<EOF >> README

Tv-fonts is a set of fonts, mainly used by xawtv.

They used to be bundled with xawtv but starting with version 3.75,
xawtv does not come with the fonts bundled any more. 

So come tv-fonts.

This package is required by xawtv-common
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11132 |21cr|tv_grab_nl_py-2.2.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	tvgrabnlpy

Summary:	XMLTV compatible grabber for Dutch TV
Name:		tv_grab_nl_py
Version:	2.2.21
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://github.com/tvgrabbers/tvgrabnlpy
Source0:	https://github.com/tvgrabbers/tvgrabnlpy/archive/%{oname}-stable-%{version}.tar.gz
Patch0:		%{oname}-2.2.21-fix-tvheadend-launcher.patch
BuildArch:	noarch
Requires:	python >= 2.7.9
# Required by the helper scripts
Recommends:	mythtv
Recommends:	tvheadend

%description
tv_grab_nl_py is a XMLTV-compatible grabber for Dutch television which uses
TVGids.nl (and many other sites) as source.

%files
%doc LICENSE README.md
%{_bindir}/tv_grab_nl.py
%{_bindir}/tv_grab_nl
%{_bindir}/*.sh

#-----------------------------------------------------------------------------


%prep
%setup -qn %{oname}-stable-%{version}
%apply_patches


%build
# Nothing to do


%install
# Create bindir and install the main python script
install -D -m 0755 tv_grab_nl.py %{buildroot}%{_bindir}/tv_grab_nl.py
# Install script helper for use with tvheadend...
install -m 0755 tvheadend/tv_grab_nl %{buildroot}%{_bindir}
#... and with mythtv
install -m 0755 mythtv/grab_epg.sh %{buildroot}%{_bindir}
install -m 0755 mythtv/update_epg.sh %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11133 |21cr|tvtime-1.0.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	High quality television application
Name:		tvtime
Version:	1.0.11
Release:	2
Group:		Video
License:	GPLv2+ and LGPLv2+
Url:		https://linuxtv.org
Source0:	https://linuxtv.org/downloads/tvtime/%{name}-%{version}.tar.gz
Source1:	tvtime_ru.gmo.tar.gz
Patch0:		tvtime-1.0.10-honor-cflags.patch
Patch1:		tvtime-1.0.6-desktop.patch
Patch4:		0004-Fix-warning-implicit-declaration-of-function-minor-m.patch
Patch5:		tvtime-force-gcc-aarch64.patch
BuildRequires:	desktop-file-utils
BuildRequires:	stdc++-static-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xxf86vm)

%description
Tvtime is a high quality television application for use with video capture
cards. It processes the input from a capture card and displays it on a
computer monitor or projector. Unlike other television applications, Tvtime
focuses on high visual quality making it ideal for videophiles.

Tvtime supports:

 - Deinterlaced output at full interlaced rate of 59.94 frames per second for
   NTSC source, or 50 frames per second for PAL sources. This gives smoothness
   of motion and high visual quality.

 - Multiple deinterlacing algorithms for finding the optimal mode for your
   video content and available processor speed.

 - 16:9 aspect ratio mode for the highest available resolution when processing
   input from an external DVD player or digital satellite receiver.

 - A super-slick on-screen-display for the complete television experience,
   with a featureful menu system.

 - 2-3 Pulldown detection for optimal quality viewing of film content from
   NTSC sources.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%doc data/COPYING.FreeMonoBold data/COPYING.tvtimeSansBold docs/html
%{_bindir}/*
%{_mandir}/man?/*
%lang(de) %{_mandir}/de/man?/*
%lang(es) %{_mandir}/es/man?/*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/tvtime.xml
%{_datadir}/%{name}
%{_datadir}/appdata/tvtime.appdata.xml
# freedesktop stuff
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/*/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%configure
%make

%install
%makeinstall ROOT=%{buildroot}

desktop-file-install --vendor="" \
    --remove-category="Application" \
    --add-category="TV" \
    --add-category="Video" \
    --add-category="X-MandrivaLinux-CrossDesktop" \
    --dir %{buildroot}%{_datadir}/applications \
    %{buildroot}%{_datadir}/applications/*

install -d %{buildroot}%{_docdir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11134 |21cr|twiki-6.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude perl\\((.*)\\)
%global __requires_exclude perl\\(TWiki(.*)\\)|perl\\(Assert\\)|perl\\(Monitor\\)|perl\\(further\\)

Summary:	The Open Source Enterprise Wiki and Web 2.0 Application Platform
Name:		twiki
Version:	6.1.0
Release:	2
License:	GPL
Group:		System/Servers
Url:		https://www.twiki.org
Source0:	https://sourceforge.net/projects/twiki/files/TWiki%20for%20all%20Platforms/TWiki-%{version}/TWiki-%{version}.tgz
Source1:	twiki.rpmlintrc
Requires:	apache
Requires:	rcs
BuildArch:	noarch

%description
Welcome to TWiki, a flexible, powerful, and easy to use enterprise wiki,
enterprise collaboration platform, and knowledge management system. It is a
Structured Wiki, typically used to run a project development space, a document
management system, a knowledge base, or any other groupware tool, on an
intranet or on the Internet. Web content can be created collaboratively by
using just a browser. Users without programming skills can create web
applications. Developers can extend the functionality of TWiki with Plugins.
TWiki fosters information flow within an organization, lets distributed teams
work together seamlessly and productively, and eliminates the one-webmaster
syndrome of outdated intranet content.

%files
%doc AUTHORS COPYING COPYRIGHT LICENSE
%{_datadir}/twiki
%attr(-,apache,apache) %{_localstatedir}/lib/twiki
%config(noreplace) %{_webappconfdir}/%{name}.conf
%dir %{_sysconfdir}/%{name}
%config(noreplace) %attr(-,apache,apache) %{_sysconfdir}/%{name}/LocalSite.cfg
%config(noreplace) %attr(-,root,root) %{_sysconfdir}/%{name}/LocalLib.cfg

#---------------------------------------------------------------------------

%prep
%setup -q -n %{name}
chmod -R u+w .
#chmod 644 lib/TWiki/Plugins/TWikiNetSkinPlugin.pm

%build

%install

# non-writable content
install -d -m 755 %{buildroot}%{_datadir}/%{name}/bin

for file in attach configure changes edit login logon manage oops preview \
	rdiff rdiffauth register rename resetpasswd rest save search statistics \
	upload view viewauth viewfile; do
	install -m 755 bin/$file %{buildroot}%{_datadir}/%{name}/bin
done

cp -pr bin/logos %{buildroot}%{_datadir}/%{name}/bin/

for dir in lib locale templates tools; do
	cp -pr $dir %{buildroot}%{_datadir}/%{name}
done

# writable content
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
for dir in data pub working; do
	cp -pr $dir %{buildroot}%{_localstatedir}/lib/%{name}
done

# configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 bin/LocalLib.cfg.txt \
	%{buildroot}%{_sysconfdir}/%{name}/LocalLib.cfg
pushd %{buildroot}%{_datadir}/%{name}/bin
ln -sf ../../../..%{_sysconfdir}/%{name}/LocalLib.cfg .
popd
perl -pi \
	-e 's|\$twikiLibPath =.*|\$twikiLibPath = "%{_datadir}/%{name}/lib";|' \
	%{buildroot}%{_sysconfdir}/twiki/LocalLib.cfg
cat > %{buildroot}%{_sysconfdir}/%{name}/LocalSite.cfg <<'EOF'
# **URL M**
#  This is the root of all TWiki URLs e.g. http://myhost.com:123.
$TWiki::cfg{DefaultUrlHost} = 'http://localhost';

# This is the 'cgi-bin' part of URLs used to access the TWiki bin
# directory
$TWiki::cfg{ScriptUrlPath} = '/twiki/bin';

# Attachments URL path e.g. /twiki/pub
$TWiki::cfg{PubUrlPath} = '/twiki/pub';

# Template directory e.g. /usr/local/twiki/templates
$TWiki::cfg{TemplateDir} = '/usr/share/twiki/templates';

# Translation files directory (file path, not URL) e.g. /usr/local/twiki/locales
$TWiki::cfg{LocalesDir} = '/usr/share/twiki/locales';

# Topic files store (file path, not URL) e.g. /usr/local/twiki/data
$TWiki::cfg{DataDir} = '/var/lib/twiki/data';

# Attachments store (file path, not URL), must match /twiki/pub e.g.
# /usr/local/twiki/pub
$TWiki::cfg{PubDir} = '/var/lib/twiki/pub';

# Directory where TWiki stores files that are required for the management
# of TWiki, but are not normally required to be browsed from the web.
$TWiki::cfg{WorkingDir} = '/var/lib/twiki/working';
EOF
pushd %{buildroot}%{_datadir}/%{name}/lib
ln -sf ../../../..%{_sysconfdir}/%{name}/LocalSite.cfg .
popd

# cleanup
rm -rf %{buildroot}%{_datadir}/%{name}/lib/CPAN
rm -f %{buildroot}%{_datadir}/%{name}/www/bin/.htaccess.txt
rm -f %{buildroot}%{_datadir}/%{name}/www/bin/configure
find %{buildroot}%{_localstatedir}/lib/%{name} -name .htaccess -o -name README \
	| xargs rm -f
find %{buildroot}%{_localstatedir}/lib/%{name} -name '*.txt,v' -exec rm -f {} \;

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF
# Twiki Apache configuration
Alias /twiki/pub %{_localstatedir}/lib/%{name}/pub
Alias /twiki %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
	Require all granted
	DirectoryIndex bin/view
</Directory>

<Directory %{_datadir}/%{name}/bin>
	Options +ExecCGI
	SetHandler cgi-script
</Directory>

<Directory %{_datadir}/%{name}/lib>
	Require all denied
</Directory>

<Directory %{_datadir}/%{name}/locales>
	Require all denied
</Directory>

<Directory %{_datadir}/%{name}/templates>
	Require all denied
</Directory>

<Directory %{_datadir}/%{name}/tools>
	Require all denied
</Directory>

<Directory %{_localstatedir}/lib/%{name}/pub>
	Require all granted
</Directory>

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11135 |21cr|twiki-plugin-ldapcontrib-2.99.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __provides_exclude perl\\((.*)\\)
%global __requires_exclude perl\\(TWiki(.*)\\)|perl\\(Assert\\)
%else
%define _provides_exceptions perl(.*)
%define _requires_exceptions perl(\\(TWiki.*\\|Assert\\))
%endif

Name:		twiki-plugin-ldapcontrib
Version:	2.99.7
Release:	6
Summary:	LDAP services for TWiki
License:	GPL
Group:		System/Servers
URL:		http://twiki.org/cgi-bin/view/Plugins/LdapContrib
Source:		http://twiki.org/p/pub/Plugins/LdapContribDev/LdapContrib.zip
Requires:	twiki
BuildArch:	noarch

%description
This package offers basic LDAP services for TWiki and offers authentication of
TWiki users by binding to an LDAP server as well as incorporate LDAP user
groups into TWiki's access control. Note, however that you need at least
TWiki-4.0.3 for that. Optionally, if you need an interface to query your LDAP
directory and display the results in a TWiki topic install the
TWiki:Plugins/LdapNgPlugin which will make use of the LdapContrib services.
This work is a rewrite of the TWiki:Plugins/LdapPlugin by
TWiki:Main/GerardHickey while bringing authentication, user management and
other LDAP applications onto a common base.

%prep
%setup -q -c

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/twiki/lib/TWiki
cp -r lib/TWiki/* %{buildroot}%{_datadir}/twiki/lib/TWiki

install -d -m 755 %{buildroot}%{_localstatedir}/lib/twiki/data/TWiki
install -m 644 data/TWiki/LdapContrib.txt \
    %{buildroot}%{_localstatedir}/lib/twiki/data/TWiki

install -d -m 755 %{buildroot}%{_localstatedir}/lib/twiki/pub/TWiki
cp -r pub/TWiki/LdapContrib %{buildroot}%{_localstatedir}/lib/twiki/pub/TWiki

%files
%{_datadir}/twiki/lib/TWiki/*
%attr(-,apache,apache) %{_localstatedir}/lib/twiki/data/TWiki/*
%attr(-,apache,apache) %{_localstatedir}/lib/twiki/pub/TWiki/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11136 |21cr|twill-0.9-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		twill
Summary:	Simple command line language for web browsing
Version:	0.9
Release:	8
Source0:	http://darcs.idyll.org/~t/projects/%{name}-%{version}.tar.gz
URL:		http://twill.idyll.org
Group:		Networking/WWW
License:	MIT
BuildArch:	noarch
BuildRequires:	python2
BuildRequires:	pkgconfig(python2)
BuildRequires:	python2-setuptools
Requires:	python2

%description
twill is a simple language that allows users to browse the Web from a
command-line interface. With twill, you can navigate through Web sites
that use forms, cookies, and most standard Web features.

%prep
%setup -q

%build
%__python2 setup.py build

%install
%__python2 setup.py install --root=%{buildroot}

%files
%defattr(-,root,root)
%doc README.html README.txt doc/*.*
%{_bindir}/twill-fork
%{_bindir}/twill-sh
%{py2_puresitedir}/%{name}-%{version}-py%{py2_ver}.egg-info
%{py2_puresitedir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11137 |21cr|twin-0.6.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define debug_package %{nil}

# this is the tutf major
%define major 0
# tw major
%define twmajor 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A text mode Windows Manager
Name:		twin
Version:	0.6.2
Release:	8
License:	GPLv2
Group:		Terminals
Url:		http://sourceforge.net/projects/twin/
Source0:	http://downloads.sourceforge.net/twin/%{name}-%{version}.tar.bz2
BuildRequires:	bison
BuildRequires:	gpm-devel
BuildRequires:	libggi-devel
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
Requires:	%{libname} = %{EVRD}

%description
Twin is a text-mode windowing environment:
it draws and manages text windows on a text-mode display,
like X11 does for graphical windows. It has a built-in window manager 
and terminal emulator, and can be used as server for remote clients
in the same style as X11. It can display on Linux console, on X11 
and inside itself.

%files
%{_bindir}/*
%{_sbindir}/*
%{_libdir}/twin/system.*
%{_libdir}/twin/.twenvrc.sh
%{_libdir}/twin/.twinrc
# from libname pkg, these are modules not the twin app
%dir %{_libdir}/twin
%dir %{_libdir}/twin/modules
%{_libdir}/twin/modules/*.so.*
%dir %{_libdir}/twin/modules/HW
%{_libdir}/twin/modules/HW/*.so.*
%{_mandir}/man1/%{name}.*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries from twin
Group:		System/Libraries

%description -n %{libname}
Twin is a text-mode windowing environment.
This package contain shared libraries to run twin.

%files -n %{libname}
%{_libdir}/libTutf.so.%{major}*
%{_libdir}/libTw.so.%{twmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devellopment files from twin
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Twin is a text-mode windowing environment. You need this package to build
twin applications.

%files -n %{devname}
%dir %{_includedir}/Tw
%{_includedir}/Tw/*
%dir %{_includedir}/Tutf
%{_includedir}/Tutf/*
%{_libdir}/*.so
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%define _disable_ld_no_undefined 1
%configure \
	--enable--shlibs=yes \
	--enable--modules=yes \
	--enable--unicode=yes \
	--enable--asm=yes

# 0.4.5 don't like %make
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11138 |21cr|twinkle-1.10.3-0.git15ece1.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 15ece115c4bfef3e47f3f9f4bd316d573fae18aa
%global commit_short %(echo %{commit} | head -c6)

Summary:	Voice Over IP phone using SIP for QT
Name:		twinkle
Version:	1.10.3
Release:	0.git%{commit_short}.2
License:	GPLv2+
Group:		Communications
Url:		http://twinkle.dolezel.info
Source0:	https://github.com/LubosD/%{name}/archive/%{commit}/%{name}-%{commit_short}.tar.gz
BuildRequires:	bison
BuildRequires:	bcg729-devel
BuildRequires:	cmake >= 2.6.0
BuildRequires:	flex
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel
BuildRequires:	gsm-devel
BuildRequires:	magic-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(commoncpp)
BuildRequires:	pkgconfig(libccrtp) >= 1.5.0
BuildRequires:	pkgconfig(libilbc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzrtpcpp)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(ucommon)
# on i686 and e2k link error
ExclusiveArch:	x86_64 aarch64

%description
Twinkle is a soft phone for your voice over IP communcations using the SIP
protocol. You can use it for direct IP phone to IP phone communication or in
a network using a SIP proxy to route your calls.

%files
%license COPYING
%doc AUTHORS NEWS README.md THANKS
%{_bindir}/%{name}
%{_bindir}/%{name}-uri-handler
%{_bindir}/%{name}-console
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}


%build
%cmake_qt5 \
	-DWITH_QT5:BOOL=ON \
	-DWITH_ZRTP:BOOL=ON \
	-DWITH_SPEEX:BOOL=ON \
	-DWITH_DIAMONDCARD=Off \
	-DWITH_GSM=On \
	-DWITH_G729=On
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11139 |21cr|twitux-0.69-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           twitux
Version:        0.69
Release:        9
Summary:        Twitter client for the Gnome desktop
Group:          Networking/Instant messaging
License:        GPLv2+
URL:            http://sourceforge.net/projects/twitux/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0:		twitux-0.69-libnotify-0.7.patch
BuildRequires:	libgnome-keyring-devel
BuildRequires:	pkgconfig(dbus-glib-1) >= 0.61
BuildRequires:	libsexy-devel
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	libsoup2.4-devel
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(glib-2.0) >= 2.15.5
BuildRequires:	enchant-devel
BuildRequires:	pkgconfig(libcanberra-gtk) >= 0.4
BuildRequires:	gettext
BuildRequires:	rarian
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(gnome-doc-utils) >= 0.3.2
BuildRequires:	intltool >= 0.35.0

%description
Twitux is a Twitter client for the Gnome desktop.

%prep
%setup -q
%patch0 -p0

%build
%configure --disable-schemas-install
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

%preun
%preun_uninstall_gconf_schemas twitux

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog README TODO
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/twitux.*
%{_sysconfdir}/gconf/schemas/%{name}.schemas

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11140 |21cr|twm-1.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tab Window Manager for the X Window System
Name:		twm
Version:	1.0.12
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org/releases/individual/app
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
Source1:	system.twmrc
Source2:	twm.xpm
Source3:	twm.xpm.large
Source4:	twm.xpm.mini
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xt)
Requires:	desktop-common-data
Requires:	x11-font-misc

%description
Twm is a window manager for the X Window System. It provides titlebars, shaped
windows, several forms of icon management, user-defined macro functions,
click-to-type and pointer-driven keyboard focus, and user-specified key and
pointer button bindings.

%files
%doc ChangeLog README.md
%license COPYING
%config(noreplace) %{_sysconfdir}/X11/%{name}
%{_bindir}/%{name}
%{_datadir}/icons/%{name}.xpm
%{_datadir}/icons/*/%{name}.xpm
%{_datadir}/X11/%{name}/system.%{name}rc
%{_mandir}/man1/%{name}.*

#------------------------------------------------------------------

%prep
%setup -q

%build

CFLAGS="$RPM_OPT_FLAGS -DSYSTEM_INIT_FILE='\"%{_sysconfdir}/X11/%{name}/system.%{name}rc\"'" \
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

mkdir -p %{buildroot}/%{_sysconfdir}/X11/%{name}
install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/X11/%{name}/system.%{name}rc-menu

#install icons
mkdir -p %{buildroot}%{_datadir}/icons/large
mkdir -p %{buildroot}%{_datadir}/icons/mini
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/%{name}.xpm
install -m0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/large/%{name}.xpm
install -m0644 %{SOURCE4} %{buildroot}%{_datadir}/icons/mini/%{name}.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11141 |21cr|txt2regex-0.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program to generate regex
Name:		txt2regex
Version:	0.8
Release:	9
Group:		File tools
License:	GPLv2
URL:            http://www.aurelio.net/soft/txt2regex/
Source0:        http://txt2regex.sourceforge.net/%{name}-%{version}.tgz
BuildArch:	noarch
Requires:	bash

%description
^txt2regex$ is a Regular Expression "wizard", all written 
with bash2 builtins, that converts human sentences to 
RegExs. with a simple interface, you just answer to 
questions and build your own RegEx for a large variety of 
programs, like awk, ed, emacs, grep, perl, php, procmail, 
python, sed and vim. there are more than 20 supported 
programs. it's bash so download and run, no compilation needed.

%prep 

%setup -q

%build 

%make DESTDIR=%{buildroot}

%install
%makeinstall_std

install -d %{buildroot}%{_mandir}/man1
install -m0644 txt2regex.man %{buildroot}%{_mandir}/man1/%{name}.1

%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root,0755) 
%doc README README.japanese NEWS Changelog TODO
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11142 |21cr|typespeed-0.6.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Type words that are flying by from left to right as fast as you can
Name:		typespeed
Version:	0.6.5
Release:	13
License:	GPLv2+
Group:		Games/Other
URL:		http://tobias.eyedacor.org/typespeed/
Source:		http://tobias.eyedacor.org/typespeed/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	ncurses-devel

%description
Typespeed gives your fingers' cps (total and correct), typoratio and
some points to compare with your friends.

Typespeed's idea is ripped from ztspeed (a dos game made by Zorlim).
Idea of the game should be clear to anyone, just type and type it fast
or be a loser.

%files
%defattr(-,root,root)
%doc doc/README COPYING NEWS TODO BUGS AUTHORS
%config(noreplace) %{_sysconfdir}/typespeedrc
%attr(2755,root,games) %{_bindir}/%{name}
%attr(775,root,games) %{_localstatedir}/lib/games/%{name}.score
%{_datadir}/%{name}
%{_mandir}/man6/%{name}.6*
%{_datadir}/locale/de_DE/LC_MESSAGES/%{name}.mo
%{_datadir}/locale/fr_FR/LC_MESSAGES/%{name}.mo
%{_datadir}/locale/it/LC_MESSAGES/%{name}.mo
%{_datadir}/applications/mandriva-%{name}.desktop

#------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-highscoredir=%{_localstatedir}/lib/games
%make

%install
%makeinstall highscoredir=%{buildroot}%{_localstatedir}/lib/games
rm -f %{buildroot}%{_datadir}/doc/%{name}/README
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Typespeed
Comment=Test your typing speed
Exec=/usr/bin/typespeed
Type=Application
Terminal=true
Categories=X-MandrivaLinux-MoreApplications-Games-Other;Game;Application;
X-Desktop-File-Install-Version=0.9
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11143 |21cr|typetrainer-0.3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
Summary:        Typing skills training utility
Name:           typetrainer
Version:        0.3.1
Release:        5
# generated with python setup.py sdist
# git commit e997d831dbd35a2927d37a03f5e293b4e5ce48ad
Source0:        %{name}-%{version}.tar.gz
Url:            https://github.com/baverman/typetrainer
License:	MIT
Group:		Text tools
BuildRequires: python
BuildRequires: python-setuptools
Requires:       python pygtk2.0

%description
This small utility allows you to grow your typing skills in soft and
non-annoying manner. It tries to behave closely to proprietary VerseQ
application -- adaptive typing tutor which dynamically changes exercises to
help trainee to learn hard places thoroughly.

%prep
%setup -q

%build
python setup.py build

%install
python setup.py install --root=$RPM_BUILD_ROOT

%files
%doc README.rst LICENSE
%_bindir/typetrainer
%{py_sitedir}/%{name}/
%{py_sitedir}/%{name}-%{version}-py%{py_ver}.egg-info


%changelog
* Sat Jan 29 2011 Eugeni Dodonov <eugeni@mandriva.com> 0.3.1-1mdv2011.0
+ Revision: 633933
- Imported to cooker
- Created package structure for typetrainer.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11144 |21cr|u3-tool-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           u3-tool
Summary:        Tool for controlling the special features of a "U3 smart drive" USB Flash disk
Version:        0.3
Release:	7
Source0:        http://downloads.sourceforge.net/project/u3-tool/%{name}/%{version}/%{name}-%{version}.tar.gz
# gw fix for off-by-one crash
# https://sourceforge.net/tracker/?func=detail&aid=3010918&group_id=208198&atid=1004732
Patch: u3-print-size.patch
URL:            http://u3-tool.sourceforge.net/
Group:          System/Configuration/Hardware
License:        GPLv2+ 

%description
Tool for controlling USB flash devices that confirm to the U3
specifications. This program can control the following features:

* Replacing of CD image
* Changing of virtual CD allocated size and completely removing it
* Enabling and disabling Security
* Unlocking and changing password of secured U3 device
* Obtaining various device information

WARNING: This Software is still alpha. Since the commands for
controlling U3 devices aren't publicly available, we don't exactly
know what we are doing. Although the application has been tested on a
Sandisk Cruzer micro and a Verbatim Store 'N Go, it is not said that
it won't stop other devices from working. The author is not
responsible for any damage to your device.

%prep 
%setup -q -a 0 
%patch -p0

%build 
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall

%clean 
rm -rf $RPM_BUILD_ROOT 

%files 
%defattr(-,root,root) 
%doc README NEWS AUTHORS 
%{_sbindir}/u3-tool
%{_mandir}/man1/u3-tool.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11145 |21cr|uade-2.13-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Unix Amiga Delitracker Emulator
Name:		uade
Version:	2.13
Release:	11
License:	GPLv2+
Group:		Sound
Url:		http://zakalwe.fi/uade/
Source0:	http://zakalwe.fi/uade/uade2/%{name}-%{version}.tar.bz2
Patch0:		uade-2.13-new-audacious.patch
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(fuse)
Recommends:	flac
Recommends:	lame
Recommends:	normalize
Recommends:	vorbis-tools

%description
Plays old amiga tunes with UAE emulation and cloned m68k-assembler
Amiga delitracker API. With cloned delitracker API you don't have to
port old players from Amiga, you can re-use old Deliplayers that use
Amiga Delitracker API. Deliplayers are used like on Amiga, they exist
in some directory and you can copy/remove them as you wish. "Installing"
new players is just copying files to your 'players' directory.

%files
%doc AUTHORS ChangeLog
%doc songs
%{_bindir}/uade123
%{_bindir}/uadefs
%{_bindir}/mod2ogg
%{_datadir}/uade2
%{_prefix}/lib/uade2/
%{_libdir}/pkgconfig/uade.pc
%{_mandir}/man1/uade123.1*
%{_mandir}/man1/uadefs.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
find songs -name CVS|xargs rm -rfv
chmod 644 songs/* AUTHORS ChangeLog
chmod 755 songs/

%build
export CFLAGS="%{optflags}"
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--package-prefix=%{buildroot}
%make

%install
make install PACKAGEPREFIX=%{buildroot} BINDIR=%{buildroot}%{_bindir} DATADIR=%{buildroot}%{_datadir}/uade2 AUDACIOUSPLUGINDIR=%{buildroot}%{_libdir}/audacious/Input/
mv %{buildroot}%{_bindir}/mod2ogg2.sh %{buildroot}%{_bindir}/mod2ogg
%if "%{_lib}" != "lib"
mkdir -p %{buildroot}%{_libdir}/pkgconfig
mv %{buildroot}%{_prefix}/lib/pkgconfig/* %{buildroot}%{_libdir}/pkgconfig
rm -rf %{buildroot}%{_prefix}/lib/pkgconfig/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11146 |21cr|ubridge-0.9.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __strip /bin/true
%define debug_package %{nil}

Summary:	Bridge for UDP tunnels, Ethernet, TAP and VMnet interfaces
Name:		ubridge
Version:	0.9.18
Release:	1
License:	GPLv3
Group:		Networking/Other
Url:		https://github.com/GNS3/ubridge
Source:		https://github.com/GNS3/ubridge/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	libpcap-devel

%description
uBridge is a simple application to create user-land bridges between various
technologies. Currently bridging between UDP tunnels, Ethernet and TAP
interfaces is supported. Packet capture is also supported.

%files
%doc LICENSE README.rst
%{_bindir}/%{name}

#------------------------------------------------

%prep
%setup -q

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m4755 %{name} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11147 |21cr|ucarp-1.5.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Common Address Redundancy Protocol (CARP) for Unix
Name:		ucarp
Version:	1.5.2
Release:	13
# See the COPYING file which details everything
License:	MIT and BSD
Group:		System/Servers
Url:		http://www.ucarp.org/
Source0:	http://download.pureftpd.org/pub/ucarp/ucarp-%{version}.tar.bz2
Source1:	ucarp@.service
Source2:	vip-001.conf.example
Source3:	vip-common.conf
Source4:	vip-up
Source5:	vip-down
Source7:	ucarp
Source8:	ucarp.8.sgml.bz2
Patch0:		ucarp-1.5.2-sighup.patch
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	docbook-utils
BuildRequires:	gettext
BuildRequires:	systemd
BuildRequires:	libpcap-devel
Requires(post,preun,postun):	systemd-units

%description
UCARP allows a couple of hosts to share common virtual IP addresses in order
to provide automatic failover. It is a portable userland implementation of the
secure and patent-free Common Address Redundancy Protocol (CARP, OpenBSD's
alternative to the patents-bloated VRRP).

Strong points of the CARP protocol are: very low overhead, cryptographically
signed messages, interoperability between different operating systems and no
need for any dedicated extra network link between redundant hosts.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README
%{_unitdir}/ucarp@.service
%attr(0700,root,root) %dir /etc/ucarp/
%config(noreplace) /etc/ucarp/vip-common.conf
/etc/ucarp/vip-001.conf.example
%config(noreplace) %{_libexecdir}/ucarp/
%{_sbindir}/ucarp
%{_mandir}/man8/ucarp.8*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

bzcat %{SOURCE8} > ucarp.8.sgml

%build
autoreconf -fi
%configure
%make

docbook2man --backend man ucarp.8.sgml > ucarp.8
mv UCARP.8 ucarp.8

%install
%makeinstall_std
%find_lang %{name}

# Install the unit file
install -D -p -m 0755 %{SOURCE1} \
    %{buildroot}%{_unitdir}/ucarp@.service

sed -i 's|/usr/libexec|%{_libexecdir}|' %{buildroot}%{_unitdir}/ucarp@.service

mkdir -p %{buildroot}/etc/ucarp
mkdir -p %{buildroot}%{_libexecdir}/ucarp

# Install the example config files
install -D -p -m 0600 %{SOURCE2} %{SOURCE3} \
    %{buildroot}/etc/ucarp/

# Install helper scripts
install -D -p -m 0700 %{SOURCE4} %{SOURCE5} %{SOURCE7} \
    %{buildroot}%{_libexecdir}/ucarp/

mkdir -p %{buildroot}%{_mandir}/man8/
install -m0644 ucarp.8 %{buildroot}%{_mandir}/man8/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11148 |21cr|ucommon-7.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname ucommon %{major}
%define libusecure %mklibname usecure %{major}
%define libcommoncpp %mklibname commoncpp %{major}
%define devname %mklibname ucommon -d

Summary:	Portable C++ framework for threads and sockets
Name:		ucommon
Version:	7.0.0
Release:	5
License:	LGPLv3+
Group:		Development/C++
Url:		http://www.gnu.org/software/commoncpp
Source0:	ftp://ftp.gnu.org/gnu/commoncpp/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	gnutls-devel

%description
GNU uCommon C++ is a lightweight library to facilitate using C++ design
patterns even for very deeply embedded applications, such as for systems using
uClibc along with POSIX threading support. For this reason, uCommon disables
language features that consume memory or introduce runtime overhead. uCommon
introduces some design patterns from Objective-C, such as reference counted
objects, memory pools, and smart pointers.  uCommon introduces some new
concepts for handling of thread locking and synchronization.

#----------------------------------------------------------------------------

%package bin
Summary:	ucommon system and support applications
Group:		Development/Other

%description bin
This is a collection of command line tools that use various aspects of the
ucommon library.  Some may be needed to prepare files or for development of
applications.

%files bin
%doc AUTHORS README COPYRIGHT NEWS SUPPORT ChangeLog
%{_bindir}/args
%{_bindir}/car
%{_bindir}/scrub*
%{_bindir}/mdsum
%{_bindir}/sockaddr
%{_bindir}/zerofill
%{_bindir}/pdetach
%{_bindir}/keywait
%{_bindir}/urlout
%{_datadir}/ucommon/cmake/*.cmake
%{_mandir}/man1/args.*
%{_mandir}/man1/car.*
%{_mandir}/man1/pdetach.*
%{_mandir}/man1/scrub*.*
%{_mandir}/man1/mdsum.*
%{_mandir}/man1/sockaddr.*
%{_mandir}/man1/zerofill.*
%{_mandir}/man1/keywait.*
%{_mandir}/man1/urlout.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	ucommon library
Group:		System/Libraries

%description -n %{libname}
Runtime library for ucommon.

%files -n %{libname}
%{_libdir}/libucommon.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libusecure}
Summary:	usecure library
Group:		System/Libraries

%description -n %{libusecure}
Runtime library for usecure.

%files -n %{libusecure}
%{_libdir}/libusecure.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcommoncpp}
Summary:	commoncpp library
Group:		System/Libraries

%description -n %{libcommoncpp}
Runtime library for commoncpp.

%files -n %{libcommoncpp}
%{_libdir}/libcommoncpp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for building uCommon applications
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libusecure} = %{EVRD}
Requires:	%{libcommoncpp} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides header and support files needed for building
applications that use the uCommon library and frameworks

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/ucommon/
%{_includedir}/commoncpp/
%{_libdir}/pkgconfig/*.pc
%{_bindir}/ucommon-config
%{_bindir}/commoncpp-config
%{_mandir}/man1/ucommon-config.*
%{_mandir}/man1/commoncpp-config.*

#----------------------------------------------------------------------------

%package doc
Summary:	Generated class documentation for uCommon
Group:		Documentation

%description doc
Generated class documentation for GNU uCommon library from header files, 
html browsable.

%files doc
%doc AUTHORS README COPYRIGHT NEWS SUPPORT ChangeLog
%doc doc/html

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -std=c++14"
# support openssl 1.0, disable it, use gnutls
%cmake -DCRYPTO_OPENSSL=OFF
%make
%make doc

%install
cd build
%make DESTDIR=%{buildroot} INSTALL="install -p" install
chmod 0755 %{buildroot}%{_bindir}/ucommon-config
chmod 0755 %{buildroot}%{_bindir}/commoncpp-config
mkdir -p %{buildroot}/%{_mandir}/man1
install -m644 ../utils/*.1 -D %{buildroot}/%{_mandir}/man1
install -m644 ../*.1 -D %{buildroot}/%{_mandir}/man1
cp -r doc ..

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11149 |21cr|ucon64-2.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Console ROM backup tool
Name:		ucon64
Version:	2.2.2
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://ucon64.sf.net/
Source0:	http://prdownloads.sourceforge.net/ucon64/%{name}-%{version}-src.tar.gz
Source1:	http://prdownloads.sourceforge.net/ucon64/uf-FOX-1.1-src.tgz
Patch0:		uf-FOX-1.1-libfox1.7.patch
Patch1:		uf-FOX-1.1-ptrfix.patch
Patch4:		ucon64-2.0.0-defines.patch
BuildRequires:	pkgconfig(fox17)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(zlib)
# ld will fail with fatal error, it needs static lib only
BuildConflicts:	ieee1284-devel

%description
uCON64 is a console ROM backup tool.

%files
%doc FILE_ID.DIZ VERSION *.html
%{_bindir}/ucon64

#----------------------------------------------------------------------------

%package -n %{name}-gui
Summary:	GUI for Ucon64, a console ROM backup tool
Group:		Emulators
Requires:	%{name}

%description -n %{name}-gui
GUI for Ucon64, a console ROM backup tool

%files -n %{name}-gui
%doc uf-FOX-1.1-src/README.txt uf-FOX-1.1-src/gpl.txt
%{_bindir}/uf

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-src -a 1
%patch0 -p0
%patch1 -p0
%patch4 -p1

#no configure script for the gui :(
perl -pi -e "s/local\///g" uf-FOX-1.1-src/Makefile
LIBFOX_VERSION=1.7
perl -pi -e "s/1\.4/$LIBFOX_VERSION/g" uf-FOX-1.1-src/Makefile

%build
cd src
%configure \
	--enable-libcd64 \
	--with-libusb \
	--enable-ppdev
%make

pushd ../uf-FOX-1.1-src
make
popd

%install
# don't use %%makeinstall here
install -d %{buildroot}%{_bindir}
install -m 755 src/%{name} %{buildroot}%{_bindir}

#install gui
install -m 755 uf-FOX-1.1-src/uf %{buildroot}%{_bindir}
chmod 644 uf-FOX-1.1-src/README.txt
#note : add a icon & menu entry

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11150 |21cr|ucpp-1.3.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	13
%define libname %mklibname ucpp %{major}
%define devname %mklibname ucpp -d 

Summary:	A quick and light preprocessor, but anyway fully compliant to C99
Name:		ucpp
Version:	1.3.4
Release:	8
License:	BSD-3-Clause
Group:		Development/C++
Url:		http://code.google.com/p/ucpp/
Source0:	http://dev.gentooexperimental.org/~scarabeus/%{name}-%{version}.tar.xz

%description
A C preprocessor is a part of a C compiler responsible for macro
replacement, conditional compilation and inclusion of header files.
It is often found as a stand-alone program on Unix systems.

ucpp is such a preprocessor; it is designed to be quick and light,
but anyway fully compliant to the ISO standard 9899:1999, also known
as C99. ucpp can be compiled as a stand-alone program, or linked to
some other code; in the latter case, ucpp will output tokens, one
at a time, on demand, as an integrated lexer.

ucpp operates in two modes:
-- lexer mode: ucpp is linked to some other code and outputs a stream of
tokens (each call to the lex() function will yield one token)
-- non-lexer mode: ucpp preprocesses text and outputs the resulting text
to a file descriptor; if linked to some other code, the cpp() function
must be called repeatedly, otherwise ucpp is a stand-alone binary.

%package -n %{libname}
Summary:	A Mixed Integer Linear Programming (MILP) Solver Library
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}

%package -n %{devname}
Summary:	Files for Developing with ucpp
Group:		Development/C++
Requires:	%{name} = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
Includes and definitions for developing with the ucpp library.

%prep
%setup -q

%build
%ifarch %{e2k}
CFLAGS='%{optflags} -Wno-error=maybe-uninitialized'
%endif
%configure \
	--disable-static

%make

%install
%makeinstall_std

%files
%{_bindir}/*
%{_mandir}/man1/ucpp.1*

%files -n %{libname}
%{_libdir}/libucpp.so.%{major}*

%files -n %{devname}
%{_includedir}/lib%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/lib%{name}*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11151 |21cr|ucs-miscfixed-fonts-0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname ucs-miscfixed
%global fontconf 66-%{fontname}.conf

Name: %{fontname}-fonts
Version: 0.3
Release: 13
License: Public Domain
URL: http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html
Source0: bitmap-fonts-%{version}.tar.bz2
Source1: fixfont-3.5.tar.bz2
Source2: 66-ucs-miscfixed.conf
BuildArch: noarch
Group:   System/Fonts/True type
Summary: Selected set of bitmap fonts
BuildRequires: fontpackages-devel
BuildRequires: bdftopcf
Patch1: readme_cleanup.patch

%description
The usc-fixed-fonts package provides bitmap fonts for
locations such as terminals.

%prep
%setup -q -n bitmap-fonts-%{version} -a1
%patch1 -p1 -b .1-readme_cleanup

%build

%install
make install DESTDIR=%{buildroot}

cd fixfont-3.5

make install DESTDIR=%{buildroot}

mv %{buildroot}/usr/share/fonts/bitmap-fonts %{buildroot}%{_fontdir}

rm %{buildroot}%{_fontdir}/lut*.pcf %{buildroot}%{_fontdir}/fang*.pcf %{buildroot}%{_fontdir}/cons*.pcf
gzip %{buildroot}%{_fontdir}/*.pcf

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                   %{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{SOURCE2} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}


%_font_pkg -f %{fontconf} [0-9]*

%doc README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11152 |21cr|ucview-0.33-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ucview
Version:	0.33
Release:	5
Summary:	A video capture and display program
Source0:	http://www.unicap-imaging.org/downloads/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Url:		http://www.unicap-imaging.org/ucview.htm
License:	GPLv2
Group:		Video
BuildRequires:  pkgconfig(dbus-glib-1) >= 0.73
BuildRequires:	libunicapgtk-devel >= 0.2.23
BuildRequires:	pkgconfig(gconf-2.0) >= 2.22.0
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	gtk+2 >= 2.12.10
BuildRequires:	intltool GConf2
Requires(preun): GConf2
Patch0:		ucview-0.33-gmodule.patch

%description
UCView is a video capture and display program based on the unicap video imaging
library.

%prep
%setup -q
%patch0 -p1 -b .gmodule

%build
%configure --disable-schemas-install
%make

%install
%makeinstall_std
desktop-file-install --vendor "" --dir %{buildroot}%{_datadir}/applications %{SOURCE1}
%find_lang %{name}

rm -fr %buildroot%_includedir %buildroot%_libdir/pkgconfig

%preun
%preun_uninstall_gconf_schemas ucview

%files -f %{name}.lang
%{_sysconfdir}/gconf/schemas/ucview.schemas
%{_datadir}/applications/ucview.desktop
%{_datadir}/icons/hicolor/*
%{_datadir}/%{name}/icons/*
%{_datadir}/%{name}/logo/ucview-logo.png
%{_datadir}/%{name}/ucview.glade
%{_bindir}/ucview
%{_mandir}/man1/ucview.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11153 |21cr|udevil-0.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mount and unmount without password
Name:		udevil
Version:	0.4.4
Release:	2
License:	GPLv3+
Group:		System/Base
Url:		http://ignorantguru.github.com/udevil/
Source0:	https://github.com/IgnorantGuru/%{name}/archive/%{name}-%{version}.tar.gz
Patch0:		udevil-0.4.4-install-mode.patch
Patch1:		udevil-0.4.4-include-sysmacros.patch
Patch2:		udevil-0.4.4-stat.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)
Requires(post,preun):	systemd

%description
udevil is a command line Linux program which mounts and unmounts
removable devices without a password, shows device info, and monitors
device changes. It can also mount ISO files, nfs://, smb://, ftp://,
ssh:// and WebDAV URLs, and tmpfs/ramfs filesystems

%files -f %{name}.lang
%doc AUTHORS COPYING README
%attr(4755,root,root) %{_bindir}/%{name}
%{_bindir}/devmon
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/conf.d/devmon
%{_unitdir}/devmon.service

%post
%systemd_post devmon.service

%preun
%systemd_preun devmon.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p0

%build
autoreconf -fi
# libdir is used for systemd unit install only
%configure \
	--libdir=/lib
%make

%install
%makeinstall_std

mv %{buildroot}%{_unitdir}/devmon@.service %{buildroot}%{_unitdir}/devmon.service

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11154 |21cr|udftools-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname udffs %{major}
%define devname %mklibname udffs -d

%global _udevdir /lib/udev/rules.d

Summary:	UDF filesystem tools
Name:		udftools
Version:	2.3
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://sourceforge.net/projects/linux-udf/
Source0:	https://github.com/pali/udftools/releases/download/%{version}/%{name}-%{version}.tar.gz
Patch0:		udftools-1.0.0b3cvs_add_cdmrw.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(udev)
Provides:	udf = %{EVRD}
Obsoletes:	%{_lib}udftools1 < 1:1.0.0-0.b3.15
Obsoletes:	%{_lib}udftools-devel < 1:1.0.0-0.b3.15
Obsoletes:	%{_lib}udftools-static-devel < 1:1.0.0-0.b3.15
Obsoletes:	%{_lib}udffs1 < 1:1.2
Obsoletes:	%{_lib}udffs-devel < 1:1.2

%description -n udftools
These are tools for UDF file systems as used, e.g., on DVD-RAM, DVD+RW, CD-RW.
They are also used for managing Packet-CD/DVD devices and media.

%files
%doc %{_docdir}/%{name}
%{_bindir}/cdmrw
%{_bindir}/cdrwtool
%{_bindir}/udfinfo
%{_bindir}/wrudf
%{_sbindir}/mkudffs
%{_sbindir}/mkfs.udf
%{_sbindir}/pktsetup
%{_sbindir}/pktcdvd-check
%{_sbindir}/udflabel
%{_mandir}/man1/*.1*
%{_mandir}/man8/*.8*
%{_udevdir}/80-pktsetup.rules
#----------------------------------------------------------------------------

%prep
%autosetup -p1
perl -pi -e 's! wrudf/Makefile! wrudf/Makefile cdmrw/Makefile!' configure.ac
perl -pi -e 's! wrudf! wrudf cdmrw!' Makefile.am

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11155 |21cr|udns-0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname %mklibname udns %{major}
%define devname %mklibname udns -d

Summary:	DNS Resolver Library
Name:		udns
Version:	0.4
Release:	5
License:	LGPLv2+
Group:		Networking/Other
Url:		http://www.corpit.ru/mjt/udns.html
Source0:	http://www.corpit.ru/mjt/udns/%{name}-%{version}.tar.gz
BuildConflicts:	%{name}-devel

%description
UDNS is a stub DNS resolver library with ability to perform both syncronous and
asyncronous DNS queries.

%files
%{_bindir}/udns-rblcheck
%{_bindir}/udns-dnsget
%{_mandir}/man1/udns-dnsget.1*
%{_mandir}/man1/udns-rblcheck.1*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	DNS Resolver Library
Group:          System/Libraries

%description -n	%{libname}
UDNS is a stub DNS resolver library with ability to perform both syncronous and
asyncronous DNS queries.

This package contains the shared UDNS library.

%files -n %{libname}
%doc NEWS NOTES TODO
%license COPYING.LGPL
%{_libdir}/libudns.so.%{major}

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libmemcached library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
UDNS is a stub DNS resolver library with ability to perform both syncronous and
asyncronous DNS queries.

This package contains the static UDNS library and its header files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libudns.a
%{_libdir}/libudns.so
%{_mandir}/man3/udns.3*

#------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
./configure
make CFLAGS="%{optflags}" SOVER="%{major}" staticlib sharedlib
ln -snf libudns.so.%{major} libudns.so

gcc %{optflags} -DHAVE_CONFIG_H -o udns-rblcheck rblcheck.c -L. -ludns
gcc %{optflags} -DHAVE_CONFIG_H -o udns-dnsget dnsget.c -L. -ludns

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_mandir}/man3

install -m0755 libudns.so.%{major} %{buildroot}%{_libdir}/
ln -snf libudns.so.%{major} %{buildroot}%{_libdir}/libudns.so
install -m0644 libudns.a %{buildroot}%{_libdir}/
install -m0644 udns.h %{buildroot}%{_includedir}/

install -m0755 udns-rblcheck %{buildroot}%{_bindir}/
install -m0755 udns-dnsget %{buildroot}%{_bindir}/

install -m0644 dnsget.1 %{buildroot}%{_mandir}/man1/udns-dnsget.1
install -m0644 rblcheck.1 %{buildroot}%{_mandir}/man1/udns-rblcheck.1
install -m0644 udns.3 %{buildroot}%{_mandir}/man3/
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11156 |21cr|udpcast-20211207-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	UDP broadcast installation
Name:		udpcast
Version:	20211207
Release:	1
License:	GPLv2+ and BSD-like
Group:		Networking/Other
Url:		http://udpcast.linux.lu/
Source0:	http://udpcast.linux.lu/download/%{name}-%{version}.tar.gz
Patch0:		udpcast-20120424-gcc4.9.patch

%description
UDPcast is a file transfer tool that can send data simultaneously to many
destinations on a LAN. This can for instance be used to install entire
classrooms of PC's at once. The advantage of UDPcast over using other methods
(nfs, ftp, whatever) is that UDPcast uses Ethernet's multicast abilities:
it won't take longer to install 15 machines than it would to install just 2

%files
%doc cmd.html COPYING *.txt
%{_sbindir}/udp-receiver
%{_sbindir}/udp-sender
%{_mandir}/man1/udp-receiver.1*
%{_mandir}/man1/udp-sender.1*

#----------------------------------------------------------------------------

%package devel
Summary:	Header files for UDPcast
Requires:	%{name} = %{EVRD}

%description devel
Header files for UDPcast

%files devel
%{_includedir}/udpcast/rateGovernor.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11157 |21cr|udpxy-1.0.23-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global realversion 1.0.23-9

Name:           udpxy
Version:        1.0.23
Release:        3
Summary:        UDP-to-HTTP multicast traffic relay daemon
Group:          System/Servers
License:        GPLv3+
URL:            http://sourceforge.net/projects/udpxy/
Source0:        http://www.udpxy.com/download/1_23/%{name}.%{realversion}-prod.tar.gz
Source1:        udpxy.service
Source2:	udpxy-manual-RU.rtf

%description
udpxy is a UDP-to-HTTP multicast traffic relay daemon:
it forwards UDP traffic from a given multicast subscription
to the requesting HTTP client.

%prep
%setup -qn %{name}-%{realversion}
cp %{SOURCE2} .

chmod a-x CHANGES
sed -i 's|@cp $(UDPXREC)|@cp -a $(UDPXREC)|g' Makefile

%build
%make

%install
%makeinstall_std PREFIX=%{_prefix}

install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

%post
%systemd_post udpxy.service

%preun
%systemd_preun udpxy.service

%postun
%systemd_postun_with_restart udpxy.service

%files
%doc README CHANGES gpl.txt udpxy-manual-RU.rtf
%{_bindir}/%{name}
%{_bindir}/udpxrec
%{_mandir}/man1/*
%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11158 |21cr|udt-4.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major  0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname -d %{name}
%define doc %{buildroot}%{_docdir}/lib%{name}

Name:           udt
Version:        4.11
Release:        4
Summary:        UDP-based Data Transfer Protocol
Group:          Networking/Other
License:        BSD
Url:            http://udt.sourceforge.net/
#https://sourceforge.net/projects/udt/files/udt/4.11/
Source0:        %{name}.sdk.%{version}.tar.gz
Patch0:         build.diff
BuildRequires:  dos2unix 


%description
UDT is a reliable UDP based application level data transport protocol for 
distributed data intensive applications over wide area high-speed networks. UDT 
uses UDP to transfer bulk data with its own reliability control and congestion 
control mechanisms. The new protocol can transfer data at a much higher speed 
than TCP does. UDT is also a highly configurable framework that can accommodate 
various congestion control algorithms.
#-------------------------------------------------------------------------------

%package -n	%{libname}
Summary:        UDP-based Data Transfer Protocol: Libraries 
Group:          Networking/Other


%description -n	%{libname}
UDT is a reliable UDP based application level data transport protocol for 
distributed data intensive applications over wide area high-speed networks. UDT 
uses UDP to transfer bulk data with its own reliability control and congestion 
control mechanisms. The new protocol can transfer data at a much higher speed 
than TCP does. UDT is also a highly configurable framework that can accommodate 
various congestion control algorithms.

%files -n	%{libname}
%{_docdir}/lib%{name}/*.txt
%{_libdir}/libudt.so.*
#-------------------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for %{name}
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains, header files, and libraries needed to
develop application that use %{name}

%files -n %{devname}
%{_docdir}/lib%{name}/doc
%exclude %{_docdir}/lib%{name}/*.txt
%{_libdir}/libudt.so 
%{_includedir}/%{name}

#-------------------------------------------------------------------------------

%prep
%setup -qn %{name}4
%patch0 -p0

%build 
%ifarch x86_64
make -e arch=AMD64 
%endif
%ifarch %ix86
make
%endif
%ifnarch x86_64 %{ix86}
make -e arch=''
%endif

%install 
mkdir -p %{buildroot}%{_libdir} 
install -m 755 src/libudt.so.0.0.0 %{buildroot}%{_libdir} 
ln -s -f libudt.so.0.0.0 %{buildroot}%{_libdir}/libudt.so.0 
ln -s -f libudt.so.0.0.0 %{buildroot}%{_libdir}/libudt.so 
mkdir -p %{buildroot}%{_includedir}/%{name}
install -p -m 644 -t %{buildroot}%{_includedir}/%{name} src/*.h
mkdir -p %{doc}/doc/{htm,hlp} 
install -p -m 644 -t %{doc} {LICENSE.txt,RELEASE_NOTES.txt} 
install -p -m 644 -t %{doc}/doc doc/*.htm
install -p -m 644 -t %{doc}/doc/htm doc/{doc/*.css,doc/*.htm}
install -p -m 644 -t %{doc}/doc/hlp doc/hlp/*.gif

# Fix wrong-file-end-of-line-encoding
dos2unix %{doc}/doc/htm/udtdoc.css

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11159 |21cr|udunits2-2.2.28-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

%define oname udunits

Summary:	A library for manipulating units of physical quantities
Name:		udunits2
Version:	2.2.28
Release:	2
License:	Freely distributable (BSD-like)
Group:		Sciences/Mathematics
Url:		http://www.unidata.ucar.edu/software/udunits
Source0:	https://artifacts.unidata.ucar.edu/repository/downloads-udunits/%{oname}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	gcc-c++
BuildRequires:	gcc-gfortran
BuildRequires:	groff
BuildRequires:	texinfo
BuildRequires:	texlive-tex.bin
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(cunit)
BuildRequires:	pkgconfig(expat)

%description
The Unidata units utility, udunits, supports conversion of unit specifications 
between formatted and binary forms, arithmetic manipulation of unit 
specifications, and conversion of values between compatible scales of 
measurement. A unit is the amount by which a physical quantity is measured. For
example:

Physical Quantity	Possible Unit
_________________	_____________
time			weeks
distance		centimeters
power			watts

This utility works interactively and has two modes. In one mode, both an input 
and output unit specification are given, causing the utility to print the 
conversion between them. In the other mode, only an input unit specification is
given. This causes the utility to print the definition -- in standard units -- 
of the input unit.

%files
%{_bindir}/%{name}
%{_datadir}/udunits/*.xml
%{_docdir}/%{name}
%{_infodir}/*.info*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for udunits
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}

%description -n %{libname}
This package contains the files needed for compiling programs using
the udunits library.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and libraries for udunits
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files needed for compiling programs using
the udunits library.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%ifarch x86_64
export CFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} -fPIC"
%endif
export LD_MATH=-lm 
%configure --disable-static --docdir %{_docdir}/%{name}
%make 

%install
%makeinstall_std install-html
mkdir -p %{buildroot}%{_infodir}/
install -p -m0644 *.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11160 |21cr|ufoai-2.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	UFO: Alien Invasion
Name:		ufoai
Version:	2.5
Release:	3
License:	GPLv2+
Group:		Games/Strategy
Url:		http://ufoai.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.tar.bz2
Source1:	%{name}.desktop
Patch0:		ufoai-2.5-dont-strip-binaries.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gdkglext-x11-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtksourceview-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl) >= 1.2.10
BuildRequires:	pkgconfig(SDL_image) >= 1.2.7
BuildRequires:	pkgconfig(SDL_mixer) >= 1.2.7
BuildRequires:	pkgconfig(SDL_ttf) >= 2.0.7
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	xvid-devel
BuildRequires:	zip
Requires:	%{name}-data = %{version}
%rename ufo

%description
UFO: ALIEN INVASION is a strategy game featuring tactical combat against
hostile alien forces which are about to infiltrate earth at this very
moment. You are in command of a small special unit which has been
founded to face the alien strike force. To be successful on the long
run, you will also have to have a research team study the aliens and
their technologies in order to learn as much as possible about their
technology, their goals and the aliens themselves. 'UFO: Alien Invasion'
is heavily inspired by the 'X-COM' series by Mythos and Microprose.

%files -f ufoai.lang
%doc LICENSES
%{_gamesbindir}/ufo*
%dir %{_gamesdatadir}/ufoai
%{_gamesdatadir}/ufoai/memory
%{_gamesdatadir}/ufoai/ufo*
%dir %{_gamesdatadir}/ufoai/base
%{_gamesdatadir}/ufoai/base/game.so
%dir %{_gamesdatadir}/ufoai/radiant
%{_gamesdatadir}/ufoai/radiant/uforadiant
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-source
%patch0 -p0 -b .nostrip~

%build
export CXXFLAGS="%{optflags} -std=gnu++11 -Wno-narrowing"
export CFLAGS="%{optflags} -std=c++11 -Wno-narrowing"
./configure	--prefix=%{_prefix} \
		--bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir}/ufoai \
		--localedir=%{_localedir} \
		--enable-release \
%ifarch x86_64
		--enable-sse \
%endif
		--enable-cgame-campaign \
		--enable-cgame-multiplayer \
		--enable-cgame-skirmish \
		--enable-game \
		--enable-memory \
		--enable-testall \
		--enable-ufo2map \
		--enable-ufoded \
		--enable-ufo \
		--enable-ufomodel \
		--enable-uforadiant \
		--enable-ufoslicer \
		--disable-sdl2
make

%install
%makeinstall_std
# Remove empty data files to avoid file conflict with data package
rm -f %{buildroot}/%{_gamesdatadir}/%{name}/base/*pk3

desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
install -m644 src/ports/linux/ufo.png -D %{buildroot}%{_datadir}/pixmaps/%{name}.png

%find_lang ufoai

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11161 |21cr|ufoai-data-2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ufoai

Summary:	Data files for %{oname}
Name:		%{oname}-data
Version:	2.5
Release:	4
License:	GPLv2+ and CC-BY and CC-BY-SA and GFDL and MIT and Public Domain and Creative Commons Sampling Plus
Group:		Games/Strategy
Url:		http://ufoai.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/%{oname}/%{oname}-%{version}-data.tar
Requires:	%{oname}
BuildArch:	noarch
%rename ufo-data

%description
Data files needed to run %{oname}.

%files
%dir %{_gamesdatadir}/%{oname}
%{_gamesdatadir}/%{oname}/*

#----------------------------------------------------------------------------

%prep

%install
mkdir -p %{buildroot}%{_gamesdatadir}/%{oname}
tar -xf %{SOURCE0} -C %{buildroot}%{_gamesdatadir}/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11162 |21cr|uftp-5.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A multicast FTP
Name:		uftp
Version:	5.0.1
Release:	1
License:	GPLv3
Group:		Networking/File transfer
Source0:	http://sourceforge.net/projects/uftp-multicast/files/source-tar/%{name}-%{version}.tar.gz
Url:		http://www.tcnj.edu/~bush/uftp.html
BuildRequires:	pkgconfig(openssl)

%description
UFTP is a multicast file transfer program, utilizing a protocol based on
Starburst MFTP. It is designed to reliably and efficiently transfer files
to multiple receivers simultaneously, where either the intended receivers
can be specified beforehand, or receivers can join the transfer when it is
initiated. This is useful for distributing large files to a large number of
receivers, and is especially useful for data distribution over a satellite
link (with two way communication), where the inherent delay makes any TCP
based communication terribly inefficient. UFTP has been used in the production
process of The Wall Street Journal to send WSJ pages over satellite to their
remote printing plants.

%files
%doc Changes.txt ReadMe.txt
%{_bindir}/uftp
%{_mandir}/man1/uftp.1*

#---------------------------------------------------------------------------

%package server
Summary:	A multicast ftp server
Group:		Networking/File transfer

%description server
UFTP is a multicast file transfer program, utilizing a protocol based on
Starburst MFTP. It is designed to reliably and efficiently transfer files
to multiple receivers simultaneously, where either the intended receivers
can be specified beforehand, or receivers can join the transfer when it is
initiated. This is useful for distributing large files to a large number of
receivers, and is especially useful for data distribution over a satellite
link (with two way communication), where the inherent delay makes any TCP
based communication terribly inefficient. UFTP has been used in the production
process of The Wall Street Journal to send WSJ pages over satellite to their
remote printing plants.

%files server
%doc Changes.txt ReadMe.txt
%{_sbindir}/uftpd
%{_mandir}/man1/uftpd.1*

#---------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
install -Dp -m 755 uftp %{buildroot}%{_bindir}/uftp
install -Dp -m 755 uftpd %{buildroot}%{_sbindir}/uftpd
install -Dp -m 644 uftp.1 %{buildroot}%{_mandir}/man1/uftp.1
install -Dp -m 644 uftpd.1 %{buildroot}%{_mandir}/man1/uftpd.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11163 |21cr|ugene-44.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

Summary:	Integrated bioinformatics toolkit
Name:		ugene
Version:	44.0
Release:	1
#The entire source code is GPLv2+ except:
#file src/libs_3rdparty/qtbindings_core/src/qtscriptconcurrent.h which is GPLv2
#files in src/plugins_3rdparty/script_debuger/src/qtscriptdebug/ which are GPLv2
License:	GPLv2
Group:		Sciences/Biology
Url:		http://ugene.net
Source0:	https://github.com/ugeneunipro/ugene/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# This is not installed
Source10:	ugene.wrapper
Patch5:		ugene-43.x-wrong-elif-SendReportDialog.patch
Patch6:		ugene_perf_monitor.pri.patch
# Currently distro-specific
Patch102:	ugene-42.x-libs_3rdparty-breakpad-sys_mmap_use_system_mmap.patch
Patch103:	ugene-40.1-libs_3rdparty-breakpad-unwind-nonsupported-arch.patch
Patch104:	ugene-42.0-plugins_3rdparty-hmm2-nosse-arch.patch
Patch105:	ugene-40.1-libs_3rdparty-breakpad-arch-port.patch
Patch106:	ugene-43.0-git-plgins-smith_waterman-nonsse2-arch.patch
Patch107:	ugene-40.1-qbswap-bigendian-workaround.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libprocps)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

#We need strict versions of qt for correct work of src/libs_3rdparty/qtbindings_*
%{?_qt5_version:Requires: qt5%{?_isa} >= %{_qt5_version}}
Provides: bundled(sqlite)
Provides: bundled(samtools)

%description
Unipro UGENE is a cross-platform visual environment for DNA and protein
sequence analysis. UGENE integrates the most important bioinformatics
computational algorithms and provides an easy-to-use GUI for performing
complex analysis of the genomic data. One of the main features of UGENE
is a designer for custom bioinformatics workflows.

%files
%license LICENSE.txt LICENSE.3rd_party.txt
%{_bindir}/*
%{_libdir}/%{name}
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_iconsdir}/hicolor/*/*/*
%{_datadir}/mime/packages/application-x-ugene.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%qmake_qt5 -r	\
	INSTALL_LIBDIR=%{_libdir}	\
	UGENE_EXCLUDE_LIST_ENABLED=1	\
	UGENE_WITHOUT_NON_FREE=1
%make release

%install
%makeinstall_std

# Some needed files are not installed...
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/mimetypes
mkdir -p %{buildroot}%{_datadir}/mime/packages
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_mandir}/man1
cp -a src/_release/* %{buildroot}%{_libdir}/%{name}
install -cpm 0755 %{SOURCE10} %{buildroot}%{_bindir}/%{name}
ln -sf ../../../%{_datadir}/%{name} %{buildroot}%{_libdir}/%{name}/data
cp dist/%{name}-%{version}/application-x-ugene-ext.png %{buildroot}%{_datadir}/icons/hicolor/32x32/mimetypes/
cp dist/%{name}-%{version}/application-x-ugene.xml %{buildroot}%{_datadir}/mime/packages
cp dist/%{name}-%{version}/%{name}.1* %{buildroot}%{_mandir}/man1
cp dist/%{name}-%{version}/%{name}.desktop %{buildroot}%{_datadir}/applications/
cp dist/%{name}-%{version}/%{name}.{png,xpm} %{buildroot}%{_datadir}/pixmaps
cp -r dist/%{name}-%{version}/data %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11164 |21cr|uget-2.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}
%define iconname %{name}.png

Summary:	Download manager that uses GTK+
Name:		uget
Version:	2.2.3
Release:	1
Group:		Networking/File transfer
License:	GPL
Url:		http://ugetdm.com/
Source0:	https://sourceforge.net/projects/urlget/files/uget%20%28stable%29/%{version}/%{name}-%{version}-1.tar.gz
Patch1:		uget-gcc10.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(appindicator3-0.1)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	intltool
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libpcre)
Requires:	wget
Recommends:	uget-integrator
%rename		urlgfe
%rename		urlget

%description
uGet is a download manager with downloads queue, pause/resume, clipboard
monitor, batch downloads, browser integration (Firefox & Chrome),
multiple connections, speed limit controls, powerful category based
control and much more. Each Category has an independent configuration
that can be inherited by each download in that category.

%files -f %{name}.lang
%doc COPYING INSTALL
%{_bindir}/*
%{_datadir}/applications/%{name}-gtk.desktop
%{_iconsdir}/*
%{_datadir}/sounds/%{name}/*.wav
%{_datadir}/pixmaps/%{name}

#--------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--with-gnutls \
	--without-openssl

%make

%install
%makeinstall_std INSTALL="install -p"

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	--delete-original \
	%{buildroot}%{_datadir}/applications/%{name}-gtk.desktop


%find_lang %{name} 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11165 |21cr|uglify-js1-1.3.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#enable/disable tests in case the deps aren't there
%global enable_tests 0

Name:           uglify-js1
Version:        1.3.4
Release:        5
Summary:        JavaScript parser, mangler/compressor and beautifier toolkit

BuildArch:      noarch

Group:          Development/Other
# BSD license in README.html
License:        BSD
URL:            https://github.com/mishoo/UglifyJS
Source0:        http://registry.npmjs.org/uglify-js/-/uglify-js-%{version}.tgz

BuildRequires:  nodejs-packaging
BuildRequires:  web-assets-devel

%if 0%{?enable_tests}
BuildRequires:  npm(nodeunit)
%endif

Requires: js-uglify-1 == %{version}-%{release}
Requires: nodejs

%description
JavaScript parser, mangler/compressor and beautifier toolkit.  This is the
classic 1.x version of uglify-js.  Consider using the new version provided
in the uglify-js package.

This package ships the uglifyjs command-line tool and a library suitable for
use within Node.js.

%package -n js-uglify-1
Summary: JavaScript parser, mangler/compressor and beautifier toolkit - core library

Group: System/Libraries


Provides: uglify-js1-common = %{EVRD}
Requires: web-assets-filesystem

%description -n js-uglify-1
JavaScript parser, mangler/compressor and beautifier toolkit.  This is the
classic 1.x version of uglify-js.  Consider using the new version provided
in the uglify-js package.

This package ships a JavaScript library suitable for use by any JavaScript
runtime.

%prep
%setup -q -n package

%build
#nothing to do

%install
mkdir -p %{buildroot}%{_jsdir}/uglify-js-1
cp -pr lib/* %{buildroot}%{_jsdir}/uglify-js-1

#compat symlink
mkdir -p %{buildroot}%{_datadir}
ln -sf javascript/uglify-js-1 %{buildroot}%{_datadir}/%{name}

mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js@1
cp -pr bin package.json uglify-js.js %{buildroot}%{nodejs_sitelib}/uglify-js@1
ln -sf %{_jsdir}/uglify-js-1 %{buildroot}%{nodejs_sitelib}/uglify-js@1/lib

##compat symlink so old modules continue to work
ln -sf uglify-js@1 %{buildroot}%{nodejs_sitelib}/%{name}

mkdir -p %{buildroot}%{_bindir}
ln -sf ../lib/node_modules/uglify-js1/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs1

#nodejs-symlink-deps is not called because this package does not have any
#dependencies and can be used outside of node

%if 0%{?enable_tests}
%check
%nodejs_symlink_deps --check
nodeunit test/unit/scripts.js && test/testparser.js && test/testconsolidator.js
%endif

%clean

%pretrans -p <lua>
st = posix.stat("%{nodejs_sitelib}/uglify-js1")
if st and st.type == "directory" then
  os.execute("rm -rf %{nodejs_sitelib}/uglify-js1")
end

st = posix.stat("%{_datadir}/%{name}")
if st and st.type == "directory" then
  os.execute("rm -rf %{_datadir}/%{name}")
end

%files
%{nodejs_sitelib}/uglify-js@1
%{nodejs_sitelib}/uglify-js1
%{_bindir}/uglifyjs1

%files -n js-uglify-1
%{_jsdir}/uglify-js-1
%{_datadir}/%{name}
%doc README.html README.org docstyle.css

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11166 |21cr|ugrep-1.7-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	Barebones version of grep/egrep
Name:		ugrep
Version:	1.7
Release:	12
License:	GPL
Group:		File tools
URL:		http://robur.slu.se/jensl/ugrep/
Source0:	%{name}.tar.bz2
Patch0:		%{name}-Makefile.patch
BuildRequires:	dietlibc-devel >= 0.32
Prefix:		%{_libdir}/embutils


%description
%{name} will only do basic regexp string matching.

%prep

%setup -q -n %{name}
%patch0 -p0

# fix version
echo "#define VERSION \"Version: %{version}\"" > version.h

%build
make

%install
install -d %{buildroot}%{prefix}/bin
install -m755 %{name} %{buildroot}%{prefix}/bin/

# fix softlinks...
ln -snf %{name} %{buildroot}%{prefix}/bin/grep

%files
%{prefix}/bin/%{name}
%{prefix}/bin/grep

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11167 |21cr|uhd-4.4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global Werror_cflags %nil
%define _disable_lto %nil
# enable in next version
%bcond_without python

%define api %{version}
%define libname	%mklibname %{name} %{api}
%define devname	%mklibname -d %{name}

Name:           uhd
URL:            https://github.com/EttusResearch/uhd
Version:	4.4.0.0
Release:	1
Group:          Communications
Summary:        Universal Hardware Driver for Ettus Research products
License:        GPLv3+
Source0:	https://github.com/EttusResearch/uhd/archive/v%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  boost-devel
BuildRequires:  icu-devel
#BuildRequires:  boost-chrono-devel
BuildRequires:  boost-static-devel
BuildRequires:  pkgconfig(libusb-1.0)
BuildRequires:  pkgconfig(udev)
BuildRequires:  doxygen
BuildRequires:  python3-mako
BuildRequires:  python3-docutils
%if %{with python}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(numpy)
%endif

Requires:	%{libname} = %{EVRD}

%description
The UHD is the universal hardware driver for Ettus Research products.
The goal of the UHD is to provide a host driver and API for current and
future Ettus Research products. It can be used standalone without GNU Radio.

%prep
%setup -qn %{name}-%{version}
%autopatch -p1

%build
export GITREV=%{version}
%set_build_flags
cd host
mkdir build
pushd build
cmake .. -DENABLE_UTILS=ON \
	-DENABLE_E100=ON \
	-DENABLE_E300=ON \
	-DENABLE_PYTHON3=ON \
	-DENABLE_TESTS=OFF \
	-DUHD_VERSION=%{version} \
	-DENABLE_EXAMPLES=OFF \
	-DPYTHON_EXECUTABLE:FILEPATH=%{__python3} \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib}

%make_build
popd

%check
pushd host
%make_build test -C build

%install
pushd host
%make_install -C build

# Allow access only to users in usrp group
sed -i 's/MODE:="0666"/MODE:="0660"/' %{buildroot}%{_libdir}/uhd/utils/uhd-usrp.rules
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
mv %{buildroot}%{_libdir}/uhd/utils/uhd-usrp.rules %{buildroot}%{_sysconfdir}/udev/rules.d/10-usrp-uhd.rules

# Remove binaries for tests, examples
rm -rf %{buildroot}%{_datadir}/uhd/{tests,examples}

# Move the utils stuff to libexec dir
mkdir -p %{buildroot}%{_libexecdir}/uhd
mv %{buildroot}%{_libdir}/uhd/utils/* %{buildroot}%{_libexecdir}/uhd
popd

# fix permissions see rpmlint warning
chmod +x %{buildroot}%{python3_sitearch}/usrp_mpm/chips/max10_cpld_flash_ctrl.py
chmod +x %{buildroot}%{python3_sitearch}/usrp_mpm/dboard_manager/magnesium_update_cpld.py
chmod +x %{buildroot}%{python3_sitearch}/usrp_mpm/dboard_manager/rhodium_update_cpld.py
chmod +x %{buildroot}%{python3_sitearch}/usrp_mpm/dboard_manager/zbx_update_cpld.py
chmod +x %{buildroot}%{python3_sitearch}/usrp_mpm/fpga_bit_to_bin.py
chmod +x %{buildroot}%{python3_sitearch}/usrp_mpm/periph_manager/x4xx_update_cpld.py
chmod +x %{buildroot}%{python3_sitearch}/usrp_mpm/test_bfrfs.py

%pre -n uhd
getent group usrp >/dev/null || groupadd -r usrp

%files
%{_bindir}/*
%{_mandir}/man1/%{name}*.*
%{_mandir}/man1/usrp*.*
%config(noreplace) %{_sysconfdir}/udev/rules.d/10-usrp-uhd.rules
%{_libexecdir}/uhd

#------------------------------------------------------------
%package doc
Summary:        Documentation files for UHD
Group:          Communications
BuildArch:      noarch

%description doc
Documentation for the Universal Hardware Driver (UHD).


%files doc
%{_datadir}/doc/uhd/LICENSE
%{_datadir}/doc/uhd/README.md
%{_docdir}/%{name}/doxygen/*/*
%{_datadir}/%{name}/

#------------------------------------------------------------

%package -n	%{libname}
Summary:	Universal Hardware Driver (UHD)
Group:		System/Libraries

%description -n	%{libname}
Universal Hardware Driver (UHD)

%files -n %{libname}
%{_libdir}/lib*.so.*

#------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{name}-devel-doc < 1.0.15-2

%description -n	%{devname}
Development files for the Universal Hardware Driver (UHD).

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/uhd/UHDConfig.cmake
%{_libdir}/cmake/uhd/UHDConfigVersion.cmake
%{_libdir}/cmake/uhd/UHDBoost.cmake

#------------------------------------------------------------


%if %{with python}
%package -n python3-%{name}
Summary:	Python 3 bindings for %{name}
Group:		Development/Python
Requires:	%{name} = %{EVRD}

%description -n python3-%{name}
python bindings for %{name}

%files -n python3-%{name}
%{python3_sitearch}/%{name}
%{python3_sitearch}/usrp_mpm

%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11168 |21cr|uim-1.8.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcver	1.8.9
%define commit d1ac9d9315ff8c57c713b502544fef9b3a83b3e5
%define date 20210204

%define anthy_version      0.4
%define m17n_lib_version   1.3.4

%define uim_major 8
%define libname %mklibname %{name} %{uim_major}
%define devname %mklibname -d %{name}

%define custom_major 2
%define libcustom %mklibname uim-custom %{custom_major}

%define gcroots_major 0
%define libgcroots %mklibname gcroots %{gcroots_major}

%define scm_major 0
%define libscm %mklibname uim-scm %{scm_major}

Summary:	Multilingual input method library 
Name:		uim
Version:	1.8.9
Release:	4
# uim itself is licensed under BSD
# scm/py.scm, helper/eggtrayicon.[ch], qt/pref-kseparator.{cpp,h}
#   and qt/chardict/chardict-kseparator.{cpp,h} is licensed under LGPLv2+
# pixmaps/*.{svg,png} is licensed under BSD or LGPLv2
License:	BSD and LGPLv2+ and (BSD or LGPLv2)
Group:		System/Internationalization
URL:		https://github.com/uim/uim/
#repack git source with added sigscheme files
Source0:	%{name}-%{commit}.tar.gz
Patch1:		uim-emacs-utf8.patch
Patch2:		uim-gen-icons.patch
# aunty from Debian have 0.x version
Patch3:		uim-anthy-version.patch
BuildRequires:	cmake
BuildRequires:	ed
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	m17n-db
BuildRequires:	pkgconfig(anthy) >= %{anthy_version}
BuildRequires:	pkgconfig(gtk+-x11-2.0)
BuildRequires:	pkgconfig(gtk+-x11-3.0)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgnome-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(m17n-core) >= %{m17n_lib_version}
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	%{_bindir}/rsvg-convert
Requires:	anthy >= %{anthy_version}
Requires:	m17n-lib >= %{m17n_lib_version}
Requires:	skkdic
Requires(post,postun):	gtk2-modules

%description
Uim is a multilingual input method library. Uim's project goal is 
to provide secure and useful input method for all languages.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%doc sigscheme/doc/*
%{_bindir}/uim-el*-agent
%{_bindir}/uim-fep*
%{_bindir}/uim-help
%{_bindir}/uim-module-manager
%{_bindir}/uim-sh
%{_bindir}/uim-xim
%{_bindir}/uim-m17nlib-relink-icons
%{_datadir}/applications/*
%{_datadir}/emacs/site-lisp/uim-el/*.el
%{_datadir}/uim
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package gtk
Summary:	GNOME helper for uim
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires:	gtk+2.0

%description gtk
GNOME helper for uim. It contains some apps like toolbar, 
system tray, applet, candidate window for Uim library.

%files gtk
%{_bindir}/uim-input-pad-ja
%{_bindir}/uim-dict-gtk
%{_bindir}/uim-im-switcher-gtk
%{_bindir}/uim-pref-gtk
%{_bindir}/uim-toolbar-gtk
%{_bindir}/uim-toolbar-gtk-systray
%{_libexecdir}/uim-candwin-horizontal-gtk
%{_libexecdir}/uim-candwin-gtk
%{_libexecdir}/uim-candwin-tbl-gtk
%{_libdir}/gtk-2.0/*/immodules/*.so

#----------------------------------------------------------------------------

%package gtk3
Summary:	GNOME3 helper for uim
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires:	gtk+3.0

%description gtk3
GNOME3 helper for uim. It contains some apps like toolbar,
system tray, applet, candidate window for Uim library.

%files gtk3
%{_bindir}/uim-dict-gtk3
%{_bindir}/uim-im-switcher-gtk3
%{_bindir}/uim-input-pad-ja-gtk3
%{_bindir}/uim-pref-gtk3
%{_bindir}/uim-toolbar-gtk3
%{_bindir}/uim-toolbar-gtk3-systray
%{_libdir}/gtk-3.0/*/immodules/im-uim.so
%{_libexecdir}/uim-candwin-horizontal-gtk3
%{_libexecdir}/uim-candwin-gtk3
%{_libexecdir}/uim-candwin-tbl-gtk3

#----------------------------------------------------------------------------

%package qt4immodule
Summary:	A plugin for using UIM on qt4-immodule
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires:	qt4-common

%description qt4immodule
A plugin for using UIM on qt4-immodule.

%files qt4immodule
%{qt4plugins}/inputmethods/*.so

#----------------------------------------------------------------------------

%package qt5immodule
Summary:	A plugin for using UIM on qt5-immodule
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}

%description qt5immodule
A plugin for using UIM on qt5-immodule.

%files qt5immodule
%{_qt5_plugindir}/platforminputcontexts/*.so

#----------------------------------------------------------------------------

%package base
Summary:	Misc files needed by UIM library
Group:		System/Internationalization

%description base
Misc files needed by UIM library.

%files base
%{_libexecdir}/uim-helper-server
%{_libdir}/uim/plugin/libuim-*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	UIM library
Group:		System/Internationalization
Recommends:	uim-base

%description -n %{libname}
UIM library.

%files -n %{libname}
%{_libdir}/libuim.so.%{uim_major}*

#----------------------------------------------------------------------------

%package -n %{libcustom}
Summary:	Custom library for UIM
Group:		System/Internationalization

%description -n %{libcustom}
Custom library for UIM.

%files -n %{libcustom}
%{_libdir}/libuim-custom.so.%{custom_major}*

#----------------------------------------------------------------------------

%package -n %{libgcroots}
Summary:	Gcroots library for UIM
Group:		System/Internationalization

%description -n %{libgcroots}
ohis library abstracts architecture-dependent part of garbage collector
roots acquisition such as register windows of SPARC and register stack
backing store of IA-64.

With this library, one can easily write his own garbage collector for
small footprint, some application-specific optimizations, just learning or
testing experimental ideas.

%files -n %{libgcroots}
%{_libdir}/libgcroots.so.%{gcroots_major}*

#----------------------------------------------------------------------------

%package -n %{libscm}
Summary:	Scm library for UIM
Group:		System/Internationalization

%description -n %{libscm}
Scm library for UIM.

%files -n %{libscm}
%{_libdir}/libuim-scm.so.%{scm_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of uim for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcustom} = %{EVRD}
Requires:	%{libgcroots} = %{EVRD}
Requires:	%{libscm} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
export QMAKE4=%{qt4bin}/qmake
export QMAKE5=%{_qt5_bindir}/qmake
./autogen.sh
%configure \
	--disable-static \
	--without-anthy \
	--with-anthy-utf8 \
	--with-m17nlib \
	--without-canna \
	--without-prime \
	--without-scim \
	--without-eb \
	--with-qt4-immodule \
	--with-qt5-immodule \
	--enable-dict \
	--enable-default-toolkit=gtk3 \
	--disable-warnings-into-error

export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/uim/.libs
%make

%install
%makeinstall_std

# remove docs for sigscheme (they should be installed by %doc)
rm -rf %{buildroot}%{_datadir}/doc/sigscheme

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11169 |21cr|uips-20100823-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		uips
Summary:	Universal IPS create/apply utility
Version:	20100823
Release:	4
Source0:	http://www.neillcorlett.com/downloads/uips_source.zip
URL:		http://www.neillcorlett.com/uips/

Group:		File tools
License:	GPLv3+

%description
UIPS is a command-line based utility for creating or applying IPS patches.
IPS is a fairly simple patch file format which stores the differences between
two binary files.

%prep
%setup -q -c

%build
gcc %{optflags} %{ldflags} -o %{name} %{name}.c

%install
rm -rf %{buildroot}
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc uips.txt
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11170 |21cr|ulcc-1.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ulcc
Version:	1.0.2
Release:	2
Summary:        Teaching children by pictures
Group:          Education
License:        GPLv3+
Url:            https://bitbucket.org/admsasha/ulcc
Source0:        https://bitbucket.org/admsasha/ulcc/downloads/%{name}-%{version}.tar.gz

BuildRequires:	qt5-linguist-tools
BuildRequires:  qt5-macros
BuildRequires:  qmake5
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Multimedia)

%description
Teaching children by pictures is admirable facilities
to imparting knowledges.

%prep
%setup -q

%build
%qmake_qt5
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

%files
%doc README* CONTRIBUTORS
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11171 |21cr|ulogd-2.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The userspace logging daemon for netfilter
Name:		ulogd
Version:	2.0.5
Release:	4
License:	GPL
Group:		System/Kernel and hardware
URL:		http://www.netfilter.org/projects/ulogd/
Source0:	ftp://ftp.netfilter.org/pub/ulogd/%{name}-%{version}.tar.bz2
Source1:	ftp://ftp.netfilter.org/pub/ulogd/%{name}-%{version}.tar.bz2.sig
Source2:	ulogd.service
# (fc) 1.24-3mdv fix killall path (Mdv bug #35286)
Patch0:		ulogd-1.24-fixkillall.patch
Patch1:		ulogd-build_fix.diff
Patch2:		omv-ulogd-2.0.2-conf.patch
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires:	autoconf automake libtool
BuildRequires:	dbi-devel
BuildRequires:	pcap-devel
BuildRequires:	linuxdoc-tools texlive
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(libnetfilter_acct)
BuildRequires:	pkgconfig(libnetfilter_conntrack)
BuildRequires:	pkgconfig(libnetfilter_log)
BuildRequires:	pkgconfig(libnfnetlink)
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	linuxdoc-tools
Requires:	userspace-ipfilter

%description
Ulogd is an universal logging daemon for the ULOG target of netfilter, the
Linux 2.4/2.6 firewalling subsystem. Ulogd is able to log packets in various
formats to different targets (text files, databases, etc.). It has an
easy-to-use plugin interface to add new protocols and new output targets.

%package	mysql
Summary:	MySQL output plugin for ulogd
Group:		System/Kernel and hardware
Requires:	%{name} = %{version}

%description	mysql
Ulogd-mysql is a MySQL output plugin for ulogd. It enables logging of
firewall information into a MySQL database.

%package	pgsql
Summary:	PostgreSQL output plugin for ulogd
Group:		System/Kernel and hardware
Requires:	%{name} = %{version}

%description	pgsql
Ulogd-pgsql is a PostgreSQL output plugin for ulogd. It enables logging of
firewall information into a PostgreSQL database.

%package	sqlite
Summary:	SQLite output plugin for ulogd
Group:		System/Kernel and hardware
Requires:	%{name} = %{version}

%description	sqlite
Ulogd-sqlite is a SQLite output plugin for ulogd. It enables logging of
firewall information into a SQLite database.

%package	pcap
Summary:	PCAP output plugin for ulogd
Group:		System/Kernel and hardware
Requires:	%{name} = %{version}

%description	pcap
Ulogd-pcap is a output plugin for ulogd that saves packet logs as PCAP file.
PCAP is a standard format that can be later analyzed by a lot of tools such as
tcpdump and wireshark.

%package	dbi
Summary:	Libdbi framework output plugin for ulogd
Group:		System/Kernel and hardware
Requires:	%{name} = %{version}

%description	dbi
Ulogd-dbi is a libdbi output plugin for ulogd. It enables logging of
firewall information through a libdbi interface.

%package	json
Summary:	JSON framework output plugin for ulogd
Group:		System/Kernel and hardware
Requires:	%{name} = %{version}

%description	json
Ulogd-json is a json output plugin for ulogd. It enables logging of
firewall information through a json interface.

%prep

%setup -q
%patch0 -p1 -b .fixkillall
%patch1 -p1
%patch2 -p1

# lib64 fix
perl -pi -e "s|/lib/|/%{_lib}/|g" configure*

cp %{SOURCE2} ulogd.service

%build
autoreconf -fi
%serverbuild

%configure \
    --disable-static \
    --enable-shared \
    --with-pgsql=%{_prefix} \
    --with-pgsql-inc=%{_includedir}/postgresql \
    --with-mysql=%{_prefix} \
    --with-mysql-inc=%{_includedir}/mysql \
    --with-dbi=%{_prefix} \
    --with-dbi-lib=%{_libdir} \
    --with-dbi-inc=%{_includedir} \

# bork...
cat >> config.h << EOF
#define HAVE_LIBDBI 1
#define HAVE_LIBMYSQLCLIENT 1
#define HAVE_LIBPQ 1
EOF

%make
#make -C doc

%install

%makeinstall_std

# install initscript
install -d %{buildroot}%{_unitdir}
install -m0755 ulogd.service %{buildroot}%{_unitdir}/ulogd.service

# install logrotate file
install -d %{buildroot}/%{_sysconfdir}/logrotate.d
install ulogd.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/ulogd

install -d %{buildroot}/var/lib/ulogd
install -d %{buildroot}/var/log/ulogd

# install man page
install -d %{buildroot}%{_mandir}/man8
install -m0644 ulogd.8 %{buildroot}%{_mandir}/man8/

install -m0644 ulogd.conf %{buildroot}%{_sysconfdir}/

rm -f %{buildroot}%{_libdir}/ulogd/*.*a

%post
%_post_service ulogd

%preun
%_preun_service ulogd

%files
%doc COPYING AUTHORS README
%doc doc/mysql-ulogd2-flat.sql
%doc doc/mysql-ulogd2.sql
%doc doc/pgsql-ulogd2-flat.sql
%doc doc/pgsql-ulogd2.sql
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ulogd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/ulogd
%attr(0755,root,root) %{_sbindir}/ulogd
%{_unitdir}/ulogd.service
%dir %{_libdir}/ulogd
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_HWHDR.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_IFINDEX.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_IP2BIN.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_IP2HBIN.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_IP2STR.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_MARK.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_PRINTFLOW.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_PRINTPKT.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_filter_PWSNIFF.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_inpflow_NFACCT.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_inpflow_NFCT.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_inppkt_NFLOG.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_inppkt_ULOG.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_inppkt_UNIXSOCK.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_GPRINT.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_LOGEMU.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_NACCT.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_OPRINT.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_SYSLOG.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_GRAPHITE.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_XML.so
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_raw2packet_BASE.so
%dir /var/lib/ulogd
%dir /var/log/ulogd
%attr(0644,root,root) %{_mandir}/man8/*

%files mysql
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_MYSQL.so

%files pgsql
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_PGSQL.so

%files sqlite
%doc doc/sqlite3.table
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_SQLITE3.so

%files pcap
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_PCAP.so

%files dbi
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_DBI.so

%files json
%attr(0755,root,root) %{_libdir}/ulogd/ulogd_output_JSON.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11172 |21cr|ultracopier-0.2.0.16-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ultracopier
Version:	0.2.0.16
Release:	5
License:	GPLv3+
Group:		File tools
URL:		http://ultracopier.first-world.info/
Source:		http://files.first-world.info/ultracopier/%{version}/ultracopier-src-%{version}.tar.bz2
Source1:        ultracopier_russian.qm.tar.gz
BuildRequires:	qt4-devel
BuildRequires:	desktop-file-utils

Summary:	The QT advanced copier

%description
Ultracopier is an advanced file copier with copy list management.

%prep
%setup -q

pushd src/lang
tar -xvzf %{SOURCE1}
popd

#fix the source
%__sed -i "s|\r||g" CHANGELOG
%__chmod 0644 CHANGELOG

%build
qmake
%make 

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/%{name}/lang
install -D src/%{name} %{buildroot}%{_bindir}/%{name}
install -D src/other/*.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -D src/other/*16* %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D src/other/*128* %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
cp -r src/lang/russian.* %{buildroot}%{_datadir}/%{name}/lang/
chmod -R 755 %{buildroot}%{_datadir}/%{name}/lang/*.png

sed -i -e 's/^Icon=%{name}.png$/Icon=%{name}/g' %{buildroot}%{_datadir}/applications/*

desktop-file-install --vendor="" \
	--remove-category="Qt" \
	--add-category="System;FileManager;X-MandrivaLinux-System-FileTools;" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING README
%{_bindir}/ultracopier
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/lang/*
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11173 |21cr|umbclegislation-20160608-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		umbclegislation
Version:	20160608
Release:	1
Summary:	A LaTeX class for building legislation files for UMBC Student Government Association Bills
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/umbclegislation
License:	GNU General Public License, version 3
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/umbclegislation.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/umbclegislation.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX class for building legislation files for UMBC Student 
Government Association Bills. Requires pdflatex and the
mdframed enumitem, lineno, and xifthen packages.
#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/latex/*
%doc %{_texmfdistdir}/doc/latex/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11174 |21cr|umplayer-0.98.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		umplayer
Version:	0.98.2
Release:	4
Summary:	Complete Frontend for MPlayer
Group:		Video
License:	GPLv3
URL:		http://umplayer.sourceforge.net/
Source:		http://sourceforge.net/projects/smplayer/files/UMPlayer/%{version}/%{name}-%{version}-by-the-smplayer-team.tar.bz2
Patch0:		umplayer-0.98.2-optflags.patch
Patch1:		umplayer-fix_logging_format.patch

BuildRequires:	qt4-devel
BuildRequires:	desktop-file-utils

Requires:	mplayer
Requires:	xdg-utils
Recommends:	umplayer-themes

%description
UMPlayer intends to be a complete front-end for MPlayer, from basic features
like playing videos, DVDs, and VCDs to more advanced features like support for
MPlayer filters and more.

One of the most interesting features of UMPlayer: it remembers the settings of
all files you play. So you start to watch a movie but you have to leave...
don't worry, when you open that movie again it will resume at the same point
you left it, and with the same settings: audio track, subtitles, volume...


Authors:
--------
    Vinay Khaitan <vkhaitan@gmail.com>

#------------------------------------------------------------------------------

%package themes
Summary:	Themes for UMPlayer
Group:		Video
BuildArch:	noarch
Requires:	%{name} = %{version}-%{release}
Provides:	%{name}-theme-Black  = %{version}-%{release}
Provides:	%{name}-theme-Gonzo  = %{version}-%{release}
Provides:	%{name}-theme-Mac    = %{version}-%{release}
Provides:	%{name}-theme-Modern = %{version}-%{release}
Provides:	%{name}-theme-Vista  = %{version}-%{release}

%description themes
UMPlayer is the multimedia player that fills all your needs. With dozens of
advanced features and built-in codecs it can handle any media format, and can
play Audio CDs, DVDs, (S)VCDs, TV / Radio cards, YouTube™ and SHOUTcast™
streams and even incomplete or damaged media files.

This package contains a set of themes for UMPlayer.

%files -f %{name}.lang
%doc Changelog *.txt
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/shortcuts
%dir %{_datadir}/%{name}/translations
%{_bindir}/%{name}
%{_datadir}/applications/%{name}*.desktop
%{_datadir}/%{name}/shortcuts/*.keys
%{_iconsdir}/*/*/apps/%{name}.*
%config(noreplace) %{_datadir}/%{name}/input.conf
%{_mandir}/man1/%{name}.*
%lang(en_US) %{_datadir}/%{name}/translations/%{name}_en_US.qm

%files themes
%dir %{_datadir}/%{name}/themes
%{_datadir}/%{name}/themes/*

#----------------------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}-by-the-smplayer-team
%patch0 -p1
%patch1 -p0

# fix CRLF in .txt files:
sed -i 's/\r$//' *.txt

%build
%setup_compile_flags
%make PREFIX=%{_prefix} QMAKE=%{qt4bin}/qmake LRELEASE=%{qt4bin}/lrelease

%install
%makeinstall_std

# remove wrongly put docs
rm -rf %{buildroot}%{_datadir}/doc

# for translations
LANGFILE="$PWD/umplayer.lang"
echo -n > "$LANGFILE"
find "%{buildroot}%{_datadir}/umplayer/translations" -name '*.qm' \
| while read qm; do
    qmfile=${qm##*/}
    l=${qmfile#*_}
    l=${l%%.qm}

    [ "$l" = "en_US" ] && continue    
    echo "%lang(${l}) %{_datadir}/umplayer/translations/${qmfile}" >> "$LANGFILE"
done

# for desktop file entry
desktop-file-install \
	--remove-key='Encoding' \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11175 |21cr|unac-1.8.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %major
%define develname %mklibname -d %{name}

Summary: A command that removes accents
Name: unac
Version: 1.8.0
Release: 9
License: GPLv2+
Group: Text tools
Source: http://ftp.de.debian.org/debian/pool/main/u/unac/unac_%{version}.orig.tar.gz
URL: http://www.nongnu.org/unac/
BuildRequires: gettext-devel

%description
unac is a C library and command that remove accents from a string.
For instance the string will become ete.  It provides a command
line interface that removes accents from a string given in argument
(unaccent command). In the library function and the command, the
charset of the input string is specified as an argument. The input
string is converted to UTF-16 using iconv(3), accents are stripped and
the result is converted back to the original charset. The iconv --list
command on GNU/Linux will show all charset supported.

%package -n %libname
Group:System/Libraries
Summary: A C library that removes accents

%description -n %libname
unac is a C library and command that remove accents from a string.
For instance the string will become ete.  It provides a command
line interface that removes accents from a string given in argument
(unaccent command). In the library function and the command, the
charset of the input string is specified as an argument. The input
string is converted to UTF-16 using iconv(3), accents are stripped and
the result is converted back to the original charset. The iconv --list
command on GNU/Linux will show all charset supported.

%package -n %develname
Group: Development/C
Summary: A C library that removes accents
Requires: %libname = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %develname
unac is a C library and command that remove accents from a string.
For instance the string will become ete.  It provides a command
line interface that removes accents from a string given in argument
(unaccent command). In the library function and the command, the
charset of the input string is specified as an argument. The input
string is converted to UTF-16 using iconv(3), accents are stripped and
the result is converted back to the original charset. The iconv --list
command on GNU/Linux will show all charset supported.

%prep
%setup -q -n %{name}-%{version}.orig
touch config.rpath
autoreconf -fi

%build

%configure \
	--disable-static
%make

%install
%makeinstall_std

%files
%doc ChangeLog README
%{_bindir}/unaccent
%{_mandir}/man1/unaccent.1*

%files -n %libname
%{_libdir}/libunac.so.%{major}*

%files -n %develname
%{_libdir}/libunac*so
%{_libdir}/pkgconfig/unac.pc
%{_includedir}/unac.h
%{_mandir}/man3/unac.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11176 |21cr|unace-2.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Name:		unace
Version:	2.5
Release:	5
Summary:	Decompressor for .ace format archives
License:	Freeware
Group:		Archiving/Compression
Url:		http://www.winace.com
Source:		lin%{name}25.tar.bz2
ExclusiveArch:	%{ix86}

%description
Unace is a utility to extract, view, and test the contents of an ACE archive.

This package is in restricted because of its license.

%prep
%setup -c

%build

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

%files
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11177 |21cr|unadf-0.7.12-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname adf %{major}
%define devname %mklibname adf -d

Summary:	Unzip like for .adf files (Amiga devices dumps)
Name:		unadf
Version:	0.7.12
Release:	4
URL:		http://lclevy.free.fr/adflib
Source0:	http://lclevy.free.fr/adflib/adflib-%{version}.tar.bz2
Patch0:		adflib-0.7.12-strfmt.patch
Patch1:		0001-Fix-unsafe-extraction-by-using-mkdir-instead-of-shel.patch
License:	GPL
Group:		Archiving/Compression

BuildRequires:	gcc-c++

%description
Unzip-like for .adf files (Amiga devices dumps) powered by ADFLib

%package -n %{libname}
Summary:	Unzip like for .adf files (Amiga devices dumps) -- the library
License:	GPL
Group:		Development/C

%description -n %{libname}
The ADFlib is a portable C library designed to manage Amiga formatted devices
like harddisks and ZIP disks, or dump files of this kind of media via
the .ADF format.

%package -n %{devname}
Summary:	Development files for unadf
License:	GPL
Group:		Development/C

%description -n %{devname}
Development suite for ADFLib

%prep
%setup -n adflib-%{version}
%apply_patches

%build
./autogen.sh
%configure \
	--disable-static \
	--includedir=%{_includedir}/adflib
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_datadir}/libadf
cp -rp boot %{buildroot}%{_datadir}/libadf
mkdir -p %{buildroot}%{_includedir}/adflib

%files
%{_bindir}/%{name}

%files -n %{libname}
%{_libdir}/libadf.so.*
%{_datadir}/libadf

%files -n %{devname}
%doc %{_datadir}/doc/adflib
%{_includedir}/adflib
%{_libdir}/libadf.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11178 |21cr|unarj-2.65-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		unarj
Summary:	An uncompressor for .arj format archive files
Version:	2.65
Release:	6
Group:		Archiving/Compression
License:	Freeware-like
URL:		http://freshmeat.net/projects/unarj/
#gw you need the exe
Source:		http://mysite.verizon.net/vze3nqpn/files/%{name}-%{version}.tar.bz2
Patch0:		unarj-2.65-formatfix.patch

%description
The UNARJ program is used to uncompress .arj format archives. The .arj
format archive was mostly used on DOS machines.

Install the unarj package if you need to uncompress .arj format archives.

This package is in restricted because of its license.

%prep
%autosetup -p1

%build
gcc %{optflags} -DUNIX -c *.c
gcc -o unarj *.o

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

%files
%doc *.txt
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11179 |21cr|unarr-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define libname	%mklibname unarr %{major}
%define devname %mklibname -d unarr

Name:		unarr
Version:	1.0.1
Release:	1
Group:		Development/C
Summary:	A decompression library
License:	LGPLv3+
Url:        https://github.com/selmf/unarr/
Source0:	https://github.com/selmf/unarr/releases/download/v%{version}/%{name}-%{version}.tar.xz

BuildRequires:  cmake
BuildRequires: 	cmake(ZLIB)
BuildRequires: 	pkgconfig(zlib)
BuildRequires: 	pkgconfig(bzip2)

%description
A lightweight decompression library with support for rar, tar and zip
archives


#-------------------------------------------

%package -n %{libname}
Summary:        A decompression library

%description -n %{libname}
A lightweight decompression library with support for rar, tar and zip
archives
%files -n %{libname}
%doc AUTHORS CHANGELOG.md COPYING README.md
%{_libdir}/*.so.%{major}*
#-------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc AUTHORS CHANGELOG.md COPYING README.md
%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/libunarr.pc

#-------------------------------------------
%prep
%setup -q
perl -i -pe 's/\r\n/\n/gs' {AUTHORS,COPYING,README.md}


%build
%cmake 
%make

%install
%makeinstall_std -C build LIBDIR=%{_libdir}

find %{buildroot} -name '*.a' -exec rm -f {} ';'





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11180 |21cr|unclutter-8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Name:		unclutter
Version:	8
Release:	1
Summary:	Hides the mouse cursor when idle
Url:		http://www.google.com/search?q=unclutter
Source:		ftp://ftp.x.org/contrib/utilities/unclutter-8.tar.bz2
Patch0:		unclutter-link.patch
License:	Public Domain
Group:		System/X11
BuildRequires:	pkgconfig(x11)
BuildRequires:	imake

%description
Unclutter is a program which runs permanently in the background of an X11
session.  It checks on the X11 pointer (cursor) position every few seconds, and
when it finds it has not moved (and no buttons are pressed on the mouse, and
the cursor is not in the root window) it creates a small sub-window as a child
of the window the cursor is in.  The new window installs a cursor of size 1x1
but a mask of all 0, ie an invisible cursor.  This allows you to see all the
text in an xterm or xedit, for example.  The human factors crowd would agree it
should make things less distracting.


%prep
%setup -qn unclutter
%patch0 -p0

%build
xmkmf
make CDEBUGFLAGS="%optflags" EXTRA_LDOPTIONS="%build_ldflags"

%install
mkdir -p 		$RPM_BUILD_ROOT/%_bindir
install -s unclutter	$RPM_BUILD_ROOT/%_bindir/unclutter

mkdir -p 		$RPM_BUILD_ROOT/%_mandir/man6
install unclutter.man 	$RPM_BUILD_ROOT/%_mandir/man6/unclutter.6


%files
%attr(-,root,root) %doc README
%attr(755,root,root) %_bindir/unclutter
%attr(644,root,root) %_mandir/man6/unclutter.6*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11181 |21cr|unetbootin-702-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global rel 702

Name:		unetbootin
Version:	702
Release:	3
Summary:	Create bootable Live USB drives for a variety of Linux distributions
Group:		System/Configuration/Hardware
License:	GPLv2+
URL:		http://unetbootin.sourceforge.net/
Source0:	https://github.com/unetbootin/unetbootin/releases/download/%{rel}/unetbootin-source-%{rel}.tar.gz

BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-devel
BuildRequires:	qmake5
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Widgets)

# Not picked up automatically, required for operation
Recommends:	extlinux
Requires:	p7zip
Recommends:	syslinux
Requires:	usermode

%description
UNetbootin allows you to create bootable Live USB drives for a variety of
Linux distributions from Windows or Linux, without requiring you to burn a CD.
You can either let it download one of the many distributions supported
out-of-the-box for you, or supply your own Linux .iso file if you've already
downloaded one or your preferred distribution isn't on the list.


%prep
%setup -q -c
%autopatch -p1

%build
export QMAKE=%{_bindir}/qmake-qt5
%{_libdir}/qt5/bin/lupdate -pro *.pro
%{_libdir}/qt5/bin/lrelease *.pro
qmake-qt5 *.pro

%make


%install
rm -rf %{buildroot}
install -D -m 0755 %{name} %{buildroot}%{_sbindir}/%{name}
install -d -m 0755 %{buildroot}%{_datadir}/%{name}

install -D -m 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop


# Install localization files
install -d %{buildroot}%{_datadir}/unetbootin
install -c -p -m 644 unetbootin_*.qm %{buildroot}%{_datadir}/unetbootin/
# Install icons
install -D -c -p -m 644 unetbootin_16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/unetbootin.png
install -D -c -p -m 644 unetbootin_22.png %{buildroot}%{_datadir}/icons/hicolor/22x22/apps/unetbootin.png
install -D -c -p -m 644 unetbootin_24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/unetbootin.png
install -D -c -p -m 644 unetbootin_32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/unetbootin.png
install -D -c -p -m 644 unetbootin_48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/unetbootin.png
install -D -c -p -m 644 unetbootin_64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/unetbootin.png
install -D -c -p -m 644 unetbootin_128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/unetbootin.png
install -D -c -p -m 644 unetbootin_192.png %{buildroot}%{_datadir}/icons/hicolor/192x192/apps/unetbootin.png
install -D -c -p -m 644 unetbootin_256.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/unetbootin.png

%files
%doc README.TXT
%{_sbindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/unetbootin.desktop
%{_datadir}/icons/hicolor/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11182 |21cr|unfs3-0.9.22-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	UNFS3 user-space NFSv3 server
Name:		unfs3
Version:	0.9.22
Release:	6
License:	BSD
Group:		System/Servers
Url:		http://sourceforge.net/projects/unfs3/
Source0:	http://prdownloads.sourceforge.net/unfs3/unfs3-%{version}.tar.gz
Source1:	unfs.sysinit
# Based on http://www.spinics.net/lists/linux-nfs/msg05399.html
Patch0:		unfs3-0.9.22-tirpc.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(libtirpc)
Requires:	rpcbind
Provides:	nfs-server
Requires(post,preun):	rpm-helper

%description
UNFS3 is a user-space implementation of the NFS (Network File System) version 3
server specification. It provides a daemon that supports both the MOUNT and NFS
protocol.

%files
%doc CREDITS README* LICENSE NEWS contrib doc
%{_initrddir}/unfs3
%{_sbindir}/unfsd
%{_mandir}/man7/tags.*
%{_mandir}/man8/unfsd.*

%post
%_post_service unfs3

%preun
%_preun_service unfs3

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
cp %{SOURCE1} unfs3.init

%build
%configure
make

%install
%makeinstall_std

install -d %{buildroot}%{_initrddir}
install -m0755 unfs3.init %{buildroot}%{_initrddir}/unfs3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11183 |21cr|ungifsicle-1.93-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Powerful program for manipulating GIF images and animations
Name:		ungifsicle
Version:	1.93
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://www.lcdf.org/gifsicle
Source0:		http://www.lcdf.org/gifsicle/gifsicle-%{version}.tar.gz
# From upstream
Patch0:	gifsicle-1.93-reset-left-and-top-in-Gif_MakeImageEmpty.patch
Patch1:	gifsicle-1.93-improve-error-messages.patch
Patch2:	gifsicle-1.93-ensure-colormaps-have-at-least-256-slots.patch
Patch3:	gifsicle-1.93-allow-writing-too-large-pixel-values.patch
Patch4:	gifsicle-1.93-make-sure-width-and-height-computantions-are-unisgned.patch
BuildRequires:	pkgconfig(x11)

%description
This program manipulates GIF image files on the command line. It supports:
* merging several GIFs into a GIF animation;
* exploding an animation into its component frames;
* changing individual frames in an animation;
* turning interlacing on and off;
* adding transparency;
* adding delays, disposals, and looping to animations;
* adding or removing comments;
* optimizing animations for space;
* and changing images colormaps, among other things.
The package contains two other programs: gifview, a lightweight GIF viewer for
X, to show animations as slideshows or in real time; and gifdiff, a program
that compares two GIFs for identical visual appearance.
Those programs don't use LZW compression to avoid patent problems.

%files
%doc NEWS.md README.md
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -qn gifsicle-%{version}
%apply_patches

touch `find . -type f`


%build
%configure --enable-ungif
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11184 |21cr|unhide-20200120-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to find hidden processes and TCP/UDP ports from rootkits
Name:		unhide
Version:	20200120
Release:	1
License:	GPLv3+
Group:		System/Configuration/Other
Url:		https://github.com/YJesus/Unhide-NG/
Source0:	https://github.com/YJesus/Unhide-NG/releases/download/%{version}/unhide_%{version}.tgz
ExclusiveArch:	%{ix86} x86_64

%description
Unhide is a forensic tool to find hidden processes and TCP/UDP ports by
rootkits / LKMs or by another hidden technique.

%files
%doc COPYING README.txt TODO
%{_mandir}/man8/unhide.8*
%{_mandir}/man8/unhide-gids.8*
%{_mandir}/man8/unhide-linux.8*
%{_mandir}/man8/unhide-posix.8*
%{_mandir}/man8/unhide-tcp.8*
%{_sbindir}/unhide
%{_sbindir}/unhide-gids
%{_sbindir}/unhide-linux
%{_sbindir}/unhide-tcp
%{_sbindir}/unhide_rb

#----------------------------------------------------------------------------

%prep
%setup -qc %{name}-%{version}

%build
gcc %{optflags} %{ldflags} -pthread unhide-linux*.c unhide-output.c -o unhide-linux
gcc %{optflags} %{ldflags} unhide-tcp.c unhide-tcp-fast.c unhide-output.c -o unhide-tcp
gcc %{optflags} %{ldflags} unhide_rb.c -o unhide_rb
gcc %{optflags} %{ldflags} unhide-gids.c unhide-output.c -o unhide-gids

%install
# binaries
install -Dp -m0755 unhide-linux %{buildroot}%{_sbindir}/unhide-linux
install -Dp -m0755 unhide-tcp %{buildroot}%{_sbindir}/unhide-tcp
install -Dp -m0755 unhide_rb %{buildroot}%{_sbindir}/unhide_rb
install -Dp -m0755 unhide-gids %{buildroot}%{_sbindir}/unhide-gids

# man pages
install -d %{buildroot}%{_mandir}/man8

install -p -m0644 man/*.8 -t %{buildroot}%{_mandir}/man8/

# symlinks
ln -s unhide-linux %{buildroot}%{_sbindir}/unhide
ln -s unhide.8 %{buildroot}%{_mandir}/man8/unhide-linux.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11185 |21cr|unibilium-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	4
%define libname	%mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		unibilium
Summary:	Terminfo parsing library
Version:	2.1.1
Release:	1
License:	LGPLv3+
Group:		System/Libraries
Url:		https://github.com/mauke/unibilium
Source0:	https://github.com/neovim/unibilium/archive/refs/tags/v%{version}.tar.gz
BuildRequires:	libtool

%description
Unibilium is a very basic terminfo library. It doesn't depend on curses or any
other library. It also doesn't use global variables, so it should be
thread-safe.

%package -n %{libname}
Summary:	Terminfo parsing library

%description -n %{libname}
Unibilium is a very basic terminfo library. It doesn't depend on curses or any
other library. It also doesn't use global variables, so it should be
thread-safe.

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and headers for %{name}.

%prep
%autosetup -p1

%build
%set_build_flags
%make_build PREFIX=%{_prefix} LIBDIR=%{_libdir}

%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}

%files -n %{libname}
%doc README.md
%doc LICENSE LGPLv3 GPLv3
%{_libdir}/libunibilium.so.%{major}
%{_libdir}/libunibilium.so.%{major}.*

%files -n %{devname}
%doc Changes
%{_includedir}/unibilium.h
%{_libdir}/libunibilium.so
%{_libdir}/pkgconfig/unibilium.pc
%{_mandir}/man3/unibi*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11186 |21cr|unignuplot-2.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define subversion D

Summary:	Simplify the command line interface with GNUPlot
Name:		unignuplot
Version:	2.0
Release:	12
Group:		System/Libraries
License:	GPL
Source:		%{name}-%{version}.0%{subversion}.tar.bz2

URL:		http://www.fltk.org
Requires:	tk
Requires:	gnuplot
BuildArch:	noarch

%description
UniGNUPlot is a Simple TK/Tcl based program what it's primary goal 
is simplify the command line interface with GNUPlot.
UniGNUPlot is a GNUplot Graphical Front-End as simple as you can 
only type the expresion, some parameter and that's all. 

%prep
%setup -q -n %{name}%{subversion}
find -name "*~" | xargs rm -f

%build

%install
mkdir -p  %{buildroot}%{_bindir}
mkdir -p  %{buildroot}%{_datadir}/%{name}/lang

install -m 755 %{name}-%{version}.0%{subversion}.tcl %{buildroot}%{_bindir}
install -m 755 lang/* %{buildroot}%{_datadir}/%{name}/lang

#Fixing lang path
perl -pi -e "s|lang/lang_|/usr/share/unignuplot/lang/lang_|g" %{buildroot}%{_bindir}/%{name}-%{version}.0%{subversion}.tcl

%files
%defattr(-,root,root)
%doc README COPYING CHANGES Doc/howto.*
%{_bindir}/%{name}-%{version}.0%{subversion}.tcl
%{_datadir}/%{name}/lang/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11187 |21cr|unionfs-fuse-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Userspace Unionfs File System
Name:		unionfs-fuse
Version:	2.2
Release:	1
License:	BSD
Group:		System/Base
Url:		https://github.com/rpodgorny/unionfs-fuse
Source0:	https://github.com/rpodgorny/unionfs-fuse/archive/v%{version}.tar.gz
Patch0:		unionfs-fuse-2.0-flags.patch
BuildRequires:	cmake
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(fuse)
Requires:	fuse

%description
unionfs-fuse overlays several directory into one single mount point

It  first  tries to access the file on the top branch and if the file
does not exist there, it continues on lower level branches. If the user
tries to modify a file on a lower level read-only branch the file is
copied to to a higher level read-write branch if the copy-on-write
(cow) mode was enabled.

%files
%doc LICENSE CREDITS NEWS
%{_mandir}/man?/*
%{_bindir}/unionfs
%{_bindir}/unionfsctl

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake \
	-DWITH_XATTR:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11188 |21cr|unison-2.53.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	File-synchronization tool for Unix and Windows
Name:		unison
Version:	2.53.0
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://www.cis.upenn.edu/~bcpierce/unison/
Source0:	https://github.com/bcpierce00/unison/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	unison.png
Source2:	%{name}-2.48.4-manual.pdf
Buildrequires:	ocaml
BuildRequires:	emacs-common
BuildRequires:	ocaml-lablgtk3-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
Requires:	openssh-clients
Requires:	x11-font-schumacher-misc
Requires:	rsync

%description
Unison is a file-synchronization tool for Unix and Windows. It allows
two replicas of a collection of files and directories to be stored on
different hosts (or different disks on the same host), modified
separately, and then brought up to date by propagating the changes in
each replica to the other. Unlike simple mirroring or backup
utilities, Unison can deal with updates to both replicas of a
distributed directory structure. Updates that do not conflict are
propagated automatically.  Conflicting updates are detected and
displayed. Unison can synchronize either locally (between volumes
mounted on the same computer) or remotely,between any pair of machines
connected to the internet, communicating over either a direct socket
link or tunneling over an rsh or an encrypted ssh connection. It is
careful with network bandwidth, and runs well over slow links such as
PPP connections. Unison is available for both Windows (95/98/NT/2K)
and Unix (Linux, Solaris). Moreover, Unison works across platforms,
allowing you to synchronize a Windows laptop with a Unix server, for
example.

%files
%doc NEWS* README* LICENSE %{name}-2.48.4-manual.pdf
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make THREADS=true UISTYLE=gtk3

%install
install -m755 src/%{name} -D %{buildroot}%{_bindir}/%{name}
install -m755 src/%{name}-fsmonitor -D %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp -f %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
cp -f %{SOURCE2} .

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=System;Utility;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11189 |21cr|units-2.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility for converting amounts from one unit to another

Name:		units
Version:	2.21
Release:	1
Source0:	ftp://ftp.gnu.org:21/pub/gnu/units/%{name}-%{version}.tar.gz
# do not update currency.units from network during build
Patch2:		0002-units-2.17-no-network.patch
Url:		http://www.gnu.org/software/units/units.html
License:	GPLv2
Group:		Office
BuildRequires:	ncurses-devel
BuildRequires:	readline-devel
BuildRequires:	python3
Requires:	python3

%description
The â€˜units' program converts quantities expressed in various scales to
their equivalents in other scales. The â€˜units' program can handle
multiplicative scale changes as well as nonlinear conversions such as
Fahrenheit to Celsius. Temperature and other nonlinear conversions
are handled using a functional notation.

%prep
%setup -q
%patch2 -p1

%build
export PYTHON=%__python3
%configure
%make

%check
make check

%install
%makeinstall_std

%files
%{_bindir}/units*
%{_datadir}/units*
%{_infodir}/*
%{_sharedstatedir}/units
%{_mandir}/man1/units.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11190 |21cr|unittest-cpp-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	2
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d
%define abi 2.0.0

Name:		unittest-cpp
Version:	2.0.0
Release:	1
Summary:	Lightweight unit testing framework for C++
License:	MIT
Group:		System/Libraries
URL:		https://github.com/unittest-cpp/unittest-cpp
Source0:	https://github.com/unittest-cpp/unittest-cpp/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}.html
Patch0:		unittest-cpp-automake.patch
BuildRequires:	git
BuildRequires:	gcc-c++
BuildRequires:	glibc-devel

%description
%{name} is a lightweight unit testing framework for C++.
Simplicity, portability, speed, and small footprint are all
very important aspects of %{name}.

#----------------------------------------------------

%package -n	%{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n	%{libname}
%{name} is a lightweight unit testing framework for C++.
Simplicity, portability, speed, and small footprint are all
very important aspects of %{name}.
This package contains library files for %{name}.

%files -n %{libname}
%doc %{name}.html AUTHORS 
%{_libdir}/libUnitTest++.so.%{major}
%{_libdir}/libUnitTest++.so.%{abi}
#----------------------------------------------------

%package -n	%{devname}
Summary:	Object files for development using %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc %{name}.html AUTHORS 
%{_includedir}/UnitTest++/
%{_libdir}/libUnitTest++.so
%{_libdir}/pkgconfig/UnitTest++.pc
#----------------------------------------------------

%prep
%autosetup -p1

cp -p %{SOURCE1} .

%build
%configure --disable-static
%make

%check
make check

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11191 |21cr|unity-asset-pool-0.8.24-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           unity-asset-pool
Version:        0.8.24
Release:        4
License:        CC-BY-SA
Summary:        Pool of assets for Unity (icons)
Url:            http://launchpad.net/unity-asset-pool
Group:          Graphical desktop/Other
# Need to fix version in url
Source:         https://launchpad.net/unity-asset-pool/0.8/%{version}/+download/%{name}-%{version}.tar.gz

BuildArch:      noarch
Provides:       unity-icon-theme = %{version}

%description
This package provides a pool of assets for Unity, currently all the icons.

%prep
%setup -q

%build

%install
# Install panel/launcher resources
pushd panel
for file in *; do
	install -D -m 0644 $file %{buildroot}%{_datadir}/unity/themes/$file
done
popd
pushd launcher
for file in *; do
	install -D -m 0644 $file %{buildroot}%{_datadir}/unity/themes/$file
done
popd
# Install unity-icon-theme
mkdir -p %{buildroot}%{_datadir}/icons/unity-icon-theme/
cp -a unity-icon-theme/* %{buildroot}%{_datadir}/icons/unity-icon-theme/
# Delete Ubuntu branding icons - will inherit the ones from the icon theme defined for GTK+
for file in "distributor-logo.png"; do
	find %{buildroot}%{_datadir} -name $file -type f -delete -print
done

%files
%doc COPYRIGHT README.txt
%{_datadir}/unity/
%{_datadir}/icons/unity-icon-theme

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11192 |21cr|universalmediaserver-11.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package	%{nil}

%define	oname	UMS

Summary:	DLNA compliant Upnp Media Server
Name:		universalmediaserver
Version:	11.6.0
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://www.universalmediaserver.com/
# WARNING: The source tarball provided by github (and even a git snapshot from it) does not build,
# because the build process wants a real git tree, and the devs really want it go this way
# (see discussion on issue #1425): so package the binary distribution tarball...
Source0:	https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/%{version}/%{oname}-%{version}-x86_64.tgz
Source10:	https://github.com/UniversalMediaServer/UniversalMediaServer/releases/download/%{version}/%{oname}-%{version}-x86.tgz
Source1:	%{name}.png
# A customized config file to force UMS using the system versions
# of the packages listed in the Requires below
Source2:	%{oname}.conf
# READMEs about the use of bundled binaries and instructions to optionally install them
Source3:	README.install
Source4:	README.ffmpeg
Source5:	README.tsmuxer
Source100:	%{name}.rpmlintrc
BuildRequires:	imagemagick
Requires:	dcraw
Requires:	ffmpeg
Requires:	flac
Requires:	jre
Requires:	mediainfo
Requires:	mencoder
Requires:	mplayer
Requires:	vlc
Requires:	youtube-dl
# FIXME: Find a way to package also the binary distribution for arm64 and drop this
ExclusiveArch:	%{ix86} x86_64
# Cannot be noarch, otherwise all the %%ifarch tests below won't work
#BuildArch:	noarch
# Obsolete the old software
%rename		ps3mediaserver

%description
This is a DLNA compliant UPnP Media Server, written in Java and originally
based on PS3 Media Server. It can stream and transcode any kind of media files
with minimum configuration, because it is powered by MEncoder, FFmpeg,
tsMuxeR (32bit only), MediaInfo, VLC and more, which all combine to provide
support for a wide range of media formats.

%files
%doc CHANGELOG.md LICENSE.txt README.md
%doc documentation/*
%{_sysconfdir}/skel/.config/%{oname}/%{oname}.conf
%{_sysconfdir}/skel/.config/%{oname}/WEB.conf
%{_bindir}/%{name}
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/linux/ffmpeg
%exclude %{_datadir}/%{name}/linux/tsMuxeR*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/icons/hicolor/*/apps/%{name}.png

#-----------------------------------------------------------------------------

%package tsmuxer
Summary:	Support programs for %{name}
License:	Freeware
Group:		Video
Requires:	%{name} = %{EVRD}

%description tsmuxer
This package contains the tsMuxeR and tsMuxeR-new programs, originally bundled
with UMS. They allow demuxing without transcoding, so using less CPU than
ffmpeg, and both work well with UMS.
However they are unmaintained and available only as 32bit executables, so UMS
itself makes them disabled by default.
We put them in a package separate from the main UMS one: install this
package if you have troubles using ffmpeg for demuxing and transcoding.

%files tsmuxer
%doc documentation/README.tsmuxer
%{_datadir}/%{name}/linux/tsMuxeR*

#-----------------------------------------------------------------------------

%package ffmpeg
Summary:	Custom ffmpeg binaries for %{name}
License:	GPLv2+
Group:		Video
Requires:	%{name} = %{EVRD}

%description ffmpeg
This package contains the ffmpeg binaries (one for 32bit and one for 64),
originally bundled with UMS.
They are provided to have a ffmpeg surely working with UMS, because many
ffmpeg releases show bugs with subtitles.
We put them in a package separate from the main UMS one: install this
package if you have troubles using the system ffmpeg.

%files ffmpeg
%doc documentation/README.ffmpeg
%{_datadir}/%{name}/linux/ffmpeg

#-----------------------------------------------------------------------------

%prep
%ifarch %{x86_64}
%setup -qn ums-%{version}
%else
%setup -T -b10 -n ums-%{version}
%endif

# Install somewhere our customized README files
install -m 0644 %{SOURCE3} %{SOURCE4} %{SOURCE5} documentation


%build
# Pre-built stuff: nothing to do


%install
# Manual install of various program components
# 1. Install the program files
# Create base directory in %%{_datadir}...
install -dm 755 %{buildroot}%{_datadir}/%{name}
# ... and copy all the UMS stuff in it
cp -af * %{buildroot}%{_datadir}/%{name}/

# 3. Provide a script in %%{_bindir} to launch the main one
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh
cd %{_datadir}/%{name}
exec ./%{oname}.sh
EOF
chmod +x %{buildroot}%{_bindir}/%{name}

# 4. Provide a .desktop file for the new script
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Universal Media Server
Comment=DLNA-compliant UPnP Media Server
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;X-MandrivaLinux-Multimedia-Video;
EOF

# 5. Install basic icons...
mkdir -p %{buildroot}{%{_iconsdir},%{_liconsdir},%{_miconsdir}}
install -m 0644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
convert %{buildroot}%{_miconsdir}/%{name}.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
install -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/%{name}.png
convert %{buildroot}%{_iconsdir}/%{name}.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png
install -m 0644 %{SOURCE1} %{buildroot}%{_liconsdir}/%{name}.png
convert %{buildroot}%{_miconsdir}/%{name}.png -resize 48x48 %{buildroot}%{_miconsdir}/%{name}.png
# ... and more hicolor icons
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
for i in 16 32 48 64 128; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/
	convert %{SOURCE1} -resize ${i}x${i} %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done

# 6. Prepare the default config files
mkdir -p %{buildroot}%{_sysconfdir}/skel/.config/UMS/
%ifarch x86_64
# Disable tsMuxeR on x86_64, because it's a 32bit-only program and is disabled by default
sed -i 's|FFmpegVideo,MEncoderVideo,tsMuxeRVideo,AviSynthFFmpeg,AviSynthMEncoder,FFmpegAudio,tsMuxeRAudio,youtubeDl|FFmpegVideo,MEncoderVideo,AviSynthFFmpeg,AviSynthMEncoder,FFmpegAudio,youtubeDl|g' %{SOURCE2}
%endif
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.config/UMS/
install -m 0644 %{buildroot}%{_datadir}/%{name}/WEB.conf %{buildroot}%{_sysconfdir}/skel/.config/UMS/

# 7. Remove the bundled docs (we take them with our %%doc macro)
rm -rf %{buildroot}%{_datadir}/%{name}/documentation

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11193 |21cr|unix2dos-2.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Unix2dos - UNIX to DOS text file format converter
Name:		unix2dos
Version:	2.2
Release:	13
License:	distributable
Group:		Text tools 
Source0:	http://ftp.topnz.ac.nz/FTP/Linux/%{name}-2.2.src.tar.bz2
Patch0:		%{name}-mkstemp.patch
Patch1:		%{name}-%{version}-segfault.patch
Patch2:		%{name}-%{version}-manpage.patch
URL:		http://www.mandriva.com

%description
A utility that converts plain text files in UNIX format to DOS format.

%prep

%setup -q -c
%patch0 -p1 -b .sec
%patch1 -p1 -b .segf
%patch2 -p1 -b .man
perl -pi -e "s,^#endif.*,#endif,g;s,^#else.*,#else,g" *.[ch]

%build
gcc %{optflags} -o %{name} unix2dos.c

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m755 %{name} %{buildroot}%{_bindir}
install -m644 %{name}.1 %{buildroot}%{_mandir}/man1

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root,0755)
%doc COPYRIGHT
%{_bindir}/%{name}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11194 |21cr|unixcw-3.5.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname cw %{major}
%define devname %mklibname cw -d

Summary:	Shared library for Morse programs
Name:		unixcw
Version:	3.5.0
Release:	4
License:	GPLv2+
Group:		Communications
URL:		http://sourceforge.net/projects/unixcw
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}.tar.gz

%description
The UnixCW utilities add a general purpose CW library to your system, and
a small set of applications based around this library.  These applications
form a Morse code tutor suite, useful for Amateur and Marine radio operators.

%files
%doc AUTHORS COPYING README
%{_bindir}/*
%{_mandir}/man?/*

#-------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
UnixCW libraries.

%files -n %{libname}
%{_libdir}/libcw.so.%{major}*

#-------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
UnixCW utility libraries.

%files -n %{devname}
%{_libdir}/libcw.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc

#-------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make 

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11195 |21cr|unknown-horizons-2019.1-1.gitc2f4d6.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Unknown-Horizons based on Fifengine is no longer in development.
# We are porting it to Godot Engine.

%define commit c2f4d607b33cd3a7eb2bce46c567ce1f1d83ec59
%define commit_short %(echo %{commit} | head -c6)

%define	icon_name uhorizons

Summary:	A popular economy and city building 2D RTS game
Name:		unknown-horizons
Version:	2019.1
Release:	1.git%{commit_short}.1
License:	GPLv2+ and CC-BY-SA 3.0 and OFL
Group:		Games/Strategy
Url:		https://www.unknown-horizons.org
Source0:	https://github.com/unknown-horizons/unknown-horizons/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source1:	%{name}.svg
Source100:	%{name}.rpmlintrc
Patch0:		unknown-horizons-2019.1-fix-games-path.patch
Patch1:		unknown-horizons-version.patch
BuildRequires:	desktop-file-utils
# Required to build man page
BuildRequires:	docbook-style-xsl
BuildRequires:	fdupes
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	python3-distro
BuildRequires:	python3-pillow
# Required to build man page
BuildRequires:	xsltproc
BuildRequires:	fife-devel >= 0.4.2
BuildRequires:	fifechan-devel >= 0.1.5
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
Requires:	fife >= 0.4.2
Requires:	python3-yaml
Requires:	%{name}-data = %{version}
BuildArch:	noarch

%description
Unknown Horizons is a 2D real-time strategy simulation with an emphasis
on economy and city building. Expand your small settlement to a strong
and wealthy colony, collect taxes and supply your inhabitants with
valuable goods. Increase your power with a well balanced economy and
with strategic trade and diplomacy.

%files -f %{name}.lang
%doc doc/AUTHORS.md doc/LICENSE doc/CHANGELOG.md
%{_gamesbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{py3_puresitedir}/horizons/
%{py3_puresitedir}/*.egg-info
%{_iconsdir}/hicolor/scalable/apps/%{icon_name}.svg
%{_mandir}/man6/%{name}.6.*

#----------------------------------------------------------------------------

%package data
Summary:	Games data for the %{name} game
Requires:	%{name} = %{version}
BuildArch:	noarch

%description data
This package contains data files for %{name} game.

%files data
%doc README.md
%{_gamesdatadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}


%build
%py3_build build_i18n


%install
%py3_install

# Process icons
# KDE has problems handling icon files starting with 'unknown' followed by a dash
# (ex: unknown-horizons.svg) and displays unknown.* icon. We fix this by changing
# the icon name in .desktop file.
rm -f %{buildroot}%{_datadir}/pixmaps/%{name}.xpm
rmdir %{buildroot}%{_datadir}/pixmaps/
install -D -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{icon_name}.svg

# Install and massage the provided .desktop file
desktop-file-install	--vendor="" \
	--remove-category="Simulation" \
	--set-icon=%{icon_name} \
	--dir %{buildroot}%{_datadir}/applications \
	 build/share/applications/%{name}.desktop

# Fix perms 
chmod +x %{buildroot}%{py3_puresitedir}/horizons/util/cmdlineoptions.py
chmod +x %{buildroot}%{py3_puresitedir}/horizons/engine/generate_atlases.py
find %{buildroot}%{_gamesdatadir}/%{name}/content/gfx -name "tm_*"| xargs chmod -x

# Put the translation files where find_lang can actually find them
# and give a symlink to the program to allow using them
install -d -m 0755 %{buildroot}%{_datadir}/locale
pushd %{buildroot}%{_gamesdatadir}/%{name}/content/lang
	mv * %{buildroot}%{_datadir}/locale
	rm -f %{buildroot}%{_datadir}/locale/stats.json
	cd ..
	rmdir lang
	ln -s %{_datadir}/locale lang
popd


%find_lang %{name} %{name}-server %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11196 |21cr|unpackssi-20030612-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		unpackssi
Summary:	.SSI File Unpacker
Version:	20030612
Release:	4
Source0:	http://static.jonof.id.au/dl/%{name}.zip
Patch0:		unpackssi-20030612-mdv-linuxify.patch
URL:		http://www.jonof.id.au/misc#unpackssi

Group:		Archiving/Compression
License:	GPLv2+

%description
This is a small program to extract the files from the .SSI package format
which Sunstorm Interactive expansion packs for games like Duke Nukem 3D
are distributed in.


%prep
%setup -q -c
%patch0 -p1

%build
%make CFLAGS="%{optflags} %{ldflags}"

%install
rm -rf %{buildroot}
install -Dm 0755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc readme.txt
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11197 |21cr|unpaper-6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Post-processing scanned and photocopied book pages
Name:		unpaper
Version:	6.1
Release:	1
License:	GPL
Group:		Graphics
# the newest version is 0.3, the old one was 1.1. Epoch is needed.
Epoch:		1
Source:		http://www.flameeyes.eu/files/%{name}-%{version}.tar.xz
Url:		http://unpaper.berlios.de/
BuildRequires:  netpbm                                                                                                                                                                                         
BuildRequires:  xsltproc
BuildRequires:  pkgconfig(libavformat)
BuildRequires:  pkgconfig(libavcodec)
BuildRequires:  pkgconfig(libavutil)

%description
unpaper is a post-processing tool for scanned sheets of paper,
especially for book pages that have been scanned from previously
created photocopies.  The main purpose is to make scanned book pages
better readable on screen after conversion to PDF. Additionally,
unpaper might be useful to enhance the quality of scanned pages before
performing optical character recognition (OCR).

unpaper tries to clean scanned images by removing dark edges that
appeared through scanning or copying on areas outside the actual page
content (e.g.  dark areas between the left-hand-side and the
right-hand-side of a double- sided book-page scan).  The program also
tries to detect disaligned centering and rotation of pages and will
automatically straighten each page by rotating it to the correct
angle. This is called "deskewing".  Note that the automatic processing
will sometimes fail. It is always a good idea to manually control the
results of unpaper and adjust the parameter settings according to the
requirements of the input. Each processing step can also be disabled
individually for each sheet.

Input and output files can be in either .pbm or .pgm format, as also
used by the Linux scanning tools scanimage and scanadf.  Conversion to
PDF can e.g. be achieved with the Linux tools pgm2tiff, tiffcp and
tiff2pdf.


%prep
%setup -q


%build
%configure
%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/doc

%files
%doc doc/img COPYING
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11198 |21cr|unrtf-0.21.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		unrtf
Version:	0.21.9
Release:	5
Source0:	http://ftp.gnu.org/gnu/unrtf/unrtf-%{version}.tar.gz
Source1:	http://ftp.gnu.org/gnu/unrtf/unrtf-%{version}.tar.gz.sig
# Fix CVE-2016-10091
# https://bugzilla.redhat.com/show_bug.cgi?id=1409546
# http://hg.savannah.gnu.org/hgweb/unrtf/rev/3b16893a6406
Patch0:		CVE-2016-10091_replace_sprintf_with_snprintf.patch
URL:		http://www.gnu.org/software/unrtf/unrtf.html
License:	GPLv3
Summary:	RTF to other formats converter
Group:		Text tools

%description
UnRTF is a moderately complicated converter from RTF to other
formats, including HTML, LaTeX, text, and PostScript. Converting
to HTML, it supports tables, fonts, colors, embedded images,
hyperlinks, paragraph alignment among other things. All other
conversions are "alpha"--just begun.

%prep
%setup -q
%apply_patches
sed -i -e 's#/usr/local/lib/unrtf/#%{_datadir}/unrtf/#' src/main.h
sed -i -e 's#/usr/local/lib/unrtf/#%{_datadir}/unrtf/#' src/path.h
sed -i -e 's#/usr/local/lib/unrtf/#%{_datadir}/unrtf/#' src/my_iconv.h

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

%files
%doc AUTHORS README NEWS
%{_mandir}/man1/%{name}.1*
%{_bindir}/%{name}
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11199 |21cr|unsermake-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		unsermake
Version:	0.4
Release:	8
Summary:	Buildsystem utility to supersed auto* tools
Summary(pt_BR):	Utilitário para sobreposição das ferramentas auto* em buildsystems
Group:		Development/Other
Group(pt_BR):	Utilitários
Group(es):	Utilitarios
License:	GPL
URL:		http://www.kde.org/
Source0:	%{name}-%{version}.tar.bz2
Source1:	unsermake.sh
Requires:	python
BuildArch:	noarch

%description
Buildsystem utility to supersed auto* tools

%description -l pt_BR
Utilitário para sobreposição das ferramentas auto* em buildsystems

%prep
%setup -q

%build

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_datadir}/unsermake
install -m644 *.py *.um %{buildroot}%{_datadir}/unsermake
install -m755 unsermake %{buildroot}%{_datadir}/unsermake

install -m755 %{SOURCE1} -D %{buildroot}/%{_sysconfdir}/profile.d/unsermake.sh

%clean
rm -rf %{buildroot}

%files 
%defattr(-,root,root)
%doc README COPYING TODO doc/{auug97.pdf,example.obj,unsermake-talk.sxi}
%{_datadir}/%{name}
%{_sysconfdir}/profile.d/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11200 |21cr|unshield-1.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A program to extract InstallShield cabinet files
Name:		unshield
Version:	1.4.2
Release:	2
License:	MIT
Group:		Networking/Other
Url:		http://synce.sourceforge.net/
Source0:	http://downloads.sourceforge.net/synce/%{name}-%{version}.tar.gz
# From upstream:
#Patch0001:	0001-Fix-build-process-in-build-jails.patch
# From openSUSE:
Patch0100:	libconvert_utf_static.patch
BuildRequires:	libtool
BuildRequires:	cmake
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
Cabinet (.CAB) files are a form of archive, which is used by the InstallShield
installer software. The unshield program simply unpacks such files.

See http://synce.sourceforge.net/ for more information.

%files
%doc ChangeLog LICENSE
%{_bindir}/unshield
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library to extract InstallShield cabinet files
Group:		System/Libraries

%description -n %{libname}
Cabinet (.CAB) files are a form of archive, which is used by the InstallShield
installer software. The unshield program simply unpacks such files.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Cabinet (.CAB) files are a form of archive, which is used by the InstallShield
installer software. The unshield program simply unpacks such files.

%files -n %{devname}
%doc ChangeLog LICENSE
%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11201 |21cr|untie-0.4-0.2.git14b92c7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 14b92c7

Summary: Process namespace creator
Name: untie
Version: 0.4
Release: 0.2.git%{git}
License: GPL
Group: Shells
URL: http://guichaz.free.fr/untie
Source0: untie-%{version}-%{git}.tar.gz

%description
untie is a tool used to launch commands in new namespaces.

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
%makeinstall PREFIX=%{buildroot}/%{_prefix}

%files
%doc COPYING NEWS README
%{_sbindir}/*
%doc %{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11202 |21cr|up-0.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Displays the uptime in a human readable format
Name:		up
Version:	0.3
Release:	15
License:	GPL
Group:		System/Base
URL:		http://www.burdell.org/up.php3
Source:		%{name}-%{version}.tar.bz2

%description
up displays the uptime of the system accounting for decades, years, weeks,
days, hours, and minutes.  It can output the uptime in its standard hardcore
format or the standard 'uptime' (that program that comes with procps) format
for quick comparisons with other systems.

%prep

%setup -n %{name}-%{version}

%build
gcc %{optflags} -o up up.c

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -m755 up %{buildroot}%{_bindir}/
install -m644 up.1 %{buildroot}%{_mandir}/man1/

%clean
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README ChangeLog
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11203 |21cr|updateads-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Update BIND ad server listings
Name:		updateads
Version:	1.0
Release:	8
License:	BSD-like
Group:		Monitoring
URL:		http://prefetch.net/code/updateads.pl.html
Source0:	http://prefetch.net/code/updateads.pl.bz2
Requires:	bind
BuildArch:	noarch

%description
updatedads.pl is a Perl script that can be used to retrieve and format the
latest list of well known ad servers for placement in a BIND zone file.

%prep

%setup -q -c -T
bzcat %{SOURCE0} > %{name}

%build

%install
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -m0755 %{name} %{buildroot}%{_bindir}/%{name}

%clean
[ -n "%{buildroot}" -a "%{buildroot}" != / ] && rm -rf %{buildroot}

%files
%defattr(-,root,root)
%attr(0755,root,root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11204 |21cr|upnp-inspector-0.2.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarball_name UPnP-Inspector

Summary:	An UPnP Device and Service analyzer
Name:		upnp-inspector
Version:	0.2.2
Release:	6
Group:		Networking/Other
License:	MIT
Url:		https://coherence.beebits.net/wiki/UPnP-Inspector
Source0:	https://coherence.beebits.net/download/%{tarball_name}-%version.tar.bz2
BuildRequires:	pkgconfig(python)
BuildRequires:	pythonegg(setuptools)
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
Requires:	python-twisted-mail
Requires:	pythonegg(coherence) >= 0.6.0
Requires:	pygtk2.0
Requires:	rpm-helper
Provides:	UPnP-Inspector = %{EVRD}
BuildArch:	noarch

%description
The Inspector is an UPnP Device and Service analyzer, and a debugging tool,
based on the Coherence DLNA/UPnP framework.
Modeled loosely after the Intel UPnP Device Spy and Device Validator.
It is a GUI to discover and explore UPnP devices on your network.
Detected devices are displayed in a tree-view, where actions can be called and
state-variables be queried.

%files
%doc LICENCE NEWS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{py_puresitedir}/UPnP_Inspector*.egg-info
%{py_puresitedir}/upnp_inspector/

#----------------------------------------------------------

%prep
%setup -q -n %{tarball_name}-%version

%build
python setup.py build

%install
python setup.py install --skip-build --root=%{buildroot} 


# install icons
mkdir -p %{buildroot}%{_miconsdir}
mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}%{_liconsdir}
install -m 644 upnp_inspector/icons/inspector-logo.png %{buildroot}%{_iconsdir}/%name.png
convert -scale 16x16 upnp_inspector/icons/inspector-logo.png %{buildroot}%{_miconsdir}/%name.png
convert -scale 48x48 upnp_inspector/icons/inspector-logo.png %{buildroot}%{_liconsdir}/%name.png

# menu
mkdir -p  %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=UPnP-Inspector
Comment=An UPnP Device and Service analyzer
Exec=upnp-inspector
Icon=upnp-inspector
StartupNotify=true
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Internet;X-MandrivaLinux-CrossDesktop;
EOF

desktop-file-validate  %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11205 |21cr|upse-1.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2.0.0
%define	libname %mklibname upse %{major}
%define	devname %mklibname -d upse

Summary:	Playstation sound emulator
Name:		upse
Version:	1.0.0
Release:	10
License:	GPLv2+
Group:		Sound
# URLs are dead: use stored sources
Url:		http://nenolod.net/upse
Source0:	%{name}-%{version}.tbz2
Patch0:		%{name}-1.0.0-new-audacious.patch
Patch1:		%{name}-disable-audacious.patch
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(ao)

%description
UPSE is a work in progress Playstation sound emulator. Unlike other emulators
(SexyPSF), UPSE supports playing back most (a few replayers seem to have bugs
or are dependent on some undocumented feature) PS1 module formats.

%files
%doc NEWS THANKS TODO AUTHORS
%{_bindir}/upse123
%{_mandir}/man1/upse123.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Playstation sound emulator library
Group:		System/Libraries
%description -n %{libname}
UPSE is a work in progress Playstation sound emulator. Unlike other emulators
(SexyPSF), UPSE supports playing back most (a few replayers seem to have bugs
or are dependent on some undocumented feature) PS1 module formats.
Thid package contains the main library for %{name}.

%files -n %{libname}
%doc AUTHORS
%{_libdir}/libupse.so.%{major}
%{_libdir}/libupse.so.2

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Playstation sound emulator library
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	libupse-devel = %{EVRD}

%description -n %{devname}
UPSE is a work in progress Playstation sound emulator. Unlike other emulators
(SexyPSF), UPSE supports playing back most (a few replayers seem to have bugs
or are dependent on some undocumented feature) PS1 module formats.
Thid package contains the development files for %{name}.

%files -n %{devname}
%doc AUTHORS
%{_includedir}/%{name}/*.h
%{_libdir}/libupse.so

#-----------------------------------------------------------------------------

%if 0
BuildRequires:	libaudacious-devel >= 5:1.4

%package -n audacious-upse
Summary: Playstation sound emulator plugin for Audacious
Group: Sound
Requires: audacious

%description -n audacious-upse
UPSE is a work in progress Playstation sound emulator. Unlike other
emulators (SexyPSF), UPSE supports playing back most (a few replayers
seem to have bugs or are dependent on some undocumented feature) PS1
module formats.
This adds Playstation sound emulation to the Audacious Media Player.

%files -n audacious-upse
%{_libdir}/audacious/Input/upse-audacious.so
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11206 |21cr|uptimed-0.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname %{name} %{major}

Summary:	A daemon to record and keep track of system uptimes
Name:		uptimed
Version:	0.4.0
Release:	3
License:	GPLv2+
Group:		Monitoring
Url:		http://podgorny.cz/moin/Uptimed
Source0:	http://podgorny.cz/uptimed/releases/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(systemd)

%description
Uptimed is an uptime record daemon keeping track of the highest
uptimes the system ever had. Instead of using a pid file to
keep sessions apart from each other, it uses the system boot
time.

Uptimed has the ability to inform you of records and milestones
though syslog and e-mail, and comes with a console front end to
parse the records, which can also easily be used to show your
records on your Web page.

%files
%doc AUTHORS CREDITS ChangeLog INSTALL.cgi INSTALL.upgrade README.md TODO sample-cgi/
%config(noreplace) %{_sysconfdir}/uptimed.conf
%{_unitdir}/%{name}.service
%{_sbindir}/uptimed
%dir /var/spool/uptimed
%{_bindir}/uprecords
%{_mandir}/*/*

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Generic libraries need by uptimed
Group:		System/Libraries
Obsoletes:	%{_lib}uptimed-devel < 0.4

%description -n %{libname}
Generic libraries needed by uptimed.

%files -n %{libname}
%{_libdir}/libuptimed.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure \
	--with-systemdsystemunitdir=%{_unitdir} \
	--disable-static
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/var/spool/%{name}
mv %{buildroot}%{_sysconfdir}/uptimed.conf-dist %{buildroot}%{_sysconfdir}/uptimed.conf

rm -rf %{buildroot}%{_libdir}/libuptimed.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11207 |21cr|uqm-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Ur-Quan Masters
Name:		uqm
Version:	0.8.0
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://sc2.sourceforge.net
Source0:	https://downloads.sourceforge.net/project/sc2/UQM/0.8/uqm-%{version}-src.tgz
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
Patch0:		uqm-0.8.0-optflags.patch
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(vorbis)
Requires:	%{name}-content

%description
The Ur-Quan Masters is a port of the 3DO version of Star Control 2.

%files
%doc AUTHORS BUGS COPYING WhatsNew ChangeLog README Contributing
%doc doc/users/manual.txt
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# create configuration
cat > config.state <<EOF
CHOICE_debug_VALUE='nodebug'
CHOICE_graphics_VALUE='opengl'
CHOICE_sound_VALUE='mixsdl'
CHOICE_ioformat_VALUE='stdio_zip'
INPUT_install_prefix_VALUE='%{_gamesbindir}'
INPUT_install_bindir_VALUE='%{_gamesbindir}'
INPUT_install_libdir_VALUE='%{_libdir}'
INPUT_install_sharedir_VALUE='%{_gamesdatadir}'
EOF


# non-readable debug
find . -name "*.c" -o -name "*.h" -o -name "*.cpp" |xargs chmod 0644
chmod 644 AUTHORS BUGS COPYING WhatsNew ChangeLog README Contributing
#

%build
./build.sh uqm < /dev/null


%install
perl -pi -e 's|%{_prefix}|%{buildroot}%{_prefix}|' build.vars
./build.sh uqm install

# icons
install -D -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

# menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat >  %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Ur-Quan Masters
Comment=Port of the 3DO version of Star Control 2
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;StrategyGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11208 |21cr|uqm-3domusic-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name	uqm

Name:		%{base_name}-3domusic
Version:	0.8.0
Release:	2
Summary:	Optional 3DO music package for Ur-Quan Masters game
License:	GPL
Group:		Games/Strategy
URL:		https://sc2.sourceforge.net
Source:		https://downloads.sourceforge.net/project/sc2/UQM/0.8/%{base_name}-%{version}-3domusic.uqm
Requires:	%{base_name}
BuildArch:	noarch

%description
The Ur-Quan Masters is a port of the 3DO version of Star Control 2.

%prep
%setup -c -q

%build

%install
install -d -m 755 %{buildroot}%{_gamesdatadir}/%{base_name}/content
cp -pr * %{buildroot}%{_gamesdatadir}/%{base_name}/content

%clean

%files
%{_gamesdatadir}/%{base_name}/content/3domusic

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11209 |21cr|uqm-content-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uqm

Summary:	Mandatory content package for Ur-Quan Masters game
Name:		%{oname}-content
Version:	0.8.0
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://sc2.sourceforge.net
Source0:	https://downloads.sourceforge.net/project/sc2/UQM/0.8/uqm-%{version}-content.uqm
Requires:	%{oname}
Provides:	%{oname}-data = %{EVRD}
BuildArch:	noarch

%description
The Ur-Quan Masters is a port of the 3DO version of Star Control 2.

%files
%{_gamesdatadir}/%{oname}/content/*

#----------------------------------------------------------------------------

%prep
%setup -c -q

%build

%install
install -d -m 755 %{buildroot}%{_gamesdatadir}/%{oname}/content
cp -pr * %{buildroot}%{_gamesdatadir}/%{oname}/content

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11210 |21cr|uqm-voice-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name	uqm

Name:		%{base_name}-voice
Version:	0.8.0
Release:	1
Summary:	Optional speech package for Ur-Quan Masters game
License:	GPL
Group:		Games/Strategy
URL:		http://sc2.sourceforge.net
Source:		https://downloads.sourceforge.net/project/sc2/UQM/0.8/%{base_name}-%{version}-voice.uqm
Requires:	%{base_name}
BuildArch:	noarch

%description
The Ur-Quan Masters is a port of the 3DO version of Star Control 2.

%prep
%setup -c -q

%build

%install
install -d -m 755 %{buildroot}%{_gamesdatadir}/%{base_name}/content
cp -pr * %{buildroot}%{_gamesdatadir}/%{base_name}/content

%clean

%files
%{_gamesdatadir}/%{base_name}/content/3dovoice

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11211 |21cr|urbackup-client-2.5.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		urbackup-client
Version:	2.5.24
Release:	1
Summary:	Efficient Client-Server backup system for Linux and Windows
Group:		Archiving/Backup
License:	AGPL-3.0+
Url:		http://www.urbackup.org/
Source0:	https://hndl.urbackup.org/Client/%{version}/%{name}-%{version}.tar.gz
Source2:	%{name}-snapshot.cfg
Patch1:		urbackup-client-fix-link-sqlite3.patch
Patch2:		urbackup-client-gcc13.patch
BuildRequires: gcc-c++
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(cryptopp)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(sqlite3)

Requires:      urbackup-common
Requires(pre): user(urbackup)

%description
Efficient Client-Server Backup system for Linux and Windows
with GPT and UEFI partition. A client for Windows lets you
backup open files and complete partition images. Backups
are stored to disks in a efficient way (deduplication)
on either Windows or Linux servers.

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%files
%doc AUTHORS COPYING ChangeLog README
%config(noreplace) %{_sysconfdir}/sysconfig/urbackupclient
%dir %{_sysconfdir}/urbackup
%config(noreplace) %{_sysconfdir}/urbackup/*
%{_bindir}/urbackupclientctl
%{_bindir}/blockalign
%{_sbindir}/urbackupclientbackend
%{_unitdir}/%{name}.service
%{_mandir}/man1/*
%dir %attr(0755,urbackup,urbackup) %{_datadir}/urbackup
%attr(-,urbackup,urbackup) %{_datadir}/urbackup/*
%dir %attr(0755,urbackup,urbackup) %{_localstatedir}/urbackup
%attr(-,urbackup,urbackup) %{_localstatedir}/urbackup/*
%ghost %{_logdir}/urbackupclient.log

#-------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}.0

sed -i "s@/usr/local/sbin/urbackupclientbackend@%{_sbindir}/urbackupclientbackend@g" urbackupclientbackend-redhat.service
sed -i 's,armhf,armh,' cryptoplugin/src/configure.ac

%build
export SUID_CFLAGS=-fPIE
export SUID_LDFLAGS=-fpie
%ifarch %{ix86}
%global optflags %{optflags} -msse2
%endif
%ifarch %{e2k}
%global optflags %{optflags} -mno-sse4.2 -mno-avx
%endif
autoreconf -vfi
%configure \
    --without-embedded-sqlite3 \
    --enable-headless


%make_build

%install
%makeinstall_std
mkdir -p %{buildroot}{%{_unitdir},%{_mandir}/man1,%{_logdir},%{_localstatedir}/urbackup}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_initdir}

install -m 644 defaults_client %{buildroot}%{_sysconfdir}/sysconfig/urbackupclient
install -m 644 urbackupclientbackend-redhat.service %{buildroot}%{_unitdir}/%{name}.service
install -m 644 docs/urbackupclientbackend.1 %{buildroot}%{_mandir}/man1/urbackupclientbackend.1

for f in linux_snapshot/*_snapshot; do
    [ -f "$f" ]
    install -m 755 "$f" "%{buildroot}%{_datadir}/urbackup/scripts/"
done

install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/urbackup/snapshot.cfg
touch %{buildroot}%{_logdir}/urbackupclient.log

#fix permissions
chmod -x %{buildroot}%{_sysconfdir}/urbackup/*.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11212 |21cr|urbackup-server-2.5.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		urbackup-server
Version:	2.5.31
Release:	1

Summary:	Efficient Client-Server backup system for Linux and Windows
License:	AGPL-3.0+
Group:		Archiving/Backup

Url:		http://www.urbackup.org/
Source0:	http://hndl.urbackup.org/Server/%{version}/urbackup-server-%{version}.tar.gz
Source10:	urbackup.sysusers.conf
Patch4:		urbackup-server-2.5.28-no-update.patch

%ifnarch %{e2k} %{ix86}
Requires: guestfs-tools
%endif

BuildRequires: gcc-c++
BuildRequires: pkgconfig(libcurl)
BuildRequires: pkgconfig(fuse)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(libzstd)
BuildRequires: pkgconfig(cryptopp)
BuildRequires: pkgconfig(lmdb)
BuildRequires: pkgconfig(sqlite3)
BuildRequires: lua-devel
Requires:      urbackup-common = %{EVRD}
Requires(pre): user(urbackup)

%description
Efficient Client-Server Backup system for Linux and Windows
with GPT and UEFI partition. A client for Windows lets you
backup open files and complete partition images. Backups
are stored to disks in a efficient way (deduplication)
on either Windows or Linux servers.

%files
%doc AUTHORS COPYING ChangeLog README
%attr(4710,root,urbackup) %{_bindir}/urbackup_snapshot_helper
%attr(4710,root,urbackup) %{_bindir}/urbackup_mount_helper
%attr(-,urbackup,urbackup) %{_datadir}/urbackup/*
%{_bindir}/urbackupsrv
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_prefix}/lib/firewalld/services/%{name}.xml
%ghost %{_logdir}/urbackup.log
%attr(-,urbackup,urbackup) %{_localstatedir}/urbackup/dataplan_db.txt
%attr(0644,root,root) %{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#------------------------------------------------------------
%package -n urbackup-common
Summary:	Common directories and user for urbackup server and client
Group:		Archiving/Backup
Requires(pre):	/bin/systemd-sysusers

%description -n urbackup-common
Common directories and user for urbackup server and client

%files -n urbackup-common
%dir %attr(0755,urbackup,urbackup) %{_datadir}/urbackup
%dir %attr(0755,urbackup,urbackup) %{_localstatedir}/urbackup
%{_sysusersdir}/urbackup.conf

%pre -n urbackup-common
%sysusers_create_package urbackup %{SOURCE10}


#------------------------------------------------------------

%prep
%autosetup -p1

sed -i "s@/var/urbackup@%{_localstatedir}/urbackup@g" docs/urbackupsrv.1
sed -i "s@/etc/default/urbackupsrv@%{_sysconfdir}/sysconfig/%{name}@g" %{name}.service
sed -i 's,armhf,armhf|armh|armv7l,' cryptoplugin/src/configure.ac

%build
export SUID_CFLAGS=-fPIE
export SUID_LDFLAGS=-fpie
%ifarch %{ix86}
export CXXFLAGS="-msse2 -O2 -g"
%endif
autoreconf -vfi
%configure \
    --enable-packaging \
    --with-mountvhd \
    --without-embedded-cryptopp \
    --without-embedded-sqlite3 \
    --without-embedded-lua \
    --without-embedded-lmdb

%make_build

%install
%makeinstall_std
mkdir -p %{buildroot}{%{_unitdir},%{_mandir}/man1,%{_sysconfdir}/logrotate.d,%{_logdir},%{_localstatedir}/urbackup}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_prefix}/lib/firewalld/services

install -m 644 defaults_server %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m 640 urbackup-server-firewalld.xml %{buildroot}%{_prefix}/lib/firewalld/services/%{name}.xml
install -m 644 urbackup-server.service %{buildroot}%{_unitdir}/%{name}.service
install -m 644 docs/urbackupsrv.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -m 644 logrotate_urbackupsrv  %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
touch %{buildroot}%{_logdir}/urbackup.log

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/urbackup.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11213 |21cr|uriparser-0.9.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname uriparser %{major}
%define devname %mklibname uriparser -d

Summary:	URI parsing library - RFC 3986
Name:		uriparser
Version:	0.9.7
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://uriparser.github.io
Source0:	https://github.com/uriparser/uriparser/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(libcpptest)

%description
Uriparser is a strictly RFC 3986 compliant URI parsing library written in C.
uriparser is cross-platform, fast, supports Unicode and is licensed under the
New BSD license.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	URI parsing library - RFC 3986
Group:		System/Libraries

%description -n %{libname}
Uriparser is a strictly RFC 3986 compliant URI parsing library written in C.
uriparser is cross-platform, fast, supports Unicode and is licensed under the
New BSD license.

%files -n %{libname}
%doc THANKS AUTHORS COPYING ChangeLog
%{_libdir}/liburiparser.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the uriparser library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use uriparser.

%files -n %{devname}
%{_bindir}/uriparse
%{_datadir}/doc/%{name}/html/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/%{name}-%{version}/
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i 's/\r//' THANKS
sed -i 's/\r//' COPYING
iconv -f iso-8859-1 -t utf-8 -o THANKS{.utf8,}
mv THANKS{.utf8,}

%build
%cmake \
	-DURIPARSER_BUILD_TESTS:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11214 |21cr|urlmon-4.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# exclure requires bundled in perl
%define __requires_exclude ^perl\\(ctime.pl\\)

Summary:	An URL monitor
Name:		urlmon
Version:	4.0
Release:	11
Source0:	%{name}-%{version}.tar.bz2
Patch0:		urlmon-4.0-perl-path.patch.bz2
License:	GPL
Group:		Networking/Other
Url: http://www.ibiblio.org/pub/Linux/apps/www/mirroring/
Requires:	perl >= 5
Requires:	perl-Digest-MD5
Requires:	perl-libnet
Requires:	perl-MIME-Base64
Requires:	perl-HTML-Parser
Requires:	perl-libwww-perl
Requires:	perl-MD5
Buildarch:	noarch

%description
urlmon makes a connection to a web site and records the last_modified
time for that url. Upon subsequent calls, it will check the URL again,
this time comparing the information to the previously recorded
times. Since the last_modified data is not required to be given by the
http (it's optional), urlmon will then take an MD5 checksum.  This is
actually more accurate, as time stamps can be faked or
inaccurate. Filtering is possible, so that URLs whose content is
always changing (due to server-side parsing or some equivalent, as
often used in rotating adverstisements) can accurately be monitored.

%prep
%setup
%patch0 -p1 -b .perl-path

%build

%install
rm -rf $RPM_BUILD_ROOT

install -d %buildroot/%_bindir
install -m 755 urlmon %buildroot/%_bindir
install -m 755 nscape2urlmon %buildroot/%_bindir

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.txt FILTERS.txt MODULES.txt URLMONRC.txt COPYING
%doc contrib
%_bindir/urlmon
%_bindir/nscape2urlmon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11215 |21cr|urpmc-1.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		urpmc
Summary:	User rpm change(s|log)
Version:	1.2
Release:	14
Source0:	http://ben.reser.org/mandrake/%{name}/%{name}-%{version}.tar.bz2
URL:		http://ben.reser.org/cvsweb/urpmc/
Group:		System/Configuration/Packaging
BuildArch:	noarch
License:	GPL
Requires:	perl >= 2:5.8.0
BuildRequires:	perl-devel >= 2:5.8.0

%description
urpmc will run urpmi.update on one or more media, get the list of packages
that an auto-select would install, and show the changelogs of those packages
from the hdlist.

This program should be suitable for adding to a cronjob so you can see what
updates you need to install and why.  Especially useful for cooker developers
so they can see what changes they are installing, not just the package names.

%prep
%setup -q

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc README Changes COPYING
%{_mandir}/man1/*
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11216 |21cr|urpmdiff-1.9-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		urpmdiff
Version:	1.9
Release:	8
Summary:	A tool to show diffs between rpms
License:	GPL
Group:		Development/Other
Source0:	%{name}-%{version}.tar.bz2
Url:		http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/%{name}
BuildArch:	noarch
BuildRequires:	perl-devel

%description
%{name} shows the differences between two rpms. It's intended to help
packagers to know what has changed between an old and a new version of an rpm.
Its output is reminiscent of the unified diff format.

%prep
%setup -q -n %{name}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean 
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc ChangeLog
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11217 |21cr|urtsb-0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define         oname UrTSB
Summary:        Game Server Browser for the FPS Urban Terror
Name:           urtsb
Version:        0.4
Release:        4
License:        GPLv3
Group:          Games/Other
Source0:        http://urtsb.googlecode.com/files/%{oname}-%{version}.tar.gz
Url:            http://code.google.com/p/%{name}/
BuildRequires:  python-devel >= 2.6
Requires:       pygtk2.0

%description
UrTSB is a Game Server Browser for the First Person Shooter game Urban Terror 
(http://www.urbanterror.info), targeted to run on Linux and Windows.

Features:

* Server search (master server query)
* Filter results (including UrT specific game types)
* Display server details - players (with kills, ping) and server vars
* Manage favorites - add/remove servers to a favorites list
* Buddy list - manage a buddy list and search servers your buddies are playing 
  on (note: the search is case sensitive!). Supports sub-strings. For example 
  if you add only the string [clan-tag] a buddy search will return all servers
  where players with [clan-tag] in their name are playing. Good to see where 
  your clan m8s are playing :)
* of course launching Urban Terror with automatic connection to a selected 
  server
* view a list of servers you recently played on (if UrTSB was used to connect) 
  including date of last connection and number of connections
* RCON feature


%prep 
%setup -qn %{oname}-%{version}

%build
OVERRIDE_CFLAGS="%{optflags}" python setup.py build


%install
rm -rf %{buildroot}
#python setup.py install --skip-build --root %{buildroot} \
python setup.py install --skip-build --root=%{buildroot} \
                        --prefix=%{_prefix} \

#Icon installation
mkdir -p %{buildroot}%{_datadir}/pixmaps/
cp -p %{name}_src/resource/icons/logo.png       %{buildroot}%{_datadir}/pixmaps/%{name}.png

#Menu entry creation
%{__mkdir_p} %{buildroot}%{_datadir}/applications
%{__cat} > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=%{oname}
Comment=Game Server Browser for the FPS Urban Terror
GenericName=Game Server Browser for the FPS Urban Terror
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=ArcadeGame;
EOF


#%find_lang %name --all-name

%files
# -f %{name}.lang
%{_bindir}/%{name}
%{python_sitelib}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11218 |21cr|usbguard-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global selinuxtype targeted
%global moduletype contrib
%define semodule_version 0.0.4

Name:		usbguard
Version:	1.1.2
Release:	1
Summary:	A tool for implementing USB device usage policy
Group:		System/Configuration/Other
License:	GPLv2+
## Not installed
# src/ThirdParty/Catch: Boost Software License - Version 1.0
URL:		https://usbguard.github.io/
Source0:	https://github.com/USBGuard/usbguard/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1:	https://github.com/USBGuard/usbguard-selinux/archive/refs/tags/v%{semodule_version}.tar.gz?/%{name}-selinux-%{semodule_version}.tar.gz
Source2:	usbguard-daemon.conf
Patch0:		usbguard-gcc13.patch
BuildRequires:	pkgconfig(libqb)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(protobuf) < 4.0.0
BuildRequires:	protobuf-compiler
BuildRequires:	PEGTL-static
BuildRequires:	bash-completion

# for make man files
#BuildRequires:	asciidoc
BuildRequires:	a2x
BuildRequires:	docbook-dtds

BuildRequires:	audit-libs-devel
BuildRequires:	xsltproc
# For `pkg-config systemd` only
BuildRequires:	systemd

Requires:	systemd
Recommends:	%{name}-selinux
Obsoletes:	%{name}-applet-qt < 0.7.6

%description
The USBGuard software framework helps to protect your computer against rogue USB
devices by implementing basic whitelisting/blacklisting capabilities based on
USB device attributes.

%files
%doc README.adoc CHANGELOG.md
%license LICENSE
%{_libdir}/*.so.*
%{_sbindir}/usbguard-daemon
%{_bindir}/usbguard
%dir %{_localstatedir}/log/usbguard
%dir %{_sysconfdir}/usbguard
%dir %{_sysconfdir}/usbguard/rules.d/
%dir %{_sysconfdir}/usbguard/IPCAccessControl.d
%config(noreplace) %attr(0600,-,-) %{_sysconfdir}/usbguard/usbguard-daemon.conf
%config(noreplace) %attr(0600,-,-) %{_sysconfdir}/usbguard/rules.conf
%{_unitdir}/usbguard.service
%{_datadir}/man/man8/usbguard-daemon.8*
%{_datadir}/man/man5/usbguard-daemon.conf.5*
%{_datadir}/man/man5/usbguard-rules.conf.5*
%{_datadir}/man/man1/usbguard.1*
%{_datadir}/bash-completion/completions/usbguard

%post
%systemd_post usbguard.service

%preun
%systemd_preun usbguard.service

%postun
%systemd_postun usbguard.service

#-------------------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig
Requires:	libstdc++-devel

%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files devel
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#-------------------------------------------------------------------------------

%package tools
Summary:	USBGuard Tools
Group:		System/Configuration/Other
Requires:	%{name} = %{EVRD}

%description tools
The %{name}-tools package contains optional tools from the USBGuard
software framework.

%files tools
%{_bindir}/usbguard-rule-parser

#-------------------------------------------------------------------------------

%package dbus
Summary: USBGuard D-Bus Service
Group:		System/Configuration/Other
BuildRequires:	dbus-glib-devel
BuildRequires:	dbus-devel
BuildRequires:	glib2-devel
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(libexslt)
BuildRequires:	libxml2
Requires:	%{name} = %{EVRD}
Requires:	dbus
Requires:	polkit

%description dbus
The %{name}-dbus package contains an optional component that provides
a D-Bus interface to the USBGuard daemon component.

%files dbus
%{_sbindir}/usbguard-dbus
%{_datadir}/dbus-1/system-services/org.usbguard1.service
%{_datadir}/dbus-1/system.d/org.usbguard1.conf
%{_datadir}/polkit-1/actions/org.usbguard1.policy
%{_unitdir}/usbguard-dbus.service
%{_mandir}/man8/usbguard-dbus.8*

%preun dbus
%systemd_preun usbguard-dbus.service

%post dbus
%systemd_post usbguard-dbus.service

%postun dbus
%systemd_postun_with_restart usbguard-dbus.service

#-------------------------------------------------------------------------------

%package selinux
Summary:	USBGuard selinux
Group:		System/Base
Requires:	%{name} = %{EVRD}
BuildRequires:	selinux-policy
BuildRequires:	selinux-policy-devel
BuildArch:	noarch
%{?selinux_requires}

%description    selinux
The %{name}-selinux package contains selinux policy for the USBGuard
daemon.

%pre selinux
%selinux_relabel_pre -s %{selinuxtype}

%post selinux
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2

%postun selinux
if [ $1 -eq 0 ]; then
    %selinux_modules_uninstall -s %{selinuxtype} %{name}
fi

%posttrans selinux
%selinux_relabel_post -s %{selinuxtype}

%files selinux
%{_datadir}/selinux/packages/%{selinuxtype}/%{name}.pp.bz2
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{name}
%{_datadir}/selinux/devel/include/%{moduletype}/ipp-%{name}.if

#-------------------------------------------------------------------------------

%prep
%setup -q

# selinux
%setup -q -D -T -a 1
%apply_patches

# Remove bundled library sources before build
rm -rf src/ThirdParty/{Catch,PEGTL}

%build
mkdir -p ./m4
autoreconf -i -v --no-recursive ./
%configure \
    --disable-silent-rules \
    --without-bundled-catch \
    --without-bundled-pegtl \
    --enable-systemd \
    --with-dbus \
    --with-polkit \
    --with-crypto-library=gcrypt \
    --with-bundled-catch

%make

# selinux
pushd %{name}-selinux-%{semodule_version}
make
popd

%install
make install INSTALL='install -p' DESTDIR=%{buildroot}

# Overwrite configuration with distribution defaults
mkdir -p %{buildroot}%{_sysconfdir}/usbguard
mkdir -p %{buildroot}%{_sysconfdir}/usbguard/rules.d
mkdir -p %{buildroot}%{_sysconfdir}/usbguard/IPCAccessControl.d
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/usbguard/usbguard-daemon.conf

# selinux
install -d %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}
install -m 0644 %{name}-selinux-%{semodule_version}/%{name}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/%{selinuxtype}
install -d -p %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}
install -p -m 644 %{name}-selinux-%{semodule_version}/%{name}.if %{buildroot}%{_datadir}/selinux/devel/include/%{moduletype}/ipp-%{name}.if

# Cleanup
find %{buildroot} \( -name '*.la' -o -name '*.a' \) -exec rm -f {} ';'




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11219 |21cr|usbguard-notifier-0.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		usbguard-notifier
Version:	0.0.6
Release:	1
Summary:	A tool for detecting usbguard policy and device presence changes
Group:		System/Configuration/Other
License:	GPLv2+
URL:		https://github.com/Cropi/%{name}
Source0:	https://github.com/Cropi/usbguard-notifier/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	usbguard-devel
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libnotify)
#BuildRequires:	asciidoc
BuildRequires:	a2x
BuildRequires:	pkgconfig(systemd)
Requires:	systemd

%description
USBGuard Notifier software framework detects usbguard policy modifications
as well as device presence changes and displays them as pop-up notifications.

%files
%doc README.md CHANGELOG.md
%license LICENSE
%{_bindir}/usbguard-notifier
%{_bindir}/usbguard-notifier-cli
%{_mandir}/man1/usbguard-notifier.1*
%{_mandir}/man1/usbguard-notifier-cli.1*
%{_userunitdir}/usbguard-notifier.service

%post
%systemd_user_post %{name}.service

%preun
%systemd_user_preun %{name}.service

%postun
%systemd_user_postun_with_restart %{name}.service

#------------------------------------------------------------------------------
%prep
%autosetup -p1

%build
mkdir -p ./m4
autoreconf -i -f -v --no-recursive ./

export CXXFLAGS="%{optflags}"

%configure \
    --disable-silent-rules \
    --with-bundled-catch \
    --enable-debug-build

%make

%check
make check

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11220 |21cr|usbip-5-0.gita5e13c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# usbip is inside the source of the Linux kernel,
# but is updated rarely. Building a yet another pure userspace
# package, even with a devel part, inside the kernel seems
# to be not the best idea. To easify future updates, let's
# build just from a commit, not a kernel release tarball,
# because commits there are rare, it is easier to just
# update the commit hash if needed.

%define commit a5e13c6df0e41702d2b2c77c8ad41677ebb065b3
%define commit_short %(echo %{commit} | head -c 6)

%define major 0
%define libname %mklibname usbip %{major}
%define develname %mklibname -d usbip

%global optflags %{optflags} -Wno-error=strict-aliasing

Name: usbip
Summary: USB device sharing system over IP network
# From sources of kernel 5.x
Version: 5
Release: 0.git%{commit_short}.1
License: GPLv2+
Group: System/Configuration/Networking
Url: https://github.com/torvalds/linux/commits/master/tools/usb/usbip
Source0: https://github.com/torvalds/linux/archive/%{commit}.tar.gz?/linux-%{commit}.tar.gz
# Systemd units from Fedora
# TODO: maybe make a systemd user service for usbip, sth like usbip@.service?
# https://wiki.archlinux.org/index.php/USB/IP#Client_setup
Source10: usbip-client.service
Source11: usbip-server.service
# Patch from Fedora
Patch0: usbip-5.5-fix-gcc9.patch
# The kernel modules require working USB and there's no USB for s390x
# See rhbz#1483403
ExcludeArch: s390x

BuildRequires: systemd-units
BuildRequires: pkgconfig(libudev)

%description
The USB/IP Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, USB/IP encapsulates "USB requests" into IP packets and
transmits them between computers. Original USB device drivers and
applications can be also used for remote USB devices without any
modification of them. A computer can use remote USB devices as if they
were directly attached; for example, we can:
  - USB storage devices: fdisk, mkfs, mount/umount, file operations,
    play a DVD movie and record a DVD-R media.
  - USB keyboards and USB mice: use with linux console and X Window
    System.
  - USB webcams and USB speakers: view webcam, capture image data and
    play some music.
  - USB printers, USB scanners, USB serial converters and USB Ethernet
    interfaces: ok, use fine.
    
#------------------------------------------------------------------------

%package -n %{libname}
Summary: Shared library for USB/IP utils
Group: System/Libraries
Requires: %{_datadir}/hwdata

%description -n %{libname}
The USB/IP Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, USB/IP encapsulates "USB requests" into IP packets and
transmits them between computers. Original USB device drivers and
applications can be also used for remote USB devices without any
modification of them. A computer can use remote USB devices as if they
were directly attached; for example, we can:
  - USB storage devices: fdisk, mkfs, mount/umount, file operations,
    play a DVD movie and record a DVD-R media.
  - USB keyboards and USB mice: use with linux console and X Window
    System.
  - USB webcams and USB speakers: view webcam, capture image data and
    play some music.
  - USB printers, USB scanners, USB serial converters and USB Ethernet
    interfaces: ok, use fine.

This package contains shared library for USB/IP utils.

%files -n %{libname}
%license COPYING
%doc README AUTHORS
%{_libdir}/libusbip.so.%{major}*

#------------------------------------------------------------------------

%package -n %{develname}
Summary: Development files for %libname
Group: Development/C
Provides: %{name}-devel = %{EVRD}
Provides: lib%{name}-devel = %{EVRD}
Requires: %{libname} = %{EVRD}

%description -n %develname
The USB/IP Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, USB/IP encapsulates "USB requests" into IP packets and
transmits them between computers. Original USB device drivers and
applications can be also used for remote USB devices without any
modification of them. A computer can use remote USB devices as if they
were directly attached; for example, we can:
  - USB storage devices: fdisk, mkfs, mount/umount, file operations,
    play a DVD movie and record a DVD-R media.
  - USB keyboards and USB mice: use with linux console and X Window
    System.
  - USB webcams and USB speakers: view webcam, capture image data and
    play some music.
  - USB printers, USB scanners, USB serial converters and USB Ethernet
    interfaces: ok, use fine.

This package contains the libraries and header files needed to develop
programs which make use of libusbip.

%files -n %{develname}
%{_libdir}/libusbip.so
%{_includedir}/*

#------------------------------------------------------------------------

%package client
Summary: USB/IP client utility
Group: System/Configuration/Networking
Requires: kmod(vhci-hcd)
Requires: /sbin/modprobe
Provides: usbip = %{EVRD}

%description client
The USB/IP Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, USB/IP encapsulates "USB requests" into IP packets and
transmits them between computers. Original USB device drivers and
applications can be also used for remote USB devices without any
modification of them. A computer can use remote USB devices as if they
were directly attached; for example, we can:
  - USB storage devices: fdisk, mkfs, mount/umount, file operations,
    play a DVD movie and record a DVD-R media.
  - USB keyboards and USB mice: use with linux console and X Window
    System.
  - USB webcams and USB speakers: view webcam, capture image data and
    play some music.
  - USB printers, USB scanners, USB serial converters and USB Ethernet
    interfaces: ok, use fine.

This package contains USB/IP client utility.

%post client
%systemd_post usbip-client.service

%preun client
%systemd_preun usbip-client.service

%postun client
%systemd_postun_with_restart usbip-client.service

%files client
%license COPYING
%doc README AUTHORS
%{_sbindir}/%{name}
%{_bindir}/%{name}
%{_unitdir}/usbip-client.service
%{_mandir}/man8/usbip.8*

#------------------------------------------------------------------------

%package server
Summary: USB/IP server utils
Group: System/Configuration/Networking
Requires: kmod(usbip-core)
Requires: /sbin/modprobe
Provides: usbipd = %{EVRD}

%description server
The USB/IP Project aims to develop a general USB device sharing system
over IP network. To share USB devices between computers with their full
functionality, USB/IP encapsulates "USB requests" into IP packets and
transmits them between computers. Original USB device drivers and
applications can be also used for remote USB devices without any
modification of them. A computer can use remote USB devices as if they
were directly attached; for example, we can:
  - USB storage devices: fdisk, mkfs, mount/umount, file operations,
    play a DVD movie and record a DVD-R media.
  - USB keyboards and USB mice: use with linux console and X Window
    System.
  - USB webcams and USB speakers: view webcam, capture image data and
    play some music.
  - USB printers, USB scanners, USB serial converters and USB Ethernet
    interfaces: ok, use fine.

This package contains USB/IP server utils.

%post server
%systemd_post usbip-server.service

%preun server
%systemd_preun usbip-server.service

%postun server
%systemd_postun_with_restart usbip-server.service

%files server
%license COPYING
%doc README AUTHORS
%{_sbindir}/usbipd
%{_unitdir}/usbip-server.service
%{_mandir}/man8/usbipd.8*

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n linux-%{commit}/tools/usb/usbip

%build
autoreconf -if
%configure \
	--disable-static \
	--with-usbids-dir=%{_datadir}/hwdata
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_unitdir}
install -m0644 %{SOURCE10} %{buildroot}%{_unitdir}
install -m0644 %{SOURCE11} %{buildroot}%{_unitdir}

# Make usbip be inside PATH on client, it does not require root
mkdir -p %{buildroot}%{_bindir}
( cd %{buildroot}%{_bindir} ; ln -s ../sbin/usbip usbip )

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11221 |21cr|usbmon-6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		usbmon
Version:	6.1
Release:	1
Summary:	A basic front-end to usbmon
Group:		Development/Other
License:	GPLv2
URL:		http://people.redhat.com/zaitcev/linux/
Source:		http://people.redhat.com/zaitcev/linux/%{name}-%{version}.tar.gz

%description
The usbmon program collects and prints a trace of USB transactions as they
occur between the USB core and HCDs. Analyzing the trace helps to debug the
kernel USB stack, device firmware, and applications.

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}/%{_mandir}/man8
install -p -m 644 -t %{buildroot}/%{_mandir}/man8 usbmon.8
mkdir -p %{buildroot}/%{_sbindir}
install -p -m 755 -t %{buildroot}/%{_sbindir} usbmon

%clean

%files
%doc README COPYING
%{_sbindir}/usbmon
%{_mandir}/man8/usbmon.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11222 |21cr|usbrestore-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#update to 0.7 only if util-linux >= 2.38

%global debug_package %{nil}

Name:		usbrestore
Version:	0.9
Release:	1
Group:		System/Configuration/Hardware
Summary:	Restoring the factory settings of USB flash drives
License:	GPLv3
URL:		https://github.com/AKotov-dev/usbrestore
Source0:	https://github.com/AKotov-dev/usbrestore/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	usbrestore
Source2:	usbrestore.png
Source3:	usbrestore.desktop
Source4:	usbrestore.policy
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	util-linux
Requires:	parted
Requires:	dosfstools

%description
To bring the USB flash drive to normal, factory parameters, USBRestore was created. He does a forced
resuscitation and removes all unnecessary things from the flash drive by pressing one button:

1. Clears the partition table
2. Marks the dos partition
3. Creates a FAT32 partition
4. Formats the partition labeled USBDRIVE
5. Checks the section for errors with correction
%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/usbrestore
%{_datadir}/usbrestore/
%{_datadir}/polkit-1/actions/usbrestore.policy
%{_datadir}/applications/usbrestore.desktop
%{_datadir}/pixmaps/usbrestore.png

#-----------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE3} %{buildroot}%{_datadir}/applications/
cp %{SOURCE4} %{buildroot}%{_datadir}/polkit-1/actions
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11223 |21cr|usb-robot-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		usb-robot
Version:	0.2.0
Release:	1	
Summary:	USB Reverse engineering tools

Group:		Development/Other
License:	GPLv2
URL:		http://sourceforge.net/projects/usb-robot
Source0:	http://downloads.sourceforge.net/project/usb-robot/usb-robot/0.2.0/usb-robot-0.2.0.tar.gz

BuildRequires:	usb1-devel
BuildRequires:	libusb-devel
BuildRequires:	readline-devel

%description
usb-robot is a set of software tools for communicating with generic USB devices
from userspace using libusb. 

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/%{name}-master
%{_bindir}/%{name}-slave
%doc README COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11224 |21cr|usbstress-0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	USB test Load
Name:		usbstress
Version:	0.3
Release:	11
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.lrr.in.tum.de/Par/arch/usb/download/usbstress/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		uhcidump.c.patch.bz2
Patch1:		ihex2hdr.c.patch.bz2

%description
This is a USB stress test suite.  It requires an AnchorChips AN2131
based device, which is loaded with a special test firmware.

%files
%attr(755,root,root)
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
%{_bindir}/usbstress
%{_sbindir}/uhcidump

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch0 -p0
%patch1 -p0
sed -i s/-march=i686// Makefile.*

%build
%global optflags %{optflags} -fgnu89-inline
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11225 |21cr|usbview-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	USB topology and device viewer
Name:		usbview
Version:	3.0
Release:	1
Group:		System/Kernel and hardware
License:	GPLv2+
Url:		http://www.kroah.com/linux-usb/
Source0:	https://github.com/gregkh/usbview/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	gtk+3-devel

%description
USBView is a GTK program that displays the topography of the devices that are
plugged into the USB bus on a Linux machine. It also displays information on
each of the devices. This can be useful to determine if a device is working
properly or not.

%files
%doc AUTHORS README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/polkit-1/actions/org.freedesktop.pkexec.usbview.policy
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man8/%{name}.8*

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

# Massage the provided desktop file to match our old one
desktop-file-edit	--set-key="Exec" --set-value="%{name}" \
			--add-category="System" \
			 %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11226 |21cr|usermin-1.860-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __spec_install_post %{nil}
%global __requires_exclude ^perl\\(VMS::Filespec\\)|perl\\(Webmin.*\\)|perl\\(Async\\)
%global __provides_exclude ^perl\\(.*\\)

Summary:	A web-based user account administration interface
Name:		usermin
Version:	1.860
Release:	1
Provides:	%{name}-%{version}
License:	BSD
Group:		System/Configuration/Other
URL:		http://www.usermin.com/
Source0:	http://download.sourceforge.net/project/webadmin/%{name}/%{version}/%{name}-%{version}.tar.gz
Source10:	usermin.rpmlintrc
Patch3:		usermin-1.440-never-fail-detect-os.patch
Requires:	perl
Requires(pre):	rpm-helper
Requires:	perl perl-Net_SSLeay

BuildArch:	noarch

%description
A web-based user account administration interface for Unix systems.

After installation, enter the URL https://localhost:20000/ into your
browser and login as any user on your system.

%prep
%setup -q
%patch3 -p0

perl -pi -e 's|/tmp/.webmin|/root/.webmin|' *

%build
(find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl %{_bindir}/perl -
rm -f mount/freebsd-mounts-*
rm -f mount/openbsd-mounts-*
#chmod -R og-rxw .

%install
mkdir -p %{buildroot}{%{_sysconfdir}/{pam.d,sysconfig},%{_initrddir},%{_var}/run/usermin,%{_datadir}/usermin}

cp -rp * %{buildroot}%{_datadir}/usermin

mkdir -p %{buildroot}%{_unitdir}
cp usermin-systemd %{buildroot}%{_unitdir}/usermin.service
cp usermin-pam %{buildroot}%{_sysconfdir}/pam.d/usermin

# Fix perms for rpmlint:
find %{buildroot}%{_datadir}/usermin ! -type d -exec chmod 644 {} \;

find %{buildroot}%{_datadir}/usermin \( \
	-type d \
	-o -name "*.sh" -o -name "*.cgi" \
	-o -name "install-module.pl" -o -name "web-lib.pl" \
	-o -name "miniserv.pl" -o -name "newmods.pl" \
	-o -name "cron_editor.pl" -o -name "autoreply.pl" \
	-o -name "theme.pl" -o -name "solaris-lib.pl" \
	-o -name "unixware-lib.pl" \
	-o -name "msctile2.jpg" -o -name "theme_by.jpg" \
	-o -name "webmin_logo.jpg" \
	\) \
	-exec chmod 755 {} \;

echo rpm >%{buildroot}%{_datadir}/usermin/install-type

%pre
perl <<EOD;
# maketemp.pl
# Create the /root/.webmin directory if needed
# ASkwar:
# This really needs to be /root/.webmin, because of (at least) the setup.sh
# script

\$tmp_dir = "/root/.webmin";

if (!-d \$tmp_dir) {
	mkdir(\$tmp_dir, 0755) || exit 1;
	chown(\$<, \$(, \$tmp_dir);
	chmod(0755, \$tmp_dir);
	}
@st = stat(\$tmp_dir);
if (@st && \$st[4] == \$< && \$st[5] == \$( && \$st[2] & 0x4000 &&
    (\$st[2] & 0777) == 0755) {
	exit 0;
	}
else {
	exit 1;
	}


EOD
if [ "$?" != "0" ]; then
	echo "Failed to create or check temp files directory /root/.webmin"
	exit 1
fi

%post
if [ "$1" != 1 ]; then
	# Upgrading the RPM, so stop the old usermin properly
	service usermin stop
fi
cd %{_datadir}/usermin
config_dir=%{_sysconfdir}/usermin
var_dir=%{_var}/run/usermin
perl=%{_bindir}/perl
autoos=1
port=20000
host=`hostname`
ssl=1
atboot=1
nochown=1
autothird=1
noperlpath=1
nouninstall=1
nostart=1
export config_dir var_dir perl autoos port host ssl nochown autothird noperlpath nouninstall nostart allow
./setup.sh > /root/tmp/usermin-setup.out 2>/root/tmp/usermin-setup.err

cat > %{_sysconfdir}/usermin/uninstall.sh <<EOFF
#!/bin/sh
printf "Are you sure you want to uninstall Usermin? (y/n) : "
read answer
printf "\n"
if [ "\$answer" = "y" ]; then
	echo "Removing usermin RPM .."
	#rpm -e --nodeps usermin
	urpme usermin
	echo "Done!"
fi
EOFF
chmod +x %{_sysconfdir}/usermin/uninstall.sh

%systemd_post usermin.service

%preun
%systemd_preun usermin.service

%postun
if [ "$1" = 0 ]; then
	grep root=%{_datadir}/usermin %{_sysconfdir}/usermin/miniserv.conf >/dev/null 2>&1
	if [ "$?" = 0 ]; then
		# RPM is being removed, and no new version of usermin
		# has taken it's place. Delete the config files
		rm -rf %{_sysconfdir}/usermin %{_var}/usermin
	fi
fi

%files
%doc LICENCE* README
#%{_libexecdir}/usermin
%{_datadir}/usermin
%config(noreplace) %{_unitdir}/usermin.service
%config(noreplace) %{_sysconfdir}/pam.d/usermin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11227 |21cr|usermin-webmail-1.860-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __spec_install_post %{nil}
%global __requires_exclude perl\\(VMS::Filespec\\)|perl\\(Webmin.*\\)|perl\\(Async\\)
%global __provides_exclude perl\\(.*\\)

Summary:	A web-based user account administration interface with webmail
Name:		usermin-webmail
Version:	1.860
Release:	1
Provides:	%{name}-%{version}
License:	BSD
Group:		System/Configuration/Other
URL:		http://www.usermin.com/
Source0:	http://prdownloads.sourceforge.net/webadmin/%{name}-%{version}.tar.gz
Source10:	usermin-webmail.rpmlintrc
Patch3:		usermin-1.440-never-fail-detect-os.patch
Requires:	perl
Requires(pre):	rpm-helper
Requires:	perl perl-Net_SSLeay
BuildArch:	noarch

%description
A web-based user account administration interface for Unix systems.
If you just want to use Usermin for web-based email, there is 
a modified package available with a better theme and default 
configuration for that purpose. It assumes that your system is 
already running a properly configured IMAP server such as Dovecot, 
but can be easily configured to read mail from Maildir or 
mbox-formatted directories instead.

After installation, enter the URL https://localhost:20000/ into your
browser and login as any user on your system.

%prep
%setup -q
%patch3 -p0

perl -pi -e 's|/tmp/.webmin|/root/.webmin|' *

%build
(find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl %{_bindir}/perl -
rm -f mount/freebsd-mounts-*
rm -f mount/openbsd-mounts-*
#chmod -R og-rxw .

%install
mkdir -p %{buildroot}{%{_sysconfdir}/{pam.d,sysconfig},%{_initrddir},%{_var}/run/usermin,%{_datadir}/usermin}

cp -rp * %{buildroot}%{_datadir}/usermin

mkdir -p %{buildroot}%{_unitdir}
cp usermin-systemd %{buildroot}%{_unitdir}/usermin.service
cp usermin-pam %{buildroot}%{_sysconfdir}/pam.d/usermin

# Fix perms for rpmlint:
find %{buildroot}%{_datadir}/usermin ! -type d -exec chmod 644 {} \;

find %{buildroot}%{_datadir}/usermin \( \
	-type d \
	-o -name "*.sh" -o -name "*.cgi" \
	-o -name "install-module.pl" -o -name "web-lib.pl" \
	-o -name "miniserv.pl" -o -name "newmods.pl" \
	-o -name "cron_editor.pl" -o -name "autoreply.pl" \
	-o -name "theme.pl" -o -name "solaris-lib.pl" \
	-o -name "unixware-lib.pl" \
	-o -name "msctile2.jpg" -o -name "theme_by.jpg" \
	-o -name "webmin_logo.jpg" \
	\) \
	-exec chmod 755 {} \;

echo rpm >%{buildroot}%{_datadir}/usermin/install-type

%pre
perl <<EOD;
# maketemp.pl
# Create the /root/.webmin directory if needed
# ASkwar:
# This really needs to be /root/.webmin, because of (at least) the setup.sh
# script

\$tmp_dir = "/root/.webmin";

if (!-d \$tmp_dir) {
	mkdir(\$tmp_dir, 0755) || exit 1;
	chown(\$<, \$(, \$tmp_dir);
	chmod(0755, \$tmp_dir);
	}
@st = stat(\$tmp_dir);
if (@st && \$st[4] == \$< && \$st[5] == \$( && \$st[2] & 0x4000 &&
    (\$st[2] & 0777) == 0755) {
	exit 0;
	}
else {
	exit 1;
	}


EOD
if [ "$?" != "0" ]; then
	echo "Failed to create or check temp files directory /root/.webmin"
	exit 1
fi

%post
if [ "$1" != 1 ]; then
	# Upgrading the RPM, so stop the old usermin properly
	service usermin stop
fi
cd %{_datadir}/usermin
config_dir=%{_sysconfdir}/usermin
var_dir=%{_var}/run/usermin
perl=%{_bindir}/perl
autoos=1
port=20000
host=`hostname`
ssl=1
atboot=1
nochown=1
autothird=1
noperlpath=1
nouninstall=1
nostart=1
export config_dir var_dir perl autoos port host ssl nochown autothird noperlpath nouninstall nostart allow
./setup.sh > /root/tmp/usermin-setup.out 2>/root/tmp/usermin-setup.err

cat > %{_sysconfdir}/usermin/uninstall.sh <<EOFF
#!/bin/sh
printf "Are you sure you want to uninstall Usermin? (y/n) : "
read answer
printf "\n"
if [ "\$answer" = "y" ]; then
	echo "Removing usermin RPM .."
	#rpm -e --nodeps usermin
	urpme usermin
	echo "Done!"
fi
EOFF
chmod +x %{_sysconfdir}/usermin/uninstall.sh

%systemd_post usermin.service

%preun
%systemd_preun usermin.service

%postun
if [ "$1" = 0 ]; then
	grep root=%{_datadir}/usermin %{_sysconfdir}/usermin/miniserv.conf >/dev/null 2>&1
	if [ "$?" = 0 ]; then
		# RPM is being removed, and no new version of usermin
		# has taken it's place. Delete the config files
		rm -rf %{_sysconfdir}/usermin %{_var}/usermin
	fi
fi

%files
%defattr(-,root,root)
%doc LICENCE* README
#%{_libexecdir}/usermin
%{_datadir}/usermin
%config(noreplace) %{_unitdir}/usermin.service
%config(noreplace) %{_sysconfdir}/pam.d/usermin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11228 |21cr|userspace-rcu-0.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		4
%define libname		%mklibname urcu %{major}
%define develname	%mklibname urcu -d

Name:		userspace-rcu
Summary:	Userspace RCU (read-copy-update) library
Version:	0.9.1
Release:	4
License:	LGPLv2.1+
Group:		System/Libraries
URL:		http://lttng.org/urcu
Source0:	http://lttng.org/files/urcu/%{name}-%{version}.tar.bz2

%description
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
synchronization library provides read-side access which scales linearly
with the number of cores. It does so by allowing multiples copies of a given
data structure to live at the same time, and by monitoring the data structure
accesses to detect grace periods after which memory reclamation is possible.

%package -n %{libname}
Summary:	Userspace RCU (read-copy-update) library

%description -n %{libname}
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
synchronization library provides read-side access which scales linearly
with the number of cores. It does so by allowing multiples copies of a given
data structure to live at the same time, and by monitoring the data structure
accesses to detect grace periods after which memory reclamation is possible.

%package -n %{develname}
Summary:	Development files for liburcu
Group:		Development/C
Requires:	%{libname} = %{version}

%description -n %{develname}
Development file for the userspace RCU library (liburcu).

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%make_install

%files -n %{libname}
%{_libdir}/liburcu*.so.%{major}*

%files -n %{develname}
%{_includedir}/urcu/
%{_includedir}/urcu*.h
%{_libdir}/liburcu*.so
%{_libdir}/pkgconfig/liburcu*.pc
%doc %{_docdir}/userspace-rcu

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11229 |21cr|usrsctp-0.9.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		usrsctp
Version:	0.9.5.0
Release:	2
License:	BSD
Summary:	Portable SCTP userland stack
Group:		System/Libraries
URL:		https://github.com/sctplab/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: ninja
BuildRequires: meson

%description
SCTP is a message oriented, reliable transport protocol with direct support
for multihoming that runs on top of IP or UDP, and supports both v4 and v6
versions.

Like TCP, SCTP provides reliable, connection oriented data delivery with
congestion control. Unlike TCP, SCTP also provides message boundary
preservation, ordered and unordered message delivery, multi-streaming and
multi-homing. Detection of data corruption, loss of data and duplication
of data is achieved by using checksums and sequence numbers. A selective
retransmission mechanism is applied to correct loss or corruption of data.

In this manual the socket API for the SCTP User-land implementation will be
described. It is based on RFC 6458. The main focus of this document is on
pointing out the differences to the SCTP Sockets API. For all aspects of the
sockets API that are not mentioned in this document, please refer to RFC
6458. Questions about SCTP itself can hopefully be answered by RFC 4960.
#-------------------------------------------------------------------------
%package -n %{libname}
Summary:	Portable SCTP userland stack
Group:		System/Libraries

%description -n %{libname}
SCTP is a message oriented, reliable transport protocol with direct support
for multihoming that runs on top of IP or UDP, and supports both v4 and v6
versions.

Like TCP, SCTP provides reliable, connection oriented data delivery with
congestion control. Unlike TCP, SCTP also provides message boundary
preservation, ordered and unordered message delivery, multi-streaming and
multi-homing. Detection of data corruption, loss of data and duplication
of data is achieved by using checksums and sequence numbers. A selective
retransmission mechanism is applied to correct loss or corruption of data.

In this manual the socket API for the SCTP User-land implementation will be
described. It is based on RFC 6458. The main focus of this document is on
pointing out the differences to the SCTP Sockets API. For all aspects of the
sockets API that are not mentioned in this document, please refer to RFC
6458. Questions about SCTP itself can hopefully be answered by RFC 4960.

%files -n %{libname}
%doc README.md Manual.md
%license LICENSE.md
%{_libdir}/lib%{name}.so.%{major}*

#-------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{summary}.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
    -Dwerror=false \
    -Dsctp_debug=false \
    -Dsctp_inet=true \
    -Dsctp_inet6=true \
    -Dsctp_build_programs=false
%meson_build

%check
%meson_test

%install
%meson_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11230 |21cr|utf8cpp-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This package only contains header files.
%global debug_package %{nil}

Name:		utf8cpp
Version:	3.1.2
Release:	1
Summary:	A simple, portable and lightweight library for handling UTF-8 encoded strings
Group:		Development/C++
License:	Boost
URL:		https://github.com/nemtrif/utfcpp
Source0:	https://github.com/nemtrif/utfcpp/archive/v%{version}.tar.gz?/utfcpp-%{version}.tar.gz
BuildRequires:	cmake
BuildArch:	noarch

%description
%{summary}.

Features include:
 - iterating through UTF-8 encoded strings
 - converting between UTF-8 and UTF-16/UTF-32
 - detecting invalid UTF-8 sequences

This project currently only contains header files, which can be found in the
%{name}-devel package.

#----------------------------------------------------------------------------
%package devel
Summary:	Header files for %{name}
Group:		Development/C++
BuildArch:	noarch
Provides:	%{name}-static = %{version}-%{release}

%description devel
%{summary}.

Features include:
 - iterating through UTF-8 encoded strings
 - converting between UTF-8 and UTF-16/UTF-32
 - detecting invalid UTF-8 sequences

This project currently only contains header files, which can be found in the
%{name}-devel package.

%files devel
%{_includedir}/utf8cpp/utf8.h
%{_includedir}/utf8cpp/utf8/*
%{_libdir}/cmake/utf8cpp/utf8cppConfig.cmake

#---------------------------------------------------------------------------
%prep
%setup -qn utfcpp-%{version}


%build
%cmake -DUTF8_TESTS=OFF -DUTF8_TESTS=OFF
%make


%install
%make_install -C build

#mkdir -p %{buildroot}%{_includedir}
#install -p -m0644 source/utf8.h %{buildroot}%{_includedir}/utf8.h
#mkdir -p %{buildroot}%{_includedir}/utf8
#for i in checked.h core.h unchecked.h; do
#    install -p -m0644 source/utf8/${i} %{buildroot}%{_includedir}/utf8/${i}
#done



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11231 |21cr|utop-2.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
# The OCaml code is byte compiled, not native compiled, so there are no ELF
# objects in the binary RPM.
%global debug_package %{nil}

Name:           utop
Version:        2.9.0
Release:        3
Summary:        Improved toplevel for OCaml
Group:          Development/OCaml
License:        BSD
URL:            https://github.com/ocaml-community/utop
Source0:        %{url}/releases/download/%{version}/%{name}-%{version}.tbz

BuildRequires:  ocaml >= 4.03.0
BuildRequires:  ocaml-camomile-devel
BuildRequires:  ocaml-cppo >= 1.1.2
BuildRequires:  ocaml-dune >= 1.0
BuildRequires:  ocaml-findlib >= 1.7.2
BuildRequires:  ocaml-lambda-term-devel >= 3.1.0
BuildRequires:  ocaml-lwt-react-devel
BuildRequires:  ocaml-react-devel >= 1.0.0

# for utop.el
BuildRequires:  emacs
#BuildRequires:  emacs-tuareg

Provides:       ocaml-%{name}%{?_isa} =  %{version}-%{release}

%description
utop is an improved toplevel (i.e., Read-Eval-Print Loop) for
OCaml. It can run in a terminal or in Emacs. It supports line
editing, history, real-time and context sensitive completion,
colors, and more.

%files
%license LICENSE
%doc README.md CHANGES.md
%{_bindir}/%{name}*
%dir %{_libdir}/ocaml/%{name}
%{_libdir}/ocaml/%{name}/META
%{_libdir}/ocaml/%{name}/*.cma
%{_libdir}/ocaml/%{name}/*.cmi
%{_mandir}/man1/%{name}*
%{_mandir}/man5/%{name}*
%{_datadir}/%{name}/

#-------------------------------------------------------------------

%package devel
Summary:        Development files for %{name}
Group:          Development/OCaml
Requires:       %{name}%{?_isa} = %{version}-%{release}
Requires:       ocaml-camomile-devel%{?_isa}
Requires:       ocaml-lambda-term-devel%{?_isa}
Requires:       ocaml-lwt-react-devel%{?_isa}
Requires:       ocaml-react-devel%{?_isa}
Provides:       ocaml-%{name}-devel%{?_isa} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{name}/dune-package
%{_libdir}/ocaml/%{name}/opam
%{_libdir}/ocaml/%{name}/*.cmt
%{_libdir}/ocaml/%{name}/*.cmti
%{_libdir}/ocaml/%{name}/*.ml
%{_libdir}/ocaml/%{name}/*.mli

#-------------------------------------------------------------------

%package -n emacs-utop
Summary:        Emacs front end for utop
Group:          Development/OCaml
BuildArch:      noarch
#Requires:       emacs(bin) >= %{?_emacs_version}%{!?_emacs_version:0}
#Requires:       emacs-tuareg
Recommends:     emacs-company

%description -n emacs-utop
This package contains an Emacs front end for utop, an improved toplevel
for OCaml.

%files -n emacs-utop
#%%{_emacs_sitelispdir}/%{name}.el*
#%%{_emacs_sitestartdir}/%{name}-autoloads.el*
%{_datadir}/emacs/site-lisp/*.el*
#-------------------------------------------------------------------
%prep
%autosetup

%build
dune build --verbose \
    --for-release-of-packages=%{name} \
    %{?_smp_mflags}
cd src/top
emacs -batch --no-init-file --no-site-file \
    --eval "(progn (setq generated-autoload-file \"$PWD/utop-autoloads.el\" backup-inhibited t) (update-directory-autoloads \".\"))"
#%%_emacs_bytecompile utop.el
cd -

%install
dune install --verbose \
    --for-release-of-packages=%{name} \
    --destdir=%{buildroot} \
    --libdir=%{_libdir}/ocaml

rm -f %{buildroot}/usr/doc/%{name}/{LICENSE,CHANGES.md,README.md}

mkdir -p %{buildroot}%{_emacs_sitestartdir}
cp -p src/top/utop-autoloads.* %{buildroot}%{_emacs_sitestartdir}
#cp -p src/top/utop.elc %{buildroot}%{_emacs_sitelispdir}




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11232 |21cr|utox-0.18.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}
%define debug_package %{nil}

%define oname uTox

Summary:	Lightweight Tox client
Name:		utox
Version:	0.18.1
Release:	2
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		http://utox.org/
Source0:	https://github.com/uTox/uTox/releases/download/v%{version}/uTox-%{version}-full.tar.gz
Patch0:		utox-find-libtoxav.patch
BuildRequires:	desktop-file-utils
BuildRequires:	cmake
BuildRequires:	toxcore-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(filteraudio)
BuildRequires:	pkgconfig(libv4lconvert)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xrender)

%description
Lightweight Tox client.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}*.*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}

%build
%cmake
%make

%install
%makeinstall_std -C build

# desktop file
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	--remove-category="InstantMessaging;AudioVideo;" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11233 |21cr|utrac-0.3.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Universal Text Recognizer and Converter
Name:		utrac
Version:	0.3.0
Release:	9
License:	GPL
Group:		File tools
URL:		http://utrac.sourceforge.net/
Source0:	http://utrac.sourceforge.net/download/utrac-%{version}.tar.bz2
Patch0:		utrac-fix-long-64bit.diff

%description
UTRAC stands for Universal Text Recognizer and Converter. It is a command line
tool and a library that recognize the encoding of an input file (ex: UTF-8,
ISO-8859-1, CP437...) and its end-of-line type (CR, LF, CRLF). 

%prep

%setup -q
%patch0 -p1

perl -pi -e "s|/usr/local|%{_prefix}|g" Makefile
perl -pi -e "s|/lib|/%{_lib}|g" Makefile
perl -pi -e "s|/man/man1|/share/man/man1|g" Makefile

%build

%make CFLAGS="%{optflags}"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/utrac
install -d %{buildroot}%{_mandir}/man1

install -m0755 utrac %{buildroot}%{_bindir}/
install -m0644 charsets.dat %{buildroot}%{_datadir}/utrac/
install -m0644 utrac.1 %{buildroot}%{_mandir}/man1/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES CREDITS README TODO doc/*.xml
%dir %{_datadir}/utrac
%attr(0755,root,root) %{_bindir}/utrac
%attr(0644,root,root) %{_datadir}/utrac/charsets.dat
%attr(0644,root,root) %{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11234 |21cr|uucp-1.07-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The uucp utility for copying files between systems
Name:		uucp
Version:	1.07
Release:	26
License:	GPLv2+
Group:		Networking/File transfer
URL:		http://www.airs.com/ian/uucp.html
Source0:	ftp://prep.ai.mit.edu/pub/gnu/%{name}-%{version}.tar.bz2
Source1:	uucp.log
Source2:	uucp-tmpfiles.conf
Patch0:		uucp-1.07-misc.patch
Patch7:		uucp-1.07-64bit-fixes.patch
Patch8:		uucp-1.07-config.patch
Patch9:		uucp-1.07-sigfpe.patch
#(peroyvind) depends on lockdev?
Patch10:	uucp-1.07-baudboy.patch
Patch11:	uucp-1.06.1-pipe.patch
Patch12:	uucp-1.07-format_not_a_string_literal_and_no_format_arguments.diff
Patch13:	uucp-1.07-nostrip.diff
BuildRequires:	texinfo
Requires(post):	rpm-helper

%description
The uucp command copies files between systems.  Uucp is primarily used
by remote machines downloading and uploading email and news files to
local machines.

Install the uucp package if you need to use uucp to transfer files
between machines.

%prep
%setup -q
%patch0 -p1 -b .misc
%patch7 -p1 -b .64bit-fixes
%patch8 -p1 -b .config
%patch9 -p1 -b .sigfpe
#%patch10 -p1 -b .baudboy
%patch11 -p1 -b .pipe
%patch12 -p0 -b .format_not_a_string_literal_and_no_format_arguments
%patch13 -p1 -b .nostrip

%build
STRIP="/bin/echo" \
LDFLAGS="%{ldflags}" \
%configure --with-newconfigdir=%{_sysconfdir}/%{name} --with-oldconfigdir=%{_sysconfdir}/%{name}
%make 

%install
%{makeinstall} STRIP="/bin/echo"

mkdir -p %{buildroot}/var/spool/uucp
mkdir -p %{buildroot}/var/spool/uucppublic
mkdir -p %{buildroot}%{_sysconfdir}/uucp/oldconfig

rm -rf %{buildroot}/var/log/uucp
mkdir -p %{buildroot}/var/log/uucp

mkdir -p %{buildroot}%{_libdir}/uucp
ln -sf ../../sbin/uucico %{buildroot}%{_libdir}/uucp

install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/logrotate.d/uucp
install -m644 %{SOURCE2} -D %{buildroot}%{_tmpfilesdir}/uucp.conf

# Create ghost files
touch %{buildroot}/var/log/uucp/{Log,Stats,Debug}

# the following is kind of gross, but it is effective
for i in dial passwd port dialcode sys call ; do
cat > %{buildroot}/etc/uucp/$i <<EOF 
# This is an example of a $i file. This file have the syntax compatible
# with Taylor UUCP (not HDB nor anything else). Please check uucp
# documentation if you are not sure how Taylor config files are supposed to 
# look like. Edit it as appropriate for your system.

# Everything after a '#' character is a comment.
EOF
done

# fix attribs so strip can touch it
chmod 755 %{buildroot}%{_sbindir}/* %{buildroot}%{_bindir}/*

%post
# These permissions have to be synced with below %%files
%create_ghostfile /var/log/uucp/Log uucp uucp 644
%create_ghostfile /var/log/uucp/Stats uucp uucp 644
%create_ghostfile /var/log/uucp/Debug uucp uucp 640
systemd-tmpfiles --create %{name}

%files
%defattr(-,root,root,755)
%doc README ChangeLog NEWS
%doc sample contrib
%attr(-,uucp,uucp) %dir /var/spool/uucp
%attr(-,uucp,uucp) %dir /var/spool/uucppublic
%attr(755,uucp,uucp) %dir %{_sysconfdir}/uucp
%{_infodir}/uucp.info*
%{_sbindir}/uuchk
%{_sbindir}/uuconv
%{_sbindir}/uusched
%attr(6555,uucp,uucp) %{_sbindir}/uucico
%attr(6555,uucp,uucp) %{_sbindir}/uuxqt
%attr(-,uucp,uucp) %{_bindir}/*
%{_mandir}/*/*
%{_libdir}/uucp/uucico
%attr(-,uucp,uucp) %dir /var/log/uucp
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/uucp
%attr(644,uucp,uucp) %ghost /var/log/uucp/Log
%attr(644,uucp,uucp) %ghost /var/log/uucp/Stats
%attr(600,uucp,uucp) %ghost /var/log/uucp/Debug
%config(noreplace) %{_sysconfdir}/uucp/dial
%config(noreplace) %{_sysconfdir}/uucp/dialcode
%config(noreplace) %{_sysconfdir}/uucp/port
%config(noreplace) %{_sysconfdir}/uucp/passwd
%config(noreplace) %{_sysconfdir}/uucp/sys
%config(noreplace) %{_sysconfdir}/uucp/call
%{_tmpfilesdir}/uucp.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11235 |21cr|uxplay-1.71.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           uxplay
Version:        1.71.1
Release:        1
Group:          Networking/Other
Summary:        AirPlay-Mirror and AirPlay-Audio server
License:        GPLv3+
URL:            https://github.com/FDH2/UxPlay
Source0:        https://github.com/FDH2/UxPlay/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  cmake >= 3.5
BuildRequires:  make
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  pkgconf
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(libplist-2.0)
BuildRequires:  pkgconfig(avahi-compat-libdns_sd)
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-plugins-base-1.0)
Requires:       avahi
Requires:       openssl
Requires:       gstreamer1.0-plugins-good
Requires:       gstreamer1.0-plugins-bad
Requires:       gstreamer1.0-libav


%description
An AirPlay2 Mirror and AirPlay2 Audio (but not Video) server that provides
screen-mirroring (with audio) of iOS/MacOS clients in a display window on
the server host (which can be shared using a screen-sharing application);
Apple Lossless Audio (ALAC) (e.g.,iTunes) can be streamed from client to
server in non-mirror mode

%files
%doc %{_docdir}/%{name}
%license LICENSE
%{_bindir}/uxplay
%{_mandir}/man1/uxplay.1*
#----------------------------------------------------------
%prep
%autosetup -n UxPlay-%{version}

%build
%cmake -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name}

%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11236 |21cr|v3d-flow-builder-0-0.git06ecb0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 06ecb0fd2d39da9d1f2bf3599c821230b9d29ff3
%define commit_short %(echo %{commit} | head -c6)

Name:           v3d-flow-builder
Version:        0
Release:        0.git%{commit_short}.1
Summary:        Calculates the optical flow between two images
Group:          Video
License:        LGPL-3.0-or-later
URL:            https://github.com/slowmoVideo/v3d-flow-builder
Source0:        https://github.com/slowmoVideo/v3d-flow-builder/archive/%{commit}.zip?/%{name}-%{commit}.zip
# see commit hash in https://github.com/slowmoVideo/v3d-flow-builder/tree/%{commit}/src/lib
Source1:        https://github.com/slowmoVideo/libsvflow/archive/7c31a0bf9467e774442473e8b951b09fe6eb1b9f.zip
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(glut)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(opencv)
BuildRequires:  pkgconfig(glew)
BuildRequires:  pkgconfig(zlib)
Provides:       slowmoFlowBuilder = %{version}
Enhances:       slowmoVideo

%description
The V3D Flow Builder is a GPU based tool that calculates the optical flow
between two input images.

It can be used by slowmoVideo.

%prep
%autosetup -p1 -n %{name}-%{commit} -a1

cp -r libsvflow-*/* ./src/lib/libsvflow/

%build
CXXFLAGS='%{optflags} -std=gnu++11'
%cmake
%make_build

%install
%make_install -C build

%files
%doc src/README_V3D.txt
%{_bindir}/slowmoFlowBuilder

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11237 |21cr|v4l2loopback-0.12.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	v4l2-loopback device 
Name:		v4l2loopback
Version:	0.12.3
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/umlaeute/v4l2loopback
Source0:	https://github.com/umlaeute/v4l2loopback/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	dkms-%{name}
Requires:	%{name}-utils

%description
this module allows you to create "virtual video devices", and normal
(v4l2) applications will read these devices as if they were ordinary
video devices

%files

#-------------------------------------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	v4l2-loopback device 
Group:		System/Kernel and hardware
Requires(post):		dkms
Requires(preun):	dkms

%description -n dkms-%{name}
This out-of-tree kernel module allows you to create "virtual video
devices", and normal (v4l2) applications will read these devices as if
they were ordinary video (/dev/video*) devices

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

#-------------------------------------------------------------------------------------------------

%package -n %{name}-utils
Summary:	v4l2-loopback utils
Group:		System/Kernel and hardware
Requires:	dkms-%{name}

%description -n %{name}-utils
v2l2loopback-ctl shell script to manage v4l2loopback devices

%files -n %{name}-utils
%{_bindir}/v4l2loopback-ctl

#-------------------------------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="make -C \$kernel_source_dir M=\\\$(pwd)"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{name}
AUTOINSTALL=yes
REMAKE_INITRD=no
EOF

install -m755 -d %{buildroot}%{_bindir}
install -m644 utils/v4l2loopback-ctl %{buildroot}%{_bindir}
%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11238 |21cr|v4l2ucp-2.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A universal control panel for all Video for Linux Two devices
Name:		v4l2ucp
Version:	2.0.2
Release:	6
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://v4l2ucp.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/v4l2ucp/v4l2ucp/2.0/%{name}-%{version}.tar.bz2
Patch0:		v4l2ucp-2.0.2-kernel-2.6.38.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(libv4l1)
BuildRequires:	qt4-devel

%description
It reads a description of the controls that the V4L2 device 
supports from the device, and presents the user with a graphical 
means for adjusting those controls. It allows for controlling 
multiple devices. Controls can be updated with the device status 
either manually, or periodically. There is an easy way to reset 
one or all the controls to their default state

%prep
%setup -q %{name}-%{version}
%patch0 -p0 -b .kernel

%build
%cmake
%make

%install
%makeinstall_std -C build

%files
%doc README TODO
%{_bindir}/v4l2*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/*.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11239 |21cr|vacation-1.2.7.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:  Automatic mail answering program for Linux
Name:     vacation 
Version:  1.2.7.1
Release:  3
License:  GPL
Group:    Networking/Mail
Source:   http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
URL:      http://sourceforge.net/projects/vacation/
Requires: sendmail-command
BuildRequires: gdbm-devel

%description 
Vacation is the automatic mail answering program found
on many Unix systems. This version works with the sendmail 
restricted shell.

%prep
%setup -q

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

install -s -m 755 vacation        %{buildroot}%{_bindir}/vacation
install -m 755 vaclook         %{buildroot}%{_bindir}/vaclook
install -m 444 vacation.man    %{buildroot}%{_mandir}/man1/vacation.1
install -m 444 vaclook.man     %{buildroot}%{_mandir}/man1/vaclook.1

%post
if [ -d /etc/smrsh/ ] ; then 
  ln -s /usr/bin/vacation /etc/smrsh
fi

%postun
if [ -L /etc/smrsh/vacation ] ; then 
  rm -f /etc/smrsh/vacation
fi

%files
%{_bindir}/vacation
%{_bindir}/vaclook
%{_mandir}/*/*
%doc COPYING README README.smrsh ChangeLog

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11240 |21cr|vacuum-im-1.2.5-3.git0abd5e.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 0abd5e11dd3e2538b8c47f5a06febedf73ae99ee
%define commit_short %(echo %{commit} | head -c6)

%define sname vacuum

%define major 37
%define libname %mklibname vacuumutils %{major}
%define devname %mklibname vacuumutils -d

Summary:	Crossplatform Jabber client written in Qt
Name:		%{sname}-im
Version:	1.2.5
Release:	3.git%{commit_short}.1
License:	GPLv3+
Group:		Networking/Instant messaging
Url:		https://github.com/Vacuum-IM/vacuum-im
Source:		https://github.com/vacuum-im/vacuum-im/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
The core program is just a plugin loader - all functionality is made
available via plugins. This enforces modularity and ensures well defined
component interaction via interfaces.

%package -n %{libname}
Summary:	Shared library for Vacuum-IM
Group:		System/Libraries

%description -n %{libname}
This package includes shared libraris needed to work Vacuum-IM program.

%package -n %{devname}
Summary:	Development files for Vacuum-IM
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	vacuumutils-devel = %{version}-%{release}

%description -n %{devname}
This package includes files needed to develop Vacuum-IM modules.

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DINSTALL_SDK=1 \
	-DINSTALL_LIB_DIR=%{_lib}

%make

%install
%makeinstall_std -C build

install -D -m644 resources/menuicons/shared/mainwindowlogo128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
install -D -m644 resources/menuicons/shared/mainwindowlogo96.png %{buildroot}%{_datadir}/icons/hicolor/96x96/apps/%{name}.png
install -D -m644 resources/menuicons/shared/mainwindowlogo64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -D -m644 resources/menuicons/shared/mainwindowlogo48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -D -m644 resources/menuicons/shared/mainwindowlogo32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -D -m644 resources/menuicons/shared/mainwindowlogo24.png %{buildroot}%{_datadir}/icons/hicolor/24x24/apps/%{name}.png
install -D -m644 resources/menuicons/shared/mainwindowlogo16.png %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png

sed -i "s/Exec=%{sname}/Exec=%{name}/;s/Icon=%{sname}/Icon=%{name}/" %{buildroot}%{_datadir}/applications/%{sname}.desktop

mv %{buildroot}%{_datadir}/applications/%{sname}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
mv %{buildroot}%{_datadir}/pixmaps/%{sname}.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
mv %{buildroot}%{_bindir}/%{sname} %{buildroot}%{_bindir}/%{name}

%files
%doc %{_docdir}/%{sname}
%{_bindir}/%{name}
%{_libdir}/%{sname}
%{_datadir}/%{sname}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/metainfo/vacuum-im.metainfo.xml

%files -n %{libname}
%{_libdir}/libvacuumutils.so.%{major}*

%files -n %{devname}
%{_libdir}/libvacuumutils.so
%{_includedir}/%{sname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11241 |21cr|vagalume-0.8.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	with_gtk3	1
%define	with_gstreamer1	1

Summary:	Client for Last.fm and compatible music streaming services
Name:		vagalume
Version:	0.8.6
Release:	3
License:	GPLv3+
Group:		Sound
Url:		http://vagalume.igalia.com/
Source0:	http://vagalume.igalia.com/files/source/%{name}-%{version}.tar.gz
%if %{with_gstreamer1}
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
%else
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)
%endif
BuildRequires:	pkgconfig(libxml-2.0)
%if %{with_gtk3}
BuildRequires:	pkgconfig(gtk+-3.0)
%else
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.18
%endif
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(libnotify) >= 0.4.1
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	desktop-file-utils

%description
Vagalume is a Last.fm client written using GTK+ 3.0.
Its main features are:
 * It plays Last.fm radio streams (using the v2.0 API)
 * It supports Libre.fm and other compatible servers
 * Support for different radio stations (personal, neighbours, loved tracks
  or any lastfm:// URL)
 * It supports marking tracks as loved or banned
 * It can tag artists, tracks and albums
 * It can send recommendations to other users
 * It can add tracks to your playlist
 * It can download free tracks to your hard disk
 * It scrobbles tracks so they appear in your Last.fm webpage.

%files -f %{name}.lang
%doc README AUTHORS THANKS TODO TRANSLATORS
%{_bindir}/%{name}
%{_bindir}/vagalumectl
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/man/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/dbus-1/services/%{name}.service

#-----------------------------------------------------------------------------
 
%prep
%setup -q


%build
%configure	--with-platform=gnome \
%if %{with_gtk3}
		--with-gtk-version=3 \
%else
		--with-gtk-version=2\
%endif
%if %{with_gstreamer1}
		--with-gstreamer=1.0
%else
		--with-gstreamer=0.10
%endif
%make


%install
%makeinstall_std

# Fix rpmlint warning
desktop-file-edit --set-key="Exec" --set-value="%{name}" \
		%{buildroot}%{_datadir}/applications/%{name}.desktop


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11242 |21cr|valentina-0.7.52-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define qmumajor 2
%define vproperajor 1
%define libqmuparser %mklibname qmuparser %{qmumajor}
%define libvpropertyexplorer %mklibname libvpropertyexplorer %{vproperajor}

Summary:	Pattern Making Application
Name:		valentina
Version:	0.7.52
Release:	2
License:	GPLv3+
Group:		Graphics
Url:		https://smart-pattern.com.ua/en/
Source0:	https://gitlab.com/smart-pattern/valentina/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	ccache
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
Requires:	%{name}-tape = %{EVRD}
Requires:	%{name}-puzzle = %{EVRD}
Requires:	%{libqmuparser} = %{EVRD}
Requires:	%{libvpropertyexplorer} = %{EVRD}

%description
Valentina is a cross-platform patternmaking program which allows designers 
to create and model patterns of clothing. This software allows pattern 
creation, using either standard sizing tables or an individual’s set of 
measurements. It blends new technologies with traditional methods to create 
a unique pattern making tool.

%files -f %{name}.lang
%doc README.txt LICENSE_GPL.txt
%{_bindir}/%{name}
%{_datadir}/%{name}/diagrams.rcc
%{_datadir}/%{name}/labels
%{_datadir}/%{name}/tables
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/mimetypes/*.png
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package tape
Summary:	Pattern Making Application
Group:		Graphics

%description tape
Pattern Making Application.

%files tape
%doc README.txt LICENSE_GPL.txt
%{_bindir}/tape
%{_mandir}/man1/tape.1.*
%{_datadir}/applications/tape.desktop
%{_iconsdir}/hicolor/*/apps/tape.png
#----------------------------------------------------------------------------
%package puzzle

Summary:	Pattern Making Application
Group:		Graphics

%description puzzle
Pattern Making Application.

%files puzzle
%doc README.txt LICENSE_GPL.txt
%{_bindir}/puzzle
%{_mandir}/man1/puzzle.1.*
%{_datadir}/applications/puzzle.desktop
%{_iconsdir}/hicolor/*/apps/puzzle.png
#----------------------------------------------------------------------------

%package -n %{libqmuparser}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libqmuparser}
Shared library for %{name}.

%files -n %{libqmuparser}
%doc README.txt LICENSE_GPL.txt
%{_libdir}/libqmuparser.so.%{qmumajor}*

#----------------------------------------------------------------------------

%package -n %{libvpropertyexplorer}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libvpropertyexplorer}
Shared library for %{name}.

%files -n %{libvpropertyexplorer}
%doc README.txt LICENSE_GPL.txt
%{_libdir}/libvpropertyexplorer.so.%{vproperajor}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}

%build
%setup_compile_flags
%qmake_qt5 \
        PREFIX_LIB=%{_libdir} \
        CONFIG+=noStripDebugSymbols
%make

%install
%makeinstall_qt
install -Dm 644 dist/debian/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -m644 dist/debian/tape.1 %{buildroot}%{_mandir}/man1/tape.1
install -m644 dist/debian/puzzle.1 %{buildroot}%{_mandir}/man1/puzzle.1

rm -f %{buildroot}%{_libdir}/libqmuparser.so
rm -f %{buildroot}%{_libdir}/libvpropertyexplorer.so

%find_lang %{name} --with-qt --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11243 |21cr|valyriatear-1.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ValyriaTear

Summary:	Valyria Tear is a free 2D J-RPG based on the Hero of Allacrost engine
Name:		valyriatear
Version:	1.1.0
Release:	3
License:	GPLv2+
Group:		Games/Adventure
Url:		https://valyriatear.blogspot.com
Source0:	https://github.com/ValyriaTear/ValyriaTear/releases/download/%{version}/%{oname}-src-with-deps-%{version}.tar.gz
Source100:	valyriatear.rpmlintrc
Patch0:		valyriatear-1.1.0-fix-desktop-file.patch
Patch1:		valyriatear-1.1.0-add-missing-stdint-include.patch
BuildRequires:	cmake >= 2.6
BuildRequires:	doxygen
BuildRequires:	gettext
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}

%description
Valyria Tear is a free 2D J-RPG game based on the Hero of Allacrost engine.
You can play it very much like a typical console role-playing game: you can
explore maps and talk to non-playable characters (NPCs), fight active-time
battles against multiple enemies and manage your characters and equipment
through a series of menus.

%files
%doc AUTHORS MANUAL README.md
%{_gamesbindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
# NOTE: Better not use %%files_lang macro so that the user has the in-game
# possibility to change the locale
%{_datadir}/locale/*/LC_MESSAGES/%{name}.mo
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_mandir}/man6/%{name}.6.*

#-----------------------------------------------------------------------------

%package data
Summary:	Data files for 2D J-RPG Valyria Tear
License:	GPLv2 and GPLv2+ and GPLv3 and CC-BY-SA and CC-BY and CC0 and OFL
Group:		Games/Adventure
BuildArch:	noarch

%description data
Data files for 2D J-RPG Valyria Tear.

%files data
%license LICENSES.txt COPYING.*
%{_gamesdatadir}/%{name}/

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}

# Fix perms
find . -name "*.h" -o -name "*.cpp" -o -name "*.hpp" | xargs chmod -x
chmod -x AUTHORS MANUAL README.md LICENSES.txt COPYING.*

%build
%cmake -DPKG_BINDIR=%{_gamesbindir} -DPKG_DATADIR=%{_gamesdatadir}/%{name}
%make

%install
%makeinstall_std -C build

# Install man page
install -D -p -m644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}.6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11244 |21cr|vanessa_logger-0.0.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Generic logging layer
Name:		vanessa_logger
Version:	0.0.10
Release:	3
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.vergenet.net/linux/vanessa/
Source0:	http://www.vergenet.net/linux/vanessa/download/%{name}/%{version}/%{name}-%{version}.tar.bz2

%description
Generic logging layer that may be used to log to one or more of syslog,
an open file handle or a file name. Though due to to limitations in the
implementation of syslog opening multiple syslog loggers doesn't makes
sense. Includes the ability to limit which messages will be logged based
on priorities.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Generic logging layer libraries
Group:		System/Libraries

%description -n %{libname}
Generic logging layer library for Linux.

%files -n %{libname}
%{_libdir}/libvanessa_logger.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	vanessa_logger-sample < 0.0.10-3

%description -n %{devname}
Headers and static libraries required to develop against vanessa_logger.

%files -n %{devname}
%doc README COPYING ChangeLog
%{_libdir}/libvanessa_logger.so
%{_libdir}/pkgconfig/vanessa-logger.pc
%{_includedir}/vanessa_logger.h

#----------------------------------------------------------------------------


%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

# Useless
rm -f %{buildroot}%{_bindir}/vanessa_logger_sample
rm -f %{buildroot}%{_mandir}/man1/vanessa_logger_sample.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11245 |21cr|vapoursynth-editor-r19-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	VapourSynth script editor
Name:		vapoursynth-editor
Version:	r19
Release:	3
License:	MIT
Group:		Video
Url:		https://bitbucket.org/mystery_keeper/vapoursynth-editor
# git clone https://bitbucket.org/mystery_keeper/vapoursynth-editor.git
Source0:	https://bitbucket.org/mystery_keeper/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(vapoursynth) >= 48
Requires:	vapoursynth >= R48

%description
VapourSynth script editor.

%files
%doc LICENSE CHANGELOG README TODO.txt
%{_bindir}/*
%{_datadir}/application/%{name}.desktop
%{_iconsdir}/hicolor/*/*/vsedit.png
%{_iconsdir}/hicolor/scalable/vsedit.svg

#----------------------------------------------------------------------------

%prep
%setup -q

%build
cd pro
%qmake_qt5
%make

%install
install -dm 755 %{buildroot}{%{_bindir},%{_datadir}/application}
desktop-file-install %{SOURCE1} \
  --dir=%{buildroot}%{_datadir}/application

%ifarch %{ix86} aarch64 riscv64 %{e2k}
cd build/release-32bit-gcc
install -m 755 vsedit-32bit %{buildroot}%{_bindir}/vsedit

install -d 755 %{buildroot}%{_iconsdir}/hicolor/scalable
install -m 644 vsedit.svg %{buildroot}%{_iconsdir}/hicolor/scalable

for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size vsedit.svg \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/vsedit.png
done
%endif

%ifarch %{x86_64}
cd build/release-64bit-gcc
install -m 755 vsedit %{buildroot}%{_bindir}/vsedit

install -d 755 %{buildroot}%{_iconsdir}/hicolor/scalable
install -m 644 vsedit.svg %{buildroot}%{_iconsdir}/hicolor/scalable

for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size vsedit.svg \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/vsedit.png
done
%endif





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11246 |21cr|vapoursynth-plugin-addgrain-r8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-AddGrain

Summary:	AddGrain vapoursynth plugin
Name:		vapoursynth-plugin-addgrain
Version:	r8
Release:	1
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}/archive/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	meson
BuildRequires:	ninja

Requires:	vapoursynth >= R48

%description
AddGrain generates film like grain or other effects (like rain) 
by adding random noise to a video clip. 
This noise may optionally be horizontally 
or vertically correlated to cause streaking.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------
%prep
%setup -qn %{oname}-%{version}


%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11247 |21cr|vapoursynth-plugin-bilateral-r3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-Bilateral

Summary:	AddGrain vapoursynth plugin
Name:		vapoursynth-plugin-bilateral
Version:	r3
Release:	5
License:	GPLv3
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
Requires:	vapoursynth >= R48
ExclusiveArch:	%{ix86} %{x86_64}

%description
Bilateral filter, can be used to perform spatial 
de-noise, spatial smoothing while preserving edges.
Larger spatial sigma results in larger smoothing radius,
while smaller range sigma preserves edges better.
Now there're 2 different algorithms implemented 
in this function, algorithm=1 is suitable for 
large sigmaS and large sigmaR, and algorithm=2 
is suitable for small sigmaS and small sigmaR. 
By default, algorithm=0 will choose the appropriate 
algorithm to perform the filtering.
If clip ref is specified, it will perform 
joint/cross Bilateral filtering, which means 
clip ref is used to determine the range weight 
of Bilateral filter.
This function accept 8-16bit integer 
Gray/YUV/RGB/YCoCg input, and clip ref 
should be of the same format with clip input.
By default, this function will only process Y 
plane for YUV/YCoCg format, and process all 
the planes for other formats. 
It is recommended to use Y as ref 
clip for chroma plane processing.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}
chmod +x configure

%build
./configure --install=%{buildroot}%{_libdir}/vapoursynth

%make

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11248 |21cr|vapoursynth-plugin-BM3D-r9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-BM3D

Summary:	BM3D vapoursynth plugin
Name:		vapoursynth-plugin-BM3D
Version:	r9
Release:	2
License:	GPLv3
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	meson
BuildRequires:	ninja

Requires:	vapoursynth >= R48
ExclusiveArch:	%{ix86} %{x86_64}

%description
BM3D is a state-of-the-art image denoising algorithm. 
It can be extended to video denoising, named V-BM3D, 
which is also implemented in this plugin.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install 


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11249 |21cr|vapoursynth-plugin-CTMF-r5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-CTMF

Summary:	CTMF vapoursynth plugin
Name:		vapoursynth-plugin-CTMF
Version:	r5
Release:	1
License:	GPLv3
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	ninja
BuildRequires:	meson

Requires:	vapoursynth >= R48

%description
Median filter for VapourSynth.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install 



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11250 |21cr|vapoursynth-plugin-Deblock-r6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-Deblock

Summary:	Deblock vapoursynth plugin
Name:		vapoursynth-plugin-Deblock
Version:	r6.1
Release:	1
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 26
BuildRequires:	meson
BuildRequires:	ninja

Requires:	vapoursynth >= R26

%description
It does a deblocking of the picture, 
using the deblocking filter of h264. 
Ported from AviSynth plugin 
http://www.avisynth.nl/users/fizick/mvtools/deblock.html.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11251 |21cr|vapoursynth-plugin-DeLogo-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-DeLogo

Summary:	DeLogo vapoursynth plugin
Name:		vapoursynth-plugin-DeLogo
Version:	0.4
Release:	2
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
Requires:	vapoursynth >= R48
ExclusiveArch:	%{ix86} %{x86_64}

%description
Usage
core.delogo.AddLogo(clip clip, string logofile, ...)
core.delogo.EraseLogo(clip clip, string logofile, ...)

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
./configure --install=%{buildroot}%{_libdir}/vapoursynth

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11252 |21cr|vapoursynth-plugin-DFTTest-r7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-DFTTest

Summary:	DFTTest vapoursynth plugin
Name:		vapoursynth-plugin-DFTTest
Version:	r7
Release:	1
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	meson
BuildRequires:	ninja
Requires:	vapoursynth >= R48

%description
2D/3D frequency domain denoiser.
Ported from AviSynth plugin 
http://bengal.missouri.edu/~kes25c/.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
meson build
ninja -C build


%install
DESTDIR=%{buildroot} ninja -C build install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11253 |21cr|vapoursynth-plugin-EEDI2-r7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-EEDI2

Summary:	EEDI2 vapoursynth plugin
Name:		vapoursynth-plugin-EEDI2
Version:	r7.1
Release:	1
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	meson
BuildRequires:	ninja
Requires:	vapoursynth >= R48

%description
EEDI2 resizes an image by 2x in the vertical direction 
by copying the existing image to 2*y(n) and 
interpolating the missing field. It is intended 
for edge-directed interpolation for deinterlacing 
(i.e. not really made for resizing a 
normal image, but can do that as well).
Ported from AviSynth plugin 
http://bengal.missouri.edu/~kes25c/.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11254 |21cr|vapoursynth-plugin-fluxsmooth-2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname vapoursynth-fluxsmooth

Summary:	FluxSmooth plugin for VapourSynth
Name:		vapoursynth-plugin-fluxsmooth
Version:	2
Release:	1
#The original FluxSmooth author said: "There is no copyright on this code,
#and there are no conditions on its #distribution or use. Do with it
#what you will." Thank you.
License:	None
Group:		Video
Url:		https://github.com/dubhater/vapoursynth-fluxsmooth
Source0:	https://github.com/dubhater/vapoursynth-fluxsmooth/archive/%{oname}-%{version}.tar.gz

BuildRequires:	nasm
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(vapoursynth) >= 48
Requires:	vapoursynth >= R48

%description
FluxSmooth is a filter for smoothing of fluctuations.

%files
%doc readme.rst
%{_libdir}/vapoursynth/libfluxsmooth.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}
autoreconf -fiv

%build
%configure \
	--prefix='%{_prefix}' \
	--libdir='%{_libdir}/vapoursynth'

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11255 |21cr|vapoursynth-plugin-IT-1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-IT

Summary:	IT vapoursynth plugin
Name:		vapoursynth-plugin-IT
Version:	1.2
Release:	5
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 26

Requires:	vapoursynth >= R26
ExclusiveArch:	%{ix86} %{x86_64}

%description
VapourSynth Plugin - Inverse Telecine 
YV12 Only, IT-0051 base, IT_YV12-0103 base)

- Original plugin: IT 0.051 by thejam79
- Original plugin: IT_YV12 v0.1.03 by minamina
- Original modify: 64bit/8k mod 
by poodle from (avisynth64bitplugin)
- All credits go to them.
- Special thanks to: macromizer.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}
chmod +x configure

%build
./configure --install=%{buildroot}%{_libdir}/vapoursynth

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11256 |21cr|vapoursynth-plugin-mvtools-23-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define debug_package	%%{nil}
%define oname	vapoursynth-mvtools

Summary:	MVTools plugin for VapourSynth
Name:		vapoursynth-plugin-mvtools
Version:	23
Release:	2
License:	GPLv2
Group:		Video
Url:		https://github.com/dubhater/vapoursynth-mvtools
Source0:	https://github.com/dubhater/vapoursynth-mvtools/archive/%{oname}-%{version}.tar.gz

BuildRequires:	nasm
BuildRequires:	automake
BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(fftw3)

Requires:	vapoursynth >= R48
ExclusiveArch:	%{ix86} %{x86_64}


%description
MVTools is a set of filters for motion estimation and compensation.


%files
%doc readme.rst
%{_libdir}/vapoursynth/libmvtools.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}

autoreconf -fiv
%build
%configure \
  --prefix='/usr' \
  --libdir='%{_libdir}/vapoursynth'
  
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11257 |21cr|vapoursynth-plugin-Retinex-r4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-Retinex

Summary:	Retinex vapoursynth plugin
Name:		vapoursynth-plugin-Retinex
Version:	r4
Release:	1
License:	GPLv3
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	meson
BuildRequires:	ninja

Requires:	vapoursynth >= R48
Requires:	python3

%description
The Retinex theory and algorithm mainly aims at 
simulating the color constancy feature of 
HVS(Human Visual System).

The light perceived by visual receptors 
can be separated into illuminance and reflectance. 
Retinex estimates the illuminance and derive the 
reflectance from the light, the filtered result 
of which is an image represents the reflectance 
characteristics of the scene, 
regardless of the illuminance.

Retinex is a very powerful filter in 
dynamic range compression, local contrast enhancement,
color constancy, de-fog, etc.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11258 |21cr|vapoursynth-plugin-SangNomMod-0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-SangNomMod

Summary:	SangNomMod vapoursynth plugin
Name:		vapoursynth-plugin-SangNomMod
Version:	0.1
Release:	5
License:	MIT
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}-fix.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 26

Requires:	vapoursynth >= R26
ExclusiveArch:	%{ix86} %{x86_64}

%description
VapourSynth Plugin - SangNomMod (YUVP8/Y8 Only)

- Original plugin: SangNom by MarcFD
- Original plugin: SangNom2 by TurboPascal7 (Victor Efimov)
- All credits go to them.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}-fix
chmod +x configure

%build
./configure --install=%{buildroot}%{_libdir}/vapoursynth

%make

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11259 |21cr|vapoursynth-plugin-TCanny-r14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-TCanny

Summary:	TCanny vapoursynth plugin
Name:		vapoursynth-plugin-TCanny
Version:	r14
Release:	1
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/VapourSynth-TCanny/archive/refs/tags/%{version}.tar.gz?/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	pkgconfig(OpenCL)
BuildRequires:	boost-devel
BuildRequires:	meson
BuildRequires:	ninja
Requires:	vapoursynth >= R48
ExclusiveArch:	%{ix86} %{x86_64}


%description
Builds an edge map using canny edge detection.

Ported from AviSynth plugin 
http://bengal.missouri.edu/~kes25c/.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11260 |21cr|vapoursynth-plugin-TDeintMod-r10.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-TDeintMod

Summary:	TDeintMod vapoursynth plugin
Name:		vapoursynth-plugin-TDeintMod
Version:	r10.1
Release:	3
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	meson
BuildRequires:	ninja
Requires:	vapoursynth >= R48
ExclusiveArch:	%{ix86} %{x86_64}

%description
TDeintMod is a combination of TDeint and TMM, 
which are both ported from tritical's 
AviSynth plugin http://bengal.missouri.edu/~kes25c/.

IsCombed is a utility function to check 
whether or not a frame is combed and stores 
the result (0 or 1) as a frame property named _Combed. 
It's intended to be used within `std.FrameEval` 
to process only combed frames and leave 
non-combed frames untouched.

Only a few functionality of TDeint is kept in TDeintMod,
either because some use inline asm and there 
is no equivalent C code in the source, or some 
are very rarely used by people nowadays. 
For example, the biggest change is that TDeint's 
internal building of motion mask is entirely 
dropped, and be replaced with TMM's motion mask. 
The second is that only cubic interpolation is 
kept as the only one internal interpolation method, 
all the others (ELA interpolation, kernel 
interpolation and blend interpolation) are dropped. 
Cubic interpolation is kept only for testing purpose, 
and people should really specify an externally 
interpolated clip via `edeint` argument for practical use.



%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11261 |21cr|vapoursynth-plugin-VagueDenoiser-r2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-VagueDenoiser

Summary:	VagueDenoiser vapoursynth plugin
Name:		vapoursynth-plugin-VagueDenoiser
Version:	r2
Release:	3
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	nasm
Requires:	vapoursynth >= R48
ExclusiveArch:	%{ix86} %{x86_64}


%description
This is a wavelet based denoiser.

Basically, it transforms each frame from the video 
input into the wavelet domain, 
using Cohen-Daubechies-Feauveau 9/7. 
Then it applies some filtering to 
the obtained coefficients. 
It does an inverse wavelet transform after. 
Due to wavelet properties, it should give a 
nice smoothed result, and reduced noise, 
without blurring picture features.

Ported from AviSynth plugin 
http://avisynth.org.ru/vague/vaguedenoiser.html.



%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}
chmod +x configure

%build
./configure --install=%{buildroot}%{_libdir}/vapoursynth

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11262 |21cr|vapoursynth-plugin-Yadifmod-r10.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname	VapourSynth-Yadifmod

Summary:	Yadifmod vapoursynth plugin
Name:		vapoursynth-plugin-Yadifmod
Version:	r10.1
Release:	2
License:	GPLv2
Group:		Video
Url:		https://github.com/HomeOfVapourSynthEvolution/%{oname}
Source0:	https://github.com/HomeOfVapourSynthEvolution/%{oname}-%{version}.tar.gz

BuildRequires:	pkgconfig(vapoursynth) >= 48
BuildRequires:	meson
BuildRequires:	ninja

Requires:	vapoursynth >= R48
ExclusiveArch:	%{ix86} %{x86_64}

%description
Modified version of Fizick's avisynth filter 
port of yadif from mplayer. 
This version doesn't internally 
generate spatial predictions, 
but takes them from an external clip.

Ported from AviSynth plugin 
http://web.missouri.edu/~kes25c/.

%files
%doc LICENSE README.md
%{_libdir}/vapoursynth/*.so

#--------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
meson build
ninja -C build

%install
DESTDIR=%{buildroot} ninja -C build install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11263 |21cr|vavoom-1.33-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open source port of the DOOM game engine
Name:		vavoom
Version:	1.33
Release:	9
License:	GPLv2+
Group:		Games/Arcade
Url:		http://vavoom-engine.com/
Source0:	http://dl.sourceforge.net/vavoom/%{name}-%{version}.tar.bz2
Patch0:		vavoom-1.30-linkage.patch
Patch1:		vavoom-1.30-fix-str-fmt.patch
Patch2:		vavoom-1.33-sfmt.patch
Patch3:		vavoom-1.33-cmake35.patch
# From Fedora package
Patch10:	vavoom-1.33-default-iwaddir.patch
Patch11:	vavoom-1.33-dont-override-delete.patch
Patch12:	vavoom-1.33-gcc6.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	subversion
BuildRequires:	jpeg-devel >= 1.3.0
BuildRequires:	libmikmod-devel
BuildRequires:	wxgtku-devel
BuildRequires:	pkgconfig(allegro)
BuildRequires:	pkgconfig(flac++)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(vorbis)
Recommends:	vavoom-vmdl
Recommends:	TiMidity++

%description
Vavoom is an open-source port of Doom, the classic 3D first-person shooter
game.  It adds some extra features to Doom such as translucency
and freelook support.

%files
%doc docs/*.log docs/gnu.txt docs/vavoom.txt
%{_gamesbindir}/*
%{_gamesdatadir}/*
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# This one line sed command is easier than trying to muck with the Makefile
# to add the proper -D definition.
sed -i "s|#define FL_BASEDIR.*|#define FL_BASEDIR \"%{_gamesdatadir}/%{name}\"|" source/files.h

%build
%cmake \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DBINDIR=%{_gamesbindir} \
	-DDATADIR=%{_gamesdatadir}/%{name} \
	-DWITH_SDL=Y \
	-DWITH_OPENGL=Y \
	-DWITH_OPENAL=Y \
	-DWITH_FLAC=Y \
	-DWITH_ALLEGRO=N

# copy some needed files to build dir
cp -r ../progs ./
cp -r ../utils/editing ./utils/

# The Makefile doesn't do parallel builds correctly.
make

%install
%makeinstall_std -C build

cat << EOF > %{name}.desktop
[Desktop Entry]
Name=Freedoom
Comment=Freedoom with the Vavoom engine
Exec=vavoom
Icon=arcade_section
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

desktop-file-install \
	--vendor="" \
	--dir %{buildroot}%{_datadir}/applications \
	%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11264 |21cr|vavoom-vmdl-1.4.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	vavoom

Name:		vavoom-vmdl
Version:	1.4.3
Release:	6
Epoch:		1
Summary:	VMDL files for %{oname}
Group:		Games/Arcade
License:	GPL
URL:		http://vavoom-engine.com/
Source0:	http://dl.sourceforge.net/vavoom/vmodels-doom-%{version}.zip
Source1:	http://dl.sourceforge.net/vavoom/vmodels-heretic-%{version}.zip
Source2:	http://dl.sourceforge.net/vavoom/vmodels-hexen-%{version}.zip
Source3:	http://dl.sourceforge.net/vavoom/vmodels-strife-%{version}.zip
BuildArch:	noarch
Requires:	%{oname}

%description
3D model files to replace many of the game sprites.

%prep
%setup -q -c -a 1 -a 2 -a 3 -n %{name}-%{version}

%build
# Move the documentation files around to make it easier for packaging
for i in doom heretic hexen strife ; do
    mkdir $i
    mv basev/$i/*.txt $i
done

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_gamesdatadir}/%{oname}
cp -ar basev %{buildroot}%{_gamesdatadir}/%{oname}

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%{_gamesdatadir}/%{oname}/basev/doom
%{_gamesdatadir}/%{oname}/basev/strife
%{_gamesdatadir}/%{oname}/basev/heretic
%{_gamesdatadir}/%{oname}/basev/hexen
%doc doom heretic hexen strife

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11265 |21cr|vbam-2.1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GameBoy Advance and GameBoy Color emulator
Name:		vbam
Version:	2.1.4
Release:	4
License:	GPLv2+
Group:		Emulators
Url:		http://vba-m.com/
Source0:	https://github.com/visualboyadvance-m/visualboyadvance-m/archive/%{version}.tar.gz?/visualboyadvance-m-%{version}.tar.gz
Patch0:		visualboyadvance-m-VBA-M_Beta_2-cmake-sfml2.patch
Patch1:		visualboyadvance-m-VBA-M_Beta_2-gui-freeze-on-exit.patch
# Auto-detection in WxWidgets doesn't work, force GTK2
Patch2:		visualboyadvance-m-2.1.4-force-gtk2.patch
BuildRequires:	cmake
BuildRequires:	zip
BuildRequires:	gomp-devel
BuildRequires:	sfml-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)
ExcludeArch:	%{armx}

%description
VisualBoyAdvance-M is a GameBoy Advance and GameBoy Color emulator.
It is based on VisualBoyAdvance and integrates the best features from
the various other forks.

It also features a wxWidgets frontend.

%files -f wxvbam.lang
%doc doc/ReadMe.SDL.txt doc/DevInfo.txt
%{_bindir}/visualboyadvance-m
%{_datadir}/appdata/wxvbam.appdata.xml
%{_datadir}/applications/wxvbam.desktop
%{_datadir}/vbam/
%{_iconsdir}/hicolor/*/apps/vbam.*
%{_mandir}/man6/visualboyadvance-m.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n visualboyadvance-m-%{version}

%build
%cmake \
	-DENABLE_ASM:BOOL=OFF		\
	-DENABLE_FFMPEG:BOOL=OFF	\
	-DENABLE_LINK:BOOL=ON		\
	-DVERSION_RELEASE="%{release}"	\
	-DVERSION="%{version}"
%make

%install
%makeinstall_std -C build

%find_lang wxvbam

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11266 |21cr|vbetool-1.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Real-mode video BIOS utility to alter hardware state
Name:		vbetool
Version:	1.1
Release:	17
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://www.srcf.ucam.org/~mjg59/vbetool/
Source0:	http://www.srcf.ucam.org/~mjg59/vbetool/vbetool_%{version}.tar.gz
Patch0:		vbetool_1.1-lz.patch
BuildRequires:	libx86-devel
BuildRequires:	pkgconfig(libpci)
ExclusiveArch:	%{ix86} x86_64

%description
vbetool allows you to run real-mode video BIOS code to alter
hardware state. It uses lrmi in order to run code from the video BIOS.
Currently, it is able to alter DPMS states, save/restore video card state
and attempts to initialize the video card from scratch.

%files
%doc COPYING
%doc %{_mandir}/man1/vbetool.1*
%{_sbindir}/vbetool

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11267 |21cr|vblade-22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
# (Nanar) TODO: An initscript !!

Summary:	Programs to export AoE block device
Name:		vblade
Version:	22
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://aoetools.sourceforge.net
Source0:	https://sourceforge.net/projects/aoetools/files/vblade/%{name}-%{version}.tar.gz

%description
The vblade program (storage target) exports a block device using AoE.

%files
%doc HACKING NEWS README
%{_sbindir}/*
%{_mandir}/*/*

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install

mkdir -p %{buildroot}{%{_sbindir},%{_mandir}/man8}

install vblade %{buildroot}%{_sbindir}/vblade
install vblade.8 %{buildroot}%{_mandir}/man8/vblade.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11268 |21cr|vboxtool-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
BuildArch:		noarch
Name:			vboxtool
Summary:		Easy control of virtual machines of VirtualBox on a Linux headless server
Version:		0.5
Release:		1 
Source0:		%{name}-%{version}.zip
Source1:		machines.conf
Source2:		vboxtool.conf
Patch1:			vboxtoolinit.patch
URL:			http://sourceforge.net/projects/%{name}/ 

Group:			Emulators 
License:		GPLv3 
Requires(pre):		rpm-helper
Requires(preun):	rpm-helper


%description
Easy control of VM of VirtualBox on a Linux headless server.


%prep 
%setup -q -T -a0 -c
%patch1	-p0 -b .patch

chmod 644 readme.txt 
chmod 644 COPYING.txt 
chmod 644 changelog.txt


%build
%install
install -d %{buildroot}/%{_prefix}/bin/
install -d %{buildroot}/%{_sysconfdir}/init.d/
install -d %{buildroot}/%{_sysconfdir}/%{name}/
cp -f script/vboxtool %{buildroot}/%{_prefix}/bin/
cp -f script/vboxtoolinit %{buildroot}/%{_sysconfdir}/init.d/
cp -f %{SOURCE1} %{buildroot}/%{_sysconfdir}/%{name}/
cp -f %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}/
chmod 644 %{buildroot}/%{_sysconfdir}/%{name}/*


%clean


%post
%_post_service vboxtoolinit



%preun
%_preun_service vboxtoolinit


%files
%doc readme.txt COPYING.txt changelog.txt
%config(noreplace) %{_sysconfdir}/%{name}/machines.conf
%config(noreplace) %{_sysconfdir}/%{name}/vboxtool.conf 
%{_prefix}/bin/%{name}
%{_sysconfdir}/init.d/vboxtoolinit

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11269 |21cr|vcg-1.30-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define name vcg
%define version 1.30
%define rel 10
%define release %{rel}

Summary: The VCG visualization tool for compiler graphs
Name: %name
Version: %version
Release: %release
License: GPL
Group: Graphics
URL: http://www.cs.uni-sb.de/RW/users/sander/html/gsvcg1.html
Source: ftp://ftp.cs.uni-sb.de/pub/graphics/vcg/vcg.tar.bz2
Patch0: vcg.1.30-fix-build.patch
Patch1: vcg.1.30-fix-link.patch

BuildRequires: pkgconfig(x11)

%description
The VCG tool reads a textual and readable specification of a 
graph and visualizes the graph.  If not all positions of 
nodes are fixed, the tool layouts the graph using several 
heuristics as reducing the number of crossings, minimizing 
the size of edges, centering of nodes.  The specification 
language of the VCG tool is nearly compatible to GRL, the 
language of the edge tool, but contains many extensions.  The 
VCG tool allows folding of dynamically or statically specified 
regions of the graph.  It uses colors and runs on X11.

%prep 
%setup -q -n %{name}.%{version}
%patch0 -p1 -z .pix
%patch1 -p0 -b .link

%build
make xvcg_gcc_noxmkmf xvcg CFLAGS="-c %{optflags -wall}"

%install
install -d %buildroot/{%{_bindir},%{_mandir}/manl}
make SED=sed BINDIR=%buildroot/%{_bindir} MANDIR=%buildroot/%{_mandir}/man1 MANEXT=1 install

cp -f demo/demo.csh expl
chmod 644 expl/cfg.vcg


%files
%doc COPYING README expl
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11270 |21cr|vcmi-1.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	Open-source re-implementation and extension of the Heroes III game engine
Name:		vcmi
Version:	1.6.3
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://www.vcmi.eu/
Source0:	https://github.com/vcmi/vcmi/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	vcmi.rpmlintrc
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(fuzzylite)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(tbb)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(zlib)

%description
VCMI is an open-source project aiming to re-implement the Heroes of Might and
Magic III: In the Wake of Gods game engine, giving it new and extended
possibilities.
To play Heroes III, you will need a copy of the original game.
See VCMI's wiki for Heroes III installation instructions:
https://wiki.vcmi.eu/index.php?title=Installation_on_Linux.

%files
%doc ChangeLog.md
%{_bindir}/%{name}builder
%{_bindir}/%{name}client
%{_bindir}/%{name}editor
%{_bindir}/%{name}launcher
%{_bindir}/%{name}server
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}client.png
%{_iconsdir}/hicolor/*/apps/%{name}client.svg
%{_iconsdir}/hicolor/*/apps/%{name}editor.png
%{_datadir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}qt.so
%{_libdir}/%{name}
%{_metainfodir}/eu.%{name}.VCMI.metainfo.xml

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="%{ldflags} -lboost_chrono"
%cmake	\
	-DCMAKE_BUILD_TYPE=RelWithDebInfo		\
	-DCMAKE_INSTALL_RPATH=%{_libdir}/%{name}	\
	-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=ON		\
	-DDATA_DIR=share/%{name}	\
	-DENABLE_INNOEXTRACT='FALSE'	\
	-DENABLE_TEST=0			\
	-DFORCE_BUNDLED_FL=OFF		\
	-UCMAKE_INSTALL_LIBDIR		\
	-Wno-dev
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_libdir}
mv %{buildroot}%{_libdir}/%{name}/lib%{name}.so %{buildroot}%{_libdir}/lib%{name}.so
mv %{buildroot}%{_libdir}/%{name}/lib%{name}qt.so %{buildroot}%{_libdir}/lib%{name}qt.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11271 |21cr|VCO-plugins-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:           VCO-plugins
Version:        0.3.0
Release:        4
Summary:        LADSPA audio oscillator plugins

Group:          System/Libraries
License:        GPLv2
URL:            http://users.skynet.be/solaris/linuxaudio/
Source:         http://users.skynet.be/solaris/linuxaudio/downloads/%{name}-%{version}.tar.bz2

BuildRequires: ladspa-devel
Requires:   ladspa

%description
VCO-plugins is a bunch of LADSPA plugins for audio processing written by
Fons Adriaensen.

%prep
%setup -q

%build
make %{?_smp_mflags}

%install
rm -rf %{_buildroot}

install -d -m 755 %{buildroot}/%{_libdir}/ladspa
install -m 644 *.so %{buildroot}/%{_libdir}/ladspa

%files
%defattr(-,root,root,-)
%doc AUTHORS COPYING README
%{_libdir}/ladspa/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11272 |21cr|vdk-2.5.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# underlink.patch fixes most underlinking issues but there's one weird
# one I just can't shift - AdamW 2008/09
%define _disable_ld_no_undefined 1

%define oname vdklib

%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++++ framework that binds GTK+ GUI libraries
Name:		vdk
Version:	2.5.1
Release:	11
License:	LGPLv2+
Group:		System/Libraries
Source0:	http://downloads.sourceforge.net/%{oname}/%{name}-%{version}.tar.gz
Url:		http://vdklib.sourceforge.net/
BuildRequires:	tetex
BuildRequires:	pkgconfig(dmx)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(sigc++-2.0)

%description
The Visual Development Kit (VDK) is a C++ library that wraps the GTK+
toolkit. The package also includes the VDK Component Library which
contains some useful new components not available in pure GTK+.

Programming in VDK is much like programming in VCL and Borland C++
Builder.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++++ framework that binds GTK+ GUI libraries
Group:		System/Libraries

%description -n %{libname}
The Visual Development Kit (VDK) is a C++ library that wraps the GTK+
toolkit. The package also includes the VDK Component Library which
contains some useful new components not available in pure GTK+.

Programming in VDK is much like programming in VCL and Borland C++
Builder.

%files -n %{libname}
%{_libdir}/libvdk*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	C++++ framework that binds GTK+ GUI libraries
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and libraries needed to compile and
link applications using VDK.

%files -n %{devname}
%doc README TODO example doc/*.txt
%{_libdir}/libvdk*.so
%{_includedir}/vdk-2
%{_mandir}/man1/*
%{_bindir}/*
%{_datadir}/aclocal/*
%{_libdir}/pkgconfig/vdk-2.x.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--host=%{_target_platform} \
	--build=%{_target_platform} \
	--enable-debug=no \
	--enable-shared=yes \
	--enable-static=no \
	--enable-opt=2 \
	--enable-testvdk=yes \
	--enable-sigc=yes \
	--enable-testsigc=yes \
	--enable-gnome=yes \
	--enable-doc-html=yes \
	--enable-doc-latex=no \
	--enable-doc-man=yes

%make
make docs

%install
%makeinstall
rm -rf %{buildroot}/%{_docdir}/%{name}-devel-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11273 |21cr|vdr-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO, maybe some day:
# - livebuffer patch, http://www.vdr-portal.de/board/thread.php?threadid=37309
# - channelfilter patch, http://www.u32.de/vdr.html#patches
# - more rofa's patches, http://www.saunalahti.fi/~rahrenbe/vdr/patches/
# - pause patch (causes OSD placement issues at least with unrebuilt text2skin)
#   http://www.tolleri.net/vdr/vdr/vdr-1.6.0-2-pause-0.0.1.patch
#   http://thread.gmane.org/gmane.linux.vdr/40188

# - The dvbhddevice plugin is no longer part of the VDR source archive.
#  You can get the latest version of this plugin from the author's repository at
#  https://bitbucket.org/powARman/dvbhddevice.
# - The dvbsddevice and rcu plugins are no longer part of the VDR source archive.
#  You can get the latest versions of these plugins from ftp://ftp.tvdr.de/vdr/Plugins.

%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
%define _disable_ld_no_undefined 1
%global _hardened_build 1
%bcond_without    docs

%global varbase   %{_var}/lib/vdr
%global videodir  %{varbase}/video
%global vardir    %{varbase}/data
%global plugindir %{_libdir}/vdr
%global configdir %{_sysconfdir}/vdr
%global cachedir  %{_var}/cache/vdr
%global rundir    /run/vdr
%global vdr_user  vdr
%global vdr_group video
# From APIVERSION in config.h
%global apiver    2.6.1

Name:           vdr
Version:        2.6.1
Release:        1
Summary:        Video Disk Recorder
Group:		Video
License:        GPLv2+
URL:            http://www.tvdr.de/
# Get vdr source from http://git.tvdr.de/?p=vdr.git;a=snapshot;h=refs/tags/2.4.7;sf=tbz2
Source0:        %{name}-%{version}.tar.bz2
Source1:        %{name}.service
Source2:        %{name}.sysconfig
Source3:        %{name}.sudoers
Source5:        %{name}-reccmds.conf
Source6:        %{name}-commands.conf
Source7:        %{name}-runvdr.sh
Source8:        %{name}-dvbsddevice.conf
Source9:        %{name}-config.sh
Source10:       %{name}-README.package
Source11:       %{name}-skincurses.conf
Source12:       %{name}-dvbhddevice.conf
Source13:       %{name}-timercmds.conf
Source14:       %{name}-shutdown.sh
Source15:       %{name}-moveto.sh
Source16:       %{name}-CHANGES.package.old
Source17:       %{name}.macros
Source18:       http://cdn.debian.net/debian/pool/main/v/vdr/vdr_2.6.0-1.debian.tar.xz
Source19:       %{name}-check-setup.sh
Source20:       %{name}-rcu.conf
Source21:       %{name}-set-wakeup.sh
Source30:       https://bitbucket.org/powARman/dvbhddevice/get/2ea854ae8c7a.zip
Source31:       ftp://ftp.tvdr.de/vdr/Plugins/vdr-dvbsddevice-2.2.0.tgz
Source32:       ftp://ftp.tvdr.de/vdr/Plugins/vdr-rcu-2.2.0.tgz

Patch0:         define_AUDIO_GET_PTS.patch
Patch1:         http://zap.tartarus.org/~ds/debian/dists/stable/main/source/vdr_1.4.5-2.ds.diff.gz
Patch2:         http://www.saunalahti.fi/~rahrenbe/vdr/patches/vdr-2.4.6-editrecording.patch.gz
# Extracted from http://copperhead.htpc-forum.de/downloads/extensionpatch/extpngvdr1.7.21v1.diff.gz
Patch3:         %{name}-1.7.21-plugin-missing.patch
Patch4:         %{name}-2.4.0-paths.patch
# http://vdrportal.de/board/thread.php?postid=343665#post343665
Patch7:         12_osdbase-maxitems.patch
# http://www.udo-richter.de/vdr/naludump.en.html
Patch10:        vdr-2.5.6-naludump-0.1.diff
# http://article.gmane.org/gmane.linux.vdr/43590
Patch11:        vdr-2.5.6-maunmenuhooks103.patch
# https://www.vdr-portal.de/index.php?attachment/46195-eit-patch-gz/
Patch12:        vdr-2.6.0-eit.patch
# Sent upstream 2016-06-17
Patch15:        %{name}-1.7.37-fedora-pkgconfig.patch
# https://www.vdr-portal.de/index.php?attachment/44831-vdr-2-4-6-clearobsoletechannels-diff/
Patch99:        %{name}-2.4.6-ClearObsoleteChannels2.diff

BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  libcap-devel
BuildRequires:  perl(File::Spec)
BuildRequires:  fontconfig-devel
BuildRequires:  freetype-devel
BuildRequires:  gettext
# systemd >= 186 for scriptlet macros
BuildRequires:  systemd >= 186
BuildRequires:  pkgconfig(systemd)
%if %{with docs}
BuildRequires:  doxygen
BuildRequires:  graphviz
%endif
# udev >= 136-1 for the audio, cdrom, dialout, and video groups
Requires:       udev >= 136-1
# sudo for the shutdown script, >= 1.7.2p2-3 for sudoers.d functionality
Requires:       sudo >= 1.7.2p2-3
# util-linux >= 2.15 for "rtcwake -m no" timer driven wakeups
Requires:       util-linux >= 2.15
Requires:       vdrsymbol-fonts
# shadow-utils >= 4.1.1 for useradd -N
Requires(pre):  shadow-utils >= 2:4.1.1
# systemd >= 189 for RestartPreventExitStatus=
Requires(post,preun,postun): systemd >= 189
Provides:       vdr(abi)%{?_isa} = %{apiver}
Obsoletes:      vdr-subtitles <= 0.5.0
Obsoletes:      vdr-sky < 1.7.11

%description
VDR implements a complete digital set-top-box and video recorder.
It can work with signals received from satellites (DVB-S) as well as
cable (DVB-C) and terrestrial (DVB-T) signals.  At least one DVB card
is required to run VDR.

%package        devel
Summary:        Development files for VDR
Group:		Video
Requires:       gettext
Provides:       vdr-devel(api) = %{apiver}

%description    devel
%{summary}.

%package        docs
Summary:        Developer documentation for VDR
Group:		Documentation
BuildArch:      noarch

%description    docs
%{summary}.

%package        dvbhddevice
Summary:        VDR output device plugin for TechnoTrend S2-6400 DVB cards
Group:		Video
Requires:       vdr(abi)%{?_isa} = %{apiver}

%description    dvbhddevice
The dvbhddevice plugin implements a VDR output device for the "Full
Featured TechnoTrend S2-6400" DVB cards.

%package        dvbsddevice
Summary:        VDR output device plugin for full featured SD DVB cards
Group:		Video
Requires:       vdr(abi)%{?_isa} = %{apiver}
# To get this subpackage pulled in on upgrades
Obsoletes:      vdr < 1.7.11

%description    dvbsddevice
The dvbsddevice plugin implements the output device for the "Full
Featured" DVB cards based on the TechnoTrend/Fujitsu-Siemens design.

%package        rcu
Summary:        VDR remote control unit plugin
Group:		Video
Requires:       vdr(abi)%{?_isa} = %{apiver}
# To get this subpackage pulled in on upgrades
Obsoletes:      vdr < 1.7.25

%description    rcu
The rcu plugin implements a remote control unit for VDR.

%package        skincurses
Summary:        Shell window skin plugin for VDR
Group:		Video
BuildRequires:  ncurses-devel
Requires:       vdr(abi)%{?_isa} = %{apiver}

%description    skincurses
The skincurses plugin implements a VDR skin that works in a shell
window, using only plain text output.


%prep
%setup -q -a 18
# dvbhddevice
unzip -o %{SOURCE30} -d %{_builddir}/vdr-%{apiver}/PLUGINS/src
mv %{_builddir}/vdr-%{apiver}/PLUGINS/src/powARman-dvbhddevice-2ea854ae8c7a %{_builddir}/vdr-%{apiver}/PLUGINS/src/dvbhddevice
cd PLUGINS/src
%patch0 -p3
cd ../..
# dvbsddevice
tar -xzf %{SOURCE31} -C %{_builddir}/vdr-%{apiver}/PLUGINS/src
mv %{_builddir}/vdr-%{apiver}/PLUGINS/src/dvbsddevice-2.2.0 %{_builddir}/vdr-%{apiver}/PLUGINS/src/dvbsddevice
# rcu
tar -xzf %{SOURCE32} -C %{_builddir}/vdr-%{apiver}/PLUGINS/src
mv %{_builddir}/vdr-%{apiver}/PLUGINS/src/rcu-2.2.0 %{_builddir}/vdr-%{apiver}/PLUGINS/src/rcu

%patch1 -p1
# sort_options would be nice, but it conflicts with channel+epg which is nicer
#patch -F 0 -i debian/patches/02_sort_options.dpatch
# TODO: does not apply since 1.7.24
#patch -F 0 -i debian/patches/06_recording_scan_speedup.dpatch
patch -F 2 -i debian/patches/07_blockify_define.dpatch
%patch2 -p1
%patch3 -p1
sed \
    -e 's|__CACHEDIR__|%{cachedir}|'   \
    -e 's|__CONFIGDIR__|%{configdir}|' \
    -e 's|__PLUGINDIR__|%{plugindir}|' \
    -e 's|__VARDIR__|%{vardir}|'       \
    -e 's|__VIDEODIR__|%{videodir}|'   \
    %{PATCH4} | %{__patch} -p1
%patch7 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch15 -p1
%patch99 -p1

# Patch APIVERSION TO 2.5.6 to match VDRVERSION
# sed -i 's/2\.4\.3/2.5.6/' config.h
# sed -i 's/20406/20407/' config.h

for f in CONTRIBUTORS HISTORY UPDATE-1.4.0 \
    PLUGINS/src/dvbhddevice/HISTORY; do
    iconv -f iso-8859-1 -t utf-8 -o $f.utf8 $f && mv $f.utf8 $f
done

cp -p %{SOURCE5} reccmds.conf
cp -p %{SOURCE13} timercmds.conf
cp -p %{SOURCE6} commands.conf
# Unfortunately these can't have comments in them, so ship 'em empty.
cat /dev/null > channels.conf
cat /dev/null > remote.conf
cat /dev/null > setup.conf
cat /dev/null > timers.conf

install -pm 644 %{SOURCE10} README.package
install -pm 644 %{SOURCE16} CHANGES.package.old

# Would like to do "files {channels,setup,timers}.conf" from config dir
# only, but rename() in cSafeFile barks "device or resource busy", cf.
# http://lists.suse.com/archive/suse-programming-e/2003-Mar/0051.html
cat << EOF > %{name}.rwtab
dirs    %{cachedir}
files   %{configdir}
files   %{vardir}
EOF

# Disable some graphs that end up too big to be useful.
for g in COLLABORATION INCLUDE INCLUDED_BY ; do
    sed -i -e 's/^\(\s*'$g'_GRAPH\s*=\s*\).*/\1NO/' Doxyfile
done

%build
cat << EOF > Make.config
CC           = %{__cc}
CXX          = %{__cxx}

CFLAGS       = \$(shell pkg-config vdr --variable=cflags)
CXXFLAGS     = \$(shell pkg-config vdr --variable=cxxflags)
LDFLAGS      = $RPM_LD_FLAGS

PREFIX       = %{_prefix}
MANDIR       = \$(shell pkg-config vdr --variable=mandir)
BINDIR       = \$(shell pkg-config vdr --variable=bindir)

LOCDIR       = \$(shell pkg-config vdr --variable=locdir)
PLUGINLIBDIR = \$(shell pkg-config vdr --variable=libdir)
VIDEODIR     = \$(shell pkg-config vdr --variable=videodir)
CONFDIR      = \$(shell pkg-config vdr --variable=configdir)
CACHEDIR     = \$(shell pkg-config vdr --variable=cachedir)
RESDIR       = \$(shell pkg-config vdr --variable=resdir)
INCDIR       = %{_includedir}
LIBDIR       = \$(PLUGINLIBDIR)

PLGCFG       = \$(LIBDIR)/plugins.mk
LIRC_DEVICE  = %{_localstatedir}/run/lirc/lircd
# New Bug 1873027 LIRC_DEVICE  = /run/lirc/lircd
VDR_USER     = \$(shell pkg-config vdr --variable=user)
SDNOTIFY     = 1
EOF

cat << EOF > plugins.mk
LDFLAGS = $RPM_LD_FLAGS
EOF

cp plugins.mk bundled-plugins.mk
cat << EOF >> bundled-plugins.mk
CFLAGS += -I$PWD/include
CXXFLAGS += -I$PWD/include
EOF

cflags="${RPM_OPT_FLAGS/-O2/-O3} -fPIC" # see HISTORY for 1.7.17 for -O3

make vdr.pc BINDIR=%{_bindir} MANDIR=%{_mandir} CONFDIR=%{configdir} \
    VIDEODIR=%{videodir} CACHEDIR=%{cachedir} RESDIR=%{_datadir}/vdr \
    LIBDIR=%{plugindir} LOCDIR=%{_datadir}/locale RUNDIR=%{rundir} \
    VARDIR=%{vardir} VDR_USER=%{vdr_user} VDR_GROUP=%{vdr_group} \
    LDFLAGS="$RPM_LD_FLAGS" CFLAGS="$cflags" \
    CXXFLAGS="$cflags -Werror=overloaded-virtual -Wno-parentheses"

PKG_CONFIG_PATH="$PWD:$PKG_CONFIG_PATH" \
%make_build vdr include-dir i18n

for plugin in dvbhddevice dvbsddevice rcu skincurses ; do
    %make_build -C PLUGINS/src/$plugin VDRDIR=$PWD \
        PLGCFG=$PWD/bundled-plugins.mk all
done

%if %{with docs}
%make_build srcdoc
%endif


%install
# Not using the install-pc target to preserve our already good vdr.pc
install -Dpm 644 vdr.pc %{buildroot}%{_libdir}/pkgconfig/vdr.pc

PKG_CONFIG_PATH="%{buildroot}%{_libdir}/pkgconfig:$PKG_CONFIG_PATH" \
make install-bin install-dirs install-conf install-doc install-i18n \
    install-includes DESTDIR=%{buildroot}

install -pm 755 epg2html %{buildroot}%{_bindir}
install -dm 755 %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/vdr %{buildroot}%{_sbindir}

install -dm 755 %{buildroot}%{configdir}/plugins

install -dm 755 %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d

install -dm 755 %{buildroot}%{vardir}/themes
touch %{buildroot}%{vardir}/themes/{classic,sttng}-default.theme

install -pm 755 %{SOURCE7} %{buildroot}%{_sbindir}/runvdr
sed -i \
    -e 's|/usr/sbin/|%{_sbindir}/|'                    \
    -e 's|/etc/sysconfig/|%{_sysconfdir}/sysconfig/|g' \
    -e 's|/usr/lib/vdr\b|%{plugindir}|'                \
    -e 's|VDR_PLUGIN_VERSION|%{apiver}|'               \
    %{buildroot}%{_sbindir}/runvdr

install -Dm 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/vdr
sed -i \
    -e 's|/usr/lib/vdr/|%{plugindir}/|' \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr

touch %{buildroot}%{videodir}/.update

install -dm 755 %{buildroot}%{plugindir}/bin

install -m 755 %{SOURCE14} %{buildroot}%{plugindir}/bin/%{name}-shutdown.sh
sed -i \
    -e 's|/etc/sysconfig/|%{_sysconfdir}/sysconfig/|' \
    -e 's|/var/run/vdr/|%{rundir}/|'                  \
    %{buildroot}%{plugindir}/bin/%{name}-shutdown.sh

install -m 755 %{SOURCE15} %{buildroot}%{plugindir}/bin/%{name}-moveto.sh
sed -i \
    -e 's|/var/lib/vdr/video|%{videodir}|' \
    -e 's|/etc/vdr/|%{configdir}/|'        \
    %{buildroot}%{plugindir}/bin/%{name}-moveto.sh

install -m 755 %{SOURCE19} %{buildroot}%{plugindir}/bin/%{name}-check-setup
sed -i \
    -e 's|/etc/vdr/|%{configdir}/|' \
    -e 's|VDR_USER|%{vdr_user}|'    \
    -e 's|VDR_GROUP|%{vdr_group}|'  \
    %{buildroot}%{plugindir}/bin/%{name}-check-setup

install -m 755 %{SOURCE21} %{buildroot}%{plugindir}/bin/%{name}-set-wakeup
sed -i \
    -e 's|/usr/sbin/|%{_sbindir}/|'  \
    -e 's|/var/run/vdr/|%{rundir}/|' \
    %{buildroot}%{plugindir}/bin/%{name}-set-wakeup

install -Dm 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
sed -i \
    -e 's|/usr/lib/vdr/|%{plugindir}/|'        \
    -e 's|/usr/sbin/|%{_sbindir}/|'            \
    -e 's|/usr/share/doc/vdr/|%{_pkgdocdir}/|' \
    %{buildroot}%{_unitdir}/%{name}.service

install -Dpm 440 %{SOURCE3} %{buildroot}%{_sysconfdir}/sudoers.d/vdr

touch %{buildroot}%{cachedir}/epg.data
install -dm 755 %{buildroot}%{_datadir}/vdr/{logos,plugins}
install -dm 755 %{buildroot}%{rundir}
touch %{buildroot}%{rundir}/next-timer
install -dm 755 %{buildroot}%{vardir}

install -Dpm 644 %{name}.rwtab %{buildroot}%{_sysconfdir}/rwtab.d/%{name}

install -dm 755 %{buildroot}%{_pkgdocdir}
install -pm 644 CHANGES.package.old CONTRIBUTORS \
    HISTORY* INSTALL MANUAL PLUGINS.html README* UPDATE-?.?.0 \
    %{buildroot}%{_pkgdocdir}
%if %{with docs}
cp -pR srcdoc/html %{buildroot}%{_pkgdocdir}
%endif

# devel

abs2rel() { perl -MFile::Spec -e 'print File::Spec->abs2rel(@ARGV)' "$@" ; }

install -pm 755 %{SOURCE9} %{buildroot}%{_bindir}/vdr-config
install -pm 755 newplugin %{buildroot}%{_bindir}/vdr-newplugin
install -pm 644 Make.{config,global} plugins.mk %{buildroot}%{_libdir}/vdr
ln -s $(abs2rel %{_includedir}/vdr/config.h %{_libdir}/vdr) \
    %{buildroot}%{_libdir}/vdr
macrodir=%{_sysconfdir}/rpm
[ -d %{_rpmconfigdir}/macros.d ] && macrodir=%{_rpmconfigdir}/macros.d
install -Dpm 644 %{SOURCE17} %{buildroot}$macrodir/macros.vdr
echo $macrodir/macros.vdr > %{name}-devel.files

# i18n

%find_lang %{name}
sed -i -e '1i%%defattr(-,root,root,-)' %{name}.lang

install -dm 755 %{buildroot}%{_prefix}/lib/tmpfiles.d
echo "d %{rundir} 0755 %{vdr_user} root -" \
    > %{buildroot}%{_prefix}/lib/tmpfiles.d/%{name}.conf
echo "%{_prefix}/lib/tmpfiles.d/%{name}.conf" \
    >> %{name}.lang

# plugins

%make_install -C PLUGINS/src/dvbhddevice
install -pm 644 %{SOURCE12} \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/dvbhddevice.conf
%find_lang %{name}-dvbhddevice

%make_install -C PLUGINS/src/dvbsddevice
install -pm 644 %{SOURCE8} \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/dvbsddevice.conf

%make_install -C PLUGINS/src/rcu
install -pm 644 %{SOURCE20} \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/rcu.conf

%make_install -C PLUGINS/src/skincurses
install -pm 644 %{SOURCE11} \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/skincurses.conf
%find_lang %{name}-skincurses


%check
export PKG_CONFIG_PATH=%{buildroot}%{_libdir}/pkgconfig
if [ "$(pkg-config vdr --variable=apiversion)" != "%{apiver}" ] ; then
    echo "ERROR: API version mismatch in vdr.pc / package / config.h" ; exit 1
fi


%pre
# dialout for serial port remote controllers
getent passwd %{vdr_user} >/dev/null || \
useradd -r -g %{vdr_group} -d %{vardir} -s /sbin/nologin -M -N \
    -G audio,cdrom,dialout -c "Video Disk Recorder" %{vdr_user} || :

%post
%systemd_post %{name}.service
systemctl daemon-reload

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files -f %{name}.lang
%{_pkgdocdir}
%exclude %{_pkgdocdir}/PLUGINS.html
%if %{with docs}
%exclude %{_pkgdocdir}/html/
%endif
%config(noreplace) %{_sysconfdir}/sudoers.d/vdr
%config(noreplace) %{_sysconfdir}/sysconfig/vdr
%config(noreplace) %{_sysconfdir}/rwtab.d/%{name}
%config %dir %{_sysconfdir}/sysconfig/vdr-plugins.d/
%{_bindir}/epg2html
%{_bindir}/svdrpsend
%{_sbindir}/runvdr
%{_sbindir}/vdr
%{_unitdir}/%{name}.service
%dir %{plugindir}/
%dir %{plugindir}/bin/
%{plugindir}/bin/%{name}-check-setup
%{plugindir}/bin/%{name}-moveto.sh
%{plugindir}/bin/%{name}-set-wakeup
%{plugindir}/bin/%{name}-shutdown.sh
%{_datadir}/vdr/
%{_mandir}/man1/svdrpsend.1*
%{_mandir}/man1/vdr.1*
%{_mandir}/man5/vdr.5*
%dir %{varbase}/
%defattr(-,%{vdr_user},%{vdr_group},-)
# TODO: tighten ownerships to root:root for some files in %%{configdir}
%config(noreplace) %{configdir}/*.conf
%dir %{videodir}/
%ghost %{videodir}/.update
%ghost %{vardir}/themes/*.theme
%ghost %{cachedir}/epg.data
%defattr(-,%{vdr_user},root,-)
%dir %{configdir}/
%dir %{configdir}/plugins/
%dir %{rundir}/
%ghost %{rundir}/next-timer
%dir %{vardir}/
%dir %{vardir}/themes/
%dir %{cachedir}/

%files devel -f %{name}-devel.files
%{!?_with_docs:%dir %{_pkgdocdir}}
%license COPYING
%if ! %{with docs}
%{_pkgdocdir}/PLUGINS.html
%endif
%{_bindir}/vdr-config
%{_bindir}/vdr-newplugin
%{_includedir}/libsi/
%{_includedir}/vdr/
%{_libdir}/pkgconfig/vdr.pc
%dir %{_libdir}/vdr/
%{_libdir}/vdr/Make.config
%{_libdir}/vdr/Make.global
%{_libdir}/vdr/config.h
%{_libdir}/vdr/plugins.mk

%if %{with docs}
%files docs
%dir %{_pkgdocdir}
%license COPYING
%{_pkgdocdir}/PLUGINS.html
%{_pkgdocdir}/html/
%endif

%files dvbhddevice -f %{name}-dvbhddevice.lang
%license PLUGINS/src/dvbhddevice/COPYING
%doc PLUGINS/src/dvbhddevice/{HISTORY,README}
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/dvbhddevice.conf
%{plugindir}/libvdr-dvbhddevice.so.%{apiver}

%files dvbsddevice
%license PLUGINS/src/dvbsddevice/COPYING
%doc PLUGINS/src/dvbsddevice/{HISTORY,README}
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/dvbsddevice.conf
%{plugindir}/libvdr-dvbsddevice.so.%{apiver}

%files rcu
%license PLUGINS/src/rcu/COPYING
%doc PLUGINS/src/rcu/{HISTORY,README}
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/rcu.conf
%{plugindir}/libvdr-rcu.so.%{apiver}

%files skincurses -f %{name}-skincurses.lang
%license PLUGINS/src/skincurses/COPYING
%doc PLUGINS/src/skincurses/{HISTORY,README}
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/skincurses.conf
%{plugindir}/libvdr-skincurses.so.%{apiver}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11274 |21cr|vdr-plugin-extrecmenung-2.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pname	extrecmenung

%global __provides_exclude_from ^%{vdr_plugindir}/.*\\.so.*$

Summary:	VDR plugin: Extended recordings menu
Name:		vdr-plugin-extrecmenung
Version:	2.0.11
Release:	1
Group:		Video
License:	GPL
URL:		https://gitlab.com/kamel5/extrecmenung
Source0:	https://gitlab.com/kamel5/extrecmenung/-/archive/v%{version}/extrecmenung-v%{version}.tar.gz
Source1:	vdr-%{pname}.conf
BuildRequires:	vdr-devel >= 2.4.6
Requires:	vdr(abi)%{?_isa} = %{vdr_apiversion}

%description
This plugin provides a powerful replacement for VDR's default
recordings menu entry.  It looks like the standard recordings menu, but
adds several functions, such as additional commands for "rename" and "move"
This is the next generation version based on the original "extrecmenu"

%prep
%setup -q -n %{pname}-v%{version}
iconv -f iso-8859-1 -t utf-8 HISTORY > HISTORY.utf8 ; mv HISTORY.utf8 HISTORY

%build
%make_build AUTOCONFIG=0

%install
%make_install

install -Dpm 644 %{SOURCE1} \
  %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/%{pname}.conf

%find_lang vdr-%{pname} --all-name --with-man

%files -f vdr-%{pname}.lang
%doc README HISTORY contrib scripts
%license COPYING
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/*.conf
%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11275 |21cr|vdr-plugin-femon-2.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define plugin	femon

%global __provides_exclude_from ^%{vdr_libdir}/.*\\.so.*$

Summary:	VDR plugin: DVB Signal Information Monitor (OSD)
Name:		vdr-plugin-%{plugin}
Version:	2.4.0
Release:	2
Group:		Video
License:	GPLv2+
URL:		https://github.com/rofafor/vdr-plugin-femon
Source0:	https://github.com/rofafor/vdr-plugin-femon/archive/v%{version}.tar.gz?/vdr-%{plugin}-%{version}.tar.gz
Source1:	vdr-femon.conf
BuildRequires:	vdr-devel >= 2.4.6
Requires:	vdr(abi)%{?_isa} = %{vdr_apiversion}

%description
DVB Frontend Status Monitor is a plugin that displays some signal information
parameters of the current tuned channel on OSD. You can zap through all your
channels and the plugin should be monitoring always the right frontend. The
transponder and stream information are also available in advanced display
modes.

The plugin is based on a neat console frontend status monitor application
called 'femon' by Johannes Stezenbach (see DVB-apps/szap/femon.c for further
information). The bitrate calculation trick originates from the 'dvbstream'
application by Dave Chapman and the stream information routines are taken from
the 'libdvb' library by Metzler Brothers.

%package -n vdr-%plugin-devel
Summary:	Development headers of femon VDR plugin
Group:		Development/C++
Requires:	vdr-devel

%description -n vdr-%plugin-devel
Headers for developing VDR plugins that use services provided by femon.

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%make_build

%install
%make_install
install -Dpm 644 %{SOURCE1} \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}.conf

%find_lang vdr-%{plugin}

install -d -m755 %{buildroot}%{_includedir}/vdr/%{plugin}
install -m644 femonservice.h %{buildroot}%{_includedir}/vdr/%{plugin}

%files -f vdr-%{plugin}.lang
%doc README HISTORY
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}.conf
%{vdr_libdir}/libvdr-%{plugin}.so.%{vdr_apiversion}

%files -n vdr-%plugin-devel
%dir %{_includedir}/vdr/%{plugin}
%{_includedir}/vdr/%{plugin}/femonservice.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11276 |21cr|vdr-plugin-osdteletext-2.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define plugin	osdteletext

%global __provides_exclude_from ^%{vdr_libdir}/.*\\.so.*$

Summary:	VDR plugin: Displays teletext on the OSD
Name:		vdr-plugin-%{plugin}
Version:	2.3.1
Release:	2
Group:		Video
License:	GPLv2+
URL:		http://projects.vdr-developer.org/projects/show/plg-osdteletext
Source0:	https://github.com/vdr-projects/vdr-plugin-osdteletext/archive/v%{version}.tar.gz?/vdr-%{plugin}-%{version}.tar.gz
Source1:	vdr-%{plugin}.conf
BuildRequires:	vdr-devel >= 2.4.6
Requires:	vdr(abi)%{?_isa} = %{vdr_apiversion}

%description
Osd-Teletext displays the teletext directly on the OSD.
Both sound and video are played in the background.

%prep
%setup -q -n vdr-plugin-%{plugin}-%{version}
sed -i -e 's|/var/cache/vdr/vtx|%{vdr_rundir}/%{plugin}|g' \
    osdteletext.c README README.DE rootdir.c
%build
%make_build

%install
%make_install
install -Dpm 644 %{SOURCE1} \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}.conf

install -dm 755 %{buildroot}%{vdr_rundir}/%{plugin}
install -dm 755 %{buildroot}%{_prefix}/lib/tmpfiles.d
install -dm 755 %{buildroot}%{_datadir}/fonts/vdr%{plugin}
echo "d %{vdr_rundir}/%{plugin} 0755 %{vdr_user} root -" > \
  %{buildroot}%{_prefix}/lib/tmpfiles.d/vdr-%{plugin}.conf

install -Dpm 644 teletext2.ttf \
  %{buildroot}%{_datadir}/fonts/vdr%{plugin}/teletext2.ttf

%find_lang vdr-%{plugin}

%files -f vdr-%{plugin}.lang
%doc README* COPYING HISTORY
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}.conf
%{_datadir}/fonts/vdrosdteletext/teletext2.ttf
%{vdr_plugindir}/libvdr-%{plugin}.so.%{vdr_apiversion}
%{_prefix}/lib/tmpfiles.d/vdr-%{plugin}.conf
%attr(-,%{vdr_user},root) %{vdr_rundir}/%{plugin}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11277 |21cr|vdr-plugin-remote-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define plugin	remote
%global __provides_exclude_from ^%{vdr_libdir}/.*\\.so.*$

Summary:	VDR plugin: Remote control
Name:		vdr-plugin-%plugin
Version:	0.7.0
Release:	1
Group:		Video
License:	GPL+
URL:		http://www.escape-edv.de/endriss/vdr/
Source0:	http://www.escape-edv.de/endriss/vdr/vdr-%{plugin}-%{version}.tgz
Source1:	vdr-%{plugin}.conf
Source2:	vdr-%{plugin}-udev.rules
# Status query mail sent to upstream and Debian patchkit maintainer 2008-10-25
Patch0:		http://zap.tartarus.org/~ds/debian/dists/stable/main/source/vdr-plugin-remote_0.3.8-3.ds.diff.gz
Patch1:		vdr-remote-gcc11.patch
BuildRequires:	vdr-devel >= 1.6.0
BuildRequires:	gettext
BuildRequires:	systemd
Requires:	vdr(abi)%{?_isa} = %{vdr_apiversion}
# systemd >= 214-3 for the input group
Requires:	systemd >= 214-3

%description
This plugin extends the remote control capabilities of vdr.
The following remote control devices are supported:

(a) linux input device driver ('/dev/input/eventX', X=0,1,2,...)
    - built-in remote control port of the av711x-based DVB cards
      (aka full-featured cards), e.g. DVB-S Nexus [1]
    - remote control port of some budget cards, e.g. Nova-CI [2]
    - other input devices (not tested, please report success!)
    See file FAQ for a list of cards which have been reported to work.

(b) keyboard (tty driver): /dev/console, /dev/ttyX

(c) TCP connection (telnet)

(d) LIRC

%prep
%autosetup -n %{plugin}-%{version} -p1

patch -p1 -i debian/patches/02_no_abort.dpatch
sed -i \
    -e 's/0\.3\.8/%{version}/g' \
    -e 's/"Remote control"/trNOOP("Remote control")/' \
    debian/patches/04_constness.dpatch
patch -p1 -i debian/patches/04_constness.dpatch

for f in CONTRIBUTORS HISTORY ; do
    iconv -f iso-8859-1 -t utf-8 $f > $f.utf-8 ; mv $f.utf-8 $f
done

%build
%make_build

%install
%make_install

install -Dpm 644 %{SOURCE1} \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}.conf

install -Dpm 644 %{SOURCE2} \
    %{buildroot}/%{_udevrulesdir}/52-vdr-%{plugin}.rules
%find_lang vdr-%{plugin}

%pre
usermod -a -G input %{vdr_user} || :

%files -f vdr-%{plugin}.lang
%doc README HISTORY CONTRIBUTORS FAQ
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}.conf
%config(noreplace) %{_udevrulesdir}/*-vdr-%{plugin}.rules
%{vdr_libdir}/libvdr-%{plugin}.so.%{vdr_apiversion}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11278 |21cr|vdr-plugin-screenshot-0.0.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define plugin	screenshot

%global __provides_exclude_from ^%{vdr_libdir}/.*\\.so.*$

Summary:	VDR plugin: Takes screenshots
Name:		vdr-plugin-%plugin
Version:	0.0.16
Release:	1
Group:		Video
License:	GPL+
URL:		https://github.com/jowi24/vdr-screenshot
Source:		vdr-%{plugin}-%{version}.tar.gz
# https://www.linuxtv.org/pipermail/vdr/2017-June/029280.html
Patch0:		%{plugin}.fullhd.patch
BuildRequires:	vdr-devel >= 1.6.0
Requires:	vdr(abi)%{?_isa} = %{vdr_apiversion}

%description
With this plugin you can take still images of your screen. After installing
the plugin, a new mainmenu entry "Screenshot" will show up. Each time you
select this item, a file /tmp/title-yyyymmdd-hhmmss.jpg will be created,
where title is the current transmission or the recording currently replayed.

%prep
%autosetup -p1 -n vdr-%{plugin}-%{version}
# For older VDR versions <=1.7.34
cp Makefile.pre.1.7.34 Makefile

iconv -f iso-8859-1 -t utf-8 HISTORY > HISTORY.utf8 ; mv HISTORY.utf8 HISTORY

%build
%make_build AUTOCONFIG= LIBDIR=. LOCALEDIR=./locale \
    VDRDIR=%{_libdir}/vdr all

%install
install -dm 755 %{buildroot}%{vdr_plugindir}
install -dm 755 %{buildroot}%{vdr_cachedir}/screenshot
install -pm 755 libvdr-*.so.%{vdr_apiversion} %{buildroot}%{vdr_plugindir}

# Locale
install -dm 755 %{buildroot}%{_datadir}/locale
cp -pR locale/* %{buildroot}%{_datadir}/locale

%find_lang vdr-%{plugin}

%files -f vdr-%{plugin}.lang
%doc README HISTORY
%license COPYING
%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
%attr(-,%{vdr_user},root) %dir %{vdr_cachedir}/screenshot/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11279 |21cr|vdr-pluginskinelchihd-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global plugin   skinelchihd

Name:           vdr-pluginskinelchihd
Version:        1.0.0
Release:        1
Summary:        A Elchi based skin with True Color support for the Video Disc Recorder
Group:          Video
License:        GPLv2+
URL:            http://firefly.vdr-developer.org/skinelchihd/
Source0:        https://github.com/FireFlyVDR/vdr-plugin-skinelchihd/archive/refs/tags/v%{version}.tar.gz#/vdr-%{plugin}-%{version}.tar.gz
# Configuration files for plugin parameters. These are Fedora specific and not in upstream.
Source1:        vdr-%{plugin}.conf
BuildRequires:  make
BuildRequires:  gcc-c++
BuildRequires:  pkgconfig(GraphicsMagick++)
BuildRequires:  vdr-devel >= 2.4.3
Requires:       vdr(abi)%{?_isa} = %{vdr_apiversion}

%description
This plugin for Klaus Schmidinger's Video Disc Recorder VDR adds the "Elchi HD"
skin. It is based on the Elchi skin with major re-factoring to make use of newer
VDR features like True Color support.

%prep
%autosetup -n vdr-plugin-%{plugin}-%{version}

%build
%{set_build_flags}
%make_build IMAGELIB=graphicsmagick

%install
# make install would install the themes under /etc, let's not use that
make install-lib install-i18n DESTDIR=%{buildroot}
# install the themes to the custom location used in Fedora
install -dm 755 %{buildroot}%{vdr_vardir}/themes
install -pm 644 themes/*.theme %{buildroot}%{vdr_vardir}/themes/

# skinelchihd.conf
install -Dpm 644 %{SOURCE1} \
    %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/skinelchihd.conf

%find_lang vdr-%{plugin}

%files -f vdr-%{plugin}.lang
%doc HISTORY* README*
%license COPYING
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/skinelchihd.conf
%{vdr_plugindir}/libvdr-*.so.%{vdr_apiversion}
%{vdr_vardir}/themes/ElchiHD-*.theme


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11280 |21cr|vdr-plugin-streamdev-0.6.1-0.1.gitb84b7d85
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define plugin	streamdev

# If this variable is set the spec file assumes it's building a git snapshot
# Also see info below on generating snapshots
%global gitver    b84b7d858cf4f6f3473ba72d456326c048946cb0
%global gitshort  %(echo %gitver | awk '{print substr($0,1,8)}')
%global __provides_exclude_from ^%{vdr_plugindir}/.*\\.so.*$

%if 0%{?gitver:1}
  # Use vdr-streamdev-snapshot.sh contained in the source of the package to
  # generate new snapshots
  # You can also create snapshots for specific commit hashes
  # Example: sh vdr-streamdev-snapshot.sh b84b7d858cf4f6f3473ba72d456326c048946cb0
  %global srcfile   vdr-%{plugin}-%{gitshort}.tar.xz
  %global setuppath vdr-%{plugin}-%{gitshort}
%else
  # URL for original source file when not using git snapshots
  %global srcfile   http://projects.vdr-developer.org/attachments/download/969/%{name}-%{version}.tgz
  %global setuppath %{plugin}-%{version}
%endif

Summary:	VDR plugin: streamdev
Name:		vdr-plugin-%plugin
Version:	0.6.1
Release:	0.1%{?gitver:.git%{gitshort}}%{?dist}
Group:		Video
# Several .c files cause GPLv2+, others are GPL+
License:	GPLv2+
URL:		http://projects.vdr-developer.org/projects/plg-streamdev
Source0:        %{srcfile}
# Configuration files for plugin parameters. These are Fedora specific and not in upstream.
Source1:        vdr-%{plugin}-server.conf
Source2:        vdr-%{plugin}-client.conf
# Script to generate git snapshots
# listed here so that it's pulled into the SRPM
Source3:        vdr-%{plugin}-snapshot.sh
# https://www.vdr-portal.de/index.php?attachment/41040-0001-fixed-compilation-for-vdr-2-3-7-diff/
Patch0:         0001-Fixed-compilation-for-vdr-2.3.7.diff
Patch1:         %{plugin}-server-2.5.4-patch
BuildRequires:  vdr-devel >= 1.6.0-41

%description
The streamdev plug-in adds streaming capabilities to your VDR.

#-----------------------------------------------------------------
%package server
Summary:	VDR plugin: VDR Streaming Server
Group:		Video
Requires:	vdr(abi)%{?_isa} = %{vdr_apiversion}

%description server
This PlugIn is a VDR implementation of the VTP (Video Transfer Protocol,
see file PROTOCOL) and a basic HTTP Streaming Protocol.

The server part acts as a Receiver-Device and works transparently in the
background within your running VDR. It can serve multiple clients and it can
distribute multiple input streams (i.e. from multiple DVB-cards) to multiple
clients using the native VTP protocol (for VDR-clients), or using the HTTP
protocol supporting clients such as XINE, MPlayer and so on. With XMMS or
WinAMP, you can also listen to radio channels over a HTTP connection.

%files server -f vdr-%{plugin}-server.lang
%doc CONTRIBUTORS COPYING HISTORY PROTOCOL README
%{vdr_plugindir}/libvdr-%{plugin}-server.so.%{vdr_apiversion}
%{_libdir}/vdr/bin/externremux.sh
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}-server.conf
%dir %{vdr_configdir}/plugins/streamdev-server
%config(noreplace) %{vdr_configdir}/plugins/streamdev-server/streamdevhosts.conf

#-----------------------------------------------------------------

%package client
Summary:	VDR plugin: VTP Streaming Client
Group:		Video
Requires:	vdr(abi)%{?_isa} = %{vdr_apiversion}

%description client
This PlugIn is a VDR implementation of the VTP (Video Transfer Protocol,
see file PROTOCOL) and a basic HTTP Streaming Protocol.

The client part acts as a full Input Device, so it can be used in conjunction
with a DXR3-Card, XINE, SoftDevice or others to act as a working VDR
installation without any DVB-Hardware including EPG-Handling.

%files client -f vdr-%{plugin}-client.lang
%doc CONTRIBUTORS COPYING HISTORY PROTOCOL README
%{vdr_plugindir}/libvdr-%{plugin}-client.so.%{vdr_apiversion}
%config(noreplace) %{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}-client.conf

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{setuppath}

sed -i 's@$(VDRDIR)/device.h@%{_includedir}/vdr/device.h@' Makefile

for f in CONTRIBUTORS HISTORY; do
  iconv -f iso8859-1 -t utf-8 $f >$f.conv
  touch -r $f $f.conv
  mv $f.conv $f
done

%build
%make_build CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC"

%install
%make_install

install -dm 755 %{buildroot}%{vdr_configdir}/plugins/streamdev-server
install -Dpm 644 streamdev-server/streamdevhosts.conf %{buildroot}%{vdr_configdir}/plugins/streamdev-server/streamdevhosts.conf
install -Dpm 755 streamdev-server/externremux.sh %{buildroot}%{_libdir}/vdr/bin/externremux.sh 
install -Dpm 644 %{SOURCE1} \
  %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}-server.conf
install -Dpm 644 %{SOURCE2} \
  %{buildroot}%{_sysconfdir}/sysconfig/vdr-plugins.d/%{plugin}-client.conf

%find_lang vdr-%{plugin}-server
%find_lang vdr-%{plugin}-client

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11281 |21cr|vdrsymbol-fonts-20100612-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname vdrsymbol
%global fontconf 69-%{fontname}.conf

Name:		%{fontname}-fonts
Version:	20100612
Release:	1
Summary:	VDR symbol fonts
Group:		Video
License:	Bitstream Vera and Public Domain
URL:		http://andreas.vdr-developer.org/fonts/
Source0:	http://andreas.vdr-developer.org/fonts/download/vdrsymbols-ttf-%{version}.tgz
Source1:	%{name}-fontconfig.conf

BuildArch:	noarch
BuildRequires:	fontpackages-devel
Requires:	fontpackages-filesystem

%description
VDRSymbols is a font for use with VDR plugins and patches.


%prep
%setup -q -n vdrsymbols
chmod -x insert_vdr_symbols.pe


%build


%install
rm -fr %{buildroot}

install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                   %{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{SOURCE1} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
      %{buildroot}%{_fontconfig_confdir}/%{fontconf}


%_font_pkg -f %{fontconf} *.ttf

%license COPYRIGHT.txt
%doc HISTORY README insert_vdr_symbols.pe

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11282 |21cr|vdrsync-0.1.2.2dev2-050322.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot 050322

Summary:	Repack VDR recordings to DVD compatible fromat
Name:		vdrsync
Version:	0.1.2.2dev2
Release:	%{snapshot}.4
Group:		Video
License:	GPL
URL:		http://vdrsync.vdr-portal.de/
Source:		http://vdrsync.vdr-portal.de/releases/%{name}-%snapshot.tar.bz2
BuildArch:	noarch

%description
VDRsync was programmed to allow conversion of a VDR recording into a
DVD compatible format. This conversion requires the "unpacking" of
Video and Audio data from the native VDR format, and the repacking
into a DVD compatible format. During this packing steps important
timing information is lost, leading to Audio-Video synchronisation
problems. In other words, audio is a bit too early or too late for
the video. Watching such a "desynced" movie is a pain.

Not too long ago an excellent tool named ds.jar was available, which
took care of the problem by aligning Audio and Video during the
first "unpacking" step. This tool was unavailable for a certain
period and therefore I decided to try to write a replacement for it
(ds.jar is now available again under the name Project X).

In the meantime I added some features to VDRsync, like cutting the
movie while syncing, and developed some additional tools, like the
sharemarks project.

%prep
%setup -q -n %{name}-%{snapshot}

%install
install -d -m755 %{buildroot}%{_bindir}
install -m755 *.pl %{buildroot}%{_bindir}

%files
%doc CHANGES
%{_bindir}/*.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11283 |21cr|vegastrike-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil
%define dataver 0.5

%define _disable_ld_no_undefined 1

Summary:	3D OpenGL spaceflight simulator
Name:		vegastrike
Version:	0.8.0
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		http://vegastrike.sourceforge.net/
Source0:	https://github.com/vegastrike/Vega-Strike-Engine-Source/releases/download/v%{version}/Vega-Strike_v%{version}-Source.tar.xz
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		vegastrike-cmake.patch
Patch1:		vegastrike-headers.patch
Patch2:		vegastrike-0.5.0-glext.patch
BuildRequires:	cmake
BuildRequires:	fdupes
BuildRequires:	boost-devel
BuildRequires:	jpeg-devel
BuildRequires:	ogre-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(OGRE)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data >= %{dataver}
Recommends:	%{name}-sounds >= %{dataver}
# aarch64 build be done on version 0.9.0
ExcludeArch:	%{e2k} %{riscv} %{armx}

%description
Vega Strike is a GPL 3D OpenGL Action RPG space sim for
Windows/Linux that allows a player to trade and bounty hunt
in the spirit of Elite. You start in an old beat up Wayfarer
cargo ship, with endless possibility before you and just
enough cash to scrape together a life. Yet danger lurks in
the space beyond.

%files
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%dir %{_gamesdatadir}/%{name}
%defattr(755,root,root,755)
%{_gamesbindir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Vega-Strike_v%{version}-Source

# we want to use the system version of expat.h
rm objconv/mesher/expat.h

touch ../LICENSE

%build
export 
%cmake \
  -DDATADIR=%{_gamesdatadir}/%{name} \
  -DUSE_PYTHON_3:BOOL=ON \
  -DUSE_SYSTEM_BOOST:BOOL=ON \
  -DBUILD_STATIC_LIBS:BOOL=ON \
  -DBUILD_SHARED_LIBS:BOOL=OFF \
  -DCMAKE_BUILD_TYPE="Release" \
  -DENABLE_PIE:BOOL=ON

%make

%install
%makeinstall_std -C build

# move files to gemesbindir
mkdir -p %{buildroot}%{_gamesbindir}
mv %{buildroot}%{_bindir}/* %{buildroot}%{_gamesbindir}
rm -d %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Vega Strike
Comment=3D OpenGL spaceflight simulator
Exec=vegastrike
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

install -m 644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

install -d %{buildroot}%{_gamesdatadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11284 |21cr|vegastrike-data-0.5.1.r1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define	oname	vegastrike

Name:		vegastrike-data
Version:	0.5.1.r1
Release:	5
Summary:	Data files for %{oname}
License:	GPLv2+
Group:		Games/Arcade
Source0:	%{name}-%{version}.tar.bz2
URL:		http://vegastrike.sourceforge.net/
Requires:	%{oname} >= %{version}
ExcludeArch:	%{armx}

%description
Data files for %{oname}.

%prep
%setup -q
# get rid of a few files we have no interest in packaging..
rm -rf aclocal.m4 configure.ac Makefile.in vegastrike-data.spec stamp-h.in bin
rm -rf `find -name CVS -type d` `find -name Makefile.am -type f`

# some cleanup
rm -r cockpits/bomber-cockpit.cpt/#cockpit.xmesh# \
 modules/builtin `find -name "*.xmesh"`
find . -type f -print0 | xargs -0 chmod -x
chmod +x units/findunits.py modules/webpageize.py
sed -i 's/\r//g' documentation/mission_howto.txt
# remove the stale included manpages and the .xls abonimation
rm documentation/*.1 documentation/*.xls


%build

%install
%{__rm} -rf %{buildroot}
%{__install} -d %{buildroot}%{_gamesdatadir}/%{oname}
cp -a * %{buildroot}%{_gamesdatadir}/%{oname}
# include 'system files' strangely hidden in .vegastrike-0.5.0 directory
# for whatever reason...otherwise music & other stuff is gone...
# cp -a ./.%{name}-%{version} %{buildroot}/%{_gamesdatadir}/%{oname}


mkdir -p %{buildroot}%{_datadir}/icons/hicolor/128x128/apps
install -p -m 644 vegastrike.xpm \
  %{buildroot}%{_datadir}/icons/hicolor/128x128/apps


%clean
%{__rm} -rf %{buildroot}

%files
%defattr(644,root,root,755)
%dir %{_gamesdatadir}/%{oname}
%{_gamesdatadir}/%{oname}/*
# %{_gamesdatadir}/%{oname}/.%{oname}-%{version}/*
# %{_gamesdatadir}/%{oname}/.%{oname}-%{version}/.system
%{_datadir}/icons/hicolor/128x128/apps/vegastrike.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11285 |21cr|vegastrike-sounds-0.5.1.r1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define	oname	vegastrike
%define	gamever	%(echo %{version} |rev |cut -d. -f2- |rev)

Name:		vegastrike-sounds
Version:	0.5.1.r1
Release:	4
Summary:	Music and Speech files for %{oname}
License:	GPLv2+
Group:		Games/Arcade
URL:		http://vegastrike.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{oname}/%{oname}-music-%{version}.tar
Source1:	http://downloads.sourceforge.net/%{oname}/%{oname}-speech-%{version}.tar
Requires:	%{oname} >= %{gamever}
ExcludeArch:	%{armx}

%description
Music and Speech files for %{oname}.

%prep
%setup -q -c -n %{name}
%setup -q -T -D -a 1 -n %{name}

%build

%install
mkdir -p %{buildroot}/%{_gamesdatadir}/%{oname}
cp -a %{oname}-music-%{version}/* %{buildroot}/%{_gamesdatadir}/%{oname}
cp -a %{oname}-speech-%{version}/* %{buildroot}/%{_gamesdatadir}/%{oname}

%files
%defattr(644,root,root,755)
%{_gamesdatadir}/%{oname}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11286 |21cr|vemana2000-fonts-1.1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname vemana2000
%global fontconf 69-%{fontname}.conf

Name: %{fontname}-fonts
Version: 1.1.3
Release: 7
Summary: Unicode compliant OpenType font for Telugu

Group:   System/Fonts/True type
License: GPLv2+ with exceptions
URL: https://fedorahosted.org/pothana_vemana/

Source0: https://fedorahosted.org/releases/p/o/pothana_vemana/vemana2000-fonts-1.1.3.tar.gz

BuildArch: noarch
BuildRequires: fontforge
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem

%description
A free OpenType font for Telugu created by
Dr. Tirumala Krishna Desikacharyulu. 

%prep
%setup -q -n %{name}-%{version}

%build
make

%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
 %{buildroot}%{_fontconfig_confdir}
install -m 0644 -p %{fontconf} \
 %{buildroot}%{_fontconfig_templatedir}/%{fontconf}
ln -s %{_fontconfig_templatedir}/%{fontconf} \
 %{buildroot}%{_fontconfig_confdir}/%{fontconf}

%_font_pkg -f %{fontconf} *.ttf

%doc ChangeLog COPYRIGHT COPYING AUTHORS README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11287 |21cr|veracrypt-1.25.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Disk encryption software 
Name:		veracrypt
Version:	1.25.9
Release:	1
License:	Apache 2.0
Group:		File tools
Url:		https://www.veracrypt.fr
Source0:	https://github.com/veracrypt/VeraCrypt/archive/VeraCrypt_%{version}.tar.gz?/VeraCrypt_%{version}.tar.gz
BuildRequires:	pkgconfig(fuse)
BuildRequires:	imagemagick
BuildRequires:	makeself
BuildRequires:	wxgtku3.0-devel
BuildRequires:	yasm
BuildRequires:	nasm

%description
Free disk encryption software based on TrueCrypt.

%files
%doc %{_docdir}/veracrypt/
%{_bindir}/veracrypt
%{_sbindir}/mount.veracrypt
%{_datadir}/applications/veracrypt.desktop
%{_datadir}/pixmaps/*
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/mime/packages/veracrypt.xml
%dir %{_datadir}/veracrypt/
%{_datadir}/veracrypt/languages/

#----------------------------------------------------------------------------

%prep
%setup -qn VeraCrypt-VeraCrypt_%{version}

%build
pushd src
%make
popd

pushd src/Resources/Icons
convert VeraCrypt-16x16.xpm VeraCrypt-16x16.png
convert VeraCrypt-48x48.xpm VeraCrypt-48x48.png
convert VeraCrypt-128x128.xpm VeraCrypt-128x128.png
popd

%install
pushd src
%makeinstall_std
popd

for png in 128x128 48x48 16x16; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${png}/apps/
	install -m 0644 src/Resources/Icons/VeraCrypt-${png}.png %{buildroot}%{_iconsdir}/hicolor/${png}/apps/%{name}.png
done

rm -rf %{buildroot}%{_bindir}/%{name}-uninstall.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11288 |21cr|verbiste-0.1.47-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define api	0.1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Name:		verbiste
Version:	0.1.47
Release:	1
Summary:	To use well french verbs
License:	GPLv2+
Group:		Toys
URL:		http://sarrazip.com/dev/%{name}.html
Source:		http://sarrazip.com/dev/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libpanelapplet-2.0)
BuildRequires:	pkgconfig(libglade-2.0)

%description
Verbiste is a French conjugation system. It contains a C++ library, two
programs that can be run from the command line or from another program,
and a GNOME applet. This applet shows a text field in the GNOME Panel
where the user can enter a conjugated verb and obtain its complete
conjugation. The knowledge base is represented in XML and contains over
6800 verbs.

%files -f %{name}.lang
%{_docdir}/%{name}-%{version}/*
%{_bindir}/french-*conjugator
%{_datadir}/%{name}-0.1
%{_mandir}/fr/man?/*
%{_mandir}/man?/*

#--------------------------------------------------------------------

%package -n %{name}-gtk
Summary:	Gtk+ interface for %{name}
Group:		Development/Other
Requires:	%{name}

%description -n %{name}-gtk
Gtk+ interface for %{name}.

%files -n %{name}-gtk
%{_bindir}/verbiste
%{_bindir}/verbiste-gtk
%{_libdir}/bonobo/servers/verbiste.server
%{_libexecdir}/verbiste-applet
%{_datadir}/applications/verbiste.desktop
%{_iconsdir}/hicolor/*/apps/verbiste.*
%{_datadir}/texmf/tex/latex/verbiste/verbiste.cfg
%{_datadir}/texmf/tex/latex/verbiste/verbiste.cls


#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared Librairies for %{name}
Group:		Development/Other
Obsoletes:	%{_lib}%{name}1 < 0.1.26-2

%description  -n %{libname}
Shared Librairies for cluster

%files -n %{libname}
%{_libdir}/lib%{name}-0.1.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} header files and static libraries
Group:		Development/Other
Requires:	%{name} = %{version}
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}
Obsoletes:	%{_lib}%{name}-devel < 0.1.26-2

%description -n %{devname}
This package contains header files and static libraries.

%files -n %{devname}
%{_includedir}/%{name}-0.1
%{_libdir}/lib%{name}-0.1.so
%{_libdir}/pkgconfig/%{name}-0.1.pc

#--------------------------------------------------------------------
%prep
%setup -q

%build
%configure \
	--with-gtk-app \
	--with-gnome-app \
	--with-gnome-applet
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11289 |21cr|vertex-green-rospo-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme_name Vertex-Green-Rospo

Summary:	%{theme_name} theme
Name:		vertex-green-rospo
Version:	2.0
Release:	2
License:	GPL
Group:		Graphics
Url:		https://www.vk.com/xfce_rospo/
Source0:	Vertex-Green-Rospo.tar.bz2
BuildArch:	noarch
Requires: 	vertex-green-rospo-gtk2-theme
Requires: 	vertex-green-rospo-gtk3-theme
Requires: 	vertex-green-rospo-xfwm4-theme

%description
Fork Vertex-Green GTK2,GTK3,XFWM theme from ROSPO

%files

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	%{theme_name} GTK+2 themes
Group:		Graphics
Requires: 	gnome-themes-standard
Requires: 	murrine

%description gtk2-theme
Themes for GTK+2 as part of the %{theme_name} theme.

%files gtk2-theme
%{_datadir}/themes/%{theme_name}/gtk-2.0/

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	%{theme_name} GTK+3 themes
Group:		Graphics
Requires:	gtk+3.0
Requires: 	gnome-themes-standard
Requires: 	murrine

%description gtk3-theme
Themes for GTK+3 as part of the %{theme_name} theme.

%files gtk3-theme
%{_datadir}/themes/%{theme_name}/gtk-3.0/

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	%{theme_name} Xfwm4 themes
Group:		Graphics
Requires:	xfwm4
Requires: 	gnome-themes-standard
Requires: 	murrine

%description xfwm4-theme
Themes for Xfwm4 as part of the %{theme_name} theme.

%files xfwm4-theme
%{_datadir}/themes/%{theme_name}/xfwm4/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{theme_name}

%build
# nothing to build

%install
mkdir -p %{buildroot}%{_datadir}/themes
tar jfx %{SOURCE0} -C %{buildroot}%{_datadir}/themes
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11290 |21cr|vertex-light-rospo-1.3-2.gitf8d389.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit f8d389678b82b4e6898810a818b374a0b44ce6aa
%define commit_short %(echo %{commit} | head -c6)

Summary:	Vertex-Light-Rospo theme
Name:		vertex-light-rospo
Version:	1.3
Release:	2.git%{commit_short}.1
License:	GPLv3
Group:		Graphics
Url:		https://vk.com/xfce_rospo
Source0:	https://abf.io/soft/vertex-light-rospo/archive/vertex-light-rospo-%{commit}.tar.gz
BuildArch:	noarch
Requires:	vertex-light-rospo-common
Recommends:	vertex-light-rospo-gtk2-theme
Recommends:	vertex-light-rospo-gtk3-theme
Recommends:	(vertex-light-rospo-xfwm4-theme if xfwm4)

%description
Fork of Vertex GTK2, GTK3, XFWM theme from ROSPO

%files

#----------------------------------------------------------------------------

%package common
Summary:	Files common to Vertex-Light-Rospo themes
Group:		Graphics

%description common
Files which are common to all Vertex-Light-Rospo themes

%files common
%dir %{_datadir}/themes/Vertex-Light-Rospo
%{_datadir}/themes/Vertex-Light-Rospo/index.theme

#----------------------------------------------------------------------------

%package gtk2-theme
Summary:	Vertex-Light-Rospo GTK+2 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	gnome-themes-standard
Requires:	murrine

%description gtk2-theme
Themes for GTK+2 as part of the Vertex-Light-Rospo theme.

%files gtk2-theme
%{_datadir}/themes/Vertex-Light-Rospo/gtk-2.0

#----------------------------------------------------------------------------

%package gtk3-theme
Summary:	Vertex-Light-Rospo GTK+3 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	gtk+3.0
Requires:	gnome-themes-standard

%description gtk3-theme
Themes for GTK+3 as part of the Vertex-Light-Rospo theme.

%files gtk3-theme
%{_datadir}/themes/Vertex-Light-Rospo/gtk-3.0

#----------------------------------------------------------------------------

%package xfwm4-theme
Summary:	Vertex-Light-Rospo Xfwm4 themes
Group:		Graphics
Requires:	%{name}-common = %{EVRD}
Requires:	xfwm4
Requires:	gnome-themes-standard

%description xfwm4-theme
Themes for Xfwm4 as part of the Vertex-Light-Rospo theme.

%files xfwm4-theme
%{_datadir}/themes/Vertex-Light-Rospo/xfwm4

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install
mkdir -p %{buildroot}%{_datadir}/themes/Vertex-Light-Rospo
cp -rv gtk-2.0 gtk-3.0 xfwm4 index.theme %{buildroot}%{_datadir}/themes/Vertex-Light-Rospo
# Ensure correct UNIX permissions
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11291 |21cr|veusz-3.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __provides_exclude \\.so
%else
%define _provides_exceptions \\.so
%endif

Summary:	GUI scientific plotting package
Name:		veusz
Version:	3.6.2
Release:	3
# The entire source code is GPLv2+ except helpers/src/_nc_cntr.c which is Python
License:	GPLv2+ and Python license
Group:		Sciences/Mathematics
Url:		https://veusz.github.io/
Source0:	https://github.com/veusz/veusz/releases/download/veusz-%{version}/veusz-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	ghostscript
BuildRequires:	python3-numpy-devel
BuildRequires:	python3-qt5-devel
BuildRequires:	qt5-devel
BuildRequires:	python3dist(h5py)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sip)
BuildRequires:	python3dist(toml)
BuildRequires:	python3dist(tomli)
BuildRequires:	pkgconfig(dbus-python)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(python3)
Requires:	python3dist(numpy)
Requires:	python3-qt5
Provides:	python3-%{name} = %{EVRD}

%description
Veusz is a scientific plotting package, designed to create
publication-ready Postscript/PDF/SVG output. It features GUI,
command-line, and scripting interfaces. Graphs are constructed from
widgets, allowing complex layouts to be designed. Veusz supports
plotting functions, data with errors, keys, labels, stacked plots,
multiple plots, contours, shapes and fitting data.

%files
%doc AUTHORS Documents/manual/html examples README.md
%license COPYING
%{_bindir}/*
%{_datadir}/appdata/*
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/mime/packages/*
%{_datadir}/pixmaps/*
%{_datadir}/veusz/
%{_mandir}/man1/*
%{python3_sitearch}/veusz
%{python3_sitearch}/veusz-*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1
find -name \*~ -delete

# change path of where to lookup bitmaps
# this is so we can move the icons out of the python directory
# and into /usr/share/pixmaps/veusz
sed -i "/imagedir =/c\\imagedir = '%{_datadir}/veusz/icons'" \
	  %{_builddir}/veusz-%{version}/veusz/utils/action.py

# change path of where to look for COPYING - should be docdir
sed -i "/f =/s+utils.veuszDirectory+'%{_docdir}/%{name}'+" \
	  %{_builddir}/veusz-%{version}/veusz/dialogs/aboutdialog.py

%build
%{__python3} setup.py build_ext
#--sip-exe=%{_bindir}/sip3 --sip-dir=%{_datadir}/python3-sip

%py3_build

%install
# veusz-resource-dir: put data files in location given

%py3_install -- --veusz-resource-dir=%{buildroot}%{_datadir}/veusz --disable-install-examples

# tell veusz where its resource directory is in _datadir
ln -s %{_datadir}/veusz \
    %{buildroot}%{python3_sitearch}/veusz/resources

# tell it where to look for examples and COPYING
ln -s  %{_docdir}/%{name}/examples \
    %{buildroot}%{_datadir}/veusz

# install desktop file
desktop-file-install  \
    --dir %{buildroot}%{_datadir}/applications \
    support/veusz.desktop

# file to register .vsz mimetype
mkdir -p %{buildroot}%{_datadir}/mime/packages/
install -p support/veusz.xml -m 0644 %{buildroot}%{_datadir}/mime/packages/

# appdata file
mkdir -p %{buildroot}%{_datadir}/appdata/
install -p support/veusz.appdata.xml -m 0644 %{buildroot}%{_datadir}/appdata/

# symlink main veusz icon into pixmaps (for desktop file)
mkdir %{buildroot}%{_datadir}/pixmaps
ln -s ../veusz/icons/veusz_48.png %{buildroot}%{_datadir}/pixmaps/veusz.png

# also link in hicolor icons
for size in 16 32 48 64 128; do
    odir=%{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    mkdir -p $odir
    ln -s %{_datadir}/veusz/icons/veusz_${size}.png ${odir}/veusz.png
done
odir=%{buildroot}%{_datadir}/icons/hicolor/scalable/apps
mkdir -p $odir
ln -s %{_datadir}/veusz/icons/veusz.svg $odir

# install man pages
mkdir -p %{buildroot}%{_mandir}/man1
install -p Documents/man-page/veusz.1 -m 0644 \
    %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11292 |21cr|veyon-4.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with qt6

Name:           veyon
Version:        4.9.0
Release:        1
Summary(ru_RU.UTF-8): Cистема управления компьютерным классом
Summary:        Computer monitoring and classroom management
Group:          Networking/Remote access
License:        GPL-2.0-or-later
URL:            https://veyon.io/
Source0:        https://github.com/veyon/veyon/releases/download/v%{version}/veyon-%{version}-src.tar.bz2
BuildRequires:  cmake
BuildRequires:  ninja
BuildRequires:  patchelf
BuildRequires:  cyrus-sasl-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  pkgconfig(xcomposite)
BuildRequires:  pkgconfig(xcursor)
BuildRequires:  pkgconfig(xdamage)
BuildRequires:  pkgconfig(xfixes)
BuildRequires:  pkgconfig(libfakekey)
BuildRequires:  libgsasl
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(libpng16)
BuildRequires:  openldap-devel
BuildRequires:  pam-devel
BuildRequires:  procps-devel
BuildRequires:  pkgconfig(x11)
%if %{with qt6}
BuildRequires:  qt6-cmake
BuildRequires:  cmake(Qca-qt6)
BuildRequires:  cmake(Qt6Concurrent)
BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6DBus)
BuildRequires:  cmake(Qt6Gui)
BuildRequires:  cmake(Qt6LinguistTools)
BuildRequires:  cmake(Qt6Network)
BuildRequires:  cmake(Qt6QuickControls2)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Xml)
%else
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	%{_lib}qca-qt5-devel
BuildRequires:	qt5-linguist-tools
%endif
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(libfakekey)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(libpng)
%if %{mdvver} < 202310
BuildRequires:  pkgconfig(libprocps)
%else
BuildRequires:  pkgconfig(libproc2)
%endif
BuildRequires:  pkgconfig(libsasl2)
BuildRequires:  pkgconfig(libvncclient)
BuildRequires:  pkgconfig(libvncserver)
BuildRequires:  pkgconfig(lzo2)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(polkit-agent-1)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xinerama)
BuildRequires:  pkgconfig(xkbcommon)
BuildRequires:  pkgconfig(xkbcommon-x11)
BuildRequires:  pkgconfig(xp)
BuildRequires:  pkgconfig(xrandr)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  pkgconfig(vulkan)
BuildRequires:  pkgconfig(zlib)

# meta package
Requires:	%{name}-core
Requires:	%{name}-configurator
Requires:	%{name}-master

%description
Veyon is a software for computer monitoring and classroom
management supporting Windows and Linux. It enables teachers to view and
control computer labs and interact with students. Veyon is available in
different languages. The user can:

* see what's going on in computer labs in overview mode and take screenshots
* remote control computers to support and help users
* broadcast the teacher's screen to students in realtime by using demo mode
  (either in fullscreen or in a window)
* lock workstations for attracting attention to teacher
* send text messages to students
* power on/off and rebooting computers remote
* remote logoff and remote execute arbitrary commands/scripts
* do home schooling

%description -l ru_RU.UTF-8
Veyon - это система для мониторинга компьютерного класса и управления
рабочими местами учащихся.

%files
# empty, meta package

#--------------------------------------------------------------------------
%package core
Summary(ru_RU.UTF-8): Ядро системы управления компьютерным классом
Summary:        Core of computer monitoring and classroom management
# core depends from Qt libs
%if %{with qt6}
Requires:       qca-qt6-plugin-openssl
%else
Requires:       qca2-qt5-plugin-openssl
%endif
Conflicts:      %{name} < 4.7.3-7

%description core
Core of computer monitoring and classroom management

%description -l ru_RU.UTF-8 core
Основные файлы системы управления компьютерным классом без графического
интерфейса управления привязанными устройствами.
Графический интерфейс для учителя устанавливается дополнительным пакетом
veyon-master

%files core
%doc README*
%license COPYING
%{_bindir}/veyon-cli
%{_bindir}/veyon-server
%{_bindir}/veyon-service
%{_bindir}/veyon-worker
%attr(0711,root,root) %{_bindir}/veyon-auth-helper
%{_sbindir}/rcveyon
%{_libdir}/veyon
%{_datadir}/pixmaps/veyon-*.xpm
%{_datadir}/icons/hicolor/*/apps/veyon*
%{_datadir}/veyon/
%{_unitdir}/veyon.service

%post core
%systemd_post veyon.service

%preun core
%systemd_preun veyon.service

#--------------------------------------------------------------------------

%package configurator
Summary(ru_RU.UTF-8): Интерфейс конфигуратора рабочих мест Veyon
Summary:        Configurator GUI for Veyon
Requires:       %{name}-core = %{EVRD}
Conflicts:      %{name} < 4.7.3-7

%description configurator
Configurator GUI for computer monitoring and classroom management

%description -l ru_RU.UTF-8 configurator
Графический интерфейс для конфигурирования рабочих мест в системе управления
компьютерным классом

%files configurator
%{_bindir}/veyon-configurator
%{_datadir}/applications/veyon-configurator.desktop
%{_datadir}/polkit-1/actions/io.veyon.veyon-configurator.policy

#--------------------------------------------------------------------------

%package master
Summary(ru_RU.UTF-8): Интерфейс системы управления компьютерным классом
Summary:        GUI computer monitoring and classroom management
Requires:       %{name}-core = %{EVRD}
Requires:       %{name}-configurator = %{EVRD}
Conflicts:      %{name} < 4.7.3-7

%description master
GUI computer monitoring and classroom management

%description -l ru_RU.UTF-8 master
Графический интерфейс учителя для управления компьютерным классом

%files master
%{_bindir}/veyon-master
%{_datadir}/applications/veyon-master.desktop

#--------------------------------------------------------------------------
%prep
%autosetup -p1

%build
export CFLAGS+=" -fno-strict-aliasing -Wno-error=deprecated-declarations"
export CXXFLAGS+=" -fno-strict-aliasing"
export FFLAGS+=" -fno-strict-aliasing"
# explicitly enable PIC code and disable COTIRE precompiled headers since they
# somehow break PIC. MINIMUM_NUMBER_OF_TARGET_SOURCES workaround was the only
# I found to disable this without patching.
%cmake   \
        -DSYSTEMD_SERVICE_INSTALL_DIR:PATH=%{_unitdir} \
        -DCMAKE_VEYON_X11VNC_EXTERNAL:BOOL=ON \
        -DVEYON_LIB_DIR=%{_lib}/veyon \
        -DVEYON_INSTALL_PLUGIN_DIR=%{_lib}/veyon \
        -DCMAKE_POSITION_INDEPENDENT_CODE:BOOL=ON \
        -DCOTIRE_MINIMUM_NUMBER_OF_TARGET_SOURCES=9999 \
        -DWITH_PCH:BOOL=OFF \
%if %{with qt6}
        -DWITH_QT6:BOOL=ON \
%else
        -DWITH_QT6:BOOL=OFF \
%endif
%ifarch %e2k
	-DWITH_LTO=OFF \
%endif
        -G Ninja -Wno-dev

%ninja_build

%install
%ninja_install -C build

mkdir -p %{buildroot}%{_sbindir}
pushd %{buildroot}%{_sbindir}
ln -s /sbin/service rcveyon
popd

# set right rpath
patchelf --set-rpath '$ORIGIN/../%{_lib}/%{name}' %{buildroot}%{_bindir}/*
patchelf --set-rpath '$ORIGIN' %{buildroot}%{_libdir}/veyon/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11293 |21cr|vgrabbj-0.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A command-line v4l grabber
Name:		vgrabbj
Version:	0.9.9
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://vgrabbj.gecius.de/
Source0:	https://sourceforge.net/projects/vgrabbj/files/vgrabbj/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	ftp-devel
# It really searches for freetype1/freetype.h
BuildRequires:	freetype-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libv4l1)
BuildRequires:	pkgconfig(zlib)

%description
Vgrabbj is a commandline tool that grabs an image from a 24-bit v4l device
(like a webcam) and save it as a ppm, png or jpg file. It can imprint a label
(with time or not) onto the image. It can also be used in stopmotion program
to acquire images.

%files
%doc AUTHORS ChangeLog README THANKS TODO
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.conf.5*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11294 |21cr|vice-3.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

Summary:	The Versatile Commodore Emulator
Name:		vice
Version:	3.6.1
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		https://vice-emu.sourceforge.net/
Source0:	https://sourceforge.net/projects/vice-emu/files/releases/%{name}-%{version}.tar.gz
Source1:	vice-normalicons.tar.bz2
Source2:	vice-largeicons.tar.bz2
Source3:	vice-miniicons.tar.bz2
Source100:	vice.rpmlintrc
BuildRequires:	bdftopcf
BuildRequires:	bison
BuildRequires:	dos2unix
BuildRequires:	doxygen
BuildRequires:	flex
# For joystick support
BuildRequires:	kernel-headers
BuildRequires:	mkfontdir
BuildRequires:	xa
BuildRequires:	xdg-utils
BuildRequires:	readline-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	gettext-devel
BuildRequires:	giflib-devel
BuildRequires:	lame-devel
BuildRequires:	SDL_sound-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.22
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libgnomeui-2.0)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vte)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	vice-binaries = %{EVRD}

%description
VICE is a set of accurate emulators for the Commodore 64, 128, VIC20, PET and
CBM-II 8-bit computers, all of which run under the X Window System.

%files
%doc COPYING README
%doc doc/html/*
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/*/apps/*.png

#----------------------------------------------------------------------------

%package gtk
Summary:	GTK3 set of VICE emulators binaries
Group:		Emulators
Requires:	%{name} = %{EVRD}
Provides:	vice-binaries = %{EVRD}

%description gtk
GTK 3 set of vice emulators binaries.

%files gtk
%doc COPYING
%{_bindir}/*
%{_datadir}/applications/*-gtk.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

# Fix perms
find . -name "*.txt"| xargs chmod -x


%build
%configure \
	--enable-native-gtk3ui \
	--enable-sdlui2 \
	--enable-lame \
	--enable-midi \
	--enable-cpuhistory \
	--enable-external-ffmpeg \
	--enable-desktop-files \
	--enable-quicktime \
	--with-flac \
	--with-mpg123 \
	--without-sun \
	--with-vorbis \
	--with-gif \
	--with-jpeg \
	--disable-html-docs \
	--disable-pdf-docs

%make


%install
%makeinstall_std

# Drop useless stuff
rm -f doc/html/texi2html
rm -f doc/html/COPYING

# Provide menu entries
#============GTK============
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-x64-gtk.desktop << EOF
[Desktop Entry]
Name=C64 Emulator (GTK)
Comment=Commodore 64 Emulator
Exec=x64 %U
Icon=c64icon
Terminal=false
Type=Application
MimeType=application/x-d64;application/x-t64;application/x-x64;
StartupNotify=true
Categories=GNOME;GTK;Emulator;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-x128-gtk.desktop << EOF
[Desktop Entry]
Name=C128 Emulator (GTK)
Comment=Commodore 128 Emulator
Exec=x128 %U
Icon=c128icon
Terminal=false
Type=Application
MimeType=application/x-d64;application/x-t64;application/x-x64;
StartupNotify=true
Categories=GNOME;GTK;Emulator;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-xpet-gtk.desktop << EOF
[Desktop Entry]
Name=PET Emulator (GTK)
Comment=Commodore PET Emulator
Exec=xpet %U
Icon=peticon
Terminal=false
Type=Application
MimeType=application/x-d64;application/x-t64;application/x-x64;
StartupNotify=true
Categories=GNOME;GTK;Emulator;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-xvic-gtk.desktop << EOF
[Desktop Entry]
Name=VIC 20 Emulator (GTK)
Comment=Commodore VIC 20 Emulator
Exec=xvic %U
Icon=vic20icon
Terminal=false
Type=Application
MimeType=application/x-d64;application/x-t64;application/x-x64;
StartupNotify=true
Categories=GNOME;GTK;Emulator;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-xcbm2-gtk.desktop << EOF
[Desktop Entry]
Name=CBM2 Emulator (GTK)
Comment=Commodore BM 2 Emulator
Exec=xcbm2 %U
Icon=c610icon
Terminal=false
Type=Application
MimeType=application/x-d64;application/x-t64;application/x-x64;
StartupNotify=true
Categories=GNOME;GTK;Emulator;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-xplus4-gtk.desktop << EOF
[Desktop Entry]
Name=CPLUS4 Emulator (GTK)
Comment=Commodore PLUS4 Emulator
Exec=xplus4 %U
Icon=plus4icon
Terminal=false
Type=Application
MimeType=application/x-d64;application/x-t64;application/x-x64;
StartupNotify=true
Categories=GNOME;GTK;Emulator;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-c1541-gtk.desktop << EOF
[Desktop Entry]
Name=VICE disk image tool (GTK)
Comment=C1541 stand alone disk image maintenance program
Exec=c1541 %U
Icon=commodore
Terminal=true
Type=Application
StartupNotify=true
Categories=Game;Emulator;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-vsid-gtk.desktop << EOF
[Desktop Entry]
Name=VSID music player (GTK)
Comment=VICE SID music player for Commodore tunes
Exec=vsid %U
Icon=commodore
Terminal=false
Type=Application
StartupNotify=true
Categories=Audio;Player;
EOF
#============GTK============

# Install our icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
tar xjf %{SOURCE1} -C %{buildroot}%{_iconsdir}/hicolor/32x32/apps
tar xjf %{SOURCE2} -C %{buildroot}%{_iconsdir}/hicolor/48x48/apps
tar xjf %{SOURCE3} -C %{buildroot}%{_iconsdir}/hicolor/16x16/apps

# Drop installed docs: we pick them later
rm -rf %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11295 |21cr|vidcutter-6.0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%{nil}

Summary:	FFmpeg based video cutter & joiner with a modern PyQt5 GUI
Name:		vidcutter
Version:	6.0.5.1
Release:	1
Group:		Video
License:	GPLv3+
Url:		http://vidcutter.ozmartians.com
Source0:	https://github.com/ozmartian/vidcutter/archive/%{name}-%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3-qt5-devel
BuildRequires:	pkgconfig(mpv)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	ffmpeg
Requires:	mediainfo
Requires:	mpv
Requires:	python3egg(pyqt5)
Requires:	python3-qt5-opengl
Requires:	python3egg(pyopengl)
Requires:	python3egg(setuptools)

%description
FFmpeg based video cutter & joiner with a modern PyQt5 GUI.
It focuses on getting the job done using tried and true tech in its arsenal
via mpv and FFmpeg.

%files
%doc README.md LICENSE CHANGELOG
%{_bindir}/%{name}
%{py3_platsitedir}/%{name}
%{py3_platsitedir}/%{name}-%{version}-py?.?.egg-info
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/metainfo/*.xml
%{_datadir}/mime/packages/*.xml

#--------------------------------------------------------------

%prep
%setup -q

rm -rf %{name}.egg-info
sed -i "s/pypi/fedora/" "%{name}/__init__.py"


%build
%py3_build


%install
%py3_install

pushd %{buildroot}%{py3_platsitedir}/%{name}
find . -type f -name "*.py" -exec chmod 0755 {} \;
chmod 0644 resources.py
chmod 0644 libs/__init__.py
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11296 |21cr|videocut-0.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		videocut
Version:	0.2.0
Release:	5
License:	GPLv2
Group:		Video
Url:		http://code.google.com/p/videocut/
Source:		%{name}-%{version}.tar.gz
Patch1:		videocut-strcmp-0.2.0.patch
Patch2:		videocut-0.2.0-ftbfs.patch
Patch3:		videocut-0.2.0-ru-l10n.patch
BuildRequires:	qt4-devel 
BuildRequires:	pkgconfig(libxine)
Requires:	xine-plugins

Summary:	Application for creating compositions of screenshots from video files

%description
VideoCut is an open source desktop application specialized 
for creating compositions of screenshots from video files.

%prep
%setup -qn %{name}-%{version}.orig
%patch1 -p1
%patch2 -p0
%patch3 -p1

%build
qmake
%make

%install
install -Dm 0755 build/result/videocut %{buildroot}%{_bindir}/videocut
install -Dm 0644 videocut.desktop %{buildroot}%{_datadir}/applications/videocut.desktop
install -Dm 0644 videocut.svg %{buildroot}%{_datadir}/pixmaps/videocut.svg

%files
%doc ABOUT AUTHORS THANKSTO
%{_bindir}/videocut
%{_datadir}/applications/videocut.desktop
%{_datadir}/pixmaps/videocut.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11297 |21cr|video-downloader-gui-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8):	Утилита для скачивания видео
Summary:	Video downloading utility
Name:		video-downloader-gui
Version:	1.0
Release:	3
License:	GPLv3
Group:		Databases
Url:		https://hub.mos.ru/mos/src/%{name}
Source0:	main.py
Source1:	%{name}.desktop
Vendor:		MOS

Requires:	python3-qt5-core
Requires:	python3-qt5-gui
Requires:	python3-qt5-widgets
Requires:	spoofdpi
Requires:	yt-dlp
BuildArch:	noarch


%description -l ru_RU.UTF-8
Утилита для скачивания видео

%description
Video downloading utility

%files
%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
cp %sources .

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 main.py %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11298 |21cr|vidma-0.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Virtual Disks Manipulator
Name:		vidma
Version:	0.0.4
Release:	4
License:	GPLv2
Group:		Archiving/Other
URL:		https://github.com/przemoc/vidma
Source0:	http://download.przemoc.net/%{name}-%{version}.tar.gz

%description
vidma - Virtual Disks Manipulator

Utility for manipulating virtual disk images. Features:
- resizing fixed-size images
- operations can be done in-place

Supported formats:
- VDI - Virtual Disk Image, used mostly by VirtualBox

%prep
%setup -q

%build
%configure
%make

%install
install -D vidma	%{buildroot}%{_bindir}/vidma
install -D vidma.1	%{buildroot}%{_mandir}/man1/vidma.1

%files
%doc AUTHORS NEWS README.md
%attr(755,root,root) %{_bindir}/vidma
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11299 |21cr|vidstab-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	1.1
%define	libname	%mklibname vidstab %{major}
%define	devname	%mklibname vidstab -d
%define	oname vid.stab
Summary:	Video stabilization library
Name:		vidstab
Version:	1.1.0
Release:	1
Group:		Video
License:	GPLv2
Url:		http://public.hronopik.de/vid.stab
Source0:	https://github.com/georgmartius/vid.stab/archive/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(orc-0.4)

%description
Video stabilization library with plugins for transcode and ffmpeg.
#-------------------------------------------------------------
%package -n	%{libname}
Summary:	Shared library for vidstab
Group:		System/Libraries

%description -n	%{libname}
Shared library required for using %{name}.

%files -n %{libname}
%doc LICENSE README.md Changelog Todo
%{_libdir}/libvidstab.so.%{major}
#-------------------------------------------------------------
%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n	%{devname}
This package contains libraries and signature files for
developing applications that use %{name}.


%files -n %{devname}
%doc LICENSE README.md Changelog Todo
%{_libdir}/libvidstab.so
%dir %{_includedir}/vid.stab
%{_includedir}/vid.stab/*.h
%{_libdir}/pkgconfig/vidstab.pc
#--------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11300 |21cr|viewmol-2.4.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Molecule viewer and editor
Name: 		viewmol
Version: 	2.4.1
Release: 	17
License: 	GPLv2
Group: 		Sciences/Chemistry
URL: 		http://viewmol.sourceforge.net
Source0: 	%name-%version.src.tar.bz2
Patch0:		viewmol-2.4.1-prevent-app-defaults-file-install.patch
Patch1:		viewmol-2.4.1-mdv-fix-str-fmt.patch
BuildRequires:	libtiff-devel
BuildRequires:	mesaglu-devel
BuildRequires:	x11-proto-devel
BuildRequires:	libxt-devel
BuildRequires:	libxi-devel
BuildRequires:	libxmu-devel
BuildRequires:	lesstif-devel
BuildRequires:	png-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	python2-devel
Requires:	python2

%description
Viewmol is a graphical front end for computational chemistry programs.
It is able to graphically aid in the generation of molecular structures
for computations and to visualize their results. At present Viewmol
includes input filters for Discover, DMol, Gamess, Gaussian 9x, Gulp,
Mopac, and Turbomole outputs as well as for PDB files.

%prep
%autosetup -p1

cd source
#tar xfj %{SOURCE}
perl -p -i -e 's!usr/local/lib!%{_libdir}!g' getrc.c
perl -p -i -e 's!lib/viewmol!%{_lib}/viewmol!g' install

%build
export PYTHON=%__python2
cd source
mkdir Linux
echo "LIBTIFF = -L%{_libdir}" > .config.Linux
echo "TIFFINCLUDE = /usr/include" >> .config.Linux
echo "MESALIB = -L/usr/%{_lib}" >> .config.Linux
echo "MESAINCLUDE = /usr/include/GL" >> .config.Linux
#echo "PYTHONVERSION = %pythonver" >> .config.Linux
echo "PYTHONINCLUDE = /usr/include/python%{py2_ver}" >> .config.Linux
echo "LIBPYTHON = -L%{_libdir}/python%{py2_ver}" >> .config.Linux
cd Linux
cat ../.config.Linux > makefile
echo 'COMPILER = gcc' >> makefile
echo 'OPT=${RPM_OPT_FLAGS}' >> makefile
echo 'CFLAGS=-Wall -I/usr/include -DLINUX' >> makefile
echo 'LDFLAGS=' >> makefile
echo 'SCANDIR=' >> makefile
echo 'INCLUDE=$(MESAINCLUDE) -I$(TIFFINCLUDE) -I$(PYTHONINCLUDE)' >> makefile
echo 'LIBRARY=$(MESALIB) $(LIBPYTHON)' >> makefile
echo 'LIBS=-L/usr/%{_lib} -lpython%{py2_ver} -ltiff -lGLU -lGL -lpng -lXm -lXmu -lXt -lX11 -lXi -lm' >> makefile
cat ../Makefile >> makefile
make viewmol_
make tm_
make bio_
make readgamess_
make readgauss_
make readmopac_
make readpdb_

%install
cd source
./install %{buildroot}%{_prefix}
mkdir -p %{buildroot}%{_docdir}
mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
mv %{buildroot}/%{_libdir}/viewmol/doc/* %{buildroot}%{_docdir}/%{name}-%{version}
rmdir %{buildroot}/%{_libdir}/viewmol/doc
chmod 755 %{buildroot}/%{_libdir}/viewmol/Linux/*
chmod 755 %{buildroot}/%{_bindir}/*

# menu

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=ViewMol
Comment=GUI interface for chemistry software
Exec=%{_bindir}/%{name} 
Icon=chemistry_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Motif;Education;Science;Chemistry;
EOF

%files
%doc %{_docdir}/%{name}-%{version}
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11301 |21cr|viewnior-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Elegant image viewer
Name:		viewnior
Version:	1.7
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		http://xsisqox.github.com/Viewnior
Source0:	https://github.com/xsisqox/Viewnior/archive/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(shared-mime-info)

%description
Viewnior is an image viewer program. Created to be simple, fast and elegant.
It's minimalist interface provides more screen space for your images. Among
its features are:
* Fullscreen & Slideshow
* Rotate, flip, save, delete images
* Animation support
* Browse only selected images
* Navigation window
* Simple interface
* Configurable mouse actions.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README.md TODO
%{_bindir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.*
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn Viewnior-%{name}-%{version}

# fix spurious executable perms
chmod 0644 AUTHORS COPYING NEWS src/*

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11302 |21cr|viking-1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Global positioning system (GPS) and mapping manager
Name:		viking
Version:	1.10
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://viking.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/viking/%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	gtk-doc
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	scrollkeeper
BuildRequires:	bzip2-devel
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(oauth)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(gexiv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgps)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(nettle)
BuildRequires:	yelp-tools
Requires:	gpsbabel

%description
Viking is a free/open source program to manage GPS data. You can import and
plot tracks and way-points, show Terraserver maps under it, add coordinate
lines, make new tracks and way-points, hide different things, etc.

%files -f %{name}.lang
%doc AUTHORS README COPYING TODO NEWS ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%{_datadir}/%{name}/*.txt
%{_datadir}/%{name}/*.xml
%{_mandir}/man1/viking.1*

#----------------------------------------------------------------------------

%prep
%setup -q
for file in ChangeLog NEWS TODO; do
	mv $file timestamp
	iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
	touch -r timestamp $file
done

%build
%configure \
	--disable-mapnik
%make CFLAGS="%{optflags} -fcommon"

%install
%makeinstall_std

desktop-file-install \
	--add-category="GTK;Network;" \
	--delete-original \
	--dir=%{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11303 |21cr|vim-latex-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced vim plugin for LaTeX editing
Name:		vim-latex
Version:	1.10.0
Epoch:		1
Release:	1
License:	Charityware
Group:		Editors
Url:		http://vim-latex.sf.net
Source0:	https://sourceforge.net/projects/vim-latex/files/releases/%{name}-%{version}.tar.gz
Requires:	vim
Requires:	python
Requires:	tetex-latex
Requires:	xdvi
BuildArch:	noarch
Obsoletes:	vim-latex < %{EVRD}

%description
Latex-Suite attempts to provide a comprehensive set of tools to
view, edit and compile LaTeX documents in Vim. Together, they
provide tools starting from macros to speed up editing LaTeX
documents to functions for forward searching .dvi documents.

%files
%defattr(-,root,root)
%doc README.txt
%{_bindir}/ltags
%{_bindir}/latextags
%{_datadir}/vim/vimfiles/compiler/*
%{_datadir}/vim/doc/*
%{_datadir}/vim/ftplugin/*
%{_datadir}/vim/indent/*
%{_datadir}/vim/plugin/*
%{_datadir}/appdata/%{name}.metainfo.xml

#-------------------------------------------------------------

%prep
%setup -q

%build
# Add shellbang
mv ftplugin/latex-suite/pytools.py pytools.py.backup
echo '#!/bin/env python' > ftplugin/latex-suite/pytools.py
cat pytools.py.backup >> ftplugin/latex-suite/pytools.py
rm -f pytools.py.backup

cat << EOF > ./README.txt
To Read the builtin documentation. From within vim type
:help latex-suite.txt
:help latex-suite-quickstart.txt

Latex-Suite comes with edition 1.6 of the LaTeX2e
documentation translated into vim-help format.
Type :help helptags from within Vim for more information
EOF

%install
# use the already existing make file
make install DESTDIR=%{buildroot} VIMDIR=%{_datadir}/vim BINDIR=%{_bindir}

# move compiler/tex.vim to not conflict with vim-common
mkdir -p %{buildroot}%{_datadir}/vim/vimfiles/
mv %{buildroot}%{_datadir}/vim/compiler %{buildroot}%{_datadir}/vim/vimfiles/

mkdir -p %{buildroot}%{_datadir}/appdata/
mv %{buildroot}/usr/local/share/appdata/%{name}.metainfo.xml %{buildroot}%{_datadir}/appdata/
chmod -x %{buildroot}%{_datadir}/appdata/%{name}.metainfo.xml

# fix permissions
chmod +x %{buildroot}%{_datadir}/vim/ftplugin/latex-suite/pytools.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11304 |21cr|vips-8.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_ld_no_undefined 1

# Source tarballs changed name
%define	oname	libvips
%define	major	42
%define	libname	%mklibname %{name} %{major}
%define	libcc	%mklibname %{name}CC %{major}
%define	devname	%mklibname %{name} -d
%define	gimajor	8.0
%define	girname	%mklibname vips-gir %{gimajor}

Summary:	Image processing system
Name:		vips
Version:	8.13.2
Release:	1
License:	LGPLv2+
Group:		Video
Url:		https://libvips.github.io/libvips/
Source0:	https://github.com/libvips/libvips/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:		vips-8.10.6-fix-python-shebang.patch
BuildRequires:	doxygen
BuildRequires:	gettext
BuildRequires:	gtk-doc >= 1.14
BuildRequires:	perl(XML::Parser)
BuildRequires:	swig
BuildRequires:	giflib-devel
BuildRequires:	nifti-devel
BuildRequires:	pkgconfig(cairo) >= 1.2
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(glib-2.0) >= 2.62
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 1.30.0
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif) >= 0.6
BuildRequires:	pkgconfig(libgsf-1) >= 1.14.31
BuildRequires:	pkgconfig(libheif) >= 1.7.0
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjp2) >= 2.4
BuildRequires:	pkgconfig(libpng) >= 1.2.9
BuildRequires:	pkgconfig(librsvg-2.0) >= 2.46.0
BuildRequires:	pkgconfig(libtiff-4) >= 4.0.10
BuildRequires:	pkgconfig(libwebp) >= 0.6.0
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(matio)
BuildRequires:	pkgconfig(OpenEXR) >= 1.2.2
BuildRequires:	pkgconfig(openslide) >= 3.4.0
BuildRequires:	pkgconfig(orc-0.4) >= 0.4.11
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(poppler-glib) >= 0.16.0
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(pygobject-3.0) >= 3.13.0
BuildRequires:	pkgconfig(zlib)
# Not provided yet
# libimagequant / libspng / libjxl
# Packages not found in configure output: unused?
BuildRequires:	pkgconfig(liboil-0.3)
BuildRequires:	pkgconfig(libv4l1)
# Python bindings package gone
%rename	python-%{name}

%description
VIPS is a free image processing system. It aims to be about half-way between
Photoshop and Excel: it is very bad at retouching photographs, but very handy 
for the many other imaging tasks that programs like Photoshop get used for. 
It is good with large images (images larger than the amount of RAM in your 
machine) and for working with color.

%files -f %{name}8.13.lang
%doc AUTHORS ChangeLog COPYING
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for vips
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with vips.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{oname}.so.%{major}*
%{_libdir}/%{name}-modules-8.13/vips-*.so

#----------------------------------------------------------------------------

%package -n %{libcc}
Summary:	Shared libraries for vips
Group:		System/Libraries

%description -n %{libcc}
This package contains the library needed to run programs dynamically linked
with vips.

%files -n %{libcc}
%doc COPYING
%{_libdir}/%{oname}-cpp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	%{libcc} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Vips-%{gimajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for vips
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libcc} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files needed to develop applications which will use
libvips.

%files -n %{devname}
%doc AUTHORS ChangeLog COPYING NEWS README.md
%{_includedir}/%{name}/*
%{_libdir}/%{oname}*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/*
%{_datadir}/gtk-doc/html/%{oname}/
%{_datadir}/gir-1.0/Vips-%{gimajor}.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}


%build
# Build against GraphicsMagick: it's a better choice for this kind of
# usage, and anyway it works with underlinking protection,
# whereas ImageMagick does not - AdamW 2008/07
#./bootstrap.sh
#./autogen.sh
export GI_TYPELIB_PATH="%{_libdir}/girepository-1.0"
%configure \
	--with-magickpackage=GraphicsMagick \
	--enable-gtk-doc \
	--disable-static
%make


%install
%makeinstall_std

# Drop debug files
rm -f %{buildroot}%{_libdir}/*.debug

%find_lang %{name}8.13

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11305 |21cr|virt-manager-4.1.0-3.git4a2df0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 4a2df064839f71ed94320771507b1271d041e397
%define commit_short %(echo %{commit} | head -c6)

Summary:	Virtual Machine Manager
Name:		virt-manager
Version:	4.1.0
Release:	3.git%{commit_short}.1
License:	GPLv2+
Group:		System/Servers
Url:		http://virt-manager.org/
#Source0:    https://github.com/virt-manager/virt-manager/archive/refs/tags/v%{version}.tar.gz
Source0:    https://github.com/virt-manager/virt-manager/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0001:	0001-ROSA-force-VTE-2.91-with-GTK-3.patch
Patch0002:	0002-ROSA-Fix-detecting-ssh-askpass.patch
Patch0003:	0003-ROSA-fix-naming-off-AyatanaAppIndicator.patch
BuildArch:	noarch
BuildRequires:	gettext
BuildRequires:	python3-devel
BuildRequires:	python3-docutils
BuildRequires:	python3-setuptools
Requires:	virt-manager-common = %{EVRD}
Requires:	python3-gobject
Requires:	python3-gi
Requires:	typelib(LibvirtGLib)
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(GtkVnc) = 2.0
Requires:	typelib(SpiceClientGtk) = 3.0
Requires:	typelib(SpiceClientGLib)
# XXX It is not required directly from either here not spice-gtk
# but is needed for "from gi.repository import SpiceClientGtk"
# for some reasons... TODO: investigate this
Requires:	typelib(GstBase) = 1.0
# is /usr/bin/spice-client-glib-usb-acl-helper needed?
Requires:	spice-gtk

# We can work with gtksourceview 3 or gtksourceview4, pick the latest one
Requires:	typelib(GtkSource) = 4

# virt-manager is one of those apps that people will often install onto
# a headless machine for use over SSH. This means the virt-manager dep
# chain needs to provide everything we need to get a usable app experience.
# Unfortunately nothing in our chain has an explicit dep on some kind
# of usable gsettings backend, so we explicitly depend on dconf so that
# user settings actually persist across app runs.
Requires:	dconf

# Patch 0001-ROSA-force-VTE-2.91-with-GTK-3.patch forces 2.91
Requires:	typelib(Vte) = 2.91

# dependencies for the common virt-manager usecase
# (running VMs locally)
Recommends:	libvirt-utils
Recommends:	qemu-kvm
Recommends:	qemu-audio-spice
Recommends:	qemu-char-spice
Recommends:	qemu-ui-spice-app
Recommends:	qemu-ui-spice-core
Recommends:	qemu-device-display-virtio-vga
Recommends:	qemu-device-display-virtio-gpu
Recommends:	qemu-device-display-qxl
# Support virtual UEFI
Recommends:	edk2-ovmf
Recommends:	edk2-ovmf-ia32

# to ask password for SSH connections to remote libvirtd
Recommends:	ssh-askpass

# Optional inspection of guests
Recommends:	python3-libguestfs

%description
Virtual Machine Manager provides a graphical tool for administering virtual
machines for KVM, Xen, and LXC. Start, stop, add or remove virtual devices,
connect to a graphical or serial console, and see resource usage statistics
for existing VMs on local or remote machines. Uses libvirt as the backend
management API.

%files
%license COPYING
%doc README.md NEWS.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}/ui/*.ui
%{_datadir}/%{name}/virtManager
%{_datadir}/%{name}/icons
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.virt-manager.virt-manager.gschema.xml
%{_datadir}/metainfo/%{name}.appdata.xml

#--------------------------------------------------------------------------------

%package common
Summary:	Common files used by the different Virtual Machine Manager interfaces

Requires:	python3-argcomplete
Requires:	python3-libvirt
Requires:	python3-libxml2
Requires:	python3-requests
Requires:	python3-tqdm
Requires:	libosinfo
# Required for gobject-introspection infrastructure
Requires:	python3-gobject
# Required for pulling files from iso media with isoinfo
Requires:	genisoimage

%description common
Common files used by the different virt-manager interfaces, as well as
virt-install related tools.

%files common -f %{name}.lang
%license COPYING
%doc README.md NEWS.md
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/virtinst

#--------------------------------------------------------------------------------

%package -n virt-install
Summary:	Utilities for installing virtual machines

Requires:	virt-manager-common = %{EVRD}
# For 'virsh console'
Requires:	libvirt-client

Provides: virt-install = %{EVRD}
Provides: virt-clone = %{EVRD}
Provides: virt-xml = %{EVRD}

%description -n virt-install
Package includes several command line utilities, including virt-install
(build and install new VMs) and virt-clone (clone an existing virtual
machine).

%files -n virt-install
%license COPYING
%doc README.md NEWS.md
%{_bindir}/virt-install
%{_bindir}/virt-clone
%{_bindir}/virt-xml
%{_datadir}/bash-completion/completions/virt-install
%{_datadir}/bash-completion/completions/virt-clone
%{_datadir}/bash-completion/completions/virt-xml
%{_mandir}/man1/virt-install.1*
%{_mandir}/man1/virt-clone.1*
%{_mandir}/man1/virt-xml.1*

#--------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%{__python3} setup.py configure

%install
%{__python3} setup.py \
	--no-update-icon-cache --no-compile-schemas \
	install -O1 --root=%{buildroot}
%find_lang %{name}

# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#manual-bytecompilation
%py_byte_compile %{python3} %{buildroot}%{_datadir}/virt-manager/

# Replace '#!/usr/bin/env python3' with '#!/usr/bin/python3'
# The format is ideal for upstream, but not a distro. See:
# https://fedoraproject.org/wiki/Features/SystemPythonExecutablesUseSystemPython
for f in $(find %{buildroot} -type f -executable -print); do
	sed -i "1 s|^#!/usr/bin/env python3|#!%{__python3}|" $f || :
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11306 |21cr|virt-p2v-1.42.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert a physical machine to run on KVM
Name:		virt-p2v
Version:	1.42.3
Release:	8
License:	LGPLv2.0+
Group:		Emulators
Url:		http://libguestfs.org
Source0:	http://download.libguestfs.org/%{name}/%{name}-%{version}.tar.gz
Source1:	virt-p2v-live.sh
Patch1:		0001-Better-GUI.patch
BuildRequires:	m4
#BuildRequires:	nbdkit
BuildRequires:	xz
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Pod::Man)
BuildRequires:	perl(Pod::Simple)
BuildRequires:	perl(Pod::Text)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libpcre2-posix)
Requires:	gawk
Requires:	guestfs-tools
Requires:	gzip
Requires:	nbdkit
# guestfs-tools and nbdkit do not exist on 32 bit
ExcludeArch:	%{ix86}

%description
Virt-p2v converts (virtualizes) physical machines so they can be run
as virtual machines under KVM.
	
This package contains the tools needed to make a %{name} boot CD or
USB key which is booted on the physical machine to perform the
conversion. You also need virt-v2v installed somewhere else to
complete the conversion.
To convert virtual machines from other hypervisors, see virt-v2v.

%files
%doc README
%license COPYING
%{_bindir}/%{name}-make-disk
%{_bindir}/%{name}-make-kickstart
%{_bindir}/%{name}-make-kiwi
%{_datadir}/bash-completion/completions/%{name}-make-*
%{_datadir}/%{name}
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-make-*.1*
%{_mandir}/man1/p2v-*.1*

#----------------------------------------------------------------------------

%package live
Summary:	virt-p2v for the LiveCD system
Requires:	%{name}
Recommends:	(%{name}-live-gui if task-x11)

%description live
virt-p2v for the LiveCD system

%files live
%license COPYING
%{_bindir}/launch-virt-p2v
%{_bindir}/virt-p2v
%{_presetdir}/86-%{name}-live.preset
#%{_systemd_util_dir}/logind.conf.d/%{name}-live.conf
%{_unitdir}/p2v.service
#%{_unitdir}/getty@.service.d/virt-p2v-live.conf
/etc/profile.d/%{name}-live.sh

%post
%systemd_post p2v.service

%preun
%systemd_preun p2v.service

#----------------------------------------------------------------------------

%package live-gui
Summary:	virt-p2v for the LiveCD system, GUI mode
Requires:	%{name}-live
# for launch-virt-p2v
Requires:	task-x11
Requires:	/usr/bin/nm-applet
Requires:	/usr/bin/xfwm4
Requires:	/usr/bin/xfce4-panel
# buttons in GUI
Requires:	/usr/bin/nm-connection-editor
Requires:	/usr/bin/xterm
BuildArch:	noarch

%description live-gui
virt-p2v for the LiveCD system, GUI mode

%files live-gui
# empty, meta-package

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

chmod +x %{buildroot}%{_datadir}/%{name}/kiwi-config.sh
chmod +x %{buildroot}%{_datadir}/%{name}/launch-%{name}

# live
# based on https://github.com/libguestfs/virt-p2v/blob/master/virt-p2v-make-disk.in
mkdir -p %{buildroot}%{_unitdir}
install -m644 %{buildroot}%{_datadir}/%{name}/p2v.service %{buildroot}%{_unitdir}
install -m755 %{buildroot}%{_datadir}/%{name}/launch-virt-p2v %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_presetdir}
echo enable p2v.service > %{buildroot}%{_presetdir}/86-%{name}-live.preset
unxz -k %{buildroot}%{_libdir}/virt-p2v/virt-p2v.xz
mv %{buildroot}%{_libdir}/virt-p2v/virt-p2v %{buildroot}%{_bindir}
chmod 755 %{buildroot}%{_bindir}/virt-p2v
mkdir -p %{buildroot}%{_unitdir}/getty@.service.d/

# Useless when building iso using rosa-build-iso + c/f/empty-root-password
#cat > %{buildroot}%{_unitdir}/getty@.service.d/%{name}-live.conf << 'EOF'
#[Service]
## reset default value
#ExecStart=
## copied from getty@.service
#ExecStart=-agetty -o '-p -- \\u' --noclear %I $TERM -a root
#EOF

# virt-p2v-make-disk.in does it, but why would it be needed?
#mkdir -p %{buildroot}%{_systemd_util_dir}/logind.conf.d/
#cat > %{buildroot}%{_systemd_util_dir}/logind.conf.d/%{name}-live.conf << 'EOF'
#[Login]
#ReserveVT=1
#EOF

mkdir -p %{buildroot}/etc/profile.d
install -m644 %{SOURCE1} %{buildroot}/etc/profile.d/%{name}-live.sh


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11307 |21cr|virtualjaguar-2.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Atari Jaguar Emulator
Name:		virtualjaguar
Version:	2.1.3
Release:	1
License:	GPLv3+
Group:		Emulators
Url:		http://icculus.org/virtualjaguar/
Source0:	http://www.icculus.org/virtualjaguar/tarballs/%{name}-%{version}.tar.bz2
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(zlib)

%description
Virtual Jaguar is software dedicated to emulating the Atari Jaguar hardware on
a standard PC. The software was originally developed by David Raingeard of
Potato Emulation and was released under the GPL on 25 June 2003.

Virtual Jaguar GCC/Qt is not just a port of the MS Visual C++/SDL sourcecode
but has also been extended and rewritten so that we can enjoy Atari Jaguar
emulation on every platform that has a GCC compiler and a port of Qt.

%files
%doc docs/*
%{_bindir}/%{name}
%{_datadir}/pixmaps/%{name}.xpm
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn linux-%{version}

# fix for qmake-qt5 use
sed -i 's/qmake -qt=5/qmake-qt5/' ./Makefile

%build
make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 res/vj.xpm %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Virtual Jaguar
Comment=%{summary}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11308 |21cr|VirtualLab-6.2.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The content is noarch, but we have arch-specific dependencies
%define debug_package %{nil}

Summary:	The Virtual Microscope interface
Name:		VirtualLab
Group:		Sciences/Biology
Version:	6.2.2
Release:	10
License:	GPL
Url:		http://virtual.itg.uiuc.edu/
Source0:	%{name}%{version}-with-samples.zip
Source1:	%{name}.png
Source2:	%{name}.desktop
Source3:	VirtualLabConfig.xml
Source4:	VirtualLab-rpmlintrc
BuildRequires:	java-devel
AutoReqProv:	no
Requires:	java
%ifnarch aarch64
Recommends:	libCg
%endif

%description
The Virtual Microscope interface supports the browsing of high-resolution,
multi-dimensional image datasets from our Scanning Electron Microscope (SEM)
and our Light Microscope (LM).

%files
%attr(755,root,root) %{_bindir}/%{name}.sh
%dir %{_datadir}/java/%{name}
%{_datadir}/java/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -T -c %{name}-%{version}
cp %{SOURCE0} .
unzip *.zip
rm *.zip
pushd "Virtual Lab"
mv * ../
popd
rm -rf "Virtual Lab"

%build

%install
mkdir -p %{buildroot}%{_datadir}/java/%{name}
mkdir -p %{buildroot}%{_bindir}
cp -r * %{buildroot}%{_datadir}/java/%{name}
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/java/%{name}/VirtualLabConfig.xml
# startscript
cat > %{name}.sh <<EOF
#!/bin/bash
pushd %{_datadir}/java/%{name}
java -Dapple.laf.useScreenMenuBar=true  -Djava.library.path=resources/ -Xmx1024m -jar "%{_datadir}/java/%{name}/resources/Virtuallab.6.2.2.jar"
EOF
install -m 755 %{name}.sh %{buildroot}%{_bindir}/
# install menu entry
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -D -m644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
chmod a+r %{buildroot}%{_datadir}/java/%{name}/resources/Virtuallab.6.2.2.jar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11309 |21cr|virt-v2v-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# See in git
%define commit_common 94619ded353081255409eb3ffae51061adcbf9a4

Summary:	Convert a virtual machine to run on KVM
Name:		virt-v2v
Version:	2.6.0
Release:	1
License:	LGPLv2.0+
Group:		Emulators
Url:		https://github.com/libguestfs/virt-v2v
Source0:	https://github.com/libguestfs/virt-v2v/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/libguestfs/libguestfs-common/archive/%{commit_common}.tar.gz?/libguestfs-common-%{commit_common}.tar.gz
BuildRequires:	libnbd-utils
BuildRequires:	ocaml
BuildRequires:	po4a
BuildRequires:	xorriso
BuildRequires:	gettext-devel
BuildRequires:	ocaml-fileutils-devel
BuildRequires:	ocaml-findlib-devel
BuildRequires:	ocaml-gettext-devel
BuildRequires:	ocaml-libguestfs-devel
BuildRequires:	ocaml-libnbd-devel
BuildRequires:	ocaml-libvirt-devel
BuildRequires:	ocaml-ounit-devel
BuildRequires:	ocaml-seq-devel
BuildRequires:	pcre2-devel
BuildRequires:	perl(Pod::Man)
BuildRequires:	perl(Sys::Guestfs)
BuildRequires:	pkgconfig(augeas)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libguestfs)
BuildRequires:	pkgconfig(libmagic)
BuildRequires:	pkgconfig(libnbd)
BuildRequires:	pkgconfig(libosinfo-1.0)
BuildRequires:	pkgconfig(libvirt)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	edk2-ovmf
Requires:	guestfs-tools
Requires:	libguestfs
Requires:	libnbd-utils
Requires:	nbdkit-basic-filters
Requires:	nbdkit-basic-plugins
Requires:	nbdkit-curl-plugin
Requires:	nbdkit-python-plugin
Requires:	nbdkit-server
Requires:	nbdkit-server
Requires:	nbdkit-ssh-plugin
Requires:	openssh-clients
Requires:	qemu-img
Recommends:	nbdkit-nbd-plugin
Recommends:	nbdkit-vddk-plugin
ExclusiveArch:	x86_64

%description
Virt-v2v converts a single guest from a foreign hypervisor to run on
KVM. It can read Linux and Windows guests running on VMware, Xen,
Hyper-V and some other hypervisors, and convert them to KVM managed by
libvirt, OpenStack, oVirt, Red Hat Virtualisation (RHV) or several
other targets. It can modify the guest to make it bootable on KVM and
install virtio drivers so it will run quickly.

%files -f %{name}.lang
%doc README
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-in-place
%{_bindir}/%{name}-inspector
%{_datadir}/bash-completion/completions/%{name}
%lang(ja) %{_mandir}/ja/man1/*.1*
%lang(uk) %{_mandir}/uk/man1/*.1*
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}-hacking.1*
%{_mandir}/man1/%{name}-in-place.1*
%{_mandir}/man1/%{name}-input-vmware.1*
%{_mandir}/man1/%{name}-input-xen.1*
%{_mandir}/man1/%{name}-inspector.1*
%{_mandir}/man1/%{name}-output-local.1*
%{_mandir}/man1/%{name}-output-openstack.1*
%{_mandir}/man1/%{name}-output-rhv.1*
%{_mandir}/man1/%{name}-release-notes-1.42.1*
%{_mandir}/man1/%{name}-release-notes-2.*.1*
%{_mandir}/man1/%{name}-support.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -a1
rmdir common
mv libguestfs-common-%{commit_common} common

%build
autoreconf -fi
%configure
%make

%install
%make_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11310 |21cr|vitables-3.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname ViTables

Summary:        Viewer for Hierarchical Datafiles (HDF5)
Name:           vitables
Version:        3.0.2
Release:        1
License:        GPLv3
URL:            http://www.vitables.org/
Group:		Editors
Source0:        https://github.com/uvemas/ViTables/archive/v%{version}/%{tarname}-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  python3-numpy
BuildRequires:  python3-tables
BuildRequires:  hdf5-devel
BuildRequires:  python3-sphinx
BuildArch:      noarch

%global _description \
ViTables is a component of the PyTables family. It is a graphical tool\
for browsing and editing files in both PyTables and HDF5 formats. It\
is developed using Python and PyQt (the Python binding to the Qt\
library), so it can run on any platform that supports these components.

%description %_description

%package -n vitables-doc
Summary:        Vitables documentation and examples
Requires:       vitables = %{version}-%{release}

%description -n vitables-doc
This package contains the documentation and examples for vitables.

%prep
%setup -qn  %{tarname}-%{version}

# versioned requirements don't seem to work with out packaged PyQt5
#sed -i.bak '/install_requires=/,+1d'  setup.py

%build
%py3_build
make -C doc html

%install
%py3_install

%files -n vitables
%{_bindir}/vitables
%{py3_puresitedir}/vitables
%{py3_puresitedir}/%{tarname}-%{version}-py*.egg-info

%files -n vitables-doc
%doc examples/
%doc doc/_build/html/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11311 |21cr|vitunes-2.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A curses media indexer and player for vi users
Name:		vitunes
Version:	2.3
Release:	7
License:	BSD
Group:		Sound
Url:		http://vitunes.org
Source0:	http://vitunes.org/files/%{name}-%{version}.tar.gz
Patch0:		vitunes-2.3-time-header.patch
Patch1:		vitunes-2.3-asneeded.patch
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(taglib)

%description
vitunes is a curses-based music player and playlist manager
for *nix whose goals are:
 * a minimalistic appearance
 * strong vi-like bindings
 * quick playlist creation/management.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
cp Makefile.linux Makefile

%build
%setup_compile_flags
%make -f Makefile.linux

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
%makeinstall_std PREFIX=%{buildroot}%{_prefix}
chmod 0755 %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11312 |21cr|vkbasalt-0.3.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname vkBasalt

Summary:	Vulkan post processing layer
Name:		vkbasalt
Version:	0.3.2.6
Release:	1
License:	zlib
Group:		Graphical desktop/LXQt
Url:		https://github.com/DadSchoorse/vkBasalt
Source0:	https://github.com/DadSchoorse/vkBasalt/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	glslang
BuildRequires:	meson
BuildRequires:	spirv-headers
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(x11)

%description
vkBasalt is a Vulkan post processing layer to enhance
the visual graphics of games.

%files
%doc README.md
%license LICENSE
%config(noreplace) %{_sysconfdir}/%{oname}.conf
%{_datadir}/vulkan/implicit_layer.d/%{oname}.json
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%meson -Dappend_libdir_vkbasalt=true
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}
cp config/%{oname}.conf %{buildroot}%{_sysconfdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11313 |21cr|vkeybd-0.1.18d-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Virtual ALSA MIDI keyboard
Name:		vkeybd
Version:	0.1.18d
Release:	10
License:	GPLv2+
Group:		Sound
# URL dead
Url:		http://www.alsa-project.org/~tiwai/alsa.html
# From Debian as there appears to be no upstream source I can find,
# though this is a genuine release made by the author as he referred
# to it in a Debian bug report. - AdamW 2008/01
Source0:	http://ftp.de.debian.org/debian/pool/main/v/vkeybd/%{name}_%{version}.orig.tar.gz
Patch0:		vkeybd-0.1.18d-fix-CFLAGS-override.patch
Patch1:		vkeybd-0.1.18d-fix-man-page-mistakes.patch
Patch2:		vkeybd-0.1.18d-fix-tcl-permissions.patch
Patch3:		vkeybd-0.1.18d-fix-tcl-version.patch
BuildRequires:	desktop-file-utils
BuildRequires:	tk
BuildRequires:	tcl
BuildRequires:	alsa-oss-devel
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(tk)
Requires:	tk
Requires:	tcl

%description
Vkeybd is a virtual keyboard (as in musical instrument) for AWE32/64, raw MIDI
and ALSA sequencer drivers.  It is written in Tcl/Tk.  Enjoy playing music with
your "computer" keyboard :-)

%files
%doc README ChangeLog
%{_bindir}/sftovkb
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

perl -p -i -e "s|-O|%{optflags}||g" Makefile


%build
make PREFIX=%{_prefix} \
	TCLINC="-I%{_includedir}/tc%{tcl_version}" \
	TCLLIB="-ltcl%{tcl_version}" \
	TKLIB="-ltk%{tcl_version}" \
	CC="gcc %{build_ldflags}"

	
%install
make PREFIX="%{buildroot}"%{_prefix} install
make MAN_DIR=%{buildroot}%{_mandir} install-man
make PREFIX="%{buildroot}"%{_prefix} install-desktop

# Put the installed icons in the right place
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
cp pixmaps/%{name}_48x48.png %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/%{name}.png
cp pixmaps/%{name}_32x32.png %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png
cp pixmaps/%{name}_16x16.png %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png
rm -rf %{buildroot}%{_datadir}/pixmaps

# Fix the provided .desktop file
desktop-file-edit	--remove-key="Encoding" \
							--set-icon="%{name}" \
							--remove-category="Application" \
							%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11314 |21cr|vkroots-0-0.git267571.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 26757103dde8133bab432d172b8841df6bb48155
%define commit_short %(echo %{commit} | head -c6)

%global	debug_package %{nil}

Summary:	A stupid simple method of making Vulkan layers, at home! 
Name:		vkroots
Version:	0
Release:	0.git%{commit_short}.1
License:	Apache-2.0
Group:		Development/Other
Url:		https://github.com/Joshua-Ashton/vkroots
Source0:	https://github.com/Joshua-Ashton/vkroots/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	meson
Provides:	%{name}-devel = %{EVRD}

%description
vkroots is a framework for writing Vulkan layers that takes 
all the complexity/hastle away from you! It's so simple!

%files
%{_includedir}/vkroots.h
%{_libdir}/pkgconfig/vkroots.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11315 |21cr|vlang-2022.40-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# https://github.com/vlang/v
%define commit_v 778fe2cde0d76f3632462ebfa8dfda81ae791fe1
%define commit_v_short %(echo %{commit_v} | head -c 6)
# https://github.com/vlang/vc
%define commit_vc 770995054cf69e10c2a1317963ad76bc094cde16

%ifarch riscv64
%global ldflags %{ldflags} -latomic
%endif

Summary:	V programming language compiler
Name:		vlang
Version:	2022.40
Release:	1
License:	MIT
Group:		Development/Other
Url:		https://vlang.io/
Source0:	https://github.com/vlang/v/archive/%{commit_v}.tar.gz?/vlang-v-%{commit_v}.tar.gz
Source1:	https://github.com/vlang/vc/archive/%{commit_vc}.tar.gz?/vlang-vc-%{commit_vc}.tar.gz
Provides:	v = %{EVRD}

%description
V programming language compiler.
Simple language for building maintainable programs
Despite being simple, V gives a lot of power to the developer and can
be used in pretty much every field, including systems programming,
webdev, gamedev, GUI, mobile (wip), science, embedded, tooling, etc.
V is very similar to Go. If you know Go, you already know ≈80% of V.

%files
%license LICENSE
%doc README.md
%doc examples
%{_bindir}/v
%{_libdir}/vlang

#------------------------------------------------------------------

%prep
%autosetup -p1 -n v-%{commit_v}

grep -Irl /usr/local/bin/v | xargs sed 's,/usr/local/bin/v,%{_bindir}/v,g' -i

%build

# Based on:
# https://github.com/vlang/v/blob/master/Makefile
# https://aur.archlinux.org/cgit/aur.git/tree/PKGBUILD?h=vlang

# gcc builds vc, then vc builds v
# build vc - code of v compiler converted into C
tar -xf %{SOURCE1}
%__cc -std=gnu11 -w -I./thirdparty/stdatomic/nix %{optflags} -o v1 vc-%{commit_vc}/v.c -lm -lpthread %{ldflags}
./v1 -cflags "%{optflags}" -no-parallel -o v2 cmd/v
# build v
./v2 -cflags "%{optflags}" -o v cmd/v

%install
# v detects directory where it is located - %%_libdir/vlang - and searches for other files there
mkdir -p %{buildroot}%{_libdir}/vlang
install -m0755 v %{buildroot}%{_libdir}/vlang
cp -a cmd thirdparty vlib v.mod %{buildroot}%{_libdir}/vlang
touch %{buildroot}%{_libdir}/vlang/cmd/tools/.disable_autorecompilation
mkdir -p %{buildroot}%{_bindir}
( cd %{buildroot}%{_bindir} && ln -s ../%{_lib}/vlang/v v )

%check
test -x "$(realpath %{buildroot}%{_bindir}/v)"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11316 |21cr|vlc-more-skins-0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:      vlc-more-skins
Version:   0.1
Release:   8
Summary:   A collection of 7 skins for vlc
License:   GPL
URL:       http://www.videolan.org/vlc/download-skins2.html
Group:     Video
Source0:   %{name}.tar.bz2
Requires: svlc
BuildArch: noarch


%description
A collection of 7 skins for vlc

%prep
rm -rf %buildroot

%setup -n %{name}
%install
rm -rf %buildroot
mkdir -p %buildroot/%_datadir/vlc/skins2/
install -m644 *.vlt %buildroot/%_datadir/vlc/skins2/

%clean
rm -rf %buildroot
%files
%defattr(-,root,root)
%doc COPYING readme.txt
%_datadir/vlc/skins2/chaos.vlt
%_datadir/vlc/skins2/itunes.vlt
%_datadir/vlc/skins2/MediaPlayer.vlt
%_datadir/vlc/skins2/solar.vlt
%_datadir/vlc/skins2/void.vlt
%_datadir/vlc/skins2/vplayer.vlt
%_datadir/vlc/skins2/winamp5.vlt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11317 |21cr|vlc-qt-1.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Since version 1.0.0 there are new library names
%define	oname		VLCQt
%define	major		1.1
%define	libname			%mklibname %{name} %{major}
%define	develname		%mklibname %{name} -d
%define	oldlibname		%mklibname %{name} 0.10
%define	libnamewdt		%mklibname %{name}-widgets %{major}
%define	develnamewdt	%mklibname %{name}-widgets -d
%define	oldlibnamewdt	%mklibname %{name}-widgets 0.10
%define	libnameqml		%mklibname %{name}-qml %{major}
%define	develnameqml	%mklibname %{name}-qml -d
%define	oldlibnameqml	%mklibname %{name}-qml 0.10

Name:		vlc-qt
Version:	1.1.1
Release:	6
Summary:	A simple library to connect Qt applications with libvlc
License:	GPLv3+
Group:		Video
Url:		http://vlc-qt.tano.si/
Source0:	https://github.com/vlc-qt/vlc-qt/archive/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 3.0.2
BuildRequires:	pkgconfig(Qt5Core) >= 5.5.1
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(libvlc) >= 2.2

%description
VLC-Qt is a free library used to connect Qt and libvlc libraries.
It contains core classes for main media playback and also some GUI
classes for faster media player development.

#-----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	A simple library to connect Qt applications with libvlc (core)
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
%rename		%{oldlibname}

%description -n %{libname}
VLC-Qt is a free library used to connect Qt and libvlc libraries.
It contains core classes for main media playback and also some GUI
classes for faster media player development.
This package contains the %{name} core library.

%files  -n %{libname}
%doc CHANGELOG.md README.md LICENSE.md
%{_libdir}/lib%{oname}Core.so.%{major}
%{_libdir}/lib%{oname}Core.so.%{major}.*

#----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Headers and development libraries for %{name} core library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
Headers and development libraries for %{name} core library.

%files  -n %{develname}
%doc CHANGELOG.md README.md LICENSE.md
%{_libdir}/cmake/%{oname}Core/*.cmake
%{_libdir}/pkgconfig/lib%{oname}Core.pc
%{_libdir}/lib%{oname}Core.so
%{_includedir}/%{oname}Core/AbstractVideoFrame.h
%{_includedir}/%{oname}Core/AbstractVideoStream.h
%{_includedir}/%{oname}Core/Audio.h
%{_includedir}/%{oname}Core/Common.h
%{_includedir}/%{oname}Core/Config.h
%{_includedir}/%{oname}Core/Enums.h
%{_includedir}/%{oname}Core/Equalizer.h
%{_includedir}/%{oname}Core/Error.h
%{_includedir}/%{oname}Core/Instance.h
%{_includedir}/%{oname}Core/Media.h
%{_includedir}/%{oname}Core/MediaList.h
%{_includedir}/%{oname}Core/MediaListPlayer.h
%{_includedir}/%{oname}Core/MediaPlayer.h
%{_includedir}/%{oname}Core/MetaManager.h
%{_includedir}/%{oname}Core/ModuleDescription.h
%{_includedir}/%{oname}Core/SharedExportCore.h
%{_includedir}/%{oname}Core/Stats.h
%{_includedir}/%{oname}Core/TrackModel.h
%{_includedir}/%{oname}Core/Video.h
%{_includedir}/%{oname}Core/VideoDelegate.h
%{_includedir}/%{oname}Core/VideoFrame.h
%{_includedir}/%{oname}Core/VideoMemoryStream.h
%{_includedir}/%{oname}Core/VideoStream.h
%{_includedir}/%{oname}Core/YUVVideoFrame.h

#----------------------------------------------------------------------------

%package -n	%{libnamewdt}
Summary:	A simple library to connect Qt application with libvlc (widgets)
Group:		System/Libraries
%rename		%{oldlibnamewdt}

%description -n %{libnamewdt}
VLC-Qt is a free library used to connect Qt and libvlc libraries.
It contains core classes for main media playback and also some GUI
classes for faster media player development.
This package contains the %{name}-widgets library.

%files  -n %{libnamewdt}
%doc CHANGELOG.md README.md LICENSE.md
%{_libdir}/lib%{oname}Widgets.so.%{major}
%{_libdir}/lib%{oname}Widgets.so.%{major}.*

#----------------------------------------------------------------------------

%package -n	%{develnamewdt}
Summary:	Headers and development libraries for %{name}-widgets library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamewdt} = %{EVRD}
Requires:	%{develname} = %{EVRD}
Provides:	%{name}-widgets-devel = %{EVRD}

%description -n %{develnamewdt}
Headers and development libraries for %{name}-widgets library.

%files  -n %{develnamewdt}
%doc CHANGELOG.md README.md LICENSE.md
%{_libdir}/cmake/%{oname}Widgets/*.cmake
%{_libdir}/pkgconfig/lib%{oname}Widgets.pc
%{_libdir}/lib%{oname}Widgets.so
%{_includedir}/%{oname}Widgets/ControlAudio.h
%{_includedir}/%{oname}Widgets/ControlVideo.h
%{_includedir}/%{oname}Widgets/SharedExportWidgets.h
%{_includedir}/%{oname}Widgets/WidgetSeek.h
%{_includedir}/%{oname}Widgets/WidgetSeekProgress.h
%{_includedir}/%{oname}Widgets/WidgetVideo.h
%{_includedir}/%{oname}Widgets/WidgetVolumeSlider.h

#----------------------------------------------------------------------------

%package -n	%{libnameqml}
Summary:	A simple library to connect Qt application with libvlc (qml)
Group:		System/Libraries
%rename		%{oldlibnameqml}

%description -n %{libnameqml}
VLC-Qt is a free library used to connect Qt and libvlc libraries.
It contains core classes for main media playback and also some GUI
classes for faster media player development.
This package contains the %{name}-qml library.

%files  -n %{libnameqml}
%doc CHANGELOG.md README.md LICENSE.md
%{_libdir}/lib%{oname}Qml.so.%{major}
%{_libdir}/lib%{oname}Qml.so.%{major}.*
%{_libdir}/qt5/qml/%{oname}/lib%{oname}.so.%{major}*
%{_libdir}/qt5/qml/%{oname}/qmldir

#----------------------------------------------------------------------------

%package -n	%{develnameqml}
Summary:	Headers and development libraries for vlc-qt library (qml)
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libnameqml} = %{EVRD}
Requires:	%{develname} = %{EVRD}
Provides:	%{name}-qml-devel = %{EVRD}

%description -n %{develnameqml}
Headers and development libraries for %{name}-qml library.

%files  -n %{develnameqml}
%doc CHANGELOG.md README.md LICENSE.md
%{_libdir}/cmake/%{oname}Qml/*.cmake
%{_libdir}/cmake/%{oname}/*.cmake
%{_libdir}/pkgconfig/lib%{oname}Qml.pc
%{_libdir}/lib%{oname}Qml.so
%{_libdir}/qt5/qml/%{oname}/lib%{oname}.so
%{_includedir}/%{oname}Qml/Qml.h
%{_includedir}/%{oname}Qml/QmlPlayer.h
%{_includedir}/%{oname}Qml/QmlSource.h
%{_includedir}/%{oname}Qml/QmlVideoObject.h
%{_includedir}/%{oname}Qml/QmlVideoOutput.h
%{_includedir}/%{oname}Qml/QmlVideoPlayer.h
%{_includedir}/%{oname}Qml/SharedExportQml.h

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake -DSYSTEM_QML=On
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11318 |21cr|vlna-1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Add the \nobreak by Czech typesetting conventions
Name: vlna
Version: 1.5
Release: 5
Source0: ftp://math.feld.cvut.cz/pub/olsak/vlna/%{name}-%{version}.tar.gz
License: GPLv2
Group: Text tools
Url: http://petr.olsak.net/


%description
Program vlna adds ties (Czech vlna or vlnka) after nonsyllabic prepositions
(instead of spaces) in the TeX source files. This prevents line breaks
at undesirable spaces.


%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

%clean

%files
%doc ChangeLog  README README.en vlna.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11319 |21cr|vmpk-0.8.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Virtual MIDI Piano Keyboard
Name:		vmpk
Version:	0.8.10
Release:	1
License:	GPLv3+
Group:		Sound
Url:		http://vmpk.sourceforge.net
Source0:	https://sourceforge.net/projects/vmpk/files/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	asciidoc
BuildRequires:	cmake >= 3.16
BuildRequires:	desktop-file-utils
BuildRequires:	gzip-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(drumstick-alsa) >= 2.9.0
BuildRequires:	pkgconfig(drumstick-rt)
BuildRequires:	pkgconfig(drumstick-widgets)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(Qt5Core) >= 5.12
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)
Requires:	drumstick >= 2.9.0

%description
VMPK is a MIDI event generator/receiver. It doesn't produce any sound by
itself, but can be used to drive a MIDI synthesizer (either hardware or
software, internal or external). You can use the computer's keyboard to play
MIDI notes, and also the mouse. You can use the Virtual MIDI Piano Keyboard to
display the played MIDI notes from another instrument or MIDI file player.

%files
%doc AUTHORS ChangeLog COPYING README.md TODO
%{_sysconfdir}/modules-load.d/%{name}.conf
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/metainfo/net.sourceforge.VMPK.metainfo.xml
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/net.sourceforge.VMPK.desktop
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake -DUSE_QT=5
%make


%install
%makeinstall_std -C build

desktop-file-edit	--remove-category="Education;" \
			--remove-category="Audiovideo;" \
			%{buildroot}%{_datadir}/applications/net.sourceforge.VMPK.desktop

# Provide autoload support module for midi
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
echo "snd_seq" > %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat %{name}.svgz > %{name}.svg && rm -f %{name}.svgz
)


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11320 |21cr|vm-pop3d-1.1.6-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Virtualmail-pop3d, fork of gnu-pop3d
Name:		vm-pop3d
Version:	1.1.6
Release:	14
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.reedmedia.net/software/virtualmail-pop3d/
Source0:	ftp://ftp.nodomainname.net/pub/gnu-pop3d/current/%{name}-%{version}.tar.bz2
Source1:	%{name}-xinetd.bz2
Patch0:		vm-pop3d-popbsmtp.patch.bz2
Patch1:		vm-pop3d-1.1.6-headerfix.patch.bz2
Patch2:		vm-pop3d-pamd.patch
Patch3:		vm-pop3d-1.1.6-fix-buffer-overflow.patch
BuildRequires:	pam-devel
Requires:	xinetd
Requires(post,preun):	rpm-helper

%description
The GNU POP3 server, or GNU POP. This is a small, fast, efficient POP3 server.
It aims to be fully RFC compliant. Please read the file README.rpm in this
packages doc directory for more information.

%files
%doc README AUTHORS TODO INSTALL RFC*
%{_sbindir}/*
%{_mandir}/man8/*
%config(noreplace) %{_sysconfdir}/xinetd.d/%{name}
%config(noreplace) %{_sysconfdir}/pam.d/%{name}

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .popbsmtp~
%patch1 -p1 -b .headerfix~
%patch2 -p1 -b .pamd~
%patch3 -p1 -b .overflow~

%build
%configure \
	--enable-pam
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall
install -D -m644 %{name}.pamd %{buildroot}%{_sysconfdir}/pam.d/%{name}
bzcat %{SOURCE1} > %{name}-xinetd; install -D -m644 %{name}-xinetd %{buildroot}%{_sysconfdir}/xinetd.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11321 |21cr|vms-empire-1.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	The ancestor of all expand/explore/exploit/exterminate games
Name:		vms-empire
Version:	1.16
Release:	1
License:	GPLv2
Group:		Games/Strategy
Url:		http://catb.org/~esr/vms-empire/
Source:		http://www.catb.org/~esr/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	desktop-file-utils


%description
Empire is a simulation of a full-scale war between two emperors,
the computer and you. Naturally, there is only room for one, 
so the object of the game is to destroy the other. 
The computer plays by the same rules that you do. 
This game was ancestral to all later 
expand/explore/exploit/exterminate games, 
including Civilization and Master of Orion.

%files
%doc BUGS COPYING README AUTHORS NEWS
%{_mandir}/man6/%{name}.6*
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/*/*.png
%{_datadir}/appdata/*.xml
#-----------------------------------------
%prep
%setup -q

%build
%setup_compile_flags
%make 

%install
%makeinstall_std

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11322 |21cr|vo-aacenc-0.1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		vo-aacenc
Version:	0.1.3
Release:	4
Summary:	VisualOn AAC encoder library
License:	ASL 2.0
Group:		System/Libraries
URL:		http://opencore-amr.sourceforge.net/
Source0:	http://sourceforge.net/projects/opencore-amr/files/%{name}/%{name}-%{version}.tar.gz

%description
This library contains an encoder implementation of the Advanced Audio
Coding (AAC) audio codec. The library is based on a codec implementation
by VisualOn as part of the Stagefright framework from the Google
Android project.

This package is in restricted because the AAC encoding standard is
covered by patents.

%package -n %{libname}
Group:		System/Libraries
Summary:	VisualOn AAC encoder library

%description -n %{libname}
This library contains an encoder implementation of the Advanced Audio
Coding (AAC) audio codec. The library is based on a codec implementation
by VisualOn as part of the Stagefright framework from the Google
Android project.

This package is in restricted because the AAC encoding standard is
covered by patents.

%package -n %{develname}
Group:		Development/C
Summary:	Development files for %{name} AAC encoding library
Provides:	libvo-aacenc-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
Header files and development libraries for %{name}

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%clean

%files -n %{libname}
%doc COPYING ChangeLog NOTICE README
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{develname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11323 |21cr|vobcopy-1.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Copy DVD videos to the hard disk
Name:		vobcopy
Version:	1.2.0
Release:	5
License:	GPLv2+
Group:		Video
Url:		http://vobcopy.org/
Source0:	http://vobcopy.org/download/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(dvdread)
Requires:	libdvdcss

%description
Vobcopy copies DVD .vob files to hard disk (thanks to libdvdread),
decrypting them on the way (if libdvdcss is installed) and merges them into
2 GB files (or larger) with the name extracted from the DVD. It checks for
enough free space on the destination drive and compares the copied size to
the size on DVD (in case something went wrong during the copying). It can
also mirror a whole DVD video part and copy single files.

This package is in restricted as it depends on libdvdcss.

%files
%doc README Changelog alternative_programs.txt TODO Release-Notes
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%lang(de) %{_mandir}/de/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall \
	BINDIR=%{buildroot}%{_bindir} \
	MANDIR=%{buildroot}%{_mandir} \
	DOCDIR=%{buildroot}%{_datadir}/doc/%{name}

#rm files provided in %doc
rm %{buildroot}%{_docdir}/vobcopy/COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11324 |21cr|voipong-2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil
%define debug_package	%{nil}

Summary:	VoIPong Voice Over IP Sniffer
Name:		voipong
Version:	2.0
Release:	10
License:	GPL
Group:		System/Servers
URL:		http://www.enderunix.org/voipong/
Source0:	http://www.enderunix.org/voipong/%{name}-%{version}.tar.bz2
Source1:	voipong.init.bz2
Source2:	voipong.sysconfig.bz2
Source3:        %{name}.tmpfiles.d
Patch0:		voipong-2.0-mdv_conf.diff
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires:	libpcap-devel


%description
VoIPong is a utility which detects all Voice Over IP calls on a
pipeline, and for those which are G711 encoded, dumps actual
conversation to separate wave files. It supports SIP, H323,
Cisco's Skinny Client Protocol, RTP and RTCP. 

%prep

%setup -q -n %{name}-%{version}
%patch0 -p1

# lib64 fix
perl -pi -e "s|/usr/lib|%{_libdir}|g" etc/*

# fix attribs 
chmod 644 ALGORITHMS AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS LICENSE NEWS README THANKS TODO
chmod 644 docs/users-manual/*.html docs/users-manual/*.css

bzcat %{SOURCE1} > voipong.init
bzcat %{SOURCE2} > voipong.sysconfig

%build

%make \
    CFLAGS="%{optflags} -Wall -Iinclude" \
    SHLIBS="-L%{_libdir} -lpcap -ldl" -f Makefile.linux

%install

# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}/%{name}
install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -d %{buildroot}/var/log/%{name}

install -m0755 voipong %{buildroot}%{_sbindir}/
install -m0755 voipctl %{buildroot}%{_sbindir}/
install -m0755 modvocoder_pcmu.so %{buildroot}%{_libdir}/%{name}/
install -m0755 modvocoder_pcma.so %{buildroot}%{_libdir}/%{name}/
install -m0644 etc/voipong.conf %{buildroot}%{_sysconfdir}/%{name}/
install -m0644 etc/voipongnets %{buildroot}%{_sysconfdir}/%{name}/

install -m0755 voipong.init %{buildroot}%{_initrddir}/%{name}
install -m0644 voipong.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}

# install log rotation stuff
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} << EOF
/var/log/%{name}/voipong.log /var/log/%{name}/voipcdr.log {
    rotate 5
    monthly
    missingok
    notifempty
    nocompress
    prerotate
	%{_initrddir}/%{name} restart > /dev/null 2>&1
    endscript
    postrotate
        %{_initrddir}/%{name} restart > /dev/null 2>&1
    endscript
}
EOF

install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%{_tmpfilesdir}/%{name}.conf
%doc ALGORITHMS AUTHORS COPYING ChangeLog INSTALL KNOWN_BUGS LICENSE NEWS README THANKS TODO
%doc docs/users-manual/*.html docs/users-manual/*.css
%attr(0755,root,root) %{_initrddir}/%{name}
%dir %{_sysconfdir}/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/voipong.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/voipongnets
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0755,root,root) %{_sbindir}/voipong
%attr(0755,root,root) %{_sbindir}/voipctl
%attr(0755,root,root) %dir %{_libdir}/%{name}
%attr(0755,root,root) %{_libdir}/%{name}/*.so
%attr(0755,root,root) %dir %{_localstatedir}/lib/%{name}
%attr(0755,root,root) %dir /var/log/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11325 |21cr|vokoscreen-3.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_enable_debug_packages %{nil}
%global	debug_package %{nil}

%define	oname vokoscreenNG

Summary:	Screencast creator
Name:		vokoscreen
Version:	3.6.0
Release:	1
License:	GPLv2+ and BSD
Group:		Video
Url:	https://github.com/vkohaupt/vokoscreenNG
Source0:	https://github.com/vkohaupt/vokoscreenNG/archive/%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(openssl) >= 1.1.1
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(x11)
Requires:	alsa-utils
Requires:	pulseaudio-utils
Requires:	v4l-utils

%description
vokoscreen is an easy to use screencast creator to record educational
videos, live recordings of browser, installation, video conferences, etc.

%files
%doc COPYING
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/pixmaps/%{oname}.png

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
pushd src
	%qmake_qt5 \
		"CONFIG+=LINUX_INTEGRATED" \
		"CONFIG+=release" \
		"CONFIG+=c++14"
	%make
popd


%install
pushd src
	make INSTALL_ROOT=%{buildroot} install

	install -D -m 0755 %{oname} %{buildroot}%{_bindir}/%{oname}
	install -D -m 0644 applications/%{oname}.desktop %{buildroot}%{_datadir}/applications/%{oname}.desktop
	install -D -m 0644 applications/%{oname}.png %{buildroot}%{_datadir}/pixmaps/%{oname}.png
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11326 |21cr|volk-2.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:          volk
Version:       2.5.2
Release:       1
Summary:       The Vector Optimized Library of Kernels
Group:         System/Libraries
License:       GPLv3+
URL:           https://github.com/gnuradio/%{name}
Source0:       https://github.com/gnuradio/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: gnupg2
BuildRequires: make
BuildRequires: cmake
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: python3-devel
BuildRequires: python3-mako
BuildRequires: orc-devel
BuildRequires: sed
Conflicts:     python3-gnuradio < 3.9.0.0
Conflicts:     gnuradio-devel < 3.9.0.0

%description
VOLK is the Vector-Optimized Library of Kernels. It is a library that contains
kernels of hand-written SIMD code for different mathematical operations.
Since each SIMD architecture can be very different and no compiler has yet
come along to handle vectorization properly or highly efficiently, VOLK
approaches the problem differently. VOLK is a sub-project of GNU Radio.

%files
%license COPYING
%doc README.md docs/CHANGELOG.md
%{_bindir}/volk-config-info
%{_bindir}/volk_modtool
%{_bindir}/volk_profile
%{python3_sitearch}/volk_modtool

#-------------------------------------------------------------------
%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:       Development files for VOLK
Group:         Development/Other
Requires:      %{libname} = %{EVRD}
Provides:      %{name}-devel = %{EVRD}
Requires:      %{name}%{?_isa} = %{EVRD}


%description -n %{devname}
%{summary}.

%files -n %{devname}
%{_includedir}/volk
%ifnarch s390x
%{_includedir}/cpu_features
%{_libdir}/cmake/CpuFeatures
%endif
%{_libdir}/libvolk.so
%{_libdir}/cmake/volk
%{_libdir}/pkgconfig/*.pc

#-------------------------------------------------------------------

%package doc
Summary:       Documentation files for VOLK
Group:         Documentation
Requires:      %{name} = %{version}-%{release}
BuildArch:     noarch


%description doc
%{summary}.

%files doc
%doc %{_docdir}/%{name}/html

#-------------------------------------------------------------------

%prep
%autosetup -p1

# fix shebangs
pushd python/volk_modtool
sed -i '1 {/#!\s*\/usr\/bin\/env\s\+python/ d}' __init__.py cfg.py
popd

%build
# workaround, the code is not yet compatible with the strict-aliasing
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
%cmake
%make_build

# Use make_build for EL8 compat
#%%make_build -C build volk_doc
%make_build volk_doc


# temporally disabled the testsuite due to https://github.com/gnuradio/volk/issues/442
# gnuradio (and all volk consumers) could coredump on s390x and ppc64le under some
# circumstances, see https://bugzilla.redhat.com/show_bug.cgi?id=1917625#c6
#%%check
#cd %{__cmake_builddir}
#make test


%install
%make_install -C build

# docs
mkdir -p %{buildroot}%{_docdir}/%{name}
cp -a build/html %{buildroot}%{_docdir}/%{name}

# drop list_cpu_features, not needed, just some demo binary,
# unavailable on s390x, for details see:
# https://github.com/gnuradio/volk/issues/442#issuecomment-772059840
rm -f %{buildroot}%{_bindir}/list_cpu_features

# drop static objects
rm -f %{buildroot}%{_libdir}/libcpu_features.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11327 |21cr|volpack-1.0c7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname volpack %{major}

Name: volpack
Version: 1.0c7
Release: 6
Summary: Portable library for fast volume rendering
Group: System/Libraries
License: BSD
URL: http://amide.sourceforge.net
Source0: %{name}-%{version}.tgz
Patch0: volpack-1.0c7-mdv-link.patch

%description 
VolPack is a portable library of fast volume rendering algorithms that
produce high-quality images.  It was written by Phil Lacroute.

%package -n %{libname}
Summary: Portable library for fast volume rendering
Group: System/Libraries

%description -n %{libname}
VolPack is a portable library of fast volume rendering algorithms that
produce high-quality images.  It was written by Phil Lacroute.

%package devel
Summary: Static libraries and header file for development using volpack
Group: Development/C
Requires: %{libname} = %{version}

%description devel
The volpack-devel package contains the header files and static libraries
necessary for developing programs using the volpack volume rendering 
library.

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure --disable-dependency-tracking --disable-static
# paralel build will fail
make

%install
%makeinstall_std


%files -n %{libname}
%{_libdir}/*so.%{major}*

%files devel
%doc AUTHORS COPYING
%{_libdir}/*.so
%{_includedir}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11328 |21cr|volume.app-1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple volume control for AfterStep / BlackBox / WindowMaker
Name:		volume.app
Version:	1.1
Release:	11
License:	GPLv2+
Group:		Sound
Url:		http://volume-app.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)

%description
Volume.app is intended to be an extremely simple, efficient, and
attractive interface to a system's sound mixer. It differs from most other
dockapp mixer programs in that it does not require minute control of the
mouse to perform simple volume adjustments. It also lacks the ability to
monitor or control more than one mixer source at a time.

%files
%doc ChangeLog AUTHORS INSTALL COPYING README TODO
%{_bindir}/*
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make LDFLAGS="%{ldflags}"

%install
install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}
tar xOjf %{SOURCE1} %{name}-16x16.png > %{buildroot}%{_miconsdir}/%{name}.png
tar xOjf %{SOURCE1} %{name}-32x32.png > %{buildroot}%{_iconsdir}/%{name}.png
tar xOjf %{SOURCE1} %{name}-48x48.png > %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name} -b
Icon=%{name}
Categories=Audio;
Name=Volume knob
Comment=Main Volume control dockapp
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11329 |21cr|volumeicon-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight volume control
Name:		volumeicon
Version:	0.5.1
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://github.com/Maato/volumeicon
Source0:	https://github.com/Maato/%{name}/archive/0.5.1.tar.gz
BuildRequires:	intltool
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)

%description
Volume Icon aims to be a lightweight volume control that sits in your systray.
Features

* Change volume by scrolling on the systray icon
* Ability to choose which channel to control
* Configurable stepsize (percentage of volume increase/decrease per scrollwheel
  step)
* Several icon themes (with gtk theme as default)
* Configurable external mixer
* Volume Slider

This is localized fork from Mandriva LXDE project.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog
%config(noreplace) %{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_bindir}/%{name}
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
./configure --prefix=/usr \
	--enable-notify \

%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart/
cat > %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=volumeicon
Name[ru]=volumeicon
Comment=Volume Icon
Comment[ru]=Значок регулировки громкости
Exec=%{name}
Terminal=false
Type=Application
Icon=%{_datadir}/%{name}/gui/appicon.svg
Categories=AudioVideo;Audio;X-MandrivaLinux-Multimedia-Sound;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11330 |21cr|vorbisgain-0.37-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Adds tags to Ogg Vorbis files to adjust the volume
Name:		vorbisgain
Version:	0.37
Release:	10
License:	GPLv2+
Group:		Sound
Url:		http://sjeng.sourceforge.net/vorbisgain.html
# http://sjeng.org/ftp/vorbis/vorbisgain-0.32.zip
Source0:	http://sjeng.org/ftp/vorbis/%{name}-%{version}.tar.gz
Patch1:		vorbisgain-patch-configure.patch
Patch2:		vorbisgain-fix-str-fmt.patch
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(vorbis)

%description
VorbisGain is a utility that uses a psychoacoustic method to correct the
volume of an Ogg Vorbis file to a predefined standardized loudness.

It is meant as a replacement for the normalization that is commonly used
before encoding. Although normalization will ensure that each song has
the same peak volume, this unfortunately does not say anything about the
apparent loudness of the music, with the end result being that many
normalized files still don't sound equally loud. VorbisGain uses
psychoacoustics to address this deficiency. Moreover, unlike
normalization, it's a lossless procedure which works by adding tags to
the file. Additionally, it will add hints that can be used to prevent
clipping on playback. It is based upon the ReplayGain technology.

The end result is that the file ends up with superior playback quality
compared to a non-VorbisGain'ed file.

It needs player support to work. Non-supporting players will play back
the files without problems, but you'll miss out on the benefits.
Nowadays most good players such as ogg123 and mplayer are already
compatible. xmms will support this feature from release 1.2.8.

%files
%doc NEWS README
%{_bindir}/*
%{_mandir}/man1/*1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p0
%patch2 -p0

%build
chmod 755 configure
%configure --enable-recursive
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11331 |21cr|vorbisspi-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		vorbisspi
Summary:	Ogg Vorbis sound engine
Version:	1.0.3
Release:	5
License:	LGPL
Group:		Sound
URL:		http://www.javazoom.net/vorbisspi/sources.html
Source0:	http://www.javazoom.net/vorbisspi/sources/%{name}%{version}.tar.gz
BuildRequires:	ant
BuildRequires:	java-devel
BuildArch:	noarch

%description
VorbisSPI  is a SPI (Service Provider Interface - or "Driver" for JavaSound
API) that adds Ogg Vorbis audio format format to the Java Platform (J2SE).
It is based on JOrbis, an open source Vorbis library.

%files
%doc LICENSE.txt README.txt
%{_javadir}/vorbisspi1.0.3.jar
%{_javadir}/jorbis-0.0.15.jar
%{_javadir}/jogg-0.0.7.jar
%{_javadir}/tritonus_share.jar
%{_javadir}/vorbisspi.jar

#--------------------------------------------------------------------

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%files javadoc
%doc LICENSE.txt README.txt
%{_javadocdir}/*

#--------------------------------------------------------------------

%prep
%setup -qn VorbisSPI1.0.3


%build
ant all


%install
install -d -m755 %{buildroot}%{_javadir}
cp -f vorbisspi1.0.3.jar %{buildroot}%{_javadir}/

# jars
install -m644 %{name}%{version}.jar -D %{buildroot}%{_javadir}/%{name}%{version}.jar
ln -s %{name}%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
install -m644 lib/jorbis-0.0.15.jar %{buildroot}%{_javadir}/
install -m644 lib/jogg-0.0.7.jar %{buildroot}%{_javadir}/
install -m644 lib/tritonus_share.jar %{buildroot}%{_javadir}/

# javadoc
install -d %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -r docs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11332 |21cr|voxelands-1709.00-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


Name:           voxelands
Version:        1709.00
Release:        2
Summary:        The fun-focused free software voxel world game
Group:          Games/Strategy
License:        GPLv3+
Url:            http://www.voxelands.com/
# https://gitlab.com/voxelands/voxelands/tags
Source0:        %{name}-v%{version}.tar.bz2
Patch0:         voxelands-install-paths.patch
# https://gitlab.com/voxelands/voxelands/merge_requests/109
Patch1:         0001-CMake-Fix-include-path-for-out-of-source-build.patch

BuildRequires:  cmake
BuildRequires:  gettext
BuildRequires:  irrlicht-devel
BuildRequires:  pkgconfig(freetype2)
BuildRequires:  pkgconfig(jthread)
BuildRequires:  pkgconfig(openal)
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  desktop-file-utils
BuildRequires:	appstream-util

%description
Voxelands (formerly “Minetest-Classic”) is a fork of Minetest-C55, aiming
to return Minetest to the speedy game it was once known as, while fixing
bugs and continuing to add features and functionality. It aims to be a fast,
polished 3D sandbox voxel world game, rather than just a base for modding.

Voxelands features hundreds of blocks, official and player-run servers,
a growing community and rapid development.


%files -f %{name}.lang
%doc README.txt doc/*
%{_appdatadir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-server
%{_gamesdatadir}/%{name}/ 
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man6/%{name}*.6*

#----------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}
%patch0 -p1
%patch1 -p1


%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo \
       -DRUN_IN_PLACE=0 \
       -DENABLE_FREETYPE=1 \
       -DBUILD_SHARED_LIBS=OFF \
       -DJTHREAD_INCLUDE_DIR=%{_includedir}/jthread
%make

%install
%makeinstall_std -C build

%if %{mdvver} >= 201610
mkdir -p %{buildroot}%{_appdatadir}
mv %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml %{buildroot}%{_appdatadir}/%{name}.appdata.xml
rm -fr %{buildroot}%{_datadir}/appdata
%endif

desktop-file-edit --add-category=StrategyGame \
  %{buildroot}%{_datadir}/applications/%{name}.desktop
  

%find_lang %{name}

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11333 |21cr|vpcs-0.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		vpcs
Version:	0.8.2
Release:	1
Summary:	Virtual PC Simulator
Group:		Emulators
License:	BSD
Url:		https://github.com/GNS3/vpcs
Source0:	https://github.com/GNS3/vpcs/archive/v%{version}.tar.gz?/vpcs-%{version}.tar.gz
BuildRequires:	gcc
BuildRequires:	make
BuildRequires:	unzip

%description
The VPCS can simulate up to 9 PCs. You can ping/traceroute them,
or ping/traceroutethe other hosts/routers from the virtual PCs 
when you study the Cisco routers in the Dynamips. VPCS is not 
the traditional PC, it is just a program running on the
Linux or Windows, and only few network commands can be used 
in it. But VPCS can give you a big hand when you study the 
Cisco devices in the Dynamips. VPCS can replace the routers 
or VMware boxes which are used as PCs in the Dynamips network.

Try VPCS, it can save your CPU/Memory. It is very small.

Now, VPCS can be run in udp or ether mode. In the udp mode, 
VPCS sends or receives the packets via udp. In the ether 
mode, via /dev/tap, not support on the Windows. 

%files
%doc readme.txt COPYING
%{_bindir}/vpcs
%{_mandir}/man1/*

#------------------------------------------------------------------
%prep
%autosetup -p1

%build
cd src
export CFLAGS="%{optflags} -fno-strict-aliasing"
make -f Makefile.linux CPUTYPE=%{_target_cpu}

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
cp src/vpcs %{buildroot}/%{_bindir}/
cp man/vpcs.1 %{buildroot}/%{_mandir}/man1/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11334 |21cr|vrflash-0.24-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:   Flash utility for the Agenda VR3 Linux PDA
Name:	   vrflash
Version:   0.24
Release:   11
URL:	   http://www.csee.umbc.edu/~acedil1/agenda/little.shtml
Source:    %{name}-%{version}.tar.bz2
Group:	   Development/Other
License:   GPL

%description
The purpose of this utility is to provide an easy way
to flash kernels and romdisks to the Agenda VR3.

For an overview of the flashing progress, please read
%{_docdir}/agenda-flashing-overview.txt

%prep
%setup -q
%configure

%build
make

%install
rm -rf ${RPM_BUILD_ROOT}
mkdir -p %{buildroot}/{%_bindir,%_docdir}
chmod 644 ${RPM_BUILD_DIR}/%name-%version/doc/*
%makeinstall

%clean
rm -rf ${RPM_BUILD_ROOT}

%files
%defattr(644,root,root,755)
%doc ChangeLog LICENSE README doc/*
%defattr(-,root,root)
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11335 |21cr|vsound-0.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Virtual loopback cable for audio
Name:		vsound
Version:	0.6
Release:	12
License:	GPL
Group:		Sound
URL:		http://www.vsound.org/
Source0:	http://www.vsound.org/%{name}-%{version}.tar.gz
Patch0:		vsound_0.6-4.diff
Requires:	sox
BuildRequires:	sox
BuildRequires:	autoconf2.5
BuildRequires:	automake
BuildRequires:	libtool

%description
VSound is sort of like a 'virtual audio loopback cable'. That is, it allows
you to record the output audio stream of a program (similar to connecting a
loopback cable to the line in and line out jacks on the sound card, and
recording the sound from the line in jack, but without the DA/AD conversion
losses). One possible use for this application is as part of a RealAudio to
WAV file converter.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p1

%build
rm -rf autom4te.cache configure
libtoolize --force --copy; aclocal -I .; automake --add-missing --copy --gnu; autoheader; autoconf

%configure \
    --disable-static \
    --enable-shared

%make CFLAGS="%{optflags} -fPIC"

%install
install -d %{buildroot}%{_bindir}

%makeinstall
install -d %{buildroot}%{_mandir}/man1
install -m0644 debian/%{name}.1 %{buildroot}%{_mandir}/man1/

# nuke the dev files
rm -f %{buildroot}%{_libdir}/vsound/*.la
rm -f %{buildroot}%{_libdir}/vsound/*.a

%files
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README*
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11336 |21cr|vtable-dumper-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Avoid debuginfo-without-sources error
%define	debug_package	%{nil}

Summary:	A tool to list content of virtual tables in a shared library
Name:		vtable-dumper
Version:	1.2
Release:	2
Group:		Development/Other
License:	GPLv2+ or LGPLv2+
Url:		https://github.com/lvc/vtable-dumper
Source0:	https://github.com/lvc/vtable-dumper/archive/%{name}-%{version}.tar.gz
BuildRequires:	elfutils-devel
BuildRequires:	glibc-devel
BuildRequires:	stdc++-devel

%description
A tool to list content of virtual tables in a C++ shared library. It is
intended for developers of software libraries and maintainers of Linux
distributions who are interested in ensuring backward binary compatibility.

%files
%doc LICENSE README
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%make all


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11337 |21cr|vtk-doc-5.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name: vtk-doc
Version: 5.6.0
Release: 5
License: BSD
Summary: Documentation for VTK %version
Group: Development/Other
URL: http://www.vtk.org/
Source0: http://www.vtk.org/doc/release/5.6/vtkDocHtml-%{version}.tar.gz
BuildArch: noarch
Obsoletes: %{name}-docs < %{version}-%{release}
Provides: %{name}-docs = %{version}-%{release}

%description
Documentation for VTK %version.

%files 
%defattr(-,root,root,-)
%dir %_docdir/vtk
%_docdir/vtk/*

#-----------------------------------------

%install
install -m 755 -d %buildroot/%_docdir/vtk
cd %buildroot/%_docdir/vtk
tar xfz %{SOURCE0}
find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11338 |21cr|vtun-3.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%{nil}

Summary:	Virtual tunnel over TCP/IP networks
Name:		vtun
Version:	3.0.4
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://vtun.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/vtun/vtun/%{version}/%{name}-%{version}.tar.gz
Source1:	vtun.socket
Source2:	vtun.service
Patch0:		00-sslauth.patch
Patch1:		01-pidfile.patch
Patch2:		02-dumpfile.patch
Patch3:		03-signedness-warnings.patch
Patch4:		04-implicit-pointer-conversions.patch
Patch5:		05-unix98pty.patch
Patch6:		06-ipv6.patch
Patch7:		07-dual-family-transport.patch
Patch8:		vtun-3.0.3-fix-undefined-reference-with-gcc5.patch
Patch9:		09-client-uses-lot-of-CPU-after-a-SIGHUP.patch
Patch10:	11-libssl-1.1.patch
Patch11:	android-dev.patch
Patch12:	openlog.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
#JMD: For static binary
BuildRequires:	openssl-static-devel
BuildRequires:	glibc-static-devel
Provides:	vppp = %{EVRD}

%description
VTun provides the method for creating Virtual Tunnels over TCP/IP networks and
allows to shape, compress, encrypt traffic in that tunnels. Supported type of
tunnels are: PPP, IP, Ethernet and most of other serial protocols and program.
VTun is easily and highly configurable, it can be used for various network
tasks like VPN, Mobil IP, Shaped Internet access, IP address saving, etc.
It is completely user space implementation and does not require modification
to any kernel parts. 

%files
%doc ChangeLog Credits FAQ README README.LZO README.Setup README.Shaper TODO vtund.conf
%config(noreplace) %{_sysconfdir}/vtund.conf
%{_unitdir}/vtun.socket
%{_unitdir}/vtun.service
%{_sbindir}/vtund
%dir %{_localstatedir}/lib/vtun
%{_mandir}/man5/vtund.conf.5*
%{_mandir}/man8/vtun.8*
%{_mandir}/man8/vtund.8*

#-----------------------------------------------------------------------------


%prep
%autosetup -p1

%build
%configure \
    --localstatedir=%{_localstatedir}/lib/%{name} \
    --enable-ssl \
    --disable-lzo

#JMD: for static binary
#perl -pi -e "s/-lz/-Wl,-static -lz/g;" Makefile

#JMD: use this so we get Unix98 pty support
cat << EOF >> config.h
#define HAVE_GETPT
#define HAVE_GRANTPT
#define HAVE_UNLOCKPT
#define HAVE_PTSNAME
EOF

%make


%install
make install DESTDIR=%{buildroot} INSTALL_OWNER= INSTALL="/usr/bin/install -p"
install -D -m 0644 -p %{SOURCE1} %{buildroot}/%{_unitdir}/vtun.socket
install -D -m 0644 -p %{SOURCE2} %{buildroot}/%{_unitdir}/vtun.service


%post
%systemd_post vtun.service
%systemd_post vtun.socket

%preun
%systemd_preun vtun.service
%systemd_preun vtun.socket

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11339 |21cr|vym-2.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:        View Your Mind - generate and manipulate maps which show your thoughts
Name:           vym
Version:        2.6.0
Release:        2
License:        GPLv2
Group:          Office
Url:            http://www.insilmaril.de/vym/index.html
Source0:        http://prdownloads.sourceforge.net/vym/%{name}-%{version}.tar.bz2
Source1:        %{name}.xml
Source2:        %{name}.desktop
Source3:        x-%{name}.desktop
Source4:        debian.dirs
Source5:        debian.docs
Source6:        makedist.config
Source7:        %{name}_ru.ts.tar.gz          

BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:  qt5-linguist-tools
BuildRequires:  desktop-file-utils
Requires:       unzip
Requires:       zip

%description
VYM  (View Your Mind) is a tool to generate and manipulate maps which
show your thoughts. Such maps can help you to improve your creativity
and effectivity. You can use them for time management, to organize
tasks, to get an overview over complex contexts, to sort your ideas
etc. Some people even think it is fun to work with such maps...

%files
%defattr(-,root,root)
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_bindir}/vym
%{_datadir}/vym

%doc %{_docdir}/%{name}
%doc %{_mandir}/*/*
%{_datadir}/mime/packages/vym.xml

#--------------------------------------------------------------------

%prep
%setup -q

pushd lang
tar -xvzf %{SOURCE7}
popd

%build
lrelease-qt5 vym.pro
qmake-qt5 -o Makefile vym.pro \
	PREFIX=%{_prefix}/share \
	BINDIR=%{_prefix}/bin \
	CONFIG+=RELEASE
%make

%install
mkdir -p %{buildroot}%{_datadir}/vym
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 0644 icons/vym.png %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_docdir}/%{name}
install -m 0644 README.md LICENSE.txt INSTALL.txt %{buildroot}%{_docdir}/%{name}
install -m 0644 doc/*.pdf %{buildroot}%{_docdir}/%{name}

%makeinstall INSTALL_ROOT=%{buildroot} 

mkdir -p %{buildroot}%{_datadir}/applications
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications

mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 doc/vym.1.gz %{buildroot}%{_mandir}/man1

mkdir -p %{buildroot}%{_datadir}/mime/packages
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages/

%post
if test -x %{_bindir}/update-mime-database ; then
	%{_bindir}/update-mime-database usr/share/mime >/dev/null
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11340 |21cr|w3af-1.6.49-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# python templates can not be byte-compiled.
%define _python_bytecompile_errors_terminate_build 0

# binaries are exploits, intended to be used on remote systems
%define _binaries_in_noarch_packages_terminate_build 0

# exclude binaries from dependencies computing
%global __noautoreqfiles ^%{_datadir}/%{name}/plugins/attack/db/sqlmap/udf/.*$
%global __noautoprovfiles ^%{_datadir}/%{name}/plugins/attack/db/sqlmap/udf/.*$

Name:       w3af
Version:    1.6.49
Release:    3
Summary:    Web Application Attack and Audit Framework
Group:      Security
License:    GPLv2 and LGPL
URL:        http://w3af.sourceforge.net/
Source0:    https://github.com/andresriancho/w3af/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:     w3af-1.6.49-no-runtime-dependency-check.patch
Requires:   netcat
Requires:   tcpdump
Requires:   python
Requires:   python-chardet
Requires:   python-clamd
Requires:   python-cluster
Requires:   python-esmre
Requires:   python-fpconst
Requires:   python-futures
Requires:   python-gitpython
Requires:   python-guess-language
Requires:   python-json
Requires:   python-lxml
Requires:   python-msgpack
Requires:   python-nltk
Requires:   python-ntlm
Requires:   python-OpenSSL
Requires:   python-pdfminer
Requires:   python-phply
Requires:   python-pybloomfiltermmap
Requires:   python-pygithub
Requires:   python-pysvn
Requires:   python-sqlite
Requires:   python-soap
# for wordnet plugin
Requires:   python-numpy
Requires:   scapy
BuildArch:  noarch

%description
w3af is a Web Application Attack and Audit Framework. The project's goal is to
create a framework to find and exploit web application vulnerabilities that is
easy to use and extend. To read our short and long term objectives, please
click over the Project Objectives item in the main menu. This project is
currently hosted at SourceForge , for further information, you may also want to
visit w3af SourceForge project page.

%files
%doc doc/*
%{_datadir}/%{name}
%{_bindir}/w3af_console

#-------------------------------------------------------------------------------

%package gui
Summary:    GUI for %{name}
Group:      Monitoring
License:    GPLv2
Requires:   %{name} = %{version}-%{release}
Requires:   python-gtksourceview
Requires:   python-webkitgtk
Requires:   python-xdot
Requires:   graphviz

%description gui
This is a gui for %{name}.

%files gui
%{_bindir}/w3af_gui

#-------------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p 1

rm -f plugins/attack/db/sqlmap/.gitignore
rm -f plugins/attack/db/sqlmap/.gitattributes

%install
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 755 w3af_console %{buildroot}%{_datadir}/%{name}
install -m 755 w3af_gui %{buildroot}%{_datadir}/%{name}
cp -pr profiles %{buildroot}%{_datadir}/%{name}
cp -pr scripts %{buildroot}%{_datadir}/%{name}
cp -pr tools %{buildroot}%{_datadir}/%{name}

install -d -m 755 %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/w3af_console <<EOF
#!/bin/sh
%{_datadir}/%{name}/w3af_console $@
EOF
chmod +x %{buildroot}%{_bindir}/w3af_console

cat > %{buildroot}%{_bindir}/w3af_gui <<EOF
#!/bin/sh
%{_datadir}/%{name}/w3af_gui $@
EOF
chmod +x %{buildroot}%{_bindir}/w3af_gui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11341 |21cr|w3m-0.5.3-9.git20230121.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitcommit c8223fed7cc631ad85d8e5665e509e7988bedbab
%define gitdate 20230121

Summary:	Pager that can also be used as textbased webbrowser
Name:		w3m
Version:	0.5.3
Release:	9.git%{gitdate}.1
License:	MIT
Group:		Networking/WWW
Url:		https://github.com/tats/w3m/
Source0:	https://github.com/tats/w3m/archive/%{gitcommit}/%{name}-git%{gitdate}.tar.gz
Source2:	w3mconfig
Patch0:		0001-allow-to-configure-the-accept-option-for-bad-cookies.patch
Patch1:		0001-implements-simple-session-management.patch
#Patch2:		0001-handle-EXDEV-during-history-file-rename.patch
Patch3:		0001-w3mman-don-t-show-invalid-characters-bsc-950800.patch
# let help handle japanese
Patch10:	w3m-0.5.3-helpcharset.patch
# Fix build
Patch17:	w3m-0.5.3-x11.patch
BuildRequires:	gpm-devel
BuildRequires:	ungif-devel
BuildRequires:	imlib2-devel
BuildRequires:	pkgconfig(bdw-gc)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(imlib)
BuildRequires:	pkgconfig(libmd)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
Provides:	webclient

%description
W3m is a text-based web browser as well as a pager like `more' or
`less'. With w3m you can browse web pages through a terminal emulator
window (xterm, rxvt or something like that). Moreover, w3m can be used
as a text formatting tool which typesets HTML into plain text. w3m also
provides w3mman which is a great manpage browser.

%files -f %{name}.lang
%doc README doc doc-jp w3mhelp-lynx_*
%dir %{_sysconfdir}/w3m
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/w3m/config
%attr(0755,root,root) %{_bindir}/*
%{_libdir}/%{name}
%{_datadir}/%{name}
%{_libexecdir}/%{name}
%{_mandir}/man1/*
%{_mandir}/de/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{gitcommit}
%apply_patches

cp -a %{SOURCE2} w3mconfig

%build
sed -i s/showaudio/mplayer/ config.h.in
export CFLAGS="$RPM_OPT_FLAGS -DUSE_BUFINFO -DOPENSSL_NO_SSL_INTERN -D_GNU_SOURCE $(getconf LFS_CFLAGS) -fno-strict-aliasing `ncursesw6-config --cflags` -fPIE"


%configure \
	--with-browser=%{_bindir}/www-browser \
	--with-editor=%{_bindir}/vi \
	--with-mailer=/bin/mail \
	--with-termlib=ncurses \
	--enable-alarm \
	--enable-ansi-color \
	--enable-bgcolor \
	--enable-color \
	--enable-cookie \
	--enable-dict \
	--enable-digest-auth \
	--enable-external-uri-loader \
	--enable-gopher \
	--enable-help-cgi \
	--enable-history \
	--enable-image \
	--enable-ipv6 \
	--disable-japanese \
	--enable-keymap=w3m \
	--enable-menu \
	--enable-mouse \
	--enable-nntp \
	--enable-sslverify \
	--enable-w3mmailer \
	--disable-xface \
	--enable-m17n \
	--enable-unicode \
	--with-charset=UTF-8 \
	LIBS="-lX11"


echo '#define HAVE_SYS_ERRLIST' >> config.h

make

%install
install -d %{buildroot}/{%{_bindir},{%{_datadir},%{_libdir}}/%{name},%{_mandir}/{,ja_JP.ujis}/man1}

%makeinstall_std

install -m0644 doc-jp/w3m.1 %{buildroot}/%{_mandir}/ja_JP.ujis/man1
install -m0644 doc/w3m.1 %{buildroot}/%{_mandir}/man1

install -d %{buildroot}%{_sysconfdir}/w3m
install -m0644 w3mconfig %{buildroot}%{_sysconfdir}/w3m/config

rm -rf %{buildroot}/%{_mandir}/ja*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11342 |21cr|w3mir-1.0.10-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	All purpose HTTP copying and mirroring tool

Name: 		w3mir
Version: 	1.0.10
Release: 	12
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	http://search.cpan.org/CPAN/authors/id/J/JA/JANL/%{name}-%{version}.tar.bz2
BuildArch:	noarch
buildrequires: perl-devel

%description
w3mir is a all purpose HTTP copying and mirroring tool. The main focus of w3mir
is to create and maintain a browseable copy of one, or several, remote WWW
site(s). Used to the max w3mir can retreive the contents of several related
sites and leave the mirror browseable via a local web server, or from a
filesystem, such as directly from a CDROM.

w3mir's goal is to be able to make useful mirrors of any reasonable WWW site.
It specifically preserves link integrity within the mirrored documents as well
as the integrity of links outside the mirror, following redirects as needed. If
you want it to. w3mir has a powerful ``multi scope'' mechanism enabeling the
user to make mirrors of several related sites and have links between them refer
to the mirrored documents rather than the original site. w3mir has several
features directed at getting mirrors for CDROM burning and handling of some not
too often seen problems when mirroring.

w3mir supports HTML4, and has partial support for CSS, Java and ActiveX.

%prep
%setup -q

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_bindir}/w3mfix
%{_bindir}/w3mir
%{perl_vendorlib}/htmlop.pm
%{perl_vendorlib}/w3http.pm
%{perl_vendorlib}/w3pdfuri.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11343 |21cr|waffle-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	api 1
%define	major 0
%define	libname %mklibname %{name} %{api} %{major}
%define	devname %mklibname %{name} -d

#define	_disable_ld_no_undefined 0


Summary:	Library for select the GL API at runtime
Name:		waffle
Version:	1.7.0
Release:	1
License:	BSD
Group:		Development/C
Url:		http://www.waffle-gl.org
Source0:	https://gitlab.freedesktop.org/mesa/waffle/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)

%description
Waffle is a cross-platform library that allows one to defer selection of GL
API and of window system until runtime. For example, on Linux, Waffle enables
an application to select X11/EGL with an OpenGL 3.3 core profile, Wayland with
OpenGL ES2, and other window system / API combinations.

An immediate goal for this library is to enable Piglit to test multiple GL
flavors in a cross-platform way, and to allow each Piglit test to choose its
GL API and window system at runtime. A future goal is to enable the ability to
record (with another tool such APITrace) an application's GL calls on one
operating system or window system, and then replay that trace on a different
system.

%files
%doc LICENSE.txt
%{_docdir}/%{name}%{api}/*
%{_bindir}/*
%{_datadir}/bash-completion/completions/wflinfo
%{_mandir}/man1/wflinfo*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for select the GL API at runtime
Group:		System/Libraries
Conflicts:	%{_lib}waffle0 < 1.3.0

%description -n %{libname}
Waffle is a cross-platform library that allows one to defer selection of GL
API and of window system until runtime. For example, on Linux, Waffle enables
an application to select X11/EGL with an OpenGL 3.3 core profile, Wayland with
OpenGL ES2, and other window system / API combinations.
This package contains the main library.

%files -n %{libname}
%{_libdir}/libwaffle-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for using the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}waffle0 < 1.3.0

%description -n %{devname}
Waffle is a cross-platform library that allows one to defer selection of GL
API and of window system until runtime. For example, on Linux, Waffle enables
an application to select X11/EGL with an OpenGL 3.3 core profile, Wayland with
OpenGL ES2, and other window system / API combinations.
This package contains the development files for using the %{name} library.

%files -n %{devname}
%doc LICENSE.txt README.md
%{_includedir}/%{name}-%{api}/*
%{_libdir}/libwaffle-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/cmake/Waffle/*.cmake
%{_mandir}/man3/%{name}*
%{_mandir}/man7/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}


%build
%meson \
	-Dglx=enabled \
	-Dwayland=enabled \
	-Dx11_egl=enabled \
	-Dgbm=enabled \
	-Dbuild-manpages=true \
	-Dbuild-htmldocs=true \
	-Dbuild-examples=true

%meson_build


%install
%meson_install

# Example programs don't get installed by default
install -m 755 %{_target_platform}/examples/gl_basic %{buildroot}%{_bindir}
install -m 755 %{_target_platform}/examples/simple-x11-egl %{buildroot}%{_bindir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11344 |21cr|wafp-0.01-0.26c3.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot 26c3

Name:		wafp
Version:	0.01
Release:	%mkrel 0.%{snapshot}.5
Summary:	Web Application Finger Printer
License:	GPL
Group:		Monitoring
URL:		http://www.mytty.org/wafp/
Source:     http://www.mytty.org/wafp/%{name}-%{version}-%{snapshot}.tar.bz2
Patch0:     wafp-0.01-26c3-fhs.patch
Requires:   rubygem(sqlite3)
BuildArch:	noarch

%description
WAFP is a Web Application Finger Printer written in ruby using a SQLite3 DB.

%prep
%setup -q -n %{name}-%{version}-%{snapshot}
%patch0 -p 1

%build

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/wafp
install -d -m 755 %{buildroot}%{_datadir}/wafp/lib
install -d -m 755 %{buildroot}%{_datadir}/wafp/utils

install -m 755 wafp.rb %{buildroot}%{_bindir}
install -m 644 *.db %{buildroot}%{_datadir}/wafp
install -m 644 lib/* %{buildroot}%{_datadir}/wafp/lib
install -m 755 utils/*.sh %{buildroot}%{_datadir}/wafp/utils

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc LICENSE README CREDITS HOWTO
%{_bindir}/wafp.rb
%{_datadir}/wafp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11345 |21cr|wahcade-mahcade-1.0-0.r152.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wahcade
%define beta r152

Summary:	Front end for games and emulators
Name:		wahcade-mahcade
Version:	1.0
Release:	0.%{beta}.2
License:	GPLv2+
Group:		Emulators
Url:		http://www.anti-particle.com/wahcade.shtml
Source0:	http://www.anti-particle.com/projects/%{name}/%{name}-%{version}%{beta}.tar.xz
Patch0:		wahcade-mahcade-launch.patch
BuildRequires:	python
Requires:	pygtk2.0-libglade
Requires:	python-chardet
Requires:	sdlmame-extra-data
Recommends:	gstreamer0.10-python
Recommends:	pygame
Recommends:	python-imaging
BuildArch:	noarch

%description
Wah!Cade is a GNU/Linux friendly clone of Minwah's excellent MameWAH.

It's a front end for games and emulators (e.g. the MAME arcade game emulator), 
and has been designed with arcade cabinet controls and projects in mind.

It is compatible with MameWah's config files and layouts.

It features :
 - a keyboard controlled GUI, perfect for those arcade controls,
 - a history viewer,
 - a control panel viewer,
 - a layout editor,
 - a setup editor.

%files
%doc doc/*
%{_bindir}/*
%{_gamesdatadir}/%{oname}
%{_datadir}/applications/*
%{_datadir}/pixmaps/*
%{_datadir}/locale/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p0

%build
#python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

rm -f %{buildroot}%{py_platsitedir}/%{oname}-%{version}*
rm -f %{buildroot}/usr/lib/python2.7/site-packages/wahcade-mahcade-py2.7.egg-info
rm -f %{buildroot}/usr/lib/python2.7/site-packages/wahcade-bzr_devel-py2.7.egg-info


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11346 |21cr|wahrhaft-mupen64plus-rsp-z64-2.5.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define major 2
%define libname %mklibname %{name} %{api} %{major}
%define develname %mklibname %{name} -d

Name:		wahrhaft-mupen64plus-rsp-z64
Version:	2.5.9
Release:	2
Summary:	Low-level RSP processor plugin for the Mupen64Plus
Group:		Emulators
License:	GPLv2+
Url:		http://code.google.com/p/mupen64plus/
Source0:	https://github.com/mupen64plus/mupen64plus-rsp-z64/releases/download/2.5.9/mupen64plus-rsp-z64-src-2.5.9.tar.gz
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	mupen64plus-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
An experimental plugin for mupen64plus to replace the RSP plugin.


%prep
%setup -q -n mupen64plus-rsp-z64-src-%{version}

%build
export CFLAGS="%{optflags}"
%make all -C projects/unix all COREDIR=%{_libdir}/ SHAREDIR=%{_datadir}/mupen64plus2/ PLUGINDIR=%{_libdir}/mupen64plus2/ V=1 

%install
make -C projects/unix install PREFIX="%{_prefix}" DESTDIR="%{buildroot}" SHAREDIR=%{_datadir}/mupen64plus2/ LIBDIR=%{_libdir}/mupen64plus2/ 

mv %{buildroot}%{_libdir}/mupen64plus2/mupen64plus/mupen64plus-rsp-z64.so %{buildroot}/%{_libdir}/mupen64plus2/
chmod -R 0755 %{buildroot}%{_libdir}

%files
%dir %{_libdir}/mupen64plus2
%{_libdir}/mupen64plus2/mupen64plus-rsp-z64.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11347 |21cr|wahrhaft-mupen64plus-video-arachnoid-2.5.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Arachnoid Plugin for mupen64plus
Name:		wahrhaft-mupen64plus-video-arachnoid
Version:	2.5.9
Release:	2
License:	GPLv2+
Group:		Emulators
Url:		http://code.google.com/p/mupen64plus/
Source0:	https://github.com/mupen64plus/mupen64plus-video-arachnoid/releases/download/%{version}/mupen64plus-video-arachnoid-src-%{version}.tar.gz
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	mupen64plus-devel
ExclusiveArch:	%{ix86} %{x86_64}

%description
An experimental plugin for mupen64plus to replace the rice plugin.

%files
%{_libdir}/mupen64plus2/mupen64plus-video-arachnoid.so

#----------------------------------------------------------------------------

%prep
%setup -q -n mupen64plus-video-arachnoid-src-%{version}

%build
export CFLAGS="%{optflags}"
%make all -C projects/unix all \
	COREDIR=%{_libdir}/ \
	SHAREDIR=%{_datadir}/mupen64plus2/ \
	PLUGINDIR=%{_libdir}/mupen64plus2/ \
	V=1

%install
make -C projects/unix install \
	PREFIX="%{_prefix}" \
	DESTDIR="%{buildroot}" \
	SHAREDIR=%{_datadir}/mupen64plus2/ \
	LIBDIR=%{_libdir}/mupen64plus2/

mv %{buildroot}/%{_libdir}/mupen64plus2/mupen64plus/mupen64plus-video-arachnoid.so %{buildroot}/%{_libdir}/mupen64plus2/
chmod -R 0755 %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11348 |21cr|wakeonlan-0.41-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	Wake-on-LAN magic packet sender
Name:		wakeonlan
Version:	0.41
Release:	3
License:	Artistic
Group:		Networking/Remote access
URL:		http://gsd.di.uminho.pt/jpo/software/wakeonlan/
Source:		http://gsd.di.uminho.pt/jpo/software/wakeonlan/downloads/%{name}-%{version}.tar.bz2


BuildArch:	noarch

%description
Wakeonlan is a Perl script that sends 'magic packets' to
wake-on-LAN enabled ethernet adapters and motherboards, in
order to switch on remote computers.

%prep
%setup -q

%install
install -D -m755 wakeonlan %{buildroot}%{_bindir}/wakeonlan


%files
%doc examples Changes README
%{_bindir}/wakeonlan

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11349 |21cr|WALinuxAgent-2.8.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Windows Azure Linux Agent
Name:		WALinuxAgent
Version:	2.8.0.11
Release:	1
License:	ASL 2.0
Group:		System/Configuration/Other
Url:		https://github.com/Azure/WALinuxAgent
Source0:	https://github.com/Azure/WALinuxAgent/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	module-setup.sh
BuildRequires:	python3-distro
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
Requires:	grep
Requires:	iptables
Requires:	logrotate
Requires:	openssh
Requires:	openssl
Requires:	python3
Requires:	python3-pyasn1
Requires:	sed
Requires:	sudo
Requires:	util-linux
Conflicts:	NetworkManager
BuildArch:	noarch

%description
The Windows Azure Linux Agent supports the provisioning and running of Linux
VMs in the Windows Azure cloud. This package should be installed on Linux disk
images that are built to run in the Windows Azure environment.

%files
%doc LICENSE.txt NOTICE README.md
%config(noreplace) %{_initrddir}/waagent
%ghost %{_localstatedir}/log/waagent.log
%{python3_sitelib}/azurelinuxagent
%{python3_sitelib}/*.egg-info
%{_sbindir}/waagent
%dir %attr(0700,root,root) %{_sharedstatedir}/waagent
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/waagent.conf
%{_unitdir}/waagent.service

%post
%systemd_post waagent.service

%preun
%systemd_preun waagent.service

%postun
%systemd_postun_with_restart waagent.service

#------------------------------------------------------------------

%package udev
Summary:	Udev rules for Microsoft Azure
Group:		System/Configuration/Other

%description udev
Udev rules specific to Microsoft Azure Virtual Machines.

%files udev
%{_prefix}/lib/dracut/modules.d/97walinuxagent/*.sh
%{_udevrulesdir}/*.rules

#------------------------------------------------------------------

%prep
%setup -q
find . -type f -exec sed -i 's/\r//' {} \;

%build
%py3_build

%install
%py3_install

mkdir -p -m 0700 %{buildroot}%{_sharedstatedir}/waagent
mkdir -p %{buildroot}%{_localstatedir}/log
touch %{buildroot}%{_localstatedir}/log/waagent.log

mkdir -p %{buildroot}%{_udevrulesdir}
mv %{buildroot}%{_sysconfdir}/udev/rules.d/*.rules %{buildroot}%{_udevrulesdir}/

rm -rf %{buildroot}/%{python3_sitelib}/tests
rm -rf %{buildroot}/%{python3_sitelib}/__main__.py
rm -rf %{buildroot}/%{python3_sitelib}/__pycache__/__main__*.py*

sed -i 's,#!/usr/bin/env python,#!/usr/bin/python3,' %{buildroot}%{_sbindir}/waagent
rm -f %{buildroot}%{_sbindir}/waagent2.0
mkdir -p %{buildroot}%{_unitdir}
cp init/waagent.service %{buildroot}%{_unitdir}
sed -i 's,/usr/bin/python ,/usr/bin/python3 ,' %{buildroot}%{_unitdir}/waagent.service

mv %{buildroot}%{_sysconfdir}/logrotate.d/waagent.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

mkdir -p %{buildroot}%{_prefix}/lib/dracut/modules.d/97walinuxagent/
cp %{SOURCE1} %{buildroot}%{_prefix}/lib/dracut/modules.d/97walinuxagent/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11350 |21cr|wallpaper-at-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wallpapers by Andreas Tille
Name:		wallpaper-at
Version:	0.3
Release:	10
Source:		%{name}-%{version}.tar.bz2
License:	GNU Free Documentation License
Group:		Graphics
BuildArchitectures:	noarch

URL:		http://www.steve.org.uk/Software/wallpapers/

%description
This package contains some hopefully nice images to use as a background
or a screen saver.  They were taken by Andreas Tille on various trips to
Iceland (http://www.physik.uni-halle.de/~e2od5/island/).

%package 1280x1024
Summary:	Wallpapers by Andreas Tille @ 1280x1024
Group:		Graphics
Provides:	wallpaper-at

%description 1280x1024
This package contains some hopefully nice images to use as a background
or a screen saver.  They were taken by Andreas Tille on various trips to
Iceland (http://www.physik.uni-halle.de/~e2od5/island/).

The images in this package are best suited for use in a 5:4 aspect ratio,
e.g. 1280x1024.

%package 1600x1200
Summary:	Wallpapers by Andreas Tille @ 1600x1200
Group:		Graphics
Provides:	wallpaper-at

%description 1600x1200
This package contains some hopefully nice images to use as a background
or a screen saver.  They were taken by Andreas Tille on various trips to
Iceland (http://www.physik.uni-halle.de/~e2od5/island/).

The images in this package are best suited for use in a 4:3 aspect ratio,
e.g. 1600x1200, 1152x864, 1024x768, 800x600, or 640x480.

%package 1600x900
Summary:	Wallpapers by Andreas Tille @ 1600x900
Group:		Graphics
Provides:	wallpaper-at

%description 1600x900
This package contains some hopefully nice images to use as a background
or a screen saver.  They were taken by Andreas Tille on various trips to
Iceland (http://www.physik.uni-halle.de/~e2od5/island/).

The images in this package are best suited for use in a 16:9 aspect ratio,
e.g. 1600x900.

%prep
%setup -q

%build

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{_datadir}/wallpapers
cp --recursive -f 1280x1024/ $RPM_BUILD_ROOT/%{_datadir}/wallpapers
cp --recursive -f 1600x1200/ $RPM_BUILD_ROOT/%{_datadir}/wallpapers
cp --recursive -f 1600x900/  $RPM_BUILD_ROOT/%{_datadir}/wallpapers

%clean
rm -rf ${RPM_BUILD_ROOT}

%files 1280x1024
%defattr(-,root,root)
%doc LICENSE README
%dir %{_datadir}/wallpapers/1280x1024
%{_datadir}/wallpapers/1280x1024/oexarafoss.jpg
%{_datadir}/wallpapers/1280x1024/namafjall2.jpg
%{_datadir}/wallpapers/1280x1024/sheeps.jpg
%{_datadir}/wallpapers/1280x1024/gras.jpg
%{_datadir}/wallpapers/1280x1024/gothafoss.jpg
%{_datadir}/wallpapers/1280x1024/swarti.jpg
%{_datadir}/wallpapers/1280x1024/myvatnevening.jpg
%{_datadir}/wallpapers/1280x1024/elephant.jpg
%{_datadir}/wallpapers/1280x1024/geysir.jpg
%{_datadir}/wallpapers/1280x1024/dandel.jpg
%{_datadir}/wallpapers/1280x1024/paul1.jpg
%{_datadir}/wallpapers/1280x1024/paul2.jpg
%{_datadir}/wallpapers/1280x1024/viti2.jpg
%{_datadir}/wallpapers/1280x1024/saaleck.jpg
%{_datadir}/wallpapers/1280x1024/leirhnjukur.jpg
%{_datadir}/wallpapers/1280x1024/sanssouci.jpg
%{_datadir}/wallpapers/1280x1024/ruegen.jpg
%{_datadir}/wallpapers/1280x1024/thyme.jpg
%{_datadir}/wallpapers/1280x1024/geysirbubble.jpg
%{_datadir}/wallpapers/1280x1024/hafragil.jpg
%{_datadir}/wallpapers/1280x1024/dirholaey.jpg
%{_datadir}/wallpapers/1280x1024/blesi.jpg
%{_datadir}/wallpapers/1280x1024/namafjall.jpg
%{_datadir}/wallpapers/1280x1024/hveravellir.jpg
%{_datadir}/wallpapers/1280x1024/memleben.jpg
%{_datadir}/wallpapers/1280x1024/laugarvatn.jpg

%files 1600x1200
%defattr(-,root,root)
%doc LICENSE README
%dir %{_datadir}/wallpapers/1600x1200
%{_datadir}/wallpapers/1600x1200/namafjall2.jpg
%{_datadir}/wallpapers/1600x1200/sheeps.jpg
%{_datadir}/wallpapers/1600x1200/darsz.jpg
%{_datadir}/wallpapers/1600x1200/gothafoss.jpg
%{_datadir}/wallpapers/1600x1200/swarti.jpg
%{_datadir}/wallpapers/1600x1200/myvatnevening.jpg
%{_datadir}/wallpapers/1600x1200/geysir.jpg
%{_datadir}/wallpapers/1600x1200/dandel.jpg
%{_datadir}/wallpapers/1600x1200/paul1.jpg
%{_datadir}/wallpapers/1600x1200/paul2.jpg
%{_datadir}/wallpapers/1600x1200/viti2.jpg
%{_datadir}/wallpapers/1600x1200/saaleck.jpg
%{_datadir}/wallpapers/1600x1200/leirhnjukur.jpg
%{_datadir}/wallpapers/1600x1200/sanssouci.jpg
%{_datadir}/wallpapers/1600x1200/ruegen.jpg
%{_datadir}/wallpapers/1600x1200/thyme.jpg
%{_datadir}/wallpapers/1600x1200/geysirbubble.jpg
%{_datadir}/wallpapers/1600x1200/hafragil.jpg
%{_datadir}/wallpapers/1600x1200/koeln.jpg
%{_datadir}/wallpapers/1600x1200/hampton_curt.jpg
%{_datadir}/wallpapers/1600x1200/dirholaey.jpg
%{_datadir}/wallpapers/1600x1200/blesi.jpg
%{_datadir}/wallpapers/1600x1200/namafjall.jpg
%{_datadir}/wallpapers/1600x1200/hveravellir.jpg
%{_datadir}/wallpapers/1600x1200/brocken.jpg
%{_datadir}/wallpapers/1600x1200/memleben.jpg
%{_datadir}/wallpapers/1600x1200/laugarvatn.jpg
%{_datadir}/wallpapers/1600x1200/bicyle.jpg

%files 1600x900
%defattr(-,root,root)
%doc LICENSE README
%dir %{_datadir}/wallpapers/1600x900
%{_datadir}/wallpapers/1600x900/sheeps.jpg
%{_datadir}/wallpapers/1600x900/paul1.jpg
%{_datadir}/wallpapers/1600x900/paul2.jpg
%{_datadir}/wallpapers/1600x900/sanssouci.jpg
%{_datadir}/wallpapers/1600x900/brocken.jpg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11351 |21cr|wallpapoz-0.6.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gnome Desktop wallpaper configuration tool
Name:		wallpapoz
Version:	0.6.2
Release:	4
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://wallpapoz.akbarhome.com
Source0:	http://wallpapoz.akbarhome.com/files/%{name}-%{version}.tar.bz2
Patch0:		wallpapoz-0.6.2-import-PIL-for-Image.patch
BuildRequires:	pygtk2.0
BuildRequires:	pygtk2.0-libglade
BuildRequires:	python-pillow
BuildRequires:	pkgconfig(python)
Requires:	pygtk2.0
Requires:	pygtk2.0-libglade
Requires:	python-pillow
Requires:	xwininfo
BuildArch:	noarch

%description
Wallpapoz application enables you to configure Gnome desktop wallpapers
in unique way. You could have Gnome desktop wallpaper changes when the
specified time has passed.

%files -f %name.lang
%doc README CHANGELOG
%{_bindir}/daemon_wallpapoz
%{_bindir}/wallpapoz
%{_bindir}/launcher_wallpapoz.sh
%{_datadir}/wallpapoz
%{_datadir}/pixmaps/wallpapoz.png
%{_datadir}/applications/wallpapoz.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%install
mkdir -p %{buildroot}%{_prefix}
./setup.py install --installdir %{buildroot}%{_prefix}

%find_lang %{name} --with-gnome


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11352 |21cr|walnut-3.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           walnut
Version:        3.8
Release:        6
Summary:        Gnome Shell extension showing a list of hot keys when Win key holding down

Group:          Graphical desktop/GNOME
License:        GPLv3+
URL:            http://extensions.gnome.org
Source0:        %{name}-%{version}.tar.gz
BuildArch:      noarch
Requires:       gnome-shell
Requires:       mutter
Requires:	nut

%description
Gnome Shell extension for UPS management.

%prep
%setup -q


%build


%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/
cp -r * %{buildroot}%{_datadir}/gnome-shell/extensions/

%post
glib-compile-schemas %{_datadir}/gnome-shell/extensions/walnut@networkupstools/schemas


%files
%defattr(-,root,root,-)
%{_datadir}/gnome-shell/extensions/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11353 |21cr|war1gus-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Warcraft I (Warcraft: Orcs & Humans) for the Stratagus game engine
Name:		war1gus
Version:	3.3.2
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://github.com/Wargus/war1gus/
Source0:	https://github.com/Wargus/war1gus/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	stratagus-devel = %{version}
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	libstdc++-static-devel

Requires:	cdparanoia
Requires:	ffmpeg2theora
Requires:	stratagus = %{version}

%description
War1gus is a Warcraft I Mod that allows you to play Warcraft with the
Stratagus engine, as opposed to play it with the original Warcraft one. So
unless you have a legal copy of Warcraft (original DOS Version required, won't
work with the battle.net edition) War1gus will be pretty useless to you, since
it doesn't come with any graphics or sounds itself.
So why play Warcraft with the Stratagus engine instead of the original
Warcraft one? There are numerous reasons, first it allows you to play Warcraft
under GNU/Linux and other operating systems not supported by the original
Warcraft engine, secondly it allows you to play over the internet, which the
original Warcraft engine didn't allow you to. Last not least the Stratagus
engine allows you to tweak numerous parameters so you can play around with
different unit strength and such.
Since War1gus uses a different engine, not all things will work 100% the same
as they did in the original Warcraft, if you want the original unchanged
Warcraft experience, you will still have to use the original Warcraft.
Warcraft game data should be installed to: /usr/share/games/stratagus/war1gus,
eg: war1tool -v -r [Warcraft_cd_path]/data /usr/share/games/stratagus/war1gus.
Warning! There are lots of hacked Warcraft versions that are NOT supported. If
you have problems with starting War1gus, most likely it's related to wrong
Warcraft data. Even if error messages are related to wrong/missing scripts.
The engine is tested and it does work.

%files
%doc README.md
%{_gamesbindir}/%{name}
%{_bindir}/war1tool
%{_gamesdatadir}/stratagus/%{name}
%{_datadir}/pixmaps/%{name}.xpm
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake
%make


%install
%makeinstall_std -C build

# Put the provided icon in the right place
mkdir -p %{buildroot}%{_iconsdir}/hicolor/64x64/apps
mv %{buildroot}%{_datadir}/pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/
# ...and resize it to have more sizes
for i in 16x16 22x22 32x32 36x36 48x48 128x128; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/apps
	convert %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png -resize $i %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{name}.png
done


# Fix .desktop file
desktop-file-edit	--set-key="Exec" --set-value="%{name}" \
					%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11354 |21cr|wargus-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Warcraft II for the Stratagus game engine (Needs WC2 DOS CD)
Name:		wargus
Version:	3.3.2
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://github.com/Wargus/wargus/
Source0:	https://github.com/Wargus/wargus/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	stdc++-static-devel
BuildRequires:	bzip2-devel
BuildRequires:	stratagus-devel = %{version}
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Requires:	cdparanoia
Requires:	ffmpeg2theora
Requires:	stratagus = %{version}

%description
Wargus is a Warcraft2 Mod that allows you to play Warcraft2 with the Stratagus
engine, as opposed to play it with the original Warcraft2 one. So unless you
have a legal copy of Warcraft2 (original DOS Version required, won't work with
the battle.net edition) Wargus will be pretty useless to you, since it doesn't
come with any graphics or sounds itself.

So why play Warcraft2 with the Stratagus engine instead of the original
Warcraft2 one? There are numerous reasons, first it allows you to play
Warcraft2 under GNU/Linux and other operating systems not supported by the
original Warcraft2 engine, secondly it allows you to play over the internet,
which the original Warcraft2 engine didn't allow you to. Last not least the
Stratagus engine allows you to tweak numerous parameters so you can play
around with different unit strength and such.

Since Wargus uses a different engine, not all things will work 100% the same
as they did in the original Warcraft2, if you want the original unchanged
Warcraft2 experience, you will still have to use the original Warcraft2.

Warcract2 game data should be installed to "/usr/share/games/stratagus/wargus"
eg: wartool -v -r [warcraft2_cd_path]/data /usr/share/games/stratagus/wargus.

Warning! There are lots of hacked Warcraft2 versions that are NOT supported.
If you have problems with starting Wargus, most likely it's related to wrong
Warcraft2 data. Even if error messages are related to wrong/missing scripts.
The engine is tested and it does work.

%files
%doc README.md doc/*
%{_gamesbindir}/%{name}
#{_gamesbindir}/aleonas_tales
%{_bindir}/wartool
%{_bindir}/pudconvert
%{_gamesdatadir}/stratagus/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop
#{_datadir}/applications/aleonas_tales.desktop

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake
%make


%install
%makeinstall_std -C build

# Put the provided icon in the right place
mkdir -p %{buildroot}%{_iconsdir}/hicolor/64x64/apps
cp %{buildroot}%{_datadir}/pixmaps/%{name}.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/
# ...and resize it to have more sizes
for i in 16x16 22x22 32x32 36x36 48x48 128x128; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/apps
	convert %{buildroot}%{_datadir}/pixmaps/%{name}.png -scale $i %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{name}.png
done

# Fix .desktop file
desktop-file-edit	--set-key="Exec" --set-value="%{name}" \
					%{buildroot}%{_datadir}/applications/%{name}.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11355 |21cr|warpgui-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		warpgui
Version:	2.1
Release:	1
Summary:	GUI for Cloudflare (R) WARP
Group:		Networking/Other
License:	GPLv3
URL:		https://pkg.cloudflareclient.com/packages/cloudflare-warp
Source0:	https://github.com/AKotov-dev/warpgui/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	nftables
Requires:	zenity
Requires:	p7zip
Requires:	fping
Requires:	curl
# warp only for x86_64
ExclusiveArch:	%{x86_64}

%description
GUI for Cloudflare ™ WARP
URL: https://developers.cloudflare.com/warp-client/get-started/linux/

Since there are no cloudflare-warp packages for Mageia, warpgui packages already contain
/usr/bin/warp-cli and /usr/bin/warp-svc from the original Cloudflare ™ packages:
https://pkg.cloudflareclient.com/packages/cloudflare-warp

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/warp-update
%attr(0755,root,root) %{_bindir}/warp-update-pkexec
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/polkit-1/actions/warp-update.policy

#-------------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_userunitdir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions

cp all/usr/bin/* %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp -r ico %{buildroot}%{_datadir}/%{name}
cp all/usr/share/icons/warpgui.png %{buildroot}%{_datadir}/pixmaps/
cp all/usr/share/applications/warpgui.desktop %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/
cp all/usr/share/polkit-1/actions/warp-update.policy %{buildroot}%{_datadir}/polkit-1/actions

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11356 |21cr|warsow-2.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A fast-paced first-person-shooter game
Name:		warsow
Version:	2.1.2
Release:	4
License:	GPLv2+
Group:		Games/Shooter
Url:		http://www.warsow.net/
Source0:	https://warsow.net/warsow_21_sdk.tar.gz
Source1:	warsow.desktop
Source2:	warsow.png
Patch0:		warsow-gcc11.patch
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	stdc++-devel
BuildRequires:	stdc++-static-devel
BuildRequires:	cmake
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xi)
Requires:	%{name}-data >= 2.1
ExcludeArch:	%{armx}

%description
Warsow is a free standalone first person shooter game based on the Qfusion 3D
engine (a modification of the Quake 2 GPL engine), and aimed on the competitive
scene, or the e-sports community.

The base gameplay is focused around the art of movement; speed and tricks play
a big part in the gameplay. Besides this, mapcontrol, aim, teamplay and
fragging skills play their role too.

Another twist in gameplay is the weapon system. Warsow has two firing
modes for each weapon; by picking up a weapon, you will be equipped with the
standard (weak) ammo for the weapon, but when you pick up an ammo pack, you
will equip your weapon with special (strong) ammo. Weapons may have different
damage or slightly different behaviour depending on which ammo you use.

To keep the focus on competitive gaming, visibility is important in Warsow.
Cell-shaded, cartoon-like styles on the maps, textures, and models combine for
good visibility, suitable for competitive gameplay.

%files
%doc warsow_21_sdk/docs/*
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/*.desktop
%{_libdir}/games/%{name}/libs

#----------------------------------------------------------------

%package server
Summary:	Dedicated server for TurtleArena
Group:		Games/Shooter
Requires:	%{name}-data >= 2.1

%description server
Turtle Arena (working title) is a free and open source cross-platform 
third-person action game using a modified version of the ioquake3 engine.
Turtle Arena is currently focused on multiplayer (with multiple game modes) 
and can be played with human players over a network, splitscreen, or with AI 
players. In the future there will also be a single player / cooperative reach 
the end of the level mode with AI enemies.

This package contains the dedicated server for TurtleArena.

%files server
%{_gamesbindir}/%{name}-server
%{_gamesbindir}/%{name}-tv-server

#----------------------------------------------------------------

%prep
%setup -qcn warsow_21_sdk
%apply_patches

sed -i -e "/fs_basepath =/ s:\.:%{_libdir}/games/%{name}:" warsow_21_sdk/source/source/qcommon/files.c

%build
pushd warsow_21_sdk/source/source
mkdir -p cmake_build
cd cmake_build 
cmake -DQFUSION_GAME=Warsow .. 
make
popd

%install
pushd warsow_21_sdk/source/source/build
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{32x32,64x64,128x128,256x256}/apps
mkdir -p %{buildroot}%{_gamesbindir}
mkdir -p %{buildroot}%{_libdir}/games/%{name}/libs

install -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png
convert -scale 128x128 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
convert -scale 64x64 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
convert -scale 32x32 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

install -m 755 warsow.* %{buildroot}%{_gamesbindir}/%{name}
install -m 755 wsw_server.* %{buildroot}%{_gamesbindir}/%{name}-server
install -m 755 wswtv_server.* %{buildroot}%{_gamesbindir}/%{name}-tv-server

cp %{SOURCE1} %{buildroot}%{_datadir}/applications/

install -m 755 libs/*.so %{buildroot}%{_libdir}/games/%{name}/libs/
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11357 |21cr|warsow-data-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

Summary:	Data files for Warsow
Name:		warsow-data
Version:	2.1.2
Release:	1
# See license.txt in the warsow rpm
License:	Warsow Content License
Group:		Games/Shooter
Url:		http://www.warsow.net/
#http://www.warsow.net:1337/~warsow/%{version}/
Source0:	warsow_21_unified.tar.gz
BuildRequires:	fdupes
ExcludeArch:	%{armx}

%description
Data files (audio, maps, etc.) for Warsow.

%files
%doc docs/*
%{_libdir}/games/warsow/basewsw

#----------------------------------------------------------------------------

%prep
%setup -qn warsow_21
find . -type f -perm 0600 -exec chmod 644 {} \;
find . -type d -perm 0700 -exec chmod 755 {} \;

%build

%install
mkdir -p %{buildroot}%{_libdir}/games/warsow/
cp -ap basewsw %{buildroot}%{_libdir}/games/warsow/
fdupes %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11358 |21cr|warzone2100-4.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define	Werror_cflags %{nil}

Summary:	Postnuclear realtime strategy
Name:		warzone2100
Version:	4.5.1
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://wz2100.net/
Source0:	https://downloads.sourceforge.net/project/warzone2100/releases/%{version}/%{name}_src.tar.xz
Source1:	https://sourceforge.net/projects/warzone2100/files/warzone2100/Videos/higher-quality-en/sequences.wz
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	imagemagick
BuildRequires:	ninja
BuildRequires:	p7zip
BuildRequires:	patchelf
BuildRequires:	perl
BuildRequires:	zip
BuildRequires:	gettext-devel
BuildRequires:	miniupnpc-devel
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(OpenCL)
BuildRequires:	pkgconfig(physfs)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(Qt53DQuickInput)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{EVRD}
Requires:	fonts-ttf-dejavu
Recommends:	%{name}-videos = %{EVRD}

%description
Upon entering the game you land from your transport and establish your base.
Here you conduct research, design and manufacture vehicles, build new
structures and prepare your plans of global conquest. If the game goes badly
you'll end up fighting last ditch battles here to defend your base from
enemy attacks.
Combat is frenetic, with extensive graphical effects and damage to the terrain
and buildings giving rise to flying shrapnel and boulders. Within the game are
many different structures and vehicles. From an initial Command Centre, you
then go on to build Resource Extractors to provide fuel for Power Generators,
which in turn supply energy to Factories, Research Facilities and weapons
emplacements to protect your base.
Features:
 * 400+ technologies to research.
 * 2,000+ different units to design.
 * 3 large campaign maps to conquer.
 * 24 fast play mission maps for extra action.
 * Intelligence display sets objectives dynamically.
 * Interactive message system.
 * Fast play interface graphically based.
 * Quick screen navigation.
 * Fast find system for units & structures.
 * Set Factories to constant production.
 * Automatically send each factory's units to where you want them.
The Warzone 2100 ReDev Project aims to continue the vision of Pumpkin studios
started in 1999 with the game Warzone 2100, Which was closed source until
Dec 6, 2004 when it was let out the doors for the first time under a GPL
license.

%files -f %{name}.lang
%doc %{_defaultdocdir}/%{name}/*
%license COPYING*
%{_appdatadir}/net.wz2100.%{name}.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/*.png

#---------------------------------------------------------------------------

%package data
Summary:	Data files for Warzone 2100
Group:		Games/Strategy
Requires:	%{name} = %{version}
BuildArch:	noarch

%description data
Data files needed to play Warzone 2100.

%files data
%license COPYING
%{_gamesdatadir}/%{name}
%exclude %{_gamesdatadir}/%{name}/mp.wz
%exclude %{_gamesdatadir}/%{name}/sequences.wz

#---------------------------------------------------------------------------

%package videos
Summary:	Optional video files for Warzone 2100
Group:		Games/Strategy
Requires:	%{name} = %{version}
BuildArch:	noarch

%description videos
Optional video files for Warzone 2100.

%files videos
%license COPYING
%{_gamesdatadir}/%{name}/mp.wz
%{_gamesdatadir}/%{name}/sequences.wz

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%cmake	\
	-DBUILD_SHARED_LIBS=OFF				\
	-DCMAKE_BUILD_TYPE=Release			\
	-DCMAKE_INSTALL_BINDIR=%{_gamesbindir}		\
	-DCMAKE_INSTALL_LOCALEDIR=%{_datadir}/locale	\
	-DENABLE_DOCS=OFF				\
	-DWZ_DATADIR=%{_gamesdatadir}/%{name}		\
	-DWZ_DISTRIBUTOR="ROSA"				\
	-DWZ_DOWNLOAD_PREBUILT_PACKAGES=OFF		\
	-DWZ_ENABLE_WARNINGS_AS_ERRORS=OFF
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_bindir}
mv -f %{buildroot}%{_prefix}/games/%{name} %{buildroot}%{_bindir}/
rm -rf %{buildroot}%{_prefix}/games
install -m 0644 %{SOURCE1} %{buildroot}%{_gamesdatadir}/%{name}/

rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_libdir}

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11359 |21cr|watchdog-5.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Software watchdog
Name:		watchdog
Version:	5.16
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://sourceforge.net/projects/watchdog/
Source0:	http://downloads.sourceforge.net/watchdog/%{name}-%{version}.tar.gz
BuildRequires:	kernel-headers
BuildRequires:	pkgconfig(libtirpc)
Requires(post,postun):	rpm-helper

%description
Watchdog monitors various aspects of a machine to ensure that is has not
locked up.  In the event that a machine has locked up, watchdog will envoke
a reboot of the system.

%files
%defattr(0644,root,root,0755)
%doc AUTHORS ChangeLog NEWS README TODO README.watchdog.ipmi examples/
%attr(0755,root,root) %{_sbindir}/watchdog
%attr(0755,root,root) %{_sbindir}/wd_keepalive
%attr(0755,root,root) %{_sbindir}/wd_identify
%attr(0755,root,root) %{_initrddir}/watchdog
%{_mandir}/man5/watchdog.conf.5*
%{_mandir}/man8/watchdog.8*
%{_mandir}/man8/wd_identify.8*
%{_mandir}/man8/wd_keepalive.8*
%config(noreplace) %{_sysconfdir}/watchdog.conf
%config(noreplace) %{_sysconfdir}/sysconfig/watchdog

%post
%_post_service watchdog

%preun
%_preun_service watchdog

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make LIBS="-ltirpc"
mv README README.orig
iconv -f ISO-8859-1 -t UTF-8 < README.orig > README

%install
install -d -m0755 %{buildroot}%{_sysconfdir}
%makeinstall_std
install -Dp -m0644 redhat/sysconf.redhat %{buildroot}%{_sysconfdir}/sysconfig/watchdog
install -Dp -m0755 redhat/watchdog.init %{buildroot}%{_initrddir}/watchdog

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11360 |21cr|wattsup-0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		wattsup
Version:	0.1
Release:	4
License:	GPLv2
Group:		Monitoring
Summary:	Program for controlling the Watts Up? Pro Device
Source:		LinuxUtility.zip

%description
Program for controlling the Watts Up? Pro Device.

%prep
%setup -q -c
%{__rm} -f wattsup.bin

%build
%__cc %optflags -o wattsup wattsup.c

%clean
%{__rm} -Rf %{buildroot}

%install
%{__rm} -Rf %{buildroot}
%{__mkdir_p} %{buildroot}%{_bindir}
%{__cp} -p wattsup %{buildroot}%{_bindir}

%files
%defattr(-,root,root)
%doc utility.txt readme.txt
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11361 |21cr|wavbreaker-0.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gtk+ program to split WAV files between songs
Name:		wavbreaker
Version:	0.15
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://wavbreaker.sourceforge.io/
Source0:	https://github.com/thp/wavbreaker/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.22
BuildRequires:	pkgconfig(libmpg123)
Recommends:		moodbar

%description
This application's purpose in life is to take a wave file and break it up into
multiple wave files.  It makes a clean break at the correct position to burn
the files to an audio CD without any dead air between the tracks.

%files -f %{name}.lang
%doc AUTHORS CHANGELOG.md COPYING README.md
%{_bindir}/%{name}
%{_bindir}/wavgen
%{_bindir}/wavinfo
%{_bindir}/wavmerge
%{_datadir}/applications/net.sourceforge.%{name}.desktop
%{_datadir}/metainfo/net.sourceforge.%{name}.appdata.xml
%{_iconsdir}/hicolor/scalable/apps/net.sourceforge.%{name}.svg
%{_mandir}/man1/*.1*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%meson -Dmoodbar=true -Dmp3=true

%meson_build


%install
%meson_install
  
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11362 |21cr|wavemon-0.7.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wireless network devices monitoring application
Name:		wavemon
Version:	0.7.1
Release:	5
Source0:	http://eden-feed.erg.abdn.ac.uk/wavemon/stable-releases/%{name}-%{version}.tar.bz2
Patch0:		wavemon-0.7.1-debug.patch
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://eden-feed.erg.abdn.ac.uk/wavemon/
BuildRequires:	pkgconfig(ncurses)

%description
Wavemon is a wireless device monitoring application that allows you to watch
signal and noise levels, packet statistics, device configuration and network
parameters of your wireless network hardware. It has currently only been
tested with the Lucent Orinoco series of cards, although it *should* work 
(though with varying features) with all devices supported by the wireless 
kernel extensions by Jean Tourrilhes <jt@hpl.hp.com>.

%prep
%setup -q
%apply_patches

%build
autoreconf -fiv
%configure
%make

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}%{_mandir}/{man1,man5}

%makeinstall
rm %{buildroot}%{_datadir}/{AUTHORS,COPYING,ChangeLog,NEWS,README,THANKS}

%clean

%files
%{_bindir}/wavemon
%{_mandir}/man1/wavemon.1*
%{_mandir}/man5/wavemonrc.5*
%doc NEWS AUTHORS README THANKS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11363 |21cr|wavesurfer-1.8.8p5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	wsurfdir	%{_libdir}/tcl8.6/wsurf1.8

Summary:	Script-driven sound processing toolkit
Name:		wavesurfer
Version:	1.8.8p5
Release:	2
License:	MIT
Group:		Sound
Url:		http://www.speech.kth.se/wavesurfer/
Source0:	https://sourceforge.net/projects/wavesurfer/files/wavesurfer/%{version}/%{name}-%{version}-src.tgz
Patch0:		%{name}-1.8.8p5-remove-wish-version.patch
Source11:	%{name}16.png
Source12:	%{name}32.png
Source13:	%{name}48.png
Requires:	tcl
Requires:	tcl-snack >= 2.2
Requires:	tk >= 8.4.4
BuildArch:	noarch

%description
WaveSurfer is an Open Source tool for sound visualization and manipulation.
It has been designed to suit both novice and advanced users. WaveSurfer has
a simple and logical user interface that provides functionality in an
intuitive way and which can be adapted to different tasks. It can be used as a
stand-alone tool for a wide range of tasks in speech research and education.
Typical applications are speech/sound analysis and sound
annotation/transcription. WaveSurfer can also serve as a platform for more
advanced/specialized applications. This is accomplished either through
extending the WaveSurfer application with new custom plug-ins or by embedding
WaveSurfer visualization components in other applications.

%files
%doc doc/*.html LICENSE.txt README.txt 
%{_bindir}/%{name}
%{wsurfdir}/*.tcl
%{wsurfdir}/plugins/*.plug
%{wsurfdir}/msgs/*.msg
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/rosa-%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix perms
chmod -x README.txt
chmod +x src/wsurf/tkcon.tcl


%build
# Nothing to do


%install
# Prepare the needed dirs
mkdir -p %{buildroot}%{wsurfdir}/plugins
mkdir -p %{buildroot}%{wsurfdir}/msgs

# Install needed program files
cp src/wsurf/*.tcl %{buildroot}%{wsurfdir}

# Install the plugins
cp src/plugins/*.plug %{buildroot}%{wsurfdir}/plugins

# Install msg files
cp msgs/*.msg %{buildroot}%{wsurfdir}/msgs

# Install main executable
install -m755 src/app-wavesurfer/%{name}.tcl -D %{buildroot}/%{_bindir}/%{name}

# Provide a .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=WaveSurfer
Comment=Graphical sound editor
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Audio;Player;X-MandrivaLinux-Multimedia-Audio;AudioVideo;
EOF

# Install icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11364 |21cr|wavplay-2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	WAV file Play & Record applications
Name:		wavplay
Version:	2.0
Release:	3
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/wavplay/
Source:		https://sourceforge.net/projects/wavplay/files/Release%20Downloads/%{name}-%{version}.tar.gz
#Patch0:	wavplay-1.4-fix-compile.patch.bz2
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)

%description
The %{name} package contains:
wavplay - plays WAV format file to the audio device.
wavrec - samples the audio device and writes WAV file.
xltwavplay - a simple GUI, based on lesstif.

%files
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_bindir}/wavrec
%{_bindir}/%{name}-config
%{_bindir}/xltwavplay
%{_mandir}/man?/*

#-----------------------------------------------------------------------------

%prep
%setup -q
#patch0 -p1 -b .fix-compile


%build
%configure
%make


%install
%makeinstall_std

# Fix wrong man page placement
mkdir -p %{buildroot}%{_mandir}/man1/
mv %{buildroot}%{_datadir}/%{name}/%{name}.1 %{buildroot}%{_mandir}/man1/
rm -rf %{buildroot}%{_datadir}/%{name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11365 |21cr|waydroid-1.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _empty_manifest_terminate_build 0

Name:           waydroid
Version:        1.3.4
Release:        1
Summary:        Uses a container-based approach to boot a full Android system
License:        GPL-3.0-or-later
Group:          Emulators
URL:            https://github.com/waydroid/waydroid
Source0:        https://github.com/waydroid/waydroid/archive/refs/tags/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(libgbinder)
BuildRequires:  pkgconfig(libglibutil)
Requires:       nftables
Requires:       dnsmasq
Requires:       lxc
Requires:       python3dist(gbinder-python)
Requires:       python3-gobject3
Requires:       python3dist(pyclipper)
Requires:       libglibutil
Requires:       libgbinder
BuildArch:      noarch

Recommends:     wl-clipboard


%description
Waydroid uses Linux namespaces (user, pid, uts, net, mount, ipc) to run a full Android system
in a container and provide Android applications on any GNU/Linux-based platform.
The Android system inside the container has direct access to any needed hardware.
The Android runtime environment ships with a minimal customized Android system image based on LineageOS.
The image is currently based on Android 10.

%prep
%autosetup -p1

%build
# Nothing to build, just run make install

%install
%make_install SYSD_DIR=%{_unitdir}

%post
%_post_service waydroid-container

%preun
%_preun_service waydroid-container

%files
%{_bindir}/waydroid
# No idea if /usr/lib/ is correct path. Make file force it and it is used also by other distros like fedora, suse or mga. No one change to %{_libdir}
%{_unitdir}/waydroid-container.service
%{_prefix}/lib/waydroid/
%{_datadir}/applications/Waydroid.desktop
%{_datadir}/applications/waydroid.market.desktop
%{_datadir}/metainfo/id.waydro.waydroid.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11366 |21cr|wayland-utils-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wayland utilities
Name:		wayland-utils
Version:	1.1.0
Release:	1
Group:		System/Libraries
License:	MIT
URL:	    https://wayland.freedesktop.org/
Source0:	https://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-protocols) >= 1.17
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:  pkgconfig(libdrm)

%description
wayland-utils contains wayland-info, a standalone version of weston-info,
a utility for displaying information about the Wayland protocols supported
by the Wayland compositor.
wayland-info also provides additional information for a subset of Wayland
protocols it knows about, namely Linux DMABUF, presentation time, tablet and
XDG output protocols.

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%files
%license COPYING
%doc README.md
%{_bindir}/wayland-info
%doc %{_mandir}/man1/wayland-info.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11367 |21cr|wcslib-7.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  major         7
%define  libname       %mklibname wcs %{major}
%define  libname_virt  libwcs
%define  develname     %mklibname wcs -d

Name:    wcslib
Version:	7.12
Release:	1
Summary: An implementation of the FITS World Coordinate System standard
Group:   Sciences/Astronomy
License: LGPLv3+
Url:     http://www.atnf.csiro.au/people/mcalabre/WCS/
Source0: ftp://ftp.atnf.csiro.au/pub/software/wcslib/%{name}-%{version}.tar.bz2

BuildRequires: flex
BuildRequires: pkgconfig(cfitsio)
BuildRequires: pkgconfig(zlib)

%description
WCSLIB is a library that implements the "World Coordinate System" (WCS)
convention in FITS (Flexible Image Transport System).
#---------------------------------------------------

%package -n %{libname}
Summary: An implementation of the FITS World Coordinate System standard
Group: Sciences/Astronomy
License: LGPLv3+
Provides: wcslib = %{EVRD}

%description -n %{libname}
WCSLIB is a library that implements the "World Coordinate System" (WCS)
convention in FITS (Flexible Image Transport System).

%files -n %{libname}
%doc COPYING.LESSER README
%{_libdir}/*.so.%{major}{,.*}

#---------------------------------------------------

%package -n %{develname}
Summary: Libraries, includes, etc. used to develop an application with %{name}
Group: Sciences/Astronomy
License: LGPLv3+
Requires: wcslib = %{EVRD}
Provides: wcslib-devel = %{EVRD}

%description -n %{develname}
These are the files needed to develop an application using %{name}.

%files -n %{develname}
%doc COPYING.LESSER html wcslib.pdf
%{_libdir}/*.so
%{_libdir}/pkgconfig/wcslib.pc
%{_includedir}/wcslib
%{_includedir}/wcslib-%{version}

#---------------------------------------------------
%package utils
Summary: Utility programs provided by %{name}
Group: Sciences/Astronomy
License: GPLv3+
Requires: wcslib = %{EVRD}

%description utils
Utils provided with %{name}.


%files utils
%doc COPYING
%{_bindir}/*
%{_mandir}/man1/*

#---------------------------------------------------

%prep
%setup -q

%build
%configure --without-pgplot \
    --disable-fortran
make

%install
%makeinstall_std

# fix permissions
rm -rf %{buildroot}/usr/share/doc/wcslib-%{version}
chmod 755 %{buildroot}%{_includedir}/wcslib-%{version}
find %{buildroot} -name '*.a' -delete

%check
make check



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11368 |21cr|wdiff-1.2.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Word-based diff front end
Name:		wdiff
Version:	1.2.2
Release:	6
URL:		http://www.gnu.org/software/wdiff/wdiff.html
Source0:	ftp://ftp.gnu.org/pub/gnu/wdiff/%{name}-%{version}.tar.gz
License:	GPLv2+
Group:		Text tools
BuildRequires:	help2man
BuildRequires:	texinfo
BuildRequires:	termcap-devel

%description
GNU wdiff is a front-end to GNU diff.  It compares two files, finding
which words have been deleted or added to the first in order to create
the second.  It has many output formats and interacts well with
terminals and pagers (notably with less).  GNU wdiff is particularly
useful when two texts differ only by a few words and paragraphs have
been refilled.


%prep
%setup -q

%build
%configure
%make

%install
rm -rf %{buildroot} *.lang
%makeinstall
%find_lang %{name}
%find_lang %{name}-gnulib
cat %{name}-gnulib.lang >> %{name}.lang



%files -f %{name}.lang
%doc README NEWS THANKS TODO COPYING ChangeLog BACKLOG
%{_bindir}/wdiff
%{_mandir}/man1/wdiff.1*
%{_infodir}/wdiff.info*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11369 |21cr|wdsize-0.99.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Name:           wdsize
Version:        0.99.1
Release:        3
Summary:        Work directory size calculator

Group:          File tools
License:        MIT
Url:		https://github.com/Enthymem/wdsize
Source0:        https://github.com/Enthymem/wdsize/archive/%{version}.tar.gz

BuildRequires: glibc-devel
BuildRequires: gcc
BuildRequires: make

%description
Rewrite in C of an example found in the BashPrompt-Howto, meant for
anyone who could want a fancy, coloured number in their terminal prompt,
representing the size of the files in the current directory.

%prep
%setup -q

%build
%make CFLAGS='%{optflags}' PREFIX=%{_prefix}


%install
%makeinstall DESTDIR=%{buildroot} PREFIX=%{_prefix}


%files
%doc README LICENSE
%config(noreplace) %{_sysconfdir}/wdsize/wdsize.colors
%{_bindir}/wdsize
%{_bindir}/wdstat
%{_datadir}/wdsize
%{_mandir}/man1/wdsize*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11370 |21cr|weatherman-1.2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           weatherman
Version:        1.2.2
Release:        3
Summary:        Quick access to current weather conditions and forecasts
License:        BSD
Group:          Networking/Other
URL:            http://darkhorse.nu/weatherman/
Source0:        http://darkhorse.nu/weatherman/weatherman-1.2.2.tar.gz
BuildArch:      noarch
Requires:       curl


%description
Weatherman displays weather information from weatherbug.com 
on the command line. 
It is written entirely in bash and will 
run on most UNIX/Linux systems.

%prep
%setup -q
chmod -x CHANGES LICENSE

%build
# nothig to build

%install
#bin 
install -Dm755 weatherman %{buildroot}%{_bindir}/weatherman
# man
install -Dm644 weatherman.1.gz %{buildroot}%{_mandir}/man1/weatherman.1.gz

%files
%doc CHANGES LICENSE
%{_bindir}/*
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11371 |21cr|weather-utils-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname weather

Summary:		quick access to current weather conditions and forecasts
Name:			weather-utils
Version:		2.4
Release:		1
License:		BSD
Group:			Networking/Other
Url:			http://fungi.yuggoth.org/weather/
Source0:		http://fungi.yuggoth.org/weather/src/%{oname}-%{version}.tar.xz
Source1:		stations.txt
Source2:		README.install.urpmi
Patch0:         weather-2.4-rosa_config.patch
Requires:		python3

BuildArch:		noarch

%description
This command-line utility is intended to provide quick access to current
weather conditions and forecasts. Presently, it is capable of returning data
for localities throughout the USA by retrieving and formatting decoded METARs
(Meteorological Aerodrome Reports) from NOAA (the USA National Oceanic and
Atmospheric Administration) and forecasts from NWS (the USA National Weather
Service). The tool is written to function in the same spirit as other
command-line informational utilities like cal(1), calendar(1) and dict(1). It
can retrieve arbitrary weather data via specific command-line switches (station
ID, city, state), or aliases can be configured system wide and on a per-user
basis. It can be freely used and redistributed under the terms of a BSD-like
License.

%files
%doc FAQ LICENSE README
%{_bindir}/weather
%{_mandir}/man*/%{oname}/
%{_datadir}/%{oname}
%{py3_puresitedir}/
%config(noreplace) %{_sysconfdir}/%{oname}/weatherrc
#-----------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
# nothing to build.

%install
#bin 
install -d -m755 %{buildroot}%{_bindir}
install -m 755 weather %{buildroot}%{_bindir}/

#libs
install -d -m755 %{buildroot}%{py3_puresitedir}
install -m 755 weather.py %{buildroot}%{py3_puresitedir}/

#config
mkdir -p %{buildroot}%{_sysconfdir}/%{oname}
cp -dR weatherrc %{buildroot}%{_sysconfdir}/%{oname}

#data
mkdir -p %{buildroot}%{_datadir}/%{oname}
cp -R %{SOURCE1} %{buildroot}%{_datadir}/%{oname}
cp -R %{SOURCE2} %{buildroot}%{_datadir}/%{oname}
cp -R 2019_Gaz_counties_national.zip %{buildroot}%{_datadir}/%{oname}
cp -R airports %{buildroot}%{_datadir}/%{oname}
cp -R nsd_cccc.txt %{buildroot}%{_datadir}/%{oname}
cp -R 2019_Gaz_cousubs_national.zip %{buildroot}%{_datadir}/%{oname}
cp -R airports.csv %{buildroot}%{_datadir}/%{oname}
cp -R zctas %{buildroot}%{_datadir}/%{oname}
cp -R 2019_Gaz_place_national.zip %{buildroot}%{_datadir}/%{oname}
cp -R bp03mr20.dbx %{buildroot}%{_datadir}/%{oname}
cp -R slist %{buildroot}%{_datadir}/%{oname}
cp -R zlist %{buildroot}%{_datadir}/%{oname}
cp -R 2019_Gaz_zcta_national.zip %{buildroot}%{_datadir}/%{oname}
cp -R coop-stations.txt %{buildroot}%{_datadir}/%{oname}
cp -R places %{buildroot}%{_datadir}/%{oname}
cp -R stations %{buildroot}%{_datadir}/%{oname}
cp -R zones %{buildroot}%{_datadir}/%{oname}


#man
mkdir -p %{buildroot}%{_mandir}/{man1,man5}/%{oname}
install weather.1 %{buildroot}%{_mandir}/man1/%{oname}
install weatherrc.5 %{buildroot}%{_mandir}/man5/%{oname}

rm -fr %{buildroot}%{py3_puresitedir}/__pycache__

%post
# romanian
cat %{_datadir}/%{oname}/README.install.urpmi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11372 |21cr|weave-sync-1.0-0.20100308.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot    69faab92136d

Name:		weave-sync
Version:	1.0
Release:	0.20100308.7
Summary:	Firefox synchronisation service
License:	GPL
Group:		Networking/WWW
URL:		https://wiki.mozilla.org/Labs/Weave/Sync/1.0/Setup
Source0:    weaveserver-sync-%{snapshot}.tar.bz2
Source1:    weave.sql
Requires:	apache-mod_php
BuildArch:	noarch

%description
Weave is a Mozilla Labs project to integrate web services into Firefox by
allowing users to securely share their data with other instances of their own
software, other users and 3rd parties. The Weave project includes a Firefox
add-on, a server component, and data sharing APIs.

The first service under the Weave umbrella is the synchronization service. The
Weave Sync 1.0 add-on lets you securely take your Firefox experience with you
to all your Firefox browsers. Mozilla operates a hosted server, and the source
code for the server is open so that any user may operate their own server if
they wish. The synchronization product keeps bookmarks, history, form data,
passwords, tabs, and user preferences, and provides an API to allow add-on
developers to synchronize their data as well.

%prep
%setup -q -n weaveserver-sync-%{snapshot}
cp %{SOURCE1} .

%build

%install
rm -rf %{buildroot}

install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -pr 1.0 %{buildroot}%{_datadir}/%{name}

install -d -m 755 %{buildroot}%{_sysconfdir}
mv  %{buildroot}%{_datadir}/%{name}/1.0/default_constants.php.dist \
    %{buildroot}%{_sysconfdir}/%{name}.conf
pushd  %{buildroot}%{_datadir}/%{name}/1.0
ln -s ../../../..%{_sysconfdir}/%{name}.conf default_constants.php
popd

# apache configuration
install -d -m 755 %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/%{name}.conf <<EOF

Alias /weave/1.0 %{_datadir}/%{name}/1.0/index.php
Alias /weave %{_datadir}/%{name}

<Directory %{_datadir}/%{name}>
    Options Indexes FollowSymLinks
    Require all granted
</Directory>
EOF

%clean
rm -rf %{buildroot}



%files
%defattr(-,root,root)
%doc README weave.sql
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11373 |21cr|web-assets-5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#disable the httpd stuff while we're waiting on getting the path issues
#cleared up
%global enable_httpd 1

Name:           web-assets
Version:        5
Release:        8
Summary:        A simple framework for bits pushed to browsers
BuildArch:      noarch
Group:		Development/Other
License:        MIT
URL:            https://fedoraproject.org/wiki/User:Patches/PackagingDrafts/Web_Assets

Source1:        LICENSE
Source2:        macros.web-assets
Source3:        web-assets.conf
Source4:        README.devel

%description
%{summary}.

%package filesystem
Summary:        The basic directory layout for Web Assets
#there's nothing copyrightable about a few directories and symlinks
License:        Public Domain

%description filesystem
%{summary}.

%package devel
Summary:        RPM macros for Web Assets packaging
License:        MIT
Requires:       web-assets-filesystem = %{version}-%{release}

%description devel
%{summary}.

%if 0%{?enable_httpd}
%package httpd
Summary:        Web Assets aliases for the Apache HTTP daemon
License:        MIT
Requires:       web-assets-filesystem = %{version}-%{release}
Requires:       apache
Requires(post): systemd
Requires(postun): systemd

%description httpd
%{summary}.
%endif

%prep
%setup -c -T
cp %{SOURCE1} LICENSE
cp %{SOURCE4} README.devel

%build
#nothing to do

%install
mkdir -p %{buildroot}%{_datadir}/web-assets
mkdir -p %{buildroot}%{_datadir}/javascript

ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/javascript
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/js
ln -sf ../fonts %{buildroot}%{_datadir}/web-assets/fonts

#install macros uneversal rpm4 and rpm5
%install_macro %{name} %{SOURCE2}

%if 0%{?enable_httpd}
install -Dpm0644 %{SOURCE3} %{buildroot}%{_webappconfdir}/web-assets.conf

%post httpd
systemctl reload-or-try-restart httpd.service || :

%postun httpd
systemctl reload-or-try-restart httpd.service || :
%endif

%files filesystem
%{_datadir}/web-assets
%{_datadir}/javascript

%files devel
%{_rpmmacrodir}/*%{name}*
%doc LICENSE README.devel

%if 0%{?enable_httpd}
%files httpd
%config(noreplace) %{_webappconfdir}/web-assets.conf
%doc LICENSE
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11374 |21cr|webcamoid-9.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude_from ^%{_libdir}/avkys

%define major 9
%define libname %mklibname avkys %{major}
%define devname %mklibname avkys -d

Summary:	Full featured and multiplatform webcam suite
Name:		webcamoid
Version:	9.0.0
Release:	1
License:	GPLv3
Group:		Video
Url:		https://github.com/webcamoid/webcamoid
Source0:	https://github.com/webcamoid/webcamoid/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)

%description
Full featured and multiplatform webcam suite.

%files
%doc README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_libdir}/avkys
%{_mandir}/%{name}.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Webcamoid library
Group:		System/Libraries

%description -n %{libname}
Webcamoid library.

%files -n %{libname}
%{_libdir}/libavkys.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for webcamoid
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for webcamoid.

%files -n %{devname}
%doc README.md
%license COPYING
%{_libdir}/libavkys.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11375 |21cr|webcore-fonts-4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Collection of minimum popular high quality TrueType fonts
Name:		webcore-fonts
Version:	4.0
Release:	3
License:	Microsoft
Group:		System/Fonts/True type
Url:		https://sourceforge.net/projects/corefonts/files/the%20fonts/final/
Source0:	andale32.exe
Source1:	arial32.exe
Source2:	arialb32.exe
Source3:	comic32.exe
Source4:	courie32.exe
Source5:	georgi32.exe
Source6:	impact32.exe
Source7:	times32.exe
Source8:	trebuc32.exe
Source9:	verdan32.exe
Source10:	wd97vwr32.exe
Source11:	webdin32.exe
Source20:	LICENSE
Source21:	webcore-fonts-install
Requires(post):	cabextract
Requires(post):	mkfontdir
Requires(post):	ttmkfdir
BuildArch:	noarch

%description
Collection of high quality TrueType fonts, default in any MS Windows
installation. These are also the main webfonts as specified in
microsoft.com/typography

The fonts:
Andale Mono, Arial, Arial Black, Comic, Courier New, Georgia, Impact,
Lucida Sans, Lucida Console, Microsoft Sans Serif, Symbol, Tahoma,
Times New Roman, Trebuchet, Verdana, Webdings, Wingdings, Wingding 2,
Wingding 3.

%files
%doc LICENSE
%{_bindir}/webcore-fonts-install
%{_datadir}/fonts/webcore
%{_datadir}/fonts/webcore-distrib

%post
{
	%{_bindir}/webcore-fonts-install
	# Use regular open standards methods...
	ttmkfdir -d %{_datadir}/fonts/webcore -o %{_datadir}/fonts/webcore/fonts.scale
	umask 133
	mkfontdir %{_datadir}/fonts/webcore
	[ -x %{_bindir}/fc-cache ] && %{_bindir}//fc-cache
} &> /dev/null || :

%preun
{
	if [ "$1" = "0" ]; then
		cd %{_datadir}/fonts/webcore
		rm -f fonts.dir fonts.scale fonts.cache* *.ttf *.TTF
	fi
} &> /dev/null || :

%postun
{
	[ -x %{_bindir}/fc-cache ] && %{_bindir}/fc-cache
} &> /dev/null || :

#----------------------------------------------------------------------------

%prep
%setup -qc -T
cp %{SOURCE20} .

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/webcore
mkdir -p %{buildroot}%{_datadir}/fonts/webcore-distrib
cp %{SOURCE0} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE1} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE2} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE3} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE4} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE5} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE6} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE7} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE8} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE9} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE10} %{buildroot}%{_datadir}/fonts/webcore-distrib/
cp %{SOURCE11} %{buildroot}%{_datadir}/fonts/webcore-distrib/

mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE21} %{buildroot}%{_bindir}/webcore-fonts-install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11376 |21cr|webgrep-2.12-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Web page search utilities
Name: webgrep
Version: 2.12
Release: 8
License: GPL
Group: Development/Other
Source: %{name}-%{version}.tar.bz2
Patch: %{name}-makefile.patch.bz2
URL: http://www.linuxfocus.org/~guido/
Buildroot: %{_tmppath}/%{name}-buildroot

%description
webgrep is a set of search utilities for web-masters. This package includes
7 utilities:

srcgrep is a utility to search for the IMG/SRC-tag or the BODY/BACKGROUND-tag 
in web-pages and display the path to the referenced images in a nice readable 
way.

hrefgrep is a search utility for the <... href=...> tag.

webfgrep is a poor man's web search engine. A script (e.g perl) must still
be written to do the cgi-bin. webfgrep is good for website up to 1 Mb of 
html. A small cgi-bin called websearch comes with this package. It is written
in perl and you can adapt it to your web-site.
webfgrep is basically just an exteremly fast fgrep program that leaves out
the html tags.

blnkcheck is a program to check for broken links on the server.
This is probably the most powerful program in this toolkit.

httpcheck is a post processor for blnkcheck and is written in perl. It can
be used to check also absolute http links in web-pages.

lshtmlref is a program to build tar archives from a given list of web-pages.
It helps you to include all GIFs, text files, etc.. in the archives.

taggrep is a program to grep for html tags. E.g search for meta tags or
list the title of a number of web pages.

%prep
rm -rf $RPM_BUILD_ROOT

%setup

%patch 

%build
%make  CFLAGS="$RPM_OPT_FLAGS"

%install
make DESTDIR=$RPM_BUILD_ROOT install


%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%doc README cgi-bin
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11377 |21cr|webkit-2.4.11-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

#
# BEFORE UPDATING THIS PACKAGE, YOU _MUST_ DO THE FOLLOWING:
# - DO A LOCAL BUILD
# - INSTALL IT IN A TEST MACHINE
# - CHECK THAT 'display_help http://google.com' STILL WORK (INCLUDING CLOSING IT)
# - CHECK THAT MCC STILL RUNS
#

%bcond_with clang

%define oname		webkitgtk
%define lib3ver		3.0
%define major3		0
%define major2		25
%define lib3name	%mklibname webkitgtk %{lib3ver} %{major3}
%define devname3	%mklibname webkitgtk %{lib3ver} -d
%define girname3	%mklibname %{name}-gir %{lib3ver}
%define girname2	%mklibname %{name}2-gir %{lib3ver}
%define girname2extension %mklibname %{name}2webextension-gir %{lib3ver}
%define libwebkit2	%mklibname webkit2gtk %{lib3ver} %{major2}
%define girjscore3	%mklibname jscore-gir %{lib3ver}
%define libjavascriptcoregtk3	%mklibname javascriptcoregtk %{lib3ver} %{major3}

%define pango	0
%if %{pango}
%define fontreq		pkgconfig(pango)
%define fontback	pango
%else
%define fontreq		pkgconfig(fontconfig) >= 1.0.0
%define fontback	freetype
%endif

# Reduce memory usage on 32 bit archs
%if %{__isa_bits} < 64
%global debugcflags %{nil}
%define debug_package %{nil}
%global ldflags %{ldflags} -fuse-ld=bfd
%global ldflags %{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
%endif

# For 1C
# https://bugzilla.altlinux.org/show_bug.cgi?id=36998#c28
%global optflags %{optflags} -fno-delete-null-pointer-checks

# Workaround problems with modern compilers
%global optflags %{optflags} -Wno-expansion-to-defined -Wno-strict-aliasing -Wno-deprecated-declarations -Wno-implicit-fallthrough

# From NetBSD pkgsrc
%if %{with clang}
# clang specific flags
%global optflags %{optflags} -Wno-c++11-narrowing -Wno-bad-function-cast -Wno-class-varargs
%else
# gcc specific flags
%global optflags %{optflags} -Wno-cast-function-type -Wno-class-memaccess
%endif

Summary:	Web browser engine
Name:		webkit
Version:	2.4.11
Release:	9
Epoch:		1
License:	BSD and LGPLv2+
Group:		System/Libraries
Url:		http://www.webkitgtk.org
Source0:	http://www.webkitgtk.org/releases/%{oname}-%{version}.tar.xz
Patch0:		webkitgtk-2.4.11-gtk-doc-check-not-called.patch
Patch1:		patch-Source_JavaScriptCore_API_JSStringRef_cpp.patch
Patch2:		webkitgtk-2.1.92-gtk-includes.patch
# (blino) needed for first-time wizard (display_help) to be able to close its window with javascript
Patch3:		webkit-2.1.90-allowScriptsToCloseWindows.patch
Patch4:		enchant2.patch
Patch5:		icu59.patch
Patch6:		missing-dirs-webkit-bug-161808.patch
Patch7:		aarch64_cache_flush.patch
Patch8:		grammar.patch
Patch9:		webkit-icu68.patch
Patch10:	webkit-volatile.patch
Patch11:	webkitgtk-2.4.9-abs.patch
Patch12:	webkit-gobject.patch
Patch13:	webkit-glib-2.68.0.patch
Patch14:	webkit-2.3.90-link.patch
Patch15:	webkitgtk-aarch64.patch
# from Alt Linux
Patch16:	webkitgtk-2.1.92-alt-gtk2_compatibility.patch
Patch17:	webkitgtk-2.4.11-alt-SoupSession.patch
Patch18:	webkitgtk-x86-assembler-fix.patch

BuildRequires:	bison
%if %{with clang}
BuildRequires:	clang
%endif
BuildRequires:	flex
BuildRequires:	gperf
BuildRequires:	gtk-doc
BuildRequires:	libtool
BuildRequires:	%{fontreq}
BuildRequires:	icu-devel >= 49
BuildRequires:	jpeg-devel
BuildRequires:	libstdc++-devel
BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(gail)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl) >= 7.11.0
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0) >= 2.2.0
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.29.90
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
BuildRequires:	chrpath

%description
WebKit is an open source web browser engine.

#----------------------------------------------------------------------------

%package -n %{name}%{lib3ver}
Summary:	GTK+3 port of WebKit web browser engine - shared files
Group:		Development/GNOME and GTK+
Requires:	%{lib3name} = %{EVRD}
Conflicts:	%{lib3name} < 1:1.4.1-5
Conflicts:	%{name} < 1:1.4.1-6
%rename %{name}3

%description -n %{name}%{lib3ver}
WebKit is an open source web browser engine.
This package contains the shared files used by %{name}%{lib3ver}

%files -n %{name}%{lib3ver} -f WebKitGTK-3.0.lang
%dir %{_datadir}/webkitgtk-3.0
%{_datadir}/webkitgtk-3.0/images
%{_datadir}/webkitgtk-3.0/resources

#----------------------------------------------------------------------------

%package -n %{lib3name}
Summary:	GTK+3 port of WebKit web browser engine
Group:		System/Libraries
Obsoletes:	webkit%{lib3ver}-webinspector < %{EVRD}

%description -n %{lib3name}
The GTK+3 port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{lib3name}
%{_libdir}/lib%{name}gtk-%{lib3ver}.so.%{major3}*

#----------------------------------------------------------------------------

%package -n %{libjavascriptcoregtk3}
Summary:	GTK+3 port of WebKit web browser engine
Group:		System/Libraries
Obsoletes:	%{_lib}javascriptcoregtk3.0 < %{EVRD}
# satisfy some broken deps of other subpackages
Provides:	javascriptcoregtk-%{lib3ver}%{_arch_tag_suffix} = %{EVRD}

%description -n %{libjavascriptcoregtk3}
The GTK+3 port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{libjavascriptcoregtk3}
%{_libdir}/libjavascriptcoregtk-%{lib3ver}.so.%{major3}*

#----------------------------------------------------------------------------

%package -n %{devname3}
Summary:	Development files for WebKit GTK+3 port
Group:		Development/GNOME and GTK+
Provides:	webkitgtk3-devel = %{EVRD}
Provides:	libwebkitgtk3-devel = %{EVRD}
Requires:	%{lib3name} = %{EVRD}
Requires:	%{libwebkit2} = %{EVRD}
Requires:	%{libjavascriptcoregtk3} = %{EVRD}
Requires:	%{girjscore3} = %{EVRD}
Requires:	%{girname3} = %{EVRD}
Requires:	%{girname2} = %{EVRD}
Requires:       %{girname2extension} = %{EVRD}

%description -n %{devname3}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+ UI toolkit on platforms like
Linux. This package contains development headers.

%files -n %{devname3}
%{_libdir}/lib%{name}gtk-%{lib3ver}.so
%{_libdir}/libjavascriptcoregtk-%{lib3ver}.so
%{_libdir}/libwebkit2gtk-%{lib3ver}.so
%{_includedir}/%{name}gtk-%{lib3ver}
%{_libdir}/pkgconfig/%{name}gtk-%{lib3ver}.pc
%{_libdir}/pkgconfig/javascriptcoregtk-%{lib3ver}.pc
%{_libdir}/pkgconfig/%{name}2gtk-%{lib3ver}.pc
%{_libdir}/pkgconfig/%{name}2gtk-web-extension-%{lib3ver}.pc
%{_datadir}/gir-1.0/JavaScriptCore-%{lib3ver}.gir
%{_datadir}/gir-1.0/WebKit-%{lib3ver}.gir
%{_datadir}/gir-1.0/WebKit2-%{lib3ver}.gir
%{_datadir}/gir-1.0/WebKit2WebExtension-%{lib3ver}.gir
%{_datadir}/gtk-doc/html/webkitgtk3/*
%{_datadir}/gtk-doc/html/webkit2gtk/*
%{_datadir}/gtk-doc/html/webkitdomgtk/*

#----------------------------------------------------------------------------

%package -n webkit3-gtklauncher
Summary:	WebKit GTK+3 example application
Group:		Development/GNOME and GTK+

%description -n webkit3-gtklauncher
GtkLauncher is an example application for WebKit GTK+3.

%files -n webkit3-gtklauncher
%{_libdir}/%{name}3/GtkLauncher

#----------------------------------------------------------------------------

%package -n webkit3-jsc
Summary:	JavaScriptCore shell for WebKit GTK+3
Group:		Development/GNOME and GTK+

%description -n webkit3-jsc
jsc is a shell for JavaScriptCore, WebKit's JavaScript engine. It
allows you to interact with the JavaScript engine directly.

%files -n webkit3-jsc
%{_bindir}/jsc-3

#----------------------------------------------------------------------------

%package -n %{girjscore3}
Summary:	GObject Introspection interface description for JSCore
Group:		System/Libraries
Conflicts:	%{libjavascriptcoregtk3} < %{epoch}:1.5.2-2

%description -n %{girjscore3}
GObject Introspection interface description for JSCore.

%files -n %{girjscore3}
%{_libdir}/girepository-1.0/JavaScriptCore-%{lib3ver}.typelib

#----------------------------------------------------------------------------

%package -n %{girname3}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Conflicts:	%{lib3name} < %{epoch}:1.5.2-2

%description -n %{girname3}
GObject Introspection interface description for WebKit.

%files -n %{girname3}
%{_libdir}/girepository-1.0/WebKit-%{lib3ver}.typelib

#----------------------------------------------------------------------------

%package -n %{girname2}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libwebkit2} = %{EVRD}

%description -n %{girname2}
GObject Introspection interface description for WebKit2.

%files -n %{girname2}
%{_libdir}/girepository-1.0/WebKit2-%{lib3ver}.typelib

#----------------------------------------------------------------------------

%package -n %{girname2extension}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}webkit2webextension3.0 < 1:2.4.1-2

%description -n %{girname2extension}
GObject Introspection interface description for WebKit2.

%files -n %{girname2extension}
%{_libdir}/girepository-1.0/WebKit2WebExtension-%{lib3ver}.typelib

#----------------------------------------------------------------------------

%package -n %{libwebkit2}
Summary:	GTK+3 port of WebKit2 web browser engine
Group:		System/Libraries
Requires:	%{name}3.0 = %{EVRD}
Requires:	%{name}2gtk = %{EVRD}
Provides:	libwebkit2gtk3 = %{EVRD}

%description -n %{libwebkit2}
The GTK+3 port of WebKit2 is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{libwebkit2}
%{_libdir}/lib%{name}2gtk-%{lib3ver}.so.%{major2}*

#----------------------------------------------------------------------------

%package -n %{name}2gtk
Summary:	GTK+3 port of WebKit2 web browser engine - shared files
Group:		System/Libraries

%description -n %{name}2gtk
WebKit is an open source web browser engine.
This package contains the shared files used by %{name}2gtk%{lib3ver}.

%files -n %{name}2gtk
%dir %{_libdir}/webkit2gtk-%{lib3ver}
%dir %{_libdir}/webkit2gtk-%{lib3ver}/injected-bundle
%{_libdir}/webkit2gtk-%{lib3ver}/injected-bundle/libwebkit2gtkinjectedbundle.so
%{_libexecdir}/WebKitNetworkProcess
%{_libexecdir}/WebKitPluginProcess
%{_libexecdir}/WebKitWebProcess

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%autopatch -p1

%if %{mdvver} < 201910
%patch5 -p1 -R
%patch8 -p1 -R
%endif

%build

autoreconf -f -i
%configure \
	--enable-dependency-tracking \
	--with-gtk=3.0 \
	--enable-webkit2 \
%ifarch %{ix86} x86_64
	--enable-jit \
%else
	--disable-jit \
%endif
	--enable-video \
	--enable-introspection

%make_build

%install
%make_install

mkdir -p %{buildroot}%{_libdir}/%{name}3
install -m 755 Programs/GtkLauncher %{buildroot}%{_libdir}/%{name}3

# only useful for testing, should not be installed system-wide.
# reported upstream as 22812 - AdamW 2008/12
rm -rf %{buildroot}%{_libdir}/libtestnetscapeplugin.*

# Remove lib64 rpaths
chrpath --delete %{buildroot}%{_bindir}/jsc-3
chrpath --delete %{buildroot}%{_libdir}/libwebkitgtk-3.0.so
chrpath --delete %{buildroot}%{_libdir}/%{name}3/GtkLauncher

# Rename to avoid file conflicts with webkitgtk2
mv %{buildroot}%{_datadir}/gtk-doc/html/webkitgtk %{buildroot}%{_datadir}/gtk-doc/html/webkitgtk3

%find_lang WebKitGTK-3.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11378 |21cr|webmake-2.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	HTML-WebMake

Name: 	 	webmake
Summary: 	Content management and web templating system

Version: 	2.4
Release: 	12

Source0:	%{module}-%{version}.tar.bz2
URL:		http://webmake.taint.org/
License:	GPL
Group:		Networking/WWW
BuildRequires:	perl-devel
Requires:	perl-IO-String perl-Image-Size perl-Text-EtText
Requires:	perl-DB_File perl-HTML-Parser
Provides:	perl(HTML::WebMake::PerlCodeLibrary)
BuildArch:	noarch

%description
WebMake is a simple content management system, based around a templating
system for HTML documents and an emphasis on page generation.

What makes it different from the many other templating engines out there,
is that it's been designed to have lots of built-in smarts about what a
"typical" informational website needs in the way of functionality: metadata
support, dynamic index generation from metadata, automatically-generated
sitemaps and navigational aids, user-defined tags, and support for non-HTML
input and output -- and, of course, embedded Perl code. ;)

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make
										
%install
%makeinstall_std
mkdir -p %{buildroot}/%{_datadir}/vim/syntax
cp *.vim %{buildroot}/%{_datadir}/vim/syntax
cd %{buildroot}
rm -fr `find -name 'perllocal.pod'`

%clean

%files
%doc README Changes LICENSE TODO *.cgi doc
%{_bindir}/%{name}
%{_bindir}/%{name}_cvs_import
%{_mandir}/man1/*
%{_mandir}/man3*/*
%{perl_vendorlib}/HTML/WebMake*
%{_datadir}/vim/syntax/%{name}.vim

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11379 |21cr|webmin-theme-lynx-0.02-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define webmin_rootdir	%{_datadir}/webmin

Name: webmin-theme-lynx
Version: 0.02
Release: 10
Summary: Theme Lynx for Webmin
Summary(pt_BR): Tema Lynx para o Webmin
Group: System/Configuration/Other
License: GPL
URL: http://www.pello.info/?q=node/view/15
Source: http://www.pello.info/filez/lynxth.wbt
BuildArch: noarch

%description
A very light theme for Webmin, lynx-enabled.

%prep
%setup -q -c
# misincluded file?
rm -f lynxth/tmp

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{webmin_rootdir}
tar -cf - lynxth | tar -C %{buildroot}%{webmin_rootdir} -xf -
chmod 755 %{buildroot}%{webmin_rootdir}/lynxth/{theme.pl,index.cgi}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,755)
%{webmin_rootdir}/lynxth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11380 |21cr|websocketpp-0.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	C++ WebSocket Protocol Library
Name:		websocketpp
Version:	0.8.2
Release:	1
Group:		System/Libraries
License:	BSD
Url:		http://www.zaphoyd.com/websocketpp
Source0:	https://github.com/zaphoyd/websocketpp/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	websocketpp.pc

# put cmake files in share/cmake instead of lib/cmake
Patch1:		websocketpp-0.4.0-cmake_noarch.patch

BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	pkgconfig
BuildArch:	noarch

%description
WebSocket++ is an open source (BSD license) header only C++ library
that impliments RFC6455 The WebSocket Protocol. It allows integrating
WebSocket client and server functionality into C++ programs. It uses
interchangeable network transport modules including one based on C++
iostreams and one based on Boost Asio.

#--------------------------------------------------------

%package devel
Summary:	C++ WebSocket Protocol Library
Group:		Development/C
Provides:	pkgconfig(websocketpp) = %{EVRD}
Requires:	boost-devel


%description devel
WebSocket++ is an open source (BSD license) header only C++ library
that impliments RFC6455 The WebSocket Protocol. It allows integrating
WebSocket client and server functionality into C++ programs. It uses
interchangeable network transport modules including one based on C++
iostreams and one based on Boost Asio.

%files devel
%doc COPYING changelog.md readme.md roadmap.md
%{_includedir}/websocketpp/
%dir %{_datadir}/cmake/
%{_datadir}/cmake/websocketpp/
%{_libdir}/pkgconfig/websocketpp.pc

#--------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/websocketpp.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11381 |21cr|weechat-3.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Portable, fast, light and extensible IRC client
Name:		weechat
Version:	3.7
Release:	1
License:	GPLv3
Group:		Networking/IRC
Url:		https://www.weechat.org/
Source0:	https://github.com/weechat/weechat/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		0001-Switch-to-enchant2.patch
BuildRequires:	cmake
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	aspell-devel
BuildRequires:	guile-devel
BuildRequires:	lua5.3-devel
BuildRequires:	perl-devel
# Ruby & Python are really needed for the build, tks lbd
BuildRequires:	ruby-devel
BuildRequires:	tcl-devel
BuildRequires:	tk-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(python3)
Obsoletes:	%{name}-gtk < 2.8

%description
WeeChat (Wee Enhanced Environment for Chat) is a fast, light and extensible
chat client designed for many platforms.

Main features are:
- modular: a lightweight core with plugins around
- multi-protocols: IRC and Jabber (other soon)
- extensible: C plugins and scripts (Perl, Python, Ruby, Lua and Tcl)
- free software: released under GPLv3 license
- fully documented: user's guide, API, FAQ,.. translated in many languages

%files -f %{name}.lang
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_libdir}/%{name}/plugins/alias.so*
%{_libdir}/%{name}/plugins/buflist.so*
%{_libdir}/%{name}/plugins/exec.so*
%{_libdir}/%{name}/plugins/fifo.so*
%{_libdir}/%{name}/plugins/fset.so*
%{_libdir}/%{name}/plugins/irc.so*
%{_libdir}/%{name}/plugins/logger.so*
%{_libdir}/%{name}/plugins/relay.so*
%{_libdir}/%{name}/plugins/script.so*
%{_libdir}/%{name}/plugins/trigger.so*
%{_libdir}/%{name}/plugins/typing.so
%{_libdir}/%{name}/plugins/xfer.so*

#--------------------------------------------------------------------

%package perl
Summary: 	Weechat perl plugins
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}

%description perl
This package allow weechat to use perl scripts

%files perl
%{_libdir}/%{name}/plugins/perl.so

#--------------------------------------------------------------------

%package python
Summary:	Weechat python plugins
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}

%description python
This package allow weechat to use python scripts

%files python
%{_libdir}/%{name}/plugins/python.so

#--------------------------------------------------------------------

%package guile
Summary:	Weechat guile plugins
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}

%description guile
This package allow weechat to use guile scripts

%files guile
%{_libdir}/%{name}/plugins/guile.so

#--------------------------------------------------------------------

%package tcl
Summary:	Weechat tcl plugins
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}

%description tcl
This package allow weechat to use tcl scripts

%files tcl
%{_libdir}/%{name}/plugins/tcl.so

#--------------------------------------------------------------------

%package ruby
Summary:	Weechat ruby plugins
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}

%description ruby
This package allow weechat to use ruby scripts

%files ruby
%{_libdir}/%{name}/plugins/ruby.so

#--------------------------------------------------------------------

%package lua
Summary:	Weechat lua plugins
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}

%description lua
This package allow weechat to use lua scripts

%files lua
%{_libdir}/%{name}/plugins/lua.so

#--------------------------------------------------------------------

%package charset
Summary:	Weechat charset plugins
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}

%description charset
This package allow weechat to use charset

%files charset
%{_libdir}/%{name}/plugins/charset.so

#--------------------------------------------------------------------

%package aspell
Summary:	Weechat spell check plugins
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}

%description aspell
This package allow weechat to use spell checker feature.

%files aspell
%{_libdir}/%{name}/plugins/spell.so

#--------------------------------------------------------------------

%package devel
Summary:	Development files for weechat
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
WeeChat (Wee Enhanced Environment for Chat) is a portable, fast, light and
extensible IRC client. Everything can be done with a keyboard.
It is customizable and extensible with scripts.

This package contains include files and pc file for weechat.

%files devel
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake	\
	-DCA_FILE=/etc/pki/tls/certs/ca-bundle.crt	\
	-DENABLE_DOC=OFF	\
	-DENABLE_ENCHANT=ON	\
	-DENABLE_JAVASCRIPT=OFF	\
	-DENABLE_MAN=OFF	\
	-DENABLE_PHP=OFF	\
	-DLIBDIR=%{_libdir}	\
	-DPREFIX=%{_prefix}	\
	-Wno-dev
%make 

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11382 |21cr|wesnoth-1.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO add a init file for server, if it is worth
# split data if we can force a rpm to be noarch

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Fantasy turn-based strategy game
Name:		wesnoth
# There is wesnouth-unstable package for versions like 1.15.x, 1.17.x and so on
Version:	1.18.0
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://www.wesnoth.org/
Source0:	https://sourceforge.net/projects/wesnoth/files/%{name}-%{url_ver}/%{name}-%{version}/%{name}-%{version}.tar.bz2
Source1:	wesnothd-tmpfiles.conf
Source10:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
Obsoletes:	wesnoth-unstable < %{version}

%description
Battle for Wesnoth is a fantasy turn-based strategy game.
Battle for control of villages, using variety of units which
have advantages and disadvantages in different types of terrains and
against different types of attacks. Units gain experience and advance
levels, and are carried over from one scenario to the next campaign.

%files -f %{name}.lang
%doc README.md
%{_appdatadir}/org.%{name}.Wesnoth.appdata.xml
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/org.%{name}.Wesnoth.desktop
%{_defaultdocdir}/%{name}/html
%{_iconsdir}/hicolor/*x*/apps/%{name}-icon.png
%{_iconsdir}/HighContrast/scalable/apps/%{name}-icon.svg
%{_mandir}/*/%{name}.*

#----------------------------------------------------------------------------

%package -n %{name}-server
Summary:	Server for "Battle fo Wesnoth" game
Group:		Games/Strategy
Obsoletes:	wesnoth-unstable-server < %{version}

%description -n %{name}-server
This package contains "Battle for wesnoth" server, used to play multiplayer
game without needing to install the full client.

%files -n %{name}-server -f %{name}d.lang
%{_bindir}/%{name}d
%{_mandir}/*/%{name}d.*
%{_tmpfilesdir}/%{name}d.conf
%ghost %dir /var/run/%{name}d/

%post -n %{name}-server
%tmpfiles_create %{_tmpfilesdir}/%{name}d.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1
find . -name ".gitignore" -delete

%build
export LDFLAGS="$LDFLAGS -lpthread"
# By default OPT is set to "-O3", drop it from optflags
%cmake \
	-DDOCDIR=%{_datadir}/doc/%{name} \
	-DENABLE_STRICT_COMPILATION=OFF	\
	-DICONDIR=%{_iconsdir}		\
	-DMANDIR=%{_mandir}		\
	-DOPT=" "
%make

%install
%makeinstall_std -C build

install -m644 -D %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}d.conf

%find_lang %{name} --with-man
%find_lang %{name}d --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11383 |21cr|wfuzz-3.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The web bruteforcer
Name:		wfuzz
Version:	3.1.0
Release:	2
License:	GPLv2
Group:		Networking/Other
Url:		http://www.edge-security.com/wfuzz.php
Source0:	https://github.com/xmendez/wfuzz/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		wfuzz-illegal-char.patch
BuildRequires:	python3egg(setuptools)
Requires:	python3-curl
BuildArch:	noarch

%description
Wfuzz is a tool designed for bruteforcing Web Applications, it can be used for
finding resources not linked (directories, servlets, scripts, etc), bruteforce
GET and POST parameters for checking different kind of injections (SQL, XSS,
LDAP,etc), bruteforce Forms parameters (User/Password), Fuzzing,etc.

%files
%doc LICENSE README.md
%{_bindir}/*
%{python3_sitelib}/*
%{_datadir}/wfuzz

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

install -d -m 755 %{buildroot}%{_datadir}/wfuzz
cp -pr wordlist %{buildroot}%{_datadir}/wfuzz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11384 |21cr|wget2-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	3
%define libname	%mklibname wget %{major}
%define devname	%mklibname -d wget

Name:		wget2
Summary:	The successor of GNU Wget, a file and recursive website downloader
Version:	2.2.0
Release:	1
# GNU Wget2 is licensed under GPLv3+.
License:	GPLv3+
Group:		Networking/WWW
Url:		https://gitlab.com/gnuwget/wget2
Source0:	https://ftp.gnu.org/gnu/wget/wget2-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gpgme)
BuildRequires:	pkgconfig(libbrotlidec)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libnghttp2)
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(libpsl)
BuildRequires:	pkgconfig(libzstd)
#Provides:	wget
Provides:	webclient
Provides:	webfetch

%description
GNU Wget2 is the successor of GNU Wget, a file and recursive website downloader.

Designed and written from scratch it wraps around libwget, that provides the basic
functions needed by a web client.

Wget2 works multi-threaded and uses many features to allow fast operation.

In many cases Wget2 downloads much faster than Wget1.x due to HTTP2, HTTP compression,
parallel connections and use of If-Modified-Since HTTP header.

%package -n %{libname}
Summary:	Shared libraries for wget2
Group:		System/Libraries
# Libwget is licensed under LGPLv3+.
License:	LGPLv3+

%description -n %{libname}
Shared libraries for wget2 providing the basic functions needed by a web client.

%package -n %{devname}
Summary:	Development files for wget2
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libwget2-devel = %{EVRD}
Provides:	wget2-devel = %{EVRD}

%description -n %{devname}
This package contains the development libraries and headers for wget2.

%prep
%autosetup -p1

# update doxyfile
doxygen -u ./docs/libwget.doxy.in

%build
%configure \
    --disable-static \
    --disable-rpath \
    --disable-manylibs \
    --with-bzip2 \
    --with-lzma \
    --with-openssl=no \
    --with-ssl=gnutls \
    --without-libhsts \
    --without-libidn \
    --without-libpcre
%make_build

%install
%make_install

# man page
install -Dpm644 docs/man/man1/wget2.1 %{buildroot}%{_mandir}/man1/wget2.1

# not needed
rm -rf %{buildroot}%{_bindir}/wget2_noinstall

%find_lang %{name}

%files -f %{name}.lang
%license COPYING
%doc README* NEWS
%{_bindir}/wget2
%{_mandir}/man1/wget2.1*

%files -n %{libname}
%{_libdir}/libwget.so.%{major}{,.*}

%files -n %{devname}
%{_includedir}/wget*.h
%{_libdir}/libwget.so
%{_libdir}/pkgconfig/libwget.pc
%{_mandir}/man3/libwget-*.3*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11385 |21cr|wgetpaste-2.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pastebin command line tool
Name:		wgetpaste
Version:	2.28
Release:	1
License:	Public Domain
Group:		Networking/WWW
Url:		http://wgetpaste.zlin.dk
Source0:	http://wgetpaste.zlin.dk/wgetpaste-%{version}.tar.bz2
Source1:	wgetpaste.conf
Requires:	wget
BuildArch:	noarch

%description
Tool allowing to paste output from commands directly to several pastebin
websites.

%files
%config(noreplace) %{_sysconfdir}/wgetpaste.d/*
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_bindir}
cp -p wgetpaste %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/wgetpaste.d
cp -p %{SOURCE1} %{buildroot}%{_sysconfdir}/wgetpaste.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11386 |21cr|whatmask-1.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name whatmask
%define version 1.2
%define release 11

Summary: Convert between different netmask types
Name: %name
Version: %version
Release: %release
License: GPL
Group: Networking/Other
Source: %name-%version.tar.bz2
URL: http://www.laffeycomputer.com/whatmask.html

%description
Whatmask is a small C program that will help you with network 
settings.

It can analyze CIDR, netmask, netmask (hex), and wildcard bit 
notations to give useful information about the network block in 
question.

%prep
%setup -q
%configure

%build
%make

%install
mkdir -p $RPM_BUILD_ROOT/%{_bindir}
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 644 man/whatmask.1 $RPM_BUILD_ROOT/%{_mandir}/man1
install -m 755 whatmask $RPM_BUILD_ROOT/%{_bindir}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/whatmask
%{_mandir}/man1/whatmask.1*
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11387 |21cr|whatsapp-web-launcher-0.1-6.git1631
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 1631a403dca4258ea5c87f3fd9e83cb2e223f1d1
%define short_commit %(echo %{commit} | head -c 4)

Summary:	WhatsApp Web Launcher
Name:		whatsapp-web-launcher
Version:	0.1
Release:	6.git%{short_commit}
License:	MIT
Group:		Graphical desktop/Other
Url:		https://github.com/mikhailnov/whatsapp-web-launcher
Source0:	https://github.com/mikhailnov/whatsapp-web-launcher/archive/%{commit}.tar.gz
BuildArch:	noarch
Requires:	xdg-utils
Recommends:	zenity
Provides:	whatsapp = %{EVRD}

%description
WhatsApp Web launcher:
- desktop file with a WhatsApp icon abd a script which:
  - checks if the default web browser is supported by WhatsApp Web
  - if not, tries to find a supported browser
  - opens web.whatsapp.com
- shell alias whatsapp to whatsapp-web-launcher if another
  command whatsapp is not available
  

%files
%doc LICENSE
%{_datadir}/icons/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}
%{_sysconfdir}/profile.d/%{name}.sh

#--------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}

%build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11388 |21cr|whdd-3.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Diagnostic and recovery tool for block devices
Name:		whdd
Version:	3.0.1
Release:	2
License:	GPLv1+
Group:		System/Kernel and hardware
Url:		https://github.com/krieger-od/whdd
Source0:	https://github.com/whdd/whdd/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		whdd-2.2-optflags.patch
BuildRequires:	cmake
BuildRequires:	dialog-devel
BuildRequires:	pkgconfig(ncurses)

%description
WHDD is a diagnostic and recovery tool for block devices
(near to replace MHDD for Linux).

%files
%doc COPYING LICENSE README
%{_sbindir}/whdd
%{_sbindir}/whdd-cli

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DCLI:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11389 |21cr|whichman-2.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary: Fault tolerant search utilities
Name: whichman
Version: 2.4
Release: 9
License: GPL
Group: File tools
Url: http://main.linuxfocus.org/~guido/
Source: %{name}-%{version}.tar.bz2
Patch: whichman-makefile.patch.bz2



%description
ftff, ftwhich and whichman are fault tolerant search utilities.
whichman allows to search for man pages that match approximately the specified
search key. ftff is a fault tolerant file find utility and ftwhich
is a fault tolerant version for the 'which' command.
The error tolerant approximate string match is based on the Levenshtein
Distance between two strings. This is a measure for the number of
replacements, insertions and deletions that are necessary to transform
string A into string B.

%prep

%setup -q
%patch 


%build
%make 

%install
make DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT%{_prefix} MANDIR=$RPM_BUILD_ROOT%{_mandir} install


%files
%doc README 
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11390 |21cr|whizzytex-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		whizzytex
Version: 	1.4.0
Release: 	1
# license here: http://cristal.inria.fr/whizzytex/GPL
License: 	GPLv2
Summary:	An Emacs minor mode for incremental viewing of LaTeX documents
Group:		Publishing
URL:		http://cristal.inria.fr/whizzytex
Source:		http://cristal.inria.fr/whizzytex/%{name}-%{version}.tgz
Source100:	%{name}.rpmlintrc
BuildRequires: 	emacs-bin
Requires: 	emacs-bin
Requires: 	tetex-latex
Requires: 	texlive-kpathsea.bin
BuildArch: 	noarch


%description 
WhizzyTeX provides a minor mode for Emacs or XEmacs, a (bash) shell-script
daemon and some LaTeX macros. It works under Unix with gv and xdvi viewers, but
the Active-DVI viewer will provided much better visual effects and will offer
more functionalities.

%prep
%setup -q
find -size 0 -exec rm -f {} \;

rm -rf examples/beamer
perl -pi -e 's/INITEX="latex -ini"/INITEX="pdfetex -ini"/' src/whizzytex
chmod 755 examples/bin/gpic*
chmod 755 examples/gpic/whizzy.sh

 
# Convert to utf-8
for file in examples/edit/wedit.sty.bak doc/manual.sty examples/edit/wedit.sty.bak examples/xsymbol/main.tex \
  CHANGES examples/advanced/exercise.sty COPYING doc/manual.tex examples/effects/exercise.sty \
  examples/edit/whizzedit.sty examples/edit/wedit.sty; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
emacs -batch -f batch-byte-compile src/whizzytex.el

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_datadir}/emacs/site-lisp
install -d -m 755 %{buildroot}%{_datadir}/texmf/tex/latex/%{name}
install -m 755 src/whizzytex %{buildroot}%{_bindir}
install -m 644 src/whizzytex.sty %{buildroot}%{_datadir}/texmf/tex/latex/%{name}
install -m 644 src/whizzytex.el* %{buildroot}%{_datadir}/emacs/site-lisp


find -size 0 -exec rm -f {} \;



%files

%doc CHANGES COPYING FILES GPL VERSION doc examples
%{_bindir}/%{name}
%{_datadir}/texmf/tex/latex/%{name}
%{_datadir}/emacs/site-lisp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11391 |21cr|whohas-0.29.2-0.20220710.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snapshot 20220710

Name:		whohas
Version:	0.29.2
Release:	0.%{snapshot}.1
Summary:	Command line tool searching package in different distributions
Group:		Development/Other
License:	GPLv2+
URL:		http://www.philippwesche.org/200811/whohas/intro.html
Source0:	http://www.philippwesche.org/200811/whohas/%{name}-%{version}-%{snapshot}.tar.gz
BuildArch:	noarch
Requires:	perl-libwww-perl

%description
whohas is a command line tool that allows querying several package lists
at once - currently supported are Arch, Debian, Fedora, Gentoo, Mandriva,
openSUSE, Slackware (and linuxpackages.net), Source Mage, Ubuntu, FreeBSD,
NetBSD, OpenBSD, Fink, MacPorts and Cygwin. whohas is written in Perl and was
designed to help package maintainers find ebuilds, pkgbuilds and similar
package definitions from other distributions to learn from. However, it can
also be used by normal users who want to know:

- Which distribution provides packages on which the user depends.
- What version of a given package is in use in each distribution, or in each
release of a distribution (implemented only for Debian).

%prep
%setup -qn %{name}-%{version}-%{snapshot}

%build

%install
install -m 755 -D whohas %{buildroot}%{_bindir}/whohas
mv usr/share/man/de/man1/whohas.1 usr/share/man/de/man1/whohas.1.old
iconv -f ISO_8859-1 -t UTF-8 usr/share/man/de/man1/whohas.1.old > usr/share/man/de/man1/whohas.1
xz -zk usr/share/man/man1/whohas.1 usr/share/man/de/man1/whohas.1
install -m 644 -D usr/share/man/man1/whohas.1.xz %{buildroot}%{_mandir}/man1/whohas.1.xz
install -m 644 -D usr/share/man/de/man1/whohas.1.xz %{buildroot}%{_mandir}/de/man1/whohas.1.xz

%files
%{_bindir}/whohas
%defattr(644,root,root,755)
%doc intro.html LICENSE TODO NEWS
%{_mandir}/man1/whohas.1.xz
%lang(de)%{_mandir}/de/man1/whohas.1.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11392 |21cr|whoisit-1.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without external_codes

Summary:	Facilities to Announce incoming callers over the computer speakers
Name:		whoisit
Version:	1.1
Release:	13
License:	GPLv1+
Group:		System/Servers
Url:		http://www.voip-info.org/wiki-Asterisk+WhoIsIt
Source0:	http://wyoming.e-tools.com/WhoIsIt-%{version}.tar.bz2
# Festival fails to generate gsm files for some reason so we use older filer
Source1:	CID-PLACES.tar.bz2
Patch0:		WhoIsIt-1.1-req.patch
%if %{without external_codes}
BuildRequires:	festival
%endif
BuildRequires:	sox
Requires:	asterisk
Requires:	festival

%description
This program is intended to be used in the Asterisk extensions.conf file
to announce (over your system's speakers) the calling party.

%files
%doc README TODO areacodescript countrycodes-script
%attr(0755,root,root) %{_bindir}/who-is-it
%attr(0755,root,root) %{_localstatedir}/lib/asterisk/agi-bin/who-is-it-agi
%attr(0755,root,root) %{_localstatedir}/lib/asterisk/agi-bin/submit-announce.agi
%attr(0755,root,root) %dir %{_localstatedir}/lib/asterisk/sounds/CID-PLACES
%attr(0755,root,root) %dir %{_localstatedir}/lib/asterisk/sounds/CID-PLACES/country-codes
%attr(0755,root,root) %dir %{_localstatedir}/lib/asterisk/sounds/priv-callerintros
%attr(0644,root,root) %{_localstatedir}/lib/asterisk/sounds/CID-PLACES/*.gsm
%attr(0644,root,root) %{_localstatedir}/lib/asterisk/sounds/CID-PLACES/country-codes/*.gsm
%attr(0644,root,root) %{_localstatedir}/lib/asterisk/sounds/*.gsm

#----------------------------------------------------------------------------

%prep
%setup -q -n WhoIsIt-%{version}
%patch0 -p0
iconv -f iso8859-1 -t utf-8 countrycodes-script > countrycodes-script.conv && \
  mv -f countrycodes-script.conv countrycodes-script

%build
gcc %{optflags} -o who-is-it who-is-it.c
gcc %{optflags} -o who-is-it-agi who-is-it-agi.c

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_localstatedir}/lib/asterisk/agi-bin
install -d %{buildroot}%{_localstatedir}/lib/asterisk/sounds/CID-PLACES/country-codes
install -d %{buildroot}%{_localstatedir}/lib/asterisk/sounds/priv-callerintros

install -m0644 international.gsm %{buildroot}%{_localstatedir}/lib/asterisk/sounds/CID-PLACES/
install -m0644 priv-unlisted.gsm %{buildroot}%{_localstatedir}/lib/asterisk/sounds/
install -m0644 unknowncallerfrom.gsm %{buildroot}%{_localstatedir}/lib/asterisk/sounds/
install -m0644 somewhereinstate.gsm %{buildroot}%{_localstatedir}/lib/asterisk/sounds/
install -m0644 somewhereoutstate.gsm %{buildroot}%{_localstatedir}/lib/asterisk/sounds/
install -m0755 who-is-it %{buildroot}%{_bindir}
install -m0755 who-is-it-agi %{buildroot}%{_localstatedir}/lib/asterisk/agi-bin/
install -m0755 submit-announce.agi %{buildroot}%{_localstatedir}/lib/asterisk/agi-bin/

%if %{without external_codes}
# this will generate the gsm files :)
cp areacodescript areacodescript.tmp
cp countrycodes-script countrycodes-script.tmp
perl -pi -e "s|%{_localstatedir}/lib|%{buildroot}%{_localstatedir}/lib|g" *.tmp

festival < areacodescript.tmp
festival < countrycodes-script.tmp
%else
pushd %{buildroot}%{_localstatedir}/lib/asterisk/sounds/
tar -xf %{SOURCE1}
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11393 |21cr|whowatch-1.8.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Display information about users currently logged on
Name:		whowatch
Version:	1.8.6
Release:	1
License:	GPLv2
Group:		Monitoring
URL:		http://wizard.ae.krakow.pl/~mike/
Source0:	https://github.com/mtsuszycki/whowatch/archive/whowatch-%{version}.tar.gz

BuildRequires:	ncurses-devel

%description
Whowatch is an interactive console utility that displays informations about
the users currently logged on to the machine, in real time. Besides standard
information (login, tty, host, user's process) you can see type of login
(local. ssh, telnet). You can also see selected user's processes tree or all
system processes tree.  In the process tree mode there is ability to send
INT or KILL signal to selected process.

%files
%license COPYING
%doc AUTHORS README PLUGINS.readme TODO
%{_mandir}/man1/%{name}.1*
%{_bindir}/%{name}

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{name}-%{version}

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std -C src
mkdir -p %{buildroot}/%{_mandir}/man1/
install -m 0644 %{name}.1 %{buildroot}/%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11394 |21cr|whysynth-20170701-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	Advanced synthesizer DSSI plugin
Name:		whysynth
Version:	20170701
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://smbolton.com/whysynth.html
Source0:	http://smbolton.com/whysynth/%{name}-%{version}.tar.bz2
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi) >= 0.9.0
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.24
BuildRequires:	pkgconfig(liblo) >= 0.23

%description
This is a versatile softsynth which operates as a plugin for the DSSI Soft
Synth Interface. Some of its features are:
* 4 oscillators, 2 filters, 3 LFOs and 5 envelope generators per voice;
* 10 oscillator modes: minBLEP, wave-cycle, asynchronous granular, three FM
modes, wave-shaper, noise, PADsynth, and phase distortion;
* 6 filter modes;
* flexible modulation and mix-down options, plus effects.

%files
%doc AUTHORS ChangeLog COPYING README.rst
%{_libdir}/dssi/%{name}.so
%{_libdir}/dssi/%{name}/WhySynth_gtk
%{_datadir}/%{name}

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11395 |21cr|wicd-1.7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Wireless and wired network connection manager
Name:		wicd
Version:	1.7.4
Release:	1
Group:		System/Configuration/Networking
License:	GPLv2+
Url:		http://wicd.sourceforge.net
Source0:	https://launchpad.net/wicd/1.7/%{version}/+download/%{name}-%{version}.tar.gz
Source1:	wicd.logrotate
Source2:	org.wicd.daemon.service
# Remove the WHEREAREMYFILES and resetting of ~/.wicd/WHEREAREMYFILES
# This is pointless.  The documentation can just provide WHEREAREMYFILES,
# which we do in this package.
Patch0:		wicd-1.7.3-remove-WHEREAREMYFILES.patch
# Handle D-Bus connection failures a little better
Patch1:		wicd-1.7.3-dbus-failure.patch
# Allow users at the console to control wicd
Patch2:		wicd-1.7.2.4-dbus-policy.patch
# Work around bug in DaemonClosing() calls
Patch3:		wicd-1.7.3-DaemonClosing.patch
# Unicode string handling problems
Patch4:		wicd-1.7.3-unicode.patch
# Prevent crash when saving network settings
# Upstream bug report and patch:
# https://bugs.launchpad.net/wicd/+bug/993912
Patch5:		wicd-1.7.3-sanitize.patch
BuildRequires:	desktop-file-utils
BuildRequires:	systemd-units
BuildRequires:	pythonegg(babel)
BuildRequires:	pkgconfig(python)
Requires:	pm-utils >= 1.2.4
Requires:	%{name}-common = %{EVRD}

%description
Wicd is designed to give the user as much control over behavior of network
connections as possible.  Every network, both wired and wireless, has its
own profile with its own configuration options and connection behavior.
Wicd will try to automatically connect only to networks the user specifies
it should try, with a preference first to a wired network, then to wireless.

This package provides the architecture-dependent components of wicd.

%files
%doc AUTHORS CHANGES LICENSE NEWS README other/WHEREAREMYFILES
%{_libdir}/pm-utils/sleep.d/55wicd

#----------------------------------------------------------------------------

%package common
Summary:	Wicd common files
Group:		System/Base
Requires:	dbus
Requires:	dbus-python
Requires:	dhcp-client
Requires:	ethtool
Requires:	iproute2
Requires:	logrotate
Requires:	net-tools
Requires:	wireless-tools
Requires:	wpa_supplicant
Requires:	python-gobject
Requires(post):	systemd-units
Requires(preun):	systemd-units
Requires(postun):	systemd-units
BuildArch:	noarch

%description common
This package provides the main wicd daemon and the wicd-cli front-end.

%files common -f %{name}.lang
%doc AUTHORS CHANGES LICENSE NEWS README other/WHEREAREMYFILES
%dir %{python_sitelib}/wicd
%dir %{_sysconfdir}/wicd
%dir %{_sysconfdir}/wicd/encryption
%dir %{_sysconfdir}/wicd/encryption/templates
%dir %{_sysconfdir}/wicd/scripts
%dir %{_sysconfdir}/wicd/scripts/postconnect
%dir %{_sysconfdir}/wicd/scripts/postdisconnect
%dir %{_sysconfdir}/wicd/scripts/preconnect
%dir %{_sysconfdir}/wicd/scripts/predisconnect
%{_sysconfdir}/acpi/resume.d/80-wicd-connect.sh
%{_sysconfdir}/acpi/suspend.d/50-wicd-suspend.sh
%{_sysconfdir}/logrotate.d/wicd.logrotate
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/wicd.conf
%config(noreplace) %{_sysconfdir}/wicd/dhclient.conf.template.default
%config(noreplace) %{_sysconfdir}/logrotate.d/wicd
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/active
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/active_wired
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/eap
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/eap-tls
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/leap
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/peap
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/peap-tkip
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/psu
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/ttls
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wpa-psk-hex
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wep-hex
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wep-passphrase
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wep-shared
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wired_8021x
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wpa
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wpa-psk
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wpa-peap
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wpa2-leap
%config(noreplace) %{_sysconfdir}/wicd/encryption/templates/wpa2-peap
/%{_unitdir}/wicd.service
%{python_sitelib}/wicd/*
%{python_sitelib}/wicd-%{version}*.egg-info
%{_bindir}/wicd-cli
%{_bindir}/wicd-client
%{_sbindir}/wicd
%{_datadir}/applications/wicd.desktop
# No build in ABF
#%{_datadir}/autostart/wicd-tray.desktop
%{_datadir}/dbus-1/system-services/org.wicd.daemon.service
%{_datadir}/man/man1/wicd-client.1*
%{_datadir}/man/man5/wicd-manager-settings.conf.5*
%{_datadir}/man/man5/wicd-wired-settings.conf.5*
%{_datadir}/man/man5/wicd-wireless-settings.conf.5*
%{_datadir}/man/man8/wicd-cli.8*
%{_datadir}/man/man8/wicd.8*
%lang(nl) %{_datadir}/man/nl/man1/wicd-client.1*
%lang(nl) %{_datadir}/man/nl/man5/wicd-manager-settings.conf.5*
%lang(nl) %{_datadir}/man/nl/man5/wicd-wired-settings.conf.5*
%lang(nl) %{_datadir}/man/nl/man5/wicd-wireless-settings.conf.5*
%lang(nl) %{_datadir}/man/nl/man8/wicd.8*
%dir %{_datadir}/wicd
%dir %{_datadir}/wicd/backends
%dir %{_datadir}/wicd/cli
%dir %{_datadir}/wicd/daemon
%{_datadir}/wicd/backends/*
%{_datadir}/wicd/cli/*
%{_datadir}/wicd/daemon/*
%dir %{_localstatedir}/lib/wicd
%dir %{_localstatedir}/lib/wicd/configurations

#----------------------------------------------------------------------------

%package curses
Summary:	Curses client for wicd
Group:		System/Configuration/Networking
BuildArch:	noarch
Requires:	%{name}-common = %{EVRD}
Requires:	python-urwid >= 0.9.8.3

%description curses
Client program for wicd that uses a curses interface.

%files curses
%doc AUTHORS CHANGES LICENSE NEWS README other/WHEREAREMYFILES
%dir %{_datadir}/wicd/curses
%{_datadir}/wicd/curses/*
%{_bindir}/wicd-curses
%{_datadir}/man/man8/wicd-curses.8*
%lang(nl) %{_datadir}/man/nl/man8/wicd-curses.8*

#----------------------------------------------------------------------------

%package gtk
Summary:	GTK+ client for wicd
Group:		System/Configuration/Networking
BuildArch:	noarch
Requires:	%{name}-common = %{EVRD}
Requires:	python-notify
Requires:	pygtk2.0-libglade >= 2.10

%description gtk
Client program for wicd that uses a GTK+ interface.

%files gtk
%doc AUTHORS CHANGES LICENSE NEWS README other/WHEREAREMYFILES
%dir %{_datadir}/wicd/gtk
%{_sysconfdir}/xdg/autostart/wicd-tray.desktop
%{_datadir}/wicd/gtk/*
%{_datadir}/pixmaps/wicd-gtk.xpm
%{_bindir}/wicd-gtk
%{_datadir}/icons/hicolor/*/apps/wicd-gtk.png
%{_datadir}/icons/hicolor/scalable/apps/wicd-gtk.svg
%{_datadir}/wicd/icons

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
rm -f po/ast.po
python setup.py configure \
	--distro redhat \
	--lib %{_libdir} \
	--share %{_datadir}/wicd \
	--etc %{_sysconfdir}/wicd \
	--bin %{_bindir} \
	--pmutils %{_libdir}/pm-utils/sleep.d \
	--log %{_localstatedir}/log \
	--systemd %{_unitdir} \
	--no-install-init \
	--no-install-gnome-shell-extensions

python setup.py compile_translations
python setup.py build

%install
python setup.py install --skip-build --no-compile --root %{buildroot}
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/backends/be-external.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/backends/be-ioctl.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/cli/wicd-cli.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/curses/curses_misc.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/curses/netentry_curses.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/curses/prefs_curses.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/daemon/wicd-daemon.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/gtk/gui.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/gtk/prefs.py
sed -i -e '/^#!\//, 1d' %{buildroot}%{_datadir}/wicd/gtk/wicd-client.py

# add shebang
sed -i -e '1d;2i#!/usr/bin/python'  %{buildroot}%{_datadir}/wicd/cli/wicd-cli.py

rm -f %{buildroot}%{_localstatedir}/lib/wicd/WHEREAREMYFILES
rm -rf %{buildroot}%{_datadir}/doc
find %{buildroot} -type f -name ".empty_on_purpose" | xargs rm

for lib in %{buildroot}%{python_sitelib}/wicd/*.py ; do
	sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
	touch -r $lib $lib.new &&
	mv $lib.new $lib
done

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/wicd

mkdir -p %{buildroot}%{_datadir}/dbus-1/system-services
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/dbus-1/system-services/org.wicd.daemon.service

desktop-file-install \
	--remove-category="Application" \
	--delete-original \
	--dir=%{buildroot}%{_datadir}/applications \
    %{buildroot}%{_datadir}/applications/wicd.desktop

desktop-file-install \
	--dir=%{buildroot}%{_sysconfdir}/xdg/autostart \
	%{buildroot}%{_sysconfdir}/xdg/autostart/wicd-tray.desktop

%find_lang %{name}

%post common
if [ $1 -eq 1 ]; then
#	Package install, not upgrade
	/bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

%preun common
if [ $1 -eq 0 ] ; then
#	Package removal, not upgrade
	/bin/systemctl disable wicd.service > /dev/null 2>&1 || :
	/bin/systemctl stop wicd.service > /dev/null 2>&1 || :
fi

%postun common
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
#	Package upgrade, not uninstall
	/bin/systemctl try-restart wicd.service >/dev/null 2>&1 || :
fi

%triggerun -- wicd-common < 1.7.0-5
if /sbin/chkconfig --level 3 wicd ; then
	/bin/systemctl enable wicd.service >/dev/null 2>&1 || :
fi

%post gtk
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun gtk
if [ $1 -eq 0 ]; then
	touch --no-create %{_datadir}/icons/hicolor &>/dev/null
	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans gtk
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11396 |21cr|widelands-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Settlers II clone
Name:		widelands
Version:	1.2.1
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://www.widelands.org/
Source0:	https://github.com/widelands/widelands/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Source100:	widelands.rpmlintrc
# python3.Sflo
Patch0:		widelands-1.2-rosa.patch
BuildRequires:	asio
BuildRequires:	cmake
BuildRequires:	ctags
BuildRequires:	doxygen
BuildRequires:	optipng
BuildRequires:	pngrewrite
BuildRequires:	python3
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(SDL2_gfx)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-basic-data = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{name}-maps = %{EVRD}
Requires:	%{name}-music = %{EVRD}

%description
Widelands is an open source real-time strategy game. It is built upon 
libSDL and other open source libraries and is still under heavy development.
If you know Settlers I & II™ (© Bluebyte), you might already have a rough 
idea what Widelands is about.

%files
%doc ChangeLog CREDITS
%license COPYING
%{_gamesbindir}/%{name}
%{_gamesbindir}/wl*
%{_appdatadir}/org.widelands.Widelands.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*.png
%{_mandir}/man6/%{name}.*

#------------------------------------------------

%package -n %{name}-i18n
Summary:	Translations for %{name}
Group:		Games/Strategy
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description -n %{name}-i18n
Files to play %{name} in other languages than English.

%files -n %{name}-i18n
%{_gamesdatadir}/%{name}/i18n/
%{_gamesdatadir}/%{name}/locale/

#------------------------------------------------

%package -n %{name}-basic-data
Summary:	Basic data set for %{name}
Group:		Games/Strategy
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description -n %{name}-basic-data
Basic data set used by %{name}.
Without these files you will not be able to play.

%files -n %{name}-basic-data
%{_gamesdatadir}/%{name}/ai/
%{_gamesdatadir}/%{name}/campaigns/
%{_gamesdatadir}/%{name}/ChangeLog
%{_gamesdatadir}/%{name}/COPYING
%{_gamesdatadir}/%{name}/CREDITS
%{_gamesdatadir}/%{name}/datadirversion
%{_gamesdatadir}/%{name}/images/
%{_gamesdatadir}/%{name}/scripting/
%{_gamesdatadir}/%{name}/shaders/
%{_gamesdatadir}/%{name}/sound/
%{_gamesdatadir}/%{name}/templates/
%{_gamesdatadir}/%{name}/tribes/
%{_gamesdatadir}/%{name}/txts/
%{_gamesdatadir}/%{name}/VERSION
%{_gamesdatadir}/%{name}/world/

#------------------------------------------------

%package -n %{name}-maps
Summary:	Maps for %{name}
Group:		Games/Strategy
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description -n %{name}-maps
Maps for %{name}.

%files -n %{name}-maps
%{_gamesdatadir}/%{name}/maps

#------------------------------------------------

%package -n %{name}-music
Summary:	Music for %{name}
Group:		Games/Strategy
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description -n %{name}-music
Music files for %{name}.
These are not needed, but may improve fun while playing.

%files -n %{name}-music
%{_gamesdatadir}/%{name}/music

#------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DBoost_USE_STATIC_LIBS=OFF			\
	-DCMAKE_BUILD_TYPE="Release"			\
	-DWL_INSTALL_BINDIR=%{_gamesbindir}		\
	-DWL_INSTALL_DATADIR=%{_gamesdatadir}/%{name}	\
	-DWL_INSTALL_LOCALEDIR=%{_datadir}/%{name}/locale	\
	-DWL_INSTALL_PREFIX=%{_prefix}
%make

%install
%makeinstall_std -C build
#icons
for size in 16 32 48 64 128; do
	install -D -m644 data/images/logos/wl-ico-${size}.png \
	%{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done

# appdata
install -D -m0644 xdg/org.widelands.Widelands.appdata.xml \
	%{buildroot}%{_appdatadir}/org.widelands.Widelands.appdata.xml
# man
install -D -m0644 xdg/widelands.6 \
	%{buildroot}%{_mandir}/man6/widelands.6

# menu entry
install -m644 %{SOURCE1} -D %{buildroot}/%{_datadir}/applications/%{name}.desktop
# use our desktop 
rm -fr %{buildroot}/%{_datadir}/applications/org.widelands.Widelands.desktop

# docs
mv %{buildroot}/usr/{VERSION,ChangeLog,CREDITS,COPYING} %{buildroot}%{_gamesdatadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11397 |21cr|wifi-radar-2.0.s10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility for managing WiFi profiles
Name:		wifi-radar
Version:	2.0.s10
Release:	4
Source0:	http://wifi-radar.systemimager.org/pub/%{name}-%{version}.tar.bz2
Source1:	16x%{name}.png
Source2:	32x%{name}.png
Source3:	48x%{name}.png
License:	GPLv2
Group:		Networking/Other
Url:		http://wifi-radar.systemimager.org/
Requires:	pygtk2.0
Requires:	dhcpcd
Requires:	usermode-consoleonly
BuildArch:	noarch

%description
WiFi Radar is a Python/PyGTK2  utility for managing WiFi profiles.
It enables you to scan for available networks and create profiles for
your preferred networks. At boot time, running WiFi Radar will
automatically scan for an available preferred network and connect to
it. You can drag and drop your preferred networks to arrange the
profile priority.

%prep
%setup -q
perl -pi -e 's!^CONF_FILE\s*=.*!CONF_FILE = "%{_sysconfdir}/%{name}.conf"!' %{name}
# fix desktop
sed -i 's/gksudo -S wifi-radar/wifi-radar/' %{name}.desktop
sed -i 's/wifi-radar.svg/wifi-radar/' %{name}.desktop
sed -i '/FilePattern=wifi-radar/d' %{name}.desktop


%build

%install
# icons
install -m 755 %{SOURCE1} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m 755 %{SOURCE2} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m 755 %{SOURCE3} -D %{buildroot}%{_liconsdir}/%{name}.png

# structure
make install DESTDIR=%{buildroot}%{_prefix} BINDIR=%{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}/
ln -sf consolehelper %{buildroot}%{_bindir}/%{name}

# config file
mkdir -p %{buildroot}%{_sysconfdir} 
touch %{buildroot}%{_sysconfdir}/%{name}.conf

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=WIFI radar
Comment=Simple wireless network manager
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-System-Configuration-Networking;Settings;Network;
EOF

# preconf
install -d -m 755 %{buildroot}%{_sysconfdir}/security/console.apps/
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<EOF
USER=root
PROGRAM=%{_sbindir}/%{name}
SESSION=true
EOF

install -d -m 755 %{buildroot}%{_sysconfdir}/pam.d/
cat > %{buildroot}%{_sysconfdir}/pam.d/%{name} <<EOF
#%PAM-1.0
auth       sufficient   pam_rootok.so
auth       sufficient   pam_timestamp.so
auth       include      system-auth
session    required     pam_permit.so
session    optional     pam_xauth.so
session    optional     pam_timestamp.so
account    required     pam_permit.so
EOF

# linting crap fix
install -d -m 755 %{buildroot}%{_docdir}
install -m 755 LICENSE.GPL %{buildroot}%{_docdir}
cp -R docs %{buildroot}%{_docdir}
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.html
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/radar_window.html
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/ConnectionManager.html
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/ConfigFile.html
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/about_dialog.html
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/ErrorDialog.html
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/profile_dialog.html
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/preferences_dialog.html
chmod -fR 755 %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/file_browse_button.html
#
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/ConnectionManager.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/ConfigFile.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/about_dialog.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/ErrorDialog.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/profile_dialog.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/radar_window.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/preferences_dialog.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/file_browse_button.html
chmod a-x %{buildroot}%{_docdir}/docs/developer/wifi-radar.py/StatusWindow.html

#
chmod 755 %{buildroot}%{_docdir}/docs/README.WPA-Mini-HOWTO.txt
chmod 755 %{buildroot}%{_docdir}/docs/INSTALL
chmod 755 %{buildroot}%{_docdir}/docs/DEVELOPER_GUIDELINES
chmod 755 %{buildroot}%{_docdir}/docs/TODO
chmod 755 %{buildroot}%{_docdir}/docs/BUGS
chmod 755 %{buildroot}%{_docdir}/docs/README
chmod 755 %{buildroot}%{_docdir}/docs/HISTORY
chmod 755 %{buildroot}%{_docdir}/docs/CREDITS
chmod 755 %{buildroot}%{_docdir}/docs/VERSION
#
chmod a-x %{buildroot}%{_docdir}/docs/README.WPA-Mini-HOWTO.txt
chmod a-x %{buildroot}%{_docdir}/docs/INSTALL
chmod a-x %{buildroot}%{_docdir}/docs/DEVELOPER_GUIDELINES
chmod a-x %{buildroot}%{_docdir}/docs/TODO
chmod a-x %{buildroot}%{_docdir}/docs/BUGS
chmod a-x %{buildroot}%{_docdir}/docs/README
chmod a-x %{buildroot}%{_docdir}/docs/HISTORY
chmod a-x %{buildroot}%{_docdir}/docs/CREDITS
chmod a-x %{buildroot}%{_docdir}/docs/VERSION
chmod a-x %{buildroot}%{_docdir}/LICENSE.GPL
#

%files
%{_docdir}/docs/*
%{_docdir}/LICENSE.GPL
%{_bindir}/%{name}
%{_sbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%{_mandir}/man?/%{name}.*
%{_datadir}/pixmaps/*.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11398 |21cr|wifite2-2.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python3 script for auditing wireless networks
Name:		wifite2
Version:	2.2.5
Release:	2
License:	GPLv2
Group:		Networking/Other
Url:		https://github.com/derv82/wifite2
Source0:	https://github.com/derv82/wifite2/archive/2.2.5/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
# 4 check ,to do in future
BuildRequires:  tshark
BuildRequires:  cowpatty
BuildRequires:	aircrack-ng

Requires:	aircrack-ng
Requires:	reaver
Requires:	cowpatty
Requires:	wireless-tools
Requires:	net-tools
Requires:	bully
Requires:	hashcat
Requires:	wireshark
Requires:	tshark

BuildArch:	noarch

%description
Wifite is designed to use all known methods for 
retrieving the password of a wireless 
access point (router). These methods include:

WPS: The Offline Pixie-Dust attack
WPS: The Online Brute-Force PIN attack
WPA: The WPA Handshake Capture + offline crack.
WPA: The PMKID Hash Capture + offline crack.
WEP: Various known attacks against WEP, 
including fragmentation, chop-chop, aireplay, etc.

%files
%doc *.md LICENSE 
%{_sbindir}/wifite
%{py3_puresitedir}/wifite/
%{py3_puresitedir}/wifite-%{version}-py*.egg-info
%{_datadir}/dict/*.txt
#---------------------------------------------------------
%prep
%setup -q

%build
%py3_build

%install
%py3_install

find %{buildroot}%{py3_puresitedir}/wifite/*/*.py  -type f -exec chmod 755 {} \;
find %{buildroot}%{py3_puresitedir}/wifite/*.py  -type f -exec chmod 755 {} \;
find %{buildroot}%{py3_puresitedir}/wifite/*/__init__.py -type f -exec chmod 644 {} \;
find %{buildroot}%{py3_puresitedir}/wifite/__init__.py -type f -exec chmod 644 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11399 |21cr|wiggle-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A tool for applying patches with conflicts
Name:		wiggle
Version:	1.2
Release:	1
License:	GPL
Group:		Text tools
Source0:	http://neil.brown.name/wiggle/%{name}-%{version}.tar.gz
Patch1:		wiggle-fix-build.patch
Url:		http://neil.brown.name/wiggle
BuildRequires:	groff-for-man
BuildRequires:	ncurses-devel

%description
Wiggle is a program for applying patches that 'patch' cannot
apply due to conflicting changes in the original.
Wiggle will always apply all changes in the patch to the original.
If it cannot find a way to cleanly apply a patch, it inserts it
in the original in a manner similar to 'merge', and report an
unresolvable conflict.  Such a conflict will look like:

%prep
%setup -q


# Don't add Neil Brown's default sign off line to every patch
sed -i '/$CERT/,+4s,^,#,' p || die "sed failed on p"



%build
%make

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_mandir}/man1
install -m755 wiggle %{buildroot}/%{_bindir}/wiggle
install -m644 wiggle.1 %{buildroot}/%{_mandir}/man1/wiggle.1

%files
%doc ANNOUNCE TODO notes 
%doc p p.help
%attr (755,root,root) %{_bindir}/wiggle
%{_mandir}/man1/wiggle.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11400 |21cr|wiiuse-0.15.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Library to access wiimotes and its various accessories
Name:		wiiuse
Version:	0.15.5
Release:	2
License:	GPLv3+
Group:		System/Libraries
Url:		https://github.com/wiiuse/wiiuse
Source0:	https://github.com/wiiuse/wiiuse/archive/%{name}-%{version}.tar.gz
Patch0:		wiiuse-versioning.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	pkgconfig(bluez)
# for the example
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(sdl)

%description
Wiiuse is a library written in C that connects with several Nintendo Wii
wiimotes. It supports motion sensing, IR tracking, nunchuk, classic
controller and the Guitar Hero 3 controller.
Single threaded and nonblocking makes a light weight and clean API.

%files
%doc CHANGELOG.mkd README.mkd
%{_bindir}/wiiuseexample*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries for %{name}.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libwiiuse.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(bluez)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for developing programs based on %{name}.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/libwiiuse.so

#----------------------------------------------------------------------------


%prep
%autosetup -p1

perl -pi -e "s|\r\n|\n|g" CHANGELOG.mkd README.mkd


%build
%cmake
%make


%install
%makeinstall_std -C build

# Drop stuff we pick up in another way
rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11401 |21cr|wimlib-1.13.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 15
%define libname %mklibname wim %{major}
%define devname %mklibname wim -d

Summary:	Open source Windows Imaging (WIM) library
Name:		wimlib	
Version:	1.13.6
Release:	2
# wimlib is dual-licensed (GPLv3+/LGPLv3+) but is linked to libntfs-3g (GPLv3+),
# utilities are GPLv3+, some internal headers are CC0
License:	GPLv3+ and CC0
Group:		Archiving/Other
Url:		https://wimlib.net
Source0:	https://wimlib.net/downloads/wimlib-%{version}.tar.gz
	
BuildRequires:	gcc
BuildRequires:	make
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libntfs-3g)
BuildRequires:	pkgconfig(libxml-2.0)

# compat with Fedora
Provides:	wimlib-utils = %{EVRD}
Provides:	wimlib-tools = %{EVRD}

%description
wimlib is a C library for creating, modifying, extracting, and mounting files in
the Windows Imaging Format (WIM files). wimlib and its command-line frontend
'wimlib-imagex' provide a free and cross-platform alternative to Microsoft's
WIMGAPI, ImageX, and DISM.

%files
%{_bindir}/*
%{_mandir}/man1/*.1.*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Wimlib library
Group:		System/Libraries

%description -n %{libname}
Wimlib library for working with Windows Imaging Format (WIM) files.

%files -n %{libname}
%{_libdir}/libwim.so.%{major}{,.*}

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of the Wimlib library
Group:		Development/C
Provides:	wimlib-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files of the Wimlib library
(library for working with Windows Imaging Format (WIM) files).

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libwim.so
%{_libdir}/pkgconfig/wimlib.pc

#------------------------------------------------------------------

%prep
%autosetup -p1

%build

# some scripts are probably missing in the tarball, emulate them
mkdir -p tools
cat > tools/get-version-number << 'EOF'
#!/bin/sh
echo %{version}
EOF
chmod 755 tools/get-version-number

%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11402 |21cr|win32-codecs-1.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define distsuffix plf
%define sname essential-20071007

Name:		win32-codecs
Version:	1.9
Release:	7
Summary:	Win32 codec binaries
License:	Commercial
Group:		System/Libraries
URL:		http://plf.zarb.org
Source0:	http://www1.mplayerhq.hu/MPlayer/releases/codecs/%{sname}.tar.bz2
ExclusiveArch:	%{ix86}

%description
This package contains Win32 codec binaries, required for the
decompression of video formats that have no open source
alternative.

This package is in restricted for it's non-free license.


%prep
%setup -q -n %{sname}

%build

%install
install -d -m 755 %{buildroot}%{_libdir}/codecs
install -m 644 *.* %{buildroot}%{_libdir}/codecs
#gw they are in the real-codecs package
rm -f %{buildroot}%{_libdir}/codecs/*.so*
#gw they are in the xanim-codecs package
rm -f %{buildroot}%{_libdir}/codecs/*.xa

%files
%doc README
%{_libdir}/codecs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11403 |21cr|wine-cpcsp_proxy-0.6.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Proxy for using Linux CryptoPro in Windows applications with wine
Name:		wine-cpcsp_proxy
Version:	0.6.0
Release:	3
License:	LGPLv2
Group:		Emulators
Url:		https://github.com/Etersoft/wine-cpcsp_proxy
Source0:	https://github.com/Etersoft/wine-cpcsp_proxy/archive/%{version}-alt3.tar.gz?/%{name}-%{version}-alt3.tar.gz
Patch0:		wine-cpcsp_proxy-0.6.0-alt3-fix-build.patch
%ifarch x86_64
BuildRequires:	wine64-stable-devel
%else
BuildRequires:	wine32-stable-devel
%endif
ExclusiveArch:	%{ix86} %{x86_64}

%description
Proxy for using Linux CryptoPro in Windows applications with wine.

%files
%doc README.md
%{_bindir}/cpcsp_proxy_setup
%ifarch %{x86_64}
%{_libdir}/wine/x86_64-unix/cpcsp_proxy_setup.exe.so
%{_libdir}/wine/x86_64-unix/cpcsp_proxy.dll.so
%{_libdir}/wine/x86_64-windows/cpcsp_proxy_setup.exe
%{_libdir}/wine/x86_64-windows/cpcsp_proxy.dll
%else
%{_libdir}/wine/i386-unix/cpcsp_proxy_setup.exe.so
%{_libdir}/wine/i386-unix/cpcsp_proxy.dll.so
%{_libdir}/wine/i386-windows/cpcsp_proxy_setup.exe
%{_libdir}/wine/i386-windows/cpcsp_proxy.dll
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-alt3

%build
%make -C cpcsp_proxy
%make -C cpcsp_proxy_setup

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/wine/x86_64-{unix,windows}
cat > %{buildroot}%{_bindir}/cpcsp_proxy_setup << 'EOF'
#!/bin/sh -e

appname=$(basename "$0" .exe)
name=$(echo $appname | cut -d- -f1)

exec wine "$name.exe" "$@"
EOF
cp cpcsp_proxy/cpcsp_proxy.dll.so %{buildroot}%{_libdir}/wine/x86_64-unix
cp cpcsp_proxy_setup/cpcsp_proxy_setup.exe.so %{buildroot}%{_libdir}/wine/x86_64-unix
cp cpcsp_proxy/cpcsp_proxy.dll %{buildroot}%{_libdir}/wine/x86_64-windows
cp cpcsp_proxy_setup/cpcsp_proxy_setup.exe %{buildroot}%{_libdir}/wine/x86_64-windows
%ifarch %{ix86}
mv -f %{buildroot}%{_libdir}/wine/{x86_64,i386}-unix
mv -f %{buildroot}%{_libdir}/wine/{x86_64,i386}-windows
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11404 |21cr|wine-gecko-2.47.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

%define mingw64_snap 86a5e0f41683d8e60b3756712e7a417055d291dc
%define binutils_version 2.41
%define gcc_version 13.2.0

%ifarch x86_64
%define mingw_host x86_64-w64-mingw32
%else
%define mingw_host i686-w64-mingw32
%endif

Summary:	HTML engine for Wine based on Gecko
Name:		wine-gecko
Version:	2.47.4
Release:	2
License:	MPLv1.1
Group:		Emulators
Url:		https://wiki.winehq.org/Gecko
Source0:	https://dl.winehq.org/wine/wine-gecko/%{version}/%{name}-%{version}-src.tar.xz#/%{name}-%{version}.tar.xz
Source1:	https://sourceforge.net/code-snapshots/git/m/mi/mingw-w64/mingw-w64.git/mingw-w64-mingw-w64-%{mingw64_snap}.zip
# This is officially overkill:
Source2:	https://ftp.gnu.org/gnu/binutils/binutils-%{binutils_version}.tar.bz2
Source3:	https://mirror.linux-ia64.org/gnu/gcc/releases/gcc-%{gcc_version}/gcc-%{gcc_version}.tar.xz
# https://bugs.winehq.org/show_bug.cgi?id=52455
Source4:	https://github.com/libffi/libffi/releases/download/v3.4.2/libffi-3.4.2.tar.gz
# https://bugs.winehq.org/show_bug.cgi?id=52085
Patch0:		wine-gecko-gcc11.patch
# bad hack for mingw header issue
Patch2:		wine-gecko-header.patch
Patch3:		wine-gecko-wine64.patch
Patch4:		wine-gecko-2.47.4-redifenition-from-mfidl-h.patch
BuildRequires:	autoconf2.1
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	texinfo
# for msi package generation
%ifarch x86_64
BuildRequires:	wine-stable-devel
%else
BuildRequires:	wine32-stable-devel
%endif
BuildRequires:	yasm
BuildRequires:	zip
# for gcc
BuildRequires:	gmp-devel
BuildRequires:	libmpc-devel
BuildRequires:	mpfr-devel
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(virtualenv)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(xproto)
ExclusiveArch:	%{ix86} x86_64

%description
A custom version of Mozilla's Gecko Layout Engine for Wine. This package
is needed when running such Windows applications in Wine that display web
pages using embedded IE.

#------------------------------------------------------------------

%package -n wine32-gecko
Summary:	HTML engine for 32-bit Wine based on Gecko
Group:		Emulators

%description -n wine32-gecko
A custom version of Mozilla's Gecko Layout Engine for Wine. This package
is needed when running such Windows applications in Wine that display web
pages using embedded IE.

This package is for use with 32-bit wine.

%ifarch i686
%files -n wine32-gecko
%doc %{name}-%{version}/LEGAL %{name}-%{version}/README.txt
%license %{name}-%{version}/LICENSE
%dir %{_datadir}/wine/gecko
%{_datadir}/wine/gecko/%{name}-%{version}-x86.msi
%endif

#------------------------------------------------------------------

%package -n wine64-gecko
Summary:	HTML engine for 64-bit Wine based on Gecko
Group:		Emulators
Provides:	%{name} = %{EVRD}

%description -n wine64-gecko
A custom version of Mozilla's Gecko Layout Engine for Wine. This package
is needed when running such Windows applications in Wine that display web
pages using embedded IE.

This package is for use with 64-bit wine.

%ifarch x86_64
%files -n wine64-gecko
%doc %{name}-%{version}/LEGAL %{name}-%{version}/README.txt
%license %{name}-%{version}/LICENSE
%dir %{_datadir}/wine/gecko
%{_datadir}/wine/gecko/%{name}-%{version}-x86_64.msi
%endif

#------------------------------------------------------------------

%prep
%setup -q -c -a1 -a2 -a3
pushd %{name}-%{version}/js/src/ctypes/libffi
rm -rf ./*
gzip -dc %{SOURCE4} | tar -xf - --strip-components=1
popd
pushd %{name}-%{version}
%apply_patches
%ifarch %{ix86}
%patch3 -p1 -R
%endif
# fix nsprpub cross compile detection
sed -i 's,cross_compiling=.*$,cross_compiling=yes,' nsprpub/configure
# fix wine cabinet tool
sed -i 's,$WINE cabarc.exe -r -m mszip N $cabfile msi/files,$WINE cabarc.exe -r -m mszip N $cabfile msi/files/*,' wine/make_package
popd

%build
builddir=$PWD

mkdir -p binutils-build
mkdir -p gcc-build
mkdir -p mingw-headers-build
mkdir -p mingw-crt-build

# Per Fedora mingw
export CFLAGS="-O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions --param=ssp-buffer-size=4"
export CXXFLAGS="$CFLAGS"

# Make sure nothing leaks outside build dir:
export WINEPREFIX="$builddir/wine-prefix"

pushd binutils-build
../binutils-%{binutils_version}/configure --prefix=$builddir/mingw-sysroot --target=%{mingw_host} --disable-multilib --disable-werror
%make
%make install
popd

pushd mingw-headers-build
../mingw-w64-mingw-w64-%{mingw64_snap}/mingw-w64-headers/configure --host=%{mingw_host} --prefix=$builddir/mingw-sysroot/%{mingw_host} --enable-sdk=all --enable-secure-api
%make install
ln -s %{mingw_host} $builddir/mingw-sysroot/mingw
popd

pushd gcc-build
../gcc-%{gcc_version}/configure --prefix=$builddir/mingw-sysroot --target=%{mingw_host} --with-gnu-ld --with-gnu-as --enable-__cxa_atexit --enable-languages=c,c++ --disable-multilib
%make all-gcc
%make install-gcc
popd

export PATH=$builddir/mingw-sysroot/bin:$PATH

pushd mingw-crt-build
../mingw-w64-mingw-w64-%{mingw64_snap}/mingw-w64-crt/configure --host=%{mingw_host} --prefix=$builddir/mingw-sysroot/%{mingw_host}
%make
%make install
popd

pushd gcc-build
%make
%make install
popd

%ifarch x86_64
ln -s %{_bindir}/wine64 $builddir/mingw-sysroot/bin/wine
%endif

pushd %{name}-%{version}
echo "mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags}" >> wine/mozconfig-common
echo "export CFLAGS=\"-DWINE_GECKO_SRC\"" >> wine/mozconfig-common
cp wine/mozconfig-common wine/mozconfig-common.build
%ifarch x86_64
TOOLCHAIN_PREFIX=%{mingw_host}- MAKEOPTS="-j1" ./wine/make_package --msi-package -win64
%else
TOOLCHAIN_PREFIX=%{mingw_host}- MAKEOPTS="-j1" ./wine/make_package --msi-package -win32
%endif
popd

%install
install -d -m755 %{buildroot}%{_datadir}/wine/gecko
install -m644 %{name}-*/dist/%{name}-%{version}-*.msi %{buildroot}%{_datadir}/wine/gecko

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11405 |21cr|wine-recommends-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Task with recommends apps for wine, steam, etc
Name:		wine-recommends
Version:	1
Release:	1
License:	MIT
Group:		Games/Other
Url:		https://abf.io/import/wine-recommends
Recommends:	bubblewrap
Recommends:	cabextract
Recommends:	curl
Recommends:	gio2.0-32
Recommends:	icoutils
Recommends:	lib64d3dadapter9_1
Recommends:	lib64dri-drivers-intel
Recommends:	lib64dri-drivers-radeon
Recommends:	lib64ncursesw6
Recommends:	lib64txc-dxtn
Recommends:	lib64vulkan1
Recommends:	lib64wx_baseu2.8_0
Recommends:	lib64wx_baseu_net2.8_0
Recommends:	lib64wx_baseu_xml2.8_0
Recommends:	libaa1
Recommends:	libacl1
Recommends:	libalsa-plugins
Recommends:	libalsa-plugins-jack
Recommends:	libalsa-plugins-pulseaudio
Recommends:	libappindicator1
Recommends:	libasm1
Recommends:	libasound2
Recommends:	libasyncns0
Recommends:	libatk1.0_0
Recommends:	libattr1
Recommends:	libavahi-client3
Recommends:	libavahi-common3
Recommends:	libavcodec58
Recommends:	libavformat58
Recommends:	libavutil56
Recommends:	libblkid1
Recommends:	libbluray2
Recommends:	libbsd0
Recommends:	libbzip2_1
Recommends:	libcairo2
Recommends:	libcanberra0
Recommends:	libcap2
Recommends:	libcares2
Recommends:	libcelt0_2
Recommends:	libcg0
Recommends:	libcrypto1.0.0
Recommends:	libcups2
Recommends:	libcurl4
Recommends:	libd3dadapter9_1
Recommends:	libdatrie1
Recommends:	libdb5.2
Recommends:	libdbus-1_3
Recommends:	libdbus-glib-1_2
Recommends:	libdbusmenu-glib4
Recommends:	libdconf1
Recommends:	libdconf-gio-modules
Recommends:	libdirect1.6_0
Recommends:	libdirectfb1.6_0
Recommends:	libdri-drivers
Recommends:	libdri-drivers-intel
Recommends:	libdri-drivers-radeon
Recommends:	libdrm2
Recommends:	libdrm_amdgpu1
Recommends:	libdrm_intel1
Recommends:	libdrm_nouveau2
Recommends:	libdrm_radeon1
Recommends:	libdw1
Recommends:	libegl1
Recommends:	libelf1
Recommends:	libexif12
Recommends:	libexpat1
Recommends:	libext2fs2
Recommends:	libffi7
Recommends:	libflac8
Recommends:	libfontconfig1
Recommends:	libfreebl3
Recommends:	libfreeglut3
Recommends:	libfreetype6
Recommends:	libfusion1.6_0
Recommends:	libgamin-1_0
Recommends:	libgbm1
Recommends:	libgcc1
Recommends:	libGConf2_4
Recommends:	libgcrypt20
Recommends:	libgdk_pixbuf2.0_0
Recommends:	libgdk_pixbuf_xlib2.0_0
Recommends:	libggi2
Recommends:	libgii1
Recommends:	libgio2.0_0
Recommends:	libgl1
Recommends:	libglapi0
Recommends:	libglib2.0_0
Recommends:	libglu1
Recommends:	libgmodule2.0_0
Recommends:	libgmp10
Recommends:	libgnutls30
Recommends:	libgobject2.0_0
Recommends:	libgomp1
Recommends:	libgpg-error0
Recommends:	libgphoto2_6
Recommends:	libgphoto2_port12
Recommends:	libgpm2
Recommends:	libgraphite2_3
Recommends:	libgsm1
Recommends:	libgssapi_krb5_2
Recommends:	libgstbase0.10_0
Recommends:	libgstcheck0.10_0
Recommends:	libgstcontroller0.10_0
Recommends:	libgstdataprocol0.10_0
Recommends:	libgstnet0.10_0
Recommends:	libgstreamer0.10_0
Recommends:	libgstreamer1.0_0
Recommends:	libgstreamer-plugins-base0.10
Recommends:	libgstreamer-plugins-base1.0_0
Recommends:	libgthread2.0_0
Recommends:	libgudev1.0_0
Recommends:	libharfbuzz0
Recommends:	libice6
Recommends:	libidn12
Recommends:	libindicator7
Recommends:	libjack0
Recommends:	libjacknet0
Recommends:	libjasper4
Recommends:	libjbig2
Recommends:	libjpeg62
Recommends:	libjpeg8
Recommends:	libjson0
Recommends:	libjson-c5
Recommends:	libk5crypto3
Recommends:	libkeyutils1
Recommends:	libkrb5_3
Recommends:	libkrb5support0
Recommends:	liblame0
Recommends:	liblcms2_2
Recommends:	libldap2.4_2
Recommends:	libllvm12
Recommends:	libllvm15
Recommends:	libllvm-plugins
Recommends:	libltdl7
Recommends:	liblua5.3
Recommends:	liblzma5
Recommends:	libmodplug1
Recommends:	libmount1
Recommends:	libmpg123_0
Recommends:	libmurrine
Recommends:	libncurses6
Recommends:	libncursesw6
Recommends:	libnotify4
Recommends:	libnspr4
Recommends:	libnss3
Recommends:	libnut0
Recommends:	libogg0
Recommends:	libonig5
Recommends:	libopenal1
Recommends:	libopencl1
Recommends:	libopencore-amr0
Recommends:	libopenjpeg5
Recommends:	libopenssl-engines1.1
Recommends:	libopus0
Recommends:	liborc0.4_0
Recommends:	liborc-test0.4_0
Recommends:	libp11-kit0
Recommends:	libpango1.0_0
Recommends:	libpangocairo1.0_0
Recommends:	libpangoft2_1.0_0
Recommends:	libpangox1.0_0
Recommends:	libpangoxft1.0_0
Recommends:	libpci3
Recommends:	libpciaccess0
Recommends:	libpcre1
Recommends:	libpcrecpp0
Recommends:	libpixman1_0
Recommends:	libpng0
Recommends:	libpng15
Recommends:	libpng16
Recommends:	libpulseaudio0
Recommends:	libpulsecommon14.2
Recommends:	libreadline8
Recommends:	librtmp0
Recommends:	libsamplerate0
Recommends:	libsasl2
Recommends:	libsasl2-plug-sasldb
Recommends:	libschroedinger1.0_0
Recommends:	libSDL1.2_0
Recommends:	libSDL2_2.0_0
Recommends:	libSDL2_image2.0_0
Recommends:	libSDL2_mixer2.0_0
Recommends:	libSDL2_net2.0_0
Recommends:	libSDL2_ttf2.0_0
Recommends:	libSDL_image1.2_0
Recommends:	libSDL_mixer1.2_0
Recommends:	libSDL_ttf2.0_0
Recommends:	libselinux1
Recommends:	libslang2
Recommends:	libslang-modules
Recommends:	libsm6
Recommends:	libsmpeg0.4_0
Recommends:	libsndfile1
Recommends:	libsoxr0
Recommends:	libspeex1
Recommends:	libsqlite3_0
Recommends:	libssh2_1
Recommends:	libstdc++6
Recommends:	libswresample3
Recommends:	libswscaler5
Recommends:	libsystemd0
Recommends:	libtasn1_6
Recommends:	libtdb1
Recommends:	libthai0
Recommends:	libtheora0
Recommends:	libtheoradec1
Recommends:	libtheoraenc1
Recommends:	libtiff5
Recommends:	libtinfo6
Recommends:	libtxc-dxtn
Recommends:	libudev1
Recommends:	libusb1.0_0
Recommends:	libuuid1
Recommends:	libva2
Recommends:	libvdpau1
Recommends:	libvdpau-trace
Recommends:	libvo-aacenc0
Recommends:	libvo-amrwbenc0
Recommends:	libvorbis0
Recommends:	libvorbisenc2
Recommends:	libvorbisfile3
Recommends:	libvpx2_3
Recommends:	libvpx6
Recommends:	libvulkan1
Recommends:	libwavpack1
Recommends:	libwrap0
Recommends:	libx11_6
Recommends:	libx11-xcb1
Recommends:	libx264_163
Recommends:	libx265_192
Recommends:	libxau6
Recommends:	libxcb1
Recommends:	libxcb-composite0
Recommends:	libxcb-damage0
Recommends:	libxcb-dpms0
Recommends:	libxcb-dri2_0
Recommends:	libxcb-dri3_0
Recommends:	libxcb-glx0
Recommends:	libxcb-present0
Recommends:	libxcb-randr0
Recommends:	libxcb-record0
Recommends:	libxcb-render0
Recommends:	libxcb-res0
Recommends:	libxcb-screensaver0
Recommends:	libxcb-shape0
Recommends:	libxcb-shm0
Recommends:	libxcb-sync1
Recommends:	libxcb-xf86dri0
Recommends:	libxcb-xfixes0
Recommends:	libxcb-xinerama0
Recommends:	libxcb-xkb1
Recommends:	libxcb-xtest0
Recommends:	libxcb-xv0
Recommends:	libxcb-xvmc0
Recommends:	libxcomposite1
Recommends:	libxcursor1
Recommends:	libxdamage1
Recommends:	libxdmcp6
Recommends:	libxext6
Recommends:	libxfixes3
Recommends:	libxft2
Recommends:	libxi6
Recommends:	libxinerama1
Recommends:	libxml2_2
Recommends:	libxmu6
Recommends:	libxpm4
Recommends:	libxrandr2
Recommends:	libxrender1
Recommends:	libxscrnsaver1
Recommends:	libxshmfence1
Recommends:	libxt6
Recommends:	libxtst6
Recommends:	libxv1
Recommends:	libxvidcore4
Recommends:	libxvmc1
Recommends:	libxxf86vm1
Recommends:	lvm2
Recommends:	tar
Recommends:	vkd3d
Recommends:	vulkan
Recommends:	webcore-fonts
Recommends:	wget
Recommends:	wine64
Recommends:	zenity
Recommends:	zstd
Provides:	portwine-requires = %{EVRD}
Provides:	portwine-suggests = %{EVRD}
Provides:	task-portwine-requires = %{EVRD}
Provides:	task-portwine-recommends = %{EVRD}
Provides:	portwine-recommends = %{EVRD}
Obsoletes:	portwine-recommends <= 4.4
ExclusiveArch:	x86_64

%description
Task with recommends apps for wine, steam, etc.
Ex. portwine-recommends.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11406 |21cr|winewizard-3.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname WineWizard

Summary:	Wine Wizard is a new GUI for Wine written in Qt
Name:		winewizard
Version:	3.0.2
Release:	4
License:	GPLv3+
Group:		Emulators
Url:		http://wwizard.net/
Source0:	https://github.com/LLIAKAJL/WineWizard/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch1:		WineWizard-2.0.0-desktop.patch
Patch2:		WineWizard-2.0.1-no_local.patch
Patch3:		winewizard-qt-5.11.patch
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	bzip2
Requires:	cabextract
Requires:	unzip
Requires:	wget

%description
Wine Wizard is a new GUI for Wine written in Qt.

General feature of Wine Wizard - solutions, that users can create and edit
directly from the application. Solution is a instruction what libraries,
settings and versions of Wine are required for installation and running
MS Windows application. If the solution already created, a user only choose
the solution and run the installation file, Wine Wizard makes all work
automatically.

Unlike PlayOnLinux, a knowledge of the Shell language is not required for
creation of solutions, everything is done with the mouse. Solutions are not
required confirmation and verification, it makes possible to quickly build
database of solutions. In the last resort, a user can write custom script
that will be shown to the user before executing(disabled by default).

%files
%doc LICENSE README.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%qmake_qt5
%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11407 |21cr|winff-1.5.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This is useful to avoid the packaging of useless debug packages:
# we don't need them
%global	_enable_debug_packages %{nil}
%global	 debug_package %{nil}

Summary:	A graphical interface for the video converter ffmpeg
Name:		winff
Version:	1.5.5
Release:	2
License:	GPLv3+
Group:		Video
# Urls dead: now replaced by imgfuel online service
Url:		http://winff.org
Source0:	%{name}-%{version}-source.tar.gz
Patch0:		winff-1.5.5-add-default-pdf-launcher-to-list-of-pdf-viewers.patch
Patch1:		winff-1.5.5-fix-upstream-version-number-in-About-menu.patch
Patch2:		winff-1.5.5-fix-up-the-symbols.patch
Patch3:		winff-1.5.5-lazarus1.8.patch
BuildRequires:	lazarus >= 2.0.0
BuildRequires:	dos2unix
Requires:	ffmpeg
Requires:	xterm
#lazarus not available on aarch64 and other
ExclusiveArch:	%{ix86} %{x86_64}

%description
WinFF is a GUI for the command line video converter, FFMPEG. It will convert
almost any video file that FFmpeg will convert. WinFF does multiple files in
multiple formats at one time. You can for example convert mpeg's, flv's, and
mov's, all into avi's all at once.

%files
%doc *.txt docs/*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*.png
%{_iconsdir}/*
%{_mandir}/man1/*

#------------------------------------------------------------------

%prep
%setup -qn %{name}
%apply_patches

# Fix EOL (Version 1.2.0)
dos2unix {changelog,README-Presets,README}.txt
chmod -x {README,README-Presets,changelog}.txt

pushd docs
	find . -type f -exec chmod -x {} \;
popd


%build
# Hack to get lazarus with correct options in lazarus-tmp dir
mkdir our-lazarus-tmp
cp %{_sysconfdir}/lazarus/environmentoptions.xml our-lazarus-tmp/
sed -i 's|__FPCSRCDIR__|%{_datadir}/fpcsrc|g' our-lazarus-tmp/environmentoptions.xml
sed -i 's|__LAZARUSDIR__|%{_libdir}/lazarus/|g' our-lazarus-tmp/environmentoptions.xml
# use lazarus-tmp for configuration
lazbuild --ws=gtk2 --pcp=our-lazarus-tmp -B winff.lpr


%install
mkdir -p %{buildroot}{%{_bindir},%{_datadir}/%{name}/languages}

# Install winff binary
install %{name} %{buildroot}%{_bindir}

# Install languages
install -m 0755 languages/*.po %{buildroot}%{_datadir}/%{name}/languages
chmod -x  %{buildroot}%{_datadir}/%{name}/languages/*.po

# Install presets
install -m 0644 presets.xml %{buildroot}%{_datadir}/%{name}

mkdir -p %{buildroot}{%{_datadir}/pixmaps,%{_datadir}/applications,%{_mandir}/man1}

# Install man page
install -m 0644 %{name}.1 %{buildroot}%{_mandir}/man1

# Install icons
install winff-icons/48x48/%{name}.png %{buildroot}%{_datadir}/pixmaps
for i in 16 24 32 48; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps
	install winff-icons/"$i"x"$i"/*.png %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps
done

# Desktop file
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=WinFF
GenericName=WinFF
Comment=A GUI for FFMPEG
Exec=%{name}
Icon=%{name}
MimeType=application/winff;
Categories=AudioVideo;Video;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11408 |21cr|winurl-1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		winurl
Version:	1.3
Release:	4
Summary:	WinURL creates and opens Internet ShortCuts (*.url)
Group:		File tools
License:	GPLv3+
URL:		https://github.com/AKotov-dev/winurl
Source0:	https://github.com/AKotov-dev/winurl/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	icons.tar.gz
BuildRequires:	xdg-utils
BuildRequires:	gettext
BuildRequires:	hicolor-icon-theme
BuildRequires:	lazarus
Recommends:	xdg-utils
Recommends:	hicolor-icon-theme

%description
WinURL associates the launch of *.url files (application/x-mswinurl) via a shortcut script
and creates Internet ShortCuts that is compatible with Windows
...
More information: /usr/share/doc/package_name/repack.txt

%files
%doc ../README.md
%license ../LICENSE
%{_datadir}/WinURL
%{_datadir}/nemo
%{_datadir}/file-manager
%{_datadir}/pixmaps/WinURL.png
%{_iconsdir}/hicolor/*/*/*.png
%{_datadir}/applications/WinURL.desktop

%post
#Launcher with *.desktop associate (install)
xdg-mime default WinURL.desktop application/x-mswinurl
#Icons and cache update (install)
xdg-icon-resource forceupdate; gtk-update-icon-cache -q -f /usr/share/icons/hicolor;
update-desktop-database -q /usr/share/applications;

%postun
#Launcher without *.desktop associate (remove)
xdg-mime default WinURL.desktop application/x-mswinurl;
#Icons and cache update (remove)
xdg-icon-resource forceupdate; gtk-update-icon-cache -q -f /usr/share/icons/hicolor;
update-desktop-database -q /usr/share/applications;

#------------------------------------------------------------
%prep
%setup -n %{name}-%{version}/WinURL -a1

# remove prebuild file
rm -f WinURL

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_datadir}/{pixmaps,WinURL,applications,icons}
mkdir -p %{buildroot}%{_datadir}/WinURL/languages

cp WinURL %{buildroot}%{_datadir}/WinURL
cp usr/share/applications/WinURL.desktop %{buildroot}%{_datadir}/applications/
cp -r usr/share/file-manager %{buildroot}%{_datadir}/
cp -r usr/share/nemo %{buildroot}%{_datadir}/
cp -r icons/hicolor %{buildroot}%{_iconsdir}/
cp icons/WinURL.png %{buildroot}%{_datadir}/pixmaps/
cp languages/*.mo %{buildroot}%{_datadir}/WinURL/languages/
cp -r ico %{buildroot}%{_datadir}/WinURL/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11409 |21cr|wirec-0-3.git6bcb88.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6bcb8851c38c6cd658bd3ea1475a4e1fe1789b1e
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Convert BigBlueButton recordings (or any other webpage) to video file by screencasting
Name:		wirec
Version:	0
Release:	3.git%{commit_short}.1
License:	GPLv3
Group:		Archiving/Other
Url:		https://gitlab.com/mikhailnov/wirec
Source0:	https://gitlab.com/mikhailnov/wirec/-/archive/%{commit}/wirec-%{commit}.tar.gz
BuildArch:	noarch
BuildRequires:	fonts-ttf-thai
BuildRequires:	libreoffice-draw
Requires:	bash
Requires:	%{_bindir}/chromium-browser
Requires:	%{_bindir}/ffmpeg
Requires:	%{_bindir}/ffprobe
Requires:	%{_bindir}/pacmd
Requires:	%{_bindir}/pactl
Requires:	%{_bindir}/xdotool
Requires:	%{_bindir}/Xephyr
Requires:	%{_bindir}/xfwm4
Requires:	%{_bindir}/Xvfb
# GUI is optional
Recommends:	zenity

%description
Convert BigBlueButton recordings (or any other webpage) to video file by screencasting

%files
%doc debian/changelog
%{_bindir}/wirec
%{_datadir}/wirec
%{_datadir}/icons/wirec.svg
%{_datadir}/applications/wirec.desktop

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11410 |21cr|wire-desktop-3.29.3004-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __provides_exclude_from %{_libdir}/%{name}/.*\\.so
%define privlibs libffmpeg|libnode
%define __requires_exclude ^(%{privlibs})\\.so|lodash.some|commander|glob|uglify-js

%define debug_package %{nil}

Summary:	Modern communication, full privacy
Name:		wire-desktop
Version:	3.29.3004
Release:	1
License:	GPLv3
Group:		Networking/Instant messaging
Url:		https://wire.com
Source0:	https://github.com/wireapp/wire-desktop/archive/linux/%{version}.tar.gz?/%{name}-linux-%{version}.tar.gz
Source1:	wire-desktop.rpmlintrc
Source2:	%{name}.desktop
BuildRequires:	desktop-file-utils
BuildRequires:	git
BuildRequires:	hicolor-icon-theme
BuildRequires:	yarn
ExclusiveArch:	x86_64

%description
Wire is an open source, cross-platform, encrypted instant messaging client. It
uses the Internet to make voice and video calls; send text messages, files,
images, videos, audio files and user drawings depending on the clients used. It
can be used on any of the available clients, requiring a phone number or email
for registration.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-linux-%{version}

# Create launcher script
cat << EOF > %{name}-launcher
#!/bin/sh

%{_libdir}/%{name}/%{name}
EOF

%build
yarn
export LINUX_TARGET=tar.xz
yarn build:linux

%install
# Place files
install -d %{buildroot}%{_libdir}/%{name}
cp -r wrap/dist/linux*unpacked/* \
	%{buildroot}%{_libdir}/%{name}/

# Place launcher script
install -Dm755 %{name}-launcher %{buildroot}/usr/bin/%{name}

# Place desktop entry and icon
install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
for res in 32x32 256x256; do
	install -Dm644 resources/icons/${res}.png %{buildroot}/usr/share/icons/hicolor/${res}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11411 |21cr|wireguard-tools-1.0.20210914-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		wireguard-tools
Version:	1.0.20210914
Release:	1
URL:		https://www.wireguard.com/
Summary:	Fast, modern, secure VPN tunnel
Group:          Networking/Remote access
License:	GPLv2
Source0:	https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-%{version}.tar.xz
BuildRequires:	systemd

# Commenting this out until the 5.6 kernel comes out.
# Requires:     (kmod(wireguard.ko) if kernel)

%description
WireGuard is a novel VPN that runs inside the Linux Kernel and uses
state-of-the-art cryptography (the "Noise" protocol). It aims to be
faster, simpler, leaner, and more useful than IPSec, while avoiding
the massive headache. It intends to be considerably more performant
than OpenVPN. WireGuard is designed as a general purpose VPN for
running on embedded interfaces and super computers alike, fit for
many different circumstances. It runs over UDP.

This package provides the wg binary for controlling WireGuard.

%files
%doc README.md COPYING
%doc %{_defaultdocdir}/%{name}/contrib/
%{_bindir}/wg
%{_bindir}/wg-quick
%{_datarootdir}/bash-completion/completions/wg
%{_datarootdir}/bash-completion/completions/wg-quick
%{_unitdir}/wg-quick@.service
%{_unitdir}/wg-quick.target
%{_mandir}/man8/wg.8*
%{_mandir}/man8/wg-quick.8*

#-----------------------------------------------------------------
%prep
%setup -q

%build
## Start DNS Hatchet
pushd contrib/dns-hatchet
./apply.sh
popd
## End DNS Hatchet

%make_build RUNSTATEDIR=%{_rundir} -C src

%install
mkdir -p %{buildroot}%{_bindir}

%make_install BINDIR=%{_bindir} MANDIR=%{_mandir} RUNSTATEDIR=%{_rundir} SYSTEMDUNITDIR=%{_unitdir} \
              WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes WITH_SYSTEMDUNITS=yes \
              -C src

mkdir -p %{buildroot}%{_defaultdocdir}/%{name}/contrib/
cp -fr %{_builddir}/wireguard-tools-%{version}/contrib/* \
   %{buildroot}%{_defaultdocdir}/%{name}/contrib/
find %{buildroot}%{_defaultdocdir}/%{name}/contrib/ -type f -name "*.gitignore" -exec rm -f {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11412 |21cr|wise2-2.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname   wise

Name:		wise2
Version:	2.4.1
Release:	1
Summary:	Comparisons of DNA and protein sequences
Group:		Sciences/Biology
License:	GPL
URL:		http://www.ebi.ac.uk/~birney/wise2
Source:		http://www.ebi.ac.uk/~birney/wise2/%{oname}%{version}.tar.gz
Patch0:		fix_getline.patch
Patch1:		wise2.4.1-replace-isnumber.patch
Patch2:		wise2.4.1-fix-makefile.patch
Patch3:		wise2.4.1-clean-makefile.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	flex
Obsoletes:	wise = 2.4.1-3.mga5

%description
Wise2 is a package focused on comparisons of biopolymers, commonly DNA and 
protein sequence. Wise2's particular forte is the comparison of DNA sequence 
at the level of its protein translation. This comparison allows the simulta-
neous prediction of say gene structure with homology based alignment.

The Wise2 package was principally written by Ewan Birney, who wrote the main
genewise and estwise programs. The protein comparison database search program
was written by Richard Copley using the underlying Wise2 libraries.
Wise2 also uses code from Sean Eddy for reading HMMs and
for Extreme value distribution fitting.

%prep
%setup -q -n %{oname}%{version}
%autopatch -p0

%build
cd src
%make all || :
cd ../src/dyc/
%make newdyc || :
export PATH="$PATH:$PWD"
%make linux
cd ../../src
export WISECONFIGDIR="$PWD/../wisecfg"
%make init
%make CFLAGS="-c %{optflags} `pkg-config --libs glib-2.0 --cflags glib-2.0`" all

%install

install -d -m 755 %{buildroot}%{_bindir}
install -m 755 src/models/{pswdb,psw,genewisedb,estwisedb,estwise,genewise,dba,dnal,genomewise} %{buildroot}%{_bindir}

install -d -m 755 %{buildroot}%{_datadir}/%{oname}
install -m 644 wisecfg/* %{buildroot}%{_datadir}/%{oname}

# configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
echo "export WISECONFIGDIR=%{_datadir}/%{oname}" > %{buildroot}%{_sysconfdir}/profile.d/%{oname}.sh
echo "setenv WISECONFIGDIR %{_datadir}/%{oname}" > %{buildroot}%{_sysconfdir}/profile.d/%{oname}.csh

%files
%doc README LICENSE docs
%{_bindir}/*
%{_datadir}/%{oname}
%config(noreplace) %{_sysconfdir}/profile.d/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11413 |21cr|wise-2.4.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Comparisons of DNA and protein sequences
Name:		wise
Version:	2.4.1
Release:	4
License:	GPLv2+
Group:		Sciences/Biology
Url:		http://www.ebi.ac.uk/~birney/wise2
Source0:	http://www.ebi.ac.uk/~birney/wise2/%{name}%{version}.tar.gz
Patch0:		fix_getline.patch
Patch1:		wise2.4.1-replace-isnumber.patch
Patch2:		wise2.4.1-fix-makefile.patch
Patch3:		wise2.4.1-clean-makefile.patch
BuildRequires:	flex
BuildRequires:	pkgconfig(glib-2.0)

%description
Wise2 is a package focused on comparisons of biopolymers, commonly DNA and 
protein sequence. Wise2's particular forte is the comparison of DNA sequence 
at the level of its protein translation. This comparison allows the simulta-
neous prediction of say gene structure with homology based alignment.

The Wise2 package was principally written by Ewan Birney, who wrote the main
genewise and estwise programs. The protein comparison database search program
was written by Richard Copley using the underlying Wise2 libraries.
Wise2 also uses code from Sean Eddy for reading HMMs and
for Extreme value distribution fitting.

%files
%doc README LICENSE docs
%config(noreplace) %{_sysconfdir}/profile.d/*
%{_bindir}/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}%{version}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0

%build
cd src
%make all || :
cd ../src/dyc/
%make newdyc || :
export PATH="$PATH:$PWD"
%make linux
cd ../../src
export WISECONFIGDIR="$PWD/../wisecfg"
%make init
%make CFLAGS="-c %{optflags} `pkg-config --libs glib-2.0 --cflags glib-2.0`" all

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 src/models/{pswdb,psw,genewisedb,estwisedb,estwise,genewise,dba,dnal,genomewise} %{buildroot}%{_bindir}

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 644 wisecfg/* %{buildroot}%{_datadir}/%{name}

# configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
echo "export WISECONFIGDIR=%{_datadir}/%{name}" > %{buildroot}%{_sysconfdir}/profile.d/%{name}.sh
echo "setenv WISECONFIGDIR %{_datadir}/%{name}" > %{buildroot}%{_sysconfdir}/profile.d/%{name}.csh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11414 |21cr|wizardpen-0.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __libtoolize /bin/true

Name:		wizardpen
Version:	0.8.1
Release:	4
Summary:	Wizardpen Driver for Linux
Group:		System/X11
License:	GPLv2+
URL:		https://launchpad.net/wizardpen
Source0:	http://launchpad.net/wizardpen/trunk/0.8/+download/xorg-input-%{name}-%{version}.tar.bz2
BuildRequires:	x11-proto-devel
BuildRequires:	x11-server-devel
BuildRequires:	pkgconfig(xorg-macros)

%description
Wizardpen Driver for Linux.
What are referred to as "Genius Tablets" go by many names:

    * DigiPro 5x4 Graphics Tablet
    * Digital Ink Pad (A4 format)
    * G-pen
    * EasyPen i405
    * Genius Wizardpen
    * Genius Mousepen
    * Genius
    * iBall
    * Manhattan
    * Pentagram
    * QWare
    * Trust TB-3100
    * Trust TB-5300
    * Trust TB-6300
    * UC-LOGIC 

%prep
%setup -q -n xorg-input-%{name}-%{version}

%build
#autoreconf -fi
%configure --with-xorg-module-dir=%{_libdir}/xorg/modules/
%make

%install
make install DESTDIR=$RPM_BUILD_ROOT

%files
%doc
%{_libdir}/xorg/modules/input/wizardpen_drv.so
%{_bindir}/wizardpen-calibrate
%{_datadir}/X11/xorg.conf.d/70-wizardpen.conf
%{_sysconfdir}/udev/rules.d/67-xorg-wizardpen.rules
%{_mandir}/man4/%name.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11415 |21cr|wizznic-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}
%define oname Wizznic
Name:           wizznic
Version:        1.1
Release:        1
Summary:        Brick-matching puzzle game
Group:          Games/Puzzles
License:        GPLv3+
Url:            http://wizznic.org/
# https://github.com/DusteDdk/Wizznic
Source0:        https://github.com/DusteDdk/Wizznic/archive/refs/tags/%{oname}-%{version}.tar.gz
BuildRequires:  pkgconfig(sdl)
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(glu)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(SDL_mixer)
BuildRequires:  imagemagick
BuildRequires:  desktop-file-utils
Requires:       %{name}-data >= %{version}

%description
Wizznic is a brick-matching puzzle-game, an improved version of Puzznic.
The challenge is to clear each level of bricks by moving the bricks next
to each other, this sounds a lot easier than it is. The bricks are heavy,
so you can only push them, not lift them up.

%files
%doc doc/*.txt README.md
%{_datadir}/applications/%{name}.desktop
%{_gamesbindir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man?/%{name}.*

#----------------------------------------------------------------------

%package data
Summary:        Arch-independent data files for the Wizznic game
BuildArch:      noarch

%description data
This package contains arch-independent data files for Wizznic,
a brick-matching puzzle game.

%files data
%doc data/about.txt
%{_gamesdatadir}/%{name}/

#----------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
sed -i 's|chmod -R 755|#chmod -R 755|' Makefile.linux

%build
%setup_compile_flags
%make  CFLAGS_OPT="%{optflags}" \
    DATADIR="%{_gamesdatadir}/%{name}/"  \
    BINDIR="%{_gamesbindir}" \
    -f Makefile.linux



%install
%makeinstall_std -f Makefile.linux \
    BINDIR=%{_gamesbindir} \
    DATADIR=%{_gamesdatadir}/%{name}/

# menu entry
install -d %{buildroot}%{_datadir}/applications
desktop-file-install tools/releaser/data/lin/%{name}.desktop \
  --remove-category=ActionGame \
  --remove-category=ArcadeGame \
  --add-category=LogicGame \
  --dir=%{buildroot}%{_datadir}/applications

# icons
for size in 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size tools/releaser/data/lin/%{name}.png \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11416 |21cr|wkhtmltopdf-0.12.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major		0
%define libname		%mklibname wkhtmltox %{major}
%define develname	%mklibname wkhtmltox -d

Name:		wkhtmltopdf
Version:	0.12.6
Release:	3
Summary:	Simple utility to convert html to pdf
License:	GPLv3+
Group:		System/Printing
URL:		http://wkhtmltopdf.org/
Source0:	https://github.com/wkhtmltopdf/wkhtmltopdf/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
Requires:	%{_lib}qt5gui5-offscreen%{_isa}

%description
Simple utility to convert html to pdf using the webkit
rendering engine and Qt.

%files
%doc AUTHORS CHANGELOG.md CHANGELOG-OLD README.md
%{_bindir}/wkhtmltoimage
%{_bindir}/wkhtmltopdf
%{_mandir}/man1/wkhtmltoimage.1.*
%{_mandir}/man1/wkhtmltopdf.1.*

#-----------------------------------------------------------------
%package -n %{libname}
Summary:	Libraries for developing apps which will use bzip2
Group:		System/Libraries

%description -n %{libname}
Library of  %{name} functions, for developing apps which will use the
%{name} library.

%files -n %{libname}
%license LICENSE
%{_libdir}/libwkhtmltox.so.%{major}{,.*}
#-----------------------------------------------------------------

%package -n %{develname}
Summary:	Header files for developing apps which will use bzip2
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{develname}
%doc examples/
%{_libdir}/libwkhtmltox.so
%{_includedir}/wkhtmltox/
#-----------------------------------------------------------------

%prep
%autosetup -p1

# libdir handling.. better handling needed
sed -i.lib -e \
	'/INSTALLBASE/s|lib|%{_lib}|' \
	src/lib/lib.pro

%build
%qmake_qt5
%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11417 |21cr|wlandetect-0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Simple wireless roaming daemon
Name: 		wlandetect
Version: 	0.3
Release: 	14
License: 	GPL
Group: 		System/Configuration/Networking
URL: 		http://jelmer.vernstok.nl/oss/wlandetect/
Source: 	%{name}-%{version}.tar.bz2
Patch1:		wlandetect-init.d.patch
Patch2:		wlandetect-pid.patch
BuildArch:	noarch
Requires:	wireless-tools
Buildroot: 	%{_tmppath}/%{name}-%{version}-buildroot

%description
Wlandetect is a very simple Perl script that checks which access points and
other peers can be reached and executes some commands based on what it has
found. It is very useful if you often switch between various wireless
environments.

%prep

%setup -q
%patch1 -p0 -b .init
%patch2 -p0 -b .pid

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}/%{_mandir}/man8
cp wlandetect.8 %{buildroot}/%{_mandir}/man8
mkdir -p %{buildroot}/%{_sbindir}
cp wlandetect %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_sysconfdir}/rc.d/init.d
perl -p -e 's,/usr/local/sbin,%{_sbindir},g' %{name}-init.d > %{buildroot}/%{_sysconfdir}/rc.d/init.d/%{name}
echo "# FORMAT: ESSID<tab><tab>commands" > %{buildroot}/%{_sysconfdir}/wlandetect.conf
echo "# use @DEV@ for device name" >>  %{buildroot}/%{_sysconfdir}/wlandetect.conf
echo "default		/sbin/iwconfig @DEV@ essid any key ""; /sbin/ifup @DEV@; dhclient @DEV@" >> %{buildroot}/%{_sysconfdir}/wlandetect.conf
echo "linksys		/sbin/iwconfig @DEV@ essid any key ""; /sbin/ifup @DEV@; dhclient @DEV@" >> %{buildroot}/%{_sysconfdir}/wlandetect.conf

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS COPYING README wlandetect.conf.example
%{_sbindir}/%{name}
%attr(0755,root,root) %{_initrddir}/%{name}
%config(noreplace) %{_sysconfdir}/wlandetect.conf
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11418 |21cr|wl-clipboard-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           wl-clipboard
Version:        2.1.0
Release:        1
Summary:        Command-line copy/paste utilities for Wayland
Group:          Graphical desktop/Other
License:        GPLv3+
URL:            https://github.com/bugaevc/wl-clipboard
Source0:        https://github.com/bugaevc/wl-clipboard/archive/refs/tags/v%{version}.tar.gz

BuildRequires:  meson
BuildRequires:  wayland-devel
BuildRequires:  wayland-protocols-devel

Recommends:     xdg-utils
Recommends:     mailcap

%description
Command-line Wayland clipboard utilities, `wl-copy` and `wl-paste`,
that let you easily copy data between the clipboard and Unix pipes,
sockets, files and so on.

%prep
%autosetup -n %{name}-%{version}

%build
%meson
%meson_build

%install
%meson_install

%check
%meson_test

%files
%license COPYING
%doc README.md
%{_bindir}/wl-copy
%{_bindir}/wl-paste
%{_mandir}/man1/wl-clipboard.1.*
%{_mandir}/man1/wl-copy.1.*
%{_mandir}/man1/wl-paste.1.*
%{_datadir}/bash-completion/completions/wl-*
%{_datadir}/zsh/site-functions/_wl-*
%{_datadir}/fish/vendor_completions.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11419 |21cr|wlroots-0.16.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A modular Wayland compositor library
Name:		wlroots
Version:	0.16.2
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://gitlab.freedesktop.org/wlroots/wlroots
Source0:	https://gitlab.freedesktop.org/wlroots/wlroots/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	glslang
BuildRequires:	meson
BuildRequires:	hwdata
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libseat)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-renderutil)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xwayland)

%description
A modular Wayland compositor library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lightweight KMS plane library
Group:		System/Libraries

%description -n %{libname}
A modular Wayland compositor library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc README.md
%license LICENSE
%{_includedir}/wlr
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11420 |21cr|wmapm-3.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:  Battery/Power status monitor for WindowMaker on laptops
Name:		wmapm
Version:	3.1
Release:	17
License:	GPL
Group:		Graphical desktop/WindowMaker
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
Source10:		wmapm-16x16.png
Source11:		wmapm-32x32.png
Source12:		wmapm-48x48.png
URL:		http://nis-www.lanl.gov/~mgh/
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xext)

%description
WMAPM monitors the APM statistics through the APM support in
the Linux and FreeBSD Kernels.  This information, presented in
a nice visual format, can be invaluable on laptops (as I have
found in my recent/continual travels as a Field Engineer for a
small computer hardware manufacturer).
WMAPM currently provides:

        * Status of power supply (battery or AC);
        * Percentage of battery remaining (numeric and meter);
        * Battery charging status;
        * Time left to battery depletion;
        * High/Low/Critical battery status (Red/Yellow/Green);

%prep
rm -rf %buildroot
%setup -q

%build
make -C %name COPTS="$RPM_OPT_FLAGS"

%install
[ -d %buildroot ] && rm -rf %buildroot

mkdir -p %buildroot{%_bindir,%_miconsdir,%_liconsdir,%_mandir/man1/}
install -m 755 wmapm/wmapm %buildroot%_bindir
install -m 644 wmapm/wmapm.1 %buildroot%_mandir/man1/

install -m 644 %SOURCE10 %buildroot%_miconsdir/%name.png
install -m 644 %SOURCE11 %buildroot%_iconsdir/%name.png
install -m 644 %SOURCE12 %buildroot%_liconsdir/%name.png


install -m 755 -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=WmApm
Comment=Battery/Power status monitor for WindowMaker on laptops
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-System-Monitoring;System;Monitor;
EOF


%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif


%clean
[ -z %buildroot ] || {
    rm -rf %buildroot
}

%files
%defattr (-,root,root)
%doc BUGS CHANGES COPYING HINTS INSTALL README TODO
%_bindir/*
%_liconsdir/%name.png
%_miconsdir/%name.png
%_iconsdir/%name.png
%{_datadir}/applications/mandriva-%{name}.desktop
%_mandir/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11421 |21cr|wmbattery-2.50-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Battery info docklet for WindowMaker
Name:		wmbattery
Version:	2.50
Release:	8
License:	GPLv2+
Group:		Graphical desktop/WindowMaker
Url:		http://kitenet.net/programs/wmbattery/
Source0:	http://www.dockapps.net/download/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	apmd-devel
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)

%description
wmbattery displays the status of your laptop's battery in a small icon. This
includes if it is plugged in, if the battery is charging, how many minutes of
battery life remain, battery life remaining (with both a percentage and a
graph), and battery status (high - green, low - yellow, or critical - red).
It works for both ACPI and APM based systems.

%files
%doc TODO README
%doc %{_mandir}/*/*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}/*.xpm

#----------------------------------------------------------------------------

%prep
%setup -q

%build
sed -i \
	-e '/^icondir/s:icons:pixmaps:' \
	-e '/^USE_HAL/d' \
	autoconf/makeinfo.in
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=%{name}
Name=WMbattery
Comment=Battery status docklet
Comment[ru]=Индикатор заряда батареи
Categories=System;Monitor;
EOF

#icons
convert -size 48x48 face.xpm %{buildroot}/%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11422 |21cr|wmcalc-0.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		wmcalc
Version:	0.6
Release:	4
Summary:	Calculator dockapp for windowmaker
Url:		http://packages.debian.org/unstable/x11/wmcalc.html
Source:		http://ftp.debian.org/debian/pool/main/w/wmcalc/wmcalc_%{version}.orig.tar.gz
Patch1:         %{name}-patch_other_locales.patch
License:	GPL
Group:		Graphical desktop/Other
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
wmcalc is a small calculator meant for the WindowMaker dock or Afterstep
Wharf.  It is a simple calculator with basic functions and memory slots,
and can launch any external application for more complex calculations.

%prep
%setup -q -n dockapps-43ddcdf
%patch1 -p1 -b .orig

%build
# (tv) fix build:
perl -pi -e 's!/usr/local/include!/usr/include/X11/!' Makefile
%make CFLAGS="%{optflags}"


%install
install -D %{name} %{buildroot}%{_bindir}/%{name}

%clean


%files
%defattr(0644,root,root,0755)
%doc README
%defattr(0755,root,root,0755)
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11423 |21cr|wmctrl-1.07-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name	wmctrl
%define	version	1.07

Name:		%name
Version:	%version
Release:	12
License:	GPLv2+
Group:		System/X11
Url:		http://sweb.cz/tripie/utils/wmctrl/
Source:		%name-%version.tar.bz2
Patch0:         http://ftp.de.debian.org/debian/pool/main/w/wmctrl/wmctrl_1.07-6.diff.gz
Patch1:         wmctrl-sticky-workspace.patch
Summary:	Command line tool to interact with an EWMH/NetWM compatible X Window Manager
BuildRequires:	glib2-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%description
Wmctrl provides command line access to almost all the features defined
in the EWMH specification. Using it, it's possible to, for example,
obtain information about the window manager, get a detailed list of
desktops and managed windows, switch and resize desktops, change number
of desktops, make windows full-screen, always-above or sticky, and
activate, close, move, resize, maximize and minimize them.

The command line access makes it easy to automate these tasks and
execute them from any application that is able to run a command in
response to some event.

Please note that wmctrl only works with window managers which implement
this specification.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
%_bindir/*
%_mandir/man1/wmctrl.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11424 |21cr|wmcube-1.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	 Realtime rotating 3d-object and CPU load in a small dock app
Name:		wmcube
Version:	1.0.2
Release:	3
License:	GPL
Group:		Monitoring
Source0:	%{name}-%{version}.tar.gz
Source1:	%{name}-icons.tar.bz2
URL:		http://boombox.campus.luth.se/projects.php
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)


%description
wmCube is a dockapp that displays a realtime rotating 3d-object 
and the current CPU load.


%prep

%setup -q

%build
make -C wmcube -f Makefile.LINUX CFLAGS="%{optflags}"

%install
install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}
tar xOjf %SOURCE1 16x16.png > %{buildroot}%{_miconsdir}/%{name}.png
tar xOjf %SOURCE1 32x32.png > %{buildroot}%{_iconsdir}/%{name}.png
tar xOjf %SOURCE1 48x48.png > %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_bindir}
install -m 755 wmcube/wmcube %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/wmcube
install -m 644 3D-objects/* %{buildroot}%{_datadir}/wmcube


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=WmCube
Comment=%{summary}
Exec=%{_bindir}/%{name} -o %{_datadir}/%{name}/ball-solid.wmc
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-System-Monitoring;System;Monitor;
EOF

%files
%doc CHANGES INSTALL README
%{_bindir}/%{name}
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11425 |21cr|wmdocker-1.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name docker

Name: 	 	wmdocker
Summary: 	Standalone system tray
Version: 	1.5
Release: 	10
Source:		%{upstream_name}-%{version}.tar.bz2
Patch0:		docker-1.5-link.patch
URL:		http://icculus.org/openbox/2/docker/
License:	GPL
Group:		Graphical desktop/Other
BuildRequires:	pkgconfig(x11) glib2-devel

%description
Docker is a docking application (WindowMaker dock app) which acts as a system
tray for KDE3 and GNOME2. It can be used to replace the panel in either
environment, allowing you to have a system tray without running the KDE/GNOME
panel or environment. Originally written and designed to work with Openbox 2,
it should work fine in any window manager that supports WindowMaker dock apps.

%prep
%setup -qn %{upstream_name}-%{version}
%patch0 -p0

%build
%make CFLAGS="%{optflags}" XLIBPATH=%{_libdir} LDFLAGS="%build_ldflags"
										
%install
install -D -m755 %{upstream_name} %{buildroot}/%{_bindir}/%{upstream_name}

%clean

%files
%doc README
%{_bindir}/%{upstream_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11426 |21cr|wmfishtime-1.24-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Analog clock with background fish tank in a dockapp
Name:		wmfishtime
Version:	1.24
Release:	10
License:	GPL
Group:		Monitoring
Url:		http://www.ne.jp/asahi/linux/timecop/
Source0:	http://www.ne.jp/asahi/linux/timecop/software/%{name}-%{version}.tar.gz
Source1:	%{name}-icons.tar.bz2
Patch0:		wmfishtime-1.24-Makefile.patch
BuildRequires:	glibc-devel
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(gtk+-2.0)


%description
Well, this is just your standard time dockapp. Top part has the clock face,
bottom part has day of the week, followed by day, followed by month. Yellow
hand counts seconds, green hand counts minutes, red hand counts hours. Few
seconds after startup there are at least 32 bubbles floating up behind the
clock face.  There are 4 fishes randomly swimming back and forth. If you move
your mouse inside the dockapp window, the fish will get scared and run away.
If you compiled in mail checking (default), then whenever you get new mail
in the file pointed to by the $MAIL variable, it will display green weed
partially blocking the day/month counter, to remind you to read your mail.
If $MAIL is not set, nothing happens.

%files
%doc ALL_I_GET_IS_A_GRAY_BOX CODING README AUTHORS COPYING
%{_bindir}/*
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*
#---------------------------------------------------------------------------------
%prep
%autosetup -p1

%build
%make EXTRA="%{optflags} -lX11 -lm" LDFLAGS="%{ldflags}"

%install
%makeinstall_std

# icons
install -m 755 -d %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
tar xOjf %{SOURCE1} %{name}-16x16.png > %{buildroot}%{_miconsdir}/%{name}.png
tar xOjf %{SOURCE1} %{name}-32x32.png > %{buildroot}%{_iconsdir}/%{name}.png
tar xOjf %{SOURCE1} %{name}-48x48.png > %{buildroot}%{_liconsdir}/%{name}.png

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name} -b
Icon=%{name}
Categories=System;Monitor;
Name=WmFishTime
Comment=Analog clock in a tank fish
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11427 |21cr|wmix-3.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dockapp OSS sound mixer
Name:		wmix
Version:	3.2
Release:	11
License:	GPLv2+
Group:		Sound
#URL is dead
Url:		http://dockapps.org/file.php/id/58
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)

%description
This is a complete dockapp mixer utilizing the OSS mixer API:
* Has a nice On-Screen-Display to visualize current volume levels.
* Can adjust main volume, balance, recording status, and mute/unmute channels.
* Supports mousewheel to adjust the volume settings.
* Supports user specified signals to adjust the volume remotely.
* User configuration file can be used to set options.

%files
%doc AUTHORS COPYING README BUGS NEWS
%{_bindir}/%{name}
%attr(644,root,man) %{_mandir}/man1/*
%{_liconsdir}/%{name}.xpm
%{_miconsdir}/%{name}.xpm
%{_iconsdir}/%{name}.xpm
%{_datadir}/applications/rosa-%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"


%install
install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}
tar xOjf %{SOURCE1} %{name}-16x16.xpm > %{buildroot}%{_miconsdir}/%{name}.xpm
tar xOjf %{SOURCE1} %{name}-32x32.xpm > %{buildroot}%{_iconsdir}/%{name}.xpm
tar xOjf %{SOURCE1} %{name}-48x48.xpm > %{buildroot}%{_liconsdir}/%{name}.xpm

mkdir -p %{buildroot}%{_bindir}/
install -m 755 %{name} %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_mandir}/man1
gunzip -c wmix.1x.gz | bzip2 -9 -c - > %{buildroot}%{_mandir}/man1/wmix.1.bz2


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=WMix
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;Audio;AudioVideo;Midi;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11428 |21cr|wml-2.32.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# do not provide/require private perl modules
%if %{_use_internal_dependency_generator}
%global __requires_exclude GD\\.so|perl\\(HTML::Clean\\)|perl\\(WML::GD\\)
%global __provides_exclude GD\\.so|perl\\(HTML::Clean\\)|perl\\(WML::GD\\)
%else
%define _requires_exceptions GD.so\\|perl(HTML::Clean)\\|perl(WML::GD)
%define _provides_exceptions GD.so\\|perl(HTML::Clean)\\|perl(WML::GD)
%endif

Summary:	Website META Language
Name:		wml
Version:	2.32.0
Release:	1
License:	GPLv2+
Group:		Publishing
URL:		https://github.com/thewml/website-meta-language
Source:		https://github.com/thewml/website-meta-language/releases/download/releases/wml-%{version}/wml-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	libtool
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	perl-devel
BuildRequires:	gdbm-devel
BuildRequires:	db-devel
BuildRequires:	gettext-devel
BuildRequires:	lynx
BuildRequires:	perl(Bit::Vector)
BuildRequires:	perl(Carp::Always)
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Which)
BuildRequires:	perl(GD)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(HTML::Clean)
BuildRequires:	perl(Image::Size)
BuildRequires:	perl(IO::All)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Perl::Critic)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Time::HiRes)

Requires:	perl(Bit::Vector)
Requires:	perl(Carp::Always)
Requires:	perl(Class::XSAccessor)
Requires:	perl(File::Spec)
Requires:	perl(File::Which)
Requires:	perl(Getopt::Long)
Requires:	perl(Image::Size)
Requires:	perl(IO::File)
Requires:	perl(List::MoreUtils)
Requires:	perl(Path::Tiny)
Requires:	perl(Term::ReadKey)
Requires:	perl(Time::HiRes)

%description
WML is a free and extensible Webdesigner's off-line HTML generation
toolkit for Unix, distributed under the GNU General Public License
(GPL v2). It is written in ANSI C and Perl 5, build via a GNU Autoconf
based source tree and runs out-of-the-box on all major Unix derivatives.
It can be used free of charge both in educational and commercial
environments.

%files
%doc BUGREPORT* ChangeLog COPYING COPYRIGHT* CREDITS*
%doc README* SUPPORT*
%{_bindir}/*
%{_libdir}/%{name}
%{_libdir}/mp4h
%{_datadir}/%{name}
%{_mandir}/*/*
#--------------------------------------------------------------------------

%prep
%autosetup -p1

#install mp4h to libdir
sed -i 's|lib/mp4h|%{_lib}/mp4h|' wml_backend/p2_mp4h/CMakeLists.txt

%build
%cmake \
	-DLIB_INSTALL_DIR=%{_libdir} \
	-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
	-DLOCALE_INSTALL_DIR=%{_datadir}/locale
%make

%check
%make -C build -Onone check

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11429 |21cr|wmlaptop-1.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	wmlaptop
Summary: 	Laptop info docklet for WindowMaker
Version: 	1.4
Release: 	12

Source:		%{name}-%{version}.tar.bz2
URL:		http://wmlaptop.sourceforge.net/
License:	GPL
Group:		Graphical desktop/WindowMaker
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	imagemagick

%description
wmlaptop is a WindowMaker dockapp able to satisfy any requirements of a linux
user with a laptop. The smartest should have easily guessed that wmlaptop
includes an advanced battery information interface, including an indicator
which estimates the remaining battery autonomy. Anyway this is only one of the
useful functions provided:

* Battery estimated time remaining
* Multi Batteries support
* Battery remaining charge (visual and percent)
* Auto-Frequency Scaling
* Manual Frequency Scaling
* 0-100 Cpu Load indicator
* APM and ACPI support
* sysfs and /proc filesystems support
* Kernel 2.6 series fully compatible
* Visual support for multiple batteries
* "Visual and audio" alarm on Low-Battery
* Auto shutdown on Low-Battery
* Easy screen saver starter
* Console executable

%prep
%setup -q
chmod 644 README*

%build
%make CFLAGS="$RPM_OPT_FLAGS"
										
%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%_bindir
install -m 4755 src/%name $RPM_BUILD_ROOT/%_bindir/

#menu
mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=%{name}
Name=WMLaptop
Comment=Laptop status docklet
Categories=System;Monitor;
EOF

#icons
mkdir -p $RPM_BUILD_ROOT/%_liconsdir
convert -size 48x48 img/screenshot_1.jpeg $RPM_BUILD_ROOT/%_liconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_iconsdir
convert -size 32x32 img/screenshot_1.jpeg $RPM_BUILD_ROOT/%_iconsdir/%name.png
mkdir -p $RPM_BUILD_ROOT/%_miconsdir
convert -size 16x16 img/screenshot_1.jpeg $RPM_BUILD_ROOT/%_miconsdir/%name.png

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif
		
%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-,root,root)
%doc AUTHORS BUGS CHANGELOG README* THANKS
%{_bindir}/%name
%{_datadir}/applications/mandriva-%name.desktop
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11430 |21cr|wmMoonClock-1.27-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name: 	 	wmMoonClock
Summary: 	Docklet that shows lunar ephemeris to fairly high accuracy
Version: 	1.27
Release: 	11

Source0:	%{name}-%{version}.tar.bz2
Source1:	wmmoonclock_icon.png
URL:		http://nis-www.lanl.gov/~mgh/WindowMaker/DockApps.shtml
License:	GPL
Group:		Graphical desktop/WindowMaker
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xext)
BuildRequires:	imagemagick

%description
wmMoonClock displays the lunar ephemeris with high accuracy. You can
define your local latitude and longitude to get precise results. And
even better you get a very nice moon icon that matches the current state
of the moon.

In order to get good results, you may have to find your geographical
coordinates, eg. from this site http://www.astro.com/atlas

%prep
%setup -q

%build
%{__cp} %{SOURCE1} .
cd Src
# copy icon to build dir
%make CFLAGS="%optflags %build_ldflags"
										
%install
rm -rf $RPM_BUILD_ROOT
%{__mkdir} -p $RPM_BUILD_ROOT/%_bindir
%{__mkdir} -p $RPM_BUILD_ROOT/%_mandir/man1
%{__cp} Src/%name $RPM_BUILD_ROOT/%_bindir/
%{__cp} Src/%name.1 $RPM_BUILD_ROOT/%_mandir/man1/

#menu
%{__mkdir} -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=%{name}
Name=wmMoonClock
Comment=Lunuar Ephemeris status docklet
Categories=System;Monitor;
EOF

#icons
%{__mkdir} -p $RPM_BUILD_ROOT/%_liconsdir
convert -size 48x48 wmmoonclock_icon.png $RPM_BUILD_ROOT/%_liconsdir/%name.png
%{__mkdir} -p $RPM_BUILD_ROOT/%_iconsdir
convert -size 32x32 wmmoonclock_icon.png $RPM_BUILD_ROOT/%_iconsdir/%name.png
%{__mkdir} -p $RPM_BUILD_ROOT/%_miconsdir
convert -size 16x16 wmmoonclock_icon.png $RPM_BUILD_ROOT/%_miconsdir/%name.png

# the various states of the applet
%{__mkdir} -p $RPM_BUILD_ROOT/%_iconsdir/%name
%{__cp} Src/*xpm $RPM_BUILD_ROOT/%_iconsdir/%name/

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%update_menus
%endif
		
%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-,root,root)
%doc BUGS COPYING
%doc %{_mandir}/*/*
%{_bindir}/%name
%{_datadir}/applications/mandriva-%name.desktop
%{_liconsdir}/%name.png
%{_iconsdir}/%name.png
%{_miconsdir}/%name.png
%{_iconsdir}/%name/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11431 |21cr|wmnet-1.06-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define xrootdir	/usr
%define xconfdir	/etc/X11

Summary:	Applet that monitors the network
Name:		wmnet
Version:	1.06
Release:	17
License:	GPL
Group:		Graphical desktop/WindowMaker
URL:		http://dockapps.org/file.php/id/77
Source0:	http://dockapps.org/download.php/id/115/%{name}-%{version}.tar.bz2
Source1:	%{name}.wmconfig
Source2:	wmnet-icons.tar.bz2
Patch0:		wmnet-sa-restorer.patch
Patch1:		wmnet-1.05-man-graph.patch
Patch2:		wmnet-1.05-glibc22.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	imake

%description
Wmnet uses ip accounting in the Linux kernel to monitor your network.

%prep
%setup
%patch0 -p1 -b .sigaction
%patch1 -p1 -b .man-graph
%patch2 -p1 -b .glibc22

%build
xmkmf
%make CFLAGS="%{optflags}"

%install
# wmnet standard install
install -d %{buildroot}/%{_bindir}
install -d %{buildroot}/%{_mandir}/man1
install -m 755 wmnet %{buildroot}/%{_bindir}
install -m 644 wmnet.man %{buildroot}/%{_mandir}/man1/wmnet.1

# wmaker config file
install -d %{buildroot}/%{xconfdir}/wmconfig
cp %{SOURCE1} %{buildroot}/%{xconfdir}/wmconfig/%{name}

# mdv menu icons
mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
tar jxvf %{SOURCE2} -C %{buildroot}/%{_iconsdir}
# fd.o icons
cp %{buildroot}/%{_iconsdir}/%{name}.png %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/%{name}.png
cp %{buildroot}/%{_liconsdir}/%{name}.png %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/%{name}.png
cp %{buildroot}/%{_miconsdir}/%{name}.png %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# mdv menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=WMnet
Comment=A WindowMaker dock network monitor
Comment[ru]=Мониторинг сетевых соединений для WindowMaker
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=System;Monitor;X-MandrivaLinux-System-Monitoring;
EOF

%files
%doc README Changelog
%config(noreplace) %{xconfdir}/wmconfig/%{name}
%{_bindir}/wmnet
%{_mandir}/man1/wmnet.1*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11432 |21cr|wmpop3lb-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	POP3 mail box checker
Name:		wmpop3lb
Version:	2.4.2
Release:	13
License:	GPLv2+
Group:		Graphical desktop/WindowMaker
Url:		http://www.jourdain.org/wmpop3/wmpop3lb%{version}.tar.gz
Source0:	%{name}%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
Patch0:		%{name}-2.4.2-fix-build-with-gcc5.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)

%description
WMPop3LB is a multi POP3 accounts mailbox checker. It can connect to up to 6
POP3 accounts to check if you have mail, get the "From:" and "Subject:" header
fields of each mail and display them in a 7 lines window. It can list up to 19
messages per server which can be read by scrolling the window up and down.
Messages can be deleted directly off the servers by selecting the mails to
delete and clicking the "delete" button.
You may configure your .wmpop3rc either by hand or through the graphical
utility called wmpop3lbcfg.

%files
%doc CHANGE_LOG COPYING README wmpop3/wmpop3rc
%{_bindir}/%{name}
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_datadir}/applications/rosa-%{name}.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}%{version}
%patch0 -p1
mv wmpop3/.wmpop3rc_test wmpop3/wmpop3rc 

# Fix perms
chmod 0644 wmgeneral/*


%build
make FLAGS="%{optflags}" -C wmpop3

%install
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 wmpop3/%{name} %{buildroot}%{_bindir}/%{name}
install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}
tar xOjf %{SOURCE1} %{name}-16x16.png > %{buildroot}%{_miconsdir}/%{name}.png
tar xOjf %{SOURCE1} %{name}-32x32.png > %{buildroot}%{_iconsdir}/%{name}.png
tar xOjf %{SOURCE1} %{name}-48x48.png > %{buildroot}%{_liconsdir}/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
[Desktop Entry]
Name=WmPop3lb
Comment=Multiple mailbox monitoring via Pop3 in a dockapp
Type=Application
Exec=%{name}
Icon=%{name}
Categories=Office;Email;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11433 |21cr|wmsmixer-0.5.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         configname        sample.wmsmixer

Summary:  	Dockapp sound mixer adjustable with mouse wheel
Name:		wmsmixer
Version:	0.5.1
Release:	14
License:	GPL
Group:		Graphical desktop/WindowMaker
Source0:	http://distro.ibiblio.org/pub/linux/distributions/amigolinux/download/DockApps/%{name}-%{version}/%{name}-%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
Patch0:         wmsmixer-0.5.1-Imakefile.patch
Url:		http://dockapps.windowmaker.org/file.php/id/63
BuildRequires:  imake
BuildRequires:  glibc-devel
BuildRequires:  stdc++-devel
BuildRequires:  pkgconfig(xpm)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xext)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xau)
BuildRequires:  pkgconfig(xdmcp)

Recommends:      alsa-oss-devel
Recommends:      ossp

%description
 This is a hack to wmmixer which makes some changes to the display and adds a
 few new features, most notably scrollwheel support. The main changes between
 this and wmmixer are:
  o Added scrollwheel support. If your scrollwheel is mapped to buttons 4 and
    5, using it will increase/decrease the volume of the current channel.
  o Removed all the recsrc code.
  o Changed the display arrangement slightly, and replaced the recsrc button
    with a text display. This normally shows the volume of the current channel.
  o Added the setname configuration option, which allows you to give a
    different channel name (4 chars max) to the built in one if you wish.
  o Clicking on the channel icon will briefly display the text name for the
    channel. This is also displayed when you switch channels.
  o Mono channels have one wide bar rather than two thinner ones.
  o Changed some icons, and added a few new ones. Several icons are still to be
  o created. Any submissions are always welcome.

%files
%doc COPYING README README.wmmixer
%{_bindir}/%{name}
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/%{configname}
#----------------------------------------------------------------------------- 
%prep
%setup -q
%patch0 -p0

%build
xmkmf
%make CXXFLAGS="%optflags" LDLIBS="%build_ldflags" %{name}

%install
%makeinstall_std

# icons
install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}
tar xOjf %SOURCE1 %{name}-16x16.png > %{buildroot}%{_miconsdir}/%{name}.png
tar xOjf %SOURCE1 %{name}-32x32.png > %{buildroot}%{_iconsdir}/%{name}.png
tar xOjf %SOURCE1 %{name}-48x48.png > %{buildroot}%{_liconsdir}/%{name}.png

# menu entry
install -m 755 -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=WmsMixer
Comment=Dockapp sound mixer adjustable with mouse wheel
Exec=%{_bindir}/%{name} -w
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;Audio;Mixer;
EOF

# config
install -D -m 644 home.wmsmixer %{buildroot}%{_datadir}/%{name}/%{configname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11434 |21cr|wmsmpmon-3.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define Summary System information for Dual CPUs (memory, swap, cpu, IO) in a small dock app
Summary:	%Summary
Name:		wmsmpmon
Version:	3.1
Release:	9
License:	GPLv2+
Group:		Graphical desktop/WindowMaker
Source0:	wmSMPmon-%{version}.tar.gz
Source1:	%{name}-icons.tar.bz2
URL:		http://www.ribbrock.org/binabit/wmSMPmon/
BuildRequires:	libxpm-devel
BuildRequires:	libxext-devel
BuildRequires:	libxau-devel
BuildRequires:	libxdmcp-devel

%description
Monitor your dual processor system, memory, swap, and IOs in a small
dock app. It has been designed to work with wmaker, but nothing prevents
it from being run under another window manager.
 

%prep
rm -rf %buildroot

%setup -q -n wmSMPmon-%{version}

%build
make -C wmSMPmon CFLAGS="$RPM_OPT_FLAGS"

%install
[ -d %buildroot ] && rm -rf %buildroot

install -m 755 -d %buildroot%{_miconsdir}
install -m 755 -d %buildroot%{_iconsdir}
install -m 755 -d %buildroot%{_liconsdir}
tar xOjf %SOURCE1 %{name}.16x16.png > %buildroot%{_miconsdir}/%{name}.png
tar xOjf %SOURCE1 %{name}.32x32.png > %buildroot%{_iconsdir}/%{name}.png
tar xOjf %SOURCE1 %{name}.48x48.png > %buildroot%{_liconsdir}/%{name}.png

mkdir -p %buildroot%{_bindir}/ %buildroot%{_mandir}/man1/
install -m 755 wmSMPmon/wmSMPmon %buildroot%{_bindir}/
install -m 644 wmSMPmon/wmSMPmon.1 %buildroot%{_mandir}/man1/

chmod 644 {GREETINGS,LISEZ-MOI,COPYING}


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=wmSMPmon
Comment=%{Summary}
Exec=%{_bindir}/wmSMPmon -g 3
Icon=%{name}
Terminal=false
Type=Application
Categories=System;Monitor;
EOF


%clean
rm -rf %buildroot


%if %mdkversion < 200900
%post
%{update_menus}
%endif


%if %mdkversion < 200900
%postun
%{clean_menus}
%endif


%files
%defattr (-,root,root)
%doc GREETINGS  LISEZ-MOI COPYING
%{_bindir}/*
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop
%{_mandir}/man1/wmSMPmon.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11435 |21cr|wmsysmon-0.7.7-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define debug_package	%{nil}

Summary:	System information (memory, swap, uptime, IO) in a small dock app
Name:		wmsysmon
Version:	0.7.7
Release:	13
License:	GPL
Group:		Toys
Source0:	http://www.gnugeneration.com/software/wmsysmon/%{name}-%{version}.tar.gz
Source1:	%{name}-icons.tar.bz2
Patch0:         01-break.dpatch
Patch1:         02-output.dpatch
Patch2:         03-src_makefile.dpatch
URL:		http://www.gnugeneration.com/software/wmsysmon/src/
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)

%description
This is a small dock application for use with WindowMaker (www.windowmaker.org)
to show system information on interrupt activity, memory use, swap use, and IO.
Wmsysmon was originally written by Dave Clark, Vito Caputo took over
development.


%prep

%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
make -C src CC="gcc %{optflags} %build_ldflags"

%install
install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}
tar xOjf %{SOURCE1} %{name}.16x16.xpm > %{buildroot}%{_miconsdir}/%{name}.xpm
tar xOjf %{SOURCE1} %{name}.32x32.xpm > %{buildroot}%{_iconsdir}/%{name}.xpm
tar xOjf %{SOURCE1} %{name}.48x48.xpm > %{buildroot}%{_liconsdir}/%{name}.xpm

mkdir -p %{buildroot}%{_bindir}
install -m 755 src/wmsysmon %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/%{name}
Icon=%{name}
Categories=System;Monitor;
Name=WmSysMon
Comment=System information (memory, swap, uptime, IO) in a small icon
EOF


%files
%doc ChangeLog README
%{_bindir}/%{name}
%{_liconsdir}/%{name}.xpm
%{_miconsdir}/%{name}.xpm
%{_iconsdir}/%{name}.xpm
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11436 |21cr|wmtop-0.85-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	WindowMaker dock applet for top
Name:		wmtop
Version:	0.85
Release:	3
License:	GPL
Group:		Monitoring
Url:		http://wmtop.sourceforge.net/
Source:		http://ftp1.sourceforge.net/wmtop/%{name}-%{version}.tar.bz2

BuildRequires:		pkgconfig(dockapp)
BuildRequires:		pkgconfig(xdmcp)
BuildRequires:		pkgconfig(xau)
BuildRequires:		pkgconfig(xext)
BuildRequires:		pkgconfig(xpm)

%description
Wmtop is a WindowMaker dockapp that is a mini graphical version of the 
cpu monitoring utility top. Themes are included.

%prep
%setup -q

%build
#%ifarch x86_64
#perl -pi -e "s|lib|lib64|g" Makefile
#%endif
autoreconf -fiv
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/wmtop
%{_mandir}/man1/*
%doc BUGS README TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11437 |21cr|wmweather-2.4.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define debug_package %{nil}

Summary:	Weather docklet for WindowMaker
Name:		wmweather
Version:	2.4.5
Release:	13
License:	GPLv2+
Group:		Graphical desktop/WindowMaker
Url:		http://www.godisch.de/debian/wmweather/
# url and source no longer reachable...
Source0:	http://ftp.de.debian.org/debian/pool/main/w/wmweather/%{name}_%{version}.orig.tar.gz
#fix url changed since 08/2016
Patch0:		wmweather-2.4.5-url.patch
BuildRequires:	xmessage
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)

%description
A Window Maker docklet to show local weather conditions.

%files
%doc CHANGES README
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/wmweather.conf
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
cd src
%configure
%make

%install
cd src
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11438 |21cr|wmwifi-0.6-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	wmwifi
Summary: 	Wireless network monitor for WindowMaker
Version: 	0.6
Release: 	16
Source:		http://digitalssg.net/debian/%{name}-%{version}.tar.bz2
URL:		http://wmwifi.digitalssg.net/
License:	GPLv2+
Group:		Graphical desktop/WindowMaker
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(x11)
BuildRequires:	imagemagick

%description
WmWiFi should support any wireless drivers as long as those drivers support
the Linux kernels Wireless Extensions. This means that if you do a cat
/proc/net/wireles, you should see interface statistics there.

%prep
%setup -q

%build
export X_CFLAGS="%{optflags}"
%configure
%make

%install
%makeinstall_std

#menu
mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{name}
Icon=%{name}
Name=WMWifi
Comment=Wireless network docklet
Categories=System;Monitor;
EOF

#icons
mkdir -p %{buildroot}/%{_liconsdir}
convert -size 48x48 src/display_link.xpm %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert -size 32x32 src/display_link.xpm %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 src/display_link.xpm %{buildroot}/%{_miconsdir}/%{name}.png

%files
%doc AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11439 |21cr|wmx-6pl1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A minimal window manager
Name: wmx
Version: 6pl1
Release: 12
License: BSD-like
Url: http://www.all-day-breakfast.com/wmx/
Group: Graphical desktop/Other
Source0: %{name}-%{version}.tar.bz2
Patch1: wmx-syntax-fix.patch
Patch2: wmx-my-config.patch
Patch3: wmx-64bitptr.patch
Requires: rxvt
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xpm)

%description
wmx is another window manager for X. It provides a unusual style of
window decoration and only minimal functionality--no icons, no toolbars,
no docks. wmx is barely configurable except by editing the source and
recompiling the code.

%prep
%setup -q
%patch1 -p0
%patch2 -p0
%patch3 -p0

%build
%configure
%make

%install
rm -fr %buildroot
install -d %buildroot%_bindir
install -d %buildroot/%_sysconfdir/X11/wmsession.d/
install -m 755 wmx %buildroot%_bindir/wmx

cat << EOF > %buildroot/%_sysconfdir/X11/wmsession.d/25wmx
NAME=wmx
EXEC=/usr/bin/wmx
DESC=Minimal windows manager without configuration
SCRIPT:
exec /usr/bin/wmx
EOF
cat <<XCLIENTS > Xclients
#!/bin/sh
# This is an example of ~/.Xclients file to start wmx

xdaliclock -transparent -fg black -builtin1 -24 -noseconds -geometry -5-5 -xrm "*overrideRedirect: True" &
exec wmx
XCLIENTS

%clean
rm -fr %buildroot

%files
%defattr(-,root,root,0755)
%doc README* UPDATES Xclients Config.h
%{_bindir}/wmx
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/25wmx

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11440 |21cr|wmxss-0.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define debug_package	%{nil}
Summary:	Frontend for xscreensaver in a dock.app
Name:		wmxss
Version:	0.1
Release:	21
License:	GPL
Group:		Graphical desktop/WindowMaker
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-icons.tar.bz2
URL:		http://nis-www.lanl.gov/~mgh/WindowMaker/wmxss-0.1.tar.gz
Requires:	xscreensaver-gl
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)


%description
Frontend for xscreensaver.
Right now it only runs the separate hacks in the DockApp


%prep
%setup -q

%build
make -C Src CFLAGS="$RPM_OPT_FLAGS"

%install
install -m 755 -d %buildroot%{_miconsdir}
install -m 755 -d %buildroot%{_iconsdir}
install -m 755 -d %buildroot%{_liconsdir}
tar xjOf %SOURCE1 %{name}-16x16.png > %buildroot%{_miconsdir}/%{name}.png
tar xjOf %SOURCE1 %{name}-32x32.png > %buildroot%{_iconsdir}/%{name}.png
tar xjOf %SOURCE1 %{name}-48x48.png > %buildroot%{_liconsdir}/%{name}.png

mkdir -p %buildroot%{_bindir}
install -c -s -m 0755 Src/wmxss %buildroot%{_bindir}


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=WmXss
Comment=Frontend for xscreensaver in a dock.app
Exec=%{_bindir}/%{name} -e /usr/lib/xscreensaver/lament
Icon=%{name}
Terminal=false
Type=Application
Categories=Screensaver;
EOF


%files
%doc COPYING
%{_bindir}/*
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11441 |21cr|woeusb-3.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname WoeUSB
%define debug_package %{nil}

Summary:	Creates Windows USB stick installer from a Windows DVD or image
Name:		woeusb
Version:	3.3.1
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/slacka/WoeUSB
Source0:	https://github.com/slacka/WoeUSB/archive/v%{version}.tar.gz?/%{rname}-%{version}.tar.gz
Source1:	trad.mo
Patch0:		russian-translated-shortcut-3.2.12.patch
BuildRequires:	wxgtku3.0-devel 
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel

%description
This package contains two programs:

 o woeusb: A command-line utility that enables you to create your own bootable
Windows installation USB storage device from an existing Windows
Installation disc or disk image

 o woeusbgui: A GUI wrapper of woeusb based on WxWidgets

Supported images:

Windows Vista, Windows 7, Window 8.x, Windows 10. All languages and any version
(home, pro...) and Windows PE are supported.

Supported bootmodes:

Legacy/MBR-style/IBM PC compatible bootmode
Native UEFI booting is supported for Windows 7 and later images
(limited to the FAT filesystem as the target)

%files -f %{name}.lang

%{_bindir}/%{name}
%{_bindir}/%{name}gui
%{_mandir}/man1/%{name}.*
%{_mandir}/man1/%{name}gui.*
%{_datadir}/pixmaps/%{name}gui-icon.png
%{_datadir}/woeusb/data/*
%{_datadir}/woeusb/locale/fr/LC_MESSAGES/wxstd.mo
%{_datadir}/locale/ru/LC_MESSAGES/trad.mo
%{_datadir}/applications/%{name}gui.desktop

#---------------------------------------------------------------

%prep
%setup -qn %{rname}-%{version}
%patch0 -p1

%build
autoreconf -fiv
%configure \
	--enable-shared \
	--disable-static \
	--disable-dependency-tracking
%make

%install
%makeinstall_std

#added russian translate
install -D %{SOURCE1} %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/trad.mo

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11442 |21cr|wofi-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		wofi
Version:	1.3
Release:	1
Summary:	A launcher/menu for wlroots based wayland compositors
Group:		Graphical desktop/Other
License:	GPLv3
URL:		https://hg.sr.ht/~scoopta/wofi
Source0:	%{URL}/archive/v%{version}.tar.gz

BuildRequires:	meson
BuildRequires:	gcc
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(wayland-client)

%description
A launcher/menu for wlroots based wayland compositors.

%files
%license COPYING.md
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/wofi.1*
%{_mandir}/man5/wofi.5*
%{_mandir}/man7/wofi-keys.7*
%{_mandir}/man7/wofi.7*

#------------------------------------------------------
%package devel
Summary: Development package for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}

%description devel
Files for development with %{name}.

%files devel
%{_includedir}/wofi-1/*.h
%{_libdir}/pkgconfig/wofi.pc
%{_mandir}/man3/wofi-api.3*
%{_mandir}/man3/wofi-config.3*
%{_mandir}/man3/wofi-map.3*
%{_mandir}/man3/wofi-utils.3*
%{_mandir}/man3/wofi-widget-builder.3*
%{_mandir}/man3/wofi.3*

#------------------------------------------------------

%prep
%autosetup -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11443 |21cr|wol-0.7.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wake On LAN client
Name:		wol
Version:	0.7.1
Release:	10
License:	GPL
Group:		Networking/Other
Url:		https://wake-on-lan.sourceforge.io
Source0:	https://sourceforge.net/projects/wake-on-lan/files/wol/%{version}/%{name}-%{version}.tar.gz
Patch0:		wol-0.7.1-binding.patch
Patch1:		wol-gcc.patch
BuildRequires:	texinfo
BuildRequires:	gettext
BuildRequires:	perl-podlators

%description
wol implements Wake On LAN functionality in a small program. 
It wakes up hardware that is Magic Packet compliant.
Consider you have a sleeping or turned-off computer and you 
want to remotely wake him up. Just type wol MAC-ADDRESS and 
the host wakes up (OK, it will boot ;-). 

%files  -f %{name}.lang
%doc COPYING README
%{_bindir}/*
%{_datadir}/man/man1/*

#----------------------------------------------------------------

%prep
%autosetup -p1

iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv
touch -c -r ChangeLog ChangeLog.conv
mv ChangeLog.conv ChangeLog

%build
%configure
%make

%install
%makeinstall
rm -r %{buildroot}%{_infodir}
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11444 |21cr|wondershaper-1.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		wondershaper
Version:	1.2.1
Release:	4
Summary:	Simple Network Shaper
Group:		System/Servers
License:	GPLv2+
URL:		http://sourceforge.net/projects/wondershaper/
Source:		http://downloads.sourceforge.net/project/wondershaper/%{name}-%{version}.tar.gz
Requires:	iproute2
BuildArch:	noarch

%description
Many cable-modem and ADSL users experience horrifying latency
while uploading or downloading. They also notice that uploading
hampers downloading greatly. The Wondershaper neatly addresses
these issues, allowing users of a router with a Wondershaper to
continue using SSH over a loaded link happily.

%prep
%setup -q

%build
# Nothing to build.

%install
install -pDm 755 wshaper %{buildroot}/%{_sbindir}/%{name}

%files
%doc ChangeLog COPYING README
%{_sbindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11445 |21cr|wordnet-3.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname WordNet

%define major %{version}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A lexical database for the English language
Name:		wordnet
Version:	3.0
Release:	19
License:	MIT
Group:		Sciences/Other
Url:		http://wordnet.princeton.edu
Source0:	http://wordnet.princeton.edu/%{version}/%{oname}-%{version}.tar.bz2
Patch0:		%{name}-2.1.libtool.patch
Patch1:		%{name}-3.0.fhs.patch
Patch2:		%{name}-CVE-2008-2149_3908.patch
# Kludge (not a fix) for Tcl 8.6 (TIP #330, interp->result) - AdamW
# 2008/12
Patch3:		wordnet-3.0-tcl86.patch
Patch4:		wordnet_autoconf.patch
Patch5:		wordnet_wformat.patch
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)

%description
WordNet is an online lexical reference system whose design is inspired by
current psycholinguistic theories of human lexical memory. English nouns,
verbs, adjectives and adverbs are organized into synonym sets, each
representing one underlying lexical concept. Different relations link the
synonym sets.

%files
%doc AUTHORS COPYING INSTALL ChangeLog README doc/{html,ps,pdf}
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/%{oname}
%{_mandir}/*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run %{name}.

%files -n %{libname}
%{_libdir}/libWN-%{version}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries, include files and other resources you can use to develop.

%files -n %{devname}
%{_libdir}/libWN.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1 -b .tcl86
%patch4 -p1
%patch5 -p1
autoreconf -fi

%build
%configure
make

%install
%makeinstall

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/wordnet.desktop << EOF
[Desktop Entry]
Type=Application
Name=WordNet
Comment=Graphical Interface for WordNet
Comment[ru]=Графический интерфейс для WordNet
Icon=accessories-dictionary
Exec=wnb
Categories=Office;X-MandrivaLinux-Office-Accessories;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11446 |21cr|wordpress-6.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Personal publishing platform
Name:		wordpress
Version:	6.3.1
Release:	1
License:	GPLv2+
Group:		System/Servers
URL:		http://wordpress.org
Source0:	http://wordpress.org/%{name}-%{version}.tar.gz
Source1:	README.install.urpmi
Requires:	apache-mod_php
Requires:	php-mysql
BuildArch:	noarch

%description
WordPress is a state-of-the-art, semantic, personal publishing platform with a
focus on aesthetics, Web standards, and usability. It was born out of a desire
for an elegant, well-architectured personal publishing system, and is the
official successor to b2/cafelog. While primarily geared towards functioning
as a Weblog, it is also a flexible CMS capable of managing many types of Web
sites. In addition to the basic Weblog functions, it also has an integrated
link manager (e.g. for blogrolls), XFN support, support for "static" pages,
Atom and RSS feeds for both content and comments, XML-RPC blogging API support
(Blogger, MetaWeblog, and Movable Type APIs), spam blocking features, advanced
cruft-free URL generation, a flexible theme system, and an advanced plugin API.

%files
%license license.txt
%doc README.install.urpmi
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
/var/www/%{name}

#--------------------------------------------------------------------

%prep
%setup -qn %{name}

# clean up CVS stuff
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
	if [ -e "$i" ]; then rm -r $i; fi >&/dev/null
done

# fix dir perms
find . -type d | xargs chmod 755

# fix file perms
find . -type f | xargs chmod 644

# disable wordpress update option
sed -i -e "s/add_action/#add_action/g" wp-includes/update.php

%build

%install
install -d %{buildroot}%{_sysconfdir}/httpd/conf.d
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}/var/www/%{name}

cp -aRf * %{buildroot}/var/www/%{name}/

cat > %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf << EOF

Alias /%{name} /var/www/%{name}

<Directory /var/www/%{name}>
	AllowOverride None
	Require all granted

#	Options FollowSymlinks
#	RewriteEngine On
#	RewriteBase /
#	RewriteCond %{REQUEST_FILENAME} !-f
#	RewriteCond %{REQUEST_FILENAME} !-d
#	RewriteRule . /index.php [L]

</Directory>

EOF

# cleanup
rm -f %{buildroot}/var/www/%{name}/license.txt
cp %{SOURCE1} ./README.install.urpmi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11447 |21cr|wordwarvi-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Retro-styled side scrolling shootem up arcade game
Name:		wordwarvi
Version:	1.0.4
Release:	1
License:	GPLv2+ and CC-BY and CC-BY-SA
Group:		Games/Shooter
Url:		https://smcameron.github.io/wordwarvi
Source0:	https://github.com/smcameron/wordwarvi/archive/v%{version}/%{name}-%{version}.tar.gz
# Inspired by couple of upstream patches; it allow to pass to make:
# BINDIR, DATADIR and WITHAUDIO variables to customize the build
Patch0:		wordarvi-1.0.4-make-build-customizable.patch
Patch1:		wordarvi-1.0.4-fix-build.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(portaudio-2.0) >= 19
BuildRequires:	pkgconfig(vorbisfile)

%description
Word War vi is your basic side-scrolling shoot 'em up '80s style arcade game.
You pilot your "vi"per craft through core memory, rescuing lost .swp files,
avoiding OS defenses, and wiping out those memory hogging emacs processes.
When all the lost .swp files are rescued, head for the socket which will take
you to the next node in the cluster. 

%files
%doc AUTHORS changelog.txt
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}/
%{_mandir}/man6/%{name}.6*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
%setup_compile_flags
%make BINDIR="%{_gamesbindir}" DATADIR="%{_gamesdatadir}/%{name}"


%install
%makeinstall_std

# Install icons
for size in 16x16 22x22 32x32 48x48 64x64 128x128; do
	install -D -m644 icons/wordwarvi_icon_${size}.png %{buildroot}%{_iconsdir}/hicolor/${size}/apps/%{name}.png
done

# Provide a .desktop file
install -d %{buildroot}%{_datadir}/applications
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Name=Word War vi
Comment=Retro-styled side scrolling shoot'em up arcade game
GenericName=Side scrolling shooter
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Game;Shooter;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11448 |21cr|worker-4.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define docver 2.10.0.2

Summary:	A file manager for X in AMIGA style
Name:		worker
Group:		File tools
Version:	4.11.0
Release:	1
License:	GPLv2+
Url:		http://www.boomerangsworld.de/worker
Source0:	http://www.boomerangsworld.de/cms/worker/downloads/%{name}-%{version}.tar.bz2
Source1:	worker-%{docver}-doc.tar.bz2
Source3:	%{name}-48.png
Source4:	%{name}-32.png
Source5:	%{name}-16.png
BuildRequires:	pkgconfig(x11)
BuildRequires:	magic-devel

%description
Worker is a graphical filemanager for the X Window System.
It use the classical two-panel-view of the files and directories.
It hast many intern operations while any extern program can also be
used for operate on the selected items. You can easily add actions
to filetypes or buttons with the builtin configuration program.

%files
%{_datadir}/doc/%{name}
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/worker
%{_mandir}/man1/worker.1*
%{_datadir}/appdata/worker.appdata.xml
%lang(fr) %{_mandir}/fr/man1/worker.1.*
%lang(it) %{_mandir}/it/man1/worker.1.*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/pixmaps/*.xpm

#-----------------------------------------------------------------------------------

%prep
%setup -q -a 1

%build
%configure
%make

pushd %{name}-%docver-doc
%configure
%make_build
popd

%install
%makeinstall_std
%makeinstall_std -C %{name}-%docver-doc

mkdir -p %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
install -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png
install -m 644 %{SOURCE4} %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 %{SOURCE5} %{buildroot}%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11449 |21cr|workrave-1.10.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 0
%define libgtk2 %mklibname workrave-gtk2-private %{api} %{major}
%define libname %mklibname workrave-private %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname workrave-private -d

%define tag %(echo %{version} | sed -e 's/\\./_/g')

Summary:	Assists in recovery and prevention of Repetitive Strain Injury (RSI)
Name:		workrave
Version:	1.10.50
Release:	1
License:	GPLv3+
Group:		Accessibility
Url:		http://www.workrave.org/
Source0:	https://github.com/rcaelers/workrave/archive/v%{tag}/%{name}-v%{tag}.tar.gz
BuildRequires:	autoconf-archive
BuildRequires:	boost-devel
BuildRequires:	doxygen
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	python3-jinja2
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gdkmm-2.4)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gnet-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-0.10)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xtst)
Obsoletes:	%{name}-applet < 1.9.4

%description
Workrave is a program that assists in the recovery and prevention of
Repetitive Strain Injury (RSI). The program frequently alerts you to
take micro-pauses, rest breaks and restricts you to your daily limit.

The program can be run distributed on one or more PCs. All connected
PCs share the same timing information. When you switch computers, you
will still be asked to pause on time.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README*
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/metainfo/workrave.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/sounds/%{name}
%{_datadir}/dbus-1/services/org.workrave.Workrave.service
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_iconsdir}/hicolor/scalable/workrave-sheep.svg

#----------------------------------------------------------------------------

%package -n gnome-shell-%{name}-extension
Summary:	Workrave GNOME Shell extension
Group:		Accessibility
Requires:	%{name} = %{EVRD}
Obsoletes:	%{name}-gnome-applet < 1.10.16

%description -n gnome-shell-%{name}-extension
Workrave is a program that assists in the recovery and prevention of
Repetitive Strain Injury (RSI). The program frequently alerts you to
take micro-pauses, rest breaks and restricts you to your daily limit.

The program can be run distributed on one or more PCs. All connected
PCs share the same timing information. When you switch computers, you
will still be asked to pause on time.

This package contains GNOME Shell extension.

%files -n gnome-shell-%{name}-extension
%{_datadir}/gnome-shell/extensions/workrave@workrave.org

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Sahred library for %{name}.

%files -n %{libname}
%{_libdir}/libworkrave-private-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Workrave-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, header files and utilities for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Workrave is a program that assists in the recovery and prevention of
Repetitive Strain Injury (RSI). The program frequently alerts you to
take micro-pauses, rest breaks and restricts you to your daily limit.

The program can be run distributed on one or more PCs. All connected
PCs share the same timing information. When you switch computers, you
will still be asked to pause on time.

This package contains the files necessary to develop applications with
%{name}.

%files -n %{devname}
%{_datadir}/gir-1.0/Workrave-%{api}.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{tag}

touch ChangeLog
# https://bugzilla.redhat.com/show_bug.cgi?id=304121
sed -i -e '/^DISTRIBUTION_HOME/s/\/$//' frontend/gtkmm/src/Makefile.*

%build
if [ ! -x configure ]; then
  ### Needed for snapshot releases.
  NOCONFIGURE=1 ./autogen.sh
fi
%configure \
	--enable-app-text=no \
	--enable-distribution=yes \
	--enable-gconf=yes \
	--enable-dbus=yes \
	--disable-static \
	--disable-rpath \
	--disable-xml \
	--disable-gnome3 \
	--disable-indicator \
	--disable-schemas-compile

%make

%install
%makeinstall_std

# We don't have Cinnamon yet
rm -rf %{buildroot}%{_datadir}/cinnamon/

# There are private and there are no headers
rm -rf %{buildroot}%{_libdir}/libworkrave-private-%{api}.so
rm -rf %{buildroot}%{_libdir}/libworkrave-gtk2-private-%{api}.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11450 |21cr|worldofpadman-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}
%define gamelibdir	%{_libdir}/games/%{name}
Name:           worldofpadman
Version:        1.6.2
Release:        1
Summary:        World Of Padman - Comic 3D-Shooter
Group:          Games/Other
URL:            http://worldofpadman.com/website/
License:        GPLv2+
Source0:        https://github.com/PadWorld-Entertainment/worldofpadman/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        wop.png
Patch0:         worldofpadman-headers.patch
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	openal-devel
BuildRequires:	curl-devel
BuildRequires:	jpeg-devel
BuildRequires:	libvorbis-devel
BuildRequires:	libtheora-devel
BuildRequires:	speex-devel
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(opus)
BuildRequires:	imagemagick
Requires:	%{name}-data = %{version}
ExclusiveArch:	%{x86_64}

%description
World of Padman (WoP) is a first-person shooter computer game available in
both English and German. The idea is based on the Padman comic strip for the
magazine PlayStation Games created by the professional cartoon artist Andreas
'ENTE' Endres, who is also the man who made many of the maps included with the
game in 1998. Most of the maps in the game are Lilliput style.

%files
%{_gamesbindir}/%{name}
%dir %{gamelibdir}
%{gamelibdir}/renderer_*_x86_64.so
%{gamelibdir}/wop
%{gamelibdir}/wop.*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------

%package server
Group:		Games/Other
Summary:	Dedicated server for World of Padman
Requires:	%{name}-data => %{version}

%description server
This package contains the dedicated server for World of Padman.

%files server
%{gamelibdir}/wopded.*

#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
#Remove bunbled libs and use system libs
rm -fr code/libcurl
rm -fr code/SDL12
rm -fr code/zlib
rm -fr code/libspeex
rm -fr code/jpeg-8c

%make \
	DEFAULT_BASEDIR=%{_gamesdatadir}/%{name}/ \
	BUILD_CLIENT=YES \
	BUILD_SERVER=YES \
	BUILD_SND_OPENAL=YES \
	BUILD_SND_QF=YES \
	USE_INTERNAL_SPEEX=0 \
	USE_INTERNAL_ZLIB=0 \
	USE_INTERNAL_JPEG=0 \
	USE_LOCAL_HEADERS=0 \
	DEBUG_BUILD=NO

%install
%make \
	copyfiles USE_LOCAL_HEADERS=0 \
	USE_INTERNAL_SPEEX=0 \
	USE_INTERNAL_ZLIB=0 \
	USE_INTERNAL_JPEG=0 \
	COPYDIR=%{buildroot}%{gamelibdir}

mkdir -p %{buildroot}/%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{32x32,64x64,128x128,256x256}/apps

binary=`basename %{buildroot}%{gamelibdir}/wop.*`

install -d %{buildroot}%{_gamesbindir}
cat > %{buildroot}%{_gamesbindir}/%{name} <<EOF
#!/bin/sh
cd %{gamelibdir}
exec ./$binary \$*
EOF
chmod 755 %{buildroot}%{_gamesbindir}/%{name}

install -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png
convert -scale 128x128 %{SOURCE2}  %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
convert -scale 64x64 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
convert -scale 32x32 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

cp %{SOURCE1} "%{buildroot}%{_datadir}/applications/"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11451 |21cr|worldofpadman-data-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define gamename	worldofpadman

%define srcver %(echo %{version} | tr '.' '-')

Name:		%{gamename}-data
Version:	1.6.2
Release:	1
Summary:	Data files for World of Padman
License:	Freeware
Group:		Games/Other
URL:		http://www.worldofpadman.com/
# https://www.moddb.com/games/world-of-padman/downloads/wop-162-full-unified-zip-windowslinuxmacos
Source0:	wop-%{version}-full-unified.zip
BuildRequires:	fdupes
Provides:	%{gamename} = %{version}
ExclusiveArch:	%{x86_64}

%description
Data files (audio, maps, etc.) for World of Padman.

%prep
%setup -q -n %{gamename}-%{srcver}

%build

%install
mkdir -p %{buildroot}/%{_gamesdatadir}/%{gamename}
mkdir -p %{buildroot}%{_defaultdocdir}/%{name}
cp -ap wop %{buildroot}/%{_gamesdatadir}/%{gamename}
cp -ap XTRAS/changelog.txt %{buildroot}/%{_defaultdocdir}/%{name}
cp -ap XTRAS/copyright*.txt %{buildroot}/%{_defaultdocdir}/%{name}
cp -ap XTRAS/gpl.txt %{buildroot}/%{_defaultdocdir}/%{name}
cp -ap XTRAS/readme* %{buildroot}/%{_defaultdocdir}/%{name}
fdupes %{buildroot}

%files
%{_defaultdocdir}/%{name}
%{_gamesdatadir}/%{gamename}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11452 |21cr|wput-0.6.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Name: 		wput
Release: 	5
Version: 	0.6.2
Summary: 	Uploading files to FTP servers
License: 	GPLv2
Group: 		Networking/File transfer
Source:		http://prdownloads.sourceforge.net/wput/%{name}-%{version}.tgz
URL:		http://wput.sourceforge.net/

%description
Wput is the opposite of wget, capable of uploading files to FTP 
servers with an easy to use command line interface similar to 
wget's (old) one.

%prep
%setup -q 
chmod 644 COPYING

%build
%configure
%make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_sysconfdir}
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 755 wput %{buildroot}%{_bindir}
install -m 644 doc/wput.1 %{buildroot}%{_mandir}/man1
install -m 644 doc/wputrc %{buildroot}%{_sysconfdir}
(cd po && %makeinstall)
%{find_lang} %{name}


%files -f %{name}.lang
%doc ChangeLog COPYING INSTALL TODO doc
%{_mandir}/man1/wput.1*
%{_bindir}/wput
%config(noreplace) %{_sysconfdir}/wputrc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11453 |21cr|writerperfect-0.9.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A collection of tools to transform various file formats into ODF
Name:		writerperfect
Version:	0.9.6
Release:	2
License:	MPLv2.0 or LGPLv2+
Group:		Office
Url:		http://sourceforge.net/p/libwpd/wiki/writerperfect/
Source0:	http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
# From Fedora
Patch0:		0001-fix-build-with-libgsf.patch
Patch1:		0001-Fix-linking-with-newer-tools-by-getting-the-library-.patch
BuildRequires:	help2man
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(libabw-0.1)
BuildRequires:	pkgconfig(libcdr-0.1)
BuildRequires:	pkgconfig(libe-book-0.1)
BuildRequires:	pkgconfig(libeot)
BuildRequires:	pkgconfig(libepubgen-0.1)
BuildRequires:	pkgconfig(libetonyek-0.1)
BuildRequires:	pkgconfig(libfreehand-0.1)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libmspub-0.1)
BuildRequires:	pkgconfig(libmwaw-0.3)
BuildRequires:	pkgconfig(libodfgen-0.1)
BuildRequires:	pkgconfig(libpagemaker-0.0)
BuildRequires:	pkgconfig(libqxp-0.0)
BuildRequires:	pkgconfig(librevenge-0.0)
#BuildRequires:	pkgconfig(librvngabw-0.0)
BuildRequires:	pkgconfig(libstaroffice-0.0)
BuildRequires:	pkgconfig(libvisio-0.1)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libwps-0.4)
BuildRequires:	pkgconfig(libzmf-0.0)
Obsoletes:	wpd2sxw < 0.9

%description
Writerperfect is a collection of command-line tools to transform various
document formats into ODF. Among supported input formats are:
* AbiWord
* Apple Keynote
* Corel WordPerfect
* CorelDRAW
* Microsoft Publisher
* Microsoft Visio
* Microsoft Works

%files
%doc ChangeLog NEWS README
%license COPYING.LGPL COPYING.MPL
%{_bindir}/abw2epub
%{_bindir}/abw2odt
%{_bindir}/cdr2epub
%{_bindir}/cdr2odg
%{_bindir}/cmx2epub
%{_bindir}/cmx2odg
%{_bindir}/ebook2epub
%{_bindir}/ebook2odt
%{_bindir}/fh2epub
%{_bindir}/fh2odg
%{_bindir}/key2epub
%{_bindir}/key2odp
%{_bindir}/mwaw2epub
%{_bindir}/mwaw2odf
%{_bindir}/numbers2ods
%{_bindir}/pages2epub
%{_bindir}/pages2odt
%{_bindir}/pmd2epub
%{_bindir}/pmd2odg
%{_bindir}/pub2epub
%{_bindir}/pub2odg
%{_bindir}/qxp2epub
%{_bindir}/qxp2odg
%{_bindir}/sd2epub
%{_bindir}/sd2odf
%{_bindir}/vsd2epub
%{_bindir}/vsd2odg
%{_bindir}/vss2epub
%{_bindir}/vss2odg
%{_bindir}/wks2ods
%{_bindir}/wpd2epub
%{_bindir}/wpd2odt
%{_bindir}/wpft2epub
%{_bindir}/wpft2odf
%{_bindir}/wpg2epub
%{_bindir}/wpg2odg
%{_bindir}/wps2epub
%{_bindir}/wps2odt
%{_bindir}/zmf2epub
%{_bindir}/zmf2odg
%{_mandir}/man1/*.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure	\
	--disable-silent-rules	\
	--disable-werror	\
	--with-export-libs	\
	--with-import-libs	\
	--with-libeot		\
	--with-libgsf		\
	--without-librvngabw
%make

%install
%makeinstall_std

for i in $(ls %{buildroot}%{_bindir}); do
	help2man -N -S '%{name} %{version}' -o $i.1 %{buildroot}%{_bindir}/$i
done
mkdir -p %{buildroot}/%{_mandir}/man1
cp *2epub.1 *2od?.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11454 |21cr|w_scan-0-0.20170107.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	date		20170107
%define	rel			0.%{date}.3

Summary:	Channel scan tool for DVB-T and DVB-C
Name:		w_scan
Version:	0
Release:	%{rel}
License:	GPLv2+
Group:		Video
Url:		http://edafe.org/vdr/w_scan/
Source0:	http://wirbel.htpc-forum.de/%{name}/%{name}-%{date}.tar.bz2
BuildRequires:	kernel-headers
BuildRequires:	glibc-devel

%description
An application that greatly simplifies the task of scanning for DVB-T, DVB-C
and ATSC channel information. It is similar to dvbscan from dvb-apps. However
it is special because it does not require any region-specific initial
transponder data for operation and thus is able to find more channels.
It will create configuration files for VDR, Kaffeine and Xine.

%files
%license COPYING
%doc ChangeLog README
%doc doc/README.file_formats doc/README_VLC_DVB doc/rotor.conf
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{date}
iconv -f iso-8859-1 -t utf-8 doc/%{name}.1 > doc/%{name}.1.utf-8 && \
touch -r doc/%{name}.1 doc/%{name}.1.utf-8 && \
mv doc/%{name}.1.utf-8 doc/%{name}.1


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11455 |21cr|w_scan2-1.0.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Channel scan tool for DVB-T and DVB-C
Name:		w_scan2
Version:	1.0.14
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://github.com/stefantalpalaru/w_scan2
Source0:	https://github.com/stefantalpalaru/w_scan2/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	kernel-headers
%rename		w_scan

%description
This is a small channel scan tool which generates ATSC, DVB-C, DVB-S/S2 and
DVB-T/T2 channels.conf files. It's a fork of the original wscan utility,
supporting the DVB API 5.3.
To use it you must specify the broadcasting protocol by using the command
line option -c (for ATSC, DVB-C or DVB-T) or -s (for satellitar DVB-S/S2).
Look at the program man page for the details

%files
%doc ChangeLog COPYING README.md
%doc doc
%{_bindir}/w_scan
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
./autogen.sh
%configure
%make


%install
%makeinstall_std

# Provide a compat symlink for old w_scan
ln -s %{name} %{buildroot}%{_bindir}/w_scan

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11456 |21cr|ws-jaxme-0.5.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define base_name jaxme

Name:           ws-jaxme
Version:        0.5.2
Release:        6
Epoch:          0
Summary:        Open source implementation of JAXB

Group:          Development/Java
License:        Apache License
URL:            http://ws.apache.org/jaxme/
Source0:        ws-jaxme-0.5.2-src.tar.gz
# svn export https://svn.apache.org/repos/asf/webservices/jaxme/tags/R0_5_2/ ws-jaxme-0.5.2
Source1:        ws-jaxme-bind-MANIFEST.MF
Patch0:         ws-jaxme-docs_xml.patch
Patch1:         ws-jaxme-catalog.patch
Patch2:         ws-jaxme-system-dtd.patch
Patch3:         ws-jaxme-jdk16.patch
Patch4:         ws-jaxme-ant-scripts2.patch
Patch5:         ws-jaxme-use-commons-codec.patch
Patch6:         ws-jaxme-fix_docbook.patch
BuildArch:      noarch
BuildRequires:  java-devel
BuildRequires:  java-rpmbuild >= 0:1.6
BuildRequires:  ant >= 0:1.6
BuildRequires:  ant-apache-resolver
BuildRequires:  antlr
BuildRequires:  antlr-java
BuildRequires:  jaxp_transform_impl
BuildRequires:  jakarta-commons-codec
BuildRequires:  junit
BuildRequires:  hsqldb
BuildRequires:  log4j
BuildRequires:  xalan-j2
BuildRequires:  xmldb-api
BuildRequires:  xmldb-api-sdk
BuildRequires:  xerces-j2
BuildRequires:  xml-commons-jaxp-1.3-apis
BuildRequires:  libxml2-utils
BuildRequires:  docbook-style-xsl
BuildRequires:  docbook-dtd45-xml
BuildRequires:  zip
Requires:       antlr
Requires:       jaxp_transform_impl
Requires:       jakarta-commons-codec
Requires:       junit
Requires:       hsqldb
Requires:       log4j
Requires:       xalan-j2
Requires:       xmldb-api
Requires:       xmldb-api-sdk
Requires:       xerces-j2
Requires:       xml-commons-jaxp-1.3-apis
Requires:       jpackage-utils
Requires(postun): jpackage-utils

%description
A Java/XML binding compiler takes as input a schema
description (in most cases an XML schema, but it may
be a DTD, a RelaxNG schema, a Java class inspected
via reflection, or a database schema). The output is
a set of Java classes:
* A Java bean class matching the schema description.
  (If the schema was obtained via Java reflection,
  the original Java bean class.)
* Read a conforming XML document and convert it into
  the equivalent Java bean.
* Vice versa, marshal the Java bean back into the
  original XML document.

%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
Requires:       jpackage-utils
Requires(postun): jpackage-utils

%description    javadoc
%{summary}.

%package        manual
Summary:        Documents for %{name}
Group:          Development/Java

%description    manual
%{summary}.

%prep
%setup -q -n %{name}-%{version}
for j in $(find . -name "*.jar"); do
    mv $j $j.no
done

%patch0 -p0
%patch1 -p0
#%patch2 -p1
%patch3 -p1
%patch4 -p0 -b .sav
%patch5 -p0 -b .sav
%patch6 -p0 -b .docbook

%build
export OPT_JAR_LIST="xalan-j2 ant/ant-trax xalan-j2-serializer xml-commons-resolver ant/ant-apache-resolver"
export CLASSPATH=$(build-classpath antlr hsqldb commons-codec junit log4j xmldb-api xerces-j2 xml-commons-jaxp-1.3-apis)
%{ant} all Docs.all \
-Dbuild.sysclasspath=first \
-Ddocbook.home=%{_datadir}/sgml/docbook \
-Ddocbookxsl.home=%{_datadir}/sgml/docbook/xsl-stylesheets

mkdir -p META-INF
cp -p %{SOURCE1} META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u dist/jaxmeapi-%{version}.jar META-INF/MANIFEST.MF

%install
rm -rf %{buildroot}
install -dm 755 %{buildroot}%{_javadir}/%{base_name}
for jar in dist/*.jar; do
   install -m 644 ${jar} %{buildroot}%{_javadir}/%{base_name}/
done
(cd %{buildroot}%{_javadir}/%{base_name} &&
    for jar in *-%{version}*;
        do ln -sf ${jar} `echo $jar| sed  "s|-%{version}||g"`;
    done
)

(cd %{buildroot}%{_javadir}/%{base_name} &&
    for jar in *.jar;
        do ln -sf ${jar} ws-${jar};
    done
)

#javadoc
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr build/docs/src/documentation/content/apidocs \
    %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
rm -rf build/docs/src/documentation/content/apidocs

#manual
install -dm 755 %{buildroot}%{_docdir}/%{name}-%{version}
cp -pr build/docs/src/documentation/content/* %{buildroot}%{_docdir}/%{name}-%{version}
install -pm 644 LICENSE %{buildroot}%{_docdir}/%{name}-%{version}

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{base_name}

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

%files manual
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11457 |21cr|wsjtx-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Provides all popular modes for Weak Signal digital Amateur Radio
Name:		wsjtx
Version:	2.6.1
Release:	1
License:	GPLv3
Group:		Sound
Url:		https://www.physics.princeton.edu//pulsar/k1jt/wsjtx.html
Source0:	https://downloads.sourceforge.net/project/wsjt/wsjtx-%{version}/%{name}-%{version}.tgz
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	cmake >= 2.8.10
BuildRequires:	desktop-file-utils
BuildRequires:	gcc-gfortran
BuildRequires:	git
BuildRequires:	patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	ruby-asciidoctor
BuildRequires:	subversion
BuildRequires:	texinfo
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	libgomp-devel
BuildRequires:	libnova-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(hamlib)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(readline)
# Colorgcc install a broken symlink for gfortran
BuildConflicts:	colorgcc
# kvasd is no longer required by wsjtx > 1.7.0 so there is no need for it.
# kvasd-installer has been moved to obsoletes.
Obsoletes:	kvasd-installer < 1.12.15-3

%description
WSJT-X is a program designed to facilitate basic amateur radio communication
using very weak signals. The first four letters in the program name stand for
"Weak Signal communication by K1JT", while the suffix "-X" indicates that
WSJT-X started as an extended (and experimental) branch of the program WSJT.
This package is aimed primarily at the LF, MF, and HF bands and now includes
the following modes: FT8, JT4, JT9, JT65, QRA64, ISCAT, MSK144, WSPR and Echo.

%files
%{_bindir}/*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/%{name}_icon.png
%{_mandir}/man1/*
%{_docdir}/%{name}/

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
%cmake_qt5
%make


%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11458 |21cr|wsynth-dssi-0.1.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		wsynth-dssi
Summary:	A Xsynth DSSI wavetable version plugin
Version:	0.1.3
Release:	9
License:	GPLv2+
Group:		Sound
# URLs are dead: use stored sources
Url:		http://www.nekosynth.co.uk/wiki/wsynt
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(sndfile)

%description
A Xsynth DSSI wavetable version plugin.

%files
%doc COPYING README
%{_libdir}/dssi/*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure --with-dssi-dir=%{buildroot}%{_libdir}/dssi
%make bindir=%{_libdir}/dssi/%{name}


%install
%makeinstall bindir=%{buildroot}%{_libdir}/dssi/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11459 |21cr|wv-1.2.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.2
%define major 4
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	MSWord 6/7/8/9 binary file format -> HTML converter
Name:		wv
Version:	1.2.9
Release:	10
Epoch:		1
License:	GPLv2+
Group:		Office
Url:		http://www.abisource.com/downloads/wv/
Source0:	http://www.abisource.com/downloads/wv/%{version}/wv-%{version}.tar.gz
Patch0:		wv-1.2.4-fix-str-fmt.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)
Requires:	tetex-dvips
Requires:	tetex-latex
Provides:	mswordview = %{EVRD}

%description
Wv is a program that understands the Microsoft Word 6/7/8/9
binary file format and is able to convert Word
documents into HTML, which can then be read with a browser.

%files
%doc README
%{_bindir}/wv*
%dir %{_datadir}/wv
%{_datadir}/wv/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library used by wv
Group:		System/Libraries

%description -n %{libname}
Wv is a program that understands the Microsoft Word 6/7/8/9
binary file format and is able to convert Word
documents into HTML, which can then be read with a browser.

This package provides the library that is used by wv.

%files -n %{libname}
%{_libdir}/libwv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MSWord 6/7/8/9 binary file format -> HTML converter (development)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Wv is a program that understands the Microsoft Word 6/7/8/9
binary file format and is able to convert Word
documents into HTML, which can then be read with a browser.

This is the development package.

%files -n %{devname}
%dir %{_includedir}/wv
%{_includedir}/wv/*.h
%{_libdir}/libwv.so
%{_libdir}/pkgconfig/wv-1.0.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .strfmt

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std
# uggly fix for symlink /usr/bin/wvText to wvConvert.
ln -sf wvConvert %{buildroot}%{_bindir}/wvText
# the following file seems not to be used by any wv executable.
#cp $RPM_BUILD_DIR/%{name}/config-mswordview $RPM_BUILD_ROOT/usr/lib/mswordview
rm -f notes/decompress/a.out

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11460 |21cr|wvdial-1.61-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A heuristic autodialer for PPP connections
Name:		wvdial
Version:	1.61
Release:	13
Epoch:		1
License:	LGPLv2.1+
Group:		System/Configuration/Networking
Url:		http://alumnit.ca/wiki/index.php?page=WvDial
Source0:	http://wvstreams.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0: 	wvdial-1.56-bad_analyse.patch
Patch1:		wvdial-1.56-remotename.patch
Patch2:		wvdial-1.54-9nums.patch
Patch3:		wvdial-1.61-typo_pon.wvdial.1.patch
Patch5:		wvdial-1.61-use_DEFAULT_SOURCE.patch
Patch6:		wvdial-manpages.patch
Patch7:		wvdial-1.60-compuserve.patch
BuildRequires:	pkgconfig(libwvstreams)
Requires:	ppp >= 2.3.7

%description
WvDial automatically locates and configures modems and can log into
almost any ISP's server without special configuration. You need to
input the username, password, and phone number, and then WvDial will
negotiate the PPP connection using any mechanism needed.
Install wvdial if you need a utility to configure your modem and set
up a PPP connection.

%files
%doc CHANGES COPYING.LIB FAQ MENUS README TODO
%attr(0755,root,root)	%{_bindir}/%{name}
%attr(0755,root,root)	%{_bindir}/%{name}conf
%attr(0644,root,root)	%{_mandir}/man1/*
%attr(0644,root,root)	%{_mandir}/man5/*
%attr(0644,root,daemon)	%config(noreplace) %{_sysconfdir}/ppp/peers/%{name}
%attr(0644,root,daemon)	%config(noreplace) %{_sysconfdir}/ppp/peers/%{name}-pipe

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./configure
make "VERBOSE=1"

%install
make install \
        PREFIX=%{buildroot}%{_prefix} \
        BINDIR=%{buildroot}%{_bindir} \
        MANDIR=%{buildroot}%{_mandir} \
        PPPDIR=%{buildroot}%{_sysconfdir}/ppp/peers

install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11461 |21cr|wxGlade-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GUI builder for wxWindows/wxPython
Name:		wxGlade
Version:	1.1.0
Release:	1
License:	MIT
Group:		Development/Other
Url:		https://wxglade.sourceforge.net/
Source:		https://downloads.sourceforge.net/project/wxglade/wxglade/%{version}/%{name}-%{version}.zip
Requires:	python3
Requires:	python3-wxpython4
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
wxGlade is a GUI designer written in Python with the popular GUI toolkit 
wxPython, that helps you create wxWindows/wxPython user interfaces. At the 
moment it can generate Python, C++ and XRC (wxWindows' XML resources) code.

As you can guess by the name, its model is Glade, the famous GTK+/GNOME 
GUI builder, with which wxGlade shares the philosophy and the look & feel 
(but not a line of code).

It is not (and will never be) a full featured IDE, but simply a "designer": 
the generated code does nothing apart from displaying the created widgets. 
If you are looking for a complete IDE, maybe Boa Constructor or PythonCard 
is the right tool.

%files
%doc docs README.* CREDITS.txt LICENSE.txt
%{_bindir}/wxglade
%{python3_sitelib}/wxglade
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%{_datadir}/applications/%{name}.desktop
%{_datadir}/wxglade/icons
%{_datadir}/wxglade/templates
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#-------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

# icons
mkdir -p %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert -resize 32x32 icons/wxglade_small.png %{buildroot}%{_iconsdir}/%{name}.png
convert -resize 16x16 icons/wxglade_small.png %{buildroot}%{_miconsdir}/%{name}.png
convert -resize 48x48 icons/wxglade_small.png %{buildroot}%{_liconsdir}/%{name}.png

# menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=A GUI builder for wxWindows/wxPython
Exec=wxglade
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Development-Tools;GUIDesigner;
EOF

# docs handled by doc section
rm -rf %{buildroot}%{_datadir}/doc/wxglade

# fix attr
chmod a+x %{buildroot}%{python3_sitelib}/wxglade/{xrc2wxg,wxglade,templates_ui,msgdialog}.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11462 |21cr|wxgtk2.8-2.8.12-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# DEAD PACKAGE
# DO NOT FIX IT
# JUST UPGRADE OTHER PACKAGES TO USE EXGTK3

%define		oname	wxGTK
%define		api	2.8
%define		major	0

Summary:	GTK+ port of the wxWidgets library
Name:		wxgtk%{api}
Version:	2.8.12
Release:	24
License:	wxWidgets Library Licence
Group:		System/Libraries
Url:		http://www.wxwidgets.org/
Source0:	http://prdownloads.sourceforge.net/wxwindows/%{oname}-%{version}.tar.bz2
#gw security patch for bundled expat which we don't use:
Patch2:		wxGTK-2.8.10-CVE-2009-XXXX.diff
Patch3:		wxGTK-lX11_linkage_fix.diff
Patch8:		wxWidgets-2.7.0-multiarch-includes.patch
#gw security patch for bundled expat which we don't use:
Patch9:		wxGTK-2.8.8-CVE-2009-3560.diff
Patch10:	wxGTK-2.8.12-fix-user_data-casting.patch
#Fix building with C++14, which errors out due to narrowing conversions.
Patch11:	wxGTK-narrowing.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-0.10)
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xxf86vm)

%description
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

%files -f wxstd.lang
%doc *.txt

#----------------------------------------------------------------------------

%define libwx_baseu %mklibname wx_baseu %{api} %{major}

%package -n	%{libwx_baseu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8
Obsoletes:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_baseu}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_baseu}
%{_libdir}/libwx_baseu-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_baseu_net %mklibname wx_baseu_net %{api} %{major}

%package -n	%{libwx_baseu_net}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_baseu_net}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_baseu_net}
%{_libdir}/libwx_baseu_net-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_baseu_xml %mklibname wx_baseu_xml %{api} %{major}

%package -n	%{libwx_baseu_xml}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_baseu_xml}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_baseu_xml}
%{_libdir}/libwx_baseu_xml-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_adv %mklibname wx_gtk2u_adv %{api} %{major}

%package -n	%{libwx_gtk2u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_adv}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_adv}
%{_libdir}/libwx_gtk2u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_aui %mklibname wx_gtk2u_aui %{api} %{major}

%package -n	%{libwx_gtk2u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_aui}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_aui}
%{_libdir}/libwx_gtk2u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_core %mklibname wx_gtk2u_core %{api} %{major}

%package -n	%{libwx_gtk2u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_core}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_core}
%{_libdir}/libwx_gtk2u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_fl %mklibname wx_gtk2u_fl %{api} %{major}

%package -n	%{libwx_gtk2u_fl}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_fl}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_fl}
%{_libdir}/libwx_gtk2u_fl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_gizmos %mklibname wx_gtk2u_gizmos %{api} %{major}

%package -n	%{libwx_gtk2u_gizmos}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_gizmos}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_gizmos}
%{_libdir}/libwx_gtk2u_gizmos-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_gizmos_xrc %mklibname wx_gtk2u_gizmos_xrc %{api} %{major}

%package -n	%{libwx_gtk2u_gizmos_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_gizmos_xrc}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_gizmos_xrc}
%{_libdir}/libwx_gtk2u_gizmos_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_gl %mklibname wx_gtk2u_gl %{api} %{major}

%package -n	%{libwx_gtk2u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtkglu2.8 < 2.8.12-8
Obsoletes:	%{_lib}wxgtkglu2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_gl}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_gl}
%{_libdir}/libwx_gtk2u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_html %mklibname wx_gtk2u_html %{api} %{major}

%package -n	%{libwx_gtk2u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_html}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_html}
%{_libdir}/libwx_gtk2u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_media %mklibname wx_gtk2u_media %{api} %{major}

%package -n	%{libwx_gtk2u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_media}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_media}
%{_libdir}/libwx_gtk2u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_ogl %mklibname wx_gtk2u_ogl %{api} %{major}

%package -n	%{libwx_gtk2u_ogl}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_ogl}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_ogl}
%{_libdir}/libwx_gtk2u_ogl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_plot %mklibname wx_gtk2u_plot %{api} %{major}

%package -n	%{libwx_gtk2u_plot}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_plot}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_plot}
%{_libdir}/libwx_gtk2u_plot-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_qa %mklibname wx_gtk2u_qa %{api} %{major}

%package -n	%{libwx_gtk2u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_qa}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_qa}
%{_libdir}/libwx_gtk2u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_richtext %mklibname wx_gtk2u_richtext %{api} %{major}

%package -n	%{libwx_gtk2u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_richtext}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_richtext}
%{_libdir}/libwx_gtk2u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_stc %mklibname wx_gtk2u_stc %{api} %{major}

%package -n	%{libwx_gtk2u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_stc}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_stc}
%{_libdir}/libwx_gtk2u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_svg %mklibname wx_gtk2u_svg %{api} %{major}

%package -n	%{libwx_gtk2u_svg}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_svg}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_svg}
%{_libdir}/libwx_gtk2u_svg-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_xrc %mklibname wx_gtk2u_xrc %{api} %{major}

%package -n	%{libwx_gtk2u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{_lib}wxgtku2.8 < 2.8.12-8

%description -n %{libwx_gtk2u_xrc}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_xrc}
%{_libdir}/libwx_gtk2u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libnameudev %mklibname -d wxgtku %{api}

%package -n	%{libnameudev}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_baseu} = %{EVRD}
Requires:	%{libwx_baseu_net} = %{EVRD}
Requires:	%{libwx_baseu_xml} = %{EVRD}
Requires:	%{libwx_gtk2u_adv} = %{EVRD}
Requires:	%{libwx_gtk2u_aui} = %{EVRD}
Requires:	%{libwx_gtk2u_core} = %{EVRD}
Requires:	%{libwx_gtk2u_fl} = %{EVRD}
Requires:	%{libwx_gtk2u_gizmos} = %{EVRD}
Requires:	%{libwx_gtk2u_gizmos_xrc} = %{EVRD}
Requires:	%{libwx_gtk2u_gl} = %{EVRD}
Requires:	%{libwx_gtk2u_html} = %{EVRD}
Requires:	%{libwx_gtk2u_media} = %{EVRD}
Requires:	%{libwx_gtk2u_ogl} = %{EVRD}
Requires:	%{libwx_gtk2u_plot} = %{EVRD}
Requires:	%{libwx_gtk2u_qa} = %{EVRD}
Requires:	%{libwx_gtk2u_richtext} = %{EVRD}
Requires:	%{libwx_gtk2u_stc} = %{EVRD}
Requires:	%{libwx_gtk2u_svg} = %{EVRD}
Requires:	%{libwx_gtk2u_xrc} = %{EVRD}
Provides:	wxGTK-devel = %{EVRD}
Provides:	wxgtku-devel = %{EVRD}
Provides:	wxgtku%{api}-devel = %{EVRD}

%description -n %{libnameudev}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev}
%doc samples/
%doc docs/
%doc demos/
%{_bindir}/wx-config
%{_bindir}/wxrc
%{_bindir}/wx-config-unicode
%{_bindir}/wxrc-*unicode
%{_includedir}/wx-%{api}/
%dir %{_libdir}/wx/
%dir %{_libdir}/wx/include/
%dir %{_libdir}/wx/include/gtk2-unicode-release-%{api}/
%dir %{_libdir}/wx/include/gtk2-unicode-release-%{api}/wx/
%dir %{_libdir}/wx/config
%{_datadir}/aclocal/*
%{_datadir}/bakefile/
%{_libdir}/wx/config/gtk2-unicode-release-%{api}
%{_libdir}/wx/include/gtk2-unicode-release-%{api}/wx/setup.h
%{_libdir}/libwx_baseu-%{api}.so
%{_libdir}/libwx_baseu_net-%{api}.so
%{_libdir}/libwx_baseu_xml-%{api}.so
%{_libdir}/libwx_gtk2u_adv-%{api}.so
%{_libdir}/libwx_gtk2u_aui-%{api}.so
%{_libdir}/libwx_gtk2u_core-%{api}.so
%{_libdir}/libwx_gtk2u_fl-%{api}.so
%{_libdir}/libwx_gtk2u_gizmos-%{api}.so
%{_libdir}/libwx_gtk2u_gizmos_xrc-%{api}.so
%{_libdir}/libwx_gtk2u_gl-%{api}.so
%{_libdir}/libwx_gtk2u_html-%{api}.so
%{_libdir}/libwx_gtk2u_media-%{api}.so
%{_libdir}/libwx_gtk2u_ogl-%{api}.so
%{_libdir}/libwx_gtk2u_plot-%{api}.so
%{_libdir}/libwx_gtk2u_qa-%{api}.so
%{_libdir}/libwx_gtk2u_richtext-%{api}.so
%{_libdir}/libwx_gtk2u_stc-%{api}.so
%{_libdir}/libwx_gtk2u_svg-%{api}.so
%{_libdir}/libwx_gtk2u_xrc-%{api}.so

%pre -n %{libnameudev}
update-alternatives --remove wx-config %{_libdir}/wx/config/gtk2-unicode-release-%{api} || :

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch2 -p0 -b .CVE-2009-XXXX
%patch3 -p1
%patch8 -p1 -b .multiarch
%patch9 -p0 -b .CVE-2009-3560
%patch10 -p1 -b .cast~
%patch11 -p1
sed -i -e 's/@LDFLAGS@//' wx-config.in

# fix plugin dir for 64-bit
sed -i -e 's|/lib|/%{_lib}|' src/unix/stdpaths.cpp

find samples demos -name .cvsignore -exec rm {} \;

%build
#gw 2.8.11 doesn't build otherwise:
%define _disable_ld_no_undefined 1
%define Werror_cflags %nil
# --disable-optimise prevents our $RPM_OPT_FLAGS being overridden
# (see OPTIMISE in configure).
# this code dereferences type-punned pointers like there's no tomorrow.
CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="%{optflags} -fno-strict-aliasing"

%configure --enable-unicode \
	--without-odbc \
	--with-opengl \
	--enable-gtk2 --with-gtk  \
	--without-debug_flag \
	--without-debug_info \
	--with-sdl \
	--with-libpng=sys \
	--with-libjpeg=sys \
	--with-libtiff=sys \
	--with-zlib=sys \
	--disable-optimise \
	--enable-calendar \
	--enable-wave \
	--enable-fraction \
	--enable-wxprintfv \
	--enable-xresources \
	--enable-controls \
	--enable-tabdialog \
	--enable-msgdlg \
	--enable-dirdlg \
	--enable-numberdlg \
	--enable-splash \
	--enable-textdlg \
	--enable-graphics_ctx \
	--enable-grid \
	--disable-catch_segvs \
	--enable-mediactrl \
	--enable-dataviewctrl

%make

%make -C locale allmo
%make -C contrib
#gw prepare samples
cd demos
make clean
rm -f makefile* demos.bkl
cd ../samples
make clean
rm -f makefile* samples.bkl
cd ..
find demos samples -name Makefile|xargs perl -pi -e 's^CXXC =.*^CXXC=\$(CXX) `wx-config --cflags`^'
find demos samples -name Makefile|xargs perl -pi -e 's^EXTRALIBS =.*^EXTRALIBS=^'
find demos samples -name Makefile|xargs perl -pi -e 's^SAMPLES_RPATH_FLAG =.*^SAMPLES_RPATH_FLAG=^'

%install
%makeinstall_std
%find_lang wxstd
%find_lang wxmsw
cat wxmsw.lang >> wxstd.lang
%makeinstall_std -C contrib

mv %{buildroot}%{_bindir}/wxrc-%{api} %{buildroot}%{_bindir}/wxrc-%{api}-unicode
###
#gw fix broken symlink
rm -f %{buildroot}%{_bindir}/{wx-config,wxrc}
ln -sf %{_libdir}/wx/config/gtk2-unicode-release-%{api} %{buildroot}%{_bindir}/wx-config
ln -sf %{_libdir}/wx/config/gtk2-unicode-release-%{api} %{buildroot}%{_bindir}/wx-config-unicode
ln -sf %{_bindir}/wxrc-%{api}-unicode %{buildroot}%{_bindir}/wxrc

#gw this breaks /usr/bin/wx-config
mkdir %{buildroot}%{multiarch_bindir}
ln -s %{_libdir}/wx/config/%{multiarch_platform}/gtk2-unicode-release-%{api} %{buildroot}%{multiarch_bindir}/wx-config-unicode

# fix path in headers files
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include \"\(wx[a-zA-Z0-9_/.]*\)\":include <\1>:' \{\} \;
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include <wx/:include <wx-%{api}/wx/:' \{\} \;
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:"wx/:":' \{\} \;
ln -s ../../../%{_lib}/wx/include/gtk2-unicode-release-%{api}/wx/setup.h %{buildroot}%{_includedir}/wx-%{api}/wx/setup.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11463 |21cr|wxgtk3.1-3.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wxWidgets
%define api 3.1
%define major 5

%bcond_without compat

%if %{with compat}
BuildRequires:	pkgconfig(gtk+-2.0)
%endif

Summary:	GTK+ port of the wxWidgets library
Name:		wxgtk%{api}
Version:	3.1.5
Release:	1
License:	wxWidgets Library Licence
Group:		System/Libraries
Url:		http://www.wxwidgets.org/
Source0:	https://github.com/wxWidgets/wxWidgets/releases/download/v%{version}/%{oname}-%{version}.tar.bz2
Patch1:		wxWidgets-3.0.3-fix_assertion_using_hide_in_destroy.diff
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)

%description
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

%files -f wxstd-%%{api}.lang
%doc *.txt

#----------------------------------------------------------------------------

%define webkit2_extu %mklibname webkit2_extu %{api}

%package -n %{webkit2_extu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	webkit4.0

%description -n %{webkit2_extu}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{webkit2_extu}
%{_libdir}/wx/%{version}/web-extensions/webkit2_extu-%{version}.so

#----------------------------------------------------------------------------

%define libwx_baseu %mklibname wx_baseu %{api} %{major}

%package -n %{libwx_baseu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_baseu}
%{_libdir}/libwx_baseu-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_baseu_net %mklibname wx_baseu_net %{api} %{major}

%package -n %{libwx_baseu_net}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu_net}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_baseu_net}
%{_libdir}/libwx_baseu_net-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_baseu_xml %mklibname wx_baseu_xml %{api} %{major}

%package -n %{libwx_baseu_xml}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu_xml}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_baseu_xml}
%{_libdir}/libwx_baseu_xml-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_adv %mklibname wx_gtk3u_adv %{api} %{major}

%package -n %{libwx_gtk3u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_adv}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_adv}
%{_libdir}/libwx_gtk3u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_adv %mklibname wx_gtk2u_adv %{api} %{major}

%package -n %{libwx_gtk2u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_adv}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_adv}
%{_libdir}/libwx_gtk2u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_aui %mklibname wx_gtk3u_aui %{api} %{major}

%package -n %{libwx_gtk3u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_aui}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_aui}
%{_libdir}/libwx_gtk3u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_aui %mklibname wx_gtk2u_aui %{api} %{major}

%package -n %{libwx_gtk2u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_aui}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_aui}
%{_libdir}/libwx_gtk2u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_core %mklibname wx_gtk3u_core %{api} %{major}

%package -n %{libwx_gtk3u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_core}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_core}
%{_libdir}/libwx_gtk3u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_core %mklibname wx_gtk2u_core %{api} %{major}

%package -n %{libwx_gtk2u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_core}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_core}
%{_libdir}/libwx_gtk2u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_gl %mklibname wx_gtk3u_gl %{api} %{major}

%package -n %{libwx_gtk3u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_gl}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_gl}
%{_libdir}/libwx_gtk3u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_gl %mklibname wx_gtk2u_gl %{api} %{major}

%package -n %{libwx_gtk2u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_gl}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_gl}
%{_libdir}/libwx_gtk2u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_html %mklibname wx_gtk3u_html %{api} %{major}

%package -n %{libwx_gtk3u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_html}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_html}
%{_libdir}/libwx_gtk3u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_html %mklibname wx_gtk2u_html %{api} %{major}

%package -n %{libwx_gtk2u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_html}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_html}
%{_libdir}/libwx_gtk2u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_media %mklibname wx_gtk3u_media %{api} %{major}

%package -n %{libwx_gtk3u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_media}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_media}
%{_libdir}/libwx_gtk3u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_media %mklibname wx_gtk2u_media %{api} %{major}

%package -n %{libwx_gtk2u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_media}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_media}
%{_libdir}/libwx_gtk2u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_propgrid %mklibname wx_gtk3u_propgrid %{api} %{major}

%package -n %{libwx_gtk3u_propgrid}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_propgrid}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_propgrid}
%{_libdir}/libwx_gtk3u_propgrid-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_propgrid %mklibname wx_gtk2u_propgrid %{api} %{major}

%package -n %{libwx_gtk2u_propgrid}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_propgrid}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_propgrid}
%{_libdir}/libwx_gtk2u_propgrid-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_qa %mklibname wx_gtk3u_qa %{api} %{major}

%package -n %{libwx_gtk3u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_qa}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_qa}
%{_libdir}/libwx_gtk3u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_qa %mklibname wx_gtk2u_qa %{api} %{major}

%package -n %{libwx_gtk2u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_qa}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_qa}
%{_libdir}/libwx_gtk2u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_ribbon %mklibname wx_gtk3u_ribbon %{api} %{major}

%package -n %{libwx_gtk3u_ribbon}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_ribbon}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_ribbon}
%{_libdir}/libwx_gtk3u_ribbon-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_ribbon %mklibname wx_gtk2u_ribbon %{api} %{major}

%package -n %{libwx_gtk2u_ribbon}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_ribbon}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_ribbon}
%{_libdir}/libwx_gtk2u_ribbon-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_richtext %mklibname wx_gtk3u_richtext %{api} %{major}

%package -n %{libwx_gtk3u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_richtext}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_richtext}
%{_libdir}/libwx_gtk3u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_richtext %mklibname wx_gtk2u_richtext %{api} %{major}

%package -n %{libwx_gtk2u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_richtext}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_richtext}
%{_libdir}/libwx_gtk2u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_stc %mklibname wx_gtk3u_stc %{api} %{major}

%package -n %{libwx_gtk3u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_stc}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_stc}
%{_libdir}/libwx_gtk3u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_stc %mklibname wx_gtk2u_stc %{api} %{major}

%package -n %{libwx_gtk2u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_stc}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_stc}
%{_libdir}/libwx_gtk2u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_webview %mklibname wx_gtk3u_webview %{api} %{major}

%package -n %{libwx_gtk3u_webview}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_webview}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_webview}
%{_libdir}/libwx_gtk3u_webview-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk3u_xrc %mklibname wx_gtk3u_xrc %{api} %{major}

%package -n %{libwx_gtk3u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_xrc}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk3u_xrc}
%{_libdir}/libwx_gtk3u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libwx_gtk2u_xrc %mklibname wx_gtk2u_xrc %{api} %{major}

%package -n %{libwx_gtk2u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_xrc}
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

This package contains the library needed to run programs dynamically
linked with the unicode enabled version of %{name}.

%files -n %{libwx_gtk2u_xrc}
%{_libdir}/libwx_gtk2u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%define libnameudev %mklibname -d wxgtku %{api}

%package -n %{libnameudev}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_baseu} = %{EVRD}
Requires:	%{libwx_baseu_net} = %{EVRD}
Requires:	%{libwx_baseu_xml} = %{EVRD}
Requires:	%{libwx_gtk3u_adv} = %{EVRD}
Requires:	%{libwx_gtk3u_aui} = %{EVRD}
Requires:	%{libwx_gtk3u_core} = %{EVRD}
Requires:	%{libwx_gtk3u_gl} = %{EVRD}
Requires:	%{libwx_gtk3u_html} = %{EVRD}
Requires:	%{libwx_gtk3u_media} = %{EVRD}
Requires:	%{libwx_gtk3u_propgrid} = %{EVRD}
Requires:	%{libwx_gtk3u_qa} = %{EVRD}
Requires:	%{libwx_gtk3u_ribbon} = %{EVRD}
Requires:	%{libwx_gtk3u_richtext} = %{EVRD}
Requires:	%{libwx_gtk3u_stc} = %{EVRD}
Requires:	%{libwx_gtk3u_webview} = %{EVRD}
Requires:	%{libwx_gtk3u_xrc} = %{EVRD}
Provides:	wxgtku%{api}-devel = %{EVRD}
# At this time 2.8 and 3.1 cannot co-exist because of file conflicts
Conflicts:	%{_lib}wxgtku2.8-devel
Conflicts:	%{_lib}wxgtku3.0-devel

%description -n %{libnameudev}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev}
%doc samples/
%doc docs/
%doc demos/
%{_bindir}/wx-config
%{_bindir}/wxrc
%{_bindir}/wxrc-%{api}
%{_includedir}/wx-%{api}/
%{_datadir}/aclocal/*
%{_datadir}/bakefile/
%{_libdir}/wx/config/gtk3-unicode-%{api}
%{_libdir}/wx/include/gtk3-unicode-%{api}/wx/setup.h
%{_libdir}/libwx_baseu-%{api}.so
%{_libdir}/libwx_baseu_net-%{api}.so
%{_libdir}/libwx_baseu_xml-%{api}.so
%{_libdir}/libwx_gtk3u_adv-%{api}.so
%{_libdir}/libwx_gtk3u_aui-%{api}.so
%{_libdir}/libwx_gtk3u_core-%{api}.so
%{_libdir}/libwx_gtk3u_gl-%{api}.so
%{_libdir}/libwx_gtk3u_html-%{api}.so
%{_libdir}/libwx_gtk3u_media-%{api}.so
%{_libdir}/libwx_gtk3u_propgrid-%{api}.so
%{_libdir}/libwx_gtk3u_qa-%{api}.so
%{_libdir}/libwx_gtk3u_ribbon-%{api}.so
%{_libdir}/libwx_gtk3u_richtext-%{api}.so
%{_libdir}/libwx_gtk3u_stc-%{api}.so
%{_libdir}/libwx_gtk3u_webview-%{api}.so
%{_libdir}/libwx_gtk3u_xrc-%{api}.so

#----------------------------------------------------------------------------

%define libnameudev_gtk2 %mklibname -d wxgtku%{api}-gtk2

%package -n %{libnameudev_gtk2}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_gtk2u_adv} = %{EVRD}
Requires:	%{libwx_gtk2u_aui} = %{EVRD}
Requires:	%{libwx_gtk2u_core} = %{EVRD}
Requires:	%{libwx_gtk2u_gl} = %{EVRD}
Requires:	%{libwx_gtk2u_html} = %{EVRD}
Requires:	%{libwx_gtk2u_media} = %{EVRD}
Requires:	%{libwx_gtk2u_propgrid} = %{EVRD}
Requires:	%{libwx_gtk2u_qa} = %{EVRD}
Requires:	%{libwx_gtk2u_ribbon} = %{EVRD}
Requires:	%{libwx_gtk2u_richtext} = %{EVRD}
Requires:	%{libwx_gtk2u_stc} = %{EVRD}
Requires:	%{libwx_gtk2u_xrc} = %{EVRD}
Provides:	wxgtku%{api}-gtk2-devel = %{EVRD}
# At this time 2.8 and 3.1 cannot co-exist because of file conflicts
Conflicts:	%{_lib}wxgtku2.8-devel
Conflicts:	%{_lib}wxgtku3.0-devel

%description -n %{libnameudev_gtk2}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev_gtk2}
%doc samples/
%doc docs/
%doc demos/
%{_bindir}/wx-config-gtk2
%{_libdir}/wx/config/gtk2-unicode-%{api}
%{_libdir}/wx/include/gtk2-unicode-%{api}/wx/setup.h
%{_libdir}/libwx_gtk2u_adv-%{api}.so
%{_libdir}/libwx_gtk2u_aui-%{api}.so
%{_libdir}/libwx_gtk2u_core-%{api}.so
%{_libdir}/libwx_gtk2u_gl-%{api}.so
%{_libdir}/libwx_gtk2u_html-%{api}.so
%{_libdir}/libwx_gtk2u_media-%{api}.so
%{_libdir}/libwx_gtk2u_propgrid-%{api}.so
%{_libdir}/libwx_gtk2u_qa-%{api}.so
%{_libdir}/libwx_gtk2u_ribbon-%{api}.so
%{_libdir}/libwx_gtk2u_richtext-%{api}.so
%{_libdir}/libwx_gtk2u_stc-%{api}.so
%{_libdir}/libwx_gtk2u_xrc-%{api}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# fix plugin dir for 64-bit
sed -i -e 's|/lib|/%{_lib}|' src/unix/stdpaths.cpp

%build
#gw 2.8.11 doesn't build otherwise:
#define _disable_ld_no_undefined 1
%define Werror_cflags %nil
# --disable-optimise prevents our $RPM_OPT_FLAGS being overridden
# (see OPTIMISE in configure).
# this code dereferences type-punned pointers like there's no tomorrow.
CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="%{optflags} -fno-strict-aliasing"
LIBS="$LIBS -lpthread"

CONF_FLAG="\
	--disable-option-checking \
	--enable-unicode \
	--without-odbc \
	--with-opengl \
	--without-debug_flag \
	--without-debug_info \
	--with-sdl \
	--with-libpng=sys \
	--with-libjpeg=sys \
	--with-libtiff=sys \
	--with-zlib=sys \
	--disable-optimise \
	--enable-calendar \
	--enable-wave \
	--enable-fraction \
	--enable-wxprintfv \
	--enable-xresources \
	--enable-controls \
	--enable-tabdialog \
	--enable-msgdlg \
	--enable-dirdlg \
	--enable-numberdlg \
	--enable-splash \
	--enable-textdlg \
	--enable-graphics_ctx \
	--enable-grid \
	--disable-catch_segvs \
	--enable-mediactrl \
	--enable-dataviewctrl \
	--enable-intl \
	--enable-stc \
	--enable-ipv6"

export CONFIGURE_TOP=..

%if %{with compat}
mkdir build_gtk2
pushd build_gtk2
%configure $CONF_FLAG \
    --with-gtk=2 \
    --disable-webview
%make
popd
%endif

mkdir build_gtk3
pushd build_gtk3
%configure $CONF_FLAG \
    --with-gtk=3 
%make
make -C ../locale allmo
popd

%install

%if %{with compat}
pushd build_gtk2
%makeinstall_std
mv %{buildroot}/%{_bindir}/wx-config %{buildroot}/%{_bindir}/wx-config-gtk2
popd
%endif

pushd build_gtk3
%makeinstall_std
popd

%find_lang wxstd-%{api}
#%%find_lang wxmsw-%{api}
#cat wxmsw-%{api}.lang >> wxstd-%{api}.lang

# fix path in headers files
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include \"\(wx[a-zA-Z0-9_/.]*\)\":include <\1>:' \{\} \;
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include <wx/:include <wx-%{api}/wx/:' \{\} \;
ln -s ../../../%{_lib}/wx/include/gtk3-unicode-%{api}/wx/setup.h %{buildroot}%{_includedir}/wx-%{api}/wx/setup.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11464 |21cr|wxgtk3.2-3.2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wxWidgets
%define api 3.2
%define major 0
%define libnameudev_gtk2 %mklibname -d wxgtku%{api}-gtk2
%define libnameudev %mklibname -d wxgtku %{api}
%define libwx_baseu %mklibname wx_baseu %{api} %{major}
%define libwx_baseu_net %mklibname wx_baseu_net %{api} %{major}
%define libwx_baseu_xml %mklibname wx_baseu_xml %{api} %{major}
%define libwx_gtk2u_adv %mklibname wx_gtk2u_adv %{api} %{major}
%define libwx_gtk2u_aui %mklibname wx_gtk2u_aui %{api} %{major}
%define libwx_gtk2u_core %mklibname wx_gtk2u_core %{api} %{major}
%define libwx_gtk2u_gl %mklibname wx_gtk2u_gl %{api} %{major}
%define libwx_gtk2u_html %mklibname wx_gtk2u_html %{api} %{major}
%define libwx_gtk2u_media %mklibname wx_gtk2u_media %{api} %{major}
%define libwx_gtk2u_propgrid %mklibname wx_gtk2u_propgrid %{api} %{major}
%define libwx_gtk2u_qa %mklibname wx_gtk2u_qa %{api} %{major}
%define libwx_gtk2u_ribbon %mklibname wx_gtk2u_ribbon %{api} %{major}
%define libwx_gtk2u_richtext %mklibname wx_gtk2u_richtext %{api} %{major}
%define libwx_gtk2u_stc %mklibname wx_gtk2u_stc %{api} %{major}
%define libwx_gtk2u_xrc %mklibname wx_gtk2u_xrc %{api} %{major}
%define libwx_gtk3u_adv %mklibname wx_gtk3u_adv %{api} %{major}
%define libwx_gtk3u_aui %mklibname wx_gtk3u_aui %{api} %{major}
%define libwx_gtk3u_core %mklibname wx_gtk3u_core %{api} %{major}
%define libwx_gtk3u_gl %mklibname wx_gtk3u_gl %{api} %{major}
%define libwx_gtk3u_html %mklibname wx_gtk3u_html %{api} %{major}
%define libwx_gtk3u_media %mklibname wx_gtk3u_media %{api} %{major}
%define libwx_gtk3u_propgrid %mklibname wx_gtk3u_propgrid %{api} %{major}
%define libwx_gtk3u_qa %mklibname wx_gtk3u_qa %{api} %{major}
%define libwx_gtk3u_ribbon %mklibname wx_gtk3u_ribbon %{api} %{major}
%define libwx_gtk3u_richtext %mklibname wx_gtk3u_richtext %{api} %{major}
%define libwx_gtk3u_stc %mklibname wx_gtk3u_stc %{api} %{major}
%define libwx_gtk3u_webview %mklibname wx_gtk3u_webview %{api} %{major}
%define libwx_gtk3u_xrc %mklibname wx_gtk3u_xrc %{api} %{major}
%define webkit2_extu %mklibname webkit2_extu %{api}

%bcond_without compat

%if %{with compat}
BuildRequires:	pkgconfig(gtk+-2.0)
%endif

Summary:	GTK+ port of the wxWidgets library
Name:		wxgtk%{api}
Version:	3.2.2.1
Release:	1
License:	wxWidgets Library Licence
Group:		System/Libraries
Url:		http://www.wxwidgets.org/
Source0:	https://github.com/wxWidgets/wxWidgets/releases/download/v%{version}/%{oname}-%{version}.tar.bz2
Patch1:		wxWidgets-3.0.3-fix_assertion_using_hide_in_destroy.diff
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)

%description
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

%files -f wxstd-%%{api}.lang
%doc *.txt

#----------------------------------------------------------------------------

# spec too big
%define descript \
wxWidgets is a free C++ library for cross-platform GUI development. \
With wxWidgets, you can create applications for different GUIs (GTK+, \
Motif/LessTif, MS Windows, Mac) from the same source code. \
 \
This package contains the library needed to run programs dynamically \
linked with the unicode enabled version of %{name}.

%package -n %{webkit2_extu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	webkit2gtk4.0

%description -n %{webkit2_extu}
%{descript}

%files -n %{webkit2_extu}
%{_libdir}/wx/%{api}/web-extensions/webkit2_extu-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libwx_baseu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu}
%{descript}

%files -n %{libwx_baseu}
%{_libdir}/libwx_baseu-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_baseu_net}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu_net}
%{descript}

%files -n %{libwx_baseu_net}
%{_libdir}/libwx_baseu_net-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_baseu_xml}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu_xml}
%{descript}

%files -n %{libwx_baseu_xml}
%{_libdir}/libwx_baseu_xml-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_adv}
%{descript}

%files -n %{libwx_gtk3u_adv}
%{_libdir}/libwx_gtk3u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_adv}
%{descript}

%files -n %{libwx_gtk2u_adv}
%{_libdir}/libwx_gtk2u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_aui}
%{descript}

%files -n %{libwx_gtk3u_aui}
%{_libdir}/libwx_gtk3u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_aui}
%{descript}

%files -n %{libwx_gtk2u_aui}
%{_libdir}/libwx_gtk2u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_core}
%{descript}

%files -n %{libwx_gtk3u_core}
%{_libdir}/libwx_gtk3u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_core}
%{descript}

%files -n %{libwx_gtk2u_core}
%{_libdir}/libwx_gtk2u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_gl}
%{descript}

%files -n %{libwx_gtk3u_gl}
%{_libdir}/libwx_gtk3u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_gl}
%{descript}

%files -n %{libwx_gtk2u_gl}
%{_libdir}/libwx_gtk2u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_html}
%{descript}

%files -n %{libwx_gtk3u_html}
%{_libdir}/libwx_gtk3u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_html}
%{descript}

%files -n %{libwx_gtk2u_html}
%{_libdir}/libwx_gtk2u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_media}
%{descript}

%files -n %{libwx_gtk3u_media}
%{_libdir}/libwx_gtk3u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_media}
%{descript}

%files -n %{libwx_gtk2u_media}
%{_libdir}/libwx_gtk2u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_propgrid}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_propgrid}
%{descript}

%files -n %{libwx_gtk3u_propgrid}
%{_libdir}/libwx_gtk3u_propgrid-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_propgrid}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_propgrid}
%{descript}

%files -n %{libwx_gtk2u_propgrid}
%{_libdir}/libwx_gtk2u_propgrid-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_qa}
%{descript}

%files -n %{libwx_gtk3u_qa}
%{_libdir}/libwx_gtk3u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_qa}
%{descript}

%files -n %{libwx_gtk2u_qa}
%{_libdir}/libwx_gtk2u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_ribbon}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_ribbon}
%{descript}

%files -n %{libwx_gtk3u_ribbon}
%{_libdir}/libwx_gtk3u_ribbon-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_ribbon}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_ribbon}
%{descript}

%files -n %{libwx_gtk2u_ribbon}
%{_libdir}/libwx_gtk2u_ribbon-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_richtext}
%{descript}

%files -n %{libwx_gtk3u_richtext}
%{_libdir}/libwx_gtk3u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_richtext}
%{descript}

%files -n %{libwx_gtk2u_richtext}
%{_libdir}/libwx_gtk2u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_stc}
%{descript}

%files -n %{libwx_gtk3u_stc}
%{_libdir}/libwx_gtk3u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_stc}
%{descript}

%files -n %{libwx_gtk2u_stc}
%{_libdir}/libwx_gtk2u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_webview}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_webview}
%{descript}

%files -n %{libwx_gtk3u_webview}
%{_libdir}/libwx_gtk3u_webview-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_xrc}
%{descript}

%files -n %{libwx_gtk3u_xrc}
%{_libdir}/libwx_gtk3u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_xrc}
%{descript}

%files -n %{libwx_gtk2u_xrc}
%{_libdir}/libwx_gtk2u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameudev}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_baseu} = %{EVRD}
Requires:	%{libwx_baseu_net} = %{EVRD}
Requires:	%{libwx_baseu_xml} = %{EVRD}
Requires:	%{libwx_gtk3u_adv} = %{EVRD}
Requires:	%{libwx_gtk3u_aui} = %{EVRD}
Requires:	%{libwx_gtk3u_core} = %{EVRD}
Requires:	%{libwx_gtk3u_gl} = %{EVRD}
Requires:	%{libwx_gtk3u_html} = %{EVRD}
Requires:	%{libwx_gtk3u_media} = %{EVRD}
Requires:	%{libwx_gtk3u_propgrid} = %{EVRD}
Requires:	%{libwx_gtk3u_qa} = %{EVRD}
Requires:	%{libwx_gtk3u_ribbon} = %{EVRD}
Requires:	%{libwx_gtk3u_richtext} = %{EVRD}
Requires:	%{libwx_gtk3u_stc} = %{EVRD}
Requires:	%{libwx_gtk3u_webview} = %{EVRD}
Requires:	%{libwx_gtk3u_xrc} = %{EVRD}
Provides:	wxgtku%{api}-devel = %{EVRD}
# At this time 2.8 and 3.1 cannot co-exist because of file conflicts
Conflicts:	%{_lib}wxgtku2.8-devel
Conflicts:	%{_lib}wxgtku3.0-devel
Conflicts:	%{_lib}wxgtku3.1-devel

%description -n %{libnameudev}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev}
%doc demos docs samples
%{_bindir}/wx-config
%{_bindir}/wxrc
%{_bindir}/wxrc-%{api}
%{_datadir}/aclocal/*
%{_datadir}/bakefile/
%{_includedir}/wx-%{api}/
%{_libdir}/libwx_baseu-%{api}.so
%{_libdir}/libwx_baseu_net-%{api}.so
%{_libdir}/libwx_baseu_xml-%{api}.so
%{_libdir}/libwx_gtk3u_adv-%{api}.so
%{_libdir}/libwx_gtk3u_aui-%{api}.so
%{_libdir}/libwx_gtk3u_core-%{api}.so
%{_libdir}/libwx_gtk3u_gl-%{api}.so
%{_libdir}/libwx_gtk3u_html-%{api}.so
%{_libdir}/libwx_gtk3u_media-%{api}.so
%{_libdir}/libwx_gtk3u_propgrid-%{api}.so
%{_libdir}/libwx_gtk3u_qa-%{api}.so
%{_libdir}/libwx_gtk3u_ribbon-%{api}.so
%{_libdir}/libwx_gtk3u_richtext-%{api}.so
%{_libdir}/libwx_gtk3u_stc-%{api}.so
%{_libdir}/libwx_gtk3u_webview-%{api}.so
%{_libdir}/libwx_gtk3u_xrc-%{api}.so
%{_libdir}/wx/config/gtk3-unicode-%{api}
%{_libdir}/wx/include/gtk3-unicode-%{api}/wx/setup.h

#----------------------------------------------------------------------------

%package -n %{libnameudev_gtk2}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_gtk2u_adv} = %{EVRD}
Requires:	%{libwx_gtk2u_aui} = %{EVRD}
Requires:	%{libwx_gtk2u_core} = %{EVRD}
Requires:	%{libwx_gtk2u_gl} = %{EVRD}
Requires:	%{libwx_gtk2u_html} = %{EVRD}
Requires:	%{libwx_gtk2u_media} = %{EVRD}
Requires:	%{libwx_gtk2u_propgrid} = %{EVRD}
Requires:	%{libwx_gtk2u_qa} = %{EVRD}
Requires:	%{libwx_gtk2u_ribbon} = %{EVRD}
Requires:	%{libwx_gtk2u_richtext} = %{EVRD}
Requires:	%{libwx_gtk2u_stc} = %{EVRD}
Requires:	%{libwx_gtk2u_xrc} = %{EVRD}
Provides:	wxgtku%{api}-gtk2-devel = %{EVRD}
# At this time 2.8 and 3.1 cannot co-exist because of file conflicts
Conflicts:	%{_lib}wxgtku2.8-devel
Conflicts:	%{_lib}wxgtku3.0-devel
Conflicts:	%{_lib}wxgtku3.1-devel

%description -n %{libnameudev_gtk2}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev_gtk2}
%doc demos docs samples
%{_bindir}/wx-config-gtk2
%{_libdir}/libwx_gtk2u_adv-%{api}.so
%{_libdir}/libwx_gtk2u_aui-%{api}.so
%{_libdir}/libwx_gtk2u_core-%{api}.so
%{_libdir}/libwx_gtk2u_gl-%{api}.so
%{_libdir}/libwx_gtk2u_html-%{api}.so
%{_libdir}/libwx_gtk2u_media-%{api}.so
%{_libdir}/libwx_gtk2u_propgrid-%{api}.so
%{_libdir}/libwx_gtk2u_qa-%{api}.so
%{_libdir}/libwx_gtk2u_ribbon-%{api}.so
%{_libdir}/libwx_gtk2u_richtext-%{api}.so
%{_libdir}/libwx_gtk2u_stc-%{api}.so
%{_libdir}/libwx_gtk2u_xrc-%{api}.so
%{_libdir}/wx/config/gtk2-unicode-%{api}
%{_libdir}/wx/include/gtk2-unicode-%{api}/wx/setup.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# fix plugin dir for 64-bit
sed -i -e 's|/lib|/%{_lib}|' src/unix/stdpaths.cpp

%build
%config_update
%define Werror_cflags %nil
# --disable-optimise prevents our $RPM_OPT_FLAGS being overridden
# (see OPTIMISE in configure).
# this code dereferences type-punned pointers like there's no tomorrow.
CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="%{optflags} -fno-strict-aliasing"
LIBS="$LIBS -lpthread"

CONF_FLAG="\
	--disable-catch_segvs	\
	--disable-optimise	\
	--disable-option-checking	\
	--enable-calendar	\
	--enable-controls	\
	--enable-dataviewctrl	\
	--enable-dirdlg		\
	--enable-fraction	\
	--enable-graphics_ctx	\
	--enable-grid		\
	--enable-intl		\
	--enable-ipv6		\
	--enable-mediactrl	\
	--enable-msgdlg		\
	--enable-numberdlg	\
	--enable-splash		\
	--enable-stc		\
	--enable-tabdialog	\
	--enable-textdlg	\
	--enable-unicode	\
	--enable-wave		\
	--enable-wxprintfv	\
	--enable-xresources	\
	--with-libjpeg=sys	\
	--with-libpng=sys	\
	--with-libtiff=sys	\
	--with-opengl		\
	--without-debug_flag	\
	--without-debug_info	\
	--without-odbc		\
	--with-sdl		\
	--with-zlib=sys"

export CONFIGURE_TOP=..

%if %{with compat}
mkdir build_gtk2
pushd build_gtk2
%configure \
	$CONF_FLAG		\
	--disable-webview	\
	--with-gtk=2
%make
popd
%endif

mkdir build_gtk3
pushd build_gtk3
%configure \
	$CONF_FLAG		\
	--with-gtk=3 
%make
make -C ../locale allmo
popd

%install
%if %{with compat}
pushd build_gtk2
%makeinstall_std
mv %{buildroot}/%{_bindir}/wx-config %{buildroot}/%{_bindir}/wx-config-gtk2
popd
%endif

pushd build_gtk3
%makeinstall_std
popd

%find_lang wxstd-%{api}
#%%find_lang wxmsw-%{api}
#cat wxmsw-%{api}.lang >> wxstd-%{api}.lang

# fix path in headers files
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include \"\(wx[a-zA-Z0-9_/.]*\)\":include <\1>:' \{\} \;
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include <wx/:include <wx-%{api}/wx/:' \{\} \;
ln -s ../../../%{_lib}/wx/include/gtk3-unicode-%{api}/wx/setup.h %{buildroot}%{_includedir}/wx-%{api}/wx/setup.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11465 |21cr|wxlauncher-0.12.0-1.rc3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define oname wxLauncher

%define rel rc.3

Summary:	Cross-platform launcher for the FreeSpace 2
Name:		wxlauncher
Version:	0.12.0
Release:	1.rc3
License:	GPLv2
Group:		Games/Strategy
Url:		http://www.hard-light.net/forums/index.php?topic=67950.0"
Source0:	https://github.com/scp-fs2open/wxLauncher/archive/%{version}-%{rel}.tar.gz?/%{name}-%{version}-%{rel}.tar.gz
Source1:	wxlauncher.png
Source2:	wxlauncher.desktop
BuildRequires:	cmake
BuildRequires:	wxgtku3.0-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(openal)
BuildRequires:	python3egg(markdown)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils

%description
This is wxLauncher,a cross-platform 
launcher for the FreeSpace 2 Open engine.
Our goal is to make setting up and using 
Freespace 2 Open and its Total Conversions 
as easy as possible by providing 
an interface that is functional.

%files
%doc CodingStyle.md ReadMe.md License.txt Thanks.txt
%{_bindir}/wxlauncher
%{_datadir}/wxlauncher/*.png
%{_datadir}/wxlauncher/*.ico
%{_datadir}/wxlauncher/onlinehelp.htb
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

#-------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}-%{rel}

%build
%cmake \
	-DUSE_OPENAL=1 \
	-DCMAKE_INSTALL_PREFIX=/usr ../ \
	-DRESOURCES_PATH=%{_datadir}/wxlauncher \
	-DwxWidgets_CONFIG_EXECUTABLE=/usr/bin/wx-config \
	-DwxWidgets_wxrc_EXECUTABLE=/usr/bin/wxrc-2.8
%make

%install
%makeinstall_std -C build
# Icons
install -d -m755 %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
convert %{SOURCE1} -resize 48x48 %{buildroot}%{_liconsdir}/%{name}.png
convert %{SOURCE1} -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert %{SOURCE1} -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png

# menu entry
install -d -m755 %{buildroot}%{_datadir}/applications
desktop-file-install %{SOURCE2} \
	--dir=%{buildroot}%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11466 |21cr|wxlua-3.1.0.0-1.0df112.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 0df1127c2afb4b5fd22751463f9625927736504d
%define git 0df112

%define oname wxLua

%define wxgtk_api 3.0
%define lua_api 5.3

Summary:	wxWidgets bindings for Lua
Name:		wxlua
Version:	3.1.0.0
Release:	1.%{git}.1
License:	wxWidgets License
Group:		Development/Other
Url:		https://github.com/pkulchenko/wxlua
#Source0:	https://github.com/pkulchenko/wxlua/archive/v%{version}.tar.gz?/%{oname}-%{version}-src.tar.gz
Source0:	https://github.com/pkulchenko/wxlua/archive/%{commit}.zip?/%{oname}-%{git}.zip
BuildRequires:	cmake
BuildRequires:	librsvg
BuildRequires:	pkgconfig(glu)
BuildRequires:	lua-devel
BuildRequires:	wxgtku%{wxgtk_api}-devel

%description
wxLua is a set of bindings to the C++ wxWidgets cross-platform GUI library for
the Lua programming language. Nearly all of the functionality of wxWidgets is
exposed to Lua, meaning that your programs can have windows, dialogs, menus,
toolbars, controls, image loading and saving, drawing, sockets, streams,
printing, clipboard access... and much more.

Additionally, wxLua can be used in your C++ programs to embed a Lua interpreter
with the wxWidgets API.

%files
%{_libdir}/lua/%{lua_api}/wx.so

#----------------------------------------------------------------------------

%package ide
Summary:	Lua IDE with a GUI debugger
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	lua

%description ide
This package contains Integrated Development Environments (IDE, written in
wxLua) with a GUI debugger, a binding generator and wxWidgets bindings usable
as a module.

%files ide
%{_bindir}/%{oname}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_datadir}/wxlua

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# change wxgtk header path (real path in  wx-3.0/wx/wx.h )
find -type f -exec sed -i 's:<wx/:<wx-%{wxgtk_api}/wx/:g' \{\} \;
find -type f -exec sed -i 's:"wx/:"wx-%{wxgtk_api}/wx/:g' \{\} \;

%build

WX_FLAGS=`wx-config --cxxflags`
export LDFLAGS="%{ldflags} -llua"

cd %{oname}
%cmake \
	-DwxLua_LUA_LIBRARY_BUILD_SHARED=FALSE \
	-DwxLua_LUA_LIBRARY_USE_BUILTIN=FALSE \
	-DBUILD_SHARED_LIBS=FALSE \
	-DCMAKE_CXX_FLAGS="$WX_FLAGS -DwxLUA_USE_wxTranslations=0" \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo

%make

%install
cd %{oname}
%makeinstall_std -C build

rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}%{_prefix}/lib/*.a

mkdir -p %{buildroot}%{_libdir}/lua/%{lua_api}/
mv %{buildroot}%{_prefix}/lib/libwx.so %{buildroot}%{_libdir}/lua/%{lua_api}/wx.so

# Install icons of various sizes
for s in 256 128 96 48 32 22 16 ; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
rsvg-convert -w ${s} -h ${s} \
    art/wxlualogo.svg -o \
    %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{name}.png
done

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=wxLua
Comment=Lua IDE with a GUI debugger
Exec=%{oname}
Icon=%{name}
Terminal=false
Type=Application
Categories=Development;IDE;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11467 |21cr|wxmaxima-21.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Name wxMaxima

Summary:	An interface for the computer algebra system Maxima
Name:		wxmaxima
Version:	21.11.0
Release:	1
Group:		Sciences/Mathematics
License:	GPLv2+
Url:		http://andrejv.github.io/wxmaxima/
Source0:	https://github.com/wxMaxima-developers/wxmaxima/archive/Version-%{version}.tar.gz?/%{name}-Version-%{version}.tar.gz
Source1:	wxmaxima.desktop
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	wxgtku3.1-devel
BuildRequires:	imagemagick
BuildRequires:	desktop-file-utils
BuildRequires:	cmake
Requires:	maxima
Recommends:	jsmath-fonts

%description
wxMaxima is a cross-platform graphical front-end for the computer
algebra system Maxima based on wxWidgets. It provides nice display
of mathematical output and easy access to Maxima functions through
menus and dialogs.

%files -f %{Name}.lang
%{_bindir}/%{name}
%{_datadir}/%{Name}
%{_datadir}/applications/%{Name}.desktop
%{_datadir}/bash-completion/completions/wxmaxima
%{_datadir}/mime/packages/*
%{_datadir}/pixmaps/*
%{_datadir}/metainfo/*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{_docdir}/%{name}/*
%{_mandir}/man?/*
%{_mandir}/de/

#---------------------------------------------------------------

%prep
%setup -q -n %{name}-Version-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

#rename and copy some file
mv %{buildroot}%{_datadir}/metainfo/io.github.wxmaxima_developers.wxMaxima.appdata.xml %{buildroot}%{_datadir}/metainfo/%{Name}.appdata.xml

# icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert data/io.github.wxmaxima_developers.wxMaxima.png -scale 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert data/io.github.wxmaxima_developers.wxMaxima.png -scale 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert data/io.github.wxmaxima_developers.wxMaxima.png -scale 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m 644 data/io.github.wxmaxima_developers.wxMaxima.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#xdg
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
# Upstream desktop file has no localization
rm -f %{buildroot}%{_datadir}/applications/*.desktop
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{Name}.desktop
install -D -m 644 data/io.github.wxmaxima_developers.wxMaxima.png %{buildroot}%{_datadir}/pixmaps/wxmaxima.png

desktop-file-install \
	--vendor="" \
	--remove-category="Application" \
	--remove-category="Utility" \
	--remove-category="X-Red-Hat-Base" \
	--remove-category="X-Red-Hat-Base-Only" \
	--add-category="GTK" \
	--add-category="Science" \
	--add-category="Math" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

%find_lang %{Name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11468 |21cr|wxsqlite3-4.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api		3.0
%define	wxincdir	%{_includedir}/wx-%{api}
%define	major		0

%define	libname	%mklibname %{name}_ %{api} %{major}
%define	devname	%mklibname %{name}_ %{api} -d

#############################################################
# WARNING: Please always keep this package version in sync
# with the SQLite 3.x release provided by us.
# Eg. wxsqlite3 3.5.4 is for use with sqlite3 3.19.2, while
# 3.5.6 is for sqlite3 3.20.0.

Summary:	C++ wrapper around the SQLite 3.x database
Name:		wxsqlite3
Version:	4.9.0
Release:	1
Group:		System/Libraries
License:	wxWindows Library License
URL:		http://utelle.github.io/wxsqlite3
Source0:	https://github.com/utelle/wxsqlite3/archive/v%{version}/%{name}-%{version}.tar.gz
# Use libwx as prefix instead of libwxcode, to match other wxWidgets modules
Patch0:		wxsqlite3-3.5.4-fix-soname.patch
BuildRequires:	dos2unix
BuildRequires:	doxygen
BuildRequires:	wxgtku%{api}-devel
BuildRequires:	pkgconfig(sqlite3)

%description
wxSQLite3 is a C++ wrapper around the public domain SQLite 3.x database and
is specifically designed for use in programs based on the wxWidgets
%{api} library. It does not try to hide the underlying database, in
contrary almost all special features of the recent SQLite3 versions are
supported, like e.g. the creation of user defined scalar or aggregate
functions.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ wrapper around the SQLite 3.x database
Group:		System/Libraries

%description -n %{libname}
wxSQLite3 is a C++ wrapper around the public domain SQLite 3.x database and
is specifically designed for use in programs based on the wxWidgets
%{api} library.
This package contains the main library for %{name}.

%files -n %{libname}
%doc LICENCE.txt readme.md
%{_libdir}/libwx_gtk3u_%{name}-%{api}.so.%{major}
%{_libdir}/libwx_gtk3u_%{name}-%{api}.so.%{major}.*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
wxSQLite3 is a C++ wrapper around the public domain SQLite 3.x database and
is specifically designed for use in programs based on the wxWidgets
%{api} library.
This package contains the libraries and header files needed for developing
applications that use %{name}.

%files -n %{devname}
%doc LICENCE.txt docs/html/*
%{wxincdir}/wx/%{name}*.h
%{_libdir}/libwx_gtk3u_%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

dos2unix readme.md


%build
autoreconf -vfi
export LDFLAGS="%{ldflags} -ldl -lpthread"
%configure --disable-static
%make

# build docs
pushd docs
doxygen
popd


%install
%makeinstall_std

# Manually move headers from /usr/include/wx to /usr/include/wx-?.?/wx
# to avoid messing with the sources build system
install -d %{buildroot}%{wxincdir}
mv %{buildroot}%{_includedir}/wx %{buildroot}%{wxincdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11469 |21cr|wxsvg-1.5.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 3
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d
%global	Werror_cflags %{nil}

Summary:	A library to create, manipulate and render SVG files
Name:		wxsvg
Version:	1.5.24
Release:	1
License:	wxWidgets
Group:		System/Libraries
Url:		http://wxsvg.sourceforge.net/
Source0:	https://downloads.sourceforge.net/project/wxsvg/wxsvg/%{version}/wxsvg-%{version}.tar.bz2
BuildRequires:	ffmpeg-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libart-2.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(pangocairo)

%description
wxSVG is a C++ library to create, manipulate and render SVG files.

%files
%doc AUTHORS ChangeLog COPYING TODO
%{_bindir}/svgview

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING TODO
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries from %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog COPYING TODO
%{_includedir}/*
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

# Fix perms
chmod a-x src/cairo/SVGCanvasTextCairo.h
chmod a-x src/cairo/SVGCanvasImageCairo.h
chmod a-x src/cairo/SVGCanvasImageCairo.cpp
chmod a-x src/cairo/SVGCanvasTextCairo.cpp


%build
#Move files to a better place
mv *.m4 m4/

%configure \
	--disable-static \
	--with-wx-config="%{_bindir}/wx-config" \
	--enable-ffmpeg

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11470 |21cr|x11-driver-input-keyboard-1.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	Xorg input driver for keyboards
Name:		x11-driver-input-keyboard
Version:	1.9.0
Release:	4
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-input-keyboard-%{version}.tar.bz2
Patch0:		xf86-input-keyboard-1.6.2-link-against-xi.patch

BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires xinput)
Requires:	udev

%description
This package provide Xorg input driver for keyboards.  The "keyboard" driver is
the standard OS-provided keyboard interface.  It is is built-in to the core X
server, and multiple instances are not supported. A loadable driver, kbd, is
available, and is planned to replace the keyboard driver in a future release of
the Xorg server.

%files
%{_libdir}/xorg/modules/input/kbd_drv.so
%{_mandir}/man4/kbd.*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-input-keyboard-%{version}
%apply_patches

%build
autoreconf -fiv
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11471 |21cr|x11-driver-input-mouse-1.9.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	Xorg input driver for mice
Name:		x11-driver-input-mouse
Version:	1.9.3
Release:	2
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-input-mouse-%{version}.tar.bz2
Patch0:		xf86-input-mouse-1.8.1-link-against-xi.patch

BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires xinput)

%description
This package provide Xorg input driver for mice.

%files
%{_libdir}/xorg/modules/input/mouse_drv.so
%{_mandir}/man4/mousedrv.*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Xorg mouse driver
Requires:	%{name} = %{EVRD}

%description devel
This package provides development files for Xord input driver for mice.

%files devel
%{_includedir}/xorg/xf86-mouse-properties.h
%{_libdir}/pkgconfig/xorg-mouse.pc

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-input-mouse-%{version}
%apply_patches

%build
autoreconf -fiv
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11472 |21cr|x11-driver-input-void-1.4.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org null input driver
Name:		x11-driver-input-void
Version:	1.4.1
Release:	8
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-input-void-%{version}.tar.bz2
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
Requires:	x11-server-common %(xserver-sdk-abi-requires xinput)

%description
Void is a dummy/null X.org input driver. It doesn't connect to any physical
device, and it never delivers any events. It functions as both a pointer
and keyboard device, and may be used as X server's core pointer and/or core
keyboard. It's purpose is to allow the X server to operate without a core
pointer and/or core keyboard.

%files
%doc COPYING
%{_libdir}/xorg/modules/input/void_drv.so
%{_mandir}/man4/void.*

#----------------------------------------------------------------------------

%prep
%setup -q -n xf86-input-void-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11473 |21cr|x11-driver-video-chips-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for Chips and Technologies
Name:		x11-driver-video-chips
Version:	1.4.0
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-chips-%{version}.tar.gz

BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-chips is the X.org driver for Chips and Technologies boards.

%files
%doc COPYING
%{_libdir}/xorg/modules/drivers/chips_drv.so
%{_mandir}/man4/chips.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-chips-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11474 |21cr|x11-driver-video-geode-2.11.19-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for AMD Geode GX and LX Processors
Name:		x11-driver-video-geode
Version:	2.11.19
Release:	4
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-geode-%{version}.tar.bz2
Patch1: 0001-Remove-call-to-LoaderGetOS.patch
Patch2: 0002-gx-Fix-RANDR-initialization-for-xserver-1.20.patch
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)

%description
This is the X graphics driver for the AMD Geode GX and LX processors.
The GX driver features XAA and EXA support for graphics acceleration,
and the LX driver supports EXA (including compositing). Both drivers
suppport dynamic rotation with XRandR, and Xv overlay support.

%files
%doc README TODO
%{_libdir}/xorg/modules/drivers/ztv_drv.so
%{_libdir}/xorg/modules/drivers/geode_drv.so

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-geode-%{version}
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11475 |21cr|x11-driver-video-glint-1.2.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for 3DLabs Permedia
Name:		x11-driver-video-glint
Version:	1.2.9
Release:	4
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-glint-%{version}.tar.bz2
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-glint is the X.org driver for 3DLabs Permedia.

%files
%doc COPYING
%{_libdir}/xorg/modules/drivers/glint_drv.so
%{_mandir}/man4/glint.*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-glint-%{version}
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11476 |21cr|x11-driver-video-i740-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for Intel i740
Name:		x11-driver-video-i740
Version:	1.4.0
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-i740-%{version}.tar.bz2

BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-i740 is the X.org driver for Intel i740.

%files
%doc COPYING
%{_libdir}/xorg/modules/drivers/i740_drv.so
%{_mandir}/man4/i740.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-i740-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11477 |21cr|x11-driver-video-qxl-0.1.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define gitrev 9739b6a
#define gitdate 20161004
# Git repo: http://cgit.freedesktop.org/xorg/driver/xf86-video-qxl/

# How to prepare the source archive from the git tree:
# $ hash=`git log -1 --format='%h'`
# $ date=`git log -1 --format='%cd' --date=short | tr -d -`
# $ git archive --prefix xf86-video-qxl-${date}-git${hash}/ ${hash} \
#       | xz -7e > xf86-video-qxl-${date}-git${hash}.tar.xz

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1
%define _disable_ld_no_undefined 1

Summary:	X.org driver for the QXL virtual GPUs
Name:		x11-driver-video-qxl
Version:	0.1.5
Release:	11
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-qxl-%{version}.tar.bz2
#Source0:	xf86-video-qxl-%{gitdate}-git%{gitrev}.tar.xz
BuildRequires:	pkgconfig(fontsproto)
BuildRequires:	pkgconfig(pciaccess) >= 0.10
BuildRequires:	pkgconfig(randrproto)
BuildRequires:	pkgconfig(renderproto)
BuildRequires:	pkgconfig(spice-protocol) >= 0.12.0
BuildRequires:	pkgconfig(videoproto)
BuildRequires:	pkgconfig(xf86dgaproto)
BuildRequires:	pkgconfig(xorg-macros) >= 1.4
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xfont)
BuildRequires:	pkgconfig(xfont2)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(udev)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)


%description
The QXL virtual GPU is found in the RedHat Enterprise
Virtualisation system, and also in the spice project.

%files
%doc COPYING NEWS README
%{_libdir}/xorg/modules/drivers/qxl_drv.so

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-qxl-%{version}
%apply_patches

%build
autoreconf -fvi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11478 |21cr|x11-driver-video-r128-6.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for ATI Rage 128
Name:		x11-driver-video-r128
Version:	6.12.0
Release:	1
Epoch:		1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-r128-%{version}.tar.bz2
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-r128 is the X.org driver for ATI Rage 128.

%files
%{_libdir}/xorg/modules/drivers/r128_drv.so
%{_mandir}/man4/r128.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-r128-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11479 |21cr|x11-driver-video-s3-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for generic S3 Cards
Name:		x11-driver-video-s3
Version:	0.7.0
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-s3-%{version}.tar.bz2

BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-s3 is the X.org driver for generic S3 Cards.

%files
%{_libdir}/xorg/modules/drivers/s3_drv.so
%{_mandir}/man4/s3.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-s3-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11480 |21cr|x11-driver-video-s3virge-1.11.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for S3 Virge Cards
Name:		x11-driver-video-s3virge
Version:	1.11.0
Release:	2
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-s3virge-%{version}.tar.bz2
Patch0:		fix-build.diff

BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-s3virge is the X.org driver for S3 Virge Cards.

%files
%doc COPYING
%{_libdir}/xorg/modules/drivers/s3virge_drv.so
%{_mandir}/man4/s3virge.*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-s3virge-%{version}
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11481 |21cr|x11-driver-video-savage-2.3.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for S3 Savage Cards
Name:		x11-driver-video-savage
Version:	2.3.9
Release:	4
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-savage-%{version}.tar.bz2
Patch1:	    0001-xf86-video-savage-remove-the-GlxSetVisualConfigs-stu.patch
Patch2:	    fix-build.diff
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-savage is the X.org driver for S3 Savage Cards.

%files
%{_libdir}/xorg/modules/drivers/savage_drv.so
%{_mandir}/man4/savage.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-savage-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11482 |21cr|x11-driver-video-siliconmotion-1.7.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org driver for Silicon Motion Cards
Name:		x11-driver-video-siliconmotion
Version:	1.7.9
Release:	4
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-siliconmotion-%{version}.tar.bz2

BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-siliconmotion is the X.org driver for Silicon Motion Cards.

%files
%doc COPYING
%{_libdir}/xorg/modules/drivers/siliconmotion_drv.so
%{_mandir}/man4/siliconmotion.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-siliconmotion-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11483 |21cr|x11-driver-video-sis-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org driver for SiS Cards
Name:		x11-driver-video-sis
Version:	0.12.0
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-sis-%{version}.tar.bz2
Patch0:		sis-build.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-sis is the X.org driver for SiS Cards.

%files
%{_libdir}/xorg/modules/drivers/sis_drv.so
%{_mandir}/man4/sis.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-sis-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11484 |21cr|x11-driver-video-tdfx-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for Voodoo Cards
Name:		x11-driver-video-tdfx
Version:	1.5.0
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-tdfx-%{version}.tar.bz2

BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-tdfx is the X.org driver for Voodoo Cards.

%files
%{_libdir}/xorg/modules/drivers/tdfx_drv.so
%{_mandir}/man4/tdfx.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-tdfx-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11485 |21cr|x11-driver-video-trident-1.3.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for Trident Cards
Name:		x11-driver-video-trident
Version:	1.3.8
Release:	4
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-trident-%{version}.tar.bz2

BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExclusiveArch:	%{ix86} x86_64

%description
x11-driver-video-trident is the X.org driver for Trident Cards.

%files
%{_libdir}/xorg/modules/drivers/trident_drv.so
%{_mandir}/man4/trident.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-trident-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11486 |21cr|x11-driver-xrdp-0.9.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Implementation of xrdp backend as Xorg modules
Name:		x11-driver-xrdp
Version:	0.9.19
Release:	1
License:	MIT
Group:		Networking/Remote access
Url:		https://github.com/neutrinolabs/xorgxrdp
Source0:	https://github.com/neutrinolabs/xorgxrdp/releases/download/v%{version}/xorgxrdp-%{version}.tar.gz
BuildRequires:	nasm
BuildRequires:	pkgconfig(xfont2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xrdp)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)

%description
xorgxrdp is a set of X11 modules that make Xorg act as a backend for
xrdp. Xorg with xorgxrdp is the most advanced xrdp backend with support
for screen resizing and multiple monitors.

%files
%doc COPYING README.md
%dir %{_sysconfdir}/X11/xrdp
%{_sysconfdir}/X11/xrdp/xorg.conf
%{_libdir}/xorg/modules/drivers/xrdpdev_drv.so
%{_libdir}/xorg/modules/input/xrdpkeyb_drv.so
%{_libdir}/xorg/modules/input/xrdpmouse_drv.so
%{_libdir}/xorg/modules/libxorgxrdp.so

#----------------------------------------------------------------------------

%prep
%setup -qn xorgxrdp-%{version}

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11487 |21cr|x11-font-misc-ethiopic-1.0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-misc-ethiopic
Version: 1.0.3
Release: 10
Summary: Xorg X11 font misc-ethiopic
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-misc-ethiopic-%{version}.tar.bz2
License: MIT
BuildArch: noarch
BuildRequires: x11-font-util >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.2
BuildRequires: fontconfig
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font misc-ethiopic

%prep
%setup -q -n font-misc-ethiopic-%{version}

%build
%configure --prefix=/usr \
            --x-includes=%{_includedir}\
            --x-libraries=%{_libdir} \
            --with-otf-fontdir=%_datadir/fonts/OTF \
	    --with-ttf-fontdir=%_datadir/fonts/TTF

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/OTF/fonts.dir
rm -f %{buildroot}%_datadir/fonts/OTF/fonts.scale
rm -f %{buildroot}%_datadir/fonts/TTF/fonts.dir
rm -f %{buildroot}%_datadir/fonts/TTF/fonts.scale

%post
mkfontscale %_datadir/fonts/OTF
mkfontdir %_datadir/fonts/OTF
mkfontscale %_datadir/fonts/TTF
mkfontdir %_datadir/fonts/TTF

%postun
mkfontscale %_datadir/fonts/OTF
mkfontdir %_datadir/fonts/OTF
mkfontscale %_datadir/fonts/TTF
mkfontdir %_datadir/fonts/TTF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%_datadir/fonts/OTF/GohaTibebZemen.otf
%_datadir/fonts/TTF/GohaTibebZemen.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11488 |21cr|x11-font-siji-misc-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname siji
Name:		x11-font-siji-misc
Version:	1
Release:	1
Summary:	An iconic bitmap font based on Stlarch with additional glyphs
License:	GPLv2
Group:		System/Fonts/X11 bitmap
Url:		https://github.com/stark/siji
BuildArch:	noarch
Source0:	%{name}.tar.gz
BuildRequires:  bdftopcf
BuildRequires:  fontpackages-devel
Provides:       siji-font

#-----------------------------------------
%files
%{_datadir}/fonts/misc/*.pcf.gz

#-----------------------------------------


%description
%{summary}

%prep
%setup -q -n %{name}

%build
bdftopcf -t -o %{fontname}.pcf bdf/%{fontname}.bdf
gzip -9 *.pcf

%install
install -D -m 0644 *.pcf.gz -t  %{buildroot}%{_datadir}/fonts/misc/
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11489 |21cr|x11-font-wqy-bitmapfont-1.0.0-1.RC1.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define origname wqy-bitmapfont
%define betaver RC1

Name:	x11-font-%{origname}
Version:	1.0.0
Release:	1.%{betaver}.5
Summary:	WenQuanYi Bitmap Song
Group:		System/Fonts/X11 bitmap
URL:		http://www.wenq.org
Source0:	http://downloads.sourceforge.net/project/wqy/wqy-bitmapfont/%version-%betaver/wqy-bitmapsong-pcf-%version-%betaver.tar.gz
License:	GPLv2+
BuildArch:	noarch
BuildRequires:	fontconfig
Requires(pre):	mkfontdir, mkfontscale
Requires(postun):	mkfontdir, mkfontscale
Requires:	fontconfig >= 2.4.2-7
Conflicts:	fontconfig < 2.4.2-7

%description
WenQuanYi bitmap fonts include all 20,932 Unicode 5.2
CJK Unified Ideographs (U4E00 - U9FA5) and 6,582
CJK Extension A characters (U3400 - U4DB5) at
5 different pixel sizes (9pt-12X12, 10pt-13X13,
10.5pt-14x14, 11pt-15X15 and 12pt-16x16 pixel).
Use of this bitmap font for on-screen display of Chinese
(traditional and simplified) in web pages and elsewhere
eliminates the annoying "blurring" problems caused by
insufficient "hinting" of anti-aliased vector CJK fonts.
In addition, Latin characters, Japanese Kanas and
Korean Hangul glyphs (U+AC00~U+D7A3) are also included.

%prep
%setup -qn wqy-bitmapsong

%install
rm -fr %buildroot

install -d %{buildroot}/%_datadir/fonts/wqy
install -m 0644 *.pcf fonts.alias %{buildroot}/%_datadir/fonts/wqy

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/wqy \
    %{buildroot}%_sysconfdir/X11/fontpath.d/wqy-bitmapfont:pri=50

%post
mkfontscale %_datadir/fonts/wqy
mkfontdir %_datadir/fonts/wqy

%postun
mkfontscale %_datadir/fonts/wqy
mkfontdir %_datadir/fonts/wqy

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README ChangeLog AUTHORS COPYING
%_sysconfdir/X11/fontpath.d/wqy-bitmapfont:pri=50
%_datadir/fonts/wqy/*.pcf
%_datadir/fonts/wqy/fonts.alias

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11490 |21cr|x11-util-modular-0.0.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-util-modular
BuildArch: noarch
Summary: Set of scripts to manage modular X.org packages
Version: 0.0.2
Release: 18
Group: Development/X11
########################################################################
# git clone git://anongit.freedesktop.org/xorg/util/modular xorg/util/modular
# cd xorg/util/modular
# git-archive --format=tar --prefix=x11-util-modular-0.0.2/ a78aabbfdadafcc6fa802f6bf45c832e645bc191 | bzip2 -9 > x11-util-modular-0.0.2.tar.bz2
########################################################################
Source0: %{name}-%{version}.tar.bz2
License: GPLv2+ and MIT

Requires: perl sudo
Requires: git-core cvs
Requires: make gcc bison flex autoconf
Requires: glibc-devel freetype2-devel
Requires: strace wget

# git-format-patch master..patches
Patch1: 0001-Add-a-set-of-scripts-to-allow-easier-build-of-xorg-l.patch
Patch2: 0002-Update-to-latest-version-of-build-scripts.patch
Patch3: 0003-Update-to-latest-build-scripts.patch
Patch4: 0004-Update-for-rpm-build-and-current-git-master.patch
Patch5: 0005-Update-rpm-build-to-match-Mandriva-cooker.patch
Patch6: 0006-Update-script-to-build-a-xorg-snapshot-and-the-rpm-b.patch
Patch7: 0007-Update-build-scripts-to-match-latest-build-requirem.patch
Patch8: 0008-Update-to-latest-build-of-snapshot-packages.patch

%description
Scripts used for X.org package management.

%prep
%setup -q -n %{name}-%{version}

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build

%install
rm -rf %{buildroot}

pushd xorg-scripts
for script in *.pl; do
	install -D -m 755 $script %{buildroot}/%{_bindir}/$script
done
install -D -m 644 xorg-scripts.txt %{buildroot}/%{_docdir}/%{name}/xorg-scripts.txt
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*.pl
%doc %{_docdir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11491 |21cr|x264-0.163-0.20210713.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define major 163
%define date 20210713
%define	git	5db6aa6cab1b146e07b60cc1736a01f21da01154
%define	fname	%{name}-stable-%{git}

%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d
%define static %mklibname %{name} -d -s

Summary:	H264/AVC encoder
Name:		x264
Version:	0.%{major}
Release:	0.%{date}.1
License:	GPLv2+
Group:		Video
Url:		http://x264.nl/
Source0:	https://code.videolan.org/videolan/x264/-/archive/stable/x264-stable-%{date}.tar.bz2
Patch0:		x264-dynamically-link-against-gpac.patch
%ifarch %{ix86} %{x86_64}
BuildRequires:	nasm >= 2.13
%endif
BuildRequires:	git-core
BuildRequires:	yasm
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(x11)

%description
x264 is a free library for encoding H264/AVC video streams. The code
is written by Laurent Aimar, Eric Petit(OS X), Min Chen (vfw/nasm),
Justin Clay(vfw), Måns Rullgård and Loren Merritt from scratch. It is
released under the terms of the GPL license.

This package is in Restricted repository as the video encoder may be covered
by software patents.

%files
%doc AUTHORS doc/*
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of x264
Group:		System/Libraries

%description -n %{libname}
x264 dynamic libraries.

%files -n %{libname}
%{_libdir}/libx264.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	H264/AVC encoding library headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
x264 is a free library for encoding H264/AVC video streams. The code
is written by Laurent Aimar, Eric Petit(OS X), Min Chen (vfw/nasm),
Justin Clay(vfw), Måns Rullgård and Loren Merritt from scratch. It is
released under the terms of the GPL license.

%files -n %{devname}
%{_libdir}/libx264.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n %{static}
Summary:	Static library for the x264 H264/AVC encoding library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Conflicts:	%{_lib}x264-devel < 0.142

%description -n %{static}
Static library for the x264 H264/AVC encoding library.

%files -n %{static}
%{_libdir}/libx264.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}
%patch0 -p1

%build
CFLAGS="%{optflags} -Ofast" \
%configure \
	--enable-shared \
	--enable-static \
	--enable-pic \
	--enable-visualize \
	--disable-gpac
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11492 |21cr|x265-3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 192

%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d
%define static %mklibname %{name} -d -s

Summary:	H265/HEVC encoder
Name:		x265
Version:	3.4
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://x265.org/
Source0:	https://github.com/videolan/x265/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		x265-1.8-pkgconfig-dir.patch
BuildRequires:	cmake
BuildRequires:	glibc-devel
BuildRequires:	yasm

%description
x265 is an open-source project and free application library for encoding video
streams into the H.265/High Efficiency Video Coding (HEVC) format.

This package is in Restricted repository as the video encoder may be covered
by software patents.

%files
%doc COPYING
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of x265
Group:		System/Libraries

%description -n %{libname}
x265 dynamic libraries.

%files -n %{libname}
%doc COPYING
%{_libdir}/libx265.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	H265/HEVC encoding library headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
x265 is an open-source project and free application library for encoding video
streams into the H.265/High Efficiency Video Coding (HEVC) format.

%files -n %{devname}
%doc COPYING
%{_libdir}/libx265.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n %{static}
Summary:	Static library for the x265 H265/HEVC encoding library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{static}
Static library for the x265 H265/HEVC encoding library.

%files -n %{static}
%doc COPYING
%{_libdir}/libx265.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
pushd source
%cmake
%make -s
popd

%install
%makeinstall_std -C source/build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11493 |21cr|x2vnc-1.7.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Allows a mouse and a keyboard to control two displays
Name:		x2vnc
Version:	1.7.2
Release:	10
URL:		http://fredrik.hubbe.net/x2vnc.html
Source0:	http://fredrik.hubbe.net/x2vnc/%{name}-%{version}.tar.bz2
Patch0:		x2vnc-1.7.2-fix-str-fmt.patch
Group:		System/X11
License:	BSD
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xxf86dga)

%description
x2vnc allows the keyboard and mouse on one ("from") X display to control 
another ("to") VNC display.

%prep
%setup -q
%patch0 -p0

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}/%{_mandir}
%makeinstall_std
#%{__install} -m755 %{name} -D $RPM_BUILD_ROOT%{_bindir}/%{name}
#%{__install} -m644 %{name}.man -D $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1

%clean
%{__rm} -rf $RPM_BUILD_ROOT

%files
%defattr (-,root,root)
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11494 |21cr|x2x-1.30-0.beta.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name	x2x
%define version 1.30
%define release 0.beta.8

Summary:	Allows a mouse and a keyboard to control two displays
Name:		x2x
Version:	1.30
Release:	0.beta.8
URL:		http://freshmeat.net/projects/%{name}/
Source0:	ftp://digital.com/pub/Digital/SRC/%{name}/%{name}-%{version}-beta.tar.bz2
Source1:	Makefile-%{name}.bz2
Patch0:		%{name}-1.30-c-fixes.patch.bz2
Patch1:		x2x-1.30beta-mdv-fix-str-fmt.patch
Group:		System/X11
License:	BSD
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
BuildRequires:  imake
# for rman
BuildRequires:	xorg-x11

%description
x2x allows the keyboard and mouse on one ("from") X display to control 
another ("to") X display.

%prep
%setup -q -n %{name}-%{version}-beta
%patch0 -p1
%patch1 -p1 -b .strfmt
bzcat %{SOURCE1} > Makefile

%build
xmkmf
%make CFLAGS="$RPM_OPT_FLAGS -DNO_DEBUG"

%install
install -m755 %{name} -D $RPM_BUILD_ROOT%{_bindir}/%{name}
install -m644 %{name}.man -D $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1



%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11495 |21cr|x3270-4.1ga10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#debuginfo-without-sources
%define	debug_package %{nil}
%define	tversion    4.1

Summary:	An X Window System based IBM 3278/3279 terminal emulator
Name:		x3270
Version:	4.1ga10
Release:	3
License:	MIT
Group:		Terminals
Url:		https://sourceforge.net/projects/x3270/
Source0:	http://downloads.sourceforge.net/project/x3270/x3270/%{version}/suite3270-%{version}-src.tgz
BuildRequires:	bdftopcf
BuildRequires:	dos2unix
BuildRequires:	imake
BuildRequires:	mkfontdir
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
Requires(post,postun):	mkfontdir

%description
The x3270 program opens a window in the X Window System which emulates the
actual look of an IBM 3278/3279 terminal, commonly used with mainframe
applications. It also allows you to telnet to an IBM host from the x3270
window. Install this package if you need to access IBM hosts using an IBM
3278/3279 terminal emulator.

%files
%doc README.md
#Examples html
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/x3270
%{_bindir}/x3270a
%{_bindir}/x3270if
%{_datadir}/fonts/misc/*
%{_mandir}/man1/x3270*
%{_mandir}/man5/*
%{_datadir}/applications/%{name}.desktop

%post
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------
%package -n s3270
Summary:	Scripted 3270 Emulator
Group:		Terminals
Requires:	x3270 = %{EVRD}

%description -n s3270
Complete IBM 3278/3279 emulation, TN3270E support, structured
fields, color xterm emulation, highly configurable.

%files -n s3270
%doc s3270/Examples/cms_cmd.expect
%{_bindir}/s3270
%{_mandir}/man1/s3270.1*

#----------------------------------------------------------------------------
%package -n tcl3270
Summary:	Tcl-based scripted 3270 Emulator
Group:		Terminals
BuildRequires:	tcl-devel
Requires:	tcl

%description -n tcl3270
Complete IBM 3278/3279 emulation, TN3270E support, structured
fields, color xterm emulation, highly configurable.

%files -n tcl3270
%doc tcl3270/Examples/cms_cmd.tcl3270
%{_bindir}/tcl3270
%{_mandir}/man1/tcl3270.1*

#----------------------------------------------------------------------------

%prep
%setup -qn suite3270-%{tversion}

pushd s3270
perl -p -i -e "s|^#!/usr/local|#!/usr|g" Examples/cms_cmd.expect
popd

%build
%configure	\
	--enable-x3270 \
	--enable-ssl \
	--with-fontdir=%{_datadir}/fonts/misc

%make PROJECTROOT=%{_prefix}

# s3270
pushd s3270
%configure
%make
popd

# tcl3270
pushd tcl3270
%configure --with-tcl=8.6
%make
popd

%install
%makeinstall_std install.man PROJECTROOT=%{_prefix} MANPATH=%{_mandir}

# Provide a .desktop file
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=X3270
Comment=IBM 3270 Terminal Emulator
Exec=x3270
Icon=terminals_section
Terminal=false
Type=Application
StartupNotify=true
Categories=TerminalEmulator;System;
EOF

# No need for this: we regenerate it in %%post/%%postun
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir

# s3270
pushd s3270
%makeinstall_std
#rm -f %{buildroot}%{_bindir}/x3270if
install -d %{buildroot}%{_mandir}/man1
install -m644 s3270.man %{buildroot}%{_mandir}/man1/s3270.1
popd

# tcl3270
pushd tcl3270
install -m755 ../obj/*/tcl3270/tcl3270 %{buildroot}%{_bindir}/
install -m644 tcl3270.man %{buildroot}%{_mandir}/man1/tcl3270.1
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11496 |21cr|x48-0.6.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name 	x48
%define version 0.6.4
%define release 6

#define x11_prefix      /usr/X11R6

Name:		%name
Summary:	HP 48 GX emulator
Version:	%version
Release:	%release
License:	GPL
Group:		Sciences/Mathematics
URL:		http://x48.berlios.de/
Source0:	http://downloads.sourceforge.net/project/x48.berlios/%{name}-%{version}.tar.bz2
Patch0:		x48-0.6.1-mdv-fix-string-format.patch
Patch1:		x48-0.6.4-void_return.patch
Patch2:		x48-0.6.4-static.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)
BuildRequires:	x11-util-cf-files
BuildRequires:	pkgconfig(ncurses)

Requires:  	readline

%description
This is an emulator of the HP 48 SX and GX calculator.
Romdumps are available from http://x48.berlios.de/

%prep
%autosetup -p1 -c %{name}-%{version}

%build
./autogen.sh
%configure --with-x
%make

%install

mkdir -p %{buildroot}/%{_datadir}/%{name}
mkdir -p %{buildroot}/%{_datadir}/applications/

cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=x48 -rom /usr/share/x48/rom
Name=x48
Comment=HP48 Emulator
Categories=Office;
EOF

cat > %{_builddir}/%{name}-%{version}/README.urpmi << EOF
x48 needs a rom to function, so please read the README to see how to dump it
from your HP48 or just use the rpm x48-gxrom or x48-sxrom from plf.
If you dump the rom, please put it in the /usr/share/x48 directory.
***
The first time you launch x48, it will copy the rom to ~/.hp48.
So if you like to change from sx to gx rom, please remove this directory first
EOF

%makeinstall_std

%files
%doc	README README.urpmi
#%{_sysconfdir}/X11/app-defaults/X48
%{_bindir}/checkrom
%{_bindir}/dump2rom
%{_bindir}/mkcard
%{_bindir}/x48
%{_datadir}/%{name}
%{_datadir}/X11/app-defaults/X48
%{_mandir}/man1/x48.*
%{_datadir}/applications/mandriva-x48.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11497 |21cr|x48-gxrom-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		x48-gxrom
Version:	1.0
Release:	5
Summary:	HP48's gx rom
Source0:	http://download.berlios.de/x48/x48-gxrom-r.tar.gz
License:	HP
Group:		Sciences/Mathematics
Url:		http://developer.berlios.de/projects/x48/
Conflicts:	x48-sxrom
Buildarch:	noarch
Requires:	x48

%description
HP48's gx rom
This rom was extracted from an HP calculator.
This process is not so simple, so people provide some extracted ones.
This rpm is needed by x48 which is in contrib.

This package is in restricted because the firmware is not free.

%prep
%setup -q -n .hp48

%build

%install
%__rm -rf %{buildroot}
%__mkdir_p %{buildroot}%{_datadir}/x48
%__cp * %{buildroot}%{_datadir}/x48

%clean
%__rm -rf %{buildroot}

%files
%{_datadir}/x48/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11498 |21cr|x48-sxrom-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		x48-sxrom
Version:	1.0
Release:	5
Summary:	HP48's sx rom
Source0:	http://download.berlios.de/x48/x48-sxrom-e.tar.gz
License:	HP
Group:		Sciences/Mathematics
Url:		http://developer.berlios.de/projects/x48/
Conflicts:	x48-gxrom
Buildarch:	noarch
Requires:	x48

%description
HP48's sx rom
This rom was extracted from an HP calculator.
This process is not so simple, so people provide some extracted ones.
This rpm is needed by x48 which is in contrib.

This package is in restricted because  the firmware is not free.

%prep
%setup -q -n .hp48

%build

%install
%__rm -rf %{buildroot}
%__mkdir_p %{buildroot}%{_datadir}/x48
%__cp * %{buildroot}%{_datadir}/x48

%clean
%__rm -rf %{buildroot}

%files
%{_datadir}/x48/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11499 |21cr|x86info-1.30-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Show x86 CPU information
Name:		x86info
Version:	1.30
Release:	4
License:	GPL
Group:		System/Kernel and hardware
URL:		http://www.codemonkey.org.uk/projects/x86info/
Source0:	http://codemonkey.org.uk/projects/x86info/%{name}-%{version}.tgz
BuildRequires:	pkgconfig(libpci)

# Will never work on sparc, neither on ppc/alpha...
ExclusiveArch:	%{ix86} x86_64 amd64

%description
Unlike other 'cpuinfo' tools which just parse /proc/cpuinfo, x86info probes
the CPU registers to find out a lot more information. It can discover the
contents of model-specific registers, discover CPU silicon revisions, and
lots more.

%prep
%setup -q -n %{name}-%{version}

%build
make CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -m755 %{name} %{buildroot}%{_bindir}/
install -m755 %{name}.1 %{buildroot}%{_mandir}/man1/

%files
%doc README TODO
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11500 |21cr|xa-2.3.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	6502/65816 cross-assembler
Name:		xa
Version:	2.3.13
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		https://www.floodgap.com/retrotech/xa/
Source0:	https://www.floodgap.com/retrotech/%{name}/dists/%{name}-%{version}.tar.gz
# Update the build system, reported in private email
Patch0:		%{name}-2.3.7-make.patch

%description
This is a high-speed, two-pass portable cross-assembler. It understands
mnemonics and generates code for NMOS 6502s (such as 6502A, 6504, 6507, 6510,
7501, 8500, 8501, 8502 ...), CMOS 6502s (65C02 and Rockwell R65C02) and the
65816.
Key amongst its features:
 * C-like preprocessor (and understands cpp for additional feature support);
 * rich expression syntax and pseudo-op vocabulary;
 * multiple character sets;
 * binary linking;
 * supports o65 relocatable objects with a full linker and relocation suite, 
   as well as "bare" plain binary object files;
* block structure for label scoping.

%files
%doc ChangeLog COPYING README.1st TODO doc/xa.txt doc/fileformat.txt
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Fix encoding
for f in ChangeLog doc/fileformat.txt
do
	iconv -f ISO-8859-1 -t UTF-8 < $f > $f.new
	touch -r $f $f.new
	mv $f.new $f
done

# Fix perms
find . -name "*.c" -o -name "*.h" -o -name "*.txt" -o -name "*.1st"| xargs chmod 0644
chmod 0644 COPYING TODO


%build
%make CFLAGS="%{optflags}"


%install
%makeinstall_std PREFIX=%{_prefix}


%check
# Tests fail if run in parallel
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11501 |21cr|xalan-c-1.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 112
%define	libname %mklibname %{name} %{major}
%define	libxalanMsg %mklibname xalanMsg %{major}
%define	devname %mklibname %{name} -d

Name:           xalan-c
Version:        1.12
Release:        5
Summary:        Xalan XSLT processor for C
Group:          System/Libraries
License:        ASL 2.0
URL:            https://xalan.apache.org/
Source0:        https://github.com/apache/xalan-c/releases/download/Xalan-C_1_12_0/xalan_c-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig(icu-i18n)
BuildRequires:  xerces-c-devel

%description
Xalan is an XSLT processor for transforming XML documents into HTML, text, or
other XML document types.

%files
%doc LICENSE KEYS NOTICE
%{_bindir}/Xalan
%{_libdir}/libxalan-c.so.%{major}*

#-----------------------------------------------------------------------------
%package -n %{libname}
Summary:	Xalan-c library
Group:		System/Libraries

%description -n %{libname}
Xalan is an XSLT processor for transforming XML documents into HTML, text, or
other XML document types.

This package contains the shared xerces-c library.

%files -n %{libname}
%{_libdir}/libxalan-c.so.%{major}*
#----------------------------------------------------------------------------
%package -n %{libxalanMsg}
Summary:	Xalan-c library
Group:		System/Libraries

%description -n %{libxalanMsg}
Xalan is an XSLT processor for transforming XML documents into HTML, text, or
other XML document types.

This package contains the shared xalanMsg library.

%files -n %{libxalanMsg}
%{_libdir}/libxalanMsg.so.%{major}*
#----------------------------------------------------------------------------
%package -n %{devname}
Summary:        Header files, libraries and development documentation for %{name}
Group:          Development/C++
Requires:       %{libname} = %{version}-%{release}
Requires:       %{libxalanMsg} = %{version}-%{release}
Provides:		%{name}-devel = %{EVRD}


%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%files -n %{devname}
%{_libdir}/libxalan-c.so
%{_libdir}/libxalanMsg.so
%{_includedir}/xalanc/
%{_libdir}/cmake/XalanC/*.cmake
%{_libdir}/pkgconfig/xalan-c.pc

#-----------------------------------------------------------------------------

%package doc
Summary:        Documentation for Xerces-C++ validating XML parser
Group:          Documentation

%description doc
Documentation for %{name}.

%files doc
%doc readme.html docs samples

#-----------------------------------------------------------------------------

%prep
%setup -q -n xalan_c-%{version}
find -type d -name CVS -print0 | xargs -0 rm -rf
chmod 644 NOTICE


%build
%cmake

%make

%install
%makeinstall_std -C build

sed -i 's/Version: /Version: %{version}/' %{buildroot}%{_libdir}/pkgconfig/xalan-c.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11502 |21cr|xanim-codecs-1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	XAnim codecs binaries
Name:		xanim-codecs
Version:	1.0
Release:	11
License:	Commercial
Group:		System/Libraries
Url:		http://xanim.va.pubnix.com/xa_dlls.html
Source0:	http://www1.mplayerhq.hu/MPlayer/releases/codecs/xanimdlls-20040626.tar.bz2
ExclusiveArch:	%{ix86}

%description
This package contains XAnim codecs binaries.

%files
%{_libdir}/codecs

#----------------------------------------------------------------------------

%prep
%setup -qc

%build

%install
install -d -m 755 %{buildroot}%{_libdir}/codecs
cp -a */* %{buildroot}%{_libdir}/codecs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11503 |21cr|xapian-bindings-1.4.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define build_mono 0

Summary:	Bindings for the Xapian
Name:		xapian-bindings
Version:	1.4.19
Release:	1
License:	GPLv2+
Group:		Development/Other
URL:		http://www.xapian.org
Source0:	http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(xapian-core) >= %{version}
BuildRequires:	python3-devel
BuildRequires:	python3-sphinx
BuildRequires:	php-devel
BuildRequires:	php-cli
BuildRequires:	tcl-devel
BuildRequires:	java-rpmbuild
BuildRequires:	ruby-devel
BuildRequires:	rubygem-rdoc
%if %build_mono
BuildRequires:	mono-devel
%endif
BuildRequires:	java-1.8.0-devel

%description
SWIG and JNI bindings allowing Xapian to be used from various 
other programming languages.

#----------------------------------------------------------------------------

%package java
Summary:	Files needed for developing Java applications which use Xapian
Group:		Development/Java
Requires:	xapian >= %{version}
Requires:	java-1.8.0-openjdk

%description java
This package provides the files needed for developing Java applications which
use Xapian.

%files java
%doc %{_docdir}/xapian-bindings/java
%{_libdir}/libxapian_jni.so
%{_jnidir}/xapian.jar

#----------------------------------------------------------------------------

%if %build_mono
%package mono
Summary:	Files needed for developing C# applications which use Xapian
Group:		Development/Other
Requires:	xapian >= %{version}
Requires:	mono

%description mono
This package provides the files needed for developing 
C# applications which use Xapian.

%files mono
%doc %{_docdir}/xapian-bindings/csharp
%{_libdir}/_XapianSharp.so
%{_libdir}/mono/XapianSharp/XapianSharp.dll
%{_libdir}/mono/gac/XapianSharp/%{version}*/XapianSharp.dll
%endif

#----------------------------------------------------------------------------

%package php
Summary:	Files needed for developing PHP scripts which use Xapian
Group:		Development/PHP
Requires:	xapian >= %{version}
Requires:	php
Requires:	php(zend-abi) = %{php_zend_api}

%description php
This package provides the files needed for developing 
PHP scripts which use Xapian.

%files php
%doc %{_docdir}/xapian-bindings/php
%{_libdir}/php/extensions/xapian.so
%{_datadir}/php/xapian.php
#----------------------------------------------------------------------------

%package python
Summary:	Files needed for developing Python scripts which use Xapian
Group:		Development/Python
Provides:	%{name}-python3 = %{EVRD}
Requires:	xapian >= %{version}
Requires:	python3

%description python
This package provides the files needed for developing 
Python scripts which use Xapian.

%files python
%doc %{_docdir}/xapian-bindings/python3
%{py3_platsitedir}/xapian/*.py*
%{py3_platsitedir}/xapian/*.so
%{py3_platsitedir}/xapian/__pycache__

#----------------------------------------------------------------------------

%package ruby
Summary:	Files needed for developing Ruby applications which use Xapian
Group:		Development/Ruby
Requires:	xapian >= %{version}
Requires:	ruby

%description ruby
This package provides the files needed for developing 
Ruby applications which use Xapian.

%files ruby
%doc %{_docdir}/xapian-bindings/ruby
%{ruby_vendorarchdir}/_xapian.so
%{ruby_vendorlibdir}/xapian.rb

#----------------------------------------------------------------------------

%package tcl
Summary:	Files needed for developing TCL scripts which use Xapian
Group:		Development/Other
Requires:	xapian >= %{version}
Requires:	tcl

%description tcl
This package provides the files needed for developing 
TCL scripts which use Xapian.

%files tcl
%doc %{_docdir}/xapian-bindings/tcl8
%{tcl_sitearch}/xapian%{version}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# (tpg) do not check for this, to much effort to provide a patch
%define Werror_cflags %nil

# We want to avoid using jni.h from libgcj-devel, so we force
# the includedir instead of using ./configure detection, which would
# default to libgcj jni.h:
# - Anssi (12/2007)
export CPPFLAGS="%{optflags} -I%{java_home}/include"
export JDK_HOME=%{java_home}
export TCL_LIB=%{tcl_sitearch}
export TCL_INC=%{_includedir}
export RUBY_LIB_ARCH=%{ruby_vendorarchdir}
export RUBY_LIB=%{ruby_vendorlibdir}

autoreconf -fiv
%configure \
%if %build_mono
	--with-csharp \
%endif
	--with-php7 \
	--with-python3 \
	--with-ruby \
	--with-tcl \
	--with-java
%make

%install
%makeinstall_std

# Move to a proper location
install -d -m755 %{buildroot}%{_libdir}
mv %{buildroot}%{_builddir}/%{name}-%{version}/java/built/libxapian_jni.so %{buildroot}%{_libdir}

# Install the needed jar file as well
install -d -m755 %{buildroot}%{_jnidir}
install -m644 java/built/xapian.jar %{buildroot}%{_jnidir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11504 |21cr|xapian-omega-1.4.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A CGI search frontend and indexers built on Xapian
Name:		xapian-omega
Version:	1.4.19
Release:	1
License:	GPLv2+
Group:		Networking/WWW
URL:		http://www.xapian.org
Source0:	http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(xapian-core) >= %{version}
BuildRequires:	pcre-devel
BuildRequires:	pkgconfig(libmagic)
Requires:	xapian >= %{version}

%description
Omega is a CGI application which uses the Xapian Information Retrieval
library to index and search collections of documents.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# CGI application
mkdir -p %{buildroot}%{_var}/www/cgi-bin/
mv %{buildroot}%{_libdir}/%{name}/bin/omega %{buildroot}%{_var}/www/cgi-bin

# Create /var directories
mkdir -p %{buildroot}%{_var}/lib/omega/data
mkdir -p %{buildroot}%{_var}/lib/omega/cdb
mkdir -p %{buildroot}%{_var}/log/omega

# Default templates
mkdir -p %{buildroot}%{_var}/lib/omega/templates
cp -r templates/* %{buildroot}%{_var}/lib/omega/templates/

# Images
mkdir -p %{buildroot}%{_var}/www/icons/omega
cp -r images/* %{buildroot}%{_var}/www/icons/omega/

%files
%doc AUTHORS ChangeLog README TODO NEWS
%doc %{_docdir}/xapian-omega/*.html
%dir %{_datadir}/omega
%dir %{_var}/www/icons/omega
%dir %{_var}/lib/omega
%{_bindir}/dbi2omega
%{_bindir}/omindex
%{_bindir}/omindex-list
%{_bindir}/scriptindex
%{_bindir}/htdig2omega
%{_bindir}/mbox2omega
%{_libdir}/xapian-omega/bin/outlookmsg2html
%{_libdir}/xapian-omega/bin/mhtml2html
%{_libdir}/xapian-omega/bin/rfc822tohtml
%{_libdir}/xapian-omega/bin/vcard2text
%{_var}/lib/omega/templates/*
%{_var}/log/omega
%{_var}/www/cgi-bin/omega
%{_var}/www/icons/omega/*.png
%{_datadir}/omega/*.script
%config(noreplace) %{_sysconfdir}/omega.conf
%{_mandir}/man1/omindex.1*
%{_mandir}/man1/scriptindex.1*
%{_mandir}/man1/omindex-list.1.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11505 |21cr|xarchiver-0.5.4.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight archiving/compression tool
Name:		xarchiver
Version:	0.5.4.18
Release:	1
License:	GPLv2
Group:		Archiving/Compression
Url:		http://xarchiver.sourceforge.net/
Source0:	https://github.com/ib/xarchiver/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	binutils
Requires:	unzip
Requires:	zip
Recommends:		arj
Recommends:		lha
Recommends:		p7zip
Recommends:		zstd
Recommends:		unrar
Recommends:		xz

%description
Xarchiver is a GTK+ frontend to 7z, a (libraries), arj, bzip2, compress, cpio,
gzip, lha, lrzip, lz4, lzip, lzma, lzop, rar, tar, xz, zip, zstd, tar.bz2,
tar.gz, tar.lrz, tar.lz, tar.lz4, tar.lzma, tar.lzop, tar.xz, tar.Z, tar.zst,
rpm and deb (open and extract only).  Xarchiver allows you to create,
add, extract and delete files in the above formats.  Password protected
archives are supported.

%files -f %{name}.lang
%doc %{_docdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_libexecdir}/thunar-archive-plugin/%{name}.tap
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/pixmaps/%{name}/*.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11506 |21cr|xastir-2.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Xastir-Release

Summary:	Amateur Station Tracking and Reporting system for amateur radio
Name:		xastir
Version:	2.1.8
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://www.xastir.org
Source0:	https://github.com/Xastir/Xastir/archive/Release-%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source1:	https://github.com/Xastir/xastir-sounds/archive/v1.0.tar.gz?/%{name}-sounds-1.0.tar.gz
Source2:	%{name}.desktop
Source100:	%{name}.rpmlintrc
BuildRequires:	gpsman
BuildRequires:	db-devel
BuildRequires:	festival-devel
BuildRequires:	lesstif-devel
BuildRequires:	shapelib-devel
BuildRequires:	pkgconfig(geotiff)
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(proj)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)
Requires:	x11-font-adobe-75dpi

%description
Xastir is a graphical application that interfaces HAM radio and internet
access to realtime mapping software.
Install XASTIR if you are interested in APRS(tm) and HAM radio software.

%files
%doc AUTHORS ChangeLog COPYING COPYING.LIB.LESSTIF DEBUG_LEVELS FAQ LICENSE
%doc README.md README.GIT README.Getting-Started README.MAPS README.sudo UPGRADE
%{_bindir}/*
%{_datadir}/%{name}/help
%{_datadir}/%{name}/config
%{_datadir}/%{name}/symbols
%{_datadir}/%{name}/scripts
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/callpass.1.*
%{_mandir}/man1/testdbfawk.1.*
%{_mandir}/man1/%{name}_udp_client.1.*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/40x40/%{name}.png
# To protect user-installed map and other files from being clobbered
# at upgrade time
%config %{_datadir}/%{name}/maps
%config %{_datadir}/%{name}/Counties
%config %{_datadir}/%{name}/fcc
%config %{_datadir}/%{name}/GNIS
%config %{_datadir}/%{name}/sounds

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version} -a1


%build
./bootstrap.sh
./configure --prefix=%{_prefix}
%make


%install
%makeinstall_std

# Provide at least one icon file
mkdir -p %{buildroot}%{_iconsdir}/hicolor/40x40/
install -m 0644 %{buildroot}%{_datadir}/%{name}/symbols/icon.png %{buildroot}%{_iconsdir}/hicolor/40x40/%{name}.png

# Install our .desktop file
mkdir -p %{buildroot}/usr/share/applications
install -m 0644 %{SOURCE2} %{buildroot}/usr/share/applications/.

# Install sounds
cp %{name}-sounds-1.0/sounds/*.wav %{buildroot}/usr/share/xastir/sounds/.

# Docs go into package docs area instead of here:
rm -rf %{buildroot}/usr/share/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11507 |21cr|xautolock-2.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Automatically starts programs when there is inactivity under X
Name:		xautolock
Version:	2.2
Release:	9
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.ibiblio.org/pub/Linux/X11/screensavers/
Source0:	http://www.ibiblio.org/pub/Linux/X11/screensavers/%{name}-%{version}.tgz
Patch0:		10-fix-memory-corruption.patch
Patch1:		14-do-not-use-union-wait-type.patch
BuildRequires:	imake
#(nl) Needed for rman
BuildRequires:	xorg-x11
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xv)
Requires:	xlockmore

%description
Xautolock monitors the user activity on an X Window display.
If none is detected within a certain amount of time a program specified
by the user will be run. Typically xautolock will be used to lock the screen
using for instance xlock.

%files
%doc License Todo Readme Changelog
%{_prefix}/X11R6/bin/xautolock
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
xmkmf
%make

%install
bzip2 ./xautolock.man
install -m644 xautolock.man.bz2 -D %{buildroot}%{_mandir}/man1/xautolock.man.bz2
install -m755 xautolock -D %{buildroot}%{_prefix}/X11R6/bin/xautolock
# Make sure all docs are readable
chmod a+r Changelog Readme Todo License

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11508 |21cr|xautomation-1.09-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:      xautomation
Version:   1.09
Release:   3
Summary:   Control X from the command line
Group:     System/X11
URL:       http://hoopajoo.net/projects/xautomation.html
Source:    http://hoopajoo.net/static/projects/%{name}-%{version}.tar.gz
License:   GPLv2
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xtst)
BuildRequires: libpng-devel
BuildRequires:  pkgconfig(xi)

%description
Control X from the command line for scripts, and do "visual scraping" to find
things on the screen. The conrol interface allows mouse movement, clicking,
button up/down, key up/down, etc, and uses the XTest extension so you don't
have the annoying problems that xse has when apps ignore sent events. The
visgrep program find images inside of images and reports the coordinates,
allowing progams to find buttons, etc, on the screen to click on.

%prep
%setup -q

%build
export LDFLAGS="-lX11"
%configure
%make

%install
%makeinstall_std

%clean

%files
%defattr(-, root, root)
%{_bindir}/pat2ppm
%{_bindir}/patextract
%{_bindir}/png2pat
%{_bindir}/rgb2pat
%{_bindir}/visgrep
%{_bindir}/xmousepos
%{_bindir}/xte
%{_mandir}/man1/pat2ppm.1*
%{_mandir}/man1/patextract.1*
%{_mandir}/man1/png2pat.1*
%{_mandir}/man1/rgb2pat.1*
%{_mandir}/man1/visgrep.1*
%{_mandir}/man1/xmousepos.1*
%{_mandir}/man1/xte.1*
%{_mandir}/man7/xautomation.7*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11509 |21cr|xaw3dxft-1.6.2h-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An extended version of Xaw3d
Name:		xaw3dxft
Version:	1.6.2h
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://sourceforge.net/projects/sf-xpaint/
Source0:	https://downloads.sourceforge.net/project/sf-xpaint/libxaw3dxft/libXaw3dXft-%{version}.tar.bz2
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gccmakedep
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xv)

%description
An extended version of Xaw3d with support for UTF8 input
and UTF8 encoding of text, and rendering text with the Freetype
library and Truetype fonts.

It should be mostly compatible with the original xaw3d library,
except for font management: everything using the old X11 core
font routines should be replaced by their freetype equivalents.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An extended version of Xaw3d
Group:		System/Libraries

%description -n %{libname}
An extended version of Xaw3d with support for UTF8 input and
UTF8 encoding of text, and rendering text with the Freetype
library and Truetype fonts.

It should be mostly compatible with the original Xaw3d library,
except for font management: everything using the old X11 core
font routines should be replaced by their freetype equivalents.

%files -n %{libname}
%{_libdir}/libXaw3dxft.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and shared libraries for development using Xaw3dxft
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
An extended version of Xaw3d with support for UTF8 input and
UTF8 encoding of text, and rendering text with the Freetype
library and Truetype fonts.

It should be mostly compatible with the original Xaw3d library,
except for font management: everything using the old X11 core
font routines should be replaced by their freetype equivalents.

You should install Xaw3dxft-devel if you are going to develop
applications using the Xaw3dxft widget set.

%files -n %{devname}
%{_libdir}/libXaw3dxft.so
%{_includedir}/X11/Xaw3dxft/*.h
%{_libdir}/pkgconfig/libxaw3dxft.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n libXaw3dXft-%{version}

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-internationalization \
	--enable-multiplane-bitmaps \
	--enable-gray-stipples \
	--enable-arrow-scrollbars

%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/libXaw3dXft/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11510 |21cr|xawtv-3.107-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: Workaround build errors with underlinking, try to make a proper
# fix later
%define	_disable_ld_no_undefined 1

# dynamic desktop support
%define	webcam_launcher /etc/dynamic/launchers/webcam
%define	tvtuner_launcher /etc/dynamic/launchers/tvtuner

Summary:	A X11 program for watching TV
Name:		xawtv
Version:	3.107
Release:	4
License:	GPLv2+
Group:		Video
#OLD_STILL_VALID_URLs: http://www.strusel007.de/linux/xawtv/
#http://bytesex.org/xawtv/
Url:		http://linux.bytesex.org/xawtv/
Source0:	http://linuxtv.org/downloads/xawtv/%{name}-%{version}.tar.bz2
Source2:	%{name}
Patch0:		xawtv-strsignal.patch
Patch31:	xawtv-3.100-glibc.patch
BuildRequires:	recode
BuildRequires:	x11-server-common
BuildRequires:	aalib-devel
BuildRequires:	gpm-devel
BuildRequires:	jpeg-devel
BuildRequires:	lesstif-devel
BuildRequires:	slang-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(libfs)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(zvbi-0.2)
Requires:	common-licenses
Requires:	xawtv-common = %{EVRD}

%description
Xawtv is a Video4Linux Stream Capture Viewer, that is a X11 program for
watching TV. It uses the Athena widgets.
MoTV has a nicer GUI which use lesstif (motif) widgets.

%files
%doc COPYING
%config(noreplace) %{tvtuner_launcher}/%{name}.desktop
%config(noreplace) %{webcam_launcher}/%{name}.desktop
%config(noreplace) %{_sysconfdir}/X11/app-defaults/Xawtv
%{_bindir}/xawtv
%{_bindir}/XawTV
%{_mandir}/man1/xawtv.1*
%{_mandir}/fr/man1/xawtv.1*
%{_datadir}/applications/rosa-%{name}.desktop
/usr/lib/X11/app-defaults/Xawtv*
%{_datadir}/%{name}

%post
update-alternatives --install %{webcam_launcher}/gnome.desktop webcam.gnome.dynamic %{webcam_launcher}/%{name}.desktop 20
update-alternatives --install %{webcam_launcher}/kde.desktop webcam.kde.dynamic %{webcam_launcher}/%{name}.desktop 20
update-alternatives --install %{tvtuner_launcher}/kde.desktop tvtuner.kde.dynamic %{tvtuner_launcher}/%{name}.desktop 20
update-alternatives --install %{tvtuner_launcher}/gnome.desktop tvtuner.gnome.dynamic %{tvtuner_launcher}/%{name}.desktop 20

%postun
if [ $1 = 0 ]; then
  update-alternatives --remove webcam.kde.dynamic %{webcam_launcher}/%{name}.desktop
  update-alternatives --remove webcam.gnome.dynamic %{webcam_launcher}/%{name}.desktop
  update-alternatives --remove tvtuner.kde.dynamic %{tvtuner_launcher}/%{name}.desktop
  update-alternatives --remove tvtuner.gnome.dynamic %{tvtuner_launcher}/%{name}.desktop
fi

#----------------------------------------------------------------------------

%package common
Summary:	Common files for fbtv/motv/ttv/xawtv
Group:		Video
Requires:	tv-fonts

%description common
These are common files for fbtv, motv, ttv and xawtv.
They are:
 * scantv: small text program that look for tv channels
 * streamer - capture tool (images / movies).

%files common
%doc COPYING
%attr(4711,root,root) %{_bindir}/v4l-conf
%{_bindir}/rootv
%{_bindir}/scantv
%{_bindir}/subtitles
%{_bindir}/v4l-info
%lang(es) %{_mandir}/es/man1/rootv.*
%lang(es) %{_mandir}/es/man1/scantv.*
%lang(es) %{_mandir}/es/man1/subtitles.*
%lang(es) %{_mandir}/es/man1/xawtv.*
%lang(es) %{_mandir}/es/man5/xawtvrc.*
%lang(es) %{_mandir}/es/man8/v4l-conf.*
%{_mandir}/man1/rootv.1*
%{_mandir}/man1/scantv.1*
%{_mandir}/man1/subtitles*
%{_mandir}/man5/xawtvrc*
%{_mandir}/man8/v4l*
%{_mandir}/man1/v4l-info.*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%doc Changes README*
%doc contrib/frequencies*

#----------------------------------------------------------------------------

%package control
Summary:	Control video4linux devices
Group:		Video

%description control
Xawtv-remote and v4lctl can be used to control a video4linux driven TV card.
Xawtv-remote passes the command to a already running xawtv or motv instance
using X11 properties.
V4lctl is a command line tool that sets the parameters directly.

%files control
%doc README.lirc
%{_bindir}/v4lctl
%{_bindir}/xawtv-remote
%{_mandir}/man1/v4lctl.1*
%lang(es) %{_mandir}/es/man1/v4lctl.*
%{_mandir}/man1/xawtv-remote.1*
%lang(es) %{_mandir}/es/man1/xawtv-remote.*

#----------------------------------------------------------------------------

%package -n fbtv
Summary:	A console program for watching TV
Group:		Video
Requires:	xawtv-common = %{EVRD}

%description -n fbtv
Fbtv is a program for watching TV with your linux box.
It runs on top of a graphic framebuffer device (/dev/fb0): thus is useful for
watching TV without X11.
It shares the config file ($HOME/.xawtv) with the xawtv application.
Check the xawtv(1) manpage for details about the config file format.

%files -n fbtv
%doc COPYING
%{_bindir}/fbtv
%{_mandir}/man1/fbtv*
%lang(es) %{_mandir}/es/man?/fbtv.*

#----------------------------------------------------------------------------

%package misc
Summary:	Xawtv miscellous stuff
Group:		Video
Requires:	xawtv-common = %{EVRD}

%description misc
This package has a few tools you might find useful. They have not to do very
much to do with xawtv as they were written for debugging:
 * dump-mixers - dump mixer settings to stdout
 * propwatch   - monitors properties of X11 windows.  If you
                 want to know how to keep track of xawtv's
                 _XAWTV_STATION property, look at this.
 * mtt         - teletext browser for X11 and console
 * ntsc-cc     - reads vbi data from /dev/vbi and decodes the enclosed cc data.
 * pia         - play media files
 * record      - console sound recorder.  Has a simple input
                 level meter which might be useful to trouble
                 shoot sound problems.
 * showriff    - display the structure of RIFF files (avi, wav).

%files misc
%doc COPYING
%config(noreplace) /etc/X11/app-defaults/mtt
%{_bindir}/dump-mixers
%{_bindir}/mtt
%{_bindir}/ntsc-cc
%{_bindir}/pia
%{_bindir}/propwatch
%{_bindir}/record
%{_bindir}/showqt
%{_bindir}/showriff
%{_mandir}/man1/dump-mixers*
%{_mandir}/man1/mtt*
%{_mandir}/man1/ntsc*
%{_mandir}/man1/pia*
%{_mandir}/man1/record*
%{_mandir}/man1/propwatch*
%{_mandir}/man1/showriff.1*

#----------------------------------------------------------------------------

%package -n motv
Summary:	A Motif program for watching TV
Group:		Video
Requires:	xawtv-common = %{EVRD}

%description -n motv
This is a motv-based Video4Linux capture viewer. It is basically xawtv with a
more user-friendly GUI. It has the same features, uses the same config file,
has the same command line switches, you can control it using xawtv-remote.
Most keyboards shortcuts are identical too.

%files -n motv
%doc COPYING
%{_bindir}/motv
%{_mandir}/man1/motv*
%{_datadir}/applications/rosa-motv.desktop
%config(noreplace) %{_sysconfdir}/X11/app-defaults/MoTV
%config(noreplace) %{_sysconfdir}/X11/*/app-defaults/MoTV

#----------------------------------------------------------------------------

%package -n radio
Summary:	Console radio application
Group:		Sound
Provides:	xawtv-radio = %{EVRD}

%description -n radio
This is a ncurses-based radio application.

%files -n radio
%doc COPYING
%{_bindir}/radio
%{_mandir}/man1/radio*

#----------------------------------------------------------------------------

%package -n streamer
Summary:	Record audio and/or video streams
Group:		Video
Requires:	xawtv-common = %{EVRD}

%description -n streamer
streamer reads audio and/or video data from /dev/video0 and /dev/dsp
and writes the data to the disk.
Various output formats are supported.
Start streamer with '-h' for a list of options and supported output formats.

%files -n streamer
%doc COPYING README.recording
%{_bindir}/streamer
%{_mandir}/man1/streamer*
%lang(es) %{_mandir}/es/man1/streamer.*

#----------------------------------------------------------------------------

%package -n ttv
Summary:	Display TV/video on a tty
Group:		Video
Requires:	xawtv-common = %{EVRD}

%description -n ttv
Ttv displays TV/video on a terminal, rendering the images using aalib.

%files -n ttv
%doc COPYING
%{_bindir}/ttv
%{_mandir}/man1/ttv*
%lang(es) %{_mandir}/es/man1/ttv.*

#----------------------------------------------------------------------------

%package web
Summary:	Videotext pages webserver & images capture/upload to a webserver
Group:		Networking/WWW
Requires:	xawtv-common = %{EVRD}

%description web
Webcam captures images from a video4linux device like bttv, annotates them and
and uploads them to a webserver using ftp in a endless loop.
Alevtd is http daemon which serves videotext pages as HTML.
Tune in some station with a utility like v4lctl or some TV application.
Then start it and point your browser to http://localhost:5654/
Pages may be requested either in HTML format (http://localhost:5654/<page>/
or http://localhost:5654/<page>/<subpage>.html) or in ASCII text format
(http://localhost:5654/<page>/<subpage>.txt).
Subpage "00" can be used for pages without subpages.

%files web
%doc COPYING
%{_bindir}/alevtd
%{_bindir}/webcam
%{_mandir}/man1/alevtd.1*
%{_mandir}/man1/webcam.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix building with glibc 2.28+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,^#include <sys/types.h>,#include <sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
autoreconf -vfi
export LIBS="$LIBS -lm"
%configure	--enable-xfree-ext \
		--enable-xvideo \
		--enable-gl \
		--enable-zvbi \
		--enable-lirc \
		--enable-dv \
		--enable-aa \
		--enable-alsa \
		--disable-quicktime \
		--x-includes=%{_includedir}/freetype2

# Quicktime support not enabled, so libpng is not needed
find . -name 'Makefile' | xargs perl -pi -e 's/-lpng//g'
%make


%install
perl -pi -e 's!-o root -g root!!g' src/Makefile
mkdir -p %{buildroot}/usr/lib/X11/app-defaults
%makeinstall_std ROOT="%{buildroot}" FONTDIR=%{buildroot}%{_datadir}/fonts/misc SUID_ROOT=""

install -m 644 x11/Xawtv.ad %{buildroot}/usr/lib/X11/app-defaults
(cd %{buildroot}/usr/lib/X11/app-defaults; ln Xawtv.ad Xawtv; ln Xawtv.ad Xawtv-color)

install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/XawTV

# Menu entries
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop <<EOF
[Desktop Entry]
Name=XawTV
Comment=A program for watching TV
Comment[ru]=Программа просмотра ТВ
Exec=XawTV
Icon=video_section
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Video;TV;
EOF

cat > %{buildroot}%{_datadir}/applications/rosa-motv.desktop <<EOF
[Desktop Entry]
Name=MoTV
Comment=A program for watching TV (nicer interface)
Comment[ru]=Программа просмотра ТВ (улучшенный интерфейс)
Exec=motv
Icon=video_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Motif;AudioVideo;Video;TV;
EOF

mkdir -p %{buildroot}{%tvtuner_launcher,%webcam_launcher}
cat > %{buildroot}%{webcam_launcher}/%{name}.desktop << EOF
[Desktop Entry]
Name=XawTV \$devicename
Comment=The X11 Video4Linux Stream Capture Viewer
Comment[ru]=Просмотр входящего потока Video4Linux
TryExec=xawtv
Exec=xawtv -c \$device
Terminal=false
Icon=video_section
Type=Application
EOF

cat > %{buildroot}%{tvtuner_launcher}/%{name}.desktop << EOF
[Desktop Entry]
Name=XawTV \$devicename
Comment=The X11 Video4Linux Stream Capture Viewer
Comment[ru]=Просмотр входящего потока Video4Linux
TryExec=XawTV
Exec=XawTV -c \$device
Terminal=false
Icon=video_section
Type=Application
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11511 |21cr|xbacklight-1.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xbacklight
Version:	1.2.1
Release:	4
Summary:	Command-line utility to set the display backlight level
Group:		System/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(xrandr) >= 1.2
BuildRequires:	pkgconfig(xcb-atom)
BuildRequires:	pkgconfig(xcb-aux)
BuildRequires:	pkgconfig(xorg-macros) >= 1.8

%description
xbacklight is a simple command-line utility to set the backlight level
using the RandR 1.2 BACKLIGHT output property.


%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std


%files
%doc COPYING ChangeLog README
%{_bindir}/xbacklight
%{_mandir}/man1/xbacklight.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11512 |21cr|Xbae-4.60.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname xbae

%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Xbae Widget Set
Name:		Xbae
Version:	4.60.4
Release:	10
License:	BSD
Group:		System/Libraries
Url:		http://xbae.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/xbae/%{srcname}-%{version}.tar.gz
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)

%description
XbaeMatrix is a free Motif table widget (also compatible with the free LessTif)
which presents an editable array of string data to the user in a scrollable
table similar to a spreadsheet. The rows and columns of the Matrix may
optionally be labelled. A number of "fixed" and "trailing fixed" rows or
columns may be specified.

%files
%doc AUTHORS ChangeLog COPYING NEWS README
%{_mandir}/man3/*
%{_datadir}/Xbae

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Xbae Widget Set library
Group:		System/Libraries

%description -n %{libname}
XbaeMatrix is a free Motif table widget (also compatible with the free LessTif)
which presents an editable array of string data to the user in a scrollable
table similar to a spreadsheet. The rows and columns of the Matrix may
optionally be labelled. A number of "fixed" and "trailing fixed" rows or
columns may be specified.

%files -n %{libname}
%{_libdir}/libXbae.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the %{name} library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package includes the header files and static libraries
necessary for developing programs using the %{name} library.

If you are going to develop programs which will use this library
you should install %{name}-devel.  You'll also need to have the %{name}
package installed.

%files -n %{devname}
%doc doc/*.html
%{_includedir}/%{name}
%{_libdir}/libXbae.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

%build
%configure \
	--enable-shared \
	--disable-static \
	--disable-debug
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_prefix}/Xbae

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11513 |21cr|xbanner-1.31-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A program for customizing the look of the standard XDM interface
Name:		xbanner
Version:	1.31
Release:	30
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.hijinks.com/~spade/linux/XBanner/
Source0:	ftp://physics.fullerton.edu/pub/Linux/XBanner/XBanner1.31.tar.bz2
Source1:	XBanner.mdkdefaults.bz2
Source2:	xdm_bg.xpm.bz2
Patch0:		xbanner-1.3-rh.patch
Patch1:		XBanner-asnonroot.patch
Patch2:		xbanner-multiple-definition.patch
BuildRequires:	imake
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)

%description
The XBanner program allows the display of text, patterns and images
in the root window, so users can customize the XDM style login screen
and/or the normal X background.

Install XBanner if you'd like to change the look of your X login screen
and/or X background.

%files
%{_prefix}/X11R6/bin/*
%{_prefix}/X11R6/include/X11/pixmaps/xdm_bg.xpm
%{_prefix}/X11R6/lib/X11/app-defaults/XBanner
%defattr(0644,root,root,755)
%doc ToDo QuickStart docs
%doc samples docs/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n XBanner1.31

%build
xmkmf -a
make

%install
mkdir -p %{buildroot}
mkdir -p %{buildroot}/usr
mkdir -p %{buildroot}/usr/X11R6/bin
mkdir -p %{buildroot}/usr/X11R6/include/X11/pixmaps
mkdir -p %{buildroot}/usr/X11R6/lib/X11/app-defaults

for i in xbanner freetemp xb_check;do
install -c  --strip --mode "0755"  $i %{buildroot}/usr/X11R6/bin/$i
done

bzcat %{SOURCE1} > %{buildroot}/usr/X11R6/lib/X11/app-defaults/XBanner
bzcat %{SOURCE2} > %{buildroot}/usr/X11R6/include/X11/pixmaps/xdm_bg.xpm

# fixup bogus permissions
chmod -R og+rX %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11514 |21cr|xbcontrol-0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	XRandr display Brightness and gamma Control
Name:		xbcontrol
Version:	0.6
Release:	3
License:	GPLv3
Group:		System/Configuration/Hardware
Url:		https://github.com/AKotov-dev/xbcontrol
Source0:	https://github.com/AKotov-dev/xbcontrol/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# startup script
Source1:	%{name}
BuildRequires:	lazarus
BuildRequires:	gettext

%description
XBControl - a program for adjusting the brightness and gamma of the monitor.

    After installation, it is located in the Menu-Utilities
    After the launch, it sits in the tray (yellow brightness icon)
    After a single left - click, the window shown in the screenshot opens. 
The settings are saved when the settings window is closed. It is possible to put 
in autoload (the button with the Rocket - it will be sunk when pressed; pressing 
again removes autoload), reset the settings to default, or close the program.

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
#----------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}/%{name}

# delete prebuilt bin
rm -f xbcontrol

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp %{SOURCE1} %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp package_project/%{name}.desktop %{buildroot}%{_datadir}/applications/
cp package_project/%{name}.png %{buildroot}%{_datadir}/pixmaps/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11515 |21cr|xbill-2.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xbill
Version:	2.1
Release:	10
Group:		Games/Arcade
Source0:	%{name}-%{version}.tar.bz2
Url:		http://www.xbill.org/
Summary:	Defend your computers from Wingdows Viruses
License:	GPL
BuildRequires:	pkgconfig(x11)
BuildRequires:	Xaw3d-devel
BuildRequires:	libxpm-devel
BuildRequires:	pkgconfig(xt)
BuildRequires:	libxaw-devel
BuildRequires:	lesstif-devel
BuildRequires:	imagemagick

%description
Ever get the feeling that nothing is going right?  You're a sysadmin,
and someone's trying to destroy your computers.  The little people
running around the screen are trying to infect your computers with
Wingdows [TM], a virus cleverly  designed to resemble a popular
operating system.  Your objective is to click the mouse on them, ending
the potential threat. If one of the people reaches a computer, it will
attempt to replace your operating system with the virus it carries.
It will then attempt to run off the screen with your vital software.
If one of the people reaches a computer, it will attempt to replace
your operating system with the virus it carries. It will then attempt
to run off the screen with your vital software..

%prep
%setup -q

%build
%configure	--disable-gtk \
		--bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir} \
		--localstatedir=%{_localstatedir}/lib/games
%make

%install
rm -rf %{buildroot}
%{makeinstall_std}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=XBill
Comment=%{Summary}
Exec=%_gamesbindir/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

install -d %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
convert -size 16x16 %{name}.gif %{buildroot}%{_miconsdir}/%{name}.png
convert -size 32x32 %{name}.gif %{buildroot}%{_iconsdir}/%{name}.png
convert -size 48x48 %{name}.gif %{buildroot}%{_liconsdir}/%{name}.png

%files
%doc README README.Ports ChangeLog
%attr(2755,root,games) %{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_mandir}/man6/xbill.6*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%attr(0664,root,games) %{_localstatedir}/lib/games/xbill/scores
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11516 |21cr|xbindkeys-1.8.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Link keyboard and mouse input events with shell commands
Name:		xbindkeys
Version:	1.8.7
Release:	1
License:	GPL
Group:		System/X11
URL:		https://savannah.nongnu.org/projects/xbindkeys/
Source:		http://www.nongnu.org/xbindkeys/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(x11) 
# (for xbindkey_show)
Requires:	tk

%description
%{name} is a program that allows you to launch shell commands with
your keyboard or your mouse under X Window. It links commands to keys
or mouse buttons, using a configuration file. It's independent of the
window manager and can capture all keyboard keys (e.g. Power, Wake...).

%files
%defattr(-,root,root)
%doc AUTHORS BUGS ChangeLog README
%{_bindir}/*
%{_mandir}/man?/*

#------------------------------------------------------------------

%prep
%setup -q

%build 
%configure --disable-guile
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11517 |21cr|xbiso-0.6.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ISO extraction utility for xdvdfs images
Name:		xbiso
Version:	0.6.1
Release:	5
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		http://sourceforge.net/projects/xbiso/
Source0:	http://downloads.sourceforge.net/xbiso/%{name}-%{version}.tar.gz
Patch0:		xbiso-0.6.1-destdir.patch
# Requires re-work for ftplib 4.0+
#BuildRequires:	libftp-devel

%description
xbiso is an ISO extraction utility for xdvdfs images.

%files
%doc CHANGELOG LICENSE README
%{_bindir}/xbiso

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-ftp
%make LIBS="-lm"

%install
mkdir -p %{buildroot}%{_bindir}
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11518 |21cr|xblast-2.10.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	XBlast TNT a bomberman like game (Multiplayer)
Name:		xblast
Version:	2.10.4
Release:	7
Source0:	%{name}-complete-sounds-%{version}.tar.bz2
Patch0:		xblast-complete-sounds-2.10.4-localedir.patch
Patch1:		xblast-multiple-definition.patch
License:	GPLv2+
Group:		Games/Arcade
Url:		http://xblast.sf.net
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)


%description
XBlast is a multi-player arcade game for X11 and MS Windows with raytraced 
graphics. The game can be played with at least two players and up to six 
players. It was inspired by the video/computer game Bomberman (Dynablaster).

%files -f %{name}.lang
%defattr(-,root,root,0755)
%doc README NEWS COPYING AUTHORS
%{_gamesbindir}/xblast
%{_gamesbindir}/xbsndsrv
%{_gamesdatadir}/XBlast-TNT
%{_datadir}/applications/*.desktop

#-----------------------------------------------------
%prep
%autosetup -p1

%build
autoreconf -fi
%configure --bindir=%{_gamesbindir} --enable-sound --with-otherdatadir=%{_gamesdatadir}/XBlast-TNT
%make

%install
%makeinstall_std

%{find_lang} %{name}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/%{name}
Icon=arcade_section
Categories=Game;ArcadeGame;
Name=X blast
Comment=%{summary}
EOF

#fix char in filename
mv %{buildroot}%{_gamesdatadir}/XBlast-TNT/level/'reconstruct'$'\356''on2.xal' %{buildroot}%{_gamesdatadir}/XBlast-TNT/level/reconstruction2.xal

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11519 |21cr|xbuffy-3.4-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	X-based multiple mailbox biff
Name:		xbuffy
Version:	3.4
Release:	18
License:	MIT
Group:		Graphical desktop/Other
Source:		%{name}-%{version}.tar.bz2
Url:		ftp://ftp.virginia.edu:/pub/xbuffy/
Patch0:		xbuffy-3.4-multiple-box.patch
Patch1:		xbuffy-nntp-gcc331.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
Xbuffy is a program that watches multiple mailboxes and newsgroups
and displays a count of new mail or news, and optionally displays a pop-up
window containing the From: and Subject: lines when new mail or news
arrives.  Xbuffy can also run a program (such as a xterm with your mail reader)
when you click on the mailbox.  

%prep
%setup -q
%patch0
%patch1

%build
%configure --enable-nntp --enable-content-length
%make

%install
install -m 755 -d %{buildroot}%{_bindir}/
install -s -m 755  xbuffy %{buildroot}%{_bindir}/xbuffy
install -m 755 -d %{buildroot}%{_mandir}/man1/
install -m 644 xbuffy.1 %{buildroot}%{_mandir}/man1/xbuffy.1x
install -m 755 -d %{buildroot}%{_datadir}/X11/app-defaults/
install -m 644  XBuffy.ad %{buildroot}%{_datadir}/X11/app-defaults/XBuffy

%files
%doc ChangeLog README README.imap README.cclient boxfile.fmt boxfile.sample
%{_bindir}/xbuffy
%{_mandir}/man1/xbuffy.1x*
%{_datadir}/X11/app-defaults/XBuffy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11520 |21cr|xca-2.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	GUI for handling X509 certificates, RSA keys and PKCS#10 requests
Name:		xca
Version:	2.8.0
Release:	1
License:	BSD
Group:		System/Servers
Url:		https://www.hohnstaedt.de/xca/
Source0:	https://github.com/chris2511/xca/releases/download/RELEASE.%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	qt5-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libssl)
BuildRequires:	linuxdoc-tools
BuildRequires:	libltdl-devel
BuildRequires:	python3egg(sphinx)

%description
XCA uses a Berkeley DB for storage and supports RSA keys,
certificate signing requests (PKCS#10) and Certificates (X509v3)
The signing of requests, and the creation of selfsigned certificates
is supported. Both can use templates for simplicity.
The PKI structures can be imported and exported in several formats
like PKCS#7, PKCS#12, PEM, DER, PKCS#8.

%files
%doc AUTHORS COPYRIGHT
%doc %{_docdir}/xca/*
%{_iconsdir}/hicolor/*/*/*.png
%{_datadir}/applications/*.desktop
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_mandir}/man1/%{name}*.1*
%{_datadir}/mime/packages/xca.xml
%{_datadir}/bash-completion/completions/xca
%{_datadir}/metainfo/de.hohnstaedt.xca.metainfo.xml

#------------------------------------------------------------------

%prep
%setup -q

%build
export PATH="%{_qt5_bindir}:$PATH"
%cmake

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11521 |21cr|xcalib-0.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Tiny monitor calibration loader
Name:           xcalib
Version:	0.8
Release:	11
License:	GPL
Group:		System/Configuration/Hardware
URL:		http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib
Source0:	http://www.etg.e-technik.uni-erlangen.de/web/doe/xcalib/%{name}-source-%{version}.tar.bz2
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xxf86vm)

%description
xcalib is a tiny monitor calibration loader for XFree86 (or X.org) 

%prep
%setup -q

%build
%make xcalib CFLAGS="%{optflags}" XLIBDIR=%{_libdir} XINCLUDEDIR=%{_includedir}

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{_bindir}
cp xcalib %{buildroot}%{_bindir}/xcalib

%clean
rm -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc README README.profilers COPYING *.icc *.icm
%attr(755,root,root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11522 |21cr|xcape-1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Use a modifier key as another key when pressed and released on its own
Name:		xcape
Version:	1.2
Release:	3
License:	GPLv3+
Group:		System/X11
Url:		https://github.com/alols/xcape
Source0:	https://github.com/alols/xcape/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xtst)

%description
xcape allows you to use a modifier key as another key when pressed
and released on its own. Note that it is slightly slower than pressing
the original key, because the pressed event does not occur until the key
is released. The default behaviour is to generate the Escape key
when Left Control is pressed and released on its own.

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall_std MANDIR=/share/man/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11523 |21cr|xcb-imdkit-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary(ru_RU.UTF-8): Реализация протокола xim в среде xcb
Summary:        An implementation of xim protocol in xcb
Name:           xcb-imdkit
Version:        1.0.5
Release:        1
# source files in src/xlibi18n use the "old style" MIT license known as NTP.
License:        LGPLv2 and MIT
Group:          System/Libraries
URL:            https://github.com/fcitx/xcb-imdkit
Source0:        https://download.fcitx-im.org/fcitx5/%{name}/%{name}-%{version}.tar.xz

BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-keysyms)
BuildRequires:  pkgconfig(xcb-util)

%description
xcb-imdkit is an implementation of xim protocol in xcb, 
comparing with the implementation of IMDkit with Xlib, 
and xim inside Xlib, it has less memory foot print, 
better performance, and safer on malformed client.

%description -l ru_RU.UTF-8
xcb-imdkit - это реализация протокола xim в xcb,
которая, по сравнению с реализацией IMDkit в Xlib и xim
внутри Xlib,занимает меньше памяти, имеет лучшую произво-
дительность и более безопасна для "испорченного" клиента.

#------------------------------------------------------------------

%package -n %{libname}
Summary(ru_RU.UTF-8): Главная библиотека для %{name}
Summary:        Main library for %{name}
Group:          System/Libraries
Provides: %{NAME} = %{EVRD}
Provides: %{NAME}%{_isa} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with xcb-imdkit

%description -l ru_RU.UTF-8 -n %{libname}
Этот пакет содержит библиотеку, необходимую для запуска программ,
динамически связанных с xcb-imdkit

%files -n %{libname}
%license LICENSES
%doc README.md
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary(ru_RU.UTF-8): Файлы разработчика для библиотеки %{name}
Summary:        Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides development files for xcb-imdkit

%description -l ru_RU.UTF-8 -n %{devname}
Этот пакет предоставляет файлы разработчика для библиотеки %{name}

%files -n %{devname}
%license LICENSES
%doc README.md
%{_includedir}/xcb-imdkit/
%{_libdir}/cmake/XCBImdkit/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/xcb-imdkit.pc

#------------------------------------------------------------------

%prep
%autosetup

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11524 |21cr|xcb-util-xrm-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname xcb-xrm %{major}
%define devname %mklibname xcb-xrm -d

Summary:	XCB utility functions for the X resource manager
Name:		xcb-util-xrm
Version:	1.3
Release:	2
License:	MIT
Group:		System/Libraries
Url:		https://github.com/Airblader/xcb-util-xrm
Source0:	https://github.com/Airblader/xcb-util-xrm/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xcb-aux)
BuildRequires:	pkgconfig(x11)

%description
%{summary}.

#---------------------------------------------------------------

%package -n %{libname}
Summary:	XCB utility functions for the X resource manager
Group:		System/Libraries

%description -n %{libname}
%{summary}.

%files -n %{libname}
%doc COPYING
%{_libdir}/*.so.%{major}*

#---------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}
Group:		System/Libraries

%description -n %{devname}
%{summary}.

%files -n %{devname}
%doc COPYING
%{_includedir}/xcb/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/xcb-xrm.pc

#---------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-silent-rules \
	--disable-static \
	--disable-dependency-tracking
%make

%install
%makeinstall
rm -vf %{buildroot}%{_libdir}/libxcb-xrm.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11525 |21cr|xcdroast-0.98-0.a15.41
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	alpharel	alpha15
%define	alpha		15

Summary:	A GUI program for burning CDs
Name:		xcdroast
Version:	0.98
Release:	0.a%{alpha}.41
Epoch:		11
URL:		http://www.xcdroast.org/
Source:		http://xcdroast.sourceforge.net/RPMS/%{alpha}/src/%{name}-%{version}%{alpharel}.tar.bz2
Patch1:		xcdroast-0.98alpha15-linebuffer.patch
Patch2:		xcdroast-0.98alpha15-nowarn.patch
Patch3:		xcdroast-0.98alpha15-scan.patch
Patch4:		xcdroast-0.98alpha15-fix-str-fmt.patch

Patch11:	xcdroast-0.98alpha15-01_upstream_configure.patch
Patch12:	xcdroast-0.98alpha15-02_upstream_gtk2locale.patch
Patch13:	xcdroast-0.98alpha15-03_upstream_64bit_gsize.patch
Patch14:	xcdroast-0.98alpha15-04_upstream_read_eagain.patch
Patch15:	xcdroast-0.98alpha15-05_upstream_wav.patch
Patch16:	xcdroast-0.98alpha15-06_man.patch
Patch17:	xcdroast-0.98alpha15-07_case_cmp.patch
Patch18:	xcdroast-0.98alpha15-08_desktop.patch
Patch19:	xcdroast-0.98alpha15-09_share_dir.patch
Patch20:	xcdroast-0.98alpha15-10_cddbtool.patch
Patch21:	xcdroast-0.98alpha15-11_mkisofs_options.patch
Patch22:	xcdroast-0.98alpha15-12_cdrecord_versions.patch
Patch23:	xcdroast-0.98alpha15-13_cdrecord_to_wodim.patch
Patch24:	xcdroast-0.98alpha15-14_atapi_to_oldatapi.patch
Patch25:	xcdroast-0.98alpha15-15_no_readcd_version.patch

Patch30:	xcdroast-0.98alpha15-prodvd.patch
Patch31:	xcdroast-0.98alpha15-frozen_gui.patch
Patch32:	xcdroast-0.98alpha15-nogtk1.patch

Patch40:	xcdroast-0.98alpha15.spell.patch
Patch41:	xcdroast-linux-new_kernel.patch
License:	LGPLv2+
Group:		Archiving/Cd burning
Requires: 	cdrkit
Requires:	cdrkit-genisoimage
Requires:	cdrkit-icedax
BuildRequires:	gtk2-devel 
BuildRequires:	pkgconfig(gdk-pixbuf-2.0) 
BuildRequires:	pcre-devel 
BuildRequires:	imagemagick
BuildRequires:	bison

%description
X-CD-Roast provides a GUI interface for writing optical discs and disc 
images. X-CD-Roast includes a self-explanatory X11 user interface,
automatic SCSI and IDE hardware setup, support for mastering of new
ISO9660 data CDs, support for production of new audio CDs, fast
copying of CDs without hard disk buffering, and a logfile option.

%prep
%setup -q -n %{name}-%{version}%{alpharel}
%patch1 -p1 -b .linebuffer
%patch2 -p1 -b .nowarn
%patch3 -p1 -b .scan
%patch4 -p0 -b .str

%patch11 -p1 -b .p11
%patch12 -p1 -b .p12
%patch13 -p1 -b .p13
%patch14 -p1 -b .p14
%patch15 -p1 -b .p15
%patch16 -p1 -b .p16
%patch17 -p1 -b .p17
%patch18 -p1 -b .p18
%patch19 -p1 -b .p19
%patch20 -p1 -b .p20
%patch21 -p0 -b .p21
%patch22 -p1 -b .p22
%patch23 -p1 -b .p23
%patch24 -p0 -b .p24
%patch25 -p1 -b .p25

%patch30 -p1 -b .cdrkit
%patch31 -p1 -b .frozen
%patch32 -p1 -b .nogtk1

%patch40 -p1 -b .spell
%patch41 -p0

%build
autoreconf -fi
%configure --with-xcdroast-libdir-prefix=%{_prefix}/lib/xcdroast-0.98 --enable-gtk2
%make PREFIX=%{_prefix}

%install
%makeinstall_std PREFIX=%{_prefix}

# icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -size 48x48 xpms/xcdricon.xpm %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -size 32x32 xpms/xcdricon.xpm %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -size 16x16 xpms/xcdricon.xpm %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=X-CD-Roast
Comment=CD / DVD writing application
Exec=soundwrapper %{_bindir}/%{name} -n
Icon=%{name}
Terminal=false
Type=Application
Categories=GTK;AudioVideo;DiscBurning;
EOF

%find_lang %{name}

%clean

%files -f %{name}.lang
%doc ChangeLog doc README 
%{_bindir}/xcdroast
%{_prefix}/lib/xcdroast-0.98
%{_mandir}/man1/xcdroast.1*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11526 |21cr|xcftools-1.0.7-1.git2e3b70.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 2e3b70a464771785398fd8617f2e08a874a0f256
%define commit_short %(echo %{commit} | head -c6)

Summary:	Command-line tools for extracting information from XCF files
Name:		xcftools
Version:	1.0.7
Release:	1.git%{commit_short}.1
Group:		Graphics
License:	Public Domain
Url:		https://github.com/j-jorge/xcftools
Source0:	https://github.com/j-jorge/xcftools/archive/%{commit}.zip?/%{name}-%{commit}.zip
Patch0:		xcftools-1.0.7-fix-sed.patch
BuildRequires:	pkgconfig(libpng)

%description
Xcftools is a set of fast command-line tools for extracting information from
the Gimp's native file format XCF. The tools are designed to allow efficient
use of layered XCF files as sources in a build system that use 'make' and
similar tools to manage automatic processing of the graphics.
These tools work independently of the Gimp engine and do not require
the Gimp to even be installed.

%files -f %{name}.lang
%doc README
%{_bindir}/xcfview
%{_bindir}/xcfinfo
%{_bindir}/xcf2pnm
%{_bindir}/xcf2png
%{_mandir}/man1/xcfview.1*
%{_mandir}/man1/xcfinfo.1*
%{_mandir}/man1/xcf2pnm.1*
%{_mandir}/man1/xcf2png.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%configure
%make

cd manpo
# Convert to utf-8
for file in xcf2png.da.1 xcf2pnm.da.1 xcfinfo.da.1 xcfview.da.1 ; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file &&  touch -r $file $file.new &&  mv $file.new $file
done

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
%makeinstall_std

%find_lang %{name} --all-name --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11527 |21cr|xchm-1.36-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CHM viewer for UNIX
Name:		xchm
Version:	1.36
Release:	1
License:	GPLv2+
Group:		Publishing
URL:		http://xchm.sourceforge.net
Source0:	https://github.com/rzvncj/xCHM/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	xchm.desktop
BuildRequires:	libchm-devel
BuildRequires:	wxgtku3.1-devel

%description
xCHM - the CHM viewer for UNIX

%files -f %{name}.lang
%doc COPYING AUTHORS ChangeLog README
%{_bindir}/%{name}
%{_iconsdir}/hicolor/*/*/*
%{_datadir}/applications/*
%{_mandir}/man1/xchm.1*
%{_datadir}/metainfo/xchm.appdata.xml

#----------------------------------------------------------
%prep
%setup -q

%build
%configure

# LDFLAGS from 'wx-config --libs'
%make LDFLAGS="-lwx_gtk3u_aui-3.1 -lwx_gtk3u_xrc-3.1 -lwx_gtk3u_webview-3.1 \
	-lwx_gtk3u_html-3.1 -lwx_gtk3u_qa-3.1 -lwx_gtk3u_adv-3.1 -lwx_gtk3u_core-3.1 \
	-lwx_baseu_xml-3.1 -lwx_baseu_net-3.1 -lwx_baseu-3.1"

%install
%makeinstall_std

#install localized desktop file
install -pD -m0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/xchm.desktop

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11528 |21cr|xclip-0.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A command line interface to the X11 clipboard
Name:		xclip
Version:	0.13
Release:	2
License:	GPLv2+
Group:		Text tools
Url:		https://github.com/astrand/xclip
Source0:	https://github.com/astrand/xclip/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%description
xclip is a command line interface to the X11 clipboard. It can also be
used for copying files, as an alternative to sftp/scp, thus avoiding
password prompts when X11 forwarding has already been setup.

%files
%doc README
%{_bindir}/xclip
%{_bindir}/xclip-copyfile
%{_bindir}/xclip-cutfile
%{_bindir}/xclip-pastefile
%{_mandir}/man1/xclip*.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -ifv
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11529 |21cr|xcompmgr-1.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sample X Compositing Manager
Name:		xcompmgr
Version:	1.1.8
Release:	1
Url:		http://xapps.freedesktop.org
Source0:	https://www.x.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT
Group:		System/X11
BuildRequires:	libxcomposite-devel
BuildRequires:	libxfixes-devel
BuildRequires:	libxdamage-devel
BuildRequires:	libxrender-devel
BuildRequires:	libxext-devel
BuildRequires:	x11-util-macros

%description
Sample X Compositing Manager.

%files
%doc ChangeLog
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#---------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11530 |21cr|xcompmgr_hack-2.02-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xcompmgr

Name:		xcompmgr_hack
Version:	2.02
Release:	12
Summary:	Sample X Compositing Manager
Source:		http://baghira.sourceforge.net/%{oname}-%{version}.tar.bz2
URL:		http://baghira.sourceforge.net/
License:	GPL
Group:		System/X11
BuildRequires:  pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xrender)
Conflicts:      xcompmgr

%description
Patched version of xcompmgr 
Sample X Compositing Manager.
This is an unofficiall patched
version from http://baghira.sourceforge.net/


%prep
%setup -q -n %{oname}-%{version}

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING ChangeLog INSTALL
%{_bindir}/%{oname}
%{_mandir}/man1/%{oname}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11531 |21cr|xcowsay-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Displays a cute cow and message on your desktop
Name:		xcowsay
Version:	1.4
Release:	1
Group:		Toys
License:	GPL
Url:		http://www.doof.me.uk/xcowsay/
Source:		http://www.nickg.me.uk/files/%{name}-%{version}.tar.gz
Patch:		xcowsay-1.2-fix-xcowthink-args-parsing.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)


%description
xcowsay displays a cute cow and message on your desktop.

xcowsay includes all these amazing features:
- Fully configurable!
- Calculates display time from amount of text
- Daemon mode! Send your cow messages over DBus!
- Three different sized cows provided
- fortune(6) wrapper program: 
xcowfortune — cow will deliver pearls of wisdom!
- Replace the naffness that is xmessage(1)
- Should work with any window manager
- Supports UTF-8 characters properly

%files -f %{name}.lang
%{_bindir}/*
%{_mandir}/man6/*
%{_datadir}/%{name}

#-----------------------------------------------------------------------

%prep
%setup -q
%patch -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11532 |21cr|xcpustate-2.9-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	An X Window System based CPU state monitor
Name:		xcpustate
Version:	2.9
Release:	14
License:	MIT-style
Group:		Monitoring
URL:		ftp://ftp.cs.toronto.edu/pub/jdd/xcpustate/
Source0:	ftp://ftp.cs.toronto.edu/pub/jdd/xcpustate/%{name}-%{version}.tar.lzma
Source11:	%{name}16.png
Source12:	%{name}32.png
Source13:	%{name}48.png
BuildRequires:	imake
BuildRequires:	elfutils-devel
BuildRequires:	glibc-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
BuildRequires:	tirpc-devel
Patch1:		xcpustate-2.5-alpha.patch
Patch2:		xcpustate-2.5-6.0.patch
Patch3:		xcpustate-2.9-missingheaders.patch

%description
The xcpustate utility is an X Window System based monitor which shows
the amount of time that the CPU is spending in different states.  On a
Linux system, xcpustate displays a bar that indicates the amounts of idle,
user, nice and system time (from left to right) used by the CPU.

Install the xcpustate package if you'd like to use a horizontal bar style
CPU state monitor.

%prep
%setup -q
%patch2 -p1 -b .glibc
%patch3 -p1 -b .headers
%ifarch alpha
%patch1 -p1 -b .alpha
%endif

%build
xmkmf
%make CDEBUGFLAGS="%{optflags}" MANPATH=%{_mandir} SYS_LIBRARIES="-ltirpc"

%install
%makeinstall_std install.man MANPATH=%{_mandir}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=XCpuState
Name[ru]=XCpuState
Comment=CPU load indicator
Comment[ru]=Индикатор загрузки ЦПУ
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=System;Monitor;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files
%defattr(-,root,root,0755)
%doc README
%attr(0755,root,root) %{_bindir}/xcpustate
%attr(0644,root,root) %{_mandir}/man1/xcpustate.1*
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11533 |21cr|xcursor-viewer-0-0.git6b8a95.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6b8a95a6071d860ee6f9b8e82695cd09d9e6ff31
%define commit_short %(echo %{commit} | head -c6)

Summary:	Preview the X11 cursor files
Name:		xcursor-viewer
Version:	0
Release:	0.git%{commit_short}.1
License:	GPLv3
Group:		Graphics
Url:		https://github.com/drizt/xcursor-viewer
Source0:	https://github.com/drizt/xcursor-viewer/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:		xcursor-viewer-6b8a95-hard-ru-translate.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Preview the X11 cursor files.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Xcursor Viewer
Name[ru]=Просмотр курсоров
Comment=Preview the X11 cursor files
Comment[ru]=Просмотр файлов курсоров X11
Exec=%{_bindir}/%{name}
Icon=cs-mouse
Terminal=false
Type=Application
Categories=Graphics;Viewer;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11534 |21cr|xdaliclock-2.44-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A melting digital clock
Name:		xdaliclock
Version:	2.44
Release:	1
Group:		Toys
License:	MIT
URL:		http://www.jwz.org/xdaliclock/
Source0:	http://www.jwz.org/xdaliclock/%{name}-%{version}.tar.gz
Patch0:		%{name}-shape-cycle.patch
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(x11)



%description
The xdaliclock program displays a digital clock, with digits that merge
into the new digits as the time changes.  Xdaliclock can display the time
in 12 or 24 hour modes and can will display the date if you hold your
mouse button down over it.  Xdaliclock has two large fonts built in, but
is capable of animating other fonts.

Install the xdaliclock package if you want a fairly large clock, with
a melting special effect, for your system.

%prep
%autosetup -p1
%config_update

%build
cd X11
CFLAGS="%{optflags}" ./configure --libdir=%{_libdir}	--prefix=%{_prefix} \
				--build=%{_target_platform}
%make

%install
cd X11
install -d -m 0755 %{buildroot}{%{_bindir},%{_mandir}/man1}
make prefix=%{buildroot}/%{_prefix} install

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Xdaliclock
Comment=A melting digital clock
Exec=%{_bindir}/%{name} 
Icon=toys_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Utility;Clock;Amusement;X-MandrivaLinux-MoreApplications-Games-Toys;
EOF

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/applications/mandriva-%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11535 |21cr|xdelta3-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A binary delta generator
Name:		xdelta3
Version:	3.1.0
Release:	1
License:	GPL
Group:		File tools
Url:		http://xdelta.org
Source0:	https://github.com/jmacd/xdelta-gpl/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	zlib-devel

%description
Xdelta3 is the third and latest release of Xdelta, which is a set of
tools and APIs for reading and writing compressed deltas. Deltas
encode the differences between two versions of a document. This
release features a completely new compression engine, several
algorithmic improvements, a fully programmable interface modelled
after zlib, in addition to a command-line utility, use of the RFC3284
(VCDIFF) encoding, a python extension, and now 64-bit support.

%files
%doc COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.xz

#-----------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11536 |21cr|xdesktopwaves-1.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary: Create water effect on your X background
Name: xdesktopwaves
Version: 1.3
Release: 9
Source0: %{name}-%{version}.tar.bz2
License: GPL
Group: Graphical desktop/Other
Url: http://xdesktopwaves.sourceforge.net/
BuildRequires: pkgconfig(x11) 
BuildRequires: pkgconfig(xext)

%description
Xdesktopwaves is a cellular automata setting the background of your X Windows
desktop under water. Windows and mouse are like ships on the sea. Each
movement of these ends up in moving water waves. You can even have rain
and/or storm stirring up the water.

%prep
%setup -q

%build
%make CFLAGS="-I%{_prefix}/X11R6/include %optflags"

%install
mkdir -p %buildroot{%_bindir,%_mandir/man1}

%make install BINDIR=%buildroot%_bindir MAN1DIR=%buildroot%{_mandir}/man1


%files
%doc README
%_bindir/%name
%_mandir/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11537 |21cr|xdg-desktop-portal-wlr-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	xdg-desktop-portal backend for wlroots
Name:		xdg-desktop-portal-wlr
Version:	0.7.1
Release:	1
License:	MIT
Group:		Graphical desktop/Other
Url:		https://github.com/emersion/xdg-desktop-portal-wlr
Source0:	https://github.com/emersion/xdg-desktop-portal-wlr/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	wlroots-portals.conf
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(inih)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libspa-0.2)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(scdoc)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-scanner)
Requires:	dbus
# required for Screenshot portal implementation
Requires:	grim
Requires:	xdg-desktop-portal
# required for Screencast output selection
Recommends:	slurp
Recommends:	wofi
Enhances:	sway
Supplements:	(sway and (flatpak or snapd))

%description
%{summary}.
This project seeks to add support for the screenshot, screencast, and possibly
remote-desktop xdg-desktop-portal interfaces for wlroots based compositors.

%files
%doc README.md contrib/config.sample
%license LICENSE
%{_datadir}/xdg-desktop-portal/portals/wlr.portal
%{_datadir}/xdg-desktop-portal/wlroots-portals.conf
%{_datadir}/dbus-1/services/*.service
%{_libexecdir}/%{name}
%{_mandir}/man5/%{name}.5*
%{_userunitdir}/%{name}.service

%post
%systemd_user_post %{name}.service

%preun
%systemd_user_preun %{name}.service

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
CFLAGS="-fno-strict-aliasing"

%meson -Dsd-bus-provider=libsystemd
%meson_build

%install
%meson_install
install -D -pv -m644 %{SOURCE1} %{buildroot}%{_datadir}/xdg-desktop-portal/wlroots-portals.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11538 |21cr|xdo-0.5.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small X utility to perform elementary actions on windows
Name:		xdo
Version:	0.5.7
Release:	1
License:	BSD
Group:		System/X11
Url:		https://github.com/baskerville/xdo
Source0:	https://github.com/baskerville/xdo/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcb-ewmh)
BuildRequires:	pkgconfig(xcb-icccm)

%description
Apply the given action to the given windows.
If no window IDs and no options are given,
the action applies to the focused window.

%files
%doc LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11539 |21cr|xdrawchem-1.10.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	2D chemical structures drawing tool
Name:		xdrawchem
Version:	1.10.2
Release:	4
License:	GPLv2+
Group:		Sciences/Chemistry
Url:		http://www.woodsidelabs.com/chemistry/xdrawchem.php
#Source0:	https://github.com/bryanherger/xdrawchem/archive/%{version}-1.tar.gz?/%{name}-%{version}-1.tar.gz
Source0:	https://sourceforge.net/projects/xdrawchem/files/%{name}/%{version}/%{name}-%{version}-1.rpmsrc.tar.gz
Source1:	%{name}.desktop
BuildRequires:	desktop-file-utils
BuildRequires:	jpeg-devel
BuildRequires:	libtool
BuildRequires:	openbabel-devel
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)

%description
XDrawChem is a two-dimensional molecule drawing program for Unix
operating systems.  It is similar in functionality to other molecule
drawing programs such as ChemDraw (TM, CambridgeSoft).  It can read
and write MDL Molfiles and CML files to allow sharing between
XDrawChem and other chemistry applications.

%files
%doc README.txt INSTALL.txt TODO.txt COPYRIGHT.txt
%{_bindir}/xdrawchem
%{_datadir}/xdrawchem/*
%{_datadir}/applications/xdrawchem.desktop
%{_datadir}/icons/hicolor/*/apps/xdrawchem.png

#-------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt5

%make

%install
install -D -m 0755 bin/xdrawchem %{buildroot}%{_bindir}/xdrawchem
mkdir -p %{buildroot}%{_datadir}/xdrawchem
chmod 0755 %{buildroot}%{_datadir}/xdrawchem
cp ring/* %{buildroot}%{_datadir}/xdrawchem
mkdir -p %{buildroot}%{_datadir}/xdrawchem/doc
chmod 0755 %{buildroot}%{_datadir}/xdrawchem/doc
cp doc/* %{buildroot}%{_datadir}/xdrawchem/doc

# menu
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -Dpm 644 ring/xdrawchem-icon.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/xdrawchem.png
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{SOURCE1}
rm -f %{buildroot}%{_datadir}/xdrawchem/caslist.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11540 |21cr|xdrawchem-1.11.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	2D chemical structures drawing tool
Name:		xdrawchem
Version:	1.11.0
Release:	2
License:	GPLv3+
Group:		Sciences/Chemistry
Url:		http://www.woodsidelabs.com/chemistry/xdrawchem.php
#Source0:	https://github.com/bryanherger/xdrawchem/archive/%{version}-1.tar.gz?/%{name}-%{version}-1.tar.gz
Source0:	https://salsa.debian.org/georgesk/xdrawchem/-/archive/upstream/%{version}/xdrawchem-upstream-%{version}.tar.gz
Source1:	%{name}.desktop
BuildRequires:	desktop-file-utils
BuildRequires:	jpeg-devel
BuildRequires:	libtool
BuildRequires:	openbabel-devel
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)

%description
XDrawChem is a two-dimensional molecule drawing program for Unix
operating systems.  It is similar in functionality to other molecule
drawing programs such as ChemDraw (TM, CambridgeSoft).  It can read
and write MDL Molfiles and CML files to allow sharing between
XDrawChem and other chemistry applications.

%files
%doc README.txt INSTALL.txt TODO.txt COPYRIGHT.txt
%{_bindir}/xdrawchem
%{_datadir}/xdrawchem/*
%{_datadir}/applications/xdrawchem.desktop
%{_datadir}/icons/hicolor/*/apps/xdrawchem.png

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-upstream-%{version}

%build
%qmake_qt5

%make

%install
install -D -m 0755 bin/xdrawchem %{buildroot}%{_bindir}/xdrawchem
mkdir -p %{buildroot}%{_datadir}/xdrawchem
chmod 0755 %{buildroot}%{_datadir}/xdrawchem
cp ring/* %{buildroot}%{_datadir}/xdrawchem
mkdir -p %{buildroot}%{_datadir}/xdrawchem/doc
chmod 0755 %{buildroot}%{_datadir}/xdrawchem/doc
cp doc/* %{buildroot}%{_datadir}/xdrawchem/doc

# menu
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -Dpm 644 icons/xdrawchem-icon.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/xdrawchem.png
desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	%{SOURCE1}
rm -f %{buildroot}%{_datadir}/xdrawchem/caslist.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11541 |21cr|xdu-3.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Graphically display output of du command 
Name: xdu
Version: 3.0
Release: 14
License: BSD
Group: File tools
Url: http://sd.wareonearth.com/~phil/xdu/
Source: ftp://ftp.arl.mil/pub/%{name}-%{version}.tar.bz2
Patch0: xdu-debug.patch
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xaw7)
BuildRequires: imake
BuildRequires: gccmakedep

%description
Accepts output of du command on standard input and graphically
displays results in a window.

%files
%doc README
%{_bindir}/xdu
%{_datadir}/X11/app-defaults/XDu
%{_mandir}/man1/*
#------------------------------------------------------------------------
%prep
%setup -c 
%patch0 -p0

%build
xmkmf -a
%make CXXOPTIONS="%{optflags}" EXTRA_LDOPTIONS="%{ldflags}"

%install
mkdir -p  %{buildroot}%{_mandir}/man1/
cp %{name}.man %{buildroot}%{_mandir}/man1/%{name}.1
%makeinstall_std CONFDIR=%{_datadir}/X11

rm -fr %buildroot%_prefix/lib/X11

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11542 |21cr|xearth-1.1-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A display of the Earth from space
Name:		xearth
Version:	1.1
Release:	26
License:	MIT
Group:		Toys
BuildRequires:	pkgconfig(x11) libxext-devel libxt-devel imake
Source0:	ftp://cag.lcs.mit.edu/pub/tuna/%{name}-%{version}.tar.bz2
Source1:	xearth_locations.txt.bz2
Source11:	xearth16.png
Source12:	xearth32.png
Source13:	xearth48.png
Url:		http://www.cs.colorado.edu/~tuna/xearth/
Patch0:		xearth-1.0-mdk.patch

%description
Xearth is a graphic that shows a globe of the Earth, including markers 
for major cities and the Mandriva head office.  The Earth is correctly 
shaded for the current position of the sun, and the displayed image is 
updated every five minutes.

%prep
%setup -q
%patch0 -p0

%build
xmkmf
%make CDEBUGFLAGS="%{optflags}"

%install

%makeinstall_std install.man
mkdir -p %{buildroot}%{_datadir}/%{name}
bzcat %{SOURCE1} > %{buildroot}%{_datadir}/%{name}/xearth_locations.txt

#install menu

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Xearth
Comment=Display the Earth on your desktop
Comment[ru]=Отображение планеты Земля на рабочем столе
Exec=%{_bindir}/%{name} -noroot -bigstars 20 -label -labelpos -5-150 -markerfile /usr/share/xearth/xearth_locations.txt
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Amusement;X-MandrivaLinux-MoreApplications-Games-Toys;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%files
%{_bindir}/%{name}
%{_mandir}/man1/xearth.1*
%{_datadir}/%{name}/xearth_locations.txt
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11543 |21cr|xed-3.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname xed -d

Summary:	X-Apps Text Editor (Cross-DE, backward-compatible, GTK3, traditional UI)
Name:		xed
Version:	3.2.2
Release:	1
License:	GPLv2+
Group:		Editors
Url:		https://github.com/linuxmint/xed
Source0:	https://github.com/linuxmint/xed/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:	meson
BuildRequires:	desktop-file-utils
BuildRequires:	diffutils
BuildRequires:	gettext
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	gobject-introspection-devel
BuildRequires:	python3-devel
BuildRequires:	sed
BuildRequires:	%{_bindir}/appstream-util
BuildRequires:	%{_bindir}/desktop-file-validate
BuildRequires:	%{_bindir}/itstool
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(xapp)

# https://bugzilla.redhat.com/show_bug.cgi?id=2053951
Requires:	iso-codes
Requires:	xapps

%description
X-Apps Text Editor (Cross-DE, backward-compatible, GTK3, traditional UI).
Developed by the Linux Mint team.

%files -f %{name}.lang
%license COPYING debian/copyright
%doc AUTHORS ChangeLog README.md debian/changelog
%{_bindir}/%{name}
%{_metainfodir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/services/org.x.editor.*service
%{_datadir}/glib-2.0/schemas/org.x.editor.*gschema.xml
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/gir-1.0
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library of xed
Group:	Development/C
Provides:	xed-devel = %{EVRD}
# gir-1.0 requires typelib files from not standard location
Requires:	%{name} = %{EVRD}

%description -n %{devname}
Development library of xed

%files -n %{devname}
%{_datadir}/%{name}/gir-1.0
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/doc/%{name}*
%{_datadir}/gtk-doc/*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Ddocs=true
%meson_build

%install
%meson_install

sed -i'.orig' -e '/.*<project_group>.*/d' %{buildroot}%{_metainfodir}/%{name}.appdata.xml
! diff -u --color %{buildroot}%{_metainfodir}/%{name}.appdata.xml{,.orig}
unlink %{buildroot}%{_metainfodir}/%{name}.appdata.xml.orig

%find_lang %{name} --with-gnome

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11544 |21cr|xephem-3.7.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname XEphem

Summary:	An X Window System/Motif based interactive astronomy program
Name:		xephem
Version:	3.7.7
Release:	4
License:	Distributable
Group:		Sciences/Astronomy
Url:		http://www.clearskyinstitute.com/xephem/xephem.html
Source0:	%{name}-%{version}.tar.xz
Source1:	%{name}.wmconfig.bz2
Source2:	%{oname}.bz2
Source3:	%{name}-16.png
Source4:	%{name}-32.png
Source5:	%{name}-48.png
Patch0:		xephem-3.7.7-linking.patch
BuildRequires:	groff-for-man
BuildRequires:	jpeg-devel
BuildRequires:	lesstif-devel
%ifarch %{ix86}
BuildRequires:	pkgconfig(libindi)
%endif
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xt)

%description
Xephem is an interactive astronomy program for X Windows systems.

This package is in restricted because the license is too restritive.

%files
%config(noreplace) %{_sysconfdir}/X11/wmconfig/%{name}
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*
%{_datadir}/X11/app-defaults/%{oname}
%{_datadir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
bzcat %{SOURCE1} > %{name}
bzcat %{SOURCE2} > %{oname}
perl -pi -e 's|^XEphem.ShareDir: .*$|XEphem.ShareDir: %{_datadir}/%{name}|' %{oname}
perl -pi -e 's|^CFLAGS= .*$|CFLAGS= \$(RPM_OPT_FLAGS)|' libastro/Makefile
perl -pi -e 's|^CFLAGS= .*$|CFLAGS= -I../libastro \$(RPM_OPT_FLAGS)|' libip/Makefile
perl -pi -e 's|^MOTIFL =.*$|MOTIFL = %{_libdir}|' GUI/xephem/Makefile
perl -pi -e 's|^XEphem.Version:.*|XEphem.Version = %{version}|' XEphem

%build
(cd libastro && %make)
(cd libip && %make)
(cd libjpegd && %make)

# Replacement of indilib
%ifnarch %{ix86}
(cd liblilxml && %make)
%endif
(cd GUI/xephem && %make && %make -C fifos)

%install
# binary
install -d %{buildroot}%{_bindir}
install -m 755 GUI/xephem/%{name} %{buildroot}%{_bindir}
# man page
install -d %{buildroot}%{_mandir}/man1
install -m 644 GUI/xephem/%{name}.man %{buildroot}%{_mandir}/man1
# data
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a GUI/xephem/auxil %{buildroot}%{_datadir}/%{name}
cp -a GUI/xephem/catalogs %{buildroot}%{_datadir}/%{name}
cp -a GUI/xephem/fifos %{buildroot}%{_datadir}/%{name}
# X11 prefs
install -d %{buildroot}%{_datadir}/X11/app-defaults
install -m 644 %{oname} %{buildroot}%{_datadir}/X11/app-defaults
# wmconfig
install -d %{buildroot}%{_sysconfdir}/X11/wmconfig
install -m 644 %{name} %{buildroot}%{_sysconfdir}/X11/wmconfig
# icons
install -D -m 644 %{SOURCE3} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 644 %{SOURCE4} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE5} %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11545 |21cr|xfburn-0.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f 1,2)

Summary:	A simple CD burning tool for the Xfce Desktop Environment
Name:		xfburn
Version:	0.6.2
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://www.xfce.org/projects/xfburn/
Source0:	http://archive.xfce.org/src/apps/xfburn/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	xfce4-dev-tools
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(libburn-1)
BuildRequires:	pkgconfig(libisofs-1)
BuildRequires:	pkgconfig(libxfce4ui-2)

%description
Xfburn is a simple CD/DVD burning tool based on libburnia libraries.
It can blank CD-RWs, burn and create iso images, as well as burn
personal compositions of data to either CD or DVD.

%files  -f %{name}.lang
%doc AUTHORS ChangeLog  TODO
%dir %{_datadir}/%{name}
%{_bindir}/%{name}
%{_metainfodir}/*.xml
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}/*.ui
%{_datadir}/Thunar/sendto/thunar-sendto-xfburn.desktop
%{_iconsdir}/hicolor/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-gudev \
	--enable-dbus \
	--enable-gstreamer

%make

%install
%makeinstall_std

desktop-file-install \
    --add-only-show-in="XFCE" \
    --remove-category="X-XFCE" \
    --remove-category="Archiving" \
    --remove-category="Utility" \
    --add-category="AudioVideo" \
    --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* 

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11546 |21cr|xfce4-appfinder-4.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define _disable_rebuild_configure 1

Summary:	Find every application in the system
Name:		xfce4-appfinder
Version:	4.16.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/xfce4-appfinder/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(garcon-1)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(libxfce4util-1.0)

%description
Xfce appfinder is an useful software that permits you to find
every application in the system supporting Desktop entry format.

%files -f %{name}.lang
%doc README* ChangeLog AUTHORS
%{_bindir}/*
%{_datadir}/metainfo/org.xfce.xfce4-appfinder.appdata.xml
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/apps/org.xfce.appfinder*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

desktop-file-install \
  --remove-category="Application" \
  --remove-category="X-FACE" \
  --add-only-show-in="XFCE" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name} %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11547 |21cr|xfce4-artwork-0.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Additional artwork for the Xfce Desktop Environment
Name:		xfce4-artwork
Version:	0.2
Release:	15
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/artwork/xfce4-artwork
Source0:	%{name}-%{version}.tar.bz2
BuildArch:	noarch
Obsoletes:	xfce-artwork <= 0.2-3

%description
Additional artwork for the Xfce Desktop Environment.
 
%prep
%setup -q

%build
%configure

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README ChangeLog AUTHORS
%{_datadir}/xfce4/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11548 |21cr|xfce4-battery-plugin-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	Battery monitor plugin for the Xfce panel
Name:		xfce4-battery-plugin
Version:	1.1.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/%{name}
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-battery-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	perl(XML::Parser)

%description
Battery monitor panel plugin for the Xfce Desktop Environment.

%files -f %{name}.lang
%doc README* ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/*.*g

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_iconsdir}/hicolor/icon-theme.cache
chmod 0755 %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11549 |21cr|xfce4-calculator-plugin-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version} | cut -d. -f1,2)
%define _disable_rebuild_configure 1

Summary:	Calculator pluging for the Xfce4 panel
Name:		xfce4-calculator-plugin
Version:	0.7.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-calculator-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-calculator-plugin/%{url_ver}/xfce4-calculator-plugin-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
Requires:	xfce4-panel

%description
xfce4-calculator-plugin is a calculator plugin for the Xfce4 panel.

%files -f %{name}.lang
%doc AUTHORS README* TODO
%{_libdir}/xfce4/panel/plugins/libcalculator.so
%{_iconsdir}/hicolor/*/apps/xfce4-calculator-plugin.png
%{_datadir}/xfce4/panel/plugins/calculator.desktop

#-----------------------------------------------------------------

%prep
%setup -q

# path to headers xfce4-panel
sed -i -e "s|xfce-panel-plugin.h|libxfce4panel.h|" panel-plugin/calculator.c

%build
%configure

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11550 |21cr|xfce4-clipman-plugin-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 1852f71979e96064993209b53509ddac8c6e5171
%define commit_short %(echo %{commit} | head -c 5)

%define url_ver %(echo %{version} | cut -c 1-3)

%define _disable_rebuild_configure 1

Summary:	Clipboard history plugin for the Xfce panel
Name:		xfce4-clipman-plugin
Version:	1.6.2
Release:	1
License:	BSD
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-clipman-plugin
# http://archive.xfce.org/src/panel-plugins/xfce4-clipman-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
Source0:	https://gitlab.xfce.org/panel-plugins/xfce4-clipman-plugin/-/archive/%{commit}/xfce4-clipman-plugin-%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# https://gitlab.xfce.org/panel-plugins/xfce4-clipman-plugin/-/issues/40
Patch1:		0001-Remove-useless-desktop-file.patch
BuildRequires:	intltool
BuildRequires:	xfce4-dev-tools
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(libqrencode)
Requires:	xfce4-panel

%description
Clipboard history panel plugin for the Xfce Desktop Environment.

%files -f %{name}.lang
%license COPYING
%doc README.md ChangeLog AUTHORS
%{_sysconfdir}/xdg/autostart/xfce4-clipman-plugin-autostart.desktop
%{_sysconfdir}/xdg/xfce4/panel/xfce4-clipman-actions.xml
%{_bindir}/xfce4-clipman
%{_bindir}/xfce4-clipman-history
%{_bindir}/xfce4-clipman-settings
%{_bindir}/xfce4-popup-clipman
%{_bindir}/xfce4-popup-clipman-actions
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/metainfo/xfce4-clipman.appdata.xml
%{_datadir}/applications/xfce4-clipman-settings.desktop
%{_datadir}/xfce4/panel/plugins/xfce4-clipman-plugin.desktop
%{_iconsdir}/hicolor/*/apps/*.*g

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
./autogen.sh
%configure --enable-maintainer-mode
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11551 |21cr|xfce4-cpufreq-plugin-1.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	Cpu-freq plugin for Xfce desktop
Name:		xfce4-cpufreq-plugin
Version:	1.2.5
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-cpufreq-plugin
Source0:	https://archive.xfce.org/src/panel-plugins/xfce4-cpufreq-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:		1.2.5-correct-Russian-language.patch
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	perl(XML::Parser)
Requires:	xfce4-panel >= 4.8.0
Provides:	xfce4-cpu-freq-plugin = %{EVRD}

%description
CPU freq plugin for the Xfce Desktop Environment. It provides a
simple system for managing the frequency of the CPU.

%files -f %{name}.lang
%doc README* ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# path to headers xfce4-panel
sed -i -e "s|xfce-panel-plugin.h|libxfce4panel.h|" panel-plugin/xfce4-cpufreq-plugin.h

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11552 |21cr|xfce4-cpugraph-plugin-1.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)

Summary:	CPU Graph plugin for the Xfce panel
Name:		xfce4-cpugraph-plugin
Version:	1.2.3
Release:	1
License:	BSD
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-cpugraph-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-cpugraph-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:		Finalize-the-Russian-translation.patch
Requires:	xfce4-panel >= 4.8.0
BuildRequires:	xfce4-panel-devel >= 4.8.0
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxfce4ui-2)

%description
xfce4-cpugraph-plugin is a panel plugin for Xfce panel.
It shows a graph of your latest system load.

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/*.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11553 |21cr|xfce4-datetime-plugin-0.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define debug_package %{nil}
%define _disable_rebuild_configure 1

Summary:	A date and time panel plugin for the Xfce panel
Name:		xfce4-datetime-plugin
Version:	0.8.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-datetime-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-datetime-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
Requires:	xfce4-panel

%description
A date and time panel plugin for the Xfce panel.

%files -f %{name}.lang
%doc ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/libdatetime.so
%{_datadir}/xfce4/panel/plugins/datetime.desktop

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11554 |21cr|xfce4-dev-tools-4.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-4)

Summary:	Xfce developer tools
Name:		xfce4-dev-tools
Version:	4.16.0
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:  pkgconfig(glib-2.0)
Requires:	intltool
Provides:	xfce-dev-tools = %{EVRD}

%description
This package contains common tools required by Xfce developers and people
that want to build Xfce from SVN. In addition, this package contains the
Xfce developer's handbook.

%files
%doc AUTHORS ChangeLog HACKING NEWS README*
%{_bindir}/*
%{_datadir}/aclocal/xdt-*.m4
%{_mandir}/man?/xdt-*.?.xz

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11555 |21cr|xfce4-dict-0.8.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d -f 1,2)
%define _disable_rebuild_configure 1
%define apps_name org.xfce.Dictionary

Summary:	A dictionary support for Xfce
Name:		xfce4-dict
Version:	0.8.4
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/applications/xfce4-dict/
Source0:	http://archive.xfce.org/src/apps/xfce4-dict/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(gtk+-3.0)
Recommends:	xfce4-panel
Provides:	xfce4-dict-plugin = %{EVRD}

%description
This Xfce program allows you to search different kinds of dictionary
services for words or phrases and shows you the result.Currently you
can query a Dict server(RFC 2229), any online dictionary service by
opening a web browser or search for words using the aspell/ispell
program.

%files -f %{name}.lang
%doc ChangeLog AUTHORS
%{_bindir}/%{name}
%{_libdir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/%{apps_name}.{png,svg}
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_datadir}/applications/*.desktop
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11556 |21cr|xfce4-diskperf-plugin-2.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	Disk performance panel plugin for Xfce
Name:		xfce4-diskperf-plugin
Version:	2.6.3
Release:	1
License:	BSD
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-diskperf-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-diskperf-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	xfce4-panel

%description
Disk performance panel plugin for the Xfce Desktop Environment.

%files -f %{name}.lang
%doc README ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/libdiskperf.so
%{_datadir}/xfce4/panel/plugins/diskperf.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

# path to headers xfce4-panel
#sed -i -e "s|xfce-panel-plugin.h|libxfce4panel.h|" panel-plugin/main.c

%build
%configure
%make

%install
%makeinstall_std

# strip library
chmod 0755 %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11557 |21cr|xfce4-eyes-plugin-4.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	An eyes plugin for the Xfce panel
Name:		xfce4-eyes-plugin
Version:	4.6.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-eyes-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-eyes-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	xfce4-panel

%description
An eyes plugin for the Xfce panel.

%files -f %{name}.lang
%doc ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/libeyes.so
%{_iconsdir}/hicolor/*/apps/xfce4-eyes.png
%{_datadir}/xfce4/eyes/themes/*/*
%{_datadir}/xfce4/panel/plugins/eyes.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11558 |21cr|xfce4-fsguard-plugin-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1
%global optflags %optflags -fno-rtti -fno-exceptions


Summary:	Disk space plugin for the Xfce panel
Name:		xfce4-fsguard-plugin
Version:	1.1.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-fsguard-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-fsguard-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4util-1.0)
Requires:	xfce4-panel

%description
Disk space panel plugin for the Xfce Desktop Environment.

%prep
%setup -q

%build
export LDFLAGS="-lc"

%configure
%make

%install
%makeinstall_std

# strip library 
chmod 755 %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so
rm -rf %{buildroot}%{_iconsdir}/hicolor/icon-theme.cache

%find_lang %{name}

%files -f %{name}.lang
%doc README* NEWS AUTHORS ChangeLog
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11559 |21cr|xfce4-genmon-plugin-4.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define apps_name org.xfce.genmon

Summary:	Generic Monitor XFce panel plugin (GenMon)
Name:		xfce4-genmon-plugin
Version:	4.1.1
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-genmon-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-genmon-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
Requires:	xfce4-panel >= 4.9.0
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxfce4ui-2)

%description
This plugin cyclically spawns the indicated script/program, captures its 
output (stdout) and displays the resulting string into the panel.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} %{name}.lang

%files -f %{name}.lang
%doc AUTHORS ChangeLog README 
%{_libdir}/xfce4/panel/plugins/
%{_datadir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/%{apps_name}.{png,svg}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11560 |21cr|xfce4-icon-theme-4.4.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         _disable_rebuild_configure 1

Summary:	Icon theme Rodent for the Xfce Desktop
Name:		xfce4-icon-theme
Version:	4.4.3
Release:	8
License:	BSD
Group:		Graphical desktop/Xfce
URL:		http://www.xfce.org
Source0: 	http://www.xfce.org/archive/xfce-%{version}/src/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	perl(XML::Parser)
Requires:	xfce4-panel >= %{version}
BuildArch:	noarch

%description
Icon theme Rodent for the Xfce Desktop Environment.

Included:
- about 500 icons in SVG format
- all the corresponding copies in PNG format
- almost all icons for a unified Gnome interface (excepted afaict the settings 
  manager, for the time being)
 
%prep 
%setup -q

%build

#(tpg) don't use macro for configure because it fails
./configure --prefix=%{_prefix} --libdir=%{_libdir}

%make

%install
%makeinstall_std

touch %{buildroot}%{_iconsdir}/Rodent/icon-theme.cache

rm -f %{buildroot}%{_libdir}/pkgconfig/xfce4-icon-theme-1.0.pc

%files
%doc README ChangeLog AUTHORS
%dir %{_iconsdir}/Rodent/
%{_iconsdir}/Rodent/48x48
%{_iconsdir}/Rodent/scalable
%{_iconsdir}/Rodent/iconrc*
%{_iconsdir}/Rodent/index.theme
%{_datadir}/xfce4/mime/*
%ghost %{_iconsdir}/Rodent/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11561 |21cr|xfce4-indicator-plugin-2.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	Indicator plugin for the Xfce panel
Name:		xfce4-indicator-plugin
Version:	2.4.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-netload-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
Requires:	xfce4-panel
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(indicator3-0.4)
BuildRequires:	pkgconfig(exo-2)

%description
An indicator panel plugin for the Xfce Desktop Environment.

%prep
%setup -q

%build
%configure \
   --disable-static
%make

%install
%makeinstall_std

%find_lang %{name} %{name}.lang

%files -f %{name}.lang
%doc README* ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/*.*g


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11562 |21cr|xfce4-mailwatch-plugin-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}| cut -d. -f1,2)

Summary:	Mail Watcher plugin for the Xfce panel
Name:		xfce4-mailwatch-plugin
Version:	1.3.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-mailwatch-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
Patch2:		upstream-Russian.patch
# Patch originally from Fedora
Patch3:		xfce4-mailwatch-plugin-1.1.0-mbox-refresh-interval.patch
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libgcrypt)
# required for patch0
BuildRequires:	xfce4-dev-tools >= 4.10.0
Requires:	xfce4-panel >= 4.10.0

%description
Mailwatch is a mail watcher plugin for the Xfce 4 panel.

%prep
%autosetup -p1

%build
xdt-autogen
%define Werror_cflags %nil

%configure \
	--disable-static \
	--enable-ssl
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog README*
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11563 |21cr|xfce4-mixer-4.15.0.76572502-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 4cce94d4e395ca982c2792e83681fabd92201a7b
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global git_date 29302020
%define _disable_rebuild_configure 1

Summary:	Volume control for the Xfce
Name:		xfce4-mixer
Version:	4.15.0.76572502
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	https://gitlab.xfce.org/apps/xfce4-mixer/-/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
Patch0:		xfce4-mixer-alsa.patch
BuildRequires:	xfce4-dev-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:  pkgconfig(gstreamer-plugins-base-0.10)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(keybinder-3.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(unique-1.0) >= 1.1
Requires:	xfce4-panel
Recommends:	task-pulseaudio
Recommends:	gstreamer1.0-pulse

%description
The Mixer is a volume control application for the Xfce Desktop Environment.
It provides both a volume control plugin for the Xfce Panel and a standalone 
mixer application.

It supports all audio systems supported by the GStreamer project.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_bindir}/*
%{_datadir}/applications/xfce*
%{_datadir}/xfce4/panel/plugins/
%{_libdir}/xfce4/panel/plugins/
%{_datadir}/xfce4/mixer/icons/hicolor/*/status/audio-input-microphone-muted*
%{_datadir}/pixmaps/xfce4-mixer/*.png
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{commit}

%build
./autogen.sh
%configure \
 --disable-debug

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11564 |21cr|xfce4-mount-plugin-1.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	Mount plugin for the Xfce panel
Name:		xfce4-mount-plugin
Version:	1.1.5
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-mount-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-mount-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
Requires:	xfce4-panel

%description
A mount panel plugin for the Xfce Desktop Environment.

%files
%doc README ChangeLog AUTHORS
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_iconsdir}/hicolor/*/apps/*
%{_libdir}/xfce4/panel/plugins/*
%lang(all) %{_datadir}/locale/*/LC_MESSAGES/xfce4-mount-plugin.mo

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11565 |21cr|xfce4-mpc-plugin-0.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	A mpc plugin for the Xfce panel
Name:		xfce4-mpc-plugin
Version:	0.5.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-mpc-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-mpc-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libmpd)

%description
This is a simple Xfce panel client plugin for Music Player Daemon.

Features :
* send Play/Stop/Next/Previous command to MPD
* uses gtk-theme media icons (at least nuvola, tango and rodent themes provides
  these icons)
* decrease/increase volume using the mouse wheel
* show the current volume, status and title as a tooltip when passing the mouse
  over the plugin
* show a simple playlist window upon middle-click, permitting to select a track
  to play
* configurable MPD host/port/password
* toggles repeat/random features in the right-click menu
* launch configurable client (gmpc, xterm -e ncmpc,..) through right-click menu

%files -f %{name}.lang
%doc ChangeLog AUTHORS README
%{_libdir}/xfce4/panel/plugins/libmpc.so
%{_datadir}/xfce4/panel/plugins/xfce4-mpc-plugin.desktop

#-------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

chmod +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so

%find_lang %{name} %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11566 |21cr|xfce4-netload-plugin-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	Netload plugin for the Xfce panel
Name:		xfce4-netload-plugin
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-netload-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-netload-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:		Russian-translation-completed.patch
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
Requires:	xfce4-panel

%description
A netload panel plugin for the Xfce Desktop Environment.

%files -f %{name}.lang
%doc README ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/*.*g

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

# strip library
chmod 0755 %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11567 |21cr|xfce4-notes-plugin-1.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)

Summary:	Notes plugin for the Xfce panel
Name:		xfce4-notes-plugin
Version:	1.9.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-notes-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-notes-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	xfce4-dev-tools
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(unique-1.0)
Requires:	xfce4-panel

%description
xfce4-notes-plugin is a notes panel plugin for the Xfce Desktop Environment.
It provides a simple system for managing sticky notes on your desktop.

%files -f %{name}.lang
%doc README* ChangeLog AUTHORS
%{_sysconfdir}/xdg/autostart/xfce4-notes-autostart.desktop
%{_bindir}/xfce4-notes
%{_bindir}/xfce4-notes-settings
%{_bindir}/xfce4-popup-notes
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_datadir}/applications/xfce4-notes.desktop
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_datadir}/%{name}/gtk-3.0
%{_datadir}/%{name}/pixmaps

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11568 |21cr|xfce4-notifyd-0.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f 1,2)
%define _disable_rebuild_configure 1

Summary:	Notification daemon for Xfce desktop environment
Name:		xfce4-notifyd
Version:	0.6.4
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/applications/xfce4-notifyd
Source0:	http://archive.xfce.org/src/apps/xfce4-notifyd/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libsexy)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
Requires:	xfconf
Provides:	virtual-notification-daemon

%description
Xfce4-notifyd is a simple, visually-appealing notification daemon for
Xfce that implements the Freedesktop.org Desktop Notifications
Specification.

Features:
* Themable using the GTK+ theming mechanism
* Visually appealing: rounded corners, shaped windows
* Supports transparency and fade effects

%files -f %{name}.lang
%doc ChangeLog AUTHORS README TODO
%{_bindir}/xfce4-notifyd-config
%{_libdir}/xfce4/notifyd
%{_libdir}/xfce4/panel/plugins/
%{_datadir}/applications/*.desktop
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_datadir}/dbus-1/services/org.xfce.xfce4-notifyd.Notifications.service
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/*/apps/*.svg
%{_iconsdir}/hicolor/*/status/*.svg
%{_datadir}/themes/Default/xfce-notify-4.0
%{_datadir}/themes/Smoke
%{_datadir}/themes/ZOMG-PONIES!
%{_datadir}/themes/Bright/xfce-notify-4.0/gtk.css
%{_datadir}/themes/Retro/xfce-notify-4.0/gtk.css
%{_mandir}/man1/xfce4-notifyd-config*
%{_prefix}/lib/systemd/user/xfce4-notifyd.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
        --enable-dbus-start-daemon
        
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11569 |21cr|xfce4-panel-4.16.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     url_ver %(echo %{version} | cut -f 1,2 -d\.)
%define     major   4
%define     gtk3api 2.0
%define     gtk3libname %mklibname xfce4panel %{gtk3api} %{major}
%define     gtk3devname	%mklibname xfce4panel %{gtk3api} -d
%define     gmajor	2.0
%define     girname	%mklibname xfce4panel-gir %{gmajor}

%define     _disable_rebuild_configure 1

Summary:	A Xfce panel
Name:		xfce4-panel
Version:	4.16.5
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/xfce4-panel/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:		Fix-the-translation-for-Russian.patch
BuildRequires:	intltool
BuildRequires:  gtk-doc
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(garcon-1)
BuildRequires:	xfce4-dev-tools
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(garcon-gtk3-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:  pkgconfig(dbusmenu-gtk3-0.4)
Requires:	desktop-common-data
Requires:	xfconf

%description
The Xfce 4 Panel supports multiple panels, with many options
for their position, appearance, transparency and behavior.
There are many items available by default to full fit a panel,
like application launchers with detachable menus, a graphical pager,
a tasklist, a clock, a system tray, a show/hide desktop switcher,
and even more. It offers an easy way to add items using a dialog,
and to move items accross different panels.

%files -f %{name}.lang
%doc AUTHORS NEWS ChangeLog
%config(noreplace) %{_sysconfdir}/xdg/xfce4/panel/default.xml
%dir %{_libdir}/xfce4/panel
%dir %{_libdir}/xfce4/panel/plugins
%dir %{_datadir}/xfce4/panel
%dir %{_datadir}/xfce4/panel/plugins
%{_bindir}/*
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*org.xfce.panel*
%{_libdir}/xfce4/panel/migrate
%{_libdir}/xfce4/panel/wrapper-*

#----------------------------------------------------------------------------

%package -n %{gtk3libname}
Summary:	Panel library (GTK3 version) for the Xfce desktop environment
Group:		Graphical desktop/Xfce
Obsoletes:      %{_lib}xfce4panel1.0_4 < 4.14.0

%description -n %{gtk3libname}
Panel library (GTK3 version) for the Xfce desktop environment.

%files -n %{gtk3libname}
%{_libdir}/libxfce4panel-%{gtk3api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{gtk3devname}
Summary:	Libraries and header files for the %{name} library (GTK3 version)
Group:		Development/Other
Requires:       %{girname} = %{EVRD}
Requires:	%{gtk3libname} = %{EVRD}
Obsoletes:	%{_lib}xfce4panel-devel < 4.14.0
Provides:   %{name}-devel = %{EVRD}

%description -n %{gtk3devname}
Libraries and header files for the %{name} (GTK3 version) library.

%files -n %{gtk3devname}
%doc %{_datadir}/gtk-doc/html/libxfce4panel-%{gtk3api}/
%{_libdir}/libxfce4panel-%{gtk3api}.so
%{_libdir}/pkgconfig/libxfce4panel-%{gtk3api}.pc
%{_includedir}/xfce4/libxfce4panel-%{gtk3api}/
%{_datadir}/gir-1.0/Libxfce4panel-%{gmajor}.gir
%{_datadir}/vala/vapi/libxfce4panel-2.0.deps
%{_datadir}/vala/vapi/libxfce4panel-2.0.vapi

#----------------------------------------------------------------------------
%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{gtk3libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Libxfce4panel-%{gmajor}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--disable-static \
	--enable-introspection=yes \
	--enable-vala=yes \
        --enable-gio-unix=yes \
        --enable-gtk-doc

%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_datadir}/doc/xfce4-panel/README

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11570 |21cr|xfce4-panel-profiles-1.0.13-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1
%define apps_name org.xfce.PanelProfiles
# Try to import the new Libxfce4ui gir name (since 4.15.7)
# if it does not exists, try the old libxfce4ui
# Comment xfce4-panel-profiles/xfce4-panel-profiles.py
%global __requires_exclude ^typelib\\((libxfce4ui)

%define url_ver %(echo %{version} | cut -d -f 1,2)

Name:		xfce4-panel-profiles
Summary:	A simple application to manage Xfce panel layouts
Version:	1.0.13
Release:	3
License:	GPLv3
Group:		Graphical desktop/Xfce
Url:		https://git.xfce.org/apps/xfce4-panel-profiles/about/
Source0:	https://archive.xfce.org/src/apps/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2?/%{name}-%{version}.tar.bz2
Source1:	rosa-source.tar.gz
Patch0:		rework-for-rosa-1.0.10.patch
Patch1:		Complete-translation-RU.patch
BuildRequires:	intltool
BuildRequires:	gettext
BuildRequires:	python3-gi
BuildRequires:	pkgconfig(python3)
BuildRequires:	desktop-file-utils
Requires:	python3-gobject3
Requires:	xfce4-panel
Requires:	typelib(Libxfce4ui)
Obsoletes:	xfpanel-switch <= 1.0.4
Provides:	xfpanel-switch <= 1.0.4
BuildArch:	noarch

%description
A simple application to manage Xfce panel layouts
(xfce4-panel-profiles, formerly known as xfpanel-switch)

With the modular Xfce Panel, a multitude of panel layouts can be created. 
This tool makes it possible to backup, restore, import, and export these 
panel layouts.

%files -f %{name}.lang
%{_defaultdocdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{apps_name}.desktop
%{_iconsdir}/hicolor/*/apps/%{apps_name}.{png,svg}
%{_datadir}/metainfo/org.xfce.PanelProfiles.appdata.xml
%{_mandir}/man?/*.?.xz

%prep
%setup -q
%patch0 -p1
%patch1 -p1

pushd data/layouts
tar -xvzf %{S:1}
popd

rm -rf data/layouts/xubuntu*
rm -rf data/layouts/gnome2
rm -rf data/layouts/redmond
rm -rf data/layouts/xfce-4.12

%build
./configure \
	--prefix=%{_prefix} \
	--python=python3
%make

%install
%makeinstall_std

#fix perms
chmod 0644 %{buildroot}%{_datadir}/%{name}/layouts/*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11571 |21cr|xfce4-places-plugin-1.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	A places plugin for the Xfce panel
Name:		xfce4-places-plugin
Version:	1.8.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-places-plugin
Source0:	https://archive.xfce.org/src/panel-plugins/xfce4-places-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	perl(XML::Parser)
Requires:	xfce4-panel

%description
A places plugin for the Xfce panel.

%files -f %{name}.lang
%doc ChangeLog AUTHORS NEWS
%{_bindir}/*
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/places.desktop

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std 

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11572 |21cr|xfce4-power-manager-4.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	A power manager for Xfce
Name:		xfce4-power-manager
Version:	4.16.0
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/applications/%{name}
Source0:	https://archive.xfce.org/src/xfce/xfce4-power-manager/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xtst)
Requires:	pm-utils
Requires:	upower

%description
A power manager dedicated for Xfce desktop environment.

%files -f %{name}.lang
%doc AUTHORS NEWS TODO
%{_sysconfdir}/xdg/autostart/*.desktop
%{_sbindir}/xfpm-power-backlight-helper
%{_sbindir}/xfce4-pm-helper
%{_bindir}/%{name}*
%{_libdir}/xfce4/panel/plugins/libxfce4powermanager.so
%{_datadir}/polkit-1/actions/org.xfce.power.policy
%{_datadir}/metainfo/xfce4-power-manager.appdata.xml
%{_datadir}/xfce4/panel/plugins/power-manager-plugin.desktop
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/scalable/*/*.svg
%{_iconsdir}/hicolor/*/*/*.png
%{_mandir}/man1/*

#-------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-panel-plugins \
	--enable-network-manager \
	--enable-polkit \
	--enable-xfce4panel=yes

%make

%install
%makeinstall_std

%find_lang %{name} %{name}.lang


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11573 |21cr|xfce4-pulseaudio-plugin-0.4.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define _disable_rebuild_configure 1

Summary:	A panel plugin for controlling PulseAudio mixer
Name:		xfce4-pulseaudio-plugin
Version:	0.4.7
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-pulseaudio-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	xfce4-dev-tools
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(keybinder-3.0)
BuildRequires:	pkgconfig(x11)
Requires:	xfce4-panel
Requires:	pavucontrol
# Replaces xfce4-mixer
Provides:	xfce4-mixer = %{EVRD}
Obsoletes:	xfce4-mixer < 4.11.0

%description
Xfce4-pulseaudio-plugin is a panel plugin for controlling an audio
output volume of the PulseAudio mixer.

%files -f %{name}.lang
%doc NEWS
%{_libdir}/xfce4/panel/plugins/libpulseaudio-plugin.so
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_iconsdir}/hicolor/*/status/*.svg
%{_datadir}/xfce4/panel/plugins/pulseaudio.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

# path to headers xfce4-panel
sed -i -e "s|xfce-panel-plugin.h|libxfce4panel.h|g" \
 panel-plugin/{pulseaudio-dialog.c,pulseaudio-plugin.c,pulseaudio-config.c}

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11574 |21cr|xfce4-screensaver-4.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define apps_name org.xfce.ScreenSaver

Summary:	Screen saver and locker for Xfce4
Name:		xfce4-screensaver
Version:	4.16.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://pub.mate-desktop.org
Source0:	https://archive.xfce.org/src/apps/xfce4-screensaver/%{url_ver}/xfce4-screensaver-%{version}.tar.bz2
Patch0:		hide-shortcut-screensaver-0.1.3.patch
Patch1:		show-in-lxqt-0.1.3.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(garcon-gtk3-1)
BuildRequires:	pkgconfig(xxf86misc)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pam-devel

%description
xfce4-screensaver is a screen saver and locker that aims to have
simple, sane, secure defaults and be well integrated with the desktop.

xfce4-screensaver is a port of MATE Screensaver, itself a port of GNOME
Screensaver. It has been tightly integrated with the Xfce desktop, utilizing
Xfce libraries and the Xfconf configuration backend.

%files -f %{name}.lang
%{_bindir}/xfce4-screensaver
%{_bindir}/xfce4-screensaver-command
%{_bindir}/xfce4-screensaver-preferences
%{_bindir}/xfce4-screensaver-configure
%{_libexecdir}/xfce4-screensaver-*
%{_libexecdir}/xfce4-screensaver/*
%{_sysconfdir}/pam.d/xfce4-screensaver
%{_sysconfdir}/xdg/autostart/xfce4-screensaver.desktop
%{_sysconfdir}/xdg/menus/xfce4-screensavers.menu
%{_datadir}/applications/xfce4-screensaver-preferences.desktop
%{_datadir}/desktop-directories/xfce4-screensaver.directory
%dir %{_libexecdir}/xfce4-screensaver/
%{_datadir}/applications/screensavers/*
%{_datadir}/pixmaps/*.svg
%{_iconsdir}/hicolor/*/apps/%{apps_name}.{png,svg}
%{_datadir}/dbus-1/services/org.xfce.ScreenSaver.service
%{_mandir}/man1/*

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--disable-static \
	--with-systemd \
	--enable-locking
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11575 |21cr|xfce4-screenshooter-1.9.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f 1,2)
%define _disable_rebuild_configure 1

Summary:	Screen capture tool for Xfce
Name:		xfce4-screenshooter
Version:	1.9.11
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/applications/xfce4-screenshooter
Source0:	http://archive.xfce.org/src/apps/xfce4-screenshooter/%{url_ver}/%{name}-%{version}.tar.bz2?/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)
Requires:	xfce4-panel

%description
This application allows you to capture the entire screen,
the active window or a selected region. You can set the delay
that elapses before the screenshot is taken and the action that
will be done with the screenshot: save it to a PNG file, copy
it to the clipboard, or open it using another application.

%files -f %{name}.lang
%doc AUTHORS README*
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*.*g
%{_mandir}/man1/*
%{_metainfodir}/*.appdata.xml

#---------------------------------------------------------------------------

%package	plugin
Summary:	Screenshot utility for the Xfce panel
Group:		Graphical desktop/Xfce
Requires:	%{name} = %{EVRD}
Requires:	xfce4-panel

%description    plugin
A Xfce panel plugin to take screenshots of your desktop
or of the active window.

%files plugin
%doc AUTHORS README*
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/xfce4/panel/plugins/*.desktop

#---------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11576 |21cr|xfce4-sensors-plugin-1.3.95-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _disable_ld_no_undefined 0

Summary:	Sensor plugin for the Xfce panel
Name:		xfce4-sensors-plugin
Version:	1.3.95
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-sensors-plugin
Source0:	https://archive.xfce.org/src/panel-plugins/xfce4-sensors-plugin/1.3/%{name}-%{version}.tar.bz2
BuildRequires:	hddtemp
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	lm_sensors-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
Requires:	hddtemp
Requires:	lm_sensors
Requires:	xfce4-panel

%description
A Xfce panel plugin which reads your hardware sensor 
values and displays them in your panel.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README TODO
%{_mandir}/man1/xfce4-sensors.1.xz
%{_bindir}/xfce4-sensors
%{_libdir}/xfce4/modules/*
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/*.*g
%{_datadir}/applications/xfce4-sensors.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%configure \
	--disable-static \
	--enable-hddtemp=yes \
	--enable-libsensors=yes \
	--enable-procacpi \
	--enable-sysfsacpi \
	--enable-netcat=yes \
	--enable-notification

%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_datadir}/locale/pt_BR_/LC_MESSAGES/xfce4-sensors-plugin.mo
rm -rf %{buildroot}%{_libdir}/pkgconfig/libxfce4sensors-1.0.pc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11577 |21cr|xfce4-session-4.16.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

%define major 0
%define api 4.6
%define libname %mklibname xfsm %{api} %{major}
%define devname %mklibname xfsm -d
%define _disable_rebuild_configure 1

Summary:	Xfce Session Manager
Name:		xfce4-session
Version:	4.16.0
Release:	6
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://docs.xfce.org/xfce/xfce4-session/start
Source0:	http://archive.xfce.org/src/xfce/xfce4-session/%{url_ver}/%{name}-%{version}.tar.bz2
Source2:	xfce4.pam
Patch0:		enable-logout-sound-4.16.0.patch
# https://gitlab.xfce.org/xfce/xfce4-session/-/issues/111
Patch1:		0001-Avoid-duplicating-directories-in-the-tail-of-XDG_-en.patch
BuildRequires:	iceauth
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	xfce4-panel-devel
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildConflicts:	hal-devel
Requires:	polkit-gnome
Obsoletes:	xfce4-session-engines < 4.16.0

%description
The session manager allows the user to save sessions and
restore them after login. It is capable of saving several
different sessions. It comes with three splash screen engines.
And at last it helps you to log out, reboot, and shutdown the system.

%files -f %{name}.lang
%doc AUTHORS BUGS ChangeLog NEWS TODO
%doc doc/FAQ doc/README.Kiosk
%{_sysconfdir}/pam.d/xfce4
%{_sysconfdir}/xdg/autostart/*.desktop
# XXX Maybe own these directories in another package?
%dir %{_sysconfdir}/xdg/xfce4
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%dir %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml
%config(noreplace) %{_sysconfdir}/xdg/xfce4/Xft.xrdb
%config(noreplace) %{_sysconfdir}/xdg/xfce4/xinitrc
%config(noreplace) %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xfce4-session.xml
%{_bindir}/*
%{_datadir}/applications/xfce*
%{_iconsdir}/hicolor/*
%{_libdir}/xfce4/session/xfsm-shutdown-helper
%{_datadir}/xsessions/xfce.desktop
%{_mandir}/man1/*
%{_datadir}/polkit-1/actions/org.xfce.session.policy

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build

%configure \
	--enable-legacy-sm \
	--disable-static

%make

%install
%makeinstall_std

# pam
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/xfce4

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11578 |21cr|xfce4-settings-4.16.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     url_ver %(echo %{version} | cut -f 1,2 -d\.)
%define     _disable_rebuild_configure 1

Summary:	Configuration settings manager for Xfce
Name:		xfce4-settings
Version:	4.16.3
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	https://archive.xfce.org/src/xfce/xfce4-settings/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(garcon-1)
BuildRequires:	pkgconfig(garcon-gtk3-1)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(xorg-libinput)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(inputproto)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(xxf86misc)
BuildRequires:	pkgconfig(xrandr)
Requires:	hwdata
Provides:	xfce-mcs-manager = %{version}
Provides:	xfce-mcs-plugins = %{version}

%description
Configuration settings manager for Xfce desktop environment.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS TODO
%{_sysconfdir}/xdg/autostart/xfsettingsd.desktop
%config(noreplace) %{_sysconfdir}/xdg/menus/xfce-settings-manager.menu
%config(noreplace) %{_sysconfdir}/xdg/xfce4/xfconf/xfce-perchannel-xml/xsettings.xml
%config(noreplace) %{_sysconfdir}/xdg/xfce4/helpers.rc
%{_libdir}/xfce4/settings/appearance-install-theme
%{_libdir}/xfce4/xfce4-compose-mail
%{_bindir}/xfce4-*settings*
%{_bindir}/xfsettingsd
%{_bindir}/xfce4-find-cursor
%{_bindir}/xfce4-mime-helper
%{_datadir}/applications/*.desktop
%{_datadir}/xfce4/helpers/*.desktop
%{_iconsdir}/hicolor/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%configure \
	--enable-pluggable-dialogs \
	--enable-xrandr \
	--enable-libnotify \
	--enable-gio-unix \
	--enable-xcursor \
	--enable-libxklavier \
	--enable-pluggable-dialogs=yes \
	--enable-sound-settings=yes \
	--with-pnp-ids-path=%{_datadir}/misc/pnp.ids

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11579 |21cr|xfce4-smartbookmark-plugin-0.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define _disable_rebuild_configure 1

Summary:	Smart bookmarks for the Xfce panel
Name:		xfce4-smartbookmark-plugin
Version:	0.5.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/%{name}
Source0:	http://archive.xfce.org/src/panel-plugins/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:         rosa-bugzilla.patch
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	perl(XML::Parser)
Requires:	xfce4-panel

%description
A plugin which allows you to do a search directly on Internet on sites like 
Google. It allows you to send requests directly to your browser and perform 
custom searches.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README*
%{_libdir}/xfce4/panel/plugins/*.so
%{_datadir}/xfce4/panel/plugins/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

# strip library
chmod 0755 %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11580 |21cr|xfce4-systemload-plugin-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3 )
%define _disable_rebuild_configure 1
%define apps_name org.xfce.panel.systemload

Summary:	System load plugin for the Xfce panel
Name:		xfce4-systemload-plugin
Version:	1.3.1
Release:	1
License:	BSD
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-systemload-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-systemload-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:		Supplement-Russian-translation.patch
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
Requires:	xfce4-panel

%description
A system load panel plugin for the Xfce Desktop Environment.

%files -f %{name}.lang
%doc README* ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*
%{_iconsdir}/hicolor/*/apps/%{apps_name}.{png,svg}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

chmod +x %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11581 |21cr|xfce4-taskmanager-1.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f 1,2)
%define _disable_rebuild_configure 1
%define apps_name org.xfce.taskmanager

Summary:	A small taskmanager for Xfce desktop environment
Name:		xfce4-taskmanager
Version:	1.5.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/applications/xfce4-taskmanager
Source0:	http://archive.xfce.org/src/apps/xfce4-taskmanager/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libwnck-1.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(xmu)
Requires:	xfdesktop

%description
xfce-taskmanager is a small taskmanager based on the Xfce libraries.

Features:
    * Lists up all tasks of the running System
    * Provides sending signals to tasks:
    - STOP
    - CONT
    - TERM
    - KILL

%files -f %{name}.lang
%doc AUTHORS ChangeLog README*
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/actions/xc_crosshair.*
%{_iconsdir}/hicolor/*/apps/*.{png,svg}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--enable-gtk3 \
	--enable-wnck

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11582 |21cr|xfce4-terminal-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	X terminal emulator for Xfce desktop environment
Name:		xfce4-terminal
Version:	1.0.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Terminals
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/apps/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(vte-2.91)
Requires:	exo
Requires:	vte
Provides:	terminal = %{EVRD}
Obsoletes:	terminal < 0.6

%description
Terminal is a modern, lightweight, and low memory cost terminal
emulator with tabs and multiple windows for the Xfce desktop
environment. It offers full-customization for the key bindings,
the aspect, the colors, and more.

%files -f %{name}.lang
%doc README* ChangeLog NEWS AUTHORS HACKING THANKS
%dir %{_datadir}/xfce4/terminal
%dir %{_datadir}/xfce4/terminal/colorschemes
%{_bindir}/%{name}
%{_datadir}/applications/xfce4-terminal.desktop
%{_datadir}/applications/xfce4-terminal-settings.desktop
%{_datadir}/gnome-control-center/default-apps/xfce4-terminal-default-apps.xml
%{_mandir}/man1/xfce4-terminal.1.*
%{_datadir}/xfce4/terminal/colorschemes/*.theme
%{_iconsdir}/hicolor/*/apps/org.xfce.terminal*
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

desktop-file-install \
	--add-only-show-in="XFCE" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/xfce4-terminal.desktop

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11583 |21cr|xfce4-terminal-1.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	X terminal emulator for Xfce desktop environment
Name:		xfce4-terminal
Version:	1.0.4
release:	2
Epoch:		1
License:	GPLv2+
Group:		Terminals
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/apps/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(vte-2.91)
Requires:	exo
Requires:	vte
Provides:	terminal = %{EVRD}
Obsoletes:	terminal < 0.6

%description
Terminal is a modern, lightweight, and low memory cost terminal
emulator with tabs and multiple windows for the Xfce desktop
environment. It offers full-customization for the key bindings,
the aspect, the colors, and more.

%files -f %{name}.lang
%doc README* ChangeLog NEWS AUTHORS HACKING THANKS
%dir %{_datadir}/xfce4/terminal
%dir %{_datadir}/xfce4/terminal/colorschemes
%{_bindir}/%{name}
%{_datadir}/applications/xfce4-terminal.desktop
%{_datadir}/applications/xfce4-terminal-settings.desktop
%{_datadir}/gnome-control-center/default-apps/xfce4-terminal-default-apps.xml
%{_mandir}/man1/xfce4-terminal.1.*
%{_datadir}/xfce4/terminal/colorschemes/*.theme
%{_iconsdir}/hicolor/*/apps/org.xfce.terminal*
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

desktop-file-install \
	--add-only-show-in="XFCE" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/xfce4-terminal.desktop

%find_lang %{name}

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11584 |21cr|xfce4-time-out-plugin-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)

Summary: 	A time-out plugin for the Xfce panel
Name: 		xfce4-time-out-plugin
Version: 	1.1.2
Release: 	1
License:	GPLv2+
Group: 		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-time-out-plugin
Source0: 	http://archive.xfce.org/src/panel-plugins/xfce4-time-out-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
Requires:	xfce4-panel >= 4.8.0
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	perl(XML::Parser)

%description
A time-out plugin for the Xfce panel.

%prep
%setup -q

%build

%configure
%make

%install
%makeinstall_std 

chmod 755 %{buildroot}%{_libdir}/xfce4/panel/plugins/*.so

%find_lang %{name}

%files -f %{name}.lang
%doc ChangeLog AUTHORS
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/xfce4-time-out-plugin.desktop
%{_iconsdir}/hicolor/*/apps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11585 |21cr|xfce4-timer-plugin-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	Timer plugin for the Xfce panel
Name:		xfce4-timer-plugin
Version:	1.7.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-timer-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-timer-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	xfce4-panel-devel >= 4.9.0
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	perl(XML::Parser)

%description
Timer panel plugin for the Xfce Desktop Environment.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

rm -rf  %{buildroot}%{_prefix}/doc

%find_lang %{name} %{name}.lang

%files -f %{name}.lang
%doc ChangeLog AUTHORS TODO README
%{_libdir}/xfce4/panel/plugins/*
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_datadir}/icons/hicolor/32x32/apps/xfce4-timer-plugin.png
%{_datadir}/icons/hicolor/48x48/apps/xfce4-timer-plugin.png
%{_datadir}/icons/hicolor/scalable/apps/xfce4-timer-plugin.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11586 |21cr|xfce4-verve-plugin-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	A minicmd-plugin for the Xfce panel
Name:		xfce4-verve-plugin
Version:	2.0.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
URL:		http://goodies.xfce.org/projects/panel-plugins/xfce4-verve-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-verve-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	perl(XML::Parser)

%description
This plugin is like the (quite old) xfce4-minicmd-plugin, except that it
feature more cool features, like autocompletion and command history.

%prep
%setup -q

%build
%configure \
	--enable-final \
	--enable-dbus

%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS README* THANKS
%{_datadir}/xfce4/panel/plugins/*.desktop
%{_libdir}/xfce4/panel/plugins/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11587 |21cr|xfce4-volumed-pulse-0.2.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver %(echo %{version} | cut -d. -f 1,2)

Summary:	Volume keys of the keyboard (for pulseaudio)
Name:		xfce4-volumed-pulse
Version:	0.2.3
Release:	3
License:	GPLv3
Group:		Graphical desktop/Xfce
Url:		http://git.xfce.org/apps/xfce4-volumed
Source0:	http://archive.xfce.org/src/apps/xfce4-volumed-pulse/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	xfce4-dev-tools
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(keybinder-3.0)
BuildRequires:	pkgconfig(libnotify)
Obsoletes:	xfce4-volumed <= 0.1.13
Provides:	xfce4-volumed <= 0.1.13

%description
The xfce4-volumed-pulse adds additional functionality to the volume up/down
and mute keys of the keyboard. It makes the keys work without
configuration and uses the Xfce 4 mixer's defined card and track for
choosing which track to act on.
The volume level is shown in a notification.
Fork of Xfce4-Volumed to use PulseAudio.

%prep
%setup -q %{name}-%{version}

%build
%configure --disable-dependency-tracking
%make

%install
%makeinstall_std

%files
%doc AUTHORS README COPYING NEWS 
%config %{_sysconfdir}/xdg/autostart/%{name}.desktop
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11588 |21cr|xfce4-wavelan-plugin-0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	WaveLAN plugin for the Xfce panel
Name:		xfce4-wavelan-plugin
Version:	0.6.3
Release:	1
Group:		Graphical desktop/Xfce
License:	BSD
URL:		http://goodies.xfce.org/projects/panel-plugins/%{name}
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-wavelan-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)

%description
A plugin for the Xfce panel that monitors a wireless LAN interface. It 
displays stats for signal state, signal quality and network name (SSID).

%prep
%autosetup -p1

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

chmod +x %{buildroot}%{_libdir}/xfce4/panel/plugins/libwavelan.so

%find_lang %{name} %{name}.lang

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README*
%{_libdir}/xfce4/panel/plugins/libwavelan.so
%{_datadir}/xfce4/panel/plugins/*.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11589 |21cr|xfce4-weather-plugin-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-4)
%define _disable_rebuild_configure 1

Summary:	A weather plugin for the Xfce panel
Name:		xfce4-weather-plugin
Version:	0.11.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-weather-plugin
Source0:	https://archive.xfce.org/src/panel-plugins/xfce4-weather-plugin/%{url_ver}/%{name}-%{version}.tar.bz2
Source1:	Apple-Design-1.0.tar.gz
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(upower-glib)
Requires:	xfce4-panel
Requires:	glib-networking

%description
This panel plugin shows the current temperature and weather condition, 
using weather data provided by xoap.weather.com (www.weather.com).

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%dir %{_datadir}/xfce4/weather
%{_datadir}/xfce4/weather/*
%{_datadir}/xfce4/panel/plugins/*
%{_libdir}/xfce4/panel/plugins/
%{_iconsdir}/hicolor/*/apps/*.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
mkdir m4
NOCONFIGURE=yes xdt-autogen
%configure \
	--disable-static

%make

%install
%makeinstall_std

pushd %{buildroot}%{_datadir}/xfce4/weather/icons/
tar -xvzf %{SOURCE1}
popd

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11590 |21cr|xfce4-whiskermenu-plugin-2.7.1-0.git1d860e.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 1d860e7cb0c2f989d7cfce7dfc95a92fb260ab03
%define commit_short %(echo %{commit} | head -c 6)

Summary:	An alternate application launcher for Xfce
Name:		xfce4-whiskermenu-plugin
Version:	2.7.1
Release:	0.git%{commit_short}.1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		https://gitlab.xfce.org/panel-plugins/xfce4-whiskermenu-plugin
Source0:	https://gitlab.xfce.org/panel-plugins/xfce4-whiskermenu-plugin/-/archive/%{commit}/xfce4-whiskermenu-plugin-%{commit}.tar.gz
# https://gitlab.xfce.org/panel-plugins/xfce4-whiskermenu-plugin/-/merge_requests/6
Patch001:		0001-Support-both-GDM-and-LightDM.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(accountsservice)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(garcon-1)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(pangoxft)

%description
Whisker Menu is an alternate application launcher for Xfce.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_bindir}/xfce4-popup-whiskermenu
%{_libdir}/xfce4/panel/plugins/libwhiskermenu.so
%{_datadir}/xfce4/panel/plugins/whiskermenu.desktop
%{_datadir}/icons/hicolor/scalable/apps/*.svg
%{_datadir}/icons/hicolor/*/apps/*.png
%{_mandir}/man1/xfce4-popup-whiskermenu.1.*

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build
%find_lang %{name} %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11591 |21cr|xfce4-xkb-plugin-0.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	A plugin for the Xfce4 panel displaying keyboard layout
Name:		xfce4-xkb-plugin
Version:	0.8.2
Release:	1
License:	BSD
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/panel-plugins/xfce4-xkb-plugin
Source0:	http://archive.xfce.org/src/panel-plugins/xfce4-xkb-plugin/0.8/%{name}-%{version}.tar.bz2
# https://bugs.gentoo.org/732698
Patch0:         include-xfce-panel-macros.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(garcon-1)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxklavier)
Requires:	xfce4-panel

%description
A plugin for the Xfce4 panel displaying keyboard layout. The plugin may be
used as an indicator for the current layout and to switch layouts.

The layouts must be defined either in XF86Config or by xetskbmap tool.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README*
%dir %{_datadir}/xfce4/xkb
%{_datadir}/xfce4/xkb/*
%{_datadir}/xfce4/panel/plugins/xkb.desktop
%{_libdir}/xfce4/panel/plugins/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make LIBS="-lX11"

%install
%makeinstall_std

# remove unneeded devel files
rm -f %{buildroot}/%{_libdir}/xfce4/panel-plugins/*.a

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11592 |21cr|xfce-backgrounds-rospo-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wallpapers for ROSA Linux Xfce
Name:		xfce-backgrounds-rospo
Version:	1.2
Release:	1
License:	GPLv3+
Group:		Graphical desktop/Xfce
Url:		https://vk.com/xfce_rospo
Source0:	%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary} by Vladimir Penchikov 
and the user community ROSA

%files
%dir %{_datadir}/backgrounds/xfce
%{_datadir}/backgrounds/xfce/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}/backgrounds/xfce
cp -R {*.jpg,*.svg} %{buildroot}%{_datadir}/backgrounds/xfce/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11593 |21cr|xfce-rospo-icon-theme-1.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fork ROSPO icons for XFCE
Name:		xfce-rospo-icon-theme
Version:	1.7
Release:	3
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://vk.com./xfce_rospo
Source0:	%{name}-%{version}.tar.gz
Source1:	yandex-browser-beta_16.svg
Source2:	yandex-browser-beta_24.svg
Source3:	yandex-browser-beta_32.svg
Source4:	yandex-browser-beta_48.svg
Source5:	yandex-browser-beta_64.svg
Requires(post,postun):	gtk-update-icon-cache
BuildArch:	noarch

%description
Fork ROSPO icons for Rosa Linux XFCE

%files
%doc AUTHORS LICENSE README.md
%dir %{_iconsdir}/xfce-rospo-dark
%{_iconsdir}/xfce-rospo-dark/*
%dir %{_iconsdir}/xfce-rospo-light
%{_iconsdir}/xfce-rospo-light/*

#----------------------------------------------------------------------------

%package -n %{name}-green
Summary:	Fork ROSPO icons for XFCE-Green versoin
Group:		Graphical desktop/Other

%description -n %{name}-green
Fork ROSPO icons for Rosa Linux XFCE - 
version of icons with green folders

%files -n %{name}-green
%doc AUTHORS LICENSE README.md
%dir %{_iconsdir}/xfce-rospo-dark-green
%{_iconsdir}/xfce-rospo-dark-green/*
%dir %{_iconsdir}/xfce-rospo-light-green
%{_iconsdir}/xfce-rospo-light-green/*

#---------------------------------------------------------------------------
%post
%update_icon_cache xfce-rospo-dark
%update_icon_cache xfce-rospo-light
%update_icon_cache xfce-rospo-dark-green
%update_icon_cache xfce-rospo-light-green


%postun
%update_icon_cache xfce-rospo-dark
%update_icon_cache xfce-rospo-light
%update_icon_cache xfce-rospo-dark-green
%update_icon_cache xfce-rospo-light-green

#----------------------------------------------------------------------------

%prep
%setup -q

# update yandex-browser icon
rm ./xfce-rospo-dark/*/apps/yandex-browser-beta.svg
rm ./xfce-rospo-dark-green/*/apps/yandex-browser-beta.svg
rm ./xfce-rospo-light/*/apps/yandex-browser-beta.svg
rm ./xfce-rospo-light-green/*/apps/yandex-browser-beta.svg
cp %{SOURCE1} ./xfce-rospo-dark/16x16/apps/yandex-browser-beta.svg
cp %{SOURCE2} ./xfce-rospo-dark/22x22/apps/yandex-browser-beta.svg
cp %{SOURCE3} ./xfce-rospo-dark/32x32/apps/yandex-browser-beta.svg
cp %{SOURCE4} ./xfce-rospo-dark/48x48/apps/yandex-browser-beta.svg
cp %{SOURCE5} ./xfce-rospo-dark/64x64/apps/yandex-browser-beta.svg

cp %{SOURCE1} ./xfce-rospo-dark-green/16x16/apps/yandex-browser-beta.svg
cp %{SOURCE2} ./xfce-rospo-dark-green/22x22/apps/yandex-browser-beta.svg
cp %{SOURCE3} ./xfce-rospo-dark-green/32x32/apps/yandex-browser-beta.svg
cp %{SOURCE4} ./xfce-rospo-dark-green/48x48/apps/yandex-browser-beta.svg
cp %{SOURCE5} ./xfce-rospo-dark-green/64x64/apps/yandex-browser-beta.svg

cp %{SOURCE1} ./xfce-rospo-light/16x16/apps/yandex-browser-beta.svg
cp %{SOURCE2} ./xfce-rospo-light/22x22/apps/yandex-browser-beta.svg
cp %{SOURCE3} ./xfce-rospo-light/32x32/apps/yandex-browser-beta.svg
cp %{SOURCE4} ./xfce-rospo-light/48x48/apps/yandex-browser-beta.svg
cp %{SOURCE5} ./xfce-rospo-light/64x64/apps/yandex-browser-beta.svg

cp %{SOURCE1} ./xfce-rospo-light-green/16x16/apps/yandex-browser-beta.svg
cp %{SOURCE2} ./xfce-rospo-light-green/22x22/apps/yandex-browser-beta.svg
cp %{SOURCE3} ./xfce-rospo-light-green/32x32/apps/yandex-browser-beta.svg
cp %{SOURCE4} ./xfce-rospo-light-green/48x48/apps/yandex-browser-beta.svg
cp %{SOURCE5} ./xfce-rospo-light-green/64x64/apps/yandex-browser-beta.svg

%build

%install
install -d %{buildroot}%{_iconsdir}/
cp -R {xfce-rospo-dark,xfce-rospo-light,xfce-rospo-dark-green,xfce-rospo-light-green} %{buildroot}%{_iconsdir}/
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type d -exec chmod 0755 {} \;
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11594 |21cr|xfce-wallpapers-2022-4.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wallpapers from Xfce users in 2022
Name:		xfce-wallpapers-2022
Version:	4.18
Release:	1
License:	Creative Commons Attribution-NonCommercial
Group:		Graphical desktop/Xfce
Url:		https://gitlab.xfce.org/artwork/public/-/issues/1#note_60223
Source0:	xfce-wallpapers-%{version}.tar.xz
BuildArch:	noarch

%description
Wallpapers created by Xfce users in 2022.

%files
%{_datadir}/wallpapers/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xfce-wallpapers-%{version}

%build
# Nothing to do

%install
mkdir -p %{buildroot}%{_datadir}/wallpapers
cp -r * %{buildroot}%{_datadir}/wallpapers

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11595 |21cr|xfconf-4.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define major 3
%define api 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d
%define	girname %mklibname %{name}-gir %{api}
%define _disable_rebuild_configure 1


Summary:	A configuration storage system for Xfce
Name:		xfconf
Version:	4.16.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/%{name}/%{url_ver}/%{name}-%{version}.tar.bz2?/%{name}-%{version}.tar.bz2
# https://gitlab.xfce.org/xfce/xfconf/-/issues/20
Patch1:		0001-Create-per-channel-config-directory-if-it-does-not-e.patch
BuildRequires:	chrpath
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(vapigen)
Requires:	dbus-x11

%description
Xfconf is a hierarchical (tree-like) configuration system for the Xfce
graphical desktop environment.

%files -f %{name}.lang
%doc AUTHORS NEWS ChangeLog
%dir %{_sysconfdir}/xdg/xfce4/xfconf
%{_bindir}/xfconf-query
%{_libdir}/xfce4/%{name}/xfconfd
%{_libdir}/gio/modules/libxfconfgsettingsbackend.so
%{_datadir}/dbus-1/services/org.xfce.Xfconf.service
%{_datadir}/gtk-doc/html/xfconf
%{_datadir}/bash-completion/completions/xfconf-query

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for xfconf
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
Main library for the xfconf, a configuration storage system for Xfce.

%files -n %{libname}
%{_libdir}/libxfconf-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Xfconf-0.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for xfconf
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for xfconf.

%files -n %{devname}
%{_includedir}/xfce4/xfconf-%{api}
%{_libdir}/libxfconf-%{api}.so
%{_libdir}/pkgconfig/libxfconf-%{api}.pc
%{_datadir}/gir-1.0/Xfconf-0.gir
%{_datadir}/vala/vapi/libxfconf-0.deps
%{_datadir}/vala/vapi/libxfconf-0.vapi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
        --mandir=%{_mandir} \
	--disable-static \
	--enable-gsettings-backend=yes \
	--enable-introspection=yes \
	--enable-vala=yes
%make

%install

%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/man3

# dummy
mkdir -p %{buildroot}%{_sysconfdir}/xdg/xfce4/xfconf

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11596 |21cr|xfdashboard-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version} | cut -d. -f1,2)

%define major	0
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d
%define apps_name org.xfce.xfdashboard

# exclude plugin .so from provides
%global __provides_exclude_from %{_libdir}/%{name}/plugins/.*\\.so

Name:		xfdashboard
Version:	1.0.0
Release:	1
Summary:	GNOME shell like dashboard for Xfce
Group:		Graphical desktop/Xfce
License:	GPLv2+
URL:		http://xfdashboard.froevel.de
Source0:	http://archive.xfce.org/src/apps/xfdashboard/%{url_ver}/xfdashboard-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(garcon-1)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
Requires:	xfdashboard-plugins
Requires:	xfce4-panel

%description
Xfdashboard provides a GNOME shell dashboard like interface for use with Xfce
desktop. It can be configured to run to any keyboard shortcut and when executed
provides an overview of applications currently open enabling the user to switch
between different applications. The search feature works like Xfce's app finder
which makes it convenient to search for and start applications.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README*
%{_sysconfdir}/xdg/autostart/%{apps_name}-autostart.desktop
%{_bindir}/xfdashboard*
%{_datadir}/%{name}/
%{_datadir}/themes/%{name}*/
%{_datadir}/applications/%{apps_name}*.desktop
%{_metainfodir}/%{apps_name}.metainfo.xml
%{_iconsdir}/hicolor/*/apps/%{apps_name}.{png,svg}

#-------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared libraries for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.*

#-------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
This package contains the development files and headers for %{name}.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc

#--------------------------------------------------------------------------------

%package -n %{name}-plugins
Summary:	Plugins for %{name}
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}

%description -n %{name}-plugins
The plugins for %{name}.

%files -n %{name}-plugins
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/plugins/
%{_libdir}/%{name}/plugins/hot-corner.so
%{_libdir}/%{name}/plugins/clock-view.so
%{_libdir}/%{name}/plugins/gnome-shell-search-provider.so
%{_libdir}/%{name}/plugins/middle-click-window-close.so
%{_libdir}/%{name}/plugins/autopin-windows.so
%{_libdir}/%{name}/plugins/recently-used-search-provider.so


#--------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

find %{buildroot} -name "*.la" -delete

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11597 |21cr|xfdesktop-4.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-4)
%define  _disable_rebuild_configure 1

Summary:	Desktop manager for the Xfce Desktop Environment
Name:		xfdesktop
Version:	4.16.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	https://archive.xfce.org/src/xfce/xfdesktop/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(libxfce4panel-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(exo-2)
BuildRequires:	pkgconfig(thunarx-3)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(garcon-1)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(cairo)
Conflicts:	xfce-utils <= 4.8.3-1
Requires:	desktop-common-data
# own /usr/share/wallpapers
Requires:	rosa-wallpapers-filesystem

%description
The desktop manager sets the background image, provides a right-click
menu to launch applications and can optionally show files
(including application launchers) or iconified windows. It includes
gradient support for background color, saturation support for background image,
real multiscreen and xinerama support, and it provides a desktop menu editor.

%files -f %{name}.lang
%doc README* TODO AUTHORS NEWS
%{_bindir}/xfdesktop
%{_bindir}/xfdesktop-settings
%{_datadir}/applications/xfce-backdrop-settings.desktop
%{_iconsdir}/hicolor/*/*/*.{png,svg}
%{_datadir}/pixmaps/xfce4_*.png
%{_datadir}/pixmaps/xfdesktop
%{_datadir}/wallpapers/*.{png,jpg}
%{_mandir}/man1/xfdesktop.1*

%prep
%autosetup -p1

# match https://abf.io/import/rosa-wallpapers
grep -q DEFAULT_BACKDROP common/xfdesktop-common.h
sed -i'' -e 's,backgrounds/xfce,wallpapers,g' backgrounds/Makefile* common/xfdesktop-common.h

%build
%configure \
	--disable-static \
	--enable-desktop-icons \
	--enable-file-icons \
	--enable-thunarx=yes \
	--enable-notifications \
	--enable-desktop-menu \
	--with-file-manager-fallback=Thunar

%make

%install
%makeinstall_std

%find_lang %{name} %{name}.lang


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11598 |21cr|xfe-1.43.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MS-Explorer-like minimalist file manager for X
Name:		xfe
Version:	1.43.2
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://roland65.free.fr/xfe
Source0:	https://sourceforge.net/projects/xfe/files/xfe/%{version}/%{name}-%{version}.tar.gz
Patch1:		xfe-1.37-mdv-xfp_desktop.patch
Patch4:		xfe-1.40-use-system-libsn.patch
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(fox)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	intltool

%description
X File Explorer (Xfe) is an MS-Explorer like file manager for X.
It is based on the popular, but discontinued, X Win Commander,
originally developed by Maxim Baranov.

Xfe aims to be the file manager of choice for all light thinking Unix addicts!

%prep
%setup -q
%patch1 -p1
%patch4 -p1 -b .syssn
iconv -f iso8859-1 -t utf-8 ChangeLog > ChangeLog.conv \
  && mv -f ChangeLog.conv ChangeLog

autoreconf -fi
rm -rf libsn

%build
export CXXFLAGS="-O2  -I/usr/include/fox-1.6 -DHAVE_XFT_H -DSTARTUP_NOTIFICATION"
export LDFLAGS="-lX11 -lfreetype -lz -lXft"

%configure \
	--disable-rpath \
	--enable-release \
	--enable-threads=posix \
	--bindir=%{_libexecdir}/%{name} \
	--without-included-gettext

%make

%install
%makeinstall_std INSTALL="install -p"

# rcdir=%{_sysconfdir}/%{name}

%find_lang %{name}

# Tweak too generic and short names
mkdir -p %{buildroot}%{_datadir}/%{name}/pixmaps
mkdir -p %{buildroot}%{_bindir}
for suffix in \
        i e p w
do
        cat > %{buildroot}%{_bindir}/xfe-xf${suffix} <<EOF
#!/bin/sh
export PATH=%{_libexecdir}/%{name}:\$PATH
exec xf${suffix} \$@
EOF
        chmod 0755 %{buildroot}%{_bindir}/xfe-xf${suffix}

        mv %{buildroot}%{_datadir}/pixmaps/xf${suffix}.{png,xpm} \
                %{buildroot}%{_datadir}/%{name}/pixmaps/
        mv %{buildroot}%{_datadir}/applications/{,xfe-}xf${suffix}.desktop
        # Modify desktop file
        sed -i \
                -e "\@^Exec=@s|xf${suffix}|xfe-xf${suffix}|" \
                -e "s|Icon=xf${suffix}|Icon=%{_datadir}/%{name}/pixmaps/xf${suffix}.png|" \
                %{buildroot}%{_datadir}/applications/xfe-xf${suffix}.desktop
        desktop-file-validate %{buildroot}%{_datadir}/applications/xfe-xf${suffix}.desktop

        mv %{buildroot}%{_mandir}/man1/{,xfe-}xf${suffix}.1
done
rmdir %{buildroot}%{_datadir}/pixmaps/

# Move configuration files
mkdir -p %{buildroot}%{_sysconfdir}
mv %{buildroot}%{_datadir}/%{name}/xferc \
        %{buildroot}%{_sysconfdir}
ln -sf %{_sysconfdir}/xferc %{buildroot}%{_datadir}/%{name}/xferc

%files -f %{name}.lang
%doc AUTHORS README TODO ChangeLog
%{_bindir}/xfe-xf*
%{_libexecdir}/%{name}
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/xferc
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}/pixmaps
%{_datadir}/%{name}/icons
# xferc defaults to gnomeblue-theme, so let's use this
%{_mandir}/man1/*
%{_datadir}/%{name}/xferc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11599 |21cr|xfishtank-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A graphic display of an animated aquarium
Summary(ru_RU.UTF8):  Аквариум на вашем рабочем столе
Name:		xfishtank
Version:	3.2.1
Release:	1
License:	MIT
Group:		Toys
Url:		https://ratrabbit.nl/ratrabbit/software/xfishtank/downloads/index.html
Source0:	https://ratrabbit.nl/downloads/xfishtank/%{name}-%{version}~pre1.tar.gz
Patch0:		rus_descr.patch
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xtst)

%description
The xfishtank program displays an animated aquarium background on your
screen. It sets the X root window so will not work if your desktop
environment sets the background.
%description -l ru_RU.UTF8
Xfishtank это современная версия винтажного приложения xfish. 
Программа создает аквариум на рабочем столе.

%files
%doc README
%license COPYING
%{_gamesbindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_datadir}/applications/xfishtank.desktop
%{_datadir}/pixmaps/xfishtank.png

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}~pre1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11600 |21cr|xfmpc-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)

Summary:	A MPD client focusing on low footprint for Xfce
Name:		xfmpc
Version:	0.3.0
Release:	1
License:	BSD-like
Group:		Graphical desktop/Xfce
Url:		http://goodies.xfce.org/projects/applications/%{name}
Source0:	http://archive.xfce.org/src/apps/xfmpc/%{url_ver}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	libxfce4util-devel
BuildRequires:	libmpd-devel

%description
A MPD client focusing on low footprint for Xfce desktop environment.

%prep
%setup -q

%build
%define Werror_cflags %nil
%configure

%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS README ChangeLog
%{_bindir}/xfmpc
%{_datadir}/applications/*.desktop
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11601 |21cr|xfpanel-switch-1.0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global majorver 1.0

Name:		xfpanel-switch
Version:	1.0.4
Release:	6
Summary:	A simple application to manage Xfce panel layouts
Group:		Graphical desktop/Xfce
License:	GPLv3
URL:		https://launchpad.net/%{name}
Source0:	https://launchpad.net/%{name}/%{majorver}/%{version}/+download/%{name}-%{version}.tar.bz2
Source1:	%{name}.appdata.xml
Source2:	it.po
Source3:	ROSA-XFCE.tar.bz2
Patch0:		translation.patch
BuildRequires:	python3-devel
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	desktop-file-utils
BuildArch:	noarch
Requires:	xfce4-panel

%description
A simple application to manage Xfce panel layouts

With the modular Xfce Panel, a multitude of panel layouts can be created. 
This tool makes it possible to backup, restore, import, and export these 
panel layouts.

%files -f %{name}.lang
%doc NEWS AUTHORS README COPYING
%{_datadir}/%{name}/*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml

%prep
%setup -q
%patch0 -p1
cp -p %{SOURCE2} po/

rm -fr data/layouts/xubuntu*
sed -i '/cd data\/layouts\/xubuntu-*/d' Makefile.in.in
sed -i '/INSTALL $(DESTDIR)\/$(PREFIX)\/share\/doc/d' Makefile.in.in
sed -i '/COPYING $(DESTDIR)\/$(PREFIX)\/share\/doc/d' Makefile.in.in

%build
./configure --prefix=/usr
%make

%install
%makeinstall_std

#fix perms
chmod 0644 %{buildroot}%{_datadir}/%{name}/layouts/*

desktop-file-install \
	--add-category='X-XFCE-SettingsDialog;X-XFCE-PersonalSettings;' \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

install -Dp -m644 %{SOURCE1} %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml
install -Dp -m644 %{SOURCE3} %{buildroot}%{_datadir}/%{name}/layouts/ROSA-XFCE.tar.bz2

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11602 |21cr|xfrisk-1.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: XFrisk, a multi-user network version of the classic "Risk"
Name: xfrisk
Version: 1.2
Release: 14
Group: Games/Strategy
Source: http://www.iki.fi/morphy/xfrisk/XFrisk-%{version}.tar.gz
Patch0: XFrisk-mdk.patch
Patch1: XFrisk-1.2-fix-str-fmt.patch
License: GPL
URL: http://www.iki.fi/morphy/xfrisk
BuildRequires: pkgconfig(x11)
BuildRequires: Xaw3d-devel
BuildRequires: pkgconfig(xaw7)
BuildRequires: pkgconfig(xt)
Obsoletes: XFrisk < %version-%release
Provides: XFrisk = %version-%release

%description
XFrisk a multi-user network version of the classic "Risk"

%prep
%setup -qn XFrisk
%patch0 -p1 -b .mdk
%patch1 -p0 -b .str

%build
make PREFIX=%_prefix CC="gcc %{optflags}" LDFLAGS="%{?ldflags}"

%install
rm -rf $RPM_BUILD_ROOT
make PREFIX=%buildroot%_prefix install

mkdir -p %buildroot%_datadir/applications
cat << EOF >%buildroot%_datadir/applications/mandriva-%name.desktop
[Desktop Entry]
Name=XFrisk
Comment=A multi-user network version of the classic "Risk"
Exec=%_bindir/risk
Icon=strategy_section
Terminal=false
Type=Application
Categories=Game;StrategyGame;
EOF

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,games,games,-)
%{_datadir}/xfrisk
%{_bindir}/risk
%{_bindir}/xfrisk
%{_bindir}/friskserver
%{_bindir}/aiDummy
%{_bindir}/aiConway
%{_bindir}/aiColson
%_datadir/applications/mandriva-%name.desktop
%doc BUGS
%doc ChangeLog
%doc FAQ
%doc README.NEW
%doc TODO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11603 |21cr|xfwm4-4.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     url_ver %(echo %{version} | cut -f 1,2 -d\.)
%define     _disable_rebuild_configure 1

Summary:	Window manager for Xfce desktop environment
Name:		xfwm4
Version:	4.16.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/xfce/xfwm4/%{url_ver}/%{name}-%{version}.tar.bz2
Patch0:		xfwm4_string.patch
Patch1:		xfwm4-locale.patch
BuildRequires:	git-core
BuildRequires:	intltool
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libxfce4kbd-private-3)
BuildRequires:	pkgconfig(presentproto)
BuildRequires:	pkgconfig(libxfce4ui-2)
BuildRequires:	pkgconfig(libxfce4util-1.0)
BuildRequires:	pkgconfig(libxfconf-0)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xpresent)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)

%description
The Xfce 4 window manager manages the placement of application windows on
the screen, provides beautiful window decorations, manages workspaces or
virtual desktops, and natively supports multiscreen mode. It provides its
own compositing manager (from the Xorg Composite extension) for true
transparency and shadows. The Xfce 4 window manager includes a keyboard
shorcuts editor for user specific commands and basic windows manipulations,
and it provides a dialog for advanced tweaks.

%files -f %{name}.lang
%doc example.gtkrc-2.0 AUTHORS COMPOSITOR TODO
%dir %{_libdir}/xfce4/xfwm4
%{_bindir}/xfwm4*
%{_libdir}/xfce4/xfwm4/helper-dialog
%{_datadir}/applications/*
%{_datadir}/themes/*
%{_datadir}/xfwm4
%{_iconsdir}/hicolor/scalable/*/*.svg
%{_iconsdir}/hicolor/*x*/*/*.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--enable-compositor \
	--enable-xpresent \
	--enable-xsync \
	--enable-render \
	--enable-randr \
	--enable-startup-notification \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11604 |21cr|xfwm4-themes-4.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Additional themes for Xfwm
Name:		xfwm4-themes
Version:	4.10.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://www.xfce.org/archive/xfce-%{version}/src/%{name}-%{version}.tar.bz2
Requires:	xfwm4 >= %{version}
BuildArch:	noarch

%description
A set of additional themes for the Xfwm window manager.

%files
%doc README TODO AUTHORS
%{_datadir}/themes/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11605 |21cr|xgrabcolor-1.4.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Color picker
Name:		xgrabcolor
Version:	1.4.4
Release:	4
License:	GPL
Url:		http://hugo.pereira.free.fr/software/index.php?page=package&package_list=software_list_qt4&package=xgrabcolor&full=0
Group:		Graphics
Source:		http://hugo.pereira.free.fr/software/tgz/%{name}-%{version}.tar.gz
BuildRequires:	qt5-devel
BuildRequires:	cmake
BuildRequires:	qmake5
BuildRequires:	libaspell-devel
BuildRequires:	kf5config-devel
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)

%description
Basic color picker.

%prep
%setup -q

%build
%cmake_qt5 -DUSE_QT5=1
%make

%install
%makeinstall_std -C build

%clean

%files
%doc COPYING INSTALL
%{_bindir}/xgrabcolor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11606 |21cr|xgraph-12.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:  Interactive plotting and graphing X11 in command line
Name: xgraph
Version: 12.1
Release: 11
License: GPL
Group: Sciences/Mathematics
Source: http://www.isi.edu/nsnam/dist/xgraph-%{version}.tar.gz
Patch0: xgraph-12.1-glibc-2.10.patch
Patch1: xgraph-makefile-gentoo.patch
Patch2: xgraph-12.1-fix-str-fmt.patch
URL: http://www.isi.edu/nsnam/xgraph
BuildRequires: pkgconfig(x11)

%description
The xgraph program draws a graph on an X display given data read from
either data files or from standard input if no files are specified.  It can
display up to 64 independent data sets using different colors and/or line
styles for each set.  It annotates the graph with a title,  axis labels,
grid lines or tick marks, grid labels, and a legend.  There are options to
control the appearance of most components of the graph.

%prep
%setup -q 
%patch0 -p1
%patch1 -p1
%patch2 -p0

%build
%configure
%make

%install
rm -rf %_tmppath/%{name}-%{version}-root
%makeinstall_std
mv %{buildroot}%{_mandir}/manm %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_mandir}/man1/xgraph.man %{buildroot}%{_mandir}/man1/xgraph.1

%files
%doc README* INSTALL examples
%{_bindir}/xgraph
%{_mandir}/man1/xgraph.*

%clean
[ %{buildroot} != "/" ] && rm -fr %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11607 |21cr|xguest-1.0.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Creates xguest user as a locked down user 
Name:		xguest
Version: 	1.0.10
Release: 	8
License: 	GPLv2+
Group:   	System/Base
BuildArch: 	noarch
Source:  	http://people.fedoraproject.org/~dwalsh/xguest/%{name}-%{version}.tar.bz2
Source10: 	mkxguesthome
# (tv) prevent accessing other people accounts:
Patch1: 	xguest-namespace.patch
URL:     	http://people.fedoraproject.org/~dwalsh/xguest/

Requires(pre):	pam >= 0.99.8.1
Requires(post): usermode-consoleonly

%define grp_option -U

%description
Installing this package sets up the xguest user to be used as a temporary
account to switch to or as a kiosk user account.
The user is only allowed to log in via gdm.  The home and temporary directories
of the user will be polyinstantiated and mounted on tmpfs.

WARNING: unlike Fedora, where the account is disabled unless SELinux is in
enforcing mode and where it's only accessible through gdm/kdm/xdm, it's
accessible from the console too.

%prep
%setup -q
%patch1 -p1 -b .home

%build

%install
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/desktop-profiles
%{__mkdir} -p %{buildroot}/%{_sysconfdir}/security/namespace.d/ls
install -m0644 xguest.zip %{buildroot}/%{_sysconfdir}/desktop-profiles/
install -m0644 xguest.conf %{buildroot}/%{_sysconfdir}/security/namespace.d/

install -m0755 %{SOURCE10} %{buildroot}%{_sysconfdir}/security/namespace.d/

# (tv) Using UID higher than UID_MAX=60000 from /etc/login.defs:
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/xguest-add-helper <<EOF
#!/bin/sh
groupdel xguest 2>/dev/null
userdel -r xguest 2>/dev/null

case \$(env | grep -m 1 -i lang | cut -d= -f2 | cut -d. -f1) in
	fr_FR) comment_xguest="Compte invité";;
	de_DE) comment_xguest="Gast-Zugang";;
	es_ES) comment_xguest="Cuenta invitado";;
	it_IT) comment_xguest="Opsite conto";;
	pl_PL) comment_xguest="Konto gościa";;
	pt_PT) comment_xguest="Conta convidado";;
	ru_RU) comment_xguest="Гость";;
	*) comment_xguest="Guest Account";;
esac

useradd -s /bin/rbash -K UID_MIN=56000 -K UID_MAX=60000 -K GID_MIN=56000 -K GID_MAX=60000 %grp_option -p '' -c "\$comment_xguest" xguest || :

# prevent remote login:
if [ -e /etc/ssh/denyusers ]; then
	if ! grep -q xguest /etc/ssh/denyusers; then
		echo xguest >> /etc/ssh/denyusers
	fi
fi

# prevent accessing most configuration tools (mcc still available with root password)
for i in /etc/pam.d/{mandriva-simple-auth,simple_root_authen,urpmi.update}; do
	if [ -e \$i ]; then
		grep -F -q xguest \$i && continue
	fi
	echo -e "\nauth\trequired\tpam_succeed_if.so\tquiet user != xguest" >> \$i
done
EOF

%post
if [ $1 -eq 1 ]; then
	xguest-add-helper
fi

%preun
if [ $1 -eq 0 ]; then

userdel -r xguest
groupdel xguest

# remove forbiden SSH:
sed -i '/^xguest/d' /etc/ssh/denyusers

fi

%triggerun -- xguest <= 1.0.8-3mdv2010.0
userdel -r guest 2>/dev/null
xguest-add-helper

%triggerin -- openssh-server
if ! grep -q xguest /etc/ssh/denyusers; then
  echo xguest >> /etc/ssh/denyusers
fi

%files
%attr(755,root,root) %{_bindir}/*
%dir %{_sysconfdir}/desktop-profiles
%config(noreplace) %{_sysconfdir}/desktop-profiles/xguest.zip
%{_sysconfdir}/security/namespace.d/
%doc README LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11608 |21cr|xh-0.23.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         debug_package %{nil}

Name:           xh
Version:        0.23.0
Release:        1
Summary:        Friendly and fast tool for sending HTTP requests 
Group:          Networking/WWW
License:        MIT
URL:            https://github.com/ducaale/xh
# use upd.sh for update
Source0:        %{name}-%{version}.tar.gz
Source1:        xh-vendor-0.23.0.tar.xz
Source10:       upd.sh
BuildRequires:  cargo

%description
xh is a friendly and fast tool for sending HTTP requests. 
It reimplements as much as possible of HTTPie's excellent design, 
with a focus on improved performance.

%package bash-completion
Summary:        Bash Completion for %{name}
Requires:       bash-completion
Supplements:    (%{name} and bash-completion)
BuildArch:      noarch

%description bash-completion
The official bash completion script for %{name}.

%package fish-completion
Summary:        Fish Completion for %{name}
Supplements:    (%{name} and fish)
BuildArch:      noarch

%description fish-completion
The official fish completion script for %{name}.

%package zsh-completion
Summary:        ZSH Completion for %{name}
Supplements:    (%{name} and zsh)
BuildArch:      noarch

%description zsh-completion
The official zsh completion script for %{name}.

%prep
%setup -q -a1

mkdir -p .cargo
cat > .cargo/config.toml << EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

%build
cargo build --release --offline %{?_smp_mflags}

%install
install -Dm0755 target/release/%{name} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
mkdir -p %{buildroot}%{_datadir}/fish/vendor_completions.d
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions
install -Dm644 completions/%{name}.bash %{buildroot}%{_datadir}/bash-completion/completions/%{name}
install -Dm644 completions/%{name}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d/%{name}.fish
install -Dm644 completions/_%{name}     %{buildroot}%{_datadir}/zsh/site-functions/_%{name}
install -Dm644 doc/%{name}.1                                   %{buildroot}%{_mandir}/man1/%{name}.1

%files
%license LICENSE
%doc README.md CHANGELOG.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

%files bash-completion
%{_datadir}/bash-completion

%files fish-completion
%{_datadir}/fish

%files zsh-completion
%{_datadir}/zsh


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11609 |21cr|xhippo-3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A mp3 playlist frontend
Name:		xhippo
Version:	3.5
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://www.gnu.org/software/xhippo/xhippo.html
#https://directory.fsf.org/wiki/Xhippo
Source0:	ftp://ftp.free.fr/gnu/xhippo/%{name}-%{version}.tar.gz
Source1:	%{name}-16x16.png.bz2
Source2:	%{name}-32x32.png.bz2
Source3:	%{name}-48x48.png.bz2
BuildRequires:	gettext
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(id3tag)

%description
Xhippo is a Mp3 playlist frontend.

%files -f %{name}.lang
%doc doc/*.* ChangeLog AUTHORS BUGS COPYING NEWS README* TODO
%config(noreplace) %{_sysconfdir}/%{name}.config
%{_bindir}/%{name}
%{_datadir}/applications/rosa-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/man1/%{name}.1*
%{_infodir}/%{name}.info.*

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-gtk2
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}
cp xhippo.config %{buildroot}%{_sysconfdir}

# Menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=GNU %{name}
Comment=%{summary}
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Audio;AudioVideo;Player;
EOF

# Icons
mkdir -p %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
bzcat %{SOURCE1} > %{buildroot}%{_miconsdir}/%{name}.png
bzcat %{SOURCE2} > %{buildroot}%{_iconsdir}/%{name}.png
bzcat %{SOURCE3} > %{buildroot}%{_liconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11610 |21cr|xhtml1-dtds-1.0-20020801.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global date    20020801

Name:           xhtml1-dtds
Version:        1.0
Release:        %{date}.1
Summary:        XHTML 1.0 document type definitions

Group:          Publishing
# W3C Software License for DTDs etc:
# http://www.w3.org/Consortium/Legal/IPR-FAQ-20000620#DTD
License:        W3C
URL:            http://www.w3.org/TR/2002/REC-xhtml1-%{date}/
# Source0 generated with Source99, see comments in the script
Source0:        %{name}-%{date}.tar.bz2
Source1:        %{name}.catalog.xml
Source99:       %{name}-prepare-tarball.sh
Patch0:         %{name}-sgml-catalog.patch
Patch1:         %{name}-sgml-dcl.patch
BuildArch:      noarch
BuildRequires:  libxml2 >= 2.4.8
BuildRequires:  libxml2-utils
Requires:       libxml2 >= 2.4.8
Requires:       xml-common
Requires:       sgml-common
Requires(post): libxml2-utils
Requires(preun): libxml2-utils

%description
This provides the DTDs of the Second Edition of XHTML 1.0, a reformulation
of HTML 4 as an XML 1.0 application, and three DTDs corresponding to the
ones defined by HTML 4. The semantics of the elements and their attributes
are defined in the W3C Recommendation for HTML 4. These semantics provide
the foundation for future extensibility of XHTML.


%prep
%setup -q -n xhtml1-20020801
%patch0 -p0
%patch1 -p1
cp -p %{SOURCE1} DTD/catalog.xml


%build


%install

# Note: documentation is not shipped; the W3C Documentation License is not an
# acceptable one per Fedora licensing guidelines.

mkdir -p %{buildroot}%{_datadir}/xml/xhtml/1.0
cp -p DTD/* %{buildroot}%{_datadir}/xml/xhtml/1.0

# XML catalog:

xpkg() {
  xmlcatalog --noout --add "$1" "$2" \
    file://%{_datadir}/xml/xhtml/1.0/catalog.xml \
    %{buildroot}%{_sysconfdir}/xml/%{name}-%{version}-%{release}.xml
}

mkdir -p %{buildroot}%{_sysconfdir}/xml
xmlcatalog --noout --create \
  %{buildroot}%{_sysconfdir}/xml/%{name}-%{version}-%{release}.xml
xpkg delegatePublic "-//W3C//DTD XHTML 1.0 "
xpkg delegatePublic "-//W3C//ENTITIES Latin 1 for XHTML"
xpkg delegatePublic "-//W3C//ENTITIES Special for XHTML"
xpkg delegatePublic "-//W3C//ENTITIES Symbols for XHTML"
for i in xhtml1 2002/REC-xhtml1-%{date} ; do
  xpkg delegateSystem http://www.w3.org/TR/$i/DTD/
  xpkg delegateURI http://www.w3.org/TR/$i/DTD/
done
ln -s %{name}-%{version}-%{release}.xml \
  %{buildroot}%{_sysconfdir}/xml/%{name}.xml

# SGML catalog:

mkdir -p %{buildroot}%{_sysconfdir}/sgml
cd %{buildroot}%{_sysconfdir}/sgml
touch %{name}-%{version}-%{release}.soc
ln -s %{name}-%{version}-%{release}.soc %{name}.soc
cd -

%post
cd %{_sysconfdir}/xml
[ -e catalog ] || /usr/bin/xmlcatalog --noout --create catalog
/usr/bin/xmlcatalog --noout --add \
    nextCatalog %{name}-%{version}-%{release}.xml "" catalog >/dev/null
cd - >/dev/null
/usr/bin/xmlcatalog --sgml --noout --add \
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc \
    %{_datadir}/xml/xhtml/1.0/xhtml.soc >/dev/null
:

%preun
/usr/bin/xmlcatalog --noout --del \
    %{name}-%{version}-%{release}.xml \
    %{_sysconfdir}/xml/catalog >/dev/null
/usr/bin/xmlcatalog --sgml --noout --del \
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc \
    %{_datadir}/xml/xhtml/1.0/xhtml.soc >/dev/null
:


%files
%ghost %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.soc
%{_sysconfdir}/sgml/%{name}.soc
%{_sysconfdir}/xml/%{name}*.xml
%{_datadir}/xml/xhtml/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11611 |21cr|xine-lib-1.2.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	dvdnav 0.1.4

%define	build_pulse 1
%define	build_magick 1
%define	build_caca 1
%define	build_directfb 0
%define	external_vcdnav 1
%define	build_smb 1
%define	build_alsa 1
%define	build_linuxfb 1

%define	build_vidix 0

%define	build_divx4 0
%define	build_xvid 0
%define	build_faad 1
%define	build_win32 0
%ifarch %{ix86}
%define	build_win32 1
%endif

%{?_with_directfb: %{expand: %%global build_directfb 1}}
%{?_without_directfb: %{expand: %%global build_directfb 0}}
%{?_with_alsa: %{expand: %%global build_alsa 1}}
%{?_without_alsa: %{expand: %%global build_alsa 0}}
%{?_with_vcdnav: %{expand: %%global external_vcdnav 1}}
%{?_without_vcdnav: %{expand: %%global external_vcdnav 0}}
%{?_with_vidix: %{expand: %%global build_vidix 1}}
%{?_without_vidix: %{expand: %%global build_vidix 0}}
%{?_with_linuxfb: %{expand: %%global build_linuxfb 1}}
%{?_without_linuxfb: %{expand: %%global build_linuxfb 0}}
%{?_without_faad: %{expand: %%global build_faad 0}}
%{?_with_win32: %{expand: %%global build_win32 1}}
%{?_without_win32: %{expand: %%global build_win32 0}}
%{?_with_divx4: %{expand: %%global build_divx4 1}}
%{?_without_divx4: %{expand: %%global build_divx4 0}}
%{?_with_xvid: %{expand: %%global build_xvid 1}}
%{?_without_xvid: %{expand: %%global build_xvid 0}}
%{?_with_smb: %{expand: %%global build_smb 1}}
%{?_without_smb: %{expand: %%global build_smb 0}}
%{?_with_pulse: %{expand: %%global build_pulse 1}}
%{?_without_pulse: %{expand: %%global build_pulse 0}}
%{?_with_magick: %{expand: %%global build_magick 1}}
%{?_without_magick: %{expand: %%global build_magick 0}}

%define	bname xine
%define	major 2
%define	api 2.10
%define	libname %mklibname xine %{major}
%define	devname %mklibname xine -d

Summary:	A Free Video Player (Libraries)
Name:		xine-lib
Version:	1.2.12
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://xine.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/xine/xine-lib/%{version}/xine-lib-%{version}.tar.xz
BuildRequires:	aalib-devel
BuildRequires:	gettext-devel
BuildRequires:	libmpcdec-devel
BuildRequires:	gpm-devel
BuildRequires:	mng-devel
BuildRequires:	a52dec-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(aom)
BuildRequires:	pkgconfig(esound)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libbluray)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libnfs)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(MagickWand)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xvmc)
%if %{build_smb}
BuildRequires:	pkgconfig(smbclient)
%endif
%if %{external_vcdnav}
BuildRequires:	pkgconfig(libvcdinfo)
%endif
%if %{build_directfb}
BuildRequires:	pkgconfig(directfb)
%endif

%description
Xine is a free GPL-licensed video player for unix-like systems.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A Free Video Player (Libraries)
Group:		System/Libraries
Provides:	xine-lib

%description -n %{libname}
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the shared libraries required by xine.

%files -n %{libname}
%doc README
%{_libdir}/libxine.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel files for xine
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the development files required for compiling xine
front ends or plugins.

%files -n %{devname}
%doc README AUTHORS TODO
%doc ChangeLog installed-docs/hackersguide
%{_bindir}/xine-config
%{_bindir}/xine-list-1.2
%{_mandir}/man1/xine-config.1*
%{_mandir}/man1/xine-list-1.2.1*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libxine.pc
%{_datadir}/aclocal/xine.m4
%{_includedir}/*.h
%{_includedir}/xine

#----------------------------------------------------------------------------

%package -n %{bname}-plugins
Summary:	A Free Video Player (main plugins)
Group:		Video
Provides:	%{bname}-xv %{bname}-gl %{bname}-oss %{libname}-docs %{bname}-speex
Provides:	%{bname}-dvdnav %{bname}-alsa %{bname}-musepack
%if %{build_win32}
Provides:	xine-plugins-win32
Provides:	xine-win32
#Suggests: win32-codecs
%endif
# Plugins are in versioned dir, so require the exact version
Requires:	%{libname} = %{version}
# provide the plugin API version
Provides:	xine-plugin-api = %{api}

%description -n %{bname}-plugins
Xine is a free GPL-licensed video player for unix-like systems.
This package includes the main plugins for xine: they allow the input from
files, Video CDs, network streams and (not encrypted) DVDs in several video
formats.

%files -n %{bname}-plugins -f libxine2.lang
%doc installed-docs/README* installed-docs/faq.*
%{_mandir}/man5/xine.5*
%dir %{_libdir}/xine/
%dir %{_libdir}/xine/plugins/
%dir %{_libdir}/xine/plugins/%{api}/
%dir %{_libdir}/xine/plugins/%{api}/post/
%{_libdir}/xine/plugins/%{api}/mime.types
%if %{build_alsa}
%{_libdir}/xine/plugins/%{api}/xineplug_ao_out_alsa.so
%endif
%{_libdir}/xine/plugins/%{api}/xineplug_ao_out_oss.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_cdda.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_dvb.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_dvd.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_mms.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_network.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_pvr.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_rtp.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_nfs.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_vcd.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_v4l2.so
%{_libdir}/xine/plugins/%{api}/xineplug_dmx_*so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_a52.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_dts.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_dvaudio.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_ff.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_gdk_pixbuf.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_gsm610.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_libjpeg.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_libvpx.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_lpcm.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_mad.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_mpc.so*
%{_libdir}/xine/plugins/%{api}/xineplug_decode_mpeg2.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_spu*.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_real.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_to_spdif.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_vdpau.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_libaom.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_libpng.so
%{_libdir}/xine/plugins/%{api}/xineplug_decode_rawvideo.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_bluray.so
%{_libdir}/xine/plugins/%{api}/xineplug_nsf.so
%{_libdir}/xine/plugins/%{api}/xineplug_sputext.so
%{_libdir}/xine/plugins/%{api}/xineplug_tls_gnutls.so
%{_libdir}/xine/plugins/%{api}/xineplug_tls_openssl.so
%{_libdir}/xine/plugins/%{api}/xineplug_vdr.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_vaapi.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_vdpau.so
%{_libdir}/xine/plugins/%{api}/xineplug_xiph.so
%if %{build_directfb}
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_directfb.so
%endif
%if %{build_linuxfb}
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_fb.so
%endif
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_opengl.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_opengl2.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_raw.so
%if %{build_vidix}
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_vidix.so
%{_libdir}/xine/plugins/%{api}/vidix/
%endif
%{_libdir}/xine/plugins/%{api}/xineplug_vo_gl_egl_wl.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_gl_egl_x11.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_gl_glx.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_xshm.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_xv.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_xvmc.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_xxmc.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_xcbshm.so
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_xcbxv.so
%if %{build_win32}
#%%{_libdir}/xine/plugins/%{api}/xineplug_decode_qt.so*
%{_libdir}/xine/plugins/%{api}/xineplug_decode_w32dll.so*
%endif
%{_libdir}/xine/plugins/%{api}/post/xineplug_post_audio_filters.so
%{_libdir}/xine/plugins/%{api}/post/xineplug_post_goom.so
%{_libdir}/xine/plugins/%{api}/post/xineplug_post_mosaico.so
%{_libdir}/xine/plugins/%{api}/post/xineplug_post_planar.so
%{_libdir}/xine/plugins/%{api}/post/xineplug_post_switch.so
%{_libdir}/xine/plugins/%{api}/post/xineplug_post_tvtime.so
%{_libdir}/xine/plugins/%{api}/post/xineplug_post_visualizations.so
%{_libdir}/xine/plugins/%{api}/xineplug_hw_frame_vaapi.so
%{_libdir}/xine/plugins/%{api}/xineplug_inp_crypto.so
%{_libdir}/xine/plugins/%{api}/xineplug_va_display_drm.so
%{_libdir}/xine/plugins/%{api}/xineplug_va_display_glx.so
%{_libdir}/xine/plugins/%{api}/xineplug_va_display_wl.so
%{_libdir}/xine/plugins/%{api}/xineplug_va_display_x11.so
%{_datadir}/xine-lib

#----------------------------------------------------------------------------

%package -n %{bname}-wavpack
Group:		Sound
Summary:	Wavpack Audio decoder plugin for xine
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-wavpack
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the wavpack audio decoder plugin.

%files -n %{bname}-wavpack
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_wavpack.so

#----------------------------------------------------------------------------

%package -n %{bname}-sdl
Group:		Video
Summary:	SDL video output plugin for xine
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-sdl
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the SDL video output plugin.

%files -n %{bname}-sdl
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_sdl.so

#----------------------------------------------------------------------------

%if %{build_caca}
%package -n %{bname}-caca
Group:		Video
Summary:	Caca video output plugin for xine
Requires:	%{bname}-plugins = %{version}
BuildRequires:	libcaca-devel >= 0.99

%description -n %{bname}-caca
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the Caca video output plugin.

%files -n %{bname}-caca
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_caca.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-esd
Summary:	Esd plugin for xine
Group:		Sound
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-esd
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the Esd audio output plugin.

%files -n %{bname}-esd
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_ao_out_esd.so

#----------------------------------------------------------------------------

%package -n %{bname}-jack
Summary:	Jack plugin for xine
Group:		Sound
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-jack
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the Jack audio output plugin.

%files -n %{bname}-jack
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_ao_out_jack.so

#----------------------------------------------------------------------------

%if %{build_pulse}
%package -n %{bname}-pulse
Summary:	Pulseaudio plugin for xine
Group:		Sound
Requires:	%{bname}-plugins = %{version}
BuildRequires:	pkgconfig(libpulse)

%description -n %{bname}-pulse
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the pulseaudio audio output plugin.

%files -n %{bname}-pulse
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_ao_out_pulseaudio.so
%endif

#----------------------------------------------------------------------------

%if %{build_magick}
%package -n %{bname}-image
Summary:	ImageMagick plugin for xine
Group:		Graphics
Requires:	%{bname}-plugins = %{version}
BuildRequires:	pkgconfig(GraphicsMagickWand)

%description -n %{bname}-image
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the image display plugin based on ImageMagick.

%files -n %{bname}-image
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_decode_image.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-aa
Summary:	Aalib plugin for xine
Group:		Video
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-aa
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the Aalib textmode output plugin.

%files -n %{bname}-aa
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_vo_out_aa.so

#----------------------------------------------------------------------------

%ifarch %{ix86} %{x86_64} ppc %{armx} %{e2k} riscv64
%package -n %{bname}-dxr3
Summary:	DXR3 plugin for xine
Group:		Video
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-dxr3
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the DXR3/Hollywood+ (MPEG2 hardware decoder)
decoding/output plugin.

%files -n %{bname}-dxr3
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_*dxr3*.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-flac
Summary:	FLAC plugin for xine
Group:		Sound
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-flac
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the FLAC audio decoder plugin.

%files -n %{bname}-flac
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_flac.so

#----------------------------------------------------------------------------

%package -n %{bname}-gnomevfs
Summary:	GNOME VFS plugin for xine
Group:		System/Libraries
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-gnomevfs
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the GNOME VFS input plugin.

%files -n %{bname}-gnomevfs
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_inp_gnome_vfs.so

#----------------------------------------------------------------------------

%if %{build_smb}
%package -n %{bname}-smb
Summary:	Samba input plugin for xine
Group:		System/Libraries
Requires:	%{bname}-plugins = %{version}

%description -n %{bname}-smb
Xine is a free GPL-licensed video player for unix-like systems.
This package contains the Samba input plugin.

%files -n %{bname}-smb
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_inp_smb.so
%endif

#----------------------------------------------------------------------------

%ifarch %ix86
%if %{build_divx4}
%package -n %{bname}-divx4
Summary:	Divx4 plugin for %{bname}
Group: 		Video
Requires:	%{bname}-plugins = %{version}
Provides:	xine-plugins-divx4

%description -n %{bname}-divx4
This package contains the divx4linux plugin for %{bname}. It is in
restricted because it is covered by software patents.

%files -n %{bname}-divx4
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_decode_divx4.so*
%endif
%endif

#----------------------------------------------------------------------------

%if %{build_faad}
%package -n %{bname}-faad
Summary:	FAAD plugin for %{bname}
Group:		Sound
Requires:	%{bname}-plugins = %{version}
BuildRequires:	libfaad2-devel

%description -n %{bname}-faad
This package contains the AAC decoder plugin for %{bname}. It is in
restricted repository because it is covered by software patents.

%files -n %{bname}-faad
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_decode_faad.so*
%endif

#----------------------------------------------------------------------------

%if %{build_xvid}
%package -n %{bname}-xvid
Summary:	XviD plugin for %{bname}
Group:		Video
Requires:	%{bname}-plugins = %{version}
Provides:	xine-plugins-xvid

%description -n %{bname}-xvid
This package contains the XviD plugin for %{bname}. It is in
restricted because it is covered by software patents.

%files -n %{bname}-xvid
%doc README
%{_libdir}/xine/plugins/%{api}/xineplug_decode_xvid.so*
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# glibc 2.28 compat
find . -type f -exec sed -i 's,^#include <sys/types.h>,#include <sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
autoreconf -vfi
#gw for flac
export OGG_LIBS=-logg

%configure \
%if ! %{external_vcdnav}
	--with-internal-vcdlibs \
%endif
%if %{build_directfb}
	--enable-directfb \
%endif
%if ! %{build_alsa}
	--disable-alsa \
%endif
%if ! %{build_vidix}
	--disable-vidix \
%endif
%if ! %{build_faad}
    --disable-faad \
%endif
%if ! %{build_pulse}
	--disable-polypaudio \
%endif
%if ! %{build_linuxfb}
	--disable-fb \
%endif
	--enable-ipv6 \
	--with-libflac \
	--with-wavpack \
	--with-w32-path=%{_libdir}/codecs
# real-codecs-path is not set so that runtime searching is used. We want
# to use either codecs from RealPlayer or real-codecs, whichever is
# present.

%make


%install
%makeinstall_std


#clean out unpackaged files
rm -f %{buildroot}%{_libdir}/xine/plugins/*/*.la
rm -f %{buildroot}%{_libdir}/xine/plugins/*/post/*.la
rm -rf installed-docs
mv %{buildroot}%{_datadir}/doc/xine-lib installed-docs
rm -f %{buildroot}%{_libdir}/xine/plugins/*/xineplug_inp_vcdo.so

%find_lang libxine2 || touch libxine2.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11612 |21cr|xine-skins-5.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#gw The package version is the skin.version in the skinconfig file
#gw TODO, next time, remove the .0 to match the skin.version

Summary:	Skins for Xine
Group:		Video
Name:		xine-skins
Version:	5.0
Release:	12
License:	GPL
Url: http://xinehq.de/index.php/skins
Source0:	%name-%version.tar.bz2
Requires:	xine-ui >= 0.99.1
BuildArch:	noarch

%description
This package contains additional skins for the Xine UI.

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/xine/skins
for skin in *.tar.gz;do tar xzf $skin -C %{buildroot}%{_datadir}/xine/skins
done

#gw remove skin sources
rm -rf %{buildroot}%{_datadir}/xine/skins/*/src/

%files
%{_datadir}/xine/skins

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11613 |21cr|xine-ui-0.99.13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Free Video Player
Name:		xine-ui
Version:	0.99.13
Release:	4
License:	GPLv2+
Group:		Video
Url:		https://sourceforge.net/projects/xine/
Source0:	https://sourceforge.net/projects/xine/files/xine-ui/%{version}/%{name}-%{version}.tar.xz
Source1:	xine-opendvd.desktop
Patch0:		xine-ui-0.99.7-locale.patch
#from Fedora
Patch1:		xine-ui-0.99.13-utf8doc.patch
Patch2:		xine-ui-0.9.13-Fix_build.patch
BuildRequires:	gettext
BuildRequires:	gzip-utils
BuildRequires:	aalib-devel >= 1.2.0
BuildRequires:	gpm-devel
BuildRequires:	libtar-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(caca)
BuildRequires:	pkgconfig(libcurl) >= 7.10.2
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libpng) >= 1.2.8
BuildRequires:	pkgconfig(libxine) >= 1.1.0
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	curl
Requires:	xine-plugins

%description
Xine is a free GPL-licensed video player for UNIX-like systems.
User interface for the X Window system.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%doc doc/README*
%{_bindir}/xine*
%{_datadir}/xine
%{_datadir}/pixmaps/*
%{_datadir}/applications/xine.desktop
%{_datadir}/applications/%{name}.desktop
%{_datadir}/apps/solid/actions/xine-opendvd.desktop
%{_datadir}/icons/hicolor/*/apps/xine*
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/*
%lang(de) %{_mandir}/de/man1/*
%lang(es) %{_mandir}/es/man1/*
%lang(fr) %{_mandir}/fr/man1/*
%lang(pl) %{_mandir}/pl/man1/*

#----------------------------------------------------------------------------

%package	aa
Summary:	XINE - Ascii Art player
Requires:	xine-plugins
Requires:	xine-aa

%description	aa
xine is a free GPL-licensed video player for UNIX-like systems.
User interface with ascii art (text mode) output.

%files aa
%doc README
%{_bindir}/aaxine
%{_bindir}/cacaxine

#-----------------------------------------------------------------------------

%package	fb
Summary:	XINE - framebuffer video player
Requires:	xine-plugins

%description	fb
xine is a free GPL-licensed video player for UNIX-like systems.
User interface with support for linux framebuffer output.

%files fb
%doc README
%{_bindir}/fbxine

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
export XINE_DOCPATH="%{_datadir}/doc/%{name}"
%configure \
	--enable-vdr-keys \
	--with-caca \
	--with-aalib
%make


%install
%makeinstall_std transform=""

install -m644 misc/desktops/xine.desktop -D %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m644 %{SOURCE1} -D %{buildroot}%{_datadir}/apps/solid/actions/xine-opendvd.desktop

# Drop unwanted stuff
rm -rf %{buildroot}%{_datadir}/doc
rm -rf %{buildroot}%{_datadir}/xine/desktop

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat xine.svgz > xine.svg && rm -f xine.svgz
)


%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11614 |21cr|xinput_calibrator-0.7.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A generic touchscreen calibration program for X.Org
Name:		xinput_calibrator
Version:	0.7.5
Release:	8
License:	MIT
Group:		System/X11
Url:		http://www.freedesktop.org/wiki/Software/xinput_calibrator
Source0:	http://github.com/downloads/tias/xinput_calibrator/%{name}-%{version}.tar.gz
# https://github.com/tias/xinput_calibrator/pull/82
Patch0001:	0001-Translate-desktop-file-into-Russian.patch
BuildRequires:	pkgconfig(gtkmm-2.4)

%description
xinput_calibrator is a program for calibrating your touchscreen, when using
the X Window System. It currently features:
 - works for any standard Xorg touchscreen driver (uses XInput protocol)
 - mis-click detection (prevents bogus calibration)
 - dynamically recalibrates the evdev driver
 - outputs the calibration as xorg.conf.d snippet or HAL policy file
 - and more...

%files
%license COPYING
%doc Changelog README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.svg
%{_datadir}/pixmaps/%{name}.xpm
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11615 |21cr|xinput-calibrator-gui-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Калибровка сенсорного экрана
Summary:	GUI for touchscreen calibrating
Name:		xinput-calibrator-gui
Version:	1.0
Release:	14
License:	GPLv3
Group:		System/Configuration/Other
Url:		https://hub.mos.ru/mos/pkgs/%{name}
Source0:	%{name}.py
Source1:	%{name}.desktop
Source2:	%{name}.svg
Source3:    xinputcalibrator_classes.py
BuildArch:	noarch
Requires:	xinput_calibrator
Requires:	python3-qt5-gui
Requires:	python3-qt5-widgets

%description
GUI for touchscreen calibrating

%description -l ru_RU.UTF-8
Графический интерфейс для калибровки сенсорных экранов

%files
%{_bindir}/%{name}
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{python3_sitelib}/xinputcalibrator_classes.py
%{python3_sitelib}/__pycache__/xinputcalibrator*
#------------------------------------------------------------------

%prep
cp %sources .

%build

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 %{name}.py %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
install -m644 %{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps

mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{name}.desktop %{buildroot}%{_datadir}/applications

mkdir -p %{buildroot}%{python3_sitelib}
install -m644 xinputcalibrator_classes.py %{buildroot}%{python3_sitelib}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11616 |21cr|xisxwayland-2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:    Tool to check if the X server is XWayland
Name:       xisxwayland
Version:    2
Release:    1
Group:		System/X11
License:    MIT
URL:        https://www.x.org
Source0:    https://www.x.org/pub/individual/app/%{name}-%{version}.tar.xz
BuildRequires:  meson
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xrandr)

%description
xisxwayland is a tool to be used within shell scripts to determine whether
the X server in use is Xwayland. It exits with status 0 if the server is an
Xwayland server and 1 otherwise.

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%files
%license COPYING
%{_bindir}/xisxwayland
%{_mandir}/man1/xisxwayland.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11617 |21cr|xjadeo-0.8.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Simple video player that receives sync from jack transport
Name:		xjadeo
Version:	0.8.11
Release:	1
Group:		Video
License:	GPLv2+
# Devel tree at: https://github.com/x42/xjadeo
Url:		https://sourceforge.net/projects/xjadeo/
Source0:	https://sourceforge.net/projects/xjadeo/files/xjadeo/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	ffmpeg-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(imlib2) >= 1.3.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(ltc)
#BuildRequires:	pkgconfig(portmidi)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xv)
Recommends:	mencoder
Recommends:	qjadeo

%description
Simple video player that receives sync from jackd or MTC.
It has applications in soundtrack creation, video monitoring or any task that
requires to associate movie frames with audio events.
For instance when a jack-client (like Muse, Rosegarden or Ardour) acts as a
timebase master, xjadeo will display the video synchronized to JACK transport.
xjadeo is capable to read Midi Time Clock as an alternate sync source and comes
along with an optional QT-GUI.
xjadeo reads only seekable media by default. Installing a transcoding utility
like mencoder or transcode is highly recommended.

%files
%doc AUTHORS COPYING ChangeLog README
%{_bindir}/%{name}
%{_bindir}/xjremote
%{_datadir}/%{name}/ArdourMono.ttf
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/xjremote.1*

#----------------------------------------------------------------------------

%package -n qjadeo
Summary:	Qt-based GUI for xjadeo
Requires:	%{name}

%description -n qjadeo
Qt-based GUI for xjadeo, a simple video player that receives sync from jack
transport.

%files  -n qjadeo -f qjadeo.lang
%doc COPYING
%{_bindir}/qjadeo
%{_datadir}/applications/qjadeo.desktop
%{_iconsdir}/hicolor/*/apps/qjadeo.png

#----------------------------------------------------------------------------

%prep
%setup -q


%build
export CC=gcc
export CXX=g++
# With portmidi-devel package installed the build fails because
# it does not find libporttime (we don't have it)
%configure --disable-portmidi --enable-qtgui
%make


%install
%makeinstall_std

# Install menu entry for the GUI
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/qjadeo.desktop << EOF
[Desktop Entry]
Type=Application
Name=Qjadeo
GenericName=X jack video monitor
Comment=A simple video player that gets sync from jack transport
Icon=qjadeo
Exec=qjadeo
Terminal=false
Categories=AudioVideo;Video;Player;
EOF

# Install menu icons for the GUI
for N in 16 32 48 64 128;
do
	convert src/qt-gui/images/qjadeo.png -resize ${N}x${N} $N.png;
	install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/qjadeo.png
done

%find_lang qjadeo --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11618 |21cr|xkb-switch-1.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major 1
%global libname %mklibname xkbswitch %{major}

Summary:	Query and change X keyboard layouts from the command line
Name:		xkb-switch
Version:	1.8.5
Release:	1
License:	GPLv3+
Group:		System/X11
URL:		https://github.com/grwlf/xkb-switch
Source0:	https://github.com/grwlf/xkb-switch/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(xkbfile)

%description
xkb-switch is a C++ program that allows to query and change the XKB
layout state. Originally ruby-based code was written by J.Broomley.

%files
%doc README.md COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for using the xkb-switch tool within the Vim text editor
Group:		System/Libraries

%description -n %{libname}
The library provides API bindings for Vim to use the xkb-switch
from vim scripts (e.g. vim-xkbswitch plugin).

%files -n %{libname}
%doc README.md COPYING
%{_libdir}/libxkbswitch.so.%{major}*

#------------------------------------------------------------------

%prep
%setup -q
sed -i 's/LIBRARY DESTINATION lib OPTIONAL/LIBRARY DESTINATION %{_lib} OPTIONAL/' CMakeLists.txt

%build
%cmake
%make

%install
%makeinstall_std -C build
rm -f %{buildroot}/%{_libdir}/libxkbswitch.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11619 |21cr|xlog-2.0.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xlog
Version:	2.0.24
Release:	1
Summary:	Logging program for Hamradio Operators
Group:		Communications
License:	GPLv3+
Url:		http://www.nongnu.org/xlog/
Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
Patch0:		xlog-2.0.5.patch
Patch1:		xlog-2.0.24-drop-Werror.patch
BuildRequires:	desktop-file-utils
BuildRequires:	shared-mime-info
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.18.0
BuildRequires:	pkgconfig(hamlib)

%description
xlog is a logging program for amateur radio operators. The log is stored into
a text file. QSO's are presented in a list. Items in the list can be added,
deleted or updated. For each contact, dxcc information is displayed and
bearings and distance is calculated, both short and long path. xlog supports
trlog, adif, cabrillo, edit, twlog and editest files.

%files -f %{name}.lang
%doc AUTHORS data/doc/BUGS ChangeLog COPYING NEWS README
%doc data/doc/TODO data/doc/manual
%doc %{_docdir}/xlog/KEYS
%doc %{_docdir}/xlog/glabels/qsllabels.glabels

%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/dxcc
%{_datadir}/%{name}/maps
%{_datadir}/pixmaps/%{name}/*
%{_datadir}/icons/gnome-mime-text-x-%{name}.png
%{_datadir}/icons/%{name}-icon.png
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
#autoreconf -vfi
%configure
%make


%install
%makeinstall_std
rm -f %{buildroot}%{_datadir}/applications/mimeinfo.cache

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11620 |21cr|xlogmaster-1.6.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Quick & easy monitoring of logfiles and devices
Name:		xlogmaster
Version:	1.6.2
Release:	6
License:	GPLv2+
Group:		Monitoring
Url:		http://www.gnu.org/software/xlogmaster/
Source0:	ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}-icons.tar.bz2
Patch0:		xlogmaster-1.6.2-workaround-pointer-to-int-casting.patch
BuildRequires:	pkgconfig(gtk+)

%description
The Xlogmaster is a program that allows easy and flexible monitoring of
all logfiles and devices that allow being read via cat (like the /proc
devices). It allows you to set a lot of events based on certain activities
in the monitored logfiles/devices and should prove very helpful for almost
anyone.

%files
%doc NEWS README TODO 
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%dir %{_localstatedir}/lib/%{name}
%{_localstatedir}/lib/%{name}/*
%{_mandir}/man1/%{name}.1*
%{_infodir}/%{name}.info*
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -a1
%patch0 -p1 -b .cast~

%build
%configure \
	--with-xlogmaster-home=%{_sysconfdir} \
	--with-xlogmaster-lib=%{_datadir}/xlogmaster \
	--with-xlogmaster-db=%{_localstatedir}/lib/xlogmaster \
	--disable-gtkrc

%make

%install
%makeinstall XLM_LIB=%{buildroot}%{_datadir}/%{name} XLM_DB=%{buildroot}%{_localstatedir}/lib/%{name}

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Icon=%{name}
Categories=System;Monitor;
Name=%{name}
Exec=%{name}
Comment=Logfile viewer
EOF

install -m644 icons/16x16.png -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 icons/32x32.png -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 icons/48x48.png -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11621 |21cr|xmake-1.06-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xmake
Version:	1.06
Release:	11
Summary:	XMAKE allows you to easily construct multiple complex dependencies
License:	GPL
Group:		Development/Other

Source0:	%{name}-%{version}.tar.bz2

URL:		http://apollo.backplane.com/xmake/

%description
XMAKE is similar to other make's out there, but is specifically designed to
allow you to easily construct multiple complex dependencies without getting
screwed by default rulesets. XMake contains a number of features specifically
designed to trivialize the construction of compilation rules.

%prep
%setup -q -n %{name}

%build
%make CFLAGS="$RPM_OPT_FLAGS"
perl -pi -e "s#-g -O2 -Wall -Wstrict-prototypes#$RPM_OPT_FLAGS#g" XMakefile
./%{name}

%install
install obj/%{name} -D %{buildroot}%{_bindir}/%{name}
install %{name}.1 -D %{buildroot}%{_mandir}/man1/xmake.1

%files
%defattr (644,root,root,755)
%doc README RELEASE_NOTES
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11622 |21cr|xmds-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	EXtensible multi-dimensional Simulator 
Name:		xmds
Version:	3.1.0
Release:	1
License:	GPL
Group:		Sciences/Other
Url:		http://www.xmds.org
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildArch:	noarch
 
%description
The purpose of XMDS2 is to simplify the process of creating
simulations that solve systems of initial-value first-order partial
and ordinary differential equations. Instead of going through the
error-prone process of writing by hand thousands of lines of code,
XMDS2 enables many problems to be described in a simple XML format.
From this XML description XMDS2 writes a C++ simulation that solves
the problem using fast algorithms. Anecdotally, the code generated
by XMDS2 is as fast as, or faster than, code hand-written by an
expert, but by using XMDS2 the time taken to produce the simulation
is significantly reduced.

%files
%doc README ReleaseNotes examples
%doc documentation/*
%{_bindir}/*
%{py3_puresitedir}/*

#----------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11623 |21cr|xmedcon-0.14.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		2
%define libname		%mklibname mdc %{major}
%define devname		%mklibname mdc -d

Name:		xmedcon
Version:	0.14.1
Release:	3
Summary:	An open source toolkit for medical image conversion
Group:		Graphics
License:	GPLv2
URL:		http://xmedcon.sourceforge.net
Source0:	http://sourceforge.net/projects/xmedcon/files/XMedCon-Source/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gtk+-2.0)

%description
This project stands for Medical Image Conversion and is released under the
GNU's (L)GPL license. It bundles the C source code, a library, a flexible
command-line utility and a graphical front-end based on the amazing Gtk+
toolkit.

Its main purpose is image conversion while preserving valuable medical
study information. The currently supported formats are: Acr/Nema 2.0,
Analyze (SPM), Concorde/uPET, DICOM 3.0, CTI ECAT 6/7, InterFile 3.3
and PNG or Gif87a/89a towards desktop applications.

%files
%defattr(-, root, root)
%doc ChangeLog COPYING COPYING.LIB README REMARKS AUTHORS
/usr/etc/xmedconrc
%{_bindir}/medcon
%{_bindir}/xmedcon
%{_bindir}/xmedcon-config
%{_datadir}/appdata/%{name}.appdata.xml
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary: Libraries for (X)MedCon
Group: System/Libraries

%description -n %{libname}

This package contains (X)MedCon shared library (libmdc).

%files -n %{libname}
%{_libdir}/*so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary: Header files for (X)MedCon development
Group: Development/C
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n %{devname}

The xmedcon-devel package contains the header files necessary for developing
programs that make use of the (X)MedCon library (libmdc).

%files -n %{devname}
%doc README COPYING COPYING.LIB
%defattr(-,root,root)
%{_mandir}/man3/*
%{_mandir}/man4/*
%{_includedir}/*
%{_libdir}/*.so
%{_datadir}/aclocal/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
    --disable-static

%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_libdir}/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11624 |21cr|xmerlin-0.9b-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tver    0.9
%define debug_package	%{nil}
Summary: Character recognition engine for X11 devices
Name:    xmerlin
Version: 0.9b
Release: 17
Source0: %{name}-%{tver}_public.tar.bz2
Patch0: xmerlin-0.9b-gcc3_4.patch
URL: http://www.hellkvist.org/software/index.php3#XMerlin
License: GPL
Group: System/X11
BuildRequires: pkgconfig(x11)

%description
XMerlin is a simple character recognition engine for X11-based Web pads
and such devices where a regular keyboard is not an option. You write your
characters in a window, and after recognition the character is sent to the
window in focus, which could we an editor, web browser, or any other
window/widget that accepts SendEvents.

%prep

%setup -q -n %{name}-%{tver}_public
%patch0 -p1 -b .gcc3_4

%build
# modify Makefile
perl -pi -e "s|/usr/local/share/merlin|\\$\(INSTALL_PREFIX)/share/merlin||g;" Makefile
perl -pi -e "s|/usr/X11R6/bin|\\$\(INSTALL_PREFIX)/bin||g;" Makefile
perl -pi -e "s|-O2 -Wall |\\$\(OTHER_CFLAGS) -O2 -Wall ||g;" Makefile

# build
make OTHER_CFLAGS="%{optflags}" INSTALL_PREFIX=%{_prefix}

%install
mkdir -p %{buildroot}%{_prefix}/{bin,share/merlin}/
make INSTALL_PREFIX=%{buildroot}%{_prefix} install

%clean

%files
%doc doc/* COPYING INSTALL WHATISNEW
%{_bindir}/*
%dir %{_datadir}/merlin/
%{_datadir}/merlin/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11625 |21cr|xmh-1.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xmh
Version:	1.0.3
Release:	5
Summary:	Send and read mail with an X interface to MH
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Patch0:		xmh-1.0.1-fix-str-fmt.patch
License:	MIT

BuildRequires:	pkgconfig(xt) >= 1.0.0
BuildRequires:	pkgconfig(xaw7) >= 1.0.1
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	x11-data-bitmaps

%description
The xmh program provides a graphical user interface to the MH Message
Handling System.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p0

%build
%configure
%make

%install
%makeinstall_std

%files
%defattr(-,root,root)
%{_bindir}/xmh
%{_datadir}/X11/app-defaults/Xmh
%{_mandir}/man1/xmh.1*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11626 |21cr|xmind-3.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

#First is private, second is false (comes from libcairo-swt.so)
%if %{_use_internal_dependency_generator}
%global __provides_exclude eclipse(.*)|libcairo(.*)
%endif

#http://www.xmind.net/xmind/downloads/xmind7-portable-3.6.0.R-201511090408.zip

%define snapshot 201511090408

Summary:	XMind
Name:		xmind
Version:	3.6.0
Release:	4
Group:		Networking/WWW
License:	Eclipse Public License
Url:		http://www.xmind.net/
Source0:	http://www.xmind.net/xmind/downloads/%{name}7-portable-%{version}.R-%{snapshot}.zip
Source1:	%{name}.png
Source2:	%{name}.xml
Source3:	%{name}
Requires:	java >= 1.6
Requires:	libxulrunner

%description
XMind is the world's coolest brainstorming and mind
mapping software and the best way to share your ideas.

%prep
%setup -q -c -n %{name}-portable-%{version}.%{snapshot}
rm -rf XMind_Windows XMind_Mac_OS_X XMind_Mac_OS_X_64bit
rm -rf Commons/plugins/*macosx* Commons/plugins/*win32*

%build

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/%{name}
%ifarch x86_64
rm -rf XMind_Linux
rm -rf Commons/plugins/*linux.x86_1*
cp -af * %{buildroot}/%{_datadir}/%{name}
chmod 777 %{buildroot}/%{_datadir}/%{name}/XMind_Linux_64bit/configuration
%else
rm -rf XMind_Linux_64bit
rm -rf Commons/plugins/*linux.x86_64_1*
cp -af * %{buildroot}/%{_datadir}/%{name}
chmod 777 %{buildroot}/%{_datadir}/%{name}/XMind_Linux/configuration
%endif
mkdir -p %{buildroot}/%{_datadir}/%{name}/Commons/data
chmod 777 %{buildroot}/%{_datadir}/%{name}/Commons/data
install -m 777 %{SOURCE3} %{buildroot}/%{_bindir}/

# menu 
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=XMind
Comment=Launch XMind
Comment[ru]=Запуск XMind
Exec=%{name}
Terminal=false
Type=Application
Icon=%{name}.png
StartupNotify=true
Categories=Office;X-MandrivaLinux-Office-Other;
MimeType=application/%{name};
EOF

#icon
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/mime/packages
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/%{name}.xml

%files
%doc *.txt *.html
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11627 |21cr|xmlbird-1.2.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major   1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	XML parser with support for Vala iterators
Name:		xmlbird
Version:	1.2.12
Release:	2
License:	LGPLv3+
Group:		System/Libraries
Url:		http://birdfont.org/xmlbird.php
Source0:	http://birdfont.org/xmlbird-releases/lib%{name}-%{version}.tar.xz
BuildRequires:	dpkg
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)

%description
XML parser with support for Vala iterators.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	XML parser with support for Vala iterators
Group:		System/Libraries

%description -n %{libname}
XML parser with support for Vala iterators.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for the %{name} XML parser.

%files -n %{devname}
%{_datadir}/vala/vapi/%{name}.vapi
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}.h

#----------------------------------------------------------------------------

%prep
%setup -q -n lib%{name}-%{version}

sed -i -e 's/^libdir=.*/libdir=\${exec_prefix}\/%{_lib}/' scripts/pkgconfig.py

%build
%__python3 configure -p%{_prefix} -l%{_lib}
%__python3 build.py

%install
%__python3 install.py -d%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11628 |21cr|xmlformat-1.04-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	XML Document Formatter
Name:		xmlformat
Version:	1.04
Release:	8
License:	BSD
Group:		Publishing
URL:		http://www.kitebird.com/software/xmlformat/
Source0:	http://www.kitebird.com/software/xmlformat/%{name}-%{version}.tar.gz
BuildRequires:	perl
BuildRequires:	ruby
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
xmlformat is a configurable formatter (or "pretty-printer") for XML documents.
It provides control over indentation, line-breaking, and text wrapping. These
properties can be defined on a per-element basis.

xmlformat %{version} provides improved diagnostic information when a document
is not well-formed. (Prints line and token number, and stack trace). 

%prep

%setup -q

%build

%check
make test

%install
rm -fr %{buildroot}

install -d %{buildroot}%{_bindir}

install -m0755 xmlformat.pl %{buildroot}%{_bindir}/
install -m0755 xmlformat.rb %{buildroot}%{_bindir}/

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root)
%doc BUGS ChangeLog INSTALL LICENSE README TODO
%doc bad* test.conf docs tests
%{_bindir}/xmlformat.pl
%{_bindir}/xmlformat.rb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11629 |21cr|xmlgraphics-commons-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	XML Graphics Commons
Name:		xmlgraphics-commons
Version:	2.3
Release:	1
License:	Apache License
Group:		Development/Java
Url:		http://xmlgraphics.apache.org/
Source0:	http://apache.osuosl.org/xmlgraphics/commons/source/xmlgraphics-commons-2.3-src.tar.gz
BuildArch:	noarch
BuildRequires:	java-rpmbuild >= 0:1.6
BuildRequires:	ant >= 0:1.6
BuildRequires:	ant-junit >= 0:1.6
BuildRequires:	junit
BuildRequires:	jakarta-commons-io >= 0:1.1
BuildRequires:	jakarta-commons-logging
BuildRequires:	java-1.8.0-openjdk-devel
Requires:	jakarta-commons-io >= 0:1.1
Requires:	jakarta-commons-logging

%description
Apache XML Graphics Commons is a library that consists of 
several reusable components used by Apache Batik and 
Apache FOP. Many of these components can easily be used 
separately outside the domains of SVG and XSL-FO. You will 
find components such as a PDF library, an RTF library, 
Graphics2D implementations that let you generate PDF & 
PostScript files, and much more.

%files
%defattr(0644,root,root,0755)
%doc LICENSE NOTICE README
%{_javadir}/*.jar

#--------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description javadoc
%{summary}.

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

#--------------------------------------------------------------

%prep
%setup -q
rm `find . -name "*.jar"`

%build
export JAVA_HOME=%{java_home}
export ANT_HOME=/usr/share/ant
export CLASSPATH=$CLASSPATH:/usr/share/java/commons-logging.jar
export OPT_JAR_LIST="ant/ant-junit junit"
pushd lib
ln -sf $(build-classpath commons-io) .
popd
%ant package javadocs

%install
install -Dpm 0644 build/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr build/javadocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11630 |21cr|xmlindent-0.2.17-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xmlindent
Version:	0.2.17
Release:	10
Summary:	XML stream reformatter
Group:		Development/Other
License:	GPL
URL:		http://xmlindent.sf.net/
Source0:	http://dl.sf.net/xmlindent/%{name}-%{version}.tar.bz2
BuildRequires:	flex

%description
XML Indent is a XML stream reformatter written in ANSI C.
It is analogous to GNU indent.

%prep
%setup -q
sed -i -e "s,-Wall,-Wall \$(CFLAGS),g" -e "s,555,755," -e "s,444,644," Makefile

%build
%make CFLAGS="$RPM_OPT_FLAGS"

%install
rm -rf $RPM_BUILD_ROOT
make install PREFIX=$RPM_BUILD_ROOT%{_prefix}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root,-)
%doc ChangeLog BUGS README LICENSE
%{_bindir}/xmlindent
%{_mandir}/man1/xmlindent.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11631 |21cr|xmlrpc-epi-0.54.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname xmlrpc-epi %{major}
%define devname %mklibname xmlrpc-epi -d

Summary:	An implementation of the XML-RPC protocol in C
Name:		xmlrpc-epi
Version:	0.54.2
Release:	9
License:	BSD
Group:		System/Libraries
URL:		http://xmlrpc-epi.sourceforge.net
Source0:	http://sunet.dl.sourceforge.net/sourceforge/xmlrpc-epi/xmlrpc-epi-%{version}.tar.bz2
Patch0:		xmlrpc-epi-0.51-format_not_a_string_literal_and_no_format_arguments.diff
Patch1:		xmlrpc-epi-0.54-no_samples.diff
Patch2:		xmlrpc-epi-0.54.2-CVE-2016-6296.patch
Patch3:		xmlrpc-epi-0.54.2-php5.6.40.patch
BuildRequires:	pkgconfig(expat)

%description
xmlrpc-epi is an implementation of the xmlrpc protocol in C. It provides an 
easy to use API for developers to serialize RPC requests to and from XML.
It does *not* include a transport layer, such as HTTP. The API is primarily
based upon proprietary code written for internal usage at Epinions.com, and
was later modified to incorporate concepts from the xmlrpc protocol.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing XMLPC support in C
Group:		System/Libraries

%description -n %{libname}
xmlrpc-epi is an implementation of the xmlrpc protocol in C. It provides an 
easy to use API for developers to serialize RPC requests to and from XML.
It does *not* include a transport layer, such as HTTP. The API is primarily
based upon proprietary code written for internal usage at Epinions.com, and
was later modified to incorporate concepts from the xmlrpc protocol.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/libxmlrpc-epi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc. to develop XML and HTML applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libxmlrpc-devel = %{EVRD}
Provides:	xmlrpc-epi-devel = %{EVRD}

%description -n %{devname}
xmlrpc-epi is an implementation of the xmlrpc protocol in C. It provides an
easy to use API for developers to serialize RPC requests to and from XML.
It does *not* include a transport layer, such as HTTP. The API is primarily
based upon proprietary code written for internal usage at Epinions.com, and
was later modified to incorporate concepts from the xmlrpc protocol.

%files -n %{devname}
%doc INSTALL
%dir %{_includedir}/xmlrpc-epi
%{_includedir}/xmlrpc-epi/*
%{_libdir}/libxmlrpc-epi.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .format_not_a_string_literal_and_no_format_arguments
%patch1 -p0 -b .no_samples
%patch2 -p1
%patch3 -p1

# Make it lib64 aware
find . -name "Makefile.*" | xargs perl -pi -e "s,-L\@prefix\@/lib,,g"

perl -pi -e "s,-L/usr/local/lib\b,," configure*
perl -pi -e "s|withval/lib|withval/%{_lib}|g" configure*

%build
autoreconf -fi
%configure \
	--disable-static

#don't use parallel compilation, it is broken 
# (tpg) this is better ;)
%(echo %make|perl -pe 's/-j\d+/-j1/g')

%install

%makeinstall_std

# fix file conflicts
install -d %{buildroot}%{_includedir}/xmlrpc-epi
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/xmlrpc-epi/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11632 |21cr|xmltv-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

#  This will build the grabbers as fallows :
#  Grabber for Argentina (tv_grab_ar)                                          [yes]
#  Grabber for Switzerland (tv_grab_ch_search)                                 [yes]
#  Grabber for UK and Ireland (Radio Times) (tv_grab_uk_rt)                    [yes]
#  Fast alternative grabber for the UK (tv_grab_uk_bleb)                       [yes]
#  Fast grabber for UK and Ireland using Atlas database (tv_grab_uk_atlas)     [yes]
#  Grabber for UK and Ireland using The Guardian website (tv_grab_uk_guardian) [yes]
#  Grabber for UK and Ireland using TV Guide website (tv_grab_uk_tvguide)      [yes]
#  Grabber for Iceland (tv_grab_is)                                            [yes]
#  Grabber for Italy (tv_grab_it)                                              [yes]
#  Grabber for Italy from DVB-S stream (tv_grab_it_dvb)                        [yes]
#  $$ Grabber for North America-schedulesdirect.org (tv_grab_na_dd)            [yes]
#  Grabber for Finland (tv_grab_fi)                                            [yes]
#  Grabber for Israel (tv_grab_il)                                             [yes]
#  Alternative grabber for Spain (tv_grab_es_laguiatv)                         [yes]
#  Grabber for Hungary and Romania (tv_grab_huro)                              [yes]
#  Grabber for Sweden (tv_grab_se_swedb)                                       [yes]
#  Grabber for Croatia (tv_grab_hr)                                            [yes]
#  Grabber for Norway (gfeed.info) (tv_grab_no_gfeed)                          [yes]
#  Grabber for german speaking area (Egon zappt) (tv_grab_eu_egon)             [yes]
#  Grabber for Sweden (tvzon.se) (tv_grab_se_tvzon)                            [yes]
#  Grabber for France (tv_grab_fr)                                             [yes]
#  Grabber for France (Kazer) (tv_grab_fr_kazer)                               [yes]
#  Grabber for Portugal (MEO) (tv_grab_pt_meo)                                 [yes]
#  Grabber for South Africa (tv_grab_za)                                       [yes]
#  $$ Grabber for some European countries (epgdata.com) (tv_grab_eu_epgdata)   [yes]
#  Grabber that combines data from other grabbers (tv_grab_combiner)           [yes]
#  Program to report exceptions and changes in a schedule (tv_check)           [yes]
#  CGI program to filter listings (to install manually) (tv_pick_cgi)          [yes]
#  Grabber for DirecTV in North America (tv_grab_na_dtv)                       [yes]

%bcond_with	test

Summary:	A set of utilities to manage your TV viewing
Name:		xmltv
Version:	1.1.2
Release:	1
Group:		Video
License:	GPLv2+
Url:		http://wiki.xmltv.org
Source0:	https://github.com/XMLTV/xmltv/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
Patch0: 	xmltv-0.5.63-noask.patch
BuildRequires: perl-base >= 5.16
BuildRequires: perl-devel
BuildRequires: perl(Archive::Zip)
BuildRequires: perl(CGI)
BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(Data::Dump)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(Date::Format)
BuildRequires: perl(Date::Language)
BuildRequires: perl(Date::Manip) >= 5.42
BuildRequires: perl(Date::Parse)
BuildRequires: perl(DateTime)
BuildRequires: perl(DateTime::Format::ISO8601)
BuildRequires: perl(DateTime::Format::SQLite)
BuildRequires: perl(DateTime::Format::Strptime)
BuildRequires: perl(DateTime::TimeZone)
BuildRequires: perl(DBD::SQLite)
BuildRequires: perl(DBI)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::HomeDir)
BuildRequires: perl(File::chdir)
BuildRequires: perl(File::Slurp)
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::Which)
BuildRequires: perl(JSON)
BuildRequires: perl(HTTP::Cache::Transparent)
BuildRequires: perl(HTTP::Cookies) >= 1.39
BuildRequires: perl(HTML::Entities) >= 1.27
BuildRequires: perl(HTML::Form)
BuildRequires: perl(HTML::Parser) >= 3.34
BuildRequires: perl(HTTP::Request::Params)
BuildRequires: perl(HTTP::Response::Encoding)
BuildRequires: perl(HTML::TableExtract) >= 1.08
BuildRequires: perl(HTML::TokeParser)
BuildRequires: perl(HTML::Tree)
BuildRequires: perl(HTML::TreeBuilder)
BuildRequires: perl(IO::Scalar)
BuildRequires: perl(IO::Select)
BuildRequires: perl(IO::Stringy)
BuildRequires: perl(List::MoreUtils)
# Needed by ita dvb
#BuildRequires: perl(Linux::DVB)
BuildRequires: perl(Log::TraceMessages)
BuildRequires: perl(LWP) >= 5.65
BuildRequires: perl(LWP::Simple)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(LWP::Protocol::https)
BuildRequires: perl(Memoize)
BuildRequires: perl(Parse::RecDescent)
BuildRequires: perl(SOAP::Lite) >= 0.67
BuildRequires: perl(Storable) >= 2.04
BuildRequires: perl(Term::ProgressBar) >= 2.03
BuildRequires: perl(Term::ReadKey)
# Needed by fribidi
BuildRequires: perl(Text::Bidi)
BuildRequires: perl(Text::Iconv)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Time::Local)
BuildRequires: perl(Time::Piece)
BuildRequires: perl(Time::Seconds)
BuildRequires: perl(Tk)
BuildRequires: perl(Tk::TableMatrix)
BuildRequires: perl(Unicode::String)
BuildRequires: perl(URI::Encode)
BuildRequires: perl(WWW::Mechanize) => 1.16
BuildRequires: perl(XML::DOM)
BuildRequires: perl(XML::LibXML)
BuildRequires: perl(XML::LibXSLT)
BuildRequires: perl(XML::Parser) >= 2.34
BuildRequires: perl(XML::Simple)
BuildRequires: perl(XML::TreePP)
BuildRequires: perl(XML::Twig) >= 3.28
BuildRequires: perl(XML::Writer) >= 0.600
Requires:	%{name}-grabbers >= %{EVRD}
BuildArch:		noarch

%description
XMLTV is a set of utilities to manage your TV viewing. They work with TV
listings stored in the XMLTV format, which is based on XML. The idea is to
separate out the back-end (getting the listings) from the front-end
(displaying them for the user), and to implement useful operations like
picking out your favorite programmes as filters that read and write XML
documents.

%files
%doc Changes README.md
%doc doc/QuickStart doc/COPYING
%{_bindir}/tv_merge
%{_bindir}/tv_count
%{_bindir}/tv_cat
%{_bindir}/tv_extractinfo_en
%{_bindir}/tv_extractinfo_ar
%{_bindir}/tv_grep
%{_bindir}/tv_imdb
%{_bindir}/tv_remove_some_overlapping
%{_bindir}/tv_sort
%{_bindir}/tv_split
%{_bindir}/tv_tmdb
%{_bindir}/tv_to_latex
%{_bindir}/tv_to_text
%{_bindir}/tv_to_potatoe
%{_bindir}/tv_find_grabbers
%{_bindir}/tv_validate_file
%{_bindir}/tv_validate_grabber
%{_bindir}/tv_augment_tz
%{_bindir}/tv_augment
%{_datadir}/xmltv
%{_mandir}/man1/tv_count.1.xz
%{_mandir}/man1/tv_merge.1.xz
%{_mandir}/man1/tv_cat.1*
%{_mandir}/man1/tv_extractinfo_en.1*
%{_mandir}/man1/tv_extractinfo_ar.1*
%{_mandir}/man1/tv_grep.1*
%{_mandir}/man1/tv_imdb.1*
%{_mandir}/man1/tv_remove_some_overlapping.1*
%{_mandir}/man1/tv_sort.1*
%{_mandir}/man1/tv_split.1*
%{_mandir}/man1/tv_to_latex.1*
%{_mandir}/man1/tv_to_text.1*
%{_mandir}/man1/tv_to_potatoe.1*
%{_mandir}/man1/tv_find_grabbers.1*
%{_mandir}/man1/tv_validate_file.1*
%{_mandir}/man1/tv_validate_grabber.1*
%{_mandir}/man1/tv_augment_tz.1*
%{_mandir}/man1/tv_augment.1*
%{_mandir}/man1/tv_tmdb.1*

#-----------------------------------------------------------------------------

%package -n perl-XMLTV
Summary:	Perl modules for managing your TV viewing
Group:		Development/Perl
Requires: perl-base
Requires: perl(XML::Twig)
Requires: perl(Date::Manip) 
Requires: perl(HTML::TreeBuilder)
Requires: perl(Term::ProgressBar)
Requires: perl(Memoize)
Requires: perl(DB_File)

%description -n perl-XMLTV
XMLTV is a set of utilities to manage your TV viewing. They work with TV
listings stored in the XMLTV format, which is based on XML. The idea is to
separate out the back-end (getting the listings) from the front-end
(displaying them for the user), and to implement useful operations like
picking out your favorite programmes as filters that read and write XML
documents.
This package contains the perl modules from xmltv.

%files -n perl-XMLTV
%doc Changes README.md
%{perl_vendorlib}/XMLTV.pm
%{perl_vendorlib}/XMLTV
%{_mandir}/man3/*.3*

#-----------------------------------------------------------------------------

%package grabbers
Summary:	Back-ends for xmltv
Group:		Video
Requires: perl-XMLTV >= %{EVRD}
Requires: perl(HTML::TokeParser)
Requires: perl(Switch)
Requires: perl(WWW::Mechanize)
Provides:	%{name}-grabbers = %{EVRD}
Obsoletes:	%{name}-grabbers < %{EVRD}

%description grabbers
XMLTV is a set of utilities to manage your TV viewing. They work with TV
listings stored in the XMLTV format, which is based on XML. The idea is to
separate out the back-end (getting the listings) from the front-end
(displaying them for the user), and to implement useful operations like
picking out your favorite programmes as filters that read and write XML
documents.
This package contains the backends (grabbers) for xmltv.

%files grabbers
%doc Changes README.md
%{_bindir}/tv_grab_*
%{_mandir}/man1/tv_grab_*.1*

#-----------------------------------------------------------------------------

%package gui
Summary:	Graphical front-ends to xmltv
Group:		Video
Requires: perl-XMLTV >= %{EVRD}

%description gui
XMLTV is a set of utilities to manage your TV viewing. They work with TV
listings stored in the XMLTV format, which is based on XML. The idea is to
separate out the back-end (getting the listings) from the front-end
(displaying them for the user), and to implement useful operations like
picking out your favorite programmes as filters that read and write XML
documents.
This package contains graphical frontends to xmltv.

%files gui
%doc doc/COPYING
%doc doc/code/*
%doc choose/tv_check/tv_check_doc.*
%doc choose/tv_check/README.*
%{_bindir}/tv_check
%{_mandir}/man1/tv_check.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .noask

# Swiss grab fix
sed -i 's/\r//' grab/ch_search/tv_grab_ch_search.in


%build
%{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
%make


%install
%makeinstall_std
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'

# Fix perms
chmod 0755 %{buildroot}%{_bindir}/*
#chmod +x %%{buildroot}%%{_datadir}/xmltv/tv_grab_uk_atlas/cgi-bin/getatlas.pl

rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}


%if %{with test}
%check
make test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11633 |21cr|xmms2-0.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define codename DrPong

%define	major	0
%define	libname %mklibname xmms2_ %{major}
%define	devname	%mklibname -d xmms2

# too lazy to fix...
%define	_disable_ld_no_undefined 1

%define	client_major 6
%define libclient %mklibname xmmsclient %{client_major}
%define c_glib_major 1
%define libclientglib %mklibname xmmsclient-glib %{c_glib_major}
%define	c_ecore_major 1
%define libclientecore %mklibname xmmsclient-ecore %{c_ecore_major}
%define	c_pp_major 4
%define libclientpp %mklibname xmmsclient++ %{c_pp_major}
%define	c_pp_glib_major 1
%define libclientppglib %mklibname xmmsclient++-glib %{c_pp_glib_major}

Summary:	Redesign of the XMMS music player
Name:		xmms2
Version:	0.9.1
Release:	2
Group:		Sound
License:	GPLv2+
Url:		http://xmms2.sourceforge.net
Source0:	https://github.com/xmms2/xmms2-devel/releases/download/%{version}/xmms2-%{version}.tar.bz2
Source1:	xmms2-client-launcher.sh
Patch14:	spelling-error.patch
Patch18:	rpath.patch
BuildRequires:	swig >= 1.3.25
BuildRequires:	avahi-common-devel
BuildRequires:	avahi-compat-libdns_sd-devel
BuildRequires:	boost-devel
BuildRequires:	libgme-devel
BuildRequires:	libmpcdec-devel
BuildRequires:	perl-devel
BuildRequires:	perl-Pod-Parser
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(ecore)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gamin)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(libmms)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libofa)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libsidplay2)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libvisual-0.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cython)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(samba-util)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(shout)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(zlib)

%description
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.

%files
%doc AUTHORS README* TODO %{name}-%{version}.ChangeLog
%license COPYING
%{_bindir}/xmms2
%{_bindir}/xmms2d
%{_bindir}/xmms2-client-launcher.sh
%{_bindir}/xmms2-et
%{_bindir}/xmms2-find-avahi
%{_bindir}/xmms2-launcher
%{_bindir}/xmms2-mdns-avahi
%{_bindir}/xmms2-mlib-updater
%{_bindir}/_xmms2-migrate-collections-v0
%{_bindir}/sqlite2s4
# Plugins
%dir %{_libdir}/xmms2
%{_libdir}/xmms2/libxmms_airplay.so
%{_libdir}/xmms2/libxmms_alsa.so
%{_libdir}/xmms2/libxmms_ao.so
%{_libdir}/xmms2/libxmms_apefile.so
%{_libdir}/xmms2/libxmms_asf.so
%{_libdir}/xmms2/libxmms_asx.so
%{_libdir}/xmms2/libxmms_avcodec.so
%{_libdir}/xmms2/libxmms_cdda.so
%{_libdir}/xmms2/libxmms_cue.so
%{_libdir}/xmms2/libxmms_curl.so
%{_libdir}/xmms2/libxmms_daap.so
%{_libdir}/xmms2/libxmms_diskwrite.so
%{_libdir}/xmms2/libxmms_file.so
%{_libdir}/xmms2/libxmms_flac.so
%{_libdir}/xmms2/libxmms_flv.so
%{_libdir}/xmms2/libxmms_gme.so
%{_libdir}/xmms2/libxmms_gvfs.so
%{_libdir}/xmms2/libxmms_html.so
%{_libdir}/xmms2/libxmms_ices.so
%{_libdir}/xmms2/libxmms_icymetaint.so
%{_libdir}/xmms2/libxmms_id3v2.so
%{_libdir}/xmms2/libxmms_jack.so
%{_libdir}/xmms2/libxmms_karaoke.so
%{_libdir}/xmms2/libxmms_m3u.so
%{_libdir}/xmms2/libxmms_mad.so
%{_libdir}/xmms2/libxmms_mms.so
%{_libdir}/xmms2/libxmms_modplug.so
%{_libdir}/xmms2/libxmms_mid1.so
%{_libdir}/xmms2/libxmms_midsquash.so
%{_libdir}/xmms2/libxmms_mp4.so
%{_libdir}/xmms2/libxmms_mpg123.so
%{_libdir}/xmms2/libxmms_musepack.so
%{_libdir}/xmms2/libxmms_normalize.so
%{_libdir}/xmms2/libxmms_null.so
%{_libdir}/xmms2/libxmms_nulstripper.so
%{_libdir}/xmms2/libxmms_ofa.so
%{_libdir}/xmms2/libxmms_oss.so
%{_libdir}/xmms2/libxmms_pls.so
%{_libdir}/xmms2/libxmms_pulse.so
%{_libdir}/xmms2/libxmms_rss.so
%{_libdir}/xmms2/libxmms_samba.so
%{_libdir}/xmms2/libxmms_sndfile.so
%{_libdir}/xmms2/libxmms_speex.so
%{_libdir}/xmms2/libxmms_tta.so
%{_libdir}/xmms2/libxmms_wave.so
%{_libdir}/xmms2/libxmms_vocoder.so
%{_libdir}/xmms2/libxmms_vorbis.so
%{_libdir}/xmms2/libxmms_wavpack.so
%{_libdir}/xmms2/libxmms_xml.so
%{_libdir}/xmms2/libxmms_xspf.so
%dir %{_datadir}/xmms2
%dir %{_datadir}/xmms2/scripts
%dir %{_datadir}/xmms2/scripts/startup.d
%{_datadir}/xmms2/scripts/startup.d/*sh
%{_datadir}/xmms2/mind.in.a.box-lament_snipplet.ogg
%{_datadir}/pixmaps/xmms2-128.png
%{_datadir}/pixmaps/xmms2-16.png
%{_datadir}/pixmaps/xmms2-32.png
%{_datadir}/pixmaps/xmms2-48.png
%{_datadir}/pixmaps/xmms2-black-on-white.svg
%{_datadir}/pixmaps/xmms2-white-on-black.svg
%{_datadir}/pixmaps/xmms2.svg
%{_mandir}/man1/xmms2.1*
%{_mandir}/man1/xmms2-et.1*
%{_mandir}/man1/xmms2-launcher.1*
%{_mandir}/man1/xmms2-mdns-avahi.1*
%{_mandir}/man1/xmms2d.1*

#-----------------------------------------------------------------------------

%package -n	%{libclient}
Summary:	Library associated with xmms2, needed for xmms2 and its plugins
Group:		System/Libraries

%description -n	%{libclient}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
This library is mandatory for xmms2 and for all its plugins to run.

%files -n %{libclient}
%license COPYING
%{_libdir}/libxmmsclient.so.%{client_major}*

#-----------------------------------------------------------------------------

%package -n	%{libclientglib}
Summary:	Library associated with xmms2, needed for xmms2 and its plugins
Group:		System/Libraries

%description -n	%{libclientglib}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
This library is mandatory for xmms2 and for all its plugins to run.

%files -n %{libclientglib}
%license COPYING
%{_libdir}/libxmmsclient-glib.so.%{c_glib_major}*

#-----------------------------------------------------------------------------

%package -n	%{libclientecore}
Summary:	Library associated with xmms2, needed for xmms2 and its plugins
Group:		System/Libraries

%description -n	%{libclientecore}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
This library is mandatory for xmms2 and for all its plugins to run.

%files -n %{libclientecore}
%license COPYING
%{_libdir}/libxmmsclient-ecore.so.%{c_ecore_major}*

#-----------------------------------------------------------------------------

%package -n	%{libclientpp}
Summary:	Library associated with xmms2, needed for xmms2 and its plugins
Group:		System/Libraries

%description -n	%{libclientpp}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
This library is mandatory for xmms2 and for all its plugins to run.

%files -n %{libclientpp}
%license COPYING
%{_libdir}/libxmmsclient++.so.%{c_pp_major}*

#-----------------------------------------------------------------------------

%package -n	%{libclientppglib}
Summary:	Library associated with xmms2, needed for xmms2 and its plugins
Group:		System/Libraries

%description -n	%{libclientppglib}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
This library is mandatory for xmms2 and for all its plugins to run.

%files -n %{libclientppglib}
%license COPYING
%{_libdir}/libxmmsclient++-glib.so.%{c_pp_glib_major}*

#-----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development package with static libs and headers
Group:		Development/C
Requires:	%{libclient} = %{EVRD}
Requires:	%{libclientglib} = %{EVRD}
Requires:	%{libclientecore} = %{EVRD}
Requires:	%{libclientpp} = %{EVRD}
Requires:	%{libclientppglib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
Static libraries and header files required for compiling xmms2 plugins.

%files -n %{devname}
%license COPYING
%{_includedir}/xmms2
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

#-----------------------------------------------------------------------------

%package -n	python-%{name}
Summary:	Python bindings for XMMS2
Group:		Development/Python
%rename		%{name}-python

%description -n	python-%{name}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
This package contains files providing Python bindings for accessing XMM2.

%files -n python-%{name}
%license COPYING
%{python3_sitearch}/xmmsclient

#-----------------------------------------------------------------------------

%package -n	ruby-%{name}
Summary:	Ruby bindings for XMMS2
Group:		Development/Ruby
%rename		%{name}-ruby

%description -n	ruby-%{name}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
This package contains files providing Ruby bindings for accessing XMM2.

%files -n ruby-%{name}
%license COPYING
%dir %{ruby_vendorlibdir}/xmmsclient
%{ruby_vendorlibdir}/xmmsclient/*.rb
%{ruby_vendorarchdir}/*.so
%{ruby_vendorlibdir}/xmmsclient.rb

#-----------------------------------------------------------------------------

%package -n	perl-%{name}
Summary:	Perl bindings for XMMS2
Group:		Development/Perl

%description -n	perl-%{name}
XMMS2 is a redesign of the XMMS music player. It features a client-server
model, allowing multiple (even simultaneous!) user interfaces, both textual
and graphical. All common audio formats are supported using plugins. On top
of this, there is a flexible media library to organize your music.
This package contains files providing Perl bindings for accessing XMM2.

%files -n perl-%{name}
%license COPYING
%dir %{perl_vendorarch}/Audio
%{perl_vendorarch}/Audio/*.pm
%{perl_vendorarch}/Audio/*.pod
%dir %{perl_vendorarch}/Audio/XMMSClient
%{perl_vendorarch}/Audio/XMMSClient/*.pod
%{perl_vendorarch}/Audio/XMMSClient/*.pm
%{perl_vendorarch}/auto/Audio/XMMSClient/XMMSClient.so

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
export CPPFLAGS="%{optflags}"
export LIBDIR="%{_libdir}"
export PYTHONDIR="%{python3_sitearch}"
./waf configure \
    --prefix=%{_prefix} \
    --libdir=%{_libdir} \
    --with-pkgconfigdir=%{_libdir}/pkgconfig \
    --with-ruby-archdir=%{ruby_vendorarchdir} \
    --with-ruby-libdir=%{ruby_vendorlibdir} \
    --with-perl-archdir=%{perl_vendorarch}

# parallel build occationally breaks..
# ./waf build -v %%{_smp_mflags} || 
./waf build -v

%install
./waf install --destdir=%{buildroot}

# exec flags for debuginfo
chmod +x %{buildroot}%{_libdir}/%{name}/* %{buildroot}%{_libdir}/libxmmsclient*.so* \
	%{buildroot}%{perl_vendorarch}/auto/Audio/XMMSClient/XMMSClient.so %{buildroot}%{ruby_vendorarchdir}/xmmsclient_*.so

install -m0755 %{SOURCE1} %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11634 |21cr|xmoto-0.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A challenging 2D motocross platform game
Name:		xmoto
Version:	0.6.1
Release:	2
License:	GPLv2+
Group:		Games/Arcade
Url:		http://xmoto.sourceforge.net/
Source0:	https://github.com/xmoto/xmoto/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}.png
Patch0:		xmoto-0.6.1-skip-NULL-collision-objects.patch
BuildRequires:	bison
BuildRequires:	cmake >= 3.7
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	imagemagick
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxdg-basedir)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(ode)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(SDL_net)
BuildRequires:	pkgconfig(sqlite3)
Requires:	fonts-ttf-dejavu

%description
X-Moto is a challenging 2D motocross platform game, where physics play an all
important role in the gameplay. You need to control your bike to its limit, if
you want to have a chance finishing the more difficult of the challenges.
First you'll try just to complete the levels, while later you'll compete with
yourself and others, racing against the clock.

%files -f %{name}.lang
%doc ChangeLog README.md
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man6/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1


%build
%cmake ..
%make


%install
%makeinstall_std -C build

mkdir -p %{buildroot}/%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64}/apps
install %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 64 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 32 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

desktop-file-edit	--remove-key=Version \
					--set-key=Icon --set-value=%{name} \
					%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11635 |21cr|xmove-2.0-0.beta2.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta	%(echo %{release} |cut -d. -f 2)

Name:		xmove
Version:	2.0
Release:	0.beta2.6
Summary:	X11 pseudoserver to dynamically move X11 applications
License:	MIT
Group:		System/X11
Url:		ftp://ftp.cs.columbia.edu/pub/xmove/
Source0:	ftp://ftp.cs.columbia.edu/pub/xmove/%{name}.%{version}%{beta}.tar.bz2
Patch0:		xmove-2.0-unix-domain.patch
Patch1:		xmove-debug.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:  imake



%description
xmove is a pseudoserver (aka proxy server) which allows you
to dynamically move an X application between servers, and screens
within a server.

%files
%doc README doc/*
%_bindir/xmove*
%{_mandir}/man1/xmove*
#---------------------------------------------------------------------------
%prep
%setup -qn %{name}
%patch0 -p1 -b .unix-domain
%patch1 -p0

chmod 644 doc/*

%build
for i in xmove xmovectrl; do
	cd $i
	ln -sf ../man/man1/$i.1 $i.man
	xmkmf
	%setup_compile_flags %make
	cd $OLDPWD
done

%install
install -d -m755 %{buildroot}%{_mandir}/man1/
for i in xmove xmovectrl; do
	cd $i
	%{makeinstall_std}
	cd $OLDPWD
	install -m 644 man/man1/$i.1 %{buildroot}%{_mandir}/man1/
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11636 |21cr|xmp-4.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Let's pick up them with a devel snapshot - really a 4.2.0 untagged release
%define	git		1
%define	gitdate	20220119

Summary:	A multi-format module player
Name:		xmp
%if %{git}
# Workaround commit b381133d9bd54b17a9750cc49d992c89c667a926 on ABF
# being plain wrong: there is no a "6.1.7.810" release for xmp or libxmp...
Epoch:	1
Version:	4.2.0
Release:	1
%else
Version:	6.1.7.810
Release:	1
%endif
License:	GPLv2+
Group:		Sound
Url:		http://xmp.sourceforge.net/
%if %{git}
Source0:	%{name}-%{gitdate}.tar.xz
%else
Source0:	https://sourceforge.net/projects/xmp/files/xmp/4.1.0/%{name}-%{version}.tar.gz
%endif
Patch0:		%{name}-4.0.6-pulse.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libxmp) >= 4.4.0

%description
The Extended Module Player is a modplayer for Unix-like systems that plays
over 70 mainstream and obscure module formats from Amiga, Atari, Acorn,
Apple IIgs  and PC, including Protracker (MOD), Scream Tracker 3 (S3M),
Fast Tracker II (XM) and Impulse Tracker (IT) files.

%files
%doc README COPYING CREDITS Changelog
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{name}-%{gitdate}
%else
%setup -qn %{name}-%{version}
%endif
%apply_patches


%build
%if %{git}
./autogen.sh
%endif
%configure	--enable-pulseaudio
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11637 |21cr|xnetload-1.11.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program to display load on network device
Name:		xnetload
Version:	1.11.4
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://github.com/rsmith-nl/xnetload/
Source0:	https://github.com/rsmith-nl/xnetload/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		xnetload-1.11.3-flags.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)

%description
This application, that runs under the X Window System, displays a count
and a graph of the traffic over a specified network connection.

%files
%doc README*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make depend
%make OPTFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
chmod 644 README*
%makeinstall BINDIR=%{buildroot}%{_bindir} MANDIR=%{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11638 |21cr|xneur-0.20.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 20
%define libname %mklibname %{name} %{major}
%define libxnconfig %mklibname xnconfig %{major}
%define devname %mklibname %{name} -d

%define commit 17d1c5d28cb67d51bddef17d7fe9dcf80b9190e1

Summary:	X Neural Switcher
Name:		xneur
Version:	0.20.0
Release:	3
Epoch:		2
License:	GPLv2+
Group:		System/X11
Url:		http://www.xneur.ru
#extract dir from https://github.com/AndrewCrewKuznetsov/xneur-devel/archive/%{commit}.zip
Source0:	%{name}_%{version}.orig.tar.gz
Patch1:         xneur-memset.patch
Patch2:         xneur-unnest-function.patch
Patch3:         xneur-enchant2.patch
Patch4:         xneur-fix-arg-parsing.patch
Patch5:         xneur-gcc-10.patch
Patch6:         xneur-Werror.patch
Patch7:         xneur-disable-plugins.patch
# build with cmake available in version 0.21.0, uncomment after release version 0.21.0
#BuildRequires:	cmake
BuildRequires:	aspell-devel
BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
Requires:	aspell-ru

%description
X Neural Switcher (http://www.xneur.ru).

Automatical switcher of keyboard layout.

%files -f %{name}.lang
%doc AUTHORS NEWS README* TODO
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_mandir}/man5/*
%dir %{_sysconfdir}/%{name}
# Upstream updates a config file. So we must replace it.
%config %{_sysconfdir}/%{name}/*
%{_iconsdir}/hicolor/*/apps/%{name}.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	XNeur shared library
Group:		System/Libraries

%description -n %{libname}
Shared libraries for the package XNeur.

%files -n %{libname}
%{_libdir}/libxneur.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libxnconfig}
Summary:	XNeur shared library
Group:		System/Libraries

%description -n %{libxnconfig}
Shared libraries for the package XNeur.

%files -n %{libxnconfig}
%{_libdir}/libxnconfig.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	%{libxnconfig} = %{EVRD}
Provides:	xneur-devel = %{EVRD}

%description -n %{devname}
Development files for the package XNeur.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix typo
sed -i 's/loKg_message/log_message/' lib/main/program.c

#%%if "%{_lib}" == "lib64"
#    sed -i 's|/lib|/lib64|' lib/CMakeLists.txt
#    sed -i 's|lib/pkgconfig|lib64/pkgconfig|' lib/CMakeLists.txt
#    sed -i 's|DESTINATION lib)|DESTINATION lib64)|' lib/config/CMakeLists.txt
#    sed -i 's|DESTINATION lib)|DESTINATION lib64)|' lib/lib/CMakeLists.txt
#%%endif

%build
#cmake -S . -B build \
#	-DKEYLOGGER=OFF \
#	-DPLUGINS=OFF \
#	-DCMAKE_BUILD_TYPE=Release \
#        -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
#        -DSYSCONF_INSTALL_DIR:PATH=%{_sysconfdir} \
#        -DSHARE_INSTALL_PREFIX:PATH=%{_datadir} \
#        -DMAN_INSTALL_DIR:PATH=%{_mandir} \
#        -DLOCALE_INSTALL_DIR:PATH=%{_datadir}/locale \
#        -DCMAKE_SKIP_RPATH:BOOL=ON \
#        -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
#        -DBUILD_SHARED_LIBS:BOOL=ON \
#        -DBUILD_STATIC_LIBS:BOOL=OFF

#cmake --build build

autoreconf -vfi
%configure --without-xosd --without-plugins --without-keylogger --with-gtk=gtk2
%make

%install
%makeinstall_std

pushd %{buildroot}%{_datadir}/%{name}/languages/
ln -s ru ru\(winkeys\)
popd

#disable sound play
sed -i 's/PlaySounds Yes/PlaySounds No/' %{buildroot}%{_sysconfdir}/xneur/xneurrc

# set loglevel to Warning
sed -i 's/LogLevel Trace/LogLevel Warning/' %{buildroot}%{_sysconfdir}/xneur/xneurrc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11639 |21cr|xnoise-0.2.21-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Tracklist-centric Media Player
Name:		xnoise
Version:	0.2.21
Release:	5
License:	GPLv2+ with exceptions
Group:		Sound
Url:		http://www.xnoise-media-player.com/
Source0:	https://bitbucket.org/shuerhaaken/xnoise/downloads/%{name}-%{version}.tar.gz
Patch0:		xnoise-0.2.21-use-https-for-lastfm.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool >= 0.35.0
BuildRequires:	vala
BuildRequires:	libsoup-devel
BuildRequires:	unique-devel
# Not needed unless source .vala files are being modified
BuildRequires:	vala-devel >= 0.18.0
BuildRequires:	pkgconfig(appindicator3-0.1)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libtaginfo_c)
BuildRequires:	pkgconfig(sqlite3)
Requires:	hicolor-icon-theme

%description
Xnoise is a Gtk+ media player with a tracklist-centric design. The tracklist
is a list of video or music tracks that are played one by one without being
removed (right side of window). This gives you the possibility to enqueue any
track in any order, regardless if they are on the same album or not. The
tracks can be reordered at any time by using drag and drop.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_bindir}/%{name}
%{_bindir}/%{name}_image_extractor_service
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/%{name}
%{_datadir}/dbus-1/services/org.gtk.%{name}.*.service
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/xn*

#-----------------------------------------------------------------------------

%package -n     %{libname}
Summary:	Xnoise shared library
Group:		System/Libraries

%description -n %{libname}
Xnoise shared library.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description -n	%{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}-1.0.pc
# make package own the vala API dir:
# xnoise plugins don't have to be written in vala
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/%{name}-1.0.*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
export LDFLAGS="%{optflags} -lm"
%configure
%make


%install
%makeinstall_std

# Remove invalid locale file
rm -rf %{buildroot}%{_share}/locale/default

# Remove Ubuntu-specific icons
rm -rf %{buildroot}%{_iconsdir}/ubuntu-*

%find_lang %{name}


%check
make check


%postun
if [ $1 -eq 0 ] ; then
    gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11640 |21cr|xombrero-1.6.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A minimalists web browser
Name:		xombrero
Version:	1.6.4
Release:	3
License:	MIT
Group:		Networking/WWW
Url:		https://opensource.conformal.com/wiki/xombrero
Source0:	https://opensource.conformal.com/snapshots/%{name}/%{name}-%{version}.tgz
Patch0:		xxxterm-1.8.0-mdv-desktop.patch
Patch2:		xxxterm-1.11.3-mga-use-duckduckgo-as-home-and-search-engine.patch
BuildRequires:	groff-for-man
BuildRequires:	libbsd-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(webkitgtk-3.0)
Requires:	glib-networking
Obsoletes:	xxxterm < 2.0

%description
Xombrero is a minimalist web browser with sophisticated security features
designed-in (rather than through an add-on). In particular, it provides both
persistent and per-session controls for scripts and cookies, making it easy
to thwart tracking and scripting attacks.

In additional to providing a familiar mouse-based interface like other web
browsers, it offers a set of vi-like keyboard commands for users who prefer
to keep their hands on their keyboard.

The default settings provide a secure environment. With simple keyboard
commands, the user can "whitelist" specific sites, allowing cookies and scripts
from those sites.

%files
%{_mandir}/man1/%{name}.*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/*.png
%{_datadir}/%{name}/style.css
%{_datadir}/%{name}/tld-rules
%{_datadir}/%{name}/hsts-preload
%{_datadir}/%{name}/tordisabled.ico
%{_datadir}/%{name}/torenabled.ico
%{_datadir}/%{name}/xombrero.css
%{_datadir}/%{name}/favicon.ico
%{_datadir}/%{name}/http-accept-headers
%{_datadir}/%{name}/user-agent-headers
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch2 -p0

%build
export GTK_VERSION=gtk3
%setup_compile_flags
make -C linux

%install
export PREFIX=%{buildroot}%{_prefix}

%makeinstall -C linux

for s in 16 32 48 64 128; do
    install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
    ln -s ../../../../%{name}/%{name}icon${s}.png %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11641 |21cr|xonotic-0.8.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define oname Xonotic

Summary:	A free multi-player first person shooter
Name:		xonotic
Version:	0.8.5
Release:	2
License:	GPLv2+
Group:		Games/Shooter
Url:		http://www.xonotic.org/
Source0:	http://dl.xonotic.org/%{name}-%{version}.zip
Patch0:		xonotic-0.8.2-gcc.patch
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-data = %{version}

%description
Xonotic is a free (GPL), fast-paced first-person shooter that works on
Microsoft Windows, Mac OSX and Linux.

Xonotic is a direct successor of the Nexuiz Project.

It features much better quality graphics and visual effects.

Xonotic places focus on community involvement as its principal driving force
and structures itself to respect that. The aim of Xonotic is to become the
best possible open-source FPS (first-person-shooter) of its kind.

%files
%{_gamesbindir}/%{name}-sdl
%{_gamesbindir}/%{name}-glx
%{_datadir}/applications/%{name}-sdl.desktop
%{_datadir}/applications/%{name}-glx.desktop
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/64x64/apps/%{name}.png
%{_iconsdir}/hicolor/128x128/apps/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------

%package data
Summary:	Xonotic data files (graphics, music, maps etc)
Group:		Games/Shooter
Requires:	%{name} = %{version}
BuildArch:	noarch

%description data
Data files used to play Xonotic.

%files data
%dir %{_gamesdatadir}/%{name}/data
%{_gamesdatadir}/%{name}/data/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}

%build
cd source/darkplaces
make clean

# make release CPUOPTIMIZATIONS="%{optflags}" DP_FS_BASEDIR=%{_gamesdatadir}/%{name}
make sv-release CPUOPTIMIZATIONS="%{optflags}" DP_FS_BASEDIR=%{_gamesdatadir}/%{name}
make cl-release CPUOPTIMIZATIONS="%{optflags}" DP_FS_BASEDIR=%{_gamesdatadir}/%{name}
make sdl-release CPUOPTIMIZATIONS="%{optflags}" DP_FS_BASEDIR=%{_gamesdatadir}/%{name}

%install
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -R data %{buildroot}%{_gamesdatadir}/%{name}/

install -D -m 755 source/darkplaces/darkplaces-sdl %{buildroot}%{_gamesbindir}/%{name}-sdl
install -D -m 755 source/darkplaces/darkplaces-glx %{buildroot}%{_gamesbindir}/%{name}-glx

install -D -m 644 misc/logos/icons_png/%{name}_16.png %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m 644 misc/logos/icons_png/%{name}_32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m 644 misc/logos/icons_png/%{name}_64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D -m 644 misc/logos/icons_png/%{name}_128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

install -D -m 644 misc/logos/%{name}_icon.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

install -d %{buildroot}%{_datadir}/applications

cat > %{buildroot}%{_datadir}/applications/%{name}-sdl.desktop << EOF
[Desktop Entry]
Name=Xonotic-SDL
Comment=Multi-player first person shooter (SDL)
Exec=%{_gamesbindir}/%{name}-sdl
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}-glx.desktop << EOF
[Desktop Entry]
Name=Xonotic-GLX
Comment=Multi-player first person shooter (GLX)
Exec=%{_gamesbindir}/%{name}-glx
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11642 |21cr|x-oql-20070202-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	X-OQL
%define	jarname	xoql
%define	jarlibs	cdqa antlr

Name:		x-oql
Version:	20070202
Release:	13
Summary:	%{oname}
License:	LGPL
Group:		Development/Java
Url:		http://forge.objectweb.org/projects/activexml/
# from cvs
Source0:	%{name}-%{version}.tar.lzma
BuildRequires:	lzma
BuildRequires:	java-rpmbuild java-devel ant %{jarlibs}
BuildRequires:	locales-en
Requires:	%{jarlibs}
Provides:	%{oname} = %{version}-%{release}
Provides:	%{jarname} = %{version}-%{release}
BuildArch:      noarch

%description
%{oname}

%package	javadoc
Summary:	Javadoc for %{oname}
Group:		Development/Java

%description	javadoc
Javadoc for %{oname}.

%prep
%setup -q -n %{oname}
#make sure that we don't use precompiled java package if shipped
rm -rf lib

%build
export LC_ALL=en_US.ISO-8859-1
export CLASSPATH=$(build-classpath %{jarlibs})
%{ant} -f xoql_build.xml jar javadoc -DDSTAMP=%{version} 
jar -i build/lib/%{jarname}.jar

%install


install -d %{buildroot}%{_javadir}
install -m644 build/lib/%{jarname}.jar -D %{buildroot}%{_javadir}/%{jarname}-%{version}.jar

for jarname in \
	%{buildroot}%{_javadir}/%{jarname}.jar \
	%{buildroot}%{_javadir}/%{name}{,-%{version}}.jar \
	%{buildroot}%{_javadir}/%{oname}{,-%{version}}.jar
do ln -s %{jarname}-%{version}.jar $jarname
done

install -d %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -r build/api %{buildroot}%{_javadocdir}/%{name}-%{version}

%files
%{_javadir}/*.jar

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11643 |21cr|xosd-2.2.14-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	X On Screen Display
Name:		xosd
Version:	2.2.14
Release:	19
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.ignavus.net/software.html
Source0:	http://www.ignavus.net/%{name}-%{version}.tar.bz2
Source1:	http://ldots.org/xosd-guide/xosd-doc-0.01.tar.bz2
Patch0:		xosd-2.2.14-fix-underquoted-calls.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
This package contains an xmms plugin to display various things whenever they 
change (volume, track, paused/shuffle/repeat,...) in a TV set's on screen 
display fashion.

#----------------------------------------------------------------------------

%package tools
Summary:	Example applications of the xosd library
Group:		Graphics
Provides:	osd_cat = %{EVRD}

%description tools
This package contains sample applications for the xosd library that
can be used to display information in a TV set's on screen display
fashion.

%files tools
%doc COPYING
%{_bindir}/osd_cat
%{_mandir}/man1/osd_cat.1*
%{_datadir}/%{name}/*png

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for displaying information in an OSD
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library of xosd, it is requires by programs 
that display it's output in a TV set's on screen display fashion.

%files -n %{libname}
%doc COPYING
%{_libdir}/libxosd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for developing programs using libxosd
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}xosd2-devel < 2.2.14-15
Obsoletes:	%{_lib}xosd2-devel < 2.2.14-15

%description -n %{devname}
This package contains the header files you need to develop programs based on 
libxosd that display it's output in a TV set's on screen display fashion.

%files -n %{devname}
%doc COPYING ChangeLog README AUTHORS xosd-doc-0.01/html
%{_bindir}/xosd-config
%{_mandir}/man1/xosd-config.1*
%{_libdir}/libxosd.so
%{_includedir}/*.h
%{_datadir}/aclocal/libxosd.m4
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a 1

# update config.guess and config.sub for build on aarch64
# not use config_update macro, rebuild configure script fail
cp -f %{_datadir}/automake-*/config.guess .
cp -f %{_datadir}/automake-*/config.sub .

%build
./configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir} \
	--libdir=%{_libdir} \
	--mandir=%{_datadir}/man \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11644 |21cr|xosview-1.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An X Window System utility for monitoring system resources
Group:		Monitoring
Name:		xosview
Version:	1.24
Release:	1
License:	GPLv2+
Url:		http://xosview.sourceforge.net
Source0:	http://www.pogo.org.uk/~mark/xosview/releases/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)

%description
The xosview utility displays a set of bar graphs which show the current
system state, including memory usage, CPU usage, system load, etc.
Xosview runs under the X Window System.

Install the xosview package if you need a graphical tool for monitoring
your system's performance.

%prep
%setup -q

sed -e 's:lib/X11/app:share/X11/app:g' \
	-i xosview.1 || die

%build
export OPTFLAGS="%{optflags}"
%make

%install
mkdir -p %{buildroot}/%{_bindir}/
mkdir -p %{buildroot}/%{_mandir}/man1/
make PREFIX=%{buildroot}/usr install

chmod u-s %{buildroot}/usr/bin/*

%files
%{_prefix}/bin/*
%{_prefix}/share/man/man1/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/32x32/apps/xosview.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11645 |21cr|xournal-0.4.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 	xournal
Summary: 	Pen-based journal and PDF annotator
Version: 	0.4.8
Release: 	3

Source0:	http://heanet.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.gz
URL:		http://xournal.sourceforge.net/
License:	GPLv2
Group:		Office
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libgnomecanvas-2.0)
BuildRequires:	pkgconfig(poppler-glib)
# For pdftoppm: see http://forum.mandriva.com/viewtopic.php?t=92135
Requires:	poppler

%description
Xournal is an application for notetaking, sketching, keeping a journal using a
stylus.  It is similar to Microsoft Windows Journal or to other alternatives
such as Jarnal, Gournal, and NoteLab.

%prep
%setup -q

%build
%configure
%make
										
%install
%makeinstall

# menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Xournal
Comment=%summary
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GNOME;GTK;Office;
EOF

# icons
mkdir -p %{buildroot}%{_liconsdir}
convert -size 48x48 pixmaps/%{name}.png %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert -size 32x32 pixmaps/%{name}.png %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 pixmaps/%{name}.png %{buildroot}/%{_miconsdir}/%{name}.png

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README html-doc/*
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/%{name}
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11646 |21cr|xournalpp-1.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Программа для создания рукописных записей и аннотатор PDF
Summary:	Handwriting note-taking software with PDF annotation support
Name:		xournalpp
Version:	1.2.5
Release:	1
License:	GPLv2+
Group:		Office
Url:		https://github.com/xournalpp/xournalpp
Source0:	https://github.com/xournalpp/xournalpp/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzip)
# for enable plugins need lua
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(portaudiocpp)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	locales-en
BuildRequires:	help2man
Requires:	poppler
Conflicts: xournalpp-ui < 1.2.3-2
Obsoletes: xournalpp-ui < 1.2.3-2
Conflicts: xournalpp-plugins < 1.2.3-2
Obsoletes: xournalpp-plugins < 1.2.3-2

%description
Xournal++ is a handwriting note-taking software with PDF annotation support.
Supports Pen input like Wacom Tablets

%description -l ru_RU.UTF-8
Xournal++ - это программа для ведения рукописных заметок с поддержкой аннотаций в формате PDF.
Поддерживает перьевой ввод, как на планшетах Wacom

%files -f %{name}.lang
%doc README.md AUTHORS
%{_bindir}/*
%{_datadir}/applications/com.github.%{name}.%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/com.github.%{name}.%{name}.svg
%{_iconsdir}/hicolor/scalable/mimetypes/*
%{_datadir}/mime/packages/com.github.%{name}.%{name}.xml
%{_datadir}/thumbnailers/com.github.%{name}.%{name}.thumbnailer
%{_datadir}/%{name}
%{_datadir}/metainfo/com.github.%{name}.%{name}.appdata.xml
%{_mandir}/man1/%{name}*.1*

#------------------------------------------------------------------

%prep
%autosetup

%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11647 |21cr|xow-0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux user mode driver for the Xbox One wireless dongle
Name:		xow
Version:	0.5
Release:	2
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		https://github.com/medusalix/xow
Source0:	https://github.com/medusalix/xow/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Firmware
Source1:	http://download.windowsupdate.com/c/msdownload/update/driver/drvs/2017/07/1cd6a87c-623f-4407-a52d-c31be49e925c_e19f60808bdcbfbd3c3df6be3e71ffc52e43261e.cab
Source2:	86-%{name}.preset
Patch0:		xow-0.5-upstream.patch
BuildRequires:	cabextract
BuildRequires:	pkgconfig(libusb-1.0)

%description
Linux user mode driver for the Xbox One wireless dongle.

%files
%doc README.md
%license LICENSE
%{_bindir}/%{name}
%{_presetdir}/86-%{name}.preset
%config(noreplace) %{_sysconfdir}/modprobe.d/%{name}-blacklist.conf
%config(noreplace) %{_sysconfdir}/modules-load.d/%{name}-uinput.conf
%config(noreplace) %{_sysconfdir}/systemd/system/%{name}.service
%config(noreplace) %{_sysconfdir}/udev/rules.d/50-%{name}.rules

%post
%systemd_post %{name}

%preun
%systemd_preun %{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i -e "/curl /d" -e "s!^PREFIX .*!PREFIX := %{_prefix}!" Makefile
cp %{SOURCE1} driver.cab

%build
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_presetdir}
cp -f %{SOURCE2} %{buildroot}%{_presetdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11648 |21cr|xpad-4.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sticky notepad
Name:		xpad
Version:	4.8.0
Release:	1
License:	GPLv3+
Group:		Office
Url:		https://launchpad.net/xpad/
Source:		http://launchpad.net/xpad/trunk/%{version}/+download/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-3.0)
BuildRequires:	pkgconfig(sm)

%description
Xpad is a GTK application that emulates real-life sticky notes. If you
are likely to forget something, open up an xpad and jot it down. It
is easy-to-use, fault-tolerant, and its appearance is customizable.

%files -f %{name}.lang
%doc AUTHORS NEWS README THANKS TODO ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std
# Drop autostart file
rm -rf %{buildroot}/etc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11649 |21cr|xpaint-3.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An X Window System image editing or paint program
Name:		xpaint
Version:	3.1.4
Release:	1
License:	MIT
Group:		Graphics
Url:		https://sourceforge.net/projects/sf-xpaint
Source0:	http://prdownloads.sourceforge.net/sf-xpaint/xpaint-%{version}.tar.bz2
Source1:	icons-%{name}.tar.bz2
Patch0:		xpaint-3.1.4-static.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gccmakedep
BuildRequires:	imake
BuildRequires:	libtool
BuildRequires:	netpbm-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libopenjpeg1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxaw3dxft)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(zlib)
# Menus uses Liberation fonts
Requires:	fonts-ttf-liberation


%description
XPaint is an X Window System color image editing program which supports
many standard paint program operations. XPaint also supports advanced
features like image processing algorithms, scripting and batch jobs.  
XPaint allows you to edit multiple images simultaneously and supports
a large variety of image formats, including PNG, JPEG, TIFF, XPM, PPM, 
XBM, PS, etc.

Install this package if you need a simple paint program for X.

Recent versions of XPaint add new optional editing features based 
on programmable filters and user defined procedures written as scripts 
in plain C. The package includes a substantial list of examples and 
some support for batch processing.

%files
%doc ChangeLog README* TODO Doc/*.doc Doc/sample.Xdefaults
%config(noreplace) %{_sysconfdir}/X11/app-defaults/*
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/xpaint/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/*.png
%{_iconsdir}/*/*.png
%{_iconsdir}/hicolor/scalable/apps/xpaint.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
make ARCH_DEFINES="%{optflags}"

%install
%makeinstall_std

#use upstream .desktop file
install -Dpm0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

#mdk icon
install -d %{buildroot}%{_iconsdir}
tar jxf %{SOURCE1} -C %{buildroot}%{_iconsdir}

# Don't ship it
rm -rf %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11650 |21cr|xpat2-1.07-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of Solitaire type games for the X Window System
Name:		xpat2
Version:	1.07
Release:	33
License:	GPLv2+
Group:		Games/Cards
Source0:	ftp://sunsite.unc.edu/pub/Linux/games/solitaires/%{name}-%{version}-src.tar.bz2
Patch0:		xpat2-fixes.patch
Patch1:		xpat2-1.07-lib64.patch
Patch2:		xpat2-1.07-gcc41.patch
Patch3:		xpat2-1.07-fix-str-fmt.patch
BuildRequires:	imake
BuildRequires:	perl
BuildRequires:	qt3-devel
BuildRequires:	pkgconfig(xpm)
Requires(post):	rpm-helper

%description
Xpat2 is a generic patience or Solitaire game for the X Window System.

Xpat2 can be used with different rules sets, so it can be used to play
Spider, Klondike, and other card games.

%files
%dir %{_prefix}/games/lib/xpat
%{_prefix}/games/lib/xpat/*
%{_mandir}/man6/xpat2.6*
%attr(2755, root, games) %{_prefix}/bin/xpat2
%{_prefix}/lib/*/app-defaults/XPat
%{_datadir}/X11/app-defaults/XPat
%{_datadir}/applications/%{name}.desktop
%attr(664, root, games) %ghost /var/lib/games/xpat.log

%post
%create_ghostfile /var/lib/games/xpat.log root games 664

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b kk1
%patch1 -p1 -b .lib64
%patch2 -p0 -b .gcc41
%patch3 -p0

%build
make clean
rm -f src/moc*
rm -f src/mqmaskedit.cpp
rm -f src/mqhelpwin.cpp

find -type f | xargs perl -pi -e "s|/var/games/|/var/lib/games/|g"
perl -p -i -e "s|xmkmf &&||" Makefile
cd src
xmkmf
perl -p -i -e "s|CXXDEBUGFLAGS = .*|CXXDEBUGFLAGS = %{optflags}|" Makefile
perl -p -i -e "s|CDEBUGFLAGS = .*|CDEBUGFLAGS = %{optflags}|" Makefile
# 1.0.7-1
perl -p -i -e "s|chown.*||" Makefile
perl -p -i -e "s|-lqt|-lqt-mt|" Makefile
perl -p -i -e "s|LN = ln -s|LN = echo|" Makefile
make CDEBUGFLAGS="%{optflags}" CXXDEBUGFLAGS="%{optflags}" EXTRA_LIBRARIES="-lstdc++"


%install
%makeinstall \
	DESTDIR=%{buildroot} \
	XPATROOT=%{buildroot}%{_prefix}/games/lib/xpat \
	XPATMANDIR=%{buildroot}%{_mandir}/man6 \
	APPDEFSDIR=%{buildroot}%{_prefix}/lib

install -m 755 -d %{buildroot}%{_menudir}
mkdir -p %{buildroot}/var/lib/games/
touch %{buildroot}/var/lib/games/xpat.log

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=A set of Solitaire type games for the X Window System
Exec=%{_bindir}/%{name}
Icon=cards_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Qt;Game;CardGame;X-MandrivaLinux-MoreApplications-Games-Cards;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11651 |21cr|xpdf-4.04-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname xpdf %{major}
%define	develname %mklibname xpdf -d

%define	urwdir %{_datadir}/fonts/default/Type1
%define	x11dir /usr/X11R6

Summary:	A PDF file viewer for the X Window System
Name:		xpdf
Version:	4.04
Release:	2
License:	GPLv2+
Group:		Publishing
Url:		https://www.xpdfreader.com/
Source0:	https://dl.xpdfreader.com/%{name}-%{version}.tar.gz
Source1:	icons-%{name}.tar.bz2
Source2:	https://dl.xpdfreader.com/%{name}-chinese-simplified.tar.gz
Source3:	https://dl.xpdfreader.com/%{name}-chinese-traditional.tar.gz
Source4:	https://dl.xpdfreader.com/%{name}-cyrillic.tar.gz
Source5:	https://dl.xpdfreader.com/%{name}-japanese.tar.gz
Source6:	https://dl.xpdfreader.com/%{name}-korean.tar.gz
Source7:	https://dl.xpdfreader.com/%{name}-thai.tar.gz
Source8:	https://dl.xpdfreader.com/%{name}-greek.tar.gz
Source9:	https://dl.xpdfreader.com/%{name}-latin2.tar.gz
Source10:	https://dl.xpdfreader.com/%{name}-turkish.tar.gz
Source11:	https://dl.xpdfreader.com/%{name}-hebrew.tar.gz
Source12:	https://dl.xpdfreader.com/%{name}-arabic.tar.gz
#Source100:	xpdf.rpmlintrc
Patch0:		%{name}-3.04-antihigh.patch
Patch1:		%{name}-4.04-chinese.patch
Patch2:		%{name}-4.02-crash.patch
Patch3:		%{name}-4.02-permissions.patch
Patch4:		%{name}-4.02-fix-PS-encoding.patch
BuildRequires:	cmake >= 2.8.8
BuildRequires:	cups-devel
BuildRequires:	libpaper-devel
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2) >= 2.10.1
BuildRequires:	pkgconfig(lcms2) >= 2.9
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9.7
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
# Newer poppler will provide all the pdf* utils
Requires:	poppler
Requires:	urw-fonts
# Lesstiff user interface requires these (btw, why a static lesstif and freetype?)
Requires:	x11-font-adobe-75dpi
Requires:	x11-font-adobe-100dpi
Requires:	%{_lib}qt5svg5
Requires:	%{name}-common = %{EVRD}

# No library subpackage anymore
%rename		%{libname}
%rename		%{develname}

%description
Xpdf is an X Window System based viewer for Portable Document Format (PDF)
files. PDF files are sometimes called Acrobat files, after Adobe Acrobat
(Adobe's PDF viewer).  Xpdf is a small and efficient program which uses
standard X fonts.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/*.*
%{_liconsdir}/*.*
%{_miconsdir}/*.*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package common
Summary:	Common files for xpdf and the applications based on it
Group:		Publishing

%description common
Xpdf is an X Window System based viewer for Portable Document Format (PDF)
files. PDF files are sometimes called Acrobat files, after Adobe Acrobat
(Adobe's PDF viewer). Xpdf is a small and efficient program which uses
standard X fonts.

This package contains common files (such as UnicodeMap and xpdfrc) needed for
xpdf and the applications based on it.

%files common
%{_datadir}/%{name}
%{_mandir}/man5/*
%config(noreplace) %{_sysconfdir}/xpdfrc

#----------------------------------------------------------------------------

%prep
%setup -q -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12
%apply_patches

# This may seem pointless, but in the unlikely event that _sysconfdir != /etc ...
for file in doc/*.1 doc/*.5 xpdf-*/README; do
	sed -i -e 's:/etc/xpdfrc:%{_sysconfdir}/xpdfrc:g' $file
done
# Same action for _datadir.
for file in xpdf-*/README xpdf-*/add-to-xpdfrc; do
	sed -i -e 's:/usr/share/:%{_datadir}/:g' $file
	sed -i -e 's:/usr/local/share/:%{_datadir}/:g' $file
done

# We have the T1 fonts in %%{urwdir}
perl -pi -e 's@/usr/local/share/ghostscript/fonts@%{urwdir}@' doc/sample-xpdfrc *.1 *.5
perl -pi -e 's@/usr/local/fonts@%{_datadir}/fonts@' doc/sample-xpdfrc


%build
%cmake_qt5	.. -DSYSTEM_XPDFRC="%{_sysconfdir}/xpdfrc" \
			-DOPI_SUPPORT=ON \
			-DSPLASH_CMYK=ON \
			-DA4_PAPER=ON

%make


for i in chinese-simplified chinese-traditional cyrillic japanese \
	korean thai greek latin2 turkish hebrew arabic; \
	do
		perl -pi -e 's@/usr/local/share/xpdf@%{_datadir}/xpdf@' \
			../%{name}-$i/add-to-xpdfrc \
			../%{name}-$i/README
		echo >> sample-xpdfrc
		cat ../%{name}-$i/add-to-xpdfrc >> sample-xpdfrc
		rm ../%{name}-$i/add-to-xpdfrc
	done


%install
%makeinstall_std -C build

for i in chinese-simplified chinese-traditional cyrillic japanese \
	korean thai greek latin2 turkish hebrew arabic; \
	do
		mkdir -p %{buildroot}%{_datadir}/%{name}/$i
		cp -a %{name}-$i/* %{buildroot}%{_datadir}/%{name}/$i/
	done

# Install mdk icons
install -d %{buildroot}%{_iconsdir}
tar xjf %{SOURCE1} -C %{buildroot}%{_iconsdir}


# Provide a  .desktop file
install -m 755 -d %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Xpdf
Comment=Views PDF files
Exec=%{name} %f
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/pdf;text/x-pdf;application/pdf;application/x-pdf;
Categories=Office;Viewer;
EOF

# Install sample config
mkdir -p %{buildroot}%{_sysconfdir}/
cp -a doc/sample-xpdfrc %{buildroot}%{_sysconfdir}/xpdfrc

# Remove unwanted files: poppler provides all of that utilities but pdftopng
rm -f %{buildroot}%{_bindir}/pdf*
rm -f %{buildroot}%{_mandir}/man1/pdf*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11652 |21cr|xpeccy-0.5-1.20141117.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define git 20141117

Summary:	ZX Spectrum emulator
Name:		xpeccy
Version:	0.5
Release:	1.%{git}.1
License:	MIT
Group:		Emulators
Url:		http://xpeccy.info/
# From git https://github.com/samstyle/Xpeccy
Source0:	%{name}-%{version}.%{git}.tar.bz2
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(zlib)

%description
ZX Spectrum emulator.

%files
%doc LICENSE_eng LICENSE_rus
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}.%{git}

%build
%cmake -DPACK=rpm
%make VERBOSE=1

%install
%makeinstall_std -C build

install -D -m 0644 %{buildroot}%{_iconsdir}/%{name}.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
rm -f %{buildroot}%{_iconsdir}/%{name}.png

mv %{buildroot}%{_datadir}/applications/Xpeccy.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11653 |21cr|xpenguins-2.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Cute little penguins that walk along the tops of your windows
Name: xpenguins
Version: 2.2
Release: 15
license: GPL
Source0: %{name}-%{version}.tar.bz2
Source1: %name-32x32.png.bz2
Source2: %name-16x16.png.bz2
Source3: %name-48x48.png.bz2
Patch0: xpenguins-2.2-fix-str-fmt.patch
Group: Toys
URL: http://xpenguins.seul.org/
BuildRequires: xpm-devel
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xt)

%description
XPenguins animates a friendly family of penguins in your root window.
They drop in from the top of the screen, walk along the tops of your
windows, up the side of your windows, levitate, skateboard, and do
other similarly exciting things. XPenguins is now themeable so if
you're bored of penguins, try something else. The themes that come
with this package are "Penguins", "Classic Penguins" and "Turtles". 

%prep
%setup -q
%patch0 -p0

%build
# Note: when we compile the program it needs to know where the 
# data will be when finally installed.
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std
mkdir -p  %buildroot{%{_datadir}/applications,%{_iconsdir},%{_miconsdir},%{_liconsdir}}
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_bindir}/%{name}
Icon=%{name}
Categories=Amusement;
Name=Xpenguins
Comment=Display penguins running on your desktop.
EOF

bzip2 -dc %{SOURCE1} > %buildroot%{_iconsdir}/%{name}.png
bzip2 -dc %{SOURCE2} > %buildroot%{_miconsdir}/%{name}.png
bzip2 -dc %{SOURCE3} > %buildroot%{_liconsdir}/%{name}.png

%clean
rm -rf $RPM_BUILD_ROOT

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%files
%defattr(-,root,root)
%doc README AUTHORS COPYING ChangeLog lay-out-frames.scm
%attr(755,root,root) %{_bindir}/xpenguins
%{_mandir}/man1/*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/themes
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11654 |21cr|xphelloworld-1.0.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: xphelloworld
Version: 1.0.1
Release: 13
Summary: Sends a test page to an Xprint printer
Group: Development/X11
License: MIT
Url:    http://cgit.freedesktop.org/xorg/app/xphelloworld/
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Patch0: xphelloworld-1.0.1-fix-xaw8-BR.diff

BuildRequires: pkgconfig(xaw7) >= 1.0.1
BuildRequires: lesstif-devel
BuildRequires: pkgconfig(xp) >= 1.0.0
BuildRequires: pkgconfig(xprintapputil) >= 1.0.1
BuildRequires: pkgconfig(xprintutil) >= 1.0.1
BuildRequires: pkgconfig(xt) >= 1.0.0
BuildRequires: pkgconfig(xorg-macros) >= 1.0.1

%description
Xphelloworld is a utility for Xprint, the printing system for the X Window
system. It sends a test page to the specified printer (or the default printer,
if none is specified).

%prep
%setup -q -n %{name}-%{version}
%patch0 -p0

%build
autoconf
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/xphelloworld
%{_bindir}/xpsimplehelloworld
%{_bindir}/xpxthelloworld
%{_mandir}/man1/xphelloworld.1*
%{_mandir}/man1/xpxthelloworld.1*
%{_mandir}/man1/xpsimplehelloworld.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11655 |21cr|xpilot-4.5.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An X Window System based multiplayer aerial combat game
Name:		xpilot
Version:	4.5.5
Release:	6
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.xpilot.org
Source0:	http://downloads.sourceforge.net/xpilotgame/xpilot-%version.tar.bz2
Source2:	%{name}-16.png
Source3:	%{name}-32.png
Source4:	%{name}-48.png
Patch0:		xpilot-4.5.3-config.patch
Patch1:		xpilot-4.5.5-mga-getline.patch
Patch2:		xpilot-4.5.5-mga-buffer-overflow.patch
BuildRequires:	imake
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
Xpilot is an X Window System based multiplayer game of aerial combat.

The object of the game is to shoot each other down, or you can use the race 
mode to just fly around.

Xpilot resembles the Commodore 64 Thrust game, which is similar to Atari's
Gravitar and Asteriods (note: this is not misspelled).

Unless you already have an xpilot server on your network, you'll need to set up
the server on one machine, and then set up xpilot clients on all of the 
players' machines.

%files
%doc README.txt LICENSE README.txt.msub 
%doc doc
%{_gamesbindir}/*
%{_prefix}/lib/xpilot
%{_mandir}/man?/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-server.desktop
%{_miconsdir}/*
%{_liconsdir}/*
%{_iconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
xmkmf
%make Makefiles
%make CDEBUGFLAGS="%{optflags}" EXTRA_LDOPTIONS="%{ldflags}"

%install
%makeinstall_std install.man INSTBINDIR=%{_gamesbindir}

install -m644 %{SOURCE2} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE3} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE4} -D %{buildroot}%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}%{_mandir}/man{1,6}

# scheesh. cvs files.
find doc -name '.cvs*' | xargs rm -f {} \;

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/%{name}-server.desktop
[Desktop Entry]
Type=Application
Categories=Game;ArcadeGame;
Name=Xpilot server
Comment=Fly/shoot arcade game
Exec=%{_gamesbindir}/xpilots
Icon=%{name}
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Type=Application
Categories=Game;ArcadeGame;
Name=Xpilot - Requires server
Comment=Fly/shoot arcade game
Exec=%{_gamesbindir}/xpilot -join
Icon=%{name}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11656 |21cr|xpired-1.22-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Action puzzle game
Name:		xpired
Version:	1.22
Release:	26
Url:		http://xpired.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/xpired/%{name}-%{version}-linux_source.tar.bz2
Patch0:		xpired-debug.patch
License:	GPLv2+
Group:		Games/Arcade
BuildRequires:	pkgconfig(SDL_gfx) >= 2.0.25
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_image)

%description
X-Pired is an action puzzle game. The goal of the game in each level
is to reach the exit square, avoiding exploding barrels and other
deadly stuff.

%files
%doc *.txt README*
%{_datadir}/applications/*
%{_gamesbindir}/*
%{_gamesdatadir}/*

#=========================================================================

%prep
%setup -qn src
%patch0 -p1

%build
%make \
	PREFIX=%{_prefix} \
	SHARE_PREFIX=%{_gamesdatadir}/xpired

%install
%makeinstall \
	PREFIX=%{buildroot}%{_prefix} \
	SHARE_PREFIX=%{buildroot}%{_gamesdatadir}/xpired

mkdir -p %{buildroot}%{_gamesbindir}
mv %{buildroot}%{_bindir}/* %{buildroot}%{_gamesbindir}

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=X-Pired
Comment=Action-puzzle game
Exec=%{_gamesbindir}/%{name}
Icon=arcade_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11657 |21cr|xplsprinters-1.0.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xplsprinters
Version:	1.0.1
Release:	16
Summary:	Shows a list of Xprint printers and it's attributes
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xp) >= 1.0.0
BuildRequires: pkgconfig(xprintutil) >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
Xplsprinters is a utility for Xprint, the printing system for the X Window
system.  It can deliver both a list of printers and attributes supported for a
specific list of printers.

%files
%{_bindir}/xplsprinters
%{_mandir}/man1/xplsprinters*

#-----------------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}

%build
%configure	\
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11658 |21cr|xpn-1.2.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 	 		xpn
Version: 		1.2.6
Release: 		5

Summary:	GTK2 newsreader with full Unicode support
License:	GPLv2+
Group:		Networking/News
URL:		http://xpn.altervista.org/
Source0:	http://xpn.altervista.org/codice/%{name}-%{version}.tar.gz

BuildArch:	noarch

BuildRequires:	imagemagick

Requires:	gnome-python >= 2.4.1

%description
With XPN you can read/write articles on the Usenet with a good MIME support
(better than some well known newsreaders).

XPN can operate with all the most diffuse charset starting from US-ASCII to
UTF-8. When you edit an article XPN automatically chooses the best charset,
however is always possible to override this choice.

There also other useful features like scoring, filtered views, random
tag-lines, external editor support, one-key navigation, ROT13, spoiler char ...

%prep
%setup -q

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/%{name}
mkdir -p %{buildroot}/%{_datadir}/locale
cp tags.txt %{buildroot}/%{_datadir}/%{name}
cp -r xpn_src %{buildroot}/%{_datadir}/%{name}
cp -r pixmaps %{buildroot}/%{_datadir}/%{name}
cp -r lang/{de,fr,it} %{buildroot}/%{_datadir}/locale
cp %{name}.py %{buildroot}/%{_datadir}/%{name}

#wrapper
cat<<EOF>%{buildroot}/%{_bindir}/%{name}
#!/bin/bash
cd %{_datadir}/%{name}
python %{name}.py -d \$@
EOF
chmod 755 %{buildroot}/%{_bindir}/%{name}

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Internet-News;Network;News;
EOF

#icons
mkdir -p %{buildroot}/%{_liconsdir}
convert -size 48x48 pixmaps/%{name}.xpm %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert -size 32x32 pixmaps/%{name}.xpm %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 pixmaps/%{name}.xpm %{buildroot}/%{_miconsdir}/%{name}.png

%find_lang %{name}

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%update_menus

%postun
%clean_menus
%endif

%files -f %{name}.lang
%defattr(0644,root,root,0755)
%doc AUTHORS ChangeLog README TODO *.html
%attr(0755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11659 |21cr|xpra-4.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Persistent remote applications for X
Name:		xpra
Version:	4.3.3
Release:	1
License:	GPLv2+
Group:		Networking/Other
URL:		http://xpra.org/
#Source0:	http://xpra.org/src/%{name}-%{version}.tar.xz
Source0:	https://github.com/Xpra-org/xpra/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-gobject3
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	python3egg(cython)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(py3cairo)
BuildRequires:	pkgconfig(xres)
BuildRequires:  ack
BuildRequires:  desktop-file-utils
BuildRequires:  libvpx-devel
BuildRequires:  cups-devel
BuildRequires:  pam-devel
BuildRequires:  ffmpeg-devel
BuildRequires:  x264-devel
BuildRequires:  x265-devel
# RPM AutoReq typelib()
BuildRequires:  gobject-introspection-devel
# TODO: package pandoc and enable --with-docs
#BuildRequires:  pandoc
Requires:	python3egg(pillow)
Requires:	python3egg(pycairo)
Requires:	python3egg(pycups)
Requires:	python3egg(pyopengl)
Requires:	python3-gobject
Requires:	python3egg(paramiko)
Requires:	python3egg(pyinotify)
Requires:	python3egg(lz4)
Requires:	python3egg(ldap3)
Requires:	python3egg(rencode)
Requires:	python3egg(netifaces)
Requires:	python3egg(dbus-python)
Requires:	python3egg(numpy)
Requires:	python3egg(python-uinput)
Requires:	python3-gi
Requires:	python3-opencv
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	pulseaudio
Requires:	pulseaudio-utils
Requires:	shared-mime-info
Requires:	js-jquery
# probably no need to package udev rules separately as Fedora
Obsoletes:	xpra-udev < 4.1.3-1
# html5 client is developed separately (https://github.com/Xpra-org/xpra-html5)
# Maybe it will be packaged some day...
Obsoletes:	xpra-html5 < 4.1.3-1

%description
Xpra gives you "persistent remote applications" for X. That is, unlike normal
X applications, applications run with xpra are "persistent" -- you can run
them remotely, and they don't die if your connection does. You can detach them,
and reattach them later -- even from another computer -- with no loss of state.
And unlike VNC or RDP, xpra is for remote applications, not remote desktops --
individual applications show up as individual windows on your screen, managed
by your window manager. They're not trapped in a box. So basically it's screen
for remote X apps.

%files
%license COPYING
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/conf.d
%dir %{_sysconfdir}/%{name}/content-categories
%dir %{_sysconfdir}/%{name}/content-type
%dir %{_sysconfdir}/%{name}/http-headers
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
%config(noreplace) %{_sysconfdir}/%{name}/nvenc.keys
%config(noreplace) %{_sysconfdir}/%{name}/conf.d/*.conf
%config(noreplace) %{_sysconfdir}/%{name}/content-categories/*.conf
%config(noreplace) %{_sysconfdir}/%{name}/content-type/*.conf
%config(noreplace) %{_sysconfdir}/%{name}/http-headers/*.txt
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/90-xpra-virtual.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%{_datadir}/dbus-1/system.d/%{name}.conf
%{_bindir}/xpra
%{_bindir}/xpra_Xdummy
%{_bindir}/xpra_launcher
%{_bindir}/xpra_signal_listener
%{_bindir}/xpra_udev_product_version
%{_bindir}/run_scaled
%{_datadir}/applications/xpra*.desktop
%{_datadir}/icons/hicolor/48x48/apps/xpra-mdns.png
%{_datadir}/icons/hicolor/48x48/apps/xpra-shadow.png
%{_datadir}/icons/hicolor/64x64/apps/xpra.png
%{py3_platsitedir}/xpra
%{py3_platsitedir}/xpra-*.egg-info
%{_datadir}/xpra
%{_datadir}/metainfo/*xml
%{_datadir}/mime/packages/*
%{_mandir}/man1/xpra.1.*
%{_mandir}/man1/xpra_launcher.1.*
%{_mandir}/man1/run_scaled.1.*
%{_prefix}/lib/cups/backend/*
%{_tmpfilesdir}/xpra.conf
%{_prefix}/lib/xpra
%{_sysusersdir}/xpra.conf
%{_udevrulesdir}/*
%{_unitdir}/xpra.service
%{_unitdir}/xpra.socket

%post
%sysusers_create xpra.conf
%tmpfiles_create xpra.conf
%systemd_post xpra.socket xpra.service

%preun
%systemd_preun xpra.socket xpra.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# (From Fedora) cc1: error: unrecognized command line option ‘-mfpmath=387’
%ifarch %{arm}
sed -i 's|-mfpmath=387|-mfloat-abi=hard|' setup.py
%endif

%build
# --without-docs because pandoc is not packaged
%py3_build \
    --with-verbose \
    --with-vpx \
    --with-Xdummy \
    --with-Xdummy_wrapper \
    --without-docs \
    --without-strict


%install
%py3_install \
    --with-verbose \
    --with-vpx \
    --with-Xdummy \
    --with-Xdummy_wrapper \
    --without-docs \
    --without-strict

#move icon to proper directory
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps

mv %{buildroot}%{_datadir}/icons/xpra.png \
    %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/

rm -f %{buildroot}%{_datadir}/icons/xpra-mdns.png
install -pm 644 fs/share/icons/xpra-mdns.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/

rm -f %{buildroot}%{_datadir}/icons/xpra-shadow.png
install -pm 644 fs/share/icons/xpra-shadow.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/

#replace old file with horrible WindowsXP old image
rm -rf %{buildroot}%{_datadir}/appdata

#Install nvenc.keys file
mkdir -p %{buildroot}%{_sysconfdir}/xpra
install -pm 644 fs/etc/xpra/nvenc.keys %{buildroot}%{_sysconfdir}/xpra

#remove doc stuff from /usr/share
rm -f \
    %{buildroot}%{_datadir}/xpra/README \
    %{buildroot}%{_datadir}/xpra/COPYING

#fix shebangs from python3_sitearch
pushd %{buildroot}%{python3_sitearch}/xpra
find . -name '*.py' | xargs pathfix.py -pn -i "%{__python3}"
for i in `ack -rl '^#!/.*python' %{buildroot}%{python3_sitearch}/xpra`; do
    chmod 0755 $i
done
popd

#fix permissions on shared objects
pushd %{buildroot}%{python3_sitearch}/xpra
find . -name '*.so' \
    -exec chmod 0755 {} \;
popd

# delete any bundled SWFs - binary content forbidden by packaging
# guidelines
find %{buildroot}%{_datadir}/xpra -name '*.swf' -exec rm {} \;

# Remove use of /usr/bin/enx on scripts
sed -i "1 s|^#!/usr/bin/env python\b|#!%{__python3}|" %{buildroot}%{_prefix}/lib/cups/backend/xpraforwarder
sed -i "1 s|^#!/usr/bin/env python\b|#!%{__python3}|" %{buildroot}%{_prefix}/lib/xpra/auth_dialog
sed -i "1 s|^#!/usr/bin/env python\b|#!%{__python3}|" %{buildroot}%{_prefix}/lib/xpra/xdg-open

# move to correct directories on ROSA
mkdir -p %{buildroot}%{_udevrulesdir}
mv -v %{buildroot}%{_prefix}/lib/udev/rules.d/* %{buildroot}%{_udevrulesdir}/
rmdir %{buildroot}%{_prefix}/lib/udev/rules.d

# https://github.com/dracutdevs/dracut/issues/1403
mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d
mv -v %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{name}.conf %{buildroot}%{_datadir}/dbus-1/system.d
rmdir %{buildroot}%{_sysconfdir}/dbus-1/system.d
rmdir %{buildroot}%{_sysconfdir}/dbus-1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11660 |21cr|xprobe2-0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	Active ICMP fingerprinting tool
Name:		xprobe2
Version:	0.3
Release:	12
License:	GPLv2+
Group:		Networking/Other
URL:		http://xprobe.sourceforge.net/
Source0:	http://kent.dl.sourceforge.net/sourceforge/xprobe/%{name}-%{version}.tar.gz
Patch:      xprobe2-0.3-fix-compilation.patch
BuildRequires:	libpcap-devel
BuildRequires:	glib2-devel


%description
Xprobe2 is an active operating system fingerprinting tool with a different
approach to operating system fingerprinting. Xprobe2 rely on fuzzy
signature matching, probabilistic guesses, multiple matches simultaneously,
and a signature database.

%prep

%setup -q
%patch -p0

chmod 644 docs/* AUTHORS CHANGELOG COPYING CREDITS README TODO

%build

%configure \
    --bindir=%{_sbindir}

%make 

%install
%makeinstall_std

%files
%doc docs/*.txt docs/*.pdf docs/*.xsd AUTHORS CHANGELOG COPYING CREDITS README TODO
%dir %{_sysconfdir}/%{name}/
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_sbindir}/*
%{_mandir}/man1/* 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11661 |21cr|xqf-1.0.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A network game browser
Name:		xqf
Version:	1.0.6.2
Release:	3
License:	GPLv2+
Group:		Games/Other
Url:		http://www.linuxgames.com/xqf
Source0:	https://github.com/XQF/xqf/archive/%{name}-%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	perl(XML::Parser)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	qstat

%description
XQF is a network game browser (e.g. Quake, Sin, etc.). It helps you
locate and connect to game servers.  It has configurable server and
player filters so you can find a server running your favorite game type
or that has a buddy.

%files -f %{name}.lang
%doc AUTHORS BUGS ChangeLog NEWS README TODO
%doc docs/*html docs/PreLaunch.example
%dir %{_datadir}/%{name}
%{_bindir}/*
%{_mandir}/man?/*
%{_datadir}/%{name}/*
%{_iconsdir}/hicolor/*/apps/*.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

# Needed for autoreconf
cp AUTHORS.md AUTHORS
cp NEWS.md NEWS
cp README.md README

%build
autoreconf -fi
%configure \
	--with-qstat=%{_bindir}/qstat-quake \
	--disable-gtk \
	--enable-gtk2 \
	--enable-bzip2 \
	--enable-geoip

%make

%install
%makeinstall_std

# menu entry
desktop-file-install \
	--remove-category="Application" \
	--remove-category="X-SuSE-Core-Game" \
	--remove-category="ActionGame" \
	--add-category="ArcadeGame" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

mkdir -p %{buildroot}%{_iconsdir}/hicolor/{22x22,32x32,48x48}/apps/
mv -f %{buildroot}%{_datadir}/pixmaps/%{name}_22x22.png %{buildroot}%{_iconsdir}/hicolor/22x22/apps/%{name}.png
mv -f %{buildroot}%{_datadir}/pixmaps/%{name}_32x32.png %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
mv -f %{buildroot}%{_datadir}/pixmaps/%{name}_48x48.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
rm -rf %{buildroot}%{_datadir}/pixmaps

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11662 |21cr|xqilla-2.3.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarbname XQilla

%define major 2
%define libname %mklibname xqilla %{major}
%define devname %mklibname xqilla -d

Summary:	XQilla is an XQuery and XPath 2 library
Name:		xqilla
Version:	2.3.4
Release:	3
License:	Apache License v2
Group:		System/Libraries
Url:		https://xqilla.sourceforge.net/HomePage
Source0:	https://downloads.sourceforge.net/project/xqilla/%{tarbname}-%{version}.tar.gz
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(xerces-c)

%description
XQilla is an XQuery and XPath 2 library.

%files
%defattr(0755,root,root)
%{_bindir}/*

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	XQilla is an XQuery and XPath 2 library
Group:		System/Libraries
Conflicts:	%{_lib}xqilla4 < 2.3.0-3
Obsoletes:	%{_lib}xqilla4 < 2.3.0-3

%description  -n %{libname}
XQilla is an XQuery and XPath 2 library.

%files -n  %{libname}
%{_libdir}/libxqilla.so.%{major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Xqilla development files
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Provides:	libxqilla-devel = %{EVRD}
Provides:	xqilla-devel = %{EVRD}

%description  -n %{devname}
Xqilla development files.

%files -n  %{devname}
%{_libdir}/libxqilla.so
%{_includedir}/xqilla
%{_includedir}/xqc.h

#------------------------------------------------------------------------

%prep
%setup -q -n %{tarbname}-%{version}

%build
autoreconf -fi
export CPPFLAGS="-DPIC -fPIC -std=gnu++14"

%configure \
	--with-xerces=%{_prefix} \
	--enable-debug \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11663 |21cr|xqilla-2.3.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarbname XQilla

%define major 2
%define libname %mklibname xqilla %{major}
%define devname %mklibname xqilla -d

Summary:	XQilla is an XQuery and XPath 2 library
Name:		xqilla
Version:	2.3.4
Release:	4
License:	Apache License v2
Group:		System/Libraries
Url:		https://xqilla.sourceforge.net/HomePage
Source0:	https://downloads.sourceforge.net/project/xqilla/%{tarbname}-%{version}.tar.gz
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(xerces-c)

%description
XQilla is an XQuery and XPath 2 library.

%files
%defattr(0755,root,root)
%{_bindir}/*

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	XQilla is an XQuery and XPath 2 library
Group:		System/Libraries
Conflicts:	%{_lib}xqilla4 < 2.3.0-3
Obsoletes:	%{_lib}xqilla4 < 2.3.0-3

%description  -n %{libname}
XQilla is an XQuery and XPath 2 library.

%files -n  %{libname}
%{_libdir}/libxqilla.so.%{major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Xqilla development files
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Provides:	libxqilla-devel = %{EVRD}
Provides:	xqilla-devel = %{EVRD}

%description  -n %{devname}
Xqilla development files.

%files -n  %{devname}
%{_libdir}/libxqilla.so
%{_includedir}/xqilla
%{_includedir}/xqc.h

#------------------------------------------------------------------------

%prep
%setup -q -n %{tarbname}-%{version}

%build
autoreconf -fi
export CPPFLAGS="-DPIC -fPIC -std=gnu++14"

%configure \
	--with-xerces=%{_prefix} \
	--enable-debug \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11664 |21cr|xraygui-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		xraygui
Version:	2.2
Release:	1
Summary:	GUI for XRay
Group:		Networking/Other
License:	GPLv3
URL:		https://github.com/AKotov-dev/XRayGUI
Source:		https://github.com/AKotov-dev/XRayGUI/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	lazarus
BuildRequires:	gettext
Requires:	curl
Requires:	systemd
Requires:	gtk2
Requires:	p7zip
Requires:	zenity
Requires:	qrencode

%description
A small and nimble GUI for XRay-core

%files
%doc ../README.md
%license ../LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_bindir}/xray-update
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_userunitdir}/xray.service
%{_userunitdir}/xray-update.service
%{_userunitdir}/xray-swproxy.service

%post
%systemd_post xray.service
%systemd_post xray-update.service
%systemd_post xray-swproxy.service

%preun
%systemd_preun xray.service
%systemd_preun xray-update.service
%systemd_preun xray-swproxy.service
#-------------------------------------------------------
%prep
%setup -n XRayGUI-%{version}/%{name}

# remove prebuild file
rm -f %{name}

%build
lazbuild --build-all *.lpi

#translate additional messages
msgfmt languages/lclstrconsts.ru.po -o languages/lclstrconsts.ru.mo

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_userunitdir}
mkdir -p %{buildroot}%{_datadir}/{pixmaps,%{name},applications}
mkdir -p %{buildroot}%{_datadir}/%{name}/languages

cp all/usr/bin/* %{buildroot}%{_bindir}/
cp %{name} %{buildroot}%{_datadir}/%{name}
cp -r ico %{buildroot}%{_datadir}/%{name}
cp all/etc/systemd/user/* %{buildroot}%{_userunitdir}/
cp ico/xraygui.png %{buildroot}%{_datadir}/pixmaps/
cp all/usr/share/applications/xraygui.desktop %{buildroot}%{_datadir}/applications/
cp languages/*.mo %{buildroot}%{_datadir}/%{name}/languages/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11665 |21cr|xrestop-0.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X Resource Monitor
Name:		xrestop
Version:	0.4
Release:	16
License:	GPL
Group:		Monitoring
URL:		http://www.freedesktop.org/Software/xrestop
Source:		http://projects.o-hand.com/sources/xrestop/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xres)
BuildRequires:	ncurses-devel

%description
A utility to monitor the usage of resources within the X Server, and
display them in a manner similar to top.

%files
%defattr(-,root,root,-)
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%doc README AUTHORS NEWS

#-------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make SUBDIRS=

%install
%makeinstall_std SUBDIRS=
%makeinstall_std -C doc SUBDIRS=

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11666 |21cr|xrick-021212-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		xrick
Version:	021212
Release:	6
Summary:	A clone of Rick Dangerous
Group:		Games/Arcade
License:	GPL-like
URL:		http://www.bigorno.net/xrick/
Source:		%{name}-%{version}.tar.bz2
Source1:	%{name}-xpm.tar.bz2
Patch0:		xrick-021212-Makefile.patch
Patch1:		xrick-021212-fno-common.patch
BuildRequires:	SDL-devel
BuildRequires:	zlib-devel
BuildRequires:	imagemagick

%description
Way before Lara Croft, back in the 1980's and early 1990's, Rick Dangerous
was the Indiana Jones of computer games, running away from rolling rocks,
avoiding traps, from South America to a futuristic missile base via Egypt
and the Schwarzendumpf castle.

xrick is a clone of Rick Dangerous. Written entirely in C, it relies on the
Simple DirectMedia Layer library.

This package is in restricted for the copyrighted artwork.

%files
%doc README KeyCodes
%{_gamesbindir}/xrick
%dir %{_gamesdatadir}/%{name}/
%{_gamesdatadir}/%{name}/data.zip
%{_datadir}/applications/mandriva*
%{_miconsdir}/xrick.png
%{_iconsdir}/xrick.png
%{_liconsdir}/xrick.png
%{_mandir}/man6/xrick.6*

#-------------------------------------------------------------------------
%prep
%autosetup -p1 -n xrick-021212 -a 1

%build
#./config
%make

%install
%__mkdir_p %{buildroot}%{_gamesbindir}
%__install -m 755 xrick %{buildroot}%{_gamesbindir}
%__mkdir_p %{buildroot}%{_gamesdatadir}/%{name}
%__install -m 644 data.zip %{buildroot}%{_gamesdatadir}/%{name}
%__mkdir_p %{buildroot}%{_mandir}/man6
%__install -m 644 xrick.6.gz %{buildroot}%{_mandir}/man6

# installation of icons (c) Grégoire :-)
%__mkdir_p %{buildroot}%{_miconsdir}
%__mkdir_p %{buildroot}%{_iconsdir}
%__mkdir_p %{buildroot}%{_liconsdir}
convert xrick-16.xpm %{buildroot}%{_miconsdir}/xrick.png
convert xrick-32.xpm %{buildroot}%{_iconsdir}/xrick.png
convert xrick-48.xpm %{buildroot}%{_liconsdir}/xrick.png

%__mkdir_p %{buildroot}%{_datadir}/applications
%__cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Rick Dangerous
Comment=Xrick - A clone of Rick Dangerous
Exec=%{_gamesbindir}/xrick -data %{_gamesdatadir}/%{name}/data.zip
Icon=xrick
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11667 |21cr|xroar-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dragon32, Dragon64 and Tandy CoCo emulator
Name:		xroar
Version:	1.1
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://www.6809.org.uk/xroar/
Source0:	http://www.6809.org.uk/xroar/dl/%{name}-%{version}.tar.gz
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(zlib)

%description
XRoar is a Dragon32, Dragon64 and Tandy CoCo emulator.
It uses standard cassette images (".cas" files) and virtual diskettes (".dsk"
or ".vdk" files) but has its own snapshot format at the moment (no ".pak" file
support).

%files
%doc ChangeLog COPYING* README
%attr(0755,root,games) %{_gamesbindir}/%{name}
%dir %attr(0755,root,games) %{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export LDLIBS="-lm"
%configure
perl -pi -e "s#share#share/games#g" Makefile
%make

%install
#binary
mkdir -p %{buildroot}%{_gamesbindir}
install -m 755 src/%{name} %{buildroot}%{_gamesbindir}

#data dir
install -d -m 755 %{buildroot}%{_gamesdatadir}/%{name}
#but is there some free software to put in there ?

#icons
install -d -m 755 %{buildroot}%{_miconsdir}
install -m 644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -d -m 755 %{buildroot}%{_liconsdir}
install -m 644 %{SOURCE3} %{buildroot}%{_liconsdir}/%{name}.png

#xdg menu
install -d -m 755 %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=XRoar
Comment=Dragon32, Dragon64 and Tandy CoCo emulator
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Emulator;Game;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11668 |21cr|xscavenger-1.4.4-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: xscavenger
Summary: Cool arcade/thinking game very much like Lode Runner
Version: 1.4.4
Release: 14
Source: http://www.xdr.com/dash/%{name}-%{version}.tar.bz2
Source10: %{name}.16.png.bz2
Source11: %{name}.32.png.bz2
Source12: %{name}.48.png.bz2
Patch0: xscavenger-1.4.4-link.patch
URL: http://www.xdr.com/dash/scavenger.html
License: GPL
Group: Games/Arcade
BuildRequires: pkgconfig(x11)
BuildRequires: imake

%description
Scavenger is a cool arcade/thinking game very much like Lode Runner.
You've got to run around and collect objects while avoiding enemies. Some
objects are buried and you've got to dig down to get at them. It's an
addictive game and some of the levels are devilishly (cruelly) complicated
to solve.

%prep
%setup -q
%patch0 -p0

%build
cd src
perl -pi -e 's,^LIBNAME.*,LIBNAME = %{_gamesdatadir}/%{name},' Imakefile
xmkmf
touch scavenger.man
make CDEBUGFLAGS="%optflags" EXTRA_LDOPTIONS="%build_ldflags"

%install
rm -rf "$RPM_BUILD_ROOT"
mkdir -p $RPM_BUILD_ROOT%{_gamesbindir} $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}
cp src/scavenger $RPM_BUILD_ROOT%{_gamesbindir}
cp -a data/* $RPM_BUILD_ROOT%{_gamesdatadir}/%{name}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man6
cp src/scavenger.6 $RPM_BUILD_ROOT%{_mandir}/man6

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%{name}.desktop
[Desktop Entry]
Type=Application
Exec=%{_gamesbindir}/scavenger
Icon=%{name}
Categories=Game;ArcadeGame;
Name=X-Scavenger
Comment=%{summary}
EOF

mkdir -p $RPM_BUILD_ROOT%{_miconsdir}
mkdir -p $RPM_BUILD_ROOT%{_liconsdir}
bzcat %{SOURCE10} > $RPM_BUILD_ROOT%{_miconsdir}/%{name}.png
bzcat %{SOURCE11} > $RPM_BUILD_ROOT%{_iconsdir}/%{name}.png
bzcat %{SOURCE12} > $RPM_BUILD_ROOT%{_liconsdir}/%{name}.png

%if %mdkversion < 200900
%post
%{update_menus}
%endif

%if %mdkversion < 200900
%postun
%{clean_menus}
%endif

%clean
rm -rf "$RPM_BUILD_ROOT"

%files
%defattr(-,root,root)
%doc README DOC copyright
%attr(0755,root,root) %{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11669 |21cr|xscope-1.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X Window Protocol Viewer
Name:		xscope
Version:	1.4.3
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtrans)

%description
Xscope sits in-between an X11 client and an X11 server and prints the contents
of each request, reply, error, or event that is communicated between them.
Xscope can decode the core X11 protocol and several extensions, including
BIG-REQUESTS, LBX, MIT-SHM, NCD-WinCenterPro, RANDR, and RENDER. This
information can be useful in debugging and performance tuning of X11 servers
and clients.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11670 |21cr|xsel-1.2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xsel
Version:        1.2.0
Release:        5
Summary:        Command line clipboard and X selection tool
Group:          System/X11
License:        MIT
Url:            http://www.vergenet.net/~conrad/software/xsel/
Source0:        http://www.vergenet.net/~conrad/software/xsel/download/xsel-%{version}.tar.gz
# Applied upstream (BZ#690214)
Patch0:         xsel-1.2.0-MAX_NUM_TARGETS.patch
# fedora patches
Patch3:         xsel-1.2.0-do-not-terminate-string.patch
Patch4:         xsel-1.2.0-send-correct-event.patch
Patch5:         xsel-1.2.0-fix-buffer-overflow.patch
BuildRequires:  pkgconfig(sm)
BuildRequires:  pkgconfig(xt)
BuildRequires:  pkgconfig(xext)

%description
XSel is a command line or script utility, similar to xclip, that can copy the
primary and secondary X selection, or any highlighted text, to or from a file,
stdin or stdout. It can also append to and delete the clipboard or buffer that
you would paste with the middle mouse button.

%files
%doc AUTHORS ChangeLog COPYING README
%{_mandir}/man1/xsel.1*
%{_bindir}/xsel
#----------------------------------------------------------------
%prep
%setup -q
%autopatch -p1

%build
%configure
%make

%install
%makeinstall_std



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11671 |21cr|xsettings-kde-0.12.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	XSettings Daemon for KDE Environment
Name:		xsettings-kde
Version:	0.12.3
Release:	11
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://svnweb.mageia.org/soft/theme/xsettings-kde/
Source0:	%{name}-%{version}.tar.bz2
Patch1:		0001-The-IM-support-patch-from-1-imported-into-Mageia-in-.patch
Patch2:		0002-Drop-Ia-Ora-theme-support.patch
Patch3:		0003-Enable-PrimaryPaste.patch
Patch4:		0004-Use-Adwaita-instead-of-gnome-as-fallback-icon-theme.patch
Patch5:		0005-Ensure-GTK-scrollbar-clicks-behaviour-behaves-like-Q.patch
Patch6:		0006-add-forgotten-to-previous-commit.patch
Patch7:		0007-Stop-using-deprecated-GSettings-API.patch
Patch11:	0011-Update-website-links-in-README.patch
Patch12:	0012-README-simplify-what-it-works-for.patch
Patch14:	0014-SVN_SILENT-made-messages-.desktop-file-always-resolv.patch
Patch15:	0015-SVN_SILENT-made-messages-.desktop-file-always-resolv.patch
Patch16:	0016-SVN_SILENT-made-messages-.desktop-file-always-resolv.patch

BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(x11)

%description
This package provides a XSettings daemon for KDE Desktop Environment.
It allows XSettings aware applications (all GTK+ 2 and GNOME 2 applications)
to be informed instantly of changes in KDE configuration, such as theme name,
default font and so on.

%files
%doc ChangeLog README
%{_bindir}/xsettings-kde
%{_sysconfdir}/xdg/autostart/xsettings-kde.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
cat << EOF > xsettings-kde.desktop
[Desktop Entry]
Exec=xsettings-kde
Name=XSettings-KDE
X-KDE-autostart-after=kdesktop
X-KDE-autostart-phase=1
Type=Service
OnlyShowIn=KDE;
EOF

%apply_patches

%build
make \
	CFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}" \
	lib=%{_lib}

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 xsettings-kde %{buildroot}%{_bindir}/xsettings-kde

mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart/
install -m 644 xsettings-kde.desktop %{buildroot}%{_sysconfdir}/xdg/autostart/xsettings-kde.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11672 |21cr|xsidplay-2.1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	XSidPlay Sid Music Player
Name:		xsidplay
Version:	2.1.9
Release:	2
License:	GPLv2+
Group:		Sound
Url:		http://sf.net/projects/xsidplay2
Source0:	http://prdownloads.sourceforge.net/xsidplay2/%{name}-%{version}.tar.bz2
Source1:	%{name}-48.png
Source2:	%{name}-32.png
Source3:	%{name}-16.png
Patch1:		xsidplay-2.1.9-optflags.patch
Patch2:		xsidplay-2.1.9-gcc11.patch
BuildRequires:	cmake
BuildRequires:	libstdc++-devel
BuildRequires:	pulseaudio-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(libsidplayfp)
BuildRequires:	libsidplay-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl)

%description
This is a music player and SID chip emulator based in the SIDPLAY
library. With it you can listen to more than 30000 musics from old
and new C64 programs. The majority of available musics is in the
High Voltage SID Collection.

%files
%{_bindir}/%{name}
%{_iconsdir}/xsidplay.png
%{_iconsdir}/mini/xsidplay.png
%{_liconsdir}/xsidplay.png
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -std=gnu++11
%cmake
%make

%install
%makeinstall_std -C build \
	pkgdatadir=%{_iconsdir}

# menu causes rpmlint warning, but that's ok, xsidplay is provided by
# alternative
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Xsidplay
Comment=QT version of the C64 music player
Exec=%{_bindir}/%{name} %U
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;Audio;Player;
EOF
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
cp %{SOURCE1} %{buildroot}%{_liconsdir}/xsidplay.png
cp %{SOURCE2} %{buildroot}%{_iconsdir}/xsidplay.png
cp %{SOURCE3} %{buildroot}%{_miconsdir}/xsidplay.png

rm -f %{buildroot}%{_prefix}/xsidplay/pixmaps/mini/xsidplay.xpm
rm -f %{buildroot}%{_prefix}/xsidplay/pixmaps/xsidplay.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11673 |21cr|xskat-4.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	The card game Skat as defined by the official Skat Order
Name:		xskat
Version:	4.0
Release:	16
Source0:	http://www.xskat.de/%{name}-%{version}.tar.gz
License:	GPL
Group:		Games/Cards
Url:		http://www.xskat.de/xskat.html
BuildRequires:	pkgconfig(x11)
BuildRequires:	gccmakedep
BuildRequires:	imagemagick
BuildRequires:	imake

%description
XSkat lets you play the card game Skat as defined by
the official Skat Order on any Un*x machine running X11.

Features

* Single- and multiplayer mode.
* Playing over LAN or IRC.
* Game lists and logs.
* Three types of scoring.
* English or German text.
* German or French suited cards.
* Different computer strategies.
* Pre-definable card distributions.
* Variations: Ramsch, Bock, Kontra & Re, ... 

%files
%doc README* CHANGE*
%{_gamesbindir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/%{name}.png
%{_mandir}/man1/*
%lang(de) %{_mandir}/de/man1/*

#---------------------------------------------------------
%prep
%setup -q
for file in CHANGES-de README-de README.IRC-de; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

%build
%setup_compile_flags
%configure --bindir=%{_gamesbindir}
%make

%install
mkdir -p %{buildroot}{%{_gamesbindir},%{_mandir}/{man1,de/man1},%{_menudir}}
install xskat %{buildroot}%{_gamesbindir}
install xskat.man %{buildroot}%{_mandir}/man1/xskat.1
install xskat-de.man %{buildroot}%{_mandir}/de/man1/xskat.1

mkdir -p %{buildroot}%{_iconsdir}
convert icon.xbm %{buildroot}%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Xskat
Comment=The Skat game
Exec=%{name}
Icon=%name
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Cards;Game;CardGame;
EOF



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11674 |21cr|xsmbrowser-3.4.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Tcl/Tk based Samba shares browser
Name: xsmbrowser
Version: 3.4.0
Release: 13
Source0: %{name}-%{version}.tar.bz2
Source1: %{name}-commands.bz2
URL: http://www.public.iastate.edu/~chadspen/
License: GPL
Group: Networking/File transfer
BuildArch: noarch
Requires: expect

%description
xSMBrowser is a fully-capable Samba browsing utility which supports both
WINS and Broadcast networks. It's been tested to work on Redhat, SuSe, DEC
Alphas, and others. It browses all aspects of networks: workgroups,
computers, shares, and files. The ability to add more than one network is
included, and the interface resembles Netscape Navigator (back/forward
buttons, stop, favorites). Mount/unmount buttons are also included.

%prep
rm -rf $RPM_BUILD_ROOT

%setup -n %{name}-%{version}

%build
# no build for noarch packages
perl -pi -e "s|set image_path \"pixmaps\"|set image_path \"%_datadir/pixmaps/xsmbrowser\"||g;" xsmbrowser

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT{%{_bindir},/etc,%_datadir/pixmaps/xsmbrowser}/
install -m 755 xsmbrowser  \
  $RPM_BUILD_ROOT%{_bindir}
install -m 644  pixmaps/*   \
  $RPM_BUILD_ROOT%_datadir/pixmaps/xsmbrowser/

# install KDE xsmbrowser-commands file
install -m 644  %{SOURCE1}  $RPM_BUILD_ROOT/etc/
bunzip2 $RPM_BUILD_ROOT/etc/*.bz2

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc INSTALL
%config(noreplace) %_sysconfdir/*
%_bindir/xsmbrowser
%dir %_datadir/pixmaps/xsmbrowser/
%_datadir/pixmaps/xsmbrowser/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11675 |21cr|xsoldier-1.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Shooting game on X Window System
Name:		xsoldier
Version:	1.8
Release:	4
License:	GPLv2
Group:		Games/Arcade
URL:		http://www.interq.or.jp/libra/oohara/xsoldier/
Source0:	http://www.interq.or.jp/libra/oohara/xsoldier/%{name}-%{version}.tar.gz
Source3:	%{name}-icons.tar.bz2
Patch0:		%{name}-1.5-mdv-fix-str-fmt.patch
BuildRequires:	SDL-devel
BuildRequires:	SDL_image-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)

%description
Great little shoot 'em up game in the style of galaga. Very neat graphics, but
there's no sound support yet.

%files
%defattr(-,root,root)
%doc ChangeLog README LICENSE
%attr(0755, root, games) %{_gamesbindir}/*
%{_gamesdatadir}/*
%{_datadir}/applications/*
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_mandir}/man6/*
%attr(664, games, games) %{_localstatedir}/lib/games/xsoldier/xsoldier.scores

#--------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .strfmt

%build
%configure \
	--bindir=%{_gamesbindir} \
	--localstatedir=%{_localstatedir}/lib  \
	--with-sdl
%make

%install
%makeinstall \
	bindir=%{buildroot}%{_gamesbindir} \
	localstatedir=%{buildroot}%{_localstatedir}/lib

install -m 755 -d %{buildroot}/%{_menudir}
install -m 755 -d %{buildroot}/%{_iconsdir}

(cd  %{buildroot}/%{_iconsdir} ; bunzip2 -c %{SOURCE3} | tar xvf - )

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

chmod 777 %{buildroot}/%{_localstatedir}/lib/games/xsoldier
cp scorefile.txt %{buildroot}/%{_localstatedir}/lib/games/xsoldier/xsoldier.scores

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11676 |21cr|xsp-4.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small Web Server Hosting ASP.NET
Name:		xsp
Version:	4.2
Release:	3
License:	BSD
Group:		System/Servers
Url:		http://www.mono-project.com/
Source0:	http://go-mono.com/sources/xsp/xsp-%{version}.tar.gz
BuildRequires:	pkgconfig(mono)
Conflicts:	apache-mod_mono < 1:1.2.5-2

%description
The XSP server is a small Web server that hosts the Mono System.Web
classes for running what is commonly known as ASP.NET.

%files
%doc AUTHORS INSTALL NEWS README COPYING
%attr(0755,root,root) %{_bindir}/*
%attr(0644,root,root) %{_mandir}/man1/*
%dir %{_prefix}/lib/xsp
%{_prefix}/lib/xsp/4.0
%{_prefix}/lib/xsp/test
%{_prefix}/lib/mono/4.5/*
%{_prefix}/lib/mono/gac/*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
The XSP server is a small Web server that hosts the Mono System.Web
classes for running what is commonly known as ASP.NET.

This package contains the development parts of %{name}.

%files devel
%{_datadir}/pkgconfig/xsp.pc
%{_datadir}/pkgconfig/xsp-2.pc
%{_datadir}/pkgconfig/xsp-4.pc
%{_prefix}/lib/libfpm_helper.a

#----------------------------------------------------------------------------

%package doc
Summary:	Development documentation for %{name}
Group:		Documentation
Requires(post,postun):	mono-tools

%description doc
This package contains the API documentation for %{name} in
Monodoc format.

%files doc
%{_prefix}/lib/monodoc/sources/*

%post doc
%{_bindir}/monodoc --make-index > /dev/null

%postun doc
if [ "$1" = "0" -a -x %{_bindir}/monodoc ]; then %{_bindir}/monodoc --make-index > /dev/null
fi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./configure \
	--prefix=%{_prefix} \
	--disable-shared
make

%install
%makeinstall_std pkgconfigdir=%{_datadir}/pkgconfig
#gw install manually:
install -D src/Mono.WebServer.XSP/xsp.pc %{buildroot}%{_datadir}/pkgconfig/xsp.pc
# strip away annoying ^M
find %{buildroot} -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find %{buildroot} -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
#gw remove unit tests
rm -rf %{buildroot}%{_prefix}/lib/xsp/unittests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11677 |21cr|xsudo-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	xsudo permit execute X-application with sudo
Name:		xsudo
Version:	0.7.0
Release:	1
License:	GPLv3+
Group:		System/Base
Url:		http://www.mageialinux.ru
Source0:	%{name}
Source1:	add2sudoers
Source2:	rmfromsudoers
Source3:	sudoers4user
Source4:	add2sudoers.desktop
Source5:	rmfromsudoers.desktop
Source6:	add2sudoers.png
Source7:	rmfromsudoers.png
BuildArch:	noarch
Requires:	sudo

%description
xsudo permit execute X-application with sudo.

%package -n %{name}-sudoers
Summary:	GUI for adding users to /etc/sudoers and for deleting users from /etc/sudoers
Group:		System/Base
Requires:	%{name} = %{version}
Requires:	zenity
Requires:	beesu

%description -n %{name}-sudoers
GUI for adding users to /etc/sudoers and for deleting users from /etc/sudoers.

%prep
# nothing

%build
# nothing

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/
install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/
install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/
install -m 0755 %{SOURCE3} %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_datadir}/applications
install -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/applications/
install -m 0644 %{SOURCE5} %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m 0644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/
install -m 0644 %{SOURCE7} %{buildroot}%{_datadir}/pixmaps/

%post
A=`cat /etc/sudoers | grep "DISPLAY XAUTHORITY XAUTHLOCALHOSTNAME"`
B=`cat /etc/sudoers | grep "# Defaults requiretty"`
if [ -z "$A" ]
then
  echo "Defaults env_keep += \"DISPLAY XAUTHORITY XAUTHLOCALHOSTNAME\"" >> /etc/sudoers
fi
if [ -z "$B" ]
then
  sed -i '/requiretty/s/^Defaults/# Defaults/g' /etc/sudoers
fi

%files
%{_bindir}/%{name}

%files -n %{name}-sudoers
%{_bindir}/add2sudoers
%{_bindir}/rmfromsudoers
%{_bindir}/sudoers4user
%{_datadir}/applications/add2sudoers.desktop
%{_datadir}/applications/rmfromsudoers.desktop
%{_datadir}/pixmaps/add2sudoers.png
%{_datadir}/pixmaps/rmfromsudoers.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11678 |21cr|xswitcher-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define goipath github.com/ds-voix/xswitcher

Summary:	Fully customizable low-level keyboard helper for X.Org-based Linux desktops
Name:		xswitcher
Version:	1.0
Release:	2
License:	AGPL-3.0
Group:		Text tools
Url:		https://github.com/ds-voix/xswitcher
Source0:	https://github.com/ds-voix/xswitcher/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source6:	src.tar.xz
BuildRequires:	golang
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%gometa

%description
Xswitcher is the fully customizable low-level keyboard helper for X.Org-based Linux desktops.
It consists of two main parts: low-level keylogger and the virtual keyboard.
On each key up/down event, xswitcher checks the last events chain against configured regex-based patterns.
If one matches, xswitcher triggers the associated action. Action chains can be joined from simple actions.
Look at TOML-based explained config file "xswitcher.conf" for further details.

%files
%doc README*
%license LICENSE
%{_bindir}/%{name}
%{_sysconfdir}/%{name}/%{name}.conf

#--------------------------------------------------------------------------------

%prep
%goprep -k

%build
export GO111MODULE=off

# unpack dependences module
( cd _build && tar -xf %{SOURCE6} )

install -m0755  src/keybd_event/keybd_linux_export.go _build/src/github.com/micmonay/keybd_event/

export GOPATH=%{gopath}:"$(pwd)/_build"

mkdir -p _build/src/xswitcher
cp -R embeddedConfig _build/src/xswitcher
cp -R exec _build/src/xswitcher

# compile assets used by the build process
pushd _build/src/%{goipath}
    go build -o xswitcher -ldflags "-s -w" --tags static_all src/*.go
popd


%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}

install -p -m 0755 %{name} %{buildroot}%{_bindir}
install %{name}.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11679 |21cr|xsynth-dssi-0.9.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	Xsynth-DSSI plugin
Name:		xsynth-dssi
Version:	0.9.4
Release:	5
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/dssi/
Source0:	https://sourceforge.net/projects/dssi/files/xsynth-dssi/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(liblo)

%description
Xsynth-DSSI plugin, a classic-analog (VCOs-VCF-VCA) style software
synthesizer.

%files
%doc ChangeLog COPYING AUTHORS README TODO
%{_libdir}/dssi/%{name}/Xsynth_gtk
%{_libdir}/dssi/%{name}.so
%{_datadir}/%{name}/factory_patches.Xsynth
%{_datadir}/%{name}/version_0.1_patches.Xsynth

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11680 |21cr|xsysinfo-1.7-34
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An X Window System kernel parameter monitoring tool
Name:		xsysinfo
Version:	1.7
Release:	34
License:	MIT
Group:		Monitoring
Source0:	ftp://sunsite.unc.edu/pub/Linux/system/status/xstatus/xsysinfo-%{version}.tar.bz2
Source1:	%{name}
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		xsysinfo-1.7-imake.patch
Patch1:		xsysinfo-1.7-xf4.patch
Patch2:		xsysinfo-1.7-includes.patch
BuildRequires:	imake
BuildRequires:	pkgconfig(x11)
BuildRequires:	Xaw3d-devel
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xp)

%description
Xsysinfo is a graphic kernel monitoring tool for the X Window System.
Xsysinfo displays vertical bars for certain kernel parameters:  CPU load
average, CPU load, memory and swap sizes.

Install the xsysinfo package if you'd like to use a graphical kernel
monitoring tool.

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p1 -b .includes
make clean

%build
xmkmf
%make CDEBUGFLAGS="%{optflags}" EXTRA_LDOPTIONS="%{ldflags}"

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Xsysinfo
Comment=System information
Comment[ru]=Информация о системе
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=System;Monitor;X-MandrivaLinux-System-Monitoring;
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

rm -f %{buildroot}/%{_prefix}/lib/X11/app-defaults

%files
%doc README CHANGES
%{_bindir}/xsysinfo
%{_datadir}/X11/app-defaults/XSysinfo
%{_datadir}/X11/app-defaults/XSysinfo-color
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11681 |21cr|xt7-player-mpv-0.35.3181-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define mpv_version 0.35
%define gba_version 3181
%define version %{mpv_version}.%{gba_version}
%define oname xt7-player-mpv


Summary:	Xt7-player mpv GUI
Name:		%{oname}
Version:	%{version}
Release:	2
Url:		http://xt7-player.sourceforge.net/xt7forum/
#Source0:	https://github.com/kokoko3k/xt7-player-mpv/archive/%{oname}-%{version}.tar.gz
# using my git this time 
Source0:	https://github.com/abfonly/xt7-player-mpv/archive/refs/tags/%{oname}-v.%{version}.tar.gz
Source1:	xt7-ru.tar.gz
Source100:	%{oname}.rpmlintrc
License:	GPLv3
Group:		Video

BuildArch:	noarch

BuildRequires:	gambas3-devel >= 3.18.0
BuildRequires:	gambas3-runtime >= 3.18.0
BuildRequires:	gambas3-gb-qt5 >= 3.18.0
BuildRequires:	gambas3-gb-qt5-ext >= 3.18.0
BuildRequires:	gambas3-gb-qt5-x11 >= 3.18.0
BuildRequires:	gambas3-gb-form >= 3.18.0
BuildRequires:	gambas3-gb-desktop >= 3.18.0
BuildRequires:	gambas3-gb-form-mdi >= 3.18.0
BuildRequires:	gambas3-gb-net >= 3.18.0
BuildRequires:	gambas3-gb-net-curl >= 3.18.0
BuildRequires:	gambas3-gb-settings >= 3.18.0
BuildRequires:	gambas3-gb-xml >= 3.18.0
BuildRequires:	gambas3-gb-web >= 3.18.0
BuildRequires:	gambas3-gb-image >= 3.18.0
BuildRequires:	gambas3-gb-image-imlib >= 3.18.0
BuildRequires:	gambas3-gb-image-io >= 3.18.0
BuildRequires:	gambas3-gb-db >= 3.18.0
BuildRequires:	gambas3-gb-dbus >= 3.18.0
BuildRequires:	gambas3-gb-db-form >= 3.18.0
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(taglib-extras)
BuildRequires:	gambas3-gb-gui >= 3.18.0
BuildRequires:	gambas3-gb-compress >= 3.18.0
BuildRequires:	gambas3-gb-form-dialog >= 3.18.0
BuildRequires:	gambas3-gb-signal >= 3.18.0
BuildRequires:	gambas3-gb-libxml >= 3.18.0
BuildRequires:	gambas3-gb-form-stock  >= 3.18.0
BuildRequires:	gambas3-gb-util-web >= 3.18.0
BuildRequires:	gambas3-gb-args >= 3.18.0


# 4 desktop file install/check
BuildRequires:	desktop-file-utils

# 4 appdata file
BuildRequires:	appstream-util

# 4 icons convert
BuildRequires:	imagemagick

# 4 dvb-epg
Requires:	dvbsnoop
Requires:	dvb-apps

# 4 downloading from youtube
Requires:	yt-dlp
Requires:	xterm
Requires:	aria2
Requires:	gambas3-gb-util-web >= 3.18.0

# 4 audio extract/convert
Requires:	ffmpeg >= 4.0.2

# 4 subtiles , manage, download a.s.o.
Requires:	python >= 3.8

# 4 global hotkeys support
Requires:	xbindkeys

# 4 desktop integration
Requires:	xdg-utils

# 4 tagging
Requires:	%{_lib}taglib1
Requires:	%{_lib}taglib_c0
Requires:	taglib-extras

# default player
Requires:	mpv >= 0.34.0
# plugins
Requires:	ladspa

# 4 GUI
Requires:	gambas3-runtime >= 3.18.0
Requires:	gambas3-gb-image >= 3.18.0
Requires:	gambas3-gb-dbus >= 3.18.0
Requires:	gambas3-gb-gui >= 3.18.0
Requires:	gambas3-gb-form >= 3.18.0
Requires:	gambas3-gb-xml >= 3.18.0
Requires:	gambas3-gb-qt5 >= 3.18.0
Requires:	gambas3-gb-qt5-ext >= 3.18.0
Requires:	gambas3-gb-qt5-x11 >= 3.18.0
Requires:	gambas3-gb-form-stock  >= 3.18.0
Requires:	gambas3-gb-net >= 3.18.0
Requires:	gambas3-gb-form-dialog >= 3.18.0
Requires:	gambas3-gb-settings >= 3.18.0
Requires:	gambas3-gb-form-mdi >= 3.18.0
Requires:	gambas3-gb-compress >= 3.18.0
Requires:	gambas3-gb-desktop >= 3.18.0
Requires:	gambas3-gb-web >= 3.18.0
Requires:	gambas3-gb-net-curl >= 3.18.0
Requires:	gambas3-gb-signal >= 3.18.0
Requires:	gambas3-gb-args >= 3.18.0
Requires:	gambas3-gb-util-web >= 3.18.0
Requires:	fonts-ttf-droid

# 4 icecast / shoutcast
Requires:	gambas3-gb-libxml >= 3.18.0

# mplayer based is obsolete
Provides:	Xt7-player3 = %{EVRD}
Provides:	xt7-player3 = %{EVRD}

Obsoletes: xt7-player3 < %{EVRD}
Obsoletes: Xt7-player3 < %{EVRD}

AutoReqProv:	no

%description
Xt7-Player, an complete mpv GUI
This program is written in Gambas3, so you will need Gambas3 to be installed.

%files
%doc LICENSE.TXT README.* CHANGELOG_GIT
%{_bindir}/*
%{_iconsdir}/hicolor/*/apps/%{oname}.png
%{_datadir}/applications/%{oname}.desktop
%{_appdatadir}/*.appdata.xml

#-----------------------------------------------------------
%prep
%setup -qn %{oname}-v.%{version}
#%%setup -qn %%{oname}-master

pushd .lang
tar -xvzf %{SOURCE1}
popd

%build
gbc3 -e -a -g -t  -f public-module -f public-control
gba3

%install
# executable
mkdir -p %{buildroot}%{_bindir}
install -m755 %{oname}-*.gambas %{buildroot}%{_bindir}/%{oname}.gambas

#icons
for size in 256 48 32 16; do
  install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
  convert %{oname}.png -resize ${size} %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/%{name}.png
done



#menu entry
desktop-file-install  %{oname}.desktop\
	--dir %{buildroot}%{_datadir}/applications
	
#appdata
mkdir -p %{buildroot}%{_appdatadir}
cp -R %{oname}.appdata.xml %{buildroot}%{_appdatadir}/%{oname}.appdata.xml

%check
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml	
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11682 |21cr|Xtart-1.0-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Use this to access any installed WM from a logged-in console
Name:		Xtart
Version:	1.0
Release:	25
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-xvt.patch
# call startx instead of xinit, for ConsoleKit
Patch1:		%{name}-startx.patch
License:	GPL
Group:		Graphical desktop/Other
Requires:	python2
BuildArch:	noarch

%description
Xtart is a simple program that checks for properly installed window managers
and allows the user full menu access to them from a logged-in console.  The
special entry 00 in menu selectio will start X with an xterm to manually
start new installations of window managers or to do tests with X and no
window manager.  See /etc/X11/wmsession.d for proper WM integration.

%prep
%autosetup -p1

%build

%install
%{__install} -m 0755 %{name} -D %{buildroot}%{_bindir}/%{name}

#fix shebang
sed '1 s,^.*$,#!/usr/bin/python2,' -i %{buildroot}%{_bindir}/%{name}

%files
%{_bindir}/Xtart

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11683 |21cr|xtitle-0.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Outputs X window titles
Name:		xtitle
Version:	0.4.4
Release:	1
License:	Unlicense
Group:		System/X11
Url:		https://github.com/baskerville/%{name}
Source0:	https://github.com/baskerville/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-event)
BuildRequires:	pkgconfig(xcb-ewmh)

%description
If arguments are given, outputs the title of each arguments,
otherwise outputs the title of the active window and continue to output it
as it changes if the snoop mode is on.

%files
%doc LICENSE README.md
%{_bindir}/%{name}

#------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11684 |21cr|xtoolwait-1.3-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility which aims to decrease X session startup time
Name:		xtoolwait
Version:	1.3
Release:	18
License:	GPL
Group:		System/Configuration/Other
BuildRequires:	imake
BuildRequires:	pkgconfig(x11)
Buildrequires:	pkgconfig(xext)
Url:		http://www.hacom.nl/~richard/software/xtoolwait.html
Source:		ftp://ftp.x.org/contrib/utilities/%{name}-%{version}.tar.bz2
Patch0:		xtoolwait-imake.patch

%description
Xtoolwait is a utility which starts an X client in the background, waits
for a window to be mapped on the root window, and then exits.  Xtoolwait
can improve performance for users who start a bunch of X clients
automatically (for example, xterm, xlock, xconsole, whatever) when the
X session starts.

Install xtoolwait if you'd like to try to speed up the startup time for
X sessions.

%prep
%setup -q
%patch0 -p1

%build
xmkmf
%make CDEBUGFLAGS="%{optflags}" EXTRA_LDOPTIONS="%{ldflags}"

%install
%{makeinstall_std} install.man

%clean

%files
%{_bindir}/xtoolwait
%{_mandir}/man1/xtoolwait.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11685 |21cr|xtouch-0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:		A mk712 touchscreen driver/calibration tool for X 
Name:			xtouch
Version:		0.2
Release:		12
License:		GPL
Group:			System/X11

Source:			xtouch-0.2_ML1.0.0-beta3-8.tar.bz2
Patch0:			xtouch-correct-device.patch
Patch1:			xtouch-conf-file.patch
Patch2:			xtouch-link.patch
URL:			http://unknown_originally_from_Transmeta's_Midori_Linux			
BuildRequires:		pkgconfig(x11)
BuildRequires:		pkgconfig(xtst)
BuildRequires:		pkgconfig(xt)
BuildRequires:		pkgconfig(xi)

%description
Xtouch enables the use of a mk712 touch screen as an input device for X.
If the configuration file is empty, a calibration routine is launched when
X starts.

%files
%doc CONFIG
%{_prefix}/X11R6/bin/%{name}
%{_prefix}/X11R6/bin/dump-mouse
%config(noreplace) %{_sysconfdir}/%{name}
%{_sysconfdir}/X11/xinit.d/%{name}
%config(noreplace) %{_sysconfdir}/devfs/conf.d/mk712.conf
#----------------------------------------------------------------------
%prep
%setup -q
patch -p2 < xtouch-bestfit.patch
%patch0 -p1 -b .dev
%patch1 -p1 -b .conf
%patch2 -p0 -b .link
perl -pi -e "s|-lX11|-lX11 -g|" src/Makefile

%build
pushd src
%setup_compile_flags
%make
%make dump-mouse
popd

%install
install -d %{buildroot}%{_prefix}/X11R6/bin
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sysconfdir}/X11/xinit.d
install -d %{buildroot}%{_sysconfdir}/devfs/conf.d
install src/%{name} %{buildroot}%{_prefix}/X11R6/bin
install src/dump-mouse %{buildroot}%{_prefix}/X11R6/bin
cat /dev/null >  %{buildroot}%{_sysconfdir}/%{name}

cat >> %{buildroot}%{_sysconfdir}/X11/xinit.d/%{name} <<EOF
#!/bin/sh
# start the touchscreen handler, it will calibrate if there
# is no xtouch file in /etc or ~/.xtouch
XTOUCH_CALIBRATE=1 xtouch &
EOF
chmod +x %{buildroot}%{_sysconfdir}/X11/xinit.d/%{name}
 
cat >> %{buildroot}%{_sysconfdir}/devfs/conf.d/mk712.conf <<EOF
REGISTER        ^misc/mk712*        PERMISSIONS     root.root  0644
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11686 |21cr|xtrace-1.3.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An strace like program for tracing X11 connections
Name:		xtrace
Version:	1.3.1
Release:	4
License:	BSD 
Group:		System/Kernel and hardware
URL:		https://alioth.debian.org/projects/xtrace/
Source0:	http://ftp.de.debian.org/debian/pool/main/x/xtrace/%{name}_%{version}.orig.tar.gz

%description
What strace is for system calls, xtrace is for X11 connections:
you hook it between one or more X11 clients and an X server and
it prints the requests going from client to server and the replies,
events and errors going the other way.


%prep
%setup -q
%configure

%build
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"
%make

%install
%makeinstall_std
mv %{buildroot}/%{_bindir}/xtrace %{buildroot}/%{_bindir}/xtrace-x11
mv %{buildroot}/%{_mandir}/man1/xtrace.1 %{buildroot}/%{_mandir}/man1/xtrace-x11.1
mv %{buildroot}/%{_datadir}/%{name} %{buildroot}/%{_datadir}/%{name}-x11/

%clean

%files
%doc README NEWS
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/%{name}-x11/*.proto

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11687 |21cr|xtrlock-2.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debver	2.15

Summary:	Minimal X display lock program
Name:		xtrlock
Version:	2.15
Release:	1
Group:		Graphical desktop/Other
URL:		http://packages.debian.org/sid/xtrlock
BuildRequires:	pkgconfig(x11)
BuildRequires:	imake
License:	GPLv3
Source0:	http://ftp.de.debian.org/debian/pool/main/x/%{name}/%{name}_%{debver}.tar.xz


%description
xtrlock is a very minimal X display lock program, which uses nothing
except the Xlib library. It doesn't obscure the screen, it is
completely idle while the display is locked and you don't type at it,
and it doesn't do funny things to the X access control lists. 

%prep
%setup -q

%build
xmkmf
%make CFLAGS="%{optflags}" xtrlock

%install
install -Dm 755 xtrlock %{buildroot}%{_bindir}/%{name}
install -Dm 644 xtrlock.man %{buildroot}%{_mandir}/man1/%{name}.1x

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=Xtrlock
Comment=X terminal lock
Exec= xtrlock
Icon=gnome-lockscreen
Terminal=false
Type=Application
StartupNotify=true
Categories=System;
EOF


%files
%doc GPL-3.txt debian/README.Debian debian/changelog 
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11688 |21cr|xtux-20030306-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil

Name:		xtux
Version:	20030306
Release:	17
Summary:	Multiplayer arcade game featuring open-source mascots
Group:		Games/Arcade
License:	GPLv2
URL:		http://xtux.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-src-%{version}.tar.bz2
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
Patch:		xtux-fix-format-strings.patch
BuildRequires:	pkgconfig(xpm)

%description
2005: Microsoft finally releases Windows2000. The few remaining in line
from midnight December 31, 1999 expecting Microsoft to deliver "on time"
were slightly annoyed, but otherwise the response was extremely
enthusiastic.

...

You must Battle through hoards of Evil Microsoft lusers, Certified Peons
and Bugs while collecting computer processors. Using these, construct a
massive Beowulf machine capable of cracking the security on Microsofts
secret database. Upload yourself into the internet, liberate friendly
Linux sites, then battle your way into microsoft.com destroying all you
can find. Only then can you turn your wrath towards your nemisis, the
evil lord Gates.

%prep
%setup -q -n %{name}
%patch -p2
perl -pi -e 's|./tux_serv|%{_gamesbindir}/tux_serv|;' src/client/menu.c
find . -type f -exec chmod -x {} \;

%build
make CC="%{__cc} %{optflags}" DATADIR="%{_gamesdatadir}/%{name}" X11LIB="-lX11"

%install
mkdir -p %{buildroot}%{_gamesbindir}
install -m 755 %{name} %{buildroot}%{_gamesbindir}
mkdir -p %{buildroot}%{_sbindir}
install -m 755 tux_serv %{buildroot}%{_gamesbindir}

mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
cp -a data/* %{buildroot}%{_gamesdatadir}/%{name}

# icons
install -D -m 644 %{SOURCE1} %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 %{SOURCE3} %{buildroot}%{_miconsdir}/%{name}.png

# menus

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=X-Tux
Comment=X-Tux
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

%{_bindir}/find %{buildroot}%{_gamesdatadir}/%{name}/images -type d -name ".xvpics" | %{_bindir}/xargs -t %{__rm} -r

%files
%doc AUTHORS CHANGELOG COPYING README README.GGZ doc/*
%attr(0755,root,root) %{_gamesbindir}/%{name}
%attr(0755,root,root) %{_gamesbindir}/tux_serv
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11689 |21cr|xvattr-1.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xvattr
Version:	1.3
Release:	14
Summary:	Attribute editor for Xv extensions
License:	GPL
Group:		Video
URL:		http://www.dtek.chalmers.se/groups/dvd/
Source:		http://www.dtek.chalmers.se/~dvd/dist/%{name}-%{version}.tar.bz2
# (gentoo) use gtk+2.0:
Patch0:		xvattr-1.3-gtk.patch
Patch1:		xvattr-1.3-encoding.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)


%description
Xvattr lets you list the available attributes associated with the Xv
extension to Xorg. It also allows you to change the values of the
attributes. This can be used to change brightness and so on for
programs that use Xv overlays.

%prep
%setup -q
%patch0 -p1
%patch1 -p0

%build
autoreconf -fiv
%configure
%make

%install
%makeinstall


%files
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README xvattr.html
%{_bindir}/%{name}
%{_bindir}/gxvattr
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11690 |21cr|xvid-1.3.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 4
%define libname %mklibname xvidcore %{major}
%define devname %mklibname %{name} -d

Summary:	Video codec compatible with DivX 4
Name:		xvid
Version:	1.3.7
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.xvid.com
Source0:	http://downloads.xvid.com/downloads/xvidcore-%{version}.tar.gz
BuildRequires:	yasm

%description
This is a video codec based on the original OpenDivX codec. It's
compatible with DivX and MPEG 4.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Video codec compatible with DivX 4
Group:		System/Libraries

%description -n %{libname}
This is a video codec based on the original OpenDivX codec. It's
compatible with DivX and MPEG 4.

%files -n %{libname}
%{_libdir}/libxvidcore.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Video codec compatible with DivX 4, development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	xvid4-devel = %{EVRD}

%description -n %{devname}
This is a video codec based on the original OpenDivX codec. It's
compatible with DivX and MPEG 4.

This package contains the header files and static libraries needed to
build programs with the xvid codec using it's native API.

%files -n %{devname}
%doc ChangeLog CodingStyle TODO AUTHORS
%{_libdir}/libxvidcore.so
%{_includedir}/xvid.h

#----------------------------------------------------------------------------

%prep
%setup -qn xvidcore

%build
cd build/generic
%configure
%make

%install
cd build/generic
%makeinstall

rm -f %{buildroot}%{_libdir}/libxvidcore.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11691 |21cr|xvidcap-1.1.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# Note that disabling these does not cause build failures, but
# other output formats than xwd will be disabled
# embedded ffmpeg vhook modules
%define _disable_ld_no_undefined 1
# FIXME: embedded ffmpeg
%define _disable_ld_as_needed 1

Name:		xvidcap
Summary:	Screen capture video recorder
Version:	1.1.7
Release:	6
License:	GPLv2+
Group:		Video
URL:		http://xvidcap.sourceforge.net/
Source0:	http://downloads.sourceforge.net/xvidcap/%{name}-%{version}.tar.gz
Source1:	xvidcap_ru.po
Patch0:		xvidcap-1.1.5-docbook.patch
Patch1:		xvidcap-1.1.7-fix-headers.patch
Patch2:		xvidcap-1.1.5-nawk.patch
Patch3:		xvidcap-1.1.7-desktop-entry.patch
Patch4:		xvidcap-1.1.7-ffmpeg-options.patch
Patch5:		xvidcap-1.1.7-shmstr.patch
Patch6:		xvidcap-1.1.7-glib.patch
Patch7:		xvidcap-1.1.7-add-ru-localization.patch

BuildRequires:	docbook-utils
BuildRequires:	intltool
BuildRequires:	scrollkeeper
BuildRequires:	xmlto
BuildRequires:	jpeg-devel
BuildRequires:	gettext
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	libfaac-devel
BuildRequires:	libfaad2-devel
BuildRequires:	liblame-devel
BuildRequires:	pkgconfig(x264)
BuildConflicts:	ffmpeg-devel
Requires(post):	scrollkeeper
Requires(postun): scrollkeeper
Requires:	mplayer
Requires:	mencoder
Requires:	ffmpeg
Requires:	imagemagick

%description
xvidcap is a screen capture enabling you to capture videos off your X-Window
desktop for illustration or documentation purposes. It is intended to be a
standards-based alternative to tools like Lotus ScreenCam.

%prep
%setup -q
cp -p %{SOURCE1} po/ru.po
%patch0 -p0 -b .docbook
%patch1 -p1
%patch2 -p0 -b .fixawk
%patch3 -p1
%patch4 -p1
%patch5 -p0
%patch6 -p1
%patch7 -p1 -b .ru_po

autoreconf -fi
#aclocal
#autoheader
#autoconf
#automake
sed -i 's/configure.in/configure.ac/' configure.ac
# NOCONFIGURE=yes sh ./autogen.sh
intltoolize --copy --force

%build
%configure --disable-dependency-tracking --enable-libtheora LIBS="-lX11 -lz -lXext"

%make CPPFLAGS=-I`pwd`/ffmpeg

%install
%makeinstall_std

chmod 755 %{buildroot}%{_datadir}/%{name}/ppm2mpeg.sh
ln -s %{_datadir}/%{name}/ppm2mpeg.sh %{buildroot}%{_bindir}/ppm2mpeg.sh

rm -fr %{buildroot}/%{_docdir}

%find_lang %{name} --with-gnome --with-man --all-name

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_bindir}/xvidcap-dbus-client
%{_bindir}/ppm2mpeg.sh
%{_datadir}/dbus-1/services/net.jarre_de_the.Xvidcap.service
%{_mandir}/man1/*
%{_datadir}/applications/xvidcap.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11692 |21cr|xvideoservicethief-2.5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xVideoServiceThief

Summary:	Downloading your favourite video clips
Name:		xvideoservicethief
Version:	2.5.2
Release:	2
License:	GPLv2+
Group:		Networking/WWW
Url:		http://xviservicethief.sourceforge.net
# https://github.com/xVST/xVideoServiceThief/archive/%{version}
Source0:	https://github.com/xVST/xVideoServiceThief/archive/%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	xvst = %{version}
Provides:	xviservicethief = %{version}

%description
xVideoServiceThief (a.k.a xVST) is a tool for downloading your favourite
video clips from a lot of video websites.

xVideoServiceThief also provide you the ability to convert each video in
most popular formats: AVI, MPEG1, MPEG2, WMV, MP4, 3GP, MP3 file formats.

%files
%doc GPL.txt README.md
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#--------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}
sed -i '44i#include <QDataStream>' \
	src/qtsingleapplication/src/qtlocalpeer.cpp
    
%build
%qmake_qt5
%make

%install
install -D -m0755 bin/xvst %{buildroot}%{_bindir}/xvst

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=xVideoServiceThief
Comment=Downloading video clips
Exec=%{_bindir}/xvst
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Qt;Network;
EOF

# install menu icons
for N in 16 32 48 64;
do
convert resources/icons/win32.ico -scale ${N}x${N} $N.png;
install -D -m 0644 $N-0.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11693 |21cr|xviewer-3.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Image viewer
Name:		xviewer
Version:	3.2.4
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/linuxmint/xviewer
Source0:	https://github.com/linuxmint/xviewer/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(cinnamon-desktop)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk+-unix-print-3.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(xapp)
Requires:	cinnamon-desktop

%description
This is Xviewer, a fast and functional image viewer.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/help/*/%{name}
%{_datadir}/glib-2.0/schemas/*.xml
%{_iconsdir}/hicolor/*/apps
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C

%description devel
This package contains the development files to develop plugins
for %{name}.

%files devel
%{_includedir}/%{name}-3.0
%{_libdir}/pkgconfig/%{name}.pc

##############################################################

%prep
%autosetup -p1

%build
#autoreconf -if
NOCONFIGURE=1 gnome-autogen.sh
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/man1
cp debian/%{name}.1 %{buildroot}%{_mandir}/man1/
rm -rf %{buildroot}%{_iconsdir}/hicolor/icon-theme.cache

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11694 |21cr|xviewer-plugins-1.4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xviewer-plugins
Version:	1.4.3
Release:	2
Summary:	A collection of plugins for xviewer
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/linuxmint/xviewer-plugins
Source:		https://github.com/linuxmint/%{name}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	gnome-common
BuildRequires:	python3
BuildRequires:	pkgconfig(champlain-gtk-0.12)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	xviewer
BuildRequires:	pkgconfig(xviewer)
BuildRequires:	pkgconfig(glib-2.0)
Requires:	xviewer

%description
This package contains plugins for additional features in xviewer.

%files -f %{name}.lang
%{_libdir}/xviewer/plugins/*

#-------------------------------------------------------------------------------

%package -n %{name}-data
Summary:	Common data for xviewer-plugins
Group:		Graphics
Requires:	xviewer
Requires:	xviewer-plugins
BuildArch:	noarch

%description -n %{name}-data
Common data required by all xviewer plugins

%files -n %{name}-data
%doc COPYING
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/xviewer/plugins/*
%{_datadir}/metainfo/xviewer-*.metainfo.xml
#-------------------------------------------------------------------------------

%prep
%setup -q

# fix install to lib or lib64
sed -i "s/'lib'/'%{_lib}'/" meson.build

%build
%meson
%meson_build

%install
%meson_install

#find %{buildroot} -type f -name "*.la" -delete -print

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11695 |21cr|xvkbd-4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Virtual (on-screen) keyboard for X
Name:		xvkbd
Version:	4.1
Release:	1
License:	GPL
Group:		System/X11
Url:		http://homepage3.nifty.com/tsato/xvkbd/
Source0:	http://t-sato.in.coocan.jp/xvkbd/xvkbd-4.1.tar.gz
BuildRequires:	Xaw3d-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	imagemagick
BuildRequires:	imake

%description
xvkbd is a virtual (graphical) keyboard program for X Window System which
provides facility to enter characters onto other clients (softwares) by
clicking on a keyboard displayed on the screen. This may be used for systems
without a hardware keyboard such as kiosk terminals or handheld devices.

This program also has facility to send characters specified as the command
line option to another client, which can help when one wants to fully utilize
some modern mice with multiple buttons.

%files
%doc README
%{_prefix}/bin/*
%{_datadir}/X11/app-defaults/*
%{_datadir}/X11/words.english
%{_mandir}/man1/*
%{_datadir}/applications
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#-------------------------------------------------------------------------

%prep
%setup -q

%build
xmkmf
%make CDEBUGFLAGS="%{optflags}" EXTRA_LDOPTIONS="%build_ldflags"

%install
%makeinstall_std install.man
rm -f %{buildroot}/%{_prefix}/lib/X11/app-defaults

#menu

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Virtual Keyboard
Comment=On-screen keyboard for X
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
Categories=X-MandrivaLinux-MoreApplications-Accessibility;
EOF

#icons
mkdir -p %{buildroot}/%{_liconsdir}
convert -size 48x48 xvkbd_icon.xbm %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
convert -size 32x32 xvkbd.xbm %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 xvkbd.xbm %{buildroot}/%{_miconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11696 |21cr|xwii-2.9.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This package is based on a stripped binary object, we can't create useful debug for it
%define debug_package %{nil}

Name:		xwii
License:	GPL
Group:		System/Kernel and hardware
URL:		http://pingus.seul.org/~grumbel/xwii/
Version:	2.9.4
Release:	8
Summary:	Nintendo Wiimote Driver
Source:		http://pingus.seul.org/~grumbel/xwii/%{name}_%{version}_src.tar.gz
Patch0:		xwii_2.9.4-linkage.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xi)
BuildRequires:	wiiuse
BuildRequires:	wiiuse-devel

%description
Userspace Nintendo Wiimote Driver for Linux

%prep
%setup -q -n %{name}_%{version}_src
%patch0 -p0 -b .link
rm -fr wiiuse_v0.12

%build
ln -s %{_libdir}/libwiiuse.so ./
%make PREFIX=%{_prefix}

%install
install -d %{buildroot}%{_docdir}/%{name}/
install -d %{buildroot}%{_datadir}/%{name}/

install -Dp xwii %{buildroot}%{_bindir}/%{name}
install -Dp Documentation/* %{buildroot}%{_docdir}/%{name}/
install -Dp profiles/* %{buildroot}%{_datadir}/%{name}/

%clean

%files
%{_bindir}/%{name}
%{_docdir}/%{name}
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11697 |21cr|xwiimote-2-1.20131221.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	2
%define libname	%mklibname xwiimote %{major}
%define devname	%mklibname xwiimote -d

Summary:	Open Source Nintendo Wii Remote Linux Device Driver
Name:		xwiimote
Group:		System/X11
Version:	2
Release:	1.20131221.4
License:	LGPLv2+
Url:		https://github.com/dvdhrm/xwiimote
Source0:	%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(libudev)

%description
Open Source Nintendo Wii Remote Linux Device Driver.

%files
%doc %{_docdir}/%{name}
%{_bindir}/xwiishow
%{_mandir}/man1/xwiishow.1*
%{_mandir}/man7/xwiimote.7*

#---------------------------------------------------
%package -n	%{libname}
Summary:	xwiimote library
Group:		System/Libraries

%description -n	%{libname}
Library for xwiimote.

%files -n %{libname}
%{_libdir}/libxwiimote.so.%{major}*

#---------------------------------------------------

%package -n	%{devname}
Summary:	Devel stuff for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_includedir}/xwiimote.h
%{_mandir}/man7/libxwiimote.7*
%{_libdir}/libxwiimote.so
%{_libdir}/pkgconfig/libxwiimote.pc

#---------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11698 |21cr|xwinfo-0-0.git6cd58.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6cd58a94086e39ef964a90fc2ca207ae34f1373e
%define shortcommit %(c=%{commit}; echo ${c:0:5})

Summary:	Print X window informations
Name:		xwinfo
Version:	0
Release:	0.git%{shortcommit}.1
License:	Unlicense
Group:		System/X11
Url:		https://github.com/baskerville/%{name}
Source0:	https://github.com/baskerville/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRequires:	pkgconfig(xcb-ewmh)

%description
xwinfo prints the informations requested by the given options
regarding the window IDs given as argument.

%files
%license LICENSE
%doc README.asciidoc
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}
cp --remove-destination doc/xwinfo.1.txt README.asciidoc

# Do not strip, RPM will do it
sed -i -e '/LDFLAGS += -s/d' Makefile

%build
%setup_compile_flags
%make

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11699 |21cr|xwinwrap-0-1.gitec32e9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


%define debug_package	%{nil}

%define commit ec32e9b72539de7e1553a4f70345166107b431f7
%define commit_short %(echo %{commit} | head -c6)

Name:		xwinwrap
Version:	0
Release:	1.git%{commit_short}.1
Summary:	Utility to run applications as your desktop background
Group:		System/X11
License:	GPL
URL:		https://github.com/ujjwal96/xwinwrap
Source:		https://github.com/ujjwal96/xwinwrap/archive/ec32e9b72539de7e1553a4f70345166107b431f7.zip?/%{name}-%{commit}.zip
#This is a script to run xscreensaver as animated background in Xgl
# and is under GPLv2
Source1:	coolbg
Patch0:		xwinwrap-instance-bug.patch
Patch1:		xwinwrap-root-window.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)

%description
Wrap, for example, Open GL screen savers and put them on your 
desktop background.

Examples:
xwinwrap -ni -argb -fs -s -st -sp -a -nf -- /usr/lib/xscreensaver/glmatrix
-window-id WID
xwinwrap -ni -o 0.6 -fs -s -st -sp -b -nf -- mplayer -wid WID -quiet movie.mpg
xwinwrap -ni -argb -fs -s -st -sp -b -nf -- q3demo -window-id WID

#---------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}


%build
%ifarch %{x86_64} aarch64 riscv64 %{e2k}
/usr/bin/gcc -Wall -Wstrict-prototypes \
             -Wmissing-prototypes \
             -Wmissing-declarations \
             -Wredundant-decls \
             -lX11 -lXext -lXrender xwinwrap.c -o xwinwrap
%else
/usr/bin/gcc -m32 -Wall -Wstrict-prototypes \
             -Wmissing-prototypes \
             -Wmissing-declarations \
             -Wredundant-decls \
             -lX11 -lXext -lXrender xwinwrap.c -o xwinwrap
%endif

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

cat<<EOF >README
With xwinwrap and coobg You can run your screensavers, play
movies etc and it will look as if they are part of your background.
EOF

%files
%doc README
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11700 |21cr|xwpick-2.20-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xwpick
Summary:	A X Window System screenshot grabber
Version:	2.20
Release:	25
License:	MIT
Group:		Graphics
BuildRequires:	imake 
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Source0:	ftp://ftp.x.org/contrib/applications/%{name}-%{version}.tar.bz2
Source11:	%{name}-16.png
Source12:	%{name}-32.png
Source13:	%{name}-48.png

%description
The xwpick program allows you to choose an image or a rectangular piece
of an image from an X Window System window and then write the image to
a file in a variety of formats, incuding PostScript(TM), GIF, and PICT.

%prep
%setup -q

%build
xmkmf
perl -pi -e "s|CXXDEBUGFLAGS = .*|CXXDEBUGFLAGS = %{optflags}|" Makefile
perl -pi -e "s|CDEBUGFLAGS = .*|CDEBUGFLAGS = %{optflags}|" Makefile 
%make

%install
%makeinstall_std install.man

# icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

# Menu entry

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Xwpick
Comment=Screenshot grabber
Comment[ru]=Программа снятия скриншотов
Exec=%{_bindir}/%{name} 
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Graphics;2DGraphics;
EOF

%clean

%files
%{_bindir}/%{name}
%{_mandir}/man1/xwpick.1*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11701 |21cr|xxgdb-1.12-35
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xxgdb
Summary:	An X Window System graphical interface for the GNU gdb debugger
Version:	1.12
Release:	35
License:	MIT
Group:		Development/Other
Source0:	ftp://sunsite.unc.edu/pub/Linux/devel/debuggers/%{name}-%{version}.tar.bz2
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
Patch0:		xxgdb-1.08-glibc.patch
Patch1:		xxgdb-1.12-sysv.patch
# From Debian (008-unix98-ptys.dpatch): Support Unix98 PTYs - AdamW
# 2008/09
Patch3:		xxgdb-1.12-debian-pty.patch
# From Debian: fix a build failure - AdamW 2008/09
Patch4:		xxgdb-1.12-debian-filemenu.patch
Patch5:		xxgdb-1.12-mandriva.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
BuildRequires:	imake
Requires:	gdb
Requires:	xedit

%description
Xxgdb is an X Window System graphical interface to the GNU gdb debugger.
Xxgdb provides visual feedback and supports a mouse interface for the
user who wants to perform debugging tasks like the following:  controlling
program execution through breakpoints, examining and traversing the
function call stack, displaying values of variables and data structures,
and browsing source files and functions.

Install the xxgdb package if you'd like to use a graphical interface with
the GNU gdb debugger.  You'll also need to have the gdb package installed.

%files
%{_bindir}/%{name}
%{_mandir}/man1/xxgdb.1*
%{_datadir}/X11/app-defaults/XDbx
%{_datadir}/applications/mandriva-%{name}.desktop
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

#--------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}

%build
xmkmf
%make CDEBUGFLAGS="%{optflags} -DUNIX98=1" CXXDEBUGFLAGS="%{optflags} -DUNIX98=1"

%install
%makeinstall_std install.man

# icons
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Xxgdb
Comment=Graphical interface to gdb debugger
Exec=%{_bindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Development;Debugger;
EOF

rm -f %{buildroot}%{_prefix}/lib/X11/app-defaults


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11702 |21cr|xxkb-1.11.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A keyboard layout indicator and switcher
Name:		xxkb
Version:	1.11.1
Release:	4
License:	Artistic-2.0
Group:		System/X11
Url:		http://xxkb.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}-%{version}-src.tar.gz
BuildRequires:	gccmakedep
BuildRequires:	imake
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)

%description
The xxkb program is a keyboard layout switcher and indicator. Unlike the
programs that reload keyboard maps and use their own hot-keys, xxkb is a
simple GUI for XKB (X KeyBoard extension) and just sends commands to and
accepts events from XKB. That means that it will work with the existing
setup of your X Server without any modifications.

%files
%doc README* LICENSE CHANGES.koi8
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.xpm
%{_datadir}/X11/app-defaults/XXkb
%{_sysconfdir}/X11/app-defaults/XXkb
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
xmkmf -a
%make \
	CDEBUGFLAGS="%{optflags}" \
	LIBDIR=%{_datadir}/X11

%install
%makeinstall_std \
	LIBDIR=%{_datadir}/X11 \
	install.man

# Fix XXkb symlink
rm -rf %{buildroot}%{_datadir}/X11/app-defaults
mkdir -p %{buildroot}%{_datadir}/X11/app-defaults
pushd %{buildroot}%{_datadir}/X11/app-defaults
ln -s ../../../..%{_sysconfdir}/X11/app-defaults/XXkb XXkb
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11703 |21cr|xxxterm-1.11.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A minimalists web browser
Name:		xxxterm
Version:	1.11.3
Release:	5
License:	MIT
Group:		Networking/WWW
Url:		https://opensource.conformal.com/wiki/XXXTerm
Source0:	https://opensource.conformal.com/snapshots/xxxterm/%{name}-%{version}.tgz
Patch0:		xxxterm-1.8.0-mdv-desktop.patch
Patch1:		xxxterm-1.11.3-link-javascriptcoregtk.patch
Patch2:		0001-Change-default-homepage.patch
# From Debian unchanged
Patch10:	0002-Fix-resources-dir.patch
Patch11:	0006-Add-missing-includes.patch
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(webkit-1.0)

%description
xxxterm is a minimalist web browser with sophisticated security features
designed-in (rather than through an add-on). In particular, it provides both
persistent and per-session controls for scripts and cookies, making it easy
to thwart tracking and scripting attacks.

In additional to providing a familiar mouse-based interface like other web
browsers, it offers a set of vi-like keyboard commands for users who prefer
to keep their hands on their keyboard.

The default settings provide a secure environment. With simple keyboard
commands, the user can "whitelist" specific sites, allowing cookies and
scripts from those sites.

%files
%doc %dir %{_docdir}/xxxterm
%doc %{_docdir}/xxxterm/LICENSE
%{_mandir}/man1/xxxterm.*
%{_bindir}/xxxterm
%{_datadir}/applications/xxxterm.desktop
%{_datadir}/xxxterm/style.css
%{_datadir}/xxxterm/xxxterm*.png
%{_datadir}/xxxterm/tld-rules
%{_iconsdir}/hicolor/*/apps/xxxterm.png

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch10 -p1
%patch11 -p1

%build
export CFLAGS="%{optflags}"
cd linux
%make \
	OPTIMIZE="%{optflags}" \
	PREFIX=%{_prefix}

%install
pushd linux
make install PREFIX=%{buildroot}%{_prefix}
popd
for s in 16 32 48 64 128; do
	install -d -m 0755 %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
	ln -s ../../../../xxxterm/xxxtermicon${s}.png %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/xxxterm.png
done
install -D -m 0644 xxxterm.desktop %{buildroot}%{_datadir}/applications/xxxterm.desktop
install -D -m 0644 style.css %{buildroot}%{_datadir}/xxxterm/style.css
install -d -m 0755 %{buildroot}/%{_docdir}/xxxterm
cat > %{buildroot}/%{_docdir}/%{name}/LICENSE << EOF
-= License =-

/*
 * Copyright (c) 2010, 2011 Marco Peereboom <marco@peereboom.us>
 * Copyright (c) 2011 Stevan Andjelkovic <stevan@student.chalmers.se>
 * Copyright (c) 2010, 2011 Edd Barrett <vext01@gmail.com>
 * Copyright (c) 2011 Todd T. Fries <todd@fries.net>
 * Copyright (c) 2011 Raphael Graf <r@undefined.ch>
 * Copyright (c) 2011 Michal Mazurek <akfaew@jasminek.net>
 *
 * Permission to use, copy, modify, and distribute this software for any
 * purpose with or without fee is hereby granted, provided that the above
 * copyright notice and this permission notice appear in all copies.
 *
 * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
 * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
 * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
 * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
 * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
 * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
 * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
 */

-= javascript.h license =-

Javascript code was borrowed from the friendly folks at vimprobable2 under the following license:

/*
Copyright (c) 2009 Leon Winter
Copyright (c) 2009-2011 Hannes Schueller
Copyright (c) 2009-2010 Matto Fransen
Copyright (c) 2010-2011 Hans-Peter Deifel
Copyright (c) 2010-2011 Thomas Adam
Copyright (c) 2011 Albert Kim
Copyright (c) 2011 Daniel Carl

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
*/
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11704 |21cr|xylib-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		major 3
%define		libname %mklibname xy %{major}
%define		develname %mklibname xy -d

Name:		xylib
Version:	1.6
Release:	1
Summary:	A C++ x-y data reading library
License:	LGPLv2
Group:		System/Libraries
Url:		http://www.unipress.waw.pl/fityk/xylib/
Source0:	https://github.com/wojdyr/xylib/releases/download/v%{version}/xylib-%{version}.tar.bz2
BuildRequires:	boost-devel
BuildRequires:	zlib-devel
BuildRequires:	bzip2-devel
BuildRequires:	wxgtku3.1-devel

%description
Xylib is a portable C++ library for reading files that contain x-y 
data from powder diffraction, spectroscopy or other experimental 
methods.

Supported formats:

    * plain text (CSV or TSV or space-separated-values)
    * Crystallographic Information File for Powder Diffraction (pdCIF)
    * Siemens/Bruker UXD
    * Siemens/Bruker RAW ver. 1/2/3/4
    * Philips UDF
    * Philips RD (raw scan) V3
    * Rigaku DAT
    * Sietronics Sieray CPI
    * DBWS/DMPLOT data file
    * Canberra MCA (only one of Canberra MCA formats?)
    * XFIT/Koalariet XDD
    * RIET7/LHPM/CSRIET/ILL_D1A5/PSI_DMC DAT
    * Vamas ISO14976 (only experiment modes: SEM or MAPSV or MAPSVDP 
      are supported; only REGULAR scan_mode is supported)
    * Princeton Instruments WinSpec SPE (only 1-D data is supported)

#--------------------------------------------------------------------
%package util
Summary:	An utility to convert files supported by xylib to TSV
Group:		Sciences/Chemistry
Provides:	xyconv = %{version}-%{release}

%description util
This package contains xyconv, an utility provided with the xylib 
library to convert the files it supports to TSV.

%files util
%{_bindir}/xyconv
%{_bindir}/xyconvert
%{_mandir}/man1/xyconv*

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	A C++ x-y data reading library
Group:		System/Libraries

%description -n %{libname}
Xylib is a portable C++ library for reading files that contain x-y
data from powder diffraction, spectroscopy or other experimental
methods.

Supported formats:

    * plain text (CSV or TSV or space-separated-values)
    * Crystallographic Information File for Powder Diffraction (pdCIF)
    * Siemens/Bruker UXD
    * Siemens/Bruker RAW ver. 1/2/3/4
    * Philips UDF
    * Philips RD (raw scan) V3
    * Rigaku DAT
    * Sietronics Sieray CPI
    * DBWS/DMPLOT data file
    * Canberra MCA (only one of Canberra MCA formats?)
    * XFIT/Koalariet XDD
    * RIET7/LHPM/CSRIET/ILL_D1A5/PSI_DMC DAT
    * Vamas ISO14976 (only experiment modes: SEM or MAPSV or MAPSVDP 
      are supported; only REGULAR scan_mode is supported)
    * Princeton Instruments WinSpec SPE (only 1-D data is supported)

This package contains the xylib shared library.

%files -n %{libname}
%{_libdir}/libxy.so.%{major}*

#--------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for xylib
Group:		Development/C++
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
This package contains the development files for xylib.

%files -n %{develname}
%{_libdir}/libxy.so
%{_includedir}/*

#--------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11705 |21cr|yabasic-2.763-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small basic interpreter with printing and graphics
Name:		yabasic
Version:	2.763
Release:	11
License:	Artistic
Group:		Development/Other
Source0:	http://www.yabasic.de/download/%{name}-%{version}.tar.bz2
URL:		http://www.yabasic.de/
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)
BuildRequires:	ncurses-devel

%description
Yabasic implements the most common and simple elements of the basic
language; It comes with for-loops and goto with while-loops and
procedures. Yabasic does monochrome line grafics, printing comes with
no extra effort. Yabasic runs under Unix and Windows; it is small
(less than 200KB) and free.

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%check
make check-TESTS

%install
rm -rf $RPM_BUILD_ROOT

%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README *.htm ChangeLog
%{_bindir}/*
%{_mandir}/man1/yabasic.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11706 |21cr|yabause-0.9.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sega Saturn emulator
Name:		yabause
Version:	0.9.15
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		http://yabause.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/yabause/%{name}-%{version}.tar.gz
Patch0:		yabause-0.9.15-cmake.patch
Patch1:		yabause-0.9.11-link.patch
Patch3:		yabause-0.9.15-qt-img.patch
Patch4:		yabause-qt5.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	qmake5
BuildRequires:	jsw-devel
# for the translations
BuildRequires:	mini18n-devel
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtkglext-1.0)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(xmu)
Requires:	%{name}-bin = %{version}

%description
Yabause is a Sega Saturn emulator.
This package includes the translations and documentation.

%files
%doc AUTHORS ChangeLog README
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%package gtk
Summary:	Sega Saturn emulator - GTK+ interface
Group:		Emulators
Requires:	%{name} = %{version}
Provides:	%{name}-bin = %{version}

%description gtk
Yabause is a Sega Saturn emulator.

This package includes the GTK+ interface.

To use a translation :
Start yabause,
Open the settings dialog (Yabause/Preferences),
Select Advanced tab,
Type or select the appropriate file in the Translation field 
(existing translations are available in the /usr/share/yabause/ folder),
Close and restart yabause.

%files gtk
%doc AUTHORS
%attr(0755,root,games) %{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}-gtk.desktop
%{_mandir}/man1/%{name}-gtk.1*

#----------------------------------------------------------------------------

%package qt
Summary:	Sega Saturn emulator - QT interface
Group:		Emulators
Requires:	%{name} = %{version}
Provides:	%{name}-bin = %{version}

%description qt
Yabause is a Sega Saturn emulator.

This package includes the QT interface.

To use a translation :
Start yabause,
Open the settings dialog (File/Settings),
Type or select the appropriate file in the Translation field
(existing translations are available in the /usr/share/yabause/ folder),
Close and restart yabause-qt.

%files qt
%doc AUTHORS
%attr(0755,root,games) %{_bindir}/%{name}-qt
%{_datadir}/applications/%{name}-qt.desktop
%{_mandir}/man1/%{name}-qt.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix find gtkglext-config.h
%ifnarch %{ix86}
sed -i 's|lib/|%{_lib}/|' src/gtk/CMakeLists.txt
%endif

find . -name *.cpp -o -name *.h | xargs chmod 0644

%build
%cmake -DYAB_MULTIBUILD=TRUE
%make

%install
%makeinstall_std -C build

desktop-file-install --vendor="" \
	--add-category="Emulator" \
	--remove-key="TryExec" \
	--dir %{buildroot}%{_datadir}/applications/ \
	%{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11707 |21cr|yacas-1.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname %name -d

Summary:	Yacas, a computer algebra language
Name:		yacas
Version:	1.9.1
Release:	2
License:	GPLv2
Group:		Sciences/Mathematics
URL:		http://www.yacas.org
Source0:	https://github.com/grzegorzmazur/yacas/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	perl
BuildRequires:	gzip
Requires:	lynx
Recommends:	%{name}-doc = %{version}

%description
Yacas (Yet Another Computer Algebra System) is a small and highly
flexible computer algebra language. The syntax uses a infix-operator
grammar parser. The distribution contains a small library of
mathematical functions, but its real strength is in the language in
which you can easily write your own symbolic manipulation algorithms.
It supports arbitrary precision arithmetic.

%files
%{_datadir}/yacas
%{_bindir}/*
%{_libdir}/libyacas.so
%{_libdir}/libyacas_mp.so
%{_iconsdir}/hicolor/*/apps/yacas-gui.png
%{_datadir}/applications/yacas-gui.desktop
%{_datadir}/pixmaps/*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop 
applications which will use %{name}

%files -n %{devname}
%doc ChangeLog AUTHORS COPYING README*
%{_includedir}/%{name}

#-------------------------------------------------------------------------

%package -n %{name}-doc
Summary:	Additional YACAS documentation
Group:		Sciences/Mathematics
Requires:	%{name} = %{version}

%description -n %{name}-doc
This package contains additional documentation available for YACAS.

%files -n %{name}-doc
%doc docs/*

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11708 |21cr|yacreader-9.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname YACReader

Summary:	A cross platform comic reader and library manager
Name:		yacreader
Version:	9.11.0
Release:	1
Group:		Publishing
License:	GPLv3+
Url:		http://www.yacreader.com/
Source0:	https://github.com/YACReader/yacreader/archive/refs/tags/9.8.2/%{name}-%{version}.tar.gz
Source1:	yacreader.rpmlintrc
BuildRequires:  qmake5
BuildRequires:  qt5-devel
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  qml(QtQuick)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5WebKit)
BuildRequires:  qml(QtQuick.Controls)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libqrencode)
BuildRequires:	qt5-qtimageformats-devel
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(libunarr)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
Requires:	%{name}-library = %{EVRD}
Requires:	qrencode
Requires:	qt5-imageformats-plugins



%description
A cross platform comic reader and library manager.

%files -f %{name}.lang
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_docdir}/%{name}
%{_mandir}/man1/%{oname}.*
#----------------------------------------------------------------

%package -n %{name}-library
Summary:	Library manager for %{name}
# for server
Requires:	systemd-units

%description -n %{name}-library
Library manager for %{name}.

%files -n %{name}-library
%{_bindir}/%{oname}Library
%{_bindir}/YACReaderLibraryServer
%{_datadir}/applications/%{oname}Library.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}-library.*
%{_mandir}/man1/%{oname}Library.*
%{_userunitdir}/*.service
#----------------------------------------------------------------
%prep
%setup -q

%build
%qmake_qt5
%make

%install
%makeinstall_qt 

#icons
for size in 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size %{oname}.svg \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done

for size in 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
    install -dm 0755 \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps
    convert -strip -resize $size %{oname}Library.svg \
        %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}-library.png
done
rm -fr  %{buildroot}%{_iconsdir}/hicolor/scalable

# menu entry
desktop-file-edit --set-icon=%{name} %{buildroot}%{_datadir}/applications/%{oname}.desktop
desktop-file-edit --set-icon=%{name}-library %{buildroot}%{_datadir}/applications/%{oname}Library.desktop

%{find_lang} %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11709 |21cr|yad-13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A fork of Zenity with many improvements
Name:		yad
Version:	13.0
Release:	1
Group:		Development/GNOME and GTK+
License:	GPLv2
Url:		https://sourceforge.net/projects/yad-dialog/
Source0:	https://github.com/v1cont/yad/releases/download/v%{version}/yad-%{version}.tar.xz
#revert remove russian lang
Patch0:		yad-russian-drop.patch
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	gtksourceview3-devel
BuildRequires:	gspell-devel
BuildRequires:	webkitgtk4-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Yad (yet another dialog) is a fork of Zenity with many improvements, such as
custom buttons, additional dialogs, pop-up menu in notification icon and more.

There were two main reasons to make this fork. The first one is to remove
dependencies on deprecated libraries, such as libglade and gnome-canvas.
And the second one - as for me, Zenity looks like an abandoned project.
Its ChangeLog consists of just "bump version to..." and "translation updated"
for the long time, but many interesting ideas which are ignored by
developers/maintainers were in GNOME Bugzilla.

%files -f %{name}.lang
%license COPYING
%doc README.md AUTHORS NEWS THANKS TODO
%{_bindir}/%{name}*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/aclocal/%{name}.m4
%{_mandir}/*/*

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_bindir}/pfd

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11710 |21cr|yadex-1.7.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Level editor for DOOM
Name:		yadex
Version:	1.7.0
Release:	15
License:	GPL
Group:		Games/Arcade
Source:		http://www.teaser.fr/~amajorel/yadex/%name-%version.tar.bz2
Patch0:		yadex-fix-compil.patch
Patch1:		yadex-1.7.0-gcc45.patch
URL:		http://www.teaser.fr/~amajorel/yadex
BuildRequires:	pkgconfig(x11)

%description
Yadex is a Doom level (wad) editor for Unix systems running X, including
Linux. It supports Doom, Doom II, Ultimate Doom, Final Doom, Heretic,
Doom press release pre beta and also, in a more or less limited way, Hexen,
Strife and Doom alpha. It is available under the terms of the GPL.

%prep
%setup -q
%patch0 -p0 -b .fix-compil
%patch1 -p0 -b .gcc

%build
./configure --prefix=%_prefix
%make CXXFLAGS="%optflags" CXX="g++ %build_ldflags" X11LIBDIR=%{_libdir} X11INCLUDEDIR=%{_includedir}

%install
rm -rf $RPM_BUILD_ROOT
make \
    BINDIR=%buildroot/%_bindir \
    ETCDIR=%buildroot/%_sysconfdir/%name/%version \
    ETCDIRNV=%buildroot/%_sysconfdir/%name \
    MANDIR=%buildroot/%_mandir \
    SHAREDIR=%buildroot/%_datadir/games/%name/%version \
    SHAREDIRNV=%buildroot/games/%_datadir \
        install

mkdir -p ./html
mv ./doc/*.html ./html
mv ./docsrc/*.png ./html
  
cat %buildroot/%_sysconfdir/%name/%version/yadex.cfg | \
	sed -e "s|/usr/local|%_prefix|" > %buildroot/%_sysconfdir/%name/%version/yadex.cfg.tmp

mv %buildroot/%_sysconfdir/%name/%version/yadex.cfg.tmp %buildroot/%_sysconfdir/%name/%version/yadex.cfg

mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications/
cat << EOF > %buildroot%{_datadir}/applications/mandriva-%name.desktop
[Desktop Entry]
Type=Application
Categories=Game;ArcadeGame;
Name=Yadex
Icon=arcade_section
Comment=A level editor for DOOM
Exec=%name
EOF

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%clean
rm -fr %buildroot

%files
%defattr(-,root,root)
%doc README TODO CHANGES COPYING COPYING.LIB html
%_bindir/yadex
%_bindir/yadex-%{version}
%dir %_sysconfdir/%name
%dir %_sysconfdir/%name/%version
%config(noreplace) %_sysconfdir/%name/%version/yadex.cfg
%dir %_gamesdatadir/yadex
%dir %_gamesdatadir/yadex/%{version}
%_gamesdatadir/yadex/%{version}/*.ygd
%_mandir/man6/yadex*
%{_datadir}/applications/mandriva-yadex.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11711 |21cr|yad-gtk2-0.42.81-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A fork of Zenity with many improvements (gtk2 version)
Name:		yad-gtk2
Version:	0.42.81
Release:	1
Group:		Development/GNOME and GTK+
License:	GPLv2
Url:		https://sourceforge.net/projects/yad-dialog/
Source0:	https://github.com/step-/yad/archive/refs/tags/%{version}.tar.gz?/yad-gtk2-%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libtool
#BuildRequires:	gtksourceview3-devel
BuildRequires:	gspell-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gtk+-2.0)
Conflicts:	yad > 1.0

%description
The parent project removed GTK+-2 support in version 1.0. This repository was forked 
from the 0.42.0 release (d0021d0 February 2019) with the goal to continue GTK+-2 support, 
mainly for the benefit of the Fatdog64 Linux distribution. With time this fork has 
reached several other Linux distributions that need a GTK+-2 yad package.

Yad (yet another dialog) is a fork of Zenity with many improvements, such as
custom buttons, additional dialogs, pop-up menu in notification icon and more.

There were two main reasons to make this fork. The first one is to remove
dependencies on deprecated libraries, such as libglade and gnome-canvas.
And the second one - as for me, Zenity looks like an abandoned project.
Its ChangeLog consists of just "bump version to..." and "translation updated"
for the long time, but many interesting ideas which are ignored by
developers/maintainers were in GNOME Bugzilla.

%files -f yad.lang
%license COPYING
%doc README.md AUTHORS NEWS THANKS TODO
%{_bindir}/yad*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/applications/*.desktop
%{_datadir}/aclocal/yad.m4
%{_mandir}/*/*

#-----------------------------------------------------------------------

%prep
%setup -q -n yad-%{version}

%build
autoreconf -vfi
intltoolize
%configure
%make

%install
%makeinstall_std

%find_lang yad

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11712 |21cr|yagf-0.9.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Yet Another Graphic Front-end for Cuneiform
Name: 		yagf
Version:	0.9.5
Release:	3
License: 	GPLv3+
Group: 		Office
URL: 		http://sourceforge.net/projects/yagf-ocr/
Source0: 	http://downloads.sourceforge.net/project/yagf-ocr/%{name}-%{version}.tar.gz
BuildRequires: 	cmake qt4-devel aspell-devel djvulibre-devel tiff-devel
#Requires: 	qt4-common aspell
Recommends:	cuneiform-linux
Recommends:	tesseract
#Requires:	aspell-ru aspell-uk aspell-en

%description
YAGF is a graphical interface for cuneiform and tesseract text recognition
tools on the Linux platform. With YAGF you can scan images via XSane, import
pages from PDF documents, perform images preprocessing and recognize texts
using cuneiform from a single command center. YAGF also makes it easy to scan
and recognize several images sequentially.

%prep
%setup -q
sed -i "s,/usr/local,%{buildroot}/usr/,g" ./CMakeLists.txt
# Substitute missing align.png resource
cp -a src/images/{A,a}lign.png

%build
%cmake
%make

%install
pushd build
%makeinstall_std
popd

%files
%doc AUTHORS ChangeLog DESCRIPTION README
%{_bindir}/yagf
%{_datadir}/yagf
%{_datadir}/pixmaps/yagf.png
%{_datadir}/icons/hicolor/*/apps/yagf.*
%{_libdir}/yagf/libxspreload.so
%{_datadir}/applications/YAGF.desktop
# %{_datadir}/appdata/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11713 |21cr|yahqtzee-2009.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           yahqtzee
Version:        2009.10
Summary:        A dice game written in C++ with Qt 4
Release:        5
License:        GPL
Group:          Graphical desktop/KDE
URL:            http://www.qt-apps.org/content/show.php/YahQtzee?content=88126
Source0:        http://prdownloads.sourceforge.net/88126-yahtzee-%version.tar.gz
Patch0:         88126-yahtzee-2009.02-fix-desktopfile.patch
BuildRequires:  qt4-devel

%description
A dice game written in C++ with Qt 4. 

%files
%defattr(-,root,root)
%_gamesdatadir/yahtzee
%_gamesbindir/yahtzee
%_datadir/applications/yahtzee.desktop
%_iconsdir/yahtzee.png

#-----------------------------------------------------------------------------

%prep
%setup -q -n yahtzee
%patch0 -p1

%build

qmake yahtzee.pro

%make


%install
rm -rf %buildroot
%__mkdir -p  %buildroot%_gamesdatadir/yahtzee
%__cp yahtzee %buildroot%_gamesdatadir/yahtzee/
%__cp *.qm  %buildroot%_gamesdatadir/yahtzee/

%__mkdir -p %buildroot%_gamesdatadir/yahtzee/images
%__cp images/* %buildroot%_gamesdatadir/yahtzee/images

%__mkdir -p %buildroot%_gamesbindir 
ln -s %_gamesdatadir/yahtzee/yahtzee %buildroot%_gamesbindir

%__mkdir -p %buildroot%_datadir/applications
%__cp desktop/yahtzee.desktop %buildroot%_datadir/applications/yahtzee.desktop

%__mkdir -p %buildroot%_iconsdir
%__cp desktop/yahtzee.png %buildroot%_iconsdir/yahtzee.png

%clean
rm -rf %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11714 |21cr|yakuake-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Very powerful Quake style Konsole
Name:		yakuake
Version:	23.08.4
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde-apps.org/content/show.php?content=29153
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activities-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sensors)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:	plasma5-konsole

%description
Yakuake is a Quake-style terminal emulator based on KDE Konsole technology.

%files -f %{name}.lang
%doc AUTHORS ChangeLog TODO NEWS
%{_kde5_datadir}/applications/org.kde.%{name}.desktop
%{_kde5_bindir}/%{name}
%{_kde5_datadir}/%{name}/
%{_kde5_datadir}/dbus-1/services/org.kde.yakuake.service
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/knotifications5/%{name}.notifyrc
%{_kde5_datadir}/knsrcfiles/yakuake.knsrc
%{_appdatadir}/org.kde.%{name}.appdata.xml

#--------------------------------------------------------------------

%prep 
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %name

mkdir -p %{buildroot}%{_kde5_datadir}/applications
mv %{buildroot}%{_kde5_applicationsdir}/org.kde.%{name}.desktop %{buildroot}%{_kde5_datadir}/applications/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11715 |21cr|yamagi-quake2-8.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		quake2
%define	rogue_source	%{oname}-rogue
%define	xatrix_source	%{oname}-xatrix
%define	ctf_source	%{oname}-ctf
%define	rogue_version	2.09
%define	xatrix_version	2.10
%define	ctf_version	1.08
%define	roguedir	%{rogue_source}-%{rogue_version}
%define	xatrixdir	%{xatrix_source}-%{xatrix_version}
%define	ctfdir		%{ctf_source}-%{ctf_version}

Summary:	Yamagi Quake II is an enhanced client for id Software's Quake II
Name:		yamagi-quake2
Version:	8.10
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.yamagi.org/quake2/
Source0:	http://deponie.yamagi.org/quake2/%{oname}-%{version}.tar.xz
Source1:	http://deponie.yamagi.org/quake2/%{rogue_source}-%{rogue_version}.tar.xz
Source2:	http://deponie.yamagi.org/quake2/%{xatrix_source}-%{xatrix_version}.tar.xz
Source3:	http://deponie.yamagi.org/quake2/%{ctf_source}-%{ctf_version}.tar.xz
Source6:	q2ded.sh
Source7:	q2ded.cfg
Source8:	q2ctf.sh
Source9:	q2ctf.cfg
Source100:	yamagi-quake2.rpmlintrc
BuildRequires:	imagemagick
BuildRequires:	aalib-devel
BuildRequires:	svgalib-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(zlib)
# Seems to be removed in new versions
%rename	%{name}-glx
ExclusiveArch:	%{ix86} x86_64

%description
Shortly after landing on an alien surface you learn that hundreds of your men
have been reduced to just a few. Now you must fight your way through heavily
fortified military installations, lower the city's defenses and shut down
the enemy's war machine. Only then will the fate of humanity be known.

* Larger, mission-based levels:
You have a series of complex missions, what you do in one level could affect
another. One false move and you could alert security, flood an entire
passageway, or worse.

* Superior artificial intelligence:
This time the enemy has IQs the size of their appetites. The can evade your
attack, strategically position themselves for an ambush and hunt your ass 
down.

* In-your-face sound and graphics
hear distant combat explosions and rockets whizzing past your head. And with
a compatible 3-D graphics accelerator, experience smoother 16-bit graphics and
real-time lighting effects.

* Wicked multiplayer capabilities
More than 32 players, friends or foes, can do at it in a bloody deathmatch via
LAN and over the internet.

You need PAK files for Quake II to run this game: install them 
in %{_gamesdatadir}/quake2.

%files
%doc LICENSE CHANGELOG README.md
%attr(755,root,root) %{_gamesbindir}/%{oname}
%{_gamesbindir}/%{oname}.bin
%{_gamesbindir}/ref_gl1.so
%{_gamesbindir}/ref_gl3.so
%dir %{_libdir}/games/%{oname}
%{_libdir}/games/%{oname}/baseq2
%{_datadir}/applications/%{oname}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{oname}.svg
%{_iconsdir}/hicolor/*x*/apps/%{oname}.png
%{_gamesdatadir}/%{oname}/baseq2

#----------------------------------------------------------------------------

%package ctf
Summary:	Quake II Capture the Flag for Linux
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires(post,preun):	rpm-helper

%description ctf
Quake II Capture The Flag (Q2CTF) is a multiplayer addon for Quake2 that 
features a simple set of rules for team based play. It features eight unique 
maps and special powerups to enhance and make the gameplay more exciting.

Q2CTF requires the full retail version of Quake II installed in order to 
play. Once installed, you simple need to connect to a Quake2 game server 
that is running the Q2CTF addon.

-- You need PAK files for Quake II to run this game --

%files ctf
%doc LICENSE
%attr(755,root,root) %{_initrddir}/q2ctf
%dir %{_sysconfdir}/%{oname}/ctf
%config(noreplace) %{_sysconfdir}/%{oname}/ctf/server.cfg
%{_libdir}/games/%{oname}/ctf
%{_gamesdatadir}/%{oname}/ctf
%{_datadir}/applications/%{oname}-ctf.desktop

%post ctf
%_post_service q2ctf

%preun ctf
%_preun_service q2ctf

#----------------------------------------------------------------------------

%package xatrix
Summary:	Quake II Mission Pack #1: "The Reckoning" for Linux
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}

%description xatrix
This archive contains Mission Pack "The Reckoning" for Quake II.
The Reckoning is sure to get your heart pumping...well, if you can avoid 
getting gibbed by the Strogg. Check out just some of the features below that 
will give you the cardiac workout you need!

* 18 arduous levels to conquer & 7 brutal deathmatch exclusive levels:
Dive into a series of mission-based campaigns and ransack your way through 
three all-new hazardous episodes. Experience bioluminescent life forms, 
stalagmites and stalactites and other breathtaking environments. 

* Fresh foes to defeat:
Gekks are lighting-fast creatures that will hunt you down, leaping from the 
shadows to claw or bite. Though innocent looking, the Repair Bot has the 
ability to awaken dead Strogg from eternal sleep.

* Added weapons to wield:
The Phalanx Particle Canon emits a pulsing stream of deadly energy into 
unsuspecting foes.

The Trap sucks nearby enemies inside and turns them into food cubes for 
player consumption.

The Ion Ripper fires a blast of glowing boomerangs capable of ricocheting 
off of walls to track targets.

-- You need PAK files for Quake II to run this game --

%files xatrix
%doc LICENSE
%{_libdir}/games/%{oname}/xatrix
%{_gamesdatadir}/%{oname}/xatrix
%{_datadir}/applications/%{oname}-xatrix.desktop

#----------------------------------------------------------------------------

%package rogue
Summary:	Quake II Mission Pack #2: "Ground Zero" for Linux
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}

%description rogue
This archive contains Mission Pack "Ground Zero" for Quake II.

The Alien Assault Continues.
Take out the Big Gun, sounded simple enough, except the Stroggs were waiting. 
You and a few Marines like you, are the lucky ones. The Gravity Well, the 
Stroggs' newest weapon in its arsenal against mankind, is operational. You've 
made it down in one piece and are still able to contact the fleet. With the 
fleet trapped around Stroggos, five percent of ground forces surviving, and 
that number dwindling by the second, your orders have changed: Free your 
comrades in orbit. Destroy the Gravity Well!

New Enemies:
Get ready to face the toughest horde of Stroggs, straight from the bio-vats. 
The Stalker, Turrets, Daedalus, Medic Commander, Carrier and the Queen Bitch 
herself, the Black Widow.

14 Entirely new levels and 10 new deathmatch levels:
Brand new real estate with the same dynamic sense of reality and dramatic 
visuals as Quake II. These new environments will challenge even the biggest 
Quake II aficionado.

New Power-ups:
Tag 'em and Bag 'em. Deathmatch specific power-ups: the Vengeance Sphere, 
Hunter Sphere, and Anti-matter Bomb. With everything that we've cooked up for 
you here, you're sure to annihilate anyone or anything foolish enough to 
call you foe.

New Weapons:
The Chainsaw, ETF Rifle, and Plasma Beam. If you can't get the job done with 
these babies, it's time to go back to Basic.

Accept no substitutes! Official, id-authorized mission packs outpace the rest!

-- You need PAK files for Quake II to run this game --

%files rogue
%license LICENSE
%{_libdir}/games/quake2/rogue
%{_gamesdatadir}/quake2/rogue
%{_datadir}/applications/%{oname}-rogue.desktop

#----------------------------------------------------------------------------

%package server
Summary:	Quake II server
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
Requires(post,preun):	rpm-helper

%description server
This archive contains the Quake II dedicated server.

-- You need PAK files for Quake II to run this game --

%files server
%license LICENSE
%attr(755,root,root) %{_initrddir}/q2ded
%attr(755,root,root) %{_gamesbindir}/q2ded
%dir %{_sysconfdir}/%{oname}
%dir %{_sysconfdir}/%{oname}/baseq2
%config(noreplace) %{_sysconfdir}/%{oname}/baseq2/server.cfg
%{_gamesbindir}/q2ded.bin

%post server
%_post_service q2ded

%preun server
%_preun_service q2ded

#----------------------------------------------------------------------------

%prep
%setup -q -a1 -a2 -a3 -n %{oname}-%{version}

# Fix perms
find . -name "*.c" -o -name "*.h"| xargs chmod -x

%build
%setup_compile_flags
%ifarch %{ix86} x86_64
export OPTFLAGS="%{optflags} -ffast-math -funroll-loops -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing"
%else
export OPTFLAGS="%{optflags} -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
%endif

%define options WITH_SYSTEMWIDE=yes WITH_SYSTEMDIR=%{_gamesdatadir}/quake2/ WITH_RPATH=no ARCH=%{_arch}
%make %{options}
%make %{options} -C %{roguedir}
%make %{options} -C %{xatrixdir}
%make %{options} -C %{ctfdir}

%install
# Create needed dirs
install -d %{buildroot}%{_sysconfdir}/%{oname}/{baseq2,ctf,rogue,xatrix}
install -d %{buildroot}%{_gamesbindir}
install -d %{buildroot}%{_gamesdatadir}/%{oname}/{baseq2,ctf,rogue,xatrix}
install -d %{buildroot}%{_libdir}/games/%{oname}/{baseq2,ctf,rogue,xatrix}

# Install files
rel="release"
cp $rel/%{oname} %{buildroot}%{_gamesbindir}/%{oname}.bin
cp $rel/q2ded %{buildroot}%{_gamesbindir}/q2ded.bin
cp $rel/ref_gl1.so %{buildroot}%{_gamesbindir}/ref_gl1.so
cp $rel/ref_gl3.so %{buildroot}%{_gamesbindir}/ref_gl3.so
cp $rel/baseq2/game.so %{buildroot}%{_libdir}/games/%{oname}/baseq2/

install -m644 %{SOURCE7} -D %{buildroot}%{_sysconfdir}/%{oname}/baseq2/server.cfg
install -m644 %{SOURCE9} -D %{buildroot}%{_sysconfdir}/%{oname}/ctf/server.cfg

install -m755 %{SOURCE6} -D %{buildroot}%{_initrddir}/q2ded
install -m755 %{SOURCE8} -D %{buildroot}%{_initrddir}/q2ctf

# Fix paths
for FILE in q2ded q2ctf ; do
# Edit path to q2ded in initscript
	sed -i -e "s|daemon[ ].*\${NAME}|daemon %{_gamesbindir}/\${NAME}|" %{buildroot}%{_initrddir}/${FILE}
# Edit path to %%{_sysconfdir} in initscript
	sed -i -e "s|^Q2_CONFIGDIR=.*|Q2_CONFIGDIR=\"%{_sysconfdir}/%{oname}\"|" %{buildroot}%{_initrddir}/${FILE}
done

# Create wrapper scripts:
# 1. Main script
cat << EOF > %{buildroot}%{_gamesbindir}/%{oname}
#!/bin/sh

%{_gamesbindir}/%{oname}.bin +set basedir %{_libdir}/games/%{oname} \$*

exit 0
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{oname}
# 2. Editor script
cat << EOF > %{buildroot}%{_gamesbindir}/q2ded
#!/bin/sh

%{_gamesbindir}/%{oname}.bin +set basedir %{_libdir}/games/%{oname} \$*

exit 0
EOF
chmod +x %{buildroot}%{_gamesbindir}/q2ded

# Install the provided icons...
install -D -m 0644 stuff/icon/Quake2.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{oname}.svg
install -D -m 0644 stuff/icon/Quake2.png %{buildroot}%{_iconsdir}/hicolor/512x512/apps/%{oname}.png
# ...and resize it to have more sizes
for i in 16x16 22x22 32x32 48x48 64x64 256x256; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/apps
	convert stuff/icon/Quake2.png -resize $i %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{oname}.png
done

# Provide menu entries
mkdir -p %{buildroot}%{_datadir}/applications

cat << EOF > %{buildroot}%{_datadir}/applications/%{oname}.desktop
[Desktop Entry]
Name=Quake II
Comment=First-person shooter
Exec=%{oname}
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/%{oname}-xatrix.desktop
[Desktop Entry]
Name=Quake II: The Reckoning
Comment=First-person shooter
Exec=%{oname} +set game xatrix
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/%{oname}-rogue.desktop
[Desktop Entry]
Name=Quake II: Ground Zero
Comment=First-person shooter
Exec=%{oname} +set game rogue
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/%{oname}-ctf.desktop
[Desktop Entry]
Name=Quake II: Capture The Flag
Comment=First-person shooter
Exec=%{oname} +set game ctf
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

# Create links from basedir to configdir
ln -sf %{_sysconfdir}/%{oname}/baseq2/server.cfg %{buildroot}%{_libdir}/games/%{oname}/baseq2/server.cfg
for FILE in pak0.pak pak1.pak pak2.pak maxpak.pak ; do
	ln -sf %{_gamesdatadir}/%{oname}/baseq2/${FILE} %{buildroot}%{_libdir}/games/%{oname}/baseq2/${FILE}
done
ln -sfn %{_gamesdatadir}/%{oname}/baseq2/video %{buildroot}%{_libdir}/games/%{oname}/baseq2/video
ln -sf %{_sysconfdir}/%{oname}/ctf/server.cfg %{buildroot}%{_libdir}/games/%{oname}/ctf/server.cfg
ln -sf %{_gamesdatadir}/%{oname}/ctf/pak0.pak %{buildroot}%{_libdir}/games/%{oname}/ctf/pak0.pak
ln -sf %{_gamesdatadir}/%{oname}/rogue/pak0.pak %{buildroot}%{_libdir}/games/%{oname}/rogue/pak0.pak
ln -sf %{_gamesdatadir}/%{oname}/xatrix/pak0.pak %{buildroot}%{_libdir}/games/%{oname}/xatrix/pak0.pak

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11716 |21cr|yandex-disk-indicator-1.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Panel indicator for YandexDisk CLI client for Linux
Name:		yandex-disk-indicator
Version:	1.11.0
Release:	1
License:	GPLv3+
Group:		Communications
Url:		https://github.com/slytomcat/yandex-disk-indicator/wiki
Source0:	https://github.com/slytomcat/yandex-disk-indicator/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		yandex-disk-indicator-1.10.3-desktop.patch
Requires:	typelib(AppIndicator3)
Requires:	python3-pyinotify
BuildArch:	noarch

%description
Panel indicator for YandexDisk CLI client for Linux.

%files -f %{name}.lang
%doc LICENSE
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/yd-tools
%{_iconsdir}/hicolor/128x128/apps/yd-128.png

#----------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build


%install
export TARGET="%{buildroot}%{_prefix}"
pushd build
./prepare.sh
popd

chmod 644 %{buildroot}%{_datadir}/applications/*

mkdir -p %{buildroot}%{_iconsdir}/hicolor/128x128/apps/
install -m 644 %{buildroot}%{_datadir}/yd-tools/icons/yd-128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/yd-128.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11717 |21cr|yara-4.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 10
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Pattern matching Swiss knife for malware researchers
Name:		yara
Version:	4.3.1
Release:	1
License:	ASL 2.0
Group:		Monitoring
Url:		http://VirusTotal.github.io/yara/
Source0:	https://github.com/VirusTotal/yara/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	python3-sphinx
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(openssl)

%description
YARA is a tool aimed at (but not limited to) helping malware researchers to
identify and classify malware samples. With YARA you can create descriptions
of malware families (or whatever you want to describe) based on textual or
binary patterns. Each description, a.k.a rule, consists of a set of strings
and a Boolean expression which determine its logic.

%files
%doc AUTHORS CONTRIBUTORS COPYING README.md
%doc docs/_build/html
%{_bindir}/%{name}
%{_bindir}/%{name}c
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}c.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		Development/C

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libyara.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_includedir}/%{name}/
%{_libdir}/libyara.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-magic \
	--enable-cuckoo \
	--with-crypto \
	--htmldir=%{_datadir}/doc/%{name}/html
%make

# build the HTML documentation
pushd docs
make html
popd

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11718 |21cr|yarg-0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Yet Another Randr Gui
Name:		yarg
Version:	0.4
Release:	6
License:	GPLv2+
Group:		System/X11
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.desktop
BuildRequires:	boost-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)

%description
Yet Another Randr Gui is a very simple Randr gui written in QT. Currently, it
only supports basic functionality and can be minimized to tray.

%files
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%qmake_qt4 PREFIX=%{_prefix}
%make

%install
make install INSTALL_ROOT=%{buildroot}

mkdir -p %{buildroot}%{_datadir}/applications/
cp -r %{SOURCE1} %{buildroot}%{_datadir}/applications/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11719 |21cr|yarock-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	A lightweight, beautiful music player
Name:		yarock
Version:	1.4.0
Release:	2
Group:		Sound
License:	GPLv3+
Url:		https://launchpad.net/yarock
Source0:	https://launchpad.net/%{name}/1.x/%{version}/+download/Yarock_%{version}_Sources.tar.gz
Source1:	yarock-1.3.0_ru.tar.gz
Patch0:		rosa-yarock_1.4.0-build.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(htmlcxx)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	qtsingleapplication-devel
BuildRequires:	taglib-devel >= 1.9.1
BuildRequires:	sqlite-devel
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(mpv)
BuildRequires:	desktop-file-utils
Requires:	qt5-database-plugin-sqlite

	

%description
Yarock is a music player designed to provide a clean,  
simple and beautiful music collection based on album cover-art.

%files
%doc COPYING README.md
%{_bindir}/*
%{_datadir}/%{name}/translations/*.qm
%{_datadir}/applications/*.desktop
%{_appdatadir}/*.appdata.xml
%{_iconsdir}/hicolor/*/apps/application-x-yarock.*
%{_libdir}/%{name}/*.*

#-------------------------------------------------------------------

%prep
%setup -qn Yarock_%{version}_Sources
%patch0 -p1

pushd translation
tar -xvzf %{SOURCE1}
popd

%build
%cmake_qt5 \
	-DENABLE_VLC=ON \
	-DENABLE_MPV=ON \
	-DENABLE_PHONON=ON \
	-DENABLE_QT5=ON
%make

%install
%makeinstall_std -C build

#appdata
%if %{mdvver} >= 201610
mkdir -p %{buildroot}%{_appdatadir}
cp %{buildroot}%{_datadir}/appdata/org.yarock.appdata.xml \
  %{buildroot}%{_appdatadir}/org.yarock.appdata.xml
rm -fr %{buildroot}%{_datadir}/appdata
%endif

rm -fr %{buildroot}%{_datadir}/pixmaps



%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11720 |21cr|yate-6.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define uprel 1

%global __requires_exclude /usr/bin/php

Summary:	Yet Another Telephony Engine
Name:		yate
Version:	6.4.0
Release:	3
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://yate.null.ro/
Source0:	http://yate.null.ro/tarballs/yate%{major}/%{name}-%{version}-%{uprel}.tar.gz
# Converted from <http://yate.null.ro/favicon.ico>
Source1:	yate-16.png
Source2:	yate-32.png
Source10:	yate.rpmlintrc
Patch0:		yate-6.4.0-mdv-dont_break_cflags.patch
Patch1:		add-arm64-support.patch
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	gawk
BuildRequires:	imagemagick
BuildRequires:	gsm-devel
BuildRequires:	mysql-devel
BuildRequires:	perl-devel
BuildRequires:	pri-devel
BuildRequires:	qt4-devel
BuildRequires:	tonezone-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(openssl)
# this version spandsp not have full fax support, yate not use it
#BuildRequires:	pkgconfig(spandsp)
BuildRequires:	pkgconfig(speex)
BuildRequires:	libamrnb-devel
Requires(post,preun):	rpm-helper

%description
Yate is a telephony engine designed to implement PBX and IVR solutions 
for small to large scale projects.

%files
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/WebRTC*
%doc %{_docdir}/%{name}/iLBC-LICENSE.txt
%{_bindir}/yate
%{_mandir}/*/yate.*
%{_initrddir}/yate
%dir %{_datadir}/yate/data
%{_datadir}/yate/data/*
%dir %{_libdir}/yate
%dir %{_libdir}/yate/client
%dir %{_libdir}/yate/jabber
%dir %{_libdir}/yate/server
%dir %{_libdir}/yate/sig
%dir %{_libdir}/yate/sip
%{_libdir}/yate/cdrbuild.yate
%{_libdir}/yate/cdrfile.yate
%{_libdir}/yate/regexroute.yate
%{_libdir}/yate/javascript.yate
%{_libdir}/yate/gvoice.yate
%{_libdir}/yate/isaccodec.yate
%{_libdir}/yate/server/regfile.yate
%{_libdir}/yate/server/accfile.yate
%{_libdir}/yate/server/register.yate
%{_libdir}/yate/tonegen.yate
%{_libdir}/yate/tonedetect.yate
%{_libdir}/yate/wavefile.yate
%{_libdir}/yate/conference.yate
%{_libdir}/yate/moh.yate
%{_libdir}/yate/callgen.yate
%{_libdir}/yate/analyzer.yate
%{_libdir}/yate/rmanager.yate
%{_libdir}/yate/msgsniff.yate
%{_libdir}/yate/mux.yate
%{_libdir}/yate/pbx.yate
%{_libdir}/yate/dumbchan.yate
%{_libdir}/yate/callfork.yate
%{_libdir}/yate/extmodule.yate
%{_libdir}/yate/filetransfer.yate
%{_libdir}/yate/ysipchan.yate
%{_libdir}/yate/yrtpchan.yate
%{_libdir}/yate/ystunchan.yate
%{_libdir}/yate/ysockschan.yate
%{_libdir}/yate/yiaxchan.yate
%{_libdir}/yate/yjinglechan.yate
%{_libdir}/yate/enumroute.yate
#%%{_libdir}/yate/faxchan.yate
%{_libdir}/yate/ilbcwebrtc.yate
%{_libdir}/yate/ilbccodec.yate
%{_libdir}/yate/server/dbwave.yate
%{_libdir}/yate/server/dbpbx.yate
%{_libdir}/yate/server/pbxassist.yate
%{_libdir}/yate/server/park.yate
%{_libdir}/yate/server/queues.yate
%{_libdir}/yate/server/lateroute.yate
%{_libdir}/yate/server/callcounters.yate
%{_libdir}/yate/server/yradius.yate
%{_libdir}/yate/server/sipfeatures.yate
%{_libdir}/yate/server/queuesnotify.yate
%{_libdir}/yate/server/heartbeat.yate
%{_libdir}/yate/server/clustering.yate
%{_libdir}/yate/server/mgcpca.yate
%{_libdir}/yate/server/mgcpgw.yate
%{_libdir}/yate/server/mrcpspeech.yate
%{_libdir}/yate/server/ysigchan.yate
%{_libdir}/yate/server/ciscosm.yate
%{_libdir}/yate/server/sigtransport.yate
%{_libdir}/yate/server/analog.yate
%{_libdir}/yate/server/analogdetect.yate
%{_libdir}/yate/server/users.yate
%{_libdir}/yate/server/presence.yate
%{_libdir}/yate/server/subscription.yate
%{_libdir}/yate/server/cpuload.yate
%{_libdir}/yate/server/ccongestion.yate
%{_libdir}/yate/server/monitoring.yate
%{_libdir}/yate/server/ysnmpagent.yate
%{_libdir}/yate/server/cache.yate
%{_libdir}/yate/server/eventlogs.yate
%{_libdir}/yate/client/osschan.yate
%{_libdir}/yate/client/jabberclient.yate
%{_libdir}/yate/jabber/jabberserver.yate
%{_libdir}/yate/jabber/jbfeatures.yate
%{_libdir}/yate/sig/isupmangler.yate
%{_libdir}/yate/sig/ss7_lnp_ansi.yate
%{_libdir}/yate/sig/camel_map.yate
%{_libdir}/yate/sip/sip_cnam_lnp.yate
%{_libdir}/yate/cdrcombine.yate
%{_libdir}/yate/fileinfo.yate
%{_libdir}/yate/efrcodec.yate
%{_libdir}/yate/g722webrtc.yate
%{_libdir}/yate/radio/dummyradio.yate
%{_libdir}/yate/radio/radiotest.yate
%{_libdir}/yate/radio/ybladerf.yate
%{_libdir}/yate/server/sqlitedb.yate
%{_libdir}/yate/wiresniff.yate

%dir %{_sysconfdir}/yate
%config(noreplace) %{_sysconfdir}/yate/accfile.conf
%config(noreplace) %{_sysconfdir}/yate/cdrbuild.conf
%config(noreplace) %{_sysconfdir}/yate/cdrfile.conf
%config(noreplace) %{_sysconfdir}/yate/callcounters.conf
%config(noreplace) %{_sysconfdir}/yate/dbpbx.conf
%config(noreplace) %{_sysconfdir}/yate/dsoundchan.conf
%config(noreplace) %{_sysconfdir}/yate/enumroute.conf
%config(noreplace) %{_sysconfdir}/yate/sipfeatures.conf
%config(noreplace) %{_sysconfdir}/yate/callfork.conf
%config(noreplace) %{_sysconfdir}/yate/extmodule.conf
%config(noreplace) %{_sysconfdir}/yate/filetransfer.conf
%config(noreplace) %{_sysconfdir}/yate/moh.conf
%config(noreplace) %{_sysconfdir}/yate/mux.conf
%config(noreplace) %{_sysconfdir}/yate/pbxassist.conf
%config(noreplace) %{_sysconfdir}/yate/queues.conf
%config(noreplace) %{_sysconfdir}/yate/queuesnotify.conf
%config(noreplace) %{_sysconfdir}/yate/lateroute.conf
%config(noreplace) %{_sysconfdir}/yate/regexroute.conf
%config(noreplace) %{_sysconfdir}/yate/javascript.conf
%config(noreplace) %{_sysconfdir}/yate/regfile.conf
%config(noreplace) %{_sysconfdir}/yate/register.conf
%config(noreplace) %{_sysconfdir}/yate/tonegen.conf
%config(noreplace) %{_sysconfdir}/yate/rmanager.conf
%config(noreplace) %{_sysconfdir}/yate/yate.conf
%config(noreplace) %{_sysconfdir}/yate/yiaxchan.conf
%config(noreplace) %{_sysconfdir}/yate/yradius.conf
%config(noreplace) %{_sysconfdir}/yate/yrtpchan.conf
%config(noreplace) %{_sysconfdir}/yate/ysockschan.conf
%config(noreplace) %{_sysconfdir}/yate/ystunchan.conf
%config(noreplace) %{_sysconfdir}/yate/ysipchan.conf
%config(noreplace) %{_sysconfdir}/yate/yjinglechan.conf
%config(noreplace) %{_sysconfdir}/yate/heartbeat.conf
%config(noreplace) %{_sysconfdir}/yate/clustering.conf
%config(noreplace) %{_sysconfdir}/yate/mgcpca.conf
%config(noreplace) %{_sysconfdir}/yate/mgcpgw.conf
%config(noreplace) %{_sysconfdir}/yate/analog.conf
%config(noreplace) %{_sysconfdir}/yate/ysigchan.conf
%config(noreplace) %{_sysconfdir}/yate/ciscosm.conf
%config(noreplace) %{_sysconfdir}/yate/sigtransport.conf
%config(noreplace) %{_sysconfdir}/yate/cpuload.conf
%config(noreplace) %{_sysconfdir}/yate/ccongestion.conf
%config(noreplace) %{_sysconfdir}/yate/monitoring.conf
%config(noreplace) %{_sysconfdir}/yate/ysnmpagent.conf
%config(noreplace) %{_sysconfdir}/yate/cache.conf
%config(noreplace) %{_sysconfdir}/yate/users.conf
%config(noreplace) %{_sysconfdir}/yate/presence.conf
%config(noreplace) %{_sysconfdir}/yate/subscription.conf
%config(noreplace) %{_sysconfdir}/yate/jabberclient.conf
%config(noreplace) %{_sysconfdir}/yate/jabberserver.conf
%config(noreplace) %{_sysconfdir}/yate/jbfeatures.conf
%config(noreplace) %{_sysconfdir}/yate/isupmangler.conf
%config(noreplace) %{_sysconfdir}/yate/ss7_lnp_ansi.conf
%config(noreplace) %{_sysconfdir}/yate/camel_map.conf
%config(noreplace) %{_sysconfdir}/yate/sip_cnam_lnp.conf
%config(noreplace) %{_sysconfdir}/yate/gvoice.conf
%config(noreplace) %{_sysconfdir}/yate/eventlogs.conf
%config(noreplace) %{_sysconfdir}/yate/lksctp.conf
%config(noreplace) %{_sysconfdir}/yate/amrnbcodec.conf
%config(noreplace) %{_sysconfdir}/yate/fileinfo.conf
%config(noreplace) %{_sysconfdir}/yate/dummyradio.conf
%config(noreplace) %{_sysconfdir}/yate/radiotest.conf
%config(noreplace) %{_sysconfdir}/yate/sqlitedb.conf
%config(noreplace) %{_sysconfdir}/yate/wiresniff.conf
%config(noreplace) %{_sysconfdir}/yate/ybladerf.conf

%config(noreplace) %{_sysconfdir}/logrotate.d/yate

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#------------------------------------------------------------------------------

%package alsa
Summary:	ALSA sound driver for Yate
Group:		Networking/Instant messaging

%description alsa
Advanced Linux Sound Architecture audio driver for Yate. This is the 
recommended audio interface for using the client under Linux.

%files alsa
%{_libdir}/yate/client/alsachan.yate

#------------------------------------------------------------------------------

%package gsm%{major}
Summary:	GSM audio codec for Yate
Group:		Networking/Instant messaging

%description gsm%{major}
European GSM 06.10 audio codec for Yate. This is a low CPU usage codec 
that provides moderate compression and good voice quality.

%files gsm%{major}
%{_libdir}/yate/gsmcodec.yate
#%%{_libdir}/libyategsm.so.%%{major}

#------------------------------------------------------------------------------

%package speex
Summary:	Speex audio codec for Yate
Group:		Networking/Instant messaging

%description speex
Speex audio codec for Yate. Speex is based on CELP  and is designed to
compress voice at bitrates ranging from 2 to 44 kbps.

%files speex
%{_libdir}/yate/speexcodec.yate

#------------------------------------------------------------------------------

%package h323
Summary:	H.323 protocol driver for Yate
Group:		Networking/Instant messaging

%description h323
Yate driver for the ITU-T H.323 VoIP protocol based on the OpenH323 
library.

%files h323
%config(noreplace) %{_sysconfdir}/yate/h323chan.conf

#------------------------------------------------------------------------------

%package isdn
Summary:	ISDN PRI card and protocol drivers for Yate
Group:		Networking/Instant messaging

%description isdn
Yate drivers for ISDN PRI cards supported by the Zaptel or Wanpipe 
kernel interfaces.

%files isdn
%config(noreplace) %{_sysconfdir}/yate/wpcard.conf
%{_libdir}/yate/server/zapcard.yate
%config(noreplace) %{_sysconfdir}/yate/zapcard.conf
%config(noreplace) %{_sysconfdir}/yate/tdmcard.conf

#------------------------------------------------------------------------------

%package openssl
Summary:	OpenSSL based encryption support for Yate
Group:		Networking/Instant messaging
Provides:	%{name}-ssl = %{EVRD}
Provides:	%{name}-crypto = %{EVRD}

%description openssl
This package provides SSL/TLS encrypted communication support for Yate as
well as cryptographic routines used for other purposes.

%files openssl
%{_libdir}/yate/openssl.yate
%config(noreplace) %{_sysconfdir}/yate/openssl.conf

#------------------------------------------------------------------------------

%package zlib
Summary:	Zlib compression support for Yate
Group:		Networking/Instant messaging
Provides:	%{name}-compression = %{EVRD}

%description zlib
This package provides Zlib data compression for Yate.

%files zlib
%{_libdir}/yate/zlibcompress.yate
%config(noreplace) %{_sysconfdir}/yate/zlibcompress.conf

#------------------------------------------------------------------------------

%package pgsql
Summary:	PostgreSQL database driver for Yate
Group:		Networking/Instant messaging
Provides:	%{name}-database = %{EVRD}

%description pgsql
This package allows Yate to connect to a PostgreSQL database server. 
All modules that support database access will be able to use 
PostgreSQL.

%files pgsql
%{_libdir}/yate/server/pgsqldb.yate
%config(noreplace) %{_sysconfdir}/yate/pgsqldb.conf

#------------------------------------------------------------------------------

%package mysql
Summary:	MySQL database driver for Yate
Group:		Networking/Instant messaging
Provides:	%{name}-database = %{EVRD}

%description mysql
This package allows Yate to connect to a MySQL database server. All 
modules that support database access will be able to use MySQL.

%files mysql
%{_libdir}/yate/server/mysqldb.yate
%config(noreplace) %{_sysconfdir}/yate/mysqldb.conf

#------------------------------------------------------------------------------

%package client-common
Summary:	Common files for all Yate clients
Group:		Networking/Instant messaging

%description client-common
This package includes the common files needed to use Yate as a VoIP client.

%files client-common
%{_datadir}/pixmaps/null_team-*.png
%dir %{_datadir}/yate/skins
%{_datadir}/yate/skins/*
%dir %{_datadir}/yate/sounds
%{_datadir}/yate/sounds/*
%dir %{_datadir}/yate/help
%{_datadir}/yate/help/*
%config(noreplace) %{_sysconfdir}/yate/providers.conf

#------------------------------------------------------------------------------

%package qt4
Summary:	Qt-4 client package for Yate
Group:		Networking/Instant messaging
Provides:	%{name}-client = %{EVRD}
Requires:	%{name}-client-common = %{EVRD}
Requires:	libyate-qt4 = %{EVRD}

%description qt4
The yate-qt4 package includes the files needed to use Yate as a VoIP client
with a Qt version 4 graphical interface.

%files qt4
%{_bindir}/yate-qt4
%{_datadir}/applications/yate-qt4.desktop
%config(noreplace) %{_sysconfdir}/yate/yate-qt4.conf

#------------------------------------------------------------------------------
%package libyate-qt4

Summary:	Qt-4 client package for Yate
Group:		System/Libraries
Provides:	libyate-qt4  = %{EVRD}

%description libyate-qt4
Librairies needed by Qt version 4 graphical interface.

%files libyate-qt4
%{_libdir}/libyateqt4.so.*
%{_libdir}/yate/qt4/*.yate

#------------------------------------------------------------------------------

%package scripts
Summary:	External scripting package for Yate
Group:		Networking/Instant messaging
Requires:	%{name} = %{EVRD}
Requires:	perl(Data::Dumper)
Requires:	php-simplexml

%description scripts
The yate-scripts package includes libraries for using external scripts 
with Yate.

%files scripts
%dir %{_datadir}/yate/scripts
%{_datadir}/yate/scripts/*.*
%{_datadir}/yate/scripts/__pycache__

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for Yate
Group:		System/Libraries

%description -n %{libname}
Library for Yate.

%files -n %{libname}
%{_libdir}/libyate.so.*
%{_libdir}/libyatescript.so.*
%{_libdir}/libyatejabber.so.*
%{_libdir}/libyatesig.so.*
%{_libdir}/libyatemgcp.so.*
%{_libdir}/libyateasn.so.*
%{_libdir}/libyateradio.so.*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for Yate
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(QtGui)
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package includes the libraries and header files for Yate that can 
be used to build and install new modules.

%files -n %{devname}
%doc %{_docdir}/%{devname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_bindir}/yate-config
%{_mandir}/*/yate-config.*
%{_libdir}/pkgconfig/yate.pc

#------------------------------------------------------------------------------

%package all
Summary:	Metapackage for Yate
Group:		Networking/Instant messaging
Requires:	%{name} = %{EVRD}
Requires:	%{name}-alsa = %{EVRD}
Requires:	%{name}-gsm = %{EVRD}
Requires:	%{name}-speex = %{EVRD}
Requires:	%{name}-isdn = %{EVRD}
Requires:	%{name}-openssl = %{EVRD}
Requires:	%{name}-zlib = %{EVRD}
Requires:	%{name}-mysql = %{EVRD}
Requires:	%{name}-pgsql = %{EVRD}
Requires:	%{name}-qt4 = %{EVRD}
Requires:	%{name}-scripts = %{EVRD}

%description all
Metapackage for Yate allowing to fetch and install all components at 
once. It contains no files, just dependencies to all other packages.

#------------------------------------------------------------------------------

%package amrnb
Summary:	Yate with amrnb codec support
Group:		Networking/Instant messaging
Requires:	%{name} = %{EVRD}

%description amrnb
Guarantees Yate with amrnb codec support.

%files amrnb
%doc README.amrnb
%{_libdir}/%{name}/amrnbcodec.yate

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

# fix openh323 detection
perl -pi -e 's|/lib/|/%{_lib}/|g' configure.in

# fix caps and logdir
perl -pi -e 's|YATE|yate|g;' \
              -e 's|/var/log|%{_logdir}|g;' \
  packing/rpm/yate.init

rm configure
autoconf

%build
%configure \
	--with-spandsp \
	--with-archlib=%{_lib} \
	--docdir=%{_docdir}

# paralel build causes compile errors
make
%make apidocs-everything

%install
%makeinstall_std

mkdir -p %{buildroot}%{_initrddir}
cp -a packing/rpm/yate.init %{buildroot}%{_initrddir}/yate

mkdir -p %{buildroot}%{_logdir}/yate

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/yate << EOF
%{_logdir}/yate {
    notifempty
    missingok
    rotate 7
    daily
    compress
    create 644 root root
    postrotate
         /sbin/service yate reload 2>/dev/null || true
    endscript
}
EOF

find %{buildroot} -type f -name '*.menu' | xargs -t rm


mkdir -p %{buildroot}%{_datadir}/applications/
desktop-file-install --vendor "" \
	--dir %{buildroot}%{_datadir}/applications \
	--remove-category Application \
	--remove-category Qt \
	--add-category X-MandrivaLinux-Internet-InstantMessaging \
	--add-category Qt \
	%{buildroot}%{_datadir}/applications/yate-qt4.desktop

# fix wrong location doc files
mv %{buildroot}%{_docdir}/%{name}-%{version} %{buildroot}%{_docdir}/%{name}

install -d -m 755 %{buildroot}/%{_docdir}/%{devname}
mv %{buildroot}%{_docdir}/%{name}/*.html %{buildroot}%{_docdir}/%{name}/api/ %{buildroot}/%{_docdir}/%{devname}

cat<<EOF >README.amrnb
This %{name} package has been built with amrnb support.
EOF

#fix rpmlint error
strip %{buildroot}%{_libdir}/lib*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11721 |21cr|yauap-0.2.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           yauap
Summary:        Commandline Audio Player
Version:        0.2.4
Release:        4
Url:            http://www.nongnu.org/yauap/
License:        LGPL v2+
Group:          Sound
BuildRequires:  dbus-glib-devel
BuildRequires:  libgstreamer-plugins-base-devel
Requires:       libgstreamer0.10
Requires:       gstreamer0.10-plugins-base
Requires:       gstreamer0.10-plugins-good
Requires:       dbus-x11
Source0:        http://mirrors.zerg.biz/nongnu/yauap/%{name}-%{version}.tar.gz


%description
yauap is a simple commandline audio player based on GStreamer.

%files
%defattr(-,root,root)
%doc README COPYING
%{_bindir}/yauap

#--------------------------------------------------------------------

%prep
%setup -q


%build
export CFLAGS="$RPM_OPT_FLAGS -fno-strict-aliasing"
%make

%install
%makeinstall

%clean
%{__rm} -rf "%{buildroot}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11722 |21cr|yaws-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define devname %mklibname %{name} -d

Summary:	A high performance HTTP 1.1 webserver
Name:		yaws
Version:	2.1.1
Release:	1
License:	BSD
Group:		System/Servers
Url:		http://yaws.hyber.org/
Source0:	https://github.com/erlyaws/yaws/archive/yaws-%{version}.tar.gz
Source1:	yaws.logrotate
Source10:	yaws.rpmlintrc
BuildRequires:	erlang-compiler
BuildRequires:	erlang-crypto
BuildRequires:	erlang-dialyzer
BuildRequires:	erlang-mnesia
BuildRequires:	erlang-ssl
BuildRequires:	erlang-xmerl
BuildRequires:	erlang-devel
BuildRequires:	pam-devel
Requires:	logrotate
Requires:	erlang-dialyzer
Requires:	erlang-compiler
Requires:	erlang-crypto
Requires:	erlang-mnesia
Requires:	erlang-xmerl
Requires(post,preun):	rpm-helper

%description
Yaws is a HTTP high perfomance 1.1 webserver particularly well suited for
dynamic-content webapplications. Two separate modes of operations are
supported.

* Standalone mode where Yaws runs as a regular webserver daemon.
  This is the default mode.
* Embedded mode where Yaws runs as an embedded webserver in another
  erlang application.

%files
%doc README.md ChangeLog
%dir %{_sysconfdir}/%{name}
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_sysconfdir}/logrotate.d/yaws
%{_libdir}/%{name}
%{_libdir}/%{name}-%{version}
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man5/%{name}*.5.*
%{_var}/%{name}
%{_var}/log/%{name}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README.md ChangeLog
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

# This requires egssapi which is not yet available
rm -f src/authmod_gssapi.erl

# Weird file name in Change Log is latin1-encoded
iconv -f iso8859-1 -t utf8 ChangeLog >ChangeLog.utf8
touch -r ChangeLog ChangeLog.utf8
mv ChangeLog.utf8 ChangeLog

# These are corrupted
find . -name '*.dia' -delete

%build
autoreconf -vfi

%configure ERLANG_INSTALL_LIB_DIR=%{_libdir} \
	--with-defaultcharset=UTF-8

# (tpg) limit threads to 4, so it can build on x86_64
%make -j4 all

%install
# (tpg) fix pc file
sed -i -e 's@/lib@/%{_lib}@g' *.pc.in

%makeinstall_std ERLANG_INSTALL_LIB_DIR=%{_libdir}

# Logrotate configuration
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -p -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/logrotate.d/yaws

find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11723 |21cr|yaz-5.32.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname yaz %{major}
%define libicu %mklibname yaz_icu %{major}
%define libserver %mklibname yaz_server %{major}
%define devname %mklibname yaz -d

Summary:	Z39.50 protocol support library
Name:		yaz
Version:	5.32.0
Release:	2
License:	BSD-like
Group:		System/Libraries
Url:		http://www.indexdata.dk/yaz/
Source0:	http://ftp.indexdata.dk/pub/yaz/%{name}-%{version}.tar.gz
Source1:	yaz-config.in
Patch0:		yaz-5.32.0-external_libstemmer.diff
BuildRequires:	bison
BuildRequires:	docbook-style-dsssl
BuildRequires:	docbook-style-xsl
BuildRequires:	libtool
BuildRequires:	tcl
BuildRequires:	libstemmer-devel
BuildRequires:	readline-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)

%description
This package contains both a test-server and clients (normal & ssl) for the
ANSI/NISO Z39.50 protocol for Information Retrieval.

%files
%doc README.md LICENSE installed-docs/*.html installed-docs/*.png
%{_bindir}/yaz-*
%exclude %{_bindir}/yaz-config
%{_bindir}/zoomsh
%{_mandir}/man1/yaz-client*.*
%{_mandir}/man1/yaz-iconv.1*
%{_mandir}/man1/yaz-icu.1*
%{_mandir}/man1/yaz-illclient.1*
%{_mandir}/man1/yaz-json-parse.1*
%{_mandir}/man1/yaz-marcdump.1*
%{_mandir}/man1/yaz-record-conv.1*
%{_mandir}/man1/zoomsh.*
%{_mandir}/man1/yaz-url.1.*
%{_mandir}/man8/yaz-ztest*.*
# moved from lib pkg
%{_mandir}/man7/*
%{_datadir}/yaz/etc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Z39.50 Library
Group:		System/Libraries
Requires:	%{name}
Requires:	openssl
Requires:	tcp_wrappers

%description -n %{libname}
YAZ is a library for the ANSI/NISO Z39.50 protocol for Information Retrieval.

%files -n %{libname}
%{_libdir}/libyaz.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libicu}
Summary:	Z39.50 Library
Group:		System/Libraries
Conflicts:	%{_lib}yaz4 < 4.2.30-4

%description -n %{libicu}
YAZ is a library for the ANSI/NISO Z39.50 protocol for Information Retrieval.

%files -n %{libicu}
%{_libdir}/libyaz_icu.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libserver}
Summary:	Z39.50 Library
Group:		System/Libraries
Conflicts:	%{_lib}yaz4 < 4.2.30-4

%description -n %{libserver}
YAZ is a library for the ANSI/NISO Z39.50 protocol for Information Retrieval.

%files -n %{libserver}
%{_libdir}/libyaz_server.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Z39.50 Library - development package
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libicu} = %{EVRD}
Requires:	%{libserver} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 4.2.30-4

%description -n %{devname}
Development libraries and includes for the libyaz package.

%files -n %{devname}
%{_bindir}/yaz-config
%{_includedir}/yaz
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/yaz.m4
%{_datadir}/yaz/z39.50
%{_datadir}/yaz/ill
%{_mandir}/man1/yaz-asncomp.*
%{_mandir}/man1/yaz-config.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# nuke the bundled libstemmer_c just in case
rm -rf libstemmer_c

# i'm sick an dtired of patching this stupid file over and over...
rm -rf yaz-config.in
cp %{SOURCE1} yaz-config.in

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" configure*
perl -pi -e "s|/usr/lib/|%{_libdir}/|g" configure*

%build
autoreconf -fi
%configure \
	--enable-shared \
	--enable-tcpd \
	--with-openssl \
	--with-xml2 \
	--with-xslt \
	--with-exslt \
	--with-icu

%make

%install
%makeinstall_std docdir=/installed-docs

# fix installed docs
rm -rf installed-docs
mv %{buildroot}/installed-docs .
mv %{buildroot}%{_docdir}/yaz/* installed-docs/

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11724 |21cr|ycssmin-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?nodejs_find_provides_and_requires}

Name:       ycssmin
Version:    1.0.1
Release:    7
Group:      Networking/Other
Summary:    CSS minification tool
License:    BSD
URL:        https://github.com/yui/ycssmin
Source0:    http://registry.npmjs.org/%{name}/-/%{name}-%{version}.tgz

BuildArch:  noarch
BuildRequires:  nodejs nodejs-packaging

%description
ycssmin is a CSS minification tool.

It was originally based on the css minification tool used inside of YUI 
Compressor, based on code from Stoyan Stefanov and Isaac Schlueter.

%prep
%setup -q -n package

#drop spurious executable bit
chmod 0644 package.json cssmin.js

%build
#nothing to do

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{name}
cp -pr bin cssmin.js package.json %{buildroot}%{nodejs_sitelib}/%{name}

mkdir -p %{buildroot}%{_bindir}
ln -sf ../lib/node_modules/%{name}/bin/cssmin %{buildroot}%{_bindir}/cssmin

%nodejs_symlink_deps

# yet another test framework that's not packaged yet :-(
#%%check
#istanbul cover --print both -- vows --spec ./tests/*.js

%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/%{name}
%{_bindir}/cssmin
%doc README.md LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11725 |21cr|yeahconsole-0.3.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Quake-like pull-down console
Name:		yeahconsole
Version:	0.3.4
Release:	5
License:	GPLv2+
Group:		Terminals
Url:		http://phrat.de/downloads.html
Source0:	http://phrat.de/%{name}-%{version}.tar.xz
Source1:	examples
BuildRequires:	pkgconfig(x11)
# Can work with both xterm or rxvt
Recommends:	xterm

%description
Yeahconsole puts an xterm window on top of your screen that behaves like a
console found in many games (like Quake). Its visibility can be toggled by
a keyboard shortcut (Control+Alt+y).

Yeahconsole is configured by editing .Xdefaults.
Please read the examples file.

%files
%doc examples README LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
cp %{SOURCE1} .
sed -i 's|/usr/local|%{buildroot}%{_prefix}|' Makefile
sed -i 's| -o root -g root||' Makefile

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
%makeinstall_std

#menu
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=YeahConsole
Comment=%{Summary}
Exec=%{_bindir}/%{name}
Icon=terminals_section.png
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-System-Terminals;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11726 |21cr|yersinia-0.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Network pen-testing tool
Name:		yersinia
Version:	0.8.2
Release:	1
License: 	GPL
Group: 		System/Servers
URL: 		http://www.yersinia.net
Source:		https://github.com/tomac/yersinia/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		yersinia-glibc2.36.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	libnet-devel
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	libtool
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig


%description
Yersinia is a network tool designed to take advantage of some weakeness in
different network protocols. It pretends to be a solid framework for analyzing
and testing the deployed networks and systems.

Currently, only attacks for the following network protocols are implemented:
* Spanning Tree Protocol (STP).
* Cisco Discovery Protocol (CDP).
* Dynamic Trunking Protocol (DTP).
* Dynamic Host Configuration Protocol (DHCP).
* Hot Standby Router Protocol (HSRP).
* 802.1q.
* Inter-Switch Link Protocol (ISL).
* VLAN Trunking Protocol (VTP).

%prep

%autosetup -p1 %{name}-%{version}

%build
%configure
#--with-pcap-includes=%{_includedir}/pcap
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%files
%doc AUTHORS COPYING ChangeLog FAQ README.md THANKS TODO
%{_bindir}/*
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11727 |21cr|yggdrasil-go-0.5.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=on
%global goipath github.com/yggdrasil-network/yggdrasil-go

# Package source code as a devel package.
# Turn on if using not bundled go modules.
# Offed for now because it automatically requires not packaged golang modules.
%bcond_with devel

%global debug_package %{nil}

Summary:	End-to-end encrypted IPv6 networking
Group:		Networking/Other
Name:		yggdrasil-go
Version:	0.5.5
Release:	2
License:	GPLv3
URL:		https://github.com/yggdrasil-network/yggdrasil-go
Source0:	https://github.com/yggdrasil-network/yggdrasil-go/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# go mod vendor, created with ./upd.sh
Source1:	%{name}-%{version}-go-mod-vendor.tar.xz
Source2:	upd.sh
Source10:	yggdrasil.sysusers.conf
BuildRequires:	golang
Provides:	yggdrasil = %{EVRD}
%gometa

%description
Yggdrasil is a proof-of-concept to explore a wholly different approach to
network routing. Whereas current computer networks depend heavily on very
centralised design and configuration, Yggdrasil breaks this mould by making
use of a global spanning tree to form a scalable IPv6 encrypted mesh network.

%files
%{_bindir}/yggdrasil
%{_bindir}/yggdrasilctl
%{_unitdir}/yggdrasil.service
%ghost %{_sysconfdir}/yggdrasil.conf
%{_sysusersdir}/yggdrasil.conf

%post
%sysusers_create yggdrasil.conf
%systemd_post yggdrasil.service

%preun
%systemd_preun yggdrasil.service

%postun
%systemd_postun_with_restart yggdrasil.service
#--------------------------------------------------------------------------
%if %{with devel}
%gopkg
%gopkgfiles
%endif
#--------------------------------------------------------------------------

%prep
%goprep
%apply_patches

%build
( cd .. && tar -xf %{SOURCE1} )
#%%gobuild -o %{gobuilddir}/bin/yggdrasil %{goipath}/cmd/yggdrasil
#%%gobuild -o %{gobuilddir}/bin/yggdrasilctl %{goipath}/cmd/yggdrasilctl

export PKGNAME=%{name}
export PKGVER=%{version}
./build -t -l "-linkmode=external"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_unitdir}
install -m 0755 yggdrasil %{buildroot}%{_bindir}/yggdrasil
install -m 0755 yggdrasilctl %{buildroot}%{_bindir}/yggdrasilctl
install -m 0755 contrib/systemd/yggdrasil.service %{buildroot}%{_unitdir}/yggdrasil.service

# /etc/yggdrasil.conf is generated on host because it contains private keys
mkdir -p %{buildroot}%{_sysconfdir}
touch %{buildroot}%{_sysconfdir}/yggdrasil.conf

# install sysuser config
install -D -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/yggdrasil.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11728 |21cr|yiff-2.14.7-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 14
%define libname %mklibname Y2_ %{major}
%define devname %mklibname %{name} -d

Summary:	YIFF Sound Systems
Name:		yiff
Version:	2.14.7
Release:	11
License:	GPLv2+
Group: 		System/Servers
Url:		http://wolfpack.twu.net/YIFF/index.html
Source0:	http://wolfsinger.com/~wolfpack/packages/%{name}-%{version}.tar.bz2
Patch:		%{name}-2.14.5.build.patch
%if %{mdvver} < 201610
BuildRequires:	pkgconfig(gtk+-2.0)
%endif
BuildRequires:	pkgconfig(zlib)

%description
YIFF is a high performance, stable, and fully  documented sound server for UNIX
games and applications. It employs a network transparent API which allows 
multiple client programs to access sound capabilities in a similar way to how X
clients do graphics.

Run yiffconfig after install to generate a starty script.

%files
%doc INSTALL_MANUAL LICENSE README
%config(noreplace) %{_sysconfdir}/yiffrc
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man8/*
%{_datadir}/icons/*
%{_datadir}/sounds/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}yiff2.14.7 < 2.14.7-8
Obsoletes:	%{_lib}yiff2.14.7 < 2.14.7-8

%description -n %{libname}
This package contains the library needed to run programs dynamically linked 
with %{name}.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libY2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop 
applications which will use %{name}.

%files -n %{devname}
%doc LICENSE
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p0

%build
pushd libY2
%make -f Makefile.Linux CFLAGS="%{optflags -wall} %{ldflags} -fPIC"
popd
pushd yiff
%make -f Makefile.Linux CFLAGS="%{optflags -wall} %{ldflags} -DOSS_BUFFRAG"
popd
%if %{mdvver} < 201610
pushd yiffconfig
%make -f Makefile.Linux CFLAGS="%{optflags -wall} %{ldflags} `gtk-config --cflags`"
popd
%endif
pushd yiffutils
%make -f Makefile.Linux CFLAGS="%{optflags -wall} %{ldflags} -D__USE_BSD"
popd

%install
install -d -m 755 %{buildroot}/%{_sysconfdir}
install -d -m 755 %{buildroot}/%{_datadir}/icons
install -d -m 755 %{buildroot}/%{_datadir}/sounds
make PREFIX=%{buildroot}%{_prefix} YLIB_DIR=%{buildroot}%{_libdir} install

# move man from /usr to /usr/share
mv %{buildroot}%{_prefix}/man %{buildroot}/%{_mandir}

install -m 644 yiff/yiffrc %{buildroot}/%{_sysconfdir}

cat >> %{buildroot}%{_bindir}/starty <<EOF
#!/bin/sh

# Locations of YIFF compoents and resources, make any changes as needed.
#
YIFF_PROGRAM=/usr/sbin/yiff
YIFF_CONFIGURATION=/etc/yiffrc

# Run the YIFF Sound Server, syntax is; "<program> <config_file>"
# YIFF will put the process into background by itself.
#
$YIFF_PROGRAM $YIFF_CONFIGURATION

# Put list of Y hosts that you would like to allow connecting to the
# Y server in this section. Note that localhost (127.0.0.1) is always
# given permission to connect when the YIFF server is runned.
#
#yhost 127.0.0.1

# Play a sound object on successful startup?
#yplay -m /usr/share/sounds/startup1.wav
EOF
chmod +x %{buildroot}%{_bindir}/starty

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11729 |21cr|yoshimi-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

Summary:	ZynAddSubFX fork
Name:		yoshimi
Version:	2.2.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://yoshimi.sourceforge.net
Source0:	https://github.com/Yoshimi/yoshimi/archive/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake >= 3.0.0
BuildRequires:	desktop-file-utils
BuildRequires:	boost-devel
BuildRequires:	fltk-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa) >= 1.0.17
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(fftw3) >= 0.22
BuildRequires:	pkgconfig(fontconfig) >= 0.22
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lv2) >= 1.0.0
BuildRequires:	pkgconfig(mxml) >= 2.5
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(zlib)

%description
Yoshimi is a fork of the legendary and powerful ZynAddSubFX multi-timbral
standalone synthesizer. It can use either ALSA or JACK for both Audio and MIDI
the default now being JACK.

%files
%doc COPYING doc/*.txt
%{_docdir}/%{name}/Histories.tar.bz2
%{_docdir}/%{name}/*.odt
%{_docdir}/%{name}/examples/*
%{_docdir}/%{name}/%{name}_user_guide/*
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}*.svg
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/metainfo/%{name}.appdata.xml
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package plugin-lv2
Summary:	LV2 Plugin version of yoshimi
Group:		Sound

%description plugin-lv2
Yoshimi is a fork of the legendary and powerful ZynAddSubFX multi-timbral
standalone synthesizer. This is its LV2 plugin version.

%files plugin-lv2
%doc COPYING
%dir %{_libdir}/lv2/%{name}.lv2
%{_libdir}/lv2/%{name}.lv2/*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
cd src
%cmake
%make


%install
%makeinstall_std -C src/build


# Fix wrong perms
find %{buildroot}%{_datadir}/%{name}/banks -type d |xargs chmod 0755
chmod 0755 %{buildroot}%{_datadir}/%{name}/examples
chmod 0755 %{buildroot}%{_datadir}/%{name}/presets
chmod 0755 %{buildroot}%{_datadir}/%{name}/examples/"Original Zyn Patchsets"
# Drop duplicate (?) breaking find search
rm -rf %{buildroot}%{_docdir}/%{name}/examples/"Original Zyn Patchsets"
find %{buildroot}%{_docdir}/%{name} -type d |xargs chmod 0755

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11730 |21cr|youtube-viewer-3.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A youtube viewer
Name:		youtube-viewer
Version:	3.10.2
Release:	1
License:	GPLv3+
Group:		Video
Url:		https://github.com/trizen/youtube-viewer
Source0:	https://github.com/trizen/youtube-viewer/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(Encode)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::ShareDir)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(List::AllUtils)
BuildRequires:	perl(Memoize)
BuildRequires:	perl(MIME::Base64::URLSafe)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Mozilla::CA)
BuildRequires:	perl(LWP::Protocol::https)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(LWP::UserAgent::Cached)
BuildRequires:	perl(Text::CharWidth)
BuildRequires:	perl(Unicode::GCString)
# For tests
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
Requires:	mplayer
Requires:	perl >= 5.16.3
Requires:	perl(Data::Dump)
Requires:	perl(Exporter)
Requires:	perl(File::Path)
Requires:	perl-JSON
Requires:	perl(LWP::UserAgent)
Requires:	perl(Mozilla::CA)
Requires:	perl(Term::ANSIColor)
Requires:	perl(Term::ReadLine::Perl)
Requires:	perl(Term::UI)
Requires:	perl(Text::ParseWords)
Requires:	perl(Unicode::GCString)
Requires:	perl(URI::Escape)
Requires:	perl(XML::Fast)
# Optional
Recommends:		gcap
Recommends:		perl(LWP::Protocol::https)
Recommends:		perl(Text::CharWidth)
Recommends:		perl(Term::ReadLine::Gnu::XS)
BuildArch:	noarch

%description
Youtube viewer using mplayer, written in Perl.

%files
%doc Changes README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man3/*.3pm.*
%{perl_vendorlib}/WWW/YoutubeViewer.pm
%{perl_vendorlib}/WWW/YoutubeViewer/*
%{perl_vendorlib}/auto/share/dist/WWW-YoutubeViewer/*

#-----------------------------------------------------------------------------

%package -n gtk-%{name}
Summary:	A youtube viewer, GTK3 interface
Requires:	config(gtk+3.0-common)
Requires:	perl(Digest::MD5)
Requires:	perl(File::ShareDir)
Requires:	perl(Gtk3)
Requires:	perl(JSON::XS)
Requires:	perl(LWP::UserAgent::Cached)
Requires:	perl(Storable)
Requires:	perl(Unicode::GCString)
Requires:	%{name} = %{EVRD}

%description -n gtk-youtube-viewer
Youtube viewer using mplayer and GTK3, written in Perl.

%files -n gtk-%{name}
%doc Changes README.md
%{_bindir}/gtk-%{name}
%{_datadir}/applications/gtk-%{name}.desktop
%{_iconsdir}/hicolor/*/apps/gtk-%{name}.png

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
perl Build.PL --gtk3 --installdirs=vendor 
./Build


%install
./Build install destdir=%{buildroot}

# Install .desktop file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications share/gtk-%{name}.desktop

# Install icon files
for size in 256x256 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -strip -resize $size share/icons/gtk-%{name}.png %{buildroot}%{_iconsdir}/hicolor/$size/apps/gtk-%{name}.png
done

# Fix perms
chmod 0644 %{buildroot}%{perl_vendorlib}/auto/share/dist/WWW-YoutubeViewer/gtk-%{name}.desktop
chmod 0755 %{buildroot}%{_bindir}/%{name}
chmod 0755 %{buildroot}%{_bindir}/gtk-%{name}


%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11731 |21cr|ypbind-2.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild with  '--with dbus' to enbale dbus/Netwrokmanager support
%bcond_without dbus

# Location where helper scripts are located
%define scripts_path /usr/lib/%{name}

Summary:	The NIS daemon which binds NIS clients to an NIS domain
Name:		ypbind
Version:	2.7.2
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		https://github.com/thkukuk/ypbind-mt
Source0:	https://github.com/thkukuk/ypbind-mt/releases/download/v%{version}/ypbind-mt-%{version}.tar.xz
Source3:	ypbind.service
Source4:	ypbind-pre-setdomain
Source5:	ypbind-post-waitbind
Patch2:		ypbind-1.11-gettextdomain.patch
BuildRequires:	gettext-devel
%if %{with dbus}
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(libnm)
%endif
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libnsl)
Requires:	rpcbind
Requires:	yp-tools

%description
The Network Information Service (NIS) is a system which provides
network information (login names, passwords, home directories, group
information) to all of the machines on a network.  NIS can enable
users to login on any machine on the network, as long as the machine
has the NIS client programs running and the user's password is
recorded in the NIS passwd database.  NIS was formerly known as Sun
Yellow Pages (YP).

This package provides the ypbind daemon.  The ypbind daemon binds NIS
clients to an NIS domain.  Ypbind must be running on any machines
which are running NIS client programs.

Install the ypbind package on any machines which are running NIS client
programs (included in the yp-tools package).  If you need an NIS server,
you'll also need to install the ypserv package to a machine on your
network.

%files -f %{name}.lang
%attr(755, root, root) /sbin/ypbind
%{_mandir}/*/*
%{_unitdir}/*
%{scripts_path}/*
%config(noreplace) %{_sysconfdir}/yp.conf
%dir /var/yp/binding
%doc README ChangeLog AUTHORS THANKS NEWS

%post
%systemd_post ypbind.service

%preun
%systemd_preun ypbind.service

#----------------------------------------------------------------------------

%prep
%setup -q -n ypbind-mt-%{version}
%apply_patches

%build
autoreconf -fi
%serverbuild
%configure \
%if %{with dbus}
	--enable-dbus-nm \
%else
	--disable-dbus-nm \
%endif
	--sbindir=/sbin
%make

%install
%makeinstall sbindir=%{buildroot}/sbin

mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 etc/yp.conf %{buildroot}%{_sysconfdir}/yp.conf
mkdir -p %{buildroot}/var/yp/binding

mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/ypbind.service
mkdir -p %{buildroot}%{scripts_path}
install -m 755 %{SOURCE4} %{buildroot}%{scripts_path}/ypbind-pre-setdomain
install -m 755 %{SOURCE5} %{buildroot}%{scripts_path}/ypbind-post-waitbind

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11732 |21cr|ypserv-4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	__requires_exclude .*/bin/awk|.*/bin/gawk

Summary:	The NIS (Network Information Service) server
Name:		ypserv
Version:	4.2
Release:	2
License:	GPLv2+
Group:		System/Servers
Url:		https://www.thkukuk.de/nis/
Source0:	https://github.com/thkukuk/ypserv/archive/refs/tags/%{name}-%{version}.tar.gz
Source1:		ypserv.service
Source2:		yppasswdd.service
Source3:		ypxfrd.service
Patch0:	ypserv-4.2-makefile.patch
Patch1:	ypserv-4.2-no-Werror.patch
Patch2:	ypserv-4.2-ypxfr-zeroresp.patch
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl
BuildRequires:	libxml2-utils
BuildRequires:	mawk
BuildRequires:	sgml-common
BuildRequires:	xsltproc
BuildRequires:	gdbm-devel
BuildRequires:	openslp-devel
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(qdbm)
BuildRequires:	pkgconfig(systemd) >= 209
Requires:	make
Requires:	mawk
Requires:	rpcbind
Requires(post,preun):	rpm-helper
Requires(post,preun):	systemd

%description
The Network Information Service (NIS) is a system which provides network
information (login names, passwords, home directories, group information)
to all of the machines on a network.  NIS can enable users to login on
any machine on the network, as long as the machine has the NIS client
programs running and the user's password is recorded in the NIS passwd
database.  NIS was formerly known as Sun Yellow Pages (YP).
This package provides the NIS server, which will need to be running on
your network.  NIS clients do not need to be running the server.
Install ypserv if you need an NIS server for your network.  You'll also
need to install the yp-tools and ypbind packages onto any NIS client
machines.

%files
%doc README ChangeLog TODO NEWS
%doc etc/ypserv.conf etc/securenets etc/README.etc
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) /var/yp/Makefile
%{_unitdir}/yp*
%dir %{_libdir}/yp
%attr(755, root, root) %{_libdir}/yp/*
%attr(755, root, root) %{_sbindir}/yp*
%attr(755, root, root) %{_sbindir}/rpc.yp*
%{_mandir}/man5/*.5*
%{_mandir}/man8/*.8.*
%{_includedir}/rpcsvc/ypxfrd.x

%post
%_post_service %{name}
%_post_service yppasswdd
%_post_service ypxfrd

%preun
%_preun_service %{name}
%_preun_service yppasswdd
%_preun_service ypxfrd

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Avoid name clash
cp etc/README etc/README.etc


%build
autoreconf -vfi
%configure \
	--enable-checkroot \
	--enable-fqdn \
	--libexecdir=%{_libdir}/yp \
	--mandir=%{_mandir} \
	--enable-ypmapdir="/var/yp"
%make


%install
%makeinstall_std

install -m644 etc/%{name}.conf -D %{buildroot}%{_sysconfdir}/%{name}.conf

mkdir -p %{buildroot}%{_unitdir}
install -m644 %{SOURCE1} -D %{buildroot}%{_unitdir}/%{name}
install -m644 %{SOURCE2} -D %{buildroot}%{_unitdir}/yppasswdd
install -m644 %{SOURCE3} -D %{buildroot}%{_unitdir}/ypxfrd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11733 |21cr|yp-tools-4.2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude .*GLIBC_PRIVATE.*

Summary:	NIS (or YP) client programs
Name:		yp-tools
Version:	4.2.3
Release:	2
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		https://github.com/thkukuk/yp-tools
Source0:	https://github.com/thkukuk/yp-tools/archive/v%{version}.tar.gz?/yp-tools-%{version}.tar.gz
Patch1: yp-tools-2.12-hash.patch
Patch2: yp-tools-2.12-crypt.patch
Patch3: yp-tools-2.12-adjunct.patch
Patch4: yp-tools-4.2.2-strict-prototypes.patch
Patch5: yp-tools-4.2.3-yppasswd.patch
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libnsl)
Recommends:	ypbind

%description
The Network Information Service (NIS) is a system which provides
network information (login names, passwords, home directories, group
information) to all of the machines on a network.  NIS can enable
users to login on any machine on the network, as long as the machine
has the NIS client programs running and the user's password is
recorded in the NIS passwd database.  NIS was formerly known as Sun
Yellow Pages (YP).

This package's NIS implementation is based on FreeBSD's YP and is a
special port for glibc 2.x and libc versions 5.4.21 and later.  This
package only provides the NIS client programs.  In order to use the
clients, you'll need to already have an NIS server running on your
network. An NIS server is provided in the ypserv package.

Install the yp-tools package if you need NIS client programs for machines
on your network.  You will also need to install the ypbind package on
every machine running NIS client programs.  If you need an NIS server,
you'll need to install the ypserv package on one machine on the network.

%files -f %{name}.lang
%doc AUTHORS COPYING README ChangeLog NEWS etc/nsswitch.conf
%doc THANKS
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/*/*
%{_var}/yp/nicknames

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh
export CFLAGS="$CFLAGS %{optflags} -Wno-cast-function-type"
./configure \
	--disable-domainname

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11734 |21cr|ytnef-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ytnef %{major}
%define develname %mklibname -d ytnef

Name:		ytnef
Version:	2.0
Release:	1
Summary:	Yerase's TNEF Stream Reader
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/Yeraze/ytnef/tree/master/ytnef
Source:		https://github.com/Yeraze/ytnef/archive/refs/tags/v2.0.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		ytnef-pkgconfig.patch
Requires:	perl-MIME-tools
Requires:	%{libname} = %{EVRD}

%description
Yerase's TNEF Stream Reader.  Can take a TNEF Stream (winmail.dat) sent from
Microsoft Outlook (or similar products) and extract the attachments, including
construction of Contact Cards & Calendar entries.

%files
%doc COPYING README.md
%{_bindir}/ytnef
%{_bindir}/ytnefprint
%{_bindir}/ytnefprocess

#-------------------------------------------------------------
%package -n %{libname}
Summary:	TNEF Stream Parser shared library
Group:		System/Libraries

%description -n %{libname}
TNEF Stream Parser Library to decode TNEF (winmail.dat) streams
generated by Microsoft Outlook.

%files -n %{libname}
%{_libdir}/libytnef.so.%{major}*

#-------------------------------------------------------------

%package -n %{develname}
Summary:	TNEF Stream Parser library
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	libytnef-devel = %{EVRD}

%description -n %{develname}
TNEF Stream Parser Library to decode TNEF (winmail.dat) streams
generated by Microsoft Outlook.

%files -n %{develname}
%{_libdir}/libytnef.so
%{_libdir}/pkgconfig/libytnef.pc
%{_includedir}/libytnef/*.h

#-------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

pushd lib
# force autoreconf for lib (need config.h.in file)
touch libytnef.spec.in
touch NEWS
touch README
touch AUTHORS
autoreconf -vfi
popd

NOCONFIGURE=1 ./autogen.sh

%apply_patches

%build
pushd lib
# force configure for lib (need config.h)
%configure
popd

%configure
%make

%install
%makeinstall_std includedir=%{_includedir}/libytnef

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11735 |21cr|yudit-3.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

Summary:    Unicode Text Editor
Name:       yudit
Version:    3.0.7
Release:    1
Group:      Editors
License:    GPLv2
URL:        http://www.yudit.org/
Source0:    http://www.yudit.org/download/yudit-%{version}.tar.bz2
# Here I define the directories with ttf files; and several ttf fonts
# we provide or that are widely used, in order to cover the most of unicode
# if this patch doesn't work after an upgrade please try to fix it (it is
# a very simple three-lines one) rather than discarding, as discarding it
# means we lose out-of-the box support for various languages -- pablo
Patch0:     yudit-3.0.7-properties.patch
BuildRequires:  imagemagick
BuildRequires:  pkgconfig(x11)

%description
Yudit is a unicode text editor for the X Window System.
It does not need localized environment or unicode fonts.
It supports simultanious processing of many languages,
input methods, conversions for local character standards.
This package includes X11 editor interface, shell conversion
utilities and it also has support for postscript printing.

%files
%doc *.TXT
%{_bindir}/*
%{_mandir}/man?/*
%{_datadir}/applications/*.desktop
%{_datadir}/yudit
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png

#----------------------------------------------------------
%prep
%autosetup -p1

%build
%configure
make

%install

%makeinstall_std

mkdir -p %{buildroot}{%{_miconsdir},%{_iconsdir},%{_liconsdir}}
convert gnome-%{name}.png -geometry 48x48 %{buildroot}%{_liconsdir}/%{name}.png
convert gnome-%{name}.png -geometry 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert gnome-%{name}.png -geometry 16x16 %{buildroot}%{_miconsdir}/%{name}.png


mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Yudit
Name[ru]=Yudit
Type=Application
Description=Unicode Text Editor
Description[ru]=Текстовый редактор с поддержкой Unicode
Exec=yudit
Icon=yudit
Terminal=false
Categories=TextEditor;Utility;
EOF


# rpm complains and fails when there are installed but unpackaged files
# as we don't include those in the package, we delete them from the
# build tree -- pablo
rm -rf %{buildroot}%{_datadir}/yudit/src




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11736 |21cr|yuki-iptv-0.0.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	IPTV player with EPG support
Name:		yuki-iptv
Version:	0.0.12
Release:	2
Epoch:		1
Group:		Video
License:	GPL-3.0-or-later
URL:		https://codeberg.org/liya/yuki-iptv
Source0:	https://codeberg.org/liya/yuki-iptv/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	hicolor-icon-theme
BuildRequires:	gettext
Requires:	python3
Requires:	mpv
Requires:	python3-qt5
Requires:	qt5-qttranslations
Requires:	python3-pillow
Requires:	python3-gobject
Requires:	python3-unidecode
Requires:	python3-chardet
Requires:	python3-requests
Requires:	python3-setproctitle
Requires:	ffmpeg
Requires:	yt-dlp

%description
IPTV player with EPG support

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_prefix}/lib/%{name}
%{_iconsdir}/hicolor/scalable/apps/yuki-iptv.svg
%{_datadir}/metainfo/yuki-iptv.appdata.xml


%prep
%setup -q -n %{name}

%build
make
sed -i "s/__DEB_VERSION__/%{version}/g" usr/lib/yuki-iptv/yuki-iptv.py

%install
cp -af usr %{buildroot}

%find_lang %{name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11737 |21cr|yum-arch-2.2.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           yum-arch
Version:        2.2.2
Release:        9
Summary:        Extract headers from rpm in a old yum repository
License:        GPL
Group:          System/Configuration/Packaging
URL:            http://linux.duke.edu/yum/
Source0:        http://linux.duke.edu/projects/yum/download/2.2/yum-%{version}.tar.gz
Patch1:         yum-arch-folder.patch
Patch2:         yum-arch-python26.patch
Requires:       python
Requires:       python-rpm
Requires:       python-libxml2
BuildRequires:  python
BuildRequires:  gettext
BuildArch:      noarch
BuildRoot:      %{_tmppath}/%{name}-%{version}

%description
Extract headers from rpm in a old yum repository.

This package only provides the old yum-arch command from yum-%{version}
It should be used to generate repository informations for Fedora Core  < 3
and RedHat Enterprise Linux < 4.

%prep
%setup -q -n yum-%{version}
%patch1 -p0 -b .folder
%patch2 -p0

# to avoid rpmlint warnings
for source in *.py {repomd,rpmUtils,yum}/*.py; do
    sed -i -e '/^#!\/usr/d' $source
done

%build
make

%install
rm -rf %{buildroot}
make DESTDIR=%{buildroot} install

%clean
rm -rf %{buildroot}


%files
%defattr(-, root, root, -)
%doc README AUTHORS COPYING TODO INSTALL ChangeLog
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_mandir}/man8/%{name}*



%changelog
* Mon Sep 21 2009 Thierry Vignaud <tvignaud@mandriva.com> 2.2.2-6mdv2010.0
+ Revision: 446313
- rebuild

* Wed Feb 18 2009 Michael Scherer <misc@mandriva.org> 2.2.2-5mdv2009.1
+ Revision: 342505
- fix usage on 2.6, reported by xrg_ on irc

* Mon Aug 04 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.2.2-4mdv2009.0
+ Revision: 262956
- rebuild

* Mon Aug 04 2008 Thierry Vignaud <tvignaud@mandriva.com> 2.2.2-3mdv2009.0
+ Revision: 262806
- rebuild
- kill re-definition of %%buildroot on Pixel's request

  + Olivier Blin <oblin@mandriva.com>
    - restore BuildRoot

* Tue Dec 04 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.2.2-1mdv2008.1
+ Revision: 115431
- import yum-arch


* Tue Dec 04 2007 Guillaume Rousse <guillomovitch@mandriva.org> 2.2.2-1mdv2008.1
- initial mdv release

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11738 |21cr|yumex-dnf-4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global appname yumex

Name:		yumex-dnf
Version:	4.5.0
Release:	1
Summary:	Yum Extender graphical package management tool
Group:		System/Configuration/Packaging
License:	GPLv2+
URL:		http://yumex.dk
Source0:	https://github.com/timlau/yumex-dnf/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1:	yumex-dnf-4.4.1_ru.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	python3-devel >= 3.8
BuildRequires:	meson
BuildRequires:	python3-libsass
BuildRequires:	appstream-util
Requires:	python3-dnfdaemon >= 0.3.10
Requires:	python3-gi
Requires:	python3-pyxdg
Requires:	python3-dbus
Requires:	python3-cairo
Requires:	%{_lib}notify-gir0.7
Requires:	libnotify
Requires:	fonts-ttf-google-noto-sans
BuildArch:	noarch

%description
Graphical package tool for maintain packages on the system

%files -f  %{name}.lang
%doc README.md COPYING
%{_datadir}/%{name}
%{_bindir}/%{name}*
%{python3_sitelib}/%{appname}/
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/
%{_metainfodir}/%{name}.metainfo.xml

#----------------------------------------------------------
%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11739 |21cr|z26-4.07-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sversion %(echo %{version} | sed s,\\\\.,,g)

Summary:	An Atari 2600 Video Computer System emulator
Name:		z26
Version:	4.07
Release:	4
License:	GPLv2+
Group:		Emulators
Url:		http://www.whimsey.com/z26/
Source0:	http://www.whimsey.com/z26/%{name}_%{sversion}_src.zip
Patch0:		z26_407_src-optflags.patch
# Don't create z26.desktop in user's home (we have system desktop file)
Patch1:		z26_407_src-drop-desktop-file-creation.patch
BuildRequires:	dos2unix
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(sdl2)

%description
The Atari 2600 Video Computer System (VCS), introduced in 1977, was the most
popular home video game system of the early 1980's. This emulator will run
most Atari ROM images, so that you can play your favorite old Atari 2600 games
on your PC.

%files
%doc doc/*
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}_%{sversion}_src
dos2unix doc/*

%build
%make linux OPTFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{name} %{buildroot}%{_bindir}/%{name}

# icons
for N in 16 32 48 64 128; do
	convert %{name}icon.png -scale ${N}x${N} ${N}.png
	install -D ${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=z26
Comment=Atari 2600 Emulator
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11740 |21cr|z8530drv-utils-3.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux driver for Z8530 based HDLC cards for AX.25
Name:		z8530drv-utils
Version:	3.0.3
Release:	5
License:	GPLv2+
Group:		Communications
Url:		http://yaina.de/jreuter/linux/scc.en.html
Source0:	ftp://ftp.ccac.rwth-aachen.de/pub/jr/z8530drv-utils_3.0-3.tar.gz
Patch0:		z8530drv-gcc4.diff
Patch1:		z8530drv-buildserv.diff
Patch2:		z8530drv-utils-3.0-debug.patch
Provides:	z8530drv = %{EVRD}

%description
Utilities for the generic Z8530 AX.25 device driver.

%files
%doc README
%doc z8530drv-utils-3.0.lsm
%doc doc/Copying.Z8530DRV
%doc doc/FAQ
%doc doc/scc_eng.doc
%doc doc/scc_ger.doc
%dir /etc/ax25
%config /etc/ax25/z8530drv.conf
/sbin/sccstat
/sbin/sccinit
/sbin/sccparam
%{_sbindir}/sccgencfg
%{_sbindir}/kissbridge

#----------------------------------------------------------------------------

%prep
%setup -q -n z8530drv-utils-3.0
%patch0 -p0
%patch1 -p1
%patch2 -p1

%build
make dep
make

%install
mkdir -p %{buildroot}/{etc,etc/ax25,usr,usr/sbin,sbin}
make prefix=%{buildroot} install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11741 |21cr|zabbix-2.0.20-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO, maybe sometime:
# * Do something about mutex errors sometimes occurring when init scripts'
#   restart is invoked; something like "sleep 2" between stop and start?
# * Use "Include" in zabbix_{agentd,proxy,server}.conf, point to corresponding
#   /etc/zabbix/zabbix_*.conf.d/ dir; needs patching in order to not load
#   various backup files (*.rpm{orig,new,save}, *~ etc) in that dir.

%global srcname zabbix

Summary:	Open-source monitoring solution for your IT infrastructure
Name:		zabbix
Version:	2.0.20
Release:	3
License:	GPLv2+
Group:		Monitoring
Url:		http://www.zabbix.com/
Source0:	http://downloads.sourceforge.net/%{srcname}/%{srcname}-%{version}.tar.gz
# upstream tarball minus src/zabbix_java/lib/org-json-2010-12-28.jar
#Source0:	%{srcname}-%{version}-free.tar.gz
Source1:	zabbix-web.conf
Source5:	zabbix-logrotate.in
# tmpfiles for F >= 15 mandriva >= 2012
Source9:	zabbix-tmpfiles.conf
# systemd units
Source10:	zabbix-agent.service
Source11:	zabbix-proxy-mysql.service
Source12:	zabbix-proxy-pgsql.service
Source13:	zabbix-proxy-sqlite3.service
Source14:	zabbix-server-mysql.service
Source15:	zabbix-server-pgsql.service
Source16:	zabbix-server-sqlite3.service

# local rules for config files
Patch0:		zabbix-2.0.1-config.patch
# local rules for config files - fonts
Patch1:		zabbix-2.0.14-fonts-config.patch
# remove flash content (#737337)
# https://support.zabbix.com/browse/ZBX-4794
Patch2:		zabbix-2.0.1-no-flash.patch
# adapt for fping3 - https://support.zabbix.com/browse/ZBX-4894
Patch3:		zabbix-1.8.12-fping3.patch

BuildRequires:	systemd-units
BuildRequires:	mysql-devel
BuildRequires:	net-snmp-devel
#BuildRequires:	openldap-devel
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(iksemel)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(OpenIPMI)
BuildRequires:	pkgconfig(sqlite3)

Requires:	logrotate
Requires(pre):	shadow-utils
%if %{srcname} != %{name}
Conflicts:	%{srcname}
%endif

%description
ZABBIX is software that monitors numerous parameters of a network and
the health and integrity of servers. ZABBIX uses a flexible
notification mechanism that allows users to configure e-mail based
alerts for virtually any event.  This allows a fast reaction to server
problems. ZABBIX offers excellent reporting and data visualisation
features based on the stored data. This makes ZABBIX ideal for
capacity planning.

ZABBIX supports both polling and trapping. All ZABBIX reports and
statistics, as well as configuration parameters are accessed through a
web-based front end. A web-based front end ensures that the status of
your network and the health of your servers can be assessed from any
location. Properly configured, ZABBIX can play an important role in
monitoring IT infrastructure. This is equally true for small
organisations with a few servers and for large companies with a
multitude of servers.

%files
%doc AUTHORS ChangeLog COPYING NEWS README
%dir %{_sysconfdir}/%{srcname}
%config(noreplace) %{_sysconfdir}/tmpfiles.d/zabbix.conf
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/lib/%{srcname}
%attr(0755,zabbix,zabbix) %dir %{_localstatedir}/log/%{srcname}
%{_bindir}/zabbix_get
%{_bindir}/zabbix_sender
%{_mandir}/man1/zabbix_get.1*
%{_mandir}/man1/zabbix_sender.1*

%pre
getent group zabbix > /dev/null || groupadd -r zabbix
getent passwd zabbix > /dev/null || \
    useradd -r -g zabbix -d %{_localstatedir}/lib/%{srcname} -s /sbin/nologin \
    -c "Zabbix Monitoring System" zabbix
:

#----------------------------------------------------------------------------

%package server
Summary:	Zabbix server common files
Group:		Monitoring
Requires:	%{name} = %{EVRD}
Requires:	%{name}-server-implementation = %{EVRD}
Requires:	fping
Requires:	traceroute

%description server
Zabbix server common files

%files server
%doc misc/snmptrap/zabbix_trap_receiver.pl
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix_server.conf
%{_sysconfdir}/%{srcname}/zabbix_server.conf
%attr(0755,zabbix,zabbix) %dir %{_sysconfdir}/%{srcname}/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-server
%ghost %{_unitdir}/zabbix-server.service
%{_mandir}/man8/zabbix_server.8*

#----------------------------------------------------------------------------

%package server-mysql
Summary:	Zabbix server compiled to use MySQL
Group:		Monitoring
Requires:	%{name} = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	%{name}-server-implementation = %{EVRD}
Conflicts:	%{name}-server-pgsql
Conflicts:	%{name}-server-sqlite3

%description server-mysql
Zabbix server compiled to use MySQL.

%files server-mysql
%{_docdir}/%{srcname}-server-mysql-%{version}/
%{_sbindir}/zabbix_server_mysql
%{_unitdir}/zabbix-server-mysql.service

%post server-mysql
if [ $1 -eq 1 ] ; then
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
ln -sf %{_unitdir}/zabbix-server-mysql.service %{_unitdir}/zabbix-server.service

%preun server-mysql
if [ $1 -eq 0 ] ; then
    /bin/systemctl --no-reload disable zabbix-server-mysql.service > /dev/null 2>&1 || :
    /bin/systemctl stop zabbix-server-mysql.service > /dev/null 2>&1 || :
fi

%postun server-mysql
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    /bin/systemctl try-restart zabbix-server-mysql.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package server-pgsql
Summary:	Zabbix server compiled to use PostgresSQL
Group:		Monitoring
Requires:	%{name} = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	%{name}-server-implementation = %{EVRD}
Conflicts:	%{name}-server-mysql
Conflicts:	%{name}-server-sqlite3

%description server-pgsql
Zabbix server compiled to use PostgresSQL.

%post server-pgsql
if [ $1 -eq 1 ] ; then
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
ln -sf %{_unitdir}/zabbix-server-pgsql.service %{_unitdir}/zabbix-server.service

%files server-pgsql
%{_docdir}/%{srcname}-server-pgsql-%{version}/
%{_sbindir}/zabbix_server_pgsql
%{_unitdir}/zabbix-server-pgsql.service

%preun server-pgsql
if [ $1 -eq 0 ] ; then
    /bin/systemctl --no-reload disable zabbix-server-pgsql.service > /dev/null 2>&1 || :
    /bin/systemctl stop zabbix-server-pgsql.service > /dev/null 2>&1 || :
fi

%postun server-pgsql
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    /bin/systemctl try-restart zabbix-server-pgsql.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package server-sqlite3
Summary:	Zabbix server compiled to use SQLite
Group:		Monitoring
Requires:	%{name} = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	%{name}-server-implementation = %{EVRD}
Conflicts:	%{name}-server-mysql
Conflicts:	%{name}-server-pgsql

%description server-sqlite3
Zabbix server compiled to use SQLite.

%files server-sqlite3
%{_docdir}/%{srcname}-server-sqlite3-%{version}/
%{_sbindir}/zabbix_server_sqlite3
%{_unitdir}/zabbix-server-sqlite3.service

%post server-sqlite3
if [ $1 -eq 1 ] ; then
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
ln -sf %{_unitdir}/zabbix-server-sqlite3.service %{_unitdir}/zabbix-server.service

%preun server-sqlite3
if [ $1 -eq 0 ] ; then
    /bin/systemctl --no-reload disable zabbix-server-sqlite3.service > /dev/null 2>&1 || :
    /bin/systemctl stop zabbix-server-sqlite3.service > /dev/null 2>&1 || :
fi

%postun server-sqlite3
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    /bin/systemctl try-restart zabbix-server-sqlite3.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package agent
Summary:	Zabbix Agent
Group:		Monitoring
Requires:	%{name} = %{EVRD}
Requires(post,preun,postun):	systemd-units

%description agent
The Zabbix client agent, to be installed on monitored systems.

%files agent
%doc conf/zabbix_agentd/*.conf
%config(noreplace) %{_sysconfdir}/zabbix_agent.conf
%{_sysconfdir}/%{srcname}/zabbix_agent.conf
%config(noreplace) %{_sysconfdir}/zabbix_agentd.conf
%{_sysconfdir}/%{srcname}/zabbix_agentd.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-agent
%{_unitdir}/zabbix-agent.service
%{_sbindir}/zabbix_agent
%{_sbindir}/zabbix_agentd
%{_mandir}/man8/zabbix_agentd.8*

%post agent
if [ $1 -eq 1 ] ; then
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi

%preun agent
if [ $1 -eq 0 ] ; then
    /bin/systemctl --no-reload disable zabbix-agent.service > /dev/null 2>&1 || :
    /bin/systemctl stop zabbix-agent.service > /dev/null 2>&1 || :
fi

%postun agent
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    /bin/systemctl try-restart zabbix-agent.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package proxy
Summary:	Zabbix Proxy
Group:		Monitoring
Requires:	%{name} = %{version}-%{release}
Requires:	%{name}-proxy-implementation = %{EVRD}
Requires:	fping

%description proxy
The Zabbix proxy.

%files proxy
%doc misc/snmptrap/zabbix_trap_receiver.pl
%attr(0640,root,zabbix) %config(noreplace) %{_sysconfdir}/zabbix_proxy.conf
%{_sysconfdir}/%{srcname}/zabbix_proxy.conf
%attr(0755,zabbix,zabbix) %dir %{_sysconfdir}/%{srcname}/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix-proxy
%ghost %{_unitdir}/zabbix-proxy.service
%{_mandir}/man8/zabbix_proxy.8*

#----------------------------------------------------------------------------

%package proxy-mysql
Summary:	Zabbix proxy compiled to use MySQL
Group:		Monitoring
Requires:	%{name}-proxy = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	%{name}-proxy-implementation = %{EVRD}

%description proxy-mysql
The Zabbix proxy compiled to use MySQL.

%files proxy-mysql
%{_docdir}/%{srcname}-proxy-mysql-%{version}/
%{_sbindir}/zabbix_proxy_mysql
%{_unitdir}/zabbix-proxy-mysql.service

%post proxy-mysql
if [ $1 -eq 1 ] ; then
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
ln -sf %{_unitdir}/zabbix-proxy-mysql.service %{_unitdir}/zabbix-proxy.service

%preun proxy-mysql
if [ $1 -eq 0 ] ; then
    /bin/systemctl --no-reload disable zabbix-proxy-mysql.service > /dev/null 2>&1 || :
    /bin/systemctl stop zabbix-proxy-mysql.service > /dev/null 2>&1 || :
fi

%postun proxy-mysql
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    /bin/systemctl try-restart zabbix-proxy-mysql.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package proxy-pgsql
Summary:	Zabbix proxy compiled to use PostgreSQL
Group:		Monitoring
Requires:	%{name}-proxy = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	%{name}-proxy-implementation = %{EVRD}

%description proxy-pgsql
The Zabbix proxy compiled to use PostgreSQL.

%files proxy-pgsql
%{_docdir}/%{srcname}-proxy-pgsql-%{version}/
%{_sbindir}/zabbix_proxy_pgsql
%{_unitdir}/zabbix-proxy-pgsql.service

%post proxy-pgsql
if [ $1 -eq 1 ] ; then
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
ln -sf %{_unitdir}/zabbix-proxy-pgsql.service %{_unitdir}/zabbix-proxy.service

%preun proxy-pgsql
if [ $1 -eq 0 ] ; then
    /bin/systemctl --no-reload disable zabbix-proxy-pgsql.service > /dev/null 2>&1 || :
    /bin/systemctl stop zabbix-proxy-pgsql.service > /dev/null 2>&1 || :
fi

%postun proxy-pgsql
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    /bin/systemctl try-restart zabbix-proxy-pgsql.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package proxy-sqlite3
Summary:	Zabbix proxy compiled to use SQLite
Group:		Monitoring
Requires:	%{name}-proxy = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	%{name}-proxy-implementation = %{EVRD}

%description proxy-sqlite3
The Zabbix proxy compiled to use SQLite.

%files proxy-sqlite3
%{_docdir}/%{srcname}-proxy-sqlite3-%{version}/
%{_sbindir}/zabbix_proxy_sqlite3
%{_unitdir}/zabbix-proxy-sqlite3.service

%post proxy-sqlite3
if [ $1 -eq 1 ] ; then
    /bin/systemctl daemon-reload >/dev/null 2>&1 || :
fi
ln -sf %{_unitdir}/zabbix-proxy-sqlite3.service %{_unitdir}/zabbix-proxy.service

%preun proxy-sqlite3
if [ $1 -eq 0 ] ; then
    /bin/systemctl --no-reload disable zabbix-proxy-sqlite3.service > /dev/null 2>&1 || :
    /bin/systemctl stop zabbix-proxy-sqlite3.service > /dev/null 2>&1 || :
fi

%postun proxy-sqlite3
/bin/systemctl daemon-reload >/dev/null 2>&1 || :
if [ $1 -ge 1 ] ; then
    /bin/systemctl try-restart zabbix-proxy-sqlite3.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package web
Summary:	Zabbix Web Frontend
Group:		Monitoring
Requires:	php
Requires:	php-gd
Requires:	php-bcmath
Requires:	php-mbstring
Requires:	php-xml
Requires:	php-gettext
Requires:	fonts-ttf-dejavu
Requires:	%{name} = %{EVRD}
Requires:	%{name}-web-database = %{EVRD}
BuildArch:	noarch

%description web
The php frontend to display the Zabbix web interface.

%files web
%dir %attr(0750,apache,apache) %{_sysconfdir}/%{srcname}/web
%ghost %attr(0644,apache,apache) %config(noreplace) %{_sysconfdir}/%{srcname}/web/zabbix.conf.php
%config(noreplace) %{_sysconfdir}/httpd/conf.d/zabbix.conf
%{_datadir}/%{srcname}

#----------------------------------------------------------------------------

%package web-mysql
Summary:	Zabbix web frontend for MySQL
Group:		Monitoring
Requires:	%{name}-web = %{EVRD}
Requires:	php-mysql
Provides:	%{name}-web-database = %{EVRD}
Conflicts:	%{name}-web-pgsql
Conflicts:	%{name}-web-sqlite3
BuildArch:	noarch

%description web-mysql
Zabbix web frontend for MySQL.

%files web-mysql

#----------------------------------------------------------------------------

%package web-pgsql
Summary:	Zabbix web frontend for PostgreSQL
Group:		Monitoring
Requires:	%{name}-web = %{EVRD}
Requires:	php-pgsql
Provides:	%{name}-web-database = %{EVRD}
Conflicts:	%{name}-web-mysql
Conflicts:	%{name}-web-sqlite3
BuildArch:	noarch

%description web-pgsql
Zabbix web frontend for PostgreSQL.

%files web-pgsql

#----------------------------------------------------------------------------

%package web-sqlite3
Summary:	Zabbix web frontend for SQLite
Group:		Monitoring
Requires:	%{name}-web = %{EVRD}
# Need to use the same db file as the server
Requires:	%{name}-server-sqlite3 = %{EVRD}
Provides:	%{name}-web-database = %{EVRD}
Conflicts:	%{name}-web-mysql
Conflicts:	%{name}-web-pgsql
BuildArch:	noarch

%description web-sqlite3
Zabbix web frontend for SQLite.

%files web-sqlite3

#----------------------------------------------------------------------------

%prep
%setup0 -q -n %{srcname}-%{version}
%patch0 -p1
%patch1 -p1
%patch3 -p1

# remove bundled java libs
rm -rf src/zabbix_java/lib/*.jar

# remove included fonts
rm -rf frontends/php/fonts

# remove executable permissions
chmod a-x upgrades/dbpatches/*/mysql/upgrade

# All libraries are expected in /usr/lib or /usr/local/lib
# https://support.zabbix.com/browse/ZBXNEXT-1296
sed -i.orig -e 's|_LIBDIR=/usr/lib|_LIBDIR=%{_libdir}|g' \
    configure

# kill off .htaccess files, options set in SOURCE1
rm -f frontends/php/include/.htaccess
rm -f frontends/php/api/.htaccess
rm -f frontends/php/conf/.htaccess

# set timestamp on modified config file and directories
touch -r frontends/php/css.css frontends/php/include/config.inc.php \
    frontends/php/include/defines.inc.php \
    frontends/php/include \
    frontends/php/include/classes

# remove prebuilt Windows binaries
rm -rf bin

# remove flash applet
# https://support.zabbix.com/browse/ZBX-4794
rm -f frontend/php/images/flash/zbxclock.swf
%patch2 -p1

%build
common_flags="
    --enable-dependency-tracking
    --enable-server
    --enable-agent
    --enable-proxy
    --enable-ipv6
    --disable-java
    --with-net-snmp
    --with-ldap
    --with-libcurl
    --with-openipmi
    --with-jabber
    --with-unixodbc
    --with-ssh2
"

%configure $common_flags --with-mysql
%make
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_mysql
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_mysql

%configure $common_flags --with-postgresql
%make
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_pgsql
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_pgsql

%configure $common_flags --with-sqlite3
%make
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_sqlite3
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_sqlite3

touch src/zabbix_server/zabbix_server
touch src/zabbix_proxy/zabbix_proxy


%install
# set up some required directories
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}/externalscripts
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}/web
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_localstatedir}/lib/%{srcname}
mkdir -p %{buildroot}%{_localstatedir}/log/%{srcname}
mkdir -p %{buildroot}%{_localstatedir}/run/%{srcname}

# install the frontend
cp -a frontends/php %{buildroot}%{_datadir}/%{srcname}

# prepare ghosted config file
touch %{buildroot}%{_sysconfdir}/%{srcname}/web/zabbix.conf.php

# drop Apache config file in place
install -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{srcname}.conf

# fix config file options
sed -i \
    -e 's|# PidFile=.*|PidFile=%{_localstatedir}/run/%{srcname}/zabbix_agentd.pid|g' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/%{srcname}/zabbix_agentd.log|g' \
    -e 's|# LogFileSize=.*|LogFileSize=0|g' \
    conf/zabbix_agentd.conf

sed -i \
    -e 's|# PidFile=.*|PidFile=%{_localstatedir}/run/%{srcname}/zabbix.pid|g' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/%{srcname}/zabbix_server.log|g' \
    -e 's|# LogFileSize=.*|LogFileSize=0|g' \
    -e 's|# AlertScriptsPath=/home/zabbix/bin/|AlertScriptsPath=%{_localstatedir}/lib/%{srcname}/|g' \
    -e 's|^DBUser=root|DBUser=zabbix|g' \
    -e 's|# DBSocket=/tmp/mysql.sock|DBSocket=%{_localstatedir}/lib/mysql/mysql.sock|g' \
    conf/zabbix_server.conf

sed -i \
    -e 's|# PidFile=.*|PidFile=%{_localstatedir}/run/%{srcname}/zabbix_proxy.pid|g' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/%{srcname}/zabbix_proxy.log|g' \
    -e 's|# LogFileSize=.*|LogFileSize=0|g' \
    -e 's|# AlertScriptsPath=/home/zabbix/bin/|AlertScriptsPath=%{_localstatedir}/lib/%{srcname}/|g' \
    -e 's|^DBUser=root|DBUser=zabbix|g' \
    -e 's|# DBSocket=/tmp/mysql.sock|DBSocket=%{_localstatedir}/lib/mysql/mysql.sock|g' \
    conf/zabbix_proxy.conf

# install log rotation
cat %{SOURCE5} | sed -e 's|COMPONENT|server|g' > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix-server
cat %{SOURCE5} | sed -e 's|COMPONENT|agentd|g' > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix-agent
cat %{SOURCE5} | sed -e 's|COMPONENT|proxy|g' > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix-proxy

# systemd units
install -m 0644 -p %{SOURCE10} %{buildroot}%{_unitdir}/zabbix-agent.service
install -m 0644 -p %{SOURCE11} %{buildroot}%{_unitdir}/zabbix-proxy-mysql.service
install -m 0644 -p %{SOURCE12} %{buildroot}%{_unitdir}/zabbix-proxy-pgsql.service
install -m 0644 -p %{SOURCE13} %{buildroot}%{_unitdir}/zabbix-proxy-sqlite3.service
install -m 0644 -p %{SOURCE14} %{buildroot}%{_unitdir}/zabbix-server-mysql.service
install -m 0644 -p %{SOURCE15} %{buildroot}%{_unitdir}/zabbix-server-pgsql.service
install -m 0644 -p %{SOURCE16} %{buildroot}%{_unitdir}/zabbix-server-sqlite3.service
touch %{buildroot}%{_unitdir}/zabbix-proxy.service
touch %{buildroot}%{_unitdir}/zabbix-server.service

# install
make DESTDIR=%{buildroot} install
rm %{buildroot}%{_sbindir}/zabbix_server
install -m 0755 -p src/zabbix_server/zabbix_server_* %{buildroot}%{_sbindir}/
rm %{buildroot}%{_sbindir}/zabbix_proxy
install -m 0755 -p src/zabbix_proxy/zabbix_proxy_* %{buildroot}%{_sbindir}/

# install compatibility links for config files
ln -sf %{_sysconfdir}/zabbix_agent.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agent.conf
ln -sf %{_sysconfdir}/zabbix_agentd.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agentd.conf
ln -sf %{_sysconfdir}/zabbix_server.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_server.conf
ln -sf %{_sysconfdir}/zabbix_proxy.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_proxy.conf

# nuke static libs and empty oracle upgrade sql
rm -rf %{buildroot}%{_libdir}/libzbx*.a

# copy sql files to appropriate per package locations
for pkg in proxy server ; do
    docdir=%{buildroot}%{_docdir}/%{srcname}-$pkg-mysql-%{version}
    install -dm 755 $docdir
    cp -p --parents database/mysql/schema.sql $docdir
    cp -p --parents database/mysql/data.sql $docdir
    cp -p --parents database/mysql/images.sql $docdir
    cp -pR --parents upgrades/dbpatches/1.6/mysql $docdir
    cp -pR --parents upgrades/dbpatches/1.8/mysql $docdir
    cp -pR --parents upgrades/dbpatches/2.0/mysql $docdir
    docdir=%{buildroot}%{_docdir}/%{srcname}-$pkg-pgsql-%{version}
    install -dm 755 $docdir
    cp -p --parents database/postgresql/schema.sql $docdir
    cp -p --parents database/postgresql/data.sql $docdir
    cp -p --parents database/postgresql/images.sql $docdir
    cp -pR --parents upgrades/dbpatches/1.6/postgresql $docdir
    cp -pR --parents upgrades/dbpatches/1.8/postgresql $docdir
    cp -pR --parents upgrades/dbpatches/2.0/postgresql $docdir
    docdir=%{buildroot}%{_docdir}/%{srcname}-$pkg-sqlite3-%{version}
    install -dm 755 $docdir
    cp -p --parents database/sqlite3/schema.sql $docdir
    cp -p --parents database/sqlite3/data.sql $docdir
    cp -p --parents database/sqlite3/images.sql $docdir
done
# remove extraneous ones
rm -rf %{buildroot}%{_datadir}/%{srcname}/create

# systemd must create /var/run/%{srcname}
mkdir -p %{buildroot}%{_sysconfdir}/tmpfiles.d
install -m 0644 %{SOURCE9} %{buildroot}%{_sysconfdir}/tmpfiles.d/zabbix.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11742 |21cr|zam-plugins-3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package	%{nil}

# The DPF git HEAD used in Source1
# (always update it when updating the package)
%define	commit 8401d865cd9fce9edbeb9c653420bc0f8a39358c

Summary:	A collection of LV2/LADSPA/JACK audio plugins
Name:		zam-plugins
Version:	3.14
Release:	1
License:	GPLv2+ and ISC
Group:		Sound
Url:		http://www.zamaudio.com/
# The sources from Github don't include the DPF sub-module ones:
# use the master git HEAD from it as Source1
Source0:	https://github.com/zamaudio/%{name}/archive/%{name}-%{version}.tar.gz
Source1:	https://github.com/DISTRHO/DPF/archive/DPF-master.zip
# This package does not build on all arches with upstream build flags.
# These are realtime audio plugins, so we need the fastest possible math;
# flags for x86_64 are set to be compatible with most AMD and Intel CPUs,
# and to use the best possible SIMD instruction set.
Patch0:		zam-plugins-3.13-fix-compile-flags.patch
BuildRequires:	ladspa-devel
BuildRequires:	libzita-convolver-devel >= 4.0.3
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fftw3) >= 3.3.5
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(x11)

%description
A collection of LV2/LADSPA/VST/JACK audio plugins for sound processing
developed in-house at ZamAudio.

%files
%doc dpf/LICENSE NOTICE.DPF NOTICE.SFZero README.md
%{_bindir}/Za*

#-----------------------------------------------------------------------------

%package -n %{name}-ladspa
Summary:	A collection of LV2/LADSPA/JACK audio plugins - LADSPA version
Requires:	ladspa

%description -n %{name}-ladspa
A collection of LV2/LADSPA/VST/JACK audio plugins for sound processing
developed in-house at ZamAudio.
This package contains the LADSPA version of plugins.

%files -n %{name}-ladspa
%{_libdir}/ladspa/Za*-ladspa.so

#-----------------------------------------------------------------------------

%package -n %{name}-lv2
Summary:	A collection of LV2/LADSPA/JACK audio plugins - LV2 version
Requires:	lv2 >= 1.8.1

%description -n %{name}-lv2
A collection of LV2/LADSPA/VST/JACK audio plugins for sound processing
developed in-house at ZamAudio.
This package contains the LV2 version of plugins.

%files -n %{name}-lv2
%{_libdir}/lv2/*

#-----------------------------------------------------------------------------

%package -n %{name}-vst
Summary:	A collection of LV2/LADSPA/JACK audio plugins - VST version

%description -n %{name}-vst
A collection of LV2/LADSPA/VST/JACK audio plugins for sound processing
developed in-house at ZamAudio.
This package contains the VST version of plugins.

%files -n %{name}-vst
%{_libdir}/vst/Za*-vst.so

#-----------------------------------------------------------------------------

%prep
%setup -q -a1
# Put the submodule DPF sources in the right spot in the main source directory
rmdir dpf
mv DPF-master dpf

%patch0 -p1


%build
%setup_compile_flags
%make PREFIX=%{_prefix} LIBDIR=%{_lib} USE_SYSTEM_LIBS=1 

 
%install
%makeinstall_std PREFIX=%{_prefix} LIBDIR=%{_lib} USE_SYSTEM_LIBS=1

# Fix perms
find %{buildroot}%{_libdir}/lv2/ -name "*.ttl" | xargs chmod -x

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11743 |21cr|zanshin-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Getting Things Done application for Plasma desktop
Name:		zanshin
Version:	23.08.4
Release:	1
License:	GPLv2+ and GPLv3+
Group:		Graphical desktop/KDE
Url:		https://zanshin.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadicalendar-devel
BuildRequires:	kf5akonadinotes-devel
BuildRequires:	kf5akonadisearch-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	akonadi-calendar-tools
Requires:	plasma5-kdepim-runtime
Recommends:	plasma5-kdepim-addons

%description
A Getting Things Done application which aims at getting your mind like water.

%files -f %{name}.lang
%doc AUTHORS README.md HACKING TODO
%{_kde5_applicationsdir}/org.kde.zanshin.desktop
%{_kde5_bindir}/zanshin
%{_kde5_bindir}/zanshin-migrator
%{_kde5_iconsdir}/hicolor/*/apps/zanshin.*
%{_kde5_xmlguidir}/zanshin/
%{_datadir}/metainfo/org.kde.zanshin.metainfo.xml
%{_kde5_plugindir}/krunner/org.kde.zanshin.so
%{_qt5_plugindir}/zanshin_part.so
%{_qt5_plugindir}/pim5/kontact/kontact_zanshinplugin.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11744 |21cr|zapata-1.4.12.1-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 1.0
%define libname %mklibname tonezone %{major}
%define devname %mklibname zap -d

Summary:	Zapata Telecom Library
Name:		zapata
Version:	1.4.12.1
Release:	23
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.asterisk.org/
Source0:	zaptel-%{version}.tar.gz
Source1:	autoconf.h
Source2:	http://downloads.digium.com/pub/telephony/firmware/releases/zaptel-fw-oct6114-064-1.05.01.tar.gz
Source3:	http://downloads.digium.com/pub/telephony/firmware/releases/zaptel-fw-oct6114-128-1.05.01.tar.gz
Source4:	http://downloads.digium.com/pub/telephony/firmware/releases/zaptel-fw-tc400m-MR6.12.tar.gz
Source5:	http://downloads.digium.com/pub/telephony/firmware/releases/zaptel-fw-vpmadt032-1.07.tar.gz
Patch0:		zaptel-1.4.12.1-printf.diff
Patch1:		zaptel-1.4.12.1-makefile.diff
Patch2:		zaptel-1.4.12.1-firmware.diff
Patch3:		zapata-perl-vendorlib.patch
BuildRequires:	libtool
BuildRequires:	wget
BuildRequires:	kernel-devel
Requires(post,preun):	rpm-helper

%description
The Zapata library implements function calls allowing the user
easy access to the telephony functionality.

%files
%{_sysconfdir}/zaptel.conf
%{_initrddir}/zaptel
%{_sysconfdir}/sysconfig/zaptel
/sbin/ztcfg
/sbin/ztmonitor
/sbin/ztscan
/sbin/ztspeed
/sbin/zttest
%{_sbindir}/genzaptelconf
%{_sbindir}/lszaptel
%{_sbindir}/zaptel_hardware
%{_sbindir}/zapconf
%{_sbindir}/zt_registration
%{_mandir}/man8/genzaptelconf.8.xz
%{_mandir}/man8/lszaptel.8.xz
%{_mandir}/man8/zapconf.8.xz
%{_mandir}/man8/zaptel_hardware.8.xz
%{_mandir}/man8/zt_registration.8.xz
%{_mandir}/man8/ztcfg.8.xz
%{_mandir}/man8/ztmonitor.8.xz
%{_mandir}/man8/ztscan.8.xz
%{_mandir}/man8/ztspeed.8.xz
%{_mandir}/man8/zttest.8.xz
%{_datadir}/zaptel/FPGA_1141.hex
%{_datadir}/zaptel/FPGA_1151.hex
%{_datadir}/zaptel/FPGA_FXS.hex
%{_datadir}/zaptel/USB_FW.hex
%{_datadir}/zaptel/init_card_1_30
%{_datadir}/zaptel/init_card_2_30
%{_datadir}/zaptel/init_card_3_30
%{_datadir}/zaptel/init_card_4_30
%{_datadir}/zaptel/init_fxo_modes

%post
%_post_service zaptel

%preun
%_preun_service zaptel

#----------------------------------------------------------------------------

%package firmware
Summary:	Shared Zapata Telecom Library
Group:		System/Libraries

%description firmware
The Zapata library implements function calls allowing the user
easy access to the telephony functionality.  These are firmware files.

%files firmware
/lib/firmware/zaptel*
/usr/lib/hotplug/firmware/zaptel*

#----------------------------------------------------------------------------

%package tools
Summary:	Shared Zapata Telecom Library
Group:		Communications

%description tools
The Zapata library implements function calls allowing the user
easy access to the telephony functionality.  These are tools files.

%files tools
/sbin/fxotune
%{_sbindir}/xpp_blink
%{_sbindir}/xpp_sync
%{_datadir}/zaptel/xpp_fxloader
%{_mandir}/man8/xpp_blink.8.xz
%{_mandir}/man8/xpp_sync.8.xz
%{_mandir}/man8/fxotune.8.xz
%{_udevrulesdir}/xpp.rules
%{_sysconfdir}/hotplug/usb/xpp_fxloader
%{_sysconfdir}/hotplug/usb/xpp_fxloader.usermap

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared Zapata Telecom Library
Group:		System/Libraries
Conflicts:	%{_lib}zap1.0 < 1.4.12.1-20
Obsoletes:	%{_lib}zap1.0 < 1.4.12.1-20

%description -n %{libname}
The Zapata library implements function calls allowing the user
easy access to the telephony functionality.

%files -n %{libname}
%{_libdir}/libtonezone.so.%{api}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Zapata Telecom Library development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libzap-devel = %{EVRD}

%description -n %{devname}
The Zapata library implements function calls allowing the user
easy access to the telephony functionality.

This package contains the development library and its header
files for the Zapata Telecom Library.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package -n perl-%{name}
Summary:	Zapata Telecom Library perl files
Group:		Development/Perl
Provides:	%{name}-perl = %{EVRD}

%description -n perl-%{name}
The Zapata library implements function calls allowing the user
easy access to the telephony functionality.

This package contains the perl library and its header
files for the Zapata Telecom Library.

%files -n perl-%{name}
%{perl_vendorlib}/Zaptel.pm
%{perl_vendorlib}/Zaptel

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n zaptel-%{version}

cp %{SOURCE1} .

#install firmware
pushd firmware
tar -xvzf %{SOURCE2}
tar -xvzf %{SOURCE3}
tar -xvzf %{SOURCE4}
tar -xvzf %{SOURCE5}
cp %{SOURCE2} ./
cp %{SOURCE3} ./
cp %{SOURCE4} ./
cp %{SOURCE5} ./
popd

%build
%configure

%make \
	CFLAGS="%{optflags} -fPIC -DPIC -D_REENTRANT -Iinclude -DSTANDALONE_ZAPATA -DZAPTEL_CONFIG=\"zaptel.conf\" -DCONFIG_FILENAME\"zaptel.conf\"" \
	libdir=%{_libdir}

%install
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m0644 zaptel.conf.sample %{buildroot}%{_sysconfdir}/zaptel.conf
install -m0755 zaptel.init %{buildroot}%{_initrddir}/zaptel
install -m0644 zaptel.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/zaptel

%makeinstall_std \
	libdir=%{_libdir} \
	includedir=%{_includedir} \
	HOTPLUG_FIRMWARE=yes \
	DOWNLOAD=no

# (cg) Fix udev rules location
mkdir -p %{buildroot}/lib
mv %{buildroot}%{_sysconfdir}/udev %{buildroot}/lib/
# do not pack it
# it conflicts with tonezone-devel
rm -f %{buildroot}%{_libdir}/libtonezone.so

#cleanup
find %{buildroot}/lib/firmware/ -maxdepth 1 -type f -name ".*" -delete 
find %{buildroot}/usr/lib/hotplug/firmware/ -maxdepth 1 -type f -name ".*" -delete 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11745 |21cr|zathura-0.4.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight document viewer
Name:		zathura
Version:	0.4.9
Release:	1
License:	zlib
Group:		Publishing
Url:		https://pwmt.org/projects/zathura/
Source0:	https://pwmt.org/projects/zathura/download/zathura-%{version}.tar.xz
BuildRequires:	check-devel
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	magic-devel
BuildRequires:	python3-sphinx
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(girara-gtk3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(synctex)
# data/meson.build looks for them
BuildRequires:	%{_bindir}/appstream-util
BuildRequires:	%{_bindir}/desktop-file-validate
BuildRequires:	%{_bindir}/glib-compile-resources
BuildRequires:	%{_bindir}/rsvg-convert
Recommends:	%{name}-plugins
# NOT Recommends, but Suggests; prefer poppler backend over mupdf
Suggests:	zathura-pdf-poppler

%description
Zathura is a highly customizable and functional document viewer.
It provides a minimalistic and space saving interface as well as
an easy usage that mainly focuses on keyboard interaction.

Zathura requires plugins to support document formats. For instance:
  * zathura-pdf-poppler to open PDF files,
  * zathura-ps to open PostScript files,
  * zathura-djvu to open DjVu files.

All of these are available as separate packages.

A zathura-plugins meta-package is available if you want
to install all available plugins.

%files -f %{name}.lang
%license LICENSE
%doc README.md
%dir %{_libdir}/%{name}
%{_bindir}/%{name}
%{_mandir}/man*/*
%{_datadir}/applications/org.pwmt.zathura.desktop
%{_datadir}/icons/hicolor/*/apps/org.pwmt.zathura.png
%{_datadir}/icons/hicolor/*/apps/org.pwmt.zathura.svg
%{_datadir}/metainfo/org.pwmt.zathura.appdata.xml
%{_datadir}/dbus-1/interfaces/org.pwmt.zathura.xml
%{_datadir}/bash-completion/completions/zathura
%{_datadir}/fish/vendor_completions.d/zathura.fish
%{_datadir}/zsh/site-functions/_zathura

#------------------------------------------------------------------

%package devel
Summary:	Development files for the zathura PDF viewer
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(girara-gtk3)

%description devel
This package contains the development files for the zathura PDF viewer.

%files devel
%license LICENSE
%doc README.md
%{_includedir}/zathura
%{_libdir}/pkgconfig/zathura.pc

#------------------------------------------------------------------

%package plugins
Summary:	Meta-package for all Zathura plugins
Group:		Publishing
Recommends:	zathura-djvu
Recommends:	zathura-pdf-poppler
Recommends:	zathura-ps

%description plugins
This package provides all Zathura plugins.

%files plugins

#------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
	-Dsynctex=enabled \
	-Dsqlite=enabled \
	-Dmagic=enabled \
	-Dseccomp=enabled \
	-Dtests=enabled
%meson_build

%install
%meson_install

# make and own directory for plugins
mkdir -p %{buildroot}%{_libdir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11746 |21cr|zathura-djvu-0.2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined %{nil}

Summary:	DjVu support for zathura
Name:		zathura-djvu
Version:	0.2.9
Release:	1
Group:		Publishing
License:	zlib
Url:		http://pwmt.org/projects/zathura/plugins/%{name}
Source0:	https://pwmt.org/projects/zathura-djvu/download/zathura-djvu-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:  pkgconfig(zathura) >= 0.2.3
Requires:	zathura%{_isa}

%description
The zathura-djvu plugin adds DjVu support to zathura by
using the djvulibre library.

%files
%license LICENSE
%doc AUTHORS
%{_libdir}/zathura/libdjvu.so
%{_datadir}/applications/org.pwmt.zathura-djvu.desktop
%{_datadir}/metainfo/org.pwmt.zathura-djvu.metainfo.xml

#----------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11747 |21cr|zathura-pdf-poppler-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined %nil

Name:		zathura-pdf-poppler
Version:	0.3.0
Release:	1
Summary:	PDF support for zathura via poppler
Group:		Publishing
License:	zlib
URL:		http://pwmt.org/projects/zathura/plugins/%{name}
Source0:	https://pwmt.org/projects/zathura-pdf-poppler/download/zathura-pdf-poppler-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(zathura)
BuildRequires:	pkgconfig(poppler-glib)
Requires:	zathura%{_isa}

%description
The zathura-pdf-poppler plugin adds PDF support to zathura by using
the poppler rendering engine.

%files
%license LICENSE
%doc AUTHORS
%{_libdir}/zathura/libpdf-poppler.so
%{_datadir}/applications/org.pwmt.zathura-pdf-poppler.desktop
%{_datadir}/metainfo/org.pwmt.zathura-pdf-poppler.metainfo.xml

#----------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11748 |21cr|zathura-ps-0.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined %{nil}

Summary:	PS support for zathura via libspectre
Name:		zathura-ps
Version:	0.2.7
Release:	1
Group:		Publishing
License:	zlib
Url:		http://pwmt.org/projects/zathura/plugins/%{name}
Source0:	https://pwmt.org/projects/zathura-ps/download/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(zathura)
Requires:	zathura%{_isa}

%description
The zathura-ps plugin adds PostScript support to zathura by
using the libspectre library.

%files
%license LICENSE
%doc AUTHORS
%{_libdir}/zathura/libps.so
%{_datadir}/applications/org.pwmt.zathura-ps.desktop
%{_datadir}/metainfo/org.pwmt.zathura-ps.metainfo.xml

#---------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11749 |21cr|zaz-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        A puzzle game where the player has to arrange balls in triplets
Name:           zaz
Version:        1.0.1
Release:        1
Group:          Games/Arcade
# Music released under CC-BY-SA
License:        GPLv3+ and CC-BY-SA
URL:            http://sourceforge.net/projects/zaz/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(SDL_image)
BuildRequires:  pkgconfig(theora)
BuildRequires:  pkgconfig(vorbis)
BuildRequires:  pkgconfig(ftgl)
BuildRequires:  gettext
BuildRequires:  desktop-file-utils

%description
Zaz is an arcade action puzzle game where the goal is to get rid of all 
incoming balls by rearranging their order and making triplets.
It currently includes 6 different levels. The game's name is recursive and 
stands for "Zaz ain't Z".

A 3D accelerator is needed for decent game play.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING data/copyright.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm

#-------------------------------------------------------------------------------

%prep
%setup -q
rm -fr win32.zip

# Fix permissions
chmod 644 src/*.{cpp,h}

%build
export LDFLAGS="$LDFLAGS -lvorbis"
%configure
%make

%install
%makeinstall_std

# Remove docs
rm -fr %{buildroot}%{_defaultdocdir}

# Fix desktop file
desktop-file-install \
   --delete-original \
   --add-category LogicGame \
   --dir %{buildroot}%{_datadir}/applications/ \
   %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11750 |21cr|zbar-0.23.93-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname %{name} %{major}
%define	libgtk	%mklibname %{name}gtk %{major}
%define	libqt	%mklibname %{name}qt %{major}
%define	devname	%mklibname -d %{name}

Name:		zbar
Summary:	Bar Code Reader software suite for reading bar codes from various sources
Version:	0.23.93
Release:	2
License:	GPLv2+
Group:		Graphics
# See also https://linuxtv.org/downloads/zbar
URL:		https://github.com/mchehab/zbar
Source0:	https://linuxtv.org/downloads/zbar/%{name}-%{version}.tar.gz
# From Debian
Patch1:		0001-Properly-set-perl-script-shebang.patch
Patch2:		0002-configure.ac-Do-not-use-hardcoded-pkg-config-command.patch
Patch3:		0003-configure.ac-Use-old-way-to-detect-Qt5.patch
BuildRequires:	git
BuildRequires:	pkgconfig(python3)
# for better camera support
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	xmlto
BuildRequires:	imagemagick-devel
BuildRequires:	graphicsmagick-devel
Requires:	graphicsmagick

%description
ZBar Bar Code Reader is an open source software suite for reading bar
codes from various sources, such as video streams, image files and raw
intensity sensors. It supports EAN-13/UPC-A, UPC-E, EAN-8, Code 128,
Code 39, Interleaved 2 of 5 and QR Code.  Included with the library
are basic applications for decoding captured bar code images and using
a video device (eg, webcam) as a bar code scanner.  For application
developers, language bindings are included for C, C++, Python and Perl
as well as GUI widgets for Qt, GTK and PyGTK.

%files -f %{name}.lang
%{_bindir}/zbarcam
%{_bindir}/zbarimg
%{_sysconfdir}/dbus-1/system.d/org.linuxtv.Zbar.conf
%doc %{_datadir}/doc/%{name}/*
%{_mandir}/man1/zbarcam.1*
%{_mandir}/man1/zbarimg.1*

#-----------------------------------------------------------

%package qt
Summary:	Qt frontend for the ZBar barcode reader
Group:		Graphics

%description qt
Qt frontend for the ZBar barcode reader

%files qt
%{_bindir}/zbarcam-qt

#-----------------------------------------------------------

%package gtk
Summary:	Gtk frontend for the ZBar barcode reader
Group:		Graphics

%description gtk
Gtk frontend for the ZBar barcode reader

%files gtk
%{_bindir}/zbarcam-gtk

#-----------------------------------------------------------

%package -n	%{libname}
Summary:	ZBAR Libraries
Group:		System/Libraries
	
%description -n	%{libname}
Libraries for the ZBar Bar Code Reader

%files -n %{libname}
%{_libdir}/libzbar.so.%{major}*

#-----------------------------------------------------------

%package -n	%{libgtk}
Summary:	ZBAR Libraries
Group:		System/Libraries

%description -n	%{libgtk}
Libraries for the ZBar Bar Code Reader

%files -n %{libgtk}
%{_libdir}/libzbargtk.so.%{major}*
%{_libdir}/girepository-1.0/ZBar-1.0.typelib
%{_datadir}/gir-1.0/ZBar-1.0.gir

#-----------------------------------------------------------

%package -n	%{libqt}
Summary:	ZBAR Libraries
Group:		System/Libraries

%description -n	%{libqt}
Libraries for the ZBar Bar Code Reader

%files -n %{libqt}
%{_libdir}/libzbarqt.so.%{major}*

#-----------------------------------------------------------
%package -n	python-%{name}
Summary:	Python bindings for ZBAR
Group:		Development/Python
%rename python3-%{name}

%description -n	python-%{name}
Python bindings for the ZBar Bar Code Reader

%files -n	python-%{name}
%{python3_sitearch}/zbar.so
#-----------------------------------------------------------

%package -n	%{devname}
Summary:	ZBAR Development headers and libraries
Group:		Development/Other
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}
Requires:	%{libgtk} = %{version}
Requires:	%{libqt} = %{version}

%description -n	%{devname}
Development headers and libraries for the ZBar Bar Code Reader


%files -n %{devname}
%{_includedir}/zbar.h
%dir %{_includedir}/zbar
%{_includedir}/zbar/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libzbar.so
%{_libdir}/libzbargtk.so
%{_libdir}/libzbarqt.so

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure	\
	--with-imagemagick \
	--without-java \
	--with-python=python3

%make_build

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11751 |21cr|zboy-0.71-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Nintendo GameBoy Emulator
Name:		zboy
Version:	0.71
Release:	2
License:	GPLv3
Group:		Emulators
Url:		http://zboy.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
Source1:	%{name}-16.png
Source2:	%{name}-32.png
Source3:	%{name}-48.png
Source4:	%{name}-64.png
Source5:	%{name}-96.png
Source6:	%{name}-128.png
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(sdl2)

%description
zBoy is a multiplatform GameBoy emulator that provides a load/save feature,
can perform PCX screenshots either manually or automatically (every few
seconds) and emulates an internal battery for ROMs that were designed to use
one (this allows to use the internal save option provided by such games,
remember highest scores, etc).

zBoy supports some additionnal features, too, like intelligent saving of
hi-scores for some games that aren't able to save their hi-scores table by
themselves because of the lack of a battery-backed RAM on the cartridge, and
improving screen's resolution output using graphic algorithms like Scale2x,
Scale3x, eagle... Here you can see a comparison between graphic algorithms
supported by zBoy. This is also one of the very few GameBoy emulators that
provides a 2-gameboys link emulation, which makes it possible to play some
games in 2-players mode on a LAN.

zBoy allows to play GameBoy games using a keyboard or a joypad (or both).

Since 0.52 zBoy features GTK3 GUI.

%files
%doc zboy.txt history.txt todo.txt
%license license.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp Makefile.linux Makefile

%build
%setup_compile_flags
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}/%{name}

# icons
install -D %{SOURCE1} -m 644 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D %{SOURCE2} -m 644 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D %{SOURCE3} -m 644 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -D %{SOURCE4} -m 644 %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D %{SOURCE5} -m 644 %{buildroot}%{_iconsdir}/hicolor/96x96/apps/%{name}.png
install -D %{SOURCE6} -m 644 %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Version=1.0
Name=zBoy
Comment=Nintendo GameBoy Emulator
Type=Application
Exec=%{name}
Icon=%{name}
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11752 |21cr|zcad-0.9.15.0-2.be21aaa
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit be21aaa1d92f9d993d31698496525ac7503c33e5
%define shortcommit %(c=%{commit}; echo ${c:0:7})

Summary(ru_RU.UTF-8): Система автоматизированного проектирования общего назначения
Summary: General purpose CAD system
Name: zcad
Version: 0.9.15.0
Release: 2.%{shortcommit}
License: GPLv3+
Group: Graphics
URL: https://github.com/zamtmn/zcad
Source0: https://github.com/zamtmn/%{name}/archive/%{zcadcommit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch: zcad_add_linux_debug_and_release_modes.patch
BuildRequires: fpc
BuildRequires: lazarus
BuildRequires: imagemagick
BuildRequires: pkgconfig(dri)
BuildRequires: qt5pas-devel

ExclusiveArch:  x86_64

%description
ZCAD is a CAD program written in FreePascal/Lazarus. It supports DXF file format
and provides various CAD tools for 2D/3D design. The program includes features
for technical drawing, entity manipulation, and layer management.

%description -l ru_RU.UTF-8
ZCAD - это САПР программа, написанная на FreePascal/Lazarus. Поддерживает формат
файлов DXF и предоставляет различные инструменты САПР для 2D/3D проектирования.
Программа включает функции для технического черчения, манипулирования объектами
и управления слоями.

%files
%doc README.md
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

%prep
%setup -q -n %{name}-%{commit}

%patch -p1

# generate debug information
sed -i -e 's,$(LAZBUILD) --pcp=$(PCP) cad_source/zcad.lpi,$(LAZBUILD) --pcp=$(PCP) --bm=Debug_Linux_X86_64_qt5 cad_source/zcad.lpi,g' Makefile

%build
make installpkgstolaz
make cleanzcad

%install
mkdir -p %{buildroot}%{_libdir}/%{name}/
cp -r %{_builddir}/%{name}-%{commit}/cad/* %{buildroot}%{_libdir}/%{name}/
rm -rf %{buildroot}%{_libdir}/%{name}/bin/i386-win32
rm -rf %{buildroot}%{_libdir}/%{name}/bin/x86_64-win64

# turning off the "About" dialog box
sed -i -e 's,About,;About,g' %{buildroot}%{_libdir}/%{name}/preload/autorun.cmd

mkdir -p %{buildroot}%{_bindir}
ln -rs %buildroot%_libdir/%name/bin/x86_64-linux/%{name} %buildroot/%_bindir/%{name}

# install menu icons
for N in 16 32 48;
do
convert cad_source/%{name}.ico -scale ${N}x${N} $N.png;
install -D -m 0644 $N-0.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

mkdir -p %{buildroot}%{_datadir}/applications
# Create desktop file
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=ZCAD
Comment=General purpose CAD system
Comment[ru]=Система автоматизированного проектирования общего назначения
Exec=zcad
Icon=zcad
Terminal=false
Type=Application
Categories=Graphics;Engineering;
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11753 |21cr|zd1211-2.5.0.0-0.r85.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define build_dkms 1

%{?_with_dkms:%define build_dkms 1}
%{?_without_dkms:%define build_dkms 0}

%define	modname	%{name}
%define svnver	r85
%define	rel	0.%{svnver}.1

Name:		zd1211
Summary:	Userland tools for zd1211 driver
Version:	2.5.0.0
Release:	%{rel}
License:	GPL
Group:		System/Configuration/Hardware
URL:		http://zd1211.ath.cx/
Source0:	%{modname}-driver-%{svnver}.tar.xz

%if %build_dkms
Requires:	dkms-%{name} = %{version}
%endif

%description
Initially contributed by ZyDAS under the GPL license, this ZD1211 Linux
driver is actively maintained by the open source community.

%if %build_dkms
%package -n	dkms-%{name}
Summary:	DKMS-ready kernel-source for the ZyDAS ZD1211 kernel module
License:	GPL
Group:		System/Kernel and hardware
Requires(pre):	dkms
Requires(post): dkms
Requires:	%{name} = %{version}

%description -n dkms-%{name}
Linux drivers for ZyDAS ZD1211 802.11b/g USB WLAN chipset.
DKMS package for %{name} kernel module.
%endif

%prep
%setup -q -n %{modname}
find -type f |xargs chmod 644
rm -fr .svn src/.svn src/pHash
perl -i -pe 's/\r\n/\n/gs' sta



%build
gcc $RPM_OPT_FLAGS -o apdbg apdbg.c

%install
install -m755 -D apdbg %{buildroot}%{_sbindir}/apdbg

%if %build_dkms
mkdir -p $RPM_BUILD_ROOT/usr/src/%{modname}-%{version}-%{release}
cp -r * $RPM_BUILD_ROOT/usr/src/%{modname}-%{version}-%{release}
cat > %{buildroot}/usr/src/%{modname}-%{version}-%{release}/dkms.conf <<EOF

PACKAGE_VERSION="%{version}-%{release}"

# Items below here should not have to change with each driver version
PACKAGE_NAME="%{modname}"
MAKE[0]="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build modules ZD1211REV_B=0"
CLEAN="make -C \${kernel_source_dir} SUBDIRS=\${dkms_tree}/\${PACKAGE_NAME}/\${PACKAGE_VERSION}/build clean"
BUILT_MODULE_NAME[0]="\$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/kernel/drivers/usb/net/wireless"
REMAKE_INITRD="no"
EOF
%endif



%if %build_dkms
%post -n dkms-%{name}
dkms add     -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade
dkms build   -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade
dkms install -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade

%preun -n dkms-%{name}
dkms remove -m %{modname} -v %{version}-%{release} --rpm_safe_upgrade --all
%endif

%files
%defattr (-, root, root)
%doc sta copying
%{_sbindir}/apdbg

%if %build_dkms
%files -n dkms-%{name}
%doc copying
%defattr(-,root,root)
/usr/src/%{name}-%{version}-%{release}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11754 |21cr|zeal-0.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Offline documentation browser inspired by Dash
Name:		zeal
Version:	0.6.2
Release:	3
Group:		Development/Other
# the libqxt-sourced files are BSD licensed
License:	GPLv3+ and BSD
Url:		https://zealdocs.org
Source0:	https://github.com/zealdocs/zeal/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	git-core
BuildRequires:	desktop-file-utils
BuildRequires:  pkgconfig(sqlite3)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
Requires:	hicolor-icon-theme

%description
Zeal is a simple offline documentation browser inspired by Dash.

%files
%doc README.md COPYING
%{_bindir}/zeal
%{_datadir}/applications/org.zealdocs.zeal.desktop
%{_datadir}/icons/hicolor/*/apps/zeal.png
%{_appdatadir}/org.zealdocs.zeal.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11755 |21cr|zellij-0.31.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		crates_ver %{version}


Name:           zellij
Version:        0.31.4
Release:        1
Summary:        A terminal multiplexer
Group:          Terminals
License:        MIT
URL:            https://github.com/zellij-org/zellij
Source0:        https://github.com/zellij-org/zellij/v%{version}/%{name}-%{version}.tar.gz
# generated with cargo-vendor
Source1:        zellij-crates-%{version}.tar.xz

BuildRequires:  cargo
BuildRequires:  rust
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(openssl)

%description
Zellij is a workspace aimed at developers,
ops-oriented people and anyone who loves the terminal.
At its core, it is a terminal multiplexer
(similar to tmux and screen),
but this is merely its infrastructure layer.
Zellij includes a layout system, and a
plugin system allowing one to create plugins
in any language that compiles to WebAssembly.


%files
%doc *.md
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
#---------------------------

%prep
%autosetup -a1
%{__mv} %{name}-%{crates_ver}/* .
sed -i -e 's/@@VERSION@@/%{version}/' Cargo.lock

# use offline registry
export CARGO_HOME="$(pwd)/.cargo"

mkdir -p "$CARGO_HOME"

cat >.cargo/config <<EOF
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"

EOF

# fix some linting
pushd vendor/colored/src
find . -type f -name "*.rs" -exec chmod -x {} \;
popd
pushd vendor/generational-arena/src
find . -type f -name "*.rs" -exec chmod -x {} \;
popd


%build
# enable if need to debug build err
#export CARGO_HOME="$(pwd)/.cargo"
#RUSTFLAGS=-g cargo build --debug --all-targets --offline --frozen

%install
export CARGO_HOME="$(pwd)/.cargo"
RUSTFLAGS=-g cargo install --debug --all-features --offline --frozen \
    --no-track --root=%{buildroot}%{_prefix} --path .

#menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Type=Application
Name=%{name}
GenericName=%{name}
Comment=Command line access
Exec=%{name} %f
Icon=utilities-terminal
Categories=System;TerminalEmulator;
Keywords=terminal;console;script;run;execute;command;command-line;commandline;cli;
StartupNotify=true
Terminal=true

EOF



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11756 |21cr|zerofree-1.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to force unused ext2 inodes and blocks to zero
Name:		zerofree
Version:	1.0.3
Release:	3
License:	GPLv2+
Group:		File tools
Url:		http://intgat.tigress.co.uk/rmy/uml/
Source0:	http://intgat.tigress.co.uk/rmy/uml/%{name}-%{version}.tgz
Source1:	http://intgat.tigress.co.uk/rmy/uml/sparsify.c
Source2:	http://intgat.tigress.co.uk/rmy/uml/index.html
Source3:	zerofree.sgml
Source4:	zerofree.8
BuildRequires:	pkgconfig(ext2fs)

%description
zerofree is a utility to set unused filesystem inodes and blocks of an
ext2 filesystem to zero. This can improve the compressibility and
privacy of an ext2 filesystem.

This tool was inspired by the ext2fs privacy (i.e. secure deletion)
patch described in a Linux kernel mailing list thread.

WARNING: The filesystem to be processed should be unmounted or mounted
read-only. The tool tries to check this before running, but you
should be careful.

%files
%doc COPYING index.html
%{_sbindir}/zerofree
%{_sbindir}/sparsify
%{_mandir}/man8/zerofree.8*

#----------------------------------------------------------------------------

%prep
%setup -q
cp -p %{SOURCE1} .
cp -p %{SOURCE2} .

%build
%setup_compile_flags
%make
gcc %{optflags} sparsify.c -o sparsify -lext2fs

%install
install -D -p -m 755 zerofree %{buildroot}%{_sbindir}/zerofree
install -D -p -m 755 sparsify %{buildroot}%{_sbindir}/sparsify
install -D -p -m 644 %{SOURCE4} %{buildroot}%{_mandir}/man8/zerofree.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11757 |21cr|zero-install-0.1.27-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define vname %{name}-%{version}
%define LAZYFS_VERSION 0d1d26

%define _sysconfdir /etc

Name:           zero-install
Version:        0.1.27
Release:        14
Summary:        Removes the need to install software

Group:          System/Servers
License:        GPLv2+
URL:            http://0install.net/
Source0:        http://heanet.dl.sourceforge.net/sourceforge/zero-install/%{vname}.tar.gz.gpg
Patch0:         zero-install-0.1.26-build.patch.bz2
Patch1:         zero-install-0.1.26-initscript.patch.bz2
Patch2:         zero-install-0.1.26-noload.patch.bz2
# (fc) 0.1.27-4mdk fix build with latest dbus
Patch3:         zero-install-0.1.27-dbus050.patch.bz2
# (nl) 0.1.27-6mdv2007.0 fix build with dbus 0.91
Patch4:         zero-install-0.1.27-build-DBUS.patch
BuildRequires:  dbus-devel >= 0.20
BuildRequires:  gnupg
BuildRequires:  expat-devel
Requires(pre):  rpm-helper
Requires(post): rpm-helper
Requires(preun):rpm-helper
Requires(postun):rpm-helper
Requires:       gnupg 
Requires:       wget 
Requires:       bzip2 
Requires:       tar 
Requires:       gzip
Requires:       lazyfs = %{LAZYFS_VERSION}

%description
The Zero Install system removes the need to install software or libraries by
running all programs from a network filesystem. The filesystem in question is
the Internet as a whole, with an aggressive caching system to make it as fast
as (or faster than) traditional systems such as urpmi repositories, and to
allow for offline use. It doesn't require any central authority to maintain it,
and allows users to run software without needing a root password.

# -----------------------------------------------------------------------------

%prep
# We have to unpack manually because of using GPG
%setup -c -T
cd ..
gpg -o %{vname}.tar.gz %{SOURCE0} || echo Ignoring GPG error
tar --no-same-owner -xzf %{vname}.tar.gz
rm %{vname}.tar.gz
cd %name-%version
%patch0 -p1 -b .build
%patch1 -p1 -b .initscript
%patch2 -p1 -b .noload
%patch3 -p1 -b .dbus
%patch4 -p1 -b .dbus_091

# -----------------------------------------------------------------------------

%build
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/rc.d/init.d/
%configure --with-user=zeroinst --with-distcheck=yes --prefix=/ \
               --with-initdir=%{_sysconfdir}/rc.d/init.d/
%make

# -----------------------------------------------------------------------------

%install
rm -rf "$RPM_BUILD_ROOT"
mkdir "$RPM_BUILD_ROOT"
DESTDIR="$RPM_BUILD_ROOT" make install
mkdir -p "$RPM_BUILD_ROOT"/var/cache/zero-inst
mv $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/0install $RPM_BUILD_ROOT%{_sysconfdir}/rc.d/init.d/zero-install

# -----------------------------------------------------------------------------

%clean
rm -rf $RPM_BUILD_ROOT

# -----------------------------------------------------------------------------

%pre
# Add the "zeroinst" user
%_pre_useradd zeroinst /var/cache/zero-inst /sbin/nologin

%post
%_post_service zero-install

%preun
%_preun_service zero-install

%postun
%_postun_userdel zeroinst

# -----------------------------------------------------------------------------

%files
%defattr(-,root,root,-)
/bin/0run
/usr/bin/0refresh
/usr/sbin/zero-install
%{_sysconfdir}/rc.d/init.d/zero-install
%attr(755, zeroinst, root) %dir /var/cache/zero-inst
%doc NEWS README

# -----------------------------------------------------------------------------

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11758 |21cr|zeronet-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ZeroNet
%define gitrev c1fd2be8cfadf3e93ae70e3d9763875460bb81a3
%define gitdate 20161201

Summary:	Decentralized websites using Bitcoin crypto and BitTorrent network
Name:		zeronet
Version:	0.7.1
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		https://zeronet.io
# https://github.com/HelloZeroNet/ZeroNet
#Source0:	%%{oname}-%%{gitrev}.zip
Source0:	https://github.com/HelloZeroNet/ZeroNet/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source10:	%{name}_starttor
Source11:	%{name}_torrc
Source12:	%{name}_start
BuildRequires:	imagemagick
Requires:	python3egg(gevent) >= 1.1.0
Requires:	python3egg(msgpack) >= 0.4.4
Requires:	tor
BuildArch:	noarch

%description
ZeroNet is a decentralized Internet-like network of peer-to-peer users.
Sites have specific "ZeroNet URL"s which can be accessed through an ordinary
webbrowser when using the ZeroNet application, which acts as a local
webhost for such pages. ZeroNet is not anonymous by default, but users
can hide their IP address by using the built in Tor-functionality. ZeroNet
uses bitcoin cryptography and the BitTorrent network. The BitTorrent website
Play hosts a magnet link repository on ZeroNet, which links to copyrighted
content.

%files
%doc LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png
%dir %{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
#non build

%install
install -d %{buildroot}/{%{_bindir},%{_datadir}/{%{name},applications,pixmaps},%{_iconsdir}/hicolor/{16x16,32x32,24x24,48x48}/apps/%{name}}
install -d %{buildroot}/%{python3_sitelib}/%{name}/tools
install -Dm0755 start.py zeronet.py %{buildroot}/%{python3_sitelib}/%{name}
install -Dm0755 %{SOURCE10} %{buildroot}/%{python3_sitelib}/%{name}/tools/start.cmd
install -Dm0644 %{SOURCE11} %{buildroot}/%{python3_sitelib}/%{name}/tools/torrc
install -Dm0755 %{SOURCE12} %{buildroot}/%{_bindir}/%{name}
cp -r plugins src %{buildroot}%{python3_sitelib}/%{name}

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=ZeroNet
Name[ru]=Анонимная сеть ZeroNet
GenericName=ZeroNet
GenericName[ru]=ZeroNet
Comment=Decentralisations Internet
Comment[ru]=Децентрализованный Интернет
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Application;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert src/Ui/media/img/logo.psd[0] -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done
install -D -m 0644 32.png %{buildroot}%{_datadir}/pixmaps/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11759 |21cr|zerotier-one-1.8.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         debug %nil
%define         debug_package %nil

Name:           zerotier-one
Version:	1.8.10
Release:	1
Summary:	ZeroTier network virtualization service
Group:		Development/Other
License:	ZeroTier BSL 1.1
URL:		https://www.zerotier.com
Source0:	https://github.com/zerotier/ZeroTierOne/archive/%{version}/%{name}-%{version}.tar.gz
# make with command: 'cd zeroidc && cargo vendor' and tar.gz vendor directory
Source1:	vendor.tar.gz
Source10:	zerotier-one.sysusers.conf
# for use vendor directory for build
Patch0:		zerotier-use-vendor-archive.patch
BuildRequires:	pkgconfig(systemd)
BuildRequires:	openssl-devel
BuildRequires:	cmake
BuildRequires:	clang
BuildRequires:	cargo
Requires(pre):	/bin/systemd-sysusers

%description
ZeroTier is a software defined networking layer for Earth.

It can be used for on-premise network virtualization, as a peer to peer VPN
for mobile teams, for hybrid or multi-data-center cloud deployments, or just
about anywhere else secure software defined virtual networking is useful.

This is our OS-level client service. It allows Mac, Linux, Windows,
FreeBSD, and soon other types of clients to join ZeroTier virtual networks
like conventional VPNs or VLANs. It can run on native systems, VMs, or
containers (Docker, OpenVZ, etc.).

%files
%{_sbindir}/*
%{_mandir}/man8/*.xz
%{_mandir}/man1/*.xz
%attr(-,zerotier-one,zerotier-one) %{_localstatedir}/lib/%{name}/*
%{_unitdir}/%{name}.service
%{_sysusersdir}/%{name}.conf

%pre
%sysusers_create_package zerotier-one %{SOURCE10}

%post
%systemd_post zerotier-one.service

%preun
%systemd_preun zerotier-one.service

%postun
%systemd_postun_with_restart zerotier-one.service

#--------------------------------------------------------------------------------------------
%prep
%autosetup -p1 -n ZeroTierOne-%{version}

pushd zeroidc
tar -xf %{SOURCE1}
popd

%build
export CC=clang
export CXX=clang++
#make CFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" CXXFLAGS="`echo %{optflags} | sed s/stack-protector-strong/stack-protector/`" ZT_USE_MINIUPNPC=1 one manpages selftest
#cmake
%make ZT_USE_MINIUPNPC=1 one


%install
%makeinstall_std
install -Dm0644 debian/zerotier-one.service %{buildroot}%{_unitdir}/%{name}.service

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/%{name}.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11760 |21cr|zfo-editor-0.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		zfo-editor
Version:	0.3.2
Release:	5
Summary:	ZFO editor allows working with zfo forms 
License:	GPLv2
Group:		Office
URL:		http://labs.nic.cz/page/768/zfo-editor/
Source0:	http://labs.nic.cz/files/labs/zfo_editor/%{name}-%{version}.tar.gz
BuildRequires:	python-setuptools
BuildArch:	noarch
Requires:	python-lxml
Requires:	python-webkitgtk

%description
ZFO editor allows working with ZFO forms on systems which are not officially
or at all supported by SW602 602XML Filler. ZFO editor works with forms
present in ZFO/FO format excluding ISDS Databox-ZFO format, please use dsgui
for that.

%prep
%setup -q -n %{name}-%{version}

%build

%install
%{__rm} -rf %{buildroot}
python setup.py install --root %{buildroot}/
mv %{buildroot}/%{py_sitedir}/release.py %{buildroot}/%{py_sitedir}/zfoeditor/
sed -i 's/Office/Office;/g' %{buildroot}/%{_datadir}/applications/%{name}.desktop
sed -i 's/+xml/+xml;/g' %{buildroot}/%{_datadir}/applications/%{name}.desktop

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(644,root,root,755)
%doc README INSTALL RELEASE_NOTES.txt
%dir %{_datadir}/zfoeditor
%{_datadir}/zfoeditor/*
%{py_sitedir}/zfoeditor/*
%{py_sitedir}/zfo_editor*
%{_datadir}/applications/%{name}*
%{_datadir}/mime/packages/%{name}*
%defattr(755,root,root,755)
%{_bindir}/zfo_editor


%changelog
* Sat Oct 15 2011 Tomas Kindl <supp@mandriva.org> 0.3.2-2mdv2012.0
+ Revision: 704791
- add missing requires

* Sat Oct 01 2011 Tomas Kindl <supp@mandriva.org> 0.3.2-1
+ Revision: 702226
- import zfo-editor



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11761 |21cr|zhcon-0.2.6-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast CJK console system
Name:		zhcon
Version:	0.2.6
Release:	15
License:	GPLv2+
Url:		http://zhcon.sf.net/
Group:		System/Internationalization
Source0:	http://ftp.debian.org/debian/pool/main/z/zhcon/zhcon_%{version}.orig.tar.gz
Source1:	zhcon.sh
Patch0:		http://ftp.debian.org/debian/pool/main/z/zhcon/zhcon_%{version}-4.1.diff.gz
# Patch1,2,3,4,5,6 from Fedora
Patch1:		zhcon-0.2.6-flags.patch
Patch2:		zhcon-0.2.6-path-define.patch
Patch3:		zhcon-0.2.6-gcc43.patch
Patch4:		zhcon-0.2.6-locale.patch
Patch5:		zhcon-0.2.6-keyswitch.patch
Patch6:		zhcon-0.2.6-processor-flags.patch
Patch7:		zhcon-0.2.6-automake.patch
Patch8:		zhcon-0.2.6-fix_gettext.patch
Patch9:		zhcon-0.2.6-iconv.patch
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	gettext-devel
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(ncursesw)

%description
Zhcon is a fast Linux Console which supports framebuffer device. It can
display Chinese, Japanese or Korean (CJK) double byte characters. Supported
language encodings include:
GB2312, GBK, BIG5, JIS and KSCM.
It can also use input methods (table based) from unicon.

%files
%doc AUTHORS ChangeLog COPYING README README.utf8 THANKS TODO doc/bpsf.txt doc/README.html
%{_sysconfdir}/profile.d/zhcon.sh
%lang(zh_CN) %doc doc/manual*
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(4755,root,root) %{_bindir}/%{name}
%{_datadir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .0.26
%patch1 -p1 -b .flags
%patch2 -p0 -b .path-define
%patch3 -p0 -b .gcc43
%patch4 -p0 -b .locale
%patch5 -p0 -b .keyswitch
%patch6 -p1 -b .processor-flags
%patch7 -p1
%patch8 -p1
%patch9 -p1

iconv -f GB2312 -t UTF-8 ChangeLog -o ChangeLog.utf && mv -f ChangeLog.utf ChangeLog
( cd doc; tar -zxf html.tar.gz; chmod 755 manual)

# exit if bootstrap fails
# missing config.rpath causes automake failure
sed -i -e 's|set -x|set -e -x|' bootstrap
touch config.rpath

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

install -m755 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/zhcon.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11762 |21cr|zhu3d-4.2.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenGL-based equation viewer and solver
Name:		zhu3d
Version:	4.2.6
Release:	3
License:	GPLv3
Group:		Sciences/Mathematics
Url:		http://kde-apps.org/content/show.php?content=43071
Source0:	http://download.sourceforge.net/zhu3d/%{name}-%{version}.tar.gz
Source1:	%{name}.desktop
Patch0:		zhu3d-4.2.6-path.patch
BuildRequires:	qt4-devel >= 4.0
BuildRequires:	mesaglu-devel

%description
With Zhu3D you interactively can view and animate functions,
isosurfaces and a further independent parametric system.
Numerical solutions of equation systems can be found with
a precise and reliable adaptive random search. The
OpenGL-viewer supports zooming, scaling, rotating and
translating as well as filed lightning or surface properties.
Special effects are transparency, textures, fog and motion blur.

%prep
%setup -q
%patch0 -p1

%build
# setup compile flags is needed so that -fPIC and -DPIC will be overwritten
%setup_compile_flags
%qmake_qt4
%make

%install
mkdir -p %{buildroot}%{_datadir}/%{name}/{work/textures,system/languages}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/64x64/apps

install -Dm755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dpm644 %{SOURCE1} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -pm644 work/*.zhu %{buildroot}%{_datadir}/%{name}/work
install -pm644 work/textures/* %{buildroot}%{_datadir}/%{name}/work/textures
install -pm644 system/*.zhu %{buildroot}%{_datadir}/%{name}/system
install -pm644 system/languages/*.qm %{buildroot}%{_datadir}/%{name}/system/languages
install -pm644 system/icons/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png

#useless file
rm -f %{buildroot}%{_datadir}/%{name}/work/.directory

%files
%doc doc/ readme.txt
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/work
%dir %{_datadir}/%{name}/work/textures
%dir %{_datadir}/%{name}/system
%dir %{_datadir}/%{name}/system/languages
%{_datadir}/%{name}/work/*.zhu
%{_datadir}/%{name}/work/textures/*.jpg
%{_datadir}/%{name}/work/textures/*.txt
%{_datadir}/%{name}/system/*.zhu
%{_iconsdir}/hicolor/64x64/apps/*.png
%{_datadir}/applications/%{name}.desktop

%lang(cs) %{_datadir}/%{name}/system/languages/%{name}_cs.qm
%lang(de) %{_datadir}/%{name}/system/languages/%{name}_de.qm
%lang(es) %{_datadir}/%{name}/system/languages/%{name}_es.qm
%lang(fr) %{_datadir}/%{name}/system/languages/%{name}_fr.qm
%lang(zh) %{_datadir}/%{name}/system/languages/%{name}_zh.qm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11763 |21cr|zile-2.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Zile Is Lossy Emacs
Name:		zile
Epoch:		1
Version:	2.6.2
Release:	1
License:	GPLv3+
Group:		Editors
URL:		http://www.gnu.org/software/zile/
Source0:	http://ftp.gnu.org/gnu/zile/%{name}-%{version}.tar.gz

BuildRequires:	help2man
BuildRequires:	texinfo
BuildRequires:	tetex-latex
BuildRequires:	pkgconfig(bdw-gc)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(ncursesw)

%description
Zile is another Emacs-clone. Zile is a customizable, self-documenting
real-time open-source display editor.

Zile was written to be as similar as possible to Emacs; every Emacs user
should feel at home with Zile. Zile features

    * Small but fast and powerful. It is very useful for small footprint
      installations (like on floppy disk) or quick editing sessions.
    * 8-bit clean. Zile can operate with binary files.
    * Looks like Emacs. Most Zile key sequences and function names are
      identical to Emacs ones.
    * Multi buffer editing w/multi level undo. Zile can open an infinite
      number of files and can record an infinite sequence of undo
      operations.
    * Multi window. Zile can display multiple windows on the screen.
    * Killing, yanking and registers. The typical killing, yanking and
      register features of Emacs are available under Zile.
    * Minibuffer completion. Zile can complete the user written text.
      This is very useful for M-x commands and for selecting files.
    * Colors. Zile makes use of the color capatibilities of the terminal
      if available.
    * Source highlighting (``C'', ``C++'', and shell scripts). Zile can
      highlight ``C'', ``C++'' source files and shell scripts for
      better reading.
    * Auto fill (word wrap). Zile automatically breaks the lines when
      they become too wide (if the Auto Fill Mode is enabled).

%files
%doc AUTHORS COPYING NEWS README
%doc %{_docdir}/%{name}/FAQ
%doc %{_docdir}/%{name}/dotzile.sample
%{_bindir}/*
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------
%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11764 |21cr|zim-0.67-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           zim
Version:        0.67
Release:        1

Summary:        A desktop wiki and outliner
Source:         http://www.zim-wiki.org/downloads/%{name}-%{version}.tar.gz
License:        GPLv2
Group:          Editors
Url:            http://www.zim-wiki.org/

BuildRequires:	python-devel
BuildRequires:	python-gobject
Requires:	python
Requires:	pygtk2.0
Requires:	python-gobject
Requires:	python-simplejson
Recommends:	python-pyxdg
Recommends:	xdg-utils
Recommends:	python-appindicator
Recommends:	scrot
Recommends:	imagemagick
Recommends:	graphviz
Recommends:	zeitgeist
Recommends:	gnuplot
Recommends:	R-base
Recommends:	gtksourceview2

Recommends:	texlive
Recommends:	lilypond

BuildArch:	noarch

%description
Zim is a graphical text editor used to maintain a collection of wiki pages.
Each page can contain links to other pages, simple formatting and images.
Pages are stored in a folder structure, like in an outliner, and can have
attachments. Creating a new page is as easy as linking to a nonexistent page.
All data is stored in plain text files with wiki formatting. Various plugins
provide additional functionality, like a task list manager, an equation editor,
a tray icon, and support for version control.

%prep
%setup -q -n %{name}-%{version}

%install
python setup.py install --skip-xdg-cmd --root=%{buildroot}

install -D -m 0644 data/zim.png %{buildroot}%{_iconsdir}/hicolor/64x64/mimetypes/application-x-zim-notebook.png
install -D -m 0644 data/zim.png %{buildroot}%{_iconsdir}/hicolor/64x64/mimetypes/gnome-mime-application-x-zim-notebook.png

rm -rf %{buildroot}%{_iconsdir}/ubuntu*

# add trailing ;
sed -i 's|^Keywords=Text;Editor;Write;Wiki;Notes;Notebook;Journal$|Keywords=Text;Editor;Write;Wiki;Notes;Notebook;Journal;|' %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

%files -f %{name}.lang
%doc README.txt CHANGELOG.txt
%{_bindir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{python_sitelib}/*
%{_mandir}/man1/%{name}*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/mime/*
%{_iconsdir}/hicolor/*/*/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11765 |21cr|zimlib-7.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname zim %{major}
%define devname %mklibname zim -d

%global appname libzim

Name:		zimlib
Version:	7.2.0
Release:	3

License:	GPLv2 and ASL 2.0 and BSD
Summary:	Reference implementation of the ZIM specification
Group:		System/Libraries
URL:		https://github.com/openzim/%{appname}
Source0:	%{url}/archive/%{version}.tar.gz

BuildRequires: gtest-devel
BuildRequires: pkgconfig(icu-i18n)
BuildRequires: pkgconfig(libzstd)
BuildRequires: meson
BuildRequires: xapian-devel
BuildRequires: xz-devel
BuildRequires: zlib-devel

%description
The ZIM library is the reference implementation for the ZIM file
format. It's a solution to read and write ZIM files on many systems
and architectures.

#------------------------------------------------------------------
%package -n %{libname}
Summary:	Reference implementation of the ZIM specification
Group:		System/Libraries

%description -n %{libname}
The ZIM library is the reference implementation for the ZIM file
format. It's a solution to read and write ZIM files on many systems
and architectures.

%files -n %{libname}
%{_libdir}/%{appname}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libzim-devel = %{EVRD}

%description -n %{devname}
%{summary}.

%files -n %{devname}
%doc AUTHORS ChangeLog README.md
%license COPYING
%{_includedir}/zim
%{_libdir}/%{appname}.so
%{_libdir}/pkgconfig/%{appname}.pc
#------------------------------------------------------------------

%prep
%autosetup -n %{appname}-%{version} -p1

%build
%meson -Dwerror=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11766 |21cr|zinnia-0.06-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname -d %{name}


Name:		zinnia
Version:	0.06
Release:	10
License:	BSD
Summary: 	Online hand recognition system with machine learning
Group:		System/Internationalization
Source0:	http://downloads.sourceforge.net/zinnia/%{name}-%{version}.tar.gz
Patch0:		zinnia-0.05-bindings.patch
Patch1:		zinnia-0.06-fixes-ppc-float.patch
Patch3:		zinnia-fixes-gcc6-compile.patch
URL:		http://zinnia.sourceforge.net/
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	python3-devel
BuildRequires:	swig

%description
Zinnia is a simple, customizable and portable online hand recognition
system based on Support Vector Machines. Zinnia simply receives user
pen strokes as a sequence of coordinate data and outputs n-best
characters sorted by SVM confidence. To keep portability, Zinnia
doesn't have any rendering functionality. In addition to recognition,
Zinnia provides training module that allows us to create any hand-
written recognition systems with low-cost.

%files
%{_bindir}/zinnia*

#-----------------------------------------------------------------
%package -n	%{libname}
Summary:	Libraries for %{name}
Group:		System/Internationalization

%description -n	%{libname}
This package contains shared libraries for %{name}.

%files -n %{libname}
%{_libdir}/libzinnia.so.%{major}*

#-----------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		System/Internationalization
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc doc/*
%{_includedir}/zinnia.h
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/zinnia.h
%{_libdir}/libzinnia.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------

%package -n	perl-%{name}
Summary:	Perl bindings for %{name}
Group:		Development/Perl
Requires:	%{name} = %{EVRD}

%description -n	perl-%{name}
This package contains perl bindings for %{name}.

%files -n perl-%{name}
%dir %{perl_vendorarch}/auto/zinnia
%{perl_vendorarch}/auto/zinnia/zinnia.so
%{perl_vendorarch}/zinnia.pm

#-----------------------------------------------------------------

%package -n	python3-%{name}
Summary:	Python bindings for %{name}
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Provides:	tegaki-engine

%description -n	python3-%{name}
This package contains python bindings for %{name}.

%files -n python3-%{name}
%{py3_platsitedir}/_zinnia*.so
%{py3_platsitedir}/__pycache__
%{py3_platsitedir}/zinnia.py*
%{py3_platsitedir}/zinnia_python-*-py%{py3_ver}.egg-info

#-----------------------------------------------------------------

%prep
%autosetup -p1

find . -type f -name "*.pyc" -exec rm -f {} ';'
pushd doc
iconv -f latin1 -t utf8 zinnia.css > zinnia.css.bak 
mv -f zinnia.css.bak zinnia.css
popd

# re-generate zinnia.py and zinnia_wrap.cxx for python 3.x
pushd swig
make python
popd

%build

%configure --disable-static
%make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"

pushd perl
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"
popd

pushd python
CFLAGS="%{optflags} -I../" LDFLAGS="%{optflags} -L../.libs" python3 setup.py build
popd

%install
%makeinstall_std

%makeinstall_std -C perl

pushd perl
make pure_install PERL_INSTALL_ROOT=%{buildroot}
popd

pushd python
python3 setup.py install --root %{buildroot}
pushd

#remove something unnecessary
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'
find %{buildroot} -type f -name "*.bs" -size 0c -exec rm -f {} ';'
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'

#change the privilege of some files
chmod 0755 %{buildroot}%{perl_vendorarch}/auto/%{name}/%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11767 |21cr|zinnia-tomoe-0.6.0_20080911-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion 0.6.0
%define date 20080911


Summary:	Zinnia Recognition models
Name:		zinnia-tomoe
Version:	0.6.0_20080911
Release:	1
License:	LGPLv2+
Group:		System/Internationalization
Source:		http://downloads.sourceforge.net/zinnia/%{name}-%{oversion}-%{date}.tar.bz2
URL:		http://zinnia.sourceforge.net/
BuildRequires:	zinnia >= 0.02
Requires:	zinnia >= 0.02
BuildArch:	noarch

%description
Model files trained with Tomoe data.

#--------------------------------------------------------
%package ja
Summary:	Zinnia Recognition models - Japanese data
Group:		System/Internationalization
Provides:	%{name} = %{version}-%{release}
Requires:	locales-ja

%description ja
Japanese Model files trained with Tomoe data.

%files ja
%{_prefix}/lib/zinnia/model/tomoe/handwriting-ja.model

#--------------------------------------------------------

%package zh_CN
Summary:	Zinnia Recognition models - Simplified Chinese data
Group:		System/Internationalization
Provides:	%{name} = %{version}-%{release}
Requires:	locales-zh

%description zh_CN
Simplified Chinese Model files trained with Tomoe data.

%files zh_CN
%{_prefix}/lib/zinnia/model/tomoe/handwriting-zh_CN.model

#--------------------------------------------------------

%prep
%setup -qn %{name}-%{oversion}-%{date}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11768 |21cr|zint-2.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2.12
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname -d %{name}
%define	qlibname %mklibname q%{name} %{major}
%define	qdevname %mklibname -d q%{name}

Summary:	Barcode generator
Name:		zint
Version:	2.12.0
Release:	1
License:	GPLv3+
Url:		https://www.zint.org.uk
Source0:	https://sourceforge.net/projects/zint/files/zint/%{version}/%{name}-%{version}-src.tar.gz
Patch0:     zint-2.10.0-build-shared-qt-backend.patch
Group:		Graphics
BuildRequires:	cmake >= 3.5
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(zlib)

%description
Zint is a C library for encoding data in several barcode variants. The
bundled command-line utility provides a simple interface to the library.
Features of the library:
- Over 50 symbologies including all ISO/IEC standards, like QR codes.
- Unicode translation for symbologies which support Latin-1 and 
  Kanji character sets.
- Full GS1 support including data verification and automated insertion of 
  FNC1 characters.
- Support for encoding binary data including NULL (ASCII 0) characters.
- Health Industry Barcode (HIBC) encoding capabilities.
- Output in PNG, EPS and SVG formats with user adjustable sizes and colors.
- Verification stage for SBN, ISBN and ISBN-13 data.

%files
%doc docs/manual.txt README.linux TODO
%license LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	C library for encoding data in several barcode variants
Group:		System/Libraries

%description -n %{libname}
Zint is a C library for encoding data in several barcode variants.
Features of the library:
- Over 50 symbologies including all ISO/IEC standards, like QR codes.
- Unicode translation for symbologies which support Latin-1 and
  Kanji character sets.
- Full GS1 support including data verification and automated insertion of
  FNC1 characters.
- Support for encoding binary data including NULL (ASCII 0) characters.
- Health Industry Barcode (HIBC) encoding capabilities.
- Output in PNG, EPS and SVG formats with user adjustable sizes and colors.
- Verification stage for SBN, ISBN and ISBN-13 data.

%files -n %{libname}
%doc README.linux
%{_libdir}/libzint.so.%{major}*

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Library and header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	  %{name}-devel = %{EVRD}
Provides:	  lib%{name}-devel = %{EVRD}

%description -n %{devname}
C library and header files needed to develop applications that use the Zint
library. The API documentation can be found on the project website:
http://www.zint.org.uk/zintSite/Manual.aspx.

%files -n %{devname}
%doc README.linux TODO
%{_includedir}/%{name}.h
%{_libdir}/libzint.so
%{_datadir}/apps/cmake/modules/FindZint.cmake
%{_datadir}/%{name}/*.cmake

#----------------------------------------------------------------------

%package qt
Summary:	Zint Barcode Studio
Group:		Graphics

%description qt
Zint Barcode Studio is a Qt-based GUI which allows desktop users to generate
barcodes which can then be embedded in documents or HTML pages.

%files qt
%doc docs/manual.txt README.linux TODO
%{_bindir}/%{name}-qt
%{_datadir}/applications/%{name}-qt.desktop
%{_datadir}/pixmaps/%{name}-qt.png

#----------------------------------------------------------------------

%package -n %{qlibname}
Summary:	LibQZint shared libraries
Group:		System/Libraries

%description -n %{qlibname}
libQZint shared libraries.

%files -n %{qlibname}
%doc ChangeLog README.linux
%{_libdir}/libQZint.so.%{major}*

#----------------------------------------------------------------------

%package -n %{qdevname}
Summary:	Library and header files for %{name}-qt
Group:		Development/C
Requires:	%{qlibname} = %{EVRD}
Provides:	q%{name}-devel = %{EVRD}
Provides:	libq%{name}-devel = %{EVRD}

%description -n %{qdevname}
C library and header files needed to develop applications that use libQZint.

%files -n %{qdevname}
%doc docs/manual.txt README.linux TODO
%{_includedir}/qzint.h
%{_libdir}/libQZint.so

#----------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-src
%patch0 -p1

# Remove BSD-licensed file required for Windows only (just to ensure that this package is plain GPLv3+)
rm -f backend/ms_stdint.h



%build
%cmake
%make


%install
%makeinstall_std -C build

# Install provided icon
install -D -p -m 644 %{name}-qt.png %{buildroot}%{_datadir}/pixmaps/%{name}-qt.png

# Install and fix provided .desktop file
mkdir -p %{buildroot}%{_datadir}/applications/
desktop-file-install --remove-key="Encoding" --dir="%{buildroot}%{_datadir}/applications/" %{name}-qt.desktop


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11769 |21cr|zipios++-2.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname zipios %{major}
%define develname %mklibname zipios -d

Name:		zipios++
Version:	2.2.6
Release:	1
License:	GPLv2
Summary:	A java.util.zip-like C++ library for reading and writing Zip files
Group:		Development/C++
Url:		https://github.com/Zipios/Zipios
Source0:	https://github.com/Zipios/Zipios/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	zlib-devel
BuildRequires:	libcppunit-devel
BuildRequires:	doxygen
BuildRequires:	imagemagick
Provides:	zipios = %{EVRD}
Provides:	Zipios = %{EVRD}

%description
Zipios++ is a java.util.zip-like C++ library for reading and writing Zip files.
Access to individual entries is provided through standard C++ iostreams.
A simple read-only virtual file system that mounts regular directories and zip
files is also provided

%files
%{_bindir}/appendzip
%{_bindir}/dosdatetime
%{_bindir}/zipios
%{_datadir}/metainfo/zipios.metainfo.xml
%{_mandir}/man3/zipios*

#-------------------------------------------------------------------------
%package -n %{libname}
Summary:	A java.util.zip-like C++ library for reading and writing Zip files
Group:		System/Libraries

%description -n %{libname}
Zipios++ is a java.util.zip-like C++ library for reading and writing Zip files.
Access to individual entries is provided through standard C++ iostreams.
A simple read-only virtual file system that mounts regular directories and zip
files is also provided

%files -n %{libname}
%{_libdir}/libzipios.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{develname}
Summary:	Zipios++ header files
Group:		Development/C++
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	zlib-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
Header files and documentation for zipios++ development.

%files -n %{develname}
%doc AUTHORS NEWS README.md COPYING
%doc %{_docdir}/zipios
%{_includedir}/zipios
%{_libdir}/libzipios.so
%{_datadir}/cmake/ZipIos/ZipIosConfig.cmake

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n Zipios-%{version}

%build
%cmake

%make

%install
%makeinstall_std -C build



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11770 |21cr|ziproxy-3.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A http compression and optimizer, non-caching, fully configurable proxy
Name:		ziproxy
Version:	3.3.1
Release:	3
License:	GPLv2+
Group:		System/Servers
Url:		http://ziproxy.sourceforge.net/
Source0:	http://www.dancab.com/proj/ziproxy/files/%{name}-%{version}.tar.xz
Source1:	ziproxy.service
Source2:	ziproxy.sysconfig
Source3:	ziproxy.logrotate
Patch0:		ziproxy-mdv_conf.diff
Patch1:		ziproxy-3.2.1-gcc.patch
Patch2:		ziproxy-3.3.1-fix-configure.patch
Patch3:		ziproxy-3.3.0-giflib51.patch
BuildRequires:	flex
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libpng)
Requires(post,preun):	rpm-helper

%description
Ziproxy is a forwarding (non-caching) proxy that gzips text and HTML files, and
reduces the size of images by converting them to lower quality JPEGs. It is
intended to increase the speed for low-speed Internet connections and it's
suitable for both home and professional usage. Ziproxy is fully configurable
and also features transparent proxy mode, preemptive name resolution, operation
in either daemon mode or (x)inetd mode, a detailed access log with compression
statistics, basic authentication, and more.

%files
%doc COPYING CREDITS ChangeLog JPEG2000.txt README README.tools
%attr(0644,root,root) %{_unitdir}/%{name}.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0700,root,root) %dir %{_sysconfdir}/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(0700,root,root) %dir %{_sysconfdir}/%{name}/errors
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/errors/*.html
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0755,root,root) %{_bindir}/ziproxylogtool
%attr(0755,root,root) %{_bindir}/ziproxy_genhtml_stats
%attr(0700,root,root) %dir /var/log/%{name}
%attr(0700,root,root) %dir /run/%{name}
%{_mandir}/man1/*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1

cp %{SOURCE1} ziproxy.service
cp %{SOURCE2} ziproxy.sysconfig
cp %{SOURCE3} ziproxy.logrotate

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" config/*.m4

%build
%serverbuild
autoreconf -fi
%configure \
    --with-jasper=%{_prefix} \
    --with-sasl2=%{_prefix} \
    --with-cfgfile=%{_sysconfdir}/ziproxy/ziproxy.conf

%make

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/%{name}/errors
install -d %{buildroot}/var/log/%{name}
install -d %{buildroot}/run/%{name}
install -d %{buildroot}%{_mandir}/man1

install -m0755 src/%{name} %{buildroot}%{_sbindir}/%{name}
install -m0755 src/tools/ziproxylogtool %{buildroot}%{_bindir}/
install -m0755 src/tools/ziproxy_genhtml_stats.sh %{buildroot}%{_bindir}/ziproxy_genhtml_stats

install -m0644 etc/%{name}/%{name}.conf %{buildroot}%{_sysconfdir}/ziproxy/
install -m0644 var/%{name}/error/*.html %{buildroot}%{_sysconfdir}/ziproxy/errors/

install -m0644 ziproxy.service -D %{buildroot}%{_unitdir}/%{name}.service
install -m0644 ziproxy.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m0644 ziproxy.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

install -m0644 man/*.1 %{buildroot}%{_mandir}/man1/

sed "s:sysconfig:%{_sysconfdir}/sysconfig:" -i %{buildroot}%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11771 |21cr|ziptool-1.4.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty-debuginfo-package
%define debug_package	%{nil}
%define Werror_cflags %nil

Summary:	Tools for Iomega JAZ and ZIP drives
Name:		ziptool
Version:	1.4.0
Release:	10
License:	GPL
Group:		File tools
Url:		http://wolfpack.twu.net/utilities.html#ziptool
Source0:	ftp://wolfpack.twu.net/users/wolfpack/%{name}-%{version}.tar.bz2
Patch0:         %{name}-%{version}.patch
Patch1:         %{name}-%{version}-makefile.patch
Patch2:         ziptool-1.4.0-fixes.patch
Patch3:         ziptool-1.4.0-uid.patch


%description
Medium protection is done by software for Iomega's JAZ and ZIP drives.
jaztool and ziptool make this features available for Linux.

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0

%build
%make CFLAGS="$RPM_OPT_FLAGS -s"

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc README 
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/jaztool.1.xz
%defattr(755,root,root,755)
%{_bindir}/%{name}
%{_bindir}/jaztool

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11772 |21cr|zita-alsa-pcmi-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname %{name} %{major}
%define	develname %mklibname %{name} -d

Name:		zita-alsa-pcmi
Summary:	Provides easy access to ALSA PCM devices
Version:	0.4.0
Release:	1
License:	GPLv3+
Group:		System/Libraries
Url:		http://kokkinizita.linuxaudio.org/linuxaudio/aeolus/index.html
Source0:	http://kokkinizita.linuxaudio.org/linuxaudio/downloads/%{name}-%{version}.tar.bz2
Patch0:		zita-alsa-pcmi-0.3.2-fix-makefile.patch
BuildRequires:	ecasound-devel
BuildRequires:	pkgconfig(alsa)

%description
Zita-alsa-pcmi is the successor of clalsadrv. It provides easy access to ALSA
PCM devices, taking care of the many functions required to open, initialize
and use a hw: device in mmap mode, and providing floating point audio data.

# TODO: Build and package the provided apps (alsa_loopback and alsa_delay)
#files
#doc COPYING AUTHORS README
#{_bindir}/alsa_*

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}
%rename		%{_lib}clalsadrv2

%description -n	%{libname}
The libraries from %{name} package needed by Aeolus.

%files -n %{libname}
%doc COPYING AUTHORS
%{_libdir}/lib%{name}.so.%{major}*

#--------------------------------------------------------------------

%package -n %{develname}
Summary:	Libraries for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{_lib}clalsadrv-devel

%description -n	%{develname}
Development libraries from %{name}.

%files -n %{develname}
%doc COPYING AUTHORS
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

# Fix compile options
sed -i -e 's#-O2#%{optflags}#' source/Makefile
sed -i -e 's#-O2#%{optflags}#' apps/Makefile


%build
pushd source
	%make LDFLAGS="%{ldflags}"
popd
#pushd apps
#%%make LDFLAGS="%%{ldflags}"
#popd


%install
pushd source
	%makeinstall_std
popd
#pushd apps
#makeinstall_std
#popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11773 |21cr|zmusic-1.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	liblite %mklibname zmusiclite %{major}
%define	devname %mklibname %{name} -d

%define	oname ZMusic

Summary:	Music system for gzdoom
Name:		zmusic
Version:	1.1.9
Release:	1
License:	GPLv3+
Group:		Sound
Url:		https://github.com/coelckers/ZMusic
Source0:	https://github.com/coelckers/ZMusic/archive/%{oname}-%{version}.tar.gz
BuildRequires:	cmake >= 3.13
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fluidsynth) >= 2.2.0
BuildRequires:	pkgconfig(libgme)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(zlib)

%description
The GZDoom's music system as a standalone library.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for the gzdoom music system
License:	GPLv3+
Group:		System/Libraries

%description -n %{libname}
The GZDoom's music system as a standalone library, full flavor.

%files -n %{libname}
%doc licenses/%{name}.txt
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{liblite}
Summary:	Shared library for the gzdoom music system
License:	LGPLv2+
Group:		System/Libraries

%description -n %{liblite}
The GZDoom's music system as a standalone library, lite flavor: it omits all the
MIDI synths (except for fluidisynth) and the raw OPL playback.

%files -n %{liblite}
%doc licenses/%{name}.txt
%{_libdir}/lib%{name}lite.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name} library
License:	GPLv3+ and LGPLv2+
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{liblite} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name} library.

%files -n %{devname}
%doc licenses/*.txt
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}lite.so
%{_libdir}/cmake/%{oname}/*.cmake

#------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
%cmake
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11774 |21cr|znc-1.8.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		znc
Version:	1.8.2
Release:	3
License:	GPLv2+
Summary:	An IRC bouncer with many advanced features
Group:		Networking/IRC
Url:		https://wiki.znc.in/ZNC
Source0:	http://znc.in/releases/%{name}-%{version}.tar.gz

BuildRequires:		cmake
BuildRequires:		swig
BuildRequires:		boost-devel
BuildRequires:		gettext-devel
BuildRequires:		icu-devel
BuildRequires:		perl-devel
BuildRequires:		perl(ExtUtils::Embed)
BuildRequires:		pkgconfig(libcares)
BuildRequires:		pkgconfig(libsasl2)
BuildRequires:		pkgconfig(openssl) >= 1.1
BuildRequires:		pkgconfig(python3)
BuildRequires:		pkgconfig(tcl)
BuildRequires:		pkgconfig(systemd)
BuildRequires:		pkgconfig(zlib)
BuildRequires:		systemd-units

%description
ZNC is an IRC bouncer with many advanced features like detaching,
multiple users, per channel playback buffer, SSL, IPv6, transparent
DCC bouncing, Perl and C++ module support to name a few.


%files -f %{name}.lang
%doc ChangeLog.md NOTICE README.md LICENSE
%{_libdir}/%{name}/
%exclude %{_libdir}/%{name}/modperl*
%exclude %{_libdir}/%{name}/perleval.pm
%exclude %{_libdir}/%{name}/modpython*
%{_bindir}/znc
%{_datadir}/znc/
%{_unitdir}/znc.service
%{_mandir}/man1/znc-buildmod.1.*
%{_mandir}/man1/znc.*.*

#--------------------------------------------------------
%package devel
Summary:	Development files needed to compile ZNC modules
Group:		Development/C
Requires:	%{name} = %{version}-%{release}

%description devel
All includes and program files you need to compile your own znc
modules.


%files devel
%doc ChangeLog.md NOTICE README.md
%{_bindir}/znc-buildmod
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/znc/

#--------------------------------------------------------
%package modperl
Summary:	Perl module for ZNC
Group:		Development/Perl
Requires:	%{name} = %{EVRD}
Requires:	perl
Provides:	perl(ZNC::Module) = %{EVRD}

%description modperl
perl module for ZNC.

%files modperl
%doc ChangeLog.md NOTICE README.md
%{_libdir}/znc/modperl/
%{_libdir}/znc/modperl.so
%{_libdir}/znc/perleval.pm

#--------------------------------------------------------
%package modpython
Summary:	Python3 module for ZNC
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Requires:	python3

%description modpython
python3 module for ZNC.


%files modpython
%doc ChangeLog.md NOTICE README.md
%{_libdir}/znc/modpython/
%{_libdir}/znc/modpython.so

#--------------------------------------------------------
%prep
%setup -q

# drop pregenerated perl and python files
rm -rf modules/*/generated.tar.gz
# The manual page references /usr/local/; fix that
sed -ie 's!/usr/local/!/usr/!' man/znc.1

%build
%cmake \
  -DSYSTEMD_DIR=%{_unitdir} \
  -DWANT_TCL=1 \
  -DWANT_PERL=1 \
  -DWANT_SWIG=1 \
  -DWANT_SYSTEMD=1 \
  -DWANT_PYTHON=1 \
  -DWANT_PYTHON_VERSION=python3 \
  -Wno-dev

%make


%install
%makeinstall_std -C build
find %{buildroot} -type f -empty -delete

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11775 |21cr|zn_poly-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

Summary:	Polynomial arithmetic in Z/nZ[x]
Name:		zn_poly
Version:	0.9.2
Release:	1
License:	GPLv2+ or GPLv3+
Group:		Sciences/Mathematics
Url:		http://cims.nyu.edu/~harvey/zn_poly/
Source0:	http://cims.nyu.edu/~harvey/zn_poly/releases/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	gmp-devel
BuildRequires:	ntl-devel

%description
zn_poly is a C library for polynomial arithmetic in Z/nZ[x],
where n is any modulus that fits into an unsigned long.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Polynomial arithmetic in Z/nZ[x] (shared library)
Group:		System/Libraries
Conflicts:	%{_lib}zn_poly-devel < 0.9-11

%description -n %{libname}
zn_poly is a C library for polynomial arithmetic in Z/nZ[x],
where n is any modulus that fits into an unsigned long.

%files -n %{libname}
%{_libdir}/libzn_poly-%{version}.so
%{_libdir}/libzn_poly-0.9.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Polynomial arithmetic in Z/nZ[x] (development files)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
zn_poly is a C library for polynomial arithmetic in Z/nZ[x],
where n is any modulus that fits into an unsigned long.

%files -n %{devname}
%doc doc/REFERENCES
%{_includedir}/*
%{_libdir}/libzn_poly.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
python3 makemakefile.py --prefix=/usr --cflags="$CFLAGS -fPIC" --cxxflags="$CXXFLAGS" --ldflags="$LDFLAGS" > makefile
make
make libzn_poly.so

%install
# install manually, because makefile does not honor DESTDIR
mkdir -p %{buildroot}%{_includedir}/zn_poly/
mkdir -p %{buildroot}%{_libdir}
cp -pv include/*.h %{buildroot}%{_includedir}/zn_poly/
cp -pv libzn_poly-%{version}.so %{buildroot}%{_libdir}
ln -s libzn_poly-%{version}.so %{buildroot}%{_libdir}/libzn_poly-0.9.so
ln -s libzn_poly-0.9.so %{buildroot}%{_libdir}/libzn_poly.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11776 |21cr|zoneminder-1.36.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define zmuid   apache
%define zmgid   apache
%define camver  0.936

%global __requires_exclude perl\\(ZoneMinder|perl\\(ONVIF|perl\\(WSNotification|perl\\(WSDiscovery|perl\\(WSDiscovery10|perl\\(WSSecurity|/usr/bin/pkexec
%global __provides_exclude perl\\(ZoneMinder|perl\\(ONVIF|perl\\(WSNotification|perl\\(WSDiscovery|perl\\(WSDiscovery10|perl\\(WSSecurity

Name:           zoneminder
Version:        1.36.19
Release:        2
Summary:        Video Camera and CCTV Security with Motion Detection
Group:          Security
URL:            http://www.zoneminder.com/
License:        GPLv2+ and MIT
# Included Mootools is under the MIT license: http://mootools.net/
# http://www.opensource.org/licenses/mit-license.php
Source0:        https://github.com/ZoneMinder/zoneminder/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:        http://www.charliemouse.com/code/cambozola/cambozola-%{camver}.tar.gz
Source2:        %{name}.conf
Source3:        redalert.wav
Source4:        README.ROSA
Source6:        zmrestart
Source7:        zmstop
Source8:        zmsetup
Source9:        %{name}.service
Source10:       %{name}-tmpfiles.conf
Source11:       89-%{name}.rules
Source12:       https://github.com/ZoneMinder/CakePHP-Enum-Behavior/archive/ea90c0cd7f6e24333a90885e563b5d30b793db29.zip?/CakePHP-Enum-Behavior.zip
Source13:       https://github.com/FriendsOfCake/crud/archive/14292374ccf1328f2d5db20897bd06f99ba4d938.zip?/crud.zip
Source14:       https://github.com/ZoneMinder/RtspServer/archive/1b40f1661f93f50fd5805f239d1e466a3bcf888f.zip?/RtspServer.zip
Source100:      %{name}.rpmlintrc

BuildRequires:  ant
BuildRequires:  cmake
# ffmpeg is needed for CMakeLists.txt to set OPT_FFMPEG
BuildRequires:  ffmpeg
BuildRequires:  ffmpeg-devel
BuildRequires:  gnutls-devel
BuildRequires:  java-devel >= 1:1.7.0
BuildRequires:  jpeg-devel
BuildRequires:  libgcrypt-devel
BuildRequires:  mariadb-devel
BuildRequires:  pcre-devel
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libvlc)
BuildRequires:  pkgconfig(polkit-gobject-1)
# Perl modules really required for build
BuildRequires:  perl(Date::Manip)
BuildRequires:  perl(DBD::mysql)
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(Sys::Mmap)
BuildRequires:  perl(Sys::Syslog)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  java-rpmbuild

Requires:       apache-mod_php
Requires:       cracklib-dicts
Requires:       ffmpeg
# Perl modules required but not auto-required
Requires:       perl(Archive::Zip)
Requires:       perl(DBD::mysql)
Requires:       perl(IO::Socket::SSL)
Requires:       perl(MIME::Entity)
Requires:       perl(MIME::Lite)
Requires:       perl(Net::FTP)
Requires:       perl(Net::SFTP::Foreign)
Requires:       perl(PHP::Serialization)
Requires:       perl(Sys::CPU)
Requires:       perl(Sys::MemInfo)
Requires:       php
Requires:       php-gd
Requires:       php-mysql
Requires:       php-pdo_mysql
Requires:       php-pdo
Requires:       php-sockets

Requires(pre):  user(%{zmuid})
Requires(post): rpm-helper
Requires(preun): rpm-helper

Recommends:     mysql
# ant pkg not avail on i686
ExcludeArch:    %{ix86}

%description
A CCTV security package with remote access, motion detection and recording.
ZoneMinder is intended for use in single or multi-camera video security
applications, including commercial or home CCTV. It supports capture,
analysis, recording, and monitoring of video data coming from one or more
video or network cameras attached to a Linux system. 
ZoneMinder also supports web and semi-automatic control of Pan/Tilt/Zoom
cameras using a variety of protocols.
It is designed to run on distributions which support the Video For Linux (V4L)
interface and has been tested with video cameras attached to BTTV cards,
various USB cameras and also supports most IP network cameras.

%prep
%setup -q -a1 -a12 -a13 -a14 -n %{name}-%{version}
%apply_patches

# install components
cp -r CakePHP-Enum-Behavior*/* web/api/app/Plugin/CakePHP-Enum-Behavior/
cp -r crud*/* web/api/app/Plugin/Crud/
cp -r RtspServer*/* dep/RtspServer/


# Change the following default values
./utils/zmeditconfigdata.sh ZM_OPT_CAMBOZOLA yes
./utils/zmeditconfigdata.sh ZM_HTTP_VERSION 1.1
./utils/zmeditconfigdata.sh ZM_CHECK_FOR_UPDATES no
./utils/zmeditconfigdata.sh ZM_DYN_SHOW_DONATE_REMINDER no
./utils/zmeditconfigdata.sh WEB_ALARM_SOUND %{_datadir}/%{name}/sounds/redalert.wav

cp %{SOURCE4} README.ROSA

%build
pushd cambozola-%{camver}
%ant
popd

%cmake \
-DCMAKE_INSTALL_LIBDIR=lib \
-DCMAKE_INSTALL_PREFIX=%{_usr} \
-DZM_CGIDIR=%{_datadir}/%{name}/cgi \
-DZM_WEBDIR=%{_datadir}/%{name}/www \
-DZM_WEB_USER=%{zmuid} \
-DZM_WEB_GROUP=%{zmgid} \
-DZM_CONFIG_DIR=%{_sysconfdir}

%make

%install
%makeinstall_std -C build

for dir in events images temp  ; do
    install -m 755 -d %{buildroot}%{_localstatedir}/lib/%{name}/$dir
    ln -sf %{_localstatedir}/lib/%{name}/$dir %{buildroot}%{_datadir}/%{name}/www/$dir
done

install -D -m 775 cambozola-%{camver}/dist/cambozola.jar \
%{buildroot}/%{_datadir}/%{name}/www/cambozola.jar
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 db %{buildroot}%{_datadir}/%{name}/db
install -m 644 db/*.sql %{buildroot}%{_datadir}/%{name}/db
install -D -m 644 %{SOURCE2} %{buildroot}%{_webappconfdir}/%{name}.conf
install -D -m 755 %{SOURCE3} %{buildroot}%{_datadir}/%{name}/sounds/redalert.wav
install -d -m 755 %{buildroot}%{_localstatedir}/log/zm
install -D -m 755 %{SOURCE6} %{buildroot}%{_bindir}/zmrestart
install -D -m 755 %{SOURCE7} %{buildroot}%{_bindir}/zmstop
install -D -m 755 %{SOURCE8} %{buildroot}%{_bindir}/zmsetup
install -D -m 644 scripts/zmlogrotate.conf.in %{buildroot}%{_sysconfdir}/logrotate.d/zm
install -D -m 644 %{SOURCE9} %{buildroot}%{_unitdir}/%{name}.service
install -m 755 -d %{buildroot}/var/lib/%{name}/sock
install -m 755 -d %{buildroot}/var/lib/%{name}/swap
install -m 755 -d %{buildroot}/var/lib/%{name}/temp
install -m 755 -d %{buildroot}/var/spool/%{name}-upload
install -D -p -m 0644 %{SOURCE10} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -d -m 755 %{buildroot}%{_udevrulesdir}
install -D -p -m 0644 %{SOURCE11} %{buildroot}%{_udevrulesdir}/89-%{name}.rules

cat > README.urpmi <<EOF

ZoneMinder is now installed.
ROSA has included a script to simplify setup.
It will:
* Help you to create a mysql root password, a new ZoneMinder
  mysql database, or update from a previously installed version.
* Set mysql permissions for the zoneminder user.
* Start Mysql, Apache and ZoneMinder on completion.

To use it enter the following commands in a terminal:-

su

zmsetup

NOTE: After updating ZoneMinder to a new version always run zmsetup
and select to re-use your existing database. This will allow you
to update the database to be compatible with the newly installed
version of ZoneMinder, while keeping your existing events and
settings.

EOF

%post
# Make sure that service is not automatically re-started on update as
# zmsetup should be run before re-starting to avoid db errors.
if [ $1 -eq 2 ]; then
systemctl stop %{name}.service > /dev/null 2>&1
fi

%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%files
%doc README.md README.ROSA README.urpmi
%config(noreplace) %attr(640,root,%{zmgid}) %{_sysconfdir}/zm.conf
%config(noreplace) %{_webappconfdir}/%{name}.conf
%config(noreplace) %attr(640,root,%{zmgid}) %{_sysconfdir}/conf.d/01-system-paths.conf
%config(noreplace) %attr(640,root,%{zmgid}) %{_sysconfdir}/conf.d/02-multiserver.conf
%{_sysconfdir}/conf.d/README

%{_bindir}/zmaudit.pl
%{_bindir}/zmc
%{_bindir}/zmcontrol.pl
%{_bindir}/zmdc.pl
%{_bindir}/zmfilter.pl
%{_bindir}/zmcamtool.pl
%{_bindir}/zmpkg.pl
%{_bindir}/zmtrack.pl
%{_bindir}/zmtrigger.pl
%{_bindir}/zmu
%{_bindir}/zmupdate.pl
%{_bindir}/zmvideo.pl
%{_bindir}/zmwatch.pl
%{_bindir}/zmsetup
%{_bindir}/zmstop
%{_bindir}/zmrestart
%{_bindir}/zmx10.pl
%{_bindir}/zmsystemctl.pl
%{_bindir}/zmonvif-probe.pl
%{_bindir}/zmtelemetry.pl
%{_bindir}/zm_rtsp_server
%{_bindir}/zmonvif-trigger.pl
%{_bindir}/zmrecover.pl
%{_bindir}/zmstats.pl

%{_unitdir}/%{name}.service
%{perl_vendorlib}/*
%{_mandir}/man*/*

%dir %attr(755,%{zmuid},%{zmgid}) %{_datadir}/%{name}
%attr(755,%{zmuid},%{zmgid}) %dir %{_datadir}/%{name}/www
%attr(755,%{zmuid},%{zmgid}) %{_datadir}/%{name}/www/*
%{_datadir}/%{name}/db
%{_datadir}/%{name}/sounds
%{_datadir}/%{name}/cgi

%dir %attr(755,%{zmuid},%{zmgid}) %dir %{_localstatedir}/log/zm
%dir %attr(755,%{zmuid},%{zmgid}) %{_localstatedir}/lib/%{name}
%dir %attr(755,%{zmuid},%{zmgid}) %{_localstatedir}/lib/%{name}/events
%dir %attr(755,%{zmuid},%{zmgid}) %{_localstatedir}/lib/%{name}/images
%dir %attr(755,%{zmuid},%{zmgid}) %{_localstatedir}/lib/%{name}/sock
%dir %attr(755,%{zmuid},%{zmgid}) %{_localstatedir}/lib/%{name}/swap
%dir %attr(755,%{zmuid},%{zmgid}) %{_localstatedir}/lib/%{name}/temp
%dir %attr(755,%{zmuid},%{zmgid}) %{_localstatedir}/spool/%{name}-upload
%{_sysconfdir}/logrotate.d/zm
%{_udevrulesdir}/89-%{name}.rules
%{_tmpfilesdir}/%{name}.conf
%{_datadir}/polkit-1/rules.d/com.zoneminder.systemctl.rules
%{_datadir}/polkit-1/actions/com.zoneminder.systemctl.policy
%{_datadir}/applications/zoneminder.desktop
%{_datadir}/zoneminder/fonts/default.zmfnt
%{_datadir}/zoneminder/icons/16x16/icon.xpm


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11777 |21cr|zoo-2.10-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	File archiving utility with compression
Name:		zoo
Version:	2.10
Release:	9
License:	Copyrighted, freely distributable if unmodified
Group:		Archiving/Compression
Source0:	ftp://sunsite.unc.edu:/pub/Linux/utils/compress/%{name}-%{version}.tar.gz
Patch0:		zoo_2.10-9.diff.gz
Patch1:		zoo-memmove.patch
Patch2:		zoo-2.10-formatfix.patch

%description
Zoo is a file archiving utility for maintaining collections of files.
It uses Lempel-Ziv compression to provide space savings in the
range of 20 to 80 percent depending on the type of data. Written by
Rahul Dhesi, and posted to the USENET newsgroup comp.sources.misc.

This package is in restricted because its license denies modifications.

%files
%defattr(0644, root, root, 0755)
%doc Copyright
%attr(0755, root, root) %{_bindir}/fiz
%attr(0755, root, root) %{_bindir}/zoo
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0 -b .memmove
%patch2 -p1

%build
%__make "OPTIM=%{optflags}" linux

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install fiz %{buildroot}%{_bindir}/fiz
install zoo %{buildroot}%{_bindir}/zoo
install fiz.1 %{buildroot}%{_mandir}/man1/fiz.1
install zoo.1 %{buildroot}%{_mandir}/man1/zoo.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11778 |21cr|zpaq-7.15-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ZPAQ compress
Name:		zpaq
Version:	7.15
Release:	3
License:	BSD
Group:		Archiving/Compression
Url:		http://www.mattmahoney.net/dc/zpaq.html
Source0:	%{name}715.zip

%description
zpaq is a journaling archiver optimized for user-level incremental
backup of directory trees in Windows and *nix. It supports AES-256
encryption, 5 multi-threaded compression levels, and content-aware
file fragment level deduplication. For backups it adds only files
whose date has changed, and keeps both old and new versions. You can roll
back the archive date to restore from old versions of the archive.
The default compression level is faster than zip usually with better
compression. zpaq uses a self-describing compressed format to allow
for future improvements without breaking compatibility with older
versions of the program.

%files
%doc COPYING readme.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q -c
rm -f *.exe

%build
%make CXXFLAGS="%{optflags}"

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11779 |21cr|zramstart-1.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	zram

Name:		zramstart
Version:	1.0.2
Release:	3
Summary:	Sets up zram swap devices on boot
License:	GPLv2
Url:		https://github.com/mystilleef/FedoraZram
Group:		System/Kernel and hardware
#
# git clone https://github.com/mystilleef/FedoraZram.git
# cd FedoraZram
# make tarball
#
Source0:	%{oname}-%{version}.tar.bz2
Patch1:         0001-Solve-loop-in-systemd-dependencies.patch
BuildArch:	noarch
Provides:	zramswap-enabler = %{EVRD}
Provides:	zram = %{EVRD}
# For zramstat script
Requires:	bc

%description
zram compresses swap partitions into RAM for performance.

%prep
%setup -qn %{oname}-%{version}
%apply_patches

%build
#nothing

%install
%makeinstall_std \
	PREFIX=%{_prefix} \
	SYSTEMD_UNITDIR=%{_unitdir}

mv %{buildroot}%{_unitdir}/mkzram.service %{buildroot}%{_unitdir}/zramstart.service

%post
%systemd_post zramstart.service

%preun
%systemd_preun zramstart.service

%files
%doc README*
%config(noreplace) %{_sysconfdir}/sysconfig/zram
%{_unitdir}/zramstart.service
%{_sbindir}/zramstart
%{_sbindir}/zramstat
%{_sbindir}/zramstop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11780 |21cr|zsh-autosuggestions-0.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fish-like autosuggestions for zsh 
Name:		zsh-autosuggestions
Version:	0.4.2
Release:	1
License:	BSD
Group:		Shells
Url:		https://github.com/zsh-users/zsh-autosuggestions
Source0:	https://github.com/zsh-users/zsh-autosuggestions/archive/v%{name}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	zsh
BuildArch:	noarch

%description
Fish-like autosuggestions for zsh 

%files
%doc CHANGELOG*
%dir %{_datadir}/zsh/plugins/%{name}/
%{_datadir}/zsh/plugins/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/zsh/plugins/%{name}
cp -r * %{buildroot}%{_datadir}/zsh/plugins/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11781 |21cr|zsh-completions-0.34.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Additional completion definitions for Zsh
Name:		zsh-completions
Version:	0.34.0
Release:	1
License:	BSD
Group:		Shells
Url:		https://github.com/zsh-users/zsh-completions
Source0:	https://github.com/zsh-users/zsh-completions/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	zsh
BuildArch:	noarch

%description
Additional completion definitions for Zsh.

%files
%doc README.md
%{_datadir}/zsh/site-functions/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/zsh/site-functions
cp src/_* %{buildroot}%{_datadir}/zsh/site-functions/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11782 |21cr|zsh-syntax-highlighting-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fish shell like syntax highlighting for Zsh
Name:		zsh-syntax-highlighting
Version:	0.6.0
Release:	1
License:	BSD
Group:		Shells
Url:		https://github.com/zsh-users/zsh-syntax-highlighting
Source0:	https://github.com/zsh-users/zsh-syntax-highlighting/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Requires:	zsh
BuildArch:	noarch

%description
Fish shell like syntax highlighting for Zsh.

%files
%doc README*
%dir %{_datadir}/zsh/plugins/%{name}/
%{_datadir}/zsh/plugins/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
rm -f .gitignore

%build

%install
mkdir -p %{buildroot}%{_datadir}/zsh/plugins/%{name}
cp -r * %{buildroot}%{_datadir}/zsh/plugins/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11783 |21cr|zssh-1.5c-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty debug
%define debug_package %{nil}

Summary:	Interactive file transfers through ssh
Name:		zssh
Version:	1.5c
Release:	11
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://zssh.sourceforge.net
Source0:	http://prdownloads.sf.net/zssh/%{name}-%{version}.tar.bz2
Patch0:		zssh-1.5a-install.patch
Patch1:		zssh-1.5a-ptmx.patch
Patch2:		zssh-1.5c-readline6.3.patch
BuildRequires:	readline-devel
Requires:	lrzsz

%description
zssh (Zmodem SSH) is a program for interactively transferring files to/from
a remote machine while using the secure shell (ssh). It is intended to be a
convenient alternative to scp, allowing to transfer files without having to
open another  session and re-authenticate  oneself. zssh is  an interactive
wrapper for ssh used to switch  the ssh connection between the remote shell
and  file transfers.  Files are  transferred through  the  zmodem protocol,
using the rz and sz commands.

%files
%defattr(644,root,root,755)
%doc CHANGES FAQ INSTALL README VERSION
%attr(0755,root,root) %{_bindir}/zssh
%attr(0755,root,root) %{_bindir}/ztelnet
%{_mandir}/man1/zssh.1*
%{_mandir}/man1/ztelnet.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .install~
%patch1 -p1 -b .ptmx~
%patch2 -p1 -b .rl63~

%build
autoreconf -fi
%configure
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11784 |21cr|zsync-0.6.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An rsync like transfer software over http
Name:		zsync
Version:	0.6.2
Release:	4
License:	Artistic
Group:		Networking/File transfer
Url:		http://zsync.moria.org.uk
Source0:	http://zsync.moria.org.uk/download/%{name}-%{version}.tar.bz2

%description
zsync is a file transfer program. It allows you to download a file
from a remote web server, where you have a copy of an older version of
the file on your computer already. zsync downloads only the new parts
of the file. It uses the same algorithm as rsync.

zsync does not require any special server software or a shell account
on the remote system (rsync, in comparison, requires that you have an
rsh or ssh account, or that the remote system runs rsyncd). Instead,
it uses a control file - a .zsync file - that describes the file to be
downloaded and enables zsync to work out which blocks it needs. This
file can be created by the admin of the web server hosting the
download, and placed alongside the file to download - it is generated
once, then any downloaders with zsync can use it.

%files
%defattr(-,root,root)
%doc NEWS README
%_bindir/*
%_mandir/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall

rm -fr %{buildroot}%{_defaultdocdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11785 |21cr|zulucrypt-5.7.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zuluCrypt
%global optflags %{optflags} -fcommon

%define major 1.2.0
%define pm_major 1.0.0
%define libname %mklibname %{name} %{major}
%define libname_exe %mklibname %{name}-exe %{major}
%define libname_pm %mklibname %{name}pluginmanager %{pm_major}
%define devname %mklibname %{name} -d

Summary:	Cli and GUI Front End to cryptsetup
Name:		zulucrypt
Version:	5.7.0
Release:	5
License:	GPLv2+
Group:		File tools
Url:		https://mhogomchungu.github.io/zuluCrypt
Source0:	https://github.com/mhogomchungu/zuluCrypt/releases/download/%{version}/%{oname}-%{version}.tar.xz
Source2:	zuluCrypt-5.7.0_ru.tar.gz
# polkit policy stolen from debian, https://github.com/marciosouza20/zulucrypt
Source10:	zulucrypt-gui.policy
Source11:	zulumount-gui.policy
Patch0:		zuluCrypt-5.7.0-l10n-ru.patch
Patch1:		zuluCrypt-5.7.0-rus_desktop.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	cmake
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(devmapper)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(libcryptsetup)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(pwquality)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
zuluCrypt is a front end to cryptsetup. It makes it easier to use cryptsetup
by providing a Qt-based GUI and a simpler to use CLI front end to cryptsetup.
It does the same thing ONcrypt does but without licensing problems or
requiring a user to setup sudo for it or presenting root's password.

This package contains the applications.

%files
%{_bindir}/zuluMount-cli
%{_bindir}/zuluMount-gui
%{_bindir}/zuluCrypt-cli
%{_bindir}/zuluCrypt-gui
%{_bindir}/zuluPolkit
%{_bindir}/zuluSafe
%dir %{_libdir}/zuluCrypt
%dir %{_datadir}/zuluCrypt
%{_datadir}/applications/zuluCrypt.desktop
%{_datadir}/applications/zuluMount.desktop
%{_datadir}/mime/packages/zuluCrypt.xml
%{_datadir}/pixmaps/zulu*.png
%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/zuluCrypt/*
%{_iconsdir}/hicolor/*/apps/zulu*.*
%{_iconsdir}/zuluCrypt.png
%{_iconsdir}/zuluMount.png
%{_libdir}/zuluCrypt/generic_header
%{_libdir}/zuluCrypt/gpg
%{_libdir}/zuluCrypt/hmac
%{_libdir}/zuluCrypt/keydialog-qt
%{_libdir}/zuluCrypt/keykeyfile
%{_libdir}/zuluCrypt/keyring
%{_libdir}/zuluCrypt/luks
%{_libdir}/zuluCrypt/steghide
%{_libdir}/zuluCrypt/tomb
%{_libdir}/zuluCrypt/zuluCrypt-testKey
%{_mandir}/man1/zuluCrypt-cli.1.*
%{_mandir}/man1/zuluCrypt-gui.1.*
%{_mandir}/man1/zuluMount-cli.1.*
%{_mandir}/man1/zuluMount-gui.1.*
%{_mandir}/man1/zuluSafe.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}libzulucrypt < 5.6.0
Obsoletes:	%{_lib}libzulucrypt < 5.6.0

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libzuluCrypt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_exe}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}libzulucrypt < 5.6.0

%description -n %{libname_exe}
Shared library for %{name}.

%files -n %{libname_exe}
%{_libdir}/libzuluCrypt-exe.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_pm}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}libzulucrypt < 5.6.0

%description -n %{libname_pm}
Shared library for %{name}.

%files -n %{libname_pm}
%{_libdir}/libzuluCryptPluginManager.so.%{pm_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library package
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_exe} = %{EVRD}
Requires:	%{libname_pm} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files and libraries necessary to build
programs around zulucrypt.

%files -n %{devname}
%dir %{_includedir}/zuluCrypt
%{_includedir}/zuluCrypt/libzuluCrypt.h
%{_includedir}/zuluCrypt/libzuluCrypt-exe.h
%{_includedir}/zuluCrypt/libzuluCryptPluginManager.h
%{_libdir}/libzuluCrypt.so
%{_libdir}/libzuluCrypt-exe.so
%{_libdir}/libzuluCryptPluginManager.so
%{_libdir}/pkgconfig/libzuluCrypt.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1

pushd translations
tar -xvzf %{SOURCE2}
popd

# documentation later with %%doc
mv 'ABOUT ME' AUTHORS
sed -i /docs/d CMakeLists.txt

# handle zuluSafe as a GUI application, binary needs Qt
sed -i -r 's:(zuluSafe)-cli:\1:g' CMakeLists.txt zuluSafe/CMakeLists.txt zuluSafe-cli.1
mv zuluSafe-cli.1 zuluSafe.1

# remove bundled libraries
rm -rf %{srcname}-gui/lxqt_wallet

%build
%cmake_kde5 \
	-DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name} \
	-DCMAKE_SKIP_INSTALL_RPATH=ON \
	-DLIB_SUFFIX=%{_lib} \
	-DUDEVSUPPORT=ON \
	-DNOGUI=OFF \
	-DQT5=ON \
	-DHOMEMOUNTPREFIX=OFF \
	-DNOGNOME=OFF \
	-DNOKDE=OFF \
    -DSHARE_MOUNT_PREFIX=default \
    -DREUSEMOUNTPOINT=ON \
    -DINTERNAL_ZULUPLAY=OFF \
    -DINTERNAL_LXQT_WALLET=ON \
    -DUSE_POLKIT=ON


%install
%makeinstall_std -C build


%find_lang %{name} --with-qt --all-name

install -p -m0644 -t %{buildroot}%{_datadir}/polkit-1/actions -D %{SOURCE10} %{SOURCE11}

chmod 0644 %{buildroot}%{_datadir}/applications/zulu*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11786 |21cr|zutils-1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities dealing with compressed files
Name:		zutils
Version:	1.10
Release:	1
License:	GPLv3+
Group:		Archiving/Compression
Url:		http://www.nongnu.org/zutils/zutils.html
Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.lz

BuildRequires:	lzip
Conflicts:	gzip-utils
%if %{mdvver} < 201910
Provides:	gzip-utils
%endif

%description
Zutils is a collection of utilities able to deal with any combination
of compressed and non-compressed files transparently. If any given file,
including standard input, is compressed, its decompressed content is used.
Compressed files are decompressed on the fly; no temporary files are created.
These utilities are not wrapper scripts but safer and more efficient C++
programs. In particular the "--recursive" option is very efficient in those
utilities supporting it.

The provided utilities are:
Zcat - Decompresses and copies files to standard output.
Zcmp - Decompresses and compares two files byte by byte.
Zdiff - Decompresses and compares two files line by line.
Zgrep - Decompresses and searches files for a regular expression.
Ztest - Tests integrity of compressed files.

The supported compressors are bzip2, gzip, lzip and xz. 

%files
/bin/zcat
%{_bindir}/z*
%{_infodir}/zutils.info*
%{_mandir}/man1/z*.1*
# TODO a better config?
%config(noreplace) %{_sysconfdir}/zutilsrc

#------------------------------------------------------------------------

%prep
%setup -q
perl -pi -e "s|-O2|-O2 -g|" configure 

%build
%configure \
  --prefix=%{_prefix} \
  --bindir=%{_bindir} 
%make 

%check
make check || :

%install
%makeinstall_std
install -d -m 755 %{buildroot}/bin
mv %{buildroot}%{_bindir}/zcat %{buildroot}/bin/
ln -s ../../bin/zcat %{buildroot}%{_bindir}/zcat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11787 |21cr|zxing-cpp-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ZXingCore %{major}
%define devname %mklibname ZXingCore -d

Summary:	C++ port of the ZXing ("Zebra Crossing") barcode scanning library
Name:		zxing-cpp
Version:	1.0.5
Release:	1
Group:		System/Libraries
License:	LGPLv2.1+
Url:		https://github.com/nu-book/zxing-cpp
Source0:	https://github.com/nu-book/zxing-cpp/archive/%{name}-%{version}.tar.gz
Patch0:		zxing-cpp-1.0.5-linuxify.patch
BuildRequires:	cmake ninja

%description
This project is a C++ port of ZXing Library.

Same as ZXing, following barcode are supported:
* 1D product: UPC-A UPC-E EAN-8 EAN-13
* 1D industrial: Code 39, Code 93, Code 128, Codabar,
  ITF, RSS-14, RSS-Expanded
* 2D: QR Code, Data Matrix, Aztec (beta), PDF 417 (beta)

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This project is a C++ port of ZXing Library.

Same as ZXing, following barcode are supported:
* 1D product: UPC-A UPC-E EAN-8 EAN-13
* 1D industrial: Code 39, Code 93, Code 128, Codabar,
  ITF, RSS-14, RSS-Expanded
* 2D: QR Code, Data Matrix, Aztec (beta), PDF 417 (beta)

%files -n %{libname}
%doc LICENSE README.md
%{_libdir}/libZXingCore.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc LICENSE README.md
%{_includedir}/ZXing
%{_libdir}/*.so
%{_libdir}/cmake/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
cd core
%cmake -DENABLE_ENCODERS:BOOL=ON -G Ninja
%ninja_build

%install
cd core
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11788 |21cr|zynaddsubfx-3.0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	docver 1.4.3
%define	oname ZynAddSubFX

Summary:	Real-time MIDI software synthesizer
Name:		zynaddsubfx
Version:	3.0.6
Release:	3
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/zynaddsubfx
Source0:	https://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1:	https://downloads.sourceforge.net/%{name}/%{oname}-doc-%{docver}.tar.gz
Patch0:	zynaddsubfx-3.0.6-use-ladish-instead-of-lash.patch
BuildRequires:	cmake >= 3.0
BuildRequires:	doxygen
BuildRequires:	ruby >= 1.8
BuildRequires:	ruby-devel
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(mxml)
BuildRequires:	pkgconfig(zlib)
# GUI
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(ntk)
BuildRequires:	pkgconfig(ntk_images)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrender)
# Audio
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dssi) >= 0.9.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblash)
BuildRequires:	pkgconfig(liblo) >= 0.28
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(portaudio-2.0) >= 19
BuildRequires:	pkgconfig(sndio)

# Build on i686 fails with segmentation fault: reason unknown
ExcludeArch: %{ix86}

%description
A real-time software synthesizer for Linux with many features, including
polyphony, multi-timbral and micro-tonal capabilities.  It includes randomness
of some parameters, which makes warm sounds, like analogue synthesizers.
The program has system/insertion effects, too.

%files
%doc html AUTHORS.txt COPYING NEWS.txt
%doc  ExternalPrograms/Spliter/readme.txt
%{_docdir}/%{name}/README.adoc
%{_bindir}/%{name}
%{_bindir}/%{name}-ext-gui
%{_datadir}/%{name}/*
%{_datadir}/applications/%{name}-*.desktop
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/pixmaps/%{name}.*

#-----------------------------------------------------------------------------

%package dssi
Summary:	DSSI synthesizer plugin
Group:		Sound
License:	GPLv2+
Requires:	%{name} = %{EVRD}

%description dssi
This is the DSSI synthesizer plugin of zynaddsubfx, which can be used with
DSSI hosts like qtractor, ghostess, rosegarden and others.

%files dssi
%doc COPYING
%{_libdir}/dssi/libzynaddsubfx_dssi.so

#-----------------------------------------------------------------------------

%package lv2
Summary:	LV2 synthesizer plugins
Group:		Sound
License:	GPLv2+
Requires:	%{name} = %{EVRD}
Conflicts:		%{name} < %{EVRD}

%description lv2
This package contains the LV2 plugins of zynaddsubfx.

%files lv2
%doc COPYING
%{_libdir}/lv2/ZynAddSubFX.lv2/*
%{_libdir}/lv2/ZynAddSubFX.lv2presets/*.ttl
%{_libdir}/lv2/ZynAlienWah.lv2/*
%{_libdir}/lv2/ZynChorus.lv2/*
%{_libdir}/lv2/ZynDistortion.lv2/*
%{_libdir}/lv2/ZynDynamicFilter.lv2/*
%{_libdir}/lv2/ZynEcho.lv2/*
%{_libdir}/lv2/ZynPhaser.lv2/*
%{_libdir}/lv2/ZynReverb.lv2/*

#-----------------------------------------------------------------------------

%package vst
Summary:	VST synthesizer plugins
Group:		Sound
License:	GPLv2+
Requires:	%{name} = %{EVRD}
Conflicts:		%{name} < %{EVRD}

%description vst
This package contains the VST plugins of zynaddsubfx.

%files vst
%doc COPYING
%{_libdir}/vst/Zyn*.so

#-----------------------------------------------------------------------------
%prep
%setup -q -a 1
%patch0 -p1

chmod 644 *.txt
mv %{oname}-doc-%{docver} html


%build
%cmake	-DPluginLibDir="%{_lib}" -DOpenGL_GL_PREFERENCE="GLVND"
%make


%install
%makeinstall_std -C build

# Zero-lenght files
rm -f %{buildroot}%{_datadir}/%{name}/banks/Companion/.bankdir
rm -f %{buildroot}%{_datadir}/%{name}/banks/Cormi_Noise/.bankdir
rm -f %{buildroot}%{_datadir}/%{name}/banks/net-wisdom/.bankdir
rm -f %{buildroot}%{_datadir}/%{name}/banks/olivers-other/.bankdir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11789 |21cr|zynjacku-6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           zynjacku
Summary:        LV2 plugin host
Version:        6
Release:        6
Group:          Sound
License:        GPLv2+
Url:            http://home.gna.org/zynjacku/
Source0:        http://download.gna.org/%name/%name-%version.tar.bz2
Source1:        zynjacku_logo.xpm
# (Fedora)Correct lv2 path on 64bit systems:
# https://gna.org/bugs/?13687
Patch0:         zynjacku-lv2path.patch
BuildRequires:  pkgconfig(jack)
BuildRequires:  gtk2-devel
BuildRequires:  pkgconfig(libglade-2.0)
BuildRequires:  slv2-devel
BuildRequires:  lv2-devel
BuildRequires:  pygtk2.0-devel

Requires:       jack
Requires:       pygtk2.0
Provides:       lv2rack

%description
zynjacku is JACK based, GTK (2.x) host for LV2 synths. It has one JACK
MIDI input port (routed to all hosted synths) and one (two for stereo
synths) JACK audio output port per plugin. Such design provides
multi-timbral sound by running several synth plugins.
zynjacku is a nunchaku weapon for JACK audio synthesis.
You have solid parts for synthesis itself and you have flexible part that
allows synthesis to suit your needs.
lv2rack is a host for LV2 effect plugins.

%prep
%setup -q
%patch0 -p1 -b .lv2path

%build
%configure --disable-static
%make

%install
rm -rf %{buildroot}
%makeinstall
mkdir -p %{buildroot}%{_datadir}/pixmaps/
cp %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/
mkdir -p %{buildroot}%{_datadir}/applications


#make desktop file for zynjacku
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop <<EOF
[Desktop Entry]
Name=Zynjacku
Comment=LV2 synth plugin host
Exec=%{_bindir}/%{name}
Icon=%{_datadir}/pixmaps/zynjacku_logo.xpm
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;
EOF

#make desktop file for lv2rack
cat > %{buildroot}%{_datadir}/applications/mandriva-lv2rack.desktop <<EOF
[Desktop Entry]
Name=LV2Rack
Comment=LV2 effects plugin host
Exec=%{_bindir}/lv2rack
Icon=%{_datadir}/pixmaps/zynjacku_logo.xpm
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;
EOF

# don't ship .la
find %{buildroot} -name '*.la' | xargs rm -f

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README AUTHORS NEWS

%{_bindir}/%name
%{_bindir}/zynspect
%{_bindir}/lv2rack
%{python_sitelib}/zynworld/*
%dir %{_datadir}/%name
%{_datadir}/%name/*
%{_datadir}/pixmaps/%{name}_logo.xpm
%{_datadir}/applications/mandriva-%{name}.desktop
%{_datadir}/applications/mandriva-lv2rack.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11790 |21cr|zzuf-0.15-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:    A transparent application input fuzzer
Name:		zzuf
Version:	0.15
Release:	3
Source0:	http://libcaca.zoy.org/files/%{name}/%{name}-%{version}.tar.gz
License:	WTFPL
Group:		Development/Other
Url:		http://libcaca.zoy.org/wiki/%{name}
BuildRequires:	autoconf2.5

%description
zzuf is a transparent application input fuzzer. Its purpose is to find bugs in
applications by corrupting their user-contributed data (which more than often
comes from untrusted sources on the Internet). It works by intercepting file
and network operations and changing random bits in the program?s input.

zzuf's behaviour is deterministic, making it easier to reproduce bugs. Its
main areas of use are:
   quality assurance: use zzuf to test existing software, or integrate it
      into your own software?s testsuite
   security: very often, segmentation faults or memory corruption issues
      mean a potential security hole, zzuf helps exposing some of them

zzuf's primary target is media players, image viewers and web browsers,
because the data they process is inherently insecure, but it was also
successfully used to find bugs in system utilities such as objdump.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall
rm -f %{_libdir}/%{name}/*.a

%clean

%files
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_libdir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11791 |21mr|389-ds-base-1.4.4.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define _disable_rebuild_configure %nil
%define _disable_ld_no_undefined %nil

%bcond_without	selinux
%bcond_without	check
%bcond_without	perl
%bcond_with	debug
%bcond_without	cockpit

Summary:	389 Directory Server
Name:		389-ds-base
Version:	1.4.4.4
Release:	16
License:	GPLv3+
Group:		System/Servers
Url:		https://www.port389.org/
Source0:	https://releases.pagure.org/389-ds-base/%{name}-%{version}.tar.bz2
%if %{with cockpit}
Source1:	node_modules.tar.gz
%endif
Source2:	dirsrv.sysusers.conf
#Patch0:		389-ds-base-1.4.1.1-nss3-cert-h-path.patch
#remove test, test fail in rosa build farm
Patch1:		389-ds-base-remove-memtest.patch
# Canonical's employee Timo Aaltonen <tjaalton@debian.org> maintains
# FreeIPA stack in Debian and Ubuntu, so let's prefix his patches with "UBUNTU"
#Patch2:		UBUNTU-fix-systemctl-path.patch
Patch3:		UBUNTU-use-bash-instead-of-sh.patch
Patch4:		0001-Fix-path-to-jemalloc.patch
# python3.11
%if %{mdvver} > 202110
Patch5:		389-ds-base-setuptools.patch
%endif
# CVE-2021-3652
Patch6:		0001-Issue-4817-BUG-locked-crypt-accounts-on-import-may-a.patch
Patch7:		fix-intel-e2k.patch
Patch8:		CVE-2022-1949-1.patch
Patch9:		CVE-2022-1949-2.patch
Patch11:	389-ds-base-build_manpages.patch

BuildRequires:	cracklib-devel
BuildRequires:	doxygen
%if %{with debug}
BuildRequires:	%{_lib}asan2
%endif
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	openldap-devel
BuildRequires:	net-snmp-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(systemd)

%if %{with cockpit}
BuildRequires:	rsync
BuildRequires:	nodejs
%endif

%if %{with check}
BuildRequires:	pkgconfig(cmocka)
%endif

%if %{with perl}
BuildRequires:	perl-bignum
BuildRequires:	perl-devel
BuildRequires:	perl-Archive-Tar
BuildRequires:	perl-DBM-Deep
BuildRequires:	perl-Mozilla-LDAP
BuildRequires:	perl-NetAddr-IP
%endif

# jmalloc overrides malloc() from libc and is LD_PRELOAD'ed
Requires:	%{_libdir}/libjemalloc.so.2
# (Fedora) required to support the mandatory LDAP SASL mechs
Requires:	%{_lib}sasl2-plug-gssapi
Requires:	%{_lib}sasl2-plug-crammd5
Requires:	%{_lib}sasl2-plug-plain
Requires:	nss
Requires:	python3-lib389

Requires(post):	/bin/systemd-sysusers

%description
389 Directory Server is an LDAPv3 compliant server. The base package includes
the LDAP server and command line utilities for server administration.

%files
%doc LICENSE LICENSE.GPLv3+ LICENSE.mit LICENSE.openssl README.md
%dir %{_sysconfdir}/dirsrv
%dir %{_sysconfdir}/dirsrv/schema
%config(noreplace) %{_sysconfdir}/dirsrv/schema/*.ldif
%dir %{_sysconfdir}/dirsrv/config
%dir %{_sysconfdir}/systemd/system/dirsrv.target.wants
%config(noreplace) %{_sysconfdir}/dirsrv/config/slapd-collations.conf
%config(noreplace) %{_sysconfdir}/dirsrv/config/certmap.conf
%config(noreplace) %{_sysconfdir}/dirsrv/config/ldap-agent.conf
%config(noreplace) %{_sysconfdir}/dirsrv/config/template-initconfig
%dir %{_datadir}/dirsrv
%{_datadir}/dirsrv/data/
%{_datadir}/dirsrv/inf/
%{_datadir}/dirsrv/mibs/
%{_datadir}/dirsrv/schema/
%{_unitdir}/dirsrv-snmp.service
%{_unitdir}/dirsrv.target
%{_unitdir}/dirsrv@.service
%{_unitdir}/dirsrv@.service.d/custom.conf

%{_bindir}/dbscan
%{_bindir}/ds-replcheck
%{_bindir}/ds-logpipe.py
%{_bindir}/ldclt
%{_bindir}/logconv.pl
%{_bindir}/pwdhash
%{_bindir}/readnsstate

%{_sbindir}/bak2db
%{_sbindir}/db2bak
%{_sbindir}/db2index
%{_sbindir}/db2ldif
%{_sbindir}/dbverify
%{_sbindir}/ldap-agent
%{_sbindir}/ldif2db
%{_sbindir}/ldif2ldap
%{_sbindir}/ns-slapd
%{_sbindir}/restart-dirsrv
%{_sbindir}/start-dirsrv
%{_sbindir}/status-dirsrv
%{_sbindir}/stop-dirsrv
%{_sbindir}/upgradedb
%{_sbindir}/vlvindex

%dir %{_libdir}/dirsrv
%dir %{_libdir}/dirsrv/python
%{_libdir}/dirsrv/python/*.py*
%{_libdir}/dirsrv/python/__pycache__
%dir %{_libdir}/dirsrv/plugins
%{_libdir}/dirsrv/plugins/*.so
%{_libexecdir}/ds_selinux_*
%{_libexecdir}/ds_systemd_*
%{_datadir}/gdb/auto-load/*
%{_sysctldir}/70-dirsrv.conf
%dir %{_localstatedir}/dirsrv
%dir %{_localstatedir}/lib/dirsrv
%dir %{_logdir}/dirsrv
%ghost %dir %{_localstatedir}/lock/dirsrv
%{_sysusersdir}/dirsrv.conf
%{_mandir}/man1/dbscan.1.*
%{_mandir}/man1/ds-replcheck.1.*
%{_mandir}/man1/ds-logpipe.py.1.*
%{_mandir}/man1/ldclt.1.*
%{_mandir}/man1/logconv.pl.1.*
%{_mandir}/man1/pwdhash.1.*
%{_mandir}/man1/readnsstate.1.*
%{_mandir}/man1/ldap-agent.1.*
%{_mandir}/man8/ldif2ldap.8.*
%{_mandir}/man8/ns-slapd.8.*
%{_mandir}/man8/bak2db.8.*
%{_mandir}/man8/db2bak.8.*
%{_mandir}/man8/db2index.8.*
%{_mandir}/man8/db2ldif.8.*
%{_mandir}/man8/dbverify.8.*
%{_mandir}/man8/ldif2db.8.*
%{_mandir}/man8/restart-dirsrv.8.*
%{_mandir}/man8/start-dirsrv.8.*
%{_mandir}/man8/status-dirsrv.8.*
%{_mandir}/man8/stop-dirsrv.8.*
%{_mandir}/man8/upgradedb.8.*
%{_mandir}/man8/vlvindex.8.*
%{_mandir}/man5/99user.ldif.5.*
%{_mandir}/man5/certmap.conf.5.*
%{_mandir}/man5/template-initconfig.5.*
%{_mandir}/man5/slapd-collations.conf.5.*
%{_mandir}/man5/dirsrv.5.*
%{_mandir}/man5/dirsrv.systemd.5.*

%post
%sysusers_create dirsrv.conf

output=/dev/null
output2=/dev/null
# reload to pick up any changes to systemd files
/bin/systemctl daemon-reload >$output 2>&1 || :
# find all instances
instances="" # instances that require a restart after upgrade
ninst=0 # number of instances found in total
if [ -n "$DEBUGPOSTTRANS" ] ; then
	output=$DEBUGPOSTTRANS
	output2=${DEBUGPOSTTRANS}.upgrade
fi

# Reload our sysctl before we restart (if we can)
sysctl --system &> $output; true

echo looking for instances in %{_sysconfdir}/dirsrv > $output 2>&1 || :
instbase="%{_sysconfdir}/dirsrv"
for dir in $instbase/slapd-* ; do
	echo dir = $dir >> $output 2>&1 || :
	if [ ! -d "$dir" ] ; then continue ; fi
	case "$dir" in *.removed) continue ;; esac
	basename=`basename $dir`
	inst="dirsrv@`echo $basename | sed -e 's/slapd-//g'`"
	echo found instance $inst - getting status >> $output 2>&1 || :
	if /bin/systemctl -q is-active $inst ; then
		echo instance $inst is running >> $output 2>&1 || :
		instances="$instances $inst"
	else
		echo instance $inst is not running >> $output 2>&1 || :
	fi
	ninst=`expr $ninst + 1`
done
if [ $ninst -eq 0 ] ; then
	echo no instances to upgrade >> $output 2>&1 || :
	exit 0 # have no instances to upgrade - just skip the rest
fi
# shutdown all instances
echo shutting down all instances . . . >> $output 2>&1 || :
for inst in $instances ; do
	echo stopping instance $inst >> $output 2>&1 || :
	/bin/systemctl stop $inst >> $output 2>&1 || :
done
echo remove pid files . . . >> $output 2>&1 || :
/bin/rm -f /var/run/dirsrv*.pid /var/run/dirsrv*.startpid
# do the upgrade
echo upgrading instances . . . >> $output 2>&1 || :
DEBUGPOSTSETUPOPT=`echo $DEBUGPOSTSETUP | sed -e "s/[^d]//g"`
if [ -n "$DEBUGPOSTSETUPOPT" ] ; then
	%{_sbindir}/setup-ds.pl -l $output2 -$DEBUGPOSTSETUPOPT -u -s General.UpdateMode=offline >> $output 2>&1 || :
else
	%{_sbindir}/setup-ds.pl -l $output2 -u -s General.UpdateMode=offline >> $output 2>&1 || :
fi

# restart instances that require it
for inst in $instances ; do
	echo restarting instance $inst >> $output 2>&1 || :
	/bin/systemctl start $inst >> $output 2>&1 || :
done
exit 0

%systemd_post dirsrv-snmp.service

%preun
if [ $1 -eq 0 ]; then # Final removal
	# remove instance specific service files/links
	rm -rf %{_sysconfdir}/systemd/system/dirsrv.wants/* > /dev/null 2>&1 || :
fi

%systemd_preun dirsrv-snmp.service

%postun
/sbin/ldconfig
if [ $1 = 0 ]; then # Final removal
	rm -rf /var/run/dirsrv
fi

%systemd_postun_with_restart dirsrv-snmp.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Core libraries for 389 Directory Server
Group:		System/Servers
Provides:	%{name}-libs = %{EVRD}
Conflicts:	svrcore

%description -n %{libname}
Core libraries for the 389 Directory Server base package. These libraries
are used by the main package and the -devel package. This allows the -devel
package to be installed with just the -libs package without the main package.

%files -n %{libname}
%doc LICENSE LICENSE.GPLv3+ LICENSE.mit LICENSE.openssl README.md
%dir %{_libdir}/dirsrv
%{_libdir}/libslapd.so.%{major}*
%{_libdir}/libns-dshttpd-%{version}*.so
%{_libdir}/libsds.so.%{major}*
%{_libdir}/librewriters.so.%{major}*
%{_libdir}/libldaputil.so.%{major}*
%{_libdir}/libsvrcore.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for 389 Directory Server
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(nspr)
Requires:	pkgconfig(nss)
Requires:	pkgconfig(svrcore)
Requires:	openldap-devel
Requires:	pkgconfig(talloc)
Requires:	pkgconfig(libevent)
Requires:	pkgconfig(tevent)
Requires:	pkgconfig(systemd)
Provides:	%{name}-devel = %{EVRD}
Conflicts:	svrcore-devel

%description -n %{devname}
Development Libraries and headers for the 389 Directory Server base package.

%files -n %{devname}
%doc LICENSE LICENSE.GPLv3+ LICENSE.mit LICENSE.openssl README.md
%{_includedir}/dirsrv
%{_includedir}/svrcore.h
%{_libdir}/libslapd.so
%{_libdir}/libns-dshttpd.so
%{_mandir}/man3/*
%{_libdir}/libsds.so
%{_libdir}/librewriters.so
%{_libdir}/libldaputil.so
%{_libdir}/libsvrcore.so
%{_libdir}/pkgconfig/*

#------------------------------------------------------------------

%package legacy-tools
Summary:	Legacy utilities for 389 Directory Server
Group:		System/Base
Requires:	%{name} = %{EVRD}

%description legacy-tools
Legacy (and deprecated) utilities for 389 Directory Server. This includes
the old account management and task scripts. These are deprecated in favour of
the dscreate, dsctl, dsconf and dsidm tools.

%files legacy-tools
%{_bindir}/infadd
%{_bindir}/ldif
%{_bindir}/migratecred
%{_bindir}/mmldif
%{_bindir}/rsearch

%{_sbindir}/dbmon.sh
%{_sbindir}/dn2rdn
%{_sbindir}/monitor
%{_sbindir}/restoreconfig
%{_sbindir}/saveconfig
%{_sbindir}/suffix2instance
%{_sbindir}/upgradednformat

%{_mandir}/man1/infadd.1.*
%{_mandir}/man1/ldif.1.*
%{_mandir}/man1/migratecred.1.*
%{_mandir}/man1/mmldif.1.*
%{_mandir}/man1/rsearch.1.*
%{_mandir}/man8/dbmon.sh.8.*
%{_mandir}/man8/dn2rdn.8.*
%{_mandir}/man8/monitor.8.*
%{_mandir}/man8/restoreconfig.8.*
%{_mandir}/man8/saveconfig.8.*
%{_mandir}/man8/suffix2instance.8.*
%{_mandir}/man8/upgradednformat.8.*

%if %{with perl}
%dir %{_datadir}/dirsrv/properties
%{_datadir}/dirsrv/properties/ns-slapd.properties
%{_datadir}/dirsrv/properties/*.res
%{_datadir}/dirsrv/script-templates
%{_datadir}/dirsrv/updates

%{_bindir}/cl-dump
%{_bindir}/cl-dump.pl
%{_bindir}/dbgen.pl
%{_bindir}/repl-monitor
%{_bindir}/repl-monitor.pl

%{_sbindir}/bak2db.pl
%{_sbindir}/cleanallruv.pl
%{_sbindir}/db2bak.pl
%{_sbindir}/db2index.pl
%{_sbindir}/db2ldif.pl
%{_sbindir}/fixup-linkedattrs.pl
%{_sbindir}/fixup-memberof.pl
%{_sbindir}/ldif2db.pl
%{_sbindir}/migrate-ds.pl
%{_sbindir}/ns-accountstatus.pl
%{_sbindir}/ns-activate.pl
%{_sbindir}/ns-inactivate.pl
%{_sbindir}/ns-newpwpolicy.pl
%{_sbindir}/remove-ds.pl
%{_sbindir}/schema-reload.pl
%{_sbindir}/setup-ds.pl
%{_sbindir}/syntax-validate.pl
%{_sbindir}/usn-tombstone-cleanup.pl
%{_sbindir}/verify-db.pl

%{_mandir}/man1/dbgen.pl.1.*
%{_mandir}/man1/repl-monitor.1.*
%{_mandir}/man1/repl-monitor.pl.1.*
%{_mandir}/man1/cl-dump.1.*
%{_mandir}/man1/cl-dump.pl.1.*
%{_mandir}/man8/bak2db.pl.8.*
%{_mandir}/man8/cleanallruv.pl.8.*
%{_mandir}/man8/db2bak.pl.8.*
%{_mandir}/man8/db2index.pl.8.*
%{_mandir}/man8/db2ldif.pl.8.*
%{_mandir}/man8/fixup-linkedattrs.pl.8.*
%{_mandir}/man8/fixup-memberof.pl.8.*
%{_mandir}/man8/ldif2db.pl.8.*
%{_mandir}/man8/migrate-ds.pl.8.*
%{_mandir}/man8/ns-accountstatus.pl.8.*
%{_mandir}/man8/ns-activate.pl.8.*
%{_mandir}/man8/ns-inactivate.pl.8.*
%{_mandir}/man8/ns-newpwpolicy.pl.8.*
%{_mandir}/man8/remove-ds.pl.8.*
%{_mandir}/man8/schema-reload.pl.8.*
%{_mandir}/man8/setup-ds.pl.8.*
%{_mandir}/man8/syntax-validate.pl.8.*
%{_mandir}/man8/usn-tombstone-cleanup.pl.8.*
%{_mandir}/man8/verify-db.pl.8.*

%{_libdir}/dirsrv/perl/
%endif

#------------------------------------------------------------------

%package -n python3-lib389
Summary:	Summary:  A library for accessing, testing, and configuring the 389 Directory Server
Group:		Development/Python
BuildRequires:    pkgconfig(python3)
BuildRequires:    python3egg(setuptools)
BuildRequires:    python3egg(python-ldap)
BuildRequires:    python3egg(six)
BuildRequires:    python3egg(pyasn1)
BuildRequires:    python3egg(pyasn1-modules)
BuildRequires:    python3egg(python-dateutil)
BuildRequires:    python3egg(argcomplete)
BuildRequires:    python3egg(argparse-manpage)
#BuildRequires:    python3egg(policycoreutils)
#BuildRequires:    python3egg(libselinux)

Requires: krb5-workstation
Requires: openssl
Requires: iproute2
Requires: python3
Requires: python3-distro
Requires: python3-pytest
Requires: python3-ldap
Requires: python3-six
Requires: python3-pyasn1
Requires: python3-pyasn1-modules
Requires: python3-dateutil
Requires: python3-argcomplete
#Requires: python3-libselinux
Requires: python3-setuptools
BuildArch:	noarch

%description -n python3-lib389
This module contains tools and libraries for accessing, testing,
 and configuring the 389 Directory Server.

%files -n python3-lib389
%doc LICENSE LICENSE.GPLv3+
%{python3_sitelib}/lib389*
%{_sbindir}/dsconf
%{_mandir}/man8/dsconf.8.xz
%{_sbindir}/dscreate
%{_mandir}/man8/dscreate.8.xz
%{_sbindir}/dsctl
%{_mandir}/man8/dsctl.8.xz
%{_sbindir}/dsidm
%{_mandir}/man8/dsidm.8.xz
%{_libexecdir}/dirsrv/dscontainer

#------------------------------------------------------------------

%if %{with cockpit}
%package -n cockpit-389-ds
Summary:	Cockpit UI Plugin for configuring and administering the 389 Directory Server
BuildArch:	noarch
Group:		System/Base
Requires:	python3
Requires:	python3-lib389
Requires:	cockpit

%description -n cockpit-389-ds
A cockpit UI Plugin for configuring and administering the 389 Directory Server

%files -n cockpit-389-ds
%dir %{_datadir}/metainfo/389-console
%{_datadir}/metainfo/389-console/org.port389.cockpit_console.metainfo.xml
%{_datadir}/cockpit/389-console
%endif

#------------------------------------------------------------------

%prep
%autosetup -p1
%if %{with cockpit}
tar -xzf %{SOURCE1} -C "./src/cockpit/389-console"
%endif

%build

aclocal
autoheader
autoconf
autoreconf -fiv
automake --add-missing
%configure \
	--enable-autobind \
	--with-selinux \
	--with-openldap \
	--with-tmpfiles-d=%{_tmpfilesdir} \
	--with-systemdsystemunitdir=%{_unitdir} \
	--with-systemdsystemconfdir=%{_sysconfdir}/systemd/system \
	--with-perldir=%{_bindir} \
	--with-systemdgroupname=dirsrv.target \
	--with-svrcore-inc=%{_includedir} \
	--with-svrcore-lib=%{_libdir} \
	--with-nspr-lib=%{_libdir} \
	--with-nspr-inc=%{_includedir}/nspr4 \
	--with-nss-lib=%{_libdir} \
	--with-nss-inc=%{_includedir}/nss \
	--with-systemd \
%if %{without cockpit}
	--disable-cockpit \
%endif
%if %{with perl}
	--enable-legacy --enable-perl \
%endif
%if %{with debug}
	--enable-asan \
	--enable-debug \
%endif
%if %{with check}
	--enable-cmocka
%endif

%make

%if %{with cockpit}
# cockpit plugin
%make 389-console
%endif

# lib389
pushd ./src/lib389
%py3_build
popd

# argparse-manpage dynamic man pages have hardcoded man v1 in header,
# need to change it to v8
sed -i  "1s/\"1\"/\"8\"/" %{_builddir}/%{name}-%{version}%{?prerel}/src/lib389/man/dsconf.8
sed -i  "1s/\"1\"/\"8\"/" %{_builddir}/%{name}-%{version}%{?prerel}/src/lib389/man/dsctl.8
sed -i  "1s/\"1\"/\"8\"/" %{_builddir}/%{name}-%{version}%{?prerel}/src/lib389/man/dsidm.8
sed -i  "1s/\"1\"/\"8\"/" %{_builddir}/%{name}-%{version}%{?prerel}/src/lib389/man/dscreate.8

%check
%make check || { cat test-suite.log; exit 1; }

%install
%make_install

mkdir -p %{buildroot}%{_localstatedir}/{lib/,lock/,log/,}dirsrv

# for systemd
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/dirsrv.target.wants

# remove libtool and static libs
find %{buildroot} -type f \( -name "*.la" -o -name "*.a" \) -delete

%if %{with perl}
# make sure perl scripts have a proper shebang
sed -i 's|#0|#!%{_bindir}/perl|' %{buildroot}%{_datadir}/dirsrv/script-templates/template-*.pl
sed -i 's|File::Spec->tmpdir|"/tmp"|g' %{buildroot}%{_libdir}/dirsrv/perl/DSCreate.pm
%endif

# move main libraries to common directory
mv %{buildroot}%{_libdir}/dirsrv/*.so* %{buildroot}%{_libdir}/

# Copy in our docs from doxygen
mkdir -p %{buildroot}%{_mandir}/man3
cp man/man3/* %{buildroot}%{_mandir}/man3/

# Fix path to systemctl in scripts
sed -i 's|%{_bindir}/systemctl|/bin/systemctl|' %{buildroot}%{_sbindir}/*-dirsrv

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/dirsrv.conf

# lib389
pushd src/lib389
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11792 |21mr|3dprinter-udev-rules-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Rules for udev to give regular users access to operate 3D printers
Name:		3dprinter-udev-rules
Version:	0.2.2
Release:	1
License:	CC0
Group:		System/Configuration/Printing
Url:		https://github.com/hroncok/%{name}
Source0:	%{url}/archive/v%{version}.tar.gz
BuildArch:	noarch

%description
Normally, when you connect a RepRap like 3D printer to a Linux machine by an
USB cable, you need to be in dialout or similar group to be able to control
it via OctoPrint, Printrun, Cura or any other control software. Not any more.

Install this rule to grant all users read and write access to collected
devices based on the VID and PID.

Disclaimer: Such device might not be a 3D printer, it my be an Arduino, it
might be a modem and it might even be a blender. But normally you would
add your user to dialout and get access to all of those and more anyway.
So I guess be careful when some of the users should not get access to
your blenders.

%files
%doc LICENSE README.md
%{_udevrulesdir}/66-3dprinter.rules

#-------------------------------------------------------------------------

%prep
%setup -q

%build
# nothing

%install
install -D -p -m 644 66-3dprinter.rules %{buildroot}%{_udevrulesdir}/66-3dprinter.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11793 |21mr|99soft-oss-parent-10-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          99soft-oss-parent
Version:       10
Release:       12
Summary:       99 Software Foundation parent pom
License:       ASL 2.0
URL:           https://github.com/99soft/infra
Source0:       https://github.com/99soft/infra/archive/oss-parent-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The 99 Software Foundation parent pom.

%prep
%setup -q -n infra-oss-parent-%{version}
%pom_remove_plugin :appassembler-maven-plugin
%pom_remove_plugin :nexus-maven-plugin
%pom_remove_plugin :taglist-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
# Execution enforce-java of goal org.apache.maven.plugins:maven-enforcer-plugin:1.4.1:enforce failed. NullPointerException
%pom_remove_plugin :maven-enforcer-plugin

%pom_xpath_remove "pom:project/pom:build/pom:extensions"

# Remove doclava
%pom_xpath_remove "pom:reporting/pom:plugins/pom:plugin[pom:artifactId[text()='maven-javadoc-plugin']]/pom:configuration"
%pom_xpath_inject "pom:reporting/pom:plugins/pom:plugin[pom:artifactId[text()='maven-javadoc-plugin']]" '
<configuration>
  <minmemory>128m</minmemory>
  <maxmemory>1024m</maxmemory>
  <breakiterator>true</breakiterator>
  <quiet>true</quiet>
  <verbose>false</verbose>
  <source>${javac.src.version}</source>
  <linksource>true</linksource>
</configuration>'

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.creole
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11794 |21mr|a2ps-4.14-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_emacs}%{?!build_emacs:%bcond_without emacs}

Summary:	Converts text and other types of files to PostScript(TM)
Name:		a2ps
Version:	4.14
Release:	19
License:	GPLv3+
Group:		Publishing
Url:		http://www.gnu.org/software/a2ps/
Source:		http://ftp.gnu.org/gnu/a2ps/%{name}-%{version}.tar.gz
Patch1:		a2ps-4.14-enable-display.patch
Patch2:		a2ps-4.14-fix-str-fmt.patch
# Ensure the paper size is properly modified upon locale (from fedora)
Patch3:		a2ps-4.14-glibcpaper.patch
Patch4:		a2ps-4.14-texinfo-5.x.patch
# Security enhancement (from fedora)
Patch5:		a2ps-4.14-security.patch
Patch6:		a2ps-4.14-texinfo-6.7-encoding.patch
BuildRequires:	bison
%if %{with emacs}
BuildRequires:	emacs-bin
%endif
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	gperf
BuildRequires:	groff-perl
BuildRequires:	imagemagick
BuildRequires:	mawk
BuildRequires:	psutils
#BuildRequires:	tetex-dvips
#BuildRequires:	tetex-latex
BuildRequires:	texlive
BuildRequires:	texinfo

Requires:	binutils
Requires:	file
Requires:	groff-perl
Requires:	imagemagick
Requires:	psutils

%description
The a2ps filter converts text and other types of files to PostScript(TM).
a2ps has pretty-printing capabilities and includes support for a wide
number of programming languages, encodings (ISO Latins, Cyrillic, etc.),
and medias.

%files -f %{name}.lang
%defattr(644,root,root,755)
%config(noreplace) %{_sysconfdir}/a2ps.cfg
%config(noreplace) %{_sysconfdir}/a2ps-site.cfg
%doc AUTHORS NEWS README TODO THANKS
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_datadir}/%{name}/afm/make_fonts_map.sh
%{_infodir}/a2ps.info*
%{_infodir}/ogonkify.info*
%{_infodir}/regex.info*
%{_mandir}/man1/*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/README
%{_datadir}/%{name}/afm/*.afm
%{_datadir}/%{name}/afm/*.map
%{_datadir}/%{name}/encoding/
%{_datadir}/%{name}/fonts/
%{_datadir}/%{name}/ppd/
%{_datadir}/%{name}/ps/
%{_datadir}/%{name}/sheets/
%{_datadir}/ogonkify/
%if %{with emacs}
%{_datadir}/emacs/site-lisp/a2ps-print.el
%{_datadir}/emacs/site-lisp/a2ps.el
%{_datadir}/emacs/site-lisp/*.elc
%endif

%post
# Adapt /usr/share/a2ps/afm/fonts.map to the current system environment
( cd %{_datadir}/%{name}/afm/
  ./make_fonts_map.sh > /dev/null 2>&1
  mv -f fonts.map.new fonts.map
)

#----------------------------------------------------------------------------

%package devel
Summary:	Include files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
The a2ps filter converts text and other types of files to PostScript(TM).
A2ps has pretty-printing capabilities and includes support for a wide
number of programming languages, encodings (ISO Latins, Cyrillic, etc.),
and medias.

This package holds include files.

%files devel
%defattr(644,root,root,755)
%doc ChangeLog
%{_includedir}/*

#----------------------------------------------------------------------------

%package static-devel
Summary:	Static libraries for %{name}
Group:		Development/Other
Requires(pre):	%{name}-devel = %{EVRD}

%description static-devel
The a2ps filter converts text and other types of files to PostScript(TM).
A2ps has pretty-printing capabilities and includes support for a wide
number of programming languages, encodings (ISO Latins, Cyrillic, etc.),
and medias.

This package holds static libraries.

%files static-devel
%defattr(644,root,root,755)
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11795 |21mr|a52dec-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A free ATSC A/52 stream decoder library
Name:		a52dec
Version:	0.8.0
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://liba52.sourceforge.net
Source0:    https://distfiles.adelielinux.org/source/a52dec/a52dec-%{version}.tar.gz
BuildRequires:	autoconf2.5
BuildRequires:	chrpath
Provides:	liba52-apps = %{EVRD}

%description
liba52 is a free library for decoding ATSC A/52 streams.

The A/52 standard is used in a variety of applications, including
digital television and DVD. It is also known as AC-3.

%files
%doc AUTHORS COPYING NEWS README TODO HISTORY
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
liba52 is a free library for decoding ATSC A/52 streams.

The A/52 standard is used in a variety of applications, including
digital television and DVD. It is also known as AC-3.

This package contains libraries needed to run programs linked with %{name}.

%files -n %{libname}
%{_libdir}/liba52.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
liba52 is a free library for decoding ATSC A/52 streams.

The A/52 standard is used in a variety of applications, including
digital television and DVD. It is also known as AC-3.

This package contains development files needed to compile programs which
use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
autoconf

%build
export CFLAGS="%{optflags} -fPIC"
%configure --enable-shared --disable-static
%make_build

%install
%make_install
chrpath -d %{buildroot}%{_bindir}/a52dec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11796 |21mr|aalib-1.4.0-0.rc5.28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname %{name}-1.4rc5

%define major 1
%define libname %mklibname aa %{major}
%define devname %mklibname aa -d

Summary:	AA (Ascii Art) library
Name:		aalib
Version:	1.4.0
Release:	0.rc5.28
License:	LGPLv2+
Group:		System/Libraries
Url:		http://aa-project.sourceforge.net/aalib/
Source0:	http://prdownloads.sourceforge.net/aa-project/%{fname}.tar.bz2
Patch0:		aalib-info.patch
Patch1:		aalib-rpath.patch
Patch2:		aalib-1.4-automake18.patch
Patch3:		aalib-1.4.0-automake-1.13.patch
Patch4:		aalib-1.4.0-texinfo-5.x.patch
BuildRequires:	texinfo
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(x11)

%description
AA-lib is a low level gfx library just as many other libraries are.
The main difference is that AA-lib does not require graphics device. In
fact, there is no graphical output possible. AA-lib replaces those
old-fashioned output methods with powerful ascii-art renderer. Now my
linux boots with a nice penguin logo at secondary display (yes! Like
Win95 does:) AA-lib API is designed to be similar to other graphics
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	AA (Ascii Art) library
Group:		System/Libraries

%description -n %{libname}
AA-lib is a low level gfx library just as many other libraries are.
The main difference is that AA-lib does not require graphics device. In
fact, there is no graphical output possible. AA-lib replaces those
old-fashioned output methods with powerful ascii-art renderer. Now my
linux boots with a nice penguin logo at secondary display (yes! Like
Win95 does:) AA-lib API is designed to be similar to other graphics
libraries. Learning a new API would be a piece of cake!
The AA library is needed for GIMP

%files -n %{libname}
%doc NEWS README
%{_libdir}/libaa.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for developing apps which will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libaa-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}aa-static-devel < 1.4.0-0.rc5.27

%description -n %{devname}
Install this package if you want to develop applications that
will use the %{name} library.

%files -n %{devname}
%doc README ChangeLog
%{_bindir}/aalib-config
%{_libdir}/*.so
%{_infodir}/*.*
%{_includedir}/*
%{_datadir}/aclocal/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package progs
Summary:	Tools to %{name}
Group:		Development/C

%description progs
AA-lib tools.

%files progs
%doc README
%{_bindir}/aafire
%{_bindir}/aainfo
%{_bindir}/aasavefont
%{_bindir}/aatest
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11797 |21mr|aalto-xml-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          aalto-xml
Version:       1.0.0
Release:       8
Summary:       Ultra-high performance non-blocking XML processor (Stax/Stax2, SAX/SAX2)
# Source files without license headers https://github.com/FasterXML/aalto-xml/issues/38
# See https://github.com/FasterXML/jackson-modules-base/issues/18, from main developer:
# "To whoever it concerns: policy of the Jackson project is to only include licensing information as project
# level metadata (in repo, pom.xml, artifact within source and binary jars), and not as headers in source files.
# Licensing is Apache License 2.0, for Jackson 2.x as indicated by various artifacts, and we have no plans to change this."
License:       ASL 2.0
URL:           http://wiki.fasterxml.com/AaltoHome
Source0:       https://github.com/FasterXML/aalto-xml/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml:oss-parent:pom:)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.woodstox:stax2-api)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Aalto XML processor is a StAX XML processor implementation. It
is not directly related to other existing mature implementations
(such as Woodstox or Sun Java Streaming XML Parser), although it
did come about as a prototype for evaluating implementation strategies
that differ from those traditionally used for Java-based parsers.

Two main goals (above and beyond stock StAX/SAX API implementation) are:

° Ultra-high performance parsing by making the Common Case Fast
  (similar to original RISC manifesto). This may mean limiting
  functionality, but never compromising correctness. XML 1.0
  compliance is not sacrificed for speed.

° Allowing non-block, asynchronous parsing: it should be possible to
  "feed" more input and incrementally get more XML events out, without
  forcing the current thread to block on I/O read operation.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
# Cleanup
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

sed -i 's/\r//' src/main/resources/META-INF/LICENSE
sed -i 's/\r//' release-notes/asl/*
mv release-notes/asl/ASL2.0 LICENSE
mv release-notes/asl/LICENSE NOTICE

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md release-notes/*
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11798 |21mr|abattis-cantarell-fonts-0.303.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname		cantarell-fonts
%define fontconf	31-cantarell.conf
%define fontconfvf	31-cantarell-vf.conf

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Cantarell, a Humanist sans-serif font family
Name:		abattis-%{oname}
Version:	0.303.1
Release:	1
License:	OFL
Group:		System/Fonts/True type
Url:		http://abattis.org/cantarell/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/cantarell-fonts/%{url_ver}/%{oname}-%{version}.tar.xz
Source1:	31-cantarell.conf
Source2:	31-cantarell-vf.conf
BuildArch:	noarch
BuildRequires:	meson
BuildRequires:	fontforge
BuildRequires:	psautohint
BuildRequires:	python3-cffsubr
BuildRequires:	python3-skia-pathops
BuildRequires:	python3-statmake
BuildRequires:	python3-fontmath
BuildRequires:	python3-fs
BuildRequires:	python3-ufo2ft
BuildRequires:	python3-ufolib2

%description
Cantarell is a set of fonts designed by Dave Crossland. It is a 
sans-serif humanist typeface family.

%prep
%setup -qn %{oname}-%{version}

%build
%meson -Duseprebuilt=false -Dbuildstatics=true
%meson_build

%install
%meson_install

install -m 0755 -d %{buildroot}%{_datadir}/fontconfig/conf.avail
install -m 0755 -d %{buildroot}%{_sysconfdir}/fonts/conf.d

install -Dpm 0644 %{SOURCE1} \
        %{buildroot}%{_datadir}/fontconfig/conf.avail

install -Dpm 0644 %{SOURCE2} \
        %{buildroot}%{_datadir}/fontconfig/conf.avail

ln -s %{_datadir}/fontconfig/conf.avail/%{fontconf} \
      %{buildroot}%{_sysconfdir}/fonts/conf.d/%{fontconf}

ln -s %{_datadir}/fontconfig/conf.avail/%{fontconfvf} \
      %{buildroot}%{_sysconfdir}/fonts/conf.d/%{fontconfvf}

%files
%doc COPYING NEWS README*
%{_sysconfdir}/fonts/conf.d/%{fontconf}
%{_sysconfdir}/fonts/conf.d/%{fontconfvf}
%{_datadir}/fontconfig/conf.avail/%{fontconf}
%{_datadir}/fontconfig/conf.avail/%{fontconfvf}
%{_xfontdir}/cantarell/*.otf
%{_datadir}/metainfo/org.gnome.cantarell.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11799 |21mr|abb-0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command-line client for ABF
Name:		abb
Version:	0.5
Release:	4
License:	GPLv3+
Group:		System/Configuration/Packaging
Url:		https://github.com/sash-kan/abb
Source0:	%{name}
Source1:	%{name}rc
Source2:	readme
Source3:	gpl-3.0.txt
Source4:	spek.skel
Source5:	abb.json.sh
Source6:	license.apache2
Source7:	license.mit
Source8:	abb.bash_completion
Requires:	basesystem-build
Requires:	bash
Requires:	curl
Requires:	git-core
Requires:	git-prompt
Requires:	rpm-build
Requires:	lynx
Requires:	wget
Recommends:	w3m
BuildArch:	noarch

%description
abb is a command-line client for <http://abf.rosalinux.ru>

%files
%doc abbrc readme
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_datadir}/bash-completion/completions/abb

#----------------------------------------------------------------------------

%prep
%setup -qcT
cp %{SOURCE1} .
cp %{SOURCE2} .

sed -i 's/platform="rosa.*/platform=rosa%{rosa_release}/' %{SOURCE0}
sed -i 's/branch=rosa.*/branch=rosa%{rosa_release}/' %{SOURCE0}

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 %{SOURCE0} %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/%{name}/
install -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
install -m 0644 %{SOURCE8} %{buildroot}%{_datadir}/bash-completion/completions/abb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11800 |21mr|abf-console-client-3.0.3.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		abf-console-client
Version:	3.0.3.12
Release:	1
Summary:	Console client for ABF (https://abf.rosalinux.ru)
Group:		System/Configuration/Packaging
License:	GPLv2
Url:		http://wiki.rosalab.ru/en/index.php/ABF_Console_Client
Source0:	https://github.com/OpenMandrivaSoftware/abf-console-client/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-devel

Requires:	python-abf >= %{version}-%{release}
Requires:	python3-beaker
Requires:	python3-rpm
Requires:	git-core
Requires:	python3-yaml
Requires:	python3-magic
Requires:	tar >= 1.26
Requires:	wget
Recommends:	rpm-build
Recommends:	mock
Provides:	abf = %{EVRD}
Provides:	abfcc = %{EVRD}
Provides:	abf-c-c = %{EVRD}

%description
Console client for ABF (https://abf.rosalinux.ru).

%files -f %{name}.lang
%dir %{py3_puresitedir}/abf/console
%{py3_puresitedir}/abf/console/*.py*
%{py3_puresitedir}/abf/console/__pycache__/
%{py3_puresitedir}/abf/__pycache__/
%{py3_puresitedir}/abf/api/__pycache__/
%{_bindir}/abf
%{_bindir}/dw
%{_datadir}/bash-completion/abf
%{_sysconfdir}/bash_completion.d/abf
%{_sysconfdir}/profile.d/abfcd.sh
%{_sysconfdir}/abf/mock/configs
%dir /var/cache/abf/
%dir /var/cache/abf/mock/
%dir /var/lib/abf/mock/src
%dir /var/lib/abf/
%dir /var/lib/abf/mock

#----------------------------------------------------------------
%package -n     python3-abf
Summary:        Python API for ABF (https://abf.rosalinux.ru)
Group:          System/Configuration/Packaging
Provides:       python-abf = %{version}-%{release}

%description -n python3-abf
%{name} is the python API to ABF (https://abf.rosalinux.ru).
It contains a set of basic operations, done with either HTML
parsing or through ABF json API. It also provides datamodel to
operate with.

%files -n python3-abf
%dir %{py3_puresitedir}/abf
%dir %{py3_puresitedir}/abf/api
%{py3_puresitedir}/abf/*.py*
%{py3_puresitedir}/abf/api/*.py*

#----------------------------------------------------------------

%prep
%autosetup

%build
pushd po
%make
popd

%install
%makeinstall_std \
	DESTDIR=%{buildroot} \
	PYTHON=%{__python3} \
	PYVER=%{py3_ver} \
	default_url=https://abf.rosalinux.ru \
	default_filestore_url=https://file-store.rosalinux.ru \
	def_bp=rosa%{rosa_release}

install -d %{buildroot}%{_sysconfdir}/abf/mock/configs
ln -s %{_datadir}/bash-completion/abf %{buildroot}/%{_sysconfdir}/bash_completion.d/abf
ln -s %{py3_puresitedir}/abf/console/download.py %{buildroot}/%{_bindir}/dw

cd po
%makeinstall_std
cd ..

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11801 |21mr|abrt-2.14.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1
%define _disable_ld_no_undefined 1

%global __python %{__python3}

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define _disable_rebuild_configure 0

Summary:	Automatic bug detection and reporting tool
Name:		abrt
Version:	2.14.5
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/abrt/abrt
Source0:	https://github.com/abrt/abrt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	00abrt.sh
Source3:	00abrt.csh
Source4:	abrt-debuginfo-install
Patch1:		abrt-2.13.0-no-fedora-braindamage.patch
Patch2:		abrt_disable_gpgcheck.diff
# (fc) disable package signature check
Patch3:		abrt-2.12.0-sphinx-build.patch
Patch4:		0001-Decrease-python-to-3.5.patch
BuildRequires:	asciidoc
BuildRequires:	augeas
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtds
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	systemd
BuildRequires:	systemd-units
BuildRequires:	xmlrpc-c
BuildRequires:	xmlto
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel
BuildRequires:	libtar-devel
BuildRequires:	rpm-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gsettings-desktop-schemas) >= 3.15.1
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libreport)
BuildRequires:	pkgconfig(libreport-gtk)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(satyr)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(xmlrpc)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3-pytest
BuildRequires:	python3-sphinx
Requires:	%{libname} >= %{EVRD}
# called from bash-completion
Requires:	/usr/bin/register-python-argcomplete
Requires(pre):	rpm-helper
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires(postun):	rpm-helper
Obsoletes:	abrt-plugin-catcut < 1.1.13
Obsoletes:	abrt-plugin-sqlite3 < 1.1.18
# required for transition from 1.1.13, can be removed after some time
Obsoletes:	abrt-plugin-runapp < 1.1.18
Obsoletes:	abrt-plugin-filetransfer < 1.1.18
Obsoletes:	abrt-plugin-sosreport < 1.1.18
#BuildConflicts:	%{mklibname abrt 0} %{mklibname abrt -d} abrt

%description
%{name} is a tool to help users to detect defects in applications and
to create a bug report with all informations needed by maintainer to fix it.
It uses plugin system to extend its functionality.

%files -f %{name}.lang
%license COPYING
%{_unitdir}/abrtd.service
%{_tmpfilesdir}/abrt.conf
%{_sbindir}/%{name}d
%{_sbindir}/%{name}-server
%{_sbindir}/%{name}-auto-reporting
%{_bindir}/%{name}-debuginfo-install
%{_bindir}/%{name}-handle-upload
%{_bindir}/abrt-action-notify
%{_journalcatalogdir}/python3_abrt.catalog
%{_mandir}/man5/python3-abrt.5*
%{_mandir}/man5/python3-abrt.conf.5*
%{_mandir}/man1/abrt-action-notify.1.*
%{_bindir}/abrt-action-analyze-xorg
%{_bindir}/abrt-action-analyze-python
%{_bindir}/%{name}-action-save-package-data
%{_bindir}/abrt-watch-log
%{_libexecdir}/abrt-handle-event
%{_libexecdir}/abrt-action-ureport
%{_libexecdir}/abrt-action-generate-machine-id
%config(noreplace) %{_sysconfdir}/%{name}/abrt.conf
%config(noreplace) %{_sysconfdir}/%{name}/abrt-action-save-package-data.conf
%config(noreplace) %{_sysconfdir}/%{name}/gpg_keys.conf
%{_mandir}/man5/gpg_keys.conf.5.*
%config(noreplace) %{_sysconfdir}/libreport/events.d/abrt_event.conf
%{_mandir}/man5/abrt_event.conf.5.*
%config(noreplace) %{_sysconfdir}/libreport/events.d/smart_event.conf
%{_mandir}/man5/smart_event.conf.5.*
%ghost %attr(0666, -, -) %{_localstatedir}/run/%{name}/abrt.socket
%ghost %attr(0644, -, -) %{_localstatedir}/run/%{name}d.pid
#%dir %attr(0755, %{name}, %{name}) %{_localstatedir}/cache/%{name}
%dir /var/run/%{name}
%dir %{_sysconfdir}/%{name}
%ghost %{_sysconfdir}/%{name}/gpg_keys
%dir %{_sysconfdir}/%{name}/plugins
%{_mandir}/man1/abrt-handle-upload.1.*
%{_mandir}/man1/abrt-server.1.*
%{_mandir}/man1/abrt-action-save-package-data.1.*
%{_mandir}/man1/abrt-watch-log.1.*
%{_mandir}/man1/abrt-action-analyze-python.1*
%{_mandir}/man1/abrt-action-analyze-xorg.1.*
%{_mandir}/man1/abrt-auto-reporting.1.*
%{_mandir}/man8/abrtd.8.*
%{_mandir}/man5/abrt.conf.5.*
%{_mandir}/man5/abrt-action-save-package-data.conf.5.*
%{_sysconfdir}/bash_completion.d/abrt.bash_completion
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.problems.daemon.conf
%{_unitdir}/abrt-journal-core.service
%{_bindir}/abrt
%{_bindir}/abrt-action-check-oops-for-alt-component
%{_bindir}/abrt-action-find-bodhi-update
%{_bindir}/abrt-dump-journal-core
%{_bindir}/abrt-dump-journal-xorg
%{_libexecdir}/abrt-action-save-container-data
%doc %{_docdir}/abrt/README.md
%{_datadir}/libreport/events/analyze_BodhiUpdates.xml
%{_sysconfdir}/libreport/events.d/abrt_dbus_event.conf
%{_sysconfdir}/libreport/events.d/bodhi_event.conf
%{_sysconfdir}/libreport/events.d/machine-id_event.conf
%{_journalcatalogdir}/abrt_ccpp.catalog
%{_sysconfdir}/libreport/plugins/catalog_journal_ccpp_format.conf
%{_journalcatalogdir}/abrt_koops.catalog
%{_sysconfdir}/libreport/plugins/catalog_koops_format.conf
%{_sysconfdir}/libreport/plugins/catalog_python3_format.conf
%{_journalcatalogdir}/abrt_vmcore.catalog
%{_sysconfdir}/libreport/plugins/catalog_vmcore_format.conf
%{_journalcatalogdir}/abrt_xorg.catalog
%{_sysconfdir}/libreport/plugins/catalog_xorg_format.conf
%{_mandir}/man1/abrt-action-find-bodhi-update.1*
%{_mandir}/man1/abrt-dump-journal-core.1*
%{_mandir}/man1/abrt-dump-journal-xorg.1*
%{_mandir}/man1/abrt.1*
%{_datadir}/augeas/lenses/abrt.aug

%pre
%_pre_useradd %{name} %{_sysconfdir}/%{name} /sbin/nologin
%_pre_groupadd %{name} %{name}

%post
%systemd_post abrtd.service

%preun
%systemd_preun abrtd.service

%postun
%_postun_userdel %{name}
%_postun_groupdel %{name} %{name}

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries for %{name}.

%files -n %{libname}
%{_libdir}/libabrt*.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	abrt = %{EVRD}

%description -n %{devname}
Development libraries and headers for %{name}.

%files -n %{devname}
%{_includedir}/abrt/*
%{_libdir}/libabrt*.so
#FIXME: this should go to libreportgtk-devel package
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/abrt_gui.pc

#-------------------------------------------------------------------------

%package gui
Summary:	%{name}'s gui
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}
Requires:	python3-dbus
Requires:	python3-gi
##Requires: gnome-python-desktop
Requires:	libreport-gtk

%description gui
GTK+ wizard for convenient bug reporting.

%files gui
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/%{name}/ui/*
%{_bindir}/system-config-abrt
%{_bindir}/%{name}-applet
%{_sysconfdir}/xdg/autostart/org.freedesktop.problems.applet.desktop
%{_mandir}/man1/abrt-applet.1*
%{_mandir}/man1/system-config-abrt.1*

%post gui
# update icon cache
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

%postun gui
if [ $1 -eq 0 ] ; then
	touch --no-create %{_datadir}/icons/hicolor &>/dev/null
	gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi

%posttrans gui
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

#-------------------------------------------------------------------------

%package addon-ccpp
Summary:	%{name}'s C/C++ addon
Group:		System/Libraries
Requires:	elfutils
Requires:	%{name} = %{EVRD}

%description addon-ccpp
This package contains hook for C/C++ crashed programs and %{name}'s C/C++
analyzer plugin.

%files addon-ccpp
%config(noreplace) %{_sysconfdir}/%{name}/plugins/CCpp.conf
%{_sysconfdir}/libreport/events.d/ccpp_event.conf
%{_mandir}/man5/ccpp_event.conf.5.*
%{_sysconfdir}/libreport/events.d/gconf_event.conf
%{_mandir}/man5/gconf_event.conf.5.*
%{_sysconfdir}/libreport/events.d/vimrc_event.conf
%{_mandir}/man5/vimrc_event.conf.5.*
%{_datadir}/libreport/events/analyze_CCpp.xml
%{_datadir}/libreport/events/analyze_LocalGDB.xml
%{_datadir}/libreport/events/collect_xsession_errors.xml
%{_datadir}/libreport/events/collect_GConf.xml
%{_datadir}/libreport/events/collect_vimrc_user.xml
%{_datadir}/libreport/events/collect_vimrc_system.xml
%{_datadir}/libreport/events/post_report.xml
%dir %attr(0775, abrt, abrt) %{_localstatedir}/cache/abrt-di
%{_libexecdir}/abrt-gdb-exploitable
%attr(6755, abrt, abrt) %{_libexecdir}/abrt-action-install-debuginfo-to-abrt-cache
%{_sysconfdir}/profile.d/00abrt.*
%{_bindir}/abrt-action-analyze-c
%{_bindir}/abrt-action-trim-files
%{_bindir}/abrt-action-analyze-core
%{_bindir}/abrt-action-analyze-vulnerability
%{_bindir}/abrt-action-install-debuginfo
%{_bindir}/abrt-action-generate-backtrace
%{_bindir}/abrt-action-generate-core-backtrace
%{_bindir}/abrt-action-analyze-backtrace
%{_bindir}/abrt-action-list-dsos
%{_bindir}/abrt-action-perform-ccpp-analysis
%{_bindir}/abrt-action-analyze-ccpp-local
%{_mandir}/man*/abrt-action-analyze-c.*
%{_mandir}/man*/abrt-action-trim-files.*
%{_mandir}/man*/abrt-action-generate-backtrace.*
%{_mandir}/man*/abrt-action-generate-core-backtrace.*
%{_mandir}/man*/abrt-action-analyze-backtrace.*
%{_mandir}/man*/abrt-action-list-dsos.*
%{_mandir}/man*/abrt-action-install-debuginfo.*
%{_mandir}/man*/abrt-action-analyze-ccpp-local.*
%{_mandir}/man*/abrt-action-analyze-core.*
%{_mandir}/man*/abrt-action-analyze-vulnerability.*
%{_mandir}/man*/abrt-action-perform-ccpp-analysis.*
%{_mandir}/man5/abrt-CCpp.conf.5.*

%post addon-ccpp
# this is required for transition from 1.1.x to 2.x
# because /cache/abrt-di/* was created under root with root:root
# so 2.x fails when it tries to extract debuginfo there..
chown -R abrt:abrt %{_localstatedir}/cache/abrt-di
%systemd_post abrt-ccpp.service

%preun addon-ccpp
%systemd_preun abrt-ccpp.service

#-------------------------------------------------------------------------

%package addon-upload-watch
Summary:	%{name}'s upload addon
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description addon-upload-watch
This package contains hook for uploaded problems.

%files addon-upload-watch
%defattr(-,root,root,-)
%{_sbindir}/abrt-upload-watch
%{_unitdir}/abrt-upload-watch.service
%{_mandir}/man*/abrt-upload-watch.*

#-------------------------------------------------------------------------

%package retrace-client
Summary:	%{name}'s retrace client
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	xz
Requires:	tar

%description retrace-client
This package contains the client application for Retrace server
which is able to analyze C/C++ crashes remotely.

%files retrace-client
%{_bindir}/abrt-retrace-client
%{_mandir}/man1/abrt-retrace-client.1.*
%config(noreplace) %{_sysconfdir}/libreport/events.d/ccpp_retrace_event.conf
%{_mandir}/man5/ccpp_retrace_event.conf.5.*
%{_datadir}/libreport/events/analyze_RetraceServer.xml

#-------------------------------------------------------------------------

%package addon-kerneloops
Summary:	%{name}'s kerneloops addon
Group:		System/Libraries
Requires:	curl
Requires:	%{name} = %{EVRD}

%description addon-kerneloops
This package contains plugin for collecting kernel crash information
and reporter plugin which sends this information to specified server,
usually to kerneloops.org.

%files addon-kerneloops
%config(noreplace) %{_sysconfdir}/libreport/events.d/koops_event.conf
%{_mandir}/man5/koops_event.conf.5.*
%config(noreplace) %{_sysconfdir}/%{name}/plugins/oops.conf
%{_unitdir}/abrt-oops.service
%{_bindir}/abrt-dump-oops
%{_bindir}/abrt-dump-journal-oops
%{_bindir}/abrt-action-analyze-oops
%{_mandir}/man1/abrt-dump-oops.1*
%{_mandir}/man1/abrt-dump-journal-oops.1*
%{_mandir}/man1/abrt-action-analyze-oops.1*
%{_mandir}/man5/abrt-oops.conf.5*

%post addon-kerneloops
%systemd_post abrt-oops.service

%preun addon-kerneloops
%systemd_preun abrt-oops.service

#-------------------------------------------------------------------------

%package addon-vmcore
Summary:	%{name}'s vmcore addon
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	abrt-addon-kerneloops

%description addon-vmcore
This package contains plugin for collecting kernel crash information from
vmcore files.

%files addon-vmcore
%config(noreplace) %{_sysconfdir}/libreport/events.d/vmcore_event.conf
%{_mandir}/man5/vmcore_event.conf.5.*
%config(noreplace) %{_sysconfdir}/%{name}/plugins/vmcore.conf
%{_datadir}/libreport/events/analyze_VMcore.xml
%{_unitdir}/abrt-vmcore.service
%{_sbindir}/abrt-harvest-vmcore
%{_bindir}/abrt-action-analyze-vmcore
%{_bindir}/abrt-action-check-oops-for-hw-error
%{_mandir}/man1/abrt-harvest-vmcore.1*
%{_mandir}/man5/abrt-vmcore.conf.5*
%{_mandir}/man1/abrt-action-analyze-vmcore.1*
%{_mandir}/man1/abrt-action-check-oops-for-hw-error.1*

%post addon-vmcore
%systemd_post abrt-vmcore.service

%preun addon-vmcore
%systemd_preun abrt-vmcore.service

#-------------------------------------------------------------------------

%package addon-pstoreoops
Summary:	%{name}'s pstore oops addon
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	abrt-addon-kerneloops
Obsoletes:	abrt-addon-uefioops < 2.1.7

%description addon-pstoreoops
This package contains plugin for collecting kernel oopses from pstore storage.

%files addon-pstoreoops
%{_unitdir}/abrt-pstoreoops.service
%{_sbindir}/abrt-harvest-pstoreoops
%{_bindir}/abrt-merge-pstoreoops
%{_mandir}/man1/abrt-harvest-pstoreoops.1*
%{_mandir}/man1/abrt-merge-pstoreoops.1*

#-------------------------------------------------------------------------

%package plugin-bodhi
Summary:	%{name}'s bodhi plugin
Group:		System/Libraries
BuildRequires:	libreport-web-devel
BuildRequires:	pkgconfig(json-c)
Requires:	%{name} = %{EVRD}
Obsoletes:	libreport-plugin-bodhi < 2.13.1
Provides:	libreport-plugin-bodhi = %{EVRD}

%description plugin-bodhi
Search for a new updates in bodhi server.

%files plugin-bodhi
%defattr(-,root,root,-)
%{_bindir}/abrt-bodhi
%{_mandir}/man1/abrt-bodhi.1.*

#-------------------------------------------------------------------------

%package addon-python3
Summary:	%{name}'s addon for catching and analyzing Python exceptions
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description addon-python3
This package contains python hook and python analyzer plugin for handling
uncaught exception in python programs.

%files addon-python3
%dir %{_sysconfdir}/%{name}/plugins
%config(noreplace) %{_sysconfdir}/%{name}/plugins/python3.conf
%{_sysconfdir}/libreport/events.d/python3_event.conf
%{_mandir}/man5/python3_event.conf.5.*
%{python3_sitelib}/abrt*.py*
%{python3_sitelib}/*.pth

#-------------------------------------------------------------------------

%package cli
Summary:	%{name}'s command line interface
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}
Requires:	%{name}-addon-kerneloops
Requires:	%{name}-addon-ccpp
Requires:	%{name}-addon-python3

%description cli
This package contains simple command line client for controlling abrt 
daemon over the sockets.

%files cli
%{python3_sitelib}/abrtcli

#-------------------------------------------------------------------------

%package desktop
Summary:	Virtual package that installs all necessary packages
Group:		Graphical desktop/Other
# This package gets installed when anything requests bug-buddy -
# happens when users upgrade Fn to Fn+1;
# or if user just wants "typical desktop installation".
# Installing abrt-desktop should result in the abrt which works without
# any tweaking in abrt.conf (IOW: all plugins mentioned there must be installed)
Requires:	%{name} = %{EVRD}
Requires:	%{name}-addon-kerneloops
Requires:	%{name}-addon-vmcore
Requires:	%{name}-addon-ccpp
Requires:	%{name}-addon-python3
# Default config of addon-ccpp requires gdb
Requires:	gdb >= 7.0-3
Requires:	%{name}-gui

%description desktop
Virtual package to make easy default installation on desktop environments.

%files desktop

#-------------------------------------------------------------------------

%package dbus
Summary:	ABRT DBus service
Group:		System/Libraries
BuildRequires:	polkit-1-devel
Requires:	%{name} = %{EVRD}

%description dbus
ABRT DBus service which provides org.freedesktop.problems API on dbus and
uses PolicyKit to authorize to access the problem data.

%files dbus
%{_sbindir}/abrt-dbus
%{_mandir}/man8/abrt-dbus.8.*
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/dbus-abrt.conf
%{_datadir}/dbus-1/interfaces/org.freedesktop.Problems2.Entry.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.Problems2.Session.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.Problems2.Task.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.Problems2.xml
%{_datadir}/dbus-1/services/org.freedesktop.problems.applet.service
%{_datadir}/dbus-1/system-services/org.freedesktop.problems.service
%{_datadir}/polkit-1/actions/abrt_polkit.policy
%dir %{_defaultdocdir}/%{name}-dbus-%{version}/
%dir %{_defaultdocdir}/%{name}-dbus-%{version}/html/
%{_defaultdocdir}/%{name}-dbus-%{version}/html/*.html
%{_defaultdocdir}/%{name}-dbus-%{version}/html/*.css

#-------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	ABRT Python API
Group:		System/Libraries
BuildRequires:	python3-nose
BuildRequires:	python3-sphinx
Requires:	%{name} = %{EVRD}
Requires:	python3-gi
Requires:	python3-dbus
Requires:	libreport-python3

%description -n python3-%{name}
High-level API for querying, creating and manipulating
problems handled by ABRT in Python.

%files -n python3-%{name}
%{python3_sitearch}/problem/
%{python3_sitelib}/__pycache__/abrt*

#-------------------------------------------------------------------------

%package -n python3-%{name}-doc
Summary:	ABRT Python API Documentation
Group:		Documentation
Requires:	%{name} = %{EVRD}
Requires:	python3-%{name} = %{EVRD}
BuildArch:	noarch

%description -n python3-%{name}-doc
Examples and documentation for ABRT Python API.

%files -n python3-%{name}-doc
%{py3_puresitedir}/problem_examples

#-------------------------------------------------------------------------

%if 0
%package retrace-server
Summary:	%{name}'s retrace server using HTTP protocol
Group:		Graphical desktop/Other
Requires:	abrt-addon-ccpp
Requires:	gdb >= 7.0-3
Requires:	apache-mod_wsgi
Requires:	apache-mod_ssl
Requires:	python3-webob
Requires:	mock
Requires:	xz
Requires:	elfutils
Requires:	createrepo
Requires(preun):	/sbin/install-info
Requires(post):	/sbin/install-info

%description retrace-server
The retrace server provides a coredump analysis and backtrace
generation service over a network using HTTP protocol.

%files retrace-server
%config(noreplace) %{_sysconfdir}/%{name}/retrace.conf
%config(noreplace) %{_sysconfdir}/httpd/conf.d/retrace_httpd.conf
%config(noreplace) %{_sysconfdir}/yum.repos.d/retrace.repo
%dir %attr(0775, apache, abrt) %{_localstatedir}/spool/abrt-retrace
%dir %attr(0755, abrt, abrt) %{_localstatedir}/cache/abrt-retrace
%dir %attr(0755, abrt, abrt) %{_localstatedir}/log/abrt-retrace
%caps(cap_setuid=ep) %{_bindir}/abrt-retrace-worker
%{_bindir}/abrt-retrace-cleanup
%{_bindir}/abrt-retrace-reposync
%{_bindir}/coredump2packages
%{py2_puresitedir}/retrace.py*
%{_datadir}/abrt-retrace/*.py*
%{_datadir}/abrt-retrace/*.wsgi
%{_datadir}/abrt-retrace/plugins/*.py*
%{_infodir}/abrt-retrace-server*

%post retrace-server
/sbin/install-info %{_infodir}/abrt-retrace-server %{_infodir}/dir 2> /dev/null || :
/usr/sbin/usermod -G mock apache 2> /dev/null || :

%preun retrace-server
if [ "$1" = 0 ]; then
	/sbin/install-info --delete %{_infodir}/abrt-retrace-server %{_infodir}/dir 2> /dev/null || :
fi
%endif

#-------------------------------------------------------------------------

%package addon-xorg
Summary:	%{name}'s Xorg addon
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	curl

%description addon-xorg
This package contains plugin for collecting Xorg crash information 
from Xorg log.

%files addon-xorg
%config(noreplace) %{_sysconfdir}/libreport/events.d/xorg_event.conf
%config(noreplace) %{_sysconfdir}/%{name}/plugins/xorg.conf
%{_unitdir}/abrt-xorg.service
%{_bindir}/abrt-dump-xorg
%{_mandir}/man1/abrt-dump-xorg.1*
%{_mandir}/man5/xorg_event.conf.5.*
%{_mandir}/man5/abrt-xorg.conf.5.*

#-------------------------------------------------------------------------

%package console-notification
Summary:	ABRT console notification script
Group:		System/Configuration/Other
Requires:	%{name} = %{EVRD}
Requires:	%{name}-cli = %{EVRD}

%description console-notification
A small script which prints a count of detected problems when someone logs in
to the shell

%files console-notification
%config(noreplace) %{_sysconfdir}/profile.d/abrt-console-notification.sh

#-------------------------------------------------------------------------

%prep
%autosetup -p1

# (tv)) disable -Werror:
perl -pi -e 's!-Werror!-Wno-deprecated!' configure{.ac,} */*/Makefile*

%build
%define Werror_cflags %{nil}
./gen-version
autoreconf -fi
intltoolize --force --copy --automake
export PYTHONDONTWRITEBYTECODE=True

%configure \
	--disable-rpath \
	--with-support-url=https://bugzilla.rosalinux.ru \
	--with-pythontests

%make

%install
%makeinstall_std
%find_lang %{name}

# remove all .la and .a files
find %{buildroot} -name '*.la' -or -name '*.a' | xargs rm -f
mkdir -p %{buildroot}/var/cache/%{name}-di
mkdir -p %{buildroot}/var/run/%{name}
mkdir -p %{buildroot}/var/spool/%{name}
mkdir -p %{buildroot}/var/spool/%{name}-retrace
mkdir -p %{buildroot}/var/cache/%{name}-retrace
mkdir -p %{buildroot}/var/log/%{name}-retrace
mkdir -p %{buildroot}/var/spool/%{name}-upload

# remove fedora gpg key
rm -f %{buildroot}%{_sysconfdir}/abrt/gpg_keys
touch %{buildroot}%{_sysconfdir}/abrt/gpg_keys

touch %{buildroot}/var/run/abrt/abrt.socket
touch %{buildroot}/var/run/abrtd.pid

# install ulimit disabler
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
install -m0644 %{SOURCE2} %{SOURCE3} %{buildroot}%{_sysconfdir}/profile.d/

desktop-file-install \
	--dir %{buildroot}%{_sysconfdir}/xdg/autostart \
	src/applet/org.freedesktop.problems.applet.desktop

# replace with our own version
cat %{SOURCE4} > %{buildroot}/usr/bin/%{name}-debuginfo-install

#remove RH specific plugins
rm -f %{buildroot}%{_libdir}/%{name}/{RHTSupport.glade,libRHTSupport.so}
rm -f %{buildroot}%{_sysconfdir}/%{name}/plugins/RHTSupport.conf
rm -f %{buildroot}%{_sysconfdir}/%{name}/events.d/rhtsupport_events.conf
rm -f %{buildroot}%{_sysconfdir}/%{name}/events/report_RHTSupport.xml
rm -f %{buildroot}%{_bindir}/%{name}-action-rhtsupport

# After everything is installed, remove info dir
rm -f %{buildroot}%{_infodir}/dir

# systemd units should go to the right place
mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}%{_prefix}/lib/systemd/system/*.service %{buildroot}%{_unitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11802 |21mr|abseil-cpp-20240116.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %{version} |cut -b3-6).0.0
%define devname %mklibname absl -d

Summary:	C++ Common Libraries
Name:		abseil-cpp
Version:	20240116.1
Release:	1
License:	ASL 2.0
Group:		Development/C++
Url:		https://abseil.io
Source0:	https://github.com/abseil/abseil-cpp/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	abseil-cpp.rpmlintrc
Patch0:		abseil-cpp-gcc11.patch
BuildRequires:	cmake
BuildRequires:	patchelf

%description
Abseil is an open-source collection of C++ library code designed to augment
the C++ standard library. The Abseil library code is collected from
Google's own C++ code base, has been extensively tested and used in
production, and is the same code we depend on in our daily coding lives.

In some cases, Abseil provides pieces missing from the C++ standard; in
others, Abseil provides alternatives to the standard for special needs we've
found through usage in the Google code base. We denote those cases clearly
within the library code we provide you.

Abseil is not meant to be a competitor to the standard library; we've just
found that many of these utilities serve a purpose within our code base,
and we now want to provide those resources to the C++ community as a whole.

#---------------------------------------------------------------------------

%define local_lib_pkg() %{expand:\
%global requires_lib %{?requires_lib} %{mklibname absl_%1 %{major}} \
%package -n %{mklibname absl_%1 %{major}} \
Summary: %{summary} \
Group: System/Libraries \
Obsoletes:	%{mklibname absl_%{1} 0} < %{EVRD} \
%description -n %{mklibname absl_%1 %{major}} \
%{summary} \
Package with library libsbsl_%{1}.so.%{major}. \
%files -n %{mklibname absl_%1 %{major}} \
%{_libdir}/libabsl_%{1}.so.%{major}* \
}

%local_lib_pkg bad_any_cast_impl
%local_lib_pkg bad_optional_access
%local_lib_pkg bad_variant_access
%local_lib_pkg base
%local_lib_pkg city
%local_lib_pkg civil_time
%local_lib_pkg cord
%local_lib_pkg cord_internal
%local_lib_pkg cordz_functions
%local_lib_pkg cordz_handle
%local_lib_pkg cordz_info
%local_lib_pkg cordz_sample_token
%local_lib_pkg debugging_internal
%local_lib_pkg demangle_internal
%local_lib_pkg examine_stack
%local_lib_pkg exponential_biased
%local_lib_pkg failure_signal_handler
%local_lib_pkg flags_commandlineflag
%local_lib_pkg flags_commandlineflag_internal
%local_lib_pkg flags_config
%local_lib_pkg flags_internal
%local_lib_pkg flags_marshalling
%local_lib_pkg flags_parse
%local_lib_pkg flags_private_handle_accessor
%local_lib_pkg flags_program_name
%local_lib_pkg flags_reflection
%local_lib_pkg flags_usage
%local_lib_pkg flags_usage_internal
%local_lib_pkg graphcycles_internal
%local_lib_pkg hash
%local_lib_pkg hashtablez_sampler
%local_lib_pkg int128
%local_lib_pkg leak_check
%local_lib_pkg log_severity
%local_lib_pkg low_level_hash
%local_lib_pkg malloc_internal
%local_lib_pkg periodic_sampler
%local_lib_pkg random_distributions
%local_lib_pkg random_internal_distribution_test_util
%local_lib_pkg random_internal_platform
%local_lib_pkg random_internal_pool_urbg
%local_lib_pkg random_internal_randen
%local_lib_pkg random_internal_randen_hwaes
%local_lib_pkg random_internal_randen_hwaes_impl
%local_lib_pkg random_internal_randen_slow
%local_lib_pkg random_internal_seed_material
%local_lib_pkg random_seed_gen_exception
%local_lib_pkg random_seed_sequences
%local_lib_pkg raw_hash_set
%local_lib_pkg raw_logging_internal
%local_lib_pkg scoped_set_env
%local_lib_pkg spinlock_wait
%local_lib_pkg stacktrace
%local_lib_pkg status
%local_lib_pkg statusor
%local_lib_pkg strerror
%local_lib_pkg str_format_internal
%local_lib_pkg strings
%local_lib_pkg string_view
%local_lib_pkg strings_internal
%local_lib_pkg vlog_config_internal
%local_lib_pkg kernel_timeout_internal
%local_lib_pkg log_internal_fnmatch
%local_lib_pkg symbolize
%local_lib_pkg synchronization
%local_lib_pkg throw_delegate
%local_lib_pkg time
%local_lib_pkg time_zone
%local_lib_pkg log_sink
%local_lib_pkg crc32c
%local_lib_pkg crc_cord_state
%local_lib_pkg crc_cpu_detect
%local_lib_pkg crc_internal
%local_lib_pkg die_if_null
%local_lib_pkg log_entry
%local_lib_pkg log_flags
%local_lib_pkg log_globals
%local_lib_pkg log_initialize
%local_lib_pkg log_internal_check_op
%local_lib_pkg log_internal_conditions
%local_lib_pkg log_internal_format
%local_lib_pkg log_internal_globals
%local_lib_pkg log_internal_message
%local_lib_pkg log_internal_log_sink_set
%local_lib_pkg log_internal_proto
%local_lib_pkg log_internal_nullguard

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{?requires_lib}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers for %{name}

%files -n %{devname}
%{_includedir}/absl
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/absl
%{_libdir}/libabsl_*.so

#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -std=c++17
%global ldflags %{ldflags} -latomic
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11803 |21mr|access-modifier-annotation-1.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global shortname access-modifier

Name:           access-modifier-annotation
Version:        1.7
Release:        9
Summary:        Java annotation for custom access modifiers

# License is specified in pom file
License:        MIT
URL:            https://github.com/kohsuke/access-modifier
Source0:        https://github.com/kohsuke/%{shortname}/archive/%{shortname}-%{version}.tar.gz
# License text copied from http://www.opensource.org/licenses/mit-license.php
Source1:        LICENSE.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-manager-plexus)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-gitexe)
BuildRequires:  mvn(org.jenkins-ci:annotation-indexer)
BuildRequires:  mvn(org.kohsuke.metainf-services:metainf-services)
BuildRequires:  mvn(org.kohsuke:pom:pom:)
BuildRequires:  mvn(org.ow2.asm:asm-debug-all)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)

%description
Allows applications to define custom access modifiers programmatically,
to be enforced at compile time in the opt-in basis. Obviously, 
there's no runtime check either - this is strictly a voluntary annotations.
This mechanism is useful for actually making sure that deprecated features 
are not used (without actually removing such declarations, which would break 
binary compatibility.)

%package -n access-modifier-checker
Summary:        Maven plugin for checking custom access modifiers

%description -n access-modifier-checker
This package contains Maven plugin for checking custom access modifiers.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{shortname}-%{shortname}-%{version}

cp %{SOURCE1} LICENSE

%mvn_package :access-modifier-checker access-modifier-checker

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE
%files -n access-modifier-checker -f .mfiles-access-modifier-checker
%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11804 |21mr|accounts-qml-module-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	QML module to manage the user's online accounts
Name:		accounts-qml-module
Version:	0.7
Release:	7
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://gitlab.com/accounts-sso/accounts-qml-module
# https://gitlab.com/accounts-sso/accounts-qml-module/-/archive/master/accounts-qml-module-master.tar.bz2
Source0:	accounts-qml-module-master.tar.bz2
%ifnarch %{e2k}
BuildRequires:	qdoc5
%endif
BuildRequires:	qt5-qml-tools
BuildRequires:	pkgconfig(accounts-qt5)
BuildRequires:	pkgconfig(libsignon-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	ubuntuonlineaccounts-qml = %{EVRD}

%description
This QML module provides an API to manage the user's online accounts and get
their authentication data. It's a tiny wrapper around the Qt-based APIs of
libaccounts-qt and libsignon-qt.

%files
%{_bindir}/tst_plugin

#----------------------------------------------------------------------------

%define qmlubuntuonlineaccounts %mklibname ubuntuonlineaccounts-qml

%package -n %{qmlubuntuonlineaccounts}
Summary:	QML module to manage the user's online accounts
Group:		System/Libraries
Provides:	ubuntuonlineaccounts-qml = %{EVRD}

%description -n %{qmlubuntuonlineaccounts}
This QML module provides an API to manage the user's online accounts and get
their authentication data. It's a tiny wrapper around the Qt-based APIs of
libaccounts-qt and libsignon-qt.

%files -n %{qmlubuntuonlineaccounts}
%dir %{_qt5_prefix}/qml/Ubuntu/OnlineAccounts/
%{_qt5_prefix}/qml/Ubuntu/OnlineAccounts/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-master

sed -e 's/-Werror//' -i common-project-config.pri

%build
%ifarch %{e2k}
%qmake_qt5 "CONFIG+=no_docs"
%else
%qmake_qt5
%endif
%make

%install
%makeinstall_qt

# Drop docs
rm -rf %{buildroot}%{_datadir}/accounts-qml-module/doc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11805 |21mr|accounts-qt-1.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libaccounts-qt
%define major 1
%define libname %mklibname accounts-qt5_ %{major}
%define devname %mklibname accounts-qt5 -d

Summary:	Qt bindings for Accounts framework
Name:		accounts-qt
Version:	1.16
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://gitlab.com/accounts-sso/libaccounts-qt
Source0:	https://gitlab.com/accounts-sso/libaccounts-qt/-/archive/VERSION_%{version}/%{oname}-VERSION_%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libaccounts-glib)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Test)

%description
Qt bindings for Accounts framework.

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for Qt bindings for Accounts framework.

%files -n %{libname}
%{_libdir}/libaccounts-qt5.so.%{major}*

#---------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_bindir}/accountstest
%{_includedir}/%{name}5
%{_libdir}/libaccounts-qt5.so
%{_libdir}/cmake/AccountsQt5
%{_libdir}/pkgconfig/accounts-qt5.pc

#------------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation

%description doc
Documentation for %{name}.

%files doc
%dir %{_defaultdocdir}/accounts-qt
%{_defaultdocdir}/accounts-qt/*

#------------------------------------------------------------------------------

%prep
%autosetup -n %{oname}-VERSION_%{version} -p1

%build
%qmake_qt5 \
	QMF_INSTALL_ROOT=%{_prefix} \
	LIBDIR=%{_libdir} \
	CONFIG+=release \
	accounts-qt.pro
%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11806 |21mr|accountsservice-22.08.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 0
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	D-Bus interfaces for querying and manipulating user account information
Name:		accountsservice
Version:	22.08.8
Release:	1
License:	GPLv3+
Group:		System/Libraries
Url:		http://www.fedoraproject.org/wiki/Features/UserAccountDialog
Source0:	http://www.freedesktop.org/software/accountsservice/%{name}-%{version}.tar.bz2
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	xmlto
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	vala-devel
Requires:	polkit
Requires:	shadow-utils
Requires(post,preun,postun):	systemd-units

%description
The accountsservice project provides a set of D-Bus interfaces for
querying and manipulating user account information and an implementation
of these interfaces, based on the useradd, usermod and userdel commands.

%files -f accounts-service.lang
%doc AUTHORS README.md
%license COPYING
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.Accounts.User.xml
%{_datadir}/dbus-1/system-services/org.freedesktop.Accounts.service
%{_datadir}/dbus-1/system.d/org.freedesktop.Accounts.conf
%{_datadir}/polkit-1/actions/org.freedesktop.accounts.policy
%{_datadir}/accountsservice/user-templates/*
%{_datadir}/vala/vapi/*
%{_defaultdocdir}/%{name}/spec/AccountsService.html
%{_libexecdir}/accounts-daemon
%dir %{_localstatedir}/lib/AccountsService/
%dir %{_localstatedir}/lib/AccountsService/users
%dir %{_localstatedir}/lib/AccountsService/icons
%{_unitdir}/accounts-daemon.service

%post
%systemd_post accounts-daemon.service

%preun
%systemd_preun accounts-daemon.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Client-side library to talk to accountservice
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/AccountsService-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for accountsservice-libs
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
The accountsservice-devel package contains headers and other
files needed to build applications that use accountsservice-libs.

%files -n %{devname}
%{_includedir}/%{name}-1.0
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gir-1.0/AccountsService-%{api}.gir
%{_datadir}/gtk-doc/html/libaccountsservice

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
	-Dsystemdsystemunitdir=%{_unitdir}	\
	-Dgdmconffile=/etc/X11/gdm/custom.conf	\
	-Dminimum_uid=500			\
	-Ddocbook=true				\
	-Dgtk_doc=true

%meson_build

%install
%meson_install

%find_lang accounts-service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11807 |21mr|acegisecurity-1.0.7-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           acegisecurity
Version:        1.0.7
Release:        13
Summary:        Java/J2EE application security framework
License:        ASL 2.0
URL:            http://sourceforge.net/projects/acegisecurity
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# sh create-tarball.sh
Source0:        %{name}-%{version}.tar.gz
Source1:        http://repo1.maven.org/maven2/org/%{name}/acegi-security/%{version}/acegi-security-%{version}.pom
Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt
Source3:        create-tarball.sh

# we don't have and don't need all the dependencies of acegisecurity thus build
# this package against these stubs only
Patch0:         0001-Stubs-for-casclient.patch
Patch1:         0001-Stubs-for-Spring-Framework-2.patch

Patch2:         0001-Remove-unmappable-characters.patch
Patch3:         0001-Port-to-Spring-Framework-3.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(javax.servlet:jsp-api)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(log4j:log4j)
BuildRequires:  mvn(net.sf.ehcache:ehcache)
BuildRequires:  mvn(org.aspectj:aspectjrt)
BuildRequires:  mvn(org.jasig.cas.client:cas-client-core)
BuildRequires:  mvn(org.springframework:spring-beans)
BuildRequires:  mvn(org.springframework:spring-context)
BuildRequires:  mvn(org.springframework:spring-core)
BuildRequires:  mvn(org.springframework:spring-jdbc)
BuildRequires:  mvn(org.springframework:spring-test)
BuildRequires:  mvn(org.springframework:spring-web)
BuildRequires:  mvn(oro:oro)

%description
Acegi Security is a Java/Java EE framework that provides advanced
authentication, authorization and other comprehensive security features for
enterprise applications. In addition to having a comprehensive list of
security functionality, Acegi Security is very configurable and employs the
Spring Framework for configuration, it allows for reuse and portability of
security components, and it can also be used with non-Spring applications.

 
%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q 

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

cp %{SOURCE1} pom.xml
cp %{SOURCE2} license.txt

# missing parent pom
%pom_remove_parent
%pom_xpath_inject "pom:project" "<groupId>org.acegisecurity</groupId>"
%pom_xpath_inject "pom:project" "<version>%{version}</version>"

# unneeded/unavailable deps
%pom_remove_dep cas:casclient
%pom_remove_dep taglibs:standard
%pom_remove_dep hsqldb:hsqldb
%pom_remove_dep org.apache.directory.server:apacheds-core
%pom_remove_dep org.slf4j:slf4j-log4j12
%pom_remove_dep jmock:jmock

# TODO: remove this
#%%pom_remove_dep aspectj:aspectjrt
#%%pom_add_dep org.aspectj:aspectjrt

# fix springframework gId:aId
# TODO: upstream moved a lot of classes to different JARs in springframework
# 3.x, should we add aliases?
%pom_remove_dep org.springframework:spring-remoting
%pom_remove_dep org.springframework:spring-jdbc
%pom_remove_dep org.springframework:spring-support
%pom_remove_dep org.springframework:spring-web
%pom_remove_dep org.springframework:spring-mock
%pom_remove_dep org.springframework:spring-ldap
%pom_add_dep org.springframework:spring-context
%pom_add_dep org.springframework:spring-beans
%pom_add_dep org.springframework:spring-jdbc
%pom_add_dep org.springframework:spring-web "<optional>true</optional>"
%pom_add_dep org.springframework:spring-test "<optional>true</optional>"

# don't add classes containing only stubs into the final jar
%pom_xpath_inject "pom:project/pom:build" \
"<plugins>
  <plugin>
    <artifactId>maven-jar-plugin</artifactId>
    <version>2.4</version>
    <executions>
      <execution>
        <id>default-jar</id>
        <phase>package</phase>
        <goals>
          <goal>jar</goal>
        </goals>
        <configuration>
          <excludes>
            <exclude>edu/**/*</exclude>
            <exclude>org/springframework/metadata/Attributes*</exclude>
            <exclude>org/springframework/web/bind/RequestUtils*</exclude>
          </excludes>
        </configuration>
      </execution>
    </executions>
  </plugin>
</plugins>
"

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc license.txt notice.txt

%files javadoc -f .mfiles-javadoc
%doc license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11808 |21mr|acl-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Command for manipulating access control lists
Name:		acl
Version:	2.3.1
Release:	1
License:	GPLv2+ and LGPLv2
Group:		System/Kernel and hardware
Url:		https://savannah.nongnu.org/projects/acl
Source0:	https://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.xz
Patch0:		acl-2.2.51-l10n-ru.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libattr)

%description
This package contains the getfacl and setfacl utilities needed for
manipulating access control lists.

%files -f %{name}.lang
%doc doc/CHANGES README
%license doc/COPYING*
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for libacl
Group:		System/Libraries

%description -n	%{libname}
This package contains the libacl dynamic library which contains
the POSIX 1003.1e draft standard 17 functions for manipulating access
control lists.

%files -n %{libname}
%license doc/COPYING*
/%{_lib}/*.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Access control list static libraries and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	acl-devel = %{EVRD}

%description -n	%{devname}
This package contains static libraries and header files needed to develop
programs which make use of the access control list programming interface
defined in POSIX 1003.1e draft standard 17.

You should install %{devname} if you want to develop programs
which make use of ACLs.

%files -n %{devname}
%doc doc/extensions.txt doc/libacl.txt
%license doc/COPYING*
%dir %{_includedir}/acl
%{_includedir}/acl/libacl.h
%{_includedir}/sys/acl.h
%{_libdir}/pkgconfig/libacl.pc
/%{_lib}/*.so
%{_mandir}/man3/*

#------------------------------------------------------------------

%prep
%autosetup -p1

# Fix unreadable files
find . -perm 0640 -exec chmod 0644 '{}' \;

%build
%configure	\
	--disable-static	\
	--libdir=/%{_lib}
%make

%install
%makeinstall_std dist_doc_DATA='README doc/CHANGES doc/extensions.txt doc/libacl.txt'

mkdir -p %{buildroot}/%{_libdir}/pkgconfig/
mv -v %{buildroot}/%{_lib}/pkgconfig/*.pc %{buildroot}/%{_libdir}/pkgconfig/
rm -rf %{buildroot}/usr/share/doc/acl/*

# To avoid unstripped-binary-or-object rpmlint error
chmod 0755 %{buildroot}/%{_lib}/*.so.%{major}*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11809 |21mr|acpi-1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Displays information on ACPI devices
Name:		acpi
Version:	1.7
Release:	7
License:	GPLv2+
Group:		System/Servers
Url:		http://sourceforge.net/projects/acpiclient/
Source0:	http://downloads.sourceforge.net/project/acpiclient/acpiclient/%{version}/%{name}-%{version}.tar.gz
Requires:	dmidecode

%description
Attempts to replicate the functionality of the 'old' apm command on
ACPI systems, including battery and thermal information.

%prep
%setup -q

%build
%configure
%make CFLAGS="%{optflags}"

%install
%makeinstall

%triggerpostun -- acpi < 0.09-4
rm -f /etc/rc.d/*/{K,S}*acpi

%files
%doc AUTHORS ChangeLog README
%{_bindir}/*
%{_mandir}/man1/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11810 |21mr|acpica-20210930-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of tools to display and debug your BIOS ACPI tables
Name:		acpica
Version:	20210930
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://acpica.org
# Sources and patches are takes from Rawhide
Source0:	https://acpica.org/sites/acpica/files/acpica-unix-%{version}.tar.gz
Patch0:		acpica-tools-20150717-no_strip_on_install.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	glibc-devel

Provides:	pmtools = %{EVRD}
Provides:	iasl = %{EVRD}

%description
The included tools share the same code as it is used in the ACPI
implementation of the kernel. The code of the acpica project is exactly
the same as the ACPI parser and interpreter code of the kernel and the
code gets synced regularly from the acpica project into the kernel.
E.g. if you identify bugs in the kernel's ACPI implementation it might
be easier to debug them in userspace if possible. If the bug is part of
the acpica code, it has to be submitted to the acpica project to get
merged into the mainline kernel sources.

%prep
%setup -qn %{name}-unix-%{version}
%patch0 -p1

# spurious executable permissions on text files in upstream
chmod a-x changes.txt

%build
sed -i -e 's/_CYGWIN/_LINUX/g' -e 's/-Werror//g' generate/unix/Makefile.config
CC="gcc %{optflags}"

%ifarch %{e2k}
sed -i 's/Wstrict-aliasing=0/Wstrict-aliasing /'   generate/unix/Makefile.config
sed -i 's/Wstrict-aliasing=0/Wstrict-aliasing /'  generate/unix/Makefile.config.orig
CC="$CC -Wno-error=pointer-to-int-cast -Wno-error=overflow"
%endif

# forget parallel here.Sflo
make -C generate/unix CC="$CC"

%install
make DESTDIR=%{buildroot} install
# Fix bin perms
chmod -R u+w %{buildroot}/%{_bindir}/*

%files
%doc changes.txt
%{_bindir}/iasl
%{_bindir}/acpi*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11811 |21mr|acpid-2.0.34-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ACPI kernel daemon and control utility
Name:		acpid
Version:	2.0.34
Release:	1
Epoch:		2
License:	GPLv2+
Group:		System/Servers
Url:		http://sourceforge.net/projects/acpid2/
Source0:	http://downloads.sourceforge.net/acpid2/%{name}-%{version}.tar.xz
Source1:	acpid.socket
Source2:	acpid.service
Source3:	acpid.config
Source4:	acpid.video.conf
BuildRequires:	systemd-units
Requires(post,preun):	rpm-helper
# 0.1-20 here is only to avoid unversioned Obsoletes
Obsoletes:	pm-fallback-policy < 0.1-20

%description
The ACPI specification defines power and system management functions
for each computer, in a generic manner. The ACPI daemon coordinates
the management of power and system functions when ACPI kernel
support is enabled (kernel 2.3.x or later).

%files
%doc %{_docdir}/%{name}
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/acpid
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man8/*
%{_unitdir}/acpid.service
%{_unitdir}/acpid.socket
%dir %{_sysconfdir}/acpi/actions
%dir %{_sysconfdir}/acpi/events
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/acpi/events/videoconf

%post
if [ $1 -eq 1 ]; then
    /bin/systemctl enable %{name}.service > /dev/null 2>&1 || :
fi

%systemd_post %{name}.socket %{name}.service

%preun
%systemd_preun %{name}.socket %{name}.service

%postun
%systemd_postun_with_restart %{name}.socket %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%serverbuild_hardened
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_unitdir}

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/acpid

install -d %{buildroot}%{_sysconfdir}/acpi/actions
install -d -m 755 %{buildroot}%{_sysconfdir}/acpi/events
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/acpi/events/videoconf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11812 |21mr|acr38u-1.7.11-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define usbdropdir %(pkg-config libpcsclite --variable="usbdropdir" 2>/dev/null)
%define major 0
%define libname %mklibname acr38ucontrol %{major}
%define develname %mklibname acr38ucontrol -d
%define build_version %(echo %{version} | awk -F '.' '{print $1}')00%(echo %{version} | awk -F '.' '{print $2}')%(echo %{version} | awk -F '.' '{print $3}')
%define _disable_rebuild_configure 1

Summary:	ACS ACR 38 USB (acr38u) Smartcard Reader driver for PCSC-lite
Name:		acr38u
Version:	1.7.11
Release:	5
License:	GPL
Group:		System/Kernel and hardware
URL:		http://www.acs.com.hk/acr38_driversmanual.asp
Source0:	http://www.acs.com.hk/download/ACR38_LINUX_%{build_version}_P.tar.bz2
Source1:	acr38u-udev.rules
Patch0:		acr38u-linkage_fix.diff
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(libusb)
OrderWithRequires(post): pcsc-lite
Requires:	pcsc-lite
Requires:	%{libname} = %{EVRD}

%description
CCID ACR38u Smart Card reader driver for PCSC-lite.

%files
%license COPYING
%doc AUTHORS ChangeLog INSTALL NEWS README* doc/README*
%{usbdropdir}/*
%{_udevrulesdir}/92-pcscd-acr38u.rules

%post
systemctl try-reload-or-restart pcscd.service || :

%postun
systemctl try-reload-or-restart pcscd.service || :

#-----------------------------------------------------------------

%package -n	%{libname}
Group:		System/Libraries
Summary:	Shared library for %{name}

%description -n	%{libname}
Shared library for the CCID ACR38u Smart Card reader driver for
PCSC-lite.

%files -n %{libname}
%license COPYING
%{_libdir}/libacr38ucontrol.so.%{major}*

#-----------------------------------------------------------------

%package -n	%{develname}
Summary:	Development library for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
Development files for the CCID ACR38u Smart Card reader driver for
PCSC-lite.

%files -n %{develname}
%{_libdir}/libacr38ucontrol.so
%{_includedir}/*
%{_libdir}/pkgconfig/libacr38ucontrol.pc

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n ACR38_LINUX_%{build_version}_P

%build
rm -rf autom4te.cache
autoreconf -fis

%configure \
	--disable-dependency-tracking \
	--disable-static \
	--enable-usbdropdir="%{buildroot}%{usbdropdir}"
%make

%install
%makeinstall_std

# move the .pc file to the correct place on x86-64
%if "%{_lib}" != "lib"
mkdir -p %{buildroot}%{_libdir}/pkgconfig
mv %{buildroot}%{_prefix}/lib/pkgconfig/libacr38ucontrol.pc %{buildroot}%{_libdir}/pkgconfig/libacr38ucontrol.pc
%endif

mkdir -p %{buildroot}%{_udevrulesdir}
install -m0644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/92-pcscd-acr38u.rules

chmod +x -R %{buildroot}%{usbdropdir} %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11813 |21mr|adcli-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# autoreconf is enough
%define _disable_rebuild_configure 1

Name:		adcli
Version:	0.9.2
Release:	1
Summary:	Command line tool that can perform actions in an Active Directory domain
License:	LGPLv2+
Group:		Networking/Other
URL:		https://gitlab.freedesktop.org/realmd/adcli
Source0:	https://gitlab.freedesktop.org/realmd/adcli/-/archive/%{version}/adcli-%{version}.tar.gz
Patch0:		0001-Skip-docs-validation.patch
BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	krb5-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	%{_lib}sasl2-devel
BuildRequires:	pkgconfig(com_err)
BuildRequires:	xmlto docbook-style-xsl docbook-dtd-xml
Requires:	%{_lib}sasl2-plug-gssapi

%description
adcli is a command line tool that can perform actions
in an Active Directory domain. Among other things it can
be used to join a computer to a domain.

%files
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%doc %{_docdir}/adcli/*.*
%{_bindir}/adcli
%{_sbindir}/adcli
%{_mandir}/*/*
#-------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -if
%configure
%make

%install
%makeinstall_std

# Root is not required to make lots of actions by adcli, but /usr/sbin is not in user's $PATH
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/adcli %{buildroot}%{_bindir}
( cd %{buildroot}%{_sbindir} && ln -s ../bin/adcli adcli )

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11814 |21mr|admc-0.13.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%global alt alt1

Name:		admc
Version:	0.13.0
Release:	2
Summary:	Active Directory Management Center
License:	GPLv3+
Group:		Development/Other
Url:		https://github.com/altlinuxteam/admc
Source0:	https://github.com/altlinux/admc/archive/refs/tags/%{version}-%{alt}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	admc.rpmlintrc
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	samba-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	doxygen
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(krb5)

Requires:	sasl-plug-gssapi

%files
%doc README.md
%doc CHANGELOG.txt
%doc CHANGELOG_ru.txt
%{_bindir}/admc
%{_libdir}/libadldap.so
%{_mandir}/man1/admc*
%{_datadir}/applications/admc.desktop
%{_datadir}/icons/hicolor/scalable/apps/admc.svg

#--------------------------------------------------------
%package test
Summary:	Tests for ADMC
Group:		Development/Other

%description
Active Directory Management Center (ADMC) is integrated complex tool implements
User and Computers and Group Policy Manager modules of Microsoft Remote Server
Administration Tools (RSAT).

%description test
Tests for ADMC

%files test
%_libdir/libadmctest.so
%_bindir/admc_test_*

#--------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{alt}

%build
%cmake -DCMAKE_INSTALL_LIBDIR=%{_libdir}
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11815 |21mr|adobe-afdko-3.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global archivename afdko

Name:		adobe-afdko
Version:	3.6.1
Release:	1
Summary:	Adobe Font Development Kit for OpenType
Group:		Development/Other
License:	ASL 2.0
URL:		https://github.com/adobe-type-tools/afdko
Source0:	https://github.com/adobe-type-tools/%{archivename}/releases/download/%{version}/%{archivename}-%{version}.tar.gz
BuildRequires:	gcc
#BuildRequires:	cmake

%description
Adobe Font Development Kit for OpenType (AFDKO).
The AFDKO is a set of tools for building OpenType font files
from PostScript and TrueType font data.

%prep
%autosetup -n %{archivename}-%{version}

%build
%set_build_flags
pushd c
sh buildalllinux.sh release
popd

%install
install -m 0755 -d %{buildroot}/%{_bindir}
pushd c/build_all
find ./ -type f -executable -exec install -p -m 0755 "{}" \
	%{buildroot}/%{_bindir} ";"

%files
%license LICENSE.md
%doc docs/ README.md NEWS.md
%{_bindir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11816 |21mr|adplug-2.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api 2.3.3
%define	major 0
%define	libname %mklibname %{name} %{api} %{major}
%define	devname %mklibname %{name} -d

Summary:	AdLib sound player library
Name:		adplug
Version:	2.3.3
Release:	1
License:	LGPLv2+
Group:		Sound
Url:		http://adplug.github.io/
Source0:	https://github.com/adplug/adplug/archive/%{name}-%{name}-%{version}.tar.gz
Source1:	https://github.com/adplug/database/archive/database-1.0.tar.gz
# Avoid collision with mad.h from libmad-devel
Patch0:		adplug-2.3.3-mad.patch
BuildRequires:	chrpath
BuildRequires:	texinfo
BuildRequires:	texlive-texinfo
BuildRequires:	pkgconfig(libbinio)

%description
AdPlug is a free, multi-platform, hardware independent AdLib sound player
library, mainly written in C++. AdPlug plays sound data, originally created
for the AdLib (OPL2) audio board, on top of an OPL2 emulator or by using the
real hardware. No OPL2 chip is required for playback.
It supports various audio formats from MS-DOS AdLib trackers.

%files
%doc README
%{_bindir}/adplugdb
%{_mandir}/man1/adplugdb.1*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/%{name}.db

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of the AdPlug audio emulator
Group:		System/Libraries

%description -n %{libname}
AdPlug is a free, multi-platform, hardware independent AdLib sound player
library, mainly written in C++. AdPlug plays sound data, originally created
for the AdLib (OPL2) audio board, on top of an OPL2 emulator or by using the
real hardware. No OPL2 chip is required for playback.
It supports various audio formats from MS-DOS AdLib trackers.
This package contains the shared library required to run applications based on
AdPlug.

%files -n %{libname}
%doc AUTHORS NEWS TODO COPYING
%{_libdir}/libadplug-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of AdPlug
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(libbinio)
Provides:	libadplug-devel = %{EVRD}

%description -n %{devname}
AdPlug is a free, multi-platform, hardware independent AdLib sound player
library, mainly written in C++. AdPlug plays sound data, originally created
for the AdLib (OPL2) audio board, on top of an OPL2 emulator or by using the
real hardware. No OPL2 chip is required for playback.
It supports various audio formats from MS-DOS AdLib trackers.

This package contains the C++ headers and documentation required for building
programs based on AdPlug.

%files -n %{devname}
%doc README
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_infodir}/libadplug.info*
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}
%patch0 -p1
mv src/mad.h src/%{name}_mad.h


%build
autoreconf -vfi
export CC=gcc
export CXX=g++
export CPPFLAGS="-I%{_includedir}/libbinio"
%configure \
	--disable-static
%make


%install
%makeinstall_std
mkdir -p %{buildroot}%{_datadir}/%{name}
zcat %{SOURCE1} > %{buildroot}%{_datadir}/%{name}/%{name}.db
chrpath -d %{buildroot}%{_bindir}/adplugdb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11817 |21mr|adwaita-icon-theme-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1)

Summary:	GNOME default icons
Name:		adwaita-icon-theme
Version:	42.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/adwaita-icon-theme
Source0:	https://download.gnome.org/sources/adwaita-icon-theme/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	xfce-icon-3.28.0.tar.bz2
BuildRequires:	/usr/bin/gtk-update-icon-cache
BuildRequires:	hicolor-icon-theme
BuildRequires:	icon-naming-utils
BuildRequires:	intltool
Requires:	hicolor-icon-theme
OrderWithRequires: /usr/bin/gtk-update-icon-cache
BuildArch:	noarch

%description
This package contains the Adwaita icon theme used by the GNOME desktop.

%files
# %doc %{_docdir}/%{name}
%dir %{_iconsdir}/Adwaita/
%ghost %{_iconsdir}/Adwaita/icon-theme.cache
%dir %{_iconsdir}/Adwaita/*x*/
%{_iconsdir}/Adwaita/*x*/*
%dir %{_iconsdir}/Adwaita/scalable/
%{_iconsdir}/Adwaita/scalable/*
%dir %{_iconsdir}/Adwaita/scalable-up-to-32
%{_iconsdir}/Adwaita/scalable-up-to-32/*
%{_iconsdir}/Adwaita/*.theme
%exclude %{_iconsdir}/Adwaita/cursors/

%transfiletriggerin -- %{_datadir}/icons/Adwaita
gtk-update-icon-cache --force %{_datadir}/icons/Adwaita &>/dev/null || :

%transfiletriggerpostun -- %{_datadir}/icons/Adwaita
gtk-update-icon-cache --force %{_datadir}/icons/Adwaita &>/dev/null || :

#----------------------------------------------------------------------------

%package -n adwaita-cursor-theme
Summary:	Adwaita cursor theme
Group:		Graphical desktop/GNOME
BuildArch:	noarch

%description -n adwaita-cursor-theme
The adwaita-cursor-theme package contains a modern set of cursors originally
designed for the GNOME desktop.

%files -n adwaita-cursor-theme
%{_datadir}/icons/Adwaita/cursors/

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for adwaita-icon-theme
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
Development files for gnome-icon-theme

%files devel
%{_datadir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-icon-mapping
%make

%install
%makeinstall_std

install -d %{buildroot}%{_iconsdir}
tar xjvf %{SOURCE1} -C %{buildroot}%{_iconsdir}

touch %{buildroot}%{_datadir}/icons/Adwaita/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11818 |21mr|adwaita-qt-1.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Adwaita theme for Qt-based applications
Name:		adwaita-qt
Version:	1.4.2
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/MartinBriza/adwaita-qt
Source0:	https://github.com/MartinBriza/adwaita-qt/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
#Qt6
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	qt6-cmake

%description
Adwaita theme for Qt-based applications.

#----------------------------------------------------------------------------

%package -n qt5-style-adwaita
Summary:	Adwaita style for Qt5
Group:		System/Libraries

%description -n qt5-style-adwaita
Adwaita style for Qt5.

%files -n qt5-style-adwaita
%{_qt5_plugindir}/styles/adwaita.so

#----------------------------------------------------------------------------

%package -n qt6-style-adwaita
Summary:	Adwaita style for Qt5
Group:		System/Libraries

%description -n qt6-style-adwaita
Adwaita style for Qt5.

%files -n qt6-style-adwaita
%{_libdir}/qt6/plugins/styles/adwaita.so

#----------------------------------------------------------------------------

%define major 1
%define libadwaitaqt %mklibname adwaitaqt %{major}

%package -n %{libadwaitaqt}
Summary:	Adwaita Qt5 library
Group:		System/Libraries

%description -n %{libadwaitaqt}
%{summary}.

%files -n %{libadwaitaqt}
%{_libdir}/libadwaitaqt.so.%{major}*

#----------------------------------------------------------------------------

%define libadwaitaqtpriv %mklibname adwaitaqtpriv %{major}

%package -n %{libadwaitaqtpriv}
Summary:	Adwaita Qt5 private library
Group:		System/Libraries

%description -n %{libadwaitaqtpriv}
%{summary}.

%files -n %{libadwaitaqtpriv}
%{_libdir}/libadwaitaqtpriv.so.%{major}*

#----------------------------------------------------------------------------

%define major 1
%define libadwaitaqt6 %mklibname adwaitaqt6 %{major}

%package -n %{libadwaitaqt6}
Summary:	Adwaita Qt6 library
Group:		System/Libraries

%description -n %{libadwaitaqt6}
%{summary}.

%files -n %{libadwaitaqt6}
%{_libdir}/libadwaitaqt6.so.%{major}*

#----------------------------------------------------------------------------

%define libadwaitaqtpriv6 %mklibname adwaitaqtpriv6 %{major}

%package -n %{libadwaitaqtpriv6}
Summary:	Adwaita Qt6 private library
Group:		System/Libraries

%description -n %{libadwaitaqtpriv6}
%{summary}.

%files -n %{libadwaitaqtpriv6}
%{_libdir}/libadwaitaqt6priv.so.%{major}*

#----------------------------------------------------------------------------

%define devadwaitaqt %mklibname adwaitaqt -d

%package -n %{devadwaitaqt}
Summary:	Development files for libadwaita-qt5
Group:		Development/Other
Requires:	%{libadwaitaqt} = %{EVRD}
Requires:	%{libadwaitaqtpriv} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	adwaita-qt5-devel = %{EVRD}
Provides:	libadwaita-qt5-devel = %{EVRD}

%description -n %{devadwaitaqt}
Package contains libraries and header files for
developing applications that use libadwaitaqt.

%files -n %{devadwaitaqt}
%dir %{_includedir}/AdwaitaQt
%{_includedir}/AdwaitaQt/*.h
%dir %{_libdir}/cmake/AdwaitaQt
%{_libdir}/cmake/AdwaitaQt/*.cmake
%{_libdir}/pkgconfig/adwaita-qt.pc
%{_libdir}/libadwaitaqt.so
%{_libdir}/libadwaitaqtpriv.so

#----------------------------------------------------------------------------

%define devadwaitaqt6 %mklibname adwaitaqt6 -d

%package -n %{devadwaitaqt6}
Summary:	Development files for libadwaita-qt6
Group:		Development/Other
Requires:	%{libadwaitaqt6} = %{EVRD}
Requires:	%{libadwaitaqtpriv6} = %{EVRD}
Provides:	adwaita-qt6-devel = %{EVRD}
Provides:	libadwaita-qt6-devel = %{EVRD}

%description -n %{devadwaitaqt6}
Package contains libraries and header files for
developing applications that use libadwaitaqt.

%files -n %{devadwaitaqt6}
%dir %{_includedir}/AdwaitaQt6
%{_includedir}/AdwaitaQt6/*.h
%dir %{_libdir}/cmake/AdwaitaQt6
%{_libdir}/cmake/AdwaitaQt6/*.cmake
%{_libdir}/libadwaitaqt6.so
%{_libdir}/libadwaitaqt6priv.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

tar -xvzf %{SOURCE0}

%build
pushd %{name}-%{version}
%cmake \
    -DUSE_QT6=true \
    -DQT_PLUGINS_DIR=%{_libdir}/qt6/plugins
%make
popd

%cmake_qt5
%make

%install
pushd %{name}-%{version}
%makeinstall_std -C build
popd
%makeinstall_std -C build

# drop .pc file to fix devel pkg reqs
rm -rf %{buildroot}%{_libdir}/pkgconfig/adwaita-qt6.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11819 |21mr|aesh-0.66.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          aesh
Version:       0.66.8
Release:       7
Summary:       Another Extendable SHell
Group:         Development/Java
License:       ASL 2.0
URL:           http://aeshell.github.io/
Source0:       https://github.com/aeshell/aesh/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.fusesource.jansi:jansi)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Æsh is a Java library for handling console input with the goal to support most
GNU Readline features.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}
# Cleanup
rm -r *gradle*

%pom_xpath_set pom:addClasspath false
# This test @ random fails (koji only)
# ComparisonFailure: expected:<[]foo> but was:<[$<2>]foo>
rm src/test/java/org/jboss/aesh/parser/ParserTest.java

%build
# Disable test failure on ARM builder only
%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%doc README.asciidoc
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11820 |21mr|aether-connector-okhttp-0.17.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit a1115e45f2a52d3b43d3b4f885eb8eaf041e69df
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           aether-connector-okhttp
Version:        0.17.3
Release:        3
Summary:        OkHttp Aether Connector

# src/main/java/io/tesla/aether/wagon/OkHttpsWagon.java is ASL and EPL
License:        EPL and (ASL 2.0 and EPL)
URL:            https://github.com/tesla/%{name}
Source0:        https://github.com/tesla/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava:18.0)
BuildRequires:  mvn(com.squareup.okhttp3:okhttp) >= 3.10.0
BuildRequires:  mvn(com.squareup.okio:okio) >= 1.14.0
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-impl)
BuildRequires:  mvn(org.eclipse.aether:aether-spi)
BuildRequires:  mvn(org.eclipse.aether:aether-util)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.sonatype.plugins:sisu-maven-plugin)
BuildRequires:  mvn(org.sonatype.sisu:sisu-guice::no_aop:)

Requires:  mvn(com.squareup.okhttp3:okhttp) >= 3.10.0
Requires:  mvn(com.squareup.okio:okio) >= 1.14.0

%description
A repository connector implementation based on Square's OkHttp.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q -n %{name}-%{commit}

find -name '*.class' -delete
find -name '*.jar' -delete

# Avoid reliance on takari-lifecycle
%pom_remove_parent
%pom_xpath_remove "pom:packaging"
%pom_add_plugin "org.sonatype.plugins:sisu-maven-plugin" . \
"        <executions>
          <execution>
            <id>generate-index</id>
            <phase>process-classes</phase>
            <goals><goal>main-index</goal></goals>
          </execution>
        </executions>"

%build
# We don't have all test deps (e.g. npn-boot, provisio-webserver)
%mvn_build --skip-tests -- -Dtakari.privatePackageReference=ignore -Dmaven.compiler.source=1.7 -Dmaven.compiler.target=1.7

%install
%mvn_install

%files -f .mfiles
%license eclipse-1.0.txt
%license license-header.txt

%files javadoc -f .mfiles-javadoc
%license eclipse-1.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11821 |21mr|afflib-3.7.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname afflib %{major}
%define devname %mklibname afflib -d

Summary:	A set of programs for creating and manipulating AFF files
Name:		afflib
Version:	3.7.19
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.afflib.org/
Source0:	https://github.com/sshock/AFFLIBv3/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libewf)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3-setuptools

%description
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

In addition to the library, AFFLIB also comes with the AFF Tools, a set of
programs for creating and manipulating AFF files.

%files
%{_bindir}/affcat
%{_bindir}/affcompare
%{_bindir}/affconvert
%{_bindir}/affcopy
%{_bindir}/affcrypto
%{_bindir}/affdiskprint
%{_bindir}/affix
%{_bindir}/affuse
%{_bindir}/affinfo
%{_bindir}/affrecover
%{_bindir}/affsegment
%{_bindir}/affsign
%{_bindir}/affstats
%{_bindir}/affverify
%{_bindir}/affxml
%{_mandir}/man1/*
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A shared library that implements the AFF standard
Group:		System/Libraries

%description -n %{libname}
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

This package contains a shared library that implements the AFF standard.

%files -n %{libname}
%doc AUTHORS BUGLIST.txt COPYING ChangeLog NEWS README* doc/*
%{_libdir}/libafflib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the afflib library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
AFFLIB is an open source library developed by Simson Garfinkel and Basis
Technology that implements the AFF standard. AFFLIB is distributed under
4-clause Berkeley License and may be freely incorporated into both Open
Source and Proprietary software.

This package contains the static afflib library and its header files.

%files -n %{devname}
%dir %{_includedir}/afflib
%{_includedir}/afflib/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn AFFLIBv3-%{version}

#fix spurious permissions with lzma443
find lzma443 -type f -exec chmod 0644 {} ';'
chmod 0644 lib/base64.{h,cpp}

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-shared \
	--enable-wide-character-type \
	--enable-libewf=yes \
	--enable-s3=yes \
	--enable-fuse=no \
	--enable-python=yes \
	--enable-qemu=no \
	--with-curl=%{_prefix} \
	PYTHON=%{__python3}
%make_build

%install
%make_install
# install headers as well
install -d %{buildroot}%{_includedir}/afflib
install -m0644 lib/*.h %{buildroot}%{_includedir}/afflib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11822 |21mr|afick-3.8.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The Win32::FileSecurity module works only on Windows NT
%global __requires_exclude perl\\(Win32::FileSecurity\\)

%define web_ver 1.11

Summary:	Another file integrity checker
Name:		afick
Version:	3.8.0
Release:	4
License:	GPLv2
Group:		File tools
Url:		http://afick.sourceforge.net
Source0:	https://sourceforge.net/projects/afick/files/afick/%{version}/%{name}-%{version}.tgz
Source1:	https://sourceforge.net/projects/afick/files/webmin%20module/%{web_ver}/wbm-afick-%{web_ver}.tgz
BuildArch:	noarch

%description
Portable file integrity checker
(it only needs standard perl to work).
it will be run daily by cron to detect new/deleted/modified files
It works by first (init) making an snapshot of strategic directories 
attributes, and then compare the disk status with this snapshot.
A Graphical interface is available in afick-gui package.

%files
%doc %{name}.lsm AUTHORS html linux.conf NEWS QUICKSTART README TODO 
%license COPYING COPYRIGHT
%attr(0755 root root) %{_sysconfdir}/cron.daily/%{name}_cron
%{_bindir}/%{name}
%{_bindir}/%{name}_archive
%{_bindir}/%{name}_archive.pl
%{_bindir}/%{name}-common.pl
%{_bindir}/%{name}_format.pl
%{_bindir}/%{name}_learn.pl
%{_bindir}/%{name}onfig
%{_bindir}/%{name}onfig.pl
%{_bindir}/%{name}.pl
%{_bindir}/%{name}_postinstall.pl
%{_bindir}/%{name}_preinstall.pl
%config(noreplace) %attr(0600 root root) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %attr(0700 root root) %{_sharedstatedir}/%{name}
%dir %attr(0700 root root) %{_sharedstatedir}/%{name}/archive
%dir %{_logdir}/%{name}
%dir %{_prefix}/lib/%{name}
%dir %{_prefix}/lib/%{name}/lib
%ghost %{_sharedstatedir}/%{name}/history
%ghost %{_sharedstatedir}/%{name}/%{name}.ctr
%ghost %{_sharedstatedir}/%{name}/%{name}.dir
%ghost %{_sharedstatedir}/%{name}/%{name}.pag
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}_archive.1.*
%{_mandir}/man1/%{name}_format.1.*
%{_mandir}/man1/%{name}_learn.1.*
%{_mandir}/man1/%{name}onfig.1.*
%{_mandir}/man5/%{name}.conf.5.*
%{_prefix}/lib/%{name}/lib/Afick

#----------------------------------------------------------------------------

%package gui
Summary:	A graphical interface for afick
Group:		File tools
Requires:	%{name} = %{EVRD}
Requires:	perl-Tk
BuildArch:	noarch

%description gui
afick-gui is perl/tk tool for afick software
It can be used to launch afick with differents options
and to have a graphical view of results
It comes with menu for integration in kde/gnome ...

%files gui 
%doc %{name}.lsm AUTHORS linux.conf NEWS QUICKSTART README TODO
%license COPYING COPYRIGHT
%{_bindir}/%{name}-gui
%{_bindir}/%{name}_learn_tk.pl
%{_bindir}/%{name}-tk
%{_bindir}/%{name}-tk.pl
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applnk
%{_datadir}/gnome
%{_datadir}/menu/%{name}-gui
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/pixmaps/%{name}.xpm
%{_iconsdir}/%{name}.png
%{_iconsdir}/%{name}.xpm
%{_mandir}/man1/%{name}_learn_tk.1.*
%{_mandir}/man1/%{name}-tk.1.*

#----------------------------------------------------------------------------

%package webmin
Summary:	Webmin module for 'Another File Integrity Checker'
Group:		File tools
Requires:	%{name} = %{EVRD}
Requires:	webmin
Provides:	wbm-afick = %{EVRD}
Provides:	webmin-%{name} = %{EVRD}
BuildArch:	noarch

%description webmin
Webmin module for 'Another File Integrity Checker' in RPM format.

%files webmin 
%doc %{name}/README
%license %{name}/COPYRIGHT
%config(noreplace) %attr(0644 root bin) %{_sysconfdir}/webmin/%{name}/config
%{_datadir}/webmin/%{name}
%dir %attr(0755 root bin) %{_sysconfdir}/webmin/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1

%build
perl Makefile.pl Makefile_sys.in

# webmin-afick
pushd %{name}
(find . -name '*.cgi' ; find . -name '*.pl') | perl -ne 'chop; open(F,$_); @l=<F>; close(F); $l[0] = "#!/usr/bin/perl$1
" if ($l[0] =~ /#!\S*perl\S*(.*)/); open(F,">$_"); print F @l; close(F)'
(find . -name '*.cgi' ; find . -name '*.pl') | xargs chmod +x
popd

%install
make DESTDIR=%{buildroot} installspec
make DESTDIR=%{buildroot} install-gui
mkdir -p %{buildroot}%{_logdir}/%{name}

chmod 755 %{buildroot}%{_prefix}/lib/%{name}/lib/Afick

# for ghost
touch %{buildroot}%{_sharedstatedir}/%{name}/%{name}.{ctr,dir,pag}
touch %{buildroot}%{_sharedstatedir}/%{name}/history

# webmin-afick
pushd %{name}
mkdir -p %{buildroot}%{_datadir}/webmin/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/webmin/%{name}
cp -rp * %{buildroot}%{_datadir}/webmin/%{name}
cp %{buildroot}%{_datadir}/webmin/%{name}/config %{buildroot}%{_sysconfdir}/webmin/%{name}
echo rpm >%{buildroot}%{_datadir}/webmin/%{name}/install-type
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11823 |21mr|afl-2.66c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	American fuzzy lop is a security-oriented fuzzer
Name:		afl
Version:	2.66c
Release:	1
License:	Apache-2.0
Group:		Development/Tools
Url:		http://lcamtuf.coredump.cx/afl/
Source0:	https://github.com/vanhauser-thc/AFLplusplus/archive/%{version}.tar.gz
Patch0:		afl-2.63c-fix-paths.patch

%description
American fuzzy lop is a security-oriented fuzzer that employs a novel type
of compile-time instrumentation and genetic algorithms to automatically
discover clean, interesting test cases that trigger new internal states in
the targeted binary. This substantially improves the functional coverage
for the fuzzed code. The compact synthesized corpora produced by the tool
are also useful for seeding other, more labor- or resource-intensive
testing regimes down the road.

Compared to other instrumented fuzzers, afl-fuzz is designed to be
practical: it has modest performance overhead, uses a variety of highly
effective fuzzing strategies and effort minimization tricks, requires
essentially no configuration, and seamlessly handles complex, real-world
use cases - say, common image parsing or file compression libraries.

%files
%doc %{_docdir}/%{name}
%{_bindir}/%{name}-analyze
%{_bindir}/%{name}-clang
%{_bindir}/%{name}-clang++
%{_bindir}/%{name}-cmin
%{_bindir}/%{name}-cmin.bash
%{_bindir}/%{name}-fuzz
%{_bindir}/%{name}-g++
%{_bindir}/%{name}-gcc
%{_bindir}/%{name}-gotcpu
%{_bindir}/%{name}-plot
%{_bindir}/%{name}-showmap
%{_bindir}/%{name}-system-config
%{_bindir}/%{name}-tmin
%{_bindir}/%{name}-whatsup
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/%{name}-as
%{_libexecdir}/%{name}/as
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/testcases
%{_datadir}/%{name}/testcases/*
%dir %{_datadir}/afl/dictionaries/
%{_datadir}/afl/dictionaries/*
%{_mandir}/man8/afl*.8*

#----------------------------------------------------------------------------

%prep
%setup -q -n AFLplusplus-%{version}
%patch0 -p1
sed -i 's|#!/usr/bin/env bash|#!/bin/bash|g' afl-cmin

%build
%setup_compile_flags
%ifnarch %{ix86} x86_64
export AFL_NO_X86=1
%endif
%make \
	PREFIX=%{_prefix} \
	LIBEXEC_DIR=%{_libexecdir} \
	DOC_DIR=%{_docdir}

%install
%ifnarch %{ix86} x86_64
export AFL_NO_X86=1
%endif
%makeinstall_std \
	PREFIX=%{_prefix} \
	LIBEXEC_DIR=%{_libexecdir} \
	DOC_DIR=%{_docdir} \
	MAN_PATH=%{_mandir}/man8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11824 |21mr|agg-2.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#autogen.sh generate configure, rebuild not neeed
%define _disable_rebuild_configure 1

## MD rename src pkg dir to agg
%define major 2
%define libname %mklibname %{name} %{major}
%define libfft %mklibname aggfontfreetype %{major}
%define libX11 %mklibname aggplatformX11_ %{major}
%define libsdl %mklibname aggplatformsdl %{major}
%define devname %mklibname %{name} -d

Summary:	Open Source, free of charge graphic library
Name:		agg
Version:	2.8.1
Release:	1
License:	AGG License
Group:		System/Libraries
Url:		https://sourceforge.net/projects/agg/
#Url:		https://sourceforge.net/p/agg/svn/
#Fork on github.com
#Url:		https://github.com/cppfw/agg
Source0:	https://github.com/cppfw/agg/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		agg-2.8.1-linkage_fix.diff
Patch2:		agg-2.5-no-rpath.patch
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)

%description
Anti-Grain Geometry (AGG) is an Open Source, free of charge graphic library,
written in industrially standard C++. The terms and conditions of use AGG
are described on The License page. AGG doesn't depend on any graphic API or
technology. Basically, you can think of AGG as of a rendering engine that
produces pixel images in memory from some vectorial data.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains a library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libagg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfft}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}agg2 < 2.5-10

%description -n %{libfft}
This package contains a library needed to run programs dynamically
linked with %{name}.

%files -n %{libfft}
%{_libdir}/libaggfontfreetype.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libsdl}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}agg2 < 2.5-10

%description -n %{libsdl}
This package contains a library needed to run programs dynamically
linked with %{name}.

%files -n %{libsdl}
%{_libdir}/libaggplatformsdl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libX11}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}agg2 < 2.5-10

%description -n %{libX11}
This package contains a library needed to run programs dynamically
linked with %{name}.

%files -n %{libX11}
%{_libdir}/libaggplatformX11.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libfft} = %{EVRD}
Requires:	%{libX11} = %{EVRD}
Requires:	%{libsdl} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_includedir}/agg2/
%{_datadir}/aclocal/*.m4
%{_libdir}/*.so
%{_libdir}/pkgconfig/libagg.pc

#----------------------------------------------------------------------------

%prep
%setup -q
pushd src/agg
%apply_patches
popd

%build
pushd src/agg
sh ./autogen.sh
%configure \
	--disable-static \
	--disable-examples

# nuke -Wl,--no-undefined in just two places
sed -i -e "s|-Wl,--no-undefined||g" src/platform/X11/Makefile
sed -i -e "s|-Wl,--no-undefined||g" src/platform/sdl/Makefile

%make_build
popd

%install
pushd src/agg
%make_install
popd
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11825 |21mr|aha-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		aha
Version:	0.5.1
Release:	1
Summary:	Ansi HTML Adapter
License:	MPLv1.1 or LGPLv2+
Group:		Development/Tools
URL:		https://github.com/theZiz/aha
Source0:	%{URL}/archive/%{version}/%{name}-%{version}.tar.gz
# Fix a null pointer dereference when interpreting
# invalid 24-bit color code escape sequences.
#
# Submitted upstream: https://github.com/theZiz/aha/pull/97
Patch0:		0000-fix-null-pointer-dereference.patch

BuildRequires:	gcc
BuildRequires:	make

%description
%{name} (ANSI HTML Adapter) converts ANSI escape sequences of
a unix terminal to HTML code.
%{name} parses output from other programs,
recognizes ANSI terminal escape sequences
and produces an HTML rendition of the original text.


%prep
%autosetup -p1
# Extract license header from source code
cat aha.c | awk '1;/\*\//{exit}' > LICENSE


%build
%set_build_flags
%make_build


%install
%make_install PREFIX=%{_prefix}


%files
%license LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11826 |21mr|aide-0.18.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Distro-specific default value is defined in branding-configs package
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Advanced Intrusion Detection Environment
Name:		aide
Version:	0.18.6
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		https://github.com/aide/aide
Source0:	https://github.com/aide/aide/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	aide.conf
Source3:	aidecheck
Source4:	aideupdate
Source5:	aideinit
Source6:	aideinit.8
# xgettext --language=shell --output=aidescripts_ru.po --join-existing aideinit aidecheck aideupdate aide.spec
Source7:	aidescripts_ru.po
Source8:	aidecheck.service
Source9:	aidecheck.timer
BuildRequires:	bison
Buildrequires:	flex
BuildRequires:	acl-devel
BuildRequires:	audit-devel
BuildRequires:	glibc-devel
BuildRequires:	elfutils-devel
BuildRequires:	gettext
BuildRequires:	sed
BuildRequires:	libtool
BuildRequires:	autoconf-archive
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(zlib)
# mhash supports GOST, libgcrypt does not
BuildRequires:	pkgconfig(mhash)

# for aidecheck, aideinit
Requires:	gnupg2
Requires:	hostname

%description
AIDE (Advanced Intrusion Detection Environment) is a free alternative to
Tripwire. It does the same things as the semi-free Tripwire and more. It
is a file system integrity monitoring tool.

%files
%doc AUTHORS ChangeLog NEWS README
%license COPYING
%attr(0700,root,root) %{_sbindir}/aide
%attr(0700,root,root) %{_sbindir}/aidecheck
%attr(0700,root,root) %{_sbindir}/aideinit
%attr(0700,root,root) %{_sbindir}/aideupdate
%lang(ru) %{_datadir}/locale/ru/LC_MESSAGES/aidescripts.mo
%{_mandir}/man1/aide.1*
%{_mandir}/man5/aide.conf.5*
%{_mandir}/man8/aideinit.8*
%dir %attr(0700,root,root) /var/lib/aide
%dir %attr(0700,root,root) /var/lib/aide/reports
%{_unitdir}/aidecheck.service
%{_unitdir}/aidecheck.timer
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/aide.conf

%post
%systemd_post aidecheck.timer
TEXTDOMAIN=aidescripts
printf "***********************************************************************\n"
printf "* "$"Please see aideinit(8) for information on how to setup AIDE+GPG""\n"
printf "***********************************************************************\n"

%postun
%systemd_postun aidecheck.timer

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
echo "m4_define([AIDE_VERSION], [%{version}])" > version.m4
autoreconf -fi
%configure \
	--with-config-file=%{_sysconfdir}/aide.conf \
	--with-zlib \
	--with-mhash \
	--disable-static \
	--with-posix-acl \
%if %{with selinux}
	--with-selinux \
%endif
	--with-prelink \
	--with-xattr \
	--with-e2fsattrs \
	--with-audit \
	--with-syslog_facility=LOG_LOCAL1

%make_build

%install
make prefix=%{buildroot}%{_prefix} \
	bindir=%{buildroot}%{_sbindir} \
	mandir=%{buildroot}%{_mandir} \
	install

mkdir -p %{buildroot}/var/lib/aide/reports
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_mandir}/man8

mkdir -p %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES
msgfmt -o %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/aidescripts.mo %{SOURCE7}

install -m 0600 %{SOURCE2} %{buildroot}%{_sysconfdir}/aide.conf
install -m 0700 %{SOURCE3} %{buildroot}%{_sbindir}/aidecheck
install -m 0700 %{SOURCE4} %{buildroot}%{_sbindir}/aideupdate
install -m 0700 %{SOURCE5} %{buildroot}%{_sbindir}/aideinit
install -m 0644 %{SOURCE6} %{buildroot}%{_mandir}/man8/aideinit.8

mkdir -p %{buildroot}%{_unitdir}
install -m0644 %{SOURCE8} %{buildroot}%{_unitdir}
install -m0644 %{SOURCE9} %{buildroot}%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11827 |21mr|airline-0.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          airline
Version:       0.7
Release:       10
Summary:       Java annotation-based framework
License:       ASL 2.0
URL:           https://github.com/airlift/airline
Source0:       https://github.com/airlift/airline/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.findbugs:annotations)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(org.testng:testng)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Airline is a Java annotation-based framework
for parsing Git like command line structures.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find -name '*.class' -delete
find -name '*.jar' -delete

# io.airlift:airbase:pom:28
%pom_remove_parent
%pom_xpath_inject "pom:project" "<groupId>io.airlift</groupId>"
# cannot find symbol javax.annotation.Nullable
%pom_add_dep com.google.code.findbugs:jsr305:2.0.3

%pom_xpath_inject "pom:dependency[pom:artifactId='annotations']" '<version>2.0.3</version>'
%pom_xpath_inject "pom:dependency[pom:artifactId='guava']" '<version>18.0</version>'
%pom_xpath_inject "pom:dependency[pom:artifactId='testng']" '<version>6.8.7</version>'

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license license.txt notice.md

%files javadoc -f .mfiles-javadoc
%license license.txt notice.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11828 |21mr|aisleriot-3.22.9-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	A compilation of solitaire card games
Name:		aisleriot
Version:	3.22.9
Release:	14
License:	GPLv3+
Group:		Games/Cards
Url:		https://download.gnome.org/sources/aisleriot
Source0:	https://download.gnome.org/sources/aisleriot/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	aisleriot-3.22.9_ru.tar.gz
Source100:	aisleriot.rpmlintrc
BuildRequires:	appdata-tools
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtds
BuildRequires:	gnome-common
BuildRequires:	gnome-doc-utils
BuildRequires:	guile22
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	yelp-tools
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(cairo) >= 1.10.0
BuildRequires:	pkgconfig(gconf-2.0) >= 2.0
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(guile-2.2)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcanberra-gtk3) >= 0.26
BuildRequires:	pkgconfig(librsvg-2.0) >= 2.32.0
BuildRequires:	pkgconfig(Qt5Svg) >= 5.0.0
BuildRequires:	pkgconfig(sm)
Conflicts:	gnome-games < 2.29.6-2

%description
Aisleriot (also known as Solitaire or sol) is a collection of card games
which are easy to play with the aid of a mouse. The rules for the games
have been coded for your pleasure in the GNOME scripting language (Scheme).

%files -f %{name}.lang
%{_sysconfdir}/gconf/schemas/%{name}.schemas
%{_bindir}/sol
%{_libdir}/%{name}/guile/2.2/*
%{_libexecdir}/%{name}/ar-cards-renderer
%{_libdir}/valgrind/%{name}.supp
%{_datadir}/applications/sol.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Patience.WindowState.gschema.xml
%{_iconsdir}/*/*/*/*
%{_mandir}/man6/sol.*
%{_datadir}/%{name}/
%{_datadir}/metainfo/sol.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
autoreconf -vfi
%global optflags %{optflags} -std=gnu++11
%configure \
	--with-card-theme-formats=all \
	--with-kde-card-theme-path=%{_datadir}/apps/carddecks \
	--with-pysol-card-theme-path=%{_datadir}/PySolFC \
	--enable-sound \
	--disable-schemas-compile \
	--disable-schemas-install \
	--disable-static
%make V=1 LIBS="-lstdc++"


%install
%makeinstall_std

desktop-file-validate %{buildroot}%{_datadir}/applications/sol.desktop

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11829 |21mr|akonadi-calendar-tools-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line interface to KDE calendars
Name:		akonadi-calendar-tools
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5akonadicalendar-devel
BuildRequires:	kf5calendarsupport-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	plasma5-kdepim-runtime

%description
A command line interface to KDE calendars. It lets you view, insert, remove,
or modify calendar events by way of the command line or from a scripting
language. Additionally, konsolekalendar can create a new KDE calendar, export
a KDE calendar to a variety of other formats, and import another KDE calendar.

%files -f %{name}.lang
%{_kde5_applicationsdir}/konsolekalendar.desktop
%{_kde5_bindir}/calendarjanitor
%{_kde5_bindir}/konsolekalendar
%{_kde5_iconsdir}/hicolor/*/apps/konsolekalendar.*
%{_kde5_datadir}/qlogging-categories5/console.categories
%{_kde5_datadir}/qlogging-categories5/console.renamecategories

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang calendarjanitor konsolekalendar %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11830 |21mr|akonadiconsole-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Console that helps to debug Akonadi
Name:		akonadiconsole
Version:	23.08.4
Release:	2
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		fix.locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarsupport-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Console that helps to debug Akonadi.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.akonadiconsole.desktop
%{_kde5_bindir}/akonadiconsole
%{_kde5_iconsdir}/hicolor/*/apps/akonadiconsole.*
%{_kde5_datadir}/qlogging-categories5/akonadiconsole.categories
%{_kde5_datadir}/qlogging-categories5/akonadiconsole.renamecategories

#----------------------------------------------------------------------------

%define akonadiconsole_major 5
%define libakonadiconsole %mklibname akonadiconsole %{akonadiconsole_major}

%package -n %{libakonadiconsole}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libakonadiconsole}
KDE PIM shared library.

%files -n %{libakonadiconsole}
%{_kde5_libdir}/libakonadiconsole.so.%{akonadiconsole_major}*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11831 |21mr|akonadi-import-wizard-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Import Wizard allows to migrate data from mailer as Thunderbird/Evolution etc
Name:		akonadi-import-wizard
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5mailimporter-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5messagecomposer-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	importwizard = %{EVRD}

%description
Import Wizard allows to migrate data from mailer as Thunderbird/Evolution etc.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.akonadiimportwizard.desktop
%{_kde5_bindir}/akonadiimportwizard
%{_kde5_datadir}/importwizard/pics/step1.png
%{_kde5_iconsdir}/hicolor/*/apps/kontact-import-wizard.*
%{_kde5_datadir}/qlogging-categories5/importwizard.categories
%{_kde5_datadir}/qlogging-categories5/importwizard.renamecategories
%{_qt5_plugindir}/pim5/importwizard/*.so

#----------------------------------------------------------------------------

%define kpimimportwizard_major 5
%define libkpimimportwizard %mklibname kpimimportwizard %{kpimimportwizard_major}

%package -n %{libkpimimportwizard}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkpimimportwizard}
KDE PIM shared library.

%files -n %{libkpimimportwizard}
%{_kde5_libdir}/libKPim5ImportWizard.so.%{kpimimportwizard_major}*

#----------------------------------------------------------------------------

%define devkpimimportwizard %mklibname kpimimportwizard -d

%package -n %{devkpimimportwizard}
Summary:	Development files for KDE PIM library
Group:		Development/KDE and Qt
Requires:	%{libkpimimportwizard} = %{EVRD}
Provides:	kpimimportwizard-devel = %{version}

%description -n %{devkpimimportwizard}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkpimimportwizard}
%dir %{_kde5_includedir}/KPim5/ImportWizard/
%{_kde5_includedir}/KPim5/ImportWizard/*
%{_kde5_libdir}/cmake/KPimImportWizard
%{_kde5_libdir}/cmake/KPim5ImportWizard
%{_kde5_libdir}/libKPim5ImportWizard.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang akonadiimportwizard importwizard %{name}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11832 |21mr|akregator-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE feed reader application
Name:		akregator
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	grantlee-qt5-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5grantleetheme-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5syndication-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5webengineviewer-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	plasma5-kdepim-runtime
Recommends:	plasma5-kdepim-addons

%description
Akregator is a news feed reader for the KDE desktop. It enables you to
follow news sites, blogs and other RSS/Atom-enabled websites without
the need to manually check for updates using a web browser. Akregator
is designed to be both easy to use and to be powerful enough to read
hundreds of news sources conveniently. It comes with Konqueror
integration for adding news feeds and with an internal browser for
easy news reading.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.akregator.desktop
%{_kde5_bindir}/akregator
%{_kde5_bindir}/akregatorstorageexporter
%{_kde5_datadir}/config.kcfg/akregator.kcfg
%dir %{_kde5_datadir}/akregator/
%{_kde5_datadir}/akregator/*
%{_kde5_datadir}/qlogging-categories5/akregator.categories
%{_kde5_datadir}/qlogging-categories5/akregator.renamecategories
%{_kde5_iconsdir}/hicolor/*/apps/akregator.*
%{_kde5_iconsdir}/hicolor/*/apps/akregator_empty.*
%{_kde5_notificationsdir}/akregator.notifyrc
%{_appdatadir}/org.kde.akregator.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.akregator.part.xml
%{_qt5_plugindir}/akregatorpart.so
%{_qt5_plugindir}/pim5/kontact/kontact_akregatorplugin.so
%{_qt5_plugindir}/pim5/kcms/akregator/akregator_config_*.so

#----------------------------------------------------------------------------

%define akregatorinterfaces_major 5
%define libakregatorinterfaces %mklibname akregatorinterfaces %{akregatorinterfaces_major}

%package -n %{libakregatorinterfaces}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libakregatorinterfaces}
KDE PIM shared library.

%files -n %{libakregatorinterfaces}
%{_kde5_libdir}/libakregatorinterfaces.so.%{akregatorinterfaces_major}*

#----------------------------------------------------------------------------

%define akregatorprivate_major 5
%define libakregatorprivate %mklibname akregatorprivate %{akregatorprivate_major}

%package -n %{libakregatorprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libakregatorprivate}
KDE PIM shared library.

%files -n %{libakregatorprivate}
%{_kde5_libdir}/libakregatorprivate.so.%{akregatorprivate_major}*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_kde5_libdir}/libakregatorinterfaces.so

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11833 |21mr|akuma-1.10-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           akuma
Version:        1.10
Release:        9
Summary:        Embeddable daemonization library for Java

# License is specified in pom file
License:        MIT
URL:            http://akuma.kohsuke.org
Source0:        https://github.com/kohsuke/%{name}/archive/%{name}-%{version}.tar.gz
Source1:        https://raw.github.com/kohsuke/youdebug/youdebug-1.5/LICENSE.txt
Patch0:         akuma-1.10-patch.diff

BuildRequires:  maven-local
BuildRequires:  maven-assembly-plugin
BuildRequires:  mvn(net.java.dev.jna:jna)
BuildRequires:  mvn(org.kohsuke:pom:pom:)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a Java library you can use in your application
to support Unix daemonization. By taking advantages of POSIX API,
this library lets you fork your process into background
with proper daemonization steps.

%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package provides the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0 -p0

cp %{SOURCE1} LICENSE

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11834 |21mr|alligator-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RSS reader for Plasma Mobile
Name:		alligator
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/alligator-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5syndication-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	pkgconfig(openssl)

%description
RSS reader for Plasma Mobile.


%files -f %{name}.lang
%{_kde5_bindir}/alligator
%{_kde5_applicationsdir}/org.kde.alligator.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/alligator.svg
%{_kde5_datadir}/metainfo/org.kde.alligator.appdata.xml

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11835 |21mr|alsa-lib-1.2.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version_alsa_ucm  1.2.11
%define	version_alsa_tplg 1.2.5.1

%define	major 2

%define	oldlib %mklibname alsa %{major}
%define	olddev %mklibname alsa2 -d

%define	libname %mklibname asound %{major}
%define	devname %mklibname asound -d

%define	libtopology %mklibname topology %{major}

Summary:	Config files for Advanced Linux Sound Architecture (ALSA)
Name:		alsa-lib
Version:	1.2.11
Release:	2
Epoch:		2
License:	LGPLv2+
Group:		Sound
Url:		https://www.alsa-project.org/
# https://github.com/alsa-project/alsa-lib/tags
# https://github.com/alsa-project/alsa-ucm-conf/tags
Source0:    http://www.alsa-project.org/files/pub/lib/%{name}-%{version}.tar.bz2
Source1:    http://www.alsa-project.org/files/pub/lib/alsa-ucm-conf-%{version_alsa_ucm}.tar.bz2
Source2:    http://www.alsa-project.org/files/pub/lib/alsa-topology-conf-%{version_alsa_tplg}.tar.bz2
Source10:	imx6-wandboard-.conf
Source11:	imx-hdmi-soc.conf
Source12:	imx-spdif.conf
Source21:	0001-ucm2-sof-essx8336-use-the-right-switch-and-mux-for-headset.patch
Source30:	README.soundprofiles
Source100:	 %{name}.rpmlintrc
BuildRequires:	doxygen
BuildRequires:	make
Requires(post,postun):	%{_sbindir}/update-alternatives
Provides:		libalsa-data = %{EVRD}
Recommends:		alsa-ucm
Recommends:		alsa-topology

%description
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS API;
- the new ALSA API that provides many enhanced features.
Using the ALSA API requires to use the ALSA library.

%files
%license COPYING
%{_bindir}/aserver
%dir %{_sysconfdir}/sound/profiles
%dir %{_sysconfdir}/sound/profiles/alsa
%{_sysconfdir}/sound/profiles/README
%{_sysconfdir}/sound/profiles/alsa/profile.conf
%{_sysconfdir}/sound/profiles/alsa/alsa-default.conf
%dir %{_datadir}/alsa/
%dir %{_datadir}/alsa/cards/
%dir %{_datadir}/alsa/ctl/
%dir %{_datadir}/alsa/pcm/
%dir %{_datadir}/alsa/ucm/
%{_datadir}/alsa/cards/*
%{_datadir}/alsa/ctl/default.conf
%{_datadir}/alsa/pcm/*
%{_datadir}/alsa/alsa.conf
%{_datadir}/alsa/alsa.conf.d

%post
%{_sbindir}/update-alternatives \
  --install %{_sysconfdir}/sound/profiles/current soundprofile %{_sysconfdir}/sound/profiles/alsa 10

%postun
if [ ! -f %{_sysconfdir}/sound/profiles/alsa/profile.conf ]; then
  %{_sbindir}/update-alternatives --remove soundprofile %{_sysconfdir}/sound/profiles/alsa
fi

#----------------------------------------------------------------------------

%package -n alsa-ucm
Summary:	ALSA Use Case Manager configuration
BuildArch:	noarch
License:	BSD
Group:		Sound
Requires:	%{name}
Provides:   alsa-ucm-conf = %{EVRD}
# Files were moved to subpackage due to different license (as in Fedora)
Obsoletes:	%{name} < 2:1.2.4-2
Conflicts:	%{name} < 2:1.2.4-2
Provides:   alsa-ucm-conf = %{EVRD}
# /lib/firmware/intel/sof, needed for many devices which are enabled by these configs
Recommends:	alsa-sof-firmware

%description -n alsa-ucm
The Advanced Linux Sound Architecture (ALSA) Use Case Manager configuration
contains alsa-lib configuration of Audio input/output names and routing

%files -n alsa-ucm
%{_datadir}/alsa/ucm
%{_datadir}/alsa/ucm2

#----------------------------------------------------------------------------

%package -n alsa-topology
Summary:	ALSA Topology configuration
BuildArch:	noarch
License:	BSD
Group:		Sound
Requires:	%{name}

%description -n alsa-topology
The Advanced Linux Sound Architecture (ALSA) topology configuration
contains alsa-lib configuration of SoC topology.

%files -n alsa-topology
%{_datadir}/alsa/topology

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Advanced Linux Sound Architecture (ALSA) library
Group:		Sound
Requires:	%{name} = %{EVRD}
Recommends:	%mklibname alsa-plugins
Provides:	%{oldlib} = %{EVRD}

%description -n %{libname}
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS API;
- the new ALSA API that provides many enhanced features.
This package contains config files by ALSA applications.

%files -n %{libname}
%{_libdir}/libasound.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Advanced Linux Sound Architecture (ALSA)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libtopology} = %{EVRD}
Provides:	%{olddev} = %{EVRD}
Provides:	libalsa-devel = %{EVRD}

%description -n %{devname}
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS API;
- the new ALSA API that provides many enhanced features.
This package contains files needed in order to develop an application
that made use of ALSA.

%files -n %{devname}
%{_includedir}/asoundlib.h
%dir %{_includedir}/alsa/
%{_includedir}/alsa/*
%{_includedir}/sys/asoundlib.h
%{_datadir}/aclocal/alsa.m4
%{_libdir}/libasound.so
%{_libdir}/libatopology.so
%{_libdir}/pkgconfig/alsa-topology.pc
%{_libdir}/pkgconfig/alsa.pc

#----------------------------------------------------------------------------

%package -n	%{libtopology}
Summary:	Advanced Linux Sound Architecture (ALSA) library
Group:		Sound
Requires:	%{libname} = %{EVRD}

%description -n	%{libtopology}
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS API;
- the new ALSA API that provides many enhanced features.
This package contains config files by ALSA applications.

%files -n %{libtopology}
%{_libdir}/libatopology.so.%{major}*

#----------------------------------------------------------------------------

%package docs
Summary:	Documentation for Advanced Linux Sound Architecture (ALSA)
Group:		Documentation
Requires:	%{libname} = %{EVRD}
Provides:	libalsa2-docs = 2:%{version}-%{release}
Obsoletes:	libalsa2-docs < 2:1.0.26

%description docs
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS API;
- the new ALSA API that provides many enhanced features.
The Advanced Linux Sound Architecture comes with a kernel API and library API.
This document describes the library API and how it interfaces with the kernel
API. Application programmers should use the library API rather than kernel API.
The Library offers 100% of the functionally of the kernel API, but add next
major improvements in usability, making the application code simpler and better
looking.
This package contains the documentation that describe the ALSA lib API.

%files docs
%doc doc/doxygen/html/* doc/asoundrc.txt

#----------------------------------------------------------------------------

%prep
%setup -q


%build
autoreconf -vif
%configure \
	--enable-shared

# Force definition of -DPIC so that VERSIONED_SYMBOLS are used
# FIXME: alsa people should not depend on PIC to determine a DSO build...
perl -pi -e 's,(^pic_flag=.+)(-fPIC),\1-DPIC \2,' libtool
%make_build
%make_build -C doc doc


%install
%make_install

install -m644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{buildroot}%{_datadir}/alsa/cards

# (cg) For sound profile support
mkdir -p %{buildroot}%{_datadir}/alsa/alsa.conf.d
mkdir -p %{buildroot}%{_sysconfdir}/sound/profiles/alsa
echo "SOUNDPROFILE=alsa" > %{buildroot}%{_sysconfdir}/sound/profiles/alsa/profile.conf
echo "# This file is left blank to allow alsa to default to dmix" > %{buildroot}%{_sysconfdir}/sound/profiles/alsa/alsa-default.conf
install -m 644 %{SOURCE30} -D %{buildroot}%{_sysconfdir}/sound/profiles/README
ln -s %{_sysconfdir}/sound/profiles/current/alsa-default.conf %{buildroot}%{_datadir}/alsa/alsa.conf.d/99-default.conf

# Install UCMs and topologies
( cd %{buildroot}%{_datadir}/alsa
  tar xvf %{SOURCE1} --strip-components=1
  patch -p1 < %{SOURCE21}
  tar xvf %{SOURCE2} --strip-components=1
  rm -fv README* LICENSE*
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11836 |21mr|alsa-oss-1.1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0

%define libalsatoss %mklibname alsatoss %{major}
%define libaoss %mklibname aoss %{major}
%define devname %mklibname %{name} -d

Summary:	Advanced Linux Sound Architecture (ALSA) library
Name:		alsa-oss
Version:	1.1.8
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Sound
Url:		http://www.alsa-project.org/
Source0:	ftp://ftp.alsa-project.org/pub/oss-lib/%{name}-%{version}.tar.bz2
Patch0:		alsa-oss-1.0.12-aoss.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)

%description
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS api
- the new ALSA api that provides many enhanced features.

Using the ALSA api requires to use the ALSA library.
This library provides oss compatibility

#----------------------------------------------------------------------------

%package -n %{libalsatoss}
Summary:	Advanced Linux Sound Architecture (ALSA) library
Group:		System/Libraries
Conflicts:	%{_lib}alsa-oss0 < 1:1.0.28
Obsoletes:	%{_lib}alsa-oss0 < 1:1.0.28

%description -n %{libalsatoss}
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS api
- the new ALSA api that provides many enhanced features.

Using the ALSA api requires to use the ALSA library.
This library provides oss compatibility.

%files -n %{libalsatoss}
%doc COPYING
%{_libdir}/libalsatoss.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libaoss}
Summary:	Advanced Linux Sound Architecture (ALSA) library
Group:		System/Libraries
Conflicts:	%{_lib}alsa-oss0 < 1:1.0.28

%description -n %{libaoss}
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS api
- the new ALSA api that provides many enhanced features.

Using the ALSA api requires to use the ALSA library.
This library provides oss compatibility.

%files -n %{libaoss}
%doc COPYING
%{_libdir}/libaoss.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Advanced Linux Sound Architecture (ALSA)
Group:		Development/C
Requires:	%{libalsatoss} = %{EVRD}
Requires:	%{libaoss} = %{EVRD}
Provides:	%{name}-devel  = %{EVRD}

%description -n %{devname}
Advanced Linux Sound Architecture (ALSA) is a modularized architecture which
supports quite a large range of ISA and PCI cards.
It's fully compatible with old OSS drivers (either OSS/Lite, OSS/commercial).
To use the features of alsa, one can either use:
- the old OSS api
- the new ALSA api that provides many enhanced features.

This package contains files needed in order to develop an application
that made use of ALSA.

%files -n %{devname}
%doc COPYING
%{_libdir}/*.so
%{_includedir}/oss-redir.h

#----------------------------------------------------------------------------

%package -n aoss
Summary:	Wrapper script to ease ALSA-OSS compatibility library usage
Group:		Development/C

%description -n aoss
aoss is a simple wrapper script which facilitates the use
of the ALSA OSS compatibility library.
It just sets the appropriate LD_PRELOAD path and then runs the command.

This is useful in cases where routing settings (which can
be made in your .asoundrc file) need to be applied to commands that use the
OSS API.

%files -n aoss
%doc COPYING
%{_bindir}/aoss
%{_mandir}/man1/aoss.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fiv
%configure --disable-static
%make CFLAGS="%{optflags} -O0" LDFLAGS="%{ldflags} -ldl"

%install
mkdir -p %{buildroot}%{_includedir}/sys
mkdir -p %{buildroot}%{_libdir}

%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11837 |21mr|alsa-plugins-1.2.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	libname %mklibname %{name}

Summary:	Advanced Linux Sound Architecture (ALSA) plugins
Name:		alsa-plugins
Version:	1.2.7.1
Release:	1
# All packages are LGPLv2+ with the exception of samplerate which is GPLv2+
License:	GPLv2+ and LGPLv2+
Group:		Sound
Url:		https://www.alsa-project.org
Source0:	http://www.alsa-project.org/files/pub/plugins/%{name}-%{version}.tar.bz2
Source1:	jack.conf
Source2:	pulseaudio.conf
Source3:	pcm-oss.conf
Source4:	samplerate.conf
Source5:	upmix.conf
Source6:	vdownmix.conf
Source7:	pulse-default.conf
Source8:	a52.conf
BuildRequires:	kernel-headers >= 2.4.0
BuildRequires:	pkgconfig(alsa) >= %{version}
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(speex)

%description
Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
with support for a large range of ISA and PCI cards. Fully compatible with
OSS/Lite (kernel sound drivers), but contains many enhanced features.
This is the plugins package, which allows you to manipulate ALSA settings.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Advanced Linux Sound Architecture (ALSA) plugins
Group:		Sound
%rename	%{name}

%description -n %{libname}
Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
with support for a large range of ISA and PCI cards. Fully compatible with
OSS/Lite (kernel sound drivers), but contains many enhanced features.
This is the plugins package, which allows you to manipulate ALSA settings.

%files -n %{libname}
%exclude %{_libdir}/alsa-lib/*_pulse.so
%exclude %{_libdir}/alsa-lib/*_jack.so
%exclude %{_libdir}/alsa-lib/*_a52.so
%{_datadir}/alsa/alsa.conf.d/10-rate-lav.conf
%{_datadir}/alsa/alsa.conf.d/10-samplerate.conf
%{_datadir}/alsa/alsa.conf.d/10-speexrate.conf
%{_datadir}/alsa/alsa.conf.d/50-arcam-av-ctl.conf
%{_datadir}/alsa/alsa.conf.d/50-jack.conf
%{_datadir}/alsa/alsa.conf.d/50-oss.conf
%{_datadir}/alsa/alsa.conf.d/50-pulseaudio.conf
%{_datadir}/alsa/alsa.conf.d/60-a52-encoder.conf
%{_datadir}/alsa/alsa.conf.d/60-speex.conf
%{_datadir}/alsa/alsa.conf.d/60-upmix.conf
%{_datadir}/alsa/alsa.conf.d/60-vdownmix.conf
%{_datadir}/alsa/alsa.conf.d/98-usb-stream.conf
%{_datadir}/alsa/pcm/samplerate.conf
%{_datadir}/alsa/pcm/upmix.conf
%{_datadir}/alsa/pcm/vdownmix.conf
%{_sysconfdir}/alsa/conf.d/10-rate-lav.conf
%{_sysconfdir}/alsa/conf.d/10-samplerate.conf
%{_sysconfdir}/alsa/conf.d/10-speexrate.conf
%{_sysconfdir}/alsa/conf.d/50-arcam-av-ctl.conf
%{_sysconfdir}/alsa/conf.d/50-jack.conf
%{_sysconfdir}/alsa/conf.d/50-oss.conf
%{_sysconfdir}/alsa/conf.d/50-pulseaudio.conf
%{_sysconfdir}/alsa/conf.d/60-a52-encoder.conf
%{_sysconfdir}/alsa/conf.d/60-speex.conf
%{_sysconfdir}/alsa/conf.d/60-upmix.conf
%{_sysconfdir}/alsa/conf.d/60-vdownmix.conf
%{_sysconfdir}/alsa/conf.d/98-usb-stream.conf
%{_sysconfdir}/alsa/conf.d/99-pulseaudio-default.conf.example
%{_libdir}/alsa-lib

#----------------------------------------------------------------------------

%package doc
Summary:	Advanced Linux Sound Architecture (ALSA) plugins
Group:		Sound
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc COPYING* doc/R* doc/*.txt

#----------------------------------------------------------------------------

# (tv) needed for biarch:
%package pulse-config
Summary:	Alsa to PulseAudio backend configuration
Group:		Sound
License:	LGPLv2+
# (cg) For upgrading from old configuration system
Requires(post):	libalsa-data >= 1.0.20-2
Requires(post):	update-alternatives

%description pulse-config
This package contains configuration files for the pulse ALSA plugin.

%files pulse-config
%{_sysconfdir}/sound/profiles/pulse/alsa-default.conf
%{_datadir}/alsa/pcm/pulseaudio.conf

%post pulse-config
# (cg) Check to see if the user has disabled pulse in the old style setup.
if [ -f %{_sysconfdir}/alsa/pulse-default.conf ]; then
  if grep -q "^#DRAKSOUND- " %{_sysconfdir}/alsa/pulse-default.conf; then
    update-alternatives --set soundprofile %{_sysconfdir}/sound/profiles/alsa
  fi
fi

#----------------------------------------------------------------------------

%package -n %{libname}-pulseaudio
Summary:	Alsa to PulseAudio backend
Group:		Sound
License:	LGPLv2+
Provides:		%{name}-pulseaudio = %{EVRD}
Requires:	%{name}-pulse-config

%description -n %{libname}-pulseaudio
This plugin allows any program that uses the ALSA API to access a PulseAudio
sound daemon. In other words, native ALSA applications can play and record
sound across a network. There are two plugins in the suite, one for PCM and
one for mixer control.

%files -n %{libname}-pulseaudio
%doc doc/README-pulse
%{_libdir}/alsa-lib/libasound_module_pcm_pulse.so
%{_libdir}/alsa-lib/libasound_module_ctl_pulse.so
%{_libdir}/alsa-lib/libasound_module_conf_pulse.so

#----------------------------------------------------------------------------

%package -n %{libname}-jack
Summary:	Jack PCM output plugin for ALSA
Group:		Sound
License:	LGPLv2+
Provides:	%{name}-jack = %{EVRD}

%description -n %{libname}-jack
This plugin converts the ALSA API over JACK (Jack Audio Connection
Kit, http://jackit.sf.net) API.  ALSA native applications can work
transparently together with jackd for both playback and capture.
    ALSA apps (playback) -> ALSA-lib -> JACK plugin -> JACK daemon
    ALSA apps (capture) <- ALSA-lib <- JACK plugin <- JACK daemon
This plugin provides the PCM type "jack".

%files -n %{libname}-jack
%doc doc/README-jack
%{_datadir}/alsa/pcm/jack.conf
%{_libdir}/alsa-lib/libasound_module_pcm_jack.so

#----------------------------------------------------------------------------

%package -n %{libname}-a52
Summary:	A52/AC3 output plugin for ALSA
Group:		Sound
License:	LGPLv2+
Provides:	%{name}-a52 = %{EVRD}
Conflicts:	%{libname} <= 1.0.25-1

%description -n %{libname}-a52
This plugin supports Digital 5.1 AC3 emulation over S/PDIF (IEC958).

%files -n %{libname}-a52
%{_datadir}/alsa/alsa.conf.d/a52.conf
%{_libdir}/alsa-lib/libasound_module_pcm_a52.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
autoreconf -vfi
%configure
%make LIBS='-pthread'


%install
%makeinstall_std mkdir_p="mkdir -p"

install -d %{buildroot}%{_datadir}/alsa/pcm
install -m644 %{SOURCE1} %{SOURCE2} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{buildroot}%{_datadir}/alsa/pcm

# (cg) Include a configuration for when pulse is active
install -m644 %{SOURCE7} -D %{buildroot}%{_sysconfdir}/sound/profiles/pulse/alsa-default.conf

# Install a52 conf
mkdir -p %{buildroot}%{_datadir}/alsa/alsa.conf.d
install -m 644 %{SOURCE8} %{buildroot}%{_datadir}/alsa/alsa.conf.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11838 |21mr|alsa-sof-firmware-2023.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This is a firmware package, so binaries (which are not run on the host)
# in the end package are expected.
%define _binaries_in_noarch_packages_terminate_build 0
%global _xz_opts -9 --check=crc32

%global tplg_version 1.2.11

%if %{mdvver} >= 202310
%define _firmware_path /usr/lib/firmware
%else
%define _firmware_path /lib/firmware
%endif

Summary:	Firmware and topology files for Sound Open Firmware project
Name:		alsa-sof-firmware
Version:	2023.12
Release:	2
# See later in the spec for a breakdown of licensing
License:	BSD
Group:		Sound
Url:		https://github.com/thesofproject/sof-bin
Source0:	https://github.com/thesofproject/sof-bin/releases/download/v%{version}/sof-bin-%{version}.tar.gz
# Additional firmware from Aquarius and other OEM partners
# Also present here:
# https://git.altlinux.org/gears/f/firmware-alsa-sof.git?p=firmware-alsa-sof.git;a=commitdiff;h=19c20a01927cb28b4773c61125aff27bd99aad0a
# https://git.altlinux.org/gears/f/firmware-alsa-sof.git?p=firmware-alsa-sof.git;a=commitdiff;h=3e1039d55a64f83cb43fdacbef2b9f4c6857557e
Source11:	sof-cml-es8336.tplg
Source14:	sof-tgl-es8326.tplg
BuildRequires:	alsa-utils >= %{tplg_version}
BuildRequires:	alsa-topology >= %{tplg_version}
# noarch, since the package is firmware
BuildArch:	noarch

%description
This package contains the firmware binaries for the Sound Open Firmware project.

%files -f alsa-sof-firmware.files
%doc README*
%license LICENCE*
%dir %{_firmware_path}
# Licence: 3-clause BSD
%{_firmware_path}/*.bin.xz
# Licence: 3-clause BSD
# .. for files with suffix .tplg
%{_firmware_path}/intel/sof-tplg/*.tplg.xz
%{_firmware_path}/intel/sof-ace-tplg/*.tplg.xz

#------------------------------------------------------------------

%package debug
Summary:	Debug files for Sound Open Firmware project
Group:		Development/Other
Requires:	alsa-sof-firmware

%description debug
This package contains the debug files for the Sound Open Firmware project.

# Licence: SOF (3-clause BSD plus others)
# .. for files with suffix .ri
%files debug -f alsa-sof-firmware.debug-files

#------------------------------------------------------------------

%prep
%autosetup -p1 -n sof-bin-%{version}

mkdir -p firmware/intel/sof

# we have the version in the package name
mv sof/* firmware/intel/sof

# move topology files
mv sof-tplg firmware/intel/sof-tplg
mv sof-ace-tplg firmware/intel/sof-ace-tplg

for i in %{SOURCE11} %{SOURCE14}
do
	filename="$(basename "$i")"
	if test -f firmware/intel/sof-tplg/"$filename"; then
		echo "$filename already exists in upstream!"
		exit 1
	fi
	cp "$i" firmware/intel/sof-tplg/
done

# remove NXP firmware files
rm LICENCE.NXP
rm -rf firmware/intel/sof-tplg/sof-imx8*

# remove Mediatek firmware files
rm -rf firmware/intel/sof-tplg/sof-mt8*

# use xz compression
find -P firmware/intel/sof -type f -name "*.ri" -exec xz -z %{_xz_opts} {} \;
for f in $(find -P firmware/intel/sof -type l -name "*.ri"); do \
	l=$(readlink "${f}"); \
	d=$(dirname "${f}"); \
	b=$(basename "${f}"); \
	rm "${f}"; \
	pushd "${d}"; \
	ln -svf "${l}.xz" "${b}.xz"; \
	popd; \
done
find -P firmware/intel/sof-tplg -type f -name "*.tplg" -exec xz -z %{_xz_opts} {} \;
find -P firmware/intel/sof-ace-tplg -type f -name "*.tplg" -exec xz -z %{_xz_opts} {} \;

%build
# SST topology files (not SOF related, but it's a Intel hw support
# and this package seems a good place to distribute them
alsatplg -c /usr/share/alsa/topology/hda-dsp/skl_hda_dsp_generic-tplg.conf \
	-o firmware/skl_hda_dsp_generic-tplg.bin
# use xz compression
xz -z %{_xz_opts} firmware/*.bin
chmod 0644 firmware/*.bin.xz

%install
mkdir -p %{buildroot}%{_firmware_path}
cp -ra firmware/* %{buildroot}%{_firmware_path}

# gather files and directories
FILEDIR=$(pwd)
pushd %{buildroot}/%{_firmware_path}
find -P . -name "*.ri.xz" | sed -e '/^.$/d' >> $FILEDIR/alsa-sof-firmware.files
#find -P . -name "*.tplg" | sed -e '/^.$/d' >> $FILEDIR/alsa-sof-firmware.files
find -P . -name "*.ldc" | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.debug-files
find -P . -type d | sed -e '/^.$/d' > $FILEDIR/alsa-sof-firmware.dirs
popd

sed -i -e 's:^./::' alsa-sof-firmware.{files,debug-files,dirs}
sed -i -e 's!^!%{_firmware_path}/!' alsa-sof-firmware.{files,debug-files,dirs}
sed -e 's/^/%%dir /' alsa-sof-firmware.dirs >> alsa-sof-firmware.files

cat alsa-sof-firmware.files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11839 |21mr|alsa-tools-1.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# sb16_csp is added conditionally!
%define MODULES_NOCSPCTL as10k1 echomixer envy24control hdajackretask hdajacksensetest hda-verb hdspconf hdsploader hdspmixer ld10k1 mixartloader pcxhrloader rmedigicontrol seq/sbiload sscape_ctl us428control usx2yloader vxloader
# qlo10k1 needs l10k1 and thus this package will only bootstrap if it's installed first

%ifarch ppc %{mips} %{arm}
%define MODULES %{MODULES_NOCSPCTL}
%else
%define MODULES %{MODULES_NOCSPCTL} sb16_csp
%endif

%define major 0
%define libname %mklibname lo10k1_%{major}
%define devname %mklibname lo10k1 -d

Summary:	Advanced Linux Sound Architecture (ALSA) tools
Name:		alsa-tools
Version:	1.2.5
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://alsa-project.org
Source0:	ftp://ftp.alsa-project.org/pub/tools/%{name}-%{version}.tar.bz2
Source1:	90-alsa-tools-firmware.rules
Patch1:		alsa-tools-1.0.18-sscape_ctl.c.patch
# From Debian: adapt to udev instead of hotplug - AdamW 2008/03
Patch2:		alsa-tools-1.0.16-usx2yloader-udev.patch
# (tv) fix underlinking:
Patch3:		alsa-tools-1.0.17rc1-fix-link.patch
# When launched from desktop files, show a message if no cards found
Patch4:		alsa-tools-1.1.7-avoid-silent-fail.patch

BuildRequires:	desktop-file-utils
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ncurses)

%rename		envy24control
%rename		hdspconf
%rename		hdspmixer
%rename		rmedigicontrol
%rename		sb16_csp
%rename		sbiload
%rename		sscape_ctl
%rename		us428control
%rename		as10k1
%rename		echomixer
Obsoletes:	ac3dec < 1.0.27-1

%description
Advanced Linux Sound Architecture (ALSA) utils. Modularized 
architecture with support for a large range of ISA and PCI cards.
Fully compatible with OSS/Lite (kernel sound drivers), but 
contains many enhanced features.

This source rpm package provides several sub packages:
* as10k1 - AS10k1 Assembler version A0.99
* cspctl - Sound Blaster 16 ASP/CSP control program
* envy24control - Control tool for Envy24 (ice1712) based sound cards
* hdspmixer - Mixer for the RME Hammerfall DSP cards
* rmedigicontrol - Control panel for RME Hammerfall cards
* sbiload - An OPL2/3 FM instrument loader for ALSA sequencer
* sscape_ctl - ALSA SoundScape control utility
* us428control - Control tool for Tascam 428

%files
%{_bindir}/as10k1
%{_bindir}/echomixer
%{_bindir}/envy24control
%{_bindir}/hdspconf
%{_bindir}/hdspmixer
%{_bindir}/rmedigicontrol
%{_bindir}/sbiload
%{_bindir}/sscape_ctl
%{_bindir}/us428control
%{_bindir}/hda-verb
%{_bindir}/hdajackretask
%{_bindir}/hdajacksensetest
%{_bindir}/*wrapper
%{_datadir}/applications/hdspconf.desktop
%{_datadir}/applications/hdajackretask.desktop
%{_datadir}/applications/hdspmixer.desktop
%{_datadir}/applications/echomixer.desktop
%{_datadir}/applications/envy24control.desktop
%{_datadir}/applications/rmedigicontrol.desktop
%{_datadir}/sounds/opl3/
%{_iconsdir}/hicolor/*/*/*.png
%{_mandir}/man1/envy24control.1*
%ifnarch ppc %{mips} %{arm}
%{_bindir}/cspctl
%{_mandir}/man1/cspctl.*
%endif

#----------------------------------------------------------------------------

%package firmware
Summary:	ALSA tools for uploading firmware to some sound cards
License:	GPLv1+
Group:		System/Kernel and hardware
Requires:	alsa-firmware >= 1.0.25
%rename		hdsploader
%rename		mixartloader
%rename		pcxhrloader
%rename		usx2yloader
%rename		vxloader

%description firmware
This package contains tools for flashing firmware into certain sound cards.
The following tools are available:

* hdsploader   - for RME Hammerfall DSP cards
* mixartloader - for Digigram miXart sound cards
* pcxhrloader  - for Digigram PCXHR sound cards
* usx2yloader  - second phase firmware loader for Tascam USX2Y USB sound cards
* vxloader     - for Digigram VX sound cards

%files firmware
/lib/udev/rules.d/90-alsa-tools-firmware.rules
/lib/udev/tascam_fpga
/lib/udev/tascam_fw
%{_bindir}/hdsploader
%{_bindir}/mixartloader
%{_bindir}/pcxhrloader
%{_bindir}/usx2yloader
%{_bindir}/vxloader

#----------------------------------------------------------------------------

%package -n ld10k1
Summary:	AS10k1 Assembler version A0.99
License:	GPLv1
Group:		System/Kernel and hardware

%description -n ld10k1
This is patch loader for EMU10K1 (EMU10K2) for ALSA.
This disables AC3 passthrough on SB Live.

There are two parts:
Server - ld10k1 - running as service - it is storing driver state - it must run
under root or by setuided
Client - lo10k1 - controls server and dump loader dl10k1 - loads dumps
previously created with lo10k1 & ld10k1.

ld10k1 will clear card DSP program and you will hear nothing.
You must load some patches to route sound from inputs to outputs (use
audigy_init script for audigy 1, 2 or init_live for sb live).
After loading patch check and set oss mixer emulation through proc file
(/proc/asound/card/oss_mixer)

In directory setup are some patches which I use on my Audigy for testing.
With this you will have exactly same mixer as with original driver (+headphone
control, not tested AudigyDrive inputs and outputs, AC3 passthrought).
Use as10k1 compiler from alsa-tools package to compile patches.

%files -n ld10k1
%{_bindir}/lo10k1
%{_bindir}/init_audigy
%{_bindir}/init_audigy_eq10
%{_bindir}/init_live
%{_datadir}/ld10k1
%{_sbindir}/ld10k1
%{_sbindir}/dl10k1
%{_sbindir}/ld10k1d

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Ld10k1_ library
Group:		System/Libraries
Obsoletes:	%{_lib}lo10k10 < 1.0.27-2

%description -n %{libname}
This is the library of ld10k1.

%files -n %{libname}
%{_libdir}/liblo10k1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for l10k1
Group:		Development/C
Requires:	%{libname} = %{version}
Obsoletes:	%{_lib}lo10k10-devel < 1.0.27-2

%description -n %{devname}
This package contains files needed in order to develop an application
that made use of the ld10k1 library.

%files -n %{devname}
%{_includedir}/lo10k1
%{_datadir}/aclocal/ld10k1.m4
%{_libdir}/liblo10k1.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd envy24control
touch NEWS ChangeLog
popd

find . -name "Make*" -o -name "configure.*" |xargs sed -i -e 's,configure\.in,configure.ac,g'

%build
for i in %{MODULES}; do
pushd ${i}
libtoolize -c -f
autoreconf -fi
%configure
%make
popd
done

%install
for i in %{MODULES}; do
pushd ${i}
  %makeinstall_std
popd
done

# install menu entries
# use wrappers with kdialog/xmessage to show some valuable message if program fails to start due to missing card
# We don't use exit code (some programs exit with zero code in this situation, but even if you get non-zero code
# you can't say if this is due to a missing card or due to another reason)

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/echomixer.desktop << EOF
[Desktop Entry]
Name=Echo mixer
Comment=Control tool for Echoaudio sound cards
Comment[ru]=Утилита управления звуковыми картами Echoaudio
Exec=%{_bindir}/echomixer_wrapper
Icon=sound_section
Terminal=false
Type=Application
Categories=AudioVideo;Audio;Mixer;
EOF

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/envy24control.desktop << EOF
[Desktop Entry]
Name=Envy24control
Comment=Control tool for Envy24 (ice1712) based sound cards
Comment[ru]=Утилита управления звуковыми картами Envy24 (ice1712)
Exec=%{_bindir}/envy24control_wrapper
Icon=sound_section
Terminal=false
Type=Application
Categories=AudioVideo;Audio;Mixer;
EOF

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rmedigicontrol.desktop << EOF
[Desktop Entry]
Name=RME Digicontrol
Comment=Control panel for RME Hammerfall
Comment[ru]=Панель управления для RME Hammerfall
Exec=%{_bindir}/rmedigicontrol
Icon=sound_section
Terminal=false
Type=Application
Categories=AudioVideo;Audio;Mixer;
EOF

echo "#!/bin/sh" > %{buildroot}%{_bindir}/echomixer_wrapper
echo "%{_bindir}/echomixer 2>&1 | grep -q 'No Echoaudio cards found, sorry.'; if [[ \$? == 0 ]]; then kdialog --msgbox \"No Echoaudio cards found.\" || xmessage \"No Echoaudio cards found.\"; fi" >> %{buildroot}%{_bindir}/echomixer_wrapper

echo "#!/bin/sh" > %{buildroot}%{_bindir}/envy24control_wrapper
echo "%{_bindir}/envy24control 2>&1 | grep -q 'No ICE1712 cards found'; if [[ \$? == 0 ]]; then kdialog --msgbox \"No ICE1712 cards found.\" || xmessage \"No ICE1712 cards found.\"; fi" >> %{buildroot}%{_bindir}/envy24control_wrapper

echo "#!/bin/sh" > %{buildroot}%{_bindir}/hdspconf_wrapper
echo "%{_bindir}/hdspconf 2>&1 | grep -q 'No Hammerfall DSP card found.'; if [[ \$? == 0 ]]; then kdialog --msgbox \"No Hammerfall DSP card found.\" || xmessage \"No Hammerfall DSP card found.\"; fi" >> %{buildroot}%{_bindir}/hdspconf_wrapper

echo "#!/bin/sh" > %{buildroot}%{_bindir}/hdspmixer_wrapper
echo "%{_bindir}/hdspmixer 2>&1 | grep -q 'No RME cards found.'; if [[ \$? == 0 ]]; then kdialog --msgbox \"No RME cards found.\" || xmessage \"No RME cards found.\"; fi" >> %{buildroot}%{_bindir}/hdspmixer_wrapper

chmod a+x %{buildroot}%{_bindir}/*wrapper

# fix .desktop files
sed -i 's,.png,,' %{buildroot}%{_datadir}/applications/{hdspconf,hdspmixer}.desktop

desktop-file-install \
	--vendor="" \
	--remove-key="Encoding" \
	--remove-key="FilePattern" \
	--remove-category="Application" \
	--dir=%{buildroot}%{_datadir}/applications/ \
	%{buildroot}%{_datadir}/applications/*

# udev rules file for usx2yloader - AdamW 2008/03
mkdir -p %{buildroot}/lib/udev/rules.d/
install -p -m 0644 %{SOURCE1} %{buildroot}/lib/udev/rules.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11840 |21mr|alsa-utils-1.2.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced Linux Sound Architecture (ALSA) utilities
Name:		alsa-utils
Version:	1.2.11
Release:	2
License:	GPLv2+
Group:		Sound
Url:		https://www.alsa-project.org
Source0:	http://www.alsa-project.org/files/pub/utils/%{name}-%{version}.tar.bz2
Patch0:	alsa-utils-1.1.0-dtd45.patch
BuildRequires:	docbook-dtd45-xml
BuildRequires:	kernel-headers
BuildRequires:	systemd-units
BuildRequires:	xmlto
BuildRequires:	pkgconfig(alsa) >= 1.2.5
BuildRequires:	pkgconfig(alsa-topology) >= 1.1.9
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)
Requires:	alsa-lib >= 2:%{version}
# Dependency for alsaconf:
Requires:	pciutils

%description
Advanced Linux Sound Architecture (ALSA) utilities. Modularized architecture
with support for a large range of ISA and PCI cards. Fully compatible with
OSS/Lite (kernel sound drivers), but contains many enhanced features.
This is the utilities package, which allows you to manipulate ALSA settings.

%files
%license COPYING
%doc ABOUT-NLS ChangeLog README.md TODO
%{_bindir}/[a-n]*
%{_sbindir}/alsactl
%{_sbindir}/alsa-info.sh
%{_sbindir}/alsabat-test.sh
%{_libdir}/alsa-topology/libalsatplg_module_nhlt.so
%{_mandir}/man1/[a-n]*
%{_mandir}/man7/alsactl_init.7*
%{_datadir}/alsa/
%{_unitdir}/*.service
%{_unitdir}/*/*.service
%{_udevrulesdir}/*.rules
/var/lib/alsa

#----------------------------------------------------------------------------

%package -n speaker-test
Summary:	ALSA test tool
Group:		Sound
Requires:	alsa-utils

%description -n speaker-test
Speaker-test is a tool that enables one to test his head phones.

%files -n speaker-test
%license COPYING
%{_bindir}/speaker-test
%{_mandir}/man1/speaker-test.*
%{_datadir}/sounds/alsa/

#----------------------------------------------------------------------------

%package -n alsaconf
Summary:	ALSA configuration tool
Group:		Sound
Requires:	alsa-utils
Requires:	whiptail
Requires:	cdialog

%description -n alsaconf
Alsaconf is a tool that enables one to configure his sound card with ALSA.
It's often not not needed as ROSA Linux can autoconfigure sound cards.

%files -n alsaconf -f alsaconf.lang
%license COPYING
%{_sbindir}/alsaconf
%{_mandir}/man8/alsaconf.*
%lang(fr) %{_mandir}/fr/man8/alsaconf.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%configure \
	--disable-rpath \
	--with-systemdsystemunitdir=%{_unitdir}

%make all


%install
%makeinstall_std mkdir_p="mkdir -p"

# Create /var/lib/alsa tree
mkdir -p -m 755 %{buildroot}/var/lib/alsa

%find_lang alsaconf
%find_lang alsa-utils
cat alsa-utils.lang >> alsaconf.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11841 |21mr|AmbientLight-0.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		AmbientLight
Summary:	Ambient light controller, primarily for Plasma Mobile
Version:	0.0.1
Release:	1
License:	GPLv3
Group:		System/Base
Source0:	https://github.com/OpenMandrivaSoftware/AmbientLight/archive/refs/tags/%{version}.tar.gz
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5DBus)
BuildRequires:	cmake(Qt5Sensors)
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	qmake5

%description
Ambient light controller, primarily for Plasma Mobile

%prep
%autosetup -p1
%cmake \
	-G Ninja

%build
%ninja_build -C build

%install
%ninja_install -C build
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
cat >%{buildroot}%{_sysconfdir}/xdg/autostart/ch.lindev.ambientlight.desktop <<'EOF'
[Desktop Entry]
Type=Application
Icon=ambient-light
Name=Ambient Light
Exec=%{_bindir}/ambient-light
NoDisplay=true
X-KDE-autostart-phase=2
EOF

%files
%{_bindir}/ambient-light
%{_sysconfdir}/xdg/autostart/ch.lindev.ambientlight.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11842 |21mr|amrnb-11.0.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname amrnb %{major}
%define develname %mklibname -d amrnb

Name:		amrnb
Version:	11.0.0.0
Release:	1
Summary:	AMR NarrowBand speech codec
License:	Distributable
Group:		System/Libraries
URL:		http://www.penguin.cz/~utx/amr
Source:		http://ftp.penguin.cz/pub/users/utx/amr/amrnb-%{version}.tar.bz2
Source1:	http://www.3gpp.org/ftp/Specs/archive/26_series/26.104/26104-b00.zip

%description
AMR-NB is a narrowband speech codec used in mobile phones.

This package is in restricted as it may violate some patents.

%package -n %{libname}
Summary:	AMR NarrowBand speech codec development files
Group:		System/Libraries

%description -n %{libname}
AMR-NB is a narrowband speech codec used in mobile phones development files.

%package -n %{develname}
Summary:	AMR NarrowBand speech codec development files
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	lib%{name}-devel = %{version}-%{release}

%description -n %{develname}
AMR-NB is a narrowband speech codec used in mobile phones development files.

%prep
%setup -q
cp %{SOURCE1} .

%build
%configure --enable-static
%make

%install
%makeinstall_std

%files
%doc README AUTHORS TODO COPYING
%{_bindir}/*

%files -n %{libname}
%{_libdir}/libamrnb.so.%{major}*

%files -n %{develname}
%{_includedir}/amrnb/
%{_libdir}/libamrnb.a
%{_libdir}/libamrnb.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11843 |21mr|amtk-5.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global api	5
%global major	0
%define libname %mklibname amtk %api %major
%define girname	%mklibname amtk-gir %{api}
%define devname %mklibname -d amtk %api

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	actions, menus and toolbars kit for GTK+ applications
Name:		amtk
Version:	5.5.1
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://gitlab.gnome.org/World/amtk
Source0:	https://download.gnome.org/sources/amtk/%{url_ver}/amtk-%{version}.tar.xz
BuildRequires:	gcc
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uchardet)
Obsoletes:	%{name}-tests <= 5.2.0

%description
Amtk is the acronym for “Actions, Menus and Toolbars Kit”. It is a basic 
GtkUIManager replacement based on GAction. It is suitable for both a 
traditional UI or a modern UI with a GtkHeaderBar.

%files -f amtk-%{api}.lang
%doc NEWS README.md
%license LICENSES/*

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %libname
%{_libdir}/libamtk-%{api}.so.%{major}{,.*}

#--------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for Amtk
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for Amtk.

%files -n %{girname}
%{_libdir}/girepository-1.0/Amtk-%{api}.typelib

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/%{name}-%{api}/
%{_datadir}/gir-1.0/Amtk-%{api}.gir
%{_includedir}/amtk-%{api}/
%{_libdir}/libamtk-%{api}.so
%{_libdir}/pkgconfig/amtk-%{api}.pc

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang amtk-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11844 |21mr|amtu-1.0.8-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -fcommon

Summary:	Abstract Machine Test Utility (AMTU)
Name:		amtu
Version:	1.0.8
Release:	16
License:	CPL
Group:		System/Base
Url:		http://sourceforge.net/projects/amtueal/
Source0:	https://sourceforge.net/projects/amtueal/files/amtueal/amtu-%{version}/amtu-%{version}.tar.gz
Patch1:		amtu-1.0.8-doc.patch
Patch2:		amtu-1.0.8-init.patch
Patch3:		amtu-1.0.8-memsep.patch
Patch4:		amtu-1.0.8-new-file.patch
Patch5:		amtu-1.0.8-net-device.patch
Patch6:		amtu-1.0.8-net-device_name.patch
BuildRequires:	pkgconfig(audit)
Requires(post,preun):	chkconfig
#not support compile on arm https://bugzilla.redhat.com/show_bug.cgi?id=947575
ExclusiveArch:	%{ix86} x86_64

%description
Abstract Machine Test Utility (AMTU) is an administrative utility to check
whether the underlying protection mechanism of the hardware are still being
enforced. This is a requirement of the Controlled Access Protection Profile
FPT_AMT.1, see
http://www.radium.ncsc.mil/tpep/library/protection_profiles/CAPP-1.d.pdf

%files
%doc doc/AMTUHowTo.txt LICENSE
%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/amtu
%config(noreplace) %attr(640,root,root) %{_sysconfdir}/sysconfig/amtu
%attr(0750,root,root) %{_sbindir}/amtu
%attr(0644,root,root) %{_mandir}/man8/*

%post
/sbin/chkconfig --add amtu

%preun
if [ $1 -eq 0 ]; then
   /sbin/service amtu stop > /dev/null 2>&1
   /sbin/chkconfig --del amtu
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
touch ChangeLog
touch NEWS
touch AUTHORS
autoreconf -fi
%configure
%make

%install
%makeinstall_std bindir=%{_sbindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11845 |21mr|anaconda-34.25.0.10-1.85
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_rel 1
%global rosa_rel 85

%global __requires_exclude ^%{_bindir}/bash$
%global __requires_exclude ^typelib\\((RpmOstree)

# python3 and python38 from one spec file
# Aanconda and/or its deps do not work with Python 3.5
%if %{mdvver} >= 201910
%define py3prefix python3
%define python38_sitearch %{python3_sitearch}
%else
%define py3prefix python38
%global optflags %{optflags} %(python3.8-config --cflags)
%global ldflags %{ldflags} %(python3.8-config --libs)
%endif

%{?build_nickel}%{?!build_nickel:%bcond_with nickel}

# manually sync translations with https://github.com/rhinstaller/anaconda-l10n
# https://github.com/rhinstaller/anaconda/discussions/3355
%define l10n_commit 675a538521def910debdb473ea02fc64e0d43980
# right now needed translations may be the directory "master", later it will be e.g. "fc35"
%define l10n_subdirectory rhel-9

Summary:       Graphical system installer
Name:          anaconda
Version:       34.25.0.10
Release:       %{git_rel}.%{rosa_rel}
License:       GPLv2+
Group:         System/Configuration/Other
# git with patches: https://github.com/mikhailnov/anaconda/tree/rosa-v34
# Using rhel-9 anaconda from https://github.com/rhinstaller/anaconda/tree/rhel-9
Url:           https://github.com/rhinstaller/anaconda
Source0:       https://github.com/rhinstaller/anaconda/archive/%{name}-%{version}-%{git_rel}.tar.gz
Source1:       https://github.com/rhinstaller/anaconda-l10n/archive/%{l10n_commit}.tar.gz?/anaconda-l10n-%{l10n_commit}.tar.gz
# Icon for the installer launcher
Source2:       corredor.svg
# Installer launcher
Source3:       anaconda-rosa.desktop
# Additional kickstart which is run after installation in chroot
Source4:       90-rosa1-postinstall.sh
# runner of /usr/sbin/anaconda
Source5:       anaconda.sh
Source7:       anaconda-livecd-init.sh
Source8:       anaconda-livecd-init.service
Source9:       product.rosa.conf
Source101:     product.rosa-e2k.conf
Source102:     e2k-implementation.diff
# temporary translation for 0047-Implement-EULA-spoke-based-on-initial-setup.patch
Source201:     license-ru.po

# Translations patches
Source10:      TRANSLATION-Root-password-spoke-name-change.patch
# Revert RHEL-9-specific changes
Patch0001: 0001-Revert-Remove-kickstart-btrfs-support.patch
Patch0002: 0002-Revert-Use-RHEL9-versions-of-commands-from-RHEL9-han.patch
Patch0003: 0003-Revert-Use-RHEL-9-handler.patch
# Use openbox for now
# TODO: test it with Hi-DPI
Patch0004: 0004-Revert-Remove-support-for-metacity.patch
Patch0005: 0005-Revert-Support-also-gnome-kiosk-window-manager.patch
Patch0006: 0006-Replace-metacity-with-openbox.patch
Patch0007: 0007-Do-not-preserve-SELinux-related-kernel-cmdline.patch
Patch0008: 0008-Configure-efi-bootload.patch
Patch0009: 0009-Adapt-grub2-config-for-ROSA.patch
Patch0010: 0010-ROSA-set-password-for-Grub-in-certified-distros.patch
Patch0011: 0011-Adapt-to-ROSA-kernel-packaging.patch
Patch0012: 0012-Do-not-relink-systemd-target.patch
Patch0013: 0013-Off-font-not-supporting-cyrrilics.patch
Patch0014: 0014-Change-UI-window-and-sidebar-properties.patch
Patch0015: 0015-Add-users-to-wheel-and-users-by-default.patch
Patch0017: 0017-No-swap-on-certified-distros-by-default.patch
Patch0018: 0018-Always-create-home.patch
Patch0020: 0020-Set-ROSA-bugzilla-URL.patch
Patch0021: 0021-Use-tty8-for-Xorg.patch
Patch0023: 0023-Write-bootloader-config-before-installing-it.patch
Patch0024: 0024-Make-network-setup-work-always.patch
# https://github.com/rhinstaller/anaconda/pull/2963
Patch0025: 0025-gui-specify-unit-in-which-disk-capacity-is-measured-.patch
Patch0026: 0026-ROSA-correctly-allow-password-root-SSH-logins.patch
# https://github.com/rhinstaller/anaconda/pull/2983
Patch0027: 0027-gui-updating-current_hostname-lable-when-clicking-ap.patch
Patch0030: 0030-ROSA-fix-aloithm-for-determining-required-disk-space.patch
Patch0031: 0031-set-username-autotranslation-to-en-in-gui-user-spoke.patch
Patch0032: 0032-Try-to-eject-installation-disk-automatically.patch
Patch0033: 0033-User-and-Password-spokes-places-change.patch
Patch0034: 0034-disable-swap-grow.patch
Patch0035: 0035-exit-and-reboot-buttons-in-final-spoke.patch
Patch0036: 0036-Do-not-make-separate-boot-partition.patch
# backport fixes of dracut/anaconda-modprobe.sh
Patch0037: 0037-Do-not-try-to-load-the-floppy-kernel-module.patch
Patch0038: 0038-anaconda-modprobe-don-t-try-and-load-cramfs.patch
# https://github.com/rhinstaller/anaconda/pull/4191
Patch0039: 0039-dracut-handle-compressed-kernel-modules.patch
# https://github.com/rhinstaller/anaconda/pull/4407
Patch0040: 0040-dracut-include-modprobed-modules-into-initrd.patch
Patch0041: 0041-fix-twice-resume-in-grub.cfg.patch
Patch0042: 0042-hide-buildstamp-warning-message.patch
Patch0043: 0043-Remove-grub2-set-default.patch
Patch0044: 0044-Extend-LiveCD-capabilities.patch
Patch0045: 0045-ROSA-usr-merge-paths.patch
Patch0046: 0046-Copy-current-hostname-into-installed-system.patch
# https://github.com/rhinstaller/anaconda/pull/4687
Patch0047: 0047-Implement-EULA-spoke-based-on-initial-setup.patch
Patch0048: 0048-Detect-more-LiveOS-images.patch
# https://github.com/rhinstaller/anaconda/pull/4865
Patch0049: 0049-storage-no-need-in-HFS-on-Apple-Macs.patch
# https://github.com/rhinstaller/anaconda/commit/9116888
Patch0050: 0050-Use-another-type-to-make-new-GCC-warnings-go-away.patch
# https://github.com/rhinstaller/anaconda/pull/4870
Patch0051: 0051-Split-write-network-and-hostname-configuration.patch
# https://fedoraproject.org/wiki/Changes/UseMdadmForBIOSRAIDInAnaconda
Patch0052: 0052-Disable-dmraid-by-default.patch
# https://github.com/rhinstaller/anaconda/pull/4813
Patch0053: 0053-Import-BlockDev-from-blivet-instead-of-gi.patch
Patch0054: 0054-Fixed-translate-of-label-Encrypt.patch

BuildRequires: git-core
BuildRequires: gettext-devel
BuildRequires: gtk-doc
BuildRequires: libtool
BuildRequires: %{py3prefix}-devel
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gladeui-2.0)
BuildRequires: pkgconfig(gtk+-x11-3.0)
BuildRequires: pkgconfig(libxklavier)
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(libarchive)
BuildRequires: audit-devel
BuildRequires: rpm-devel
BuildRequires: sed
BuildRequires: findutils
# ensure correct compilation of glib-2.0 schemas, see data/window-manager/config/Makefile.am
BuildRequires: /usr/bin/glib-compile-schemas
BuildRequires: /usr/share/glib-2.0/schemas/org.gnome.desktop.wm.keybindings.gschema.xml
BuildRequires: /usr/share/glib-2.0/schemas/org.gnome.desktop.wm.preferences.gschema.xml
BuildRequires: /usr/share/glib-2.0/schemas/org.gnome.metacity.gschema.xml
BuildRequires: /usr/share/glib-2.0/schemas/org.gnome.desktop.enums.xml
Requires:      anaconda-core = %{EVRD}
Recommends:    anaconda-gui = %{EVRD}
Recommends:    anaconda-tui = %{EVRD}
Recommends:    anaconda-dracut = %{EVRD}
Recommends:    anaconda-live = %{EVRD}
# If this binary exists inside the chroot, livecd-creator adds a menu item with it.
# Let's pull it from here and uninstall as an orphan with Anaconda.
Recommends:    /usr/bin/checkisomd5
# Additional dependencies which are needed not always
# Window manager to run GUI installer without DE
# Requires: /usr/bin/metacity
# XXX # # Patch17 replaces metacity with openbox
Requires: openbox
# For VNC installations (tigervnc-server-minimal)
Requires: /usr/bin/Xvnc

%description
The anaconda package is a metapackage for the Anaconda installer.

%files

#------------------------------------------------------------------

%package core
Summary: Core of the Anaconda installer
Requires: %{py3prefix}-dnf
Requires: %{py3prefix}-blivet >= 3.3.0
Requires: %{py3prefix}-blockdev
Requires: %{py3prefix}-meh
Requires: libreport-anaconda
Requires: %{py3prefix}-libselinux
Requires: %{py3prefix}-rpm
Requires: %{py3prefix}-pyparted
Requires: %{py3prefix}-requests
Requires: %{py3prefix}-requests-file
Requires: %{py3prefix}-requests-ftp
Requires: pykickstart
Requires: %{py3prefix}-kickstart
Requires: %{py3prefix}-langtable >= 0.0.54
Requires: util-linux
Requires: %{py3prefix}-gi
Requires: %{py3prefix}-dbus
Requires: %{py3prefix}-pwquality
Requires: %{py3prefix}-systemd
Requires: %{py3prefix}-productmd
Requires: %{py3prefix}-dasbus
Requires: %{py3prefix}-transliterate
Requires: typelib(Flatpak)
Requires: cracklib-dicts
Requires: %{py3prefix}-pytz
Requires: /usr/bin/teamd
Requires: NetworkManager
Requires: typelib(NM) = 1.0
Requires: kbd
Requires: chrony
Requires: rsync
Requires: %{py3prefix}-ntplib
Requires: systemd
Requires: %{py3prefix}-pid
Requires: %{py3prefix}-ordered-set >= 2.0.0
Requires: anaconda-tui = %{EVRD}
Requires: anaconda-dracut = %{EVRD}
Requires: dbus-daemon
# anaconda.service (loaded by anaconda.target) runs tmux
Requires: tmux
# restorecon
Requires: policycoreutils
# for 90-rosa1-postinstall.sh
Requires: %{_bindir}/lspci
Requires: %{_bindir}/systemd-detect-virt
# This module is helpful for PXE installations
# and is not directly related to Anaconda, but
# must be included into installation ISOs
Recommends:	dracut-networkroot

%description core
The anaconda-core package contains the program which was used to install your
system.

%files core -f %{name}.lang
%doc COPYING
%{_unitdir}/*service
%{_unitdir}/%{name}.target
%{_systemdgeneratordir}/anaconda-generator
%{_bindir}/instperf
%{_bindir}/anaconda-disable-nm-ibft-plugin
%{_sbindir}/anaconda
%{_sbindir}/anaconda.bin
%{_sbindir}/handle-sshpw
%{_datadir}/anaconda
%{_prefix}/libexec/anaconda
%exclude %{_datadir}/anaconda/gnome
%exclude %{_datadir}/anaconda/pixmaps
%exclude %{_datadir}/anaconda/ui
%exclude %{_datadir}/anaconda/window-manager
%exclude %{_datadir}/anaconda/anaconda-gtk.css
%exclude %{_prefix}/libexec/anaconda/dd_*
%{python38_sitearch}/pyanaconda
%exclude %{python38_sitearch}/pyanaconda/rescue.py*
%exclude %{python38_sitearch}/pyanaconda/__pycache__/rescue.*
%exclude %{python38_sitearch}/pyanaconda/ui/gui/*
%exclude %{python38_sitearch}/pyanaconda/ui/tui/*
%{_bindir}/analog
%{_bindir}/anaconda-cleanup
%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/%{name}.conf
%dir %{_sysconfdir}/%{name}/conf.d
%config %{_sysconfdir}/%{name}/conf.d/*
%dir %{_sysconfdir}/%{name}/product.d
%config %{_sysconfdir}/%{name}/product.d/*

# ROSA-specific places for scripts to be run on LiveCD start
# and after installation of the system
%dir /etc/anaconda-scripts.d
%dir /etc/anaconda-scripts.d/livecd-init
%dir /etc/anaconda-scripts.d/post-install

#------------------------------------------------------------------

%package live
Summary:  Live installation specific files and dependencies
Requires: anaconda-gui = %{EVRD}
Requires: usermode
Requires: usermode-consoleonly
Requires: zenity
# List of languages in Anaconda is mostly useless without locales:
# if language X is chosen, but locales-X is not installed, then:
# - LANG=C is set in /etc/locales.conf,
# - Anaconda itself is still in English.
Recommends: task-locales
%systemd_requires

%description live
The anaconda-live package contains scripts, data and dependencies required
for live installations.

%files live
%{_bindir}/liveinst
%{_sbindir}/liveinst
%config(noreplace) %{_sysconfdir}/pam.d/*
%config(noreplace) %{_sysconfdir}/security/console.apps/*
%{_libexecdir}/liveinst-setup.sh
%{_datadir}/icons/anaconda-rosa.svg
%{_datadir}/applications/anaconda-rosa.desktop
%{_datadir}/anaconda/gnome
%{_sysconfdir}/xdg/autostart/*.desktop
%{_sbindir}/anaconda-livecd-init
%{_unitdir}/anaconda-livecd-init.service
%{_presetdir}/80-anaconda-livecd-init.preset

%post live
%systemd_post anaconda-livecd-init.service

%preun live
%systemd_preun anaconda-livecd-init.service

#------------------------------------------------------------------

%package gui
Summary:  Graphical user interface for the Anaconda installer
Requires: anaconda-core = %{EVRD}
Requires: anaconda-widgets = %{EVRD}
Requires: %{py3prefix}-meh-gui
Requires: adwaita-icon-theme
Requires: typelib(Xkl)
Requires: typelib(Gkbd)
Requires: typelib(TimezoneMap)
Requires: typelib(Keybinder)
Requires: yelp
Requires: blivet-gui
Requires: blivet-gui-runtime
Requires: %{_bindir}/nm-connection-editor
# pyanaconda/display.py
Requires: %{_bindir}/xrdb
Requires: %{_bindir}/xrandr
# soft dep here because initial-setup-gui depends from anaconda-gui,
# but spice-vdagent may be automatically removed by 90-rosa1-postinstall.sh
Recommends: %{_bindir}/spice-vdagent
# for symlinks in /usr/share/anaconda/window-manager (metacity)
# Requires: /usr/share/glib-2.0/schemas/org.gnome.desktop.wm.keybindings.gschema.xml
# Requires: /usr/share/glib-2.0/schemas/org.gnome.desktop.wm.preferences.gschema.xml
# Requires: /usr/share/glib-2.0/schemas/org.gnome.metacity.enums.xml
# Requires: /usr/share/glib-2.0/schemas/org.gnome.metacity.gschema.xml
# Requires: /usr/share/glib-2.0/schemas/org.gnome.desktop.enums.xml
# xinitrc, hardcoded path
Requires: /etc/X11/Xresources
# Ensure to have at least one font in server ISOs for GUI
Recommends: fonts-ttf-freefont
# ensure that Xorg drivers and mesa are installed in ISOs with Anaconda
Recommends: task-x11

%description gui
This package contains graphical user interface for the Anaconda installer.

%files gui
%{python38_sitearch}/pyanaconda/ui/gui/*
%{_datadir}/anaconda/pixmaps
%{_datadir}/anaconda/ui
%{_datadir}/anaconda/window-manager
%{_datadir}/anaconda/anaconda-gtk.css

#------------------------------------------------------------------

%package tui
Summary:  Textual user interface for the Anaconda installer
Requires: anaconda-core = %{EVRD}
Requires: %{py3prefix}-simpleline

%description tui
This package contains textual user interface for the Anaconda installer.

%files tui
%{python38_sitearch}/pyanaconda/rescue.py*
%{python38_sitearch}/pyanaconda/__pycache__/rescue.*
%{python38_sitearch}/pyanaconda/ui/tui/*

#------------------------------------------------------------------

%package widgets
Summary:  A set of custom GTK+ widgets for use with anaconda
Requires: python3

%description widgets
This package contains a set of custom GTK+ widgets used by the anaconda installer.

%files widgets
%{_libdir}/libAnacondaWidgets.so.*
%{_libdir}/girepository*/AnacondaWidgets*typelib
%{python38_sitearch}/gi/overrides/*

#------------------------------------------------------------------

%package widgets-devel
Summary:  Development files for anaconda-widgets
Requires: glade
Requires: %{name}-widgets = %{EVRD}

%description widgets-devel
This package contains libraries and header files needed for writing the anaconda
installer.  It also contains Python and Glade support files, as well as
documentation for working with this library.

%files widgets-devel
%{_libdir}/libAnacondaWidgets.so
%{_libdir}/glade/modules/libAnacondaWidgets.so
%{_includedir}/*
%{_datadir}/glade/catalogs/AnacondaWidgets.xml
%{_datadir}/gtk-doc

#------------------------------------------------------------------
%package dracut
Summary:  The anaconda dracut module
Requires: xz
Requires: %{py3prefix}-kickstart
Requires: dracut
# (mikhailnov) anaconda dracut modules requires several dracut modules:
# livenet nfs img-lib convertfs ifcfg
# Some of them look for specific binaries and fail if they do not exist;
# e.g. livenet requires curl, but, if curl is not installed, dracut fails;
# also note that initrd is generated in package scriptlets which are run
# when installing _all_ packages needed to be included into an ISO image,
# and there we must make sure that e.g. curl is already installed,
# To achieve this, "OrderWithRequires" are added to the dracut package.
Requires: curl
Requires: nfs-utils
Requires: coreutils
Requires: /usr/bin/tar
Requires: /usr/bin/gzip
# When building ISO (LiveCD), initrd is created by %%post in kernel package;
# at that time, all needed dracut modules have to be installed.
# Trying to make anaconda-dracut be installed before the kernel.
# TODO: try to get rid of "Requires" here (actually it is useless without a
# kernel, so probably it is OK)
# TODO: maybe make "Provides: dracut-module()" and "OrderWithRequires: dracut-module(*)"
# (globs will not work, so for now keeping this hack).
Requires(post): kernel

%description dracut
The 'anaconda' dracut module handles installer-specific boot tasks and
options. This includes driver disks, kickstarts, and finding the anaconda
runtime on NFS/HTTP/FTP servers or local disks.

%files dracut
%dir %{_prefix}/lib/dracut/modules.d/80%{name}
%{_prefix}/lib/dracut/modules.d/80%{name}/*
%{_prefix}/libexec/anaconda/dd_*

%post
# empty, to ensure that Requires(post) is not lost
echo > /dev/null

#------------------------------------------------------------------

%prep
%autosetup -S git_am -n %{name}-%{name}-%{version}-%{git_rel}
%ifnarch %{e2k}
install -m0644 %{SOURCE9} data/product.d/rosa.conf
%else
install -m0644 %{SOURCE101} data/product.d/rosa.conf
patch -p1 < %{SOURCE102}
# elbrus hardware bootloader can read only fat32, ext2,3
# so separated boot partition is needed here
%patch0036 -p1 -R
%endif

tar -xf %{SOURCE1}
mv -v anaconda-l10n-%{l10n_commit}/%{l10n_subdirectory}/* po/
cat %{SOURCE201} >> po/ru.po

pushd po
patch < %{SOURCE10}
popd

# Change default time zone
grep -Irl 'America/New_York' | xargs sed -i'' -e 's,America/New_York,Europe/Moscow,g'

%if %{with nickel}
# Default ro Russian language in certified distros
# Based on https://abf.io/server7/anaconda/blob/rosa-server75/rosa-ru_RU-default-lang.patch
# TODO: if drakxtools is used to choose the language, Anaconda should default
# to the current locale when running inside a DE
sed -i -e 's,en_US.UTF-8,ru_RU.UTF-8,g' pyanaconda/core/constants.py
%endif

%if "%{py3prefix}" != "python3"
sed -i -e 's,^python3,%{__python38},g' scripts/start-module
%endif

%ifarch %{riscv}
# for fix error: conflicting types for 'headerGetString' due to enum/integer mismatch
sed -i 's/-Werror//' ./configure.ac
%endif

%build
./autogen.sh
%if "%{py3prefix}" != "python3"
export PYTHON=%{__python38}
%else
export PYTHON=%{__python3}
%endif
%configure ANACONDA_RELEASE="%{release}"
%make

%install
%makeinstall_std

find %{buildroot} -type f -name "*.la" | xargs %{__rm}

%if %{mdvver} < 202310
mkdir -p %{buildroot}/lib
cd %{buildroot}%{_prefix}/lib
mv systemd ../../lib
cd -
%endif

mkdir -p %{buildroot}%{_datadir}/icons
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/anaconda-rosa.svg
# Installer launcher with that icon
install -m0644 %{SOURCE3} %{buildroot}%{_datadir}/applications/anaconda-rosa.desktop
# rm not used desktop file without a good looking icon
rm -v %{buildroot}%{_datadir}/applications/liveinst.desktop

%if %{with nickel}
sed -i -e 's,Установить Росу,Установить ОС РОСА Никель,g' %{buildroot}%{_datadir}/applications/anaconda-rosa.desktop
%endif

echo -e "%%post\n$(cat %{SOURCE4})\n%%end" > %{buildroot}%{_datadir}/anaconda/post-scripts/90-rosa1-postinstall.ks

mv -v %{buildroot}%{_sbindir}/anaconda %{buildroot}%{_sbindir}/anaconda.bin
install -m0755 %{SOURCE5} %{buildroot}%{_sbindir}/anaconda
%if ! %{with nickel}
sed -i -e 's,^export ANACONDA_IS_NICKEL=1$,#export ANACONDA_IS_NICKEL=1,g' %{buildroot}%{_sbindir}/anaconda
! grep -q ANACONDA_IS_NICKEL %{buildroot}%{_sbindir}/anaconda
%endif

# stuff to create live user etc.
install -m0755 %{SOURCE7} %{buildroot}%{_sbindir}/anaconda-livecd-init
mkdir -p %{buildroot}%{_unitdir}
install -m0644 %{SOURCE8} %{buildroot}%{_unitdir}/anaconda-livecd-init.service
mkdir -p %{buildroot}%{_presetdir}
echo "enable anaconda-livecd-init.service" > %{buildroot}%{_presetdir}/80-anaconda-livecd-init.preset
chmod 0644 %{buildroot}%{_presetdir}/80-anaconda-livecd-init.preset

# ROSA-specific places for scripts to be run on LiveCD start
# and after installation of the system
mkdir -p %{buildroot}/etc/anaconda-scripts.d
mkdir -p %{buildroot}/etc/anaconda-scripts.d/livecd-init
mkdir -p %{buildroot}/etc/anaconda-scripts.d/post-install

# we use openbox instead of metacity, remove symlinks to nowhere
rm -v %{buildroot}/usr/share/anaconda/window-manager/glib-2.0/schemas/*metacity*

# use patched for e2k code to install extlinux instead grub2
%ifarch %{e2k}
sed -i 's/--graphical/--graphical --extlinux /' %{buildroot}%{_sbindir}/liveinst
%endif

%find_lang %{name}

%if "%{py3prefix}" != "python3"
%py38_shebang_sanity
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11846 |21mr|anaconda-packageremover-0.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __python %__python3
%define addondir %{_datadir}/anaconda/addons/org_fedoraproject_package_remove/

Name:           anaconda-packageremover
Version:        0.0.2
Release:        3
Summary:        Anaconda addon for removing packages from installed system
Group:          System/Configuration/Other
License:        GPLv2+
URL:            https://github.com/Gel0bmstu/anaconda-packageremover
Source0:        https://github.com/Gel0bmstu/anaconda-packageremover/archive/%{name}-%{version}.tar.gz
Source1:        89-rosa-package-remover-postinstall.sh
Source2:        removable_pkgs.list
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  make
Requires:       anaconda >= 19
 
%description
This is a addon for Anaconda which allows you to chose packages, which would
be removed from installed system.
 
%prep
%setup -n %{name}-%{version}

%build

%install
make install DESTDIR=%{buildroot}/
mkdir -p %{buildroot}%{_datadir}/anaconda/post-scripts/
mkdir -p %{buildroot}%{_sysconfdir}/anaconda
echo -e "%%post\n$(cat %{SOURCE1})\n%%end" > %{buildroot}%{_datadir}/anaconda/post-scripts/89-rosa-package-remover-postinstall.ks
install -c -m 744 %{SOURCE2} %{buildroot}%{_sysconfdir}/anaconda/removable_pkgs.list 
%py3_compile %{buildroot}%{addondir}
 
%files
%doc LICENSE README.rst
%{_sysconfdir}/anaconda/removable_pkgs.list
%{_datadir}/anaconda/dbus/confs/org.fedoraproject.Anaconda.Addons.PackageRemove.conf
%{_datadir}/anaconda/dbus/services/org.fedoraproject.Anaconda.Addons.PackageRemove.service
%{_datadir}/anaconda/post-scripts/89-rosa-package-remover-postinstall.ks
%{addondir}/*.py*
%{addondir}/categories/*.py*
%{addondir}/gui/*.py*
%{addondir}/gui/spokes/*.py*
%{addondir}/gui/spokes/*.glade
%{addondir}/service/*.py*
%{addondir}/tui/*.py*
%{addondir}/tui/spokes/*.py*
%{addondir}/__pycache__/*.py*
%{addondir}/categories/__pycache__/*.py*
%{addondir}/gui/__pycache__/*.py*
%{addondir}/gui/spokes/__pycache__/*.py*
%{addondir}/service/__pycache__/*.py*
%{addondir}/tui/__pycache__/*.py*
%{addondir}/tui/spokes/__pycache__/*.py*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11847 |21mr|analitza-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Library that will let you add mathematical features to your program
Name:		analitza
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
The Analitza library will let you add mathematical features to your program.

#----------------------------------------------------------------------------

%package i18n
Summary:	The Analitza library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
The Analitza library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package plots
Summary:	Plots used by the libanalitzaplot library
Group:		Graphical desktop/KDE
BuildArch:	noarch

%description plots
This package provides plots used by the libanalitzaplot library.

%files plots
%{_kde5_datadir}/libanalitza/plots/*.plots

#----------------------------------------------------------------------------

%define qmlanalitza %mklibname analitza-qml

%package -n %{qmlanalitza}
Summary:	QML plugin for Analitza library
Group:		System/Libraries
Provides:	analitza-qml = %{EVRD}

%description -n %{qmlanalitza}
QML plugin for Analitza library.

%files -n %{qmlanalitza}
%dir %{_kde5_qmldir}/org/kde/analitza/
%{_kde5_qmldir}/org/kde/analitza/*

#----------------------------------------------------------------------------

%define analitza_major 8
%define libanalitza %mklibname analitza %{analitza_major}

%package -n %{libanalitza}
Summary:	Runtime library for %{name}
Group:		System/Libraries
Requires:	%{name}-i18n
Requires:	analitza-qml

%description -n %{libanalitza}
The analitza library will let you add mathematical features to your program.
This pakage provide the runtime library for %{name}.

%files -n %{libanalitza}
%{_kde5_libdir}/libAnalitza.so.%{analitzagui_major}*

#----------------------------------------------------------------------------

%define analitzagui_major 8
%define libanalitzagui %mklibname analitzagui %{analitzagui_major}

%package -n %{libanalitzagui}
Summary:	Runtime library for %{name}
Group:		System/Libraries

%description -n %{libanalitzagui}
The analitza library will let you add mathematical features to your program.
This pakage provide the runtime library for %{name}.

%files -n %{libanalitzagui}
%{_kde5_libdir}/libAnalitzaGui.so.%{analitzagui_major}*

#----------------------------------------------------------------------------

%define analitzaplot_major 8
%define libanalitzaplot %mklibname analitzaplot %{analitzaplot_major}

%package -n %{libanalitzaplot}
Summary:	Runtime library for %{name}
Group:		System/Libraries
Requires:	analitza-plots

%description -n %{libanalitzaplot}
The analitza library will let you add mathematical features to your program.
This pakage provide the runtime library for %{name}.

%files -n %{libanalitzaplot}
%{_kde5_libdir}/libAnalitzaPlot.so.%{analitzaplot_major}*

#----------------------------------------------------------------------------

%define analitzawidgets_major 8
%define libanalitzawidgets %mklibname analitzawidgets %{analitzawidgets_major}

%package -n %{libanalitzawidgets}
Summary:	Runtime library for %{name}
Group:		System/Libraries

%description -n %{libanalitzawidgets}
The analitza library will let you add mathematical features to your program.
This pakage provide the runtime library for %{name}.

%files -n %{libanalitzawidgets}
%{_kde5_libdir}/libAnalitzaWidgets.so.%{analitzawidgets_major}*

#----------------------------------------------------------------------------

%define devanalitza %mklibname analitza -d

%package -n %{devanalitza}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libanalitza} = %{EVRD}
Requires:	%{libanalitzagui} = %{EVRD}
Requires:	%{libanalitzaplot} = %{EVRD}
Requires:	%{libanalitzawidgets} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 16.08.2

%description -n %{devanalitza}
Files needed to build applications based on %{name}.

%files -n %{devanalitza}
%{_kde5_includedir}/Analitza5
%{_kde5_libdir}/cmake/Analitza5
%{_kde5_libdir}/libAnalitza.so
%{_kde5_libdir}/libAnalitzaGui.so
%{_kde5_libdir}/libAnalitzaPlot.so
%{_kde5_libdir}/libAnalitzaWidgets.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11848 |21mr|anbox-modules-5-3.git98f0f3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 98f0f3b3b1eeb5a6954ca15ec43e150b76369086
%define commit_short %(echo %{commit} | head -c 6)

%global __requires_exclude_from ^%{_usr}/src/.*$

Summary:	Anbox kernel modules
Name:		anbox-modules
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/anbox/anbox-modules
# compatible with kernel 5.x -> Version 5
Version:	5
Release:	3.git%{commit_short}
Source0:	https://github.com/anbox/anbox-modules/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
# https://github.com/anbox/anbox-modules/pull/71
Patch0001:	0001-binder-compilability-with-kernel-5.10.patch
BuildArch:	noarch

%description
Anbox kernel modules

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of Anbox kernel drivers

%description -n kernel-source-%{name}
Source code of Linux kernel Anbox modules

%files -n kernel-source-%{name}
%{_usr}/src/anbox-{ashmem,binder}-%{version}-%{release}
%exclude %{_usr}/src/anbox-{ashmem,binder}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	Anbox kernel modules as DKMS
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):			kernel-source-%{name} = %{EVRD}
Requires(post,preun):	dkms
Requires:	%{name}-config

%description -n dkms-%{name}
Anbox kernel modules as DKMS

%files -n dkms-%{name}
%{_usr}/src/anbox-{ashmem,binder}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
for i in ashmem binder; do
	dkms --rpm_safe_upgrade add -m anbox-${i} -v %{version}-%{release}
done

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		for i in ashmem binder; do
			dkms --rpm_safe_upgrade build -m anbox-${i} -v %{version}-%{release} -k $kk &&
			dkms --rpm_safe_upgrade install -m anbox-${i} -v %{version}-%{release} -k $kk || :
		done
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
set -x
for i in ashmem binder; do
	rmmod ${i}_linux || :
	dkms --rpm_safe_upgrade remove -m anbox-${i} -v %{version}-%{release} --all || :
done

#-----------------------------------------------------------------------

%package config
Summary:	Userspace configs to make Anbox kernel modules work properly

%description config
Userspace configs to make Anbox kernel modules work properly

%files config
%{_udevrulesdir}/99-anbox.rules

#-----------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}
%autopatch -p1

%build

%install

for i in ashmem binder; do
	mkdir -p %{buildroot}%{_usr}/src
	cp -rv ${i} %{buildroot}%{_usr}/src/anbox-${i}-%{version}-%{release}
done

for i in ashmem binder; do
cat > %{buildroot}%{_usr}/src/anbox-${i}-%{version}-%{release}/dkms.conf << EOF
PACKAGE_NAME="anbox-${i}"
PACKAGE_VERSION="%{version}-%{release}"
CLEAN="make clean"
MAKE[0]="make all KERNEL_SRC=/lib/modules/\$kernelver/build"
BUILT_MODULE_NAME[0]="${i}_linux"
DEST_MODULE_LOCATION[0]="/kernel/drivers/extra/"
AUTOINSTALL="yes"
EOF
done

mkdir -p %{buildroot}%{_udevrulesdir}
install -m0644 99-anbox.rules %{buildroot}%{_udevrulesdir}/99-anbox.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11849 |21mr|android-json-org-java-6.0.1-0.7.r22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag _r22
%global namedversion %{version}%{?namedreltag}
%global oname json
Name:          android-json-org-java
Version:       6.0.1
Release:       0.7.r22
Summary:       Androids rewrite of the evil licensed Json.org
License:       ASL 2.0
URL:           https://android.googlesource.com/platform/libcore/+/master/json
# git clone https://android.googlesource.com/platform/libcore/ android-json-org-java
# (cd android-json-org-java/json/ && git archive --format=tar --prefix=android-json-org-java-6.0.1_r22/ android-6.0.1_r22 | xz > ../../android-json-org-java-6.0.1_r22.tar.xz)
Source0:       %{name}-%{namedversion}.tar.xz
Source1:       %{name}-template.pom
# android-json-org-java package don't include the license file
Source2:       http://www.apache.org/licenses/LICENSE-2.0.txt
Patch0:        %{name}-20130122-ignore_failing_junit_test.patch
BuildRequires: geronimo-parent-poms
BuildRequires: maven-local
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Json.org is a popular java library to parse and
create json string from the author of the json
standard Douglas Crockford. His implementation
however is not free software.
Therefor the Android team did a clean-room
re-implementation of a json library to
be used in-place of the original one.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p0

sed -i '/java.nio.channels.Selector.open/d' \
 src/test/java/org/json/JSONObjectTest.java

cp -p %{SOURCE1} pom.xml
sed -i "s|<version>@version@|<version>%{namedversion}|" pom.xml
cp -p %{SOURCE2} .
sed -i 's/\r//' LICENSE-2.0.txt

# empty file
rm -rf MODULE_LICENSE_BSD_LIKE

%mvn_file :%{oname} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11850 |21mr|angelfish-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Browser for Plasma Mobile
Name:		angelfish
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	futuresql-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	qcoro-qt5-devel
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Feedback)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5WebEngine)
Requires:	kirigami-addons

%description
Browser for Plasma Mobile.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.angelfish.desktop
%{_kde5_bindir}/angelfish
%{_kde5_bindir}/angelfish-webapp
%{_kde5_datadir}/config.kcfg/angelfishsettings.kcfg
%{_kde5_notificationsdir}/angelfish.notifyrc
%{_kde5_datadir}/icons/hicolor/*/*/org.kde.angelfish.svg
%{_appdatadir}/org.kde.angelfish.metainfo.xml

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11851 |21mr|angie-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# See also the official SRPM:
# https://download.angie.software/angie/rosa/2021.1/source/

%global _disable_ld_no_undefined 1

%define angie_user angie
%define angie_group %{angie_user}
%define angie_rootdir /var/lib/angie
%define angie_cache /var/cache/angie
%define angie_logdir /var/log/angie
%define angie_confdir %{_sysconfdir}/angie
%define angie_datadir %{_datadir}/angie
%define angie_webroot %{angie_datadir}/html
%define angie_modpath %{_libdir}/angie

%global optflags %{optflags} -fno-strict-aliasing -Ofast
# so that the perl module finds its symbols
%global ldflags %{ldflags} -Wl,--export-dynamic

# https://github.com/arut/angie-rtmp-module/commits/master
%define module_rtmp_commit 23e1873aa62acb58b7881eed2a501f5bf35b82e9
# https://github.com/vkholodkov/angie-upload-module/commits/master
%define module_upload_commit 4423994c7d8fb491d95867f6af968585d949e7a9
# https://github.com/sto/ngx_http_auth_pam_module/commits/master
%define module_pam1_commit d9429ba93cdbe022196290c2c1dd529a59595315
# https://github.com/vision5/ngx_devel_kit/commits/master (used by array-var-angie-module)
%define module_ndk_commit 91e30eb05085e7f9762f130cbb883a0e753cf74d
# https://github.com/openresty/array-var-angie-module/commits/master
%define module_array_commit 32188f86599b47f7cd34340e5a2985bd9d550bf8
# https://github.com/anomalizer/ngx_aws_auth/commits/master
%define module_awsauth_commit f3d9862fb65151c494f5ad8042effb9d2d27bbcb
# https://github.com/google/ngx_brotli/commits/master
%define module_brotli_commit a71f9312c2deb28875acc7bacfdd5695a111aa53
# https://github.com/stnoonan/spnego-http-auth-angie-module/commits/master
%define module_spnego_commit 3575542b3147bd03a6c68a750c3662b0d72ed94e

Summary:	Robust, small and high performance HTTP and reverse proxy server
Name:		angie
Version:	1.6.2
Release:	1
License:	BSD
Group:		System/Servers
Url:		https://angie.software/
Source0:	https://github.com/webserver-llc/angie/archive/refs/tags/Angie-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	angie.service
Source3:	angie.logrotate
Source6:	angie.sysusers.d
Source10:	https://github.com/arut/nginx-rtmp-module/archive/%{module_rtmp_commit}.tar.gz?/nginx-rtmp-module-%{module_rtmp_commit}.tar.gz
Source11:	https://github.com/vkholodkov/nginx-upload-module/archive/%{module_upload_commit}.tar.gz?/nginx-upload-module-%{module_upload_commit}.tar.gz
Source12:	https://github.com/sto/ngx_http_auth_pam_module/archive/%{module_pam1_commit}.tar.gz?/ngx_http_auth_pam_module-%{module_pam1_commit}.tar.gz
Source13:	https://github.com/vision5/ngx_devel_kit/archive/%{module_ndk_commit}.tar.gz?/ngx_devel_kit-%{module_ndk_commit}.tar.gz
Source14:	https://github.com/openresty/array-var-nginx-module/archive/%{module_array_commit}.tar.gz?/array-var-nginx-module-%{module_array_commit}.tar.gz
Source15:	https://github.com/anomalizer/ngx_aws_auth/archive/%{module_awsauth_commit}.tar.gz?/ngx_aws_auth-%{module_awsauth_commit}.tar.gz
# repack and add brotli source https://github.com/google/ngx_brotli/archive/%{module_brotli_commit}.tar.gz?/ngx_brotli-%{module_brotli_commit}.tar.gz
Source16:	ngx_brotli-%{module_brotli_commit}.tar.gz
Source17:	https://github.com/stnoonan/spnego-http-auth-nginx-module/archive/%{module_spnego_commit}.tar.gz?/spnego-http-auth-nginx-module-%{module_spnego_commit}.tar.gz
Source100:	index.html
Source102:	https://angie.software/_images/logo.gif
Source103:	50x.html
Source104:	404.html
BuildRequires:	systemd-units
BuildRequires:	gd-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
# for module ngx_brotli
BuildRequires:	pkgconfig(libbrotlienc)
# for ngx_http_auth_pam_module
BuildRequires:	pam-devel
# for spnego-http-auth-angie-module
BuildRequires:	pkgconfig(krb5)
%if %{mdvver} >= 202310
Requires(post):	/usr/bin/systemd-sysusers
%else
Requires(post):	/bin/systemd-sysusers
%endif
Requires:	logrotate
Provides:	webserver

%description
Angie is an efficient, powerful and scalable web server,
that was forked from nginx by some of its former core devs,
with intention to extend functionality far beyond original version.
Angie is a drop-in replacement for nginx, so you can use existing
nginx configuration without major changes.

%files
%license LICENSE
%doc CHANGES* README*
%dir %{angie_modpath}
%dir %{angie_datadir}
%{angie_datadir}/html
%{_sbindir}/%{name}
%{_mandir}/man3/nginx.3pm*
%{_mandir}/man8/*
%{_unitdir}/angie.service
%{_sysusersdir}/%{name}.conf
%dir %{angie_confdir}
%config(noreplace) %{angie_confdir}/win-utf
%config(noreplace) %{angie_confdir}/%{name}.conf.default
%config(noreplace) %{angie_confdir}/scgi_params
%config(noreplace) %{angie_confdir}/scgi_params.default
%config(noreplace) %{angie_confdir}/fastcgi.conf
%config(noreplace) %{angie_confdir}/fastcgi.conf.default
%config(noreplace) %{angie_confdir}/mime.types.default
%config(noreplace) %{angie_confdir}/fastcgi_params
%config(noreplace) %{angie_confdir}/fastcgi_params.default
%config(noreplace) %{angie_confdir}/koi-win
%config(noreplace) %{angie_confdir}/koi-utf
%config(noreplace) %{angie_confdir}/%{name}.conf
%config(noreplace) %{angie_confdir}/mime.types
%config(noreplace) %{angie_confdir}/uwsgi_params
%config(noreplace) %{angie_confdir}/uwsgi_params.default
%config(noreplace) %{angie_confdir}/prometheus_all.conf
%config(noreplace) %{angie_confdir}/prometheus_all.conf.default
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{angie_rootdir}
%attr(0700,root,root) %dir %{angie_rootdir}/acme
%dir %{angie_cache}
%dir %{angie_logdir}

%post
%sysusers_create %{name}.conf
%systemd_post angie.service

%preun
%systemd_preun angie.service

#----------------------------------------------------------------------------

# perl support is a subpackage to avoid pulling perl into minimal containers with angie

%package module-perl
Summary: Angie module for handling variables with Perl
Requires: angie%{_isa} = %{EVRD}

%description module-perl
%{summary}
The ngx_http_perl_module module is used to implement location
and variable handlers in Perl and insert Perl calls into SSI.

%files module-perl
%{angie_modpath}/ngx_http_perl_module.so
%dir %{perl_vendorarch}/auto/nginx
%{perl_vendorarch}/nginx.pm
%{perl_vendorarch}/auto/nginx/nginx.so

#----------------------------------------------------------------------------

%package module-rtmp
Summary: Angie module for media streaming
Url: https://github.com/arut/nginx-rtmp-module
Requires: angie%{_isa} = %{EVRD}
Provides: angie-module-rtmp = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_rtmp_commit} | head -c 6)

%description module-rtmp
%{summary}

%files module-rtmp
%license nginx-rtmp-module-%{module_rtmp_commit}/LICENSE
%doc nginx-rtmp-module-%{module_rtmp_commit}/README.md
%{angie_modpath}/ngx_rtmp_module.so

#----------------------------------------------------------------------------

%package module-upload
Summary: Angie module for uploading files
Url: https://github.com/vkholodkov/nginx-upload-module
Requires: angie%{_isa} = %{EVRD}
Provides: angie-module-upload = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_upload_commit} | head -c 6)

%description module-upload
%{summary}

%files module-upload
%license nginx-upload-module-%{module_upload_commit}/LICENCE
%license nginx-upload-module-%{module_upload_commit}/LICENCE.ru
%doc nginx-upload-module-%{module_upload_commit}/README.md
%doc nginx-upload-module-%{module_upload_commit}/Changelog
%doc nginx-upload-module-%{module_upload_commit}/example.php
%doc nginx-upload-module-%{module_upload_commit}/upload-protocol.md
%doc nginx-upload-module-%{module_upload_commit}/nginx.conf
%{angie_modpath}/ngx_http_upload_module.so

#----------------------------------------------------------------------------

%package module-http_auth_pam
Summary: Angie module for PAM authorization
Url: https://github.com/sto/ngx_http_auth_pam_module
Requires: angie%{_isa} = %{EVRD}
Provides: angie-module-http_auth_pam = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_pam1_commit} | head -c 6)

%description module-http_auth_pam
%{summary}

%files module-http_auth_pam
%license ngx_http_auth_pam_module-%{module_pam1_commit}/LICENSE
%doc ngx_http_auth_pam_module-%{module_pam1_commit}/README.md
%doc ngx_http_auth_pam_module-%{module_pam1_commit}/ChangeLog
%{angie_modpath}/ngx_http_auth_pam_module.so

#----------------------------------------------------------------------------

%package module-ndk
Summary: Helper module for some other Angie modules
Url: https://github.com/vision5/ngx_devel_kit
Requires: angie%{_isa} = %{EVRD}
Provides: angie-module-ndk = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_ndk_commit} | head -c 6)

%description module-ndk
%{summary}

%files module-ndk
%license ngx_devel_kit-%{module_ndk_commit}/LICENSE
%doc ngx_devel_kit-%{module_ndk_commit}/README*
%{angie_modpath}/ndk_http_module.so

#----------------------------------------------------------------------------

%package module-array-var
Summary: Angie module adding support of variables inside config
Url: https://github.com/openresty/array-var-nginx-module
Requires: angie%{_isa} = %{EVRD}
Requires: angie-module-ndk = %{EVRD}
Provides: angie-module-array-var = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_array_commit} | head -c 6)

%description module-array-var
%{summary}
Depends from ndk_http_module.

%files module-array-var
%doc array-var-nginx-module-%{module_array_commit}/README.md
%{angie_modpath}/ngx_http_array_var_module.so

#----------------------------------------------------------------------------

%package module-aws-auth
Summary: Angie AWS proxy module
Url: https://github.com/anomalizer/ngx_aws_auth
Requires: angie%{_isa} = %{EVRD}
Provides: angie-module-aws-auth = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_awsauth_commit} | head -c 6)

%description module-aws-auth
%{summary}
This angie module can proxy requests to authenticated S3 backends
using Amazon's V4 authentication API.

%files module-aws-auth
%license ngx_aws_auth-%{module_awsauth_commit}/LICENSE
%doc ngx_aws_auth-%{module_awsauth_commit}/README.md
%doc ngx_aws_auth-%{module_awsauth_commit}/reference-impl-py
%doc ngx_aws_auth-%{module_awsauth_commit}/generate_signing_key
%{angie_modpath}/ngx_http_aws_auth_module.so

#----------------------------------------------------------------------------

%package module-brotli
Summary: Angie Brotli compression module
Url: https://github.com/google/ngx_brotli
Requires: angie%{_isa} = %{EVRD}
Provides: angie-module-brotli = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_brotli_commit} | head -c 6)

%description module-brotli
%{summary}
Includes both ngx_http_brotli_filter_module and ngx_http_brotli_static_module.

%files module-brotli
%license ngx_brotli-%{module_brotli_commit}/LICENSE
%doc ngx_brotli-%{module_brotli_commit}/README.md
%{angie_modpath}/ngx_http_brotli_filter_module.so
%{angie_modpath}/ngx_http_brotli_static_module.so

#----------------------------------------------------------------------------

%package module-spnego-auth
Summary: Angie module for HTTP SPNEGO (GSSAPI) authentication
Url: https://github.com/stnoonan/spnego-http-auth-nginx-module
Requires: angie%{_isa} = %{EVRD}
Provides: angie-spnego-auth = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_spnego_commit} | head -c 6)

%description module-spnego-auth
%{summary}
This module implements adds SPNEGO support to angie.
It currently supports only Kerberos authentication via GSSAPI.

%files module-spnego-auth
%license spnego-http-auth-nginx-module-%{module_spnego_commit}/LICENSE
%doc spnego-http-auth-nginx-module-%{module_spnego_commit}/README.md
%doc spnego-http-auth-nginx-module-%{module_spnego_commit}/ChangeLog
%{angie_modpath}/ngx_http_auth_spnego_module.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-Angie-%{version}

tar -xf %{SOURCE10}
tar -xf %{SOURCE11}
tar -xf %{SOURCE12}
tar -xf %{SOURCE13}
tar -xf %{SOURCE14}
tar -xf %{SOURCE15}
tar -xf %{SOURCE16}
tar -xf %{SOURCE17}

%build
%setup_compile_flags

# enable all possible modules
modules="$(grep -- "--with-.*_module" auto/options | \
           awk '{print $1}' | \
           grep -- ^--with | \
           grep -v = | \
           sed -e 's,),,' | \
           grep -vE 'http_perl_module|cpp_test_module|google_perftools_module|imap_ssl_module' |
           sort -u | \
           tr '\n' ' ')"
if [ "$(echo "$modules" | wc -c)" -lt 730 ]; then
	echo "Something went wrong when generating list of modules!"
	exit 1
fi

./configure \
	--user=%{angie_user} \
	--group=%{angie_group} \
	--prefix=%{angie_datadir} \
	--sbin-path=%{_sbindir}/%{name} \
	--conf-path=%{angie_confdir}/%{name}.conf \
	--error-log-path=%{angie_logdir}/error.log \
	--http-log-path=%{angie_logdir}/access.log \
	--http-acme-client-path=%{angie_rootdir}/acme \
	--http-client-body-temp-path=%{angie_cache}/client_temp \
	--http-fastcgi-temp-path=%{angie_cache}/fastcgi_temp \
	--http-proxy-temp-path=%{angie_cache}/proxy_temp \
	--http-scgi-temp-path=%{angie_cache}/scgi_temp \
	--http-uwsgi-temp-path=%{angie_cache}/uwsgi_temp \
	--pid-path=/var/run/%{name}.pid \
	--lock-path=/var/lock/subsys/%{name} \
	--modules-path=%{angie_modpath} \
	--add-dynamic-module=nginx-rtmp-module-%{module_rtmp_commit} \
	--add-dynamic-module=nginx-upload-module-%{module_upload_commit} \
	--add-dynamic-module=ngx_http_auth_pam_module-%{module_pam1_commit} \
	--add-dynamic-module=ngx_devel_kit-%{module_ndk_commit} \
	--add-dynamic-module=array-var-nginx-module-%{module_array_commit} \
	--add-dynamic-module=ngx_aws_auth-%{module_awsauth_commit} \
	--add-dynamic-module=ngx_brotli-%{module_brotli_commit} \
	--add-dynamic-module=spnego-http-auth-nginx-module-%{module_spnego_commit} \
	--with-file-aio \
	--with-http_perl_module=dynamic \
	--with-mail \
	--with-pcre \
	--with-stream \
	$modules
# this is only passed to perl module being built and only overrides the
# default '-O' flag which anyways lowers optimizations (which we don't
# want)
%make_build OPTIMIZE="-fno-PIE"

%install
%make_install INSTALLDIRS=vendor

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \;
find %{buildroot} -type f -empty -exec rm -f {} \;
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type f -name '*.so' -exec chmod 0755 {} \;
chmod 0755 %{buildroot}%{_sbindir}/angie

install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/angie.service
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -p -d -m 0755 %{buildroot}%{angie_cache}
install -p -d -m 0755 %{buildroot}%{angie_rootdir}
install -p -d -m 0755 %{buildroot}%{angie_rootdir}/acme
install -p -d -m 0755 %{buildroot}%{angie_logdir}
install -p -d -m 0755 %{buildroot}%{angie_webroot}

install -p -m 0644 %{SOURCE100} %{SOURCE102} %{SOURCE103} %{SOURCE104} %{buildroot}%{angie_webroot}

# add current version
perl -pi -e "s|_VERSION_|%{version}|g" %{buildroot}%{angie_webroot}/index.html

# convert to UTF-8 all files that give warnings.
for textfile in CHANGES; do
	mv $textfile $textfile.old
	iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old
	rm -f $textfile.old
done

install -d %{buildroot}%{_mandir}/man8
install -m0644 man/*.8 %{buildroot}%{_mandir}/man8/

mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
sed -i %{buildroot}%{_sysusersdir}/%{name}.conf \
	-e 's,@angie_cache@,%{angie_cache},g' \
	-e 's,@angie_user@,%{angie_user},g' \
	-e 's,@angie_group@,%{angie_group},g'
! grep -q '@' %{buildroot}%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11852 |21mr|anjuta-3.34.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-4)

%define major		0
%define api		3
%define girmajor	3.0

%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{girmajor}
%define devname %mklibname %{name} %{api} -d

Summary:	Integrated development environment for C and C++ (Linux)
Name:		anjuta
Version:	3.34.0
Release:	13
License:	GPLv2+
Group:		Development/Other
Url:		https://download.gnome.org/sources/anjuta
Source0:	https://download.gnome.org/sources/anjuta/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		intltool.patch
Patch1:		python3.8.patch
# From SUSE
Patch2:		libgda-6.patch
BuildRequires:	autogen
BuildRequires:	bison
BuildRequires:	desktop-file-utils
BuildRequires:	flex
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	vala
BuildRequires:	yelp-tools
BuildRequires:	gettext-devel
BuildRequires:	subversion-devel
BuildRequires:	pkgconfig(apr-1)
BuildRequires:	pkgconfig(apr-util-1)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gdl-3.0)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-3.0)
BuildRequires:	pkgconfig(libdevhelp-3.0)
BuildRequires:	pkgconfig(libgda-6.0)
BuildRequires:	pkgconfig(libcgraph)
BuildRequires:	python3-devel
BuildRequires:	pkgconfig(libgvc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)
Requires:	autogen
Requires:	python3-rope

%description
Anjuta DevStudio is a versatile Integrated Development Environment (IDE)
on GNOME Desktop Environment and features a number of advanced
programming facilities. These include project management, application and
class wizards, an on-board interactive debugger, powerful source editor,
syntax highlighting, intellisense autocompletions, symbol navigation,
version controls, integrated GUI designing and other tools.

%files -f %{name}.lang
%{_appdatadir}/anjuta.appdata.xml
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/mime/packages/anjuta.xml
%{_datadir}/pixmaps/%{name}
%{_iconsdir}/hicolor/*/*/*
%{_libdir}/%{name}
%{_mandir}/man1/%{name}*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Anjuta shared library
Group:		System/Libraries

%description -n %{libname}
Anjuta shared library.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Anjuta-%{girmajor}.typelib
%{_libdir}/girepository-1.0/IAnjuta-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Anjuta development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Anjuta development files.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/lib%{name}
%{_libdir}/lib%{name}-%{api}.so
%{_includedir}/lib%{name}-3.0
%{_libdir}/pkgconfig/lib%{name}-3.0.pc
%{_datadir}/gir-1.0/Anjuta-%{girmajor}.gir
%{_datadir}/gir-1.0/IAnjuta-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export PYTHON=%{__python3}
%configure \
	--disable-static \
	--enable-introspection=yes
%make

%install
%makeinstall_std

desktop-file-install --vendor="" \
	--remove-key='Encoding' \
	--add-category="IDE" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

%find_lang %{name} --with-gnome --all-name

#let files section handle docs
rm -fr %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11853 |21mr|anjuta-extras-3.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Name:		anjuta-extras
Version:	3.26.0
Release:	1
Summary:	Extensions for the Anjuta development environment
Group:		Development/Other
License:	GPLv2+
Url:		http://anjuta.sourceforge.net/
Source0:	http://download.gnome.org/sources/%name/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		anjuta-extras-remove-volatile.patch
BuildRequires:  pkgconfig(gthread-2.0) >= 2.16.0
BuildRequires:  pkgconfig(libanjuta-3.0) >= 3.8.0
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	yelp-tools
BuildRequires:	graphviz-devel
BuildRequires:	binutils-devel
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	gnome-common

%description
Anjuta DevStudio is a versatile Integrated Development Environment (IDE)
on GNOME Desktop Environment and features a number of advanced
programming facilities.

This package contains extensions to Anjuta:
* Profiler
* Sample
* Scintilla Editor
* Scratchbox
* Valgrind Plugin

%files -f %{name}.lang
%doc ChangeLog AUTHORS NEWS
%{_datadir}/glib-2.0/schemas/*.xml
%{_libdir}/anjuta/anjuta-*.plugin
%{_libdir}/anjuta/libanjuta-*.so
%{_datadir}/anjuta/glade/anjuta-*
%dir %{_datadir}/anjuta/properties
%{_datadir}/anjuta/properties/*.properties
%{_datadir}/anjuta/ui/anjuta-sample.ui
%{_datadir}/anjuta/ui/anjuta-scintilla.xml
%{_datadir}/pixmaps/anjuta/anjuta-*
%{_datadir}/help/*/anjuta-manual/scintilla-plugin.page

#---------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11854 |21mr|annotation-indexer-1.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           annotation-indexer
Version:        1.9
Release:        10
Summary:        Jenkins annotation-indexer library

# License is specified in pom file
License:        MIT
URL:            https://github.com/jenkinsci/lib-annotation-indexer
Source0:        https://github.com/jenkinsci/lib-%{name}/archive/%{name}-%{version}.tar.gz
Source1:        https://raw.github.com/jenkinsci/jenkins/jenkins-1.510/LICENSE.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.kohsuke.metainf-services:metainf-services)

%description
Annotation-indexer is a small java library
used for listing annotations at compile time.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n lib-%{name}-%{name}-%{version}

cp %{SOURCE1} LICENSE

# Nothing really interesting in parent
%pom_remove_parent
%pom_xpath_inject "pom:project" "<groupId>org.jenkins-ci</groupId>"

%build
# tests are disabled because of missing dependency (com.jolira:hickory)
%mvn_build -f

%install
%mvn_install


%files -f .mfiles
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11855 |21mr|annox-1.0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash b8565e1faa39c4eb8841902cf65a1615f5a933d7
Name:          annox
Version:       1.0.1
Release:       8
Summary:       Java annotations in XML resources
License:       BSD
Url:           http://java.net/projects/annox
# https://svn.java.net/svn/annox~svn/tags/
Source0:       https://github.com/highsource/annox/archive/%{githash}/%{name}-%{githash}.tar.gz
# from http://confluence.highsource.org/display/ANX/License
# annox package don't include the license file
# but annox developers allowed us to redistribute their
# work only if we include this notice. So we HAVE TO include these notices.
# https://github.com/highsource/annox/issues/3
Source1:       annox-LICENSE

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.javaparser:javaparser:pom:1.0.11)
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(javax.transaction:jta)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.hibernate:hibernate-search-engine)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Annox is an open source project which allows you to
read arbitrary Java annotations from XML resources.
JAXB users may be interested in Annox annotation
reader for JAXB RI which allows you to define JAXB 
Java/XML mappings in XML resources (instead of
annotations).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
# Cleanup
find -name "*.bat" -print -delete
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

%pom_disable_module samples

%pom_remove_plugin :maven-deploy-plugin

%pom_change_dep :ant-optional org.apache.ant:ant

%pom_xpath_set "pom:dependency[pom:artifactId = 'tools' ]/pom:groupId" com.sun
%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools' ]/pom:scope"
%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools' ]/pom:systemPath"

%pom_change_dep -r :hibernate-search :hibernate-search-engine
sed -i "s|org.hibernate.search.annotations.Field(index=TOKENIZED, store=NO|org.hibernate.search.annotations.Field(store=NO|" \
 core/src/test/java/org/jvnet/annox/parser/tests/XAnnotationParserTest.java
sed -i '/TOKENIZED/d' core/src/test/resources/org/jvnet/annox/parser/tests/field.xml

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

%mvn_file :%{name} %{name}

%build

# unavailable deps for run test: org.hibernate hibernate-search 3.0.0.GA
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11856 |21mr|ansible-2.9.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SSH-based configuration management, deployment, and task execution system
Name:		ansible
Version:	2.9.27
Release:	1
License:	GPLv3+
Group:		System/Configuration/Other
# This is only for testing purposes:
# http://ansibleworks.com
Url:		https://www.ansible.com
# The tarballs from GitHub don't have man pages: pick up them from download site.
Source0:	https://releases.ansible.com/ansible/%{name}-%{version}.tar.gz
# Playbook (ansible scenario) example
Source1:	rosa-playbook.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3) >= 3.5
Requires:	python3egg(paramiko)
Requires:	python3egg(setuptools)
Requires:	python3-keyczar
# (?)Found automatically by rpm
Requires:	python3egg(cryptography)
Requires:	python3egg(jinja2)
Requires:	python3egg(pyyaml)
Requires:	sshpass
%if %{mdvver} == 201905
Requires:	ansible-playbook-rosa
%endif
BuildArch:	noarch

%description
Ansible is a radically simple model-driven configuration management,
multi-node deployment, and orchestration engine, written in Python. It works
over SSH and does not require any software or daemons to be installed on
remote nodes. Extension modules can be written in any language and are
transferred to managed machines automatically.

%files
%doc README.rst PKG-INFO COPYING
%doc %{_mandir}/man1/%{name}*
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.cfg
%config(noreplace) %{_sysconfdir}/%{name}/hosts
%{_bindir}/%{name}*
%dir %{_datadir}/%{name}
%{py3_puresitedir}/%{name}*

#-----------------------------------------------------------------------------

%package playbook-rosa
Summary:	Ansible playbook (scenario) example
Group:		System/Configuration/Other
Requires:	%{name}

%description playbook-rosa
Playbook example for user management, software management, distribution of
configuration files and selinux management.

%files playbook-rosa
%config(noreplace) %{_sysconfdir}/%{name}/playbooks/rosa/

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
python3 setup.py install -O1 \
	--prefix=%{_prefix} \
	--root=%{buildroot}

# Install sample config files
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/
cp examples/hosts %{buildroot}%{_sysconfdir}/%{name}/
cp examples/%{name}.cfg %{buildroot}%{_sysconfdir}/%{name}/

# Install man pages
mkdir -p %{buildroot}/%{_mandir}/{man1,man3}/
cp -v docs/man/man1/*.1 %{buildroot}/%{_mandir}/man1/

# Provide a needed dir
mkdir -p %{buildroot}/%{_datadir}/%{name}

# Fix tons of rpmlint warnings
find %{buildroot}%{py3_puresitedir}/ansible -name ".git_keep" | xargs rm -f
find %{buildroot}%{py3_puresitedir}/ansible -name ".travis.yml" | xargs rm -f
find %{buildroot}%{py3_puresitedir}/ansible/modules -name "*.py"| xargs chmod +x
#find %%{buildroot}%%{py3_puresitedir}/ansible -name "*.sh"| xargs chmod +x
#find %%{buildroot}%%{py3_puresitedir}/ansible_test/data -name "*.sh"| xargs chmod +x
find %{buildroot}%{py3_puresitedir}/ansible/modules/windows -name "*.ps1"| xargs chmod +x
find %{buildroot}%{py3_puresitedir}/ansible/modules -name "__init__.py"| xargs chmod -x
find %{buildroot}%{py3_puresitedir}/ansible/modules/commands -name "raw.py"| xargs chmod -x
find %{buildroot}%{py3_puresitedir}/ansible/modules/commands -name "script.py"| xargs chmod -x
find %{buildroot}%{py3_puresitedir}/ansible/modules/commands -name "telnet.py"| xargs chmod -x
find %{buildroot}%{py3_puresitedir}/ansible/modules/inventory -name "add_host.py"| xargs chmod -x
find %{buildroot}%{py3_puresitedir}/ansible/modules/inventory -name "group_by.py"| xargs chmod -x
find %{buildroot}%{py3_puresitedir}/ansible/modules/utilities/logic -name "pause.py"| xargs chmod -x

# Install playbook example
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/playbooks
pushd %{buildroot}%{_sysconfdir}/%{name}/playbooks
tar xf %{SOURCE1}
popd


# CVE fixed
# CVE-2020-1736 CVE-2020-1738 CVE-2020-1739 CVE-2020-1740




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11857 |21mr|ansible-freeipa-0.3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Turn off automatic python byte compilation because these are Ansible
# roles and the files are transferred to the node and compiled there with
# the python version used in the node
%define __brp_python_bytecompile %{nil}

%global python %{__python3}

Name:		ansible-freeipa
Version:	0.3.8
Release:	1
Summary:	Roles and playbooks to deploy FreeIPA servers, replicas and clients
Group:		System/Configuration/Other
License:	GPLv3+
URL:		https://github.com/freeipa/ansible-freeipa
Source:		https://github.com/freeipa/ansible-freeipa/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
Ansible roles and playbooks to install and uninstall FreeIPA servers, replicas and clients.
Also modules for group, host, topology and user management.

Note: The Ansible playbooks and roles require a configured Ansible environment where 
the Ansible nodes are reachable and are properly set up to have an IP address 
and a working package manager.

Supported FreeIPA Versions

FreeIPA versions 4.6 and up are supported by all roles.

External signed CA is now supported. But the currently needed two step process
is an issue for the processing in a simple playbook.
Work is planned to have a new method to handle CSR for external signed CAs in
a separate step before starting the server installation.

%files
%license COPYING
%{_datadir}/ansible/roles/ipaserver
%{_datadir}/ansible/roles/ipareplica
%{_datadir}/ansible/roles/ipaclient
%{_datadir}/ansible/roles/ipabackup
%{_datadir}/ansible/plugins/module_utils
%{_datadir}/ansible/plugins/modules
%doc README*.md
%doc playbooks
%{_datadir}/ansible-freeipa/requirements.txt
%{_datadir}/ansible-freeipa/requirements-dev.txt
%{_datadir}/ansible-freeipa/utils

#----------------------------------------------------------------
%package tests
Summary:	ansible-freeipa tests
Group:		System/Configuration/Other
Requires:	%{name} = %{EVRD}

%description tests
ansible-freeipa tests.

Please have a look at %{_datadir}/ansible-freeipa/requirements-tests.txt
to get the needed requrements to run the tests.

%files tests
%{_datadir}/ansible-freeipa/tests
%{_datadir}/ansible-freeipa/requirements-tests.txt

#----------------------------------------------------------------

%prep
%setup -q
# Do not create backup files with patches

# Fix python modules and module utils:
# - Remove shebang
# - Remove execute flag
for i in roles/ipa*/library/*.py roles/ipa*/module_utils/*.py plugins/*/*.py; do
    sed -i '1{/\/usr\/bin\/python*/d;}' $i
    chmod a-x $i
done

for i in utils/*.py utils/ansible-ipa-*-install utils/new_module \
         utils/changelog utils/ansible-doc-test;
do
    sed -i '{s@/usr/bin/python*@%{python}@}' $i
done


%build

%install
install -m 755 -d %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipaserver %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipaserver/README.md README-server.md
cp -rp roles/ipareplica %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipareplica/README.md README-replica.md
cp -rp roles/ipaclient %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipaclient/README.md README-client.md
cp -rp roles/ipabackup %{buildroot}%{_datadir}/ansible/roles/
cp -rp roles/ipabackup/README.md README-backup.md
install -m 755 -d %{buildroot}%{_datadir}/ansible/plugins/
cp -rp plugins/* %{buildroot}%{_datadir}/ansible/plugins/

install -m 755 -d %{buildroot}%{_datadir}/ansible-freeipa
cp requirements*.txt %{buildroot}%{_datadir}/ansible-freeipa/
cp -rp utils %{buildroot}%{_datadir}/ansible-freeipa/
install -m 755 -d %{buildroot}%{_datadir}/ansible-freeipa/tests
cp -rp tests %{buildroot}%{_datadir}/ansible-freeipa/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11858 |21mr|ant-1.10.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%bcond_with tests
%bcond_without javadoc
%bcond_without junit5

%global ant_home %{_datadir}/ant

Name:           ant
Epoch:          0
Version:        1.10.11
Release:        1
Summary:        Java build tool
Summary(it):    Tool per la compilazione di programmi java
Summary(fr):    Outil de compilation pour java
Group:          Development/Java
License:        ASL 2.0
URL:            https://ant.apache.org/
Source0:        https://github.com/apache/ant/archive/refs/tags/rel/%{version}.tar.gz?/ant-%{version}.tar.gz
Source2:        apache-ant-1.8.ant.conf
# manpage
Source3:        ant.asciidoc

BuildRequires:  javapackages-local
BuildRequires:  java-devel >= 1:1.8.0
BuildRequires:  ant >= 1.10.2
BuildRequires:  ant-junit

BuildRequires:  asciidoc
BuildRequires:  docbook-dtds
BuildRequires:  xmlto

BuildRequires:  mvn(antlr:antlr)
BuildRequires:  mvn(bcel:bcel)
BuildRequires:  mvn(bsf:bsf)
BuildRequires:  mvn(com.jcraft:jsch)
BuildRequires:  mvn(commons-logging:commons-logging-api)
BuildRequires:  mvn(commons-net:commons-net)
BuildRequires:  mvn(javax.mail:mail)
BuildRequires:  mvn(jdepend:jdepend)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:1.2.13)
BuildRequires:  mvn(org.tukaani:xz)
BuildRequires:  mvn(oro:oro)
BuildRequires:  mvn(regexp:regexp)
BuildRequires:  mvn(xalan:xalan)
BuildRequires:  mvn(xml-resolver:xml-resolver)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.hamcrest:hamcrest-library)

%if %{with junit5}
BuildRequires:  junit5
%endif

# Theoretically Ant might be usable with just JRE, but typical Ant
# workflow requires full JDK, so we recommend it here.
%{?fedora:Recommends}%{!?fedora:Requires}: java-devel >= 1:1.8.0

Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
# Require full javapackages-tools since the ant script uses
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Ant is a Java library and command-line tool whose mission is to
drive processes described in build files as targets and extension
points dependent upon each other.  The main known usage of Ant is the
build of Java applications.  Ant supplies a number of built-in tasks
allowing to compile, assemble, test and run Java applications.  Ant
can also be used effectively to build non Java applications, for
instance C or C++ applications.  More generally, Ant can be used to
pilot any type of process which can be described in terms of targets
and tasks.

%description -l fr
Ant est un outil de compilation multi-plateformes pour java. Il est
utilisé par les projets apache-jakarta et apache-xml.

%description -l it
Ant e' un tool indipendente dalla piattaforma creato per faciltare la
compilazione di programmi java.
Allo stato attuale viene utilizzato dai progetti apache jakarta ed
apache xml.

%package lib
Summary:        Core part of %{name}

%description lib
Core part of Apache Ant that can be used as a library.

%package jmf
Summary:        Optional jmf tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description jmf
Optional jmf tasks for %{name}.

%description jmf -l fr
Taches jmf optionelles pour %{name}.

%package swing
Summary:        Optional swing tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description swing
Optional swing tasks for %{name}.

%description swing -l fr
Taches swing optionelles pour %{name}.

%package antlr
Summary:        Optional antlr tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description antlr
Optional antlr tasks for %{name}.

%description antlr -l fr
Taches antlr optionelles pour %{name}.

%package apache-bsf
Summary:        Optional apache bsf tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description apache-bsf
Optional apache bsf tasks for %{name}.

%description apache-bsf -l fr
Taches apache bsf optionelles pour %{name}.

%package apache-resolver
Summary:        Optional apache resolver tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description apache-resolver
Optional apache resolver tasks for %{name}.

%description apache-resolver -l fr
Taches apache resolver optionelles pour %{name}.

%package commons-logging
Summary:        Optional commons logging tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description commons-logging
Optional commons logging tasks for %{name}.

%description commons-logging -l fr
Taches commons logging optionelles pour %{name}.

%package commons-net
Summary:        Optional commons net tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description commons-net
Optional commons net tasks for %{name}.

%description commons-net -l fr
Taches commons net optionelles pour %{name}.

# Disable because we don't ship the dependencies
%if 0
%package jai
Summary:        Optional jai tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description jai
Optional jai tasks for %{name}.

%description jai -l fr
Taches jai optionelles pour %{name}.
%endif

%package apache-bcel
Summary:        Optional apache bcel tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description apache-bcel
Optional apache bcel tasks for %{name}.

%description apache-bcel -l fr
Taches apache bcel optionelles pour %{name}.

%package apache-log4j
Summary:        Optional apache log4j tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description apache-log4j
Optional apache log4j tasks for %{name}.

%description apache-log4j -l fr
Taches apache log4j optionelles pour %{name}.

%package apache-oro
Summary:        Optional apache oro tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description apache-oro
Optional apache oro tasks for %{name}.

%description apache-oro -l fr
Taches apache oro optionelles pour %{name}.

%package apache-regexp
Summary:        Optional apache regexp tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description apache-regexp
Optional apache regexp tasks for %{name}.

%description apache-regexp -l fr
Taches apache regexp optionelles pour %{name}.

%package apache-xalan2
Summary:        Optional apache xalan2 tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description apache-xalan2
Optional apache xalan2 tasks for %{name}.

%description apache-xalan2 -l fr
Taches apache xalan2 optionelles pour %{name}.

%package imageio
Summary:        Optional imageio tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description imageio
Optional imageio tasks for %{name}.

%package javamail
Summary:        Optional javamail tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description javamail
Optional javamail tasks for %{name}.

%description javamail -l fr
Taches javamail optionelles pour %{name}.

%package jdepend
Summary:        Optional jdepend tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description jdepend
Optional jdepend tasks for %{name}.

%description jdepend -l fr
Taches jdepend optionelles pour %{name}.

%package jsch
Summary:        Optional jsch tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description jsch
Optional jsch tasks for %{name}.

%description jsch -l fr
Taches jsch optionelles pour %{name}.

%package junit
Summary:        Optional junit tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description junit
Optional junit tasks for %{name}.

%description junit -l fr
Taches junit optionelles pour %{name}.

%if %{with junit5}
%package junit5
Summary:        Optional junit5 tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description junit5
Optional junit5 tasks for %{name}.

%description junit5 -l fr
Taches junit5 optionelles pour %{name}.
%endif

%package testutil
Summary:        Test utility classes for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description testutil
Test utility tasks for %{name}.

%package xz
Summary:        Optional xz tasks for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description xz
Optional xz tasks for %{name}.

%package manual
Summary:        Manual for %{name}

%description manual
Documentation for %{name}.

%description manual -l it
Documentazione di %{name}.

%description manual -l fr
Documentation pour %{name}.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%description javadoc -l fr
Javadoc pour %{name}.

# -----------------------------------------------------------------------------

%prep
%setup -q -n ant-rel-%{version}

# Fix class-path-in-manifest rpmlint warning
%pom_xpath_remove 'attribute[@name="Class-Path"]' build.xml

# clean jar files
find . -name "*.jar" | xargs -t rm

# failing testcases. TODO see why
rm src/tests/junit/org/apache/tools/ant/types/selectors/SignedSelectorTest.java \
   src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsFileSelectedTest.java \
   src/tests/junit/org/apache/tools/ant/taskdefs/condition/IsSignedTest.java \
   src/tests/junit/org/apache/tools/ant/taskdefs/JarTest.java \
   src/tests/junit/org/apache/tools/mail/MailMessageTest.java

#install jars
build-jar-repository -s -p lib/optional antlr bcel javamail/mailapi jdepend junit log4j-1 oro regexp bsf commons-logging commons-net jsch xalan-j2 xml-commons-resolver xalan-j2-serializer hamcrest/core hamcrest/library xz-java
%if %{with junit5}
build-jar-repository -s -p lib/optional junit5 opentest4j
%endif

# fix hardcoded paths in ant script and conf
cp -p %{SOURCE2} %{name}.conf
sed -e 's:/etc/ant.conf:%{_sysconfdir}/ant.conf:g' \
    -e 's:/etc/ant.d:%{_sysconfdir}/ant.d:g' \
    -e 's:/usr/share/ant:%{_datadir}/ant:g' \
    -e 's:/usr/bin/build-classpath:%{_bindir}/build-classpath:g' \
    -e 's:/usr/share/java-utils/java-functions:%{_javadir}-utils/java-functions:g' \
    -i src/script/ant %{name}.conf

# Remove unnecessary JARs from the classpath
sed -i 's/jaxp_parser_impl//;s/xml-commons-apis//' src/script/ant

# Fix file-not-utf8 rpmlint warning
iconv KEYS -f iso-8859-1 -t utf-8 -o KEYS.utf8
mv KEYS.utf8 KEYS
iconv LICENSE -f iso-8859-1 -t utf-8 -o LICENSE.utf8
mv LICENSE.utf8 LICENSE

# We want a hard dep on antlr
%pom_xpath_remove pom:optional src/etc/poms/ant-antlr/pom.xml

%if %{without junit5}
%pom_xpath_inject 'target[@name="javadocs"]/javadoc/packageset' '<exclude name="**/junitlauncher"/>' build.xml
%endif

# fix javamail dependency coordinates (remove once javamail is updated)
%pom_change_dep -r com.sun.mail:jakarta.mail javax.mail:mail src/etc/poms/ant-javamail/pom.xml

%build
%{ant} jars test-jar

%if %with javadoc
%{ant} javadocs
%endif

# typeset the manpage
mkdir man
asciidoc -b docbook -d manpage -o man/%{name}.xml %{SOURCE3}
xmlto man man/%{name}.xml -o man

#remove empty jai and netrexx jars. Due to missing dependencies they contain only manifests.
rm -fr build/lib/ant-jai.jar build/lib/ant-netrexx.jar
%if %{without junit5}
rm -f build/lib/ant-junitlauncher.jar
%endif
# -----------------------------------------------------------------------------

%install
# ANT_HOME and subdirs
mkdir -p $RPM_BUILD_ROOT%{ant_home}/{lib,etc,bin}

%mvn_alias :ant org.apache.ant:ant-nodeps apache:ant ant:ant
%mvn_alias :ant-launcher ant:ant-launcher

%mvn_file ':{ant,ant-bootstrap,ant-launcher}' %{name}/@1 @1

for jar in build/lib/*.jar
do
  # Make sure that installed JARs are not empty
  jar tf ${jar} | egrep -q *.class

  jarname=$(basename $jar .jar)

  # jar aliases
  ln -sf ../../java/%{name}/${jarname}.jar $RPM_BUILD_ROOT%{ant_home}/lib/${jarname}.jar

  pom=src/etc/poms/${jarname}/pom.xml

  # bootstrap does not have a pom, generate one
  [ $jarname == ant-bootstrap ] && pom='org.apache.ant:ant-bootstrap:%{version}'

  %mvn_artifact ${pom} ${jar}
done

# ant-parent pom
%mvn_artifact src/etc/poms/pom.xml

%mvn_package :ant lib
%mvn_package :ant-launcher lib
%mvn_package :ant-bootstrap lib
%mvn_package :ant-parent lib
%mvn_package :ant-junit4 junit
# catchall rule for the rest
%mvn_package ':ant-{*}' @1

%mvn_install

# scripts: remove dos and os/2 scripts
rm -f src/script/*.bat
rm -f src/script/*.cmd

# XSLs
cp -p src/etc/*.xsl $RPM_BUILD_ROOT%{ant_home}/etc

# install everything else
mkdir -p $RPM_BUILD_ROOT%{_bindir}
cp -p src/script/ant $RPM_BUILD_ROOT%{_bindir}/
ln -sf %{_bindir}/ant $RPM_BUILD_ROOT%{ant_home}/bin/
cp -p src/script/antRun $RPM_BUILD_ROOT%{ant_home}/bin/

# default ant.conf
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
cp -p %{name}.conf $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.conf

# OPT_JAR_LIST fragments
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d
echo "ant/ant-jmf" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/jmf
echo "ant/ant-swing" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/swing
echo "antlr ant/ant-antlr" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/antlr
echo "rhino bsf ant/ant-apache-bsf" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-bsf
echo "xml-commons-resolver ant/ant-apache-resolver" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-resolver
echo "apache-commons-logging ant/ant-commons-logging" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/commons-logging
echo "apache-commons-net ant/ant-commons-net" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/commons-net
#echo "jai ant/ant-jai" > $RPM_BUILD_ROOT%%{_sysconfdir}/%%{name}.d/jai
echo "bcel ant/ant-apache-bcel" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-bcel
echo "log4j12 ant/ant-apache-log4j" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-log4j
echo "oro ant/ant-apache-oro" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-oro
echo "regexp ant/ant-apache-regexp" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-regexp
echo "xalan-j2 xalan-j2-serializer ant/ant-apache-xalan2" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/apache-xalan2
echo "ant/ant-imageio" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/imageio
echo "javamail jaf ant/ant-javamail" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/javamail
echo "jdepend ant/ant-jdepend" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/jdepend
echo "jsch ant/ant-jsch" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/jsch
echo "junit hamcrest/core ant/ant-junit" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/junit
echo "junit hamcrest/core ant/ant-junit4" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/junit4
echo "testutil ant/ant-testutil" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/testutil
echo "xz-java ant/ant-xz" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/xz

%if %{with junit5}
echo "junit5 hamcrest/core junit opentest4j ant/ant-junitlauncher" > $RPM_BUILD_ROOT%{_sysconfdir}/%{name}.d/junitlauncher
%endif

%if %with javadoc
# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr build/javadocs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
%endif

# fix link between manual and javadoc
(cd manual; ln -sf %{_javadocdir}/%{name} api)

# manpage
install -d -m 755 %{buildroot}%{_mandir}/man1/
install -p -m 644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

%if %with tests
%check
LC_ALL=C.UTF-8 %{ant} test
%endif

%files
%doc KEYS README WHATSNEW
%license LICENSE NOTICE
%config(noreplace) %{_sysconfdir}/%{name}.conf
%attr(0755,root,root) %{_bindir}/ant
%dir %{ant_home}/bin
%{ant_home}/bin/ant
%attr(0755,root,root) %{ant_home}/bin/antRun
%{_mandir}/man1/%{name}.*
%dir %{ant_home}/etc
%{ant_home}/etc/ant-update.xsl
%{ant_home}/etc/changelog.xsl
%{ant_home}/etc/coverage-frames.xsl
%{ant_home}/etc/mmetrics-frames.xsl
%{ant_home}/etc/log.xsl
%{ant_home}/etc/tagdiff.xsl
%{ant_home}/etc/common2master.xsl
%{ant_home}/etc/printFailingTests.xsl
%dir %{_sysconfdir}/%{name}.d

%files lib -f .mfiles-lib
%dir %{ant_home}
%dir %{ant_home}/lib
%{ant_home}/lib/%{name}.jar
%{ant_home}/lib/%{name}-launcher.jar
%{ant_home}/lib/%{name}-bootstrap.jar

%files jmf -f .mfiles-jmf
%{ant_home}/lib/%{name}-jmf.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/jmf

%files swing -f .mfiles-swing
%{ant_home}/lib/%{name}-swing.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/swing

%files antlr -f .mfiles-antlr
%{ant_home}/lib/%{name}-antlr.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/antlr

%files apache-bsf -f .mfiles-apache-bsf
%{ant_home}/lib/%{name}-apache-bsf.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-bsf

%files apache-resolver -f .mfiles-apache-resolver
%{ant_home}/lib/%{name}-apache-resolver.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-resolver

%files commons-logging -f .mfiles-commons-logging
%{ant_home}/lib/%{name}-commons-logging.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/commons-logging

%files commons-net -f .mfiles-commons-net
%{ant_home}/lib/%{name}-commons-net.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/commons-net

# Disable as we dont ship the dependencies
%if 0
%files jai -f .mfiles-jai
%{ant_home}/lib/%{name}-jai.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/jai
%endif

%files apache-bcel -f .mfiles-apache-bcel
%{ant_home}/lib/%{name}-apache-bcel.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-bcel

%files apache-log4j -f .mfiles-apache-log4j
%{ant_home}/lib/%{name}-apache-log4j.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-log4j

%files apache-oro -f .mfiles-apache-oro
%{ant_home}/lib/%{name}-apache-oro.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-oro
%{ant_home}/etc/maudit-frames.xsl

%files apache-regexp -f .mfiles-apache-regexp
%{ant_home}/lib/%{name}-apache-regexp.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-regexp

%files apache-xalan2 -f .mfiles-apache-xalan2
%{ant_home}/lib/%{name}-apache-xalan2.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/apache-xalan2

%files imageio -f .mfiles-imageio
%{ant_home}/lib/%{name}-imageio.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/imageio

%files javamail -f .mfiles-javamail
%{ant_home}/lib/%{name}-javamail.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/javamail

%files jdepend -f .mfiles-jdepend
%{ant_home}/lib/%{name}-jdepend.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/jdepend
%{ant_home}/etc/jdepend.xsl
%{ant_home}/etc/jdepend-frames.xsl

%files jsch -f .mfiles-jsch
%{ant_home}/lib/%{name}-jsch.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/jsch

%files junit -f .mfiles-junit
%{ant_home}/lib/%{name}-junit.jar
%{ant_home}/lib/%{name}-junit4.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/junit
%config(noreplace) %{_sysconfdir}/%{name}.d/junit4
%{ant_home}/etc/junit-frames.xsl
%{ant_home}/etc/junit-noframes.xsl
%{ant_home}/etc/junit-frames-xalan1.xsl
%{ant_home}/etc/junit-frames-saxon.xsl
%{ant_home}/etc/junit-noframes-saxon.xsl

%if %{with junit5}
%files junit5 -f .mfiles-junitlauncher
%{ant_home}/lib/%{name}-junitlauncher.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/junitlauncher
%endif

%files testutil -f .mfiles-testutil
%{ant_home}/lib/%{name}-testutil.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/testutil

%files xz -f .mfiles-xz
%{ant_home}/lib/%{name}-xz.jar
%config(noreplace) %{_sysconfdir}/%{name}.d/xz

%files manual
%license LICENSE NOTICE
%doc manual/*

%if %with javadoc
%files javadoc
%license LICENSE NOTICE
%{_javadocdir}/%{name}
%endif

# -----------------------------------------------------------------------------


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11859 |21mr|ant-antunit-1.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name       antunit

Name:             ant-%{base_name}
Version:          1.3
Release:          12
Summary:          Provide antunit ant task
License:          ASL 2.0
Group:            Development/Java
URL:              http://ant.apache.org/antlibs/%{base_name}/
Source0:          http://www.apache.org/dist/ant/antlibs/%{base_name}/source/apache-%{name}-%{version}-src.tar.bz2
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    javapackages-local
BuildRequires:    ant
BuildRequires:    ant-junit
BuildRequires:    ant-testutil


%description
The <antunit> task drives the tests much like <junit> does for JUnit tests.

When called on a build file, the task will start a new Ant project for that
build file and scan for targets with names that start with "test". For each
such target it then will:

   1. Execute the target named setUp, if there is one.
   2. Execute the target itself - if this target depends on other targets the
      normal Ant rules apply and the dependent targets are executed first.
   3. Execute the target names tearDown, if there is one.


%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n apache-%{name}-%{version}
mv CONTRIBUTORS CONTRIBUTORS.orig
iconv -f ISO-8859-1 -t UTF-8 CONTRIBUTORS.orig > CONTRIBUTORS
touch -r CONTRIBUTORS.orig CONTRIBUTORS


%build
ant package


%install
%mvn_artifact %{name}-%{version}.pom build/lib/%{name}-%{version}.jar
%mvn_file ":ant-antunit" ant/ant-antunit
%mvn_install -J docs/

# OPT_JAR_LIST fragments
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
echo "ant/%{name}" > %{buildroot}%{_sysconfdir}/ant.d/%{base_name}


%files -f .mfiles
%license LICENSE NOTICE
%doc CONTRIBUTORS README README.html WHATSNEW
%config(noreplace) %{_sysconfdir}/ant.d/%{base_name}

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11860 |21mr|ant-contrib-1.0-0.35.b3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global beta_number b3

Summary:        Collection of tasks for Ant
Name:           ant-contrib
Version:        1.0
Release:        0.35.%{beta_number}
License:        ASL 2.0 and ASL 1.1
Group:          Development/Java
URL:            http://ant-contrib.sourceforge.net/
Source0:        https://downloads.sourceforge.net/project/ant-contrib/ant-contrib/1.0b3/ant-contrib-1.0b3-src.tar.bz2
# ASL 2.0 Licence text
# Upstream bug at https://sourceforge.net/tracker/?func=detail&aid=3590371&group_id=36177&atid=416920
Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt
Patch2:         %{name}-antservertest.patch
BuildRequires:  ivy-local
BuildRequires:  junit
BuildRequires:  ant-junit
BuildRequires:  xerces-j2
BuildRequires:  bcel
BuildRequires:  java-devel
BuildRequires:  apache-ivy
BuildRequires:  jakarta-commons-httpclient
BuildRequires:  apache-commons-logging
BuildRequires:  apache-commons-parent
Requires:       java-headless
Requires:       junit
Requires:       ant
Requires:       xerces-j2
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Ant-Contrib project is a collection of tasks
(and at one point maybe types and other tools)
for Apache Ant.

%package        javadoc
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description    javadoc
Api documentation for %{name}.

%prep
%setup -q  -n %{name}
%patch2

cp %{SOURCE2} LICENSE-2.0.txt

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

sed -i "s|xercesImpl|xerces-j2|g" ivy.xml
# needs porting to latest ivy
rm -fr src/java/net/sf/antcontrib/net/URLImportTask.java

sed -i '/<ivy:configure /d' build.xml
rm -f ivy-conf.xml

sed -i '/<info /s//&revision="1.0b3" /' ivy.xml
%mvn_alias : ant-contrib:

%build
%ant -Divy.mode=local dist

%install
%mvn_artifact ivy.xml target/%{name}.jar
%mvn_install -J target/docs/api

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
echo "ant-contrib/ant-contrib" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-contrib

%files -f .mfiles
%{_sysconfdir}/ant.d/ant-contrib
%doc target/docs/LICENSE.txt LICENSE-2.0.txt
%doc target/docs/manual/tasks/*

%files javadoc -f .mfiles-javadoc
%doc target/docs/LICENSE.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11861 |21mr|anthy-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkg  anthy

%global commit 9174340dd1e5e3dc013bbeb4996f460460df4e20

%global major 1
%global anthyinputmajor 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define libanthydic %mklibname anthydic %{major}
%define libanthyinput %mklibname anthyinput %{major}

Summary:       Japanese character set input library
Group:         System/Internationalization
Name:          anthy
Version:       0.4
Release:       2
Epoch:         1
# The entire source code is LGPLv2+ and dictionaries is GPLv2. the corpus data is under Public Domain.
License:       LGPLv2+ and GPLv2 and Public Domain
URL:           https://wiki.debian.org/Teams/DebianAnthy
BuildRequires: emacs
BuildRequires: gcc

Source0:       https://salsa.debian.org/debian/anthy/-/archive/%{commit}/anthy-%{commit}.tar.gz?/anthy-%{version}.tar.gz
Source1:       anthy-init.el
#https://www.mail-archive.com/ports@openbsd.org/msg100310.html
Patch16:       anthy-process-kill.patch

Requires:      emacs-filesystem
Provides:      emacs-%{pkg}-el = %{EVRD}
Conflicts:     anthy = 9100h
Obsoletes:     anthy = 9100h

%description
Anthy provides the library to input Japanese on the applications, such as
X applications and emacs. and the user dictionaries and the users information
which is used for the conversion, is stored into their own home directory.
So Anthy is secure than other conversion server.

%files
%doc AUTHORS ChangeLog doc/DIARY NEWS README
%license COPYING
%{_bindir}/*
%{_sysconfdir}/*
%{_datadir}/anthy/
%{_datadir}/emacs/site-lisp/anthy
%doc doc/ELISP

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries
Conflicts:	%{_lib}anthy0 = 9100h
Obsoletes:	%{_lib}anthy0 = 9100h

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------
%package -n %{libanthydic}
Summary:	%{name} shared library
Group:		System/Libraries
Conflicts:	%{_lib}anthy0 = 9100h
Obsoletes:	%{_lib}anthy0 = 9100h

%description -n %{libanthydic}
%{name} shared library.

%files -n %{libanthydic}
%{_libdir}/libanthydic.so.%{major}*

#-----------------------------------------------------------------
%package -n %{libanthyinput}
Summary:	%{name} shared library
Group:		System/Libraries
Conflicts:	%{_lib}anthy0 = 9100h
Obsoletes:	%{_lib}anthy0 = 9100h

%description -n %{libanthyinput}
%{name} shared library.

%files -n %{libanthyinput}
%{_libdir}/libanthyinput.so.%{anthyinputmajor}*

#-----------------------------------------------------------------

%package -n %{devname}
Summary:   Header files and library for developing programs which uses Anthy
Requires:  %{name}%{?_isa} = %{EVRD}
Requires:  %{libname}%{?_isa} = %{EVRD}
Requires:  %{libanthydic}%{?_isa} = %{EVRD}
Requires:  %{libanthyinput}%{?_isa} = %{EVRD}
Requires:  pkgconfig
Provides:  %{name}-devel = %{EVRD}

%description -n %{devname}
The anthy-devel package contains the development files which is needed to build
the programs which uses Anthy.

%files -n %{devname}
%doc doc/DICLIB doc/DICUTIL doc/GLOSSARY doc/GRAMMAR doc/GUIDE.english doc/ILIB doc/LEARNING doc/LIB doc/MISC doc/POS doc/SPLITTER doc/TESTING doc/protocol.txt
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

#-----------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%configure

make

%install
%make_install

## for emacs-anthy
mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/emacs/site-start.d




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11862 |21mr|antlr-2.7.7-59
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without doxygen
%bcond_with python

%global debug_package %{nil}
# since we have only a static library

Summary:       ANother Tool for Language Recognition
Name:          antlr
Version:       2.7.7
Release:       59
Epoch:         0
License:       ANTLR-PD
Group:         Development/Java
URL:           http://www.antlr2.org/
# ./generate-tarball.sh
Source0:       antlr-%{version}.tar.gz
Source1:       %{name}-build.xml
Source2:       %{name}-script
Source3:       http://repo2.maven.org/maven2/antlr/antlr/%{version}/%{name}-%{version}.pom
# Repack the tarball without prebuilt binaries of unknown origin
Source4:       generate-tarball.sh
Patch1:        %{name}-%{version}-newgcc.patch
# see BZ#848662
Patch2:        antlr-examples-license.patch

%ifarch %{mono_arches}
%if ! 0%{?rhel} >= 6
BuildRequires: mono-core
BuildRequires: mono-winforms
%endif
%endif
BuildRequires: gcc-c++
BuildRequires: make
BuildRequires: ant
BuildRequires: java-devel >= 1:1.7.0
BuildRequires: java-javadoc
BuildRequires: javapackages-local
%if %{with doxygen}
BuildRequires: doxygen graphviz
%endif
%if %{with python}
# Do not support Python3
BuildRequires: python2-devel
BuildRequires: python2-setuptools
%endif

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
language tool that provides a framework for constructing recognizers,
compilers, and translators from grammatical descriptions containing
C++ or Java actions [You can use PCCTS 1.xx to generate C-based
parsers].

%package     tool
Summary:       ANother Tool for Language Recognition
Provides:      %{name} = %{version}-%{release}
# Explicit requires for javapackages-tools since antlr-script
# uses /usr/share/java-utils/java-functions
Requires:      javapackages-tools
Group:          Development/Java
BuildArch:     noarch

%description tool
ANTLR, ANother Tool for Language Recognition, (formerly PCCTS) is a
language tool that provides a framework for constructing recognizers,
compilers, and translators from grammatical descriptions containing
C++ or Java actions [You can use PCCTS 1.xx to generate C-based
parsers].

%package     manual
Summary:       Manual for %{name}
Group:          Development/Java
BuildArch:     noarch

%description manual
Documentation for %{name}.

%package     javadoc
Summary:       Javadoc for %{name}
Group:          Development/Java
BuildArch:     noarch

%description javadoc
Javadoc for %{name}.

%package     C++
Summary:       C++ bindings for antlr2 generated parsers
Provides:      antlr-static = %{version}-%{release}

%description C++
This package provides a static C++ library for parsers generated by ANTLR2.

%if %{with doxygen}
%package     C++-doc
Summary:       Documentation for C++ bindings for antlr2 generated parsers
Group:          Development/Java
BuildArch:     noarch

%description C++-doc
This package contains the documentation for the C++ bindings for parsers
generated by ANTLR2.
%endif

%if %{with python}
%package     -n python2-%{name}
Summary:       Python 2 runtime support for ANTLR-generated parsers
%{?python_provide:%python_provide python2-%{name}}

# This can be removed in Fedora 30
Provides:      %{name}-python = %{version}-%{release}
Obsoletes:     %{name}-python < 2.7.7-48

Group:          Development/Java
BuildArch:     noarch

%description -n python2-%{name}
Python runtime support for ANTLR-generated parsers
%endif

%prep
%setup -q
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
cp -p %{SOURCE1} build.xml
%patch1
%patch2 -p1
# CRLF->LF
sed -i 's/\r//' LICENSE.txt

# set jar location
%mvn_file %{name}:%{name} %{name}

%build
ant -Dj2se.apidoc=%{_javadocdir}/java
# make expects to find it here
cp work/lib/antlr.jar .
export CLASSPATH=.
%configure --without-examples
make CXXFLAGS="${CXXFLAGS} -fPIC" DEBUG=1 verbose=1
# no longer needed
rm antlr.jar

# fix doc permissions and remove Makefiles
rm doc/{Makefile,Makefile.in}
chmod 0644 doc/*

%if %{with doxygen}
# generate doxygen docs for C++ bindings
pushd lib/cpp
  doxygen doxygen.cfg
  find gen_doc -type f -exec chmod 0644 {} \;
popd
%endif

%if %{with python}
# build python
cd lib/python
%py2_build
cd ../../
%endif

%install
# jars, POM and depmap
%mvn_artifact %{SOURCE3} work/lib/%{name}.jar
%mvn_alias %{name}:%{name} %{name}:%{name}all
%mvn_install -J work/api

mkdir -p $RPM_BUILD_ROOT{%{_includedir}/%{name},%{_libdir},%{_bindir}}
# script
install -p -m 755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/antlr

# C++ lib and headers, antlr-config
install -p -m 644 lib/cpp/antlr/*.hpp $RPM_BUILD_ROOT%{_includedir}/%{name}
install -p -m 644 lib/cpp/src/libantlr.a $RPM_BUILD_ROOT%{_libdir}
install -p -m 755 scripts/antlr-config $RPM_BUILD_ROOT%{_bindir}

%if %{with python}
# python
cd lib/python
%py2_install
cd ../..
%endif


%files tool -f .mfiles
%license LICENSE.txt
%{_bindir}/antlr

# this is actually a development package for the C++ target
# as we ship only a static library, it doesn't make sense
# to have a separate -devel package for the headers
%files C++
%license LICENSE.txt
%{_includedir}/%{name}
%{_libdir}/libantlr.a
%{_bindir}/antlr-config

%if %{with doxygen}
%files C++-doc
%license LICENSE.txt
%doc lib/cpp/gen_doc/html/
%endif

%files manual
%license LICENSE.txt
%doc doc/*

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%if %{with python}
%files -n python2-%{name}
%license LICENSE.txt
%{python2_sitelib}/antlr/*
%{python2_sitelib}/antlr-*
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11863 |21mr|antlr32-3.2-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Need to set this when bootstrapping due to self-dependency
%bcond_with bootstrap

%global bootstrap_version 3.1.3

Name:           antlr32
Version:        3.2
Release:        23
Summary:        ANother Tool for Language Recognition

License:        BSD
URL:            http://www.antlr3.org/
Source0:        http://www.antlr3.org/download/antlr-%{version}.tar.gz

%if %{with bootstrap}
# These artifacts are taken verbatim from maven central with the exception of the
# jar in source 2, which additionally has the java 8 compatibility patch given below
# These sources are only used for bootstrapping antlr32 into a new distro
Source1:        http://repo1.maven.org/maven2/org/antlr/antlr-master/%{bootstrap_version}/antlr-master-%{bootstrap_version}.pom
Source2:        http://repo1.maven.org/maven2/org/antlr/antlr/%{bootstrap_version}/antlr-%{bootstrap_version}.jar
Source3:        http://repo1.maven.org/maven2/org/antlr/antlr/%{bootstrap_version}/antlr-%{bootstrap_version}.pom
Source4:        http://repo1.maven.org/maven2/org/antlr/antlr-runtime/%{bootstrap_version}/antlr-runtime-%{bootstrap_version}.jar
Source5:        http://repo1.maven.org/maven2/org/antlr/antlr-runtime/%{bootstrap_version}/antlr-runtime-%{bootstrap_version}.pom
Source6:        http://repo1.maven.org/maven2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}-1/antlr3-maven-plugin-%{bootstrap_version}-1.jar
Source7:        http://repo1.maven.org/maven2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}-1/antlr3-maven-plugin-%{bootstrap_version}-1.pom
%endif

# This is backported from upstream antlr 3.5.2 for java 8 compatibility
# See https://github.com/antlr/antlr3/commit/e88907c259c43d42fa5e9f5ad0e486a2c1e004bb
Patch0:         java8-compat.patch

# Generate OSGi metadata
Patch1:         osgi-manifest.patch

# Patch to use exec maven plugin as alternative to unavailable antlr2 maven plugin
Patch2:         antlr2-usage.patch

BuildRequires:  maven-local
BuildRequires:  ant-antlr
BuildRequires:  exec-maven-plugin
BuildRequires:  maven-plugin-build-helper
BuildRequires:  maven-plugin-bundle
BuildRequires:  maven-plugin-plugin
BuildRequires:  stringtemplate >= 3.2

# Cannot require ourself when bootstrapping
%if %{without bootstrap}
BuildRequires:  %{name}-maven-plugin = %{version}
%endif

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ANother Tool for Language Recognition, is a grammar parser generator.
This package is compatibility package containing an older version of
in order to support jython. No other packages should declare a
dependency on this one.

%package     maven-plugin
Summary:     Maven plug-in for creating ANTLR-generated parsers
Requires:    %{name}-tool = %{version}-%{release}

%description maven-plugin
Maven plug-in for creating ANTLR-generated parsers.

%package     tool
Summary:     Command line tool for creating ANTLR-generated parsers
Requires:    %{name}-java = %{version}-%{release}

%description tool
Command line tool for creating ANTLR-generated parsers.

%package     java
Summary:     Java run-time support for ANTLR-generated parsers
Requires:    stringtemplate >= 3.2

%description java
Java run-time support for ANTLR-generated parsers.

%package     javadoc
Summary:     API documentation for ANTLR

%description javadoc
%{summary}.

%prep
%setup -q -n antlr-%{version}

%patch0 -b .orig
%patch1 -b .orig
%patch2 -b .orig

# remove pre-built artifacts
find -type f -a -name *.jar -delete
find -type f -a -name *.class -delete

# remove corrupted files
find -name "._*" -delete

# disable stuff we don't need
%pom_disable_module gunit
%pom_disable_module gunit-maven-plugin
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
%pom_xpath_remove pom:build/pom:extensions
%pom_xpath_remove pom:build/pom:extensions runtime/Java
%pom_xpath_remove pom:build/pom:extensions antlr3-maven-plugin

# separate artifacts into sub-packages
%mvn_package :antlr tool
%mvn_package :antlr-master java
%mvn_package :antlr-runtime java
%mvn_package :antlr3-maven-plugin maven-plugin

# use a valid build target
find -name "pom.xml" | xargs sed -i -e "s|>jsr14<|>1.5<|"

# set a build number
sed -i -e "s|\${buildNumber}|%{release}|" tool/src/main/resources/org/antlr/antlr.properties

%mvn_compat_version 'org.antlr:antlr3-maven-plugin' %{version} %{bootstrap_version}-1
%mvn_compat_version 'org.antlr:antlr{,-master,-runtime}' %{version} %{bootstrap_version}

%build
mkdir -p .m2/org/antlr/antlr-master/%{version}/
cp -p pom.xml .m2/org/antlr/antlr-master/%{version}/antlr-master-%{version}.pom

%if %{with bootstrap}
mkdir -p .m2/org/antlr/antlr-master/%{bootstrap_version}/
cp -p %{SOURCE1} .m2/org/antlr/antlr-master/%{bootstrap_version}/.
mkdir -p .m2/org/antlr/antlr/%{bootstrap_version}/
cp -p %{SOURCE2} %{SOURCE3} .m2/org/antlr/antlr/%{bootstrap_version}/.
mkdir -p .m2/org/antlr/antlr-runtime/%{bootstrap_version}/
cp -p %{SOURCE4} %{SOURCE5} .m2/org/antlr/antlr-runtime/%{bootstrap_version}/.
mkdir -p .m2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}-1/
cp -p %{SOURCE6} %{SOURCE7} .m2/org/antlr/antlr3-maven-plugin/%{bootstrap_version}-1/.
%endif

# a small number of tests always fail for reasons I don't fully understand
%mvn_build -f

%install
%mvn_install

%files tool -f .mfiles-tool
%license tool/LICENSE.txt

%files maven-plugin -f .mfiles-maven-plugin
%license tool/LICENSE.txt

%files java -f .mfiles-java
%license tool/LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license tool/LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11864 |21mr|antlr3-3.5.2-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global antlr_version 3.5.2
%global c_runtime_version 3.4
%global javascript_runtime_version 3.1
%global baserelease 24

# Java stack is not supported on x86_32
%ifarch %{ix86}
%bcond_with java
%else
%bcond_without java
%endif

Summary:            ANother Tool for Language Recognition
Name:               antlr3
Epoch:              1
Version:            %{antlr_version}
Release:            %{baserelease}
License:            BSD
Group:              Development/Java
URL:                http://www.antlr3.org/

Source0:            https://github.com/antlr/antlr3/archive/%{antlr_version}/%{name}-%{antlr_version}.tar.gz
#Source2:            http://www.antlr3.org/download/Python/antlr_python_runtime-%{python_runtime_version}.tar.gz
Source3:            http://www.antlr3.org/download/antlr-javascript-runtime-%{javascript_runtime_version}.zip

Patch0:             0001-java8-fix.patch
# Generate OSGi metadata
Patch1:         osgi-manifest.patch
# Increase the default conversion timeout to avoid build failures when complex
# grammars are processed on slow architectures.  Patch from Debian.
Patch2:         0002-conversion-timeout.patch
# Fix problems with the C template.  Patch from Debian.
Patch3:         0003-fix-c-template.patch
# Keep Token.EOF_TOKEN for backwards compatibility.  Patch from Debian.
Patch4:         0004-eof-token.patch
# Make parsers reproducible.  Patch from Debian.
Patch5:         0005-reproducible-parsers.patch

%if %{with java}
BuildRequires:  ant
BuildRequires:  maven-local
BuildRequires:  mvn(org.antlr:antlr)
BuildRequires:  mvn(org.antlr:antlr3-maven-plugin)
BuildRequires:  mvn(org.antlr:ST4)
BuildRequires:  mvn(org.antlr:stringtemplate)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
%endif

BuildRequires:      autoconf
BuildRequires:      automake
BuildRequires:      libtool

%description
ANother Tool for Language Recognition, is a language tool
that provides a framework for constructing recognizers,
interpreters, compilers, and translators from grammatical
descriptions containing actions in a variety of target languages.

%if %{with java}
%package     tool
Summary:     ANother Tool for Language Recognition
BuildArch:   noarch
Provides:    %{name} = %{epoch}:%{antlr_version}-%{release}
Obsoletes:   %{name} < %{epoch}:%{antlr_version}-%{release}
Requires:    %{name}-java = %{epoch}:%{antlr_version}-%{release}
# Explicit requires for javapackages-tools since antlr3-script
# uses /usr/share/java-utils/java-functions
Requires:    javapackages-tools
Provides:    ant-antlr3 = %{epoch}:%{antlr_version}-%{release}

%description tool
ANother Tool for Language Recognition, is a language tool
that provides a framework for constructing recognizers,
interpreters, compilers, and translators from grammatical
descriptions containing actions in a variety of target languages.

%package     java
Summary:     Java run-time support for ANTLR-generated parsers
BuildArch:   noarch

%description java
Java run-time support for ANTLR-generated parsers

%package javadoc
Summary:        API documentation for %{name}
BuildArch:      noarch

%description javadoc
%{summary}.
%endif #/with_java

%package      javascript
Summary:      Javascript run-time support for ANTLR-generated parsers
Version:      %{javascript_runtime_version}
Release:      %{antlr_version}.%{baserelease}
BuildArch:    noarch

%description  javascript
Javascript run-time support for ANTLR-generated parsers

%package   C
Summary:   C run-time support for ANTLR-generated parsers
Version:   %{c_runtime_version}
Release:      %{antlr_version}.%{baserelease}

%description C
C run-time support for ANTLR-generated parsers

%package   C-devel
Summary:   Header files for the C bindings for ANTLR-generated parsers
Requires:  %{name}-C = %{epoch}:%{c_runtime_version}-%{release}
Version:   %{c_runtime_version}
Release:      %{antlr_version}.%{baserelease}


%description C-devel
Header files for the C bindings for ANTLR-generated parsers

%package        C-docs
Summary:        API documentation for the C run-time support for ANTLR-generated parsers
BuildArch:      noarch
BuildRequires:  graphviz
BuildRequires:  doxygen
Requires:       %{name}-C = %{epoch}:%{c_runtime_version}-%{release}
Version:   %{c_runtime_version}
Release:      %{antlr_version}.%{baserelease}

%description    C-docs
This package contains doxygen documentation with instruction
on how to use the C target in ANTLR and complete API description of the
C run-time support for ANTLR-generated parsers.

%package C++-devel
Summary:        C++ runtime support for ANTLR-generated parsers

%description C++-devel
C++ runtime support for ANTLR-generated parsers.

%prep
%setup -q -n antlr3-%{antlr_version} -a 3
sed -i "s,\${buildNumber},`cat %{_sysconfdir}/fedora-release` `date`," tool/src/main/resources/org/antlr/antlr.properties
%patch0 -p1
%patch1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

# remove pre-built artifacts
find -type f -a -name *.jar -delete
find -type f -a -name *.class -delete

%if %{with java}
%pom_disable_module antlr3-maven-archetype
%pom_disable_module gunit
%pom_disable_module gunit-maven-plugin
%pom_disable_module antlr-complete

%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin

# compile for target 1.6, see BZ#842572
sed -i 's/jsr14/1.6/' antlr3-maven-archetype/src/main/resources/archetype-resources/pom.xml \
                      antlr3-maven-plugin/pom.xml \
                                          gunit/pom.xml \
                                          gunit-maven-plugin/pom.xml \
                                          pom.xml \
                                          runtime/Java/pom.xml \
                                          tool/pom.xml

# workarounds bug in filtering (Mark invalid)
%pom_xpath_remove pom:resource/pom:filtering

%mvn_package :antlr-runtime java
%mvn_package : tool

%mvn_file :antlr antlr3
%mvn_file :antlr-runtime antlr3-runtime
%mvn_file :antlr-maven-plugin antlr3-maven-plugin

%endif #/with_java

%build

%if %{with java}
%mvn_build -f
%endif

# Build the C runtime
pushd runtime/C
autoreconf -i
%configure --disable-static --disable-abiflags --enable-debuginfo \
%if 0%{?__isa_bits} == 64
    --enable-64bit
%else
    %{nil}
%endif

sed -i "s#CFLAGS = .*#CFLAGS = $RPM_OPT_FLAGS#" Makefile
make %{?_smp_mflags}
doxygen -u # update doxygen configuration file
doxygen # build doxygen documentation
popd

%if %{with java}
# build ant task
pushd antlr-ant/main/antlr3-task/
export CLASSPATH=$(build-classpath ant)
javac -encoding ISO-8859-1 antlr3-src/org/apache/tools/ant/antlr/ANTLR3.java
jar cvf ant-antlr3.jar \
  -C antlr3-src org/apache/tools/ant/antlr/antlib.xml \
  -C antlr3-src org/apache/tools/ant/antlr/ANTLR3.class
popd
%endif #/with_java

%install
mkdir -p $RPM_BUILD_ROOT/%{_mandir}
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/antlr

%if %{with java}
%mvn_install

# install ant task
install -m 644 antlr-ant/main/antlr3-task/ant-antlr3.jar -D $RPM_BUILD_ROOT%{_javadir}/ant/ant-antlr3.jar
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
cat > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/ant-antlr3 << EOF
ant/ant-antlr3 antlr3
EOF

# install wrapper script
%jpackage_script org.antlr.Tool '' '' 'stringtemplate4/ST4.jar:antlr3.jar:antlr3-runtime.jar' antlr3 true
%endif #/with_java

# install C runtime
pushd runtime/C
make DESTDIR=$RPM_BUILD_ROOT install
pushd api/man/man3
for file in `ls -1 * | grep -vi "^antlr3"`; do
    mv $file antlr3-$file
done
sed -i -e 's,^\.so man3/pANTLR3,.so man3/antlr3-pANTLR3,' `grep -rl 'man3/pANTLR3' .`
gzip *
popd
mv api/man/man3 $RPM_BUILD_ROOT%{_mandir}/
rmdir api/man
popd

# install javascript runtime
pushd antlr-javascript-runtime-%{javascript_runtime_version}
install -pm 644 *.js $RPM_BUILD_ROOT%{_datadir}/antlr/
popd

# install C++ runtime (header only)
mkdir -p $RPM_BUILD_ROOT/%{_includedir}/%{name}
install -pm 644 runtime/Cpp/include/* $RPM_BUILD_ROOT/%{_includedir}/

%files C
%doc tool/LICENSE.txt
%{_libdir}/libantlr3c.so

%files C-devel
%{_mandir}/man3/*
%{_includedir}/*.h

%files C-docs
%doc runtime/C/api

%files C++-devel
%doc tool/LICENSE.txt
%{_includedir}/*.hpp
%{_includedir}/*.inl

%files javascript
%doc tool/LICENSE.txt
%{_datadir}/antlr/

%if %{with java}
%files tool -f .mfiles-tool
%doc README.txt tool/{LICENSE.txt,CHANGES.txt}
%{_bindir}/antlr3
%{_javadir}/ant/ant-antlr3.jar
%config(noreplace) %{_sysconfdir}/ant.d/ant-antlr3

%files java -f .mfiles-java
%doc tool/LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc tool/LICENSE.txt
%endif #/with_java

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11865 |21mr|antlr4-4.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global swiftarches aarch64
%global swiftdir    %{_libdir}/swift/linux

%define major 1
%define libname %mklibname antlr4 %major
%define devname %mklibname antlr4 -d
%define debug_package %{nil}

# Use when a previous version has broken deps
%bcond_with bootstrap

Name:           antlr4
Version:        4.9.2
Release:        1
Summary:        Parser generator (ANother Tool for Language Recognition)
Group:          Development/Java
License:        BSD
URL:            https://www.antlr.org/
Source0:        https://github.com/antlr/antlr4/archive/%{version}/antlr4-%{version}.tar.gz
# Work around a "code too large" error while compiling a generated file
# https://github.com/antlr/antlr4/pull/2739
Patch0:         antlr4-unicode-properties.patch
# Fix some javadoc problems
# https://github.com/antlr/antlr4/pull/2960
Patch1:         antlr4-javadoc.patch
# Unbundle utf8cpp
Patch2:         antlr4-utf8cpp.patch
ExcludeArch:	%{ix86}
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  help2man
BuildRequires:  make
BuildRequires:  maven-local
BuildRequires:  mvn(com.ibm.icu:icu4j)
BuildRequires:  mvn(com.webguys:string-template-maven-plugin)
BuildRequires:  mvn(org.abego.treelayout:org.abego.treelayout.core)
BuildRequires:  mvn(org.antlr:antlr3-maven-plugin)
%if %{without bootstrap}
BuildRequires:  mvn(org.antlr:antlr4-maven-plugin)
%endif
BuildRequires:  mvn(org.antlr:antlr-runtime)
BuildRequires:  mvn(org.antlr:ST4)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:  mvn(org.glassfish:javax.json)
BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)
BuildRequires:  pkgconfig(uuid)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  utf8cpp-devel

# We can no longer successfully build or install the mono runtime.  See comment
# at the top of this spec file.
# This can be removed when Fedora 37 reaches EOL.
Obsoletes:      mono-antlr4-runtime < 4.9.1

%global _desc %{expand:
ANTLR (ANother Tool for Language Recognition) is a powerful parser
generator for reading, processing, executing, or translating structured
text or binary files.  It is widely used to build languages, tools, and
frameworks.  From a grammar, ANTLR generates a parser that can build
and walk parse trees.}

%description %_desc

%package        runtime-test-annotations
Summary:        ANTLR runtime test annotations
BuildArch:      noarch

%description    runtime-test-annotations %_desc

This package provides runtime library test annotations used by Java
ANTLR parsers.

%package        runtime-test-annotation-processors
Summary:        ANTLR runtime test annotation processors
BuildArch:      noarch
Requires:       %{name}-runtime-test-annotations = %{version}-%{release}

%description    runtime-test-annotation-processors %_desc

This package provides runtime library test annotation processors used by
Java ANTLR parsers.

%package        runtime
Summary:        ANTLR runtime
BuildArch:      noarch

%description    runtime %_desc

This package provides the runtime library used by Java ANTLR parsers.

%package        maven-plugin
Summary:        ANTLR plugin for Apache Maven
BuildArch:      noarch
Requires:       %{name} = %{version}-%{release}

%description    maven-plugin %_desc

This package provides a plugin for Apache Maven which can be used to
generate ANTLR parsers during project build.

%package        javadoc
Summary:        Java API documentation for antlr4
Group:          Development/Java
BuildArch:      noarch

%description    javadoc %_desc

This package contains Java API documentation for antlr4.

%package        doc
Summary:        ANTLR4 documentation
BuildArch:      noarch

%description    doc %_desc

This package contains ANTLR4 documentation.

%package        -n %{libname}-cpp-runtime
Summary:        ANTLR runtime for C++
Group:          Development/C++
Provides:       %{name}-cpp-runtime = %{version}-%{release}

%description    -n %{libname}-cpp-runtime %_desc

This package provides the runtime library used by C++ ANTLR parsers.

%package        -n %{libname}-cpp-runtime-devel
Summary:        Header files for programs that use C++ ANTLR parsers
Requires:       %{name}-cpp-runtime = %{version}-%{release}
Group:          Development/C++
Provides:       %{name}-cpp-runtime-devel = %{version}-%{release}

%description -n %{libname}-cpp-runtime-devel %_desc

This package provides header files for programs that use C++ ANTLR
parsers.

%ifarch %go_arches
%global goipath github.com/antlr/antlr4/runtime/Go/antlr

%package        -n golang-%{name}-runtime-devel
Summary:        ANTLR runtime for Go
BuildArch:      noarch
BuildRequires:  go-rpm-macros

%description    -n golang-%{name}-runtime-devel %_desc

This package provides the runtime library used by Go ANTLR parsers.
%endif

%ifarch %nodejs_arches
%package        -n nodejs-%{name}
Summary:        ANTLR runtime for JavaScript
BuildArch:      noarch
BuildRequires:  nodejs

%description    -n nodejs-%{name} %_desc

This package provides the runtime library used by JavaScript ANTLR
parsers.
%endif

%package        -n python3-%{name}-runtime
Summary:        ANTLR runtime for Python 3
Group:          Development/Python
BuildArch:      noarch

# This can be removed when F31 reaches EOL
Obsoletes:      %{name}-python3-runtime < 1:4.8-1
Provides:       %{name}-python3-runtime = 1:%{version}-%{release}

%description -n python3-%{name}-runtime %_desc

This package provides the runtime library used by Python 3 ANTLR parsers.

%if 0
%ifarch %swiftarches
%package     -n swift-%{name}-runtime
Summary:        ANTLR runtime for swift
BuildRequires:  swift-lang

%description -n swift-%{name}-runtime %_desc

This package provides the runtime library used by swift ANTLR parsers.
%endif
%endif

%prep
%autosetup -n %{name}-%{version} -p1
find -name \*.jar -delete

# Update for recent stringtemplate versions
sed -i 's,\\>,>,g' tool/resources/org/antlr/v4/tool/templates/unicodedata.st

# sonatype-oss-parent is deprecated in Fedora
%pom_remove_parent

# Xmvn javadoc mojo is in use
%pom_remove_plugin -r :maven-javadoc-plugin

# Missing test deps: org.seleniumhq.selenium:selenium-java
%pom_disable_module runtime-testsuite
%pom_disable_module tool-testsuite

# Missing test dep:
# io.takari.maven.plugins:takari-plugin-testing
%pom_remove_dep -r :takari-plugin-testing

# Missing plugin
# io.takari.maven.plugins:takari-lifecycle-plugin
%pom_remove_plugin -r :takari-lifecycle-plugin

# Don't bundle dependencies
%pom_remove_plugin :maven-shade-plugin tool

# Need some javax.json classes
%pom_add_dep javax.json:javax.json-api tool

# Replace dep on deprecated maven-project with maven-core
%pom_change_dep org.apache.maven:maven-project:2.2.1 org.apache.maven:maven-core:3.6.1 antlr4-maven-plugin

# Replace dep on maven-jdk-tools-wrapper with dep on tools.jar
%pom_change_dep :maven-jdk-tools-wrapper com.sun:tools runtime-testsuite/processors

%mvn_package :antlr4-master antlr4-runtime

%if %{with bootstrap}
# Avoid the need to build with an older version of antlr4
%pom_remove_plugin org.antlr:antlr4-maven-plugin runtime/Java
cp -p runtime/Cpp/runtime/src/tree/xpath/XPathLexer.tokens runtime/Java/src
%endif

# Build for JDK 1.8
sed -i 's/1\.7/1.8/g' pom.xml

# Use utf8cpp instead of the deprecated wstring_convert
sed -i 's/# \(.*DUSE_UTF8_INSTEAD_OF_CODECVT.*\)/\1/' runtime/Cpp/CMakeLists.txt

# Change library install directory on 64-bit platforms
if [ "%{_lib}" != "lib" ]; then
  sed -i 's/DESTINATION lib/&64/' runtime/Cpp/runtime/CMakeLists.txt
fi

%build
export JAVA_HOME=%{_jvmdir}/java

# Build for Java
# Due to the missing takari packages, we cannot run the tests
%mvn_build -s -f -- -Dsource=1.8

# Build the C++ runtime
cd runtime/Cpp
%cmake -DCMAKE_CXX_FLAGS=-isystem\ /usr/include/utf8cpp/
%make
cd -
echo $PWD
cd ../../
echo $PWD

# Build the Python 3 runtime
cd runtime/Python3
%py3_build
cd -

%if 0
%ifarch %swiftarches
# Build the Swift runtime
cd runtime/Swift
# Swift insists on a space between -j and the number, so cannot use _smp_mflags
swift build -c release %{?_smp_build_ncpus:-j %_smp_build_ncpus} \
  -Xlinker --build-id -Xlinker --as-needed -Xlinker -z -Xlinker relro \
  -Xlinker -z -Xlinker now
cd -
%endif
%endif

%install
# Install for Java; cannot use %%mvn_install as it passes %%name to -n
xmvn-install -R .xmvn-reactor -n antlr4 -d %{buildroot}
jdir=target/site/apidocs
[ -d .xmvn/apidocs ] && jdir=.xmvn/apidocs
mkdir -p %{buildroot}%{_licensedir}
if [ -d "${jdir}" ]; then
   install -dm755 %{buildroot}%{_javadocdir}/antlr4
   cp -pr "${jdir}"/* %{buildroot}%{_javadocdir}/antlr4
   echo '%{_javadocdir}/antlr4' >>.mfiles-javadoc
fi

%jpackage_script org.antlr.v4.Tool "" "" antlr4/antlr4:antlr3-runtime:antlr4/antlr4-runtime:stringtemplate4:treelayout antlr4 true

# Install the C++ runtime
cd runtime/Cpp
%makeinstall_std -C build
rm -f %{buildroot}%{_libdir}/libantlr4-runtime.a
cd -

# Install the Go runtime
%ifarch %go_arches
mkdir -p %{buildroot}%{gopath}/src/%{goipath}
cp -p runtime/Go/antlr/* %{buildroot}%{gopath}/src/%{goipath}
cat > %{buildroot}%{gopath}/src/%{goipath}/.goipath << EOF
version:%{version}-%{release}
excluderegex:.*example.*
EOF
%endif

# Install the JavaScript runtime
%ifarch %nodejs_arches
mkdir -p %{buildroot}%{nodejs_sitelib}
cp -a runtime/JavaScript/src/antlr4 %{buildroot}%{nodejs_sitelib}
%endif

# Install the Python 3 runtime
cd runtime/Python3
%py3_install
sed 's,#!python,#!%{python3},' bin/pygrun > %{buildroot}%{_bindir}/pygrun
touch -r bin/pygrun %{buildroot}%{_bindir}/pygrun
chmod 0755 %{buildroot}%{_bindir}/pygrun
cd -

%if 0
%ifarch %swiftarches
# Install the Swift runtime
cd runtime/Swift
mkdir -p %{buildroot}%{swiftdir}/%{_arch}
cp -p .build/release/libAntlr4.so %{buildroot}%{swiftdir}
cp -p .build/release/Antlr4.swift{doc,module} %{buildroot}%{swiftdir}/%{_arch}
cd -
%endif
%endif

# Create man pages
export PYTHONPATH=%{buildroot}%{python3_sitelib}
mkdir -p %{buildroot}%{_mandir}/man1
%if %{with bootstrap}
cat > antlr4 << EOF
java -cp %{buildroot}%{_javadir}/antlr4/antlr4.jar:%{buildroot}%{_javadir}/antlr4/antlr4-runtime.jar:$(build-classpath antlr3-runtime stringtemplate4 treelayout) org.antlr.v4.Tool
EOF
chmod a+x antlr4
help2man -N --version-string=%{version} -h '' ./antlr4 > \
  %{buildroot}%{_mandir}/man1/antlr4.1
cd %{buildroot}%{_bindir}
%else
cd %{buildroot}%{_bindir}
help2man -N --version-string=%{version} -h '' ./antlr4 > \
  %{buildroot}%{_mandir}/man1/antlr4.1
%endif
#help2man -N --version-string=%{version} -h '' ./pygrun > \
#  %{buildroot}%{_mandir}/man1/pygrun.1
cd -

# Clean up bits we do not want
rm -fr %{buildroot}%{_docdir}/libantlr4

%files runtime-test-annotations -f .mfiles-%{name}-runtime-test-annotations
%license LICENSE.txt

%files runtime-test-annotation-processors -f .mfiles-%{name}-runtime-test-annotation-processors

%files runtime -f .mfiles-%{name}-runtime
%doc README.md
%license LICENSE.txt

%files -f .mfiles-%{name}
%doc CHANGES.txt contributors.txt
%{_bindir}/%{name}

%files maven-plugin -f .mfiles-%{name}-maven-plugin

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files doc
%{_mandir}/man1/%{name}.1*
%doc doc
%license LICENSE.txt

%files -n %{libname}-cpp-runtime
%doc runtime/Cpp/README.md
%license LICENSE.txt
%{_libdir}/libantlr4-runtime.so.%{version}

%files -n %{libname}-cpp-runtime-devel
%doc runtime/Cpp/cmake/Antlr4Package.md runtime/Cpp/cmake/README.md
%{_includedir}/antlr4-runtime/
%{_libdir}/libantlr4-runtime.so

%ifarch %go_arches
%files -n golang-%{name}-runtime-devel
%license LICENSE.txt
%{gopath}/src/github.com/
%endif

%ifarch %nodejs_arches
%files -n nodejs-%{name}
%doc runtime/JavaScript/README.md
%license LICENSE.txt
%{nodejs_sitelib}/antlr4/
%endif

%files -n python3-%{name}-runtime
%doc runtime/Python3/README.txt
%license LICENSE.txt
%{_bindir}/pygrun
%python3_sitelib/antlr4/
%python3_sitelib/antlr4*.egg-info/

%if 0
%ifarch %swiftarches
%files -n swift-%{name}-runtime
%license LICENSE.txt
%{swiftdir}/libAntlr4.so
%{swiftdir}/%{_arch}/Antlr4.swiftdoc
%{swiftdir}/%{_arch}/Antlr4.swiftmodule
%endif
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11866 |21mr|antlr-maven-plugin-2.2-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			antlr-maven-plugin
Version:		2.2
Release:		24
Summary:		Maven plugin that generates files based on grammar file(s)
License:		ASL 2.0
URL:			http://mojo.codehaus.org/antlr-maven-plugin/
Group:                  Development/Java
Source0:		http://repo1.maven.org/maven2/org/codehaus/mojo/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Modern modello expects to see <models></models>, even if there is only one.
Patch0:			maven-antlr-plugin-2.2-modello-issue.patch
# siteRenderer.createSink doesn't exist anymore
Patch2:			maven-antlr-plugin-2.1-sinkfix.patch
# Fix grammar processing bug (bz 1020312)
Patch3:			0001-MANTLR-34-Fix-NPE-when-building-Jenkins.patch

BuildArch:		noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.commons:commons-exec)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Antlr Plugin has two goals:
- antlr:generate Generates file(s) to a target directory based on grammar
  file(s).
- antlr:html Generates Antlr report for grammar file(s).

%package javadoc
Summary:		Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%patch0 -p1 -b .modello
%patch2 -b .sink
%patch3 -p1 -b .fixnpe

# reporting eventually pulls in another antlr and we'd break with weird errors
%pom_xpath_inject "pom:dependency[pom:artifactId[text()='maven-reporting-impl']]/pom:exclusions" "
        <exclusion>
            <groupId>antlr</groupId>
            <artifactId>antlr</artifactId>
        </exclusion>"

# remove all binary bits
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

%mvn_file : %{name}

%build
%mvn_build -- -Dmaven.test.skip=true

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11867 |21mr|aom-1.0.0-1.2020.04.17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
%define staticname %mklibname %{name} -d -s

# Use latest git, until regular and standardized releases will be available.
# We can't download (for now) download release tarball or last. Thats why we need download git by hand.
# Use the YYYY.MM.DD format to make sure the number always goes up, not down (31.1.2020 > 10.4.2020)
%define gitdate 2020.04.17

# Analyzer requires wxWidgets, which requires webkitgtk, which
# requires libavif, which requires libaom... Bad cyclical dependency
%bcond_without gui

Name:		aom
Version:	1.0.0
Release:	1.%{gitdate}
Summary:	Royalty-free next-generation video format
Group:		System/Libraries
License:	BSD
URL:		http://aomedia.org/
#Source should be taken from: https://aomedia.googlesource.com/aom/
Source0:	%{name}-%{gitdate}.tar.zst
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	perl(Getopt::Long)
%if %{with gui}
BuildRequires:	wxgtku3.0-devel
%endif
BuildRequires:	yasm
Provides:	av1 = %{version}-%{release}

%description
The Alliance for Open Media’s focus is to deliver a next-generation
video format that is:

 - Interoperable and open;
 - Optimized for the Internet;
 - Scalable to any modern device at any bandwidth;
 - Designed with a low computational footprint and optimized for hardware;
 - Capable of consistent, highest-quality, real-time video delivery; and
 - Flexible for both commercial and non-commercial content, including
   user-generated content.

This package contains the reference encoder and decoder.

%if %{with gui}
%package extra-tools
Summary:	Extra tools for aom
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}

%description extra-tools
This package contains the aom analyzer.
%endif

%package -n %{libname}
Summary:	Library files for aom
Group:		System/Libraries

%description -n %{libname}
Library files for aom, the royalty-free next-generation 
video format.

%package -n %{develname}
Summary:	Development files for aom
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
Development files for aom, the royalty-free next-generation 
video format.

%package -n %{staticname}
Summary:	Static library files for aom
Group:		Development/C
Requires:	%{develname} = %{version}-%{release}

%description -n %{staticname}
Static library files for aom, the royalty-free next-generation 
video format.

%prep
%autosetup -p1 -n %{name}-%{gitdate}

%build
%cmake \
	-Wno-dev -DENABLE_CCACHE=1 \
	-DCMAKE_SKIP_RPATH=1 \
	-DCMAKE_INSTALL_LIBDIR="/%{_lib}" \
%ifnarch %{armx} %{ix86} %{x86_64}
	-DAOM_TARGET_CPU=generic \
%endif
%ifarch %{arm}
	-DAOM_TARGET_CPU=arm \
%endif
%ifarch aarch64
	-DAOM_TARGET_CPU=arm64 \
%endif
%ifarch %{ix86}
	-DAOM_TARGET_CPU=x86 \
%endif
%ifarch %{x86_64}
	-DAOM_TARGET_CPU=x86_64 \
%endif
	-DCONFIG_WEBM_IO=1 \
	-DENABLE_DOCS=1 \
%if %{with gui}
	-DCONFIG_ANALYZER=1 \
%else
	-DCONFIG_ANALYZER=0 \
%endif
	-DCONFIG_LOWBITDEPTH=1

%make_build

%install
%make_install -C build

%if %{with gui}
install -pm 0755 build/examples/analyzer %{buildroot}%{_bindir}/aomanalyzer
%endif

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE PATENTS
%{_bindir}/aomdec
%{_bindir}/aomenc

%if %{with gui}
%files extra-tools
%{_bindir}/aomanalyzer
%endif

%files -n %{libname}
%license LICENSE PATENTS
%{_libdir}/libaom.so.%{major}{,.*}
# Seems to be a compat symlink
%{_libdir}/libaom.so.0

%files -n %{develname}
%doc build/docs/html/
%{_includedir}/%{name}
%{_libdir}/libaom.so
%{_libdir}/pkgconfig/%{name}.pc

%files -n %{staticname}
%{_libdir}/libaom.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11868 |21mr|aopalliance-1.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           aopalliance
Epoch:          0
Version:        1.0
Release:        20
Summary:        Java/J2EE AOP standards
License:        Public Domain
URL:            http://aopalliance.sourceforge.net/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# cvs -d:pserver:anonymous@aopalliance.cvs.sourceforge.net:/cvsroot/aopalliance login
# password empty
# cvs -z3 -d:pserver:anonymous@aopalliance.cvs.sourceforge.net:/cvsroot/aopalliance export -r HEAD aopalliance
Source0:        aopalliance-src.tar.gz
Source1:        http://repo1.maven.org/maven2/aopalliance/aopalliance/1.0/aopalliance-1.0.pom
Source2:        %{name}-MANIFEST.MF

BuildRequires:  ant
BuildRequires:  javapackages-local

%description
Aspect-Oriented Programming (AOP) offers a better solution to many
problems than do existing technologies, such as EJB.  AOP Alliance
intends to facilitate and standardize the use of AOP to enhance
existing middleware environments (such as J2EE), or development
environements (e.g. Eclipse).  The AOP Alliance also aims to ensure
interoperability between Java/J2EE AOP implementations to build a
larger AOP community.

%{?javadoc_package}

%prep
%setup -q -n %{name}

%build
export CLASSPATH=
export OPT_JAR_LIST=:
%{ant} -Dbuild.sysclasspath=only jar javadoc

# Inject OSGi manifest required by Eclipse.
jar umf %{SOURCE2} build/%{name}.jar

%install
%mvn_file : %{name}
%mvn_artifact %{SOURCE1} build/%{name}.jar

%mvn_install -J build/javadoc

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11869 |21mr|apache-2.4.62-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define defaultmaxmodules 256
%define defaultserverlimit 2048

%define TAG %{vendor} Linux
%define BASEPRODUCT Apache
%define all_services httpd.service httpd-worker.service httpd-event.service

Summary:	The most widely used Web server on the Internet
Name:		apache
Version:	2.4.62
Release:	1
Epoch:		4
License:	Apache License
Group:		System/Servers
Url:		https://httpd.apache.org
Source0:	http://archive.apache.org/dist/httpd/httpd-%{version}.tar.bz2
Source1:	apache.rpmlintrc
Source3:	apache2_transparent_png_icons.tar.bz2
Source9:	htcacheclean.service
Source10:	htcacheclean.sysconfig
Source11:	ROSA.tar.gz
Source14:	httpd-init.service
Source15:	httpd.service
Source16:	httpd.tmpfiles.d
Source17:	htcacheclean.tmpfiles.d
Source18:	apache.sysusers.d
Source19:	README.GOST
Source100:	buildconf
Patch1:		httpd-2.0.45-deplibs.patch
Patch2:		httpd-2.1.10-apxs.patch
Patch3:		httpd-2.2.10-ldap_auth_now_modular_in-apr-util-dbd-ldap_fix.diff
Patch4:		httpd-2.2.21-linux3.diff
Patch5:		httpd-2.4.46-rosa_config.diff
Patch6:		httpd-2.4.1-linkage_fix.diff
Patch7:		httpd-2.4.1-buildfix.diff
# Fixing typos in Source11 (ROSA.tar.gz)
Patch8:		ROSA-tarballed-configs.diff
BuildRequires:	lynx
BuildRequires:	flex
BuildRequires:	patchelf
BuildRequires:	db-devel
BuildRequires:	gdbm-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
# user() and group() provides generator
BuildRequires:	systemd
BuildRequires:	pkgconfig(apr-1) >= 1.5.0
BuildRequires:	pkgconfig(apr-util-1) >= 1.5.3
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua) >= 5.1
BuildRequires:	pkgconfig(openssl)
BuildRequires:	libressl-devel
BuildRequires:	pkgconfig(zlib)

%description
This package contains the main binary of apache, a powerful, full-featured,
efficient and freely-available Web server. Apache is also the most popular Web
server on the Internet.

This version of apache is fully modular, and many modules are available in
pre-compiled formats, like PHP and mod_auth_external.

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.
This package defaults to a ServerLimit of %{defaultserverlimit}.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512' --define 'serverlimit 2048'

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.
The package was built with a ServerLimit of %{?!serverlimit:%{defaultserverlimit}}%{?serverlimit:%{serverlimit}}.

#----------------------------------------------------------------------------

%package mpm-prefork
Summary:	Implements a non-threaded, pre-forking web server (stable)
Group:		System/Servers
Requires:	apache-base = %{EVRD}
Requires:	apache-modules = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	webserver
Provides:	apache = %{EVRD}
Provides:	apache-mpm = %{EVRD}

%description mpm-prefork
This Multi-Processing Module (MPM) implements a non-threaded, pre-forking web
server that handles requests in a manner similar to Apache 1.3. It is
appropriate for sites that need to avoid threading for compatibility with
non-thread-safe libraries. It is also the best MPM for isolating each request,
so that a problem with a single request will not affect any other.

This MPM is very self-regulating, so it is rarely necessary to adjust its
configuration directives. Most important is that MaxClients be big enough to
handle as many simultaneous requests as you expect to receive, but small enough
to assure that there is enough physical RAM for all processes.

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.
This package defaults to a ServerLimit of %{defaultserverlimit}.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512' --define 'serverlimit 2048'

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.
The package was built with a ServerLimit of %{?!serverlimit:%{defaultserverlimit}}%{?serverlimit:%{serverlimit}}.

%files mpm-prefork
%attr(0755,root,root) %{_sbindir}/httpd
%{_unitdir}/httpd.service

%post mpm-prefork
%systemd_post httpd.service

%preun mpm-prefork
%systemd_preun httpd.service

%postun mpm-prefork
%systemd_postun_with_restart httpd.service

#----------------------------------------------------------------------------

%package mpm-worker
Summary:	Implements a hybrid multi-threaded multi-process web server (experimental)
Group:		System/Servers
Requires:	apache-base = %{EVRD}
Requires:	apache-modules = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	webserver
Provides:	apache = %{EVRD}
Conflicts:	apache-mod_php
Conflicts:	apache-mod_perl
Conflicts:	apache-mod_python

%description mpm-worker
This Multi-Processing Module (MPM) implements a hybrid multi-process
multi-threaded server. By using threads to serve requests, it is able to serve
a large number of requests with less system resources than a process-based
server. Yet it retains much of the stability of a process-based server by
keeping multiple processes available, each with many threads.

The most important directives used to control this MPM are ThreadsPerChild,
which controls the number of threads deployed by each child process and
MaxClients, which controls the maximum total number of threads that may be
launched.

This package contains the main binary of apache, a powerful, full-featured,
efficient and freely-available Web server. Apache is also the most popular Web
server on the Internet.

This version of apache is fully modular, and many modules are available in
pre-compiled formats, like PHP and mod_auth_external.

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512'

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.

%files mpm-worker
%attr(0755,root,root) %{_sbindir}/httpd-worker
%{_unitdir}/httpd-worker.service

%post mpm-worker
%systemd_post httpd-worker.service

%preun mpm-worker
%systemd_preun httpd-worker.service

%postun mpm-worker
%systemd_postun_with_restart httpd-worker.service

#----------------------------------------------------------------------------

%package mpm-event
Summary:	Implements a hybrid multi-threaded multi-process web server
Group:		System/Servers
Requires:	apache-base = %{EVRD}
Requires:	apache-modules = %{EVRD}
Requires(post,preun,postun):	systemd-units
Provides:	webserver
Provides:	apache = %{EVRD}
Conflicts:	apache-mod_php
Conflicts:	apache-mod_perl
Conflicts:	apache-mod_python

%description mpm-event
The event Multi-Processing Module (MPM) is designed to allow more requests to
be served simultaneously by passing off some processing work to supporting
threads, freeing up the main threads to work on new requests. It is based on
the worker MPM, which implements a hybrid multi-process multi-threaded server.
Run-time configuration directives are identical to those provided by worker.

This package contains the main binary of apache, a powerful, full-featured,
efficient and freely-available Web server. Apache is also the most popular Web
server on the Internet.

This version of apache is fully modular, and many modules are available in
pre-compiled formats, like PHP and mod_auth_external.

This package defaults to a maximum of %{defaultmaxmodules} dynamically loadable modules.

You can change these values at RPM build time by using for example:

--define 'maxmodules 512'

The package was built to support a maximum of %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}} dynamically loadable modules.

%files mpm-event
%attr(0755,root,root) %{_sbindir}/httpd-event
%{_unitdir}/httpd-event.service

%post mpm-event
%systemd_post httpd-event.service

%preun mpm-event
%systemd_preun httpd-event.service

%postun mpm-event
%systemd_postun_with_restart httpd-event.service

#----------------------------------------------------------------------------

%package user
Summary:	Create user and group for webserver
Group:		System/Servers
%if %{mdvver} >= 202310
Requires(pre):	%{_bindir}/systemd-sysusers
%else
Requires(pre):	/bin/systemd-sysusers
%endif
Conflicts:	apache-base < 2.4.46-8
Obsoletes:	apache-base < 2.4.46-8

%description user
This package create user and group apache:apache which can be used
in either Apache HTTPD or another web server, e.g. lighttpd.

%files user
%{_sysusersdir}/apache.conf

%pre user
%sysusers_create_package apache %{SOURCE18}

#----------------------------------------------------------------------------

%package filesystem
Summary:	Common filesystem structure for webservers
Group:		System/Servers
# "apache-user" subpackage provides it, but accept a possible alternative
Requires(pre):	user(apache)
Requires(pre):	group(apache)
# Files were moved between packages
Conflicts:	apache-base < 2.4.46-9
Obsoletes:	apache-base < 2.4.46-9
Conflicts:	apache-user < 2.4.46-9
Obsoletes:	apache-user < 2.4.46-9
Conflicts:	apache-filesystem < 2.4.46-10
Obsoletes:	apache-filesystem < 2.4.46-10

%description filesystem
This package provides a common filesystem structure in /var/www
for Apache HTTPD and other webservers.
apache:apache owns files and directories.

%files filesystem
# Files and directories inside /var/www which are not part of web server content
# are owned by root:root, webserver content is owned by apache:apache
# defattr(<file mode>, <user>, <group>, <dir mode>)
%defattr(644,apache,apache,755)
%dir /var/www
%dir /var/www/icons/small
%dir /var/www/cgi-bin
%dir /var/www/perl
%dir /var/www/html
%config(noreplace) /var/www/html/index.html
%config(noreplace) /var/www/html/favicon.ico
%config(noreplace) /var/www/html/robots.txt
%dir /var/www/error
%dir /var/www/error/include
%dir /var/www/icons
%attr(0644,root,root) %config(noreplace,missingok) /var/www/error/README
%attr(0644,root,root) %config(noreplace,missingok) /var/www/error/*.var
%attr(0644,root,root) %config(noreplace,missingok) /var/www/error/include/*.html
%attr(0644,root,root) /var/www/icons/*.svg
%attr(0644,root,root) /var/www/icons/README*
%attr(0644,root,root) /var/www/icons/*.png
%attr(0644,root,root) /var/www/icons/*.gif
%attr(0644,root,root) /var/www/icons/small/*.png
%attr(0644,root,root) /var/www/icons/small/*.gif

#----------------------------------------------------------------------------

%package base
Summary:	Common files and utilities for apache
Group:		System/Servers
Requires:	apache = %{EVRD}
# "apache-user" subpackage provides it, but accept a possible alternative
Requires(pre):	user(apache)
Requires(pre):	group(apache)
# apache-filesystem
Requires:	/var/www
Provides:	apache-conf = %{EVRD}
# So people who "dnf install httpd" get what they expect
Provides:	httpd = %{EVRD}

%description base
This package contains the apache utilities such as Apache Bench (ab) for stress
testing your apache installation and several tools for managing user databases,
access control, the apache logs and more.

%files base
%doc upgrading.txt new_features_2_4.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/httpd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/httpd
%dir %{_sysconfdir}/httpd
%dir %{_sysconfdir}/httpd/conf
%dir %{_sysconfdir}/httpd/webapps.d
%dir %{_sysconfdir}/httpd/conf.d
%dir %{_sysconfdir}/httpd/modules.d
%dir %{_sysconfdir}/httpd/conf/original
%{_sysconfdir}/httpd/modules
%{_sysconfdir}/httpd/logs
%{_sysconfdir}/httpd/run
%{_sysconfdir}/httpd/state
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-default.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-languages.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-manual.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-mpm.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-multilang-errordoc.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/httpd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/magic
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/mime.types
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-default.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-languages.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-manual.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-mpm.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-multilang-errordoc.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/fileprotector.conf
%{_tmpfilesdir}/httpd.conf
%dir /var/log/httpd
%attr(0755,root,root) %{_bindir}/ab
%attr(0755,root,root) %{_bindir}/dbmmanage
%attr(0755,root,root) %{_bindir}/htdbm
%attr(0755,root,root) %{_bindir}/htdigest
%attr(0755,root,root) %{_bindir}/htpasswd
%attr(0755,root,root) %{_bindir}/httxt2dbm
%attr(0755,root,root) %{_bindir}/logresolve
%attr(0755,root,root) %{_sbindir}/apachectl
# compat symlink to apachectl
%{_sbindir}/apache2ctl
%attr(0755,root,root) %{_sbindir}/check_forensic
%attr(0755,root,root) %{_sbindir}/checkgid
%attr(0755,root,root) %{_sbindir}/fcgistarter
%attr(0755,root,root) %{_sbindir}/list_hooks.pl
%attr(0755,root,root) %{_sbindir}/logresolve.pl
%attr(0755,root,root) %{_sbindir}/log_server_status
%attr(0755,root,root) %{_sbindir}/rotatelogs
%attr(0755,root,root) %{_sbindir}/split-logfile
%attr(0755,root,root) %dir %{_libdir}/apache
%attr(0700,apache,apache) %dir %{_localstatedir}/lib/httpd
%attr(0700,apache,apache) %dir %{_localstatedir}/cache/httpd
%exclude %{_mandir}/man8/htcacheclean.8*
%exclude %{_mandir}/man8/suexec.8*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%package modules
Summary:	Meta package
Group:		System/Servers
Requires:	apache-mpm = %{EVRD}
Requires:	apache-mod_actions = %{EVRD}
Requires:	apache-mod_alias = %{EVRD}
Requires:	apache-mod_auth_basic = %{EVRD}
Requires:	apache-mod_auth_digest = %{EVRD}
Requires:	apache-mod_authn_anon = %{EVRD}
Requires:	apache-mod_authn_file = %{EVRD}
Requires:	apache-mod_authz_dbm = %{EVRD}
Requires:	apache-mod_authz_groupfile = %{EVRD}
Requires:	apache-mod_authz_host = %{EVRD}
Requires:	apache-mod_authz_owner = %{EVRD}
Requires:	apache-mod_authz_user = %{EVRD}
Requires:	apache-mod_autoindex = %{EVRD}
Requires:	apache-mod_cgi = %{EVRD}
Requires:	apache-mod_deflate = %{EVRD}
Requires:	apache-mod_dir = %{EVRD}
Requires:	apache-mod_env = %{EVRD}
Requires:	apache-mod_expires = %{EVRD}
Requires:	apache-mod_filter = %{EVRD}
Requires:	apache-mod_headers = %{EVRD}
Requires:	apache-mod_imagemap = %{EVRD}
Requires:	apache-mod_include = %{EVRD}
Requires:	apache-mod_info = %{EVRD}
Requires:	apache-mod_log_config = %{EVRD}
Requires:	apache-mod_lua = %{EVRD}
Requires:	apache-mod_mime = %{EVRD}
Requires:	apache-mod_mime_magic = %{EVRD}
Requires:	apache-mod_negotiation = %{EVRD}
Requires:	apache-mod_rewrite = %{EVRD}
Requires:	apache-mod_setenvif = %{EVRD}
Requires:	apache-mod_status = %{EVRD}
Requires:	apache-mod_substitute = %{EVRD}
Requires:	apache-mod_unique_id = %{EVRD}
Requires:	apache-mod_usertrack = %{EVRD}
Requires:	apache-mod_version = %{EVRD}
Requires:	apache-mod_vhost_alias = %{EVRD}
# new 2.3+ modules
Requires:	apache-mod_authz_core = %{EVRD}
Requires:	apache-mod_authz_host = %{EVRD}
Requires:	apache-mod_unixd = %{EVRD}
# new 2.4+ modules
Requires:	apache-mod_socache_redis = %{EVRD}

%description modules
This is a meta package that pulls in the apache modules used by default
in %{vendor}.

%files modules

#----------------------------------------------------------------------------

%package mod_authn_file
Summary:	User authentication using text files
Group:		System/Servers

%description mod_authn_file
This module provides authentication front-ends such as mod_auth_digest
and mod_auth_basic to authenticate users by looking up users in plain text
password files. Similar functionality is provided by mod_authn_dbm.

When using mod_auth_basic or mod_auth_digest, this module is invoked via
the AuthBasicProvider or AuthDigestProvider with the file value.

%files mod_authn_file
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/001_mod_authn_file.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authn_file.so

#----------------------------------------------------------------------------

%package mod_authn_dbm
Summary:	User authentication using DBM files
Group:		System/Servers

%description mod_authn_dbm
This module provides authentication front-ends such as mod_auth_digest and
mod_auth_basic to authenticate users by looking up users in dbm password
files. Similar functionality is provided by mod_authn_file.

When using mod_auth_basic or mod_auth_digest, this module is invoked via
the AuthBasicProvider or AuthDigestProvider with the dbm value.

%files mod_authn_dbm
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/002_mod_authn_dbm.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authn_dbm.so

#----------------------------------------------------------------------------

%package mod_authn_anon
Summary:	Allows "anonymous" user access to authenticated areas
Group:		System/Servers

%description mod_authn_anon
This module provides authentication front-ends such as mod_auth_basic to
authenticate users similar to anonymous-ftp sites, i.e. have a 'magic' user
id 'anonymous' and the email address as a password. These email addresses
can be logged.

Combined with other (database) access control methods, this allows for
effective user tracking and customization according to a user profile
while still keeping the site open for 'unregistered' users. One advantage
of using Auth-based user tracking is that, unlike magic-cookies and funny
URL pre/postfixes, it is completely browser independent and it allows users
to share URLs.

When using mod_auth_basic, this module is invoked via the AuthBasicProvider
directive with the anon value.

%files mod_authn_anon
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/003_mod_authn_anon.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authn_anon.so

#----------------------------------------------------------------------------

%package mod_authn_dbd
Summary:	User authentication using an SQL database
Group:		System/Servers
Requires:	apache-mod_dbd

%description mod_authn_dbd
This module provides authentication front-ends such as mod_auth_digest
and mod_auth_basic to authenticate users by looking up users in SQL
tables. Similar functionality is provided by, for example, mod_authn_file.

This module relies on mod_dbd to specify the backend database driver and
connection parameters, and manage the database connections.

When using mod_auth_basic or mod_auth_digest, this module is invoked via
the AuthBasicProvider or AuthDigestProvider with the dbd value.

%files mod_authn_dbd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/004_mod_authn_dbd.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authn_dbd.so

#----------------------------------------------------------------------------

%package mod_authn_socache
Summary:	Manages a cache of authentication credentials to relieve the load on backends
Group:		System/Servers

%description mod_authn_socache
Maintains a cache of authentication credentials, so that a new backend
lookup is not required for every authenticated request.

%files mod_authn_socache
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/005_mod_authn_socache.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authn_socache.so

#----------------------------------------------------------------------------

%package mod_authn_core
Summary:	Core Authentication
Group:		System/Servers

%description mod_authn_core
This module provides core authentication capabilities to allow or deny
access to portions of the web site. mod_authn_core provides directives that
are common to all authentication providers.

%files mod_authn_core
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/006_mod_authn_core.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authn_core.so

#----------------------------------------------------------------------------

%package mod_authz_host
Summary:	Group authorizations based on host (name or IP address)
Group:		System/Servers

%description mod_authz_host
The authorization providers implemented by mod_authz_host are registered using
the Require directive. The directive can be referenced within a <Directory>,
<Files>, or <Location> section as well as .htaccess files to control access
to particular parts of the server.  Access can be controlled based on the
client hostname or IP address.

In general, access restriction directives apply to all access methods (GET,
PUT, POST, etc). This is the desired behavior in most cases.  However, it is
possible to restrict some methods, while leaving other methods unrestricted,
by enclosing the directives in a <Limit> section.

%files mod_authz_host
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/007_mod_authz_host.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authz_host.so

#----------------------------------------------------------------------------

%package mod_authz_groupfile
Summary:	Group authorization using plaintext files
Group:		System/Servers

%description mod_authz_groupfile
This module provides authorization capabilities so that authenticated
users can be allowed or denied access to portions of the web site by group
membership. Similar functionality is provided by mod_authz_dbm.

%files mod_authz_groupfile
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/008_mod_authz_groupfile.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authz_groupfile.so

#----------------------------------------------------------------------------

%package mod_authz_user
Summary:	User Authorization
Group:		System/Servers

%description mod_authz_user
This module provides authorization capabilities so that authenticated
users can be allowed or denied access to portions of the web site.
mod_authz_user grants access if the authenticated user is listed in a
Require user directive. Alternatively Require valid-user can be used to
grant access to all successfully authenticated users.

%files mod_authz_user
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/009_mod_authz_user.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authz_user.so

#----------------------------------------------------------------------------

%package mod_authz_dbm
Summary:	Group authorization using DBM files
Group:		System/Servers

%description mod_authz_dbm
This module provides authorization capabilities so that authenticated
users can be allowed or denied access to portions of the web site by group
membership. Similar functionality is provided by mod_authz_groupfile.

%files mod_authz_dbm
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/010_mod_authz_dbm.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authz_dbm.so

#----------------------------------------------------------------------------

%package mod_authz_owner
Summary:	Authorization based on file ownership
Group:		System/Servers

%description mod_authz_owner
This module authorizes access to files by comparing the userid used for
HTTP authentication (the web userid) with the file-system owner or group
of the requested file. The supplied username and password must be already
properly verified by an authentication module, such as mod_auth_basic or
mod_auth_digest. mod_authz_owner recognizes two arguments for the Require
directive, file-owner and file-group, as follows:

file-owner
 The supplied web-username must match the system's name for the owner of the
 file being requested. That is, if the operating system says the requested
 file is owned by jones, then the username used to access it through the
 web must be jones as well.

file-group
 The name of the system group that owns the file must be present in a
 group database, which is provided, for example, by mod_authz_groupfile
 or mod_authz_dbm, and the web-username must be a member of that group. For
 example, if the operating system says the requested file is owned by (system)
 group accounts, the group accounts must appear in the group database and
 the web-username used in the request must be a member of that group.

%files mod_authz_owner
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/011_mod_authz_owner.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authz_owner.so

#----------------------------------------------------------------------------

%package mod_authz_dbd
Summary:	Group Authorization and Login using SQL
Group:		System/Servers

%description mod_authz_dbd
This module provides authorization capabilities so that authenticated
users can be allowed or denied access to portions of the web site by group
membership. Similar functionality is provided by mod_authz_groupfile and
mod_authz_dbm, with the exception that this module queries a SQL database
to determine whether a user is a member of a group.

This module can also provide database-backed user login/logout
capabilities. These are likely to be of most value when used in conjunction
with mod_authn_dbd.

This module relies on mod_dbd to specify the backend database driver and
connection parameters, and manage the database connections.

%files mod_authz_dbd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/012_mod_authz_dbd.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authz_dbd.so

#----------------------------------------------------------------------------

%package mod_authz_core
Summary:	Core Authorization
Group:		System/Servers

%description mod_authz_core
This module provides core authorization capabilities so that
authenticated users can be allowed or denied access to portions of the
web site. mod_authz_core provides the functionality to register various
authorization providers. It is usually used in conjunction with an
authentication provider module such as mod_authn_file and an authorization
module such as mod_authz_user. It also allows for advanced logic to be
applied to the authorization processing.

%files mod_authz_core
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/013_mod_authz_core.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authz_core.so

#----------------------------------------------------------------------------

%package mod_authnz_ldap
Summary:	LDAP HTTP Basic authentication
Group:		System/Servers

%description mod_authnz_ldap
This module provides authentication front-ends such as mod_auth_basic to
authenticate users through an ldap directory.

mod_authnz_ldap supports the following features:

* Known to support the OpenLDAP SDK (both 1.x and 2.x), Novell LDAP SDK and
  the iPlanet (Netscape) SDK.

* Complex authorization policies can be implemented by representing the policy
  with LDAP filters.

* Uses extensive caching of LDAP operations via mod_ldap.

* Support for LDAP over SSL (requires the Netscape SDK) or TLS (requires the
  OpenLDAP 2.x SDK or Novell LDAP SDK).

When using mod_auth_basic, this module is invoked via the AuthBasicProvider
directive with the ldap value.

%files mod_authnz_ldap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/014_mod_authnz_ldap.conf
%attr(0755,root,root) %{_libdir}/apache/mod_authnz_ldap.so

#----------------------------------------------------------------------------

%package mod_access_compat
Summary:	Group authorizations based on host (name or IP address)
Group:		System/Servers

%description mod_access_compat
The directives provided by mod_access_compat are used in <Directory>,
<Files>, and <Location> sections as well as .htaccess files to control access
to particular parts of the server. Access can be controlled based on the
client hostname, IP address, or other characteristics of the client request,
as captured in environment variables. The Allow and Deny directives are
used to specify which clients are or are not allowed access to the server,
while the Order directive sets the default access state, and configures
how the Allow and Deny directives interact with each other.

Both host-based access restrictions and password-based authentication may
be implemented simultaneously. In that case, the Satisfy directive is used
to determine how the two sets of restrictions interact.

%files mod_access_compat
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/015_mod_access_compat.conf
%attr(0755,root,root) %{_libdir}/apache/mod_access_compat.so

#----------------------------------------------------------------------------

%package mod_auth_basic
Summary:	Basic authentication
Group:		System/Servers

%description mod_auth_basic
This module allows the use of HTTP Basic Authentication to restrict access
by looking up users in the given providers. HTTP Digest Authentication is
provided by mod_auth_digest. This module should usually be combined with at
least one authentication module such as mod_authn_file and one authorization
module such as mod_authz_user.

%files mod_auth_basic
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/016_mod_auth_basic.conf
%attr(0755,root,root) %{_libdir}/apache/mod_auth_basic.so

#----------------------------------------------------------------------------

%package mod_auth_form
Summary:	Form authentication
Group:		System/Servers

%description mod_auth_form
Form authentication depends on the mod_session modules, and these modules
make use of HTTP cookies, and as such can fall victim to Cross Site Scripting
attacks, or expose potentially private information to clients. Please ensure
that the relevant risks have been taken into account before enabling the
session functionality on your server.

This module allows the use of an HTML login form to restrict access by
looking up users in the given providers. HTML forms require significantly
more configuration than the alternatives, however an HTML login form can
provide a much friendlier experience for end users.

HTTP basic authentication is provided by mod_auth_basic, and HTTP digest
authentication is provided by mod_auth_digest. This module should be
combined with at least one authentication module such as mod_authn_file
and one authorization module such as mod_authz_user.

Once the user has been successfully authenticated, the user's login details
will be stored in a session provided by mod_session.

%files mod_auth_form
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/017_mod_auth_form.conf
%attr(0755,root,root) %{_libdir}/apache/mod_auth_form.so

#----------------------------------------------------------------------------

%package mod_auth_digest
Summary:	User authentication using MD5 Digest Authentication
Group:		System/Servers

%description mod_auth_digest
This module implements HTTP Digest Authentication (RFC2617), and provides
a more secure alternative to mod_auth_basic.

%files mod_auth_digest
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/018_mod_auth_digest.conf
%attr(0755,root,root) %{_libdir}/apache/mod_auth_digest.so

#----------------------------------------------------------------------------

%package mod_allowmethods
Summary:	Easily restrict what HTTP methods can be used on the server
Group:		System/Servers

%description mod_allowmethods
This module makes it easy to restrict what HTTP methods can used on an
server. The most common configuration would be:

%files mod_allowmethods
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/019_mod_allowmethods.conf
%attr(0755,root,root) %{_libdir}/apache/mod_allowmethods.so

#----------------------------------------------------------------------------

%package mod_file_cache
Summary:	Caches a static list of files in memory
Group:		System/Servers

%description mod_file_cache
This module should be used with care. You can easily create a broken site
using mod_file_cache, so read this document carefully.

Caching frequently requested files that change very infrequently is a
technique for reducing server load. mod_file_cache provides two techniques for
caching frequently requested static files. Through configuration directives,
you can direct mod_file_cache to either open then mmap() a file, or to
pre-open a file and save the file's open file handle. Both techniques reduce
server load when processing requests for these files by doing part of the
work (specifically, the file I/O) for serving the file when the server is
started rather than during each request.

Notice: You cannot use this for speeding up CGI programs or other files
which are served by special content handlers. It can only be used for
regular files which are usually served by the Apache core content handler.

This module is an extension of and borrows heavily from the mod_mmap_static
module in Apache 1.3.

%files mod_file_cache
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/020_mod_file_cache.conf
%attr(0755,root,root) %{_libdir}/apache/mod_file_cache.so

#----------------------------------------------------------------------------

%package mod_cache
Summary:	RFC 2616 compliant HTTP caching filter
Group:		System/Servers
Recommends:	apache-mod_cache_disk

%description mod_cache
This module should be used with care, as when the CacheQuickHandler
directive is in its default value of on, the Allow and Deny directives
will be circumvented. You should not enable quick handler caching for any
content to which you wish to limit access by client host name, address or
environment variable.

mod_cache implements an RFC 2616 compliant HTTP content caching filter,
with support for the caching of content negotiated responses containing
the Vary header.

RFC 2616 compliant caching provides a mechanism to verify whether stale or
expired content is still fresh, and can represent a significant performance
boost when the origin server supports conditional requests by honouring
the If-None-Match HTTP request header. Content is only regenerated from
scratch when the content has changed, and not when the cached entry expires.

As a filter, mod_cache can be placed in front of content originating from
any handler, including flat files (served from a slow disk cached on a fast
disk), the output of a CGI script or dynamic content generator, or content
proxied from another server.

In the default configuration, mod_cache inserts the caching filter as far
forward as possible within the filter stack, utilising the quick handler to
bypass all per request processing when returning content to the client. In
this mode of operation, mod_cache may be thought of as a caching proxy
server bolted to the front of the webserver, while running within the
webserver itself.

When the quick handler is switched off using the CacheQuickHandler directive,
it becomes possible to insert the CACHE filter at a point in the filter
stack chosen by the administrator. This provides the opportunity to cache
content before that content is personalised by the mod_include filter,
or optionally compressed by the mod_deflate filter.

Under normal operation, mod_cache will respond to and can be controlled by
the Cache-Control and Pragma headers sent from a client in a request, or from
a server within a response. Under exceptional circumstances, mod_cache can
be configured to override these headers and force site specific behaviour,
however such behaviour will be limited to this cache only, and will not
affect the operation of other caches that may exist between the client and
server, and as a result is not recommended unless strictly necessary.

RFC 2616 allows for the cache to return stale data while the existing
stale entry is refreshed from the origin server, and this is supported
by mod_cache when the CacheLock directive is suitably configured. Such
responses will contain a Warning HTTP header with a 110 response code.
RFC 2616 also allows a cache to return stale data when the attempt made to
refresh the stale data returns an error 500 or above, and this behaviour
is supported by default by mod_cache. Such responses will contain a Warning
HTTP header with a 111 response code.

mod_cache requires the services of one or more storage management modules. One
storage management module is included in the base Apache distribution:

mod_cache_disk
 Implements a disk based storage manager. Headers and bodies are stored
 separately on disk, in a directory structure derived from the md5 hash of the
 cached URL. Multiple content negotiated responses can be stored concurrently,
 however the caching of partial content is not supported by this module. The
 htcacheclean tool is provided to list cached URLs, remove cached URLs,
 or to maintain the size of the disk cache within size and inode limits.

Further details, discussion, and examples, are provided in the Caching Guide.

%files mod_cache
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/021_mod_cache.conf
%attr(0755,root,root) %{_libdir}/apache/mod_cache.so

#----------------------------------------------------------------------------

%package mod_cache_disk
Summary:	Disk based storage module for the HTTP caching filter
Group:		System/Servers
Recommends:	apache-htcacheclean = %{EVRD}

%description mod_cache_disk
mod_cache_disk implements a disk based storage manager for mod_cache.

The headers and bodies of cached responses are stored separately on disk,
in a directory structure derived from the md5 hash of the cached URL.

Multiple content negotiated responses can be stored concurrently, however
the caching of partial content is not yet supported by this module.

Atomic cache updates to both header and body files are achieved without
the need for locking by storing the device and inode numbers of the body
file within the header file. This has the side effect that cache entries
manually moved into the cache will be ignored.

The htcacheclean tool is provided to list cached URLs, remove cached URLs,
or to maintain the size of the disk cache within size and/or inode limits. The
tool can be run on demand, or can be daemonized to offer continuous monitoring
of directory sizes.

%files mod_cache_disk
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/022_mod_cache_disk.conf
%attr(0755,root,root) %{_libdir}/apache/mod_cache_disk.so

#----------------------------------------------------------------------------

%package mod_cache_socache
Summary:	Shared Object cache module for HTTPD
Group:		System/Servers

%description mod_cache_socache
mod_cache_socache implements a shared object cache (socache) based storage
manager for mod_cache.

The headers and bodies of cached responses are combined, and stored underneath
a single key in the shared object cache. A number of implementations of shared
object caches are available to choose from.

Multiple content negotiated responses can be stored concurrently, however the
caching of partial content is not yet supported by this module.

%files mod_cache_socache
%attr(0755,root,root) %{_libdir}/apache/mod_cache_socache.so

#----------------------------------------------------------------------------

%package mod_socache_shmcb
Summary:	shmcb based shared object cache provider
Group:		System/Servers

%description mod_socache_shmcb
mod_socache_shmcb is a shared object cache provider which provides for
creation and access to a cache backed by a high-performance cyclic buffer
inside a shared memory segment.

shmcb:/path/to/datafile(512000)

Details of other shared object cache providers can be found here.

%files mod_socache_shmcb
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/023_mod_socache_shmcb.conf
%attr(0755,root,root) %{_libdir}/apache/mod_socache_shmcb.so

#----------------------------------------------------------------------------

%package mod_socache_dbm
Summary:	DBM based shared object cache provider
Group:		System/Servers

%description mod_socache_dbm
mod_socache_dbm is a shared object cache provider which provides for creation
and access to a cache backed by a DBM database.

dbm:/path/to/datafile

Details of other shared object cache providers can be found here.

%files mod_socache_dbm
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/024_mod_socache_dbm.conf
%attr(0755,root,root) %{_libdir}/apache/mod_socache_dbm.so

#----------------------------------------------------------------------------

%package mod_socache_memcache
Summary:	Memcache based shared object cache provider
Group:		System/Servers

%description mod_socache_memcache
mod_socache_memcache is a shared object cache provider which provides for
creation and access to a cache backed by the memcached high-performance,
distributed memory object caching system.

Details of other shared object cache providers can be found here.

%files mod_socache_memcache
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/025_mod_socache_memcache.conf
%attr(0755,root,root) %{_libdir}/apache/mod_socache_memcache.so

#----------------------------------------------------------------------------

%package mod_socache_redis
Summary:	Redis based shared object cache provider
Group:		System/Servers

%description mod_socache_redis
mod_socache_redis is a shared object cache provider which provides
for creation and access to a cache backed by the Redis
high-performance, distributed memory object caching system.

This shared object cache provider's "create" method requires a comma
separated list of memcached host/port specifications. If using this
provider via another modules configuration (such as SSLSessionCache),
provide the list of servers as the optional "arg" parameter.

%files mod_socache_redis
%attr(0755,root,root) %{_libdir}/apache/mod_socache_redis.so

#----------------------------------------------------------------------------

%package mod_watchdog
Summary:	provides infrastructure for other modules to periodically run tasks
Group:		System/Servers

%description mod_watchdog
mod_watchdog defines programmatic hooks for other modules to periodically run
tasks. These modules can register handlers for mod_watchdog hooks. Currently,
the following modules in the Apache distribution use this functionality:

 * mod_heartbeat

 * mod_heartmonitor

To allow a module to use mod_watchdog functionality, mod_watchdog itself
must be statically linked to the server core or, if a dynamic module,
be loaded before the calling module.

%files mod_watchdog
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/026_mod_watchdog.conf
%attr(0755,root,root) %{_libdir}/apache/mod_watchdog.so

#----------------------------------------------------------------------------

%package mod_dbd
Summary:	Manages SQL database connections
Group:		System/Servers
Requires:	apr-util-dbd-ldap
# no longer supported
#Recommends:	apr-util-dbd-freetds
Recommends:	apr-util-dbd-mysql
Recommends:	apr-util-dbd-odbc
Recommends:	apr-util-dbd-pgsql
Recommends:	apr-util-dbd-sqlite3

%description mod_dbd
mod_dbd manages SQL database connections using APR. It provides database
connections on request to modules requiring SQL database functions, and
takes care of managing databases with optimal efficiency and scalability
for both threaded and non-threaded MPMs. For details, see the APR website
and this overview of the Apache DBD Framework by its original developer.

%files mod_dbd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/027_mod_dbd.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dbd.so

#----------------------------------------------------------------------------

%package mod_bucketeer
Summary:	Buckets manipulation filter
Group:		System/Servers

%description mod_bucketeer
Buckets manipulation filter.

%files mod_bucketeer
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/028_mod_bucketeer.conf
%attr(0755,root,root) %{_libdir}/apache/mod_bucketeer.so

#----------------------------------------------------------------------------

%package mod_dumpio
Summary:	Dumps all I/O to error log as desired
Group:		System/Servers

%description mod_dumpio
mod_dumpio allows for the logging of all input received by Apache and/or
all output sent by Apache to be logged (dumped) to the error.log file.

The data logging is done right after SSL decoding (for input) and right
before SSL encoding (for output). As can be expected, this can produce
extreme volumes of data, and should only be used when debugging problems.

%files mod_dumpio
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/029_mod_dumpio.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dumpio.so

#----------------------------------------------------------------------------

%package mod_echo
Summary:	A simple echo server to illustrate protocol modules
Group:		System/Servers

%description mod_echo
This module provides an example protocol module to illustrate the concept. It
provides a simple echo server. Telnet to it and type stuff, and it will
echo it.

%files mod_echo
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/030_mod_echo.conf
%attr(0755,root,root) %{_libdir}/apache/mod_echo.so

#----------------------------------------------------------------------------

%package mod_case_filter
Summary:	CaseFilter module
Group:		System/Servers

%description mod_case_filter
CaseFilter module.

%files mod_case_filter
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/031_mod_case_filter.conf
%attr(0755,root,root) %{_libdir}/apache/mod_case_filter.so

#----------------------------------------------------------------------------

%package mod_case_filter_in
Summary:	CaseFilterInFilter module
Group:		System/Servers

%description mod_case_filter_in
CaseFilterInFilter module.

%files mod_case_filter_in
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/032_mod_case_filter_in.conf
%attr(0755,root,root) %{_libdir}/apache/mod_case_filter_in.so

#----------------------------------------------------------------------------

%package mod_buffer
Summary:	Support for request buffering
Group:		System/Servers

%description mod_buffer
This module provides the ability to buffer the input and output filter stacks.

Under certain circumstances, content generators might create content in small
chunks. In order to promote memory reuse, in memory chunks are always 8k in
size, regardless of the size of the chunk itself. When many small chunks are
generated by a request, this can create a large memory footprint while the
request is being processed, and an unnecessarily large amount of data on
the wire. The addition of a buffer collapses the response into the fewest
chunks possible.

When httpd is used in front of an expensive content generator, buffering the
response may allow the backend to complete processing and release resources
sooner, depending on how the backend is designed.

The buffer filter may be added to either the input or the output filter
stacks, as appropriate, using the SetInputFilter, SetOutputFilter,
AddOutputFilter or AddOutputFilterByType directives.

Using buffer with mod_include

AddOutputFilterByType INCLUDES;BUFFER text/html The buffer filters read the
request/response into RAM and then repack the request/response into the fewest
memory buckets possible, at the cost of CPU time. When the request/response
is already efficiently packed, buffering the request/response could cause
the request/response to be slower than not using a buffer at all. These
filters should be used with care, and only where necessary.

%files mod_buffer
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/033_mod_buffer.conf
%attr(0755,root,root) %{_libdir}/apache/mod_buffer.so

#----------------------------------------------------------------------------

%package mod_data
Summary:	Convert response body into an RFC2397 data URL
Group:		System/Servers

%description mod_data
This module provides the ability to convert a response into an RFC2397
data URL.

Data URLs can be embedded inline within web pages using something like
the mod_include module, to remove the need for clients to make separate
connections to fetch what may potentially be many small images. Data URLs
may also be included into pages generated by scripting languages such as PHP.

An example of a data URL

data:image/gif;base64,R0lGODdhMAAwAPAAAAAAAP///ywAAAAAMAAw
AAAC8IyPqcvt3wCcDkiLc7C0qwyGHhSWpjQu5yqmCYsapyuvUUlvONmOZtfzgFz
ByTB10QgxOR0TqBQejhRNzOfkVJ+5YiUqrXF5Y5lKh/DeuNcP5yLWGsEbtLiOSp
a/TPg7JpJHxyendzWTBfX0cxOnKPjgBzi4diinWGdkF8kjdfnycQZXZeYGejmJl
ZeGl9i2icVqaNVailT6F5iJ90m6mvuTS4OK05M0vDk0Q4XUtwvKOzrcd3iq9uis
F81M1OIcR7lEewwcLp7tuNNkM3uNna3F2JQFo97Vriy/Xl4/f1cf5VWzXyym7PH
hhx4dbgYKAAA7

The filter takes no parameters, and can be added to the filter stack using
the SetOutputFilter directive, or any of the directives supported by the
mod_filter module.

Configuring the filter

<Location /data/images>
SetOutputFilter DATA </Location>

%files mod_data
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/034_mod_data.conf
%attr(0755,root,root) %{_libdir}/apache/mod_data.so

#----------------------------------------------------------------------------

%package mod_ratelimit
Summary:	Bandwidth Rate Limiting for Clients
Group:		System/Servers

%description mod_ratelimit
Provides a filter named RATE_LIMIT to limit client bandwidth. The connection
speed to be simulated is specified, in KiB/s, using the environment variable
rate-limit.

%files mod_ratelimit
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/035_mod_ratelimit.conf
%attr(0755,root,root) %{_libdir}/apache/mod_ratelimit.so

#----------------------------------------------------------------------------

%package mod_reqtimeout
Summary:	Set timeout and minimum data rate for receiving requests
Group:		System/Servers

%description mod_reqtimeout
This module allows to set timeouts for the reading request and reading body
phases. It is implemented as an input connection filter that sets the socket
timeout so that the total request time does not exceed the timeout value.

mod_reqtimeout can be used to mitigate slowloris type attacks.

%files mod_reqtimeout
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/036_mod_reqtimeout.conf
%attr(0755,root,root) %{_libdir}/apache/mod_reqtimeout.so

#----------------------------------------------------------------------------

%package mod_ext_filter
Summary:	Pass the response body through an external program before delivery
Group:		System/Servers

%description mod_ext_filter
mod_ext_filter presents a simple and familiar programming model for
filters. With this module, a program which reads from stdin and writes to
stdout (i.e., a Unix-style filter command) can be a filter for Apache. This
filtering mechanism is much slower than using a filter which is specially
written for the Apache API and runs inside of the Apache server process,
but it does have the following benefits: * the programming model is much
simpler * any programming/scripting language can be used, provided that it
 allows the program to read from standard input and write to standard output
* existing programs can be used unmodified as Apache filters

Even when the performance characteristics are not suitable for production
use, mod_ext_filter can be used as a prototype environment for filters.

%files mod_ext_filter
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/037_mod_ext_filter.conf
%attr(0755,root,root) %{_libdir}/apache/mod_ext_filter.so

#----------------------------------------------------------------------------

%package mod_request
Summary:	Filters to handle and make available HTTP request bodies
Group:		System/Servers

%description mod_request
Under normal circumstances, request handlers such as the default handler
for static files will discard the request body when it is not needed by
the request handler. As a result, filters such as mod_include are limited
to making GET requests only when including other URLs as subrequests, even
if the original request was a POST request, as the discarded request body
is no longer available once filter processing is taking place.

When this directive has a value greater than zero, request handlers that
would otherwise discard request bodies will instead set the request body
aside for use by filters up to the maximum size specified. In the case of the
mod_include filter, an attempt to POST a request to the static shtml file will
cause any subrequests to be POST requests, instead of GET requests as before.

This feature makes it possible to break up complex web pages and web
applications into small individual components, and combine the components
and the surrounding web page structure together using mod_include. The
components can take the form of CGI programs, scripted languages, or URLs
reverse proxied into the URL space from another server using mod_proxy.

Note: Each request set aside has to be set aside in temporary RAM until the
request is complete. As a result, care should be taken to ensure sufficient
RAM is available on the server to support the intended load. Use of this
directive should be limited to where needed on targeted parts of your URL
space, and with the lowest possible value that is still big enough to hold
a request body.

If the request size sent by the client exceeds the maximum size allocated
by this directive, the server will return 413 Request Entity Too Large.

%files mod_request
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/038_mod_request.conf
%attr(0755,root,root) %{_libdir}/apache/mod_request.so

#----------------------------------------------------------------------------

%package mod_include
Summary:	Server-parsed html documents (Server Side Includes)
Group:		System/Servers

%description mod_include
This module provides a filter which will process files before they are
sent to the client. The processing is controlled by specially formatted
SGML comments, referred to as elements. These elements allow conditional
text, the inclusion of other files or programs, as well as the setting and
printing of environment variables.

%files mod_include
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/039_mod_include.conf
%attr(0755,root,root) %{_libdir}/apache/mod_include.so

#----------------------------------------------------------------------------

%package mod_filter
Summary:	Context-sensitive smart filter configuration module
Group:		System/Servers

%description mod_filter
This module enables smart, context-sensitive configuration of output
content filters. For example, apache can be configured to process different
content-types through different filters, even when the content-type is not
known in advance (e.g. in a proxy).

mod_filter works by introducing indirection into the filter chain.  Instead of
inserting filters in the chain, we insert a filter harness which in turn
dispatches conditionally to a filter provider. Any content filter may be
used as a provider to mod_filter; no change to existing filter modules is
required (although it may be possible to simplify them).

%files mod_filter
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/040_mod_filter.conf
%attr(0755,root,root) %{_libdir}/apache/mod_filter.so

#----------------------------------------------------------------------------

%package mod_reflector
Summary:	Reflect a request body as a response via the output filter stack
Group:		System/Servers

%description mod_reflector
This module allows request bodies to be reflected back to the client,
in the process passing the request through the output filter stack. A
suitably configured chain of filters can be used to transform the request
into a response. This module can be used to turn an output filter into an
HTTP service.

%files mod_reflector
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/041_mod_reflector.conf
%attr(0755,root,root) %{_libdir}/apache/mod_reflector.so

#----------------------------------------------------------------------------

%package mod_substitute
Summary:	Perform search and replace operations on response bodies
Group:		System/Servers

%description mod_substitute
mod_substitute provides a mechanism to perform both regular expression and
fixed string substitutions on response bodies.

%files mod_substitute
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/042_mod_substitute.conf
%attr(0755,root,root) %{_libdir}/apache/mod_substitute.so

#----------------------------------------------------------------------------

%package mod_sed
Summary:	Filter Input (request) and Output (response) content using sed syntax
Group:		System/Servers

%description mod_sed
mod_sed is an in-process content filter. The mod_sed filter implements the
sed editing commands implemented by the Solaris 10 sed program as described
in the manual page. However, unlike sed, mod_sed doesn't take data from
standard input. Instead, the filter acts on the entity data sent between
client and server. mod_sed can be used as an input or output filter. mod_sed
is a content filter, which means that it cannot be used to modify client
or server http headers.

The mod_sed output filter accepts a chunk of data, executes the sed scripts
on the data, and generates the output which is passed to the next filter
in the chain.

The mod_sed input filter reads the data from the next filter in the chain,
executes the sed scripts, and returns the generated data to the caller
filter in the filter chain.

Both the input and output filters only process the data if newline characters
are seen in the content. At the end of the data, the rest of the data is
treated as the last line.

A tutorial article on mod_sed, and why it is more powerful than simple string
or regular expression search and replace, is available on the author's blog.

%files mod_sed
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/043_mod_sed.conf
%attr(0755,root,root) %{_libdir}/apache/mod_sed.so

#----------------------------------------------------------------------------

%package mod_charset_lite
Summary:	Specify character set translation or recoding
Group:		System/Servers

%description mod_charset_lite
mod_charset_lite allows the server to change the character set of responses
before sending them to the client. In an EBCDIC environment, Apache always
translates HTTP protocol content (e.g. response headers) from the code page of
the Apache process locale to ISO-8859-1, but not the body of responses. In
any environment, mod_charset_lite can be used to specify that response
bodies should be translated. For example, if files are stored in EBCDIC,
then mod_charset_lite can translate them to ISO-8859-1 before sending them
to the client.

This module provides a small subset of configuration mechanisms implemented
by Russian Apache and its associated mod_charset.

%files mod_charset_lite
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/044_mod_charset_lite.conf
%attr(0755,root,root) %{_libdir}/apache/mod_charset_lite.so

#----------------------------------------------------------------------------

%package mod_deflate
Summary:	Compress content before it is delivered to the client
Group:		System/Servers

%description mod_deflate
The mod_deflate module provides the DEFLATE output filter that allows
output from your server to be compressed before being sent to the client
over the network.

%files mod_deflate
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/045_mod_deflate.conf
%attr(0755,root,root) %{_libdir}/apache/mod_deflate.so

#----------------------------------------------------------------------------

%package mod_macro
Summary:	Macro support inside Apache httpd runtime configuration files
Group:		System/Servers

%description mod_macro
This modules provides macros within apache httpd runtime configuration files.
These macros may have parameters. They are expanded when used (parameters
are substituted by their values given as an argument), and the result is
processed normally.

%files mod_macro
%attr(0755,root,root) %{_libdir}/apache/mod_macro.so

#----------------------------------------------------------------------------

%package mod_xml2enc
Summary:	Enhanced charset/internationalisation support for libxml2-based filter modules
Group:		System/Servers

%description mod_xml2enc
This module provides enhanced internationalisation support for markup-aware
filter modules such as mod_proxy_html. It can automatically detect the
encoding of input data and ensure they are correctly processed by the
libxml2 parser, including converting to Unicode (UTF-8) where necessary. It
can also convert data to an encoding of choice after markup processing, and
will ensure the correct charset value is set in the HTTP Content-Type header.

%files mod_xml2enc
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/046_mod_xml2enc.conf
%attr(0755,root,root) %{_libdir}/apache/mod_xml2enc.so

#----------------------------------------------------------------------------

%package mod_proxy_html
Summary:	Rewrite HTML links in to ensure they are addressable in a proxy context
Group:		System/Servers

%description mod_proxy_html
This module provides an output filter to rewrite HTML links in a proxy
situation, to ensure that links work for users outside the proxy. It serves
the same purpose as Apache's ProxyPassReverse directive does for HTTP headers,
and is an essential component of a reverse proxy.

For example, if a company has an application server at appserver.example.com
that is only visible from within the company's internal network, and a
public webserver www.example.com, they may wish to provide a gateway to
the application server at http://www.example.com/appserver/. When the
application server links to itself, those links need to be rewritten
to work through the gateway.  mod_proxy_html serves to rewrite <a
href="http://appserver.example.com/foo/bar.html">foobar</a> to <a
href="http://www.example.com/appserver/foo/bar.html">foobar</a> making it
accessible from outside.

mod_proxy_html was originally developed at WebÞing, whose extensive
documentation may be useful to users.

%files mod_proxy_html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/proxy-html.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/proxy-html.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/047_mod_proxy_html.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_html.so

#----------------------------------------------------------------------------

%package mod_proxy_uwsgi
Summary:	uWSGI - Apache2 proxy module
Group:		System/Servers

%description mod_proxy_uwsgi
Fully Apache API compliant proxy module

%files mod_proxy_uwsgi
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_uwsgi.so

#----------------------------------------------------------------------------

%package mod_proxy_wstunnel
Summary:	WebSockets support for mod_proxy
Group:		System/Servers

%description mod_proxy_wstunnel
This module requires the service of mod_proxy. It provides support
for the tunnelling of web socket connections to a backend websockets
server. The connection is automagically upgraded to a websocket
connection.

%files mod_proxy_wstunnel
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_wstunnel.so

#----------------------------------------------------------------------------

%package mod_mime
Summary:	Associates the requested filename's extensions with the
Group:		System/Servers

%description mod_mime
This module is used to assign content metadata to the content selected
for an HTTP response by mapping patterns in the URI or filenames to the
metadata values. For example, the filename extensions of content files
often define the content's Internet media type, language, character set,
and content-encoding. This information is sent in HTTP messages containing
that content and used in content negotiation when selecting alternatives,
such that the user's preferences are respected when choosing one of several
possible contents to serve. See mod_negotiation for more information about
content negotiation.

The directives AddCharset, AddEncoding, AddLanguage and AddType are all used
to map file extensions onto the metadata for that file.  Respectively they
set the character set, content-encoding, content-language, and media-type
(content-type) of documents. The directive TypesConfig is used to specify
a file which also maps extensions onto media types.

In addition, mod_mime may define the handler and filters that originate
and process content. The directives AddHandler, AddOutputFilter, and
AddInputFilter control the modules or scripts that serve the document.
The MultiviewsMatch directive allows mod_negotiation to consider these file
extensions to be included when testing Multiviews matches.

While mod_mime associates metadata with filename extensions, the core
server provides directives that are used to associate all the files in a
given container (e.g., <Location>, <Directory>, or <Files>) with particular
metadata. These directives include ForceType, SetHandler, SetInputFilter,
and SetOutputFilter. The core directives override any filename extension
mappings defined in mod_mime.

Note that changing the metadata for a file does not change the value of the
Last-Modified header. Thus, previously cached copies may still be used by
a client or proxy, with the previous headers. If you change the metadata
(language, content type, character set or encoding) you may need to 'touch'
affected files (updating their last modified date) to ensure that all
visitors are receive the corrected content headers.

%files mod_mime
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/048_mod_mime.conf
%attr(0755,root,root) %{_libdir}/apache/mod_mime.so

#----------------------------------------------------------------------------

%package mod_ldap
Summary:	LDAP connection pooling and result caching services
Group:		System/Servers
Requires:	apr-util-dbd-ldap
Requires:	apache-mod_authnz_ldap
Requires(post): rpm-helper
Requires(pre):	user(apache)

%description mod_ldap
This module was created to improve the performance of websites relying on
backend connections to LDAP servers. In addition to the functions provided
by the standard LDAP libraries, this module adds an LDAP connection pool
and an LDAP shared memory cache.

To enable this module, LDAP support must be compiled into apr-util.
This is achieved by adding the --with-ldap flag to the configure script
when building Apache.

SSL/TLS support is dependant on which LDAP toolkit has been linked to
APR. As of this writing, APR-util supports: OpenLDAP SDK (2.x or later),
Novell LDAP SDK, Mozilla LDAP SDK, native Solaris LDAP SDK (Mozilla based),
native Microsoft LDAP SDK, or the iPlanet (Netscape) SDK. See the APR
website for details.

%files mod_ldap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/049_mod_ldap.conf
%attr(0755,root,root) %{_libdir}/apache/mod_ldap.so
%attr(0600,apache,root) %ghost /var/cache/httpd/mod_ldap_cache

%post mod_ldap
%create_ghostfile /var/cache/httpd/mod_ldap_cache apache root 0600

#----------------------------------------------------------------------------

%package mod_log_config
Summary:	Logging of the requests made to the server
Group:		System/Servers

%description mod_log_config
This module provides for flexible logging of client requests. Logs are
written in a customizable format, and may be written directly to a file, or
to an external program. Conditional logging is provided so that individual
requests may be included or excluded from the logs based on characteristics
of the request.

Three directives are provided by this module: TransferLog to create a log
file, LogFormat to set a custom format, and CustomLog to define a log file
and format in one step. The TransferLog and CustomLog directives can be
used multiple times in each server to cause each request to be logged to
multiple files.

%files mod_log_config
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/050_mod_log_config.conf
%attr(0755,root,root) %{_libdir}/apache/mod_log_config.so

#----------------------------------------------------------------------------

%package mod_log_debug
Summary:	Additional configurable debug logging
Group:		System/Servers

%description mod_log_debug
Additional configurable debug logging.

%files mod_log_debug
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/051_mod_log_debug.conf
%attr(0755,root,root) %{_libdir}/apache/mod_log_debug.so

#----------------------------------------------------------------------------

%package mod_log_forensic
Summary:	Forensic Logging of the requests made to the server
Group:		System/Servers

%description mod_log_forensic
This module provides for forensic logging of client requests. Logging is
done before and after processing a request, so the forensic log contains
two log lines for each request. The forensic logger is very strict, which
means: * The format is fixed. You cannot modify the logging format at
 runtime.
* If it cannot write its data, the child process exits immediately
 and may dump core (depending on your CoreDumpDirectory configuration).

The check_forensic script, which can be found in the distribution's support
directory, may be helpful in evaluating the forensic log output.

%files mod_log_forensic
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/052_mod_log_forensic.conf
%attr(0755,root,root) %{_libdir}/apache/mod_log_forensic.so

#----------------------------------------------------------------------------

%package mod_logio
Summary:	Logging of input and output bytes per request
Group:		System/Servers

%description mod_logio
This module provides the logging of input and output number of bytes
received/sent per request. The numbers reflect the actual bytes as received
on the network, which then takes into account the headers and bodies of
requests and responses. The counting is done before SSL/TLS on input and
after SSL/TLS on output, so the numbers will correctly reflect any changes
made by encryption.

This module requires mod_log_config.  When KeepAlive connections are used with
SSL, the overhead of the SSL handshake is reflected in the byte count of the
first request on the connection. When per-directory SSL renegotiation occurs,
the bytes are associated with the request that triggered the renegotiation.

%files mod_logio
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/053_mod_logio.conf
%attr(0755,root,root) %{_libdir}/apache/mod_logio.so

#----------------------------------------------------------------------------

%package mod_lua
Summary:	Provides Lua hooks into various portions of the httpd request processing
Group:		System/Servers

%description mod_lua
This module allows the server to be extended with scripts written in the Lua
programming language. The extension points (hooks) available with mod_lua
include many of the hooks available to natively compiled Apache HTTP Server
modules, such as mapping requests to files, generating dynamic responses,
access control, authentication, and authorization

More information on the Lua programming language can be found at the the Lua
website.  mod_lua is still in experimental state. Until it is declared stable,
usage and behavior may change at any time, even between stable releases of
the 2.4.x series. Be sure to check the CHANGES file before upgrading.

%files mod_lua
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/054_mod_lua.conf
%attr(0755,root,root) %{_libdir}/apache/mod_lua.so

#----------------------------------------------------------------------------

%package mod_env
Summary:	Modifies the environment which is passed to CGI scripts and SSI pages
Group:		System/Servers

%description mod_env
This module allows for control of internal environment variables that are
used by various Apache HTTP Server modules. These variables are also provided
to CGI scripts as native system environment variables, and available for
use in SSI pages. Environment variables may be passed from the shell which
invoked the httpd process. Alternatively, environment variables may be set
or unset within the configuration process.

%files mod_env
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/055_mod_env.conf
%attr(0755,root,root) %{_libdir}/apache/mod_env.so

#----------------------------------------------------------------------------

%package mod_mime_magic
Summary:	Determines the MIME type of a file by looking at a few bytes of its contents
Group:		System/Servers

%description mod_mime_magic
This module determines the MIME type of files in the same way the Unix
file(1) command works: it looks at the first few bytes of the file. It is
intended as a "second line of defense" for cases that mod_mime can't resolve.

This module is derived from a free version of the file(1) command for Unix,
which uses "magic numbers" and other hints from a file's contents to figure
out what the contents are. This module is active only if the magic file is
specified by the MimeMagicFile directive.

%files mod_mime_magic
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/056_mod_mime_magic.conf
%attr(0755,root,root) %{_libdir}/apache/mod_mime_magic.so

#----------------------------------------------------------------------------

%package mod_cern_meta
Summary:	CERN httpd metafile semantics
Group:		System/Servers

%description mod_cern_meta
Emulate the CERN HTTPD Meta file semantics. Meta files are HTTP headers
that can be output in addition to the normal range of headers for each
file accessed. They appear rather like the Apache .asis files, and are
able to provide a crude way of influencing the Expires: header, as well as
providing other curiosities. There are many ways to manage meta information,
this one was chosen because there is already a large number of CERN users
who can exploit this module.

More information on the CERN metafile semantics is available.

%files mod_cern_meta
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/057_mod_cern_meta.conf
%attr(0755,root,root) %{_libdir}/apache/mod_cern_meta.so

#----------------------------------------------------------------------------

%package mod_expires
Summary:	Generation of Expires and Cache-Control HTTP headers
Group:		System/Servers

%description mod_expires
This module controls the setting of the Expires HTTP header and the
max-age directive of the Cache-Control HTTP header in server responses.
The expiration date can set to be relative to either the time the source
file was last modified, or to the time of the client access.

These HTTP headers are an instruction to the client about the document's
validity and persistence. If cached, the document may be fetched from the
cache rather than from the source until this time has passed. After that,
the cache copy is considered "expired" and invalid, and a new copy must be
obtained from the source.

To modify Cache-Control directives other than max-age (see RFC 2616 section
14.9), you can use the Header directive.

When the Expires header is already part of the response generated by the
server, for example when generated by a CGI script or proxied from an origin
server, this module does not change or add an Expires or Cache-Control header.

%files mod_expires
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/058_mod_expires.conf
%attr(0755,root,root) %{_libdir}/apache/mod_expires.so

#----------------------------------------------------------------------------

%package mod_headers
Summary:	Customization of HTTP request and response headers
Group:		System/Servers

%description mod_headers
This module provides directives to control and modify HTTP request and
response headers. Headers can be merged, replaced or removed.

%files mod_headers
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/059_mod_headers.conf
%attr(0755,root,root) %{_libdir}/apache/mod_headers.so

#----------------------------------------------------------------------------

%package mod_ident
Summary:	RFC 1413 ident lookups
Group:		System/Servers

%description mod_ident
This module queries an RFC 1413 compatible daemon on a remote host to look
up the owner of a connection.

%files mod_ident
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/060_mod_ident.conf
%attr(0755,root,root) %{_libdir}/apache/mod_ident.so

#----------------------------------------------------------------------------

%package mod_usertrack
Summary:	Clickstream logging of user activity on a site
Group:		System/Servers

%description mod_usertrack
Provides tracking of a user through your website via browser cookies.

%files mod_usertrack
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/061_mod_usertrack.conf
%attr(0755,root,root) %{_libdir}/apache/mod_usertrack.so

#----------------------------------------------------------------------------

%package mod_unique_id
Summary:	Provides an environment variable with a unique identifier for each request
Group:		System/Servers

%description mod_unique_id
This module provides a magic token for each request which is guaranteed
to be unique across "all" requests under very specific conditions. The
unique identifier is even unique across multiple machines in a properly
configured cluster of machines. The environment variable UNIQUE_ID is set to
the identifier for each request. Unique identifiers are useful for various
reasons which are beyond the scope of this document.

%files mod_unique_id
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/062_mod_unique_id.conf
%attr(0755,root,root) %{_libdir}/apache/mod_unique_id.so

#----------------------------------------------------------------------------

%package mod_setenvif
Summary:	Set the environment variables based on characteristics of the request
Group:		System/Servers

%description mod_setenvif
The mod_setenvif module allows you to set internal environment variables
according to whether different aspects of the request match regular
expressions you specify. These environment variables can be used by other
parts of the server to make decisions about actions to be taken, as well
as becoming available to CGI scripts and SSI pages.

The directives are considered in the order they appear in the configuration
files. So more complex sequences can be used, such as this example, which
sets netscape if the browser is mozilla but not MSIE.

BrowserMatch ^Mozilla netscape BrowserMatch MSIE !netscape

%files mod_setenvif
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/063_mod_setenvif.conf
%attr(0755,root,root) %{_libdir}/apache/mod_setenvif.so

#----------------------------------------------------------------------------

%package mod_version
Summary:	Version dependent configuration
Group:		System/Servers

%description mod_version
This module is designed for the use in test suites and large networks which
have to deal with different httpd versions and different configurations. It
provides a new container -- <IfVersion>, which allows a flexible version
checking including numeric comparisons and regular expressions.

%files mod_version
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/064_mod_version.conf
%attr(0755,root,root) %{_libdir}/apache/mod_version.so

#----------------------------------------------------------------------------

%package mod_remoteip
Summary:	Replaces the original client IP address with the useragent IP address
Group:		System/Servers

%description mod_remoteip
This module is used to treat the useragent which initiated the request
as the originating useragent as identified by httpd for the purposes of
authorization and logging, even where that useragent is behind a load
balancer, front end server, or proxy server.

The module overrides the client IP address for the connection with the
useragent IP address reported in the request header configured with the
RemoteIPHeader directive.

Once replaced as instructed, this overridden useragent IP address is then used
for the mod_authz_host <Require ip> feature, is reported by mod_status, and
is recorded by mod_log_config \%a and core \%a format strings. The underlying
client IP of the connection is available in the \%{c}a format string.  It is
critical to only enable this behavior from intermediate hosts (proxies,
etc) which are trusted by this server, since it is trivial for the remote
useragent to impersonate another useragent.

%files mod_remoteip
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/065_mod_remoteip.conf
%attr(0755,root,root) %{_libdir}/apache/mod_remoteip.so

#----------------------------------------------------------------------------

%package mod_proxy
Summary:	Multi-protocol proxy/gateway server
Group:		System/Servers
Recommends:	apache-mod_proxy_connect
Recommends:	apache-mod_proxy_ftp
Recommends:	apache-mod_proxy_http
Recommends:	apache-mod_proxy_balancer
Recommends:	apache-mod_proxy_uwsgi
Requires(pre):	user(apache)

%description mod_proxy
Do not enable proxying with ProxyRequests until you have secured your
server. Open proxy servers are dangerous both to your network and to the
Internet at large.

mod_proxy and related modules implement a proxy/gateway for Apache HTTP
Server, supporting a number of popular protocols as well as several different
load balancing algorithms. Third-party modules can add support for additional
protocols and load balancing algorithms.

A set of modules must be loaded into the server to provide the necessary
features. These modules can be included statically at build time
or dynamically via the LoadModule directive). The set must include: *
mod_proxy, which provides basic proxy capabilities * mod_proxy_balancer
and one or more balancer modules, if load
 balancing is required. (See mod_proxy_balancer for more information.)
* one or more proxy scheme, or protocol, modules:

 Protocol Module AJP13 (Apache JServe Protocol version 1.3) mod_proxy_ajp
 CONNECT (for SSL) mod_proxy_connect FastCGI mod_proxy_fcgi ftp mod_proxy_ftp
 HTTP/0.9, HTTP/1.0, and HTTP/1.1 mod_proxy_http SCGI mod_proxy_scgi

In addition, extended features are provided by other modules. Caching is
provided by mod_cache and related modules. The ability to contact remote
servers using the SSL/TLS protocol is provided by the SSLProxy* directives
of mod_ssl. These additional modules will need to be loaded and configured
to take advantage of these features.

%files mod_proxy
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/066_mod_proxy.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy.so
%attr(0770,apache,root) %dir /var/cache/httpd/mod_proxy

#----------------------------------------------------------------------------

%package mod_proxy_connect
Summary:	mod_proxy extension for CONNECT request handling
Group:		System/Servers

%description mod_proxy_connect
This module requires the service of mod_proxy. It provides support for
the CONNECT HTTP method. This method is mainly used to tunnel SSL requests
through proxy servers.

Thus, in order to get the ability of handling CONNECT requests, mod_proxy
and mod_proxy_connect have to be present in the server.

CONNECT is also used, when the server needs to send an HTTPS request through
a forward proxy. In this case the server acts as a CONNECT client. This
functionality is part of mod_proxy and mod_proxy_connect is not needed in
this case.

Do not enable proxying until you have secured your server. Open proxy
servers are dangerous both to your network and to the Internet at large.

%files mod_proxy_connect
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/067_mod_proxy_connect.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_connect.so

#----------------------------------------------------------------------------

%package mod_proxy_ftp
Summary:	FTP support module for mod_proxy
Group:		System/Servers

%description mod_proxy_ftp
This module requires the service of mod_proxy. It provides support for
the proxying FTP sites. Note that FTP support is currently limited to the
GET method.

Thus, in order to get the ability of handling FTP proxy requests, mod_proxy
and mod_proxy_ftp have to be present in the server.

Do not enable proxying until you have secured your server. Open proxy
servers are dangerous both to your network and to the Internet at large.

%files mod_proxy_ftp
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/068_mod_proxy_ftp.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_ftp.so

#----------------------------------------------------------------------------

%package mod_proxy_http
Summary:	HTTP support module for mod_proxy
Group:		System/Servers

%description mod_proxy_http
This module requires the service of mod_proxy. It provides the features used
for proxying HTTP and HTTPS requests. mod_proxy_http supports HTTP/0.9,
HTTP/1.0 and HTTP/1.1. It does not provide any caching abilities. If you
want to set up a caching proxy, you might want to use the additional service
of the mod_cache module.

Thus, in order to get the ability of handling HTTP proxy requests, mod_proxy
and mod_proxy_http have to be present in the server.

Do not enable proxying until you have secured your server. Open proxy
servers are dangerous both to your network and to the Internet at large.

%files mod_proxy_http
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/069_mod_proxy_http.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_http.so

#----------------------------------------------------------------------------

%package mod_proxy_fcgi
Summary:	FastCGI support module for mod_proxy
Group:		System/Servers

%description mod_proxy_fcgi
This module requires the service of mod_proxy. It provides support for the
FastCGI protocol.

Thus, in order to get the ability of handling the FastCGI protocol, mod_proxy
and mod_proxy_fcgi have to be present in the server.

Unlike mod_fcgid and mod_fastcgi, mod_proxy_fcgi has no provision for
starting the application process; fcgistarter is provided for that purpose.

Do not enable proxying until you have secured your server. Open proxy
servers are dangerous both to your network and to the Internet at large.

%files mod_proxy_fcgi
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/070_mod_proxy_fcgi.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_fcgi.so

#----------------------------------------------------------------------------

%package mod_proxy_scgi
Summary:	SCGI gateway module for mod_proxy
Group:		System/Servers

%description mod_proxy_scgi
This module requires the service of mod_proxy. It provides support for the
SCGI protocol, version 1.

Thus, in order to get the ability of handling the SCGI protocol, mod_proxy
and mod_proxy_scgi have to be present in the server.

Do not enable proxying until you have secured your server. Open proxy
servers are dangerous both to your network and to the Internet at large.

%files mod_proxy_scgi
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/071_mod_proxy_scgi.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_scgi.so

#----------------------------------------------------------------------------

%package mod_proxy_fdpass
Summary:	fdpass external process support module for mod_proxy
Group:		System/Servers

%description mod_proxy_fdpass
This module requires the service of mod_proxy. It provides support for the
passing the socket of the client to another process.

mod_proxy_fdpass uses the ability of AF_UNIX domain sockets to pass an open
file descriptor to allow another process to finish handling a request.

The module has a proxy_fdpass_flusher provider interface, which allows
another module to optionally send the response headers, or even the start of
the response body. The default flush provider disables keep-alive, and sends
the response headers, letting the external process just send a response body.

At this time the only data passed to the external process is the client
socket. To receive a client socket, call recvfrom with an allocated struct
cmsghdr. Future versions of this module may include more data after the
client socket, but this is not implemented at this time.

%files mod_proxy_fdpass
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/072_mod_proxy_fdpass.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_fdpass.so

#----------------------------------------------------------------------------

%package mod_proxy_hcheck
Summary:	Dynamic health checking of balancer members (workers)
Group:		System/Servers

%description mod_proxy_hcheck
This module provides for dynamic health checking of balancer members (workers).
This can be enabled on a worker-by-worker basis.
The health check is done independently of the actual reverse proxy requests.

%files mod_proxy_hcheck
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_hcheck.so

#----------------------------------------------------------------------------

%package mod_proxy_ajp
Summary:	AJP support module for mod_proxy
Group:		System/Servers

%description mod_proxy_ajp
This module requires the service of mod_proxy. It provides support for the
Apache JServ Protocol version 1.3 (hereafter AJP13).

Thus, in order to get the ability of handling AJP13 protocol, mod_proxy
and mod_proxy_ajp have to be present in the server.

Do not enable proxying until you have secured your server. Open proxy
servers are dangerous both to your network and to the Internet at large.

%files mod_proxy_ajp
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/073_mod_proxy_ajp.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_ajp.so

#----------------------------------------------------------------------------

%package mod_proxy_balancer
Summary:	mod_proxy extension for load balancing
Group:		System/Servers

%description mod_proxy_balancer
This module requires the service of mod_proxy. It provides load balancing
support for HTTP, FTP and AJP13 protocols

Load balancing scheduler algorithm is provided by not this module but
other modules such as: mod_lbmethod_byrequests, mod_lbmethod_bytraffic,
mod_lbmethod_bybusyness and mod_lbmethod_heartbeat.

Thus, in order to get the ability of load balancing, mod_proxy,
mod_proxy_balancer and at least one of load balancing scheduler algorithm
modules have to be present in the server.

Do not enable proxying until you have secured your server. Open proxy
servers are dangerous both to your network and to the Internet at large.

%files mod_proxy_balancer
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/074_mod_proxy_balancer.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_balancer.so

#----------------------------------------------------------------------------

%package mod_proxy_express
Summary:	Dynamic mass reverse proxy extension for mod_proxy
Group:		System/Servers

%description mod_proxy_express
This module creates dynamically configured mass reverse proxies, by mapping
the Host: header of the HTTP request to a server name and backend URL
stored in a DBM file. This allows for easy use of a huge number of reverse
proxies with no configuration changes. It is much less feature-full than
mod_proxy_balancer, which also provides dynamic growth, but is intended
to handle much, much larger numbers of backends. It is ideally suited as
a front-end HTTP switch.

This module requires the service of mod_proxy.

Do not enable proxying until you have secured your server. Open proxy
servers are dangerous both to your network and to the Internet at large.

Limitations

* This module is not intended to replace the dynamic capability of
 mod_proxy_balancer. Instead, it is intended to be mostly a lightweight
 and fast alternative to using mod_rewrite with RewriteMap and the [P]
 flag for mapped reverse proxying.
* It does not support regex or pattern matching at all.  * It emulates:
 ProxyPass / backend.server:port ProxyPassReverse / backend.server:port
 That is, the entire URL is appended to the mapped backend URL. This is in
 keeping with the intent of being a simple but fast reverse proxy switch.

%files mod_proxy_express
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/075_mod_proxy_express.conf
%attr(0755,root,root) %{_libdir}/apache/mod_proxy_express.so

#----------------------------------------------------------------------------

%package mod_session
Summary:	Session support
Group:		System/Servers

%description mod_session
The session modules make use of HTTP cookies, and as such can fall victim to
Cross Site Scripting attacks, or expose potentially private information to
clients. Please ensure that the relevant risks have been taken into account
before enabling the session functionality on your server.

This module provides support for a server wide per user session
interface. Sessions can be used for keeping track of whether a user has been
logged in, or for other per user information that should be kept available
across requests.

Sessions may be stored on the server, or may be stored on the browser.
Sessions may also be optionally encrypted for added security. These
features are divided into several modules in addition to mod_session;
mod_session_crypto, mod_session_cookie and mod_session_dbd. Depending on the
server requirements, load the appropriate modules into the server (either
statically at compile time or dynamically via the LoadModule directive).

Sessions may be manipulated from other modules that depend on the session,
or the session may be read from and written to using environment variables
and HTTP headers, as appropriate.

%files mod_session
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/076_mod_session.conf
%attr(0755,root,root) %{_libdir}/apache/mod_session.so

#----------------------------------------------------------------------------

%package mod_session_cookie
Summary:	Cookie based session support
Group:		System/Servers

%description mod_session_cookie
The session modules make use of HTTP cookies, and as such can fall victim to
Cross Site Scripting attacks, or expose potentially private information to
clients. Please ensure that the relevant risks have been taken into account
before enabling the session functionality on your server.

This submodule of mod_session provides support for the storage of user
sessions on the remote browser within HTTP cookies.

Using cookies to store a session removes the need for the server or a group
of servers to store the session locally, or collaborate to share a session,
and can be useful for high traffic environments where a server based session
might be too resource intensive.

If session privacy is required, the mod_session_crypto module can be used to
encrypt the contents of the session before writing the session to the client.

For more details on the session interface, see the documentation for the
mod_session module.

%files mod_session_cookie
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/077_mod_session_cookie.conf
%attr(0755,root,root) %{_libdir}/apache/mod_session_cookie.so

#----------------------------------------------------------------------------

%package mod_session_crypto
Summary:	Session encryption support
Group:		System/Servers

%description mod_session_crypto
The session modules make use of HTTP cookies, and as such can fall victim to
Cross Site Scripting attacks, or expose potentially private information to
clients. Please ensure that the relevant risks have been taken into account
before enabling the session functionality on your server.

This submodule of mod_session provides support for the encryption of user
sessions before being written to a local database, or written to a remote
browser via an HTTP cookie.

This can help provide privacy to user sessions where the contents of the
session should be kept private from the user, or where protection is needed
against the effects of cross site scripting attacks.

For more details on the session interface, see the documentation for the
mod_session module.

%files mod_session_crypto
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/078_mod_session_crypto.conf
%attr(0755,root,root) %{_libdir}/apache/mod_session_crypto.so

#----------------------------------------------------------------------------

%package mod_session_dbd
Summary:	DBD/SQL based session support
Group:		System/Servers

%description mod_session_dbd
The session modules make use of HTTP cookies, and as such can fall victim to
Cross Site Scripting attacks, or expose potentially private information to
clients. Please ensure that the relevant risks have been taken into account
before enabling the session functionality on your server.

This submodule of mod_session provides support for the storage of user
sessions within a SQL database using the mod_dbd module.

Sessions can either be anonymous, where the session is keyed by a unique
UUID string stored on the browser in a cookie, or per user, where the
session is keyed against the userid of the logged in user.

SQL based sessions are hidden from the browser, and so offer a measure of
privacy without the need for encryption.

Different webservers within a server farm may choose to share a database,
and so share sessions with one another.

For more details on the session interface, see the documentation for the
mod_session module.

%files mod_session_dbd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/079_mod_session_dbd.conf
%attr(0755,root,root) %{_libdir}/apache/mod_session_dbd.so

#----------------------------------------------------------------------------

%package mod_slotmem_shm
Summary:	Slot-based shared memory provider
Group:		System/Servers

%description mod_slotmem_shm
mod_slotmem_shm is a memory provider which provides for creation and access
to a shared memory segment in which the datasets are organized in "slots."

All shared memory is cleared and cleaned with each restart, whether graceful
or not. The data itself is stored and restored within a file noted by the
name parameter in the create and attach calls.

%files mod_slotmem_shm
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/080_mod_slotmem_shm.conf
%attr(0755,root,root) %{_libdir}/apache/mod_slotmem_shm.so

#----------------------------------------------------------------------------

%package mod_slotmem_plain
Summary:	Slot-based shared memory provider
Group:		System/Servers

%description mod_slotmem_plain
mod_slotmem_plain is a memory provider which provides for creation and access
to a plain memory segment in which the datasets are organized in "slots."

If the memory needs to be shared between threads and processes, a better
provider would be mod_slotmem_shm.

%files mod_slotmem_plain
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/081_mod_slotmem_plain.conf
%attr(0755,root,root) %{_libdir}/apache/mod_slotmem_plain.so

#----------------------------------------------------------------------------

%package mod_ssl-openssl
Summary:	OpenSSL-based mod_ssl for Apache HTTPD
Group:		System/Servers
# XXX Cycled dep, but ensure that the main package is installed to avoid confusion
Requires:	apache-mod_ssl
Requires(post,postun):	update-alternatives

%description mod_ssl-openssl
Choose either %{name}-mod_ssl-openssl or %{name}-mod_ssl-libressl to make Apache
HTTPD work with TLS using either OpenSSL or LibreSSL. OpenSSL is prefered choice,
expecially if you use GSSAPI authentication, but LibreSSL supports GOST.
update-alternatives is used to switch between them.
This is OpenSSL-based mod_ssl for Apache HTTPD.

%files mod_ssl-openssl
%attr(0755,root,root) %{_libdir}/apache/mod_ssl_openssl.so

# Migration from file to symlink
%triggerprein mod_ssl-openssl -- %{name}-mod_ssl < 2.4.46-13
if [ -e %{_libdir}/apache/mod_ssl.so ] && [ ! -L %{_libdir}/apache/mod_ssl.so ]; then
    rm -fv %{_libdir}/apache/mod_ssl.so
fi

%post mod_ssl-openssl
update-alternatives --install %{_libdir}/apache/mod_ssl.so %{name}-mod_ssl %{_libdir}/apache/mod_ssl_openssl.so 20

%postun mod_ssl-openssl
[ $1 = 0 ] || exit 0
update-alternatives --remove %{name}-mod_ssl %{_libdir}/apache/mod_ssl_openssl.so

#----------------------------------------------------------------------------

%package mod_ssl-libressl
Summary:	libreSSL-based mod_ssl for Apache HTTPD
Group:		System/Servers
# XXX Cycled dep, but ensure that the main package is installed to avoid confusion
Requires:	apache-mod_ssl
Requires(post,postun):	update-alternatives

%description mod_ssl-libressl
Choose either %{name}-mod_ssl-openssl or %{name}-mod_ssl-libressl to make Apache
HTTPD work with TLS using either OpenSSL or LibreSSL. OpenSSL is prefered choice,
expecially if you use GSSAPI authentication, but LibreSSL supports GOST.
update-alternatives is used to switch between them.
This is LibreSSL-based mod_ssl for Apache HTTPD.

%files mod_ssl-libressl
%attr(0755,root,root) %{_libdir}/apache/mod_ssl_libressl.so

# Migration from file to symlink
%triggerprein mod_ssl-libressl -- %{name}-mod_ssl < 2.4.46-13
if [ -e %{_libdir}/apache/mod_ssl.so ] && [ ! -L %{_libdir}/apache/mod_ssl.so ]; then
    rm -fv %{_libdir}/apache/mod_ssl.so
fi

%post mod_ssl-libressl
update-alternatives --install %{_libdir}/apache/mod_ssl.so %{name}-mod_ssl %{_libdir}/apache/mod_ssl_libressl.so 10

%postun mod_ssl-libressl
[ $1 = 0 ] || exit 0
update-alternatives --remove %{name}-mod_ssl %{_libdir}/apache/mod_ssl_libressl.so

#----------------------------------------------------------------------------

%package mod_ssl
Summary:	Strong cryptography using the SSL and TLS protocols
Group:		System/Servers
Requires:	apache-mod_log_config
Requires:	apache-mod_socache_shmcb
Requires:	(%{name}-mod_ssl-openssl = %{EVRD} or %{name}-mod_ssl-libressl = %{EVRD})
Requires(pre):	(%{name}-mod_ssl-openssl = %{EVRD} or %{name}-mod_ssl-libressl = %{EVRD})
Suggests:	%{name}-mod_ssl-openssl
Requires:	cert-sh-functions
Requires(pre):	user(apache)

%description mod_ssl
This module provides SSL v2/v3 and TLS v1 support for the Apache HTTP
Server. It was contributed by Ralf S. Engelschall based on his mod_ssl
project and originally derived from work by Ben Laurie.

Choose either %{name}-mod_ssl-openssl or %{name}-mod_ssl-libressl to make Apache
HTTPD work with TLS using either OpenSSL or LibreSSL. OpenSSL is prefered choice,
expecially if you use GSSAPI authentication, but LibreSSL supports GOST.
update-alternatives is used to switch between them.

Further details, discussion, and examples are provided in the SSL
documentation.

%files mod_ssl
%doc README.GOST
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/082_mod_ssl.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-ssl.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-ssl.conf
%attr(0700,apache,root) %dir /var/cache/httpd/mod_ssl
%attr(0600,apache,root) %ghost /var/cache/httpd/mod_ssl/scache.dir
%attr(0600,apache,root) %ghost /var/cache/httpd/mod_ssl/scache.pag
%attr(0600,apache,root) %ghost /var/cache/httpd/mod_ssl/scache.sem
%{_unitdir}/httpd-init.service

%post mod_ssl
if [ "$1" = "1" ]; then

mkdir -p %{_sysconfdir}/pki/tls/{private,certs} 2>/dev/null
umask 077

FQDN=`hostname`
if [ "x${FQDN}" = "x" ]; then
	FQDN=localhost.localdomain
fi
fi

if [ "$1" -gt "1" ]; then
	mkdir -p %{_sysconfdir}/pki/tls/{private,certs} 2>/dev/null
	if [ -d /etc/ssl/apache ];then
		if [ -f /etc/ssl/apache/server.crt.rpmsave -a ! -f /etc/pki/tls/certs/localhost.crt ]; then
			cp -p /etc/ssl/apache/server.crt.rpmsave /etc/pki/tls/certs/localhost.crt
		fi
		if [ -f /etc/ssl/apache/server.key.rpmsave -a ! -f /etc/pki/tls/private/localhost.key ]; then
		cp -p /etc/ssl/apache/server.key.rpmsave /etc/pki/tls/private/localhost.key
		fi
	fi
fi

# create some ghost files
%create_ghostfile /var/cache/httpd/mod_ssl/scache.dir apache root 0600
%create_ghostfile /var/cache/httpd/mod_ssl/scache.pag apache root 0600
%create_ghostfile /var/cache/httpd/mod_ssl/scache.sem apache root 0600

#----------------------------------------------------------------------------

%package mod_optional_hook_export
Summary:	ExportLogTransaction module
Group:		System/Servers

%description mod_optional_hook_export
ExportLogTransaction module.

%files mod_optional_hook_export
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/083_mod_optional_hook_export.conf
%attr(0755,root,root) %{_libdir}/apache/mod_optional_hook_export.so

#----------------------------------------------------------------------------

%package mod_optional_hook_import
Summary:	ImportOptionalHookTestHook module
Group:		System/Servers

%description mod_optional_hook_import
ImportOptionalHookTestHook module.

%files mod_optional_hook_import
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/084_mod_optional_hook_import.conf
%attr(0755,root,root) %{_libdir}/apache/mod_optional_hook_import.so

#----------------------------------------------------------------------------

%package mod_optional_fn_import
Summary:	ImportLogTransaction module
Group:		System/Servers

%description mod_optional_fn_import
ImportLogTransaction module.

%files mod_optional_fn_import
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/085_mod_optional_fn_import.conf
%attr(0755,root,root) %{_libdir}/apache/mod_optional_fn_import.so

#----------------------------------------------------------------------------

%package mod_optional_fn_export
Summary:	optional hook import module
Group:		System/Servers

%description mod_optional_fn_export
Description:optional hook import module.

%files mod_optional_fn_export
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/086_mod_optional_fn_export.conf
%attr(0755,root,root) %{_libdir}/apache/mod_optional_fn_export.so

#----------------------------------------------------------------------------

%package mod_dialup
Summary:	Send static content at a bandwidth rate limit, defined by old modem standards
Group:		System/Servers

%description mod_dialup
It is a module that sends static content at a bandwidth rate limit, defined
by the various old modem standards. So, you can browse your site with a
56k V.92 modem, by adding something like this:

<Location /mysite> ModemStandard V.92 </Location>

Previously to do bandwidth rate limiting modules would have to block an entire
thread, for each client, and insert sleeps to slow the bandwidth down. Using
the new suspend feature, a handler can get callback N milliseconds in the
future, and it will be invoked by the Event MPM on a different thread,
once the timer hits. From there the handler can continue to send data to
the client.

%files mod_dialup
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/087_mod_dialup.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dialup.so

#----------------------------------------------------------------------------

%package mod_lbmethod_byrequests
Summary:	Request Counting load balancer scheduler algorithm for mod_proxy_balancer
Group:		System/Servers

%description mod_lbmethod_byrequests
This module does not provide any configuration directives of its own.
It requires the services of mod_proxy_balancer, and provides the byrequests
load balancing method..

%files mod_lbmethod_byrequests
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/088_mod_lbmethod_byrequests.conf
%attr(0755,root,root) %{_libdir}/apache/mod_lbmethod_byrequests.so

#----------------------------------------------------------------------------

%package mod_lbmethod_bytraffic
Summary:	Weighted Traffic Counting load balancer scheduler for mod_proxy_balancer
Group:		System/Servers

%description mod_lbmethod_bytraffic
This module does not provide any configuration directives of its own.
It requires the services of mod_proxy_balancer, and provides the bytraffic
load balancing method..

%files mod_lbmethod_bytraffic
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/089_mod_lbmethod_bytraffic.conf
%attr(0755,root,root) %{_libdir}/apache/mod_lbmethod_bytraffic.so

#----------------------------------------------------------------------------

%package mod_lbmethod_bybusyness
Summary:	Pending Request Counting load balancer scheduler for mod_proxy_balancer
Group:		System/Servers

%description mod_lbmethod_bybusyness
This module does not provide any configuration directives of its own.
It requires the services of mod_proxy_balancer, and provides the bybusyness
load balancing method.

%files mod_lbmethod_bybusyness
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/090_mod_lbmethod_bybusyness.conf
%attr(0755,root,root) %{_libdir}/apache/mod_lbmethod_bybusyness.so

#----------------------------------------------------------------------------

%package mod_lbmethod_heartbeat
Summary:	Heartbeat Traffic Counting load balancer scheduler for mod_proxy_balancer
Group:		System/Servers

%description mod_lbmethod_heartbeat
lbmethod=heartbeat uses the services of mod_heartmonitor to balance between
origin servers that are providing heartbeat info via the mod_heartbeat module.

This modules load balancing algorithm favors servers with more ready (idle)
capacity over time, but does not select the server with the most ready
capacity every time. Servers that have 0 active clients are penalized,
with the assumption that they are not fully initialized.

%files mod_lbmethod_heartbeat
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/091_mod_lbmethod_heartbeat.conf
%attr(0755,root,root) %{_libdir}/apache/mod_lbmethod_heartbeat.so

#----------------------------------------------------------------------------

%package mod_unixd
Summary:	Basic (required) security for Unix-family platforms
Group:		System/Servers

%description mod_unixd
Basic (required) security for Unix-family platforms.

%files mod_unixd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/092_mod_unixd.conf
%attr(0755,root,root) %{_libdir}/apache/mod_unixd.so

#----------------------------------------------------------------------------

%package mod_heartbeat
Summary:	Sends messages with server status to frontend proxy
Group:		System/Servers

%description mod_heartbeat
mod_heartbeat sends multicast messages to a mod_heartmonitor listener that
advertises the servers current connection count. Usually, mod_heartmonitor
will be running on a proxy server with mod_lbmethod_heartbeat loaded,
which allows ProxyPass to use the "heartbeat" lbmethod inside of ProxyPass.

mod_heartbeat itself is loaded on the origin server(s) that serve
requests through the proxy server(s).  To use mod_heartbeat, mod_status
and mod_watchdog must be either a static modules or, if a dynamic module,
must be loaded before mod_heartbeat.

%files mod_heartbeat
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/093_mod_heartbeat.conf
%attr(0755,root,root) %{_libdir}/apache/mod_heartbeat.so

#----------------------------------------------------------------------------

%package mod_heartmonitor
Summary:	Centralized monitor for mod_heartbeat origin servers
Group:		System/Servers

%description mod_heartmonitor
mod_heartmonitor listens for server status messages generated by
mod_heartbeat enabled origin servers and makes their status available
to mod_lbmethod_heartbeat. This allows ProxyPass to use the "heartbeat"
lbmethod inside of ProxyPass.

This module uses the services of mod_slotmem_shm when available instead
of flat-file storage. No configuration is required to use mod_slotmem_shm.
To use mod_heartmonitor, mod_status and mod_watchdog must be either a static
modules or, if a dynamic module, it must be loaded before mod_heartmonitor.

%files mod_heartmonitor
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/094_mod_heartmonitor.conf
%attr(0755,root,root) %{_libdir}/apache/mod_heartmonitor.so

#----------------------------------------------------------------------------

%package mod_dav
Summary:	Distributed Authoring and Versioning (WebDAV) functionality
Group:		System/Servers
Requires:	apache-mod_alias
Requires:	apache-mod_auth_digest
Requires:	apache-mod_authn_core
Requires:	apache-mod_authn_file
Requires:	apache-mod_authz_core
Requires:	apache-mod_authz_user
Requires:	apache-mod_dav_fs
Requires:	apache-mod_setenvif
Requires(pre):	user(apache)
Requires(pre):	group(apache)

%description mod_dav
This module provides class 1 and class 2 WebDAV ('Web-based Distributed
Authoring and Versioning') functionality for Apache. This extension to the
HTTP protocol allows creating, moving, copying, and deleting resources and
collections on a remote web server.

%files mod_dav
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-dav.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-dav.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/095_mod_dav.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dav.so
%attr(-,apache,apache) %dir /var/lib/dav
%attr(-,apache,apache) %dir /var/lib/dav/uploads

#----------------------------------------------------------------------------

%package mod_status
Summary:	Provides information on server activity and performance
Group:		System/Servers

%description mod_status
The Status module allows a server administrator to find out how well their
server is performing. A HTML page is presented that gives the current server
statistics in an easily readable form. If required this page can be made
to automatically refresh (given a compatible browser).  Another page gives
a simple machine-readable list of the current server state.

The details given are: * The number of worker serving requests * The number
of idle worker * The status of each worker, the number of requests that
worker has
 performed and the total number of bytes served by the worker (*)
* A total number of accesses and byte count served (*) * The time the server
was started/restarted and the time it has been
 running for
* Averages giving the number of requests per second, the number of
 bytes served per second and the average number of bytes per request (*)
* The current percentage CPU used by each worker and in total by all
 workers combined (*)
* The current hosts and requests being processed (*)

The lines marked "(*)" are only available if ExtendedStatus is On. In
version 2.3.6, loading mod_status will toggle ExtendedStatus On by default.

%files mod_status
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/096_mod_status.conf
%attr(0755,root,root) %{_libdir}/apache/mod_status.so

#----------------------------------------------------------------------------

%package mod_autoindex
Summary:	Generates directory indexes automatically
Group:		System/Servers
Requires:	apache-mod_authz_core
Requires:	apache-mod_authz_host
Requires:	apache-mod_alias

%description mod_autoindex
The index of a directory can come from one of two sources:

* A file written by the user, typically called index.html. The DirectoryIndex
  directive sets the name of this file. This is controlled by mod_dir.

* Otherwise, a listing generated by the server. The other directives control
  the format of this listing. The AddIcon, AddIconByEncoding and AddIconByType
  are used to set a list of icons to display for various file types; for each
  file listed, the first icon listed that matches the file is displayed. These
  are controlled by mod_autoindex.

The two functions are separated so that you can completely remove (or replace)
automatic index generation should you want to.

Automatic index generation is enabled with using Options +Indexes. See the
Options directive for more details.

If the FancyIndexing option is given with the IndexOptions directive,
the column headers are links that control the order of the display. If
you select a header link, the listing will be regenerated, sorted by the
values in that column. Selecting the same header repeatedly toggles between
ascending and descending order. These column header links are suppressed
with the IndexOptions directive's SuppressColumnSorting option.

Note that when the display is sorted by "Size", it's the actual size of
the files that's used, not the displayed value - so a 1010-byte file will
always be displayed before a 1011-byte file (if in ascending order) even
though they both are shown as "1K".

%files mod_autoindex
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-autoindex.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-autoindex.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/097_mod_autoindex.conf
%attr(0755,root,root) %{_libdir}/apache/mod_autoindex.so

#----------------------------------------------------------------------------

%package mod_asis
Summary:	Sends files that contain their own HTTP headers
Group:		System/Servers

%description mod_asis
This module provides the handler send-as-is which causes Apache HTTP Server
to send the document without adding most of the usual HTTP headers.

This can be used to send any kind of data from the server, including
redirects and other special HTTP responses, without requiring a cgi-script
or an nph script.

For historical reasons, this module will also process any file with the
mime type httpd/send-as-is.

%files mod_asis
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/098_mod_asis.conf
%attr(0755,root,root) %{_libdir}/apache/mod_asis.so

#----------------------------------------------------------------------------

%package mod_info
Summary:	Provides a comprehensive overview of the server configuration
Group:		System/Servers
Requires:	apache-mod_authz_core
Requires:	apache-mod_authz_host
Requires:	apache-mod_status

%description mod_info
To configure mod_info, add the following to your httpd.conf file.

<Location /server-info> SetHandler server-info </Location>

You may wish to use mod_access inside the <Location> directive to limit
access to your server configuration information:

<Location /server-info> SetHandler server-info Require host example.com
</Location>

Once configured, the server information is obtained by accessing
http://your.host.example.com/server-info

%files mod_info
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-info.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-info.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/099_mod_info.conf
%attr(0755,root,root) %{_libdir}/apache/mod_info.so

#----------------------------------------------------------------------------

%package mod_suexec
Summary:	Allows CGI scripts to run as a specified user and Group
Group:		System/Servers

%description mod_suexec
This module, in combination with the suexec support program allows CGI scripts
to run as a specified user and Group.

Normally, when a CGI or SSI program executes, it runs as the same user who is
running the web server.

%files mod_suexec
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/100_mod_suexec.conf
%attr(0755,root,root) %{_libdir}/apache/mod_suexec.so
%attr(0755,root,root) %{_sbindir}/suexec
%attr(0644,root,root) %{_mandir}/man8/suexec.8*

#----------------------------------------------------------------------------

%package mod_cgi
Summary:	Execution of CGI scripts
Group:		System/Servers

%description mod_cgi
Any file that has the handler cgi-script will be treated as a CGI script,
and run by the server, with its output being returned to the client. Files
acquire this handler either by having a name containing an extension defined
by the AddHandler directive, or by being in a ScriptAlias directory.

For an introduction to using CGI scripts with Apache, see our tutorial on
Dynamic Content With CGI.

When using a multi-threaded MPM under unix, the module mod_cgid should
be used in place of this module. At the user level, the two modules are
essentially identical.

For backward-compatibility, the cgi-script handler will also be activated
for any file with the mime-type application/x-httpd-cgi. The use of the
magic mime-type is deprecated.

%files mod_cgi
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/101_mod_cgi.conf
%attr(0755,root,root) %{_libdir}/apache/mod_cgi.so

#----------------------------------------------------------------------------

%package mod_cgid
Summary:	Execution of CGI scripts using an external CGI daemon
Group:		System/Servers

%description mod_cgid
Except for the optimizations and the additional ScriptSock directive noted
below, mod_cgid behaves similarly to mod_cgi. See the mod_cgi summary for
additional details about Apache and CGI.

On certain unix operating systems, forking a process from a multi-threaded
server is a very expensive operation because the new process will replicate
all the threads of the parent process. In order to avoid incurring this
expense on each CGI invocation, mod_cgid creates an external daemon that
is responsible for forking child processes to run CGI scripts. The main
server communicates with this daemon using a unix domain socket.

This module is used by default instead of mod_cgi whenever a multi-threaded
MPM is selected during the compilation process. At the user level, this
module is identical in configuration and operation to mod_cgi. The only
exception is the additional directive ScriptSock which gives the name of
the socket to use for communication with the cgi daemon.

%files mod_cgid
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/102_mod_cgid.conf
%attr(0755,root,root) %{_libdir}/apache/mod_cgid.so

#----------------------------------------------------------------------------

%package mod_dav_fs
Summary:	filesystem provider for mod_dav
Group:		System/Servers

%description mod_dav_fs
This module requires the service of mod_dav. It acts as a support module
for mod_dav and provides access to resources located in the server's file
system. The formal name of this provider is filesystem.  mod_dav backend
providers will be invoked by using the Dav directive:

%files mod_dav_fs
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/103_mod_dav_fs.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dav_fs.so

#----------------------------------------------------------------------------

%package mod_dav_lock
Summary:	generic locking module for mod_dav
Group:		System/Servers

%description mod_dav_lock
This module implements a generic locking API which can be used by any backend
provider of mod_dav. It requires at least the service of mod_dav. But without
a backend provider which makes use of it, it's useless and should not be
loaded into the server. A sample backend module which actually utilizes
mod_dav_lock is mod_dav_svn, the subversion provider module.

Note that mod_dav_fs does not need this generic locking module, because it
uses its own more specialized version.

In order to make mod_dav_lock functional, you just have to specify the
location of the lock database using the DavGenericLockDB directive described
below.

Developer's Note

In order to retrieve the pointer to the locking provider function, you have
to use the ap_lookup_provider API with the arguments dav-lock, generic, and 0.

%files mod_dav_lock
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/104_mod_dav_lock.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dav_lock.so

#----------------------------------------------------------------------------

%package mod_vhost_alias
Summary:	Provides for dynamically configured mass virtual hosting
Group:		System/Servers
Requires:	apache-mod_log_config

%description mod_vhost_alias
This module creates dynamically configured virtual hosts, by allowing the
IP address and/or the Host: header of the HTTP request to be used as part
of the pathname to determine what files to serve. This allows for easy use
of a huge number of virtual hosts with similar configurations.

%files mod_vhost_alias
%dir %{_sysconfdir}/httpd/vhosts.d
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-vhosts.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-vhosts.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/105_mod_vhost_alias.conf
%attr(0755,root,root) %{_libdir}/apache/mod_vhost_alias.so

#----------------------------------------------------------------------------

%package mod_negotiation
Summary:	Provides for content negotiation
Group:		System/Servers

%description mod_negotiation
Content negotiation, or more accurately content selection, is the selection
of the document that best matches the clients capabilities, from one of
several available documents. There are two implementations of this.  *
A type map (a file with the handler type-map) which explicitly
 lists the files containing the variants.
* A Multiviews search (enabled by the Multiviews Options), where the
 server does an implicit filename pattern match, and choose from amongst
 the results.

%files mod_negotiation
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/106_mod_negotiation.conf
%attr(0755,root,root) %{_libdir}/apache/mod_negotiation.so

#----------------------------------------------------------------------------

%package mod_dir
Summary:	Provides for "trailing slash" redirects and serving directory index files
Group:		System/Servers

%description mod_dir
The index of a directory can come from one of two sources: * A file written
by the user, typically called index.html. The
 DirectoryIndex directive sets the name of this file. This is controlled
 by mod_dir.
* Otherwise, a listing generated by the server. This is provided by
 mod_autoindex.

The two functions are separated so that you can completely remove (or replace)
automatic index generation should you want to.

A "trailing slash" redirect is issued when the server receives a
request for a URL http://servername/foo/dirname where dirname is
a directory. Directories require a trailing slash, so mod_dir issues a
redirect to http://servername/foo/dirname/.

%files mod_dir
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/107_mod_dir.conf
%attr(0755,root,root) %{_libdir}/apache/mod_dir.so

#----------------------------------------------------------------------------

%package mod_imagemap
Summary:	Server-side imagemap processing
Group:		System/Servers

%description mod_imagemap
This module processes .map files, thereby replacing the functionality of
the imagemap CGI program. Any directory or document type configured to
use the handler imap-file (using either AddHandler or SetHandler) will be
processed by this module.

The following directive will activate files ending with .map as imagemap
files:

AddHandler imap-file map

Note that the following is still supported:

AddType application/x-httpd-imap map

However, we are trying to phase out "magic MIME types" so we are deprecating
this method.

%files mod_imagemap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/108_mod_imagemap.conf
%attr(0755,root,root) %{_libdir}/apache/mod_imagemap.so

#----------------------------------------------------------------------------

%package mod_actions
Summary:	Provides for executing CGI scripts based on media type or request method
Group:		System/Servers

%description mod_actions
This module has two directives. The Action directive lets you run CGI scripts
whenever a file of a certain MIME content type is requested.  The Script
directive lets you run CGI scripts whenever a particular method is used in
a request. This makes it much easier to execute scripts that process files.

%files mod_actions
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/109_mod_actions.conf
%attr(0755,root,root) %{_libdir}/apache/mod_actions.so

#----------------------------------------------------------------------------

%package mod_speling
Summary:	Attempts to correct various minor misspellings
Group:		System/Servers

%description mod_speling
Requests to documents sometimes cannot be served by the core apache server
because the request was misspelled or miscapitalized. This module addresses
this problem by trying to find a matching document, even after all other
modules gave up. It does its work by comparing each document name in the
requested directory against the requested document name without regard to
case, and allowing up to one misspelling (character insertion / omission /
transposition or wrong character). A list is built with all document names
which were matched using this strategy.

If, after scanning the directory, * no matching document was found, Apache
will proceed as usual and
 return a "document not found" error.
* only one document is found that "almost" matches the request, then
 it is returned in the form of a redirection response.
* more than one document with a close match was found, then the list
 of the matches is returned to the client, and the client can select the
 correct candidate.

%files mod_speling
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/110_mod_speling.conf
%attr(0755,root,root) %{_libdir}/apache/mod_speling.so

#----------------------------------------------------------------------------

%package mod_userdir
Summary:	User-specific directories
Group:		System/Servers
Requires:	apache-mod_authz_core
Requires:	apache-mod_authz_host

%description mod_userdir
This module allows user-specific directories to be accessed using the
http://example.com/~user/ syntax.

%files mod_userdir
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/httpd-userdir.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/httpd-userdir.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/111_mod_userdir.conf
%attr(0755,root,root) %{_libdir}/apache/mod_userdir.so

#----------------------------------------------------------------------------

%package mod_alias
Summary:	Provides for mapping and for URL redirection
Group:		System/Servers

%description mod_alias
The directives contained in this module allow for manipulation and control of
URLs as requests arrive at the server. The Alias and ScriptAlias directives
are used to map between URLs and filesystem paths. This allows for content
which is not directly under the DocumentRoot served as part of the web
document tree. The ScriptAlias directive has the additional effect of
marking the target directory as containing only CGI scripts.

The Redirect directives are used to instruct clients to make a new request
with a different URL. They are often used when a resource has moved to a
new location.

mod_alias is designed to handle simple URL manipulation tasks. For more
complicated tasks such as manipulating the query string, use the tools
provided by mod_rewrite.

%files mod_alias
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/112_mod_alias.conf
%attr(0755,root,root) %{_libdir}/apache/mod_alias.so

#----------------------------------------------------------------------------

%package mod_rewrite
Summary:	Provides a rule-based rewriting engine to rewrite requested URLs on the fly
Group:		System/Servers

%description mod_rewrite
The mod_rewrite module uses a rule-based rewriting engine, based on a
regular-expression parser, to rewrite requested URLs on the fly. By default,
mod_rewrite maps a URL to a filesystem path. However, it can also be used
to redirect one URL to another URL, or to invoke an internal proxy fetch.

mod_rewrite provides a flexible and powerful way to manipulate URLs using
an unlimited number of rules. Each rule can have an unlimited number of
attached rule conditions, to allow you to rewrite URL based on server
variables, environment variables, HTTP headers, or time stamps.

mod_rewrite operates on the full URL path, including the path-info section. A
rewrite rule can be invoked in httpd.conf or in .htaccess.  The path generated
by a rewrite rule can include a query string, or can lead to internal
sub-processing, external request redirection, or internal proxy throughput.

Further details, discussion, and examples, are provided in the detailed
mod_rewrite documentation.

%files mod_rewrite
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/113_mod_rewrite.conf
%attr(0755,root,root) %{_libdir}/apache/mod_rewrite.so

#----------------------------------------------------------------------------

%package htcacheclean
Summary:	Clean up the disk cache (for apache-mod_cache_disk)
Group:		System/Servers
Requires(pre,postun):	rpm-helper
Recommends:	apache-mod_cache_disk = %{EVRD}
Recommends:	apache-mod_proxy = %{EVRD}

%description htcacheclean
htcacheclean is used to keep the size of mod_cache_disk's storage within a
certain limit. This tool can run either manually or in daemon mode. When
running in daemon mode, it sleeps in the background and checks the cache
directories at regular intervals for cached content to be removed.

%files htcacheclean
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/htcacheclean
%attr(0755,root,root) %{_sbindir}/htcacheclean
%{_mandir}/man8/htcacheclean.8*
%{_tmpfilesdir}/htcacheclean.conf
%{_unitdir}/htcacheclean.service

#----------------------------------------------------------------------------

%package devel
Summary:	Module development tools for the apache web server
Group:		Development/C
Requires:	db-devel
Requires:	gdbm-devel
Requires:	sasl-devel
Requires:	pkgconfig(apr-1) >= 1.5.0
Requires:	pkgconfig(apr-util-1) >= 1.5.3
Requires:	pkgconfig(expat)
Requires:	pkgconfig(libpcre)
Requires:	pkgconfig(openssl)
Requires:	pkgconfig(zlib)
# compat with RH/Fedora
Provides:	httpd-devel = %{EVRD}

%description devel
The apache-devel package contains the source code for the apache Web server and
the APXS binary you'll need to build Dynamic Shared Objects (DSOs) for apache.

If you are installing the apache Web server and you want to be able to compile
or develop additional modules for apache, you'll need to install this package.

%files devel
%{_includedir}/apache
# symlink to apache
%{_includedir}/httpd
%attr(0755,root,root) %dir %{_libdir}/apache/build
%attr(0644,root,root) %{_libdir}/apache/build/*.mk
%attr(0755,root,root) %{_libdir}/apache/build/*.sh
%attr(0755,root,root) %{_libdir}/apache/build/envvars
%attr(0755,root,root) %{_sbindir}/envvars-std
%attr(0755,root,root) %{_bindir}/apxs
%attr(0755,root,root) %{_libdir}/apache/httpd.exp

#----------------------------------------------------------------------------

%package source
Summary:	The apache source code, including %{vendor} patches
Group:		System/Servers

%description source
The apache source code, including %{vendor} patches. Use this package to build
your own customized apache if needed.

%files source
%{_usrsrc}/apache-%{version}

#----------------------------------------------------------------------------

%package doc
Summary:	The apache Manual
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains the apache server documentation in HTML format.

Please view the documentaion by starting the apache server and your favourite
web browser and point to this URL: http://localhost/manual

%files doc
%{_datadir}/doc/apache-doc

#----------------------------------------------------------------------------

%prep
%setup -q -n httpd-%{version} -a11
%autopatch -p1
%config_update

# forcibly prevent use of bundled apr, apr-util, pcre
rm -rf srclib/{apr,apr-util,pcre}

# don't install or use bundled pcreposix.h
rm -f include/pcreposix.h

#Fix apxs
perl -pi -e 's|\@exp_installbuilddir\@|%{_libdir}/apache/build|;' support/apxs.in
perl -pi -e 's|get_vars\("prefix"\)|"%{_libdir}/apache/build"|;' support/apxs.in
perl -pi -e 's|get_vars\("sbindir"\) . "/envvars"|"\$installbuilddir/envvars"|;' support/apxs.in

#Correct perl paths
find -type f|xargs perl -pi -e "s|/usr/local/bin/perl|perl|g;\
	s|/usr/local/bin/perl5|perl|g;s|/path/to/bin/perl|perl|g;"

# this is really better and easier than a stupid static patch...
# for some reason you have to use ">>" here (!)

cat >> config.layout << EOF
<Layout NUX>
    prefix:        %{_sysconfdir}/httpd
    exec_prefix:   %{_prefix}
    bindir:        %{_bindir}
    sbindir:       %{_sbindir}
    libdir:        %{_libdir}
    libexecdir:    %{_libdir}/apache
    mandir:        %{_mandir}
    infodir:       %{_infodir}
    includedir:    %{_includedir}/apache
    sysconfdir:    %{_sysconfdir}/httpd/conf
    datadir:       /var/www
    installbuilddir: %{_libdir}/apache/build
    errordir:      /var/www/error
    iconsdir:      /var/www/icons
    htdocsdir:     /var/www/html
    manualdir:     %{_datadir}/doc/apache-doc
    cgidir:        /var/www/cgi-bin
    localstatedir: /var
    runtimedir:    /run/httpd
    logfiledir:    /var/log/httpd
    proxycachedir: /var/cache/httpd/mod_proxy
</Layout>
EOF

#Fix DYNAMIC_MODULE_LIMIT
perl -pi -e "s/DYNAMIC_MODULE_LIMIT 256/DYNAMIC_MODULE_LIMIT %{?!maxmodules:%{defaultmaxmodules}}%{?maxmodules:%{maxmodules}}/;" include/httpd.h

# don't try to touch srclib
perl -pi -e "s|^SUBDIRS = .*|SUBDIRS = os server modules support|g" Makefile.in

# bump server limit
perl -pi -e "s|DEFAULT_SERVER_LIMIT 256|DEFAULT_SERVER_LIMIT %{?!serverlimit:%{defaultserverlimit}}%{?serverlimit:%{serverlimit}}|g" server/mpm/prefork/prefork.c

# tag it with the "legacy" name so that we can track this at netcraft...
perl -pi -e "s|^#define AP_SERVER_BASEPRODUCT .*|#define AP_SERVER_BASEPRODUCT \"%{BASEPRODUCT}\"|g" include/ap_release.h

# avoid regenerating code with yacc
pushd server
    touch util_expr_scan.c util_expr_parse.c util_expr_parse.h util_expr_scan.l util_expr_parse.y
popd

# use my nice converted transparent png icons
tar -jxf %{SOURCE3}
mv icons/*.png docs/icons/

# prepare the apache-source package
rm -rf %{_builddir}/tmp-httpd-%{version}; mkdir -p %{_builddir}/tmp-httpd-%{version}/usr/src
cp -dpR %{_builddir}/httpd-%{version} %{_builddir}/tmp-httpd-%{version}/usr/src/apache-%{version}
rm -rf %{_builddir}/tmp-httpd-%{version}/usr/src/apache-%{version}/tmp-httpd-%{version}/usr/src
rm -f %{_builddir}/tmp-httpd-%{version}%{_usrsrc}/apache-%{version}/*.spec
rm -rf %{_builddir}/tmp-httpd-%{version}/usr/src/apache-%{version}/Mandriva

# add the htcacheclean stuff
cp %{SOURCE9} htcacheclean.service
cp %{SOURCE10} htcacheclean.sysconfig

cp %{SOURCE19} README.GOST

# this will only work if configured correctly in the config (FullOs)...
cp server/core.c server/core.c.untagged

# some adjustments here
perl -pi -e "s|_MODULE_DIR_|%{_libdir}/apache|g" ROSA/*_mod_*.conf

# Build the systemd file
cp %{SOURCE15} httpd.service
for mpm in worker event; do
    sed "s,@NAME@,${mpm},g;s,@EXEC@,%{_sbindir}/httpd-${mpm},g" httpd.service > httpd-${mpm}.service
done
touch -r httpd.service httpd-${mpm}.service

%build
%serverbuild

#########################################################################################
# configure and build phase
#

# use a minimal buildconf instead
cp %{SOURCE100} buildconf
sh ./buildconf

CFLAGS="`echo $RPM_OPT_FLAGS |sed -e 's/-fomit-frame-pointer//'`"
CPPFLAGS="-DSSL_EXPERIMENTAL_ENGINE -DLDAP_DEPRECATED"
if pkg-config openssl; then
    # configure -C barfs with trailing spaces in CFLAGS
    CFLAGS="$RPM_OPT_FLAGS $CPPFLAGS"
    CPPFLAGS="$CPPFLAGS `pkg-config --cflags openssl | sed 's/ *$//'`"
    AP_LIBS="$AP_LIBS `pkg-config --libs openssl`"
else
    CFLAGS="$RPM_OPT_FLAGS"
    CPPFLAGS="$CPPFLAGS"
    AP_LIBS="$AP_LIBS -lssl -lcrypto"
fi
export CFLAGS CPPFLAGS AP_LIBS
export CFLAGS_ORIG="$CFLAGS"

export SH_LDFLAGS="%{ldflags}"

APVARS="--enable-layout=NUX \
    --prefix=%{_sysconfdir}/httpd \
    --exec-prefix=%{_prefix} \
    --bindir=%{_bindir} \
    --sbindir=%{_sbindir} \
    --libexecdir=%{_libdir}/apache \
    --sysconfdir=%{_sysconfdir}/httpd/conf \
    --localstatedir=/var \
    --includedir=%{_includedir}/apache \
    --infodir=%{_infodir} \
    --mandir=%{_mandir} \
    --datadir=/var/www \
    --with-port=80 \
    --with-perl=%{_bindir}/perl \
    --with-apr=%{_bindir}/apr-1-config \
    --with-apr-util=%{_bindir}/apu-1-config \
    --with-pcre=%{_prefix} \
    --with-z=%{_prefix} \
    --enable-layout=NUX \
    --with-devrandom \
    --enable-exception-hook \
    --enable-forward \
    --with-program-name=httpd"

for mpm in worker event prefork prefork_libressl ; do
    mkdir build-${mpm}; pushd build-${mpm}
    ln -s ../configure .

    case "$mpm" in
	"prefork_libressl" )
	    SSL_PREFIX=%{libressl_prefix}
	    CFLAGS="$CFLAGS_ORIG -I%{libressl_prefix}/include -L%{libressl_prefix}/lib"
	;;
	* )
	    SSL_PREFIX=%{_prefix}
	    CFLAGS="$CFLAGS_ORIG"
	;;
    esac

    if [[ ${mpm} =~ prefork.* ]]; then
        %configure $APVARS \
	    --with-mpm=prefork \
	    --enable-modules=all \
	    --enable-mods-shared=all \
	    --with-ldap --enable-ldap=shared --enable-authnz-ldap=shared \
	    --enable-cache=shared --enable-disk-cache=shared --enable-file-cache=shared --enable-mem-cache=shared \
	    --enable-ssl --with-ssl="$SSL_PREFIX" --disable-distcache \
	    --enable-deflate=shared \
	    --enable-cgid=shared \
	    --enable-proxy=shared --enable-proxy-connect=shared --enable-proxy-ftp=shared \
	    --enable-proxy-http=shared --enable-proxy-ajp=shared --enable-proxy-balancer=shared \
	    --enable-proxy-fdpass \
	    --enable-dav=shared --enable-dav-fs=shared --enable-dav-lock=shared \
	    --enable-version=shared \
	    --enable-bucketeer=shared --enable-case-filter=shared --enable-case-filter-in=shared --enable-echo=shared \
	    --enable-example=shared --enable-optional-fn-export=shared --enable-optional-fn-import=shared \
	    --enable-optional-hook-export=shared --enable-optional-hook-import=shared \
	    --enable-charset_lite=shared --enable-authn_alias=shared \
	    --enable-cern-meta=shared \
	    --enable-ident=shared \
	    --enable-imagemap=shared \
	    --enable-suexec=shared

    # nuke excessive use of ldflags
    perl -pi -e "s|^LDFLAGS.*|LDFLAGS = %{ldflags}|g" build/config_vars.mk
    perl -pi -e "s|^SH_LDFLAGS.*|SH_LDFLAGS = %{ldflags}|g" build/config_vars.mk

    fi

    if [ ${mpm} = worker ]; then
	%configure $APVARS \
	    --with-mpm=worker \
	    --enable-modules=none
    # don't build support tools
    perl -pi -e "s|^SUBDIRS = .*|SUBDIRS = os server modules|g" Makefile
    # nuke excessive use of ldflags
    perl -pi -e "s|^LDFLAGS.*|LDFLAGS = %{ldflags}|g" build/config_vars.mk
    perl -pi -e "s|^SH_LDFLAGS.*|SH_LDFLAGS = %{ldflags}|g" build/config_vars.mk
    fi

    if [ ${mpm} = event ]; then
	%configure $APVARS \
    	    --with-mpm=event \
	    --enable-modules=none
    # don't build support tools
    perl -pi -e "s|^SUBDIRS = .*|SUBDIRS = os server modules|g" Makefile
    # nuke excessive use of ldflags
    perl -pi -e "s|^LDFLAGS.*|LDFLAGS = %{ldflags}|g" build/config_vars.mk
    perl -pi -e "s|^SH_LDFLAGS.*|SH_LDFLAGS = %{ldflags}|g" build/config_vars.mk
    fi

    #Copy configure flags to a file in the apache-source rpm.
    cp config.nice %{_builddir}/tmp-httpd-%{version}%{_usrsrc}/apache-%{version}/config.nice.${mpm}

    # tag it with the mpm name too so that we can track this somehow at for example netcraft...
    MPM_NAME=`echo ${mpm}|tr "[a-z]" "[A-Z]"`
    cp ../server/core.c.untagged ../server/core.c
    perl -pi -e "s|\" PLATFORM \"|%{TAG}/${MPM_NAME}-%{release}|g" ../server/core.c

    # if libexpat0-devel is installed on x86_64 somehow the EXTRA_LDLAGS is set
    # to -L/usr/lib, fix that with a conditional hack...
    %ifarch x86_64
	find -type f | xargs perl -pi -e "s|/usr/lib\b|%{_libdir}|g"
    %endif

    # finally doing the build stage
    # parallel build randomly fails too often
    make -j1
    popd
done

# Create default/prefork service file for systemd
sed "s,@NAME@,prefork,g;s,@EXEC@,%{_sbindir}/httpd,g" httpd.service > httpd.service.def
touch -r httpd.service httpd.service.def

%install
#########################################################################################
# install phase

install -d %{buildroot}%{_libdir}/apache
install -d %{buildroot}%{_sysconfdir}/httpd/conf.d
install -d %{buildroot}%{_sysconfdir}/httpd/webapps.d
install -d %{buildroot}%{_sysconfdir}/httpd/vhosts.d
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}/var/cache/httpd/mod_proxy
install -d %{buildroot}/var/lib/dav
install -d %{buildroot}/var/lib/dav/uploads
install -d %{buildroot}/var/log/httpd
install -d %{buildroot}/var/www/perl

#EXCLUDE_FROM_STRIP="%{buildroot}%{_sbindir}/httpd %{buildroot}%{_sbindir}/httpd-worker %{buildroot}%{_sbindir}/httpd-peruser"

# install source
tar -cf - -C %{_builddir}/tmp-httpd-%{version} usr/src | tar x -C %{buildroot} -f -

pushd build-prefork
make install \
	prefix=%{_sysconfdir}/httpd \
	bindir=%{buildroot}%{_bindir} \
	sbindir=%{buildroot}%{_sbindir} \
	libdir=%{buildroot}%{_libdir} \
	libexecdir=%{buildroot}%{_libdir}/apache \
	mandir=%{buildroot}%{_mandir} \
	sysconfdir=%{buildroot}%{_sysconfdir}/httpd/conf \
	includedir=%{buildroot}%{_includedir}/apache \
	localstatedir=%{buildroot}/var \
	runtimedir=%{buildroot}/var/run \
	installbuilddir=%{buildroot}%{_libdir}/apache/build  \
	datadir=%{buildroot}/var/www \
	errordir=%{buildroot}/var/www/error \
	iconsdir=%{buildroot}/var/www/icons \
	htdocsdir=%{buildroot}/var/www/html \
	manualdir=%{buildroot}%{_datadir}/doc/apache-doc \
	cgidir=%{buildroot}/var/www/cgi-bin \
	runtimedir=%{buildroot}/var/run \
	logdir=%{buildroot}/var/log/httpd \
	logfiledir=%{buildroot}/var/log/httpd \
	proxycachedir=%{buildroot}/var/cache/httpd/mod_proxy
popd

mv -v %{buildroot}%{_libdir}/apache/mod_ssl.so %{buildroot}%{_libdir}/apache/mod_ssl_openssl.so
install -m0755 build-prefork_libressl/modules/ssl/.libs/mod_ssl.so %{buildroot}%{_libdir}/apache/mod_ssl_libressl.so
patchelf --print-needed %{buildroot}%{_libdir}/apache/mod_ssl_openssl.so | grep -q '^libcrypto.so.%{openssl_libcrypto_sover}$'
patchelf --print-needed %{buildroot}%{_libdir}/apache/mod_ssl_openssl.so | grep -q '^libssl.so.%{openssl_libssl_sover}$'
patchelf --print-needed %{buildroot}%{_libdir}/apache/mod_ssl_libressl.so | grep -q '^libcrypto.so.%{libressl_libcrypto_sover}$'
patchelf --print-needed %{buildroot}%{_libdir}/apache/mod_ssl_libressl.so | grep -q '^libssl.so.%{libressl_libssl_sover}$'

# do some house cleaning
for f in `find %{buildroot} -type f -name ".orig"` \
    `find %{buildroot} -type f -name ".deps"` \
    `find %{buildroot} -type f -name "NW*"` \
    `find %{buildroot} -type f -name "*.droplet"` \
    `find %{buildroot} -type f -name "*.zip"` \
    `find %{buildroot} -type f -name "*.dsp"`; do
    rm -f $f
done

#Fix config_vars.mk, and add some MDK flags so all other modules
#can simply do "apxs -q VARIABLE" and know, for example, the exact
#release of apache-devel or the exact directory where the source is
#located.
CVMK="%{buildroot}%{_libdir}/apache/build/config_vars.mk"
perl -pi -e "s|%{_builddir}/httpd-%{version}|%{_usrsrc}/apache-%{version}|g" $CVMK
perl -pi -e "s|%{buildroot}||g" $CVMK
perl -pi -e "s|^EXTRA_INCLUDES.*|EXTRA_INCLUDES = `apr-1-config --includes` -I%{_includedir}/apache -I%{_includedir}/openssl|g" $CVMK

# fix libtool invocation
perl -pi -e "s|^LIBTOOL.*|LIBTOOL = libtool|g" $CVMK
perl -pi -e "s|^SH_LIBTOOL.*|SH_LIBTOOL = libtool|g" $CVMK

# if the following 3 lines needs to be enabled again, use the ".*" wildcard as in
# "s|bla bla =.*|bla bla = replaced whatever text after the equal char...|g"
#perl -pi -e "s|installbuilddir =.*|installbuilddir = %{_libdir}/apache/build|g" $CVMK
#perl -pi -e "s|htdocsdir =.*|htdocsdir = /var/www/html|g" $CVMK
#perl -pi -e "s|logfiledir =.*|logfiledir = /var/log/httpd|g" $CVMK
echo "ap_version = %{version}" >> $CVMK
echo "ap_release = %{release}" >> $CVMK

#########################################################################################
# fix some bugs and other stuff
#
perl -pi -e "s|%{_builddir}/httpd-%{version}|%{_usrsrc}/apache-%{version}|g" %{buildroot}%{_libdir}/apache/build/apr_rules.mk

mv %{buildroot}%{_sbindir}/envvars %{buildroot}%{_libdir}/apache/build/

# named config.nice files are in the devel package
rm -f %{buildroot}%{_libdir}/apache/build/config.nice

##################################################################
# install module conf files for the "modules.d" dir loading structure
install -m0644 ROSA/*mod_*.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/

#move conf files to right location
mv %{buildroot}%{_sysconfdir}/httpd/conf/extra/* %{buildroot}%{_sysconfdir}/httpd/conf.d
rmdir %{buildroot}%{_sysconfdir}/httpd/conf/extra
mv %{buildroot}%{_sysconfdir}/httpd/conf/original/extra/* %{buildroot}%{_sysconfdir}/httpd/conf/original/
rmdir %{buildroot}%{_sysconfdir}/httpd/conf/original/extra


# install the mpm stuff
install -m0755 build-worker/httpd %{buildroot}%{_sbindir}/httpd-worker
install -m0755 build-event/httpd %{buildroot}%{_sbindir}/httpd-event

# install alternative MPMs; executables, man pages, and systemd service files
install -d %{buildroot}%{_unitdir}
for mpm in worker event; do
    install -p -m 644 httpd-${mpm}.service %{buildroot}%{_unitdir}/httpd-${mpm}.service
done
install -m 0644 %{SOURCE14} -D %{buildroot}%{_unitdir}/httpd-init.service

# Default httpd (prefork) service file
install -p -m 644 httpd.service.def %{buildroot}%{_unitdir}/httpd.service

# Install tmpfiles.d config for httpd
install -m 0644 %{SOURCE16} -D %{buildroot}%{_tmpfilesdir}/httpd.conf
install -m 0644 %{SOURCE17} -D %{buildroot}%{_tmpfilesdir}/htcacheclean.conf

install -d -m 755 %{buildroot}/var/cache/httpd/mod_proxy
install -d -m 755 %{buildroot}/var/lib/dav

# install htcacheclean files
install -m0644 htcacheclean.service %{buildroot}%{_unitdir}/htcacheclean.service
install -m0644 htcacheclean.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/htcacheclean

# install missing files
install -m755 build-prefork/support/split-logfile %{buildroot}%{_sbindir}/split-logfile
install -m755 support/list_hooks.pl %{buildroot}%{_sbindir}/list_hooks.pl
install -m755 build-prefork/support/logresolve.pl %{buildroot}%{_sbindir}/logresolve.pl
install -m755 build-prefork/support/log_server_status %{buildroot}%{_sbindir}/log_server_status
install -m755 build-prefork/support/checkgid %{buildroot}%{_sbindir}/checkgid
install -m755 support/check_forensic %{buildroot}%{_sbindir}/check_forensic

# fix a msec safe cache for the ssl stuff
install -d %{buildroot}/var/cache/httpd/mod_ssl
touch %{buildroot}/var/cache/httpd/mod_ssl/scache.dir
touch %{buildroot}/var/cache/httpd/mod_ssl/scache.pag
touch %{buildroot}/var/cache/httpd/mod_ssl/scache.sem

# fix a msec safe cache for the mod_ldap LDAPSharedCacheFile
touch %{buildroot}/var/cache/httpd/mod_ldap_cache

install -m0644 ROSA/fileprotector.conf %{buildroot}%{_sysconfdir}/httpd/conf.d/fileprotector.conf
install -m0644 ROSA/httpd.sysconf %{buildroot}%{_sysconfdir}/sysconfig/httpd
install -m0644 ROSA/favicon.ico %{buildroot}/var/www/html/
install -m0644 ROSA/robots.txt %{buildroot}/var/www/html/
install -m0644 ROSA/rpm.png  %{buildroot}/var/www/icons/
install -m0644 ROSA/httpd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/httpd

# add two important documentation files in the plain ASCII format
cp docs/manual/upgrading.html.en upgrading.html
cp docs/manual/new_features_2_4.html.en new_features_2_4.html

lynx -dump -nolist upgrading.html > upgrading.txt
lynx -dump -nolist new_features_2_4.html > new_features_2_4.txt

# fix the manual
find %{buildroot}%{_datadir}/doc/apache-doc -type d -exec chmod 755 {} \;
find %{buildroot}%{_datadir}/doc/apache-doc -type f -exec chmod 644 {} \;

# let's not ship those, they might reveal some information to unwanted eyes
rm -rf %{buildroot}/var/www/cgi-bin/printenv*
rm -rf %{buildroot}/var/www/cgi-bin/test-cgi

# '#include "httpd/httpd.h"' is hardcoded in e.g. pki-core (Dogtag),
# make a symlink for compatibility with Red Hat/Fedora
( cd %{buildroot}%{_includedir}
  ln -s apache httpd
)

# Other directories
mkdir -p %{buildroot}%{_localstatedir}/lib/httpd

#symlink for modules and logs dir
#now not needed set LoadModule full path in config.
ln -s %{_libdir}/apache %{buildroot}%{_sysconfdir}/httpd/modules
ln -s %{_logdir}/httpd %{buildroot}%{_sysconfdir}/httpd/logs
ln -s ../..%{_localstatedir}/lib/httpd %{buildroot}/%{_sysconfdir}/httpd/state
ln -s /run/httpd %{buildroot}/%{_sysconfdir}/httpd/run

mkdir -p %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE18} %{buildroot}%{_sysusersdir}/apache.conf

# Some apps, e.g. certbot apache plugin, try to exec apache2ctl
( cd %{buildroot}%{_sbindir}
  ln -s apachectl apache2ctl
)

#########################################################################################
# install phase done
#

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11870 |21mr|apache-commons-beanutils-1.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name       beanutils
%global short_name      commons-%{base_name}

Name:           apache-%{short_name}
Version:	1.9.4
Release:	1
Summary:        Java utility methods for accessing and modifying the properties of arbitrary JavaBeans
License:        ASL 2.0
URL:            http://commons.apache.org/%{base_name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-collections:commons-collections-testframework)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)

%description
The scope of this package is to create a package of Java utility methods
for accessing and modifying the properties of arbitrary JavaBeans.  No
dependencies outside of the JDK are required, so the use of this package
is very lightweight.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{short_name}-%{version}-src
sed -i 's/\r//' *.txt

%pom_remove_plugin :maven-assembly-plugin

%mvn_alias :{*} :@1-core :@1-bean-collections
%mvn_alias :{*} org.apache.commons:@1 org.apache.commons:@1-core org.apache.commons:@1-bean-collections
%mvn_file : %{name} %{name}-core %{name}-bean-collections
%mvn_file : %{short_name} %{short_name}-core %{short_name}-bean-collections

%build
# Some tests fail in Koji
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc RELEASE-NOTES.txt
%doc LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11871 |21mr|apache-commons-chain-1.2-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name chain
%global short_name commons-%{base_name}
Name:          apache-commons-chain
Version:       1.2
Release:       21
Summary:       An implementation of the GoF Chain of Responsibility pattern
License:       ASL 2.0
URL:           http://commons.apache.org/%{base_name}/
Source0:       ftp://ftp.gbnet.net/pub/apache/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
# javax.servlet 3.1 api support
Patch0:        %{name}-%{version}-tests-servlet31.patch
# javax.portlet 2.0 api support
Patch1:        %{name}-%{version}-portlet20.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-digester:commons-digester)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(javax.portlet:portlet-api)
BuildRequires:  mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A popular technique for organizing the execution of complex
processing flows is the "Chain of Responsibility" pattern, as
described (among many other places) in the classic "Gang of Four"
design patterns book. Although the fundamental API contracts
required to implement this design pattern are extremely simple,
it is useful to have a base API that facilitates using the pattern,
and (more importantly) encouraging composition of command
implementations from multiple diverse sources.
Towards that end, the Chain API models a computation as a series
of "commands" that can be combined into a "chain". The API for a
command consists of a single method (execute()), which is passed
a "context" parameter containing the dynamic state of the
computation, and whose return value is a boolean that determines
whether or not processing for the current chain has been completed
(true), or whether processing should be delegated to the next
command in the chain (false).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{short_name}-%{version}-src
find . -name '*.class' -delete
find . -name '*.jar' -delete

sed -i 's/\r$//g;' *.txt

%patch0 -p1
%patch1 -p0

# Failed tests:   testDefaut(org.apache.commons.chain.config.ConfigParserTestCase):
# Correct command count expected:<17> but was:<19>
rm -r src/test/org/apache/commons/chain/config/ConfigParserTestCase.java

%pom_remove_dep :myfaces-api
%pom_add_dep org.jboss.spec.javax.faces:jboss-jsf-api_2.1_spec
# Force servlet 3.1 apis
%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet' ]/pom:artifactId" javax.servlet-api
%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet' ]/pom:version" 3.1.0

%mvn_file :%{short_name} %{name}
%mvn_file :%{short_name} %{short_name}

%build

%mvn_build -- -Dmaven.compile.source=1.6 -Dmaven.compile.target=1.6

%install
%mvn_install

%files -f .mfiles
%doc RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11872 |21mr|apache-commons-cli-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-commons-cli
Version:        1.4
Release:        7
Summary:        Command Line Interface Library for Java
License:        ASL 2.0
URL:            http://commons.apache.org/cli/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/commons/cli/source/commons-cli-%{version}-src.tar.gz

# workaround for https://issues.apache.org/jira/browse/CLI-253
Patch0:         CLI-253-workaround.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)

%description
The CLI library provides a simple and easy to use API for working with the
command line arguments and options.

%{?javadoc_package}

%prep
%autosetup -p1 -n commons-cli-%{version}-src

# Compatibility links
%mvn_alias : org.apache.commons:commons-cli
%mvn_file : commons-cli %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc README.md RELEASE-NOTES.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11873 |21mr|apache-commons-codec-1.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-commons-codec
Version:        1.11
Release:        7
Summary:        Implementations of common encoders and decoders
License:        ASL 2.0
URL:            http://commons.apache.org/codec/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/commons/codec/source/commons-codec-%{version}-src.tar.gz
# Data in DoubleMetaphoneTest.java originally has an inadmissible license.
# The author gives MIT in e-mail communication.
Source1:        aspell-mail.txt

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)

%description
Commons Codec is an attempt to provide definitive implementations of
commonly used encoders and decoders. Examples include Base64, Hex,
Phonetic and URLs.

%{?javadoc_package}

%prep
%autosetup -n commons-codec-%{version}-src
cp %{SOURCE1} aspell-mail.txt
sed -i 's/\r//' RELEASE-NOTES*.txt LICENSE.txt NOTICE.txt

%mvn_file : commons-codec %{name}
%mvn_alias : commons-codec:commons-codec

%build
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.codec

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt aspell-mail.txt
%doc RELEASE-NOTES*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11874 |21mr|apache-commons-collections-3.2.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name       collections
%global short_name      commons-%{base_name}

Name:           apache-%{short_name}
Version:        3.2.2
Release:        13
Summary:        Provides new interfaces, implementations and utilities for Java Collections
License:        ASL 2.0
URL:            http://commons.apache.org/%{base_name}/
Source0:        http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz

Patch0:         0001-Port-to-Java-8.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  ant
BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)

%description
The introduction of the Collections API by Sun in JDK 1.2 has been a
boon to quick and effective Java programming. Ready access to powerful
data structures has accelerated development by reducing the need for
custom container classes around each core object. Most Java2 APIs are
significantly easier to use because of the Collections API.
However, there are certain holes left unfilled by Sun's
implementations, and the Jakarta-Commons Collections Component strives
to fulfill them. Among the features of this package are:
- special-purpose implementations of Lists and Maps for fast access
- adapter classes from Java1-style containers (arrays, enumerations) to
Java2-style collections.
- methods to test or create typical set-theory properties of collections
such as union, intersection, and closure.

%package testframework
Summary:        Testframework for %{name}
Requires:       %{name} = %{version}-%{release}

%description testframework
%{summary}.

%package javadoc
Summary:        Javadoc for %{name}
Provides:       %{name}-testframework-javadoc = %{version}-%{release}
Obsoletes:      %{name}-testframework-javadoc < %{version}-%{release}

%description javadoc
%{summary}.

%prep
%setup -q -n %{short_name}-%{version}-src

# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;

%patch0 -p1

# Fix file eof
sed -i 's/\r//' LICENSE.txt PROPOSAL.html README.txt NOTICE.txt

%mvn_package :%{short_name}-testframework testframework
%mvn_file ':%{short_name}{,-testframework}' %{short_name}@1 %{name}@1

%build
# 2017-09-18 mizdebsk: Temporarly disable tests, they stopped working
# after Maven Surefire upgrade to 2.20, need to investigate why.
%mvn_build -- -DskipTests \
  -Dcommons.osgi.symbolicName=org.apache.commons.collections

ant tf.javadoc -Dtf.build.docs=target/site/apidocs/

%mvn_artifact %{short_name}:%{short_name}-testframework:%{version} target/%{short_name}-testframework-%{version}.jar

%install
%mvn_install

%files -f .mfiles
%doc PROPOSAL.html README.txt
%license LICENSE.txt NOTICE.txt

%files testframework -f .mfiles-testframework

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11875 |21mr|apache-commons-collections4-4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-commons-collections4
Summary:        Extension of the Java Collections Framework
Version:        4.4
Release:        1
License:        ASL 2.0

URL:            http://commons.apache.org/proper/commons-collections/
Source0:        http://archive.apache.org/dist/commons/collections/source/commons-collections4-%{version}-src.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.easymock:easymock)

%description
Commons-Collections seek to build upon the JDK classes by providing
new interfaces, implementations and utilities.


%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.


%prep
%setup -q -n commons-collections4-%{version}-src
%mvn_file : commons-collections4 %{name}


%build
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.collections4


%install
%mvn_install


%files -f .mfiles
%doc RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11876 |21mr|apache-commons-compress-1.18-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name       compress
%global short_name      commons-%{base_name}

Name:           apache-%{short_name}
Version:        1.18
Release:        6
Summary:        Java API for working with compressed files and archivers
License:        ASL 2.0
URL:            http://commons.apache.org/proper/commons-compress/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/commons/compress/source/%{short_name}-%{version}-src.tar.gz

Patch0:         0001-Remove-Brotli-compressor.patch
Patch1:         0002-Remove-ZSTD-compressor.patch
Patch2:         0003-Avoid-use-of-internal-Mockito-API.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.osgi:org.osgi.core)
BuildRequires:  mvn(org.tukaani:xz)

%description
The Apache Commons Compress library defines an API for working with
ar, cpio, Unix dump, tar, zip, gzip, XZ, Pack200 and bzip2 files.
In version 1.14 read-only support for Brotli decompression has been added,
but it has been removed form this package.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -n %{short_name}-%{version}-src

# Unavailable Google Brotli library (org.brotli.dec)
%patch0 -p1
%pom_remove_dep org.brotli:dec
rm -r src/{main,test}/java/org/apache/commons/compress/compressors/brotli

# Unavailable ZSTD JNI library
%patch1 -p1
%pom_remove_dep :zstd-jni
rm -r src/{main,test}/java/org/apache/commons/compress/compressors/zstandard
rm src/test/java/org/apache/commons/compress/compressors/DetectCompressorTestCase.java

# Avoid using internal Mockito APIs
%patch2 -p1

# remove osgi tests, we don't have deps for them
%pom_remove_dep org.ops4j.pax.exam:::test
%pom_remove_dep :org.apache.felix.framework::test
%pom_remove_dep :javax.inject::test
%pom_remove_dep :slf4j-api::test
rm src/test/java/org/apache/commons/compress/OsgiITest.java

# Remove test that requires powermock
%pom_remove_dep org.powermock:
%pom_add_dep org.mockito:mockito-core::test
rm src/test/java/org/apache/commons/compress/compressors/z/ZCompressorInputStreamTest.java

%build
%mvn_file  : %{short_name} %{name}
%mvn_alias : commons:
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.compress -DargLine="-Dfile.encoding=UTF8"

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11877 |21mr|apache-commons-configuration-1.10-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name       configuration
%global short_name      commons-%{base_name}

Name:           apache-%{short_name}
Version:        1.10
Release:        14
Summary:        Commons Configuration Package

License:        ASL 2.0
URL:            http://commons.apache.org/%{base_name}/
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-digester:commons-digester)
BuildRequires:  mvn(commons-jxpath:commons-jxpath)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(log4j:log4j:1.2.17)
BuildRequires:  mvn(org.apache.commons:commons-jexl)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.commons:commons-vfs2)
BuildRequires:  mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires:  mvn(xml-apis:xml-apis)
BuildRequires:  mvn(xml-resolver:xml-resolver)


%description
Configuration is a project to provide a generic Configuration
interface and allow the source of the values to vary. It
provides easy typed access to single, as well as lists of
configuration values based on a 'key'.
Right now you can load properties from a simple properties
file, a properties file in a jar, an XML file, JNDI settings,
as well as use a mix of different sources using a
ConfigurationFactory and CompositeConfiguration.
Custom configuration objects are very easy to create now
by just subclassing AbstractConfiguration. This works
similar to how AbstractList works.

%if 0
%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.
%endif


%prep
%setup -q -n %{short_name}-%{version}-src
sed -i 's/\r//' LICENSE.txt NOTICE.txt

%pom_change_dep :log4j ::1.2.17

%build
%mvn_file   : %{short_name} %{name}
%mvn_alias  : org.apache.commons:%{short_name}
# We skip tests because we don't have test deps (dbunit in particular).
# FIXME Javadocs are temporarly disabled due to JDK bug, see
# https://bugzilla.redhat.com/show_bug.cgi?id=1423421
%mvn_build -f -j

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt

%if 0
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11878 |21mr|apache-commons-csv-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-commons-csv
Version:        1.7
Release:        2
Summary:        Utilities to assist with handling of CSV files
License:        ASL 2.0
URL:            https://commons.apache.org/proper/commons-csv/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/commons/csv/source/commons-csv-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.mockito:mockito-all)

%description
Commons CSV was started to unify a common and simple interface for
reading and writing CSV files under an ASL license.

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n commons-csv-%{version}-src
sed -i 's/\r//' *.txt
find -name profile.jacoco -delete

# Unwanted plugins
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-checkstyle-plugin

# unwanted dependency
%pom_remove_dep :h2
rm src/test/java/org/apache/commons/csv/CSVPrinterTest.java

%mvn_file ":{*}" %{name} @1
%mvn_alias : commons-csv:

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11879 |21mr|apache-commons-daemon-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name   daemon
%global short_name  commons-%{base_name}

Name:           apache-commons-daemon
Summary:        Defines API to support an alternative invocation mechanism
Version:        1.2.0
Release:        2
License:        ASL 2.0
Group:          Development/Java
URL:            http://commons.apache.org/%{base_name}
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz

Patch0:         00-configure-java-os.patch

BuildRequires:  autoconf
BuildRequires:  dos2unix
BuildRequires:  gcc
BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  make
BuildRequires:  xmlto
BuildRequires:  docbook-dtd412-xml
BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)

%description
The scope of this package is to define an API in line with the current
Java Platform APIs to support an alternative invocation mechanism
which could be used instead of the public static void main(String[])
method.  This specification covers the behavior and life cycle of what
we define as Java daemons, or, in other words, non interactive
Java applications.


%package        jsvc
Summary:        Java daemon launcher
Provides:       jsvc = 1:%{version}-%{release}

%description    jsvc
Java daemon launcher.


%package        javadoc
Summary:        API documentation for %{name}
Requires:       jpackage-utils
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description    javadoc
API documentation for apache-commons-daemon.


%prep
%setup -q -n %{short_name}-%{version}-src
%patch0 -p1

# mark example files as non-executable
chmod 644 src/samples/*

# convert to correct end-of-line format
dos2unix -k -n src/samples/ProcrunServiceInstall.cmd src/samples/ProcrunServiceInstall.cmd.new
rm src/samples/ProcrunServiceInstall.cmd
mv src/samples/ProcrunServiceInstall.cmd.new src/samples/ProcrunServiceInstall.cmd

# build manpage for jsvc
cd src/native/unix
xmlto man man/jsvc.1.xml


%build
# build native jsvc
pushd src/native/unix
sh support/buildconf.sh

%configure --with-java=%{java_home}
%make_build
popd

# build jars
%mvn_file  : %{short_name} %{name}
%mvn_alias : org.apache.commons:%{short_name}
%mvn_build


%install
# install native jsvc
install -Dpm 755 src/native/unix/jsvc $RPM_BUILD_ROOT%{_bindir}/jsvc
install -Dpm 644 src/native/unix/jsvc.1 $RPM_BUILD_ROOT%{_mandir}/man1/jsvc.1

%mvn_install


%files -f .mfiles
%doc LICENSE.txt PROPOSAL.html NOTICE.txt RELEASE-NOTES.txt src/samples
%doc src/docs/*

%files jsvc
%doc LICENSE.txt NOTICE.txt
%{_bindir}/jsvc
%{_mandir}/man1/jsvc.1*

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11880 |21mr|apache-commons-dbcp-1.4-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name       dbcp
%global short_name      commons-%{base_name}

Name:             apache-%{short_name}
Version:          1.4
Release:          27
Summary:          Apache Commons DataBase Pooling Package
License:          ASL 2.0
URL:              http://commons.apache.org/%{base_name}/
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz

Patch0:           jdbc41.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(commons-pool:commons-pool)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)

%description
Many Apache projects support interaction with a relational database. Creating a
new connection for each user can be time consuming (often requiring multiple
seconds of clock time), in order to perform a database transaction that might
take milliseconds. Opening a connection per user can be unfeasible in a
publicly-hosted Internet application where the number of simultaneous users can
be very large. Accordingly, developers often wish to share a "pool" of open
connections between all of the application's current users. The number of users
actually performing a request at any given time is usually a very small
percentage of the total number of active users, and during request processing
is the only time that a database connection is required. The application itself
logs into the DBMS, and handles any user account issues internally.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{short_name}-%{version}-src
iconv -f iso8859-1 -t utf-8 RELEASE-NOTES.txt > RELEASE-NOTES.txt.conv && mv -f RELEASE-NOTES.txt.conv RELEASE-NOTES.txt

%patch0

%mvn_alias : org.apache.commons:%{short_name}
%mvn_file : %{short_name} %{name}

%build
# Skip tests, tomcat:naming-java and tomcat:naming-common not available
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.dbcp

%install
%mvn_install

%files -f .mfiles
%doc README.txt RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11881 |21mr|apache-commons-dbutils-1.5-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name      commons-dbutils

Name:             apache-%{short_name}
Version:          1.5
Release:          17
Summary:          Apache Commons DbUtils Package
License:          ASL 2.0
URL:              http://commons.apache.org/dbutils/
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://www.apache.org/dist/commons/dbutils/source/%{short_name}-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.hamcrest:hamcrest-all)
BuildRequires:  mvn(org.mockito:mockito-core)

%description
DbUtils is a small set of classes designed to make working with JDBC easier. 
JDBC resource cleanup code is mundane, error prone work so these classes 
abstract out all of the cleanup tasks from your code leaving you with what you 
really wanted to do with JDBC in the first place: query and update data.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{short_name}-%{version}-src
sed -i 's/\r//' *.txt

# Compatibility links
%mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}"
%mvn_file :commons-dbutils %{short_name} %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11882 |21mr|apache-commons-digester-2.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name commons-digester

Name:          apache-%{short_name}
Version:       2.1
Release:       13
Summary:       XML to Java object mapping module
License:       ASL 2.0
URL:           http://commons.apache.org/digester/
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:       http://archive.apache.org/dist/commons/digester/source/%{short_name}-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)

%description
Many projects read XML configuration files to provide initialization of
various Java objects within the system. There are several ways of doing this,
and the Digester component was designed to provide a common implementation
that can be used in many different projects

%package javadoc
Summary:       API documentation for %{name}

%description javadoc
This package contains the %{summary}.

%prep
%setup -q -n %{short_name}-%{version}-src

# Compatibility links
%mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}"
%mvn_file :%{short_name} %{short_name} %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11883 |21mr|apache-commons-discovery-0.5-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name  discovery
%global short_name commons-%{base_name}

Name:           apache-%{short_name}
Version:        0.5
Release:        24
Epoch:          2
Summary:        Apache Commons Discovery
License:        ASL 2.0
URL:            http://commons.apache.org/%{base_name}
Source0:        http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Patch0:         %{name}-addosgimanifest.patch
Patch1:         %{name}-remove-unreliable-test.patch
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)

%description
The Discovery component is about discovering, or finding, implementations for
pluggable interfaces.  Pluggable interfaces are specified with the intent that
multiple implementations are, or will be, available to provide the service
described by the interface.  Discovery provides facilities for finding and
instantiating classes, and for lifecycle management of singleton (factory)
classes.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{short_name}-%{version}-src
%patch0
%patch1 -p1
%mvn_file : %{short_name} %{name}

%pom_add_plugin "org.apache.maven.plugins:maven-javadoc-plugin" . "
<configuration>
  <additionalparam>-Xdoclint:none</additionalparam>
</configuration>
"

%build
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.discovery

%install
%mvn_install

%files -f .mfiles
%doc RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11884 |21mr|apache-commons-el-1.0-43
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global base_name       el
%global short_name      commons-%{base_name}


Name:           apache-%{short_name}
Version:        1.0
Release:        43
Summary:        The Apache Commons Extension Language
License:        ASL 1.1
URL:            http://commons.apache.org/%{base_name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Source1:        http://repo1.maven.org/maven2/%{short_name}/%{short_name}/%{version}/%{short_name}-%{version}.pom
Patch0:         %{short_name}-%{version}-license.patch
Patch1:         %{short_name}-eclipse-manifest.patch
Patch2:         %{short_name}-enum.patch
BuildRequires:  ant
BuildRequires:  junit
BuildRequires:  javapackages-local
BuildRequires:  apache-commons-logging
BuildRequires:  glassfish-jsp-api
BuildRequires:  glassfish-servlet-api

%description
An implementation of standard interfaces and abstract classes for
javax.servlet.jsp.el which is part of the JSP 2.0 specification.

%package        javadoc
Summary:        API documentation for %{name}


%description    javadoc
%{summary}.


%prep
%setup -q -n %{short_name}-%{version}-src
%patch0 -p1 -b .license
%patch1 -p1
%patch2 -p1

# remove all precompiled stuff
find . -type f -name "*.jar" -exec rm -f {} \;

cat > build.properties <<EOBP
build.compiler=modern
junit.jar=$(build-classpath junit)
servlet-api.jar=$(build-classpath glassfish-servlet-api)
jsp-api.jar=$(build-classpath glassfish-jsp-api)
servletapi.build.notrequired=true
jspapi.build.notrequired=true
EOBP

# workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1015612
find . -iname 'ELParser.java' -exec sed -i 's:enum:enum1:g' \{\} \;

%build
export CLASSPATH=
export OPT_JAR_LIST=:
%{ant} \
  -Dfinal.name=%{short_name} \
  -Dj2se.javadoc=%{_javadocdir}/java \
  jar javadoc


%install
%mvn_artifact %{SOURCE1} dist/%{short_name}.jar
%mvn_alias "commons-el:commons-el" "org.apache.commons:commons-el"
%mvn_file : %{name} %{short_name}
%mvn_install -J dist/docs/api


%files -f .mfiles
%license LICENSE.txt
%doc STATUS.html

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11885 |21mr|apache-commons-email-1.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name      commons-email

Name:             apache-%{short_name}
Version:          1.5
Release:          6
Summary:          Apache Commons Email Package
License:          ASL 2.0
URL:              http://commons.apache.org/proper/%{short_name}/
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://archive.apache.org/dist/commons/email/source/%{short_name}-%{version}-src.tar.gz

# Disable tests that require Internet access
Patch0:           disable-internet-tests.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(com.sun.mail:javax.mail)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.powermock:powermock-api-easymock)
BuildRequires:  mvn(org.powermock:powermock-module-junit4)
BuildRequires:  mvn(org.slf4j:slf4j-jdk14)
BuildRequires:  mvn(org.subethamail:subethasmtp)

%description
Commons-Email aims to provide an API for sending email. It is built on top of 
the JavaMail API, which it aims to simplify.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{short_name}-%{version}-src
%patch0

# Compatibility links
%mvn_alias "org.apache.commons:commons-email" "commons-email:commons-email"
%mvn_file :commons-email %{short_name} %{name}

# Javascript in Javadoc mis-detection
sed -i -e '/<script>/s/</&lt;/' src/main/java/org/apache/commons/mail/ImageHtmlEmail.java

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc RELEASE-NOTES.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11886 |21mr|apache-commons-exec-1.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name exec
%global short_name commons-%{base_name}

Name:           apache-commons-exec
Version:        1.3
Release:        12
Summary:        Java library to reliably execute external processes from within the JVM
License:        ASL 2.0
URL:            http://commons.apache.org/exec/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)

# Tests execute /usr/bin/ping
BuildRequires:  iputils

%description
Commons Exec is a library for dealing with external process execution and
environment management in Java.


%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{short_name}-%{version}-src

# Fix wrong end-of-line encoding
for file in LICENSE.txt NOTICE.txt RELEASE-NOTES.txt STATUS; do
  sed -i.orig "s/\r//" $file && \
  touch -r $file.orig $file && \
  rm $file.orig
done

# Shell scripts used for unit tests must be executable (see
# http://commons.apache.org/exec/faq.html#environment-testing)
chmod a+x src/test/scripts/*.sh

# Skip Exec57Test (it is unstable), see rhbz#1202260
find -name Exec57Test.java -delete

%mvn_file :%{short_name} %{short_name} %{name}


%build
# -f (disabled tests): "DEBUG: ping: socket: Operation not permitted" in ABF
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.exec

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc STATUS RELEASE-NOTES.txt


%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11887 |21mr|apache-commons-fileupload-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without  portlet

Name:           apache-commons-fileupload
Version:        1.4
Release:        2
Summary:        API to work with HTML file upload
License:        ASL 2.0
URL:            http://commons.apache.org/fileupload/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/commons/fileupload/source/commons-fileupload-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
%if %{with portlet}
BuildRequires:  mvn(javax.portlet:portlet-api)
%endif

%description
The javax.servlet package lacks support for RFC-1867, HTML file
upload.  This package provides a simple to use API for working with
such data.  The scope of this package is to create a package of Java
utility classes to read multipart/form-data within a
javax.servlet.http.HttpServletRequest.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

# -----------------------------------------------------------------------------

%prep
%setup -q -n commons-fileupload-%{version}-src
sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' NOTICE.txt

%if %{with portlet}
# fix gId
sed -i "s|<groupId>portlet-api</groupId>|<groupId>javax.portlet</groupId>|" pom.xml
%else
%pom_remove_dep portlet-api:portlet-api
%pom_xpath_remove pom:properties/pom:commons.osgi.import
%pom_xpath_remove pom:properties/pom:commons.osgi.dynamicImport
rm -r src/main/java/org/apache/commons/fileupload/portlet
%endif

# -----------------------------------------------------------------------------

%mvn_file ":{*}" @1 %{name}
%mvn_alias : org.apache.commons:

%build
# tests fail to compile because they use an obsolete version of servlet API (2.4)
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.fileupload

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt

# -----------------------------------------------------------------------------


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11888 |21mr|apache-commons-io-2.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-commons-io
Epoch:          1
Version:        2.6
Release:        7
Summary:        Utilities to assist with developing IO functionality
License:        ASL 2.0
URL:            http://commons.apache.org/io
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/commons/io/source/commons-io-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)

%description
Commons-IO contains utility classes, stream implementations,
file filters, and endian classes. It is a library of utilities
to assist with developing IO functionality.

%{?javadoc_package}

%prep
%setup -q -n commons-io-%{version}-src
sed -i 's/\r//' *.txt

%build
%mvn_file  : commons-io %{name}
%mvn_alias : org.apache.commons:

# NOTE: tests *may* fail because commons-io is on surefire's classpath and causes
# tests to be run against the system version and not the one we just built
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.io

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc RELEASE-NOTES.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11889 |21mr|apache-commons-javaflow-1.0-0.17.20120509SNAPSHOT
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name  javaflow
%global short_name commons-%{base_name}
%global namedreltag -SNAPSHOT
%global namedversion %{version}%{?namedreltag}
Name:          apache-commons-javaflow
Version:       1.0
Release:       0.17.20120509SNAPSHOT
Summary:       Commons Javaflow
License:       ASL 2.0
Url:           http://commons.apache.org/sandbox/javaflow/
# svn export http://svn.apache.org/repos/asf/commons/sandbox/javaflow/trunk/  commons-javaflow-1.0-SNAPSHOT
# tar czf commons-javaflow-1.0-SNAPSHOT-src-svn.tar.gz commons-javaflow-1.0-SNAPSHOT
Source0:       %{short_name}-%{namedversion}-src-svn.tar.gz

BuildRequires: mvn(asm:asm)
BuildRequires: mvn(asm:asm-analysis)
BuildRequires: mvn(asm:asm-commons)
BuildRequires: mvn(asm:asm-tree)
BuildRequires: mvn(asm:asm-util)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(junit-addons:junit-addons)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.bcel:bcel)
BuildRequires: mvn(org.apache.commons:commons-jci-core)
BuildRequires: maven-local

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Sometimes it is useful if we can capture the state of the application,
its stack of function calls, which includes local variables, the global
variables and the program counter, and save them into an object. If
this object would give us the ability to restart the processing from
the point stored in it.
A continuation is exactly the type of object that we need. Think of a
continuation as an object that, for a given point in your program,
contains a snapshot of the stack trace, including all the local
variables, and the program counter. You can not only store these
things in the continuation object, but also restore the execution
of the program from a continuation object. This means that the stack
trace and the program counter of the running program become the ones
stored in a continuation.
Continuations are powerful concepts from the world of functional
languages, like Scheme, but they are becoming popular in other
languages as well.

%package ant
Summary:       Development files for Commons Javaflow
Requires:      ant
Requires:      %{name} = %{version}-%{release}

%description ant
This package enables support for the Commons Javaflow ant tasks.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{short_name}-%{namedversion}
find . -name "*.class" -delete
find . -name "*.jar" -delete

%pom_remove_parent
#sed -i "s|commons-sandbox-parent|commons-parent|" pom.xml
%pom_xpath_inject "pom:project" "<groupId>org.apache.commons</groupId>"

%pom_xpath_inject "pom:dependencies/pom:dependency[pom:artifactId = 'ant' ]" "<scope>provided</scope>"

%mvn_file :%{short_name} %{name}
%mvn_file :%{short_name} %{short_name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

mkdir -p %{buildroot}%{_sysconfdir}/ant.d
echo "ant %{short_name}" > %{short_name}
install -p -m 644 %{short_name} %{buildroot}%{_sysconfdir}/ant.d/%{short_name}

%files -f .mfiles
%doc CREDITS.txt TODO.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt

%files ant
%config(noreplace) %{_sysconfdir}/ant.d/%{short_name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11890 |21mr|apache-commons-jci-1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     groovy

%global base_name  jci
%global short_name commons-%{base_name}
%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}

Name:          apache-commons-jci
Version:       1.1
Release:       9
Summary:       Commons Java Compiler Interface
License:       ASL 2.0
URL:           http://commons.apache.org/jci/
Source0:       http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{namedversion}-src.tar.gz
Patch0:        %{name}-1.1-janino27.patch

BuildRequires: maven-local
BuildRequires: mvn(asm:asm)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
%if %{with groovy}
BuildRequires: mvn(org.codehaus.groovy:groovy)
%endif
BuildRequires: mvn(org.codehaus.janino:janino)
BuildRequires: mvn(org.eclipse.jdt.core.compiler:ecj)
BuildRequires: mvn(rhino:js)

Requires:      %{name}-core = %{version}-%{release}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

#* jsr199 Commons JCI compiler implementation for JDK 1.6 and up.

%description
JCI is a java compiler interface featuring a compiling class loader.
The current implementation supports compilation via the following
compilers:

* eclipse
* groovy
* janino
* rhino

%package core
Summary:       Commons Java Compiler Interface - core

%description core
Commons JCI core interfaces and implementations.

%package fam
Summary:       Commons Java Compiler Interface - FAM

%description fam
Commons JCI FileAlterationMonitor (FAM) to
monitor local file systems and get notified
about changes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

# compilers

%package eclipse
Summary:       Commons Java Compiler Interface - eclipse

%description eclipse
Commons JCI compiler implementation for the eclipse compiler.

%if %{with groovy}
%package groovy
Summary:       Commons Java Compiler Interface - groovy

%description groovy
Commons JCI compiler implementation for the groovy compiler.
%endif

%package janino
Summary:       Commons Java Compiler Interface - janino

%description janino
Commons JCI compiler implementation for the janino compiler.

%package rhino
Summary:       Commons Java Compiler Interface - rhino

%description rhino
Commons JCI compiler implementation for rhino JavaScript.

%prep
%setup -q -n %{short_name}-%{namedversion}-src
find . -name "*.class" -delete
find . -name "*.jar" -delete

%patch0 -p1

%if %{without groovy}
# disable groovy support
%pom_disable_module compilers/groovy
%endif

# require old version of jdependency
%pom_disable_module examples

%pom_xpath_remove "pom:build/pom:extensions"

%pom_xpath_set "pom:properties/pom:maven.compiler.source" 1.6
%pom_xpath_set "pom:properties/pom:maven.compiler.target" 1.6

%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-site-plugin

%if %{with groovy}
%pom_xpath_set "pom:dependencyManagement/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:artifactId" groovy
%pom_xpath_set "pom:dependencyManagement/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:version" 1.8.9
%pom_xpath_set "pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:artifactId" groovy compilers/groovy
%pom_xpath_inject "pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']" "<version>1.8.9</version>" compilers/groovy
%endif

# Fix installation directory      
%mvn_file :%{short_name}-core    %{short_name}/%{short_name}-core
%mvn_file :%{short_name}-fam     %{short_name}/%{short_name}-fam
%mvn_file :%{short_name}-eclipse %{short_name}/%{short_name}-eclipse
%if %{with groovy}
%mvn_file :%{short_name}-groovy  %{short_name}/%{short_name}-groovy
%endif
%mvn_file :%{short_name}-janino  %{short_name}/%{short_name}-janino
%mvn_file :%{short_name}-rhino   %{short_name}/%{short_name}-rhino

%build

# random tests failures
%mvn_build -s -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles-%{short_name}
%dir %{_javadir}/%{short_name}
%doc README.txt TODO.txt
%license LICENSE.txt NOTICE.txt

%files core -f .mfiles-%{short_name}-core

%files fam -f .mfiles-%{short_name}-fam

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt

%files eclipse -f .mfiles-%{short_name}-eclipse

%if %{with groovy}
%files groovy -f .mfiles-%{short_name}-groovy
%endif

%files janino -f .mfiles-%{short_name}-janino

%files rhino -f .mfiles-%{short_name}-rhino


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11891 |21mr|apache-commons-jexl-2.1.1-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global jarname commons-jexl
%global compatver 2.1.0

Name:           apache-%{jarname}
Version:        2.1.1
Release:        23
Summary:        Java Expression Language (JEXL)
License:        ASL 2.0
URL:            http://commons.apache.org/jexl
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/commons/jexl/source/%{jarname}-%{version}-src.tar.gz

# Patch to fix test failure with junit 4.11
Patch0:         001-Fix-tests.patch
# Fix javadoc build
Patch1:         apache-commons-jexl-javadoc.patch
Patch2:         0001-Port-to-current-javacc.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.codehaus.mojo:javacc-maven-plugin)

Provides:       %{jarname} = %{version}-%{release}

%description
Java Expression Language (JEXL) is an expression language engine which can be
embedded in applications and frameworks.  JEXL is inspired by Jakarta Velocity
and the Expression Language defined in the JavaServer Pages Standard Tag
Library version 1.1 (JSTL) and JavaServer Pages version 2.0 (JSP).  While
inspired by JSTL EL, it must be noted that JEXL is not a compatible
implementation of EL as defined in JSTL 1.1 (JSR-052) or JSP 2.0 (JSR-152).
For a compatible implementation of these specifications, see the Commons EL
project.

JEXL attempts to bring some of the lessons learned by the Velocity community
about expression languages in templating to a wider audience.  Commons Jelly
needed Velocity-ish method access, it just had to have it.


%package javadoc
Summary:        Javadocs for %{name}
Requires:       jpackage-utils
Provides:       %{jarname}-javadoc = %{version}-%{release}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{jarname}-%{version}-src
%patch0 -p1 -b .test
%patch1 -p1 -b .javadoc
%patch2 -p1

# Java 1.6 contains bsf 3.0, so we don't need the dependency in the pom.xml file
%pom_remove_dep org.apache.bsf:bsf-api
find \( -name '*.jar' -o -name '*.class' \) -delete
# Fix line endings
find -name '*.txt' -exec sed -i 's/\r//' '{}' +

# Drop "-SNAPSHOT" from version
%pom_xpath_set "pom:project/pom:version" %{compatver} jexl2-compat
%pom_xpath_set "pom:dependency[pom:artifactId='commons-jexl']/pom:version" %{version} jexl2-compat

echo "
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.fedoraproject</groupId>
  <artifactId>commons-jexl-aggegator</artifactId>
  <version>%{version}</version>
  <packaging>pom</packaging>
  <modules>
    <module>.</module>
    <module>jexl2-compat</module>
  </modules>
</project>" >>aggregator-pom.xml
%mvn_package :commons-jexl-aggegator __noinstall

%build
%mvn_build -- -f aggregator-pom.xml

%install
%mvn_install


%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11892 |21mr|apache-commons-jxpath-1.3-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-commons-jxpath
Version:        1.3
Release:        33
Summary:        Simple XPath interpreter
License:        ASL 2.0
URL:            http://commons.apache.org/jxpath/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/commons/jxpath/source/commons-jxpath-%{version}-src.tar.gz

Patch0:         commons-jxpath-mockrunner.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(javax.servlet:jsp-api)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(jdom:jdom)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(xerces:xercesImpl)
BuildRequires:  mvn(xml-apis:xml-apis)

%description
Defines a simple interpreter of an expression language called XPath.
JXPath applies XPath expressions to graphs of objects of all kinds:
JavaBeans, Maps, Servlet contexts, DOM etc, including mixtures thereof.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n commons-jxpath-%{version}-src
%patch0 -p1

%mvn_file ":{*}" %{name} @1
%mvn_alias : org.apache.commons:

%pom_xpath_inject 'pom:properties' \
  '<commons.osgi.import>org.apache.commons.beanutils;resolution:="optional",org.jdom*;resolution:="optional",org.w3c.dom;resolution:="optional",javax.servlet*;resolution:="optional",*</commons.osgi.import>'

%build
# we are skipping tests because we don't have com.mockrunner in repos yet
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.jxpath

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11893 |21mr|apache-commons-lang-2.6-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global base_name       lang
%global short_name      commons-%{base_name}

Name:           apache-%{short_name}
Version:        2.6
Epoch:			2
Release:        25
Summary:        Provides a host of helper utilities for the java.lang API
License:        ASL 2.0
URL:            http://commons.apache.org/%{base_name}
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Patch1:         0002-Fix-FastDateFormat-for-Java-7-behaviour.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  maven-local
BuildRequires:  apache-commons-parent
BuildRequires:  maven-surefire-provider-junit

%description
The standard Java libraries fail to provide enough methods for
manipulation of its core classes. The Commons Lang Component provides
these extra methods.
The Commons Lang Component provides a host of helper utilities for the
java.lang API, notably String manipulation methods, basic numerical
methods, object reflection, creation and serialization, and System
properties. Additionally it contains an inheritable enum type, an
exception structure that supports multiple types of nested-Exceptions
and a series of utilities dedicated to help with building methods, such
as hashCode, toString and equals.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.

%prep
%setup -q -n %{short_name}-%{version}-src
%patch1 -p1
sed -i 's/\r//' *.txt *.html

# "enum" is used as a Java identifier, which is prohibited in Java >= 1.5
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . "
    <configuration><source>1.3</source></configuration>"


%mvn_file  : %{name} %{short_name}
%mvn_alias : org.apache.commons: %{base_name}:%{base_name}
# this package needs to be compiled with -source 1.3 option
%mvn_config buildSettings/compilerSource 1.3

%build
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.lang

%install
%mvn_install

%files -f .mfiles
%doc PROPOSAL.html RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11894 |21mr|apache-commons-lang3-3.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-commons-lang3
Version:        3.8.1
Release:        4
Summary:        Provides a host of helper utilities for the java.lang API
License:        ASL 2.0
URL:            http://commons.apache.org/lang
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/commons/lang/source/commons-lang3-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:) >= 47
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)

%description
The standard Java libraries fail to provide enough methods for
manipulation of its core classes. The Commons Lang Component provides
these extra methods.
The Commons Lang Component provides a host of helper utilities for the
java.lang API, notably String manipulation methods, basic numerical
methods, object reflection, creation and serialization, and System
properties. Additionally it contains an inheritable enum type, an
exception structure that supports multiple types of nested-Exceptions
and a series of utilities dedicated to help with building methods, such
as hashCode, toString and equals.

With version of commons-lang 3.x, developers decided to change API and
therefore created differently named artifact and jar files. This is
the new version, while apache-commons-lang is the compatibility
package.

%{?javadoc_package}

%prep
%autosetup -n commons-lang3-%{version}-src

%mvn_file : %{name} commons-lang3

# testParseSync() test fails on ARM and PPC64LE for unknown reason
sed -i 's/\s*public void testParseSync().*/@org.junit.Ignore\n&/' \
    src/test/java/org/apache/commons/lang3/time/FastDateFormatTest.java

# non-deterministic tests fail randomly
rm src/test/java/org/apache/commons/lang3/RandomStringUtilsTest.java

%build
# FIXME tests run against current system version of commons-lang3, not the one being built
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc RELEASE-NOTES.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11895 |21mr|apache-commons-launcher-1.1-24.20100521svn936225
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name commons-launcher

Name:          apache-%{short_name}
Version:       1.1
Release:       24.20100521svn936225
Summary:       A cross platform Java application launcher
License:       ASL 2.0
URL:           http://commons.apache.org/launcher/

# The last release of this package was many years ago and in that time there
# have only been two extremely minor changes to the source code, [1] and [2].
# It seems a new release is unlikely to be forthcoming in the near future.
# 
# [1] - http://svn.apache.org/viewvc/commons/proper/launcher/trunk/src/java/org/apache/commons/launcher/ChildMain.java?r1=138801&r2=138803
# [2] - http://svn.apache.org/viewvc/commons/proper/launcher/trunk/src/java/org/apache/commons/launcher/Launcher.java?r1=138801&r2=138802
# 
# During that time however, support for the maven 2 build system has been
# added. So in order to make my life easier as a maintainer, with regard to
# supporting OSGi manifests and installing poms, etc, I have elected to package
# a maven2 supporting snapshot instead of maintaining patches in our SRPM. As
# an added bonus, the snapshot also has more accurate javadocs.
# 
# How to generate source tarball from source control:
#  $ svn export -r 936225 http://svn.apache.org/repos/asf/commons/proper/launcher/trunk/ commons-launcher-1.1-src
#  $ tar -zcf commons-launcher-1.1-src.tar.gz commons-launcher-1.1-src
Source0:       %{short_name}-%{version}-src.tar.gz

# remove unnecessary build dependency on ant-optional (ant no longer ships this jar)
Patch0:        %{short_name}-pom.patch

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)

%description
Commons-launcher eliminates the need for a batch or shell script to launch a 
Java class. Some situations where elimination of a batch or shell script may 
be desirable are:

* You want to avoid having to determining where certain application paths are
e.g. your application's home directory, etc. Determining this dynamically in 
a Windows batch scripts is very tricky on some versions of Windows or when 
soft links are used on Unix platforms.

* You want to avoid having to handle native file and path separators or native
path quoting issues.

* You need to enforce certain system properties.

* You want to allow users to pass in custom JVM arguments or system properties
without having to parse and reorder arguments in your script. This can be 
tricky and/or messy in batch and shell scripts.

* You want to bootstrap system properties from a configuration file instead 
hard-coding them in your batch and shell scripts.

* You want to provide localized error messages which is very tricky to do in
batch and shell scripts.

%package javadoc
Summary:       API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{short_name}-%{version}-src

# apply patches
%patch0 -p0 -b .orig

sed -i 's/\r//' README.txt LICENSE.txt NOTICE.txt
sed -i "s|\<groupId\>ant\<\/groupId\>|<groupId>org.apache.ant</groupId>|g" build.xml

# This class is for working around PATH problems on Windows platforms only but
# prevents building here because OSGi does not permit classes in the default
# package. Remove for now, to appease newer maven-bundle-plugin versions.
rm src/java/LauncherBootstrap.java

# Compatibility links
%mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}"
%mvn_file :commons-launcher %{short_name} %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc README.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11896 |21mr|apache-commons-logging-1.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without  avalon

Name:           apache-commons-logging
Version:        1.2
Release:        18
Epoch:          2
Summary:        Apache Commons Logging
License:        ASL 2.0
Group:          Development/Java
URL:            http://commons.apache.org/logging
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/commons/logging/source/commons-logging-%{version}-src.tar.gz
Source2:        http://mirrors.ibiblio.org/pub/mirrors/maven2/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.pom

Patch0:         0001-Generate-different-Bundle-SymbolicName-for-different.patch
Patch1:         0002-Port-to-maven-jar-plugin-3.0.0.patch

BuildRequires:  maven-local
%if %{with avalon}
BuildRequires:  mvn(avalon-framework:avalon-framework-api)
BuildRequires:  mvn(avalon-framework:avalon-framework-impl)
BuildRequires:  mvn(logkit:logkit)
%endif
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:12)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)

%description
The commons-logging package provides a simple, component oriented
interface (org.apache.commons.logging.Log) together with wrappers for
logging systems. The user can choose at runtime which system they want
to use. In addition, a small number of basic implementations are
provided to allow users to use the package standalone.
commons-logging was heavily influenced by Avalon's Logkit and Log4J. The
commons-logging abstraction is meant to minimize the differences between
the two, and to allow a developer to not tie himself to a particular
logging implementation.

%{?javadoc_package}

%prep
%autosetup -p1 -n commons-logging-%{version}-src

%if %{with avalon}
# Sent upstream https://issues.apache.org/jira/browse/LOGGING-143
%pom_remove_dep :avalon-framework
%pom_add_dep avalon-framework:avalon-framework-api:4.3:provided
%pom_add_dep avalon-framework:avalon-framework-impl:4.3:test
%pom_xpath_inject "pom:dependency[pom:artifactId='logkit']" '<scope>provided</scope>'

%else
%pom_remove_dep -r :avalon-framework
%pom_remove_dep -r :logkit
rm -r src/test/java/org/apache/commons/logging/{avalon,logkit}
rm src/main/java/org/apache/commons/logging/impl/AvalonLogger.java
rm src/main/java/org/apache/commons/logging/impl/LogKitLogger.java
%endif

%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-scm-publish-plugin

sed -i 's/\r//' RELEASE-NOTES.txt LICENSE.txt NOTICE.txt

# for compatibility reasons
%mvn_file ":commons-logging{*}" "commons-logging@1" "%{name}@1"
%mvn_alias ":commons-logging{*}" "org.apache.commons:commons-logging@1" "apache:commons-logging@1"

# Remove log4j12 tests
rm -rf src/test/java/org/apache/commons/logging/log4j/log4j12

%build
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.logging

# The build produces more artifacts from one pom
%mvn_artifact %{SOURCE2} target/commons-logging-%{version}-api.jar
%mvn_artifact commons-logging:commons-logging-adapters:%{version} target/commons-logging-%{version}-adapters.jar

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc PROPOSAL.html RELEASE-NOTES.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11897 |21mr|apache-commons-math-3.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name commons-math3

Name:             apache-commons-math
Version:          3.6.1
Release:          1
Summary:          Java library of lightweight mathematics and statistics components
License:          ASL 1.1 and ASL 2.0 and BSD
URL:              http://commons.apache.org/math/
Source0:          http://www.apache.org/dist/commons/math/source/%{short_name}-%{version}-src.tar.gz

BuildRequires:    java-devel
BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.commons:commons-parent:pom:)
Requires:         jpackage-utils
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Commons Math is a library of lightweight, self-contained mathematics and
statistics components addressing the most common problems not available in the
Java programming language or Commons Lang.


%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%autosetup -n %{short_name}-%{version}-src -p1

# Compatibility links
%mvn_alias "org.apache.commons:%{short_name}" "%{short_name}:%{short_name}"
%mvn_file :%{short_name} %{short_name} %{name}


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%doc NOTICE.txt RELEASE-NOTES.txt
%license LICENSE.txt


%files javadoc -f .mfiles-javadoc
%doc NOTICE.txt
%license LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11898 |21mr|apache-commons-modeler-2.0.1-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name       modeler
%global short_name      commons-%{base_name}

Name:             apache-%{short_name}
Version:          2.0.1
Release:          24
Summary:          Model MBeans utility classes
License:          ASL 2.0
URL:              http://commons.apache.org/%{base_name}/
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
# POM file based on the one from an unreleased upstream snapstream
Source1:          pom.xml

BuildRequires:  maven-local
BuildRequires:  mvn(commons-digester:commons-digester)
BuildRequires:  mvn(commons-logging:commons-logging-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(xml-apis:xml-apis)


%description
Commons Modeler makes the process of setting up JMX (Java Management
Extensions) MBeans easier by configuring the required meta data using an XML
descriptor. In addition, Modeler provides a factory mechanism to create the
actual Model MBean instances.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{short_name}-%{version}-src
sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' RELEASE-NOTES.txt
sed -i 's/\r//' NOTICE.txt

# Copy pom file into place
cp -p %{SOURCE1} .

# Remove redundant dep on mx4j
%pom_remove_dep mx4j:mx4j-jmx

# Fix ant dependency
%pom_remove_dep ant:ant
%pom_add_dep org.apache.ant:ant:1.8

%mvn_alias : org.apache.commons:%{short_name}
%mvn_file : %{name} %{short_name}

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11899 |21mr|apache-commons-net-3.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global base_name    net
%global short_name   commons-%{base_name}

Name:           apache-%{short_name}
Version:        3.6
Release:        7
Summary:        Internet protocol suite Java library
License:        ASL 2.0
URL:            http://commons.apache.org/%{base_name}/
Source0:        http://archive.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)


%description
This is an Internet protocol suite Java library originally developed by
ORO, Inc.  This version supports Finger, Whois, TFTP, Telnet, POP3, FTP,
NNTP, SMTP, and some miscellaneous protocols like Time and Echo as well
as BSD R command support. The purpose of the library is to provide
fundamental protocol access, not higher-level abstractions.

%package javadoc
Summary:    API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{short_name}-%{version}-src

# This test fails with "Connection timed out"
rm src/test/java/org/apache/commons/net/time/TimeTCPClientTest.java
# Fails in Koji with "Address already in use"
rm src/test/java/org/apache/commons/net/tftp/TFTPServerPathTest.java

%mvn_file  : %{short_name} %{name}
%mvn_alias : org.apache.commons:%{short_name}

%build
%mvn_build -- -Dcommons.osgi.symbolicName=org.apache.commons.net

%install
%mvn_install


%files -f .mfiles
%doc README.md RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11900 |21mr|apache-commons-ognl-3.0.2-17.20120313svn1102435
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name commons-ognl

Name:          apache-%{short_name}
Version:       3.0.2
Release:       17.20120313svn1102435
Summary:       Object Graph Navigation Library 
License:       ASL 2.0
URL:           http://commons.apache.org/ognl/
# svn export -r1102435 http://svn.apache.org/repos/asf/commons/proper/ognl/trunk/ apache-commons-ognl-3.0.2
# tar caf apache-commons-ognl-3.0.2.tar.xz apache-commons-ognl-3.0.2
Source0:       %{name}-%{version}.tar.xz
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: jna
BuildRequires: maven-local
BuildRequires: mvn(javassist:javassist)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.easymock:easymock)

%description
OGNL is an expression language for getting and setting properties of
Java objects, plus other extras such as list projection and selection
and lambda expressions.

%package javadoc
Summary:      API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

%pom_remove_plugin com.mycila.maven-license-plugin:maven-license-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-clean-plugin

rm -r src/test/java/org/apache/commons/ognl/test/ArithmeticAndLogicalOperatorsTest.java \
  src/test/java/org/apache/commons/ognl/test/ArrayElementsTest.java \
  src/test/java/org/apache/commons/ognl/test/ASTPropertyTest.java \
  src/test/java/org/apache/commons/ognl/test/CollectionDirectPropertyTest.java \
  src/test/java/org/apache/commons/ognl/test/ConstantTest.java \
  src/test/java/org/apache/commons/ognl/test/MethodTest.java \
  src/test/java/org/apache/commons/ognl/test/PropertyArithmeticAndLogicalOperatorsTest.java \
  src/test/java/org/apache/commons/ognl/test/PropertyTest.java \
  src/test/java/org/apache/commons/ognl/test/enhance/TestExpressionCompiler.java

%mvn_file :%{short_name} %{short_name} %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11901 |21mr|apache-commons-parent-47-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-commons-parent
Version:        47
Release:        3
Summary:        Apache Commons Parent Pom
License:        ASL 2.0
URL:            https://commons.apache.org/commons-parent-pom.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/apache/commons-parent/archive/commons-parent-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)

# Not generated automatically
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
Requires:       mvn(org.codehaus.mojo:build-helper-maven-plugin)

%description
The Project Object Model files for the apache-commons packages.

%prep
%setup -q -n commons-parent-commons-parent-%{version}

# Plugin is not in fedora
%pom_remove_plugin org.apache.commons:commons-build-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-scm-publish-plugin

# Plugins useless in package builds
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin

# Remove profiles for plugins that are useless in package builds
for profile in animal-sniffer japicmp jacoco cobertura clirr; do
    %pom_xpath_remove "pom:profile[pom:id='$profile']"
done

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11902 |21mr|apache-commons-pool-1.6-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name       pool
%global short_name      commons-%{base_name}

Name:             apache-%{short_name}
Version:          1.6
Release:          20
Summary:          Apache Commons Pool Package
License:          ASL 2.0
URL:              http://commons.apache.org/%{base_name}/
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://www.apache.org/dist/commons/%{base_name}/source/%{short_name}-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)

%description
The goal of Pool package is it to create and maintain an object (instance)
pooling package to be distributed under the ASF license. The package should
support a variety of pool implementations, but encourage support of an
interface that makes these implementations interchangeable.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{short_name}-%{version}-src

%mvn_alias : org.apache.commons:%{short_name}
%mvn_file : %{short_name} %{name}

%build
%mvn_build -f -- -Dcommons.osgi.symbolicName=org.apache.commons.pool

%install
%mvn_install

%files -f .mfiles
%doc README.txt RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11903 |21mr|apache-commons-pool2-2.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          apache-commons-pool2
Version:       2.4.2
Release:       8
Summary:       Apache Commons Object Pooling Library 2.x series
License:       ASL 2.0
URL:           http://commons.apache.org/proper/commons-pool/
Source0:       http://www.apache.org/dist/commons/pool/source/commons-pool2-%{version}-src.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.ow2.asm:asm-util)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Apache Commons Pool open source software library provides an
object pooling API and a number of object pool implementations.
Version 2 of Apache Commons Pool contains a completely re-written
pooling implementation compared to the 1.x series. In addition
to performance and scalability improvements, version 2 includes
robust instance tracking and pool monitoring.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n commons-pool2-%{version}-src

%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-scm-publish-plugin

%mvn_file : %{name} commons-pool2

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.txt RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11904 |21mr|apache-commons-primitives-1.1-0.9.678495
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global short_name commons-primitives
# Use this pre-release because it implements new features without breaking the backward compatibility
# and fix some issues in the 1.0 release.
# https://github.com/apache/commons-primitives/commit/ba65d72f2634bae13e0c0157de297c12a7329b16
%global svn_rev 678495
%global githash ba65d72f2634bae13e0c0157de297c12a7329b16

Name:          apache-commons-primitives
Version:       1.1
Release:       0.9.%{svn_rev}
Summary:       A set of collection and utility classes for primitive types
License:       ASL 2.0
Url:           http://commons.apache.org/proper/commons-primitives/
# svn export -r 678495 http://svn.apache.org/repos/asf/commons/proper/primitives/trunk/ commons-primitives-1.1
# tar cJf commons-primitives-1.1.tar.xz commons-primitives-1.1
# or
Source0:       https://github.com/apache/commons-primitives/archive/%{githash}/%{short_name}-%{githash}.tar.gz

Patch0:        apache-commons-primitives-1.1.678495-javadoc.patch

BuildRequires: maven-local
BuildRequires: mvn(commons-collections:commons-collections-testframework)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Commons Primitives is a set of collection and
utility classes for primitive types. The Java
language has a clear distinction between
Object and primitive types. A lot of functionality
is provided for Object types, including the Java
Collection Framework. Relatively little functionality
is provided by the JDK for primitives. This package
addresses this by providing a set of utility and
collection classes for primitives.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{short_name}-%{githash}
find . -name '*.class' -delete
find . -name '*.jar' -delete

%patch0 -p1

%pom_remove_plugin :maven-assembly-plugin

%mvn_file ":{*}" %{name} @1

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc RELEASE-NOTES.txt PROPOSAL.html
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11905 |21mr|apache-commons-validator-1.5.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name      commons-validator

Name:             apache-%{short_name}
Version:          1.5.0
Release:          9
Summary:          Apache Commons Validator
License:          ASL 2.0
URL:              http://commons.apache.org/validator/
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://www.apache.org/dist/commons/validator/source/%{short_name}-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-digester:commons-digester)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)

%description
A common issue when receiving data either electronically or from user input is
verifying the integrity of the data. This work is repetitive and becomes even
more complicated when different sets of validation rules need to be applied to
the same set of data based on locale for example. Error messages may also vary
by locale. This package attempts to address some of these issues and speed
development and maintenance of validation rules.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{short_name}-%{version}-src
sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' RELEASE-NOTES.txt
sed -i 's/\r//' NOTICE.txt

# Compatibility links
%mvn_alias "%{short_name}:%{short_name}" "org.apache.commons:%{short_name}"
%mvn_file :commons-validator %{short_name} %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11906 |21mr|apache-commons-vfs-2.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with    hadoop
%bcond_with    ftp
%bcond_without ssh

Name:          apache-commons-vfs
Version:       2.1
Release:       16
Summary:       Commons Virtual File System
License:       ASL 2.0
Url:           http://commons.apache.org/vfs/
Source0:       http://www.apache.org/dist/commons/vfs/source/commons-vfs-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-httpclient:commons-httpclient)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(commons-net:commons-net)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.commons:commons-collections4)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
%if %{with hadoop}
BuildRequires:  mvn(org.apache.hadoop:hadoop-common)
BuildRequires:  mvn(org.apache.hadoop:hadoop-hdfs)
%endif
%if %{with ssh}
BuildRequires:  mvn(com.jcraft:jsch)
%endif
%if %{with ftp}
BuildRequires:  mvn(org.apache.ftpserver:ftpserver-core)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Provides:      %{name}2 = %{version}-%{release}

%description
Commons VFS provides a single API for accessing various
different file systems. It presents a uniform view of the
files from various different sources, such as the files on
local disk, on an HTTP server, or inside a Zip archive.
Some of the features of Commons VFS are:
* A single consistent API for accessing files of different
 types.
* Support for numerous file system types.
* Caching of file information. Caches information in-JVM,
 and optionally can cache remote file information on the
 local file system.
* Event delivery.
* Support for logical file systems made up of files from
 various different file systems.
* Utilities for integrating Commons VFS into applications,
 such as a VFS-aware ClassLoader and URLStreamHandlerFactory.
* A set of VFS-enabled Ant tasks.

%package ant
Summary:       Development files for Commons VFS
Requires:      %{name} = %{version}-%{release}

%description ant
This package enables support for the Commons VFS ant tasks.

%package examples
Summary:       Commons VFS Examples

%description examples
VFS is a Virtual File System library - Examples.

%package project
Summary:       Commons VFS Parent POM

%description project
Commons VFS Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n commons-vfs-%{version}

%pom_remove_plugin :apache-rat-plugin

# Convert from dos to unix line ending
for file in LICENSE.txt NOTICE.txt README.txt RELEASE-NOTES.txt; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

# Disable unwanted module
%pom_disable_module dist

# Fix ant gId
%pom_change_dep -r :ant org.apache.ant:
# Upadate bouncycastle aId
%pom_change_dep -r :bcprov-jdk16 :bcprov-jdk15on

# Remove unwanted dependency jackrabbit-{standalone,webdav}
%pom_remove_dep -r org.apache.jackrabbit:

rm -rf core/src/{main,test}/java/org/apache/commons/vfs2/provider/webdav

# Use old version of sshd-core
%pom_remove_dep -r :sshd-core

# hadoop has been retired
%if %{without hadoop}
%pom_remove_dep -r org.apache.hadoop
rm -r core/src/{main,test}/java/org/apache/commons/vfs2/provider/hdfs
%endif

# not really needed
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :findbugs-maven-plugin

%if %{without ssh}
%pom_remove_dep -r :jsch
rm -r core/src/{main,test}/java/org/apache/commons/vfs2/provider/sftp
rm examples/src/main/java/org/apache/commons/vfs2/libcheck/SftpCheck.java
%endif

%if %{without ftp}
%pom_remove_dep -r :ftpserver-core
rm -r core/src/{main,test}/java/org/apache/commons/vfs2/provider/ftps
%endif


# Fix installation directory and symlink
%mvn_file :commons-vfs2 %{name}
%mvn_file :commons-vfs2 %{name}2
%mvn_file :commons-vfs2 commons-vfs
%mvn_file :commons-vfs2 commons-vfs2
%mvn_file :commons-vfs2-examples %{name}-examples
%mvn_file :commons-vfs2-examples %{name}2-examples
%mvn_file :commons-vfs2-examples commons-vfs-examples
%mvn_file :commons-vfs2-examples commons-vfs2-examples

%mvn_alias :commons-vfs2 "org.apache.commons:commons-vfs" "commons-vfs:commons-vfs"
%mvn_alias :commons-vfs2-examples "org.apache.commons:commons-vfs-examples" "commons-vfs:commons-vfs-examples"

%build
%mvn_build -sf

%install
%mvn_install

mkdir -p %{buildroot}%{_sysconfdir}/ant.d
echo "ant commons-logging commons-vfs" > commons-vfs
install -p -m 644 commons-vfs %{buildroot}%{_sysconfdir}/ant.d/commons-vfs

%files -f .mfiles-commons-vfs2
%doc README.txt RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files examples -f .mfiles-commons-vfs2-examples
%files project -f .mfiles-commons-vfs2-project
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt

%files ant
%config %{_sysconfdir}/ant.d/commons-vfs


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11907 |21mr|apacheds-2.0.0-0.8.M21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -M21
%global namedversion %{version}%{?namedreltag}

%global jetty_version 8.1.17.v20150415

Name:          apacheds
Version:       2.0.0
Release:       0.8.M21
Summary:       Apache Directory Server
License:       ASL 2.0
Url:           http://directory.apache.org/
Source0:       http://www.apache.org/dist/directory/apacheds/dist/%{namedversion}/%{name}-parent-%{namedversion}-source-release.zip

Patch0:        apacheds-2.0.0-M21-jetty8.patch

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.findbugs:annotations)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(ldapsdk:ldapsdk)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sf.ehcache:ehcache-core)
BuildRequires: mvn(org.apache.directory.api:api-asn1-api)
BuildRequires: mvn(org.apache.directory.api:api-dsml-engine)
BuildRequires: mvn(org.apache.directory.api:api-i18n)
BuildRequires: mvn(org.apache.directory.api:api-ldap-client-api)
BuildRequires: mvn(org.apache.directory.api:api-ldap-codec-core)
BuildRequires: mvn(org.apache.directory.api:api-ldap-codec-standalone)
BuildRequires: mvn(org.apache.directory.api:api-ldap-extras-aci)
BuildRequires: mvn(org.apache.directory.api:api-ldap-extras-sp)
BuildRequires: mvn(org.apache.directory.api:api-ldap-extras-trigger)
BuildRequires: mvn(org.apache.directory.api:api-ldap-extras-util)
BuildRequires: mvn(org.apache.directory.api:api-ldap-model)
BuildRequires: mvn(org.apache.directory.api:api-ldap-schema-data)
BuildRequires: mvn(org.apache.directory.api:api-util)
BuildRequires: mvn(org.apache.directory.jdbm:apacheds-jdbm1)
BuildRequires: mvn(org.apache.directory.mavibot:mavibot)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.mina:mina-core)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.eclipse.jetty:jetty-server:%jetty_version)
BuildRequires: mvn(org.eclipse.jetty:jetty-util:%jetty_version)
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp:%jetty_version)
BuildRequires: mvn(org.eclipse.jetty:jetty-xml:%jetty_version)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(tanukisoft:wrapper)

Obsoletes:     %{name}-jdbm < %{version}
Obsoletes:     %{name}-utils
Obsoletes:     %{name}-xdbm

Group:          Development/Java
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ApacheDS is an extensible and embeddable directory server
entirely written in Java, which has been certified LDAPv3
compatible by the Open Group. Besides LDAP it supports
Kerberos 5 and the Change Password Protocol. It has been
designed to introduce triggers, stored procedures, queues and
views to the world of LDAP which has lacked these rich
constructs.

%package core
Summary:       ApacheDS Core

%description core
Server's core contains the JNDI provider, interceptors,
schema, and database subsystems. The core is the heart
of the server without protocols enabled.
- A linked in memory AVL tree implementation with Cursor.
- Contains classes that store interfaces with various
constants in ApacheDS.
Cursor interfaces used by the server core.
Server side LDAP entry classes.
Integration testing framework for Apache Directory Server.
Contains a JNDI provider implementation which wraps the
core so existing applications based on JNDI can use the
server embedded transparently. Remote and local run-time
operations will appear and feel exactly the same with a
performance boost when local. All operations via this
JNDI provider bypass the LDAP stack to perform operations
directly on the ApacheDS core.
A collection of tools as plugins to manage various tasks
associated with the directory server.
Shared classes between the core plugin and the core to
prevent cyclic dependencies since the core uses the core
plugin.
A linked in memory splay tree implementation with Cursor.
Core unit tests. 

%package http-integration
Summary:       ApacheDS Jetty HTTP Server Integration

%description http-integration
This package provides Jetty HTTP Server Integration.

%package i18n
Summary:       ApacheDS I18n

%description i18n
Internationalization of errors and other messages.

%package kerberos
Summary:       ApacheDS Kerberos

%description kerberos
This package provides:
- The Kerberos protocol provider for ApacheDS.
- Interceptors used by the ApacheDS kerberos service.

%package osgi
Summary:       ApacheDS OSGi Integration

%description osgi
This package provides:
- ApacheDS OSGi Integration Tests.

%package protocols
Summary:       ApacheDS Protocols

%description protocols
This package provides the following protocols for ApacheDS:
- Change Password
- DHCP
- DNS
- LDAP
- NTP

%package server
Summary:       ApacheDS Server modules

%description server
Integration testing framework for Apache Directory Server.
The JNDI provider which launches the core and associated
network services: Changepw, Kerberos, LDAP, and NTP if
all are configured. By default only LDAP is configured
to start-up.
A multi-master replication service for replicating
information across ApacheDS instances. This service is
modeled as an interceptor.
Various command-line utilities for apacheds.
Unit testing framework for ApacheDS Server JNDI Provider.
A single authoritative server.XML file. 

%package service
Summary:       ApacheDS Services

%description service
This package provides ApacheDS Services. Used for reading the
configuration present in a Partition and instantiate the
necessary objects like DirectoryService, Interceptors etc.

%package wrapper
Summary:       ApacheDS Wrapper

%description wrapper
A Tanuki Wrapper implementation for the ApacheDS service.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-parent-%{namedversion}
# cleanup
find . -name "*.bat" -delete
find . -name "*.class" -delete
find . -name "*.exe" -delete
find . -name "*.jar" -print -delete
rm -r installers-maven-plugin/src/main/resources/org/apache/directory/server/installers/*

chmod 644 README.txt

%patch0 -p1

%pom_xpath_set "pom:properties/pom:jetty.version" %jetty_version

%pom_remove_parent

%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin

%pom_disable_module all
%pom_disable_module installers
%pom_disable_module installers-maven-plugin

%pom_remove_dep -r :apacheds-installers
%pom_remove_dep -r :apacheds-installers-maven-plugin
%pom_remove_dep -r org.apache.directory.junit:junit-addons
# Remove the com.mycila.junit.concurrent annotations
sed -i '/Concurrency/d' $(find */src/test/java -name "*.java")
sed -i '/ConcurrentJunitRunner/d' $(find */src/test/java -name "*.java")

%pom_change_dep -r findbugs:annotations com.google.code.findbugs:annotations

%pom_xpath_remove -r "pom:dependency[pom:scope='test']"

%mvn_package :%{name}-core* core
%mvn_package :%{name}-interceptors* core
%mvn_package ":%{name}-http-directory-bridge" core
%mvn_package :%{name}-jdbm* core
%mvn_package ":%{name}-ldif-partition" core
%mvn_package ":%{name}-mavibot-partition" core
%mvn_package ":%{name}-server-annotations" core
%mvn_package ":%{name}-server-config" core
%mvn_package ":%{name}-test-framework" core
%mvn_package ":%{name}-xdbm-partition" core
%mvn_package ":%{name}-i18n" i18n
%mvn_package ":%{name}-interceptor-kerberos" kerberos
%mvn_package :%{name}-kerberos-* kerberos
%mvn_package ":kerberos-client" kerberos
%mvn_package ":%{name}-protocol-kerberos" kerberos
%mvn_package ":%{name}-protocol-changepw" protocols
%mvn_package ":%{name}-protocol-dhcp" protocols
%mvn_package ":%{name}-protocol-dns" protocols
%mvn_package ":%{name}-protocol-ldap" protocols
%mvn_package ":%{name}-protocol-ntp" protocols
%mvn_package ":%{name}-protocol-shared" protocols
%mvn_package ":ldap-client-test" protocols
%mvn_package ":%{name}-osgi-integ" osgi
%mvn_package ":%{name}-server-integ" server
%mvn_package ":%{name}-server-jndi" server
%mvn_package ":%{name}-server-replication" server
%mvn_package ":%{name}-service" service
%mvn_package ":%{name}-service-builder" service

%build

# No test dep org.apache.directory.junit:junit-addons:0.1
%mvn_build -s -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}-parent
%doc README.txt
%license LICENSE NOTICE

%files core -f .mfiles-core
%license LICENSE NOTICE

%files http-integration -f .mfiles-%{name}-http-integration
%license LICENSE NOTICE

%files i18n -f .mfiles-i18n
%license LICENSE NOTICE

%files kerberos -f .mfiles-kerberos
%license LICENSE NOTICE

%files osgi -f .mfiles-osgi
%license LICENSE NOTICE

%files protocols -f .mfiles-protocols
%license LICENSE NOTICE

%files server -f .mfiles-server
%license LICENSE NOTICE

%files service -f .mfiles-service
%license LICENSE NOTICE

%files wrapper -f .mfiles-%{name}-wrapper
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11908 |21mr|apacheds-jdbm-2.0.0-0.11.M3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global reltag -M3
%global namedversion %{version}%{?reltag}
Name:          apacheds-jdbm
Version:       2.0.0
Release:       0.11.M3
Summary:       ApacheDS specific JDBM Implementation
# This package is a fork of http://jdbm.sourceforge.net/ the original/more files
# are under BSD license.
License:       ASL 2.0 and BSD
Group:         Development/Java
Url:           http://directory.apache.org/
# svn export http://svn.apache.org/repos/asf/directory/jdbm/tags/2.0.0-M3/ apacheds-jdbm-2.0.0-M3
# tar cJf apacheds-jdbm-2.0.0-M3.tar.xz apacheds-jdbm-2.0.0-M3
Source0:       %{name}-%{namedversion}.tar.xz
# apacheds-jdbm package don't include the license file
# https://issues.apache.org/jira/browse/DIR-318
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt
# wget -O jdbm-LICENSE.txt http://jdbm.cvs.sourceforge.net/viewvc/jdbm/jdbm/LICENSE.txt
Source2:       jdbm-LICENSE.txt

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.findbugs:annotations)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A JDBM entry store which does not have any dependency on
core interfaces. The JDBM partition will use this store
and build on it to adapt this to server specific partition
interfaces. Having this separate module without
dependencies on core interfaces makes it easier to avoid
cyclic dependencies between modules. This is especially
important for use within the bootstrap plugin which needs
to build the schema partition used for bootstrapping the
server.

%package -n %{name}1
Summary:       ApacheDS Original JDBM Implementation
# https://fedorahosted.org/fpc/ticket/564
Provides:      bundled(jdbm1)

%description -n %{name}1
Original JDBM Implementation.

%package -n %{name}2
Summary:       ApacheDS JDBM Implementation MVCC

%description -n %{name}2
Specific JDBM Implementation with
Multi Version Concurrency Control (MVCC).

%package -n %{name}-parent
Summary:       ApacheDS JDBM Parent POM

%description -n %{name}-parent
Specific ApacheDS JDBM Implementation - Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

%pom_remove_parent
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-site-plugin

%pom_remove_dep -r :junit-addons
%pom_change_dep -r findbugs:annotations com.google.code.findbugs:annotations

cp -p %{SOURCE1} .
cp -p %{SOURCE2} LICENSE.txt
sed -i 's/\r//' LICENSE*

%build

# No test dep org.apache.directory.junit:junit-addons:0.1
%mvn_build -s -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -n %{name}1 -f .mfiles-%{name}1
%license LICENSE*

%files -n %{name}2 -f .mfiles-%{name}2
%license LICENSE*

%files -n %{name}-parent -f .mfiles-%{name}-parent
%license LICENSE*

%files javadoc -f .mfiles-javadoc
%license LICENSE*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11909 |21mr|apacheds-ldap-api-1.0.0-0.8.M33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -M33
%global namedversion %{version}%{?namedreltag}
Name:          apacheds-ldap-api
Version:       1.0.0
Release:       0.8.M33
Summary:       Apache Directory LDAP API
License:       ASL 2.0
Url:           http://directory.apache.org/api/
Source0:       http://www.apache.org/dist/directory/api/dist/%{namedversion}/apache-ldap-api-%{namedversion}-src.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(com.google.code.findbugs:annotations)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-pool:commons-pool)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.mina:mina-core)
BuildRequires: mvn(org.codehaus.mojo:antlr-maven-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(xpp3:xpp3)

%if 0
# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.directory.junit:junit-addons)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Apache Directory LDAP API is an ongoing effort to
provide an enhanced LDAP API, as a replacement for JNDI and
the existing LDAP API (jLdap and Mozilla LDAP API).

This is a schema aware API, with some convenient ways to
access a LDAP server. This API is not only targeting the
Apache Directory Server, but should work pristine with
any LDAP server.

It's also an extensible API: new Controls, schema elements and
network layer could be added or used in the near future. It
is also OSGi capable.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n apache-ldap-api-%{namedversion}-src
find . -name "*.class" -delete
find . -name "*.jar" -print -delete

# org.apache.directory.project:project:pom:34
%pom_remove_parent
%pom_remove_dep -r org.ops4j.pax.exam:
%pom_remove_dep -r org.ops4j.pax.url:

%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin -r de.thetaphi:forbiddenapis

%pom_disable_module integ
%pom_disable_module integ-osgi
%pom_disable_module distribution

%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin

# org.osgi:org.osgi.core:6.0.0
%pom_change_dep -r org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi::provided
%pom_change_dep -r findbugs:annotations com.google.code.findbugs:annotations
# TODO add OSGi manifest to these artifacts
%pom_change_dep -r org.apache.servicemix.bundles:org.apache.servicemix.bundles.dom4j dom4j:dom4j
%pom_change_dep -r org.apache.servicemix.bundles:org.apache.servicemix.bundles.xpp3 xpp3:xpp3
%pom_remove_dep -r org.apache.servicemix.bundles:org.apache.servicemix.bundles.antlr
%pom_xpath_remove "pom:dependency[pom:artifactId = 'antlr']/pom:scope" ldap/model
%pom_xpath_remove "pom:dependency[pom:artifactId = 'antlr']/pom:scope" ldap/extras/aci

chmod 644 README.txt

%build
# No test dep org.apache.directory.junit:junit-addons:0.1
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11910 |21mr|apache-ivy-2.4.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bouncycastle
%bcond_without ssh
%bcond_without vfs

Name:           apache-ivy
Version:        2.4.0
Release:        18
Summary:        Java-based dependency manager

License:        ASL 2.0
URL:            http://ant.apache.org/ivy
Source0:        http://www.apache.org/dist/ant/ivy/%{version}/%{name}-%{version}-src.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Non-upstreamable.  Add /etc/ivy/ivysettings.xml at the end list of
# settings files Ivy tries to load.  This file will be used only as
# last resort, when no other setting files exist.
Patch0:         %{name}-global-settings.patch
# sent upstream: IVY-1521
Patch1:         port-to-bc-1.52.patch

Provides:       ivy = %{version}-%{release}

BuildRequires:  ant
BuildRequires:  ant-contrib
BuildRequires:  ant-junit
BuildRequires:  ant-testutil
%if %{with vfs}
BuildRequires:  apache-commons-vfs
%endif
BuildRequires:  apache-commons-lang
%if %{with bouncycastle}
BuildRequires:  bouncycastle
BuildRequires:  bouncycastle-pg
%endif
BuildRequires:  jakarta-commons-httpclient
BuildRequires:  jsch
BuildRequires:  jakarta-oro
BuildRequires:  apache-commons-parent
BuildRequires:  sonatype-oss-parent
BuildRequires:  apache-parent
BuildRequires:  ivy-local >= 4
%if %{with ssh}
BuildRequires:  jsch-agent-proxy-connector-factory
BuildRequires:  jsch-agent-proxy-core
BuildRequires:  jsch-agent-proxy-jsch
%endif

%description
Apache Ivy is a tool for managing (recording, tracking, resolving and
reporting) project dependencies.  It is designed as process agnostic and is
not tied to any methodology or structure. while available as a standalone
tool, Apache Ivy works particularly well with Apache Ant providing a number
of powerful Ant tasks ranging from dependency resolution to dependency
reporting and publication.

%package javadoc
Summary:        API Documentation for ivy

%description javadoc
JavaDoc documentation for %{name}

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Don't hardcode sysconfdir path
sed -i 's:/etc/ivy/:%{_sysconfdir}/ivy/:' src/java/org/apache/ivy/ant/IvyAntSettings.java

%if %{without ssh}
%pom_remove_dep :jsch
%pom_remove_dep :jsch.agentproxy
%pom_remove_dep :jsch.agentproxy.connector-factory
%pom_remove_dep :jsch.agentproxy.jsch
rm -r src/java/org/apache/ivy/plugins/repository/{ssh,sftp}
rm src/java/org/apache/ivy/plugins/resolver/*{Ssh,SFTP}*.java
%endif

%if %{without bouncycastle}
%pom_remove_dep org.bouncycastle
rm src/java/org/apache/ivy/plugins/signer/bouncycastle/OpenPGPSignatureGenerator.java
%endif

%mvn_alias : jayasoft:ivy
%mvn_file : %{name}/ivy ivy

# Fix messed-up encodings
for F in README LICENSE NOTICE
do
        sed 's/\r//' $F |iconv -f iso8859-1 -t utf8 >$F.utf8
        touch -r $F $F.utf8
        mv $F.utf8 $F
done
# ant-trax has been obsoleted, use main ant package
sed -i s/ant-trax/ant/ ivy.xml

# Fedora bouncycastle packages provide -jdk16 artifacts only
sed -i /bouncycastle/s/jdk14/jdk16/ ivy.xml

# Port from commons-vfs 1.x to 2.x
%if %{with vfs}
sed -i "s/commons.vfs/&2/" {src,test}/java/org/apache/ivy/plugins/repository/vfs/*
%else
sed -i /commons-vfs/d ivy.xml
rm -rf src/java/org/apache/ivy/plugins/repository/vfs
rm -rf src/java/org/apache/ivy/plugins/resolver/VfsResolver.java
%endif

# Remove prebuilt documentation
rm -rf doc build/doc

# Publish artifacts through XMvn
sed -i /ivy:publish/s/local/xmvn/ build.xml

# Disable tests which fail due to networking being disabled during build
sed -i 's/\(\s*public void\) \(testFixedMdMultipleExtends().*\)/\1 _disabled_\2/' test/java/org/apache/ivy/core/report/ResolveReportTest.java
rm test/java/org/apache/ivy/plugins/resolver/BintrayResolverTest.java
rm test/java/org/apache/ivy/plugins/resolver/MirroredURLResolverTest.java
rm -rf test/java/org/apache/ivy/osgi/updatesite
rm test/java/org/apache/ivy/core/settings/OnlineXmlSettingsParserTest.java
rm test/java/org/apache/ivy/util/url/BasicURLHandlerTest.java
rm test/java/org/apache/ivy/util/url/HttpclientURLHandlerTest.java
rm test/java/org/apache/ivy/plugins/resolver/IBiblioResolverTest.java
rm test/java/org/apache/ivy/util/url/ArtifactoryListingTest.java

%if %{without vfs}
rm test/java/org/apache/ivy/plugins/repository/vfs/VfsRepositoryTest.java
rm test/java/org/apache/ivy/plugins/repository/vfs/VfsResourceTest.java
rm test/java/org/apache/ivy/plugins/repository/vfs/VfsTestHelper.java
rm test/java/org/apache/ivy/plugins/repository/vfs/VfsURI.java
rm test/java/org/apache/ivy/plugins/resolver/VfsResolverTest.java
%endif

# XXX Disable test which fails due to non-existing files
rm test/java/org/apache/ivy/ant/IvyBuildListTest.java

# XXX Disable test which fails due to wrong ordering in the .xml file
sed -i 's/\(\s*public void\) \(testExtraInfosFromMaven().*\)/\1 _disabled_\2/' test/java/org/apache/ivy/plugins/parser/xml/XmlModuleDescriptorWriterTest.java

%build
%ant -Divy.mode=local -Dtarget.ivy.bundle.version=%{version} -Dtarget.ivy.bundle.version.qualifier= -Dtarget.ivy.version=%{version} jar javadoc publish-local test

%install
%mvn_install -J build/doc/reports/api

mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
echo "apache-ivy/ivy" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name}

%files -f .mfiles
%{_sysconfdir}/ant.d/%{name}
%doc README
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11911 |21mr|apache-james-project-1.8.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-james-project
Version:        1.8.1
Release:        18
Summary:        Main project POM files and resources
License:        ASL 2.0
URL:            http://james.apache.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./create-tarball.sh %%{VERSION}
Source0:        james-project-1.8.1-clean.tar.gz
Source1:        create-tarball.sh

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-site-plugin)

%description
Main project POM files and resources for Apache James project.

%prep
%setup -q -n james-project-%{version}

# generates erroneous runtime dependency
%pom_remove_plugin :maven-doap-plugin

%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-ssh-external']]"
%pom_xpath_remove "pom:dependency[pom:artifactId[text()='wagon-ssh']]"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11912 |21mr|apache-log4j-extras-1.2.17.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit e5dc3b04eeb9c7107f5a2b80c2b0f43434722cfd
%global shortcommit %(c=%{commit}; echo ${c:0:7})

%bcond_with javadoc

Name:          apache-log4j-extras
Version:       1.2.17.1
Release:       14
Summary:       Apache Extras Companion for Apache log4j

License:       ASL 2.0
URL:           http://logging.apache.org/log4j/extras
Source0:       https://github.com/apache/log4j-extras/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.rat:apache-rat-plugin)
BuildRequires: mvn(org.hsqldb:hsqldb)
Requires:      mvn(log4j:log4j:1.2.17)

%description
Apache Extras Companion for Apache log4j is a collection of appenders, 
filters, layouts, and receivers for Apache log4j 1.2

%if %{with javadoc}
%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.
%endif


%prep
%setup -qn log4j-extras-%{commit}
# Cleanup
find . -name '*.class' -delete
find . -name '*.jar' -delete

# Unnecessary plugins
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-changes-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :maven-site-plugin

%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:groupId='hsqldb']/pom:groupId" org.hsqldb

%build
%if %{without javadoc}
args="-j"
%endif
# Tests disabled because of failures
%mvn_build $args -- -DskipTests

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%if %{with javadoc}
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11913 |21mr|apache-logging-parent-2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-logging-parent
Summary:        Parent pom for Apache Logging Services projects
Version:        2
Release:        1
License:        ASL 2.0
Group:          Development/Java
URL:            https://logging.apache.org/
Source0:        https://repo1.maven.org/maven2/org/apache/logging/logging-parent/%{version}/logging-parent-%{version}-source-release.zip

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache:apache:pom:)

%description
Parent pom for Apache Logging Services projects.


%prep
%setup -q -n logging-parent-%{version}


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%license LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11914 |21mr|apache-mime4j-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-mime4j
Summary:        Apache JAMES Mime4j
Version:        0.8.3
Release:        1
License:        ASL 2.0

URL:            http://james.apache.org/mime4j
Source0:        http://archive.apache.org/dist/james/mime4j/%{version}/james-mime4j-sources-%{version}.zip

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava:18.0)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.slf4j:slf4j-api)

%description
Java stream based MIME message parser.


%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
API documentation for %{name}.


%prep
%setup -q -n james-mime4j

# Disable plugins not needed for RPM builds
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-jar-plugin

# Don't need to build dist assembly
%pom_disable_module assemble

# Compat symlinks for jboss-as
for p in core dom storage; do
  %mvn_file :*$p %{name}/%{name}-$p %{name}/$p
done


%build
%mvn_build -- -DargLine="-Dfile.encoding=UTF8"


%install
%mvn_install


%files -f .mfiles
%doc RELEASE_NOTES.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11915 |21mr|apache-mina-2.0.9-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-mina
Version:        2.0.9
Release:        11
Summary:        Apache MINA
License:        ASL 2.0
URL:            http://mina.apache.org
Source0:        http://www.eu.apache.org/dist/mina/mina/%{version}/%{name}-%{version}-src.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.jcraft:jzlib)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache MINA is a network application framework which helps users develop high
performance and high scalability network applications easily. It provides an
abstract event-driven asynchronous API over various transports such as TCP/IP
and UDP/IP via Java NIO.


%package        mina-core
Summary:        Apache MINA Core

%description    mina-core
This package contains Apache MINA Core module.

%package        mina-filter-compression
Summary:        Apache MINA Compression Filter

%description    mina-filter-compression
This package contains Apache MINA Compression Filter module.

%package        mina-statemachine
Summary:        Apache MINA State Machine

%description    mina-statemachine
This package contains Apache MINA State Machine module.

%package        mina-http
Summary:        Apache MINA HTTP client and server codec

%description    mina-http
This package contains Apache MINA HTTP client and server codec.

%package        javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{name}.

%prep
%setup -q

# In the tarball distributed by Apache the source code is inside the src
# directory, but our build tools expect the POM files in the current directory,
# so in order to simplify things we move everything to the top level before
# starting the build:
mv src/* .

# The modules use "bundle" packaging which doesn't work correctly with xmvn
# automatic dependency generation, in order to avoid that we change that to
# "jar":
sed -i \
    -e 's|<packaging>bundle</packaging>|<packaging>jar</packaging>|g' \
    -e 's|<type>bundle</type>|<type>jar</type>|g' \
    $(find . -name pom.xml)

# Disable the plugins that we don't need:
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-bundle-plugin
%pom_remove_plugin :maven-site-plugin

# Disable the modules that we can't currently build:
%pom_disable_module mina-legal
%pom_disable_module mina-transport-apr
%pom_disable_module mina-integration-beans
%pom_disable_module mina-integration-xbean
%pom_disable_module mina-integration-ognl
%pom_disable_module mina-integration-jmx
%pom_disable_module mina-example

%build
# The tests are disabled because they require EasyMock version 2 and we only
# have version 3:
%mvn_build -f -s

%install
%mvn_install

%files -f .mfiles-mina-parent
%doc LICENSE.txt NOTICE.txt

%files mina-core -f .mfiles-mina-core
%doc LICENSE.txt NOTICE.txt

%files mina-filter-compression -f .mfiles-mina-filter-compression

%files mina-statemachine -f .mfiles-mina-statemachine
%doc LICENSE.txt NOTICE.txt

%files mina-http -f .mfiles-mina-http

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11916 |21mr|apache-mod_auth_gssapi-1.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mod_auth_gssapi

Summary:	A GSSAPI Authentication module for Apache2
Name:		apache-mod_auth_gssapi
Version:	1.6.2
Release:	3
License:	MIT
Group:		System/Servers
Url:		https://github.com/modauthgssapi/mod_auth_gssapi
Source0:	https://github.com/gssapi/mod_auth_gssapi/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		mod_auth_gssapi-1.6.2-alt.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	apache
BuildRequires:	apache-devel
BuildRequires:	openldap-devel
BuildRequires:	gssntlmssp-devel
BuildRequires:	pkgconfig(apr-util-1)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libssl)
Provides:	%{name} = %{EVRD}
Provides:	apache2-%{oname} = %{EVRD}

%description
A set of Python bindings to the GSSAPI C library providing both
a high-level pythonic interfaces and a low-level interfaces
which more closely matches RFC 2743.  Includes support for
RFC 2743, as well as multiple extensions.

%files
%doc AUTHORS COPYING README
%{_libdir}/apache/mod_auth_gssapi.so
%config(noreplace) %{_sysconfdir}/httpd/modules.d/10-auth_gssapi.conf

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

#rename @LIBDIR@ in patched file
sed -i 's|@LIBDIR@|%{_libdir}|' tests/magtests.py

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/httpd/modules.d
echo "LoadModule auth_gssapi_module %{_libdir}/apache/mod_auth_gssapi.so" > %{buildroot}%{_sysconfdir}/httpd/modules.d/10-auth_gssapi.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11917 |21mr|apache-mod_fcgid-2.3.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_fcgid
%define load_order 227

Summary:	Apache module for FastCGI
Name:		apache-%{mod_name}
Version:	2.3.9
Release:	3
Group:		System/Servers
License:	Apache License
URL:		http://www.apache.org
Source0:	http://httpd.apache.org/dev/dist/mod_fcgid/mod_fcgid-%{version}.tar.gz
Source1:	http://httpd.apache.org/dev/dist/mod_fcgid/mod_fcgid-%{version}.tar.gz.asc
BuildRequires:	file
Requires(pre): rpm-helper
Requires(postun): rpm-helper
Requires:	apache >= 2.2.0
BuildRequires:	apache-devel >= 2.2.0
Epoch:		1

%description
mod_fcgid is a binary compatibility alternative to Apache module mod_fastcgi.
mod_fcgid has a new process management strategy, which concentrates on reducing
the number of fastcgi server, and kick out the corrupt fastcgi server as soon
as possible.

%prep

%setup -q -n %{mod_name}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build

# still a bit ugly

pushd modules/fcgid
cp fcgid_config.h.in fcgid_config.h
%{_bindir}/apxs -I. -c mod_fcgid.c fcgid_bridge.c fcgid_conf.c fcgid_pm_main.c \
    fcgid_protocol.c fcgid_spawn_ctl.c fcgid_proctbl_unix.c fcgid_pm_unix.c \
    fcgid_proc_unix.c fcgid_bucket.c fcgid_filter.c fcgid_mutex_unix.c
popd

%install

install -d %{buildroot}%{_libdir}/apache
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}/var/lib/%{name}

install -m0755 modules/fcgid/.libs/*.so %{buildroot}%{_libdir}/apache/

cat > %{buildroot}%{_sysconfdir}/httpd/modules.d/%{load_order}_%{mod_name}.conf << EOF
LoadModule fcgid_module	%{_libdir}/apache/%{mod_name}.so

#FcgidIPCDir - fastcgi socket file path
FcgidIPCDir /var/lib/%{name}

# Use FastCGI to process .fcg .fcgi & .fpl scripts
# Don't do this if mod_fastcgi is present, as it will try to do the same thing
AddHandler fcgid-script fcg fcgi fpl
EOF

# fix docs
cp modules/fcgid/ChangeLog ChangeLog.old
cp docs/manual/mod/mod_fcgid.html.en mod_fcgid.html

%files
%doc ChangeLog.old *-FCGID mod_fcgid.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*.conf
%attr(0755,root,root) %{_libdir}/apache/*.so
%attr(0755,apache,apache) %dir /var/lib/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11918 |21mr|apache-mod_lookup_identity-1.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define mod_name	mod_lookup_identity

Summary:	Apache module to retrieve additional info about the authenticated user
Name:		apache-%{mod_name}
Version:	1.0.0
Release:	3
License:	ASL 2.0
Group:		System/Servers
Url:		http://www.adelton.com/apache/mod_lookup_identity/
Source0:	http://www.adelton.com/apache/mod_lookup_identity/%{mod_name}-%{version}.tar.gz
BuildRequires:	apache-devel
BuildRequires:	pkgconfig(dbus-1)
Requires:	apache-base

%description
The mod_nss mod_name provides strong cryptography for the Apache Web
server via the Secure Sockets Layer (SSL) and Transport Layer
Security (TLS) protocols using the Network Security Services (NSS)
security library.

%files
%doc LICENSE README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/55-lookup_identity.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/extra/lookup_identity.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/original/extra/lookup_identity.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf.d/lookup_identity.conf
%attr(0755,root,root) %{_libdir}/apache/%{mod_name}.so

#------------------------------------------------------------------

%prep
%setup -qn %{mod_name}-%{version}

%build
apxs -c -Wc,"%{optflags} -Wall -pedantic -std=c99 $(pkg-config --cflags dbus-1)" $(pkg-config --libs dbus-1) mod_lookup_identity.c
cat lookup_identity.module > lookup_identity.confx
cat lookup_identity.conf >> lookup_identity.confx

%install
mkdir -p %{buildroot}%{_libdir}/apache
mkdir -p %{buildroot}%{_sysconfdir}/httpd/modules.d
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf{,/original}/extra
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
install -m0755 .libs/mod_lookup_identity.so %{buildroot}%{_libdir}/apache/
install -m0644 lookup_identity.module %{buildroot}%{_sysconfdir}/httpd/modules.d/55-lookup_identity.conf
install -m0644 lookup_identity.conf %{buildroot}%{_sysconfdir}/httpd/conf/original/extra/lookup_identity.conf
install -m0644 lookup_identity.confx %{buildroot}%{_sysconfdir}/httpd/conf/extra/lookup_identity.conf
install -m0644 lookup_identity.confx %{buildroot}%{_sysconfdir}/httpd/conf.d/lookup_identity.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11919 |21mr|apache-mod_perl-2.0.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define mod_name mod_perl
%define load_order 175

Summary:	An embedded Perl interpreter for the apache Web server
Name:		apache-%{mod_name}
Version:	2.0.11
Release:	2
Epoch:		1
License:	Apache License
Group:		System/Servers
Url:		http://perl.apache.org/
Source0:	https://cpan.metacpan.org/authors/id/S/SH/SHAY/%{mod_name}-%{version}.tar.gz
Source2:	mod_perl.conf
Source3:	apache-mod_perl-testscript.pl
Patch0:		mod_perl-2.0.4-inline.patch
BuildRequires:	apache-devel
BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildRequires:	perl-Tie-IxHash
BuildRequires:	perl-Data-Flow
BuildRequires:	apache-mpm-prefork
BuildRequires:	perl(ExtUtils::Embed)
Requires(pre):	apache-base
Requires(pre):	apache-modules
Requires(pre):	apache-mpm-prefork
Requires:	apache-base
Requires:	apache-modules
Requires:	apache-mpm-prefork
Requires:	perl(Apache2::Reload)
Provides:   perl(mod_perl)
Provides:   perl(mod_perl2)

%description
%{name} incorporates a Perl interpreter into the apache web server,
so that the Apache web server can directly execute Perl code.
Mod_perl links the Perl runtime library into the apache web server and
provides an object-oriented Perl interface for apache's C language
API.  The end result is a quicker CGI script turnaround process, since
no external Perl interpreter has to be started.

Install %{name} if you're installing the apache web server and you'd
like for it to directly incorporate a Perl interpreter.

%files -n %{name}
%doc Changes INSTALL LICENSE README docs todo
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*.conf
%attr(0755,root,root) %{_libdir}/apache/*.so
%{perl_vendorarch}/Apache
%{perl_vendorarch}/Apache2
%{perl_vendorarch}/Bundle
%{perl_vendorarch}/ModPerl
%{perl_vendorarch}/APR
%{perl_vendorarch}/APR.pm
%{perl_vendorarch}/mod_perl2.pm
%{perl_vendorarch}/auto/Apache2/FilterRec
%{perl_vendorarch}/auto/Apache2/Util
%{perl_vendorarch}/auto/Apache2/RequestRec
%{perl_vendorarch}/auto/Apache2/Command
%{perl_vendorarch}/auto/Apache2/ConnectionUtil
%{perl_vendorarch}/auto/Apache2/Module
%{perl_vendorarch}/auto/Apache2/typemap
%{perl_vendorarch}/auto/Apache2/URI
%{perl_vendorarch}/auto/Apache2/Process
%{perl_vendorarch}/auto/Apache2/MPM
%{perl_vendorarch}/auto/Apache2/Response
%{perl_vendorarch}/auto/Apache2/SubProcess
%{perl_vendorarch}/auto/Apache2/Build
%{perl_vendorarch}/auto/Apache2/Const
%{perl_vendorarch}/auto/Apache2/Filter
%{perl_vendorarch}/auto/Apache2/Log
%{perl_vendorarch}/auto/Apache2/ServerUtil
%{perl_vendorarch}/auto/Apache2/ServerRec
%{perl_vendorarch}/auto/Apache2/CmdParms
%{perl_vendorarch}/auto/Apache2/Provider
%{perl_vendorarch}/auto/Apache2/RequestUtil
%{perl_vendorarch}/auto/Apache2/RequestIO
%{perl_vendorarch}/auto/Apache2/SubRequest
%{perl_vendorarch}/auto/Apache2/Directive
%{perl_vendorarch}/auto/Apache2/HookRun
%{perl_vendorarch}/auto/Apache2/Access
%{perl_vendorarch}/auto/Apache2/Connection
%{perl_vendorarch}/auto/ModPerl/Util
%{perl_vendorarch}/auto/ModPerl/Global
%{perl_vendorarch}/auto/ModPerl/Const
%{perl_vendorarch}/auto/ModPerl/InterpPool
%{perl_vendorarch}/auto/ModPerl/Interpreter
%{perl_vendorarch}/auto/ModPerl/TiPool
%{perl_vendorarch}/auto/ModPerl/TiPoolConfig
%{perl_vendorarch}/auto/APR/BucketAlloc
%{perl_vendorarch}/auto/APR/IpSubnet
%{perl_vendorarch}/auto/APR/Util
%{perl_vendorarch}/auto/APR/Pool
%{perl_vendorarch}/auto/APR/Finfo
%{perl_vendorarch}/auto/APR/Socket
%{perl_vendorarch}/auto/APR/Brigade
%{perl_vendorarch}/auto/APR/URI
%{perl_vendorarch}/auto/APR/Error
%{perl_vendorarch}/auto/APR/ThreadRWLock
%{perl_vendorarch}/auto/APR/Bucket
%{perl_vendorarch}/auto/APR/Const
%{perl_vendorarch}/auto/APR/APR.so
%{perl_vendorarch}/auto/APR/Status
%{perl_vendorarch}/auto/APR/SockAddr
%{perl_vendorarch}/auto/APR/String
%{perl_vendorarch}/auto/APR/OS
%{perl_vendorarch}/auto/APR/PerlIO
%{perl_vendorarch}/auto/APR/ThreadMutex
%{perl_vendorarch}/auto/APR/Date
%{perl_vendorarch}/auto/APR/UUID
%{perl_vendorarch}/auto/APR/BucketType
%{perl_vendorarch}/auto/APR/Base64
%{perl_vendorarch}/auto/APR/Table
%{_mandir}/*/*
%attr(0755,root,root) %{_var}/www/perl/*.pl

#----------------------------------------------------------------------------

%package devel
Summary:	Files needed for building XS modules that use mod_perl
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	apache-devel

%description devel
The mod_perl-devel package contains the files needed for building XS
modules that use mod_perl.

%files devel
%attr(0755,root,root) %{_bindir}/*
%{_includedir}/apache/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}
%patch0 -p1 -b .inline

cp %{SOURCE2} .
perl -pi -e "s|_MODULE_DIR_|%{_libdir}/apache|g" mod_perl.conf

for i in `find . -type d -name .svn`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%build
perl Makefile.PL \
    MP_CCOPTS="$(%{_bindir}/apxs -q CFLAGS|sed -e 's/-fPIE//') -fPIC" \
    MP_APXS=%{_bindir}/apxs \
    MP_APR_CONFIG=%{_bindir}/apr-1-config \
    INSTALLDIRS=vendor </dev/null

ln -s Apache-mod_perl_guide-1.29/bin bin
%make

# XXX mod_include/SSI does not include files when they are not named .shtml
mv t/htdocs/includes-registry/test.pl t/htdocs/includes-registry/test.shtml
mv t/htdocs/includes-registry/cgipm.pl t/htdocs/includes-registry/cgipm.shtml
sed 's/\.pl/.shtml/' t/htdocs/includes/test.shtml > tmpfile && mv tmpfile t/htdocs/includes/test.shtml

%install
# make some directories
install -d %{buildroot}%{_libdir}/apache
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -d %{buildroot}%{_var}/www/perl

%makeinstall_std \
    MODPERL_AP_LIBEXECDIR=%{_libdir}/apache \
    MODPERL_AP_INCLUDEDIR=%{_includedir}/apache \
    INSTALLDIRS=vendor

install -m0644 mod_perl.conf %{buildroot}%{_sysconfdir}/httpd/modules.d/%{load_order}_%{mod_name}.conf

# Remove empty file
rm -f docs/api/mod_perl-2.0/pm_to_blib

install -m0755 %{SOURCE3} %{buildroot}%{_var}/www/perl

# install missing required files
install -d %{buildroot}%{perl_vendorarch}/Apache2/Apache
install -m0644 xs/tables/current/Apache2/ConstantsTable.pm %{buildroot}%{perl_vendorarch}/Apache2/Apache/
install -m0644 xs/tables/current/Apache2/FunctionTable.pm %{buildroot}%{perl_vendorarch}/Apache2/Apache/
install -m0644 xs/tables/current/Apache2/StructureTable.pm %{buildroot}%{perl_vendorarch}/Apache2/Apache/

# cleanup
find %{buildroot}%{perl_archlib} -name perllocal.pod | xargs rm -f

# don't pack the Apache-Test stuff
rm -f %{buildroot}%{perl_vendorarch}/Apache/Test*
rm -rf %{buildroot}%{perl_vendorarch}/MyTest*
rm -f %{buildroot}%{perl_vendorarch}/Bundle/ApacheTest.pm
rm -f %{buildroot}%{_mandir}/man3/Apache::Test*
rm -f %{buildroot}%{_mandir}/man3/Bundle::ApacheTest.3pm

# do not ship the patch backups
find %{buildroot}%{perl_vendorarch} -name '*.pm.cve*' | xargs rm -f

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11920 |21mr|apache-mod_wsgi-4.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Module-Specific definitions
%define apache_version 2.4.46
%define mod_name mod_wsgi
%define mod_conf B23_%{mod_name}.conf
%define mod_so %{mod_name}.so
%define _disable_ld_no_undefined %nil

Summary:	Python WSGI adapter module for Apache
Name:		apache-%{mod_name}
Version:	4.9.0
Release:	1
Group:		System/Servers
License:	Apache License
URL:		https://github.com/GrahamDumpleton/mod_wsgi
Source0:	https://github.com/GrahamDumpleton/mod_wsgi/archive/%{version}.tar.gz?/%{mod_name}-%{version}.tar.gz
Source1:	%{mod_conf}
Requires(pre):	rpm-helper
Requires(postun): rpm-helper
Requires(pre):	apache-conf >= %{apache_version}
Requires(pre):	apache >= %{apache_version}
Requires:	apache-conf >= %{apache_version}
Requires:	apache >= %{apache_version}
BuildRequires:	apache-devel >= %{apache_version}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	apache-mpm-prefork >= %{apache_version}

%description
The mod_wsgi adapter is an Apache module that provides a WSGI compliant
interface for hosting Python based web applications within Apache. The
adapter is written completely in C code against the Apache C runtime and
for hosting WSGI applications within Apache has a lower overhead than using
existing WSGI adapters for mod_python or CGI.

%files
%doc LICENSE README.rst
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/%{mod_conf}
%attr(0755,root,root) %{_libdir}/apache/%{mod_so}

#-----------------------------------------------------------------------
%package -n python3-%{mod_name}
Summary:	python3 module for %{mod_name}
Requires:	httpd
Requires:	%{name} = %{EVRD}

%description -n python3-%{mod_name}
The mod_wsgi adapter is an Apache module that provides a WSGI compliant
interface for hosting Python based web applications within Apache. The
adapter is written completely in C code against the Apache C runtime and
for hosting WSGI applications within Apache has a lower overhead than using
existing WSGI adapters for mod_python or CGI.

%files -n python3-%{mod_name}
%license LICENSE
%doc CREDITS.rst README.rst
%{python3_sitearch}/mod_wsgi-*.egg-info
%{python3_sitearch}/mod_wsgi
%{_bindir}/mod_wsgi-express

#-----------------------------------------------------------------------

%prep

%setup -q -n %{mod_name}-%{version}

cp %{SOURCE1} %{mod_conf}
sed -i "s|_MODULE_DIR_|%{_libdir}/apache|g" %{mod_conf}

%build
rm -f configure
autoconf

%configure --localstatedir=/var/lib \
    --with-apxs=%{_bindir}/apxs

%make_build
%py3_build

%install
%py3_install

install -d %{buildroot}%{_libdir}/apache
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d

install -m0755 src/server/.libs/%{mod_so} %{buildroot}%{_libdir}/apache
install -m0644 %{mod_conf} %{buildroot}%{_sysconfdir}/httpd/modules.d/%{mod_conf}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11921 |21mr|apache-parent-21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-parent
Version:        21
Release:        2
Summary:        Parent POM file for Apache projects
License:        ASL 2.0
URL:            http://apache.org/
Source0:        http://repo1.maven.org/maven2/org/apache/apache/%{version}/apache-%{version}-source-release.zip
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)

# Not generated automatically
BuildRequires:  mvn(org.apache:apache-jar-resource-bundle)
Requires:       mvn(org.apache:apache-jar-resource-bundle)

%description
This package contains the parent pom file for apache projects.

%prep
%setup -n apache-%{version}

%pom_remove_plugin :maven-site-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11922 |21mr|apache-poi-3.17-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global reldate 20170915

Name:          apache-poi
Version:       3.17
Release:       6
Summary:       The Java API for Microsoft Documents
# ASLv2 + GPLv3 src/resources/scratchpad/org/apache/poi/hdgf/chunks_parse_cmds.tbl
# https://bugzilla.redhat.com/show_bug.cgi?id=1146670#c13
License:       ASL 2.0 and (CC-BY and CC-BY-SA and W3C) and GPLv3
URL:           http://poi.apache.org/
Source0:       http://archive.apache.org/dist/poi/release/src/poi-src-%{version}%{?reldate:-}%{?reldate}.tar.gz
# Creative Commons license 4.0 (Attribution-ShareAlike)
# These two zip files renamed after download for deficiencies in fedpkg
#Source1:       http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%204%20%28PDF%29.zip
#Source2:       http://www.ecma-international.org/publications/files/ECMA-ST/Office%20Open%20XML%201st%20edition%20Part%202%20%28PDF%29.zip
Source1:       Office_Open_XML_1st_edition_Part_4__PDF_.zip
Source2:       Office_Open_XML_1st_edition_Part_2__PDF_.zip
# Creative Commons Attribution 3.0 License
Source3:       http://dublincore.org/schemas/xmls/qdc/2003/04/02/dc.xsd
Source4:       http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcterms.xsd
Source5:       http://dublincore.org/schemas/xmls/qdc/2003/04/02/dcmitype.xsd
# W3C
Source6:       http://www.w3.org/TR/2002/REC-xmldsig-core-20020212/xmldsig-core-schema.xsd
# http://www.etsi.org/index.php/terms-of-use
# see https://bz.apache.org/bugzilla/show_bug.cgi?id=57862
Source7:       http://uri.etsi.org/01903/v1.3.2/XAdES.xsd
Source8:       http://uri.etsi.org/01903/v1.4.1/XAdESv141.xsd

# Force compile of xsds if disconnected
Patch1:        apache-poi-3.14-compile-xsds.patch
# Disable javadoc doclint
Patch2:        apache-poi-3.14-build.patch

# ROSA
Patch3:        0001-HACK-Off-failing-tests.patch

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: jacoco
BuildRequires: javapackages-local
BuildRequires: jmh
BuildRequires: bsf
BuildRequires: jmh-generator-annprocess
BuildRequires: apache-commons-collections4 >= 4.1
BuildRequires: apache-commons-codec
BuildRequires: apache-commons-logging
BuildRequires: mvn(com.github.virtuald:curvesapi)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.ant:ant-junit)
BuildRequires: mvn(org.apache.ant:ant-apache-bsf)
BuildRequires: mvn(org.apache.santuario:xmlsec) >= 2.0.1
BuildRequires: mvn(org.apache.xmlbeans:xmlbeans)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.ow2.asm:asm-all)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(rhino:js)

#Fonts for testing
BuildRequires: fontconfig fonts-ttf-liberation

%description
The Apache POI Project's mission is to create and maintain Java APIs for
manipulating various file formats based upon the Office Open XML standards
(OOXML) and Microsoft's OLE 2 Compound Document format (OLE2). In short, you
can read and write MS Excel files using Java. In addition, you can read and
write MS Word and MS PowerPoint files using Java. Apache POI is your Java
Excel solution (for Excel 97-2008). We have a complete API for porting other
OOXML and OLE2 formats and welcome others to participate.

OLE2 files include most Microsoft Office files such as XLS, DOC, and PPT as
well as MFC serialization API based file formats. The project provides APIs
for the OLE2 Filesystem (POIFS) and OLE2 Document Properties (HPSF).

Office OpenXML Format is the new standards based XML file format found in
Microsoft Office 2007 and 2008. This includes XLSX, DOCX and PPTX. The
project provides a low level API to support the Open Packaging Conventions
using openxml4j.

For each MS Office application there exists a component module that attempts
to provide a common high level Java API to both OLE2 and OOXML document
formats. This is most developed for Excel workbooks (SS=HSSF+XSSF). Work is
progressing for Word documents (HWPF+XWPF) and PowerPoint presentations
(HSLF+XSLF).

The project has recently added support for Outlook (HSMF). Microsoft opened
the specifications to this format in October 2007. We would welcome
contributions.

There are also projects for Visio (HDGF) and Publisher (HPBF). 

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n poi-%{version}
%patch1
%patch2
%patch3 -p1

find -name '*.class' -delete
find -name '*.jar' -delete

mkdir lib ooxml-lib
build-jar-repository -s -p lib \
  ant commons-collections4 commons-codec commons-logging bcprov bcpkix xmlsec slf4j/slf4j-api log4j-1.2.17 \
  junit hamcrest/core jmh/jmh-core jmh/jmh-generator-annprocess
build-jar-repository -s -p ooxml-lib dom4j xmlbeans/xbean curvesapi

#Unpack the XMLSchema
pushd ooxml-lib
unzip "%SOURCE1" OfficeOpenXML-XMLSchema.zip
unzip "%SOURCE2" OpenPackagingConventions-XMLSchema.zip
cp -p %SOURCE3 .
cp -p %SOURCE4 .
cp -p %SOURCE5 .
cp -p %SOURCE6 .
cp -p %SOURCE7 .
cp -p %SOURCE8 .
popd

# Customize pom file
%pom_xpath_inject "pom:dependencies/pom:dependency[pom:artifactId ='ant']" \
  "<scope>provided</scope>" maven/poi-excelant.pom

# Compat symlinks
for m in poi poi-excelant poi-examples poi-ooxml poi-ooxml-schemas poi-scratchpad ; do
%mvn_file org.apache.poi:${m} poi/apache-${m} poi/${m}
done

# These tests fails on arm builders
rm src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheet.java \
 src/ooxml/testcases/org/apache/poi/xssf/usermodel/TestXSSFSheetMergeRegions.java
sed -i '/TestXSSFSheet/d' src/ooxml/testcases/org/apache/poi/xssf/usermodel/AllXSSFUsermodelTests.java

# This test fails for unknown reason
rm src/ooxml/testcases/org/apache/poi/sl/TestFonts.java

%build
cat > build.properties <<'EOF'
main.ant.jar=lib/ant.jar
main.commons-collections4.jar=lib/commons-collections4.jar
main.commons-codec.jar=lib/commons-codec.jar
main.commons-logging.jar=lib/commons-logging.jar
main.log4j.jar=lib/log4j-1.2.17.jar
main.junit.jar=lib/junit.jar
main.jmh.jar=lib/jmh_jmh-core.jar
main.jmhAnnotation.jar=lib/jmh_jmh-generator-annprocess.jar
main.hamcrest.jar=lib/hamcrest_core.jar
ooxml.dom4j.jar=ooxml-lib/dom4j.jar
ooxml.curvesapi.jar=ooxml-lib/curvesapi.jar
ooxml.xmlbeans23.jar=ooxml-lib/xmlbeans_xbean.jar
ooxml.xmlbeans26.jar=ooxml-lib/xmlbeans_xbean.jar
dsig.xmlsec.jar=lib/xmlsec.jar
dsig.bouncycastle-prov.jar=lib/bcprov.jar
dsig.bouncycastle-pkix.jar=lib/bcpkix.jar
dsig.sl4j-api.jar=lib/slf4j_slf4j-api.jar
disconnected=1
DSTAMP=%{reldate}
EOF

export ANT_OPTS="-Xmx768m"
%ant -propertyfile build.properties compile-ooxml-xsds jar maven-poms javadocs

%install
for m in poi poi-excelant poi-examples poi-ooxml poi-ooxml-schemas poi-scratchpad ; do
%mvn_artifact build/dist/maven/$m/${m}-%{version}.pom build/dist/maven/$m/${m}-%{version}.jar
done

%mvn_install -J build/tmp/site/build/site/apidocs

%check
export LANG=C.UTF-8 # To enable 8-bit character tests
#ant -propertyfile build.properties test

%files -f .mfiles
%doc KEYS
%license LICENSE NOTICE
 
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11923 |21mr|apache-portlet-1.0-api-1.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If you don't want to build with maven, and use straight ant instead,
# give rpmbuild option '--without maven'

%define _with_maven 0
%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}

%define base_name portlet-1.0-api

%define section free

Summary:	Portlet API 1.0 from Jetspeed2
Name:		apache-portlet-1.0-api
Version:	1.0
Release:	16
License:	Apache License
Url:		http://portals.apache.org/jetspeed-2/
Group:		Development/Java
Source0:	apache-portlet-1.0-api.tar.gz
# svn export http://svn.apache.org/repos/asf/portals/jetspeed-2/tags/JETSPEED-RELEASE-2.0/portlet-api/
Source1:	apache-portlet-1.0-api-pom.xml
Source2:	apache-portlet-1.0-api-LICENSE.TXT
Source3:	apache-portlet-1.0-api-build.xml
BuildRequires:	ant >= 0:1.6
BuildRequires:	java-devel >= 0:1.4
BuildRequires:	java-rpmbuild >= 0:1.7.2
%if %{with_maven}
BuildRequires:	maven-local
%endif
Requires(post,postun):	jpackage-utils >= 0:1.7.2
Provides:	portlet = %{EVRD}
Provides:	portlet-1.0-api = %{EVRD}
BuildArch:	noarch

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java Standard Portlet API accoring to JSR-168, from Jetspeed-2.

%files -f .mfiles
%doc %{_docdir}/%{name}-%{version}/LICENSE.TXT



#----------------------------------------------------------------------------

%package javadoc
Summary:	Javadoc %{name}
Group:		Development/Java
Requires(post,postun):	coreutils

%description javadoc
Javadoc %{name}.

%files javadoc -f .mfiles-javadoc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;

cp %{SOURCE1} pom.xml
cp %{SOURCE3} build.xml

%mvn_file :portlet-api %{name}-1.0 %{name}  portlet-1.0-api-1.0 portlet-1.0-api  
%mvn_alias :portlet-api :%{name}-1.0 :%{name}  :portlet-1.0-api-1.0 :portlet-1.0-api

%build
%if %{with_maven}
%mvn_build
%else
export CLASSPATH=
export OPT_JAR_LIST="ant/ant-nodeps"
%{ant} -p jar javadoc
%endif

%install
install -d -m 755 %{buildroot}%{_docdir}/%{name}-%{version}
cp %{SOURCE2} %{buildroot}%{_docdir}/%{name}-%{version}/LICENSE.TXT

%mvn_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11924 |21mr|apache-rat-0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apache-rat
Summary:        Apache Release Audit Tool (RAT)
Version:        0.13
Release:        1
License:        ASL 2.0
Group:          Development/Java
URL:            http://creadur.apache.org/rat/
Source0:        http://www.apache.org/dist/creadur/%{name}-%{version}/%{name}-%{version}-src.tar.bz2

Patch1:         0001-Port-to-current-doxia-sitetools.patch

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-antunit)
BuildRequires:  mvn(org.apache.ant:ant-testutil)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-core)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-decoration-model)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-artifact:2.2.1)
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
BuildRequires:  mvn(org.apache.maven:maven-model:2.2.1)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-settings:2.2.1)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.hamcrest:hamcrest-library)
BuildRequires:  mvn(org.mockito:mockito-all)
BuildRequires:  mvn(org.mockito:mockito-core)

%description
Release Audit Tool (RAT) is a tool to improve accuracy and efficiency when
checking releases. It is heuristic in nature: making guesses about possible
problems. It will produce false positives and cannot find every possible
issue with a release. It's reports require interpretation.

RAT was developed in response to a need felt in the Apache Incubator to be
able to review releases for the most common faults less labor intensively.
It is therefore highly tuned to the Apache style of releases.

This package just contains meta-data, you will want either apache-rat-tasks,
or apache-rat-plugin.


%package        api
Summary:        API module for %{name}

%description    api
Shared beans and services.


%package        core
Summary:        Core functionality for %{name}

# explicit requires for javapackages-tools since apache-rat-script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    core
The core functionality of RAT, shared by the Ant tasks, and the Maven plugin.
It also includes a wrapper script "apache-rat" that should be the equivalent
to running upstream's "java -jar apache-rat.jar".


%package        plugin
Summary:        Maven plugin for %{name}

%description    plugin
Maven plugin for running RAT, the Release Audit Tool.


%package        tasks
Summary:        Ant tasks for %{name}

%description    tasks
Ant tasks for running RAT.


%package        javadoc
Summary:        Javadocs for %{name}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q

%patch1 -p1

# apache-rat is a module bundling other RAT modules together and as
# such it is not needed.
%pom_disable_module apache-rat

# maven-antrun-plugin is used for running tests only and tests are
# skipped anyways.  See rhbz#988561
%pom_remove_plugin -r :maven-antrun-plugin

# don't run apache-rat's checks on apache-rat:
# these tests fail and would introduce a circular self-dependency
%pom_remove_plugin -r :apache-rat-plugin

%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin

# runs non-xmvn maven and downloads stuff
%pom_remove_plugin -r :maven-invoker-plugin

# wagon-ssh is not needed in Fedora.
%pom_xpath_remove pom:extensions

# incompatible with our plexus-container
rm apache-rat-plugin/src/test/java/org/apache/rat/mp/RatCheckMojoTest.java


%build
%mvn_build -s


%install
%mvn_install

# create wrapper script
%jpackage_script org.apache.rat.Report "" "" %{name}/%{name}-core:commons-cli:commons-io:commons-collections:commons-compress:commons-lang:junit apache-rat true

# install ant taksks
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
echo "apache-rat/rat-core apache-rat/rat-tasks" > $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name}


%files -f .mfiles-%{name}-project
%doc LICENSE NOTICE

%files api -f .mfiles-%{name}-api
%doc README.txt RELEASE-NOTES.txt
%doc LICENSE NOTICE

%files core -f .mfiles-%{name}-core
%{_bindir}/%{name}

%files plugin -f .mfiles-%{name}-plugin

%files tasks -f .mfiles-%{name}-tasks
%{_sysconfdir}/ant.d/%{name}
%doc ant-task-examples.xml

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11925 |21mr|apache-resource-bundles-2-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global jar_version 1.4
%global lh_version 1.1
%global id_version 1.1

Name:           apache-resource-bundles
Version:        2
Release:        23
Summary:        Apache Resource Bundles
License:        ASL 2.0
URL:            http://repo1.maven.org/maven2/org/apache/apache-resource-bundles/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/%{name}/%{version}/%{name}-%{version}.pom
Source1:        http://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/%{jar_version}/apache-jar-resource-bundle-%{jar_version}-sources.jar
Source2:        http://repo1.maven.org/maven2/org/apache/apache-jar-resource-bundle/%{jar_version}/apache-jar-resource-bundle-%{jar_version}.pom
Source3:        http://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/%{lh_version}/apache-license-header-resource-bundle-%{lh_version}-sources.jar
Source4:        http://repo1.maven.org/maven2/org/apache/apache-license-header-resource-bundle/%{lh_version}/apache-license-header-resource-bundle-%{lh_version}.pom
Source5:        http://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/%{id_version}/apache-incubator-disclaimer-resource-bundle-%{id_version}-sources.jar
Source6:        http://repo1.maven.org/maven2/org/apache/apache-incubator-disclaimer-resource-bundle/%{id_version}/apache-incubator-disclaimer-resource-bundle-%{id_version}.pom

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)

%description
An archive which contains templates for generating the necessary license files
and notices for all Apache releases.

%prep
%setup -cT
cp -p %{SOURCE0} ./pom.xml

# jar
mkdir -p apache-jar-resource-bundle
pushd apache-jar-resource-bundle
jar xvf %{SOURCE1}
cp -p %{SOURCE2} ./pom.xml
mkdir -p src/main/resources
mv META-INF src/main/resources
popd

# license-header
mkdir -p apache-license-header-resource-bundle
pushd apache-license-header-resource-bundle
jar xvf %{SOURCE3}
cp -p %{SOURCE4} ./pom.xml
mkdir -p src/main/resources
mv META-INF src/main/resources
popd

# incubator-disclaimer
mkdir -p apache-incubator-disclaimer-resource-bundle
pushd apache-incubator-disclaimer-resource-bundle
jar xvf %{SOURCE5}
cp -p %{SOURCE6} ./pom.xml
mkdir -p src/main/resources
mv META-INF src/main/resources
popd

%mvn_file :apache-jar-resource-bundle apache-resource-bundles/jar
%mvn_file :apache-license-header-resource-bundle apache-resource-bundles/license-header
%mvn_file :apache-incubator-disclaimer-resource-bundle apache-resource-bundles/incubator-disclaimer

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11926 |21mr|apache-sshd-2.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Epoch:          1
Name:           apache-sshd
Version:        2.2.0
Release:        2
Summary:        Apache SSHD

# One file has ISC licensing:
#   sshd-common/src/main/java/org/apache/sshd/common/config/keys/loader/openssh/kdf/BCrypt.java
License:        ASL 2.0 and ISC
Group:          Development/Java
URL:            http://mina.apache.org/sshd-project

Source0:        https://archive.apache.org/dist/mina/sshd/%{version}/apache-sshd-%{version}-src.tar.gz

Patch0:         0001-Avoid-optional-dependency-on-native-tomcat-APR-libra.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.i2p.crypto:eddsa)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-clean-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.apache.maven.surefire:surefire-junit47)
BuildRequires:  mvn(org.bouncycastle:bcpg-jdk15on)
BuildRequires:  mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.slf4j:slf4j-api)

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache SSHD is a 100% pure java library to support the SSH protocols on both
the client and server side.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{name}.

%prep
%setup -q

# Avoid optional dep on tomcat native APR library
%patch0 -p1
rm -rf sshd-core/src/main/java/org/apache/sshd/agent/unix

# Avoid unnecessary dep on spring framework
%pom_remove_dep :spring-framework-bom

# Build the core modules only
%pom_disable_module assembly
%pom_disable_module sshd-mina
%pom_disable_module sshd-netty
%pom_disable_module sshd-ldap
%pom_disable_module sshd-git
%pom_disable_module sshd-contrib
%pom_disable_module sshd-spring-sftp
%pom_disable_module sshd-cli
%pom_disable_module sshd-openpgp

# Disable plugins we don't need for RPM builds
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :groovy-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin

# Suppress generation of uses clauses
%pom_xpath_inject "pom:configuration/pom:instructions" "<_nouses>true</_nouses>" .

%build
# tests require ch.ethz.ganymed:ganymed-ssh2
%mvn_build -f -- -Dworkspace.root.dir=$(pwd)

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt assembly/src/main/legal/licenses/jbcrypt.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt assembly/src/main/legal/licenses/jbcrypt.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11927 |21mr|apcupsd-3.14.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _halpolicydir %{_datadir}/hal/fdi/policy/20thirdparty
%define _cgibin /var/www/cgi-bin
%define _sbindir /sbin

Summary:	Power management software for APC UPS hardware
Name:		apcupsd
Version:	3.14.14
Release:	5
License:	GPLv2+
Group:		System/Servers
Url:		http://sourceforge.net/projects/apcupsd/
Source0:	http://mesh.dl.sourceforge.net/sourceforge/apcupsd/%{name}-%{version}.tar.gz
BuildRequires:	man
BuildRequires:	gd-devel
BuildRequires:	systemd
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(ncurses)
Requires:	nail
Requires:	tcp_wrappers
Requires(post,preun):	rpm-helper

%description
UPS power management under Linux for APCC Products. It allows your
computer/server to run during power problems for a specified length of time or
the life of the batteries in your BackUPS, BackUPS Pro, SmartUPS v/s, or
SmartUPS, and then properly executes a controlled shutdown during an extended
power failure.

%files
%doc ChangeLog DISCLAIMER Developers ReleaseNotes examples doc/manual
%{_initrddir}/apcupsd
%dir %{_sysconfdir}/apcupsd
%config(noreplace) %{_sysconfdir}/apcupsd/*
%{_halpolicydir}/80-apcupsd-ups-policy.fdi
%{_sbindir}/apcaccess
%{_sbindir}/apctest
%{_sbindir}/apcupsd
%{_sbindir}/smtp
%{_cgibin}/multimon.cgi
%{_cgibin}/upsfstats.cgi
%{_cgibin}/upsimage.cgi
%{_cgibin}/upsstats.cgi
%{_mandir}/man8/*
%{_mandir}/man5/apcupsd.conf.5*

%post
%_post_service apcupsd

%preun
%_preun_service apcupsd

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix attribs
find examples -type f | xargs chmod 644

%build
%serverbuild

%configure \
	--sysconfdir=%{_sysconfdir}/apcupsd \
	--enable-usb \
	--enable-net \
	--enable-master-slave \
	--enable-pthreads \
	--enable-cgi \
	--with-cgi-bin=%{_cgibin} \
	--with-serial-dev= \
	--with-upstype=usb \
	--with-halpolicydir=%{_halpolicydir} \
	--with-upscable=usb \
	--with-nisip=127.0.0.1 \
	--with-libwrap

make VERBOSE=1

%install
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_cgibin}

#perl -pi -e 's|/etc|\$\%{buildroot}/etc|g' platforms/mandrake/Makefile.in
perl -pi -e 's|\@/sbin/chkconfig|\#\@/sbin/chkconfig|' platforms/mandrake/Makefile.in

%makeinstall_std
#cgibin=%{buildroot}%{_cgibin}

install -m0644 platforms/etc/apcupsd.conf %{buildroot}%{_sysconfdir}/apcupsd/
install -m0755 platforms/apccontrol %{buildroot}%{_sysconfdir}/apcupsd/
install -m0755 platforms/redhat/apcupsd %{buildroot}%{_initrddir}/

for src in changeme commfailure commok onbattery offbattery; do
    install -m0744 platforms/etc/$src %{buildroot}%{_sysconfdir}/apcupsd/$src
done

# cleanup
pushd doc/manual
    rm -f *.rst publishdoc Makefile
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11928 |21mr|apfloat-java-1.8.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          apfloat-java
Version:       1.8.2
Release:       7
Summary:       High performance arbitrary precision arithmetic library for Java
License:       LGPLv2+
URL:           http://www.apfloat.org/apfloat_java/
Source0:       http://www.apfloat.org/apfloat_java/apfloat-%{version}.zip
Source1:       http://repo1.maven.org/maven2/org/apfloat/apfloat/%{version}/apfloat-%{version}.pom
Source2:       http://repo1.maven.org/maven2/org/apfloat/apfloat-calc/%{version}/apfloat-calc-%{version}.pom
Source3:       http://repo1.maven.org/maven2/org/apfloat/apfloat-samples/%{version}/apfloat-samples-%{version}.pom
Source4:       http://repo1.maven.org/maven2/org/apfloat/apfloat-parent/%{version}/apfloat-parent-%{version}.pom
# Apfloat Java all files without license headers
# Thise is the upstream reply
Source100:     ReApfloatJavalicenseheaders.eml

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apfloat is a high performance arbitrary precision arithmetic library.
You can perform calculations with a precision of millions of digits
with it. It's as simple to use as Java's BigDecimal or BigInteger classes,
but performs a lot better with extreme precision numbers (more than a few
hundred digits). Also, a full suite of mathematical functions for arbitrary
precision numbers are available: all those existing in java.lang.Math and
more.

%package calc
Summary:       Apfloat Calc

%description calc
Interactive arbitrary precision calculator application.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package parent
Summary:       Apfloat Parent POM

%description parent
Administrative Parent POM for Apfloat.

%package samples
Summary:       Apfloat Samples

%description samples
Sample programs for apfloat for calculating pi.

%prep
%setup -q -c
# Extract missing services resources
%jar -xf lib/apfloat.jar
# Cleanup
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete
rm -r applet docs org lib

# Prepare source directories structures
mkdir -p apfloat/src/main/java/org/apfloat
mv source/org/apfloat/*.java apfloat/src/main/java/org/apfloat
mv source/org/apfloat/internal apfloat/src/main/java/org/apfloat
mv source/org/apfloat/spi apfloat/src/main/java/org/apfloat
mkdir -p apfloat/src/main/resources/META-INF
mv META-INF/services apfloat/src/main/resources/META-INF
rm -r META-INF

mkdir -p apfloat-calc/src/main/java/org/apfloat
mv source/org/apfloat/calc apfloat-calc/src/main/java/org/apfloat
# re-generate
rm apfloat-calc/src/main/java/org/apfloat/calc/CalculatorParser.java
rm apfloat-calc/src/main/java/org/apfloat/calc/CalculatorParserConstants.java
rm apfloat-calc/src/main/java/org/apfloat/calc/CalculatorParserTokenManager.java
rm apfloat-calc/src/main/java/org/apfloat/calc/ParseException.java
rm apfloat-calc/src/main/java/org/apfloat/calc/SimpleCharStream.java
rm apfloat-calc/src/main/java/org/apfloat/calc/Token.java
rm apfloat-calc/src/main/java/org/apfloat/calc/TokenMgrError.java

mkdir -p apfloat-samples/src/main/java/org/apfloat
mv source/org/apfloat/samples apfloat-samples/src/main/java/org/apfloat

cp -p %SOURCE1 apfloat/pom.xml
cp -p %SOURCE2 apfloat-calc/pom.xml
cp -p %SOURCE3 apfloat-samples/pom.xml
cp -p %SOURCE4 pom.xml

%pom_disable_module apfloat-applet
%pom_disable_module apfloat-jscience

# Disable classpath entries in manifest files
%pom_xpath_remove -r "pom:addClasspath" apfloat-calc apfloat-samples
%pom_xpath_remove "pom:classpathLayoutType" apfloat-calc
%pom_xpath_remove "pom:customClasspathLayout" apfloat-calc
# Fix encoding
%pom_xpath_set -r "pom:properties/pom:project.build.sourceEncoding" UTF-8
%pom_xpath_set -r "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration/pom:docencoding" UTF-8  apfloat-calc apfloat-samples
# Disable signatures
%pom_remove_plugin -r :maven-gpg-plugin
%pom_xpath_remove "pom:properties/pom:gpg.useagent"

# Uanavailable resources
%pom_remove_plugin :maven-antrun-plugin apfloat
%pom_xpath_remove "pom:build/pom:filters" apfloat

# OSGi support
%pom_xpath_set "pom:project/pom:packaging" bundle apfloat
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 apfloat '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

for p in apfloat-calc \
 apfloat-samples; do
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" ${p}
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 ${p} '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'
done

# fix non ASCII chars
native2ascii -encoding UTF8 apfloat/src/main/java/org/apfloat/GCDHelper.java \
 apfloat/src/main/java/org/apfloat/GCDHelper.java

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-apfloat
%doc readme.html
%license lgpl.txt

%files calc -f .mfiles-apfloat-calc
%files javadoc -f .mfiles-javadoc
%license lgpl.txt

%files parent -f .mfiles-apfloat-parent
%license lgpl.txt

%files samples -f .mfiles-apfloat-samples


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11929 |21mr|apiguardian-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           apiguardian
Summary:        API Guardian Java annotation
Version:        1.1.0
Release:        2
License:        ASL 2.0

URL:            https://github.com/apiguardian-team/apiguardian
Source0:        https://github.com/apiguardian-team/apiguardian/archive/r%{version}/%{name}-%{version}.tar.gz
Source100:      https://repo1.maven.org/maven2/org/apiguardian/apiguardian-api/%{version}/apiguardian-api-%{version}.pom

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local

%description
API Guardian indicates the status of an API element and therefore its
level of stability as well.  It is used to annotate public types,
methods, constructors, and fields within a framework or application in
order to publish their API status and level of stability and to
indicate how they are intended to be used by consumers of the API.


%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
API documentation for %{name}.


%prep
%setup -q -n %{name}-r%{version}
find -name "*.jar" -print -delete

cp -pav %{SOURCE100} pom.xml

# Inject OSGi manifest required by Eclipse
%pom_xpath_inject pom:project "
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <configuration>
            <archive>
              <manifestEntries>
                <Automatic-Module-Name>org.apiguardian.api</Automatic-Module-Name>
                <Implementation-Title>apiguardian-api</Implementation-Title>
                <Implementation-Vendor>apiguardian.org</Implementation-Vendor>
                <Implementation-Version>%{version}</Implementation-Version>
                <Specification-Title>apiguardian-api</Specification-Title>
                <Specification-Vendor>apiguardian.org</Specification-Vendor>
                <Specification-Version>%{version}</Specification-Version>
                <!-- OSGi metadata required by Eclipse -->
                <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
                <Bundle-SymbolicName>org.apiguardian</Bundle-SymbolicName>
                <Bundle-Version>%{version}</Bundle-Version>
                <Export-Package>org.apiguardian.api;version=\"%{version}\"</Export-Package>
              </manifestEntries>
            </archive>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>"


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11930 |21mr|apiviz-1.3.2-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .GA
%global namedversion %{version}%{?namedreltag}

Name:             apiviz
Version:          1.3.2
Release:          20
Summary:          APIviz is a JavaDoc doclet to generate class and package diagrams
License:          LGPLv2+
URL:              http://code.google.com/p/apiviz/
Source0:          http://apiviz.googlecode.com/files/apiviz-%{namedversion}-dist.tar.gz
Patch0:           0001-JDK7-compatibility.patch
Patch1:           0002-JDK8-compatibility.patch
Patch2:           0003-fix-deprecated-assembly-goal.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(ant-contrib:ant-contrib)
BuildRequires:    mvn(com.sun:tools)
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

%description
APIviz is a JavaDoc doclet which extends the Java standard doclet.
It generates comprehensive UML-like class and package diagrams for
quick understanding of the overall API structure. 

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n apiviz-%{namedversion}
%patch0 -p1
%patch1 -p1
%patch2 -p0

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

#%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId = 'tools']/pom:scope"
#%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId = 'tools']/pom:systemPath"

%pom_remove_dep com.sun:tools
%pom_add_dep com.sun:tools

%mvn_alias "org.jboss.apiviz:apiviz" "net.gleamynode.apiviz:apiviz"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc COPYRIGHT.txt LICENSE.jdepend.txt LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11931 |21mr|apmd-3.2.2-36
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define libname	%mklibname apm %{major}
%define devname	%mklibname apm -d

Summary:	Advanced Power Management (APM) BIOS utilities for laptops
Name:		apmd
Version:	3.2.2
Release:	36
License:	GPLv2+
Group:		System/Servers
Url:		ftp://ftp.debian.org/debian/pool/main/a/apmd
Source0:	ftp://ftp.debian.org/debian/pool/main/a/apmd/%{name}_%{version}.orig.tar.gz
Source1:	apmd.init
Source3:	apmd_proxy
Patch0:		apmd-3.2.2.orig-lib64.patch
Patch1:		apmd-3.2.2.orig-graphicswitch.patch
Patch2:		apmd-3.2.2.orig-optimization.patch
Patch5:		apmd-3.2.2.orig-security.patch
Patch9:		apmd-3.2.2.orig-proxy-timeout.patch
Patch10:	apmd-3.2.2-libtool.patch

BuildRequires:	libtool
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)
Requires(post,preun):	rpm-helper
Requires:	initscripts

%description
APMD is a set of programs for controlling the Advanced Power 
Management daemon and utilities found in most modern laptop 
computers. APMD can watch your notebook's battery and warn 
users when the battery is low. APMD is also capable of shutting 
down the PCMCIA sockets before a suspend.

Install the apmd package if you need to control the APM system 
on your laptop.

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n %{devname}
Summary:	Development library for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the developmeent library needed to compile
programs that use %{name}.

%prep
%setup -qn apmd-%{version}.orig
%apply_patches

echo "LIB = %{_lib}" > config.make

%build
%serverbuild
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags} -s" PROXY_DIR=%{_sbindir}

%install
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/apm-scripts

%makeinstall_std PREFIX=%{_prefix} MANDIR=%{_mandir}

for i in apm.1 apmsleep.1;
	do install -m644 $i -D %{buildroot}%{_mandir}/man1/$i;
done
install -m644 apmd.8 -D %{buildroot}%{_mandir}/man8/apmd.8

install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/apmd
install -m755 %{SOURCE3} -D %{buildroot}%{_sbindir}/apmd_proxy
rm -f %{buildroot}%{_bindir}/on_ac_power

chmod 0755 %{buildroot}%{_libdir}/libapm.so.1.0.0

%post
%_post_service apmd

%preun
%_preun_service apmd

%files
%doc AUTHORS ChangeLog README apmsleep.README
%config(noreplace) %{_initrddir}/apmd
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man?/*

%files -n %{libname}
%{_libdir}/libapm.so.%{major}*

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11932 |21mr|appdata-tools-0.1.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for AppData files
Name:		appdata-tools
Version:	0.1.8
Release:	4
License:	GPLv2+
Group:		File tools
Url:		http://people.freedesktop.org/~hughsient/appdata/
Source0:	http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(appstream-glib)

%description
appdata-tools contains a command line program designed to validate AppData
application descriptions for standards compliance and to the style guide.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_bindir}/appdata-validate
%{_mandir}/man1/appdata-validate.1.*
%dir %{_datadir}/appdata/schema
%{_datadir}/appdata/schema/appdata.xsd
%{_datadir}/appdata/schema/appdata.rnc
%{_datadir}/appdata/schema/schema-locating-rules.xml
%{_datadir}/aclocal/appdata-xml.m4
%{_datadir}/emacs/site-lisp/site-start.d/appdata-rng-init.el

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11933 |21mr|appres-1.0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	List X application resource database
Name:		appres
Version:	1.0.5
Release:	5
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)

%description
The appres program prints the resources seen by an application (or
sub-hierarchy of an application) with the specified class and instance
names. It can be used to determine which resources a particular
program will load.

%files
%{_bindir}/appres
%{_mandir}/man1/appres.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11934 |21mr|appstream-0.16.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname AppStream

%define major 4
%define girmajor 1.0
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{girmajor}
%define devname %mklibname %{name} -d

%define qt_major 2
%define libnameqt %mklibname %{name}qt %{qt_major}
%define devnameqt %mklibname %{name}qt -d

Summary:	Utilities to generate, maintain and access the AppStream Xapian database
Name:		appstream
Version:	0.16.3
Release:	1
# lib LGPLv2.1+, tools GPLv2+
License:	GPLv2+ and LGPLv2.1+
Group:		System/Configuration/Packaging
Url:		http://www.freedesktop.org/wiki/Distributions/AppStream/Software
Source0:	http://www.freedesktop.org/software/appstream/releases/%{oname}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	qmake5
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	xmlto
BuildRequires:	gperf
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(packagekit-glib2)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	pkgconfig(yaml-0.1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:  pkgconfig(vapigen)
BuildRequires:  pkgconfig(xmlb)
BuildRequires:  vala-tools
BuildRequires:	gtk-doc
BuildRequires:	libstemmer-devel
BuildRequires:	lmdb-devel

%description
AppStream-Core makes it easy to access application information from the
AppStream database over a nice GObject-based interface.

%files -f appstream.lang
%doc %{_docdir}/%{name}
%config(noreplace) %{_sysconfdir}/appstream.conf
%{_bindir}/appstreamcli
%{_mandir}/man1/appstreamcli.1*
%dir %{_datadir}/app-info/
%dir %{_datadir}/app-info/icons
%dir %{_datadir}/app-info/xmls
%{_datadir}/metainfo/org.freedesktop.appstream.cli.metainfo.xml
%ghost %{_var}/cache/app-info/cache.watch
%dir %{_var}/cache/app-info
%dir %{_var}/cache/app-info/icons
%dir %{_var}/cache/app-info/xapian
%dir %{_var}/cache/app-info/xmls

%posttrans
%{_bindir}/appstream-index refresh --force >& /dev/null ||:

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libappstream.so.%{major}*
%{_libdir}/libappstream.so.%{version}

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection files for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/AppStream-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/appstream/
%{_libdir}/libappstream.so
%{_libdir}/pkgconfig/appstream.pc
%dir %{_datadir}/gettext/its/
%{_datadir}/installed-tests/appstream/metainfo-validate.test
%{_datadir}/gettext/its/metainfo.*
%{_datadir}/gir-1.0/AppStream-%{girmajor}.gir
%{_datadir}/gtk-doc/html/appstream

#----------------------------------------------------------------------------

%package -n %{libnameqt}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnameqt}
Shared library for %{name}.

%files -n %{libnameqt}
%{_libdir}/libAppStreamQt.so.%{qt_major}
%{_libdir}/libAppStreamQt.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devnameqt}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libnameqt} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-qt5-devel = %{EVRD}

%description -n %{devnameqt}
Development files for %{name}.

%files -n %{devnameqt}
%{_includedir}/AppStreamQt/
%{_libdir}/cmake/AppStreamQt/
%{_libdir}/libAppStreamQt.so

#----------------------------------------------------------------------------

%package vala
Summary: Vala bindings for %{name}
Group:   Development/Other
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: vala

%description vala
Vala files for %{name}.

%files vala
%{_datadir}/vala/vapi/appstream.deps
%{_datadir}/vala/vapi/appstream.vapi

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%meson \
  -Dqt=true \
  -Dvapi=true

%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_datadir}/app-info/{icons,xmls}
mkdir -p %{buildroot}%{_var}/cache/app-info/{icons,xapian,xmls}
touch %{buildroot}%{_var}/cache/app-info/cache.watch

%find_lang appstream

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11935 |21mr|appstream-glib-0.7.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version} | cut -d. -f1,2)

%define _disable_ld_no_undefined 1
%define api	5
%define major	8
%define gmajor	1.0
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d
%define girname	%mklibname %{name}-gir %{gmajor}

Summary:	Library for reading and writing AppStream metadata
Name:		appstream-glib
Version:	0.7.18
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		http://people.freedesktop.org/~hughsient/appstream-glib/
Source0:	http://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	docbook-dtd43-xml
BuildRequires:	gcab
BuildRequires:	gettext-devel
BuildRequires:	gperf
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	libstemmer-devel
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.16.1
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libgcab-1.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(yaml-0.1)

%description
This library provides GObjects and helper methods to make it easy to read and
write AppStream metadata. It also provides a simple DOM implementation that
makes it easy to edit nodes and convert to and from the standardized XML
representation.

#----------------------------------------------------------------------------

%package -n appstream-util
Summary:	Utility to do simple operations on AppStream metadata
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	gcab

%description -n appstream-util
Utility to do simple operations on AppStream metadata.

Sub-commands understood by this utility include: 'install', 'uninstall',
'dump' and 'convert'.

%files -n appstream-util
%doc AUTHORS COPYING README.md
%{_bindir}/appstream-builder
%{_bindir}/appstream-compose
%{_bindir}/appstream-util
%{_datadir}/bash-completion/completions/appstream-builder
%{_datadir}/bash-completion/completions/appstream-util
%{_libdir}/asb-plugins-%{api}/libasb_plugin_*.so
%{_mandir}/man1/appstream-builder.1*
%{_mandir}/man1/appstream-compose.1*
%{_mandir}/man1/appstream-util.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for reading and writing AppStream metadata
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
This library provides GObjects and helper methods to make it easy to read and
write AppStream metadata. It also provides a simple DOM implementation that
makes it easy to edit nodes and convert to and from the standardized XML
representation.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/AppStreamGlib-%{gmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc COPYING
%{_datadir}/aclocal/appstream-xml.m4
%{_datadir}/aclocal/appdata-xml.m4
%{_datadir}/gettext/its/appdata.*
%{_datadir}/gir-1.0/AppStreamGlib-%{gmajor}.gir
%{_datadir}/gtk-doc/html
%{_datadir}/installed-tests/%{name}
%{_includedir}/lib%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package i18n
Summary:	Library for reading and writing AppStream metadata - translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
This package contains translations used by %{name}.

%files i18n -f %{name}.lang
%doc COPYING

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i 's@include\( .\)\(libstemmer\.h.\)@include\1libstemmer/\2@' lib%{name}/as-stemmer.c

%build
%meson -Dgtk-doc=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11936 |21mr|apr-1.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 0
%define libname %mklibname apr %{api} %{major}
%define devname %mklibname apr -d

%bcond_with crosscompile
%bcond_without test

Summary:	Apache Portable Runtime library
Name:		apr
Version:	1.7.0
Release:	2
Epoch:		1
License:	Apache License
Group:		System/Libraries
Url:		http://apr.apache.org/
Source0:	http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2
Source1:	http://www.apache.org/dist/apr/%{name}-%{version}.tar.bz2.asc
Patch1:		apr-1.4.6-config.diff
Patch2:		https://github.com/apache/apr/commit/0a763c5e500f4304b7c534fae0fad430d64982e8.patch
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	python3
BuildRequires:	pkgconfig(uuid)

%description
The mission of the Apache Portable Runtime (APR) is to provide a free library
of C data structures and routines, forming a system portability layer to as
many operating systems as possible, including Unices, MS Win32, BeOS and OS/2.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Apache Portable Runtime library
Group: 		System/Libraries

%description -n %{libname}
The mission of the Apache Portable Runtime (APR) is to provide a free library
of C data structures and routines, forming a system portability layer to as
many operating systems as possible, including Unices, MS Win32, BeOS and OS/2.

%files -n %{libname}
%{_libdir}/libapr-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	APR library development kit
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	libtool
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the support files which can be used to build applications
using the APR library. The mission of the Apache Portable Runtime (APR) is to
provide a free library of C data structures and routines.

%files -n %{devname}
%doc CHANGES README*
%doc docs/APRDesign.html docs/canonical_filenames.html
%doc docs/incomplete_types docs/non_apr_programs
%doc html
%{_bindir}/apr-%{api}-config
%{_libdir}/libapr-%{api}.so
%dir %{_libdir}/apr-%{api}
%dir %{_libdir}/apr-%{api}/build
%{_libdir}/apr-%{api}/build/*
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/apr-%{api}
%dir %{_includedir}/apr-%{api}/arch
%dir %{_includedir}/apr-%{api}/arch/unix
%{_includedir}/apr-%{api}/*.h
%{_includedir}/apr-%{api}/arch/*.h
%{_includedir}/apr-%{api}/arch/unix/*.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1

cat >> config.layout << EOF
<Layout NUX>
    prefix:        %{_prefix}
    exec_prefix:   %{_prefix}
    bindir:        %{_bindir}
    sbindir:       %{_sbindir}
    libdir:        %{_libdir}
    libexecdir:    %{_libexecdir}
    mandir:        %{_mandir}
    infodir:       %{_infodir}
    includedir:    %{_includedir}/apr-%{api}
    sysconfdir:    %{_sysconfdir}
    datadir:       %{_datadir}
    installbuilddir: %{_libdir}/apr-%{api}/build
    localstatedir: /var
    runtimedir:    /var/run
    libsuffix:     -\${APR_MAJOR_VERSION}
</Layout>
EOF

%build
%if %{with crosscompile}
export ac_cv_file__dev_zero=yes
export ac_cv_func_setpgrp_void=yes
export apr_cv_process_shared_works=yes
export apr_cv_mutex_robust_shared=no
export apr_cv_tcp_nodelay_with_cork=yes
export ac_cv_sizeof_struct_iovec=8
export apr_cv_mutex_recursive=yes
%endif
%serverbuild

# We need to re-run ./buildconf because of any applied patch(es)
#rm -f configure; sh ./buildconf
./buildconf

# Forcibly prevent detection of shm_open (which then picks up but
# does not use -lrt).

cat >> config.cache << EOF
ac_cv_search_shm_open=no
EOF

%configure \
	--cache-file=config.cache \
	--includedir=%{_includedir}/apr-%{api} \
	--with-installbuilddir=%{_libdir}/apr-%{api}/build \
	--enable-layout=NUX \
%ifarch %ix86
%ifnarch i386 i486
	--enable-nonportable-atomics=yes \
%endif
%endif
	--enable-lfs \
	--enable-threads \
	--with-sendfile  \
	--with-devrandom=/dev/urandom \
	--disable-static

%make LIBS="-lpthread"
make dox

%install
%makeinstall_std

# These are referenced by apr_rules.mk
for f in make_exports.awk make_var_export.awk; do
    install -m0644 build/${f} %{buildroot}%{_libdir}/apr-%{api}/build/${f}
done

install -m0755 build/mkdir.sh %{buildroot}%{_libdir}/apr-%{api}/build/mkdir.sh

# these are needed if apr-util is ./buildconf'ed
for f in apr_common.m4 apr_hints.m4 apr_network.m4 apr_threads.m4 find_apr.m4; do
    install -m0644 build/${f} %{buildroot}%{_libdir}/apr-%{api}/build/${f}
done
install -m0755 build/gen-build.py %{buildroot}%{_libdir}/apr-%{api}/build/

# enforce system libtool
ln -snf %{_bindir}/libtool %{buildroot}%{_libdir}/apr-%{api}/build/libtool

# Sanitize apr_rules.mk
sed -e "/^apr_build/d" \
    -e 's|$(apr_builders)|%{_libdir}/apr-%{api}/build|g' \
    -e 's|$(apr_builddir)|%{_libdir}/apr-%{api}/build|g' \
    < build/apr_rules.mk > %{buildroot}%{_libdir}/apr-%{api}/build/apr_rules.mk

# antibork
perl -pi -e "s|^top_builddir=.*|top_builddir=%{_libdir}/apr-%{api}/build|g" %{buildroot}%{_libdir}/apr-%{api}/build/apr_rules.mk

# Move docs to more convenient location
rm -rf html
cp -r docs/dox/html html

# here too
perl -pi -e "s|-luuid -lcrypt||g" \
    %{buildroot}%{_bindir}/apr-%{api}-config \
    %{buildroot}%{_libdir}/pkgconfig/*.pc

# Unpackaged files:
rm -f %{buildroot}%{_libdir}/apr.exp

# extra headers
install -d %{buildroot}%{_includedir}/apr-%{api}/arch/unix
install -m0644 include/arch/apr_private_common.h %{buildroot}%{_includedir}/apr-%{api}/arch/
install -m0644 include/arch/unix/*.h %{buildroot}%{_includedir}/apr-%{api}/arch/unix/

%if %{with test}
%check
# Must allow failure because testsockets will
# fail in abf (port not available in container)
make check || :
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11937 |21mr|apr-util-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without dbd_ldap
# No longer supported
%bcond_with dbd_freetds
%bcond_without dbd_mysql
# disable
%bcond_with dbd_oracle
#
%bcond_without dbd_sqlite3
%bcond_without dbd_psql
%bcond_without dbd_odbc
%bcond_without dbm_db

%define api 1
%define major 0
%define libname %mklibname apr-util %{api} %{major}
%define devname %mklibname -d apr-util

Summary:	Apache Portable Runtime Utility library
Name:		apr-util
Version:	1.6.1
Release:	1
License:	Apache License
Group:		System/Libraries
Url:		http://apr.apache.org/
Source0:	http://www.apache.org/dist/apr/apr-util-%{version}.tar.bz2
Source1:	http://www.apache.org/dist/apr/apr-util-%{version}.tar.bz2.asc
Patch0:		apr-util-1.2.2-config.diff
Patch1:		apr-util-1.2.7-link.diff
Patch2:		apr-util-1.3.12-linkage_fix.diff
Patch3:		apr-util-1.5.1-no-libtool.la.patch
Patch4:		mariadb-10.patch

BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	python2
BuildRequires:	pam-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(apr-1)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
%if %{with dbd_ldap}
BuildRequires:	openldap-devel
BuildRequires:	db-devel
%endif
%if %{with dbd_freetds}
BuildRequires:	freetds-devel
%endif
%if %{with dbd_mysql}
BuildRequires:	mysql-devel
%endif
%if %{with dbd_oracle}
BuildRequires:	oracle-devel
%endif
%if %{with dbd_psql}
BuildRequires:	postgresql-devel
%endif
%if %{with dbd_sqlite3}
BuildRequires:	pkgconfig(sqlite3)
%endif
%if %{with dbd_odbc}
BuildRequires:	unixODBC-devel
%endif
%if %{with dbm_db}
BuildRequires:	db-devel
%endif

%if %{with dbd_psql}
# stupid postgresql... stupid build system...
# this is needed due to the postgresql packaging and due to bugs like this:
# https://qa.mandriva.com/show_bug.cgi?id=52527
%define postgresql_version %(pg_config &>/dev/null && pg_config 2>/dev/null | grep "^VERSION" | awk '{ print $4 }' 2>/dev/null || echo 0)
%endif

%description
The mission of the Apache Portable Runtime (APR) is to provide a
free library of C data structures and routines.  This library
contains additional utility interfaces for APR; including support
for XML, LDAP, database interfaces, URI parsing and more.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Apache Portable Runtime Utility library
Group: 		System/Libraries

%description -n %{libname}
The mission of the Apache Portable Runtime (APR) is to provide a
free library of C data structures and routines.  This library
contains additional utility interfaces for APR; including support
for XML, LDAP, database interfaces, URI parsing and more.

%files -n %{libname}
%{_libdir}/libaprutil-%{api}.so.%{major}*
%dir %{_libdir}/apr-util-%{api}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	APR utility library development kit
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the support files which can be used to
build applications using the APR utility library.  The mission
of the Apache Portable Runtime (APR) is to provide a free
library of C data structures and routines.

%files -n %{devname}
%doc CHANGES LICENSE
%{_bindir}/apu-%{api}-config
%{_includedir}/apr-%{api}/*.h
%{_libdir}/libaprutil-%{api}.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%if %{with dbm_db}
%package dbm-db
Summary:	DBD driver for Berkley BD
Group:		System/Libraries
License:	Apache License
Requires:	%{libname} >= %{EVRD}

%description dbm-db
DBD driver for Berkley BD.

%files dbm-db
%{_libdir}/apr-util-%{api}/apr_dbm_db*.so
%endif

#----------------------------------------------------------------------------

%if %{with dbd_freetds}
%package dbd-freetds
Summary:	DBD driver for FreeTDS
Group:		System/Libraries
License:	Apache License
Requires:	%{libname} >= %{EVRD}

%description dbd-freetds
DBD driver for FreeTDS.

%files dbd-freetds
%{_libdir}/apr-util-%{api}/apr_dbd_freetds*.so
%endif

#----------------------------------------------------------------------------

%if %{with dbd_ldap}
%package dbd-ldap
Summary:	DBD driver for OpenLDAP
Group:		System/Libraries
License:	Apache License
Requires:	%{libname} >= %{EVRD}

%description dbd-ldap
DBD driver for OpenLDAP.

%files dbd-ldap
%{_libdir}/apr-util-%{api}/apr_ldap*.so
%endif

#----------------------------------------------------------------------------

%if %{with dbd_mysql}
%package dbd-mysql
Summary:	DBD driver for MySQL
Group:		System/Libraries
License:	Apache License
Requires:	%{libname} >= %{EVRD}

%description dbd-mysql
DBD driver for MySQL.

%files dbd-mysql
%{_libdir}/apr-util-%{api}/apr_dbd_mysql*.so
%endif

#----------------------------------------------------------------------------

%if %{with dbd_odbc}
%package dbd-odbc
Summary:	DBD driver for unixODBC
Group:		System/Libraries
License:	Apache License
Requires:	%{libname} >= %{EVRD}

%description dbd-odbc
DBD driver for unixODBC.

%files dbd-odbc
%{_libdir}/apr-util-%{api}/apr_dbd_odbc*.so
%endif

#----------------------------------------------------------------------------

%if %{with dbd_oracle}
%package dbd-oracle
Summary:	DBD driver for Oracle
Group:		System/Libraries
License:	Apache License
Requires:	%{libname} >= %{EVRD}

%description dbd-oracle
DBD driver for Oracle.

%files dbd-oracle
%{_libdir}/apr-util-%{api}/apr_dbd_oracle*.so
%endif

#----------------------------------------------------------------------------

%if %{with dbd_psql}
%package dbd-pgsql
Summary:	DBD driver for PostgreSQL
Group:		System/Libraries
License:	Apache License
Requires:	%{libname} >= %{EVRD}

%description dbd-pgsql
DBD driver for PostgreSQL.

%files dbd-pgsql
%{_libdir}/apr-util-%{api}/apr_dbd_pgsql*.so
%endif

#----------------------------------------------------------------------------

%if %{with dbd_sqlite3}
%package dbd-sqlite3
Summary:	DBD driver for SQLite 3
Group:		System/Libraries
License:	Apache License
Requires:	%{libname} >= %{EVRD}

%description dbd-sqlite3
DBD driver for SQLite 3.

%files dbd-sqlite3
%{_libdir}/apr-util-%{api}/apr_dbd_sqlite3*.so
%endif

#----------------------------------------------------------------------------

%package openssl
Summary:	APR utility library OpenSSL crypto support
Group:		System/Libraries
Requires:	%{libname} >= %{EVRD}

%description openssl
This package provides the OpenSSL crypto support for apr-util.

%files openssl
%{_libdir}/apr-util-%{api}/apr_crypto_openssl*.so

#----------------------------------------------------------------------------

%package nss
Summary:	APR utility library NSS crypto support
Group:		System/Libraries
Requires:	%{libname} >= %{EVRD}

%description nss
This package provides the NSS crypto support for apr-util.

%files nss
%{_libdir}/apr-util-%{api}/apr_crypto_nss*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .config
%patch1 -p0 -b .link
%patch2 -p0 -b .linkage_fix
%patch3 -p1 -b .libtoolsucks~
%patch4 -p1 -b .mdb

cat >> config.layout << EOF
<Layout NUX>
    prefix:        %{_prefix}
    exec_prefix:   %{_prefix}
    bindir:        %{_bindir}
    sbindir:       %{_sbindir}
    libdir:        %{_libdir}
    libexecdir:    %{_libexecdir}
    mandir:        %{_mandir}
    infodir:       %{_infodir}
    includedir:    %{_includedir}/apr-%{api}
    sysconfdir:    %{_sysconfdir}
    datadir:       %{_datadir}
    installbuilddir: %{_libdir}/apr-%{api}/build
    localstatedir: /var
    runtimedir:    /var/run
    libsuffix:     -\${APRUTIL_MAJOR_VERSION}
</Layout>
EOF

%build
%serverbuild

# We need to re-run ./buildconf because of any applied patch(es)
#./buildconf --with-apr=%{_prefix}

# buildconf is borked...
cp %{_libdir}/apr-%{api}/build/apr_common.m4 %{_libdir}/apr-%{api}/build/find_apr.m4 %{_libdir}/apr-%{api}/build/gen-build.py build/

# conditional lib64 hack
%if "%{_lib}" != "lib"
perl -pi -e "s|/lib\b|/%{_lib}|g" build/*.m4
%endif

export WANT_AUTOCONF_2_5=1
rm -f configure
libtoolize --copy --force; aclocal; autoconf --force
%{__python2} build/gen-build.py make

sed -i -e '/OBJECTS_all/s, dbd/apr_dbd_[^ ]*\.lo,,g' build-outputs.mk

# force values that may produce wrong results
export apu_have_sqlite2='0'
cat >> config.cache << EOF
ac_cv_header_sqlite_h=no
ac_cv_lib_sqlite_sqlite_open=no
ac_cv_ldap_set_rebind_proc_style=three
EOF

%configure \
	--cache-file=config.cache \
	--with-apr=%{_prefix} \
	--includedir=%{_includedir}/apr-%{api} \
	--with-installbuilddir=%{_libdir}/apr-%{api}/build \
	--enable-layout=NUX \
%if %{with dbd_ldap}
	--with-ldap \
%endif
%if %{with dbd_freetds}
	--with-freetds=%{_prefix} \
%endif
%if %{with dbd_mysql}
	--with-mysql=%{_prefix} \
%endif
%if %{with dbd_oracle}
	--with-oracle \
%endif
%if %{with dbd_psql}
	--with-pgsql=%{_prefix} \
%endif
%if %{with dbd_sqlite3}
	--with-sqlite3=%{_prefix} \
%endif
%if %{with dbd_odbc}
	--with-odbc=%{_prefix} \
%endif
%if %{with dbm_db}
	--with-berkeley-db \
%endif
	--without-sqlite2 \
	--without-gdbm \
	--with-crypto \
	--with-openssl=%{_prefix} \
	--with-nss=%{_prefix}

%make_build
make dox

%install
%make_install

# Documentation
rm -rf html; cp -rp docs/dox/html html

# Remove unnecessary exports from dependency_libs
sed -ri '/^dependency_libs/{s,-l(pq|sqlite[0-9]|mysqlclient_r|rt|dl|uuid) ,,g}' %{buildroot}%{_libdir}/libapr*.la

# here as well
sed -ri '/^dependency_libs/{s,%{_libdir}/lib(sqlite[0-9]|mysqlclient_r)\.la ,,g}' %{buildroot}%{_libdir}/libapr*.la

# multiarch anti-borker
perl -pi -e "s|^LDFLAGS=.*|LDFLAGS=\"\"|g" %{buildroot}%{_bindir}/apu-%{api}-config

# includes anti-borker
perl -pi -e "s|-I%{_includedir}/mysql||g" %{buildroot}%{_bindir}/apu-%{api}-config

# Unpackaged files
rm -f %{buildroot}%{_libdir}/aprutil.exp

%check
pushd test
    make check
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11938 |21mr|aqbanking-6.2.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 44
%define libname %mklibname %{name} %{major}
%define libnone %mklibname aqnone %{major}
%define devname %mklibname %{name} -d

Summary:	A library for online banking functions and financial data import/export
Name:		aqbanking
Version:	6.2.10
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.aquamaniac.de/sites/aqbanking/index.php
Source:		https://www.aquamaniac.de/rdm/attachments/download/368/aqbanking-%{version}.tar.gz
BuildRequires:	gmp-devel
BuildRequires:	libchipcard-devel
BuildRequires:	pkgconfig(gwenhywfar)
BuildRequires:	pkgconfig(ktoblzcheck)
BuildRequires:	pkgconfig(libofx)
BuildRequires:	pkgconfig(xmlsec1-gnutls)

%description
The intention of AqBanking is to provide a middle layer between the
program and the various Online Banking libraries (e.g. AqHBCI). The
first backend which is already supported is AqHBCI, a library which
implements a client for the German HBCI (Home Banking Computer
Interface) protocol. Additionally, Aqbanking provides various plugins
to simplify import and export of financial data. Currently there are
import plugins for the following formats: DTAUS (German financial
format), SWIFT (MT940 and MT942).

%files -f %{name}.lang
%doc installed-docs
%{_bindir}/aqbanking-cli
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%dir %{_libdir}/%{name}/plugins/%{major}/
%dir %{_libdir}/%{name}/plugins/%{major}/providers/
%dir %{_libdir}/%{name}/plugins/%{major}/imexporters/
%{_libdir}/%{name}/plugins/%{major}/bankinfo/
%{_libdir}/%{name}/plugins/%{major}/imexporters/csv*
%{_libdir}/%{name}/plugins/%{major}/imexporters/ctxfile*
%{_libdir}/%{name}/plugins/%{major}/imexporters/eri*
%{_libdir}/%{name}/plugins/%{major}/imexporters/openhbci*
%{_libdir}/%{name}/plugins/%{major}/imexporters/q43.*
%{_libdir}/%{name}/plugins/%{major}/imexporters/sepa*
%{_libdir}/%{name}/plugins/%{major}/imexporters/swift*
%{_libdir}/%{name}/plugins/%{major}/imexporters/xmldb*
%{_libdir}/%{name}/plugins/%{major}/imexporters/yellownet*
%{_libdir}/%{name}/plugins/%{major}/imexporters/camt.xml
%{_libdir}/%{name}/plugins/%{major}/imexporters/xml.xml
%{_libdir}/%{name}/plugins/%{major}/providers/aqnone*
%{_libdir}/%{name}/plugins/%{major}/dbio/swift.so
%{_libdir}/%{name}/plugins/%{major}/dbio/swift.xml
%{_datadir}/%{name}

#----------------------------------------------------------------------------
%package -n aqhbci
Summary:	The HBCI backend for the Aqbanking library
Group:		System/Libraries

%description -n aqhbci
This is the backend for the Aqbanking library which 
implements a client for the German HBCI (Home Banking Computer
Interface) protocol.

%files -n aqhbci
%{_bindir}/aqhbci-tool4
%{_libdir}/%{name}/plugins/%{major}/providers/aqhbci*

#----------------------------------------------------------------------------

%package -n aqebics
Summary:	The EBICS backend for the Aqbanking library
Group:		System/Libraries

%description -n aqebics
This is the backend for the Aqbanking library which
implements a client for the EBICS protocol.

%files -n aqebics
%{_bindir}/aqebics-tool
%{_libdir}/%{name}/plugins/%{major}/providers/aqebics*

#----------------------------------------------------------------------------

%package -n aqpaypal
Summary:	The Paypal backend for the Aqbanking library
Group:		System/Libraries

%description -n aqpaypal
This is the backend for the Aqbanking library which
implements a client for the Paypal protocol.

%files -n aqpaypal
%{_bindir}/aqpaypal-tool
%{_libdir}/%{name}/plugins/%{major}/providers/aqpaypal*

#----------------------------------------------------------------------------

%package ofx
Summary:	Aqbanking tools for OFX
Group:		System/Libraries

%description ofx
Necessary for OFX direct connect access.

%files ofx
%{_libdir}/%{name}/plugins/%{major}/imexporters/ofx*
%{_libdir}/%{name}/plugins/%{major}/providers/aqofxconnect*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for online banking functions and financial data import/export
Group:		System/Libraries
Requires:	%{name} >= %{version}

%description -n %{libname}
The intention of AqBanking is to provide a middle layer between the
program and the various Online Banking libraries (e.g. AqHBCI). The
first backend which is already supported is AqHBCI, a library which
implements a client for the German HBCI (Home Banking Computer
Interface) protocol. Additionally, Aqbanking provides various plugins
to simplify import and export of financial data. Currently there are
import plugins for the following formats: DTAUS (German financial
format), SWIFT (MT940 and MT942).

%files -n %{libname}
%{_libdir}/libaqbanking.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Aqbanking development kit
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	aqhbci-devel = %{EVRD}
Provides:	aqebics-devel = %{EVRD}

%description -n %{devname}
This package contains aqbanking-config and header files for writing and
compiling programs using Aqbanking.

%files -n %{devname}
%{_bindir}/aqbanking-config
%{_includedir}/aqbanking6
%{_libdir}/libaqbanking.so
%{_datadir}/aclocal/aqbanking.m4
%{_libdir}/cmake/*/*.cmake
%{_libdir}/pkgconfig/aqbanking.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

rm -rf installed-docs/
mv %{buildroot}%{_datadir}/doc/%{name} installed-docs/
#mv %{buildroot}%{_datadir}/doc/aqhbci/* installed-docs/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11939 |21mr|aqute-bnd-3.5.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           aqute-bnd
Version:        3.5.0
Release:        7
Summary:        BND Tool
# Part of jpm is under BSD, but jpm is not included in binary RPM
License:        ASL 2.0
Group:          Development/Java
URL:            http://bnd.bndtools.org/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        %{version}.REL.tar.gz
# removes bundled jars from upstream tarball
# run as:
# ./repack-tarball.sh
Source1:        repack-tarball.sh

Source2:        parent.pom
Source3:        https://repo1.maven.org/maven2/biz/aQute/bnd/aQute.libg/%{version}/aQute.libg-%{version}.pom
Source4:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd/%{version}/biz.aQute.bnd-%{version}.pom
Source5:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bndlib/%{version}/biz.aQute.bndlib-%{version}.pom
Source6:        https://repo1.maven.org/maven2/biz/aQute/bnd/biz.aQute.bnd.annotation/%{version}/biz.aQute.bnd.annotation-%{version}.pom

Patch0:         0001-Disable-removed-commands.patch
Patch1:         0002-Fix-ant-compatibility.patch
Patch2:         0001-Port-to-OSGI-7.0.0.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.osgi:osgi.annotation)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)
# Explicit javapackages-tools requires since bnd script uses
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description
The bnd tool helps you create and diagnose OSGi bundles.
The key functions are:
- Show the manifest and JAR contents of a bundle
- Wrap a JAR so that it becomes a bundle
- Create a Bundle from a specification and a class path
- Verify the validity of the manifest entries
The tool is capable of acting as:
- Command line tool
- File format
- Directives
- Use of macros

%package -n aqute-bndlib
Summary:        BND library

%description -n aqute-bndlib
%{summary}.

%package -n bnd-maven-plugin
Summary:        BND Maven plugin

%description -n bnd-maven-plugin
%{summary}.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n bnd-%{version}.REL

rm gradlew*

%patch0 -p1
%patch1 -p1
%patch2 -p1

# the commands pull in more dependencies than we want (felix-resolver, jetty)
rm biz.aQute.bnd/src/aQute/bnd/main/{RemoteCommand,ResolveCommand}.java

sed 's/@VERSION@/%{version}/' %SOURCE2 > pom.xml
sed -i 's|${Bundle-Version}|%{version}|' biz.aQute.bndlib/src/aQute/bnd/osgi/bnd.info



# libg
pushd aQute.libg
cp -p %{SOURCE3} pom.xml
%pom_add_parent biz.aQute.bnd:parent:%{version}
%pom_add_dep org.osgi:osgi.cmpn
%pom_add_dep org.slf4j:slf4j-api
popd

# bndlib.annotations
pushd biz.aQute.bnd.annotation
cp -p %{SOURCE6} pom.xml
%pom_add_parent biz.aQute.bnd:parent:%{version}
popd

# bndlib
pushd biz.aQute.bndlib
cp -p %{SOURCE5} pom.xml
%pom_add_parent biz.aQute.bnd:parent:%{version}

%pom_add_dep org.osgi:osgi.annotation
%pom_add_dep org.osgi:osgi.core
%pom_add_dep org.osgi:osgi.cmpn
%pom_add_dep org.slf4j:slf4j-api
%pom_add_dep biz.aQute.bnd:aQute.libg:%{version}
%pom_add_dep biz.aQute.bnd:biz.aQute.bnd.annotation:%{version}
popd

# bnd
pushd biz.aQute.bnd
cp -p %{SOURCE4} pom.xml
%pom_add_parent biz.aQute.bnd:parent:%{version}

%pom_add_dep biz.aQute.bnd:biz.aQute.bndlib:%{version}
%pom_add_dep biz.aQute.bnd:aQute.libg:%{version}
%pom_add_dep biz.aQute.bnd:biz.aQute.bnd.annotation:%{version}
%pom_add_dep org.apache.ant:ant
%pom_add_dep org.osgi:osgi.annotation
%pom_add_dep org.osgi:osgi.core
%pom_add_dep org.osgi:osgi.cmpn
%pom_add_dep org.slf4j:slf4j-api

%pom_add_dep org.slf4j:slf4j-simple::runtime
popd

# maven-plugins
pushd maven
rm bnd-shared-maven-lib/src/main/java/aQute/bnd/maven/lib/resolve/DependencyResolver.java
%pom_remove_dep -r :biz.aQute.resolve
%pom_remove_dep -r :biz.aQute.repository
# Unavailable reactor dependency - org.osgi.impl.bundle.repoindex.cli
%pom_disable_module bnd-indexer-maven-plugin
# Requires unbuilt parts of bnd
%pom_disable_module bnd-export-maven-plugin
%pom_disable_module bnd-resolver-maven-plugin
%pom_disable_module bnd-testing-maven-plugin
# Integration tests require Internet access
%pom_remove_plugin -r :maven-invoker-plugin
%pom_remove_plugin -r :maven-javadoc-plugin

%pom_remove_plugin -r :flatten-maven-plugin
popd


%mvn_alias biz.aQute.bnd:biz.aQute.bnd :bnd biz.aQute:bnd
%mvn_alias biz.aQute.bnd:biz.aQute.bndlib :bndlib biz.aQute:bndlib

%mvn_package biz.aQute.bnd:biz.aQute.bndlib bndlib
%mvn_package biz.aQute.bnd:biz.aQute.bnd.annotation bndlib
%mvn_package biz.aQute.bnd:aQute.libg bndlib
%mvn_package biz.aQute.bnd:bnd-shared-maven-lib maven
%mvn_package biz.aQute.bnd:bnd-maven-plugin maven
%mvn_package biz.aQute.bnd:bnd-baseline-maven-plugin maven
%mvn_package biz.aQute.bnd:parent __noinstall
%mvn_package biz.aQute.bnd:bnd-plugin-parent __noinstall

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

install -d -m 755 %{buildroot}%{_sysconfdir}/ant.d
echo "aqute-bnd slf4j/api slf4j/simple osgi-annotation osgi-core osgi-compendium" >%{buildroot}%{_sysconfdir}/ant.d/%{name}

%jpackage_script aQute.bnd.main.bnd "" "" aqute-bnd:slf4j/slf4j-api:slf4j/slf4j-simple:osgi-annotation:osgi-core:osgi-compendium bnd 1

%files -f .mfiles
%license LICENSE
%{_bindir}/bnd
%config(noreplace) %{_sysconfdir}/ant.d/*

%files -n aqute-bndlib -f .mfiles-bndlib
%license LICENSE

%files -n bnd-maven-plugin -f .mfiles-maven

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11940 |21mr|arduino-1.8.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global antflags -Dno_arduino_builder=true -Dsystem_avr=true -Dlight_bundle=true

%global appstream_id cc.arduino.arduinoide

%global avr_version 1.8.3
%global ethernet_version 2.0.0
%global examples_version 1.9.1
%global gsm_version 1.0.6
%global stepper_version 1.1.3
%global tft_version 1.0.6
%global wifi_version 1.2.7
%global firmata_version 2.5.8
%global bridge_version 1.7.0
%global robot_control_version 1.0.4
%global robot_motor_version 1.0.3
%global robotirremote_version 2.0.0
%global spacebrewyun_version 1.0.2
%global temboo_version 1.2.1
%global esplora_version 1.0.4
%global mouse_version 1.0.1
%global keyboard_version 1.0.2
%global sd_version 1.2.4
%global servo_version 1.1.6
%global liquidcrystal_version 1.0.7
%global adafruit_version 1.10.4

%global reference_version 1.6.6-3
%global wifi_firmware_updater_version 0.12.0

Name:           arduino
Version:        1.8.19
Release:        2
Summary:        An IDE for Arduino-compatible electronics prototyping platforms
Group:		Development/Java
License:        GPLv2+ and LGPLv2+ and CC-BY-SA
URL:            https://www.arduino.cc/
Source0:        https://github.com/arduino/Arduino/archive/%{version}/%{name}-%{version}.tar.gz
Source10:       https://downloads.arduino.cc/cores/avr-%{avr_version}.tar.bz2
Source11:       https://github.com/arduino-libraries/Ethernet/archive/%{ethernet_version}/Ethernet-%{ethernet_version}.zip
Source12:       https://github.com/arduino-libraries/GSM/archive/%{gsm_version}/GSM-%{gsm_version}.zip
Source13:       https://github.com/arduino-libraries/Stepper/archive/%{stepper_version}/Stepper-%{stepper_version}.zip
Source14:       https://github.com/arduino-libraries/TFT/archive/%{tft_version}/TFT-%{tft_version}.zip
Source15:       https://github.com/arduino-libraries/WiFi/archive/%{wifi_version}/WiFi-%{wifi_version}.zip
Source16:       https://github.com/firmata/arduino/archive/%{firmata_version}/Firmata-%{firmata_version}.zip
Source17:       https://github.com/arduino-libraries/Bridge/archive/%{bridge_version}/Bridge-%{bridge_version}.zip
Source18:       https://github.com/arduino-libraries/Robot_Control/archive/%{robot_control_version}/Robot_Control-%{robot_control_version}.zip
Source19:       https://github.com/arduino-libraries/Robot_Motor/archive/%{robot_motor_version}/Robot_Motor-%{robot_motor_version}.zip
Source20:       https://github.com/arduino-libraries/RobotIRremote/archive/%{robotirremote_version}/RobotIRremote-%{robotirremote_version}.zip
Source21:       https://github.com/arduino-libraries/SpacebrewYun/archive/%{spacebrewyun_version}/SpacebrewYun-%{spacebrewyun_version}.zip
Source22:       https://github.com/arduino-libraries/Temboo/archive/%{temboo_version}/Temboo-%{temboo_version}.zip
Source23:       https://github.com/arduino-libraries/Esplora/archive/%{esplora_version}/Esplora-%{esplora_version}.zip
Source24:       https://github.com/arduino-libraries/Mouse/archive/%{mouse_version}/Mouse-%{mouse_version}.zip
Source25:       https://github.com/arduino-libraries/Keyboard/archive/%{keyboard_version}/Keyboard-%{keyboard_version}.zip
Source26:       https://github.com/arduino-libraries/SD/archive/%{sd_version}/SD-%{sd_version}.zip
Source27:       https://github.com/arduino-libraries/Servo/archive/%{servo_version}/Servo-%{servo_version}.zip
Source28:       https://github.com/arduino-libraries/LiquidCrystal/archive/%{liquidcrystal_version}/LiquidCrystal-%{liquidcrystal_version}.zip
Source29:       https://github.com/Adafruit/Adafruit_CircuitPlayground/archive/%{adafruit_version}/Adafruit_Circuit_Playground-%{adafruit_version}.zip
Source30:	https://github.com/arduino/arduino-examples/archive/%{examples_version}/arduino-examples-%{examples_version}.zip
Source50:       https://downloads.arduino.cc/reference-%{reference_version}.zip
Source51:       https://github.com/arduino-libraries/WiFi101-FirmwareUpdater-Plugin/releases/download/v%{wifi_firmware_updater_version}/WiFi101-Updater-ArduinoIDE-Plugin-%{wifi_firmware_updater_version}.zip

Patch0:         arduino-use-system-avrdude.patch
Patch1:         arduino-use-system-astyle.patch
Patch2:         arduino-use-system-libserialport.patch
Patch3:         arduino-drop-macosx.patch
Patch4:         arduino-wrapper.patch
Patch5:         arduino-add-to-groups.patch
Patch6:         arduino-fix-path-to-builder.patch
Patch7:         arduino-fix-fresh-rsyntaxtextarea.patch
Patch8:		ctags-path.patch

BuildRequires:  ant
BuildRequires:  desktop-file-utils
BuildRequires:  appstream-util
BuildRequires:  javapackages-tools
BuildRequires:  java-devel

BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.fifesoft:rsyntaxtextarea)
BuildRequires:  mvn(com.github.zafarkhaja:java-semver)
BuildRequires:  mvn(com.jcraft:jsch)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.commons:commons-exec)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.commons:commons-logging)
BuildRequires:  mvn(org.apache.commons:commons-net)
BuildRequires:  mvn(org.apache.logging.log4j:log4j-api)
BuildRequires:  mvn(org.apache.xmlgraphics:batik-all)
BuildRequires:  mvn(org.bouncycastle:bcpg-jdk15)
BuildRequires:  mvn(javax.jmdns:jmdns)
BuildRequires:  mvn(org.scream3r:jssc)

Requires:       %{name}-core = %{version}-%{release}
Requires:       %{name}-devel = %{version}-%{release}
Requires:       javapackages-tools
Requires:       polkit

# Require arduino-builder, which is a go project and won't exist outside these arches
ExclusiveArch:  %{arm64} %{x86_64}
Requires:       %{name}-builder >= 1.3.25
Requires:	%{name}-ctags

BuildArch:      noarch

%description
Arduino is an open-source electronics prototyping platform based on
flexible, easy-to-use hardware and software. It's intended for artists,
designers, hobbyists, and anyone interested in creating interactive
objects or environments.

This package contains an IDE that can be used to develop and upload code
to the micro-controller.

%package        core
Summary:        Files required for compiling code for Arduino-compatible micro-controllers

Requires:       %{name}-doc = %{version}-%{release}
Requires:       %{name}-listSerialPortsC
Requires:       astyle
Requires:       avrdude
Requires:       %{_bindir}/avr-gcc
Requires:       %{_bindir}/avr-c++
Requires:       avr-libc
Requires:       java

Requires:       mvn(apache:commons-httpclient)
Requires:       mvn(com.fasterxml.jackson.core:jackson-annotations)
Requires:       mvn(com.fasterxml.jackson.core:jackson-core)
Requires:       mvn(com.fasterxml.jackson.core:jackson-databind)
Requires:       mvn(com.fifesoft:rsyntaxtextarea)
Requires:       mvn(com.github.zafarkhaja:java-semver)
Requires:       mvn(com.jcraft:jsch)
Requires:       mvn(commons-codec:commons-codec)
Requires:       mvn(commons-io:commons-io)
Requires:       mvn(org.apache.commons:commons-compress)
Requires:       mvn(org.apache.commons:commons-exec)
Requires:       mvn(org.apache.commons:commons-lang3)
Requires:       mvn(org.apache.commons:commons-logging)
Requires:       mvn(org.apache.commons:commons-net)
Requires:       mvn(org.apache.logging.log4j:log4j-api)
Requires:       mvn(org.apache.xmlgraphics:batik-all)
Requires:       mvn(org.apache.xmlgraphics:xmlgraphics-commons)
Requires:       mvn(org.bouncycastle:bcpg-jdk15)
Requires:       mvn(javax.jmdns:jmdns)
Requires:       mvn(org.ow2.asm:asm-all)
Requires:       mvn(org.scream3r:jssc)
Requires:       mvn(org.slf4j:slf4j-api)
Requires:       mvn(xml-apis:xml-apis)

%description    core
Arduino is an open-source electronics prototyping platform based on
flexible, easy-to-use hardware and software. It's intended for artists,
designers, hobbyists, and anyone interested in creating interactive
objects or environments.

This package contains the core files required to compile and upload
Arduino code.

%package        doc
Summary:        Documentation for the Arduino micro-controller platform

%description    doc
Arduino is an open-source electronics prototyping platform based on
flexible, easy-to-use hardware and software. It's intended for artists,
designers, hobbyists, and anyone interested in creating interactive
objects or environments.

This package contains reference documentation.

%package        devel
Summary:        Devel package for %{name}

Requires:       %{name}-core

%description    devel
Devel package for %{name}.


%prep
%autosetup -n Arduino-%{version} -N

tar -xvf %{SOURCE10} -C hardware

# Need improve this moment...
# patch0 requires unpacked archive with hardware things
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

cp \
	%{SOURCE10} \
	%{SOURCE11} \
	%{SOURCE12} \
	%{SOURCE13} \
	%{SOURCE14} \
	%{SOURCE15} \
	%{SOURCE16} \
	%{SOURCE17} \
	%{SOURCE18} \
	%{SOURCE19} \
	%{SOURCE20} \
	%{SOURCE21} \
	%{SOURCE22} \
	%{SOURCE23} \
	%{SOURCE24} \
	%{SOURCE25} \
	%{SOURCE26} \
	%{SOURCE27} \
	%{SOURCE28} \
	%{SOURCE29} \
	%{SOURCE30} \
	build/
cp \
	%{SOURCE50} \
	%{SOURCE51} \
	build/shared/

# Remove Windows and OSX specific code
find -type d \( -name macosx -o -name windows \) -print0 | xargs -0 rm -rf

# Drop binaries
find -name '*.elf' -delete
find -name '*.class' -delete
find -name '*.jar' -delete
find -name '*.so' -delete

# Disable update check
echo -e "\n# By default, don't notify the user of a new upstream version." \
        "\n# https://bugzilla.redhat.com/show_bug.cgi?id=773519" \
        "\nupdate.check=false" >> build/shared/lib/preferences.txt

# Include requires jars to arduino-core/lib folder
build-jar-repository -p arduino-core/lib/ \
    apache-commons-codec \
    apache-commons-compress \
    apache-commons-exec \
    apache-commons-io \
    apache-commons-lang3 \
    apache-commons-logging \
    apache-commons-net \
    bcpg \
    bcprov \
    jackson-annotations \
    jackson-core \
    jackson-databind \
    jmdns \
    jsch \
    jsemver \
    jssc

# Include few libraries manually
ln -s /usr/share/java/log4j/log4j-api.jar arduino-core/lib/log4j-api.jar

# Include requires jars to app/lib folder
build-jar-repository -p app/lib/ \
    apache-commons-compress \
    apache-commons-lang3 \
    batik \
    jsch \
    jsemver \
    jssc \
    rsyntaxtextarea
    
# Include library manually
ln -s /usr/share/java/log4j/log4j-api.jar app/lib/log4j-api.jar


%build
pushd build
echo %{version} | ant build %{antflags}
mkdir -p linux/work/hardware/arduino/
mv ../hardware/*/ linux/work/hardware/arduino/
popd


%install
pushd build

# Install wrapper
install -m 0755 -Dp linux/work/%{name} %{buildroot}%{_bindir}/%{name}

# Install desktop file
cp -p linux/dist/desktop.template linux/dist/%{appstream_id}.desktop
desktop-file-install --dir=%{buildroot}%{_datadir}/applications --set-icon=%{appstream_id} --set-key=Exec --set-value=%{name} linux/dist/%{appstream_id}.desktop

# Install app data
install -m 0644 -Dp linux/dist/appdata.xml %{buildroot}%{_datadir}/metainfo/%{appstream_id}.appdata.xml

# Install mime data
install -m 0644 -Dp linux/dist/mime.xml %{buildroot}%{_datadir}/mime/packages/%{appstream_id}.xml

# Install icons
for dir in shared/icons/*; do
    if [ -d $dir ]
    then
        size=`basename $dir`
        install -m 0644 -Dp $dir/apps/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/$size/apps/%{appstream_id}.png
    fi
done


# Install libs, examples, etc
mkdir -p                                    %{buildroot}%{_datadir}/%{name}
cp -ap linux/work/{examples,hardware,lib}   %{buildroot}%{_datadir}/%{name}/

rm -rf \
    %{buildroot}%{_datadir}/%{name}/lib/*.jar \
    %{buildroot}%{_datadir}/%{name}/lib/desktop.template \
    %{buildroot}%{_datadir}/%{name}/lib/version.txt \
    %{buildroot}%{_datadir}/%{name}/hardware/tools

cp -a linux/work/lib/{arduino-core.jar,pde.jar} %{buildroot}%{_datadir}/%{name}/lib/

install -m 0755 -Dp linux/dist/%{name}-add-groups %{buildroot}%{_libexecdir}/%{name}-add-groups
install -m 0644 -Dp linux/dist/cc.arduino.add-groups.policy %{buildroot}%{_datadir}/polkit-1/actions/cc.arduino.add-groups.policy

# Install configs
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
ln -s %{_datadir}/%{name}/hardware/avr/boards.txt       %{buildroot}%{_sysconfdir}/%{name}/boards.txt
ln -s %{_datadir}/%{name}/hardware/avr/programmers.txt  %{buildroot}%{_sysconfdir}/%{name}/programmers.txt
ln -s %{_datadir}/%{name}/lib/preferences.txt           %{buildroot}%{_sysconfdir}/%{name}/preferences.txt

popd

# Create empty directory to prevent compiler error
mkdir -p %{buildroot}%{_datadir}/%{name}/tools-builder

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/*.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml

# Disabled because nothing provides org.fest.swing.*
# # Include requires jars to app/lib folder
# build-jar-repository -p app/test-lib/ \
#     jackson-databind \
#     junit
# 
# pushd build
# ant test
# popd


%files core
%license license.txt
%doc README.md
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/lib/
%dir %{_datadir}/%{name}/tools-builder

%files doc
%{_datadir}/%{name}/examples/

%files devel
%{_datadir}/%{name}/hardware/

%files
%{_bindir}/%{name}
%{_libexecdir}/%{name}-add-groups
%{_datadir}/applications/%{appstream_id}.desktop
%{_datadir}/metainfo/%{appstream_id}.appdata.xml
%{_datadir}/mime/packages/%{appstream_id}.xml
%{_datadir}/icons/hicolor/*/apps/%{appstream_id}.png
%{_datadir}/polkit-1/actions/cc.arduino.add-groups.policy



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11941 |21mr|arduino-builder-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global goipath github.com/arduino/arduino-builder

Name:           arduino-builder
Version:        1.6.1
Release:        1
Summary:        A command line tool for compiling Arduino sketches
License:        GPLv2+
Group:          Development/Other

URL:            http://www.arduino.cc
Source0:        https://github.com/arduino/arduino-builder/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# unpack source, chdir to unpacket source and run "go mod vendor", tar.gz vendor dir
Source10:       vendor_deps.tar.xz
BuildRequires:  gcc
BuildRequires:  golang
%gometa


%description
This tool is able to parse Arduino Hardware specifications, properly run
gcc and produce compiled sketches.
An Arduino sketch differs from a standard C program in that it misses a
main (provided by the Arduino core), function prototypes are not mandatory,
and libraries inclusion is automagic (you just have to #include them).
This tool generates function prototypes and gathers library paths,
providing gcc with all the needed -I params.

%prep
%goprep

%build
tar -xf %{SOURCE10}
export GOFLAGS='-buildmode=pie -trimpath -mod=vendor -modcacherw'
GO111MODULE=on go build -v -ldflags "-linkmode=external"

%install
install -D -m 0755 %{name}  %{buildroot}/%{_bindir}/%{name}
mkdir -p %{buildroot}/%{_datadir}/arduino
cp -a hardware  %{buildroot}/%{_datadir}/arduino

%files
%license LICENSE.txt
%doc CONTRIBUTING.md README.md
%{_bindir}/%{name}
%{_datadir}/arduino



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11942 |21mr|arduino-ctags-5.8_arduino11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define suff_ver %(echo %{version} | sed -e "s/_/-/")

Summary:	A mix of ctags and anjuta-tags for the perfect C++ ctags
Name:		arduino-ctags
Version:	5.8_arduino11
Release:	1
License:	GPLv2
Group:		Development/C++
Url:		https://github.com/arduino/ctags
Source0:	https://github.com/arduino/ctags/releases/download/%{suff_ver}/ctags-%{suff_ver}.tar.xz
Patch0:		ctags-CVE-2014-7204.patch
BuildRequires:  gcc

%description
A mix of ctags and anjuta-tags for the perfect C++ ctags.

%files
%license COPYING
%doc FAQ MAINTAINERS NEWS README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n ctags-%{suff_ver}

%build
%configure
%make

%install

install -Dm 0755 ctags \
    %{buildroot}%{_bindir}/%{name}
install -Dm 0644 ctags.1 \
    %{buildroot}%{_mandir}/man1/%{name}.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11943 |21mr|arduino-listSerialPortsC-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global shortname listSerialPortsC

Name:		arduino-%{shortname}
Version:	1.4.0
Release:	1
Summary:	Simple multiplatform program to list serial ports with vid/pid/iserial fields
License:	LGPLv3+
Group:		Development/Tools
URL:		http://www.arduino.cc
Source0:	https://github.com/arduino/listSerialPortsC/archive/%{version}.tar.gz#/%{shortname}-%{version}.tar.gz
BuildRequires:	pkgconfig(libserialport)
BuildRequires:  java-1.8.0-openjdk-devel
BuildRequires:	gcc

%description
Simple environment to test libserialport in a single build machine fashion.

%prep
%setup -q -n %{shortname}-%{version}

%build
gcc `pkg-config --cflags libserialport` %{optflags} main.c `pkg-config --libs libserialport` -o listSerialC
gcc `pkg-config --cflags libserialport` %{optflags} jnilib.c -I/usr/lib/jvm/java/include/ -I/usr/lib/jvm/java/include/linux -shared -fPIC `pkg-config --libs libserialport` -o liblistSerialsj.so

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 listSerialC %{buildroot}%{_bindir}
# Yes, this is not normal, but this isn't really a useful lib, it's only for arduino.
mkdir -p %{buildroot}%{_datadir}/arduino/lib/
install -m755 liblistSerialsj.so %{buildroot}%{_datadir}/arduino/lib/

%files
%license LICENSE.md
%doc README.md
%{_bindir}/listSerialC
%{_datadir}/arduino/lib/liblistSerialsj.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11944 |21mr|argon2-20190702-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	The reference C implementation of Argon2
Name:		argon2
Version:	20190702
Release:	3
License:	ASL 2.0
Group:		System/Libraries
Url:		https://github.com/P-H-C/phc-winner-argon2
Source0:	https://github.com/P-H-C/phc-winner-argon2/archive/%{version}/phc-winner-%{name}-%{version}.tar.gz
Requires:	%{libname} = %{EVRD}

%description
This is the reference C implementation of Argon2, the password-hashing
function that won the Password Hashing Competition (PHC).

Argon2 is a password-hashing function that summarizes the state of the
art in the design of memory-hard functions and can be used to hash
passwords for credential storage, key derivation, or other applications.

%files
%doc CHANGELOG.md README.md
%doc argon2-specs.pdf
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The reference C implementation of Argon2
Group:		System/Libraries

%description -n %{libname}
Reference C implementation of Argon2, the password-hashing function
that won the Password Hashing Competition (PHC).

%files -n %{libname}
%doc CHANGELOG.md README.md
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Argon2
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers for argon2, the reference C implementation of Argon2, the
password-hashing function that won the Password Hashing Competition (PHC).

%files -n %{devname}
%doc CHANGELOG.md README.md
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n phc-winner-%{name}-%{version}

sed -i s,"LIBRARY_REL ?= lib.*","LIBRARY_REL = %{_lib}", Makefile
sed -i -e "s|@UPSTREAM_VER@|%{version}|" libargon2.pc.in
sed -i -e "s|lib/@HOST_MULTIARCH@|%{_lib}|" libargon2.pc.in

# (From Fedora) Honour default RPM build options and library path, do not use -march=native
# Overoptimization leads to invalid CPU instructions
sed -e '/^CFLAGS/s:^CFLAGS:LDFLAGS=%{ldflags}\nCFLAGS:' \
    -e 's:-O3 -Wall:%{optflags}:' \
    -e 's:-march=\$(OPTTARGET) :${CFLAGS} :' \
    -e 's:CFLAGS += -march=\$(OPTTARGET)::' \
    -i Makefile

%build
%make_build CC=%{__cc}

%install
%make_install CC=%{__cc}

# we don't want these
find %{buildroot} -name '*.a' -delete

#chmod .so for strip
chmod 755 %{buildroot}%{_libdir}/lib%{name}.so.%{major}*

install -D -m 644 man/argon2.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -D -m 644 libargon2.pc %{buildroot}%{_libdir}/pkgconfig/lib%{name}.pc

%check
%make CC=%{__cc} test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11945 |21mr|argparse4j-0.6.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          argparse4j
Version:       0.6.0
Release:       7
Summary:       The command-line parser library based on Python's argparse
# files with ASL 2.0 src/main/java/net/sourceforge/argparse4j/impl/type/FileArgumentType.java
# src/main/java/net/sourceforge/argparse4j/internal/TerminalWidth.java
License:       ASL 2.0 and MIT
URL:           http://argparse4j.sourceforge.net
Source0:       https://github.com/tatsuhiro-t/argparse4j/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: %{_bindir}/sphinx-build

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java port of Python's famous argparse command-line argument parser.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package docs
Summary:       Documentation for %{name}
Requires:      %{name}-javadoc = %{version}-%{release}

%description docs
Documentation for the %{name} library.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin :exec-maven-plugin
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin

%mvn_file : %{name}

%build

%mvn_build

cd src/site/sphinx
%{__make} %{?_smp_mflags} html PACKAGE_VERSION=%{version}
rm -r _build/html/.buildinfo
rm -r _build/html/_static/jquery.js
rm -r _build/html/_static/underscore.js

%install
%mvn_install

sed -i "s|apidocs/|%{_javadocdir}/%{name}/|" $(find src/site/sphinx/_build/html/ -name "*.html")

%files -f .mfiles
%doc NEWS README.rst
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files docs
%doc src/site/sphinx/_build/html/
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11946 |21mr|args4j-2.33-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           args4j
Version:        2.33
Release:        8
Summary:        Java command line arguments parser
License:        MIT
Group:          Development/Java
URL:            http://args4j.kohsuke.org
Source0:        https://github.com/kohsuke/%{name}/archive/%{name}-site-%{version}.tar.gz

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.mockito:mockito-all)

%description
args4j is a small Java class library that makes it easy
to parse command line options/arguments in your CUI application.
- It makes the command line parsing very easy by using annotations
- You can generate the usage screen very easily
- You can generate HTML/XML that lists all options for your documentation
- Fully supports localization
- It is designed to parse javac like options (as opposed to GNU-style
  where ls -lR is considered to have two options l and R)

%package tools
Summary:        Development-time tool for generating additional artifacits

%description tools
This package contains args4j development-time tool for generating
additional artifacits.

%package parent
Summary:        args4j parent POM

%description parent
This package contains parent POM for args4j project.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-site-%{version}

# removing classpath addition
sed -i 's/<addClasspath>true/<addClasspath>false/g' %{name}-tools/pom.xml

# fix ant group id
sed -i 's/<groupId>ant/<groupId>org.apache.ant/g' %{name}-tools/pom.xml

# removing bundled stuff
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

%pom_remove_plugin :maven-shade-plugin %{name}-tools
%pom_remove_plugin -r :maven-site-plugin

# XMvn cannot generate requires on dependecies with scope "system"
%pom_xpath_remove "pom:profile[pom:id[text()='jdk-tools-jar']]" %{name}-tools
%pom_add_dep com.sun:tools %{name}-tools

# we don't need these now
%pom_disable_module args4j-maven-plugin
%pom_disable_module args4j-maven-plugin-example

# Remove reliance on the parent pom
%pom_remove_parent

# put args4j-tools and parent POM to separate subpackages
%mvn_package :args4j-tools::{}: %{name}-tools
%mvn_package :args4j-site::{}: %{name}-parent

# install also compat symlinks
%mvn_file ":{*}" %{name}/@1 @1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license %{name}/LICENSE.txt

%files tools -f .mfiles-%{name}-tools

%files parent -f .mfiles-%{name}-parent
%license %{name}/LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license %{name}/LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11947 |21mr|argyllcms-1.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 0
%define libname %mklibname argyll %{major}
%define libicc %mklibname argyllicc %{major}
%define libimdi %mklibname imdi %{major}
%define devname %mklibname argyll -d

Summary:	ICC compatible color management system
Name:		argyllcms
Version:	1.9.2
Release:	1
License:	GPLv3+ and BSD and MIT and AGPLv3+
Group:		Graphics
Url:		http://gitorious.org/hargyllcms
Source0:	http://people.freedesktop.org/~hughsient/releases/hargyllcms-%{version}.tar.xz
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	udev

%description
The Argyll color management system supports accurate ICC profile creation for
scanners, CMYK printers, film recorders and calibration and profiling of
displays.

Spectral sample data is supported, allowing a selection of illuminants observer
types, and paper fluorescent whitener additive compensation. Profiles can also
incorporate source specific gamut mappings for perceptual and saturation
intents. Gamut mapping and profile linking uses the CIECAM02 appearance model,
a unique gamut mapping algorithm, and a wide selection of rendering intents. It
also includes code for the fastest portable 8 bit raster color conversion
engine available anywhere, as well as support for fast, fully accurate 16 bit
conversion. Device color gamuts can also be viewed and compared using a VRML
viewer.

%files
%defattr(0644,root,root,0755)
%doc %{_defaultdocdir}/argyll
%attr(0755,root,root) %{_bindir}/*
%{_datadir}/color/argyll
%doc AUTHORS ChangeLog Readme.txt

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Argyll CMS libraries
Group:		System/Libraries

%description -n %{libname}
This package contains shared libraries used by Argyll CMS.

%files -n %{libname}
%{_libdir}/libargyll.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libicc}
Summary:	Argyll CMS libraries
Group:		System/Libraries
Conflicts:	%{_lib}argyll0 < 1.5.1-2

%description -n %{libicc}
This package contains shared libraries used by Argyll CMS.

%files -n %{libicc}
%{_libdir}/libargyllicc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libimdi}
Summary:	Argyll CMS libraries
Group:		System/Libraries

%description -n %{libimdi}
This package contains shared libraries used by Argyll CMS.

%files -n %{libimdi}
%{_libdir}/libimdi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Argyll CMS development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libicc} = %{EVRD}
Requires:	%{libimdi} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for Argyll CMS shared libraries.

%files -n %{devname}
%doc AUTHORS ChangeLog Readme.txt
%{_libdir}/libargyll.so
%{_libdir}/libargyllicc.so
%{_libdir}/libimdi.so

#----------------------------------------------------------------------------

%prep
%setup -q -n hargyllcms-%{version}

%build
autoreconf -fi
export LDFLAGS="-ldl"
%configure --disable-static
#parallel build is broken
make LIBS="-lrt -lpthread -lz -lm"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11948 |21mr|aria2-1.36.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Download utility with resuming and segmented downloading
Name:		aria2
Version:	1.36.0
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://aria2.github.io
Source0:	https://github.com/aria2/aria2/releases/download/release-%{version}/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(gnutls) >= 3.0
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
Requires:	rootcerts
#we need 1.7.0 to have ares_library_init available
Requires:	c-ares >= 1.7.0
Provides:	webfetch

%description
Aria2 has segmented downloading engine in its core. It can download one 
file from multiple URLs or multiple connections from one URL. This results
in very high speed downloading, very much faster than ordinary browsers.
This engine is implemented with a single-thread model.
It can also download BitTorrent files and supports Metalink version 3.0.

%files -f %{name}.lang
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_datadir}/bash-completion/completions/aria2c
%{_mandir}/man1/*

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -Os"
export CXXFLAGS="$CFLAGS"

%configure \
	--with-ca-bundle="%{_sysconfdir}/pki/tls/cert.pem" \
	--with-bashcompletiondir="%{_datadir}/bash-completion/completions/" \
	--enable-bittorrent \
	--enable-metalink \
	--enable-epoll \
	--enable-threads=posix \
	--disable-rpath \
	--with-gnutls \
	--without-openssl \
	--with-sqlite3 \
	--with-libxml2 \
	--without-libexpat \
	--with-libcares \
	--with-libz

%make_build

# (tpg) disable checks on x86, on x86_64 all of them passes without any failures
%ifnarch %{ix86}
%check
%make check
%endif

%install
%make_install

%find_lang %{name} --with-man --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11949 |21mr|arianna-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ebook reader and library management app
Name:		arianna
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://apps.kde.org/arianna/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	kf5quickcharts-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kirigami-addons
Requires:	kirigami2
Requires:	kquickcharts
Requires:	qt5-database-plugin-sqlite
Requires:	qt5-qtquickcontrols2
Requires:	%{_lib}qt5webchannel5

%description
An ebook reader and library management app supporting ".epub" files. Arianna
discovers your books automatically, and sorts them by categories, genres and
authors.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.arianna.desktop
%{_kde5_bindir}/arianna
%{_kde5_datadir}/qlogging-categories5/arianna.categories
%{_kde5_iconsdir}/hicolor/*/apps/org.kde.arianna.svg
%{_appdatadir}/org.kde.arianna.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11950 |21mr|aries-blueprint-annotation-api-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.blueprint.annotation.api
Name:          aries-blueprint-annotation-api
Version:       1.0.1
Release:       7
Summary:       Apache Aries Blueprint Annotation API
License:       ASL 2.0
URL:           http://aries.apache.org/
#Source0:       http://www.apache.org/dist/aries/%%{bundle}-%%{version}-source-release.zip
Source0:       http://central.maven.org/maven2/org/apache/aries/blueprint/%{bundle}/%{version}/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This bundle contains the blueprint annotation api and
the corresponding XML schema.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent
%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin

%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200

%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Export-Package>${aries.osgi.export.pkg}</Export-Package>
    <Import-Package>${aries.osgi.import.pkg}</Import-Package>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11951 |21mr|aries-blueprint-api-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.blueprint.api
Name:          aries-blueprint-api
Version:       1.0.1
Release:       7
Summary:       Apache Aries Blueprint API
License:       ASL 2.0
URL:           http://aries.apache.org/
#Source0:       http://www.apache.org/dist/aries/%%{bundle}-%%{version}-source-release.zip
Source0:       http://central.maven.org/maven2/org/apache/aries/blueprint/%{bundle}/%{version}/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This bundle contains the blueprint API and
the corresponding XML schema.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent
%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin

%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200

%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Export-Package>${aries.osgi.export.pkg}</Export-Package>
    <Import-Package>${aries.osgi.import.pkg}</Import-Package>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11952 |21mr|aries-blueprint-cm-1.0.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.blueprint.cm
Name:          aries-blueprint-cm
Version:       1.0.8
Release:       7
Summary:       Apache Aries Blueprint CM
License:       ASL 2.0
URL:           http://aries.apache.org/
#Source0:       http://www.apache.org/dist/aries/%%{bundle}-%%{version}-source-release.zip
Source0:       http://central.maven.org/maven2/org/apache/aries/blueprint/%{bundle}/%{version}/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.aries.blueprint:blueprint-parser) >= 1.4.0
BuildRequires: mvn(org.apache.aries.blueprint:org.apache.aries.blueprint.api) >= 1.0.1
BuildRequires: mvn(org.apache.aries.blueprint:org.apache.aries.blueprint.core) >= 1.6.2
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi.services)
BuildRequires: mvn(org.slf4j:slf4j-api)

Obsoletes:     aries-blueprint < 1:0.3.2
Provides:      aries-blueprint = %{version}-%{release}

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This bundle contains the ConfigAdmin namespace for blueprint.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent
%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin

# Fix bundle plugin configuration
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
    <Import-Package>${aries.osgi.import.pkg}</Import-Package>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Private-Package>${aries.osgi.private.pkg}</Private-Package>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.11.0.v20160714-1000
%pom_change_dep org.osgi:org.osgi.compendium org.eclipse.osgi:org.eclipse.osgi.services:3.5.100.v20160714-1000

%build

# tests disabled because of
# missing dependency on pax-swissbox-tinybundles de.kalpatec.pojosr.framework
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11953 |21mr|aries-blueprint-core-1.6.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.blueprint.core

Name:          aries-blueprint-core
Version:       1.6.2
Release:       7
Summary:       Apache Aries Blueprint Core
License:       ASL 2.0
URL:           http://aries.apache.org/
#Source0:       http://www.apache.org/dist/aries/%%{bundle}-%%{version}-source-release.zip
Source0:       http://central.maven.org/maven2/org/apache/aries/blueprint/%{bundle}/%{version}/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.aries:org.apache.aries.util)
BuildRequires: mvn(org.apache.aries.blueprint:blueprint-parser) >= 1.4.0
BuildRequires: mvn(org.apache.aries.blueprint:org.apache.aries.blueprint.annotation.api) >= 1.0.1
BuildRequires: mvn(org.apache.aries.blueprint:org.apache.aries.blueprint.api) >= 1.0.1
BuildRequires: mvn(org.apache.aries.proxy:org.apache.aries.proxy.api) >= 1.0.1
BuildRequires: mvn(org.apache.aries.proxy:org.apache.aries.proxy.impl) >= 1.0.5
BuildRequires: mvn(org.apache.aries.quiesce:org.apache.aries.quiesce.api) >= 1.0.0
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi.services)
BuildRequires: mvn(org.ow2.asm:asm-debug-all)
BuildRequires: mvn(org.slf4j:slf4j-api)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This bundle contains the core implementation of Blueprint
along with the "ext" namespace handler.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent
%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin
# Disable blueprint-parser copy
%pom_remove_plugin :maven-dependency-plugin
# Unwanted task
%pom_remove_plugin :maven-release-plugin

# Fix bundle plugin configuration
%pom_remove_plugin :maven-bundle-plugin
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Activator>${aries.osgi.activator}</Bundle-Activator>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
    <Export-Package>${aries.osgi.export.pkg}</Export-Package>
    <Export-Service>${aries.osgi.export.service}</Export-Service>
    <Import-Package>${aries.osgi.import.pkg}</Import-Package>
    <Import-Service>org.apache.aries.proxy.ProxyManager</Import-Service>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <!--Include-Resource>${aries.osgi.include.resource}</Include-Resource-->
    <Provide-Capability>
        osgi.extender;
        osgi.extender="osgi.blueprint";uses:=
        "org.osgi.service.blueprint.container,
        org.osgi.service.blueprint.reflect"; version:Version="1.0"
    </Provide-Capability>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_xpath_remove "pom:dependency[pom:artifactId= 'blueprint-parser']/pom:scope"

%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.11.0.v20160714-1000
%pom_change_dep org.osgi:org.osgi.compendium org.eclipse.osgi:org.eclipse.osgi.services:3.5.100.v20160714-1000

%build

# tests disabled because of
# missing dependency on org.apache.aries.testsupport.unit
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11954 |21mr|aries-blueprint-parser-1.4.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle blueprint-parser
Name:          aries-blueprint-parser
Version:       1.4.0
Release:       8
Summary:       Apache Aries Blueprint Parser
License:       ASL 2.0
URL:           http://aries.apache.org/
# Source0:       http://www.apache.org/dist/aries/%%{bundle}-%%{version}-source-release.zip
Source0:       http://central.maven.org/maven2/org/apache/aries/blueprint/%{bundle}/%{version}/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.aries.blueprint:org.apache.aries.blueprint.api) >= 1.0.1
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: xmvn

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This bundle contains the blueprint parser in a plain JAR.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent
%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin

%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200

%pom_xpath_set pom:properties/pom:blueprint.api.version 1.0.1

# Add OSGi support
%pom_xpath_set "pom:project/pom:packaging" bundle
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11955 |21mr|aries-proxy-api-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.proxy.api
Name:          aries-proxy-api
Version:       1.0.1
Release:       7
Summary:       Apache Aries Proxy API
License:       ASL 2.0
URL:           http://aries.apache.org/
#Source0:       http://www.apache.org/dist/aries/%%{bundle}-%%{version}-source-release.zip
Source0:       http://central.maven.org/maven2/org/apache/aries/proxy/%{bundle}/%{version}/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.aries:org.apache.aries.util) >= 1.0.0
BuildRequires: mvn(org.apache.aries:org.apache.aries.util-r42) >= 1.0.0
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This bundle contains the Apache Aries Proxy service API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent
%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin

%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Export-Package>${aries.osgi.export.pkg}</Export-Package>
    <Import-Package>${aries.osgi.import.pkg}</Import-Package>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# Use eclipse apis
%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11956 |21mr|aries-proxy-impl-1.0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.proxy.impl
Name:          aries-proxy-impl
Version:       1.0.5
Release:       8
Summary:       Apache Aries Proxy Service
License:       ASL 2.0
URL:           http://aries.apache.org/
#Source0:       http://www.apache.org/dist/aries/%%{bundle}-%%{version}-source-release.zip
Source0:       http://central.maven.org/maven2/org/apache/aries/proxy/%{bundle}/%{version}/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.aries.proxy:org.apache.aries.proxy.api) >= 1.0.1
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.ow2.asm:asm-debug-all)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.eclipse:osgi)

Obsoletes:     aries-proxy < %{version}
Provides:      aries-proxy = %{version}-%{release}

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This bundle contains the proxy service implementation for Apache Aries.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent

%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Activator>${aries.osgi.activator}</Bundle-Activator>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
    <!--Export-Package>${aries.osgi.export.pkg}</Export-Package-->
    <Export-Service>${aries.osgi.export.service}</Export-Service>
    <Import-Package>${aries.osgi.import.pkg}</Import-Package>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Private-Package>${aries.osgi.private.pkg}</Private-Package>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# Cannot load implementation hint 'org.codehaus.mojo.animal_sniffer.enforcer.CheckSignatureRule'
%pom_remove_plugin :maven-enforcer-plugin

%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin

# Use eclipse apis
%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200

# antrun plugin fails to process classes
sed -i '/delete dir/d' pom.xml

%build

# tests disabled because of
# missing dependency on org.apache.aries.testsupport.unit
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11957 |21mr|aries-quiesce-api-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.quiesce.api
Name:          aries-quiesce-api
Version:       1.0.0
Release:       7
Summary:       Apache Aries Quiesce API
License:       ASL 2.0
URL:           http://aries.apache.org/
Source0:       http://www.apache.org/dist/aries/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Aries Quiesce API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent

%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200

%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Export-Package>${aries.osgi.export.pkg}</Export-Package>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11958 |21mr|aries-quiesce-manager-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.quiesce.manager
Name:          aries-quiesce-manager
Version:       1.0.0
Release:       7
Summary:       Apache Aries Quiesce Manager
License:       ASL 2.0
URL:           http://aries.apache.org/
Source0:       http://www.apache.org/dist/aries/%{bundle}-%{version}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.aries:org.apache.aries.util) >= 1.0.0
BuildRequires: mvn(org.apache.aries:org.apache.aries.util-r42) >= 1.0.0
BuildRequires: mvn(org.apache.aries.quiesce:org.apache.aries.quiesce.api) >= 1.0.0
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)

Obsoletes:     aries-quiesce < 0.4
Provides:      aries-quiesce = %{version}-%{release}

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Aries Quiesce Manager. A quiesce manager provides the
functionality to stop bundles in such a manner that
currently running work can be safely finished.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_parent

%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Activator>${aries.osgi.activator}</Bundle-Activator>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
    <Export-Service>${aries.osgi.export.service}</Export-Service>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Private-Package>${aries.osgi.private.pkg}</Private-Package>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# Use eclipse apis
%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11959 |21mr|aries-util-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.aries.util

Name:          aries-util
Version:       1.1.3
Release:       1
Summary:       Apache Aries Util
Group:         Development/Java
License:       ASL 2.0
URL:           http://aries.apache.org/
#Source0:       http://www.apache.org/dist/aries/%%{bundle}-parent-%%{version}-source-release.zip
Source0:       http://central.maven.org/maven2/org/apache/aries/%{bundle}-parent/%{version}/%{bundle}-parent-%{version}-source-release.zip
# org.osgi.service.framework.CompositeBundle was removed
# http://help.eclipse.org/mars/topic/org.eclipse.platform.doc.isv/porting/removals.html#compositeBundles
Patch0:        aries-util-1.1.0-remove-CompositeBundle.patch
Patch1:        0001-Fix-building-with-modern-org.osgi.service.log.patch

BuildRequires: maven-local
BuildRequires: ant 
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.eclipse:osgi)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This bundle contains the OSGi common util for Apache Aries.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-parent-%{version}
# Do not remove test resources
find . -name  "*.jar" -print ! -type d -delete

%autopatch -p1

%pom_remove_parent
%pom_xpath_inject "pom:project" "<groupId>org.apache.aries</groupId>"
%pom_remove_parent util
%pom_remove_parent util-r42
%pom_xpath_inject "pom:project" "<groupId>org.apache.aries</groupId>" util
%pom_xpath_inject "pom:project" "<groupId>org.apache.aries</groupId>" util-r42

%pom_add_plugin org.apache.felix:maven-bundle-plugin util '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Export-Package>${aries.osgi.export.pkg}</Export-Package>
    <Import-Package>${aries.osgi.import.pkg}</Import-Package>
    <Private-Package>${aries.osgi.private.pkg}</Private-Package>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_add_plugin org.apache.felix:maven-bundle-plugin util-r42 '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Implementation-Title>Apache Aries</Implementation-Title>
    <Implementation-Version>${project.version}</Implementation-Version>
    <Bundle-Vendor>The Apache Software Foundation</Bundle-Vendor>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# Useless tasks
%pom_remove_plugin :maven-javadoc-plugin util
%pom_remove_plugin org.apache.aries.versioning:org.apache.aries.versioning.plugin util

# Use eclipse only
# cannot find symbol org.osgi.framework.Bundle#adapt(java.lang.Class<org.osgi.framework.wiring.BundleWiring>)
%pom_remove_dep org.osgi: util-r42
%pom_remove_dep org.osgi: util

%pom_xpath_remove "pom:dependency[pom:artifactId= 'osgi']/pom:scope" util-r42
%pom_xpath_remove "pom:dependency[pom:artifactId= 'osgi']/pom:scope" util
%pom_xpath_remove "pom:dependency[pom:artifactId= 'org.apache.aries.util-r42']/pom:scope" util

%build

echo "$ANT_HOME"
echo "$ANT_OPTS"

# test disabled because of missing dependency:
# org.apache.aries.testsupport:org.apache.aries.testsupport.unit:1.0.0
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11960 |21mr|arm-image-installer-2.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Tarfile created using git
# git clone https://pagure.io/arm-image-installer.git
# git archive --format=tar --prefix=%{name}-%{version}/ %{version} | xz > ~/%{name}-%{version}.tar.xz

Name:		arm-image-installer
Version:	2.18
Release:	2
Group:		System/Base
Summary:	Writes binary image files to any specified block device
License:	GPLv2+
Url:		https://pagure.io/arm-image-installer

BuildArch:	noarch
Source0:	%{name}-%{version}.tar.xz

Obsoletes:	fedora-arm-installer < 2.5
Provides:	fedora-arm-installer < 2.5
Requires:	btrfs-progs
Requires:	e2fsprogs
Requires:	parted
Requires:	sudo
Requires:	util-linux


%description
Allows one to first select a source image (local or remote). The image must be
a binary file containing: [MBR + Partitions + File Systems + Data]. A
destination block device should then be selected for final installation.


%prep
%autosetup

%build
echo "skipping..."

%install
install -d %{buildroot}%{_datadir}/arm-image-installer
install -d %{buildroot}%{_datadir}/arm-image-installer/socs.d
install -pm 644 socs.d/* %{buildroot}%{_datadir}/arm-image-installer/socs.d/
install -d %{buildroot}%{_datadir}/arm-image-installer/boards.d
install -pm 644 boards.d/* %{buildroot}%{_datadir}/arm-image-installer/boards.d/

install -d %{buildroot}%{_bindir}
install -pm 0755 update-uboot %{buildroot}%{_bindir}/
install -pm 0755 arm-image-installer %{buildroot}%{_bindir}/
install -pm 0755 rpi-uboot-update %{buildroot}%{_bindir}/
ln -s /usr/bin/arm-image-installer %{buildroot}%{_bindir}/fedora-arm-image-installer

%files
%license COPYING
%doc AUTHORS README TODO SUPPORTED-BOARDS
%{_bindir}/arm-image-installer
%{_bindir}/fedora-arm-image-installer
%{_bindir}/update-uboot
%{_bindir}/rpi-uboot-update
%{_datadir}/arm-image-installer/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11961 |21mr|arm-trusted-firmware-2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#global candidate rc1
# ./make-git-snapshot.sh
#global snapshot 20190209

# Binaries not used in standard manner so debuginfo is useless
%global debug_package %{nil}

%bcond_with crosscompile

Name:		arm-trusted-firmware
Version:	2.5
Summary:	ARM Trusted Firmware
Group:		System/Base
Release:	1%{?candidate:.%{candidate}}%{?snapshot:.%{snapshot}}%{?dist}
License:	BSD
URL:		https://github.com/ARM-software/arm-trusted-firmware/wiki
%if 0%{?snapshot}
Source0:	arm-trusted-firmware-%{snapshot}.tar.xz
%else
Source0:	https://github.com/ARM-software/arm-trusted-firmware/archive/v%{version}%{?candidate:-%{candidate}}.tar.gz
%endif
Source1:	arm-trusted-firmware.rpmlintrc
Patch0:		rk3399-gcc11.patch
# At the moment we're only building on aarch64
ExclusiveArch:	aarch64

BuildRequires:	dtc
BuildRequires:	gcc
%if %{with crosscompile}
BuildRequires:	cross-armv7hnl-openmandriva-linux-gnueabihf-gcc-bootstrap
BuildRequires:	cross-armv7hnl-openmandriva-linux-gnueabihf-binutils
%endif

%description
ARM Trusted firmware is a reference implementation of secure world software for
ARMv8-A including Exception Level 3 (EL3) software. It provides a number of
standard ARM interfaces like Power State Coordination (PSCI), Trusted Board
Boot Requirements (TBBR) and Secure Monitor.

Note: the contents of this package are generally just consumed by bootloaders
such as u-boot. As such the binaries aren't of general interest to users.

#------------------------------------------------------------------------
%ifarch aarch64
%package -n arm-trusted-firmware-armv8
Summary:	ARM Trusted Firmware for ARMv8-A
Group:		System/Base

%description -n arm-trusted-firmware-armv8
ARM Trusted Firmware binaries for various  ARMv8-A SoCs.

Note: the contents of this package are generally just consumed by bootloaders
such as u-boot. As such the binaries aren't of general interest to users.

%files -n arm-trusted-firmware-armv8
%license license.rst
%doc readme.rst
%{_datadir}/%{name}
%endif

#------------------------------------------------------------------------

%prep
%if 0%{?snapshot}
%autosetup -p1 -n %{name}-%{snapshot}
%else
%autosetup -p1 -n %{name}-%{version}%{?candidate:-%{candidate}}
%endif

# Fix the name of the cross compile for the rk3399 Cortex-M0 PMU
sed -i 's/arm-none-eabi-/armv7hnl-linux-gnueabihf-/' plat/rockchip/rk3399/drivers/m0/Makefile

%if %{with crosscompile}
RK33XX="rk3399 rk3368 rk3328"
%else
RK33XX=""
%endif


%build
%ifarch aarch64
for soc in hikey hikey960 imx8qm imx8qx juno a3700 gxbb $RK33XX rpi3 sun50i_a64 sun50i_h6 zynqmp
do
# At the moment we're only making the secure firmware (bl31)
make HOSTCC="gcc $%{optflags}" CROSS_COMPILE="" PLAT=$(echo $soc) bl31
done
%endif

%install
mkdir -p %{buildroot}%{_datadir}/%{name}

%ifarch aarch64
# Most platforms want bl31.bin
for soc in hikey hikey960 imx8qm imx8qx juno rpi3 sun50i_a64 sun50i_h6 zynqmp
do
mkdir -p %{buildroot}%{_datadir}/%{name}/$(echo $soc)/
 for file in bl31.bin
 do
  if [ -f build/$(echo $soc)/release/$(echo $file) ]; then
    install -p -m 0644 build/$(echo $soc)/release/$(echo $file) /%{buildroot}%{_datadir}/%{name}/$(echo $soc)/
  fi
 done
done

%if %{with crosscompile}
# Rockchips wants the bl31.elf, plus rk3399 wants power management co-processor bits
for soc in rk3399 rk3368 rk3328
do
mkdir -p %{buildroot}%{_datadir}/%{name}/$(echo $soc)/
 for file in bl31/bl31.elf m0/rk3399m0.bin m0/rk3399m0.elf
 do
  if [ -f build/$(echo $soc)/release/$(echo $file) ]; then
    install -p -m 0644 build/$(echo $soc)/release/$(echo $file) /%{buildroot}%{_datadir}/%{name}/$(echo $soc)/
  fi
 done
done
%endif

%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11962 |21mr|arpwatch-3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network monitoring tools for tracking IP addresses on the network
Name:		arpwatch
Version:	3.3
Release:	1
Epoch:		2
License:	BSD
Group:		Monitoring
URL:		ftp://ftp.ee.lbl.gov
Source0:	https://ee.lbl.gov/downloads/arpwatch/%{name}-%{version}.tar.gz
Source1:	arpwatch.service
Source2:	ethercodes.dat
Source100:	arpwatch.rpmlintrc
Requires:	sendmail-command
BuildRequires:	pkgconfig(libpcap)
BuildRequires:	postfix

%description
The arpwatch package contains arpwatch and arpsnmp.  Arpwatch and arpsnmp
are both network monitoring tools.  Both utilities monitor Ethernet or
FDDI network traffic and build databases of Ethernet/IP address pairs,
and can report certain changes via email.

Install the arpwatch package if you need networking monitoring devices
which will automatically keep traffic of the IP addresses on your
network.

%prep

%autosetup -p1

%build
sed -i '/@HAVE_FREEBSD_TRUE@/d' Makefile.in
%configure --with-watcher=arpwatch --sbindir=%{_bindir}
%make_build SENDMAIL=/usr/bin/sendmail

%install
install -d -m 0755 %{buildroot}/usr/{bin,share/man/man8}
%make_install
# systemd
install -Dm644 %{SOURCE1} %{buildroot}/%{_unitdir}/%{name}@.service
install -Dm644 %{SOURCE2} %{buildroot}/var/lib/%{name}/ethercodes.dat
chmod 755 %{buildroot}%{_bindir}/*

%pre
%_pre_useradd arpwatch %{_localstatedir}/lib/arpwatch /bin/sh

%post
%_post_service arpwatch

%preun
%_preun_service arpwatch

%postun
%_postun_userdel arpwatch

%files
%doc README CHANGES
%{_bindir}/*
%{_mandir}/man*/*
%{_unitdir}/%{name}@.service
%dir %attr(0755,arpwatch,arpwatch) %{_localstatedir}/lib/arpwatch
%config(noreplace) %{_localstatedir}/lib/%{name}/ethercodes.dat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11963 |21mr|arquillian-core-1.1.11-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          arquillian-core
Version:       1.1.11
Release:       9
Summary:       Java Testing Platform for the JVM Member
# No license header report @ https://github.com/arquillian/arquillian-core/issues/101
License:       ASL 2.0
URL:           http://arquillian.org/
Source0:       https://github.com/arquillian/arquillian-core/archive/%{namedversion}.tar.gz
Group:         Development/Java
# [ARQ-2058] Updates testNG to use 6.9.10 https://github.com/arquillian/arquillian-core/issues/119
Patch0:        https://github.com/arquillian/arquillian-core/commit/3fa56bfa6b5866cc096568cfc008466ad101c0fc.patch

BuildRequires: graphviz
BuildRequires: maven-local
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(javax.el:el-api)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.apiviz:apiviz)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-api)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-base)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-api-javaee)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-javaee)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-spi)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)
BuildRequires: mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires: mvn(org.jboss.weld:weld-core)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.eclipse.jetty:jetty-server:8.1)
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet:8.1)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.slf4j:slf4j-simple)
BuildRequires: mvn(org.testng:testng)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Arquillian is a revolutionary testing platform built on the JVM that
substantially reduces the effort required to write and execute Java
middle-ware integration and functional tests. No more mocks.
No more container life-cycle and deployment hassles. Just real tests!

%package api
Summary:       Arquillian Core API

%description api
API for the Core.

%package impl-base
Summary:       Arquillian Core Implementation Base

%description impl-base
Implementation Base for the Core.

%package parent
Summary:       Arquillian Core Aggregator

%description parent
Arquillian Core Aggregator POM.

%package spi
Summary:       Arquillian Core SPI

%description spi
Service Provider Interface for the Core.

%package -n arquillian-bom
Summary:       Arquillian BOM

%description -n arquillian-bom
Arquillian Bill Of Material.

%package -n arquillian-build
Summary:       Arquillian Build

%description -n arquillian-build
Arquillian Build Configuration POM.

%package -n arquillian-config-api
Summary:       Arquillian Config API

%description -n arquillian-config-api
API for the Config Module.

%package -n arquillian-config-impl-base
Summary:       Arquillian Config Implementation Base
License:       ASL 2.0 and LGPLv2+
# Unknown jboss-common-core version
# LGPLv2:
# ./config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/StringPropertyReplacer.java (Revision: 2898)
# ./config/impl-base/src/main/java/org/jboss/arquillian/config/impl/extension/SysPropertyActions.java (Revision: 2787)
Provides:      bundled(jboss-common-core)

%description -n arquillian-config-impl-base
Implementation for the Config module.

%package -n arquillian-config-parent
Summary:       Arquillian Config Aggregator

%description -n arquillian-config-parent
Arquillian Config Aggregator POM.

%package -n arquillian-config-spi
Summary:       Arquillian Config SPI

%description -n arquillian-config-spi
Service Provider Interface for the Config Module.

%package -n arquillian-container-impl-base
Summary:       Arquillian Container Implementation Base
# LGPLv2: ./container/impl-base/src/main/java/org/jboss/arquillian/container/impl/DefaultServerKillProcessor.java
License:       ASL 2.0 and LGPLv2+

%description -n arquillian-container-impl-base
Implementation for the container extension.

%package -n arquillian-container-parent
Summary:       Arquillian Container Aggregator

%description -n arquillian-container-parent
Arquillian Container Aggregator POM.

%package -n arquillian-container-spi
Summary:       Arquillian Container SPI
# LGPLv2:
# ./container/spi/src/main/java/org/jboss/arquillian/container/spi/ServerKillProcessor.java
# ./container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StartClassContainers.java
# ./container/spi/src/main/java/org/jboss/arquillian/container/spi/event/StopClassContainers.java
License:       ASL 2.0 and LGPLv2+

%description -n arquillian-container-spi
Service Provider Interface for the container extension.

%package -n arquillian-container-test-api
Summary:       Arquillian Container Test API
# LGPLv2:
# ./container/test-api/src/main/java/org/jboss/arquillian/container/test/api/Config.java
# ./container/test-api/src/main/java/org/jboss/arquillian/container/test/api/ContainerController.java
License:       ASL 2.0 and LGPLv2+

%description -n arquillian-container-test-api
Integration with the Test extension for the container extension.

%package -n arquillian-container-test-impl-base
Summary:       Arquillian Container Test Implementation Base

%description -n arquillian-container-test-impl-base
Integration with the Test extension for the container extension.

%package -n arquillian-container-test-spi
Summary:       Arquillian Container Test SPI

%description -n arquillian-container-test-spi
Integration with the Test extension for the container extension.

%package -n arquillian-junit-container
Summary:       Arquillian TestRunner JUnit Container

%description -n arquillian-junit-container
JUnit Container Implementation for the Arquillian Project.

%package -n arquillian-junit-core
Summary:       Arquillian TestRunner JUnit Core

%description -n arquillian-junit-core
JUnit Implementation for the Arquillian Project.

%package -n arquillian-junit-parent
Summary:       Arquillian TestRunner JUnit Aggregator

%description -n arquillian-junit-parent
Arquillian JUnit Aggregator POM.

%package -n arquillian-junit-standalone
Summary:       Arquillian TestRunner JUnit Standalone

%description -n arquillian-junit-standalone
JUnit Standalone Implementation for the Arquillian Project.

%package -n arquillian-parent
Summary:       Arquillian Aggregator

%description -n arquillian-parent
Arquillian Aggregator POM.

%package -n arquillian-protocol-jmx
Summary:       Arquillian Protocol JMX

%description -n arquillian-protocol-jmx
Protocol handler for communicating via JMX.

%package -n arquillian-protocol-parent
Summary:       Arquillian Protocol Aggregator

%description -n arquillian-protocol-parent
Arquillian Protocol Aggregator POM.

%package -n arquillian-protocol-servlet
Summary:       Arquillian Protocol Servlet 2.5/3.x
# LGPLv2:
# ./protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/arq514hack/descriptors/api/application/WebModule.java
# ./protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/arq514hack/descriptors/api/web/ServletDef.java
# ./protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/arq514hack/descriptors/impl/application/WebModuleImpl.java
# ./protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/arq514hack/descriptors/impl/web/ServletDefImpl.java
# ./protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/arq514hack/descriptors/impl/web/ServletMappingDefImpl.java
# ./protocols/servlet/src/main/java/org/jboss/arquillian/protocol/servlet/arq514hack/descriptors/impl/web/Strings.java
License:       ASL 2.0 and LGPLv2+

%description -n arquillian-protocol-servlet
Protocol handler for communicating using a Servlet / HTTP following the
Servlet 2.5/ 2.5/.x spec.

%package -n arquillian-test-api
Summary:       Arquillian Test API

%description -n arquillian-test-api
API for the Test integration.

%package -n arquillian-test-impl-base
Summary:       Arquillian Test Implementation Base

%description -n arquillian-test-impl-base
Implementation Base for the Test integration.

%package -n arquillian-test-parent
Summary:       Arquillian Test Aggregator

%description -n arquillian-test-parent
Arquillian Test Aggregator POM.

%package -n arquillian-test-spi
Summary:       Arquillian Test SPI

%description -n arquillian-test-spi
Service Provider Interface for the Test integration.

%package -n arquillian-testenricher-cdi
Summary:       Arquillian TestEnricher CDI

%description -n arquillian-testenricher-cdi
CDI TestEnricher for the Arquillian Project.

%package -n arquillian-testenricher-ejb
Summary:       Arquillian TestEnricher EJB

%description -n arquillian-testenricher-ejb
EJB TestEnricher for the Arquillian Project.

%package -n arquillian-testenricher-initialcontext
Summary:       Arquillian TestEnricher InitialContext

%description -n arquillian-testenricher-initialcontext
InitialContext TestEnricher for the Arquillian Project.

%package -n arquillian-testenricher-parent
Summary:       Arquillian TestEnricher Aggregator

%description -n arquillian-testenricher-parent
Arquillian TestEnricher Aggregator POM.

%package -n arquillian-testenricher-resource
Summary:       Arquillian TestEnricher Resource

%description -n arquillian-testenricher-resource
Resource TestEnricher for the Arquillian Project.

%package -n arquillian-testng-container
Summary:       Arquillian TestRunner TestNG Container

%description -n arquillian-testng-container
TestNG Container Implementation for the Arquillian Project.

%package -n arquillian-testng-core
Summary:       Arquillian TestRunner TestNG Core

%description -n arquillian-testng-core
TestNG Implementations for the Arquillian Project.

%package -n arquillian-testng-parent
Summary:       Arquillian TestRunner TestNG Aggregator

%description -n arquillian-testng-parent
Arquillian TestNG Aggregator POM.

%package -n arquillian-testng-standalone
Summary:       Arquillian TestRunner TestNG Standalone

%description -n arquillian-testng-standalone
TestNG Standalone Implementation for the Arquillian Project.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%patch0 -p1
rm -r testng/core/src/test/* testng/container/src/test/*

%pom_remove_plugin -r org.codehaus.mojo:animal-sniffer-maven-plugin

# Use jetty:8.1.2.v20120308
%pom_xpath_set pom:properties/pom:version.jetty_jetty 8.1 protocols/servlet

%build

# XXX tested are turned off, there may be runtime problems!
%mvn_build -f -s -- -Pejb31

%install
%mvn_install

%files api -f .mfiles-%{name}-api
%doc README.asciidoc
%license LICENSE

%files impl-base -f .mfiles-%{name}-impl-base
%files spi -f .mfiles-%{name}-spi
%files parent -f .mfiles-%{name}-parent
%license LICENSE

%files -n arquillian-bom -f .mfiles-arquillian-bom
%license LICENSE

%files -n arquillian-build -f .mfiles-arquillian-build
%license LICENSE

%files -n arquillian-config-api -f .mfiles-arquillian-config-api
%files -n arquillian-config-impl-base -f .mfiles-arquillian-config-impl-base
%files -n arquillian-config-spi -f .mfiles-arquillian-config-spi
%files -n arquillian-config-parent -f .mfiles-arquillian-config-parent
%license LICENSE

%files -n arquillian-container-impl-base -f .mfiles-arquillian-container-impl-base
%files -n arquillian-container-spi -f .mfiles-arquillian-container-spi
%files -n arquillian-container-test-api -f .mfiles-arquillian-container-test-api
%files -n arquillian-container-test-impl-base -f .mfiles-arquillian-container-test-impl-base
%files -n arquillian-container-test-spi -f .mfiles-arquillian-container-test-spi
%files -n arquillian-container-parent -f .mfiles-arquillian-container-parent
%license LICENSE

%files -n arquillian-junit-container -f .mfiles-arquillian-junit-container
%files -n arquillian-junit-core -f .mfiles-arquillian-junit-core
%files -n arquillian-junit-standalone -f .mfiles-arquillian-junit-standalone
%files -n arquillian-junit-parent -f .mfiles-arquillian-junit-parent
%license LICENSE

%files -n arquillian-parent -f .mfiles-arquillian-parent
%license LICENSE

%files -n arquillian-protocol-jmx -f .mfiles-arquillian-protocol-jmx
%files -n arquillian-protocol-servlet -f .mfiles-arquillian-protocol-servlet
%files -n arquillian-protocol-parent -f .mfiles-arquillian-protocol-parent
%license LICENSE

%files -n arquillian-test-api -f .mfiles-arquillian-test-api
%files -n arquillian-test-impl-base -f .mfiles-arquillian-test-impl-base
%files -n arquillian-test-spi -f .mfiles-arquillian-test-spi
%files -n arquillian-test-parent -f .mfiles-arquillian-test-parent
%license LICENSE

%files -n arquillian-testenricher-cdi -f .mfiles-arquillian-testenricher-cdi
%files -n arquillian-testenricher-ejb -f .mfiles-arquillian-testenricher-ejb
%files -n arquillian-testenricher-initialcontext -f .mfiles-arquillian-testenricher-initialcontext
%files -n arquillian-testenricher-resource -f .mfiles-arquillian-testenricher-resource
%files -n arquillian-testenricher-parent -f .mfiles-arquillian-testenricher-parent
%license LICENSE

%files -n arquillian-testng-container -f .mfiles-arquillian-testng-container
%files -n arquillian-testng-core -f .mfiles-arquillian-testng-core
%files -n arquillian-testng-standalone -f .mfiles-arquillian-testng-standalone
%files -n arquillian-testng-parent -f .mfiles-arquillian-testng-parent
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11964 |21mr|artemis-1.4.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty debuginfo
%global debug_package %nil

Name:          artemis
Version:       1.4.0
Release:       10
Summary:       Java high performance, clustered, asynchronous messaging system
License:       ASL 2.0
Group:         Development/Java
URL:           https://activemq.apache.org/artemis/
Source0:       https://github.com/apache/activemq-artemis/archive/%{version}/%{name}-%{version}.tar.gz

Patch0: artemis-netty-4.1.patch

BuildRequires: gcc-c++
BuildRequires: cmake
BuildRequires: libaio-devel
BuildRequires: libtool
BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(io.airlift:airline)
BuildRequires: mvn(io.netty:netty-all)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.json:javax.json-api)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.johnzon:johnzon-core)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-annotation_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-ejb_3.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-install-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.qpid:proton-j)
BuildRequires: mvn(org.apache.qpid:proton-jms)
BuildRequires: mvn(org.apache.rat:apache-rat-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.eclipse.aether:aether-api)
BuildRequires: mvn(org.eclipse.aether:aether-util)
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi.services)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-jxc)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-runtime)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.modules:jboss-modules)
BuildRequires: mvn(org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec)
BuildRequires: mvn(org.jboss.resteasy:resteasy-atom-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jackson-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxb-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs)
BuildRequires: mvn(org.jboss.resteasy:tjws)
BuildRequires: mvn(org.jgroups:jgroups)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-jms)
BuildRequires: mvn(postgresql:postgresql)
BuildRequires: mvn(xalan:xalan)


%description
Apache ActiveMQ Artemis is an open source project to
build a multi-protocol, embeddable, very high performance,
clustered, asynchronous messaging system. Artemis
is an example of Message Oriented Middleware (MoM).

%package boot
Summary:       ActiveMQ Artemis Boot
Group:          Development/Java
BuildArch:     noarch

%description boot
ActiveMQ Artemis Boot.

%package cli
Summary:       ActiveMQ Artemis CLI
Group:          Development/Java
BuildArch:     noarch

%description cli
ActiveMQ Artemis CLI.

%package commons
Summary:       ActiveMQ Artemis Commons
# ./artemis-commons/src/main/java/org/apache/activemq/artemis/utils/Base64.java
License:       ASL 2.0 and Public Domain
Group:          Development/Java
BuildArch:     noarch
Provides:      bundled(java-base64) = 2.2.2

%description commons
ActiveMQ Artemis Commons.

%package core-client
Summary:       ActiveMQ Artemis Core Client
Group:          Development/Java
BuildArch:     noarch

%description core-client
ActiveMQ Artemis Core Client.

%package dto
Summary:       ActiveMQ Artemis DTO
Group:          Development/Java
BuildArch:     noarch

%description dto
ActiveMQ Artemis DTO.

%package jdbc-store
Summary:       ActiveMQ Artemis JDBC Store
Group:          Development/Java
BuildArch:     noarch

%description jdbc-store
ActiveMQ Artemis JDBC Store.

%package jms-client
Summary:       ActiveMQ Artemis JMS Client
Group:          Development/Java
BuildArch:     noarch

%description jms-client
ActiveMQ Artemis JMS Client.

%package jms-server
Summary:       ActiveMQ Artemis JMS Server
Group:          Development/Java
BuildArch:     noarch

%description jms-server
ActiveMQ Artemis JMS Server.

%package journal
Summary:       ActiveMQ Artemis Journal
Group:          Development/Java
BuildArch:     noarch

%description journal
ActiveMQ Artemis Journal.

%package maven-plugin
Summary:       ActiveMQ Artemis Maven Plugin
Group:          Development/Java
BuildArch:     noarch

%description maven-plugin
ActiveMQ Artemis Maven Plugin.

%package native
Summary:       ActiveMQ Artemis native library

%description native
Artemis distributes a native library,
used as a bridge for its fast journal,
between Artemis and Linux libaio.

%package protocols
Summary:       ActiveMQ Artemis Protocols POM
Group:          Development/Java
BuildArch:     noarch

%description protocols
ActiveMQ Artemis Protocols Parent POM.

%package amqp-protocol
Summary:       ActiveMQ Artemis Protocol AMQP
Group:          Development/Java
BuildArch:     noarch

%description amqp-protocol
Apache ActiveMQ Artemis supports for AMQP 1.0
specification.

%package hornetq-protocol
Summary:       ActiveMQ Artemis Protocol HornetQ
Group:          Development/Java
BuildArch:     noarch

%description hornetq-protocol
ActiveMQ Artemis Protocol HornetQ.

%package hqclient-protocol
Summary:       ActiveMQ Artemis Protocol HQClient
Group:          Development/Java
BuildArch:     noarch

%description hqclient-protocol
Apache ActiveMQ Artemis Protocol HQClient.

%package proton-plug
Summary:       ActiveMQ Artemis Protocol Proton
Group:          Development/Java
BuildArch:     noarch

%description proton-plug
Apache ActiveMQ Artemis Protocol Proton.

%package stomp-protocol
Summary:       ActiveMQ Artemis Protocol STOMP
Group:          Development/Java
BuildArch:     noarch

%description stomp-protocol
Apache ActiveMQ Artemis Protocol STOMP.

%package ra
Summary:       ActiveMQ Artemis RAR
Group:          Development/Java
BuildArch:     noarch

%description ra
Apache ActiveMQ Artemis RAR.

%package rest
Summary:       ActiveMQ Artemis REST Interface Implementation
Group:          Development/Java
BuildArch:     noarch

%description rest
Apache ActiveMQ Artemis REST Interface Implementation.

%package selector
Summary:       ActiveMQ Artemis Selector Implementation
Group:          Development/Java
BuildArch:     noarch

%description selector
Apache ActiveMQ Artemis Selector Implementation.

%package server
Summary:       ActiveMQ Artemis Server
Group:          Development/Java
BuildArch:     noarch

%description server
Apache ActiveMQ Artemis Server.

%package server-osgi
Summary:       ActiveMQ Artemis Server OSGi
Group:          Development/Java
BuildArch:     noarch

%description server-osgi
Apache ActiveMQ Artemis Server OSGi.

%package service-extensions
Summary:       ActiveMQ Artemis Service Extensions
Group:          Development/Java
BuildArch:     noarch

%description service-extensions
Apache ActiveMQ Artemis Service Extensions.

%package web
Summary:       ActiveMQ Artemis Web
Group:          Development/Java
BuildArch:     noarch

%description web
Apache ActiveMQ Artemis Web.

%package spring-integration
Summary:       ActiveMQ Artemis Spring Integration
Group:          Development/Java
BuildArch:     noarch

%description spring-integration
Apache ActiveMQ Artemis Spring Integration.

%package pom
Summary:       ActiveMQ Artemis POM
Group:          Development/Java
BuildArch:     noarch

%description pom
ActiveMQ Artemis Parent POM.

%package javadoc
Summary:       Javadoc for %{name}
Group:          Development/Java
BuildArch:     noarch

%description javadoc
This package contains javadoc for %{name}.

%package doc
Summary:       Documentation for %{name}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description doc
Documentation for %{name}.

%prep
%setup -q -n activemq-%{name}-%{version}
%patch0 -p1

# Cleanup
find -name "*.class" -print -delete
find -name "*.dll" -print -delete
find -name "*.exe" -print -delete
find -name "*.jar" -print -delete
find -name "*.so" -print -delete
rm -r .mvn .settings


%pom_change_dep -r :geronimo-json_1.0_spec javax.json:javax.json-api:1.0 artemis-core-client artemis-jms-server tests/integration-tests pom.xml

# Use org.hornetq:hornetq-checkstyle-checks:0.2
%pom_remove_plugin -r :maven-checkstyle-plugin

%pom_remove_plugin -r :maven-help-plugin
%pom_remove_plugin -r :maven-source-plugin

# Use org.codehaus.plexus:plexus-compiler-javac-errorprone:2.5
%pom_remove_plugin :maven-compiler-plugin
for p in artemis-native \
 artemis-protocols/artemis-proton-plug \
 artemis-protocols/artemis-stomp-protocol
do
 %pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin ${p} "
 <configuration>
  <compilerArgument>-proc:none</compilerArgument>
 </configuration>"
done

%pom_remove_plugin -r :findbugs-maven-plugin

# Not available runtime dep
%pom_remove_dep -r com.sun.winsw:winsw
%pom_remove_plugin :maven-dependency-plugin artemis-cli

# org.osgi:6.0.0
%pom_change_dep -r org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi
%pom_change_dep -r org.osgi:osgi.cmpn org.eclipse.osgi:org.eclipse.osgi.services

%pom_change_dep -r :geronimo-j2ee-connector_1.5_spec org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec
%pom_change_dep -r :geronimo-jms_2.0_spec org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec
# Update jaxb gId
%pom_change_dep -r com.sun.xml.bind:jaxb-jxc org.glassfish.jaxb:jaxb-jxc
%pom_change_dep -r com.sun.xml.bind:jaxb-impl org.glassfish.jaxb:jaxb-runtime

# org.eclipse.jetty.aggregate:jetty-all::uber:9.3.10.v20160621
%pom_xpath_remove -r "pom:dependency[pom:artifactId='jetty-all']/pom:classifier"
%pom_change_dep -r :jetty-all org.eclipse.jetty:jetty-server
%pom_add_dep org.eclipse.jetty:jetty-webapp:'${jetty.version}' artemis-web

# https://bugzilla.redhat.com/show_bug.cgi?id=1217395
# org.postgresql:postgresql:9.4-1205-jdbc4
%pom_change_dep -r org.postgresql:postgresql postgresql:

%pom_change_dep -r log4j: ::1.2.17

%pom_disable_module artemis-distribution
%pom_disable_module artemis-website
%pom_disable_module artemis-features
%pom_disable_module tests

%pom_disable_module integration/activemq-aerogear-integration
%pom_disable_module integration/activemq-vertx-integration
# https://bugzilla.redhat.com/show_bug.cgi?id=998251
# org.apache.activemq:activemq-client:5.12.0
%pom_disable_module artemis-openwire-protocol artemis-protocols
# https://bugzilla.redhat.com/show_bug.cgi?id=1359246
# io.netty:netty-codec-mqtt:5.0.0.Alpha2
%pom_disable_module artemis-mqtt-protocol artemis-protocols

%pom_xpath_remove "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions/pom:_exportcontents" artemis-server-osgi
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions/pom:Embed-Dependency" artemis-server-osgi
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration" "
<excludeDependencies>true</excludeDependencies>" artemis-server-osgi

# [ERROR]     'dependencies.dependency.(groupId:artifactId:type:classifier)'
# must be unique: org.apache.activemq:artemis-commons:jar
# -> duplicate declaration of version ${project.version} @ org.apache.activemq:artemis-proton-plug:[unknown-version]
%pom_remove_dep :artemis-commons::test artemis-protocols/artemis-proton-plug

%build

# compile native library
(
 cd artemis-native
 %{__cmake} .
 %make
)
# Some test dependecies are not available 
# e.g. org.apache.qpid:qpid-client:0.24,org.apache.qpid:qpid-jms-client:0.5.0
%mvn_build -fs

%install
%mvn_install

# Install native stuff
mkdir -p %{buildroot}%{_libdir}/%{name}
install -pm 755 artemis-native/bin/libartemis-native-%{__isa_bits}.so %{buildroot}%{_libdir}/%{name}/libartemis-native.so

%files boot -f .mfiles-artemis-boot
%license LICENSE NOTICE

%files cli -f .mfiles-artemis-cli
%license LICENSE NOTICE

%files commons -f .mfiles-artemis-commons
%license LICENSE NOTICE

%files core-client -f .mfiles-artemis-core-client
%doc README.md

%files dto -f .mfiles-artemis-dto
%files jdbc-store -f .mfiles-artemis-jdbc-store
%files jms-client -f .mfiles-artemis-jms-client
%files jms-server -f .mfiles-artemis-jms-server
%files journal -f .mfiles-artemis-journal
%files maven-plugin -f .mfiles-artemis-maven-plugin

%files native -f .mfiles-artemis-native
%{_libdir}/%{name}
%license LICENSE NOTICE

%files protocols -f .mfiles-artemis-protocols
%license LICENSE NOTICE

%files amqp-protocol -f .mfiles-artemis-amqp-protocol
%files hornetq-protocol -f .mfiles-artemis-hornetq-protocol
%files hqclient-protocol -f .mfiles-artemis-hqclient-protocol
%files proton-plug -f .mfiles-artemis-proton-plug
%files stomp-protocol -f .mfiles-artemis-stomp-protocol

%files ra -f .mfiles-artemis-ra
%files rest -f .mfiles-artemis-rest
%files selector -f .mfiles-artemis-selector
%license LICENSE NOTICE

%files server -f .mfiles-artemis-server
%files server-osgi -f .mfiles-artemis-server-osgi
%files service-extensions -f .mfiles-artemis-service-extensions
%files web -f .mfiles-artemis-web

%files spring-integration -f .mfiles-artemis-spring-integration
%files pom -f .mfiles-artemis-pom
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%files doc
%doc docs/*
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11965 |21mr|artemis-wildfly-integration-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          artemis-wildfly-integration
Version:       1.0.2
Release:       6
Summary:       ActiveMQ Artemis WildFly Integration
# ASL 2.0: ./src/main/java/org/jboss/activemq/artemis/wildfly/integration/recovery/WildFlyRecoveryDiscovery.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/integration/recovery/WildFlyActiveMQXAResourceRecovery.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/integration/recovery/WildFlyActiveMQLogger.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/integration/recovery/WildFlyActiveMQRegistry.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/integration/recovery/WildFlyActiveMQRecoveryRegistry.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/integration/WildFlyActiveMQXAResourceWrapper.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/integration/WildFlyActiveMQXAResourceWrapperFactory.java
# LGPLv2: ./src/main/java/org/jboss/activemq/artemis/wildfly/ActiveMQJBossLogger.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/security/SecurityActions.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/security/AS4SecurityActions.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/security/JBossASSecurityManager.java
# ./src/main/java/org/jboss/activemq/artemis/wildfly/transactions/WildFlyTransactionManagerLocator.java
License:       ASL 2.0 and LGPLv2+
URL:           https://github.com/rh-messaging/artemis-wildfly-integration
Source0:       https://github.com/rh-messaging/artemis-wildfly-integration/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/rh-messaging/artemis-wildfly-integration/issues/19
Patch0:        https://github.com/rh-messaging/artemis-wildfly-integration/commit/2040cd0fc42ca62583549bed2285561b222c197e.patch

BuildRequires: maven-local
BuildRequires: mvn(org.apache.activemq:artemis-server)
BuildRequires: mvn(org.apache.activemq:artemis-service-extensions)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss:jboss-transaction-spi)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-core-api)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor:1)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.narayana.jta:jta)
BuildRequires: mvn(org.picketbox:jbosssx-bare)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java library to integrate ActiveMQ Artemis with WildFly.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

%pom_remove_dep org.jboss.integration:jboss-transaction-spi
%pom_remove_dep org.jboss.security:jboss-security-spi

# cannot find symbol: org.jboss.security.SecurityAssociation
rm src/main/java/org/jboss/activemq/artemis/wildfly/security/AS4SecurityActions.java
sed -i '/AS4SecurityActions/d' src/main/java/org/jboss/activemq/artemis/wildfly/security/JBossASSecurityManager.java

%pom_change_dep :jbosssx org.picketbox:jbosssx-bare
%pom_change_dep :jbossjts-jacorb org.jboss.narayana.jta:jta

%pom_change_dep :jboss-logging-processor ::1

%build

# Test skipped for unavailable test deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11966 |21mr|artikulate-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Pronunciation trainer application for KDE
Name:		artikulate
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
Requires:	kqtquickcharts

%description
Artikulate is a pronunciation trainer that aims at improving and perfecting
the pronunciation skills of the user.

%files -f %{name}.lang
%doc COPYING*
%{_kde5_applicationsdir}/org.kde.artikulate.desktop
%{_kde5_bindir}/artikulate
%{_kde5_bindir}/artikulate_editor
%{_kde5_datadir}/config.kcfg/artikulate.kcfg
%{_kde5_iconsdir}/hicolor/*/*/*artikulate*.*
%{_kde5_datadir}/knsrcfiles/artikulate.knsrc
%{_appdatadir}/org.kde.artikulate.appdata.xml

#----------------------------------------------------------------------------

%define core_major 0
%define libartikulatecore %mklibname artikulatecore %{core_major}

%package -n %{libartikulatecore}
Summary:	Runtime library for Artikulate
Group:		System/Libraries

%description -n %{libartikulatecore}
Runtime library for Artikulate.

%files -n %{libartikulatecore}
%{_kde5_libdir}/libartikulatecore.so.%{core_major}*

#----------------------------------------------------------------------------

%define profile_major 0
%define libartikulatelearnerprofile %mklibname artikulatelearnerprofile %{profile_major}

%package -n %{libartikulatelearnerprofile}
Summary:	Runtime library for Artikulate
Group:		System/Libraries

%description -n %{libartikulatelearnerprofile}
Runtime library for Artikulate.

%files -n %{libartikulatelearnerprofile}
%{_kde5_libdir}/libartikulatelearnerprofile.so.%{profile_major}*

#----------------------------------------------------------------------------

%define sound_major 0
%define libartikulatesound %mklibname artikulatesound %{sound_major}

%package -n %{libartikulatesound}
Summary:	Runtime library for Artikulate
Group:		System/Libraries

%description -n %{libartikulatesound}
Runtime library for Artikulate.

%files -n %{libartikulatesound}
%{_kde5_libdir}/libartikulatesound.so.%{sound_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11967 |21mr|asciidoc-9.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to convert AsciiDoc text files to DocBook, HTML or Unix man pages
Name:		asciidoc
Version:	9.1.0
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://asciidoc.org
Source0:	https://github.com/asciidoc/asciidoc-py3/archive/%{version}/%{name}-py3-%{version}.tar.gz
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	dos2unix
BuildRequires:	pcre
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(python3)
Requires:	python3
Requires:	docbook-style-xsl
BuildArch:	noarch

%description
AsciiDoc is a text document format for writing short documents, articles,
books and UNIX man pages.

%files
%doc BUGS.txt CHANGELOG.txt COPYRIGHT README.asciidoc
%config(noreplace) %{_sysconfdir}/asciidoc/
%{_bindir}/asciidoc.py
%{_bindir}/asciidoc
%{_datadir}/asciidoc/
%{py3_puresitedir}/asciidocapi.py*
%{py3_puresitedir}/__pycache__/asciidocapi.cpython-3*
%{_mandir}/man1/testasciidoc.1.*
%{_mandir}/man1/asciidoc.1*

#----------------------------------------------------------------------------

%package -n a2x
Summary:	Converts Asciidoc text files to other formats (PDF, EPUB, DVI, etc.)
Group:		Publishing
Requires:	asciidoc
Recommends:	dblatex
Recommends:	fop
Recommends:	w3m
Recommends:	xsltproc
Conflicts:	%{name} < 9.1

%description -n a2x
A toolchain manager for AsciiDoc that converts Asciidoc text files to other
file formats.

%files -n a2x
%{_bindir}/a2x.py
%{_bindir}/a2x
%{_mandir}/man1/a2x.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-py-%{version}
%autopatch -p1

# Convert README and dict files to utf-8
for file in README.asciidoc doc/*.dict examples/website/*.dict; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

for i in  doc/book-multi.txt doc/article.txt COPYRIGHT doc/faq.txt filters/code/code-filter-readme.txt \
doc/asciidoc.1.txt filters/code/code-filter-test.txt doc/book.txt doc/latex-backend.txt;
do
    dos2unix < $i > $i.fixed ; mv -f $i.fixed $i ;
done

# Fix python shebang
grep -rl '#!/usr/bin/env python' | xargs -r \
    sed -i -e '1s@#!/usr/bin/env python3\?$@#!%{__python3}@'

%build
autoreconf -if
%configure
sed -ri 's/a2x.py -f/a2x.py -v -f/g' Makefile
%make

%install
%makeinstall_std

# real conf data goes to sysconfdir, rest to datadir; symlinks so asciidoc works
for d in dblatex docbook-xsl images javascripts stylesheets; do
    mv %{buildroot}%{_sysconfdir}/asciidoc/$d \
        %{buildroot}%{_datadir}/asciidoc
    ln -s %{_datadir}/asciidoc/$d %{buildroot}%{_sysconfdir}/asciidoc/
done

# Python API
install -Dpm 644 asciidocapi.py %{buildroot}%{py3_puresitedir}/asciidocapi.py

# Make it easier to %exclude these with both rpm < and >= 4.7
for file in %{buildroot}{%{_bindir},%{_datadir}/asciidoc/filters/*}/*.py ; do
    rm -f ${file}{c,o}
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11968 |21mr|asciidoc-9.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to convert AsciiDoc text files to DocBook, HTML or Unix man pages
Name:		asciidoc
Version:	9.1.1
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://asciidoc.org
Source0:	https://github.com/asciidoc-py/asciidoc-py/archive/%{version}/%{name}-py-%{version}.tar.gz
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	dos2unix
BuildRequires:	pcre
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(python3)
Requires:	python3
Requires:	docbook-style-xsl
BuildArch:	noarch

%description
AsciiDoc is a text document format for writing short documents, articles,
books and UNIX man pages.

%files
%doc BUGS.txt CHANGELOG.txt COPYRIGHT README.asciidoc
%config(noreplace) %{_sysconfdir}/asciidoc/
%{_bindir}/asciidoc.py
%{_bindir}/asciidoc
%{_datadir}/asciidoc/
%{py3_puresitedir}/asciidocapi.py*
%{py3_puresitedir}/__pycache__/asciidocapi.cpython-3*
%{_mandir}/man1/testasciidoc.1.*
%{_mandir}/man1/asciidoc.1*

#----------------------------------------------------------------------------

%package -n a2x
Summary:	Converts Asciidoc text files to other formats (PDF, EPUB, DVI, etc.)
Group:		Publishing
Requires:	asciidoc
Recommends:	dblatex
Recommends:	fop
Recommends:	w3m
Recommends:	xsltproc
Conflicts:	%{name} < 9.1

%description -n a2x
A toolchain manager for AsciiDoc that converts Asciidoc text files to other
file formats.

%files -n a2x
%{_bindir}/a2x.py
%{_bindir}/a2x
%{_mandir}/man1/a2x.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-py-%{version}
%autopatch -p1

# Convert README and dict files to utf-8
for file in README.asciidoc doc/*.dict examples/website/*.dict; do
    iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
    touch -r $file $file.new && \
    mv $file.new $file
done

for i in  doc/book-multi.txt doc/article.txt COPYRIGHT doc/faq.txt filters/code/code-filter-readme.txt \
doc/asciidoc.1.txt filters/code/code-filter-test.txt doc/book.txt doc/latex-backend.txt;
do
    dos2unix < $i > $i.fixed ; mv -f $i.fixed $i ;
done

# Fix python shebang
grep -rl '#!/usr/bin/env python' | xargs -r \
    sed -i -e '1s@#!/usr/bin/env python3\?$@#!%{__python3}@'

%build
autoreconf -if
%configure
sed -ri 's/a2x.py -f/a2x.py -v -f/g' Makefile
%make

%install
%makeinstall_std

# real conf data goes to sysconfdir, rest to datadir; symlinks so asciidoc works
for d in dblatex docbook-xsl images javascripts stylesheets; do
    mv %{buildroot}%{_sysconfdir}/asciidoc/$d \
        %{buildroot}%{_datadir}/asciidoc
    ln -s %{_datadir}/asciidoc/$d %{buildroot}%{_sysconfdir}/asciidoc/
done

# Python API
install -Dpm 644 asciidocapi.py %{buildroot}%{py3_puresitedir}/asciidocapi.py

# Make it easier to %exclude these with both rpm < and >= 4.7
for file in %{buildroot}{%{_bindir},%{_datadir}/asciidoc/filters/*}/*.py ; do
    rm -f ${file}{c,o}
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11969 |21mr|asm2-2.2.3-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define section	free

Name:		asm2
Version:	2.2.3
Release:	22
Epoch:		0
Summary:	A code manipulation tool to implement adaptable systems
License:	BSD-like
URL:		http://asm.objectweb.org/
Group:		Development/Java
#Vendor:		JPackage Project
#Distribution:	JPackage
Source0:	http://download.fr2.forge.objectweb.org/asm/asm-2.2.3.tar.bz2
BuildRequires:	ant
BuildRequires:	java-rpmbuild >= 0:1.6
BuildRequires:	objectweb-anttask
BuildArch:      noarch

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ASM is a code manipulation tool to implement adaptable systems.

%package	javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description	javadoc
Javadoc for %{name}.

%prep
%setup -q -n asm-%{version}
find . -name "*.jar" -exec rm -f {} \;
%{__mkdir_p} test/lib
%{__perl} -pi -e 's|.*<attribute name="Class-path".*||' archive/asm-xml.xml

%build
export CLASSPATH=
export OPT_JAR_LIST=
%ant -Dobjectweb.ant.tasks.path=$(build-classpath objectweb-anttask) jar jdoc

%install

# jars
%{__mkdir_p} %{buildroot}%{_javadir}/%{name}

for jar in output/dist/lib/*.jar; do
newjar=${jar/asm-/asm2-}
%{__install} -m 644 ${jar} \
%{buildroot}%{_javadir}/%{name}/`basename ${newjar}`
done

(cd %{buildroot}%{_javadir}/%{name} && for jar in *-%{version}*; do \
%{__ln_s} ${jar} ${jar/-%{version}/}; done)

# javadoc
%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a output/dist/doc/javadoc/user/* %{buildroot}%{_javadocdir}/%{name}-%{version}
(cd %{buildroot}%{_javadocdir} && %{__ln_s} %{name}-%{version} %{name})

# fix end-of-line
%{__perl} -pi -e 's/\r$//g' README.txt

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%postun javadoc
if [ $1 -eq 0 ]; then
  rm -f %{_javadocdir}/%{name}
fi

%files
%defattr(0644,root,root,0755)
%doc README.txt
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/*.jar

%files javadoc
%defattr(0644,root,root,0755)
%dir %{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}-%{version}/*
%ghost %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11970 |21mr|aspectjweaver-1.8.9-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          aspectjweaver 
Version:       1.8.9
Release:       9
Summary:       Java byte-code weaving library
License:       EPL
URL:           http://eclipse.org/aspectj/
Source0:       http://repo1.maven.org/maven2/org/aspectj/%{name}/%{version}/%{name}-%{version}-sources.jar
# This build.xml file was adapted from the Ubuntu package. The src jar has no build scripts.
Source1:       aspectjweaver-build.xml
Source2:       http://repo1.maven.org/maven2/org/aspectj/%{name}/%{version}/%{name}-%{version}.pom
Source3:       epl-v10.txt

BuildRequires: ant
BuildRequires: apache-commons-logging
BuildRequires: javapackages-local
BuildRequires: objectweb-asm
BuildRequires: locales-en

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The AspectJ Weaver supports byte-code weaving for aspect-oriented
programming (AOP) in java.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{summary}.

%prep
%setup -q -c
sed -i.objectweb-asm "s|import aj.|import |" \
 org/aspectj/weaver/bcel/asm/StackMapAdder.java

cp %{SOURCE1} build.xml

# JRockit is not open source, so we cannot build against it
rm org/aspectj/weaver/loadtime/JRockitAgent.java

cp %{SOURCE2} pom.xml
%pom_xpath_inject "pom:project" "
  <dependencies>
    <dependency>
      <groupId>org.ow2.asm</groupId>
      <artifactId>asm</artifactId>
      <version>5.0.3</version>
    </dependency>
  </dependencies>"

cp %{SOURCE3} .
  
%build

%mvn_file org.aspectj:%{name} %{name}
%mvn_alias org.aspectj:%{name} "org.aspectj:aspectjrt" "aspectj:aspectjrt"
LANG=en_US.ISO8859-1 CLASSPATH=$( build-classpath objectweb-asm/asm commons-logging ) ant
LANG=en_US.ISO8859-1 CLASSPATH=$( build-classpath objectweb-asm/asm commons-logging ) ant javadoc
%mvn_artifact pom.xml build/%{name}.jar

%install
%mvn_install -J javadoc

%files -f .mfiles
%license epl-v10.txt

%files javadoc -f .mfiles-javadoc
%license epl-v10.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11971 |21mr|aspell-0.60.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 15
%define libname %mklibname %{name} %{major}
%define libpspell %mklibname pspell %{major}
%define devname %mklibname %{name} -d

Summary:	A Free and Open Source interactive spelling checker program
Name:		aspell
Version:	0.60.8
Release:	3
License:	LGPLv2.1+
Group:		Text tools
Url:		http://aspell.net/
Source0:	ftp://ftp.gnu.org/gnu/aspell/%{name}-%{version}.tar.gz
Patch0:		CVE-2019-25051.patch
Requires:	aspell-dictionary

%description
GNU Aspell is a Free and Open Source spell checker designed to eventually
replace Ispell. It can either be used as a library or as an independent
spell checker.
Its main feature is that it does a much better job of coming up with possible
suggestions than just about any other spell checker out there for the English
language, including Ispell and Microsoft Word. It also has many other technical
enhancements over Ispell such as using shared memory for dictionaries and
intelligently handling personal dictionaries when more than one Aspell process
is open at once.

%files -f %{name}.lang
%doc README TODO
%{_bindir}/aspell*
%{_bindir}/run-with-aspell
%{_bindir}/word-list-compress
%{_bindir}/precat
%{_bindir}/preunzip
%{_bindir}/prezip
%{_bindir}/prezip-bin
%{_libdir}/aspell-0.60
%{_libdir}/aspell
%{_datadir}/info/aspell*
%{_mandir}/man1/*.1*

%pre
if [ -d %{_libdir}/aspell ]; then
    rm -rf %{_libdir}/aspell
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library files for aspell
Group:		System/Libraries

%description -n %{libname}
Shared library files for the aspell package.

%files -n %{libname}
%{_libdir}/libaspell.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpspell}
Summary:	Shared library files for aspell
Group:		System/Libraries
Conflicts:	%{libname} < 0.60.6.1-3

%description -n %{libpspell}
Shared library files for the aspell package.

%files -n %{libpspell}
%{_libdir}/libpspell.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for aspell
Group:		Development/Other
Requires:	%{name} >= %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libpspell} = %{EVRD}
Provides:	libaspell-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{libname}-devel < 0.60.6.1-5
Conflicts:	libpspell4-devel

%description -n %{devname}
Development headers, and files for development from the aspell package.

%files -n %{devname}
%{_bindir}/pspell-config
%{_includedir}/*
%{_libdir}/libaspell.so
%{_libdir}/libpspell.so

#----------------------------------------------------------------------------

%package manual
Summary:	Manual for aspell
Group:		Documentation

%description manual
This package contains a manual for aspell.

GNU Aspell is a Free and Open Source spell checker designed to eventually
replace Ispell. It can either be used as a library or as an independent
spell checker.

%files manual
%doc manual/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--disable-rpath

%make_build

%install
%make_install

# Provides symlink for configures that mean to match aspell on %%_libdir/aspell
pushd %{buildroot}%{_libdir}
    ln -sf aspell-0.60 aspell
popd

rm -f %{buildroot}%{_bindir}/aspell-import
rm -f %{buildroot}%{_mandir}/man1/aspell-import.1

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11972 |21mr|aspell-af-0.50.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0

%define languageenglazy Afrikaans
%define languagecode af
%define lc_ctype af_ZA

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.50.0
Release:	19
License:	LGPL
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
Provides:	spell-%{languagecode}
BuildRequires:	aspell >= 0.50
BuildRequires:	make
Requires:	aspell >= 0.50
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README.%{languagecode} Copyright doc/*
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11973 |21mr|aspell-am-0.03.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.03-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Amharic
%define languagecode am
%define lc_ctype am_ET

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.03.1
Release:       14
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Copyright README* doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11974 |21mr|aspell-az-0.02.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.02-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Azeri
%define languagecode az
%define lc_ctype az_AZ

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.02.0
Release:       16
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11975 |21mr|aspell-be-0.50.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.01

%define languageenglazy Belarussian
%define languagecode be
%define lc_ctype be_BY

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       18
Group:         System/Internationalization
#Source:        ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
Source:        ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell5-%{languagecode}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}


BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
#%setup -q -n %{name}-%{src_ver}
%setup -q -n aspell5-be-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} #doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.%{languagecode} Copyright 
#%doc doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11976 |21mr|aspell-bg-4.1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

# NOTE: the bulgarian.kbd file in the sources is not in utf-8;
# that is wrong and fixed in the spec file; the fix has to
# be removed once the kbd file shipped with the sources is fixed.

%define src_ver 4.1-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Bulgarian
%define languagecode bg
%define lc_ctype bg_BG

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       4.1.0
Release:       11
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}


BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

# the kbd file is not in utf-8; that is wrong, fixing it
cat bulgarian.kbd | iconv -f cp1251 -t utf-8  > tmpfile
cat tmpfile > bulgarian.kbd

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.%{languagecode} Copyright 
%doc doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11977 |21mr|aspell-bn-0.01.1.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.01.1-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Bengali
%define languagecode bn
%define lc_ctype bn_BD

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.01.1.1
Release:       16
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Copyright doc/README
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11978 |21mr|aspell-br-0.60.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define ver_major 0.60
%define ver_minor 2

%define src_ver %ver_major-%ver_minor

%define languageenglazy Breton
%define languagecode br
%define lc_ctype br_FR

Summary:       %{languageenglazy} files for aspell
Summary(br):   Geriadur brezhonek evit aspell
Name:          aspell-%{languagecode}
Version:       %ver_major.%ver_minor
Release:       16
Group:         System/Internationalization
Source:        ftp://ftp.gnu.org/gnu/aspell/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	   GPL
Provides: spell-br


BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%description -l br
Geriadur brezhonek evit aspell.

%prep
%setup -q -n %{name}-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.%{languagecode} Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11979 |21mr|aspell-ca-20090721-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 2.1.5-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Catalan
%define languagecode ca
%define lc_ctype ca_ES

Summary:       %{languageenglazy} files for aspell
Summary(ca):   Diccionari català per aspell
Name:          aspell-%{languagecode}
Version:       20090721
Release:       8
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	GPLv2
Provides: spell-ca


BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%description -l ca
aspell-ca té les dades d'ortografia del català per utilitzar-se amb
el programa ispell. Amb aquesta extensió, podeu redactar un document
en català i verificar fàcilment les seves errades.

aspell es pot utilitzar directament des de la línia d'ordres
per tal de verificar un fitxer o utilitzat per diversos programes
comercials de text, com el Lyx, etc."

%prep
%setup -q -n %{fname}-%{src_ver}
iconv -f ISO-8859-15 -t utf-8 doc/ChangeLog -o doc/ChangeLog.aux
iconv -f ISO-8859-15 -t utf-8 Copyright -o Copyright.aux
mv -f doc/ChangeLog.aux doc/ChangeLog
mv -f Copyright.aux Copyright

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.%{languagecode} Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11980 |21mr|aspell-cs-20040614.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 20040614-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Czech
%define languagecode cs
%define lc_ctype cs_CZ

Summary:       %{languageenglazy} files for aspell
Summary(cs):   Český slovník pro korektor překlepů aspell
Name:          aspell-%{languagecode}
Version:       20040614.1
Release:       15
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.sourceforge.net/
License:	   GPL

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}
Provides:      spell-%{languagecode}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.%{languagecode} Copyright doc/notes.txt doc/README.orig
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11981 |21mr|aspell-cy-0.50.3-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

# WARNING
# To build this package, you must set LC_ALL to cy
# example : LC_ALL=cy rpm -ba aspell-cy.speco

%define src_ver 0.50-3
%define languagelocal cymraeg
%define languageeng welsh
%define languageenglazy Welsh
%define languagecode cy
%define lc_ctype cy_CY

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.50.3
Release:	25
Group:		System/Internationalization
Source:		http://aspell.sourceforge.net/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		http://aspell.sourceforge.net/
License:	GPL
Epoch:		1
Provides: spell-cy

BuildRequires:	aspell >= 0.50
Requires:	aspell >= 0.50
BuildRequires:	locales-cy

# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary

Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
export LC_ALL=cy

./configure
%make

%install
rm -fr $RPM_BUILD_ROOT

export LC_ALL=cy

make DESTDIR=$RPM_BUILD_ROOT install

# fix doc perms
chmod 644 README

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11982 |21mr|aspell-da-1.7.42-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver %{version}
%define fname new_aspell-da
%define aspell_ver 0.60
%define languagelocal dansk
%define languageeng danish
%define languageenglazy Danish
%define languagecode da

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	1.7.42
Release:	7
Epoch:		1
License:	GPL
Group:		System/Internationalization
Source0:	http://da.speling.org/filer/new_aspell-da-%version.tar.bz2
Url:		http://da.speling.org/
BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	spell-da
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README*
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{src_ver}
chmod 644 README Copyright

%build
# don't use configure macro
./configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11983 |21mr|aspell-de-20161207.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 20030222-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageeng german
%define languageenglazy German
%define languagecode de

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	20161207.7.0
Release:	2
Epoch:		1
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.sourceforge.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}
Provides:	spell-%{languagecode}
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%defattr(644,root,root,755)
%doc README COPYING doc/*
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{src_ver}

%build
./configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11984 |21mr|aspell-el-0.50.3-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-3
%define languageeng greek
%define languageenglazy Greek
%define languagecode el

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.3
Release:       21
Group:         System/Internationalization
Source:        ftp://ftp.gnu.org/aspell/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:           http://aspell.sourceforge.net/
License:       GPL
Provides: spell-el

BuildRequires: aspell >= 0.50
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 README Copyright

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README Copyright
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11985 |21mr|aspell-en-2019.10.06-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define languagecode en
%define lc_ctype en_US

%define src_ver %{version}-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60

Summary:	English files for aspell
Name:		aspell-%{languagecode}
Version:	2019.10.06
Release:	3
License:	SCOWL
Group:		System/Internationalization
Url:		http://aspell.sourceforge.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires:	aspell
Requires:	aspell
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Provides:	aspell-en_CA
Provides:	aspell-en_GB
Provides:	spell-%{languagecode}
Autoreqprov:	no

%description
A English dictionary for use with aspell, a spelling checker.

%files
%doc README Copyright
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{fname}-%{src_ver}

chmod 644 README Copyright

%build
# don't use %%configure macro
./configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11986 |21mr|aspell-eo-2.1.20000225a.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

# NOTE: as of version 0.50-2, the wordlist isn't using accents;
# so we fix that with a small script in %setup section; that should
# be removed once an accented wordlist is included

%define src_ver 2.1.20000225a-2
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languagelocal esperanto
%define languageeng esperanto
%define languageenglazy Esperanto
%define languagecode eo
%define lc_ctype eo_XX

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       2.1.20000225a.2
Release:       9
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:	       http://aspell.sourceforge.net/
License:       GPL
Provides: spell-eo


BuildRequires: aspell
Requires:      aspell

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary

# RedHat Stuff. is this right:
#Obsoletes: ispell-eo, ispell-esperanto

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
./configure
#%make

# the word list doesn't use accents; fixing that
cat << EOF > fixaccents.sh
#!/bin/bash
cat - | \
  sed 's/C[Xx]/ĉ/g' | sed 's/cx/ĉ/g' | \
  sed 's/G[Xx]/Ĝ/g' | sed 's/gx/ĝ/g' | \
  sed 's/H[Xx]/Ĥ/g' | sed 's/hx/ĥ/g' | \
  sed 's/J[Xx]/Ĵ/g' | sed 's/jx/ĵ/g' | \
  sed 's/S[Xx]/Ŝ/g' | sed 's/sx/ŝ/g' | \
  sed 's/U[Xx]/Ŭ/g' | sed 's/ux/ŭ/g' | \
  iconv -f utf-8 -t iso-8859-3
EOF
preunzip -c eo.cwl | sh ./fixaccents.sh | (LC_ALL=C sort) > eo.wl
aspell  --lang=eo create master ./eo.rws < eo.wl

%install
rm -fr $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

# fix doc perms
chmod 644 README

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11987 |21mr|aspell-es-1.11.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

# WARNING
# To build this package, you may have to set LANG to es
# example : LANG=es; rpm -ba aspell-es.spec

%define src_ver 1.11-2
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languagelocal espanol
%define languageeng spanish
%define languageenglazy Spanish
%define languagecode es

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       1.11.2
Release:       6
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:           http://aspell.sourceforge.net/
License:       GPLv2
BuildRequires: aspell >= %{aspell_ver}
Requires:      aspell >= %{aspell_ver}

BuildRequires: locales-es

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary spell-es

# RedHat Stuff. is this right:
#Obsoletes: ispell-es, ispell-spanish

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
export LANG=es
# don't use configure macro
./configure

%make

%install
rm -fr %{buildroot}
export LANG=es

%makeinstall_std

chmod 644 README Copyright

%clean
rm -fr %{buildroot}

%files
%defattr(-,root,root)
%doc README Copyright
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11988 |21mr|aspell-et-0.1.21.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.1.21-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Estonian
%define languagecode et
%define lc_ctype et_EE

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.1.21.1
Release:       17
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   LGPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11989 |21mr|aspell-fa-0.11.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

# NOTE: the word list wrongly uses arabic kaf instead of farsi kaf,
# it is fixed trough a script in the make section (pablo)

%define src_ver 0.11-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Persian
%define languagecode fa
%define lc_ctype fa_IR

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.11.0
Release:       11
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure
#%make

# the word list wrongly uses arabic kaf instead of farsi kaf, fixing it
cat << EOF > fixkaf.sh
#!/bin/bash
cat - | \
  sed 's/ك/ک/g' 
EOF
preunzip -c %{languagecode}.cwl | sh ./fixkaf.sh | (LC_ALL=C sort) > %{languagecode}.wl
aspell  --lang=%{languagecode} create master ./%{languagecode}.rws < %{languagecode}.wl

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11990 |21mr|aspell-fi-0.60.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.7-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Finnish
%define languagecode fi
%define lc_ctype fi_FI

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.60.0
Release:	20
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.sourceforge.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Provides:	spell-%{languagecode}
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README.%{languagecode} Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11991 |21mr|aspell-fo-0.2.16.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.2.16-1
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageeng faroese
%define languageenglazy Faroese
%define languagecode fo

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.2.16.1
Release:	16
Epoch:		1
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.sourceforge.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	spell-fo

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README Copyright doc/contributors
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

chmod 644 README Copyright

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11992 |21mr|aspell-fr-0.50.3-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

# WARNING
# To build this package, you must set LC_ALL to fr
# example : LC_ALL=fr rpm -ba aspell-fr.spec

%define src_ver 0.50-3
%define languagelocal francais
%define languageeng french
%define languageenglazy French
%define languagecode fr
%define lc_ctype fr_FR

Name:		aspell-%{languagecode}
Version:	0.50.3
Release:	24
Summary:	%{languageenglazy} files for aspell
Group:		System/Internationalization
Source:		http://aspell.sourceforge.net/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		http://aspellfr.free.fr/aspell/
License:	GPL
Epoch:		1
Provides: spell-fr

BuildRequires:	aspell >= 0.50
Requires:	aspell >= 0.50

BuildRequires:	locales-fr

# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary

# RedHat Stuff. is this right:
#Obsoletes: ispell-fr, ispell-french

Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
export LC_ALL=fr
./configure
%make

%install
rm -fr $RPM_BUILD_ROOT
export LC_ALL=fr
%makeinstall_std

# fix doc perms
chmod 644 README COPYING

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README COPYING
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11993 |21mr|aspell-ga-5.1_0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 4.5-0
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Irish
%define languagecode ga
%define lc_ctype ga_IE

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	5.1_0
Release:	1
License:	GPLv2+
Group:		System/Internationalization
Url:		http://aspell.sourceforge.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README.%{languagecode} Copyright 
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

cp doc/README README.%{languagecode}
chmod 644 README* Copyright doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11994 |21mr|aspell-gd-0.1.1.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.1.1-1
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Scottish
%define languagecode gd
%define lc_ctype gd_GB

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.1.1.1
Release:	15
Epoch:		1
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	spell-%{languagecode}
Provides:	aspell-%{lc_ctype}
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README.%{languagecode} Copyright
%doc doc/*
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11995 |21mr|aspell-gl-0.5a.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.5a-2

%define languageenglazy Galician
%define languagecode gl
%define lc_ctype gl_ES

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Epoch:         1
Version:       0.5a.2
Release:       10
Group:         System/Internationalization
Source:        ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell6-%{languagecode}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= 0.60
BuildRequires: make
Requires:      aspell >= 0.60

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n aspell6-gl-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README.%{languagecode} Copyright 
%doc doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11996 |21mr|aspell-gv-0.50.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0

%define languageenglazy Manx Gaelic
%define languagecode gv
%define lc_ctype gv_GB

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.50.0
Release:	17
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= 0.50
Requires:	aspell >= 0.50
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Provides:	spell-%{languagecode}
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README.%{languagecode} Copyright 
%doc doc/*
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11997 |21mr|aspell-he-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 1.0-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Hebrew
%define languagecode he
%define lc_ctype he_IL

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:	1.1
Release:	1
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPLv2
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}
iconv -f ISO-8859-15 -t utf-8 README.iso -o README.iso.aux
mv -f README.iso.aux README.iso

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11998 |21mr|aspell-hi-0.02.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.02-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Hindi
%define languagecode hi
%define lc_ctype hi_IN

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.02.0
Release:       12
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
Patch1:		hindu-specific-chars.patch
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}
%patch1 -p0
mv u-deva.cset u-deva-hi.cset
mv u-deva.cmap u-deva-hi.cmap

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Copyright README*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 11999 |21mr|aspell-hr-0.51.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.51-0
%define languageenglazy Croatian
%define languagecode hr
%define lc_ctype hr_HR

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.51.0
Release:       17
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   LGPL

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mkdir -p $RPM_BUILD_ROOT/%{_datadir}/aspell
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/aspell

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12000 |21mr|aspell-hsb-0.02.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.02-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Upper Sorbian
%define languagecode hsb
%define lc_ctype hsb_DE

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.02.0
Release:       5
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

chmod 644 Copyright README* 

%files
%doc README* Copyright 
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12001 |21mr|aspell-hu-0.99.4.2.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.99.4.2-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Hungarian
%define languagecode hu
%define lc_ctype hu_HU

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.99.4.2.0
Release:       13
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.sourceforge.net/
#Source:	       http://prdownloads.sourceforge.net/wordlist-hu/wordlist-hu-%{src_ver}.tar.bz2
#URL:		   http://wordlist-hu.sourceforge.net
License:	   GPL

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}
Provides:      spell-%{languagecode}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

#cp doc/README README.%{languagecode}
#chmod 644 README Copyright README.%{languagecode}

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12002 |21mr|aspell-ia-0.50.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-1

%define languageenglazy Interlingua
%define languagecode ia
%define lc_ctype ia_XX

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.1
Release:       16
Group:         System/Internationalization
Source:        ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	   LGPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
#there is currently no interlingua locale
#Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%doc doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12003 |21mr|aspell-id-1.2.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 1.2-0
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Indonesian
%define languagecode id
%define lc_ctype id_ID

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	1.2.0
Release:	17
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Provides:	spell-%{languagecode}
Autoreqprov:	no

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{src_ver}
chmod 644 Copyright README* doc/*

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12004 |21mr|aspell-is-0.51.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.51.1-0
%define languageenglazy Icelandic
%define languagecode is
%define lc_ctype is_IS
%define aspellrelease 0.60

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.51.1
Release:	18
License:	GPLv2+
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= 0.50
Requires:	aspell >= 0.50
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}

%description
An %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README* Copyright
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{src_ver}
iconv -f windows-1252 -t utf8 Copyright >Copyright.aux
mv Copyright.aux Copyright

chmod 644 Copyright README*

%build
# don't use configure macro
./configure

make

%install
%makeinstall_std
mv %{buildroot}%{_libdir}/aspell-%{aspellrelease}/*slenska.alias %{buildroot}%{_libdir}/aspell-%{aspellrelease}/íslenska.alias

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12005 |21mr|aspell-it-0.54.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 2.2_20050523-0

%define languageenglazy Italian
%define languagecode it
%define lc_ctype it_IT

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.54.0
Release:	16
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	ftp://ftp.gnu.org/gnu/aspell/dict/it/aspell6-%{languagecode}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= 0.50
Requires:	aspell >= 0.50
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Provides:	spell-it
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n aspell6-%{languagecode}-%{src_ver}
chmod 644 README* Copyright doc/*
mv README README.%{languagecode}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12006 |21mr|aspell-ku-0.20.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.20-1
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Kurdish
%define languagecode ku
%define lc_ctype ku_TR

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.20.1
Release:       5
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

chmod 644 Copyright README* 

%files
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12007 |21mr|aspell-la-20020503.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 20020503-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Latin
%define languagecode la
# FIXME: no locale yet
%define lc_ctype la_

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       20020503.0
Release:       16
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
#Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
#Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12008 |21mr|aspell-lt-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 1.2.1-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Lithuanian
%define languagecode lt
%define lc_ctype lt_LT

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:	1.3
Release:	1
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   Free Software (see Copyright file)
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12009 |21mr|aspell-lt-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 1.3.2
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Lithuanian
%define languagecode lt
%define lc_ctype lt_LT

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:	1.3.2
Release:	1
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   Free Software (see Copyright file)
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12010 |21mr|aspell-lv-0.5.5.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.5.5-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Latvian
%define languagecode lv
%define lc_ctype lv_LV

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.5.5.1
Release:       17
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12011 |21mr|aspell-mg-0.03.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.03-0
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Malagasy
%define languagecode mg
%define lc_ctype mg_MG

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.03.0
Release:       14
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12012 |21mr|aspell-mi-0.50.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Maori
%define languagecode mi
%define lc_ctype mi_NZ

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       16
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   LGPL

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mkdir -p $RPM_BUILD_ROOT/%{_datadir}/aspell
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/aspell

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12013 |21mr|aspell-mk-0.50.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Macedonian
%define languagecode mk
%define lc_ctype mk_MK

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       17
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mkdir -p $RPM_BUILD_ROOT/%{_datadir}/aspell
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/aspell

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12014 |21mr|aspell-mn-0.06.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.06-2
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Mongol
%define languagecode mn
%define lc_ctype mn_MN

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.06.2
Release:       5
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		http://aspell.net/
License:	GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

chmod 644 Copyright README* doc/*

%files
%doc README* Copyright doc/* 
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12015 |21mr|aspell-mr-0.10.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.10-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Marathi
%define languagecode mr
%define lc_ctype mr_IN

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.10.0
Release:       15
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
Patch1:        marathi-specific-chars-426943.patch
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}
%patch1 -p0
mv u-deva.cset u-deva-mr.cset
mv u-deva.cmap u-deva-mr.cmap

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Copyright README*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12016 |21mr|aspell-ms-0.50.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Malay
%define languagecode ms
%define lc_ctype ms_MY

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       17
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GFDL / OOPDL

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mkdir -p $RPM_BUILD_ROOT/%{_datadir}/aspell
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/aspell

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12017 |21mr|aspell-mt-0.50.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Maltese
%define languagecode mt
%define lc_ctype mt_MT

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       15
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   LGPL

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mkdir -p $RPM_BUILD_ROOT/%{_datadir}/aspell
mkdir -p $RPM_BUILD_ROOT/%{_libdir}/aspell

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12018 |21mr|aspell-nb-0.50.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define src_ver 0.50.1-0
%define languageenglazy Norwegian Bokmaal
%define languagecode nb
%define _enable_debug_packages %{nil}
%define debug_package %{nil}
%define aspellrelease 0.60

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.50.1
Release:	13
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.sourceforge.net/
Source0:	ftp://ftp.gnu.org/aspell/aspell-%{languagecode}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= 0.50
Requires:	aspell >= 0.50
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-no = 0.50.2-13
Provides:	spell-no
Provides:	spell-nb

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%defattr(644,root,root,755)
%doc README Copyright
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

make

%install
%makeinstall_std
mv %{buildroot}%{_libdir}/aspell-%{aspellrelease}/'bokm'$'\345''l.alias' %{buildroot}%{_libdir}/aspell-%{aspellrelease}/bokmål.alias

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12019 |21mr|aspell-nds-0.01.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.01-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Low-Saxon
%define languagecode nds
%define lc_ctype nds_DE

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.01.0
Release:       17
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

# if there is isn't a qwertz.kbd provided by aspell, create it
if [ ! -r ${RPM_BUILD_ROOT}/%{_libdir}/aspell-%{aspell_ver}/qwertz.kbd \
	-a ! -r /%{_libdir}/aspell-%{aspell_ver}/qwertz.kbd ]
then
	cat /%{_libdir}/aspell-%{aspell_ver}/standard.kbd | \
	perl -p -e 's/ty/tz/; s/yu/zu/; s/zx/yx/' \
	> ${RPM_BUILD_ROOT}/%{_libdir}/aspell-%{aspell_ver}/qwertz.kbd
fi

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Copyright README*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12020 |21mr|aspell-nl-0.50.2-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-2
%define fname aspell-%{languagecode}
%define aspell_ver 0.60
%define languagelocal nederlandse
%define languageeng dutch
%define languageenglazy Dutch
%define languagecode nl
%define lc_ctype ln_NL

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.50.2
Release:	24
Group:		System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		http://aspell.sourceforge.net/
License:	GPL
Provides: spell-nl

BuildRequires:	aspell >= %{aspell_ver}
Requires:	aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary

# RedHat Stuff. is this right:
#Obsoletes: ispell-fr, ispell-french

Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
./configure
%make

%install
rm -fr $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install

# fix doc perms
chmod 644 README doc/*

cd $RPM_BUILD_ROOT%{_libdir}/aspell && ln -s nl.rws nederlands

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README 
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12021 |21mr|aspell-nn-0.50.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50.1-1
%define languageenglazy Nynorsk
%define languagecode nn
%define lc_ctype nn_NO

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.1
Release:       18
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12022 |21mr|aspell-ny-0.01.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.01-0
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Nyanja
%define languagecode ny
# FIXME: no locale yet
%define lc_ctype ny_

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.01.0
Release:       17
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
# no locales-ny available yet.
#Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12023 |21mr|aspell-or-0.03.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.03-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Oriya
%define languagecode or
%define lc_ctype or_IN

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.03.1
Release:       15
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
# there is no locales-or yet.
#Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Copyright README* doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12024 |21mr|aspell-pa-0.01.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.01-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Punjabi
%define languagecode pa
%define lc_ctype pa_IN

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.01.1
Release:       16
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Copyright README*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12025 |21mr|aspell-pl-0.60.5-3.20110628.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define src_ver 6.0
%define snap 20110628
%define relsnap %{snap}-0
%define languageeng polish
%define languageenglazy Polish
%define languagecode pl
%define lc_ctype pl_PL

%define fname aspell6-pl-%{snap}

Summary:	%{languageenglazy} dictionary for aspell
Name:		aspell-pl
Version:	0.60.5
Release:	3.%{snap}.2
License:	GPLv2+
Group:		System/Internationalization
URL:		http://www.sjp.pl/slownik/ort/
Source0:	http://sjp.pl/slownik/ort/sjp-aspell6-%{languagecode}-%{src_ver}_%{relsnap}.tar.bz2
BuildRequires:	aspell >= 0.60.5
Requires:	aspell >= %{version}
Provides:	spell-%{languagecode}
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
BuildArch:	noarch

%description
Polish dictionary (i.e. word list) for aspell.

%prep
%setup -qn aspell6-%{languagecode}-%{src_ver}_%{relsnap}

%build
# note: configure is not autoconf-generated
./configure

%make

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc README doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12026 |21mr|aspell-pt-0.60.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define intname aspell6
%define intver 20110424

%define languageenglazy Portuguese
%define languagecode pt
%define lc_ctype pt_PT

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Group:		System/Internationalization
Version:	0.60.0
Release:	9
License:	GPL
Url:		http://aspell.sourceforge.net/
# http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
Source0:	http://natura.di.uminho.pt/download/sources/Dictionaries/aspell6/%{intname}.%{languagecode}-%{intver}.tar.bz2
BuildRequires:	aspell >= 0.60
Requires:	aspell >= 0.60
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README Copyright doc/LEIAME.txt
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{intname}-%{lc_ctype}-%{intver}-0

%build
# don't use configure macro
./configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12027 |21mr|aspell-pt-preao-0.60.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define intname aspell6
%define intver 20110424

%define languageglazy Portuguese
%define languagecode pt-preao
%define lc_ctype pt_PT-preao

Summary:	%{languageglazy} files previous to 1990 orthography agreement for aspell
Name:		aspell-%{languagecode}
Version:	0.60.0
Release:	10
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.sourceforge.net/
# http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
Source0:	http://natura.di.uminho.pt/download/sources/Dictionaries/aspell6/%{intname}.%{languagecode}-%{intver}.tar.bz2
BuildRequires:	aspell >= 0.60
Requires:	aspell >= 0.60
# Mandriva Stuff
Requires:	locales-pt
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}

%description
A %{languageglazy} dictionary previous to the orthography agreement made in 1990
to use with aspell, a spelling checker.
Version %{intver}.

%files
%doc README Copyright COPYING doc/LEIAME-preao.txt
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{intname}-%{lc_ctype}-%{intver}-0

%build
# don't use configure macro
./configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12028 |21mr|aspell-qu-20040424.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.02-0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Quechua
%define languagecode qu
# FIXME: no locale yet
%define lc_ctype qu_PE

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       20040424.1
Release:       16
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
#Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12029 |21mr|aspell-ro-3.3.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

#
# NOTE: rpm is unable to package filenames in an enocidng other than the
# the one it is currently using; so this package has to be build with
# an iso-8859-* locale; eg: LC_ALL=fr rpm -be specfile
#

%define src_ver 3.3-2

%define languageenglazy Romanian
%define languagecode ro
%define lc_ctype ro_RO

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	3.3.10
Release:	2
License:	Free
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	ftp://ftp.gnu.org/gnu/aspell/dict/ro/aspell5-ro-%{src_ver}.tar.bz2
BuildRequires:	aspell >= 0.50
BuildRequires:	locales-fr
Requires:	aspell >= 0.50
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README Copyright
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n aspell5-ro-%{src_ver}
chmod 644 README Copyright

%build
export LC_ALL=fr
# don't use configure macro
./configure

%make

%install
export LC_ALL=fr

%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12030 |21mr|aspell-ru-0.99f7.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define languagecode ru
%define lc_ctype ru_RU

%define src_ver 0.99f7-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60

Summary:	Russian files for aspell
Name:		aspell-%{languagecode}
Version:	0.99f7.1
Release:	18
License:	GPLv2+
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
BuildRequires:	aspell
Requires:	aspell
# ROSA Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Provides:	spell-ru
Autoreqprov:	no

%description
A Russian dictionary for use with aspell, a spelling checker.

%files
%doc README.%{languagecode} Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

mv -f README README.%{languagecode}
chmod 644 Copyright README.%{languagecode} doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12031 |21mr|aspell-rw-0.50.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Kinyarwanda
%define languagecode rw
%define lc_ctype rw_RW

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       17
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12032 |21mr|aspell-sc-0.50.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 1.0

%define languageenglazy Sardinian
%define languagecode sc
%define lc_ctype sc_IT

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.1
Release:       17
Group:         System/Internationalization
#Source:        ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
Source:        ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell5-%{languagecode}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}


BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
#%setup -q -n %{name}-%{src_ver}
%setup -q -n aspell5-%{languagecode}-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

#mv -f README README.%{languagecode}
chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12033 |21mr|aspell-sk-2.02.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 2.01-2
%define languagelocal slovak
%define languageeng slovak
%define languageenglazy Slovak
%define languagecode sk
%define lc_ctype sk_SK

Summary:       Slovak files for aspell
Name:          aspell-%{languagecode}
Version:	2.02.0
Release:	1
Group:         System/Internationalization
Source:        ftp://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell6-%{languagecode}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}


BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A Slovak dictionary for use with aspell, a spelling checker.


%prep
%setup -q -n aspell6-sk-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

#cp doc/README README.sk
chmod 644 README* Copyright doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12034 |21mr|aspell-sl-0.50.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Slovenian
%define languagecode sl
%define lc_ctype sl_SI

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	0.50.0
Release:	16
License:	GPL
Group:		System/Internationalization
Url:		http://aspell.net/
Source0:	http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
BuildRequires:	aspell >= 0.50
Requires:	aspell >= 0.50
# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary
Provides:	aspell-%{lc_ctype}
Provides:	spell-%{languagecode}
Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%files
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{src_ver}
chmod 644 Copyright README* doc/*

%build
# don't use configure macro
./configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12035 |21mr|aspell-sv-0.51.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.51-0
%define languagelocal svenska
%define languageeng swedish
%define languageenglazy Swedish
%define languagecode sv

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.51.0
Release:       17
Group:         System/Internationalization
Source:        ftp://ftp.gnu.org/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:       LGPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= 0.50
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary

# RedHat Stuff. is this right:
#Obsoletes: ispell-se, ispell-swedish, aspell-se

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv README README.%{languagecode}
chmod 644 README* Copyright doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12036 |21mr|aspell-sw-0.50.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Swahili
%define languagecode sw
%define lc_ctype sw_KE

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       18
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   LGPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12037 |21mr|aspell-ta-20040424.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 20040424-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Tamil
%define languagecode ta
%define lc_ctype ta_IN

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       20040424.1
Release:       15
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12038 |21mr|aspell-tet-0.50.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.1.1
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Tetum
%define languagecode tet
%define lc_ctype tet_TP

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       16
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%fname-%{src_ver}.tar.bz2
URL:           http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}


BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
# there is not tet locale yet
#Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

ExcludeArch:   ia64
Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build

# don't use configure macro
./configure

%make

%install
%makeinstall_std

chmod 644 Copyright README doc/*

%files
%defattr(-,root,root)
%doc README Copyright
%doc doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12039 |21mr|aspell-tl-0.02.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.02-1
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Tagalog (Filipino)
%define languagecode tl
%define lc_ctype tl_PH

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.02.1
Release:       15
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12040 |21mr|aspell-tn-1.0.1.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 1.0.1-0
%define fname aspell5-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Tswana
%define languagecode tn
# no locale yet
%define lc_ctype tn_XX

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       1.0.1.0
Release:       16
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
# no tn locale yet
#Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12041 |21mr|aspell-tr-0.50.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Turkish
%define languagecode tr
%define lc_ctype tr_TR

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       18
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12042 |21mr|aspell-uk-1.4.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 1.4.0-0
%define languagelocal uk
%define languageeng ukrainian
%define languageenglazy Ukrainian
%define languagecode uk
%define lc_ctype en_UK

Summary:	%{languageenglazy} files for aspell
Name:		aspell-%{languagecode}
Version:	1.4.0
Release:	11
Group:		System/Internationalization
Source:	    http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell6-%{languagecode}-%{src_ver}.tar.bz2
URL:		http://aspell.sourceforge.net/
License:	GPLv2+ and LGPLv2+
Epoch:		1
Provides: spell-%{languagecode}

BuildRequires:	aspell >= 0.60
Requires:	aspell >= 0.60

# Mandriva Stuff
Requires:	locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:	enchant-dictionary = 1
Provides:	aspell-dictionary

Autoreqprov:	no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n aspell6-%{languagecode}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

# fix doc perms
chmod 644 README* Copyright

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12043 |21mr|aspell-uz-0.6.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.6-0
%define version 0.6.0
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Uzbek
%define languagecode uz
%define lc_ctype uz_UZ

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       %version
Release:       15
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}
Provides:      spell-%{languagecode}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv README README.%{languagecode}
chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12044 |21mr|aspell-vi-0.01.1.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.01.1-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Vietnamese
%define languagecode vi
%define lc_ctype vi_VN

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.01.1.1
Release:       16
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12045 |21mr|aspell-wa-0.50.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Walloon
%define languagecode wa
%define lc_ctype wa_BE

Summary:       %{languageenglazy} files for aspell
Summary(wa):	Coridjrece aspell e walon
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       16
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%description
Li motî walon pol coridjrece aspell.
Avou ci chal vos ploz croidjî tos vos tecses sicrîts e rfondou walon.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

mv README README.%{languagecode}
chmod 644 Copyright README* doc/*

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright doc/*
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12046 |21mr|aspell-yi-0.01.1.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.01.1-1
%define fname aspell6-%{languagecode}
%define aspell_ver 0.60
%define languageenglazy Yiddish
%define languagecode yi
%define lc_ctype yi_US

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.01.1.1
Release:       14
Group:         System/Internationalization
Source:        http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/%{fname}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   GPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= %{aspell_ver}
BuildRequires: make
Requires:      aspell >= %{aspell_ver}

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:      aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{fname}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-%{aspell_ver}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12047 |21mr|aspell-zu-0.50.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define src_ver 0.50-0
%define languageenglazy Zulu
%define languagecode zu
%define lc_ctype zu_ZA

Summary:       %{languageenglazy} files for aspell
Name:          aspell-%{languagecode}
Version:       0.50.0
Release:       16
Group:         System/Internationalization
Source:	       http://ftp.gnu.org/gnu/aspell/dict/%{languagecode}/aspell-%{languagecode}-%{src_ver}.tar.bz2
URL:		   http://aspell.net/
License:	   LGPL
Provides: spell-%{languagecode}

BuildRequires: aspell >= 0.50
BuildRequires: make
Requires:      aspell >= 0.50

# Mandriva Stuff
Requires:      locales-%{languagecode}
# aspell = 1, myspell = 2, lang-specific = 3
Provides:      enchant-dictionary = 1
Provides:      aspell-dictionary
Provides:	   aspell-%{lc_ctype}

Autoreqprov:   no

%description
A %{languageenglazy} dictionary for use with aspell, a spelling checker.

%prep
%setup -q -n %{name}-%{src_ver}

%build
# don't use configure macro
./configure

%make

%install
rm -fr $RPM_BUILD_ROOT

%makeinstall_std

chmod 644 Copyright README* 

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README* Copyright 
%{_libdir}/aspell-*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12048 |21mr|assertj-core-3.8.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without  memoryfilesystem

Name:           assertj-core
Version:        3.8.0
Release:        5
Summary:        Library of assertions similar to fest-assert
License:        ASL 2.0
URL:            http://joel-costigliola.github.io/assertj/
Source0:        https://github.com/joel-costigliola/assertj-core/archive/assertj-core-%{version}.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(cglib:cglib-nodep)
%if %{with memoryfilesystem}
BuildRequires:  mvn(com.github.marschall:memoryfilesystem)
%endif
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.mockito:mockito-core)

%description
A rich and intuitive set of strongly-typed assertions to use for unit testing
(either with JUnit or TestNG).

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_parent
%pom_xpath_inject "pom:project" "<groupId>org.assertj</groupId>"

%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-shade-plugin
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin org.jacoco:jacoco-maven-plugin

# package org.mockito.internal.util.collections does not exist
rm -rf ./src/test/java/org/assertj/core/error/ShouldContainString_create_Test.java

%if %{without memoryfilesystem}
%pom_remove_dep :memoryfilesystem
rm -r src/test/java/org/assertj/core/internal/{Paths*.java,paths}
%endif

# test lib not in Fedora
%pom_remove_dep com.tngtech.java:junit-dataprovider

%build
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md CONTRIBUTING.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc CONTRIBUTING.md
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12049 |21mr|assimp-5.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   5
%define minor   0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		assimp
Version:	5.0.1
Release:	4
Summary:	Library to import various 3D model formats into applications
Group:		Graphics
License:	BSD
URL:		http://www.assimp.org
# Github releases include nonfree models, source tarball must be re-generated
# using assimp_generate_tarball.sh
Source0:	%{name}-%{version}-free.tar.xz
Source1:	assimp_generate_tarball.sh
# Un-bundle libraries that are provided by the distribution.
Patch0:         %{name}-5.0.1-unbundle.patch
# Add /usr/lib64 to library lookup paths for python modules
Patch1:         %{name}-5.0.1-pythonpath.patch
# Correct the paths in the installed pkgconfig file
Patch2:         %{name}-5.0.1-pkgconfig.patch
# Exclude the build directory from the doxygen-generated documentation
Patch3:         %{name}-5.0.1-doxyfile.patch
# Updates for changes in irrxml's API
Patch4:         %{name}-5.0.1-irrxml.patch
# Correct the CMake version to match the tarball version.
Patch5:         %{name}-5.0.1-assimpversion.patch
# Correct the library installation location
Patch6:         %{name}-5.0.1-lib-dir.patch
Patch7:         CVE-2024-40724.patch
BuildRequires:	boost-devel
BuildRequires:	ninja
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	doxygen
BuildRequires:	irrlicht-devel
BuildRequires:	irrXML-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(poly2tri)
BuildRequires:	pkgconfig(polyclipping)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	rapidjson-devel
BuildRequires:	utf8cpp-devel

%description
Assimp, the Open Asset Import Library, is a free library to import various
well-known 3D model formats into applications. Assimp aims to provide a full
asset conversion pipeline for use in game engines and real-time rendering
systems, but is not limited to these applications.

This package contains the assimp binary, a tool to work with various formats.

%files
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to import various 3D model formats into applications
Group:		System/Libraries

%description -n %{libname}
Assimp, the Open Asset Import Library, is a free library to import various
well-known 3D model formats into applications. Assimp aims to provide a full
asset conversion pipeline for use in game engines and real-time rendering
systems, but is not limited to these applications.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}{,.*}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development libraries for assimp
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the header files and development libraries for assimp.
You need to install it if you want to develop programs using assimp.

%files -n %{devname}
%doc Readme.md LICENSE CREDITS CHANGES
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}-%{major}.%{minor}
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python bindings for %{name}
Group:		Development/Python

%description -n python3-%{name}
Assimp, the Open Asset Import Library, is a free library to import various
well-known 3D model formats into applications. Assimp aims to provide a full
asset conversion pipeline for use in game engines and real-time rendering
systems, but is not limited to these applications.

%files -n python3-%{name}
%{python3_sitelib}/py%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Get rid of bundled libs so we can't accidentally build against them
# Get rid of bundled libs so we can't accidently build against them
rm -r contrib/android-cmake
rm -r contrib/irrXML
rm -r contrib/poly2tri
rm -r contrib/rapidjson
rm -r contrib/utf8cpp

dos2unix CHANGES CREDITS LICENSE Readme.md
iconv -f iso8859-1 -t utf-8 CREDITS > CREDITS.conv && mv -f CREDITS.conv CREDITS

%build
%cmake  \
    -DCMAKE_BUILD_TYPE=None \
    -DASSIMP_LIB_INSTALL_DIR=%{_lib} \
    -DBUILD_DOCS=OFF \
    -DHTML_OUTPUT=%{name}-%{version} \
    -DCMAKE_INSTALL_DOCDIR=%{_docdir} \
    -DPOLY2TRI_INCLUDE_PATH=%{_includedir}/poly2tri \
    -DSYSTEM_IRRXML=ON \
    -DASSIMP_BUILD_ZLIB=ON \
    -G Ninja

# To use system polyclipping if assimp ever becomes compatible:
# -DCLIPPER_INCLUDE_PATH=%{_includedir}/polyclipping
%ninja_build

%install
%ninja_install -C build

mkdir -p %{buildroot}%{python3_sitelib}/pyassimp/
install -m0644 port/PyAssimp/pyassimp/*.py %{buildroot}%{python3_sitelib}/pyassimp/
rm -f %{buildroot}%{_libdir}/libzlibstatic.a


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12050 |21mr|astyle-3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define soversion 3.1.0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Source code formatter for C-like programming languages
Name:		astyle
Version:	3.1
Release:	2
License:	LGPLv3+
Group:		Development/C
Url:		http://astyle.sourceforge.net/
Source0:	https://downloads.sourceforge.net/astyle/%{name}_%{version}_linux.tar.gz
# Make the astyle-lib usable for arduino
Patch0:		astyle-arduino.patch
# Fix (hardcoded) path to html-help
Patch1:		astyle-html-help.patch
# Fix abort with gcc8 -Wp,-D_GLIBCXX_ASSERTION
# https://bugzilla.redhat.com/show_bug.cgi?id=1573092
# Patch proposed: https://sourceforge.net/p/astyle/bugs/503/
Patch2:		astyle-r655-gcc8-vector-at-end.patch
BuildRequires:	java-devel
Requires:	%{libname} = %{EVRD}

%description
Artistic Style is a source code indenter, source code formatter, and
source code beautifier for the C, C++, C# and Java programming
languages.

%files
%doc doc/*.html
%{_bindir}/astyle

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Astyle shared library
Group:		System/Libraries

%description -n %{libname}
Astyle shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Astyle development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Astyle development files.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so

#------------------------------------------------------------------

%prep
%setup -q -n %{name}
%apply_patches

%build
chmod a-x src/*
chmod a-x doc/*

pushd src
	# it's much easier to compile it here than trying to fix the Makefile
	g++ %{optflags} -DASTYLE_LIB -DASTYLE_JNI -fPIC -I/usr/lib/jvm/java/include -I/usr/lib/jvm/java/include/linux -c ASBeautifier.cpp ASEnhancer.cpp ASFormatter.cpp ASResource.cpp astyle_main.cpp
	g++ -shared -o libastyle.so.%{soversion} *.o -Wl,-soname,libastyle.so.%{major}
	ln -s libastyle.so.%{soversion} libastyle.so
	g++ %{optflags} -c ASLocalizer.cpp astyle_main.cpp
	g++ %{optflags} -o astyle ASLocalizer.o astyle_main.o -L. -lastyle
popd

%install
pushd src
	mkdir -p %{buildroot}{%{_bindir},%{_libdir},%{_includedir}}
	install -p -m 755 astyle %{buildroot}%{_bindir}
	install -p -m 755 libastyle.so.%{soversion} %{buildroot}%{_libdir}
	cp -P libastyle.so %{buildroot}%{_libdir}
	install -p -m 644 astyle.h %{buildroot}%{_includedir}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12051 |21mr|async-1.4.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          async
Version:       1.4.1
Release:       7
Summary:       Building blocks for asynchronous Java processing
License:       BSD
URL:           https://github.com/stumbleupon/async
Source0:       https://github.com/OpenTSDB/async/archive/v%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This Java library provides some useful building blocks to build
high-performance multi-threaded asynchronous applications in Java.
Its implementation was inspired by Twisted's asynchronous library
(twisted.internet.defer).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# Cleanup
rm -r  .mvn-compat
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

# Unwanted
%pom_remove_plugin :maven-gpg-plugin pom.xml.in
%pom_remove_plugin :maven-javadoc-plugin pom.xml.in
%pom_remove_plugin :maven-source-plugin pom.xml.in

%pom_xpath_remove pom:build/pom:sourceDirectory pom.xml.in
%pom_xpath_inject pom:build "
<sourceDirectory>src</sourceDirectory>
<resources>
    <resource>
        <directory>src/</directory>
        <excludes>
            <exclude>**/*.java</exclude>
        </excludes>
    </resource>
</resources>" pom.xml.in

# Fix manifest entries
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin pom.xml.in "
<configuration>
  <archive>
    <manifest>
      <addClasspath>false</addClasspath>
      <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
      <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
    </manifest>
  </archive>
</configuration>"

%mvn_file : %{name}

%build

# Generate POM file
make %{?_smp_mflags} pom.xml

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc AUTHORS NEWS README THANKS
%license COPYING

%files javadoc -f .mfiles-javadoc
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12052 |21mr|async-http-client1-1.9.40-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          async-http-client1
# NOTE: Newer release use netty >= 4.0.36.Final
Version:       1.9.40
Release:       8
Summary:       Asynchronous Http Client for Java
# CC0:  src/main/java/com/ning/http/client/providers/netty/chmv8/ConcurrentHashMapV8.java
# src/main/java/com/ning/http/client/providers/netty/chmv8/CountedCompleter.java
# src/main/java/com/ning/http/client/providers/netty/chmv8/ForkJoinPool.java
# src/main/java/com/ning/http/client/providers/netty/chmv8/ForkJoinTask.java
# src/main/java/com/ning/http/client/providers/netty/chmv8/ForkJoinWorkerThread.java
# src/main/java/com/ning/http/client/providers/netty/chmv8/LongAdder.java
# src/main/java/com/ning/http/client/providers/netty/chmv8/Striped64.java
License:       ASL 2.0 and CC0 and EPL
URL:           https://github.com/AsyncHttpClient/async-http-client
Source0:       https://github.com/AsyncHttpClient/async-http-client/archive/async-http-client-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-fileupload:commons-fileupload)
BuildRequires: mvn(commons-io:commons-io)
# netty:3.10.6.Final
BuildRequires: mvn(io.netty:netty:3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.eclipse.jetty:jetty-security:8.1)
BuildRequires: mvn(org.eclipse.jetty:jetty-server:8.1)
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet:8.1)
BuildRequires: mvn(org.eclipse.jetty:jetty-servlets:8.1)
BuildRequires: mvn(org.eclipse.jetty:jetty-websocket:8.1)
BuildRequires: mvn(org.glassfish.grizzly:connection-pool)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-http-server)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-websockets)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.testng:testng)

# Multiple version 1.5, 1.7, 1.8
Provides:      bundled(jsr166e) = 1.8

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Async Http Client library purpose is to allow Java applications to
easily execute HTTP requests and asynchronously process the HTTP
responses. The Async HTTP Client library is simple to use.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n async-http-client-async-http-client-%{version}

# Unneeded extensions
%pom_xpath_remove pom:build/pom:extensions
# Not available plugin
%pom_remove_plugin :animal-sniffer-maven-plugin
# Unneeded tasks
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-scm-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

%pom_xpath_set pom:properties/pom:netty.version 3
%pom_change_dep org.eclipse.jetty: ::8.1

# org.apache.tomcat:catalina:6.0.29
# org.apache.tomcat:coyote:6.0.29
%pom_remove_dep org.apache.tomcat:
rm src/test/java/com/ning/http/client/async/WebDavBasicTest.java \
 src/test/java/com/ning/http/client/async/netty/NettyWebDavBasicTest.java

# java.util.concurrent.ExecutionException: java.io.IOException: Connection is closed
rm src/test/java/com/ning/http/client/async/grizzly/GrizzlyBasicHttpsTest.java
# java.lang.NullPointerException
rm src/test/java/com/ning/http/client/async/netty/FeedableBodyGeneratorTest.java
# java.lang.AssertionError: expected [1] but found [0]
rm src/test/java/com/ning/http/client/async/grizzly/GrizzlyMaxTotalConnectionTest.java
rm src/test/java/com/ning/http/client/async/netty/NettyMaxTotalConnectionTest.java
# java.util.concurrent.ExecutionException: javax.net.ssl.SSLException: Received fatal alert: internal_error
rm -r src/test/java/com/ning/http/client/async/grizzly
rm -r src/test/java/com/ning/http/client/async/netty

%mvn_compat_version com.ning:async-http-client %{version} 1.9 1

%mvn_file com.ning:async-http-client %{name}

%build

%mvn_build -- -Poffline-testing

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12053 |21mr|at-3.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Job spooling tools
Name:		at
Version:	3.2.2
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://qa.mandriva.com
Source0:	http://ftp.debian.org/debian/pool/main/a/at/at_%{version}.orig.tar.gz
Source2:	pam.atd
Source3:	atd.sysconfig
Source4:	atd.service
Patch0:		at-3.1.7-sigchld.patch
Patch1:		at-3.1.23-shell.patch
Patch2:		at-3.2.2-makefile.patch
Patch3:		at-3.1.14-parallel-build.patch
BuildRequires:	bison
BuildRequires:	cronie
BuildRequires:	flex
BuildRequires:	sendmail-command
BuildRequires:	systemd-units
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(systemd)
Requires:	common-licenses
Requires(post,preun):	coreutils
Requires(post,preun):	rpm-helper
Requires(post,preun):	systemd-units
Conflicts:	crontabs <= 1.5

%description
At and batch read commands from standard input or from a specified file.
At allows you to specify that a command will be run at a particular time
(now or a specified time in the future).  Batch will execute commands
when the system load levels drop to a particular level.  Both commands
use /bin/sh to run the commands.

You should install the at package if you need a utility that will do
time-oriented job control.  Note: you should use crontab instead, if it is
a recurring job that will need to be repeated at the same time every
day/week/etc.

%files
%doc ChangeLog Problems README Copyright timespec
%attr(0640,root,daemon) %config(noreplace) %{_sysconfdir}/at.deny
%config(noreplace) %{_sysconfdir}/sysconfig/atd
%attr(0644,root,root) %{_unitdir}/atd.service
%{_sysconfdir}/pam.d/atd
%attr(0770,daemon,daemon) %dir /var/spool/at
%attr(0660,daemon,daemon) %verify(not md5 size mtime) %ghost /var/spool/at/.SEQ
%attr(0770,daemon,daemon) %dir /var/spool/at/spool
%{_sbindir}/atrun
%{_sbindir}/atd
%attr(6755,daemon,daemon) %{_bindir}/batch
%attr(6755,daemon,daemon) %{_bindir}/atrm
%attr(6755,daemon,daemon) %{_bindir}/at
%{_bindir}/atq
%{_datadir}/at/batch-job
%{_mandir}/*/atrun.8*
%{_mandir}/*/atd.8*
%{_mandir}/*/at.1*
%{_mandir}/*/atq.1*
%{_mandir}/*/atrm.1*
%{_mandir}/*/batch.1*
%{_mandir}/*/at.allow.5*
%{_mandir}/*/at.deny.5*

%post
touch /var/spool/at/.SEQ
chmod 660 /var/spool/at/.SEQ
chown daemon.daemon /var/spool/at/.SEQ

if [ "$1" = "1" ]; then
    systemctl enable atd.service >/dev/null 2>&1 || :
fi

%_post_service atd

%preun
%_preun_service atd

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .sigchld~
%patch1 -p1 -b .shell~
%patch2 -p1 -b .makefile~
%patch3 -p0 -b .parallel~

%build
autoreconf -fi
%serverbuild_hardened

%configure \
	--with-atspool=/var/spool/at/spool \
	--with-jobdir=/var/spool/at

%make

%install
mkdir -p %{buildroot}/{%{_bindir},%{_sbindir},%{_mandir}/man{1,5,8}}

make install IROOT=%{buildroot} DAEMON_USERNAME=`id -nu` \
	DAEMON_GROUPNAME=`id -ng` \
    atdocdir=%{_docdir}/at

echo > %{buildroot}/%{_sysconfdir}/at.deny

mkdir -p %{buildroot}/%{_sysconfdir}/pam.d
install -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/pam.d/atd

install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/atd

#(tpg) install systemd initscript
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/atd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12054 |21mr|atf-0.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global libatfc_somajor 1
%global libatfcxx_somajor 2
%global libatfc %mklibname %{name}-c %{libatfc_somajor}
%global devatfc %mklibname %{name}-c -d
%global libatfcxx %mklibname %{name}-c++ %{libatfcxx_somajor}
%global devatfcxx %mklibname %{name}-c++ -d

Summary: Automated Testing Framework
Name: atf
Version: 0.21
Release: 1
License: BSD
Group: Development/Tools
URL: http://code.google.com/p/kyua/wiki/ATF
Source0: https://github.com/jmmv/atf/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: README.Fedora

%define _testsdir %{_libexecdir}/atf/tests

%define common_description The Automated Testing Framework (ATF) is a collection of libraries to \
implement test programs in a variety of languages.  At the moment, ATF \
offers C, C++ and POSIX shell bindings with which to implement tests. \
These bindings all offer a similar set of functionality and any test \
program written with them exposes a consistent user interface. \
\
ATF-based test programs rely on a separate runtime engine to execute them. \
The runtime engine is in charge of isolating the test programs from the \
rest of the system to ensure that their results are deterministic and that \
they cannot affect the running system.  The runtime engine is also \
responsible for gathering the results of all tests and composing reports. \
The current runtime of choice is Kyua.

%description
%{common_description}
#----------------------------------------------------------------------------------------------------

# Ideally, we would ship one tests package for every component, namely
# libatf-c-tests, libatf-c++-tests and atf-sh-tests.  However, the test
# suite of ATF has not been written with this in mind, and the tests of one
# component often have dependencies on the rest of the components.  It is
# much easier to ship a single package with the whole test suite rather
# than attempting to fight this fact.
%package tests
Summary: Automated Testing Framework - Test suite
Requires: %{libatfc} = %{version}-%{release}
Requires: %{libatfcxx} = %{version}-%{release}
Requires: atf-sh = %{version}-%{release}
Requires: %{devatfc} = %{version}-%{release}
Requires: %{devatfcxx} = %{version}-%{release}
Requires: atf-sh-devel = %{version}-%{release}

%description tests
%{common_description}

This package installs the run-time tests for all the components of ATF, which
include tests for the C, C++ and POSIX shell libraries and the run-time tools.
Please see the README.Fedora file in the documentation directory for further
details on how to run the installed tests.

%files tests
%doc README.Fedora
%{_testsdir}
#----------------------------------------------------------------------------------------------------

%package -n %{libatfc}
Summary: Automated Testing Framework - C bindings
Group: System/Libraries

%description -n %{libatfc}
%{common_description}

This package provides the run-time libraries to run tests that use the
ATF C bindings.

%files -n %{libatfc}
%{_libdir}/libatf-c.so.%{libatfc_somajor}*
%{_datadir}/man/man1/atf-test-program.1*
%{_datadir}/man/man4/atf-test-case.4*
%{_datadir}/man/man7/atf.7*
#----------------------------------------------------------------------------------------------------

%package -n %{devatfc}
Summary: Automated Testing Framework - C bindings (headers)
Group: Development/C
Provides: libatf-c-devel = %{version}-%{release}
Provides: libatf-c-devel%{?_isa} = %{version}-%{release}
Requires: %{libatfc} = %{version}-%{release}

%description -n %{devatfc}
%{common_description}

This package provides the libraries, header files and documentation to
develop tests that use the ATF C bindings.

%files -n %{devatfc}
%{_datadir}/aclocal/atf-c.m4
%{_datadir}/aclocal/atf-common.m4
%{_includedir}/atf-c.h
%{_includedir}/atf-c
%{_libdir}/libatf-c.so
%{_libdir}/pkgconfig/atf-c.pc
%{_mandir}/man3/atf-c.3*
%{_mandir}/man3/atf-c-api.3*
#----------------------------------------------------------------------------------------------------

%package -n %{libatfcxx}
Summary: Automated Testing Framework - C++ bindings
Group: System/Libraries
Requires: %{libatfc} = %{version}-%{release}

%description -n %{libatfcxx}
%{common_description}

This package provides the run-time libraries to run tests that use the
ATF C++ bindings.

%files -n %{libatfcxx}
%{_libdir}/libatf-c++.so.%{libatfcxx_somajor}*
#----------------------------------------------------------------------------------------------------

%package -n %{devatfcxx}
Summary: Automated Testing Framework - C++ bindings (headers)
Group: Development/C++
Provides: libatf-c++-devel = %{version}-%{release}
Provides: libatf-c++-devel%{?_isa} = %{version}-%{release}
Requires: %{libatfc} = %{version}-%{release}
Requires: %{devatfc} = %{version}-%{release}
Requires: %{libatfcxx} = %{version}-%{release}

%description -n %{devatfcxx}
%{common_description}

This package provides the libraries, header files and documentation to
develop applications that use the ATF C++ bindings.

%files -n %{devatfcxx}
%{_datadir}/aclocal/atf-c++.m4
%{_includedir}/atf-c++.hpp
%{_includedir}/atf-c++
%{_libdir}/libatf-c++.so
%{_libdir}/pkgconfig/atf-c++.pc
%{_mandir}/man3/atf-c++.3*
%{_mandir}/man3/atf-c++-api.3*
#----------------------------------------------------------------------------------------------------

%package -n atf-sh
Summary: Automated Testing Framework - POSIX shell bindings
Requires: %{libatfcxx} = %{version}-%{release}
# Because urpmi is broken and can't handle file deps...
Provides: %{_bindir}/atf-sh

%description -n atf-sh
%{common_description}

This package provides the run-time libraries to run tests that use the
ATF POSIX shell bindings.

%files -n atf-sh
%{_bindir}/atf-sh
# Cheat a bit: While this directory should be supposedly owned by the main
# 'atf' package, 'atf' depends on atf-sh.  Therefore, it's easier to handle
# ownership here.
%{_datadir}/atf
%{_libexecdir}/atf-check
%{_mandir}/man1/atf-sh.1*
#----------------------------------------------------------------------------------------------------

%package -n atf-sh-devel
Summary: Automated Testing Framework - POSIX shell bindings (headers)
Requires: atf-sh = %{version}-%{release}

%description -n atf-sh-devel
%{common_description}

This package provides the supporting files and documentation to develop
applications that use the ATF POSIX shell bindings.

%files -n atf-sh-devel
%{_datadir}/aclocal/atf-sh.m4
%{_libdir}/pkgconfig/atf-sh.pc
%{_mandir}/man1/atf-check.1*
%{_mandir}/man3/atf-sh.3*
%{_mandir}/man3/atf-sh-api.3*
#----------------------------------------------------------------------------------------------------

%prep
%setup -q

# Put the README.Fedora file in the top-level directory of the source tree so
# that the %doc call below can pick it up.
cp -p %{SOURCE1} README.Fedora

%build
autoreconf -fiv
%configure INSTALL="/usr/bin/install -p" --disable-static
%make pkgtestsdir=%{_testsdir} testsdir=%{_testsdir}

%check
make check

%install
make install DESTDIR=%{buildroot} doc_DATA= \
             pkgtestsdir=%{_testsdir} testsdir=%{_pkgtestsdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12055 |21mr|atinject-1-31.20100611svn86
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           atinject
Version:        1
Release:        31.20100611svn86
Summary:        Dependency injection specification for Java (JSR-330)
License:        ASL 2.0
URL:            http://code.google.com/p/atinject/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# latest release doesn't generate javadocs and there is no source
# tarball with pom.xml or ant build file
#
# svn export -r86 http://atinject.googlecode.com/svn/trunk atinject-1
# rm -rf atinject-1/{lib,javadoc}/
# tar caf atinject-1.tar.xz atinject-1
Source0:        %{name}-%{version}.tar.xz
# These manifests based on the ones shipped by eclipse.org
Source1:        MANIFEST.MF
Source2:        MANIFEST-TCK.MF
Source3:        http://www.apache.org/licenses/LICENSE-2.0.txt

# Compile with source/target 1.5
Patch0:         %{name}-target-1.5.patch

BuildRequires:  javapackages-local
BuildRequires:  java-devel
BuildRequires:  junit

%description
This package specifies a means for obtaining objects in such a way as
to maximize reusability, testability and maintainability compared to
traditional approaches such as constructors, factories, and service
locators (e.g., JNDI). This process, known as dependency injection, is
beneficial to most nontrivial applications.

%package        tck
Summary:        TCK for testing %{name} compatibility with JSR-330
Requires:       %{name} = %{version}-%{release}
Requires:       junit

%description    tck
%{summary}.

%{?javadoc_package}

%prep
%setup -q
cp %{SOURCE3} LICENSE
mkdir lib
build-jar-repository -p lib junit

%patch0 -p1

# Fix dep in TCK pom
sed -i -e 's/pom\.groupId/project.groupId/' tck-pom.xml

# J2EE API symlinks
%mvn_file :javax.inject atinject javax.inject/atinject

# TCK sub-package
%mvn_file :javax.inject-tck atinject-tck
%mvn_package :javax.inject-tck tck

%build
set -e
alias rm=:
alias xargs=:
alias javadoc='javadoc -Xdoclint:none'
. ./build.sh

# Inject OSGi manifests required by Eclipse.
jar umf %{SOURCE1} build/dist/javax.inject.jar
jar umf %{SOURCE2} build/tck/dist/javax.inject-tck.jar

%mvn_artifact pom.xml build/dist/javax.inject.jar
%mvn_artifact tck-pom.xml build/tck/dist/javax.inject-tck.jar

mv build/tck/javadoc build/javadoc/tck

%install
%mvn_install -J build/javadoc

%files -f .mfiles
%license LICENSE

%files tck -f .mfiles-tck


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12056 |21mr|atkmm1.6-2.28.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname	atkmm
%define api 1.6
%define major 1
%define libname %mklibname %{pkgname} %{api} %{major}
%define devname %mklibname %{pkgname} %{api} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

#error aclocal not find convert_base.m4 from glibmm
%define _disable_rebuild_configure 1

Summary:	C++ interface for accessibility library Atk
Name:		atkmm1.6
Version:	2.28.2
Release:	5
#gw lib is LGPL, tool is GPL
License:	LGPLv2.1+ and GPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/atkmm
Source0:	https://download.gnome.org/sources/atkmm/%{url_ver}/%{pkgname}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(atk)

%description
Atkmm provides a C++ interface to the Atk accessibility library.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for accessibility library Atk
Group:		System/Libraries
Provides:	%{pkgname}%{api} = %{EVRD}

%description -n %{libname}
Atkmm provides a C++ interface to the Atk accessibility library.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains the library needed to run programs dynamically
linked with %{pkgname}.

%files -n %{libname}
%{_libdir}/lib%{pkgname}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{pkgname}%{api}-devel = %{EVRD}
Requires:	pkgconfig(glibmm-2.4)

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{pkgname}.

%files -n %{devname}
%doc ChangeLog AUTHORS COPYING NEWS README
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{pkgname}-%{api}/

#----------------------------------------------------------------------------

%package doc
Summary:	Atkmm documentation
Group:		Documentation

%description doc
Atkmm provides a C++ interface to the Atk accessibility library. 

Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for Atkmm. You can readily read
this documentation with devhelp, a documentation reader.

%files doc
%doc %{_datadir}/doc/%{pkgname}-%{api}/
%doc %{_datadir}/devhelp/books/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
%meson -Dbuild-documentation=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12057 |21mr|atkmm-2.36.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.36
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

#error aclocal not find convert_base.m4 from glibmm
%define _disable_rebuild_configure 1

Summary:	C++ interface for accessibility library Atk
Name:		atkmm
Version:	2.36.1
Release:	7
#gw lib is LGPL, tool is GPL
License:	LGPLv2.1+ and GPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/atkmm
Source0:	https://download.gnome.org/sources/atkmm/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(glibmm-2.68)
BuildRequires:	pkgconfig(atk)

%description
Atkmm provides a C++ interface to the Atk accessibility library.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for accessibility library Atk
Group:		System/Libraries
Provides:	%{name}%{api} = %{EVRD}

%description -n %{libname}
Atkmm provides a C++ interface to the Atk accessibility library.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libatkmm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}
Requires:	pkgconfig(glibmm-2.4)

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{name}.

%files -n %{devname}
%doc ChangeLog AUTHORS COPYING NEWS README
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/atkmm-%{api}/

#----------------------------------------------------------------------------

%package doc
Summary:	Atkmm documentation
Group:		Documentation

%description doc
Atkmm provides a C++ interface to the Atk accessibility library. 

Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for Atkmm. You can readily read
this documentation with devhelp, a documentation reader.

%files doc
%doc %{_datadir}/doc/atkmm-%{api}/
%doc %{_datadir}/devhelp/books/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dbuild-documentation=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12058 |21mr|at-spi2-core-2.45.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define bapi 2.0
%define major 0
%define gir_major 2.0
%define libname %mklibname atspi %{major}
%define alibname %mklibname atk %{api} %{major}
%define blibname %mklibname atk-bridge %{bapi} %{major}
%define girname %mklibname atspi-gir %{gir_major}
%define agirname %mklibname atk-gir %{api}
%define devname %mklibname atspi -d

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Protocol definitions and daemon for D-Bus at-spi
Name:		at-spi2-core
Version:	2.45.1
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/at-spi2-core
Source0:	https://download.gnome.org/sources/at-spi2-core/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	dbus-broker
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	meson
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)
Requires:	dbus
Provides:	atk%{api}-common = %{EVRD}
Provides:	at-spi2-atk = %{EVRD}
Obsoletes:	atk%{api}-common <= 2.38.0
Obsoletes:	at-spi2-atk <= 2.38.0

%description
at-spi allows assistive technologies to access GTK-based
applications. Essentially it exposes the internals of applications for
automation, so tools such as screen readers, magnifiers, or even
scripting interfaces can query and interact with GUI controls.

This version of at-spi is a major break from previous versions.
It has been completely rewritten to use D-Bus rather than
ORBIT / CORBA for its transport protocol.

%files -f %{name}.lang
%doc MAINTAINERS README.md
%config(noreplace) %{_datadir}/defaults/at-spi2/accessibility.conf
%{_datadir}/dbus-1/accessibility-services/*.service
%{_datadir}/dbus-1/services/org.*.service
%dir %{_datadir}/defaults/at-spi2/
%dir %{_libdir}/gtk-2.0
%dir %{_libdir}/gtk-2.0/modules
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/at-spi2-atk.desktop
%{_libdir}/gtk-2.0/modules/libatk-bridge.so
%{_libexecdir}/at-spi2-registryd
%{_libexecdir}/at-spi-bus-launcher
%{_sysconfdir}/xdg/autostart/at-spi-dbus-bus.desktop
%{_sysconfdir}/xdg/Xwayland-session.d/00-at-spi
%{_userunitdir}/at-spi-dbus-bus.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains libraries used by %{name}.

%files -n %{libname}
%{_libdir}/libatspi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{alibname}
Summary:	Accessibility features for Gtk+
Group:		System/Libraries
Recommends:	%{name} = %{EVRD}
Provides:	libatk%{api} = %{EVRD}
Provides:	libatk = %{EVRD}
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides: atk = %{EVRD}
Obsoletes:	%{alibname} <= 2.38.0

%description -n %{alibname}
Accessibility means providing system infrastructure that allows add-on
assistive software to transparently provide specalized input and ouput
capabilities. For example, screen readers allow blind users to navigate
through applications, determine the state of controls, and read text via
text to speech conversion. On-screen keyboards replace physical
keyboards, and head-mounted pointers replace mice.

%files -n %{alibname}
%{_libdir}/libatk-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{blibname}
Summary:	Shared library for at-spi2-atk
Group:		System/Libraries
Obsoletes:	%{blibname} <= 2.38.0

%description -n %{blibname}
Shared library for at-spi2-atk.

%files -n %{blibname}
%{_libdir}/libatk-bridge-%{bapi}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Atspi-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{agirname}
Summary:	GObject introspection interface library for atk
Group:		System/Libraries
Requires:	%{alibname} = %{EVRD}
Obsoletes:	%{agirname} <= 2.38.0

%description -n %{agirname}
GObject introspection interface library for atk.

%files -n %{agirname}
%{_libdir}/girepository-1.0/Atk-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files with %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{alibname} = %{EVRD}
Requires:	%{blibname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{agirname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{mklibname atk-bridge %{bapi} -d} = %{EVRD}
Provides:	%{mklibname atk%{api} -d} = %{EVRD}
Obsoletes:	%{mklibname atk-bridge %{bapi} -d} <= 2.38.0
Obsoletes:	%{mklibname atk%{api} -d} <= 2.38.0

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with %{name}.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/*
%{_datadir}/gir-1.0/Atk-%{api}.gir
%{_datadir}/gir-1.0/Atspi-%{gir_major}.gir
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Ddocs=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12059 |21mr|attica-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	Open Collaboration Service providers library from KDE Frameworks 5
Name:		attica
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Open Collaboration Service providers library from KDE Frameforks 5.

%files
%{_kde5_datadir}/qlogging-categories5/attica.categories
%{_kde5_datadir}/qlogging-categories5/attica.renamecategories

#--------------------------------------------------------------------

%define kf5attica_major 5
%define libkf5attica %mklibname kf5attica %{kf5attica_major}

%package -n %{libkf5attica}
Summary:	Open Collaboration Service providers shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5attica}
Open Collaboration Service providers shared library.

%files -n %{libkf5attica}
%{_kde5_libdir}/libKF5Attica.so.%{kf5attica_major}*

#--------------------------------------------------------------------

%define devkf5attica %mklibname kf5attica -d

%package -n %{devkf5attica}
Summary:	Development files for Open Collaboration Service providers library
Group:		Development/KDE and Qt
Requires:	%{libkf5attica} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5attica-devel = %{version}

%description -n %{devkf5attica}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5attica}
%{_kde5_includedir}/KF5/Attica/
%{_kde5_libdir}/libKF5Attica.so
%{_kde5_libdir}/cmake/KF5Attica
%{_kde5_libdir}/pkgconfig/libKF5Attica.pc
%{_kde5_mkspecsdir}/*.pri

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12060 |21mr|attr-2.4.48-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Utility for managing filesystem extended attributes
Name:		attr
Version:	2.4.48
Release:	3
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://savannah.nongnu.org/projects/attr
Source0:	http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
Patch0:		attr-2.4.48-test-perl-5.26.patch
Patch1:		0002-attr-2.4.48-switch-back-to-syscall.patch
BuildRequires:	gettext-devel

%description
A set of tools for manipulating extended attributes on filesystem
objects, in particular getfattr(1) and setfattr(1).
An attr(1) command is also provided which is largely compatible
with the SGI IRIX tool of the same name.

%files -f %{name}.lang
%doc README
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for libattr
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libattr.

%files -n %{libname}
/%{_lib}/libattr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Extended attribute static libraries and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# for <sys/xattr.h> which <attr/xattr.h> is symlinked to
Requires:	glibc-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the libraries and header files needed to
develop programs which make use of extended attributes.
For Linux programs, the documented system call API is the
recommended interface, but an SGI IRIX compatibility interface
is also provided.

%files -n %{devname}
%doc README
%config %{_sysconfdir}/xattr.conf
%{_libdir}/libattr.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
chmod +rw -R .

%build
%configure \
	OPTIMIZER="%{optflags} -Os" \
	--disable-static \
	--libdir=/%{_lib}
%make_build

%install
%make_install DESTDIR=%{buildroot}

# fix conflict with man-pages-1.56
rm -rf %{buildroot}{%{_mandir}/man2,%{_datadir}/doc}

# Remove unpackaged symlinks
# TODO: finish up spec-helper script to automatically deal with
rm -f %{buildroot}/%{_lib}/libattr.{a,la,so}
mkdir -p %{buildroot}%{_libdir}
cd %{buildroot}%{_libdir}
ln -sf ../../%{_lib}/libattr.so.%{major}.* libattr.so
cd -
mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
chmod +x %{buildroot}/%{_lib}/libattr.so.%{major}.*

# temporarily provide attr/xattr.h symlink until users are migrated (#1601482)
ln -fs ../sys/xattr.h $RPM_BUILD_ROOT%{_includedir}/attr/xattr.h

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12061 |21mr|audacious-4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	core_major 5
%define	gui_major 5
%define	qt_major 2
%define	tag_major 3
%define	libaudcore %mklibname audcore %{core_major}
%define	libaudgui %mklibname audgui %{gui_major}
%define	libaudqt %mklibname audqt %{qt_major}
%define	libaudtag %mklibname audtag %{tag_major}
%define	devname %mklibname %{name} -d

Summary:	A versatile and handy media player
Name:		audacious
Version:	4.2
Release:	2
Epoch:		5
License:	GPLv3+
Group:		Sound
Url:		https://audacious-media-player.org/
Source0:	https://distfiles.audacious-media-player.org/%{name}-%{version}.tar.bz2
# TODO: Swtich to meson build system
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(glib-2.0) >= 2.32
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libguess)
BuildRequires:	pkgconfig(libmcs)
BuildRequires:	pkgconfig(Qt5Core) >= 5.2
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	%{name}-common = %{EVRD}
Provides:	%{name}-qt = %{EVRD}

%description
Audacious is a media player based on the BMP music playing application. Its
primary goals are usability and usage of current desktop standards.

%files
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------

%package gtk
Summary:	A versatile and handy media player 
Group:		Sound
Requires:	%{name}-common = %{EVRD}

%description gtk
Audacious is a media player based on the BMP music playing application. Its
primary goals are usability and usage of current desktop standards.
This package contains the GTK GUI flavor.

%files gtk
%{_datadir}/applications/%{name}-gtk.desktop

#-----------------------------------------------------------------------------

%package common
Summary:	A versatile and handy media player 
Group:		Sound
Requires:	%{name}-pulse
Requires:	%{name}-plugins
# For MIDI playing
Recommends:		fluidsynth

%description common
Audacious is a media player based on the BMP music playing application. Its
primary goals are usability and usage of current desktop standards.
This package contains the QT5 GUI flavor.

%files common -f %{name}.lang
%doc AUTHORS COPYING
%{_bindir}/%{name}
%{_bindir}/audtool
%{_datadir}/%{name}
%{_datadir}/appdata/%{name}.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%package -n %{libaudcore}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}audacious5 < 5:3.9-2

%description -n %{libaudcore}
Audacious is a media player based on the BMP music playing application.
Its primary goals are usability and usage of current desktop standards.
This package contains the library needed by %{name}.

%files -n %{libaudcore}
%doc COPYING
%{_libdir}/libaudcore.so.%{core_major}*

#-----------------------------------------------------------------------------

%package -n %{libaudgui}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}audacious5 < 5:3.9-2

%description -n %{libaudgui}
Audacious is a media player based on the BMP music playing application.
Its primary goals are usability and usage of current desktop standards.
This package contains the library needed by %{name}.

%files -n %{libaudgui}
%doc COPYING
%{_libdir}/libaudgui.so.%{gui_major}*

#-----------------------------------------------------------------------------

%package -n %{libaudqt}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}audacious5 < 5:3.9-2

%description -n %{libaudqt}
Audacious is a media player based on the BMP music playing application.
Its primary goals are usability and usage of current desktop standards.
This package contains the library needed by %{name}.

%files -n %{libaudqt}
%doc COPYING
%{_libdir}/libaudqt.so.%{qt_major}*

#-----------------------------------------------------------------------------

%package -n %{libaudtag}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}audacious4 < 5:3.9
Conflicts:	%{_lib}audacious5 < 5:3.9-2
Obsoletes:	%{_lib}audacious4 < 5:3.9
Obsoletes:	%{_lib}audacious5 < 5:3.9-2

%description -n %{libaudtag}
Audacious is a media player based on the BMP music playing application.
Its primary goals are usability and usage of current desktop standards.
This package contains the library needed by %{name}.

%files -n %{libaudtag}
%doc COPYING
%{_libdir}/libaudtag.so.%{tag_major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libaudcore} = %{EVRD}
Requires:	%{libaudgui} = %{EVRD}
Requires:	%{libaudqt} = %{EVRD}
Requires:	%{libaudtag} = %{EVRD}
Provides:		lib%{name}-devel = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
Audacious is a media player based on the BMP music playing application.
Its primary goals are usability and usage of current desktop standards.
This package contains the files needed for developing applications
which use %{name}.

%files -n %{devname}
%doc AUTHORS COPYING
%{_includedir}/%{name}
%{_includedir}/libaudcore
%{_includedir}/libaudgui
%{_includedir}/libaudqt
%{_libdir}/libaud*.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure \
	--disable-rpath \
	--enable-libarchive
%make


%install
%makeinstall_std

# The Qt5 interface is now the default, fix the provided .desktop file
# and create one for the GTK flavor by duplicating and adapting the original one
cp %{buildroot}%{_datadir}/applications/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}-gtk.desktop
#
desktop-file-edit \
	--set-key="Exec" \
	--set-value="%{name} %U" \
	--remove-category=GTK \
	--add-category=Qt \
	--add-not-show-in="GNOME;MATE;XFCE;" \
	--remove-key="SingleMainWindow" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop
#
desktop-file-edit \
	--set-key="Exec" \
	--set-value="%{name} --gtk %U" \
	--add-not-show-in="KDE;LXQt;X-LXQt" \
	--remove-key="SingleMainWindow" \
	%{buildroot}%{_datadir}/applications/%{name}-gtk.desktop

# Install the contributed appdata.xml file
install -d %{buildroot}%{_datadir}/appdata
install -m 644 contrib/%{name}.appdata.xml %{buildroot}%{_datadir}/appdata

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12062 |21mr|audacious-plugins-4.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Keep in sync with the main package version number
%define	audacious_minver	4.2

Summary:	Audacious Media Player core plugins
Name:		audacious-plugins
Version:	4.2
Release:	4
Epoch:		6
License:	GPLv2+
Group:		Sound
Url:		https://audacious-media-player.org/
Source0:	https://distfiles.audacious-media-player.org/%{name}-%{version}.tar.bz2
# TODO: Swtich to meson build system
BuildRequires:	gnome-music
BuildRequires:	lame-devel
BuildRequires:	libfaad2-static-devel
BuildRequires:	pkgconfig(alsa) >= 1.0.16
BuildRequires:	pkgconfig(adplug)
BuildRequires:	pkgconfig(audacious) >= %{audacious_minver}
BuildRequires:	pkgconfig(bluez) >= 2.22
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(faad2)
BuildRequires:	pkgconfig(flac) >= 1.2.1
BuildRequires:	pkgconfig(fluidsynth) >= 2.2.0
BuildRequires:	pkgconfig(gdk-pixbuf-2.0) >= 2.26
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(jack) >= 1.9.7
BuildRequires:	pkgconfig(libavcodec) >= 56.60.100
BuildRequires:	pkgconfig(libavformat) >= 56.40.101
BuildRequires:	pkgconfig(libavutil) >= 53.31.100
BuildRequires:	pkgconfig(libbinio)
BuildRequires:	pkgconfig(libbs2b) >= 3.0.0
BuildRequires:	pkgconfig(libcddb) >= 1.2.1
BuildRequires:	pkgconfig(libcdio) >= 0.70
BuildRequires:	pkgconfig(libcue) >= 2.0
BuildRequires:	pkgconfig(libcurl) >= 7.9.7
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgme)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libmms) >= 0.3
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libmpg123) >= 1.12
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(libnotify) >= 0.7
BuildRequires:	pkgconfig(libpulse) >= 0.9.5
BuildRequires:	pkgconfig(libsidplayfp) >= 1.0
BuildRequires:	pkgconfig(libsidplay2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(neon) >= 0.27
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL) >= 5.4
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(shout)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(soxr)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(vorbis) >= 1.0
BuildRequires:	pkgconfig(wavpack) >= 4.31
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)
#gw ffmpeg plugin:
Provides:		audacious-musepack = %{version}
Requires:	audacious >= %{audacious_minver}
%rename		audacious-smb
%rename		audacious-fluidsynth

%description
Audacious is a media player based on the BMP music playing application.
Its primary goals are usability and usage of current desktop standards.
This contains the basic plugin distribution. Audacious is useless without
them.

%files -f %{name}.lang
%license COPYING
%dir %{_libdir}/audacious
%dir %{_libdir}/audacious/Container
%{_libdir}/audacious/Container/asx.so
%{_libdir}/audacious/Container/asx3.so
%{_libdir}/audacious/Container/audpl.so
%{_libdir}/audacious/Container/cue.so
%{_libdir}/audacious/Container/m3u.so
%{_libdir}/audacious/Container/pls.so
%{_libdir}/audacious/Container/xspf.so
%dir %{_libdir}/audacious/Effect/
%{_libdir}/audacious/Effect/bs2b.so
%{_libdir}/audacious/Effect/bitcrusher.so
%{_libdir}/audacious/Effect/compressor.so
%{_libdir}/audacious/Effect/crossfade.so
%{_libdir}/audacious/Effect/crystalizer.so
%{_libdir}/audacious/Effect/echo.so
%{_libdir}/audacious/Effect/ladspa.so
%{_libdir}/audacious/Effect/mixer.so
%{_libdir}/audacious/Effect/resample.so
%{_libdir}/audacious/Effect/silence-removal.so
%{_libdir}/audacious/Effect/sox-resampler.so
%{_libdir}/audacious/Effect/speed-pitch.so
%{_libdir}/audacious/Effect/stereo.so
%{_libdir}/audacious/Effect/voice_removal.so
%dir %{_libdir}/audacious/General
%{_libdir}/audacious/General/alarm.so
%{_libdir}/audacious/General/albumart.so
%{_libdir}/audacious/General/albumart-qt.so
%{_libdir}/audacious/General/aosd.so
%{_libdir}/audacious/General/cd-menu-items.so
%{_libdir}/audacious/General/delete-files.so
%{_libdir}/audacious/General/gtkui.so
%{_libdir}/audacious/General/hotkey.so
%{_libdir}/audacious/General/lirc.so
%{_libdir}/audacious/General/lyricwiki-qt.so
%{_libdir}/audacious/General/mpris2.so
%{_libdir}/audacious/General/notify.so
%{_libdir}/audacious/General/playlist-manager.so
%{_libdir}/audacious/General/playlist-manager-qt.so
%{_libdir}/audacious/General/qthotkey.so
%{_libdir}/audacious/General/qtui.so
%{_libdir}/audacious/General/scrobbler.so
%{_libdir}/audacious/General/search-tool.so
%{_libdir}/audacious/General/search-tool-qt.so
%{_libdir}/audacious/General/skins.so
%{_libdir}/audacious/General/skins-qt.so
%{_libdir}/audacious/General/song-info-qt.so
%{_libdir}/audacious/General/statusicon.so
%{_libdir}/audacious/General/statusicon-qt.so
%{_libdir}/audacious/General/song_change.so
%dir %{_libdir}/audacious/Input
%{_libdir}/audacious/Input/ffaudio.so
%{_libdir}/audacious/Input/amidi-plug.so
%{_libdir}/audacious/Input/cdaudio-ng.so
%{_libdir}/audacious/Input/console.so
%{_libdir}/audacious/Input/flacng.so
%{_libdir}/audacious/Input/madplug.so
%{_libdir}/audacious/Input/metronom.so
%{_libdir}/audacious/Input/modplug.so
%{_libdir}/audacious/Input/psf2.so
%{_libdir}/audacious/Input/sndfile.so
%{_libdir}/audacious/Input/tonegen.so
%{_libdir}/audacious/Input/vorbis.so
%{_libdir}/audacious/Input/vtx.so
%{_libdir}/audacious/Input/xsf.so
%{_libdir}/audacious/Input/aac-raw.so
%dir %{_libdir}/audacious/Output
%{_libdir}/audacious/Output/alsa.so
%{_libdir}/audacious/Output/filewriter.so
%{_libdir}/audacious/Output/oss4.so
%{_libdir}/audacious/Output/qtaudio.so
%{_libdir}/audacious/Output/sdlout.so
%{_libdir}/audacious/Output/sndio-ng.so
%dir %{_libdir}/audacious/Transport/
%{_libdir}/audacious/Transport/gio.so
%{_libdir}/audacious/Transport/mms.so
%{_libdir}/audacious/Transport/neon.so
%dir %{_libdir}/audacious/Visualization
%{_libdir}/audacious/Visualization/blur_scope.so
%{_libdir}/audacious/Visualization/blur_scope-qt.so
%{_libdir}/audacious/Visualization/cairo-spectrum.so
%{_libdir}/audacious/Visualization/gl-spectrum.so
%{_libdir}/audacious/Visualization/gl-spectrum-qt.so
%{_libdir}/audacious/Visualization/qt-spectrum.so
%{_libdir}/audacious/Visualization/vumeter-qt.so
%{_datadir}/audacious

#-----------------------------------------------------------------------------

%package -n audacious-wavpack
Group:		Sound
Summary:	Wavpack input plugin for Audacious
Requires:	audacious >= %{audacious_minver}

%description -n audacious-wavpack
This is a wavpack input plugin for Audacious based on libwavpack.

%files -n audacious-wavpack
%license COPYING
%{_libdir}/audacious/Input/wavpack.so

#-----------------------------------------------------------------------------

%package -n audacious-jack
Group:		Sound
Summary:	Audacious output plugin for the jack sound server
Requires:	audacious >= %{audacious_minver}

%description -n audacious-jack
Audacious audio output plugin for the jack audio server.

%files -n audacious-jack
%license COPYING
%{_libdir}/audacious/Output/jack-ng.so

#-----------------------------------------------------------------------------

%package -n audacious-pulse
Group:		Sound
Summary:	Audacious output plugin for the Pulseaudio sound server
Requires:	audacious >= %{audacious_minver}

%description -n audacious-pulse
Audacious audio output plugin for the pulseaudio server.

%files -n audacious-pulse
%license COPYING
%{_libdir}/audacious/Output/pulse_audio.so

#-----------------------------------------------------------------------------

%package -n audacious-adplug
Summary:	AdLib player plugin for audacious
Group:		Sound
Requires:	audacious >= %{audacious_minver}

%description -n audacious-adplug
AdPlug is an Audacious input plugin It uses the AdPlug AdLib sound
player library to play back a wide range of AdLib (OPL2) music file
formats on top of an OPL2 emulator. No OPL2 chip is required for
playback.

%files -n audacious-adplug
%license COPYING
%{_libdir}/audacious/Input/adplug.so

#-----------------------------------------------------------------------------

%package -n audacious-sid
Summary:	Audacious input plugin for C64 SID files
Group:		Sound
Requires:	audacious >= %{audacious_minver}

%description -n audacious-sid
Audacious-SID is a plugin for the Audacious Media Player which provides
support for playing the so-called "SID tunes", which are music
from old Commodore computer programs like games, demos, etc.

For the actual playing, it uses the excellent libsidplay (1|2)
emulator engine that emulates 6510 CPU and 6581/8580 Sound Interface
Device (SID) chip.

%files -n audacious-sid
%license COPYING
%{_libdir}/audacious/Input/sid.so

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
export LDFLAGS="-lm"
%configure \
	--disable-rpath		\
	--enable-aac		\
	--enable-amidiplug	\
	--enable-gtk		\
	--enable-qt
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12063 |21mr|audacity-3.2.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
#undefine _find_debuginfo_dwz_opts

# Optionally download and use their custom wxwidget 3.1.3 fork.
%define	wxwidget_internal 0

%define	oname	Audacity

# Don't provide or require internal libs
%global	_privatelibs lib-.*[.]so.*
%global	__provides_exclude ^(%{_privatelibs})$
%global	__requires_exclude ^(%{_privatelibs})$

%global	_disable_lto 1
%global	_disable_ld_no_undefined 1
# Disable rpath checking until upstream fixes the rpath: DONE in Dec 2021
# https://github.com/audacity/audacity/issues/1008
# https://github.com/audacity/audacity/issues/2165
#global	__brp_check_rpaths %%{nil}

Summary:	Free Audio Editor With Effects/Analysis Tools
Name:		audacity
Version:	3.2.3
Release:	3
License:	GPLv3+
Group:		Sound
Url:		https://www.audacityteam.org
Source0:	https://github.com/audacity/audacity/releases/download/Audacity-%{version}/%{name}-sources-%{version}.tar.gz
Source1:	https://github.com/audacity/audacity/releases/download/Audacity-%{version}/%{name}-manual-%{version}.tar.gz
Source2:	audacity-3.2.3_ru.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		audacity-3.2.1-ROSA-fix-desktop-file.patch
%if !%{wxwidget_internal}
Patch1:		audacity-3.2.1-system-wx.patch
%endif
Patch2:		audacity-3.2.1-no-x86-hardcodes.patch
Patch3:		audacity-3.2.1-fix-internal-libs-not-found.patch
# Fix final release identifying itsels as "alpha"
Patch4:		fix.release_alpha.patch
BuildRequires:	cmake >= 3.16
BuildRequires:	ninja
BuildRequires:	doxygen
BuildRequires:	git
BuildRequires:	graphviz
BuildRequires:	imagemagick
BuildRequires:	nasm
# To workaround rpath troubles:
BuildRequires:	patchelf
BuildRequires:	python3 >= 3.5
BuildRequires:	ffmpeg-devel >= 4.2.4
BuildRequires:	gettext-devel >= 0.18
BuildRequires:	ladspa-devel
BuildRequires:	lame-devel >= 3.100
BuildRequires:	portmidi-devel
# This is in Contrib...
#BuildRequires:	portmixer-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(expat) >= 2.1.0
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(flac++) >= 1.3.1
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(id3tag) >= 0.15.1
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libcurl) >= 7.68.0
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(lilv-0) >= 0.24.6
BuildRequires:	pkgconfig(lv2) >= 1.16.0
BuildRequires:	pkgconfig(mad) >= 0.15.1
BuildRequires:	pkgconfig(python3) >= 3.5
BuildRequires:	pkgconfig(ogg) >= 1.3.4
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(Qt5Core) >= 5.1.0
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(serd-0) >= 0.30.2
BuildRequires:	pkgconfig(sndfile) >= 1.0.28
BuildRequires:	pkgconfig(sord-0) >= 0.16.4
BuildRequires:	pkgconfig(soundtouch) >= 2.1.2
BuildRequires:	pkgconfig(soxr) >= 0.1.3
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(sqlite3) >= 3.31.1
BuildRequires:	pkgconfig(sratom-0) >= 0.6.4
BuildRequires:	pkgconfig(suil-0) >= 0.10.6
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(twolame) >= 0.4.0
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(uuid) >= 2.37.0
BuildRequires:	pkgconfig(vamp) >= 2.5
BuildRequires:	pkgconfig(vamp-sdk) >= 2.5
BuildRequires:	pkgconfig(vorbis) >= 1.3.3
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(zlib) >= 1.2.11
%if %{wxwidget_internal}
BuildRequires:	pkgconfig(libmspack)
BuildRequires:	pkgconfig(libnotify) >= 0.7
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(webkit-1.0)
%else
BuildRequires:	wxgtku3.1-devel >= 3.1.3
BuildRequires:	wxgtku3.1-gtk2-devel
%endif

%description
Audacity is a program that lets you manipulate digital audio wave-forms. In
addition to letting you record sounds directly from within the program, it
imports many sound file formats, including WAV, AIFF, MP3 and Ogg/Vorbis.
It supports all common editing operations such as Cut, Copy, and Paste, plus
it will mix tracks and let you apply plug-in effects to any part of a sound.
It also has a built-in amplitude envelope editor, a customizable spectrogram
mode and a frequency analysis window for audio analysis applications.

%files -f %{name}.lang
%doc LICENSE.txt README.txt
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/icons/hicolor/*x*/%{name}.png
%{_datadir}/pixmaps/*.xpm
%{_datadir}/metainfo/%{name}.appdata.xml
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man1/%{name}.1*
# TODO: Consider moving the files below in a proper library package
%{_libdir}/%{name}/lib-*.so
%{_libdir}/%{name}/modules/mod-script-pipe.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-sources-%{version} -a1

pushd locale
tar -xvzf %{SOURCE2}
popd

# Avoid build errors...
[ ! -f src/RevisionIdent.h ] && echo ' ' > src/RevisionIdent.h

# Fix source perms
find . -name "*.cpp" -o -name "*.h" | xargs chmod -x


%build
# NOTE: sbsms uses x86 inline assembly, so can be used only on x86_64
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_SKIP_RPATH:BOOL=OFF \
	-DCMAKE_BUILD_WITH_INSTALL_RPATH=TRUE \
	-DCMAKE_INSTALL_RPATH_USE_LINK_PATH=TRUE \
	-Daudacity_obey_system_dependencies=ON \
	-Daudacity_conan_enabled=OFF \
	-Daudacity_use_ffmpeg=loaded \
	-Daudacity_use_lame=system \
	-Daudacity_use_lv2=system \
	-Daudacity_use_portaudio=system \
	-Daudacity_use_midi=system \
	-Daudacity_use_soundtouch=system \
	-Daudacity_use_soxr=system \
	-Daudacity_use_sqlite=system \
	-Daudacity_use_twolame=system \
	-Daudacity_use_vamp=system \
	-Daudacity_use_portmixer=local \
	-Daudacity_use_portsmf=local \
%ifarch %{x86_64}
	-Daudacity_use_sbsms=local \
%endif
%if %{wxwidget_internal}
	-Daudacity_use_wxwidgets=local \
%else
	-Daudacity_use_wxwidgets=system \
%endif
	-D audacity_has_vst3=Off \
	-G Ninja

%ninja_build


%install
%ninja_install -C build

# Clean uneeded stuff installed, but not packaged
rm -rf %{buildroot}%{_docdir}/%{name}
rm -f %{buildroot}%{_libdir}/%{name}/libsuil_*
rm -f %{buildroot}/usr/%{name}

#gw Work around bug #52526
mkdir -p %{buildroot}%{_datadir}/%{name}/help/manual
cp -r help/manual/* %{buildroot}%{_datadir}/%{name}/help/manual

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12064 |21mr|audiofile-0.3.6-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	url_ver %(echo %{version}|cut -d. -f1,2)

%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Library to handle various audio file formats
Name:		audiofile
Version:	0.3.6
Release:	16
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.68k.org/~michael/audiofile/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/audiofile/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		audiofile-0.3.6-CVE-2015-7747.patch
Patch1:		01_gcc6.patch
Patch2:		02_hurd.patch
# Pending upstream pull requests
Patch3:		04_clamp-index-values-to-fix-index-overflow-in-IMA.cpp.patch
# https://github.com/antlarr/audiofile/commit/c48e4c6503f7dabd41f11d4c9c7b7f8960e7f2c0
Patch4:		CVE-2020-18781-Always-check-the-number-of-coefficients.patch
Patch5:		06_Check-for-multiplication-overflow-in-MSADPCM-decodeSam.patch
Patch6:		07_Check-for-multiplication-overflow-in-sfconvert.patch
Patch7:		08_Fix-signature-of-multiplyCheckOverflow.-It-returns-a-b.patch
Patch8:		09_Actually-fail-when-error-occurs-in-parseFormat.patch
Patch9:		10_Check-for-division-by-zero-in-BlockCodec-runPull.patch
Patch10:	audiofile-0.3.6-CVE-2018-13440.patch
Patch11:	audiofile-0.3.6-CVE-2018-17095.patch
Patch12:	audiofile-0.3.6-CVE-2022-24599.patch
# patches 04, 05, 06, 07, 09, 10 fixes CVE-2017-6837, CVE-2017-6838, CVE-2017-6839, CVE-2017-6827, CVE-2017-6828, CVE-2017-6829, 2020-18781
# CVE-2017-6830, CVE-2017-6831, CVE-2017-6832, CVE-2017-6833, CVE-2017-6834, CVE-2017-6836, CVE-2017-6835, 2018-13440, 2018-17095, 2022-24599
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(flac)

%description
The Silicon Graphics Audio File Library provides a uniform programming
interface to standard digital audio file formats. Currently supported sound
file formats include AIFF/AIFF-C, WAVE, and NeXT/Sun .snd/.au. Supported
compression formats are currently G.711, mu-law and A-law.

%files
%doc COPYING README
%{_bindir}/sfconvert
%{_bindir}/sfinfo
%{_mandir}/man1/*

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for audiofile
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with audiofile.

%files -n %{libname}
%doc COPYING
%{_libdir}/libaudiofile.so.%{major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Includes and other files to develop audiofile applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}audiofile0-devel < 0.3.4

%description -n %{devname}
Libraries, include files and other resources you can use to develop audiofile
applications.

%files -n %{devname}
%doc COPYING README ACKNOWLEDGEMENTS TODO NEWS NOTES ChangeLog docs
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*

#------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--enable-largefile \
	--disable-static

%make CXX="g++ -w"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12065 |21mr|audit-3.0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

%define auparsemajor 0
%define auparselibname %mklibname auparse %{auparsemajor}
%define auparsedevname %mklibname auparse -d
%define auparsesdevname %mklibname auparse -d -s

Summary:	User-space tools for Linux kernel auditing
Name:		audit
Version:	3.0.8
Release:	4
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/linux-audit/audit-userspace
Source0:	http://people.redhat.com/sgrubb/audit/%{name}-%{version}.tar.gz
Source1:	%{name}-tmpfiles.conf
# Russian mans
Source2:	audit.rules.7.ru
Source3:	audisp-remote.8.ru
Source100:	%{name}.rpmlintrc
Patch0:		do-not-hardcode-path-of-stdint-h.patch
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	swig
BuildRequires:	glibc-devel
BuildRequires:	gettext-devel
BuildRequires:	openldap-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	systemd-units
BuildRequires:	kernel-headers
Requires:	%{auparselibname} = %{EVRD}
# per upstream name on Github
Provides:	audit-userspace = %{EVRD}

%description
The audit package contains the user space utilities for storing and searching
the audit records generate by the audit subsystem in the Linux 2.6 kernel.

%files
%license COPYING
%doc README rules/*rules init.d/%{name}d.cron
%attr(750,root,root) %dir %{_libexecdir}/initscripts/legacy-actions/%{name}d
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/%{name}d/resume
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/%{name}d/rotate
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/%{name}d/stop
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/%{name}d/restart
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/%{name}d/condrestart
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/%{name}d/reload
%attr(750,root,root) %{_libexecdir}/initscripts/legacy-actions/%{name}d/state
%attr(644,root,root) %{_unitdir}/%{name}d.service
%attr(0750,root,root) %dir %{_sysconfdir}/%{name}
%attr(0750,root,root) %dir %{_sysconfdir}/%{name}/rules.d
%ghost %config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/%{name}.rules
%config(noreplace) %attr(0640,root,root) %{_datadir}/%{name}/sample-rules/*
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/%{name}d.conf
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/rules.d/%{name}.rules
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/%{name}-stop.rules
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/plugins.d/af_unix.conf
%attr(0750,root,root) /sbin/%{name}ctl
%attr(0750,root,root) /sbin/%{name}d
%attr(0750,root,root) /sbin/autrace
%attr(0755,root,root) /sbin/aureport
%attr(0755,root,root) /sbin/ausearch
%attr(0750,root,root) /sbin/augenrules
%attr(0755,root,root) %{_bindir}/aulastlog
%attr(0755,root,root) %{_bindir}/aulast
%attr(0755,root,root) %{_bindir}/ausyscall
%attr(0755,root,root) %{_bindir}/auvirt
%attr(0755,root,root) %{_libexecdir}/audit-functions
%attr(0644,root,root) %{_mandir}/man5/%{name}d.conf.5*
%attr(0644,root,root) %{_mandir}/man5/%{name}d-plugins.5.xz
%attr(0644,root,root) %{_mandir}/man5/ausearch-expression.5*
%attr(0644,root,root) %{_mandir}/man7/%{name}.rules.7*
%attr(0644,root,root) %lang(ru) %{_mandir}/ru/man7/audit.rules.7*
%attr(0644,root,root) %{_mandir}/man8/audisp-syslog.8.xz
%attr(0644,root,root) %{_mandir}/man8/%{name}ctl.8*
%attr(0644,root,root) %{_mandir}/man8/%{name}d.8*
%attr(0644,root,root) %{_mandir}/man8/aulast.8*
%attr(0644,root,root) %{_mandir}/man8/aulastlog.8*
%attr(0644,root,root) %{_mandir}/man8/auvirt.8*
%attr(0644,root,root) %{_mandir}/man8/augenrules.8*
%attr(0644,root,root) %{_mandir}/man8/aureport.8*
%attr(0644,root,root) %{_mandir}/man8/ausearch.8*
%attr(0644,root,root) %{_mandir}/man8/ausyscall.8*
%attr(0644,root,root) %{_mandir}/man8/autrace.8*
%attr(0644,root,root) %lang(ru) %{_mandir}/ru/man8/audisp-remote.8*
%attr(0700,root,root) %dir %{_var}/log/%{name}
%{_tmpfilesdir}/%{name}.conf

%post
%tmpfiles_create %{name}.conf
# auditd.service is set to be anabled in preset in systemd package
%systemd_post auditd.service

%preun
%systemd_preun auditd.service

#----------------------------------------------------------------------------

%package -n lib%{name}-common
Summary:	Main libraries for %{name}
Group:		System/Libraries

%description -n lib%{name}-common
This package contains the main libraries for %{name}.

%files -n lib%{name}-common
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/lib%{name}.conf
%attr(0644,root,root) %{_mandir}/man5/lib%{name}.conf.5*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main libraries for %{name}
Group:		System/Libraries
Requires:	lib%{name}-common >= %{EVRD}

%description -n %{libname}
This package contains the main libraries for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}-libs-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc ChangeLog contrib/plugin
%{_libdir}/lib%{name}.so
%{_includedir}/lib%{name}.h
%{_mandir}/man3/%{name}_*
%{_mandir}/man3/ausearch_*
%{_mandir}/man3/get_%{name}fail_action.3*
%{_mandir}/man3/set_aumessage_mode.3*
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/%{name}.m4

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Provides:	%{name}-libs-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains static libraries for %{name} used for development.

%files -n %{sdevname}
%{_libdir}/lib%{name}.a

#----------------------------------------------------------------------------

%package -n %{auparselibname}
Summary:	Main libraries for %{name}
Group:		System/Libraries

%description -n %{auparselibname}
This package contains the main auparse libraries for %{name}.

%files -n %{auparselibname}
%{_libdir}/libauparse.so.%{auparsemajor}*

#----------------------------------------------------------------------------

%package -n %{auparsedevname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{auparselibname} = %{EVRD}
Provides:	auparse-devel = %{EVRD}

%description -n %{auparsedevname}
This package contains development files for %{name}.

%files -n %{auparsedevname}
%doc ChangeLog contrib/plugin
%{_libdir}/libauparse.so
%{_includedir}/auparse-defs.h
%{_includedir}/auparse.h
%{_mandir}/man3/auparse_*
%{_libdir}/pkgconfig/auparse.pc

#----------------------------------------------------------------------------

%package -n %{auparsesdevname}
Summary:	Static libraries for %{name}
Group:		Development/C
Requires:	%{auparsedevname} = %{EVRD}
Provides:	auparse-static-devel = %{EVRD}

%description -n %{auparsesdevname}
This package contains static libraries for %{name} used for development.

%files -n %{auparsesdevname}
%{_libdir}/libauparse.a

#----------------------------------------------------------------------------

%package -n python2-%{name}
%py2_migration_meta python2-audit
Summary:	Python bindings for %{name}
Group:		Development/Python

%description -n python2-%{name}
This package contains python bindings for %{name}.

%files -n python2-%{name}
%{python2_sitearch}/*.so
%{python2_sitearch}/%{name}.p*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings for %{name}
Group:		Development/Python

%description -n python3-%{name}
This package contains python3 bindings for %{name}.

%files -n python3-%{name}
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%package -n audispd-plugins
Summary:	Plugins for the audit event dispatcher
Group:		System/Base
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	openldap

%description -n audispd-plugins
The audispd-plugins package provides plugins for the real-time interface to the
audit system, audispd. These plugins can do things like relay events to remote
machines or analyze events for suspicious behavior.

%files -n audispd-plugins
%attr(0750,root,root) /sbin/audispd-zos-remote
%attr(0750,root,root) /sbin/audisp-remote
%attr(0750,root,root) /sbin/audisp-syslog
%attr(0644,root,root) %{_mandir}/man5/audisp-remote.conf.5*
%attr(0644,root,root) %{_mandir}/man5/zos-remote.conf.5*
%attr(0644,root,root) %{_mandir}/man8/audispd-zos-remote.8*
%attr(0644,root,root) %{_mandir}/man8/audisp-remote.8*
%attr(0750,root,root) %dir %{_var}/spool/%{name}
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/audisp-remote.conf
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/plugins.d/au-remote.conf
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/plugins.d/audispd-zos-remote.conf
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/plugins.d/syslog.conf
%config(noreplace) %attr(0640,root,root) %{_sysconfdir}/%{name}/zos-remote.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i -e 's|initdir = /usr/lib/systemd/system|initdir = %{_unitdir}|' init.d/Makefile.am

find -type d -name ".libs" | xargs rm -rf

%build
%serverbuild
autoreconf -f -v --install
# fored python env
# it can be removed if we switch
# this package only to py3 version
export PYTHON=%{__python2}

%configure \
	--sbindir=/sbin		\
	--with-arm 			\
	--with-aarch64		\
	--with-apparmor		\
	--with-libwrap		\
	--with-golang=no	\
	--with-python=yes	\
	--with-python3=yes	\
	--with-libcap-ng=yes	\
	--enable-gssapi-krb5=yes	\
	--enable-static		\
	--enable-systemd
%make

%install
%{__install} -d %{buildroot}%{_var}/log/%{name}
%{__install} -d %{buildroot}%{_libdir}/%{name}
%{__install} -d %{buildroot}%{_var}/spool/%{name}
%{__install} -d %{buildroot}%{_sysconfdir}/%{name}/rules.d/
touch %{buildroot}%{_sysconfdir}/%{name}/rules.d/%{name}.rules
touch %{buildroot}%{_sysconfdir}/%{name}/%{name}.rules
%{__install} -D -p -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/ru/man7
install -m0644 %{SOURCE2} %{buildroot}%{_mandir}/ru/man7/audit.rules.7
mkdir -p %{buildroot}%{_mandir}/ru/man8
install -m0644 %{SOURCE3} %{buildroot}%{_mandir}/ru/man8/audisp-remote.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12066 |21mr|augeas-1.12.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	famajor	1
%define	libname	%mklibname augeas %{major}
%define	libfa	%mklibname fa %{famajor}
%define	devname	%mklibname augeas -d

Summary:	A library for changing configuration files
Name:		augeas
Version:	1.12.0
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://augeas.net/
Source0:	http://download.augeas.net/%{name}-%{version}.tar.gz
Source1:	http://download.augeas.net/%{name}-%{version}.tar.gz.sig
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libxml-2.0)

%description
A library for programmatically editing configuration files. Augeas parses
configuration files into a tree structure, which it exposes through its
public API. Changes made through the API are written back to the initially
read files.

The transformation works very hard to preserve comments and formatting
details. It is controlled by ``lens'' definitions that describe the file
format and the transformation into a tree.

%files
%{_bindir}/augmatch
%{_bindir}/augtool
%{_bindir}/augparse
%{_bindir}/fadot
%{_mandir}/man1/*
%{_datadir}/vim/vimfiles/ftdetect/augeas.vim
%{_datadir}/vim/vimfiles/syntax/augeas.vim

#----------------------------------------------------------------------------

%package lenses
Summary:	Lenses for %{name}
Group:		System/Libraries

%description lenses
The lenses for %{name}.

%files lenses
%doc AUTHORS NEWS
%{_datadir}/augeas

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
Requires:	%{name}-lenses

%description -n %{libname}
The library for %{name}.

%files -n %{libname}
/%{_lib}/libaugeas.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfa}
Summary:	Library for %{name}
Group:		System/Libraries
Conflicts:	%{libname} < 0.9.0-2

%description -n %{libfa}
The library for %{name}.

%files -n %{libfa}
/%{_lib}/libfa.so.%{famajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libfa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libaugeas.so
%{_libdir}/libfa.so
%{_libdir}/pkgconfig/augeas.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std
mkdir %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libaugeas.so.%{major}* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libaugeas.so.%{major}.*.* %{buildroot}%{_libdir}/libaugeas.so
mv %{buildroot}%{_libdir}/libfa.so.%{famajor}* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libfa.so.%{famajor}.*.* %{buildroot}%{_libdir}/libfa.so

%check
#make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12067 |21mr|aumix-2.9.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A GTK+ / Ncurses audio mixer
Name:		aumix
Version:	2.9.1
Release:	13
License:	GPLv2+
Group:		Sound
Source0:	http://www.jpj.net/~trevor/aumix/releases/%{name}-%{version}.tar.bz2
Url: 		http://www.jpj.net/~trevor/aumix.html
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	gettext-devel
Requires:	initscripts >= 4.42

%description
This is a program for adjusting audio mixers from the command line or scripts,
or interactively at the console or a terminal with a full-screen, ncurses-based
interface or a GTK-based X interface.

%files -f %{name}.lang
%doc README TODO NEWS ChangeLog
%{_bindir}/aumix
%{_bindir}/mute
%{_bindir}/xaumix
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package text
Summary:	An Ncurses audio mixer
Group:		Sound

%description text
This is a program for adjusting audio mixers from the command line or scripts,
or interactively at the console or a terminal with a full-screen, ncurses-based
interface .

%files text
%{_bindir}/aumix-text

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -vfi
mkdir build-text
pushd build-text
CONFIGURE_TOP=.. %configure --without-gtk
%make
popd
mkdir build-gui
pushd build-gui
CONFIGURE_TOP=.. %configure
%make
popd

%install
%makeinstall -C build-gui

# install text version
install -m755 build-text/src/aumix %{buildroot}%{_bindir}/aumix-text

# menu entry

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Aumix
Name[ru]=Aumix
Comment=Basic volume controller
Comment[ru]=Регулятор громкости
Exec=%{name}
Icon=sound_section
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Audio;Mixer;
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12068 |21mr|authselect-1.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global validfile %{_localstatedir}/lib/rpm-state/%{name}.config-valid
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Configures authentication and identity sources from supported profiles
Name:		authselect
License:	GPLv3+
Group:		System/Base
Version:	1.0.3
Release:	6
Url:		https://github.com/pbrezina/authselect
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
# https://github.com/pbrezina/authselect/pull/160
Patch1:		0001-Add-krb5-and-logon-cache-in-winbind-profile.patch
# https://github.com/pbrezina/authselect/pull/161
# Possibly won't be upstreamized due to lack of libnss-role in RedHat distros
Patch2:		0002-Support-libnss-role-in-etc-nsswitch.conf.patch
# Dirty hack, see description in the patch
Patch3:		no-translate-mans.patch
BuildRequires:	a2x
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	libtool
BuildRequires:	po4a
BuildRequires:	xmlto
BuildRequires:	xsltproc
BuildRequires:	gettext-devel
BuildRequires:	perl-Unicode-LineBreak
BuildRequires:	pkgconfig(cmocka)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libselinux)
Requires:	%{libname} = %{EVRD}
Recommends:	sssd
Recommends:	samba-winbind
#Suggests: fprintd-pam
#Suggests: oddjob-mkhomedir

%description
Authselect is designed to be a replacement for authconfig but it takes
a different approach to configure the system. Instead of letting
the administrator build the PAM stack with a tool (which may potentially
end up with a broken configuration), it would ship several tested stacks
(profiles) that solve a use-case and are well tested and supported.
At the same time, some obsolete features of authconfig are not
supported by authselect.

%files -f %{name}.lang
#-f %{name}.8.lang -f %{name}-migration.7.lang -f %{name}-profiles.5.lang
%doc README.md COPYING
%{_bindir}/authselect
%{_mandir}/man8/authselect.8*
%{_mandir}/man7/authselect-migration.7*
%{_mandir}/man5/authselect-profiles.5*
%dir %{_sysconfdir}/authselect
%dir %{_sysconfdir}/authselect/custom
%ghost %dir %{_localstatedir}/lib/authselect/
%dir %{_datadir}/authselect
%dir %{_datadir}/authselect/vendor
%dir %{_datadir}/authselect/default
%dir %{_datadir}/authselect/default/nis/
%dir %{_datadir}/authselect/default/sssd/
%dir %{_datadir}/authselect/default/winbind/
%{_datadir}/authselect/default/nis/dconf-db
%{_datadir}/authselect/default/nis/dconf-locks
%{_datadir}/authselect/default/nis/fingerprint-auth
%{_datadir}/authselect/default/nis/nsswitch.conf
%{_datadir}/authselect/default/nis/password-auth
%{_datadir}/authselect/default/nis/postlogin
%{_datadir}/authselect/default/nis/README
%{_datadir}/authselect/default/nis/REQUIREMENTS
%{_datadir}/authselect/default/nis/system-auth
%{_datadir}/authselect/default/sssd/dconf-db
%{_datadir}/authselect/default/sssd/dconf-locks
%{_datadir}/authselect/default/sssd/fingerprint-auth
%{_datadir}/authselect/default/sssd/nsswitch.conf
%{_datadir}/authselect/default/sssd/password-auth
%{_datadir}/authselect/default/sssd/postlogin
%{_datadir}/authselect/default/sssd/README
%{_datadir}/authselect/default/sssd/REQUIREMENTS
%{_datadir}/authselect/default/sssd/smartcard-auth
%{_datadir}/authselect/default/sssd/system-auth
%{_datadir}/authselect/default/winbind/dconf-db
%{_datadir}/authselect/default/winbind/dconf-locks
%{_datadir}/authselect/default/winbind/fingerprint-auth
%{_datadir}/authselect/default/winbind/nsswitch.conf
%{_datadir}/authselect/default/winbind/password-auth
%{_datadir}/authselect/default/winbind/postlogin
%{_datadir}/authselect/default/winbind/README
%{_datadir}/authselect/default/winbind/REQUIREMENTS
%{_datadir}/authselect/default/winbind/system-auth

# scripts bellow are from upstream rpm/authselect.spec.in
%pre
rm -f %{validfile}
if [ $1 -gt 1 ] ; then
    # Remember if the current configuration is valid
    %{_bindir}/authselect check &> /dev/null
    if [ $? -eq 0 ]; then
        touch %{validfile}
    fi
fi
exit 0

%posttrans
# Copy nsswitch.conf to user-nsswitch.conf if it was not yet created
if [ ! -f %{_localstatedir}/lib/authselect/user-nsswitch-created ]; then
    cp -n %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/authselect/user-nsswitch.conf &> /dev/null
    touch %{_localstatedir}/lib/authselect/user-nsswitch-created &> /dev/null

    # If we are upgrading from older version, we want to remove these comments.
    sed -i '/^# Generated by authselect on .*$/{$!{
      N;N # Read also next two lines
      /# Generated by authselect on .*\n# Do not modify this file manually.\n/d
    }}' %{_sysconfdir}/authselect/user-nsswitch.conf &> /dev/null
fi

# If the configuration is valid and we are upgrading from older version
# we need to create these files since they were added in 1.0.
if [ -f %{validfile} ]; then
    FILES="nsswitch.conf system-auth password-auth fingerprint-auth \
           smartcard-auth postlogin dconf-db dconf-locks"

    for FILE in $FILES ; do
        cp -n %{_sysconfdir}/authselect/$FILE \
              %{_localstatedir}/lib/authselect/$FILE &> /dev/null
    done

    rm -f %{validfile}
fi

# Apply any changes to profiles (validates configuration first internally)
%{_bindir}/authselect apply-changes &> /dev/null

# Enable with-sudo feature if sssd-sudo responder is enabled. RHBZ#1582111
CURRENT=`%{_bindir}/authselect current --raw 2> /dev/null`
if [ $? -eq 0 ]; then
    PROFILE=`echo $CURRENT | awk '{print $1;}'`
    
    # (ROSA fix: == -> = to avoid bashism)
    if [ "$PROFILE" = "sssd" ] ; then
        if grep -E "services[[:blank:]]*=[[:blank:]]*.*sudo" /etc/sssd/sssd.conf &> /dev/null ; then
            %{_bindir}/authselect enable-feature with-sudo &> /dev/null
        elif systemctl is-active sssd-sudo.service sssd-sudo.socket --quiet || systemctl is-enabled sssd-sudo.socket --quiet ; then
            %{_bindir}/authselect enable-feature with-sudo &> /dev/null
        fi
    fi
fi

exit 0

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Utility library used by the authselect tool
Group:		System/Libraries
Requires:	libselinux
# Required by scriptlets
Requires:	coreutils
Requires:	findutils
Requires:	gawk
Requires:	grep
Requires:	sed
Requires:	systemd

%description -n %{libname}
Common library files for authselect. This package is used by the authselect
command line tool and any other potential front-ends.

%files -n %{libname}
%{_libdir}/libauthselect.so.%{major}*

#---------------------------------------------------------------------------

%package compat
Summary:	Tool to provide minimum backwards compatibility with authconfig
Group:		System/Base
Obsoletes:	authconfig < 7.0.1
Provides:	authconfig	= %{EVRD}
Requires:	authselect = %{EVRD}
#Recommends: oddjob-mkhomedir
Recommends:	sssd
Recommends:	realmd
Recommends:	samba-winbind
# Required by scriptlets
Requires:	sed

%description compat
This package will replace %{_sbindir}/authconfig with a tool that will
translate some of the authconfig calls into authselect calls. It provides
only minimum backward compatibility and users are encouraged to migrate
to authselect completely.

%files compat
%{_sbindir}/authconfig
%{python3_sitearch}/authselect/

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and headers for authselect
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
System header files and development libraries for authselect. Useful if
you develop a front-end for the authselect library.

%files -n %{devname}
%{_includedir}/authselect.h
%{_libdir}/libauthselect.so
%{_libdir}/pkgconfig/authselect.pc

#---------------------------------------------------------------------------

%prep
%setup -q
# I don't want to rediff patches sent to upstream to match --fuzz=0
patch -p1 < %{PATCH1}
patch -p1 < %{PATCH2}
patch -p1 < %{PATCH3}

%build
autoreconf -if
%configure \
	--with-pythonbin="%{__python3}"

### ------ ROSA hacks ------ ###

# Hack for old xmllint and/or Co in ROSA
#mkdir local_bin
#export PATH="${PWD}/local_bin:${PATH}"
#ln -sr "$(which true)" local_bin/xmllint
#sed -i -e '/\$(MAN_PO)/d' src/man/Makefile.am
# /

# UIDs/GIDs start from 500 on ROSA
grep -Irl " 1000 " . | xargs sed -i "s/ 1000 / 500 /g" || :
# We use simpler pam_mkhomedir.so instead of RedHat's pam_oddjob_mkhomedir.so
# RedHat invented pam_oddjob_mkhomedir and cretes home dirs via DBus to better suite with SELinux
# TODO: either package and use oddjob or patch manuals of authselect
grep -Irl "pam_oddjob_mkhomedir.so " profiles/ | xargs sed -i "s/pam_oddjob_mkhomedir.so /pam_mkhomedir.so silent /g" || :
# delete notice about enabling oddjobd.service
sed -i'' -e '/{include if "with-mkhomedir"}/d' profiles/{nis,sssd,winbind}/REQUIREMENTS
# TODO: package fprintd-pam

%make

%check
%make check

%install
%makeinstall_std


### ----- Fedora hacks ----- ###
# Find translations
%find_lang %{name}
#%find_lang %{name} %{name}.8.lang --with-man
#%find_lang %{name}-migration %{name}-migration.7.lang --with-man
#%find_lang %{name}-profiles %{name}-profiles.5.lang --with-man

# We want this file to contain only manual page translations
#sed -i '/LC_MESSAGES/d' %{name}.8.lang

# Remove .la and .a files created by libtool
find %{buildroot} -name "*.a" -exec rm -f {} \;

### ------ ROSA hacks ------ ###
%ifnarch %{ix86}
# TODO: investigate why this happens and fix
mkdir -p %{buildroot}/usr/lib64/ || :
if [ -d %{buildroot}/usr/lib/ ]; then mv -v %{buildroot}/usr/lib/* %{buildroot}%{_libdir}/; fi
rm -fv %{buildroot}%{_sbindir}/authconfig
ln -s %{python3_sitearch}/authselect/authcompat.py %{buildroot}%{_sbindir}/authconfig
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12069 |21mr|auto-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           auto
Summary:        Collection of source code generators for Java
Group:          Development/Java
Version:        1.6.1
Release:        1
License:        ASL 2.0
URL:            https://github.com/google/auto
# Source tarball is generated by script to ensure the correct tagged
# code is fetched for the various submodules
Source0:        auto-value-%{version}.tar.gz
Source1:        gen_auto_tarball.sh
BuildRequires:  maven-local
BuildRequires:  mvn(com.squareup:javapoet)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildArch:      noarch

%description
The Auto sub-projects are a collection of code generators
that automate those types of tasks.

%package common
Summary:        Auto Common Utilities
# Obsoletes added in F30
Obsoletes:      %{name}-factory < %{version}-%{release}

%description common
Common utilities for creating annotation processors.

%package service
Summary:        Provider-configuration files for ServiceLoader

%description service
A configuration/meta-data generator for
java.util.ServiceLoader-style service
providers.

%package value
Summary:        Auto Value

%description value
Immutable value-type code generation for Java 1.6+.

%package value-annotations
Summary:        Auto Value Annotations

%description value-annotations
Immutable value-type code generation for Java 1.6+.

%package value-parent
Summary:        Auto Value Parent

%description value-parent
Immutable value-type code generation for Java 1.6+.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n auto-value-%{version}
find -name '*.class' -print -delete
find -name '*.jar' -print -delete

# remove unnecessary dependency on parent POM
%pom_remove_parent

# Disable factory module due to missing dep:
# com.google.googlejavaformat:google-java-format
%pom_disable_module factory build-pom.xml
# Missing dep on com.google.gwt:gwt
%pom_disable_module src/it/functional value/pom.xml
%pom_disable_module src/it/gwtserializer value/pom.xml

# Fix deps in service module
%pom_xpath_set "pom:parent/pom:version" 6 service
%pom_change_dep com.google.auto:auto-common com.google.auto:auto-common:0.10 service
%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin
%pom_remove_plugin :maven-shade-plugin
%pom_remove_plugin :maven-shade-plugin value/processor

%mvn_package :build-only __noinstall

%build
# skip test suite because of unpackaged dependencies for tests
%mvn_build -sf -- -f build-pom.xml

%install
%mvn_install

%files -f .mfiles-%{name}-parent
%dir %{_javadir}/%{name}
%doc README.md
%license LICENSE.txt

%files common -f .mfiles-%{name}-common
%doc common/README.md
%license LICENSE.txt

%files service -f .mfiles-%{name}-service
%doc service/README.md
%license LICENSE.txt

%files value -f .mfiles-%{name}-value
%doc value/README.md
%license LICENSE.txt

%files value-annotations -f .mfiles-%{name}-value-annotations
%license LICENSE.txt

%files value-parent -f .mfiles-%{name}-value-parent
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12070 |21mr|autoconf2.1-2.13-42
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname	autoconf

# Define the Fortran compiler
%define fortran_compiler gfortran
BuildRequires: gcc-gfortran

%define docheck 1
%{?_without_check: %global docheck 0}

Name:		%{pkgname}2.1
Summary:	A GNU tool for automatically configuring source code
Version:	2.13
Release:	42
Epoch:		1
License:	GPL
Group:		Development/Other
URL:		http://www.gnu.org/software/autoconf/
BuildArch:	noarch

Source:		ftp://ftp.gnu.org/pub/gnu/%{pkgname}/%{pkgname}-%{version}.tar.bz2
Patch0:		autoconf-2.12-race.patch
Patch1:		autoconf-2.13-mawk.patch
Patch2:		autoconf-2.13-notmp.patch
Patch3:		autoconf-fix-for-gcc2.96-patch
Patch4:		autoconf-2.13-versioned-info.patch
Patch5:		autoconf-2.13-automake14.patch
Patch6:		autoconf-2.13-gfortran.patch
Patch7:		find.pl-to-File::Find.patch

Requires:	gawk, m4, mktemp
BuildRequires:	texinfo m4
Conflicts:	autoconf2.5 <= 1:2.59-3mdk

# for tests
%if %docheck
BuildRequires:	bison
BuildRequires:	flex
%endif

%description
GNU's Autoconf is a tool for configuring source code and Makefiles.
Using Autoconf, programmers can create portable and configurable
packages, since the person building the package is allowed to 
specify various configuration options.

You should install Autoconf if you are developing software and you'd
like to use it to create shell scripts which will configure your 
source code packages. If you are installing Autoconf, you will also
need to install the GNU m4 package.

Note that the Autoconf package is not required for the end user who
may be configuring software with an Autoconf-generated script; 
Autoconf is only required for the generation of the scripts, not
their use.

%prep
%setup -q -n %{pkgname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p0
%patch4 -p1 -b .parallel
%patch5 -p1 -b .automake14
case %{fortran_compiler} in
*gfortran*)
%patch6 -p1 -b .gfortran
;;
esac
%patch7 -p1

%build
export F77=%{fortran_compiler}
%configure --program-suffix=-%{version}
%make

%if %docheck
make check	# VERBOSE=1
%endif

%install
%makeinstall

mv $RPM_BUILD_ROOT%{_infodir}/autoconf.info $RPM_BUILD_ROOT%{_infodir}/autoconf-%{version}.info

# We don't want to include the standards.info stuff in the package,
# because it comes from binutils...
rm -f $RPM_BUILD_ROOT%{_infodir}/standards*

cp install-sh $RPM_BUILD_ROOT%{_datadir}/autoconf

%files
%defattr(-,root,root)
%doc README
%{_bindir}/*
%{_datadir}/%{pkgname}
%{_infodir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12071 |21mr|autoconf-2.71-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with check
# bootstrapping (from OpenMandriva)
%define _disable_rebuild_configure 1
# filter out bogus perl(Autom4te*) dependencies	(Fedora, OpenMandriva)
%global __requires_exclude ^perl\\(Autom4te::.*\\)$
%global __provides_exclude ^perl\\(Autom4te::.*\\)$

Summary:	A GNU tool for automatically configuring source code
Name:		autoconf
Version:	2.71
Release:	1
Epoch:		1
License:	GPLv2+ with exceptions
Group:		Development/Other
Url:		http://www.gnu.org/software/autoconf/
Source0:	http://ftp.gnu.org/gnu/autoconf/autoconf-%{version}.tar.xz
Source1:	autoconf-site-start.el
Patch0:		autoconf-2.62-fix-multiline-string.patch
Patch1:		autoconf-2.64-drop-failing-parallel-test.patch
BuildRequires:	help2man
BuildRequires:	m4
BuildRequires:	texinfo
# for tests
%if %{with check}
BuildRequires:	bison
BuildRequires:	flex
%endif
Requires:	m4
Requires:	mktemp
Provides:	autoconf2.5 = %{EVRD}
Conflicts:	autoconf2.1 < 1:2.13-26
BuildArch:	noarch

%description
GNU's Autoconf is a tool for configuring source code and Makefiles.
Using Autoconf, programmers can create portable and configurable
packages, since the person building the package is allowed to 
specify various configuration options.

You should install Autoconf if you are developing software and you'd
like to use it to create shell scripts which will configure your 
source code packages. If you are installing Autoconf, you will also
need to install the GNU m4 package.

Note that the Autoconf package is not required for the end user who
may be configuring software with an Autoconf-generated script; 
Autoconf is only required for the generation of the scripts, not
their use.

%files
%doc AUTHORS BUGS COPYING INSTALL NEWS README THANKS TODO
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*.el
%{_bindir}/*
%{_datadir}/autoconf
%{_datadir}/emacs/site-lisp/*.el*
%{_infodir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n autoconf-%{version}
# remove unknown
sed -i '/setcontentsaftertitlepage/d' doc/autoconf.texi

%build
%configure \
	--build=%{_host}
%make

%install
%makeinstall_std

# We don't want to include the standards.info stuff in the package,
# because it comes from binutils...
rm -f %{buildroot}%{_infodir}/standards*

# emacs stuff
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el

# if emacs-bin was not here, *.el and *.elc files will be missing - install *.el files anyway
if [ ! -d %{buildroot}/%{_datadir}/emacs/site-lisp ]; then
	mkdir -p %{buildroot}/%{_datadir}/emacs/site-lisp
	install -m644 lib/emacs/*.el %{buildroot}/%{_datadir}/emacs/site-lisp
fi

%if %{with check}
%check
make check	# VERBOSE=1
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12072 |21mr|autoconf-archive-2021.02.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Autoconf Macro Archive
Name:		autoconf-archive
Version:	2021.02.19
Release:	1
License:	GPLv3+ with exceptions
Group:		Development/Other
Url:		http://www.gnu.org/software/autoconf-archive/
Source0:	ftp://ftp.gnu.org/gnu/autoconf-archive/%{name}-%{version}.tar.xz
BuildRequires:	texinfo
Requires:	autoconf
BuildArch:	noarch

%description
The GNU Autoconf Archive is a collection of more than 450 macros for
GNU Autoconf that have been contributed as free software by friendly
supporters of the cause from all over the Internet.

%files
%doc AUTHORS COPYING* ChangeLog NEWS README TODO
%{_datadir}/aclocal/*.m4
%{_infodir}/autoconf-archive.info*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# remove dir file which will be generated by /sbin/install-info
rm -f %{buildroot}%{_infodir}/dir

# document files are installed another location
rm -rf %{buildroot}%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12073 |21mr|autofs-5.1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for automatically mounting and unmounting filesystems
Name:		autofs
Version:	5.1.7
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://www.kernel.org/pub/linux/daemons/autofs
Source0:	https://www.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.xz
Source10:	%{name}.rpmlintrc
Patch102:	0001-Rosa-custom-config-dir-etc-autofs.patch
Patch105:	autofs-5.1.2-after-nss-lookup.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	nfs-utils
BuildRequires:	kmod-compat
BuildRequires:	sssd-client
BuildRequires:	krb5-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Conflicts:	autosmb

%description
autofs is a daemon which automatically mounts filesystems when you use
them, and unmounts them later when you are not using them.  This can
include network filesystems, CD-ROMs, floppies, and so forth.

%files
%doc CHANGELOG CREDITS README* examples
%dir %{_sysconfdir}/autofs
%config(noreplace) %{_sysconfdir}/autofs/auto*
%config(noreplace) %{_sysconfdir}/sysconfig/autofs
%{_unitdir}/autofs.service
%{_libdir}/%{name}
%{_libdir}/libautofs.so
%{_sbindir}/automount
%{_mandir}/*/*

%post
%systemd_post autofs.service

%preun
%systemd_preun autofs.service

#-----------------------------------------------------------

%prep
%setup -q
%apply_patches
autoreconf -fi

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"
%configure \
	--with-mapdir=%{_sysconfdir}/%{name} \
	--with-confdir=%{_sysconfdir}/%{name} \
	--with-systemd=%{_unitdir} \
	--with-sasl=yes \
	--disable-mount-locking \
	--enable-ignore-busy \
	--with-libtirpc \
	--disable-mount-move

export CFLAGS="%{optflags} -Wall" LDFLAGS="-Wl,-z,now"
%make DONTSTRIP=1
make all -C redhat
#make all -C samples

mkdir examples
cp samples/ldap* examples
cp samples/autofs.schema examples

rm -f README.gentoo

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_libdir}/autofs
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
# empty directory for external configs
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/auto.master.d
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_unitdir}

%makeinstall_std INSTALLROOT=%{buildroot}
install -d -m 755 %{buildroot}%{_unitdir}
install -m 644 samples/autofs.service %{buildroot}%{_unitdir}/autofs.service
for i in autofs_ldap_auth.conf auto.master auto.misc ; do
install -m 644 "samples/$i" "%{buildroot}%{_sysconfdir}/autofs/"; done
for i in auto.net auto.smb ; do
install -m 755 "samples/$i" "%{buildroot}%{_sysconfdir}/autofs/"; done
install -m 644 redhat/autofs.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/autofs
install -m 644 redhat/autofs.conf %{buildroot}%{_sysconfdir}/autofs/autofs.conf
sed -i -e 's,EnvironmentFile=-/etc/autofs/autofs,EnvironmentFile=-/etc/sysconfig/autofs,g' %{buildroot}%{_unitdir}/autofs.service

cat > README.urpmi <<EOF
%{distribution} specific notes

setup
-----
Configuration handling in %{distribution} package differs from upstream one on several
points:
- the automounts daemon configuration file is %{_sysconfdir}/autofs/autofs.conf
- the autofs service configuration file is %{_sysconfdir}/sysconfig/autofs

Upgrade
-------
Map files have been moved from %{_sysconfdir} to %{_sysconfdir}/autofs. Upgrade
procedure should handle the change automatically.
LDAP usage has changed between autofs 4 and 5. The LDAP schema used has now to
be configured explicitely in autofs configuration, so as to avoid useless
queries. As this can't be handled by package upgrade procedure, you'll have to
edit your configuration manually. See auto.master(5) for details.

EOF

# tune default configuration
perl -pi -e 's|^BROWSE_MODE="no"|BROWSE_MODE="yes"|' \
	%{buildroot}%{_sysconfdir}/autofs/autofs.conf
perl -pi \
	-e 's|^/misc\t|#/misc\t|;' \
	-e 's|^/net\t|#/net\t|;' \
	%{buildroot}%{_sysconfdir}/autofs/auto.master

# delete broken symlink, we build without libnsl
rm %{buildroot}%{_libdir}/%{name}/lookup_nis.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12074 |21mr|autofs-5.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for automatically mounting and unmounting filesystems
Name:		autofs
Version:	5.1.8
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://www.kernel.org/pub/linux/daemons/autofs
Source0:	https://www.kernel.org/pub/linux/daemons/autofs/v5/%{name}-%{version}.tar.xz
Source10:	%{name}.rpmlintrc
Patch102:	0001-Rosa-custom-config-dir-etc-autofs.patch
Patch105:	autofs-5.1.2-after-nss-lookup.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	nfs-utils
BuildRequires:	kmod-compat
BuildRequires:	sssd-client
BuildRequires:	krb5-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Conflicts:	autosmb

%description
autofs is a daemon which automatically mounts filesystems when you use
them, and unmounts them later when you are not using them.  This can
include network filesystems, CD-ROMs, floppies, and so forth.

%files
%doc CHANGELOG CREDITS README* examples
%dir %{_sysconfdir}/autofs
%config(noreplace) %{_sysconfdir}/autofs/auto*
%config(noreplace) %{_sysconfdir}/sysconfig/autofs
%{_unitdir}/autofs.service
%{_libdir}/%{name}
%{_libdir}/libautofs.so
%{_sbindir}/automount
%{_mandir}/*/*

%post
%systemd_post autofs.service

%preun
%systemd_preun autofs.service

#-----------------------------------------------------------

%prep
%setup -q
%apply_patches
autoreconf -fi

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"
%configure \
	--with-mapdir=%{_sysconfdir}/%{name} \
	--with-confdir=%{_sysconfdir}/%{name} \
	--with-systemd=%{_unitdir} \
	--with-sasl=yes \
	--disable-mount-locking \
	--enable-ignore-busy \
	--with-libtirpc \
	--disable-mount-move

export CFLAGS="%{optflags} -Wall" LDFLAGS="-Wl,-z,now"
%make_build DONTSTRIP=1
make all -C redhat
#make all -C samples

mkdir examples
cp samples/ldap* examples
cp samples/autofs.schema examples

rm -f README.gentoo

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_libdir}/autofs
mkdir -p %{buildroot}%{_mandir}/{man5,man8}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
# empty directory for external configs
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/auto.master.d
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_unitdir}

%make_install INSTALLROOT=%{buildroot}
install -d -m 755 %{buildroot}%{_unitdir}
install -m 644 samples/autofs.service %{buildroot}%{_unitdir}/autofs.service
for i in autofs_ldap_auth.conf auto.master auto.misc ; do
install -m 644 "samples/$i" "%{buildroot}%{_sysconfdir}/autofs/"; done
for i in auto.net auto.smb ; do
install -m 755 "samples/$i" "%{buildroot}%{_sysconfdir}/autofs/"; done
install -m 644 redhat/autofs.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/autofs
install -m 644 redhat/autofs.conf %{buildroot}%{_sysconfdir}/autofs/autofs.conf
sed -i -e 's,EnvironmentFile=-/etc/autofs/autofs,EnvironmentFile=-/etc/sysconfig/autofs,g' %{buildroot}%{_unitdir}/autofs.service

cat > README.urpmi <<EOF
%{distribution} specific notes

setup
-----
Configuration handling in %{distribution} package differs from upstream one on several
points:
- the automounts daemon configuration file is %{_sysconfdir}/autofs/autofs.conf
- the autofs service configuration file is %{_sysconfdir}/sysconfig/autofs

Upgrade
-------
Map files have been moved from %{_sysconfdir} to %{_sysconfdir}/autofs. Upgrade
procedure should handle the change automatically.
LDAP usage has changed between autofs 4 and 5. The LDAP schema used has now to
be configured explicitely in autofs configuration, so as to avoid useless
queries. As this can't be handled by package upgrade procedure, you'll have to
edit your configuration manually. See auto.master(5) for details.

EOF

# tune default configuration
perl -pi -e 's|^BROWSE_MODE="no"|BROWSE_MODE="yes"|' \
	%{buildroot}%{_sysconfdir}/autofs/autofs.conf
perl -pi \
	-e 's|^/misc\t|#/misc\t|;' \
	-e 's|^/net\t|#/net\t|;' \
	%{buildroot}%{_sysconfdir}/autofs/auto.master

# delete broken symlink, we build without libnsl
rm -fv %{buildroot}%{_libdir}/%{name}/lookup_nis.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12075 |21mr|autogen-5.18.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 25
%define libname %mklibname opts %{major}
%define devname %mklibname opts -d

Summary:	Simplifies the creation and maintenance of programs
Name:		autogen
Version:	5.18.16
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://www.gnu.org/software/autogen/
Source0:	https://ftp.gnu.org/gnu/autogen/rel%{version}/autogen-%{version}.tar.xz
Patch0:		autogen-5.12-pkgconfig.patch
# Fix mk-tpl-config.sh to not fail when guile headers don't use noreturn
Patch1:		autogen-5.18.7-mktplconfig.patch
Patch2:		autogen-5.18.16-no-werror.patch
BuildRequires:	chrpath
BuildRequires:	pkgconfig(guile-2.2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblzma)

%global __requires_exclude %{__cat}

%description
AutoGen is a tool designed to simplify the creation and maintenance 
of programs that contain large amounts of repetitious text. It is 
especially valuable in programs that have several blocks of text 
that must be kept synchronized.

%files
%doc README TODO
%{_bindir}/autogen
%{_bindir}/columns
%{_bindir}/getdefs
%{_bindir}/xml2ag
%{_infodir}/autogen.info*
%{_datadir}/aclocal/*
%{_datadir}/autogen/
%{_mandir}/*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libopts.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}opts-static-devel < 5.18.3

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_bindir}/autoopts-config
%{_includedir}/autoopts/
%{_libdir}/*.so
%{_libdir}/autogen/tpl-config.tlib
%{_libdir}/pkgconfig/autoopts.pc


#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%{_bindir}/chrpath -d %{buildroot}/%{_libdir}/lib*.so.* \
	%{buildroot}/%{_bindir}/{autogen,columns,getdefs,xml2ag}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12076 |21mr|auto-krokodil-0.31-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Scripts to automate packaging and installation of proprietary drivers for Nvidia GPUs
Name: auto-krokodil
Group: System/Kernel and hardware
License: GPLv3
Url: https://abf.io/import/auto-krokodil
Version: 0.31
Release: 4
BuildArch: noarch

# rpm generators
Source10: krokodil-rpm-provides.py
Source11: krokodilnvidia.attr
# rpm macros
Source12: macros.krokodil
Source13: auto-krokodil-rpmlint.conf

# Test data, to run tests:
# - build and install auto-krokodil-rpm-generators from this spec
# - install it
# - run: rpmbuild --define "_sourcedir $PWD" --define "_topdir $PWD" --define "_rpmdir $PWD" --define "_build_name_fmt %%{NAME}.rpm" -bb test.spec.in
# - run: rpm -qp --provides test-auto-krokodil-provides.rpm, check provides
# from nvidia470, licensed according to LICENSE.nvidia-json
Source21: test.nvidia470.json
# taken from nvidia 470.74/supported-gpus/LICENSE
Source22: LICENSE.nvidia-json
Source23: test.spec.in
Source24: test.kroko-cli.sh

Source31: krokodil-legacy-converter.py
Source32: kroko-cli.sh
Source33: bash-completion-kroko-cli

%description
Scripts to automate packaging and installation of proprietary drivers for Nvidia GPUs

#----------------------------------------

%package filesystem
Summary: Filesystem skeleton for %{name}

%description filesystem
Filesystem skeleton for %{name}

%files filesystem
%dir %{_datadir}/auto-krokodil
# Directory to put supported-gpus.json as e.g. nvidia470.json
# inside nvidia470 package so that RPM generator could parse it
%dir %{_datadir}/auto-krokodil/drivers
# License for JSON files from Nvidia
%{_datadir}/auto-krokodil/drivers/LICENSE.nvidia-json
# Directory for binary kernel modules
# alternatives(8) manage symlinks from /lib/modules to here
%dir %{_datadir}/auto-krokodil/kmods

#----------------------------------------

%package rpm-generators
Summary: Generators of RPM provides for proprietary Nvidia drivers
Requires: /usr/bin/python3
Requires: /bin/sh

%description rpm-generators
Generators of RPM provides for proprietary Nvidia drivers

%files rpm-generators
%{_bindir}/krokodil-rpm-provides
%{_fileattrsdir}/krokodilnvidia.attr

#----------------------------------------

%package rpm-macros
Summary: RPM macros for packaging of binary kernel modules for Nvidia drivers
Requires: coreutils
Requires: gawk
# pull rpmlint policy when installing BuildRequires
Requires: (%{name}-rpmlint if rpmlint)

%description rpm-macros
RPM macros for packaging of binary kernel modules for Nvidia drivers

%files rpm-macros
%{_rpmmacrodir}/*krokodil*

#----------------------------------------

%package rpmlint
Summary: rpmlint policy for krokodil-packaged kernel modules
Requires: rpmlint

%description rpmlint
rpmlint policy for krokodil-packaged kernel modules

%files rpmlint
%{_datadir}/rpmlint/config.d/auto-krokodil-rpmlint.conf

#----------------------------------------

%package legacy-converter
Summary: Convert JSON from newer Nvidia driver to an older one
Requires: /usr/bin/python3

%description legacy-converter
Old Nvidia drivers do not have a JSON with supported models,
but JSONs of newer drivers specify GPUs supported by older drivers.
This scripts takes a JSON from a newer driver and converts it
into a JSON for an older driver which does not ship a native JSON.

%files legacy-converter
%{_bindir}/krokodil-legacy-converter

#----------------------------------------

%package cli
Summary: Automatically find and install NVIDIA GPU drivers (console program)
Requires: bash
Requires: dnf
Requires: gawk
Requires: rpm
Recommends:	bash-completion
Provides: kroko-cli = %{EVRD}

%description cli
Automatically find and install NVIDIA GPU drivers (console program)

%files cli
%{_bindir}/kroko-cli
%{_bindir}/%{name}-cli
%{_datadir}/bash-completion/completions/kroko-cli
%{_datadir}/bash-completion/completions/auto-krokodil-cli

#----------------------------------------

%prep
cp %sources .

%build

%install

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
mkdir -p %{buildroot}%{_datadir}/auto-krokodil/kmods
install -m0644 %{SOURCE22} %{buildroot}%{_datadir}/auto-krokodil/drivers/LICENSE.nvidia-json

mkdir -p %{buildroot}%{_bindir}
install -m0755 %{SOURCE10} %{buildroot}%{_bindir}/krokodil-rpm-provides
mkdir -p %{buildroot}%{_fileattrsdir}
install -m0644 %{SOURCE11} %{buildroot}%{_fileattrsdir}/krokodilnvidia.attr

install -m0755 %{SOURCE31} %{buildroot}%{_bindir}/krokodil-legacy-converter
install -m0755 %{SOURCE32} %{buildroot}%{_bindir}/kroko-cli
ln -s kroko-cli %{buildroot}%{_bindir}/%{name}-cli

sed -i 's/KROKO_VERSION="version_var"/KROKO_VERSION="%{VERSION}-%{RELEASE}"/' %{buildroot}%{_bindir}/kroko-cli

sed -e \
%if %{mdvver} >= 202310
	's,@MODULESDIR@,/usr/lib/modules,g' \
%else
	's,@MODULESDIR@,/lib/modules,g' \
%endif
	%{SOURCE12} > macros
%install_macro krokodil macros

mkdir -p %{buildroot}%{_datadir}/rpmlint/config.d
install -m0644 %{SOURCE13} %{buildroot}%{_datadir}/rpmlint/config.d

mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
install -m644 %{SOURCE33} %{buildroot}%{_datadir}/bash-completion/completions/kroko-cli
ln -s kroko-cli %{buildroot}%{_datadir}/bash-completion/completions/auto-krokodil-cli

%check
bash -x %{SOURCE24}
# check syntax
python3 -m py_compile %{buildroot}%{_bindir}/krokodil-legacy-converter
python3 -m py_compile %{buildroot}%{_bindir}/krokodil-rpm-provides
rm -fvr %{buildroot}%{_bindir}/__pycache__
# very basic check of the generator
set -o pipefail
set -e
FILE="%{SOURCE21}" EVR=888-777 %{buildroot}%{_bindir}/krokodil-rpm-provides | grep '^nvidia-blob-devid(1f9d) = 888-777$'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12077 |21mr|autologin-1.0.0-38
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automatically log in
Name:		autologin
Version:	1.0.0
Release:	38
License:	GPLv2+
Group:		System/Base
Url:		http://www.linux-easy.com/development/autologin/
Source0:	%{name}-%{version}.tar.bz2
Source1:	startx.autologin
Patch0:		autologin-1.0.0-mdv.patch
Patch1:		autologin-glibc28_fix.diff
BuildRequires:	pam-devel
Requires:	initscripts >= 5.15

%description
Autologin automatically logs in as the user specified in
/etc/sysconfig/autologin and starts the X session defined there.

Install autologin if you want to bypass the login screen.

%files
%defattr(-,root,root,0755)
%doc README AUTHORS
%{_sbindir}/autologin
%{_bindir}/startx.autologin
%config(noreplace) /etc/pam.d/autologin

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .fred
%patch1 -p0 -b .glibc28_fix

%build
#FORCE_AUTOCONF_2_5=1 AUTOMAKE="automake --add-missing" autoreconf
autoreconf -fiv
%configure
%make

%install
%makeinstall_std

install -m755 %{SOURCE1} -D %{buildroot}%{_bindir}/startx.autologin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12078 |21mr|automake-1.16.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define amversion 1.16

%define docheck 0
%{?_without_check: %global docheck 0}

Summary:	A GNU tool for automatically creating Makefiles
Name:		automake
Version:	1.16.5
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://sources.redhat.com/automake/
Source0:	ftp://ftp.gnu.org/gnu/automake/automake-%{version}.tar.xz
Source100:	fix-old-automake-files
# Automatically invoke fix-old-automake-files from aclocal
Patch0:		automake-1.13.1-automatically-fix-old-files.patch
# Something changed in Perl 5.18 and the testsuite started to fail because
# of random looping in hashes items.  Upstream will probably start sorting of
# hash items by default for this failing case ~> we just don't resist on its
# order for now (only testsuite change).
# ~> Downstream
# ~> http://lists.gnu.org/archive/html/bug-automake/2013-07/msg00022.html
Patch1:		automake-1.13.4-hash-order-workaround.patch
# Change conftest.file name to satisfy sanity check when building with frozen time
Patch2:		automake-1.14.1-improve-sanity-check.patch
BuildRequires:	autoconf
BuildRequires:	texinfo
# tests need these
%if %{docheck}
BuildRequires:	bison
BuildRequires:	dejagnu
BuildRequires:	emacs
BuildRequires:	flex
BuildRequires:	gcc-java
BuildRequires:	python
BuildRequires:	tetex-latex
%endif
Requires:	autoconf
Requires:	sed
Conflicts:	automake1.5
Provides:	automake1.9 = %{EVRD}
Obsoletes:	automake1.9 < %{EVRD}
Provides:	automake1.8 = %{EVRD}
Obsoletes:	automake1.8 < %{EVRD}
Requires(post,preun):	update-alternatives
BuildArch:	noarch

%description
Automake is a tool for automatically generating Makefiles compliant with
the GNU Coding Standards.

You should install Automake if you are developing software and would like
to use its capabilities of automatically generating GNU standard
Makefiles. If you install Automake, you will also need to install GNU's
Autoconf package.

%files
%doc AUTHORS ChangeLog NEWS README THANKS
%optional %doc %{_docdir}/%{name}/amhello*
%{_bindir}/automake
%{_bindir}/aclocal
%{_bindir}/fix-old-automake-files
%{_bindir}/automake-%{amversion}
%{_bindir}/aclocal-%{amversion}
%{_bindir}/automake-1.8
%{_bindir}/aclocal-1.8
%{_bindir}/automake-1.9
%{_bindir}/aclocal-1.9
%{_bindir}/automake-1.11
%{_bindir}/aclocal-1.11
%{_bindir}/automake-1.12
%{_bindir}/aclocal-1.12
%{_bindir}/automake-1.13
%{_bindir}/aclocal-1.13
%{_bindir}/automake-1.14
%{_bindir}/aclocal-1.14
%{_bindir}/automake-1.15
%{_bindir}/aclocal-1.15
%{_datadir}/automake*
%{_infodir}/automake*
%{_datadir}/aclocal*
%{_mandir}/man1/aclocal-%{amversion}*
%{_mandir}/man1/aclocal.1*
%{_mandir}/man1/automake-%{amversion}*
%{_mandir}/man1/automake.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Restore date changed in Patch2
touch -r m4/init.m4 m4/sanity.m4

%build
%define _disable_rebuild_configure 1
%configure
%make_build

%check
%if %{docheck}
# (Abel) reqd2.test tries to make sure automake won't work if ltmain.sh
# is not present. But automake behavior changed, now it can handle missing
# libtool file as well, so this test is bogus.
sed -e 's/reqd2.test//g' -i tests/Makefile
make check # VERBOSE=1
%endif

%install
%makeinstall_std

# provide -1.x symlinks
for i in 8 9 11 12 13 14 15; do
	ln -s automake-%{amversion} %{buildroot}%{_bindir}/automake-1.$i
	ln -s aclocal-%{amversion} %{buildroot}%{_bindir}/aclocal-1.$i
done

rm -f %{buildroot}/%{_infodir}/*
install -m 644 doc/%{name}.info* %{buildroot}/%{_infodir}/
install -c -m 755 %{SOURCE100} %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_datadir}/aclocal

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12079 |21mr|automake1.4-1.4.0.p6-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define amversion 1.4
%define pkgname automake
%define patchlevel p6

%bcond_with docheck

Summary:	A GNU tool for automatically creating Makefiles
Name:		%{pkgname}%{amversion}
Version:	1.4.0.%{patchlevel}
Release:	15
License:	GPLv2+
Group:		Development/Other
Url:		http://www.gnu.org/software/automake/
Source0:	ftp://ftp.gnu.org/gnu/automake/%{pkgname}-%{amversion}-%{patchlevel}.tar.bz2
Patch0:		automake-1.4p6-infofiles.patch
Patch1:		automake-1.4-p6-stdc-headers.patch
Patch2:		automake-1.4-p6-CVE-2009-4029.diff
Requires:	update-alternatives
Conflicts:	automake1.5
BuildArch:	noarch

%description
Automake is a tool for automatically generating Makefiles compliant with the
GNU Coding Standards.

You should install Automake if you are developing software and would like to
use its capabilities of automatically generating GNU standard Makefiles. If you
install Automake, you will also need to install GNU's Autoconf package.

%files
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO
%{_bindir}/*
%{_datadir}/*-1.4
%{_infodir}/%{name}*
%dir %{_datadir}/aclocal

%post
update-alternatives --remove automake %{_bindir}/automake-%{amversion}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{amversion}-%{patchlevel}
%patch0 -p1 -b .parallel
%patch1 -p1 -b .gcc3.4
%patch2 -p1 -b .CVE-2009-4029

%build
%configure
%make

# error.test won't work as expected because $ACLOCAL already include ./m4 into
# m4 file search list (see tests/defs), so --acdir=. has no effect
perl -pi -e 's/\berror\.test\b//' tests/Makefile

%install
%makeinstall

install -D -m 644 %{name}.info %{buildroot}%{_infodir}/%{name}.info
rm -f %{buildroot}%{_bindir}/{automake,aclocal}
mkdir -p %{buildroot}%{_datadir}/aclocal

# (oe) the installsh.test test fails, don't know why
%check
%if %{with docheck}
make check	# VERBOSE=1
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12080 |21mr|automoc4-0.9.88-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automoc is a development moc auto generator for KDE4 development
Name:		automoc4
Version:	0.9.88
Release:	12
License:	GPLv2+
Group:		Development/KDE and Qt
Url:		http://websvn.kde.org/trunk/kdesupport/automoc
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	kde4-macros
BuildRequires:	qt4-devel
Obsoletes:	automoc < 0.9.83
Provides:	automoc = %{version}

%description
Automoc is a development moc auto generator for KDE4 development.

%files
%{_kde_bindir}/automoc4
%{_kde_libdir}/automoc4

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12081 |21mr|avahi-0.8-12.git35bb1b.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 35bb1bae902ae9ff2da809fb5f577ba873c43359
%define commit_short %(echo %{commit} | head -c6)

# CVE-2021-26720 specific to Debian
# Fixed in git after v0.8:
# CVE-2023-38469
# CVE-2023-38473
# CVE-2023-38470 (https://github.com/lathiat/avahi/commit/94cb6489)
# CVE-2023-38471
# CVE-2023-38472
# CVE-2021-3468

%define client_name %{name}-client
%define common_name %{name}-common
%define core_name %{name}-core
%define dns_sd_name %{name}-compat-libdns_sd
%define glib_name %{name}-glib
%define gobject_name %{name}-gobject
%define howl_name %{name}-compat-howl
%define libevent_name %{name}-libevent
%define qt5_name %{name}-qt5
%define ui_name %{name}-ui
%define ui_gtk3_name %{name}-ui-gtk3

%define client_major 3
%define common_major 3
%define core_major 7
%define dns_sd_major 1
%define glib_major 1
%define gobject_major 0
%define howl_major 0
%define libevent_major 1
%define qt5_major 1
%define ui_major 0
%define ui_gtk3_major 0

%define lib_client_name %mklibname %{client_name} %{client_major}
%define develnameclient %mklibname %{client_name} -d
%define lib_common_name %mklibname %{common_name} %{common_major}
%define develnamecommon %mklibname %{common_name} -d
%define lib_core_name %mklibname %{core_name} %{core_major}
%define develnamecore %mklibname %{core_name} -d
%define lib_dns_sd_name %mklibname %{dns_sd_name} %{dns_sd_major}
%define develnamedns_sd %mklibname %{dns_sd_name} -d
%define lib_glib_name %mklibname %{glib_name} %{glib_major}
%define develnameglib %mklibname %{glib_name} -d
%define lib_gobject_name %mklibname %{gobject_name} %{gobject_major}
%define develnamegobject %mklibname %{gobject_name} -d
%define lib_howl_name %mklibname %{howl_name} %{howl_major}
%define develnamehowl %mklibname %{howl_name} -d
%define lib_libevent_name %mklibname %{libevent_name}_ %{libevent_major}
%define develnamelibevent %mklibname %{libevent_name} -d
%define lib_qt5_name %mklibname %{qt5_name}_ %{qt5_major}
%define develnameqt5 %mklibname %{qt5_name} -d
%define lib_ui_name %mklibname %{ui_name} %{ui_major}
%define develnameui %mklibname %{ui_name} -d
%define lib_ui_gtk3_name %mklibname %{ui_gtk3_name}_ %{ui_gtk3_major}
%define develnameui_gtk3 %mklibname %{ui_gtk3_name} -d

%{?build_qt5}%{?!build_qt5:%bcond_without qt5}
%{?build_gtk3}%{?!build_gtk3:%bcond_without gtk3}

%bcond_with mono
%bcond_without qt5
%bcond_without gtk3
%bcond_without python

Summary:	Avahi service discovery (mDNS/DNS-SD) suite
Name:		avahi
Version:	0.8
Release:	12.git%{commit_short}.3
License:	LGPLv2+
Group:		System/Servers
Url:		http://avahi.org/
#Source0:	http://avahi.org/download/%{name}-%{version}.tar.gz
Source0:	https://github.com/lathiat/avahi/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	avahi-hostname.sh
Source2:	sysusers.avahi.conf
Source100:	%{name}.rpmlintrc
Patch0:		avahi-0.6.31-gtk-is-broken-beyond-repair-gtk-die-die-die.patch
Patch1:		avahi-0.6.31.workaround.patch
BuildRequires:	intltool
BuildRequires:	cap-devel
BuildRequires:	expat-devel >= 2.0.1
BuildRequires:	gdbm-devel
BuildRequires:	%{_bindir}/xmltoman
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libevent)
%if %{with python}
BuildRequires:	python3egg(dbus-python)
BuildRequires:	pkgconfig(pygobject-3.0)
%endif
BuildRequires:	pkgconfig(libdaemon)
BuildRequires:	pkgconfig(libglade-2.0)
%if %{with qt5}
BuildRequires:	pkgconfig(Qt5Core)
%endif
%if %{with gtk3}
BuildRequires:	pkgconfig(gtk+-3.0)
%endif
BuildRequires:	systemd-units
Recommends:	nss_mdns
Requires(pre):		/bin/systemd-sysusers

%description
Avahi is a system which facilitates service discovery on a local
network -- this means that you can plug your laptop or computer into a
network and instantly be able to view other people who you can chat
with, find printers to print to or find files being shared. This kind
of technology is already found in MacOS X (branded 'Rendezvous',
'Bonjour' and sometimes 'ZeroConf') and is very convenient.

%files -f avahi.lang
%dir %{_sysconfdir}/%{name}/
%dir %{_sysconfdir}/%{name}/services/
%config(noreplace) %{_sysconfdir}/%{name}/hosts
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-daemon.conf
%config(noreplace) %{_sysconfdir}/%{name}/avahi-autoipd.action
%config(noreplace) %{_datadir}/dbus-1/system.d/%{name}-dbus.conf
%attr(0755,avahi,avahi) %dir %{_localstatedir}/avahi
%{_sysconfdir}/sysconfig/network-scripts/hostname.d/avahi
%{_bindir}/%{name}-browse
%{_bindir}/%{name}-browse-domains
%{_bindir}/%{name}-publish
%{_bindir}/%{name}-publish-address
%{_bindir}/%{name}-publish-service
%{_bindir}/%{name}-resolve
%{_bindir}/%{name}-resolve-address
%{_bindir}/%{name}-resolve-host-name
%{_bindir}/%{name}-set-host-name
%{_sbindir}/%{name}-daemon
%{_sbindir}/avahi-autoipd
%{_datadir}/%{name}/%{name}-service.dtd
%{_datadir}/dbus-1/interfaces/*.xml
%{_mandir}/man1/%{name}-browse-domains.1*
%{_mandir}/man1/%{name}-browse.1*
%{_mandir}/man1/%{name}-discover.1*
%{_mandir}/man1/%{name}-publish.1*
%{_mandir}/man1/%{name}-publish-address.1*
%{_mandir}/man1/%{name}-publish-service.1*
%{_mandir}/man1/%{name}-resolve.1*
%{_mandir}/man1/%{name}-resolve-address.1*
%{_mandir}/man1/%{name}-resolve-host-name.1*
%{_mandir}/man1/%{name}-set-host-name.1*
%{_mandir}/man5/%{name}-daemon.conf.5*
%{_mandir}/man5/%{name}.hosts.5*
%{_mandir}/man5/%{name}.service.5*
%{_mandir}/man8/%{name}-daemon.8*
%{_mandir}/man8/avahi-autoipd*
%dir %{_libdir}/avahi
%if %{with python}
%{_libdir}/avahi/service-types.db
%endif
%{_sysusersdir}/%{name}.conf
%{_unitdir}/avahi-daemon.service
%{_unitdir}/avahi-daemon.socket
%{_datadir}/dbus-1/system-services/org.freedesktop.Avahi.service

%pre
%sysusers_create_package %{name} %{SOURCE2}

%post
%systemd_post %{name}-daemon.service

%preun
%systemd_preun %{name}-daemon.service

#----------------------------------------------------------------------------

%package dnsconfd
Summary:	Avahi DNS configuration server
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description dnsconfd
avahi-dnsconfd is a small daemon which may be used to configure
conventional DNS servers using mDNS in a DHCP-like fashion.
Especially useful on IPv6.

%files dnsconfd
%{_sysconfdir}/%{name}/%{name}-dnsconfd.action
%{_unitdir}/avahi-dnsconfd.service
%{_sbindir}/%{name}-dnsconfd
%{_mandir}/man8/%{name}-dnsconfd.8*
%{_mandir}/man8/%{name}-dnsconfd.action.8*

%post dnsconfd
%systemd_post %{name}-dnsconfd.service

%preun dnsconfd
%systemd_preun %{name}-dnsconfd.service

#----------------------------------------------------------------------------
%package x11
Summary:	Graphical tools for Avahi
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description x11
Graphical tools for Avahi.
It includes avahi-discover-standalone.

%files x11
%if %{with gtk3}
%{_bindir}/%{name}-discover-standalone
%{_bindir}/bshell
%{_bindir}/bssh
%{_bindir}/bvnc
%{_datadir}/applications/bssh.desktop
%{_datadir}/applications/bvnc.desktop
%{_datadir}/%{name}/interfaces/%{name}-discover.ui
%{_mandir}/man1/bshell.1*
%{_mandir}/man1/bssh.1*
%{_mandir}/man1/bvnc.1*
%endif
%if %{with python}
%{_datadir}/applications/%{name}-discover.desktop
%endif
#----------------------------------------------------------------------------

%if %{with python}
%package python3
Summary:	Python bindings and utilities for Avahi
Group:		System/Libraries
Requires:	python3egg(twisted)
Requires:	python3egg(dbus-python)
Requires:	%{name}
Requires:	%{name}-x11

%description python3
Python bindings and utilities for Avahi.
It includes avahi-bookmarks and avahi-discover.

%files python3
%{_bindir}/%{name}-bookmarks
%{_bindir}/%{name}-discover
%{py3_puresitedir}/%{name}/*.py*
%{py3_puresitedir}/%{name}/__pycache__
%{_mandir}/man1/%{name}-bookmarks.1*
%endif

#----------------------------------------------------------------------------

%if %{with mono}
%package sharp
Summary:	Mono bindings for Avahi
Group:		System/Libraries
BuildRequires:	mono-tools
BuildRequires:	mono-devel
BuildRequires:	pkgconfig(gtk-sharp-2.0)
#gw this is needed by mono-find-requires:
#BuildRequires:	avahi-ui-devel
Requires:	%{lib_client_name} = %{EVRD}
Requires:	%{lib_common_name} = %{EVRD}
Requires:	%{lib_glib_name} = %{EVRD}

%description sharp
Mono bindings for Avahi.

%files sharp
%{_prefix}/lib/mono/%{name}-sharp/%{name}-sharp.dll
%{_prefix}/lib/mono/gac/%{name}-sharp/
%{_libdir}/pkgconfig/%{name}-sharp.pc
%{_libdir}/pkgconfig/%{name}-ui-sharp.pc
#----------------------------------------------------------------------------

%package sharp-doc
Summary:	Development documentation for avahi-sharp
Group:		Development/Other
Requires(post,postun):	mono-tools

%description sharp-doc
This package contains the API documentation for the avahi-sharp in
Monodoc format.

%files sharp-doc
%{_usr}/lib/monodoc/sources/%{name}-sharp-docs.source
%{_usr}/lib/monodoc/sources/%{name}-sharp-docs.tree
%{_usr}/lib/monodoc/sources/%{name}-sharp-docs.zip

%post sharp-doc
%{_bindir}/monodoc --make-index > /dev/null

%postun sharp-doc
if [ "$1" = "0" -a -x %{_bindir}/monodoc ]; then %{_bindir}/monodoc --make-index > /dev/null
fi
%endif

#----------------------------------------------------------------------------

%package -n %{lib_client_name}
Summary:	Library for avahi-client
Group:		System/Libraries

%description -n %{lib_client_name}
Library for avahi-client.

%files -n %{lib_client_name}
%{_libdir}/lib%{name}-client.so.%{client_major}*

#----------------------------------------------------------------------------

%package -n %{develnameclient}
Summary:	Devel library for avahi-client
Group:		Development/C
Requires:	%{lib_client_name} = %{EVRD}
Provides:	%{client_name}-devel = %{EVRD}

%description -n %{develnameclient}
Devel library for avahi-client.

%files -n %{develnameclient}
%{_includedir}/%{name}-client
%{_libdir}/lib%{name}-client.so
%{_libdir}/pkgconfig/%{name}-client.pc

#----------------------------------------------------------------------------

%package -n %{lib_common_name}
Summary:	Library for avahi-common
Group:		System/Libraries

%description -n %{lib_common_name}
Library for avahi-common.

%files -n %{lib_common_name}
%{_libdir}/lib%{name}-common.so.%{common_major}*

#----------------------------------------------------------------------------

%package -n %{develnamecommon}
Summary:	Devel library for avahi-common
Group:		Development/C
Requires:	%{lib_common_name} = %{EVRD}
Provides:	%{common_name}-devel = %{EVRD}

%description -n %{develnamecommon}
Devel library for avahi-common.

%files -n %{develnamecommon}
%{_includedir}/%{name}-common
%{_libdir}/lib%{name}-common.so

#----------------------------------------------------------------------------

%package -n %{lib_core_name}
Summary:	Library for avahi-core
Group:		System/Libraries

%description -n %{lib_core_name}
Library for avahi-core.

%files -n %{lib_core_name}
%{_libdir}/lib%{name}-core.so.%{core_major}*

#----------------------------------------------------------------------------

%package -n %{develnamecore}
Summary:	Devel library for avahi-core
Group:		Development/C
Requires:	%{lib_core_name} = %{EVRD}
Provides:	%{core_name}-devel = %{EVRD}

%description -n %{develnamecore}
Devel library for avahi-core.

%files -n %{develnamecore}
%{_includedir}/%{name}-core
%{_libdir}/lib%{name}-core.so
%{_libdir}/pkgconfig/%{name}-core.pc

#----------------------------------------------------------------------------

%package -n %{lib_dns_sd_name}
Summary:	Avahi compatibility library for libdns_sd
Group:		System/Libraries

%description -n %{lib_dns_sd_name}
Avahi compatibility library for libdns_sd.

%files -n %{lib_dns_sd_name}
%{_libdir}/libdns_sd.so.%{dns_sd_major}*

#----------------------------------------------------------------------------

%package -n %{develnamedns_sd}
Summary:	Avahi devel compatibility library for libdns_sd
Group:		Development/C
Requires:	%{lib_dns_sd_name} = %{EVRD}
Provides:	%{dns_sd_name}-devel = %{EVRD}

%description -n %{develnamedns_sd}
Avahi devel compatibility library for libdns_sd.

%files -n %{develnamedns_sd}
%{_includedir}/%{name}-compat-libdns_sd
%{_libdir}/libdns_sd.so
%{_libdir}/pkgconfig/%{name}-compat-libdns_sd.pc

#----------------------------------------------------------------------------

%package -n %{lib_glib_name}
Summary:	Library for avahi-glib
Group:		System/Libraries

%description -n %{lib_glib_name}
Library for avahi-glib.

%files -n %{lib_glib_name}
%{_libdir}/lib%{name}-glib.so.%{glib_major}*

#----------------------------------------------------------------------------

%package -n %{develnameglib}
Summary:	Devel library for avahi-glib
Group:		Development/C
Requires:	%{lib_glib_name} = %{EVRD}
Provides:	%{glib_name}-devel = %{EVRD}

%description -n %{develnameglib}
Devel library for avahi-glib.

%files -n %{develnameglib}
%{_includedir}/%{name}-glib
%{_libdir}/lib%{name}-glib.so
%{_libdir}/pkgconfig/%{name}-glib.pc

#----------------------------------------------------------------------------

%package -n %{lib_gobject_name}
Summary:	Library for avahi-gobject
Group:		System/Libraries

%description -n %{lib_gobject_name}
Library for avahi-gobject.

%files -n %{lib_gobject_name}
%{_libdir}/lib%{name}-gobject.so.%{gobject_major}*

#----------------------------------------------------------------------------

%package -n %{develnamegobject}
Summary:	Devel library for avahi-gobject
Group:		Development/C
Requires:	%{lib_gobject_name} = %{EVRD}
Provides:	%{gobject_name}-devel = %{EVRD}

%description -n %{develnamegobject}
Devel library for avahi-gobject.

%files -n %{develnamegobject}
%{_includedir}/%{name}-gobject
%{_libdir}/lib%{name}-gobject.so
%{_libdir}/pkgconfig/%{name}-gobject.pc

#----------------------------------------------------------------------------

%package -n %{lib_howl_name}
Summary:	Avahi compatibility library for howl
Group:		System/Libraries

%description -n %{lib_howl_name}
Avahi compatibility library for howl.

%files -n %{lib_howl_name}
%{_libdir}/libhowl.so.%{howl_major}*

#----------------------------------------------------------------------------

%package -n %{develnamehowl}
Summary:	Avahi devel compatibility library for libdns_sd for howl
Group:		Development/C
Requires:	%{lib_howl_name} = %{EVRD}
Provides:	%{howl_name}-devel = %{EVRD}

%description -n %{develnamehowl}
Avahi devel compatibility library for libdns_sd for howl.

%files -n %{develnamehowl}
%{_includedir}/%{name}-compat-howl
%{_libdir}/libhowl.so
%{_libdir}/pkgconfig/%{name}-compat-howl.pc
%{_libdir}/pkgconfig/howl.pc

#----------------------------------------------------------------------------
%package -n %{lib_libevent_name}
Summary:	Library for avahi-libevent
Group:		System/Libraries

%description -n %{lib_libevent_name}
Library for avahi-libevent.

%files -n %{lib_libevent_name}
%{_libdir}/lib%{name}-libevent.so.%{libevent_major}*

%package -n %{develnamelibevent}
Summary:	Devel library for avahi-libevent
Group:		Development/C
Provides:	%{libevent_name}-devel = %{EVRD}
Requires:	%{lib_libevent_name} = %{EVRD}
Requires:	%{develnamecore} = %{EVRD}

%description -n %{develnamelibevent}
Devel library for avahi-libevent.

%files -n %{develnamelibevent}
%{_includedir}/%{name}-libevent
%{_libdir}/lib%{name}-libevent.so
%{_libdir}/pkgconfig/%{name}-libevent.pc
#----------------------------------------------------------------------------

%if %{with qt5}
%package -n %{lib_qt5_name}
Summary:	Library for avahi-qt5
Group:		System/Libraries

%description -n %{lib_qt5_name}
Library for avahi-qt5.

%files -n %{lib_qt5_name}
%{_libdir}/lib%{name}-qt5.so.%{qt5_major}*

#----------------------------------------------------------------------------
%package -n %{develnameqt5}
Summary:	Devel library for avahi-qt5
Group:		Development/C
Provides:	%{qt5_name}-devel = %{EVRD}
Requires:	%{lib_qt5_name} = %{EVRD}

%description -n %{develnameqt5}
Devel library for avahi-qt5.

%files -n %{develnameqt5}
%{_includedir}/%{name}-qt5
%{_libdir}/lib%{name}-qt5.so
%{_libdir}/pkgconfig/%{name}-qt5.pc
%endif

#----------------------------------------------------------------------------

%if %{with gtk3}
%package -n %{lib_ui_gtk3_name}
Summary:	Library for avahi-gtk3
Group:		System/Libraries

%description -n %{lib_ui_gtk3_name}
Library for avahi-gtk3.

%files -n %{lib_ui_gtk3_name}
%{_libdir}/lib%{name}-ui-gtk3.so.%{ui_gtk3_major}*
%endif

#----------------------------------------------------------------------------

%if %{with gtk3}
%package -n %{develnameui_gtk3}
Summary:	Devel library for avahi-gtk3
Group:		Development/C
Requires:	%{lib_ui_gtk3_name} = %{EVRD}
Provides:	%{ui_gtk3_name}-devel = %{EVRD}

%description -n %{develnameui_gtk3}
Devel library for avahi-gtk3.

%files -n %{develnameui_gtk3}
%{_libdir}/libavahi-ui-gtk3.so
%{_libdir}/pkgconfig/avahi-ui-gtk3.pc
%{_includedir}/avahi-ui/avahi-ui.h
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

cp %{SOURCE1} avahi-hostname.sh
find . -name "Makefile*" -o -name "*.in" -o -name "*.ac" |sort |uniq |xargs sed -i -e 's,localstatedir\@/run,localstatedir\@,g;s,localstatedir}/run,localstatedir},g'
for f in config.guess config.sub ; do
        test -f /usr/share/libtool/config/$f || continue
        find . -type f -name $f -exec cp /usr/share/libtool/config/$f \{\} \;
done

%build
autoreconf -ifv
export PYTHON=%{__python3}
%configure \
	--disable-static \
%if %{without mono}
	--disable-mono \
%endif
	--disable-qt3 \
%if %{without qt5}
	--disable-qt5 \
%else
	--enable-qt5 \
%endif
%if %{without python}
	--disable-python \
%endif
	--localstatedir=%{_localstatedir} \
	--runstatedir=%{_rundir} \
	--with-avahi-priv-access-group="avahi" \
	--enable-compat-libdns_sd \
	--enable-compat-howl \
	--with-distro=mandriva \
	--enable-introspection=no \
	--with-systemdsystemunitdir=%{_unitdir} \
%if %{without gtk3}
	--disable-gtk3
%else
	--enable-gtk3
%endif

%make_build

%install
%make_install

mkdir -p %{buildroot}%{_localstatedir}/avahi

# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9855
# https://wiki.archlinux.org/index.php/Avahi#Troubleshooting
sed -i -e 's,^publish-workstation=no,publish-workstation=yes,g' \
	-e 's,^use-ipv6=yes,use-ipv6=no,g' \
	%{buildroot}/%{_sysconfdir}/%{name}/avahi-daemon.conf
# validate
grep -q '^publish-workstation=yes' \
	%{buildroot}/%{_sysconfdir}/%{name}/avahi-daemon.conf || exit 1
grep -q '^use-ipv6=no' \
	%{buildroot}/%{_sysconfdir}/%{name}/avahi-daemon.conf || exit 1

# We have a seperate Avahi service in openssh package
rm -f %{buildroot}/%{_sysconfdir}/%{name}/services/ssh.service
rm -f %{buildroot}/%{_sysconfdir}/%{name}/services/sftp-ssh.service
ln -s avahi-compat-howl.pc %{buildroot}%{_libdir}/pkgconfig/howl.pc
%if "%{_lib}" != "lib" && %{with mono}
mkdir -p %{buildroot}%{_prefix}/lib
mv %{buildroot}%{_libdir}/mono %{buildroot}%{_prefix}/lib
perl -pi -e "s/%{_lib}/lib/" %{buildroot}%{_libdir}/pkgconfig/avahi-{,ui-}sharp.pc
%endif

# install hostname.d hook
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/hostname.d/
install -m755 avahi-hostname.sh %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/hostname.d/avahi

rm -rf %{buildroot}%{_initrddir}/%{name}-daemon
rm -rf %{buildroot}%{_initrddir}/%{name}-dnsconfd

rm -f %{buildroot}%{_sysconfdir}/avahi/services/sftp-ssh.service

mkdir -p %{buildroot}%{_sysusersdir}
install -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12082 |21mr|avalon-framework-4.3-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           avalon-framework
Epoch:          0
Version:        4.3
Release:        24
Summary:        Java components interfaces
License:        ASL 2.0
URL:            http://avalon.apache.org/
Group:          Development/Java
BuildArch:    	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/excalibur/avalon-framework/source/%{name}-api-%{version}-src.tar.gz
Source1:        http://archive.apache.org/dist/excalibur/avalon-framework/source/%{name}-impl-%{version}-src.tar.gz

Patch0001:      0001-Port-build-script-to-Maven-3.patch

BuildRequires:  maven-local
BuildRequires:  mvn(avalon-logkit:avalon-logkit)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(log4j:log4j)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

Provides:       deprecated()

%description
The Avalon framework consists of interfaces that define relationships
between commonly used application components, best-of-practice pattern
enforcements, and several lightweight convenience implementations of the
generic components.
What that means is that we define the central interface Component. We
also define the relationship (contract) a component has with peers,
ancestors and children.

%package javadoc
Summary:        API documentation %{name}
Provides:       deprecated()

%description javadoc
%{summary}.

%prep
%setup -qcT
tar xvf %{SOURCE0}
tar xvf %{SOURCE1}
%patch0001 -p1

%mvn_package :aggregator __noinstall
%mvn_file ":*api*" %{name}-api
%mvn_file ":*impl*" %{name}-impl %{name}

# Add proper Apache Felix Bundle Plugin instructions
# so that we get a reasonable OSGi manifest.
for mod in api impl; do
    %pom_xpath_inject pom:project "<packaging>bundle</packaging>" *${mod}*/project.xml
    %pom_xpath_inject pom:build "
      <plugins>
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <extensions>true</extensions>
          <configuration>
            <instructions>
              <Bundle-SymbolicName>avalon-framework-${mod}-4.3</Bundle-SymbolicName>
              <_nouses>true</_nouses>
            </instructions>
          </configuration>
        </plugin>
      </plugins>" *${mod}*/project.xml
done

%mvn_alias 'avalon-framework:{*}' 'org.apache.avalon.framework:@1'

%build
# Test use old jmock
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license avalon-framework-api-4.3/LICENSE.txt
%license avalon-framework-api-4.3/NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license avalon-framework-api-4.3/LICENSE.txt
%license avalon-framework-api-4.3/NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12083 |21mr|avalon-logkit-2.1-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           avalon-logkit
Epoch:          0
Version:        2.1
Release:        33
Summary:        Java logging toolkit
License:        ASL 2.0
URL:            http://avalon.apache.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/excalibur/%{name}/source/%{name}-%{version}-src.zip

Patch0001:      0001-Port-build-script-to-Maven-3.patch
Patch0002:      0002-Port-to-Java-7.patch
Patch0003:      0003-Fix-encoding.patch

BuildRequires:  maven-local
BuildRequires:  mvn(javax.mail:mail)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)

Provides:       deprecated()

%description
LogKit is a logging toolkit designed for secure performance orientated
logging in applications. To get started using LogKit, it is recomended
that you read the whitepaper and browse the API docs.

%package javadoc
Summary:        Javadoc for %{name}
Provides:       deprecated()

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
mv project.xml pom.xml

# LogFactor5 is no longer distributed with log4j
%pom_remove_dep log4j:log4j
rm -rf src/java/org/apache/log/output/lf5

%mvn_file : %{name}
%mvn_alias : logkit:logkit

# Add proper Apache Felix Bundle Plugin instructions
# so that we get a reasonable OSGi manifest.
%pom_xpath_inject pom:project "<packaging>bundle</packaging>"
%pom_xpath_inject pom:build "
  <plugins>
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <extensions>true</extensions>
      <configuration>
        <instructions>
          <Bundle-SymbolicName>avalon-logkit-2.1</Bundle-SymbolicName>
          <_nouses>true</_nouses>
        </instructions>
      </configuration>
    </plugin>
  </plugins>"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12084 |21mr|avidemux-2.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define filename %{name}_%{version}
%define libname		%mklibname %{name}
%define _disable_ld_no_undefined 1
%define _disable_lto 1
%define ffmpegversion	4.4.1

Summary:	A free video editor
Name:		avidemux
Version:	2.8.0
Release:	2
License:	GPLv2+
Group:		Video
Url:		http://fixounet.free.fr/avidemux
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{filename}.tar.gz
Source1:	http://ffmpeg.org/releases/ffmpeg-%{ffmpegversion}.tar.bz2
Source100:	%{name}.rpmlintrc
Patch3:		0001-Disable-faacDecInit-check.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	nasm
BuildRequires:	qt5-linguist-tools
BuildRequires:	xsltproc
BuildRequires:	yasm
BuildRequires:	gettext-devel
BuildRequires:	a52dec-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(twolame)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xv)
#BuildRequires:	aften-devel
BuildRequires:	%{_lib}mp4v2-devel
# not packaged yet:
#BuildRequires:  libaften-devel
BuildRequires:	libfaac-devel
BuildRequires:	libfaad2-devel
BuildRequires:	liblame-devel
BuildRequires:	xvid-devel
%ifarch x86_64
BuildRequires:	ffnvcodec-headers
%endif
# dcaenc in contrib
#BuildRequires:	pkgconfig(dcaenc)
BuildRequires:	pkgconfig(libdca)
BuildRequires:	pkgconfig(opencore-amrnb)
BuildRequires:	pkgconfig(opencore-amrwb)
BuildRequires:	pkgconfig(x264)
BuildRequires:	pkgconfig(x265)
BuildRequires:	pkgconfig(glu)
Requires:	avidemux-ui
ExcludeArch:	%{ix86}

%description
Avidemux is a free video editor designed for simple cutting,
filtering and encoding tasks.It supports many file types, including
AVI, DVD compatible MPEG files, MP4 and ASF, using a variety of
codecs. Tasks can be automated using projects, job queue and
powerful scripting capabilities.

%package qt
Summary:	A free video editor - Qt5 GUI
Group:		Video
%rename		%{name}
Requires:	%{libname} =  %{EVRD}
Requires:	%{name}-plugins
Provides:	avidemux-ui = %{EVRD}
Provides:	avidemux-gtk = %{EVRD}
Obsoletes:	avidemux-gtk < %{EVRD}

%description qt
Avidemux is a free video editor. This package contains the
version with a graphical user interface based on Qt5.

%files qt
%{_bindir}/avidemux3_qt5
%{_bindir}/avidemux3_jobs_qt5
%{_libdir}/libADM_UIQT56.so
%{_libdir}/libADM_render6_QT5.so
%{_libdir}/libADM_openGLQT56.so
%dir %{_datadir}/avidemux6
%dir %{_datadir}/avidemux6/qt5
%{_datadir}/metainfo/org.avidemux.Avidemux.appdata.xml
%{_iconsdir}/hicolor/128x128/apps/org.avidemux.Avidemux.png
%{_datadir}/applications/org.avidemux.Avidemux.desktop
%dir %{_datadir}/avidemux6/qt5/i18n
%{_datadir}/avidemux6/qt5/i18n/*.qm
%{_libdir}/ADM_plugins6/videoFilters/qt5/*.so

#----------------------------------------------------------------------------

%package cli
Summary:	A free video editor - command-line version
Group:		Video
%rename		%{name}
Requires:	%{libname} =  %{EVRD}
Requires:	%{name}-plugins
Provides:	avidemux-ui = %{EVRD}

%description cli
Avidemux is a free video editor. This package contains the
version with a command-line interface.

%files cli
%{_mandir}/man1/avidemux.1*
%{_bindir}/avidemux3_cli
%{_libdir}/libADM_UI_Cli6.so
%{_libdir}/libADM_render6_cli.so
%{_libdir}/ADM_plugins6/videoFilters/cli/*.so

#----------------------------------------------------------------------------

%package	plugins
Summary:	Plugins for %{name}

%description	plugins
This package contains the common plugins for %{name}.

%files plugins
%dir %{_libdir}/ADM_plugins6
%dir %{_libdir}/ADM_plugins6/*
%{_libdir}/ADM_plugins6/*/*
%exclude %{_libdir}/ADM_plugins6/videoFilters/cli/*.so
%exclude %{_libdir}/ADM_plugins6/videoFilters/qt5/*.so

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Shared libraries for %{name}

%description -n	%{libname}
Shared libraries for %{name}.

%files -n %{libname}
%{_libdir}/libADM_audio*.so
%{_libdir}/libADM_core*.so
%{_libdir}/libADM6*.so.*

#----------------------------------------------------------------------------

%package	devel
Summary:	Header files for %{name}
Requires:	%{libname} =  %{EVRD}
Requires:	pkgconfig(vdpau)
Obsoletes:	%{name}-qt-devel <  %{EVRD}
Obsoletes:	%{name}-cli-devel <  %{EVRD}

%description devel
Development files for %{name}.

%files devel
%{_includedir}/%{name}

#----------------------------------------------------------------------------


%prep
%setup -qn %{filename}
rm -f avidemux_core/ffmpeg_package/ffmpeg-*.tar.bz2
cp %{SOURCE1} avidemux_core/ffmpeg_package/
%autopatch -p1

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
export PATH=%{_libdir}/qt5/bin:$PATH
%global optflags %optflags -std=c++14
bash bootStrap.bash \
     --with-core \
     --with-cli \
     --with-plugins \
     --with-system-libass \
     --with-system-liba52 \
     --with-system-libmad \
     --with-system-libmp4v2

%install
cp -a install/* %{buildroot}
mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 man/avidemux.1 %{buildroot}%{_mandir}/man1
chrpath --delete %{buildroot}%{_libdir}/*.so*
chrpath --delete %{buildroot}%{_libdir}/ADM_plugins6/*/*.so
chrpath --delete %{buildroot}%{_bindir}/*
rm -rf %{buildroot}%{_datadir}/ADM6_addons

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12085 |21mr|avogadro-1.97.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define maj0 0
%define libname %mklibname %{name} %{major}
%define libOQ   %mklibname %{name}_OpenQube %{maj0}
%define devname %mklibname %{name} -d

%global commit_i18n 07bee855ee8f34b64caf804e69cc4c0b34112ca3

Summary:	An advanced molecular editor for chemical purposes
Name:		avogadro
Version:	1.97.0
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		https://www.openchemistry.org/projects/avogadro2/
Source0:	https://github.com/OpenChemistry/avogadroapp/archive/refs/tags/%{version}.tar.gz?/%{name}app-%{version}.tar.gz
Source1:	https://github.com/OpenChemistry/avogadro-i18n/archive/%{commit_i18n}/%{name}-i18n-%{commit_i18n}.tar.gz
BuildRequires:	cmake(ECM)
BuildRequires:	cmake ninja
BuildRequires:	doxygen
BuildRequires:	hdf5-devel
BuildRequires:	spglib-devel
BuildRequires:	cmake(AvogadroLibs) = %{version}
BuildRequires:	cmake(MoleQueue)
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	qt5-macros
Requires:	avogadrolibs = %{version}
Requires:	openbabel
Requires:	xtb

%description
An advanced molecular editor designed for cross-platform use
in computational chemistry,molecular modeling, bioinformatics,
materials science,and related areas, which offers flexible
rendering and a powerful plugin architecture.

%files
%doc CONTRIBUTING.md README.md
%doc %{_docdir}/AvogadroApp
%{_bindir}/%{name}2
%{_datadir}/applications/%{name}2.desktop
%{_datadir}/pixmaps/%{name}2.png
%{_datadir}/avogadro2/i18n/*
%{_datadir}/metainfo/*
%{_iconsdir}/hicolor/*/apps/%{name}2.png

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}app-%{version} -a1

# Make avogadro-i18n generators source code available for CMake
mv %{name}-i18n-%{commit_i18n} %{name}-i18n
mv %{name}-i18n/README.md %{name}-i18n/README-%{name}-i18n.md
sed -e 's|../%{name}-i18n|%{name}-i18n|g' -i %{name}/CMakeLists.txt

#Fix permissions
find . -type f -name "*.h" -exec chmod 0644 '{}' \;
find . -type f -name "*.cc" -exec chmod 0644 '{}' \;
find . -type f -name "*.c" -exec chmod 0644 '{}' \;

%build
%cmake_qt5 \
	-DENABLE_TESTING:BOOL=OFF \
	-DBUILD_DOCUMENTATION:BOOL=ON \
	-G Ninja
%ninja_build

%install
%ninja_install -C build

# more icons
for i in 64 128 256 512; do
	install -Dpm 644 avogadro/icons/%{name}2_${i}.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{name}2.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12086 |21mr|avogadrolibs-1.97.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO: molequeue has to be fixed: its libs are unversioned,
# but this package is linked with them!!
%global __requires_exclude ^devel\\(libMoleQueue.*)$

# See https://github.com/OpenChemistry/avogadrolibs/issues/362
%global commit_gen b00be69a09cfd959a562db8ec769796427ce2a66
%global commit_mol ecfb0c27ce02550ff6014a35fbe6a4483032403d
%global commit_cry e4f8a677b390bd68604839a8ec07e14f37b7093b

Name:		avogadrolibs
Version:	1.97.0
Release:	1
Summary:	An advanced molecular editor
License:	BSD
Group:		Sciences/Chemistry
Url:		http://www.openchemistry.org/projects/avogadro2/
Source0:	https://github.com/OpenChemistry/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	https://github.com/OpenChemistry/avogenerators/archive/%{commit_gen}/avogenerators-%{commit_gen}.tar.gz
Source2:	https://github.com/openchemistry/molecules/archive/%{commit_mol}/molecules-%{commit_mol}.tar.gz
Source3:	https://github.com/openchemistry/crystals/archive/%{commit_cry}/crystals-%{commit_cry}.tar.gz
# Fix devel file path
Patch0:		%{name}-FindSpglib.patch
Patch1:		%{name}-avospglib.patch
# Fix "Unable to retrieve program name"
# https://github.com/OpenChemistry/avogadrolibs/pull/1336/files
Patch2:		%{name}-pythonscript.patch
Patch3:		%{name}-scriptloader.patch
Patch4:		%{name}-antechamber.patch
Patch5:		%{name}-xtb.patch
Patch6:		2b182d44bb8307600a25066a28c781016d4f71c8.patch

BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	spglib-devel
BuildRequires:	msym-devel
BuildRequires:	mmtf-cpp-devel
BuildRequires:	molequeue-devel
BuildRequires:	cmake(msgpack)
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	git
BuildRequires:	hdf5-devel


%description
Avogadro is an advanced molecular editor designed for cross-platform use in
computational chemistry, molecular modeling, bioinformatics, materials science,
and related areas. It offers flexible rendering and a powerful plugin
architecture. The code in this repository is a rewrite of Avogadro with source
code split across a libraries repository and an application repository. Core
features and goals of the Avogadro project:

  * Open source distributed under the liberal 3-clause BSD license
  * Cross platform with nightly builds on Linux, Mac OS X and Windows
  * Intuitive interface designed to be useful to whole community
  * Fast and efficient embracing the latest technologies
  * Extensible, making extensive use of a plugin architecture
  * Flexible supporting a range of chemical data formats and packages

%files
%doc avogadrogenerators/README-avogenerators.md
%doc thirdparty/libgwavi/README-libgwavi.md
%doc %{_docdir}/AvogadroLibs/
%doc LICENSE
%{_libdir}/avogadro2/
%{_datadir}/avogadro2/

#----------------------------------------------------

%define core_major		1
%define libcorename		%mklibname avogadrocore %{core_major}

%package -n	%{libcorename}
Summary:	Avogadro Core library
Group:		System/Libraries
Requires:	%{name} >= %{version}-%{release}

%description -n	%{libcorename}
Avogadro Core library.

%files -n %{libcorename}
%{_libdir}/libAvogadroCore.so.%{core_major}{,.*}

#----------------------------------------------------

%define io_major		1
%define libioname		%mklibname avogadroio %{io_major}

%package -n	%{libioname}
Summary:	Avogadro IO library
Group:		System/Libraries

%description -n	%{libioname}
Avogadro IO library.

%files -n %{libioname}
%{_libdir}/libAvogadroIO.so.%{io_major}*

#----------------------------------------------------

%define molequeue_major		1
%define libmolequeuename	%mklibname avogadromolequeue %{molequeue_major}

%package -n	%{libmolequeuename}
Summary:	Avogadro MoleQueue library
Group:		System/Libraries

%description -n	%{libmolequeuename}
Avogadro MoleQueue library.

%files -n %{libmolequeuename}
%{_libdir}/libAvogadroMoleQueue.so.%{molequeue_major}*

#----------------------------------------------------

%define qtgui_major		1
%define libqtguiname		%mklibname avogadroqtgui %{qtgui_major}

%package -n	%{libqtguiname}
Summary:	Avogadro Qt Gui library
Group:		System/Libraries

%description -n	%{libqtguiname}
Avogadro Qt Gui library.

%files -n %{libqtguiname}
%{_libdir}/libAvogadroQtGui.so.%{qtgui_major}*

#----------------------------------------------------

%define qtopengl_major		1
%define libqtopenglname		%mklibname avogadroqtopengl %{qtopengl_major}

%package -n	%{libqtopenglname}
Summary:	Avogadro Qt OpenGL library
Group:		System/Libraries

%description -n	%{libqtopenglname}
Avogadro Qt OpenGL library.

%files -n %{libqtopenglname}
%{_libdir}/libAvogadroQtOpenGL.so.%{qtopengl_major}*

#----------------------------------------------------

%define qtplugins_major		1
%define libqtpluginsname	%mklibname avogadroqtplugins %{qtplugins_major}

%package -n	%{libqtpluginsname}
Summary:	Avogadro Qt Plugins library
Group:		System/Libraries

%description -n	%{libqtpluginsname}
Avogadro Qt Plugins library.

%files -n %{libqtpluginsname}
%{_libdir}/libAvogadroQtPlugins.so.%{qtplugins_major}*

#----------------------------------------------------

%define quantumio_major		1
%define libquantumioname	%mklibname avogadroquantumio %{quantumio_major}

%package -n	%{libquantumioname}
Summary:	Avogadro Quantum IO library
Group:		System/Libraries

%description -n	%{libquantumioname}
Avogadro Quantum IO library.

%files -n %{libquantumioname}
%{_libdir}/libAvogadroQuantumIO.so.%{quantumio_major}*

#----------------------------------------------------

%define rendering_major		1
%define librenderingname	%mklibname avogadrorendering %{rendering_major}

%package -n	%{librenderingname}
Summary:	Avogadro Rendering library
Group:		System/Libraries

%description -n	%{librenderingname}
Avogadro Rendering library.

%files -n %{librenderingname}
%{_libdir}/libAvogadroRendering.so.%{rendering_major}*

#----------------------------------------------------

%define calc_major         1
%define libcalcname        %mklibname avogadrocalc %{calc_major}

%package -n     %{libcalcname}
Summary:        Avogadro Calc library
Group:          System/Libraries

%description -n %{libcalcname}
Avogadro Calc library.

%files -n %{libcalcname}
%{_libdir}/libAvogadroCalc.so.%{calc_major}{,.*}

#----------------------------------------------------

%define devname		%mklibname %{name} -d

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} >= %{version}-%{release}
Requires:	%{libcorename} >= %{version}-%{release}
Requires:	%{libioname} >= %{version}-%{release}
Requires:	%{libmolequeuename} >= %{version}-%{release}
Requires:	%{libqtguiname} >= %{version}-%{release}
Requires:	%{libqtopenglname} >= %{version}-%{release}
Requires:	%{libqtpluginsname} >= %{version}-%{release}
Requires:	%{libquantumioname} >= %{version}-%{release}
Requires:	%{librenderingname} >= %{version}-%{release}
Requires:	%{libcalcname} >= %{version}-%{release}
Requires:	molequeue-devel
Provides:	avogadro2-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{name}-devel < 1.90.0-7

%description -n	%{devname}
Header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/avogadro/
%{_libdir}/cmake/%{name}/
%{_libdir}/*.so
%{_libdir}/avogadro2/libgwavi.a

#----------------------------------------------------

%prep
%setup -q -a 1
%autopatch -p1

tar xzf %{SOURCE1}
tar xzf %{SOURCE2}
tar xzf %{SOURCE3}

# Make avogadro generators source code available for CMake
mv avogenerators-%{commit_gen} avogadrogenerators
mv avogadrogenerators/README.md avogadrogenerators/README-avogenerators.md
sed -e 's|../avogadrogenerators|avogadrogenerators|g' -i avogadro/qtplugins/quantuminput/CMakeLists.txt

# Make molecules source code available for CMake
mv molecules-%{commit_mol} molecules
mv molecules/README.md molecules/README-molecules.md
sed -e 's|../molecules|molecules|g' -i avogadro/qtplugins/insertfragment/CMakeLists.txt

# Make crystals source code available for CMake
mv crystals-%{commit_cry} crystals
mv crystals/README.md crystals/README-crystals.md
sed -e 's|../crystals|crystals|g' -i avogadro/qtplugins/insertfragment/CMakeLists.txt

mv thirdparty/libgwavi/README.md thirdparty/libgwavi/README-libgwavi.md

%build
%cmake_qt5 \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_PREFIX=/usr \
    -DCMAKE_INSTALL_LIBDIR=%{_lib} \
    -DUSE_MOLEQUEUE=ON \
    -DUSE_LIBMSYM=OFF \
    -DUSE_OPENGL=ON \
    -DUSE_QT=ON \
    -DUSE_HDF5=ON \
    -DUSE_VTK=OFF \
    -DUSE_MMTF=OFF

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12087 |21mr|avrdude-6.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Software for programming Atmel AVR Microcontroller
Name:		avrdude
Version:	6.3
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.nongnu.org/avrdude
Source0:	http://download.savannah.gnu.org/releases/%{name}/%{name}-%{version}.tar.gz
Source1:	avrdude-udev-rules
Patch0:		avrdude-doc.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	texi2html
BuildRequires:	texinfo
BuildRequires:	glibc-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(ncurses)

%description
AVRDUDE is a program for programming Atmel's AVR CPU's. It can program
the Flash and EEPROM, and where supported by the serial programming
protocol, it can program fuse and lock bits. AVRDUDE also supplies a
direct instruction mode allowing one to issue any programming
instruction to the AVR chip regardless of whether AVRDUDE implements
that specific feature of a particular chip.

%files
%doc README AUTHORS ChangeLog* COPYING NEWS doc/TODO
%config(noreplace) %{_sysconfdir}/%{name}
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_infodir}/%{name}.info*
%{_udevrulesdir}/70-avrdude_usbprog.rules

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

sed -i 's|/usr/local/etc/avrdude.conf|%{_sysconfdir}/%{name}/avrdude.conf|g' doc/avrdude.texi avrdude.1
sed -i 's|/etc/avrdude.conf|%{_sysconfdir}/%{name}/avrdude.conf|g' doc/avrdude.texi avrdude.1
# To fix build failures on i586 HAVE_STDINT_H should be replaced with 1
perl -lp -i -e 's/\A#if\s+HAVE_STDINT_H\s*\z/#if 1/' *.c
iconv -f ISO88591 -t UTF8 < ChangeLog-2003 > ChangeLog-2003~
mv ChangeLog-2003~ ChangeLog-2003
iconv -f ISO88591 -t UTF8 < NEWS > NEWS~
mv NEWS~ NEWS

%build
autoreconf -fi
%configure \
	--disable-shared \
	--enable-doc \
	--sysconfdir=%{_sysconfdir}/%{name}
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_udevrulesdir}
install -m 644 %{SOURCE1} %{buildroot}%{_udevrulesdir}/70-avrdude_usbprog.rules

rm -f %{buildroot}%{_infodir}/dir
# We don't need development package
rm -rf %{buildroot}%{_includedir}
rm -f %{buildroot}%{_libdir}/libavrdude.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12088 |21mr|avr-libc-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The C Runtime Library for AVR Microcontrollers
Name:		avr-libc
Version:	2.0.0
Release:	2
License:	BSD
Group:		Development/C
Url:		http://savannah.nongnu.org/projects/avr-libc
#Source0:	http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
# since 3.4.3 atmel no longer distributes patch set, only patched sources in tarball
Source0:	http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.5.4/avr-libc.tar.bz2#/avr-libc-%{version}+atmel.tar.bz2
Source1:	http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{version}.tar.bz2
Source2:	http://savannah.nongnu.org/download/%{name}/%{name}-user-manual-%{version}.pdf.bz2
Source3:	http://savannah.nongnu.org/download/%{name}/%{name}-manpages-%{version}.tar.bz2
Source4:	http://distribute.atmel.no/tools/opensource/Atmel-AVR-GNU-Toolchain/3.5.4/avr/avr8-headers.zip
Source5:	logicp-1.01.tgz
Source6:	%{name}.rpmlintrc
Patch0:		avr-libc-1.6.4-documentation.patch
Patch100:	logicp-1.01-mdv-replace-deprecated-vector-names.patch
BuildRequires:	cross-avr-binutils
BuildRequires:	cross-avr-gcc
BuildRequires:	dos2unix
BuildRequires:	doxygen
BuildRequires:	findutils
Requires:	cross-avr-binutils
Requires:	cross-avr-gcc
BuildArch:	noarch

%description
The C runtime library for the AVR family of microcontrollers for use
with the GNU toolset (cross-avr-binutils, cross-avr-gcc, uisp, etc.).

Authors:
--------
    Joerg Wunsch <j.gnu@uriah.heep.sax.de>
    Marek Michalkiewicz <marekm@amelek.gda.pl>
    Theodore A. Roth <troth@openavr.org>

%files
%dir %{_prefix}/avr
%dir %{_prefix}/avr/share
%doc %{_prefix}/avr/share/man
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/AUTHORS
%doc %{_docdir}/%{name}/C*
%doc %{_docdir}/%{name}/LICENSE
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/TODO
%doc %{_docdir}/%{name}/examples
%{_prefix}/avr/include
%{_prefix}/avr/lib
%{_bindir}/avr-man

#----------------------------------------------------------------------------

%package doc
Summary:	AVR C library docs in html and pdf format
Group:		Documentation
Requires:	%{name} = %{EVRD}
Obsoletes:	%{name}-docs < %{version}-%{release}

%description doc
This package contains the AVR C library docs in html and pdf format, the main
package already contains the docs in man-page format (use "avr-man xxxx" to
access these).

%files doc
%doc %{_docdir}/%{name}/html
%doc %{_docdir}/%{name}/%{name}*.pdf
#----------------------------------------------------------------------------

%prep
%setup -q -c -b5

# atmel's tarball needs some shuffling to have expected directory layout
# must be done in two steps because of conflicting libc directory
mv libc delete-libc
mv delete-libc/avr-libc/* .
rmdir delete-libc/avr-libc
tar -joxf %{SOURCE3}

%patch0 -p1

dos2unix doc/examples/twitest/twitest.c
pushd ../logicp-1.01
%patch100 -p1
popd

I=0
unzip %{SOURCE4} -d avr8-headers
for i in ./avr8-headers/avr/io[0-9a-zA-Z]*.h
do
  cp $i include/avr/ -v
done

# Add html docs
mkdir html
cd html/
tar -jxvf %{SOURCE1}
cd -

# Add pdf manual
mkdir pdf
cd pdf/
bzip2 -dc %{SOURCE2} > avr-libc-user-manual-%{version}.pdf
cd -

for i in doc/api/faq.dox doc/api/overview.dox include/stdio.h include/stdlib.h;
  do
    iconv -f CP1252 -t UTF8 $i > tmp
    mv tmp $i
done
sed -i 's|@DOC_INST_DIR@/man|%{_prefix}/avr/share/man|' scripts/avr-man.in

%build
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags}"
export PREFIX=%{_prefix}
export PATH=%{_prefix}/bin:$PATH
./bootstrap
./configure --prefix=%{_prefix} --host=avr
make

%install
export PREFIX=%{_prefix}
export PATH=%{_prefix}/bin:$PATH

# ./domake DESTDIR=%%{buildroot} install
make DESTDIR=%{buildroot} install

# put the man-pages in the FHS mandir and gzip them
mkdir -p %{buildroot}%{_prefix}/avr/share
find man/ -type f -exec gzip {} \;
mv man  %{buildroot}%{_prefix}/avr/share

# we only want to use %doc with an absolute path to avoid rpmbuild from erasing
# %{_docdir}/%{name}
mv %{buildroot}%{_docdir}/%{name}-%{version} %{buildroot}%{_docdir}/%{name}
install -p -m 644 doc/TODO doc/CHANGES.old AUTHORS ChangeLog* LICENSE NEWS \
  pdf/* README %{buildroot}%{_docdir}/%{name}
mkdir %{buildroot}%{_docdir}/%{name}/html
cp -ap html/%{name}-user-manual*/* %{buildroot}%{_docdir}/%{name}/html
chmod -R u=rwX,g=rX,o=rX %{buildroot}%{_docdir}/%{name}/html

# despite us being noarch redhat-rpm-config insists on stripping our files
%global __os_install_post /usr/lib/rpm/brp-compress

#tar jxvf %{S:1}
#mv %{name}-user-manual-%{version} user-manual-%{version}
#mkdir -p %{buildroot}/usr/share/doc/%{name}-%{version}
#cp -pr AUTHORS ChangeLog LICENSE NEWS user-manual-%{version} %{buildroot}/usr/share/doc/%{name}-%{version}
#cat >> %{buildroot}/usr/share/doc/%{name}-%{version}/00_index.html <<EOF
#<head><meta http-equiv="Refresh" content="0; user-manual-%{version}/pages.html"></head>
#<a href="user-manual-%{version}/pages.html">user-manual-%{version}/pages.html</a>
#EOF
#tar jxvf %{S:2} -C %{buildroot}/%{_prefix}/share
#mv %{buildroot}/%{_prefix}/share/man %{buildroot}/usr/share/doc/%{name}-%{version}
#find %{buildroot}/usr/share/doc/%{name}-%{version}/man -type f -print | xargs xz

%check
# selftest disabled, may be logicp high old?
#ld: error: cannot change output format whilst linking AVR binaries

### selftest ###
#cd ../logicp*
## how do we tell the linker that crt*.o is at a nonstandard location?
#ln -sf %{buildroot}%{_prefix}/avr/lib/crt*.o .
#ln -sf %{buildroot}%{_prefix}/avr/lib/avr4/crtatmega8.o .
#ln -sf %{buildroot}%{_prefix}/avr/lib/avr?/crtm*.o .
#make test CFLAGS="-Wall -g -Os -mint8 -I%{buildroot}%{_prefix}/avr/include/ -L%{buildroot}%{_prefix}/avr/lib/avr4" CPU=mega8
#make test CFLAGS="-Wall -g -Os -mint8 -I%{buildroot}%{_prefix}/avr/include/ -L%{buildroot}%{_prefix}/avr/lib/avr4" CPU=mega48
#make test CFLAGS="-Wall -g -Os -mint8 -I%{buildroot}%{_prefix}/avr/include/ -L%{buildroot}%{_prefix}/avr/lib"      CPU=tiny2313

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12089 |21mr|avro-1.7.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define thrift 0

Name:             avro
Version:          1.7.6
Release:          6
Summary:          Data serialization system
License:          ASL 2.0
URL:              http://avro.apache.org
Group:            Development/Java
# svn export http://svn.apache.org/repos/asf/avro/tags/release-1.7.6/ avro-1.7.6
# find avro-1.7.6/ -name '*.jar' -delete -or -name '*.dll' -print -delete
# tar cJf avro-1.7.6-CLEAN.tar.xz avro-1.7.6
Source0:          avro-%{version}-CLEAN.tar.xz
Patch0:           avro-1.7.6-ipc-changes-for-jetty-upgrade.patch
Patch1:           avro-1.7.6-jdk8.patch

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(com.thoughtworks.paranamer:paranamer)
BuildRequires:    mvn(io.netty:netty:3)
BuildRequires:    mvn(org.apache:apache:pom:)
BuildRequires:    mvn(org.apache.hadoop:hadoop-client)
BuildRequires:    mvn(org.apache.maven:maven-project)
BuildRequires:    mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugin-plugin)
%if %{thrift}
BuildRequires:    mvn(org.apache.thrift:libthrift)
%endif
BuildRequires:    mvn(org.codehaus.jackson:jackson-core-asl)
BuildRequires:    mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires:    mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires:    mvn(org.codehaus.jettison:jettison)
BuildRequires:    mvn(org.eclipse.jetty:jetty-server)
BuildRequires:    mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:    mvn(org.eclipse.jetty:jetty-util)
BuildRequires:    mvn(org.slf4j:slf4j-api)
BuildRequires:    mvn(org.slf4j:slf4j-simple)
BuildRequires:    mvn(org.tukaani:xz)
BuildRequires:    mvn(org.xerial.snappy:snappy-java)

%description
Apache Avro is a data serialization system.

Avro provides:

* Rich data structures.
* A compact, fast, binary data format.
* A container file, to store persistent data.
* Remote procedure call (RPC).
* Simple integration with dynamic languages. Code generation is not required
  to read or write data files nor to use or implement RPC protocols. Code
  generation as an optional optimization, only worth implementing for
  statically typed languages.

%package compiler
Summary:          Apache Avro Compiler

%description  compiler
Avro Compilers for Avro IDL and Avro Specific Java API

%package ipc
Summary:          Apache Avro IPC

%description  ipc
Avro inter-process communication components

%package mapred
Summary:          Apache Avro Mapred API
Requires:         hadoop-client
Requires:         hadoop-mapreduce

%description  mapred
An org.apache.hadoop.mapred compatible API
for using Avro Serialization in Hadoop

%package maven-plugin
Summary:          Apache Avro Maven Plugin

%description  maven-plugin
Avro Maven plugin for Avro IDL and Specific API Compilers

%package parent
Summary:          Apache Avro Java parent POM

%description  parent
Avro parent POM Java project

%package protobuf
Summary:          Apache Avro Protobuf Compatibility

%description  protobuf
Permit serialization of Protobuf-generated classes as Avro data.

%if %{thrift}
%package thrift
Summary:          Apache Avro Thrift Compatibility

%description  thrift
Permit serialization of Thrift-generated classes as Avro data.
%endif

%package toplevel
Summary:          Apache Avro Toplevel POM

%description  toplevel
Apache Avro Toplevel POM

%package trevni
Summary:          Trevni Java
Requires:         avro-mapred

%description  trevni
Trevni: A Column File Format

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Unsupported features
%pom_disable_module archetypes lang/java
%pom_disable_module tools lang/java
%if ! %{thrift}
%pom_disable_module thrift lang/java
%endif

%pom_xpath_set pom:properties/pom:hadoop2.version 2.0.5-alpha lang/java
%pom_xpath_set pom:properties/pom:jetty.version 9.0.3.v20130506 lang/java
%pom_xpath_set pom:properties/pom:jetty-servlet-api.version 3.1.0 lang/java
%pom_change_dep -r :junit-dep :junit lang/java

# Use netty 3 compat package
%pom_xpath_set pom:properties/pom:netty.version 3 lang/java

# Remove panamer plugin for test jar generation
%pom_remove_plugin com.thoughtworks.paranamer:paranamer-maven-plugin lang/java/avro

# package org.tukaani.xz does not exist
%pom_add_dep org.tukaani:xz lang/java/avro

# Need explicit maven-artifact declaration
%pom_add_dep org.apache.maven:maven-artifact lang/java/maven-plugin

# Remove ipc tests from mapred
%pom_remove_dep :avro-ipc lang/java/mapred
%pom_add_dep org.apache.avro:avro-ipc:%{version} lang/java/mapred

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions/pom:execution[pom:id = 'main']" lang/java/mapred
for mod in mapred trevni/avro; do
    %pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
        <execution>
          <id>default-jar</id>
          <phase>skip</phase>
        </execution>" lang/java/${mod}
done
 
%mvn_package ":trevni-doc"  __noinstall
%mvn_package ":trevni-avro" trevni
%mvn_package ":trevni-core" trevni
%mvn_package ":trevni-java" trevni
%mvn_package ":trevni-avro::hadoop2:" trevni
%mvn_package ":avro-mapred::hadoop2:" avro-mapred

%build

# per FIXME comment in avro build.sh, enforcer is broken so define avro.version here
%mvn_build -sf -- -Dhadoop.version=2 -P hadoop2 -Dcheckstyle.skip=true -Davro.version=%{version}

%install
%mvn_install

%files -f .mfiles-avro
%doc README.txt
%license LICENSE.txt NOTICE.txt

%files compiler -f .mfiles-avro-compiler
%license LICENSE.txt NOTICE.txt

%files ipc -f .mfiles-avro-ipc
%license LICENSE.txt NOTICE.txt

%files mapred -f .mfiles-avro-mapred
%license LICENSE.txt NOTICE.txt

%files maven-plugin -f .mfiles-avro-maven-plugin
%license LICENSE.txt NOTICE.txt

%files parent -f .mfiles-avro-parent
%license LICENSE.txt NOTICE.txt

%files protobuf -f .mfiles-avro-protobuf
%license LICENSE.txt NOTICE.txt

%if %{thrift}
%files thrift -f .mfiles-avro-thrift
%license LICENSE.txt NOTICE.txt
%endif

%files toplevel -f .mfiles-avro-toplevel
%license LICENSE.txt NOTICE.txt

%files trevni -f .mfiles-trevni
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12090 |21mr|awesfx-0.5.1c-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility programs for the AWE32 sound driver
Name:		awesfx
Version:	0.5.1c
Release:	13
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.alsa-project.org/~iwai/awedrv.html#Utils
Source0:	http://www.alsa-project.org/~iwai/%{name}-%{version}.tar.bz2
Source2:	http://www.pvv.org/~thammer/localfiles/soundfonts_other/gu11-rom.zip
Patch0:		awesfx-0.5.1c-getline.patch
BuildRequires:	unzip
BuildRequires:	pkgconfig(alsa)

%description
The awesfx package contains necessary utilities for the AWE32 sound driver.

If you use an AWE32 sound driver, you should install this package.

%files
%doc gu11-rom
%config(noreplace) %{_sysconfdir}/midi/GU11-ROM.SF2
/bin/*
%{_bindir}/*
%{_mandir}/man1/*.1*
%{_datadir}/sounds/sf2

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for awesfx
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
Development files needed for awesfx.

%files devel
%dir %{_includedir}/awe
%{_includedir}/awe/*
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
mkdir gu11-rom
cd gu11-rom
unzip %{SOURCE2}
cd ..

#install -m644 %{SOURCE3} -D include/linux/awe_voice.h

#perl -pi -e "s|getline|awesfx_getline|g" *.c

%build
%configure
%make

%install
mkdir -p %{buildroot}%{_mandir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_sysconfdir}/midi
mkdir -p %{buildroot}/bin
%{makeinstall_std}
mkdir -p %{buildroot}%{_includedir}/awe
for i in include/*.h ; do
install -m 644 $i %{buildroot}%{_includedir}/awe
done
mv %{buildroot}%{_bindir}/sfxload %{buildroot}/bin/
cp gu11-rom/GU11-ROM.SF2 %{buildroot}%{_sysconfdir}/midi

rm -rf %{buildroot}%{_libdir}/sfbank
install -m 644 awelib/libawe.a %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12091 |21mr|aws-sdk-java-1.11.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 9883b981ab5103cc6944fbf8f3b973994777350f
Name:          aws-sdk-java
Version:       1.11.3
Release:       8
Summary:       AWS SDK for Java
# Some source files are without license headers
# reported @ https://github.com/aws/aws-sdk-java/issues/719
# This file aws-java-sdk-core/src/test/java/org/bitpedia/util/Base32.java is under Public Domain license
# http://bitzi.com/publicdomain for more info.
# brazil/src/appgroup/globalPaymentServices/tools/YaUtils/mainline/tst/org/bitpedia/util/Base32.java
License:       ASL 2.0
URL:           http://aws.amazon.com/sdk-for-java/
Source0:       https://github.com/aws/aws-sdk-java/archive/%{githash}/%{name}-%{githash}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-cbor)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(javax.mail:javax.mail-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
# code-generator deps
#BuildRequires: mvn(org.eclipse:text:3.3.0-v20070606-0010)
#BuildRequires: mvn(org.eclipse.jdt:org.eclipse.jdt.core:3.10.0)
#BuildRequires: mvn(org.freemarker:freemarker)
# maven-plugin deps
#BuildRequires: mvn(org.apache.maven:maven-plugin-api)
#BuildRequires: mvn(org.apache.maven:maven-project)
#BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
#BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
# swf-libraries deps
# springframework:3.0.7.RELEASE
#BuildRequires: mvn(org.springframework:spring-beans)
#BuildRequires: mvn(org.springframework:spring-context)
#BuildRequires: mvn(org.springframework:spring-core)
#BuildRequires: mvn(org.springframework:spring-test)
#BuildRequires: mvn(org.aspectj:aspectjrt:1.8.2)
#BuildRequires: mvn(org.codehaus.mojo:aspectj-maven-plugin:1.7)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The AWS SDK for Java enables Java developers to easily work with
Amazon Web Services and build scalable solutions with Amazon S3,
Amazon DynamoDB, Amazon Glacier, and more.

%package acm
Summary:       AWS Java SDK for AWS Certificate Manager

%description acm
The AWS Java SDK for AWS Certificate Manager module
holds the client classes that are used for communicating
with AWS Certificate Manager service.

%package api-gateway
Summary:       AWS Java SDK for Amazon API Gateway

%description api-gateway
The AWS Java SDK for Amazon API Gateway module
holds the client classes that are used for
communicating with Amazon API Gateway.

%package applicationautoscaling
Summary:       AWS Java SDK for AWS Application Auto Scaling

%description applicationautoscaling
The AWS Java SDK for AWS Application Auto Scaling module
holds the client classes that are used for communicating
with AWS Application Auto Scaling service.

%package autoscaling
Summary:       AWS Java SDK for Auto Scaling

%description autoscaling
The AWS Java SDK for Auto Scaling module holds the
client classes that are used for communicating with
Auto Scaling Service.

%package bom
Summary:       AWS SDK for Java - BOM

%description bom
The AWS SDK for Java - BOM module holds the
dependency managements for individual Java clients.

%package cloudformation
Summary:       AWS Java SDK for AWS CloudFormation

%description cloudformation
The AWS Java SDK for AWS CloudFormation module holds the
client classes that are used for communicating with
AWS CloudFormation Service.

%package cloudfront
Summary:       AWS Java SDK for Amazon CloudFront

%description cloudfront
The AWS Java SDK for Amazon CloudFront module holds the
client classes that are used for communicating with
Amazon CloudFront Service.

%package cloudhsm
Summary:       AWS Java SDK for the AWS CloudHSM

%description cloudhsm
The AWS Java SDK for AWS CloudHSM holds the client
classes that are used for communicating with the
AWS CloudHSM Service.

%package cloudsearch
Summary:       AWS Java SDK for Amazon CloudSearch

%description cloudsearch
The AWS Java SDK for Amazon CloudSearch module holds the
client classes that are used for communicating with
Amazon CloudSearch Service.

%package cloudtrail
Summary:       AWS Java SDK for AWS CloudTrail

%description cloudtrail
The AWS Java SDK for AWS CloudTrail module holds the
client classes that are used for communicating with
AWS CloudTrail Service.

%package cloudwatch
Summary:       AWS Java SDK for Amazon CloudWatch

%description cloudwatch
The AWS Java SDK for Amazon CloudWatch module holds the
client classes that are used for communicating with
Amazon CloudWatch Service.

%package cloudwatchmetrics
Summary:       CloudWatch Metrics for AWS Java SDK

%description cloudwatchmetrics
This package holds the classes for uploading the
client side metrics collected from AWS Java SDK to
Amazon CloudWatch.

#%% package code-generator

%package codecommit
Summary:       AWS Java SDK for AWS CodeCommit

%description codecommit
The AWS Java SDK for AWS CodeCommit module
holds the client classes that are used for
communicating with AWS CodeCommit.

%package codedeploy
Summary:       AWS Java SDK for AWS CodeDeploy

%description codedeploy
The AWS Java SDK for AWS CodeDeploy module holds the
client classes that are used for communicating with
AWS CodeDeploy Service.

#%% package codegen-maven-plugin

%package codepipeline
Summary:       AWS Java SDK for AWS CodePipeline

%description codepipeline
The AWS Java SDK for AWS CodePipeline module
holds the client classes that are used for
communicating with AWS CodePipeline.

%package cognitoidentity
Summary:       AWS Java SDK for Amazon Cognito Identity

%description cognitoidentity
The AWS Java SDK for Amazon Cognito Identity module holds the
client classes that are used for communicating with
Amazon Cognito Identity Service.

%package cognitoidp
Summary:       AWS Java SDK for Amazon Cognito Identity Provider Service

%description cognitoidp
The AWS Java SDK for Amazon Cognito Identity Provider Service module
holds the client classes that are used for communicating with
Amazon Cognito Identity Provider Service.

%package cognitosync
Summary:       AWS Java SDK for Amazon Cognito Sync

%description cognitosync
The AWS Java SDK for Amazon Cognito Sync module holds the
client classes that are used for communicating with
Amazon Cognito Sync Service.

%package config
Summary:       AWS Java SDK for AWS Config

%description config
The AWS Java SDK for AWS Config module holds the
client classes that are used for communicating with
AWS Config Service.

%package core
Summary:       AWS SDK for Java - Core

%description core
The AWS SDK for Java - Core module holds the classes that
is used by the individual service clients to interact with
Amazon Web Services. Users need to depend on aws-java-sdk
artifact for accessing individual client classes.

%package datapipeline
Summary:       AWS Java SDK for AWS Data Pipeline

%description datapipeline
The AWS Java SDK for AWS Data Pipeline module holds the
client classes that are used for communicating with
AWS Data Pipeline Service.

%package devicefarm
Summary:       AWS Java SDK for AWS Device Farm

%description devicefarm
The AWS Java SDK for AWS Device Farm module
holds the client classes that are used for
communicating with AWS Device Farm.

%package directconnect
Summary:       AWS Java SDK for AWS Direct Connect

%description directconnect
The AWS Java SDK for AWS Direct Connect module holds the
client classes that are used for communicating with
AWS Direct Connect Service.

%package directory
Summary:       AWS Java SDK for AWS Directory Service

%description directory
The AWS Java SDK for AWS Directory Service module
holds the client classes that is used for
communicating with AWS Directory Service.

%package discovery
Summary:       AWS Java SDK for AWS Application Discovery Service

%description discovery
The AWS Java SDK for AWS Application Discovery Service module
holds the client classes that are used for communicating with
AWS Application Discovery Service.

%package dms
Summary:       AWS Java SDK for AWS Database Migration Service

%description dms
The AWS Java SDK for AWS Database Migration Service module
holds the client classes that are used for communicating
with AWS Database Migration Service.

%package dynamodb
Summary:       AWS Java SDK for Amazon DynamoDB

%description dynamodb
The AWS Java SDK for Amazon DynamoDB module holds the
client classes that are used for communicating with
Amazon DynamoDB Service.

%package ec2
Summary:       AWS Java SDK for Amazon EC2

%description ec2
The AWS Java SDK for Amazon EC2 module holds the
client classes that are used for communicating with
Amazon EC2 Service.

%package ecr
Summary:       AWS Java SDK for the Amazon EC2 Container Registry

%description ecr
The AWS Java SDK for the Amazon EC2 Container Registry
holds the client classes that are used for communicating
with the Amazon EC2 Container Registry Service.

%package ecs
Summary:       AWS Java SDK for the Amazon EC2 Container Service

%description ecs
The AWS Java SDK for the Amazon EC2 Container Service
holds the client classes that are used for communicating
with the Amazon EC2 Container Service.

%package efs
Summary:       AWS Java SDK for Amazon Elastic File System

%description efs
The AWS Java SDK for Amazon Elastic File System module
holds the client classes that are used for communicating
with Amazon Elastic File System.

%package elasticache
Summary:       AWS Java SDK for Amazon ElastiCache

%description elasticache
The AWS Java SDK for Amazon ElastiCache module holds the
client classes that are used for communicating with
Amazon ElastiCache Service.

%package elasticbeanstalk
Summary:       AWS Java SDK for AWS Elastic Beanstalk

%description elasticbeanstalk
The AWS Java SDK for AWS Elastic Beanstalk module holds the
client classes that are used for communicating with
AWS Elastic Beanstalk Service.

%package elasticloadbalancing
Summary:       AWS Java SDK for Elastic Load Balancing

%description elasticloadbalancing
The AWS Java SDK for Elastic Load Balancing module holds the
client classes that are used for communicating with
Elastic Load Balancing Service.

%package elasticsearch
Summary:       AWS Java SDK for Amazon Elasticsearch Service

%description elasticsearch
The AWS Java SDK for Amazon Elasticsearch Service module
holds the client classes that are used for communicating
with Amazon Elasticsearch Service.

%package elastictranscoder
Summary:       AWS Java SDK for Amazon Elastic Transcoder

%description elastictranscoder
The AWS Java SDK for Amazon Elastic Transcoder module
holds the client classes that are used for communicating
with Amazon Elastic Transcoder Service.

%package emr
Summary:       AWS Java SDK for Amazon EMR

%description emr
The AWS Java SDK for Amazon EMR module holds the
client classes that are used for communicating
with Amazon Elastic MapReduce Service.

%package events
Summary:       AWS Java SDK for Amazon CloudWatch Events

%description events
The AWS Java SDK for Amazon CloudWatch Events module
holds the client classes that are used for communicating
with Amazon CloudWatch Events Service.

%package gamelift
Summary:       AWS Java SDK for AWS GameLift

%description gamelift
The AWS Java SDK for AWS GameLift module holds the
client classes that are used for communicating with
AWS GameLift service.

%package glacier
Summary:       AWS Java SDK for Amazon Glacier

%description glacier
The AWS Java SDK for Amazon Glacier module holds the
client classes that are used for communicating with
Amazon Glacier Service.

%package iam
Summary:       AWS Java SDK for AWS IAM

%description iam
The AWS Java SDK for AWS IAM module holds the
client classes that are used for communicating with
AWS Identity and Access Management Service.

%package importexport
Summary:       AWS Java SDK for AWS Import/Export

%description importexport
The AWS Java SDK for AWS Import/Export module
holds the client classes that are used
for communicating with AWS Import/Export Service.

%package inspector
Summary:       AWS Java SDK for Amazon Inspector Service

%description inspector
The AWS Java SDK for Amazon Inspector Service module
holds the client classes that are used for communicating with
Amazon Inspector Service.

%package iot
Summary:       AWS Java SDK for AWS IoT

%description iot
The AWS Java SDK for AWS Iot Service module holds the
client classes that are used for communicating with
AWS IoT Service.

%package kinesis
Summary:       AWS Java SDK for Amazon Kinesis

%description kinesis
The AWS Java SDK for Amazon Kinesis module holds the
client classes that are used for communicating with
Amazon Kinesis Service.

%package kms
Summary:       AWS Java SDK for AWS KMS

%description kms
The AWS Java SDK for AWS KMS module holds the
client classes that are used for communicating with
AWS Key Management Service.

%package lambda
Summary:       AWS Java SDK for AWS Lambda

%description lambda
The AWS Java SDK for AWS Lambda module holds the
client classes that are used for communicating with
AWS Lambda Service.

%package logs
Summary:       AWS Java SDK for Amazon CloudWatch Logs

%description logs
The AWS Java SDK for Amazon CloudWatch Logs module
holds the client classes that are used for communicating
with Amazon CloudWatch Logs Service.

%package machinelearning
Summary:       AWS Java SDK for Amazon Machine Learning

%description machinelearning
The AWS Java SDK for Amazon Machine Learning module
holds the client classes that is used for communicating
with Amazon Machine Learning Service.

%package marketplacecommerceanalytics
Summary:       AWS Java SDK for AWS Marketplace Commerce Analytics

%description marketplacecommerceanalytics
The AWS Java SDK for AWS Marketplace Commerce Analytics Service module
holds the client classes that are used for communicating with
AWS Marketplace Commerce Analytics Service.

%package marketplacemeteringservice
Summary:       AWS Java SDK for AWS Marketplace Metering Service

%description marketplacemeteringservice
The AWS Java SDK for AWS Marketplace Metering Service module
holds the client classes that are used for communicating with
AWS Marketplace Metering Service.

%package opsworks
Summary:       AWS Java SDK for AWS OpsWorks

%description opsworks
The AWS Java SDK for AWS OpsWorks module holds the
client classes that are used for communicating with
AWS OpsWorks Service.

%package pom
Summary:       AWS SDK for Java - Parent POM

%description pom
AWS SDK for Java - Parent POM.

%package rds
Summary:       AWS Java SDK for Amazon RDS

%description rds
The AWS Java SDK for Amazon RDS module holds the
client classes that are used for communicating with
Amazon Relational Database Service.

%package redshift
Summary:       AWS Java SDK for Amazon Redshift

%description redshift
The AWS Java SDK for Amazon Redshift module holds the
client classes that are used for communicating with
Amazon Redshift Service.

%package route53
Summary:       AWS Java SDK for Amazon Route53

%description route53
The AWS Java SDK for Amazon Route53 module holds the
client classes that are used for communicating with
Amazon Route53 Service.

%package s3
Summary:       AWS Java SDK for Amazon S3

%description s3
The AWS Java SDK for Amazon S3 module holds the
client classes that are used for communicating with
Amazon Simple Storage Service.

%package ses
Summary:       AWS Java SDK for Amazon SES

%description ses
The AWS Java SDK for Amazon SES module holds the
client classes that are used for communicating with
Amazon Simple Email Service.

%package simpledb
Summary:       AWS Java SDK for Amazon SimpleDB

%description simpledb
The AWS Java SDK for Amazon SimpleDB module holds the
client classes that are used for communicating with
Amazon SimpleDB Service.

%package simpleworkflow
Summary:       AWS Java SDK for Amazon SWF

%description simpleworkflow
The AWS Java SDK for Amazon SWF module holds the
client classes that are used for communicating with
Amazon Simple Workflow Service.

%package sns
Summary:       AWS Java SDK for Amazon SNS

%description sns
The AWS Java SDK for Amazon SNS module holds the
client classes that are used for communicating with
Amazon Simple Notification Service.

%package sqs
Summary:       AWS Java SDK for Amazon SQS

%description sqs
The AWS Java SDK for Amazon SQS module holds the
client classes that are used for communicating with
Amazon Simple Queue Service.

%package ssm
Summary:       AWS Java SDK for the AWS Simple Systems Management (SSM) Service

%description ssm
The AWS Java SDK for AWS Simple Systems Management Service
holds the client classes that are used for communicating
with the AWS Simple Systems Management Service.

%package storagegateway
Summary:       AWS Java SDK for AWS Storage Gateway

%description storagegateway
The AWS Java SDK for AWS Storage Gateway module holds the
client classes that are used for communicating with
AWS Storage Gateway Service.

%package sts
Summary:       AWS Java SDK for AWS STS

%description sts
The AWS Java SDK for AWS STS module holds the
client classes that are used for communicating with
AWS Security Token Service.

%package support
Summary:       AWS Java SDK for AWS Support

%description support
The AWS Java SDK for AWS Support module holds the
client classes that are used for communicating with
AWS Support Service.

#%% package swf-libraries

%package test-utils
Summary:       AWS SDK for Java - Test Utils

%description test-utils
The AWS SDK for Java - Test Utils module holds the
all the utilities that are used by the tests.

%package waf
Summary:       AWS Java SDK for AWS WAF

%description waf
The AWS Java SDK for AWS WAF Service module holds the
client classes that are used for communicating with
AWS WAF Service.

%package workspaces
Summary:       AWS Java SDK for Amazon WorkSpaces

%description workspaces
The AWS Java SDK for Amazon WorkSpaces module holds the
client classes that are used for communicating with
Amazon WorkSpaces Service.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}

# Remove deprecated httpclient annotations
sed -i '/NotThreadSafe/d' \
 aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/CloudWatchMetricConfig.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/AmazonWebServiceRequest.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/ApacheHttpClientConfig.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/ClientConfiguration.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/DefaultRequest.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/RequestClientOptions.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/http/ExecutionContext.java \
 aws-java-sdk-core/src/test/java/com/amazonaws/http/response/HttpResponseProxy.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/event/ProgressInputStream.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/internal/ReleasableInputStream.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/internal/ResettableInputStream.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/metrics/ServiceLatencyProvider.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/util/AWSRequestMetrics.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/util/AWSRequestMetricsFullSupport.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/util/LengthCheckInputStream.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/util/TimingInfo.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/util/TimingInfoFullSupport.java

sed -i '/ThreadSafe/d' \
 aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AmazonAutoScalingAsyncClient.java \
 aws-java-sdk-autoscaling/src/main/java/com/amazonaws/services/autoscaling/AmazonAutoScalingClient.java \
 aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/MetricCollectorSupport.java \
 aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/PredefinedMetricTransformer.java \
 aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/RequestMetricCollectorSupport.java \
 aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/ServiceMetricCollectorSupport.java \
 aws-java-sdk-cloudwatchmetrics/src/main/java/com/amazonaws/metrics/internal/cloudwatch/provider/transform/DynamoDBRequestMetricTransformer.java \
 aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/AWSCodeCommitAsyncClient.java \
 aws-java-sdk-codecommit/src/main/java/com/amazonaws/services/codecommit/AWSCodeCommitClient.java \
 aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployAsyncClient.java \
 aws-java-sdk-codedeploy/src/main/java/com/amazonaws/services/codedeploy/AmazonCodeDeployClient.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/http/AmazonHttpClient.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/http/conn/ssl/SdkTLSSocketFactory.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/http/impl/client/HttpRequestNoRetryHandler.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/event/request/Progress.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/event/request/ProgressSupport.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/http/impl/client/SdkHttpRequestRetryHandler.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/util/LengthCheckInputStream.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/util/TimingInfoUnmodifiable.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/util/VersionInfoUtils.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AmazonDynamoDBAsyncClient.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AmazonDynamoDBClient.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AmazonDynamoDBStreamsAsyncClient.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/AmazonDynamoDBStreamsClient.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/DynamoDB.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/Index.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/Table.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/BatchGetItemApi.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/BatchWriteItemApi.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/DeleteItemApi.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/GetItemApi.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/ListTablesApi.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/PutItemApi.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/QueryApi.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/ScanApi.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/document/api/UpdateItemApi.java \
 aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/AmazonElasticLoadBalancingAsyncClient.java \
 aws-java-sdk-elasticloadbalancing/src/main/java/com/amazonaws/services/elasticloadbalancing/AmazonElasticLoadBalancingClient.java \
 aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/AWSElasticsearchAsyncClient.java \
 aws-java-sdk-elasticsearch/src/main/java/com/amazonaws/services/elasticsearch/AWSElasticsearchClient.java \
 aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/AmazonElasticTranscoderAsyncClient.java \
 aws-java-sdk-elastictranscoder/src/main/java/com/amazonaws/services/elastictranscoder/AmazonElasticTranscoderClient.java \
 aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/AmazonGameLiftAsyncClient.java \
 aws-java-sdk-gamelift/src/main/java/com/amazonaws/services/gamelift/AmazonGameLiftClient.java \
 aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/FileLocks.java \
 aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/AWSSimpleSystemsManagementAsyncClient.java \
 aws-java-sdk-ssm/src/main/java/com/amazonaws/services/simplesystemsmanagement/AWSSimpleSystemsManagementClient.java \
 aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/AWSStorageGatewayAsyncClient.java \
 aws-java-sdk-storagegateway/src/main/java/com/amazonaws/services/storagegateway/AWSStorageGatewayClient.java

sed -i '/Immutable/d' \
 aws-java-sdk-cloudfront/src/main/java/com/amazonaws/auth/PEMObject.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/event/ProgressEvent.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/auth/profile/internal/Profile.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/retry/RetryPolicy.java \
 aws-java-sdk-core/src/main/java/com/amazonaws/retry/internal/AuthRetryParameters.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/ArrayIndexElement.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/B.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/BOOL.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/BS.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/GetItemExpressionSpec.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/L.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/M.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/N.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/NamedElement.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/NS.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/NULL.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/Path.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/PathOperand.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/Precedence.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/RemoveAction.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/S.java \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/xspec/SS.java \
 aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/S3V4AuthErrorRetryStrategy.java \
 aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/InstructionFileId.java \
 aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/model/S3ObjectId.java

sed -i '/GuardedBy/d' \
 aws-java-sdk-dynamodb/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/DynamoDBReflector.java \
 aws-java-sdk-s3/src/main/java/com/amazonaws/services/s3/internal/crypto/MultipartUploadCryptoContext.java

%pom_remove_plugin -r com.github.siom79.japicmp:japicmp-maven-plugin

# Disable building of super-JAR
%pom_disable_module aws-java-sdk-osgi
# Missing dependency: aspectj{rt,-maven-plugin}
%pom_disable_module aws-java-sdk-swf-libraries
# Missing dependency: org.eclipse:text:3.3.0-v20070606-0010
%pom_disable_module aws-java-sdk-code-generator
# Missing dependency: :aws-java-sdk-code-generator
%pom_disable_module aws-java-sdk-codegen-maven-plugin

%pom_remove_dep :aws-java-sdk-swf-libraries aws-java-sdk

# Convert from dos to unix line ending
for file in src/samples/AmazonEC2SpotInstances-Advanced/CreateSecurityGroupApp.java \
 src/samples/AmazonEC2SpotInstances-Advanced/GettingStartedApp.java \
 src/samples/AmazonEC2SpotInstances-Advanced/InlineGettingStartedCodeSampleApp.java \
 src/samples/AmazonEC2SpotInstances-Advanced/InlineTaggingCodeSampleApp.java \
 src/samples/AmazonEC2SpotInstances-Advanced/Requests.java \
 src/samples/AmazonEC2SpotInstances-GettingStarted/CreateSecurityGroupApp.java \
 src/samples/AmazonEC2SpotInstances-GettingStarted/InlineGettingStartedCodeSampleApp.java \
 src/samples/AmazonEC2SpotInstances-GettingStarted/Requests.java \
 src/samples/AmazonKinesisFirehose/batchPutInput.txt \
 src/samples/AmazonKinesisFirehose/putRecordInput.txt \
 src/samples/AwsCloudFormation/CloudFormationSample.java \
 src/samples/AwsCloudFormation/CloudFormationSample.template; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

%build

# Tests require networking and unavailable test deps:
# com.github.tomakehurst:wiremock:1.55
# nl.jqno.equalsverifier:equalsverifier:1.7.5
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-aws-java-sdk
%doc src/samples/AmazonKinesis

%files acm -f .mfiles-aws-java-sdk-acm
%files api-gateway -f .mfiles-aws-java-sdk-api-gateway
%files applicationautoscaling -f .mfiles-aws-java-sdk-applicationautoscaling
%files autoscaling -f .mfiles-aws-java-sdk-autoscaling
%files bom -f .mfiles-aws-java-sdk-bom
%license LICENSE.txt NOTICE.txt

%files cloudformation -f .mfiles-aws-java-sdk-cloudformation
%doc src/samples/AwsCloudFormation

%files cloudfront -f .mfiles-aws-java-sdk-cloudfront
%files cloudhsm -f .mfiles-aws-java-sdk-cloudhsm
%files cloudsearch -f .mfiles-aws-java-sdk-cloudsearch
%files cloudtrail -f .mfiles-aws-java-sdk-cloudtrail
%files cloudwatch -f .mfiles-aws-java-sdk-cloudwatch
%files cloudwatchmetrics -f .mfiles-aws-java-sdk-cloudwatchmetrics
#%% files code-generator -f .mfiles-aws-java-sdk-code-generator
%files codecommit -f .mfiles-aws-java-sdk-codecommit
%files codedeploy -f .mfiles-aws-java-sdk-codedeploy
#%% files codegen-maven-plugin -f .mfiles-aws-java-sdk-codegen-maven-plugin
%files codepipeline -f .mfiles-aws-java-sdk-codepipeline
%files cognitoidentity -f .mfiles-aws-java-sdk-cognitoidentity
%files cognitoidp -f .mfiles-aws-java-sdk-cognitoidp
%files cognitosync -f .mfiles-aws-java-sdk-cognitosync
%files config -f .mfiles-aws-java-sdk-config
%files core -f .mfiles-aws-java-sdk-core
%doc README.md
%license LICENSE.txt NOTICE.txt

%files datapipeline -f .mfiles-aws-java-sdk-datapipeline
%files devicefarm -f .mfiles-aws-java-sdk-devicefarm
%files directconnect -f .mfiles-aws-java-sdk-directconnect
%files directory -f .mfiles-aws-java-sdk-directory
%files discovery -f .mfiles-aws-java-sdk-discovery
%files dms -f .mfiles-aws-java-sdk-dms
%files dynamodb -f .mfiles-aws-java-sdk-dynamodb
%doc src/samples/AmazonDynamoDB*

%files ec2 -f .mfiles-aws-java-sdk-ec2
%doc src/samples/AmazonEC2*

%files ecr -f .mfiles-aws-java-sdk-ecr
%files ecs -f .mfiles-aws-java-sdk-ecs
%files efs -f .mfiles-aws-java-sdk-efs
%files elasticache -f .mfiles-aws-java-sdk-elasticache
%files elasticbeanstalk -f .mfiles-aws-java-sdk-elasticbeanstalk
%files elasticloadbalancing -f .mfiles-aws-java-sdk-elasticloadbalancing
%files elasticsearch -f .mfiles-aws-java-sdk-elasticsearch
%files elastictranscoder -f .mfiles-aws-java-sdk-elastictranscoder
%files emr -f .mfiles-aws-java-sdk-emr
%files events -f .mfiles-aws-java-sdk-events
%files gamelift -f .mfiles-aws-java-sdk-gamelift
%files glacier -f .mfiles-aws-java-sdk-glacier
%files iam -f .mfiles-aws-java-sdk-iam
%files importexport -f .mfiles-aws-java-sdk-importexport
%files inspector -f .mfiles-aws-java-sdk-inspector
%files iot -f .mfiles-aws-java-sdk-iot
%files kinesis -f .mfiles-aws-java-sdk-kinesis
%doc src/samples/AmazonKinesisFirehose
# src/samples/AmazonKinesis require not available https://github.com/awslabs/amazon-kinesis-client

%files kms -f .mfiles-aws-java-sdk-kms
%files lambda -f .mfiles-aws-java-sdk-lambda
%files logs -f .mfiles-aws-java-sdk-logs
%files machinelearning -f .mfiles-aws-java-sdk-machinelearning
%files marketplacecommerceanalytics -f .mfiles-aws-java-sdk-marketplacecommerceanalytics
%files marketplacemeteringservice -f .mfiles-aws-java-sdk-marketplacemeteringservice
%files opsworks -f .mfiles-aws-java-sdk-opsworks
%files pom -f .mfiles-aws-java-sdk-pom
%license LICENSE.txt NOTICE.txt

%files rds -f .mfiles-aws-java-sdk-rds
%files redshift -f .mfiles-aws-java-sdk-redshift
%files route53 -f .mfiles-aws-java-sdk-route53
%files s3 -f .mfiles-aws-java-sdk-s3
%doc src/samples/AmazonS3*

%files ses -f .mfiles-aws-java-sdk-ses
%doc src/samples/AmazonSimpleEmailService

%files simpledb -f .mfiles-aws-java-sdk-simpledb
%doc src/samples/AwsConsoleApp

%files simpleworkflow -f .mfiles-aws-java-sdk-simpleworkflow
%files sns -f .mfiles-aws-java-sdk-sns
%files sqs -f .mfiles-aws-java-sdk-sqs
%doc src/samples/AmazonSimpleQueueService

%files ssm -f .mfiles-aws-java-sdk-ssm
%files storagegateway -f .mfiles-aws-java-sdk-storagegateway
%files sts -f .mfiles-aws-java-sdk-sts
%files support -f .mfiles-aws-java-sdk-support
#%% files swf-libraries -f .mfiles-aws-java-sdk-swf-libraries
#%% doc src/samples/AwsFlowFramework
%files test-utils -f .mfiles-aws-java-sdk-test-utils
%files waf -f .mfiles-aws-java-sdk-waf
%files workspaces -f .mfiles-aws-java-sdk-workspaces

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12092 |21mr|axiom-1.2.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           axiom
Version:        1.2.14
Release:        5
Epoch:          0
Summary:        Axis Object Model
License:        ASL 2.0
Url:            http://ws.apache.org/commons/axiom/
Source0:        http://archive.apache.org/dist/ws/axiom/%{version}/axiom-%{version}-source-release.zip

Patch0:         port-to-mime4j-0.8.1.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires:  mvn(javax.mail:mail)
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
BuildRequires:  mvn(jaxen:jaxen)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.sf.saxon:saxon)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.james:apache-mime4j-core) >= 0.8.1
BuildRequires:  mvn(org.apache.maven.doxia:doxia-core)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.woodstox:stax2-api)
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires:  mvn(org.jvnet.jaxb2.maven2:maven-jaxb2-plugin)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(xalan:xalan)
BuildRequires:  mvn(xerces:xercesImpl)
BuildRequires:  mvn(xmlunit:xmlunit)

Requires:       mvn(org.apache.james:apache-mime4j-core) >= 0.8.1

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
AXIOM stands for AXis Object Model (also known as OM - Object Model)
and refers to the XML info-set model that was initially developed for
Apache Axis2.

%package javadoc
Summary:        API Documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q
%patch0

# Disable plugins not needed for RPM builds
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin -r :gmaven-plugin

# Don't build and attach manuals due to unavailable plugin "com.agilejava.docbkx:docbkx-maven-plugin"
%pom_remove_plugin :docbkx-maven-plugin
%pom_remove_plugin :build-helper-maven-plugin

# No need to build dist assembly for RPM builds
%pom_remove_plugin :maven-assembly-plugin

# Change to modern OSGi dependencies
%pom_change_dep -r org.osgi:org.osgi.core org.osgi:osgi.core
%pom_change_dep -r org.osgi:org.osgi.compendium org.osgi:osgi.cmpn

# Mordern JREs supply these APIs
%pom_remove_dep :geronimo-activation_1.1_spec modules/axiom-{dom,parent,api,testutils,impl}
%pom_remove_dep :geronimo-stax-api_1.0_spec modules/axiom-{tests,parent,api,testutils,impl}

# Fix dep on mail API and saxon
%pom_change_dep :geronimo-javamail_1.4_spec javax.mail:mail:1.4 modules/axiom-{dom,parent,api,impl}
%pom_remove_dep :saxon-dom modules/axiom-dom-testsuite

# This plugin is used to get all possible stax implementations for testing against, which
# is impossible in Fedora; removing this means only testing against the JRE implementation
%pom_remove_plugin :maven-dependency-plugin modules/axiom-api

# Disable test suites due to unavailable deps "crimson", "org.ops4j.*"
%pom_disable_module modules/axiom-osgi-tests
%pom_disable_module modules/axiom-integration

# Don't build samples
%pom_disable_module modules/axiom-samples

# Don't ship tests
%mvn_package ":*-{tests,testsuite}" __noinstall
%mvn_package ":axiom-{build,test}utils" __noinstall

%build
# Skipping tests for now due to unexplained failures
%mvn_build -- -DskipTests

%install
%mvn_install

%files -f .mfiles
%doc *.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12093 |21mr|axion-1.0-0.10.M3.dev
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -M3-dev
%global namedversion %{version}%{?namedreltag}
Name:          axion
Version:       1.0
Release:       0.10.M3.dev
Summary:       Open Source Java Database
License:       BSD
Group:         Development/Java
URL:           http://axion.tigris.org/
# cvs -d :pserver:guest@cvs.tigris.org:/cvs login
# pwd guest
# cvs -d :pserver:guest@cvs.tigris.org:/cvs checkout -r HEAD axion
# rm -rf axion/www
# find axion -name '*.jar' -delete
# find axion -name '*.class' -delete
# rm -rf $(find axion -name 'CVS')
# tar czf axion-1.0-M3-dev-clean-src-cvs20120617.tar.gz axion
Source0:       %{name}-%{namedversion}-clean-src-cvs20120617.tar.gz
Source1:       http://repo1.maven.org/maven2/%{name}/%{name}/%{namedversion}/%{name}-%{namedversion}.pom
# remove javac.minVMVersion
Patch0:        %{name}-%{namedversion}-build.patch
# jdbc 4.x support
Patch1:        %{name}-%{namedversion}-jdk7.patch

BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(commons-primitives:commons-primitives)
BuildRequires: mvn(jakarta-regexp:jakarta-regexp)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.java.dev.javacc:javacc)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Axion is a small, fast, open source relational
database system (RDBMS) supporting SQL and JDBC
written in and for the Java programming language.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n axion

cp -p %{SOURCE1} pom.xml
%pom_xpath_set "pom:dependency[pom:artifactId = 'javacc']/pom:groupId" net.java.dev.javacc

%patch0 -p0
%patch1 -p0

# fix non ASCII chars
for s in src/org/axiondb/engine/commands/AxionQueryPlanner.java\
  src/org/axiondb/engine/rowiterators/IndexNestedLoopJoinedRowIterator.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

%build
export CLASSPATH=$(build-classpath commons-primitives commons-codec ant/ant-junit regexp):bin/classes:bin/test/classes
%ant \
  -Dcodec.jar=$(build-classpath commons-codec) \
  -Dcollections.jar=$(build-classpath commons-collections) \
  -Dcollections-primitives.jar=$(build-classpath commons-primitives) \
  -Dcommons-primitives.jar=$(build-classpath commons-primitives) \
  -Dlogging.jar=$(build-classpath commons-logging) \
%if 0
  -Dlogging-impl.jar=$(build-classpath log4j12-1.2.17) \
%else
  -Dlogging-impl.jar=$(build-classpath log4j) \
%endif
  -Djavacc.jar=$(build-classpath javacc) \
  -Djavacc.home=%{_javadir} \
  -Djunit.jar=$(build-classpath junit) \
  -Dregexp.jar=$(build-classpath regexp) \
  -Dtest.failonerror=false \
  jar doc

%install
%mvn_artifact pom.xml bin/%{name}-%{namedversion}.jar
%mvn_file :%{name} %{name}
%mvn_install -J bin/docs/api

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12094 |21mr|b43-firmware-784.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages  %{nil}
%define debug_package           %{nil}

Name:           b43-firmware
Version:        784.2
Release:        4
Summary:        Firmware for Broadcom wireless devices

Group:          System/Configuration/Networking
License:        Proprietary
URL:            http://www.lwfinger.com/b43-firmware/
Source0:        http://www.lwfinger.com/b43-firmware/broadcom-wl-6.30.163.46.tar.bz2

BuildArch:      noarch

BuildRequires:  b43-fwcutter >= 018

%description
Firmware for Broadcom wireless devices.
This firmware version can be extracted from the GPL tarball for the ASUS
GPL code for the RT-AC66U 802.11ac Dual-Band Wireless-AC1750 Gigabit Router
http://dlcdnet.asus.com/pub/ASUS/wireless/RT-AC66U/GPL_RT_AC66U_3004372.zip

%prep
%setup -q -c

%build
b43-fwcutter -w . broadcom-wl-6.30.163.46.wl_apsta.o

%install
mkdir -p %{buildroot}/lib/firmware/
cp -r b43 %{buildroot}/lib/firmware/

%files
/lib/firmware/b43/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12095 |21mr|b43-fwcutter-019-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		b43-fwcutter
Summary:	Tool to extract firmware for Broadcom 43xx network chip
Version:	019
Release:	7
Source0:	http://bues.ch/b43/fwcutter/%{name}-%{version}.tar.bz2
Source100:	b43-fwcutter.rpmlintrc
Patch0:		%{name}-015-install.patch
URL:		http://linuxwireless.org/en/users/Drivers/b43
License:	BSD
Group:		System/Configuration/Networking
#Obsoletes:	bcm43xx-fwcutter

%description
Fwcutter allows you to extract the firmware required for Broadcom 43xx chips
out of the .o files available with the card or on the Internet.

Not all versions of the firmwares are supported by this tool.
You can list supported firmwares with :
b43-fwcutter -l

Depending on your chip, you will need a version 3 or 4 firmware.

Useful reading and links to firmwares that can be extracted are available at 
http://linuxwireless.org/en/users/Drivers/b43

Extract (as root) with :
b43-fwcutter -w /lib/firmware wl_apsta_mimo.o OR
b43-fwcutter -w /lib/firmware wl_apsta.o (for LP-PHY cards like BCM4312 only!)

It will create files directly at the required place (in either b43legacy or 
b43 subdirectory).

%prep
%setup -q
%patch0 -p1

%build
%make

%install
make install PREFIX=%buildroot/%_prefix

%files
%doc README
%doc COPYING
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12096 |21mr|babeltrace-1.5.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# it's ok not to split libraries here, there will be no conflicts
# with version 2.x (which is in babeltrace2 package)
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Trace viewer and converter, mainly for the common trace format
Name:		babeltrace
Version:	1.5.8
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.efficios.com/babeltrace
Source0:	http://www.efficios.com/files/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	swig
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(uuid)
Requires:	%{libname} = %{EVRD}

%description
This project provides trace read and write libraries, as well as a trace
converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.

The main format expected to be converted to/from is the Common Trace
Format (CTF). See http://www.efficios.com/ctf.

%files
%doc ChangeLog gpl-2.0.txt LICENSE mit-license.txt README
%{_bindir}/%{name}*
%{_mandir}/man1/*.1*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Common Trace Format Babel Tower
Group:		System/Libraries

%description -n %{libname}
This project provides trace read and write libraries, as well as a trace
converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.

%files -n %{libname}
%doc LICENSE gpl-2.0.txt mit-license.txt
%{_libdir}/libbabeltrace*.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Common Trace Format Babel Tower
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(glib-2.0)

%description -n %{devname}
This project provides trace read and write libraries, as well as a trace
converter. A plugin can be created for any trace format to allow its conversion
to/from another trace format.

%files -n %{devname}
%doc LICENSE README
%doc doc/API.txt doc/lttng-live.txt std-ext-lib.txt
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/ctf/*.h
%{_includedir}/%{name}/ctf-*/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/babeltrace.pc
%{_libdir}/pkgconfig/babeltrace-ctf.pc

#------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/babeltrace/*.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12097 |21mr|babeltrace2-2.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname babeltrace2_ %{major}
%define libctfw %mklibname babeltrace2-ctf-writer %{major}
%define devname %mklibname babeltrace2 -d

Summary:	An open source trace format converter
Name:		babeltrace2
Version:	2.0.3
Release:	3
License:	GPLv2
Group:		System/Libraries
Url:		http://diamon.org/babeltrace
Source0:	https://www.efficios.com/files/babeltrace/babeltrace2-%{version}.tar.bz2
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	swig
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libdw)
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(uuid)

%description
An open source trace format converter.

%files
%{_bindir}/babeltrace2
%{_libdir}/babeltrace2/plugin-providers/babeltrace2-python-plugin-provider.so
%{_libdir}/babeltrace2/plugins/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An open source trace format converter
Group:		System/Libraries

%description -n %{libname}
An open source trace format converter

%files -n %{libname}
%{_libdir}/libbabeltrace2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libctfw}
Summary:	An open source trace format converter
Group:		System/Libraries

%description -n %{libctfw}
An open source trace format converter

%files -n %{libctfw}
%{_libdir}/libbabeltrace2-ctf-writer.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the babeltrace trace format converter
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libctfw} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the babeltrace trace format converter.

%files -n %{devname}
%{_includedir}/babeltrace2/
%{_includedir}/babeltrace2-ctf-writer/
%{_libdir}/libbabeltrace2.so
%{_libdir}/libbabeltrace2-ctf-writer.so
%{_libdir}/pkgconfig/babeltrace2.pc
%{_libdir}/pkgconfig/babeltrace2-ctf-writer.pc
%{_mandir}/man1/babeltrace2*
%{_mandir}/man7/babeltrace2*
%{_docdir}/%{name}/

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings to the babeltrace trace format converter
Group:		Development/Python

%description -n python3-%{name}
Python3 bindings to the babeltrace trace format converter.

%files -n python3-%{name}
%{python3_sitearch}/*.egg-info
%{python3_sitearch}/bt2/*.py*
%{python3_sitearch}/bt2/__pycache__
%{python3_sitearch}/bt2/_native_bt.*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%autopatch -p1

%build
%configure \
	--disable-static \
	--enable-python-bindings \
	--enable-python-plugins
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12098 |21mr|babl-0.1.106-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define api 0.1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d
%define girname %mklibname %{name}-gir %{api}

Summary:	Dynamic, any to any, pixel format conversion library
Name:		babl
Epoch:		1
Version:	0.1.106
Release:	1
Group:		System/Libraries
License:	LGPLv3+
Url:		http://www.gegl.org/babl
Source0:	http://download.gimp.org/pub/babl/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	librsvg
BuildRequires:	meson
BuildRequires:	vala-tools
#Contrib BuildRequires:	w3m
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(vapigen)

%description
Babl is a dynamic, any to any, pixel format conversion library.
It provides conversions between the myriad of buffer types images
can be stored in. Babl doesn't only help with existing pixel formats,
but also facilitates creation of new and uncommon ones.

GEGL uses babl both for enumeration of pixel formats as well as
conversions between them.

%files
%license COPYING
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for %{name}
Group:		System/Libraries

%description -n %{libname}
Babl is a dynamic, any to any, pixel format conversion library.
It provides conversions between the myriad of buffer types images
can be stored in. Babl doesn't only help with existing pixel formats,
but also facilitates creation of new and uncommon ones.

GEGL uses babl both for enumeration of pixel formats as well as
conversions between them.

%files -n %{libname}
%doc AUTHORS MAINTAINERS NEWS TODO
%{_libdir}/babl-%{api}/*.so
%{_libdir}/libbabl-%{api}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{girname}
Summary:	Typelib file for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}

%files -n %{girname}
%{_libdir}/girepository-1.0/Babl-%{api}.typelib

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for %{name}
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Babl is a dynamic, any to any, pixel format conversion library.
It provides conversions between the myriad of buffer types images
can be stored in. Babl doesn't only help with existing pixel formats,
but also facilitates creation of new and uncommon ones.

GEGL uses babl both for enumeration of pixel formats as well as
conversions between them.

%files -n %{devname}
%doc docs/*
%license COPYING
%{_datadir}/gir-1.0/Babl-%{api}.gir
%{_datadir}/vala/vapi/babl-0.1.deps
%{_datadir}/vala/vapi/babl-0.1.vapi
%{_includedir}/babl-%{api}/babl/*
%{_libdir}/libbabl-%{api}.so
%{_libdir}/pkgconfig/babl-%{api}.pc

#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12099 |21mr|baobab-42.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Disk Usage Analyzer (aka Baobab)
Name:		baobab
Version:	42.0
Release:	3
License:	GPLv2+
Group:		File tools
Url:		https://download.gnome.org/sources/baobab
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	baobab_40.0_ru.tar.gz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libhandy-1)

%description
Disk Usage Analyzer is is a graphical, menu-driven application to analyze
disk usage in any Gnome environment. Disk Usage Analyzer can easily scan
either the whole file-system tree, or a specific user-requested directory
branch (local or remote).

It also auto-detects in real-time any changes made to your home directory
as far as any mounted/unmounted device. Disk Usage Analyzer also provides
a full graphical tree-map window for each selected folder.

%files -f %{name}.lang
%doc README.md NEWS AUTHORS
%{_appdatadir}/org.gnome.baobab.appdata.xml
%{_bindir}/baobab
%{_datadir}/applications/org.gnome.baobab.desktop
%{_datadir}/dbus-1/services/org.gnome.baobab.service
%{_datadir}/glib-2.0/schemas/org.gnome.baobab.gschema.xml
%{_iconsdir}/hicolor/*/apps/*baobab*
%{_mandir}/man1/baobab.1*

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12100 |21mr|BareBonesBrowserLaunch-3.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          BareBonesBrowserLaunch
Version:       3.1
Release:       18
Summary:       Simple library to launch a browser window from Java
License:       Public Domain
URL:           http://www.centerkey.com/java/browser/
Source0:       http://www.centerkey.com/java/browser/myapp/real/bare-bones-browser-launch-%{version}.jar

BuildRequires: java-devel
BuildRequires: javapackages-local
Group:         Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Utility class to open a web page from a Swing application in the user's 
default browser. Supports: Mac OS X, GNU/Linux, Unix, Windows XP

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}

%prep
%setup -q -c

find * -name *.class -delete
rm -rf doc/*

%build

%{javac} com/centerkey/utils/BareBonesBrowserLaunch.java
%{jar} -cf %{name}.jar com/centerkey/utils/BareBonesBrowserLaunch.class
%{javadoc} -encoding UTF-8 -d doc com/centerkey/utils/BareBonesBrowserLaunch.java -windowtitle "%{name} %{version}"

%install
%mvn_artifact com.centerkey.utils:%{name}:%{version} %{name}.jar
%mvn_file com.centerkey.utils:%{name} %{name}
%mvn_install -J doc

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12101 |21mr|base64coder-20101219-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global long_ver  2010-12-19

Name:           base64coder
Version:        20101219
Release:        24
Summary:        Fast and compact Base64 encoder/decoder Java library
License:        EPL-1.0 or EPL-2.0 or LGPLv2+ or GPLv2+ or ASL 2.0 or BSD
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
URL:            http://www.source-code.biz/%{name}/java/
Source0:        http://repo2.maven.org/maven2/biz/source_code/%{name}/%{long_ver}/%{name}-%{long_ver}-distribution.zip

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Base64Coder is a fast and compact Base64 encoder/decoder class.

There is no Base64 encoder/decoder in the standard Java SDK class
library.  The undocumented classes sun.misc.BASE64Encoder and
sun.misc.BASE64Decoder should not be used.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains %{summary}.

%prep
%setup -q -n %{name}-%{long_ver}
sed -i 's/\r//g' README.txt CHANGES.txt
%mvn_file : %{name}
%pom_remove_plugin :maven-javadoc-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.txt CHANGES.txt

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12102 |21mr|basesystem-2021-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The skeleton package which defines a simple system
Name:		basesystem
Version:	2021
Release:	4
License:	GPLv2+
Group:		System/Base
Requires:	basesystem-minimal basesystem-mandatory
OrderWithRequires:	basesystem-minimal basesystem-mandatory

%description
Basesystem defines the components of a basic Rosa Linux system (for
example, the package installation order to use during bootstrapping).
Basesystem should be the first package installed on a system, and it
should never be removed.

%files

#----------------------------------------------------------------------------

%package	minimal
Summary:	The skeleton package which defines a simple system for chroot systems
Group:		System/Base
# !!! Keep this package super minimal!!! See https://abf.io/import/order-rpm-generators
Requires:	filesystem
Requires:	rootfiles
Requires:	setup
Requires:	distro-release
Suggests:	branding-configs-default
OrderWithRequires:	setup filesystem

%description minimal
Basesystem defines the components of a basic Rosa Linux system (for
example, the package installation order to use during bootstrapping).
Basesystem should be the first package installed on a system, and it
should never be removed.

%files minimal

#----------------------------------------------------------------------------

%package build
Summary:	The skeleton package which defines a simple system for package builds
Group:		System/Base
Requires:	basesystem-minimal rpm-build rosa-release
# no more rpm5, so multiarch headers come from elsewhere
# it useless, these days headers are identical between arches anyway
# and for the couple of oddball cases we can just pull headers from crosscompiler directories
Requires:	locales locales-en
Requires:	diffutils which elfutils file patch
Requires:	wget timezone which
Requires:	glibc-static-devel glibc-devel
Requires:	tar unzip xz bzip2 gzip-utils zstd
Requires:	make autoconf automake libtool
Requires:	gcc gcc-c++ atomic-devel
Requires:	hostname
# for gbd-add-index
Requires:	gdb
Requires:	desktop-file-utils

%description build
Basesystem defines the components of a basic Rosa Linux build system 
for the package installation order to use during bootstrapping.

This package can be used to setup a full and working system for package builds

%files build

#----------------------------------------------------------------------------

%package mandatory
Summary:	The skeleton package which defines a mandatory set of packages
Group:		System/Base
Requires:	basesystem-minimal
Requires:	bash
Requires:	bzip2
Requires:	chkconfig
Requires:	common-licenses
Requires:	coreutils
Requires:	dev
Requires:	e2fsprogs
Requires:	findutils
Requires:	gawk
Requires:	grep
Requires:	gzip
Requires:	gzip-utils
Requires:	hostname
#Requires:	initscripts
Requires:	iputils
Requires:	iproute2
Requires:	kbd
Requires:	kmod
Requires:	less
Requires:	locales
# locale C.UTF-8 is very useful
Requires:	locales-en
Requires:	logrotate
Requires:	losetup
Requires:	lsb-release
Requires:	lsof
Requires:	mount
Requires:	ncurses-extraterms
Requires:	net-tools
Requires:	passwd
Requires:	perl-base
Requires:	procps
Requires:	psmisc
Requires:	rpm
Requires:	sed
Requires:	shadow-utils
Requires:	stat
Requires:	syslog-daemon
Requires:	tar
Requires:	termcap
Requires:	time
Requires:	timezone
Requires:	util-linux
Requires:	vim-minimal
Requires:	which
Requires:	xz
Requires:	%{_bindir}/man
# most people can use nano more easily than vi
Recommends:	nano
Recommends:	(nano-as-default-editor if nano)
# man pages describing basics of the OS
Recommends:	man-pages
# Have package manager installed in most cases
# but allow to not install it and python stuff that is required by it
Recommends:	dnf

%description mandatory
Basesystem defines the mandatory components of a basic Rosa Linux system.

This package can be used to setup a set of packages which must not be 
removed from the system.

%files mandatory

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12103 |21mr|bash-5.1.16-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define patchlevel 16
%define major 5.1

# Bash is our default /bin/sh
%bcond_without bin_sh

Name:		bash
Version:	%{major}.%{patchlevel}
Release:	5
Source0:	ftp://ftp.gnu.org/pub/gnu/bash/%{name}-%{major}.tar.gz
Summary:	The GNU Bourne Again shell (bash)
Group:		Shells
License:	GPLv2+
URL:		http://www.gnu.org/software/bash/bash.html
Source3:	dot-bashrc
Source4:	dot-bash_profile
Source5:	dot-bash_logout
Source6:	alias.sh
Source7:	bashrc
Source8:	profile.d-bash

%if 0%{patchlevel}
# Upstream patches
%(for i in $(seq 1 %{patchlevel}); do echo Patch$i: ftp://ftp.gnu.org/pub/gnu/bash/bash-%{major}-patches/bash$(echo %{major} |sed -e 's,\.,,g')-$(echo 000$i |rev |cut -b1-3 |rev); done)
%endif

Patch1000:	bash-2.02-security.patch
# ensure profile is read (Redhat)
Patch1001:	bash-4.0-profile.patch
Patch1003:	bash-2.04-compat.patch
#https://bugzilla.novell.com/attachment.cgi?id=67684
Patch1004:	bash-4.3-extended_quote.patch
# Official upstream patches
# none
Patch1005:	bash-strcoll-bug.diff
Patch1007:	bash-3.2-lzma-copmpletion.patch
# (proyvind): 4.2-5 add --rpm-requires option (Fedora) (mdvbz#61712)
Patch1009:	bash-requires.patch
Patch1011:	bash-5.1-no-internal-libc.patch
Patch1012:	bash-5.0-no-Lusrlib.patch
Patch1013:	svace-fixes.patch
BuildRequires:	autoconf
BuildRequires:	bison
BuildRequires:	groff
BuildRequires:	texinfo
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(readline)
Recommends:	bashbug
Recommends:	bash-doc
Conflicts:	etcskel <= 1.63-11mdk
# explicit file provides
%if %{with bin_sh}
Provides:	/bin/sh
%endif
Provides:   /bin/bash
Provides:   %{_bindir}/bash
Provides:   %{_bindir}/sh

%description
Bash is a GNU project sh-compatible shell or command language
interpreter. Bash (Bourne Again shell) incorporates useful features
from the Korn shell (ksh) and the C shell (csh). Most sh scripts
can be run by bash without modification.

Bash offers several improvements over sh, including command line
editing, unlimited size command history, job control, shell
functions and aliases, indexed arrays of unlimited size and 
integer arithmetic in any base from two to 64. Bash is ultimately
intended to conform to the IEEE POSIX P1003.2/ISO 9945.2 Shell and
Tools standard.

%files -f %{name}.lang
%config(noreplace) %{_sysconfdir}/skel/.b*
%{_sysconfdir}/profile.d/60alias.sh
%{_sysconfdir}/profile.d/95bash-extras.sh
%config(noreplace) %{_sysconfdir}/bashrc
/bin/rbash
/bin/bash
%{_bindir}/bash
%{_bindir}/sh
%if %{with bin_sh}
/bin/sh
%endif

##################################################################

%package -n bashbug
Summary:	Report a bug in bash
Group:		Shells

%description -n bashbug
bashbug is a shell script to help the user compose and mail bug reports
concerning bash in a standard format.

%files -n bashbug
%{_bindir}/bashbug
%{_mandir}/man1/bashbug.1*

##################################################################

%package doc
Summary:	Documentation for the GNU Bourne Again shell (bash)
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
This package provides documentation for GNU Bourne Again shell (bash).

%files doc -f man.pages.filelist
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*
%{_infodir}/bash.info*
%{_mandir}/man1/bash.1*
%{_mandir}/man1/rbash.1*
%{_mandir}/man1/builtins.1*

##################################################################

%prep
%setup -qn %{name}-%{major}
mv doc/README .

%if 0%{patchlevel}
# Upstream patches
%(for i in `seq 1 %{patchlevel}`; do echo %%patch$i -p0; done)
%endif

%patch1000 -p1 -b .security
%patch1001 -p1 -b .profile
%patch1003 -p1 -b .compat
%patch1004 -p1 -b .extended_quote
%patch1005 -p1 -b .strcoll_bugx
%patch1007 -p1 -b .lzma
%patch1009 -p1 -b .requires~
%patch1011 -p1 -b .libc~
%patch1012 -p1 -b .Lusrlib~
%patch1013 -p1

sed -i -e 's,^#define.*CHECKWINSIZE_DEFAULT.*,#define CHECKWINSIZE_DEFAULT 1,' config-top.h

%build
export DEBUGGER_START_FILE="%{_datadir}/bashdb/bashdb-main.inc"

# Drag in support for aarch64-* and the likes
cp -a %{_datadir}/libtool/config/* .
cp -a %{_datadir}/libtool/config/* support/

# (tpg) remove built-in libraries
rm -rf lib/{readline,termcap}
ln -s %{_includedir}/readline lib/readline
ln -s %{_includedir}/termcap lib/termcap
sed -i 's:lib/\(readline\|termcap\)/Makefile::g' configure Makefile.in
sed -ri 's:\$[(](RL|HIST)_LIBSRC[)]/[[:alpha:]]*.h::g' Makefile.in

%serverbuild_hardened
%configure \
    --enable-command-timing \
    --disable-rpath \
    --enable-history \
    --enable-job-control \
    --enable-multibyte \
    --enable-readline \
    --with-installed-readline \
    --without-gnu-malloc \
    --without-bash-malloc \
    --disable-strict-posix-default \
    --enable-select \
    --enable-prompt-string-decoding \
    --enable-process-substitution \
    --enable-alias \
    --enable-bang-history \
    --enable-coprocesses \
    --enable-directory-stack \
    --enable-brace-expansion \
    --enable-cond-command \
    --enable-extended-glob \
    --enable-progcomp \
    --enable-arith-for-command

%make_build

# all tests must pass
%check
make check

%install
%make_install

# beurk
rm -rf %{buildroot}%{_datadir}/locale/en@boldquot/ %{buildroot}%{_datadir}/locale/en@quot/

#Sucks
chmod +w doc/texinfo.tex
chmod 755 examples/misc/aliasconv.*
chmod 755 examples/misc/cshtobash
chmod 755 %{buildroot}%{_bindir}/bashbug

# Take out irritating ^H's from the documentation
mkdir tmp_doc
for i in $(/bin/ls doc/) ; \
    do cat doc/$i > tmp_doc/$i ; \
    cat tmp_doc/$i | perl -p -e 's/.//g' > doc/$i ; \
    rm tmp_doc/$i ; \
    done
rmdir tmp_doc

mkdir -p %{buildroot}/bin
( cd %{buildroot} && mv usr/bin/bash bin/bash )
%if %{with bin_sh}
( cd %{buildroot}/bin && ln -s bash sh )
%endif

# make builtins.1 and rbash.1 with bash.1 in place (fix mdv#51379)
(cd doc
mkdir tmp_fix_so
cd tmp_fix_so
cp ../builtins.1 ../rbash.1 .
sed -e '/^.if \\n(zZ=1 .ig zZ/,/^.zZ/d' ../bash.1 > bash.1
soelim builtins.1 > ../builtins.1
sed -e '/^.if \\n(zY=1 .ig zY/,/^.zY/d' ../bash.1 > bash.1
soelim rbash.1    > ../rbash.1
)

# make manpages for bash builtins as per suggestion in DOC/README
(cd doc
sed -e '
/^\.SH NAME/, /\\- bash built-in commands, see \\fBbash\\fR(1)$/{
/^\.SH NAME/d
s/^bash, //
s/\\- bash built-in commands, see \\fBbash\\fR(1)$//
s/,//g
b
}
d
' builtins.1 | tr -s ' ' '\n' | grep -v -E '^(printf|export|echo|pwd|test|true|false|kill)$' > man.pages
# tr is needed because there are few commands in a row separated with a whilespace
install -m 644 builtins.1 %{buildroot}%{_mandir}/man1/builtins.1
install -m 644 bash.1 %{buildroot}%{_mandir}/man1/bash.1
install -m 644 rbash.1 %{buildroot}%{_mandir}/man1/rbash.1
install -m 644 bashbug.1 %{buildroot}%{_mandir}/man1/bashbug.1

for i in $(cat man.pages) ; do
# install man-page
    echo .so man1/builtins.1 > %{buildroot}%{_mandir}/man1/$i.1
# now turn man.page into a filelist for the man subpackage
    echo "%{_mandir}/man1/$i.1%{_extension}" >> ../man.pages.filelist
done

cat man.pages |tr -s ' ' '\n' |sed '
1i\
%defattr(0644,root,root,0755)
s:^:%{_mandir}/man1/:
s/$/.1%{_extension}/
' > ../man.pages

mkdir -p %{buildroot}%{_sysconfdir}/skel
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/skel/.bashrc
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/skel/.bash_profile
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/skel/.bash_logout
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/profile.d/60alias.sh
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/bashrc
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/profile.d/95bash-extras.sh

ln -s bash %{buildroot}/bin/rbash
mkdir -p %{buildroot}%{_bindir}
ln -s /bin/bash %{buildroot}%{_bindir}/bash
ln -s /bin/sh %{buildroot}%{_bindir}/sh

install -m 644 bash.info %{buildroot}%{_infodir}
)

%find_lang %{name}

# merges list
cat  %{name}.lang > files.list

# install documentation manually in expected place
install -d -m 755 %{buildroot}%{_docdir}/%{name}
install -m 644 README COMPAT NEWS NOTES POSIX CHANGES \
    %{buildroot}%{_docdir}/%{name}
cp -pr examples doc/*.ps doc/*.0 doc/*.html doc/article.txt \
    %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12104 |21mr|bash-completion-2.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _python_bytecompile_errors_terminate_build 0

Summary:	Programmable completion for bash
Name:		bash-completion
Epoch:		2
Version:	2.11
Release:	1
License:	GPLv2+
Group:		Shells
Url:		https://github.com/scop/bash-completion/releases
Source0:	https://github.com/scop/bash-completion/releases/download/%{version}/%{name}-%{version}.tar.xz
# ~/.bash_completion is used for completion variables setting, it has
# to be sourced from profile scriptlet instead of completion code itself
Patch10:	bash-completion-1.99-disable-user-completion.patch
Patch13:	bash-completion-2.1-fix-readline-quoting.patch
BuildArch:	noarch

%description
bash-completion is a collection of shell functions that take advantage of
the programmable completion feature of bash.

%files
%doc README.*.urpmi
%{_sysconfdir}/profile.d/20bash-completion.sh
%{_datadir}/bash-completion
%config(noreplace) %{_sysconfdir}/sysconfig/bash-completion
%config(noreplace) %{_sysconfdir}/skel/.bash_completion

#----------------------------------------------------------------------------

%package devel
Summary:	The pkgconfig for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
# cmake stuff was moved here
Conflicts:	%{name} < 2:2.8-5
Obsoletes:	%{name} < 2:2.8-5

%description devel
The pkgconfig for %{name}.

%files devel
%{_datadir}/pkgconfig/bash-completion.pc
%{_datadir}/cmake/bash-completion/*.cmake

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%configure
%make

%install
%makeinstall_std

chmod 644 %{buildroot}%{_datadir}/bash-completion/bash_completion

# (tpg) remove files which are in upstream packages
rm -f %{buildroot}%{_datadir}/bash-completion/completions/{nmcli,chsh,su,cal,dmesg,eject,hexdump,ionice,look,mount,umount,renice,hwclock,rtcwake,rfkill}

# adapt installation
rm -f %{buildroot}%{_sysconfdir}/profile.d/bash_completion.sh

mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
cat <<'EOF' >> %{buildroot}%{_sysconfdir}/profile.d/20bash-completion.sh
# Check for interactive bash and that we haven't already been sourced.
if [ -z "$BASH_VERSION" -o -z "$PS1" -o -n "$BASH_COMPLETION_COMPAT_DIR" ]; then
    return
fi

# source system wide config file
. %{_sysconfdir}/sysconfig/bash-completion

# source user config file if available,
if [ -f $HOME/.bash_completion ]; then
    . $HOME/.bash_completion
fi

if [ -n "$ENABLE_BASH_COMPLETION" ]; then
    . %{_datadir}/bash-completion/bash_completion
fi
EOF

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
cat <<'EOF' >> %{buildroot}%{_sysconfdir}/sysconfig/bash-completion
# bash completion global configuration

# enable bash completion
ENABLE_BASH_COMPLETION=1
# enable remote cvs completion
COMP_CVS_REMOTE=
# enable configure arguments completion
COMP_CONFIGURE_HINTS=
# enable tar archive internal path completion
COMP_TAR_INTERNAL_PATHS=
# enable wireless uid completion
COMP_IWLIST_SCAN=
# enable zeroconf hostnames completion
COMP_KNOWN_HOSTS_WITH_AVAHI=
# enable hostfile hostnames completion
COMP_KNOWN_HOSTS_WITH_HOSTFILE=1
EOF

mkdir -p %{buildroot}%{_sysconfdir}/skel
cat <<'EOF' >> %{buildroot}%{_sysconfdir}/skel/.bash_completion
# bash completion local configuration

# enable bash completion
#ENABLE_BASH_COMPLETION=1
# enable remote cvs completion
#COMP_CVS_REMOTE=
# enable configure arguments completion
#COMP_CONFIGURE_HINTS=
# enable tar archive internal path completion
#COMP_TAR_INTERNAL_PATHS=
# enable wireless uid completion
#COMP_IWCONFIG_SCAN=
# enable zeroconf hostnames completion
#COMP_AVAHI_BROWSE=
EOF

cat > README.install.urpmi <<EOF
Programmable bash completion is enabled by default. These settings can be
changed system-wide in /etc/sysconfig/bash-completion. Users may override these
settings in their ~/.bash_completion files. New users get a skeleton
configuration file automatically, while existing users can copy
/etc/skel/.bash_completion into their home directories if they want to edit
their completion settings.
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12105 |21mr|basic256-2.0.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple BASIC IDE that allows young children to learn to programming
Name:		basic256
Version:	2.0.0.11
Release:	1
License:	GPLv2
Group:		Development/Other
URL:		http://kidbasic.sourceforge.net
Source0: 	https://nav.dl.sourceforge.net/project/kidbasic/%{name}_%{version}.orig.tar.gz
Source1:	%{name}.desktop
Source2:	%{name}_32.png
Source3:	%{name}_ru.ts
BuildRequires:	qmake5
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(espeak-ng)

%description
BASIC-256 is a simple BASIC IDE that allows young children to learn to program. 
It was written in response to David Brin's article, "Why Johnny Can't Code," 
in which he bemoans the lack of a simple, line-oriented programming language 
for children that runs on modern computers. It features a byte-code compiler 
and interpreter, a debugger, easy to use graphical and text output, and an editor.

%files
%license license.txt
%doc CONTRIBUTORS ChangeLog
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.qm
%dir %{_datadir}/%{name}/Examples
%{_datadir}/%{name}/Examples/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#------------------------------------------------------------------

%prep
%autosetup

cp -rfv %{SOURCE3} Translations/

%build
lupdate-qt5 *.pro
lrelease-qt5 *.pro
%qmake_qt5
%make

%install
%makeinstall_qt

install -D %{SOURCE1} \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

install -D %{SOURCE2} \
	%{buildroot}%{_datadir}/pixmaps/%{name}.png



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12106 |21mr|batik-1.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Allow conditionally building without deps on scripting libs rhino and jython
%bcond_with jp_minimal

%global classpath batik:rhino:xml-commons-apis:xml-commons-apis-ext:xmlgraphics-commons:jai_imageio

Name:           batik
Version:        1.11
Release:        3
Summary:        Scalable Vector Graphics for Java
License:        ASL 2.0 and W3C
URL:            https://xmlgraphics.apache.org/batik/
Source0:        http://archive.apache.org/dist/xmlgraphics/batik/source/batik-src-%{version}.zip
Source1:        %{name}-security.policy
Patch1:         0001-Fix-imageio-codec-lookup.patch
Patch2:		CVE-2019-17566.patch
Patch3:		CVE-2022-41704.patch
Patch4:		CVE-2022-42890.patch
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:	maven-dependency-plugin
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.xmlgraphics:xmlgraphics-commons) >= 2.3
%if %{without jp_minimal}
BuildRequires:  mvn(org.mozilla:rhino)
BuildRequires:  mvn(org.python:jython)
%endif
BuildRequires:  mvn(xalan:xalan)
BuildRequires:  mvn(xml-apis:xml-apis)
BuildRequires:  mvn(xml-apis:xml-apis-ext)

# full support for tiff
Recommends:     jai-imageio-core

%description
Batik is a Java(tm) technology based toolkit for applications that want
to use images in the Scalable Vector Graphics (SVG) format for various
purposes, such as viewing, generation or manipulation.

%package util
Summary:        Batik utility library
Obsoletes:      %{name} < 1.11-1

%description util
Util component of the Apache Batik SVG manipulation and rendering library.

%package css
Summary:        Batik CSS engine

%description css
CSS component of the Apache Batik SVG manipulation and rendering library.

%package        squiggle
Summary:        Batik SVG browser
# Explicit requires for javapackages-tools since squiggle-script
# uses /usr/share/java-utils/java-functions
Requires:      javapackages-tools

%description    squiggle
The Squiggle SVG Browser lets you view SVG file, zoom, pan and rotate
in the content and select text items in the image and much more.

%package        svgpp
Summary:        Batik SVG pretty printer
# Explicit requires for javapackages-tools since svgpp-script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    svgpp
The SVG Pretty Printer lets developers "pretty-up" their SVG files and
get their tabulations and other cosmetic parameters in order. It can
also be used to modify the DOCTYPE declaration on SVG files.

%package        ttf2svg
Summary:        Batik SVG font converter
# Explicit requires for javapackages-tools since ttf2svg-script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    ttf2svg
The SVG Font Converter lets developers convert character ranges from
the True Type Font format to the SVG Font format to embed in SVG
documents. This allows SVG document to be fully self-contained be
rendered exactly the same on all systems.

%package        rasterizer
Summary:        Batik SVG rasterizer
# Explicit requires for javapackages-tools since rasterizer-script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    rasterizer
The SVG Rasterizer is a utility that can convert SVG files to a raster
format. The tool can convert individual files or sets of files, making
it easy to convert entire directories of SVG files. The supported
formats are JPEG, PNG, and TIFF, however the design allows new formats
to be added easily.

%package        slideshow
Summary:        Batik SVG slideshow
# Explicit requires for javapackages-tools since slideshow-script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    slideshow
Batik SVG slideshow.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%package        demo
Summary:        Samples for %{name}
Requires:       %{name} = %{version}-%{release}

%description    demo
Demonstrations and samples for %{name}.


%prep
%setup -q -n %{name}-%{version}

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

cp -p %{SOURCE1} batik-svgrasterizer/src/main/resources/org/apache/batik/apps/rasterizer/resources/rasterizer.policy
cp -p %{SOURCE1} batik-svgbrowser/src/main/resources/org/apache/batik/apps/svgbrowser/resources/svgbrowser.policy

# It's an uberjar, it shouldn't have requires
%pom_xpath_inject pom:dependency '<optional>true</optional>' batik-all

# Generate OSGi metadata
for pom in `find -mindepth 2 -name pom.xml -not -path ./batik-all/pom.xml`; do
    %pom_add_plugin org.apache.felix:maven-bundle-plugin $pom "
        <extensions>true</extensions>
        <configuration>
            <instructions>
                <Bundle-SymbolicName>org.apache.batik.$(sed 's:./batik-::;s:/pom.xml::' <<< $pom)</Bundle-SymbolicName>
            </instructions>
        </configuration>
    "
    %pom_xpath_inject pom:project '<packaging>bundle</packaging>' $pom
done

%if %{with jp_minimal}
# Remove optional deps on rhino and jython for minimal build
%pom_remove_dep :rhino batik-{bridge,script}
%pom_remove_dep :jython batik-script
rm -rf batik-script/src/main/java/org/apache/batik/script/{jpython,rhino}
rm batik-bridge/src/main/java/org/apache/batik/bridge/BatikWrapFactory.java
rm batik-bridge/src/main/java/org/apache/batik/bridge/SVG12RhinoInterpreter.java
rm batik-bridge/src/main/java/org/apache/batik/bridge/RhinoInterpreter.java
rm batik-bridge/src/main/java/org/apache/batik/bridge/RhinoInterpreterFactory.java
rm batik-bridge/src/main/java/org/apache/batik/bridge/EventTargetWrapper.java
rm batik-bridge/src/main/java/org/apache/batik/bridge/GlobalWrapper.java
rm batik-bridge/src/main/java/org/apache/batik/bridge/WindowWrapper.java
%endif

%mvn_package :batik-squiggle squiggle
%mvn_package :batik-squiggle-ext squiggle
%mvn_package :batik-svgpp svgpp
%mvn_package :batik-ttf2svg ttf2svg
%mvn_package :batik-rasterizer rasterizer
%mvn_package :batik-rasterizer-ext rasterizer
%mvn_package :batik-slideshow slideshow
%mvn_package :batik-css css
%mvn_package :batik-constants util
%mvn_package :batik-i18n util
%mvn_package :batik-util util
%mvn_package ':batik-test*' __noinstall

%mvn_file :batik-all batik-all

%build
%mvn_build

%install
%mvn_install

%jpackage_script org.apache.batik.apps.svgbrowser.Main '' '' %{classpath} squiggle true
%jpackage_script org.apache.batik.apps.svgpp.Main '' '' %{classpath} svgpp true
%jpackage_script org.apache.batik.apps.ttf2svg.Main '' '' %{classpath} ttf2svg true
%jpackage_script org.apache.batik.apps.rasterizer.Main '' '' %{classpath} rasterizer true
%jpackage_script org.apache.batik.apps.slideshow.Main '' '' %{classpath} slideshow true

# Demo
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/
cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}/


%files -f .mfiles
%license LICENSE NOTICE
%doc CHANGES MAINTAIN README

%files css -f .mfiles-css
%files util -f .mfiles-util

%files squiggle -f .mfiles-squiggle
%{_bindir}/squiggle

%files svgpp -f .mfiles-svgpp
%{_bindir}/svgpp

%files ttf2svg -f .mfiles-ttf2svg
%{_bindir}/ttf2svg

%files rasterizer -f .mfiles-rasterizer
%{_bindir}/rasterizer

%files slideshow -f .mfiles-slideshow
%{_bindir}/slideshow

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%files demo
%{_datadir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12107 |21mr|bc-1.07.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNU's bc (a numeric processing language) and dc (a calculator)
Name:		bc
Version:	1.07.1
Release:	3
License:	GPLv2+ 
URL:		http://www.gnu.org/software/bc/bc.html
Group:		Sciences/Mathematics
Source0:	ftp://ftp.gnu.org/gnu/bc/%{name}-%{version}.tar.gz
# Fedora patches
# dc accepts the input which contains wrong symbols of radix in same way like bc (RH bug#151844)
Patch1: bc-1.07.1-dc_ibase.patch
BuildRequires:	 flex ncurses-devel readline-devel
BuildRequires:	 texinfo
BuildRequires:	 bison
BuildRequires:	 ed
Requires(post):  grep
Requires(preun): grep

%description
The bc package includes bc and dc.  Bc is an arbitrary precision numeric
processing arithmetic language.  Dc is an interactive arbitrary precision
stack based calculator, which can be used as a text mode calculator.

Install the bc package if you need its number handling capabilities or
if you would like to use its text mode calculator.

%prep
%setup -q
%patch1 -p1 -b .dc_ibase

%build
%configure --with-readline
%make

%install
%{makeinstall}


%files
%doc FAQ AUTHORS NEWS README
%{_bindir}/bc
%{_bindir}/dc
%{_mandir}/man1/bc.1*
%{_mandir}/man1/dc.1*
%{_infodir}/bc.info*
%{_infodir}/dc.info*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12108 |21mr|bcc-0.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major 0
%define libname %mklibname bcc %{major}
%define devname %mklibname bcc -d

# "fix" underlinking:
%define _disable_ld_no_undefined 1
# luajit is not available for some architectures
%bcond_without lua

Summary:	BPF Compiler Collection (BCC)
Name:		bcc
Version:	0.18.0
Release:	1
License:	ASL 2.0
Group:		Development/Kernel
Url:		https://github.com/iovisor/bcc
# Upstream now provides a release with the git submodule embedded in it
Source0:	%{url}/releases/download/v%{version}/%{name}-src-with-submodule.tar.gz
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	clang-devel
BuildRequires:	libbpf-static-devel
BuildRequires:	llvm-devel
BuildRequires:	pkgconfig(libbpf)
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(python3)
%if %{with lua}
BuildRequires:	luajit
BuildRequires:	pkgconfig(luajit)
%endif
Requires:	%{name}-tools = %{EVRD}
# Arches will be included as upstream support is added and dependencies are
# satisfied in the respective arches.
# %%{ix86} has no parser defined in test_usdt_args.cc
ExclusiveArch:	%{x86_64} %{power64} s390x aarch64

%description
BCC is a toolkit for creating efficient kernel tracing and manipulation
programs, and includes several useful tools and examples. It makes use of
extended BPF (Berkeley Packet Filters), formally known as eBPF, a new feature
that was first added to Linux 3.15. BCC makes BPF programs easier to write,
with kernel instrumentation in C (and includes a C wrapper around LLVM), and
front-ends in Python and lua. It is suited for many tasks, including
performance analysis and network traffic control.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for BPF Compiler Collection (BCC)
Group:		System/Libraries

%description -n %{libname}
Shared libary for BCC.

%files -n %{libname}
%doc README.md
%license LICENSE.txt
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/libbcc_bpf.so.%{major}*
%{_libdir}/libbcc-no-libbpf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for BPF Compiler Collection (BCC)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use BPF Compiler Collection (BCC).

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/libbcc_bpf.so
%{_libdir}/libbcc-no-libbpf.so
%{_libdir}/pkgconfig/lib%{name}.pc
%{_includedir}/%{name}/

#----------------------------------------------------------------------------

%package doc
Summary:	Examples for BPF Compiler Collection (BCC)
Group:		Documentation
Recommends:	python3-%{name} = %{EVRD}
Recommends:	%{name}-lua = %{EVRD}
BuildArch:	noarch

%description doc
Examples for BPF Compiler Collection (BCC).

%files doc
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/examples/

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 bindings for BPF Compiler Collection (BCC)
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
Python 3 bindings for BPF Compiler Collection (BCC).

%files -n python3-%{name}
%{python3_sitelib}/%{name}*

#----------------------------------------------------------------------------

%if %{with lua}
%package lua
Summary:	Standalone tool to run BCC tracers written in Lua
Group:		Development/Kernel
Requires:	%{libname} = %{EVRD}

%description lua
Standalone tool to run BCC tracers written in Lua.

%files lua
%{_bindir}/bcc-lua
%endif

#----------------------------------------------------------------------------

%package tools
Summary:	Command line tools for BPF Compiler Collection (BCC)
Group:		Development/Kernel
Requires:	kernel-devel
Requires:	python3-%{name} = %{EVRD}
Requires:	python3-netaddr

%description tools
Command line tools for BPF Compiler Collection (BCC).

%files tools
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/tools/
%{_datadir}/%{name}/introspection/
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DREVISION_LAST=%{version} \
	-DREVISION=%{version} \
	-DPYTHON_CMD=%{__python3} \
	-DCMAKE_USE_LIBBPF_PACKAGE:BOOL=TRUE
%make

%install
%makeinstall_std -C build

# Fix python shebangs
find %{buildroot}%{_datadir}/%{name}/{tools,examples} -type f -exec \
  sed -i -e '1s=^#!/usr/bin/python\([0-9.]\+\)\?$=#!%{__python3}=' \
         -e '1s=^#!/usr/bin/env python\([0-9.]\+\)\?$=#!%{__python3}=' \
         -e '1s=^#!/usr/bin/env bcc-lua$=#!/usr/bin/bcc-lua=' {} \;

# Move man pages to the right location
mkdir -p %{buildroot}%{_mandir}
mv %{buildroot}%{_datadir}/%{name}/man/* %{buildroot}%{_mandir}/
# Avoid conflict with other manpages
# https://bugzilla.redhat.com/show_bug.cgi?id=1517408
for i in `find %{buildroot}%{_mandir} -name "*.gz"`; do
  tname=$(basename $i)
  rename $tname %{name}-$tname $i
done
mkdir -p %{buildroot}%{_docdir}/%{name}
mv %{buildroot}%{_datadir}/%{name}/examples %{buildroot}%{_docdir}/%{name}/

# Delete old tools we don't want to ship
rm -rf %{buildroot}%{_datadir}/%{name}/tools/old/

# Drop static library, no need to package it
rm -f %{buildroot}%{_libdir}/lib%{name}*.a

# We cannot run the test suit since it requires root and it makes changes to
# the machine (e.g, IP address)
#%check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12109 |21mr|bcel-6.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without jna

Name:           bcel
Version:        6.3.1
Release:        2
Epoch:          0
Summary:        Byte Code Engineering Library
License:        ASL 2.0
URL:            http://commons.apache.org/proper/commons-bcel/
Source0:        http://archive.apache.org/dist/commons/bcel/source/bcel-%{version}-src.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.commons:commons-parent:pom:)
%if %{with jna}
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java.dev.jna:jna)
BuildRequires:  mvn(net.java.dev.jna:jna-platform)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
%endif

%description
The Byte Code Engineering Library (formerly known as JavaClass) is
intended to give users a convenient possibility to analyze, create, and
manipulate (binary) Java class files (those ending with .class). Classes
are represented by objects which contain all the symbolic information of
the given class: methods, fields and byte code instructions, in
particular.  Such objects can be read from an existing file, be
transformed by a program (e.g. a class loader at run-time) and dumped to
a file again. An even more interesting application is the creation of
classes from scratch at run-time. The Byte Code Engineering Library
(BCEL) may be also useful if you want to learn about the Java Virtual
Machine (JVM) and the format of Java .class files.  BCEL is already
being used successfully in several projects such as compilers,
optimizers, obsfuscators and analysis tools, the most popular probably
being the Xalan XSLT processor at Apache.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -n %{name}-%{version}-src

%pom_remove_plugin :maven-source-plugin

%mvn_alias : bcel: apache:
%mvn_file : %{name}

%build
%if %{without jna}
%mvn_build -f
%else
%mvn_build
%endif

%install
%mvn_install

%files -f .mfiles
%doc RELEASE-NOTES.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12110 |21mr|bcg729-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	Encoder and decoder of the ITU G.729 Annex A/B speech codec
Name:		bcg729
Version:	1.1.1
Release:	1
License:	GPLv2+
Group:		System/Libraries
URL:		https://linphone.org/
Source0:	https://github.com/BelledonneCommunications/bcg729/archive/%{version}.tar.gz?/bcg729-%{version}.tar.gz
# (wally) from OpenSUSE to install pkgconfig .pc file
Patch0:		bcg729-fix-pkgconfig.patch
# (wally) alow overriding cmake config file location from cmd line
Patch1:		bcg729-1.1.1-cmake-config-location.patch
BuildRequires:	cmake

%description
Bcg729 is an implementation of both encoder and decoder of the ITU G.729
Annex A/B speech codec.

It supports concurrent channels encoding/decoding for multi call application
such as conferencing,

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Encoder and decoder of the ITU G.729 Annex A/B speech codec
Group:		System/Libraries

%description -n %{libname}
Bcg729 is an implementation of both encoder and decoder of the ITU G.729
Annex A/B speech codec.

It supports concurrent channels encoding/decoding for multi call application
such as conferencing.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}

%files -n %{devname}
%doc AUTHORS.md README.md LICENSE.txt
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/Bcg729/
%{_libdir}/pkgconfig/lib%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake \
	-DENABLE_STATIC:BOOL=NO \
	-DENABLE_STRICT:BOOL=NO \
	-DCONFIG_PACKAGE_LOCATION:PATH=%{_libdir}/cmake/Bcg729
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12111 |21mr|bcm43xx-fwcutter-006-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to extract firmware for Broadcom 43xx network chip
Name:		bcm43xx-fwcutter
Version:	006
Release:	15
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://bcm43xx.berlios.de/
Source0:	%{name}-%{version}.tar.bz2
Patch1:		bcm43xx-fwcutter-006-install_perms.patch

%description
Fwcutter allows you to extract the firmware required for Broadcom 43xx chips
out of the .sys files commonly available with the card or on the internet.

Once extracted, place all .fw files into /lib/firmware.

This variant of the tool is for the bcm43xx variant of the driver. For the
b43 variant of the driver, use the package b43-fwcutter.

%files
%doc README README.urpmi
%{_bindir}/bcm43xx-fwcutter
%{_mandir}/man1/bcm43xx-fwcutter.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p0
perl -pi -e 's|man/man1|share/man/man1|g' Makefile

%build
%setup_compile_flags
%make

%install
make install PREFIX=%{buildroot}%{_prefix}

cat > README.urpmi <<EOF
You need to extract the firmware from the .sys file provided by your vendor.
i.e bcm43xx-fwcutter -w /lib/firmware/ bcmwl5.sys
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12112 |21mr|bctoolbox-5.1.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname bctoolbox %{major}
%define devname %mklibname bctoolbox -d
%define sdevname %mklibname bctoolbox -d -s

Summary:	Library for accessing USB devices
Name:		bctoolbox
Version:	5.1.55
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/BelledonneCommunications/
Source0:	https://github.com/BelledonneCommunications/bctoolbox/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		cmake-config-location.patch
BuildRequires:	cmake
BuildRequires:	polarssl-devel
BuildRequires:	mbedtls-devel
BuildRequires:	pkgconfig(bcunit)

%description
Utilities library used by Belledonne Communications
softwares like belle-sip, mediastreamer2 and linphone.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for accessing USB devices
Group:		System/Libraries

%description -n %{libname}
Library used by Belledonne Communications
softwares like belle-sip, mediastreamer2 and linphone.

%files -n %{libname}
%{_libdir}/libbctoolbox*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# cmake targets require static library
Requires:	%{sdevname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel-doc < 1.0.15-2

%description -n %{devname}
This package includes the development files for %{name}.

%files -n %{devname}
%{_libdir}/cmake/*/*.cmake
%{_includedir}/%{name}
%{_libdir}/libbctoolbox*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Development files for %{name} (static)
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package includes the development files for %{name}.

%files -n %{sdevname}
%{_libdir}/libbctoolbox*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DENABLE_STRICT:BOOL=OFF \
	-DENABLE_TESTS:BOOL=ON \
	-DENABLE_TESTS_COMPONENT:BOOL=ON
%make

%install
%makeinstall_std -C build

rm %{buildroot}%{_libdir}/cmake/%{name}/gitversion.h.in
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12113 |21mr|bcunit-3.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%global gdate 20210211

Summary:	BCUnit, a fork of the defunct project CUnit
Name:		bcunit
Version:	3.0.2
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/BelledonneCommunications/bcunit
#Source0:	https://github.com/BelledonneCommunications/bcunit/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source0:	bcunit-%{gdate}.tar.xz
# PATCH-FIX-OPENSUSE bcunit-link-ncurses.patch jengelh@medozas.de
Patch0:		bcunit-link-ncurses.patch
# PATCH-FIX-OPENSUSE bcunit-ncurses6.patch idonmez@suse.com -- Compile with ncurses6.
Patch1:		bcunit-ncurses6.patch
# PATCH-FIX-OPENSUSE bcunit-sover.patch sor.alexei@meowr.ru -- Correctly set the sover.
Patch2:		bcunit-sover.patch
# mga patches
Patch101:	bcunit-CMake-files-location.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(ncurses)

%description
This is BCUnit, a fork of the defunct project CUnit
(see below), with several fixes and patches applied.

CUnit is a Unit testing framework for C.

The basic framework is platform/version independent and should be
portable to all platforms. CUnit provides various interfaces to
the framework, some of which are platform dependent (e.g. curses on
*nix). Building other interfaces should be straightforward with
the facilities provided in the framework.

CUnit is built as either a static or shared library which provides
framework support when linked into user testing code. The framework
complies with the conventional structure of test cases bundled into
suites which are registered with the framework for running. See the
documentation for more about the structure and use of the framework.

Note - the windows-specific gui interface is not yet written. It is
still necessary to use either the automated, basic, or console
interfaces to CUnit on Windows at this time.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C testing framework
Group:		System/Libraries

%description -n %{libname}
CUnit is a lightweight system for writing, administering, and running unit
tests in C. It provides C programmers a basic testing functionality with a
flexible variety of user interfaces.

CUnit is built as a static library which is linked with the user's testing
code. It uses a simple framework for building test structures, and provides a
rich set of assertions for testing common data types. In addition, several
different interfaces are provided for running tests and reporting results.
These interfaces currently include:

- Automated: Non-interactive output to xml file
- Basic: Non-interactive flexible programming interface
- Console: Interactive console interface (ansi C)
- Curses: Interactive graphical interface (Unix)

%files -n %{libname}
%{_libdir}/libbcunit.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_datadir}/BCUnit
%{_defaultdocdir}/BCUnit
%{_includedir}/BCUnit
%{_libdir}/cmake/BCunit/BcUnit*.cmake
%{_libdir}/libbcunit.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{gdate}

%build
%cmake \
	-DENABLE_DOC:BOOL=ON		\
	-DENABLE_STATIC:BOOL=OFF	\
	-DENABLE_AUTOMATED:BOOL=ON	\
	-DENABLE_BASIC:BOOL=ON		\
	-DENABLE_CONSOLE:BOOL=ON	\
	-DENABLE_CURSES:BOOL=ON		\
	-DENABLE_EXAMPLES:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12114 |21mr|bdftopcf-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert X font from Bitmap Distribution Format to Portable Compiled Format
Name:		bdftopcf
Version:	1.1
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xfont)

%description
Bdftopcf converts X fonts from Bitmap Distribution Format to Portable
Compiled Format.

%files
%{_bindir}/bdftopcf
%{_mandir}/man1/bdftopcf.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12115 |21mr|bean-validation-api1-1.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global oldname bean-validation-api

Name:             bean-validation-api1
Version:          1.1.0
Release:          4
Summary:          Bean Validation API (JSR 349)
License:          ASL 2.0
URL:              http://beanvalidation.org/
Group:            Development/Java
Source0:          https://github.com/beanvalidation/beanvalidation-api/archive/%{oldname}-%{namedversion}.tar.gz
 
BuildRequires:    java-devel
BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires:    mvn(org.testng:testng)
 
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
 
%description
This package contains Bean Validation (JSR-349) API.
 
%package javadoc
Summary:          Javadoc for %{name}
 
%description javadoc
This package contains the API documentation for %{name}.
 
%prep
%setup -q -n beanvalidation-api-%{namedversion}
 
# Disable javadoc jar
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
# Disable source jar
%pom_remove_plugin :maven-source-plugin
 
# The byte array allocation should have triggered a OutOfMemoryError
find src/test/java -name "ValidationTest.java" -print -delete
 
%mvn_file : %{oldname}
# add mvn() provides with postfix ":5" and postfix "-5" to names of files
# to avoid conflicts with other versions of woodstox-core
%mvn_compat_version : 1 %{namedversion}
 
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin pom.xml "
                <configuration>
                    <additionalparam>-Xdoclint:none</additionalparam>
                </configuration>
"
 
%build
 
%mvn_build
%install
%mvn_install
%files -f .mfiles
%doc license.txt
 
%files javadoc -f .mfiles-javadoc
%doc license.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12116 |21mr|bean-validation-api-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:           bean-validation-api
Summary:        Bean Validation API (JSR 349)
Version:        2.0.1
Release:        1
License:        ASL 2.0

URL:            http://beanvalidation.org/
Source0:        https://github.com/beanvalidation/beanvalidation-api/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.testng:testng)

%description
This package contains Bean Validation (JSR-349) API.


%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n beanvalidation-api-%{namedversion}

%pom_remove_plugin :license-maven-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%mvn_file : %{name}


%build
%mvn_build -f


%install
%mvn_install


%files -f .mfiles
%doc README.md
%license license.txt copyright.txt

%files javadoc -f .mfiles-javadoc
%doc README.md
%license license.txt copyright.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12117 |21mr|bea-stax-1.2.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global apiver  1.0.1

Summary:        Streaming API for XML
URL:            http://stax.codehaus.org/Home
Source0:        http://dist.codehaus.org/stax/distributions/stax-src-%{version}.zip
Source1:        http://dist.codehaus.org/stax/jars/stax-%{version}.pom
Source2:        http://dist.codehaus.org/stax/jars/stax-api-%{apiver}.pom
Name:           bea-stax
Version:        1.2.0
Release:        19
License:        ASL 1.1 and ASL 2.0
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  xerces-j2
BuildRequires:  xalan-j2

%description
The Streaming API for XML (StAX) is a groundbreaking
new Java API for parsing and writing XML easily and
efficiently.

%package api
Summary:        The StAX API

%description api
%{summary}

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
%{summary}

%prep
%setup -q -c -n %{name}-%{version}

# Convert CR+LF to LF
%{__sed} -i 's/\r//' ASF2.0.txt

cp -p %{SOURCE1} pom.xml

# Incorrectly scoped
%pom_remove_dep :junit

%build
ant all javadoc

%install
%mvn_file ':{*}' bea-@1
%mvn_package :stax-api api
%mvn_alias :stax-api javax.xml.stream:stax-api
%mvn_artifact pom.xml build/stax-%{version}-dev.jar
%mvn_artifact %{SOURCE2} build/stax-api-%{apiver}.jar

%mvn_install -J build/javadoc

%files -f .mfiles
%license ASF2.0.txt

%files api -f .mfiles-api
%license ASF2.0.txt

%files javadoc -f .mfiles-javadoc
%license ASF2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12118 |21mr|belcard-5.1.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	C++ library to manipulate vCard standard format
Name:		belcard
Group:		System/Libraries
License:	GPLv3+
Version:	5.1.55
Release:	1
URL:		https://linphone.org/
Source0:	https://github.com/BelledonneCommunications/belcard/archive/%{version}.tar.gz?/belcard-%{version}.tar.gz
# (wally) alow overriding cmake config file location from cmd line
Patch0:         belcard-4.5.1-cmake-config-location.patch
# (wally) from OpenSUSE to install pkgconfig .pc file
Patch1:		belcard-fix-pkgconfig.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(belr)
BuildRequires:	pkgconfig(udev)

%description
Belcard is a C++ library to manipulate the vCard standard format.

#----------------------------------------------------------------

%package tools
Summary:	Tools to work with vCard standard format
Group:		Communications
# files were moved
Obsoletes:	belcard < 4.5.15-2
Conflicts:	belcard < 4.5.15-2

%description tools
Tools to work with vCard standard format

%files tools
%license LICENSE*
%doc README.md
%{_bindir}/belcard-folder
%{_bindir}/belcard-parser
%{_bindir}/belcard-unfolder
%{_bindir}/belcard_tester
%{_datadir}/belcard_tester/
#----------------------------------------------------------------

%package grammar
Summary:	vCard grammar dictionary for the belcard library
Group:		Communications
# files were moved
Conflicts:	belcard < 4.5.15-2

%description grammar
vCard grammar dictionary for the belcard library

%files grammar
%license LICENSE*
%doc README.md
%{_datadir}/belr/grammars/vcard_grammar
#----------------------------------------------------------------

%package -n	%{libname}
Summary:	C++ library to manipulate vCard standard format
Group:		System/Libraries
Requires:	%{name}-grammar = %{EVRD}

%description -n	%{libname}
Belcard is a C++ library to manipulate the vCard standard format.

%files -n %{libname}
%license LICENSE*
%doc README.md
%{_libdir}/lib%{name}.so.%{major}*
#----------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
This package contains development files for %{name}

%files -n %{develname}
%license LICENSE*
%doc README.md
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/belcard/
%{_libdir}/pkgconfig/%{name}.pc
#----------------------------------------------------------------

%prep
%setup -q
sed -i -e 's,\r$,,' CMakeLists.txt
%apply_patches

%build
%cmake \
  -DENABLE_STATIC:BOOL=NO \
  -DENABLE_STRICT:BOOL=NO
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12119 |21mr|belle-sip-5.1.55-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname bellesip %{major}
%define devname %mklibname bellesip -d

%global _default_patch_fuzz 20

Summary:	C object oriented SIP Stack
Name:		belle-sip
Version:	5.1.55
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/BelledonneCommunications/belle-sip
Source0:	https://github.com/BelledonneCommunications/belle-sip/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	http://antlr3.org/download/antlr-3.5.2-complete.jar
BuildRequires:	cmake
BuildRequires:	java
BuildRequires:	antlr3-C-devel
BuildRequires:	bctoolbox-static-devel
BuildRequires:	pkgconfig(belr)
BuildRequires:	pkgconfig(bctoolbox)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-sdp-grammar

%description
Belle-sip is a SIP (RFC3261) implementation written in C, with an object
oriented API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C object oriented SIP Stack
Group:		System/Libraries
Requires:	%{name}-sdp-grammar

%description -n %{libname}
Belle-sip is a SIP (RFC3261) implementation written in C, with an object
oriented API.

%files -n %{libname}
%doc AUTHORS.md CHANGELOG.md README.md
%license LICENSE.txt
%{_libdir}/libbellesip.so.%{major}*

#----------------------------------------------------------------------------
%package sdp-grammar
Summary:	SDP grammar files for belle-sip
# files were moved
Conflicts:	%{devname} < 5.1.55

%description sdp-grammar
SDP grammar files for belle-sip

%files sdp-grammar
%{_datadir}/belr/grammars/sdp_grammar

#----------------------------------------------------------------------------
%package -n %{devname}
Summary:	Headers and libraries for the belle-sip library
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Belle-sip is a SIP (RFC3261) implementation written in C, with an object
oriented API.

This package contains header files and development libraries needed to
develop programs using the belle-sip library.

%files -n %{devname}
%doc AUTHORS.md CHANGELOG.md README.md
%license LICENSE.txt
%ifnarch %{e2k}
%{_bindir}/belle_sip_tester
%{_datadir}/belle_sip_tester
%endif
%{_includedir}/%{name}/
%{_libdir}/cmake/BelleSIP/
%{_libdir}/libbellesip.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp -f %{SOURCE1} antlr3.jar

%build
antlr_jar="$PWD/antlr3.jar"
%cmake \
%ifnarch %{e2k}
	-DENABLE_TESTS=ON \
%else
	-DENABLE_TESTS=OFF \
%endif
	-DANTLR3_JAR_PATH="$antlr_jar" \
	-DENABLE_STRICT=OFF \
	-DENABLE_STATIC=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12120 |21mr|belr-5.1.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Language recognition library
Name:		belr
Version:	5.1.55
Release:	1
License:	GPLv3
Group:		System/Libraries
Url:		https://linphone.org/
Source0:	https://github.com/BelledonneCommunications/belr/archive/%{version}.tar.gz?/belr-%{version}.tar.gz
# (wally) from OpenSUSE to install pkgconfig .pc file
Patch1:		belr-fix-pkgconfig.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(bctoolbox)
BuildRequires:	pkgconfig(udev)

%description
Belr aims at parsing any input formatted according to a language defined by
an ABNF grammar, such as the protocols standardised at IETF.

%files
%doc README.md LICENSE*
%{_bindir}/belr-parse
%{_bindir}/belr-compiler
%{_bindir}/belr_tester
%{_datadir}/belr-tester
%{_datadir}/belr

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Language recognition library
Group:		System/Libraries

%description -n %{libname}
Belr aims at parsing any input formatted according to a language defined by
an ABNF grammar, such as the protocols standardised at IETF.

%files -n %{libname}
%doc README.md LICENSE*
%{_libdir}/lib%{name}.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}

%files -n %{devname}
%doc README.md LICENSE*
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/belr/
%{_libdir}/pkgconfig/%{name}.pc

#---------------------------------------------------------------------------

%prep
%setup -q
sed -i -e 's,\r$,,' CMakeLists.txt
%autopatch -p1

%build
%cmake \
	-DENABLE_STATIC:BOOL=NO \
	-DENABLE_STRICT:BOOL=NO \
	-DCONFIG_PACKAGE_LOCATION:PATH=%{_libdir}/cmake/Belr
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12121 |21mr|benchmark-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define libmain %mklibname %{name}_main %{major}
%define devname %mklibname %{name} -d

Summary:	A microbenchmark support library
Name:		benchmark
Version:	1.6.0
Release:	1
License:	Apache-2.0
Group:		System/Libraries
Url:		https://github.com/google/benchmark
Source0:	https://github.com/google/benchmark/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		disable-inline-assembly-for-e2k.patch
BuildRequires:	cmake >= 3.5.1
BuildRequires:	git-core

%description
A library to support the benchmarking of functions, similar to unit-tests.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for google benchmark
Group:		System/Libraries

%description -n %{libname}
A library to support the benchmarking of functions, similar to unit-tests.

%files -n %{libname}
%license LICENSE
%doc AUTHORS README.md
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libmain}
Summary:	Shared library for google benchmark
Group:		System/Libraries

%description -n %{libmain}
A library to support the benchmarking of functions, similar to unit-tests.

%files -n %{libmain}
%license LICENSE
%doc AUTHORS README.md
%{_libdir}/lib%{name}_main.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for google benchmark
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libmain} = %{EVRD}

%description -n %{devname}
Development files for google benchmark library

%files -n %{devname}
%license LICENSE
%doc AUTHORS README.md
%doc %{_docdir}/benchmark
%dir %{_libdir}/cmake/%{name}
%{_libdir}/cmake/%{name}/*.cmake
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}_main.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
sed -e 's|lib_install_dir "lib/"|lib_install_dir "%{_libdir}/"|g' \
    -e 's|config_install_dir "lib/cmake|config_install_dir "%{_libdir}/cmake|g' \
    -e 's|pkgconfig_install_dir "lib/pkgconfig"|pkgconfig_install_dir "%{_libdir}/pkgconfig"|g' \
    -i src/CMakeLists.txt
sed -e 's|libdir=${prefix}/@CMAKE_INSTALL_LIBDIR@|libdir=${prefix}@CMAKE_INSTALL_LIBDIR@|' \
    -i cmake/benchmark.pc.in

%cmake \
	-DBENCHMARK_ENABLE_LTO=on \
	-DBENCHMARK_ENABLE_GTEST_TESTS=false \
	-DBENCHMARK_ENABLE_TESTING=true
%make

%install
%makeinstall_std -C build

sed -e 's|libdir=${prefix}/lib|libdir=${prefix}%{_lib}|' \
    -i cmake/benchmark.pc.in


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12122 |21mr|beust-jcommander-1.71-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           beust-jcommander
Version:        1.71
Release:        7
Summary:        Java framework for parsing command line parameters
License:        ASL 2.0
URL:            http://jcommander.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
# Adapted from earlier version that still shipped poms. It uses kobalt for building now
Source1:        %{name}.pom
# Cleaned up bundled jars hose licensing cannot be easily verified
Source2:        generate-tarball.sh

Patch0: 0001-ParseValues-NullPointerException-patch.patch 

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  mvn(org.testng:testng)

%description
JCommander is a very small Java framework that makes it trivial to
parse command line parameters (with annotations).

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the %{summary}.

%prep
%setup -q -n jcommander-%{version}
%patch0 -p1

chmod -x license.txt
cp -p %SOURCE1 pom.xml
sed -i 's/@VERSION@/%{version}/g' pom.xml

%build
%mvn_file : %{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc license.txt notice.md README.markdown

%files javadoc -f .mfiles-javadoc
%doc license.txt notice.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12123 |21mr|bijiben-40.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	Simple Note Viewer
Name:		bijiben
Version:	40.1
Release:	11
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/bijiben
Source0:	https://download.gnome.org/sources/bijiben/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		bijiben-40.1-remove-terminal-warnings.patch
Patch1:		bijiben-40.1-meson-positional-arguments.patch
Patch2:		bijiben-40.1-use-webkit2gtk-4.1.patch
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libedataserver-1.2)
BuildRequires:	pkgconfig(libedataserverui-1.2)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(webkit2gtk-4.1)

%description
Simple note editor which emphasis on visuals : quickly write
notes, quickly find it back.

%files -f %{name}.lang
%doc NEWS AUTHORS README.md
%license COPYING
%{_appdatadir}/org.gnome.Notes.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Notes.desktop
%{_datadir}/dbus-1/services/org.gnome.Notes.SearchProvider.service
%{_datadir}/glib-2.0/schemas/org.gnome.Notes.gschema.xml
%{_datadir}/gnome-shell/search-providers/org.gnome.Notes-search-provider.ini
%{_datadir}/mime/packages/org.gnome.Notes.xml
%{_datadir}/%{name}
%{_iconsdir}/*/*/*/*
%{_libexecdir}/%{name}-shell-search-provider

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12124 |21mr|bind-9.11.37-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global openssl_shlib_ver %(cat /usr/include/openssl/opensslv.h | grep '^#' | grep SHLIB_VERSION_NUMBER | grep 'define ' | head -n 1 | awk '{print $NF}' | tr -d '""')
%global docbook_style_xsl_ver 1.79.2
%global optflags %{optflags} -DLIBMARIADB
%define Werror_cflags -Wformat
%define _default_patch_fuzz 5

%define dns_major	1115
%define irs_major	161
%define isc_major	1107
%define bind9_major	161
%define lwres_major	161
%define isccc_major	161
%define isccfg_major	163
%define dns_libname	%mklibname dns %{dns_major}
%define irs_libname	%mklibname irs %{irs_major}
%define isc_libname	%mklibname isc %{isc_major}
%define bind9_libname	%mklibname bind9_ %{bind9_major}
%define lwres_libname	%mklibname lwres %{lwres_major}
%define isccc_libname	%mklibname isccc %{isccc_major}
%define isccfg_libname	%mklibname isccfg %{isccfg_major}

%define dns_pkcs11_major	%{dns_major}
%define isc_pkcs11_major	%{isc_major}
%define dns_pkcs11_libname	%mklibname dns-pkcs11 %{dns_pkcs11_major}
%define isc_pkcs11_libname	%mklibname isc-pkcs11 %{isc_pkcs11_major}

%define dns_export_major	%{dns_major}
%define irs_export_major	%{irs_major}
%define isc_export_major	%{isc_major}
%define isccfg_export_major	%{isccfg_major}
%define dns_export_libname	%mklibname dns-export %{dns_export_major}
%define irs_export_libname	%mklibname irs-export %{irs_export_major}
%define isc_export_libname	%mklibname isc-export %{isc_export_major}
%define isccfg_export_libname	%mklibname isccfg-export %{isccfg_export_major}

# libisc-nosym requires to be linked with unresolved symbols
# When libisc-nosym linking is fixed, it can be defined to 1
# Visit https://bugzilla.redhat.com/show_bug.cgi?id=1540300
%define _disable_ld_no_undefined 1

# default options
%bcond_without SDB
%bcond_without DLZ
%bcond_without sdb_ldap
%bcond_without sdb_mysql
%bcond_without gssapi
# pkcs11 support requires a working backend, otherwise bind won't start
# http://blogs.sun.com/janp/
# http://sourceforge.net/projects/opencryptoki
%bcond_without pkcs11

%global        bind_dir          /var/named
%global        chroot_prefix     %{bind_dir}/chroot
%if %{with SDB}
%global        chroot_sdb_prefix %{bind_dir}/chroot_sdb
%endif
%global        chroot_create_directories /dev /run/named %{_localstatedir}/{log,named,tmp} \\\
                                         %{_sysconfdir}/{crypto-policies/back-ends,pki/dnssec-keys,named} \\\
                                         %{_libdir}/bind %{_datadir}/GeoIP

%global        selinuxbooleans   named_write_master_zones=1

Summary:	A DNS (Domain Name System) server
Name:		bind
Epoch:		1
Version:	9.11.37
Release:	1
License:	MPLv2.0
Group:		System/Servers
Url:		http://www.isc.org/products/BIND/
Source0:	http://ftp.isc.org/isc/bind9/%{version}/%{name}-%{version}.tar.gz
Source1:	bind.rpmlintrc
Source2:	named.sysconfig
Source3:	named.logrotate
Source7:	bind-9.3.1rc1-sdb_tools-Makefile.in
Source12:	README.sdb_pgsql
Source13:	zonetodb-compat.sh
# updated bind.keys from https://downloads.isc.org/isc/bind9/keys/9.11/
Source14:	bind.keys
Source25:	named.conf.sample
Source30:	ldap2zone.c
Source31:	ldap2zone.1
Source32:	named-sdb.8
Source33:	zonetodb.1
Source34:	zone2sqlite.1
Source36:	trusted-key.key
Source38: 	bind-named-chroot.service
Source39:	bind-named-sdb.service
Source40:	bind-named-sdb-chroot.service
Source41:	setup-named-chroot.sh
Source42:	generate-rndc-key.sh
Source43:	named.rwtab
Source45:	bind-named-sdb-chroot-setup.service
Source46:	bind-named-setup-rndc.service
Source47:	named-pkcs11.service
Source48:	setup-named-softhsm.sh
Source49: 	named-chroot.files
Source50:	random.data

Source51:	bind-manpages.tar.bz2
Source52:	bind-dhcp-dynamic-dns-examples.tar.bz2
# https://sourceforge.net/projects/mysql-bind/files/mysql-bind/mysql-bind-0.2%20src/mysql-bind.tar.gz
Source53:	mysql-bind.tar.gz
# (oe) http://bind9-ldap.bayour.com/bind-sdb-ldap-1.0.tar.gz
Source54:	bind-sdb-ldap-1.0.tar.bz2

Source58:	bind-named.service
Source59:	bind-named-chroot-setup.service
Source60:	bind-named.sysconfig
Source61:	bind-keygen.c
Source62:	bind-named-chroot-setup.sysconfig
Source63:	ftp://ftp.internic.net/domain/named.cache
Source90:	named.sysusers.conf
Source91:	named.tmpfiles.conf
Source100:	bogon_acl.conf
Source101:	hosts
Source102:	localdomain.zone
Source103:	localhost.zone
Source104:	logging.conf
Source105:	named.broadcast
Source106:	named.conf
Source107:	named.ip6.local
Source108:	named.local
Source109:	named.zero
Source111:	rndc.key
Source112:	trusted_networks_acl.conf
Source113:	named.iscdlv.key

# From Fedora
Source114:	named.rfc1912.zones
Source115:	named.root.key

# From CentOS
Source116:	named.localhost
Source117:	named.loopback
Source118:	named.empty
Source119:	ftp://ftp.internic.net/domain/named.root

Patch3:		0036-CVE-2022-2795.patch
Patch4:		0037-CVE-2022-38177.patch
Patch5:		0038-CVE-2022-38178.patch
# Common patches
Patch72:	bind-9.5-dlz-64bit.patch
Patch101:	bind-96-old-api.patch
Patch102:	bind-95-rh452060.patch
Patch112:	bind97-rh645544.patch
Patch130:	bind-9.9.1-P2-dlz-libdb.patch
Patch131:	bind-9.9.1-P2-multlib-conflict.patch
Patch133:	bind99-rh640538.patch
Patch134:	bind97-rh669163.patch

Patch136:	bind-9.11-dist-native-pkcs11.patch
# [ISC-Bugs #42525] non-portable use of strlcat in contrib/sdb/ldap/zone2ldap.c
# introduced by https://source.isc.org/cgi-bin/gitweb.cgi?p=bind9.git;a=commit;h=fc9f0ac5778f78003a7acc957a23711811fec122
Patch137:	bind-9.10-use-of-strlcat.patch
Patch140:	bind-9.11-rh1410433.patch
Patch145:	bind-9.11-rh1205168.patch
# Avoid conflicts with OpenSSL PKCS11 engine
Patch150:	bind-9.11-engine-pkcs11.patch
# [ISC-Bugs #46853] commit cb616c6d5c2ece1fac37fa6e0bca2b53d4043098 ISC 4851
Patch153:	bind-9.11-export-suffix.patch
Patch154:	bind-9.11-oot-manual.patch
Patch155:	bind-9.11-pk11.patch
Patch156:	bind-9.11-fips-code.patch
Patch157:	bind-9.11-fips-tests.patch
Patch158:	bind-9.11-rt31459.patch
Patch170:	bind-9.11-feature-test-named.patch
# SDB patches
Patch11:	bind-9.3.2b2-sdbsrc.patch
# Rediffed from Fedora ~28
Patch301:	bind-9.10-sdb.patch
# needs inpection
Patch13: 	bind-9.3.2b1-fix_sdb_ldap.patch

BuildRequires:	autoconf2.5
BuildRequires:	bzip2
BuildRequires:	docbook-style-xsl
BuildRequires:	file
BuildRequires:	kyua
BuildRequires:	libtool
BuildRequires:	openldap
# for %%selinux_set_boolean macro
BuildRequires:	selinux-policy
BuildRequires:	softhsm
# I backported %%sysusers_create_package and %%tmpfiles_create_package
BuildRequires:	systemd >= 230-14
BuildRequires:	xsltproc
%if %{with sdb_ldap}
BuildRequires:	db18-devel
BuildRequires:	openldap-devel
%endif
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(cmocka)
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(json-c)
%if %{with gssapi}
BuildRequires:	pkgconfig(krb5-gssapi)
%endif
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libcap) >= 2.10
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
%if %{with sdb_mysql}
BuildRequires:	pkgconfig(mariadb)
%endif
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pythonegg(ply)
BuildRequires:	python3egg(ply)

# This wild require should satisfy %%selinux_set_boolean macro only
# in case it needs to be used
%if %{rpm4}
# urpmi does not support boolean RPM dependencies
Requires(post):	((policycoreutils-python-utils and libselinux-utils) if (selinux-policy-targeted or selinux-policy-mls))
Requires(post):	((selinux-policy and selinux-policy-base) if (selinux-policy-targeted or selinux-policy-mls))
%endif
Requires:	bind-utils >= %{EVRD}
# takes care of MDV Bug #: 62829
Requires:	openssl-engines
Requires:	%{dns_libname} = %{EVRD}
Requires:	%{irs_libname} = %{EVRD}
Requires:	%{isc_libname} = %{EVRD}
Requires:	%{bind9_libname} = %{EVRD}
Requires:	%{lwres_libname} = %{EVRD}
Requires:	%{isccc_libname} = %{EVRD}
Requires:	%{isccfg_libname} = %{EVRD}
# for generate-rndc-key.sh
Requires:	initscripts
%if %{with SDB}
# for /etc/openldap/schema/dnszone.schema
Requires:	openldap-schemas-extra
%endif
Requires(pre):	/bin/systemd-sysusers

%description
BIND (Berkeley Internet Name Domain) is an implementation of the DNS
(domain Name System) protocols. BIND includes a DNS server (named), 
which resolves host names to IP addresses, and a resolver library 
(routines for applications to use when interfacing with DNS).

%files
%defattr(-,root,root,-)
%if %{with DLZ}
%dir %{_libdir}/bind
%{_libdir}/bind/dlz_filesystem_dynamic.so
%{_libdir}/bind/dlz_mysql_dynamic.so
%{_libdir}/bind/dlz_mysqldyn_mod.so
%{_libdir}/bind/dlz_ldap_dynamic.so
%{_libdir}/bind/dlz_sqlite3_dynamic.so
%endif
%if %{with SDB}
%{_unitdir}/named-sdb.service
%{_mandir}/man1/ldap2zone.1*
%{_mandir}/man1/zone2ldap.1*
%{_mandir}/man1/zonetodb.1*
%{_mandir}/man1/zone2sqlite.1*
%{_mandir}/man1/zonetodb-pgsql.1*
%{_mandir}/man8/named-sdb.8*
%doc contrib/sdb/ldap/README.ldap contrib/sdb/ldap/INSTALL.ldap contrib/sdb/pgsql/README.sdb_pgsql
%{_bindir}/zonetodb-pgsql
%{_sbindir}/named-sdb
%{_bindir}/zone2sqlite
 %if %{with sdb_ldap}
#doc zone2ldap/zone2ldap.README ldap2zone/README.ldap2zone ldap2zone/dnszone-schema.txt
%{_bindir}/zone2ldap
%{_bindir}/ldap2zone
%{_bindir}/zonetodb
 %endif
 %if %{with sdb_mysql}
%{_bindir}/zonetodb-mysql
%doc contrib/sdb/mysql/ChangeLog.mysql contrib/sdb/mysql/README.mysql
%{_mandir}/man1/zonetodb-mysql.1*
 %endif
%endif
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/named
%config(noreplace) %attr(0644,root,named) %{_sysconfdir}/named.root.key
%{_sysusersdir}/named.conf
%{_tmpfilesdir}/named.conf
%{_sysconfdir}/rwtab.d/named
%{_unitdir}/named.service
%{_unitdir}/named-setup-rndc.service
%{_sbindir}/named-journalprint
%{_sbindir}/named-checkconf
%{_bindir}/named-rrchecker
%{_bindir}/mdig
%{_sbindir}/lwresd
%{_sbindir}/named
%{_sbindir}/rndc*
%{_sbindir}/generate-rndc-key
%{_mandir}/man1/mdig.1.*
%{_mandir}/man1/named-rrchecker.1.*
%{_mandir}/man5/named.conf.5*
%{_mandir}/man5/rndc.conf.5*
%{_mandir}/man8/rndc.8*
%{_mandir}/man8/named.8*
%{_mandir}/man8/lwresd.8*
%{_mandir}/man8/named-c*.8*
%{_mandir}/man8/rndc-confgen.8*
%{_mandir}/man8/named-j*.8*
%doc CHANGES README COPYRIGHT
%{_sbindir}/dns-keygen
%{_sbindir}/dnssec*
%{_mandir}/man8/dnssec*.8*
%exclude %{_sbindir}/dnssec*pkcs11
%exclude %{_mandir}/man8/dnssec*-pkcs11.8**
#{_sbindir}/rndc-confgen
%config(noreplace) %{_sysconfdir}/logrotate.d/named

%defattr(0640,root,named,0750)
%dir %{_sysconfdir}/named
%dir %{_sysconfdir}/crypto-policies/back-ends
%config(noreplace) %{_sysconfdir}/named.conf
%config(noreplace) %{_sysconfdir}/named.rfc1912.zones
%config(noreplace) %{_sysconfdir}/crypto-policies/back-ends/bind.config
%defattr(0660,root,named,01770)
%dir %{_localstatedir}/named
%defattr(0660,named,named,0770)
%dir %{_localstatedir}/named/slaves
%dir %{_localstatedir}/named/data
%dir %{_localstatedir}/named/dynamic
%ghost %{_localstatedir}/log/named.log
%defattr(0640,root,named,0750)
%config %{_localstatedir}/named/named.ca
%config %{_localstatedir}/named/named.localhost
%config %{_localstatedir}/named/named.loopback
%config %{_localstatedir}/named/named.empty
%ghost %config(noreplace) %{_sysconfdir}/rndc.key
# ^- rndc.key now created on first install only if it does not exist
%ghost %config(noreplace) %{_sysconfdir}/rndc.conf
# ^- The default rndc.conf which uses rndc.key is in named's default internal config -
#    so rndc.conf is not necessary.
%config(noreplace) %{_sysconfdir}/bind.keys
%config(noreplace) %{_sysconfdir}/named.iscdlv.key

#files chroot
%defattr(-,root,root,-)
%{_sbindir}/setup-named-chroot.sh
%config(noreplace) %{_sysconfdir}/named-chroot.files
%{_unitdir}/named-chroot.service
%{_unitdir}/named-chroot-setup.service
%defattr(0664,root,named,-)
%ghost %dev(c,1,3) %verify(not mtime) %{chroot_prefix}/dev/null
%ghost %dev(c,1,8) %verify(not mtime) %{chroot_prefix}/dev/random
%ghost %dev(c,1,9) %verify(not mtime) %{chroot_prefix}/dev/urandom
%ghost %dev(c,1,5) %verify(not mtime) %{chroot_prefix}/dev/zero
%defattr(0640,root,named,0750)
%dir %{chroot_prefix}
%dir %{chroot_prefix}/dev
%dir %{chroot_prefix}%{_sysconfdir}
%dir %{chroot_prefix}%{_sysconfdir}/named
%dir %{chroot_prefix}%{_sysconfdir}/pki
%dir %{chroot_prefix}%{_sysconfdir}/pki/dnssec-keys
%dir %{chroot_prefix}%{_sysconfdir}/crypto-policies
%dir %{chroot_prefix}%{_sysconfdir}/crypto-policies/back-ends
%dir %{chroot_prefix}%{_localstatedir}
%dir %{chroot_prefix}/run
%ghost %config(noreplace) %{chroot_prefix}%{_sysconfdir}/named.conf
%defattr(0660,root,named,01770)
%dir %{chroot_prefix}%{_localstatedir}/named
%defattr(-,root,root,-)
%dir %{chroot_prefix}/usr
%dir %{chroot_prefix}/%{_libdir}
%dir %{chroot_prefix}/%{_libdir}/bind
%dir %{chroot_prefix}/%{_datadir}
%dir %{chroot_prefix}/%{_datadir}/GeoIP
%defattr(0660,named,named,0770)
%dir %{chroot_prefix}%{_localstatedir}/tmp
%dir %{chroot_prefix}%{_localstatedir}/log
%defattr(-,named,named,-)
%dir %{chroot_prefix}/run/named
#{_sbindir}/named-chroot.sh
%{chroot_prefix}%{_localstatedir}/run
%if %{with SDB}
#files sdb-chroot
%defattr(-,root,root,-)
%{_unitdir}/named-sdb-chroot.service
%{_unitdir}/named-sdb-chroot-setup.service
%defattr(0664,root,named,-)
%ghost %dev(c,1,3) %verify(not mtime) %{chroot_sdb_prefix}/dev/null
%ghost %dev(c,1,8) %verify(not mtime) %{chroot_sdb_prefix}/dev/random
%ghost %dev(c,1,9) %verify(not mtime) %{chroot_sdb_prefix}/dev/urandom
%ghost %dev(c,1,5) %verify(not mtime) %{chroot_sdb_prefix}/dev/zero
%defattr(0640,root,named,0750)
%dir %{chroot_sdb_prefix}
%dir %{chroot_sdb_prefix}/dev
%dir %{chroot_sdb_prefix}%{_sysconfdir}
%dir %{chroot_sdb_prefix}%{_sysconfdir}/named
%dir %{chroot_sdb_prefix}%{_sysconfdir}/pki
%dir %{chroot_sdb_prefix}%{_sysconfdir}/pki/dnssec-keys
%dir %{chroot_sdb_prefix}%{_sysconfdir}/crypto-policies
%dir %{chroot_sdb_prefix}%{_sysconfdir}/crypto-policies/back-ends
%dir %{chroot_sdb_prefix}%{_localstatedir}
%dir %{chroot_sdb_prefix}/run
%ghost %config(noreplace) %{chroot_sdb_prefix}%{_sysconfdir}/named.conf
%defattr(0660,root,named,01770)
%dir %{chroot_sdb_prefix}%{_localstatedir}/named
%defattr(-,root,root,-)
%dir %{chroot_sdb_prefix}/usr
%dir %{chroot_sdb_prefix}/%{_libdir}
%dir %{chroot_sdb_prefix}/%{_libdir}/bind
%dir %{chroot_sdb_prefix}/%{_datadir}/GeoIP
%defattr(0660,named,named,0770)
%dir %{chroot_sdb_prefix}%{_localstatedir}/tmp
%dir %{chroot_sdb_prefix}%{_localstatedir}/log
%defattr(-,named,named,-)
%dir %{chroot_sdb_prefix}/run/named
%{chroot_sdb_prefix}%{_localstatedir}/run
%endif


%pre
%sysusers_create_package named %{SOURCE90}

%post
%tmpfiles_create named.conf
if [ -e /etc/rndc.key ] && grep -q "_MY_KEY_" /etc/rndc.key; then
	MYKEY="`%{_sbindir}/dns-keygen`"
	perl -pi -e "s|_MY_KEY_|$MYKEY|g" %{_sysconfdir}/rndc.key
fi
if [ -e "%{_sysconfdir}/selinux/config" ]; then
  %selinux_set_booleans -s targeted %{selinuxbooleans}
  %selinux_set_booleans -s mls %{selinuxbooleans}
fi
if [ "$1" -eq 1 ]; then
  # Initial installation
  [ -x /sbin/restorecon ] && /sbin/restorecon /etc/rndc.* /etc/named.* >/dev/null 2>&1 ;
  # rndc.key has to have correct perms and ownership, CVE-2007-6283
  [ -e /etc/rndc.key ] && chown root:named /etc/rndc.key
  [ -e /etc/rndc.key ] && chmod 0640 /etc/rndc.key
else
  # Upgrade, use invalid shell
  if getent passwd named | grep ':/bin/false$' >/dev/null; then
    /usr/sbin/usermod -s /sbin/nologin named
  fi
  # Checkconf will parse out comments
  if %{_sbindir}/named-checkconf -p /etc/named.conf 2>/dev/null | grep -q named.iscdlv.key
  then
    echo "Replacing obsolete named.iscdlv.key with named.root.key..."
    if cp -Rf --preserve=all --remove-destination /etc/named.conf /etc/named.conf.rpmbackup; then
      sed -e 's/named\.iscdlv\.key/named.root.key/' \
        /etc/named.conf.rpmbackup > /etc/named.conf || \
      mv /etc/named.conf.rpmbackup /etc/named.conf
    fi
  fi
fi

# Fix permissions on existing device files on upgrade
%define chroot_fix_devices() \
if [ $1 -gt 1 ]; then \
  for DEV in "%{1}/dev"/{null,random,zero}; do \
    if [ -e "$DEV" -a "$(stat --printf="%G %a" "$DEV")" = "root 644" ]; \
    then \
      chmod 0664 "$DEV" \
      chgrp named "$DEV" \
    fi \
  done \
fi

%chroot_fix_devices %{chroot_prefix}
%chroot_fix_devices %{chroot_sdb_prefix}

# services without [Install] section are not listed here
%systemd_post named.service
%systemd_post named-chroot.service
%systemd_post named-sdb.service
%systemd_post named-sdb-chroot.service

%posttrans
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
  [ -x /sbin/restorecon ] && /sbin/restorecon %{chroot_prefix}/dev/* > /dev/null 2>&1;
fi;
if [ -x /usr/sbin/selinuxenabled ] && /usr/sbin/selinuxenabled; then
  [ -x /sbin/restorecon ] && /sbin/restorecon %{chroot_sdb_prefix}/dev/* > /dev/null 2>&1;
fi;

%preun
%systemd_preun named.service
%systemd_preun named-chroot.service
%systemd_preun named-sdb.service
%systemd_preun named-sdb-chroot.service

%postun
# XXX is restart really needed?! Will not chroot break?!
%systemd_postun_with_restart named.service
%systemd_postun_with_restart named-chroot.service
%systemd_postun_with_restart named-sdb.service
%systemd_postun_with_restart named-sdb-chroot.service
#----------------------------------------------------------------------

%package -n %{dns_libname}
Summary:	It's libdns shared library for bind DNS
Group:		System/Libraries

%description -n %{dns_libname}
This package contains the libdns shared library for bind DNS.

%files -n %{dns_libname}
%doc README COPYRIGHT
%{_libdir}/libdns.so.%{dns_major}*

#----------------------------------------------------------------------

%package -n %{irs_libname}
Summary:	It's libirs shared library for bind DNS
Group:		System/Libraries

%description -n %{irs_libname}
This package contains the libirs shared library for bind DNS.
compiled with native pkcs11

%files -n %{irs_libname}
%doc README COPYRIGHT
%{_libdir}/libirs.so.%{irs_major}*

#----------------------------------------------------------------------

%package -n %{isc_libname}
Summary:	It's libisc shared library for bind DNS
Group:		System/Libraries

%description -n %{isc_libname}
This package contains the libisc shared library for bind DNS.

%files -n %{isc_libname}
%doc README COPYRIGHT
%{_libdir}/libisc.so.%{isc_major}*

#----------------------------------------------------------------------

%package -n %{bind9_libname}
Summary:	It's libbind9 shared library for bind DNS
Group:		System/Libraries

%description -n %{bind9_libname}
This package contains the libbind9 shared libraries for bind DNS.

%files -n %{bind9_libname}
%doc README COPYRIGHT
%{_libdir}/libbind9.so.%{bind9_major}*

#----------------------------------------------------------------------

%package -n %{lwres_libname}
Summary:	It's liblwres shared library for bind DNS
Group:		System/Libraries

%description -n %{lwres_libname}
This package contains the liblwres shared libraries for bind DNS.

%files -n %{lwres_libname}
%doc README COPYRIGHT
%{_libdir}/liblwres.so.%{lwres_major}*

#----------------------------------------------------------------------

%package -n %{isccc_libname}
Summary:	It's libisccc shared library for bind DNS
Group:		System/Libraries

%description -n %{isccc_libname}
This package contains the libisccc shared libraries for bind DNS.

%files -n %{isccc_libname}
%doc README COPYRIGHT
%{_libdir}/libisccc.so.%{isccc_major}*

#----------------------------------------------------------------------

%package -n %{isccfg_libname}
Summary:	It's libisccfg shared library for bind DNS
Group:		System/Libraries

%description -n %{isccfg_libname}
This package contains the libisccfg shared library for bind DNS.

%files -n %{isccfg_libname}
%doc README COPYRIGHT
%{_libdir}/libisccfg.so.%{isccfg_major}*

#----------------------------------------------------------------------

%package libs
Summary:	Libraries used by the BIND DNS packages
Group:		System/Libraries
Requires:	%{bind9_libname} = %{EVRD}
Requires:	%{lwres_libname} = %{EVRD}
Requires:	%{isccc_libname} = %{EVRD}

%description libs
Contains heavyweight version of BIND suite libraries used by both named DNS
server and utilities in bind-utils package.

%files libs
%doc COPYRIGHT

#----------------------------------------------------------------------

%package libs-lite
Summary:	Libraries for working with the DNS protocol
Group:		System/Libraries
Requires:	%{dns_libname} = %{EVRD}
Requires:	%{irs_libname} = %{EVRD}
Requires:	%{isc_libname} = %{EVRD}
Requires:	%{isccfg_libname} = %{EVRD}

%description libs-lite
Contains lite version of BIND suite libraries which are used by various
programs to work with DNS protocol.

%files libs-lite
%doc COPYRIGHT

#----------------------------------------------------------------------

%package devel
Summary:	Include files and libraries needed for bind DNS development
Group:		Development/C
Requires:	bind-libs = %{EVRD}
Requires:	bind-lite-devel = %{EVRD}

%description devel
The bind-devel package contains all the include files and the
library required for DNS (Domain Name Service) development for
BIND versions 9.x.x.

%files devel
%doc CHANGES README
%{_libdir}/libbind9.so
%{_libdir}/libisccc.so
%{_libdir}/liblwres.so
%dir %{_includedir}/bind9
%{_includedir}/bind9/config.h
%{_includedir}/bind9/bind9
%{_includedir}/bind9/isccc
%{_includedir}/bind9/lwres
%{_mandir}/man1/isc-config.sh.1*
%{_mandir}/man1/bind9-config.1*
%{_mandir}/man3/lwres*.3*
%{_bindir}/bind9-config
%{_bindir}/isc-config.sh

#----------------------------------------------------------------------

%package lite-devel
Summary:	Lite version of h-files and libraries needed for BIND DNS develop
Group:		Development/C
Requires:	bind-libs-lite = %{EVRD}

%description lite-devel
The bind-devel package contains all the include files and the
library required for DNS (Domain Name Service) development for
BIND versions 9.x.x.

%files lite-devel
%doc CHANGES README
%{_libdir}/libdns.so
%{_libdir}/libirs.so
%{_libdir}/libisc.so
%{_libdir}/libisccfg.so
%dir %{_includedir}/bind9
%{_includedir}/bind9/dns
%{_includedir}/bind9/dst
%{_includedir}/bind9/irs
%{_includedir}/bind9/isc
%dir %{_includedir}/bind9/pk11
%{_includedir}/bind9/pk11/site.h
%{_includedir}/bind9/isccfg

#----------------------------------------------------------------------

%package utils
Summary:	Utilities for querying DNS name servers
Group:		Networking/Other
Requires:	bind-libs = %{EVRD}
Requires:	bind-libs-lite = %{EVRD}
Requires:	python3-bind = %{EVRD}

%description utils
Bind-utils contains a collection of utilities for querying DNS (Domain
Name Service) name servers to find out information about Internet hosts.
These tools will provide you with the IP addresses for given host names,
as well as other information about registered domains and network 
addresses.

%files utils
%doc README COPYRIGHT
%{_bindir}/delv
%{_bindir}/dig
%{_bindir}/host
%{_bindir}/nslookup
%{_bindir}/nsupdate
%{_bindir}/arpaname
%{_sbindir}/ddns-confgen
%{_sbindir}/genrandom
%{_sbindir}/nsec3hash
%{_sbindir}/isc-hmac-fixup
%{_sbindir}/tsig-keygen
%{_sbindir}/named-checkzone
%{_sbindir}/named-compilezone
%{_mandir}/man1/arpaname.1.*
%{_mandir}/man1/delv.1.*
%{_mandir}/man1/host.1*
%{_mandir}/man1/dig.1*
%{_mandir}/man1/nslookup.1*
%{_mandir}/man1/nsupdate.1*
%{_mandir}/man8/ddns-confgen.8.*
%{_mandir}/man8/genrandom.8.*
%{_mandir}/man8/tsig-keygen.8.*
%{_mandir}/man8/nsec3hash.8.*
%{_mandir}/man8/isc-hmac-fixup.8.*
%{_mandir}/man5/resolver.5*
%{_mandir}/man5/resolv.5*
%{_sysconfdir}/trusted-key.key

#----------------------------------------------------------------------

%package -n %{dns_export_libname}
Summary:	It's libdns-export shared library for bind DNS
Group:		System/Libraries

%description -n %{dns_export_libname}
This package contains the libdns-export shared library for bind DNS.

%files -n %{dns_export_libname}
%doc README COPYRIGHT
%{_libdir}/bind9-export/libdns-export.so.%{dns_export_major}*

#----------------------------------------------------------------------

%package -n %{irs_export_libname}
Summary:	It's libirs-export shared library for bind DNS
Group:		System/Libraries

%description -n %{irs_export_libname}
This package contains the libirs-export shared library for bind DNS.
compiled with native pkcs11

%files -n %{irs_export_libname}
%doc README COPYRIGHT
%{_libdir}/bind9-export/libirs-export.so.%{irs_export_major}*

#----------------------------------------------------------------------

%package -n %{isc_export_libname}
Summary:	It's libisc-export shared library for bind DNS
Group:		System/Libraries

%description -n %{isc_export_libname}
This package contains the libisc-export shared library for bind DNS.

%files -n %{isc_export_libname}
%doc README COPYRIGHT
%{_libdir}/bind9-export/libisc-export.so.%{isc_export_major}*

#----------------------------------------------------------------------

%package -n %{isccfg_export_libname}
Summary:	It's libisccfg-export shared library for bind DNS
Group:		System/Libraries

%description -n %{isccfg_export_libname}
This package contains the libisccfg-export shared library for bind DNS.

%files -n %{isccfg_export_libname}
%doc README COPYRIGHT
%{_libdir}/bind9-export/libisccfg-export.so.%{isccfg_export_major}*

#----------------------------------------------------------------------

%package export-libs
Summary:	ISC libs for DHCP application
Group:		System/Libraries
Requires:	%{dns_export_libname} = %{EVRD}
Requires:	%{irs_export_libname} = %{EVRD}
Requires:	%{isc_export_libname} = %{EVRD}
Requires:	%{isccfg_export_libname} = %{EVRD}

%description export-libs
BIND (Berkeley Internet Name Domain) is an implementation of the DNS
(Domain Name System) protocols. This package set contains only export
version of BIND libraries, that are used for building ISC DHCP.

%files export-libs
%doc COPYRIGHT
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/%{name}-export-%{_arch}.conf

#----------------------------------------------------------------------

%package export-devel
Summary:	Header files and libraries needed for BIND export libraries
Group:		Development/C
Requires:	bind-export-libs = %{EVRD}
Requires:	openssl-devel
Requires:	libcap-devel

%description export-devel
This package contains export version of the header files and libraries
required for development with ISC BIND. These headers and libraries
are used for building ISC DHCP.

%files export-devel
%{_libdir}/bind9-export/libdns-export.so
%{_libdir}/bind9-export/libirs-export.so
%{_libdir}/bind9-export/libisc-export.so
%{_libdir}/bind9-export/libisccfg-export.so
%dir %{_includedir}/bind9-export
%{_includedir}/bind9-export/dns
%{_includedir}/bind9-export/dst
%{_includedir}/bind9-export/irs
%{_includedir}/bind9-export/isc
%dir %{_includedir}/bind9-export/pk11
%{_includedir}/bind9-export/pk11/site.h
%{_includedir}/bind9-export/isccfg
%{_includedir}/bind9-export/config.h
%{_mandir}/man1/isc-export-config.sh.1*
%{_mandir}/man1/bind9-export-config.1*
%attr(0755,root,root) %{_bindir}/isc-export-config.sh
%{_bindir}/bind9-export-config

#----------------------------------------------------------------------

%if %{with pkcs11}

%package -n %{dns_pkcs11_libname}
Summary:	Bind libdns-pkcs11 compiled with native pkcs11
Group:		System/Libraries

%description -n %{dns_pkcs11_libname}
This package contains the libdns-pkcs11 shared library for bind DNS.

%files -n %{dns_pkcs11_libname}
%doc README COPYRIGHT
%{_libdir}/libdns-pkcs11.so.%{dns_pkcs11_major}*

#----------------------------------------------------------------------

%package -n %{isc_pkcs11_libname}
Summary:	Bind libisc-pkcs11 compiled with native pkcs11
Group:		System/Libraries

%description -n %{isc_pkcs11_libname}
This package contains the libisc-pkcs11 shared library for bind DNS.

%files -n %{isc_pkcs11_libname}
%doc README COPYRIGHT
%{_libdir}/libisc-pkcs11.so.%{isc_pkcs11_major}*

#----------------------------------------------------------------------

%package pkcs11-libs
Summary:	Bind libraries compiled with native pkcs11
Group:		System/Libraries
Requires:	bind-libs = %{EVRD}
Requires:	%{dns_pkcs11_libname} = %{EVRD}
Requires:	%{isc_pkcs11_libname} = %{EVRD}

%description pkcs11-libs
This is a set of BIND libraries (dns, isc) compiled with native pkcs11
functionality.

%files pkcs11-libs
%doc COPYRIGHT

#----------------------------------------------------------------------

%package pkcs11-devel
Summary:	Development files for Bind libraries compiled with native pkcs11
Group:		Development/C

%description pkcs11-devel
This a set of development files for BIND libraries (dns, isc) compiled
with native pkcs11 functionality.

%files pkcs11-devel
%doc CHANGES README
%dir %{_includedir}/bind9/pk11
%{_includedir}/bind9/pk11/*.h
%exclude %{_includedir}/bind9/pk11/site.h
%{_includedir}/bind9/pkcs11
%{_libdir}/libdns-pkcs11.so
%{_libdir}/libisc-pkcs11.so
%endif

#----------------------------------------------------------------------

%package pkcs11
Summary:	Bind with native pkcs11 functionality for crypto
Group:		System/Base
Requires:	bind = %{EVRD}
Requires:	bind-libs = %{EVRD}
Requires:	bind-libs-lite = %{EVRD}
Requires:	bind-pkcs11-libs = %{EVRD}
Recommends:	softhsm

%description pkcs11
This is a version of BIND server built with native pkcs11 functionality.
It is important to have SoftHSM v2+ installed and some token initialized.
For other supported HSM modules please check the BIND documentation.
This version of BIND binary is supported only in setup with the IPA server.

%files pkcs11
%doc README COPYRIGHT
%{_sbindir}/named-pkcs11
%{_unitdir}/named-pkcs11.service
%{_mandir}/man8/named-pkcs11.8*
%{_sbindir}/setup-named-softhsm

%post pkcs11
# Initial installation
%systemd_post named-pkcs11.service

%preun pkcs11
# Package removal, not upgrade
%systemd_preun named-pkcs11.service

%postun pkcs11
# Package upgrade, not uninstall
%systemd_postun_with_restart named-pkcs11.service

#----------------------------------------------------------------------

%package pkcs11-utils
Summary:	Bind tools with native PKCS11 for using DNSSEC
Group:		System/Base
Requires:	bind-pkcs11-libs = %{EVRD}

%description pkcs11-utils
This is a set of PKCS11 utilities that when used together create rsa
keys in a PKCS11 keystore. Also utilities for working with DNSSEC
compiled with native PKCS11 functionality are included.

%files pkcs11-utils
%doc README COPYRIGHT
%{_sbindir}/dnssec*pkcs11
%{_sbindir}/pkcs11-destroy
%{_sbindir}/pkcs11-keygen
%{_sbindir}/pkcs11-list
%{_sbindir}/pkcs11-tokens
%{_mandir}/man8/pkcs11*.8*
%{_mandir}/man8/dnssec*-pkcs11.8*
%exclude %{_mandir}/man8/dnssec-coverage.8*
%exclude %{_mandir}/man8/dnssec-keymgr.8*

#----------------------------------------------------------------------

%package -n python3-bind
Summary:	A module allowing rndc commands to be sent from Python programs
Group:		Development/Python
Requires:	python3egg(ply)
BuildArch:	noarch

%description -n python3-bind
This package provides a module which allows commands to be sent to rndc
directly from Python programs.

%files -n python3-bind
%doc README COPYRIGHT
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/isc

#----------------------------------------------------------------------

%package doc
Summary:	Documentation for BIND
Group:		Books/Other

%description doc
The bind-devel package contains the documentation for BIND.

%files doc
%doc doc/misc/ doc/html
%doc doc/dhcp-dynamic-dns-examples doc/chroot doc/trustix

#----------------------------------------------------------------------

%prep
%setup -q -a51 -a52 -a53 -a54
# -a55 -a56

%patch3 -p1
%patch4 -p1
%patch5 -p1

# Common patches
%patch72 -p1 -b .64bit
%patch102 -p1 -b .rh452060
%patch112 -p1 -b .rh645544
%patch130 -p1 -b .libdb
%patch131 -p1 -b .multlib-conflict
%patch140 -p1 -b .rh1410433
%patch145 -p1 -b .rh1205168
%patch153 -p1 -b .export_suffix
%patch154 -p1 -b .oot-man
%patch155 -p1 -b .pk11-internal
%patch156 -p1 -b .fips-code
%patch157 -p1 -b .fips-tests
%patch158 -p1 -b .rt31459
%patch170 -p1 -b .featuretest-named

%if %{with pkcs11}
cp -r bin/named{,-pkcs11}
cp -r bin/dnssec{,-pkcs11}
cp -r lib/isc{,-pkcs11}
cp -r lib/dns{,-pkcs11}
%patch136 -p1 -b .dist_pkcs11
%patch150 -p1 -b .engine-pkcs11
%endif

mkdir lib/dns/tests/testdata/dstrandom
cp -a %{SOURCE50} lib/dns/tests/testdata/dstrandom/random.data

%if %{with sdb_ldap}
%patch101 -p1 -b .old-api
mkdir bin/named-sdb
cp -r bin/named/* bin/named-sdb
%patch11 -p1 -b .sdbsrc
# SDB ldap
cp -fp contrib/sdb/ldap/ldapdb.[ch] bin/named-sdb
# SDB postgreSQL
cp -fp contrib/sdb/pgsql/pgsqldb.[ch] bin/named-sdb
# SDB sqlite
cp -fp contrib/sdb/sqlite/sqlitedb.[ch] bin/named-sdb
# SDB Berkeley DB - needs to be ported to DB4!
#cp -fp contrib/sdb/bdb/bdb.[ch] bin/named_sdb
# SDB dir
cp -fp contrib/sdb/dir/dirdb.[ch] bin/named-sdb
# SDB tools
mkdir -p bin/sdb_tools
cp -fp %{SOURCE30} bin/sdb_tools/ldap2zone.c
cp -fp %{SOURCE7} bin/sdb_tools/Makefile.in
#cp -fp contrib/sdb/bdb/zone2bdb.c bin/sdb_tools
cp -fp contrib/sdb/ldap/{zone2ldap.1,zone2ldap.c} bin/sdb_tools
cp -fp contrib/sdb/pgsql/zonetodb.c bin/sdb_tools/
cp -fp contrib/sdb/sqlite/zone2sqlite.c bin/sdb_tools
%patch301 -p1 -b .sdb
%patch13 -p1 -b .fix_sdb_ldap
%patch137 -p1 -b .strlcat_fix
%endif

%patch133 -p1 -b .rh640538
%patch134 -p1 -b .rh669163
###

%if %{with sdb_mysql}
mv mysql-bind contrib/sdb/mysql
cp contrib/sdb/mysql/mysqldb.c bin/named
cp contrib/sdb/mysql/mysqldb.h bin/named/include
%endif

#install updated bind.keys file
cp -f %{SOURCE14} bind.keys

cp %{SOURCE61} keygen.c
cp %{SOURCE63} named.cache

mkdir -p caching-nameserver
cp %{SOURCE100} caching-nameserver/bogon_acl.conf
cp %{SOURCE101} caching-nameserver/hosts
cp %{SOURCE102} caching-nameserver/localdomain.zone
cp %{SOURCE103} caching-nameserver/localhost.zone
cp %{SOURCE104} caching-nameserver/logging.conf
cp %{SOURCE105} caching-nameserver/named.broadcast
cp %{SOURCE106} caching-nameserver/named.conf
cp %{SOURCE107} caching-nameserver/named.ip6.local
cp %{SOURCE108} caching-nameserver/named.local
cp %{SOURCE109} caching-nameserver/named.zero
cp %{SOURCE111} caching-nameserver/rndc.key
cp %{SOURCE112} caching-nameserver/trusted_networks_acl.conf
cp %{SOURCE113} caching-nameserver/named.iscdlv.key


# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

mkdir -p ../export-libs
cp -rf * ../export-libs/
mv -f ../export-libs ./

%build
%serverbuild
# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

export CPPFLAGS="$CPPFLAGS -DDIG_SIGCHASE"
export STD_CDEFINES="$CPPFLAGS"

echo RELEASEVER="-%{release}-ROSA" >> version

autoreconf -if

# Workaround problems when both libjsoncpp-devel and libjson-c-devel are installed
export CFLAGS="$CFLAGS -DHAVE_JSON_C=1"

# backwards compatibility for contrib/
export CFLAGS="$CFLAGS -DISC_TRUE=true -DISC_FALSE=false"

# Workaround missing <isc/atomic.h>
pushd ./lib/isc/
%ifarch %{ix86} %{x86_64} %{armx}
ln -sr noatomic/include/isc/atomic.h include/isc/atomic.h
%endif
popd

%if %{with DLZ}
# DLZ modules do not support oot builds. Copy files into build
mkdir -p build/contrib/dlz
cp -frp contrib/dlz/modules build/contrib/dlz/modules
%endif

%configure \
	--with-python=%{__python3} \
	--localstatedir=%{_localstatedir} \
	--enable-threads \
	--enable-largefile \
	--enable-ipv6 \
	--enable-filter-aaaa \
	--enable-epoll \
	--with-openssl=%{_prefix} \
%if %{with gssapi}
	--with-gssapi=%{_prefix} \
	--disable-isc-spnego \
%endif
	--with-randomdev=/dev/random \
	--with-libxml2=yes \
%if %{with SDB}
	--with-dlopen=yes \
	--with-dlz-ldap=yes \
	--with-dlz-postgres=yes \
	--with-dlz-mysql=yes \
	--with-dlz-filesystem=yes \
%endif
	--with-dlz-odbc=no \
	--with-dlz-bdb=no \
	--with-lmdb=no \
	--with-dlz-stub=yes \
	--enable-fixed-rrset \
	--with-geoip \
	--with-gost=no \
	--with-pic \
	--disable-static \
	--with-libidn2 \
	--with-libtool \
	--with-tuning=large \
	--includedir=%{_includedir}/bind9 \
%if %{with pkcs11}
	--with-pkcs11=%{_libdir}/softhsm/libsofthsm2.so \
	--enable-native-pkcs11 \
%endif
	--with-docbook-xsl=%{_datadir}/sgml/docbook/xsl-stylesheets-%{docbook_style_xsl_ver} \
	--enable-full-report

%make

### xsltproc doesn't find properly configured files
### and use ones from source tree
### copy generated files to the original location
#cp -rv doc/* ../doc/

%if %{with sdb_mysql}
pushd contrib/sdb/mysql
gcc $CFLAGS -I%{_includedir}/mysql -I../../../lib/dns/include -I../../../lib/dns/sec/dst/include \
	-I../../../lib/isc/include -I../../../lib/isc/unix/include -I../../../lib/isc/pthreads/include \
	-lkrb5 -lgssapi_krb -c zonetodb.c
gcc $CFLAGS $LDFLAGS -o zonetodb-mysql zonetodb.o \
	../../../lib/dns/.libs/libdns.so -lcrypto -lpthread ../../../lib/isc/.libs/libisc.so \
	-lmysqlclient -lresolv %{?_with_gssapi:`krb5-config --libs gssapi`} -lxml2 -lGeoIP -lkrb5 -lgssapi_krb5 -ljson-c
popd
%endif

# the same for PostgreSQL
pushd contrib/sdb/pgsql
gcc $CFLAGS -I%{_includedir}/pgsql -I../../../lib/dns/include -I../../../lib/dns/sec/dst/include \
	-I../../../lib/isc/include -I../../../lib/isc/unix/include -I../../../lib/isc/pthreads/include \
	-lkrb5 -lgssapi_krb -c zonetodb.c
gcc $CFLAGS $LDFLAGS -o zonetodb-pgsql zonetodb.o \
	../../../lib/dns/.libs/libdns.so -lcrypto -lpthread ../../../lib/isc/.libs/libisc.so \
	-lpq -lresolv %{?_with_gssapi:`krb5-config --libs gssapi`} -lxml2 -lGeoIP -lkrb5 -lgssapi_krb5 -ljson-c
popd

gcc $CFLAGS -o dns-keygen keygen.c

# Regenerate dig.1 manpage
pushd bin/dig
make man
popd
pushd bin/python
make man
popd

%if %{with DLZ}
  pushd contrib/dlz/modules
  for DIR in filesystem ldap mysql mysqldyn sqlite3; do
    make -C $DIR CFLAGS="-fPIC -I../include $CFLAGS $LDFLAGS"
  done
  popd
%endif

## Create export libs ##
pushd export-libs
cp isc-config.sh.1 isc-export-config.sh.1
export LIBDIR_SUFFIX=/bind9-export/
## minimal subset of options to make clients aka dhcp working
%configure \
	--with-libtool \
	--with-cmocka \
	--disable-static \
	--disable-epoll \
	--disable-kqueue \
	--libdir=%{_libdir}/bind9-export \
	--includedir=%{_includedir}/bind9-export \
	--disable-threads \
	--enable-openssl-hash \
%if %{with gssapi}
	--with-gssapi=%{_prefix} \
	--disable-isc-spnego \
%endif
	--enable-fixed-rrset \
	--disable-rpz-nsip \
	--disable-rpz-nsdname \
	--with-gost=no \
	--without-lmdb \
	--without-libxml2 \
	--without-libjson \
	--without-zlib \
	--without-dlopen \
	--enable-full-report

mv isc-config.sh isc-export-config.sh

sed -i \
-e '/^SUBDIRS =/s/.*/SUBDIRS = make lib/i' \
-e 's/isc-config.sh/isc-export-config.sh/g' \
-e 's/bind9-config/bind9-export-config/g' \
Makefile

sed -i -e \
"/^SUBDIRS =/s/.*/SUBDIRS = isc dns isccfg irs/i" \
lib/Makefile

#sed -i -e \
#'/^SUBDIRS =/s/atf-src//i' \
#unit/Makefile

for lib in isc dns isccfg irs
do
	find . -name Makefile -exec sed "s/lib${lib}\./lib${lib}-export\./g" -i {} \;
	sed -e "s/-l${lib}\([^[:alpha:]]\)/-l${lib}-export\1/g" \
		-e "s/lib${lib}\./lib${lib}-export\./g" \
		-i isc-export-config.sh
done;

%make
# Do not try pkcs11 and lwres in export libs
sed -e '/^\s*include(.*-pkcs11/ d' -e '/^\s*include(.*lwres/ d'  -e '/^\s*include(.*isccc/ d' \
	-i lib/Kyuafile

#sh unit/unittest.sh

popd
## End of export libs

#%%check
## run the test suite
#make check

%install

# make some directories
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/rwtab.d
install -d %{buildroot}%{_sysusersdir}
install -d %{buildroot}%{_tmpfilesdir}

# From "Hide configuration"
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/crypto-policies/back-ends
install -d %{buildroot}%{_localstatedir}/named/{slaves,data,dynamic}
install -d %{buildroot}%{_localstatedir}/log
# Ghost config files:
touch %{buildroot}%{_localstatedir}/log/named.log
touch %{buildroot}%{_sysconfdir}/rndc.conf
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/named

install -m0640 %{SOURCE106} %{buildroot}%{_sysconfdir}/named.conf
install -m0644 %{SOURCE90} %{buildroot}%{_sysusersdir}/named.conf
install -m0644 %{SOURCE91} %{buildroot}%{_tmpfilesdir}/named.conf

install -m0644 %{SOURCE43} %{buildroot}%{_sysconfdir}/rwtab.d/named

%makeinstall_std

ln -snf named %{buildroot}%{_sbindir}/lwresd

#mkdir -p %{buildroot}%{_libexecdir}
install -m 755 %{SOURCE42} %{buildroot}%{_sbindir}/generate-rndc-key
install -m 755 %{SOURCE41} %{buildroot}%{_sbindir}/setup-named-chroot.sh

mkdir -p %{buildroot}%{_unitdir}
install -m0644 %{SOURCE46} %{buildroot}%{_unitdir}/named-setup-rndc.service
install -m0644 %{SOURCE58} %{buildroot}%{_unitdir}/named.service
install -m0644 %{SOURCE38} %{buildroot}%{_unitdir}/named-chroot.service
install -m0644 %{SOURCE59} %{buildroot}%{_unitdir}/named-chroot-setup.service
install -m0644 %{SOURCE39} %{buildroot}%{_unitdir}/named-sdb.service
install -m0644 %{SOURCE40} %{buildroot}%{_unitdir}/named-sdb-chroot.service
install -m0644 %{SOURCE45} %{buildroot}%{_unitdir}/named-sdb-chroot-setup.service
%if %{with pkcs11}
install -m0644 %{SOURCE47} %{buildroot}%{_unitdir}
install -m0755 %{SOURCE48} %{buildroot}%{_sbindir}/setup-named-softhsm
%endif
install -m0644 %{SOURCE60} %{buildroot}%{_sysconfdir}/sysconfig/named
#cat %{SOURCE62} | sed -e 's,@openssl_shlib_ver@,%{openssl_shlib_ver},g' > %{buildroot}%{_sysconfdir}/sysconfig/named-chroot-setup
cat %{SOURCE49} | sed -e 's,@openssl_shlib_ver@,%{openssl_shlib_ver},g' > %{buildroot}%{_sysconfdir}/named-chroot.files
#install -m 644 %{SOURCE49} %{buildroot}%{_sysconfdir}/named-chroot.files
#install -m0755 %{SOURCE57} %{buildroot}%{_sbindir}

%if %{with sdb_mysql}
install -m0755 contrib/sdb/mysql/zonetodb-mysql %{buildroot}%{_sbindir}/zonetodb-mysql
cp contrib/sdb/mysql/ChangeLog contrib/sdb/mysql/ChangeLog.mysql
cp contrib/sdb/mysql/README contrib/sdb/mysql/README.mysql
%endif
install -m0755 contrib/sdb/pgsql/zonetodb-pgsql %{buildroot}%{_sbindir}/zonetodb-pgsql

%if %{with DLZ}
  pushd build/contrib/dlz/modules
  for DIR in filesystem ldap sqlite3; do
    make -C $DIR DESTDIR="%{buildroot}" libdir=%{_libdir}/bind install
  done
  popd
  pushd contrib/dlz/modules
  for DIR in mysql mysqldyn; do
    make -C $DIR DESTDIR="%{buildroot}" libdir=%{_libdir}/bind install
  done
  popd
%endif

install -m0755 dns-keygen %{buildroot}%{_sbindir}/dns-keygen



install -m 640 %{SOURCE111} %{buildroot}%{_sysconfdir}/rndc.key
install -m 640 %{SOURCE113} %{buildroot}%{_sysconfdir}/

install -m 644 %{SOURCE114} %{buildroot}%{_sysconfdir}/
install -m 644 %{SOURCE115} %{buildroot}%{_sysconfdir}/
install -m 644 %{SOURCE36} %{buildroot}%{_sysconfdir}/
mkdir -p %{buildroot}%{_sysconfdir}/named

mkdir -p %{buildroot}%{_localstatedir}/named/{data,dynamic,slaves}
mkdir -p %{buildroot}%{_localstatedir}/log
install -m 644 %{SOURCE116} %{buildroot}%{_localstatedir}/named/
install -m 644 %{SOURCE117} %{buildroot}%{_localstatedir}/named/
install -m 644 %{SOURCE118} %{buildroot}%{_localstatedir}/named/
install -m 644 %{SOURCE119} %{buildroot}%{_localstatedir}/named/named.ca

# pkcs11 versions manpages
%if %{with pkcs11}
pushd %{buildroot}%{_mandir}/man8
ln -s named.8.xz named-pkcs11.8.xz
ln -s dnssec-checkds.8.xz dnssec-checkds-pkcs11.8.xz
ln -s dnssec-dsfromkey.8.xz dnssec-dsfromkey-pkcs11.8.xz
ln -s dnssec-importkey.8.xz dnssec-importkey-pkcs11.8.xz
ln -s dnssec-keyfromlabel.8.xz dnssec-keyfromlabel-pkcs11.8.xz
ln -s dnssec-keygen.8.xz dnssec-keygen-pkcs11.8.xz
ln -s dnssec-revoke.8.xz dnssec-revoke-pkcs11.8.xz
ln -s dnssec-settime.8.xz dnssec-settime-pkcs11.8.xz
ln -s dnssec-signzone.8.xz dnssec-signzone-pkcs11.8.xz
ln -s dnssec-verify.8.xz dnssec-verify-pkcs11.8.xz
ln -s dnssec-coverage.8.xz dnssec-coverage-pkcs11.8.xz
popd
%endif

# Files required to run test-suite outside of build tree:
cp -fp config.h %{buildroot}%{_includedir}/bind9

pushd export-libs
%make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo "%{_libdir}/bind9-export/" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}-export-%{_arch}.conf
cp -fp config.h %{buildroot}%{_includedir}/bind9-export/
rm -rf %{buildroot}%{_includedir}/bind9-export/pkcs11/
rm -f %{buildroot}%{_includedir}/bind9-export/pk11/{constants,internal,pk11,result}.h
popd

# Install isc/errno2result.h header
install -m0644 lib/isc/unix/errno2result.h %{buildroot}%{_includedir}/bind9/isc

echo "; Use \"dig @A.ROOT-SERVERS.NET . ns\" to update this file if it's outdated." > named.cache.tmp
cat named.cache >> named.cache.tmp

# fix man pages
install -m0644 man5/resolver.5 %{buildroot}%{_mandir}/man5/
ln -s resolver.5 %{buildroot}%{_mandir}/man5/resolv.5

# SDB manpages
%if %{with SDB}
mkdir -p %{buildroot}%{_mandir}/man1/
install -m 644 %{SOURCE31} %{buildroot}%{_mandir}/man1/ldap2zone.1
install -m 644 %{SOURCE32} %{buildroot}%{_mandir}/man8/named-sdb.8
install -m 644 %{SOURCE33} ${RPM_BUILD_ROOT}%{_mandir}/man1/zonetodb.1
cat %{SOURCE33} | sed -e 's,PostgreSQL,MySQL,g' -e 's,zonetodb ,zonetodb-mysql ,g' > %{buildroot}%{_mandir}/man1/zonetodb-mysql.1
cat %{SOURCE33} | sed -e 's,zonetodb ,zonetodb-pgsql ,g' > %{buildroot}%{_mandir}/man1/zonetodb-pgsql.1
install -m 644 %{SOURCE34} %{buildroot}%{_mandir}/man1/zone2sqlite.1
mkdir -p %{buildroot}/etc/openldap/schema
install -m 644 %{SOURCE12} contrib/sdb/pgsql/

# relocate most utils to /usr/bin from /usr/sbin
for i in zonetodb ldap2zone zone2ldap zone2sqlite zonetodb-mysql zonetodb-pgsql ; do
mv -v %{buildroot}%{_sbindir}/$i %{buildroot}%{_bindir}/ ; done
rm -f %{buildroot}%{_sbindir}/zonetodb
install -m0755 %{SOURCE13} %{buildroot}%{_bindir}/zonetodb
%endif

rm -rf doc/html
install -d doc/html
for i in `find . -type f |grep .html |sed -e 's#\/%{name}-%{version}##'|grep -v contrib`; do cp -f $i doc/html/; done

# this is just sick...
touch %{buildroot}%{_sysconfdir}/crypto-policies/back-ends/bind.config

#chroot
for D in %{chroot_create_directories}
do
  mkdir -p %{buildroot}/%{chroot_prefix}${D}
done
# create symlink as it is on real filesystem
pushd %{buildroot}/%{chroot_prefix}/var
ln -s ../run run
popd
# these are required to prevent them being erased during upgrade of previous
touch %{buildroot}/%{chroot_prefix}/%{_sysconfdir}/named.conf
#end chroot

%if %{with SDB}
for D in %{chroot_create_directories}
do
  mkdir -p %{buildroot}/%{chroot_sdb_prefix}${D}
done
# create symlink as it is on real filesystem
pushd %{buildroot}/%{chroot_sdb_prefix}/var
ln -s ../run run
popd

# these are required to prevent them being erased during upgrade of previous
touch %{buildroot}/%{chroot_sdb_prefix}%{_sysconfdir}/named.conf
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12125 |21mr|bind-dyndb-ldap-11.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _disable_rebuild_configure

Summary:	LDAP back-end plug-in for BIND
Name:		bind-dyndb-ldap
Version:	11.3
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		https://pagure.io/bind-dyndb-ldap/
Source0:	https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	libtool
BuildRequires:	bind-devel
BuildRequires:	bind-lite-devel
BuildRequires:	bind-pkcs11-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(uuid)
Requires:	bind
Requires:	bind-pkcs11
Requires:	bind-pkcs11-utils

%description
This package provides an LDAP back-end plug-in for BIND. It features
support for dynamic updates and internal caching, to lift the load
off of your LDAP server.

%files
%doc NEWS README.md COPYING doc/{example,schema}.ldif
%dir %attr(770, root, named) %{_localstatedir}/named/dyndb-ldap
%{_libdir}/bind/ldap.so

%post
# SELinux boolean named_write_master_zones has to be enabled
# otherwise the plugin will not be able to write to /var/named.
# This scriptlet enables the boolean after installation or upgrade.
# SELinux is sensitive area so I want to inform user about the change.
if [ -x "/usr/sbin/setsebool" ] ; then
	echo "Enabling SELinux boolean named_write_master_zones"
	/usr/sbin/setsebool -P named_write_master_zones=1 || :
fi

# This scriptlet disables the boolean after uninstallation.
%postun
if [ "0$1" -eq "0" ] && [ -x "/usr/sbin/setsebool" ] ; then
	echo "Disabling SELinux boolean named_write_master_zones"
	/usr/sbin/setsebool -P named_write_master_zones=0 || :
fi

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-werror
%make

%install
%makeinstall_std
mkdir -m 770 -p %{buildroot}/%{_localstatedir}/named/dyndb-ldap

# Remove unwanted files
rm %{buildroot}%{_libdir}/bind/ldap.la
rm -r %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12126 |21mr|binutils-2.38-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CVE-2022-38126 REJECTED
# CVE-2022-38127 REJECTED
# CVE-2022-38128 REJECTED

# Listed targets are short form and will be expanded by rpm
# gnueabihf variants etc. are inserted by rpm into long_targets
# (tpg) set cross targets here for cooker
%global targets aarch64-linux armv7hnl-linux i686-linux x86_64-linux x32-linux riscv32-linux riscv64-linux aarch64-linuxmusl armv7hnl-linuxmusl i686-linuxmusl x86_64-linuxmusl x32-linuxmusl riscv32-linuxmusl riscv64-linuxmusl aarch64-android armv7l-android armv8l-android i686-mingw32 x86_64-mingw32
# (tpg) temporary disable build debuginfo for ix86
%ifarch %{ix86}
#error: create archive failed on file /builddir/build/BUILDROOT/mesa-17.3.6-1-omv2015.0.i686-buildroot/usr/lib/debug/usr/lib/gallium-pipe/pipe_radeonsi.so.debug: cpio: Bad magic
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}
%endif
%global long_targets %(
	for i in %{targets}; do
		CPU=$(echo $i |cut -d- -f1)
		OS=$(echo $i |cut -d- -f2)
		echo -n "$(rpm --target=${CPU}-${OS} -E %%{_target_platform}) "
	done
)

# Currently devel-rpm-generators could handle libbfd-%%{version}.so
# if libbfd.so was a symlink to it, but libbfd.so is a text file...
%global __requires_exclude ^devel\\(libbfd-.*\\)$

%define _disable_lto 1

%define lib_major 2
%define lib_name_orig %mklibname binutils
%define lib_name %{lib_name_orig}%{lib_major}
%define dev_name %mklibname binutils -d

# (tpg) optimize it a bit
%global optflags %{optflags} -fstack-protector-strong

%ifarch %{riscv}
# Make sure we don't use lld on risc-v yet
%global optflags %{optflags} -fuse-ld=bfd
%endif
%bcond_with default_lld

# Define if building a cross-binutils
%define build_cross 0
%{expand: %{?cross: %%global build_cross 1}}

# List of targets where gold can be enabled
%define gold_arches %(echo %{ix86} %{x86_64} ppc ppc64 riscv64 %{sparc} %{armx}|sed 's/[ ]/\|/g')

%define gold_default 0

%bcond_without gold

Summary:	GNU Binary Utility Development Utilities
Name:		binutils
Version:	2.38
Source0:	https://ftp.gnu.org/gnu/binutils/binutils-%{version}%{?DATE:-%{DATE}}.tar.xz
Release:	5
License:	GPLv3+
Group:		Development/Other
URL:		http://sources.redhat.com/binutils/
#Source1:	http://ftp.kernel.org/pub/linux/devel/binutils/binutils-%{version}.tar.xz.sign
Source5:	binutils-2.19.50.0.1-output-format.sed
Source10:	binutils.rpmlintrc
# Fedora patches:
Patch01:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-2.20.51.0.2-libtool-lib64.patch
# We don't want this one! Tends to break compatibility with scripts
# on other distros
#Patch02:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-2.25-version.patch
# Export demangle.h with the binutils-devel rpm.
Patch03:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-export-demangle.h.patch
# Disable checks that config.h has been included before system headers.  BZ #845084
Patch04:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-2.22.52.0.4-no-config-h-check.patch
# FIXME this one serves a purpose (fix ltrace, LD_AUDIT) but reduces optimizations.
# This should be an option instead of a hardcode in the longer term!
#Patch07:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-2.29-revert-PLT-elision.patch
Patch09:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-2.27-aarch64-ifunc.patch
Patch10:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-do-not-link-with-static-libstdc++.patch
Patch19:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-special-sections-in-groups.patch
Patch20:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-gold-mismatched-section-flags.patch
Patch22:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-warnings.patch
#Patch23:	https://src.fedoraproject.org/rpms/binutils/raw/master/f/binutils-gcc-10-fixes.patch

# From upstream
Patch100:	0004-x86-Disallow-invalid-relocation-against-protected-sy.patch
Patch101:	0008-PR28882-build-failure-with-gcc-4.2-due-to-use-of-0b-.patch
Patch102:	0010-i386-Update-I386_NEED_DYNAMIC_RELOC_TYPE_P-for-DT_TE.patch
Patch103:	0012-ld-Keep-indirect-symbol-from-IR-if-referenced-from-s.patch
Patch104:	0014-Updated-Serbian-translations-for-the-bfd-gold-ld-and.patch
Patch105:	0021-binutils-2.38-vs.-ppc32-linux-kernel.patch
Patch106:	0028-Revert-Check-thin-archive-element-file-size-against-.patch
Patch107:	0041-Work-around-gcc-4-warnings-in-elf64-ppc.c.patch
Patch108:	0042-PowerPC64-DT_RELR-relative-reloc-addresses.patch
Patch109:	0043-PR28959-obdump-doesn-t-disassemble-mftb-instruction.patch
Patch110:	0047-Updated-Serbian-for-binutils-and-Russian-for-gprof-t.patch
Patch111:	0055-dlltool-Use-the-output-name-as-basis-for-determinist.patch
Patch112:	0057-libctf-ld-diagnose-corrupted-CTF-header-cth_strlen.patch
Patch113:	0072-IBM-zSystems-Add-support-for-z16-as-CPU-name.patch
Patch114:	0079-LoongArch-Update-ABI-eflag-in-elf-header.patch

# From Yocto (note: SOME Yocto patches are important
# and good for OM as well - others are very much Yocto
# specific. Don't blindly add new Yocto
# patches here without double-checking)
Patch300:	0006-Only-generate-an-RPATH-entry-if-LD_RUN_PATH-is-not-e.patch
Patch301:	0011-fix-the-incorrect-assembling-for-ppc-wait-mnemonic.patch
#Patch302:	0013-Use-libtool-2.4.patch
#Patch303:	0014-Fix-rpath-in-libtool-when-sysroot-is-enabled.patch
#Patch304:	0015-sync-with-OE-libtool-changes.patch

# Mandriva patches
# For some reason, HAVE_READV isn't detected correctly on armv7hnl
# It's safe to just remove the condition because we don't support any
# prehistoric systems.
# https://file-store.openmandriva.org/api/v1/file_stores/e0633c259e3155d913aaa1a1227dda4c5a188992.log?show=true
Patch1000:	binutils-2.34.0-arm32-build-workaround.patch
# (from gb, proyvind): defaults to i386 on x86_64 or ppc on ppc64 if 32 bit personality is set
# (tpg) this is needed for 32-bit chroots running on x86_64 host
Patch1021:	binutils-2.25.51-linux32.patch
# (proyvind): skip gold tests that fails
Patch1027:	binutils-2.21.51.0.8-skip-gold-check.patch
Patch1028:	binutils-2.24.51.0.3.ld-default.settings.patch
# enables the following by default:
# --as-needed
# --hash-style=gnu
# --enable-new-dtags
# --no-undefined
# -O1
# --threads
# --warn-common
# --warn-execstack
# --warn-shared-textrel
# --warn-unresolved-symbols
# --build-id=sha1
# --icf=safe
Patch1029:	binutils-2.24-2013-10-04.ld.gold-default-setttings.patch
# musl's libintl is good enough, we don't need the internal copy
Patch1032:	binutils-2015.01-accept-musl-libintl.patch

#from Леонид Юрьев leo@yuriev.ru, posted to binutils list
Patch1031:	binutils-2.25.51-fix-overrides-for-gold-testsuite.patch
#Patch1035:	binutils-2.25.51-lto.patch
Patch1036:	binutils-2.27.90-fix-warnings.patch
Patch1038:	binutils-2.31-clang7.patch

# CVE patches
Patch1039:	CVE-2022-4285.patch
Patch1040:	CVE-2022-38533.patch
Patch1041:	CVE-2022-44840.patch
# code not found for  CVE-2022-45703
Patch1043:	CVE-2022-47007.patch
Patch1044:	CVE-2022-47008.patch
Patch1045:	CVE-2022-47010.patch
Patch1046:	CVE-2022-47011.patch
Patch1047:	CVE-2022-47673.patch
Patch1048:	CVE-2022-47695.patch
Patch1049:	CVE-2022-47696.patch
Patch1050:	CVE-2022-48063.patch
Patch1051:	CVE-2022-48064.patch
Patch1052:	CVE-2022-48065.patch
Patch1053:	CVE-2023-1972.patch
Patch1054:	CVE-2022-35205.patch
# CVE-2022-35206 is not valid for v2.38: debug_info_p was added later

%rename %{lib_name}
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gcc
BuildRequires:	gettext
BuildRequires:	texinfo
BuildRequires:	dejagnu
BuildRequires:	pkgconfig(zlib)
# make check'ing requires libdl.a
BuildRequires:	glibc-static-devel >= 6:2.14.90-8
# gold make check'ing requires libstdc++.a & bc
BuildRequires:	libstdc++-static-devel
BuildRequires:	bc
BuildRequires:	pkgconfig(isl)
BuildRequires:	gmp-devel
BuildRequires:	pkgconfig(mpfr)
BuildRequires:	libmpc-devel
%if %{with default_lld}
Requires:	lld
%endif

%description
Binutils is a collection of binary utilities, including:

   * ar: creating modifying and extracting from archives
   * nm: for listing symbols from object files
   * objcopy: for copying and translating object files
   * objdump: for displaying information from object files
   * ranlib: for generating an index for the contents of an archive
   * size: for listing the section sizes of an object or archive file
   * strings: for listing printable strings from files
   * strip: for discarding symbols (a filter for demangling encoded C++ symbols
   * addr2line: for converting addresses to file and line
   * nlmconv: for converting object code into an NLM

Install binutils if you need to perform any of these types of actions on
binary files.  Most programmers will want to install binutils.

%package -n %{dev_name}
Summary:	Main library for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{lib_name}-devel = %{version}-%{release}
Obsoletes:	%{lib_name}-devel <= %{version}-%{release}
Requires:	pkgconfig(zlib)

%description -n %{dev_name}
This package contains BFD and opcodes static libraries and associated
header files.  Only *.a libraries are included, because BFD doesn't
have a stable ABI.  Developers starting new projects are strongly encouraged
to consider using libelf instead of BFD.

%prep
%setup -q -n binutils-%{version}%{?DATE:-%{DATE}}
%autopatch -p1

cp -f %{_datadir}/libtool/config/config.{guess,sub} .

# Need to regenerate lex files
rm -f binutils/syslex.c binutils/arlex.c binutils/deflex.c gas/config/bfin-lex.c gas/itbl-lex.c ld/ldlex.c

# Some distributions (e.g. Fedora 23 for Opteron A1100) use 64 kB pages on aarch64.
# Adjust the page size so binaries built with our toolchain can run there.
sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*ppc.c
sed -i -e '/#define.*ELF_COMMONPAGESIZE/s/0x1000$/0x10000/' bfd/elf*aarch64.c
sed -i -e '/common_pagesize/s/4 /64 /' gold/powerpc.cc
sed -i -e '/pagesize/s/0x1000,/0x10000,/' gold/aarch64.cc
# Build libbfd.so and libopcodes.so with -Bsymbolic-functions if possible.
sed -i -e 's/^libbfd_la_LDFLAGS = /&-Wl,-Bsymbolic-functions /' bfd/Makefile.{am,in}
sed -i -e 's/^libopcodes_la_LDFLAGS = /&-Wl,-Bsymbolic-functions /' opcodes/Makefile.{am,in}

#ifarch %{arm}
# This should be fixed with patches 138 and 139, but leaving it here for now
# so we can restore the temporary fix if more problems occur.
# --icf=safe is unstable on 32-bit ARM
# https://sourceware.org/bugzilla/show_bug.cgi?id=23046
# sed -i -e '/^[^/-]*icf/ s/"safe"/"none"/' gold/options.h
#endif

find -name \*.h -o -name \*.c -o -name \*.cc | xargs chmod 644

%if "%{_lib}" != "lib"
# Fix bogus lib hardcodes...
sed -i -e 's,/lib/,/%{_lib}/,g' bfd/plugin.c
sed -i -e 's,tooldir)/lib,tooldir)/%{_lib},g' gold/Makefile.*
%endif

export CC="%{__cc} -D_GNU_SOURCE=1 -DHAVE_DECL_ASPRINTF=1"
export CXX="%{__cxx} -D_GNU_SOURCE=1 -std=gnu++14"

for i in %{long_targets}; do
	mkdir -p BUILD-$i
	cd BUILD-$i
	if [ "%{_target_platform}" = "$i" ]; then
		# Native build -- we want shared libs here...
		EXTRA_CONFIG="--enable-shared --with-pic"
		if echo $i |grep -q x32; then
			EXTRA_CONFIG="$EXTRA_CONFIG --with-lib-path=/libx32:%{_prefix}/libx32:%{_prefix}/local/libx32:%{_prefix}/$i/libx32:/lib64:%{_prefix}/lib64:%{_prefix}/local/lib64:%{_prefix}/$i/lib64:/lib:%{_prefix}/lib:%{_prefix}/local/lib:%{_prefix}/$i/lib"
		else
%if "%{_lib}" == "lib64"
			EXTRA_CONFIG="$EXTRA_CONFIG --with-lib-path=/%{_lib}:%{_libdir}:%{_prefix}/local/%{_lib}:/lib:%{_prefix}/lib:%{_prefix}/local/lib:%{_prefix}/$i/lib"
%else
			EXTRA_CONFIG="$EXTRA_CONFIG --with-lib-path=/lib:%{_prefix}/lib:%{_prefix}/local/lib:%{_prefix}/$i/lib"
%endif
		fi
	else
		# Cross build -- need to set program_prefix and friends...
		EXTRA_CONFIG="--target=$i --program-prefix=$i- --disable-shared --enable-static --with-sysroot=%{_prefix}/${i} --with-native-system-header-dir=/include"
		if echo $i |grep -q x32; then
			EXTRA_CONFIG="$EXTRA_CONFIG --with-lib-path=%{_prefix}/$i/libx32:%{_prefix}/$i/lib64:%{_prefix}/$i/lib"
		elif echo $i |grep -q 64; then
			EXTRA_CONFIG="$EXTRA_CONFIG --with-lib-path=%{_prefix}/$i/lib64:%{_prefix}/$i/lib"
		else
			EXTRA_CONFIG="$EXTRA_CONFIG --with-lib-path=%{_prefix}/$i/lib"
		fi
	fi

	case $i in
	*x32)
		EXTRA_CONFIG="$EXTRA_CONFIG --enable-targets=$i,x86_64-$(echo $i |cut -d- -f2- |sed -e 's,x32,,'),i686-$(echo $i |cut -d- -f2- |sed -e 's,x32,,') --with-abi=x32"
		;;
	i*86*|athlon*|znver1_32*)
		EXTRA_CONFIG="$EXTRA_CONFIG --enable-targets=$i,x86_64-$(echo $i |cut -d- -f2-) --with-abi=32"
		;;
	aarch64*)
		EXTRA_CONFIG="$EXTRA_CONFIG --enable-targets=$i,armv7hnl-$(echo $i |cut -d- -f2-)eabihf"
		;;
	armv7*)
		EXTRA_CONFIG="$EXTRA_CONFIG --with-cpu=cortex-a8 --with-tune=cortex-a8 --with-arch=armv7-a --with-mode=thumb --with-float=hard --with-fpu=neon --with-abi=aapcs-linux"
		;;
	x86_64*|znver1*)
		EXTRA_CONFIG="$EXTRA_CONFIG --enable-targets=$i,${i}x32,i586-$(echo $i |cut -d- -f2-),i686-$(echo $i |cut -d- -f2-) --with-abi=64"
		;;
	esac

	CONFIGURE_TOP=.. %configure \
		--enable-64-bit-bfd \
		--with-bugurl=%{bugurl} \
%if %{with gold}
%if %{gold_default}
		--enable-ld=yes \
		--enable-gold=default \
%else
		--enable-ld=default \
		--enable-gold=yes \
%endif
%else
		--enable-ld=default \
		--disable-gold \
%endif
		$EXTRA_CONFIG \
		--enable-plugins \
		--enable-threads \
%ifarch %{mips}
		--enable-default-hash-style=sysv \
%else
		--enable-default-hash-style=gnu \
%endif
		--enable-lto \
		--disable-werror \
		--enable-static \
		--enable-relro=yes \
		--with-separate-debug-dir=%{_prefix}/lib/debug \
		--enable-initfini-array \
		--disable-isl-version-check \
		--enable-generate-build-notes=no \
		--enable-compressed-debug-sections=none \
		--with-mpc=%{_libdir} \
		--with-mpfr=%{_libdir} \
		--with-gmp=%{_libdir} \
		--with-isl=%{_libdir} \
		--with-system-zlib
	cd -
done

%build
for i in %{long_targets}; do
	cd BUILD-$i
	%make_build
	cd -
done

%make_build -C BUILD-%{_target_platform}/bfd/doc html
#mkdir -p html
#cp -f BUILD-%{_target_platform}/bfd/doc/bfd.html/* html

%check
# All Tests must pass
echo ====================TESTING=========================
# workaround for not using colorgcc when building due to colorgcc
# messing up output redirection..
PATH=${PATH#%{_datadir}/colorgcc:}
%make_build -k -C BUILD-%{_target_platform} check CFLAGS="" CXXFLAGS="" LDFLAGS="" || :
echo ====================TESTING END=====================

logfile="%{name}-%{version}-%{release}.log"
rm -f $logfile; find . -name "*.sum" | xargs cat >> $logfile

%install
for i in %{long_targets}; do
	[ "$i" = "%{_target_platform}" ] && continue
	cd BUILD-$i
	%make_install
	cd -
	mkdir -p %{buildroot}%{_prefix}/"$i"/include
done
# We install the native version last to make sure we get all
# the man pages etc. for the native version rather than a random
# cross compiler that happens to go last
cd BUILD-%{_target_platform}
%make_install
cp libiberty/pic/libiberty.a %{buildroot}%{_libdir}/
cd -

rm -f %{buildroot}%{_mandir}/man1/*{dlltool,nlmconv,windres}*
rm -f %{buildroot}%{_infodir}/dir

# [ -d BUILD-%{_target_platform} ] && %make -C BUILD-%{_target_platform} prefix=%{buildroot}%{_prefix} infodir=%{buildroot}%{_infodir} install-info

# Sanity check --enable-64-bit-bfd really works.
grep '^#define BFD_ARCH_SIZE 64$' %{buildroot}%{_prefix}/include/bfd.h
# Fix multilib conflicts of generated values by __WORDSIZE-based expressions.
sed -i -e '/^#include "ansidecl.h"/{p;s~^.*$~#include <bits/wordsize.h>~;}' \
	-e 's/^#define BFD_DEFAULT_TARGET_SIZE \(32\|64\) *$/#define BFD_DEFAULT_TARGET_SIZE __WORDSIZE/' \
	-e 's/^#define BFD_HOST_64BIT_LONG [01] *$/#define BFD_HOST_64BIT_LONG (__WORDSIZE == 64)/' \
	-e 's/^#define BFD_HOST_64_BIT \(long \)\?long *$/#if __WORDSIZE == 32\
#define BFD_HOST_64_BIT long long\
#else\
#define BFD_HOST_64_BIT long\
#endif/' \
	-e 's/^#define BFD_HOST_U_64_BIT unsigned \(long \)\?long *$/#define BFD_HOST_U_64_BIT unsigned BFD_HOST_64_BIT/' \
	%{buildroot}%{_prefix}/include/bfd.h
touch -r bfd/bfd-in2.h %{buildroot}%{_prefix}/include/bfd.h

# Generate .so linker scripts for dependencies; imported from glibc/Makerules:
rm -f %{buildroot}%{_libdir}/libbfd.so %{buildroot}%{_libdir}/libopcodes.so
# This fragment of linker script gives the OUTPUT_FORMAT statement
# for the configuration we are building.
OUTPUT_FORMAT="\
/* Ensure this .so library will not be used by a link for a different format
   on a multi-architecture system.  */
$(gcc $CFLAGS $LDFLAGS -shared -x c /dev/null -o /dev/null -Wl,--verbose -v 2>&1 | sed -n -f "%{SOURCE5}")"

tee %{buildroot}%{_libdir}/libbfd.so <<EOH
/* GNU ld script */

$OUTPUT_FORMAT

/* The libz dependency is unexpected by legacy build scripts.  */
INPUT ( %{_libdir}/libbfd.a -liberty -lz )
EOH

tee %{buildroot}%{_libdir}/libopcodes.so <<EOH
/* GNU ld script */

$OUTPUT_FORMAT

INPUT ( %{_libdir}/libopcodes.a -lbfd -lz )
EOH

cd %{buildroot}%{_bindir}
# Symlinks for native tools compatibility with crosscompilers
for i in *; do
	echo $i |grep -q -- - && continue
	[ -e %{_target_platform}-$i ] || ln -s $i %{_target_platform}-$i
done

# Default ld, if one is missing...
for i in *-ld.bfd; do
	[ -e ${i/.bfd/} ] || ln -s $i ${i/.bfd}
done
cd -

rm -f  %{buildroot}%{_prefix}/*/*/lib/*.la

%find_lang binutils --all-name

mkdir -p %{buildroot}%{_libdir}/bfd-plugins

for i in %{long_targets}; do
	# aarch64-mandriva-linux-gnu and aarch64-linux-gnu are similar enough...
	longplatform=$(grep ^target_alias= BUILD-$i/Makefile |cut -d= -f2-)
	if [ -n "$(echo $i |cut -d- -f4-)" ]; then
	shortplatform="$(echo $i |cut -d- -f1)-$(echo $i |cut -d- -f3-)"
	cd %{buildroot}%{_bindir}
	for j in $longplatform-*; do
		[ -e $(echo $j |sed -e "s,$longplatform,$shortplatform,") ] || ln -s $j $(echo $j |sed -e "s,$longplatform,$shortplatform,")
	done
	cd -
	fi
	if [ "$longplatform" != "$i" ]; then
	cd %{buildroot}%{_bindir}
	for j in $longplatform-*; do
		[ -e $(echo $j |sed -e "s,$longplatform,$i,") ] || ln -s $j $(echo $j |sed -e "s,$longplatform,$i,")
	done
	cd -
	fi
done

cd %{buildroot}%{_bindir}
# And for armv7hl (as opposed to armv7hnl) -- it's the same binutils-wise
for i in armv7hnl-*; do
	ln -s $i ${i/armv7hnl-/armv7hl-}
done
cd -

%if %{with default_lld}
# For now, let's keep %{_bindir}/ld in here even if it points
# to lld...
# Least surprise for now, but ultimately %{_bindir}/ld should
# move to lld
rm -f %{buildroot}%{_bindir}/ld
ln -s ld.lld %{buildroot}%{_bindir}/ld
%endif

%files -f binutils.lang
%{_bindir}/addr2line
%{_bindir}/ar
%{_bindir}/as
%{_bindir}/c++filt
%optional %{_bindir}/dwp
%{_bindir}/elfedit
%{_bindir}/gprof
%{_bindir}/ld
%{_bindir}/ld.bfd
%optional %{_bindir}/ld.gold
%{_bindir}/nm
%{_bindir}/objcopy
%{_bindir}/objdump
%{_bindir}/ranlib
%{_bindir}/readelf
%{_bindir}/size
%{_bindir}/strings
%{_bindir}/strip
%{_bindir}/%{_target_platform}-addr2line
%{_bindir}/%{_target_platform}-ar
%{_bindir}/%{_target_platform}-as
%{_bindir}/%{_target_platform}-c++filt
%optional %{_bindir}/%{_target_platform}-dwp
%{_bindir}/%{_target_platform}-elfedit
%{_bindir}/%{_target_platform}-gprof
%{_bindir}/%{_target_platform}-ld
%{_bindir}/%{_target_platform}-ld.bfd
%optional %{_bindir}/%{_target_platform}-ld.gold
%{_bindir}/%{_target_platform}-nm
%{_bindir}/%{_target_platform}-objcopy
%{_bindir}/%{_target_platform}-objdump
%{_bindir}/%{_target_platform}-ranlib
%{_bindir}/%{_target_platform}-readelf
%{_bindir}/%{_target_platform}-size
%{_bindir}/%{_target_platform}-strings
%{_bindir}/%{_target_platform}-strip
%(if echo %{_target_platform} |grep -q -- armv7hnl-; then echo "%{_bindir}/%(echo %{_target_platform} |sed -e 's,armv7hnl-,armv7hl-,')-*"; fi)
%{_libdir}/bfd-plugins
%{_mandir}/man1/*
%{_infodir}/*info*
%{_libdir}/libbfd-*.so
%{_libdir}/libctf.so.*
%{_libdir}/libctf-nobfd.so.*
%{_libdir}/libopcodes-*.so
%{_prefix}/%{_target_platform}
%(
if [ -n "$(echo %{_target_platform} |cut -d- -f4-)" ]; then
	echo "%{_bindir}/$(echo %{_target_platform} |cut -d- -f1)-$(echo %{_target_platform} |cut -d- -f3-)-*"
	if echo %{_target_platform} |grep -q armv7hnl-; then
		echo "%{_bindir}/$(echo %{_target_platform} |sed -e 's,armv7hnl-,armv7hl-,g' |cut -d- -f1)-$(echo %{_target_platform} |cut -d- -f3-)-*"
	fi
fi
)

%files -n %{dev_name}
#% doc html
%{_includedir}/*.h
%{_libdir}/libbfd.a
%{_libdir}/libbfd.so
%{_libdir}/libctf.a
%{_libdir}/libctf.so
%{_libdir}/libctf-nobfd.a
%{_libdir}/libctf-nobfd.so
%{_libdir}/libopcodes.a
%{_libdir}/libopcodes.so
%{_libdir}/libiberty.a

%(
for i in %{long_targets}; do
	[ "$i" = "%{_target_platform}" ] && continue
	cat <<EOF
%package -n cross-${i}-binutils
Summary:	Binutils for crosscompiling to ${i}
Group:	Development/Other
EOF
	cat <<EOF
%description -n cross-${i}-binutils
Binutils for crosscompiling to ${i}.

%files -n cross-${i}-binutils
%{_prefix}/${i}
%{_bindir}/${i}-*
EOF

	if [ -n "$(echo $i |cut -d- -f4-)" ]; then
	shortplatform="$(echo $i |cut -d- -f1)-$(echo $i |cut -d- -f3-)"
	echo "%{_bindir}/${shortplatform}-*"
		if echo $shortplatform |grep -q armv7hnl-; then
		echo "%{_bindir}/${shortplatform/armv7hnl-/armv7hl-}-*"
		fi
	fi
	if echo $i |grep -q armv7hnl-; then
		echo "%{_bindir}/${i/armv7hnl-/armv7hl-}-*"
	fi
	echo
done
)



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12127 |21mr|bison-3.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sdevname %mklibname bison -d -s
%define _disable_rebuild_configure 1

Summary:	A GNU general-purpose parser generator
Name:		bison
Version:	3.8.2
Release:	1
License:	GPLv3+
Group:		Development/Tools
Url:		http://www.gnu.org/software/bison/bison.html
Source0:	http://ftp.gnu.org/gnu/bison/%{name}-%{version}.tar.xz
Source1:	bison.rpmlintrc
Patch0:		bison-1.32-extfix.patch
#Patch1:		bison-3.3.1-clang.patch
Patch3:		bison-3.0.5-gnulib-fseterr.patch

BuildRequires:	flex
BuildRequires:	help2man
BuildRequires:	m4 >= 1.4
Requires:	m4 >= 1.4
Requires(post,preun):	update-alternatives
Obsoletes:	%{sdevname} < 3.0.2

%description
Bison is a general purpose parser generator which converts a grammar
description for an LALR context-free grammar into a C program to parse
that grammar. Bison can be used to develop a wide range of language
parsers, from ones used in simple desk calculators to complex programming
languages. Bison is upwardly compatible with Yacc, so any correctly
written Yacc grammar should work with Bison without any changes. If
you know Yacc, you shouldn't have any trouble using Bison (but you do need
to be very proficient in C programming to be able to use Bison). Many
programs use Bison as part of their build process. Bison is only needed
on systems that are used for development.

If your system will be used for C development, you should install Bison
since it is used to build many C programs.

%files -f %{name}.lang
%doc %{_docdir}/%{name}
%{_bindir}/*
%dir %{_datadir}/bison
%{_datadir}/bison/*
%{_datadir}/aclocal/*
%{_infodir}/bison.info*
%{_mandir}/man1/*

%post
%{_sbindir}/update-alternatives --install %{_bindir}/yacc yacc %{_bindir}/yacc.bison 10

%preun
if [ $1 -eq 0 ]; then
  %{_sbindir}/update-alternatives --remove yacc %{_bindir}/yacc.bison
fi


#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-rpath \
	--enable-threads

%make

%install
%makeinstall_std

mv %{buildroot}%{_bindir}/yacc %{buildroot}%{_bindir}/yacc.bison

%find_lang %{name}
%find_lang %{name}-runtime
%find_lang %{name}-gnulib
cat %{name}-runtime.lang >> %{name}.lang
cat %{name}-gnulib.lang >> %{name}.lang

rm -f %{buildroot}%{_mandir}/man1/yacc.1

# (tpg) this is not needed at all
rm -rf %{buildroot}%{_libdir}/liby.a

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12128 |21mr|bitmap-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		bitmap
Version:	1.0.9
Release:	1
Summary:	Bitmap editor and converter utilities for the X Window System
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
URL:		http://xorg.freedesktop.org/archive/X11R6.8.0/doc/bitmap.1.html
License:	MIT
BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xmu) >= 1.0.0
BuildRequires:	pkgconfig(xt) >= 1.0.0
BuildRequires:	pkgconfig(xaw7) >= 1.0.1
BuildRequires:	x11-data-bitmaps >= 1.0.1
BuildRequires:	x11-util-macros >= 1.0.1

%description
Bitmap provides is a bitmap editor and misc converter utilities for the X
Window System.

%prep
%setup -q -n %{name}-%{version}

%build
%configure --disable-dependency-tracking
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/atobm
%{_bindir}/bmtoa
%{_bindir}/bitmap
%{_datadir}/X11/app-defaults/Bitmap
%{_datadir}/X11/app-defaults/Bitmap-nocase
%{_datadir}/X11/app-defaults/Bitmap-color
%{_includedir}/X11/bitmaps/Up
%{_includedir}/X11/bitmaps/Down
%{_includedir}/X11/bitmaps/Excl
%{_includedir}/X11/bitmaps/Fold
%{_includedir}/X11/bitmaps/Left
%{_includedir}/X11/bitmaps/Term
%{_includedir}/X11/bitmaps/Dashes
%{_includedir}/X11/bitmaps/Right
%{_includedir}/X11/bitmaps/FlipHoriz
%{_includedir}/X11/bitmaps/RotateLeft
%{_includedir}/X11/bitmaps/RotateRight
%{_includedir}/X11/bitmaps/FlipVert
%{_includedir}/X11/bitmaps/Stipple
%{_mandir}/man1/bitmap.1*
%{_mandir}/man1/bmtoa.1*
%{_mandir}/man1/atobm.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12129 |21mr|black-hole-solver-1.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define basen black-hole-solver
%define libname_orig lib%{basen}
%define major 1
%define libname %mklibname %{basen} %{major}
%define devname %mklibname %{basen} -d
%define staticname %mklibname %{basen} -d -s

Summary:		The Black Hole Solitaire Solver Executable
Name:		black-hole-solver
Version:		1.10.1
Release:		1
License:		MIT
Group:		    Games/Cards
Source0:		https://fc-solve.shlomifish.org/downloads/fc-solve/%{basen}-%{version}.tar.xz
URL:		    https://www.shlomifish.org/open-source/projects/black-hole-solitaire-solver/
BuildRequires:		cmake
BuildRequires:		pkgconfig(librinutils)
BuildRequires:		python3
BuildRequires:		valgrind
BuildRequires:		perl(Carp)
BuildRequires:		perl(Cwd)
BuildRequires:		perl(Data::Dumper)
BuildRequires:		perl(File::Path)
BuildRequires:		perl(File::Spec)
BuildRequires:		perl(Inline)
BuildRequires:		perl(List::MoreUtils)
BuildRequires:		perl(Path::Tiny)
BuildRequires:		perl(Test::Differences)
BuildRequires:		perl(Test::More)
BuildRequires:		perl(autodie)
BuildRequires:		perl(base)
BuildRequires:		perl(lib)
BuildRequires:		perl(strict)
BuildRequires:		perl(warnings)
BuildRequires:		perl-devel
Requires:		%{libname} = %{EVRD}

%description
This is a solver, written in C, to solve the Solitaire variants “Golf”,
“Black Hole” and “All in a Row”. It provides a portable C library, and
a command line application that after being fed with a layout will emit the
cards to move.

%files
%doc COPYING NEWS.asciidoc README.md TODO.quicktask
%_bindir/black-hole-solve
%{_mandir}/*/*

#--------------------------------------------------------------------

%package -n %{libname}
Summary:		The Black Hole Solver dynamic libraries
Group:		Games/Cards

%description -n %{libname}
Contains the Black Hole Solver libraries that are used by some programs.

This package is mandatory for the Black Hole Solver executable too.

%files -n %{libname}
%{_libdir}/libblack_hole_solver.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:		The Black Hole Solitaire development tools
Group:		Games/Cards
Requires:		%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
Development tools for the Black Hole Solitaire Solver.

%files -n %{devname}
%_includedir/black-hole-solver/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libblack_hole_solver.so

#--------------------------------------------------------------------

%package -n %{staticname}
Summary:		The Black Hole Solver static libraries
Group:		Games/Cards
Requires:		%{devname} = %{EVRD}

%description -n %{staticname}
Black Hole Solitaire Solver is a library for automatically solving boards of
Golf, Black Hole, and All in a Row solitaires. This package contains the static
libraries.

It is not generally required.

%files -n %{staticname}
%{_libdir}/libblack_hole_solver.a

#--------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake -DBUILD_STATIC_LIBRARY=1 -DLOCALE_INSTALL_DIR=%{_datadir}/locale -DLIB_INSTALL_DIR=%{_libdir}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12130 |21mr|blender-3.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define api_ver %(echo %{version} |cut -d"." -f1,2)
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)

Summary:	A fully functional 3D modeling/rendering/animation package
Name:		blender
Version:	3.3.3
Release:	2
License:	GPLv2+
Group:		Graphics
Url:		http://www.blender.org/
Source0:	https://download.blender.org/source/%{name}-%{version}.tar.xz
Source1:	%{name}.thumbnailer
Source2:	%{name}.xml
Source3:	macros.%{name}
Source100:	blender.rpmlintrc
# Extracted from
# https://gitlab.com/libeigen/eigen/-/commit/d55d392e7b1136655b4223bea8e99cb2fe0a8afd
Patch0:		blender-2.91-eigen3-log1p-ifelse.patch
Patch2:		blender-2.92.0-undefined-reference-mallocn.patch
Patch3:		blender-3.3.0-use-gl-profile-core.patch
Patch4:		blender-3.3.0-drop-sdl-32-was-not-declared.patch
Patch5:		blender-3.3.1-undefined-reference-python39.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	OpenColorIO
BuildRequires:	openshadinglanguage
BuildRequires:	boost-devel
BuildRequires:	embree-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	gomp-devel
BuildRequires:	jemalloc-devel
BuildRequires:	libharu-devel
BuildRequires:	OpenImageIO-devel
BuildRequires:	openmpi-devel
BuildRequires:	openvdb-devel
BuildRequires:	opensubdiv-devel
BuildRequires:	potrace-devel
BuildRequires:	python3-numpy
BuildRequires:	python3-requests
BuildRequires:	gmp-devel
BuildRequires:	gmpxx-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glfw3)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjpeg1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(OpenColorIO)
BuildRequires:	pkgconfig(oslcomp)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	python3
Requires(post,preun):	GConf2
# Make CUDA work out of the box on proprietary NVIDIA drivers
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=13430
# "nvidia" is a provide of nvidiaXXX-core
Recommends:	(nvidia-cuda-toolkit-devel if nvidia)
ExclusiveArch:	x86_64

%description
Blender is the in-house software of a high quality animation studio. It has
proven to be an extremely fast and versatile design instrument. The software
has a personal touch, offering a unique approach to the world of three
dimensions. Blender can be used to create TV commercials, to make technical
visualizations or business graphics, to do some morphing, or to design user
interfaces. Developers can easily build and manage complex environments.
The renderer is versatile and extremely fast. All basic animation principles
(curves and keys) are implemented.

%files -f %{name}.lang
%doc release/text/*
%license COPYING
%license doc/license/*-license.txt
%license release/text/copyright.txt
%license %{_defaultdocdir}/%{name}/license/*.txt
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/%{name}/%{api_ver}/datafiles/colormanagement
%{_datadir}/%{name}/%{api_ver}/datafiles/fonts
%{_datadir}/%{name}/%{api_ver}/datafiles/icons
%{_datadir}/%{name}/%{api_ver}/datafiles/locale/languages
%{_datadir}/%{name}/%{api_ver}/datafiles/studiolights
%{_datadir}/%{name}/%{api_ver}/scripts
%{_datadir}/thumbnailers/%{name}.thumbnailer
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_metainfodir}/%{name}.appdata.xml

%post
if [ -x %{_gconftool_bin} ]; then
	%{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --type boolean --set /desktop/gnome/thumbnailers/application@x-blender/enable true
	%{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --type string --set /desktop/gnome/thumbnailers/application@x-blender/command "blender-thumbnailer %u %o"
fi

%preun
if [ "$1" = "0" -a -x %{_gconftool_bin} ]; then
	%{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --unset /desktop/gnome/thumbnailers/application@x-blender/enable
	%{_gconftool_bin} --direct --config-source xml:readwrite:%{_sysconfdir}/gconf/gconf.xml.defaults --unset /desktop/gnome/thumbnailers/application@x-blender/command
fi

#----------------------------------------------------------------------------

%package rpm-macros
Summary:	RPM macros to build third-party blender addons packages
BuildArch:	noarch

%description rpm-macros
This package provides rpm macros to support the creation of third-party addon
packages to extend Blender.

%files rpm-macros
%{macrosdir}/macros.%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Drop when update python to 3.9+
sed -i "/PYTHON_VERSION/ s/3\.9/3.8/" CMakeLists.txt
sed -i "/PY_VERSION_HEX/ s/03090000/03080000/" source/blender/python/intern/bpy_capi_utils.h

# Delete the bundled FindOpenJPEG to make find_package use the system version
# instead (the local version hardcodes the openjpeg version so it is not update
# proof)
rm -f build_files/cmake/Modules/FindOpenJPEG.cmake

%build
export CFLAGS="$CFLAGS -Wno-error=implicit-function-declaration"
export LDFLAGS="%{optflags} -ldl -lglfw -lGLU -lGL"
%cmake \
	-DWITH_INSTALL_PORTABLE:BOOL=OFF	\
	-DWITH_GAMEENGINE:BOOL=ON	\
	-DWITH_PLAYER:BOOL=ON		\
	-DWITH_PYTHON:BOOL=ON		\
	-DPYTHON_VERSION:STRING=%{py3_ver}	\
	-DWITH_PYTHON_INSTALL:BOOL=OFF	\
	-DWITH_PYTHON_INSTALL_NUMPY=OFF	\
	-DWITH_GL_PROFILE_CORE:BOOL=ON	\
	-DWITH_GL_PROFILE_ES20:BOOL=ON	\
	-DWITH_CODEC_FFMPEG:BOOL=ON	\
	-DWITH_CODEC_SNDFILE:BOOL=ON	\
	-DWITH_JACK:BOOL=ON		\
	-DWITH_SDL:BOOL=ON		\
	-DWITH_LZO:BOOL=ON		\
	-DWITH_FFTW3:BOOL=ON		\
	-DWITH_MOD_OCEANSIM:BOOL=ON	\
	-DWITH_OPENSUBDIV:BOOL=ON	\
	-DWITH_OPENVDB:BOOL=ON		\
	-DWITH_OPENVDB_BLOSC:BOOL=ON	\
	-DWITH_SYSTEM_OPENJPEG:BOOL=ON	\
	-DWITH_SYSTEM_GLEW:BOOL=ON	\
	-DWITH_CYCLES:BOOL=ON		\
	-DWITH_CYCLES_OSL:BOOL=OFF	\
	-DWITH_OPENCOLORIO:BOOL=ON	\
	-DSUPPORT_SSE2_BUILD=ON		\
	-DWITH_RAYOPTIMIZATION:BOOL=ON	\
	-DWITH_IMAGE_OPENJPEG:BOOL=OFF	\
	-DBUILD_SHARED_LIBS:BOOL=OFF	\
	-GNinja
%ninja_build

%install
%ninja_install -C build

# Fix shebangs
sed -i -e 's,#!/usr/bin/python,#!/usr/bin/python3,' %{buildroot}%{_bindir}/blender-thumbnailer %{buildroot}%{_datadir}/%{name}/*/scripts/modules/blend_render_info.py

%find_lang %{name}

# Thumbnailer
install -p -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/thumbnailers/%{name}.thumbnailer

# Mime support
install -p -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/mime/packages/%{name}.xml

# rpm macros
mkdir -p %{buildroot}%{macrosdir}
sed -e 's/@VERSION@/%{api_ver}/g' %{SOURCE3} > %{buildroot}%{macrosdir}/macros.%{name}

# AppData
install -p -m 644 -D release/freedesktop/org.%{name}.Blender.appdata.xml \
	%{buildroot}%{_metainfodir}/%{name}.appdata.xml

# rpmlint fixes
find %{buildroot}%{_datadir}/%{name}/*/scripts -name "*.py" -exec chmod 755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12131 |21mr|blinken-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Simon Says Game
Name:		blinken
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/blinken/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Blinken is the KDE version of the well-known game Simon Says.
Follow the pattern of sounds and lights as long as you can! Press the
start game button to begin. Watch the computer and copy the pattern it
makes. Complete the sequence in the right order to win.

%files -f %{name}.lang
%doc AUTHORS
%{_kde5_applicationsdir}/org.kde.blinken.desktop
%{_kde5_bindir}/blinken
%{_kde5_datadir}/blinken
%{_kde5_datadir}/config.kcfg/blinken.kcfg
%{_kde5_iconsdir}/*/*/apps/blinken.*
%{_appdatadir}/org.kde.blinken.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12132 |21mr|blivet-gui-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for data storage configuration
Name:		blivet-gui
Version:	2.5.0
Release:	1
License:	GPLv2+
Group:		System/Configuration/Other
Url:		https://github.com/storaged-project/blivet-gui
Source0:	https://github.com/storaged-project/blivet-gui/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	python3dist(blivet)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	%{name}-runtime = %{EVRD}
BuildArch:	noarch

%description
Graphical (GTK) tool for manipulation and configuration of data storage
(disks, LVMs, RAIDs) based on blivet library.

%files
%doc README.md
%license COPYING
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop

#------------------------------------------------------------------------

%package runtime
Summary:	blivet-gui runtime
Group:		System/Configuration/Other
Requires:	adwaita-icon-theme
Requires:	gettext
Requires:	libreport
Requires:	python3
Requires:	python3-gi
Requires:	python3dist(blivet)
Requires:	python3dist(pid)

%description runtime
This package provides a %{name} runtime for applications that want to use
%{name} without actually installing the application itself.

%files runtime -f %{name}.lang
%doc README.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-daemon
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/polkit-1/actions/org.fedoraproject.pkexec.%{name}.policy
%{_localstatedir}/log/%{name}
%{_mandir}/man1/%{name}.1*
%{python3_sitelib}/*
%{_sysconfdir}/libreport/events.d/%{name}_event.conf

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_sysconfdir}/libreport/events.d
cp %{name}_event.conf %{buildroot}/%{_sysconfdir}/libreport/events.d

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

mkdir -p %{buildroot}%{_localstatedir}/log/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12133 |21mr|blosc-1.21.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}

Summary:	A high performance compressor optimized for binary data
Name:		blosc
Version:	1.21.1
Release:	1
License:	MIT
Group:		Development/C
Url:		https://github.com/FrancescAlted/blosc
Source0:	https://github.com/FrancescAlted/blosc/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	snappy-devel
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(zlib)

%description
Blosc is a compression library designed to transmit data to the processor
cache faster than the traditional non-compressed memory fetch.
Compression ratios are not very high, but the decompression is very fast.
Blosc is meant not only to reduce the size of large datasets on-disk or
in-memory, but also to accelerate memory-bound computations.

#----------------------------------------------------------------------
%package -n %{libname}
Summary:	A high performance compressor optimized for binary data

%description -n %{libname}
Blosc is a compression library designed to transmit data to the processor
cache faster than the traditional non-compressed memory fetch.
Compression ratios are not very high, but the decompression is very fast.
Blosc is meant not only to reduce the size of large datasets on-disk or
in-memory, but also to accelerate memory-bound computations.

%files -n %{libname}
%exclude %{_pkgdocdir}/bench/
%doc ANNOUNCE.rst RELEASE_NOTES.rst README.md README_THREADED.rst
%{_libdir}/libblosc.so.*

#----------------------------------------------------------------------

%package -n %{devname}
Summary: Header files and libraries for Blosc development
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel

%description -n %{devname}
The blosc-devel package contains the header files and libraries needed
to develop programs that use the blosc meta-compressor.

%files -n %{devname}
%{_libdir}/libblosc.so
%{_includedir}/blosc.h
%{_includedir}/blosc-export.h
%{_libdir}/pkgconfig/blosc.pc

#----------------------------------------------------------------------

%package bench
Summary: Benchmark for the Blosc compressor
Requires: %{libname} = %{version}-%{release}
Requires: python3-matplotlib

%description bench
The blosc-bench package contains a benchmark suite which evaluates
the performance of Blosc, and compares it with memcpy.

%files bench
%{_pkgdocdir}/bench/*.c
%{_pkgdocdir}/bench/*.py
%{_bindir}/%{name}-bench
%{_bindir}/%{name}-plot-times

#----------------------------------------------------------------------

%prep
%setup -qn c-%{name}-%{version}

# https://github.com/Blosc/c-blosc/issues/190
sed -i 's|lib/pkgconfig|%{_lib}/pkgconfig|' CMakeLists.txt

%cmake \
        -DBUILD_STATIC=OFF \
        -DCMAKE_C_FLAGS:STRING="%{optflags}" \
        -DPREFER_EXTERNAL_SNAPPY=ON \
        -DPREFER_EXTERNAL_ZLIB=ON \
        -DPREFER_EXTERNAL_ZSTD=ON \
        -DPREFER_EXTERNAL_LZ4=ON

%build
%make VERBOSE=1 -C build

%install
%makeinstall_std -C build

mkdir -p %{buildroot}/%{_pkgdocdir}/bench
install -p bench/plot-speeds.py* %{buildroot}/%{_pkgdocdir}/bench/
install -pm 0644 bench/*.c %{buildroot}/%{_pkgdocdir}/bench

mkdir -p %{buildroot}/%{_bindir}
install -p build/bench/bench %{buildroot}/%{_bindir}/%{name}-bench
install -p bench/plot-speeds.py %{buildroot}/%{_bindir}/%{name}-plot-times

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12134 |21mr|blt-2.4z-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Tk toolkit extension, including widgets, geometry managers, etc
Name:		blt
Version:	2.4z
Release:	33
License:	MIT
Group:		System/Libraries
URL:		http://www.sourceforge.net/projects/blt/
Source0:	BLT%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Patch0:		blt2.4z-patch-2.patch
Patch1:		blt2.4z-configure.in-disable-rpath.patch
Patch2:		blt2.4z-libdir.patch
Patch3:		blt2.4z-mkdir_p.patch
Patch4:		blt2.4z-64bit-fixes.patch
Patch5:		blt-2.4z-tcl8.5-fix.patch
# Loosens the version checking, or else it will fail when built against
# any Tcl/Tk with a minor version (8.5.1, 8.5.2, 8.5.3) - braindead test
# AdamW 2008/07
Patch6:		blt-2.4z-exact.patch
# Part fix, part kludge for Tcl 8.6 (interp->result, TIP #330) - AdamW
# 2008/12
Patch7:		blt-2.4z-tcl86.patch
Patch8:		blt-2.4z-tk8.6.patch
Patch9:		blt-2.4z-autoconf-fix.patch
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xft)


%description
BLT is an extension to the Tk toolkit. BLT's most useful feature is the
provision of more widgets for Tk, but it also provides more geometry managers
and miscellaneous other commands. Note that you won't need to do any patching
of the Tcl or Tk source files to use BLT, but you will need to have Tcl/Tk
installed in order to use BLT.

%prep
%setup -q -n %{name}%{version}
sed -i -e 's,local/,,g' demos/scripts/page.tcl
%patch0 -p1
%patch1 -p1 -b .rpath
%patch2 -p1 -b .libdir
%patch3 -p1 -b .mkdir_p
%patch4 -p1 -b .64bit-fixes
%patch5 -p1
%patch6 -p1 -b .exact
%patch7 -p1 -b .tcl86
%patch8 -p1 -b .tk8.6
%patch9 -p1 -b .autoconf~

autoconf

%build
%configure --libdir=%{tcl_sitearch} --with-tcl=%{_libdir} --with-tk=%{_libdir} CC=""
make

%install
%makeinstall libdir=%{buildroot}%{tcl_sitearch}

ln -sf bltwish24 %{buildroot}%{_bindir}/bltwish
ln -sf bltsh24 %{buildroot}%{_bindir}/bltsh

# Dadou - 2.4u-2mdk - Don't put in %%_libdir things which should be in %%_docdir
rm -fr %{buildroot}%{tcl_sitearch}/blt2.4/NEWS
rm -fr %{buildroot}%{tcl_sitearch}/blt2.4/PROBLEMS
rm -fr %{buildroot}%{tcl_sitearch}/blt2.4/README
rm -fr %{buildroot}%{tcl_sitearch}/blt2.4/demos

# Dadou - 2.4u-2mdk - Prevent conflicts with other packages
for i in bitmap busy graph tabset tree watch; do
	mv %{buildroot}%{_mandir}/mann/$i{,-blt}.n
done

# need to be available as a shared lib as well as a tcl module
ln -sf %{tcl_sitearch}/libBLT24.so %{buildroot}%{_libdir}/libBLT24.so 
ln -sf %{tcl_sitearch}/libBLTlite24.so %{buildroot}%{_libdir}/libBLTlite24.so 

# development crap, we don't have anything that builds against this
# at present
rm -rf %{buildroot}%{_includedir}
rm -f %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{tcl_sitearch}/*.a

%files
%doc MANIFEST NEWS PROBLEMS README
%doc examples/
%doc html/
%doc demos/
%{_bindir}/*
%{_mandir}/mann/*
%{_mandir}/man3/*
%{tcl_sitearch}/*.so
%{tcl_sitearch}/%{name}2.4
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12135 |21mr|bluez-5.65-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Official Linux Bluetooth protocol stack
Name:		bluez
Version:	5.65
Release:	3
Epoch:		1
License:	GPLv2+
Group:		Communications
Url:		http://www.bluez.org/
Source0:	http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
Source1:	pand.conf
Source2:	dund.conf
Source3:	hidd.conf
Source4:	rfcomm.conf
Source5:	97-bluetooth.rules
Source10:	bluez-uinput.modules
# Revert this commit, it leads to huge delay on boot in Plasma 5
Patch0:		bluez-5.36-systemd-conditional.patch
## Ubuntu patches
Patch1:		0001-work-around-Logitech-diNovo-Edge-keyboard-firmware-i.patch
# Non-upstream
Patch2:		0001-Allow-using-obexd-without-systemd-in-the-user-sessio.patch
Patch3:		0001-obex-Use-GLib-helper-function-to-manipulate-paths.patch
Patch4:		0004-agent-Assert-possible-infinite-loop.patch
Patch5:		bluez-check-flags.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	cups-devel
BuildRequires:	elfutils-devel
BuildRequires:	readline-devel
BuildRequires:	sbc-devel
%ifnarch %{e2k}
BuildRequires:	speexdsp-devel
%endif
BuildRequires:	json-c-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev) >= 186
BuildRequires:	python3-docutils

%description
These are the official Bluetooth communication libraries for Linux.

%files
%{_bindir}/ciptool
%{_bindir}/bluemoon
%{_bindir}/bluetoothctl
%{_bindir}/btattach
%{_bindir}/btmon
%{_bindir}/isotest
%{_bindir}/hciattach
%{_bindir}/hciconfig
%{_bindir}/hcidump
%{_bindir}/hcitool
%{_bindir}/hex2hcd
%{_bindir}/l2ping
%{_bindir}/mpris-proxy
%{_bindir}/rfcomm
%{_bindir}/sdptool
%dir %{_libexecdir}/bluetooth
%{_libexecdir}/bluetooth/bluetoothd
%ifnarch %{e2k}
%{_libexecdir}/bluetooth/obexd
%endif
%{_unitdir}/bluetooth.service
%{_unitdir}/dbus-org.bluez.service
%{_userunitdir}/obex.service
%{_mandir}/man1/btattach.1*
%{_mandir}/man1/btmon.1*
%{_mandir}/man1/ciptool.1*
%{_mandir}/man1/isotest.1*
%{_mandir}/man1/hciattach.1*
%{_mandir}/man1/hciconfig.1*
%{_mandir}/man1/hcitool.1*
%{_mandir}/man1/hcidump.1*
%{_mandir}/man1/l2ping.1*
%{_mandir}/man1/rctest.1*
%{_mandir}/man1/rfcomm.1*
%{_mandir}/man1/sdptool.1*
%{_mandir}/man8/*
%config(noreplace) %{_sysconfdir}/sysconfig/*
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/*.conf
%config(noreplace) %{_sysconfdir}/bluetooth
%{_datadir}/dbus-1/system-services/org.bluez.service
%{_datadir}/dbus-1/services/org.bluez.obex.service
%{_datadir}/zsh/site-functions/_bluetoothctl
%{_localstatedir}/lib/bluetooth
%dir %{_libdir}/bluetooth
%dir %{_libdir}/bluetooth/plugins
%{_libdir}/bluetooth/plugins/sixaxis.so
%{_udevrulesdir}/97-bluetooth.rules

%post
%systemd_post bluetooth.service

%postun
%systemd_postun bluetooth.service

#----------------------------------------------------------------------------

%package cups
Summary:	CUPS printer backend for Bluetooth printers
Group:		System/Servers
Requires:	cups

%description cups
This package contains the CUPS backend for Bluetooth printers.

%files cups
%{_libdir}/cups/backend/bluetooth

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Official Linux Bluetooth protocol stack
Group:		System/Libraries

%description -n %{libname}
These are the official Bluetooth communication libraries for Linux.

%files -n %{libname}
%{_libdir}/libbluetooth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libraries from %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog README
%dir %{_includedir}/bluetooth
%{_includedir}/bluetooth/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/bluez.pc

#----------------------------------------------------------------------------

%package hid2hci
Summary:	Put HID proxying bluetooth HCI's into HCI mode
Group:		Communications
Requires(post):	udev

%description hid2hci
Most allinone PC's and bluetooth keyboard / mouse sets which include a
bluetooth dongle, ship with a so called HID proxying bluetooth HCI.
The HID proxying makes the keyboard / mouse show up as regular USB HID
devices (after connecting using the connect button on the device + keyboard),
which makes them work without requiring any manual configuration.

The bluez-hid2hci package contains the hid2hci utility and udev rules to
automatically switch supported Bluetooth devices into regular HCI mode.

Install this package if you want to use the bluetooth function of the HCI
with other bluetooth devices like for example a mobile phone.

Note that after installing this package you will first need to pair your
bluetooth keyboard and mouse with the bluetooth adapter before you can use
them again. Since you cannot use your bluetooth keyboard and mouse until
they are paired, this will require the use of a regular (wired) USB keyboard
and mouse.

%files hid2hci
/lib/udev/hid2hci
%{_mandir}/man1/hid2hci.1*
/lib/udev/rules.d/97-hid2hci.rules

%post hid2hci
%{_bindir}/udevadm trigger --subsystem-match=usb

#----------------------------------------------------------------------------

%package test
Summary:	Tools for testing of various Bluetooth-functions
Group:		System/Servers
Requires:	python3-dbus
Requires:	python3-gobject

%description test
Contains a few tools for testing various bluetooth functions. The
BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., U.S.A.

%files test
%{_bindir}/simple-agent
%{_bindir}/l2test
%{_bindir}/rctest
%{_bindir}/test-*
%{python3_sitearch}/*.py
%{python3_sitearch}/__pycache__/*.pyc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -R
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

libtoolize -f -c
autoreconf -fi

%build
%configure \
	--with-systemdsystemunitdir=%{_unitdir} \
	--with-systemduserunitdir=%{_userunitdir} \
	--with-udevdir=/lib/udev \
	--enable-hid2hci \
	--enable-tools \
	--enable-cups \
	--enable-datafiles \
	--enable-debug \
	--enable-library \
	--enable-monitor \
	--enable-udev \
%ifnarch %{e2k}
	--enable-obex \
%else
	--disable-obex \
%endif
	--enable-client \
	--enable-systemd \
	--enable-threads \
	--enable-sixaxis \
	--enable-experimental \
	--enable-deprecated \
	--enable-testing

%make

%install
%makeinstall_std rulesdir=%{_sysconfdir}/udev/rules.d udevdir=/lib/udev

mkdir -p %{buildroot}%{_sysconfdir}/bluetooth
echo "1234" > %{buildroot}%{_sysconfdir}/bluetooth/pin

chmod 600 %{buildroot}%{_sysconfdir}/bluetooth/pin

install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/sysconfig/pand
install -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/sysconfig/dund
install -m644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/sysconfig/hidd
install -m644 %{SOURCE4} -D %{buildroot}%{_sysconfdir}/sysconfig/rfcomm

cp test/test-* %{buildroot}%{_bindir}
cp test/simple-agent %{buildroot}%{_bindir}/simple-agent

mkdir -p %{buildroot}%{python3_sitearch}
install -m644 test/bluezutils.py %{buildroot}%{python3_sitearch}/
install -m644 test/sap_client.py %{buildroot}%{python3_sitearch}/
install -m644 test/dbusdef.py %{buildroot}%{python3_sitearch}/

rm %{buildroot}%{_sysconfdir}/udev/rules.d/*.rules
install -p -m644 tools/hid2hci.rules -D %{buildroot}/lib/udev/rules.d/97-hid2hci.rules
install -m644 %{SOURCE5} -D %{buildroot}%{_udevrulesdir}/97-bluetooth.rules
sed s,"/usr/bin/bluetoothd","%{_libexecdir}/bluetooth/bluetoothd",g -i %{buildroot}%{_udevrulesdir}/97-bluetooth.rules
sed s,"@libexecdir@","%{_libexecdir}/bluetooth",g -i %{buildroot}%{_datadir}/dbus-1/services/org.bluez.obex.service

#install more config files
install -m0644 profiles/network/network.conf %{buildroot}%{_sysconfdir}/bluetooth/
install -m0644 src/main.conf %{buildroot}%{_sysconfdir}/bluetooth/
install -m0644 profiles/input/input.conf %{buildroot}%{_sysconfdir}/bluetooth/

install -d -m0755 %{buildroot}%{_localstatedir}/lib/bluetooth

sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-adapter
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-device
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-discovery
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-gatt-profile
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-health
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-health-sink
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-hfp
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-manager
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-nap
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-network
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-profile
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/test-sap-server
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/simple-agent

ln -s bluetooth.service %{buildroot}%{_unitdir}/dbus-org.bluez.service

sed 's|#AutoEnable=false|AutoEnable=true|' -i %{buildroot}%{_sysconfdir}/bluetooth/main.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12136 |21mr|bluez-qt-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 Bluetooth module
Name:		bluez-qt
Version:	5.116.0
Release:	3
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gl)

%description
KDE Frameworks 5 Bluetooth module. It provides Qt wrapper for Bluez 5 DBus API.

%files
%{_kde5_datadir}/qlogging-categories5/bluezqt.categories
%{_kde5_datadir}/qlogging-categories5/bluezqt.renamecategories
%{_udevrulesdir}/61-kde-bluetooth-rfkill.rules

#----------------------------------------------------------------------------

%define qmlkf5bluezqt %mklibname kf5bluezqt-qml

%package -n %{qmlkf5bluezqt}
Summary:	QML plugin for KDE Frameworks 5 Bluetooth module
Group:		System/Libraries
Provides:	kf5bluezqt-qml = %{EVRD}

%description -n %{qmlkf5bluezqt}
QML plugin for KDE Frameworks 5 Bluetooth module.

%files -n %{qmlkf5bluezqt}
%dir %{_kde5_qmldir}/org/kde/bluezqt/
%{_kde5_qmldir}/org/kde/bluezqt/*

#----------------------------------------------------------------------------

%define kf5bluezqt_major 6
%define libkf5bluezqt %mklibname kf5bluezqt %{kf5bluezqt_major}

%package -n %{libkf5bluezqt}
Summary:	KDE Frameworks 5 Bluetooth module shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{qmlkf5bluezqt} = %{EVRD}

%description -n %{libkf5bluezqt}
KDE Frameworks 5 Bluetooth module shared library.

%files -n %{libkf5bluezqt}
%{_kde5_libdir}/libKF5BluezQt.so.%{kf5bluezqt_major}
%{_kde5_libdir}/libKF5BluezQt.so.%{version}

#----------------------------------------------------------------------------

%define devkf5bluezqt %mklibname kf5bluezqt -d

%package -n %{devkf5bluezqt}
Summary:	Development files for KDE Frameworks 5 Bluetooth module
Group:		Development/KDE and Qt
Requires:	%{libkf5bluezqt} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5bluezqt-devel = %{version}

%description -n %{devkf5bluezqt}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5bluezqt}
%{_kde5_includedir}/KF5/BluezQt
%{_kde5_libdir}/cmake/KF5BluezQt
%{_kde5_libdir}/libKF5BluezQt.so
%{_kde5_libdir}/pkgconfig/KF5BluezQt.pc
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
	-DUDEV_RULES_INSTALL_DIR=%{_udevrulesdir}
make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12137 |21mr|boilerpipe-1.2.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          boilerpipe
Version:       1.2.0
Release:       14
Summary:       Boilerplate Removal and Fulltext Extraction from HTML pages
Group:         Development/Java
License:       ASL 2.0
Url:           https://github.com/kohlschutter/boilerpipe
Source0:       http://boilerpipe.googlecode.com/files/%{name}-%{version}-src.tar.gz
Source1:       http://boilerpipe.googlecode.com/svn/repo/de/l3s/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Source2:       %{name}.rpmlintrc
# use system libraries
Patch0:        %{name}-1.2.0-libdir-patch
# remove embedded nekohtml
Patch1:        %{name}-1.2.0-nekohtml-patch

BuildRequires: ant
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: nekohtml
BuildRequires: xerces-j2

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The boilerpipe library provides algorithms to detect and
remove the surplus "clutter" (boilerplate, templates)
around the main textual content of a web page.

The library already provides specific strategies 
for common tasks (for example: news article extraction) and
may also be easily extended for individual problem settings.

Extracting content is very fast (milliseconds), just needs the
input document (no global or site-level information required) and
is usually quite accurate. 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -iname '*.jar' -delete
find . -iname '*.class' -delete

%patch0 -p0
cp %{SOURCE1} pom.xml
%patch1 -p1

# fix non ASCII chars
for s in src/main/de/l3s/boilerpipe/BoilerpipeInput.java \
 src/main/de/l3s/boilerpipe/BoilerpipeInput.java \
 src/main/de/l3s/boilerpipe/BoilerpipeFilter.java \
 src/main/de/l3s/boilerpipe/BoilerpipeExtractor.java \
 src/main/de/l3s/boilerpipe/BoilerpipeProcessingException.java \
 src/main/de/l3s/boilerpipe/conditions/TextBlockCondition.java \
 src/main/de/l3s/boilerpipe/document/TextBlock.java \
 src/main/de/l3s/boilerpipe/document/TextDocumentStatistics.java \
 src/main/de/l3s/boilerpipe/document/TextDocument.java \
 src/main/de/l3s/boilerpipe/estimators/SimpleEstimator.java \
 src/main/de/l3s/boilerpipe/extractors/LargestContentExtractor.java \
 src/main/de/l3s/boilerpipe/extractors/DefaultExtractor.java \
 src/main/de/l3s/boilerpipe/extractors/NumWordsRulesExtractor.java \
 src/main/de/l3s/boilerpipe/extractors/KeepEverythingWithMinKWordsExtractor.java \
 src/main/de/l3s/boilerpipe/extractors/ExtractorBase.java \
 src/main/de/l3s/boilerpipe/extractors/ArticleSentencesExtractor.java \
 src/main/de/l3s/boilerpipe/extractors/CommonExtractors.java \
 src/main/de/l3s/boilerpipe/extractors/CanolaExtractor.java \
 src/main/de/l3s/boilerpipe/extractors/ArticleExtractor.java \
 src/main/de/l3s/boilerpipe/extractors/KeepEverythingExtractor.java \
 src/main/de/l3s/boilerpipe/filters/english/HeuristicFilterBase.java \
 src/main/de/l3s/boilerpipe/filters/english/KeepLargestFulltextBlockFilter.java \
 src/main/de/l3s/boilerpipe/filters/english/TerminatingBlocksFinder.java \
 src/main/de/l3s/boilerpipe/filters/english/IgnoreBlocksAfterContentFilter.java \
 src/main/de/l3s/boilerpipe/filters/english/IgnoreBlocksAfterContentFromEndFilter.java \
 src/main/de/l3s/boilerpipe/filters/english/DensityRulesClassifier.java \
 src/main/de/l3s/boilerpipe/filters/english/MinFulltextWordsFilter.java \
 src/main/de/l3s/boilerpipe/filters/english/NumWordsRulesClassifier.java \
 src/main/de/l3s/boilerpipe/filters/heuristics/SimpleBlockFusionProcessor.java \
 src/main/de/l3s/boilerpipe/filters/heuristics/BlockProximityFusion.java \
 src/main/de/l3s/boilerpipe/filters/heuristics/KeepLargestBlockFilter.java \
 src/main/de/l3s/boilerpipe/filters/heuristics/DocumentTitleMatchClassifier.java \
 src/main/de/l3s/boilerpipe/filters/heuristics/LabelFusion.java \
 src/main/de/l3s/boilerpipe/filters/heuristics/AddPrecedingLabelsFilter.java \
 src/main/de/l3s/boilerpipe/filters/heuristics/ExpandTitleToContentFilter.java \
 src/main/de/l3s/boilerpipe/filters/heuristics/ContentFusion.java \
 src/main/de/l3s/boilerpipe/filters/simple/MinWordsFilter.java \
 src/main/de/l3s/boilerpipe/filters/simple/LabelToBoilerplateFilter.java \
 src/main/de/l3s/boilerpipe/filters/simple/LabelToContentFilter.java \
 src/main/de/l3s/boilerpipe/filters/simple/InvertedFilter.java \
 src/main/de/l3s/boilerpipe/filters/simple/InvertedFilter.java \
 src/main/de/l3s/boilerpipe/filters/simple/MinClauseWordsFilter.java \
 src/main/de/l3s/boilerpipe/filters/simple/BoilerplateBlockFilter.java \
 src/main/de/l3s/boilerpipe/filters/simple/SplitParagraphBlocksFilter.java \
 src/main/de/l3s/boilerpipe/filters/simple/MarkEverythingContentFilter.java \
 src/main/de/l3s/boilerpipe/labels/DefaultLabels.java \
 src/main/de/l3s/boilerpipe/labels/ConditionalLabelAction.java \
 src/main/de/l3s/boilerpipe/labels/LabelAction.java \
 src/main/de/l3s/boilerpipe/sax/BoilerpipeSAXInput.java \
 src/main/de/l3s/boilerpipe/sax/HTMLHighlighter.java \
 src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLContentHandler.java \
 src/main/de/l3s/boilerpipe/sax/BoilerpipeHTMLParser.java \
 src/main/de/l3s/boilerpipe/sax/TagActionMap.java \
 src/main/de/l3s/boilerpipe/sax/InputSourceable.java \
 src/main/de/l3s/boilerpipe/sax/HTMLDocument.java \
 src/main/de/l3s/boilerpipe/sax/CommonTagActions.java \
 src/main/de/l3s/boilerpipe/sax/DefaultTagActionMap.java \
 src/main/de/l3s/boilerpipe/sax/HTMLFetcher.java \
 src/main/de/l3s/boilerpipe/sax/TagAction.java \
 src/main/de/l3s/boilerpipe/sax/MarkupTagAction.java \
 src/main/de/l3s/boilerpipe/util/UnicodeTokenizer.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

%build

ant -Dapp.javaversion=1.6

%install
%mvn_artifact pom.xml dist/%{name}-%{version}.jar
%mvn_file de.l3s.%{name}:%{name} %{name}
%mvn_install -J javadoc/1.2

install -pm 644 dist/%{name}-demo-%{version}.jar \
  %{buildroot}%{_javadir}/%{name}-demo.jar

%files -f .mfiles
%{_javadir}/%{name}-demo.jar
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12138 |21mr|bolt-0.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Thunderbolt device manager
Name:		bolt
Version:	0.9.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/Other
Url:		https://gitlab.freedesktop.org/bolt/bolt
Source0:	https://gitlab.freedesktop.org/bolt/bolt/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(systemd)

%description
bolt is a system daemon to manage Thunderbolt devices via a D-BUS
API. Thunderbolt 3 introduced different security modes that require
devices to be authorized before they can be used. The D-Bus API can be
used to list devices, enroll them (authorize and store them in the
local database) and forget them again (remove previously enrolled
devices). It also emits signals if new devices are connected (or
removed). During enrollment devices can be set to be automatically
authorized as soon as they are connected.  A command line tool, called
boltctl, can be used to control the daemon and perform all the above
mentioned tasks.

%files
%doc README.md CHANGELOG.md
%license COPYING
%{_bindir}/boltctl
%{_datadir}/dbus-1/interfaces/org.freedesktop.bolt.xml
%{_datadir}/dbus-1/system.d/org.freedesktop.bolt.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.bolt.service
%{_datadir}/polkit-1/actions/org.freedesktop.bolt.policy
%{_datadir}/polkit-1/rules.d/org.freedesktop.bolt.rules
%{_libexecdir}/boltd
%ghost %dir %{_localstatedir}/lib/boltd
%{_udevrulesdir}/*-%{name}.rules
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Ddb-name=boltd
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12139 |21mr|bomber-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Arcade bombing game
Name:		bomber
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/bomber/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Bomber is a single player arcade game.

The player is invading various cities in a plane that is decreasing in height.
The goal of the game is to destroy all the buildings and advance to the next
level. Each level gets a bit harder by increasing the speed of the plane and
the height of the buildings.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.bomber.desktop
%{_kde5_bindir}/bomber
%{_kde5_datadir}/bomber
%{_kde5_datadir}/config.kcfg/bomber.kcfg
%{_kde5_iconsdir}/hicolor/*/apps/bomber.*
%{_appdatadir}/org.kde.bomber.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12140 |21mr|bonnie++-2.00a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	A program for benchmarking hard drives and filesystems
Name:		bonnie++
Version:	2.00a
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.coker.com.au/bonnie++/
Source0:	http://www.coker.com.au/bonnie++/experimental/%{name}-%{version}.tgz
Patch0:		bonnie++-2.00a-makefile.patch

%description
Bonnie++ is a benchmark suite that is aimed at performing a number of simple
tests of hard drive and file system performance.

%files
%doc readme.html copyright.txt credits.txt
%{_bindir}/bon_csv2html
%{_bindir}/bon_csv2txt
%{_bindir}/generate_randfile
%{_mandir}/man1/bon_csv2html.1*
%{_mandir}/man1/bon_csv2txt.1*
%{_mandir}/man8/%{name}.8*
%{_mandir}/man1/generate_randfile.1*
%{_mandir}/man8/getc_putc.8.*
%{_mandir}/man8/zcav.8*
%{_sbindir}/%{name}
%{_sbindir}/getc_putc
%{_sbindir}/getc_putc_helper
%{_sbindir}/zcav

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-stripping
%make
perl -pi -e "s@/usr/share/doc/bonnie\+\+/@%{_docdir}/%{name}-%{version}/@" %{name}.8

%install
perl -pi -e "s@usr/share/man@%{buildroot}%{_mandir}@g" Makefile
%makeinstall eprefix=%{buildroot}%{_prefix} DESTDIR=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12141 |21mr|bookkeeper-4.3.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionals to help breaking bookkeeper <-> hadoop dependency cycle
%if 0%{?fedora}
%bcond_with hadoop
# Unavailable deps: log4cxx was retired
%bcond_with libhedwig
# Unsupported surefire plugin configuration
#[ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.18.1:test (default-test) on project bookkeeper-server: ExecutionException: java.lang.RuntimeException: The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
%bcond_with test
%endif

Name:          bookkeeper
Version:       4.3.2
Release:       7
Summary:       Replicated log service
License:       ASL 2.0
URL:           http://bookkeeper.apache.org/
Source0:       http://www.apache.org/dist/bookkeeper/%{name}-%{version}/%{name}-%{version}-src.tar.gz
# Add support for guava 18
Patch0:        bookkeeper-4.3.2-guava18.patch
# Add support for jline 2.+
Patch1:        bookkeeper-4.3.2-jline2.+.patch

BuildRequires: maven-local
BuildRequires: mvn(com.codahale.metrics:metrics-core)
BuildRequires: mvn(com.codahale.metrics:metrics-graphite)
BuildRequires: mvn(com.codahale.metrics:metrics-jvm)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.google.protobuf:protobuf-java)
BuildRequires: mvn(commons-cli:commons-cli)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-configuration:commons-configuration)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(io.netty:netty:3)
BuildRequires: mvn(jline:jline) >= 2.12.1
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.java.dev.jna:jna)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.derby:derby)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs-parent:pom:)
%if %{with hadoop}
BuildRequires: mvn(org.apache.hadoop:hadoop-common)
BuildRequires: mvn(org.apache.hadoop:hadoop-hdfs)
%endif
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.zookeeper:zookeeper)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: protobuf-compiler

%if %{with test}
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(org.apache.bookkeeper:bookkeeper-server)
#BuildRequires: mvn(org.apache.bookkeeper:bookkeeper-server:4.0.0)
#BuildRequires: mvn(org.apache.bookkeeper:bookkeeper-server:4.1.0)
#BuildRequires: mvn(org.apache.bookkeeper:bookkeeper-server:4.2.0)
BuildRequires: mvn(org.apache.bookkeeper:hedwig-server)
#BuildRequires: mvn(org.apache.bookkeeper:hedwig-server:4.0.0)
#BuildRequires: mvn(org.apache.bookkeeper:hedwig-server:4.1.0)
#BuildRequires: mvn(org.apache.bookkeeper:hedwig-server:4.2.0)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
%endif

%if %{with libhedwig}
# hedwig-client cpp
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
BuildRequires: libtool
BuildRequires: log4cxx-devel
BuildRequires: openssl-devel
BuildRequires: protobuf-devel
%else
Group:          Development/Java
BuildArch:     noarch
%endif

%description
BookKeeper is a replicated log service which can be used to
build replicated state machines. A log contains a sequence
of events which can be applied to a state machine. BookKeeper
guarantees that each replica state machine will see all the
same entries, in the same order.

%if %{with libhedwig}
%package -n libhedwig
Summary:       Hedwig C client library

%description  -n libhedwig
This package provides a C client interface to Hedwig server.

%package -n libhedwig-devel
Summary:       Development files for the Hedwig C client library
Requires:      libhedwig%{?_isa} = %{version}-%{release}

%description  -n libhedwig-devel
Development files for the Hedwig C client library.
%endif

%if %{with hadoop}
%package benchmark
Summary:       BookKeeper Benchmark
Group:          Development/Java
BuildArch:     noarch

%description benchmark
BookKeeper Benchmark.
%endif

%package codahale-metrics-provider
Summary:       BookKeeper Stats provider for Codahale Metrics
Group:          Development/Java
BuildArch:     noarch

%description codahale-metrics-provider
BookKeeper Stats provider for Codahale Metrics.

%package hedwig-client
Summary:       BookKeeper Hedwig Client
Group:          Development/Java
BuildArch:     noarch

%description hedwig-client
BookKeeper Hedwig Client.

%package hedwig-client-jms
Summary:       BookKeeper Hedwig Client JMS
Group:          Development/Java
BuildArch:     noarch

%description hedwig-client-jms
BookKeeper Hedwig Client JMS.

%package hedwig-protocol
Summary:       BookKeeper Hedwig Protocol
Group:          Development/Java
BuildArch:     noarch

%description hedwig-protocol
BookKeeper Hedwig Protocol.

%package hedwig-server
Summary:       BookKeeper Hedwig Server
Group:          Development/Java
BuildArch:     noarch

%description hedwig-server
BookKeeper Hedwig Server.

%package parent
Summary:       BookKeeper Parent POM
Group:          Development/Java
BuildArch:     noarch

%description parent
This package provide BookKeeper Parent POM.

%package server
Summary:       BookKeeper Server
Group:          Development/Java
BuildArch:     noarch
# Remove on F>24
Obsoletes:     %{name}-java < %{version}-%{release}
Provides:      %{name}-java = %{version}-%{release}

%description server
This package provide BookKeeper Server Library.

%package stats-api
Summary:       BookKeeper Stats APIs
Group:          Development/Java
BuildArch:     noarch

%description stats-api
This package provide Stats API for BookKeeper.

%package stats-providers
Summary:       BookKeeper Stats Providers Parent POM
Group:          Development/Java
BuildArch:     noarch

%description stats-providers
This package provide BookKeeper Stats Providers Parent POM.

%package javadoc
Summary:       Javadoc for %{name}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
find .  -name "*.jar" -print -delete
find .  -name "*.class" -print -delete

%patch0 -p1
%patch1 -p1

sed -i '/Xlint/d' pom.xml
%pom_xpath_remove pom:compilerArguments

%pom_xpath_set pom:properties/pom:netty.version 3
# Unavailable
%pom_remove_plugin -r :findbugs-maven-plugin
# Unwanted
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin -r :maven-assembly-plugin
%pom_remove_plugin -r :license-maven-plugin %{name}-server
%pom_remove_plugin -r :maven-clean-plugin %{name}-server
%pom_remove_plugin -r :maven-dependency-plugin %{name}-server
%pom_remove_plugin -r :maven-dependency-plugin hedwig-server

# Unavailable build deps
# com.twitter.common:stats:0.0.64
# com.twitter.common:net-http-handlers:0.0.39
# com.twitter.common:stats-time-series:0.0.36
# com.twitter.common:stats-jvm:0.0.33
# org.eclipse.jetty:jetty-server:8.1.4.v20120524
# org.eclipse.jetty:jetty-servlet:8.1.4.v20120524
%pom_disable_module twitter-science-provider %{name}-stats-providers
# com.twitter:ostrich_2.9.2:9.1.3
%pom_disable_module twitter-ostrich-provider %{name}-stats-providers

# package org.apache.commons.collections does not exist
%pom_add_dep commons-collections:commons-collections:3.2.1 %{name}-server

%pom_change_dep -r :log4j ::1.2.17 %{name}-server hedwig-client hedwig-client-jms hedwig-server

%pom_change_dep :geronimo-spec-jms org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1.1 hedwig-client-jms

%if %{without hadoop}
%pom_disable_module %{name}-benchmark
%endif

# Regenerate these files
rm -r bookkeeper-server/src/main/java/org/apache/bookkeeper/proto/DataFormats.java
rm -r hedwig-protocol/src/main/java/org/apache/hedwig/protocol/PubSubProtocol.java

# somersaults out
%if %{without test}
%pom_remove_plugin -r :maven-shade-plugin %{name}-server
%pom_disable_module compat-deps
%pom_remove_dep :bookkeeper-server-compat400 %{name}-server
%pom_remove_dep :bookkeeper-server-compat410 %{name}-server
%pom_remove_dep :bookkeeper-server-compat420 %{name}-server
%pom_remove_dep :hedwig-server-compat400 hedwig-server
%pom_remove_dep :hedwig-server-compat410 hedwig-server
%pom_remove_dep :hedwig-server-compat420 hedwig-server
%else
# NoClassDefFoundError: org/jboss/bk_v4_1_0/netty/channel/socket/ClientSocketChannelFactory
sed -i "s|<include>org.jboss.*:*</include>|<include>io.netty:netty:3</include>|" compat-deps/*-server-compat-*/pom.xml

# java.lang.Exception: Unexpected exception, expected<org.apache.bookkeeper.util.DiskChecker$DiskWarnThresholdException> but was<java.lang.IllegalArgumentException>
# org.apache.bookkeeper.util.DiskChecker$DiskOutOfSpaceException: Space left on device 0 Used space fraction:1.0 < threshold 0.95
rm -r %{name}-server/src/test/java/org/apache/bookkeeper/util/TestDiskChecker.java
# org.apache.bookkeeper.bookie.LedgerDirsManager$NoWritableLedgerDirException: All ledger directories are non writable
rm -r %{name}-server/src/test/java/org/apache/bookkeeper/test/BookieClientTest.java \
 %{name}-server/src/test/java/org/apache/bookkeeper/test/ConcurrentLedgerTest.java \
 %{name}-server/src/test/java/org/apache/bookkeeper/bookie/EntryLogTest.java \
 %{name}-server/src/test/java/org/apache/bookkeeper/bookie/LedgerCacheTest.java
# java.io.IOException: No space left on device
rm -r %{name}-server/src/test/java/org/apache/bookkeeper/bookie/CreateNewLogTest.java \
 %{name}-server/src/test/java/org/apache/bookkeeper/bookie/BookieJournalTest.java \
 %{name}-server/src/test/java/org/apache/bookkeeper/bookie/IndexPersistenceMgrTest.java

%mvn_package :compat-deps __noinstall
%mvn_package :bookkeeper-server-compat400 __noinstall
%mvn_package :bookkeeper-server-compat410 __noinstall
%mvn_package :bookkeeper-server-compat420 __noinstall
%mvn_package :hedwig-server-compat400 __noinstall
%mvn_package :hedwig-server-compat410 __noinstall
%mvn_package :hedwig-server-compat420 __noinstall
%endif

%build

# Test skipped for unavailable test deps: bookkeeper-server-compat* hedwig-server-compat*
%if %{without test}
opts="-f"
%endif
%mvn_build -s $opts -- -Pprotobuf,codahale-metrics-provider

%if %{with libhedwig}
pushd hedwig-client/src/main/cpp
rm -rf autom4te.cache
libtoolize
autoreconf -fi
%configure --disable-static --disable-rpath
# thanks to Björn Esser get rid of unused-shlib-dep
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
# Remove rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%{__make} %{?_smp_mflags}
popd
%endif

%install
%mvn_install

%if %{with libhedwig}
pushd hedwig-client/src/main/cpp
%{__make} install DESTDIR=%{buildroot}
popd

find %{buildroot} -name '*.la' -exec rm -f {} ';'

%post -n libhedwig -p /sbin/ldconfig
%postun -n libhedwig -p /sbin/ldconfig

%files -n libhedwig
%{_libdir}/libhedwig*.so.*
%doc hedwig-client/src/main/cpp/README
%license LICENSE NOTICE

%files -n libhedwig-devel
%{_includedir}/hedwig-*/
%{_libdir}/libhedwig*.so
%{_libdir}/pkgconfig/hedwig-*.pc
%endif

%if %{with hadoop}
%files benchmark -f .mfiles-%{name}-benchmark
%endif

%files parent -f .mfiles-%{name}
%license LICENSE NOTICE

%files codahale-metrics-provider -f .mfiles-codahale-metrics-provider

%files hedwig-client -f .mfiles-hedwig-client
%files hedwig-client-jms -f .mfiles-hedwig-client-jms
%files hedwig-protocol -f .mfiles-hedwig-protocol
%license LICENSE NOTICE

%files hedwig-server -f .mfiles-hedwig-server
%files server -f .mfiles-%{name}-server

%files stats-api -f .mfiles-%{name}-stats-api
%doc CHANGES.txt README
%license LICENSE NOTICE

%files stats-providers -f .mfiles-%{name}-stats-providers

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12142 |21mr|boost-1.74.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	libname %mklibname boost %{version}
%define	libnamedevel %mklibname boost -d
%define	libnamestaticdevel %mklibname boost -d -s
%define coredevel %mklibname boost-core -d

# --no-undefined breaks build of CMakeified Boost.{Chrono,Locale,Timer}.
# Without --no-undefined, corresponding libraries lose their dependency on Boost.System.
# This is totally wrong, but it's rather a CMake'ification bug.
%define _disable_ld_no_undefined 1
%define _disable_lto 1
# Doesn't work with dual python2/python3 bits
%define _python_bytecompile_build 0

# (tpg) save 50 MiB
%bcond_with docs

%define beta %{nil}
%define packver %(echo "%{version}" | sed -e "s/\\\./_/g")
%ifarch %{ix86} %{arm} %{e2k} %{riscv}
%bcond_with	numpy
%else
%bcond_without	numpy
%endif

Summary:	Portable C++ libraries
Name:		boost
Version:	1.74.0
%if "%{beta}" != ""
Release:	0.%{beta}.1
Source0:	https://dl.bintray.com/boostorg/beta/%{version}.%(echo %{beta} |sed -e 's,^b,beta.,')/source/boost_%{packver}_%{beta}.tar.bz2
%else
Release:	4
Source0:    https://boostorg.jfrog.io/artifactory/main/release/%{version}/source/boost_%{packver}.tar.bz2
%endif
License:	Boost
Group:		Development/C++
Url:		http://boost.org/
Source100:	%{name}.rpmlintrc

# https://svn.boost.org/trac/boost/ticket/6150
Patch4:		boost-1.50.0-fix-non-utf8-files.patch

# Add a manual page for the sole executable, namely bjam, based on the
# on-line documentation:
# http://www.boost.org/boost-build2/doc/html/bbv2/overview.html
Patch5:		boost-1.48.0-add-bjam-man-page.patch

# https://bugzilla.redhat.com/show_bug.cgi?id=756005
# https://svn.boost.org/trac/boost/ticket/6131
Patch7:		boost-1.50.0-foreach.patch

# https://bugzilla.redhat.com/show_bug.cgi?id=783660
# https://svn.boost.org/trac/boost/ticket/6459 fixed
Patch10:	boost-1.50.0-long-double-1.patch

# https://bugzilla.redhat.com/show_bug.cgi?id=784654
Patch12:	boost-1.50.0-polygon.patch

# https://bugzilla.redhat.com/show_bug.cgi?id=828856
# https://bugzilla.redhat.com/show_bug.cgi?id=828857
Patch15:	boost-1.50.0-pool.patch

Patch17:	boost-1.57.0-python-libpython_dep.patch
Patch18:	boost-1.57.0-python-abi_letters.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1190039
Patch19:	boost-1.57.0-build-optflags.patch
#Patch21:	boost-unrecognized-option.patch

BuildRequires:	doxygen
BuildRequires:	xsltproc
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(icu-uc) >= 60.1
BuildRequires:	pkgconfig(python3)
%if %{with numpy}
BuildRequires:	python3-numpy-devel
%endif
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(bzip2)
#BuildRequires:	openmpi-devel
%if !%{with docs}
Obsoletes:	%{libnamedevel}-doc <= %{EVRD}
%endif

%description
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains only the shared libraries
needed for running programs using Boost.

# build section Taken from the Fedora .src.rpm.
%package build
Summary: Cross platform build system for C++ projects
Group: Development/C++
# boost-jam used to be maintained separately. It's now part of boost-build.
# Last separately maintained (and versioned) boost-jam was 3.1.18-11
# (which outnumbers boost versioning, so let's kill any boost-jam without Epoch)
Obsoletes: boost-jam < 1:0.0.0-0

%description build
Boost.Build is an easy way to build C++ projects, everywhere. You name
your pieces of executable and libraries and list their sources.  Boost.Build
takes care about compiling your sources with the right options,
creating static and shared libraries, making pieces of executable, and other
chores -- whether you're using GCC, MSVC, or a dozen more supported
C++ compilers -- on Windows, OSX, Linux and commercial UNIX systems.

%define boostbinlibs chrono context contract coroutine date_time fiber filesystem graph iostreams locale log math prg_exec_monitor program_options random regex serialization system thread timer type_erasure unit_test_framework wave wserialization atomic container stacktrace_addr2line stacktrace_basic stacktrace_noop nowide

# (Anssi 01/2010) dashes are converted to underscores for macros ($lib2);
# The sed script adds _ when library name ends in number.
%{expand:%(for lib in %boostbinlibs; do lib2=${lib/-/_}; cat <<EOF
%%global libname$lib2 %%mklibname boost_$(echo $lib | sed 's,[0-9]$,&_,') %{version}
%%global old69name$lib2 %%mklibname boost_$(echo $lib | sed 's,[0-9]$,&_,') 1.69.0
%%global old70name$lib2 %%mklibname boost_$(echo $lib | sed 's,[0-9]$,&_,') 1.70.0
%%global old71name$lib2 %%mklibname boost_$(echo $lib | sed 's,[0-9]$,&_,') 1.71.0
%%global old72name$lib2 %%mklibname boost_$(echo $lib | sed 's,[0-9]$,&_,') 1.72.0
%%package -n %%{libname$lib2}
Summary:	Boost $lib shared library
# no one should require this, but provided anyway for maximum compatibility:
Provides:	boost = %{EVRD}
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	boost-filesystem = %{EVRD}
Group:		System/Libraries
Obsoletes:	%%{old69name$lib2} < %{EVRD}
Obsoletes:	%%{old70name$lib2} < %{EVRD}
Obsoletes:	%%{old71name$lib2} < %{EVRD}
Obsoletes:	%%{old72name$lib2} < %{EVRD}
EOF
done)}
# (Anssi 01/2010) splitted expand contents due to rpm bug failing build,
# triggered by a too long expanded string.
%{expand:%(for lib in %boostbinlibs; do lib2=${lib/-/_}; cat <<EOF
%%description -n %%{libname$lib2}
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains the shared library needed for
running programs dynamically linked against Boost $lib.
EOF
done)}
%{expand:%(for lib in %boostbinlibs; do lib2=${lib/-/_}; cat <<EOF
%%files -n %%{libname$lib2}
%%doc LICENSE_1_0.txt
%{_libdir}/libboost_$lib*.so.%(echo %{version} |cut -d. -f1)*
EOF
done)}

%{expand:%(for lib in %boostbinlibs; do lib2=${lib/-/_}; cat <<EOF
%%global devname$lib2 %%mklibname -d boost_$lib
%%package -n %%{devname$lib2}
Summary:	Development files for Boost $lib
Group:		Development/C++
Provides:	boost-$lib-devel = %{EVRD}
Requires:	%{libname$lib2} = %{EVRD}
Requires:	%{coredevel} = %{EVRD}
EOF
done)}
# (Anssi 01/2010) splitted expand contents due to rpm bug failing build,
# triggered by a too long expanded string.
%{expand:%(for lib in %boostbinlibs; do lib2=${lib/-/_}; cat <<EOF
%%description -n %%{devname$lib2}
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains the shared library needed for
running programs dynamically linked against Boost $lib.
EOF
done)}
%{expand:%(for lib in %boostbinlibs; do lib2=${lib/-/_}; cat <<EOF
%%files -n %%{devname$lib2}
%optional %{_libdir}/libboost_$lib*.so
%optional %{_includedir}/boost/$lib
%optional %{_includedir}/boost/$lib.h
%optional %{_includedir}/boost/$lib.hpp
%optional %{_includedir}/boost/${lib}_fwd.hpp
%optional %{_includedir}/boost/${lib}_macro.hpp
%if "$lib2" == "unit_test_framework"
%{_includedir}/boost/test
%{_libdir}/cmake/boost_test_exec_monitor-%{version}
%endif
%optional %{_libdir}/cmake/boost_$lib-%{version}
%optional %{_libdir}/cmake/boost_${lib}_*-%{version}
%if "$lib2" == "stacktrace_basic"
%{_libdir}/cmake/boost_stacktrace_backtrace*-%{version}
%{_libdir}/cmake/boost_stacktrace_windbg*-%{version}
%endif
EOF
done)}

# There's no difference between develonly and develonly2. Just had to split
# them up because there's a limit on how big a %%expand-ed statement
# can get.
%define develonly accumulators algorithm archive asio assign attributes bimap bind circular_buffer compute convert dll dynamic_bitset exception flyweight format function functional fusion geometry hana integer lexical_cast metaparse mpi mpl msm multi_array multi_index multiprecision optional parameter phoenix poly_collection predef preprocessor process range ratio signals2 smart_ptr spirit stacktrace stl_interfaces tr1 tti tuple type_traits units unordered utility uuid variant variant2 vmd xpressive
%define develonly2 align beast callable_traits container_hash core gil hof leaf mp11 pfr qvm type_index sort endian coroutine2 winapi yap safe_numerics histogram outcome static_string

%{expand:%(for lib in %develonly; do lib2=${lib/-/_}; cat <<EOF
%%global devname$lib2 %%mklibname -d boost_$lib
%%package -n %%{devname$lib2}
Summary:	Development files for Boost $lib
Group:		Development/C++
Provides:	boost-$lib-devel = %{EVRD}
Requires:	%{coredevel} = %{EVRD}
EOF
done)}
%{expand:%(for lib in %develonly; do lib2=${lib/-/_}; cat <<EOF
%%description -n %%{devname$lib2}
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains the shared library needed for
running programs dynamically linked against Boost $lib.
EOF
done)}
%{expand:%(for lib in %develonly; do lib2=${lib/-/_}; cat <<EOF
%%files -n %%{devname$lib2}
%optional %{_includedir}/boost/$lib
%optional %{_includedir}/boost/$lib.h
%optional %{_includedir}/boost/$lib.hpp
%optional %{_includedir}/boost/${lib}_fwd.hpp
%optional %{_includedir}/boost/${lib}_macro.hpp
%if "$lib" == "unordered"
%{_includedir}/boost/unordered_map.hpp
%{_includedir}/boost/unordered_set.hpp
%endif
%optional %{_libdir}/cmake/boost_$lib-%{version}
EOF
done)}

%{expand:%(for lib in %develonly2; do lib2=${lib/-/_}; cat <<EOF
%%global devname$lib2 %%mklibname -d boost_$lib
%%package -n %%{devname$lib2}
Summary:	Development files for Boost $lib
Group:		Development/C++
Provides:	boost-$lib-devel = %{EVRD}
Requires:	%{coredevel} = %{EVRD}
EOF
done)}
# (Anssi 01/2010) splitted expand contents due to rpm bug failing build,
# triggered by a too long expanded string.
%{expand:%(for lib in %develonly2; do lib2=${lib/-/_}; cat <<EOF
%%description -n %%{devname$lib2}
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains the shared library needed for
running programs dynamically linked against Boost $lib.
EOF
done)}
%{expand:%(for lib in %develonly2; do lib2=${lib/-/_}; cat <<EOF
%%files -n %%{devname$lib2}
%optional %{_includedir}/boost/$lib
%optional %{_includedir}/boost/$lib.h
%optional %{_includedir}/boost/$lib.hpp
%optional %{_includedir}/boost/${lib}_fwd.hpp
%optional %{_libdir}/cmake/boost_$lib-%{version}
EOF
done)}

%global libnamepython3 %mklibname boost_python38 %{version}
%global devnamepython3 %mklibname -d boost_python38
%global oldlibnamepython3 %mklibname boost_python37 1.71.0
%global olddevnamepython3 %mklibname -d boost_python37

%package -n %{libnamepython3}
Summary:	Boost Python 3 shared library
Group:		System/Libraries
Provides:	boost-python = %{EVRD}
Provides:	boost-python3 = %{EVRD}
Obsoletes:	%{oldlibnamepython3} < %{EVRD}

%description -n %{libnamepython3}
Boost Python 3 shared library

%files -n %{libnamepython3}
%{_libdir}/libboost_python38.so.%(echo %{version} |cut -d. -f1)*

%package -n %{devnamepython3}
Summary:	Development files for the Boost Python 3 library
Group:		Development/C++
Requires:	python >= 3.0
Provides:	boost-python38-devel = %{EVRD}
Provides:	boost-python3-devel = %{EVRD}
Provides:	boost-python-devel = %{EVRD}
Obsoletes:	%{olddevnamepython3} < %{EVRD}
Requires:	%{coredevel} = %{EVRD}
Requires:	%{libnamepython3} = %{EVRD}

%description -n %{devnamepython3}
Development files for the Boost Python 3 library

%files -n %{devnamepython3}
%{_includedir}/boost/python
%{_includedir}/boost/python.hpp
%{_libdir}/libboost_python3*.so
%{_libdir}/cmake/boost_python-%{version}

%if %{with numpy}
# Numpy's python 2.x support has been discontinued -- no more numpy27
%global libnamenumpy3 %mklibname boost_numpy38 %{version}
%global devnamenumpy3 %mklibname -d boost_numpy38
%global oldlibnamenumpy3 %mklibname boost_numpy37 1.71.0
%global olddevnamenumpy3 %mklibname -d boost_numpy37

%package -n %{libnamenumpy3}
Summary:	Boost NumPy 3 shared library
Group:		System/Libraries
Provides:	boost-numpy = %{EVRD}
Provides:	boost-numpy3 = %{EVRD}
Obsoletes:	%{oldlibnamenumpy3} < %{EVRD}

%description -n %{libnamenumpy3}
Boost NumPy 3 shared library

%files -n %{libnamenumpy3}
%{_libdir}/libboost_numpy38.so.%(echo %{version} |cut -d. -f1)*

%package -n %{devnamenumpy3}
Summary:	Development files for the Boost NumPy 3 library
Group:		Development/C++
Requires:	python >= 3.0
Provides:	boost-numpy38-devel = %{EVRD}
Provides:	boost-numpy3-devel = %{EVRD}
Provides:	boost-numpy-devel = %{EVRD}
Obsoletes:	%{olddevnamenumpy3} < %{EVRD}
Requires:	%{coredevel} = %{EVRD}

%description -n %{devnamenumpy3}
Development files for the Boost NumPy 3 library

%files -n %{devnamenumpy3}
%{_libdir}/libboost_numpy3*.so
%{_libdir}/cmake/boost_numpy-%{version}
%endif

%package -n	%{coredevel}
Summary:	Core development files needed by all or most Boost components
Group:		Development/C++

%description -n	%{coredevel}
Core development files needed by all or most Boost components

%package -n	%{libnamedevel}
Summary:	The libraries and headers needed for Boost development
Group:		Development/C++
Requires:	%{expand:%(for lib in %boostbinlibs %develonly %develonly2; do echo -n "%%{devname${lib/-/_}} = %{version}-%{release} "; done)}
Requires:	%{devnamepython3} = %{EVRD}
Requires:	%{coredevel} = %{EVRD}
Obsoletes:	%{mklibname boost 1}-devel < %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n	%{libnamedevel}
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains headers and shared library
symlinks needed for Boost development.

%if %{with docs}
%package -n	%{libnamedevel}-doc
Summary:	The libraries and headers needed for Boost development
Group:	Development/C++
Conflicts:	libboost-devel < 1.41.0
Conflicts:	lib64boost-devel < 1.41.0
Obsoletes:	libboost-devel-doc < 1.48.0-2
Obsoletes:	lib64boost-devel-doc < 1.48.0-2
BuildArch:	noarch

%description -n  %{libnamedevel}-doc
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains documentation needed for Boost
development.
%endif

%package -n	%{libnamestaticdevel}
Summary:	Static libraries for Boost development
Group:		Development/C++
Requires:	%{libnamedevel} = %{EVRD}
Obsoletes:	%{mklibname boost 1}-static-devel < %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n	%{libnamestaticdevel}
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains only the static libraries
needed for Boost development.

%package 	examples
Summary:	The examples for the Boost libraries
Group:		Development/C++
#BuildArch:	noarch

%description examples
Boost is a collection of free peer-reviewed portable C++ source
libraries. The emphasis is on libraries which work well with the C++
Standard Library. This package contains examples, installed in the
same place as the documentation.

%prep
%autosetup -p1 -n boost_%{packver}
# Examples etc. get copied -- so drop patch backup files
find . -name "*~" -delete
%if !%{with numpy}
# Boost.Build does not allow for disabling of numpy
# extensions, thereby leading to automagic numpy
# https://github.com/boostorg/python/issues/111#issuecomment-280447482
sed -e 's/\[ unless \[ python\.numpy \] : <build>no \]/<build>no/g' -i libs/python/build/Jamfile
%endif

# Preparing the docs
mkdir packagedoc
find -type f -not -path '*packagedoc*' \( -name '*.html' -o -name '*.htm' -o -name '*.css' -o -name '*.gif' -o -name '*.jpg' -o -name '*.png' -o -name '*README*' \) -exec cp --parents {} packagedoc/ \;
find packagedoc -type d -exec chmod +rx {} \;

# Preparing the examples: All .hpp or .cpp files that are not in
# directories called test, src, or tools, as well as all files of any
# type in directories called example or examples.
mkdir examples
find libs -type f \( -name "*.?pp" ! -path "*test*" ! -path "*src*" ! -path "*tools*" -o -path "*example*" \) -exec cp --parents {} examples/ \;
find examples -type d -exec chmod +rx {} \;
# http://www.linuxfromscratch.org/blfs/view/svn/general/boost.html
# http://osdir.com/ml/blfs-dev/2014-11/msg00142.html
# this fixed needed for kdepim4 and qt-gstreamer
sed -e '1 i#ifndef Q_MOC_RUN' -e '$ a#endif' -i boost/type_traits/detail/has_binary_operator.hpp
#sed -i 's!-m64!!g' tools/build/src/tools/gcc.jam

%build

cat > ./tools/build/src/user-config.jam << EOF
%ifarch %{armx} %{ix86} %{x86_64}
using gcc : : : <compileflags>"%{optflags} -O3 -fno-strict-aliasing" <cxxflags>"-std=c++14 -fPIC" <linkflags>"%{ldflags}" ;
%endif
%ifarch %{e2k}
using gcc : : : <compileflags>"%{optflags} -O3 -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT=1 -fno-strict-aliasing" <cxxflags>"-std=c++14 -fPIC" <linkflags>"%{ldflags}" ;
%endif
using python : %{py3_ver} : %{__python3} : %{py3_incdir} : %{_libdir} : : : ;
EOF

./bootstrap.sh --with-toolset=gcc --with-icu --prefix=%{_prefix} --libdir=%{_libdir} --with-python=%{__python3}

# And python 3...
./b2 -d+2 -q %{?_smp_mflags} --without-mpi \
	--prefix=%{_prefix} --libdir=%{_libdir} --layout=system \
	-sHAVE_ICU=1 \
	linkflags="%{ldflags} -lstdc++ -lm" \
%ifarch %ix86
	instruction-set=i686 \
%endif
%ifarch znver1
	instruction-set=znver1 \
%endif
	threading=multi debug-symbols=on pch=off variant=release python=%{py3_ver}


# Taken from the Fedora .src.rpm.
echo ============================= build Boost.Build ==================
(cd tools/build/
 ./bootstrap.sh --with-toolset=gcc)

%install
./b2 -d+2 -q %{?_smp_mflags} --without-mpi \
	--prefix=%{buildroot}%{_prefix} --libdir=%{buildroot}%{_libdir} \
	debug-symbols=on pch=off python=%{py3_ver} \
	install

echo ============================= install Boost.Build ==================
(cd tools/build/
 ./b2 --prefix=%{buildroot}%{_prefix} install
 # Fix some permissions
 chmod +x %{buildroot}%{_datadir}/boost-build/src/tools/doxproc.py
 mkdir -p %{buildroot}%{_mandir}/man1
 cp -a v2/doc/bjam.1 %{buildroot}%{_mandir}/man1/
 # Not a real file
 rm -f %{buildroot}%{_datadir}/boost-build/build/project.ann.py
 # Empty file
 rm -f %{buildroot}%{_datadir}/boost-build/tools/doxygen/windows-paths-check.hpp
 # Let's symlink instead of shipping 2 copies of the same file
 ln -sf b2 %{buildroot}%{_bindir}/bjam
)

%if !%{with numpy}
rm -rf %{buildroot}/%{_libdir}/cmake/boost_numpy-%{version}/
%endif

%files -n %{coredevel}
%dir %{_includedir}/boost
%{_includedir}/boost/aligned_storage.hpp
%{_includedir}/boost/make_default.hpp
%{_includedir}/boost/any.hpp
%{_includedir}/boost/array.hpp
%{_includedir}/boost/assert.hpp
%{_includedir}/boost/assert
%{_includedir}/boost/blank.hpp
%{_includedir}/boost/cstdfloat.hpp
%{_includedir}/boost/make_unique.hpp
%{_includedir}/boost/polymorphic_cast.hpp
%{_includedir}/boost/polymorphic_pointer_cast.hpp
%{_includedir}/boost/blank_fwd.hpp
%{_includedir}/boost/call_traits.hpp
%{_includedir}/boost/cast.hpp
%{_includedir}/boost/cerrno.hpp
%{_includedir}/boost/checked_delete.hpp
%{_includedir}/boost/compatibility
%{_includedir}/boost/compressed_pair.hpp
%{_includedir}/boost/concept
%{_includedir}/boost/concept_archetype.hpp
%{_includedir}/boost/concept_check.hpp
%{_includedir}/boost/concept_check
%{_includedir}/boost/config.hpp
%{_includedir}/boost/config
%{_includedir}/boost/crc.hpp
%{_includedir}/boost/cregex.hpp
%{_includedir}/boost/cstdint.hpp
%{_includedir}/boost/cstdlib.hpp
%{_includedir}/boost/current_function.hpp
%{_includedir}/boost/cxx11_char_types.hpp
%{_includedir}/boost/detail
%{_includedir}/boost/enable_shared_from_this.hpp
%{_includedir}/boost/exception_ptr.hpp
%{_includedir}/boost/foreach.hpp
%{_includedir}/boost/foreach_fwd.hpp
%{_includedir}/boost/function_equal.hpp
%{_includedir}/boost/function_output_iterator.hpp
%{_includedir}/boost/function_types
%{_includedir}/boost/generator_iterator.hpp
%{_includedir}/boost/get_pointer.hpp
%{_includedir}/boost/heap
%{_includedir}/boost/icl
%{_includedir}/boost/implicit_cast.hpp
%{_includedir}/boost/indirect_reference.hpp
%{_includedir}/boost/integer_traits.hpp
%{_includedir}/boost/interprocess
%{_includedir}/boost/intrusive
%{_includedir}/boost/intrusive_ptr.hpp
%{_includedir}/boost/io
%{_includedir}/boost/io_fwd.hpp
%{_includedir}/boost/is_placeholder.hpp
%{_includedir}/boost/iterator.hpp
%{_includedir}/boost/iterator
%{_includedir}/boost/iterator_adaptors.hpp
%{_includedir}/boost/lambda
%{_includedir}/boost/limits.hpp
%{_includedir}/boost/local_function.hpp
%{_includedir}/boost/local_function
%{_includedir}/boost/lockfree
%{_includedir}/boost/logic
%{_includedir}/boost/make_shared.hpp
%{_includedir}/boost/mem_fn.hpp
%{_includedir}/boost/memory_order.hpp
%{_includedir}/boost/move
%{_includedir}/boost/multi_index_container.hpp
%{_includedir}/boost/multi_index_container_fwd.hpp
%{_includedir}/boost/next_prior.hpp
%{_includedir}/boost/non_type.hpp
%{_includedir}/boost/noncopyable.hpp
%{_includedir}/boost/nondet_random.hpp
%{_includedir}/boost/none.hpp
%{_includedir}/boost/none_t.hpp
%{_includedir}/boost/numeric
%{_includedir}/boost/operators.hpp
%{_includedir}/boost/operators_v1.hpp
%{_includedir}/boost/pending
%{_includedir}/boost/pointee.hpp
%{_includedir}/boost/pointer_cast.hpp
%{_includedir}/boost/pointer_to_other.hpp
%{_includedir}/boost/polygon
%{_includedir}/boost/pool
%{_includedir}/boost/progress.hpp
%{_includedir}/boost/property_map
%{_includedir}/boost/property_tree
%{_includedir}/boost/proto
%{_includedir}/boost/ptr_container
%{_includedir}/boost/rational.hpp
%{_includedir}/boost/ref.hpp
%{_includedir}/boost/scope_exit.hpp
%{_includedir}/boost/scoped_array.hpp
%{_includedir}/boost/scoped_ptr.hpp
%{_includedir}/boost/shared_array.hpp
%{_includedir}/boost/shared_container_iterator.hpp
%{_includedir}/boost/shared_ptr.hpp
%{_includedir}/boost/statechart
%{_includedir}/boost/static_assert.hpp
%{_includedir}/boost/swap.hpp
%{_includedir}/boost/throw_exception.hpp
%{_includedir}/boost/token_functions.hpp
%{_includedir}/boost/token_iterator.hpp
%{_includedir}/boost/tokenizer.hpp
%{_includedir}/boost/type.hpp
%{_includedir}/boost/typeof
%{_includedir}/boost/version.hpp
%{_includedir}/boost/visit_each.hpp
%{_includedir}/boost/weak_ptr.hpp
%{_libdir}/cmake/Boost-%{version}
%{_libdir}/cmake/BoostDetectToolset-%{version}.cmake
%{_libdir}/cmake/boost_headers-%{version}

%files -n %{libnamedevel}

%if %{with docs}
%files -n %{libnamedevel}-doc
%doc packagedoc/*
%endif

%files -n %{libnamestaticdevel}
%{_libdir}/libboost_*.a

%files examples
%doc examples/*

%files build
%doc LICENSE_1_0.txt
%{_bindir}/bjam
%{_bindir}/b2
%{_datadir}/boost-build/
%{_mandir}/man1/bjam.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12143 |21mr|bootloader-utils-1.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Small utils needed for the kernel
Name:		bootloader-utils
Version:	1.16
Release:	2
License:	GPLv1+
Group:		System/Kernel and hardware
Url:		http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/bootloader-utils/
Source0:	%{name}-%{version}.tar.xz
Patch0:		bootloader-utils.initrdsymlink.patch
BuildRequires:	perl-MDK-Common
Requires:	drakxtools-backend >= 10-52
Requires:	perl-base
# Likely not needed
Requires(post,preun):	chkconfig
Requires(post,preun):	initscripts
Requires(post,preun):	rpm-helper
BuildArch:	noarch

%description
Utilities needed to install/remove a kernel. Also for updating
bootloaders.

%files
%config(noreplace) /etc/sysconfig/installkernel
/sbin/installkernel
/sbin/kernel_remove_initrd
%{_sbindir}/detectloader
%{_sbindir}/rebootin
%{_mandir}/man8/detectloader.*
%{_mandir}/man8/rebootin.*

%pre
# disable obsolete kheader script on update if it exists
if [ $1 = 2 ]; then
    if [ -x /etc/rc.d/init.d/kheader ]; then
	chkconfig --del kheader
    fi
fi


#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
make

%install
make ROOT=%{buildroot} mandir=%{_mandir} install
# nuke obsolete kheader initscript
rm -rf %{buildroot}/etc/rc.d/init.d/kheader

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12144 |21mr|bootparamd-0.17-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	A server process which provides boot information to diskless clients
Name:		bootparamd
Version:	0.17
Release:	31
License:	BSD
Group:		System/Servers
Url:		ftp://sunsite.unc.edu/pub/Linux/system/network/netkit
Source0:	ftp://sunsite.unc.edu/pub/Linux/system/network/netkit/netkit-bootparamd-%{version}.tar.gz
Source1:	bootparamd.init
Patch0:		netkit-bootparamd-0.17_rpc_get_myaddress.patch
BuildRequires:	pkgconfig(libtirpc)
Requires(post,preun):	rpm-helper
Requires:	rpcbind

%description
The bootparamd process provides bootparamd, a server process which
provides the information needed by diskless clients in order for them
to successfully boot.  Bootparamd looks first in /etc/bootparams for an
entry for that particular client; if a local bootparams file doesn't
exist, it looks at the appropriate Network Information Service (NIS)
map.  Some network boot loaders (notably Sun's) rely on special boot
server code on the server, in addition to the rarp and tftp servers.
This bootparamd server process is compatible with SunOS bootparam clients
and servers which need that boot server code.

You should install bootparamd if you need to provide boot information to
diskless clients on your network.

%files
%{_sbindir}/rpc.bootparamd
%{_bindir}/callbootd
%{_mandir}/man8/*
%config(noreplace) %{_sysconfdir}/rc.d/init.d/bootparamd

%post
%_post_service bootparamd

%preun
%_preun_service bootparamd

#----------------------------------------------------------------------------

%prep
%setup -qn netkit-bootparamd-%{version}
%apply_patches

%build
%serverbuild
./configure --prefix=%{_prefix}
sed -i -e '
	s,^CC=*.$,CC=cc,;
	s,-O2,\$(RPM_OPT_FLAGS) -D_BSD_SOURCE,;
	s,^BINDIR=.*$,BINDIR=%{_bindir},;
	s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
	s,^MANDIR=.*$,MANDIR=%{_mandir},;
	' MCONFIG
%make LIBS="-ltirpc"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man{1,5,8}
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
make INSTALLROOT=%{buildroot} install
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/bootparamd

cd %{buildroot}%{_mandir}/man8
ln -s rpc.bootparamd.8.bz2 %{buildroot}%{_mandir}/man8/bootparamd.8.bz2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12145 |21mr|bootsplash-3.3.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scripts to handle ROSA themeing
Name:		bootsplash
Version:	3.3.3
Release:	15
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/bootsplash/
# From Mandriva SVN
Source0:	%{name}-%{version}.tar.bz2
Requires:	initscripts
Requires:	perl-base
Requires:	perl-Archive-Cpio
Requires:	plymouth-scripts
#Recommends:	drakx-kbd-mouse-x11
BuildArch:	noarch

%description
This package contains the scripts necessary to install and change the theme
used by ROSA (at boot time and in desktop sessions).

%files
%doc README ChangeLog
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/scripts

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make LIB=%{_lib}

%install
make install prefix=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12146 |21mr|bouncycastle-1.63-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag r1rv63
%global classname org.bouncycastle.jce.provider.BouncyCastleProvider

Summary:          Bouncy Castle Cryptography APIs for Java
Name:             bouncycastle
Version:          1.63
Release:          2
License:          MIT
Group:          Development/Java
URL:              http://www.bouncycastle.org

Source0:          https://github.com/bcgit/bc-java/archive/%{gittag}.tar.gz

# POMs from Maven Central
Source1:          http://repo1.maven.org/maven2/org/bouncycastle/bcprov-jdk15on/%{version}/bcprov-jdk15on-%{version}.pom
Source2:          http://repo1.maven.org/maven2/org/bouncycastle/bcpkix-jdk15on/%{version}/bcpkix-jdk15on-%{version}.pom
Source3:          http://repo1.maven.org/maven2/org/bouncycastle/bcpg-jdk15on/%{version}/bcpg-jdk15on-%{version}.pom
Source4:          http://repo1.maven.org/maven2/org/bouncycastle/bcmail-jdk15on/%{version}/bcmail-jdk15on-%{version}.pom
Source5:          http://repo1.maven.org/maven2/org/bouncycastle/bctls-jdk15on/%{version}/bctls-jdk15on-%{version}.pom

# Script to fetch POMs from Maven Central
Source6:          get-poms.sh

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    aqute-bnd
BuildRequires:    ant
BuildRequires:    ant-junit
BuildRequires:    javamail
BuildRequires:    javapackages-local

Requires(post):   javapackages-filesystem
Requires(postun): javapackages-filesystem

Provides:         bcprov = %{version}-%{release}

%description
The Bouncy Castle Crypto package is a Java implementation of cryptographic
algorithms. This jar contains JCE provider and lightweight API for the
Bouncy Castle Cryptography APIs for JDK 1.5 to JDK 1.8.

%package pkix
Summary: Bouncy Castle PKIX, CMS, EAC, TSP, PKCS, OCSP, CMP, and CRMF APIs

%description pkix
The Bouncy Castle Java APIs for CMS, PKCS, EAC, TSP, CMP, CRMF, OCSP, and
certificate generation. This jar contains APIs for JDK 1.5 to JDK 1.8. The
APIs can be used in conjunction with a JCE/JCA provider such as the one
provided with the Bouncy Castle Cryptography APIs.

%package pg
Summary: Bouncy Castle OpenPGP API

%description pg
The Bouncy Castle Java API for handling the OpenPGP protocol. This jar
contains the OpenPGP API for JDK 1.5 to JDK 1.8. The APIs can be used in
conjunction with a JCE/JCA provider such as the one provided with the
Bouncy Castle Cryptography APIs.

%package mail
Summary: Bouncy Castle S/MIME API

%description mail
The Bouncy Castle Java S/MIME APIs for handling S/MIME protocols. This jar
contains S/MIME APIs for JDK 1.5 to JDK 1.8. The APIs can be used in
conjunction with a JCE/JCA provider such as the one provided with the Bouncy
Castle Cryptography APIs. The JavaMail API and the Java activation framework
will also be needed.

%package tls
Summary: Bouncy Castle JSSE provider and TLS/DTLS API

%description tls
The Bouncy Castle Java APIs for TLS and DTLS, including a provider for the
JSSE.

%package javadoc
Summary: Javadoc for %{name}
Provides:  %{name}-pkix-javadoc = %{version}-%{release}
Obsoletes: %{name}-pkix-javadoc < %{version}-%{release}
Provides:  %{name}-pg-javadoc = %{version}-%{release}
Obsoletes: %{name}-pg-javadoc < %{version}-%{release}
Provides:  %{name}-mail-javadoc = %{version}-%{release}
Obsoletes: %{name}-mail-javadoc < %{version}-%{release}

%description javadoc
API documentation for the Bouncy Castle Cryptography APIs.

%prep
%setup -q -n bc-java-%{gittag}

# Remove provided binaries
find . -type f -name "*.class" -exec rm -f {} \;
find . -type f -name "*.jar" -exec rm -f {} \;

# Relax javadoc linting and set expected source encoding
sed -i -e '/<javadoc/aadditionalparam="-Xdoclint:none" encoding="UTF-8"' \
       -e '/<javac/aencoding="UTF-8"' ant/bc+-build.xml

cp -p %{SOURCE1} bcprov.pom
cp -p %{SOURCE2} bcpkix.pom
cp -p %{SOURCE3} bcpg.pom
cp -p %{SOURCE4} bcmail.pom
cp -p %{SOURCE5} bctls.pom

%build
ant -f ant/jdk15+.xml \
  -Djunit.jar.home=$(build-classpath junit) \
  -Dmail.jar.home=$(build-classpath javax.mail) \
  -Dactivation.jar.home= \
  -Drelease.debug=true \
  clean build-provider build #test

cat > bnd.bnd <<EOF
-classpath=bcprov.jar,bcpkix.jar,bcpg.jar,bcmail.jar,bctls.jar
Export-Package: *;version=%{version}
EOF

for bc in bcprov bcpkix bcpg bcmail bctls ; do
  # Make into OSGi bundle
  bnd wrap -b $bc -v %{version} -p bnd.bnd -o $bc.jar build/artifacts/jdk1.5/jars/$bc-jdk15on-*.jar

  # Request Maven installation
  %mvn_file ":$bc-jdk15on" $bc
  %mvn_package ":$bc-jdk15on" $bc
  %mvn_alias ":$bc-jdk15on" "org.bouncycastle:$bc-jdk16" "org.bouncycastle:$bc-jdk15"
  %mvn_artifact $bc.pom $bc.jar
done

# Not shipping the "lcrypto" jar, so don't ship the javadoc for it
rm -rf build/artifacts/jdk1.5/javadoc/lcrypto

%install
install -dm 755 $RPM_BUILD_ROOT%{_sysconfdir}/java/security/security.d
touch $RPM_BUILD_ROOT%{_sysconfdir}/java/security/security.d/2000-%{classname}

%mvn_install -J build/artifacts/jdk1.5/javadoc

%post
{
  # Rebuild the list of security providers in classpath.security
  suffix=security/classpath.security
  secfiles="/usr/lib/$suffix /usr/lib64/$suffix"

  for secfile in $secfiles
  do
    # check if this classpath.security file exists
    [ -f "$secfile" ] || continue

    sed -i '/^security\.provider\./d' "$secfile"

    count=0
    for provider in $(ls /etc/java/security/security.d)
    do
      count=$((count + 1))
      echo "security.provider.${count}=${provider#*-}" >> "$secfile"
    done
  done
} || :

%postun
if [ "$1" -eq 0 ] ; then

  {
    # Rebuild the list of security providers in classpath.security
    suffix=security/classpath.security
    secfiles="/usr/lib/$suffix /usr/lib64/$suffix"

    for secfile in $secfiles
    do
      # check if this classpath.security file exists
      [ -f "$secfile" ] || continue

      sed -i '/^security\.provider\./d' "$secfile"

      count=0
      for provider in $(ls /etc/java/security/security.d)
      do
        count=$((count + 1))
        echo "security.provider.${count}=${provider#*-}" >> "$secfile"
      done
    done
  } || :

fi

%files -f .mfiles-bcprov
%license build/artifacts/jdk1.5/bcprov-jdk15on-*/LICENSE.html
%doc core/docs/ *.html
%{_sysconfdir}/java/security/security.d/2000-%{classname}

%files pkix -f .mfiles-bcpkix
%license build/artifacts/jdk1.5/bcpkix-jdk15on-*/LICENSE.html

%files pg -f .mfiles-bcpg
%license build/artifacts/jdk1.5/bcpg-jdk15on-*/LICENSE.html

%files mail -f .mfiles-bcmail
%license build/artifacts/jdk1.5/bcmail-jdk15on-*/LICENSE.html

%files tls -f .mfiles-bctls
%license build/artifacts/jdk1.5/bctls-jdk15on-*/LICENSE.html

%files javadoc -f .mfiles-javadoc
%license LICENSE.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12147 |21mr|bovo-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Classic pen and paper game
Name:		bovo
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=bovo
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Bovo is a Gomoku like game for two players, where the opponents alternate in
placing their respective pictogram on the game board. (Also known as: Connect
Five, Five in a row, X and O, Naughts and Crosses)

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.bovo.desktop
%{_kde5_bindir}/bovo
%{_kde5_datadir}/bovo
%{_kde5_iconsdir}/hicolor/*/apps/bovo.*
%{_appdatadir}/org.kde.bovo.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12148 |21mr|box2d-2.4.1-3.git23c5d6.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define commit 23c5d60668dc84e731e1f700188df4e3aaa9b5f6
%define commit_short %(echo %{commit} | head -c6)

%define oname Box2D

Summary:	A 2D physics engine for games
Name:		box2d
Version:	2.4.1
Release:	3.git%{commit_short}.1
License:	MIT
Group:		System/Libraries
Url:		http://www.box2d.org
Source0:	https://github.com/erincatto/box2d/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	glui-devel
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)

%description
Box2D is a 2D rigid body simulation library for games. Programmers can use it
in their games to make objects move in believable ways and make the game world
more interactive. From the game's point of view a physics engine is just
a system for procedural animation.

Box2D is written in portable C++. Most of the types defined in the engine begin
with the b2 prefix. Hopefully this is sufficient to avoid name clashing with
your game engine.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	2D physics engine for games
Group:		System/Libraries

%description -n %{libname}
Box2D is a 2D rigid body simulation library for games. Programmers can use it
in their games to make objects move in believable ways and make the game world
more interactive. From the game's point of view a physics engine is just
a system for procedural animation.

Box2D is written in portable C++. Most of the types defined in the engine begin
with the b2 prefix. Hopefully this is sufficient to avoid name clashing with
your game engine.

%files -n %{libname}
%doc LICENSE *.md
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A 2D physics engine for games
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 2.3

%description  -n %{devname}
Box2D is a 2D rigid body simulation library for games. Programmers can use it
in their games to make objects move in believable ways and make the game world
more interactive. From the game's point of view a physics engine is just
a system for procedural animation.

Box2D is written in portable C++. Most of the types defined in the engine begin
with the b2 prefix. Hopefully this is sufficient to avoid name clashing with
your game engine.

%files  -n %{devname}
%{_defaultdocdir}/%{name}
%{_includedir}/%{name}/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}

%build
%cmake -DBOX2D_BUILD_DOCS=ON \
	-DBOX2D_BUILD_TESTBED=OFF \
	-DBOX2D_BUILD_UNIT_TESTS=OFF
%make

%install
%makeinstall_std -C build

# pc file
install -d %{buildroot}%{_libdir}/pkgconfig
cat << EOF > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
prefix=%{_prefix}
exec_prefix=\${prefix}
libdir=\${exec_prefix}/%{_lib}
includedir=\${prefix}/include

Name: Box2D
Description: 2D physics engine for games
Version: %{version}
Libs: -L\${libdir} -l%{name}
Cflags: -I\${includedir} -I\${includedir}/%{name}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12149 |21mr|branding-configs-2021.1-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0
# avoid OrderWithRequires from itself
%global __orderwithrequires_exclude basesystem

%define productURL 'https://www.rosa.ru'
%define rosa_platform 2021.1
%define rosa_platform_integer 202110
%define rosa_release_fresh 12.5.1
%define rosa_release_chrome 12.6

Summary:	Configs to change branding in one place
Name:		branding-configs
Version:	%{rosa_platform}
Release:	30
License:	GPL
Group:		System/Base
Url:		https://abf.io/import/branding-configs

Source0: branding-configs.rpmlintrc

# abf fetch
# c=1; find . -maxdepth 1 -type f | grep -vE '.abf.yml$|.spec$|BUILD' | sed -e 's,./,,' | sort -u | while read -r line ; do echo Source${c}: $line ; c=$((++c)); done
Source1: first_startup.tpl.html
Source2: fon.png
Source3: index_en.tpl.html
Source4: index_offline_en.tpl.html
Source5: index_offline_ru.tpl.html
Source6: index_ru.tpl.html
Source7: index.tpl.html
Source8: license_en_chrome.tpl.html
Source9: license_en_fresh.tpl.html
Source10: license_ru_chrome.tpl.html
Source11: license_ru_fresh.tpl.html
Source12: macros.platform
Source13: macros.product
Source14: release-notes-en.tpl.txt
Source15: logo.svg
Source101: CREDITS

BuildRequires:	lynx
BuildRequires:	locales-ru

%description
Quick and easy way to change distribution branding in one place.

#------------------------------------------------------------------

%package common
Summary:	Branding common files
Group:		System/Base
# cf mdvbz#32631
Provides:	arch(%{_target_cpu}) = %{EVRD}
Provides:	mandriva-release-common = %{EVRD}
Provides:	rosa-release-common = %{EVRD}
Provides:	distro-release-common = %{EVRD}
Provides:	distro-release-common%{_isa} = %{EVRD}
Conflicts:	distro-release-common < 2021.1-4
Obsoletes:	distro-release-common < 2021.1-4
Conflicts:	distro-release-rosa%{version} < 2021.1-4
Obsoletes:	distro-release-rosa%{version} < 2021.1-4

%description common
Common files for branding packages

%files common
%dir %{_datadir}/doc/HTML
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/images
%{_datadir}/%{name}/images/*.{png,svg}
%{_datadir}/%{name}/CREDITS
%dir %{_defaultlicensedir}/rosa-distro
%dir %{_sysconfdir}/branding-configs
# static symlinks to dynamic /etc/release
%{_sysconfdir}/rosa-release
%{_sysconfdir}/mandriva-release
%{_sysconfdir}/redhat-release
%{_sysconfdir}/distro-release
%{_sysconfdir}/system-release

#------------------------------------------------------------------

%package rpm-macros
Summary:	Platform-wide common RPM macros
Group:		System/Base
# Do not require "rpm" to avoid odd dependencies in super-minimal containers

%description rpm-macros
Platform-wide common RPM macros

%files rpm-macros
%{_rpmmacrodir}/macros.platform

#------------------------------------------------------------------

# -b: branch (fresh, chrome, nickel)
# -t: type (desktop, server, rootfs)
# -d: make this flavour be default ("Suggests")
# RPM macros are in a separate package, but /etc/issue, /etc/os-release
# are needed in all minimal installations, including the ones used for
# building packages. We make this provide here and
# "Suggests: branding-configs-default" in basesystem-minimal and rosa-repos-pkgprefs.
# https://fedoraproject.org/wiki/Packaging:WeakDependencies
# This allows to install any branding flavour, but default to a specific one if none are specified.
# -o: product name (e.g.: ROSA fresh Desktop R12), use with %%{quote:...}
# -f: obsolete and replace distro-release-* flavours (abf.io/import/distro-release-{red,res})
# -h: obsolete and replace branding-configs flavours
%define mk_flavour_subpackage(b:dt:o:f:h:) \
\
%{expand: \
# e.g.: branding-configs-fresh-desktop \
%package %{-b*}-%{-t*} \
Summary: ROSA distribution release files for "%{-o*}" \
Group: System/Base \
# /bin/ln \
Requires(posttrans): coreutils \
# Do NOT require rosa-kernel-tools to avoid odd deps in minimal systems, \
# if rosa-kernel-tools is not installed, directory /var/spool/initramfs-regen \
# will not be owned by any package, that is not a big deal I think. \
#Requires:	rosa-kernel-tools \
# No %%EVRD here to easify making customized distros \
Requires: %{name}-common \
# Ensure that needed directories exist \
Requires(posttrans): %{name}-common \
Requires: %{name}-rpm-macros \
# Ensure that %%_rpmmacrodir exists \
Requires(posttrans): %{name}-rpm-macros \
# allow boolean deps like: "Recommends: (foo if distro-type(desktop)" \
Provides: distro-type(%{-t*}) \
# make flavours conflict with each other \
Provides: branding-configs-flavour = %{-b*}_%{-t*} \
Conflicts: branding-configs-flavour < %{-b*}_%{-t*} \
Conflicts: branding-configs-flavour > %{-b*}_%{-t*} \
# \
Provides: %{name} = %{EVRD} \
Provides: %{name}-%{-b*} = %{EVRD} \
Provides: indexhtml = %{EVRD} \
Provides: rosa-release = %{EVRD} \
Provides: redhat-release = %{EVRD} \
Provides: mandriva-release = %{EVRD} \
Provides: distro-release = %{EVRD} \
Provides: system-release = %{EVRD} \
Provides: system-release(%{version}) \
Provides: system-release(releasever) = %{version} \
Provides: distro-release = %{EVRD} \
%{-f:Provides: distro-release-%{-f*}-rosa%{version} = %{EVRD}} \
%{-f:Conflicts: distro-release-%{-f*}-rosa%{version} < 2021.1-4} \
%{-f:Obsoletes: distro-release-%{-f*}-rosa%{version} < 2021.1-4} \
%{-h:Provides: branding-configs-%{-h*} = %{EVRD}} \
%{-h:Conflicts: branding-configs-%{-h*} < 2021.1-4} \
%{-h:Obsoletes: branding-configs-%{-h*} < 2021.1-4} \
%{-d:Provides: branding-configs-default = %{EVRD}} \
\
%description %{-b*}-%{-t*} \
ROSA distribution release files for "%{-o*}" \
\
%files %{-b*}-%{-t*} \
\
%dir %{_datadir}/%{name}/%{-b*}-%{-t*} \
%{_datadir}/%{name}/%{-b*}-%{-t*}/license_ru.html \
%{_datadir}/%{name}/%{-b*}-%{-t*}/license_ru.txt \
%{_datadir}/%{name}/%{-b*}-%{-t*}/license_en.html \
%{_datadir}/%{name}/%{-b*}-%{-t*}/license_en.txt \
%{_datadir}/%{name}/%{-b*}-%{-t*}/first_startup.html \
%{_datadir}/%{name}/%{-b*}-%{-t*}/index.html \
%{_datadir}/%{name}/%{-b*}-%{-t*}/index_ru.html \
%{_datadir}/%{name}/%{-b*}-%{-t*}/index_en.html \
%{_datadir}/%{name}/%{-b*}-%{-t*}/index_offline_ru.html \
%{_datadir}/%{name}/%{-b*}-%{-t*}/index_offline_en.html \
%{_datadir}/%{name}/%{-b*}-%{-t*}/macros.product \
%{_sysconfdir}/branding-configs/os-release.%{-b*}-%{-t*} \
%{_sysconfdir}/branding-configs/release.%{-b*}-%{-t*} \
%{_sysconfdir}/branding-configs/lsb-release.%{-b*}-%{-t*} \
/var/spool/initramfs-regen/branding-configs-%{-b*}-%{-t*} \
%ghost %{_sysconfdir}/lsb-release \
%ghost %{_sysconfdir}/os-release \
%ghost %{_sysconfdir}/release \
%ghost %{_sysconfdir}/rosa-release \
%ghost %{_datadir}/doc/HTML/index.html \
%ghost %{_datadir}/doc/HTML/first_startup.html \
%ghost %{_defaultlicensedir}/rosa-distro/license_en.html \
%ghost %{_defaultlicensedir}/rosa-distro/license_en.txt \
%ghost %{_defaultlicensedir}/rosa-distro/license_ru.html \
%ghost %{_defaultlicensedir}/rosa-distro/license_ru.txt \
%ghost %{_sysconfdir}/issue \
%ghost %{_sysconfdir}/issue.net \
\
# Using %%posttrans, not %%post, to simplify dependency graph \
# and avoid cycled deps; I believe that scriptlets of packages \
# do not rely on existense of files like /etc/os-release etc., \
# at least I do not see any good reasons for them to require its existense \
# during bootstrap of chroot/ISO image. \
%posttrans %{-b*}-%{-t*} \
cd /etc \
ln -sf branding-configs/os-release.%{-b*}-%{-t*} os-release \
ln -sf branding-configs/release.%{-b*}-%{-t*} release \
ln -sf branding-configs/lsb-release.%{-b*}-%{-t*} lsb-release \
# /usr/share/licenses/rosa-distro \
cd %{_defaultlicensedir}/rosa-distro \
ln -sf ../../branding-configs/%{-b*}-%{-t*}/license_ru.html license_ru.html \
ln -sf ../../branding-configs/%{-b*}-%{-t*}/license_en.html license_en.html \
ln -sf ../../branding-configs/%{-b*}-%{-t*}/license_ru.txt license_ru.txt \
ln -sf ../../branding-configs/%{-b*}-%{-t*}/license_en.txt license_en.txt \
# /usr/share/doc \
cd %{_datadir}/doc/HTML \
ln -sf ../../branding-configs/%{-b*}-%{-t*}/first_startup.html first_startup.html \
ln -sf ../../branding-configs/%{-b*}-%{-t*}/index.html index.html \
# /usr/lib/rpm/macros.d
# Note that this does not make requirement from "rpm" package
# because installation of branding-configs-rpm-macros has already created this directory \
# even if rpm itself is not installed (useful for super-minimal container images) \
cd %{_rpmmacrodir} \
ln -sf ../../../share/branding-configs/%{-b*}-%{-t*}/macros.product macros.product \
}

#------------------------------------------------------------------

%mk_flavour_subpackage -b fresh -t desktop -h fresh -o %{quote:ROSA Fresh Desktop %{rosa_release_fresh}}
%mk_flavour_subpackage -b fresh -t server -o %{quote:ROSA Fresh Server %{rosa_release_fresh}}
%mk_flavour_subpackage -b fresh -t rootfs -d -o %{quote:ROSA Fresh rootfs %{rosa_release_fresh}} -d
%mk_flavour_subpackage -b chrome -t desktop -f red -h red -o %{quote:ROSA Chrome Desktop %{rosa_release_chrome}}
%mk_flavour_subpackage -b chrome -t server -f res -h res -o %{quote:ROSA Chrome Server %{rosa_release_chrome}}
%mk_flavour_subpackage -b chrome -t rootfs -o %{quote:ROSA Chrome rootfs %{rosa_release_chrome}}

#------------------------------------------------------------------


%prep

%build
cp %{sources} .

%install
set -u

# Ensure that relatives symlinks in %%postrrans are correct
[ "%{_defaultlicensedir}" = "/usr/share/licenses" ]
[ "%{_rpmmacrodir}" = "/usr/lib/rpm/macros.d" ]
mkdir -p %{buildroot}%{_defaultlicensedir}/rosa-distro
mkdir -p %{buildroot}/etc/branding-configs

# avoid message "Creating dir /builddir/tmp" from lynx into stdout
export TMPDIR="$PWD/tmp"
mkdir "$TMPDIR"

_mk_flavour(){

# fresh, chrome, nickel
local branch="$1"
# desktop, server, rootfs
local type="$2"
# e.g. R12 or X5
local os_version="$3"
# e.g. "ROSA Fresh Desktop"
local os_name="$4 ${os_version}"

mkdir -p %{buildroot}%{_datadir}/branding-configs/${branch}-${type}
# %{_defaultlicensedir}/rosa-distro/license_ru.html will be symlinked to it
sed license_ru_${branch}.tpl.html -e "s,@OS_NAME@,${os_name},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/license_ru.html
LC_ALL=ru_RU.UTF-8 lynx -dump -width=99999999 %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/license_ru.html | sed -e 's,^   ,,g' > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/license_ru.txt
# %{_defaultlicensedir}/rosa-distro/license_en.html will be symlinked to it
sed license_en_${branch}.tpl.html -e "s,@OS_NAME@,${os_name},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/license_en.html
LC_ALL=ru_RU.UTF-8 lynx -dump -width=99999999 %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/license_en.html | sed -e 's,^   ,,g' > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/license_en.txt
# %{_datadir}/doc/HTML/index.html will be symlinked to it
sed index.tpl.html -e "s,@configs_subdir@,${branch}-${type},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/index.html
# %{_datadir}/doc/HTML/first_startup.html will be symlinked to it
sed first_startup.tpl.html -e "s,@OS_NAME@,${os_name},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/first_startup.html
# it won't be symlinked to
sed index_ru.tpl.html -e "s,@OS_NAME@,${os_name},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/index_ru.html
sed index_offline_ru.tpl.html -e "s,@OS_NAME@,${os_name},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/index_offline_ru.html
# it won't be symlinked to
sed index_en.tpl.html -e "s,@OS_NAME@,${os_name},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/index_en.html
sed index_offline_en.tpl.html -e "s,@OS_NAME@,${os_name},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/index_offline_en.html
# /usr/lib/rpm/macros.d/macros.product will be symlinked to it
sed macros.product -e "s,@OS_BRANCH@,${branch},g" -e "s,@OS_TYPE@,${type},g" -e "s,@OS_VERSION@,${os_version},g" > %{buildroot}%{_datadir}/branding-configs/${branch}-${type}/macros.product

# /etc/os-release will be symlinked to it
# Specification: https://www.freedesktop.org/software/systemd/man/os-release.html
# Avoiding symlinks from /etc/ to /usr because they may theoretically be different partitions on disk,
# so putting it into /etc/branding-release instead of %{_datadir}/%{name}/${branch}-${type}
# ! "A relative symlink instead of an absolute symlink is necessary
#    to avoid breaking the link in a chroot or initrd environment such as dracut"
cat > %{buildroot}/etc/branding-configs/os-release.${branch}-${type} << EOF
# Standard values
# Specification: https://www.freedesktop.org/software/systemd/man/os-release.html
NAME="${4}"
ID=rosa
PRETTY_NAME="${os_name}"
CPE_NAME="cpe:/o:rosalinux:rosa:%{rosa_platform}"
META_CLASS=${type}
VARIANT_ID=${branch}-${type}
ANSI_COLOR="1;43"
VERSION="${os_version}"
VERSION_ID=%{rosa_platform}
VERSION_CODENAME=${os_version}
HOME_URL="https://www.rosa.ru/"
# TODO: by far not all icons packages provide an icon "rosa"
LOGO=rosa
BUG_REPORT_URL="https://bugs.rosalinux.ru"
# ROSA-specific values
ROSA_OS_BRANCH=${branch}
ROSA_OS_PLATFORM="rosa%{rosa_platform}"
ROSA_OS_PLATFORM_INTEGER=%{rosa_platform_integer}
ROSA_OS_TYPE=${type}
ROSA_OS_VERSION=${os_version}
EOF

# /etc/release will be symlinked to here
cat > %{buildroot}/etc/branding-configs/release.${branch}-${type} << EOF
${os_name} release %{rosa_platform} for %{_target_cpu}
EOF

# Actualy lsb-release file is probably not needed, most distros don't have it
# /etc/lsb-release will be symlinked to here
cat > %{buildroot}/etc/branding-configs/lsb-release.${branch}-${type} << EOF
LSB_VERSION=%{rosa_platform}
DISTRIB_ID=rosa
DISTRIB_RELEASE=${os_version}
DISTRIB_CODENAME=${os_version}
DISTRIB_DESCRIPTION="${os_name}, platform %{rosa_platform}"
EOF

# /etc/product.id existed and is specified here: https://wiki.mageia.org/en/Product_id
# but it is not used nowadays, so not creating it. Instead some potentially useful
# $ROSA_* variables are added to /etc/os-release above.

# Trigger rebuidling initrd if rosa-kernel-tools is installed
# (and it is installed everywhere where initrd exists).
# Initrd contains /etc/os-release etc.
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/branding-configs-${branch}-${type}

}

_mk_flavour fresh desktop %{rosa_release_fresh} "ROSA Fresh Desktop"
_mk_flavour fresh server %{rosa_release_fresh} "ROSA Fresh Server"
_mk_flavour fresh rootfs %{rosa_release_fresh} "ROSA Fresh rootfs"
_mk_flavour chrome desktop %{rosa_release_chrome} "ROSA Chrome Desktop"
_mk_flavour chrome server %{rosa_release_chrome} "ROSA Chrome Server"
_mk_flavour chrome rootfs %{rosa_release_chrome} "ROSA Chrome rootfs"

# Static relative symlinks to dynamic /etc/os-release
( cd %{buildroot}/etc
  for i in rosa mandriva redhat distro system
  do
    ln -s release "$i"-release
  done
)

%install_macro platform macros.platform

mkdir -p %{buildroot}%{_datadir}/doc/HTML

# subdirectory "images"
mkdir -p %{buildroot}%{_datadir}/branding-configs/images
cp %{SOURCE2} %{SOURCE15} %{buildroot}%{_datadir}/branding-configs/images

install -m0644 %{SOURCE101} %{buildroot}%{_datadir}/%{name}/CREDITS

set +u

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12150 |21mr|brasero-3.12.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1
%define api		3
%define gi_major	%{version}

%define libnameburn3	%mklibname %{name}-burn %{api} %{major}
%define libnamemedia3	%mklibname %{name}-media %{api} %{major}
%define libnameutils3	%mklibname %{name}-utils %{api} %{major}

%define girmedia	%mklibname %{name}-media-gir %{gi_major}
%define girburn		%mklibname %{name}-burn-gir %{gi_major}

%define devname	%mklibname -d %{name}

%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	A disc burning application for GNOME
Name:		brasero
Version:	3.12.3
Release:	3
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		https://download.gnome.org/sources/brasero
Source0:	https://download.gnome.org/sources/brasero/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	brasero_copy_disc.desktop
Source2:	brasero_create_data_project_from_blank_medium.desktop
Source3:	brasero_create_audio_cd_from_blank_medium.desktop
BuildRequires:	glib2.0-common
# Only needed when gnome-autogen.sh is used
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	yelp-tools
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gdk-x11-3.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gmodule-export-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libburn-1)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libisofs-1)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(totem-plparser)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
# optional requirements to make video projects work
Recommends:	dvdauthor
Recommends:	gstreamer1.0-plugins-bad
Recommends:	vcdimager

%description
Brasero is yet another CD / DVD writing application for the GNOME
desktop. It is designed to be as simple as possible and has some
unique features to enable users to create their discs easily and
quickly. It can handle both audio and data discs, and can use either
cdrkit or libburn / libisofs as the writing backend.

%files -f %{name}.lang
%doc AUTHORS COPYING MAINTAINERS NEWS README
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/%{name}
%{_libdir}/%{name}3
%{_libdir}/nautilus/extensions-3.0/libnautilus-brasero-extension.*
%{_datadir}/applications/*
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/org.gnome.brasero.gschema.xml
%{_datadir}/GConf/gsettings/brasero.convert
%{_datadir}/icons/hicolor/*/apps/*
%{_mandir}/man1/%{name}.1*
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/apps/solid/actions/*

#----------------------------------------------------------------------------

%package -n %{libnameburn3}
Summary:	A disc burning application for GNOME - shared library
Group:		System/Libraries

%description -n %{libnameburn3}
Brasero is yet another CD / DVD writing application for the GNOME
desktop. It is designed to be as simple as possible and has some
unique features to enable users to create their discs easily and
quickly. It can handle both audio and data discs, and can use either
cdrkit or libburn / libisofs as the writing backend.

%files -n %{libnameburn3}
%license COPYING
%{_libdir}/lib%{name}-burn3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamemedia3}
Group:		System/Libraries
Summary:	A disc burning application for GNOME - shared library

%description -n %{libnamemedia3}
Brasero is yet another CD / DVD writing application for the GNOME
desktop. It is designed to be as simple as possible and has some
unique features to enable users to create their discs easily and
quickly. It can handle both audio and data discs, and can use either
cdrkit or libburn / libisofs as the writing backend.

%files -n %{libnamemedia3}
%license COPYING
%{_libdir}/lib%{name}-media3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameutils3}
Group:		System/Libraries
Summary:	A disc burning application for GNOME - shared library

%description -n %{libnameutils3}
Brasero is yet another CD / DVD writing application for the GNOME
desktop. It is designed to be as simple as possible and has some
unique features to enable users to create their discs easily and
quickly. It can handle both audio and data discs, and can use either
cdrkit or libburn / libisofs as the writing backend.

%files -n %{libnameutils3}
%license COPYING
%{_libdir}/lib%{name}-utils3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girburn}
Summary:	GObject Introspection interface description for GData
Group:		System/Libraries
Requires:	%{libnameburn3} = %{EVRD}

%description -n %{girburn}
GObject Introspection interface description for GData.

%files -n %{girburn}
%license COPYING
%{_libdir}/girepository-1.0/BraseroBurn-*.typelib

#----------------------------------------------------------------------------

%package -n %{girmedia}
Summary:	GObject Introspection interface description for GData
Group:		System/Libraries
Requires:	%{libnamemedia3} = %{EVRD}

%description -n %{girmedia}
GObject Introspection interface description for GData.

%files -n %{girmedia}
%license COPYING
%{_libdir}/girepository-1.0/BraseroMedia-*.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A disc burning application for GNOME - development library
Group:		Development/C
Requires:	%{libnameburn3} = %{EVRD}
Requires:	%{libnamemedia3} = %{EVRD}
Requires:	%{libnameutils3} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Brasero is yet another CD / DVD writing application for the GNOME
desktop. It is designed to be as simple as possible and has some
unique features to enable users to create their discs easily and
quickly. It can handle both audio and data discs, and can use either
cdrkit or libburn / libisofs as the writing backend.

%files -n %{devname}
%license COPYING
%{_datadir}/gtk-doc/html/libbrasero*
%{_libdir}/lib%{name}-*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}3
%{_datadir}/gir-1.0/BraseroBurn-*.gir
%{_datadir}/gir-1.0/BraseroMedia-*.gir

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
export BRASERO_SEARCH_CFLAGS="-Wno-error=implicit-function-declaration"
%configure \
	--enable-nautilus	\
	--enable-libburnia	\
	--disable-search	\
	--enable-playlist	\
	--enable-preview	\
	--enable-inotify	\
	--disable-caches	\
	--disable-static
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make

%install
%makeinstall_std

sed -i 's/cd:x/cd;x/' %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-gnome

#(nl) KDE Solid integration
mkdir -p %{buildroot}%{_datadir}/apps/solid/actions
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/apps/solid/actions/
install -D -m 644 %{SOURCE2} %{buildroot}%{_datadir}/apps/solid/actions/
install -D -m 644 %{SOURCE3} %{buildroot}%{_datadir}/apps/solid/actions/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12151 |21mr|brazil-2.3-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:      brazil
Version:   2.3
Release:   21
Summary:   Extremely small footprint Java HTTP stack
License:   SPL
URL:       https://github.com/mbooth101/brazil

Source0:   https://github.com/mbooth101/brazil/archive/%{name}-%{version}.tar.gz

# upsteam's build script doesn't build javadocs, so use our own, better script
Source2:   brazil-build.xml

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    java-1.8.0-devel
BuildRequires:    jpackage-utils
BuildRequires:    ant
Requires:         java-headless
Requires:         jpackage-utils

%description
Brazil is as an extremely small footprint HTTP stack and flexible architecture 
for adding URL-based interfaces to arbitrary applications and devices from Sun 
Labs. This package contains the core set of classes that are not dependent on 
any other external Java libraries.

%package javadoc
Summary:   Java-docs for %{name}

%description javadoc
API documentation for %{name}.

%package demo
Summary:   Demos for %{name}
Requires:  %{name} = %{version}-%{release}
Requires:  tcl

%description demo
Demonstrations and samples for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# fix permissions and interpreter in sample scripts
grep -lR -e ^\#\!/usr/sfw/bin/tclsh8.3 samples | xargs sed --in-place "s|/usr/sfw/bin/tclsh8.3|/usr/bin/tclsh|"
grep -lR -e ^\#\!/usr/bin/tclsh        samples | xargs chmod 755
grep -lR -e ^\#\!/bin/sh               samples | xargs chmod 755

%build
cp -p %{SOURCE2} build.xml
ant all

%install
# jars
mkdir -p %{buildroot}%{_javadir}
cp -p build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr build/javadoc/* %{buildroot}%{_javadocdir}/%{name}

# samples
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -pr samples %{buildroot}%{_datadir}/%{name}

%files
%doc README.md srcs/license.terms
%{_javadir}/%{name}.jar

%files javadoc
%doc %{_javadocdir}/%{name}

%files demo
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12152 |21mr|breeze-5.24.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Breeze theme
Name:		breeze
Version:	5.24.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Patch0:	    breeze-default-color.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kdecoration2-devel >= %{version}
BuildRequires:	kf5auth-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5frameworkintegration-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)
Requires:	breeze-cursor-theme
Requires:	breeze-cursor-theme-snow
Requires:	breeze-gtk2-theme
Requires:	breeze-gtk3-theme
Requires:	breeze-dark-gtk2-theme
Requires:	breeze-dark-gtk3-theme
Requires:	breeze-icon-theme
Requires:	plasma5-color-scheme-breeze
Requires:	plasma5-color-scheme-breeze-dark
Requires:	plasma5-color-scheme-breeze-light
Requires:	plasma5-decoration-breeze
Requires:	plasma5-style-breeze
Requires:	plasma5-wallpaper-next
Requires:	qt5-style-breeze

%description
Plasma 5 Breeze theme.

%files
%{_kde5_datadir}/QtCurve/Breeze.qtcurve
%{_kde5_libdir}/kconf_update_bin/breezetobreezelight
%{_kde5_libdir}/kconf_update_bin/breezehighcontrasttobreezedark
%{_kde5_libdir}/kconf_update_bin/breezetobreezeclassic
%{_kde5_datadir}/kconf_update/breezehighcontrasttobreezedark.upd
%{_kde5_datadir}/kconf_update/breezetobreezeclassic.upd
%{_kde5_datadir}/kconf_update/breezetobreezelight.upd

#----------------------------------------------------------------------------

%define breezecommon5_major 5
%define libbreezecommon5 %mklibname breezecommon5_ %{breezecommon5_major}

%package -n %{libbreezecommon5}
Summary:	Breeze 5 shared library
Group:		System/Libraries

%description -n %{libbreezecommon5}
Breeze 5 shared library.

%files -n %{libbreezecommon5}
%{_kde5_libdir}/libbreezecommon5.so.%{breezecommon5_major}*

#----------------------------------------------------------------------------

%package -n breeze-cursor-theme
Summary:	Plasma 5 Breeze cursor theme
Group:		Graphical desktop/KDE

%description -n breeze-cursor-theme
Plasma 5 Breeze cursor theme.

%files -n breeze-cursor-theme
%dir %{_kde5_iconsdir}/breeze_cursors
%{_kde5_iconsdir}/breeze_cursors/*

#----------------------------------------------------------------------------

%package -n breeze-cursor-theme-snow
Summary:	Plasma 5 Breeze Snow cursor theme
Group:		Graphical desktop/KDE

%description -n breeze-cursor-theme-snow
Plasma 5 Breeze Snow cursor theme.

%files -n breeze-cursor-theme-snow
%dir %{_kde5_iconsdir}/Breeze_Snow
%{_kde5_iconsdir}/Breeze_Snow/*

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-breeze
Summary:	Plasma 5 Breeze color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-breeze
Plasma 5 Breeze color scheme.

%files -n plasma5-color-scheme-breeze
%{_kde5_datadir}/color-schemes/BreezeClassic.colors

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-breeze-dark
Summary:	Plasma 5 Breeze Dark color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-breeze-dark
Plasma 5 Breeze Dark color scheme.

%files -n plasma5-color-scheme-breeze-dark
%{_kde5_datadir}/color-schemes/BreezeDark.colors

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-breeze-light
Summary:	Plasma 5 Breeze Light color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-breeze-light
Plasma 5 Breeze Light color scheme.

%files -n plasma5-color-scheme-breeze-light
%{_kde5_datadir}/color-schemes/BreezeLight.colors

#----------------------------------------------------------------------------

%package -n plasma5-decoration-breeze
Summary:	Plasma 5 Breeze window decoration
Group:		Graphical desktop/KDE
Requires:	plasma5-settings-breeze

%description -n plasma5-decoration-breeze
Plasma 5 Breeze window decoration.

%files -n plasma5-decoration-breeze -f breeze_kwin_deco.lang
%{_kde5_services}/breezedecorationconfig.desktop
%{_qt5_plugindir}/org.kde.kdecoration2/breezedecoration.so

#----------------------------------------------------------------------------

%package -n plasma5-settings-breeze
Summary:	Breeze theme configuration module for Plasma 5
Group:		Graphical desktop/KDE

%description -n plasma5-settings-breeze
Breeze theme configuration module for Plasma 5.

%files -n plasma5-settings-breeze
%{_kde5_bindir}/breeze-settings5
%{_kde5_iconsdir}/hicolor/*/apps/breeze-settings.*

#----------------------------------------------------------------------------

%package -n plasma5-style-breeze
Summary:	Breeze style for Plasma 5
Group:		Graphical desktop/KDE
Requires:	plasma5-settings-breeze
Requires:	qt5-style-breeze

%description -n plasma5-style-breeze
Breeze style for Plasma 5.

%files -n plasma5-style-breeze -f breeze_style_config.lang
%{_kde5_datadir}/kstyle/themes/breeze.themerc
%{_kde5_services}/breezestyleconfig.desktop
%{_qt5_plugindir}/kstyle_breeze_config.so

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-next
Summary:	Plasma 5 Next wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-next
Plasma 5 Next wallpaper.

%files -n plasma5-wallpaper-next
%dir %{_kde5_datadir}/wallpapers/Next/
%{_kde5_datadir}/wallpapers/Next/*

#----------------------------------------------------------------------------

%package -n qt5-style-breeze
Summary:	Breeze style for Qt5
Group:		Graphical desktop/KDE
Obsoletes:	%{_lib}breeze-qml < 5.19

%description -n qt5-style-breeze
Breeze style for Qt5.

%files -n qt5-style-breeze
%{_qt5_plugindir}/styles/breeze.so

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for Plasma 5 Breeze style
Group:		Development/KDE and Qt
Provides:	%{name}-devel = %{version}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_libdir}/cmake/Breeze

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1

%build
%cmake_kde5 -DUSE_KDE4=OFF
%make

%install
%makeinstall_std -C build

%find_lang breeze_style_config
%find_lang breeze_kwin_deco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12153 |21mr|breeze-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Breeze theme
Name:		breeze
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Patch0:	    breeze-aqua-color.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kdecoration2-devel >= %{version}
BuildRequires:	kf5auth-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5frameworkintegration-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)
Requires:	breeze-cursor-theme
Requires:	breeze-cursor-theme-snow
Requires:	breeze-gtk
Requires:	breeze-icon-theme
Requires:	plasma5-color-scheme-breeze
Requires:	plasma5-color-scheme-breeze-aqua
Requires:	plasma5-color-scheme-breeze-dark
Requires:	plasma5-color-scheme-breeze-light
Requires:	plasma5-decoration-breeze
Requires:	plasma5-style-breeze
Requires:	plasma5-wallpaper-next
Requires:	qt5-style-breeze

%description
Plasma 5 Breeze theme.

%files
%{_kde5_datadir}/QtCurve/Breeze.qtcurve
%{_kde5_libdir}/kconf_update_bin/breezetobreezelight
%{_kde5_libdir}/kconf_update_bin/breezehighcontrasttobreezedark
%{_kde5_libdir}/kconf_update_bin/breezetobreezeclassic
%{_kde5_datadir}/kconf_update/breezehighcontrasttobreezedark.upd
%{_kde5_datadir}/kconf_update/breezetobreezeclassic.upd
%{_kde5_datadir}/kconf_update/breezetobreezelight.upd

#----------------------------------------------------------------------------

%define breezecommon5_major 5
%define libbreezecommon5 %mklibname breezecommon5_ %{breezecommon5_major}

%package -n %{libbreezecommon5}
Summary:	Breeze 5 shared library
Group:		System/Libraries

%description -n %{libbreezecommon5}
Breeze 5 shared library.

%files -n %{libbreezecommon5}
%{_kde5_libdir}/libbreezecommon5.so.%{breezecommon5_major}*

#----------------------------------------------------------------------------

%package -n breeze-cursor-theme
Summary:	Plasma 5 Breeze cursor theme
Group:		Graphical desktop/KDE

%description -n breeze-cursor-theme
Plasma 5 Breeze cursor theme.

%files -n breeze-cursor-theme
%dir %{_kde5_iconsdir}/breeze_cursors
%{_kde5_iconsdir}/breeze_cursors/*

#----------------------------------------------------------------------------

%package -n breeze-cursor-theme-snow
Summary:	Plasma 5 Breeze Snow cursor theme
Group:		Graphical desktop/KDE

%description -n breeze-cursor-theme-snow
Plasma 5 Breeze Snow cursor theme.

%files -n breeze-cursor-theme-snow
%dir %{_kde5_iconsdir}/Breeze_Snow
%{_kde5_iconsdir}/Breeze_Snow/*

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-breeze
Summary:	Plasma 5 Breeze color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-breeze
Plasma 5 Breeze color scheme.

%files -n plasma5-color-scheme-breeze
%{_kde5_datadir}/color-schemes/BreezeClassic.colors

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-breeze-aqua
Summary:	Plasma 5 Breeze Aqua color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-breeze-aqua
Plasma 5 Breeze Aqua color scheme.

%files -n plasma5-color-scheme-breeze-aqua
%{_kde5_datadir}/color-schemes/BreezeAqua.colors

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-breeze-dark
Summary:	Plasma 5 Breeze Dark color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-breeze-dark
Plasma 5 Breeze Dark color scheme.

%files -n plasma5-color-scheme-breeze-dark
%{_kde5_datadir}/color-schemes/BreezeDark.colors

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-breeze-light
Summary:	Plasma 5 Breeze Light color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-breeze-light
Plasma 5 Breeze Light color scheme.

%files -n plasma5-color-scheme-breeze-light
%{_kde5_datadir}/color-schemes/BreezeLight.colors

#----------------------------------------------------------------------------

%package -n plasma5-decoration-breeze
Summary:	Plasma 5 Breeze window decoration
Group:		Graphical desktop/KDE
Requires:	plasma5-settings-breeze

%description -n plasma5-decoration-breeze
Plasma 5 Breeze window decoration.

%files -n plasma5-decoration-breeze -f breeze_kwin_deco.lang
%{_kde5_applicationsdir}/kcm_breezedecoration.desktop
%{_qt5_plugindir}/org.kde.kdecoration2/breezedecoration.so
%{_qt5_plugindir}/plasma/kcms/breeze/kcm_breezedecoration.so

#----------------------------------------------------------------------------

%package -n plasma5-settings-breeze
Summary:	Breeze theme configuration module for Plasma 5
Group:		Graphical desktop/KDE

%description -n plasma5-settings-breeze
Breeze theme configuration module for Plasma 5.

%files -n plasma5-settings-breeze
%{_kde5_bindir}/breeze-settings5
%{_kde5_iconsdir}/hicolor/*/apps/breeze-settings.*

#----------------------------------------------------------------------------

%package -n plasma5-style-breeze
Summary:	Breeze style for Plasma 5
Group:		Graphical desktop/KDE
Requires:	plasma5-settings-breeze
Requires:	qt5-style-breeze

%description -n plasma5-style-breeze
Breeze style for Plasma 5.

%files -n plasma5-style-breeze -f breeze_style_config.lang
%{_kde5_applicationsdir}/breezestyleconfig.desktop
%{_kde5_datadir}/kstyle/themes/breeze.themerc
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/breezestyleconfig.so

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-next
Summary:	Plasma 5 Next wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-next
Plasma 5 Next wallpaper.

%files -n plasma5-wallpaper-next
%dir %{_kde5_datadir}/wallpapers/Next/
%{_kde5_datadir}/wallpapers/Next/*

#----------------------------------------------------------------------------

%package -n qt5-style-breeze
Summary:	Breeze style for Qt5
Group:		Graphical desktop/KDE
Obsoletes:	%{_lib}breeze-qml < 5.19

%description -n qt5-style-breeze
Breeze style for Qt5.

%files -n qt5-style-breeze
%{_qt5_plugindir}/styles/breeze.so

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for Plasma 5 Breeze style
Group:		Development/KDE and Qt
Provides:	%{name}-devel = %{version}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_libdir}/cmake/Breeze

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang breeze_style_config
%find_lang breeze_kwin_deco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12154 |21mr|breeze-gtk-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Breeze GTK themes
Name:		breeze-gtk
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
# The patch is not needed for the official build for Rosa
Patch0:		default.color.sheme2.patch
BuildRequires:	breeze
BuildRequires:	breeze-devel
BuildRequires:	extra-cmake-modules
BuildRequires:	gtk2-modules
BuildRequires:	sassc
BuildRequires:	python3egg(pycairo)
BuildRequires:	pkgconfig(Qt5Core)
Requires:	breeze-gtk2-theme
Requires:	breeze-gtk3-theme
Requires:	breeze-gtk4-theme
Requires:	breeze-dark-gtk2-theme
Requires:	breeze-dark-gtk3-theme
Requires:	breeze-dark-gtk4-theme
BuildArch:	noarch

%description
Breeze GTK themes.

%files

#----------------------------------------------------------------------------

%package -n breeze-gtk-theme-common
Summary:	Breeze GTK theme (common files for GTK2 and GTK3)
Group:		Graphical desktop/KDE

%description -n breeze-gtk-theme-common
Breeze GTK theme (common files for GTK2 and GTK3).

%files -n breeze-gtk-theme-common
%dir %{_datadir}/themes/Breeze/assets/
%{_datadir}/themes/Breeze/assets/*
%{_datadir}/themes/Breeze/settings.ini

#----------------------------------------------------------------------------

%package -n breeze-gtk2-theme
Summary:	Breeze GTK2 theme
Group:		Graphical desktop/KDE
Requires:	breeze-gtk-theme-common

%description -n breeze-gtk2-theme
Breeze GTK2 theme.

%files -n breeze-gtk2-theme
%dir %{_datadir}/themes/Breeze/gtk-2.0/
%{_datadir}/themes/Breeze/gtk-2.0/*

#----------------------------------------------------------------------------

%package -n breeze-gtk3-theme
Summary:	Breeze GTK3 theme
Group:		Graphical desktop/KDE
Requires:	breeze-gtk-theme-common

%description -n breeze-gtk3-theme
Breeze GTK3 theme.

%files -n breeze-gtk3-theme
%{_datadir}/themes/Breeze/gtk-3.0/gtk.css
%{_datadir}/themes/Breeze/gtk-3.0/gtk-dark.css

#----------------------------------------------------------------------------

%package -n breeze-gtk4-theme
Summary:	Breeze GTK4 theme
Group:		Graphical desktop/KDE
Requires:	breeze-gtk-theme-common

%description -n breeze-gtk4-theme
Breeze GTK4 theme.

%files -n breeze-gtk4-theme
%{_datadir}/themes/Breeze/gtk-4.0/gtk.css
%{_datadir}/themes/Breeze/gtk-4.0/gtk-dark.css

#----------------------------------------------------------------------------

%package -n breeze-dark-gtk-theme-common
Summary:	Breeze Dark GTK theme (common files for GTK2 and GTK3)
Group:		Graphical desktop/KDE

%description -n breeze-dark-gtk-theme-common
Breeze Dark GTK theme (common files for GTK2 and GTK3).

%files -n breeze-dark-gtk-theme-common
%dir %{_datadir}/themes/Breeze-Dark/assets/
%{_datadir}/themes/Breeze-Dark/assets/*
%{_datadir}/themes/Breeze-Dark/settings.ini

#----------------------------------------------------------------------------

%package -n breeze-dark-gtk2-theme
Summary:	Breeze Dark GTK2 theme
Group:		Graphical desktop/KDE
Requires:	breeze-dark-gtk-theme-common

%description -n breeze-dark-gtk2-theme
Breeze Dark GTK2 theme.

%files -n breeze-dark-gtk2-theme
%dir %{_datadir}/themes/Breeze-Dark/gtk-2.0/
%{_datadir}/themes/Breeze-Dark/gtk-2.0/*

#----------------------------------------------------------------------------

%package -n breeze-dark-gtk3-theme
Summary:	Breeze Dark GTK3 theme
Group:		Graphical desktop/KDE
Requires:	breeze-dark-gtk-theme-common

%description -n breeze-dark-gtk3-theme
Breeze Dark GTK3 theme.

%files -n breeze-dark-gtk3-theme
%{_datadir}/themes/Breeze-Dark/gtk-3.0/gtk.css

#----------------------------------------------------------------------------

%package -n breeze-dark-gtk4-theme
Summary:	Breeze Dark GTK4 theme
Group:		Graphical desktop/KDE
Requires:	breeze-dark-gtk-theme-common

%description -n breeze-dark-gtk4-theme
Breeze Dark GTK4 theme.

%files -n breeze-dark-gtk4-theme
%{_datadir}/themes/Breeze-Dark/gtk-4.0/gtk.css

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12155 |21mr|breeze-icons-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 Breeze icons
Name:		breeze-icons
Version:	5.116.0
Release:	3
License:	LGPLv3+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Source1:	start-here-kde.svg
BuildRequires:	extra-cmake-modules
BuildRequires:	libxml2-utils
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
# icon optimizations
BuildRequires:	hardlink
# for optimizegraphics
BuildRequires:	time
BuildArch:	noarch

%description
KDE Frameworks 5 Breeze icons.

#----------------------------------------------------------------------------

%package -n breeze-icon-theme
Summary:	Plasma 5 Breeze icon theme
Group:		Graphical desktop/KDE

%description -n breeze-icon-theme
Plasma 5 Breeze icon theme.

%files -n breeze-icon-theme
%dir %{_kde5_iconsdir}/breeze
%{_kde5_iconsdir}/breeze/*

#----------------------------------------------------------------------------

%package -n breeze-icon-theme-dark
Summary:	Plasma 5 Breeze Dark icon theme
Group:		Graphical desktop/KDE

%description -n breeze-icon-theme-dark
Plasma 5 Breeze Dark icon theme.

%files -n breeze-icon-theme-dark
%dir %{_kde5_iconsdir}/breeze-dark
%{_kde5_iconsdir}/breeze-dark/*

#----------------------------------------------------------------------------

%package	devel
Summary:	Breeze icon theme development files
Requires:	breeze-icon-theme = %{EVRD}
Requires:	breeze-icon-theme-dark = %{EVRD}

%description	devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files	devel
%{_kde5_libdir}/cmake/KF5BreezeIcons/

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Don't ship start-here-kde icon, it's messed up
# We should rather use "K" icon from Plasma theme
find . | grep start-here-kde | xargs rm
find . | grep start-here-symbolic | xargs rm
find . | grep application-x-source-rpm | xargs rm

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

## icon optimizations
#du -s  .
#time optimizegraphics ||:
du -s .
hardlink -c -v %{buildroot}%{_datadir}/icons/
du -s .

# %%ghost icon.cache
touch  %{buildroot}%{_kde5_datadir}/icons/{breeze,breeze-dark}/icon-theme.cache

install -m 0644 %{SOURCE1} %{buildroot}%{_kde5_iconsdir}/breeze/places/32/start-here-kde.svg
install -m 0644 %{SOURCE1} %{buildroot}%{_kde5_iconsdir}/breeze-dark/places/32/start-here-kde.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12156 |21mr|bridge-method-injector-1.14-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bridge-method-injector
Version:        1.14
Release:        11
Summary:        Evolve Java classes without breaking compatibility
# License is specified in pom file
License:        MIT
URL:            https://github.com/infradna/bridge-method-injector
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/infradna/%{name}/archive/%{name}-parent-%{version}.tar.gz
# License text copied from http://www.opensource.org/licenses/mit-license.php
# Upstream doesn't care about license texts in repository
Source1:        LICENSE.txt

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-gitexe)
BuildRequires:  mvn(org.jenkins-ci:annotation-indexer)
BuildRequires:  mvn(org.ow2.asm:asm-all)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)

%description
This package contains small Java library for generating
synthetic bridge methods with different return types
to help backward compatibility.

%package -n bridge-method-annotation
Summary:        Bridge method injection annotations

%description -n bridge-method-annotation
This package contains annotations for injecting bridge methods.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-%{name}-parent-%{version}

cp %{SOURCE1} LICENSE

%mvn_package :bridge-method-annotation bridge-method-annotation

# We don't have this extension
%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-svn']]"
%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-svn']]" injector
%pom_remove_plugin :nexus-staging-maven-plugin

# We don't have asm-all with debug information
%pom_change_dep :asm-debug-all :asm-all injector

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%doc LICENSE
%files -n bridge-method-annotation -f .mfiles-bridge-method-annotation
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12157 |21mr|bridge-utils-1.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities for configuring the linux ethernet bridge
Name:		bridge-utils
Version:	1.5
Release:	10
Group:		Networking/Other
License:	GPL
Url:		http://linux-net.osdl.org/index.php/Bridge
Source0:	http://downloads.sourceforge.net/bridge/%{name}-%{version}.tar.gz
Patch1:		bridge-utils-1.5-kernel-headers.patch
BuildRequires:	kernel-headers
Obsoletes:	%{name}-devel < 1.5-4

%description
This package contains utilities for configuring the linux ethernet
bridge. The linux ethernet bridge can be used for connecting multiple
ethernet devices together. The connecting is fully transparent: hosts
connected to one ethernet device see hosts connected to the other
ethernet devices directly.

%prep
%setup -q
%patch1 -p1

%build
autoconf
%configure
%make

%install
%makeinstall_std

%files
%doc ChangeLog README doc/{FAQ,FIREWALL,HOWTO,WISHLIST}
%{_mandir}/man*/*
%{_sbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12158 |21mr|brltty-6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.8
%define libname %mklibname brlapi %{major}
%define devname %mklibname brlapi -d

%ifarch %{arm} %{mips}
%bcond_with	java
%else
%bcond_without	java
%endif

Summary:	Braille display driver for Linux/Unix
Name:		brltty
Version:	6.5
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://mielke.cc/brltty/
Source0:	https://brltty.app/archive/%{name}-%{version}.tar.xz
Source1:	brltty.service
Source2:	brlapi-config.h
Source3:	brlapi-forbuild.h
# From Fedora
Patch1:		brltty-6.3-loadLibrary.patch
# libspeechd.h moved in latest speech-dispatch (NOT sent upstream)
Patch2:		brltty-6.3-libspeechd.patch
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	doxygen
BuildRequires:	linuxdoc-tools
BuildRequires:	subversion
BuildRequires:	tcl
BuildRequires:	tcl-devel
BuildRequires:	python3-cython
BuildRequires:	python3-setuptools
BuildRequires:	bluez-devel
BuildRequires:	festival-devel
BuildRequires:	gpm-devel
%if %{with java}
BuildRequires:	java-rpmbuild
BuildRequires:	java-devel
%endif
BuildRequires:	libbraille-devel
BuildRequires:	python3-devel
BuildRequires:	speech_tools-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(espeak-ng)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(icu-io)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(speech-dispatcher)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xtst)
BuildConflicts: findlib

%description
BRLTTY is a background process (daemon) which provides
access to the Linux/Unix console (when in text mode)
for a blind person using a refreshable braille display.
It drives the braille display,
and provides complete screen review functionality.
Some speech capability has also been incorporated.

%files -n %{name} -f %{name}.lang
%doc Documents/ChangeLog Documents/TODO
%doc Documents/Manual-BRLTTY/
%doc %{_mandir}/man[15]/brltty.*
%license LICENSE-LGPL
%{_bindir}/brltty
%{_bindir}/brltty-*
%{_datadir}/polkit-1/actions/org.a11y.brlapi.policy
%{_datadir}/polkit-1/rules.d/org.a11y.brlapi.rules
%{_libdir}/brltty/
%config(noreplace) %{_sysconfdir}/brltty.conf
%{_sysconfdir}/brltty
%{_sysconfdir}/X11/Xsession.d/90xbrlapi
%{_unitdir}/brltty.service
%exclude %{_sysconfdir}/brltty/Initramfs
%exclude %{_libdir}/brltty/libbrlapi_java.so
%exclude %{_libdir}/brltty/libbrlttybba.so
%exclude %{_libdir}/brltty/libbrlttybxw.so
%exclude %{_libdir}/brltty/libbrlttysen.so
%exclude %{_libdir}/brltty/libbrlttyses.so
%exclude %{_libdir}/brltty/libbrlttyssd.so
%exclude %{_libdir}/brltty/libbrlttyxa2.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	API for brltty
Group:		System/Libraries
License:	LGPL+

%description -n	%{libname}
This package provides the run-time support for the Application
Programming Interface to BRLTTY.

Install this package if you have an application which directly accesses
a refreshable braille display.

%files -n %{libname}
%{_libdir}/libbrlapi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers, static archive, and documentation for BrlAPI
Group:		Development/C
License:	LGPL+
Provides:	brlapi-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package provides the header files, static archive, shared object
linker reference, and reference documentation for BrlAPI (the
Application Programming Interface to BRLTTY). It enables the
implementation of applications which take direct advantage of a
refreshable braille display in order to present information in ways
which are more appropriate for blind users and/or to provide user
interfaces which are more specifically atuned to their needs.

Install this package if you're developing or maintaining an application
which directly accesses a refreshable braille display.

%files -n %{devname}
%doc Documents/BrlAPIref/BrlAPIref/
%doc %{_mandir}/man3/brlapi_*.3*
%{_includedir}/brlapi*.h
%{_includedir}/brltty
%{_libdir}/libbrlapi.so
%{_libdir}/pkgconfig/brltty.pc

#----------------------------------------------------------------------------

%if %{with java}
%package -n brlapi-java
Summary:	Java bindings for BrlAPI
Group:		Development/Java
Requires:	java-devel-openjdk
Requires:	brlapi = %{EVRD}

%description -n	brlapi-java
This package provides the Java bindings for BrlAPI,
which is the Application Programming Interface to BRLTTY.

Install this package if you have a Java application
which directly accesses a refreshable braille display.

%files -n brlapi-java
%{_prefix}/lib/java/brlapi.jar
%endif

#----------------------------------------------------------------------------

%package -n python3-brlapi
Summary:	Python bindings for BrlAPI
Group:		Development/Python
%rename		brlapi-python3

%description -n	python3-brlapi
This package provides the Python bindings for BrlAPI,
which is the Application Programming Interface to BRLTTY.

Install this package if you have a Python application
which directly accesses a refreshable braille display.

%files -n python3-brlapi
%{python3_sitearch}/brlapi.cpython-*.so
%{python3_sitearch}/Brlapi-*.egg-info

#----------------------------------------------------------------------------

%package speech-dispatcher
Summary:	Speech Dispatcher driver for BRLTTY
Group:		Development/Other
License:	LGPLv2+
Requires:	%{name} = %{EVRD}

%description speech-dispatcher
This package provides the Speech Dispatcher driver for BRLTTY.

%files speech-dispatcher
%doc Drivers/Speech/SpeechDispatcher/README
%{_libdir}/brltty/libbrlttyssd.so

#----------------------------------------------------------------------------

%package xw
Summary:	XWindow driver for BRLTTY
Group:		Development/Other
License:	LGPLv2+
Requires:	%{name} = %{EVRD}

%description xw
This package provides the XWindow driver for BRLTTY.

%files xw
%doc Drivers/Braille/XWindow/README
%{_libdir}/brltty/libbrlttybxw.so

#----------------------------------------------------------------------------

%package at-spi2
Summary:	AtSpi2 driver for BRLTTY
Group:		Development/Other
License:	LGPLv2+
Requires:	%{name} = %{EVRD}

%description at-spi2
This package provides the AtSpi2 driver for BRLTTY.

%files at-spi2
%{_libdir}/brltty/libbrlttyxa2.so

#----------------------------------------------------------------------------

%package espeak
Summary:	ESpeak driver for BRLTTY
Group:		Development/Other
License:	LGPLv2+
Requires:	%{name} = %{EVRD}

%description espeak
This package provides the eSpeak driver for BRLTTY.

%files espeak
%{_libdir}/brltty/libbrlttyses.so

#----------------------------------------------------------------------------

%package espeak-ng
Summary:	ESpeak-NG driver for BRLTTY
Group:		Development/Other
License:	LGPLv2+
Requires:	%{name} = %{EVRD}

%description espeak-ng
This package provides the eSpeak-NG driver for BRLTTY.

%files espeak-ng
%{_libdir}/brltty/libbrlttysen.so

#----------------------------------------------------------------------------

%package -n brlapi
Summary:	Application Programming Interface for BRLTTY
Group:		Development/Other
License:	LGPLv2+
Requires(pre):	shadow-utils
Requires(post):	coreutils
Requires(post):	util-linux
Recommends:	%{name} = %{EVRD}

%description -n brlapi
This package provides the run-time support for the Application
Programming Interface to BRLTTY.

Install this package if you have an application which directly accesses
a refreshable braille display.

%files -n brlapi
%doc Drivers/Braille/XWindow/README
%doc Documents/Manual-BrlAPI/
%doc %{_mandir}/man1/eutp.*
%doc %{_mandir}/man1/vstp.*
%doc %{_mandir}/man1/xbrlapi.*
%{_bindir}/eutp
%{_bindir}/vstp
%{_bindir}/xbrlapi
%{_libdir}/brltty/libbrlttybba.so
%{_libdir}/tcl8.6/brlapi-0.8.4/
%ghost %verify(not group) %{_sysconfdir}/brlapi.key

%pre -n brlapi
getent group brlapi >/dev/null || groupadd -r brlapi >/dev/null

%post -n brlapi
if [ ! -e %{_sysconfdir}/brlapi.key ]; then
	mcookie > %{_sysconfdir}/brlapi.key
	chgrp brlapi %{_sysconfdir}/brlapi.key
	chmod 0640 %{_sysconfdir}/brlapi.key
fi

#----------------------------------------------------------------------------

%package dracut
Summary:	Brltty module for Dracut
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	dracut

%description dracut
This package provides brltty module for Dracut.

%files dracut
%{_prefix}/lib/dracut/modules.d/99brltty/
%dir %{_sysconfdir}/brltty/Initramfs
%config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/brltty/Initramfs/cmdline
%config(noreplace) %verify(not size md5 mtime) %{_sysconfdir}/brltty/Initramfs/dracut.conf

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1 -b .loadLibrary
%patch2 -p1 -b .libspeechd

# remove packaged binary file
rm -f Programs/brltty-ktb

%build
# Fix building with glibc 2.28+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
# find . -type f -exec sed -i 's,^#include <sys/types.h>,#include <sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;
# Patch6 changes aclocal.m4:
for i in -I/usr/lib/jvm/java/include{,/linux}; do
	java_inc="$java_inc $i"
done

export PYTHON=/usr/bin/python3
export CPPFLAGS="$java_inc"
export LDFLAGS="%{optflags}"
export CFLAGS="%{optflags} -fno-strict-aliasing $LDFLAGS"
export CXXFLAGS="%{optflags} -fno-strict-aliasing $LDFLAGS"
./autogen
%configure \
	--disable-stripping		\
	--without-curses		\
	--with-speechd=%{_prefix}	\
	--with-install-root=%{buildroot} \
	JAVA_JAR_DIR=%{_jnidir}		\
	JAVA_JNI_DIR=%{_libdir}/brltty	\
	JAVA_JNI=yes			\
	PYTHON=%{__python3}		\
	CYTHON=%{_bindir}/cython

find . -name '*.sgml' |
while read file; do
	iconv -f iso8859-1 -t utf-8 $file > $file.conv && mv -f $file.conv $file
done
find . -name '*.txt' |
while read file; do
	iconv -f iso8859-1 -t utf-8 $file > $file.conv && mv -f $file.conv $file
done
find . -name 'README*' |
while read file; do
	iconv -f iso8859-1 -t utf-8 $file > $file.conv && mv -f $file.conv $file
done

find . \( -path ./doc -o -path ./Documents \) -prune -o \
	\( -name 'README*' -o -name '*.txt' -o -name '*.html' -o \
		-name '*.sgml' -o -name '*.patch' -o \
		\( -path './Bootdisks/*' -type f -perm /ugo=x \) \) -print |
while read file; do
	mkdir -p ../doc/${file%/*} && cp -rp $file ../doc/$file || exit 1
done

%install
make install JAVA_JAR_DIR=%{_jnidir}	\
	JAVA_JNI_DIR=%{_libdir}/brltty	\
	JAVA_JNI=yes

pushd Authorization/Polkit
make install
popd

install -d -m 755 "%{buildroot}%{_sysconfdir}" "%{buildroot}%{_mandir}/man5"
install -p -m 644 Documents/brltty.conf "%{buildroot}%{_sysconfdir}"
echo ".so man1/brltty.1" > %{buildroot}%{_mandir}/man5/brltty.conf.5

install -Dpm 644 %{SOURCE1} %{buildroot}%{_unitdir}/brltty.service

cp -p LICENSE* ../

# clean up the manuals:
mv Documents/BrlAPIref/{html,BrlAPIref}

for i in Drivers/Speech/SpeechDispatcher/README	\
	Documents/ChangeLog Documents/TODO	\
	Documents/Manual-BRLTTY			\
	Drivers/Braille/XWindow/README		\
	Drivers/Braille/XWindow/README		\
	Documents/Manual-BrlAPI			\
	Documents/BrlAPIref/BrlAPIref;		do
	mkdir -p ../${i%/*} && cp -rp $i ../$i || exit 1
done

# don't want static lib
rm -rf %{buildroot}/%{_libdir}/libbrlapi.a

# ghost brlapi.key
touch %{buildroot}%{_sysconfdir}/brlapi.key
chmod 0640 %{buildroot}%{_sysconfdir}/brlapi.key

# disable xbrlapi gdm autostart, there is already orca
rm -f %{buildroot}%{_datadir}/gdm/greeter/autostart/xbrlapi.desktop

# make brltty-config executable
chmod 755 %{buildroot}%{_bindir}/brltty-config.sh

# fix multilib
pushd %{buildroot}%{_includedir}/brltty
for f in config forbuild; do mv ./$f.h ./$f-$(getconf LONG_BIT).h; done
install -p -m 0644 %{SOURCE2} ./config.h
install -p -m 0644 %{SOURCE3} ./forbuild.h
popd

# handle locales
%find_lang %{name} --all-name
cp -p %{name}.lang ../

# install dracut module
make install-dracut

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12159 |21mr|broadcom-wl-6.30.223.271-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	hybrid-v35
%define kname	wl

%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	Proprietary driver for Broadcom wireless adapters
Name:		broadcom-wl
Version:	6.30.223.271
Release:	24
Source0:	http://www.broadcom.com/docs/linux_sta/%{oname}-nodebug-pcoem-6_30_223_271.tar.gz
Source1:	http://www.broadcom.com/docs/linux_sta/%{oname}_64-nodebug-pcoem-6_30_223_271.tar.gz
Source2:	broadcom-wl-blacklist.conf
Source3:	%{name}.rpmlintrc
Source4:	Kbuild
Source6:	broadcom-wl-alias.conf
# fix crash (ubuntu, mga#16390)
Patch6:		broadcom-wl-6.30.223.271-fix-null-pointer-crash.patch
# fix build with 4.3 (aur)
Patch7:		broadcom-wl-6.30.223.271-kernel-4.3-rdtscl-buildfix.patch
# (tmb) fix build with 4.7
Patch8:		broadcom-wl-6.30.223.271-kernel-4.7-buildfix.patch
# (tmb) fix build with 4.8 (aur)
Patch9:		broadcom-wl-6.30.223.271-kernel-4.8-buildfix.patch
# (tmb) fix build with 4.11 (debian)
Patch10:	broadcom-wl-6.30.223.271-kernel-4.11-buildfix.patch
# (tmb) fix build with 4.12 (aur)
Patch11:	broadcom-wl-6.30.223.271-kernel-4.12-buildfix.patch
# (tmb) fix build with 4.14 (debian)
Patch12:	broadcom-wl-6.30.223.271-kernel-4.14-buildfix.patch
# (tmb) fix build with 4.15 (debian)
Patch13:	broadcom-wl-6.30.223.271-kernel-4.15-buildfix.patch
# (tmb) fix build with 5.1
Patch14:	broadcom-wl-6.30.223.271-kernel-5.1-buildfix.patch
# fix kernel warnings (debian)
Patch15:	broadcom-wl-6.30.223.271-debian-fix-kernel-warnings.patch
# fix mac profile discrepancy (debian)
Patch16:	broadcom-wl-6.30.223.271-fix_mac_profile_discrepancy.patch
# Allow normal users to send ioctl requests (debian)
Patch17:	broadcom-wl-6.30.223.271-allow-user_ioctl.patch
# (tmb) default wifi interface name should be wlan, not eth
Patch18:	broadcom-wl-6.30.223.271-ifname-wlan.patch
# (tmb) fix build with 5.6
Patch19:	broadcom-wl-6.30.223.271-kernel-5.6-buildfix.patch
# (tmb) disable time-date warnign
Patch20:	broadcom-wl-6.30.223.271-no-date-time.patch
# fix build error "/bin/sh: 1: [: Illegal number:" (debian)
Patch21:	broadcom-wl-6.30.223.271-debian-fix-dkms-build-error.patch
# fix build with 5.9 (debian)
Patch22:	broadcom-wl-6.30.223.271-kernel-5.9-buildfix.patch
Patch23:	0001-Reproducible-build.patch

# more patch from Debian
Patch24:	18-wl-Make-sure-power_mgmt-settings-are-honored.patch
Patch25:	19-wl-Fix-get-set-values-for-tx_power.patch
Patch26:	20-wl-Fix-mac-address-setting.patch
Patch29:	23-wl-Avoid-disconnecting-invalid-interface.patch
Patch30:	24-wl-Use-the-right-enums-for-cfg80211_get_bss.patch

# from https://gist.github.com/joanbm/37fd0590f30b41e7e89ade6e242ca16e
Patch31:	broadcom-wl-6.30.223.271-kernel-5.17-buildfix.patch
# from https://gist.github.com/joanbm/052d8e951ba63d5eb5b6960bfe4e031a
Patch32:	broadcom-wl-6.30.223.271-kernel-5.18-buildfix.patch

# https://github.com/antoineco/broadcom-wl/commit/6175bee2f676
Patch40:	0040-Use-fallthrough-pseudo-keyword-in-Linux-5.4.patch
# https://github.com/antoineco/broadcom-wl/commit/f224e0ab
Patch41:	0041-Do-not-redefine-isprint-macro.patch
# https://github.com/antoineco/broadcom-wl/commit/933540c63f33e6a
Patch42:	0042-cfg80211_roam_info-compat-for-MLO-APIs-in-Linux-6.0.patch
# https://github.com/antoineco/broadcom-wl/commit/6adc9812d (Linux 6.1+)
Patch43:	0043-add-link_id-param-to-cfg80211-key-operations-in-Linu.patch
License:	Freeware
Group:		System/Kernel and hardware
URL:		http://www.broadcom.com/support/802.11
# contains a proprietary blob
ExclusiveArch:	%{ix86} %{x86_64}

%description
This package contains the proprietary driver for Broadcom wireless
adapters. The driver supports BCM4312-, BCM4313-, BCM4321-, BCM4322-,
BCM43224-, BCM43225-, BCM43227- and BCM43228-based hardware.

#---------------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Kernel source of broadcom-wl
Group:		System/Kernel and hardware

%description -n kernel-source-%{name}
This package contains the proprietary driver for Broadcom wireless
adapters. The driver supports BCM4312-, BCM4313-, BCM4321-, BCM4322-,
BCM43224-, BCM43225-, BCM43227- and BCM43228-based hardware.

This package contains kernel source code (and a proprietary blob).

%files -n kernel-source-%{name}
%license lib/LICENSE.txt
%defattr(0644,root,root,0755)
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#---------------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	Kernel module for Broadcom wireless adapters
Group:		System/Kernel and hardware
Requires(post):		dkms
Requires(preun):	dkms
Requires:	%{name}-aliases
Requires:	kernel-source-%{name}
Requires(post):	kernel-source-%{name}

%description -n dkms-%{name}
This package contains the proprietary driver for Broadcom wireless
adapters. The driver supports BCM4312-, BCM4313-, BCM4321-, BCM4322-,
BCM43224-, BCM43225-, BCM43227- and BCM43228-based hardware.

This package builds the driver as DKMS.

%files -n dkms-%{name}
%license lib/LICENSE.txt
%defattr(0644,root,root,0755)
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

#---------------------------------------------------------------------------

# Not installing this backlist by default, it is probably not needed,
# Ubuntu goes without it.
# Some devices are supported oly by e.g. blacklisted "b43" and are not by "wl".

%package -n %{name}-blacklist
Summary:	Blacklist config for broadcom-wl
Group:		System/Kernel and hardware

%description -n %{name}-blacklist
This package contains a config which blacklists upstream kernel modules
which support some Broadcom wireless adapters.
Install it to force using proprietary driver broadcom-wl instead of them.

%files -n %{name}-blacklist
%config %{_sysconfdir}/modprobe.d/%{name}-blacklist.conf

#---------------------------------------------------------------------------

%package -n %{name}-aliases
Summary:	List of devices supported by broadcom-wl
Group:		System/Kernel and hardware

%description -n %{name}-aliases
This package contains a list of Broadcom wireless devices for which
the proprietary "wl" driver will be used.

%files -n %{name}-aliases
%config %{_sysconfdir}/modprobe.d/%{name}-alias.conf

#---------------------------------------------------------------------------

%prep
%ifarch x86_64
%setup -q -T -c -a1 %{oname}
%else
%setup -q -T -c -a0 %{oname}
%endif

%autopatch -p1

# The Makefile from the upstream package contains the stuff related to
# WEXT support in the kernel, deprecated quite a while ago. In addition,
# the make rules listed there use `uname -r` in the path to the kernel
# build directory which prevents the user from building the driver for a
# kernel other than the running one.
# A Kbuild file we provide should be free from these issues.
rm -f Makefile
cp -p %{SOURCE4} .

# From the .spec file used in Fedora: convert LICENSE.txt to UTF-8 and
# tidy line endings.
iconv -f iso8859-1 -t UTF8 lib/LICENSE.txt -o lib/LICENSE.txt
sed -i 's/\r$//' lib/LICENSE.txt

%build

%install
# add aliases to force loading wl module for supported devices
install -m755 -d %{buildroot}/etc/modprobe.d/
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/modprobe.d
install -m644 %{SOURCE6} %{buildroot}%{_sysconfdir}/modprobe.d

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="make -C \$kernel_source_dir M=\\\$(pwd)"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}
if [ -z "$DURING_INSTALL" ] ; then
    /usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} &&
    /usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release}
fi

%preun -n dkms-%{name}
# rmmod can fail
/sbin/rmmod %{kname} >/dev/null 2>&1 ||:
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12160 |21mr|brotli-1.0.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define comlib	%mklibname brotlicommon %{major}
%define enclib	%mklibname brotlienc %{major}
%define declib	%mklibname brotlidec %{major}
%define devname	%mklibname brotli -d

Summary:	Brotli compression format
Name:		brotli
Version:	1.0.9
Release:	2
License:	MIT
Group:		Archiving/Compression
Url:		https://github.com/google/brotli
Source0:	https://github.com/google/brotli/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		brotli-1.0.2-no-static-brotli.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python2-setuptools
BuildRequires:	python3-setuptools

%description
Brotli is a generic-purpose lossless compression algorithm that compresses
data using a combination of a modern variant of the LZ77 algorithm, Huffman
coding and 2nd order context modeling, with a compression ratio comparable
to the best currently available general-purpose compression methods. It is
similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in RFC 7932.

%files
%doc README.md LICENSE
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package -n %{comlib}
Summary:	Shared data used by libbrotlienc and libbrotlidec libraries
Group:		System/Libraries

%description -n %{comlib}
Shared data used by libbrotlienc and libbrotlidec libraries.

%files -n %{comlib}
%doc LICENSE
%{_libdir}/libbrotlicommon.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{enclib}
Summary:	Brotli encoder library
Group:		System/Libraries

%description -n %{enclib}
Brotli is a generic-purpose lossless compression algorithm that compresses
data using a combination of a modern variant of the LZ77 algorithm, Huffman
coding and 2nd order context modeling, with a compression ratio comparable
to the best currently available general-purpose compression methods. It is
similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in RFC 7932.

%files -n %{enclib}
%doc LICENSE
%{_libdir}/libbrotlienc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{declib}
Summary:	Brotli decoder library
Group:		System/Libraries

%description -n %{declib}
Brotli is a generic-purpose lossless compression algorithm that compresses
data using a combination of a modern variant of the LZ77 algorithm, Huffman
coding and 2nd order context modeling, with a compression ratio comparable
to the best currently available general-purpose compression methods. It is
similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in RFC 7932.

%files -n %{declib}
%doc LICENSE
%{_libdir}/libbrotlidec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{comlib} = %{EVRD}
Requires:	%{enclib} = %{EVRD}
Requires:	%{declib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc README.md CONTRIBUTING.md
%{_includedir}/%{name}/
%{_libdir}/libbrotlicommon.so
%{_libdir}/libbrotlienc.so
%{_libdir}/libbrotlidec.so
%{_libdir}/pkgconfig/libbrotli*.pc
%{_mandir}/man3/%{name}-*.h.3*

#----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	Python 2 module for %{name}
Group:		Development/Python

%description -n python-%{name}
Brotli is a generic-purpose lossless compression algorithm that compresses
data using a combination of a modern variant of the LZ77 algorithm, Huffman
coding and 2nd order context modeling, with a compression ratio comparable
to the best currently available general-purpose compression methods. It is
similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in RFC 7932.

%files -n python-%{name}
%{python2_sitearch}/Brotli-%{version}-py%{python2_version}.egg-info*
%{python2_sitearch}/*.so
%{python2_sitearch}/brotli.py*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 module for %{name}
Group:		Development/Python

%description -n python3-%{name}
Brotli is a generic-purpose lossless compression algorithm that compresses
data using a combination of a modern variant of the LZ77 algorithm, Huffman
coding and 2nd order context modeling, with a compression ratio comparable
to the best currently available general-purpose compression methods. It is
similar in speed with deflate but offers more dense compression.

The specification of the Brotli Compressed Data Format is defined in RFC 7932.

%files -n python3-%{name}
%{python3_sitearch}/Brotli-%{version}-py%{python3_version}.egg-info/
%{python3_sitearch}/*.so
%{python3_sitearch}/brotli.py*
%{python3_sitearch}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%setup -q

# fix permissions
find c/ \( -name "*.c" -o -name "*.h" \) -exec chmod 644 {} \;

%build
%py2_build
%py3_build

%cmake
%make_build

%install
%make_install -C build

%py2_install
%py3_install

# man page
install -Dpm644 docs/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1
install -Dpm644 docs/decode.h.3 %{buildroot}%{_mandir}/man3/%{name}-decode.h.3
install -Dpm644 docs/encode.h.3 %{buildroot}%{_mandir}/man3/%{name}-encode.h.3
install -Dpm644 docs/types.h.3 %{buildroot}%{_mandir}/man3/%{name}-types.h.3

# we don't want these
find %{buildroot} -name "*.a" -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12161 |21mr|bsf-2.4.0-39
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bsf
Epoch:          0
Version:        2.4.0
Release:        39
Summary:        Bean Scripting Framework
License:        ASL 2.0
URL:            http://commons.apache.org/bsf/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://apache.mirror.anlx.net//commons/%{name}/source/%{name}-src-%{version}.tar.gz
Source1:        %{name}-pom.xml

Patch0:         java-11-fixes.patch
Patch1:         0001-Always-build-javascript-engine.patch

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  apache-parent
BuildRequires:  xalan-j2
BuildRequires:  apache-commons-logging

# ROSA
# Added to make ant-apache-bsf and javascript in build.xml in ant work
BuildRequires: mvn(rhino:js)

%description
Bean Scripting Framework (BSF) is a set of Java classes which provides
scripting language support within Java applications, and access to Java
objects and methods from scripting languages. BSF allows one to write
JSPs in languages other than Java while providing access to the Java
class library. In addition, BSF permits any Java application to be
implemented in part (or dynamically extended) by a language that is
embedded within it. This is achieved by providing an API that permits
calling scripting language engines from within Java, as well as an
object registry that exposes Java objects to these scripting language
engines.

BSF supports several scripting languages currently:
* Javascript (using Rhino ECMAScript, from the Mozilla project)
* Python (using either Jython or JPython)
* Tcl (using Jacl)
* NetRexx (an extension of the IBM REXX scripting language in Java)
* XSLT Stylesheets (as a component of Apache XML project's Xalan and
Xerces)

In addition, the following languages are supported with their own BSF
engines:
* Java (using BeanShell, from the BeanShell project)
* JRuby
* JudoScript

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
%autopatch -p1

find -name \*.jar -delete

%mvn_file : %{name}
%mvn_alias : org.apache.bsf:

%build
export CLASSPATH="$(build-classpath apache-commons-logging xalan-j2 rhino)"
%{ant} jar javadocs

%mvn_artifact %{SOURCE1} build/lib/%{name}.jar

%install
%mvn_install -J build/javadocs

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc AUTHORS.txt CHANGES.txt README.txt TODO.txt RELEASE-NOTE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12162 |21mr|bsh-2.0-15.b6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2007, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global reltag b6
%bcond_without  desktop

Name:           bsh
Version:        2.0
Release:        15.%{reltag}
Epoch:          0
Summary:        Lightweight Scripting for Java
URL:            http://www.beanshell.org/
# bundled asm is BSD
# bsf/src/bsh/util/BeanShellBSFEngine.java is public-domain
License:        ASL 2.0 and BSD and Public Domain
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
# ./generate-tarball.sh
Source0:        %{name}-%{version}-%{reltag}.tar.gz
Source1:        %{name}-desktop.desktop
# Remove bundled jars which cannot be easily verified for licensing
# Remove code marked as SUN PROPRIETARY/CONFIDENTAIL
Source2:        generate-tarball.sh

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  bsf
BuildRequires:  junit
BuildRequires:  javacc
BuildRequires:  glassfish-servlet-api
%if %{with desktop}
BuildRequires:  imagemagick
BuildRequires:  desktop-file-utils
%endif

Requires:       java-headless
Requires:       bsf
Requires:       jline
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools


Provides:       %{name}-utils = %{epoch}:%{version}-%{release}
Obsoletes:      %{name}-utils < 0:2.0
Obsoletes:      %{name}-demo < 0:2.0

# bsh uses small subset of modified (shaded) classes from ancient version of
# objecweb-asm under asm directory
Provides:       bundled(objectweb-asm) = 1.3.6

%description
BeanShell is a small, free, embeddable, Java source interpreter with
object scripting language features, written in Java. BeanShell
executes standard Java statements and expressions, in addition to
obvious scripting commands and syntax. BeanShell supports scripted
objects as simple method closures like those in Perl and
JavaScript(tm). You can use BeanShell interactively for Java
experimentation and debugging or as a simple scripting engine for your
applications. In short: BeanShell is a dynamically interpreted Java,
plus some useful stuff. Another way to describe it is to say that in
many ways BeanShell is to Java as Tcl/Tk is to C: BeanShell is
embeddable - You can call BeanShell from your Java applications to
execute Java code dynamically at run-time or to provide scripting
extensibility for your applications. Alternatively, you can call your
Java applications and objects from BeanShell; working with Java
objects and APIs dynamically. Since BeanShell is written in Java and
runs in the same space as your application, you can freely pass
references to "real live" objects into scripts and return them as
results.

%package manual
Summary:        Manual for %{name}

%description manual
Documentation for %{name}.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -n beanshell-%{version}%{reltag}

sed -i 's,org.apache.xalan.xslt.extensions.Redirect,http://xml.apache.org/xalan/redirect,' docs/manual/xsl/*.xsl

%mvn_alias :bsh bsh:bsh bsh:bsh-bsf org.beanshell:bsh

%mvn_file : %{name}

%build
mkdir lib
build-jar-repository lib bsf javacc junit glassfish-servlet-api

ant test dist

%install
%mvn_artifact pom.xml dist/%{name}-%{version}%{reltag}.jar

%mvn_install -J javadoc

%if %{with desktop}
# menu entry
desktop-file-install --mode=644 \
  --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
convert src/bsh/util/lib/icon.gif \
  %{buildroot}%{_datadir}/pixmaps/bsh.png
%endif

install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_datadir}/%{name}/webapps
install -m 644 dist/bshservlet.war %{buildroot}%{_datadir}/%{name}/webapps
install -m 644 dist/bshservlet-wbsh.war %{buildroot}%{_datadir}/%{name}/webapps

# scripts
install -d %{buildroot}%{_bindir}

%jpackage_script bsh.Interpreter "\${BSH_DEBUG:+-Ddebug=true}" jline.console.internal.ConsoleRunner %{name}:jline %{name} true
%jpackage_script bsh.Console "\${BSH_DEBUG:+-Ddebug=true}" "" bsh bsh-console true

echo '#!%{_bindir}/bsh' > %{buildroot}%{_bindir}/bshdoc
cat scripts/bshdoc.bsh >> %{buildroot}%{_bindir}/bshdoc

%files -f .mfiles
%license LICENSE NOTICE
%doc README.md src/Changes.html src/CodeMap.html docs/faq/faq.html
%attr(0755,root,root) %{_bindir}/%{name}*
%if %{with desktop}
%{_datadir}/applications/%{name}-desktop.desktop
%{_datadir}/pixmaps/%{name}.png
%endif
%{_datadir}/%{name}

%files manual
%doc docs/manual/html
%doc docs/manual/images/*.jpg
%doc docs/manual/images/*.gif
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12163 |21mr|btm-2.1.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Bitronix Transaction Manager
Name:           btm
Version:        2.1.2
Release:        15
Epoch:          0
License:        LGPLv3
URL:            http://bitronix.be
Source0:        http://bitronix.be/downloads/btm-dist-2.1.2.zip
Source1:        http://repo1.maven.org/maven2/org/codehaus/btm/btm-parent/2.1.2/btm-parent-2.1.2.pom
Source2:        http://repo1.maven.org/maven2/org/codehaus/btm/btm/2.1.2/btm-2.1.2.pom
Patch0:         %{name}-use-shared-jars.patch
Patch1:         btm-jdbc4.1.patch

BuildRequires:  ant >= 0:1.6
BuildRequires:  geronimo-jta
BuildRequires:  java-devel
BuildRequires:  javapackages-local
BuildRequires:  xml-commons-apis
#BuildRequires:  mvn(javax.transaction:jta)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires:  mvn(org.codehaus:codehaus-parent:pom:)
BuildRequires:  mvn(org.slf4j:slf4j-api)

# Turn this on to make "ant test" work
# BuildRequires:  mockito
Requires:       junit
Requires:       xml-commons-apis
Requires:       java >= 1:1.6.0
Requires:       geronimo-jms
Requires:       geronimo-jta

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Bitronix Transaction Manager (BTM) is a simple but complete
implementation of the JTA 1.1 API. It is a fully working XA transaction
manager that provides all services required by the JTA API while trying 
to keep the code as simple as possible for easier understanding of the 
XA semantics.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-dist-%{version}
# remove all binary libs
find -name '*.jar' -exec rm -f '{}' \;


%patch0 -p1
%patch1 -p1

%mvn_file org.codehaus.%{name}:%{name} %{name}

%build

ant build

%install
%mvn_artifact %{SOURCE1}
%mvn_artifact %{SOURCE2} dist/%{name}-%{version}.jar
%mvn_install -J doc/api

%files -f .mfiles
%doc release-notes-%{version}.txt
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12164 |21mr|btrfsmaintenance-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 503beb15d6bf86bf13b4a9112fb0fe4a499ebd51
%define short_commit %(echo %{commit} | head -c 6)

Summary:	BTRFS auto maintenance scripts
Name:		btrfsmaintenance
Version:	0.5
Release:	1
License:	GPL
Group:		System/Base
# Real upstream: https://github.com/kdave/btrfsmaintenance
# Bellow is a fork with some adjustments
Url:		https://gitlab.com/nixtux-packaging/btrfsmaintenance
Source0:	https://gitlab.com/nixtux-packaging/btrfsmaintenance/-/archive/%{commit}/btrfsmaintenance-%{commit}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(systemd)
Requires:	btrfs-progs

%description
This is a set of scripts supplementing the btrfs filesystem and aims
to automate a few maintenance tasks.
This means the scrub, balance, trim or defragmentation.
.
Each of the tasks can be turned on/off and configured independently.
Overall tuning of the default values should give a good balance between
effects of the tasks and low impact of other work on the system. 
If this does not fit your needs, please adjust the settings.
.
systemd units (services, timers, path watchers) are enabled automatically.
If you want to run scripts via cron, configure it yourself (see documentation:
https://github.com/kdave/btrfsmaintenance/blob/master/README.md)

%files
%doc COPYING README.md
%config(noreplace) %{_sysconfdir}/sysconfig/btrfsmaintenance
%{_datadir}/%{name}
%{_unitdir}/btrfs*
%{_presetdir}/*btrfs*
#--------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}

%build

%install
# scripts
install -m 755 -d %{buildroot}%{_datadir}/%{name}
install -m 755 btrfs-defrag.sh %{buildroot}%{_datadir}/%{name}
install -m 755 btrfs-balance.sh %{buildroot}%{_datadir}/%{name}
install -m 755 btrfs-scrub.sh %{buildroot}%{_datadir}/%{name}
install -m 755 btrfs-trim.sh %{buildroot}%{_datadir}/%{name}
install -m 755 btrfsmaintenance-refresh-cron.sh %{buildroot}%{_datadir}/%{name}
install -m 644 btrfsmaintenance-functions %{buildroot}%{_datadir}/%{name}

# systemd services and timers
install -m 755 -d %{buildroot}%{_unitdir}
install -m 755 -d %{buildroot}%{_presetdir}
install -m 644 -D btrfsmaintenance-refresh.service %{buildroot}%{_unitdir}/
install -m 644 -D btrfsmaintenance-refresh.path %{buildroot}%{_unitdir}/
install -m 644 -D btrfs-balance.service %{buildroot}%{_unitdir}/
install -m 644 -D btrfs-defrag.service %{buildroot}%{_unitdir}/
install -m 644 -D btrfs-scrub.service %{buildroot}%{_unitdir}/
install -m 644 -D btrfs-trim.service %{buildroot}%{_unitdir}/
install -m 644 -D btrfs-balance.timer %{buildroot}%{_unitdir}/
install -m 644 -D btrfs-defrag.timer %{buildroot}%{_unitdir}/
install -m 644 -D btrfs-scrub.timer %{buildroot}%{_unitdir}/
install -m 644 -D btrfs-trim.timer %{buildroot}%{_unitdir}/
install -m 644 -D 80-btrfsmaintenance.preset %{buildroot}%{_presetdir}/

# config
install -m 644 -D sysconfig.btrfsmaintenance %{buildroot}%{_sysconfdir}/sysconfig/btrfsmaintenance

%check
# Check correctness of the config
set -efu
. %{buildroot}%{_sysconfdir}/sysconfig/%{name}
echo "$BTRFS_LOG_OUTPUT"
echo "$BTRFS_DEFRAG_PATHS"
echo "$BTRFS_DEFRAG_PERIOD"
echo "$BTRFS_DEFRAG_MIN_SIZE"
echo "$BTRFS_BALANCE_MOUNTPOINTS"
echo "$BTRFS_BALANCE_PERIOD"
echo "$BTRFS_BALANCE_DUSAGE"
echo "$BTRFS_BALANCE_MUSAGE"
echo "$BTRFS_SCRUB_MOUNTPOINTS"
echo "$BTRFS_SCRUB_PERIOD"
echo "$BTRFS_SCRUB_PRIORITY"
echo "$BTRFS_SCRUB_READ_ONLY"
echo "$BTRFS_TRIM_PERIOD"
echo "$BTRFS_TRIM_MOUNTPOINTS"
echo "$BTRFS_ALLOW_CONCURRENCY"

%post
# According to 80-btrfmaintenance.preset,
# needed systemd units will be enabled automatically on package installation
%systemd_post btrfsmaintenance-refresh.service btrfsmaintenance-refresh.path btrfs-balance.service btrfs-balance.timer btrfs-defrag.service btrfs-defrag.timer btrfs-scrub.service btrfs-scrub.timer btrfs-trim.service btrfs-trim.timer

%preun
%systemd_preun btrfsmaintenance-refresh.service btrfsmaintenance-refresh.path btrfs-balance.service btrfs-balance.timer btrfs-defrag.service btrfs-defrag.timer btrfs-scrub.service btrfs-scrub.timer btrfs-trim.service btrfs-trim.timer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12165 |21mr|btrfs-progs-6.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major_libbtrfs 0
%define libname_libbtrfs %mklibname btrfs %{major_libbtrfs}
%define devname_libbtrfs %mklibname btrfs -d

%define major_libbtrfsutil 1
%define libname_libbtrfsutil %mklibname btrfsutil %{major_libbtrfsutil}
%define devname_libbtrfsutil %mklibname btrfsutil -d

Summary:	Userspace programs for BTRFS
Name:		btrfs-progs
Version:	6.9.2
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://btrfs.wiki.kernel.org/
Source0:	https://github.com/kdave/btrfs-progs/archive/v%{version}.tar.gz?/btrfs-progs-%{version}.tar.gz
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	xmlto
BuildRequires:	acl-devel
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(mount)
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	%{_bindir}/sphinx-build

%description
The btrfs-progs package provides all the userpsace programs needed to create,
check, modify and correct any inconsistencies in the btrfs filesystem.

%files
%license COPYING
%doc CHANGES README.md
%{_bindir}/btrfs
%{_sbindir}/btrfs
%{_sbindir}/btrfs-convert
%{_sbindir}/btrfs-find-root
%{_sbindir}/btrfs-image
%{_sbindir}/btrfs-map-logical
%{_sbindir}/btrfs-select-super
%{_sbindir}/btrfsck
%{_sbindir}/btrfstune
%{_sbindir}/fsck.btrfs
%{_sbindir}/mkfs.btrfs
%{_mandir}/man*/btrfs*
%{_mandir}/man*/*.btrfs.*
%{_udevrulesdir}/*.rules
%{_datadir}/bash-completion/completions/btrfs

#----------------------------------------------------------------------------

%package -n %{libname_libbtrfs}
Summary:	Main library for btrfs
Group:		System/Libraries
License:	GPLv2+

%description -n %{libname_libbtrfs}
This package contains the library needed to run programs dynamically
linked with btrfs.

%files -n %{libname_libbtrfs}
%license COPYING
%doc CHANGES README.md
%{_libdir}/libbtrfs.so.%{major_libbtrfs}*

#----------------------------------------------------------------------------

%package -n %{devname_libbtrfs}
Summary:	Headers for developing programs that will use btrfs
Group:		Development/C
License:	GPLv2+
Requires:	%{libname_libbtrfs} = %{EVRD}
Provides:	btrfs-devel = %{EVRD}

%description -n %{devname_libbtrfs}
This package contains the headers that programmers will need to develop
applications which will use btrfs.

%files -n %{devname_libbtrfs}
%license COPYING
%doc CHANGES README.md
%{_includedir}/btrfs/*
%{_libdir}/libbtrfs.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n %{libname_libbtrfsutil}
Summary:	Main library for btrfs
Group:		System/Libraries
License:	LGPLv2.1+

%description -n %{libname_libbtrfsutil}
This package contains the library needed to run programs dynamically
linked with libbtrfsutil.

%files -n %{libname_libbtrfsutil}
%license libbtrfsutil/COPYING
%doc libbtrfsutil/README.md
%{_libdir}/libbtrfsutil.so.%{major_libbtrfsutil}*

#----------------------------------------------------------------------------

%package -n %{devname_libbtrfsutil}
Summary:	Headers for developing programs that will use libbtrfsutil
Group:		Development/C
License:	LGPLv2.1+
Requires:	%{libname_libbtrfsutil} = %{EVRD}
Provides:	btrfsutil-devel = %{EVRD}

%description -n %{devname_libbtrfsutil}
This package contains the headers that programmers will need to develop
applications which will use libbtrfsutil.

%files -n %{devname_libbtrfsutil}
%license libbtrfsutil/COPYING
%doc libbtrfsutil/README.md
%{_includedir}/btrfsutil.h
%{_libdir}/libbtrfsutil.so

#----------------------------------------------------------------------------

%package -n python3-btrfsutil
Summary:	Python 3 bindings for libbtrfsutil
Group:		Development/Python
License:	LGPLv2+
Requires:	%{libname_libbtrfsutil} = %{EVRD}

%description -n python3-btrfsutil
python3-btrfsutil contains Python 3 bindings to the libbtrfsutil library,
which can be used for btrfs filesystem-specific programs in Python.

You should install python3-btrfsutil if you want to use or develop
btrfs filesystem-specific programs in Python.

%files -n python3-btrfsutil
%license libbtrfsutil/COPYING
%{python3_sitearch}/btrfsutil.*.so
%{python3_sitearch}/btrfsutil-*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%ifarch %{e2k}
sed -i 's!-MG!!g' Makefile
%endif

%build
./autogen.sh
%configure
%make_build

pushd libbtrfsutil/python
%py3_build
popd

%install
%make_install bindir=%{_sbindir}

pushd libbtrfsutil/python
%py3_install
popd

rm -f %{buildroot}%{_libdir}/*.a

mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
install -m0644 ./btrfs-completion %{buildroot}%{_datadir}/bash-completion/completions/btrfs

# (mikhailnov) btrfs utility must be available to not-root users for some actions (creating user snapshots) and getting information
mkdir -p %{buildroot}%{_bindir}
ln -sr %{buildroot}%{_sbindir}/btrfs %{buildroot}%{_bindir}/btrfs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12166 |21mr|bubblewrap-0.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Core execution tool for unprivileged containers
Name:		bubblewrap
Version:	0.6.2
Release:	2
License:	LGPLv2+
Group:		Security
Url:		https://github.com/containers/bubblewrap
Source0:	%{url}/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libselinux)

%description
Bubblewrap (/usr/bin/bwrap) is a core execution engine for unprivileged
containers that works as a setuid binary on kernels without user namespaces.

%files
%license COPYING
%{_bindir}/bwrap
%{_datadir}/bash-completion/completions/bwrap
%{_datadir}/zsh/site-functions/_bwrap
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; fi
%configure \
	--disable-silent-rules \
	--with-priv-mode=none
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12167 |21mr|buho-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Note taking app for Plasma Mobile
Name:		buho
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch1:		buho-russian_locale.patch
Patch2:		buho-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	mauikit-devel
BuildRequires:	mauikit-filebrowsing-devel
BuildRequires:	mauikit-accounts-devel
Requires: mauikit-texteditor

%description
Note taking app for Plasma Mobile

%files -f %{name}.lang
%{_bindir}/buho
%{_kde5_applicationsdir}/org.kde.buho.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/buho.svg
%{_appdatadir}/org.kde.buho.metainfo.xml

#------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12168 |21mr|buildah-1.30.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%if ! 0%{?gobuild:1}
#%%define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now -specs=/usr/lib/rpm/redhat/redhat-hardened-ld '" -a -v -x %{?**};
%define gobuild(o:) GO111MODULE=off go build -buildmode pie -compiler gc -tags="rpm_crashtraceback ${BUILDTAGS:-}" -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n') -extldflags '-Wl,-z,relro -Wl,-z,now '" -a -v -x %{?**};
%endif

%global provider github
%global provider_tld com
%global project containers
%global repo buildah
# https://github.com/containers/buildah
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}

# Disable tests package until we have all Requires
%bcond_with tests

Summary:	A command line tool used for creating OCI Images
Name:		buildah
Version:	1.30.0
Release:	2
License:	ASL 2.0
Group:		Development/Other
Url:		https://%{name}.io
Source0:	https://%{import_path}/archive/v%{version}.tar.gz
Source10:	buildah.rpmlintrc
BuildRequires:	device-mapper-devel
BuildRequires:	golang >= 1.16.6
BuildRequires:	git
BuildRequires:	glib2-devel
BuildRequires:	glibc-static-devel
BuildRequires:	go-md2man
BuildRequires:	go-rpm-macros
BuildRequires:	gpgme-devel
BuildRequires:	libassuan-devel
BuildRequires:	pkgconfig(ostree-1)
BuildRequires:	btrfs-devel
BuildRequires:	seccomp-devel
Requires:	%{_lib}seccomp2 >= 2.4.1
Requires:	containernetworking-plugins
Requires:	crun >= 0.17.1-1
#Requires:	container-selinux
Requires:	slirp4netns >= 0.3

%description
The %{name} package provides a command line tool which can be used to
* create a working container from scratch
or
* create a working container from an image as a starting point
* mount/umount a working container's root file system for manipulation
* save container's root file system layer to create a new image
* delete a working container or an image

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/%{name}

#---------------------------------------------------------------------

%if %{with tests}
%package tests
Summary:	Tests for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	bats
Requires:	bzip2
Requires:	podman
Requires:	golang
Requires:	jq
Requires:	httpd-tools
Requires:	openssl
Requires:	nmap-ncat

%description tests
Tests for %{name}

This package contains system tests for %{name}

%files tests
%license LICENSE
%{_bindir}/%{name}-imgtype
%{_bindir}/%{name}-copy
%{_datadir}/%{name}/test
%endif

#---------------------------------------------------------------------

%prep
%autosetup -Sgit

%build
mkdir _build
pushd _build
mkdir -p src/%{provider}.%{provider_tld}/%{project}
ln -s $(dirs +1 -l) src/%{import_path}
popd

mv vendor src

export GOPATH=$(pwd)/_build:$(pwd)
#export CGO_CFLAGS="-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -ffat-lto-objects -fexceptions -fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protection -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
export CGO_CFLAGS="-O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -ffat-lto-objects -fexceptions -fasynchronous-unwind-tables -fstack-protector-strong -fstack-clash-protection -D_GNU_SOURCE -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE"
# FIXME: Investigate why this fails
%ifnarch s390x
export CGO_CFLAGS+=" -D_FILE_OFFSET_BITS=64"
%endif
%ifarch x86_64
export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
%endif
# These extra flags present in %%{optflags} have been skipped for now as they break the build
#export CGO_CFLAGS+=" -flto=auto -Wp,D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1"

export CNI_VERSION=`grep '^# github.com/containernetworking/cni ' src/modules.txt | sed 's,.* ,,'`
export LDFLAGS="-X main.buildInfo=`date +%s` -X main.cniVersion=${CNI_VERSION}"

export BUILDTAGS='seccomp selinux'
%gobuild -o bin/%{name} %{import_path}/cmd/%{name}
%gobuild -o bin/imgtype %{import_path}/tests/imgtype
%gobuild -o bin/copy    %{import_path}/tests/copy
GOMD2MAN=go-md2man %{__make} -C docs

%install
export GOPATH=$(pwd)/_build:$(pwd):%{gopath}
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install install.completions
make DESTDIR=%{buildroot} PREFIX=%{_prefix} -C docs install

install -d -p %{buildroot}%{_datadir}/%{name}/test/system
cp -pav tests/. %{buildroot}%{_datadir}/%{name}/test/system
cp bin/imgtype %{buildroot}%{_bindir}/%{name}-imgtype
cp bin/copy    %{buildroot}%{_bindir}/%{name}-copy

# delete hidden files
find %{buildroot} -name .travis.yml -exec rm {} \;
find %{buildroot} -name .dockerignore -exec rm {} \;

%if %{without tests}
rm -f %{buildroot}%{_bindir}/%{name}-imgtype
rm -f %{buildroot}%{_bindir}/%{name}-copy
rm -rf %{buildroot}%{_datadir}/%{name}/test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12169 |21mr|builder-c-1.5.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        ABF builder in pure C
Name:           builder-c
Version:	1.5.9
Release:	1
License:        GPLv2+
Group:          Monitoring
Url:            https://abf.openmandriva.org
Source0:	https://github.com/DuratarskeyK/builder-c/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	builder.service
Source2:	builder-environment.conf
Source3:	builder.conf
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  pkgconfig(libconfig)
BuildRequires:  pkgconfig(openssl)
Requires:	curl
Requires:	python3-requests
Requires:	python3-yaml
Requires:	python3-magic
# Old gcc-4.9 in rosa2014.1 can't build this code
%if %{mdvver} < 201610
BuildRequires:	clang
%else
BuildRequires:	gcc
%endif

%description
Builder for ABF.

%files
%{_bindir}/builder
%{_sysconfdir}/%{name}/builder.conf
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/sysconfig/builder-environment.conf

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%set_build_flags
%make_build CC=%{__cc}

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 builder %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
cat %{SOURCE2} | sed -e 's,@ROSA_PLATROM@,%{rosa_release},g' > %{buildroot}%{_sysconfdir}/sysconfig/builder-environment.conf
chmod 0644 %{buildroot}%{_sysconfdir}/sysconfig/builder-environment.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12170 |21mr|buildnumber-maven-plugin-1.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           buildnumber-maven-plugin
Version:        1.3
Release:        13
Summary:        Build Number Maven Plugin
License:        MIT and ASL 2.0
URL:            http://svn.codehaus.org/mojo/tags/buildnumber-maven-plugin-%{version}
Group:          Development/Java
BuildArch: 	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://central.maven.org/maven2/org/codehaus/mojo/%{name}/%{version}/%{name}-%{version}-source-release.zip
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java.dev.jna:jna)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-settings:2.0.6)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-api)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-manager-plexus)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-bazaar)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-clearcase)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-cvsexe)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-gitexe)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-hg)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-perforce)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-starteam)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-svn-commons)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-svnexe)
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
This mojo is designed to get a unique build number for each time you build
your project. So while your version may remain constant at 1.0-SNAPSHOT
for many iterations until release, you will have a build number that can
uniquely identify each build during that time. The build number is obtained
from scm, and in particular, at this time, from svn. You can then place that
build number in metadata, which can be accessed from your app, if desired.

The mojo also has a couple of extra functions to ensure you get the proper
build number. First, your local repository is checked to make sure it is
up to date. Second, your local repository is automatically updated, so that
you get the latest build number. Both these functions can be suppressed,
if desired.

Optionally, you can configure this mojo to produce a revision based on a
timestamp, or on a sequence, without requiring any interaction with an
SCM system. Note that currently, the only supported SCM is subversion.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q
cp -p %{SOURCE1} .

%pom_remove_dep com.google.code.maven-scm-provider-svnjava:maven-scm-provider-svnjava
%pom_remove_dep org.tmatesoft.svnkit:svnkit
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-invoker-plugin

# junit dependency was removed in Plexus 1.6
%pom_add_dep junit:junit::test

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12171 |21mr|bup-0.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Efficient backup system based on the git pack file format
Name:		bup
Version:	0.33
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
Url:		https://bup.github.io/
Source0:	https://github.com/bup/bup/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	git >= 1.5.6
# Not provided yet - needed for man pages
#BuildRequires:	pandoc
BuildRequires:	python3egg(fuse-python)
BuildRequires:	python3egg(tornado)
BuildRequires:	python3egg(xattr)
BuildRequires:	pkgconfig(libacl)
BuildRequires:	pkgconfig(python3) >= 3.7
BuildRequires:	pkgconfig(readline)
Requires:	git
Requires:	python3-fuse
Requires:	python3-tornado
Requires:	python3-xattr
# Needed for "bup fschk", but it's in Contrib
Recommends:		par2cmdline

%description
Bup is a very efficient backup system based on the git pack file format,
providing fast incremental saves and global de-duplication (among and within
files, including virtual machine images).

%files
%{_bindir}/%{name}
# This path seems to be hardcoded so using %%_libdir woud require testing:
# just leave it like that for now...
%{_prefix}/lib/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%ifarch %{e2k}
# Fix "unrecognized #pragma" errors on compilation _helpers.c
export CFLAGS='%{optflags} -Wunknown-pragmas'
%endif
./configure
%make


%install
%makeinstall_std PREFIX="%{_prefix}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12172 |21mr|busybox-1.36.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}
%define _ssp_cflags %{nil}


%if %{mdvver} >= 201910
%ifnarch %{e2k}
%define cflags %{optflags} -Oz
%else
%define cflags %{optflags} -O3
%endif
%else
%define cflags %{optflags}
%endif

Summary:	Multi-call binary combining many common Unix tools into one executable
Name:		busybox
Version:	1.36.1
Release:	3
Epoch:		1
License:	GPLv2
Group:		Shells
URL:		http://www.busybox.net/
Source0:	http://www.busybox.net/downloads/%{name}-%{version}.tar.bz2
Source2:	busybox-1.35.0-config
Source3:	busybox-1.35.0-minimal-config
Patch1:		busybox-i.15.2-no-march_i386.patch
Patch12:	busybox-1.2.2-ls.patch
# the default behaviour of busybox' pidof implementation is same as for
# 'pidof -x' from the standard implementation, so let's just make it
# ignore -x in stead of returning error
Patch17:	busybox-1.20.2-pidof-x-argument.patch
BuildRequires:	pkgconfig(libxcrypt)
BuildRequires:	glibc-static-devel
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	%{_lib}atomic-static-devel
BuildRequires:	%{_lib}crypt-static-devel

%description
BusyBox combines tiny versions of many common UNIX utilities into a
single small executable. It provides minimalist replacements for most
of the utilities you usually find in GNU coreutils, shellutils, etc.
The utilities in BusyBox generally have fewer options than their
full-featured GNU cousins; however, the options that are included provide
the expected functionality and behave very much like their GNU counterparts.
BusyBox provides a fairly complete POSIX environment for any small or
embedded system.

BusyBox has been written with size-optimization and limited resources in
mind. It is also extremely modular so you can easily include or exclude
commands (or features) at compile time. This makes it easy to customize
your embedded systems. To create a working system, just add /dev, /etc,
and a kernel.

%package static
Group:		Shells
Summary:	Static linked busybox

%description static
This package contains a static linked busybox.

%prep
%autosetup -p1

# respect cflags
%if "%(basename %{__cc})" == "clang"
sed -i -e 's:-static-libgcc::' Makefile.flags
# flag cleanup
sed -i -r -e 's:[[:space:]]?-(Werror|Os|falign-(functions|jumps|loops|labels)=1|finline-limit=0|fomit-frame-pointer)\>::g' Makefile.flags
sed -i '/^#error Aborting compilation./d' applets/applets.c
sed -i 's:-Wl,--gc-sections::' Makefile

sed -i \
	-e "/^CROSS_COMPILE/s:=.*:= %{__cc}:" \
	-e "/^AR\>/s:=.*:= %{__ar}:" \
	-e "/^CC\>/s:=.*:= %{__cc}:" \
	-e "/^HOSTCC/s:=.*:= %{__cc}:" \
	Makefile
%endif

%ifarch %{e2k}
sed -i '/lib-y +=.*shaNI/d' libbb/Kbuild.src
sed -i '/lib-y +=.*hash_md5_sha_x86-64*/d' libbb/Kbuild.src
%endif

%build
mkdir -p full.static
cd full.static
cp %{SOURCE2} .config
%ifarch aarch64
sed -e 's!CONFIG_FEATURE_HAVE_RPC=y!CONFIG_FEATURE_HAVE_RPC=n!g' .config
sed -e 's!CONFIG_FEATURE_INETD_RPC=y!CONFIG_FEATURE_INETD_RPC=n!g' .config
%endif
yes "" | %make oldconfig V=1 KBUILD_SRC=.. -f ../Makefile
%make_build CC=%{__cc} STRIP="%{__strip}" LDFLAGS="%{ldflags}" V=1 CONFIG_STATIC=y CONFIG_EXTRA_CFLAGS="%{cflags}" KBUILD_SRC=.. -f ../Makefile
cd -

mkdir -p full
cd full
cp %{SOURCE2} .config
%ifarch aarch64
sed -e 's!CONFIG_FEATURE_HAVE_RPC=y!CONFIG_FEATURE_HAVE_RPC=n!g' .config
sed -e 's!CONFIG_FEATURE_INETD_RPC=y!CONFIG_FEATURE_INETD_RPC=n!g' .config
%endif
yes "" | %make oldconfig V=1 KBUILD_SRC=.. -f ../Makefile
%make_build CC=%{__cc} STRIP="%{__strip}" LDFLAGS="%{ldflags}" V=1 CONFIG_STATIC=n CONFIG_EXTRA_CFLAGS="%{cflags}" KBUILD_SRC=.. -f ../Makefile
cd -

%check
# FIXME
%if 0
%make CC=%{__cc} V=1 check
%endif

%install
install -m755 full/busybox_unstripped -D %{buildroot}%{_bindir}/busybox

%if %{mdvver} < 202310
install -m755 full.static/busybox_unstripped -D %{buildroot}/bin/busybox.static
%else
install -m755 full.static/busybox_unstripped -D %{buildroot}%{_bindir}/busybox.static
%endif

%files
%doc AUTHORS README TODO
%{_bindir}/busybox

%files static
%doc AUTHORS README TODO
%if %{mdvver} < 202310
/bin/busybox.static
%else
%{_bindir}/busybox.static
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12173 |21mr|bval-2.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}

# https://bugzilla.redhat.com/show_bug.cgi?id=1289726
# https://issues.apache.org/jira/browse/BVAL-142
# https://issues.apache.org/jira/browse/WEAVER-10
%bcond_with commons-weaver

Name:          bval
Version:       2.0.3
Release:       2
Summary:       Apache Bean Validation
License:       ASL 2.0
Url:           http://bval.apache.org/
Source0:       http://www.apache.org/dist/bval/%{namedversion}/%{name}-parent-%{namedversion}-source-release.zip
Group:         Development/Java
BuildRequires: maven-local
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(com.thoughtworks.xstream:xstream)
BuildRequires: mvn(commons-beanutils:commons-beanutils-core)
BuildRequires: mvn(javax.annotation:javax.annotation-api)
BuildRequires: mvn(javax.el:javax.el-api)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.commons:commons-lang3)
%if %{with commons-weaver}
BuildRequires: mvn(org.apache.commons:commons-weaver-privilizer)
BuildRequires: mvn(org.apache.commons:commons-weaver-privilizer-api)
BuildRequires: mvn(org.apache.commons:commons-weaver-processor)
BuildRequires: mvn(org.apache.commons:commons-weaver-maven-plugin)
%endif
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-interceptor_3.0_spec)
BuildRequires: mvn(org.apache.tomcat:tomcat-jasper-el)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs-parent:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.rat:apache-rat-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:jaxb2-maven-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-report-plugin)
BuildRequires: mvn(org.freemarker:freemarker)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(xpp3:xpp3)
BuildRequires: openjfx-devel
BuildRequires: java-1.8.0-openjdk-openjfx

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache BVal delivers an implementation of the Bean Validation
Specification (JSR-303 and JSR-346), which is TCK compliant and
works on Java SE 5 or later. The initial codebase for the
project was donated to the ASF by a SGA from Agimatec GmbH.

%package extras
Summary:       Apache BVal :: Extras

%description extras
BVal - non-JSR303 routines and constraints.

%package jsr
Summary:       Apache BVal :: JSR 349

%description jsr
Implementation specific classes for JSR 349 Bean Validation 1.1.

%package parent
Summary:       Apache BVal :: Parent POM

%description parent
Apache BVal Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-parent-%{namedversion}
find . -name "*.class" -delete
find . -name "*.jar" -delete
# The old schemas break a build for some reason
rm bval-jsr/src/main/xsd/validation-configuration-1.0.xsd
rm bval-jsr/src/main/xsd/validation-configuration-1.1.xsd
rm bval-jsr/src/main/xsd/validation-mapping-1.0.xsd
rm bval-jsr/src/main/xsd/validation-mapping-1.1.xsd

%pom_disable_module bval-tck
%pom_disable_module bundle

%pom_xpath_remove pom:Embed-Dependency bundle

%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin org.codehaus.mojo:ianal-maven-plugin
%pom_remove_plugin org.codehaus.mojo:jdepend-maven-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :maven-scm-publish-plugin
%pom_remove_plugin -r :sigtest-maven-plugin

%pom_remove_dep -r org.glassfish:javax.el
%pom_remove_dep -r de.odysseus.juel:juel-api

%if %{without commons-weaver}
# Remove commons-weaver support
%pom_remove_plugin -r :commons-weaver-maven-plugin
%pom_remove_dep -r :commons-weaver-privilizer-api
sed -i '/Privilizing/d' \
 bval-jsr/src/main/java/org/apache/bval/jsr/ApacheFactoryContext.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorFactory.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/ConfigurationImpl.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/ConstraintAnnotationAttributes.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/ConstraintDefaults.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/DefaultMessageInterpolator.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/DefaultValidationProviderResolver.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/resolver/DefaultTraversableResolver.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/util/Methods.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/util/AnnotationProxyBuilder.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/util/AnnotationsManager.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/job/ComputeConstraintValidatorClass.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/descriptor/MetadataReader.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/descriptor/PropertyD.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/metadata/HierarchyBuilder.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/metadata/XmlBuilder.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/metadata/ClassLoadingValidatorMappingProvider.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/metadata/ReflectionBuilder.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/xml/ValidationMappingParser.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/xml/MappingValidator.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/xml/ValidationParser.java \
 bval-jsr/src/main/java/org/apache/bval/util/reflection/Reflection.java \
 bval-jsr/src/main/java/org/apache/bval/util/BValVersion.java
sed -i '/Privileged/d' \
 bval-jsr/src/main/java/org/apache/bval/jsr/ApacheValidatorFactory.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/ConfigurationImpl.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/xml/ValidationMappingParser.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/xml/ValidationParser.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/ParticipantFactory.java \
 bval-jsr/src/main/java/org/apache/bval/jsr/util/AnnotationProxyBuilder.java \
%endif

%pom_change_dep -r :geronimo-atinject_1.0_spec javax.inject:javax.inject:1
%pom_change_dep -r :geronimo-interceptor_1.2_spec :geronimo-interceptor_3.0_spec
# https://bugzilla.redhat.com/show_bug.cgi?id=1276632
%pom_change_dep -r :geronimo-jcdi_2.0_spec javax.enterprise:cdi-api:2.0
%pom_change_dep -r :geronimo-jpa_2.0_spec org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Draft-16

%mvn_alias :bval-jsr :bval-jsr303
%mvn_package ":{*}::tests:" @1

%build

%mvn_build -f -s -- -Dri -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install 

%files
%doc CHANGES.txt README.txt RELEASE-NOTES.adoc
%license LICENSE NOTICE

%files extras -f .mfiles-%{name}-extras
%files jsr -f .mfiles-%{name}-jsr
%files parent -f .mfiles-%{name}-parent
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12174 |21mr|bwidget-1.9.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Extended widget set for Tk
Name:		bwidget
Version:	1.9.14
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://tcllib.sourceforge.net/
Source0:	http://downloads.sourceforge.net/tcllib/%{name}-%{version}.tar.gz
Requires:	tcl
Requires:	tk
BuildRequires:	pkgconfig(tcl)
BuildArch:	noarch

%description
An extended widget set for Tcl/Tk.

%files
%doc README.txt LICENSE.txt
%doc BWman/*.html
%defattr(-,root,root,0755)
%{tcl_sitelib}/%{name}%{version}

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i 's/\r//' LICENSE.txt BWman/*.html

%build

%install
# Don't bother with the included configure script and Makefile.  They
# are missing a lot of pieces and won't work at all.  Installation is
# pretty simple, so we can just do it here manually.
mkdir -p %{buildroot}%{tcl_sitelib}/%{name}%{version}/
mkdir -p %{buildroot}%{tcl_sitelib}/%{name}%{version}/lang
mkdir -p %{buildroot}%{tcl_sitelib}/%{name}%{version}/images

install -m 0644 -pD *.tcl %{buildroot}%{tcl_sitelib}/%{name}%{version}/
install -m 0644 -pD lang/*.rc %{buildroot}%{tcl_sitelib}/%{name}%{version}/lang/
install -m 0644 -pD images/*.gif images/*.xbm %{buildroot}%{tcl_sitelib}/%{name}%{version}/images/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12175 |21mr|byacc-20210109-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A public domain Yacc parser generator
Name:		byacc
Version:	20210109
Release:	1
License:	Public Domain
Group:		Development/Tools
Url:		http://invisible-island.net/byacc/byacc.html
# old source: ftp://ftp.cs.berkeley.edu/ucb/4bsd/
Source0:	ftp://invisible-island.net/byacc/%{name}-%{version}.tgz

%description
Byacc (Berkeley Yacc) is a public domain LALR parser generator which
is used by many programs during their build process.

If you are going to do development on your system, you will want to
install either this package or bison. Berkeley Yacc is regarded as a
better parser, while bison is more widely used under GNU world.

%files
%defattr(0644,root,root,0755)
%doc ACKNOWLEDGEMENTS CHANGES NEW_FEATURES NOTES NO_WARRANTY README
%attr(0755,root,root) %{_bindir}/byacc
%{_mandir}/man1/*

%post
%{_sbindir}/update-alternatives --install %{_bindir}/yacc yacc %{_bindir}/byacc 20

%preun
if [ $1 -eq 0 ]; then
	%{_sbindir}/update-alternatives --remove yacc %{_bindir}/byacc
fi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

mv %{buildroot}%{_bindir}/{yacc,byacc}
ln -s yacc.1 %{buildroot}%{_mandir}/man1/byacc.1

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12176 |21mr|byaccj-1.15-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Parser Generator with Java Extension
Name:           byaccj
Version:        1.15
Release:        6
Epoch:          0
License:        Public Domain
URL:            http://byaccj.sourceforge.net/
Group:          Development/Java
Source0:        http://downloads.sourceforge.net/byaccj/byaccj%{version}_src.tar.gz
Requires:       man-pages

%description
BYACC/J is an extension of the Berkeley v 1.8 YACC-compatible 
parser generator. Standard YACC takes a YACC source file, and 
generates one or more C files from it, which if compiled properly, 
will produce a LALR-grammar parser. This is useful for expression 
parsing, interactive command parsing, and file reading. Many 
megabytes of YACC code have been written over the years.
This is the standard YACC tool that is in use every day to produce 
C/C++ parsers. I have added a "-J" flag which will cause BYACC to 
generate Java source code, instead. So there finally is a YACC for 
Java now! 

%prep
%setup -q -n %{name}%{version}

%build
pushd src
perl -i.bak -lp -e 's{(\$\(CC\) -o yacc).*?(\$\(OBJ\))}{$1 \$(LDFLAGS) $2}' Makefile
%make CC=%{__cc} CFLAGS="%{optflags}" LDFLAGS="%{optflags}" linux
popd

sed -i 's/\r//g' docs/tf.y

%install

# manual
install -d -m 755 %{buildroot}%{_mandir}/man1
mv docs/yacc.cat %{buildroot}%{_mandir}/man1

# jars
mkdir -p %{buildroot}%{_bindir}
cp -p src/yacc.linux \
  %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
cp -p docs/* %{buildroot}%{_docdir}/%{name}-%{version}
cp -p src/README %{buildroot}%{_docdir}/%{name}-%{version}

%clean

%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}
%{_mandir}/man1/yacc.cat*
%attr(755, root, root) %{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12177 |21mr|byte-buddy-1.9.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# Byte Buddy requires itself to build, so set this flag
# to break the bootstrap cycle
%bcond_with bootstrap

Name:          byte-buddy
Version:       1.9.5
Release:       7
Summary:       Runtime code generation for the Java virtual machine
License:       ASL 2.0
URL:           http://bytebuddy.net/
Source0:       https://github.com/raphw/byte-buddy/archive/%{name}-%{version}.tar.gz

# Patch out use of a unixsocket lib that is not in Fedora
Patch0:         no-unixsocket.patch

# Patch the build to avoid bundling inside shaded jars
Patch1:         avoid-bundling-asm.patch

BuildRequires:  maven-local
%if %{without bootstrap}
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.bytebuddy:byte-buddy)
BuildRequires:  mvn(net.bytebuddy:byte-buddy-dep)
BuildRequires:  mvn(net.bytebuddy:byte-buddy-maven-plugin)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.ow2.asm:asm-analysis)
BuildRequires:  mvn(org.ow2.asm:asm-util)
%endif
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-util)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-commons)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Byte Buddy is a code generation library for creating Java classes during the
runtime of a Java application and without the help of a compiler. Other than
the code generation utilities that ship with the Java Class Library, Byte Buddy
allows the creation of arbitrary classes and is not limited to implementing
interfaces for the creation of runtime proxies. 

%package agent
Summary: Byte Buddy Java agent

%description agent
The Byte Buddy Java agent allows to access the JVM's HotSwap feature.

%package maven-plugin
Summary: Byte Buddy Maven plugin

%description maven-plugin
A plugin for post-processing class files via Byte Buddy in a Maven build.

%package parent
Summary: Byte Buddy parent POM

%description parent
The parent artifact contains configuration information that
concern all modules.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0
%patch1

# Remove pre-built jars
find -name *.jar -delete
find -name *.class -delete

# Cause pre-compiled stuff to be re-compiled
mv byte-buddy-dep/src/precompiled/java/net/bytebuddy/build/*.java \
  byte-buddy-dep/src/main/java/net/bytebuddy/build
mkdir -p byte-buddy-dep/src/test/java/net/bytebuddy/test/precompiled/
mv byte-buddy-dep/src/precompiled/java/net/bytebuddy/test/precompiled/*.java \
  byte-buddy-dep/src/test/java/net/bytebuddy/test/precompiled/

# Don't ship android or benchmark modules
%pom_disable_module byte-buddy-android
%pom_disable_module byte-buddy-benchmark

# Don't ship gradle plugin
%pom_disable_module byte-buddy-gradle-plugin

# Remove check plugins unneeded by RPM builds
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_plugin :license-maven-plugin
%pom_remove_plugin :pitest-maven
%pom_remove_plugin :coveralls-maven-plugin
%pom_remove_plugin :spotbugs-maven-plugin
%pom_remove_plugin :jitwatch-jarscan-maven-plugin
%pom_remove_plugin :clirr-maven-plugin
%pom_remove_plugin :maven-release-plugin

# Not interested in shading sources (causes NPE on old versions of shade plugin)
%pom_xpath_set "pom:createSourcesJar" "false" byte-buddy

# Drop build dep on findbugs annotations, used only by the above check plugins
%pom_remove_dep :findbugs-annotations
sed -i -e '/SuppressFBWarnings/d' $(grep -lr SuppressFBWarnings)

# Plugin for generating Java 9 module-info file is not in Fedora
%pom_remove_plugin -r :modulemaker-maven-plugin

%if %{with bootstrap}
# Remove circular self-dependency to allow bootstrapping
%pom_remove_plugin :byte-buddy-maven-plugin byte-buddy-dep
%endif

%build
%if %{with bootstrap}
# Cannot run the test suite in bootstrap mode due to circular dep
# on self and mockito
%mvn_build -s -f -- -P'java8,!checks'
%else
# Ignore test failures, there seems to be something different about the
# bytecode of our recompiled test resources, expect 6 test failures in
# the byte-buddy-dep module
%mvn_build -s -- -P'java8,!checks' -Dsourcecode.test.version=1.8 -Dmaven.test.failure.ignore=true
%endif

%install
%mvn_install

%files -f .mfiles-%{name} -f .mfiles-%{name}-dep
%doc README.md release-notes.md
%license LICENSE NOTICE

%files agent -f .mfiles-%{name}-agent
%license LICENSE NOTICE

%files maven-plugin -f .mfiles-%{name}-maven-plugin

%files parent -f .mfiles-%{name}-parent
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12178 |21mr|bytecode-compatibility-transformer-1.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           bytecode-compatibility-transformer
Version:        1.7
Release:        8
Summary:        Evolve modular codebase without losing compatibility

# License is specified in pom.xml
License:        MIT
URL:            https://github.com/jenkinsci/bytecode-compatibility-transformer
Source0:        https://github.com/jenkinsci/%{name}/archive/%{name}-%{version}.zip
# Taken from http://opensource.org/licenses/mit-license.php
Source1:        LICENSE.txt

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.jenkins-ci:annotation-indexer)
BuildRequires:  mvn(org.jenkins-ci:constant-pool-scanner)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.apache.ivy:ivy)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This Java library provides a set of annotations and bytecode transformer
that helps you evolve modular codebase without losing compatibility.

%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_change_dep org.kohsuke:asm5 org.ow2.asm:asm-all
find . -name "*.java" -exec sed -i 's|org\.kohsuke\.asm5\.|org.objectweb.asm.|g' {} +

cp %{SOURCE1} .

%pom_remove_parent
%pom_xpath_inject pom:project "<groupId>org.jenkins-ci</groupId>"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12179 |21mr|bytelist-1.0.8-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global  git_commit d0ec879
%global  cluster jruby

# Prevent brp-java-repack-jars from being run.
%define __jar_repack %{nil}

Name:           bytelist
Version:        1.0.8
Release:        18
Summary:        A java library for lists of bytes
Group:          Development/Java
License:        CPL or GPLv2+ or LGPLv2+
URL:            http://github.com/%{cluster}/%{name}
Source0:        http://download.github.com/%{cluster}-%{name}-%{version}-0-g%{git_commit}.tar.gz

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  java-devel
BuildRequires:  jcodings
BuildRequires:  jpackage-utils
BuildRequires:  javapackages-local
BuildRequires:  junit

Requires:       java-headless
Requires:       jcodings
Requires:       jpackage-utils


%description
A small java library for manipulating lists of bytes.


%prep
%setup -q -n %{cluster}-%{name}-%{git_commit}

find -name '*.class' -delete
find -name '*.jar' -delete


%build
echo "See %{url} for more info about the %{name} project." > README.txt

export CLASSPATH=$(build-classpath junit jcodings)
mkdir -p lib
%ant


%install
mkdir -p %{buildroot}%{_javadir}

cp -p lib/%{name}-1.0.2.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar

%check
export CLASSPATH=$(build-classpath junit jcodings)
%ant test

%files
%{_javadir}/*
%{_mavenpomdir}/*
%{_datadir}/maven-metadata/%{name}.xml
%doc README.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12180 |21mr|byteman-4.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Note to the interested reader:
#   fedpkg mockbuild --without tests
# will make mvn_build macro skip tests.
# See: https://github.com/fedora-java/javapackages/issues/62

%global javacup_or_asm java_cup:java_cup|org\\.ow2\\.asm:asm.*
# Don't have generated mvn()-style requires for java_cup or asm
%global mvn_javacup_or_asm_matcher .*mvn\\(%{javacup_or_asm}\\)
# Don't have generated requires for java-headless >= 1:1.9
%global java_headless_matcher java-headless >= 1:(1\\.9|9)
%global __requires_exclude ^%{mvn_javacup_or_asm_matcher}|%{java_headless_matcher}$

%global homedir %{_datadir}/%{name}
%global bindir %{homedir}/bin

Name:             byteman
Version:          4.0.5
Release:          4
Summary:          Java agent-based bytecode injection tool
License:          LGPLv2+
URL:              http://www.jboss.org/byteman
# wget -O 4.0.5.tar.gz https://github.com/bytemanproject/byteman/archive/4.0.5.tar.gz
Source0:          https://github.com/bytemanproject/byteman/archive/%{version}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Byteman 4.x requires JDK 9+ to build. Require JDK 10 explicitly.
BuildRequires:    java-11-openjdk-devel
BuildRequires:    maven-local
BuildRequires:    maven-shade-plugin
BuildRequires:    maven-source-plugin
BuildRequires:    maven-plugin-plugin
BuildRequires:    maven-plugin-bundle
BuildRequires:    maven-assembly-plugin
BuildRequires:    maven-failsafe-plugin
BuildRequires:    maven-jar-plugin
BuildRequires:    maven-surefire-plugin
BuildRequires:    maven-surefire-provider-testng
BuildRequires:    maven-surefire-provider-junit
BuildRequires:    maven-verifier-plugin
BuildRequires:    maven-dependency-plugin
BuildRequires:    java_cup
BuildRequires:    jarjar
BuildRequires:    objectweb-asm
BuildRequires:    junit
BuildRequires:    testng
# JBoss modules byteman plugin requires it
BuildRequires:    mvn(org.jboss.modules:jboss-modules)

Provides:         bundled(objectweb-asm) = 7.0
Provides:         bundled(java_cup) = 1:0.11b-8
# We are filtering java-headless >= 1:1.9 requirement. Add
# JDK 8 requirement here explicitly which shouldn't match the filter.
Requires:         java-headless >= 1:1.8

# Related pieces removed via pom_xpath_remove macros
Patch1:           remove_submit_integration_test_verification.patch

%description
Byteman is a tool which simplifies tracing and testing of Java programs.
Byteman allows you to insert extra Java code into your application,
either as it is loaded during JVM startup or even after it has already
started running. The injected code is allowed to access any of your data
and call any application methods, including where they are private.
You can inject code almost anywhere you want and there is no need to
prepare the original source code in advance nor do you have to recompile,
repackage or redeploy your application. In fact you can remove injected
code and reinstall different code while the application continues to execute.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%package rulecheck-maven-plugin
Summary:          Maven plugin for checking Byteman rules

%description rulecheck-maven-plugin
This package contains the Byteman rule check maven plugin.

%package bmunit
Summary:          TestNG and JUnit integration for Byteman

%description bmunit
The Byteman bmunit jar provides integration of Byteman into
TestNG and JUnit tests.

%package dtest
Summary:          Remote byteman instrumented testing

%description dtest
The Byteman dtest jar supports instrumentation of test code executed on
remote server hosts and validation of assertions describing the expected
operation of the instrumented methods.

%prep
%setup -q -n byteman-%{version}

# Fix the gid:aid for java_cup
sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" agent/pom.xml
sed -i "s|java-cup|java_cup|" agent/pom.xml
sed -i "s|net.sf.squirrel-sql.thirdparty-non-maven|java_cup|" tests/pom.xml
sed -i "s|java-cup|java_cup|" tests/pom.xml

# Remove Submit integration test invocations (agent)
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit']" agent
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit.compiled']" agent
%patch1 -p2

# Remove Submit integration test invocations (tests)
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit']" tests
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-failsafe-plugin']/pom:executions/pom:execution[pom:id='submit.TestSubmit.compiled']" tests

# Remove scope=system and systemPath for com.sun:tools
%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:scope" install
%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:systemPath" install
%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:scope" contrib/bmunit
%pom_xpath_remove "pom:profiles/pom:profile/pom:dependencies/pom:dependency[pom:artifactId='tools']/pom:systemPath" contrib/bmunit

# Some tests fail intermittently during builds. Disable them.
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:executions" contrib/bmunit
%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" '<skip>true</skip>' contrib/bmunit

# Don't build download, docs modules
%pom_disable_module download
%pom_disable_module docs

# Don't use javadoc plugin, use XMvn for javadocs
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_xpath_remove 'pom:execution[pom:id="make-javadoc-assembly"]' byteman

# Put byteman-rulecheck-maven-plugin into a separate package
%mvn_package ":byteman-rulecheck-maven-plugin" rulecheck-maven-plugin
# Put byteman-bmunit/byteman-dtest into a separate packages since they
# runtime require junit
%mvn_package ":byteman-bmunit" bmunit
%mvn_package ":byteman-dtest" dtest

%build
export JAVA_HOME=/usr/lib/jvm/java-11-openjdk
# Use --xmvn-javadoc so as to avoid maven-javadoc-plugin issue
# (fixed in 3.1.0, fedora has 3.0.1):
# See https://issues.apache.org/jira/browse/MJAVADOC-555
#     https://bugs.openjdk.java.net/browse/JDK-8212233
%mvn_build -f --xmvn-javadoc

%install
%mvn_install

install -d -m 755 $RPM_BUILD_ROOT%{_bindir}

install -d -m 755 $RPM_BUILD_ROOT%{homedir}
install -d -m 755 $RPM_BUILD_ROOT%{homedir}/lib
install -d -m 755 $RPM_BUILD_ROOT%{bindir}

install -m 755 bin/bmsubmit.sh $RPM_BUILD_ROOT%{bindir}/bmsubmit
install -m 755 bin/bminstall.sh  $RPM_BUILD_ROOT%{bindir}/bminstall
install -m 755 bin/bmjava.sh  $RPM_BUILD_ROOT%{bindir}/bmjava
install -m 755 bin/bmcheck.sh  $RPM_BUILD_ROOT%{bindir}/bmcheck

for f in bmsubmit bmjava bminstall bmcheck; do
cat > $RPM_BUILD_ROOT%{_bindir}/${f} << EOF
#!/bin/sh

export BYTEMAN_HOME=/usr/share/byteman
export JAVA_HOME=/usr/lib/jvm/java

\$BYTEMAN_HOME/bin/${f} \$*
EOF
done

chmod 755 $RPM_BUILD_ROOT%{_bindir}/*

for m in bmunit dtest install sample submit; do
  ln -s %{_javadir}/byteman/byteman-${m}.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman-${m}.jar
done

# Create contrib/jboss-module-system structure since bminstall expects it
# for the -m option.
install -d -m 755 $RPM_BUILD_ROOT%{homedir}/contrib
install -d -m 755 $RPM_BUILD_ROOT%{homedir}/contrib/jboss-modules-system
ln -s %{_javadir}/byteman/byteman-jboss-modules-plugin.jar $RPM_BUILD_ROOT%{homedir}/contrib/jboss-modules-system/byteman-jboss-modules-plugin.jar

ln -s %{_javadir}/byteman/byteman.jar $RPM_BUILD_ROOT%{homedir}/lib/byteman.jar

%files -f .mfiles
%{homedir}/lib/byteman.jar
%{homedir}/lib/byteman-install.jar
%{homedir}/lib/byteman-sample.jar
%{homedir}/lib/byteman-submit.jar
%{homedir}/contrib/*
%{bindir}/*
%{_bindir}/*
%doc README
%license docs/copyright.txt

%files javadoc -f .mfiles-javadoc
%license docs/copyright.txt

%files rulecheck-maven-plugin -f .mfiles-rulecheck-maven-plugin
%license docs/copyright.txt

%files bmunit -f .mfiles-bmunit
%license docs/copyright.txt
%{homedir}/lib/byteman-bmunit.jar

%files dtest -f .mfiles-dtest
%license docs/copyright.txt
%{homedir}/lib/byteman-dtest.jar


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12181 |21mr|bzip2-1.0.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

%bcond_with pdf

Summary:	Extremely powerful file compression utility
Name:		bzip2
Version:	1.0.8
Release:	3
License:	BSD
Group:		Archiving/Compression
Url:		http://www.bzip.org/index.html
Source0:	https://sourceware.org/pub/bzip2/bzip2-%{version}.tar.gz
Source1:	bzgrep
Source2:	bzme
Source3:	bzme.1
Source4:	bzip2.pc
Patch0:		bzip2-1.0.6-makefile.diff
Patch1:		bzip2-1.0.6-improve-makefile.patch
Patch2:		build_good-so-lib.patch
# (tpg) ClearLinux Patches
Patch10:	https://raw.githubusercontent.com/clearlinux-pkgs/bzip2/master/0001-Improve-file-access.patch
BuildRequires:	libtool
BuildRequires:	texinfo
%if %{with pdf}
BuildRequires:	tetex-dvips
BuildRequires:	tetex-latex
%endif
Requires:	mktemp
Requires:	%{libname} = %{version}-%{release}

%description
Bzip2 compresses files using the Burrows-Wheeler block-sorting text
compression algorithm, and Huffman coding. Compression is generally
considerably better than that achieved by more conventional LZ77/LZ78-based
compressors, and approaches the performance of the PPM family of statistical
compressors.

The command-line options are deliberately very similar to those of GNU Gzip,
but they are not identical.

%files
%doc README LICENSE CHANGES
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for developing apps which will use bzip2
Group:		System/Libraries
# manual provides for symlinks
# because soname is different on Debian/Ubuntu
# and we need compatibility with binaries built where
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9286
Provides:	libbz2.so.1.0%{_arch_tag_suffix}
Provides:	libbz2.so.%{version}%{_arch_tag_suffix}

%description -n %{libname}
Library of bzip2 functions, for developing apps which will use the
bzip2 library (aka libz2).

%files -n %{libname}
%doc LICENSE
/%{_lib}/libbz2.so.%{major}
/%{_lib}/libbz2.so.%{major}.0
/%{_lib}/libbz2.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for developing apps which will use bzip2
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname bzip2_ 1 -d} < 1.0.5-3

%description -n %{devname}
Header files and static library of bzip2 functions, for developing apps which
will use the bzip2 library (aka libz2).

%files -n %{devname}
%doc *.html LICENSE
%if %{with pdf}
%doc manual.pdf
%endif
%{_libdir}/libbz2.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

echo "lib = %{_lib}" >> config.in
echo "CFLAGS = %{optflags}" >> config.in
echo "LDFLAGS = %{ldflags}" >> config.in

cp %{SOURCE1} bzgrep
cp %{SOURCE2} bzme
cp %{SOURCE3} bzme.1
cp %{SOURCE4} bzip2.pc
sed -i "s|^libdir=|libdir=%{_libdir}|" bzip2.pc
sed -i "s|@VERSION@|%{version}|" bzip2.pc

%build
%make -f Makefile-libbz2_so
%make

%if %{with pdf}
texi2dvi --pdf manual.texi
%endif

%install
%make_install -f Makefile-libbz2_so
make install-bin install-dev -f Makefile DESTDIR=%{buildroot}

install -m755 %{SOURCE1} -D %{buildroot}%{_bindir}/bzgrep
install -m755 %{SOURCE2} -D %{buildroot}%{_bindir}/bzme
install -m644 %{SOURCE3} -D %{buildroot}%{_mandir}/man1/bzme.1
mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -m0644 bzip2.pc %{buildroot}%{_libdir}/pkgconfig

cat > %{buildroot}%{_bindir}/bzless <<EOF
#!/bin/sh
%{_bindir}/bunzip2 -c "\$@" | %{_bindir}/less
EOF
chmod 755 %{buildroot}%{_bindir}/bzless

# Compatibility with Debian, Ubuntu and logics
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9286
# https://stackoverflow.com/a/10586169
# bashisms :(
IFS='.' read -r -a array <<< %{version}
buildroot_lib="%{buildroot}/%{_lib}"
cur_name="libbz2.so" #cur_name - current name
for index in "${!array[@]}"
do
	#echo "$index ${array[index]}"
	if [ "$index" != '0' ]
	then
		cur_name="${cur_name}.${array[index]}"
		[ ! -f "${buildroot_lib}/${cur_name}" ] && \
		ln -sr "${buildroot_lib}/${cur_name_major}" "${buildroot_lib}/${cur_name}"
	else
		cur_name_major="${cur_name}.${array[index]}"
		[ -f "${buildroot_lib}/${cur_name_major}" ] || exit 1
		cur_name="${cur_name_major}"
	fi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12182 |21mr|bzrtp-5.1.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	ZRTP library
Name:		bzrtp
Version:	5.1.55
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/BelledonneCommunications/%{name}
Source0:	https://github.com/BelledonneCommunications/bzrtp/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		cmake-config-location.patch
Patch1:		DEBIAN-install-pkgconfig.patch
BuildRequires:	pkgconfig(bctoolbox)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	cmake

%description
BZRTP is an opensource implementation of ZRTP keys exchange protocol.
The library written in C 89 is fully portable and can be executed on
many platforms including both ARM processor and x86.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	ZRTP library
Group:		System/Libraries

%description -n %{libname}
BZRTP is an opensource implementation of ZRTP keys exchange protocol.
The library written in C 89 is fully portable and can be executed on
many platforms including both ARM processor and x86.

%files -n %{libname}
%doc LICENSE* README.md
%{_libdir}/libbzrtp.so.%{major}*

#------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc LICENSE* README.md
%{_libdir}/libbzrtp.so
%{_libdir}/pkgconfig/libbzrtp.pc
%{_libdir}/cmake/*/*
%{_includedir}/%{name}

#------------------------------------------------------

%prep
%autosetup -p1
#fix version in .pc file
sed -i 's/@PACKAGE_VERSION@/%{version}/' libbzrtp.pc.in

%build
%cmake \
	-DENABLE_STRICT:BOOL=NO \
	-DENABLE_SHARED:BOOL=TRUE \
	-DENABLE_STATIC:BOOL=FALSE

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12183 |21mr|c3p0-0.9.5.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    c3p0
Version: 0.9.5.4
Release: 2
Summary: JDBC DataSources/Resource Pools
License: LGPLv2 or EPL
URL:     https://github.com/swaldman/c3p0

BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: mchange-commons >= 0.2.7

Requires: mchange-commons >= 0.2.7

Source0: https://github.com/swaldman/c3p0/archive/c3p0-%{version}.tar.gz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
c3p0 is an easy-to-use library for augmenting traditional JDBC drivers with
JNDI-bindable DataSources, including DataSources that implement Connection
and Statement Pooling, as described by the jdbc3 spec and jdbc2 standard
extension.

%package  javadoc
Summary:  API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{name}-%{version}

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

# remove manifest classpath
sed -i -e "/Class-Path/d" build.xml

%build
ant \
  -Dbuild.sysclasspath=first \
  -Dmchange-commons-java.jar.file=$(build-classpath mchange-commons-java) \
  jar javadoc

sed -i -e "s|@c3p0.version.maven@|%{version}|g" \
  -e "s|@mchange-commons-java.version.maven@|0.2.7|g" \
  src/maven/pom.xml

%mvn_artifact src/maven/pom.xml build/c3p0-%{version}.jar
%mvn_alias : c3p0:c3p0

%install
%mvn_install

install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr build/apidocs/* %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%doc src/dist-static/LICENSE*
%doc src/dist-static/RELEASE*
%doc src/dist-static/CHANGELOG
%doc src/dist-static/README
%doc src/doc/index.html

%files javadoc
%doc src/dist-static/LICENSE*
%{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12184 |21mr|cabextract-1.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program to extract Microsoft Cabinet files
Name:		cabextract
Version:	1.9.1
Release:	1
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://www.cabextract.org.uk
Source0:	http://www.cabextract.org.uk/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libmspack)
BuildRequires:	gettext-devel

%description
Cabinet (.CAB) files are a form of archive, which Microsoft use to distribute
their software, and things like Windows Font Packs. The cabextract program
simply unpacks such files.

%files
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/cabextract
%{_mandir}/man1/cabextract.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-external-libmspack
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12185 |21mr|caffeine-2.3.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# depend on guava 20.0 RHBZ#1307246
%bcond_with guava
%bcond_with jcache

Name:		caffeine
Version:	2.3.5
Release:	7
Summary:	High performance, near optimal caching library based on Java 8

License:	ASL 2.0
URL:		https://github.com/ben-manes/%{name}
Source0:	https://github.com/ben-manes/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	https://repo1.maven.org/maven2/com/github/ben-manes/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Source2:	%{name}-gen.pom
%if %{with guava}
Source3:        http://repo1.maven.org/maven2/com/github/ben-manes/%{name}/guava/%{version}/guava-%{version}.pom
%endif
%if %{with jcache}
Source4:        http://repo1.maven.org/maven2/com/github/ben-manes/%{name}/jcache/%{version}/jcache-%{version}.pom
%endif

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	maven-local
BuildRequires:	mvn(com.google.code.findbugs:jsr305)
BuildRequires:	mvn(com.google.guava:guava)
BuildRequires:	mvn(org.apache.commons:commons-lang3)
BuildRequires:	mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:	mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:	mvn(com.squareup:javapoet)

%description
A Cache is similar to ConcurrentMap, but not quite the same. The most
fundamental difference is that a ConcurrentMap persists all elements that are
added to it until they are explicitly removed. A Cache on the other hand is
generally configured to evict entries automatically, in order to constrain its
memory footprint. In some cases a LoadingCache or AsyncLoadingCache can be
useful even if it doesn't evict entries, due to its automatic cache loading.

Caffeine provide flexible construction to create a cache with a combination
of the following features:
automatic loading of entries into the cache, optionally asynchronously
size-based eviction when a maximum is exceeded based on frequency and recency
time-based expiration of entries, measured since last access or last write
asynchronously refresh when the first stale request for an entry occurs
keys automatically wrapped in weak references
values automatically wrapped in weak or soft references
notification of evicted (or otherwise removed) entries
writes propagated to an external resource
accumulation of cache access statistics

%if %{with guava}
%package guava
Summary:	Caffeine Guava extension

%description guava
An adapter to expose a Caffeine cache through the Guava interfaces.
%endif
%if %{with jcache}
%package jcache
Summary:	Caffeine JSR-107 JCache extension

%description jcache
An adapter to expose a Caffeine cache through the JCache interfaces.
%endif

%package javadoc
Summary:	Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

find -name "*.jar" -print -delete

# This is a dummy POM added just to ease building in the RPM platforms
cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <modelVersion>4.0.0</modelVersion>
  <groupId>com.github.ben-manes.caffeine</groupId>
  <artifactId>%{name}-parent</artifactId>
  <version>%{version}</version>
  <packaging>pom</packaging>
  <name>Caffeine Parent</name>
  <modules>
    <module>%{name}</module>
    <!-- module>simulator</module -->
    <!-- module>examples/write-behind-rxjava</module -->
  </modules>
</project>
EOF

cp -p %{SOURCE1} %{name}/pom.xml
cp -p %{SOURCE2} %{name}/gen.pom

%if %{with guava}
cp -p %{SOURCE3} guava/pom.xml
%endif
%if %{with jcache}
cp -p %{SOURCE4} jcache/pom.xml
%endif

(
 for p in guava \
  jcache; do
 %if %{with $p}
 %pom_xpath_inject "pom:project/pom:modules" "<module>${p}</module>"
 %pom_xpath_inject "pom:project" "
 <properties>
     <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 </properties>" ${p}
 %pom_xpath_inject "pom:project" "
   <build>
     <pluginManagement>
       <plugins>
         <plugin>
           <groupId>org.apache.maven.plugins</groupId>
           <artifactId>maven-compiler-plugin</artifactId>
           <version>2.3.2</version>
           <configuration>
             <source>1.8</source>
             <target>1.8</target>
             <showDeprecation>true</showDeprecation>
           </configuration>
         </plugin>
       </plugins>
     </pluginManagement>
   </build>" ${p}

 %pom_xpath_set "pom:project/pom:name" "Caffeine ${p} extension" ${p}
 %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" ${p}
 %pom_add_plugin org.apache.felix:maven-bundle-plugin ${p} "
 <extensions>true</extensions>
 <configuration>
   <instructions>
     <Bundle-SymbolicName>\${project.groupId}.${p}</Bundle-SymbolicName>
     <Bundle-Name>\${project.groupId}.${p}</Bundle-Name>
     <Bundle-Version>\${project.version}</Bundle-Version>
   </instructions>
 </configuration>
 <executions>
   <execution>
     <id>bundle-manifest</id>
     <phase>process-classes</phase>
     <goals>
       <goal>manifest</goal>
     </goals>
   </execution>
 </executions>"
 %pom_remove_dep com.google.errorprone:error_prone_annotations ${p}
 %endif
 echo hello
done
)

%pom_xpath_inject "pom:project" "<properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  </properties>" %{name}

%pom_xpath_inject "pom:project" "
  <build>
    <pluginManagement>
      <plugins>
          <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-compiler-plugin</artifactId>
          <version>2.3.2</version>
          <configuration>
            <source>1.8</source>
            <target>1.8</target>
            <showDeprecation>true</showDeprecation>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>" %{name}

%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" %{name}
%pom_add_plugin org.apache.felix:maven-bundle-plugin %{name} "
    <extensions>true</extensions>
      <configuration>
        <excludeDependencies>true</excludeDependencies>
        <instructions>
          <Bundle-SymbolicName>com.github.ben-manes.caffeine</Bundle-SymbolicName>
          <Bundle-Name>com.github.ben-manes.caffeine</Bundle-Name>
          <Bundle-Version>\${project.version}</Bundle-Version>
        </instructions>
      </configuration>
    <executions>
   <execution>
     <id>bundle-manifest</id>
     <phase>process-classes</phase>
     <goals>
       <goal>manifest</goal>
     </goals>
   </execution>
 </executions>"

# remove missing dependency
%pom_remove_dep com.google.errorprone:error_prone_annotations %{name}

%if %{with jcache}
# Use open source JSR-107 apis
%pom_change_dep javax.cache:cache-api org.apache.geronimo.specs:geronimo-jcache_1.0_spec jcache
%endif

%mvn_package :%{name}-parent __noinstall

%build
(
 cd %name
 for class in com.github.benmanes.caffeine.cache.LocalCacheFactoryGenerator \
         com.github.benmanes.caffeine.cache.NodeFactoryGenerator; do
   xmvn -B --offline -f gen.pom compile exec:java -Dexec.mainClass=$class -Dexec.args=src/main/java
 done
)

# tests are skipped due to missing dependencies
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license LICENSE

%if %{with guava}
%files guava -f .mfiles-guava
%endif

%if %{with jcache}
%files jcache -f .mfiles-jcache
%endif

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12186 |21mr|cairo-1.16.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname cairo %{major}
%define devname %mklibname cairo -d

#gw check coverage fails in 1.9.4
%bcond_with test
%bcond_with plf
%bcond_with docs
%bcond_with xcb

%if %{with plf}
%define distsuffix plf
%endif

Summary:	Cairo - multi-platform 2D graphics library
Name:		cairo
Version:	1.16.0
Release:	5
License:	BSD
Group:		System/Libraries
Url:		http://cairographics.org/
Source0:	http://cairographics.org/releases/%{name}-%{version}.tar.xz
# http://bugs.freedesktop.org/show_bug.cgi?id=11838
# http://bugs.freedesktop.org/show_bug.cgi?id=13335
# https://bugs.launchpad.net/ubuntu/+source/cairo/+bug/209256
# http://forums.fedoraforum.org/showthread.php?p=1094309#post1094309
Patch0:		cairo-respect-fontconfig.patch
# https://bugs.freedesktop.org/show_bug.cgi?id=30910
Patch1:		cairo-1.12.2-rosa-buildfix.patch
# CVE-2020-35492
Patch2:		Fix-mask-usage-in-image-compositor.patch
Patch3:		CVE-2019-6461.patch
Patch4:		CVE-2019-6462.patch
#%if %{with docs}
# need for autoreconf
BuildRequires:	gtk-doc
#%endif
%if %{with test}
BuildRequires:	fonts-ttf-bitstream-vera
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(rsvg-2.0)
%endif
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	x11-server-xvfb

%description
Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

Cairo exports a stateful rendering API similar in spirit to the path
construction, text, and painting operators of PostScript, (with the
significant addition of translucence in the imaging model). When
complete, the API is intended to support the complete imaging model of
PDF 1.4.

Cairo relies on the Xc library for backend rendering. Xc provides an
abstract interface for rendering to multiple target types. As of this
writing, Xc allows Cairo to target X drawables as well as generic
image buffers. Future backends such as PostScript, PDF, and perhaps
OpenGL are currently being planned.

%if %{with plf}
This package is in restricted repository because this build has LCD subpixel
hinting enabled which are covered by software patents.
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cairo - multi-platform 2D graphics library
Group:		System/Libraries
# compat with Fedora/RH
Provides:	libcairo = %{EVRD}

%description -n %{libname}
Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

Cairo exports a stateful rendering API similar in spirit to the path
construction, text, and painting operators of PostScript, (with the
significant addition of translucence in the imaging model). When
complete, the API is intended to support the complete imaging model of
PDF 1.4.

Cairo relies on the Xc library for backend rendering. Xc provides an
abstract interface for rendering to multiple target types. As of this
writing, Xc allows Cairo to target X drawables as well as generic
image buffers. Future backends such as PostScript, PDF, and perhaps
OpenGL are currently being planned.

%if %{with plf}
This package is in restricted repository because this build has LCD subpixel
hinting enabled which are covered by software patents.
%endif

%files -n %{libname}
%doc COPYING
%{_libdir}/libcairo.so.%{major}*
%{_libdir}/libcairo-gobject.so.%{major}*
%{_libdir}/libcairo-script-interpreter.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Cairo library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
Development files for Cairo library.

%files -n %{devname}
%doc AUTHORS NEWS README
%doc RELEASING BIBLIOGRAPHY BUGS ChangeLog
%attr(755,root,root) %{_bindir}/cairo-trace
%attr(755,root,root) %{_bindir}/cairo-sphinx
%{_libdir}/cairo/
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/cairo/

#----------------------------------------------------------------------------

%prep
%setup -q
%if %{with plf}
%patch0 -p1
%endif
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
autoreconf -fi

%configure \
	--disable-static \
	--enable-pdf \
	--enable-ps \
	--enable-tee \
%if %{with docs}
	--enable-gtk-doc \
%endif
%if %{with xcb}
	--enable-xcb
%endif

%make

%if %{with test}
%check
XDISPLAY=$(i=1; while [ -f /tmp/.X$i-lock ]; do i=$(($i+1)); done; echo $i)
%{_bindir}/Xvfb -screen 0 1600x1200x24 :$XDISPLAY &
export DISPLAY=:$XDISPLAY
make check
kill $(cat /tmp/.X$XDISPLAY-lock)
%endif

%install
%makeinstall_std


# CVE-2018-19876

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12187 |21mr|cairomm1.0-1.14.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 1
%define libname %mklibname cairomm %{api} %{major}
%define devname %mklibname cairomm %{api} -d

%define _disable_rebuild_configure 1

Summary:	C++ API for the cairo multi-platform 2D graphics library
Name:		cairomm%{api}
Version:	1.14.3
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://cairographics.org/cairomm
Source0:	https://www.cairographics.org/releases/cairomm-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	meson
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(sigc++-2.0)

%description
This is a C++ API for the Cairo graphics library.

Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cairomm - multi-platform 2D graphics library
Group:		System/Libraries

%description -n %{libname}
This is a C++ API for the Cairo graphics library.

Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

%files -n %{libname}
%{_libdir}/libcairomm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Cairomm library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is a C++ API for the Cairo graphics library.

Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

%files -n %{devname}
%doc AUTHORS ChangeLog MAINTAINERS NEWS README
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%dir %{_libdir}/cairomm-%{api}/include/
%{_libdir}/cairomm-%{api}/include/*.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n cairomm-%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12188 |21mr|cairomm-1.16.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.16
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d

%define _disable_rebuild_configure 1

Summary:	C++ API for the cairo multi-platform 2D graphics library
Name:		cairomm
Version:	1.16.2
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://cairographics.org/cairomm
Source0:	https://www.cairographics.org/releases/cairomm-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	meson
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(sigc++-3.0)

%description
This is a C++ API for the Cairo graphics library.

Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cairomm - multi-platform 2D graphics library
Group:		System/Libraries

%description -n %{libname}
This is a C++ API for the Cairo graphics library.

Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

%files -n %{libname}
%{_libdir}/libcairomm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Cairomm library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is a C++ API for the Cairo graphics library.

Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

%files -n %{devname}
%doc AUTHORS ChangeLog MAINTAINERS NEWS README
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%dir %{_libdir}/%{name}-%{api}/
%dir %{_libdir}/%{name}-%{api}/include/
%{_libdir}/%{name}-%{api}/include/*.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12189 |21mr|cal10n-0.8.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           cal10n
Version:        0.8.1
Release:        9
Summary:        Compiler assisted localization library (CAL10N)
License:        MIT
URL:            http://cal10n.qos.ch
# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
# Remove bundled binaries which cannot be easily verified for licensing
Source1:        generate-tarball.sh
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)

%description
Compiler Assisted Localization, abbreviated as CAL10N (pronounced as "calion")
is a java library for writing localized (internationalized) messages.
Features:
    * java compiler verifies message keys used in source code
    * tooling to detect errors in message keys
    * native2ascii tool made superfluous, as you can directly encode bundles
      in the most convenient charset, per locale.
    * good performance (300 nanoseconds per key look-up)
    * automatic reloading of resource bundles upon change


%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%package -n maven-%{name}-plugin
Summary:        CAL10N maven plugin

%description -n maven-%{name}-plugin
Maven plugin verifying that the codes defined in
an enum type match those in the corresponding resource bundles. 

%prep
%setup -q -n %{name}-v_%{version}

find . -name \*.jar -delete

%pom_xpath_remove pom:extensions
%pom_add_dep org.apache.maven:maven-artifact maven-%{name}-plugin
%pom_disable_module %{name}-site
%pom_disable_module maven-%{name}-plugin-smoke
%mvn_package :*-{plugin} @1

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
    <execution>
      <id>default-jar</id>
      <phase>skip</phase>
    </execution>" cal10n-api

%build
%mvn_build -- -Dproject.build.sourceEncoding=ISO-8859-1

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files -n maven-%{name}-plugin -f .mfiles-plugin

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12190 |21mr|calamares-3.2.39.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %{version}
%define libname %mklibname %{name} %{major}
%define libnameui %mklibname %{name}ui %{major}
%define devname %mklibname %{name} -d

Summary:	Distribution-independent installer framework
Name:		calamares
Version:	3.2.39.2
Release:	5
License:	GPLv3+
Group:		System/Configuration/Other
Url:		http://calamares.io/
Source0:	https://github.com/calamares/calamares/archive/v%{version}.tar.gz
Source2:	calamares.rpmlintrc
Source3:	%{name}.service
Source4:	%{name}.target
Source5:	%{name}-install-start
Source6:	%{name}-install-setup
Source7:	rosa-bootloader.conf
Source8:	rosa-displaymanager.conf
Source9:	rosa-finished.conf
Source10:	rosa-fstab.conf
Source11:	rosa-grubcfg.conf
Source12:	rosa-keyboard.conf
Source13:	rosa-locale.conf
Source14:	rosa-machineid.conf
Source15:	rosa-mount.conf
Source16:	rosa-packages.conf
Source17:	rosa-welcome.conf
Source18:	rosa-services.conf
Source19:	rosa-settings.conf
Source20:	rosa-unpackfs.conf
Source21:	rosa-users.conf
Source22:	rosa-partition.conf
Source23:	rosa-removeuser.conf
Source24:	rosa-webview.conf
Source100:	rosa-adverts-en.tar.bz2
Source101:	rosa-adverts-ru.tar.bz2
Patch0:		calamares-3.2.39-desktop-file.patch
Patch1:		calamares-libparted-detection.patch
BuildRequires:	cmake ninja
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	boost-python3-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kpmcore-devel
BuildRequires:	yaml-cpp-devel
BuildRequires:	pkgconfig(polkit-qt5-1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(libatasmart)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libparted)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires(post):	branding-configs-fresh
Requires:	console-setup
Requires:	coreutils
Requires:	dmidecode
Requires:	dosfstools
Requires:	dracut
Requires:	e2fsprogs
Requires:	gawk
Requires:	gptfdisk
Requires:	grub2
%ifarch x86_64
# EFI currently only supported on x86_64
Requires:	grub2-efi
%endif
Requires:	lvm2
Requires:	NetworkManager
Requires:	ntfs-3g
# (tpg) needed for calamares-install-setup
Requires:	openbox
Requires:	os-prober
Requires:	partitionmanager
Requires:	polkit
Requires:	rsync
Requires:	setxkbmap
Requires:	shadow-utils
Requires:	squashfs-tools
Requires:	systemd
Requires:	systemd-units
Requires:	urpmi
Requires:	util-linux
Requires:	xkbcomp
Requires:	xli

%description
Calamares is a distribution-independent installer framework, designed to
install from a live CD/DVD/USB environment to a hard disk. It includes
a graphical installation program based on Qt 5.

%files -f calamares.lang
%doc README.md AUTHORS
%dir %{_sysconfdir}/systemd/system/calamares.target.wants
%dir %{_libdir}/calamares
%dir %{_datadir}/calamares
%dir %{_datadir}/calamares/branding
%dir %{_datadir}/calamares/branding/default
%dir %{_sysconfdir}/calamares
%dir %{_sysconfdir}/calamares/modules
%dir %{_sysconfdir}/calamares/branding
%dir %{_sysconfdir}/calamares/branding/auto
%dir %{_datadir}/calamares/qml
%dir %{_datadir}/calamares/qml/calamares
%dir %{_datadir}/calamares/qml/calamares/slideshow
%{_presetdir}/90-%{name}.preset
%{_sysconfdir}/systemd/system/calamares.target.wants/%{name}.service
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.target
%{_sbindir}/%{name}-install-start
%{_sbindir}/%{name}-install-setup
%{_bindir}/calamares
%{_datadir}/calamares/branding/default/*
%{_datadir}/calamares/qml/calamares/slideshow/*.qml
%{_datadir}/calamares/qml/calamares/slideshow/qmldir*
%{_datadir}/applications/calamares.desktop
%{_datadir}/polkit-1/actions/com.github.calamares.calamares.policy
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_sysconfdir}/calamares/*.conf
%{_sysconfdir}/calamares/modules/*.conf
%{_libdir}/calamares/*
%ghost %{_sysconfdir}/calamares/branding/auto/branding.desc
%{_sysconfdir}/calamares/branding/auto/*.qml
%{_sysconfdir}/calamares/branding/auto/*.png
%{_mandir}/man8/calamares.8.*

%post
# generate the "auto" branding
. %{_sysconfdir}/os-release

cat >%{_sysconfdir}/calamares/branding/auto/branding.desc <<EOF
# THIS FILE IS AUTOMATICALLY GENERATED! ANY CHANGES TO THIS FILE WILL BE LOST!
---
componentName:  auto

strings:
    productName:         "$NAME"
    shortProductName:    "$NAME"
    version:             "$VERSION"
    shortVersion:        "$VERSION"
    versionedName:       "$NAME $VERSION"
    shortVersionedName:  "$NAME $VERSION"
    bootloaderEntryName: "ROSA Desktop Fresh"
    productUrl:          "$HOME_URL"
    supportUrl:          "$BUG_REPORT_URL"
    knownIssuesUrl:      "http://wiki.rosalab.ru/ru/index.php/Errata_ROSA_Desktop_R6"
    releaseNotesUrl:     "http://wiki.rosalab.ru/ru/index.php/ROSA_Desktop_Fresh_R6"

images:
    productLogo:         "%{_datadir}/calamares/branding/default/squid.png"
    productIcon:         "%{_datadir}/calamares/branding/default/squid.png"

slideshow:               "rosa-ads.qml"

style:
    sidebarBackground: "#263039"
    sidebarText: "#FFFFFF"
    sidebarTextSelect: "#292F34"

EOF

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for Calamares
Group:		System/Libraries

%description -n %{libname}
Shared library for Calamares.

%files -n %{libname}
%{_libdir}/libcalamares.so.%{major}

#----------------------------------------------------------------------------

%package -n %{libnameui}
Summary:	Shared library for Calamares
Group:		System/Libraries

%description -n %{libnameui}
Shared library for Calamares.

%files -n %{libnameui}
%{_libdir}/libcalamaresui.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Calamares
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnameui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for Calamares.

%files -n %{devname}
%dir %{_includedir}/libcalamares
%dir %{_libdir}/cmake/Calamares
%{_includedir}/libcalamares/*
%{_libdir}/libcalamares.so
%{_libdir}/libcalamaresui.so
%{_libdir}/cmake/Calamares/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

#delete backup files
rm -f src/modules/*/*.conf.default-settings

%build
%cmake_qt5 \
	-DWITH_PARTITIONMANAGER:BOOL=ON \
        -DSKIP_MODULES="plasmalnf preservefiles openrcdmcryptcfg fsresizer luksopenswaphookcfg tracking services-openrc dummycpp dummyprocess dummypython dummypythonqt initcpio initcpiocfg initramfs initramfscfg interactiveterminal" \
	-DWITH_PYTHON:BOOL=ON \
        -G Ninja

%ninja_build

%install
%ninja_install -C build

#own the local settings directories
mkdir -p %{buildroot}%{_sysconfdir}/calamares/modules
mkdir -p %{buildroot}%{_sysconfdir}/calamares/branding/auto
touch %{buildroot}%{_sysconfdir}/calamares/branding/auto/branding.desc

# (tpg) settings specific for OMV
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/calamares/modules/bootloader.conf
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/calamares/modules/displaymanager.conf
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/calamares/modules/finished.conf
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/calamares/modules/fstab.conf
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/calamares/modules/grubcfg.conf
install -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/calamares/modules/keyboard.conf
install -m 644 %{SOURCE13} %{buildroot}%{_sysconfdir}/calamares/modules/locale.conf
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/calamares/modules/machineid.conf
install -m 644 %{SOURCE15} %{buildroot}%{_sysconfdir}/calamares/modules/mount.conf
install -m 644 %{SOURCE16} %{buildroot}%{_sysconfdir}/calamares/modules/packages.conf
install -m 644 %{SOURCE17} %{buildroot}%{_sysconfdir}/calamares/modules/welcome.conf
install -m 644 %{SOURCE18} %{buildroot}%{_sysconfdir}/calamares/modules/services.conf
install -m 644 %{SOURCE19} %{buildroot}%{_sysconfdir}/calamares/settings.conf
install -m 644 %{SOURCE20} %{buildroot}%{_sysconfdir}/calamares/modules/unpackfs.conf
install -m 644 %{SOURCE21} %{buildroot}%{_sysconfdir}/calamares/modules/users.conf
install -m 644 %{SOURCE22} %{buildroot}%{_sysconfdir}/calamares/modules/partition.conf
install -m 644 %{SOURCE23} %{buildroot}%{_sysconfdir}/calamares/modules/removeuser.conf
install -m 644 %{SOURCE24} %{buildroot}%{_sysconfdir}/calamares/modules/webview.conf

# (tpg) service files
mkdir -p %{buildroot}{%{_unitdir},%{_sbindir},%{_sysconfdir}/systemd/system/calamares.target.wants}
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service
install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.target
install -m 755 %{SOURCE5} %{buildroot}%{_sbindir}/%{name}-install-start
install -m 744 %{SOURCE6} %{buildroot}%{_sbindir}/%{name}-install-setup
ln -sf %{_unitdir}/%{name}.service %{buildroot}%{_sysconfdir}/systemd/system/calamares.target.wants/%{name}.service

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/90-%{name}.preset << EOF
enable %{name}.service
EOF

# (tpg) install adverts and slideshow
tar xf %{SOURCE100} -C %{buildroot}%{_sysconfdir}/calamares/branding/auto

%find_lang %{name} --all-name --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12191 |21mr|calendarsupport-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 calendar support module
Name:		calendarsupport
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicalendar-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadinotes-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 calendar support module.

%files
%{_kde5_datadir}/qlogging-categories5/calendarsupport.categories
%{_kde5_datadir}/qlogging-categories5/calendarsupport.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 calendar support library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 calendar support library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5calendarsupport_major 5
%define libkf5calendarsupport %mklibname kf5calendarsupport %{kf5calendarsupport_major}

%package -n %{libkf5calendarsupport}
Summary:	KDE Frameworks 5 calendar support shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5calendarsupport}
KDE Frameworks 5 calendar support shared library.

%files -n %{libkf5calendarsupport}
%{_kde5_libdir}/libKPim5CalendarSupport.so.%{kf5calendarsupport_major}*

#----------------------------------------------------------------------------

%define devkf5calendarsupport %mklibname kf5calendarsupport -d

%package -n %{devkf5calendarsupport}
Summary:	Development files for KDE Frameworks 5 calendar support module
Group:		Development/KDE and Qt
Requires:	%{libkf5calendarsupport} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5calendarsupport-devel = %{version}

%description -n %{devkf5calendarsupport}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5calendarsupport}
%{_kde5_includedir}/KPim5/CalendarSupport
%{_kde5_libdir}/cmake/KF5CalendarSupport
%{_kde5_libdir}/cmake/KPim5CalendarSupport
%{_kde5_libdir}/libKPim5CalendarSupport.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12192 |21mr|calf-0.90.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pack of multi-standard audio plugins and host for JACK
Name:		calf
Version:	0.90.3
Release:	5
License:	LGPLv2+
Group:		Sound
Url:		https://calf-studio-gear.org
Source0:	https://calf-studio-gear.org/files/%{name}-%{version}.tar.gz
# Upstream patches
Patch0:	calf-0.90.3-fix-typo-in-equalizer30band.patch
Patch1:	calf-0.90.3-make-pitch-bend-usable-on-all-channels.patch
Patch2:	calf-0.90.3-allow-env-override-system-input_output.patch
Patch3:	calf-0.90.3-fix-minimun-number-of-midi-channels.patch
Patch4:	calf-0.90.3-fix-catching-exceptions-by-value.patch
# Our patch - to be upstreamed
Patch5:	calf-0.90.3-use-ladish-instead-of-lash.patch
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(bash-completion) >= 2.0
BuildRequires:	pkgconfig(cairo) >= 1.2.0
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fluidsynth) >= 2.2.0
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.12.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblash) >= 1.1.1
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(readline)
BuildConflicts:	calf < %{version}
Requires:	fluidsynth >= 2.2.0
Requires:	lv2
Requires:	lv2-calf-plugins
Requires:	redland

%description
Calf is a pack of audio plugins for the LV2 interface. It contains the
following audio effects: vintage delay, rotary speaker, reverb, multi chorus,
flanger, phaser, filter, compressor. It also contains two full-blown
synthesizers: monosynth and organ.

%files
%doc README ChangeLog COPYING AUTHORS
%{_bindir}/%{name}*
%{_datadir}/%{name}/
%exclude %{_datadir}/%{name}/sf2
%{_datadir}/applications/%{name}.desktop
%{_datadir}/doc/%{name}/*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/bash-completion/completions/%{name}
%{_mandir}/man1/calfjackhost.1.*

#-----------------------------------------------------------------------------

%package -n lv2-%{name}-plugins
Summary:	Calf plugins in LV2 format
Group:		Sound
License:	LGPLv2.1
Requires:	lv2

%description -n	lv2-%{name}-plugins
Calf is a pack of audio plugins for the LV2 interface.
- Instruments and tone generators (Organ, Monosynth, Wavetable,
Fluidsynth).
- Modulation effects (Multi Chorus, Phaser, Flanger, Rotary, Pulsator,
Ring Modulator).
- Delay effects (Reverb, Vintage Delay,Compensation Delay Line, 
Reverse Delay).
- Dynamic processors (Compressor, Sidechain Compressor, Multiband 
Compressor, Mono Compressor, Deesser, Gate, Sidechain Gate, 
Multiband Gate, Limiter, Multiband Limiter, Sidechain Limiter, 
Transient Designer).
- Filters and equalizers (Filter, Filterclavier, Envelope Filter, 
Equalizer 5 Band, Equalizer 8 Band, Equalizer 12 Band, 
Equalizer 30 Band, Vocoder, Emphasis).
- Distortion and enhancement (Saturator, Exciter, Bass Enhancer, 
Tape Simulator, Vinyl, Crusher).
- Tools (Mono Input, Stereo Tools, Haas Stereo Enhancer, Multi Spread, 
Analyzer, X-Over 2 Band, X-Over 3 Band, X-Over 4 Band).

%files -n lv2-%{name}-plugins
%doc COPYING
%{_libdir}/lv2/%{name}.lv2/
%{_libdir}/%{name}/
%{_datadir}/%{name}/sf2/
%{_mandir}/man7/%{name}.7.*

#-------------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
./autogen.sh
%configure	\
		--enable-static=false \
%ifarch x86_64
		--enable-sse \
%endif
		--enable-experimental=yes \
		--with-lv2-dir=%{_libdir}/lv2 \
		--with-bash-completion-dir="%{_datadir}/bash-completion/completions"
%make


%install
%makeinstall_std

desktop-file-edit	--remove-category="GNOME" --add-category="GTK" \
		--add-category="GNOME" --remove-key="Version" \
		%{buildroot}%{_datadir}/applications/%{name}.desktop

rm -f %{buildroot}/%{_datadir}/icons/hicolor/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12193 |21mr|calindori-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Calendar and todo management application for Plasma Mobile
Name:		calindori
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5config-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5people-devel


%description
Calendar and todo management application for Plasma Mobile.

%files -f calindac.lang -f calindori.lang
%{_kde5_bindir}/calindac
%{_kde5_bindir}/calindori
%{_kde5_applicationsdir}/org.kde.calindori.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/calindori.svg
%{_kde5_notificationsdir}/calindac.notifyrc
%{_datadir}/dbus-1/services/org.kde.calindac.service
%{_appdatadir}/org.kde.calindori.appdata.xml
%{_sysconfdir}/xdg/autostart/org.kde.calindac.desktop

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang calindac
%find_lang calindori


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12194 |21mr|callaudiod-0.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name}
%define develname %mklibname -d %{name}

Summary:    Daemon for dealing with audio routing during phone calls
Name:       callaudiod
Version:    0.1.4
Release:    1
Group:		Sound
License:    GPLv3+
URL:        https://gitlab.com/mobian1/callaudiod
Source0:    https://gitlab.com/mobian1/callaudiod/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:  meson
BuildRequires:  pkgconfig(alsa)
BuildRequires:  pkgconfig(gobject-2.0)
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(libpulse)
BuildRequires:  pkgconfig(libpulse-mainloop-glib)

Requires: %{libname}%{?_isa} = %{version}-%{release}


%description
callaudiod is a daemon for dealing with audio routing during phone calls.
It provides a D-Bus interface allowing other programs to:

switch audio profiles
output audio to the speaker or back to its original port
mute the microphone

%files
%{_bindir}/%{name}
%{_bindir}/callaudiocli
%{_datadir}/dbus-1/interfaces/org.mobian_project.CallAudio.xml
%{_datadir}/dbus-1/services/org.mobian_project.CallAudio.service

#--------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary: Library for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}

%description -n %{libname}
The lib%{name} package contains libraries for %{name}

%files -n %{libname}
%{_libdir}/libcallaudio-0.1.so.%{major}

#--------------------------------------------------------------------

%package -n %{develname}
Group:		Development/C
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
Requires: %{libname}%{?_isa} = %{version}-%{release}

%description -n %{develname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.


%files -n %{develname}
%license COPYING
%doc README.md
%{_includedir}/libcallaudio-0.1
%{_libdir}/libcallaudio-0.1.so
%{_libdir}/pkgconfig/libcallaudio-0.1.pc

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12195 |21mr|canl-java-2.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		canl-java
Version:	2.6.0
Release:	2
Summary:	EMI Common Authentication library - bindings for Java

#		The main parts of the code are BSD
#		Parts derived from glite security utils java are Apache 2.0
#		Parts derived from bouncycastle are MIT
#		Parts derived from Apache Commons IO are Apache 2.0
#		See LICENSE.txt for details
License:	BSD and ASL 2.0 and MIT
URL:		https://github.com/eu-emi/%{name}/
Source0:	https://github.com/eu-emi/%{name}/archive/canl-%{version}/%{name}-%{version}.tar.gz
#		Disable tests that require network connections
Patch0:		%{name}-test.patch
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	maven-local
BuildRequires:	mvn(commons-io:commons-io) >= 2.4
BuildRequires:	mvn(junit:junit) >= 4.8
BuildRequires:	mvn(org.bouncycastle:bcpkix-jdk15on) >= 1.54
BuildRequires:	mvn(org.bouncycastle:bcprov-jdk15on) >= 1.54
Requires:	mvn(org.bouncycastle:bcpkix-jdk15on) >= 1.54
Requires:	mvn(org.bouncycastle:bcprov-jdk15on) >= 1.54

%description
This is the Java part of the EMI caNl -- the Common Authentication Library.

%package javadoc
Summary:	Javadoc documentation for %{name}

%description javadoc
Javadoc documentation for EMI caNl.

%prep
%setup -q -n %{name}-canl-%{version}
%patch0 -p1

# Remove maven-wagon-webdav-jackrabbit dependency
%pom_xpath_remove pom:build/pom:extensions

# GPG signing requires a GPG key
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin

# Do not create source jars
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin

# Do not stage
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc API-Changes.txt README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12196 |21mr|cantor-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Interface for doing Mathematics and Scientific Computing
Name:		cantor
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/cantor/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	cantor.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	analitza-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pty-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libR)
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(libqalculate)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
# For qhelpgenerator
BuildRequires:	qt5-tools
# OPTIONAL
BuildRequires:	pkgconfig(luajit)

%description
Cantor is a KDE Application aimed to provide a nice Interface
for doing Mathematics and Scientific Computing. It doesn't implement
its own Computation Logic, but instead is built around different
Backends.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.cantor.desktop
%{_kde5_bindir}/cantor
%{_kde5_bindir}/cantor_pythonserver
%{_kde5_bindir}/cantor_rserver
%{_kde5_bindir}/cantor_scripteditor
%{_kde5_libdir}/libcantor_config.so
%{_kde5_libdir}/cantor_pythonbackend.so
%{_kde5_iconsdir}/*/*/apps/cantor.*
%{_kde5_iconsdir}/*/*/apps/juliabackend.*
%{_kde5_iconsdir}/*/*/apps/kalgebrabackend.*
%{_kde5_iconsdir}/*/*/apps/luabackend.*
%{_kde5_iconsdir}/*/*/apps/maximabackend.*
%{_kde5_iconsdir}/*/*/apps/octavebackend.*
%{_kde5_iconsdir}/*/*/apps/pythonbackend.*
%{_kde5_iconsdir}/*/*/apps/qalculatebackend.*
%{_kde5_iconsdir}/*/*/apps/rbackend.*
%{_kde5_iconsdir}/*/*/apps/sagebackend.*
%{_kde5_iconsdir}/*/*/apps/scilabbackend.*
%{_kde5_datadir}/cantor
%{_kde5_datadir}/config.kcfg/cantor.kcfg
%{_kde5_datadir}/config.kcfg/cantor_libs.kcfg
%{_kde5_datadir}/config.kcfg/kalgebrabackend.kcfg
%{_kde5_datadir}/config.kcfg/luabackend.kcfg
%{_kde5_datadir}/config.kcfg/maximabackend.kcfg
%{_kde5_datadir}/config.kcfg/octavebackend.kcfg.in
%{_kde5_datadir}/config.kcfg/pythonbackend.kcfg
%{_kde5_datadir}/config.kcfg/qalculatebackend.kcfg
%{_kde5_datadir}/config.kcfg/rserver.kcfg
%{_kde5_datadir}/config.kcfg/sagebackend.kcfg
%{_kde5_datadir}/config.kcfg/scilabbackend.kcfg
%{_kde5_datadir}/knsrcfiles/cantor.knsrc
%{_kde5_datadir}/knsrcfiles/cantor-documentation.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_kalgebra.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_lua.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_maxima.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_octave.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_python.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_qalculate.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_r.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_sage.knsrc
%{_kde5_datadir}/knsrcfiles/cantor_scilab.knsrc
%{_kde5_datadir}/mime/packages/cantor.xml
%{_kde5_xmlguidir}/cantor/*.rc
%{_kde5_plugindir}/parts/cantorpart.so
%{_qt5_plugindir}/cantor/*/*.so
%{_appdatadir}/org.kde.cantor.appdata.xml

#----------------------------------------------------------------------------

%define cantorlibs_major 28
%define libcantorlibs %mklibname cantorlibs %{cantorlibs_major}

%package -n %{libcantorlibs}
Summary:	Runtime library for cantor
Group:		System/Libraries

%description -n %{libcantorlibs}
Runtime library for cantor.

%files -n %{libcantorlibs}
%{_kde5_libdir}/libcantorlibs.so.%{cantorlibs_major}*
%{_kde5_libdir}/libcantorlibs.so.%{version}

#----------------------------------------------------------------------------

%define devcantor %mklibname cantor -d

%package -n %{devcantor}
Summary:	Development stuff for %{name}
Group:		Development/KDE and Qt
Requires:	%{libcantorlibs} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 16.08.2
Obsoletes:	%{name}-devel < 16.08.2

%description -n %{devcantor}
Files needed to build applications based on %{name}.

%files -n %{devcantor}
%{_kde5_includedir}/%{name}
%{_kde5_libdir}/libcantorlibs.so
%{_kde5_libdir}/cmake/Cantor/CantorConfig.cmake
%{_kde5_libdir}/cmake/Cantor/CantorConfigVersion.cmake
%{_kde5_libdir}/cmake/Cantor/CantorTargets-release.cmake
%{_kde5_libdir}/cmake/Cantor/CantorTargets.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12197 |21mr|caps-0.9.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No debug package produced
%define debug_package %{nil}

Summary:	Collection of plugins for LADSPA
Name:		caps
Version:	0.9.26
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://quitte.de/dsp/caps.html
Source0:	http://quitte.de/dsp/%{name}_%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	ladspa-devel
Requires:	ladspa

%description
CAPS, the C* Audio Plugin Suite, is a collection of refined LADSPA audio
plugins capable of (and mainly intended for) realtime operation.
The suite includes DSP units emulating instrument amplifiers, stomp-box
classics, versatile 'virtual analogue' oscillators, fractal oscillation,
reverb, equalization and more.

%files
%doc CHANGES README
%{_libdir}/ladspa/%{name}.so
%{_datadir}/ladspa/rdf/%{name}.rdf

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
./configure.py
%make

%install
%makeinstall_std DEST=%{_libdir}/ladspa

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12198 |21mr|capstone-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Please keep this package in sync with FC

%global major   4
%define libname %mklibname capstone %major
%define devname %mklibname capstone -d

# don't provide libcapstone.so.3 with py2/3 pkgs
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{python3_sitelib}/.*\.so
%global __provides_exclude_from %{?__provides_exclude_from:%__provides_exclude_from|}%{python2_sitelib}/.*\.so
%bcond_with java

Name:           capstone
Version:        4.0.2
Release:        1
Summary:        A lightweight multi-platform, multi-architecture disassembly framework
Group:          System/Libraries

%global         gituser         aquynh
%global         gitname         capstone

License:        BSD
URL:            http://www.capstone-engine.org/
#               https://github.com/aquynh/capstone/releases
#Source0:        https://github.com/%{gituser}/%{gitname}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Source0:        https://github.com/%{gituser}/%{gitname}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

%global srcname distribute

BuildRequires:  git
%if %{with java}
BuildRequires:  jna
BuildRequires:  java-devel
%endif
BuildRequires:  python3
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
%global _hardened_build 1


%description
Capstone is a disassembly framework with the target of becoming the ultimate
disasm engine for binary analysis and reversing in the security community.

%package        -n %libname
Summary:        A lightweight multi-platform, multi-architecture disassembly framework
Group:          System/Libraries
Obsoletes:      %{_lib}capstone0 < 3.0.4-3

%description    -n %libname
Capstone is a disassembly framework with the target of becoming the ultimate
disasm engine for binary analysis and reversing in the security community.

%package        -n %devname
Summary:        Development files for %{name}
Group:		Development/Other
Requires:       %{libname}%{?_isa} = %{version}-%{release}
Provides:	capstone-devel = %{version}-%{release}

%description    -n %devname
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package	-n python3-capstone
Summary:	Python3 bindings for %{name}
Group:		Development/Python
Requires:	%{libname}%{?_isa} = %{version}-%{release}

%description	-n python3-capstone
The python3-%{name} package contains python3 bindings for %{name}.

%if %{with java}
%package        java
Summary:        Java bindings for %{name}
Group:          Development/Java
Requires:       %{name} >= %{version}-%{release}
BuildArch:      noarch

%description    java
The %{name}-java package contains java bindings for %{name}.
%endif

%prep
# autosetup -n %{gitname}-%{commit} -S git
%autosetup -n %{gitname}-%{version} -S git

%build
DESTDIR="%{buildroot}" 	V=1 CFLAGS="%{optflags}" \
LIBDIRARCH="%{_lib}" INCDIR="%{_includedir}" \
make PYTHON3=%{__python3} %{?_smp_mflags}

# Fix pkgconfig file
sed -i 's;%{buildroot};;' capstone.pc
grep -v archive capstone.pc > capstone.pc.tmp
mv capstone.pc.tmp capstone.pc

# build python bindings
pushd bindings/python
%py3_build
popd

%if %{with java}
# build java bindings
pushd bindings/java
make PYTHON3=%{__python3} CFLAGS="%{optflags}" # %{?_smp_mflags} parallel seems broken
popd
%endif

%install
DESTDIR=%{buildroot} LIBDIRARCH=%{_lib} \
INCDIR="%{_includedir}" make install
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'

# install python bindings
pushd bindings/python
%py3_install
popd

%if %{with java}
# install java bindings
install -D -p -m 0644 bindings/java/%{name}.jar  %{buildroot}/%{_javadir}/%{name}.jar
%endif

%files
%{_bindir}/cstool

%files -n %libname
%license LICENSE.TXT LICENSE_LLVM.TXT
%doc CREDITS.TXT ChangeLog README.md SPONSORS.TXT
%{_libdir}/*.so.%{major}{,.*}

%files -n %devname
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

%files -n python3-capstone
%{python3_sitelib}/*egg-info
%{python3_sitelib}/%{name}

%if %{with java}
%files java
%{_javadir}/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12199 |21mr|c-ares-1.19.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname cares %{major}
%define devname %mklibname cares -d

Summary:	A library that performs asynchronous DNS operations
Name:		c-ares
Version:	1.19.1
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://c-ares.haxx.se/
Source0:	http://c-ares.haxx.se/download/%{name}-%{version}.tar.gz
Patch0:		c-ares-1.10.0-fdr-rpm-compiler-options.patch

%description
c-ares is a C library that performs DNS requests and name resolves
asynchronously. c-ares is a fork of the library named 'ares', written
by Greg Hudson at MIT.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library that performs asynchronous DNS operations
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
c-ares is a C library that performs DNS requests and name resolves
asynchronously. c-ares is a fork of the library named 'ares', written
by Greg Hudson at MIT.

%files -n %{libname}
%{_libdir}/libcares.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for c-ares
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and developemnt libraries
needed to compile applications or shared objects that use c-ares.

%files -n %{devname}
%doc README.cares CHANGES NEWS
%{_includedir}/ares*.h
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/libcares.pc
%{_mandir}/man3/ares_*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--enable-shared \
	--enable-thread \
	--enable-libgcc \
	--enable-nonblocking \
	--enable-optimize \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12200 |21mr|caribou-0.4.21-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

%define major		0
%define gir_major	1.0
%define libname		%mklibname %{name} %{major}
%define devname		%mklibname -d %{name}
%define girname		%mklibname %{name}-gir %{gir_major}

Summary:	A simplified in-place on-screen keyboard
Name:		caribou
Version:	0.4.21
Release:	7
Group:		Accessibility
License:	LGPLv2+
URL:		https://download.gnome.org/sources/caribou
Source0:	https://download.gnome.org/sources/caribou/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		Russian-layouts.patch
# From Fedora
Patch1:		caribou-0.4.20-fix-python-exec.patch
Patch2:		caribou-0.4.20-multilib.patch
# caribou isn't needed in gnome-shell so don't start there
Patch3:		change_autostart_cinnamon.patch
Patch4:		fix-style-css.patch
Patch5:		Fix-compilation-error.patch
Patch6:		Fix-subkey-popmenu-not-showing-after-being-dismissed.patch
Patch7:		xadapter.vala-Remove-XkbKeyTypesMask-and-f.patch
Patch8:		drop_gir_patch.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	intltool
BuildRequires:	pythonegg(virtkey)
BuildRequires:	python3-gi
BuildRequires:	vala
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gee-1.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(xtst)
Requires:	pyatspi
Requires:	%{name}-gtk2 = %{EVRD}
Requires:	%{name}-gtk3 = %{EVRD}

%description
Caribou is a text entry application that currently manifests itself as
a simplified in-place on-screen keyboard.

%files -f %{name}.lang
%doc NEWS README
%{_bindir}/%{name}-preferences
%{_datadir}/%{name}
%{_datadir}/antler
%{_datadir}/dbus-1/services/org.gnome.Caribou.Antler.service
%{_datadir}/dbus-1/services/org.gnome.Caribou.Daemon.service
%{_libexecdir}/antler-keyboard
%{_libexecdir}/%{name}
%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop
%{_datadir}/glib-2.0/schemas/*
%{python3_sitelib}/%{name}

#---------------------------------------------------------------------
%package	gtk2
Summary:	GTK2 Integration for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}

%description	gtk2
GTK2 Integration for %{name}.

%files gtk2
%{_libdir}/gtk-2.0/modules/lib%{name}-gtk-module.so

#---------------------------------------------------------------------

%package	gtk3
Summary:	GTK3 Integration for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}

%description	gtk3
GTK3 Integration for %{name}.

%files gtk3
%{_libdir}/gtk-3.0/modules/lib%{name}-gtk-module.so
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/%{name}-gtk-module.desktop

#---------------------------------------------------------------------

%package -n	%{libname}
Summary:	Library files for %{name}
Group:		System/Libraries

%description -n %{libname}
Library files for %{name}.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#---------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Caribou-%{gir_major}.typelib

#---------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires:	%{girname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_datadir}/gir-1.0/Caribou-%{gir_major}.gir
%{_libdir}/pkgconfig/%{name}-1.0.pc
%{_datadir}/vala

#---------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--disable-static	\
	PYTHON=python3
%make

%install
%makeinstall_std

find %{buildroot} -name '*.la' -exec rm -f {} ';'

desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop || :
desktop-file-validate %{buildroot}%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/%{name}-gtk-module.desktop || :

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12201 |21mr|carla-2.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define	oname Carla

# Do not provide internal libraries
%global __provides_exclude_from ^%{_libdir}/(%{name}|lv2)

Summary:	An audio plugin host supporting many formats
Name:		carla
Version:	2.5.2
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/falkTX/Carla
Source0:	https://github.com/falkTX/Carla/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		carla-2.5.2-remove-rpath-from-pc-files.patch
BuildRequires:	doxygen
BuildRequires:	magic-devel
BuildRequires:	python3-qt5-devel
BuildRequires:	python3-rdflib
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(python3)
# For extra native plugins
BuildRequires:	fltk-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(libprojectM)
BuildRequires:	pkgconfig(lilv-0)
BuildRequires:	pkgconfig(zlib)
# For plugin GUIs
BuildRequires:	freetype-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGLExtensions)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
# For extra samplers support
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(fluidsynth) >= 2.2.0
BuildRequires:	pkgconfig(gig)
BuildRequires:	pkgconfig(libinstpatch-1.0)
BuildRequires:	pkgconfig(linuxsampler)
BuildRequires:	pkgconfig(sndfile)
Requires:	python3-qt5
Requires:	python3-rdflib

%description
Carla is an audio plugin host, with support for many audio drivers and plugin
formats. It features automation of parameters via MIDI CC and full OSC
control. It currently supports LADSPA, DSSI, LV2, VST2/3 and AU plugin
formats, plus GIG, SF2 and SFZ sounds banks. It further supports bridging
Window plugins using Wine.

%files
%doc README.md doc
%{_bindir}/%{name}
%{_bindir}/%{name}-control
%{_bindir}/%{name}-database
%{_bindir}/%{name}-jack-multi
%{_bindir}/%{name}-jack-patchbayplugin
%{_bindir}/%{name}-jack-single
%{_bindir}/%{name}-osc-gui
%{_bindir}/%{name}-patchbay
%{_bindir}/%{name}-rack
%{_bindir}/%{name}-settings
%{_bindir}/%{name}-single
%{_libdir}/%{name}/
%{_libdir}/lv2/%{name}.lv2/
%{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-control.desktop
%{_datadir}/applications/%{name}-jack-multi.desktop
%{_datadir}/applications/%{name}-jack-single.desktop
%{_datadir}/applications/%{name}-patchbay.desktop
%{_datadir}/applications/%{name}-rack.desktop
%{_datadir}/appdata/studio.kx.%{name}.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}*.*
%{_datadir}/mime/packages/%{name}.xml

#--------------------------------------------------------------------

%package devel
Summary:	Header files to access Carla's API
Group:		Development/C++
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description devel
This package contains header files needed when writing software using
Carla's various APIs.

%files devel
%doc README.md doc/GPL.txt doc/%{oname}-TODO
%doc doc/CarlaBackend
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}-native-plugin.pc
%{_libdir}/pkgconfig/%{name}-standalone.pc
%{_libdir}/pkgconfig/%{name}-utils.pc
%{_libdir}/pkgconfig/carla-host-plugin.pc

#--------------------------------------------------------------------

%package vst
Summary:	CarlaRack and CarlaPatchbay VST plugins
Group:		Sound
Requires:	%{name} = %{EVRD}

%description vst
This package contains Carla VST plugins, including CarlaPatchbayFX,
CarlaPatchbay, CarlaRackFX, and CarlaRack.

%files vst
%doc README.md doc/GPL.txt
%{_libdir}/vst/%{name}.vst/

#--------------------------------------------------------------------


%prep
%autosetup -p1 -n %{oname}-%{version}

find . -name '*.py' | xargs sed -i '1s|^.*$|#!%{__python3}|'


%build
%setup_compile_flags
make features
%make
# For devel docs
%make doxygen


%install
%makeinstall_std -- PREFIX="%{_prefix}" LIBDIR="%{_libdir}" PYVER="%{python3_version}"


# Move arch dependent file installed in the wrong spot...
#mv %%{buildroot}%%{_datadir}/%%{name}/resources/zynaddsubfx-ui %%{buildroot}%%{_libdir}/%%{name}
# ... but leave a symlink where carla searches for it
#ln -s %%{_libdir}/%%{name}/zynaddsubfx-ui %%{buildroot}%%{_datadir}/%%{name}/resources/zynaddsubfx-ui

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/widgets/*.py
chmod -x %{buildroot}%{_datadir}/%{name}/widgets/__init__.py
chmod +x %{buildroot}%{_datadir}/%{name}/patchcanvas/*.py
chmod +x %{buildroot}%{_datadir}/%{name}/modgui/*.py
chmod -x %{buildroot}%{_datadir}/%{name}/modgui/__init__.py
chmod +x %{buildroot}%{_datadir}/%{name}/externalui.py
chmod +x %{buildroot}%{_datadir}/%{name}/ladspa_rdf.py
chmod +x %{buildroot}%{_datadir}/%{name}/%{name}
chmod +x %{buildroot}%{_datadir}/%{name}/%{name}_*
chmod +x %{buildroot}%{_datadir}/%{name}/%{name}-*

# Fix env shebangs
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{_bindir}/carla-single
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{_datadir}/%{name}/carla
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{_datadir}/%{name}/carla-*
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{_datadir}/%{name}/resources/*-ui
sed -i '1 s,^#!/usr/bin/env python3,#!%{__python3},' %{buildroot}%{_datadir}/%{name}/resources/carla-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12202 |21mr|cas-client-3.4.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          cas-client
Version:       3.4.1
Release:       8
Summary:       Jasig CAS Client for Java
License:       ASL 2.0 and BSD
Url:           https://github.com/Jasig/java-cas-client
Source0:       https://github.com/Jasig/java-%{name}/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sf.ehcache:ehcache-core)
BuildRequires: mvn(net.spy:spymemcached)
BuildRequires: mvn(org.apache.santuario:xmlsec)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-test)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jasig CAS Client for Java is the integration point for applications that
want to speak with a CAS server, either via the CAS 1.0 or CAS 2.0 protocol.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n java-%{name}-%{name}-%{version}

find . -name "*.class" -delete
find . -name "*.jar" -delete

%pom_remove_parent
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-enforcer-plugin

%pom_disable_module cas-client-integration-atlassian
%pom_disable_module cas-client-integration-jboss
%pom_disable_module cas-client-integration-tomcat-v6
%pom_disable_module cas-client-integration-tomcat-v7

%pom_change_dep xml-security:xmlsec org.apache.santuario:xmlsec::runtime cas-client-core

%pom_xpath_set "pom:dependency[pom:artifactId = 'log4j']/pom:version" 1.2.17
%pom_xpath_set "pom:dependency[pom:artifactId = 'log4j']/pom:version" 1.2.17 cas-client-core
%pom_xpath_set "pom:dependency[pom:artifactId = 'javax.servlet-api']/pom:version" 3.1.0

# IncompatibleClassChangeError: class org.springframework.core.LocalVariableTableParameterNameDiscoverer$ParameterNameDiscoveringVisitor has interface org.objectweb.asm.ClassVisitor as super class
rm -r cas-client-core/src/test/java/org/jasig/cas/client/validation/Cas20ProxyTicketValidatorTests.java

# java.net.ConnectException: Connection refused
rm -r cas-client-core/src/test/java/org/jasig/cas/client/validation/Cas20ServiceTicketValidatorTests.java

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license %{name}-core/LICENSE.txt LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license %{name}-core/LICENSE.txt LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12203 |21mr|cassandra-java-driver-3.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cassandra-java-driver
Version:	3.4.0
Release:	4
Summary:	DataStax Java Driver for Apache Cassandra
License:	ASL 2.0
URL:		https://github.com/datastax/java-driver
Source0:	https://github.com/datastax/java-driver/archive/%{version}.tar.gz

# In Fedora 28 is only Guava>=20 available
Patch0:         %{name}-%{version}-Remove-Guava-code-for-v18.patch

BuildRequires:	maven-local
BuildRequires:	mvn(io.dropwizard.metrics:metrics-core)
BuildRequires:	mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:	mvn(com.google.guava:guava)
BuildRequires:	mvn(io.netty:netty-handler)
BuildRequires:	mvn(io.netty:netty-transport-native-epoll)
BuildRequires:	mvn(javax.json:javax.json-api)
BuildRequires:	mvn(joda-time:joda-time)
BuildRequires:	mvn(log4j:log4j:1.2.17)
BuildRequires:	mvn(net.jpountz.lz4:lz4)
BuildRequires:	mvn(org.apache.commons:commons-exec)
BuildRequires:	mvn(org.assertj:assertj-core)
BuildRequires:	mvn(org.hdrhistogram:HdrHistogram)
BuildRequires:	mvn(org.mockito:mockito-all)
BuildRequires:	mvn(org.ow2.asm:asm-all)
BuildRequires:	mvn(org.slf4j:slf4j-api)
BuildRequires:	mvn(org.slf4j:slf4j-log4j12)
BuildRequires:	mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:	mvn(org.testng:testng)
BuildRequires:	mvn(org.xerial.snappy:snappy-java)
BuildRequires:	mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:	mvn(com.github.jnr:jnr-ffi)
BuildRequires:	mvn(com.github.jnr:jnr-posix)
BuildRequires:	mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:	mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:	mvn(org.apache.felix:org.apache.felix.framework)
# driver-tests stress module dependencies
BuildRequires:	mvn(ch.qos.logback:logback-classic)
#BuildRequires:	mvn(net.sf.jopt-simple:jopt-simple)
#BuildRequires:	mvn(com.yammer.metrics:metrics-core) missing
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A driver for Apache Cassandra 1.2+ that works exclusively with the
Cassandra Query Language version 3 (CQL3) and Cassandra's binary protocol.

%package extras
Summary:	DataStax Java Driver for Apache Cassandra - Extras
Requires:	%{name} = %{version}-%{release}

%description extras
Extended functionality for the Java driver.

%package mapping
Summary:	DataStax Java Driver for Apache Cassandra - Object Mapping
Requires:	%{name} = %{version}-%{release}

%description mapping
Object mapper for the DataStax CQL Java Driver.

%package parent
Summary:	DataStax Java Driver for Apache Cassandra - Parent POM

%description parent
Parent POM for the DataStax Java Driver.

%package tests
Summary:	DataStax Java Driver for Apache Cassandra - Tests
Requires:	%{name} = %{version}-%{release}

%description tests
Tests for the DataStax Java Driver.

%package javadoc
Summary:	Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -qn java-driver-%{version}

# remove Guava v18 code
%patch0 -p1

# Unneeded features
%pom_disable_module driver-dist
%pom_disable_module driver-examples
# missing dependency for stress tests
%pom_disable_module stress driver-tests
# we remove maven-shade-plugin
%pom_disable_module shading driver-tests
# Unavailable plugins
%pom_remove_plugin -r :animal-sniffer-maven-plugin:
%pom_remove_plugin -r :clirr-maven-plugin
%pom_remove_plugin -r :license-maven-plugin
# kr.motd.maven:os-maven-plugin:1.4.1.Final
%pom_xpath_remove -r "pom:build/pom:extensions"
# Unwanted tasks
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin :gmaven-plugin driver-mapping
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions/pom:execution/pom:goals"
# Disable shaded copy of netty artifacts
%pom_remove_plugin -r :maven-shade-plugin driver-core

# remove hidden files from documentation
rm manual/statements/.nav
rm manual/object_mapper/.nav

%mvn_package ":cassandra-driver-tests-parent" tests
%mvn_package ":cassandra-driver-tests-osgi" tests

%build
# Unavailable test dep org.cassandra:java-client:0.11.0 
%mvn_build -fs

%install
%mvn_install

%files -f .mfiles-cassandra-driver-core
%doc README.md changelog faq manual upgrade_guide
%license LICENSE

%files extras -f .mfiles-cassandra-driver-extras
%files mapping -f .mfiles-cassandra-driver-mapping
%files parent -f .mfiles-cassandra-driver-parent
%license LICENSE

%files tests -f .mfiles-tests

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12204 |21mr|castor-1.3.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        An open source data binding framework for Java
Name:           castor
Version:        1.3.3
Release:        11
# Older source files are BSD licensed and newer ones are ASL licensed
License:        BSD and ASL 2.0
URL:            http://castor-data-binding.github.io/castor/
# Hash sum of source will not match upstream because bundled jars have been removed
Source0:        http://dist.codehaus.org/castor/%{version}/castor-%{version}-src.tgz
Patch0:         castor-1.3.2-fix-unmappable-chars.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  maven-local
BuildRequires:  mvn(ant:ant)
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(edu.umd.cs:multithreadedtc)
BuildRequires:  mvn(jakarta-regexp:jakarta-regexp)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(ldapsdk:ldapsdk)
BuildRequires:  mvn(log4j:log4j:1.2.16)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.castor:castor-xml)
BuildRequires:  mvn(org.codehaus:codehaus-parent:pom:)
BuildRequires:  mvn(org.codehaus.mojo:castor-maven-plugin)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.springframework:spring-context)
BuildRequires:  mvn(org.springframework:spring-test)
BuildRequires:  mvn(oro:oro)
BuildRequires:  mvn(velocity:velocity)
BuildRequires:  mvn(xmlunit:xmlunit)
Obsoletes:      castor-demo < 1.3.2
Obsoletes:      castor-test < 1.3.2
Obsoletes:      castor-xml < 1.3.2
Obsoletes:      castor-doc < 1.3.2

%description
Castor is an open source data binding framework for Java. It's basically
the shortest path between Java objects, XML documents and SQL tables.
Castor provides Java to XML binding, Java to SQL persistence, and more.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;

%patch0 -p0 -b.orig

# Disable uneeded modules
%pom_disable_module anttask
%pom_disable_module xmlctf-framework
%pom_disable_module maven-plugins
%pom_disable_module xml-annotations

# Disable integration test suites
%pom_disable_module cpactf
%pom_disable_module jpa-extensions-it
%pom_disable_module xmlctf

# Remove test deps that are not in Fedora
%pom_remove_dep tyrex:tyrex
%pom_remove_dep tyrex:tyrex cpa
%pom_xpath_remove "pom:build/pom:extensions"

# Fix dep on cglib
sed -i 's@cglib-nodep@cglib@g' pom.xml cpa/pom.xml

# Fix dep on mtc
sed -i 's@edu.umd.cs.mtc@edu.umd.cs@g' pom.xml xml/pom.xml

# These APIs are provided by modern JREs
%pom_remove_dep "javax.xml.stream:stax-api" . xml
%pom_remove_dep "stax:stax" . xml

%build
%mvn_build -- -Dgpg.skip=true -Dmaven.test.skip=true

%install
%mvn_install

%files -f .mfiles
%doc src/doc/license.txt src/doc/new-license.txt

%files javadoc -f .mfiles-javadoc
%doc src/doc/license.txt src/doc/new-license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12205 |21mr|castor-maven-plugin-2.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             castor-maven-plugin
Version:          2.5
Release:          10
Summary:          Maven plugin for Castor XML's code generator
License:          ASL 2.0
URL:              http://www.mojohaus.org/castor-maven-plugin/

Source0:          https://github.com/mojohaus/castor-maven-plugin/archive/castor-maven-plugin-%{version}.tar.gz
Patch0:           duplicate-descriptors.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(commons-io:commons-io)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.maven:maven-compat)
BuildRequires:    mvn(org.apache.maven:maven-core)
BuildRequires:    mvn(org.apache.maven:maven-plugin-api)
BuildRequires:    mvn(org.apache.maven:maven-project)
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:    mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:    mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:    mvn(org.codehaus.castor:castor-codegen) >= 1.3.2-9
BuildRequires:    mvn(org.codehaus.castor:castor-xml-schema) >= 1.3.2-9
BuildRequires:    mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:    mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:    mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:    mvn(velocity:velocity)

%description
The Castor plugin is a Maven plugin that provides the functionality of Castor
XML's code generator for generating Java beans and associated descriptor
classes (required for marshaling to and unmarshaling from XML documents) from
XML Schema files.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n castor-maven-plugin-castor-maven-plugin-%{version}

# Remove any pre-built binaries
find -name "*.jar" -exec rm {} \;
find -name "*.class" -exec rm {} \;

# Patch due to duplicate mojo descriptor generation
sed -i 's/\r/\n/g' src/main/java/org/codehaus/mojo/castor/ConvertDTD2XSDMojo.java
%patch0

# Missing dep on maven core/compat
%pom_add_dep org.apache.maven:maven-core
%pom_add_dep org.apache.maven:maven-compat
%pom_add_dep junit:junit::test

%build
%mvn_build -- -Denforcer.skip=true

%install
%mvn_install

%files -f .mfiles
%license LICENSE.TXT

%files javadoc -f .mfiles-javadoc
%license LICENSE.TXT


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12206 |21mr|cbi-plugins-1.1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           cbi-plugins
Version:        1.1.7
Release:        2
Summary:        A set of helpers for Eclipse CBI
License:        EPL-1.0
URL:            https://git.eclipse.org/c/cbi/org.eclipse.cbi.git/tree/maven-plugins/README.md

Source0:        https://git.eclipse.org/c/cbi/org.eclipse.cbi.git/snapshot/org.eclipse.cbi_maven-plugin-parent_%{version}.tar.xz

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.auto.value:auto-value)
BuildRequires:	mvn(com.google.auto.value:auto-value-annotations)
BuildRequires:  mvn(com.google.guava:guava:20.0)
BuildRequires:  mvn(de.pdark:decentxml)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpmime)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.eclipse.tycho:tycho-core)

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A set of helpers for Eclipse CBI.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n org.eclipse.cbi_maven-plugin-parent_%{version}
%pom_disable_module eclipse-macsigner-plugin maven-plugins
%pom_disable_module eclipse-winsigner-plugin maven-plugins
%pom_disable_module eclipse-dmg-packager maven-plugins
%pom_disable_module eclipse-flatpak-packager maven-plugins

# Disable plugins not needed for RPM builds
%pom_remove_plugin :spotbugs-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-enforcer-plugin

# Build the common module
%pom_xpath_inject pom:modules "<module>../common/</module>" maven-plugins
%pom_remove_dep org.eclipse.cbi:checkstyle common

%if 0
# Remove separate annotations requirement of auto
%pom_remove_dep :auto-value-annotations . common maven-plugins/common
%endif

# Parent pom and common module are "released" independently, but actually nothing changed yet since last releases
sed -i -e 's/1\.0\.6-SNAPSHOT/1.0.5/' pom.xml
sed -i -e 's/1\.2\.4-SNAPSHOT/1.2.3/' common/pom.xml

%build
# Tests require jimfs which is not in Fedora
%mvn_build -f -- -f maven-plugins/pom.xml -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12207 |21mr|ccache-3.2.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ccache
Version:	3.2.4
Release:	5
Group:		Development/Other
Summary:	Compiler Cache
License:	GPLv3+
URL:		http://ccache.samba.org/
Source0:	http://samba.org/ftp/ccache/%{name}-%{version}.tar.xz

%description
ccache is a compiler cache. It acts as a caching pre-processor to 
C/C++ compilers, using the -E compiler switch and a hash to detect 
when a compilation can be satisfied from cache. This often results 
in a 5 to 10 times speedup in common compilations.

To enable ccache's default use, the system admin should modify 
%{_sysconfdir}/sysconfig/ccache to "yes". If its default use is not 
enabled and you wish to use it, simply add %{_prefix}/%{_lib}/ccache/bin/ to 
the start of your \$PATH

%prep
%setup -q

%build
%configure
%make

%__cat <<EOF > %{name}.sh

if [ -f /etc/sysconfig/ccache ]; then
    . /etc/sysconfig/ccache
fi
if [ "\$USE_CCACHE_DEFAULT" = "yes" ]; then
    if [ -z \`echo "\$PATH" | grep "%_libdir/ccache/bin"\` ]; then
        export PATH="%_libdir/ccache/bin:\$PATH"
    fi
fi
EOF

%__cat << EOF > %{name}.csh

if ( -f /etc/sysconfig/ccache ) then
    eval \`sed -n 's/^\([^#]*\)=\([^#]*\)/set \1=\2;/p' < /etc/sysconfig/ccache\`
endif
if ( "\$USE_CCACHE_DEFAULT" == "yes" ) then
    if ( "\$path" !~ *%_libdir/ccache/bin* ) then
        setenv path = ( %_libdir/ccache/bin \$path )
    endif
endif
EOF

%install
%__rm -rf %{buildroot}
%__install -dm 755 %{buildroot}{%{_bindir},%{_libdir}/ccache/bin,%{_mandir}/man1}
%__install -pm 755 ccache %{buildroot}%{_bindir}
%__install -pm 644 ccache.1 %{buildroot}%{_mandir}/man1
%__install -pm 755 %{name}.sh -D %{buildroot}%{_sysconfdir}/profile.d/30ccache.sh
%__install -pm 755 %{name}.csh -D %{buildroot}%{_sysconfdir}/profile.d/30ccache.csh

rm -f %{name}-%{version}.compilers
pref=`gcc -dumpmachine`

create_compiler() {
%__cat <<EOF > %{buildroot}%{_prefix}/%{_lib}/ccache/bin/$1
#!/bin/sh
if [ ! -x %_bindir/$1 ]; then
	echo Error: compiler $1 does not exist. >&2
	exit 127
fi
PATH=%_bindir:\$PATH
if [ -f /etc/sysconfig/ccache ]; then
	. /etc/sysconfig/ccache
	if [ "\$USE_CCACHE_WITH_ICECREAM" = "yes" ]; then
	PATH=%{_libdir}/icecc/bin:\$PATH
	fi
fi

ccache ${1} "\$@"
EOF
echo "%attr(0755,root,root) %{_libdir}/ccache/bin/$1" >> %{name}-%{version}.compilers
}

for name in gcc g++ c++; do
 for comp in $name $pref-$name ${pref/manbo/mandriva}-$name; do
  # check for backports that have no manbo:
  [ -e "%{buildroot}%{_libdir}/ccache/bin/$comp" ] || create_compiler $comp
 done
done
create_compiler cc

%__mkdir_p %{buildroot}%{_sysconfdir}/sysconfig/
%__cat <<EOF > %{buildroot}/%{_sysconfdir}/sysconfig/%{name}
# Should we add the ccache compiler symlinks to PATH
# yes|no
# Please note that if added to \$PATH the user can still disable 
# it with CCACHE_DISABLE
# If not enabled by default, the user can add %{_libdir}/ccache/bin/
# to their \$PATH
USE_CCACHE_DEFAULT="no"

# Enable icecream integration
USE_CCACHE_WITH_ICECREAM="no"

EOF

%files -f %{name}-%{version}.compilers
%dir %{_libdir}/ccache
%dir %{_libdir}/ccache/bin
%{_bindir}/ccache
%{_mandir}/man1/ccache.1*
%{_sysconfdir}/profile.d/*
%config(noreplace) %{_sysconfdir}/sysconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12208 |21mr|ccid-1.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define usbdropdir %(pkg-config libpcsclite --variable usbdropdir || :)

Summary:	A generic USB Chip/Smart Card Interface Devices driver
Name:		ccid
Version:	1.5.5
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		System/Libraries
Url:		https://ccid.apdu.fr
Source0: 	https://ccid.apdu.fr/files/%{name}-%{version}.tar.bz2
Patch0:		ccid-libtool_fixes.diff
Patch1:		0001-Add-SCAN-BIO.patch
BuildRequires:	autoconf-archive
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libpcsclite) >= 1.8.3
BuildRequires:	pkgconfig(libusb-1.0) >= 1.0.9
Requires:	pcsc-lite
OrderWithRequires(post):	pcsc-lite
# compat with Fedora/RH
Provides:	pcsc-lite-ccid = %{EVRD}
Provides:	pcsc-ifd-handler = %{EVRD}

%description
This package provides a generic USB Chip/Smart Card Interface Devices driver.

%files
%license COPYING
%doc AUTHORS README.md
%doc readers contrib/Kobil_mIDentity_switch/README_Kobil_mIDentity_switch.txt
%doc README.towitoko
%config(noreplace) %{_sysconfdir}/reader.conf.d/*.conf
%config(noreplace) %{_udevrulesdir}/92_pcscd_ccid.rules
%{usbdropdir}/ifd-ccid.bundle
%{usbdropdir}/serial

%post
systemctl try-reload-or-restart pcscd.service || :

%postun
systemctl try-reload-or-restart pcscd.service || :

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./bootstrap
# WARNING: The usbdropdir must be the same as in pcsc-lite
%configure \
	--enable-twinserial \
	--enable-usbdropdir=%{usbdropdir}

%make


%install
%makeinstall_std

# The serial driver is installed separately
%makeinstall_std -C src install_ccidtwin

# Install conf file inside reader.conf.d
mkdir -p %{buildroot}%{_sysconfdir}/reader.conf.d/
mv -f %{buildroot}/%{_sysconfdir}/reader.conf.d/libccidtwin %{buildroot}%{_sysconfdir}/reader.conf.d/GemPCTwin-serial.conf

# Install udev rules
install -m 0644 -D src/92_pcscd_ccid.rules %{buildroot}%{_udevrulesdir}/92_pcscd_ccid.rules

# Prepare for our %%doc macro
rm -rf %{buildroot}%{_docdir}/*
cp -f src/towitoko/README README.towitoko

# Unwanted stuff
rm -f readers/Makefile*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12209 |21mr|c-client-2007f-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define fversion 2007f
%define soname c-client

%define major 0
%define libname %mklibname %{soname} %{major}
%define devname %mklibname %{soname} -d

Summary:	UW-IMAP C-CLIENT library
Name:		c-client
Version:	2007f
Release:	10
License:	Apache License
Group:		System/Servers
Url:		http://www.washington.edu/imap/
Source0:	ftp://ftp.cac.washington.edu/mail/imap-%{fversion}.tar.gz
Source7:	flock.c
Source8:	Makefile.imap
Patch0: 	imap-2002e-ssl.patch
Patch1: 	imap-2007a-linux.diff
Patch3:		imap-2001a-disable-mbox.patch
Patch4:		imap-2001a-redhat.patch
Patch5: 	imap-2006c1-flock.diff
Patch9:		imap-2006c1-glibc-2.2.2.diff
Patch11:	imap-2006c1-krbpath.diff
Patch12:	imap-2001a-overflow.patch
Patch17:	imap-mail-spool-perms.diff
Patch21:	imap-2004a-shared.patch
Patch22:	imap-2002e-authmd5.patch
# (oe) the annotate patch is implemented upstream and needed by kolab2
Patch23:	imap-2006c1-annotate.diff
# (oe) http://www.gadgetwiz.com/software/hash_reset.html
Patch24:	imap-2004g-hash_reset.diff
Patch25:	imap-yes.diff

#Gentoo patches
Patch30:	c-client-2006k_GENTOO_Makefile.patch
Patch31:	c-client-2006k_GENTOO_amd64-so-fix.patch
Patch32:	c-client-2007f-ldflags.patch
Patch33:	c-client-2007f-openssl-1.1.patch
Patch34:	c-client-2007f-topal.patch

BuildRequires:	pkgconfig(openssl)

%description
The c-client library is a common API for accessing mailboxes developed at
the University of Washington. It is used mainly by php in Mandriva Linux.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C-client mail access routines for IMAP and POP protocols
Group:		System/Libraries
Provides:	c-client = %{EVRD}

%description -n %{libname}
The c-client library is a common API for accessing mailboxes developed at
the University of Washington. It is used mainly by php in Mandriva Linux.

This package contains the shared c-client library.

%files -n %{libname}
%{_libdir}/lib%{soname}.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the c-client library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	c-client-devel = %{EVRD}

%description -n %{devname}
The c-client library is a common API for accessing mailboxes developed at
the University of Washington. It is used mainly by php in Mandriva Linux.

This package contains development files for the c-client library.

%files -n %{devname}
%{_includedir}/imap
%{_libdir}/lib%{soname}.a
%{_libdir}/lib%{soname}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n imap-%{version}

install -m 0644 %{SOURCE7} src/osdep/unix/flock.c

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"
touch ip6
export EXTRACFLAGS="$EXTRACFLAGS $CFLAGS -DDISABLE_POP_PROXY=1 -DIGNORE_LOCK_EACCES_ERRORS=1 -I%{_includedir}/openssl -D_GNU_SOURCE"
export EXTRALDFLAGS="$EXTRALDFLAGS -L%{_libdir} %{ldflags}"

make RPM_OPT_FLAGS="$CFLAGS -D_REENTRANT -DDIC -fPIC -fno-omit-frame-pointer -D_GNU_SOURCE" slx \
	EXTRACFLAGS="$EXTRACFLAGS" \
	EXTRALDFLAGS="$EXTRALDFLAGS" \
	SSLDIR=%{_libdir}/ssl \
	SSLINCLUDE=%{_includedir}/openssl \
	SSLLIB=%{_libdir} \
	LOCKPGM=%{_sbindir}/mlock \
	SSLTYPE=unix \
	SHLIBBASE=%{soname} \
	SHLIBNAME=lib%{soname}.so.%{major} \
	BASECFLAGS="$CFLAGS -D_REENTRANT -DDIC -fPIC -fno-omit-frame-pointer -D_GNU_SOURCE" \
	IP=6

mv -f c-client/c-client.a %{soname}.a
mv -f c-client/lib%{soname}.so.%{major} .

%install
# make some directories
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}/imap

# install headers
install -m0644 c-client/*.h %{buildroot}%{_includedir}/imap/
install -m0644 src/osdep/tops-20/shortsym.h %{buildroot}%{_includedir}/imap/
install -m0644 src/osdep/tops-20/linkage.c %{buildroot}%{_includedir}/imap/

install -m0755 lib%{soname}.so.%{major} %{buildroot}%{_libdir}/
ln -snf lib%{soname}.so.%{major} %{buildroot}%{_libdir}/lib%{soname}.so
install -m0644 %{soname}.a %{buildroot}%{_libdir}/lib%{soname}.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12210 |21mr|cdi-api-1.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without asciidoc

%global namedreltag .NOTHING
%global namedversion %{version}%{?namedreltag}

Name:             cdi-api
Version:          1.2
Release:          11
Summary:          CDI API
License:          ASL 2.0
URL:              http://seamframework.org/Weld
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          https://github.com/cdi-spec/cdi/archive/%{version}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(javax.el:javax.el-api)
BuildRequires:    mvn(javax.inject:javax.inject)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires:    mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:    mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires:    mvn(org.jboss.weld:weld-parent:pom:)
BuildRequires:    mvn(org.testng:testng::jdk15:)
%if %{with asciidoc}
BuildRequires:    asciidoc
BuildRequires:    /usr/bin/pygmentize
%endif

%description
APIs for JSR-299: Contexts and Dependency Injection for Java EE

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n cdi-%{version}

cd api
# J2EE API directory
%mvn_file :{cdi-api} %{name}/@1 javax.enterprise.inject/@1

# Use newer version of interceptors API
%pom_change_dep "javax.interceptor:javax.interceptor-api" "org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec"

%build

(
 cd api
 %mvn_build -- -Denforcer.skip
)

%if %{with asciidoc}
cd spec/src/main/doc
asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o cdi-spec.html cdi-spec.asciidoc
asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o license-asl2.html license-asl2.asciidoc
asciidoc -n -b html5 -a toc2 -a toclevels=3 -a pygments -f html5.conf -o license-jcp.html license-jcp.asciidoc
%global adoc html
%else
%global adoc asciidoc
%endif

%install
cd api
%mvn_install

%files -f api/.mfiles
%doc spec/src/main/doc/cdi-spec.%{adoc}
%license spec/src/main/doc/license-asl2.%{adoc}
%license spec/src/main/doc/license-jcp.%{adoc}

%files javadoc -f api/.mfiles-javadoc
%license spec/src/main/doc/license-asl2.%{adoc}
%license spec/src/main/doc/license-jcp.%{adoc}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12211 |21mr|cdparanoia-10.2-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define fullname %{name}-III-%{version}
# TODO: split library package
%define libname %mklibname cdda %{major}
%define devname %mklibname cdda -d

Summary:	Utility to copy digital audio CDs
Name:		cdparanoia
Version:	10.2
Release:	19
Epoch:		1
License:	GPLv2+ and LGPLv2+
Group:		Sound
Url:		http://www.xiph.org/paranoia/
Source0:	http://downloads.xiph.org/releases/cdparanoia/%{fullname}.src.tgz
Patch0:		cdparanoia-III-alpha9.8-includes.patch
Patch1:		cdparanoia-III-10.2-gcc43.patch
Patch2:		cdparanoia-III-10.2-format-security.patch
Patch3:		cdparanoia-use-proper-gnu-config-files.patch
Patch4:		cdparanoia-10.2-ldflags.patch

%description
This CDDA reader distribution ('cdparanoia') reads audio from the CDROM
directly as data, with no analog step between, and writes the data to a file
or pipe as .wav, .aifc or as raw 16 bit linear PCM.

cdparanoia is a complete rewrite of Heiko Eissfeldt's 'cdda2wav' program,
and generally is much better at succeeding to read difficult discs with
cheap drives.

%files
%doc README
%attr(755,root,root) %{_bindir}/cdparanoia
%attr(644,root,root) %{_mandir}/man1/cdparanoia.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for cdparanoia
Group:		Sound

%description -n %{libname}
This is the development libraries for cdparanoia. cdparanoia is a complete
rewrite of Heiko Eissfeldt's 'cdda2wav' program, and generally is much better
at succeeding to read difficult discs with cheap drives.

%files -n %{libname}
%{_libdir}/libcdda_interface.so.%{major}*
%{_libdir}/libcdda_paranoia.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for cdparanoia
Group:		Development/C
Provides:	libcdda-devel = %{EVRD}
Provides:	cdda-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{mklibname cdda 0 -d} < %{EVRD}

%description -n %{devname}
This is the development libraries for cdparanoia. cdparanoia is a complete
rewrite of Heiko Eissfeldt's 'cdda2wav' program, and generally is much better 
at succeeding to read difficult discs with cheap drives.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fullname}
%autopatch -p1

cp /usr/share/libtool/config/config.* .
autoreconf -fiv

%build
%configure --libdir=%{_libdir}/cdparanoia
# (gb) don't use fortify, this package has ugly abuse of memcpy() that we can't cope with if it's a macro
# XXX would be better to define scsi cmds constants instead...
export RPM_OPT_FLAGS="$(echo %{optflags} |sed s/-Wp,-D_FORTIFY_SOURCE=.//)"
make OPT="-fsigned-char -finline-functions -Dsize16='short' -Dsize32='int' $RPM_OPT_FLAGS"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_docdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_mandir}/man1

%makeinstall \
	BINDIR=%{buildroot}%{_bindir} \
	INCLUDEDIR=%{buildroot}%{_includedir} \
	LIBDIR=%{buildroot}%{_libdir} \
	MANDIR=%{buildroot}%{_mandir}

install -m644 cdparanoia.1 %{buildroot}%{_mandir}/man1/

# Fix permissions to avoid unstripped-binary-or-object rpmlint error
chmod 0755 %{buildroot}%{_libdir}/*.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12212 |21mr|cdrkit-1.1.11-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	A command line CD/DVD-Recorder
Name:		cdrkit
Version:	1.1.11
Release:	22
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		http://cdrkit.org/
Source0:	http://cdrkit.org/releases/%{name}-%{version}.tar.gz
Patch0:		cdrkit-1.1.9-wformat-error.patch
# (helio) fix build with cmake 2.8
Patch2:		cdrkit-1.1.9-cmake2.8-build.patch
# (fc) 1.1.9-3mdv fix buffer overflow in wodim (Fedora)
Patch4:		cdrkit-1.1.9-buffer_overflow.patch
Patch5:		cdrkit-1.1.9-efi-boot.patch
Patch6:		cdrkit-1.1.11-devname.patch
Patch7:		cdrkit-1.1.11-format.patch
Patch8:		cdrkit-1.1.11-handler.patch
Patch9:		cdrkit-1.1.11-readsegfault.patch
Patch10:	cdrkit-1.1.11-rootstat.patch
BuildRequires:	cmake
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	libcap-devel
BuildRequires:	magic-devel

%description
A command line CD/DVD-Recorder (obsoleted by cdrtools).

#----------------------------------------------------------------------------

%package genisoimage
Summary:	Creates an image of an ISO9660 filesystem
Group:		Archiving/Cd burning
Provides:	genisoimage = %{EVRD}
Requires(pre):	rpm-helper
Requires(pre):	shadow-utils

%description genisoimage
genisoimage is used to create ISO 9660 file system images for creating
CD-ROMs. Now includes support for making bootable "El Torito" CD-ROMs.

%files genisoimage
%{_bindir}/genisoimage
%{_bindir}/dirsplit
%{_mandir}/man1/genisoimage.1.*
%{_mandir}/man5/genisoimagerc.5.*
%{_mandir}/man1/dirsplit.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .wformat
%patch2 -p1 -b .cmake
%patch4 -p1 -b .buffer_overflow
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1

%build
%cmake

%make

%install
perl -pi -e 's!local/bin/perl!bin/perl!' ./doc/icedax/tracknames.pl
%makeinstall_std -C build

# These are in cdrtools package now
rm -f %{buildroot}%{_bindir}/cdda2mp3
rm -f %{buildroot}%{_bindir}/cdda2ogg
rm -f %{buildroot}%{_bindir}/devdump
rm -f %{buildroot}%{_bindir}/icedax
rm -f %{buildroot}%{_bindir}/isodebug
rm -f %{buildroot}%{_bindir}/isodump
rm -f %{buildroot}%{_bindir}/isoinfo
rm -f %{buildroot}%{_bindir}/isovfy
rm -f %{buildroot}%{_bindir}/pitchplay
rm -f %{buildroot}%{_bindir}/readmult
rm -f %{buildroot}%{_bindir}/readom
rm -f %{buildroot}%{_bindir}/wodim
rm -f %{buildroot}%{_sbindir}/netscsid
rm -f %{buildroot}%{_mandir}/man1/cdda2ogg.1*
rm -f %{buildroot}%{_mandir}/man1/devdump.1*
rm -f %{buildroot}%{_mandir}/man1/icedax.1*
rm -f %{buildroot}%{_mandir}/man1/isodebug.1*
rm -f %{buildroot}%{_mandir}/man1/isodump.1*
rm -f %{buildroot}%{_mandir}/man1/isoinfo.1*
rm -f %{buildroot}%{_mandir}/man1/isovfy.1*
rm -f %{buildroot}%{_mandir}/man1/list_audio_tracks.1*
rm -f %{buildroot}%{_mandir}/man1/pitchplay.1*
rm -f %{buildroot}%{_mandir}/man1/readmult.1*
rm -f %{buildroot}%{_mandir}/man1/readom.1*
rm -f %{buildroot}%{_mandir}/man1/wodim.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12213 |21mr|cdrtools-3.02-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta a07
# Build system doesn't support DI generation
%define debug_package %{nil}

%bcond_with alsa
%bcond_with pulse

Summary:	Tools for working with writable CD, DVD and BluRay media
Name:		cdrtools
Version:	3.02
Release:	5
License:	Various Open Source Licenses (CDDL.Schily, GPL-2.0, LGPL-2.1, BSD)
Group:		Archiving/Cd burning
Url:		http://cdrtools.sourceforge.net/
Source0:	http://downloads.sourceforge.net/cdrtools/%{name}-%{version}%{?beta:%{beta}}.tar.bz2
%if %{with alsa}
BuildRequires:	pkgconfig(alsa)
%endif
BuildRequires:	pkgconfig(libcap)
%if %{with pulse}
BuildRequires:	pkgconfig(libpulse)
%endif
BuildRequires:	makedepend
Conflicts:	cdrkit < 1.1.11-20
Conflicts:	cdrkit-genisoimage < 1.1.11-20
Conflicts:	cdrkit-icedax < 1.1.11-20
Conflicts:	cdrkit-isotools < 1.1.11-20
Obsoletes:	cdrkit < 1.1.11-20
Obsoletes:	cdrkit-icedax < 1.1.11-20
Obsoletes:	cdrkit-isotools < 1.1.11-20
Provides:	cdrecord = %{EVRD}
Provides:	mkisofs = %{EVRD}
Provides:	cdrkit = %{EVRD}
Provides:	cdrkit-icedax = %{EVRD}
Provides:	cdrkit-isotools = %{EVRD}
Requires(post):	libcap-utils

%description
Cdrtools is a set of command line programs that allows to
record CD/DVD/BluRay media.

The suite includes the following programs:

  cdrecord  A CD/DVD/BD recording program 
  readcd    A program to read CD/DVD/BD media with CD-clone features
  cdda2wav  The most evolved CD-audio extraction program with paranoia support
  mkisofs   A program to create hybrid ISO-9660/Joliet/HFS filesystems
            with optional Rock Ridge attributes
  isodebug  A program to print mkisofs debug information from media
  isodump   A program to dump ISO-9660 media
  isoinfo   A program to analyse/verify ISO-9660/Joliet/Rock-Ridge filesystems
  isovfy    A program to verify the ISO-9660 structures
  rscsi     A Remote SCSI enabling daemon

%files
%{_bindir}/*
%{_sbindir}/rscsi
%{_prefix}/lib/siconv
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_sysconfdir}/default/cdrecord
%{_sysconfdir}/default/rscsi
%doc %{_docdir}/mkisofs
%doc %{_docdir}/libparanoia
%doc %{_docdir}/rscsi
%doc %{_docdir}/cdda2wav
%doc %{_docdir}/cdrecord

%post
%{_sbindir}/setcap cap_sys_resource,cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_ipc_lock,cap_sys_rawio+ep %{_bindir}/cdrecord
%{_sbindir}/setcap cap_dac_override,cap_sys_admin,cap_sys_nice,cap_net_bind_service,cap_sys_rawio+ep %{_bindir}/cdda2wav
%{_sbindir}/setcap cap_dac_override,cap_sys_admin,cap_net_bind_service,cap_sys_rawio+ep %{_bindir}/readcd

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e 's,^INS_BASE=.*,INS_BASE=%{_prefix},g' DEFAULTS/*
sed -i -e 's,-noclobber,,' cdrecord/Makefile.dfl
%ifarch %{e2k}
    ln -s i586-linux-gcc.rul RULES/e2k-linux-cc.rul
    ln -s cc-gcc.rul RULES/cc-cc.rul
%endif

# Remove lib*/*_p.mk to skip the compilation of profiled libs
rm -f lib*/*_p.mk

%build
# The Makefile system isn't 100% ready for an SMP build
./Gmake.linux -j1

%install
%makeinstall_std

# Not much of a point in shipping static libs and headers for libs used
# only by cdrtools
rm -rf \
	%{buildroot}%{_prefix}/lib/*.a \
	%{buildroot}%{_includedir}

# We get this from dvd+rw-tools
rm -f %{buildroot}%{_bindir}/btcflash

rm -rf %{buildroot}%{_mandir}/man3/fexecve.3* \
	%{buildroot}%{_mandir}/man3/fnmatch.3* \
	%{buildroot}%{_mandir}/man3/fprintf.3* \
	%{buildroot}%{_mandir}/man3/getline.3* \
	%{buildroot}%{_mandir}/man3/printf.3* \
	%{buildroot}%{_mandir}/man3/sprintf.3* \
	%{buildroot}%{_mandir}/man3/strlen.3* \
	%{buildroot}%{_mandir}/man3/error.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12214 |21mr|cef-126.0.6478.183-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global         commit 3647d39e700c215bd78172c5964eb1c550950f0f
%global         short_commit %(c=%{commit}; echo ${c:0:11})

%global         branch 6478
%global         chrome_tags 126.0.%{branch}.183

%global		llvm_ver 17
%global		llvm_path /opt/llvm%{llvm_ver}

%global clang_version %(%{llvm_path}/bin/clang --version | sed -n 's/clang version //p' | cut -d. -f1)
%global clang_base_path %(echo %{llvm_path})

%bcond_without rust_system_release

%if %{without rust_system_release}
%global rust_prefix %(echo /opt/rust-*)
%else
%global rust_prefix %{_prefix}
%endif
%global rustc_version %(%{rust_prefix}/bin/rustc -V)

%define		_cefdir %{_libdir}/%{name}
%define		cef_release_dir %{_cefdir}/Release
%define		resources_dir %{_cefdir}/Resources
%define		_include_cef %{_cefdir}/include

%bcond_without libffi
%if %{with libffi}
%global 	use_system_libffi use_system_libffi=true
%else
%global 	use_system_libffi use_system_libffi=false
%endif

%bcond_with debug_level
%if %{with debug_level}
%global 	symbol_level symbol_level=1
%else
%global 	symbol_level symbol_level=0
%endif

%bcond_with qt5
%if %{with qt5}
%global 	use_qt use_qt=true
%else
%global 	use_qt use_qt=false
%endif

%define		debug_package %{nil}
%global 	__requires_exclude (^devel\\(|.*\\.so\\()
%global 	__provides_exclude_from ^%{_libdir}/%{name}/.*\\.so.*$

Summary:        Chromium Embedded Framework standard release
Name:           cef
Version:        %{chrome_tags}
Release:        1
License:        BSD
Group:          Networking/WWW
Url:            https://bitbucket.org/chromiumembedded/cef
Source0:        https://bitbucket.org/chromiumembedded/cef/get/%{commit}.tar.gz?/%{name}-%{short_commit}.tar.gz
Source1:	https://gsdview.appspot.com/chromium-browser-official/chromium-%{chrome_tags}.tar.xz
Source3:	%{name}.rpmlintrc
Source4:	https://cef-builds.spotifycdn.com/cef_binary_126.2.18%2Bg3647d39%2Bchromium-%{chrome_tags}_linux64_minimal.tar.bz2
Patch0:		chromium-disable-font-tests.patch
Patch1:		clang-17-flags.patch
Patch2:		libclang-17.patch
Patch3:		git-checkout-remove.patch
# https://github.com/chromiumembedded/cef/issues/3616
Patch4:		linux_sentencepiece_disable_tls_3616.patch
BuildRequires:	bison
BuildRequires:  cmake
BuildRequires:	flex
BuildRequires:  gn
BuildRequires:	gperf
BuildRequires:	gyp
BuildRequires:  llvm%{llvm_ver}
BuildRequires:  ninja
BuildRequires:	nodejs
BuildRequires:	util-linux
BuildRequires:	jq
BuildRequires:	yasm
BuildRequires:	atomic-devel
BuildRequires:	bzip2-devel
BuildRequires:	cap-devel
BuildRequires:	cups-devel
BuildRequires:	elfutils
BuildRequires:	elfutils-devel
BuildRequires:	multiarch-utils
BuildRequires:	jpeg-devel
BuildRequires:	pam-devel
BuildRequires:	python3
BuildRequires:	snappy-devel
BuildRequires:	speech-dispatcher-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libspa-0.2)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	icu-devel
BuildRequires:	pythonegg(setuptools)
BuildRequires:	git-core
%if %{without rust_system_release}
BuildRequires:	rust-nightly
%else
BuildRequires:	rust
BuildRequires:	cargo
%endif
BuildRequires:	stdc++-static-devel
%if %{with libffi}
BuildRequires:  pkgconfig(libffi)
BuildRequires:  %{_lib}ffi-static-devel
%endif
%if %{with qt5}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif

%description
%{summary}.

%files
%license %{name}/LICENSE.txt
%doc %{name}/{AUTHORS.txt,README.md}
%dir %{_cefdir}
%{cef_release_dir}/cefclient
%{resources_dir}/chrome_100_percent.pak
%{resources_dir}/chrome_200_percent.pak
%{cef_release_dir}/chrome_sandbox
%{cef_release_dir}/chrome-sandbox
%{resources_dir}/icudtl.dat
%{cef_release_dir}/libEGL.so
%{cef_release_dir}/libGLESv2.so
%{cef_release_dir}/libcef.so
%{cef_release_dir}/libvk_swiftshader.so
%{cef_release_dir}/libvulkan.so.1
%dir %{resources_dir}/locales
%{resources_dir}/locales/*.pak
%{resources_dir}/locales/*.info
%{resources_dir}/resources.pak
%{cef_release_dir}/snapshot_blob.bin
%{cef_release_dir}/v8_context_snapshot.bin
%{cef_release_dir}/vk_swiftshader_icd.json

#------------------------------------------------------------------

%package devel
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
%{name} development files.

%files devel
%dir %{_cefdir}/libcef_dll_wrapper
%{_cefdir}/libcef_dll_wrapper/*.a
%dir %{_cefdir}/libcef_dll
%{_cefdir}/libcef_dll/*
%dir %{_cefdir}/tests
%{_cefdir}/tests/*
%dir %{_include_cef}
%{_include_cef}/*.h
%dir %{_include_cef}/base
%{_include_cef}/base/*
%dir %{_include_cef}/capi
%{_include_cef}/capi/*
%dir %{_include_cef}/internal
%{_include_cef}/internal/*
%dir %{_include_cef}/test
%{_include_cef}/test/*
%dir %{_include_cef}/views
%{_include_cef}/views/*
%dir %{_include_cef}/wrapper
%{_include_cef}/wrapper/*

#------------------------------------------------------------------

%prep
%setup -q -T -c
%setup -q -T -D -a0
tar xf %{SOURCE1} -C ${PWD} --strip=1
tar xf %{SOURCE4} -C %{_builddir}
%{__mv} -v chromiumembedded* ${PWD}/cef

cat cef/patch/patch.cfg \
| grep "'name':"     \
| tr -d "'"       \
| tr -d ","    \
| sed -e "s/    name: //g" > PATCH_CEF

for cef_patch in `cat PATCH_CEF`;do
patch -p0 < cef/patch/patches/${cef_patch}.patch;done

%autopatch -p1

pushd %{name}
COMMIT_NUMBER=%{branch} \
 %{__python3} tools/make_version_header.py include/cef_version.h --cef_version VERSION.in --chrome_version ../chrome/VERSION --cpp_header_dir include
popd

sed -i -e "s|rosa-linux-gnu|unknown-linux-gnu|g" build/config/clang/BUILD.gn

%{__mkdir_p} third_party/node/linux/node-linux-x64/bin
%{__ln_s} %{_bindir}/node third_party/node/linux/node-linux-x64/bin/node

%build
# build libcef_dll_wrapper.a
pushd %{_builddir}/cef_binary*
%cmake \
 -D CMAKE_BUILD_TYPE=Release \
 -D PROJECT_ARCH=%{_arch} \
 -D BUILD_SHARED_LIBS:BOOL=OFF \
 -D BUILD_STATIC_LIBS:BOOL=ON
%make libcef_dll_wrapper
popd

%global GN_DEFINES is_official_build=true \
 use_sysroot=false \
 %{symbol_level} \
 is_cfi=false \
 use_thin_lto=false \
 enable_nacl=false \
 enable_widevine=true \
 clang_use_chrome_plugins=false \
 chrome_pgo_phase=0 \
 %{use_system_libffi} \
 %{use_qt} \
 rust_sysroot_absolute="%{rust_prefix}" \
 rustc_version="%{rustc_version}" \
 clang_base_path="%{clang_base_path}" \
 clang_version="%{clang_version}" \
 treat_warnings_as_errors=false

%if %{with rust_system_release}
export RUSTC_BOOTSTRAP=1
%endif

# let's do a hack, remove the version check in update.py and resume it again only empty
%{__rm} -vrf tools/clang/scripts/update.py && touch tools/clang/scripts/update.py
%{__rm} -vrf tools/rust/update_rust.py && touch tools/rust/update_rust.py

export CC=%{llvm_path}/bin/clang
export CXX=%{llvm_path}/bin/clang++
export AR=%{llvm_path}/bin/llvm-ar
export NM=%{llvm_path}/bin/llvm-nm
export AR=%{llvm_path}/bin/llvm-ar
export READELF=%{llvm_path}/bin/llvm-readelf
sed -i -e 's,//third_party/llvm-build/Release+Asserts,%{llvm_path},g' build/config/clang/clang.gni

%if 0
%{__python3} build/linux/unbundle/replace_gn_files.py --system-libraries \
	icu
%endif

# Specify the path to the executable files for building with qt5
%if %{with qt5}
export PATH="%{_libdir}/qt5/bin:$PATH"
%endif

%{__python3} tools/gn/bootstrap/bootstrap.py --gn-gen-args='%{GN_DEFINES}'

out/Release/gn gen --script-executable=%{__python3} --args='%{GN_DEFINES}' out/Release_GN_%{_arch}

ninja %{_smp_mflags} -C out/Release_GN_%{_arch} cefclient chrome_sandbox

%install

%{__mkdir_p} %{buildroot}%{cef_release_dir}
%{__mkdir_p} %{buildroot}%{resources_dir}

for bin in cefclient chrome_sandbox;do
%{__cp} -vfr out/Release_GN_%{_arch}/${bin} %{buildroot}%{cef_release_dir};done

pushd %{buildroot}%{cef_release_dir}
ln -s chrome_sandbox chrome-sandbox
popd

for lib in libcef.so libEGL.so libGLESv2.so libvk_swiftshader.so libvulkan.so.1;do
%{__cp} -vfr out/Release_GN_%{_arch}/${lib} %{buildroot}%{cef_release_dir};done

%{__mv} -v out/Release_GN_%{_arch}/locales \
	%{buildroot}%{resources_dir}

%{__cp} -vfr out/Release_GN_%{_arch}/icudtl.dat \
	%{buildroot}%{resources_dir}

%{__cp} -vfr out/Release_GN_%{_arch}/{chrome_100_percent.pak,chrome_200_percent.pak,resources.pak} \
	%{buildroot}%{resources_dir}

%{__cp} -vfr out/Release_GN_%{_arch}/{snapshot_blob.bin,v8_context_snapshot.bin,vk_swiftshader_icd.json} \
	%{buildroot}%{cef_release_dir}

%{__mv} -v out/Release_GN_%{_arch}/obj/cef/libcef_dll_wrapper \
	%{buildroot}/%{_cefdir}

%{__rm} -vfr %{buildroot}/%{_cefdir}/libcef_dll_wrapper/*
%{__cp} -vfr %{_builddir}/cef_binary*/build/libcef_dll_wrapper/libcef_dll_wrapper.a \
	%{buildroot}/%{_cefdir}/libcef_dll_wrapper

%{__mkdir_p} %{buildroot}%{_include_cef}

%{__mv} -v %{name}/include/* \
	%{buildroot}%{_include_cef}

%{__cp} -fvr out/Release_GN_%{_arch}/includes/%{name}/include/* \
	%{buildroot}%{_include_cef}

%{__mv} -v %{name}/libcef_dll %{name}/tests \
 %{buildroot}%{_cefdir}

# copy chromium headers
%{__rm} -vfr %{buildroot}%{_include_cef}/base/internal/cef_net_error_list.h
%{__cp} -vfr net/base/net_error_list.h %{buildroot}%{_include_cef}/base/internal/cef_net_error_list.h




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12215 |21mr|celt-0.11.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0
%define major 2
%define libname %mklibname celt %{api} %{major}
%define devname %mklibname celt %{api} -d

Summary:	Ultra-low delay audio codec
Name:		celt
Version:	0.11.3
Release:	10
License:	BSD
Group:		Sound
Url:		http://www.celt-codec.org/
Source0:	http://downloads.us.xiph.org/releases/celt/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ogg)

%description
The CELT codec is an experimental audio codec for use in low-delay
speech and audio communication.

CELT stands for "Constrained Energy Lapped Transform". It applies some
of the CELP principles, but does everything in the frequency domain,
which removes some of the limitations of CELP. CELT is suitable for
both speech and music and currently features:

* Ultra-low latency (typically from 3 to 9 ms)
* Full audio bandwidth (44.1 kHz and 48 kHz)
* Support for both voice and music
* Stereo support
* Packet loss concealment
* Constant bit-rates from 32 kbps to 128 kbps and above
* A fixed-point version of the encoder and decoder

The CELT codec is meant to close the gap between Vorbis and Speex for
applications where both high quality audio and low delay are desired.

%files
%doc README TODO
%{_bindir}/celtdec
%{_bindir}/celtenc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Ultra-low delay audio codec - shared library
Group:		System/Libraries

%description -n %{libname}
The CELT codec is an experimental audio codec for use in low-delay
speech and audio communication.

CELT stands for "Constrained Energy Lapped Transform". It applies some
of the CELP principles, but does everything in the frequency domain,
which removes some of the limitations of CELP. CELT is suitable for
both speech and music and currently features:

* Ultra-low latency (typically from 3 to 9 ms)
* Full audio bandwidth (44.1 kHz and 48 kHz)
* Support for both voice and music
* Stereo support
* Packet loss concealment
* Constant bit-rates from 32 kbps to 128 kbps and above
* A fixed-point version of the encoder and decoder

The CELT codec is meant to close the gap between Vorbis and Speex for
applications where both high quality audio and low delay are desired.

%files -n %{libname}
%doc README COPYING
%{_libdir}/libcelt%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libcelt%{api}.so
%{_libdir}/libcelt%{api}.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12216 |21mr|celt051-0.5.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname celt
%define version 0.5.1.3
%define release 5
%define libversion 051
%define major 0
%define name celt%{libversion}
%define libname %mklibname %{oname} %{libversion} %{major}
%define develname %mklibname -d %{oname} %{libversion}
%define oldlibname %mklibname %{oname} 0 0

Summary: Ultra-low delay audio codec
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://downloads.us.xiph.org/releases/celt/%{oname}-%{version}.tar.gz
License: BSD
Group: Sound
Url: http://www.celt-codec.org/
BuildRequires: libogg-devel

%description
The CELT codec is an experimental audio codec for use in low-delay
speech and audio communication.

CELT stands for "Constrained Energy Lapped Transform". It applies some
of the CELP principles, but does everything in the frequency domain,
which removes some of the limitations of CELP. CELT is suitable for
both speech and music and currently features:

* Ultra-low latency (typically from 3 to 9 ms)
* Full audio bandwidth (44.1 kHz and 48 kHz)
* Support for both voice and music
* Stereo support
* Packet loss concealment
* Constant bit-rates from 32 kbps to 128 kbps and above
* A fixed-point version of the encoder and decoder

The CELT codec is meant to close the gap between Vorbis and Speex for
applications where both high quality audio and low delay are desired.

%package -n %{libname}
Summary: Ultra-low delay audio codec - shared library
Group: System/Libraries
Obsoletes: %{oldlibname} < 0.5.1.3-2

%description -n %{libname}
The CELT codec is an experimental audio codec for use in low-delay
speech and audio communication.

CELT stands for "Constrained Energy Lapped Transform". It applies some
of the CELP principles, but does everything in the frequency domain,
which removes some of the limitations of CELP. CELT is suitable for
both speech and music and currently features:

* Ultra-low latency (typically from 3 to 9 ms)
* Full audio bandwidth (44.1 kHz and 48 kHz)
* Support for both voice and music
* Stereo support
* Packet loss concealment
* Constant bit-rates from 32 kbps to 128 kbps and above
* A fixed-point version of the encoder and decoder

The CELT codec is meant to close the gap between Vorbis and Speex for
applications where both high quality audio and low delay are desired.

%package -n %develname
Summary: Headers for developing programs that will use %{name}
Group: Development/C
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.


%prep
%setup -q -n %{oname}-%{version}

%build
%configure --enable-static
%make

%install
%makeinstall_std

%files
%doc README TODO
%{_bindir}/celtenc051
%{_bindir}/celtdec051

%files -n %libname
%doc README COPYING
%_libdir/lib%{name}.so.%{major}
%_libdir/lib%{name}.so.%{major}.*

%files -n %develname
%_includedir/%{name}
%_libdir/pkgconfig/%name.pc
%_libdir/lib%{name}.so
%_libdir/lib%{name}.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12217 |21mr|ceph-15.2.17-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define _disable_lto 1

%global _cmake_skip_rpath %{nil}

%define maj0 0
%define major 1
%define maj2 2
%define libcephfs %mklibname cephfs %{maj2}
%define libcls %mklibname cls %{major}
%define librados %mklibname rados %{maj2}
%define librados_tp %mklibname rados_tp %{maj2}
%define libradosgw %mklibname radosgw %{maj2}
%define libradosstriper %mklibname radosstriper %{major}
%define librbd %mklibname rbd %{major}
%define librbd_tp %mklibname rbd_tp %{major}
%define librgw_op_tp %mklibname rgw_op_tp %{major}
%define librgw %mklibname rgw %{maj2}
%define librgw_rados_tp %mklibname rgw_rados_tp %{major}
%define libosd_tp %mklibname osd_tp %{major}
%define libos_tp %mklibname os_tp %{major}
%define devname %mklibname ceph -d


%bcond_with cephfs_java
%bcond_without test
%bcond_without selinux
# it is crimson-osd
%bcond_with seastar

#Compat macro for _fillupdir macro introduced in Nov 2017
%global _fillupdir /var/adm/fillup-templates

Summary:	User space components of the Ceph file system
Name:		ceph
Version:	15.2.17
Release:	3
License:	GPLv2
Group:		System/Base
Url:		http://ceph.com
ExclusiveArch:	%{x86_64} aarch64
Source0:	http://download.ceph.com/tarballs/%{name}-%{version}.tar.gz
Source1:	ceph.rpmlintrc
Source2:	ceph.sysusers.conf
Source3:	cephadm.sysusers.conf
Patch1:		ceph-12.2.0-use-provided-cpu-flag-values.patch
Patch2:		ceph-14.2.0-cflags.patch
Patch4:		ceph-14.2.0-cython-0.29.patch
Patch5:		ceph-osd-systemd.patch

#fedora patchset
Patch6:		0001-src-common-crc32c_intel_fast.patch
Patch8:		0003-src-common-bitstr.h.patch

# CVE fixed in 15.2.17 release
# CVE-2020-25678
# CVE-2020-27781
# CVE-2020-27839
# CVE-2022-0670

BuildRequires:	jq
BuildRequires:	git-core
BuildRequires:	gperf
BuildRequires:	yasm
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	boost-python3-devel
#BuildRequires:	fcgi-devel
BuildRequires:	libaio-devel
BuildRequires:	pkgconfig(libibverbs)
BuildRequires:	openldap-devel
BuildRequires:	rdmacm-devel
BuildRequires:	stdc++-static-devel
BuildRequires:	pkgconfig(snappy)
BuildRequires:	xfsprogs-devel
BuildRequires:	pkgconfig(atomic_ops)
BuildRequires:	pkgconfig(babeltrace)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(cunit)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(fuse3)
BuildRequires:	pkgconfig(jemalloc)
BuildRequires:	pkgconfig(leveldb)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libkeyutils)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(liboath)
BuildRequires:	pkgconfig(librabbitmq)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(lttng-ust)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(rdkafka)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3egg(appdirs)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(distlib)
BuildRequires:	python3egg(filelock)
BuildRequires:	python3egg(nose)
#BuildRequires:	python3egg(nodeenv)
BuildRequires:	python3egg(packaging)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(pluggy)
BuildRequires:	python3egg(py)
BuildRequires:	python3egg(pyparsing)
BuildRequires:	python3egg(requests)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(sphinx)
#BuildRequires:	python3egg(tox)
BuildRequires:	python3egg(toml)
BuildRequires:	python3egg(virtualenv)
%if %{with cephfs_java}
BuildRequires:	java-devel
BuildRequires:	sharutils
%endif
%if %{with selinux}
BuildRequires:	checkpolicy
BuildRequires:	selinux-policy-devel
%endif

%if %{with test}
BuildRequires:	gtest-devel
BuildRequires:	gmock-devel
%endif

%if %{with seastar}
BuildRequires:	c-ares-devel
BuildRequires:	gnutls-devel
BuildRequires:	pkgconfig(hwloc)
BuildRequires:	libpciaccess-devel
BuildRequires:	lksctp-tools-devel
BuildRequires:	protobuf-devel
BuildRequires:	ragel
BuildRequires:	systemtap-sdt-devel
BuildRequires:	yaml-cpp-devel
%endif

Requires:	ceph-osd = %{EVRD}
Requires:	ceph-mds = %{EVRD}
Requires:	ceph-mgr = %{EVRD}
Requires:	ceph-mon = %{EVRD}

%description
Ceph is a distributed network file system designed to provide excellent
performance, reliability, and scalability.

%sysusers_create_package ceph %{SOURCE2}

%post
%systemd_post ceph.target ceph-crash.service
if [ $1 -eq 1 ] ; then
systemctl start ceph.target ceph-crash.service >/dev/null 2>&1 || :
fi
%systemd_post ceph-mds@\*.service ceph-mds.target
if [ $1 -eq 1 ] ; then
systemctl start ceph-mds.target >/dev/null 2>&1 || :
fi
%systemd_post ceph-mgr@\*.service ceph-mgr.target
if [ $1 -eq 1 ] ; then
systemctl start ceph-mgr.target >/dev/null 2>&1 || :
fi
%systemd_post ceph-mon@\*.service ceph-mon.target
if [ $1 -eq 1 ] ; then
systemctl start ceph-mon.target >/dev/null 2>&1 || :
fi
%systemd_post ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target
if [ $1 -eq 1 ] ; then
systemctl start ceph-osd.target >/dev/null 2>&1 || :
fi

%systemd_post ceph-rbd-mirror@\*.service ceph-rbd-mirror.target
if [ $1 -eq 1 ] ; then
systemctl start ceph-rbd-mirror.target >/dev/null 2>&1 || :
fi

%preun
%systemd_preun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target
%systemd_preun ceph.target ceph-crash.service
%systemd_preun ceph-mds@\*.service ceph-mds.target
%systemd_preun ceph-mgr@\*.service ceph-mgr.target
%systemd_preun ceph-mon@\*.service ceph-mon.target
%systemd_preun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target
%systemd_preun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target

%postun
%systemd_postun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    systemctl try-restart ceph-rbd-mirror@\*.service > /dev/null 2>&1 || :
  fi
fi
%systemd_postun ceph-mds@\*.service ceph-mds.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    systemctl try-restart ceph-mds@\*.service > /dev/null 2>&1 || :
  fi
fi
%systemd_postun ceph-mgr@\*.service ceph-mgr.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    systemctl try-restart ceph-mgr@\*.service > /dev/null 2>&1 || :
  fi
fi
%systemd_postun ceph-mon@\*.service ceph-mon.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    systemctl try-restart ceph-mon@\*.service > /dev/null 2>&1 || :
  fi
fi
%systemd_postun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    systemctl try-restart ceph-osd@\*.service ceph-volume@\*.service > /dev/null 2>&1 || :
  fi
fi
%systemd_postun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    systemctl try-restart ceph-rbd-mirror@\*.service > /dev/null 2>&1 || :
  fi
fi

#---------------------------------------------------------------------
%package base
Summary:	Ceph Base Package
Group:		System/Base
Provides:	ceph-test:/usr/bin/ceph-kvstore-tool
Requires:	ceph-common = %{EVRD}
Requires:	%{librbd} = %{EVRD}
Requires:	%{librados} = %{EVRD}
Requires:	%{libcephfs} = %{EVRD}
Requires:	%{librgw} = %{EVRD}
%if %{with selinux}
Recommends:	(ceph-selinux if selinux-policy)
%endif
Requires:	cryptsetup
Requires:	e2fsprogs
Requires:	findutils
Requires:	grep
Requires:	logrotate
Requires:	parted
Requires:	psmisc
Requires:	python3-setuptools
Requires:	util-linux
Requires:	xfsprogs
Requires:	which
Requires:	gperftools-libs
Recommends:	chrony
Recommends:	nvme-cli
Recommends:	smartmontools
%description base
Base is the package that includes all the files shared amongst ceph servers

%files base
%{_bindir}/ceph-crash
%{_bindir}/crushtool
%{_bindir}/monmaptool
%{_bindir}/osdmaptool
%{_bindir}/ceph-kvstore-tool
%{_bindir}/ceph-run
%{_libexecdir}/systemd/system-preset/50-ceph.preset
%{_sbindir}/ceph-create-keys
%dir %{_libexecdir}/ceph
%{_libexecdir}/ceph/ceph_common.sh
%{_libdir}/ceph/libceph-common.so.*
%dir %{_sysconfdir}/ceph
%dir %{_libdir}/rados-classes
%{_libdir}/rados-classes/*
%dir %{_libdir}/ceph
%dir %{_libdir}/ceph/erasure-code
%{_libdir}/ceph/erasure-code/libec_*.so*
%dir %{_libdir}/ceph/compressor
%{_libdir}/ceph/compressor/libceph_*.so*
%{_unitdir}/ceph-crash.service
%dir %{_libdir}/ceph/crypto
%{_libdir}/ceph/crypto/libceph_*.so*
%config(noreplace) %{_sysconfdir}/logrotate.d/ceph
%config(noreplace) %{_sysconfdir}/sysconfig/ceph
%{_unitdir}/ceph.target
%dir %{python3_sitelib}/ceph_volume
%{python3_sitelib}/ceph_volume/*
%{python3_sitelib}/ceph_volume-*
%{_mandir}/man8/ceph-deploy.8*
%{_mandir}/man8/ceph-create-keys.8*
%{_mandir}/man8/ceph-run.8*
%{_mandir}/man8/crushtool.8*
%{_mandir}/man8/osdmaptool.8*
%{_mandir}/man8/monmaptool.8*
%{_mandir}/man8/ceph-kvstore-tool.8*
#set up placeholder directories
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/crash
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/crash/posted
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/tmp
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-osd
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-mds
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-rgw
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-mgr
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-rbd
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/bootstrap-rbd-mirror
%{_sysconfdir}/sudoers.d/ceph-smartctl

%post base
%systemd_post ceph.target ceph-crash.service
if [ $1 -eq 1 ] ; then
/bin/systemctl start ceph.target ceph-crash.service >/dev/null 2>&1 || :
fi

%preun base
%systemd_preun ceph.target ceph-crash.service

%postun base
%systemd_postun ceph.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
fi
#---------------------------------------------------------------------


%package -n cephadm
Summary:	Utility to bootstrap Ceph clusters
Group:		System/Base
Requires:	lvm2
Requires:	python3
#Recommends:	podman

%description -n cephadm
Utility to bootstrap a Ceph cluster and manage Ceph daemons deployed
with systemd and podman.

%files -n cephadm
%{_sbindir}/cephadm
%{_mandir}/man8/cephadm.8*
%attr(0700,cephadm,cephadm) %dir %{_sharedstatedir}/cephadm
%attr(0700,cephadm,cephadm) %dir %{_sharedstatedir}/cephadm/.ssh
%attr(0600,cephadm,cephadm) %{_sharedstatedir}/cephadm/.ssh/authorized_keys
%{_sysusersdir}/cephadm.conf

%pre -n cephadm
%sysusers_create_package cephadm %{SOURCE3}

#---------------------------------------------------------------------

%package common
Summary:	Ceph Common
Group:		System/Base
Requires:	%{librbd} = %{EVRD}
Requires:	%{librados} = %{EVRD}
Requires:	%{libcephfs} = %{EVRD}
Requires:	%{libradosstriper} = %{EVRD}
Requires:	python3-rados = %{EVRD}
Requires:	python3-rbd = %{EVRD}
Requires:	python3-cephfs = %{EVRD}
Requires:	python3-rgw = %{EVRD}
Requires:	python3-ceph-argparse = %{EVRD}
Requires:	python3-ceph-common = %{EVRD}
Requires:	python3-prettytable

%description common
Common utilities to mount and interact with a ceph storage cluster.
Comprised of files that are common to Ceph clients and servers.

%files common
%dir %{_docdir}/ceph
%doc %{_docdir}/ceph/sample.ceph.conf
%license %{_docdir}/ceph/COPYING
%{_bindir}/ceph
%{_bindir}/ceph-authtool
%{_bindir}/ceph-conf
%{_bindir}/ceph-dencoder
%{_bindir}/ceph-rbdnamer
%{_bindir}/ceph-syn
%{_bindir}/cephfs-data-scan
%{_bindir}/cephfs-journal-tool
%{_bindir}/cephfs-table-tool
%{_bindir}/rados
%{_bindir}/radosgw-admin
%{_bindir}/rbd
%{_bindir}/rbd-replay
%{_bindir}/rbd-replay-many
%{_bindir}/rbdmap
%{_sbindir}/mount.ceph
%{_bindir}/rbd-replay-prep
%{_bindir}/ceph-post-file
%{_tmpfilesdir}/ceph-common.conf
%{_mandir}/man8/ceph-authtool.8*
%{_mandir}/man8/ceph-conf.8*
%{_mandir}/man8/ceph-dencoder.8*
%{_mandir}/man8/ceph-diff-sorted.8*
%{_mandir}/man8/ceph-rbdnamer.8*
%{_mandir}/man8/ceph-syn.8*
%{_mandir}/man8/ceph-post-file.8*
%{_mandir}/man8/ceph.8*
%{_mandir}/man8/mount.ceph.8*
%{_mandir}/man8/rados.8*
%{_mandir}/man8/radosgw-admin.8*
%{_mandir}/man8/rbd.8*
%{_mandir}/man8/rbdmap.8*
%{_mandir}/man8/rbd-replay.8*
%{_mandir}/man8/rbd-replay-many.8*
%{_mandir}/man8/rbd-replay-prep.8*
%{_mandir}/man8/rgw-orphan-list.8*
%dir %{_datadir}/ceph/
%{_datadir}/ceph/known_hosts_drop.ceph.com
%{_datadir}/ceph/id_rsa_drop.ceph.com
%{_datadir}/ceph/id_rsa_drop.ceph.com.pub
%dir %{_sysconfdir}/ceph/
%config %{_sysconfdir}/bash_completion.d/ceph
%config %{_sysconfdir}/bash_completion.d/rados
%config %{_sysconfdir}/bash_completion.d/rbd
%config %{_sysconfdir}/bash_completion.d/radosgw-admin
%config(noreplace) %{_sysconfdir}/ceph/rbdmap
%{_unitdir}/rbdmap.service
%dir %{_udevrulesdir}
%{_udevrulesdir}/50-rbd.rules
%attr(3770,ceph,ceph) %dir %{_localstatedir}/log/ceph/
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/
%{_sysusersdir}/ceph.conf

%pre common
%sysusers_create_package ceph %{SOURCE2}
#CEPH_GROUP_ID=167
#CEPH_USER_ID=167
#/usr/sbin/groupadd ceph -g $CEPH_GROUP_ID -o -r 2>/dev/null || :
#/usr/sbin/useradd ceph -u $CEPH_USER_ID -o -r -g ceph -s /sbin/nologin -c "Ceph daemons" -d %{_localstatedir}/lib/ceph 2>/dev/null || :
exit 0

%post common
%tmpfiles_create %{_tmpfilesdir}/ceph-common.conf

%postun common
# Package removal cleanup
if [ "$1" -eq "0" ] ; then
    rm -rf %{_localstatedir}/log/ceph
    rm -rf %{_sysconfdir}/ceph
fi

#---------------------------------------------------------------------

%package mds
Summary:	Ceph Metadata Server Daemon
Group:		System/Base
Requires:	ceph-base = %{EVRD}

%description mds
ceph-mds is the metadata server daemon for the Ceph distributed file system.
One or more instances of ceph-mds collectively manage the file system
namespace, coordinating access to the shared OSD cluster.

%files mds
%{_bindir}/ceph-mds
%{_mandir}/man8/ceph-mds.8*
%{_unitdir}/ceph-mds@.service
%{_unitdir}/ceph-mds.target
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mds

%post mds
%systemd_post ceph-mds@\*.service ceph-mds.target
if [ $1 -eq 1 ] ; then
/bin/systemctl start ceph-mds.target >/dev/null 2>&1 || :
fi

%preun mds
%systemd_preun ceph-mds@\*.service ceph-mds.target

%postun mds
%systemd_postun ceph-mds@\*.service ceph-mds.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    /bin/systemctl try-restart ceph-mds@\*.service > /dev/null 2>&1 || :
  fi
fi
#---------------------------------------------------------------------

%package mon
Summary:	Ceph Monitor Daemon
Group:		System/Base
Provides:	ceph-test:/usr/bin/ceph-monstore-tool
Requires:	ceph-base = %{EVRD}

%description mon
ceph-mon is the cluster monitor daemon for the Ceph distributed file
system. One or more instances of ceph-mon form a Paxos part-time
parliament cluster that provides extremely reliable and durable storage
of cluster membership, configuration, and state.

%files mon
%{_bindir}/ceph-mon
%{_bindir}/ceph-monstore-tool
%{_mandir}/man8/ceph-mon.8*
%{_unitdir}/ceph-mon@.service
%{_unitdir}/ceph-mon.target
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mon

%post mon
%systemd_post ceph-mon@\*.service ceph-mon.target
if [ $1 -eq 1 ] ; then
/bin/systemctl start ceph-mon.target >/dev/null 2>&1 || :
fi

%preun mon
%systemd_preun ceph-mon@\*.service ceph-mon.target

%postun mon
%systemd_postun ceph-mon@\*.service ceph-mon.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    /bin/systemctl try-restart ceph-mon@\*.service > /dev/null 2>&1 || :
  fi
fi

#---------------------------------------------------------------------

%package mgr
Summary:	Ceph Manager Daemon
Group:		System/Base
Requires:	ceph-base = %{EVRD}
Requires:	ceph-mgr-modules-core = %{EVRD}
Requires:	python3-six
Recommends:	ceph-mgr-dashboard = %{EVRD}
Recommends:	ceph-mgr-diskprediction-local = %{EVRD}
Recommends:	ceph-mgr-diskprediction-cloud = %{EVRD}
Recommends:	ceph-mgr-k8sevents = %{EVRD}
Recommends:	ceph-mgr-cephadm = %{EVRD}
#Recommends:	python3-influxdb

%description mgr
ceph-mgr enables python modules that provide services (such as the REST
module derived from Calamari) and expose CLI hooks.  ceph-mgr gathers
the cluster maps, the daemon metadata, and performance counters, and
exposes all these to the python modules.

%files mgr
%{_bindir}/ceph-mgr
%dir %{_datadir}/ceph/mgr
%{_datadir}/ceph/mgr/mgr_module.*
%{_datadir}/ceph/mgr/mgr_util.*
%{_datadir}/ceph/mgr/__pycache__
%{_unitdir}/ceph-mgr@.service
%{_unitdir}/ceph-mgr.target
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/mgr

%post mgr
%systemd_post ceph-mgr@\*.service ceph-mgr.target
if [ $1 -eq 1 ] ; then
/bin/systemctl start ceph-mgr.target >/dev/null 2>&1 || :
fi

%preun mgr
%systemd_preun ceph-mgr@\*.service ceph-mgr.target

%postun mgr
%systemd_postun ceph-mgr@\*.service ceph-mgr.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    /bin/systemctl try-restart ceph-mgr@\*.service > /dev/null 2>&1 || :
  fi
fi

#---------------------------------------------------------------------

%package mgr-dashboard
Summary:	Ceph Dashboard
Group:		System/Base
Requires:	ceph-mgr = %{EVRD}
Requires:	ceph-grafana-dashboards = %{EVRD}
Requires:	ceph-prometheus-alerts = %{EVRD}
Requires:	python3-cherrypy
Requires:	python3-jwt
Requires:	python3-routes
Requires:	python3-werkzeug
#Recommends:	python3-saml
BuildArch:	noarch

%description mgr-dashboard
ceph-mgr-dashboard is a manager module, providing a web-based application
to monitor and manage many aspects of a Ceph cluster and related components.
See the Dashboard documentation at http://docs.ceph.com/ for details and a
detailed feature overview.

%files mgr-dashboard
%{_datadir}/ceph/mgr/dashboard

%post mgr-dashboard
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

%postun mgr-dashboard
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi
#---------------------------------------------------------------------

%package mgr-diskprediction-local
Summary:	Ceph Manager module for predicting disk failures
Group:		System/Base
Requires:	ceph-mgr = %{EVRD}
Requires:	python3-numpy
Requires:	python3-scipy
BuildArch:	noarch

%description mgr-diskprediction-local
ceph-mgr-diskprediction-local is a ceph-mgr module that tries to predict
disk failures using local algorithms and machine-learning databases.

%files mgr-diskprediction-local
%{_datadir}/ceph/mgr/diskprediction_local

%post mgr-diskprediction-local
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

%postun mgr-diskprediction-local
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi
#---------------------------------------------------------------------

%package mgr-diskprediction-cloud
Summary:	Ceph Manager module for cloud-based disk failure prediction
Group:		System/Base
Requires:	ceph-mgr = %{EVRD}
Requires:	python3-grpcio
Requires:	python3-protobuf
BuildArch:	noarch

%description mgr-diskprediction-cloud
ceph-mgr-diskprediction-cloud is a ceph-mgr module that tries to predict
disk failures using services in the Google cloud.

%files mgr-diskprediction-cloud
%{_datadir}/ceph/mgr/diskprediction_cloud

%post mgr-diskprediction-cloud
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

%postun mgr-diskprediction-cloud
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi
#---------------------------------------------------------------------

%package mgr-modules-core
Summary:	Ceph Manager modules which are always enabled
Group:		System/Base
Requires:	python3-bcrypt
Requires:	python3-pecan
Requires:	python3-pyOpenSSL
Requires:	python3-requests
Requires:	python3-dateutil
Requires:	python3-cherrypy
Requires:	python3-pyyaml
Requires:	python3-werkzeug
Recommends:	ceph-mgr-rook = %{EVRD}
BuildArch:	noarch

%description mgr-modules-core
ceph-mgr-modules-core provides a set of modules which are always
enabled by ceph-mgr.

%files mgr-modules-core
%dir %{_datadir}/ceph/mgr
%{_datadir}/ceph/mgr/alerts
%{_datadir}/ceph/mgr/balancer
%{_datadir}/ceph/mgr/crash
%{_datadir}/ceph/mgr/devicehealth
%{_datadir}/ceph/mgr/influx
%{_datadir}/ceph/mgr/insights
%{_datadir}/ceph/mgr/iostat
%{_datadir}/ceph/mgr/localpool
%{_datadir}/ceph/mgr/orchestrator
%{_datadir}/ceph/mgr/osd_perf_query
%{_datadir}/ceph/mgr/osd_support
%{_datadir}/ceph/mgr/pg_autoscaler
%{_datadir}/ceph/mgr/progress
%{_datadir}/ceph/mgr/prometheus
%{_datadir}/ceph/mgr/rbd_support
%{_datadir}/ceph/mgr/restful
%{_datadir}/ceph/mgr/selftest
%{_datadir}/ceph/mgr/status
%{_datadir}/ceph/mgr/telegraf
%{_datadir}/ceph/mgr/telemetry
%{_datadir}/ceph/mgr/test_orchestrator
%{_datadir}/ceph/mgr/volumes
%{_datadir}/ceph/mgr/zabbix

#---------------------------------------------------------------------

%package mgr-rook
Summary:	Ceph Manager module for Rook-based orchestration
Group:		System/Base
Requires:	ceph-mgr = %{EVRD}
Requires:	python3-kubernetes
Requires:	python3-jsonpatch
BuildArch:	noarch

%description mgr-rook
ceph-mgr-rook is a ceph-mgr module for orchestration functions using
a Rook backend.

%files mgr-rook
%{_datadir}/ceph/mgr/rook

%post mgr-rook
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

%postun mgr-rook
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

#---------------------------------------------------------------------

%package mgr-k8sevents
Summary:	Ceph Manager module to orchestrate ceph-events to kubernetes' events API
Group:		System/Base
Requires:	ceph-mgr = %{EVRD}
Requires:	python3-kubernetes
BuildArch:	noarch

%description mgr-k8sevents
ceph-mgr-k8sevents is a ceph-mgr module that sends every ceph-events
to kubernetes' events API

%files mgr-k8sevents
%{_datadir}/ceph/mgr/k8sevents

%post mgr-k8sevents
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

%postun mgr-k8sevents
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

#---------------------------------------------------------------------

%package mgr-cephadm
Summary:	Ceph Manager module for cephadm-based orchestration
Group:		System/Base
Requires:	ceph-mgr = %{EVRD}
Requires:	python3-remoto
Requires:	cephadm = %{EVRD}
Requires:	openssh-clients
Requires:	python3-jinja2
BuildArch:	noarch

%description mgr-cephadm
ceph-mgr-cephadm is a ceph-mgr module for orchestration functions using
the integrated cephadm deployment tool management operations.

%files mgr-cephadm
%{_datadir}/ceph/mgr/cephadm

%post mgr-cephadm
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

%postun mgr-cephadm
if [ $1 -eq 1 ] ; then
    /bin/systemctl try-restart ceph-mgr.target >/dev/null 2>&1 || :
fi

#---------------------------------------------------------------------

%package fuse
Summary:	Ceph fuse-based client
Group:		System/Base
Requires:	%{name}-base = %{EVRD}

%description fuse
FUSE based client for Ceph distributed network file system

%files fuse
%{_bindir}/ceph-fuse
%{_mandir}/man8/ceph-fuse.8*
%{_sbindir}/mount.fuse.ceph
%{_unitdir}/ceph-fuse@.service
%{_unitdir}/ceph-fuse.target

#---------------------------------------------------------------------
%package -n rbd-fuse
Summary:	Ceph fuse-based client
Group:		System/Base
Requires:	%{librados} = %{EVRD}
Requires:	%{librbd} = %{EVRD}

%description -n rbd-fuse
FUSE based client to map Ceph rbd images to files

%files -n rbd-fuse
%{_bindir}/rbd-fuse
%{_mandir}/man8/rbd-fuse.8*

#---------------------------------------------------------------------

%package -n rbd-mirror
Summary:	Ceph daemon for mirroring RBD images
Group:		System/Base
Requires:	ceph-base = %{EVRD}
Requires:	%{librados} = %{EVRD}
Requires:	%{librbd} = %{EVRD}

%description -n rbd-mirror
Daemon for mirroring RBD images between Ceph clusters, streaming
changes asynchronously.

%files -n rbd-mirror
%{_bindir}/rbd-mirror
%{_mandir}/man8/rbd-mirror.8*
%{_unitdir}/ceph-rbd-mirror@.service
%{_unitdir}/ceph-rbd-mirror.target

%post -n rbd-mirror
%systemd_post ceph-rbd-mirror@\*.service ceph-rbd-mirror.target
if [ $1 -eq 1 ] ; then
/bin/systemctl start ceph-rbd-mirror.target >/dev/null 2>&1 || :
fi

%preun -n rbd-mirror
%systemd_preun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target

%postun -n rbd-mirror
%systemd_postun ceph-rbd-mirror@\*.service ceph-rbd-mirror.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    /bin/systemctl try-restart ceph-rbd-mirror@\*.service > /dev/null 2>&1 || :
  fi
fi

#---------------------------------------------------------------------

%package immutable-object-cache
Summary:	Ceph daemon for immutable object cache
Group:		System/Base
Requires:	%{librados} = %{EVRD}

%description immutable-object-cache
Daemon for immutable object cache.

%files immutable-object-cache
%{_bindir}/ceph-immutable-object-cache
%{_mandir}/man8/ceph-immutable-object-cache.8*
%{_unitdir}/ceph-immutable-object-cache@.service
%{_unitdir}/ceph-immutable-object-cache.target

%post immutable-object-cache
%systemd_post ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target
if [ $1 -eq 1 ] ; then
/bin/systemctl start ceph-immutable-object-cache.target >/dev/null 2>&1 || :
fi

%preun immutable-object-cache
%systemd_preun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target

%postun immutable-object-cache
test -n "$FIRST_ARG" || FIRST_ARG=$1
%systemd_postun ceph-immutable-object-cache@\*.service ceph-immutable-object-cache.target
if [ $FIRST_ARG -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    /bin/systemctl try-restart ceph-immutable-object-cache@\*.service > /dev/null 2>&1 || :
  fi
fi

#---------------------------------------------------------------------

%package -n rbd-nbd
Summary:	Ceph RBD client base on NBD
Group:		System/Base
Requires:	%{librados} = %{EVRD}
Requires:	%{librbd} = %{EVRD}

%description -n rbd-nbd
NBD based client to map Ceph rbd images to local device

%files -n rbd-nbd
%{_bindir}/rbd-nbd
%{_mandir}/man8/rbd-nbd.8*

#---------------------------------------------------------------------

%package -n %{libradosgw}
Summary:	RADOS distributed object store client library
Group:		System/Libraries
License:	LGPLv2

%description -n %{libradosgw}
RADOS is a reliable, autonomic distributed object storage cluster
developed as part of the Ceph distributed storage system. This is a
shared library allowing applications to access the distributed object
store using a simple file-like interface.

%files -n %{libradosgw}
%{_libdir}/libradosgw.so.%{maj2}*

#---------------------------------------------------------------------

%package radosgw
Summary:	Rados REST gateway
Group:		System/Base
Requires:	apache-mod_fcgid
Requires:	%{libradosgw} = %{EVRD}

%description radosgw
radosgw is an S3 HTTP REST gateway for the RADOS object store. It is
implemented as a FastCGI module using libfcgi, and can be used in
conjunction with any FastCGI capable web server.

%files radosgw
%{_bindir}/ceph-diff-sorted
%{_bindir}/radosgw
%{_bindir}/radosgw-token
%{_bindir}/radosgw-es
%{_bindir}/radosgw-object-expirer
%{_bindir}/rgw-gap-list
%{_bindir}/rgw-gap-list-comparator
%{_bindir}/rgw-orphan-list
%{_mandir}/man8/radosgw.8*
%dir %{_localstatedir}/lib/ceph/radosgw
%{_unitdir}/ceph-radosgw@.service
%{_unitdir}/ceph-radosgw.target

%post radosgw
%systemd_post ceph-radosgw@\*.service ceph-radosgw.target
if [ $1 -eq 1 ] ; then
systemctl start ceph-radosgw.target >/dev/null 2>&1 || :
fi

%preun radosgw
%systemd_preun ceph-radosgw@\*.service ceph-radosgw.target

%postun radosgw
%systemd_postun ceph-radosgw@\*.service ceph-radosgw.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    systemctl try-restart ceph-radosgw@\*.service > /dev/null 2>&1 || :
  fi
fi

#---------------------------------------------------------------------
%package resource-agents
Summary:	OCF-compliant resource agents for Ceph daemons
Group:		System/Base
Requires:	ceph-base = %{EVRD}
Requires:	resource-agents

%description resource-agents
Resource agents for monitoring and managing Ceph daemons
under Open Cluster Framework (OCF) compliant resource
managers such as Pacemaker.

%files resource-agents
%dir %{_prefix}/lib/ocf
%dir %{_prefix}/lib/ocf/resource.d
%dir %{_prefix}/lib/ocf/resource.d/ceph
%attr(0755,-,-) %{_prefix}/lib/ocf/resource.d/ceph/rbd

#---------------------------------------------------------------------

%package osd
Summary:	Ceph Object Storage Daemon
Group:		System/Base
Provides:	ceph-test:/usr/bin/ceph-osdomap-tool
Requires:	ceph-base = %{EVRD}
Requires:	lvm2
Requires:	sudo
Requires:	libstoragemgmt

%description osd
ceph-osd is the object storage daemon for the Ceph distributed file
system.  It is responsible for storing objects on a local file system
and providing access to them over the network.

%files osd
%{_bindir}/ceph-clsinfo
%{_bindir}/ceph-bluestore-tool
%{_bindir}/ceph-erasure-code-tool
%{_bindir}/ceph-objectstore-tool
%{_bindir}/ceph-osdomap-tool
%{_bindir}/ceph-osd
%{_libexecdir}/ceph/ceph-osd-prestart.sh
%{_sbindir}/ceph-volume
%{_sbindir}/ceph-volume-systemd
%{_mandir}/man8/ceph-clsinfo.8*
%{_mandir}/man8/ceph-osd.8*
%{_mandir}/man8/ceph-bluestore-tool.8*
%{_mandir}/man8/ceph-volume.8*
%{_mandir}/man8/ceph-volume-systemd.8*
%{_unitdir}/ceph-osd@.service
%{_unitdir}/ceph-osd.target
%{_unitdir}/ceph-volume@.service
%attr(750,ceph,ceph) %dir %{_localstatedir}/lib/ceph/osd
%config(noreplace) %{_sysctldir}/90-ceph-osd.conf

%post osd
%systemd_post ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target

%sysctl_apply %{_sysctldir}/90-ceph-osd.conf

%preun osd
%systemd_preun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target

%postun osd
%systemd_postun ceph-osd@\*.service ceph-volume@\*.service ceph-osd.target
if [ $1 -ge 1 ] ; then
  # Restart on upgrade, but only if "CEPH_AUTO_RESTART_ON_UPGRADE" is set to
  # "yes". In any case: if units are not running, do not touch them.
  SYSCONF_CEPH=%{_sysconfdir}/sysconfig/ceph
  if [ -f $SYSCONF_CEPH -a -r $SYSCONF_CEPH ] ; then
    source $SYSCONF_CEPH
  fi
  if [ "X$CEPH_AUTO_RESTART_ON_UPGRADE" = "Xyes" ] ; then
    /bin/systemctl try-restart ceph-osd@\*.service ceph-volume@\*.service > /dev/null 2>&1 || :
  fi
fi

#---------------------------------------------------------------------

%if %{with seastar}
%package crimson-osd
Summary:	Ceph Object Storage Daemon (crimson)
Group:		System/Base
Requires:	ceph-osd = %{EVRD}

%description crimson-osd
crimson-osd is the object storage daemon for the Ceph distributed file
system.  It is responsible for storing objects on a local file system
and providing access to them over the network.

%files crimson-osd
%{_bindir}/crimson-osd
%endif

#---------------------------------------------------------------------

%package -n %{libcephfs}
Summary:	Ceph distributed file system client library
Group:		System/Libraries
License:	LGPLv2

%description -n %{libcephfs}
Ceph is a distributed network file system designed to provide excellent
performance, reliability, and scalability. This is a shared library
allowing applications to access a Ceph distributed file system via a
POSIX-like interface.

%files -n %{libcephfs}
%{_libdir}/libcephfs.so.%{maj2}*

#---------------------------------------------------------------------

%package -n %{libcls}
Summary:	Ceph distributed file system client library
Group:		System/Libraries
License:	LGPLv2

%description -n %{libcls}
Ceph is a distributed network file system designed to provide excellent
performance, reliability, and scalability. This is a shared library
allowing applications to access a Ceph distributed file system via a
POSIX-like interface.

%files -n %{libcls}
%{_libdir}/rados-classes

#---------------------------------------------------------------------
%package -n %{librados_tp}
Summary:	RADOS block device client library
Group:		System/Libraries
License:	LGPLv2

%description -n %{librados_tp}
RBD is a block device striped across multiple distributed objects in
RADOS, a reliable, autonomic distributed object storage cluster
developed as part of the Ceph distributed storage system. This is a
shared library allowing applications to manage these block devices.

%files -n %{librados_tp}
%{_libdir}/librados_tp.so.%{maj2}*

#---------------------------------------------------------------------

%package -n %{librados}
Summary:	RADOS distributed object store client library
Group:		System/Libraries
License:	LGPLv2

%description -n %{librados}
RADOS is a reliable, autonomic distributed object storage cluster
developed as part of the Ceph distributed storage system. This is a
shared library allowing applications to access the distributed object
store using a simple file-like interface.

%files -n %{librados}
%{_libdir}/librados.so.%{maj2}*

#---------------------------------------------------------------------

%package -n %{libradosstriper}
Summary:	RADOS distributed object store client library
Group:		System/Libraries
License:	LGPLv2

%description -n %{libradosstriper}
RADOS is a reliable, autonomic distributed object storage cluster
developed as part of the Ceph distributed storage system. This is a
shared library allowing applications to access the distributed object
store using a simple file-like interface.

%files -n %{libradosstriper}
%{_libdir}/libradosstriper.so.%{major}*

#---------------------------------------------------------------------

%package -n %{librbd}
Summary:	RADOS block device client library
Group:		System/Libraries
License:	LGPLv2
Requires:	%{librbd_tp} = %{EVRD}

%description -n %{librbd}
RBD is a block device striped across multiple distributed objects in
RADOS, a reliable, autonomic distributed object storage cluster
developed as part of the Ceph distributed storage system. This is a
shared library allowing applications to manage these block devices.

%files -n %{librbd}
%{_libdir}/librbd.so.%{major}*

#---------------------------------------------------------------------

%package -n %{librbd_tp}
Summary:	RADOS block device client library
Group:		System/Libraries
License:	LGPLv2
Requires:	%{librbd} = %{EVRD}

%description -n %{librbd_tp}
RBD is a block device striped across multiple distributed objects in
RADOS, a reliable, autonomic distributed object storage cluster
developed as part of the Ceph distributed storage system. This is a
shared library allowing applications to manage these block devices.

%files -n %{librbd_tp}
%{_libdir}/librbd_tp.so.%{major}*

#---------------------------------------------------------------------

%package -n %{librgw}
Summary:	RADOS gateway client library
Group:		System/Libraries
License:	LGPLv2
Requires:	%{librgw_op_tp} = %{EVRD}
Requires:	%{libosd_tp} = %{EVRD}
Requires:	%{libos_tp} = %{EVRD}
Requires:	%{librgw_rados_tp} = %{EVRD}
Obsoletes:	%{_lib}rgw_admin_user1 < 15.2.17

%description -n %{librgw}
This package provides a library implementation of the RADOS gateway
(distributed object store with S3 and Swift personalities).

%files -n %{librgw}
%{_libdir}/librgw.so.%{maj2}*

#---------------------------------------------------------------------

%package -n %{librgw_rados_tp}
Summary:	RADOS gateway client library
Group:		System/Libraries
License:	LGPLv2
Requires:	%{librgw} = %{EVRD}

%description -n %{librgw_rados_tp}
This package provides a library implementation of the RADOS gateway
(distributed object store with S3 and Swift personalities).

%files -n %{librgw_rados_tp}
%{_libdir}/librgw_rados_tp.so.%{major}*

#---------------------------------------------------------------------

%package -n %{librgw_op_tp}
Summary:	RADOS gateway client library
Group:		System/Libraries
License:	LGPLv2
Requires:	%{librgw} = %{EVRD}

%description -n %{librgw_op_tp}
This package provides a library implementation of the RADOS gateway
(distributed object store with S3 and Swift personalities).

%files -n %{librgw_op_tp}
%{_libdir}/librgw_op_tp.so.%{major}*

#---------------------------------------------------------------------

%package -n %{libosd_tp}
Summary:	RADOS gateway client library
Group:		System/Libraries
License:	LGPLv2
Requires:	%{librgw} = %{EVRD}

%description -n %{libosd_tp}
This package provides a library implementation of the RADOS gateway
(distributed object store with S3 and Swift personalities).

%files -n %{libosd_tp}
%{_libdir}/libosd_tp.so.%{major}*

#---------------------------------------------------------------------

%package -n %{libos_tp}
Summary:	RADOS gateway client library
Group:		System/Libraries
License:	LGPLv2
Requires:	%{librgw} = %{EVRD}

%description -n %{libos_tp}
This package provides a library implementation of the RADOS gateway
(distributed object store with S3 and Swift personalities).

%files -n %{libos_tp}
%{_libdir}/libos_tp.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	Ceph headers
Group:		Development/C
License:	LGPLv2
Requires:	%{libcephfs} = %{EVRD}
Requires:	%{libcls} = %{EVRD}
Requires:	%{librados} = %{EVRD}
Requires:	%{librbd} = %{EVRD}
Requires:	%{libradosstriper} = %{EVRD}
Requires:	%{librgw} = %{EVRD}
Requires:	%{librados_tp} = %{EVRD}
Requires:	%{libradosgw} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and headers needed to develop programs
that use Ceph.

%files -n %{devname}
%dir %{_docdir}/ceph
#%%{_docdir}/ceph/sample.ceph.conf
#%%{_docdir}/ceph/sample.fetch_config
%dir %{_includedir}/cephfs
%{_includedir}/cephfs/*
%dir %{_includedir}/rados
%{_includedir}/rados/*
%dir %{_includedir}/radosstriper
%{_includedir}/radosstriper/*
%dir %{_includedir}/rbd
%{_includedir}/rbd/*
%{_libdir}/libcephfs.so
%{_libdir}/librbd.so
%{_libdir}/librados.so
%{_libdir}/librados_tp.so
%{_bindir}/librados-config
%{_mandir}/man8/librados-config.8*
%{_libdir}/libradosstriper.so
%{_libdir}/librgw.so
%{_libdir}/librgw_op_tp.so
%{_libdir}/librgw_rados_tp.so
%{_libdir}/libos_tp.so
%{_libdir}/libosd_tp.so
%{_libdir}/librbd_tp.so
%{_libdir}/libradosgw.so

#---------------------------------------------------------------------

%package -n python3-rbd
Summary:	Python 3 libraries for the RADOS block device
Group:		Development/Python
Requires:	%{librbd} = %{EVRD}
Requires:	python3-rados = %{EVRD}
Provides:	python-rbd = %{EVRD}

%description -n python3-rbd
This package contains Python 3 libraries for interacting with Cephs RADOS
block device.

%files -n python3-rbd
%{python3_sitearch}/rbd.cpython*.so
%{python3_sitearch}/rbd-*.egg-info

#---------------------------------------------------------------------

%package -n python3-rgw
Summary:	Python 3 libraries for the RADOS gateway
Group:		Development/Python
Requires:	%{librgw} = %{EVRD}
Requires:	python3-rados = %{EVRD}
Provides:	python-rgw = %{EVRD}
Obsoletes:	python-rgw < %{EVRD}

%description -n python3-rgw
This package contains Python 3 libraries for interacting with Cephs RADOS
gateway.

%files -n python3-rgw
%{python3_sitearch}/rgw.cpython*.so
%{python3_sitearch}/rgw-*.egg-info

#---------------------------------------------------------------------

%package -n python3-rados
Summary:	Python 3 libraries for the RADOS object store
Group:		Development/Python
Requires:	%{librados} = %{EVRD}
Provides:	python-rados = %{EVRD}

%description -n python3-rados
This package contains Python 3 libraries for interacting with Cephs RADOS
object store.

%files -n python3-rados
%{python3_sitearch}/rados.cpython*.so
%{python3_sitearch}/rados-*.egg-info

#---------------------------------------------------------------------

%package -n python3-cephfs
Summary:	Python 3 libraries for Ceph distributed file system
Group:		Development/Python
Requires:	%{libcephfs} = %{EVRD}
Requires:	python3-rados = %{EVRD}
Requires:	python3-ceph-argparse = %{EVRD}
Provides:	python-cephfs = %{EVRD}
Obsoletes:	python-cephfs < %{EVRD}

%description -n python3-cephfs
This package contains Python 3 libraries for interacting with Cephs distributed
file system.

%files -n python3-cephfs
%{python3_sitearch}/cephfs.cpython*.so
%{python3_sitearch}/cephfs-*.egg-info
%{python3_sitelib}/ceph_volume_client.py*
%{python3_sitelib}/__pycache__/ceph_volume_client.cpython*.py*

#---------------------------------------------------------------------

%package -n python3-ceph-argparse
Summary:	Python 3 utility libraries for Ceph CLI
Group:		Development/Python

%description -n python3-ceph-argparse
This package contains types and routines for Python 3 used by the Ceph CLI as
well as the RESTful interface. These have to do with querying the daemons for
command-description information, validating user command input against those
descriptions, and submitting the command to the appropriate daemon.

%files -n python3-ceph-argparse
%{python3_sitelib}/ceph_argparse.py*
%{python3_sitelib}/__pycache__/ceph_argparse.cpython*.py*
%{python3_sitelib}/ceph_daemon.py*
%{python3_sitelib}/__pycache__/ceph_daemon.cpython*.py*

#---------------------------------------------------------------------

%package -n python3-ceph-common
Summary:	Python3 libraries for the Ceph distributed filesystem
Group:		System/Libraries
License:	LGPLv2

%description -n python3-ceph-common
This package contains Python3 libraries for interacting with Cephs RADOS
object storage.

%files -n python3-ceph-common
%{python3_sitelib}/ceph
%{python3_sitelib}/ceph-*.egg-info

#---------------------------------------------------------------------

%package -n cephfs-shell
Summary:	Interactive shell for Ceph file system
Group:		System/Base
Requires:	python3-cmd2
Requires:	python3-colorama
Requires:	python3-cephfs

%description -n cephfs-shell
This package contains an interactive tool that allows accessing a Ceph
file system without mounting it  by providing a nice pseudo-shell which
works like an FTP client.

%files -n cephfs-shell
%{python3_sitelib}/cephfs_shell-*.egg-info
%{_bindir}/cephfs-shell

#---------------------------------------------------------------------
%if %{with test}
%package -n ceph-test
Summary:	Ceph benchmarks and test tools
Group:		System/Base
Requires:	ceph-common = %{EVRD}
Requires:	xmlstarlet
Requires:	jq
Requires:	socat
BuildRequires:	gtest-devel
BuildRequires:	gmock-devel

%description -n ceph-test
This package contains Ceph benchmarks and test tools.

%files -n ceph-test
%{_bindir}/ceph-client-debug
%{_bindir}/ceph_bench_log
%{_bindir}/ceph_kvstorebench
%{_bindir}/ceph_multi_stress_watch
%{_bindir}/ceph_erasure_code_benchmark
%{_bindir}/ceph_omapbench
%{_bindir}/ceph_objectstore_bench
%{_bindir}/ceph_perf_objectstore
%{_bindir}/ceph_perf_local
%{_bindir}/ceph_perf_msgr_client
%{_bindir}/ceph_perf_msgr_server
%{_bindir}/ceph_psim
%{_bindir}/ceph_radosacl
%{_bindir}/ceph_rgw_jsonparser
%{_bindir}/ceph_rgw_multiparser
%{_bindir}/ceph_scratchtool
%{_bindir}/ceph_scratchtoolpp
%{_bindir}/ceph_test_*
%{_bindir}/ceph-coverage
%{_bindir}/ceph-debugpack
%{_bindir}/ceph-dedup-tool
%{_mandir}/man8/ceph-debugpack.8*
%dir %{_libdir}/ceph
%{_libdir}/ceph/ceph-monstore-update-crush.sh
%endif

#===========================java========================================

%if %{with cephfs_java}

%package -n libcephfs_jni1
Summary:	Java Native Interface library for CephFS Java bindings
Group:		System/Libraries
Requires:	java
Requires:	%{libcephfs} = %{EVRD}

%description -n libcephfs_jni1
This package contains the Java Native Interface library for CephFS Java
bindings.

%files -n libcephfs_jni1
%{_libdir}/libcephfs_jni.so.*

#---------------------------------------------------------------------
%package -n libcephfs_jni-devel
Summary:	Development files for CephFS Java Native Interface library
Group:		Development/Java
Requires:	java
Requires:	libcephfs_jni1 = %{EVRD}
Obsoletes:	ceph-devel < %{EVRD}
Provides:	libcephfs_jni1-devel = %{EVRD}
Obsoletes:	libcephfs_jni1-devel < %{EVRD}

%description -n libcephfs_jni-devel
This package contains the development files for CephFS Java Native Interface
library.

%files -n libcephfs_jni-devel
%{_libdir}/libcephfs_jni.so

#---------------------------------------------------------------------

%package -n cephfs-java
Summary:	Java libraries for the Ceph File System
Group:		System/Libraries
Requires:	java
Requires:	libcephfs_jni1 = %{EVRD}
Requires:	junit
BuildRequires:	junit

%description -n cephfs-java
This package contains the Java libraries for the Ceph File System.

%files -n cephfs-java
%{_javadir}/libcephfs.jar
%{_javadir}/libcephfs-test.jar

%endif
#========================selinux==================================

%if %{with selinux}

%package selinux
Summary:	SELinux support for Ceph MON, OSD and MDS
Group:		System/Base
Requires:	ceph-base = %{EVRD}
Requires:	policycoreutils, libselinux-utils
Requires(post):	ceph-base = %{EVRD}
Requires(post): selinux-policy-base >= %{_selinux_policy_version}, policycoreutils, gawk
Requires(postun): policycoreutils
%description selinux
This package contains SELinux support for Ceph MON, OSD and MDS. The package
also performs file-system relabelling which can take a long time on heavily
populated file-systems.

%files selinux
%attr(0600,root,root) %{_datadir}/selinux/packages/ceph.pp
%{_datadir}/selinux/devel/include/contrib/ceph.if
%{_mandir}/man8/ceph_selinux.8*

%post selinux
# backup file_contexts before update
. /etc/selinux/config
FILE_CONTEXT=/etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts
cp ${FILE_CONTEXT} ${FILE_CONTEXT}.pre

# Install the policy
/usr/sbin/semodule -i %{_datadir}/selinux/packages/ceph.pp

# Load the policy if SELinux is enabled
if ! /usr/sbin/selinuxenabled; then
    # Do not relabel if selinux is not enabled
    exit 0
fi

if diff ${FILE_CONTEXT} ${FILE_CONTEXT}.pre > /dev/null 2>&1; then
   # Do not relabel if file contexts did not change
   exit 0
fi

# Check whether the daemons are running
/bin/systemctl status ceph.target > /dev/null 2>&1
STATUS=$?

# Stop the daemons if they were running
if test $STATUS -eq 0; then
    /bin/systemctl stop ceph.target > /dev/null 2>&1
fi

# Relabel the files fix for first package install
/usr/sbin/fixfiles -C ${FILE_CONTEXT}.pre restore 2> /dev/null

rm -f ${FILE_CONTEXT}.pre
# The fixfiles command won't fix label for /var/run/ceph
/usr/sbin/restorecon -R /var/run/ceph > /dev/null 2>&1

# Start the daemons iff they were running before
if test $STATUS -eq 0; then
    /bin/systemctl start ceph.target > /dev/null 2>&1 || :
fi
exit 0

%postun selinux
if [ $1 -eq 0 ]; then
    # backup file_contexts before update
    . /etc/selinux/config
    FILE_CONTEXT=/etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts
    cp ${FILE_CONTEXT} ${FILE_CONTEXT}.pre

    # Remove the module
    /usr/sbin/semodule -n -r ceph > /dev/null 2>&1

    # Reload the policy if SELinux is enabled
    if ! /usr/sbin/selinuxenabled ; then
        # Do not relabel if SELinux is not enabled
        exit 0
    fi

    # Check whether the daemons are running
    /bin/systemctl status ceph.target > /dev/null 2>&1
    STATUS=$?

    # Stop the daemons if they were running
    if test $STATUS -eq 0; then
        /bin/systemctl stop ceph.target > /dev/null 2>&1
    fi

    /usr/sbin/fixfiles -C ${FILE_CONTEXT}.pre restore 2> /dev/null
    rm -f ${FILE_CONTEXT}.pre
    # The fixfiles command won't fix label for /var/run/ceph
    /usr/sbin/restorecon -R /var/run/ceph > /dev/null 2>&1

    # Start the daemons if they were running before
    if test $STATUS -eq 0; then
    /bin/systemctl start ceph.target > /dev/null 2>&1 || :
    fi
fi
exit 0

%endif
#==================================================================

%package grafana-dashboards
Summary:	The set of Grafana dashboards for monitoring purposes
Group:		System/Base
BuildArch:	noarch

%description grafana-dashboards
This package provides a set of Grafana dashboards for monitoring of
Ceph clusters. The dashboards require a Prometheus server setup
collecting data from Ceph Manager "prometheus" module and Prometheus
project "node_exporter" module. The dashboards are designed to be
integrated with the Ceph Manager Dashboard web UI.

%files grafana-dashboards
%attr(0755,root,root) %dir %{_sysconfdir}/grafana/dashboards/ceph-dashboard
%config %{_sysconfdir}/grafana/dashboards/ceph-dashboard/*
%doc monitoring/grafana/dashboards/README
%doc monitoring/grafana/README.md

#---------------------------------------------------------------------

%package prometheus-alerts
Summary:	Prometheus alerts for a Ceph deplyoment
Group:		System/Base
BuildArch:	noarch

%description prometheus-alerts
This package provides Ceph’s default alerts for Prometheus.

%files prometheus-alerts
%attr(0755,root,root) %dir %{_sysconfdir}/prometheus/ceph
%config %{_sysconfdir}/prometheus/ceph/ceph_default_alerts.yml

#---------------------------------------------------------------------

%prep
%autosetup -p1

# remove tests that require root privileges
rm src/test/cli/ceph-authtool/cap*.t

find . -name '*.cmake' -or -name 'CMakeLists.txt' -print0 | \
	xargs --null sed -r -e 's|Boost::|boost_|g' \
	-e 's|Boost_|boost_|g' \
	-e 's|[Bb]oost_boost|boost_system|g' -i



%build
%if %{with cephfs_java}
# Find jni.h
for i in /usr/{lib64,lib}/jvm/java/include{,/linux}; do
    [ -d $i ] && java_inc="$java_inc -I$i"
done
%endif
export CPPFLAGS="$java_inc"

# Decrease debuginfo verbosity to reduce memory consumption even more
%global optflags `echo %{optflags} -DBOOST_ASIO_USE_TS_EXECUTOR_AS_DEFAULT | sed -e 's/-gdwarf-4 /-g1 /'`

%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DBUILD_CONFIG=rpmbuild \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DCMAKE_INSTALL_LIBDIR=%{_libdir} \
	-DCMAKE_INSTALL_LIBEXECDIR=%{_libexecdir} \
	-DCMAKE_INSTALL_LOCALSTATEDIR=%{_localstatedir} \
	-DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
	-DCMAKE_INSTALL_MANDIR=%{_mandir} \
	-DCMAKE_INSTALL_DOCDIR=%{_docdir}/ceph \
	-DCMAKE_INSTALL_INCLUDEDIR=%{_includedir} \
	-DCMAKE_INSTALL_SYSTEMD_SERVICEDIR=%{_unitdir} \
	-DWITH_OCF=ON \
	-DWITH_NSS=ON \
	-DWITH_DEBUG=ON \
	-DWITH_REENTRANT_STRSIGNAL=ON \
%if %{with seastar}
	-DWITH_SEASTAR=ON \
%endif
	-DWITH_PYTHON2=OFF \
	-DWITH_PYTHON3=ON \
	-DMGR_PYTHON_VERSION=3 \
	-DWITH_MGR_DASHBOARD_FRONTEND=OFF \
	-DMGR_PYTHON_VERSION=3 \
	-DWITH_SYSTEMD=ON \
	-DWITH_SYSTEM_BOOST=ON \
	-DWITH_BOOST_CONTEXT=ON \
%if %{with cephfs_java}
	-DWITH_CEPHFS_JAVA=ON \
%endif
%if %{with selinux}
	-DWITH_SELINUX=ON \
%endif
%if %{with test}
	-DWITH_SYSTEM_GTEST=ON \
	-DWITH_TESTS=ON \
%endif
	-DWITH_CEPHFS_SHELL=ON \
	-DWITH_GRAFANA=ON

%make_build

%install
%make_install -C build

# we have dropped sysvinit bits
rm -f %{buildroot}%{_sysconfdir}/init.d/ceph

install -m 0644 -D src/etc-rbdmap %{buildroot}%{_sysconfdir}/ceph/rbdmap
install -m 0644 -D etc/sysconfig/ceph %{buildroot}%{_sysconfdir}/sysconfig/ceph
install -m 0644 -D systemd/ceph.tmpfiles.d %{buildroot}%{_tmpfilesdir}/ceph-common.conf
install -m 0644 -D systemd/50-ceph.preset %{buildroot}%{_libexecdir}/systemd/system-preset/50-ceph.preset
mkdir -p %{buildroot}%{_sbindir}
install -m 0644 -D src/logrotate.conf %{buildroot}%{_sysconfdir}/logrotate.d/ceph
chmod 0644 %{buildroot}%{_docdir}/ceph/sample.ceph.conf
install -m 0644 -D COPYING %{buildroot}%{_docdir}/ceph/COPYING
install -m 0644 -D etc/sysctl/90-ceph-osd.conf %{buildroot}%{_sysctldir}/90-ceph-osd.conf

install -m 0755 src/cephadm/cephadm %{buildroot}%{_sbindir}/cephadm
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm
chmod 0700 %{buildroot}%{_sharedstatedir}/cephadm
mkdir -p %{buildroot}%{_sharedstatedir}/cephadm/.ssh
chmod 0700 %{buildroot}%{_sharedstatedir}/cephadm/.ssh
touch %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys
chmod 0600 %{buildroot}%{_sharedstatedir}/cephadm/.ssh/authorized_keys

# udev rules
install -m 0644 -D udev/50-rbd.rules %{buildroot}%{_udevrulesdir}/50-rbd.rules

# sudoers.d
install -m 0600 -D sudoers.d/ceph-smartctl %{buildroot}%{_sysconfdir}/sudoers.d/ceph-smartctl

#set up placeholder directories
mkdir -p %{buildroot}%{_sysconfdir}/ceph
mkdir -p %{buildroot}%{_localstatedir}/run/ceph
mkdir -p %{buildroot}%{_localstatedir}/log/ceph
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/tmp
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mon
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/osd
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mds
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/mgr
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/crash
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/crash/posted
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/radosgw
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-osd
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-mds
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rgw
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-mgr
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rbd
mkdir -p %{buildroot}%{_localstatedir}/lib/ceph/bootstrap-rbd-mirror

# prometheus alerts
install -m 644 -D monitoring/prometheus/alerts/ceph_default_alerts.yml %{buildroot}/etc/prometheus/ceph/ceph_default_alerts.yml

#install sysuser configs
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/ceph.conf
install -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/cephadm.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12218 |21mr|certbot-1.30.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without docs
# TODO: bcond_without bootstrap (for python3-acme)
# TODO: package more submodules (like apache and nginx)

Name:           certbot
Version:	1.30.0
Release:	2
Summary:        A free, automated certificate authority client
Group:          System/Servers
License:        ASL 2.0
Url:            https://github.com/certbot/certbot
Source0:        https://github.com/certbot/certbot/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source10:       certbot-renew-systemd.service
Source11:       certbot-renew-systemd.timer
Source14:       certbot-renew-systemd.preset
Source12:       certbot-sysconfig-certbot
Source13:       certbot-README.rosa
Patch1:         0001-apache-detect-ROSA.patch
# XXX python3-acme is built from THIS source,
# bootstrap may be required in the future
BuildRequires:  python3-acme
BuildRequires:  python3-configargparse
BuildRequires:  python3-configobj
BuildRequires:  python3-cryptography
BuildRequires:  python3-devel
BuildRequires:  python3-distro
BuildRequires:  python3-josepy
BuildRequires:  python3-parsedatetime
BuildRequires:  python3-pyrfc3339
BuildRequires:  python3-pytest
BuildRequires:  python3-pytz
BuildRequires:  python3-setuptools
BuildRequires:  python3-zope-component
BuildRequires:  python3-zope.interface
%if %{with docs}
# Required for documentation
BuildRequires:  python3-repoze-sphinx-autointerface
BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme
%endif
BuildArch:      noarch
# For the systemd macros
BuildRequires:  systemd-units
Requires:       python3-certbot = %{EVRD}
Provides:       letsencrypt = %{EVRD}

# Automatically pull Apache plugin if Apache is installed
Recommends:		(certbot-apache if httpd)
# Automatically pull Nginx plugin if Nginx is installed
Recommends:		(certbot-nginx if nginx)

%description
certbot is a free, automated certificate authority that aims
to lower the barriers to entry for encrypting all HTTP traffic on the internet.

%files
%license LICENSE.txt
%doc README.rst README.ROSA CHANGELOG.md
%{_bindir}/certbot
%{_bindir}/letsencrypt
# %%doc %%attr(0644,root,root) %%{_mandir}/man1/%%{name}*
%dir %{_sysconfdir}/letsencrypt
# _sharedtsatedir is /var/lib
%dir %{_sharedstatedir}/letsencrypt
%dir /var/log/letsencrypt
%config(noreplace) %{_sysconfdir}/sysconfig/certbot
%{_unitdir}/certbot-renew.service
%{_unitdir}/certbot-renew.timer
%{_presetdir}/86-certbot.preset

#-----------------------------------------------------------------------

%package -n python3-certbot
Summary:        Python 3 libraries used by certbot
Group:          Development/Python
Requires:       python3-acme = %{EVRD}
Requires:       python3-configargparse
Requires:       python3-configobj
Requires:       python3-cryptography
Requires:       python3-distro
Requires:       python3-josepy >= 1.1.0
Requires:       python3-parsedatetime
Requires:       python3-pyrfc3339
Requires:       python3-pytz
Requires:       python3-zope-component
Requires:       python3-zope.interface

%description -n python3-certbot
The python3 libraries to interface with certbot

%files -n python3-certbot
%license LICENSE.txt
%doc README.rst CHANGELOG.md
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}*.egg-info
%{_bindir}/certbot

#-----------------------------------------------------------------------

%package -n python3-acme
Summary:	ACME protocol implementation in Python
Group:		Development/Python
Requires:	python3-cryptography
Requires:	python3-ndg-httpsclient
Requires:	python3-pyasn1
Requires:	python3-pyOpenSSL
Requires:	python3-pyrfc3339
Requires:	python3-pytz
Requires:	python3-requests
Requires:	python3-requests-toolbelt
Requires:	python3-six
Requires:	python3-josepy
# renaming
Conflicts:     python3-acme < 1.18.0
Obsoletes:     python3-acme < 1.18.0
# comapt with Fedora/RH
Provides:      python3-acme = %{EVRD}

%description -n python3-acme
ACME protocol implementation in Python

%files -n python3-acme
%license LICENSE.txt
%doc README.rst CHANGELOG.md
%{python3_sitelib}/acme
%{python3_sitelib}/acme-%{version}*.egg-info

#-----------------------------------------------------------------------

# n: name of package
# r: requires
%define certbot_module_pkg(n:r:) %{expand:\
%package %{-n*} \
Summary: The %{-n*} plugin for certbot \
Requires: python3-certbot = %{EVRD} \
%{-r:Requires: %{-r*}} \
# Although a plugin for the certbot command it's technically \
# an extension to the certbot python libraries. \
# Recommend the CLI as that will be the interface most use. \
Recommends: %{name} = %{EVRD} \
# compat with Fedora/RH \
Provides: python3-certbot-%{-n*} \
\
%description %{-n*} \
The %{-n*} plugin for certbot \
\
%files %{-n*} \
%license LICENSE.txt \
%{python3_sitelib}/certbot_%(echo %{-n*} | sed -e 's,-,_,g')* \
}

#-----------------------------------------------------------------------

%certbot_module_pkg -n apache -r apache-mod_ssl
%certbot_module_pkg -n dns-cloudflare
%certbot_module_pkg -n dns-cloudxns
%certbot_module_pkg -n dns-digitalocean
%certbot_module_pkg -n dns-dnsimple
%certbot_module_pkg -n dns-dnsmadeeasy
%certbot_module_pkg -n dns-gehirn
%certbot_module_pkg -n dns-google
%certbot_module_pkg -n dns-linode
%certbot_module_pkg -n dns-luadns
%certbot_module_pkg -n dns-nsone
%certbot_module_pkg -n dns-ovh
%certbot_module_pkg -n dns-rfc2136
%certbot_module_pkg -n dns-route53
%certbot_module_pkg -n dns-sakuracloud
%certbot_module_pkg -n nginx -r nginx

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build

( cd acme
  %py3_build
)
( cd certbot
  %py3_build
)

_build_plugin(){
	cd certbot-"$1"
	%py3_build
	cd -
}

_build_plugin apache
_build_plugin dns-cloudflare
_build_plugin dns-cloudxns
_build_plugin dns-digitalocean
_build_plugin dns-dnsimple
_build_plugin dns-dnsmadeeasy
_build_plugin dns-gehirn
_build_plugin dns-google
_build_plugin dns-linode
_build_plugin dns-luadns
_build_plugin dns-nsone
_build_plugin dns-ovh
_build_plugin dns-rfc2136
_build_plugin dns-route53
_build_plugin dns-sakuracloud
_build_plugin nginx

%install

( cd acme
  %py3_install
)
( cd certbot
  %py3_install
)

_install_plugin(){
	cd certbot-"$1"
	%py3_install
	cd -
}

_install_plugin apache
_install_plugin dns-cloudflare
_install_plugin dns-cloudxns
_install_plugin dns-digitalocean
_install_plugin dns-dnsimple
_install_plugin dns-dnsmadeeasy
_install_plugin dns-gehirn
_install_plugin dns-google
_install_plugin dns-linode
_install_plugin dns-luadns
_install_plugin dns-nsone
_install_plugin dns-ovh
_install_plugin dns-rfc2136
_install_plugin dns-route53
_install_plugin dns-sakuracloud
_install_plugin nginx

# Add compatibility symlink as requested by upstream conference call
ln -sf /usr/bin/certbot %{buildroot}/usr/bin/letsencrypt
# Put the man pages in place
# install -pD -t %%{buildroot}%%{_mandir}/man1 docs/_build/man/*1*
install -Dm 0644 %{SOURCE10} %{buildroot}%{_unitdir}/certbot-renew.service
install -Dm 0644 %{SOURCE11} %{buildroot}%{_unitdir}/certbot-renew.timer
install -Dm 0644 %{SOURCE14} %{buildroot}%{_presetdir}/86-certbot.preset
install -Dm 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/sysconfig/certbot
cp %{SOURCE13} README.ROSA

# (From Fedora, maybe drop it?) project uses old letsencrypt dir for compatibility
install -dm 0755 %{buildroot}%{_sysconfdir}/letsencrypt
install -dm 0755 %{buildroot}%{_sharedstatedir}/letsencrypt

# Own directory with logs
mkdir -p %{buildroot}/var/log/letsencrypt

# rm odd stuff
rm -fvr %{buildroot}%{python3_sitelib}/certbot_nginx/tests

%check
# XXX tests failed at version 1.18.0
#%%{__python3} -m pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12219 |21mr|certmonger-0.79.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Certificate status monitor and PKI enrollment client
Name:		certmonger
Version:	0.79.11
Release:	1
License:	GPLv3+
Group:		System/Base
Url:		http://pagure.io/certmonger/
Source0:	http://releases.pagure.org/certmonger/certmonger-%{version}.tar.gz
Patch0001:	0001-Adjust-dbus-python-output-more-for-python-3.8.patch
BuildRequires:	openldap-devel
BuildRequires:	autoconf
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(tevent)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(xmlrpc)
Requires(post,preun):	systemd

%description
Certmonger is a service which is primarily concerned with getting your
system enrolled with a certificate authority (CA) and keeping it enrolled.

%files -f %{name}.lang
%doc LICENSE STATUS doc/*.txt
%{_bindir}/certmaster-getcert
%{_bindir}/getcert
%{_bindir}/ipa-getcert
%{_bindir}/local-getcert
%{_bindir}/selfsign-getcert
%{_datadir}/dbus-1/services/certmonger.service
%{_mandir}/man1/certmaster-getcert.1*
%{_mandir}/man1/getcert.1*
%{_mandir}/man1/getcert-*.1*
%{_mandir}/man1/ipa-getcert.1*
%{_mandir}/man1/local-getcert.1*
%{_mandir}/man1/selfsign-getcert.1*
%{_mandir}/man5/certmonger.conf.5*
%{_mandir}/man8/certmonger.8*
%{_mandir}/man8/certmonger-*.8*
%{_libexecdir}/%{name}
%{_localstatedir}/lib/certmonger
%{_sbindir}/certmonger
%ghost %dir %{_localstatedir}/run/certmonger
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/certmonger.conf
%dir %{_sysconfdir}/certmonger
%config(noreplace) %{_sysconfdir}/certmonger/certmonger.conf
%{_tmpfilesdir}/certmonger.conf
%{_unitdir}/certmonger.service
%{_datadir}/dbus-1/system-services/org.fedorahosted.certmonger.service

%post
%tmpfiles_create %{_tmpfilesdir}/certmonger.conf
%systemd_post certmonger.service

%preun
%systemd_preun certmonger.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1
autoreconf -i -f

%build
%configure \
	--enable-now \
	--enable-pie \
	--enable-systemd \
	--enable-tmpfiles \
	--with-homedir=%{_localstatedir}/run/certmonger \
	--with-tmpdir=%{_localstatedir}/run/certmonger

# For some reason, some versions of xmlrpc-c-config in Fedora and RHEL just
# tell us about libxmlrpc_client, but we need more.  Work around.
%make XMLRPC_LIBS="-lxmlrpc_client -lxmlrpc_util -lxmlrpc"

%install
%makeinstall_std
mkdir -p %{buildroot}%{_localstatedir}/lib/certmonger/{cas,requests}
install -m755 -d %{buildroot}%{_localstatedir}/run/certmonger

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12220 |21mr|cert-sh-functions-1.0.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Helper functions for SSL certificate generation
Name:		cert-sh-functions
Version:	1.0.6
Release:	4
License:	GPL
Group:		System/Base
Url:		http://git.altlinux.org/gears/c/cert-sh-functions.git
Source0:	%{name}-%{version}.tar.gz
Patch0:		cert-sh-add-funcs.patch
Requires:	openssl
Requires:	openssl-config
Requires:	/bin/sh
Provides:	cert-sh = %{EVRD}
BuildArch:	noarch

%description
Helper functions for SSL certificate generation (from ALT Linux).

%files
%doc README
%{_bindir}/cert-sh
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%install
install -Dpm755 cert-sh %{buildroot}%{_bindir}/cert-sh
install -Dpm644 %{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12221 |21mr|cervisia-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CVS frontend for KDE
Name:		cervisia
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	cervisia.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5su-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	cvs

%description
CVS frontend for KDE.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.cervisia.desktop
%{_kde5_bindir}/cvsaskpass
%{_kde5_bindir}/cvsservice5
%{_kde5_bindir}/cervisia
%{_kde5_datadir}/config.kcfg/cervisiapart.kcfg
%{_kde5_iconsdir}/*/*/*/*cervisia*
%{_kde5_libdir}/libkdeinit5_cvsaskpass.so
%{_kde5_libdir}/libkdeinit5_cvsservice.so
%{_kde5_libdir}/libkdeinit5_cervisia.so
%{_kde5_mandir}/man1/cervisia.1.*
%{_kde5_notificationsdir}/cervisia.notifyrc
%{_kde5_services}/org.kde.cervisiapart5.desktop
%{_kde5_services}/org.kde.cvsservice5.desktop
%{_kde5_xmlguidir}/cervisia/cervisiashellui.rc
%{_kde5_xmlguidir}/cervisiapart/cervisiaui.rc
%{_appdatadir}/org.kde.cervisia.appdata.xml
%{_qt5_plugindir}/cervisiapart5.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/KDE and Qt

%description devel
Development files for %{name}.

%files devel
%{_datadir}/dbus-1/interfaces/org.kde.cervisia5.*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} cvsservice %{name}.lang --with-kde --with-html --with-man


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12222 |21mr|cfengine-3.21.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _fortify_cflags %{nil}

%define major 3
%define libname %mklibname %{name}_ %{major}
%define develname %mklibname -d %{name}

Name:		cfengine
Version:	3.21.3
Release:	1
Summary:	Cfengine helps administer remote BSD and System-5-like systems
License:	GPL
Group:		Monitoring
URL:		http://cfengine.com
Source0:	https://cfengine-package-repos.s3.amazonaws.com/tarballs/cfengine-community-3.21.3.tar.gz
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	openssl-devel
BuildRequires:	db-devel
BuildRequires:	graphviz-devel
BuildRequires:	mysql-devel
BuildRequires:	lmdb-devel
BuildRequires:	postgresql-devel
BuildRequires:	pcre-devel
BuildRequires:	libvirt-devel
BuildRequires:	libxml2-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	acl-devel
BuildRequires:	yaml-devel
Requires(pre):	rpm-helper
Requires(preun):rpm-helper
%rename cfengine3

%description
Cfengine, the configuration engine, is a very high level language for
simplifying the task of administrating and configuring large numbers
of workstations. Cfengine uses the idea of classes and a primitive
form of intelligence to define and automate the configuration of large
systems in the most economical way possible.

#-----------------------------------------------------------------

%package base
Summary:	Cfengine base files
Group:		Monitoring
Requires:	lsb-release
%rename cfengine3-base

%description base
This package contain the cfengine base files needed by all subpackages.

%files base
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/examples
%doc %{_docdir}/%{name}/README.md
%doc %{_docdir}/libntech/README.md
%{_bindir}/cf-key
%{_bindir}/cf-promises
%{_bindir}/cf-check
%{_bindir}/cf-net
%{_bindir}/cf-secret
%{_bindir}/cf-support
%{_bindir}/cf-upgrade
%{_bindir}/rpmvercmp
%{_localstatedir}/lib/%{name}
%{_localstatedir}/%{name}
%{_unitdir}/cf-apache.service
%{_unitdir}/cf-hub.service
%{_unitdir}/cf-postgres.service
%{_unitdir}/cf-runalerts.service
%{_unitdir}/cfengine3.service
%{_unitdir}/cf-reactor.service

%post base
if [ $1 = 1 ]; then
    [ -f "%{_localstatedir}/lib/%{name}/ppkeys/localhost.priv" ] || cf-key >/dev/null 2>&1
fi

%_post_service cf-apache
%_post_service cf-hub
%_post_service cf-postgres
%_post_service cf-runalerts
%_post_service cfengine3
%_post_service cf-reactor
%preun base
%_preun_service cf-apache
%_preun_service cf-hub
%_preun_service cf-postgres
%_preun_service cf-runalerts
%_preun_service cfengine3
%_preun_service cf-reactor
#-----------------------------------------------------------------

%package agent
Summary:	Cfengine agent
Group:		Monitoring
Requires:	%{name}-base = %{version}-%{release}
%rename cfengine3-agent

%description agent
This package contain the cfengine agent.

%files agent
%{_bindir}/cf-agent
%{_bindir}/cf-runagent

#-----------------------------------------------------------------

%package serverd
Summary:	Cfengine server daemon
Group:		Monitoring
Requires:	%{name}-base = %{version}-%{release}
Requires(post):rpm-helper
Requires(preun):rpm-helper
%rename cfengine3-serverd

%description serverd
This package contain the cfengine server daemon.

%files serverd
%{_bindir}/cf-serverd
%{_unitdir}/cf-serverd.service

%post serverd
%_post_service cf-serverd

%preun serverd
%_preun_service cf-serverd

#-----------------------------------------------------------------

%package execd
Summary:	Cfengine agent execution wrapper
Group:		Monitoring
Requires:	%{name}-base = %{version}-%{release}
Requires(post):	rpm-helper
Requires(preun):rpm-helper
%rename cfengine3-execd

%description execd
This package contain the cfengine agent execution wrapper.

%files execd
%{_bindir}/cf-execd
%{_unitdir}/cf-execd.service

%post execd
%_post_service cf-execd

%preun execd
%_preun_service cf-execd

#-----------------------------------------------------------------

%package monitord
Summary:	Cfengine anomaly detection daemon
Group:		Monitoring
Requires:	%{name}-base = %{version}-%{release}
Requires(pre):	rpm-helper
Requires(preun):rpm-helper
%rename cfengine3-monitord

%description monitord
This package contain the cfengine anomaly detection daemon.

%files monitord
%{_bindir}/cf-monitord
%{_unitdir}/cf-monitord.service

%post monitord
%_post_service cf-monitord

%preun monitord
%_preun_service cf-monitord

#-----------------------------------------------------------------

%package -n	%{libname}
Summary:	Dynamic libraries for %{name}
Group:		System/Libraries
%define old_libname %mklibname %{name}3_ %{major}
%rename %{old_libname}

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#-----------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
%define old_develname %mklibname -d %{name}3
%rename %{old_develname}

%description -n	%{develname}
This package contains the header files and libraries needed for
developing programs using the %{name} library.

%files -n %{develname}
%{_libdir}/*.so

#-----------------------------------------------------------------
%prep
%autosetup -p1

%build
%serverbuild
%configure \
    --enable-fhs \
    --libexecdir=%{_libdir} \
    --enable-shared \
    --with-systemd-service=%{_unitdir}

%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_sysconfdir}

install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/bin
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/lastseen
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/modules
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/outputs
install -d -m 700 %{buildroot}%{_localstatedir}/lib/%{name}/ppkeys
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/randseed
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/reports
install -d -m 700 %{buildroot}%{_localstatedir}/lib/%{name}/rpc_in
install -d -m 700 %{buildroot}%{_localstatedir}/lib/%{name}/rpc_out
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/rpc_state


#pushd %{buildroot}%{_localstatedir}/lib/%{name}
#ln -sf ../../../..%{_sysconfdir}/%{name} inputs
#popd

pushd %{buildroot}%{_bindir}
for i in cf-*
do
ln -sf ../../../..%{_bindir}/$i %{buildroot}%{_localstatedir}/lib/%{name}/bin/$i
done
popd


# TODO: experiment with build options to avoid this hack
mv %{buildroot}%{_libdir}/%{name}/* %{buildroot}%{_libdir}/
rmdir %{buildroot}%{_libdir}/%{name}

# compatibility purpose
pushd %{buildroot}%{_localstatedir}/lib/%{name}
ln -sf %{_localstatedir}/lib/%{name} ../../%{name}
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12223 |21mr|cfitsio-3.490-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sversion %(echo %version |sed -e 's#0##')

%define major 9
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	A library for accessing files in FITS format for C and Fortran
Name:		cfitsio
Version:	3.490
Release:	1
License:	BSD-like
Group:		System/Libraries
URL:		http://heasarc.gsfc.nasa.gov/docs/software/fitsio/
Source0:	http://heasarc.gsfc.nasa.gov/FTP/software/fitsio/c/%{name}-%{sversion}.tar.gz
Patch0:		cfitsio-3.49-sfmt.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gcc-gfortran
BuildRequires:	grep
BuildRequires:	sed
%ifarch %{ix86} %{x86_64}
BuildRequires:	quadmath-devel
%endif
BuildRequires:	pkgconfig(pkg-config)

%description
Cfitsio is a library of C and Fortran subroutines for reading and
writing data files in FITS (Flexible Image Transport System) data
format.  Cfitsio simplifies the task of writing software that deals
with FITS files by providing an easy to use set of high-level routines
that insulate the programmer from the internal complexities of the
FITS file format.  At the same time, cfitsio provides many advanced
features that have made it the most widely used FITS file programming
interface in the astronomical community.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for accessing files in FITS format for C and Fortran
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library required by programs that use
the cfitsio library.

%files -n %{libname}
%doc README
%{_libdir}/libcfitsio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers, libraries, & docs for the cfitsio library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers required for compiling software that uses
the cfitsio library.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development file for the cfitsio library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
This package contains the static files required for compiling software
that uses the cfitsio library.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{sversion} -p1

%build
sed -e 's|LDFLAGS=.*|LDFLAGS="%{ldflags}"|g' -i configure.in

autoreconf --force --install

# (cjw) ssse3 is not standard on x86-64 so it cannot be enabled at compile time
%configure \
%ifarch x86_64
	--enable-sse2 \
%endif
	--enable-reentrant

%make shared
%make fpack
%make funpack
%make fitscopy
%make imcopy

%install
%makeinstall_std
install -D -m755 fpack %{buildroot}%{_bindir}/fpack
install -D -m755 funpack %{buildroot}%{_bindir}/funpack
install -D -m755 fitscopy %{buildroot}%{_bindir}/fitscopy
install -D -m755 imcopy %{buildroot}%{_bindir}/imcopy

%check
make testprog
LD_LIBRARY_PATH=. ./testprog > testprog.lis
cmp -s testprog.lis testprog.out
cmp -s testprog.fit testprog.std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12224 |21mr|cglib-3.2.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tarball_name RELEASE_3_2_9

Name:           cglib
Version:        3.2.9
Release:        3
Summary:        Code Generation Library for Java
# ASM MethodVisitor is based on ASM code and therefore
# BSD-licensed. Everything else is ASL 2.0.
License:        ASL 2.0 and BSD
URL:            https://github.com/cglib/cglib
Source0:        https://github.com/cglib/cglib/archive/%{tarball_name}.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  maven-plugin-bundle
BuildRequires:  javapackages-local
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
cglib is a powerful, high performance and quality code generation library
for Java. It is used to extend Java classes and implements interfaces
at run-time.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Documentation for the cglib code generation library.

%prep
%setup -q -n %{name}-%{tarball_name}

%pom_disable_module cglib-nodep
%pom_disable_module cglib-integration-test
%pom_disable_module cglib-jmh
%pom_xpath_set pom:packaging 'bundle' cglib
%pom_xpath_inject pom:build/pom:plugins '<plugin>
                                           <groupId>org.apache.felix</groupId>
                                           <artifactId>maven-bundle-plugin</artifactId>
                                           <version>1.4.0</version>
                                           <extensions>true</extensions>
                                           <configuration>
                                             <instructions>
                                               <Bundle-SymbolicName>net.sf.cglib.core</Bundle-SymbolicName>
                                               <Export-Package>net.*</Export-Package>
                                               <Import-Package>org.apache.tools.*;resolution:=optional,*</Import-Package>
                                             </instructions>
                                           </configuration>
                                         </plugin>' cglib
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin cglib-sample
%pom_remove_plugin -r :maven-javadoc-plugin

%pom_xpath_inject "pom:dependency[pom:artifactId='ant']" "<optional>true</optional>" cglib

%mvn_alias :cglib "net.sf.cglib:cglib" "cglib:cglib-full" "cglib:cglib-nodep" "org.sonatype.sisu.inject:cglib"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12225 |21mr|cgmanager-0.36-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname   %mklibname cgmanager %{major}
%define develname %mklibname cgmanager -d
%define debugcflags	%nil
%define	debug_package	%nil

Name:		cgmanager
Version:	0.36
Release:	7
Summary:	Linux cgroup manager
URL:		https://linuxcontainers.org/cgmanager/introduction/
Source0:	https://linuxcontainers.org/downloads/%{name}/%{name}-%{version}.tar.gz
Group:		System/Kernel and hardware
License:	LGPLv2+
Epoch:		1

BuildRequires:	dbus-devel
BuildRequires:	libnih-devel
BuildRequires:	help2man

%description
CGManager is a central privileged daemon that manages all your cgroups
for you through a simple D-Bus API. It's designed to work with nested LXC
containers as well as accepting unprivileged requests including resolving
user namespaces UIDs/GIDs.

### ---------------------------------------------------------------------------------- ###

%package -n	%{libname}
Summary:	Shared library files for %{name}
Group:		System/Libraries

%description -n %{libname}
The %{name}-libs package contains libraries for running
%{name} applications.

### ---------------------------------------------------------------------------------- ###

%package -n	%{develname}
Summary:	Development library for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel

%description -n %{develname}
The %{name}-devel package contains header files and library
needed for development with %{name}.

### ---------------------------------------------------------------------------------- ###

%prep
%setup -q
%apply_patches

%build
%configure --with-distro=openmandriva --with-init-script=systemd
%make

%install
%makeinstall_std
find %{buildroot} -type f -name '*.la' -exec rm -f {} ';'
sed -i 's|ExecStart=/sbin/cgproxy|ExecStart=/usr/sbin/cgproxy|g' %{buildroot}/usr/lib/systemd/system/cgproxy.service
sed -i 's|ExecStart=/sbin/cgmanager|ExecStart=/usr/sbin/cgmanager|g' %{buildroot}/usr/lib/systemd/system/cgmanager.service
mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}/usr/lib/systemd/system/{cgmanager,cgproxy}.service %{buildroot}%{_unitdir}

#RPM build errors:
#	Installed (but unpackaged) file(s) found:
#		/usr/lib/systemd/system/cgmanager.service
#		/usr/lib/systemd/system/cgproxy.service

%files
%defattr(-,root,root)
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man1/*
%{_mandir}/man8/*
%{_datadir}/%{name}/*
%{_unitdir}/*

%files	-n %{libname}
%defattr(-,root,root)
%{_libdir}/*.so.*

%files	-n %{develname}
%defattr(-,root,root)
%{_includedir}/%{name}/*
%if %{mdvver} < 201910
%{_libdir}/*.a
%endif
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12226 |21mr|chan-0.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname chan %{major}
%define devname %mklibname chan -d

Summary:	Pure C implementation of Go channels
Name:		chan
Version:	0.0.4
Release:	1
License:	ASL 2.0
Group:		System/Libraries
Url:		https://github.com/tylertreat/%{name}
Source0:	https://github.com/tylertreat/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

%description
Pure C implementation of Go channels. Unbuffered, buffered
and closing channels are available.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Pure C implementation of Go channels
Group:		System/Libraries

%description -n %{libname}
Pure C implementation of Go channels. Unbuffered, buffered
and closing channels are available.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%license LICENSE
%doc README.md
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/queue.h
%{_includedir}/%{name}/%{name}.h
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure \
	--disable-static
%make

%install
%makeinstall_std

%check
%make src/chan_test
./src/chan_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12227 |21mr|charger_leds-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#% define debug_package %{nil}

Summary:	Show Charging Status Using Leds
Name:		charger_leds
Version:	1.0
Release:	1
Group:		System/Base
License:	LGPLv2+
# always fetch head
Source0:    %{name}.tar.gz
Source1:	charger_leds.service
Source2:	86-charger_leds.preset
BuildRequires:  cmake(Qt5Core)
BuildRequires:  cmake(Qt5DBus)
BuildRequires:  cmake
BuildRequires:	ninja
# Only for CMake's checks
BuildRequires:	qmake5
%description
Show Charging Status Using Leds

%prep
%autosetup -n %{name}

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system/
cp  %{S:1} %{buildroot}%{_prefix}/lib/systemd/system/
mkdir -p %{buildroot}%{_prefix}/lib/systemd/system-preset/
cp %{S:2} %{buildroot}%{_prefix}/lib/systemd/system-preset/

%post
%systemd_post ledcontrol.service
%systemd_post charger_leds.service

%preun
%systemd_preun ledcontrol.service
%systemd_preun charger_leds.service

%files
%attr(0755,root,root) %{_prefix}/bin/charger_leds
%attr(0644,root,root) %{_prefix}/lib/systemd/system/charger_leds.service
%attr(0644,root,root) %{_prefix}/lib/systemd/system-preset/86-charger_leds.preset


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12228 |21mr|check-0.15.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

%define _disable_rebuild_configure 1
%define __requires_exclude '.*/bin/awk|.*/bin/gawk'

Summary:	A unit test framework for C
Name:		check
Version:	0.15.2
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://libcheck.github.io/check/
Source0:	https://github.com/libcheck/check/releases/download/%{version}/%{name}-%{version}.tar.gz

%description
Check is a unit test framework for C. It features a simple interface for
defining unit tests, putting little in the way of the developer. Tests are run
in a separate address space, so Check can catch both assertion failures and
code errors that cause segmentation faults or other signals.  The output from
unit tests can be used within source code editors and IDEs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C testing framework
Group:		System/Libraries

%description -n %{libname}
Check is a unit test framework for C. It features a simple interface for
defining unit tests, putting little in the way of the developer. Tests are run
in a separate address space, so Check can catch both assertion failures and
code errors that cause segmentation faults or other signals. The output from
unit tests can be used within source code editors and IDEs.

%files -n %{libname}
%{_libdir}/libcheck.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_bindir}/checkmk
%{_datadir}/doc/%{devname}-%{version}
%{_datadir}/aclocal/check.m4
%{_libdir}/libcheck.so
%{_includedir}/*
%{_libdir}/pkgconfig/check.pc
%{_infodir}/check.info*
%{_mandir}/man1/checkmk.1*

#----------------------------------------------------------------------------
%package -n %{sdevname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains development files for %{name} (static library).

%files -n %{sdevname}
%{_libdir}/libcheck.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --enable-static
%make_build

%install
%make_install

# move documentation
mv %{buildroot}%{_datadir}/doc/%{name} \
    %{buildroot}%{_datadir}/doc/%{devname}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12229 |21mr|checkpolicy-2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define libselinuxver 2.5
%define libsepolver 2.5
Summary: 	SELinux policy compiler
Name: 		checkpolicy
Version: 	2.9
Release: 	1
License: 	GPLv2
Group: 		Development/Other
URL:	 	http://www.selinuxproject.org
Source0:	https://github.com/SELinuxProject/selinux/releases/download/20190315/%{name}-%{version}.tar.gz
BuildRequires: 	byacc 
BuildRequires: 	bison 
BuildRequires: 	flex 
BuildRequires: 	sepol-static-devel >= %{libsepolver} 
BuildRequires: 	pkgconfig(libselinux)  >= %{libselinuxver} 

%description
Security-enhanced Linux is a feature of the Linux® kernel and a number
of utilities with enhanced security functionality designed to add
mandatory access controls to Linux.  The Security-enhanced Linux
kernel contains new architectural components originally developed to
improve the security of the Flask operating system. These
architectural components provide general support for the enforcement
of many kinds of mandatory access control policies, including those
based on the concepts of Type Enforcement®, Role-based Access
Control, and Multi-level Security.

This package contains checkpolicy, the SELinux policy compiler.  
Only required for building policies. 

%prep
%setup -q

%build
make clean
make CC=%{__cc} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" 
cd test
make CC=%{__cc} LIBDIR="%{_libdir}" CFLAGS="%{optflags}" 

%install
mkdir -p %{buildroot}%{_bindir}
make LIBDIR="%{_libdir}" DESTDIR="%{buildroot}" install
install test/dismod %{buildroot}%{_bindir}/sedismod
install test/dispol %{buildroot}%{_bindir}/sedispol


%files
%{_bindir}/checkpolicy
%{_bindir}/checkmodule
%{_mandir}/man8/checkpolicy.8.xz
%{_mandir}/man8/checkmodule.8.xz
%{_mandir}/ru/man8/check*.8.*
%{_bindir}/sedismod
%{_bindir}/sedispol

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12230 |21mr|checksec-2.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Testsuite needs root-privileges.
%bcond_with     testsuite


Name:           checksec
Version:        2.2.2
Release:        1
Summary:        Tool to check system for binary-hardening
Group:		Development/Other

License:        BSD
URL:            https://github.com/slimm609/%{name}.sh
Source0:        %{url}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildArch:      noarch

%if %{with testsuite}
BuildRequires:  binutils
BuildRequires:  file
BuildRequires:  findutils
BuildRequires:  gawk
BuildRequires:  libxml2
BuildRequires:  openssl
BuildRequires:  procps-ng
BuildRequires:  %{_bindir}/jsonlint
%endif

Requires:       binutils
Requires:       file
Requires:       findutils
Requires:       gawk
Requires:       which

%description
Modern Linux distributions offer some mitigation techniques to make it harder
to exploit software vulnerabilities reliably. Mitigations such as RELRO,
NoExecute (NX), Stack Canaries, Address Space Layout Randomization (ASLR) and
Position Independent Executables (PIE) have made reliably exploiting any
vulnerabilities that do exist far more challenging. The checksec script is
designed to test what *standard* Linux OS and PaX (http://pax.grsecurity.net/)
security features are being used.

As of version 1.3 the script also lists the status of various Linux kernel
protection mechanisms.

%{name} can check binary-files and running processes for hardening features.


%prep
%autosetup -n %{name}.sh-%{version} -p 1

# Fix shebang.
sed -i 's~^#!/usr/bin/env bash~#!/bin/bash~' checksec

# Disable --update command.
sed -i 's/pkg_release=false/pkg_release=true/' checksec


%build
# noop


%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
install -pm 0755 %{name} %{buildroot}%{_bindir}
install -pm 0644 extras/man/%{name}.1 %{buildroot}%{_mandir}/man1


%if %{with testsuite}
%check
pushd tests
./xml-checks.sh || exit 2
%if 0%{?fedora} || 0%{?rhel} >= 6
./json-checks.sh || exit 2
%endif
popd
%endif


%files
%license LICENSE.txt
%doc ChangeLog README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12231 |21mr|checkstyle7-7.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname checkstyle
Group: Development/Java
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           checkstyle7
Version:        7.7
Release:        1
Summary:        Java source code checker
URL:            http://checkstyle.sourceforge.net/
# src/checkstyle/com/puppycrawl/tools/checkstyle/grammars/java.g is GPLv2+
# Most of the files in contrib/usage/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/usage/transmogrify/ are BSD
License:        LGPLv2+ and GPLv2+ and BSD
BuildArch:      noarch

Source0:        http://download.sf.net/checkstyle/checkstyle-%{version}-src.tar.gz
Source2:        %{oldname}.catalog

BuildRequires:  maven-local
BuildRequires:  mvn(antlr:antlr)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(org.antlr:antlr4-maven-plugin)
BuildRequires:  mvn(org.antlr:antlr4-runtime)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-nodeps)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.codehaus.mojo:antlr-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)

Source44: import.info

%description
A tool for checking Java source code for adherence to a set of rules.

%package        javadoc
Group: Development/Java
Summary:        Javadoc for %{name}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description    javadoc
API documentation for %{name}.

%prep
%setup -q -n %{oldname}-%{version}

%pom_remove_parent

sed -i s/guava-jdk5/guava/ pom.xml

# not needed for package build
%pom_remove_plugin :maven-eclipse-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin

# these are only needed for upstream QA
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-linkcheck-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :xml-maven-plugin
%pom_remove_plugin :forbiddenapis

# get rid of system scope
%pom_remove_dep com.sun:tools
%pom_add_dep com.sun:tools

# fix encoding issues in docs
sed -i 's/\r//' LICENSE LICENSE.apache20 README.md

# The following test needs network access, so it would fail on Koji
sed -i '/testLoadFromURL/s/ *.*/    @org.junit.Ignore&/' src/test/java/com/puppycrawl/tools/checkstyle/filters/SuppressionsLoaderTest.java

# Test failure, TODO: investigate this
sed -i '/testUnexpectedChar/s/./@org.junit.Ignore/' src/test/java/com/puppycrawl/tools/checkstyle/grammars/GeneratedJava14LexerTest.java

%mvn_compat_version : 7 %{version}

%build
%mvn_file  : %{name}
# Tests are skipped due to unavailable test dependencies
# (com.github.stefanbirkner:system-rules:jar:1.9.0 and
# nl.jqno.equalsverifier:equalsverifier:jar:1.7.2)
%mvn_build -f

%install
%mvn_install

# script
%jpackage_script com.puppycrawl.tools.checkstyle.Main "" "" checkstyle7:antlr:apache-commons-beanutils:apache-commons-cli:apache-commons-logging:apache-commons-collections:guava checkstyle7 true

# dtds
install -Dm 644 %{SOURCE2} %{buildroot}%{_datadir}/xml/%{name}/catalog
cp -pa src/main/resources/com/puppycrawl/tools/checkstyle/*.dtd \
  %{buildroot}%{_datadir}/xml/%{name}

# ant.d
install -dm 755  %{buildroot}%{_sysconfdir}/ant.d
cat > %{buildroot}%{_sysconfdir}/ant.d/%{name} << EOF
checkstyle antlr apache-commons-beanutils apache-commons-cli apache-commons-logging guava
EOF

mkdir -p $RPM_BUILD_ROOT`dirname /etc/java/%{name}.conf`
touch $RPM_BUILD_ROOT/etc/java/%{name}.conf
sed -i -e s,checkstyle.conf,%{name}.conf, %buildroot%{_bindir}/%{name}

%post
if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then
  %{_bindir}/install-catalog --add \
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \
    %{_datadir}/xml/%{name}/catalog > /dev/null || :
fi

%postun
if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then
  %{_bindir}/install-catalog --remove \
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \
    %{_datadir}/xml/%{name}/catalog > /dev/null || :
fi

%files -f .mfiles
%doc LICENSE
%doc README.md
%{_datadir}/xml/%{name}
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/ant.d/%{name}
%config(noreplace,missingok) /etc/java/%{name}.conf

%files javadoc -f .mfiles-javadoc
%doc LICENSE


%changelog
* Tue Nov 21 2017 Igor Vlasenko <viy@altlinux.ru> 0:7.7-alt1_0jpp8
- compat package

* Wed Oct 18 2017 Igor Vlasenko <viy@altlinux.ru> 0:7.7-alt1_1jpp8
- new jpp release

* Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 0:7.1-alt1_1jpp8
- new version

* Fri Nov 25 2016 Igor Vlasenko <viy@altlinux.ru> 0:6.13-alt1_2jpp8
- new version

* Sun Feb 07 2016 Igor Vlasenko <viy@altlinux.ru> 0:6.6-alt1_2jpp8
- unbootsrap build

* Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 0:5.6-alt1_7jpp7
- new release

* Mon Aug 25 2014 Igor Vlasenko <viy@altlinux.ru> 0:5.6-alt1_5jpp7
- new release

* Thu Aug 07 2014 Igor Vlasenko <viy@altlinux.ru> 0:5.5-alt3_4jpp7
- rebuild with maven-local

* Mon Jul 14 2014 Igor Vlasenko <viy@altlinux.ru> 0:5.5-alt2_4jpp7
- NMU rebuild to move poms and fragments

* Thu Sep 13 2012 Igor Vlasenko <viy@altlinux.ru> 0:5.5-alt1_4jpp7
- new version

* Sat Mar 17 2012 Igor Vlasenko <viy@altlinux.ru> 0:5.0-alt3_1jpp5
- added to depmap com.puppycrawl.tools:checkstyle

* Sat Mar 27 2010 Igor Vlasenko <viy@altlinux.ru> 0:5.0-alt2_1jpp5
- full version

* Fri Mar 26 2010 Igor Vlasenko <viy@altlinux.ru> 0:5.0-alt2_0jpp0
- temporary stub for 4.4

* Sun Sep 21 2008 Igor Vlasenko <viy@altlinux.ru> 0:5.0-alt2
- temporary stub to repair other packages rebuild

* Sat Sep 06 2008 Igor Vlasenko <viy@altlinux.ru> 0:5.0-alt1_0.beta01.4jpp5
- converted from JPackage by jppimport script

* Sat Dec 15 2007 Igor Vlasenko <viy@altlinux.ru> 0:4.3-alt3_1jpp1.7
branch 4.0 compatible build

* Tue Nov 13 2007 Igor Vlasenko <viy@altlinux.ru> 0:4.3-alt2_1jpp1.7
- require new commons-cli

* Thu Aug 02 2007 Igor Vlasenko <viy@altlinux.ru> 0:4.3-alt1_1jpp1.7
- converted from JPackage by jppimport script

* Thu May 17 2007 Igor Vlasenko <viy@altlinux.ru> 0:4.1-alt2_3jpp1.7
- converted from JPackage by jppimport script

* Sun Mar 26 2006 Vladimir Lettiev <crux@altlinux.ru> 4.1-alt2
- Fix build with j2se1.5

* Sun Dec 18 2005 Vladimir Lettiev <crux@altlinux.ru> 4.1-alt1
- Initial build for ALTLinux Sisyphus


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12232 |21mr|checkstyle-8.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           checkstyle
Version:        8.0
Release:        7
Summary:        Java source code checker
URL:            http://checkstyle.sourceforge.net/
# src/checkstyle/com/puppycrawl/tools/checkstyle/grammars/java.g is GPLv2+
# Most of the files in contrib/usage/src/checkstyle/com/puppycrawl/tools/checkstyle/checks/usage/transmogrify/ are BSD
License:        LGPLv2+ and GPLv2+ and BSD
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://download.sf.net/checkstyle/checkstyle-%{version}-src.tar.gz
Source2:        %{name}.catalog

# CVE-2019-9658 checkstyle: Loads external DTDs by default
Patch0:         0001-Do-not-load-external-DTDs-by-default.patch

BuildRequires:  maven-local
BuildRequires:  mvn(antlr:antlr)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(org.antlr:antlr4-maven-plugin)
BuildRequires:  mvn(org.antlr:antlr4-runtime)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-nodeps)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.codehaus.mojo:antlr-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
# Explicit requires for javapackages-tools since checkstyle-script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

Obsoletes:      %{name}-optional < %{version}-%{release}
Obsoletes:      %{name}-demo < %{version}-%{release}
Obsoletes:      %{name}-manual < %{version}-%{release}

%description
A tool for checking Java source code for adherence to a set of rules.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

%pom_remove_parent

sed -i s/guava-jdk5/guava/ pom.xml

# not needed for package build
%pom_remove_plugin :maven-eclipse-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin

# these are only needed for upstream QA
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-linkcheck-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :xml-maven-plugin
%pom_remove_plugin :forbiddenapis
%pom_remove_plugin :spotbugs-maven-plugin

# get rid of system scope
%pom_remove_dep com.sun:tools
%pom_add_dep com.sun:tools

# fix encoding issues in docs
sed -i 's/\r//' LICENSE LICENSE.apache20 README.md

# The following test needs network access, so it would fail on Koji
sed -i '/testLoadFromURL/s/ *.*/    @org.junit.Ignore&/' src/test/java/com/puppycrawl/tools/checkstyle/filters/SuppressionsLoaderTest.java

# Test failure, TODO: investigate this
sed -i '/testUnexpectedChar/s/./@org.junit.Ignore/' src/test/java/com/puppycrawl/tools/checkstyle/grammars/GeneratedJava14LexerTest.java

%build
%mvn_file  : %{name}
# Tests are skipped due to unavailable test dependencies
# (com.github.stefanbirkner:system-rules:jar:1.9.0 and
# nl.jqno.equalsverifier:equalsverifier:jar:1.7.2)
%mvn_build -f

%install
%mvn_install

# script
%jpackage_script com.puppycrawl.tools.checkstyle.Main "" "" checkstyle:antlr:apache-commons-beanutils:apache-commons-cli:apache-commons-logging:apache-commons-collections:guava checkstyle true

# dtds
install -Dm 644 %{SOURCE2} %{buildroot}%{_datadir}/xml/%{name}/catalog
cp -pa src/main/resources/com/puppycrawl/tools/checkstyle/*.dtd \
  %{buildroot}%{_datadir}/xml/%{name}

# ant.d
install -dm 755  %{buildroot}%{_sysconfdir}/ant.d
cat > %{buildroot}%{_sysconfdir}/ant.d/%{name} << EOF
checkstyle antlr apache-commons-beanutils apache-commons-cli apache-commons-logging guava
EOF

%post
# Note that we're using a fully versioned catalog, so this is always ok.
if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then
  %{_bindir}/install-catalog --add \
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \
    %{_datadir}/xml/%{name}/catalog > /dev/null || :
fi

%postun
# Note that we're using a fully versioned catalog, so this is always ok.
if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then
  %{_bindir}/install-catalog --remove \
    %{_sysconfdir}/sgml/%{name}-%{version}-%{release}.cat \
    %{_datadir}/xml/%{name}/catalog > /dev/null || :
fi

%files -f .mfiles
%license LICENSE
%doc README.md
%{_datadir}/xml/%{name}
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/ant.d/%{name}

%files javadoc -f .mfiles-javadoc
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12233 |21mr|cheese-41.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define gtk_maj 25
%define major 8
%define libname %mklibname %{name} %{major}
%define gtkname %mklibname %{name}-gtk %{gtk_maj}
%define girname %mklibname %{name}-gtk-gir %{version}
%define devname %mklibname %{name} -d
%define	devgtk %mklibname %{name}-gtk -d

Summary:	A GNOME application for taking pictures and videos from a webcam
Name:		cheese
Version:	41.1
Release:	1
License:	GPLv2+
Group:		Video
Url:		https://download.gnome.org/sources/cheese
Source0:	https://download.gnome.org/sources/cheese/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	cheese-3.38.0_ru.tar.gz
BuildRequires:	appstream-util
BuildRequires:	docbook-dtd43-xml
BuildRequires:	gdk-pixbuf2.0
BuildRequires:	glib2.0-common
BuildRequires:	gnome-doc-utils
BuildRequires:	gstreamer1.0-plugins-bad
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	gstreamer1.0-vp8
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	gstbasevideo1.0-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gst-3.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-video-effects)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
Requires:	gnome-video-effects
Requires:	gsettings-desktop-schemas
Requires:	gstreamer1.0-gstclutter
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Recommends:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-vp8

%description
Cheese is a Photobooth-inspired GNOME application for taking pictures and
videos from a webcam. It also includes fancy graphical effects based on
the gstreamer backend.

%files -f %{name}.lang
%doc COPYING ChangeLog NEWS README
%config(noreplace) %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/glib-2.0/schemas/org.gnome.Cheese.gschema.xml
%{_iconsdir}/hicolor/*/*/*
%{_mandir}/man1/%{name}.1*
%{_appdatadir}/org.gnome.Cheese.appdata.xml
%{_datadir}/dbus-1/services/org.gnome.Cheese.service

%post
update-alternatives --install %{_sysconfdir}/dynamic/launchers/webcam/kde.desktop webcam.kde.dynamic %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop 60
update-alternatives --install %{_sysconfdir}/dynamic/launchers/webcam/gnome.desktop webcam.gnome.dynamic %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop 60

%postun
if [ "$1" = "0" ]; then
	update-alternatives --remove webcam.kde.dynamic %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop
	update-alternatives --remove webcam.gnome.dynamic %{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library part of %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{gtkname}
Summary:	Shared library part of %{name} - gtk
Group:		System/Libraries

%description -n %{gtkname}
This package contains the shared library for %{name}-gtk.

%files -n %{gtkname}
%doc COPYING
%{_libdir}/lib%{name}-gtk.so.%{gtk_maj}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Cheese-*.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Developent files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This packages contains the development library and header files for %{name}.

%files -n %{devname}
%doc COPYING NEWS README
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gir-1.0/Cheese-*.gir
%{_datadir}/gtk-doc/html/%{name}/

#----------------------------------------------------------------------------

%package -n %{devgtk}
Summary:	Developent files for %{name}-gtk
Group:		Development/C
Requires:	%{gtkname} = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{devgtk}
This packages contains the development library and header files for %{name}-gtk.

%files -n %{devgtk}
%doc COPYING
%{_libdir}/lib%{name}-gtk.so
%{_libdir}/pkgconfig/%{name}-gtk.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson -Dtests=false
%meson_build

%install
%meson_install

# dynamic support
mkdir -p %{buildroot}%{_sysconfdir}/dynamic/launchers/webcam
cat > %{buildroot}%{_sysconfdir}/dynamic/launchers/webcam/%{name}.desktop << EOF
[Desktop Entry]
Name=Webcam Photobooth
Comment=Cheese Webcam Photobooth using \$devicename
TryExec=%{name}
Exec=%{name}
Terminal=false
Icon=%{name}
Type=Application
StartupNotify=true
EOF

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12234 |21mr|chemical-mime-data-0.1.94-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Support for chemical/* MIME types
Name:		chemical-mime-data
Version:	0.1.94
Release:	16
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/chemical-mime/
Source0:	http://dl.sourceforge.net/chemical-mime/%{name}-%{version}.tar.bz2
Patch0:		chemical-mime-data-0.1.94-rosa-rsvg.patch
BuildRequires:	intltool
BuildRequires:	librsvg
BuildRequires:	libxslt-proc
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(shared-mime-info)
Requires:	hicolor-icon-theme
Requires:	shared-mime-info
BuildArch:	noarch

%description
A collection of data files which tries to give support for various chemical
MIME types (chemical/*) on Linux/UNIX desktops. Chemical MIME's have been
proposed in 1995, though it seems they have never been registered with IANA.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING HACKING NEWS README THANKS TODO
%doc __docs/*
%{_datadir}/icons/hicolor/*/mimetypes/gnome-mime-chemical.png
%{_datadir}/icons/hicolor/scalable/mimetypes/gnome-mime-chemical.svgz
%{_datadir}/mime/packages/chemical-mime-data.xml
%{_datadir}/mimelnk
%{_datadir}/pkgconfig/chemical-mime-data.pc

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e '/^libdir/d' chemical-mime-data.pc.in
%patch0 -p1

%build
intltoolize --force
# required for patch0
autoreconf -fi

export RSVG=%{_bindir}/rsvg-convert
%configure \
	--disable-update-database \
	--without-gnome-mime \
	--without-pixmaps
%make

%install
%makeinstall_std
cp -pR %{buildroot}%{_docdir}/%{name} __docs
rm -rf %{buildroot}%{_docdir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12235 |21mr|chkauth-0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name chkauth
%define version 0.3
%define release 13
	
Summary: Script to change authentification method (local, NIS, LDAP)
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}-%{version}.tar.bz2
BuildArch: noarch
License: GPL
Group: System/Configuration/Boot and Init
Prefix: %{_prefix}
requires: perl >= 5.0

%description
Chkauth is a program to change the authentification method 
on a system. Chkauth always set the file method in first place, but 
you can only select the second authentification method this way. 

Three kind of authentification are accepted : local (file), NIS (yp) 
and LDAP. 

%prep
%setup

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_mandir}/man8/
mkdir -p $RPM_BUILD_ROOT/%{_sbindir}
install chkauth $RPM_BUILD_ROOT/%{_sbindir}
install chkauth.8 $RPM_BUILD_ROOT/%{_mandir}/man8/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_sbindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12236 |21mr|chkconfig-1.13-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git_url git://git.fedorahosted.org/chkconfig.git
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	A system tool for maintaining the /etc/rc*.d hierarchy
Name:		chkconfig
Version:	1.13
Release:	6
License:	GPL
Group:		System/Configuration/Boot and Init
Url:		https://github.com/fedora-sysv/chkconfig
Source0:	https://github.com/fedora-sysv/chkconfig/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	chkconfig.po
Patch0001:  0001-Fix-etc-rc.d-path-for-ROSA.patch
BuildRequires:	gettext
BuildRequires:	newt-devel
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(slang)
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
# explicit file provides
Provides:	/sbin/chkconfig
Provides:	%{_sbindir}/chkconfig
Provides:	%{_sbindir}/alternatives
Provides:	%{_sbindir}/update-alternatives
Provides:	update-alternatives = 1.18.4-2
Obsoletes:	update-alternatives < 1.18.4-2
Requires:	/bin/sh
Requires:	coreutils
Requires:	util-linux

%description
Chkconfig is a basic system utility.  It updates and queries runlevel
information for system services.  Chkconfig manipulates the numerous
symbolic links in /etc/rc*.d, to relieve system administrators of some 
of the drudgery of manually editing the symbolic links.

%package -n ntsysv
Summary:	A system tool for maintaining the /etc/rc*.d hierarchy
Group:		System/Configuration/Boot and Init
Requires:	chkconfig = %{EVRD}

%description -n ntsysv
ntsysv updates and queries runlevel information for system services.
ntsysv relieves system administrators of having to directly manipulate
the numerous symbolic links in /etc/rc*.d.

%prep
%autosetup -p1
# (tpg) https://issues.openmandriva.org/show_bug.cgi?id=2477
# https://github.com/fedora-sysv/chkconfig/issues/23
sed -i -e 's#/usr/lib/systemd#/lib/systemd#g' Makefile

%build
%make_build CC=%{__cc} RPM_OPT_FLAGS="%{optflags}" LIBMHACK=$LIBMHACK LDFLAGS="%{ldflags}"

%install
%make_install MANDIR=%{_mandir} BINDIR=%{_sbindir}

mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d
for n in 0 1 2 3 4 5 6; do
    mkdir -p %{buildroot}%{_sysconfdir}/rc.d/rc${n}.d
done

cd %{buildroot}%{_sysconfdir}/
ln -s rc.d/init.d init.d
# Compatibility with Fedora/RH locations
# and 3rd party scripts that rely on them
for n in 0 1 2 3 4 5 6; do
    ln -s rc.d/rc${n}.d rc${n}.d
done
cd -

# corrected indonesian language code (it has changed from 'in' to 'id')
mkdir -p %{buildroot}%{_datadir}/locale/id/LC_MESSAGES
mv %{buildroot}%{_datadir}/locale/{in,in_ID}/LC_MESSAGES/* \
    %{buildroot}%{_datadir}/locale/id/LC_MESSAGES || :
rm -rf %{buildroot}%{_datadir}/locale/{in,in_ID} || :

mkdir -p %{buildroot}%{_datadir}/locale/zh_TW.Big5/LC_MESSAGES
msgfmt %{SOURCE1} -o %{buildroot}%{_datadir}/locale/zh_TW.Big5/LC_MESSAGES/chkconfig.mo

# Geoff 20020623 -- zh is incorrect for locale and there's nothing in it anyway
rm -fr %{buildroot}%{_datadir}/locale/zh

# Create alternatives directories
mkdir -p %{buildroot}%{_localstatedir}/log
mkdir -p %{buildroot}%{_sysconfdir}/alternatives
touch %{buildroot}%{_localstatedir}/log/update-alternatives.log

# (tpg) compat symlink
mkdir -p %{buildroot}/sbin
ln -sf %{_sbindir}/chkconfig %{buildroot}/sbin/chkconfig

%find_lang %{name}

%pretrans -p <lua>
path = "%{_localstatedir}/lib/alternatives"
path2 = "%{_localstatedir}/lib/rpm/alternatives"
st = posix.stat(path)
st2 = posix.stat(path2)
if st and st.type == "link" and st2 and st2.type == "directory" then
  os.remove(path)
  os.rename(path2, path)
  posix.symlink(path, path2)
end


%files -f %{name}.lang
/sbin/chkconfig
%{_sbindir}/chkconfig
/lib/systemd/systemd-sysv-install
%{_mandir}/man8/chkconfig.8*
%dir %{_sysconfdir}/rc.d
# compat symlinks
%{_sysconfdir}/rc[0123456].d
%dir %{_sysconfdir}/rc.d/init.d
%dir %{_sysconfdir}/rc.d/rc*
%{_sysconfdir}/init.d
%{_sbindir}/alternatives
%{_sbindir}/update-alternatives
%{_mandir}/man8/alternatives.8*
%{_mandir}/man8/update-alternatives.8*
%dir %{_localstatedir}/lib/alternatives
%dir %{_sysconfdir}/alternatives
%ghost %{_localstatedir}/log/update-alternatives.log

%files -n ntsysv
%{_sbindir}/ntsysv
%{_mandir}/man8/ntsysv.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12237 |21mr|chmlib-0.40-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname chm %{major}
%define devname %mklibname chm -d
%define sdevname %mklibname chm -d -s

Summary:	A library for dealing with Microsoft ITSS/CHM format files
Name:		chmlib
Version:	0.40
Release:	13
License:	LGPLv2.1
Group:		System/Libraries
Url:		http://www.jedrea.com/chmlib/
Source0:	http://www.jedrea.com/chmlib/%{name}-%{version}.tar.bz2
Patch1:		chmlib-0.37-morearchs.patch
Provides:	libchm-bin

%description
CHMLIB is a library for dealing with Microsoft ITSS/CHM format files.
Right now, it is a very simple library, but sufficient for dealing with
all of the .chm files I've come across. Due to the fairly well-designed
indexing built into this particular file format, even a small library
is able to gain reasonably good performance indexing into ITSS archives.

Code runs on Linux, Windows, Solaris, and Irix.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for dealing with Microsoft ITSS/CHM format files
Group:		System/Libraries
Provides:	libchm = %{EVRD}

%description -n %{libname}
CHMLIB is a library for dealing with Microsoft ITSS/CHM format files.
Right now, it is a very simple library, but sufficient for dealing with
all of the .chm files I've come across. Due to the fairly well-designed
indexing built into this particular file format, even a small library
is able to gain reasonably good performance indexing into ITSS archives.

%files -n %{libname}
%{_libdir}/libchm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A library for dealing with Microsoft ITSS/CHM format files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libchm-devel = %{EVRD}

%description -n %{devname}
CHMLIB is a library for dealing with Microsoft ITSS/CHM format files.
Right now, it is a very simple library, but sufficient for dealing with
all of the .chm files I've come across. Due to the fairly well-designed
indexing built into this particular file format, even a small library
is able to gain reasonably good performance indexing into ITSS archives.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	A library for dealing with Microsoft ITSS/CHM format files
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Provides:	libchm-static-devel = %{EVRD}

%description -n %{sdevname}
CHMLIB is a library for dealing with Microsoft ITSS/CHM format files.
Right now, it is a very simple library, but sufficient for dealing with
all of the .chm files I've come across. Due to the fairly well-designed
indexing built into this particular file format, even a small library
is able to gain reasonably good performance indexing into ITSS archives.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch1 -p0 -b .more_archs

%build
%configure \
	--enable-static \
	--enable-examples

export CFLAGS="%{optflags} -DCHM_MT -DCHM_USE_PREAD -DCHM_USE_IO64 -L.libs"
export LDFLAGS="%{ldflags} -lpthread"

%make

%install
install -d %{buildroot}{%{_libdir},%{_includedir}}
%makeinstall_std
install -m644 src/.libs/libchm.a %{buildroot}%{_libdir}/libchm.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12238 |21mr|choqok-1.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname choqok %{major}
%define libgnusocialapihelper %mklibname gnusocialapihelper %{major}
%define libtwitterapihelper %mklibname twitterapihelper %{major}
%define devname %mklibname choqok -d

Summary:	KDE Micro-Blogging Client
Name:		choqok
Version:	1.7.0
Release:	2
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://choqok.gnufolks.org/
Source0:	http://download.kde.org/stable/choqok/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		choqok-0.9.85-dbus-service-dir.patch
Patch1:		choqok-1.6.0-qoauth-qt5.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5attica-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5webkit-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	qoauth-qt5-devel
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5NetworkAuth)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(TelepathyQt5)

%description
Choqok is a Free/Open Source micro-blogging client for K Desktop 

%files -f %{name}.lang
%{_kde5_bindir}/choqok
%{_kde5_applicationsdir}/org.kde.choqok.desktop
%{_kde5_datadir}/choqok*
%{_kde5_datadir}/config.kcfg/*.kcfg
%{_kde5_iconsdir}/*/*/*/*
%{_kde5_notificationsdir}/choqok.notifyrc
%{_kde5_services}/choqok_*.desktop
%{_kde5_services}/konqchoqok.desktop
%{_kde5_services}/ServiceMenus/*.desktop
%{_kde5_servicetypes}/choqok*.desktop
%{_kde5_xmlguidir}/choqok*/*.rc
%{_kde5_xmlguidir}/konqchoqokplugin/konqchoqok.rc
%{_appdatadir}/org.kde.choqok.appdata.xml
%{_datadir}/dbus-1/services/org.kde.choqok.service
%{_qt5_plugindir}/choqok_*.so
%{_qt5_plugindir}/kcm_choqok_*.so
%{_qt5_plugindir}/kf5/parts/konqchoqokplugin.so
%{_qt5_plugindir}/kf5/purpose/purposeplugin.so

#-------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_kde5_libdir}/libchoqok.so.%{major}*

#-------------------------------------------------------------------

%package -n %{libgnusocialapihelper}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libgnusocialapihelper}
%{name} shared library.

%files -n %{libgnusocialapihelper}
%{_kde5_libdir}/libgnusocialapihelper.so.%{major}*

#-------------------------------------------------------------------

%package -n %{libtwitterapihelper}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libtwitterapihelper}
%{name} shared library.

%files -n %{libtwitterapihelper}
%{_kde5_libdir}/libtwitterapihelper.so.%{major}*

#-------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Requires:	%{libgnusocialapihelper} = %{EVRD}
Requires:	%{libtwitterapihelper} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.6.0
Obsoletes:	%{name}-devel < 1.6.0

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_includedir}/choqok
%{_kde5_libdir}/libchoqok.so
%{_kde5_libdir}/libgnusocialapihelper.so
%{_kde5_libdir}/libtwitterapihelper.so
%{_datadir}/cmake/modules/FindChoqok.cmake

#--------------------------------------------------------------------
%prep
%setup -q
%patch0 -p0
%patch1 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12239 |21mr|chromaprint-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Library and tool implementing the AcoustID fingerprinting
Name:		chromaprint
Version:	1.5.1
Release:	1
License:	LGPLv2+ and MIT
Group:		Sound
Url:			https://github.com/acoustid/chromaprint
Source0:	https://github.com/acoustid/chromaprint/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 3.3
BuildRequires:	doxygen
BuildRequires:	ffmpeg-devel
BuildRequires:	fftw-devel >= 3
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavresample)
BuildRequires:	pkgconfig(libswresample)

%description
Chromaprint library is the core component of the AcoustID project. It's a
client-side library that implements a custom algorithm for extracting
fingerprints from raw audio sources. The library exposes a simple C API.
This package contains a sample tool based on %{libname}.

%files
%doc LICENSE.md
%{_bindir}/fpcalc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library implementing the AcoustID fingerprinting
Group:		System/Libraries

%description -n %{libname}
Chromaprint library is the core component of the AcoustID project. It's a 
client-side library that implements a custom algorithm for extracting 
fingerprints from raw audio sources. The library exposes a simple C API.


%files -n %{libname}
%doc LICENSE.md NEWS.txt README.md
%{_libdir}/libchromaprint.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name} 
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files docs needed to develop applications which will
use %{libname}. The documentation for the C API exposed by the main 
library can be found in the main header file and in the generated docs.

%files -n %{devname}
%doc LICENSE.md
%doc build/doc/html/*
%{_includedir}/%{name}.h
%{_libdir}/libchromaprint.so
%{_libdir}/pkgconfig/libchromaprint.pc

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake	-DBUILD_TOOLS=ON \
		-DBUILD_TESTS=OFF \
		-DAUDIO_PROCESSOR_LIB="avresample"
%make
# Build also library documentation for developers
%make docs


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12240 |21mr|chromium-browser-stable-129.0.6668.58-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This spec file is based on other spec files, ebuilds, PKGBUILDs available from
#  [1] https://build.opensuse.org/package/show/openSUSE:Factory/chromium
#  [2] https://copr.fedoraproject.org/coprs/churchyard/chromium-russianfedora-tested/
#  [3] https://www.archlinux.org/packages/extra/x86_64/chromium/
#  [4] https://src.fedoraproject.org/rpms/chromium/
#  [5] https://gitweb.gentoo.org/repo/gentoo.git/tree/www-client/chromium/
#  [6] https://packages.altlinux.org/ru/sisyphus/srpms/chromium
#  [7] https://packages.altlinux.org/ru/sisyphus/specfiles/chromium-gost
#  [8] https://github.com/saiarcot895/chromium-ubuntu-build

# Get the version number of latest stable version
# $ curl 'https://chromiumdash.appspot.com/fetch_releases?channel=Stable&platform=Linux&num=1&offset=0' | jq -r '.[] | .version'
# (https://chromiumdash.appspot.com/releases?platform=Linux)
%ifarch %{x86_64} %ix86
%bcond_without gost
%else
%bcond_with gost
%endif

# Gold linker
# http://a3f.at/lists/linkers
%bcond_with gold

# Linker is out of memory on 32 bit with -g2
# XXX debugsource package is empty, probably there are odd compiler flags
# TODO: fix building with debuginfo
%bcond_with debug

%if %{without debug}
%define debug_package %{nil}
%endif

# eol 'fix' corrupts some .bin
%define dont_fix_eol 1
%define _disable_lto 1

%define crname chromium-browser
%define _crdir %{_libdir}/%{crname}
# Yandex Browser, Opera and other proprietary forks of Chromium look for libffmpeg.so in /usr/lib/chromium-browser,
# while we use /usr/lib64/chromium-browser on x86_64
%define _crdir_compat %{_prefix}/lib/%{crname}

%bcond_with api_keys
# Set up Google API keys, see http://www.chromium.org/developers/how-tos/api-keys
# Note: these are for Mageia use ONLY.
# For your own builds, please get your own set of keys.
%define google_api_key AIzaSyDhhIHB_kQZodiWr8yDAm8E3GwEyiXmuDU
%if %{with api_keys}
%define google_default_client_id 1039996407057-q599ngv7i6ni4sbkd2fsns30246r9s9v.apps.googleusercontent.com
%define google_default_client_secret mRHXPjlS4cLpp1beCiXoYbLZ
%else
%define google_default_client_id %{nil}
%define google_default_client_secret %{nil}
%endif

# GOST patches and sources
# Using commit hashes because upstream often puts tags long after making changes
# (they wait for builds to finish to make a new "release" with binary packages)
%define chromium_gost_commit 124a371049d7a087a24f25ee4c5ed51c897a157b
%define msspi_commit e91bd46306cc7044b2903cd07b788c13c36481e3
%define _gostsourcedir %{_builddir}/chromium-gost

%define xcb_version 1.14.1

%if %{mdvver} <= 202115
%bcond_without alternative_llvm
%endif

%if %{with alternative_llvm}
%define llvm_ver 17
%define llvm_prefix /opt/llvm%{llvm_ver}
%else
%define llvm_prefix %{_prefix}
%endif

%global clang_version %(%{llvm_prefix}/bin/clang --version | sed -n 's/clang version //p' | cut -d. -f1)
%global clang_base_path %(%{llvm_prefix}/bin/clang --version | grep InstalledDir | cut -d' ' -f2 | sed 's#/bin##')

%global rust_prefix %(echo /opt/rust-*)
%global rustc_version %(%{rust_prefix}/bin/rustc -V)

%global bindgen_ver 0.69.4
%global bindgen_prefix %(echo %{_builddir}/rust-*/target/release)

%bcond_with bundled_llvm
# Verbose logging during build
%bcond_with verbose

%global __requires_exclude (^devel\\(|.*\\.so\\()
# alternative syntax for rpm5
%define __noautoreq '^libffmpeg'
# Do not provide libEGL.so, libGLESv2.so
%global __provides_exclude_from ^%{_crdir}/.*\\.so.*$

%if %{mdvver} >= 202110
%define __python %{__python3}
%else
%define __python %{__python38}
%endif

# workaround rpmlint bugs (?)
%global _build_pkgcheck_set /bin/sh %{_sourcedir}/rpmlint-wrapper.sh %{_build_pkgcheck_set}

%define _default_patch_fuzz 12

%bcond_without use_qt
%bcond_without use_gtk
%bcond_without use_system_libffi
%bcond_with vulkan
%bcond_with use_system_freetype

Summary:	A fast web browser based on the Blink engine
Name:		chromium-browser-stable
Version:	129.0.6668.58
Release:	3
License:	BSD, LGPL
Group:		Networking/WWW
Url:		https://www.chromium.org/Home
Source0:	https://commondatastorage.googleapis.com/chromium-browser-official/chromium-%{version}.tar.xz
Source1:	chromium-wrapper
Source2:	%{crname}.desktop
Source10:	%{name}.rpmlintrc
Source11:	rpmlint-wrapper.sh
Source12:	https://github.com/rust-lang/rust-bindgen/archive/refs/tags/v%{bindgen_ver}.tar.gz?/rust-bindgen-%{bindgen_ver}.tar.gz
Source13:	vendor-bindgen-%{bindgen_ver}.tar.xz
# Bring xcb-proto with us (might need more than python on EPEL?)
Source20:	https://www.x.org/releases/individual/proto/xcb-proto-%{xcb_version}.tar.xz
# From https://github.com/systemd/systemd/blob/main/src/basic/missing_fcntl.h
# to fix building on rosa2016.1 where glibc does not have /usr/include/bits/fcntl-linux.h
Source21:	missing_fcntl.h
Source30:	master_preferences.json
Source31:	default_bookmarks.html
Source32:	chromium.default
Source33:	chromium-default-config.json
# Graphics by Dmitry Petrov
Source34:	rosa-logo-for-new-tab-page.svg
Source35:	22x22_chromium.svg
Source36:	48x48_chromium.svg
Source100:	icons-2012.tar.bz2
Source997:	depot_tools.tar.xz

# segfaults on x86_32, but building with debuginfo is not possible, x86_32 has near to no users
ExclusiveArch:	%{x86_64} aarch64

# GOST
Source1101:	https://github.com/deemru/chromium-gost/archive/%{chromium_gost_commit}.tar.gz?/chromium-gost-%{chromium_gost_commit}.tar.gz
Source1102:	https://github.com/deemru/msspi/archive/%{msspi_commit}.tar.gz?/msspi-%{msspi_commit}.tar.gz
Patch4:		chromium-30.0.1599.66-master-prefs-path.patch
# (cjw) fix gn bootstrapping with gcc
Patch190:	chromium-69-gn-bootstrap.patch
# Add "ROSA" to the user agent string
Patch627:	chromium-68.0.3440.106-rosa-user-agent.patch
Patch647:	ALT-allow-to-override-clang-through-env-variables.patch
# XXX This patch is not enough to fully fix debuginfo and debugsource subpackages
Patch648:	fix-debugsource.patch
# chrome://new-tab-page-third-party -> chrome://new-tab-page
Patch651:	0001-Functional-new-tab-page-with-non-Google-search-engin.patch
Patch652:	0002-Yandex-as-default-search-engine.patch
Patch653:	0003-Remove-voice-search-button.patch
Patch654:	0004-Hide-sync-with-Google.patch
# reported to upstream: https://crbug.com/1335359
Patch655:	0005-Adjust-sizes-in-new-tab-page-for-Russian-text.patch
# Block odd interaction with Google servers, probably including loading promo Google logos
# (e.g. an LGBT-colored one, https://clck.ru/niFdJ)
# https://github.com/Eloston/ungoogled-chromium/blob/master/patches/core/ungoogled-chromium/block-requests.patch
Patch656:	block-requests.patch
# From Arch Linux, fix includes
Patch657:	angle-wayland-include-protocol.patch
# system llvm rosa 202310
Patch658:	clang-17-remove-flags.patch
Patch659:	chromium-vaapi.patch
# https://chromium-review.googlesource.com/c/chromium/src/+/4883576
Patch660:	chromium-119-revert-don_t-redefine-ATSPI-version-macros.patch
Patch662:	libclang-17.patch
Patch663:	new-tab-no-single-row.patch
# use system curl
Patch664:	chromium-64-system-curl.patch
# use system zlib
Patch665:	chromium-system-zlib.patch
Patch666:	zlib.patch
BuildRequires:	bison
%if %{with alternative_llvm}
BuildRequires:	llvm%{llvm_ver}
%else
BuildRequires:	llvm-devel
BuildRequires:	clang
BuildRequires:	compiler-rt
%endif
%if %{mdvver} == 201610
# for gn, not chromium itself
BuildRequires:	stdc++-gcc10-devel
%endif
# gn needs these
BuildRequires:	flex
%if %{with bundled_llvm}
BuildRequires:	cmake
BuildRequires:	git
%endif
BuildRequires:	gperf
BuildRequires:	gyp
BuildRequires:	ninja
# nodejs 10 in rosa2016.1 is too old
%if %{mdvver} >= 201905
BuildRequires:	nodejs
%else
BuildRequires:	nodejs14
%endif
BuildRequires:	rust-nightly
BuildRequires:	util-linux
BuildRequires:	jq
BuildRequires:	yasm
BuildRequires:	atomic-devel
BuildRequires:	bzip2-devel
BuildRequires:	cap-devel
BuildRequires:	cups-devel
# %{_bindir}/eu-strip
BuildRequires:	elfutils
BuildRequires:	elfutils-devel
BuildRequires:	multiarch-utils
BuildRequires:	jpeg-devel
BuildRequires:	pam-devel
%if %{mdvver} >= 202110
BuildRequires:	python3
%else
BuildRequires:	python38
%endif
BuildRequires:	snappy-devel
BuildRequires:	speech-dispatcher-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(dbus-glib-1)
%if %rpm4
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(krb5-gssapi)
%endif
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fontconfig)
%if %{with use_system_freetype}
BuildRequires:	pkgconfig(freetype2)
%endif
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
%if %{mdvver} >= 201910
# Upstream Chromium is comatible with 0.2, we patch for 0.3
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libspa-0.2)
%endif
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libevent)
# https://bugs.chromium.org/p/dawn/issues/detail?id=1441
BuildRequires:	git-core
# Qt5
%if %{with use_qt}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif
%if %{with use_system_libffi}
BuildRequires:  pkgconfig(libffi)
BuildRequires:  %{_lib}ffi-static-devel
%endif

Requires:	chromium-codecs = %{EVRD}

Provides:	chromium-browser = %{EVRD}
Provides:	chromium = %{EVRD}

%if %{mdvver} <= 201610
Conflicts:	chromium-widevinecdm-plugin < 54
Obsoletes:	chromium-widevinecdm-plugin < 54
# There was a dummy empty package chromium-browser
# which depended from chromium-browser-stable and nothing more.
# We decided to remove that package.
# chromium-browser SUBpackage had Epoch=1
Obsoletes:	%{crname} < 1:%{version}-%{release}
Provides:	%{crname} = 1:%{version}-%{release}
Obsoletes:	chromium-gost-lib < 78.0.3904.70
%endif

%if %{with gost}
Provides:	chromium-gost-lib = %{EVRD}
%endif

%description
Chromium is a browser that combines a minimal design with sophisticated
technology to make the web faster, safer, and easier.

This is the stable channel Chromium browser. It offers a rock solid
browser which is updated with features and fixes once they have been
thoroughly tested.
%if %{with gost}
chromium-gost patches are integrated, this Chromium supports GOST TLS
if proprietary CryptoPro is installed.
%endif

%files
%config %{_sysconfdir}/%{crname}
%config %{_sysconfdir}/default/%{crname}
%{_bindir}/%{crname}
%dir %{_crdir}
%dir %{_crdir}/default_apps
%{_crdir}/chromium-wrapper
%{_crdir}/chromium-default-config.json
%{_crdir}/chrome
%{_crdir}/chrome-sandbox
%{_crdir}/chrome_crashpad_handler
%{_crdir}/icudtl.dat
%{_crdir}/locales
%{_crdir}/*.pak
%{_crdir}/resources
%{_crdir}/themes
%{_crdir}/libEGL.so
%{_crdir}/libGLESv2.so
%{_crdir}/libvk_swiftshader.so
%{_crdir}/vk_swiftshader_icd.json
%{_crdir}/libvulkan.so.1
%if %{with use_qt}
%{_crdir}/libqt5_shim.so
%endif
%{_datadir}/applications/*.desktop
%if %{mdvver} <= 201905
%{_iconsdir}/hicolor/*/apps/chromium*
%else
%{_iconsdir}/hicolor/22x22/apps/chromium-browser.svg
%{_iconsdir}/hicolor/48x48/apps/chromium-browser.svg
%{_iconsdir}/hicolor/scalable/apps/chromium-browser.svg
%endif

# This crap does not work with rpm4 because it uses good locking of RPM DB
%if %rpm5
%post
# Remove chromium-browser-install package if we have it installed
if [ "$(rpm -q %{crname}-install | wc -w)" = 1 ]
then
	rpm -e %{crname}-install
fi
%endif

#----------------------------------------------------------------------------

%package -n chromium-codecs
Summary:	FFmpeg library for supporting media codecs in Chromium-based browsers
# alike Ubuntu
Provides:	chromium-codecs-ffmpeg-extra = %{EVRD}
Provides:	chromium-codecs-ffmpeg = %{EVRD}

%description -n chromium-codecs
FFmpeg (libffmpeg.so) for Chromium-based browsers.
This package is built from Chromium's bundled FFmpeg
with proprietary codecs turned on.

%files -n chromium-codecs
%{_crdir}/libffmpeg.so
%if "%{_lib}" != "lib"
%{_crdir_compat}/libffmpeg.so
%endif

#----------------------------------------------------------------------------

%package -n chromedriver
Summary:	WebDriver for Google Chrome/Chromium
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description -n chromedriver
WebDriver is an open source tool for automated testing of webapps across many
browsers. It provides capabilities for navigating to web pages, user input,
JavaScript execution, and more. ChromeDriver is a standalone server which
implements WebDriver's wire protocol for Chromium. It is being developed by
members of the Chromium and WebDriver teams.

%files -n chromedriver
%doc LICENSE AUTHORS
%{_bindir}/chromedriver
%{_crdir}/chromedriver

#----------------------------------------------------------------------------

%prep
%setup -qn chromium-%{version} -a 997 -b 12

%if %{with gost}
rm -rf %{_gostsourcedir}
mkdir -p %{_gostsourcedir}
tar -C %{_gostsourcedir} --strip 1 -xf %{SOURCE1101}
sed -i \
	-e "s,^#include <../ssl/internal.h>,#include \"${PWD}/third_party/boringssl/src/ssl/internal.h\",g" \
	%{_gostsourcedir}/src/gostssl.cpp
tar -C %{_gostsourcedir}/src/msspi --strip 1 -xf %{SOURCE1102}
sed -i'' %{_gostsourcedir}/patch/chromium.patch \
	-e 's/ (Chromium GOST)//g' \
	-e 's/Chromium GOST/Chromium/g' \
	-e 's/Chromium-Gost/Chromium/g' \
	-e 's/"chromium-gost"/"chromium-browser"/g' \
	-e 's/"chromium-gost.desktop"/"chromium-browser.desktop"/g' \
	-e 's/(%s; Chromium GOST)/(%s)/' \
	--
# make backups before GOST patching
for i in \
	chrome/BUILD.gn \
	components/search_engines/prepopulated_engines.json \
	components/search_engines/search_terms_data.cc \
	components/search_engines/template_url_prepopulate_data.cc
do
	cp $i $i.saved
done
patch -p1 < %{_gostsourcedir}/patch/chromium.patch
( cd ./third_party/boringssl/src
patch -p1 < %{_gostsourcedir}/patch/boringssl.patch )
# rollback backups after GOST patching
for i in \
	chrome/BUILD.gn \
	components/search_engines/prepopulated_engines.json \
	components/search_engines/search_terms_data.cc \
	components/search_engines/template_url_prepopulate_data.cc
do
	mv $i.saved $i
done

### Почему откатываем chrome/BUILD.gn после патча ГОСТ?
# Он патчится так, что:
# 1) добавляется предустановка расширения КриптоПро ЭЦП Browser plug-in
# 2) добавляется предустановка предустанавливаемых в Google Chrome расширений,
#    а именно - скачиваемого с серверов Гугла расширения для Гугл Диска
# https://www.cryptopro.ru/products/cades/plugin - вот это расширение в п. 1
# В комплекте поставки КриптоПро уже идет это расширение, оно нормально ставится
# и работает из их пакета, поэтому нет смысла нам включать его в поставку браузера.
# Остальной касающийся расширения (grep iifchhfnnmpdbibifmljnfjhpififfog) код
# в патче ГОСТ работает так:
# если в /usr/lib64/chromium-browser/default_apps лежит iifchhfnnmpdbibifmljnfjhpififfog-1.2.13.crx,
# то это расширение устанавливается.

cp -f %{_gostsourcedir}/src/gostssl.cpp third_party/boringssl/gostssl.cpp
cp -f %{_gostsourcedir}/src/msspi/src/* third_party/boringssl
cp -f %{_gostsourcedir}/src/msspi/third_party/cprocsp/include/* third_party/boringssl/src/include
%endif

%autopatch -p1

%if %{mdvver} == 202310
%patch658 -p1 -R
#%%%patch662 -p1 -R

# ninja 1.12 error
sed -i -e "s|'-w', 'dupbuild=err',||g" tools/gn/bootstrap/bootstrap.py

# llvm18 rosa2023
sed -i -e "s|clang_version == \"17\"|clang_version == \"18\"|" build/config/clang/BUILD.gn
%endif

%if %{with alternative_llvm}
# search libs compiler-rt
sed -i -e "s|rosa-linux-gnu|unknown-linux-gnu|g" build/config/clang/BUILD.gn
%endif

# We patch Chromium to open chrome://new-tab-page even with non-Google search engines
# and to use Yandex by default instead of Google for most of our users,
# but that page contains a Google logo and a search bar which utilises the chosen
# search engine, e.g. Yandex. That is why Google logo is irrelevant there.
# Replace file to avoid patching, but check that it exists:
# something has changed if it does not.
# TODO: allow to switch this image via alternatives(8):
# XXX Chromium does not allow to load "local files" due to security reasons.
test -f ./chrome/browser/resources/new_tab_page/icons/google_logo.svg
install -m0644 %{SOURCE34} ./chrome/browser/resources/new_tab_page/icons/google_logo.svg

# fatal error: 'fuzzer/FuzzedDataProvider.h' file not found
# (Available in Clang10)
%if %{without bundled_llvm}
mkdir -p third_party/llvm-build/Release+Asserts/bin
pushd third_party/llvm-build/Release+Asserts/bin
ln -sf %{llvm_prefix}/bin/clang clang
ln -sf %{llvm_prefix}/bin/clang++ clang++
popd
%endif

# Hard code extra version
FILE=chrome/common/channel_info_posix.cc
sed -i.orig -e 's/getenv("CHROME_VERSION_EXTRA")/"%{vendor} %{rosa_release}, RPM %{name} %{EVRD}%{?with_gost: + GOST TLS via CryptoPro}"/' $FILE
cmp $FILE $FILE.orig && exit 1

# Use native page size on aarch64 ("if (current_cpu == "arm64")"), otherwise:
# /lib64/ld-linux-aarch64.so.1 ./bytecode_builtins_list_generator
# ./bytecode_builtins_list_generator: error while loading shared libraries:
# ./bytecode_builtins_list_generator: ELF load command alignment not page-aligned
sed -i \
	-e 's!-Wl,-z,max-page-size=4096!!g' \
	build/config/compiler/BUILD.gn

# base/rand_util_posix.cc:27:10: fatal error: 'sys/random.h' file not found
sed -i "s|sys/random.h|/usr/include/linux/random.h|g" base/rand_util_posix.cc

find . -type f -name '*.py' -exec sed -i -e 's,#!/usr/bin/env python$,#!%{__python},g' -e 's,#!/usr/bin/env python3$,#!%{__python},g' {} \;

mkdir -p local_bin
ln -s %{__python} local_bin/python
ln -s %{__python} local_bin/python3
export PATH="$PWD/local_bin:$PATH"

# setup node
rm -fr third_party/node/linux/node-linux-x64/bin/*
%if %{mdvver} >= 201905
ln -s /usr/bin/node third_party/node/linux/node-linux-x64/bin/node
%else
ln -s /opt/nodejs14/bin/node third_party/node/linux/node-linux-x64/bin/node
%endif

# (From Fedora) Get rid of the pre-built eu-strip binary, it is x86_64 and of mysterious origin
rm -rf buildtools/third_party/eu-strip/bin/eu-strip
ln -s %{_bindir}/eu-strip buildtools/third_party/eu-strip/bin/eu-strip

%build
# build rust-bindgen
pushd %{_builddir}/rust-*
tar xf %{SOURCE13} -C .
mkdir -p .cargo

cat > .cargo/config.toml << EOF

[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "vendor"
EOF

export PATH="%{rust_prefix}/bin:$PATH"
cargo --frozen b --release
popd

rm -fvr third_party/rust-toolchain/bin/bindgen
mv -v %{bindgen_prefix}/bindgen \
 third_party/rust-toolchain/bin \
&& \
rm -fr %{_builddir}/rust-*

# unpack a local copy of the xcb-proto bits
tar xf %{SOURCE20}
export PYTHONPATH="../../third_party/pyjson5/src:../../xcb-proto-%{xcb_version}"

# widevinecdmadapter
# Build error with widevinecdmadapter in 67.0.3396.62 (fixed)
%define widevine 1
%if 0%{widevine}
%define is_widevine true
%else
%define is_widevine false
%endif

%if %{with gold}
%define linker_params use_gold=true use_lld=false
%else
%define linker_params use_gold=false use_lld=true
%endif

%if %{with debug}
%define symbol_level 2
%else
%define symbol_level 0
%endif

%if %{without bundled_llvm}
%define clang_use_chrome_plugins clang_use_chrome_plugins=false
%else
%define clang_use_chrome_plugins clang_use_chrome_plugins=true
%endif

%if %{mdvver} == 201905
%define enable_remoting enable_remoting=false
%else
%define enable_remoting enable_remoting=true
%endif

%if %{mdvver} >= 201910
%define pipewire_enablement rtc_use_pipewire=true rtc_link_pipewire=true
%define wayland_enablement %{nil}
%else
%define pipewire_enablement rtc_use_pipewire=false
# Wayland parts regularly require adjusting for old glibc in rosa2016.1,
# but wayland is generally not widely used there
%define wayland_enablement enable_wayland_server=false ozone_platform_wayland=false
%endif

%ifarch aarch64
%define target_cpu target_cpu="arm64"
%else
%define target_cpu %{nil}
%endif

# Linking on 32 bit does not have enough memory for LTO
%ifarch %{ix86} 
%define use_thin_lto false
%else
%define use_thin_lto true
%endif

# v NO TABS IN HERE!
%define gn_config use_sysroot=false \
                  %{target_cpu} \
                  is_official_build=true \
                  symbol_level=%{symbol_level} \
                  use_thin_lto=%{use_thin_lto} \
                  strip_debug_info=false \
                  is_cfi=false \
                  system_libdir="%{_lib}" \
                  icu_use_data_file=true \
                  enable_nacl=false \
                  is_nacl_glibc=false \
                  %{linker_params} \
                  ffmpeg_branding="ChromeOS" \
                  proprietary_codecs=true \
                  is_component_ffmpeg=true \
                  enable_ffmpeg_video_decoders=true \
                  media_use_ffmpeg=true \
                  is_component_build=false \
                  use_system_libjpeg=true \
                  use_libjpeg_turbo=false \
                  enable_widevine=%{is_widevine} \
                  enable_js_type_check=false \
                  use_pulseaudio=true \
                  link_pulseaudio=true \
                  %{pipewire_enablement} \
                  %{wayland_enablement} \
                  use_gnome_keyring=false \
                  use_allocator="none" \
                  treat_warnings_as_errors=false \
                  fatal_linker_warnings=false \
                  use_libpci=true \
                  is_debug=false \
                  is_clang=true \
                  %{?clang_use_chrome_plugins} \
                  use_vaapi=true \
                  %{?enable_remoting} \
                  v8_use_external_startup_data=false \
                  google_api_key="%{google_api_key}" \
                  google_default_client_id="%{google_default_client_id}" \
                  google_default_client_secret="%{google_default_client_secret}" \
                  %{!?with_use_gtk:use_gtk=false}%{?with_use_gtk:use_gtk=true} \
                  %{?with_use_qt:use_qt=true}%{!?with_use_qt:use_qt=false} \
                  %{?with_use_system_libffi:use_system_libffi=true} \
                  %{!?with_use_system_libffi:use_system_libffi=false} \
                  %{?with_vulkan:angle_enable_vulkan=true} \
                  %{!?with_vulkan:angle_enable_vulkan=false} \
                  disable_fieldtrial_testing_config=true \
                  rust_sysroot_absolute="%{rust_prefix}" \
                  rustc_version="%{rustc_version}" \
                  clang_base_path="%{clang_base_path}" \
                  clang_version="%{clang_version}" \
                  use_ozone=true

#clang_base_path="//third_party/llvm-build/Release+Asserts" \

%{__python} build/linux/unbundle/replace_gn_files.py --system-libraries \
%if %{with use_system_freetype}
	freetype \
%endif
	fontconfig \
	libdrm
%{__python} third_party/libaddressinput/chromium/tools/update-strings.py

# (From Fedora)
# We don't need to cross compile while building on an aarch64 system.
sed -i 's|aarch64-linux-gnu-||g' build/toolchain/linux/BUILD.gn

# is_official_build triggers PGO with bundled profiles, but those profiles are for a specific
# version of clang/LLVM which does not match system one
%if %{without bundled_llvm}
sed -i -e 's,chrome_pgo_phase = 2,chrome_pgo_phase = 0,' build/config/compiler/pgo/pgo.gni
%endif

%if %{with bundled_llvm}
# Build clang from Google
# python2 tools/clang/scripts/build.py \
# 	--without-android \
# 	--without-fuchsia \
# 	--use-system-cmake \
# 	--gcc-toolchain=%{_prefix}
%{__python} tools/clang/scripts/update.py
%endif

# ALT-allow-to-override-clang-through-env-variables.patch makes gn read these variables
%if %{without bundled_llvm}

# let's do a hack, remove the version check in update.py and resume it again only empty
rm -vrf tools/clang/scripts/update.py && touch tools/clang/scripts/update.py
rm -vrf tools/rust/update_rust.py && touch tools/rust/update_rust.py

export CC=%{llvm_prefix}/bin/clang
export CXX=%{llvm_prefix}/bin/clang++
export AR=%{llvm_prefix}/bin/llvm-ar
export NM=%{llvm_prefix}/bin/llvm-nm
export AR=%{llvm_prefix}/bin/llvm-ar
export READELF=%{llvm_prefix}/bin/llvm-readelf

rm -fvr third_party/rust-toolchain/lib/libclang*
cp -fvr %{llvm_prefix}/%{_lib}/libclang*so* third_party/rust-toolchain/lib
sed -i -e 's,//third_party/llvm-build/Release+Asserts,%{llvm_prefix},g' build/config/clang/clang.gni
%else
%define clang_path "%{_builddir}/chromium-%{version}/third_party/llvm-build/Release+Asserts/bin/"
export CC="%{clang_path}clang"
export CXX="%{clang_path}clang++"
export AR="%{clang_path}llvm-ar"
export NM=nm
%endif

# Specify the path to the executable files for building with qt5
%if %{with use_qt}
export "PATH=%{_libdir}/qt5/bin:$PATH"
%endif

export PYTHON=%{__python}
%if %{mdvver} == 201610
# libstdc++ in rosa2016.1 is too old to build gn, there are 2 ways to solve this:
# 1) run bootstrap.py with --use-custom-libcxx, it will build and use bundled libc++
# 2) use libstdc++-gcc10 (https://forum.rosalinux.ru/viewtopic.php?t=10047&p=104560)
# Let's choose option 2.
LDFLAGS="-lstdc++-gcc10" \
CXXFLAGS="-nostdinc++ \
          -Wno-unused-command-line-argument \
          -I%{_includedir}/libstdc++-gcc10 \
          -I%{_includedir}/libstdc++-gcc10/%{_host} \
          -D__STDCPP_WANT_MATH_SPEC_FUNCS__=1 \
         " \
%endif
%{__python} tools/gn/bootstrap/bootstrap.py --gn-gen-args='%{gn_config}'

unset LDFLAGS CXXFLAGS

# Reduce memory usage by linker
%ifarch %{ix86}
%if %{with gold}
# https://lwn.net/Articles/797303/
export LDFLAGS="-Wl,--no-map-whole-files -Wl,--no-keep-memory -Wl,--no-keep-files-mapped -Wl,--no-mmap-output-file"
sed -i -e 's/--threads/--no-threads/' -e '/--thread-count=4/d' build/config/compiler/BUILD.gn
%else
# Try to reduce memory usage by ld.lld. Multi threads are enabled by default.
# XXX Will it reduce it? It is not really needed, lld does not get out of memory without it, at least without debuginfo.
export LDFLAGS="-Wl,--threads=1"
%endif
%endif

%if %{mdvver} < 201900
grep -IrlE '#include([[:space:]])*<fcntl.h>' | xargs sed -i'' -E -e 's,#include([[:space:]])*<fcntl.h>,#include "%{SOURCE21}",'
%endif

# The -Z option is used in nightly
export RUSTC_BOOTSTRAP=1

out/Release/gn gen --script-executable=%{__python} --args='%{gn_config}' out/Release

pushd out/Release
# widevinecdmadapter
ninja %{_smp_mflags} %{?_with_verbose:--verbose} chrome chrome_sandbox chromedriver libffmpeg.so
popd

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_crdir}/locales
mkdir -p %{buildroot}%{_crdir}/themes
install -m 755 %{SOURCE1} %{buildroot}%{_crdir}/chromium-wrapper
install -m 755 out/Release/chrome %{buildroot}%{_crdir}/
install -m 4755 out/Release/chrome_sandbox %{buildroot}%{_crdir}/chrome-sandbox
install -m 755 out/Release/chrome_crashpad_handler %{buildroot}%{_crdir}/chrome_crashpad_handler
cp -a out/Release/chromedriver %{buildroot}%{_crdir}/chromedriver
install -m 644 out/Release/*.pak %{buildroot}%{_crdir}/
install -m 644 out/Release/icudtl.dat %{buildroot}%{_crdir}/
install -m 644 out/Release/vk_swiftshader_icd.json %{buildroot}%{_crdir}/

install -m 0755 out/Release/libffmpeg.so %{buildroot}%{_crdir}/
%if "%{_lib}" != "lib"
mkdir -p %{buildroot}%{_crdir_compat}
ln -sr %{buildroot}%{_crdir}/libffmpeg.so %{buildroot}%{_crdir_compat}/libffmpeg.so
%endif

install -m 644 out/Release/locales/*.pak %{buildroot}%{_crdir}/locales/
install -m 644 out/Release/resources.pak %{buildroot}%{_crdir}/
ln -s %{_crdir}/chromium-wrapper %{buildroot}%{_bindir}/%{crname}
sed -i "s!@LIBDIR@!%{_libdir}!g" %{buildroot}%{_crdir}/chromium-wrapper
ln -s %{_crdir}/chromedriver %{buildroot}%{_bindir}/chromedriver

# This is ANGLE, not to be confused with the similarly named files under swiftshader/
install -m 644 out/Release/libEGL.so %{buildroot}%{_crdir}/
install -m 644 out/Release/libGLESv2.so %{buildroot}%{_crdir}/
install -m 644 out/Release/libvk_swiftshader.so %{buildroot}%{_crdir}/
install -m 644 out/Release/libvulkan.so.1 %{buildroot}%{_crdir}/
%if %{with use_qt}
install -m 644 out/Release/libqt5_shim.so %{buildroot}%{_crdir}/
%endif

# create global config file
mkdir -p %{buildroot}%{_sysconfdir}/default
install -m644 %{SOURCE32} %{buildroot}%{_sysconfdir}/default/%{crname}

find out/Release/resources/ -name "*.d" -exec rm {} \;
cp -r out/Release/resources %{buildroot}%{_crdir}

install -m 0644 %{SOURCE33} %{buildroot}%{_crdir}

# put *.crx here
mkdir -p %{buildroot}%{_crdir}/default_apps

# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications/

# keep old icons for old platforms
%if %{mdvver} <= 201905
mkdir -p %{buildroot}%{_iconsdir}/hicolor/
tar xjf %{SOURCE100} -C %{buildroot}%{_iconsdir}/hicolor/
%else
mkdir -p %{buildroot}%{_iconsdir}/hicolor/22x22/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
install -m0644 %{SOURCE35} %{buildroot}%{_iconsdir}/hicolor/22x22/apps/chromium-browser.svg
install -m0644 %{SOURCE36} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/chromium-browser.svg
install -m0644 %{SOURCE36} %{buildroot}%{_iconsdir}/hicolor/scalable/apps/chromium-browser.svg
%endif

mkdir -p %{buildroot}%{_sysconfdir}/%{crname}
install -m 0644 %{SOURCE30} %{buildroot}%{_sysconfdir}/%{crname}/
install -m 0644 %{SOURCE31} %{buildroot}%{_sysconfdir}/%{crname}/

find %{buildroot} -name "*.nexe" -exec strip {} \;

%check
# ensure JSON validity
[ "$(jq .browser.custom_chrome_frame %{buildroot}%{_crdir}/chromium-default-config.json)" = "true" ]


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12241 |21mr|chrony-4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global clknetsim_ver c4ccc2

%bcond_without debug
%bcond_without nts

Summary:	An NTP client/server
Name:		chrony
Version:	4.1
Release:	1
License:	GPLv2
Group:		System/Base
Url:		http://chrony.tuxfamily.org
Source0:	https://download.tuxfamily.org/chrony/chrony-%{version}.tar.gz
Source3:	chrony.dhclient
# simulator for test suite
Source10:	https://github.com/mlichvar/clknetsim/archive/%{clknetsim_ver}/clknetsim-%{clknetsim_ver}.tar.gz
Source20:	sysusers.chrony.conf
BuildRequires:	bison
BuildRequires:	pps-tools-devel
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libtomcrypt)
BuildRequires:	pkgconfig(nettle)
BuildRequires:	pkgconfig(nss)
Requires(pre):	/bin/systemd-sysusers

%description
A client/server for the Network Time Protocol, this program keeps your
computer's clock accurate. It was specially designed to support
systems with intermittent internet connections, but it also works well
in permanently connected environments. It can use also hardware reference
clocks, system real-time clock or manual input as time references.

%files
%license COPYING
%doc FAQ NEWS README
%config(noreplace) %{_sysconfdir}/chrony.conf
%config(noreplace) %verify(not md5 size mtime) %attr(640,root,chrony) %{_sysconfdir}/chrony.keys
%config(noreplace) %{_sysconfdir}/logrotate.d/chrony
%config(noreplace) %{_sysconfdir}/sysconfig/chronyd
%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
%{_bindir}/chronyc
%{_sbindir}/chronyd
%{_prefix}/lib/NetworkManager
/lib/systemd/ntp-units.d/*.list
%{_unitdir}/chrony*.service
%{_sysusersdir}/%{name}.conf
%{_mandir}/man[158]/%{name}*.[158]*
%dir %attr(750,chrony,chrony) /var/lib/chrony
%ghost %attr(-,chrony,chrony) /var/lib/chrony/drift
%ghost %attr(-,chrony,chrony) /var/lib/chrony/rtc
%dir %attr(750,chrony,chrony) /var/log/chrony

%pre
%sysusers_create_package %{name} %{SOURCE20}

%post
# workaround for late reload of unit file (rhbz#1614751)
systemctl daemon-reload
%systemd_post chronyd.service chrony-wait.service

%preun
%systemd_preun chronyd.service chrony-wait.service

%postun
%systemd_postun_with_restart chronyd.service

#------------------------------------------------------------------

# prep, build, install, check are based on Fedora spec

%prep
%autosetup -p1 -a 10

# review changes in packaged configuration files and scripts
LC_ALL=C md5sum -c <<-EOF | (! grep -v 'OK$')
        bc563c1bcf67b2da774bd8c2aef55a06  examples/chrony-wait.service
        2d01b94bc1a7b7fb70cbee831488d121  examples/chrony.conf.example2
        96999221eeef476bd49fe97b97503126  examples/chrony.keys.example
        6a3178c4670de7de393d9365e2793740  examples/chrony.logrotate
        d0984e98fe3ac9c4dc8d94d9b037f6ef  examples/chrony.nm-dispatcher.dhcp
        8f5a98fcb400a482d355b929d04b5518  examples/chrony.nm-dispatcher.onoffline
        32c34c995c59fd1c3ad1616d063ae4a0  examples/chronyd.service
EOF

# use example chrony.conf as the default config with some modifications:
# - enable leapsectz to get TAI-UTC offset and leap seconds from tzdata
# - enable keyfile
# - use NTP servers from DHCP
sed \
    -e 's|#\(leapsectz\)|\1|' \
    -e 's|#\(keyfile\)|\1|' \
    -e 's|^pool.*pool.ntp.org.*|&\n\n# Use NTP servers from DHCP.\nsourcedir /run/chrony-dhcp|' \
        < examples/chrony.conf.example2 > chrony.conf

touch -r examples/chrony.conf.example2 chrony.conf

# regenerate the file from getdate.y
rm -f getdate.c

mv clknetsim-%{clknetsim_ver}* test/simulation/clknetsim

%build
%configure \
%{?with_debug: --enable-debug} \
        --enable-ntp-signd \
        --enable-scfilter \
%{!?with_nts: --disable-nts} \
        --chronyrundir=/run/chrony \
        --docdir=%{_docdir} \
        --with-ntp-era=$(date -d '1970-01-01 00:00:00+00:00' +'%s') \
        --with-user=chrony \
        --with-hwclockfile=%{_sysconfdir}/adjtime \
        --with-pidfile=/run/chrony/chronyd.pid \
        --with-sendmail=%{_sbindir}/sendmail
%make_build

%install
%make_install

rm -rf %{buildroot}%{_docdir}

mkdir -p %{buildroot}%{_sysconfdir}/{sysconfig,logrotate.d}
mkdir -p %{buildroot}/var/{lib,log}/chrony
mkdir -p %{buildroot}%{_sysconfdir}/dhcp/dhclient.d
mkdir -p %{buildroot}%{_libexecdir}
mkdir -p %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d
mkdir -p %{buildroot}{%{_unitdir},/lib/systemd/ntp-units.d}

install -m 644 -p chrony.conf %{buildroot}%{_sysconfdir}/chrony.conf

install -m 640 -p examples/chrony.keys.example \
        %{buildroot}%{_sysconfdir}/chrony.keys
install -m 755 -p %{SOURCE3} \
        %{buildroot}%{_sysconfdir}/dhcp/dhclient.d/chrony.sh
install -m 644 -p examples/chrony.logrotate \
        %{buildroot}%{_sysconfdir}/logrotate.d/chrony

install -m 644 -p examples/chronyd.service \
        %{buildroot}%{_unitdir}/chronyd.service
install -m 755 -p examples/chrony.nm-dispatcher.onoffline \
        %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-onoffline
install -m 755 -p examples/chrony.nm-dispatcher.dhcp \
        %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/20-chrony-dhcp
install -m 644 -p examples/chrony-wait.service \
        %{buildroot}%{_unitdir}/chrony-wait.service

cat > %{buildroot}%{_sysconfdir}/sysconfig/chronyd <<EOF
# Command-line options for chronyd
OPTIONS=""
EOF

touch %{buildroot}/var/lib/chrony/{drift,rtc}

echo 'chronyd.service' > \
        %{buildroot}/lib/systemd/ntp-units.d/50-chronyd.list

mkdir -p %{buildroot}%{_sysusersdir}/
install -m 0644 %{SOURCE20} %{buildroot}%{_sysusersdir}/%{name}.conf

%check
# All these can fail in mock/ABF...
# set random seed to get deterministic results
#export CLKNETSIM_RANDOM_SEED=24505
#%%make_build -C test/simulation/clknetsim
#make quickcheck

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12242 |21mr|chrpath-0.16-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Dynamic library load path (rpath) alterer
Name: 		chrpath
Version: 	0.16
Release: 	5
Group: 		Development/Other
License: 	GPL
Url:		https://alioth.debian.org/projects/chrpath/
Source:		https://alioth.debian.org/frs/download.php/file/3979/%{name}-%{version}.tar.gz

%description
Chrpath allows you to modify the dynamic library load path (rpath) of
compiled programs.  Currently, only removing and modifying the rpath
is supported.


%prep
%setup -q

%build
%configure
%make

%install
%makeinstall 
rm -fr $RPM_BUILD_ROOT/usr/doc

%files 
%defattr (-, root, root,755)
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/chrpath
%{_mandir}/man1/chrpath.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12243 |21mr|cifs-utils-7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname %{name} -d

Summary:	Tools for Managing Linux CIFS Client Filesystems
Name:		cifs-utils
Version:	7.0
Release:	1
License:	GPLv3+
Group:		Networking/Other
Url:		http://www.samba.org/linux-cifs/cifs-utils/
# https://git.samba.org/?p=cifs-utils.git
Source0:	http://ftp.samba.org/pub/linux-cifs/cifs-utils/cifs-utils-%{version}.tar.bz2
Patch0:		cifs-utils-6.11-smb2-quota-python-shebang.patch
BuildRequires:	acl-devel
BuildRequires:	pam-devel
BuildRequires:	keyutils-devel
BuildRequires:	python3-docutils
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(wbclient)
BuildRequires:	samba-winbind
BuildRequires:	python3
BuildRequires:	python3-docutils
Requires:	keyutils
Recommends:	nss_wins
Recommends:	sudo
Requires(post,preun):	update-alternatives
Provides:	mount-cifs = %{version}

%description
Tools for Managing Linux CIFS Client Filesystems.

%files
%doc AUTHORS README doc/linux-cifs-client-guide.odt contrib/request-key.d/README.keyutils-1.5.5
%config(noreplace) %{_sysconfdir}/request-key.d/cifs.idmap.conf
%config(noreplace) %{_sysconfdir}/request-key.d/cifs.spnego.conf
%{_bindir}/cifscreds
%{_bindir}/getcifsacl
%{_bindir}/setcifsacl
%{_bindir}/smbinfo
%{_bindir}/smb2-quota
%dir %{_libdir}/cifs-utils
%{_libdir}/%{name}/idmapwb.so
%dir %{_sysconfdir}/cifs-utils/
/sbin/cifs.upcall
/sbin/mount.cifs
/sbin/cifs.idmap
/bin/mount.cifs
/sbin/mount.smb3
/bin/umount.cifs
%{_mandir}/man8/cifs.upcall.8.*
%{_mandir}/man8/mount.cifs.8.*
%{_mandir}/man8/mount.smb3.8*
%{_mandir}/man8/cifs.idmap.8.*
%{_mandir}/man8/idmapwb.8.*
%{_mandir}/man1/cifscreds.1*
%{_mandir}/man1/getcifsacl.1.*
%{_mandir}/man1/setcifsacl.1.*
%{_mandir}/man1/smbinfo.1.*
%{_mandir}/man1/smb2-quota.1*
%{_datadir}/bash-completion/completions/smbinfo

%post
/usr/sbin/alternatives --install %{_sysconfdir}/cifs-utils/idmap-plugin cifs-idmap-plugin %{_libdir}/%{name}/idmapwb.so 10

%preun
if [ $1 = 0 ]; then
	/usr/sbin/alternatives --remove cifs-idmap-plugin %{_libdir}/%{name}/idmapwb.so
fi

#----------------------------------------------------------------------------

%package -n pam_cifscreds
Summary:	PAM module to manage NTLM credentials in kernel keyring
Group:		System/Libraries

%description -n pam_cifscreds
The pam_cifscreds PAM module is a tool for automatically adding
credentials (username and password) for the purpose of establishing
sessions in multiuser mounts.

%files -n pam_cifscreds
%{_libdir}/security/pam_cifscreds.so
%{_mandir}/man8/pam_cifscreds.8.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for building plugins for cifs-utils
Group:		Development/Other
Provides:	cifs-utils-devel = %{EVRD}

%description -n %{devname}
The SMB/CIFS protocol is a standard file sharing protocol widely deployed
on Microsoft Windows machines. This package contains the header file
necessary for building ID mapping plugins for cifs-utils.

%files -n %{devname}
%doc AUTHORS
%{_includedir}/cifsidmap.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# versionize schebang, remove /usr/bin/env to make AutoReq put shebang-based requires
sed -i -E -e '1s,.*,#!%{__python3},g' smb2-quota smbinfo

%build
%serverbuild
rm -rf autom4te.cache
autoreconf -fi
%configure \
	--sbindir=/sbin \
	--enable-man

find . -type d -perm 0775 -exec chmod 0755 {} \;

%make

%install
%makeinstall_std
mkdir %{buildroot}/bin
ln -s ../sbin/mount.cifs %{buildroot}/bin/mount.cifs
# Hack for smb4k
ln -s umount %{buildroot}/bin/umount.cifs

mkdir -p %{buildroot}%{_sysconfdir}/request-key.d
install -m 644 contrib/request-key.d/cifs.idmap.conf %{buildroot}%{_sysconfdir}/request-key.d
install -m 644 contrib/request-key.d/cifs.spnego.conf %{buildroot}%{_sysconfdir}/request-key.d
cp contrib/request-key.d/README contrib/request-key.d/README.keyutils-1.5.5

mkdir -p %{buildroot}%{_sysconfdir}/cifs-utils/
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
install -m0644 bash-completion/smbinfo %{buildroot}%{_datadir}/bash-completion/completions/smbinfo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12244 |21mr|cinnamon-desktop-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 3.0
%define major 4
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

%define cvc_api 1.0
%define cvc_major 0
%define libcvc %mklibname cvc %{cvc_major}
%define gircvc %mklibname cvc-gir %{cvc_api}
%define devcvc %mklibname cvc -d

Summary:	Shared code among cinnamon-session, nemo, etc
Name:		cinnamon-desktop
Version:	5.4.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://github.com/linuxmint/cinnamon-desktop
Source0:	https://github.com/linuxmint/cinnamon-desktop/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	x-cinnamon-mimeapps.list
# From Fedora
Patch0:		set_font_defaults.patch
BuildRequires:	cmake
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(accountsservice)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xkeyboard-config)

%description
The cinnamon-desktop package contains an internal library
(libcinnamondesktop) used to implement some portions of the CINNAMON
desktop, and also some data files and other shared components of the
CINNAMON user environment.

%files -f %{name}-%{api}.lang
%doc AUTHORS README COPYING COPYING.LIB MAINTAINERS
%{_datadir}/glib-2.0/schemas/org.cinnamon.*.xml
%{_datadir}/applications/x-cinnamon-mimeapps.list
%{_datadir}/libcinnamon-desktop/pnp.ids

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}

%files -n %{libname}
%{_libdir}/libcinnamon-desktop.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/CDesktopEnums-%{api}.typelib
%{_libdir}/girepository-1.0/CinnamonDesktop-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for %{name}
License:	LGPLv2+
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Libraries and header files for the CINNAMON-internal private library
libcinnamondesktop.

%files -n %{devname}
%{_includedir}/cinnamon-desktop/libcinnamon-desktop/
%{_libdir}/libcinnamon-desktop.so
%{_libdir}/pkgconfig/cinnamon-desktop.pc
%{_datadir}/gir-1.0/CDesktopEnums-%{api}.gir
%{_datadir}/gir-1.0/CinnamonDesktop-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libcvc}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libcvc}
Shared library for %{name}

%files -n %{libcvc}
%{_libdir}/libcvc.so.%{cvc_major}*

#----------------------------------------------------------------------------

%package -n %{gircvc}
Summary:	GObject introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libcvc} = %{EVRD}

%description -n %{gircvc}
GObject introspection interface library for %{name}.

%files -n %{gircvc}
%{_libdir}/girepository-1.0/Cvc-%{cvc_api}.typelib

#----------------------------------------------------------------------------

%package -n %{devcvc}
Summary:	Libraries and headers for %{name}
License:	LGPLv2+
Group:		Development/Other
Requires:	%{libcvc} = %{EVRD}
Requires:	%{gircvc} = %{EVRD}

%description -n %{devcvc}
Libraries and header files for the CINNAMON-internal private library
libcinnamondesktop.

%files -n %{devcvc}
%{_includedir}/cinnamon-desktop/libcvc/
%{_libdir}/libcvc.so
%{_libdir}/pkgconfig/cvc.pc
%{_datadir}/gir-1.0/Cvc-%{cvc_api}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%meson -Ddeprecation_warnings=false
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_datadir}/applications/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications/x-cinnamon-mimeapps.list

%find_lang %{name}-%{api} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12245 |21mr|cjson-1.7.15-0.gitb45f48.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit b45f48e600671feade0b6bd65d1c69de7899f2be
%define commit_short %(echo %{commit} | head -c6)

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# https://github.com/DaveGamble/cJSON/issues/739
%global optflags %{optflags} -Wno-error=strict-aliasing

Summary: Ultralightweight JSON parser in ANSI C
Name:    cjson
Version: 1.7.15
Release: 0.git%{commit_short}.2
License: MIT
Group:   System/Libraries
URL:     https://github.com/DaveGamble/cJSON
Source0: https://github.com/DaveGamble/cJSON/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

BuildRequires: cmake

%description
cJSON aims to be the dumbest possible parser that you can get your job done with.
It's a single file of C, and a single header file.

As a library, cJSON exists to take away as much legwork as it can, but not get in your way.

#---------------------------------------------

%package -n %{libname}
Summary:  %{summary}
Provides: %{name} = %{EVRD}

%description -n %{libname}
This package contains the cJSON runtime libraries.

%files -n %{libname}
%{_libdir}/lib%{name}*.so.%{major}*

#---------------------------------------------

%package -n %{devname}
Summary:  %{summary}
Requires: %{libname} = %{EVRD}
Provides: cJSON-devel = %{EVRD}
Provides: cjson-devel = %{EVRD}

%description -n %{devname}
This package contains the cJSON development headers and libraries.

%files -n %{devname}
%doc CHANGELOG.md README.md
%license LICENSE
%{_libdir}/lib%{name}*.so
%{_includedir}/%{name}
%{_libdir}/cmake/cJSON
%{_libdir}/pkgconfig/lib%{name}*

#---------------------------------------------

%prep
%autosetup -n cJSON-%{commit}

%build
%cmake \
	-DENABLE_CJSON_TEST=OFF \
	-DENABLE_CJSON_UTILS=ON

%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12246 |21mr|clamav-0.103.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 9
%define freshclam_major 2
%define libname %mklibname %{name} %{major}
%define libfreshclam %mklibname freshclam %{freshclam_major}
%define devname %mklibname %{name} -d

%define _disable_rebuild_configure 1
%define _disable_lto 1

%define milter 1
%{?_with_milter: %{expand: %%global milter 1}}
%{?_without_milter: %{expand: %%global milter 0}}

Summary:	An anti-virus utility for Unix
Name:		clamav
Version:	0.103.8
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://www.clamav.net
#Source1:	http://www.clamav.net/%%{name}-%%{version}.tar.gz.sig
# clamav-0.95+ bundles support for RAR v3 in "libclamav" without permission,
# from Eugene Roshal of RARlabs. There is also patent issues involved.
#
# https://bugzilla.redhat.com/show_bug.cgi?id=334371
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=312552
#
# Both Redhat and debian removes this code from the upstream tar ball
# and repackages it.
Source0:	http://www.clamav.net/downloads/production/%{name}-%{version}.tar.gz
Source1:	clamd-tmpfiles.conf
Source2:	clamav-clamd.service
Source3:	clamav-clamd.logrotate
Source4:	clamav-freshclam.service
Source5:	clamav-freshclam.logrotate
Source6:	clamav-milter.service
Source8:	clamav-milter.logrotate
# clamd service fails to start on cleam systems without these files
Source10:	http://database.clamav.net/main.cvd
Source11:	http://database.clamav.net/daily.cvd
Source12:	http://database.clamav.net/bytecode.cvd
Source13:	clamav.sysusers.conf
Source100:	clamav.rpmlintrc
Patch0:		clamav-rosa_conf.diff
Patch13:	clamav-0.98-umask.patch
BuildRequires:	bc
BuildRequires:	bzip2-devel
%if %{milter}
BuildRequires:	sendmail-devel
BuildRequires:	tcp_wrappers-devel
%endif
BuildRequires:	tommath-devel
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpcre) >= 8.38
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libmspack)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	libtool-devel

Requires(post,preun):	%{name}-db
Requires(post,preun):	%{libname} >= %{version}
Requires(pre,post,post,postun):	rpm-helper
Requires(post):	systemd

%description
Clam AntiVirus is an anti-virus toolkit for Unix. The main purpose of this
software is the integration with mail seversions (attachment scanning). The
package provides a flexible and scalable multi-threaded daemon, a command-line
scanner, and a tool for automatic updating via Internet. The programs are
based on a shared library distributed with the Clam AntiVirus package, which
you can use in your own software.

You can build %{name} with some conditional build switches; (ie. use with rpm
--rebuild): --with[out] milter	Build %{name}-milter (disabled)

%files
%doc COPYING README.md NEWS.md README.urpmi
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/clamd.conf*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/freshclam.conf*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/freshclam
%{_unitdir}/%{name}-freshclam.service
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf
%{_bindir}/clambc
%{_bindir}/clamconf
%{_bindir}/clamdscan
%{_bindir}/clamdtop
%{_sbindir}/clamonacc
%{_bindir}/clamscan
%{_bindir}/clamsubmit
%{_bindir}/freshclam
%{_bindir}/sigtool
%{_mandir}/man1/clambc.1*
%{_mandir}/man1/clamconf.1.*
%{_mandir}/man1/clamdscan.1*
%{_mandir}/man1/clamdtop.1*
%{_mandir}/man1/clamscan.1*
%{_mandir}/man1/clamsubmit.1*
%{_mandir}/man1/freshclam.1*
%{_mandir}/man1/sigtool.1*
%{_mandir}/man5/clamd.conf.5*
%{_mandir}/man5/freshclam.conf.5*
%{_unitdir}/%{name}-clamonacc.service
%{_mandir}/man8/clamonacc.8*
%if !%{milter}
%exclude %{_mandir}/man8/%{name}-milter.8*
%endif
%dir %attr(0755,%{name},%{name}) /var/lib/%{name}
%dir %attr(0775,%{name},%{name}) %{_var}/log/%{name}
%ghost %attr(0644,%{name},%{name}) %{_var}/log/%{name}/freshclam.log

#----------------------------------------------------------------------------

%package -n clamd
Summary:	The Clam AntiVirus Daemon
Group:		System/Servers
Requires:	%{name} = %{version}
Requires(post,preun):	%{name}-db
Requires(post,preun):	%{libname} = %{version}
Requires(pre,post):	rpm-helper

%description -n clamd
The Clam AntiVirus Daemon.

%files -n clamd
%doc COPYING README.md
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/clamd
%{_unitdir}/%{name}-clamd.service
%{_sbindir}/clamd
%{_mandir}/man8/clamd.8*
%ghost %attr(0644,%{name},%{name}) %{_var}/log/%{name}/clamd.log

#----------------------------------------------------------------------------

%if %{milter}
%package -n %{name}-milter
Summary:	The Clam AntiVirus milter Daemon
Group:		System/Servers
Requires:	%{name} = %{version}
Requires:	clamd = %{version}
Requires:	tcp_wrappers
Requires(post,preun):	%{name}-db
Requires(pre,post):	rpm-helper
Requires(post,preun):	%{libname} = %{version}

%description -n %{name}-milter
The Clam AntiVirus milter Daemon.

%files -n %{name}-milter
%doc COPYING README.md
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}-milter.conf*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-milter
%{_unitdir}/%{name}-milter.service
%{_sbindir}/%{name}-milter
%{_mandir}/man8/%{name}-milter.8*
%{_mandir}/man5/%{name}-milter.conf.5*
%ghost %attr(0644,%{name},%{name}) %{_var}/log/%{name}/%{name}-milter.log
%endif

#----------------------------------------------------------------------------

%package -n %{name}-db
Summary:	Virus database for %{name}
Group:		Databases
Requires:	%{name} = %{version}
Requires(pre,post):	rpm-helper

%description -n %{name}-db
The actual virus database for %{name}.

%files -n %{name}-db
%doc COPYING README.md
%dir %attr(0755,%{name},%{name}) /var/lib/%{name}
%config /var/lib/%{name}/*cvd
%dir %attr(0755,%{name},%{name}) /var/lib/%{name}/tmp

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared libraries for %{name}.

%files -n %{libname}
%doc COPYING README.md
%{_libdir}/*.so.%{major}*


#----------------------------------------------------------------------------

%package -n %{libfreshclam}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libfreshclam}
Shared libfreshclam libraries for %{name}.

%files -n %{libfreshclam}
%doc COPYING README.md
%{_libdir}/*.so.%{freshclam_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libfreshclam} = %{EVRD}
Provides:	%{name}-devel = %{version}
Obsoletes:	%{name}-devel < %{version}
%rename		%{_lib}clamav1-devel
%rename		%{_lib}clamav2-devel
%rename		%{_lib}clamav3-devel

%description -n %{devname}
This package contains the development library and header files for the 
%{name} library.

%files -n %{devname}
%doc COPYING README.md
%{_bindir}/%{name}-config
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libclamav.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# clean up
for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*` `find . -type d -name .svn`; do
	if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

# We can't ship libclamunrar (patent problems: see above)
# 1. Remove its sources from tarball
rm -rf libclamunrar
if [ -d libclamunrar ]; then
	echo "delete the libclamunrar directory and repackage the tar ball"
	exit 1
fi
# 2. Provide fake dir and build files
mkdir -p libclamunrar{,_iface}
touch libclamunrar/{Makefile.in,all,install}

# Prepare files for log rotation
mkdir -p ROSA
cp %{SOURCE3} ROSA/clamav-clamd.logrotate
cp %{SOURCE5} ROSA/clamav-freshclam.logrotate
cp %{SOURCE8} ROSA/clamav-milter.logrotate

%build
autoreconf -vfi
%serverbuild
export LDFLAGS="%{optflags} -lz"
export CFLAGS="$CFLAGS -I%{_includedir}/tommath"
# IPv6 check is buggy and does not work when there are no IPv6 interface on build machine
export have_cv_ipv6=yes
%configure \
	--localstatedir=/var/lib \
	--disable-%{name} \
	--with-user=%{name} \
	--with-group=%{name} \
	--with-dbdir=/var/lib/%{name} \
	--disable-rpath \
	--disable-unrar \
	--enable-clamdtop \
	--disable-llvm \
	--enable-id-check \
	--enable-clamuko \
	--enable-bigstack \
	--with-pcre \
	--with-zlib=%{_prefix} \
	--with-libbz2-prefix=%{_prefix} \
	--with-system-tommath \
	--with-system-libmspack \
%if %{milter}
	--enable-milter --with-tcpwrappers
%else
	--disable-milter --without-tcpwrappers
%endif

# anti rpath hack
perl -pi -e "s|^sys_lib_dlsearch_path_spec=.*|sys_lib_dlsearch_path_spec=\"/%{_lib} %{_libdir}\"|g" libtool
# hack
sed -i -e 's/ -shared / -Wl,-O1,--as-needed\0/g' libtool

%make_build

%install
%make_install

# Install the systemd unit+tempfiles
install -D -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}-clamd.service
install -D -p -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}-freshclam.service
%if %{milter}
install -D -p -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/%{name}-milter.service
%endif

# Install tmpfiles
install -D -p -m 644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -D -p -m 644 %{SOURCE13} %{buildroot}%{_sysusersdir}/%{name}.conf

# Install the logrotate stuff
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -m644 ROSA/%{name}-clamd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/clamd
install -m644 ROSA/%{name}-freshclam.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/freshclam
%if %{milter}
install -m644 ROSA/%{name}-milter.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-milter
%endif

# Install log files
install -d %{buildroot}%{_var}/log/%{name}
touch %{buildroot}%{_var}/log/%{name}/freshclam.log
touch %{buildroot}%{_var}/log/%{name}/clamd.log
%if %{milter}
touch %{buildroot}%{_var}/log/%{name}/%{name}-milter.log
%endif

# Install config files
install -m644 etc/clamd.conf.sample %{buildroot}%{_sysconfdir}/clamd.conf
install -m644 etc/freshclam.conf.sample %{buildroot}%{_sysconfdir}/freshclam.conf

# Install initial database files
install -D -m 0644 -p %{SOURCE10} %{buildroot}/var/lib/%{name}/main.cvd
install -D -m 0644 -p %{SOURCE11} %{buildroot}/var/lib/%{name}/daily.cvd
install -D -m 0644 -p %{SOURCE12} %{buildroot}/var/lib/%{name}/bytecode.cvd

# Fix TMPDIR
install -d %{buildroot}/var/lib/%{name}/tmp

cat > README.urpmi << EOF
clamav-0.95+ bundles support for RAR v3 in "libclamav" without permission,
from Eugene Roshal of RARlabs. There is also patent issues involved.
Therefore we have been forced to remove the offending code.
EOF

# Cleanup
rm -f %{buildroot}%{_libdir}/*.*a

# TODO: Evaluate using upstream's unit files
rm -f %{buildroot}%{_unitdir}/clamav-daemon.*

%pre
%sysusers_create_package %{name} %{SOURCE13}
%tmpfiles_create_package %{name} %{SOURCE1}

# Install clamd.sock
touch %{_var}/lib/clamav/clamd.sock
chown clamav:clamav %{_var}/lib/clamav/clamd.sock

if ! [ -z "`getent group amavis`" ]; then
	gpasswd -a %{name} amavis
fi

%post
%tmpfiles_create %{name}.conf
%create_ghostfile %{_var}/log/%{name}/freshclam.log %{name} %{name} 0644
%systemd_post clamav-freshclam.service
# (gvm) Force the signature db update, otherwise we ends up
# *without* virus signatures until the next reboot
# See also discussion in https://bugzilla.rosalinux.ru/show_bug.cgi?id=10077
systemctl restart clamav-freshclam.service || :

%preun
%systemd_preun clamav-freshclam.service

%pre -n clamd
%sysusers_create_package %{name} %{SOURCE13}
%tmpfiles_create_package %{name} %{SOURCE1}

%post -n clamd
%create_ghostfile %{_var}/log/%{name}/clamd.log %{name} %{name} 0644
%systemd_post %{name}-clamd.service

%preun -n clamd
%systemd_preun %{name}-clamd.service

%if %{milter}
%post -n %{name}-milter
%create_ghostfile %{_var}/log/%{name}/%{name}-milter.log %{name} %{name} 0644
%systemd_post %{name}-milter.service

%preun -n %{name}-milter
%systemd_preun %{name}-milter.service
%endif

%pre -n %{name}-db
%sysusers_create_package %{name} %{SOURCE13}

%post -n %{name}-db
# try to keep most uptodate database
for i in main daily; do
	if [ -f %{_var}/lib/%{name}/$i.cvd.rpmnew ]; then
		if [ %{_var}/lib/%{name}/$i.cvd.rpmnew -nt %{_var}/lib/%{name}/$i.cvd ]; then
			mv -f %{_var}/lib/%{name}/$i.cvd.rpmnew %{_var}/lib/%{name}/$i.cvd
		else
			rm -f %{_var}/lib/%{name}/$i.cvd.rpmnew
		fi
	fi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12247 |21mr|classloader-leak-test-framework-1.1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without tests

Name:		classloader-leak-test-framework
Version:	1.1.1
Release:	8
Summary:	Detection and verification of Java ClassLoader leaks
License:	ASL 2.0
URL:		https://github.com/mjiderhamn/classloader-leak-prevention/tree/master/%{name}
Source0:	https://github.com/mjiderhamn/classloader-leak-prevention/archive/%{name}-%{version}.tar.gz

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	maven-local
BuildRequires:	mvn(junit:junit)
BuildRequires:	mvn(org.apache.bcel:bcel)
%if %{with tests}
BuildRequires: mvn(javax.el:el-api)
BuildRequires: mvn(com.sun.faces:jsf-api)
BuildRequires: mvn(com.sun.faces:jsf-impl)
%endif

%description
Stand-alone test framework for detecting and/or verifying the existence or
non-existence of Java ClassLoader leaks. It is also possible to test leak
prevention mechanisms to confirm that the leak really is avoided. The framework
is an built upon JUnit.

%package javadoc
Summary:	Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n classloader-leak-prevention-%{name}-%{version}
rm -r classloader-leak-prevention
cp -r %{name}/* .

%build
%if %{with tests}
%mvn_build
%else
%mvn_build -f
%endif

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12248 |21mr|classmate-1.3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          classmate
Version:       1.3.1
Release:       7
Summary:       Java introspection library
License:       ASL 2.0
Url:           http://github.com/cowtowncoder/java-classmate/
Source0:       https://github.com/cowtowncoder/java-classmate/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml:oss-parent:pom:)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Library for introspecting types with full generic information
including resolving of field and method types.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n java-%{name}-%{name}-%{version}

find . -name "*.class" -delete
find . -name "*.jar" -delete

%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"

sed -i 's/\r//' src/main/resources/META-INF/LICENSE src/main/resources/META-INF/NOTICE
cp -p src/main/resources/META-INF/LICENSE .
cp -p src/main/resources/META-INF/NOTICE .

# this test fails junit.framework.AssertionFailedError: expected:<X> but was:<Y>
rm -r src/test/java/com/fasterxml/classmate/AnnotationsTest.java

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md VERSION.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12249 |21mr|classpathx-mail-1.1.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global jmailver 1.3.1
%global inetlibver 1.1.2

Name:           classpathx-mail
Version:        1.1.2
Release:        11
Summary:        GNU JavaMail(tm)

Group:          System/Libraries
# Classpath library exception
License:        GPLv2+ with exceptions
URL:            http://www.gnu.org/software/classpathx/
Source0:        http://ftp.gnu.org/gnu/classpathx/mail-%{version}.tar.gz
Source1:        http://ftp.gnu.org/gnu/classpath/inetlib-%{inetlibver}.tar.gz
Patch0:         %{name}-add-inetlib.patch
# see bz157685
Patch3:         %{name}-remove-inetlib.patch

BuildArch:      noarch
BuildRequires:  jpackage-utils >= 0:1.5
BuildRequires:  ant
BuildRequires:  perl
BuildRequires:  java-javadoc
BuildRequires:  java-1.8.0-openjdk-devel

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Requires(preun): chkconfig
Requires(post):  chkconfig
Provides:       javamail = 0:%{jmailver}

%description
GNU JavaMail(tm) is a free implementation of the JavaMail API.

%files
%defattr(-,root,root,-)
%doc AUTHORS ChangeLog COPYING README README.*
%dir %{_javadir}/classpathx-mail
%{_javadir}/classpathx-mail/mail-%{jmailver}-api.jar
%{_javadir}/classpathx-mail/mailapi.jar
%{_javadir}/classpathx-mail/mail-%{jmailver}-providers.jar
%{_javadir}/classpathx-mail/providers.jar
%{_javadir}/classpathx-mail/imap.jar
%{_javadir}/classpathx-mail/nntp.jar
%{_javadir}/classpathx-mail/pop3.jar
%{_javadir}/classpathx-mail/smtp.jar
# Monolithic jar
%{_javadir}/classpathx-mail-%{jmailver}-monolithic.jar
%ghost %{_javadir}/javamail.jar
#------------------------------------------------------------------
%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
Provides:       javamail-javadoc = 0:%{jmailver}
Requires:       jpackage-utils

%description    javadoc
%{summary}.

%files javadoc
%defattr(-,root,root,-)
%{_javadocdir}/%{name}-%{jmailver}
%{_javadocdir}/%{name}

#------------------------------------------------------------------
%prep
%setup -q -n mail-%{version}
%patch0
%patch3 -p0
rm -f libmail.so
gzip -dc %{SOURCE1} | tar -xf -
pushd inetlib-%{inetlibver}/source/gnu/inet
sed -i -e "s|public final Logger logger|public final static Logger logger|g" imap/IMAPConnection.java nntp/NNTPConnection.java pop3/POP3Connection.java smtp/SMTPConnection.java
popd

%build
# build inetlib
pushd inetlib-%{inetlibver}
  %configure 
  make
popd
mkdir classes
cp -r inetlib-%{inetlibver}/classes/gnu classes
# build mail
ant \
  -Dj2se.apidoc=%{_javadocdir}/java \
  dist javadoc

# build monolithic
mkdir monolithic
pushd monolithic
for jar in gnumail gnumail-providers ; do jar xf ../$jar.jar; done
rm -f META-INF/MANIFEST.MF
jar cf ../monolithic.jar *
popd
rm -Rf monolithic


%install
rm -rf %{buildroot}

install -dm 755 %{buildroot}%{_javadir}/classpathx-mail

# API
install -pm 644 gnumail.jar \
  %{buildroot}%{_javadir}/classpathx-mail/mail-%{jmailver}-api.jar
ln -s mail-%{jmailver}-api.jar \
  %{buildroot}%{_javadir}/classpathx-mail/mailapi.jar

# Providers
install -pm 644 gnumail-providers.jar \
  %{buildroot}%{_javadir}/classpathx-mail/mail-%{jmailver}-providers.jar
ln -s mail-%{jmailver}-providers.jar \
  %{buildroot}%{_javadir}/classpathx-mail/providers.jar
for prov in imap nntp pop3 smtp ; do
  ln -s mail-%{jmailver}-providers.jar \
    %{buildroot}%{_javadir}/classpathx-mail/$prov.jar
done

install -pm 644 monolithic.jar \
  %{buildroot}%{_javadir}/classpathx-mail-%{jmailver}-monolithic.jar
touch %{buildroot}%{_javadir}/javamail.jar # for %%ghost

install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{jmailver}
cp -pR docs/* %{buildroot}%{_javadocdir}/%{name}-%{jmailver}
ln -s %{name}-%{jmailver} %{buildroot}%{_javadocdir}/%{name} # ghost symlink

%clean
rm -rf %{buildroot}


%triggerpostun -- classpathx-mail-monolithic <= 0:1.1.1-1jpp
# Remove file from old monolithic subpackage
rm -f %{_javadir}/javamail.jar
# Recreate the link as update-alternatives could not do it
ln -s %{_sysconfdir}/alternatives/javamail %{_javadir}/javamail.jar

%post
%{_sbindir}/update-alternatives --install %{_javadir}/javamail.jar javamail %{_javadir}/classpathx-mail-1.3.1-monolithic.jar 010301

%preun
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove javamail %{_javadir}/classpathx-mail-1.3.1-monolithic.jar
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12250 |21mr|classworlds-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We want to build without maven
%define _without_maven 1

# If you don't want to build with maven,
# give rpmbuild option '--without maven'

%define with_maven %{!?_without_maven:1}%{?_without_maven:0}
%define without_maven %{?_without_maven:1}%{!?_without_maven:0}

%define classworlds_version   1.1

Name:           classworlds
Version:        %{classworlds_version}
Release:        8
Epoch:          0
Summary:        Classworlds Classloader Framework

Group:          Development/Java
License:        BSD
URL:            http://classworlds.codehaus.org/
# svn export svn://svn.classworlds.codehaus.org/classworlds/tags/CLASSWORLDS_1_1
# cd CLASSWORLDS_1_1
# tar cjf classworlds-1.1-CLASSWORLDS_1_1-src.tar.bz2 classworlds
# md5sum:  76be757e6d364eece0109a2c3fc303c9 
Source0:        %{name}-%{version}-CLASSWORLDS_1_1-src.tar.bz2
# This was generated by an upstream download of maven and hand-tuned
Source1:        %{name}-%{version}-build.xml

%if %{with_maven}
Patch0:         %{name}-%{version}-project_xml.patch
Patch1:         %{name}-%{version}-project_properties.patch
%endif


BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  java-devel
BuildRequires:  java-rpmbuild >= 0:1.6
BuildRequires:  ant >= 0:1.6
%if %{with_maven}
BuildRequires:  maven >= 0:1.1
BuildRequires:  saxon
BuildRequires:  saxon-scripts
%endif
BuildRequires:  junit
BuildRequires:  xerces-j2
BuildRequires:  xml-commons-jaxp-1.3-apis
Requires:  jpackage-utils
Requires:  xerces-j2
Requires:  xml-commons-jaxp-1.3-apis

%description
Classworlds is a framework for container developers 
who require complex manipulation of Java's ClassLoaders.
Java's native ClassLoader mechanims and classes can cause 
much headache and confusion for certain types of 
application developers. Projects which involve dynamic 
loading of components or otherwise represent a 'container' 
can benefit from the classloading control provided by 
classworlds.

%if %{with_maven}
%package        javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description    javadoc
%{summary}.

%package        manual
Summary:        Docs for %{name}
Group:          Development/Java

%description    manual
%{summary}.
%endif

%prep
# If you don''t want to build with maven,
# give rpmbuild option '--without maven'
%setup -q -n %{name}
for j in $(find ./lib -name "*.jar"); do
  rm $j
done
cp %{SOURCE1} build.xml

%if %{with_maven}
%patch0 -b .sav
%patch1 -b .sav
%endif

%build
%if %{with_maven}
pushd lib
ln -sf $(build-classpath xml-commons-jaxp-1.3-apis) xmlApis-2.0.2.jar
ln -sf $(build-classpath ant) jakarta-ant-1.5.jar
ln -sf $(build-classpath maven) maven.jar
popd
maven \
         -Dmaven.repo.remote=file:/usr/share/maven/repository \
         -Dmaven.home.local=$(pwd)/.maven jar javadoc xdoc:transform
%else
export CLASSPATH=target/classes
%{ant} -Dbuild.sysclasspath=only
%endif

%install
install -Dpm 644 target/%{name}-%{version}.jar \
  %{buildroot}%{_javadir}/%{name}-%{version}.jar
ln -s %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

%if %{with_maven}
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr target/docs/apidocs/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} $RPM_BUILD_ROOT%{_javadocdir}/%{name} # ghost symlink
rm -rf target/docs/apidocs
%endif

%if %{with_maven}
install -dm 755 %{buildroot}%{_docdir}/%{name}-%{version}
cp -pr target/docs/* %{buildroot}%{_docdir}/%{name}-%{version}
%endif

%files
%doc LICENSE.txt
%{_javadir}/*.jar

%if %{with_maven}
%files javadoc
%doc %{_javadocdir}/*

%files manual
%doc %{_docdir}/%{name}-%{version}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12251 |21mr|cldr-emoji-annotation-36.12.120191002_0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:       cldr-emoji-annotation
Version:    36.12.120191002_0
Release:    1
# Annotation files are in Unicode license
Summary:    Emoji annotation files in CLDR
Group:     System/Internationalization
License:    LGPLv2+ and Unicode
URL:        https://github.com/fujiwarat/cldr-emoji-annotation
Source0:    https://github.com/fujiwarat/cldr-emoji-annotation/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires: autoconf
BuildRequires: automake
BuildArch:  noarch

%description
This package provides the emoji annotation file by language in CLDR.

%files
%doc AUTHORS README
%{_datadir}/unicode/

#----------------------------------------------------------------------------

%package devel
Summary:    Files for development using cldr-annotations
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:   pkgconfig
BuildArch:  noarch

%description devel
This package contains the pkg-config files for development
when building programs that use cldr-annotations.

%files devel
%{_datadir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -v -i
%configure
make %{?_smp_mflags}


%install
make DESTDIR=%{buildroot} install INSTALL="install -p"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12252 |21mr|clearlooks-phenix-theme-7.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname clearlooks-phenix

Summary:	Clearlooks-Phenix theme
Name:		clearlooks-phenix-theme
Version:	7.0.1
Release:	4
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		https://github.com/jpfleury/clearlooks-phenix
Source0:	https://github.com/jpfleury/clearlooks-phenix/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		clearlooks-phenix-6.0.3-fix-nautilus-bg-image.patch
Patch1:		clearlooks-phenix-7.0.1-fix-font-weight.patch
Requires:	%{oname}-gtk2-theme
Requires:	%{oname}-gtk3-theme
Recommends:	dmz-cursor-theme-white
BuildArch:	noarch

%description
The Clearlooks-Phenix project aims at creating a GTK3 port of Clearlooks,
the default theme for Gnome 2. Style is also included for GTK2, Unity and
for Metacity, Openbox and Xfwm4 window managers.

%files
%defattr(644,root,root,755)
%doc COPYING README.md
%{_datadir}/themes/%{oname}/metacity-1/
%{_datadir}/themes/%{oname}/openbox-3/
%{_datadir}/themes/%{oname}/wallpapers/
%{_datadir}/themes/%{oname}/xfwm4/
%{_datadir}/themes/%{oname}/index.theme

#----------------------------------------------------------------------------

%package -n %{oname}-gtk2-theme
Summary:	Clearlooks-Phenix GTK2 theme
Group:		Graphical desktop/Other
Requires:	gtk-engines2
Requires:	gtk2-modules

%description -n %{oname}-gtk2-theme
Clearlooks-Phenix GTK2 theme.

%files -n %{oname}-gtk2-theme
%dir %{_datadir}/themes/%{oname}/gtk-2.0/
%{_datadir}/themes/%{oname}/gtk-2.0/*

#----------------------------------------------------------------------------

%package -n %{oname}-gtk3-theme
Summary:	Clearlooks-Phenix GTK3 theme
Group:		Graphical desktop/Other

%description -n %{oname}-gtk3-theme
Clearlooks-Phenix GTK3 theme.

%files -n %{oname}-gtk3-theme
%dir %{_datadir}/themes/%{oname}/gtk-3.0/
%{_datadir}/themes/%{oname}/gtk-3.0/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1

%build

%install
mkdir -p %{buildroot}%{_datadir}/themes/%{oname}/
for dir in gtk-2.0 gtk-3.0 metacity-1 openbox-3 wallpapers xfwm4; do
  cp -R $dir %{buildroot}%{_datadir}/themes/%{oname}/
done
install -Dpm 0644 index.theme %{buildroot}%{_datadir}/themes/%{oname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12253 |21mr|clementine-1.4.0-1.rc1.868.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################
# Hardcode PLF build
%bcond_with plf
######################
%if %{with plf}
# Make EVR of plf build higher than regular to allow update, needed with rpm5 mkrel
%define	extrarelsuffix plf
%endif

%define	gstapi 1.0
%define	oname Clementine

%define	gitcommit 868-g65319d495
%define	rc_rel %(echo %{gitcommit} |cut -d- -f1)

Summary:	A cross-platform music player based on Amarok 1.4
Name:		clementine
Version:	1.4.0
Release:	1.rc1.%{rc_rel}.1%{?extrarelsuffix}
License:	GPLv3+
Group:		Sound
Url:		https://www.clementine-player.org/
Source0:	https://github.com/clementine-player/Clementine/releases/download/%{version}rc1-%{gitcommit}/%{name}-%{version}rc1-%{gitcommit}.tar.xz
Source1:	%{oname}.conf
Source100:	%{name}.rpmlintrc
# Search albums at metal-archives.com (Encyclopaedia Metallum) from:
# - Now Playing widget (album art context menu) - current album
# - Playlist (selected songs context menu) - unique selected albums
Patch0:		clementine-1.4.0rc1-864-g0fab61278-metalarchives.patch
Patch1:		clementine-1.4.0rc1-864-g0fab61278-cmake-string.patch
# Localization issues
Patch2:		clementine-1.4.0rc1-864-g0fab61278-fix-l10n-issues.patch
Patch3:		clementine-1.4.0rc1-864-g0fab61278-desktop-initial-pref-add-play-folder.patch
# Remove default shortcuts because they steals focus when using GNOME
# https://github.com/clementine-player/Clementine/issues/6191
Patch6:		clementine-1.4.0-remove-default-shortcuts.patch
Patch7:		clementine-1.4.0rc1-804-g333203c97-fix-splitting-desktop-gnome.patch
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	kde5-macros
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel
BuildRequires:	fftw3-devel
BuildRequires:	gmock-devel
BuildRequires:	gtest-devel
BuildRequires:	liblastfm-qt5-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cryptopp)
BuildRequires:	pkgconfig(cryptopp)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-app-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-audio-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-base-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-tag-%{gstapi})
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libgpod-1.0)
BuildRequires:	pkgconfig(libmtp) >= 1.0
# Needed, but there is a copy in-tree
#BuildRequires:	pkgconfig(libmygpo-qt5)
# For Google Drive and Amazon Cloud integration
BuildRequires:	pkgconfig(libsparsehash)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(x11)
%if %{with plf}
BuildRequires:	pkgconfig(libspotify)
BuildRequires:	protobuf-static-devel
# libspotify not available on aarch64
ExcludeArch:	aarch64
%endif
Requires:	libprojectm-data
Requires:	gstreamer%{gstapi}-flac
Requires:	gstreamer%{gstapi}-plugins-ugly
Recommends:		gstreamer%{gstapi}-decoders-audio
Recommends:		gstreamer%{gstapi}-faac
Recommends:		gstreamer%{gstapi}-faad
Recommends:		gstreamer%{gstapi}-lame
# Needed to be able to mount ipod/iphone/ipad (not tested locally) but it's also pulling gvfs
# which is needed at least to mount mtp devices (tested locally)
Recommends:		gvfs-iphone

%description
Clementine is a modern music player and library organizer. Clementine is
a port of Amarok 1.4, with some features rewritten to take advantage of
Qt5.
Features:
	* Search and play your local music library.
	* Listen to internet radio from Last.fm, SomaFM and Magnatune.
	* Tabbed playlists, import and export M3U, XSPF, PLS and ASX.
	* Visualisations from projectM.
	* Transcode music into MP3, Ogg Vorbis, Ogg Speex, FLAC or AAC.
	* Edit tags on MP3 and OGG files, organize your music.
	* Download missing album cover art from Last.fm.
	* Remote control using a Wii Remote, MPRIS or the command-line.
	* Copy music to your iPod, iPhone, MTP or mass-storage USB player.
	* Queue manage.

%files
%doc Changelog README.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-tagreader
%config(noreplace) %{_sysconfdir}/%{oname}/%{oname}.conf
%{_datadir}/applications/org.clementine_player.Clementine.desktop
%{_datadir}/metainfo/org.clementine_player.Clementine.appdata.xml
%{_datadir}/%{name}/projectm-presets
%{_iconsdir}/hicolor/*/apps/org.clementine_player.Clementine.*
%{_kde5_services}/%{name}-*.protocol

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}rc1-%{gitcommit}

# Fix perms
find . -name "*.hpp" -o -name "*.h" -o -name ".cpp" |xargs chmod 0644


%build
%cmake_qt5
%make


%install
%makeinstall_std -C build

install -m 644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/%{oname}/%{oname}.conf

%if %{with plf}
# Ugly hack, not sure why those directory trees appear
rm -rf %{buildroot}/tmp/*
rm -rf %{buildroot}/build/spotify/*
rm -rf %{buildroot}/builddir/build/BUILD/*/build/spotify/*/blob
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12254 |21mr|clevis-18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automated decryption framework
Name:		clevis
Version:	18
Release:	3
License:	GPLv3+
Group:		Development/Other
Url:		https://github.com/latchset/%{name}
Source0:	https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1:	clevis.sysusers
Patch1:		0001-sss-use-BN_set_word-x-0-instead-of-BN_zero.patch
Patch2:		0002-systemd-account-for-unlocking-failures-in-clevis-luk.patch
Patch4:		0004-luks-explicitly-specify-pbkdf-iterations-to-cryptset.patch
Patch5:		0005-tang-dump-url-on-error-communication.patch
Patch6:		0006-feat-rename-the-test-pin-to-null-pin.patch
Patch7:		0007-avoid-clevis-invalid-msg.patch
Patch8:		0008-Improve-boot-performance-by-removing-key-check.patch
Patch9:		0009-luks-enable-debugging-in-clevis-scripts-when-rd.debu.patch
Patch10:	0010-patched-rosa-systemd-path.patch
BuildRequires:	asciidoc
BuildRequires:	cmake
BuildRequires:	cracklib-dicts
BuildRequires:	cryptsetup
BuildRequires:	curl
BuildRequires:	desktop-file-utils
BuildRequires:	diffutils
BuildRequires:	git-core
BuildRequires:	jq
BuildRequires:	libpwquality-tools
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	tang
BuildRequires:	tpm2-tools
BuildRequires:	mfs-devel
BuildRequires:	pkgconfig(audit)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(dracut)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(jose)
BuildRequires:	pkgconfig(libcryptsetup)
BuildRequires:	pkgconfig(luksmeta)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udisks2)
Requires:	coreutils
Requires:	curl
Requires:	jose
Requires:	jq
Requires:	tpm2-tools
Requires(pre):	/bin/systemd-sysusers
Recommends:	cracklib-dicts

%description
Clevis is a framework for automated decryption. It allows you to encrypt
data using sophisticated unlocking policies which enable decryption to
occur automatically.

The clevis package provides basic encryption/decryption policy support.
Users can use this directly; but most commonly, it will be used as a
building block for other packages. For example, see the clevis-luks
and clevis-dracut packages for automatic root volume unlocking of LUKSv1
volumes during early boot.

%files
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-decrypt
%{_bindir}/%{name}-decrypt-null
%{_bindir}/%{name}-decrypt-sss
%{_bindir}/%{name}-decrypt-tang
%{_bindir}/%{name}-decrypt-tpm2
%{_bindir}/%{name}-encrypt-null
%{_bindir}/%{name}-encrypt-sss
%{_bindir}/%{name}-encrypt-tang
%{_bindir}/%{name}-encrypt-tpm2
%{_datadir}/bash-completion/
%{_sysusersdir}/%{name}.conf

%pre
%sysusers_create %{name}.conf

#------------------------------------------------------------------

%package luks
Summary:	LUKS integration for clevis
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	cryptsetup
Requires:	luksmeta

%description luks
LUKS integration for clevis. This package allows you to bind a LUKS
volume to a clevis unlocking policy. For automated unlocking, an unlocker
will also be required. See, for example, clevis-dracut and clevis-udisks2.

%files luks
%{_bindir}/%{name}-luks-bind
%{_bindir}/%{name}-luks-common-functions
%{_bindir}/%{name}-luks-edit
%{_bindir}/%{name}-luks-list
%{_bindir}/%{name}-luks-pass
%{_bindir}/%{name}-luks-regen
%{_bindir}/%{name}-luks-report
%{_bindir}/%{name}-luks-unbind
%{_bindir}/%{name}-luks-unlock

#------------------------------------------------------------------

%package systemd
Summary:	Systemd integration for clevis
Group:		Development/Other
Requires:	systemd

%description systemd
Automatically unlocks LUKS _netdev block devices from /etc/crypttab.

%files systemd
%{_libexecdir}/%{name}-luks-askpass
%{_unitdir}/%{name}-luks-askpass.path
%{_unitdir}/%{name}-luks-askpass.service

%post systemd
%systemd_post %{name}-luks-askpass.path

%preun systemd
%systemd_preun %{name}-luks-askpass.path

#------------------------------------------------------------------

%package dracut
Summary:	Dracut integration for clevis
Group:		Development/Other
Requires:	%{name}-systemd = %{EVRD}
Requires:	dracut

%description dracut
Automatically unlocks LUKS block devices in early boot.

%files dracut
%{_prefix}/lib/dracut/modules.d/60%{name}
%{_prefix}/lib/dracut/modules.d/60%{name}-pin-null
%{_prefix}/lib/dracut/modules.d/60%{name}-pin-sss
%{_prefix}/lib/dracut/modules.d/60%{name}-pin-tang
%{_prefix}/lib/dracut/modules.d/60%{name}-pin-tpm2

#------------------------------------------------------------------

%package udisks2
Summary:	UDisks2/Storaged integration for clevis
Group:		Development/Other
Requires:	%{name}-luks = %{EVRD}

%description udisks2
Automatically unlocks LUKS block devices in desktop environments that
use UDisks2 or storaged (like GNOME)

%files udisks2
%attr(4755, root, root) %{_libexecdir}/%{name}-luks-udisks2
%{_sysconfdir}/xdg/autostart/%{name}-luks-udisks2.desktop

#------------------------------------------------------------------

%prep
%autosetup -S git

%build
%meson	\
	-Dgroup=%{name}	\
	-Duser=%{name}
%meson_build

%install
%meson_install
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12255 |21mr|clew-0.10-1.20151002.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20151002

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	The OpenCL extension wrangler library
Name:		clew
Version:	0.10
Release:	1.%{git}.2
License:	Boost
Group:		System/Libraries
Url:		https://github.com/martijnberger/clew
# git snaphot
Source0:	%{name}-%{version}-%{git}.tar.bz2
Patch0:		clew-0.10-20151002-soname.patch
Patch1:		clew-0.10-20151002-libcl.so.1-location.patch
Patch2:		clew-0.10-20151002-libdir.patch
BuildRequires:	cmake

%description
The OpenCL extension wrangler library. This basically works like glew,
but for OpenCL. You can build OpenCL code without needing any OpenCL
library or include files. At runtime, even if there is no OpenCL-enabled
device present, your code will still run! Of course, you wont be able to
do anything OpenCL-related, but you wont get any errors about missing
libraries and stuff, no linker errors (at least, not until you try to use
a non-existent OpenCL-enabled device of course).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The OpenCL extension wrangler library
Group:		System/Libraries

%description -n %{libname}
The OpenCL extension wrangler library. This basically works like glew,
but for OpenCL. You can build OpenCL code without needing any OpenCL
library or include files. At runtime, even if there is no OpenCL-enabled
device present, your code will still run! Of course, you wont be able to
do anything OpenCL-related, but you wont get any errors about missing
libraries and stuff, no linker errors (at least, not until you try to use
a non-existent OpenCL-enabled device of course).

%files -n %{libname}
%doc README.md LICENSE.md
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the OpenCL extension wrangler library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the OpenCL extension wrangler library.

%files -n %{devname}
%doc README.md LICENSE.md
%{_includedir}/clew.h
%{_includedir}/proxy-opencl/CL/*.h
%{_includedir}/proxy-opencl/OpenCL/*.h
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{git}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%cmake \
	-DINSTALL_CL_HEADER:BOOL=ON
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_bindir}/clewTest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12256 |21mr|clinfo-3.0.23.01.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:    Enumerate OpenCL platforms and devices
Name:       clinfo
Version:    3.0.23.01.25
Release:    1
License:    CC0
Group:      System/Configuration/Other
URL:        https://github.com/Oblomov/clinfo
Source0:    %{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  ocl-icd-devel

%description
A simple OpenCL application that enumerates all possible platform and
device properties. Inspired by AMD's program of the same name, it is
coded in pure C99 and it tries to output all possible information,
including that provided by platform-specific extensions, and not to
crash on platform-unsupported properties (e.g. 1.2 properties on 1.1
platforms).

%files
%license LICENSE legalcode.txt
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%prep
%autosetup

%build
%set_build_flags
%make_build

%install
install -Dpm0755 -t %{buildroot}%{_bindir} %{name}
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12257 |21mr|clip-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Video player and video collection manager
Name:		clip
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		https://invent.kde.org/maui/clip
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		clip-russian_locale.patch
Patch1:		clip-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(libavcodec)
BuildRequires:  pkgconfig(taglib)
BuildRequires:	mauikit-devel
BuildRequires:	mauikit-filebrowsing-devel

%description
Clip is as video player and video collection manager based on Maui Kit.

%files -f %{name}.lang
%{_kde5_bindir}/clip
%{_kde5_applicationsdir}/org.kde.clip.desktop
%{_datadir}/icons/*/*/*/*.*

#------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12258 |21mr|cli-parser-1.1.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          cli-parser
Version:       1.1.2
Release:       11
Summary:       Command Line Interface Parser for Java
License:       ASL 2.0
Group:         Development/Java
URL:           https://github.com/spullara/cli-parser
Source0:       https://github.com/spullara/cli-parser/archive/%{name}-%{version}.tar.gz

# Test deps
BuildRequires: mvn(junit:junit)

BuildRequires: maven-local
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
An annotation-based command line interface parser.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%pom_remove_plugin :maven-gpg-plugin

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md

%files javadoc -f .mfiles-javadoc
%doc README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12259 |21mr|clipit-1.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ClipIt - a lightweight GTK+ clipboard manager
Name:		clipit
Version:	1.4.5
Release:	1

License:	GPLv3
Group:		Graphical desktop/GNOME
URL:		http://clipit.rspwn.com/
Source0:	https://github.com/CristianHenzel/ClipIt/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	clipit_ru.tar.gz
Patch0:		clipit-locale_string.patch
Requires:	xdotool

BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  gettext-devel
BuildRequires:  perl-XML-Parser, intltool


%description
ClipIt is a lightweight, fully featured GTK+ clipboard manager. 
It was forked from Parcellite (http://parcellite.sourceforge.net), 
adding additional features and bugfixes to the project.
 

ClipIts main features are:
– Save a history of your last copied items
– Search through the history
– Global hotkeys for most used functions
– Execute actions with clipboard items
– Exclude specific items from history


%prep
%autosetup -p1 -n ClipIt-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
./autogen.sh
%configure --with-gtk3
%make

%install
%makeinstall_std

%find_lang %{name}


%files
%doc AUTHORS COPYING INSTALL ChangeLog README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/locale/*/LC_MESSAGES/clipit.mo
%{_sysconfdir}/xdg/autostart/%{name}-startup.desktop
%{_datadir}/icons/hicolor/scalable/apps/clipit-trayicon.svg
%{_datadir}/icons/hicolor/scalable/apps/clipit-trayicon-offline.svg


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12260 |21mr|cloog-0.20.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 4
%define libname %mklibname %{name}-isl %{major}
%define devname %mklibname -d %{name}-isl

%define _disable_rebuild_configure 1

Summary:	The Chunky Loop Generator
Name:		cloog
Version:	0.20.0
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.cloog.org
Source0:	https://github.com/periscop/cloog/releases/download/cloog-%{version}/%{name}-%{version}.tar.gz
Patch:		cloog-0.20.0-notex.patch
BuildRequires:	gmp-devel
BuildRequires:	pkgconfig(isl)

%description
CLooG is a software which generates loops for scanning Z-polyhedra. That is,
CLooG finds the code or pseudo-code where each integral point of one or more
parametrized polyhedron or parametrized polyhedra union is reached. CLooG is
designed to avoid control overhead and to produce a very efficient code.

%files
%{_bindir}/cloog

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Integer Set Library backend (isl) based version of the CLooG binaries
Group:		Development/C

%description -n %{libname}
The dynamic shared libraries of the Chunky Loop Generator.

%files -n %{libname}
%{_libdir}/libcloog-isl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for the isl based version of Chunky Loop Generator
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
The header files and .so link of the Chunky Loop Generator.

%files -n %{devname}
%{_includedir}/cloog
%{_libdir}/libcloog-isl.so
%{_libdir}/pkgconfig/cloog-isl.pc
%{_libdir}/isl
%{_libdir}/cloog-isl

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
export ac_cv_prog_TEXI2DVI=no
%configure \
	--with-isl=system \
	--with-bits=gmp

%make_build

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12261 |21mr|closure-compiler-20160315-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#global _check 1

Summary:    JavaScript minifier and checker
Name:       closure-compiler
#define commit ad29f06d581fb8c54ad031334b82a5c301b6ce0a
#define shorthash %%(printf %%.7s %%commit)
Version:    20160315
Release:    11
License:    ASL 2.0
URL:        https://developers.google.com/closure/compiler/
Source0:    https://github.com/google/closure-compiler/archive/maven-release-v%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:    closure-compiler.xml
Group:          Development/Java
BuildArch:  noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(args4j:args4j)
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(com.google.code.gson:gson)
BuildRequires:  mvn(com.google.guava:guava:20.0)
BuildRequires:  mvn(com.google.protobuf:protobuf-java)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  xsltproc
BuildRequires: pkgconfig(libxslt)
BuildRequires: docbook-style-xsl
# Explicit requires for javapackages-tools since closure-compiler script
# uses /usr/share/java-utils/java-functions
Requires:      javapackages-tools

%description
The Closure Compiler is a tool for making JavaScript download and run
faster. It is a true compiler for JavaScript. Instead of compiling
from a source language to machine code, it compiles from JavaScript to
better JavaScript. It parses your JavaScript, analyzes it, removes
dead code and rewrites and minimizes what’s left. It also checks
syntax, variable references, and types, and warns about common
JavaScript pitfalls.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the %{summary}.

%prep
%autosetup -n %{name}-maven-release-v%{version}
rm -rf lib/*

# Don't build shaded jar because it bundles all deps
%pom_disable_module "pom-main-shaded.xml" pom-main.xml
%mvn_alias :closure-compiler-unshaded :closure-compiler

# Make static analysis annotations have provided scope
%pom_xpath_inject "pom:dependency[pom:artifactId='jsr305']" "<scope>provided</scope>" pom-main.xml

# Fix OSGi metadata
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']" \
"<configuration><instructions>
  <Bundle-SymbolicName>\${project.groupId}</Bundle-SymbolicName>
</instructions></configuration>" pom-main.xml

%build
%mvn_build -f

xsltproc \
        --nonet \
        --stringparam man.output.quietly 1 \
        --stringparam funcsynopsis.style ansi \
        --stringparam man.authors.section.enabled 0 \
        --stringparam man.copyright.section.enabled 0 \
        http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl %{SOURCE1}

%install
%mvn_install
%jpackage_script com.google.javascript.jscomp.CommandLineRunner "" "" args4j:google-gson:jsr-305:protobuf-java:guava20:%{name} %{name} true

install -Dm0644 %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1

%global _docdir_fmt %{name}

%files -f .mfiles
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*

%license COPYING
%doc README.md

%files javadoc -f .mfiles-javadoc
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12262 |21mr|clucene-2.3.3.4-0.20111220.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 20111220
%define major 2
%define libclucene_core %mklibname clucene-core %{major}
%define libclucene_shared %mklibname clucene_shared %{major}
%define contrib %mklibname clucene-contribs-lib %{major}
%define devname %mklibname %{name} -d

Summary:	C++ port of Lucene
Name:		clucene
Version:	2.3.3.4
Release:	0.%{date}.8
License:	LGPLv2.1+
Group:		Archiving/Other
Url:		http://clucene.sourceforge.net/
# Ze: we are using git, so to generate the source file we run:
# git archive --prefix=clucene-2.3.3.4/ master | xz > clucene-2.3.3.4.tar.xz
#Source0:	http://prdownloads.sourceforge.net/clucene/%{name}-core-%{version}.tar.gz
Source0:	%{name}-%{version}.tar.xz
# include LUCENE_SYS_INCLUDES in pkgconfig --cflags output
# imported fedora patch
Patch0:		clucene-core-2.3.3.4-pkgconfig_sys_includes.patch
Patch1:		clucene-2.3.3.4-fix-major.patch
Patch2:		patch-clucene-2.3.3.4-install-contribs-lib.diff
Patch3:		C++11.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(zlib)

%description
CLucene is a C++ port of Lucene: the high-performance, full-featured text
search engine written in Java. CLucene is faster than lucene as it is
written in C++.

#----------------------------------------------------------------------------

%package -n %{libclucene_core}
Summary:	Shared libraries for %{name}
Group:		System/Libraries
%rename		%{_lib}clucene_core2
Provides:	clucene-core2 = %{EVRD}

%description -n %{libclucene_core}
CLucene is a C++ port of Lucene: the high-performance, full-featured text
search engine written in Java. CLucene is faster than lucene as it is
written in C++.

This package contains shared libraries for clucene.

%files -n %{libclucene_core}
%{_libdir}/libclucene-core.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libclucene_shared}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libclucene_shared}
CLucene is a C++ port of Lucene: the high-performance, full-featured text
search engine written in Java. CLucene is faster than lucene as it is
written in C++.

This package contains shared libraries for clucene.

%files -n %{libclucene_shared}
%{_libdir}/libclucene-shared.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{contrib}
Summary:	Language specific text analyzers for %{name}
Group:		System/Libraries
Requires:	%{libclucene_core} = %{EVRD}

%description -n %{contrib}
Language specific text analyzers for %{name}.

%files -n %{contrib}
%{_libdir}/libclucene-contribs-lib.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libclucene_shared} = %{EVRD}
Requires:	%{libclucene_core} = %{EVRD}
Requires:	%{contrib} = %{EVRD}
# Ze: we need to add this provides to avoid break upgrade
%ifnarch x86_64
Provides:	devel(libclucene)
%else
Provides:	devel(libclucene(64bit))
%endif

%description -n %{devname}
CLucene is a C++ port of Lucene: the high-performance, full-featured text
search engine written in Java. CLucene is faster than lucene as it is
written in C++.

This package contains development libraries and development headers for
clucene.

%files -n %{devname}
%{_includedir}/CLucene.h
%{_includedir}/CLucene/
%{_libdir}/pkgconfig/libclucene-core.pc
%{_libdir}/CLuceneConfig.cmake/CLuceneConfig.cmake
%{_libdir}/lib*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake \
	-DBUILD_CONTRIBS_LIB:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12263 |21mr|clufter-0.77.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# virtual provides:
#   clufter        -> clufter-cli
#   clufter-lib    -> python.+-clufter (any if multiple)
#   python-clufter -> python2-clufter (subject of change)

# https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')

%bcond_with tests

Name:		clufter
Version:	0.77.2
Release:	2
Summary:	Tool/library for transforming/analyzing cluster configuration formats
Group:		System/Base
License:	GPLv2+
URL:		https://pagure.io/%{name}
Source0:	https://pagure.io/clufter/archive/v%{version}/%{name}-v%{version}.tar.gz?/%{name}-%{version}.tar.gz
#Source2:        https://pagure.io/%{name}/raw/v%{version}/f/misc/fix-jing-simplified-rng.xsl
#Source2:	fix-jing-simplified-rng.xsl
#Source3:        https://pagure.io/#{name}/raw/v#{version}/f/misc/pacemaker-borrow-schemas
#Source3:        https://pagure.io/%{name}/raw/50377b47601b88381537fa13ab466fe2cb37c56a/f/misc/pacemaker-borrow-schemas
#Source3:	pacemaker-borrow-schemas
#Source10:       https://people.redhat.com/jpokorny/pkgs/%{name}/%{name}-%{version}.tar.gz.asc

#jing generated files, for remove BR jing
Source2:	pacemaker-1.3.rng
Source3:	pacemaker-2.0.rng
Source4:	pacemaker-2.10.rng
Source5:	pacemaker-3.0.rng
Source6:	pacemaker-3.3.rng

#Source10:	%{name}-%{version}.tar.gz.asc
# publicly stated signature key rollover policy:
# https://lists.clusterlabs.org/pipermail/users/2019-August/026234.html
#Source11:       https://people.redhat.com/jpokorny/pkgs/%{name}/%{name}-2019-08-15-5CD7F9EF.keyring
#Source11:	%{name}-2019-08-15-5CD7F9EF.keyring

Patch0:         compat-Python-3.9-no-longer-offers-collections.Mutable-ABCs.patch
Patch1:         compat-Python-3.9-no-longer-raises-ValueError-at-some-bound.patch
Patch2:         plugin_registry-fix-a-problem-with-native-plugins-missing.patch

BuildRequires:  git-core
BuildRequires:  gnupg2

# Python 3 related
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(lxml)
BuildRequires:  python3egg(distro)

BuildRequires:  pkgconfig(libxml-2.0)

# schemadir path pointer (former since pacemaker 2.0.3)
BuildRequires:  pkgconfig(pacemaker-schemas)

# needed to squash multi-file schemas to single file
#BuildRequires:  jing

# needed for xsltproc and xmllint respectively
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  pkgconfig(libxml-2.0)


%description
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.


#-----------------------------------------------------------------------------
%package cli
Summary:        Tool for transforming/analyzing cluster configuration formats
Provides:       %{name} = %{version}-%{release}

BuildRequires:  bash-completion

BuildRequires:  help2man

# following for pkg_resources module
Requires:       python3-setuptools
Requires:       python3-%{name} = %{EVRD}
Requires:       %{_bindir}/nano
BuildArch:      noarch

%description cli
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.

This package contains %{name} command-line interface for the underlying
library (packaged as python3-%{name}).

%files cli -f .bashcomp-files
%{_mandir}/man1/*.1*
%{_bindir}/%{name}

%post cli
if [ $1 -gt 1 ]; then  # no gain regenerating it w/ fresh install (same result)
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
%{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :
fi

#-----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:        Library for transforming/analyzing cluster configuration formats
License:        GPLv2+ and GFDL

Provides:       %{name}-lib = %{version}-%{release}
Obsoletes:      python-%{name} < %{version}-%{release}
Obsoletes:      python2-%{name} < %{version}-%{release}
Requires:       %{name}-bin = %{version}-%{release}
BuildArch:      noarch

%description -n python3-%{name}
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.

This package contains %{name} library including built-in plugins.

%files -n python3-%{name}
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-*.egg-info

#-----------------------------------------------------------------------------

%package bin
Summary:        Common internal compiled files for %{name}
License:        GPLv2+

Requires:       %{name}-common = %{EVRD}

%description bin
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.

This package contains internal, arch-specific files for %{name}.

%files bin
%{_libexecdir}/%{name}-%{version}

#-----------------------------------------------------------------------------

%package common
Summary:        Common internal data files for %{name}
License:        GPLv2+
BuildArch:      noarch

%description common
While primarily aimed at (CMAN,rgmanager)->(Corosync/CMAN,Pacemaker) cluster
stacks configuration conversion (as per RHEL trend), the command-filter-format
framework (capable of XSLT) offers also other uses through its plugin library.

This package contains internal, arch-agnostic files for %{name}.

%files common
%{_datadir}/cluster
%{_datarootdir}/%{name}
%{_defaultdocdir}/%{name}-%{version}

#-----------------------------------------------------------------------------

%package lib-general
Summary:        Extra %{name} plugins usable for/as generic/auxiliary products
Requires:       %{name}-lib = %{EVRD}
BuildArch:      noarch

%description lib-general
This package contains set of additional plugins targeting variety of generic
formats often serving as a byproducts in the intermediate steps of the overall
process arrangement: either experimental commands or internally unused,
reusable formats and filters.

%files lib-general
%{_datarootdir}/%{name}/ext-plugins/lib-general

%post lib-general
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
# if the completion file is not present, suppose it is not desired
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :


#-----------------------------------------------------------------------------

%package lib-ccs
Summary:        Extra plugins for transforming/analyzing CMAN configuration
Requires:       %{name}-lib-general = %{EVRD}
BuildArch:      noarch

%description lib-ccs
This package contains set of additional plugins targeting CMAN cluster
configuration: either experimental commands or internally unused, reusable
formats and filters.

%files lib-ccs
%{_datarootdir}/%{name}/ext-plugins/lib-ccs

%post lib-ccs
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
# if the completion file is not present, suppose it is not desired
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :

#-----------------------------------------------------------------------------

%package lib-pcs
Summary:        Extra plugins for transforming/analyzing Pacemaker configuration
Requires:       %{name}-lib-general = %{EVRD}
BuildArch:      noarch

%description lib-pcs
This package contains set of additional plugins targeting Pacemaker cluster
configuration: either experimental commands or internally unused, reusable
formats and filters.

%files lib-pcs
%{_datarootdir}/%{name}/ext-plugins/lib-pcs

%post lib-pcs
declare bashcomp="%{_sysconfdir}/%{name}/bash-completion"
# if the completion file is not present, suppose it is not desired
test -x '%{_bindir}/%{name}' && test -f "${bashcomp}" \
  && %{_bindir}/%{name} --completion-bash > "${bashcomp}" 2>/dev/null || :

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-v%{version}
%autopatch -p1


## for some esoteric reason, the line above has to be empty
%{__python3} setup.py saveopts -f setup.cfg pkg_prepare \
                      --ccs-flatten='%{_libexecdir}/%{name}-%{version}/ccs_flatten' \
                      --editor='%{_bindir}/nano' \
                      --extplugins-shared='%{_datarootdir}/%{name}/ext-plugins' \
                      --ra-metadata-dir='%{_datadir}/cluster' \
                      --ra-metadata-ext='metadata' \
                      --shell-posix='%(which sh 2>/dev/null || echo /bin/SHELL-POSIX)' \
                      --shell-bashlike='%(which bash 2>/dev/null || echo /bin/SHELL-BASHLIKE)'
%{__python3} setup.py saveopts -f setup.cfg pkg_prepare \
  --report-bugs='https://bugzilla.rosalinux.ru/'

%build
# see https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale;
# specifically:
#   File "setup.py", line 466, in _pkg_prepare_file
#     content = fr.read()
#   File "/usr/lib64/python3.5/encodings/ascii.py", line 26, in decode
#     return codecs.ascii_decode(input, self.errors)[0]
# UnicodeDecodeError: 'ascii' codec can't decode byte 0xc3 in position 221: ordinal not in range(128)
export LC_ALL=C.UTF-8 LANG=C.UTF-8
%py3_build

%{__python3} -I ./run-dev --skip-ext --completion-bash 2>/dev/null \
  | sed 's|run[-_]dev|%{name}|g' > .bashcomp
# generate man pages (proper commands and aliases from a sorted sequence)
%{__mkdir_p} -- .manpages/man1
{ echo; %{__python3} -I ./run-dev -l | sed -n 's|^  \(\S\+\).*|\1|p' \
  | sort; } > .subcmds
sed -e 's:\(.\+\):\\\&\\fIrun_dev-\1\\fR\\\|(1), :' \
  -e '1s|\(.*\)|\[SEE ALSO\]\n|' \
  -e '$s|\(.*\)|\1\nand perhaps more|' \
  .subcmds > .see-also
help2man -N -h -H -i .see-also \
  -n "$(sed -n '2s|[^(]\+(\([^)]\+\))|\1|p' README)" \
  '%{__python3} -I ./run-dev' | sed 's|run\\\?[-_]dev|%{name}|g' \
  > ".manpages/man1/%{name}.1"
while read cmd; do
  [ -n "${cmd}" ] || continue
  echo -e "#\!/bin/sh\n{ [ \$# -ge 1 ] && [ \"\$1\" = \"--version\" ] \
  && %{__python3} -I ./run-dev \"\$@\" \
  || %{__python3} -I ./run-dev \"${cmd}\" \"\$@\"; }" > ".tmp-${cmd}"
  chmod +x ".tmp-${cmd}"
  grep -v "^${cmd}\$" .subcmds \
    | grep -e '^$' -e "$(echo ${cmd} | cut -d- -f1)\(-\|\$\)" \
    | sed -e 's:\(.\+\):\\\&\\fIrun_dev-\1\\fR\\\|(1), :' \
      -e '1s|\(.*\)|\[SEE ALSO\]\n\\\&\\fIrun_dev\\fR\\\|(1), \n|' \
      -e '$s|\(.*\)|\1\nand perhaps more|' > .see-also
  # XXX uses ";;&" bashism
  case "${cmd}" in
  ccs[2-]*)
    sed -i \
      '1s:\(.*\):\1\n\\\&\\fIcluster.conf\\fR\\\|(5), \\\&\\fIccs\\fR\\\|(7), :' \
    .see-also
    ;;&
  ccs2pcs*)
    sed -i \
      '1s:\(.*\):\1\n\\\&\\fI%{_defaultdocdir}/%{name}-%{version}/rgmanager-pacemaker\\fR\\\|, :' \
    .see-also
    ;;&
  *[2-]pcscmd*)
    sed -i '1s:\(.*\):\1\n\\\&\\fIpcs\\fR\\\|(8), :' .see-also
    ;;&
  esac
  help2man -N -h -H -i .see-also -n "${cmd}" "./.tmp-${cmd}" \
    | sed 's|run\\\?[-_]dev|%{name}|g' \
  > ".manpages/man1/%{name}-${cmd}.1"
done < .subcmds

#generate files with jing
#OUTPUTDIR=.schemas POSTPROCESS="%{SOURCE2}" sh "%{SOURCE3}" --clobber


%install
# see build section
export LC_ALL=C.UTF-8 LANG=C.UTF-8
%py3_install

# following is needed due to umask 022 not taking effect(?) leading to 775
%{__chmod} -- g-w '%{buildroot}%{_libexecdir}/%{name}-%{version}/ccs_flatten'
# %%{_bindir}/%%{name} should have been created
test -f '%{buildroot}%{_bindir}/%{name}' \
  || %{__install} -D -pm 644 -- '%{buildroot}%{_bindir}/%{name}' \
                                '%{buildroot}%{_bindir}/%{name}'

# move data files from python-specific locations to a single common one
# and possibly symlink that back
%{__mkdir_p} -- '%{buildroot}%{_datarootdir}/%{name}/formats'
for format in cib corosync; do
  %{__cp} -a -t '%{buildroot}%{_datarootdir}/%{name}/formats' \
          -- "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}"
  %{__rm} -f -- "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}"/*
  ln -s -t "%{buildroot}%{python3_sitelib}/%{name}/formats/${format}" \
     -- $(pushd "%{buildroot}%{_datarootdir}/%{name}/formats/${format}" >/dev/null; \
          ls -1A | sed "s:.*:%{_datarootdir}/%{name}/formats/${format}/\\0:")
done

# move ext-plugins from python-specific locations to a single common one
# incl. the different sorts of precompiled bytecodes
%{__mkdir_p} -- '%{buildroot}%{_datarootdir}/%{name}/ext-plugins'
%{__cp} -af -t '%{buildroot}%{_datarootdir}/%{name}/ext-plugins' \
        -- '%{buildroot}%{python3_sitelib}/%{name}'/ext-plugins/*
%{__rm} -rf -- '%{buildroot}%{python3_sitelib}/%{name}'/ext-plugins/*/

declare bashcompdir="$(pkg-config --variable=completionsdir bash-completion \
                       || echo '%{_datadir}/bash-completion/completions')"
declare bashcomp="${bashcompdir}/%{name}"
%{__install} -D -pm 644 -- \
  .bashcomp '%{buildroot}%{_sysconfdir}/%{name}/bash-completion'
%{__mkdir_p} -- "%{buildroot}${bashcompdir}"
ln -s '%{_sysconfdir}/%{name}/bash-completion' "%{buildroot}${bashcomp}"
# own %%{_datadir}/bash-completion in case of ...bash-completion/completions,
# more generally any path up to any of /, /usr, /usr/share, /etc
while true; do
  test "$(dirname "${bashcompdir}")" != "/" \
  && test "$(dirname "${bashcompdir}")" != "%{_prefix}" \
  && test "$(dirname "${bashcompdir}")" != "%{_datadir}" \
  && test "$(dirname "${bashcompdir}")" != "%{_sysconfdir}" \
  || break
  bashcompdir="$(dirname "${bashcompdir}")"
done
cat >.bashcomp-files <<-EOF
	${bashcompdir}
	%dir %{_sysconfdir}/%{name}
	%verify(not size md5 mtime) %{_sysconfdir}/%{name}/bash-completion
EOF
%{__mkdir_p} -- '%{buildroot}%{_mandir}'
%{__cp} -a -t '%{buildroot}%{_mandir}' -- .manpages/*
%{__mkdir_p} -- '%{buildroot}%{_defaultdocdir}/%{name}-%{version}'
%{__cp} -a -t '%{buildroot}%{_defaultdocdir}/%{name}-%{version}' \
           -- doc/*.txt doc/rgmanager-pacemaker

cp %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{buildroot}%{_datarootdir}/%{name}/formats/cib

%if %{with tests}
%check
# just a basic sanity check
# we need to massage RA metadata files and PATH so the local run works
# XXX we could also inject buildroot's site_packages dir to PYTHONPATH
declare ret=0 \
        ccs_flatten_dir="$(dirname '%{buildroot}%{_libexecdir}/%{name}-%{version}/ccs_flatten')"
ln -s '%{buildroot}%{_datadir}/cluster'/*.'metadata' \
      "${ccs_flatten_dir}"
# see build section
export LC_ALL=C.UTF-8 LANG=C.UTF-8
PATH="${PATH:+${PATH}:}${ccs_flatten_dir}" PYTHONEXEC="%{__python3} -I" ./run-tests
ret=$?
%{__rm} -f -- "${ccs_flatten_dir}"/*.'metadata'
[ ${ret} -eq 0 ] || exit ${ret}
%endif
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12264 |21mr|cluster-glue-1.0.12-1.git240ad6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 240ad6b5280295d035e4eb91df2feca1cb707312
%define shortcommit %(c=%{commit}; echo ${c:0:6})

%define gname	haclient
%define uname	hacluster
%define nogroup	nobody
%define maj1	1
%define major	2
%define liblrm		%mklibname lrm %{major}
%define libpils		%mklibname pils %{major}
%define libplumb 	%mklibname plumb %{major}
%define libplumbgpl	%mklibname plumbgpl %{major}
%define libstonith	%mklibname stonith %{maj1}
%define devname	%mklibname %{name} -d

# When downloading directly from Mercurial, it will automatically add this prefix
# Invoking 'hg archive' wont but you can add one with: hg archive -t tgz -p "Reusable-Cluster-Components-" -r $upstreamversion $upstreamversion.tar.gz
%define upstreamprefix Reusable-Cluster-Components-glue--
%define upstreamversion glue-%{version}

# Keep around for when/if required
#global alphatag %{upstreamversion}.hg

Summary:	Reusable cluster components
Name:		cluster-glue
Version:	1.0.12
Release:	1.git%{shortcommit}
License:	GPLv2+ and LGPLv2+
Group:		System/Libraries
Url:		http://linux-ha.org/wiki/Cluster_Glue
Source0:	https://github.com/ClusterLabs/cluster-glue/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source1:	hacluster.sysusers.conf
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	bzip2-devel
BuildRequires:	libaio-devel
BuildRequires:	libtool-devel
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(OpenIPMI)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(uuid)
Requires(pre):	/bin/systemd-sysusers

%description
A collection of common tools that are useful for writing cluster managers
such as Pacemaker.
Provides a local resource manager that understands the OCF and LSB
standards, and an interface to common STONITH devices.

%files
%doc AUTHORS COPYING
%{_sbindir}/cibsecret
%{_sbindir}/ha_logger
%{_sbindir}/lrmadmin
%{_sbindir}/meatclient
%{_sbindir}/stonith
%{_sysconfdir}/init.d/logd

%dir %{_libdir}/heartbeat
%dir %{_libdir}/heartbeat/plugins
%dir %{_libdir}/heartbeat/plugins/compress
%dir %{_libdir}/heartbeat/plugins/RAExec
%dir %{_libdir}/heartbeat/plugins/InterfaceMgr
%{_libdir}/heartbeat/lrmd
%{_libdir}/heartbeat/ha_logd
%{_libdir}/heartbeat/plugins/RAExec/*.so
%{_libdir}/heartbeat/plugins/InterfaceMgr/*.so
%{_libdir}/heartbeat/plugins/compress/bz2.so
%{_libdir}/heartbeat/plugins/compress/zlib.so

%dir %{_libdir}/stonith
%dir %{_libdir}/stonith/plugins
%dir %{_libdir}/stonith/plugins/stonith2
%{_libdir}/stonith/plugins/stonith2/__pycache__
%{_datadir}/cluster-glue/ha_log.sh
%{_libdir}/stonith/plugins/external
%{_libdir}/stonith/plugins/stonith2/*.so
%{_libdir}/stonith/plugins/stonith2/*.py*
%{_libdir}/stonith/plugins/xen0-ha-dom0-stonith-helper
%dir %{_datadir}/cluster-glue
%{_datadir}/cluster-glue/ha_cf_support.sh
%{_datadir}/cluster-glue/openais_conf_support.sh
%{_datadir}/cluster-glue/utillib.sh
%dir %{_var}/lib/heartbeat
%dir %{_var}/lib/heartbeat/cores
%dir %attr (0700, root, root)		%{_var}/lib/heartbeat/cores/root
%dir %attr (0700, nobody, %{nogroup})	%{_var}/lib/heartbeat/cores/nobody
%dir %attr (0700, %{uname}, %{gname})	%{_var}/lib/heartbeat/cores/%{uname}
%doc %{_mandir}/man8/*
%{_defaultdocdir}/%{name}/stonith/README.*
%{_defaultdocdir}/%{name}/stonith/README_*
%{_sysusersdir}/hacluster.conf

%pre
%sysusers_create_package hacluster %{SOURCE1}

#----------------------------------------------------------------------------

%package -n %{liblrm}
Summary:	Reusable cluster libraries
Group:		System/Libraries

%description -n %{liblrm}
A collection of libraries that are useful for writing cluster managers
such as Pacemaker.

%files -n %{liblrm}
%{_libdir}/liblrm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpils}
Summary:	Reusable cluster libraries
Group:		System/Libraries

%description -n %{libpils}
A collection of libraries that are useful for writing cluster managers
such as Pacemaker.

%files -n %{libpils}
%{_libdir}/libpils.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libplumb}
Summary:	Reusable cluster libraries
Group:		System/Libraries

%description -n %{libplumb}
A collection of libraries that are useful for writing cluster managers
such as Pacemaker.

%files -n %{libplumb}
%{_libdir}/libplumb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libplumbgpl}
Summary:	Reusable cluster libraries
Group:		System/Libraries

%description -n %{libplumbgpl}
A collection of libraries that are useful for writing cluster managers
such as Pacemaker.

%files -n %{libplumbgpl}
%{_libdir}/libplumbgpl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libstonith}
Summary:	Reusable cluster libraries
Group:		System/Libraries

%description -n %{libstonith}
A collection of libraries that are useful for writing cluster managers
such as Pacemaker.

%files -n %{libstonith}
%{_libdir}/libstonith.so.%{maj1}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and libraries for writing cluster managers
Group:		Development/Other
Requires:	%{liblrm} = %{version}-%{release}
Requires:	%{libpils} = %{version}-%{release}
Requires:	%{libplumb} = %{version}-%{release}
Requires:	%{libplumbgpl} = %{version}-%{release}
Requires:	%{libstonith} = %{version}-%{release}
%rename		%{name}-devel

%description -n %{devname}
Headers and shared libraries for a useful for writing cluster managers 
such as Pacemaker.

%files -n %{devname}
%dir %{_libdir}/heartbeat
%dir %{_libdir}/heartbeat/plugins
%dir %{_libdir}/heartbeat/plugins/test
%dir %{_datadir}/cluster-glue
%{_libdir}/lib*.so
%{_libdir}/heartbeat/ipctest
%{_libdir}/heartbeat/ipctransientclient
%{_libdir}/heartbeat/ipctransientserver
%{_libdir}/heartbeat/transient-test.sh
%{_libdir}/heartbeat/base64_md5_test
%{_libdir}/heartbeat/logtest
%{_libdir}/heartbeat/plugins/test/test.so
%{_includedir}/clplumbing
%{_includedir}/heartbeat
%{_includedir}/stonith
%{_includedir}/pils
%{_datadir}/cluster-glue/lrmtest

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
#./autogen.sh
autoreconf -fi
%configure \
	--disable-static \
	--enable-fatal-warnings=no \
	--localstatedir=%{_var} \
	--with-daemon-group=%{gname} \
	--with-daemon-user=%{uname}

%make

%install
%makeinstall_std

# Don't package things we wont support
rm -f %{buildroot}/%{_libdir}/stonith/plugins/stonith2/rhcs.*

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/hacluster.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12265 |21mr|clutter-1.26.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.0
%define major 0
%define girmajor 1.0

%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{girmajor}
%define devname %mklibname %{name} %{api} -d

Summary:	Software library for fast, visually rich GUIs
Name:		clutter
Version:	1.26.4
Release:	9
License:	LGPLv2+
Group:		Graphics
Url:		https://download.gnome.org/sources/clutter
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo-gobject)
BuildRequires:	pkgconfig(cogl-1.0)
BuildRequires:	pkgconfig(cogl-pango-1.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
# ovitters: Wayland support (evdev also needed)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pkgconfig(libinput)

%description
Clutter is an open source software library for creating fast, visually rich
graphical user interfaces. The most obvious example of potential usage is in
media center type applications. We hope however it can be used for a lot more.

Clutter uses OpenGL (and soon optionally OpenGL ES) for rendering but with an
API which hides the underlying GL complexity from the developer. The Clutter
API is intended to be easy to use, efficient and flexible. 

#----------------------------------------------------------------------------

%package i18n
Summary:	Translations for %{name}
Group:		System/Internationalization

%description i18n
This contains the translation data for %{name}.

%files i18n -f %{name}-%{api}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Software library for fast, visually rich GUIs
Group:		System/Libraries
Recommends:	%{name}-i18n >= %{version}-%{release}

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*
%{_libdir}/lib%{name}-glx-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Cally-%{api}.typelib
%{_libdir}/girepository-1.0/Clutter-%{api}.typelib
%{_libdir}/girepository-1.0/ClutterGdk-%{girmajor}.typelib
%{_libdir}/girepository-1.0/ClutterX11-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for %{name}.

%files -n %{devname}
%dir %{_includedir}/%{name}-%{api}
%{_includedir}/%{name}-%{api}/cally
%{_includedir}/%{name}-%{api}/%{name}
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/lib%{name}-glx-%{api}.so
%{_libdir}/pkgconfig/cally-%{api}.pc
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-cogl-%{api}.pc
%{_libdir}/pkgconfig/%{name}-gdk-%{api}.pc
%{_libdir}/pkgconfig/%{name}-glx-%{api}.pc
%{_libdir}/pkgconfig/%{name}-x11-%{api}.pc
%{_libdir}/pkgconfig/%{name}-wayland-%{api}.pc
%{_libdir}/pkgconfig/%{name}-wayland-compositor-%{api}.pc
%{_libdir}/pkgconfig/%{name}-egl-%{api}.pc
%{_datadir}/%{name}-%{api}/valgrind/%{name}.supp
%{_datadir}/gir-1.0/Cally-%{api}.gir
%{_datadir}/gir-1.0/Clutter-%{api}.gir
%{_datadir}/gir-1.0/ClutterGdk-%{girmajor}.gir
%{_datadir}/gir-1.0/ClutterX11-%{api}.gir
%{_datadir}/gtk-doc/html/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--disable-rpath \
	--enable-introspection=yes \
	--enable-gdk-backend=yes \
	--enable-x11-backend=yes \
	--enable-xinput \
	--enable-wayland-backend=yes \
	--enable-wayland-compositor=yes \
	--enable-evdev-input=yes \
	--enable-egl-backend=yes \
	--enable-evdev-input=yes
%make

%install
%makeinstall_std

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12266 |21mr|clutter-gst2-2.0.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api		2.0
%define clutterapi	2.0
%define gir_major	2.0
%define major		0

%define gstapi		1.0

%define libname		%mklibname clutter-gst %{api} %{major}
%define devname		%mklibname -d clutter-gst %{api}
%define girname		%mklibname clutter-gst-gir %{gir_major}
%define gstname		gstreamer%{gstapi}-gstclutter

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	GST video texture actor and audio player object for Clutter
Name:		clutter-gst2
Version:	2.0.14
Release:	5
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/clutter-gst/%{url_ver}/clutter-gst-%{version}.tar.xz
License:	LGPLv2+
Group:		Graphics
Url:		http://clutter-project.org/
BuildRequires:	clutter-devel >= 1.6.14
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(gstreamer-audio-1.0)
BuildRequires:	pkgconfig(gstreamer-tag-1.0)
BuildRequires:	gobject-introspection-devel >= 0.6.8
BuildRequires:	pkgconfig(gl)

%description
An integration library for using GStreamer with Clutter.
GST video texture actor and audio player object.

%package -n %{libname}
Summary:	GST video texture actor and audio player object for Clutter
Group:		Graphics
Requires:	gstreamer1.0-plugins-base
Obsoletes:	%{_lib}clutter-gst22.0_0 < 1.9.90-3

%description -n %{libname}
An integration library for using GStreamer with Clutter.
GST video texture actor and audio player object.

%package -n %{devname}
Summary:	Development headers/libraries for %{name}
Group:		Development/X11
Provides:	%{name}-devel = %{version}-%{release}
Provides:	libclutter-gst%{api}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{_lib}clutter-gst22.0-devel < 1.9.90-3

%description -n %{devname}
Development headers/libraries for %{name}.

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{_lib}clutter-gst2-gir2.0 < 1.9.90-3

%description -n %{girname}
GObject Introspection interface description for %{name}.

%package -n %{gstname}
Summary:	Gstreamer plugin for %{name}
Group:		System/Libraries

%description -n %{gstname}
Standalone gstreamer plugin for %{name}.

%prep
%setup -q  -n clutter-gst-%{version}
%apply_patches

%build
%configure \
	--disable-static \
	--enable-introspection=yes
%make

%install
%makeinstall_std

#we don't want these
find %{buildroot} -name "*.la" -delete

# Remove the documentation for now as it conflicts with the files in
# clutter-gst-devel. I'll work with upstream to fix this properly.
rm -rf $RPM_BUILD_ROOT%{_datadir}/gtk-doc/

%files -n %{libname}
%{_libdir}/libclutter-gst-%{api}.so.%{major}*

%files -n %{gstname}
%{_libdir}/gstreamer-%{gstapi}/libgstclutter.so

%files -n %{girname}
%{_libdir}/girepository-1.0/ClutterGst-%{gir_major}.typelib

%files -n %{devname}
#%doc %{_datadir}/gtk-doc/html/%{name}
%{_libdir}/pkgconfig/clutter-gst-%{api}.pc
%{_libdir}/libclutter-gst-%{api}.so
%{_includedir}/clutter-gst-%{clutterapi}
%{_datadir}/gir-1.0/ClutterGst-%{gir_major}.gir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12267 |21mr|clutter-gst3-3.0.27-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api		3.0
%define clutterapi	3.0
%define gir_major	3.0
%define major		0

%define gstapi		1.0

%define libname		%mklibname clutter-gst %{api} %{major}
%define devname		%mklibname -d clutter-gst %{api}
%define girname		%mklibname clutter-gst-gir %{gir_major}
%define gstname		gstreamer%{gstapi}-gstclutter%{api}

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	GST video texture actor and audio player object for Clutter
Name:		clutter-gst3
Version:	3.0.27
Release:	9
License:	LGPLv2+
Group:		Graphics
Url:		https://download.gnome.org/sources/clutter-gst
Source0:	https://download.gnome.org/sources/clutter-gst/%{url_ver}/clutter-gst-%{version}.tar.xz
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(cogl-2.0-experimental)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-audio-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-base-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-tag-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-video-%{gstapi})

%description
An integration library for using GStreamer with Clutter.
GST video texture actor and audio player object.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	GST video texture actor and audio player object for Clutter
Group:		Graphics
Requires:	gstreamer%{gstapi}-plugins-base
Obsoletes:	%{_lib}clutter-gst22.0_0 < 1.9.90-3

%description -n %{libname}
An integration library for using GStreamer with Clutter.
GST video texture actor and audio player object.

%files -n %{libname}
%{_libdir}/libclutter-gst-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{_lib}clutter-gst2-gir2.0 < 1.9.90-3

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/ClutterGst-%{gir_major}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers/libraries for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libclutter-gst%{api}-devel = %{EVRD}
Obsoletes:	%{_lib}clutter-gst22.0-devel < 1.9.90-3

%description -n %{devname}
Development headers/libraries for %{name}.

%files -n %{devname}
%{_libdir}/pkgconfig/clutter-gst-%{api}.pc
%{_libdir}/libclutter-gst-%{api}.so
%{_includedir}/clutter-gst-%{clutterapi}
%{_datadir}/gir-1.0/ClutterGst-%{gir_major}.gir

#------------------------------------------------------------------

%package -n %{gstname}
Summary:	Gstreamer plugin for %{name}
Group:		System/Libraries

%description -n %{gstname}
Standalone gstreamer plugin for %{name}.

%files -n %{gstname}
%{_libdir}/gstreamer-%{gstapi}/libcluttergst3.so

#------------------------------------------------------------------

%prep
%setup -qn clutter-gst-%{version}
%apply_patches

%build
%configure \
	--disable-static \
	--enable-introspection=yes
%make

%install
%makeinstall_std

# Remove the documentation for now as it conflicts with the files in
# clutter-gst-devel. I'll work with upstream to fix this properly.
rm -rf %{buildroot}%{_datadir}/gtk-doc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12268 |21mr|clutter-gtk-1.8.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} %{api} -d

Summary:	GTK Support for Clutter
Name:		clutter-gtk
Version:	1.8.4
Release:	12
License:	LGPLv2+
Group:		Graphics
Url:		https://download.gnome.org/sources/clutter-gtk
Source0:	https://download.gnome.org/sources/clutter-gtk/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	docbook-dtd412-xml
#gw for Gtk-2.0.gir
BuildRequires:	gir-repository
BuildRequires:	gtk-doc
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(clutter-%{api})
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)

%description
A library providing facilities to integrate Clutter into GTK+
applications. It provides a GTK+ widget, GtkClutterEmbed, for embedding the
default ClutterStage into any GtkContainer.

Because of limitations inside Clutter, it is only possible to embed a single
ClutterStage.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GTK Support for Clutter
Group:		System/Libraries

%description -n %{libname}
A library providing facilities to integrate Clutter into GTK+
applications. It provides a GTK+ widget, GtkClutterEmbed, for embedding the
default ClutterStage into any GtkContainer.

Because of limitations inside Clutter, it is only possible to embed a single
ClutterStage.

%files -n %{libname} -f cluttergtk-%{api}.lang
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}clutter-gtk1.0_0 < 1.5.2-3

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkClutter-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers/libraries for %{name}
Group:		Development/X11
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Development headers/libraries for %{name}.

%files -n %{devname}
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_datadir}/gir-1.0/GtkClutter-%{api}.gir
%dir %{_datadir}/gtk-doc/html/%{name}-%{api}
%doc %{_datadir}/gtk-doc/html/%{name}-%{api}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --enable-gtk-doc
%make

%install
%makeinstall

%find_lang cluttergtk-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12269 |21mr|clutter-gtk-1.8.4-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} %{api} -d

Summary:	GTK Support for Clutter
Name:		clutter-gtk
Version:	1.8.4
Release:	14
License:	LGPLv2+
Group:		Graphics
Url:		https://download.gnome.org/sources/clutter-gtk
Source0:	https://download.gnome.org/sources/clutter-gtk/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	docbook-dtd412-xml
#gw for Gtk-2.0.gir
BuildRequires:	gir-repository
BuildRequires:	gtk-doc
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(clutter-%{api})
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)

%description
A library providing facilities to integrate Clutter into GTK+
applications. It provides a GTK+ widget, GtkClutterEmbed, for embedding the
default ClutterStage into any GtkContainer.

Because of limitations inside Clutter, it is only possible to embed a single
ClutterStage.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GTK Support for Clutter
Group:		System/Libraries

%description -n %{libname}
A library providing facilities to integrate Clutter into GTK+
applications. It provides a GTK+ widget, GtkClutterEmbed, for embedding the
default ClutterStage into any GtkContainer.

Because of limitations inside Clutter, it is only possible to embed a single
ClutterStage.

%files -n %{libname} -f cluttergtk-%{api}.lang
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}clutter-gtk1.0_0 < 1.5.2-3

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkClutter-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers/libraries for %{name}
Group:		Development/X11
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Development headers/libraries for %{name}.

%files -n %{devname}
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_datadir}/gir-1.0/GtkClutter-%{api}.gir
%dir %{_datadir}/gtk-doc/html/%{name}-%{api}
%doc %{_datadir}/gtk-doc/html/%{name}-%{api}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --enable-gtk-doc
%make

%install
%makeinstall

%find_lang cluttergtk-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12270 |21mr|cmake-3.21.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortVersion %(echo %{version} | cut -d. -f1,2)

%bcond_with gui
%bcond_with bootstrap

Summary:	Cross-platform, open-source make system
Name:		cmake
Version:	3.21.3
Release:	6
Epoch:		1
License:	BSD
Group:		Development/Other
Url:		http://www.cmake.org/HTML/index.html
Source0:	http://www.cmake.org/files/v%{shortVersion}/%{name}-%{version}.tar.gz
Source1:	cmake.macros
### From OpenMandriva
# https://github.com/OpenMandrivaAssociation/cmake, commit 0473761 (13 Jan 2020)
# From Fedora: https://src.fedoraproject.org/rpms/cmake/raw/master/f/cmake.attr
Source2:	cmake.attr
# cmake.prov is based on Fedora's versions found at
# https://src.fedoraproject.org/rpms/cmake/raw/master/f/cmake.prov
# And fixed up to handle e.g. cmake(PkgConfig) correctly.
Source3:	cmake.prov
# cmake.req is based on Fedora's versions found at
# https://src.fedoraproject.org/rpms/cmake/raw/master/f/cmake.req
# And extended with a simplistic check for KDE Frameworks interdependencies
Source4:	cmake.req
# from libqtxdg (contrib) to test RPM generators
Source5:    qt5xdg-config.cmake
### /omv
Patch2:		0003-Disable-Test198.patch
Patch3:		e2k-fix-undefined.patch
Patch4:		cmake-3.23.2-qt6-searchpath.patch
BuildRequires:	gcc-gfortran
BuildRequires:	bzip2-devel
%if !%{with bootstrap}
BuildRequires:	cmake
BuildRequires:	jsoncpp-devel
%endif
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libuv)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	%{_lib}rhash-devel
%if !%{with gui}
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif
BuildRequires:	pkgconfig(zlib)
# to run generators for tests
BuildRequires:	/usr/bin/python3
Requires:	cmake-rpm-generators

# From OpenMandriva, "For compatibility with Fedora and Mageia"
# cmake.req makes such dependencies
Provides:	cmake-filesystem = %{EVRD}
Provides:	cmake-filesystem%{?_isa} = %{EVRD}
%ifarch %{arm}
Provides:	cmake-filesystem(armel-32) = %{EVRD}
%endif

%description
CMake is used to control the software compilation process using
simple platform and compiler independent configuration files.
CMake generates native makefiles and workspaces that can be
used in the compiler environment of your choice. CMake is quite
sophisticated: it is possible to support complex environments
requiring system configuration, pre-processor generation, code
generation, and template instantiation.

%files
%{_bindir}/cmake
%{_bindir}/ccmake
%{_bindir}/ctest
%{_bindir}/cpack
%{_datadir}/%{name}
%{_sysconfdir}/emacs/site-start.d/%{name}.el
%{_rpmmacrodir}/*%{name}*
%{_datadir}/emacs/site-lisp/cmake-mode.el
%{_datadir}/vim/*/*
%{_datadir}/aclocal/cmake.m4
%{_datadir}/bash-completion/completions/*
%doc CMakeLogo.gif mydocs/*

#-----------------------------------------------------------------------------

# rpm generators are a separate package which is pulled in every build by rpm-build;
# this allows to generate Provides for cmake stuff when cmake is not BRed.

%package rpm-generators
Summary:	Cmake deps and provs generators for RPM
Group:		System/Libraries
BuildArch:	noarch

%description rpm-generators
Cmake dependencies and provides generators for RPM 4

%files rpm-generators
%{_rpmconfigdir}/fileattrs/%{name}.attr
%{_rpmconfigdir}/%{name}.req
%{_rpmconfigdir}/%{name}.prov

#-----------------------------------------------------------------------------

%if !%{with gui}
%package -n %{name}-qtgui
Summary:	Qt GUI Dialog for CMake - the Cross-platform, open-source make system
Group:		Development/Other
Requires:	%{name}

%description -n %{name}-qtgui
CMake is used to control the software compilation process using
simple platform and compiler independent configuration files.

This is the Qt GUI.

%files -n %{name}-qtgui
%{_bindir}/cmake-gui
%{_datadir}/applications/cmake-gui.desktop
%{_datadir}/mime/packages/cmakecache.xml
%{_iconsdir}/hicolor/*/apps/CMakeSetup.*
%endif

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# Don't try to automagically find files in /usr/X11R6
# But also don't change a prefix if it is not /usr
perl -pi -e 's@^\s+/usr/X11R6/.*\n@@' Modules/*.cmake

%ifarch %{arm}
# bootstrap test is taking ages on arm
sed -i -e 's!SET(CMAKE_LONG_TEST_TIMEOUT 1500)!SET(CMAKE_LONG_TEST_TIMEOUT 7200)!g' Tests/CMakeLists.txt
%endif
# Find Qt 6
sed -i -e 's,@QT6DIR@,%{_libdir}/qt6,g' Source/cmFindCommon.cxx

%build
mkdir -p build
cd build
%setup_compile_flags
../configure \
	--system-libs \
	--parallel=%{_smp_mflags} \
	--prefix=%{_prefix} \
	--datadir=/share/%{name} \
	--mandir=/share/man \
	--docdir=/share/doc/%{name} \
%if %{with bootstrap}
	--no-system-jsoncpp \
	--no-system-librhash \
%endif
%if !%{with gui}
	--qt-qmake=%{_bindir}/qmake-qt5 \
	--qt-gui \
%endif
	--parallel=%{_smp_mflags}

%make_build VERBOSE=1

%install
%make_install -C build

# cmake mode for emacs
mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat <<EOF >%{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el
(setq load-path (cons (expand-file-name "/dir/with/cmake-mode") load-path))
(require 'cmake-mode)
(setq auto-mode-alist
      (append '(("CMakeLists\\\\.txt\\\\'" . cmake-mode)
                ("\\\\.cmake\\\\'" . cmake-mode))
              auto-mode-alist))
EOF

# cmake mode for vim
install -D -p -m644 Auxiliary/vim/syntax/cmake.vim %{buildroot}%{_datadir}/vim/syntax/cmake.vim
install -D -p -m644 Auxiliary/vim/indent/cmake.vim %{buildroot}%{_datadir}/vim/indent/cmake.vim

# remove directory we just cleared by moving files where editors
# will actually find them
rm -rf %{buildroot}%{_datadir}/cmake/editors

# RPM macros
%install_macro %{name} %{SOURCE1}
# RPM generators
install -m644 %{SOURCE2} -D %{buildroot}%{_rpmconfigdir}/fileattrs/%{name}.attr
install -m755 %{SOURCE3} -D %{buildroot}%{_rpmconfigdir}/%{name}.prov
install -m755 %{SOURCE4} -D %{buildroot}%{_rpmconfigdir}/%{name}.req

# %%doc wipes out files in doc dir, fixed in cooker svn for rpm package, though
# not submitted yet, so we'll just work around this by moving it for now..
rm -rf mydocs
mv %{buildroot}%{_datadir}/doc/%{name} mydocs


%check
# As of 2.8.10.2, the test suite needs net access.
# Absent that, it will fail:
# The following tests FAILED:
#        186 - CTestTestFailedSubmit-http (Failed)
#        187 - CTestTestFailedSubmit-https (Failed)
#unset DISPLAY
#cd build
#bin/ctest -E SubDirSpaces -V %%{_smp_mflags}

mkdir -p test-generators/%{_datadir}/cmake/
mkdir -p test-generators/%{_libdir}/cmake/
cp %{SOURCE5} test-generators/%{_datadir}/cmake/
cp %{SOURCE5} test-generators/%{_libdir}/cmake/
ls test-generators/%{_datadir}/cmake/*.cmake | %{buildroot}%{_rpmconfigdir}/%{name}.prov | grep "^cmake(qt5xdg)"
ls test-generators/%{_libdir}/cmake/*.cmake | %{buildroot}%{_rpmconfigdir}/%{name}.prov | grep "^cmake(qt5xdg)"
#ls test-generators/%%{_datadir}/cmake/*.cmake | %%{buildroot}%%{_rpmconfigdir}/%%{name}.prov | grep "^cmake-filesystem$"
#ls test-generators/%%{_libdir}/cmake/*.cmake | %%{buildroot}%%{_rpmconfigdir}/%%{name}.req | grep "^cmake-filesystem%%{_isa}$"
ls test-generators/%{_datadir}/cmake/*.cmake | %{buildroot}%{_rpmconfigdir}/%{name}.req | grep '^(cmake(qt5xml) or cmake(Qt5Xml))$'
ls test-generators/%{_libdir}/cmake/*.cmake | %{buildroot}%{_rpmconfigdir}/%{name}.req | grep '^(cmake(qt5xml) or cmake(Qt5Xml))$'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12271 |21mr|cmark-0.29.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

Summary:	CommonMark parsing and rendering
Name:		cmark
Version:	0.29.0
Release:	1
License:	BSD and MIT
Group:		Development/Tools
Url:		https://github.com/jgm/cmark
Source0:	https://github.com/jgm/cmark/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
`cmark` is the C reference implementation of CommonMark,
a rationalized version of Markdown syntax with a spec.

It provides a shared library (`libcmark`) with functions for parsing
CommonMark documents to an abstract syntax tree (AST), manipulating
the AST, and rendering the document to HTML, groff man, LaTeX,
CommonMark, or an XML representation of the AST.  It also provides a
command-line program (`cmark`) for parsing and rendering CommonMark
documents.

%files
%doc COPYING README.md
%{_bindir}/cmark
%{_mandir}/man1/cmark.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CommonMark parsing and rendering library
Group:		System/Libraries

%description -n %{libname}
This package provides the cmark shared library.

%files -n %{libname}
%{_libdir}/libcmark.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for cmark
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the development files for cmark.

%files -n %{devname}
%{_includedir}/cmark.h
%{_includedir}/cmark_export.h
%{_includedir}/cmark_version.h
%{_libdir}/libcmark.so
%{_libdir}/pkgconfig/libcmark.pc
%{_mandir}/man3/cmark.3*
%{_libdir}/cmake/cmark*.cmake

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DCMARK_TESTS=OFF
%make

%install
%makeinstall_std -C build

rm %{buildroot}%{_libdir}/libcmark.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12272 |21mr|cmocka-1.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define urlver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

# We need cmake >= 3.9 to build docs
%bcond_with docs

Summary:	Lightweight library to simplify and generalize unit tests for C
Name:		cmocka
Version:	1.1.5
Release:	1
License:	Apache-2.0
Group:		System/Libraries
Url:		http://cmocka.org
Source0:	https://cmocka.org/files/%{urlver}/cmocka-%{version}.tar.xz
Source1:	https://cmocka.org/files/%{urlver}/cmocka-%{version}.tar.xz.asc
BuildRequires:	cmake
BuildRequires:  doxygen

%description
There are a variety of C unit testing frameworks available however many of them
are fairly complex and require the latest compiler technology. Some development
requires the use of old compilers which makes it difficult to use some unit
testing frameworks. In addition many unit testing frameworks assume the code
being tested is an application or module that is targeted to the same platform
that will ultimately execute the test. Because of this assumption many
frameworks require the inclusion of standard C library headers in the code
module being tested which may collide with the custom or incomplete
implementation of the C library utilized by the code under test.

Cmocka only requires a test application is linked with the standard C library
which minimizes conflicts with standard C library headers. Also, CMocka tries
to avoid the use of some of the newer features of C compilers.

This results in CMocka being a relatively small library that can be used to
test a variety of exotic code. If a developer wishes to simply test an
application with the latest compiler then other unit testing frameworks may be
preferable.

This is the successor of Google's Cmockery.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lightweight library to simplify and generalize unit tests for C
Group:		System/Libraries

%description -n %{libname}
There are a variety of C unit testing frameworks available however many of them
are fairly complex and require the latest compiler technology. Some development
requires the use of old compilers which makes it difficult to use some unit
testing frameworks. In addition many unit testing frameworks assume the code
being tested is an application or module that is targeted to the same platform
that will ultimately execute the test. Because of this assumption many
frameworks require the inclusion of standard C library headers in the code
module being tested which may collide with the custom or incomplete
implementation of the C library utilized by the code under test.

CMocka only requires a test application is linked with the standard C library
which minimizes conflicts with standard C library headers. Also, CMocka tries
to avoid the use of some of the newer features of C compilers.

This results in CMocka being a relatively small library that can be used to
test a variety of exotic code. If a developer wishes to simply test an
application with the latest compiler then other unit testing frameworks may be
preferable.

This is the successor of Google's Cmockery.

%files -n %{libname}
%doc AUTHORS README.md ChangeLog COPYING
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for the cmocka library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers for the cmocka unit testing library.

%files -n %{devname}
%if %{with docs}
%doc build/doc/html
%endif # with docs
%{_includedir}/cmocka.h
%{_includedir}/cmocka_pbc.h
%{_includedir}/cmockery/cmockery.h
%{_includedir}/cmockery/pbc.h
%{_libdir}/libcmocka.so
%{_libdir}/libcmockery.so
%{_libdir}/pkgconfig/cmocka.pc
%{_libdir}/cmake/cmocka/cmocka-config-version.cmake
%{_libdir}/cmake/cmocka/cmocka-config.cmake

#-----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static cmocka library
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static cmocka library.

%files -n %{sdevname}
%{_libdir}/libcmocka-static.a 

#-----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DWITH_STATIC_LIB=ON \
	-DWITH_CMOCKERY_SUPPORT=ON \
	-DUNIT_TESTING=ON
%make
%if %{with docs}
make docs
%endif # with docs

%check
export LD_PRELOAD="%{buildroot}%{_libdir}/libcmocka.so.%{major}"
pushd build
ctest --output-on-failure
popd

%install
%makeinstall_std -C build
ln -s libcmocka.so %{buildroot}%{_libdir}/libcmockery.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12273 |21mr|cmt-1.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package	%{nil}
%define	oname cmt_src

Summary:	Computer Music Toolkit ladspa plugins
Name:		cmt
Version:	1.18
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://www.ladspa.org
Source0:	https://www.ladspa.org/download/%{name}_%{version}.tgz
Patch0:		%{name}-1.17-optflags.patch
BuildRequires:	ladspa-devel

%description 
The Computer Music Toolkit (CMT) is a collection of LADSPA plugins for use
with software synthesis and recording packages on Linux. This package contains
several audio plugins, including freeverb.

%files
%doc doc/*
%{_libdir}/%{name}/*.so

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}_%{version}
%patch0 -p1

# Fix wrong perms
chmod -x doc/*.html
chmod -x src/freeverb/Components/*.h


%build
cd src
%make targets OPTFLAGS="%{optflags}" INSTALL_PLUGINS_DIR="%{_libdir}/ladspa"


%install
mkdir -p %{buildroot}%{_libdir}/%{name}
cp plugins/* %{buildroot}%{_libdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12274 |21mr|cni-plugins-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug %nil
%define		debug_package %nil
%define		_optdir /opt

Name:		cni-plugins
Version:	0.9.1
Release:	1
Summary:	CNI networking plugins
Group:		Development/Other
License:	ASL 2.0
URL:		https://cni.dev
Source0:	https://github.com/containernetworking/plugins/archive/v%{version}/%{name}-%{version}.tar.gz
Source1000:	%{name}.rpmlintrc
BuildRequires:	go >= 1.11
BuildRequires:	git-core

%description
Some CNI network plugins, maintained by the containernetworking team

%files
%doc README.md LICENSE
%{_optdir}/cni/bin/

#----------------------------------------------------------------------
%prep
%setup -qn plugins-%{version}

%build
./build_linux.sh -ldflags="-s -w -X github.com/containernetworking/plugins/pkg/utils/buildversion.BuildVersion=%{version}"

%install
install -d %{buildroot}%{_optdir}/cni/bin
cp -a bin/* %{buildroot}%{_optdir}/cni/bin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12275 |21mr|cockpit-278-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without client
%bcond_without kdump
%bcond_without networkmanager
%bcond_without packagekit
%bcond_without pcp
%bcond_without sosreport
%bcond_without storaged
%bcond_without tests

%define pamdir /%{_lib}/security

Summary:	Web Console for Linux servers
Name:		cockpit
Version:	278
Release:	1
License:	LGPLv2+
Group:		Monitoring
Url:		https://cockpit-project.org/
Source0:	https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.xz
Source1:	cockpit-ws.sysusers.conf
Source2:	cockpit-wsinstance.sysusers.conf
BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	glib-networking
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	polkit
BuildRequires:	xmlto
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(krb5)
%if %{with pcp}
BuildRequires:	pkgconfig(libpcp)
%endif
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(libssh2) >= 0.7
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(polkit-agent-1) >= 0.105
BuildRequires:	pkgconfig(libkeyutils)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)
# This is the "cockpit" metapackage. It should only
# Require, Suggest or Recommend other cockpit-xxx subpackages
Requires:	cockpit-bridge
Requires:	cockpit-system
Requires:	cockpit-ws
# Optional components
%if %{with networkmanager}
Recommends:	cockpit-networkmanager
%endif
%if %{with packagekit}
Recommends:	cockpit-packagekit
%endif
%if %{with pcp}
Suggests:	cockpit-pcp
%endif
Requires:	(cockpit-selinux if selinux-policy)
%if %{with sosreport}
Recommends:	cockpit-sosreport
%endif
%if %{with storaged}
Recommends:	cockpit-storaged
%endif

%description
The Cockpit Web Console enables users to administer GNU/Linux servers using a
web browser.

It offers network configuration, log inspection, diagnostic reports, SELinux
troubleshooting, interactive command-line sessions, and more.

%files
%{_docdir}/cockpit/AUTHORS
%{_docdir}/cockpit/COPYING
%{_docdir}/cockpit/README.md
%dir %{_datadir}/cockpit
%{_datadir}/metainfo/cockpit.appdata.xml
%{_datadir}/pixmaps/cockpit.png
%doc %{_mandir}/man1/cockpit.1.*

#----------------------------------------------------------------------------
# Basic Sub-packages

%package bridge
Summary:	Cockpit bridge server-side component
Requires:	glib-networking
Provides:	cockpit-ssh
# cockpit-ssh moved from dashboard to bridge in 171
Conflicts:	cockpit-dashboard < 170
# PR #10430 dropped workaround for ws' inability to understand x-host-key challenge
Conflicts:	cockpit-ws < 181

%description bridge
The Cockpit bridge component installed server side and runs commands on the
system on behalf of the web based user interface.

%files bridge
%dir %{_datadir}/cockpit/base1
%{_datadir}/cockpit/base1/*.js.gz
%{_datadir}/cockpit/base1/manifest.json
%dir %{_datadir}/cockpit/ssh
%{_datadir}/cockpit/ssh/manifest.json
%{_datadir}/polkit-1/actions/org.cockpit-project.cockpit-bridge.policy
%doc %{_mandir}/man1/cockpit-bridge.1.*
%{_bindir}/cockpit-bridge
%{_libexecdir}/cockpit-askpass
%{_libexecdir}/cockpit-ssh
%{_datadir}/%{name}/metrics/*

#----------------------------------------------------------------------------

%package doc
Summary:	Cockpit deployment and developer guide
BuildArch:	noarch

%description doc
The Cockpit Deployment and Developer Guide shows sysadmins how to
deploy Cockpit on their machines as well as helps developers who want to
embed or extend Cockpit.

%files doc
%exclude %{_docdir}/cockpit/AUTHORS
%exclude %{_docdir}/cockpit/COPYING
%exclude %{_docdir}/cockpit/README.md
%{_docdir}/cockpit

#----------------------------------------------------------------------------

%package system
Summary:	Cockpit admin interface package for configuring and troubleshooting a system
Requires:	grep
Requires:	shadow-utils
Requires:	cockpit-bridge
Recommends:	reportd
Provides:	cockpit-shell = %{EVRD}
Provides:	cockpit-systemd = %{EVRD}
Provides:	cockpit-tuned = %{EVRD}
Provides:	cockpit-users = %{EVRD}
BuildArch:	noarch

%description system
This package contains the Cockpit shell and system configuration interfaces.

%files system
%dir %{_datadir}/cockpit/shell
%{_datadir}/cockpit/shell/*
%dir %{_datadir}/cockpit/systemd
%{_datadir}/cockpit/systemd/*
%dir %{_datadir}/cockpit/tuned
%{_datadir}/cockpit/tuned/*
%dir %{_datadir}/cockpit/users
%{_datadir}/cockpit/users/*

#----------------------------------------------------------------------------

%package ws
Summary:	Cockpit Web Service
Requires:	glib-networking
Requires:	openssl
Requires:	systemd >= 235
Recommends:	sscg >= 2.3
Suggests:	sssd-dbus
Conflicts:	firewalld < 0.6.0
Requires(pre):	/bin/systemd-sysusers
Requires(post,preun,postun):	systemd

%description ws
The Cockpit Web Service listens on the network, and authenticates users.

If sssd-dbus is installed, you can enable client certificate/smart card
authentication via sssd/FreeIPA.

%files ws
%doc %{_mandir}/man1/cockpit-desktop.1.*
%doc %{_mandir}/man5/cockpit.conf.5.*
%doc %{_mandir}/man8/cockpit-ws.8.*
%doc %{_mandir}/man8/cockpit-tls.8.*
%doc %{_mandir}/man8/pam_ssh_add.8.*
%dir %{_sysconfdir}/cockpit
%config(noreplace) %{_sysconfdir}/cockpit/ws-certs.d
%config(noreplace) %{_sysconfdir}/pam.d/cockpit
%config %{_sysconfdir}/issue.d/cockpit.issue
%config %{_sysconfdir}/motd.d/cockpit
%ghost /run/cockpit/motd
%ghost %dir /run/cockpit
%dir %{_datadir}/cockpit/motd
%{_datadir}/cockpit/motd/update-motd
%{_datadir}/cockpit/motd/inactive.motd
%{_unitdir}/cockpit.service
%{_unitdir}/cockpit-motd.service
%{_unitdir}/cockpit.socket
%{_unitdir}/cockpit-wsinstance-http.socket
%{_unitdir}/cockpit-wsinstance-http.service
%{_unitdir}/cockpit-wsinstance-https-factory.socket
%{_unitdir}/cockpit-wsinstance-https-factory@.service
%{_unitdir}/cockpit-wsinstance-https@.socket
%{_unitdir}/cockpit-wsinstance-https@.service
%{_unitdir}/system-cockpithttps.slice
%{_prefix}/lib/tmpfiles.d/cockpit-tempfiles.conf
%{pamdir}/pam_ssh_add.so
%{pamdir}/pam_cockpit_cert.so
%{_libexecdir}/cockpit-ws
%{_libexecdir}/cockpit-wsinstance-factory
%{_libexecdir}/cockpit-tls
%{_libexecdir}/cockpit-desktop
%{_libexecdir}/cockpit-certificate-ensure
%{_libexecdir}/cockpit-certificate-helper
%attr(4750, root, cockpit-wsinstance) %{_libexecdir}/cockpit-session
%{_datadir}/cockpit/static
%{_datadir}/cockpit/branding
%{_sysusersdir}/cockpit-ws.conf
%{_sysusersdir}/cockpit-wsinstance.conf

%pre ws
%sysusers_create_package cockpit-ws %{SOURCE1}
%sysusers_create_package cockpit-wsinstance %{SOURCE2}

%post ws
%systemd_post cockpit.socket
# firewalld only partially picks up changes to its services files without this
test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true

%preun ws
%systemd_preun cockpit.socket

%postun ws
%systemd_postun_with_restart cockpit.socket
%systemd_postun_with_restart cockpit.service

# Sub-packages that are optional extensions
#----------------------------------------------------------------------------

%if %{with kdump}
%package kdump
Summary:	Cockpit user interface for kernel crash dumping
Requires:	cockpit-bridge
Requires:	cockpit-shell
Requires:	kexec-tools
BuildArch:	noarch

%description kdump
The Cockpit component for configuring kernel crash dumping.

%files kdump
%dir %{_datadir}/cockpit/kdump
%{_datadir}/cockpit/kdump/*
%{_datadir}/metainfo/org.cockpit-project.cockpit-kdump.metainfo.xml
%endif

#----------------------------------------------------------------------------

%if %{with networkmanager}
%package networkmanager
Summary:	Cockpit user interface for networking, using NetworkManager
Requires:	cockpit-bridge
Requires:	cockpit-shell
Requires:	NetworkManager
# Optional components
#Recommends:	NetworkManager-team
BuildArch:	noarch

%description networkmanager
The Cockpit component for managing networking. This package uses NetworkManager.

%files networkmanager
%dir %{_datadir}/cockpit/networkmanager
%{_datadir}/cockpit/networkmanager/*
%endif

#----------------------------------------------------------------------------

%if %{with packagekit}
%package packagekit
Summary:	Cockpit user interface for packages
Requires:	cockpit-bridge
Requires:	packagekit
Requires:	polkit
BuildArch:	noarch

%description packagekit
The Cockpit components for installing OS updates and Cockpit add-ons,
via PackageKit.

%files packagekit
%dir %{_datadir}/cockpit/apps
%{_datadir}/cockpit/apps/*
%dir %{_datadir}/cockpit/packagekit
%{_datadir}/cockpit/packagekit/*
%endif

#----------------------------------------------------------------------------

%if %{with pcp}
%package pcp
Summary:	Cockpit PCP integration
Requires:	cockpit-bridge

%description pcp
Cockpit support for reading PCP metrics and loading PCP archives.

%files pcp
%dir %{_datadir}/cockpit/pcp
%{_datadir}/cockpit/pcp/*
%{_libexecdir}/cockpit-pcp
%{_localstatedir}/lib/pcp/config/pmlogconf/tools/cockpit

%endif

#----------------------------------------------------------------------------

%package selinux
Summary:	Cockpit SELinux package
Requires:	cockpit-bridge
Requires:	cockpit-shell
Requires:	setroubleshoot-server
BuildArch:	noarch

%description selinux
This package contains the Cockpit user interface integration with the
utility setroubleshoot to diagnose and resolve SELinux issues.

%files selinux
%dir %{_datadir}/cockpit/selinux
%{_datadir}/cockpit/selinux/*
%{_datadir}/metainfo/org.cockpit-project.cockpit-selinux.metainfo.xml

#----------------------------------------------------------------------------

%if %{with sosreport}
%package sosreport
Summary:	Cockpit user interface for diagnostic reports
Requires:	cockpit-bridge
Requires:	cockpit-shell
Requires:	sos
BuildArch:	noarch

%description sosreport
The Cockpit component for creating diagnostic reports with the
sosreport tool.

%files sosreport
%dir %{_datadir}/cockpit/sosreport
%{_datadir}/cockpit/sosreport/*
%{_datadir}/metainfo/org.cockpit-project.cockpit-sosreport.metainfo.xml
%{_datadir}/pixmaps/cockpit-sosreport.png
%endif

#----------------------------------------------------------------------------

%if %{with storaged}
%package storaged
Summary:	Cockpit user interface for storage, using udisks
Requires:	cockpit-shell
Requires:	python3-dbus
Requires:	udisks2 >= 2.6
#Recommends:	clevis-luks
#Recommends:	device-mapper-multipath
Recommends:	udisks2-lvm2 >= 2.6
#Recommends:	udisks2-iscsi >= 2.6
BuildArch:	noarch

%description storaged
The Cockpit component for managing storage. This package uses udisks.

%files storaged
%dir %{_datadir}/cockpit/storaged
%{_datadir}/cockpit/storaged/*
%{_datadir}/metainfo/org.cockpit-project.cockpit-storaged.metainfo.xml
%endif

#----------------------------------------------------------------------------

%if %{with tests}
%package tests
Summary:	Tests for Cockpit
Requires:	cockpit-bridge
Requires:	cockpit-system
Requires:	openssh-clients
Provides:	cockpit-test-assets = %{EVRD}

%description tests
This package contains tests and files used while testing Cockpit.
These files are not required for running Cockpit.

%files tests
%dir %{_datadir}/cockpit/playground
%{_datadir}/cockpit/playground/*
%{_prefix}/lib/cockpit-test-assets
%endif

#----------------------------------------------------------------------------

%if %{with client}
%package client
Summary:	client for Cockpit
Requires:	openssh-clients

%description client
This package contains graphical client for Cockpit.
These files are not required for running Cockpit.

%files client
%{_bindir}/cockpit-client
%{_libexecdir}/cockpit-client-ssh
%{_libexecdir}/cockpit-client
%{_libexecdir}/cockpit-client.ui
%{_datadir}/applications/org.cockpit_project.CockpitClient.desktop
%{_datadir}/dbus-1/services/org.cockpit_project.CockpitClient.service
%{_datadir}/metainfo/org.cockpit_project.CockpitClient.metainfo.xml
%{_iconsdir}/hicolor/scalable/apps/cockpit-client.svg
%{_iconsdir}/hicolor/symbolic/apps/cockpit-client-symbolic.svg
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-silent-rules \
%if %{with client}
	--enable-cockpit-client \
%endif
%if %{without pcp}
	--disable-pcp \
%endif
	--with-cockpit-user=cockpit-ws \
	--with-cockpit-ws-instance-user=cockpit-wsinstance \
	--with-selinux-config-type=etc_t \
	--with-appstream-data-packages='[ "appstream-data" ]' \
	--with-nfs-client-package='"nfs-utils"' \
	--with-pamdir='%{pamdir}'

%make_build all

%install
%make_install
make install-tests DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -p -m 644 tools/cockpit.pam %{buildroot}%{_sysconfdir}/pam.d/cockpit
rm -f %{buildroot}%{_libdir}/cockpit/*.so
# shipped in firewalld since 0.6, everywhere in Fedora/RHEL 8
rm -f %{buildroot}%{_prefix}/lib/firewalld/services/cockpit.xml
install -D -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/

strip %{buildroot}%{_prefix}/lib/cockpit-test-assets/mock-pam-conv-mod.so

#install sysuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/cockpit-ws.conf
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/cockpit-wsinstance.conf

%if %{without kdump}
rm -rf %{buildroot}%{_datadir}/cockpit/kdump
%endif

%if %{without networkmanager}
rm -rf %{buildroot}%{_datadir}/cockpit/networkmanager
%endif

%if %{without packagekit}
rm -rf %{buildroot}%{_datadir}/cockpit/apps
rm -rf %{buildroot}%{_datadir}/cockpit/packagekit
%endif

%if %{without pcp}
rm -f %{buildroot}%{_datadir}/cockpit/pcp/manifest.json
%endif

%if %{without sosreport}
rm -rf %{buildroot}%{_datadir}/cockpit/sosreport
rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-sosreport.metainfo.xml
rm -f %{buildroot}%{_datadir}/pixmaps/cockpit-sosreport.png
%endif

%if %{without storaged}
rm -rf %{buildroot}%{_datadir}/cockpit/storaged
rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-storaged.metainfo.xml
%endif

%if %{without tests}
rm -rf %{buildroot}%{_datadir}/cockpit/playground
rm -r %{buildroot}%{_prefix}/lib/cockpit-test-assets
%endif

%check
#make -j4 check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12276 |21mr|cockpit-282-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without client
%bcond_without kdump
%bcond_without networkmanager
%bcond_without packagekit
%bcond_without pcp
%bcond_without sosreport
%bcond_without storaged
%bcond_without tests

%define pamdir /%{_lib}/security

Summary:	Web Console for Linux servers
Name:		cockpit
Version:	282
Release:	1
License:	LGPLv2+
Group:		Monitoring
Url:		https://cockpit-project.org/
Source0:	https://github.com/cockpit-project/cockpit/releases/download/%{version}/cockpit-%{version}.tar.xz
Source1:	cockpit-ws.sysusers.conf
Source2:	cockpit-wsinstance.sysusers.conf
BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	glib-networking
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	polkit
BuildRequires:	xmlto
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(krb5)
%if %{with pcp}
BuildRequires:	pkgconfig(libpcp)
%endif
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(libssh2) >= 0.7
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(polkit-agent-1) >= 0.105
BuildRequires:	pkgconfig(libkeyutils)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)
# This is the "cockpit" metapackage. It should only
# Require, Suggest or Recommend other cockpit-xxx subpackages
Requires:	cockpit-bridge
Requires:	cockpit-system
Requires:	cockpit-ws
# Optional components
%if %{with networkmanager}
Recommends:	cockpit-networkmanager
%endif
%if %{with packagekit}
Recommends:	cockpit-packagekit
%endif
%if %{with pcp}
Suggests:	cockpit-pcp
%endif
Requires:	(cockpit-selinux if selinux-policy)
%if %{with sosreport}
Recommends:	cockpit-sosreport
%endif
%if %{with storaged}
Recommends:	cockpit-storaged
%endif

%description
The Cockpit Web Console enables users to administer GNU/Linux servers using a
web browser.

It offers network configuration, log inspection, diagnostic reports, SELinux
troubleshooting, interactive command-line sessions, and more.

%files
%{_docdir}/cockpit/AUTHORS
%{_docdir}/cockpit/COPYING
%{_docdir}/cockpit/README.md
%dir %{_datadir}/cockpit
%{_datadir}/metainfo/cockpit.appdata.xml
%{_datadir}/pixmaps/cockpit.png
%doc %{_mandir}/man1/cockpit.1.*

#----------------------------------------------------------------------------
# Basic Sub-packages

%package bridge
Summary:	Cockpit bridge server-side component
Requires:	glib-networking
Provides:	cockpit-ssh
# cockpit-ssh moved from dashboard to bridge in 171
Conflicts:	cockpit-dashboard < 170
# PR #10430 dropped workaround for ws' inability to understand x-host-key challenge
Conflicts:	cockpit-ws < 181

%description bridge
The Cockpit bridge component installed server side and runs commands on the
system on behalf of the web based user interface.

%files bridge
%dir %{_datadir}/cockpit/base1
%{_datadir}/cockpit/base1/*.js.gz
%{_datadir}/cockpit/base1/manifest.json
%dir %{_datadir}/cockpit/ssh
%{_datadir}/cockpit/ssh/manifest.json
%{_datadir}/polkit-1/actions/org.cockpit-project.cockpit-bridge.policy
%doc %{_mandir}/man1/cockpit-bridge.1.*
%{_bindir}/cockpit-bridge
%{_libexecdir}/cockpit-askpass
%{_libexecdir}/cockpit-ssh
%{_datadir}/%{name}/metrics/*

#----------------------------------------------------------------------------

%package doc
Summary:	Cockpit deployment and developer guide
BuildArch:	noarch

%description doc
The Cockpit Deployment and Developer Guide shows sysadmins how to
deploy Cockpit on their machines as well as helps developers who want to
embed or extend Cockpit.

%files doc
%exclude %{_docdir}/cockpit/AUTHORS
%exclude %{_docdir}/cockpit/COPYING
%exclude %{_docdir}/cockpit/README.md
%{_docdir}/cockpit

#----------------------------------------------------------------------------

%package system
Summary:	Cockpit admin interface package for configuring and troubleshooting a system
Requires:	grep
Requires:	shadow-utils
Requires:	cockpit-bridge
Recommends:	reportd
Provides:	cockpit-shell = %{EVRD}
Provides:	cockpit-systemd = %{EVRD}
Provides:	cockpit-tuned = %{EVRD}
Provides:	cockpit-users = %{EVRD}
BuildArch:	noarch

%description system
This package contains the Cockpit shell and system configuration interfaces.

%files system
%dir %{_datadir}/cockpit/shell
%{_datadir}/cockpit/shell/*
%dir %{_datadir}/cockpit/systemd
%{_datadir}/cockpit/systemd/*
%dir %{_datadir}/cockpit/tuned
%{_datadir}/cockpit/tuned/*
%dir %{_datadir}/cockpit/users
%{_datadir}/cockpit/users/*

#----------------------------------------------------------------------------

%package ws
Summary:	Cockpit Web Service
Requires:	glib-networking
Requires:	openssl
Requires:	systemd >= 235
Recommends:	sscg >= 2.3
Suggests:	sssd-dbus
Conflicts:	firewalld < 0.6.0
Requires(pre):	/bin/systemd-sysusers
Requires(post,preun,postun):	systemd

%description ws
The Cockpit Web Service listens on the network, and authenticates users.

If sssd-dbus is installed, you can enable client certificate/smart card
authentication via sssd/FreeIPA.

%files ws
%doc %{_mandir}/man1/cockpit-desktop.1.*
%doc %{_mandir}/man5/cockpit.conf.5.*
%doc %{_mandir}/man8/cockpit-ws.8.*
%doc %{_mandir}/man8/cockpit-tls.8.*
%doc %{_mandir}/man8/pam_ssh_add.8.*
%dir %{_sysconfdir}/cockpit
%config(noreplace) %{_sysconfdir}/cockpit/ws-certs.d
%config(noreplace) %{_sysconfdir}/pam.d/cockpit
%config %{_sysconfdir}/issue.d/cockpit.issue
%config %{_sysconfdir}/motd.d/cockpit
%ghost /run/cockpit/motd
%ghost %dir /run/cockpit
%dir %{_datadir}/cockpit/motd
%{_datadir}/cockpit/motd/update-motd
%{_datadir}/cockpit/motd/inactive.motd
%{_unitdir}/cockpit.service
%{_unitdir}/cockpit-motd.service
%{_unitdir}/cockpit.socket
%{_unitdir}/cockpit-wsinstance-http.socket
%{_unitdir}/cockpit-wsinstance-http.service
%{_unitdir}/cockpit-wsinstance-https-factory.socket
%{_unitdir}/cockpit-wsinstance-https-factory@.service
%{_unitdir}/cockpit-wsinstance-https@.socket
%{_unitdir}/cockpit-wsinstance-https@.service
%{_unitdir}/system-cockpithttps.slice
%{_prefix}/lib/tmpfiles.d/cockpit-tempfiles.conf
%{pamdir}/pam_ssh_add.so
%{pamdir}/pam_cockpit_cert.so
%{pamdir}/mock-pam-conv-mod.so
%{_libexecdir}/cockpit-ws
%{_libexecdir}/cockpit-wsinstance-factory
%{_libexecdir}/cockpit-tls
%{_libexecdir}/cockpit-desktop
%{_libexecdir}/cockpit-certificate-ensure
%{_libexecdir}/cockpit-certificate-helper
%attr(4750, root, cockpit-wsinstance) %{_libexecdir}/cockpit-session
%{_datadir}/cockpit/static
%{_datadir}/cockpit/branding
%{_sysusersdir}/cockpit-ws.conf
%{_sysusersdir}/cockpit-wsinstance.conf

%pre ws
%sysusers_create_package cockpit-ws %{SOURCE1}
%sysusers_create_package cockpit-wsinstance %{SOURCE2}

%post ws
%systemd_post cockpit.socket
# firewalld only partially picks up changes to its services files without this
test -f %{_bindir}/firewall-cmd && firewall-cmd --reload --quiet || true

%preun ws
%systemd_preun cockpit.socket

%postun ws
%systemd_postun_with_restart cockpit.socket
%systemd_postun_with_restart cockpit.service

# Sub-packages that are optional extensions
#----------------------------------------------------------------------------

%if %{with kdump}
%package kdump
Summary:	Cockpit user interface for kernel crash dumping
Requires:	cockpit-bridge
Requires:	cockpit-shell
%ifarch %{armx} %{ix86} %{x86_64}
Requires:	kexec-tools
%endif
BuildArch:	noarch

%description kdump
The Cockpit component for configuring kernel crash dumping.

%files kdump
%dir %{_datadir}/cockpit/kdump
%{_datadir}/cockpit/kdump/*
%{_datadir}/metainfo/org.cockpit-project.cockpit-kdump.metainfo.xml
%endif

#----------------------------------------------------------------------------

%if %{with networkmanager}
%package networkmanager
Summary:	Cockpit user interface for networking, using NetworkManager
Requires:	cockpit-bridge
Requires:	cockpit-shell
Requires:	NetworkManager
# Optional components
#Recommends:	NetworkManager-team
BuildArch:	noarch

%description networkmanager
The Cockpit component for managing networking. This package uses NetworkManager.

%files networkmanager
%dir %{_datadir}/cockpit/networkmanager
%{_datadir}/cockpit/networkmanager/*
%endif

#----------------------------------------------------------------------------

%if %{with packagekit}
%package packagekit
Summary:	Cockpit user interface for packages
Requires:	cockpit-bridge
Requires:	packagekit
Requires:	polkit
BuildArch:	noarch

%description packagekit
The Cockpit components for installing OS updates and Cockpit add-ons,
via PackageKit.

%files packagekit
%dir %{_datadir}/cockpit/apps
%{_datadir}/cockpit/apps/*
%dir %{_datadir}/cockpit/packagekit
%{_datadir}/cockpit/packagekit/*
%endif

#----------------------------------------------------------------------------

%if %{with pcp}
%package pcp
Summary:	Cockpit PCP integration
Requires:	cockpit-bridge

%description pcp
Cockpit support for reading PCP metrics and loading PCP archives.

%files pcp
%dir %{_datadir}/cockpit/pcp
%{_datadir}/cockpit/pcp/*
%{_libexecdir}/cockpit-pcp
%{_localstatedir}/lib/pcp/config/pmlogconf/tools/cockpit

%endif

#----------------------------------------------------------------------------

%package selinux
Summary:	Cockpit SELinux package
Requires:	cockpit-bridge
Requires:	cockpit-shell
Requires:	setroubleshoot-server
BuildArch:	noarch

%description selinux
This package contains the Cockpit user interface integration with the
utility setroubleshoot to diagnose and resolve SELinux issues.

%files selinux
%dir %{_datadir}/cockpit/selinux
%{_datadir}/cockpit/selinux/*
%{_datadir}/metainfo/org.cockpit-project.cockpit-selinux.metainfo.xml

#----------------------------------------------------------------------------

%if %{with sosreport}
%package sosreport
Summary:	Cockpit user interface for diagnostic reports
Requires:	cockpit-bridge
Requires:	cockpit-shell
Requires:	sos
BuildArch:	noarch

%description sosreport
The Cockpit component for creating diagnostic reports with the
sosreport tool.

%files sosreport
%dir %{_datadir}/cockpit/sosreport
%{_datadir}/cockpit/sosreport/*
%{_datadir}/metainfo/org.cockpit-project.cockpit-sosreport.metainfo.xml
%{_datadir}/pixmaps/cockpit-sosreport.png
%endif

#----------------------------------------------------------------------------

%if %{with storaged}
%package storaged
Summary:	Cockpit user interface for storage, using udisks
Requires:	cockpit-shell
Requires:	python3-dbus
Requires:	udisks2 >= 2.6
#Recommends:	clevis-luks
#Recommends:	device-mapper-multipath
Recommends:	udisks2-lvm2 >= 2.6
#Recommends:	udisks2-iscsi >= 2.6
BuildArch:	noarch

%description storaged
The Cockpit component for managing storage. This package uses udisks.

%files storaged
%dir %{_datadir}/cockpit/storaged
%{_datadir}/cockpit/storaged/*
%{_datadir}/metainfo/org.cockpit-project.cockpit-storaged.metainfo.xml
%endif

#----------------------------------------------------------------------------

%if %{with tests}
%package tests
Summary:	Tests for Cockpit
Requires:	cockpit-bridge
Requires:	cockpit-system
Requires:	openssh-clients
Provides:	cockpit-test-assets = %{EVRD}

%description tests
This package contains tests and files used while testing Cockpit.
These files are not required for running Cockpit.

%files tests
%dir %{_datadir}/cockpit/playground
%{_datadir}/cockpit/playground/*
%endif

#----------------------------------------------------------------------------

%if %{with client}
%package client
Summary:	client for Cockpit
Requires:	openssh-clients

%description client
This package contains graphical client for Cockpit.
These files are not required for running Cockpit.

%files client
%{_bindir}/cockpit-client
%{_libexecdir}/cockpit-client-ssh
%{_libexecdir}/cockpit-client
%{_libexecdir}/cockpit-client.ui
%{_datadir}/applications/org.cockpit_project.CockpitClient.desktop
%{_datadir}/dbus-1/services/org.cockpit_project.CockpitClient.service
%{_datadir}/metainfo/org.cockpit_project.CockpitClient.metainfo.xml
%{_iconsdir}/hicolor/scalable/apps/cockpit-client.svg
%{_iconsdir}/hicolor/symbolic/apps/cockpit-client-symbolic.svg
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-silent-rules \
%if %{with client}
	--enable-cockpit-client \
%endif
%if %{without pcp}
	--disable-pcp \
%endif
	--with-cockpit-user=cockpit-ws \
	--with-cockpit-ws-instance-user=cockpit-wsinstance \
	--with-selinux-config-type=etc_t \
	--with-appstream-data-packages='[ "appstream-data" ]' \
	--with-nfs-client-package='"nfs-utils"' \
	--with-pamdir='%{pamdir}'

%make_build all

%install
%make_install
make install-tests DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -p -m 644 tools/cockpit.pam %{buildroot}%{_sysconfdir}/pam.d/cockpit
rm -f %{buildroot}%{_libdir}/cockpit/*.so
# shipped in firewalld since 0.6, everywhere in Fedora/RHEL 8
rm -f %{buildroot}%{_prefix}/lib/firewalld/services/cockpit.xml
install -D -p -m 644 AUTHORS COPYING README.md %{buildroot}%{_docdir}/cockpit/

strip %{buildroot}/%{_lib}/security/mock-pam-conv-mod.so

#install sysuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/cockpit-ws.conf
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/cockpit-wsinstance.conf

%if %{without kdump}
rm -rf %{buildroot}%{_datadir}/cockpit/kdump
%endif

%if %{without networkmanager}
rm -rf %{buildroot}%{_datadir}/cockpit/networkmanager
%endif

%if %{without packagekit}
rm -rf %{buildroot}%{_datadir}/cockpit/apps
rm -rf %{buildroot}%{_datadir}/cockpit/packagekit
%endif

%if %{without pcp}
rm -f %{buildroot}%{_datadir}/cockpit/pcp/manifest.json
%endif

%if %{without sosreport}
rm -rf %{buildroot}%{_datadir}/cockpit/sosreport
rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-sosreport.metainfo.xml
rm -f %{buildroot}%{_datadir}/pixmaps/cockpit-sosreport.png
%endif

%if %{without storaged}
rm -rf %{buildroot}%{_datadir}/cockpit/storaged
rm -f %{buildroot}%{_datadir}/metainfo/org.cockpit-project.cockpit-storaged.metainfo.xml
%endif

%if %{without tests}
rm -rf %{buildroot}%{_datadir}/cockpit/playground
rm -r %{buildroot}%{_prefix}/lib/cockpit-test-assets
%endif

%check
#make -j4 check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12277 |21mr|codegen-0.6.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _version %( echo %{version} | tr . _ )
Name:          codegen
Version:       0.6.8
Release:       8
Summary:       Java/Scala Code generation tool
License:       ASL 2.0
Group:         Development/Java
URL:           http://www.querydsl.com
Source0:       https://github.com/mysema/codegen/archive/CODEGEN_%{_version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
# https://bugzilla.redhat.com/show_bug.cgi?id=1015787
BuildRequires: mvn(org.eclipse.jdt.core.compiler:ecj)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Code generation and compilation for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-CODEGEN_%{_version}

%pom_remove_parent
%pom_remove_plugin com.springsource.bundlor:com.springsource.bundlor.maven
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<configuration>
 <instructions>
  <Bundle-Name>Codegen</Bundle-Name>
  <Bundle-SymbolicName>com.mysema.codegen</Bundle-SymbolicName>
  <Bundle-Vendor>Mysema</Bundle-Vendor>
  <Export-Package>com.mysema.codegen*;version="${project.version}"</Export-Package>
  <Import-Package>
    javax.annotation.*;version="0",
    javax.tools.*;version="0",
    org.eclipse.jdt.*;version="3.7.2",
    com.google.common.*;version="${guava.version}",
    *
  </Import-Package>
 </instructions>
</configuration>
<executions>
 <execution>
  <id>bundle-manifest</id>
  <phase>process-classes</phase>
  <goals>
    <goal>manifest</goal>
  </goals>
 </execution>
</executions>'

%pom_xpath_remove "pom:useDefaultManifestFile"
%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration" '
<archive>
 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>'

sed -i.javax.validation "s|ConstraintPayload|Payload|" \
 src/test/java/com/mysema/codegen/MaxImpl.java \
 src/test/java/com/mysema/codegen/MinImpl.java \
 src/test/java/com/mysema/codegen/NotNullImpl.java

sed -i.ecj4.6 "s|Map<String, Object> settings|Map<String, String> settings|" \
 src/main/java/com/mysema/codegen/ECJEvaluatorFactory.java
 
%mvn_file com.mysema.codegen:%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12278 |21mr|codehaus-parent-4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           codehaus-parent
Version:        4
Release:        16
Summary:        Parent pom file for codehaus projects
License:        ASL 2.0
URL:            http://codehaus.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

#Next version with license is at https://github.com/sonatype/codehaus-parent/blob/master/pom.xml
Source0:        http://repo1.maven.org/maven2/org/codehaus/codehaus-parent/%{version}/codehaus-parent-%{version}.pom
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Patch0:         %{name}-enforcer.patch

BuildRequires:  maven-local

%description
This package contains the parent pom file for codehaus projects.

%prep
%setup -q -c -T
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} LICENSE
%patch0

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12279 |21mr|codemodel-2.6-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:         codemodel
Version:      2.6
Release:      27
Summary:      Java library for code generators
License:      CDDL-1.1 or GPLv2 with exceptions
URL:          http://codemodel.java.net
# svn export https://svn.java.net/svn/codemodel~svn/tags/codemodel-project-2.6/ codemodel-2.6
# tar -zcvf codemodel-2.6.tar.gz codemodel-2.6
Source0:      %{name}-%{version}.tar.gz
# Remove the dependency on istack-commons (otherwise it will be a
# recursive dependency with the upcoming changes to that package):
Patch0:       %{name}-remove-istack-commons-dependency.patch

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.ant:ant)


%description
CodeModel is a Java library for code generators; it provides a way to
generate Java programs in a way much nicer than PrintStream.println().
This project is a spin-off from the JAXB RI for its schema compiler
to generate Java source files.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep

# Unpack and patch the original source:
%setup -q
%patch0 -p1

# Remove bundled jar files:
find . -name '*.jar' -print -delete

%mvn_file :%{name} %{name}
%mvn_file :%{name}-annotation-compiler %{name}-annotation-compiler

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE.html

%files javadoc -f .mfiles-javadoc
%license LICENSE.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12280 |21mr|codenarc-0.24.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname CodeNarc
Name:          codenarc
Version:       0.24.1
Release:       7
Summary:       Groovy library that provides static analysis features for Groovy code
License:       ASL 2.0
Url:           http://codenarc.sourceforge.net/
Source0:       https://github.com/CodeNarc/CodeNarc/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
BuildRequires: mvn(org.codehaus.groovy:groovy)
BuildRequires: mvn(org.codehaus.groovy:groovy-ant)
BuildRequires: mvn(org.codehaus.groovy:groovy-xml)
BuildRequires: mvn(org.gmetrics:GMetrics)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
CodeNarc is a static analysis tool for Groovy source code,
enabling monitoring and enforcement of many coding standards
and best practices. CodeNarc applies a set of Rules
(predefined and/or custom) that are applied to each Groovy
file, and generates an HTML report of the results, including
a list of rules violated for each source file, and a count
of the number of violations per package and for the whole
project.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{version}

find . -name "*.jar" -delete
find . -name "*.class" -delete
rm -rf docs/*

cp -p site-pom.xml pom.xml

mkdir -p src/main/java/org/codenarc/analyzer
cp -p src/main/groovy/org/codenarc/analyzer/SuppressionAnalyzer.java \
 src/main/java/org/codenarc/analyzer/

# Set encoding
%pom_xpath_inject pom:project/pom:properties '
  <antVersion>1.9.6</antVersion>
  <gmetricsVersion>0.7</gmetricsVersion>
  <junitVersion>4.12</junitVersion>
  <log4jVersion>1.2.17</log4jVersion>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>'

%pom_xpath_set pom:properties/pom:targetJdk 1.6
%pom_xpath_set pom:properties/pom:groovyVersion 2.4.5

%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.5.1 . "
<configuration>
    <source>\${targetJdk}</source>
    <target>\${targetJdk}</target>
</configuration>"

%pom_add_plugin org.codehaus.gmavenplus:gmavenplus-plugin:1.5 . "
 <executions>
  <execution>
   <goals>
    <goal>generateStubs</goal>
    <!--goal>testCompile</goal-->
    <goal>testGenerateStubs</goal>
   </goals>
  </execution>
 </executions>"

%pom_add_dep org.apache.ant:ant:'${antVersion}' . "<optional>true</optional>"
%pom_add_dep org.codehaus.groovy:groovy:'${groovyVersion}'
%pom_add_dep org.codehaus.groovy:groovy-ant:'${groovyVersion}'
%pom_add_dep org.codehaus.groovy:groovy-xml:'${groovyVersion}'
%pom_add_dep org.gmetrics:GMetrics:'${gmetricsVersion}'
%pom_add_dep junit:junit:'${junitVersion}'
%pom_add_dep log4j:log4j:'${log4jVersion}'

# Convert from dos to unix line ending
for file in CHANGELOG.txt LICENSE.txt NOTICE.txt README.md ; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

%mvn_file org.%{name}:%{oname} %{name} %{oname}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.txt README.md
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12281 |21mr|cogl-1.22.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define major 		20
%define pangomajor	20
%define gir_major	2.0
%define gir_major_old	1.0

%define libname		%mklibname %{name} %{major}
%define libpango	%mklibname %{name}-pango %{pangomajor}
%define libpath		%mklibname %{name}-path %{major}
%define devname		%mklibname %{name} -d
%define devpango	%mklibname %{name}-pango -d
%define girname		%mklibname %{name}-gir %{gir_major}
%define girname_old	%mklibname %{name}-gir %{gir_major_old}
%define girpango	%mklibname %{name}-pango-gir %{gir_major}
%define girpango_old	%mklibname %{name}-pango-gir %{gir_major_old}

Summary:	A library for using 3D graphics hardware to draw pretty pictures
Name:		cogl
Version:	1.22.8
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.clutter-project.org/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/cogl/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(cairo) >= 1.10
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gmodule-no-export-2.0)
BuildRequires:	pkgconfig(gobject-2.0) >= 2.28.0
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(pangocairo) >= 1.20
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite) >= 0.4
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes) >= 3
BuildRequires:	pkgconfig(xrandr)
# ovitters: Wayland support + required KMS support
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	egl-devel

%description
Cogl is a small open source library for using 3D graphics hardware to draw
pretty pictures. The API departs from the flat state machine style of
OpenGL and is designed to make it easy to write orthogonal components that
can render without stepping on each others toes.

As well aiming for a nice API, we think having a single library as opposed
to an API specification like OpenGL has a few advantages too; like being
able to paper over the inconsistencies/bugs of different OpenGL
implementations in a centralized place, not to mention the myriad of OpenGL
extensions. It also means we are in a better position to provide utility
APIs that help software developers since they only need to be implemented
once and there is no risk of inconsistency between implementations.

Having other backends, besides OpenGL, such as drm, Gallium or D3D are
options we are interested in for the future.

#----------------------------------------------------------------------------

%package i18n
Summary:	Translations for %{name}
Group:		System/Internationalization
Obsoletes:	%{name} < 1.9.2

%description i18n
This contains the translation data for %{name}.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for using 3D graphics hardware to draw pretty pictures
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libcogl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpango}
Summary:	A library for using 3D graphics hardware to draw pretty pictures
Group:		System/Libraries

%description -n %{libpango}
This package contains the shared library for %{name}-pango.

%files -n %{libpango}
%{_libdir}/libcogl-pango.so.%{pangomajor}*

#----------------------------------------------------------------------------

%package -n %{libpath}
Summary:	A library for using 3D graphics hardware to draw pretty pictures
Group:		System/Libraries
Conflicts:	%{_lib}cogl20 < 1.18.2-3

%description -n %{libpath}
This package contains the shared library for %{name}.

%files -n %{libpath}
%{_libdir}/libcogl-path.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Cogl-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{girname_old}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}cogl-gir2.0 < 1.18.2-3

%description -n %{girname_old}
GObject Introspection interface description for %{name}.

%files -n %{girname_old}
%{_libdir}/girepository-1.0/Cogl-%{gir_major_old}.typelib

#----------------------------------------------------------------------------

%package -n %{girpango}
Summary:	GObject Introspection interface description for %{name}-pango
Group:		System/Libraries

%description -n %{girpango}
GObject Introspection interface description for %{name}-pango.

%files -n %{girpango}
%{_libdir}/girepository-1.0/CoglPango-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{girpango_old}
Summary:	GObject Introspection interface description for %{name}-pango
Group:		System/Libraries
Conflicts:	%{_lib}cogl-pango-gir2.0 < 1.18.2-3

%description -n %{girpango_old}
GObject Introspection interface description for %{name}-pango.

%files -n %{girpango_old}
%{_libdir}/girepository-1.0/CoglPango-%{gir_major_old}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development environment
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libpath} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girname_old} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and libraries for building and developing apps with %{name}.

%files -n %{devname}
%doc NEWS README ChangeLog
%{_includedir}/%{name}/%{name}
%{_includedir}/%{name}/%{name}-path
%{_libdir}/libcogl.so
%{_libdir}/libcogl-path.so
%{_libdir}/pkgconfig/cogl-1.0.pc
%{_libdir}/pkgconfig/cogl-path-1.0.pc
%{_libdir}/pkgconfig/cogl-gl-1.0.pc
%{_libdir}/pkgconfig/cogl-2.0-experimental.pc
%{_libdir}/pkgconfig/cogl-path-2.0-experimental.pc
%{_datadir}/gir-1.0/Cogl-*.gir

#----------------------------------------------------------------------------

%package -n %{devpango}
Summary:	%{name}-pango development environment
Group:		Development/C
Requires:	%{libpango} = %{EVRD}
Requires:	%{girpango} = %{EVRD}
Requires:	%{girpango_old} = %{EVRD}

%description -n %{devpango}
Header files and libraries for building and developing apps with %{name}-pango.

%files -n %{devpango}
%{_includedir}/%{name}/%{name}-pango
%{_libdir}/libcogl-pango.so
%{_libdir}/pkgconfig/cogl-pango*.pc
%{_datadir}/gir-1.0/CoglPango-*.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export GI_SCANNER_DISABLE_CACHE=yes
%ifarch %{e2k}
CFLAGS="%{optflags} -Wno-error=maybe-uninitialized"
%endif
%configure \
	--enable-cairo=yes \
	--enable-cogl-pango=yes \
	--enable-gdk-pixbuf=yes \
	--enable-glx=yes \
	--enable-introspection=yes \
	--enable-examples-install=no \
	--enable-wayland-egl-server=yes \
	--enable-wayland-egl-platform=yes \
	--enable-kms-egl-platform

%make_build

%install
%makeinstall_std

#Remove examples
rm -rf %{buildroot}%{_datadir}/%{name}/examples-data/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12282 |21mr|colm-0.13.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name} %{version}
%define devname %mklibname %{name} -d

Summary:	Programming language designed for the analysis of computer languages
Name:		colm
Version:	0.13.0.7
Release:	2
# aapl/ and some headers from src/ are the LGPLv2+
License:	MIT and LGPLv2+
Group:		System/Libraries
Url:		https://www.colm.net/open-source/colm/
Source0:	https://www.colm.net/files/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	asciidoc
# Unfortunately, upstream doesn't exist and not possible to find version
Provides:	bundled(aapl)

%description
Colm is a programming language designed for the analysis and transformation
of computer languages. Colm is influenced primarily by TXL. It is
in the family of program transformation languages.

%files
%doc ChangeLog COPYING README
%{_bindir}/%{name}
%dir %{_datadir}/vim
%dir %{_datadir}/vim/vimfiles
%dir %{_datadir}/vim/vimfiles/syntax
%{_datadir}/vim/vimfiles/syntax/%{name}.vim

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development libraries and header files for %{name}
Group:		Development/Other
Conflicts:	%{name} < 0.13.0.7-2

%description -n %{libname}
Colm is a programming language designed for the analysis and transformation
of computer languages. Colm is influenced primarily by TXL. It is
in the family of program transformation languages.

%files -n %{libname}
%{_libdir}/lib%{name}-%{version}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.13.0.7-2
Obsoletes:	%{name}-devel < 0.13.0.7-2

%description -n %{devname}
Colm is a programming language designed for the analysis and transformation
of computer languages. Colm is influenced primarily by TXL. It is
in the family of program transformation languages.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q
# Do not pollute with docs
sed -i -e "/dist_doc_DATA/d" Makefile.am

%build
autoreconf -vfi
%configure \
	--disable-static
%make

%install
%makeinstall_std

install -p -m 0644 -D %{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/%{name}.vim

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12283 |21mr|colord-1.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define api 1.0
%define libname %mklibname %{name} %{major}
%define libprivate %mklibname colordprivate %{major}
%define libhug %mklibname colorhug %{major}
%define girname %mklibname %{name}-gir %{api}
%define girhug %mklibname colorhug-gir %{api}
%define devname %mklibname %{name} -d

# Building the extra print profiles requires colprof, +4Gb of RAM and
# quite a lot of time. Don't enable this for test builds.
%bcond_without print_profiles

%define _disable_ld_no_undefined 1

# SANE is pretty insane when it comes to handling devices, and we get AVCs
# popping up all over the place.
%bcond_without sane
%bcond_with docs

Summary:	Color daemon
Name:		colord
Version:	1.4.6
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		System/X11
Url:		http://www.freedesktop.org/software/colord/
Source0:	http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz

BuildRequires:	docbook-utils
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	locales
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	vala-tools
%if %{with sane}
BuildRequires:	sane-devel
%endif
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gusb)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	meson
%if %{with print_profiles}
BuildRequires:	argyllcms
%endif

Requires:	systemd-units
Requires(post):	systemd
Requires(pre,postun):	rpm-helper

Obsoletes:	%{girname} < 1.0.4
Provides:	%{girname} = %{EVRD}
Obsoletes:	shared-color-profiles < 0.1.6-3
Provides:	shared-color-profiles = %{EVRD}

%description
colord is a low level system activated daemon that maps color devices
to color profiles in the system context.

%files -f %{name}.lang
%doc AUTHORS NEWS
%{_datadir}/bash-completion/completions/colormgr
%{_datadir}/dbus-1/system.d/org.freedesktop.ColorManager.conf
/lib/udev/rules.d/*.rules
%{_bindir}/*
%{_libexecdir}/colord
%if %{with sane}
%{_libexecdir}/colord-sane
%endif
%{_libexecdir}/colord-session
%{_libdir}/colord-plugins/*.so
%{_libdir}/colord-sensors/*.so
%dir %{_datadir}/color/icc/colord
%{_datadir}/color/icc/colord/*.ic?
%{_datadir}/colord/icons/*.svg
%{_datadir}/colord/ti1/*.ti1
%{_datadir}/colord/illuminant
%{_datadir}/colord/cmf
%{_datadir}/colord/ref
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorHelper.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.ColorManager*.xml
%{_datadir}/dbus-1/services/org.freedesktop.ColorHelper.service
%{_datadir}/dbus-1/system-services/org.freedesktop.ColorManager.service
%{_datadir}/glib-2.0/schemas/org.freedesktop.ColorHelper.gschema.xml
%{_datadir}/polkit-1/actions/org.freedesktop.color.policy
%if %{with docs}
%{_mandir}/man1/*.1.*
%endif
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord
%attr(755,colord,colord) %dir %{_localstatedir}/lib/colord/icc
%ghost %{_localstatedir}/lib/colord/*.db
%{_presetdir}/86-colord.preset
%{_unitdir}/*.service
%{_prefix}/lib/systemd/user/colord-session.service
%{_tmpfilesdir}/*.conf

%pre
%_pre_useradd colord /var/lib/colord /sbin/nologin
%_pre_groupadd colord colord

%post
%tmpfiles_create %{_tmpfilesdir}/colord.conf

%postun
%_postun_userdel colord
%_postun_groupdel colord

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library package for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}%{name}1 < 1.2.0

%description -n %{libname}
Main library for %{name}.

%files -n %{libname}
%{_libdir}/libcolord.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libprivate}
Summary:	Library package for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}%{name}private1 < 1.2.0

%description -n %{libprivate}
Main library for %{name}.

%files -n %{libprivate}
%{_libdir}/libcolordprivate.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libhug}
Summary:	Library package for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}%{name}hug1 < 1.2.0

%description -n %{libhug}
Main library for %{name}.

%files -n %{libhug}
%{_libdir}/libcolorhug.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libprivate} = %{EVRD}
Requires:	%{libhug} = %{EVRD}
Requires:	%{girname} = %{version}-%{release}
Requires:	%{girhug} = %{version}-%{release}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%{_includedir}/colord-1
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/vala/vapi/*.vapi
%{_datadir}/vala/vapi/colord.deps

#----------------------------------------------------------------------------
%package -n %{girhug}
Summary:	GObject Introspection interface description for ColorHug
Group:		System/Libraries

%description -n %{girhug}
GObject Introspection interface description for ColorHug

%files -n %{girhug}
%{_libdir}/girepository-1.0/Colorhug-%{api}.typelib
#----------------------------------------------------------------------------
%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Colord-%{api}.typelib

%prep
%setup -q

%build
# Set ~2 GiB limit so that colprof is forced to work in chunks when
# generating the print profile rather than trying to allocate a 3.1 GiB
# chunk of RAM to put the entire B-to-A tables in.
ulimit -Sv 2000000
export CC=%{__cc}
export CXX=%{__cxx}

%meson \
    -Dlibcolordcompat=true \
    -Dvapi=true \
    -Dtests=false \
%if !%{with docs}
    -Dman=false \
    -Ddocs=false \
%endif
%if %{with print_profiles}
    -Dprint_profiles=true \
%endif
%if %{with sane}
    -Dsane=true \
%endif
    -Ddaemon_user="colord" || cat meson-logs/meson-log.txt

%meson_build

%install
%meson_install

# databases
touch %{buildroot}%{_localstatedir}/lib/colord/mapping.db
touch %{buildroot}%{_localstatedir}/lib/colord/storage.db

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-colord.preset << EOF
enable colord.service
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12284 |21mr|colord-gtk-0.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define girmajor 1.0
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{girmajor}
%define devname %mklibname %{name} -d

Summary:	GTK support library for colord
Name:		colord-gtk
Version:	0.3.0
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.freedesktop.org/software/colord/
Source0:	http://www.freedesktop.org/software/colord/releases/%{name}-%{version}.tar.xz
BuildRequires:	docbook-style-xsl-ns
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(lcms2)
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description
colord-gtk is a support library for colord and provides additional
functionality that requires GTK+.

%files -f %{name}.lang
%doc AUTHORS NEWS README TODO
%license COPYING
%{_bindir}/cd-convert
%{_mandir}/man1/cd-convert.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GTK support library for colord
Group:		System/Libraries

%description -n %{libname}
colord-gtk is a support library for colord and provides additional
functionality that requires GTK+.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/lib%{name}4.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}colord-gtk-gir < 0.1.26
Obsoletes:	%{_lib}colord-gtk-gir < 0.1.26

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/ColordGtk-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}colord-gtk-gir < 0.1.26
Conflicts:	%{name} < 0.1.26

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%{_datadir}/gir-1.0/ColordGtk-%{girmajor}.gir
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/vala/vapi/%{name}.deps
%{_datadir}/vala/vapi/%{name}.vapi
%{_includedir}/colord-%{major}/%{name}*
%{_libdir}/lib%{name}4.so
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}4.pc
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dvapi=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12285 |21mr|colorsvn-0.3.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           colorsvn
Version:        0.3.2
Release:        14
Epoch:          0
Summary:        Colorizer for subversion, based on colorgcc and colorcvs
Group:          Development/Other
License:        GPL
URL:            http://www.console-colors.de/
Source0:        http://www.console-colors.de/downloads/colorsvn/colorsvn-%{version}.tar.gz
Requires:       subversion 
BuildRequires:  subversion
BuildArch:      noarch

%description
Subversion output colorizer.

%prep
%setup -q

%build
%{configure2_5x}

%install
%{__rm} -rf %{buildroot}
%{makeinstall_std}
%{__perl} -p -e 's|/bin/sh|/bin/csh|;' \
             -e 's|=| |g;' \
  %{buildroot}%{_sysconfdir}/profile.d/colorsvn-env.sh \
  > %{buildroot}%{_sysconfdir}/profile.d/colorsvn-env.csh

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc ChangeLog COPYING CREDITS INSTALL
%attr(0755,root,root) %{_bindir}/colorsvn
%{_mandir}/man1/colorsvn.1*
%config(noreplace) %{_sysconfdir}/colorsvnrc
%attr(0755,root,root) %{_sysconfdir}/profile.d/colorsvn-env.sh
%attr(0755,root,root) %{_sysconfdir}/profile.d/colorsvn-env.csh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12286 |21mr|comgt-0.32-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define old_name gcom

Summary:	GPRS/EDGE/3G/HSDPA datacard control tool
Name:		comgt
Version:	0.32
Release:	21
License:	GPLv2+
Group:		Communications
Url:		http://pharscape.org/comgt.html
Source0:	http://www.pharscape.org/3G/%{name}/%{name}.%{version}.tgz
Patch0:		comgt-0.32-string-format.patch
Patch1:		comgt-0.32-fix-man-page-typo.patch
Requires:	usb_modeswitch
Provides:	%{old_name} = %{EVRD}

%description
comgt is a datacard control tool for Option GlobeTrotter GPRS/EDGE/3G/HSDPA
and Vodafone 3G/GPRS.

It is a scripting language interpreter useful for establishing communications
on serial lines and through PCMCIA modems as well as GPRS and 3G datacards.

comgt has some features that are rarely found in other utilities of the same
type.

%files
%defattr(644,root,root,755)
%doc CHANGELOG gprs.txt TODO umts.txt
%{_mandir}/man1/%{name}.1*
%defattr(755,root,root,755)
%{_sbindir}/%{name}
%{_sbindir}/%{old_name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}.%{version}
%patch0 -p1 -b .str_format~
%patch1 -p1 -b .man_typo~

%build
%make CFLAGS="-c %{optflags}" LDFLAGS="%{ldflags}"

%install
install -m755 %{name} -D %{buildroot}%{_sbindir}/%{name}
install -m644 %{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1
ln -s %{_sbindir}/%{name} %{buildroot}%{_sbindir}/%{old_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12287 |21mr|common-licenses-1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Contains the various common licenses uses by the distribution
Name:		common-licenses
Version:	1.1
Release:	11
License:	GPLv2+
Group:		System/Base
Source0:	%{name}-%{version}.tar.xz
BuildArch:	noarch

%description
Contains the various common licenses uses by the distribution. Instead of
including the COPYING file in every package, just refer to this one.

%files
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
install -d %{buildroot}%{_datadir}
cp -a %{name} %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12288 |21mr|communicator-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Communicator management for Plasma Mobile
Name:		communicator
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		communicator-cmake_locale.patch
Patch1:		communicator-russian_locale.patch
Patch2:		communicator-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5people-devel
BuildRequires:	kf5service-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	mauikit-devel
BuildRequires:	mauikit-filebrowsing-devel
BuildRequires:	phonenumber-devel
Requires: mauikit-texteditor

%description
Communicator management for Plasma Mobile

%files -f %{name}.lang
%{_kde5_bindir}/communicator
%{_kde5_applicationsdir}/org.kde.communicator.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/communicator.svg
%{_kde5_datadir}/maui-accounts

#------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12289 |21mr|compile-command-annotations-1.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          compile-command-annotations
Version:       1.2.1
Release:       6
Summary:       Hotspot compile command annotations
License:       ASL 2.0
Group:         Development/Java
URL:           https://github.com/nicoulaj/compile-command-annotations
Source0:       https://github.com/nicoulaj/compile-command-annotations/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-io:commons-io)
#BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.assertj:assertj-core)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(org.jacoco:jacoco-maven-plugin)
# For IT suite
#BuildRequires: mvn(org.codehaus.groovy:groovy)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Annotation based configuration file generator for the
Hotspot JVM JIT compiler.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

# net.ju-n:net-ju-n-parent:32
%pom_remove_parent

# Prevent IT failures
#find ./src/it/tests -name "pom.xml" -exec sed -i "s/@project.build.sourceEncoding@/UTF-8/g" {} +
#find ./src/it/tests -name "pom.xml" -exec sed -i "s/@exec-maven-plugin.version@/1.4.0/g" {} +
#find ./src/it/tests -name "pom.xml" -exec sed -i "s/@maven-compiler-plugin.version@/3.3/g" {} +
# Fails on koji only
%pom_remove_plugin :maven-invoker-plugin

# TestNG support requires version 4.7 or above
%pom_change_dep :testng ::6.8.21

%mvn_file net.ju-n.compile-command-annotations:%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license COPYING

%files javadoc -f .mfiles-javadoc
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12290 |21mr|compiz-0.9.14.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define libcompizconfig %mklibname compizconfig %{major}
%define devcompizconfig %mklibname compizconfig -d

# w/a build failures on i686 (we do not really need a working compiz there, just build it)
%ifarch %{ix86}
%global optflags %{optflags} -Wno-error=format-truncation -Wno-error=format-security
%endif

Summary:	OpenGL composite manager for Xgl and AIGLX
Name:		compiz
Version:	0.9.14.1
Release:	4
License:	GPLv2+ and LGPLv2+ and MIT
Group:		System/X11
Url:		http://www.compiz.org/
# Current source lives at https://launchpad.net/compiz
Source0:	https://launchpad.net/compiz/0.9.14/%{version}/+download/compiz-%{version}.tar.xz
Source1:	compiz.defaults
Source2:	compiz-window-decorator
Source3:	kstylerc.xinit

# fedora sources bumped by x10
Source11:	compiz-gtk
Source12:	compiz-gtk.desktop
Source13:	compiz-gnome.desktop
Source14:	compiz-gnome.session
Patch0:		compiz-0.9.12.2-python-sitearch.patch
Patch1:		compiz-cython-bin.patch
Patch501:	0501-Add-ROSA-graphic-to-the-top-of-the-cube.patch
Patch503:	0503-Do-not-put-window-decorations-on-KDE-screensaver.patch
Patch504:	decrease-cmake-version.patch
Patch505:	focus-prevention-disable.patch
Patch506:	gcc10_common_fix.patch
Patch507:	gtk-extents.patch
Patch509:	remove-unused-or-broken-buttons.patch
Patch510:	reverse-unity-config.patch
Patch511:	screenshot-launch-fix.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-cython
BuildRequires:	python3-pkg-resources
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(libmetacity)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libxslt)
Requires(post,preun):	GConf2
Requires:	compiz-decorator
Requires:	compositing-wm-common
Provides:	compositing-wm
%rename		compiz-bcop

%description
Compiz is an OpenGL composite manager for Xgl and AIGLX.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_bindir}/%{name}-decorator
%{_bindir}/%{name}-window-decorator
%dir %{_libdir}/%{name}
# why do a for loop if all the files go in the same pkg???
%{_libdir}/%{name}/lib*.so
%exclude %{_libdir}/%{name}/libannotate.so
%exclude %{_libdir}/%{name}/libgnomecompat.so
%exclude %{_libdir}/%{name}/libmatecompat.so
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.png
%{_datadir}/%{name}/*.xml
%exclude %{_datadir}/%{name}/annotate.xml
%exclude %{_datadir}/%{name}/gnomecompat.xml
%exclude %{_datadir}/%{name}/matecompat.xml
%dir %{_datadir}/%{name}/cube
%dir %{_datadir}/%{name}/cube/images
%{_datadir}/%{name}/cube/images/*.png
%dir %{_datadir}/%{name}/scale
%dir %{_datadir}/%{name}/scale/images
%{_datadir}/%{name}/scale/images/*.png
%{_datadir}/%{name}/cubeaddon
%{_datadir}/%{name}/mag
%{_datadir}/%{name}/notification
%{_datadir}/%{name}/showmouse
%{_datadir}/%{name}/splash
%{_datadir}/%{name}/colorfilter
%{_datadir}/gnome-control-center/keybindings/50-compiz-*.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/compositing-wm/%{name}.defaults

#----------------------------------------------------------------------------

%package decorator-gtk
Summary:	GTK window decorator for compiz
Group:		System/X11
Provides:	compiz-decorator
Requires:	%{name} = %{EVRD}

%description decorator-gtk
This package provides a GTK window decorator for the compiz OpenGL
compositing manager.

%files decorator-gtk
%{_bindir}/compiz-gtk
%{_bindir}/gtk-window-decorator
%{_datadir}/applications/compiz-gtk.desktop
# split into gnome pkg ???
%{_datadir}/xsessions/compiz-gnome.desktop
%{_datadir}/gnome-session/sessions/compiz-gnome.session
%{_libdir}/%{name}/libannotate.so
%{_libdir}/%{name}/libgnomecompat.so
%{_libdir}/%{name}/libmatecompat.so
%{_datadir}/%{name}/annotate.xml
%{_datadir}/%{name}/gnomecompat.xml
%{_datadir}/%{name}/matecompat.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for compiz
Group:		System/X11
Conflicts:	%{name} < 0.5.1

%description -n %{libname}
This package provides shared libraries for compiz.

%files -n %{libname}
%{_libdir}/libdecoration.so.%{major}*
%{_libdir}/libcompiz_core.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for compiz
Group:		Development/X11
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package provides development files for compiz.

%files -n %{devname}
%dir %{_datadir}/%{name}/xslt
%{_includedir}/%{name}/*
%{_libdir}/libcompiz_core.so
%{_libdir}/libdecoration.so
%{_libdir}/pkgconfig/%{name}*.pc
%{_libdir}/pkgconfig/libdecoration.pc
%{_datadir}/cmake/Modules/*cmake
%{_datadir}/%{name}/cmake
%{_datadir}/%{name}/xslt/*.xslt
%{_datadir}/cmake-*/FindCompiz.cmake
%{_datadir}/cmake-*/FindOpenGLES2.cmake


#----------------------------------------------------------------------------

%package -n ccsm
Summary:	Compiz Config Settings Manager
Group:		System/X11
Provides:	python3-ccm = %{EVRD}
Requires:	python3-compizconfig
BuildArch:	noarch

%description -n ccsm
Configuration tool for Compiz when used with the ccp configuration plugin.

%files -n ccsm -f ccsm.lang
%{_bindir}/ccsm
%{_datadir}/ccsm
%config(noreplace) %{_sysconfdir}/compizconfig/config.conf
%{python3_sitelib}/ccm
%{python3_sitelib}/ccsm-*-py3.*.egg-info
%{_datadir}/applications/ccsm.desktop
%{_datadir}/icons/*/*/*/ccsm.*

#----------------------------------------------------------------------------

%package -n %{libcompizconfig}
Summary:	Backend configuration library from Compiz Fusion
Group:		System/X11
Requires:	compizconfig-backends

%description -n %{libcompizconfig}
Backend configuration library from Compiz Fusion.

%files -n %{libcompizconfig}
%{_libdir}/libcompizconfig.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devcompizconfig}
Summary:	Development files for libcompizconfig
Group:		Development/X11
Provides:	compizconfig-devel = %{EVRD}
Requires:	%{libcompizconfig} = %{EVRD}

%description -n %{devcompizconfig}
Development files for libcompizconfig.

%files -n %{devcompizconfig}
%{_libdir}/libcompizconfig.so
%{_includedir}/compizconfig
%{_libdir}/pkgconfig/libcompizconfig.pc
%{_datadir}/cmake-*/FindCompizConfig.cmake

#----------------------------------------------------------------------------

%package -n compizconfig-backends
Summary:	Backend modules for libcompizconfig
Group:		System/X11

%description -n compizconfig-backends
Backend modules for libcompizconfig.

%files -n compizconfig-backends
%dir %{_libdir}/compizconfig
%{_libdir}/compizconfig/backends
%{_libdir}/libcompizconfig_gsettings_backend.so

#----------------------------------------------------------------------------

%package -n python3-compizconfig
Summary:	Python3 bindings for libcompizconfig
Group:		System/X11

%description -n python3-compizconfig
Python3 bindings for libcompizconfig.

%files -n python3-compizconfig
%{python3_sitelib}/compizconfig*
%ifnarch %ix86
# Prevent duplicate file
%{python3_sitearch}/compizconfig.so
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
export CFLAGS+=" -fno-strict-aliasing -Wno-error=deprecated-declarations" CXXFLAGS+=" -fno-strict-aliasing" FFLAGS+=" -fno-strict-aliasing"

%cmake \
	-DCOMPIZ_PACKAGING_ENABLED=ON \
%ifarch %{e2k}
	-DCOMPIZ_BUILD_TESTING=OFF \
	-DCOMPIZ_WERROR=OFF \
%endif
	-DBUILD_GNOME_KEYBINDINGS=OFF \
	-DCOMPIZ_BUILD_WITH_RPATH=OFF \
	-DCOMPIZ_DISABLE_SCHEMAS_INSTALL=ON \
	-DCOMPIZ_UNUSED_PRIVATE_FIELD_WARNINGS=ON \
	-DCOMPIZ_INSTALL_GCONF_SCHEMA_DIR=%{_sysconfdir}/gconf/schemas ..
# (From ALT) Fixes building with gcc8
#find -name flags.make | while read l; do sed -i 's|\ -Werror\ | |g' $l; done
%make VERBOSE=1 -j1

%install
%makeinstall_std -C build
pushd build
# This should work, but is buggy upstream:
# make DESTDIR=%{buildroot} findcompiz_install
# So we do this instead:
mkdir -p %{buildroot}%{_datadir}/cmake/Modules
cmake -E copy ../cmake/FindCompiz.cmake %{buildroot}%{_datadir}/cmake/Modules
popd

install -m755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}-window-decorator
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/compositing-wm/%{name}.defaults

%find_lang %{name}
%find_lang ccsm

#fedora sources
install %{SOURCE11} %{buildroot}/%{_bindir}

# set up an X session
mkdir -p %{buildroot}%{_datadir}/xsessions
install %{SOURCE13} %{buildroot}/%{_datadir}/xsessions
mkdir -p %{buildroot}%{_datadir}/gnome-session/sessions
install %{SOURCE14} %{buildroot}/%{_datadir}/gnome-session/sessions

desktop-file-install --vendor="" \
	--dir %{buildroot}%{_datadir}/applications \
	%{SOURCE12}

rm -f %{buildroot}%{py2_puresitedir}/*.egg-info

desktop-file-install \
	--vendor="" \
	--remove-category="Compiz" \
	--add-category="GTK" \
	--add-category="Settings" \
	--add-category="DesktopSettings" \
	--add-category="X-MandrivaLinux-CrossDesktop" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12291 |21mr|compositing-server-common-2010.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname compositing-server
%define name %{rname}-common
%define version 2010.1
%define release 6

%define xinit_level 01
%define xinit_name %{xinit_level}%{rname}

Name: %name
Version: %version
Release: %release
Summary: Common tools for compositing servers
Group: System/X11
URL: http://www.mandriva.com
Source0: %{rname}.xinit
Source1: %{rname}.sysconfig
License: GPLv2+
Requires: glxinfo xauth xdpyinfo
BuildArch: noarch

%description
This package contains tools for compositing servers, such as Xgl and
Xmetisse. This includes X session scripts and configuration files.

%prep
%setup -q -c -T

%install
rm -rf %{buildroot}
install -D -m 0755 %SOURCE0 %{buildroot}%{_sysconfdir}/X11/xinit.d/%{xinit_name}
install -D -m 0644 %SOURCE1 %{buildroot}%{_sysconfdir}/sysconfig/%{rname}
install -d %{buildroot}%{_datadir}/%{rname}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sysconfdir}/X11/xinit.d/%{xinit_name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{rname}
%dir %{_datadir}/%{rname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12292 |21mr|compositing-wm-common-2018.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname compositing-wm
%define imgname rosa-top

Name: 	%{rname}-common
Version:	2018.0
Release:	1
Summary: Common tools for compositing window managers
Group: System/X11
URL: http://www.mandriva.com
Source0: %{rname}.xinit
Source1: %{rname}.sysconfig
Source2: %{rname}-start
Source3: %{imgname}.png
Source5: compiz-manager
License: GPLv2+
Requires: glxinfo
Requires: xvinfo

%description
This package contains tools for compositing window managers, such as
Compiz. This includes X session scripts, configuration files and
images.

%prep
%setup -q -c -T

%install
install -D -m 0755 %{SOURCE0} %{buildroot}%{_sysconfdir}/X11/xinit.d/40%{rname}
install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{rname}
install -D -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/%{rname}-start
install -D -m 0755 %{SOURCE5} %{buildroot}%{_bindir}/compiz-manager
install -D -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/%{rname}/%{imgname}.png
perl -pi -e "s!__LIBDIR__!%{_libdir}!" %{buildroot}%{_bindir}/%{rname}-start



# Fix the paths in the compiz-manager script
sed -i "s|/usr/local|/usr|" %{buildroot}%{_bindir}/compiz-manager
sed -i "s|/usr/bin|%{_bindir}|" %{buildroot}%{_bindir}/compiz-manager
sed -i "s|/usr/lib|%{_libdir}|" %{buildroot}%{_bindir}/compiz-manager

# And a default config to override some defaults
mkdir -p %{buildroot}%{_sysconfdir}/xdg/compiz
cat >%{buildroot}%{_sysconfdir}/xdg/compiz/compiz-manager <<EOF
# We start the decorator via compiz' decoration plugin so set it to "no" here.
START_DECORATOR="no"
EOF

%files
%{_sysconfdir}/X11/xinit.d/*
%config(noreplace) %{_sysconfdir}/sysconfig/%{rname}
%config(noreplace) %{_sysconfdir}/xdg/compiz/compiz-manager
%{_bindir}/%{rname}-start
%{_bindir}/compiz-manager
%dir %{_datadir}/%{rname}
%{_datadir}/%{rname}/%{imgname}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12293 |21mr|compress-lzf-1.0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          compress-lzf
Version:       1.0.3
Release:       11
Summary:       Basic LZF codec, compatible with standard C LZF package
License:       ASL 2.0
URL:           https://github.com/ning/compress
Source0:       https://github.com/ning/compress/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Compression codec for LZF encoding for particularly encoding/decoding,
with reasonable compression. Compressor is basic Lempel-Ziv codec,
without Huffman (deflate/gzip) or statistical post-encoding. See
"http://oldhome.schmorp.de/marc/liblzf.html" for more on
original LZF package.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n compress-%{name}-%{version}

find . -name "*.class" -print -delete
find . -name "*.jar" -type f -print -delete

%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

%pom_add_dep junit:junit::test

%mvn_file : %{name}

%build

%mvn_build -- -Poffline-testing

%install
%mvn_install

%files -f .mfiles
%doc README.md VERSION.txt
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12294 |21mr|concurrentlinkedhashmap-lru-1.4.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          concurrentlinkedhashmap-lru
Version:       1.4.2
Release:       8
Summary:       A ConcurrentLinkedHashMap for Java
License:       ASL 2.0
Url:           https://github.com/ben-manes/concurrentlinkedhashmap
Source0:       https://github.com/ben-manes/concurrentlinkedhashmap/archive/%{name}-%{version}.tar.gz

# test deps
%if 0
BuildRequires: mvn(com.github.stephenc.high-scale-lib:high-scale-lib)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(net.sf.ehcache:ehcache)
BuildRequires: mvn(org.hamcrest:hamcrest-library) >= 1.3
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.testng:testng)
# unavailable test deps
BuildRequires: mvn(com.google.caliper:caliper)
BuildRequires: mvn(com.jayway.awaitility:awaitility)
# require cache-benchmark == r7903 from http://sourceforge.net/projects/cachebenchfwk/
BuildRequires: mvn(org.cachebench:cache-benchmark)
%endif

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle
#BuildRequires: maven-site-plugin

BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(com.google.code.findbugs:jsr305)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A high performance version of java.util.LinkedHashMap
for use as a software cache.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n concurrentlinkedhashmap-%{name}-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -type f -print -delete

#sed -i -e "s,<version>3.4</version>,<version>$(rpm -q --qf '%%{VERSION}' maven-site-plugin)</version>,g" pom.xml

# Unavailable
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :taglist-maven-plugin
%pom_remove_plugin :emma-maven-plugin

# Unwanted
%pom_remove_plugin :maven-source-plugin
# BRed in RPM spec, but removing BR in pom.xml due to problems with versions etc.
%pom_remove_plugin :maven-site-plugin

# Remove org.jvnet.wagon-svn:wagon-svn
%pom_xpath_remove "pom:build/pom:extensions"

%pom_xpath_remove "pom:dependencies/pom:dependency[pom:scope='test']"

# Fix http://jira.codehaus.org/browse/MCOMPILER-130
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:compilerArgument"
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" "
<compilerArgument>-Werror</compilerArgument>"
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" "
<compilerArgument>-Xlint:all</compilerArgument>"

# remove bundled Doug Lea JCP JSR-166
rm -r src/main/java/com/googlecode/concurrentlinkedhashmap/ConcurrentHashMapV8.java
sed -i "s|ConcurrentHashMapV8|java.util.concurrent.ConcurrentHashMap|" \
 src/main/java/com/googlecode/concurrentlinkedhashmap/ConcurrentLinkedHashMap.java

# Fix mojo-signatures aId
#sed -i "s|jdk.version}-sun</artifactId>|jdk.version}</artifactId>|" pom.xml
# Disabled currently is broken
%pom_remove_plugin :animal-sniffer-maven-plugin

%mvn_file :%{name} %{name}

%build

# test skipped for unavailable test deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12295 |21mr|concurrent-trees-2.6.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          concurrent-trees
Version:       2.6.1
Release:       5
Summary:       Concurrent Trees for Java
License:       ASL 2.0
URL:           https://github.com/npgall/%{name}/
Source0:       https://github.com/npgall/%{name}/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
# for version 2.6.0 add bnd-maven-plugin
BuildRequires: mvn(biz.aQute.bnd:bnd-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This library provides concurrent Radix Trees and
concurrent Suffix Trees for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -qn %{name}-%{version}
rm -r documentation/javadoc
rm -r documentation/documents
rm documentation/images/dfs-comic.png

# Unneeded tasks
%pom_remove_plugin :maven-release-plugin code
%pom_remove_plugin :maven-gpg-plugin code
%pom_remove_plugin :maven-javadoc-plugin code
%pom_remove_plugin :maven-source-plugin code

%mvn_file :%{name} %{name}

%build
# the following does not work in f28, probably a bug
#%%mvn_build -- -f code/pom.xml
cd code
%mvn_build

%install
cd code
%mvn_install

%files -f code/.mfiles
%doc README.md documentation/
%license LICENSE.txt

%files javadoc -f code/.mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12296 |21mr|concurrentunit-0.4.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           concurrentunit
Version:        0.4.3
Release:        5
Summary:        Toolkit for testing multi-threaded and asynchronous applications
License:        ASL 2.0
URL:            https://github.com/jhalterman/%{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        %{url}/archive/%{name}-%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.hamcrest:hamcrest-all)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  mvn(org.testng:testng)

# runtime optional features
%if 0%{?fedora}
Suggests:       hamcrest
%endif

%description
ConcurrentUnit was created to help developers test multi-threaded
or asynchronous code. It allows you to perform assertions and wait
for operations in any thread, with failures being properly reported
back to the main test thread. If an assertion fails, your test fails,
regardless of which thread the assertion came from.

%package javadoc
Summary:         Javadoc files for %{name}

%description javadoc
%{summary}.


%prep
%autosetup -n%{name}-%{name}-%{version}
# unbundle hamcrest
sed -i /optional/d pom.xml
# W: wrong-file-end-of-line-encoding
sed -i 's,\r,,' *.md

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%license LICENSE.txt
%doc *.md

%files javadoc  -f .mfiles-javadoc
%license LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12297 |21mr|conmon-2.0.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_debug 1
%global with_check 0

%if 0%{?with_debug}
%global _find_debuginfo_dwz_opts %{nil}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif

# Used for comparing with latest upstream tag
# to decide whether to autobuild
%global built_tag v2.0.30
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})

Name:		conmon
Version:	2.0.30
Release:	1
Summary:	OCI container runtime monitor
Group:		Development/Other
License:	ASL 2.0
URL:		https://github.com/containers/conmon
Source0:	%{url}/archive/%{built_tag}.tar.gz
BuildRequires:	git
BuildRequires:	glib2-devel
BuildRequires:	go-md2man
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(systemd)
Requires:	systemd

%description
%{summary}.

%files
%license LICENSE
%doc README.md
%{_bindir}/%{name}
%{_libexecdir}/crio/%{name}
%dir %{_libexecdir}/crio
%{_mandir}/man8/%{name}.8*

#----------------------------------------------------------
%prep
%autosetup -Sgit -n %{name}-%{built_tag_strip}
sed -i 's/install.bin: bin\/conmon/install.bin:/' Makefile
sed -i 's/install.crio: bin\/conmon/install.crio:/' Makefile

%build
%set_build_flags
make DEBUGFLAG="-g" bin/conmon
make GOMD2MAN=go-md2man -C docs

%install
make PREFIX=%{buildroot}%{_prefix} install.bin install.crio
make PREFIX=%{buildroot}%{_prefix} -C docs install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12298 |21mr|conntrack-tools-1.4.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure
# (TODO: fix it!!!) NOTE: https://bugzilla.redhat.com/show_bug.cgi?id=1413408#c2

Summary:	Userspace tools for interacting with the Connection Tracking System
Name:		conntrack-tools
Version:	1.4.6
Release:	12
License:	GPLv2+
Group:		System/Kernel and hardware
URL:		http://www.netfilter.org/projects/conntrack-tools/index.html
Source0:	http://netfilter.org/projects/conntrack-tools/files/%{name}-%{version}.tar.bz2
# From Fedora
Source1:    conntrackd.service
Source2:    conntrackd.conf
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(libmnl) >= 1.0.3
BuildRequires:	pkgconfig(libnetfilter_conntrack) >= 1.0.4
BuildRequires:	pkgconfig(libnetfilter_cttimeout) >= 1.0.0
BuildRequires:	pkgconfig(libnfnetlink) >= 1.0.1
BuildRequires:  pkgconfig(libnetfilter_queue) >= 1.0.2
BuildRequires:  pkgconfig(libnetfilter_cthelper) >= 1.0.0
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libsystemd)

%description
The conntrack-tools are a set of tools targeted at system administrators.
They are conntrack, the userspace command line interface, and conntrackd,
the userspace daemon. The tool conntrack provides a full featured interface
that has replaced the old procfs interface. Using conntrack, you can view and
manage the in-kernel connection tracking state table from userspace. On the
other hand, conntrackd covers the specific aspects of stateful firewalls to
enable highly available scenarios, and can be used as statistics collector as
well.

%prep
%setup -q

%build
%configure \
    --disable-static \
    --enable-systemd
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/conntrackd
install -d -m 0755 %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/conntrackd/

%files
%doc AUTHORS TODO doc/stats/conntrackd.conf
%dir %{_sysconfdir}/conntrackd
%config(noreplace) %{_sysconfdir}/conntrackd/conntrackd.conf	
%{_unitdir}/conntrackd.service
%{_sbindir}/conntrack
%{_sbindir}/conntrackd
%{_sbindir}/nfct
%{_libdir}/%{name}
%{_mandir}/man5/conntrackd.conf.5*
%{_mandir}/man8/conntrack.8*
%{_mandir}/man8/conntrackd.8*
%{_mandir}/man8/nfct.8*

	
%post
%systemd_post conntrackd.service
 
%preun
%systemd_preun conntrackd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12299 |21mr|console-gentoo-style-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Console Gentoo style
Name:		console-gentoo-style
Version:	0.1
Release:	11
Source0:	console-gentoo-style-%{version}.tar.gz
License:	GPLv2
Group:		Shells
BuildArch:	noarch

%description
Console Gentoo style.

%prep
%setup -q

%install
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
cp -rf ./gentoo_colors %{buildroot}%{_sysconfdir}/bash_completion.d/gentoo_colors

sed 's|use_color=false|use_color=true|' -i %{buildroot}%{_sysconfdir}/bash_completion.d/gentoo_colors

%files
%{_sysconfdir}/bash_completion.d/gentoo_colors


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12300 |21mr|console-setup-1.195-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for configuring the console using X Window System key maps
Name:		console-setup
Version:	1.195
Release:	1
Group:		Terminals
# For a breakdown of the licensing, see COPYRIGHT, copyright, copyright.fonts and copyright.xkb
License:	GPLv2+ and MIT and Public Domain
Url:		http://packages.debian.org/cs/sid/console-setup
Source0:	http://ftp.de.debian.org/debian/pool/main/c/%{name}/%{name}_%{version}.tar.xz
# Fixes installing paths to Fedora style
Patch0:		console-setup-paths.patch
# Fixes FSF address, sent to upstream
Patch1:		console-setup-1.76-fsf-address.patch
Requires:	kbd
# require 'xkeyboard-config' to have X Window keyboard descriptions?
BuildArch:	noarch

%description
This package provides the console with the same keyboard configuration
scheme that X Window System has. Besides the keyboard, the package configures
also the font on the console.  It includes a rich collection of fonts and
supports several languages that would be otherwise unsupported on the console
(such as Armenian, Georgian, Lao and Thai).

%files
%doc README COPYRIGHT CHANGES copyright.fonts copyright.xkb Fonts/copyright
%{_bindir}/ckbcomp
%{_bindir}/setupcon
%config(noreplace) %{_sysconfdir}/default/console-setup
%config(noreplace) %{_sysconfdir}/default/keyboard
%{_datadir}/consolefonts
%{_datadir}/consoletrans
%{_mandir}/man1/ckbcomp.1*
%{_mandir}/man1/setupcon.1*
%{_mandir}/man5/console-setup.5*
%{_mandir}/man5/keyboard.5*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1

%build
%make build-linux

%install
make prefix="%{buildroot}" install-linux
# we don't want another set of keyboard descriptions, we want to use descriptions from
# xkeyboard-config (require it?), so removing it
# or maybe have these from tarball it in optional subpackage?
rm -rf %{buildroot}%{_sysconfdir}/console-setup

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12301 |21mr|constant-pool-scanner-1.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           constant-pool-scanner
Version:        1.2
Release:        14
Summary:        Java constant pool scanner

License:        CDDL or GPLv2 with exceptions
URL:            https://github.com/jenkinsci/constant-pool-scanner
Source0:        https://github.com/jenkinsci/%{name}/archive/%{name}-%{version}.tar.gz
Source1:        https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-io)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Simple utility to scan Java bytecode for class references in the constant pool.

%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-%{name}-%{version}

cp %{SOURCE1} .

# remove build-time dependency on findbugs-annotations
%pom_remove_dep com.github.stephenc.findbugs:findbugs-annotations
sed -i '/SuppressWarnings/d' src/test/java/org/jenkinsci/constant_pool_scanner/samples/D.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12302 |21mr|containerd-1.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with debug

%if %{with debug}
%global _dwz_low_mem_die_limit 0
%endif
%global _empty_manifest_terminate_build 0

%if ! 0%{?gobuild:1}
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
%endif

%global import_path github.com/containerd/containerd

#define beta 0

Name:		containerd
Version:	1.7.1
%global commit 1677a17964311325ed1c31e2c0a3589ce6d5c30d
%global tag v%{version}%{?beta:-%{beta}}
Release:	2
Group:		System/Base
Epoch:		1
Summary:	An industry-standard container runtime
License:	ASL 2.0
URL:		https://containerd.io
Source0:	https://%{import_path}/archive/%{tag}/containerd-%{version}%{?beta:-%{beta}}.tar.gz
Source1:	containerd.service
Source2:	containerd.toml
%{?go_compiler:BuildRequires: compiler(go-compiler)}
BuildRequires:	golang >= 1.10
BuildRequires:	protobuf-compiler
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	btrfs-devel
BuildRequires:	go-md2man
BuildRequires:	go-srpm-macros
%{?systemd_requires}
# https://github.com/containerd/containerd/issues/1508#issuecomment-335566293
Requires: (runc or crun)
# renamed package
Obsoletes: docker-containerd < 1.5.5
Conflicts: docker-containerd < 1.5.5

%description
containerd is an industry-standard container runtime with an emphasis on
simplicity, robustness and portability. It is available as a daemon for Linux
and Windows, which can manage the complete container lifecycle of its host
system: image transfer and storage, container execution and supervision,
low-level storage and network attachments, etc.

%prep
%autosetup -n containerd-%{version}%{?beta:-%{beta}}

%build
mkdir -p GO/src/github.com/%{name}
ln -s $(pwd) GO/src/github.com/containerd/containerd
export TMP_GOPATH="$(pwd)/GO"
export GOPATH=%{gopath}:"$(pwd)/GO"

mkdir -p src/%(dirname %{import_path})
ln -s ../../.. src/%{import_path}
#export GOPATH=$(pwd):%{gopath}
export LDFLAGS="-X %{import_path}/version.Package=%{import_path} -X %{import_path}/version.Version=%{tag} -X %{import_path}/version.Revision=%{commit}"
for i in cmd/*; do
	%gobuild -o bin/$(basename $i) %{import_path}/$i
done


%install
mkdir -p %{buildroot}%{_bindir}
install -D -m 0755 bin/* %{buildroot}%{_bindir}/
install -D -m 0644 %{S:1} %{buildroot}%{_unitdir}/containerd.service
install -D -m 0644 %{S:2} %{buildroot}%{_sysconfdir}/containerd/config.toml

ln -s containerd %{buildroot}%{_bindir}/docker-containerd
ln -s containerd-shim %{buildroot}%{_bindir}/docker-containerd-shim

# These are needed at build time only
rm %{buildroot}%{_bindir}/gen-manpages %{buildroot}%{_bindir}/protoc-gen-go-fieldpath

%post
%systemd_post containerd.service

%preun
%systemd_preun containerd.service

%postun
%systemd_postun_with_restart containerd.service

%files
%license LICENSE
%doc README.md
%{_bindir}/containerd
%{_bindir}/containerd-shim
%{_bindir}/containerd-shim-runc-v1
%{_bindir}/containerd-shim-runc-v2
%{_bindir}/containerd-stress
%{_bindir}/docker-containerd
%{_bindir}/docker-containerd-shim
%{_bindir}/ctr
%{_unitdir}/containerd.service
%dir %{_sysconfdir}/containerd
%config(noreplace) %{_sysconfdir}/containerd/config.toml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12303 |21mr|containernetworking-plugins-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_devel 1
%global with_bundled 1
%global with_check 0
%global with_unit_test 0

%global with_debug 1

%if 0%{?with_debug}
%global _find_debuginfo_dwz_opts %{nil}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package   %{nil}
%endif

%global provider github
%global provider_tld com
%global project containernetworking
%global repo plugins
%global import_path %{provider}.%{provider_tld}/%{project}/%{repo}
%global git0 https://%{import_path}

# Used for comparing with latest upstream tag
# to decide whether to autobuild
%global built_tag v1.0.1
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})

Name:		%{project}-%{repo}
Version:	1.0.1
Release:	1
Summary:	Libraries for writing CNI plugin
Group:		Development/Other
License:	ASL 2.0
URL:		%{git0}
Source0:	%{git0}/archive/%{built_tag}.tar.gz
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:	golang >= 1.16.6
BuildRequires:	go-rpm-macros
BuildRequires:	git
BuildRequires:	go-md2man
BuildRequires:	pkgconfig(systemd)
Requires:	systemd

%if ! 0%{?with_bundled}
BuildRequires: go-bindata
BuildRequires: golang(github.com/vishvananda/netlink)
BuildRequires: golang(github.com/coreos/go-systemd/activation)
BuildRequires: golang(github.com/d2g/dhcp4)
BuildRequires: golang(github.com/d2g/dhcp4client)
BuildRequires: golang(github.com/vishvananda/netlink)
BuildRequires: golang(golang.org/x/sys/unix)
BuildRequires: golang(github.com/coreos/go-iptables/iptables)
%endif

Provides:	%{project}-cni = %{EVRD}
Provides:	kubernetes-cni

%description
The CNI (Container Network Interface) project consists of a specification
and libraries for writing plugins to configure network interfaces in Linux
containers, along with a number of supported plugins. CNI concerns itself
only with network connectivity of containers and removing allocated resources
when the container is deleted.

%files
%license LICENSE
%doc *.md
%dir %{_libexecdir}/cni
%{_libexecdir}/cni/*
%{_unitdir}/cni-dhcp.service
%{_unitdir}/cni-dhcp.socket

#---------------------------------------------------------------------
%if 0%{?with_devel}
%package devel
Summary:	%{summary}
Group:		Development/Other
BuildArch:	noarch

%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/coreos/go-iptables/iptables)
BuildRequires: golang(github.com/vishvananda/netlink)
BuildRequires: golang(golang.org/x/sys/unix)
%endif

Requires: golang(github.com/coreos/go-iptables/iptables)
Requires: golang(github.com/vishvananda/netlink)
Requires: golang(golang.org/x/sys/unix)

Provides: golang(%{import_path}/libcni) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/invoke) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/invoke/fakes) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/ip) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/ipam) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/ns) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/skel) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/testutils) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/types) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/types/020) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/types/current) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/utils) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/utils/hwaddr) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/utils/sysctl) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/version) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/version/legacy_examples) = %{version}-%{release}
Provides: golang(%{import_path}/pkg/version/testhelpers) = %{version}-%{release}
Provides: golang(%{import_path}/plugins/ipam/host-local/backend) = %{version}-%{release}
Provides: golang(%{import_path}/plugins/ipam/host-local/backend/allocator) = %{version}-%{release}
Provides: golang(%{import_path}/plugins/ipam/host-local/backend/disk) = %{version}-%{release}
Provides: golang(%{import_path}/plugins/ipam/host-local/backend/testing) = %{version}-%{release}
Provides: golang(%{import_path}/plugins/test/noop/debug) = %{version}-%{release}

%description devel
This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

%files devel -f devel.file-list
%license LICENSE
%doc *.md
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}

%endif

#---------------------------------------------------------------------

%if 0%{?with_unit_test} && 0%{?with_devel}
%package unit-test-devel
Summary:	Unit tests for %{name} package
Group:		Development/Other
Requires: %{name}-devel = %{EVRD}

%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires: golang(github.com/d2g/dhcp4)
BuildRequires: golang(github.com/onsi/ginkgo)
BuildRequires: golang(github.com/onsi/ginkgo/config)
BuildRequires: golang(github.com/onsi/ginkgo/extensions/table)
BuildRequires: golang(github.com/onsi/gomega)
BuildRequires: golang(github.com/onsi/gomega/gbytes)
BuildRequires: golang(github.com/onsi/gomega/gexec)
BuildRequires: golang(github.com/vishvananda/netlink/nl)
%endif

Requires: golang(github.com/d2g/dhcp4)
Requires: golang(github.com/onsi/ginkgo)
Requires: golang(github.com/onsi/ginkgo/config)
Requires: golang(github.com/onsi/ginkgo/extensions/table)
Requires: golang(github.com/onsi/gomega)
Requires: golang(github.com/onsi/gomega/gbytes)
Requires: golang(github.com/onsi/gomega/gexec)
Requires: golang(github.com/vishvananda/netlink/nl)

%description unit-test-devel
This package contains unit tests for project
providing packages with %{import_path} prefix.

%files unit-test-devel -f unit-test-devel.file-list
%license LICENSE
%doc *.md

%endif

#---------------------------------------------------------------------

%prep
%autosetup -Sgit -n %{repo}-%{built_tag_strip}
rm -rf plugins/main/windows

# Use correct paths in cni-dhcp unitfiles
sed -i 's/\/opt\/cni\/bin/\%{_prefix}\/libexec\/cni/' plugins/ipam/dhcp/systemd/cni-dhcp.service

%build
export ORG_PATH="%{provider}.%{provider_tld}/%{project}"
export REPO_PATH="$ORG_PATH/%{repo}"

if [ ! -h gopath/src/${REPO_PATH} ]; then
        mkdir -p gopath/src/${ORG_PATH}
        ln -s ../../../.. gopath/src/${REPO_PATH} || exit 255
fi

export GOPATH=$(pwd)/gopath
mkdir -p $(pwd)/bin

echo "Building plugins"
export PLUGINS="plugins/meta/* plugins/main/* plugins/ipam/* plugins/sample"
for d in $PLUGINS; do
        if [ -d "$d" ]; then
                plugin="$(basename "$d")"
                echo "  $plugin"
                %gobuild -o "${PWD}/bin/$plugin" "$@" "$REPO_PATH"/$d
        fi
done

%install
install -d -p %{buildroot}%{_libexecdir}/cni/
install -p -m 0755 bin/* %{buildroot}/%{_libexecdir}/cni

install -dp %{buildroot}%{_unitdir}
install -p plugins/ipam/dhcp/systemd/cni-dhcp.service %{buildroot}%{_unitdir}
install -p plugins/ipam/dhcp/systemd/cni-dhcp.socket %{buildroot}%{_unitdir}

# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . \( -iname "*.go" -or -iname "*.s" \) \! -iname "*_test.go" | grep -v "vendor") ; do
    dirprefix=$(dirname $file)
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list

    while [ "$dirprefix" != "." ]; do
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
        dirprefix=$(dirname $dirprefix)
    done
done
%endif

# testing files for this project
%if 0%{?with_unit_test} && 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test-devel.file-list
for file in $(find . -iname "*_test.go" | grep -v "vendor") ; do
    dirprefix=$(dirname $file)
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list

    while [ "$dirprefix" != "." ]; do
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
        dirprefix=$(dirname $dirprefix)
    done
done
%endif

%if 0%{?with_devel}
sort -u -o devel.file-list devel.file-list
%endif

%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
# Since we aren't packaging up the vendor directory we need to link
# back to it somehow. Hack it up so that we can add the vendor
# directory from BUILD dir as a gopath to be searched when executing
# tests from the BUILDROOT dir.
ln -s ./ ./vendor/src # ./vendor/src -> ./vendor

export GOPATH=%{buildroot}/%{gopath}:$(pwd)/vendor:%{gopath}
%endif

%if ! 0%{?gotest:1}
%global gotest go test
%endif

%gotest %{import_path}/libcni
%gotest %{import_path}/pkg/invoke
%gotest %{import_path}/pkg/ip
%gotest %{import_path}/pkg/ipam
%gotest %{import_path}/pkg/ns
%gotest %{import_path}/pkg/skel
%gotest %{import_path}/pkg/types
%gotest %{import_path}/pkg/types/020
%gotest %{import_path}/pkg/types/current
%gotest %{import_path}/pkg/utils
%gotest %{import_path}/pkg/utils/hwaddr
%gotest %{import_path}/pkg/version
%gotest %{import_path}/pkg/version/legacy_examples
%gotest %{import_path}/pkg/version/testhelpers
%gotest %{import_path}/plugins/ipam/dhcp
%gotest %{import_path}/plugins/ipam/host-local
%gotest %{import_path}/plugins/ipam/host-local/backend/allocator
%gotest %{import_path}/plugins/main/bridge
%gotest %{import_path}/plugins/main/ipvlan
%gotest %{import_path}/plugins/main/loopback
%gotest %{import_path}/plugins/main/macvlan
%gotest %{import_path}/plugins/main/ptp
%gotest %{import_path}/plugins/meta/flannel
%gotest %{import_path}/plugins/test/noop
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12304 |21mr|containers-common-1-37
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Below definitions are used to deliver config files from a particular branch
# of c/image, c/common, c/storage vendored in all of Buildah, Podman and Skopeo.
# These vendored components must have the same version. If it is not the case,
# pick the oldest version on c/image, c/common, c/storage vendored in
# Buildah/Podman/Skopeo.
%global skopeo_branch main
%global podman_branch main
%global buildah_branch main
%global image_branch  main
%global common_branch main
%global storage_branch main
%global shortnames_branch main

%global github_containers https://raw.githubusercontent.com/containers

Name:		containers-common
Version:	1
Release:	37
Summary:	Common configuration and documentation for containers
Group:		Development/Other
License:	ASL 2.0
BuildArch:	noarch
BuildRequires:	go-md2man
Provides:	skopeo-containers = %{EVRD}
#Requires:	(container-selinux >= 2:2.162.1 if selinux-policy)
Requires:	crun
Recommends:	fuse-overlayfs
Recommends:	slirp4netns
Source1: %{github_containers}/common/%{common_branch}/docs/containers.conf.5.md
Source2: %{github_containers}/common/%{common_branch}/pkg/config/containers.conf
Source3: %{github_containers}/common/%{common_branch}/pkg/seccomp/seccomp.json
Source4: %{github_containers}/common/%{common_branch}/pkg/subscriptions/mounts.conf
Source5: %{github_containers}/image/%{image_branch}/docs/containers-auth.json.5.md
Source6: %{github_containers}/image/%{image_branch}/docs/containers-certs.d.5.md
Source7: %{github_containers}/image/%{image_branch}/docs/containers-policy.json.5.md
Source8: %{github_containers}/image/%{image_branch}/docs/containers-registries.conf.5.md
Source9: %{github_containers}/image/%{image_branch}/docs/containers-registries.conf.d.5.md
Source10: %{github_containers}/image/%{image_branch}/docs/containers-registries.d.5.md
Source11: %{github_containers}/image/%{image_branch}/docs/containers-signature.5.md
Source12: %{github_containers}/image/%{image_branch}/docs/containers-transports.5.md
Source13: %{github_containers}/image/%{image_branch}/registries.conf
Source14: %{github_containers}/common/%{common_branch}/docs/containers-mounts.conf.5.md
Source15: %{github_containers}/shortnames/%{shortnames_branch}/shortnames.conf
Source16: %{github_containers}/skopeo/%{skopeo_branch}/default.yaml
Source17: %{github_containers}/skopeo/%{skopeo_branch}/default-policy.json
Source18: %{github_containers}/storage/%{storage_branch}/docs/containers-storage.conf.5.md
Source19: %{github_containers}/storage/%{storage_branch}/storage.conf
Source20: RPM-GPG-KEY-redhat-release
Source21: registry.access.redhat.com.yaml
Source22: registry.redhat.io.yaml
Source23: %{github_containers}/buildah/%{buildah_branch}/docs/Containerfile.5.md
Source24: %{github_containers}/buildah/%{buildah_branch}/docs/containerignore.5.md
Source25: %{github_containers}/buildah/%{buildah_branch}/docs/links/.containerignore.5

%description
This package contains common configuration files and documentation for container
tools ecosystem, such as Podman, Buildah and Skopeo.

It is required because the most of configuration files and docs come from projects
which are vendored into Podman, Buildah, Skopeo, etc. but they are not packaged
separately.

%files
%dir %{_sysconfdir}/containers
%dir %{_sysconfdir}/containers/certs.d
%dir %{_sysconfdir}/containers/oci
%dir %{_sysconfdir}/containers/oci/hooks.d
%dir %{_sysconfdir}/containers/registries.conf.d
%dir %{_sysconfdir}/containers/registries.d
%config(noreplace) %{_sysconfdir}/containers/policy.json
%config(noreplace) %{_sysconfdir}/containers/registries.conf
%config(noreplace) %{_sysconfdir}/containers/registries.conf.d/000-shortnames.conf
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-redhat-release
%config(noreplace) %{_sysconfdir}/containers/registries.d/default.yaml
%{_sysconfdir}/containers/registries.d/registry.redhat.io.yaml
%{_sysconfdir}/containers/registries.d/registry.access.redhat.com.yaml
%ghost %{_sysconfdir}/containers/storage.conf
%ghost %{_sysconfdir}/containers/containers.conf
%dir %{_sharedstatedir}/containers/sigstore
%{_mandir}/man5/*.5*
%{_mandir}/man5/.*.5*
%dir %{_datadir}/containers
%{_datadir}/containers/storage.conf
%{_datadir}/containers/containers.conf
%{_datadir}/containers/mounts.conf
%{_datadir}/containers/seccomp.json
%dir %{_datadir}/rhel/secrets
%{_datadir}/rhel/secrets/*

#-------------------------------------------------------------------
%prep
cp %{SOURCE1} .
cp %{SOURCE2} .
cp %{SOURCE3} .
cp %{SOURCE4} .
cp %{SOURCE5} .
cp %{SOURCE6} .
cp %{SOURCE7} .
cp %{SOURCE8} .
cp %{SOURCE9} .
cp %{SOURCE10} .
cp %{SOURCE11} .
cp %{SOURCE12} .
cp %{SOURCE13} .
cp %{SOURCE14} .
cp %{SOURCE15} .
cp %{SOURCE16} .
cp %{SOURCE17} .
cp %{SOURCE18} .
cp %{SOURCE19} .
cp %{SOURCE20} .
cp %{SOURCE21} .
cp %{SOURCE22} .
cp %{SOURCE23} .
cp %{SOURCE24} .
cp %{SOURCE25} .

%build

%install
# install config and policy files for registries
install -dp %{buildroot}%{_sysconfdir}/containers/{certs.d,oci/hooks.d,registries.conf.d,registries.d}
install -dp %{buildroot}%{_sharedstatedir}/containers/sigstore
install -m0644 default.yaml %{buildroot}%{_sysconfdir}/containers/registries.d/default.yaml
install -dp %{buildroot}%{_datadir}/containers
install -m0644 storage.conf %{buildroot}%{_datadir}/containers/storage.conf
install -m0644 registries.conf %{buildroot}%{_sysconfdir}/containers/registries.conf
install -m0644 shortnames.conf %{buildroot}%{_sysconfdir}/containers/registries.conf.d/000-shortnames.conf
install -m0644 default-policy.json %{buildroot}%{_sysconfdir}/containers/policy.json
install -dp %{buildroot}%{_sysconfdir}/pki/rpm-gpg
install -m0644 RPM-GPG-KEY-redhat-release %{buildroot}%{_sysconfdir}/pki/rpm-gpg
install -dp %{buildroot}%{_sysconfdir}/containers/registries.d
install -m0644 registry.access.redhat.com.yaml %{buildroot}%{_sysconfdir}/containers/registries.d
install -m0644 registry.redhat.io.yaml %{buildroot}%{_sysconfdir}/containers/registries.d

# install manpages
install -dp %{buildroot}%{_mandir}/man5
go-md2man -in containers-storage.conf.5.md -out %{buildroot}%{_mandir}/man5/containers-storage.conf.5
go-md2man -in containers-registries.conf.5.md -out %{buildroot}%{_mandir}/man5/containers-registries.conf.5
go-md2man -in containers-policy.json.5.md -out %{buildroot}%{_mandir}/man5/containers-policy.json.5
go-md2man -in containers-mounts.conf.5.md -out %{buildroot}%{_mandir}/man5/containers-mounts.conf.5
go-md2man -in containers-signature.5.md -out %{buildroot}%{_mandir}/man5/containers-signature.5
go-md2man -in containers-transports.5.md -out %{buildroot}%{_mandir}/man5/containers-transports.5
go-md2man -in containers-certs.d.5.md -out %{buildroot}%{_mandir}/man5/containers-certs.d.5
go-md2man -in containers-registries.d.5.md -out %{buildroot}%{_mandir}/man5/containers-registries.d.5
go-md2man -in containers.conf.5.md -out %{buildroot}%{_mandir}/man5/containers.conf.5
go-md2man -in Containerfile.5.md -out %{buildroot}%{_mandir}/man5/Containerfile.5
go-md2man -in containerignore.5.md -out %{buildroot}%{_mandir}/man5/containerignore.5
go-md2man -in containers-auth.json.5.md -out %{buildroot}%{_mandir}/man5/containers-auth.json.5
go-md2man -in containers-registries.conf.d.5.md -out %{buildroot}%{_mandir}/man5/containers-registries.conf.d.5
install -m0644 .containerignore.5 %{buildroot}%{_mandir}/man5/.containerignore.5

# install config files for mounts, containers and seccomp
install -m0644 mounts.conf %{buildroot}%{_datadir}/containers/mounts.conf
install -m0644 seccomp.json %{buildroot}%{_datadir}/containers/seccomp.json
install -m0644 containers.conf %{buildroot}%{_datadir}/containers/containers.conf

# install secrets patch directory
install -d -p -m 755 %{buildroot}/%{_datadir}/rhel/secrets
# rhbz#1110876 - update symlinks for subscription management
ln -s %{_sysconfdir}/pki/entitlement %{buildroot}%{_datadir}/rhel/secrets/etc-pki-entitlement
ln -s %{_sysconfdir}/rhsm %{buildroot}%{_datadir}/rhel/secrets/rhsm
ln -s %{_sysconfdir}/yum.repos.d/redhat.repo %{buildroot}%{_datadir}/rhel/secrets/redhat.repo


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12305 |21mr|control-0.8.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _controldir %{_sysconfdir}/control.d/facilities

Name:		control
Version:	0.8.0
Release:	10
Summary:	A set of scripts to control installed system facilities
Group:		System/Base
License:	GPLv2+
Source0:	%{name}-%{version}.tar

# https://git.altlinux.org/srpms/c/crontab-control.git
Source1:	at.control
Source2:	crontab.control

# https://git.altlinux.org/srpms/c/cdrdao.git
Source3:	cdrdao.control

# https://git.altlinux.org/gears/s/shadow.git
Source4:	chage.control
Source5:	chfn.control
Source6:	chsh.control
Source7:	gpasswd.control
Source8:	groupmems.control
Source9:	newgidmap.control
Source10:	newgrp.control
Source11:	newuidmap.control

# https://git.altlinux.org/gears/c/chrony.git
Source12:	chrony.sh

# https://git.altlinux.org/gears/c/cups.git
Source13:	cups.control

# https://git.altlinux.org/srpms/d/dvdrwtools-control.git
# growisofs dvd+rw-format dvd+rw-booktype dvd+rw-mediainfo dvd-ram-control
Source14:	dvdrwtools.control

# https://git.altlinux.org/gears/f/fuse-common.git
Source15:	fusermount-control

# https://git.altlinux.org/gears/h/hddtemp.git
Source16:	hddtemp.control

# https://git.altlinux.org/gears/l/libnss-role.git
Source17:	libnss-role.control

# https://git.altlinux.org/gears/u/util-linux.git
Source18:	mount.control
Source19:	write.control

# https://git.altlinux.org/gears/m/mtr.git
Source20:	mtr.control

# https://git.altlinux.org/gears/m/mariadb.git
Source21:	mysql.control
Source22:	mysqld-chroot.control

# https://git.altlinux.org/gears/n/nfs.git
Source23:	nfsmount

# https://git.altlinux.org/gears/o/openssl-gost-engine.git
Source24:	openssl-gost.control

# https://git.altlinux.org/gears/p/passwd.git
Source25:	passwd.control

# https://git.altlinux.org/gears/p/passwdqc.git
# passwdqc-enforce
Source26:	passwdqc.control

# https://git.altlinux.org/gears/i/iputils.git
Source27:	ping.control

# https://git.altlinux.org/gears/p/postfix-control.git
Source28:	postfix.control
Source29:	postqueue.control

# https://git.altlinux.org/gears/p/ppp.git
Source30:	ppp.control

# https://git.altlinux.org/srpms/c/cdrkit-control.git
# readom wodim
Source31:	cdrkit.control

# https://git.altlinux.org/gears/r/rpcbind.git
Source32:	rpcbind.control

# https://git.altlinux.org/gears/o/openssh.git
Source33:	sftp.control
Source34:	sshd-allow-groups.control
Source35:	sshd-password-auth.control

# https://git.altlinux.org/gears/S/SimplePAMApps.git
Source36:	su.control

# https://git.altlinux.org/gears/s/sudo.git
Source37:	sudo.control
Source38:	sudoers.control
Source39:	sudopw.control
Source40:	sudopw.config
Source41:	sudoreplay.control
Source42:	sudowheel.control

# https://git.altlinux.org/gears/t/tcb-hash-prefix-control.git
#Source43:	tcb-hash-prefix.control

# https://git.altlinux.org/srpms/u/udisks2.git
Source44:	udisks2.control

# https://git.altlinux.org/gears/v/virtualbox.git
Source45:	virtualbox.control.in

# https://git.altlinux.org/gears/x/xdg-user-dirs.git
Source46:	xdg-user-dirs.control

# https://git.altlinux.org/srpms/x/xorg-server-control.git
Source47:	xorg-server.control

Source1000:	control.rpmlintrc

BuildArch:	noarch

# due to sed -i support
Requires:	libcap-utils
Requires:	sed

%description
The scripts included in this package provide a common interface to
control system facilities provided by a number of other packages.
This is intended for use primarily by packages which are providing
a facility that can potentially be dangerous to system security,
to let you enable, disable, or configure the facility independently
from package installation.

%files
%{_sbindir}/control*
%{_rpmmacrodir}/macros.control
%config %{_sysconfdir}/control.d
%attr(0700,root,root) %config %{_sysconfdir}/sudoers.d/99-sudopw
%ghost %{_sysconfdir}/sudoers.d/wheel-env-reset-control
%ghost /var/run/control/
%{_mandir}/man8/*.8*
%{_mandir}/ru/man8/*.8*

#------------------------------------------------------------------
%prep
%setup -q

%build
sed -i s/@VERSION@/%{version}-%{release}/ control

%install
mkdir -p %{buildroot}{%{_controldir},%{_sbindir},%{_mandir}/man8,%{_mandir}/ru/man8,/var/run/control}
install -p -m755 control{,-dump,-restore} %{buildroot}%{_sbindir}/
install -p -m755 functions %{buildroot}%{_sysconfdir}/control.d/
install -p -m644 control{,-dump,-restore}.8 %{buildroot}%{_mandir}/man8/
install -p -m644 ru/control{,-dump,-restore}.8 %{buildroot}%{_mandir}/ru/man8/
install -pD -m644 control.macros %{buildroot}%{_rpmmacrodir}/macros.control

# Generate shell functions provides list.
(
	echo '# shell functions provides list'
	for f in %{buildroot}%{_sysconfdir}/control.d/*; do
		[ -f "$f" -a -x "$f" ] || continue
		sed -ne 's/^\([A-Za-z][A-Za-z_0-9]*[[:space:]]*\)()$/\1/pg' "$f"
	done |LC_COLLATE=C sort -u
) >%{buildroot}%{_controldir}/.provides.sh


install -pD -m755 %{_sourcedir}/at.control %{buildroot}%{_controldir}/at
install -pD -m755 %{_sourcedir}/crontab.control %{buildroot}%{_controldir}/crontab
install -pD -m755 %{_sourcedir}/cdrdao.control %{buildroot}%{_controldir}/cdrdao
install -pD -m755 %{_sourcedir}/chage.control %{buildroot}%{_controldir}/chage
install -pD -m755 %{_sourcedir}/chfn.control %{buildroot}%{_controldir}/chfn
install -pD -m755 %{_sourcedir}/chsh.control %{buildroot}%{_controldir}/chsh
install -pD -m755 %{_sourcedir}/gpasswd.control %{buildroot}%{_controldir}/gpasswd
# no /usr/bin/groupmems in ROSA
#install -pD -m755 %{_sourcedir}/groupmems.control %{buildroot}%{_controldir}/groupmems
install -pD -m755 %{_sourcedir}/newgidmap.control %{buildroot}%{_controldir}/newgidmap
install -pD -m755 %{_sourcedir}/newgrp.control %{buildroot}%{_controldir}/newgrp
install -pD -m755 %{_sourcedir}/newuidmap.control %{buildroot}%{_controldir}/newuidmap

install -pD -m755 %{_sourcedir}/chrony.sh %{buildroot}%{_controldir}/chrony
sed -i %{buildroot}%{_controldir}/chrony \
	-e '/^EXE=/d' \
	-e 's,.\+condrestart,\tsystemctl --dry-run condrestart chronyd,'

install -pD -m755 %{_sourcedir}/cups.control %{buildroot}%{_controldir}/cups
sed -i %{buildroot}%{_controldir}/cups \
	-e '/[^(]Listen.\+631/s/localhost/[[:graph:]]+/' \
	-e '/(Listen.\+631/s/localhost/[[:graph:]]\\+/'

for n in growisofs dvd+rw-format dvd+rw-booktype dvd+rw-mediainfo dvd-ram-control; do
	install -pD -m755 %{_sourcedir}/dvdrwtools.control "%{buildroot}%{_controldir}/$n"
	sed -i "s/@NAME@/$n/" "%{buildroot}%{_controldir}/$n"
done

install -pD -m755 %{_sourcedir}/fusermount-control %{buildroot}%{_controldir}/fusermount
sed -i %{buildroot}%{_controldir}/fusermount \
	-e '/RULES/s,60-fuse,99-fuse3,' \
	-e '/FUSE_BINARY/s,fusermount,&3,'

install -pD -m755 %{_sourcedir}/hddtemp.control %{buildroot}%{_controldir}/hddtemp
install -pD -m755 %{_sourcedir}/libnss-role.control %{buildroot}%{_controldir}/libnss-role
install -pD -m755 %{_sourcedir}/mount.control %{buildroot}%{_controldir}/mount
install -pD -m755 %{_sourcedir}/write.control %{buildroot}%{_controldir}/write

for n in mtr mtr-packet; do
	install -pD -m755 %{_sourcedir}/mtr.control "%{buildroot}%{_controldir}/$n"
	sed -i "%{buildroot}%{_controldir}/$n" \
		-e "s/@NAME@/$n/" \
		-e "/^BINARY=/s,bin,sbin," \
		-e '/control_fmode/s/DIR/BINARY/' \
		-e '/control_fmode/a exit'
done

# Don't install for now. It needs to change mariadb config first.
#install -pD -m755 %{_sourcedir}/mysql.control %{buildroot}%{_controldir}/mysqld
#install -pD -m755 %{_sourcedir}/mysqld-chroot.control %{buildroot}%{_controldir}/mysqld-chroot

install -pD -m755 %{_sourcedir}/nfsmount %{buildroot}%{_controldir}/nfsmount

install -pD -m755 %{_sourcedir}/openssl-gost.control %{buildroot}%{_controldir}/openssl-gost
sed -i '/OPENSSL_CNF=/s,openssl,pki/tls,' %{buildroot}%{_controldir}/openssl-gost

install -pD -m755 %{_sourcedir}/passwd.control %{buildroot}%{_controldir}/passwd
install -pD -m755 %{_sourcedir}/passwdqc.control %{buildroot}%{_controldir}/passwdqc-enforce
install -pD -m755 %{_sourcedir}/ping.control %{buildroot}%{_controldir}/ping
install -pD -m755 %{_sourcedir}/ppp.control %{buildroot}%{_controldir}/ppp
install -pD -m755 %{_sourcedir}/rpcbind.control %{buildroot}%{_controldir}/rpcbind

install -pD -m755 %{_sourcedir}/postfix.control %{buildroot}%{_controldir}/postfix
sed -i %{buildroot}%{_controldir}/postfix \
	-e '/^EXE=/d' \
	-e 's,.\+condreload,\tsystemctl --dry-run condreload postfix,'

install -pD -m755 %{_sourcedir}/postqueue.control %{buildroot}%{_controldir}/postqueue
sed -i %{buildroot}%{_controldir}/postqueue \
	-e 's,^DIRECTORY=.\+,BINARY=/usr/sbin/postqueue,' \
	-e '/DIRECTORY.\+postqueue/d' \
	-e '/control_fmode/s/DIRECTORY/BINARY/'

# no cdrkit in ROSA
#for n in readom wodim; do
#	install -pD -m755 %{_sourcedir}/cdrkit.control "%{buildroot}%{_controldir}/$n"
#	sed -i "s/@NAME@/$n/" "%{buildroot}%{_controldir}/$n"
#done

install -pD -m755 %{_sourcedir}/sshd-allow-groups.control %{buildroot}%{_controldir}/sshd-allow-groups
install -pD -m755 %{_sourcedir}/sshd-password-auth.control %{buildroot}%{_controldir}/sshd-password-auth
install -pD -m755 %{_sourcedir}/sftp.control %{buildroot}%{_controldir}/sftp
sed -i 's,@LIBEXECDIR@,%{_libexecdir},g' %{buildroot}%{_controldir}/sftp
sed -i '/CONFIG=/s,openssh,ssh,' %{buildroot}%{_controldir}/*

install -pD -m755 %{_sourcedir}/su.control %{buildroot}%{_controldir}/su
install -pD -m755 %{_sourcedir}/sudo.control %{buildroot}%{_controldir}/sudo

install -pD -m755 %{_sourcedir}/sudoers.control %{buildroot}%{_controldir}/sudoers
sed -i %{buildroot}%{_controldir}/sudoers \
	-e '/CONFIG=/s,sudoers,&.d/wheel-env-reset-control,' \
	-e 's,WHEEL_USERS,%%wheel,'

install -pD -m755 %{_sourcedir}/sudopw.control %{buildroot}%{_controldir}/sudopw
mkdir -p %{buildroot}%{_sysconfdir}/sudoers.d
install -pD -m644 %{_sourcedir}/sudopw.config %{buildroot}%{_sysconfdir}/sudoers.d/99-sudopw
install -pD -m755 %{_sourcedir}/sudoreplay.control %{buildroot}%{_controldir}/sudoreplay

install -pD -m755 %{_sourcedir}/sudowheel.control %{buildroot}%{_controldir}/sudowheel
sed -i 's,WHEEL_USERS,%%wheel,' %{buildroot}%{_controldir}/sudowheel

#install -pD -m755 %{_sourcedir}/tcb-hash-prefix.control %{buildroot}%{_controldir}/tcb-hash-prefix
#install -pD -m755 %{_sourcedir}/udisks2.control %{buildroot}%{_controldir}/udisks2

install -pD -m755 %{_sourcedir}/virtualbox.control.in %{buildroot}%{_controldir}/virtualbox
sed -i 's,\(CONFIG=\).*,\1%{_udevrulesdir}/virtualbox.rules,' %{buildroot}%{_controldir}/virtualbox

install -pD -m755 %{_sourcedir}/xdg-user-dirs.control %{buildroot}%{_controldir}/xdg-user-dirs
install -pD -m755 %{_sourcedir}/xorg-server.control %{buildroot}%{_controldir}/xorg-server


%post
# fusermount
groupadd -r -f fuse


# restore control settings after update
%transfiletriggerun -- %{_docdir}/at
control-dump at
%transfiletriggerin -- %{_docdir}/at
groupadd -r -f crontab
control-restore at 2>/dev/null

%transfiletriggerun -- %{_docdir}/cdrdao
control-dump cdrdao
%transfiletriggerin -- %{_docdir}/cdrdao
control-restore cdrdao 2>/dev/null

%transfiletriggerun -- %{_docdir}/shadow-utils
control-dump chage gpasswd newgidmap newgrp newuidmap
%transfiletriggerin -- %{_docdir}/shadow-utils
control-restore chage gpasswd newgidmap newgrp newuidmap 2>/dev/null

%transfiletriggerun -- %{_docdir}/util-linux
control-dump chfn mount chsh su write
%transfiletriggerin -- %{_docdir}/util-linux
control-restore chfn mount chsh su write 2>/dev/null

%transfiletriggerun -- %{_docdir}/cronie
control-dump crontab
%transfiletriggerin -- %{_docdir}/cronie
groupadd -r -f crontab
control-restore crontab 2>/dev/null

%transfiletriggerun -- %{_docdir}/dvd+rw-tools
control-dump growisofs dvd+rw-format dvd+rw-booktype dvd+rw-mediainfo dvd-ram-control
%transfiletriggerin -- %{_docdir}/dvd+rw-tools
control-restore growisofs dvd+rw-format dvd+rw-booktype dvd+rw-mediainfo dvd-ram-control 2>/dev/null

%transfiletriggerun -- %{_docdir}/hddtemp
control-dump hddtemp
%transfiletriggerin -- %{_docdir}/hddtemp
control-restore hddtemp 2>/dev/null

%transfiletriggerun -- %{_docdir}/libnss-role
control-dump libnss-role
control libnss-role disabled
%transfiletriggerin -- %{_docdir}/libnss-role
control-restore libnss-role 2>/dev/null

%transfiletriggerun -- %{_docdir}/mtr
control-dump mtr mtr-packet
%transfiletriggerin -- %{_docdir}/mtr
groupadd -r -f netadmin
control-restore mtr mtr-packet 2>/dev/null

#%%transfiletriggerun -- %{_docdir}/mariadb
#control-dump mysql mysqld-chroot
#%%transfiletriggerin -- %{_docdir}/mariadb
#groupadd -r -f mysql
#useradd -r -g mysql -d %{_localstatedir}/mysql -s /dev/null -n mysql >/dev/null 2>&1 ||:
#control-restore mysql mysqld-chroot 2>/dev/null

%transfiletriggerun -- %{_sharedstatedir}/nfs
control-dump nfsmount
%transfiletriggerin -- %{_sharedstatedir}/nfs
control-restore nfsmount 2>/dev/null

%transfiletriggerun -- %{_docdir}/postfix
control-dump postqueue
%transfiletriggerin -- %{_docdir}/postfix
groupadd -r -f mailadm
control-restore postqueue 2>/dev/null

%transfiletriggerun -- %{_docdir}/ppp
control-dump ppp
%transfiletriggerin -- %{_docdir}/ppp
control-restore ppp 2>/dev/null

%transfiletriggerin -- %{_docdir}/rpcbind
groupadd -r -f rpc
useradd -r -g rpc -d / -s /dev/null -c 'Portmapper RPC user' -n rpc >/dev/null 2>&1 ||:

%transfiletriggerun -- %{_docdir}/sudo
control-dump sudo sudoreplay
%transfiletriggerin -- %{_docdir}/sudo
control-restore sudo sudoreplay 2>/dev/null
if ! [ -e %{_sysconfdir}/sudoers.d/wheel-env-reset-control ]; then
cat << 'EOF' > %{_sysconfdir}/sudoers.d/wheel-env-reset-control
# If env_reset is disabled, sudo will NOT reset the environment
# to only contain the fixed list of variables.
# See sudoers(5) for details.
#Defaults:%%wheel !env_reset
EOF
chmod 0440 %{_sysconfdir}/sudoers.d/wheel-env-reset-control
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12306 |21mr|control-sshd-permit-root-login-0.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		control-sshd-permit-root-login
Version:	0.0.1
Release:	2
Summary:	Control rules for the OpenSSH server PermitRootLogin option
License:	GPLv2+
Group:		System/Servers
Source0:	sshd-permit-root-login.control
BuildRequires:	control
Requires:	control
BuildArch:	noarch

%description
This package contains control rules for OpenSSH server PermitRootLogin option.
See control(8) for details.

#-----------------------------------------------------------
%prep

%install
install -pD -m755 %{SOURCE0} \
    %{buildroot}%{_controldir}/sshd-permit-root-login
sed -i '/CONFIG=/s,openssh,ssh,' %{buildroot}%{_controldir}/sshd-permit-root-login

%files
%attr(755,root,root) %{_controldir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12307 |21mr|cookcc-0.3.3-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             cookcc
Version:          0.3.3
Release:          17
Summary:          Lexer and Parser Generator
License:          BSD
URL:              https://github.com/coconut2015/cookcc

# svn export -r 678 http://cookcc.googlecode.com/svn/trunk/ cookcc-0.3.3
# tar -J -cf cookcc-0.3.3.tar.xz cookcc-0.3.3
Source0:          %{name}-%{version}.tar.xz
Source1:          %{name}-%{version}-pom.xml

Patch0:           %{name}-%{version}-xerces.patch
Patch1:           %{name}-%{version}-buildxml.patch
Patch2:           %{name}-%{version}-port-to-jsr-269.patch
Patch3:           %{name}-0.3.3-freemarker2.3.2+.patch

Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    ant
BuildRequires:    cookxml
BuildRequires:    freemarker2.3.23
BuildRequires:    javapackages-local
BuildRequires:    xerces-j2

Requires:         freemarker2.3.23
Requires:         cookxml
Requires:         xerces-j2

%description
CookCC is a lexer and parser (LALR (1)) generator project, combined.
It is written in Java, but the target languages can vary. 

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

find . -name '*.jar' -delete

# sed -i 's/javac\ /javac\ includeantruntime="false"\ /g' build.xml

%build
CLASSPATH=$(build-classpath xerces-j2 freemarker2.3.23-2.3.23 cookxml) ant cookcc_jar javadocs

%install
%mvn_artifact %{SOURCE1} dist/%{name}-%{version}.jar
%mvn_install -J javadocs

%files -f .mfiles
%license LICENSE_cookcc.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE_cookcc.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12308 |21mr|cookxml-3.0.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             cookxml
Version:          3.0.2
Release:          17
Summary:          Dynamic XML data binding tool
License:          BSD
URL:              http://cookxml.yuanheng.org/
Group:            Development/Java
Source0:          http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}_src-%{version}.zip
Source1:          %{name}-build.xml
Source2:          %{name}-pom.xml

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    jpackage-utils
BuildRequires:    java-devel
BuildRequires:    ant
BuildRequires:    javapackages-local

Requires:         jpackage-utils
Requires:         java-headless

%description
CookXml is a powerful general purpose dynamic XML data binding tool.
It is designed to be easy to use and easily extensible. 

%package javadoc
Summary:          Javadocs for %{name}
Requires:         jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -qc

find . -name '*.jar' -exec rm -rf {} \;

sed -i 's/\r//' LICENSE

%build
cp %{SOURCE1} .
ant -f %{name}-build.xml cookxml_jar apidoc

%install
# JAR
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
cp -p dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

# JAVADOC
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -rp apidoc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# POM
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom

# DEPMAP
%add_maven_depmap JPP-%{name}.pom %{name}.jar

%files -f .mfiles
%doc LICENSE

%files javadoc
%{_javadocdir}/%{name}
%doc LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12309 |21mr|coordgen-3.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		3
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		coordgen
Version:	3.0.2
Release:	2
Summary:	Schrodinger-developed 2D Coordinate Generation
License:	BSD
Group:		System/Libraries
URL:		https://github.com/schrodinger/coordgenlibs
Source0:	https://github.com/schrodinger/coordgenlibs/archive/v%{version}/%{name}libs-%{version}.tar.gz
Patch0:		coordgen-3.0.1-fix-cmake-config-files-install-dir.patch

BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	maeparser-devel
BuildRequires:	pkgconfig(zlib)

%description
This is Schrödinger, Inc's 2D coordinate generation. It was formerly
proprietary code, but is now released under the BSD license. The emphasis
of these algorithms are on quality of 2D coordinates rather than speed of
generation. The algorithm distinguishes itself from many others by doing
well with both macrocycles and metal complexes. It also does extremely
well on typical drug-like small molecules, and has been validated on
millions of compounds.

Schrodinger intends to continue to contribute to this code as it still
uses it inside its products, but will also be happy if others contribute
pull-requests when there are improvements they would like to make. We'll
also be happy to hear bug reports or feature requests from use of this
code,though make no guarantee on our ability to process these.

#------------------------------------------------

%package -n	%{libname}
Summary:	Schrodinger-developed 2D Coordinate Generation
Group:		System/Libraries

%description -n	%{libname}
This is Schrödinger, Inc's 2D coordinate generation. It was formerly
proprietary code, but is now released under the BSD license. The emphasis
of these algorithms are on quality of 2D coordinates rather than speed of
generation. The algorithm distinguishes itself from many others by doing
well with both macrocycles and metal complexes. It also does extremely
well on typical drug-like small molecules, and has been validated on
millions of compounds.

Schrodinger intends to continue to contribute to this code as it still
uses it inside its products, but will also be happy if others contribute
pull-requests when there are improvements they would like to make. We'll
also be happy to hear bug reports or feature requests from use of this
code,though make no guarantee on our ability to process these.

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
Header files for development with %{name}.

#------------------------------------------------

%prep
%autosetup -p1 -n %{name}libs-%{version}

%build
%cmake -DCOORDGEN_USE_MAEPARSER=ON
%make_build

%install
%make_install -C build

mkdir -p %{buildroot}%{_datadir}/coordgen/
install -m 0644 templates.mae %{buildroot}%{_datadir}/coordgen/

%files -n %{libname}
%doc README.md
%license LICENSE
%{_libdir}/lib%{name}.so.%{major}{,.*}

%files -n %{develname}
%doc README.md
%license LICENSE
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}/
%{_datadir}/coordgen/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12310 |21mr|copy-jdk-configs-4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global project copy_jdk_configs
%global file %{project}.lua
%global fixFile %{project}_fixFiles.sh
%global rpm_state_dir %{_localstatedir}/lib/rpm-state

Name:    copy-jdk-configs

# hash relevant to version tag
%global  htag af29c16382df045311ed6f7fc9688aa1b0cfff68
Version: 4.0
Release: 1
Summary: JDKs configuration files copier

License:  BSD
URL:      https://pagure.io/%{project}
Source0:  %{URL}/raw/%{htag}/f/%{file}
Source1:  %{URL}/raw/%{htag}/f/LICENSE
Source2:  %{URL}/raw/%{htag}/f/%{fixFile}

# we need to duplicate msot of the percents in that script so they survive rpm expansion (even in that sed they have to be duplicated)
%global pretrans_install %(cat %{SOURCE0} | sed s/%%/%%%%/g | sed s/\\^%%%%/^%%/g) 

Group:          Development/Java
BuildArch: noarch

Requires: lua
Requires: lua-posix

%description
Utility script to transfer JDKs configuration files between updates or for
archiving. With script to fix incorrectly created rpmnew files

%prep
cp -a %{SOURCE1} .


%build
#blob

%pretrans -p <lua>
function createPretransScript()
-- the sript must be available during pretrans, so multiply it to tmp
  os.execute("mkdir -p %{rpm_state_dir}")
  temp_path="%{rpm_state_dir}/%{file}"
-- print("generating " .. temp_path)
  file = io.open(temp_path, "w")
  file:write([[%{pretrans_install}]])
  file:close()
end

-- in netinst, the above call may fail. pcall should save instalation (as there is nothing to copy anyway)
-- https://bugzilla.redhat.com/show_bug.cgi?id=1295701
-- todo, decide whether to check for {rpm_state_dir} and skip on not-existing, or keep creating
if pcall(createPretransScript) then
-- ok
else
--  print("Error running %{name} pretrans.")
end

%install
mkdir -p $RPM_BUILD_ROOT/%{_libexecdir}
cp -a %{SOURCE0} $RPM_BUILD_ROOT/%{_libexecdir}/%{file}
cp -a %{SOURCE2} $RPM_BUILD_ROOT/%{_libexecdir}/%{fixFile}

%posttrans
# remove file created in pretrans
# echo "removing %{rpm_state_dir}/%{file}" || :
rm "%{rpm_state_dir}/%{file}" 2> /dev/null || :

%files 
%{_libexecdir}/%{file}
%{_libexecdir}/%{fixFile}
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12311 |21mr|coreutils-8.32-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with crosscompile
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%bcond_without single

# do not make coreutils-single depend on /usr/bin/coreutils
%global __requires_exclude ^/bin/coreutils$
%global __requires_exclude ^%{_bindir}/coreutils$

Summary:	The GNU core utilities: a set of tools commonly used in shell scripts
Name:		coreutils
Version:	8.32
Release:	5
License:	GPLv3+
Group:		System/Base
Url:		http://www.gnu.org/software/coreutils/
Source0:	http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
Source2:	coreutils-DIR_COLORS.256color
Source3:	coreutils-colorls.sh
Source4:	coreutils-colorls.csh
# Russian man page
Source5:	coreutils_man_ru.tar.gz
# require_selinux_(): use selinuxenabled(8) if available
Patch105:	coreutils-8.26-selinuxenable.patch
#SELINUX Patch - implements Redhat changes
#(upstream did some SELinux implementation unlike with RedHat patch)
Patch950:	coreutils-selinux.patch

# fileutils
Patch1155:	coreutils-8.24-force-option--override--interactive-option.patch
Patch118:	fileutils-4.1-ls_h.patch
Patch500:	coreutils-8.3-mem.patch

#add info about TZ envvar to date manpage
Patch703:	coreutils-8.21-dateman.patch
Patch713:	coreutils-4.5.3-langinfo.patch

# (sb) lin18nux/lsb compliance - normally from here:
# http://www.openi18n.org/subgroups/utildev/patch/
# this one is actually a merger of 5.2 and 5.3, as join segfaults
# compiled with gcc4 and the 5.1/5.2 patch
# fwang: we often get this patch from fedora
Patch800:	coreutils-i18n.patch

Patch909:	coreutils-5.1.0-64bit-fixes.patch

# https://qa.mandriva.com/show_bug.cgi?id=38577
Patch911:	coreutils-8.3-groupfix.patch

Patch1011:	coreutils-8.26-DIR_COLORS-mdkconf.patch
#(peroyvind): fix a test that fails to compile with -Werror=format-security
Patch1014:	coreutils-8.22-check-string-format.patch
#(peroyvind): add missing header includes
Patch1015:	coreutils-8.24-include-missing-headers.patch
# https://github.com/coreutils/coreutils/issues/11
Patch1016:	coreutils-8.28-check-for-__builtin_mul_overflow_p.patch
Patch1017:	coreutils-8.28-inline.patch

# fedora patches
#add note about no difference between binary/text mode on Linux - md5sum manpage
Patch2101:	coreutils-6.10-manpages.patch
#do display processor type for uname -p/-i based on uname(2) syscall
Patch2103:	coreutils-8.2-uname-processortype.patch
#df --direct
Patch2104:	coreutils-8.24-df-direct.patch
#add note about mkdir --mode behaviour into info documentation(#610559)
Patch2107:	coreutils-8.4-mkdir-modenote.patch
# (sb) lin18nux/lsb compliance - expand/unexpand
Patch2108:	coreutils-i18n-expand-unexpand.patch
# i18n patch for cut - old version - used
Patch2109:	coreutils-i18n-cut-old.patch
# The unexpand patch above is not correct. Sent to the patch authors
Patch2110:	coreutils-i18n-fix-unexpand.patch
#(un)expand - allow multiple files on input - broken by patch 801
Patch2111:	coreutils-i18n-fix2-expand-unexpand.patch
#(un)expand - test BOM headers
Patch2112:	coreutils-i18n-un-expand-BOM.patch
# make 'sort -h' work for arbitrary column even when using UTF-8 locales
Patch2113:	coreutils-i18n-sort-human.patch
# fold: preserve new-lines in mutlibyte text (#1418505)
Patch2114:	coreutils-i18n-fold-newline.patch

# do not use IF_LINT for initialization of scalar variables
Patch2115:	https://src.fedoraproject.org/rpms/coreutils/raw/master/f/coreutils-8.32-if-lint.patch
# ls: restore 8.31 behavior on removed directories
Patch2116:	https://src.fedoraproject.org/rpms/coreutils/raw/master/f/coreutils-8.32-ls-removed-dir.patch

#getgrouplist() patch from Ulrich Drepper.
Patch2908:	coreutils-8.14-getgrouplist.patch
%if %{with crosscompile}
Patch3001:	dummy_help2man.patch
%endif
#Cve's
Patch5000:	CVE-2024-0684.patch

#BuildRequires:	locales-fr
#BuildRequires:	locales-ja
#BuildRequires:	locales-zh
#BuildRequires:	locales-tr
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	strace
BuildRequires:	texinfo >= 4.3
BuildRequires:	acl-devel
BuildRequires:	attr-devel
BuildRequires:	cap-devel
BuildRequires:	net-tools
%if !%{with single}
# disabled when build as single binary
BuildRequires:	gmp-devel
BuildRequires:	pkgconfig(openssl)
%endif
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
Provides:	stat = %{EVRD}
Provides:	mktemp = %{EVRD}
Recommends:	coreutils-doc

%description
This package is the union of the old GNU fileutils, sh-utils, and
textutils packages.

These tools are the GNU versions of common useful and popular
file & text utilities which are used for:
- file management
- shell scripts
- modifying text file (spliting, joining, comparing, modifying, ...)

Most of these programs have significant advantages over their Unix
counterparts, such as greater speed, additional options, and fewer
arbitrary limits.

%package doc
Summary:	Coreutils documentation in info format
Group:		Books/Computer books
Requires:	coreutils
BuildArch:	noarch

%description doc
This package contains coreutils documentation in GNU info format.

%prep
%autosetup -p1

chmod a+x tests/misc/sort-mb-tests.sh tests/df/direct.sh tests/cp/no-ctx.sh
chmod +w ./src/dircolors.h
./src/dcgen ./src/dircolors.hin > ./src/dircolors.h

export DEFAULT_POSIX2_VERSION=200112
aclocal -I m4 --dont-fix
automake --gnits --add-missing
autoconf --force

# XXX docs should say /var/run/[uw]tmp not /etc/[uw]tmp
sed -e 's,/etc/utmp,/var/run/utmp,g;s,/etc/wtmp,/var/run/wtmp,g' -i doc/coreutils.texi

%build
# disabled when build as single binary:
# openssl
# gmp
%configure \
	--enable-largefile \
	--enable-no-install-program=hostname,uptime,kill \
	--enable-install-program=arch \
%if %{with selinux}
	--with-selinux \
%else
	--without-selinux \
%endif
	--with-packager="%{packager}" \
	--with-packager-version="%{version}-%{release}" \
	--with-packager-bug-reports="%{bugurl}" \
%if %{with single}
	--enable-single-binary=symlinks \
	--without-openssl \
	--without-gmp \
%else
	--disable-single-binary \
	--with-openssl \
	--with-gmp \
%endif
	--with-tty-group

# Regenerate manpages
touch man/*.x

%make_build

#check
#make check

%install
%make_install

# man pages are not installed with make install
make mandir=%{buildroot}%{_mandir} install-man

# let be compatible with old fileutils, sh-utils and textutils packages :
mkdir -p %{buildroot}{/bin,%{_bindir},%{_sbindir}}
for f in basename arch cat chgrp chmod chown coreutils cp cut date dd df echo env expr false id link ln ls mkdir mknod mktemp mv nice pwd rm rmdir sleep sort stat stty sync touch true uname unlink tac
do
    mv %{buildroot}{%{_bindir},/bin}/$f || :
done

# chroot was in /usr/sbin :
mv %{buildroot}{%{_bindir},%{_sbindir}}/chroot
# {cat,sort,cut} were previously moved from bin to /usr/bin and linked into
for f in cut env expr tac true; do
    ln -s /bin/$f %{buildroot}%{_bindir}/$f
done

for f in who; do
    ln -s /usr/bin/$f %{buildroot}/bin/$f
done

mkdir -p %{buildroot}%{_mandir}/ru/man1

install -p -m644 src/dircolors.hin -D %{buildroot}%{_sysconfdir}/DIR_COLORS
install -p -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/DIR_COLORS.256color
install -p -m644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/profile.d/90_colorls.sh
install -p -m644 %{SOURCE4} -D %{buildroot}%{_sysconfdir}/profile.d/90_colorls.csh

pushd %{buildroot}%{_mandir}/ru/man1
tar -xvzf %{SOURCE5}
popd

#TV# find_lang look for LC_MESSAGES, not LC_TIME:
find %{buildroot}%{_datadir}/locale/ -name coreutils.mo | grep LC_TIME | xargs rm -f

%if %{with single}
# Coreutils lives in /bin, not /usr/bin
for i in %{_bindir} %{_sbindir}; do
    cd %{buildroot}$i
	for i in *; do
	    rm $i
	    ln -sf ../../bin/coreutils $i
	done
    cd -
done
%endif

# (tpg) compress these files
xz --text ChangeLog

# see comment in %%files
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/coreutils

%find_lang %{name}

%files -f %{name}.lang
%config(noreplace) %{_sysconfdir}/DIR_COLORS
%config(noreplace) %{_sysconfdir}/DIR_COLORS.256color
%{_sysconfdir}/profile.d/90_colorls.sh
%{_sysconfdir}/profile.d/90_colorls.csh
/bin/*
%{_bindir}/*
%{_sbindir}/chroot
%dir %{_libexecdir}/coreutils
%{_libexecdir}/coreutils/libstdbuf.so
# This file triggers rebuilding initrds when coreutils package is updated
# to keep them on the host and inside initrds in sync,
# but!!! unlike other packages with /var/spool/initramfs-regen/*,
# NO dependency from rosa-kernel-tools here to avoid too complex
# dependency graph which must not be complex in coreutils
/var/spool/initramfs-regen/coreutils

%files doc
%doc ABOUT-NLS ChangeLog.xz NEWS THANKS TODO README
%{_infodir}/coreutils*
%{_mandir}/man*/*
%{_mandir}/ru/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12312 |21mr|coro-mock-1.0-0.16.e55ca83git
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git e55ca83

%global namedreltag -SNAPSHOT
%global namedversion %{version}%{?namedreltag}

Name: coro-mock
Version: 1.0
Release: 0.16.%{git}git
Summary: A mock library for compiling JVM coroutine-using code on JVMs without coroutines
License: Public Domain
Url: https://github.com/headius/coro-mock
Source0: https://github.com/headius/%{name}/tarball/%{git}/headius-%{name}-%{git}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A small mock library for compiling JVM coroutine-utilizing code on JVMs
without coroutines.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n headius-%{name}-%{git}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12313 |21mr|corosync-3.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __requires_exclude devel\\(libqb

%define	major		4
%define	maj_cmap	4
%define	maj_cpg		4
%define	maj_sam		4
%define	maj_cfg		7
%define	maj_quorum	5
%define	maj_totem	5
%define	maj_vote	8
%define	libname_common	%mklibname %{name}_common %{major}
%define	libcmap		%mklibname cmap %{maj_cmap}
%define	libcpg		%mklibname cpg %{maj_cpg}
%define	libsam		%mklibname sam %{maj_sam}
%define	libcfg		%mklibname cfg %{maj_cfg}
%define	libquorum	%mklibname quorum %{maj_quorum}
%define	libtotem_pg	%mklibname totem_pg %{maj_totem}
%define	libvotequorum	%mklibname votequorum %{maj_vote}
%define	devname %mklibname -d %{name}

Summary:	The Corosync Cluster Engine and Application Programming Interfaces
Name:		corosync
Version:	3.1.6
Release:	1
License:	BSD
Group:		System/Base
Url:		http://corosync.github.io/corosync
Source0:	http://build.clusterlabs.org/corosync/releases/corosync-%{version}.tar.gz
BuildRequires:	augeas
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libknet)
BuildRequires:	pkgconfig(libnozzle)
BuildRequires:	pkgconfig(libqb)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(nss)

%description
This package contains the Corosync Cluster Engine Executive, several default
APIs and libraries, default configuration files and a systemd unit.

%files
%doc AUTHORS ChangeLog LICENSE README.recovery
%{_sbindir}/%{name}*
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_datadir}/augeas/lenses
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/service.d
%dir %{_sysconfdir}/%{name}/uidgid.d
%dir %{_sysconfdir}/sysconfig/
%{_sysconfdir}/dbus-1/system.d/%{name}-signals.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/corosync
%config(noreplace) %{_sysconfdir}/sysconfig/corosync-notifyd
%dir %{_localstatedir}/lib/%{name}
%{_mandir}/man5/%{name}.xml.5*
%{_mandir}/man5/%{name}.conf.5*
%{_mandir}/man5/votequorum.5*
%{_mandir}/man7/%{name}_overview.7*
%{_mandir}/man7/cmap_keys.7*
%{_mandir}/man8/%{name}-*.8*
%{_mandir}/man8/%{name}.8*
%{_unitdir}/%{name}-notifyd.service
%{_unitdir}/%{name}.service
%dir /var/log/cluster
%{_sysconfdir}/logrotate.d/%{name}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#---------------------------------------------------------------------------

%package -n %{libcmap}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libcmap}
This package contains corosync libraries.

%files -n %{libcmap}
%doc LICENSE
%{_libdir}/libcmap.so.%{maj_cmap}*

#---------------------------------------------------------------------------

%package -n %{libname_common}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libname_common}
This package contains corosync libraries.

%files -n %{libname_common}
%doc LICENSE
%{_libdir}/lib%{name}_common.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{libcpg}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libcpg}
This package contains corosync libraries.

%files -n %{libcpg}
%doc LICENSE
%{_libdir}/libcpg.so.%{maj_cpg}*

#---------------------------------------------------------------------------

%package -n %{libsam}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libsam}
This package contains corosync libraries.

%files -n %{libsam}
%doc LICENSE
%{_libdir}/libsam.so.%{maj_sam}*

#---------------------------------------------------------------------------

%package -n %{libcfg}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libcfg}
This package contains corosync libraries.

%files -n %{libcfg}
%doc LICENSE
%{_libdir}/libcfg.so.%{maj_cfg}*

#---------------------------------------------------------------------------

%package -n %{libquorum}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libquorum}
This package contains corosync libraries.

%files -n %{libquorum}
%doc LICENSE
%{_libdir}/libquorum.so.%{maj_quorum}*

#---------------------------------------------------------------------------

%package -n %{libvotequorum}
Summary:	The Corosync Cluster Engine Libraries
Group:		System/Libraries

%description -n %{libvotequorum}
This package contains corosync libraries.

%files -n %{libvotequorum}
%doc LICENSE
%{_libdir}/libvotequorum.so.%{maj_vote}*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	The Corosync Cluster Engine Development Kit
Group:		Development/C
Requires:	%{libcmap} = %{EVRD}
Requires:	%{libname_common} = %{EVRD}
Requires:	%{libcpg} = %{EVRD}
Requires:	%{libsam} = %{EVRD}
Requires:	%{libcfg} = %{EVRD}
Requires:	%{libquorum} = %{EVRD}
Requires:	%{libvotequorum} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains include files and man pages used to develop using
the Corosync Cluster Engine APIs.

%files -n %{devname}
%doc LICENSE README.recovery
%{_includedir}/%{name}/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*.3*

#---------------------------------------------------------------------------

%prep
%setup -q


%build
./autogen.sh
%configure \
	--disable-static \
	--enable-systemd \
	--enable-dbus \
	--enable-watchdog \
	--enable-augeas \
	--enable-xmlconf \
	--enable-vqsim \
	--enable-nozzle \
	--enable-user-flags \
	--with-systemddir=%{_unitdir}
%make

%install
%makeinstall_std

# drop docs and html docs for now
rm -rf %{buildroot}%{_docdir}/*

# add logs directory
mkdir -p %{buildroot}/var/log/cluster

# main config
mv %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf.example %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf

# /etc/sysconfig/corosync-notifyd
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 tools/corosync-notifyd.sysconfig.example %{buildroot}%{_sysconfdir}/sysconfig/%{name}-notifyd
# /etc/sysconfig/corosync
install -m 644 init/corosync.sysconfig.example %{buildroot}%{_sysconfdir}/sysconfig/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12314 |21mr|coturn-4.5.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Do not AutoReq example scripts
# TODO: remove patch from RPM which removes this by default
%global __requires_exclude_from ^%{_defaultdocdir}/coturn/scripts.*$

%define devname %mklibname turnclient -s -d

Name:           coturn
Version:        4.5.2
Release:        5
Summary:        TURN/STUN & ICE Server
Group:          System/Servers
License:        BSD
URL:            https://github.com/coturn/coturn/
Source0:        https://github.com/coturn/coturn/archive/%{version}/%{name}-%{version}.tar.gz
Source1:        coturn.service
Source2:        coturn.tmpfilesd
Source3:        coturn.logrotate
Source4:        coturn.sysusersd
BuildRequires:  gcc
BuildRequires:  hiredis-devel
BuildRequires:  libevent-devel >= 2.0.0
BuildRequires:  make
BuildRequires:  mariadb-devel
BuildRequires:  openssl-devel
BuildRequires:  postgresql-devel
BuildRequires:  sqlite-devel
BuildRequires:  %{_bindir}/sqlite3
BuildRequires:  systemd
Requires(pre):  /bin/systemd-sysusers
Recommends:     logrotate
Recommends:     perl-interpreter
Recommends:     perl(DBI)
Recommends:     perl(HTTP::Request::Common)
Recommends:     perl(strict)
Recommends:     perl(warnings)
Recommends:     telnet
Provides:       turnserver = %{EVRD}

%description
The Coturn TURN Server is a VoIP media traffic NAT traversal server and gateway.
It can be used as a general-purpose network traffic TURN server/gateway, too.

This implementation also includes some extra features. Supported RFCs:

TURN specs:
- RFC 5766 - base TURN specs
- RFC 6062 - TCP relaying TURN extension
- RFC 6156 - IPv6 extension for TURN
- Experimental DTLS support as client protocol.

STUN specs:
- RFC 3489 - "classic" STUN
- RFC 5389 - base "new" STUN specs
- RFC 5769 - test vectors for STUN protocol testing
- RFC 5780 - NAT behavior discovery support

The implementation fully supports the following client-to-TURN-server protocols:
- UDP (per RFC 5766)
- TCP (per RFC 5766 and RFC 6062)
- TLS (per RFC 5766 and RFC 6062); TLS1.0/TLS1.1/TLS1.2
- DTLS (experimental non-standard feature)

Supported relay protocols:
- UDP (per RFC 5766)
- TCP (per RFC 6062)

Supported user databases (for user repository, with passwords or keys, if
authentication is required):
- SQLite
- MySQL
- PostgreSQL
- Redis

Redis can also be used for status and statistics storage and notification.

Supported TURN authentication mechanisms:
- long-term
- TURN REST API (a modification of the long-term mechanism, for time-limited
  secret-based authentication, for WebRTC applications)

The load balancing can be implemented with the following tools (either one or a
combination of them):
- network load-balancer server
- DNS-based load balancing
- built-in ALTERNATE-SERVER mechanism.

%files
%license LICENSE
%{_bindir}/turnserver
%{_bindir}/turnadmin
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.redis
%{_datadir}/%{name}/*.sql
%{_datadir}/%{name}/*.sh
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/README.*
%dir %{_docdir}/%{name}/etc
%doc %{_docdir}/%{name}/etc/*
%dir %{_docdir}/%{name}/scripts
%dir %{_docdir}/%{name}/scripts/*
%{_docdir}/%{name}/scripts/*.sh
%{_docdir}/%{name}/scripts/readme.txt
%doc %{_docdir}/%{name}/scripts/*/*
%{_mandir}/man1/coturn.1.*
%{_mandir}/man1/turnserver.1.*
%{_mandir}/man1/turnadmin.1.*
%dir %attr(0750,root,coturn) %{_sysconfdir}/%{name}
%config(noreplace) %attr(0640,root,coturn) %{_sysconfdir}/%{name}/turnserver.conf
%dir %{_sysconfdir}/pki/%{name}
%dir %{_sysconfdir}/pki/%{name}/public
%dir %attr(0750,root,coturn) %{_sysconfdir}/pki/%{name}/private
%{_unitdir}/coturn.service
%{_tmpfilesdir}/coturn.conf
%{_sysusersdir}/coturn.conf
%dir %attr(0750,coturn,coturn) %{_localstatedir}/lib/%{name}
# Empty SQlite DB, shipped empty to e.g. be mount-bindable in containers
%attr(0750,coturn,coturn) %{_localstatedir}/lib/%{name}/turndb
%dir %attr(0750,coturn,coturn) %{_localstatedir}/log/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}

%pre
%sysusers_create_package coturn %{SOURCE4}

%post
%systemd_post coturn.service

%preun
%systemd_preun coturn.service

#postun
#systemd_postun_with_restart coturn.service

#-----------------------------------------------------------------------

%package utils
Summary:        Coturn utils
Group:          System/Servers

%description utils
This package contains the TURN client utils.

%files utils
%license LICENSE
%doc README.turnutils
%{_bindir}/turnutils_peer
%{_bindir}/turnutils_stunclient
%{_bindir}/turnutils_uclient
%{_bindir}/turnutils_oauth
%{_bindir}/turnutils_natdiscovery
%{_mandir}/man1/turnutils.1.*
%{_mandir}/man1/turnutils_*.1.*

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:        TURN client static library and headers
Group:          Development/C
Provides:       coturn-devel = %{EVRD}

%description -n %{devname}
This package contains the TURN client static library.

%files -n %{devname}
%license LICENSE
%{_libdir}/libturnclient.a
%dir %{_includedir}/turn
%{_includedir}/turn/*.h
%dir %{_includedir}/turn/client
%{_includedir}/turn/client/*

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
    --confdir=%{_sysconfdir}/%{name} \
    --examplesdir=%{_docdir}/%{name} \
    --schemadir=%{_datadir}/%{name} \
    --manprefix=%{_datadir} \
    --docdir=%{_docdir}/%{name} \
    --turndbdir=%{_localstatedir}/lib/%{name} \
    --disable-rpath \
    --enable-static
%make_build

%install
%make_install
mkdir -p %{buildroot}{%{_sysconfdir}/pki/coturn/{public,private},%{_localstatedir}/{lib,log}/%{name}}
install -Dpm 0644 %{SOURCE1} %{buildroot}%{_unitdir}/coturn.service
install -Dpm 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/coturn.conf
install -Dpm 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
sed -i \
    -e "s|^syslog$|#syslog|g" \
    -e "s|^#*log-file=.*|log-file=/var/log/coturn/turnserver.log|g" \
    -e "s|^#*simple-log|simple-log|g" \
    -e "s|^#*cert=.*|#cert=/etc/pki/coturn/public/turn_server_cert.pem|g" \
    -e "s|^#*pkey=.*|#pkey=/etc/pki/coturn/private/turn_server_pkey.pem|g" \
    %{buildroot}%{_sysconfdir}/%{name}/turnserver.conf.default
touch -c -r examples/etc/turnserver.conf %{buildroot}%{_sysconfdir}/%{name}/turnserver.conf.default
mv %{buildroot}%{_sysconfdir}/%{name}/turnserver.conf.default %{buildroot}%{_sysconfdir}/%{name}/turnserver.conf
# NOTE: Removing certs and keys
rm -f %{buildroot}%{_docdir}/%{name}/etc/{cacert,turn_{client,server}_{cert,pkey}}.pem
rm -f %{buildroot}%{_docdir}/%{name}/etc/coturn.service
# Ship empty Sqlite DB file (used by default) with correct ownership (as written in the INSTALL file)
rm -fv %{buildroot}%{_localstatedir}/lib/%{name}/turndb
touch %{buildroot}%{_localstatedir}/lib/%{name}/turndb
%{_bindir}/sqlite3 %{buildroot}%{_localstatedir}/lib/%{name}/turndb < turndb/schema.sql

install -m0644 -D %{SOURCE4} %{buildroot}%{_sysusersdir}/coturn.conf

# rm excluded files
# Schema files are installed twice. Excluding copies in docs.
for i in \
	%{_docdir}/%{name}/README.turnutils \
	%{_docdir}/%{name}/INSTALL \
	%{_docdir}/%{name}/LICENSE \
	%{_docdir}/%{name}/postinstall.txt \
	%{_docdir}/%{name}/schema.mongo.sh \
	%{_docdir}/%{name}/schema.sql \
	%{_docdir}/%{name}/schema.stats.redis \
	%{_docdir}/%{name}/schema.userdb.redis \
	%{_docdir}/%{name}/README.turnutils \
	%{_docdir}/%{name}/INSTALL \
	%{_docdir}/%{name}/LICENSE \
	%{_docdir}/%{name}/postinstall.txt
do
	rm -fv %{buildroot}/$i
done

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12315 |21mr|cpio-2.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GNU archiving program
Name:		cpio
Version:	2.15
Release:	2
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://www.gnu.org/software/cpio/
Source0:	ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.bz2

# We use SVR4 portable format as default.
Patch1: cpio-2.14-rh.patch

# fix warn_if_file_changed() and set exit code to 1 when cpio fails to store
# file > 4GB (#183224)
# http://lists.gnu.org/archive/html/bug-cpio/2006-11/msg00000.html
Patch2: cpio-2.14-exitCode.patch

# Support major/minor device numbers over 127 (bz#450109)
# http://lists.gnu.org/archive/html/bug-cpio/2008-07/msg00000.html
Patch3: cpio-2.14-dev_number.patch

# Define default remote shell as /usr/bin/ssh (#452904)
Patch4: cpio-2.9.90-defaultremoteshell.patch

# Fix segfault with nonexisting file with patternnames (#567022)
# http://savannah.gnu.org/bugs/index.php?28954
# We have slightly different solution than upstream.
Patch5: cpio-2.14-patternnamesigsegv.patch

# Fix bad file name splitting while creating ustar archive (#866467)
# (fix backported from tar's source)
Patch7: cpio-2.10-longnames-split.patch

# Cpio does Sum32 checksum, not CRC (downstream)
Patch8: cpio-2.11-crc-fips-nit.patch

BuildRequires:	bison
BuildRequires:	texinfo
BuildRequires:	gettext-devel
Requires:	rmt

%description
GNU cpio copies files into or out of a cpio or tar archive.  Archives
are files which contain a collection of other files plus information
about them, such as their file name, owner, timestamps, and access
permissions.  The archive can be another file on the disk, a magnetic
tape, or a pipe.  GNU cpio supports the following archive formats:  binary,
old ASCII, new ASCII, crc, HPUX binary, HPUX old ASCII, old tar and POSIX.1
tar.  By default, cpio creates binary format archives, so that they are
compatible with older cpio programs.  When it is extracting files from
archives, cpio automatically recognizes which kind of archive it is reading
and can read archives created on machines with a different byte-order.

Install cpio if you need a program to manage file archives.

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog README NEWS
/bin/cpio
%{_infodir}/cpio.*
%{_mandir}/man1/cpio.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%serverbuild_hardened
export CPPFLAGS="%{optflags} -DHAVE_LSTAT=1"
%configure \
	--bindir=/bin \
	--with-rmt=/sbin/rmt \
	--disable-rpath

%make

%check
make check

%install
%makeinstall_std

%find_lang %{name}

# remove unpackaged file
rm -f %{buildroot}%{_mandir}/man1/mt.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12316 |21mr|cppcheck-2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without qt5

Summary:	Static analysis tool for C/C++
Name:		cppcheck
Version:	2.5
Release:	2
License:	GPLv3+
Group:		Development/Tools
Url:		http://cppcheck.sourceforge.net/
Source0:	http://downloads.sourceforge.net/sourceforge/cppcheck/%{name}-%{version}.tar.gz
# Fix location of translations
Patch0:		cppcheck-2.2-translations.patch
# Select python3 explicitly
Patch1:		cppcheck-1.88-htmlreport-python3.patch
# Disable one test, which fails under 32-bit archs i686 and armv7hl
# https://trac.cppcheck.net/ticket/10282
Patch2:		cppcheck-2.5-disable-test-testexprengine-array7.patch
# Fix Failed to load translation for English (#1983599)
# https://github.com/danmar/cppcheck/commit/8d5249e3b6cd892b283eba0369b33ec302c8fbe0
Patch3:		cppcheck-2.5-fix_failed_to_load_translation_for_English.patch

BuildRequires:	docbook-style-xsl
BuildRequires:	libxslt-proc
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(tinyxml2)
BuildRequires:	pkgconfig(zlib)
%if %{with qt5}
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(python3)
%endif

Requires:	python3-pygments

%description
This program tries to detect bugs that your C/C++ compiler don't see. Cppcheck
is versatile. You can check non-standard code that includes various compiler
extensions, inline assembly code, etc. Its goal is no false positives.

%files
%doc AUTHORS
%license COPYING
%{_datadir}/Cppcheck/
%{_bindir}/cppcheck
%{_mandir}/man1/cppcheck.1*

#----------------------------------------------------------------------------

%if %{with qt5}
%package gui
Summary:	Graphical user interface for cppcheck
Requires:	%{name} = %{EVRD}

%description gui
This package contains the graphical user interface for cppcheck.

%files gui
%{_bindir}/cppcheck-gui
%{_datadir}/applications/cppcheck-gui.desktop
%{_datadir}/pixmaps/cppcheck-gui.png
%{_datadir}/icons/hicolor/64x64/apps/cppcheck-gui.png
%{_datadir}/icons/hicolor/scalable/apps/cppcheck-gui.svg
%endif
#----------------------------------------------------------------------------

%package htmlreport
Summary:	HTML reporting for cppcheck
Requires:	%{name} = %{EVRD}
Requires:	python3-pygments

%description htmlreport
This package contains the Python utility for generating html reports
from xml files first generated using cppcheck.

%files htmlreport
%{_bindir}/cppcheck-htmlreport

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Make sure bundled tinyxml is not used
rm -r externals/tinyxml2

%build
# Manuals
make DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl man
# Upstream doesn't support shared libraries (unversioned solib)
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DUSE_BUNDLED_TINYXML2=no \
	-DUSE_MATCHCOMPILER=yes \
	-DHAVE_RULES=yes \
%if %{with qt5}
	-DBUILD_GUI=1 \
%endif
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_TESTS=yes \
	-DFILESDIR=%{_datadir}/Cppcheck

# SMP make doesn't seem to work
%make_build cppcheck

%install
%make_install -C build
install -D -p -m 644 cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1
%if %{with qt5}
# Install desktop file
desktop-file-validate %{buildroot}%{_datadir}/applications/cppcheck-gui.desktop
# Install logo
install -D -p -m 644 gui/cppcheck-gui.png %{buildroot}%{_datadir}/pixmaps/cppcheck-gui.png
%endif
# Install htmlreport
install -D -p -m 755 htmlreport/cppcheck-htmlreport %{buildroot}%{_bindir}/cppcheck-htmlreport

%if %{with qt5}
%find_lang %{name} --with-qt
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12317 |21mr|cpptasks-1.0b5-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		cpptasks
Version:	1.0b5
Release:	23
Summary:	Compile and link task for ant

License:	ASL 2.0
URL:		http://ant-contrib.sourceforge.net/
Source0:	http://downloads.sourceforge.net/ant-contrib/cpptasks-1.0b5.tar.gz
Source1:	%{name}-README.fedora

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(xerces:xercesImpl)

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This ant task can compile various source languages and produce
executables, shared libraries (aka DLL's) and static libraries. Compiler
adaptors are currently available for several C/C++ compilers, FORTRAN,
MIDL and Windows Resource files.

%package        javadoc
Summary:	Javadoc for %{name}

%description	javadoc
Javadoc documentation for %{summary}.

%prep
%setup -q

find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;

sed -i 's/\r//' NOTICE 

cp -p %{SOURCE1} ./README.fedora

# Use default compiler configuration
%pom_remove_plugin :maven-compiler-plugin

# Let xmvn generate javadocs
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

# No need to assemble distribution tarballs
%pom_remove_plugin :maven-assembly-plugin

# Fix dependency on ant
%pom_change_dep ant:ant org.apache.ant:ant
%pom_remove_dep ant:ant-nodeps
%pom_remove_dep ant:ant-trax

%mvn_file :%{name} ant/%{name}

%build
%mvn_build

%install
%mvn_install

# Place a file into ant's config dir
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/
echo "ant/%{name}" > $RPM_BUILD_ROOT/%{_sysconfdir}/ant.d/%{name}

%files -f .mfiles
%license LICENSE NOTICE
%doc README.fedora
%{_sysconfdir}/ant.d/%{name}

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12318 |21mr|cppunit-1.15.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define api 1.15
%define libname %mklibname cppunit %{api} %{major}
%define devname %mklibname cppunit -d

Summary:	C++ port of JUnit Testing Framework
Name:		cppunit
Version:	1.15.1
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://cppunit.sourceforge.net/
Source0:	http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.gz
Patch0:		cppunit-1.11.4-missing-include.patch

%description
CppUnit is the C++ port of the famous JUnit framework for unit testing. Test
output is in XML for automatic testing and GUI based for supervised tests.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ port of JUnit Testing Framework
Group:		System/Libraries

%description -n %{libname}
CppUnit is the C++ port of the famous JUnit framework for unit testing. Test
output is in XML for automatic testing and GUI based for supervised tests.

%files -n %{libname}
%{_libdir}/libcppunit-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	lib%{name}%{api}-devel = %{EVRD}

%description -n %{devname}
CppUnit is the C++ port of the famous JUnit framework for unit testing. Test
output is in XML for automatic testing and GUI based for supervised tests.

%files -n %{devname}
%doc AUTHORS NEWS README THANKS ChangeLog
%{_bindir}/DllPlugInTester
%{_libdir}/*.so
%{_includedir}/cppunit
%{_libdir}/pkgconfig/cppunit.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--enable-shared \
	--disable-static \
	--disable-doxygen \
	--disable-dot \
	--disable-html-docs \
	--disable-latex-docs

# <oden> somehow LIBADD_DL is ignored, is that an intentional change?
perl -pi -e "s|^LIBS =.*|LIBS = -lm -ldl|g" src/cppunit/Makefile

%make

%install
%makeinstall_std

#(tpg) do not duplicate docs
rm -rf %{buildroot}%{_datadir}/doc/cppunit

# clean up
rm -rf %{buildroot}%{_datadir}/cppunit
rm -f %{buildroot}%{_libdir}/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12319 |21mr|cpuid-1.0-0.20221003.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define snapshot 20221003

Summary:	Dumps CPUID information about the CPU(s)
Name:		cpuid
Version:	1.0
Release:	0.%{snapshot}.2
License:	BSD
Group:		System/Kernel and hardware
Url:		http://www.etallen.com
Source0:	http://www.etallen.com/cpuid/%{name}-%{snapshot}.src.tar.gz
ExclusiveArch:	%{ix86} %{x86_64}

%description
Cpuid dumps detailed information about the CPU(s) gathered from the
CPUID instruction, and also determines the exact model of CPU(s). It
supports Intel, AMD, and VIA CPUs, as well as older Transmeta, Cyrix,
UMC, NexGen, and Rise CPUs.

%files
%doc ChangeLog FUTURE LICENSE
%{_bindir}/cpuid
%{_mandir}/man1/cpuid.1*
%{_bindir}/cpuinfo2cpuid
%{_mandir}/man1/cpuinfo2cpuid.1*

#---------------------------------------------------------------

%prep
%setup -q -n %{name}-%{snapshot}

%build
%setup_compile_flags
%make

%install
%makeinstall_std BUILDROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12320 |21mr|cpupower-6.7-0.git06042d.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 06042d7b32a71c6a423948f8c7fd4bd13572bdf3
%define commit_short %(echo %{commit} | head -c6)

%define major 0
%define libname %mklibname cpupower %{major}
%define devname %mklibname cpupower -d

Summary:	Tools to manage CPU-related things, e.g. power governor
Name:		cpupower
Version:	6.7
Release:	0.git%{commit_short}.1
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/torvalds/linux/commits/master/tools/power/cpupower
Source0:	https://github.com/torvalds/linux/archive/%{commit}.tar.gz?/linux-%{commit}.tar.gz
Source10:	cpupower.service
Source11:	cpupower.config
Source12:	cpupower-start.sh
BuildRequires:	gcc
BuildRequires:	patchelf
BuildRequires:	pkgconfig(libpci)

Requires:	%{libname} = %{EVRD}

%description
Tools to manage CPU-related things, e.g. power governor.

%post
%systemd_post cpupower.service

%preun
%systemd_preun cpupower.service

%files -f cpupower.lang
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
%{_bindir}/cpupower
%{_bindir}/cpupower-start.sh
%{_unitdir}/cpupower.service
%{_presetdir}/86-cpupower.preset
%{_datadir}/bash-completion/completions/cpupower
%{_mandir}/man[1-8]/cpupower*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Userspace library for managing CPU-related things
Group:		System/Libraries
# was built inside kernel-6.1
Conflicts:	cpupower < 6.7

%description -n %{libname}
Userspace library for managing CPU-related things, e.g. power governor.

%files -n %{libname}
%{_libdir}/libcpupower.so.%{major}
%{_libdir}/libcpupower.so.%{major}.*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libcpupower
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# was built inside kernel-6.1, renamed
Conflicts:	cpupower-devel < 6.7
Obsoletes:	cpupower-devel < 6.7

%description -n %{devname}
Development files for libcpupower.
libcpupower is a userspace library for managing CPU-related things,
e.g. power governor.

%files -n %{devname}
%{_libdir}/libcpupower.so
%{_includedir}/cpufreq.h
%{_includedir}/cpuidle.h
%{_includedir}/powercap.h

#------------------------------------------------------------------

%prep
%autosetup -p1 -n linux-%{commit}/tools/power/cpupower

%build
%setup_compile_flags
%make_build CPUFREQ_BENCH=false

%install
%make_install libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false

mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE10} %{buildroot}%{_unitdir}/cpupower.service
install -m644 %{SOURCE11} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
install -m755 %{SOURCE12} %{buildroot}%{_bindir}/cpupower-start.sh

mkdir %{buildroot}%{_presetdir}
echo "enable cpupower.service" > %{buildroot}%{_presetdir}/86-cpupower.preset

%find_lang cpupower

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12321 |21mr|crack-attack-1.1.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		crack-attack
Summary:	Tetris like game
Version:	1.1.15
Release:	1
Group:		Games/Arcade
License:	GPL
Url:		http://www.nongnu.org/crack-attack/
Source0:	http://savannah.nongnu.org/download/crack-attack/%{name}-%{version}-cvs-01.tar.bz2
Source11:	%{name}-48.png
Source12:	%{name}-32.png
Source13:	%{name}-16.png
Source4:	crack-attack-scripts.tar.bz2
Source5:	crack-attack-1.1.10-man6-page.bz2
Patch0:		crack-attack-1.1.15-fix-str-fmt.patch
Patch3:		crack-attack-1.1.14-dont-segfault-i865g.patch
Patch5:		crack-attack-1.1.15-gcc43.patch
#Patch6:		crack-attack-1.1.14-freeglut-init.patch
BuildRequires:	autoconf
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xi)
Requires:	zenity
Recommends:	crack-attack-music
Recommends:	crack-attack-sounds

%description
'Crack Attack!' is a free OpenGL game
based on the Super Nintendo classic Tetris Attack.

%prep
%autosetup -p1 -a 4 -n %{name}-%{version}-cvs-01
bzcat %{SOURCE5} > doc/crack-attack.6

perl -pi -e "s|^CXXFLAGS.*|CXXFLAGS = $RPM_OPT_FLAGS -DNDEBUG|" src/Makefile*

%build
autoreconf -fi
%configure	--bindir=%{_gamesbindir} \
		--datadir=%{_gamesdatadir} \
		--with-sdl-prefix=%{_prefix} \
		--enable-sound
%make

%install
%makeinstall_std

install -D -m 755 crack-attack-{solo,create-server,join-server} %{buildroot}%{_gamesbindir}/

install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

rm -rf %{buildroot}%{_mandir}/man1/crack-attack.1
install -m644 doc/crack-attack.6 -D %{buildroot}%{_mandir}/man6/crack-attack.6

install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Crack Attack!
Exec=crack-attack
Icon=crack-attack
Terminal=false
Type=Application
Categories=ArcadeGame;Game;
StartupNotify=false
EOF

# delete devel files 
rm -rd %{buildroot}%{_includedir}
rm -rd %{buildroot}%{_libdir}


%files
%doc doc/*.html doc/*.jpg
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-*
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_mandir}/man6/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12322 |21mr|crack-attack-music-1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name crack-attack-music
%define version 1
%define release 17

Summary:	Music files for crack-attack
Name:		%{name}
Version:	%{version}
Release: 	%{release}
Url:		http://www.miguev.net/misc/
Source0:	%{name}.tar.bz2
Group:		Games/Arcade
License:	GPL
Requires:	crack-attack >= 1.1.10-5mdk
BuildArch:	noarch

%description
'Crack Attack!' is a free OpenGL game
based on the Super Nintendo classic Tetris Attack.

This package provides music to enhance the gaming experience.
%prep
%setup -q  -n data

%build

%install
mkdir -p %{buildroot}%{_gamesdatadir}/crack-attack/
cp -a music %{buildroot}%{_gamesdatadir}/crack-attack/music

%files
%defattr(-,root,root)
%{_gamesdatadir}/crack-attack/music/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12323 |21mr|crack-attack-sounds-1.1.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sound files for crack-attack
Name:		crack-attack-sounds
Version:	1.1.14
Release:	1
Url:		http://www.miguev.net/misc/
Source0:	%{name}.tar.bz2
Group:		Games/Arcade
License:	GPL
Requires:	crack-attack >= 1.1.10-5mdk
BuildArch:	noarch

%description
'Crack Attack!' is a free OpenGL game
based on the Super Nintendo classic Tetris Attack.

This package provides sounds to enhance the gaming experience.
%prep
%setup -q  -n data

%build

%install
mkdir -p %{buildroot}%{_gamesdatadir}/crack-attack/
cp -a sounds %{buildroot}%{_gamesdatadir}/crack-attack/sounds

%files
%defattr(-,root,root)
%{_gamesdatadir}/crack-attack/sounds

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12324 |21mr|cracklib-2.9.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname crack

%define major 2
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d
%define sdevname %mklibname %{oname} -d -s

Summary:	A password-checking library
Name:		cracklib
Version:	2.9.7
Release:	2
License:	LGPLv2
Group:		System/Libraries
URL:        https://github.com/cracklib/cracklib
Source0:	https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-%{version}.tar.gz
Source1:	https://github.com/cracklib/cracklib/releases/download/v%{version}/cracklib-words-%{version}.gz
Source10:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Domains.gz
Source11:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Dosref.gz
Source12:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Ftpsites.gz
Source13:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/Jargon.gz
Source14:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/common-passwords.txt.gz
Source15:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/computer/etc-hosts.gz
Source16:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Movies.gz
Source17:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Python.gz
Source18:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/movieTV/Trek.gz
Source19:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/LCarrol.gz
Source20:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/Paradise.Lost.gz
Source21:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/cartoon.gz
Source22:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/myths-legends.gz
Source23:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/sf.gz
Source24:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/literature/shakespeare.gz
Source25:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/ASSurnames.gz
Source26:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Congress.gz
Source27:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Family-Names.gz
Source28:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/Given-Names.gz
Source29:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/famous.gz
Source30:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/fast-names.gz
Source31:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/female-names.gz
Source32:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/male-names.gz
Source33:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.french.gz
Source34:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/names.hp.gz
Source35:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/other-names.gz
Source36:	http://ftp.cerias.purdue.edu/pub/dict/wordlists/names/surnames.finnish.gz
Source37:   http://downloads.skullsecurity.org/passwords/cain.txt.bz2
Source38:   http://downloads.skullsecurity.org/passwords/john.txt.bz2
Patch0:		cracklib-2.8.15-fix-python-path.patch
Patch1:		cracklib-2.9.1-inttypes.patch
Patch5:		cracklib-2.9.6-coverity.patch
Patch6:		cracklib-2.9.6-lookup.patch
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	%python2-setuptools
BuildRequires:	python3-setuptools
BuildRequires:  autoconf

%description
CrackLib tests passwords to determine whether they match certain
security-oriented characteristics. You can use CrackLib to stop
users from choosing passwords which would be easy to guess. CrackLib
performs certain tests:

* It tries to generate words from a username and gecos entry and
  checks those words against the password;
* It checks for simplistic patterns in passwords;
* It checks for the password in a dictionary.

CrackLib is actually a library containing a particular
C function which is used to check the password, as well as
other C functions. CrackLib is not a replacement for a passwd
program; it must be used in conjunction with an existing passwd
program.

Install the cracklib package if you need a program to check users'
passwords to see if they are at least minimally secure. If you
install CrackLib, you'll also want to install the cracklib-dicts
package.

#----------------------------------------------------------------------------

%package dicts
Summary:	The standard CrackLib dictionaries
Group:		System/Libraries

%description dicts
The cracklib-dicts package includes the CrackLib dictionaries.
CrackLib will need to use the dictionary appropriate to your system,
which is normally put in /usr/share/dict/words.  Cracklib-dicts also contains
the utilities necessary for the creation of new dictionaries.

If you are installing CrackLib, you should also install cracklib-dicts.

%files dicts
%{_sbindir}/*
%{_datadir}/%{name}
%{_libdir}/cracklib_dict.*

#----------------------------------------------------------------------------

%package common
Summary:	Common files for a password-checking library
Group:		System/Libraries
Conflicts:	cracklib < 2.8.18-12
Obsoletes:	cracklib < 2.8.18-12
Conflicts:	%{_lib}crack2 < 2.8.18-12

%description common
Common files for a password-checking library.

%files common -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A password-checking library
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libname}
CrackLib tests passwords to determine whether they match certain
security-oriented characteristics.

%files -n %{libname}
/%{_lib}/libcrack.so.%{major}*

#----------------------------------------------------------------------------

%package -n %python2-%{name}
%py2_migration_meta %python2-%{name}
Summary:	A password-checking library
Group:		Development/Python
%if "%python2" != "python"
%py2_migration_meta python-cracklib
%endif

%description -n %python2-%{name}
CrackLib tests passwords to determine whether they match certain
security-oriented characteristics.
Python2 module.

%files -n %python2-%{name}
%{python2_sitearch}/*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	A password-checking library
Group:		Development/Python

%description -n python3-%{name}
CrackLib tests passwords to determine whether they match certain
security-oriented characteristics.
Python 3 module.

%files -n python3-%{name}
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Cracklib link library & header file
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	lib%{oname}-devel = %{EVRD}
Provides:	%{oname}lib-devel = %{EVRD}

%description -n %{devname}
The cracklib devel package include the needed library link and
header files for development.

%files -n %{devname}
%{_includedir}/*
/%{_lib}/*.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Cracklib static library
Group:		Development/C
# static libs (*.a) were moved
Conflicts:  %{devname} < 2.9.6-9
Obsoletes:  %{devname} < 2.9.6-9

%description -n %{sdevname}
Cracklib static library

%files -n %{sdevname}
/%{_lib}/*.*a

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp -p lib/packer.h lib/packer.h.in
autoreconf -fi

for dict in %{SOURCE1} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} \
    %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} %{SOURCE20} %{SOURCE21} \
    %{SOURCE22} %{SOURCE23} %{SOURCE24} %{SOURCE25} %{SOURCE26} %{SOURCE27} %{SOURCE28} \
    %{SOURCE29} %{SOURCE30} %{SOURCE31} %{SOURCE32} %{SOURCE33} %{SOURCE34} %{SOURCE35} \
    %{SOURCE36} %{SOURCE37} %{SOURCE38}; do
    cp ${dict} dicts/
done

# abf issue here
mv dicts/common-passwords.txt.gz dicts/common-passwords.txt
gzip -d dicts/*.gz
bzip2 -d dicts/*.bz2

%build

autoreconf -fi
%configure \
	--libdir=/%{_lib} \
	--enable-static
%make_build

( cd python
%py2_build
%py3_build
)

%install

%make_install

chmod 0755 ./util/cracklib-format ./util/cracklib-packer
./util/cracklib-format dicts/* | ./util/cracklib-packer %{buildroot}%{_datadir}/cracklib/pw_dict

ln -s cracklib-format %{buildroot}%{_sbindir}/mkdict
ln -s cracklib-packer %{buildroot}%{_sbindir}/packer

mkdir -p %{buildroot}%{_libdir}
ln -s %{_datadir}/cracklib/pw_dict.hwm %{buildroot}%{_libdir}/cracklib_dict.hwm
ln -s %{_datadir}/cracklib/pw_dict.pwd %{buildroot}%{_libdir}/cracklib_dict.pwd
ln -s %{_datadir}/cracklib/pw_dict.pwi %{buildroot}%{_libdir}/cracklib_dict.pwi

install -m644 lib/packer.h %{buildroot}%{_includedir}/

%find_lang %{name}

( cd python
%py2_install
%py3_install
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12325 |21mr|crda-3.18-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Software to upload wireless regulatory information into kernel
Name:		crda
Version:	3.18
Release:	6
License:	ISC
Group:		System/Configuration/Hardware
Url:		http://linuxwireless.org/en/developers/Regulatory/CRDA
Source0:	http://wireless.kernel.org/download/crda/crda-%{version}.tar.xz
# From Fedora. 
# This script sets regulatory domain for a country based on the 
# current time zone.
# '/usr/sbin/iw' was replaced with just 'iw'.
Source1:	setregdomain
Source2:	setregdomain.1
# Adapted from Fedora
# Add udev rule to call setregdomain on wireless device add.
Patch0:		regulatory-rules-setregdomain.patch
# Do not call ldconfig in crda Makefile explicitly.
Patch1:		crda-remove-ldconfig.patch
Patch2:		crda-3.18-no-werror.patch
Patch3:		crda-3.18-cflags.patch
BuildRequires:	libgcrypt-devel
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	python2-m2crypto
BuildRequires:	wireless-regdb
Requires:	udev
Requires:	iw
Requires:	wireless-regdb

%description
CRDA acts as the udev helper for communication between the kernel and
userspace for regulatory compliance. It relies on nl80211 for
communication. CRDA is intended to be run only through udev
communication from the kernel. The user should never have to run it
manually except if debugging udev issues.

%files
%doc LICENSE README
%dir %{_prefix}/lib/crda
%{_mandir}/man1/setregdomain.1*
%{_mandir}/man8/crda.8*
%{_mandir}/man8/regdbdump.8*
/lib/udev/rules.d/85-regulatory.rules
%{_sbindir}/crda
# A symlink, in case any applications still need crda in /sbin
/sbin/crda
%{_sbindir}/regdbdump
%{_sbindir}/setregdomain
%{_libdir}/libreg.so
#---------------------------------------------------------------------------

%package devel
Summary:	Header files for use with libreg from CRDA
Group:		Development/C

%description devel
Header files to make use of libreg for accessing regulatory info.

%files devel
%{_includedir}/reglib/nl80211.h
%{_includedir}/reglib/regdb.h
%{_includedir}/reglib/reglib.h
#---------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i -e 's|^#!/usr/bin/env python|#!%{__python2}|' utils/key2pub.py

%build
export CFLAGS="%{optflags}"
%make_build -j1 SBINDIR=%{_sbindir}/ LIBDIR=%{_libdir} WERROR= V=1


%install
%makeinstall_std \
	MANDIR=%{_mandir}/ SBINDIR=%{_sbindir}/ LIBDIR=%{_libdir}/

mkdir -p %{buildroot}%{_prefix}/lib/crda
install -D -pm 0755 %{SOURCE1} %{buildroot}%{_sbindir}
install -D -pm 0644 %{SOURCE2} %{buildroot}%{_mandir}/man1/setregdomain.1

# Just in case any applications need crda exactly in /sbin
mkdir -p %{buildroot}/sbin/
ln -s %{_sbindir}/crda %{buildroot}/sbin/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12326 |21mr|createrepo_c-0.20.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	Creates a common metadata repository
Name:		createrepo_c
Version:	0.20.1
Release:	1
License:	GPLv2+
Group:		System/Configuration/Packaging
URL:		https://github.com/rpm-software-management/createrepo_c
Source0:	https://github.com/rpm-software-management/createrepo_c/archive/%{version}/%{name}-%{version}.tar.gz

# OpenMandriva specific patches for transitioning from RPM 5
## Attempt to handle DistEpoch in a semi-sane manner
Patch1000:	createrepo_c-handle-DistEpoch.patch
## Fully ignore DistEpoch as we don't want it anymore
Patch1001:	createrepo_c-disable-distepoch.patch

BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(zlib)
#BuildRequires:	pkgconfig(bzip2)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(rpm)
BuildConflicts:	pkgconfig(rpm) >= 5
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(zck)
BuildRequires:	pkgconfig(drpm)
BuildRequires:	pkgconfig(modulemd-2.0) >= 2.3.0
BuildRequires:	python3-nose
BuildRequires:	python3-sphinx
BuildRequires:	ninja
Requires:	%{libname} = %{EVRD}
Provides:	createrepo = %{EVRD}

%description
C implementation of Createrepo. This utility will generate a common
metadata repository from a directory of rpm packages

%package -n %{libname}
Summary:	Library for repodata manipulation
Group:		System/Libraries

%description -n %{libname}
Libraries for applications using the createrepo_c library
for easy manipulation with a repodata.

%package -n %{develname}
Summary:	Library for repodata manipulation
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
This package contains the createrepo_c C library and header files.
These development files are for easy manipulation with a repodata.

%package -n python3-%{name}
Summary:	Python 3 bindings for the createrepo_c library
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
Python 3 bindings for the createrepo_c library.

%prep
%autosetup -p1

%build
%cmake -DPYTHON_DESIRED:str=3 -G Ninja -DWITH_LIBMODULEMD=ON -DWITH_ZCHUNK=ON
%ninja_build

%install
%ninja_install -C build

%check
# Compile C tests
#make tests

# Run Python 3 tests
#make ARGS="-V" test

%files
%{_datadir}/bash-completion/completions/*
%{_bindir}/createrepo_c
%{_bindir}/mergerepo_c
%{_bindir}/modifyrepo_c
%{_bindir}/sqliterepo_c
%{_mandir}/man8/createrepo_c.8.*
%{_mandir}/man8/mergerepo_c.8.*
%{_mandir}/man8/modifyrepo_c.8.*
%{_mandir}/man8/sqliterepo_c.8.*

%files -n %{libname}
%{_libdir}/libcreaterepo_c.so.%{major}*

%files -n %{develname}
%doc COPYING
%dir %{_includedir}/createrepo_c
%{_libdir}/libcreaterepo_c.so
%{_libdir}/pkgconfig/createrepo_c.pc
%{_includedir}/createrepo_c/*

%files -n python3-%{name}
%{python3_sitearch}/createrepo_c/
%{python3_sitearch}/createrepo_c-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12327 |21mr|creduce-2.11.0-0.20210505.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20210505

Name:		creduce
Version:	2.11.0
%if 0%{git}
Release: 0.%{git}.1
Source0: https://github.com/csmith-project/creduce/archive/llvm-12.0-dev/%{name}-%{git}.tar.gz
%else
Release: 1
Source0: http://embed.cs.utah.edu/creduce/%{name}-%{version}.tar.gz
%endif
Summary: Tool for creating reduced test cases for compiler bugs
Group: Development/Tools
License: BSD
# https://github.com/csmith-project/creduce
URL:		http://embed.cs.utah.edu/creduce/
Patch1:		https://github.com/csmith-project/creduce/commit/575986abefbb80b1fd2e7e7fc573935fc56c7bd8.patch
Patch2:		https://github.com/csmith-project/creduce/commit/4c74487fcde78a129e792b39ab99498e073ae426.patch
Patch3:		https://github.com/csmith-project/creduce/commit/e507cca4ccb32585c5692d49b8d907c1051c826c.patch
Patch4:		creduce-llvm-12.patch
BuildRequires:	llvm-devel
BuildRequires:	clang-devel
BuildRequires:	flex
BuildRequires:	perl(File::Which)
BuildRequires:	perl(Getopt::Tabular)
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Term::ReadKey)
Requires:	clang
Requires:	flex
Requires:	astyle
Requires:	indent

%description
C-Reduce is a tool that takes a large C or C++ program that has a
property of interest (such as triggering a compiler bug) and
automatically produces a much smaller C/C++ program that has the
same property. It is intended for use by people who discover and
report bugs in compilers and other tools that process C/C++ code.

%files
%{_bindir}/*
%{_libexecdir}/*
%{_datadir}/creduce

#-----------------------------------------------------------------
%prep
%if 0%{git}
%autosetup -p1 -n %{name}-llvm-12.0-dev
%else
%autosetup -p1 -n %{name}-%{version}
%endif

%build
CXXFLAGS="%{optflags} -std=gnu++1y -D__STDC_LIMIT_MACROS=1 -D__STDC_CONSTANT_MACROS=1" %configure

%make_build

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12328 |21mr|cri-tools-1.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug %nil
%define	debug_package %nil

Name:		cri-tools
Version:	1.20.0
Release:	1
Summary:	CLI and validation tools for Kubelet
URL:		https://github.com/kubernetes-sigs/cri-tools
Source0:	https://github.com/kubernetes-sigs/cri-tools/archive/v%{version}/%{name}-%{version}.tar.gz
License:	ASL 2.0
Group:		Development/Other
Provides:	crictl = %{version}-%{release}
BuildRequires:	go >= 1.11
BuildRequires:	git-core

%description
CLI and validation tools for Kubelet Container Runtime Interface (CRI)

%files
%doc README.md LICENSE
%{_bindir}/crictl

#-----------------------------------------------------------------------
%prep
%setup -q

%build
make crictl

%install
make DESTDIR=%{buildroot} BINDIR=%{_bindir} VERSION=%{version} install-crictl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12329 |21mr|cronie-1.5.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cron daemon for executing programs at set times
Name:		cronie
Version:	1.5.7
Release:	3
License:	MIT and BSD
Group:		System/Servers
Url:		https://github.com/cronie-crond/cronie
Source0:	https://github.com/cronie-crond/cronie/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1:	anacron-timestamp
Source2:	crond.pam
Patch0:		cronie-1.4.8-lsb_header_fix.patch
Buildrequires:	pam-devel
Buildrequires:	pkgconfig(audit)
Requires:	pam
Requires:	crontabs
Recommends:	anacron
Recommends:	nano
Provides:	cron-daemon = %{EVRD}
Provides:	crond = %{EVRD}
Provides:	vixie-cron = 4:4.4

%description
Cronie contains the standard UNIX daemon crond that runs specified programs at
scheduled times and related tools. It is a fork of the original vixie-cron and
has security and configuration enhancements like the ability to use pam and
SELinux.

%files
%doc AUTHORS INSTALL README ChangeLog
%license COPYING
%attr(6755,root,root) %{_bindir}/crontab
%attr(6755,root,root) %{_bindir}/cronnext
%{_mandir}/man1/cronnext.*
%{_mandir}/man1/crontab.*
%{_mandir}/man5/crontab.*
%{_mandir}/man8/cron.*
%{_mandir}/man8/crond.*
%attr(755,root,root) %{_sbindir}/crond
%dir %{_sysconfdir}/cron.d
%config(noreplace) %{_sysconfdir}/cron.deny
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/crond
%config(noreplace) %{_sysconfdir}/sysconfig/crond
%attr(0644,root,root) %{_unitdir}/crond.service
%dir /var/spool/cron

%preun
%systemd_post crond.service

%postun
%systemd_postun_with_restart crond.service

%posttrans
%systemd_post crond.service

#----------------------------------------------------------------------------

%package anacron
Summary:	Utility for running regular jobs
Group:		System/Servers
Requires:	crontabs
Requires:	sendmail
# for touch
Requires(post):	coreutils
Provides:	anacron = 2.4

%description anacron
Anacron becames part of cronie. Anacron is used only for running regular jobs.
The default settings execute regular jobs by anacron, however this could be
overloaded in settings.

%files anacron
%{_mandir}/man5/anacrontab.*
%{_mandir}/man8/anacron.*
%{_sbindir}/anacron
%config(noreplace) %{_sysconfdir}/anacrontab
%attr(0755,root,root) %{_sysconfdir}/cron.daily/0anacron-timestamp
%attr(0755,root,root) %{_sysconfdir}/cron.weekly/0anacron-timestamp
%attr(0755,root,root) %{_sysconfdir}/cron.monthly/0anacron-timestamp
%attr(0755,root,root) %{_sysconfdir}/cron.hourly/0anacron
%dir /var/spool/anacron
%ghost %verify(not md5 size mtime) /var/spool/anacron/cron.daily
%ghost %verify(not md5 size mtime) /var/spool/anacron/cron.weekly
%ghost %verify(not md5 size mtime) /var/spool/anacron/cron.monthly

%post anacron
[ -e /var/spool/anacron/cron.daily ] || touch /var/spool/anacron/cron.daily
[ -e /var/spool/anacron/cron.weekly ] || touch /var/spool/anacron/cron.weekly
[ -e /var/spool/anacron/cron.monthly ] || touch /var/spool/anacron/cron.monthly

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Make sure anacron is started after regular cron jobs, otherwise anacron might
# run first, and after that regular cron runs the same jobs again
sed -i	-e "s/^START_HOURS_RANGE.*$/START_HOURS_RANGE=6-22/" \
	-e "s/nice run-parts/nice -n 19 run-parts/" \
	contrib/anacrontab

%build
%serverbuild
# package nano-as-default-editor is usually preinstalled
%configure \
	--enable-anacron	\
	--with-audit		\
	--with-editor=/usr/bin/nano \
	--with-inotify		\
	--with-pam
%make

%install
%makeinstall_std

install -d -m 700 %{buildroot}/var/spool/cron
install -d -m 755 %{buildroot}%{_sysconfdir}/cron.d

# https://bugzilla.mandriva.com/show_bug.cgi?id=19645 and
# https://bugzilla.mandriva.com/show_bug.cgi?id=28278
touch %{buildroot}%{_sysconfdir}/cron.deny

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m0644 crond.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/crond

install -m 644 contrib/anacrontab %{buildroot}%{_sysconfdir}/anacrontab
mkdir -pm 755 %{buildroot}%{_sysconfdir}/cron.hourly
install -c -m755 contrib/0anacron %{buildroot}%{_sysconfdir}/cron.hourly/0anacron

install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/pam.d/crond

# Install cron job which will update anacron's daily, weekly, monthly timestamps
# when these jobs are run by regular cron, in order to prevent duplicate execution
for i in daily weekly monthly
do
mkdir -p %{buildroot}/etc/cron.${i}
sed -e "s/XXXX/${i}/" %{SOURCE1} > %{buildroot}/etc/cron.${i}/0anacron-timestamp
done

# create empty %%ghost files
mkdir -p %{buildroot}/var/spool/anacron
touch %{buildroot}/var/spool/anacron/cron.daily
touch %{buildroot}/var/spool/anacron/cron.weekly
touch %{buildroot}/var/spool/anacron/cron.monthly

# install systemd initscript
mkdir -p %{buildroot}%{_unitdir}
install -m 644 contrib/cronie.systemd %{buildroot}%{_unitdir}/crond.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12330 |21mr|crontabs-1.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Root crontab files used to schedule the execution of programs
Name:		crontabs
Version:	1.11
Release:	2
License:	GPLv2+
Group:		System/Configuration/Other
Source0:	crontab
Source1:	config
Requires:	run-parts
BuildArch:	noarch

%description
The crontabs package contains root crontab files. Crontab is the
program used to install, uninstall or list the tables used to drive the
cron daemon. The cron daemon checks the crontab files to see when
particular commands are scheduled to be executed. If commands are
scheduled, it executes them.

Crontabs handles a basic system function, so it should be installed on
your system.

%files
%doc %{_docdir}/%{name}
%config(noreplace) %{_sysconfdir}/crontab
%config(noreplace) %{_sysconfdir}/sysconfig/crontab
%dir %{_sysconfdir}/cron.hourly
%dir %{_sysconfdir}/cron.daily
%dir %{_sysconfdir}/cron.weekly
%dir %{_sysconfdir}/cron.monthly
%dir %{_sysconfdir}/cron.yearly

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}/cron.{hourly,daily,weekly,monthly,yearly} 
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_docdir}/%{name}

install -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/crontab

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12331 |21mr|cross-avr-binutils-2.35-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define target avr

Summary:	Cross Compiling GNU binutils targeted at %{target}
Name:		cross-%{target}-binutils
Version:	2.35
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.gnu.org/software/binutils/
Source0:	ftp://ftp.gnu.org:21/pub/gnu/binutils/binutils-%{version}.tar.xz
BuildRequires:	gawk
BuildRequires:	texinfo

%description
This is a Cross Compiling version of GNU binutils, which can be used to
assemble and link binaries for the %{target} platform, instead of for the
native %{_arch} platform.

%files
%doc binutils-%{version}/COPYING binutils-%{version}/COPYING.LIB
%doc binutils-%{version}/README
%{_prefix}/%{target}
%{_bindir}/%{target}-*
%{_mandir}/man1/%{target}-*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -c

%build
mkdir -p build
pushd build
CFLAGS="%{optflags}" ../binutils-%{version}/configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--target=%{target} \
	--disable-werror \
	--disable-nls

%make
popd

%install
pushd build
%makeinstall_std
popd
# these are for win targets only
rm %{buildroot}%{_mandir}/man1/%{target}-{dlltool,windres}.1
# we don't want these as we are a cross version
rm -r %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12332 |21mr|cross-avr-gcc-10.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define target avr
%define Werror_cflags -Wformat
%define debug_package %{nil}
# This is a ugly workaround for not listing all files in /usr/lib and %%{_libexecdir}
# Don't remove it until you are going to support this package in future
%define _files_listed_twice_terminate_build 0

Summary:	Cross Compiling GNU GCC targeted at %{target}
Name:		cross-%{target}-gcc
Version:	10.2.0
Release:	3
License:	GPLv2+
Group:		Development/C
Url:		http://gcc.gnu.org/
Source0:	ftp://ftp.gnu.org/gnu/gcc/gcc-%{version}/gcc-%{version}.tar.xz
Patch0:		avr-gcc-4.5.3-mint8.patch
Patch1:		avr-gcc-config.patch
BuildRequires:	cross-%{target}-binutils
BuildRequires:	gawk
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	libmpc-devel
BuildRequires:	pkgconfig(zlib)
Requires:	cross-%{target}-binutils
Provides:	%{name}-cpp = %{EVRD}

%description
This is a Cross Compiling version of GNU GCC, which can be used to compile
for the %{target} platform, instead of for the native %{_arch} platform.

%files
%doc COPYING COPYING.LIB
%{_bindir}/%{target}-*
%dir /usr/lib/gcc
%dir /usr/lib/gcc/%{target}
/usr/lib/gcc/%{target}/%{version}
%dir %{_libexecdir}/gcc
%dir %{_libexecdir}/gcc/%{target}
%{_libexecdir}/gcc/%{target}/%{version}
%{_mandir}/man1/%{target}-*.1.*
%exclude %{_bindir}/%{target}-?++
%exclude %{_libexecdir}/gcc/%{target}/%{version}/cc1plus
%exclude %{_mandir}/man1/%{target}-g++.1.*

#----------------------------------------------------------------------------

%package c++
Summary:	Cross Compiling GNU GCC targeted at %{target}
Group:		Development/C++
Requires:	%{name} = %{EVRD}

%description c++
This package contains the Cross Compiling version of g++, which can be used to
compile c++ code for the %{target} platform, instead of for the native %{_arch}
platform.

%files c++
%{_bindir}/%{target}-?++
%{_libexecdir}/gcc/%{target}/%{version}/cc1plus
%{_mandir}/man1/%{target}-g++.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gcc-%{version}

contrib/gcc_update --touch

# Extract %%__os_install_post into os_install_post~
cat << \EOF > os_install_post~
%__os_install_post
EOF

# Generate customized brp-*scripts
cat os_install_post~ | while read a x y; do
case $a in
# Prevent brp-strip* from trying to handle foreign binaries
*/brp-strip*)
  b=$(basename $a)
  sed -e 's,find %{buildroot},find %{buildroot}%{_bindir} %{buildroot}%{_libexecdir},' $a > $b
  chmod a+x $b
  ;;
esac
done

sed -e 's,^[ ]*/usr/lib/rpm.*/brp-strip,./brp-strip,' \
< os_install_post~ > os_install_post 

%build

mkdir -p gcc-%{target}
pushd gcc-%{target}
CC="%{__cc} %{optflags} -fno-stack-protector" \
../configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--target=%{target} \
	--enable-languages=c,c++ \
	--disable-nls \
	--disable-libssp \
	--with-system-zlib \
	--enable-version-specific-runtime-libs \
	--with-pkgversion="%{distribution} %{EVRD}" \
	--with-bugurl="%{bugurl}" \
	--libexecdir=%{_libexecdir}
# In general, building GCC is not smp-safe
make
popd

%install
pushd gcc-%{target}
%makeinstall_std
popd
# we don't want these as we are a cross version
rm -rf %{buildroot}%{_infodir}
rm -rf %{buildroot}%{_mandir}/man7
rm -rf %{buildroot}%{_libdir}/libcc1.so*
# and these aren't usefull for embedded targets
rm -rf %{buildroot}/usr/lib/gcc/%{target}/%{version}/install-tools
rm -rf %{buildroot}%{_libexecdir}/gcc/%{target}/%{version}/install-tools

%define __os_install_post . ./os_install_post

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12333 |21mr|crossguid-0.2.3-1.ca1bf4.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit ca1bf4b810e2d188d04cb6286f957008ee1b7681
%define git ca1bf4

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Lightweight cross platform C++ GUID/UUID library
Name:		crossguid
Version:	0.2.3
Release:	1.%{git}.5
License:	MIT
Group:		System/Libraries
Url:		https://github.com/graeme-hill/crossguid
Source0:	https://github.com/graeme-hill/crossguid/archive/%{git}.zip?/%{name}-%{git}.zip
#place *.cmake files to libdir
Patch0:		crossguid-cmake.patch
Patch1:		crossguid-c++17.patch
BuildRequires:	pkgconfig(uuid)
BuildRequires:	cmake

%description
CrossGuid is a minimal, cross platform, C++ GUID library. It uses the best
native GUID/UUID generator on the given platform and had a generic class
for parsing, stringifying, and comparing IDs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for lightweight cross platform C++ GUID/UUID library
Group:		System/Libraries

%description -n %{libname}
Shared library for lightweight cross platform C++ GUID/UUID library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for lightweight cross platform C++ GUID/UUID library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for lightweight cross platform C++ GUID/UUID library.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_includedir}/crossguid/guid.*
%{_libdir}/pkgconfig/crossguid.pc
%{_datadir}/crossguid/LICENSE
%{_datadir}/crossguid/README.md
%{_libdir}/crossguid/cmake/crossguid-config-release.cmake
%{_libdir}/crossguid/cmake/crossguid-config.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake
%make

%install
%makeinstall_std -C build

#attempt fix find .h file
cp %{buildroot}%{_includedir}/crossguid/guid.hpp %{buildroot}%{_includedir}/crossguid/guid.h
sed -i 's:/usr/include:/usr/include/crossguid:' %{buildroot}%{_libdir}/pkgconfig/crossguid.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12334 |21mr|crow-translate-2.10.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libqhotkey %mklibname qhotkey %{major}
%define devqhotkey %mklibname qhotkey -d

Summary:	A Qt GUI for Google, Yandex and Bing translators
Name:		crow-translate
Version:	2.10.10
Release:	1
License:	GPLv2+
Group:		Office
Url:		https://crow-translate.github.io/ru/
# git clone https://github.com/crow-translate/crow-translate
# cd crow-translate
# git checkout %%{version}
# git submodule update --init --recursive
# git-archive-all --prefix=%%{name}-%%{version} ../%%{name}-%%{version}.tar.xz
Source0:	%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	desktop-file-utils
BuildRequires:	extra-cmake-modules
BuildRequires:	git
BuildRequires:	hicolor-icon-theme
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(KF5WaylandClient)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(tesseract)
Requires:	hicolor-icon-theme

%description
A simple and lightweight translator that allows to
translate and speak text using Google, Yandex and
Bing written with Qt5

#----------------------------------------------------------------------------

%files
%doc README.md
%license COPYING
%{_appdatadir}/*.metainfo.xml
%{_bindir}/crow
%{_datadir}/applications/*.desktop
%{_datadir}/Crow*Translate/*/translations/*
%{_datadir}/icons/hicolor/*/*/%{name}*.*
%{_libdir}/libQTaskbarControl.so

#----------------------------------------------------------------------------

%package -n %{libqhotkey}
Summary:	QHotkey library
Group:		System/Libraries

%description -n %{libqhotkey}
QHotkey library.

%files -n %{libqhotkey}
%{_libdir}/libqhotkey.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devqhotkey}
Summary:	Development files for QHotkey library
Group:		Development/C++
Requires:	%{libqhotkey} = %{EVRD}

%description -n %{devqhotkey}
Development files for QHotkey library.

%files -n %{devqhotkey}
%{_includedir}/QHotkey
%{_includedir}/qhotkey.h
%{_libdir}/cmake/QHotkey/QHotkeyConfig*.cmake
%{_libdir}/libqhotkey.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DQHOTKEY_INSTALL=ON
%make

%install
%makeinstall_std -C build

cp build/src/third-party/qtaskbarcontrol/libQTaskbarControl.so %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12335 |21mr|crudini-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		crudini
Version:	0.9.3
Release:	1
Summary:	A utility for manipulating ini files
Group:		Development/Other
License:	GPLv2
URL:		https://github.com/pixelb/%{name}
Source0:	https://github.com/pixelb/%{name}/archive/%{version}.tar.gz
BuildRequires:	python3egg(iniparse)
Requires:	python3egg(iniparse)
BuildArch:	noarch

%description
A utility for easily handling ini files from the command line and shell
scripts.

%files
%doc README COPYING TODO example.ini
%{_bindir}/%{name}

#-----------------------------------------------------------
%prep
%setup -q

%build

%install
install -p -D -m 0755 %{name} %{buildroot}%{_bindir}/%{name}

# set python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/crudini

%check
pushd tests
./test.sh
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12336 |21mr|crun-1.14.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		crun
Summary:	OCI Container Runtime fully written in C
Version:	1.14.4
Group:		System/Base
Release:	1
License:	GPLv3+/LGPLv3+
Source0:	https://github.com/containers/crun/archive/%{version}/%{name}-%{version}.tar.gz
# Those are pulled in with "git submodule" in upstream git
Source1:	https://github.com/containers/libocispec/archive/19c05670c37a42c217caa7b141bcaada7867cc15.tar.gz
Source2:	https://github.com/opencontainers/image-spec/archive/0b40f0f367c396cc5a7d6a2e8c8842271d3d3844.tar.gz
Source3:	https://github.com/opencontainers/runtime-spec/archive/55ae2744e3a034668fa2c40687251095a69ed63e.tar.gz
Source4:	https://github.com/containers/yajl/archive/49923ccb2143e36850bcdeb781e2bcdf5ce22f15.tar.gz
Patch0:		add-flag-keep-to-run.patch
BuildRequires:	automake
BuildRequires:	autoconf
# Only for man page, might be worth excluding from bootstrap builds
BuildRequires:	go-md2man
BuildRequires:	gperf
BuildRequires:	libtool
BuildRequires:	make
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(yajl)
Conflicts:	runc

%description
A fast and low-memory footprint OCI Container Runtime fully written in C.

crun conforms to the OCI Container Runtime specifications
(https://github.com/opencontainers/runtime-spec).

%files
%doc NEWS README.md
%license COPYING*
%{_bindir}/%{name}
%{_bindir}/runc
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1
rmdir libocispec
mv libocispec-* libocispec
cd libocispec
rmdir image-spec runtime-spec yajl
tar xf %{SOURCE2}
tar xf %{SOURCE3}
tar xf %{SOURCE4}
mv image-spec-* image-spec
mv runtime-spec-* runtime-spec
mv yajl-* yajl
cd ..
autoreconf -fis

%configure
sed -i '/git-version.h/d' src/crun.c
sed -i '/git-version.h/d' src/libcrun/container.c
sed -i -e 's,GIT_VERSION,"%{version}-%{release}",g' src/crun.c
sed -i -e 's,GIT_VERSION,"%{version}-%{release}",g' src/libcrun/container.c

%build
%make_build

%install
%make_install
# No point in shipping a static library if the headers
# aren't installed...
rm %{buildroot}%{_libdir}/*.a
ln -s %{name} %{buildroot}%{_bindir}/runc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12337 |21mr|cryfs-0.10.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CryFS encryption
Name:		cryfs
Version:	0.10.2
Release:	2
License:	LGPLv3+
Group:		File tools
Url:		https://github.com/cryfs/cryfs
Source0:	%{name}-%{version}.tar.xz
Patch0:		cryfs-0.10.2-static.patch
Patch1:		cryfs-0.10.2-unbundle-libs.patch
Patch2:		cryfs-0.10.2-install-targets.patch
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cryptopp) >= 8.2
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openssl)
Requires:	fuse

%description
CryFS provides a FUSE-based mount that encrypts file contents, file
sizes, metadata and directory structure. It uses encrypted same-size
blocks to store both the files themselves and the blocks' relations
to one another. These blocks are stored as individual files in the
base directory, which can then be synchronized to remote storage
(using an external tool).

%files
%doc ChangeLog.txt README.md
%{_bindir}/cryfs
%{_bindir}/cryfs-unmount
%{_mandir}/man1/cryfs.1*

#----------------------------------------------------------------------------

%prep
%setup -c -q
%autopatch -p1

%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DBoost_USE_STATIC_LIBS=OFF \
	-DBUILD_TESTING=OFF \
	-DUSE_SYSTEM_LIBS=ON \
	-DCRYFS_UPDATE_CHECKS=OFF

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12338 |21mr|cryptacular-1.1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          cryptacular
Version:       1.1.0
Release:       8
Summary:       Java Library that complement to the Bouncy Castle crypto API
# See https://github.com/vt-middleware/cryptacular/issues/25
License:       ASL 2.0 or LGPLv3
URL:           http://www.cryptacular.org/
Source0:       https://github.com/vt-middleware/cryptacular/archive/v%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Cryptacular in a nutshell:

° Utilities to perform common crypto operations (hash, encrypt, encode).
° Stateful, thread-safe bean components.
° Components to facilitate strict adherence to standards.
° Comprehensive documentation and examples.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

# Unneeded tasks
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"
%pom_remove_plugin :maven-checkstyle-plugin

%mvn_file org.%{name}:%{name} %{name}

%build
# Test disabled. Caused by: java.lang.ArrayIndexOutOfBoundsException: 1 (on koji builders only)
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE LICENSE-apache2 LICENSE-lgpl NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE LICENSE-apache2 LICENSE-lgpl NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12339 |21mr|cryptopp-8.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define staticname %mklibname %{name} -s -d
%define fver %(echo %{version} |sed s/\\\\.//g)

Summary:	Public domain C++ class library of cryptographic schemes
Name:		cryptopp
Version:	8.7.0
Release:	1
License:	Public Domain
Group:		System/Libraries
Url:		http://www.cryptopp.com/
Source0:	http://www.cryptopp.com/%{name}%{fver}.zip
Source1:	cryptopp.pc
BuildRequires:	doxygen
%ifarch %{ix86} %{x86_64}
BuildRequires:	nasm
%endif


%description
Crypto++ Library is a public domain C++ class library of cryptographic 
schemes. Currently the library consists of the following features:

    * a class hierarchy with an API defined by abstract base classes 
    * AES(Rijndael) and AES candidates: RC6, MARS, Twofish, Serpent, 
      CAST-256
    * other symmetric block ciphers: IDEA, DES, Triple-DES (DES-EDE2 
      and DES-EDE3), DESX (DES-XEX3), RC2, RC5, Blowfish, TEA, XTEA, 
      SAFER, 3-WAY, GOST, SHARK, CAST-128, Square, Skipjack, Camellia, 
      SHACAL-2
    * generic block cipher modes: ECB, CBC, CBC ciphertext stealing 
      (CTS), CFB, OFB, counter mode (CTR)
    * stream ciphers: Salsa20, Panama, ARC4, SEAL, WAKE, WAKE-OFB, 
      BlumBlumShub
    * public-key cryptography: RSA, DSA, ElGamal, Nyberg-Rueppel (NR),
      Rabin, Rabin-Williams (RW), LUC, LUCELG, DLIES (variants of 
      DHAES), ESIGN
    * padding schemes for public-key systems: PKCS#1 v2.0, OAEP, PSS, 
      PSSR, IEEE P1363 EMSA2 and EMSA5
    * key agreement schemes: Diffie-Hellman (DH), Unified
      Diffie-Hellman (DH2), Menezes-Qu-Vanstone (MQV), LUCDIF, XTR-DH
    * elliptic curve cryptography: ECDSA, ECNR, ECIES, ECDH, ECMQV
    * one-way hash functions: SHA-1, MD2, MD4, MD5, HAVAL, RIPEMD-128, 
      RIPEMD-256, RIPEMD-160, RIPEMD-320, Tiger, SHA-2 (SHA-224, 
      SHA-256, SHA-384, and SHA-512), Panama, WHIRLPOOL
    * message authentication codes: MD5-MAC, HMAC, XOR-MAC, CBC-MAC, 
      DMAC, Two-Track-MAC
    * cipher constructions based on hash functions: Luby-Rackoff, MDC
    * pseudo random number generators (PRNG): ANSI X9.17 appendix C, 
      PGP's RandPool
    * password based key derivation functions: PBKDF1 and PBKDF2 from 
      PKCS #5
    * Shamir's secret sharing scheme and Rabin's information dispersal 
      algorithm (IDA)
    * DEFLATE (RFC 1951) compression/decompression with gzip (RFC 
      1952) and zlib (RFC 1950) format support
    * fast multi-precision integer (bignum) and polynomial operations, 
      with SSE2 optimizations for Pentium 4 processors, and support for 
      64-bit CPUs
    * finite field arithmetics, including GF(p) and GF(2^n)
    * prime number generation and verification
    * various miscellaneous modules such as base 64 coding and 32-bit 
      CRC
    * class wrappers for these operating system features (optional):
          o high resolution timers on Windows, Unix, and MacOS
          o Berkeley and Windows style sockets
          o Windows named pipes
          o /dev/random, /dev/urandom, /dev/srandom
          o Microsoft's CryptGenRandom on Windows 
    * A high level interface for most of the above, using a 
      filter/pipeline metaphor
    * benchmarks and validation testing
    * FIPS 140-2 Validated 

Because one purpose of the project is to act as a repository of public 
domain (not copyrighted) cryptographic source code, the code in 
Crypto++ was either written specifically for this project by its 
contributors and placed in the public domain, or derived from other 
sources that are public domain (again with the exception of mars.cpp).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Base shared library part of %{name}
Group:		System/Libraries

%description -n %{libname}
Crypto++ Library is a free C++ class library of cryptographic schemes.

This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libcryptopp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development documentation for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Crypto++ Library is a free C++ class library of cryptographic schemes.

This package contains the header files and development documentation
for %{name}.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n %{staticname}
Summary:	Static libraries for programs which will use %{name}
Group:		Development/C++
Requires:	%{devname} = %{EVRD}

%description -n %{staticname}
Crypto++ Library is a free C++ class library of cryptographic schemes.

This package contains the static library for %{name}.

%files -n %{staticname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Development/C++
Obsoletes:	lib%{name}-doc < %{EVRD}

%description doc
Crypto++ Library is a free C++ class library of cryptographic schemes.

This package contains documentation for %{name}.

%files doc
%doc html-docs License.txt Readme.txt

#----------------------------------------------------------------------------

%package progs
Summary:	Programs for manipulating %{name} routines
Group:		Development/Other
Obsoletes:	lib%{name}-progs < %{EVRD}

%description progs
Crypto++ Library is a free C++ class library of cryptographic schemes.

This package contains programs for manipulating %{name} routines.

%files progs
%{_bindir}/cryptest
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qc
sed -i -e 's/\r$//g' License.txt Readme.txt

%build
%ifarch %{e2k}
# e2k build fail with error:
# lcc: "xts.cpp", line 70: error #20: identifier "M128_CAST" is undefined
%make -f GNUmakefile ZOPT='' CXXFLAGS="%{optflags} -DCRYPTOPP_DISABLE_ASM -DNDEBUG" static dynamic cryptest.exe
%else
%make -f GNUmakefile ZOPT='' CXXFLAGS="%{optflags} -DNDEBUG" static dynamic cryptest.exe
%endif
doxygen

%install
%makeinstall_std INSTALL="install -p -c " PREFIX="%{_prefix}" LIBDIR="%{_libdir}"

# Install pkg-config file
install -D -m 0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/cryptopp.pc
# Set variables
sed -i "s|@PREFIX@|%{_prefix}|g;s|@LIBDIR@|%{_libdir}|g;s|@INCLUDEDIR@|%{_includedir}|g" %{buildroot}%{_libdir}/pkgconfig/cryptopp.pc

install -d %{buildroot}%{_datadir}/%{name}/TestVectors
install -m 0644 TestVectors/* %{buildroot}%{_datadir}/%{name}/TestVectors
install -d %{buildroot}%{_datadir}/%{name}/TestData
install -m 0644 TestData/* %{buildroot}%{_datadir}/%{name}/TestData

rm -f %{buildroot}%{_bindir}/cryptestcwd
# Rename cryptest
mv %{buildroot}%{_bindir}/cryptest.exe %{buildroot}%{_bindir}/cryptest

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12340 |21mr|cryptsetup-2.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%bcond_with compatible
%bcond_with static

%define major 12
%define libname %mklibname cryptsetup %{major}
%define devname %mklibname cryptsetup -d

Summary:	Utility for setting up encrypted filesystems
Name:		cryptsetup
Version:	2.4.3
Release:	1
License:	GPLv2+
Group:		System/Base
Url:		https://gitlab.com/cryptsetup/cryptsetup
Source0:	https://www.kernel.org/pub/linux/utils/%{name}/v%(echo %{version} |cut -d. -f1-2)/%{name}-%{version}.tar.xz
# selinux support works only with --enable-static-cryptsetup
%if %{with selinux}
BuildRequires:	selinux-devel
BuildRequires:	sepol-devel
%endif
BuildRequires:	pkgconfig(devmapper)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(libargon2)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	libpwquality-devel
BuildRequires:	pkgconfig(libsystemd)
%if %{with static}
BuildRequires:	glibc-static-devel
%endif
%rename		cryptsetup-luks
Obsoletes:	cryptsetup-python3 < 2.1.0

%description
LUKS is the upcoming standard for Linux hard disk encryption.
By providing a standard on-disk-format, it does not only facilitate
compatibility among distributions, but also provide secure management
of multiple user passwords. In contrast to existing solution, LUKS stores
all setup necessary setup information in the partition header, enabling
the user to transport or migrate his data seamlessly.
LUKS for dm-crypt is implemented in cryptsetup. cryptsetup-luks is
as a complete replacement for the original cryptsetup. It provides all the
functionally of the original version plus all LUKS features, that are
accessible by luks* action.

%files -f %{name}.lang
%doc AUTHORS FAQ
%{_mandir}/man8/cryptsetup.8*
%{_mandir}/man8/cryptsetup-reencrypt.8*
%{_mandir}/man8/veritysetup.8*
%{_mandir}/man8/integritysetup.8*
%{_mandir}/man8/cryptsetup-ssh.8*
%{_tmpfilesdir}/cryptsetup.conf
%{_libdir}/cryptsetup/libcryptsetup-token-ssh.so
/sbin/cryptsetup
/sbin/cryptsetup-reencrypt
/sbin/veritysetup
/sbin/integritysetup
/sbin/cryptsetup-ssh

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for setting up encrypted filesystems
Group:		System/Libraries

%description -n %{libname}
LUKS is the upcoming standard for Linux hard disk encryption.
By providing a standard on-disk-format, it does not only facilitate
compatibility among distributions, but also provide secure management
of multiple user passwords. In contrast to existing solution, LUKS stores
all setup necessary setup information in the partition header, enabling
the user to transport or migrate his data seamlessly.

This package contains the shared libraries required for running
programs which use cryptsetup-luks.

%files -n %{libname}
/%{_lib}/libcryptsetup.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library for setting up encrypted filesystems
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
LUKS is the upcoming standard for Linux hard disk encryption.
By providing a standard on-disk-format, it does not only facilitate
compatibility among distributions, but also provide secure management
of multiple user passwords. In contrast to existing solution, LUKS stores
all setup necessary setup information in the partition header, enabling
the user to transport or migrate his data seamlessly.

This package contains the header files and development libraries
for building programs which use cryptsetup-luks.

%files -n %{devname}
%{_includedir}/libcryptsetup.h
%if %{with static}
%{_libdir}/libcryptsetup.a
%endif
%{_libdir}/libcryptsetup.so
%{_libdir}/pkgconfig/libcryptsetup.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
CONFIGURE_TOP="$PWD"
%configure \
	--sbindir=/sbin \
	--enable-python \
	--enable-pwquality \
	--enable-libargon2 \
	--enable-cryptsetup-reencrypt \
	--with-crypto_backend=kernel \
%if %{with static}
	--enable-static-cryptsetup \
%if %{with selinux}
	--enable-selinux \
%else
	--disable-selinux \
%endif
%endif
%if %{with compatible}
	--with-plain-mode=cbc-plain \
	--with-luks1-keybits=128
%endif

%make_build

%install
%make_install

mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libcryptsetup.so.%{major}* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libcryptsetup.so.%{major}.*.* %{buildroot}%{_libdir}/libcryptsetup.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12341 |21mr|cssparser-0.9.20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          cssparser
Version:       0.9.20
Release:       7
Summary:       CSS Parser
License:       ASL 2.0
URL:           http://cssparser.sourceforge.net/
# sh ./fetch-cssparser.sh <VERSION>
Source0:       cssparser-%{version}.tar.xz
Source1:       fetch-cssparser.sh

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: java-devel >= 1:1.6.0
BuildRequires: maven-local
BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin) >= 2.6-3
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.w3c.css:sac) >= 1.3-6
Requires:      java-headless

%description
A CSS parser which implements SAC (the Simple API for CSS).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%pom_remove_plugin :maven-checkstyle-plugin
# unused artefact
%pom_remove_plugin :maven-source-plugin

# SACParserCSS3Test.unicodeInputByteStreamDefaultEncoding:2981
# expected:<...:before { content: "[? - ?]" }> but was:<...:before { content: "[? - ?]" }>
rm src/test/java/com/steadystate/css/parser/SACParserCSS3Test.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc doc/license.html doc/readme.html
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12342 |21mr|csvjdbc-1.0.29-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          csvjdbc
Version:       1.0.29
Release:       7
Summary:       Java driver for reading comma-separated-value files
License:       LGPLv2+
URL:           http://csvjdbc.sourceforge.net/
# there's no upstream tarball
# git clone git://git.code.sf.net/p/csvjdbc/code csvjdbc
# cd csvjdbc && git checkout v1.0-29 && git checkout-index -f -a --prefix=csvjdbc-1.0.29/
# find csvjdbc-1.0.29/ -name "*.class" -print -delete
# find csvjdbc-1.0.29/ -name "*.jar" -print -delete
# tar -cJf ../csvjdbc-1.0.29.tar.xz csvjdbc-1.0.29
Source0:       %{name}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
CsvJdbc is a read-only JDBC driver that uses Comma Separated Value
(CSV) files or DBF files as database tables. It is ideal for
writing data import programs or analyzing log files.

The driver enables a directory or a ZIP file containing CSV or DBF files
to be accessed as though it were a database containing tables. However,
as there is no real database management system behind the scenes,
not all JDBC functionality is available.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

mv src/doc/license.txt .

# Unneeded tasks
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-source-plugin
# org.apache.maven.wagon:wagon-ssh:2.5
%pom_xpath_remove pom:build/pom:extensions

%mvn_file net.sourceforge.%{name}:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc src/doc/*
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12343 |21mr|ctags-5.8-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generates an index (or "tag") file for objects found in source files
Name:		ctags
Version:	5.8
Release:	13
# Add epoch to be grater than ctags provided by xemacs-extras
Epoch:		1
License:	GPLv2+
Group:		Development/Other
Url:		http://ctags.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/ctags/%{name}-%{version}.tar.bz2
Patch0:		ctags-5.7-destdir.patch
Patch1:		ctags-5.7-segment-fault.patch
Patch2:		ctags-5.8-css.patch
Patch3:		ctags-5.8-ocaml-crash.patch
Patch4:		ctags-5.8-cssparse.patch
Patch5:		ctags-5.8-memmove.patch
Patch6:		ctags-5.8-format-security.patch
Patch7:		ctags-CVE-2014-7204.patch

%description
The ctags program generate an index (or "tag") file for a variety of
language objects found in files.  This tag file allows these items to
be quickly and easily located by a text editor or other utility.  A
"tag" signifies a language object for which an index entry is
available (or, alternatively, the index entry created for that object).

Alternatively, ctags can generate a cross reference file which lists, in
human readable form, information about the various source objects found in
a set of language files.

%files
%doc EXTENDING.html FAQ NEWS README ctags.html
%{_bindir}/exuberant-ctags
%{_mandir}/man1/exuberant-ctags.1*

%post
update-alternatives --install %{_bindir}/ctags ctags %{_bindir}/exuberant-ctags 10 \
                    --slave %{_mandir}/man1/ctags.1%{_extension} ctags.1%{_extension} %{_mandir}/man1/exuberant-ctags.1%{_extension}

%postun
[ $1 = 0 ] || exit 0
update-alternatives --remove ctags %{_bindir}/exuberant-ctags

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .destdir
%patch1 -p1 -b .crash
%patch2 -p1 -b .css-support
%patch3 -p1 -b .ocaml-crash
%patch4 -p1 -b .cssparse-crash
%patch5 -p1 -b .memmove
%patch6 -p1 -b .fmt-sec
%patch7 -p1 -b .CVE-2014-7204
# fix permission for %doc
chmod a+r ctags.html

%build
%configure \
	--disable-etags \
	--enable-tmpdir=/tmp
%make

%install
%makeinstall

mv %{buildroot}/%{_bindir}/ctags %{buildroot}/%{_bindir}/exuberant-ctags
mv %{buildroot}/%{_mandir}/man1/ctags.1 %{buildroot}/%{_mandir}/man1/exuberant-ctags.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12344 |21mr|ctdb-2.5.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clustered TDB
Name:		ctdb
Version:	2.5.6
Release:	1
License:	GPLv3+
Group:		System/Cluster
Url:		http://ctdb.samba.org/
Source0:	http://ftp.samba.org/pub/ctdb/%{name}-%{version}.tar.gz
Source1:	ctdb_check_config
Source100:	%{name}.rpmlintrc
# Fedora specific patch, ctdb should not be enabled by default in the runlevels
Patch1:		ctdb-2.5.6-no_default-runlevel.patch
Patch2:		ctdb-2.5.6-linkage-fix.patch
Patch3:		ctdb-2.5.6-fix-unit-file.patch
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(tevent)
Requires(pre):	chkconfig
Requires(pre):	coreutils
Requires(pre):	mktemp
Requires(pre):	psmisc
Requires(pre):	sed
Requires(pre,postun):	rpm-helper
Requires(pre,postun):	systemd

%description
This package contains the clustered database used by samba.

%files
%doc doc/*html
%attr(755,root,root) %{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/%{name}/nodes
%{_sysconfdir}/%{name}/functions
%{_sysconfdir}/%{name}/events.d/
%{_sysconfdir}/%{name}/nfs-rpc-checks.d/
%{_sysconfdir}/%{name}/statd-callout
%{_sysconfdir}/%{name}/systemd/%{name}_check_config
%{_sysconfdir}/%{name}/*.sh
%{_sysconfdir}/sudoers.d/%{name}
%{_sysconfdir}/sysconfig/%{name}
%{_sbindir}/ctdbd
%{_sbindir}/ctdbd_wrapper
%{_bindir}/%{name}
%{_bindir}/ltdbtool
%{_bindir}/smnotify
%{_bindir}/%{name}_diagnostics
%{_bindir}/%{name}_event_helper
%{_bindir}/%{name}_lock_helper
%{_bindir}/onnode
%{_bindir}/ping_pong
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/ltdbtool.1*
%{_mandir}/man1/ctdbd.1*
%{_mandir}/man1/ctdbd_wrapper.1*
%{_mandir}/man1/onnode.1*
%{_mandir}/man1/ping_pong.1*
%{_mandir}/man5/ctdbd.conf.5*
%{_mandir}/man7/%{name}.7*
%{_mandir}/man7/%{name}-statistics.7*
%{_mandir}/man7/%{name}-tunables.7*
%dir %attr(750,root,root) /var/lib/%{name}

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for ctdb
Group:		Development/Other

%description devel
Development files for %{name}.

%files devel
%doc COPYING
%{_includedir}/*.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
## Always run autogen.sh
./autogen.sh
export CFLAGS="%{build_cflags} $EXTRA -D_GNU_SOURCE"
%configure \
	--without-included-popt \
	--without-included-talloc \
	--without-included-tdb \
	--without-included-tevent

make showflags
%make
sed -i -e 's/^(Version: *)$/$1 %{version}/g' %{name}.pc


%install
%makeinstall_std

mkdir -p %{buildroot}%{_unitdir}
install -m 755 config/%{name}.service %{buildroot}%{_unitdir}

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 config/%{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/%{name}/systemd
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/systemd

mkdir -p %{buildroot}/var/lib/%{name}
perl -pi -e 's,/var/ctdb,/var/lib/%{name},g' %{buildroot}/%{_initrddir}/%{name}

touch %{buildroot}/%{_sysconfdir}/%{name}/nodes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12345 |21mr|cunit-2.1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname CUnit
%define oversion 2.1-3

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A Unit Testing Framework for C
Name:		cunit
Version:	2.1.3
Release:	6
License:	GPLv2+
Group:		System/Libraries
Url:		http://cunit.sourceforge.net
Source0:	http://sourceforge.net/projects/cunit/files/CUnit/%{oversion}/%{oname}-%{oversion}.tar.bz2
Patch0:		cunit-2.1.0.link_against_ncurses.patch
BuildRequires:	pkgconfig(ncurses)

%description
CUnit is a lightweight system for writing, administering, and running unit
tests in C.  It provides C programmers a basic testing functionality with a
flexible variety of user interfaces.

CUnit is built as a static library which is linked with the user's testing
code.  It uses a simple framework for building test structures, and provides a
rich set of assertions for testing common data types. In addition, several
different interfaces are provided for running tests and reporting results.
These interfaces currently include:

- Automated: Non-interactive output to xml file
- Basic: Non-interactive flexible programming interface
- Console: Interactive console interface (ansi C)
- Curses: Interactive graphical interface (Unix)

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C testing framework
Group:		System/Libraries

%description -n %{libname}
CUnit is a lightweight system for writing, administering, and running unit
tests in C.  It provides C programmers a basic testing functionality with a
flexible variety of user interfaces.

CUnit is built as a static library which is linked with the user's testing
code.  It uses a simple framework for building test structures, and provides a
rich set of assertions for testing common data types. In addition, several
different interfaces are provided for running tests and reporting results.
These interfaces currently include:

- Automated: Non-interactive output to xml file
- Basic: Non-interactive flexible programming interface
- Console: Interactive console interface (ansi C)
- Curses: Interactive graphical interface (Unix)

%files -n %{libname}
%{_libdir}/libcunit.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_datadir}/doc/%{libname}-devel-%{version}
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{oname}
%{_datadir}/%{oname}
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{oversion}
%patch0 -p0
chmod 644 AUTHORS NEWS ChangeLog README TODO

%build
autoreconf -fi
%configure \
	--enable-curses \
    --enable-static
%make

%install
%makeinstall_std

# fix la file
perl -pi -e 's| -L\S+ ||'  %{buildroot}%{_libdir}/libcunit.la

# ugly, but needed to deal with installed and non-installed documentation
install -d -m 755 %{buildroot}%{_datadir}/doc/%{libname}-devel-%{version}
mv %{buildroot}%{_prefix}/doc/%{oname} \
    %{buildroot}%{_datadir}/doc/%{libname}-devel-%{version}/html
install -m 644 AUTHORS NEWS ChangeLog README TODO \
    %{buildroot}%{_datadir}/doc/%{libname}-devel-%{version}
rm -rf %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12346 |21mr|cups-2.4.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# {_exec_prefix}/lib/cups is correct, even on x86_64.
# It is not used for shared objects but for executables.
# It's more of a libexec-style ({_libexecdir}) usage,
# but we use lib for compatibility with 3rd party drivers (at upstream request).
%global cups_serverbin %{_exec_prefix}/lib/cups

# Turning this on lets CUPS to be built in debug mode (with debugger symbols)
%define debug 1
%define enable_check 0

%{?build_nickel}%{?!build_nickel:%bcond_with nickel}

# We would like to avoid not well controllable network broadcasting
# in certified distros
%if %{with nickel}
%bcond_with avahi
%else
%bcond_without avahi
%endif

%bcond_with poll_ppd_base
%bcond_without php

Summary:	Common Unix Printing System - Server package
Name:		cups
Version:	2.4.10
Release:	5
License:	GPLv2+ and LGPLv2+
Group:		System/Printing
Url:		https://openprinting.github.io/cups/
#Source0:	ftp://ftp.easysw.com/pub/cups/%%{version}/%%{name}-%%{version}-source.tar.bz2
Source0:	https://github.com/OpenPrinting/cups/releases/download/v%{version}/cups-%{version}-source.tar.gz
# Small C program to get list of all installed PPD files
Source1:	poll_ppd_base.c
# Small C program to list the printer-specific options of a particular printer
# fails to build now
Source2:	lphelp.c
# Backend for NCP protocol
Source7:	ncp.backend
Source10:	cups.sysusers.conf
# Backend filter for nprint (Novell client) from Mark Horn
# (mark@hornclan.com)
Source11:	http://www.hornclan.com/~mark/cups/nprint.2002011801
# AppleTalk/netatalk backend for CUPS
Source12:	http://www.oeh.uni-linz.ac.at/~rupi/pap/pap-backend.tar.bz2
Source13:	http://www.oeh.uni-linz.ac.at/~rupi/pap/pap-docu.pdf.bz2
Source14:	http://www.linuxprinting.org/download/printing/photo_print
Source15:	http://printing.kde.org/downloads/pdfdistiller
Source16:	cjktexttops
Source17:	correctcupsconfig
# udev rules for setting symlinks needed if the usblp module is loaded
Source19:	10-cups_device_links.rules
# Udev rules for setting properly rights and groups
Source20:	10-cups_device_usb.rules
# For rosa-printmarkerd, applied only on certified platforms
Source21:	rosa-printmarkerd-mime.diff

Patch2:		cups-system-auth.patch
Patch5:		cups-banners.patch
Patch8:		cups-direct-usb.patch
Patch13:	cups-driverd-timeout.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=747866
Patch14:	cups-dymo-deviceid.patch
Patch16:	cups-usb-paperout.patch
Patch18:	cups-filter-debug.patch
Patch19:	cups-uri-compat.patch
Patch32:	cups-freebind.patch
Patch39:	cups-ipp-multifile.patch
Patch41:	cups-web-devices-timeout.patch
Patch46:	cups-print-device-uri.patch
# https://github.com/OpenPrinting/cups/pull/826
Patch601:	0001-Fix-driverless-printing-on-Pantum-M7300FDW.patch
# https://github.com/OpenPrinting/cups/commit/75eb1eca9d9a
Patch602:	75eb1eca9d9a14064bb0d73efc0bb067d646e994.patch
# Backport from https://github.com/OpenPrinting/cups/pull/1029
Patch700:	0001-Fix-HTTP-PeerCred-authentication-for-domain-users.patch

%if %{with php}
BuildRequires:	php-cli
BuildRequires:	php-devel
%endif
BuildRequires:	xdg-utils
BuildRequires:	acl-devel
BuildRequires:	jpeg-devel
BuildRequires:	krb5-devel
BuildRequires:	openldap-devel
BuildRequires:	openslp-devel
BuildRequires:	pam-devel
BuildRequires:	tiff-devel
%if %{with avahi}
BuildRequires:	pkgconfig(avahi-compat-libdns_sd)
%endif
BuildRequires:	pkgconfig(dbus-1) >= 0.50
BuildRequires:	pkgconfig(gnutls) >= 3.0
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libusb) < 1.0
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(zlib)
%if !%{with bootstrap}
BuildRequires:	poppler
%endif
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(systemd)
%if %{with selinux}
BuildRequires:	audit-devel
BuildRequires:	selinux-devel
%endif

Requires:	%{name}-common >= %{EVRD}
Requires:	cups-filters
# for bash script /usr/lib/cups/backend/pdf
Requires:	which
Requires:	net-tools
%if !%{with bootstrap}
Requires:	poppler
%if %{with avahi}
Recommends:	avahi
%endif
%if %{mdvver} < 202310
Requires(pre):	/bin/systemd-sysusers
%else
Requires(pre):	/usr/bin/systemd-sysusers
%endif
%endif
Requires:	printer-testpages
# Take care that device files are created with correct permissions
Requires:	udev
# For desktop menus
Requires:	(xdg-utils if task-x11)
# user lp (used in %%attr) is in default /etc/passwd
OrderWithRequires:	setup
Provides:	cupsddk-drivers = %{EVRD}

%description
The Common Unix Printing System provides a portable printing layer for
UNIX(TM) operating systems. It has been developed by Easy Software Products
to promote a standard printing solution for all UNIX vendors and users.
CUPS provides the System V and Berkeley command-line interfaces.
This is the main package needed for CUPS servers (machines where a
printer is connected to or which host a queue for a network printer).
It can also be used on CUPS clients so that they simply pick up
broadcasted printer information from other CUPS servers and do not
need to be assigned to a specific CUPS server by an
%{_sysconfdir}/cups/client.conf file.

%files
%license LICENSE
%doc *.md
%config(noreplace) %attr(-,root,lp) %{_sysconfdir}/cups/cupsd.conf
%config(noreplace) %attr(-,root,root) %{_sysconfdir}/cups/cups-files.conf
%config(noreplace) %attr(-,root,root) %{_sysconfdir}/cups/cups-files.conf.default
%ghost %config(noreplace) %{_sysconfdir}/cups/printers.conf
%ghost %config(noreplace) %{_sysconfdir}/cups/classes.conf
%ghost %config(noreplace) %{_sysconfdir}/cups/subscriptions.conf
%ghost %config(noreplace) %{_sysconfdir}/cups/lpoptions
%attr(-,root,sys) %{_sysconfdir}/cups/cupsd.conf.default
%config(noreplace) %attr(-,root,lp) %{_sysconfdir}/cups/ppd
%config(noreplace) %attr(-,root,lp) %{_sysconfdir}/cups/ssl
%config(noreplace) %attr(-,root,lp) %{_sysconfdir}/cups/snmp.conf
%config(noreplace) %attr(-,root,lp) %{_sysconfdir}/cups/snmp.conf.default
%config(noreplace) %attr(-,root,lp) %{_sysconfdir}/dbus-1/system.d/cups.conf
%{_tmpfilesdir}/cups.conf
%{_tmpfilesdir}/cups-lp.conf
%config(noreplace) %{_sysconfdir}/pam.d/cups
%{_udevrulesdir}/*
%dir %{_prefix}/lib/cups
%{_prefix}/lib/cups/cgi-bin
%{_prefix}/lib/cups/daemon
%{_prefix}/lib/cups/notifier
%{_prefix}/lib/cups/filter
%{_prefix}/lib/cups/monitor
%dir %{_prefix}/lib/cups/backend
%dir %{_prefix}/lib/cups/command
%if %{with avahi}
%{_prefix}/lib/cups/backend/dnssd
%endif
%{_prefix}/lib/cups/command/ippevepcl
%{_prefix}/lib/cups/command/ippeveps
%{_prefix}/lib/cups/backend/http
%{_prefix}/lib/cups/backend/https
%{_prefix}/lib/cups/backend/ipp
%{_prefix}/lib/cups/backend/ipps
%{_prefix}/lib/cups/backend/lpd
%{_prefix}/lib/cups/backend/nprint
%{_prefix}/lib/cups/backend/pap
#{_prefix}/lib/cups/backend/parallel
%{_prefix}/lib/cups/backend/ncp
#%%{_prefix}/lib/cups/backend/scsi
%{_prefix}/lib/cups/backend/snmp
%{_prefix}/lib/cups/backend/socket
%{_prefix}/lib/cups/backend/usb
%{_prefix}/lib/cups/backend/pdf
%dir %{_prefix}/lib/cups/driver
%{_datadir}/cups
%attr(0755,root,lp) %{_var}/log/cups
# Set ownerships of spool directory which is normally done by 'make install'
# Because RPM does 'make install' as normal user, this has to be done here
%dir %attr(0710,root,lp) %{_var}/spool/cups
%dir %attr(01770,root,lp) %{_var}/spool/cups/tmp
%dir %attr(775,root,lp) %{_var}/cache/cups
# Bug #28383 dirs
%dir %{_datadir}/ppd
%dir %{_libdir}/printdriver
# Desktop icons
%{_datadir}/applications/*
%{_datadir}/icons/hicolor/*/apps/cups.png
%ifarch x86_64
# Compatibility link, will be removed soon
%{_libdir}/cups
%endif
%{_sysusersdir}/cups.conf
%{_unitdir}/cups-lpd.socket
%{_unitdir}/cups-lpd@.service
%{_unitdir}/cups.path
%{_unitdir}/cups.service
%{_unitdir}/cups.socket

%pre
%sysusers_create_package cups %{SOURCE10}

%post
# Make sure group ownerships are correct
chgrp -R lp %{_sysconfdir}/cups %{_var}/*/cups

%systemd_post cups-lpd.socket cups.path cups.service cups.socket

%preun
%systemd_preun cups-lpd.socket cups.path cups.service cups.socket

#----------------------------------------------------------------------------

%package common
Summary:	Common Unix Printing System - Common stuff
License:	GPLv2+
Group:		System/Printing
Requires:	net-tools
# To satisfy LSB/FHS
Provides:	lpddaemon = %{EVRD}

%description common
The Common Unix Printing System provides a portable printing layer for
UNIX(TM) operating systems. It contains the command line utilities for
printing and administration (lpr, lpq, lprm, lpadmin, lpc, ...), man
pages, locales, and a sample configuration file for daemon-less CUPS
clients (%{_sysconfdir}/cups/client.conf).

This package you need for both CUPS clients and servers.

%files common
%license LICENSE
%dir %config(noreplace) %attr(-,lp,lp) %{_sysconfdir}/cups
%ghost %config(noreplace) %attr(-,lp,lp) %{_sysconfdir}/cups/client.conf
%{_bindir}/cancel
%{_bindir}/ippeveprinter
%{_bindir}/lp
%{_bindir}/lpq
%{_bindir}/lpr
%{_bindir}/lprm
%{_bindir}/lpstat
%{_sbindir}/correctcupsconfig
%{_sbindir}/cupsaccept
%{_sbindir}/cupsctl
%{_sbindir}/cupsd
%{_sbindir}/cupsdisable
%{_sbindir}/cupsenable
%{_sbindir}/cupsfilter
%{_sbindir}/cupsreject
%{_sbindir}/lpadmin
%{_sbindir}/lpc
%{_sbindir}/lpinfo
%{_sbindir}/lpmove
%if %{with avahi}
%{_bindir}/ippfind
%endif
%{_bindir}/ipptool
#%%{_bindir}/lphelp
%{_bindir}/lpoptions
%{_bindir}/photo_print
#{_bindir}/poll_ppd_base
%{_bindir}/ppdc
%{_bindir}/ppdhtml
%{_bindir}/ppdi
%{_bindir}/ppdmerge
%{_bindir}/ppdpo
%{_bindir}/cupstestppd
%{_datadir}/locale/*/*.po
%{_mandir}/man?/*
%exclude %{_mandir}/man1/cups-config.1*

#----------------------------------------------------------------------------

%define cupsmajor 2
%define libcups %mklibname cups %{cupsmajor}

%package -n %{libcups}
Summary:	Common Unix Printing System - CUPS shared library
License:	LGPLv2+
Group:		System/Libraries
Obsoletes:	%{_lib}cups3 < 1.6.1-2
# Removed in 2.2.10
Obsoletes:	%{_lib}cupscgi1 < 2.2.10
Obsoletes:	%{_lib}cupsmime1 < 2.2.10
Obsoletes:	%{_lib}cupsppdc1 < 2.2.10
# compat with Fedora/RH and e.g. its java
Provides:	cups-libs = %{EVRD}

%description -n %{libcups}
Common Unix Printing System - CUPS shared library.

%files -n %{libcups}
%license LICENSE
%{_libdir}/libcups.so.%{cupsmajor}*

#----------------------------------------------------------------------------

%define cupsimagemajor 2
%define libcupsimage %mklibname cupsimage %{cupsimagemajor}

%package -n %{libcupsimage}
Summary:	Common Unix Printing System - CUPSimage shared library
License:	LGPLv2
Group:		System/Libraries
Conflicts:	%{libcups} < 1.6.1-2

%description -n %{libcupsimage}
Common Unix Printing System - CUPSimage shared library.

%files -n %{libcupsimage}
%license LICENSE
%{_libdir}/libcupsimage.so.%{cupsimagemajor}*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Common Unix Printing System - development files
License:	LGPLv2+
Group:		Development/C
Requires:	%{libcups} = %{EVRD}
Requires:	%{libcupsimage} = %{EVRD}
Provides:	cups-devel = %{EVRD}
# There is no pkgconfig file (https://github.com/apple/cups/issues/3128),
# so RPM can't make deps for devel subpackage automatically,
# let's resolve LIBS= from resulting /usr/bin/cups-config
# Otherwise e.g. Chromium tries to link with -l<...>, but it is not installed.
# LIBS="-lgssapi_krb5 -lkrb5 -lk5crypto -lcom_err  -lz -lpthread -lm -lcrypt   -lz"
Requires:	pkgconfig(krb5)
Requires:	pkgconfig(com_err)
Requires:	pkgconfig(zlib)
Requires:	glibc-devel

%description -n %{devname}
Common Unix Printing System - development files.

%files -n %{devname}
%license LICENSE
%{_includedir}/cups
%{_libdir}/*.so
%{_libdir}/pkgconfig/cups.pc
%{_bindir}/cups-config
%{_mandir}/man1/cups-config.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%autopatch -p1

%if %{with nickel}
patch -p1 < %{SOURCE21}
%endif

# Set CUPS users and groups
perl -p -i -e 's:(SystemGroup\s+.*)$:$1\nGroup sys\nUser lp:' conf/cupsd.conf.in

# Let local printers be broadcasted in the local network(s)
perl -p -i -e 's:(Listen\s+)localhost:$1*:' conf/cupsd.conf.in
perl -p -i -e 's:(Browsing\s+On):$1:' conf/cupsd.conf.in
perl -p -i -e 's:(<Location\s+/\s*>):$1\n  Allow \@LOCAL:' conf/cupsd.conf.in

# Allow remote administration in local network (connections are encrypted,
# so no security problem)
perl -p -i -e 's:(<Location\s+/admin(|/conf)\s*>):$1\n  Allow \@LOCAL:' conf/cupsd.conf.in

# Replace the PAM configuration file
cat << EOF > scheduler/cups.pam
auth	include	system-auth
account	include	system-auth
EOF
cp -f scheduler/cups.pam conf/pam.std.in

# Let the Makefiles not trying to set file ownerships
perl -p -i -e "s/ -o \\$.CUPS_USER.//" scheduler/Makefile
perl -p -i -e "s/ -g \\$.CUPS_GROUP.//" scheduler/Makefile
perl -p -i -e "s/ -o \\$.CUPS_USER.//" systemv/Makefile
perl -p -i -e "s/ -g \\$.CUPS_GROUP.//" systemv/Makefile

# Log into the system journal by default (RHBZ#1078781, RHBZ#1519331).
# (but keep old behaviour on older platforms)
%if %{mdvver} >= 202310
sed -i -e 's,^ErrorLog .*$,ErrorLog syslog,' conf/cups-files.conf.in
sed -i -e 's,^AccessLog .*$,AccessLog syslog,' conf/cups-files.conf.in
sed -i -e 's,^PageLog .*,PageLog syslog,' conf/cups-files.conf.in
%endif

# Let's look at the compilation command lines.
perl -p -i -e "s,^.SILENT:,," Makedefs.in

# Load additional tools
cp %{SOURCE1} poll_ppd_base.c
cp %{SOURCE2} lphelp.c
# Load nprint backend
cp %{SOURCE11} nprint
# Load AppleTalk "pap" backend
%setup -q -T -D -a 12 -n %{name}-%{version}
# Load the "pap" documentation
bzcat %{SOURCE13} > pap-docu.pdf
# Load the "photo_print" utility
cp %{SOURCE14} photo_print
# Load the "pdfdistiller" utility
cp %{SOURCE15} pdf
# Load the "cjktexttops" filter
cp %{SOURCE16} cjktexttops

%build
# needed by additional SOURCES
aclocal
autoconf
# for the PHP module
%define _disable_ld_no_undefined 1
# cups uses clang by default but we prefer gcc
export CC=gcc
export CXX=g++
#setup_compile_flags
# cups uses $DSOFLAGS instead of $LDFLAGS for shared libs
export DSOFLAGS="$LDFLAGS"
%configure \
%if %{with selinux}
	--enable-lspp \
%endif
%if %{with avahi}
	--enable-avahi \
%else
	--disable-avahi \
%endif
%if %{debug}
	--enable-debug=yes \
%endif
	--with-cupsd-file-perm=0755 \
	--with-exe-file-perm=0755 \
	--with-log-file-perm=0600 \
	--disable-default-shared \
	--disable-libpaper \
	--enable-raw-printing \
	--enable-ssl \
	--enable-sync-on-close \
	--disable-static \
	--with-cups-group=lp \
	--with-cups-user=lp \
	--with-system-groups="lpadmin root wheel" \
	--with-error-policy="retry-job" \
	--with-docdir=%{_datadir}/cups/doc \
	--with-icondir=%{_datadir}/icons \
%if %{with php}
	--with-php=%{_bindir}/php \
%endif
	--with-dbusdir=%{_sysconfdir}/dbus-1 \
	--with-pkgconfpath=%{_libdir}/pkgconfig \
	--enable-webif \
	--enable-relro \
	--without-xinetd \
	--without-rcdir

%if %{debug}
# Remove "-s" (stripping) option from "install" command used for binaries
# by "make install"
perl -p -i -e 's:^(\s*INSTALL_BIN\s*=.*)-s:$1:' Makedefs
%endif

# Remove hardcoded "chgrp" from Makefiles
perl -p -i -e 's/chgrp/:/' Makefile */Makefile
# w/a strange issues with detecting dbus directory
sed -i -e 's,$(DBUSDIR),%{_sysconfdir}/dbus-1/,g' desktop/Makefile
%make

# Compile additional tools
%if %{with poll_ppd_base}
gcc %{optflags} %{ldflags} -opoll_ppd_base -I. -I./cups poll_ppd_base.c -L./cups -lcups
%endif

%install
make install \
	BUILDROOT=%{buildroot} \
	DOCDIR=%{buildroot}%{_datadir}/cups/doc \
	CHOWN=":" CHGRP=":" STRIP="$STRIP" \
	LOGDIR=%{buildroot}%{_var}/log/cups \
	REQUESTS=%{buildroot}%{_var}/spool/cups \
	STATEDIR=%{buildroot}%{_var}/run/cups

rm -f %{buildroot}%{_libdir}/lib*.la
# Make a directory for PPD generators
mkdir -p %{buildroot}%{_prefix}/lib/cups/driver

# Make a directory for the SSL files
mkdir -p %{buildroot}%{_sysconfdir}/cups/ssl

# Install nprint backend
install -m 755 nprint %{buildroot}%{_prefix}/lib/cups/backend/

# Install AppleTalk backend
install -m 755 pap-backend/pap %{buildroot}%{_prefix}/lib/cups/backend/
install -m 644 pap-docu.pdf %{buildroot}%{_datadir}/%{name}/doc

# Install "photo_print"
install -m 755 photo_print %{buildroot}%{_bindir}

# Install "pdfdistiller"
install -m 755 pdf %{buildroot}%{_prefix}/lib/cups/backend/

# Install "cjktexttops"
install -m 755 cjktexttops %{buildroot}%{_prefix}/lib/cups/filter/

# Install additional tools
%if %{with poll_ppd_base}
install -m 755 poll_ppd_base %{buildroot}%{_bindir}
%endif

# Set link to test page in /usr/share/printer-testpages
ln -s %{_datadir}/printer-testpages/testprint.ps %{buildroot}%{_datadir}/cups/data/testprint-mdv.ps

# Install PPDs
mkdir -p %{buildroot}%{_datadir}/cups/model
#install -m 755 ppd/*.ppd %{buildroot}%{_datadir}/cups/model

# Install script for automatic CUPS configuration
cp %{SOURCE17} %{buildroot}%{_sbindir}/correctcupsconfig
chmod a+rx %{buildroot}%{_sbindir}/correctcupsconfig

%ifarch x86_64
# This one will be removed soon, when all other packages are
# modified appropriately
ln -s %{_prefix}/lib/cups %{buildroot}%{_libdir}/cups
%endif

# Remove links to the startup script, we make our own ones with chkconfig
rm -rf %{buildroot}%{_sysconfdir}/rc?.d/[SK]*
# Remove superflouus man page stuff
rm -rf %{buildroot}%{_mandir}/cat
rm -rf %{buildroot}%{_mandir}/cat?
rm -rf %{buildroot}%{_mandir}/*/cat
rm -rf %{buildroot}%{_mandir}/*/cat?

# Install missing headers (Thanks to Oden Eriksson)
install -m644 cups/debug-private.h  %{buildroot}%{_includedir}/cups/
install -m644 cups/string-private.h %{buildroot}%{_includedir}/cups/
install -m644 config.h %{buildroot}%{_includedir}/cups/

#Install NCP
install -p -m 755 %{SOURCE7} %{buildroot}%{_prefix}/lib/cups/backend/ncp

# Create dummy config files to make them SELinux-prelabelled
touch %{buildroot}%{_sysconfdir}/cups/printers.conf
touch %{buildroot}%{_sysconfdir}/cups/classes.conf
touch %{buildroot}%{_sysconfdir}/cups/client.conf
touch %{buildroot}%{_sysconfdir}/cups/subscriptions.conf
touch %{buildroot}%{_sysconfdir}/cups/lpoptions

# install /usr/lib/tmpfiles.d/cups.conf (bug #656566, bug #893834)
mkdir -p %{buildroot}%{_tmpfilesdir}
cat > %{buildroot}%{_tmpfilesdir}/cups.conf <<EOF
# See tmpfiles.d(5) for details

d /run/cups 0755 root lp -
d /run/cups/certs 0511 lp sys -

d /var/spool/cups/tmp - - - 30d
EOF

# /usr/lib/tmpfiles.d/cups-lp.conf (bug #812641)
cat > %{buildroot}%{_tmpfilesdir}/cups-lp.conf <<EOF
# This file is part of cups.
#
# Legacy parallel port character device nodes, to trigger the
# auto-loading of the kernel module on access.
#
# See tmpfiles.d(5) for details

c /dev/lp0 0660 root lp - 6:0
c /dev/lp1 0660 root lp - 6:1
c /dev/lp2 0660 root lp - 6:2
c /dev/lp3 0660 root lp - 6:3
EOF

# Prefer xdg-utils rather than htmlview (kde one)
sed -i s/htmlview/xdg-open/ %{buildroot}%{_datadir}/applications/*.desktop

## Hide desktop file
chmod 0644 %{buildroot}%{_datadir}/applications/cups.desktop
echo -e '\nHidden=true' >> %{buildroot}%{_datadir}/applications/cups.desktop

# http://qa.mandriva.com/show_bug.cgi?id=28383
# Common PPD dirs
mkdir -p %{buildroot}%{_datadir}/ppd

# Make CUPS know them
ln -s /usr/local/share/ppd %{buildroot}%{_datadir}/cups/model/1-local-admin
ln -s /opt/share/ppd %{buildroot}%{_datadir}/cups/model/2-third-party
ln -s %{_datadir}/ppd %{buildroot}%{_datadir}/cups/model/3-distribution

# Common printer driver dirs
mkdir -p %{buildroot}%{_libdir}/printdriver
# Other dirs can't be handled here, but on %post instead.

# Create /dev/lp* nodes to make usblp happy
mkdir -p %{buildroot}%{_udevrulesdir}
install -c -m 644 %{SOURCE19} %{buildroot}%{_udevrulesdir}
# Fix USB printers permissions and groups
install -c -m 644 %{SOURCE20} %{buildroot}%{_udevrulesdir}

# Remove stuff that's also in cups-filters
rm -f %{buildroot}%{_datadir}/cups/banners/{classified,confidential,secret,standard,topsecret,unclassified}
rm -f %{buildroot}%{_datadir}/cups/data/testprint

for lang in `ls -1 %{buildroot}%{_datadir}/locale/`
do
    echo "%%lang($lang) %{_datadir}/locale/$lang/cups_$lang.po" >> %{name}.lang
done

install -Dm0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/cups.conf

# this directory is already created, but make sure to create and own it when building without avahi
mkdir -p %{buildroot}%{_prefix}/lib/cups/command

%if %{with nickel}
# In addition to rosa-printmarkerd-mime.diff for rosa-printmarkerd.
# Only these 2 files must be available to CUPS, even if other
# are installed by other packages such as cups-filters.
# rosa-printmarkerd-mime.diff bind-mounts /mime-nickel
# on top of /mime, by this overcovering real files from /mime
# by the ones from /mime-nickel only for the namespace of cups.service
mkdir -p %{buildroot}%{_datadir}/cups/mime-nickel
( cd %{buildroot}%{_datadir}/cups/mime-nickel
  for i in mime.convs mime.types; do
    cp -v ../mime/$i .
  done
)
%endif

%if !%{with bootstrap} && %{enable_check}
%check
export LC_ALL=C
export LC_MESSAGES=C
export LANG=C
export LANGUAGE=C
make test << EOF

EOF
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12347 |21mr|cups-browsed-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Daemon for local auto-installation of remote printers
Name:		cups-browsed
Epoch:		1
Version:	2.0.0
Release:	1
License:	Apache 2.0 WITH LLVM-exception
Group:		System/Printing
Url:		https://github.com/OpenPrinting/cups-browsed

Source0:	https://github.com/OpenPrinting/cups-browsed/releases/download/%{version}/cups-browsed-%{version}.tar.xz

# for generating configure and Makefile scripts in autogen.h
BuildRequires: autoconf
# for generating configure and Makefile scripts in autogen.h
BuildRequires: automake
# most filter functions written in C
BuildRequires: gcc
# for generating configure and Makefile scripts in autogen.h
BuildRequires: gettext-devel
# for generating configure and Makefile scripts in autogen.h
BuildRequires: libtool
# uses Makefiles
BuildRequires: make
# for looking for devices on mDNS and their sharing on mDNS
BuildRequires: pkgconfig(avahi-client)
# for polling avahi
BuildRequires: pkgconfig(avahi-glib)
# uses CUPS and IPP API
BuildRequires: pkgconfig(cups) >= 2.2.2
# uses cupsfilters API
BuildRequires: pkgconfig(libcupsfilters) >= 2.0b3
# implicitclass uses libppd
BuildRequires: pkgconfig(libppd) >= 2.0b3
# for dBUS proxy from GLib
BuildRequires: pkgconfig(glib-2.0)

# seems that /usr/lib/cups/backend/implicitclass was by mistake
# in cups-filters, but not in cups-browsed built from the same SRPM (project)
Conflicts:	cups-filters < 2.0

%description
cups-browsed is a helper daemon, which automatically installs printers
locally, provides load balancing and clustering of print queues.
The daemon installs the printers based on found mDNS records and CUPS
broadcast, or by polling a remote print server.

%files
%doc %{_docdir}/%{name}
%attr(0744,root,root) /usr/lib/cups/backend/implicitclass
%config(noreplace) %{_sysconfdir}/cups/cups-browsed.conf
%{_sbindir}/cups-browsed
%{_mandir}/man5/cups-browsed.conf.5*
%{_mandir}/man8/cups-browsed.8*
%{_unitdir}/cups-browsed.service

%post
%systemd_post cups-browsed.service

%preun
%systemd_preun cups-browsed.service

# Initial installation
if [ $1 -eq 1 ] ; then
	IN=%{_sysconfdir}/cups/cupsd.conf
	OUT=%{_sysconfdir}/cups/cups-browsed.conf
	keyword=BrowsePoll

	# We can remove this after few releases, it's just for the introduction of cups-browsed.
	if [ -f "$OUT" ]; then
		echo -e "\n# NOTE: This file is not part of CUPS. You need to start&enable cups-browsed service." >> "$OUT"
	fi

	# move BrowsePoll from cupsd.conf to cups-browsed.conf
	if [ -f "$IN" ] && grep -iq ^$keyword "$IN"; then
		if ! grep -iq ^$keyword "$OUT"; then
			(cat >> "$OUT" <<EOF

# Settings automatically moved from cupsd.conf by RPM package:
EOF
			) || :
			(grep -i ^$keyword "$IN" >> "$OUT") || :
			#systemctl enable cups-browsed.service >/dev/null 2>&1 || :
		fi
		sed -i -e "s,^$keyword,#$keyword directive moved to cups-browsed.conf\n#$keyword,i" "$IN" || :
	fi
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# generate configuration/compilation files
./autogen.sh

%configure --enable-auto-setup-driverless-only\
  --disable-rpath\
  --disable-saving-created-queues\
  --disable-frequent-netif-update\
  --with-browseremoteprotocols=none\
  --with-remote-cups-local-queue-naming=RemoteName\
  --without-rcdir

%make_build

%install
%make_install

# systemd unit file
mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 daemon/cups-browsed.service %{buildroot}%{_unitdir}

# remove INSTALL file
rm -f %{buildroot}%{_pkgdocdir}/INSTALL

# provided by cups-browsed dependency
rm -f %{buildroot}%{_pkgdocdir}/CHANGES-1.x.md

# license related files are already under /usr/share/licenses
rm -f %{buildroot}%{_pkgdocdir}/{LICENSE,COPYING,NOTICE}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12348 |21mr|cups-drivers-bjnp-2.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define origname cups-bjnp
%global optflags %{optflags} -Wno-error=deprecated-declarations

Summary:	CUPS backend for the Canon BJNP network printers 
Name:		cups-drivers-bjnp
Version:	2.0.3
Release:	3
License:	GPLv2
Source0:	http://downloads.sourceforge.net/%{origname}/%{origname}-%{version}.tar.gz
Group:		System/Printing
URL:		https://sourceforge.net/projects/cups-bjnp
BuildRequires:	cups
BuildRequires:	cups-devel
Requires:	cups

%description
This package contains a backend for CUPS for Canon printers using the 
proprietary BJNP network protocol.

%prep
%setup -q -n %{origname}-%{version}

%build
%configure \
	--with-cupsbackenddir=%{_prefix}/lib/cups/backend
%make

%install
%makeinstall_std

%files
%doc COPYING ChangeLog TODO NEWS README
%{_prefix}/lib/cups/backend/bjnp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12349 |21mr|cups-drivers-capt-0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname capt

Summary:	CAPT driver for Canon LBP-810 and LBP-1120
Name:		cups-drivers-%{rname}
Version:	0.1
Release:	19
License:	GPLv2+
Group:		System/Printing
Url:		http://www.boichat.ch/nicolas/capt/
Source0:	http://www.boichat.ch/nicolas/capt/%{rname}-%{version}.tar.gz
Patch0:		capt-0.1-LDFLAGS.diff
Patch1:		capt-0.1-gcc7.patch
Requires:	cups

%description
CAPT driver for Canon LBP-810 and LBP-1120

This package contains CUPS drivers (PPD) for the following printers:

 o Canon-LBP-810
 o Canon-LBP-1120

%files
%defattr(0644,root,root,0755)
%doc COPYING NEWS README SPECS THANKS TODO
%attr(0755,root,root) %{_bindir}/capt*
%attr(0755,root,root) %dir %{_datadir}/cups/model/capt
%attr(0644,root,root) %{_datadir}/cups/model/capt/Canon-LBP-810-capt.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/capt/Canon-LBP-1120-capt.ppd*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{rname}-%{version}
%patch0 -p0
%patch1 -p1

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

# Correct PPD files to pass "cupstestppd"
perl -p -i -e "s/DefaultNoReset/DefaultAlwaysReset/g" ppd/*.ppd

# Do not generate a log file with fixed name, security problem!
perl -p -i -e "s:/tmp/capt.log:/dev/null:g" ppd/*.ppd

# Create PPD file for LBP-1120
cp ppd/Canon-LBP-810-capt.ppd ppd/Canon-LBP-1120-capt.ppd
perl -p -i -e "s:LBP-810:LBP-1120:g" ppd/Canon-LBP-1120-capt.ppd
perl -p -i -e "s:lbp810:lbp1120:g" ppd/Canon-LBP-1120-capt.ppd

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/cups/model/capt

install -m0755 capt %{buildroot}%{_bindir}/
install -m0755 capt-* %{buildroot}%{_bindir}/
install -m0644 ppd/*.ppd %{buildroot}%{_datadir}/cups/model/capt/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12350 |21mr|cups-drivers-captdriver-0.1.4.1-2.git627192.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 62719249ac34633338be54bc74beddd0e7003d38
%define commit_short %(echo %{commit} | head -c6)

Summary(ru_RU.UTF-8): Драйвер CAPT для принтеров Canon LBP2900/3000/3010/3100/3108/3150/6000/6018
Summary:	Driver for Canon CAPT printers LBP2900/3000/3010/3100/3108/3150/6000/6018
Name:		cups-drivers-captdriver
Version:	0.1.4.1
Release:	2.git%{commit_short}.7
License:	GPL-3.0-or-later
Group:		System/Configuration/Printing
Url:		https://github.com/mounaiban/captdriver
Source0:	https://github.com/mounaiban/captdriver/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	Canon-LBP3000.ppd
Source2:	Canon-LBP2900.ppd
BuildRequires:	cups-devel
# generator of rpm provides
BuildRequires:	python3-cups
Provides:	captdriver = %{EVRD}
Provides:	printer-driver-foo2capt = %{EVRD}

%description
Captdriver an alternative driver for Canon laser printers that only support the proprietary
CAPT communications protocol and associated data stream formats.
It aims to be a portable and reliable driver that can extend the service life of existing
CAPT-only printers by extending support to more platforms and newer operating systems.

Wiki -  https://github.com/mounaiban/captdriver/wiki

The following printer-host-operating system combinations have been found to work:

 LBP2900
 LBP3000
 LBP3010
 LBP3100/3108/3150
 LBP6000/6018

%description -l ru_RU.UTF-8
Captdriver - это альтернативный драйвер для лазерных принтеров Canon,
которые поддерживает только проприетарные принтеры с Протокололом связи CAPT
и связанными с ним форматом потоков данных.
Он призван быть портативным и надежным драйвером, способным продлить срок службы существующих принтеров,
поддерживаемых только CAPT, за счет поддержки на большее количество платформ и операционных систем.

Драайвера разработаны на основе методов обратной инженерии, но могут не тестироваться на реальной аппаратуре

Руководство по работе с драйвером принтеры -  https://github.com/mounaiban/captdriver/wiki

Имеется информация, что поддерживаются в разной степени следующие принтеры:

 LBP2900
 LBP3000
 LBP3010
 LBP3100/3108/3150
 LBP6000/6018

%files
%{_datadir}/cups/model/captdriver
/usr/lib/cups/filter/rastertocapt

#------------------------------------------------------------------

%prep
%autosetup -p1 -n captdriver-%{commit}

%build
%configure
%make_build

%install
mkdir -p %{buildroot}/usr/lib/cups/filter
mkdir -p %{buildroot}%{_datadir}/cups/model/captdriver

install -Dm0755 src/rastertocapt %{buildroot}/usr/lib/cups/filter
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/cups/model/captdriver
# Split models 2900/3010
for i in 2900 3010 3100 3108 3150 6000 6018
do
	install -Dm644 %{SOURCE2} %{buildroot}%{_datadir}/cups/model/captdriver/Canon-LBP${i}.ppd
	sed -i -e "s,LBP2900/LBP3010,LBP${i},g" -e "s,CNLB2K9.ppd,Canon-LBP${i}.ppd,g" %{buildroot}%{_datadir}/cups/model/captdriver/Canon-LBP${i}.ppd
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12351 |21mr|cups-drivers-carps-0-0.git9f4c6c.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 9f4c6cc8f41dd08d6ba734a05c2b58e714baca99
%define commit_short %(echo %{commit} | head -c6)

Summary:	Driver for Canon CARPS-speaking printers
Name:		cups-drivers-carps
Version:	0
Release:	0.git%{commit_short}.2
License:	GPLv3
Group:		System/Printing
Url:		https://github.com/ondrej-zary/carps-cups
Source0:	https://github.com/ondrej-zary/carps-cups/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# https://github.com/ondrej-zary/carps-cups/pull/20
Patch0001:		0001-Adapt-Makefile-for-RPM-packaging.patch
BuildRequires:	cups-devel
BuildRequires:	cups
BuildRequires:	%{_bindir}/ppdc
# generator of rpm provides
BuildRequires:	python3-cups
# upstream name
Provides:	carps-cups = %{EVRD}
Provides:	carps-cups%{_isa} = %{EVRD}

%description
Driver for Canon CARPS-speaking printers

%files
%license LICENSE
%doc README.md carps.txt
/usr/lib/cups/filter/rastertocarps
%{_datadir}/cups/drv/carps.drv
%{_datadir}/cups/usb/carps.usb-quirks

#------------------------------------------------------------------

%prep
%autosetup -p1 -n carps-cups-%{commit}

%build
%setup_compile_flags
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12352 |21mr|cups-drivers-foo2zjs-0.0-2.20150211.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname	foo2zjs
%define snap	20150211

Summary:	A linux printer driver for ZjStream protocol
Name:		cups-drivers-%{rname}
Version:	0.0
Release:	2.%{snap}.1
Epoch:		1
Group:		System/Printing
License:	GPLv2
Url:		http://foo2zjs.rkkda.com/
Source0:	http://foo2zjs.rkkda.com/foo2zjs.tar.gz
Patch0:		foo2zjs-system_icc2ps.patch
Patch1:		foo2zjs-makeinstall.patch
Patch2:		foo2zjs-cflags.patch
Patch3:		foo2zjs-system_jbig.patch
Patch4:		foo2zjs-LDFLAGS.patch

BuildRequires:	bc
BuildRequires:	foomatic-filters
BuildRequires:	cups-filters-devel
BuildRequires:	cups-filters
BuildRequires:	cups-devel
BuildRequires:	ghostscript
BuildRequires:	groff-base
BuildRequires:	jbig-devel
BuildRequires:	lcms
Requires:	foomatic-db-engine
Requires:	lcms
Requires:	mscompress
Requires:	wget
# psutils, unzip, and mscompress needed by the foo2zjs driver
Requires:	psutils
Requires:	unzip

%description
foo2zjs is an open source printer driver for printers that use the Zenographics
ZjStream wire protocol for their print data, such as the Minolta/QMS magicolor
2300 DL. These printers are often erroneously referred to as winprinters or GDI
printers. Please read the README file for a list of supported printers.

%files
%doc COPYING ChangeLog INSTALL INSTALL.usb README
%{_bindir}/command2foo2lava-pjl
%{_prefix}/lib/cups/filter/command2foo2lava-pjl
#%{_sysconfdir}/udev/rules.d/70-hplj10xx.rules
%{_mandir}/man1/arm2hpdl.1*
%{_mandir}/man1/foo2hbpl2.1*
%{_mandir}/man1/foo2hbpl2-wrapper.1*
%{_mandir}/man1/foo2hiperc.1*
%{_mandir}/man1/foo2hiperc-wrapper.1*
%{_mandir}/man1/foo2hp.1*
%{_mandir}/man1/foo2hp2600-wrapper.1*
%{_mandir}/man1/foo2lava.1*
%{_mandir}/man1/foo2lava-wrapper.1*
%{_mandir}/man1/foo2oak.1*
%{_mandir}/man1/foo2oak-wrapper.1*
%{_mandir}/man1/foo2qpdl.1*
%{_mandir}/man1/foo2qpdl-wrapper.1*
%{_mandir}/man1/foo2slx.1*
%{_mandir}/man1/foo2slx-wrapper.1*
%{_mandir}/man1/foo2xqx.1*
%{_mandir}/man1/foo2xqx-wrapper.1*
%{_mandir}/man1/foo2zjs-pstops.1*
%{_mandir}/man1/gipddecode.1*
%{_mandir}/man1/hbpldecode.1*
%{_mandir}/man1/hipercdecode.1*
%{_mandir}/man1/lavadecode.1*
%{_mandir}/man1/oakdecode.1*
%{_mandir}/man1/opldecode.1*
%{_mandir}/man1/printer-profile.1.*
%{_mandir}/man1/qpdldecode.1*
%{_mandir}/man1/%{rname}.1*
%{_mandir}/man1/%{rname}-wrapper.1*
%{_mandir}/man1/slxdecode.1*
%{_mandir}/man1/usb_printerid.1*
%{_mandir}/man1/xqxdecode.1*
%{_mandir}/man1/zjsdecode.1*

%dir %{_datadir}/foo2hp
%dir %{_datadir}/foo2hp/icm
%dir %{_datadir}/%{rname}
%dir %{_datadir}/%{rname}/crd
%dir %{_datadir}/%{rname}/firmware
%dir %{_datadir}/%{rname}/icm
%dir %{_datadir}/foo2xqx
%dir %{_datadir}/foo2lava
%dir %{_datadir}/foo2lava/icm
%dir %{_datadir}/foo2oak
%dir %{_datadir}/foo2oak/icm
%dir %{_datadir}/foo2qpdl
%dir %{_datadir}/foo2qpdl/crd
%dir %{_datadir}/foo2qpdl/icm

%{_datadir}/%{rname}/*.ps
%{_datadir}/%{rname}/crd/*.crd
%{_datadir}/%{rname}/crd/*.ps
%{_datadir}/foo2qpdl/crd/*cms*
%{_datadir}/foo2qpdl/crd/*.ps

%{_datadir}/foomatic/db/source/opt/*.xml
%{_datadir}/foomatic/db/source/printer/*.xml
%{_datadir}/foomatic/db/source/driver/*.xml

%dir %{_datadir}/cups/model/%{rname}
%{_datadir}/cups/model/%{rname}/Dell-1355.ppd*
%{_datadir}/cups/model/%{rname}/Dell-C1765.ppd*
%{_datadir}/cups/model/%{rname}/Epson-AcuLaser_M1400.ppd*
%{_datadir}/cups/model/%{rname}/Fuji_Xerox-DocuPrint_CM205.ppd*
%{_datadir}/cups/model/%{rname}/Fuji_Xerox-DocuPrint_CM215.ppd*
%{_datadir}/cups/model/%{rname}/Fuji_Xerox-DocuPrint_M215.ppd*
%{_datadir}/cups/model/%{rname}/Fuji_Xerox-DocuPrint_P205.ppd*
%{_datadir}/cups/model/%{rname}/Generic-OAKT_Printer.ppd*
%{_datadir}/cups/model/%{rname}/Generic-ZjStream_Printer.ppd*
%{_datadir}/cups/model/%{rname}/HP-Color_LaserJet_1500.ppd*
%{_datadir}/cups/model/%{rname}/HP-Color_LaserJet_1600.ppd*
%{_datadir}/cups/model/%{rname}/HP-Color_LaserJet_2600n.ppd*
%{_datadir}/cups/model/%{rname}/HP-Color_LaserJet_CP1215.ppd*

%{_datadir}/cups/model/%{rname}/HP-LaserJet_1000.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_1005.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_1018.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_1020.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_1022n.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_1022nw.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_1022.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_M1005_MFP.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_M1120_MFP.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_M1319_MFP.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P1005.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P1006.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P1007.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P1008.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P1505.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P2014.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P2035.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_Pro_M1212nf_MFP.ppd*
%{_datadir}/cups/model/%{rname}/KONICA_MINOLTA-magicolor_2430_DL.ppd*
%{_datadir}/cups/model/%{rname}/KONICA_MINOLTA-magicolor_2480_MF.ppd*
%{_datadir}/cups/model/%{rname}/KONICA_MINOLTA-magicolor_2490_MF.ppd*
%{_datadir}/cups/model/%{rname}/KONICA_MINOLTA-magicolor_2530_DL.ppd*
%{_datadir}/cups/model/%{rname}/Kyocera-KM-1635.ppd*
%{_datadir}/cups/model/%{rname}/Kyocera-KM-2035.ppd*
%{_datadir}/cups/model/%{rname}/Lexmark-C500.ppd.gz
%{_datadir}/cups/model/%{rname}/Minolta-Color_PageWorks_Pro_L.ppd*
%{_datadir}/cups/model/%{rname}/Minolta-magicolor_2200_DL.ppd*
%{_datadir}/cups/model/%{rname}/Minolta-magicolor_2300_DL.ppd*
%{_datadir}/cups/model/%{rname}/Minolta-magicolor_2430_DL.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C301dn.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C310dn.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C511dn.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C810.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C3100.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C3200.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C3300.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C3400.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C3530_MFP.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C5100.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C5200.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C5500.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C5600.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C5800.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLP-300.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLP-315.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLP-325.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLP-365.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLP-600.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLP-610.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLX-2160.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLX-3160.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLX-3175.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLX-3185.ppd*
%{_datadir}/cups/model/%{rname}/Xerox-Phaser_6110.ppd*
%{_datadir}/cups/model/%{rname}/Xerox-Phaser_6115MFP.ppd*
%{_datadir}/cups/model/%{rname}/Xerox-WorkCentre_3045.ppd*
%{_datadir}/cups/model/%{rname}/Xerox-WorkCentre_6015.ppd*
%{_datadir}/cups/model/%{rname}/KONICA_MINOLTA-magicolor_1600W.ppd*
%{_datadir}/cups/model/%{rname}/KONICA_MINOLTA-magicolor_1680MF.ppd*
%{_datadir}/cups/model/%{rname}/KONICA_MINOLTA-magicolor_1690MF.ppd*
%{_datadir}/cups/model/%{rname}/KONICA_MINOLTA-magicolor_4690MF.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLP-310.ppd*
# added since 20101208, may conflict with foomatic-db later
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P1505n.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P2014n.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_P2035n.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_Pro_CP1025nw.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_Pro_P1102.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_Pro_P1102w.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_Pro_P1566.ppd*
%{_datadir}/cups/model/%{rname}/HP-LaserJet_Pro_P1606dn.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C110.ppd*
%{_datadir}/cups/model/%{rname}/Oki-C5650.ppd*
%{_datadir}/cups/model/%{rname}/Olivetti-d-Color_P160W.ppd*
%{_datadir}/cups/model/%{rname}/Samsung-CLP-620.ppd*
%{_datadir}/cups/model/%{rname}/Xerox-Phaser_6121MFP.ppd*

%{_datadir}/foo2zjs/hplj1020_icon.gif
%{_datadir}/foo2zjs/hplj10xx_gui.tcl

%{_bindir}/%{rname}
%{_bindir}/%{rname}-getweb
%{_bindir}/%{rname}-wrapper
%{_bindir}/printer-profile
%{_bindir}/arm2hpdl
%{_bindir}/foo2hiperc
%{_bindir}/foo2hiperc-wrapper
%{_bindir}/foo2hbpl2
%{_bindir}/foo2hbpl2-wrapper
%{_bindir}/foo2hp
%{_bindir}/foo2hp2600-wrapper
%{_bindir}/foo2lava
%{_bindir}/foo2lava-wrapper
%{_bindir}/foo2oak
%{_bindir}/foo2oak-wrapper
%{_bindir}/foo2qpdl
%{_bindir}/foo2qpdl-wrapper
%{_bindir}/foo2slx
%{_bindir}/foo2slx-wrapper
%{_bindir}/foo2xqx
%{_bindir}/foo2xqx-wrapper
%{_bindir}/foo2zjs-pstops
%{_bindir}/gipddecode
%{_bindir}/hipercdecode
%{_bindir}/hbpldecode
%{_bindir}/lavadecode
%{_bindir}/oakdecode
%{_bindir}/opldecode
%{_bindir}/qpdldecode
%{_bindir}/slxdecode
%{_bindir}/xqxdecode
%{_bindir}/zjsdecode
%{_sbindir}/usb_printerid
%{_sbindir}/hplj1000
%{_sbindir}/hplj1005
%{_sbindir}/hplj1018
%{_sbindir}/hplj1020

#----------------------------------------------------------------------------

%prep
%setup -qn %{rname}
%apply_patches

# fix attribs
chmod 644 COPYING ChangeLog INSTALL INSTALL.usb README

%build
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

# Fit udev rules to stricter syntax of new udev
# (blino) don't try to rename the device,
#         it has already been renamed to the exact same name in 50-mdk.rules
#         so udev would skip the rule
#perl -p -i -e 's:(KERNEL|BUS|SYSFS.*?)=([^=]):$1==$2:g;s{SYMLINK=}{SYMLINK+=}g;s{(?:NAME|MODE)=.*?,\s*}{}g;s:===:==:g' hplj10xx.rules

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_datadir}/foomatic/db/source/{driver,opt,printer}
install -d %{buildroot}%{_datadir}/cups/model/%{rname}
#install -d %{buildroot}%{_sysconfdir}/udev/rules.d

make install \
	DESTDIR="%{buildroot}" \
	PREFIX=%{buildroot}%{_prefix} \
	BIN=%{buildroot}%{_bindir} \
	SHAREZJS=%{buildroot}%{_datadir}/%{rname} \
	SHAREOAK=%{buildroot}%{_datadir}/foo2oak \
	SHAREHP=%{buildroot}%{_datadir}/foo2hp \
	SHAREXQX=%{buildroot}%{_datadir}/foo2xqx \
	SHARELAVA=%{buildroot}%{_datadir}/foo2lava \
	SHAREQPDL=%{buildroot}%{_datadir}/foo2qpdl \
	MANDIR=%{buildroot}%{_mandir} \
	DOCDIR=%{buildroot}%{_datadir}/doc/%{rname}/ \
	FOODB=%{buildroot}%{_datadir}/foomatic/db/source \
	MODEL=%{buildroot}%{_datadir}/cups/model/%{rname}

# bork, bork, bork
mv %{buildroot}/bin/usb_printerid %{buildroot}%{_bindir}/

install -m0755 getweb %{buildroot}%{_bindir}/%{rname}-getweb

mv %{buildroot}%{_bindir}/usb_printerid %{buildroot}%{_sbindir}/usb_printerid

install -m0755 hplj1000 %{buildroot}%{_sbindir}/
sed -i -e 's:\./(getweb):%{rname}-$1:g' %{buildroot}%{_sbindir}/hplj1000
sed -i -e 's:/bin(/usb_printerid):%{_sbindir}$1:g' %{buildroot}%{_sbindir}/hplj1000

ln -s hplj1000 %{buildroot}%{_sbindir}/hplj1005
ln -s hplj1000 %{buildroot}%{_sbindir}/hplj1018
ln -s hplj1000 %{buildroot}%{_sbindir}/hplj1020

#install -m0644 hplj10xx.rules %{buildroot}%{_sysconfdir}/udev/rules.d/70-hplj10xx.rules
#perl -p -i -e 's:%{_sysconfdir}/hotplug/usb:%{_sbindir}:' %{buildroot}%{_sysconfdir}/udev/rules.d/70-hplj10xx.rules

mkdir -p %{buildroot}%{_datadir}/%{name}/firmware

# cleanup
rm -rf %{buildroot}%{_datadir}/doc/%{rname}
rm -rf %{buildroot}%{_mandir}/man1/foo2zjs-icc2ps.1*

# provided by foomatic-db
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Generic-OAKT_Printer.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_CP1215.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2480_MF.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2490_MF.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2530_DL.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Kyocera-KM-1635.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Kyocera-KM-2035.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Xerox-Phaser_6110.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Xerox-Phaser_6115MFP.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-Color_LaserJet_CP1215.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2480_MF.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2490_MF.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/KONICA_MINOLTA-magicolor_2530_DL.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Kyocera-KM-1635.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Kyocera-KM-2035.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Xerox-Phaser_6110.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Xerox-Phaser_6115MFP.xml
# these are provided by foomatic-db-4.0-2.20091014.1mdv2010.0
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Generic-ZjStream_Printer.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-LaserJet_1018.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-LaserJet_M1120_MFP.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P1005.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P1006.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P1007.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P1008.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P1505.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/HP-LaserJet_P2014.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Lexmark-C500.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Minolta-magicolor_2200_DL.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C3100.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C3200.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C3300.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C3400.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C3530_MFP.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C5100.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C5200.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C5500.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C5600.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Oki-C5800.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Samsung-CLP-315.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Samsung-CLP-610.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Samsung-CLX-2160.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Samsung-CLX-3160.xml
rm -f %{builddir}%{_datadir}/foomatic/db/source/printer/Samsung-CLX-3175.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12353 |21mr|cups-drivers-lbp660-0.3.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname lbp660

Summary:	Linux Canon LBP-460/660 driver
Name:		cups-drivers-%{rname}
Version:	0.3.1
Release:	15
License:	GPLv2+
Group:		System/Printing
Url:		http://www.boichat.ch/nicolas/lbp660/
Source0:	http://www.boichat.ch/nicolas/lbp660/lbp660-%{version}.tar.gz
Patch0:		lbp660-0.3.1-ldflags.patch
Patch1:		lbp660-0.3.1-gcc7.patch
Requires:	cups
ExclusiveArch: %{ix86} x86_64

%description
In this package there is a linux driver for the Canon LBP-660 and
LBP-460 printers.

This package contains CUPS drivers (PPD) for the following printers:

 o Canon-LBP-460
 o Canon-LBP-660

%files
%defattr(0644,root,root,0755)
%license COPYING
%doc NEWS README THANKS TODO
# "%{rname}" talks directly to the parallel port I/O 0x378, not to /dev/lp0
# Therefore SUID "root" is needed. Program only executable by "lp" & "root"
# (group-executable).
%attr(4750,root,sys) %{_bindir}/%{rname}
%attr(4750,root,sys) %{_bindir}/lbp460
%attr(0755,root,root) %{_bindir}/lbp[46]60-*
%attr(0755,root,root) %dir %{_datadir}/cups/model/%{rname}
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Canon-LBP-460-lbp460.ppd*
%attr(0644,root,root) %{_datadir}/cups/model/%{rname}/Canon-LBP-660-%{rname}.ppd*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{rname}-%{version}

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

# Correct PPD files to pass "cupstestppd"
perl -p -i -e "s/DefaultNoReset/DefaultAlwaysReset/" ppd/*.ppd

# Do not generate a log file with fixed name, security problem!
perl -p -i -e "s:/tmp/lbp.60.log:/dev/null:" ppd/*.ppd

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/cups/model/%{rname}

install -m0755 lbp[46]60 %{buildroot}%{_bindir}/
install -m0755 lbp[46]60-* %{buildroot}%{_bindir}/
install -m0644 ppd/*.ppd %{buildroot}%{_datadir}/cups/model/%{rname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12354 |21mr|cups-drivers-magicolor2430dl-1.6.1-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname magicolor2430dl

Summary:	Cups Driver for KONICA MINOLTA magicolor 2430 DL
Name:		cups-drivers-%{rname}
Version:	1.6.1
Release:	22
License:	GPLv2+
Group:		System/Printing
Url:		http://printer.konicaminolta.net/
Source0:	magicolor2430DL-%{version}.tar.gz
Patch0:		magicolor2430DL-shared_system_libs.diff
Patch1:         magicolor2430DL-1.6.1-automake-1.13.patch
Patch2:         magicolor2430DL-1.6.1-cups-2.2.patch
BuildRequires:	cups-devel
BuildRequires:	jbig-devel
BuildRequires:	pkgconfig(lcms)
Requires:	cups

%description
This package contains KONICA MINOLTA CUPS LavaFlow stream(PCL-like) filter
rastertokm2430dl and the PPD file. The filter converts CUPS raster data to
KONICA MINOLTA LavaFlow stream.

This package contains CUPS drivers (PPD) for the following printers:

 o KONICA MINOLTA magicolor 2430 DL printer

%files
%license COPYING
%doc AUTHORS ChangeLog
%{_prefix}/lib/cups/filter/rastertokm2430dl
%{_datadir}/KONICA_MINOLTA/mc2430DL
%attr(0644,root,root) %{_datadir}/cups/model/KONICA_MINOLTA/km2430dl.ppd*

#----------------------------------------------------------------------------

%prep
%setup -q -n magicolor2430DL-%{version}
%patch0 -p0
%patch1 -p1
%patch2 -p1

# Fix copy of CUPS headers in kmlf.h
perl -p -i -e 's:\bcups_strlcpy:_cups_strlcpy:g' src/kmlf.h

# Remove asterisks from group names in PPD file
gzip -dc src/km_en.ppd.gz | perl -p -e 's/(Group:\s+)\*/$1/g' | gzip > src/km_en.tmp.ppd.gz && mv -f src/km_en.tmp.ppd.gz src/km_en.ppd.gz

# Add support for the magicolor 2300 DL
gzip -dc src/km_en.ppd.gz | perl -p -e 's:2430(\s*DL):2300$1:g' | gzip > src/km2300dl.ppd.gz

# Determine the directory for the CUPS filters using the correct method
perl -p -i -e 's:(CUPS_SERVERBIN=)"\$libdir/cups":$1`cups-config --serverbin`:' configure*

%build
rm -f configure
libtoolize --force --copy; aclocal; automake --add-missing --copy --foreign; autoconf

%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12355 |21mr|cups-drivers-magicolor5430dl-1.8.1-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname magicolor5430dl

Summary:	Cups Driver for KONICA MINOLTA magicolor 5430 DL
Name:		cups-drivers-%{rname}
Version:	1.8.1
Release:	22
License:	GPLv2+
Group:		System/Printing
Url:		http://printer.konicaminolta.net/
Source0:	magicolor5430DL-%{version}.tar.gz
Patch0:		magicolor2430DL-shared_system_libs.diff
Patch1:         magicolor5430DL-1.8.1-automake-1.13.patch
Patch2:         magicolor5430DL-1.8.1-cups-2.2.patch
BuildRequires:	cups-devel
BuildRequires:	jbig-devel
BuildRequires:	pkgconfig(lcms)
Requires:	cups

%description
This package contains KONICA MINOLTA CUPS LavaFlow stream(PCL-like) filter
rastertokm5430dl and the PPD file. The filter converts CUPS raster data to
KONICA MINOLTA LavaFlow stream.

This package contains CUPS drivers (PPD) for the following printers:

 o KONICA MINOLTA magicolor 5430 DL printer

%files
%license COPYING
%doc AUTHORS ChangeLog
%{_prefix}/lib/cups/filter/rastertokm5430dl
%{_datadir}/KONICA_MINOLTA/mc5430DL
%attr(0644,root,root) %{_datadir}/cups/model/KONICA_MINOLTA/km5430dl.ppd*

#----------------------------------------------------------------------------

%prep
%setup -q -n magicolor5430DL-%{version}
%patch0 -p0
%patch1 -p1
%patch2 -p1

# Fix copy of CUPS headers in kmlf.h
perl -p -i -e 's:\bcups_strlcpy:_cups_strlcpy:g' src/kmlf.h

# Remove asterisks from group names in PPD file
gzip -dc src/km_en.ppd.gz | perl -p -e 's/(Group:\s+)\*/$1/g' | gzip > src/km_en.tmp.ppd.gz && mv -f src/km_en.tmp.ppd.gz src/km_en.ppd.gz

# Determine the directory for the CUPS filters using the correct method
perl -p -i -e 's:(CUPS_SERVERBIN=)"\$libdir/cups":$1`cups-config --serverbin`:' configure*

%build
rm -f configure
libtoolize --force --copy; aclocal; automake --add-missing --copy --foreign; autoconf

%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12356 |21mr|cups-drivers-magicolor5440dl-1.2.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname magicolor5440dl

Summary:	Cups Driver for KONICA MINOLTA magicolor 5440 DL
Name:		cups-drivers-%{rname}
Version:	1.2.1
Release:	21
License:	GPLv2+
Group:		System/Printing
Url:		http://printer.konicaminolta.net/
Source0:	magicolor5440DL-%{version}.tar.gz
Patch0:		magicolor2430DL-shared_system_libs.diff
Patch1:         magicolor5440DL-1.2.1-automake-1.13.patch
Patch2:         magicolor5440DL-1.2.1-cups-2.2.patch
BuildRequires:	cups-devel
BuildRequires:	jbig-devel
BuildRequires:	pkgconfig(lcms)
Requires:	cups

%description
This package contains KONICA MINOLTA CUPS LavaFlow stream(PCL-like) filter
rastertokm5440dl and the PPD file. The filter converts CUPS raster data to
KONICA MINOLTA LavaFlow stream.

This package contains CUPS drivers (PPD) for the following printers:

 o KONICA MINOLTA magicolor 5440 DL printer

%files
%license COPYING
%doc AUTHORS ChangeLog
%{_prefix}/lib/cups/filter/rastertokm5440dl
%{_datadir}/KONICA_MINOLTA/mc5440DL
%attr(0644,root,root) %{_datadir}/cups/model/KONICA_MINOLTA/km5440dl.ppd*

#----------------------------------------------------------------------------

%prep
%setup -q -n magicolor5440DL-%{version}
%patch0 -p0
%patch1 -p1
%patch2 -p1

# Fix copy of CUPS headers in kmlf.h
perl -p -i -e 's:\bcups_strlcpy:_cups_strlcpy:g' src/kmlf.h

# Remove asterisks from group names in PPD file
gzip -dc src/km_en.ppd.gz | perl -p -e 's/(Group:\s+)\*/$1/g' | gzip > src/km_en.tmp.ppd.gz && mv -f src/km_en.tmp.ppd.gz src/km_en.ppd.gz

# Determine the directory for the CUPS filters using the correct method
perl -p -i -e 's:(CUPS_SERVERBIN=)"\$libdir/cups":$1`cups-config --serverbin`:' configure*

%build
rm -f configure
libtoolize --force --copy; aclocal; automake --add-missing --copy --foreign; autoconf

%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12357 |21mr|cups-drivers-ptouch-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname ptouch

Summary:	CUPS/foomatic driver for Brother P-touch label printers
Name:		cups-drivers-%{rname}
Version:	1.6
Release:	2
License:	GPLv2+
Group:		System/Printing
Url:		https://github.com/philpem/printer-driver-ptouch
Source0:	https://github.com/philpem/printer-driver-ptouch/releases/download/v%{version}/ptouch-driver-%{version}.tar.gz
BuildRequires:	cups
BuildRequires:	ghostscript
BuildRequires:	perl(XML::LibXML)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	cups-devel
Requires:	cups

%description
The ptouch-driver consists of a CUPS raster filter for driving the family of
Brother P-touch label printers.

%files
%defattr(0644,root,root,0755)
%doc AUTHORS COPYING ChangeLog NEWS README
%attr(0755,root,root) %{_prefix}/lib/cups/filter/rastertoptch
%attr(0644,root,root) %{_datadir}/foomatic/db/source/printer/*.xml
%attr(0644,root,root) %{_datadir}/foomatic/db/source/driver/*.xml
%attr(0644,root,root) %{_datadir}/foomatic/db/source/opt/*.xml
%attr(0755,root,root) %dir %{_datadir}/cups/model/%{rname}

#----------------------------------------------------------------------------

%prep
%setup -qn %{rname}-driver-%{version}

%build
%configure \
	--libdir=%{_prefix}/lib

%make

%install
install -d %{buildroot}%{_datadir}/cups/model/%{rname}

%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12358 |21mr|cups-drivers-splix-2.0.1-0.20130902svn.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global checkout 20130902svn

%define rname splix

Summary:	CUPS printer drivers for SPL (Samsung Printer Language) printers
Name:		cups-drivers-%{rname}
Version:	2.0.1
Release:	0.%{checkout}.7
License:	GPL
Group:		System/Printing
URL:		http://splix.ap2c.org/
# This is a SVN snapshot downloaded via 'Download Snapshot' from
# https://sourceforge.net/p/splix/code/315/tree/
# and renamed to follow naming guidelines
Source0: splix-%{version}.%{checkout}.tar.bz2

# IEEE 1284 Device IDs
Patch0:		splix-deviceID.patch
Patch1:		splix-qt5.patch
Patch2:		Samsung-SCX-3400.patch
Patch3:		Samsung-ProXpress-M4020ND.patch
Requires:	cups
BuildRequires:	cups
BuildRequires:	cups-devel
BuildRequires:	ghostscript
BuildRequires:	jbigkit-devel
BuildRequires:	python3-cups

%description
SpliX is a set of CUPS printer drivers for SPL (Samsung Printer Language)
printers. If you have a such printer, you need to download and use SpliX.
Moreover you will find documentation about this proprietary language.

This package contains CUPS drivers (PPD) for Dell, Samsung and Xerox
printers.

%prep
%autosetup -p1 -n splix

# remove old PPDs (not sure why some PPDs are outside ppd/)
rm -f *.ppd

pushd ppd
# remove old PPDs
make distclean
popd

%build
%setup_compile_flags
%serverbuild
# *.drv.in -> *.drv
%make drv
%make all DRV_ONLY=1

%install
%makeinstall_std DRV_ONLY=1 CUPSDRV=%{_datadir}/cups/drv/splix

%files
%license COPYING
%doc AUTHORS ChangeLog THANKS
%{_prefix}/lib/cups/filter/pstoqpdl
%{_prefix}/lib/cups/filter/rastertoqpdl
%{_datadir}/cups/drv/splix

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12359 |21mr|cups-filters-2.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _cups_serverbin %{_prefix}/lib/cups

%if %{mdvver} >= 202310
%define gs_path %{_bindir}/gsc
%else
# abf.io/import/ghostscript10
# https://github.com/OpenPrinting/cups-filters/commit/531505b
%define gs_path %{_bindir}/gsc10
%endif

Summary:	Print filters for use with CUPS
Name:		cups-filters
Version:	2.0.0
Release:	4
# For a breakdown of the licensing, see COPYING file
# GPLv2, filters: commandto*, imagetoraster, pdftops, rasterto*, imagetopdf, pstopdf, texttopdf, backends: parallel, serial
# GPLv2+, filters: gstopxl, textonly, texttops, imagetops
# GPLv3, filters: bannertopdf
# GPLv3+, filters: urftopdf
# LGPLv2+, utils: cups-browsed
# MIT, filters: gstoraster, pdftoijs, pdftoopvp, pdftopdf, pdftoraster
License:	GPLv2+ and GPLv3+ and LGPLv2.1+ and MIT
Group:		System/Printing
Url:		http://www.linuxfoundation.org/collaborate/workgroups/openprinting/cups-filters
Source0:	https://github.com/OpenPrinting/cups-filters/releases/download/%{version}/cups-filters-%{version}.tar.xz

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: gettext-devel
BuildRequires:	poppler
BuildRequires:	python3-cups
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	ghostscript
BuildRequires:	avahi-common-devel
BuildRequires:	tiff-devel
BuildRequires:	%{gs_path}
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(ijs)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libqpdf)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-cpp)
BuildRequires:	pkgconfig(cups) >= 2.2.2
BuildRequires:	pkgconfig(libcupsfilters) >= 2.0b3
BuildRequires:	pkgconfig(libppd) >= 2.0b3
Requires:	%{gs_path}
Recommends:	colord
Obsoletes: foomatic-filters < 4.0.18
Provides: foomatic-filters = %{EVRD}
Conflicts:	foomatic-filters < 4.0.18
Conflicts:	cups < 2.2.2
Conflicts:	ghostscript-common < 9.14

%description
This project provides backends, filters, and other software that was once part
of the core CUPS distribution but is no longer maintained by Apple Inc.

In addition, it contains additional filters and software developed
independently of Apple, especially filters for the PDF-centric printing
workflow introduced by OpenPrinting and a daemon to browse Bonjour broadcasts
of remote CUPS printers to make these printers available locally and to
provide backward compatibility to the old CUPS broadcasting and browsing
of CUPS 1.5.x and older.

%files
%license COPYING LICENSE NOTICE
%doc AUTHORS ABOUT-NLS CHANGES.md CONTRIBUTING.md DEVELOPING.md README.md
%{_bindir}/foomatic-rip
%{_bindir}/driverless
%{_bindir}/driverless-fax
%attr(0744,root,root) %{_cups_serverbin}/backend/beh
%attr(0744,root,root) %{_cups_serverbin}/backend/parallel
%attr(0744,root,root) %{_cups_serverbin}/backend/serial
%{_cups_serverbin}/backend/driverless
%{_cups_serverbin}/backend/driverless-fax
%attr(0755,root,root) %{_cups_serverbin}/filter/*
%{_cups_serverbin}/driver/driverless
%{_cups_serverbin}/driver/driverless-fax
%{_datadir}/cups/drv/cupsfilters.drv
%{_datadir}/cups/mime/cupsfilters.types
%{_datadir}/cups/mime/cupsfilters.convs
%{_datadir}/cups/mime/cupsfilters-universal-postscript.convs
%{_datadir}/cups/mime/cupsfilters-universal.convs
%{_datadir}/ppd/cupsfilters
%{_datadir}/ppdc/escp.h
%{_datadir}/ppdc/pcl.h
%{_datadir}/man/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# work-around Rpath
./autogen.sh

%configure --enable-driverless \
           --enable-universal-cups-filter \
           --disable-mutool \
           --with-gs-path=%{gs_path} \
           --disable-rpath \
           --disable-silent-rules \
           --disable-static

%make_build

%install
%make_install

ln -sf %{_cups_serverbin}/filter/universal %{buildroot}%{_bindir}/foomatic-rip

rm -f %{buildroot}%{_docdir}/%{name}/{COPYING,NOTICE,LICENSE}
rm -f %{buildroot}%{_docdir}/%{name}/INSTALL
rm -f %{buildroot}%{_docdir}/%{name}/CHANGES-1.x.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12360 |21mr|cups-pk-helper-0.2.6-0.git151fb.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 151fbac90f62f959ccc648d4f73ca6aafc8f8e6a
%define commit_short %(echo %{commit} | head -c 5)

Name:           cups-pk-helper
Version:        0.2.6
Release:        0.git%{commit_short}.2
Summary:        A helper that makes system-config-printer use PolicyKit
Group:          System/Printing
License:        GPLv2+
URL:            http://www.freedesktop.org/wiki/Software/cups-pk-helper
Source0:        https://gitlab.freedesktop.org/cups-pk-helper/cups-pk-helper/-/archive/%{commit}/cups-pk-helper-%{commit}.tar.gz

BuildRequires:	meson
# BRs are just from meson.build
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	cups-devel

Requires:	dbus
Requires:	polkit

%description
cups-pk-helper is an application which makes cups configuration
interfaces available under control of PolicyKit.

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
# harden a bit (btw compiler gives quite a lot of warnings)
%serverbuild
%meson

%install
%meson_install

%find_lang %{name}

%files -f %{name}.lang
%license COPYING
%doc AUTHORS NEWS README
%{_libexecdir}/cups-pk-helper-mechanism
%{_datadir}/dbus-1/system.d/org.opensuse.CupsPkHelper.Mechanism.conf
%{_datadir}/dbus-1/system-services/org.opensuse.CupsPkHelper.Mechanism.service
%{_datadir}/polkit-1/actions/org.opensuse.cupspkhelper.mechanism.policy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12361 |21mr|cura-4.13.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	3D printer control software
Name:		cura
Version:	4.13.2
Release:	2
Epoch:		1
License:	AGPLv3+
Group:		System/Printing
Url:		https://ultimaker.com/en/products/cura-software
Source0:	https://github.com/Ultimaker/Cura/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Fixes wrong import
# Can be removed when https://github.com/Ultimaker/Cura/pull/11246 is merged
Patch0:         https://github.com/Ultimaker/Cura/commit/aad4180.patch
# Skip forced loading SentryLogger to avoid an error on startup
Patch1:		028e7f7.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	dos2unix
BuildRequires:	git
BuildRequires:	python3-devel
BuildRequires:	python3-pip
BuildRequires:	python3-keyring
BuildRequires:	python3-pytest
BuildRequires:	python3-savitar = %{version}
BuildRequires:	python3-uranium = %{version}
BuildRequires:	python3-pynest2d = %{version}
Requires:	python3-qt5
Requires:	python3-keyring
Requires:	python3-pynest2d = %{version}
Requires:	python3-savitar = %{version}
Requires:	python3-serial
Requires:	python3-uranium = %{version}
Requires:	python3-zeroconf
Requires:	qt5-qtquickcontrols-qml
Requires:	qt5-qtquickcontrols2-qml
Requires:	CuraEngine = %{epoch}:%{version}
Requires:	cura-fdm-materials = %{version}
# Workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1494278
# Needs check for ROSA
#Requires:	libglvnd-devel
# So that it just works
Requires:	3dprinter-udev-rules
BuildArch:      noarch

%description
Cura is a project which aims to be an single software solution for 3D printing.
While it is developed to be used with the Ultimaker 3D printer, it can be used
with other RepRap based designs.

Cura helps you to setup an Ultimaker, shows your 3D model, allows for scaling /
positioning, can slice the model to G-Code, with sane editable configuration
settings and send this G-Code to the 3D printer for printing.

%files -f %{name}.lang -f fdmextruder.def.json.lang -f fdmprinter.def.json.lang
%license LICENSE
%doc README.md
# CHANGES is not updated since 15.x
# things in docs are developer oriented
%{python3_sitelib}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/com.ultimaker.cura.desktop
%{_datadir}/metainfo/com.ultimaker.cura.appdata.xml
%{_datadir}/icons/hicolor/128x128/apps/%{name}-icon.png
%{_datadir}/mime/packages/%{name}.xml
%{_bindir}/%{name}
%{_prefix}/lib/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -n Cura-%{version} -p1

# Wrong end of line encoding
dos2unix docs/How_to_use_the_flame_graph_profiler.md

# Wrong shebang
sed -i '1s=^#!/usr/bin/\(python\|env python\)3*=#!%{__python3}=' cura_app.py

%build
%cmake \
    -DLIB_SUFFIX:STR= \
    -DCURA_VERSION=%{version} \
    -DCURA_BUILDTYPE=RPM \
    -DCURA_CLOUD_API_VERSION=1 \
    -DCURA_CLOUD_API_ROOT:STRING="https://api.ultimaker.com" \
    -DCURA_CLOUD_ACCOUNT_API_ROOT:STRING="https://account.ultimaker.com" \
    -DGETTEXT_MSGINIT_EXECUTABLE:STRING=="%{_bindir}/msginit"
%make

%install
%makeinstall_std -C build

pushd %{buildroot}%{_datadir}
mv cura/resources/i18n locale
ln -s ../../locale cura/resources/i18n
rm locale/*/*.po
popd

rm -vfr %{buildroot}%{_datadir}/locale/*.pot

%find_lang %{name}
%find_lang fdmextruder.def.json
%find_lang fdmprinter.def.json

%check
%__python3 -m pip freeze

# https://github.com/Ultimaker/Cura/issues/2954
%__python3 -m pytest -v -k "not TestCuraContainerRegistry and not TestExtruderStack and not TestGlobalStack"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12362 |21mr|CuraEngine-4.13.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Engine for processing 3D models into G-code instructions for 3D printers
Name:		CuraEngine
Version:	4.13.2
Release:	2
Epoch:		1
License:	AGPLv3+
Group:		Development/Other
Url:		https://github.com/Ultimaker/%{name}
Source0:	%{url}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		CuraEngine-static-libstdcpp.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gomp-devel
BuildRequires:	stb-devel
BuildRequires:	libarcus-devel = %{version}
BuildRequires:	polyclipping-devel >= 6.1.2
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(RapidJSON)

%description
%{name} is a C++ console application for 3D printing G-code generation. It
has been made as a better and faster alternative to the old Skeinforge engine.

This is just a console application for G-code generation. For a full graphical
application look at cura with is the graphical frontend for %{name}.

%files
%doc LICENSE README.md
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# bundled libraries
rm -rf libs
sed -i 's|#include <clipper/clipper.hpp>|#include <polyclipping/clipper.hpp>|' src/utils/*.h src/*.cpp

# The -DCURA_ENGINE_VERSION does not work, so we sed-change the default value
sed -i 's/"DEV"/"%{version}"/' src/settings/Settings.h

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DCURA_ENGINE_VERSION:STRING=%{version} \
	-DUSE_SYSTEM_LIBS=ON \
	-Wno-dev \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

%check
%{buildroot}%{_bindir}/%{name} help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12363 |21mr|cura-fdm-materials-4.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cura FDM Material database
Name:		cura-fdm-materials
Version:	4.13.2
Release:	1
# See https://github.com/Ultimaker/Cura/issues/1779 for clarification
License:	Public Domain
Group:		System/Printing
Url:		https://github.com/Ultimaker/fdm_materials
Source0:	%{url}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildArch:	noarch

%description
Cura material files.

These files are needed to work with printers like Ultimaker 2+ and Ultimaker 3.

%files
%doc LICENSE
%{_datadir}/cura/resources/materials/

#----------------------------------------------------------------------------

%prep
%setup -qn fdm_materials-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12364 |21mr|curator-2.10.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          curator
Version:       2.10.0
Release:       8
Summary:       A set of Java libraries that make using Apache ZooKeeper much easier
License:       ASL 2.0
URL:           http://%{name}.apache.org/
Source0:       http://archive.apache.org/dist/%{name}/%{version}/apache-%{name}-%{version}-source-release.zip
# Fix test deps
Patch0:        curator-2.10.0-commons-math3.patch
Patch1:        curator-2.10.0-jetty9.patch

BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.sun.jersey:jersey-client:1)
BuildRequires: mvn(com.sun.jersey:jersey-core:1)
BuildRequires: mvn(com.sun.jersey:jersey-server:1)
BuildRequires: mvn(com.sun.jersey:jersey-servlet:1)
BuildRequires: mvn(javax.ws.rs:jsr311-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.commons:commons-math3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.zookeeper:zookeeper)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.scannotation:scannotation)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.testng:testng)

Requires: %{name}-client = %{version}-%{release}
Requires: %{name}-examples 
Requires: %{name}-framework 
Requires: %{name}-recipes 
Requires: %{name}-test 
Requires: %{name}-x-discovery 
Requires: %{name}-x-discovery-server 

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Curator is a set of Java libraries that
make using Apache ZooKeeper much easier.

%package client
Summary:       Curator Client

%description client
Low-level API.

%package examples
Summary:       Curator Examples

%description examples
Example usages of various Curator features.

%package framework
Summary:       Curator Framework

%description framework
High-level API that greatly simplifies using ZooKeeper.

%package recipes
Summary:       Curator Recipes

%description recipes
All of the recipes listed on the ZooKeeper recipes doc
(except two phase commit).

%package test
Summary:       Curator Testing

%description test
Unit testing utilities.

%package x-discovery
Summary:       Curator Service Discovery

%description x-discovery
A service discovery recipe.

%package x-discovery-server
Summary:       Curator Service Discovery Server

%description x-discovery-server
Bridges non-Java or legacy applications with the
Curator Service Discovery.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}

%prep
%setup -q -n apache-%{name}-%{version}
find -name '*.class' -print -delete
find -name '*.jar' -print -delete

%patch0 -p1
%patch1 -p1

# disable cause build failure
%pom_remove_plugin :maven-license-plugin

%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :clirr-maven-plugin

%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-install-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-scm-publish-plugin

# unavailable build deps
# com.facebook.swift:swift-service:0.12.0
# https://github.com/dropwizard/dropwizard
# io.dropwizard:dropwizard-configuration:0.7.0
# io.dropwizard:dropwizard-logging:0.7.0
%pom_disable_module curator-x-rpc

%pom_xpath_set "pom:properties/pom:jersey-version" 1
%pom_change_dep -r net.sf.scannotation: org.scannotation:

# remove flakey tests
rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/nodes/TestGroupMember.java
rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedQueue.java
rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestBoundedDistributedQueue.java
rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestQueueSharder.java
rm -f curator-x-discovery-server/src/test/java/org/apache/curator/x/discovery/server/jetty_resteasy/TestStringsWithRestEasy.java

# AssertionError: expected [true] but found [false]
rm -f curator-recipes/src/test/java/org/apache/curator/framework/recipes/queue/TestDistributedDelayQueue.java

# Use 6.8.21 >= testng =< 6.8.8
sed -i "s/org.testng.internal.annotations.Sets/org.testng.collections.Sets/" \
 curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderSelector.java \
 curator-recipes/src/test/java/org/apache/curator/framework/recipes/leader/TestLeaderSelectorParticipants.java

# Missing junit dependency in POM
# https://lists.fedoraproject.org/pipermail/bigdata/2014-May/000456.html
%pom_add_dep junit:junit:4.12:test

%build

%mvn_build -s -- -DskipTests

%install
%mvn_install

%files -f .mfiles-apache-curator
%license LICENSE NOTICE

%files client -f .mfiles-curator-client
%doc README
%license LICENSE NOTICE

%files examples -f .mfiles-curator-examples
%files framework -f .mfiles-curator-framework
%files recipes -f .mfiles-curator-recipes
%files test -f .mfiles-curator-test
%license LICENSE NOTICE

%files x-discovery -f .mfiles-curator-x-discovery
%files x-discovery-server -f .mfiles-curator-x-discovery-server
%doc curator-x-discovery-server/README.txt


%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12365 |21mr|curl-8.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define libname_libressl %mklibname %{name}-libressl %{major}
%define libname_gnutls %mklibname %{name}-gnutls %{major}
%define devname %mklibname %{name} -d
%define devname_libressl %mklibname %{name}-libressl -d
%define devname_gnutls %mklibname %{name}-gnutls -d

%define ssh2 0

# Using libressl allows to support GOST TLS without pain
# test: curl https://www.cryptopro.ru:4444/test/tls-cli.asp
# Building a separate curl with libressl
%bcond_without libressl

# Quite a lot of third-party software is compiled on Debian/Ubuntu
# and is linked with libcurl dynamically, Debian's invention libcurl-gnutls.so
# becomes a runtime dependency. Build the same crap to satisfy runtime dependencies.
# Examples of such software:
# - OnlyOffice DesktopEditors (and probably R7 Office)
# - SberPro https://www.sberbank.ru/ru/legal/new/sbrfbusiness
# GnuTLS, btw, is also capable of GOST.
%bcond_without gnutls

# To build rpm with new python:
# nghttp2-devel requires boost-devel which depends on old python
%bcond_without http2

# Important! We perform autoreconf, then change resulting 'configure'
# script, this prevents if from regenerating after we have changed it.
%define _disable_rebuild_configure 1

%define _docs %{expand:
%doc _docs/CHANGES \
%doc _docs/COPYING \
%doc _docs/README \
%doc _docs/README.md \
%doc _docs/RELEASE-NOTES \
%doc _docs/SECURITY.md \
%doc _docs/docs/FAQ \
%doc _docs/docs/THANKS \
%doc _docs/docs/KNOWN_BUGS \
%doc _docs/docs/*.md
}

%define ssl_list openssl %{?with_libressl:libressl} %{?with_gnutls:gnutls}

%define shell_begin %{expand:for SSL in %%{ssl_list} ; \
	do \
	mkdir -p "$SSL" ;\
	pushd "$SSL"}
%define shell_end popd; done

Summary:	Gets a file from a FTP, GOPHER or HTTP server
Name:		curl
Version:	8.7.1
Release:	1
Epoch:		1
License:	BSD-like
Group:		Networking/Other
Url:		https://curl.haxx.se
# Release tarball does not have some useful docs
#Source0:	https://curl.haxx.se/download/%{name}-%{version}.tar.xz
Source0:	https://github.com/curl/curl/archive/curl-%(echo %{version} | sed -e 's,\.,_,g').tar.gz?/%{name}-%{version}.tar.gz
Patch0001:	%{name}-7.59.0-multilib.patch
Patch0002:	%{name}-libressl.patch
# fix issue with --compressed option
Patch0003:	0001-curl-8.7.1-fix-compressed-option.patch
# fix chunked POST via callback regression
Patch0004:	0002-curl-8.7.1-fix-chunked-POST-via-callback.patch
BuildRequires:	groff
BuildRequires:	rsync
BuildRequires:	stunnel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(com_err)
#BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libidn2)
%if %{with http2}
BuildRequires:	pkgconfig(libnghttp2)
%endif
%if 0%{?ssh2}
BuildRequires:	pkgconfig(libssh2)
%else
BuildRequires:	pkgconfig(libssh)
%endif
%if %{with libressl}
BuildRequires:	pkgconfig(libressl)
%endif
%if %{with gnutls}
BuildRequires:	pkgconfig(gnutls)
%endif
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(krb5-gssapi)
# TODO: Package and enable libpsl support
Requires:	%{libname} = %{EVRD}
Provides:	webfetch = %{EVRD}

%description
curl is a client to get documents/files from servers, using any of the
supported protocols. The command is designed to work without user interaction
or any kind of interactivity.
It offers a busload of useful tricks like proxy support, user authentication,
ftp upload, HTTP post, file transfer resume and more.
This version is compiled with SSL (https) support.

%files
%_docs
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------
%if %{with libressl}
%package -n curl-libressl
Summary:	Gets a file from a FTP, GOPHER or HTTP server
Group:		Networking/Other
Provides:	curl-gost = %{EVRD}

%description -n curl-libressl
curl is a client to get documents/files from servers, using any of the
supported protocols. The command is designed to work without user interaction
or any kind of interactivity.
It offers a busload of useful tricks like proxy support, user authentication,
ftp upload, HTTP post, file transfer resume and more.
This version is compiled with LibreSSL and is capable of GOST TLS.

%files -n curl-libressl
%_docs
%{_bindir}/curl-libressl
%{_bindir}/curl-gost
%endif
#----------------------------------------------------------------------------

%if %{with gnutls}
%package -n curl-gnutls
Summary:	Gets a file from a FTP, GOPHER or HTTP server
Group:		Networking/Other

%description -n curl-gnutls
curl is a client to get documents/files from servers, using any of the
supported protocols. The command is designed to work without user interaction
or any kind of interactivity.
It offers a busload of useful tricks like proxy support, user authentication,
ftp upload, HTTP post, file transfer resume and more.
This version is compiled with GnuTLS library.

%files -n curl-gnutls
%_docs
%{_bindir}/curl-gnutls
%endif
#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library of functions for file transfer
Group:		Networking/Other
Requires:	rootcerts
Provides:	libcurl-openssl = %{EVRD}
Provides:	libcurl-openssl%{_isa} = %{EVRD}

%description -n %{libname}
libcurl is a library of functions for sending and receiving files through
various protocols, including http and ftp.
You should install this package if you plan to use any applications that
use libcurl.

%files -n %{libname}
%_docs
%{_libdir}/libcurl.so.%{major}*

#----------------------------------------------------------------------------
%if %{with libressl}
%package -n %{libname_libressl}
Summary:	A library of functions for file transfer
Group:		Networking/Other
Requires:	rootcerts
Provides:	libcurl-libressl = %{EVRD}
Provides:	libcurl-libressl%{_isa} = %{EVRD}

%description -n %{libname_libressl}
libcurl is a library of functions for sending and receiving files through
various protocols, including http and ftp.
You should install this package if you plan to use any applications that
use libcurl.
libcurl-libressl is linked with LibreSSL and is capable of GOST TLS.

%files -n %{libname_libressl}
%_docs
%{_libdir}/libcurl-libressl.so.%{major}*
%endif
#----------------------------------------------------------------------------

%if %{with gnutls}
%package -n %{libname_gnutls}
Summary:	A library of functions for file transfer
Group:		Networking/Other
Requires:	rootcerts
Provides:	libcurl-gnutls = %{EVRD}
Provides:	libcurl-gnutls%{_isa} = %{EVRD}

%description -n %{libname_gnutls}
libcurl is a library of functions for sending and receiving files through
various protocols, including http and ftp.
You should install this package if you plan to use any applications that
use libcurl.
libcurl-gnutls is linked with GnuTLS library.

%files -n %{libname_gnutls}
%_docs
%{_libdir}/libcurl-gnutls.so.%{major}*
%endif
#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries for libcurl
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libcurl is a library of functions for sending and receiving files through
various protocols, including http and ftp.
You should install this package if you wish to develop applications that
use libcurl.

%files -n %{devname}
%_docs
%{_bindir}/%{name}-config
%{_libdir}/libcurl.so
%{_includedir}/%{name}
%exclude %{_includedir}/curl-libressl
%{_libdir}/pkgconfig/libcurl.pc
%{_datadir}/aclocal/*.m4
%{_mandir}/man1/%{name}-config.1*
%{_mandir}/man3/*

#----------------------------------------------------------------------------
%if %{with libressl}

%package -n %{devname_libressl}
Summary:	Header files and devel libraries for libcurl with LibreSSL
Group:		Development/C
Requires:	%{libname_libressl} = %{EVRD}
Provides:	%{name}-libressl-devel = %{EVRD}
Provides:	%{name}-gost-devel = %{EVRD}

%description -n %{devname_libressl}
libcurl is a library of functions for sending and receiving files through
various protocols, including http and ftp.
You should install this package if you wish to develop applications that
use libcurl linked with LibreSSL and capable of GOST.

%files -n %{devname_libressl}
%_docs
%{_includedir}/curl-libressl
%{_libdir}/pkgconfig/libcurl-libressl.pc
%{_libdir}/libcurl-libressl.so

%endif
#----------------------------------------------------------------------------

%if %{with gnutls}

%package -n %{devname_gnutls}
Summary:	Header files and devel libraries for libcurl with gnutls
Group:		Development/C
Requires:	%{libname_gnutls} = %{EVRD}
Provides:	%{name}-gnutls-devel = %{EVRD}

%description -n %{devname_gnutls}
libcurl is a library of functions for sending and receiving files through
various protocols, including http and ftp.
You should install this package if you wish to develop applications that
use libcurl linked with gnutls and capable of GOST.

%files -n %{devname_gnutls}
%_docs
%{_includedir}/curl-gnutls
%{_libdir}/pkgconfig/libcurl-gnutls.pc
%{_libdir}/libcurl-gnutls.so

%endif
#----------------------------------------------------------------------------

%package examples
Summary:	Example files for %{name} development
Group:		Development/C
Requires:	%{name}-devel = %{EVRD}
BuildArch:	noarch

%description examples
Example files for %{name} development.

%files examples
%doc docs/examples

#----------------------------------------------------------------------------

%prep
%setup -q -n curl-curl-%(echo %{version} | sed -e 's,\.,_,g')
cp libcurl.pc.in libcurl.pc.in.0
%autopatch -p1
# Prevent configure script from discarding -g in CFLAGS
# https://bugzilla.redhat.com/show_bug.cgi?id=496778
for i in flags_dbg_all flags_opt_all flags_opt_yes flags_dbg_yes
do
	sed -i'' -E -e "s,flags_dbg_yes=.+,flags_dbg_yes=''," m4/curl-compilers.m4
done
# after Patch3 curl-libressl.patch
# 0 - original (OpenSSL), 1 - patched (LibreSSL)
cp libcurl.pc.in libcurl.pc.in.1
regexp="$(echo %{ssl_list} | sed -e 's, ,|,g')"
for i in %{ssl_list}; do
	mkdir -p "$i"
	cp -r $(ls -1v | grep -vE "$regexp") "$i"/
done

# remove "-DEV" from useragent ("curl/7.74.0-DEV" -> "curl/7.74.0")
sed -i -e 's,-DEV\",\",' include/curl/curlver.h

# %%_docs copy docs/*.md, remove odd ones
rm -fv docs/README.md
# build scripts seem to remove useful files, backup them
mkdir -p _docs/
rsync -av --relative --progress $(echo "%_docs" | sed -e 's,%doc,,g' -e 's,_docs/,,g') _docs/

rm -fr $(ls -1v | grep -vE "${regexp}|docs|COPYING|CHANGES")

%build
%set_build_flags
%shell_begin

ADD_CONF_OPTS=""
case "$SSL" in
 libressl )
	with_gnutls=without
	with_openssl=with
	cp libcurl.pc.in.1 libcurl.pc.in
	# validate that correct file is being used
	grep -q LIBRESSL_ libcurl.pc.in
	new_libname=libcurl-libressl
	sed -i'' m4/curl-openssl.m4 \
		-e 's,openssl.pc,libressl.pc,g' \
		-e 's,PKGCONFIG(openssl,PKGCONFIG(libressl,g' \
		-e 's,$PREFIX_OPENSSL/lib$libsuff,$PREFIX_OPENSSL/lib,g'
	# $LIBS apply to libcurl.so only, so there will not be overlinking
	# even if to add -lxxx here
	export LIBS="$(pkg-config --cflags-only-I --libs-only-L libressl)"
	export CFLAGS="$LIBS %{optflags}"
	export PREFIX_OPENSSL=%{libressl_prefix}
	# It will be /usr/include/curl-libressl/curl
	# to allow '#include <curl/xxx.h> to work with -I/usr/include/curl-libressl
	ADD_CONF_OPTS="\
		--includedir=%{_includedir}/curl-libressl \
	"
	;;
 openssl )
	with_gnutls=without
	with_openssl=with
	cp libcurl.pc.in.0 libcurl.pc.in
	! grep -q LIBRESSL_ libcurl.pc.in
	new_libname=libcurl
	export LIBS="$(pkg-config --cflags-only-I --libs-only-L openssl)"
	export CFLAGS="$LIBS %{optflags}"
	export PREFIX_OPENSSL=%{_prefix}
	ADD_CONF_OPTS=""
	;;
 gnutls )
	with_gnutls=with
	with_openssl=without
	new_libname=libcurl-gnutls
	# It will be /usr/include/curl-libressl/gnutls
	# to allow '#include <curl/xxx.h> to work with -I/usr/include/curl-gnuttls
	ADD_CONF_OPTS="\
		--includedir=%{_includedir}/curl-gnutls \
	"
	;;
esac

autoreconf -fiv
sed -i configure \
	-e "s,\$libname,${new_libname},g" \
	-e "s,\${libname},${new_libname},g"

%configure \
	--disable-static \
	--${with_openssl}-openssl \
	--${with_gnutls}-gnutls \
	--without-bearssl \
	--with-zlib \
	--with-lber-lib=lber \
	--with-libidn2 \
%if %{with http2}
	--with-nghttp2 \
%endif
%if 0%{?ssh2}
	--with-ssh2 \
%else
	--with-libssh \
%endif
	--with-random \
	--enable-hidden-symbols \
	--enable-optimize \
	--enable-nonblocking \
	--enable-thread \
	--enable-crypto-auth \
	--enable-libgcc \
	--enable-ldaps \
	--enable-ipv6 \
	--with-ca-bundle=%{_openssldir}/certs/ca-bundle.crt \
	--with-gssapi=%{_prefix} \
	--enable-ares \
	--enable-tls-srp \
	--without-libpsl \
	$ADD_CONF_OPTS --

%make_build

# we don't want them in curl-examples:
rm -r docs/examples/.deps ||:
find docs/examples -name .gitignore -print -delete

%shell_end

%install
%shell_begin
case "$SSL" in
	openssl )
		%makeinstall_std
	;;
	libressl )
		tmp="$(mktemp -d -p $PWD)"
		mkdir -p "$tmp"
		make DESTDIR="${tmp}" install
		mv -v ${tmp}%{_bindir}/curl %{buildroot}%{_bindir}/curl-libressl
		mv -v ${tmp}%{_libdir}/libcurl-libressl* %{buildroot}%{_libdir}
		mv -v ${tmp}%{_includedir}/curl-libressl %{buildroot}%{_includedir}/
		cat ${tmp}%{_libdir}/pkgconfig/libcurl.pc | \
			sed -r \
				-e 's,^Name:.+,Name: libcurl-libressl,g' \
				-e 's,-lcurl,-lcurl-libressl,g' \
				-e "s,@LIBRESSL_LIBS@,$(pkg-config --libs-only-L libressl),g" \
				-e "s,@LIBRESSL_LIBS_PRIVATE@,,g" \
				-e "s,@LIBRESSL_CFLAGS@,$(pkg-config --cflags-only-I libressl),g" \
			> %{buildroot}%{_libdir}/pkgconfig/libcurl-libressl.pc
		#rm -fr "$tmp"
	;;
	gnutls )
		tmp="$(mktemp -d -p $PWD)"
		mkdir -p "$tmp"
		make DESTDIR="${tmp}" install
		mv -v ${tmp}%{_bindir}/curl %{buildroot}%{_bindir}/curl-gnutls
		mv -v ${tmp}%{_libdir}/libcurl-gnutls* %{buildroot}%{_libdir}
		mv -v ${tmp}%{_includedir}/curl-gnutls %{buildroot}%{_includedir}/
		cat ${tmp}%{_libdir}/pkgconfig/libcurl.pc | \
			sed -r \
				-e 's,^Name:.+,Name: libcurl-gnutls,g' \
				-e 's,-lcurl,-lcurl-gnutls,g' \
				-e 's,-I$\{includedir\},-I$\{includedir\} -I$\{includedir\}/curl-gnutls,' \
			> %{buildroot}%{_libdir}/pkgconfig/libcurl-gnutls.pc
	;;
	* ) echo 'Unknown $SSL' && exit 1 ;;
esac

%shell_end

# [july 2008] HACK. to be replaced by a real fix
sed -i -e 's!-Wl,--as-needed!!' -e 's!-Wl,--no-undefined!!' %{buildroot}%{_bindir}/%{name}-config
sed -i -e 's!-Wl,--as-needed!!' -e 's!-Wl,--no-undefined!!' %{buildroot}%{_libdir}/pkgconfig/*.pc

# (tpg) use rootcerts's certificates #35917
find %{buildroot} -name ca-bundle.crt -exec rm -f '{}' \;

# we don't package mk-ca-bundle so we don't need man for it
rm -f %{buildroot}%{_mandir}/man1/mk-ca-bundle.1*

%if %{with libressl}
( cd %{buildroot}%{_bindir} ; ln -s curl-libressl curl-gost )
%endif

%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%if %{with libressl}
readelf -a %{buildroot}%{_bindir}/curl-libressl | grep NEEDED | grep -q libcurl-libressl
readelf -a %{buildroot}%{_libdir}/libcurl-libressl.so | grep SONAME | grep -q libcurl-libressl
readelf -a %{buildroot}%{_libdir}/libcurl-libressl.so | grep NEEDED | grep -q 'libssl.so.%{libressl_libssl_sover}'
readelf -a %{buildroot}%{_libdir}/libcurl-libressl.so | grep NEEDED | grep -q 'libcrypto.so.%{libressl_libcrypto_sover}'
readelf -a %{buildroot}%{_libdir}/libcurl-gnutls.so | grep NEEDED | grep -q 'libgnutls.so.'
! readelf -a %{buildroot}%{_libdir}/libcurl.so | grep SONAME | grep -q libcurl-libressl
readelf -a %{buildroot}%{_libdir}/libcurl-gnutls.so | grep SONAME | grep -q libcurl-gnutls
# Check that GSS-API has been enabled
readelf -a %{buildroot}%{_libdir}/libcurl.so          | grep NEEDED | grep -q libgssapi
readelf -a %{buildroot}%{_libdir}/libcurl-libressl.so | grep NEEDED | grep -q libgssapi
readelf -a %{buildroot}%{_libdir}/libcurl-gnutls.so   | grep NEEDED | grep -q libgssapi
# This test will not fail if there is no connection with internet
# --insecure to ignore missing SSL certificate
if %{buildroot}%{_bindir}/curl-libressl --insecure \
	"https://www.cryptopro.ru:4444/test/tls-cli.asp" 2>&1 | \
	grep -q ':unsupported algorithm$' ;
then
	echo "GOST is not supported"
	exit 1
fi
%endif


## fix security issue
# CVE-2022-22576 CVE-2022-27774 CVE-2022-27775 CVE-2022-27776
# CVE-2022-27778 CVE-2022-27779 CVE-2022-27780 CVE-2022-27781
# CVE-2022-27782 CVE-2022-30115 CVE-2022-32205 CVE-2022-32206
# CVE-2022-32207 CVE-2022-32208 CVE-2022-35252


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12366 |21mr|curve25519-java-0.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          curve25519-java
Version:       0.1.0
Release:       7
Summary:       Implementation of Curve25519 in Java
# Fork of https://code.google.com/p/curve25519-java/
# Public domain: ./src/main/java/djb/Bench.java
# ./src/main/java/djb/Curve25519.java
# Licensed under ASL 2.0
License:       ASL 2.0 and Public Domain
URL:           https://github.com/trevorbernard/curve25519-java
Source0:       https://github.com/trevorbernard/curve25519-java/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/trevorbernard/curve25519-java/issues/1
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java port of Matthijs van Duin's implementation
of Daniel J Bernstein's Curve25519.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -print -delete

cp -p %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

# Add OSGi support
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Name>\${project.name}</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%mvn_file org.zeromq:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12367 |21mr|curvesapi-1.04-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 25f63a4a5a98a4bc82bb0e155cdf4d28e0c9e8a7
Name:          curvesapi
Version:       1.04
Release:       7
Summary:       Java implementation of various mathematical curves
# Fork of https://sourceforge.net/projects/curves/
License:       BSD
Group:         Development/Java
URL:           https://github.com/virtuald/curvesapi
Source0:       https://github.com/virtuald/curvesapi/archive/%{githash}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Implementation of various mathematical curves that define themselves
over a set of control points. The API is written in Java. The curves
supported are: Bezier, B-Spline, Cardinal Spline, Catmull-Rom Spline,
Lagrange, Natural Cubic Spline, and NURBS.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}

# Convert from dos to unix line ending
for file in r*.txt demo/*.java
do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md readme.txt release-notes.txt scshot.png demo
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12368 |21mr|custodia-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		custodia
Version:	0.6.0
Release:	2
Summary:	A service to manage, retrieve and store secrets for other processes
Group:		Development/Python
License:	GPLv3+
URL:		https://github.com/latchset/%{name}
Source0:	https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source2:	custodia.conf
Source3:	custodia@.service
Source4:	custodia@.socket
Source5:	custodia.tmpfiles.conf
Source6:	custodia.sysusers.conf
Patch1:		nonfatal_deprecation.patch
Patch2:		0001-Replace-use-of-pytest-get_marker.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(jwcrypto) >= 0.4.2
BuildRequires:	python3egg(requests)
BuildRequires:	python3egg(setuptools) > 18
BuildRequires:	python3egg(coverage)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(docutils)
BuildRequires:	python3-systemd
Requires(pre):	/bin/systemd-sysusers
BuildArch:	noarch

%description
A service to manage, retrieve and store secrets for other processes
Custodia is a Secrets Service Provider, it stores or proxies access to     \
keys, password, and secret material in general. Custodia is built to       \
use the HTTP protocol and a RESTful API as an IPC mechanism over a local   \
Unix Socket. It can also be exposed to a network via a Reverse Proxy       \
service assuming proper authentication and header validation is            \
implemented in the Proxy.                                                  \

%files
%doc README API.md
%doc %{_defaultdocdir}/custodia/examples/custodia.conf
%license LICENSE
%{_mandir}/man7/custodia*
%{_sbindir}/custodia
%{_bindir}/custodia-cli
%dir %attr(0700,custodia,custodia) %{_sysconfdir}/custodia
%config(noreplace) %attr(600,custodia,custodia) %{_sysconfdir}/custodia/custodia.conf
%attr(644,root,root)  %{_unitdir}/custodia@.socket
%attr(644,root,root)  %{_unitdir}/custodia@.service
%dir %attr(0700,custodia,custodia) %{_localstatedir}/lib/custodia
%dir %attr(0700,custodia,custodia) %{_localstatedir}/log/custodia
%dir %attr(0755,custodia,custodia) %{_localstatedir}/run/custodia
%{_tmpfilesdir}/custodia.conf
%{_sysusersdir}/custodia.conf

%pre
%sysusers_create_package custodia %{SOURCE6}

#------------------------------------------------------------------
%package -n python3-custodia
Summary:    Sub-package with python3 custodia modules
Requires:   python3-jwcrypto >= 0.4.2
Requires:   python3-requests
Requires:   python3-setuptools
Requires:   python3-systemd
Conflicts:  python3-custodia-extra < %{version}

%description -n python3-custodia
Sub-package with python custodia modules

%files -n python3-custodia
%license LICENSE
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}-nspkg.pth
%{_sbindir}/custodia
%{_bindir}/custodia-cli

#-------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%check
# don't download packages
export PIP_INDEX_URL=http://host.invalid./
# Don't try to download dnspython3. The package is provided by python%{python3_pkgversion}-dns
export PIP_NO_DEPS=yes
# Ignore all install packages to enforce installation of sdist. Otherwise tox
# may pick up this package from global site-packages instead of source dist.
export PIP_IGNORE_INSTALLED=yes

# Test custodia in a virtual environment
%{__python3} -m venv --system-site-packages testenv
testenv/bin/pip install .
testenv/bin/python -m pytest --capture=no --strict --skip-servertests

%install
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_mandir}/man7
mkdir -p %{buildroot}/%{_defaultdocdir}/custodia
mkdir -p %{buildroot}/%{_defaultdocdir}/custodia/examples
mkdir -p %{buildroot}/%{_sysconfdir}/custodia
mkdir -p %{buildroot}/%{_unitdir}
mkdir -p %{buildroot}/%{_tmpfilesdir}
mkdir -p %{buildroot}/%{_localstatedir}/lib/custodia
mkdir -p %{buildroot}/%{_localstatedir}/log/custodia
mkdir -p %{buildroot}/%{_localstatedir}/run/custodia

%py3_install
mv %{buildroot}/%{_bindir}/custodia %{buildroot}/%{_sbindir}/custodia

install -m 644 -t "%{buildroot}/%{_mandir}/man7" man/custodia.7
install -m 644 -t "%{buildroot}/%{_defaultdocdir}/custodia" README API.md
install -m 644 -t "%{buildroot}/%{_defaultdocdir}/custodia/examples" custodia.conf
install -m 600 %{SOURCE2} %{buildroot}%{_sysconfdir}/custodia
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE4} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/custodia.conf

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m 0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/custodia.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12369 |21mr|cvs-1.12.13-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exceptions tcsh\\|/bin/csh
%global __requires_exclude_from ^/usr/share/cvs/contrib/

Summary:	A version control system
Name:		cvs
Version:	1.12.13
Release:	31
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.nongnu.org/cvs/
Source0:	http://ftp.gnu.org/non-gnu/cvs/source/feature/%{version}/%{name}-%{version}.tar.bz2
Source1:	http://ftp.gnu.org/non-gnu/cvs/source/feature/%{version}/%{name}-%{version}.tar.bz2.sig
Source2: 	cvspserver
Source3: 	cvs.conf
Source4: 	cvs-xinetd
Patch0:		cvs-1.11.19-varargs.patch
Patch2: 	cvs-1.12.13-errno.patch
Patch4:		cvs-1.11.1-newline.patch
Patch5:		cvs-1.11.4-first-login.patch
Patch6:		cvs-1.11.19-cvsbug.patch
# Patch from cvs of cvs:
# http://savannah.nongnu.org/bugs/?func=detailitem&item_id=14840
Patch7:		cvs-zlib-read.patch
Patch8:		cvs-1.12.13-format_not_a_string_literal_and_no_format_arguments.diff
Patch9:		cvs-1.12.13-CVE-2012-0804.diff
Patch10:	cvs-1.11.23-Fix-CVE-2017-12836.patch

BuildRequires:	groff
BuildRequires:	tcsh
BuildRequires:	texinfo
BuildRequires:	texlive
BuildRequires:	texlive-dehyph-exptl
BuildRequires:	vim-minimal
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(zlib)
Requires:	openssh-clients

%description
CVS means Concurrent Version System; it is a version control system which can
record the history of your files (usually, but not always, source code). CVS
only stores the differences between versions, instead of every version of every
file you've ever created. CVS also keeps a log of who, when and why changes
occurred, among other aspects.

CVS is very helpful for managing releases and controlling the concurrent
editing of source files among multiple authors. Instead of providing version
control for a collection of files in a single directory, CVS provides version
control for a hierarchical collection of directories consisting of revision
controlled files.

These directories and files can then be combined together to form a software
release.

Install the cvs package if you need to use a version control system.

%files
%doc BUGS FAQ MINOR-BUGS NEWS PROJECTS TODO README
%config(noreplace) %{_sysconfdir}/xinetd.d/%{name}
%dir %{_sysconfdir}/cvs
%config(noreplace) %{_sysconfdir}/cvs/cvs.conf
%{_bindir}/cvs
%{_bindir}/cvsbug
%{_bindir}/rcs2log
%{_sbindir}/cvspserver
%{_infodir}/cvs*
%{_datadir}/cvs
%{_mandir}/man1/cvs.1*
%{_mandir}/man5/cvs.5*
%{_mandir}/man8/cvsbug.8*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .varargs
%patch2 -p1 -b .errno
%patch4 -p1 -b .newline
%patch5 -p1 -b .first-login
%patch6 -p1 -b .cvsbug
%patch7 -p0 -b .zlib-read
%patch8 -p1 -b .format_not_a_string_literal_and_no_format_arguments
%patch9 -p0 -b .CVE-2012-0804
%patch10 -p1 -b .CVE-2017-12836

%build
# http://qa.mandriva.com/show_bug.cgi?id=31848
%define _fortify_cflags %{nil}

export SENDMAIL="%{_sbindir}/sendmail"

%serverbuild

export CXXFLAGS="${CFLAGS}"
export CCFLAGS="${CFLAGS}"

%configure \
	--with-tmpdir=/tmp \
	--with-external-zlib \
	--with-editor=vi

%make

%install
install -d %{buildroot}%{_sysconfdir}/xinetd.d
install -d %{buildroot}%{_sysconfdir}/cvs
install -d %{buildroot}%{_sbindir}

%makeinstall

install -m0755 %{SOURCE2} %{buildroot}%{_sbindir}/
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/cvs
install -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/xinetd.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12370 |21mr|cwiid-0.6.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	CWiid Wiimote Interface
Name:		cwiid
Version:	0.6.02
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://github.com/abstrakraft/cwiid
Source0:	http://www.abstrakraft.org/%{name}-%{version}.tar.xz
Patch0:		cwiid-0.6.02-fix-linkage.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(python2)
Requires:	python2-%{name}
# Plugins are used by wminput, they shouldn't be in a library package
Conflicts:	%{_lib}cwiid1 < 0.6.01-6

%description
CWiid is a Wiimote Interface.
The %{name} package contains the following parts:
1.%{name} library - abstracts the interface to the wiimote by hiding
  the details of the underlying Bluetooth connection
2.wmif - provides a simple text-based interface to the wiimote.
3.wmgui - provides a simple GTK gui to the wiimote.

%files
%doc README.md
%docdir %{_docdir}/%{name}
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/wminput
%config(noreplace) %{_sysconfdir}/%{name}/wminput/*
%{_bindir}/lswm
%{_bindir}/wmgui
%{_bindir}/wminput
%{_libdir}/%{name}/plugins/*.so
%{_mandir}/man1/*.1*
%{_docdir}/%{name}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	CWiid Wiimote library
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with the CWiid Wiimote library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for CWiid
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries needed for
developing programs using the CWiid Wiimote library.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.a
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/cwiid.pc

#----------------------------------------------------------------------------

%package -n python2-%{name}
%py2_migration_meta python2-%{name}
Summary:	Python bindings for the %{name} Wiimote library
Group:		Development/Python

%description -n python2-%{name}
This package contains Python bindings for the %{name} Wiimote library.

%files -n python2-%{name}
%{python2_sitearch}/%{name}.so
%{python2_sitearch}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf
export PYTHON=%__python2
%configure \
	--disable-ldconfig \
	--docdir=%{_docdir}/%{name}

%make WARNFLAGS="%{optflags} -Wall"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12371 |21mr|cxf-3.1.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tarname apache-%{name}-%{version}-src

%bcond_with jetty

Name:          cxf
Epoch:         1
Version:       3.1.6
Release:       8
Summary:       Apache CXF
License:       ASL 2.0
URL:           http://cxf.apache.org/
Source0:       http://www.apache.org/dist/cxf/%{version}/%{tarname}.tar.gz

Patch0:        cxf-3.1.4-port-to-servlet-3.1.patch
Patch1:        cxf-3.1.4-port-to-ehcache-core-2.6.patch
Patch2:        cxf-3.1.4-osgi-Dictionary.patch

Patch3:        cxf-3.1.6-CVE-2016-6812.patch
Patch4:        cxf-3.1.6-CVE-2016-8739.patch
Patch5:        cxf-3.1.6-CVE-2017-3156.patch

# From ALT Linux
Patch6:        cxf-3.1.6-wss4j-2.1.12.patch
Patch7:        cxf-3.1.6-jaxrs-api-2.1.5.patch

# ROSA
Patch10:       0001-Force-woodstox-core-5.patch
Patch11:       0001-Fix-building-with-current-Servlet-API.patch

BuildRequires: maven-local
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(com.sun.mail:javax.mail)
BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(io.dropwizard.metrics:metrics-core)
BuildRequires: mvn(io.netty:netty-all)
BuildRequires: mvn(io.swagger:swagger-jaxrs) >= 1.5.8
BuildRequires: mvn(javax.annotation:javax.annotation-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(javax.ws.rs:javax.ws.rs-api)
BuildRequires: mvn(jdom:jdom)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.java.dev.msv:msv-core)
BuildRequires: mvn(net.oauth.core:oauth-provider)
BuildRequires: mvn(net.sf.cglib:cglib)
# ehcache:2.9.0
BuildRequires: mvn(net.sf.ehcache:ehcache-core)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.aries.blueprint:blueprint-parser) >= 1.3.1
BuildRequires: mvn(org.apache.aries.blueprint:org.apache.aries.blueprint.api) >= 1.0.0
BuildRequires: mvn(org.apache.aries.blueprint:org.apache.aries.blueprint.core) >= 1.0.0
BuildRequires: mvn(org.apache.commons:commons-jexl)
BuildRequires: mvn(org.apache.cxf:cxf-xjc-plugin)
BuildRequires: mvn(org.apache.cxf.build-utils:cxf-buildtools)
BuildRequires: mvn(org.apache.cxf.build-utils:cxf-xml2fastinfoset-plugin)
BuildRequires: mvn(org.apache.cxf.xjcplugins:cxf-xjc-dv)
BuildRequires: mvn(org.apache.cxf.xjcplugins:cxf-xjc-javadoc)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jcache_1.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.httpcomponents:httpcore-nio)
BuildRequires: mvn(org.apache.httpcomponents:httpasyncclient)
BuildRequires: mvn(org.apache.maven:maven-artifact)
BuildRequires: mvn(org.apache.maven:maven-compat)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-install-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-javadoc-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.shared:maven-artifact-resolver)
BuildRequires: mvn(org.apache.mina:mina-core)
BuildRequires: mvn(org.apache.neethi:neethi)
BuildRequires: mvn(org.apache.velocity:velocity)
# rpm -q --whatprovides 'mvn(org.apache.ws.xmlschema:xmlschema-core)'
#XmlSchema-2.2.3-4.noarch
#ws-xmlschema-2.2.1-7.noarch
BuildRequires: mvn(org.apache.ws.xmlschema:xmlschema-core) >= 2.2.1
BuildRequires: ws-xmlschema
BuildRequires: mvn(org.apache.wss4j:wss4j-policy) >= 2.1.5
BuildRequires: mvn(org.apache.wss4j:wss4j-ws-security-common) >= 2.1.5
BuildRequires: mvn(org.apache.wss4j:wss4j-ws-security-dom) >= 2.1.5
BuildRequires: mvn(org.apache.wss4j:wss4j-ws-security-policy-stax) >= 2.1.5
BuildRequires: mvn(org.apache.wss4j:wss4j-ws-security-stax) >= 2.1.5
BuildRequires: mvn(org.apache.xmlbeans:xmlbeans)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl:5)
BuildRequires: mvn(org.eclipse.gemini.blueprint:gemini-blueprint-core)
BuildRequires: mvn(org.eclipse.gemini.blueprint:gemini-blueprint-io)
%if %{with jetty}
BuildRequires: mvn(org.eclipse.jetty:jetty-continuation)
BuildRequires: mvn(org.eclipse.jetty:jetty-http)
BuildRequires: mvn(org.eclipse.jetty:jetty-io)
BuildRequires: mvn(org.eclipse.jetty:jetty-jmx)
BuildRequires: mvn(org.eclipse.jetty:jetty-security)
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
BuildRequires: mvn(org.eclipse.jetty:jetty-util)
%endif
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi.services)
BuildRequires: mvn(org.eclipse.tycho:tycho-packaging-plugin)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-core)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-runtime)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-xjc)
BuildRequires: mvn(org.glassfish.jaxb:txw2)
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires: mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec)
BuildRequires: mvn(org.jibx:jibx-bind)
BuildRequires: mvn(org.jibx:jibx-run)
BuildRequires: mvn(org.jibx:jibx-schema)
BuildRequires: mvn(org.jibx:jibx-tools)
BuildRequires: mvn(org.jvnet.jaxb2_commons:jaxb2-basics)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
# springframework:4.1.9.RELEASE https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1363923
BuildRequires: mvn(org.springframework:spring-aop)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-web)
BuildRequires: mvn(org.springframework:spring-webmvc)
BuildRequires: mvn(org.springframework.ldap:spring-ldap-core)
BuildRequires: mvn(rhino:js)
BuildRequires: mvn(wsdl4j:wsdl4j)
BuildRequires: mvn(xerces:xercesImpl)
BuildRequires: mvn(xml-resolver:xml-resolver)
BuildRequires: mvn(org.apache:apache-jar-resource-bundle)

BuildRequires: mvn(org.apache.cxf:cxf-rt-ws-security)

# No more available
Obsoletes:     %{name}-api < %{version}-%{release}

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache CXF is an open-source services framework that aids in
the development of services using front-end programming APIs,
like JAX-WS and JAX-RS.

#package javadoc
#Summary:       Javadoc for %{name}
#
#description javadoc
#This package contains the API documentation for %{name}.

%package maven-plugins
Summary:       Apache CXF Maven Plugins

%description maven-plugins
Maven plugins required for building or testing Apache CXF.

%package rt
Summary:       Apache CXF Runtime

%description rt
This package contains core feature set of Apache CXF;
web service standards support, frontends, and protocols
support.

%package services
Summary:       Apache CXF Services

%description services
This package contains Apache CXF WSN services.

%package tools
Summary:       Apache CXF Tools

%description tools
Apache CXF Command Line Tools.

%prep
%autosetup -p1 -n %{tarname}

find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

# viy: maven-javadoc-plugin 3
%pom_disable_module "java2wadl-plugin" maven-plugins

# Disable main modules
# No ant-trax
%pom_disable_module "testutils"
%pom_disable_module "integration"

%pom_disable_module "osgi"
%pom_disable_module "bundle" osgi
%pom_disable_module "itests" osgi
%pom_disable_module "itests-felix" osgi
%pom_disable_module "karaf" osgi

%pom_disable_module "systests"
# Test dependency
%pom_disable_module "systests" services/sts
%pom_disable_module "test" tools/wsdlto
%pom_disable_module "javascript-tests" rt/javascript

# Unnecessary
%pom_disable_module "sts-war" services/sts
%pom_disable_module "xkms-war" services/xkms
%pom_disable_module "archetypes" maven-plugins
%pom_disable_module "xkms-features" services/xkms
%pom_disable_module "xkms-osgi" services/xkms
%pom_disable_module "xkms-itests" services/xkms

# org.atmosphere:atmosphere-runtime:2.3.5
# com.ning:async-http-client:1.9.8 2014-05-05: Retired
%pom_disable_module "websocket" rt/transports

# org.apache.tuscany.sdo:tuscany-sdo-impl,tuscany-sdo-tools:1.1.1 2016/05/28 - Apache Tuscany has been retired. 
%pom_disable_module "sdo" rt/databinding

# org.apache.abdera:abdera-core,abdera-parser,abdera-extensions-json:1.1.3
%pom_disable_module "extensions/providers" rt/rs

# org.apache.geronimo.specs:geronimo-jpa_2.0_spec:1.0
# org.apache.olingo:olingo-odata2-core:1.2.0
# org.apache.hbase:hbase-client:1.1.1 2015-10-13: Retired
%pom_disable_module "extensions/search" rt/rs

# com.google.gwt:gwt-servlet,gwt-user:2.7.0,com.google.gwt.inject:gin:2.1.2,org.codehaus.mojo:gwt-maven-plugin:2.7.0
%pom_disable_module "management-web" rt

# org.apache.activemq:activemq-broker:5.12.0
# https://bugzilla.redhat.com/show_bug.cgi?id=998251
%pom_disable_module "wsn-core" services/wsn

%pom_disable_module "wsn-osgi" services/wsn

%if %{without jetty}
# Do not support jetty 9.4.0
%pom_disable_module "http-jetty" rt/transports
%endif

%pom_remove_plugin -r :maven-pmd-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
# com.googlecode.maven-download-plugin:download-maven-plugin:1.2.0 https://publicsuffix.org/list/effective_tld_names.dat
%pom_remove_plugin -r :download-maven-plugin

# used only for generate test stuff
%pom_remove_plugin -r org.codehaus.mojo:xmlbeans-maven-plugin

%pom_remove_dep -r :ant-nodeps

%pom_xpath_set pom:properties/pom:cxf.servlet-api.group javax.servlet parent
%pom_xpath_set pom:properties/pom:cxf.servlet-api.artifact javax.servlet-api parent
%pom_xpath_set pom:properties/pom:cxf.servlet-api-2.5.artifact javax.servlet-api parent

%pom_change_dep -r :geronimo-j2ee-connector_1.5_spec org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec:1.0.1.Final
%pom_change_dep -r :geronimo-javamail_1.4_spec com.sun.mail:javax.mail:1.5.2

%pom_change_dep -r org.springframework.osgi:spring-osgi-io org.eclipse.gemini.blueprint:gemini-blueprint-io:1.0.2.RELEASE
%pom_change_dep -r org.springframework.osgi:spring-osgi-core org.eclipse.gemini.blueprint:gemini-blueprint-core:1.0.2.RELEASE
sed -i "s|org.springframework.osgi|org.eclipse.gemini.blueprint|" \
 core/src/main/java/org/apache/cxf/common/util/SpringOsgiUtil.java

# Remove deprecated httpclient annotations
sed -i '/ThreadSafe/d' \
 rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedInputBuffer.java \
 rt/transports/http-hc/src/main/java/org/apache/cxf/transport/http/asyncclient/SharedOutputBuffer.java

%pom_change_dep -r :org.osgi.core  org.eclipse.osgi:org.eclipse.osgi:3.11.0.v20160714-1000
%pom_change_dep -r :org.osgi.compendium org.eclipse.osgi:org.eclipse.osgi.services:3.5.100.v20160714-1000

%pom_change_dep -r com.sun.xml.bind:jaxb-core org.glassfish.jaxb:jaxb-core:2.2.11
%pom_change_dep -r com.sun.xml.bind:jaxb-impl org.glassfish.jaxb:jaxb-runtime:2.2.11
%pom_change_dep -r com.sun.xml.bind:jaxb-xjc org.glassfish.jaxb:jaxb-xjc:2.2.11

%pom_change_dep -r :log4j :log4j:1.2.17
%pom_change_dep -r :cglib-nodep :cglib:3.1
%pom_change_dep -r javax.servlet:servlet-api :javax.servlet-api:3.1.0

%pom_change_dep io.netty:netty-codec-http io.netty:netty-all rt/transports/http-netty/netty-{client,server}

# NOTE: Maybe org.glassfish.jaxb:txw2 should be added as runtime deps in cxf-codegen-plugin pom file
for mod in rt/ws/policy tools/javato/ws services/wsn/wsn-api services/xkms/xkms-common ; do
# NoClassDefFoundError: com/sun/xml/txw2/output/XmlSerializer
%pom_xpath_inject "pom:plugin[pom:artifactId = 'cxf-codegen-plugin']" "
<dependencies>
  <dependency>
     <groupId>org.glassfish.jaxb</groupId>
     <artifactId>txw2</artifactId>
     <version>2.2.11</version>
  </dependency>
</dependencies>" ${mod}
done

%pom_xpath_inject "pom:plugin[pom:artifactId = 'cxf-codegen-plugin']/pom:dependencies" "
<dependency>
  <groupId>org.glassfish.jaxb</groupId>
  <artifactId>txw2</artifactId>
  <version>2.2.11</version>
</dependency>" services/ws-discovery/ws-discovery-api

# Disable old swagger support
%pom_remove_dep -r com.wordnik:swagger-jaxrs_2.10 rt/rs/description
rm rt/rs/description/src/main/java/org/apache/cxf/jaxrs/swagger/SwaggerFeature.java

%pom_change_dep -r :geronimo-servlet_2.5_spec javax.servlet:javax.servlet-api:3.1.0 rt/transports/http-netty/netty-server

%pom_change_dep -r :ehcache :ehcache-core:2.6.11

%pom_change_dep -r org.bouncycastle:bcprov-ext-jdk15on :bcprov-jdk15on rt/rs/security/jose-parent/jose

# Use hazelcast:1.9.4
%pom_remove_dep -r com.hazelcast:hazelcast
rm services/sts/sts-core/src/main/java/org/apache/cxf/sts/cache/HazelCast*.java

# Create Jandex index file(s)
# Required by WildFly
%pom_add_plugin "org.jboss.jandex:jandex-maven-plugin:1.0.4" rt/ws/security "
<executions>
  <execution>
    <id>make-index</id>
    <goals>
      <goal>jandex</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin "org.apache.felix:maven-bundle-plugin:3.0.1" rt/ws/security '
<configuration>
  <instructions>
    <Bundle-DocURL>http://cxf.apache.org</Bundle-DocURL>
    <Bundle-SymbolicName>${cxf.osgi.symbolic.name}</Bundle-SymbolicName>
    <Fragment-Host>${cxf.fragment.host}</Fragment-Host>
    <Implementation-Vendor>The Apache Software Foundation</Implementation-Vendor>
    <Implementation-Vendor-Id>org.apache</Implementation-Vendor-Id>
    <Implementation-Version>${cxf.osgi.version.clean}</Implementation-Version>
    <Specification-Vendor>The Apache Software Foundation</Specification-Vendor>
    <Specification-Version>${cxf.osgi.version.clean}</Specification-Version>
    <Import-Package>
        ${cxf.osgi.import},
        *
    </Import-Package>
    <Include-Resource>
        {maven-resources},
        /META-INF/jandex.idx=${project.build.outputDirectory}/META-INF/jandex.idx
    </Include-Resource>
  </instructions>
</configuration>'

%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools']/pom:scope" maven-plugins/java2wadl-plugin
%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools']/pom:systemPath" maven-plugins/java2wadl-plugin

%mvn_package ":cxf-tools*" tools
%mvn_package ":cxf-rt*" rt
%mvn_package ":cxf-maven-plugins*" maven-plugins
%mvn_package ":cxf-services*" services

%build

# [WARNING] Ignoring metadata for artifact org.apache.ws.xmlschema:xmlschema-core:jar:SYSTEM as it has duplicate metadata
mkdir -p .m2/org/apache/ws/xmlschema/xmlschema-core/2.2.1/
ln -s "$(build-classpath ws-xmlschema)" .m2/org/apache/ws/xmlschema/xmlschema-core/2.2.1/xmlschema-core-2.2.1.jar

%mvn_build -f -j

# Create Jandex index file(s)
# Required by WildFly
java -cp $(build-classpath jandex) org.jboss.jandex.Main -j rt/security/target/cxf-rt-security-%{version}.jar
java -cp $(build-classpath jandex) org.jboss.jandex.Main -j rt/ws/security/target/cxf-rt-ws-security-%{version}.jar

%install
%mvn_install

install -pm 644 rt/security/target/cxf-rt-security-%{version}-jandex.jar %{buildroot}%{_javadir}/%{name}/cxf-rt-security-jandex.jar
install -pm 644 rt/ws/security/target/cxf-rt-ws-security-%{version}-jandex.jar %{buildroot}%{_javadir}/%{name}/cxf-rt-ws-security-jandex.jar

%files -f .mfiles
%doc README
%license LICENSE NOTICE

%files tools -f .mfiles-tools
%license LICENSE NOTICE

%files rt -f .mfiles-rt
%{_javadir}/%{name}/cxf-rt-security-jandex.jar
%{_javadir}/%{name}/cxf-rt-ws-security-jandex.jar
%license LICENSE NOTICE

%files services -f .mfiles-services
%license LICENSE NOTICE

%files maven-plugins -f .mfiles-maven-plugins
%license LICENSE NOTICE

# Not buildable with maven-javadoc-plugin 3
#files javadoc -f .mfiles-javadoc
#license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12372 |21mr|cxf-build-utils-3.2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          cxf-build-utils
Version:       3.2.0
Release:       7
Summary:       Apache CXF Build Utils
License:       ASL 2.0
URL:           http://cxf.apache.org/build-utils.html
Source0:       https://github.com/apache/cxf-build-utils/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires: mvn(jdom:jdom)
BuildRequires: mvn(junit:junit)
# BuildRequires: mvn(net.sourceforge.pmd:pmd-java)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.maven:maven-artifact)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Apache CXF Build Utils contains common utilities and configuration files
that are used by multiple versions of the CXF builds.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
# Was retired
%pom_remove_dep net.sourceforge.pmd:pmd-java buildtools
rm -r buildtools/src/main/java/org/apache/cxf/pmd

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12373 |21mr|cxf-xjc-utils-3.0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          cxf-xjc-utils
Version:       3.0.5
Release:       6
Summary:       Apache CXF XJC-Utils
Group:         Development/Java
License:       ASL 2.0
URL:           http://cxf.apache.org/xjc-utils.html
Source0:       https://github.com/apache/cxf-xjc-utils/archive/xjc-utils-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven:maven-compat)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.shared:maven-artifact-resolver)
BuildRequires: mvn(org.apache.ws.jaxme:jaxme2)
BuildRequires: mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-core)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-runtime)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-xjc)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
BuildRequires: mvn(wsdl4j:wsdl4j)
BuildRequires: mvn(xml-resolver:xml-resolver)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Apache CXF XJC-Utils provides a bunch of utilities for working
with JAXB to generate better or more usable code.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-xjc-utils-%{version}

%pom_remove_plugin org.apache.maven.plugins:maven-pmd-plugin
%pom_disable_module bug671

%pom_change_dep -r :jaxb-core org.glassfish.jaxb::2.2.11
%pom_change_dep -r :jaxb-impl org.glassfish.jaxb:jaxb-runtime:2.2.11
%pom_change_dep -r :jaxb-xjc org.glassfish.jaxb::2.2.11
%pom_change_dep -r :jaxme2 org.apache.ws.jaxme:

%pom_remove_plugin -r :maven-checkstyle-plugin

# ClassNotFoundException: org.apache.commons.codec.binary.Base64
%pom_add_dep commons-codec:commons-codec:1.10:test dv-test

# Not available test deps
# org.eclipse.equinox:app:jar:1.3.100-v20130327-1442
%pom_remove_dep org.eclipse.equinox:app javadoc
# com.cedarsoft.commons:io:jar:6.0.1:
%pom_remove_dep com.cedarsoft.commons:io javadoc
rm -r javadoc/src/test/java/*
# org.eclipse.jdt:core:3.3.0-v_771
%pom_remove_dep org.eclipse.jdt:core javadoc

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12374 |21mr|cyrus-imapd-2.4.20-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use saslauth group if
# adjust systemd unit from sources when changing this value
%define SASLGROUP 0

# preforking cyrus.conf as default
%define PREFORK 1

# enable idled (default no)
%define IDLED 0

# enable automatic mailbox creation on deliver (default no):
%define build_autocreate 1

# create on demand folder requested by sieve filter (default no):
%define build_autosieve 0

# remove quota files extension:
%define build_rmquota 0

# snmp support
%global with_snmp 1

# ldap/pts support
%global with_ldap 1

%global with_mysql 1

%global with_pgsql 1

%global with_sqlite 1

# virtual domains in LDAP support
# needed by Kolab2
%define build_virtualdomains_in_ldap 1

%if %{SASLGROUP}
%define		_saslgroup saslauth
%endif
%define		_cyrususer cyrus
%define		_cyrusgroup mail
%define		_vardata %{_var}/lib/imap
%define		_spooldata %{_var}/spool/imap
# (gb) stick to /usr/lib/cyrus-imapd as this is an existing practise
# from MDK 10.0 and below + /etc/init.d/cyrus-imapd would need to
# runtime-detect the libdir since this ought to be an arch-independent
# script.
%define		_cyrexecdir %{_prefix}/lib/cyrus-imapd
%define		_confdir master/conf
%if %{PREFORK}
%define		_cyrusconf %{_confdir}/prefork.conf
%else
%define		_cyrusconf %{_confdir}/normal.conf
%endif

Summary:	A high-performance mail store with IMAP and POP3 support
Name:		cyrus-imapd
Version:	2.4.20
Release:	5
License:	OSI Approved
Group:		System/Servers
Url:		http://cyrusimap.org/
Source0:	ftp://ftp.cyrusimap.org/cyrus-imapd/%{name}-%{version}.tar.gz
Source1:	ftp://ftp.cyrusimap.org/cyrus-imapd/%{name}-%{version}.tar.gz.sig
Source2:	cyrus-procmailrc
Source4:	cyrus-user-procmailrc.template
Source6:	cyrus-imapd.imap-2.1.x-conf
Source8:	cyrus-imapd.pamd
Source12:	cyrus-imapd.sysconfig
Source13:	http://clement.hermann.free.fr/scripts/Cyrus/imapcreate.pl
Source14:	cyrus-imapd.README.RPM
Source15:	cyrus-imapd.cvt_cyrusdb_all
Source19:	cyrus-imapd-procmail+cyrus.mc
Source20:	cyrus-imapd.cron-daily
Source21:	http://ftp.andrew.cmu.edu/pub/net/mibs/cmu/cmu.mib
#systemd support
Source22:	cyrus-imapd.service
Source23:	cyr_systemd_helper
# This patch fixes the perl install path for mdk9.0 and later
Patch1:		cyrus-imapd-mdk9.0perl-patch
# cyrus-master instead of master in syslog
Patch2:		cyrus-imapd-logident.patch
# rediffed P3 and P4 comes from http://blog.vx.sk/archives/13-Autocreate-and-autosieve-patches-for-Cyrus-IMAP-Server-24.html
# Autocreate INBOX patch (http://email.uoa.gr/projects/cyrus/autocreate/)
# OpenSUSE patch (upstream backport)
Patch3:		cyrus-imapd-2.4.19_autocreate-0.10-0.patch
# Create on demand folder requested by sieve filter (http://email.uoa.gr/projects/cyrus/autosievefolder/)
# Dropped - doesn't build anymore and no upstream updates for a long time
#Patch4:	http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.16/cyrus-imapd-2.3.16-autosieve-0.6.0.diff
#Patch4:		cyrus-imapd-2.4.13-autosieve-0.6.0.diff
# Remove QUOTA patch (http://email.uoa.gr/projects/cyrus/quota-patches/rmquota/)
Patch5:		http://email.uoa.gr/download/cyrus/cyrus-imapd-2.3.9/cyrus-imapd-2.3.9-rmquota-0.5-0.diff
# command line switch to disallow plaintext login
Patch6:		cyrus-imapd-2.4.13-plaintext.diff
# (oe) for kolab2: Patch to support virtdomains: ldap (parse domain from "email" field an LDAP user entry)
Patch8:		cyrus-imapd-kolab-ldap.diff
# (bluca) add ptloader to cyrus.conf 
Patch10:	cyrus-imapd-ptloader-conf.diff
# (bluca) fix LDAP_OPT_X_SASL_SECPROPS error in ptloader
Patch11:	cyrus-imapd-ptloader-secprops.diff
# OpenSUSE patch (Outlook 2013-compatible XLIST behaviour)
Patch12:	cyrus-imapd-2.4.18-D19-Outlook_2013_XLIST.patch
# Other patches from simon matter
Patch19:	cyrus-imapd-2.3.11-mkimap.patch
Patch21:	cyrus-imapd-2.3.16-sieve_port.patch
# fedora patches
Patch100:	http://www.oakton.edu/~jwade/cyrus/cyrus-imapd-2.1.3/cyrus-imapd-2.1.3-flock.patch
Patch101:	cyrus-imapd-2.3.1-authid_normalize.patch
# for c-i <= 2.4.12
Patch102:	cyrus-imapd-2.4.12-debugopt.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	groff
BuildRequires:	perl-Digest-SHA1
BuildRequires:	db-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	perl-devel
BuildRequires:	sasl-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(openssl)
%if %{with_snmp}
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(libelf)
Requires:	net-snmp-mibs
%endif
%if %{with_ldap}
BuildRequires:	openldap-devel
%endif
%if %{build_virtualdomains_in_ldap}
BuildRequires:	openldap-devel
%endif
%if %{with_mysql}
BuildRequires:	pkgconfig(mariadb)
%endif
%if %{with_pgsql}
BuildRequires:	pkgconfig(libpq)
%endif
%if %{with_sqlite}
BuildRequires:	pkgconfig(sqlite3)
%endif
# with previous versions of sasl, imap LOGIN would fail
Requires:	%{mklibname sasl 2} >= 2.1.15
# /usr/sbin/useradd
# /usr/sbin/groupadd
# /usr/sbin/userdel
# /usr/sbin/groupdel
Requires(pre,postun):	rpm-helper
Requires(post):	e2fsprogs
Requires(post):	openssl
Requires(post,preun,postun):	systemd-units
Provides:	imap
Provides:	imap-server

%description
The Cyrus IMAP Server is a scaleable enterprise mail system
designed for use from small to large enterprise environments using
standards-based technologies.

A full Cyrus IMAP implementation allows a seamless mail and bulletin
board environment to be set up across multiple servers. It differs from
other IMAP server implementations in that it is run on "sealed"
servers, where users are not normally permitted to log in. The mailbox
database is stored in parts of the filesystem that are private to the
Cyrus IMAP system. All user access to mail is through software using
the IMAP, POP3, or KPOP protocols. TLSv1 and SSL are supported for
security.

This is the main package, install also the %{name}-utils package (it
contains server administration tools and depends on the perl-Cyrus
package).

%files
%doc doc/* extradocs/*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/*.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0644,root,root) %config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/pop
%attr(0644,root,root) %config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/imap
%attr(0644,root,root) %config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/sieve
%attr(0644,root,root) %config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/lmtp
%attr(0755,root,root) %config(noreplace) %{_sysconfdir}/cron.daily/%{name}
%attr(0755,root,root) %dir %{_cyrexecdir}
%attr(0755,root,root) %{_cyrexecdir}/arbitron
%attr(0755,root,root) %{_cyrexecdir}/chk_cyrus
%attr(0755,root,root) %{_cyrexecdir}/ctl_cyrusdb
%attr(0755,root,root) %{_cyrexecdir}/ctl_deliver
%attr(0755,root,root) %{_cyrexecdir}/ctl_mboxlist
%attr(0755,root,root) %{_cyrexecdir}/cvt_cyrusdb
%attr(0755,root,root) %{_cyrexecdir}/cvt_cyrusdb_all
%attr(0755,root,root) %{_cyrexecdir}/cyr_dbtool
%attr(0755,root,root) %{_cyrexecdir}/cyr_df
%attr(0755,root,root) %{_cyrexecdir}/cyrdump
%attr(0755,root,root) %{_cyrexecdir}/cyr_expire
%attr(0755,root,root) %{_cyrexecdir}/cyr_sequence
%attr(0755,root,root) %{_cyrexecdir}/cyr_synclog
%attr(0755,root,root) %{_cyrexecdir}/cyr_systemd_helper
%attr(0755,root,root) %{_cyrexecdir}/cyr_userseen
%attr(0755,root,root) %{_cyrexecdir}/cyrus-master
%attr(0755,root,root) %{_cyrexecdir}/dohash
%attr(0755,root,root) %{_cyrexecdir}/fud
%attr(0755,root,root) %{_cyrexecdir}/imapd
%attr(0755,root,root) %{_cyrexecdir}/ipurge
%attr(0755,root,root) %{_cyrexecdir}/lmtpd
%attr(0755,root,root) %{_cyrexecdir}/masssievec
%attr(0755,root,root) %{_cyrexecdir}/mbexamine
%attr(0755,root,root) %{_cyrexecdir}/mbpath
%attr(0755,root,root) %{_cyrexecdir}/migrate-metadata
%attr(0755,root,root) %{_cyrexecdir}/mkimap
%attr(0755,root,root) %{_cyrexecdir}/mknewsgroups
%attr(0755,root,root) %{_cyrexecdir}/notifyd
%attr(0755,root,root) %{_cyrexecdir}/pop3d
%attr(0755,root,root) %{_cyrexecdir}/quota
%attr(0755,root,root) %{_cyrexecdir}/reconstruct
%attr(0755,root,root) %{_cyrexecdir}/rehash
%attr(0755,root,root) %{_cyrexecdir}/sievec
%attr(0755,root,root) %{_cyrexecdir}/sieved
%attr(0755,root,root) %{_cyrexecdir}/squatter
%attr(0755,root,root) %{_cyrexecdir}/timsieved
%attr(0755,root,root) %{_cyrexecdir}/tls_prune
%attr(0755,root,root) %{_cyrexecdir}/translatesieve
%attr(0755,root,root) %{_cyrexecdir}/undohash
%attr(0755,root,root) %{_cyrexecdir}/unexpunge
%attr(0755,root,root) %{_cyrexecdir}/upgradesieve
%if %{with_ldap}
%attr(0755,root,root) %{_cyrexecdir}/ptdump
%attr(0755,root,root) %{_cyrexecdir}/ptexpire
%attr(0755,root,root) %{_cyrexecdir}/ptloader
%endif
%if %{build_autocreate}
%attr(0755,root,root) %{_cyrexecdir}/compile_sieve
%endif
%attr(0755,root,root) %{_cyrexecdir}/smmapd
%if %{IDLED}
%attr(0755,root,root) %{_cyrexecdir}/idled
%endif
%attr(4754,%{_cyrususer},%{_cyrusgroup}) %{_cyrexecdir}/deliver
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %dir %{_vardata}
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/user
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/quota
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/proc
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/log
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/msg
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/socket
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/db
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/sieve
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/rpm
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/backup
%if %{with_ldap}
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_vardata}/ptclient
%endif
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %dir %{_spooldata}
%attr(0750,%{_cyrususer},%{_cyrusgroup}) %{_spooldata}/*
%if %{with_snmp}
%attr(0644,root,root) %{_datadir}/snmp/mibs/*
%attr(0644,%{_cyrususer},%{_cyrusgroup}) /var/lib/net-snmp/cyrusMaster.conf
%endif
%attr(0644,root,root) %{_mandir}/man5/*
%attr(0644,root,root) %{_mandir}/man8/arbitron.8*
%attr(0644,root,root) %{_mandir}/man8/chk_cyrus.8*
%attr(0644,root,root) %{_mandir}/man8/ctl_cyrusdb.8*
%attr(0644,root,root) %{_mandir}/man8/ctl_deliver.8*
%attr(0644,root,root) %{_mandir}/man8/ctl_mboxlist.8*
%attr(0644,root,root) %{_mandir}/man8/cvt_cyrusdb.8*
%attr(0644,root,root) %{_mandir}/man8/cyr_dbtool.8*
%attr(0644,root,root) %{_mandir}/man8/cyr_df.8*
%attr(0644,root,root) %{_mandir}/man8/cyr_expire.8*
%attr(0644,root,root) %{_mandir}/man8/cyr_synclog.8*
%attr(0644,root,root) %{_mandir}/man8/cyrus-master.8*
%attr(0644,root,root) %{_mandir}/man8/deliver.8*
%attr(0644,root,root) %{_mandir}/man8/fud.8*
%attr(0644,root,root) %{_mandir}/man8/idled.8*
%attr(0644,root,root) %{_mandir}/man8/imapd.8*
%attr(0644,root,root) %{_mandir}/man8/ipurge.8*
%attr(0644,root,root) %{_mandir}/man8/lmtpd.8*
%attr(0644,root,root) %{_mandir}/man8/mbexamine.8*
%attr(0644,root,root) %{_mandir}/man8/mbpath.8*
%attr(0644,root,root) %{_mandir}/man8/notifyd.8*
%attr(0644,root,root) %{_mandir}/man8/pop3d.8*
%attr(0644,root,root) %{_mandir}/man8/quota.8*
%attr(0644,root,root) %{_mandir}/man8/reconstruct.8*
%attr(0644,root,root) %{_mandir}/man8/rmnews.8*
%attr(0644,root,root) %{_mandir}/man8/smmapd.8*
%attr(0644,root,root) %{_mandir}/man8/squatter.8*
%attr(0644,root,root) %{_mandir}/man8/sync_client.8*
%attr(0644,root,root) %{_mandir}/man8/syncnews.8*
%attr(0644,root,root) %{_mandir}/man8/sync_reset.8*
%attr(0644,root,root) %{_mandir}/man8/sync_server.8*
%attr(0644,root,root) %{_mandir}/man8/timsieved.8*
%attr(0644,root,root) %{_mandir}/man8/tls_prune.8*
%attr(0644,root,root) %{_mandir}/man8/unexpunge.8*
%doc COPYRIGHT README README.RPM
%if %{build_autocreate}
%doc README.autocreate
%endif
%{_unitdir}/cyrus-imapd.service

%pre
# Create 'cyrus' user on target host
%if %{SASLGROUP}
/usr/sbin/groupadd -r %{_saslgroup} 2> /dev/null || :
/usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_vardata} -g %{_cyrusgroup} \
				-G %{_saslgroup} -s /bin/bash -r %{_cyrususer} 2> /dev/null || :
%else
/usr/sbin/useradd -c "Cyrus IMAP Server" -d %{_vardata} -g %{_cyrusgroup} \
	-s /bin/bash -r %{_cyrususer} 2> /dev/null || :
%endif

%post
if [ $1 = 1 ] ; then
# make sure we own the stuff, otherwise /var/log/mail/* will fill
# the whole disk with error messages...
chown -R %{_cyrususer}:%{_cyrusgroup} %{_vardata} %{_spooldata}
fi

# Force synchronous updates only on ext2 filesystems
# Note: This will slow down user creation for 10.000+ users!
for i in %{_vardata}/{user,quota} %{_spooldata}; do
    if [ `find $i -maxdepth 0 -printf %F` = "ext2" ]; then
	chattr -R +S $i 2>/dev/null
    fi
done

# Add sieve service if necessary
if ! grep -q ^sieve %{_sysconfdir}/services; then
    echo -e 'sieve\t\t2000/tcp\t\t\t# Sieve mail filter daemon' >> %{_sysconfdir}/services
fi

# Add lmtp service if necessary
if ! grep -q ^lmtp %{_sysconfdir}/services; then
    echo -e 'lmtp\t\t2003/tcp\t\t\t# Local mail delivery protocol (rfc2033)' >> %{_sysconfdir}/services
fi

# upgrade from previous versions with compiled in database backends
rm -f %{_vardata}/rpm/db.cfg.cache 2> /dev/null

# cache the installed version for next upgrade
echo %{version} > %{_vardata}/rpm/version

%systemd_post cyrus-imapd.service

%preun
%systemd_preun cyrus-imapd.service

%postun
%systemd_postun_with_restart cyrus-imapd.service
if [ $1 = 0 ]; then
    # Package removal, not upgrade
    %_postun_userdel %{_cyrususer}
%if %{SASLGROUP}
    if [ "`grep ^%{_saslgroup}: %{_sysconfdir}/group | cut -d: -f4-`" = "" ]; then
        %_postun_groupdel %{_saslgroup}
    fi
%endif
    rm -f %{_vardata}/socket/lmtp 2> /dev/null
    rm -f %{_vardata}/rpm/version 2> /dev/null
fi

#----------------------------------------------------------------------------

%package murder
Summary:	Cyrus IMAP server murder aggregator system files
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description murder
The %{name}-murder package contains the Cyrus murder aggregator system,
i.e. IMAP, POP3 and LMTP proxies, and the mupdate mailbox master daemon.
It allows for cluster setups where there are many backend Cyrus spools
and frontend proxy servers.

%files murder
%doc doc/text/install-murder
%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/mupdate
%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/csync
%attr(0755,root,root) %{_cyrexecdir}/lmtpproxyd
%attr(0755,root,root) %{_cyrexecdir}/mupdate
%attr(0755,root,root) %{_cyrexecdir}/pop3proxyd
%attr(0755,root,root) %{_cyrexecdir}/proxyd

#----------------------------------------------------------------------------

%package nntp
Summary:	Cyrus IMAP server murder nntp support files
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Conflicts:	leafnode

%description nntp
Cyrus has the ability to export Usenet via IMAP and/or export shared
IMAP mailboxes via NNTP. This is made possible by a new NNTP daemon
which is included in this package.

%files nntp
%doc doc/text/install-netnews
%config(noreplace) %verify(not size,not md5) %{_sysconfdir}/pam.d/nntp
%attr(0755,root,root) %{_cyrexecdir}/fetchnews
%attr(0755,root,root) %{_cyrexecdir}/nntpd
%attr(0644,root,root) %{_mandir}/man8/nntpd.8*
%attr(0644,root,root) %{_mandir}/man8/fetchnews.8*

#----------------------------------------------------------------------------

%package devel
Summary:	Cyrus IMAPd development files
Group:		Development/Other

%description devel
This package contains header files and libraries necessary for 
developing applications which use the imclient library.

The main package is %{name}.

%files devel
%{_includedir}/cyrus
%{_libdir}/lib*.a
%attr(0644,root,root) %{_mandir}/man3/imclient.3*

#----------------------------------------------------------------------------

%package -n perl-Cyrus
Summary:	Cyrus IMAPd utility Perl modules
Group:		Development/Perl
# with previous versions of sasl, imap LOGIN would fail
Requires:	%{mklibname sasl 2} >= 2.1.15

%description -n perl-Cyrus
This package contains Perl modules necessary to use the Cyrus server
administrative utilities.

The main package is %{name}.

%files -n perl-Cyrus
%doc perl/imap/README perl/imap/Changes perl/imap/examples
%{perl_vendorarch}/auto/Cyrus
%{perl_vendorarch}/Cyrus
%attr(0644,root,root) %{_mandir}/man3/Cyrus*

#----------------------------------------------------------------------------

%package utils
Summary:	Cyrus IMAPd server admin utilities
Group:		System/Servers
Requires:	perl-Cyrus = %{EVRD}

%description utils
This package contains Cyrus IMAPd server administrative tools. It 
can be installed on systems other than the one running the server.

This package depends on the perl-Cyrus package.
The main package is %{name}.

%files utils
%attr(0755,root,root) %{_cyrexecdir}/cyradm
%attr(0755,root,root) %{_cyrexecdir}/imtest
%attr(0755,root,root) %{_cyrexecdir}/imapcreate
%attr(0755,root,root) %{_bindir}/*
%attr(0644,root,root) %{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%patch1 -p0 -b .mdk9.0perl.orig
%patch2
%if %{build_autocreate}
%patch3 -p1 -b .autocreate.orig
%endif
%if %{build_autosieve}
%patch4 -p1 -b .autosieve.orig
%endif
%if %{build_rmquota}
%patch5 -p1 -b .rmquota.orig <- this patch is broken and won't apply
%endif

%patch6 -p1 -b .plaintext.orig

# (oe) for kolab2: Patch to support virtdomains: ldap (parse domain from "email" field an LDAP user entry)
%if %{build_virtualdomains_in_ldap}
%patch8 -p1 -b .kolab-ldap.orig
%endif
%if %{with_ldap}
%patch10 -p1 -b .ptloader.orig
%endif
%patch11 -p1 -b .secprops.orig

%patch12 -p1 -b .outlook2013

%patch19 -p1 -b .mkimap.orig
%patch21 -p1 -b .sieve_port.orig

# fedora patches
%patch100 -p1 -b .flock
%patch101 -p1 -b .authid_normalize
%patch102 -p1 -b .debugopt

find . -name Makefile* |xargs sed -i -e 's,configure.in,configure.ac,g'

## Extra documentation
mkdir -p extradocs
for i in %{SOURCE2} %{SOURCE4} %{SOURCE19} ; do
  cp $i extradocs
done 

## regenerate html man pages
pushd man
    for mp in *[1-8] ; do groff -m man -T html $mp > ../doc/man/$mp.html ; done
popd

# fix build under mdx8.2
#perl -ni -e "print unless /^AC_PREREQ/" configure.in

install -m 0644 %{SOURCE8} cyrus-imapd.pamd

# cleanup
for i in `find . -type d -name CVS`  `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

# Bugfix build for 2019.x
sed -i 's!gettid!_nm_gettid!g' lib/cyrusdb_berkeley.c

%build
%serverbuild

# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS |sed -e 's|-fPIE||g'`

CPPFLAGS="-I%{_includedir}/et $CPPFLAGS"
export CPPFLAGS
CFLAGS="$RPM_OPT_FLAGS -fPIC"
export CFLAGS
LDFLAGS="-L%{_libdir}"
export LDFLAGS

#with the existing autom4te.cache autoheader would fail with the message
#Can't locate object method "path" via package "Request" at /usr/share/autoconf/Autom4te/C4che.pm line 69, <GEN1> line 111.
#
rm -rf autom4te.cache configure
export WANT_AUTOCONF_2_5=1
libtoolize --copy --force; aclocal -I cmulocal; autoheader; autoconf

# this removes rpath
export andrew_cv_runpath_switch=none

%configure \
%if %{IDLED}
	--with-idle=idled \
%endif
%if !%{with_snmp}
	--without-snmp \
%endif
%if %{with_ldap}
	--with-ldap=/usr \
%endif
%if %{with_mysql}
	--with-mysql \
	--with-mysql-incdir=/usr/include/mysql \
%endif
%if %{with_pgsql}
	--with-pgsql \
%endif
%if %{with_sqlite}
	--with-sqlite \
%endif
	--with-extraident="Mandriva-RPM-%{version}-%{release}" \
	--with-syslogfacility=MAIL \
	--with-bdb=db \
	--with-bdb-libdir=%{_libdir} \
	--enable-murder \
	--enable-netscapehack \
	--enable-listext \
	--enable-nntp \
	--with-perl=%{__perl} \
	--with-cyrus-prefix=%{_cyrexecdir} \
	--with-service-path=%{_cyrexecdir}
#    --with-krb=%{_prefix}/kerberos \

make clean
# no parallel make - 2.3.10
make

# Modify docs master --> cyrus-master
pushd man
	perl -pi -e "s#master\(8\)#cyrus-master(8)#" `ls *5 *8`
	cd ../doc
	perl -pi -e "s#master#cyrus-master#g;" man.html
	cd man
	perl -pi -e "s#master\(8\)#cyrus-master(8)#;" `ls *html`
popd

# Modify path in perl scripts
pushd perl/imap/examples
	perl -pi -e "s#/usr/local/bin/perl#%{__perl}#" `find . -type f -name "*.pl"`
popd

# Cleanup of doc dir
find doc perl -name CVS -type d | xargs -r rm -fr
find doc -name "*~" -type f | xargs -r rm -f
find doc -name "*.*.orig" -type f | xargs -r rm -f

rm -f doc/Makefile.dist
rm -f doc/text/htmlstrip.c

# modify lmtp socket path in .conf files
perl -pi -e "s#/var/imap#%{_vardata}#" %{_confdir}/*.conf

%install
%makeinstall_std
%makeinstall_std -C man

install -m 755 imtest/imtest	%{buildroot}%{_cyrexecdir}/
install -m 755 perl/imap/cyradm	%{buildroot}%{_cyrexecdir}/

# Install tools
for tool in dohash masssievec mkimap mknewsgroups rehash translatesieve undohash  upgradesieve ; do
	test -f tools/${tool} && install -m 755 tools/${tool} %{buildroot}%{_cyrexecdir}/
done
install -m 755 %{SOURCE13} %{buildroot}%{_cyrexecdir}/imapcreate

# Create directories
install -d \
%if %{with_snmp}
	%{buildroot}%{_datadir}/snmp/mibs \
%endif
%if %{with_ldap}
	%{buildroot}%{_vardata}/ptclient/ \
%endif
	%{buildroot}%{_sysconfdir}/{pam.d,sysconfig,cron.daily} \
	%{buildroot}%{_unitdir} \
	%{buildroot}%{_libdir}/sasl \
	%{buildroot}%{_bindir} \
	%{buildroot}%{_spooldata}/stage. \
	%{buildroot}%{_vardata}/{user,quota,proc,log,msg,socket,db,sieve,rpm,backup}

# Install additional files
install -m 755 %{SOURCE15} %{buildroot}%{_cyrexecdir}/cvt_cyrusdb_all

# Install config files
install -m 644 %{_cyrusconf} %{buildroot}%{_sysconfdir}/cyrus.conf
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/imapd.conf

install -m 644 cyrus-imapd.pamd %{buildroot}%{_sysconfdir}/pam.d/pop
install -m 644 cyrus-imapd.pamd %{buildroot}%{_sysconfdir}/pam.d/imap
install -m 644 cyrus-imapd.pamd %{buildroot}%{_sysconfdir}/pam.d/sieve
install -m 644 cyrus-imapd.pamd %{buildroot}%{_sysconfdir}/pam.d/mupdate
install -m 644 cyrus-imapd.pamd %{buildroot}%{_sysconfdir}/pam.d/lmtp
install -m 644 cyrus-imapd.pamd %{buildroot}%{_sysconfdir}/pam.d/nntp
install -m 644 cyrus-imapd.pamd %{buildroot}%{_sysconfdir}/pam.d/csync

install -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m 755 %{SOURCE20} %{buildroot}%{_sysconfdir}/cron.daily/%{name}
install -m 644 %{SOURCE22} %{buildroot}/lib/systemd/system/cyrus-imapd.service
install -m 755 %{SOURCE23} %{buildroot}%{_cyrexecdir}/cyr_systemd_helper

%if %{with_snmp}
# Install snmp mibs
install -m 644 master/CYRUS-MASTER.mib %{buildroot}%{_datadir}/snmp/mibs/CYRUS-MASTER-MIB.txt
install -m 644 %{SOURCE21} %{buildroot}%{_datadir}/snmp/mibs/CMU-MIB.txt
%endif


# Install README.RPM
install -m 644 %{SOURCE14} README.RPM
cat << EOF >> README.RPM

RPM BUILD TIME CONFIGURATION OPTIONS

This RPM package has been compiled with the following options:

use saslauth group
SASLGROUP: %{SASLGROUP}

use preforking cyrus.conf
PREFORK: %{PREFORK}

enable IDLED support
IDLED: %{IDLED}

enable full directory hash
FULLDIRHASH: %{FULLDIRHASH}

EOF

# Install templates
install -m 755 -d doc/conf
install -m 644 %{_confdir}/*.conf doc/conf/

# Rename 'master' binary and manpage to avoid crash with postfix
mv -f %{buildroot}%{_cyrexecdir}/master %{buildroot}%{_cyrexecdir}/cyrus-master
mv -f %{buildroot}%{_mandir}/man8/master.8 %{buildroot}%{_mandir}/man8/cyrus-master.8
cp -af doc/man/master.8.html doc/man/cyrus-master.8.html

# Create symlinks
ln -sf ../lib/cyrus-imapd/cyradm %{buildroot}%{_bindir}/
ln -sf ../lib/cyrus-imapd/imtest %{buildroot}%{_bindir}/
ln -sf ../lib/cyrus-imapd/imapcreate %{buildroot}%{_bindir}/

# required if upgrading from 2.2.x -> 2.3.6+
install -m 755 tools/migrate-metadata %{buildroot}%{_cyrexecdir}/migrate-metadata

# provide the cyrusMaster.conf file, discovered by doing:
# /usr/lib/cyrus-imapd/cyrus-master -p /var/run/cyrus-master.pid -D
%if %{with_snmp}
	install -d %{buildroot}/var/lib/net-snmp
	echo "# placeholder" > %{buildroot}/var/lib/net-snmp/cyrusMaster.conf
%endif

# cleanup
find %{buildroot}%{perl_vendorarch} -name "*.orig" | xargs rm -f

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12375 |21mr|cyrus-sasl-2.1.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname sasl %{major}
%define sasl2_db_filename /var/lib/sasl2/sasl.db

%define KRB5 1
%define SQL 0
%define SRP 0
%define LDAP 0
%define SRPSTR enabled
%define SQLSTR enabled
%define LDAPSTR enabled

%{?_with_krb5: %{expand: %%global KRB5 1}}
%{?_without_krb5: %{expand: %%global KRB5 0}}
%{?_with_srp: %{expand: %%global SRP 1}}
%{?_without_srp: %{expand: %%global SRP 0}}
%{?_with_sql: %{expand: %%global SQL 1}}
%{?_without_sql: %{expand: %%global SQL 0}}
%{?_with_ldap: %{expand: %%global LDAP 1}}
%{?_without_ldap: %{expand: %%global LDAP 0}}

%{?_with_srp: %{expand: %%global SRPSTR enabled}}
%{?_without_srp: %{expand: %%global SRPSTR disabled}}
%{?_with_sql: %{expand: %%global SQLSTR enabled}}
%{?_without_sql: %{expand: %%global SQLSTR disabled}}
%{?_with_ldap: %{expand: %%global LDAPSTR enabled}}
%{?_without_ldap: %{expand: %%global LDAPSTR disabled}}

# bootstrapping overrides the above LDAP defines
%{?bootstrap: %{expand: %%global LDAP 0}}
%{?bootstrap: %{expand: %%global LDAPSTR disabled}}

Summary:	The Simple Authentication and Security Layer
Name:		cyrus-sasl
Version:	2.1.28
Release:	1
License:	BSD-style
Group:		System/Libraries
URL:		http://cyrusimap.org/
Source0:	https://github.com/cyrusimap/cyrus-sasl/releases/download/cyrus-sasl-%{version}/cyrus-sasl-%{version}.tar.gz
Source2:	saslauthd.service
Source3:	saslauthd.sysconfig
Source4:	service.conf.example
Source7:	sasl-mechlist.c
Source8:	sasl-checkpass.c
# From upstream git, required for reconfigure after applying patches to configure.ac
# https://raw.githubusercontent.com/cyrusimap/cyrus-sasl/master/autogen.sh
Source11:	autogen.sh

# Debian patches
# Upstream bumped major so version from 2 to 3 in v2.1.26,
# but backward compatibility is 100% (https://abi-laboratory.pro/index.php?view=timeline&l=cyrus-sasl),
# so, to prevent rebuilding many other packages, lets decrease so version as in Debian
Patch10:	0005-Fixes-in-library-mutexes.patch
Patch11:	0008-Don-t-overwrite-PIC-objects-with-non-PIC-variant.patch
Patch12:	0010-Update-required-libraries-when-ld-as-needed-is-used.patch
Patch13:	0013-Don-t-use-la-files-for-opening-plugins.patch
Patch15:	0022-Fix-keytab-option-for-MIT-Kerberos.patch
Patch16:	0025-Revert-upstream-soname-bump.patch
Patch17:	0027-properly-create-libsasl2.pc.patch
Patch18:	0032-Add-with_pgsql-include-postgresql-to-include-path.patch

# Other patches
Patch30:	OpenBSD-64bit-time_t-year2038.patch

Requires:	%{libname} = %{EVRD}
BuildRequires:	autoconf
BuildRequires:	db-devel
BuildRequires:	pam-devel
BuildRequires:	openssl-devel
BuildRequires:	autoconf automake libtool
BuildRequires:  groff
# 1.4.x is thread safe, which means we can disable sasl mutexes (see ./configure
# further below)
%if %{KRB5}
BuildRequires:	krb5-devel >= 1.4.1
%endif
%if %{SQL}
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRequires:	sqlite3-devel
%endif
%if %{LDAP}
BuildRequires:	openldap-devel
%endif

%description
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.
To actually use SASL you must install at least one of the %{libname}-plug-XXXX
authentication plugin, such as %{libname}-plug-plain.
The SQL auxprop plugin can be rebuild with different database backends:
	--with srp	SRP support	(%{SRPSTR})
	--with sql	SQL auxprop support	(%{SQLSTR})

%package -n	%{libname}
Summary:	Libraries for SASL a the Simple Authentication and Security Layer
Group:		System/Libraries

%description -n	%{libname}
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.

%package -n	%{libname}-devel
Summary:	Libraries for SASL a the Simple Authentication and Security Layer
Group:		Development/C
%if "%{_lib}" != "lib"
Provides:	libsasl-devel = %{version}
Provides:	libsasl2-devel = %{version}
%endif
Provides:	%{mklibname -d sasl} = %{version}
Provides:	sasl-devel = %{EVRD}
Provides:	cyrus-sasl-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	pam-devel

%description -n	%{libname}-devel
SASL is the Simple Authentication and Security Layer,
a method for adding authentication support to connection-based protocols.
To use SASL, a protocol includes a command for identifying and authenticating
a user to a server and for optionally negotiating protection of subsequent
protocol interactions. If its use is negotiated, a security layer is inserted
between the protocol and the connection.

%package -n	%{libname}-plug-anonymous
Summary:	SASL ANONYMOUS mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-anonymous

%description -n	%{libname}-plug-anonymous
This plugin implements the SASL ANONYMOUS mechanism,
used for anonymous authentication.

%package -n	%{libname}-plug-crammd5
Summary:	SASL CRAM-MD5 mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-crammd5

%description -n	%{libname}-plug-crammd5
This plugin implements the SASL CRAM-MD5 mechanism.
CRAM-MD5 is the mandatory-to-implement authentication mechanism for a
number of protocols; it uses MD5 with a challenge/response system to
authenticate the user.

%package -n	%{libname}-plug-digestmd5
Summary:	SASL DIGEST-MD5 mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-digestmd5

%description -n	%{libname}-plug-digestmd5
This plugin implements the latest draft of the SASL DIGEST-MD5
mechanism.  Although not yet finalized, this is likely to become the
new mandatory-to-implement authentication system in all new protocols.
It's based on the digest md5 authentication system designed for HTTP.

%package -n	%{libname}-plug-plain
Summary:	SASL PLAIN mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-plain

%description -n	%{libname}-plug-plain
This plugin implements the SASL PLAIN mechanism.  Although insecure,
PLAIN is useful for transitioning to new security mechanisms, as this
is the only mechanism which gives the server a copy of the user's
password.

%package -n	%{libname}-plug-scram
Summary:	SASL SCRAM-SHA-1 mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{version}
Provides:	sasl-plug-scram

%description -n	%{libname}-plug-scram
This plugin implements the SASL SCRAM-SHA-1 SASL plugin mechanism.

%package -n	%{libname}-plug-login
Summary:	SASL LOGIN mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-login

%description -n	%{libname}-plug-login
This plugin implements the SASL LOGIN mechanism.
THIS PLUGIN IS DEPRECATED, is maintained only for compatibility reasons
and will be dropped soon.
Please use the plain plugin instead.

%if %{KRB5}
%package -n	%{libname}-plug-gssapi
Summary:	SASL GSSAPI mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	krb5-libs
Provides:	sasl-plug-gssapi

%description -n	%{libname}-plug-gssapi
This plugin implements the SASL GSSAPI (kerberos 5)mechanism.
%endif

%package -n	%{libname}-plug-otp
Summary:	SASL OTP mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-otp

%description -n	%{libname}-plug-otp
This plugin implements the SASL OTP mechanism.

%package -n	%{libname}-plug-sasldb
Summary:	SASL sasldb auxprop plugin
Group:		System/Libraries
Requires(post):	/bin/systemd-sysusers
# That requirement has to be here (in "Requires") also
# (http://archives.mandrivalinux.com/cooker/2005-06/msg00109.php)
Requires:	%{libname} = %{EVRD}, %{name} = %{EVRD}
Provides:	sasl-plug-sasldb

%description -n	%{libname}-plug-sasldb
This package provides the SASL sasldb auxprop plugin, which stores secrets
in a Berkeley database file.

%if %{SRP}
%package -n	%{libname}-plug-srp
Summary:	SASL srp mechanism plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-srp

%description -n	%{libname}-plug-srp
This plugin implements the srp  mechanism.
%endif

%package -n	%{libname}-plug-ntlm
Summary:	SASL ntlm authentication plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-ntlm

%description -n	%{libname}-plug-ntlm
This plugin implements the (unsupported) ntlm authentication.

%if %{SQL}
%package -n	%{libname}-plug-sql
Summary:	SQL auxprop support for Cyrus SASL
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-sql
Obsoletes:	%{libname}-plug-mysql < 2.1.27
Obsoletes:	%{libname}-plug-pgsql < 2.1.27
Obsoletes:	%{libname}-plug-sqlite3 < 2.1.27
Provides:	%{libname}-plug-mysql = %{EVRD}
Provides:	%{libname}-plug-pgsql = %{EVRD}
Provides:	%{libname}-plug-sqlite3 = %{EVRD}

%description -n	%{libname}-plug-sql
This plugins implements support of using a RDBMS
for storing shared secrets. Supports:
- Sqlite3
- MySQL
- PostgreSQL
%endif

%if %{LDAP}
%package -n	%{libname}-plug-ldapdb
Summary:	SASL ldapdb auxprop plugin
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	sasl-plug-ldapdb

%description -n	%{libname}-plug-ldapdb
This plugin implements the LDAP auxprop authentication method.
%endif

%prep
%autosetup -p1

install -m 0644 %{SOURCE4} .
cp %{SOURCE7} sasl-mechlist.c
cp %{SOURCE8} sasl-checkpass.c
cp %{SOURCE11} ./

rm -f config/config.guess config/config.sub
rm -f config/ltconfig config/ltmain.sh config/libtool.m4 configure
rm -fr autom4te.cache
libtoolize -c -f -i
aclocal -I config
autoheader
autoconf
automake -a -c

%build
%setup_compile_flags

# Note: RPATH=/usr/lib is set in m4/cyrus.m4,
# but RPM spechelper should remove all RPATHs, so leave it as it is.
%serverbuild
%configure 	\
    --disable-static \
    --enable-shared \
    --with-plugindir=%{_libdir}/sasl2 \
    --with-configdir=%{_sysconfdir}/sasl2:%{_libdir}/sasl2 \
    --disable-krb4 \
    --enable-login \
%if %{SRP}
    --enable-srp --enable-srp-setpass \
%else
    --without-srp --without-srp-srp-setpass \
%endif
    --enable-ntlm \
    --enable-db4 \
    --enable-gssapi \
    --disable-gss_mutexes \
%if %{SQL}
    --enable-sql \
    --with-mysql=%{_prefix} \
    --with-pgsql=%{_prefix} \
    --with-sqlite3=%{_prefix} \
%else
    --disable-sql \
%endif
%if %{LDAP}
    --with-ldap=%{_prefix} --enable-ldapdb \
%endif
    --with-dbpath=%{sasl2_db_filename} \
    --with-saslauthd=/run/saslauthd \
    --with-authdaemond=/run/authdaemon.courier-imap/socket \
    --with-devrandom=/dev/urandom

%make
%make -C saslauthd testsaslauthd
%make -C sample

install saslauthd/LDAP_SASLAUTHD README.ldap

# Build a small program to list the available mechanisms, because I need it.
pushd lib
    ../libtool --tag=CC --mode=link %{__cc} -o sasl2-shared-mechlist \
	-I../include $CFLAGS ../sasl-mechlist.c $LDFLAGS ./libsasl2.la
    ../libtool --tag=CC --mode=link %{__cc} -o sasl2-shared-checkpass \
	-I../include $CFLAGS -DSASL2 ../sasl-checkpass.c $LDFLAGS ./libsasl2.la
popd

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}/var/lib/sasl2 %{buildroot}/run/saslauthd
mkdir -p %{buildroot}%{_sysconfdir}/sasl2

%makeinstall_std

install -m644 %{SOURCE2} -D %{buildroot}%{_unitdir}/saslauthd.service
install -m644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/sysconfig/saslauthd

# to be removed later
# we don't need these
rm -f %{buildroot}%{_libdir}/sasl2/*.*a

# dbconverter-2 isn't installed by make install

cd utils
/bin/sh ../libtool --mode=install /usr/bin/install -c dbconverter-2 \
  %{buildroot}/%{_sbindir}/dbconverter-2

cd ..
cp saslauthd/testsaslauthd %{buildroot}%{_sbindir}
cd sample
/bin/sh ../libtool --mode=install /usr/bin/install -c client \
  %{buildroot}/%{_sbindir}/sasl-sample-client
/bin/sh ../libtool --mode=install /usr/bin/install -c server \
  %{buildroot}/%{_sbindir}/sasl-sample-server
cd ..

mkdir -p %{buildroot}%{_sysusersdir}
cat > %{buildroot}%{_sysusersdir}/%{name}.conf << 'EOF'
g sasl - -
EOF

# quick README about the sasl.db file permissions
cat > README.Mandriva.sasldb <<EOF
Starting with %{libname}-plug-sasldb-2.1.22-6mdk, Mandriva by default
creates a system group called "sasl" and installs an empty
%{sasl2_db_filename} file with the following permissions:
mode 0640, ownership root:sasl.

If the %{sasl2_db_filename} file already exists, it is not changed
in any way.

It is recommended that administrators keep these permissions and add
application users to the "sasl" group if access to this database is needed.

For example, to permit the Postfix SMTP to authenticate users via the sasldb
auxprop plugin, add the "postfix" user to the "sasl" group and read the
"SMTP Authentication" section of the README.MDK documentation file for
details regarding Postfix's chroot setup.

For other applications in general, just add their user to the "sasl" group.

Have fun,
Mandriva Team.

EOF

# This is just to "close" vim's syntax misinterpretation.. ;p

# Provide an easy way to query the list of available mechanisms.
./libtool --tag=CC --mode=install install -m0755 lib/sasl2-shared-mechlist %{buildroot}%{_sbindir}/
./libtool --tag=CC --mode=install install -m0755 lib/sasl2-shared-checkpass %{buildroot}%{_sbindir}/

%check
# Check that the SQL plugin has been built with support of all needed RDBMS
%if %{SQL}
readelf -a %{buildroot}%{_libdir}/sasl2/libsql.so | grep NEEDED | tr -d '[]' | awk '{print $NF}' > tmpfile
for i in libmysqlclient.so libpq.so libsqlite3.so
do
    grep -q "^$i" tmpfile
done
%endif

%post -n %{libname}-plug-sasldb
%sysusers_create %{name}.conf
if [ ! -f %{sasl2_db_filename} ]; then
	# the file was never created before nor converted from sasl1
	touch %{sasl2_db_filename}
	chmod 0640 %{sasl2_db_filename}
	chown root:sasl %{sasl2_db_filename}
fi

%post
%systemd_post saslauthd.service

%preun
%systemd_preun saslauthd.service

%files
%license COPYING
%doc AUTHORS README* ChangeLog
%doc service.conf.example
%dir /var/lib/sasl2
%{_unitdir}/saslauthd.service
%dir %{_sysconfdir}/sasl2
%attr (644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/saslauthd
%{_sbindir}/dbconverter-2
%{_sbindir}/pluginviewer
%{_sbindir}/sasl-sample-client
%{_sbindir}/sasl-sample-server
%{_sbindir}/saslauthd
%{_sbindir}/sasldblistusers2
%{_sbindir}/saslpasswd2
%{_sbindir}/testsaslauthd
%{_mandir}/man8/*

%files -n %{libname}
%license COPYING
%dir %{_libdir}/sasl2
%{_libdir}/libsasl*.so.%{major}*

%files -n %{libname}-plug-anonymous
%license COPYING
%{_libdir}/sasl2/libanonymous.so*

%files -n %{libname}-plug-otp
%license COPYING
%{_libdir}/sasl2/libotp.so*

%files -n %{libname}-plug-scram
%license COPYING
%{_libdir}/sasl2/libscram.so*

%files -n %{libname}-plug-crammd5
%license COPYING
%{_libdir}/sasl2/libcrammd5.so*

%files -n %{libname}-plug-sasldb
%license COPYING
%doc README.Mandriva.sasldb
%{_libdir}/sasl2/libsasldb.so*
%{_sysusersdir}/%{name}.conf

%if %{KRB5}
%files -n %{libname}-plug-gssapi
%license COPYING
%{_libdir}/sasl2/libgs2.so*
%{_libdir}/sasl2/libgssapiv2.so*
%endif

%files -n %{libname}-plug-digestmd5
%license COPYING
%{_libdir}/sasl2/libdigestmd5.so*

%files -n %{libname}-plug-plain
%license COPYING
%{_libdir}/sasl2/libplain.so*

%files -n %{libname}-plug-login
%license COPYING
%{_libdir}/sasl2/liblogin.so*

%if %{SRP}
%files -n %{libname}-plug-srp
%license COPYING
%{_libdir}/sasl2/libsrp.so*
%endif

%files -n %{libname}-plug-ntlm
%license COPYING
%{_libdir}/sasl2/libntlm.so*

%if %{SQL}
%files -n %{libname}-plug-sql
%license COPYING
%{_libdir}/sasl2/libsql.so*
%endif

%if %{LDAP}
%files -n %{libname}-plug-ldapdb
%license COPYING
%{_libdir}/sasl2/libldapdb.so*
%endif

%files -n %{libname}-devel
%license COPYING
%doc AUTHORS README* ChangeLog
%{_sbindir}/sasl2-shared-mechlist
%{_sbindir}/sasl2-shared-checkpass
%{_includedir}/sasl
%{_libdir}/*.*so
%{_libdir}/pkgconfig/libsasl2.pc
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12376 |21mr|dagger-1.2.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          dagger
Version:       1.2.2
Release:       11
Summary:       A fast dependency injector for Android and Java
# CC0: core/src/main/java/dagger/internal/ArrayQueue.java
License:       ASL 2.0 and CC0
URL:           http://square.github.io/dagger/
Source0:       https://github.com/square/dagger/archive/%{name}-parent-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.squareup:javawriter)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

%if 0
# Test deps
BuildRequires: mvn(junit:junit)
# Unavailable test deps
BuildRequires: mvn(com.google.testing.compile:compile-testing:0.4)
BuildRequires: mvn(org.easytesting:fest-assert:1.4)
BuildRequires: mvn(org.truth0:truth:0.13)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A fast dependency injector for Android and Java.

For more information please see the website.

%package compiler
Summary:       Dagger Compiler

%description compiler
Tools to generate Dagger injection and
module adapters from annotated code and
validate them.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-parent-%{version}

rm -r website/static/*.js

%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-release-plugin

%pom_remove_plugin :maven-invoker-plugin compiler
%pom_remove_plugin :maven-assembly-plugin compiler
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin core

%pom_remove_dep org.truth0:truth
%pom_remove_dep com.google.testing.compile:compile-testing
%pom_remove_dep org.easytesting:fest-assert

%pom_xpath_remove "pom:dependency[pom:scope = 'test']" compiler
%pom_xpath_remove "pom:dependency[pom:scope = 'test']" core

%pom_disable_module examples

%mvn_file com.squareup.%{name}:%{name}-compiler %{name}-compiler
%mvn_file com.squareup.%{name}:%{name} %{name}

%mvn_package com.squareup.%{name}:%{name} %{name}
%mvn_package com.squareup.%{name}:%{name}-parent %{name}

%build

# Unavailable test deps: org.truth0:truth
#                        com.google.testing.compile:compile-testing
#                        org.easytesting:fest-assert
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-%{name}
%doc CHANGELOG.md README.md
%license LICENSE.txt

%files compiler -f .mfiles-%{name}-compiler
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12377 |21mr|dain-snappy-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit e02f7c887d666afbdd11763f3a6ba22e68f53f15
%global shortcommit %(c=%{commit}; echo ${c:0:7})

%bcond_with hadoop

Name:           dain-snappy
Version:        0.4
Release:        8
Summary:        Snappy compression library
License:        ASL 2.0 and BSD
URL:            https://github.com/dain/snappy
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/dain/snappy/archive/%{commit}/%{name}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.testng:testng)
BuildRequires:  mvn(org.xerial.snappy:snappy-java)
%if %{with hadoop}
BuildRequires:  mvn(org.apache.hadoop:hadoop-common)
%endif

%description
This is a rewrite (port) of Snappy writen in pure Java. This
compression code produces a byte-for-byte exact copy of the output
created by the original C++ code, and extremely fast.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n snappy-%{commit}
%pom_remove_plugin :really-executable-jar-maven-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-surefire-plugin

%if %{with hadoop}
%pom_change_dep :hadoop-core :hadoop-common
%else
%pom_remove_dep :hadoop-core
find -name HadoopSnappyCodec.java -delete
find -name TestHadoopSnappyCodec.java -delete
%endif

# Broken test - dain-snappy produces different output than original snappy
sed -i /@Test/d $(find -name SnappyTest.java)

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license license.txt notice.md

%files javadoc -f .mfiles-javadoc
%license license.txt notice.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12378 |21mr|daq-2.0.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define sfbpfmajor 0
%define libname %mklibname %{name} %{major}
%define libsfbpf %mklibname sfbpf %{sfbpfmajor}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	Data Acquisition library, for packet I/O
Name:		daq
Version:	2.0.7
Release:	3
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.snort.org/
Source0:	https://www.snort.org/downloads/snort/%{name}-%{version}.tar.gz
Patch0:		daq-2.0.6-parallel-grammar.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	dnet-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libipq)
BuildRequires:	pkgconfig(libnetfilter_queue)
BuildRequires:	pkgconfig(xtables)

%description
Snort 2.9 introduces the DAQ, or Data Acquisition library, for packet I/O.  The
DAQ replaces direct calls to PCAP functions with an abstraction layer that
facilitates operation on a variety of hardware and software interfaces without
requiring changes to Snort.  It is possible to select the DAQ type and mode
when invoking Snort to perform PCAP readback or inline operation, etc.  The
DAQ library may be useful for other packet processing applications and the
modular nature allows you to build new modules for other platforms.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for DAQ
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Snort 2.9 introduces the DAQ, or Data Acquisition library, for packet I/O.  The
DAQ replaces direct calls to PCAP functions with an abstraction layer that
facilitates operation on a variety of hardware and software interfaces without
requiring changes to Snort.  It is possible to select the DAQ type and mode
when invoking Snort to perform PCAP readback or inline operation, etc.  The
DAQ library may be useful for other packet processing applications and the
modular nature allows you to build new modules for other platforms.

%files -n %{libname}
%{_libdir}/libdaq.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libsfbpf}
Summary:	Library for DAQ
Group:		System/Libraries

%description -n %{libsfbpf}
Snort 2.9 introduces the DAQ, or Data Acquisition library, for packet I/O.  The
DAQ replaces direct calls to PCAP functions with an abstraction layer that
facilitates operation on a variety of hardware and software interfaces without
requiring changes to Snort.  It is possible to select the DAQ type and mode
when invoking Snort to perform PCAP readback or inline operation, etc.  The
DAQ library may be useful for other packet processing applications and the
modular nature allows you to build new modules for other platforms.

%files -n %{libsfbpf}
%{_libdir}/libsfbpf.so.%{sfbpfmajor}*

#----------------------------------------------------------------------------

%package -n %{name}-modules
Summary:	Bundled DAQ modules
Group:		System/Libraries
Provides:	%{name}-modules = %{EVRD}

%description -n %{name}-modules
Contains the DAQ modules that come bundled with the base LibDAQ distribution.

%files -n %{name}-modules
%doc README
%{_libdir}/daq/daq_afpacket.so
%{_libdir}/daq/daq_dump.so
%{_libdir}/daq/daq_nfq.so
%{_libdir}/daq/daq_pcap.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files for DAQ
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libsfbpf} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development libraries and header files for %{name}.

%files -n %{devname}
%{_bindir}/daq-modules-config
%{_includedir}/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for DAQ
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains the static libraries for %{name}.

%files -n %{sdevname}
# used with --enable-static-daq option in snort
%{_libdir}/libdaq_static.a
%{_libdir}/libdaq_static_modules.a
# --disable-static disables these libraries:
#{_libdir}/libdaq.a
#{_libdir}/libsfbpf.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
rm -f configure
autoreconf -fi
%configure \
	--disable-static \
	--disable-ipfw-module

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12379 |21mr|darktable-3.8.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# cmake flag -DRAWSPEED_ENABLE_LTO needs GCC >= 9
%if %{mdvver} >= 201910
%global	_use_rawspeed_lto "ON"
%else
%global	_use_rawspeed_lto "OFF"
%endif

%define	_cmake_skip_rpath %{nil}
%define	dont_remove_rpath 1

Summary:	Utility to organize and develop raw images
Name:		darktable
Version:	3.8.1
Release:	3
License:	GPLv3+
Group:		Graphics
Url:		http://www.darktable.org
Source0:	https://github.com/darktable-org/darktable/releases/download/release-%{version}/%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
# ROSA patch, https://github.com/darktable-org/darktable/issues/8122
Patch0:		0001-Make-RPATH-absolute.patch
BuildRequires:	cmake >= 3.10.0
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	gnome-doc-utils
BuildRequires:	intltool
BuildRequires:	iso-codes >= 3.66
BuildRequires:	libxml2-utils
# For OpenCL support
BuildRequires:	llvm >= 7.0.0
BuildRequires:	clang >= 7.0.0
BuildRequires:	mesaopencl-devel
BuildRequires:	perl-Image-ExifTool
BuildRequires:	po4a
BuildRequires:	python3-jsonschema
BuildRequires:	xml2po
BuildRequires:	xsltproc
BuildRequires:	cups-devel
BuildRequires:	gettext-devel
BuildRequires:	gomp-devel >= 4.5
BuildRequires:	iso-codes-devel
BuildRequires:	pugixml-devel >= 1.8
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(colord-gtk)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(exiv2) >= 0.24
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.32
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gnome-keyring-1) >= 3.12.0
BuildRequires:	pkgconfig(GraphicsMagick)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.22
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(lensfun)
BuildRequires:	pkgconfig(libcurl) >= 7.56
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgphoto2) >= 2.5
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libsecret-1) >= 0.18
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp) >= 0.3.0
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	lua5.4-devel
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(osmgpsmap-1.0) >= 1.1.0
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sqlite3) >= 3.15
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)
Requires:	gphoto2
# Only 64 bit arches are supported
# See ./src/is_supported_platform.h
# e2k - just try...
ExclusiveArch:	%{x86_64} aarch64 %{e2k} ppc64le

%description
Darktable is an open source photography workflow application and RAW developer.
A virtual lighttable and darkroom for photographers. It manages your digital
negatives in a database, lets you view them through a zoomable lighttable
and enables you to develop raw images and enhance them.

%files -f %{name}.lang
%doc doc/README* doc/TRANSLATORS* LICENSE
#{_sysconfdir}/ld.so.conf.d/%%{name}-%%{_arch}.conf
%{_bindir}/%{name}*
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/metainfo/darktable.appdata.xml
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_mandir}/man1/%{name}*
%{_mandir}/*/man1/%{name}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix clang headers detection
sed -i 's|${LLVM_INSTALL_PREFIX}/lib/clang|${LLVM_INSTALL_PREFIX}/%{_lib}/clang|g' CMakeLists.txt

# Assume that we are building on a supported architecture
# This file just checks if the architecture is supported
sed -i -e 's,#error,#warning,g' src/is_supported_platform.h

# (Fedora) Remove bundled OpenCL headers.
rm -rf src/external/CL
sed -i -e 's, \"external/CL/\*\.h\" , ,' src/CMakeLists.txt

# (Fedora) Remove bundled lua
rm -rf src/external/lua/


%build
%cmake \
	-DCMAKE_BUILD_TYPE:STRING=Release \
	-DBINARY_PACKAGE_BUILD:BOOLEAN=ON \
	-DUSE_OPENCL=ON \
	-DRAWSPEED_ENABLE_LTO=%{_use_rawspeed_lto} \
	-DPROJECT_VERSION:STRING="%{version}" \
	-DCMAKE_LIBRARY_PATH:PATH=%{_libdir}

%make


%install
%makeinstall_std -C build

desktop-file-install --delete-original \
	--set-key="Exec" --set-value="%{name}" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

# We use %%doc macro to pull needed docs
rm -rf %{buildroot}%{_datadir}/doc/%{name}

# Useless stuff making rpmlint complain
rm -rf %{buildroot}%{_datadir}/%{name}/lua/%{name}/external/pygy_require/.gitignore

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12380 |21mr|dash-0.5.11.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Currently debug is empty so rpmlint rejects build
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%bcond_with diet

Summary:	The Debian Almquist Shell (formerly NetBSD's ash)
Name:		dash
Version:	0.5.11.5
Release:	1
License:	BSD
Group:		Shells
URL:		http://gondor.apana.org.au/~herbert/dash/
Source0:	http://gondor.apana.org.au/~herbert/dash/files/%{name}-%{version}.tar.gz
BuildRequires:	bison
%if %{with diet}
BuildRequires:	dietlibc-devel
%endif
Requires(post,postun):	rpm-helper
# explicit file provide:
Provides:	/bin/dash

%description
"dash" is a POSIX compliant shell that is much smaller than "bash".
Dash supports many features that a real sh shell would support, however
it is much smaller in size. This becomes an advantage in situations
where there is a lack of memery (initial ram-disks, etc). dash does
lack a few features, like command line history.

dash is the continuation of the original NetBSD ash fork. dash is much
more up-to-date, and properly maintained.

You should install dash if you need a near featureful lightweight shell
that is similar to GNU's bash.

%files
%doc ChangeLog COPYING
/bin/dash
%{_mandir}/man1/*

%post
/usr/share/rpm-helper/add-shell %{name} $1 /bin/dash

%postun
/usr/share/rpm-helper/del-shell %{name} $1 /bin/dash

#----------------------------------------------------------------------------

%if %{with diet}
%package static
Summary:	The Debian Almquist Shell (statically compiled)
License:	BSD
Group:		Shells
Provides:	ash = %{EVRD}
# explicit file provide:
Provides:	/bin/dash.static

%description static
"dash" is a POSIX compliant shell that is much smaller than "bash".
Dash supports many features that a real sh shell would support, however
it is much smaller in size. This becomes an advantage in situations
where there is a lack of memery (initial ram-disks, etc). dash does
lack a few features, like command line history.

dash is the continuation of the original NetBSD ash fork. dash is much
more up-to-date, and properly maintained.

You should install dash if you need a near featureful lightweight shell
that is similar to GNU's bash.

This version is statically compiled.

%files static
%doc ChangeLog COPYING
/bin/dash.static
/bin/ash
%endif

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -Os"
export CXXFLAGS=$CFLAGS

%configure

# Build dynamically linked dash first
%make
%__strip src/dash
mv src/dash src/dash.dynamic

%if %{with diet}
# Build statically linked dietlibc dash last
make clean
%configure CC="diet gcc"
%make CC="diet gcc"
%__strip src/dash
mv src/dash src/dash.static
%endif

%install
mkdir -p %{buildroot}/bin
mkdir -p %{buildroot}%{_mandir}/man1

install -m 755 src/dash.dynamic %{buildroot}/bin/dash
install -m 644 src/dash.1 %{buildroot}%{_mandir}/man1/dash.1

%if %{with diet}
install -m 755 src/dash.static %{buildroot}/bin/dash.static
ln -s /bin/dash.static %{buildroot}/bin/ash
ln -s %{_mandir}/man1/dash.1 %{buildroot}%{_mandir}/man1/ash.1
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12381 |21mr|datanucleus-api-jdo-3.2.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 3c0a06622831bd7af6c231c1b5d5398f3afc7271
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:          datanucleus-api-jdo
Version:       3.2.8
Release:       9
Summary:       DataNucleus JDO API plugin
License:       ASL 2.0
URL:           https://github.com/datanucleus/datanucleus-api-jdo
Source:        https://github.com/datanucleus/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz

BuildRequires: java-devel

# note this HAS to be jdo-api 3.x, not jdo2-api 2.2
BuildRequires: mvn(javax.jdo:jdo-api)
BuildRequires: mvn(javax.transaction:jta)
BuildRequires: mvn(org.datanucleus:datanucleus-core)
# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j)

BuildRequires: maven-local
BuildRequires: datanucleus-maven-parent

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Plugin providing DataNucleus implementation of JDO API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{commit}

sed -i 's/\r//' META-INF/LICENSE.txt META-INF/NOTICE.txt META-INF/README.txt
cp -p META-INF/LICENSE.txt .
cp -p META-INF/NOTICE.txt .
cp -p META-INF/README.txt .

%build

%mvn_file : %{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt README.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12382 |21mr|datanucleus-core-3.2.15-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %nil

%global commit f7d15412f9a95353ecfbc0a72211568fd2efe21a 
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:          datanucleus-core
Version:       3.2.15
Release:       10
Summary:       DataNucleus Core
License:       ASL 2.0
URL:           http://www.datanucleus.org/%{name}
Source:        https://github.com/datanucleus/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz

BuildRequires: java-devel
BuildRequires: mvn(javax.time:time-api)
BuildRequires: mvn(javax.jdo:jdo-api)
BuildRequires: mvn(javax.transaction:jta)
BuildRequires: mvn(log4j:log4j)
BuildRequires: mvn(mx4j:mx4j)
BuildRequires: mvn(mx4j:mx4j-tools)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-validation_1.0_spec)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)

# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: maven-local
BuildRequires: maven-install-plugin

# use Fedora base64 pkg
BuildRequires: mvn(biz.source_code:base64coder)

BuildRequires: datanucleus-maven-parent

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
DataNucleus Core provides the primary components
of a heterogeneous Java persistence solution. 
It supports persistence API's being layered on
top of the core functionality.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{commit}

# just completely dump eclipse plugin support
# too dependent on system scope jars
rm src/java/org/datanucleus/plugin/EclipsePluginRegistry.java
%pom_remove_dep org.eclipse.core:org.eclipse.core.runtime.compatibility.auth
%pom_remove_dep org.eclipse.equinox:org.eclipse.equinox.registry
%pom_remove_dep org.eclipse.equinox:org.eclipse.equinox.common
%pom_remove_dep org.eclipse.equinox:org.eclipse.equinox.preferences
%pom_remove_dep org.eclipse.core:org.eclipse.core.runtime
%pom_remove_dep org.eclipse.core:org.eclipse.core.contenttype
%pom_remove_dep org.eclipse.core:org.eclipse.core.jobs

# Use system jvm apis
%pom_remove_dep javax.management:jmx
# Use system asm4 apis
rm -r src/java/org/datanucleus/asm
%pom_add_dep org.ow2.asm:asm
sed -i "s|org.datanucleus.asm|org.objectweb.asm|" $(find . -name "*.java")

%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin' ]/pom:configuration/pom:instructions" '
<Require-Bundle>org.eclipse.equinox.registry;resolution:=optional,org.eclipse.core.runtime;resolution:=optional</Require-Bundle>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-Vendor>DataNucleus</Bundle-Vendor>
<Premain-Class>org.datanucleus.enhancer.DataNucleusClassFileTransformer</Premain-Class>
<Export-Package>org.datanucleus*;version="${project.version}"</Export-Package>'
%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin' ]" "
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

# cache-api unavailable and used for an optional L2 pluggable cache
%pom_remove_dep javax.cache:cache-api
find -name 'JavaxCache*.java' -delete
sed -i".orig" "/javax.cache/d" plugin.xml

# swap out embedded base64 codec
find -name 'Base64.java' -delete
sed -i "s|org.datanucleus.util.Base64|biz.source_code.base64Coder.Base64Coder|" $(find . -name "*.java")
sed -i "s|\.Base64;|\.Base64Coder;|" $(find . -name "*.java")
sed -i "s|Base64\.|Base64Coder\.|" $(find . -name "*.java")
%pom_add_dep biz.source_code:base64coder

sed -i 's/\r//' META-INF/LICENSE.txt META-INF/NOTICE.txt META-INF/README.txt
cp -p META-INF/LICENSE.txt .
cp -p META-INF/NOTICE.txt .
cp -p META-INF/README.txt .

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12383 |21mr|datanucleus-maven-parent-3.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 8e55762cef51784b0308ed4cdcfeceaadb03e1d6
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           datanucleus-maven-parent
Version:        3.3
Release:        10
Summary:        DataNucleus Maven parent project 

License:        ASL 2.0
URL:            https://github.com/datanucleus/datanucleus-maven-parent
Source:         https://github.com/datanucleus/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz

# jira opened for missing ASL file
# http://www.datanucleus.org/servlet/jira/browse/NUCACCESS-130
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt 
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  maven-clean-plugin
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%description
Datanucleus Maven parent pom used by other datanucleus packages.

%prep
%setup -q -n %{name}-%{commit}
cp -p %{SOURCE1} LICENSE
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin

%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-ssh-external']]"

%pom_remove_parent

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12384 |21mr|datanucleus-rdbms-3.2.13-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 9bd33de81ccdce1c1c448cdd3c0aa8d9480eff9a
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:          datanucleus-rdbms
Version:       3.2.13
Release:       10
Summary:       DataNucleus RDBMS
License:       ASL 2.0
URL:           http://www.datanucleus.org/%{name}
Source:        https://github.com/datanucleus/%{name}/archive/%{commit}/%{name}-%{commit}.tar.gz

BuildRequires: java-devel
BuildRequires: mvn(com.mchange:c3p0)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-dbcp:commons-dbcp)
BuildRequires: mvn(commons-pool:commons-pool)
BuildRequires: mvn(javax.time:time-api)
BuildRequires: mvn(javax.transaction:jta)
BuildRequires: mvn(org.datanucleus:datanucleus-core)
BuildRequires: mvn(proxool:proxool)
BuildRequires: mvn(org.apache.tomcat:tomcat-jdbc)
# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j)

BuildRequires: maven-local
BuildRequires: maven-install-plugin
BuildRequires: datanucleus-maven-parent

# fix for broken proxool metadata
BuildRequires: mvn(net.sf.cglib:cglib)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Plugin for DataNucleus providing persistence to RDBMS data-stores.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{commit}

# Fix c3p0 gId
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId = 'c3p0' ]/pom:groupId" com.mchange

# Non free
%pom_remove_dep oracle:ojdbc14_g
%pom_remove_dep oracle:xdb
%pom_remove_dep oracle:xmlparser
rm -r src/java/org/datanucleus/store/rdbms/mapping/oracle/Oracle*.java \
 src/java/org/datanucleus/store/rdbms/mapping/oracle/XMLTypeRDBMSMapping.java \
 src/java/org/datanucleus/store/rdbms/adapter/OracleAdapter.java

# Unavailable dep
%pom_remove_dep com.jolbox:bonecp
rm -r src/java/org/datanucleus/store/rdbms/connectionpool/BoneCP*.java
# Required by bonecp
%pom_remove_dep org.slf4j:slf4j-api
%pom_remove_dep org.slf4j:slf4j-log4j12

%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin' ]/pom:configuration/pom:instructions" '
<Require-Bundle>org.datanucleus;bundle-version="${project.version}"</Require-Bundle>
<Bundle-Name>${project.name}</Bundle-Name>
<Bundle-Vendor>DataNucleus</Bundle-Vendor>'
%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin' ]" "
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

sed -i 's/\r//' META-INF/LICENSE.txt META-INF/NOTICE.txt META-INF/README.txt
cp -p META-INF/LICENSE.txt .
cp -p META-INF/NOTICE.txt .
cp -p META-INF/README.txt .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt README.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12385 |21mr|dav1d-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 7
%define	libname %mklibname %{name} %{major}
%define	devel %mklibname %{name} -d

%define	gitdate 20230507

# There are near 900 tests, needing a few min to run completely:
# add means to run them locally and keep them disabled for ABF
%define	run_tests 0

Summary:	An open-source and cross-platform AV1 decoder
Name:		dav1d
Version:	1.3.0
Release:	1
License:	BSD
Group:		Video
Url:		https://code.videolan.org/videolan/dav1d/
Source0:	https://downloads.videolan.org/pub/videolan/dav1d/%{version}/%{name}-%{version}.tar.bz2
# Data for more accurate tests:
# always pull the HEAD master and repackage it with the HEAD date to allow for easy updates
# https://code.videolan.org/videolan/dav1d-test-data
Source1:	%{name}-test-data-%{gitdate}.tar.xz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson >= 0.49.0
BuildRequires:	nasm >= 2.14.0
BuildRequires:	ninja

%description
Dav1d is a new AV1 cross-platform decoder, open-source and focused on speed
and correctness. The goal of this project is to provide a decoder for most
platforms, and achieve the highest speed possible to overcome the lack of AV1
hardware decoder. It aims to support all features from AV1, including all
sub-sampling and bit-depth parameters.

%files
%doc CONTRIBUTING.md COPYING README.md THANKS.md NEWS
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An open-source and cross-platform AV1 decoder
Group:		System/Libraries

%description -n %{libname}
Dav1d is a new AV1 cross-platform decoder, open-source and focused on speed
and correctness. The goal of this project is to provide a decoder for most
platforms, and achieve the highest speed possible to overcome the lack of AV1
hardware decoder. It aims to support all features from AV1, including all
sub-sampling and bit-depth parameters.
This package contains the main decoder library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libdav1d.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devel}
Summary:	An open-source and cross-platform AV1 decoder
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devel}
Dav1d is a new AV1 cross-platform decoder, open-source and focused on speed
and correctness. The goal of this project is to provide a decoder for most
platforms, and achieve the highest speed possible to overcome the lack of AV1
hardware decoder. It aims to support all features from AV1, including all
sub-sampling and bit-depth parameters.
This package contains the needed to build programs using %{libname}.

%files -n %{devel}
%doc COPYING
%{_includedir}/%{name}/
%{_libdir}/libdav1d.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q -a1
# Move the test data directory to the right place
mv %{name}-test-data-%{gitdate} tests/%{name}-test-data


%build
%meson	--buildtype release -Dtestdata_tests=true -Denable_docs=true
%meson_build


%install
%meson_install


%if %{run_tests}
%check
%meson_test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12386 |21mr|davfs2-1.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dav_user %{name}
%define dav_group %{name}
%define dav_localstatedir /run
%define dav_syscachedir /var/cache
%define _sbindir /sbin

Summary:	File system driver that allows you to mount a WebDAV server
Name:		davfs2
Version: 	1.6.0
Release: 	2
License:	GPLv2+
Group:		System/Kernel and hardware
URL:		http://savannah.nongnu.org/projects/davfs2
Source0:	http://ftp.twaren.net/Unix/NonGNU/davfs2/davfs2-%{version}.tar.gz
Source1:	%{name}.tmpfiles.conf
Source2:	%{dav_user}.sysusers.conf
Requires(pre):	/bin/systemd-sysusers
Requires(post):	systemd
BuildRequires:	neon-devel >= 0.27
BuildRequires:	gettext-devel >= 0.14.4
BuildRequires:	libtool
Provides:	davfs = %{version}-%{release}
Obsoletes:	davfs < 0.2.5

%description
davfs2 is a Linux file system driver that allows you to mount a WebDAV server
as a local file system, like a disk drive. This way applications can access
resources on a Web server without knowing anything about HTTP or WebDAV. davfs2
runs as a daemon in userspace. It uses the kernel file system coda or fuse.
Most probably your Linux kernel includes at least one of this file systems. To
connect to the WebDAV server it makes use of the neon library. Neon supports
TLS/SSL (using OpenSSL or GnuTLS) and access via proxy server.

davfs2 allows you to e.g.

 * use a WebDAV server as workspace for a geographically distributed work
   group.
 * save documents on a WebDAV server and access and edit them via internet from
   wherever you want.
 * edit a web site in place, using your preferred development tools.

#--------------------------------------------------------------------------------
%prep
%setup -q

%build
autoreconf -vfi

export dav_user=%{dav_user}
export dav_group=%{dav_group}
export dav_localstatedir=%{dav_localstatedir}
export dav_syscachedir=%{dav_syscachedir}

%configure \
    --disable-rpath

%make

%install
install -d %{buildroot}%{dav_syscachedir}/%{name}
install -d %{buildroot}%{_datadir}/%{name}

%makeinstall_std

# rename the binaries
ln -s %{_sbindir}/mount.davfs %{buildroot}%{_sbindir}/mount.%{name}
ln -s %{_sbindir}/umount.davfs %{buildroot}%{_sbindir}/umount.%{name}

# create tmpfiles directory
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# rename the manpages
find %{buildroot}%{_mandir} -name "*.gz" | xargs gunzip

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf

%find_lang %{name} --all-name

%pre
# create users and groups
%sysusers_create_package %{dav_user} %{SOURCE2}

%post
%tmpfiles_create %{name}.conf


%files -f %{name}.lang
%doc %{_docdir}/davfs2
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/certs
%dir %{_sysconfdir}/%{name}/certs/private
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/secrets
%{_sbindir}/mount.davfs*
%{_sbindir}/umount.davfs*
%{_tmpfilesdir}/%{name}.conf
%{_mandir}/man5/*
%{_mandir}/man8/*
%lang(de) %{_mandir}/de/man5/*
%lang(de) %{_mandir}/de/man8/*
%lang(es) %{_mandir}/es/man5/*
%attr(1775,root,%{dav_group}) %dir %{dav_syscachedir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_sysusersdir}/%{dav_user}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12387 |21mr|db181-18.1.32-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname	db

%define libname		%mklibname %{sname} %{api}
%define devname		%mklibname %{sname} %{api} -d
%define statname	%mklibname %{sname} %{api} -s -d

%define libdbcxx	%mklibname %{sname}cxx %{api}
%define libdbsql	%mklibname %{sname}sql %{api}
%define libdbtcl	%mklibname %{sname}tcl %{api}
%define libdbjava	%mklibname %{sname}java %{api}

%define libdbnss	%mklibname %{sname}nss %{api}
%define devdbnss	%mklibname %{sname}nss %{api} -d

%bcond_with java
%bcond_without sql
%bcond_with tcl
%bcond_with db1
# Define to build a stripped down version to use for nss libraries
%bcond_with	 nss

# Define to rename utilities and allow parallel installation
%bcond_without parallel

# mutexes defaults to POSIX/pthreads/library
%bcond_with asmmutex


Summary:	The Berkeley DB database library for C
Version:	18.1.32
%global api %(echo %{version}|cut -d. -f1-2)
%global shortapi %(echo %{version}|cut -d. -f1)
%global binext	%(echo %{api} | sed -e 's|\\.||g')
Name:		%{sname}%{binext}
Release:	2
License:	AGPL
Group:		System/Libraries
Url:		http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
Source0:	http://download.oracle.com/otn/berkeley-db/db-%{version}.tar.gz
# statically link db1 library
Patch0:		db-5.1.19-db185.patch
Patch1:		db-5.1.25-sql_flags.patch
Patch2:		db-5.1.19-tcl-link.patch
Patch3:		arm-thumb-mutex_db5.patch
# Workaround for clang producing __mulodi4 calls
#Patch5:		db-sql-18.1.25-arm-clang-buildfix.patch
# ubuntu patches
Patch102:	006-mutex_alignment.patch

BuildRequires:	ed
BuildRequires:	libtool
%if %{with sql}
BuildRequires:	pkgconfig(sqlite3)
%endif
%if %{with tcl}
BuildRequires:	pkgconfig(tcl)
%endif
%if %{with db1}
BuildRequires:	db1-devel
%endif
%if %{with java}
BuildRequires:	java-rpmbuild
BuildRequires:	java-devel
BuildRequires:	sharutils
%endif
BuildRequires:	binutils

%description
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB is used by many applications, including Python and Perl, so this
should be installed on all systems.

%package -n	%{libname}
Summary:	The Berkeley DB database library for C
Group:		System/Libraries

%description -n	%{libname}
This package contains the shared library required by Berkeley DB.

%package -n	%{libdbcxx}
Summary:	The Berkeley DB database library for C++
Group:		System/Libraries

%description -n	%{libdbcxx}
This package contains the files needed to build C++ programs which use
Berkeley DB.

%if %{with sql}
%package -n	%{libdbsql}
Summary:	The Berkeley DB database library for SQL
Group:		System/Libraries

%description -n	%{libdbsql}
This package contains the files needed to build SQL programs which use
Berkeley DB.
%endif

%if %{with java}
%package -n	%{libdbjava}
Summary:	The Berkeley DB database library for C++
Group:		System/Libraries

%description -n	%{libdbjava}
This package contains the files needed to build Java programs which use
Berkeley DB.

%package -n	%{libdbjava}-javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description -n %{libdbjava}-javadoc
Javadoc for %{name}.
%endif

%if %{with tcl}
%package -n	%{libdbtcl}
Summary:	The Berkeley DB database library for TCL
Group:		System/Libraries

%description -n	%{libdbtcl}
This package contains the header files, libraries, and documentation for
building tcl programs which use Berkeley DB.
%endif

%package utils
Summary:	Command line tools for managing Berkeley DB databases
Group:		Databases
%if !%{with parallel}
Conflicts:	db-utils < %{api}
%endif
Requires:	%{name}_recover = %{EVRD}

%description	utils
This package contains command line tools for managing Berkeley DB databases.

%package -n	%{name}_recover
Summary:	Minimal package with '%{name}_recover' only
Group:		Databases

%description -n	%{name}_recover
This is a minimal package that ships with '%{name}_recover' only as it's
required for using "RPM ACID".

%package -n	%{devname}
Summary:	Development libraries/header files for the Berkeley DB library
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
%if %{with sql}
Requires:	%{libdbsql} = %{EVRD}
%endif
%if %{with tcl}
Requires:	%{libdbtcl} = %{EVRD}
%endif
%if %{with java}
Requires:	%{libdbjava} = %{EVRD}
%endif
Requires:	%{libdbcxx} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
# Keeping db52 (later it will probably be 5.3) default
#Provides:	%{sname}-devel = %{EVRD}
Provides:	db18.1-devel = %{EVRD}
Provides:	db18-devel = %{EVRD}
# MD remove the following line if there is a newer fork of the same api
# ie: this is 6.0 and there is a fork of 6.1 or 6.2....
Provides:	%{sname}%{shortapi}-devel = %{EVRD}

%description -n	%{devname}
This package contains the header files, libraries, and documentation for
building programs which use Berkeley DB.

%package -n	%{statname}
Summary:	Development static libraries files for the Berkeley DB library
Group:		Development/Databases
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n	%{statname}
This package contains the static libraries for building programs which
use Berkeley DB.

%if %{with nss}
%package -n	%{libdbnss}
Summary:	The Berkeley DB database library for NSS modules
Group:		System/Libraries

%description -n	%{libdbnss}
This package contains the shared library required by some nss modules
that use Berkeley DB.

%package -n	%{devdbnss}
Summary:	Development libraries/header files for building nss modules with Berkeley DB
Group:		Development/Databases
Requires:	%{libdbnss} = %{EVRD}
Provides:	dbnss%{binext}-devel = %{EVRD}
Provides:	db_nss%{binext}-devel = %{EVRD}

%description -n	%{devdbnss}
This package contains the header files and libraries for building nss
modules which use Berkeley DB.
%endif

%prep
%setup -qn %{sname}-%{version}
# fix strange attribs
find . -type f -perm 0444 -exec chmod 644 {} \;
%autopatch -p1

# copy modern config.* files to target
for f in config.guess config.sub ; do
        test -f /usr/share/libtool/config/$f || continue
        find . -type f -name $f -exec cp /usr/share/libtool/config/$f \{\} \;
done


pushd dist
libtoolize --copy --force
cat %{_datadir}/aclocal/libtool.m4 >> aclocal.m4
popd

# Remove tags files which we don't need.
find . -name tags | xargs rm -f
# Define a shell function for fixing HREF references in the docs, which
# would otherwise break when we split the docs up into subpackages.
fixup_href() {
    for doc in $@ ; do
	chmod u+w ${doc}
	sed -e 's,="../api_c/,="../../%{name}-devel/api_c/,g' \
	    -e 's,="api_c/,="../%{name}-devel/api_c/,g' \
	    -e 's,="../api_cxx/,="../../%{name}-devel/api_cxx/,g' \
	    -e 's,="api_cxx/,="../%{name}-devel/api_cxx/,g' \
	    -e 's,="../api_tcl/,="../../%{name}-devel/api_tcl/,g' \
	    -e 's,="api_tcl/,="../%{name}-devel/api_tcl/,g' \
	    -e 's,="../java/,="../../%{name}-devel/java/,g' \
	    -e 's,="java/,="../%{name}-devel/java/,g' \
	    -e 's,="../examples_c/,="../../%{name}-devel/examples_c/,g' \
	    -e 's,="examples_c/,="../%{name}-devel/examples_c/,g' \
	    -e 's,="../examples_cxx/,="../../%{name}-devel/examples_cxx/,g' \
	    -e 's,="examples_cxx/,="../%{name}-devel/examples_cxx/,g' \
	    -e 's,="../ref/,="../../%{name}-devel/ref/,g' \
	    -e 's,="ref/,="../%{name}-devel/ref/,g' \
	    -e 's,="../images/,="../../%{name}-devel/images/,g' \
	    -e 's,="images/,="../%{name}-devel/images/,g' \
	    -e 's,="../utility/,="../../%{name}-utils/utility/,g' \
	    -e 's,="utility/,="../%{name}-utils/utility/,g' ${doc} > ${doc}.new
	touch -r ${doc} ${doc}.new
	cat ${doc}.new > ${doc}
	touch -r ${doc}.new ${doc}
	rm -f ${doc}.new
    done
}

set +x	# XXX painful to watch
# Fix all of the HTML files.
fixup_href `find . -name "*.html"`
set -x	# XXX painful to watch

cd dist
./s_config

%build
# fails to build in ix86 and arm32
# with clang 7.0.1, db 18.1.25
%ifarch %ix86 %{arm}
export CC=gcc
export CXX=g++
%endif

%ifarch ppc
CFLAGS="$CFLAGS -D_GNU_SOURCE -D_REENTRANT"
%endif
export CFLAGS

%ifnarch %{arm} %{e2k}
%global ldflags %{ldflags} -fuse-ld=bfd
%endif

%if %{with java}
export CLASSPATH=
export JAVAC=%{javac}
export JAR=%{jar}
export JAVA=%{java}
export JAVACFLAGS="-nowarn"
#JAVA_MAKE="JAR=%{jar} JAVAC=%{javac} JAVACFLAGS="-nowarn" JAVA=%{java}"
%endif
pushd build_unix
CONFIGURE_TOP="../dist" \
%configure \
	--includedir=%{_includedir}/%{name} \
	--enable-shared \
	--enable-static \
	--enable-dbm \
	--enable-o_direct \
%if %{with sql}
	--enable-sql \
%endif
%if %{with db1}
	--enable-compat185 \
	--enable-dump185 \
%endif
%if %{with tcl}
	--enable-tcl --with-tcl=%{_libdir} --enable-test \
%endif
	--enable-cxx \
%if %{with java}
	--enable-java \
%endif
%if %{with asmmutex}
%ifarch %{ix86}
	--disable-posixmutexes \
	--with-mutex=x86/gcc-assembly \
%endif
%ifarch %{x86_64}
	--disable-posixmutexes \
	--with-mutex=x86_64/gcc-assembly \
%endif
%ifarch alpha
	--disable-posixmutexes \
	--with-mutex=ALPHA/gcc-assembly \
%endif
%ifarch ia64
	--disable-posixmutexes \
	--with-mutex=ia64/gcc-assembly \
%endif
%ifarch ppc
	--disable-posixmutexes \
	--with-mutex=PPC/gcc-assembly \
%endif
%ifarch %{sparc}
	--disable-posixmutexes \
	--with-mutex=Sparc/gcc-assembly \
%endif
%ifarch %{mips}
	--disable-posixmutexes \
	--with-mutex=MIPS/gcc-assembly \
%endif
%ifarch %{arm}
	--disable-posixmutexes \
	--with-mutex=ARM/gcc-assembly \
%endif
%ifarch %{armx}
	--disable-posixmutexes \
	--with-mutex=ARM64/gcc-assembly \
%endif
%else
	--enable-posixmutexes \
	--with-mutex=POSIX/pthreads/library \
%endif
	|| :
if ! [ -e Makefile ]; then
	echo config.log:
	cat config.log
	exit 1
fi

%make $JAVA_MAKE
%if %{with java}
pushd ../lang/java
%{javadoc} -d ../sql/jdbc/doc `find . -name '*.java'`
popd
%endif
popd
%if %{with nss}
mkdir build_nss
pushd build_nss
CONFIGURE_TOP="../dist" \
%configure \
	--includedir=%{_includedir}/db_nss \
	--enable-shared \
	--disable-static \
	--enable-dbm \
	--enable-o_direct \
	--disable-tcl \
	--disable-cxx \
	--disable-java \
	--with-uniquename=_nss \
	--enable-compat185 \
	--disable-cryptography \
	--disable-queue \
	--disable-replication \
	--disable-verify \
%if %{with asmmutex}
%ifarch %{ix86}
	--disable-posixmutexes \
	--with-mutex=x86/gcc-assembly \
%endif
%ifarch x86_64
	--disable-posixmutexes \
	--with-mutex=x86_64/gcc-assembly \
%endif
%ifarch alpha
	--disable-posixmutexes \
	--with-mutex=ALPHA/gcc-assembly \
%endif
%ifarch ia64
	--disable-posixmutexes \
	--with-mutex=ia64/gcc-assembly \
%endif
%ifarch ppc
	--disable-posixmutexes \
	--with-mutex=PPC/gcc-assembly \
%endif
%ifarch %{sparc}
	--disable-posixmutexes \
	--with-mutex=Sparc/gcc-assembly \
%endif
%ifarch %{mips}
	--disable-posixmutexes \
	--with-mutex=MIPS/gcc-assembly \
%endif
%ifarch %{arm}
	--disable-posixmutexes \
	--with-mutex=ARM/gcc-assembly \
%endif
%else
	--enable-posixmutexes \
	--with-mutex=POSIX/pthreads/library \
%endif
	|| :
if ! [ -e Makefile ]; then
	echo config.log:
	cat config.log
	exit 1
fi

%make libdb_base=libdb_nss libso_target=libdb_nss-%{api}.la libdir=/%{_lib}
popd
%endif

%install
make -C build_unix install_setup install_include install_lib install_utilities \
	DESTDIR=%{buildroot} emode=755

%if %{with nss}
make -C build_nss install_include install_lib libdb_base=libdb_nss \
	DESTDIR=%{buildroot} LIB_INSTALL_FILE_LIST=""

mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}/%{_libdir}/libdb_nss-%{api}.so %{buildroot}/%{_lib}
ln -s  /%{_lib}/libdb_nss-%{api}.so %{buildroot}%{_libdir}
%endif

ln -sf %{name}/db.h %{buildroot}%{_includedir}/db.h

# XXX This is needed for parallel install with db4.2
%if %{with parallel}
for F in %{buildroot}%{_bindir}/*db_* ; do
	mv $F `echo $F | sed -e 's,db_,%{name}_,'`
done
%endif

# Move db.jar file to the correct place, and version it
%if %{with java}
mkdir -p %{buildroot}%{_jnidir}
mv %{buildroot}%{_libdir}/db.jar %{buildroot}%{_jnidir}/db%{api}-%{version}.jar
(cd %{buildroot}%{_jnidir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)

mkdir -p %{buildroot}%{_javadocdir}/db%{api}-%{version}
cp -a lang/sql/jdbc/doc/* %{buildroot}%{_javadocdir}/db%{api}-%{version}
ln -s db%{api}-%{version} %{buildroot}%{_javadocdir}/db%{api}

%endif

rm -rf %{buildroot}%{_includedir}/db_nss/db_cxx.h

%if %{with sql}
mv %{buildroot}%{_bindir}/{dbsql,db%{api}_sql}
%endif

%files -n %{libname}
%doc LICENSE README
%{_libdir}/libdb-%{api}.so

%files -n %{libdbcxx}
%{_libdir}/libdb_cxx-%{api}.so

%if %{with sql}
%files -n %{libdbsql}
%{_libdir}/libdb_sql-%{api}.so
%endif

%if %{with java}
%files -n %{libdbjava}
%doc lang/sql/jdbc/doc/*
%doc examples/java/src
%{_libdir}/libdb_java-%{api}.so
%{_libdir}/libdb_java-%{api}_g.so
%{_jnidir}/db%{api}.jar
%{_jnidir}/db%{api}-%{version}.jar

%files -n %{libdbjava}-javadoc
%{_javadocdir}/db%{api}
%{_javadocdir}/db%{api}-%{version}
%endif

%if %{with tcl}
%files -n %{libdbtcl}
%{_libdir}/libdb_tcl-%{api}.so
%endif

%files utils
%doc docs/api_reference/C/db_archive.html
%doc docs/api_reference/C/db_checkpoint.html
%doc docs/api_reference/C/db_deadlock.html
%doc docs/api_reference/C/db_dump.html
%doc docs/api_reference/C/db_load.html
%doc docs/api_reference/C/db_printlog.html
%doc docs/api_reference/C/db_replicate.html
%doc docs/api_reference/C/db_stat.html
%doc docs/api_reference/C/db_upgrade.html
%doc docs/api_reference/C/db_verify.html
%{_bindir}/%{name}_archive
%{_bindir}/%{name}_checkpoint
%{_bindir}/%{name}_convert
%{_bindir}/%{name}_deadlock
%{_bindir}/%{name}_dump*
%{_bindir}/%{name}_hotbackup
%{_bindir}/%{name}_load
%{_bindir}/%{name}_log_verify
%{_bindir}/%{name}_printlog
%{_bindir}/%{name}_replicate
%{_bindir}/%{name}_stat
%{_bindir}/%{name}_tuner
%{_bindir}/%{name}_upgrade
%{_bindir}/%{name}_verify
%if %{with sql}
%doc docs/api_reference/C/dbsql.html
%{_bindir}/db%{api}_sql
%endif

%files -n %{name}_recover
%doc docs/api_reference/C/db_recover.html
%{_bindir}/%{name}_recover

%files -n %{devname}
%doc docs/api_reference
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/db.h
%if %{with db1}
%{_includedir}/%{name}/db_185.h
%endif
%{_includedir}/%{name}/db_cxx.h
%if %{with sql}
%{_includedir}/%{name}/dbsql.h
%endif
%{_includedir}/db.h
%{_libdir}/libdb.so
%{_libdir}/libdb-%{shortapi}.so
%{_libdir}/libdb_cxx.so
%{_libdir}/libdb_cxx-%{shortapi}.so
%if %{with sql}
%{_libdir}/libdb_sql.so
%{_libdir}/libdb_sql-%{shortapi}.so
%endif
%if %{with tcl}
%{_libdir}/libdb_tcl.so
%{_libdir}/libdb_tcl-%{shortapi}.so
%endif
%if %{with java}
%{_libdir}/libdb_java.so
%{_libdir}/libdb_java-%{shortapi}.so
%endif

%files -n %{statname}
%{_libdir}/*.a

%if %{with nss}
%files -n %{libdbnss}
/%{_lib}/libdb_nss-%{api}.so

%files -n %{devdbnss}
%dir %{_includedir}/db_nss
%{_includedir}/db_nss/db.h
%if %{with db1}
%{_includedir}/db_nss/db_185.h
%endif
%{_libdir}/libdb_nss.so
%{_libdir}/libdb_nss-%{shortapi}.so
%{_libdir}/libdb_nss-%{api}.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12388 |21mr|db52-5.2.42-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	__soversion	5.2
%define	_libdb_a	libdb-%{__soversion}.a
%define	_libcxx_a	libdb_cxx-%{__soversion}.a

%define libname_orig	%mklibname db
%define libname		%{libname_orig}%{__soversion}
%define libnamedev	%{libname}-devel
%define libnamestatic	%{libname}-static-devel

%define libdbcxx	%{libname_orig}cxx%{__soversion}
%define libdbsql	%{libname_orig}sql%{__soversion}
%define libdbtcl	%{libname_orig}tcl%{__soversion}
%define libdbjava	%{libname_orig}java%{__soversion}

%define libdbnss	%{libname_orig}nss%{__soversion}
%define libdbnssdev	%{libdbnss}-devel

%bcond_with java

%bcond_without	sql
%bcond_without	tcl
#db1 now in contrib
%bcond_with	db1

# Define to build a stripped down version to use for nss libraries
%bcond_without	nss
%bcond_with	systap

# Define to rename utilities and allow parallel installation
%bcond_without	parallel

# mutexes defaults to POSIX/pthreads/library
%bcond_with	asmmutex

Summary:	The Berkeley DB database library for C
Name:		db52
Version:	5.2.42
Release:	14
Source0:	http://download.oracle.com/berkeley-db/db-%{version}.tar.gz
# statically link db1 library
Patch0:		db-5.1.19-db185.patch
Patch1:		db-5.1.25-sql_flags.patch
Patch2:		db-5.1.19-tcl-link.patch
Patch3:		db-5.2.42-atomic.patch
Patch4:		db-5.3.28-lemon_hash.patch
Url:		https://www.oracle.com/database/berkeley-db/index.html
License:	BSD
Group:		System/Libraries
BuildRequires:	util-linux
%if %{with systap}
BuildRequires:	systemtap
BuildRequires:	systemtap-devel
%endif
%if %{with sql}
BuildRequires:	sqlite3-devel
%endif
%if %{with tcl}
BuildRequires:	tcl-devel
%endif
%if %{with db1}
BuildRequires:	db1-devel
%endif
BuildRequires:	ed libtool
%if %{with java}
BuildRequires:	java-1.8.0-devel
BuildRequires:	java-rpmbuild
BuildRequires:	sharutils
%endif

%description
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB is used by many applications, including Python and Perl, so this
should be installed on all systems.

%package -n	%{libname}
Summary:	The Berkeley DB database library for C
Group:		System/Libraries

%description -n	%{libname}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB is used by many applications, including Python and Perl, so this
should be installed on all systems.

%package -n	%{libdbcxx}
Summary:	The Berkeley DB database library for C++
Group:		System/Libraries

%description -n	%{libdbcxx}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB is used by many applications, including Python and Perl, so this
should be installed on all systems.

This package contains the files needed to build C++ programs which use
Berkeley DB.

%if %{with sql}
%package -n	%{libdbsql}
Summary:	The Berkeley DB database library for SQL
Group:		System/Libraries

%description -n	%{libdbsql}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB is used by many applications, including Python and Perl, so this
should be installed on all systems.

This package contains the files needed to build SQL programs which use
Berkeley DB.
%endif

%if %{with java}
%package -n	%{libdbjava}
Summary:	The Berkeley DB database library for C++
Group:		System/Libraries
%rename		db%{__soversion}

%description -n	%{libdbjava}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB is used by many applications, including Python and Perl, so this
should be installed on all systems.

This package contains the files needed to build Java programs which use
Berkeley DB.

#%package -n	%{libdbjava}-javadoc
#Summary:	Javadoc for %{name}
#Group:		Development/Java

#%description -n %{libdbjava}-javadoc
#Javadoc for %{name}.
%endif

%if %{with tcl}
%package -n	%{libdbtcl}
Summary:	The Berkeley DB database library for TCL
Group:		System/Libraries

%description -n	%{libdbtcl}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB is used by many applications, including Python and Perl, so this
should be installed on all systems.

This package contains the header files, libraries, and documentation for
building tcl programs which use Berkeley DB.
%endif

%package	utils
Summary:	Command line tools for managing Berkeley DB databases
Group:		Databases
%if !%{with parallel}
Conflicts:	db4-utils
Conflicts:	db5-utils < %{__soversion}
Conflicts:	db-utils < %{__soversion}
%endif
Provides:	db5-utils = %{EVRD}
Provides:	db-utils = %{EVRD}
Requires:	%{name}_recover = %{EVRD}

%description	utils
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB includes B+tree, Extended Linear Hashing, Fixed and Variable-length
record access methods, transactions, locking, logging, shared memory caching
and database recovery. DB supports C, C++, Java and Perl APIs.

This package contains command line tools for managing Berkeley DB databases.

%package -n	%{name}_recover
Summary:	Minimal package with '%{name}_recover' only
Group:		Databases
Provides:	db_recover = %{EVRD}

%description -n	%{name}_recover
This is a minimal package that ships with '%{name}_recover' only as it's
required for using "RPM ACID".

%package -n	%{libnamedev}
Summary:	Development libraries/header files for the Berkeley DB library
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
%if %{with sql}
Requires:	%{libdbsql} = %{EVRD}
%endif
%if %{with tcl}
Requires:	%{libdbtcl} = %{EVRD}
%endif
%if %{with java}
Requires:	%{libdbjava} = %{EVRD}
%endif
Requires:	%{libdbcxx} = %{EVRD}
Provides:	db%{__soversion}-devel = %{EVRD}
Provides:	libdb%{__soversion}-devel = %{EVRD}
Conflicts:	db-devel < %{__soversion}
Conflicts:	db4.8-devel
Conflicts:	db4.7-devel
Conflicts:	db4.6-devel
Conflicts:	db4.5-devel
Conflicts:	db4.4-devel
Conflicts:	db4.3-devel
Conflicts:	db4.2-devel
Provides:	db-devel = %{EVRD}
Provides:	db5-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{libnamedev}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB includes B+tree, Extended Linear Hashing, Fixed and Variable-length
record access methods, transactions, locking, logging, shared memory caching
and database recovery. DB supports C, C++, Java, Perl and SQL APIs.

This package contains the header files, libraries, and documentation for
building programs which use Berkeley DB.

%package -n	%{libnamestatic}
Summary:	Development static libraries files for the Berkeley DB library
Group:		Development/Databases
Requires:	db%{__soversion}-devel = %{EVRD}
Provides:	db%{__soversion}-static-devel = %{EVRD}
Provides:	libdb%{__soversion}-static-devel = %{EVRD}
Conflicts:	db-static-devel < %{__soversion}
Provides:	db-static-devel = %{EVRD}
Provides:	db5-static-devel = %{EVRD}

%description -n	%{libnamestatic}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB includes B+tree, Extended Linear Hashing, Fixed and Variable-length
record access methods, transactions, locking, logging, shared memory caching
and database recovery. DB supports C, C++, Java and Perl APIs.

This package contains the static libraries for building programs which
use Berkeley DB.

%if %{with nss}
%package -n	%{libdbnss}
Summary:	The Berkeley DB database library for NSS modules
Group:		System/Libraries

%description -n	%{libdbnss}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB includes B+tree, Extended Linear Hashing, Fixed and Variable-length
record access methods, transactions, locking, logging, shared memory caching
and database recovery. DB supports C, C++, Java and Perl APIs.

This package contains the shared library required by some nss modules
that use Berkeley DB.

%package -n	%{libdbnssdev}
Summary:	Development libraries/header files for building nss modules with Berkeley DB
Group:		Development/Databases
Requires:	%{libdbnss} = %{EVRD}
Provides:	libdbnss-devel = %{EVRD}
Provides:	%{_lib}dbnss-devel = %{EVRD}
Provides:	db_nss-devel = %{EVRD}
Provides:	libdb_nss-devel = %{EVRD}
Conflicts:	db_nss-devel < %{__soversion}

%description -n	%{libdbnssdev}
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB includes B+tree, Extended Linear Hashing, Fixed and Variable-length
record access methods, transactions, locking, logging, shared memory caching
and database recovery. DB supports C, C++, Java and Perl APIs.

This package contains the header files and libraries for building nss
modules which use Berkeley DB.
%endif

%prep
%setup -q -n db-%{version}
%config_update

# fix strange attribs
find . -type f -perm 0444 -exec chmod 644 {} \;

rm -r lang/sql/jdbc/doc
%autopatch -p1

pushd dist
libtoolize --copy --force
cat %{_datadir}/aclocal/libtool.m4 >> aclocal.m4
popd

# Remove tags files which we don't need.
find . -name tags | xargs rm -f
# Define a shell function for fixing HREF references in the docs, which
# would otherwise break when we split the docs up into subpackages.
fixup_href() {
    for doc in $@ ; do
	chmod u+w ${doc}
	sed -e 's,="../api_c/,="../../%{name}-devel/api_c/,g' \
	    -e 's,="api_c/,="../%{name}-devel/api_c/,g' \
	    -e 's,="../api_cxx/,="../../%{name}-devel/api_cxx/,g' \
	    -e 's,="api_cxx/,="../%{name}-devel/api_cxx/,g' \
	    -e 's,="../api_tcl/,="../../%{name}-devel/api_tcl/,g' \
	    -e 's,="api_tcl/,="../%{name}-devel/api_tcl/,g' \
	    -e 's,="../java/,="../../%{name}-devel/java/,g' \
	    -e 's,="java/,="../%{name}-devel/java/,g' \
	    -e 's,="../examples_c/,="../../%{name}-devel/examples_c/,g' \
	    -e 's,="examples_c/,="../%{name}-devel/examples_c/,g' \
	    -e 's,="../examples_cxx/,="../../%{name}-devel/examples_cxx/,g' \
	    -e 's,="examples_cxx/,="../%{name}-devel/examples_cxx/,g' \
	    -e 's,="../ref/,="../../%{name}-devel/ref/,g' \
	    -e 's,="ref/,="../%{name}-devel/ref/,g' \
	    -e 's,="../images/,="../../%{name}-devel/images/,g' \
	    -e 's,="images/,="../%{name}-devel/images/,g' \
	    -e 's,="../utility/,="../../%{name}-utils/utility/,g' \
	    -e 's,="utility/,="../%{name}-utils/utility/,g' ${doc} > ${doc}.new
	touch -r ${doc} ${doc}.new
	cat ${doc}.new > ${doc}
	touch -r ${doc}.new ${doc}
	rm -f ${doc}.new
    done
}

set +x	# XXX painful to watch
# Fix all of the HTML files.
fixup_href `find . -name "*.html"`
set -x	# XXX painful to watch

cd dist
./s_config

%build
%ifarch ppc
CFLAGS="$CFLAGS -D_GNU_SOURCE -D_REENTRANT"
%endif
export CFLAGS

%if %{with java}
export CLASSPATH=
export JAVAC=%{javac}
export JAR=%{jar}
export JAVA=%{java}
export JAVACFLAGS="-nowarn"
JAVA_MAKE="JAR=%{jar} JAVAC=%{javac} JAVACFLAGS="-nowarn" JAVA=%{java}"
%endif

pushd build_unix
CONFIGURE_TOP="../dist" \
%configure	--includedir=%{_includedir}/%{name} \
		--enable-shared --enable-static \
		--enable-dbm \
%if %{with systap}
		--enable-systemtap \
%endif
		--enable-o_direct \
%if %{with sql}
		--enable-sql \
%endif
%if %{with db1}
		--enable-compat185 --enable-dump185 \
%endif
%if %{with tcl}
		--enable-tcl --with-tcl=%{_libdir} --enable-test \
%endif
		--enable-cxx \
%if %{with java}
		--enable-java \
%endif
%if %{with asmmutex}
%ifarch %{ix86}
		--disable-posixmutexes --with-mutex=x86/gcc-assembly
%endif
%ifarch x86_64
		--disable-posixmutexes --with-mutex=x86_64/gcc-assembly
%endif
%ifarch alpha
		--disable-posixmutexes --with-mutex=ALPHA/gcc-assembly
%endif
%ifarch ia64
		--disable-posixmutexes --with-mutex=ia64/gcc-assembly
%endif
%ifarch ppc
		--disable-posixmutexes --with-mutex=PPC/gcc-assembly
%endif
%ifarch %{sparc}
		--disable-posixmutexes --with-mutex=Sparc/gcc-assembly
%endif
%ifarch %{mips}
		--disable-posixmutexes --with-mutex=MIPS/gcc-assembly
%endif
%ifarch %{arm}
		--disable-posixmutexes --with-mutex=ARM/gcc-assembly
%endif
%else
		--enable-posixmutexes --with-mutex=POSIX/pthreads/library
%endif

%make $JAVA_MAKE
#if %{with java}
#pushd ../lang/java
#{javadoc} -d ../sql/jdbc/doc `find . -name '*.java'`
#popd
#endif
popd
%if %{with nss}
mkdir build_nss
pushd build_nss
CONFIGURE_TOP="../dist" \
%configure	--includedir=%{_includedir}/db_nss \
		--enable-shared --disable-static \
		--enable-dbm \
%if %{with systap}
		--enable-systemtap \
%endif
		--enable-o_direct \
		--disable-tcl --disable-cxx --disable-java \
		--with-uniquename=_nss \
		--enable-compat185 \
		--disable-cryptography --disable-queue \
		--disable-replication --disable-verify \
%if %{with asmmutex}
%ifarch %{ix86}
		--disable-posixmutexes --with-mutex=x86/gcc-assembly
%endif
%ifarch x86_64
		--disable-posixmutexes --with-mutex=x86_64/gcc-assembly
%endif
%ifarch alpha
		--disable-posixmutexes --with-mutex=ALPHA/gcc-assembly
%endif
%ifarch ia64
		--disable-posixmutexes --with-mutex=ia64/gcc-assembly
%endif
%ifarch ppc
		--disable-posixmutexes --with-mutex=PPC/gcc-assembly
%endif
%ifarch %{sparc}
		--disable-posixmutexes --with-mutex=Sparc/gcc-assembly
%endif
%ifarch %{mips}
		--disable-posixmutexes --with-mutex=MIPS/gcc-assembly
%endif
%ifarch %{arm}
		--disable-posixmutexes --with-mutex=ARM/gcc-assembly
%endif
%else
		--enable-posixmutexes --with-mutex=POSIX/pthreads/library
%endif



%make libdb_base=libdb_nss libso_target=libdb_nss-%{__soversion}.la libdir=/%{_lib}
popd
%endif

%install
make -C build_unix install_setup install_include install_lib install_utilities \
	DESTDIR=%{buildroot} emode=755

%if %{with nss}
make -C build_nss install_include install_lib libdb_base=libdb_nss \
	DESTDIR=%{buildroot} LIB_INSTALL_FILE_LIST=""

mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}/%{_libdir}/libdb_nss-%{__soversion}.so %{buildroot}/%{_lib}
ln -s  /%{_lib}/libdb_nss-%{__soversion}.so %{buildroot}%{_libdir}
%endif

ln -sf %{name}/db.h %{buildroot}%{_includedir}/db.h

# XXX This is needed for parallel install with db4.2
%if %{with parallel}
for F in %{buildroot}%{_bindir}/*db_* ; do
   mv $F `echo $F | sed -e 's,db_,%{name}_,'`
done
%endif

# Move db.jar file to the correct place, and version it
%if %{with java}
mkdir -p %{buildroot}%{_jnidir}
mv %{buildroot}%{_libdir}/db.jar %{buildroot}%{_jnidir}/db%{__soversion}-%{version}.jar
(cd %{buildroot}%{_jnidir} && for jar in *-%{version}*; do ln -s ${jar} ${jar/-%{version}/}; done)

#mkdir -p %{buildroot}%{_javadocdir}/db%{__soversion}-%{version}
#cp -a lang/sql/jdbc/doc/* %{buildroot}%{_javadocdir}/db%{__soversion}-%{version}
#ln -s db%{__soversion}-%{version} %{buildroot}%{_javadocdir}/db%{__soversion}

%endif

rm -rf %{buildroot}%{_includedir}/db_nss/db_cxx.h

%if %{with sql}
mv %{buildroot}%{_bindir}/{dbsql,db%{__soversion}_sql}
%endif

%files -n %{libname}
%defattr(644,root,root,755)
%doc LICENSE README
%attr(755,root,root) %{_libdir}/libdb-%{__soversion}.so

%files -n %{libdbcxx}
%defattr(755,root,root) 
%{_libdir}/libdb_cxx-%{__soversion}.so

%if %{with sql}
%files -n %{libdbsql}
%defattr(755,root,root)
%{_libdir}/libdb_sql-%{__soversion}.so
%endif

%if %{with java}
%files -n %{libdbjava}
%defattr(644,root,root,755)
#doc lang/sql/jdbc/doc/*
%doc examples/java/src
%attr(755,root,root) %{_libdir}/libdb_java-%{__soversion}.so
%attr(755,root,root) %{_libdir}/libdb_java-%{__soversion}_g.so
%{_jnidir}/db%{__soversion}.jar
%{_jnidir}/db%{__soversion}-%{version}.jar

#%files -n %{libdbjava}-javadoc
#%defattr(0644,root,root,0755)
#%doc %{_javadocdir}/db%{__soversion}-%{version}
#%doc %dir %{_javadocdir}/db%{__soversion}
%endif

%if %{with tcl}
%files -n %{libdbtcl}
%defattr(755,root,root)
%{_libdir}/libdb_tcl-%{__soversion}.so
%endif

%files utils
%doc docs/api_reference/C/db_archive.html
%doc docs/api_reference/C/db_checkpoint.html
%doc docs/api_reference/C/db_deadlock.html
%doc docs/api_reference/C/db_dump.html
%doc docs/api_reference/C/db_load.html
%doc docs/api_reference/C/db_printlog.html
%doc docs/api_reference/C/db_replicate.html
%doc docs/api_reference/C/db_stat.html
%doc docs/api_reference/C/db_upgrade.html
%doc docs/api_reference/C/db_verify.html
%{_bindir}/db*_archive
%{_bindir}/db*_checkpoint
%{_bindir}/db*_deadlock
%{_bindir}/db*_dump*
%{_bindir}/db*_hotbackup
%{_bindir}/db*_load
%{_bindir}/db*_printlog
%{_bindir}/db*_replicate
%{_bindir}/db*_stat
%{_bindir}/db*_tuner
%{_bindir}/db*_upgrade
%{_bindir}/db*_verify
%if %{with sql}
%doc docs/api_reference/C/dbsql.html
%{_bindir}/db%{__soversion}_sql
%endif

%files -n %{name}_recover
%doc docs/api_reference/C/db_recover.html
%{_bindir}/db*_recover

%files -n %{libnamedev}
%defattr(644,root,root,755)
%doc docs/api_reference
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/db.h
%if %{with db1}
%{_includedir}/%{name}/db_185.h
%endif
%{_includedir}/%{name}/db_cxx.h
%if %{with sql}
%{_includedir}/%{name}/dbsql.h
%endif
%{_includedir}/db.h
%{_libdir}/libdb.so
%{_libdir}/libdb-5.so
%{_libdir}/libdb_cxx.so
%{_libdir}/libdb_cxx-5.so
%if %{with sql}
%{_libdir}/libdb_sql.so
%{_libdir}/libdb_sql-5.so
%endif
%if %{with tcl}
%{_libdir}/libdb_tcl.so
%{_libdir}/libdb_tcl-5.so
%endif
%if %{with java}
%{_libdir}/libdb_java.so
%{_libdir}/libdb_java-5.so
%endif

%files -n %{libnamestatic}
%defattr(644,root,root,755)
%{_libdir}/*.a

%if %{with nss}
%files -n %{libdbnss}
%defattr(755,root,root) 
/%{_lib}/libdb_nss-%{__soversion}.so

%files -n %{libdbnssdev}
%defattr(644,root,root,755)
%dir %{_includedir}/db_nss
%{_includedir}/db_nss/db.h
#%%if %%{with db1}
%{_includedir}/db_nss/db_185.h
# %endif
%{_libdir}/libdb_nss.so
%{_libdir}/libdb_nss-5.so
%{_libdir}/libdb_nss-%{__soversion}.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12389 |21mr|db62-6.2.38-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api %(echo %{version}|cut -d. -f1,2)
%define shortapi %(echo %{version}|cut -d. -f1,1)
%define binext	%(echo %{api} | sed -e 's|\\.||g')
%define sname	db

%define libname		%mklibname %{sname} %{api}
%define devname		%mklibname %{sname} %{api} -d
%define statname	%mklibname %{sname} %{api} -s -d

%define libdbcxx	%mklibname %{sname}cxx %{api}
%define libdbsql	%mklibname %{sname}sql %{api}
%define libdbtcl	%mklibname %{sname}tcl %{api}
%define libdbjava	%mklibname %{sname}java %{api}

%define libdbnss	%mklibname %{sname}nss %{api}
%define devdbnss	%mklibname %{sname}nss %{api} -d

%bcond_with java
%bcond_without sql
%bcond_with tcl
%bcond_with db1
# Define to build a stripped down version to use for nss libraries
%bcond_with	 nss

# Define to rename utilities and allow parallel installation
%bcond_without parallel

# mutexes defaults to POSIX/pthreads/library
%bcond_with asmmutex

Summary:	The Berkeley DB database library for C
Name:		db62
Version:	6.2.38
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://www.oracle.com/technetwork/database/database-technologies/berkeleydb/downloads/index.html
Source0:	http://download.oracle.com/otn/berkeley-db/db-%{version}.tar.gz
# statically link db1 library
Patch0:		db-5.1.19-db185.patch
Patch1:		db-5.1.25-sql_flags.patch
Patch2:		db-5.1.19-tcl-link.patch
Patch3:		arm-thumb-mutex_db5.patch
# ubuntu patches
Patch102:	006-mutex_alignment.patch

BuildRequires:	ed
BuildRequires:	libtool
%if %{with sql}
BuildRequires:	pkgconfig(sqlite3)
%endif
%if %{with tcl}
BuildRequires:	pkgconfig(tcl)
%endif
%if %{with db1}
BuildRequires:	db1-devel
%endif
%if %{with java}
BuildRequires:	java-rpmbuild
BuildRequires:	java-devel
BuildRequires:	sharutils
%endif

%description
The Berkeley Database (Berkeley DB) is a programmatic toolkit that provides
embedded database support for both traditional and client/server applications.
Berkeley DB is used by many applications, including Python and Perl, so this
should be installed on all systems.

#-----------------------------------------------------------------------------
%package -n	%{libname}
Summary:	The Berkeley DB database library for C
Group:		System/Libraries

%description -n	%{libname}
This package contains the shared library required by Berkeley DB.

%files -n %{libname}
%doc LICENSE README
%{_libdir}/libdb-%{api}.so

#-----------------------------------------------------------------------------

%package -n	%{libdbcxx}
Summary:	The Berkeley DB database library for C++
Group:		System/Libraries

%description -n	%{libdbcxx}
This package contains the files needed to build C++ programs which use
Berkeley DB.


%files -n %{libdbcxx}
%{_libdir}/libdb_cxx-%{api}.so

#-----------------------------------------------------------------------------

%if %{with sql}
%package -n	%{libdbsql}
Summary:	The Berkeley DB database library for SQL
Group:		System/Libraries

%description -n	%{libdbsql}
This package contains the files needed to build SQL programs which use
Berkeley DB.

%files -n %{libdbsql}
%{_libdir}/libdb_sql-%{api}.so

%endif

#-----------------------------------------------------------------------------

%if %{with java}
%package -n	%{libdbjava}
Summary:	The Berkeley DB database library for C++
Group:		System/Libraries

%description -n	%{libdbjava}
This package contains the files needed to build Java programs which use
Berkeley DB.

%files -n %{libdbjava}
%doc lang/sql/jdbc/doc/*
%doc examples/java/src
%{_libdir}/libdb_java-%{api}.so
%{_libdir}/libdb_java-%{api}_g.so
%{_jnidir}/db%{api}.jar
%{_jnidir}/db%{api}-%{version}.jar


#-----------------------------------------------------------------------------

%package -n	%{libdbjava}-javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java

%description -n %{libdbjava}-javadoc
Javadoc for %{name}.

%files -n %{libdbjava}-javadoc
%{_javadocdir}/db%{api}
%{_javadocdir}/db%{api}-%{version}

%endif

#-----------------------------------------------------------------------------

%if %{with tcl}
%package -n	%{libdbtcl}
Summary:	The Berkeley DB database library for TCL
Group:		System/Libraries

%description -n	%{libdbtcl}
This package contains the header files, libraries, and documentation for
building tcl programs which use Berkeley DB.

%files -n %{libdbtcl}
%{_libdir}/libdb_tcl-%{api}.so

%endif

#-----------------------------------------------------------------------------

%package utils
Summary:	Command line tools for managing Berkeley DB databases
Group:		Databases
%if !%{with parallel}
Conflicts:	db-utils < %{api}
%endif
Requires:	%{name}_recover = %{EVRD}

%description	utils
This package contains command line tools for managing Berkeley DB databases.

%files utils
%doc docs/api_reference/C/db_archive.html
%doc docs/api_reference/C/db_checkpoint.html
%doc docs/api_reference/C/db_deadlock.html
%doc docs/api_reference/C/db_dump.html
%doc docs/api_reference/C/db_load.html
%doc docs/api_reference/C/db_printlog.html
%doc docs/api_reference/C/db_replicate.html
%doc docs/api_reference/C/db_stat.html
%doc docs/api_reference/C/db_upgrade.html
%doc docs/api_reference/C/db_verify.html
%{_bindir}/%{name}_archive
%{_bindir}/%{name}_checkpoint
%{_bindir}/%{name}_convert
%{_bindir}/%{name}_deadlock
%{_bindir}/%{name}_dump*
%{_bindir}/%{name}_hotbackup
%{_bindir}/%{name}_load
%{_bindir}/%{name}_log_verify
%{_bindir}/%{name}_printlog
%{_bindir}/%{name}_replicate
%{_bindir}/%{name}_stat
%{_bindir}/%{name}_tuner
%{_bindir}/%{name}_upgrade
%{_bindir}/%{name}_verify
%if %{with sql}
%doc docs/api_reference/C/dbsql.html
%{_bindir}/db%{api}_sql
%endif

#-----------------------------------------------------------------------------

%package -n	%{name}_recover
Summary:	Minimal package with '%{name}_recover' only
Group:		Databases

%description -n	%{name}_recover
This is a minimal package that ships with '%{name}_recover' only as it's
required for using "RPM ACID".

%files -n %{name}_recover
%doc docs/api_reference/C/db_recover.html
%{_bindir}/%{name}_recover

#-----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development libraries/header files for the Berkeley DB library
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
%if %{with sql}
Requires:	%{libdbsql} = %{EVRD}
%endif
%if %{with tcl}
Requires:	%{libdbtcl} = %{EVRD}
%endif
%if %{with java}
Requires:	%{libdbjava} = %{EVRD}
%endif
Requires:	%{libdbcxx} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
# Keeping db52 (later it will probably be 5.3) default
#Provides:	%{sname}-devel = %{EVRD}

# MD remove the following line if there is a newer fork of the same api
# ie: this is 6.0 and there is a fork of 6.1 or 6.2....
Provides:	%{sname}%{shortapi}-devel = %{EVRD}

%description -n	%{devname}
This package contains the header files, libraries, and documentation for
building programs which use Berkeley DB.

%files -n %{devname}
%doc docs/api_reference
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/db.h
%if %{with db1}
%{_includedir}/%{name}/db_185.h
%endif
%{_includedir}/%{name}/db_cxx.h
%if %{with sql}
%{_includedir}/%{name}/dbsql.h
%endif
%{_includedir}/db.h
%{_libdir}/libdb.so
%{_libdir}/libdb-6.so
%{_libdir}/libdb_cxx.so
%{_libdir}/libdb_cxx-6.so
%if %{with sql}
%{_libdir}/libdb_sql.so
%{_libdir}/libdb_sql-6.so
%endif
%if %{with tcl}
%{_libdir}/libdb_tcl.so
%{_libdir}/libdb_tcl-6.so
%endif
%if %{with java}
%{_libdir}/libdb_java.so
%{_libdir}/libdb_java-6.so
%endif

#-----------------------------------------------------------------------------

%package -n	%{statname}
Summary:	Development static libraries files for the Berkeley DB library
Group:		Development/Databases
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n	%{statname}
This package contains the static libraries for building programs which
use Berkeley DB.

%files -n %{statname}
%{_libdir}/*.a

#-----------------------------------------------------------------------------

%if %{with nss}
%package -n	%{libdbnss}
Summary:	The Berkeley DB database library for NSS modules
Group:		System/Libraries

%description -n	%{libdbnss}
This package contains the shared library required by some nss modules
that use Berkeley DB.

%files -n %{libdbnss}
/%{_lib}/libdb_nss-%{api}.so

#-----------------------------------------------------------------------------

%package -n	%{devdbnss}
Summary:	Development libraries/header files for building nss modules with Berkeley DB
Group:		Development/Databases
Requires:	%{libdbnss} = %{EVRD}
Provides:	dbnss%{binext}-devel = %{EVRD}
Provides:	db_nss%{binext}-devel = %{EVRD}

%description -n	%{devdbnss}
This package contains the header files and libraries for building nss
modules which use Berkeley DB.

%files -n %{devdbnss}
%dir %{_includedir}/db_nss
%{_includedir}/db_nss/db.h
%if %{with db1}
%{_includedir}/db_nss/db_185.h
%endif
%{_libdir}/libdb_nss.so
%{_libdir}/libdb_nss-6.so
%{_libdir}/libdb_nss-%{api}.so

%endif

#-----------------------------------------------------------------------------

%prep
%setup -qn %{sname}-%{version}
# fix strange attribs
find . -type f -perm 0444 -exec chmod 644 {} \;
%autopatch -p1

# copy modern config.* files to target
for f in config.guess config.sub ; do
        test -f /usr/share/libtool/config/$f || continue
        find . -type f -name $f -exec cp /usr/share/libtool/config/$f \{\} \;
done


pushd dist
libtoolize --copy --force
cat %{_datadir}/aclocal/libtool.m4 >> aclocal.m4
popd

# Remove tags files which we don't need.
find . -name tags | xargs rm -f
# Define a shell function for fixing HREF references in the docs, which
# would otherwise break when we split the docs up into subpackages.
fixup_href() {
    for doc in $@ ; do
	chmod u+w ${doc}
	sed -e 's,="../api_c/,="../../%{name}-devel/api_c/,g' \
	    -e 's,="api_c/,="../%{name}-devel/api_c/,g' \
	    -e 's,="../api_cxx/,="../../%{name}-devel/api_cxx/,g' \
	    -e 's,="api_cxx/,="../%{name}-devel/api_cxx/,g' \
	    -e 's,="../api_tcl/,="../../%{name}-devel/api_tcl/,g' \
	    -e 's,="api_tcl/,="../%{name}-devel/api_tcl/,g' \
	    -e 's,="../java/,="../../%{name}-devel/java/,g' \
	    -e 's,="java/,="../%{name}-devel/java/,g' \
	    -e 's,="../examples_c/,="../../%{name}-devel/examples_c/,g' \
	    -e 's,="examples_c/,="../%{name}-devel/examples_c/,g' \
	    -e 's,="../examples_cxx/,="../../%{name}-devel/examples_cxx/,g' \
	    -e 's,="examples_cxx/,="../%{name}-devel/examples_cxx/,g' \
	    -e 's,="../ref/,="../../%{name}-devel/ref/,g' \
	    -e 's,="ref/,="../%{name}-devel/ref/,g' \
	    -e 's,="../images/,="../../%{name}-devel/images/,g' \
	    -e 's,="images/,="../%{name}-devel/images/,g' \
	    -e 's,="../utility/,="../../%{name}-utils/utility/,g' \
	    -e 's,="utility/,="../%{name}-utils/utility/,g' ${doc} > ${doc}.new
	touch -r ${doc} ${doc}.new
	cat ${doc}.new > ${doc}
	touch -r ${doc}.new ${doc}
	rm -f ${doc}.new
    done
}

set +x	# XXX painful to watch
# Fix all of the HTML files.
fixup_href `find . -name "*.html"`
set -x	# XXX painful to watch

cd dist
./s_config

%build
# fails to build in i586
%ifarch %ix86
export CC=gcc
export CXX=g++
%endif

%ifarch ppc
CFLAGS="$CFLAGS -D_GNU_SOURCE -D_REENTRANT"
%endif
export CFLAGS

%ifnarch %{arm} %{e2k}
%global ldflags %{ldflags} -fuse-ld=bfd
%endif

%if %{with java}
export CLASSPATH=
export JAVAC=%{javac}
export JAR=%{jar}
export JAVA=%{java}
export JAVACFLAGS="-nowarn"
#JAVA_MAKE="JAR=%{jar} JAVAC=%{javac} JAVACFLAGS="-nowarn" JAVA=%{java}"
%endif
pushd build_unix
CONFIGURE_TOP="../dist" \
%configure \
	--includedir=%{_includedir}/%{name} \
	--enable-shared \
	--enable-static \
	--enable-dbm \
	--enable-o_direct \
%if %{with sql}
	--enable-sql \
%endif
%if %{with db1}
	--enable-compat185 \
	--enable-dump185 \
%endif
%if %{with tcl}
	--enable-tcl --with-tcl=%{_libdir} --enable-test \
%endif
	--enable-cxx \
%if %{with java}
	--enable-java \
%endif
%if %{with asmmutex}
%ifarch %{ix86}
	--disable-posixmutexes \
	--with-mutex=x86/gcc-assembly
%endif
%ifarch %{x86_64}
	--disable-posixmutexes \
	--with-mutex=x86_64/gcc-assembly
%endif
%ifarch alpha
	--disable-posixmutexes \
	--with-mutex=ALPHA/gcc-assembly
%endif
%ifarch ia64
	--disable-posixmutexes \
	--with-mutex=ia64/gcc-assembly
%endif
%ifarch ppc
	--disable-posixmutexes \
	--with-mutex=PPC/gcc-assembly
%endif
%ifarch %{sparc}
	--disable-posixmutexes \
	--with-mutex=Sparc/gcc-assembly
%endif
%ifarch %{mips}
	--disable-posixmutexes \
	--with-mutex=MIPS/gcc-assembly
%endif
%ifarch %{arm}
	--disable-posixmutexes \
	--with-mutex=ARM/gcc-assembly
%endif
%ifarch %{armx}
	--disable-posixmutexes \
	--with-mutex=ARM64/gcc-assembly
%endif
%else
	--enable-posixmutexes \
	--with-mutex=POSIX/pthreads/library
%endif

%make $JAVA_MAKE
%if %{with java}
pushd ../lang/java
%{javadoc} -d ../sql/jdbc/doc `find . -name '*.java'`
popd
%endif
popd
%if %{with nss}
mkdir build_nss
pushd build_nss
CONFIGURE_TOP="../dist" \
%configure \
	--includedir=%{_includedir}/db_nss \
	--enable-shared \
	--disable-static \
	--enable-dbm \
	--enable-o_direct \
	--disable-tcl \
	--disable-cxx \
	--disable-java \
	--with-uniquename=_nss \
	--enable-compat185 \
	--disable-cryptography \
	--disable-queue \
	--disable-replication \
	--disable-verify \
%if %{with asmmutex}
%ifarch %{ix86}
	--disable-posixmutexes \
	--with-mutex=x86/gcc-assembly
%endif
%ifarch x86_64
	--disable-posixmutexes \
	--with-mutex=x86_64/gcc-assembly
%endif
%ifarch alpha
	--disable-posixmutexes \
	--with-mutex=ALPHA/gcc-assembly
%endif
%ifarch ia64
	--disable-posixmutexes \
	--with-mutex=ia64/gcc-assembly
%endif
%ifarch ppc
	--disable-posixmutexes \
	--with-mutex=PPC/gcc-assembly
%endif
%ifarch %{sparc}
	--disable-posixmutexes \
	--with-mutex=Sparc/gcc-assembly
%endif
%ifarch %{mips}
	--disable-posixmutexes \
	--with-mutex=MIPS/gcc-assembly
%endif
%ifarch %{arm}
	--disable-posixmutexes \
	--with-mutex=ARM/gcc-assembly
%endif
%else
	--enable-posixmutexes \
	--with-mutex=POSIX/pthreads/library
%endif

%make libdb_base=libdb_nss libso_target=libdb_nss-%{api}.la libdir=/%{_lib}
popd
%endif

%install
make -C build_unix install_setup install_include install_lib install_utilities \
	DESTDIR=%{buildroot} emode=755

%if %{with nss}
make -C build_nss install_include install_lib libdb_base=libdb_nss \
	DESTDIR=%{buildroot} LIB_INSTALL_FILE_LIST=""

mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}/%{_libdir}/libdb_nss-%{api}.so %{buildroot}/%{_lib}
ln -s  /%{_lib}/libdb_nss-%{api}.so %{buildroot}%{_libdir}
%endif

ln -sf %{name}/db.h %{buildroot}%{_includedir}/db.h

# XXX This is needed for parallel install with db4.2
%if %{with parallel}
for F in %{buildroot}%{_bindir}/*db_* ; do
	mv $F `echo $F | sed -e 's,db_,%{name}_,'`
done
%endif

# Move db.jar file to the correct place, and version it
%if %{with java}
mkdir -p %{buildroot}%{_jnidir}
mv %{buildroot}%{_libdir}/db.jar %{buildroot}%{_jnidir}/db%{api}-%{version}.jar
(cd %{buildroot}%{_jnidir} && for jar in *-%{version}*; do %{__ln_s} ${jar} ${jar/-%{version}/}; done)

mkdir -p %{buildroot}%{_javadocdir}/db%{api}-%{version}
cp -a lang/sql/jdbc/doc/* %{buildroot}%{_javadocdir}/db%{api}-%{version}
ln -s db%{api}-%{version} %{buildroot}%{_javadocdir}/db%{api}

%endif

rm -rf %{buildroot}%{_includedir}/db_nss/db_cxx.h

%if %{with sql}
mv %{buildroot}%{_bindir}/{dbsql,db%{api}_sql}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12390 |21mr|dbench-4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Filesystem benchmark similar to Netbench
Name:		dbench
Version:	4.0
Release:	7
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://samba.org/ftp/tridge/dbench/README
Source0:	http://samba.org/ftp/tridge/dbench/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(popt)

%description
dbench is a filesystem benchmark that generates load patterns similar
to those of the commercial Netbench benchmark, but without requiring
a lab of Windows load generators to run. It is now considered a de-facto
standard for generating load on the Linux VFS.

%files
%doc COPYING README
%attr(755,root,root) %{_bindir}/dbench
%attr(755,root,root) %{_bindir}/tbench
%attr(755,root,root) %{_bindir}/tbench_srv
%attr(644,root,root) %{_mandir}/man1/dbench.1.*
%attr(644,root,root) %{_mandir}/man1/tbench.1.*
%attr(644,root,root) %{_mandir}/man1/tbench_srv.1.*
%attr(644,root,root) %{_datadir}/%{name}/client.txt

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure --datadir=/usr/share/dbench
%make CC="cc %build_ldflags"

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/%{name}
install -c -m 0755 dbench %{buildroot}%{_bindir}/dbench
install -c -m 0755 tbench %{buildroot}%{_bindir}/tbench
install -c -m 0755 tbench_srv %{buildroot}%{_bindir}/tbench_srv
install -c -m 0644 dbench.1 %{buildroot}%{_mandir}/man1/dbench.1
install -c -m 0644 client.txt %{buildroot}%{_datadir}/%{name}/client.txt
pushd %{buildroot}%{_mandir}/man1/
ln -sf dbench.1 tbench.1
ln -sf dbench.1 tbench_srv.1
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12391 |21mr|dblatex-0.3.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DocBook to LaTeX/ConTeXt Publishing
Name:		dblatex
Version:	0.3.12
Release:	1
Group:		Publishing
License:	GPLv2+
Url:		http://dblatex.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}3-%{version}.tar.bz2
Source1:	COPYING-docbook-xsl
Patch0:		dblatex-0.3.11-which-shutil.patch
Patch1:		dblatex-0.3.11-disable-debian.patch
BuildRequires:	imagemagick
BuildRequires:	texlive-tetex
BuildRequires:	tetex-latex
BuildRequires:	texlive-latex.bin
BuildRequires:	texlive-stmaryrd
BuildRequires:	texlive-wasysym
BuildRequires:	texlive-bookmark
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(python3)
Buildrequires:  /usr/bin/pathfix.py
Requires:	docbook-dtd44-xml
Requires:	docbook-dtd45-xml
Requires:	imagemagick
Requires:	texlive-tetex
Requires:	tetex-latex
Requires:	texlive-bibtopic
Requires:	transfig
Requires:	xmltex
Requires:	xsltproc
Requires(post,postun):	kpathsea
BuildArch:	noarch

%description
dblatex is a program that transforms your SGML/XMLDocBook
documents to DVI, PostScript or PDF by translating them
into pure LaTeX as a first process.  MathML 2.0 markups
are supported, too. It started as a clone of DB2LaTeX.

%post
/usr/bin/texhash

%postun
/usr/bin/texhash

%files
%{_mandir}/man1/dblatex.1*
%doc COPYRIGHT docs/manual.pdf COPYING-docbook-xsl README-xsltml
%{python3_sitelib}/dbtexmf/
%{python3_sitelib}/dblatex-*.egg-info
%{_bindir}/dblatex
%{_datadir}/dblatex/
%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/
%dir %{_sysconfdir}/dblatex

#-----------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}3-%{version}

#rm -rf lib/contrib
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" .

%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --root %{buildroot}
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/dblatex

# these are already in tetex-latex:
for file in bibtopic.sty enumitem.sty ragged2e.sty passivetex/ xelatex/; do
  rm -rf %{buildroot}%{_datadir}/dblatex/latex/misc/$file
done

mkdir -p %{buildroot}%{_datadir}/texlive/texmf-dist/tex/latex/dblatex
for file in ` find %{buildroot}%{_datadir}/dblatex/latex/ -name '*.sty' ` ; do
  mv $file %{buildroot}%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
done

## also move .xetex files
for file in ` find %{buildroot}%{_datadir}/dblatex/latex/ -name '*.xetex' ` ; do
  mv $file %{buildroot}%{_datadir}/texlive/texmf-dist/tex/latex/dblatex/`basename $file`;
done

rmdir %{buildroot}%{_datadir}/dblatex/latex/{misc,contrib/example,style}

mkdir -p %{buildroot}%{_sysconfdir}/dblatex
# shipped in %%docs
rm -rf %{buildroot}%{_datadir}/doc/

sed -e 's/\r//' xsl/mathml2/README > README-xsltml
touch -r xsl/mathml2/README README-xsltml
cp -p %{SOURCE1} COPYING-docbook-xsl


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12392 |21mr|dbus-1.12.20-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _rundir /run

%define api 1
%define major 3
%define libname %mklibname dbus- %{api} %{major}
%define devname %mklibname dbus- %{api} -d

%bcond_with verbose

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

# systemd depends from dbus, do not add "OrderWithRequires: systemd" here
# Note "Require(pre): setup" bellow
%global __ordergen_orderwithrequires %{nil}

Summary:	D-Bus message bus
Name:		dbus
Version:	1.12.20
Release:	9
License:	GPLv2+ or AFL
Group:		System/Servers
Url:		http://www.freedesktop.org/Software/dbus
Source0:	http://dbus.freedesktop.org/releases/dbus/%{name}-%{version}.tar.gz
Source1:	doxygen_to_devhelp.xsl
Source2:	https://src.fedoraproject.org/rpms/dbus/raw/master/f/00-start-message-bus.sh
Source3:	https://src.fedoraproject.org/rpms/dbus/raw/master/f/dbus.socket
Source4:	https://src.fedoraproject.org/rpms/dbus/raw/master/f/dbus-daemon.service
Source5:	https://src.fedoraproject.org/rpms/dbus/raw/master/f/dbus.user.socket
Source6:	https://src.fedoraproject.org/rpms/dbus/raw/master/f/dbus-daemon.user.service
Patch0:		dbus-1.10.10-docbook-dtd45.patch
Patch1:		0001-tools-Use-Python3-for-GetAllMatchRules.patch
# (fc) 1.0.2-5mdv disable fatal warnings on check (fd.o bug #13270)
Patch3:		dbus-1.0.2-disable_fatal_warning_on_check.patch
Patch5:		dbus-1.10.10-fix-disabling-of-xml-docs.patch
Patch7:		dbus-1.10.10-increase-timeouts.patch
Patch100:	CVE-2022-42010.patch
Patch101:	CVE-2022-42011.patch
Patch102:	CVE-2022-42012.patch
Patch103:	CVE-2023-34969.patch
BuildRequires:	asciidoc
BuildRequires:	autoconf-archive
BuildRequires:	docbook2x
BuildRequires:	docbook-dtd45-xml
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	xmlto
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(x11)
Requires(pre):	setup
Provides:	should-restart = system

%description
D-Bus is a system for sending messages between applications. It is
used both for the system-wide message bus service, and as a
per-user-login-session messaging facility.


%package common
Summary:	D-BUS message bus configuration
Group:		System/Servers
BuildArch:	noarch
Requires:	dbus-daemon = %{EVRD}
%{?systemd_requires}

%description common
The %{name}-common package provides the configuration and setup files for D-Bus
implementations to provide a System and User Message Bus.

%files common
%dir %{_sysconfdir}/dbus-%{api}
%dir %{_sysconfdir}/dbus-%{api}/session.d
%dir %{_sysconfdir}/dbus-%{api}/system.d
%dir %{_datadir}/dbus-%{api}
%config(noreplace) %{_sysconfdir}/dbus-%{api}/*.conf
%{_presetdir}/86-%{name}-common.preset
%{_datadir}/dbus-%{api}/system-services
%{_datadir}/dbus-%{api}/services
%{_datadir}/dbus-%{api}/interfaces
%{_datadir}/dbus-%{api}/session.conf
%{_datadir}/dbus-%{api}/system.conf
%{_unitdir}/dbus.socket
%{_userunitdir}/dbus.socket

%post common
%systemd_post dbus.socket
%systemd_user_post dbus.socket

%preun common
%systemd_preun dbus.socket
%systemd_user_preun dbus.socket

#----------------------------------------------------------------------------

%package daemon
Summary:	D-BUS message bus
Group:		System/Servers
%{?systemd_requires}
Requires:	dbus-common = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	dbus-tools = %{EVRD}
Requires(pre):	shadow
Provides:	dbus = %{EVRD}

%description daemon
D-BUS is a system for sending messages between applications. It is
used both for the system-wide message bus service, and as a
per-user-login-session messaging facility.

%files daemon
%ghost %dir %{_rundir}/%{name}
%dir %{_localstatedir}/lib/dbus/
%{_bindir}/dbus-daemon
%{_bindir}/dbus-cleanup-sockets
%{_bindir}/dbus-run-session
%{_bindir}/dbus-test-tool
%{_mandir}/man1/dbus-cleanup-sockets.1*
%{_mandir}/man1/dbus-daemon.1*
%{_mandir}/man1/dbus-run-session.1*
%{_mandir}/man1/dbus-test-tool.1*
%dir %{_libexecdir}/dbus-%{api}
# See doc/system-activation.txt in source tarball for the rationale
# behind these permissions
%attr(4750,root,messagebus) %{_libexecdir}/dbus-1/dbus-daemon-launch-helper
%{_tmpfilesdir}/dbus.conf
%{_unitdir}/dbus-daemon.service
%{_userunitdir}/dbus-daemon.service

%post daemon
%systemd_post dbus-daemon.service
%systemd_user_post dbus-daemon.service

%preun daemon
%systemd_preun dbus-daemon.service
%systemd_user_preun dbus-daemon.service

#----------------------------------------------------------------------------

%package tools
Summary:	D-BUS Tools and Utilities
Group:		System/Servers
Requires:	%{libname} = %{EVRD}

%description tools
Tools and utilities to interact with a running D-Bus Message Bus, provided by
the reference implementation.

%files tools
%{_bindir}/dbus-send
%{_bindir}/dbus-monitor
%{_bindir}/dbus-update-activation-environment
%{_bindir}/dbus-uuidgen
%{_mandir}/man1/dbus-monitor.1*
%{_mandir}/man1/dbus-send.1*
%{_mandir}/man1/dbus-update-activation-environment.1*
%{_mandir}/man1/dbus-uuidgen.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for using D-Bus
Group:		System/Libraries
# compat with Fedora/RH
Provides: dbus-libs = %{EVRD}

%description -n %{libname}
D-Bus shared library.

%files -n %{libname}
%{_libdir}/libdbus-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for D-Bus
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and static libraries for D-Bus.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/libdbus-%{api}.so
%{_libdir}/dbus-1.0/include/
%{_libdir}/pkgconfig/dbus-%{api}.pc
%{_includedir}/dbus-1.0/
%{_libdir}/cmake/DBus1/DBus1*.cmake
%{_datadir}/xml/dbus-1/*.dtd

#----------------------------------------------------------------------------

%package x11
Summary:	X11-requiring add-ons for D-Bus
Group:		System/Servers
Requires:	%{name}-daemon = %{EVRD}

%description x11
D-Bus contains some tools that require Xlib to be installed, those are
in this separate package so server systems need not install X.

%files x11
%{_sysconfdir}/X11/xinit.d/*
%{_bindir}/dbus-launch
%{_mandir}/man1/dbus-launch.1*

#----------------------------------------------------------------------------

%package doc
Summary:	Developer documentation for D-BUS
Group:		Books/Computer books
Recommends:	devhelp

%description doc
This package contains developer documentation for D-Bus along with
other supporting documentation such as the introspect dtd file.

%files doc
%doc COPYING NEWS
%doc doc/introspect.dtd doc/introspect.xsl doc/system-activation.txt
%{_docdir}/%{name}/*
%doc %{_datadir}/devhelp/books/dbus

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
autoreconf -fi

%serverbuild_hardened
COMMON_ARGS=" --enable-user-session --enable-systemd --with-systemdsystemunitdir=%{_unitdir} \
	--with-systemduserunitdir=%{_userunitdir} --enable-inotify --enable-libaudit --disable-selinux \
	--with-system-pid-file=%{_rundir}/messagebus.pid  \
%if %{with selinux}
	--enable-selinux \
%else
	--disable-selinux \
%endif
	--with-system-socket=%{_rundir}/dbus/system_bus_socket \
	--libexecdir=%{_libexecdir}/dbus-%{api} --disable-static"

#### Build once with tests to make check
%configure \
	$COMMON_ARGS \
	--enable-libaudit \
	--disable-tests \
	--disable-asserts \
	--enable-doxygen-docs \
	--enable-xml-docs \
	--enable-x11-autolaunch \
	--with-x \
%if %{with verbose}
	--enable-verbose-mode
%else
	--disable-verbose-mode
%endif

%make_build
doxygen Doxyfile
xsltproc -o dbus.devhelp %{SOURCE1} doc/api/xml/index.xml

%check
%make_build check

%install
%make_install

# Obsolete, but still widely used, for drop-in configuration snippets.
install --directory %{buildroot}%{_sysconfdir}/dbus-%{api}/session.d
install --directory %{buildroot}%{_sysconfdir}/dbus-%{api}/system.d
install --directory %{buildroot}%{_datadir}/dbus-1/interfaces

# (tpg) needed for dbus-uuidgen
mkdir -p %{buildroot}%{_var}/lib/dbus
mkdir -p %{buildroot}/run/dbus

# Delete upstream units
rm -f %{buildroot}%{_unitdir}/dbus.{socket,service}
rm -f %{buildroot}%{_unitdir}/sockets.target.wants/dbus.socket
rm -f %{buildroot}%{_unitdir}/multi-user.target.wants/dbus.service
rm -f %{buildroot}%{_userunitdir}/dbus.{socket,service}
rm -f %{buildroot}%{_userunitdir}/sockets.target.wants/dbus.socket
rm -f %{buildroot}%{_sysusersdir}/dbus.conf

# Install downstream units
mkdir -p %{buildroot}%{_sysconfdir}/X11/xinit.d
install -Dp -m755 %{SOURCE2} %{buildroot}%{_sysconfdir}/X11/xinit.d/00-start-message-bus.sh
install -Dp -m644 %{SOURCE3} %{buildroot}%{_unitdir}/dbus.socket
install -Dp -m644 %{SOURCE4} %{buildroot}%{_unitdir}/dbus-daemon.service
install -Dp -m644 %{SOURCE5} %{buildroot}%{_userunitdir}/dbus.socket
install -Dp -m644 %{SOURCE6} %{buildroot}%{_userunitdir}/dbus-daemon.service

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-%{name}-common.preset << EOF
enable dbus-daemon.service
enable dbus.socket
EOF

#add devhelp compatible helps
mkdir -p %{buildroot}%{_datadir}/devhelp/books/dbus
mkdir -p %{buildroot}%{_datadir}/devhelp/books/dbus/api

cp dbus.devhelp %{buildroot}%{_datadir}/devhelp/books/dbus
cp doc/dbus-specification.html %{buildroot}%{_datadir}/devhelp/books/dbus
cp doc/dbus-faq.html %{buildroot}%{_datadir}/devhelp/books/dbus
cp doc/dbus-tutorial.html %{buildroot}%{_datadir}/devhelp/books/dbus
cp doc/api/html/* %{buildroot}%{_datadir}/devhelp/books/dbus/api

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12393 |21mr|dbus-broker-33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%define api 1
%define major 3
%define libname %mklibname dbus- %{api} %{major}
%define devname %mklibname -d dbus- %{api}

Summary:	Linux D-Bus Message Broker
Name:		dbus-broker
Version:	33
Release:	1
License:	ASL 2.0
Group:		System/Servers
Url:		https://github.com/bus1/dbus-broker
Source0:	https://github.com/bus1/dbus-broker/releases/download/v%{version}/dbus-broker-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(audit)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(audit)
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
Requires(pre):	shadow
%{?systemd_requires}

%description
dbus-broker is an implementation of a message bus as defined by the D-Bus
specification. Its aim is to provide high performance and reliability, while
keeping compatibility to the D-Bus reference implementation. It is exclusively
written for Linux systems, and makes use of many modern features provided by
recent Linux kernel releases.

%prep
%autosetup -p1

%build
%meson -Daudit=true \
	-Ddocs=false \
%if %{with selinux}
	-Dselinux=true \
%endif
	-Dsystem-console-users=gdm,sddm,lightdm,lxdm \
	-Dlinux-4-17=true

%meson_build

%install
%meson_install

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-%{name}.preset << EOF
enable %{name}.service
EOF

%check
%meson_test

%pre
# create dbus user and group
getent group messagebus >/dev/null || groupadd -f -g messagebus -r messagebus
if ! getent passwd messagebus >/dev/null ; then
    if ! getent passwd messagebus >/dev/null ; then
	useradd -r -u messagebus -g messagebus -d '/' -s /sbin/nologin -c "System message bus" messagebus
    else
	useradd -r -g messagebus -d '/' -s /sbin/nologin -c "System message bus" messagebus
    fi
fi
exit 0

%post
# systemd has special checks if dbus.socket and dbus.service are active and
# will close the dbus connection if they are not. When the symlinks are changed
# from dbus-daemon to dbus-broker, systemd would think that dbus is gone,
# because dbus.service (which now is an alias for dbus-broker.service) is not
# active. Let's add a temporary override that will keep pid1 happy.
if [ $1 -eq 1 ] ; then
    if systemctl is-enabled -q dbus-daemon.service; then
# Install a temporary generator that'll keep providing the
# alias as it was.
	mkdir -p /run/systemd/system-generators/
	cat >>/run/systemd/system-generators/dbus-symlink-generator <<EOF
#!/bin/sh
ln -s %{_unitdir}/dbus-daemon.service \$2/dbus.service
EOF
	chmod +x /run/systemd/system-generators/dbus-symlink-generator
	chcon system_u:object_r:init_exec_t:s0 /run/systemd/system-generators/dbus-symlink-generator || :
    fi
    if systemctl is-enabled -q --global dbus-daemon.service; then
	mkdir -p /run/systemd/user-generators/
	cat >>/run/systemd/user-generators/dbus-symlink-generator <<EOF
#!/bin/sh
ln -s %{_userunitdir}/dbus-daemon.service \$2/dbus.service
EOF
	chmod +x /run/systemd/user-generators/dbus-symlink-generator
    fi

    systemctl --no-reload -q disable dbus-daemon.service || :
    systemctl --no-reload -q --global disable dbus-daemon.service || :
    systemctl --no-reload -q enable dbus-broker.service || :
    systemctl --no-reload -q --global enable dbus-broker.service || :
fi

%triggerpostun -- dbus-daemon
if [ $2 -eq 0 ]; then
    systemctl --no-reload enable dbus-broker.service || :
    systemctl --no-reload --global enable dbus-broker.service || :
fi

%triggerin -- setup
if [ $1 -ge 2 -o $2 -ge 2 ]; then

    if ! getent group messagebus >/dev/null 2>&1; then
	groupadd -r messagebus 2>/dev/null || :
    fi

    if ! getent passwd messagebus >/dev/null 2>&1; then
	useradd -r -g messagebus -d '/' -s /sbin/nologin -c "System message bus" messagebus 2>/dev/null ||:
    fi
fi

%files
%{_presetdir}/86-%{name}.preset
%{_bindir}/dbus-broker
%{_bindir}/dbus-broker-launch
%{_unitdir}/dbus-broker.service
%{_journalcatalogdir}/%{name}*.catalog
%{_userunitdir}/dbus-broker.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12394 |21mr|dbus-c++-0.9.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Native C++ bindings for D-Bus
Name:		dbus-c++
Version:	0.9.0
Release:	12
License:	LGPLv2+
Group:		System/Libraries
Url:		https://sourceforge.net/projects/dbus-cplusplus/
Source0:	http://downloads.sourceforge.net/project/dbus-cplusplus/%{name}/%{version}/lib%{name}-%{version}.tar.gz
Patch0:		libdbus-c++-0.9.0-mdv-build_order.patch
Patch1:		libdbus-c++-0.9.0-mdv-linking.patch
Patch2:		dbus-c++-0.9.0-gcc-4.7.patch
Patch3:		dbus-c++-0.9.0-macro_collision.patch
Patch4:		dbus-c++-0.9.0-writechar.patch
# Remove broken classes for multithreading support
Patch5:		dbus-c++-0.9.0-threading.patch
BuildRequires:	libtool
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gdkmm-2.4)
BuildRequires:	pkgconfig(glib-2.0)
# It's in Contrib so don't use it
#BuildRequires:	ecore-devel

%description
Native C++ bindings for D-Bus for use in C++ programs.

%files
%doc COPYING AUTHORS
%{_bindir}/dbusxx-introspect
%{_bindir}/dbusxx-xml2cpp

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Native C++ bindings for D-Bus
Group:		System/Libraries

%description -n %{libname}
Native C++ bindings for D-Bus for use in C++ programs.

%files -n %{libname}
%{_libdir}/libdbus-c++*-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name} >= %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc TODO
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n lib%{name}-%{version}

%build
autoreconf -fi
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static \
	--disable-ecore \
	--enable-glib \
	--disable-tests
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12395 |21mr|dbus-glib-0.110-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 2
%define libname %mklibname dbus-glib- %{api} %{major}
%define devname %mklibname dbus-glib- %{api} -d

%define git_url git://git.freedesktop.org/git/dbus/dbus-glib
%bcond_with crosscompile

Summary:	D-Bus message bus
Name:		dbus-glib
Version:	0.110
Release:	1
License:	AFL and GPLv2+
Group:		System/Libraries
Url:		http://www.freedesktop.org/Software/dbus
Source0:	http://dbus.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
D-Bus add-on library to integrate the standard D-Bus library with
the GLib thread abstraction and main loop.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	D-Bus GLib-based library
Group:		System/Libraries
Provides:	dbus-glib = %{EVRD}

%description -n %{libname}
D-Bus add-on library to integrate the standard D-Bus library with
the GLib thread abstraction and main loop.

%files -n %{libname}
%{_libdir}/libdbus-glib-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	D-Bus headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers libraries for D-Bus.

%files -n %{devname}
%{_bindir}/dbus-binding-tool
%{_sysconfdir}/bash_completion.d/dbus-bash-completion.sh
%{_libexecdir}/dbus-bash-completion-helper
%{_libdir}/libdbus-glib-%{api}.so
%{_libdir}/pkgconfig/dbus-glib-%{api}.pc
%{_includedir}/dbus-1.0/dbus/*.h
%{_datadir}/gtk-doc/html/dbus-glib/
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
#fix build with new automake
sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.*
autoreconf -fi

%build
%if %{with crosscompile}
export ac_cv_have_abstract_sockets=yes
export ac_cv_func_posix_getpwnam_r=yes
export have_abstract_sockets=yes
%endif
%configure  \
	--disable-static \
	--disable-tests \
	--disable-verbose-mode \
%if %{with crosscompile}
	--with-dbus-binding-tool=/usr/bin/dbus-binding-tool \
%endif
	--disable-asserts

%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12396 |21mr|dbus-java-2.7-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# the package is arch-dependent because scripts contain arch dependent paths
# the debuginfo package will be empty if produced
%global debug_package %{nil}

Name:       dbus-java
Version:    2.7
Release:    30
Summary:    Java implementation of the DBus protocol
License:    AFL or LGPLv2
URL:        http://freedesktop.org/wiki/Software/DBusBindings
Source0:    http://dbus.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
Group:      Development/Java
# OSGi manifests
Source1:    %{name}-osgi-MANIFEST.MF

Patch1:     classpath_fix.patch
# fedora specific paths
Patch2:     parallel.patch
# java-7 compatibility patch
# https://bugs.freedesktop.org/show_bug.cgi?id=44791
Patch3:     utf-8-encoding.patch
Patch4:     version-less-jars.patch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  javapackages-local
BuildRequires:  texlive-amsfonts
BuildRequires:  texlive-amsmath
BuildRequires:  texlive
BuildRequires:  texlive-cm
# contrib
#BuildRequires:  texlive-collection-fontsextra
BuildRequires:  texlive-latex
BuildRequires:  texlive-tlpkg
BuildRequires:  texlive-metafont
BuildRequires:  texlive-pdftex
BuildRequires:  texlive-pdftex-def
BuildRequires:  texlive-hyperref
BuildRequires:  texlive-oberdiek
BuildRequires:  texlive-graphics
BuildRequires:  texlive-iftex
BuildRequires:  texlive-latexconfig
BuildRequires:  texlive-texconfig
BuildRequires:  texlive-tex4ht
BuildRequires:  texlive-kpathsea
BuildRequires:  texlive-url
BuildRequires:  docbook-to-man
BuildRequires:  gettext
BuildRequires:  libmatthew-java
BuildRequires:  docbook2x
BuildRequires:  texlive-preprint

Requires:   java >= 1:1.6.0
Requires:   javapackages-tools
Requires:   libmatthew-java

%description
D-Bus is a message bus system, a simple way for applications to
talk to one another. In addition to interprocess communication,
D-Bus helps coordinate process lifecycle; it makes it simple and
reliable to code a "single instance" application or daemon, and to
launch applications and daemons on demand when their services are
needed.

This is a complete independent implementation of the D-Bus protocol
in Java. It comprises a library to write programs in Java which
access D-Bus, a tool for generating stubs from D-Bus introspection
data and a simple daemon. Being written in Java it works on both
Windows and Linux (and other Unix-like systems).

When using a TCP transport it is entirely Java-based; when using
Unix-sockets it requires a small JNI library to use Unix-Sockets.


%package javadoc
Summary:    Javadocs for %{name}


%description javadoc
Javadocs for %{name}


%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

sed -i "s|!doctype|!DOCTYPE|g" *.sgml
sed -i 's|<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN"|<!DOCTYPE refentry PUBLIC "-//OASIS//DTD DocBook V4.1//EN" "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd"|g' *.sgml

#generate font map for build doc
updmap

%build

# no configure file
make %{?_smp_mflags} \
    DOCBOOKTOMAN="docbook2x-man"\
    -j1 \
    JARPREFIX=%{_javadir}/%{name} \
    BINPREFIX=%{_bindir} \
    MANPREFIX=%{_mandir}/man1 \
    DOCPREFIX=%{_defaultdocdir}/%{name} \
    JAVADOCPREFIX=%{_javadocdir}/%{name} \
    JAVAUNIXLIBDIR=%{_libdir}/libmatthew-java \
    JAVAUNIXJARDIR=%{_jnidir} \
    JAVADOC="javadoc -Xdoclint:none"

# Inject OSGi manifests
jar umf %{SOURCE1} libdbus-java-%{version}.jar

%check
make check \
    JARPREFIX=%{_javadir}/%{name} \
    BINPREFIX=%{_bindir} \
    MANPREFIX=%{_mandir}/man1 \
    DOCPREFIX=%{_defaultdocdir}/%{name} \
    JAVADOCPREFIX=%{_javadocdir}/%{name} \
    JAVAUNIXLIBDIR=%{_libdir}/libmatthew-java \
    JAVAUNIXJARDIR=%{_jnidir} \
    JAVADOC="javadoc -Xdoclint:none"


%install
make install \
    DESTDIR=$RPM_BUILD_ROOT \
    JARPREFIX=%{_javadir}/%{name} \
    BINPREFIX=%{_bindir} \
    MANPREFIX=%{_mandir}/man1 \
    DOCPREFIX=%{_defaultdocdir}/%{name} \
    JAVADOCPREFIX=%{_javadocdir}/%{name} \
    JAVAUNIXLIBDIR=%{_libdir}/libmatthew-java \
    JAVAUNIXJARDIR=%{_jnidir} \
    JAVADOC="javadoc -Xdoclint:none"

%files
%{_javadir}/%{name}
%{_bindir}/CreateInterface
%{_bindir}/DBusCall
%{_bindir}/DBusDaemon
%{_bindir}/DBusViewer
%{_bindir}/ListDBus
%doc %{_defaultdocdir}/%{name}
%doc %{_mandir}/man1/CreateInterface.1.xz
%doc %{_mandir}/man1/DBusCall.1.xz
%doc %{_mandir}/man1/DBusDaemon.1.xz
%doc %{_mandir}/man1/DBusViewer.1.xz
%doc %{_mandir}/man1/ListDBus.1.xz
%license COPYING

%files javadoc
%{_javadocdir}/%{name}
%license COPYING



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12397 |21mr|dcadec-0.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	DTS Coherent Acoustics decoder with support for HD extensions
Name:		dcadec
Version:	0.2.0
Release:	4
License:	LGPLv2.1+
Group:		Sound
Url:		https://github.com/foo86/dcadec
Source0:	https://github.com/foo86/dcadec/archive/%{name}-%{version}.tar.gz
Conflicts:	libdca-tools

%description
DTS Coherent Acoustics decoder with support for HD extensions.

%files
%{_bindir}/dcadec

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for DTS Coherent Acoustics decoder
Group:		System/Libraries

%description -n %{libname}
Shared library for DTS Coherent Acoustics decoder.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for DTS Coherent Acoustics decoder
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.2.0
Obsoletes:	%{name}-devel < 0.2.0

%description -n %{devname}
Development files for DTS Coherent Acoustics decoder.

%files -n %{devname}
%dir %{_includedir}/libdcadec/
%{_includedir}/libdcadec/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make \
	CONFIG_SHARED=1

%install
%makeinstall_std \
	CONFIG_SHARED=1 \
	PREFIX=%{_prefix} \
	LIBDIR=%{_libdir}
    
#chmod .so for strip
chmod 755 %{buildroot}%{_libdir}/lib%{name}.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12398 |21mr|dconf-0.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Configuration backend for Glib
Name:		dconf
Version:	0.40.0
Release:	8
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/dconf
Source0:	https://download.gnome.org/sources/dconf/%{url_ver}/%{name}-%{version}.tar.xz
# From Fedora
Patch1:		dconf-override.patch
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	bash-completion-devel
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
This is a configuration backend for Glib's GSettings and part of GNOME 3.0.

%files
%doc NEWS README
%license COPYING
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/profile/user
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/dbus-1/services/ca.desrt.%{name}.service
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/db
%dir %{_sysconfdir}/%{name}/db/distro.d
%dir %{_sysconfdir}/%{name}/db/distro.d/locks
%dir %{_sysconfdir}/%{name}/db/local.d
%dir %{_sysconfdir}/%{name}/db/local.d/locks
%dir %{_sysconfdir}/%{name}/db/site.d
%dir %{_sysconfdir}/%{name}/db/site.d/locks
%dir %{_sysconfdir}/%{name}/profile
%{_libexecdir}/%{name}-service
%{_mandir}/man?/*
%{_userunitdir}/%{name}.service

%transfiletriggerin -- %{_sysconfdir}/%{name}/db
%{_bindir}/dconf update

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Configuration backend library for Glib
Group:		System/Libraries
Recommends:	%{name}-gio-modules = %{EVRD}
Obsoletes:	%{_lib}dconf1 <= 0.40.0-7

%description -n %{libname}
This is a configuration backend for Glib's GSettings and part of GNOME 3.0.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package gio-modules
Summary:	Configuration backend library for Glib (GIO modules)
Group:		System/Libraries
Obsoletes:	%{_lib}dconf-gio-modules <= 0.40.0-7
%ifarch x86_64 aarch64
Requires(post,postun):	gio2.0-64
%else
Requires(post,postun):	gio2.0-32
%endif

%description gio-modules
This is a configuration backend for Glib's GSettings (GIO modules).

%files gio-modules
%{_libdir}/gio/modules/lib%{name}settings.*

%post gio-modules
%ifarch x86_64 aarch64
%{_bindir}/gio-querymodules-64 %{_libdir}/gio/modules
%else
%{_bindir}/gio-querymodules-32 %{_libdir}/gio/modules
%endif

%postun gio-modules
if [ "$1" = "0" ]; then
%ifarch x86_64 aarch64
%{_bindir}/gio-querymodules-64 %{_libdir}/gio/modules
%else
%{_bindir}/gio-querymodules-32 %{_libdir}/gio/modules
%endif
fi

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Configuration backend library for Glib - development files
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This is a configuration backend for Glib's GSettings and part of GNOME 3.0.

%files -n %{devname}
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/vala/vapi/%{name}*
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}/%{name}/profile
cat > %{buildroot}%{_sysconfdir}/%{name}/profile/user << EOF
user-db:user
system-db:local
system-db:site
system-db:distro
EOF

mkdir -p %{buildroot}%{_sysconfdir}/%{name}/db/{distro,local,site}.d/locks

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12399 |21mr|dconf-editor-43.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Configuration editor for dconf
Name:		dconf-editor
Version:	43.0
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/dconf-editor
Source0:	https://download.gnome.org/sources/dconf-editor/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		dconf-editor-43.0-po-ru-translate.patch
BuildRequires:	appstream-util
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	dconf

%description
Graphical tool for editing the dconf configuration database.

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_appdatadir}/ca.desrt.%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/ca.desrt.%{name}.desktop
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/dbus-1/services/ca.desrt.%{name}.service
%{_datadir}/glib-2.0/schemas/ca.desrt.%{name}.gschema.xml
%{_datadir}/icons/*/*/*/*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12400 |21mr|dcraw-9.28.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without gimp2

Summary:	Reads the raw image formats of 279 digital cameras
Name:		dcraw
Version:	9.28.0
Release:	4
License:	Freely redistributable without restriction
Group:		Graphics
Url:		http://www.dechifro.org/dcraw/
Source0:	http://www.dechifro.org/dcraw/archive/dcraw-%{version}.tar.gz
Source2:	http://www.cybercom.net/~dcoffin/dcraw/rawphoto.c
# additional programs from http://www.dechifro.org/dcraw/
Source11:	http://www.dechifro.org/dcraw/parse.c
Source12:	http://www.dechifro.org/dcraw/clean_crw.c
Source13:	http://www.dechifro.org/dcraw/fujiturn.c
Source14:	http://www.dechifro.org/dcraw/fuji_green.c
Patch0:		dcraw-9.21-lcms2-error-reporting.patch
Patch1:		dcraw-CVE-2018-5801.patch
Patch2:		dcraw-CVE-2017-13735.patch
Patch3:		dcraw-CVE-2017-14608.patch
Patch4:		dcraw-CVE-2018-19655.patch
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
%if %{with gimp2}
BuildRequires:	pkgconfig(gimp-2.0)
%endif
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms2)

%description
Reads and processes raw images from more than 279 digital cameras.

Raw images are the data directly read from the CCD of the camera,
without in-camera processing, without lossy JPEG compression, and in
36 or 48 bits color depth (TIFF has 24 bits). Problem of the raw
images is that they are in proprietary, camera-specific formats as
once, there seems not to be a standard format for high-color-depth
images, and second, the raw images contain headers with information
about camera settings.

This is a collection of command line tools to read and convert the raw
image files and also to get camera setting information out of them.

This program does not download the files from the camera, it only
processes the already downloaded files. Depending on your camera
model, mount your camera as a USB mass-storage device, use GPhoto2
("gtkam", "digikam", "flphoto", "gphoto2"), or a flash card reader for
downloading the files.

%files -f %{name}.lang -f %{name}-man-files
%{_bindir}/clean_crw
%{_bindir}/dcraw
%{_bindir}/dcraw-parse
%{_bindir}/fujiturn
%{_bindir}/fuji_green
%{_mandir}/man1/dcraw.1*

#----------------------------------------------------------------------------

%if %{with gimp2}
%package gimp2.0
Summary:	A GIMP plug-in to load raw files of digicams (GIMP 2.x)
Group:		Graphics
Requires:	gimp
Requires:	%{name}

%description gimp2.0
GIMP 2.x plug-in to load all raw image files of digital cameras
supported by the dcraw package. This allows direct editing of the
original images of the camera, without any conversion or compression
loss.

%files gimp2.0
%{_libdir}/gimp/2.0/plug-ins/rawphoto
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -n dcraw

%if %{with gimp2}
mkdir gimp2.0
install -m644 %{SOURCE2} gimp2.0/rawphoto.c
%endif

%build
# (From Fedora)
%{__cc} %{optflags} %{ldflags} \
	-Wl,--no-as-needed \
	-lm -ljpeg -llcms2 -ljasper \
	-DLOCALEDIR="\"%{_datadir}/locale\"" \
	-o dcraw dcraw.c
# build language catalogs
for catsrc in dcraw_*.po; do
	lang="${catsrc%.po}"
	lang="${lang#dcraw_}"
	msgfmt -o "dcraw_${lang}.mo" "$catsrc"
done

# Build GIMP plug-in
%if %{with gimp2}
gimptool-2.0 --build gimp2.0/rawphoto.c
mv rawphoto gimp2.0
%endif

# Build additional tools
# "parse" is a too generic name, change it to "dcraw-parse" to avoid conflicts
%{__cc} %{optflags} %{ldflags} -o dcraw-parse %{SOURCE11}
%{__cc} %{optflags} %{ldflags} -o clean_crw %{SOURCE12}
%{__cc} %{optflags} %{ldflags} -o fujiturn %{SOURCE13}
%{__cc} %{optflags} %{ldflags} -o fuji_green %{SOURCE14} -lm

%install

install -d -m 0755 %{buildroot}%{_bindir}
install -m 0755 dcraw %{buildroot}%{_bindir}

# install language catalogs
for catalog in dcraw_*.mo; do
	lang="${catalog%.mo}"
	lang="${lang#dcraw_}"
	install -d -m 0755 "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES"
	install -m 0644 "$catalog" "%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/dcraw.mo"
done

install -d -m 0755 %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man1
install -m 0644 dcraw.1 %{buildroot}%{_mandir}/man1/dcraw.1
# localized manpages
rm -f %{name}-man-files
touch %{name}-man-files
for manpage in dcraw_*.1; do
	lang="${manpage%.1}"
	lang="${lang#dcraw_}"
	install -d -m 0755 "%{buildroot}%{_mandir}/${lang}/man1"
	install -m 0644 "${manpage}" "%{buildroot}%{_mandir}/${lang}/man1/dcraw.1"
	echo "%%lang($lang) %%{_mandir}/${lang}/man1/*" >> %{name}-man-files
done

%find_lang %{name}

%if %{with gimp2}
install -d %{buildroot}%{_libdir}/gimp/2.0/plug-ins
install -m 755 gimp2.0/rawphoto %{buildroot}%{_libdir}/gimp/2.0/plug-ins
%endif

# Install additionall tools
for i in dcraw-parse clean_crw fujiturn fuji_green
do
	install -m0755 "$i" %{buildroot}%{_bindir}/
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12401 |21mr|ddate-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       ddate
Version:    0.2.2
Release:    1
Summary:    Convert Gregorian dates to Discordian dates
Group:      System/Base
License:    Public Domain
URL:        https://github.com/bo0ts/%{name}/tree/
Source0:    https://github.com/bo0ts/%{name}/archive/v%{version}.tar.gz
BuildRequires:  cmake

%description
This tool prints a date in the Discordian date format.

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

%check
ctest

%files
%doc README.org
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12402 |21mr|dd_rescue-1.99.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Does copy data from one file or block device to another
Name:		dd_rescue
Version:	1.99.11
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.garloff.de/kurt/linux/ddrescue/
Source0:	http://www.garloff.de/kurt/linux/ddrescue/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(openssl)

%description
Like dd, dd_rescue does copy data from one file or block device to another.
You can specify file positions (called seek and Skip in dd). There are several
differences:
  o dd_rescue does not provide character conversions.
  o The command syntax is different. Call dd_rescue -h.
  o dd_rescue does not abort on errors on the input file, unless you specify a
    maximum error number. Then dd_rescue will abort when this number is reached
  o dd_rescue does not truncate the output file, unless asked to.
  o You can tell dd_rescue to start from the end of a file and move bcakwards.
  o It uses two block sizes, a large (soft) block size and a small (hard) block
    size. In case of errors, the size falls back to the small one and is
    promoted again after a while without errors.

%files
%doc README.dd_rescue
%{_bindir}/dd_rescue
%{_libdir}/*.so
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
%makeinstall_std \
	LIB=%{_lib} \
	INSTASROOT="" \
	INSTALLFLAGS=""

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12403 |21mr|deadbeef-1.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without faad

Summary:	Ultimate music player for GNU/Linux
Name:		deadbeef
Version:	1.9.4
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://deadbeef.sourceforge.net
#Source0:	https://github.com/DeaDBeeF-Player/deadbeef/archive/%%{version}.tar.gz?/%%{name}-%%{version}.tar.bz2
Source0:	https://downloads.sourceforge.net/project/deadbeef/travis/linux/%{version}/%{name}-%{version}.tar.bz2
Source1:	deadbeef-1.9.1-ru.tar.gz
Patch0:	deadbeef-1.9.4-drop-political-references.patch
Patch1:	deadbeef-1.9.4-fix-desktop-file.patch
BuildRequires:	clang
BuildRequires:	bison
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	swig
BuildRequires:	yasm
BuildRequires:	ffmpeg-devel
BuildRequires:	libdispatch-devel
%if %{with faad}
BuildRequires:	libfaad2-devel
%endif
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconfig(adplug)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libcddb)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libdca)
BuildRequires:	pkgconfig(libgme)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libsidplay2)
BuildRequires:	pkgconfig(libzip)
#libmad broken on non x86 arch
%ifarch %{ix86} x86_64
BuildRequires:	pkgconfig(mad)
%endif
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(soundtouch)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(wildmidi)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
Recommends:		opus-tools
Recommends:		vorbis-tools

%description
DeaDBeeF is an audio player for GNU/Linux systems with X11 written in C and
C++.
Features:
* minimal depends
* native GTK2 GUI
* native GTK3 GUI
* cuesheet support
* mp3, ogg, flac, ape and other popular formats
* chiptune formats with subtunes
* song-length databases
* small memory footprint.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING.GPLv2 COPYING.LGPLv2.1
%doc about.txt help.txt translators.txt
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/pixmaps
%{_bindir}/%{name}
%{_libdir}/%{name}/*.so*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/pixmaps/*.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_libdir}/%{name}/convpresets/*.txt
%{_libdir}/%{name}/data68

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{name} = %{EVRD}

%description devel
Development files and headers for %{name}.

%files devel
%doc %{_docdir}/%{name}/README
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# Install russian translation
pushd po
	tar -xvzf %{SOURCE1}
popd

# Fix perms
find . -name "*.cpp" -o -name "*.hpp" | xargs chmod -x
find . -name "*.c" -o -name "*.h" | xargs chmod -x


%build
export CC=/usr/bin/clang CXX=/usr/bin/clang++
%configure \
	--enable-notify \
	--enable-m3u \
	--enable-gtk3 \
	--enable-gtk2 \
	--disable-static \
%if !%{with faad}
	--disable-aac \
%endif
	--enable-ffmpeg
%make


%install
%makeinstall_std

# Seems to be missing from .desktop file
#sed -i 's/Play Shortcut Group/X-Play Shortcut Group/' %%{buildroot}%%{_datadir}/applications/%%{name}.desktop
#sed -i 's/Pause Shortcut Group/X-Pause Shortcut Group/' %%{buildroot}%%{_datadir}/applications/%%{name}.desktop
#sed -i 's/Stop Shortcut Group/X-Stop Shortcut Group/' %%{buildroot}%%{_datadir}/applications/%%{name}.desktop
#sed -i 's/Next Shortcut Group/X-Next Shortcut Group/' %%{buildroot}%%{_datadir}/applications/%%{name}.desktop
#sed -i 's/Prev Shortcut Group/X-Prev Shortcut Group/' %%{buildroot}%%{_datadir}/applications/%%{name}.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12404 |21mr|debootstrap-1.0.126-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Bootstrap a basic Debian system
Name:		debootstrap
Version:	1.0.126
Release:	1
License:	MIT
Group:		System/Configuration/Packaging
Url:		http://packages.debian.org/unstable/admin/debootstrap
Source0:	http://ftp.debian.org/debian/pool/main/d/debootstrap/%{name}_%{version}.tar.gz
Source1:	devices.tar.gz

%description
debootstrap is used to create a Debian base system from scratch,
without requiring the availability of dpkg or apt. It does this by
downloading .deb files from a mirror site, and carefully unpacking
them into a directory which can eventually be chrooted into.

%files
%doc TODO
%{_sbindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man8/%{name}.8*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
perl -pi -e 's/ -o root -g root//' Makefile
perl -pi -e 's/^(\s+)(chown.*)$/$1#$2/g' Makefile
perl -pi -e 's/^(all:.*?)(\S+.tar.gz)$/$1/g' Makefile
perl -pi -e 's,qw\(%{_prefix}/lib /lib\),qw\(%{_libdir} /%{_lib}\),' functions
cp %{SOURCE1} .

%build
%make

%install
%makeinstall_std
install -D -m 644 %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12405 |21mr|debugedit-5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: debugedit
Summary: Tools for debuginfo creation
Group: System/Configuration/Packaging
License: GPLv3+ and GPLv2+ and LGPLv2+
Version: 5.0
Release: 2
URL: https://sourceware.org/debugedit/
Source0: https://sourceware.org/pub/debugedit/%{version}/%{name}-%{version}.tar.xz
Patch1: 0001-tests-Handle-zero-directory-entry-in-.debug_line-DWA.patch
# patches which were in rpm before this project was separated from rpm
Patch2: rpm-4.15.0-find-debuginfo__mga-cfg.diff
Patch3: 0001-find-debuginfo.sh-decompress-DWARF-compressed-ELF-se.patch

BuildRequires: make gcc
BuildRequires: pkgconfig(libelf)
BuildRequires: pkgconfig(libdw)
BuildRequires: help2man
BuildRequires: gnupg2

# For the testsuite.
BuildRequires: autoconf
BuildRequires: automake

# The find-debuginfo.sh script has a couple of tools it needs at runtime.
# For strip_to_debug, eu-strip
Requires: elfutils
# For add_minidebug, readelf, awk, nm, sort, comm, objcopy, xz
Requires: binutils, gawk, coreutils, xz
# For find and xargs
Requires: findutils
# For do_file, gdb_add_index
# We only need gdb-add-index, so suggest gdb-minimal (full gdb is also ok)
Requires: /usr/bin/gdb-add-index
Suggests: gdb-minimal
# For run_job, sed
Requires: sed
# For dwz
Requires: dwz
# For append_uniq, grep
Requires: grep

%description
The debugedit project provides programs and scripts for creating
debuginfo and source file distributions, collect build-ids and rewrite
source paths in DWARF data for debugging, tracing and profiling.

It is based on code originally from the rpm project plus libiberty and
binutils.  It depends on the elfutils libelf and libdw libraries to
read and write ELF files, DWARF data and build-ids.

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install

%check
# The testsuite should be zero fail.
# It uses its own CFLAGS and LDFLAGS settings.
sed -i 's/^\(C\|LD\)FLAGS=.*/\1FLAGS=""/' tests/atlocal
make check %{?_smp_mflags}

%files
%license COPYING COPYING3 COPYING.LIB
%doc README
%{_bindir}/debugedit
%{_bindir}/sepdebugcrcfix
%{_bindir}/find-debuginfo
%{_mandir}/man1/debugedit.1*
%{_mandir}/man1/sepdebugcrcfix.1*
%{_mandir}/man1/find-debuginfo.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12406 |21mr|decentxml-1.4-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global revision 572a0baa91d1

Name:             decentxml
Version:          1.4
Release:          20
Summary:          XML parser optimized for round-tripping and code reuse
License:          BSD
# Google Code has shut down.
# URL:            http://code.google.com/p/decentxml
URL:              https://bitbucket.org/digulla/%{name}
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Google Code has shut down.
# Source0:        https://decentxml.googlecode.com/files/decentxml-1.4-src.zip
#
# This version is equivalent to the last Google Code release, other than
# folder structure due to how Bitbucket makes zip archives:
#
# decentxml-1.4 -> digulla-decentxml-572a0baa91d1
Source0:          https://bitbucket.org/digulla/%{name}/get/r%{version}.zip

# For running w3c conformance test suite.
Source1:          http://www.w3.org/XML/Test/xmlts20031210.zip

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)


%description
XML parser optimized for round-tripping and code reuse with main
features being:
 * Allows 100% round-tripping, even for weird white-space between
   attributes in the start tag or in the end tag
 * Suitable for building editors and filters which want/need to
   preserve the original file layout as much as possible
 * Error messages have line and column information
 * Easy to reuse individual components
 * XML 1.1 compatible

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n digulla-%{name}-%{revision}

# We are looking for xml conformance data one level above so unzip
# here and symlink there.
unzip %{SOURCE1}
ln -sf %{name}-%{version}/xmlconf ../xmlconf
sed -i -e "s|junit-dep|junit|g" pom.xml

# Two tests fail with Java 8, probably because of some Unicode incompatibility.
sed -i '/not_wf_sa_16[89] /d' src/test/java/de/pdark/decentxml/XMLConformanceTest.java

%pom_remove_plugin :maven-javadoc-plugin

# Don't use deprecated "attached" goal of Maven Assembly Plugin, which
# was removed in version 3.0.0.
%pom_xpath_set "pom:plugin[pom:artifactId='maven-assembly-plugin']/pom:executions/pom:execution/pom:goals/pom:goal[text()='attached']" single

%build
%mvn_file  : %{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12407 |21mr|default-editors-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define list_editors mcedit micro nano vi vim

Summary(ru_RU.UTF-8):	Установка консольных редакторов по умолчанию
Summary:	Set default console editors
Name:		default-editors
License:	MIT
Group:		System/Base
Version:	2.0
Release:	2
BuildArch:	noarch

%description
This packages sets environmental variable EDITOR.

%description -l ru_RU.UTF-8
Установка переменной окружения EDITOR в значение отличное от vi

#-------------------------------------------------------

%define mk_pkg() %{expand:
%package -n %{1}-as-default-editor

Summary(ru_RU.UTF-8): Установить %{1} редактором по умолчанию
Summary: Set %{1} as default $EDITOR
Requires: /usr/bin/%{1}
Provides: default-editor = %{1}_%{EVRD}

%description -n %{1}-as-default-editor
This packages sets environmental variable EDITOR=%{1}.

%description -l ru_RU.UTF-8 -n %{1}-as-default-editor
Пакет устанавливает переменную окружения EDITOR=%{1}.

%files -n %{1}-as-default-editor
%config %{_sysconfdir}/profile.d/10-%{1}-as-default-editor.sh
%config %{_sysconfdir}/profile.d/10-%{1}-as-default-editor.csh
}

#-------------------------------------------------------

%{expand:%(
for i in %{list_editors}
do
	echo "%%mk_pkg $i"
done
)}

#-------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}/etc/profile.d

for i in %{list_editors}
do
	echo "export EDITOR=${i}" > %{buildroot}%{_sysconfdir}/profile.d/10-${i}-as-default-editor.sh
	echo "setenv EDITOR ${i}" > %{buildroot}%{_sysconfdir}/profile.d/10-${i}-as-default-editor.csh
done

# not executable, sourceable
chmod 0644 %{buildroot}/etc/profile.d/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12408 |21mr|deja-dup-42.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version} | cut -d. -f1)

%define _cmake_skip_rpath	%nil

Summary:	Simple backup tool and front-end for duplicity
Name:		deja-dup
Version:	42.8
Release:	4
License:	GPLv3+
Group:		Archiving/Backup
Url:		https://gitlab.gnome.org/World/deja-dup
Source0:	https://gitlab.gnome.org/World/deja-dup/-/archive/%{version}/deja-dup-%{version}.tar.bz2
Patch0:		deja-dup-42.8-replace-google-yandex.patch
Patch1:		deja-dup-42.8-ru-po-translate.patch
Patch2:		deja-dup-42.4-fix_localestring.patch
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	locales-en
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(packagekit-glib2)
Requires:	adwaita-icon-theme
Requires:	dconf
Requires:	duplicity
Requires:	python3-gobject3

%description
Déjà Dup is a simple backup tool. It hides the complexity of doing backups the
'right way' (encrypted, off-site, and regular) and uses duplicity as the
back-end.

Features:
 - Support for local, remote, or cloud backup locations, such as Amazon S3
 - Securely encrypts and compresses your data
 - Incrementally backs up, letting you restore from any particular backup
 - Schedules regular backups
 - Integrates well into your GNOME desktop

%files -f %{name}.lang
%doc NEWS.md README.md
%{_bindir}/deja-*
%{_datadir}/metainfo/org.gnome.DejaDup.appdata.xml
%{_datadir}/applications/org.gnome.DejaDup.desktop
%{_datadir}/dbus-1/services/org.gnome.DejaDup.service
%{_datadir}/glib-2.0/schemas/org.gnome.DejaDup.gschema.xml
%{_iconsdir}/hicolor/*/*/org.gnome.DejaDup*.{svg,png}
%{_libdir}/%{name}/
%{_libexecdir}/%{name}/
%{_mandir}/man1/deja-dup*.1*
%{_sysconfdir}/xdg/autostart/org.gnome.DejaDup.Monitor.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

#clean some unwanted files
rm -rf %{buildroot}%{_datadir}/icons/Humanity/

%find_lang %{name} --with-gnome --with-man --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12409 |21mr|dejagnu-1.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		dejagnu
Version:	1.6.3
Release:	1
Epoch:		20010912
Summary:	A front end for testing other programs
License:	GPLv2+
URL:		http://www.gnu.org/software/dejagnu/
Source0:	ftp://ftp.gnu.org/gnu/dejagnu/%{name}-%{version}.tar
Group:		Development/Other
Requires:	common-licenses tcl >= 8.0 expect >= 5.21
BuildRequires:	docbook-utils docbook-utils-pdf
BuildRequires:	docbook-dtd-xml
# in contrib, but likely not needed anyways even if configure checks for it..
#BuildRequires:	docbook2x
BuildRequires:	expect
BuildRequires:	screen texinfo
BuildArch:	noarch

%description
DejaGnu is an Expect/Tcl based framework for testing other programs.
DejaGnu has several purposes: to make it easy to write tests for any
program; to allow you to write tests which will be portable to any
host or target where a program must be tested; and to standardize the
output format of all tests (making it easier to integrate the testing
into software development).

%prep
%setup -q

%build
%configure -v

%install
%makeinstall_std

%check
echo ============TESTING===============
# Dejagnu test suite also has to test reporting to user.  It needs a
# terminal for that.  That doesn't compute in mock.  Work around it by
# running the test under screen and communicating back to test runner
# via temporary file.  If you have better idea, we accept patches.
TMP=`mktemp`
screen -D -m sh -c '(make check RUNTESTFLAGS="RUNTEST=`pwd`/runtest"; echo $?) >> '$TMP
RESULT=`tail -n 1 $TMP`
cat $TMP
rm -f $TMP
echo ============END TESTING===========
exit $RESULT

%files
%doc AUTHORS NEWS README TODO ChangeLog doc/dejagnu.texi
%dir %{_datadir}/dejagnu
%{_datadir}/dejagnu/*
%{_bindir}/runtest
%{_mandir}/man1/runtest.1*
%{_infodir}/dejagnu.info*
%{_includedir}/dejagnu.h
%{_bindir}/dejagnu
%{_datadir}/man/man1/dejagnu-help.1.xz
%{_datadir}/man/man1/dejagnu-report-card.1.xz
%{_datadir}/man/man1/dejagnu.1.xz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12410 |21mr|deltarpm-3.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Tools to create and apply deltarpms
Name:		deltarpm
Version:	3.6.3
Release:	1
License:	BSD
Group:		System/Configuration/Packaging
URL:		https://github.com/rpm-software-management/deltarpm
Source0:	https://github.com/rpm-software-management/deltarpm/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	rpm >= 2:4.14.0-0
BuildRequires:	pkgconfig(rpm) >= 4.14.0
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(zlib)
#BuildRequires:	pkgconfig(bzip2)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libzstd)
# This doesn't work anyway
Obsoletes:	drpmsync < 3.6.2
# Fold this tool into the main package because it's too trivial to keep separate
Obsoletes:	deltaiso < 3.6.2
Provides:	deltaiso = %{version}-%{release}
# These are gone and no longer provided
Obsoletes:	python-deltarpm < 3.6.2


%description
This package contains tools to create and apply deltarpms. A deltarpm
contains the difference between an old and a new version of a rpm,
which makes it possible to recreate the new rpm from the deltarpm and
the old one. You don't have to have a copy of the old rpm, deltarpms
can also work with installed rpms.

Starting from version 2.2, there are also tools to handle ISO diffs.

%prep
%autosetup -p1

%build
%setup_compile_flags
%make CC=%{__cc} rpmdumpheader="%{_libdir}/rpm/rpmdumpheader" prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}

%install
mkdir -p %{buildroot}%{_libdir}/rpm
%makeinstall_std rpmdumpheader="%{_libdir}/rpm/rpmdumpheader" DESTDIR=%{buildroot} prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}

# Drop drpmsync as we can't use it (missing perl deps)
find %{buildroot} -name "drpmsync*" -delete

%files
%doc README NEWS
%{_bindir}/*
%{_mandir}/man8/*
%{_libdir}/rpm/rpmdumpheader

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12411 |21mr|deltaspike-1.2.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}
%bcond_with test
Name:          deltaspike
Version:       1.2.1
Release:       12
Summary:       Portable CDI extensions
License:       ASL 2.0
URL:           http://deltaspike.apache.org/
Source0:       https://github.com/apache/deltaspike/archive/%{name}-project-%{namedversion}.tar.gz
# Support for servlet 3.1 apis
Patch0:        deltaspike-1.2.1-MockServletContext.patch

BuildRequires: maven-local
BuildRequires: mvn(javax.el:javax.el-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jcdi_1.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-validation_1.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin)
BuildRequires: mvn(org.apache.openwebbeans:openwebbeans:pom:)
BuildRequires: mvn(org.apache.openwebbeans:openwebbeans-impl)
BuildRequires: mvn(org.apache.openwebbeans:openwebbeans-resource)
BuildRequires: mvn(org.apache.openwebbeans:openwebbeans-spi)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires: mvn(org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.jboss.weld.se:weld-se-core)
BuildRequires: mvn(org.quartz-scheduler:quartz)
# site plugin runtime deps
BuildRequires: mvn(org.apache.maven.doxia:doxia-integration-tools)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)

BuildRequires: xmvn

%if %{with test}
# Test deps
BuildRequires: mvn(asm:asm-commons)
BuildRequires: mvn(javassist:javassist)
BuildRequires: mvn(org.apache.bval:bval-jsr303)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-osgi-locator)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.openwebbeans.arquillian:owb-arquillian-standalone)
BuildRequires: mvn(org.apache.xbean:xbean-finder)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.jboss.arquillian.junit:arquillian-junit-container)
BuildRequires: mvn(org.jboss.as:jboss-as-arquillian-container-remote)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-impl-maven)
BuildRequires: mvn(org.apache.myfaces.test:myfaces-test20)
BuildRequires: mvn(org.apache.myfaces.core:myfaces-impl-test)

BuildRequires: mvn(org.bsc.maven:maven-processor-plugin)
BuildRequires: mvn(org.hibernate:hibernate-jpamodelgen)
# TODO
# https://bugzilla.redhat.com/show_bug.cgi?id=1208379
BuildRequires: mvn(org.primefaces.extensions:resources-optimizer-maven-plugin)
# 2015-07-29: Retired because it depends on shrinkwrap-resolver which did not...
BuildRequires: mvn(org.jboss.arquillian.container:arquillian-container-test-spi)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)

BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-api)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
DeltaSpike consist of a number of portable CDI extensions
that provide useful features for Java application developers.

%package core
Summary:       Apache DeltaSpike Core

%description core
Apache DeltaSpike Core APIs and Implementation.

%package cdictrl
Summary:       Apache DeltaSpike ContainerControl

%description cdictrl
This project provides a way to generically run CDI containers 
from inside of unit tests or Java SE applications.

%package modules
Summary:       Apache DeltaSpike Modules

%description modules
Apache DeltaSpike Modules Parent Pom.

%package bean-validation-module
Summary:       Apache DeltaSpike BeanValidation-Module

%description bean-validation-module
Apache DeltaSpike BeanValidation-Module APIs and implementations.

%package data-module
Summary:       Apache DeltaSpike Data-Module

%description data-module
Apache DeltaSpike Data-Module APIs and implementations.

%package jpa-module
Summary:       Apache DeltaSpike JPA-Module

%description jpa-module
Apache DeltaSpike JPA-Module APIs and implementations.

%package jsf-module
Summary:       Apache DeltaSpike JSF-Module

%description jsf-module
Apache DeltaSpike JSF-Module APIs and implementations.

%package partial-bean-module
Summary:       Apache DeltaSpike Partial-Bean-Module

%description partial-bean-module
Apache DeltaSpike Partial-Bean-Module APIs and implementations.

%package scheduler-module
Summary:       Apache DeltaSpike Scheduler-Module

%description scheduler-module
Apache DeltaSpike Scheduler-Module APIs and implementations.

%package security-module
Summary:       Apache DeltaSpike Security-Module

%description security-module
Apache DeltaSpike Security-Module APIs and implementations.

%package servlet-module
Summary:       Apache DeltaSpike Servlet-Module

%description servlet-module
Apache DeltaSpike Servlet-Module APIs and implementations.

%package test-control-module
Summary:       Apache DeltaSpike Test-Control-Module

%description test-control-module
Apache DeltaSpike Test-Control-Module APIs and implementations.

%package test-utils
Summary:       Apache DeltaSpike Test-Utils

%description test-utils
This package contains our Test Categories and
other useful stuff for running our tests.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-project-%{namedversion}
# Cleanup
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete
mv %{name}/* .
rm -r %{name}

%patch0 -p1

%pom_disable_module checkstyle-rules
%pom_disable_module examples

# org.apache.openejb:openejb-core 4.0.0-beta-2
%pom_disable_module impl-openejb cdictrl
# package org.apache.myfaces.test.mock does not exist
# package org.apache.myfaces.mc.test.core.runner
%pom_disable_module impl modules/test-control

%pom_remove_plugin :maven-checkstyle-plugin parent

%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin :maven-processor-plugin modules/data/impl

%pom_remove_plugin -r :resources-optimizer-maven-plugin
# Don't work with bundle-plugin 2.5.4
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:configuration" parent

# Retired
%pom_remove_dep -r :shrinkwrap-resolver-bom
%pom_remove_dep -r :arquillian-bom parent
%pom_remove_dep -r :arquillian-container-test-spi
rm -r test-utils/src/main/java/org/apache/deltaspike/test/arquillian
%pom_remove_dep -r :shrinkwrap-api
rm -r test-utils/src/main/java/org/apache/deltaspike/test/utils/ShrinkWrapArchiveUtil.java

%pom_remove_dep :geronimo-servlet_2.5_spec parent
%pom_change_dep -r :geronimo-interceptor_1.1_spec org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec
%pom_change_dep -r :geronimo-atinject_1.0_spec javax.inject:javax.inject
%pom_change_dep -r :geronimo-jpa_2.0_spec org.hibernate.javax.persistence:hibernate-jpa-2.0-api
%pom_change_dep -r :myfaces-api org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec
%pom_change_dep -r :geronimo-servlet_2.5_spec javax.servlet:javax.servlet-api:3.1.0
%pom_change_dep -r :geronimo-servlet_3.0_spec javax.servlet:javax.servlet-api:3.1.0
%pom_change_dep -r :geronimo-el_2.2_spec javax.el:javax.el-api:3.0.0

%mvn_package ":%{name}-project" %{name}
%mvn_package ":parent*" %{name}
%mvn_package ":*core*" core
# unavailable deps for: impl-openejb
%mvn_package ":*cdictrl*" cdictrl
%mvn_package ":modules-project" modules
%mvn_package ":*bean-validation*" bean-validation-module
%mvn_package ":*data*" data-module
%mvn_package ":*jpa*" jpa-module
%mvn_package ":*jsf*" jsf-module
%mvn_package ":*partial*" partial-bean-module
%mvn_package ":*scheduler*" scheduler-module
%mvn_package ":*security*" security-module
%mvn_package ":*servlet*" servlet-module
%mvn_package ":*test-control*" test-control-module
%mvn_package ":test-utils" test-utils

%if %{with test}
%mvn_package :::tests: test-utils
%endif

%build

# No test deps
%mvn_build \
%if %{without test}
 -f
%endif

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md readme/*-%{namedversion}.txt
%license LICENSE NOTICE

%files core -f .mfiles-core
%license LICENSE NOTICE

%files cdictrl -f .mfiles-cdictrl
%license LICENSE NOTICE

%files modules -f .mfiles-modules
%license LICENSE NOTICE

%files bean-validation-module -f .mfiles-bean-validation-module
%license LICENSE NOTICE

%files data-module -f .mfiles-data-module
%doc modules/data/README.adoc
%license LICENSE NOTICE

%files jpa-module -f .mfiles-jpa-module
%license LICENSE NOTICE

%files jsf-module -f .mfiles-jsf-module
%license LICENSE NOTICE

%files partial-bean-module -f .mfiles-partial-bean-module
%license LICENSE NOTICE

%files scheduler-module -f .mfiles-scheduler-module
%license LICENSE NOTICE

%files security-module -f .mfiles-security-module
%license LICENSE NOTICE

%files servlet-module -f .mfiles-servlet-module
%license LICENSE NOTICE

%files test-control-module -f .mfiles-test-control-module
%license LICENSE NOTICE

%files test-utils -f .mfiles-test-utils
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12412 |21mr|deluge-2.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Full-featured GTK+ Bittorrent client
Name:		deluge
Version:	2.1.1
Release:	2
License:	GPLv3+ with exceptions
Group:		Networking/File transfer
Url:		http://deluge-torrent.org/
Source0:	http://download.deluge-torrent.org/source/%{url_ver}/%{name}-%{version}.tar.xz
Source2:	deluge-daemon.service
Source3:	deluge-web.service
Source4:	deluge.sysusers.conf
Source5:	ru.po
Patch0:		deluge-2.0.3-hard-translate.patch
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	python3-devel
BuildRequires:	python3-wheel
BuildRequires:	python3dist(libtorrent)
## add Requires to make into Meta package
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-gtk = %{EVRD}
Requires:	%{name}-images = %{EVRD}
Requires:	%{name}-console = %{EVRD}
Requires:	%{name}-web = %{EVRD}
Requires:	%{name}-daemon = %{EVRD}
BuildArch:	noarch

%description
Deluge is a Bittorrent client. Deluge is intended to bring a native,
full-featured client to Linux GTK+ desktop environments such as GNOME
and XFCE.

#----------------------------------------------------------------------------

%package common
Summary:	Files common to Deluge sub packages
Requires:	python3-libtorrent-rasterbar
Requires:	python3-service-identity
#Recommends:	python3-GeoIP

%description common
Common files needed by the Deluge bittorrent client sub packages

%files common -f %{name}.lang
%doc CHANGELOG.md LICENSE README.md
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/
%dir %{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}/__pycache__
%{python3_sitelib}/%{name}/*.py*
%{python3_sitelib}/%{name}/plugins
%{python3_sitelib}/%{name}/core
%dir %{python3_sitelib}/%{name}/ui
%{python3_sitelib}/%{name}/ui/__pycache__
%{python3_sitelib}/%{name}/ui/*.py*
# includes %%name.pot too
%dir %{python3_sitelib}/%{name}/i18n
%dir %{python3_sitelib}/%{name}/i18n/*
%dir %{python3_sitelib}/%{name}/i18n/*/LC_MESSAGES
%{python3_sitelib}/%{name}/i18n/__pycache__/*
%{python3_sitelib}/%{name}/i18n/*.py

#----------------------------------------------------------------------------

%package gtk
Summary:	The gtk UI to Deluge
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-images = %{EVRD}
Requires:	%{name}-daemon = %{EVRD}
Requires:	appindicator-gtk3
Requires:	gtk+3.0
## Required for the proper ownership of icon dirs.
Requires:	hicolor-icon-theme
Requires:	librsvg2
Requires:	python3-cairo
Requires:	python3-gi-cairo
Requires:	python3-gobject
Requires:	python3-distro
Recommends:	python3-dbus
Recommends:	python3-pygame
Provides:	%{name} = %{EVRD}

%description gtk
Deluge bittorent client GTK graphical user interface

%files gtk
%{_bindir}/%{name}
%{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*
%{_datadir}/pixmaps/%{name}.*
%{_metainfodir}/%{name}.appdata.xml
%{python3_sitelib}/%{name}/ui/gtk3
%{_mandir}/man?/%{name}-gtk*
%{_mandir}/man?/%{name}.1*

#----------------------------------------------------------------------------

%package images
Summary:	Image files for deluge

%description images
Data files used by the GTK and web user interface for Deluge bittorent client

%files images
# only pixmaps dir is in data so I own it all
%{python3_sitelib}/%{name}/ui/data
# if someone decides to only install images
%dir %{python3_sitelib}/%{name}

#----------------------------------------------------------------------------

%package console
Summary:	CLI to Deluge
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-daemon = %{EVRD}

%description console
Deluge bittorent client command line interface

%files console
%{_bindir}/%{name}-console
%{python3_sitelib}/%{name}/ui/console
%{_mandir}/man?/%{name}-console*

#----------------------------------------------------------------------------

%package web
Summary:	Web interface to Deluge
License:	GPLv3 with exceptions
Requires:	python3-mako
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-images = %{EVRD}
Requires:	%{name}-daemon = %{EVRD}

%description web
Deluge bittorent client web interface

%files web
%{_bindir}/%{name}-web
%{python3_sitelib}/%{name}/ui/web
%{_mandir}/man?/%{name}-web*
%{_unitdir}/%{name}-web.service

%post web
%systemd_post deluge-web.service

%preun web
%systemd_preun deluge-web.service

%postun web
%systemd_postun_with_restart deluge-web.service

#----------------------------------------------------------------------------

%package daemon
Summary:	The Deluge daemon
Requires:	%{name}-common = %{EVRD}
Requires(pre):	/bin/systemd-sysusers

%description daemon
Files for the Deluge daemon

%files daemon
%{_bindir}/%{name}d
%{_unitdir}/%{name}-daemon.service
%attr(-,%{name}, %{name})/var/lib/%{name}/
%{_mandir}/man?/%{name}d*
%{_sysusersdir}/%{name}.conf

%pre daemon
%sysusers_create_package %{name} %{SOURCE4}

%post daemon
%systemd_post deluge-daemon.service

%preun daemon
%systemd_preun deluge-daemon.service

%postun daemon
%systemd_postun_with_restart deluge-daemon.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp -f %{SOURCE5} %{name}/i18n/

%build
%py3_build

%install
%py3_install

# http://dev.deluge-torrent.org/ticket/2034
mkdir -p %{buildroot}%{_unitdir}
install -m644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}-daemon.service
install -m644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}-web.service
mkdir -p %{buildroot}/var/lib/%{name}

desktop-file-install	\
	--dir %{buildroot}%{_datadir}/applications	\
	--copy-name-to-generic-name			\
	--add-mime-type=application/x-bittorrent	\
	--delete-original				\
	--remove-category=Application			\
	%{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_metainfodir}
mv %{buildroot}/usr/share/appdata/deluge.appdata.xml %{buildroot}%{_metainfodir}/%{name}.appdata.xml
rmdir %{buildroot}/usr/share/appdata
appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/%{name}.appdata.xml

## NOTE: The lang files should REEEAALLLY be in a standard place such as
##	/usr/share/locale or similar. It'd make things so much nicer for
##	the packaging. :O
## A bit of sed magic to mark the translation files with %%lang, taken from
## find-lang.sh (part of the rpm-build package) and tweaked somewhat. We
## cannot (unfortunately) call find-lang directly since it's not on a
## "$PREFIX/share/locale/"-ish directory tree.

pushd %{buildroot}
	find -type f -o -type l \
		| sed '
			s:%{buildroot}%{python3_sitelib}::
			s:^\.::
			s:\(.*/deluge/i18n/\)\([^/_]\+\)\(.*\.mo$\):%lang(\2) \1\2\3:
			s:^\([^%].*\)::
			s:%lang(C) ::
			/^$/d' \
	> %{name}.lang

## Now we move that list back to our sources, so that '%%files -f' can find it
## properly.
popd && mv %{buildroot}/%{name}.lang .

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12413 |21mr|derby-10.13.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           derby
Version:        10.13.1.1
Release:        4
Summary:        Relational database implemented entirely in Java
Group:          Development/Java
License:        ASL 2.0
URL:            http://db.apache.org/derby/
Source0:        http://archive.apache.org/dist/db/derby/db-derby-%{version}/db-derby-%{version}-src.tar.gz
Source1:        derby-script
Source2:        derby.service

# Changes needed for latest javacc
Patch1: derby-javacc.patch
# For compatibility with lucene >= 4.10
Patch2: derby-lucene.patch

BuildRequires:  apache-parent
BuildRequires:  javapackages-local
BuildRequires:  glassfish-servlet-api
BuildRequires:  jakarta-oro
BuildRequires:  javacc
BuildRequires:  json_simple
BuildRequires:  lucene4
BuildRequires:  junit
BuildRequires:  ant
BuildRequires:  systemd
Requires(pre):  shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Derby, an Apache DB sub-project, is a relational database implemented
entirely in Java. Some key advantages include a small footprint, conformance
to Java, JDBC, and SQL standards and embedded JDBC driver.

%package javadoc
Summary: API documentation for derby

%description javadoc
%{summary}.

%prep
%setup -q -c

find -name '*.jar' -delete
find -name '*.class' -delete

pushd db-derby-%{version}-src

#rm java/engine/org/apache/derby/impl/sql/compile/Token.java
%patch1 -p0
%patch2 -p0

# Don't use Class-Path in manifests
sed -i -e '/Class-Path/d' build.xml

# Don't download online packagelists
sed -e 's/initjars,set-doclint,install_packagelists/initjars,set-doclint/' \
    -e '/<link offline/,+1d' \
    -i build.xml

# Symlink system libs (tools/ant/properties/extrapath.properties)
ln -sf $(build-classpath oro) tools/java/jakarta-oro-2.0.8.jar
ln -sf $(build-classpath glassfish-servlet-api) tools/java/geronimo-spec-servlet-2.4-rc4.jar
ln -sf $(build-classpath javacc) tools/java/javacc.jar
ln -sf $(build-classpath json_simple) tools/java/json_simple-1.1.jar
ln -sf $(build-classpath junit) tools/java/junit.jar
ln -sf $(build-classpath lucene4/lucene-core-4) tools/java/lucene-core.jar
ln -sf $(build-classpath lucene4/lucene-analyzers-common-4) tools/java/lucene-analyzers-common.jar
ln -sf $(build-classpath lucene4/lucene-queryparser-4) tools/java/lucene-queryparser.jar

popd

%build
pushd db-derby-%{version}-src

# Fire
ant buildsource buildjars javadoc

# Generate maven poms
find maven2 -name pom.xml | xargs sed -i -e 's|ALPHA_VERSION|%{version}|'

# Request maven installation
%mvn_artifact maven2/pom.xml
for p in engine net client tools \
    derbyLocale_cs derbyLocale_de_DE derbyLocale_es derbyLocale_fr derbyLocale_hu \
    derbyLocale_it derbyLocale_ja_JP derbyLocale_ko_KR derbyLocale_pl derbyLocale_pt_BR \
    derbyLocale_ru derbyLocale_zh_CN derbyLocale_zh_TW ; do
  d=derby${p#derby}
  %mvn_artifact maven2/${p}/pom.xml jars/sane/${d%engine}.jar
done

popd

%install
pushd db-derby-%{version}-src

%mvn_install -J javadoc

# Wrapper scripts
install -d $RPM_BUILD_ROOT%{_bindir}
install -p -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}-ij
for P in sysinfo NetworkServerControl startNetworkServer stopNetworkServer
do
        ln $RPM_BUILD_ROOT%{_bindir}/%{name}-ij \
                $RPM_BUILD_ROOT%{_bindir}/%{name}-$P
done

# Systemd unit
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
install -p -m 644 %{SOURCE2} \
        $RPM_BUILD_ROOT%{_unitdir}/%{name}.service

# Derby home dir
install -dm 755 $RPM_BUILD_ROOT/var/lib/derby

popd

%pre
getent group derby >/dev/null || groupadd -r derby
getent passwd derby >/dev/null || \
    useradd -r -g derby -d /var/lib/derby -s /sbin/nologin \
    -c "Apache Derby service account" derby
exit 0

%post
%systemd_post derby.service

%preun
%systemd_preun derby.service

%postun
%systemd_postun_with_restart derby.service

%files -f  db-derby-%{version}-src/.mfiles
%{_bindir}/*
%doc db-%{name}-%{version}-src/published_api_overview.html
%doc db-%{name}-%{version}-src/RELEASE-NOTES.html
%doc db-%{name}-%{version}-src/README
%{_unitdir}/%{name}.service
%attr(755,derby,derby) %{_sharedstatedir}/%{name}
%license db-derby-%{version}-src/LICENSE
%license db-derby-%{version}-src/NOTICE

%files javadoc -f db-derby-%{version}-src/.mfiles-javadoc
%license db-derby-%{version}-src/LICENSE
%license db-derby-%{version}-src/NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12414 |21mr|desktop-common-data-2014.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Desktop common files
Name:		desktop-common-data
Version:	2014.6
Release:	1
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://www.rosalinux.com/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		desktop-common-data-menu.patch
Patch1:		desktop-common-data-2014.1-browser.patch
Patch2:		desktop-common-data-2014.1-qterminal.patch
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libxml2-utils
BuildRequires:	menu-messages
Provides:	menu-xdg = %{EVRD}
Provides:	menu = 2.1.24
Requires:	mdk-menu-messages
Requires:	run-parts
Requires:	xdg-utils
Requires:	xdg-user-dirs
Requires(post):	hicolor-icon-theme
Requires:	hicolor-icon-theme
BuildArch:	noarch

%description
This package contains useful icons, menu structure and others goodies for the
ROSA Linux desktop.

%files
%{_bindir}/*
%{_sbindir}/*
%{_sysconfdir}/profile.d/*
%dir %{_sysconfdir}/menu.d
%dir %{_sysconfdir}/xdg
%dir %{_sysconfdir}/xdg/menus
%dir %{_sysconfdir}/xdg/menus/applications-merged
%config(noreplace) %{_sysconfdir}/xdg/menus/*.menu
%dir %{_var}/lib/menu
#
%dir %{_datadir}/faces/
%dir %{_datadir}/mdk/
%dir %{_datadir}/mdk/faces/
%{_datadir}/faces/*
%{_datadir}/mdk/faces/*
#
%dir %{_datadir}/mdk/backgrounds/
%{_datadir}/mdk/backgrounds/*.jpg
#
%dir %{_datadir}/apps/kdm/pics/
%{_datadir}/apps/kdm/pics/*
#
%dir %{_datadir}/mdk/xfdrake/
%{_datadir}/mdk/xfdrake/*.png
#
%{_datadir}/sounds/*.wav
%{_datadir}/sounds/ia_ora
%{_datadir}/mdk/dm
#
%{_iconsdir}/*.png
%{_iconsdir}/*.svg
%{_liconsdir}/*.png
%{_liconsdir}/*.svg
%{_miconsdir}/*.png
%{_miconsdir}/*.svg
%{_datadir}/icons/hicolor/*/*/*.png
%{_datadir}/desktop-directories/*.directory

%post
if [ -f %{_sysconfdir}/X11/window-managers.rpmsave ];then
	%{_sbindir}/convertsession -f %{_sysconfdir}/X11/window-managers.rpmsave || :
fi
%make_session
# (cg) See sound-theme-freedesktop for explanation about touch
touch --no-create %{_datadir}/sounds %{_datadir}/sounds/ia_ora

%postun
# (cg) See sound-theme-freedesktop for explanation about touch
touch --no-create %{_datadir}/sounds %{_datadir}/sounds/ia_ora

%filetriggerin -- %{_datadir}/applications/
%{_bindir}/update-menus

%filetriggerin -- %{_datadir}/X11/dm.d/
%{_sbindir}/fndSession

%filetriggerin -- %{_sysconfdir}/X11/wmsession.d/
%{_sbindir}/fndSession

%filetriggerpostun -- %{_datadir}/applications/
%{_bindir}/update-menus

%filetriggerpostun -- %{_datadir}/X11/dm.d/
%{_sbindir}/fndSession

%filetriggerpostun -- %{_sysconfdir}/X11/wmsession.d/
%{_sbindir}/fndSession

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
make

%install
## Install backgrounds
# User & root's backgrounds
install -d -m 0755 %{buildroot}%{_datadir}/mdk/backgrounds/
install -m 0644 backgrounds/flower.jpg %{buildroot}%{_datadir}/mdk/backgrounds/
install -m 0644 backgrounds/nature.jpg %{buildroot}%{_datadir}/mdk/backgrounds/

# XFdrake test card
install -d -m 0755 %{buildroot}%{_datadir}/mdk/xfdrake/
install -m 0644 backgrounds/xfdrake-test-card.png %{buildroot}%{_datadir}/mdk/xfdrake/xfdrake-test-card.png

## Install scripts
# /usr/bin/
install -d -m 0755 %{buildroot}%{_bindir}/
for i in bin/*.sh ; do install -m 0755 $i %{buildroot}%{_bindir}/ ; done
install -m 0755 bin/www-browser %{buildroot}%{_bindir}/
install -m 0755 bin/xvt %{buildroot}%{_bindir}/
install -m 0755 bin/editor %{buildroot}%{_bindir}/

# /usr/sbin/
install -d -m 0755 %{buildroot}%{_sbindir}/
for i in sbin/* ; do install -m 0755 $i %{buildroot}%{_sbindir}/ ; done

## Install faces
install -d -m 0755 %{buildroot}%{_datadir}/mdk/faces/
install -d -m 0755 %{buildroot}%{_datadir}/faces/
for i in faces/*.png ; do install -m 0644 $i %{buildroot}%{_datadir}/mdk/faces/ ; done

# David - 9.0-5mdk - For KDE
install -m 0644 faces/default.png %{buildroot}%{_datadir}/faces/default.png

# David - 9.0-5mdk - For GDM
install -m 0644 faces/default.png %{buildroot}%{_datadir}/faces/user-default-mdk.png

## KDE
# kdm
install -d -m 0755 %{buildroot}%{_datadir}/apps/kdm/pics/
install -m 0644 kde/kdm-mdk-logo.png %{buildroot}%{_datadir}/apps/kdm/pics/

## icons
install -d -m 0755 %{buildroot}%{_miconsdir} %{buildroot}%{_liconsdir}
install -m 0644 menu/icons/*.png %{buildroot}%{_iconsdir}
install -m 0644 menu/icons/*.svg %{buildroot}%{_iconsdir}
install -m 0644 menu/icons/large/*.png %{buildroot}%{_liconsdir}
install -m 0644 menu/icons/large/*.svg %{buildroot}%{_liconsdir}
install -m 0644 menu/icons/mini/*.png %{buildroot}%{_miconsdir}
install -m 0644 menu/icons/mini/*.svg %{buildroot}%{_miconsdir}
cp -r menu/icons/hicolor  %{buildroot}%{_datadir}/icons/

# XDG menus
install -d -m 0755 %{buildroot}%{_sysconfdir}/xdg/menus/applications-merged 
install -d -m 0755 %{buildroot}%{_sysconfdir}/menu.d %{buildroot}/%{_sysconfdir}/profile.d
install -m 0644 applications.menu %{buildroot}%{_sysconfdir}/xdg/menus/applications.menu
install -m 0644 kde-applications.menu %{buildroot}%{_sysconfdir}/xdg/menus/kde-applications.menu
install -m 0755 menu/xdg_menu %{buildroot}%{_bindir}
install -m 0755 menu/update-menus %{buildroot}%{_bindir}/update-menus
install -m 0644 menu/menustyle.csh %{buildroot}%{_sysconfdir}/profile.d/30menustyle.csh
install -m 0644 menu/menustyle.sh  %{buildroot}%{_sysconfdir}/profile.d/30menustyle.sh

if [ "%_install_langs" != "all" ]; then
 echo ERROR : rpm macro %%_install_langs is not set to \"all\", causing some translations to not be available on your build system and therefore preventing building this package. Add \"%%_install_langs all\" to /etc/rpm/macros and force a reinstall of mdk-menu-messages package to ensure all translations are installed on this system before rebuilding this package
 return 1
fi

install -d -m 0755 %{buildroot}%{_datadir}/desktop-directories
mkdir tmp-l10n
for i in %{_datadir}/locale/*/LC_MESSAGES/menu-messages.mo ; do
 msgunfmt $i > tmp-l10n/`echo $i | sed -e 's|%{_datadir}/locale/||' -e 's|/LC.*||'`.po
done

install -d -m 0755 %{buildroot}%{_var}/lib/menu

for i in menu/desktop-directories/*.in ; do
 %{_bindir}/intltool-merge --desktop-style -c tmp-l10n/cache tmp-l10n $i %{buildroot}%{_datadir}/desktop-directories/`basename $i .in` 2>&1 | grep -q "Odd number of elements in hash assignment" && echo "menu message po broken (see bug #25895), aborting " && exit 1
done

#install theme for GDM/KDM
install -d -m 0755 %{buildroot}%{_datadir}/mdk/dm
for i in dm/*.png dm/*.desktop dm/*.xml ; do
  install -m 0644 $i %{buildroot}%{_datadir}/mdk/dm/
done

# install sound samples
install -d -m 0755 %{buildroot}%{_datadir}/sounds
for i in sounds/ia_ora*.wav ; do
 install -m 0644 $i %{buildroot}%{_datadir}/sounds
done

#install sound theme Ia Ora
install -d -m 0755 %{buildroot}%{_datadir}/sounds/ia_ora/stereo
install -m 0644 sounds/index.theme %{buildroot}%{_datadir}/sounds/ia_ora
ln -s ../../ia_ora-startup.wav %{buildroot}%{_datadir}/sounds/ia_ora/stereo/desktop-login.wav
ln -s ../../ia_ora-shutdown.wav %{buildroot}%{_datadir}/sounds/ia_ora/stereo/desktop-logout.wav
ln -s ../../ia_ora-error.wav %{buildroot}%{_datadir}/sounds/ia_ora/stereo/dialog-error.wav
ln -s ../../ia_ora-notification.wav %{buildroot}%{_datadir}/sounds/ia_ora/stereo/dialog-warning.wav
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/dialog.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/power.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/battery.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/suspend.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/screen-capture.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/service.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/system.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/desktop.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/device.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/bell.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/message-new-email.disabled
touch  %{buildroot}%{_datadir}/sounds/ia_ora/stereo/trash-empty.disabled

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12415 |21mr|desktop-file-utils-0.26-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_emacs}%{?!build_emacs:%bcond_without emacs}

Summary:	Utilities for working with desktop entries
Name:		desktop-file-utils
Version:	0.26
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://freedesktop.org/Software/desktop-file-utils
Source0:	http://freedesktop.org/software/desktop-file-utils/releases/%{name}-%{version}.tar.xz
# from upstream for support Desktop Entry specification 1.5
Patch0:		desktop-file-utils-0.27.patch
BuildRequires:	glibc-static-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(popt)
%if %{with emacs}
BuildRequires:	emacs-bin
%endif

%description
desktop-file-utils contains a couple of command line utilities for working
with desktop entries. It requires GLib and popt to compile, because the
implementation requires Unicode utilities and such.

Right now the only documentation is "desktop-file-install --help".
desktop-file-validate takes a single argument, the file to validate.

%files
%doc AUTHORS NEWS README ChangeLog
%{_bindir}/*
%{_mandir}/man1/*
%optional %{_datadir}/emacs/site-lisp/desktop-entry-mode.el*
%if %{with emacs}
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el
%endif

%post
%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2> /dev/null

%filetriggerin -- %{_datadir}/applications/
%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2> /dev/null

%filetriggerpostun -- %{_datadir}/applications/
%{_bindir}/update-desktop-database %{_datadir}/applications > /dev/null 2> /dev/null

#---------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure

%make_build

%install
%make_install

%if %{with emacs}
mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/
cat > %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el << EOF
(autoload 'desktop-entry-mode "desktop-entry-mode" "Desktop Entry mode" t)
(add-to-list 'auto-mode-alist
'("\\\\.desktop\\\\(\\\\.in\\\\)?$" . desktop-entry-mode))
(add-hook 'desktop-entry-mode-hook 'font-lock-mode)
EOF
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12416 |21mr|dev86-0.16.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define bccdir %{_libdir}/bcc

Summary:	A real mode 80x86 assembler and linker
Name:		dev86
Version:	0.16.21
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://homepage.ntlworld.com/robert.debath/
Source0:	http://homepage.ntlworld.com/robert.debath/dev86/Dev86src-%{version}.tar.gz
Patch0:		dev86-noelks.patch
Patch1:		dev86-64bit.patch
Patch2:		dev86-nostrip.patch
Patch4:		dev86-long.patch
ExclusiveArch:	%{ix86} ppc x86_64 %{arm}

%description
The dev86 package provides an assembler and linker for real mode 80x86
instructions. You'll need to have this package installed in order to
build programs that run in real mode, including LILO and the kernel's
bootstrapping code, from their sources.

You should install dev86 if you intend to build programs that run in real
mode from their source code.

%files
%doc README MAGIC Contributors README.bootblocks README.copt README.dis88
%doc README.elksemu README.unproto README-0.4.bin86 README.bin86 ChangeLog.bin86
%dir %{bccdir}
%{_bindir}/*
%{bccdir}/*
%{_mandir}/man1/*
%exclude %{bccdir}/i386/lib*
%exclude %{bccdir}/include

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for dev86
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
The dev86 package provides an assembler and linker for real mode 80x86
instructions. You'll need to have this package installed in order to
build programs that run in real mode, including LILO and the kernel's
bootstrapping code, from their sources.

The dev86-devel package provides C headers need to use bcc, the C
compiler for real mode x86.

You should install dev86 if you intend to build programs that run in real
mode from their source code.

Note that you don't need dev86-devel package in order to build
a kernel.

%files devel
%doc README
%dir %{bccdir}/include
%{bccdir}/include/*
%{bccdir}/i386/lib*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .noelks
%if "%{_lib}" == "lib64"
%patch1 -p1 -b .64bit
%endif
%patch2 -p1 -b .nostrip
%patch4 -p1 -b .long

%build
# the main makefile doesn't allow parallel build
make <<!FooBar!
5
quit
!FooBar!

%install
make DIST=%{buildroot} MANDIR=%{_mandir} LIBDIR=%{bccdir} INCLDIR=%{bccdir} install install-man

pushd %{buildroot}%{_bindir}
rm -f nm86 size86
ln objdump86 nm86
ln objdump86 size86
popd

# %doc --parents would be overkill
for i in elksemu unproto bin86 copt dis88 bootblocks; do
        ln -f $i/README README.$i
done
ln -f bin86/README-0.4 README-0.4.bin86
ln -f bin86/ChangeLog ChangeLog.bin86

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12417 |21mr|devel-rpm-generators-0.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Macros to automate devel requires and provides
Name:		devel-rpm-generators
Group:		System/Libraries
License:	GPLv2
Url:		https://abf.io/import/devel-rpm-generators
Version:	0.15
Release:	2
Source0:	develgen.sh
Source1:	develgen.attr
Source2:	develgen.macros
Source3:	COPYING
Requires:	gawk
Requires:	grep
Requires:	patchelf
Requires:	file
Requires:	coreutils
BuildArch:	noarch

%description
RPM 4 macros for generating devel(xxx)
Provides and Requires (dependencies)
for devel libraries.

%files
%license COPYING
%{_rpmconfigdir}/fileattrs/develgen.attr
%{_rpmconfigdir}/develgen.sh
%{_rpmmacrodir}/*develgen*

%prep
cp %{SOURCE3} .

%build
%install
install -m644 -D %{SOURCE1} %{buildroot}/%{_rpmconfigdir}/fileattrs/develgen.attr
install -m755 -D %{SOURCE0} %{buildroot}/%{_rpmconfigdir}/develgen.sh
%install_macro develgen %{SOURCE2}

# This generator did not exist on aarch64 before,
# for now generate only Provides, later restore Requires
#%%ifarch aarch64 does not work here due to "BuildArch: noarch" probably
#if file "$(realpath /bin/sh)" | grep aarch64 ; then
#  sed -i -e 's,^%__develgen_requires,#__develgen_requires,g' %{buildroot}/%{_rpmconfigdir}/fileattrs/develgen.attr
#fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12418 |21mr|devhelp-41.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define major 6
%define api 3
%define girmajor 3.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{girmajor}
%define devname %mklibname %{name} -d

Summary:	API documentation browser for developers
Name:		devhelp
Version:	41.2
Release:	1
License:	GPLv2+
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/devhelp
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		devhelp-cflags.patch
Patch1:		fix-for-new-meson-versions.patch
BuildRequires:	cmake
BuildRequires:	gettext-devel
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	yelp-tools
BuildRequires:	python3dist(jinja2)
BuildRequires:	python3dist(markdown)
BuildRequires:	python3dist(markupsafe)
BuildRequires:	python3dist(pygments)
BuildRequires:	python3dist(toml)
BuildRequires:	python3dist(typogrify)
BuildRequires:	pkgconfig(amtk-5)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(webkit2gtk-4.0)

%description
Devhelp is an API documentation browser for GNOME 2. It works
natively with Gtk-doc (System used in GTK+ and GNOME for
documentating APIs) and it is possible to create books for other
documentation as well.

%files -f %{name}.lang
%doc NEWS README.md
%license LICENSES/*
%{_bindir}/*
%{_appdatadir}/org.gnome.Devhelp.appdata.xml
%{_datadir}/applications/org.gnome.Devhelp.desktop
%{_datadir}/dbus-1/services/org.gnome.Devhelp.service
%{_datadir}/devhelp
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/glib-2.0/schemas/org.gnome.libdevhelp-3.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.devhelp.gschema.xml
%{_mandir}/man1/devhelp.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries for devhelp
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This package contains dynamic libraries for devhelp.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Devhelp-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for devhelp
Group:		Development/GNOME and GTK+
Requires:	pkgconfig(gsettings-desktop-schemas)
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and headers for devhelp.

%files -n %{devname}
%{_datadir}/gir-1.0/Devhelp-%{girmajor}.gir
%{_defaultdocdir}/%{name}-%{api}
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/lib%{name}-3.0.pc
%{_includedir}/devhelp-3/

#----------------------------------------------------------------------------

%package plugins
Summary:	Plugins for Devhelp
Group:		Editors

%description plugins
Plugins to use with Devhelp.

%files plugins
%{_datadir}/emacs/site-lisp/devhelp.el
%{_datadir}/vim/vimfiles/plugin/devhelp.vim
%{_libdir}/gedit/plugins

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dgtk_doc=true		\
	-Dplugin_emacs=true	\
	-Dplugin_gedit=true	\
	-Dplugin_vim=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12419 |21mr|devil-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname DevIL
%define major 1
%define libIL %mklibname IL %{major}
%define libILU %mklibname ILU %{major}
%define libILUT %mklibname ILUT %{major}
%define devname %mklibname %{name} -d

%global __requires_exclude devel\\(liballeg.*

Summary:	Open source image library
Name:		devil
Version:	1.8.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://openil.sourceforge.net/
Source0:	https://github.com/DentonW/DevIL/archive/refs/tags/v1.8.0.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		devil-1.8.0-jasper.patch
Patch1:		devil-1.8.0-versioning.patch
Patch2:		e2k-fix-lcc-with-lcc-confusion.patch
BuildRequires:	cmake
BuildRequires:	file
BuildRequires:	libtool
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	mng-devel
BuildRequires:	tiff-devel
BuildRequires:	texinfo
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(zlib)

%description
DevIL is an Open Source image library whose distribution is done under the
terms of the GNU LGPL license.
DevIL offers you a simple way to implement loading, manipulating, filtering,
converting, displaying, saving from/to several different image formats in your
own project.

#----------------------------------------------------------------------------

# version 1.8.0 use cmake for build, ilur not builded (ilur source presents in src)
# pkg reserved for next release!

#%%package utils
#Summary:	Tools provided by %{oname}
#Group:		System/Libraries
#Provides:	%{name} = %{EVRD}

#%%description utils
#This package contains tools provided by %{oname}.

#%%files utils
#%%{_bindir}/ilur

#----------------------------------------------------------------------------

%package -n %{libIL}
Summary:	Libraries needed for programs using %{oname}
Group:		System/Libraries

%description -n %{libIL}
This package contains the shared library for %{oname}.

%files -n %{libIL}
%{_libdir}/libIL.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libILU}
Summary:	Libraries needed for programs using %{oname}
Group:		System/Libraries

%description -n %{libILU}
This package contains the shared library for %{oname}.

%files -n %{libILU}
%{_libdir}/libILU.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libILUT}
Summary:	Libraries needed for programs using %{oname}
Group:		System/Libraries

%description -n %{libILUT}
This package contains the shared library for %{oname}.

%files -n %{libILUT}
%{_libdir}/libILUT.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for writing programs using %{oname}
Group:		Development/C
Requires:	%{libIL} = %{EVRD}
Requires:	%{libILU} = %{EVRD}
Requires:	%{libILUT} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for writing programs using %{oname}.

%files -n %{devname}
%doc %{oname}/AUTHORS %{oname}/CREDITS %{oname}/ChangeLog %{oname}/Libraries.txt %{oname}/README.md
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/IL

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

# Hardcoded paths for installation, as described in the INSTALL file
sed -i \
    -e 's|lib$|%{_lib}|g' \
    %{oname}/src-IL/CMakeLists.txt %{oname}/src-ILU/CMakeLists.txt %{oname}/src-ILUT/CMakeLists.txt
sed -i \
    -e 's|lib\/|%{_lib}\/|g' \
    %{oname}/src-IL/CMakeLists.txt %{oname}/src-ILU/CMakeLists.txt %{oname}/src-ILUT/CMakeLists.txt


%build
cd %{oname}
%cmake
%make

%install
cd %{oname}
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12420 |21mr|dftd4-3.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	debug_package %{nil}

%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		dftd4
Version:	3.7.0
Release:	2
Summary:	Generally Applicable Atomic-Charge Dependent London Dispersion Correction
Group:		Sciences/Chemistry
License:	LGPL-3.0-or-later
URL:		https://dftd4.readthedocs.io/
Source0:	https://github.com/dftd4/dftd4/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	meson
BuildRequires:	gcc-gfortran
BuildRequires:	gomp-devel
BuildRequires:	mctc-lib-devel
BuildRequires:	mstore-devel
BuildRequires:	multicharge-devel
BuildRequires:	openblas-devel
#BuildRequires:	python3-devel
#BuildRequires:	python3-cffi
BuildRequires:  rubygem-asciidoctor

%description
Generally Applicable Atomic-Charge Dependent London Dispersion Correction.

%files
%license COPYING COPYING.LESSER
%doc README.md
%{_bindir}/dftd4
%{_mandir}/man1/dftd4.1*
%{_datadir}/dftd4/
#---------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*
#---------------------------------------------
%package -n %{devname}
Summary:	Development headers for dftd4
Group:		Development/Other
Requires:	%{libname}%{?_isa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development headers for dftd4

%files -n %{devname}
%{_libdir}/libdftd4.so
%{_fmoddir}/dftd4*.mod
%{_libdir}/pkgconfig/dftd4.pc
%{_includedir}/dftd4.h
#---------------------------------------------
%if 0
%package -n python3-dftd4
Summary:	Python 3 interface for dftd4
Group:		Development/Python
Requires:	%{name}%{?_isa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n python3-dftd4
This package contains the Python 3 interface for dftd4.

%files -n python3-dftd4
%{python3_sitearch}/dftd4/
%endif
#---------------------------------------------
%prep
%setup -q

%build
# flexiblas64 not available on ix86 architecture
%meson -Dlapack=custom -Dcustom_libraries=openblas -Dilp64=false -Dpython=false
%meson_build

%install
%meson_install
# Move Fortran modules to the right place
mkdir -p %{buildroot}%{_fmoddir}
mv %{buildroot}%{_includedir}/dftd4/gcc-*/*.mod %{buildroot}%{_fmoddir}
# Remove static library
rm %{buildroot}%{_libdir}/libdftd4.a
sed -i 's|-I${includedir}/dftd4/gcc-.*|-I%{_fmoddir}|' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

%check
# Reduce parallellism and increase the timeout multiplier since the default is not enough on some architectures
#MESON_TESTTHREADS=2 %%meson_test --timeout-multiplier 4


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12421 |21mr|dhcp-4.4.3P1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major_version	4.4.3
%define patch_version	P1
%define var_dhcpd %{_var}/lib/dhcpd
%define var_dhclient %{_var}/lib/dhclient
%global _disable_rebuild_configure 1

Name:		dhcp
Epoch:		3
Version:	%{major_version}%{patch_version}
Release:	1
Summary:	The ISC DHCP (Dynamic Host Configuration Protocol) server/relay agent/client
License:	Distributable
Group:		System/Servers
URL:		http://www.isc.org/software/dhcp
Source0:	ftp://ftp.isc.org/isc/%{name}/%{major_version}%{patch_version}/%{name}-%{major_version}-%{patch_version}.tar.gz
Source2:	dhcpd.conf
Source4:	dhcp-dynamic-dns-examples.tar.bz2
Source7:	dhcpreport.pl
Source8:	dhcpd-chroot.sh
# (eugeni) dhclient-exit-hooks script
Source9:	dhclient-exit-hooks
Source10:	draft-ietf-dhc-ldap-schema-01.txt
Source12:	dhcpd.service
Source14:	dhcpd6.service
Source16:	dhcrelay.service
Source17:	dhcpd.tmpfiles
Source18:	dhclient.tmpfiles
Source19:	dhcrelay.tmpfiles
# sysusers.d(5) (systemd-sysusers)
Source20:	isc-dhcpd.conf
#Source21:	isc-dhcp-client.conf
# Per-interface dhclient service from Arch Linux (modified)
Source22:	dhclient@.service

Patch17:	dhcp-4.2.0-add_timeout_when_NULL.patch
Patch18:	CVE-2021-25220.patch
# Starting from dhcp 4.x built in Bind libs are used
#BuildRequires:	bind-devel
BuildRequires:	groff-base
BuildRequires:	groff-for-man
BuildRequires:	libtool
BuildRequires:	openldap-devel
BuildRequires:	systemd-units
# --with-ldap-gssapi
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libsasl2)
Requires:	bash
# /var/spool/initramfs-regen
Requires:	rosa-kernel-tools

%description 
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows 
individual devices on an IP network to get their own network configuration
information (IP address, subnetmask, broadcast address, etc.) from a DHCP
server. The overall purpose of DHCP is to make it easier to administer a 
large network. The dhcp package includes the DHCP server and a DHCP relay
agent. You will also need to install the dhcp-client or dhcpcd package,
or pump or dhcpxd, which provides the DHCP client daemon, on client machines.

If you want the DHCP server and/or relay, you will also need to install the
dhcp-server and/or dhcp-relay packages.

%package common
Summary:	The ISC DHCP (Dynamic Host Configuration Protocol) server
Group:		System/Servers

%description common
DHCP (Dynamic Host Configuration Protocol) is a protocol which allows 
individual devices on an IP network to get their own network 
configuration information (IP address, subnetmask, broadcast address, 
etc.) from a DHCP server.  The overall purpose of DHCP is to make it 
easier to administer a large network.  The dhcp package includes the 
DHCP server and a DHCP relay agent.

You will also need to install the dhcp-client or dhcpcd package, or pump or
dhcpxd, which provides the DHCP client daemon, on  client machines. If you
want the DHCP server and/or relay, you will also need to install the
dhcp-server and/or dhcp-relay packages.

%package doc
Summary:	Documentation about the ISC DHCP server/client
Group:		System/Servers

%description doc
This package contains RFC/API/protocol documentation about the ISC
DHCP server and client.

DHCP (Dynamic Host Configuration Protocol) is a protocol which allows 
individual devices on an IP network to get their own network 
configuration information (IP address, subnetmask, broadcast address, 
etc.) from a DHCP server.  The overall purpose of DHCP is to make it 
easier to administer a large network.  The dhcp package includes the 
DHCP server and a DHCP relay agent.

%package server
Summary:	The ISC DHCP (Dynamic Host Configuration Protocol) server
Group:		System/Servers
Requires:	dhcp-common = %{EVRD}
Requires(post):  systemd-units
%if %{mdvver} <= 201610
Requires(postun): rpm-helper
%endif

%description server
DHCP server is the Internet Software Consortium (ISC) DHCP server for various
UNIX operating systems. It allows a UNIX mac hine to serve DHCP requests from
the network.

You should install dhcp-server if you want to set up a DHCP server on your
network. You will also need to install the base dhcp package.

%package client
Summary:	The ISC DHCP (Dynamic Host Configuration Protocol) client
Group:		System/Servers
Requires:	dhcp-common = %{EVRD}
Requires:	run-parts
Requires(post):  systemd-units

%description client
DHCP client is the Internet Software Consortium (ISC) DHCP client for various
UNIX operating systems.  It allows a UNIX mac hine to obtain it's networking
parameters from a DHCP server.

You should install dhcp-client if you want to use the ISC DHCP client instead
of the Red Hat DHCP client, pump, or dhcpcd, or dhcpxd. You will also need to
install the base dhcp package.

%package relay
Summary:	The ISC DHCP (Dynamic Host Configuration Protocol) relay
Group:		System/Servers
Requires:	dhcp-common = %{EVRD}
Requires(post):  systemd-units

%description relay
DHCP relay is the Internet Software Consortium (ISC) relay agent for DHCP
packets. It is used on a subnet with DHCP clients to "relay" their requests
to a subnet that has a DHCP server on it. Because DHCP packets can be
broadcast, they will not be routed off of the local subnet. The DHCP relay
takes care of this for the client. You will need to set the environment
variable SERVERS and optionally OPTIONS in /etc/sysconfig/dhcrelay before
starting the server.

%package devel
Summary:	Development headers and libraries for the dhcpctl API
Group:		Development/Other
Requires:	dhcp-common = %{EVRD}

%description devel
DHCP devel contains all of the libraries and headers for developing with the
Internet Software Consortium (ISC) dhcpctl API.

%package -n	openldap-schemas-%{name}
summary:	OpenLDAP schema files from %{name}-%{EVRD} source tree
Group:		Databases
BuildArch:	noarch
Requires(pre):	openldap-config

%description -n openldap-schemas-%{name}
OpenLDAP schema files from %{name}-%{EVRD} source tree

%prep
%setup -q -n %{name}-%{major_version}-%{patch_version}
#%setup
pushd bind ; tar -xvf bind.tar.gz >/dev/null ; popd

# Handle cases in add_timeout() where the function is called with a NULL
# value for the 'when' parameter
%patch17 -p1 -b .dracut
# Ensure 64-bit platforms parse lease file dates & times correctly
%patch18 -p1 -b .64-bit_lease_parse
# change hardcoded paths from /sbin/dhc* to /usr/sbin/dhc*, if there are any
sed -i 'includes/dhcpd.h' -e 's,\"/sbin/dhc,\"/usr/sbin/dhc,g' || true

%build
%serverbuild_hardened

# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9917
# For some reason, despite default being /sbin/dhclient-script in includes/dhcpd.h,
# dhclient tries to execve() /usr/sbin/dhclient-script if
# the correct path is not defined explicitly; to verify:
# strings `which dhclient` | grep dhclient-script
export CFLAGS="${CFLAGS} -D_PATH_DHCLIENT_SCRIPT='\"/sbin/dhclient-script\"'"

autoreconf -if
%configure \
    --with-srv-lease-file=%{var_dhcpd}/dhcpd.leases \
    --with-srv6-lease-file=%{var_dhcpd}/dhcpd6.leases \
    --with-cli-lease-file=%{var_dhclient}/dhclient.leases \
    --with-cli6-lease-file=%{var_dhclient}/dhclient6.leases \
    --with-srv-pid-file=/run/dhcpd/dhcpd.pid \
    --with-srv6-pid-file=/run/dhcpd/dhcpd6.pid \
    --with-cli-pid-file=/run/dhclient/dhclient.pid \
    --with-cli6-pid-file=/run/dhclient/dhclient6.pid \
    --with-relay-pid-file=/run/dhcrelay/dhcrelay.pid \
    --enable-paranoia \
    --enable-early-chroot \
    --with-ldap \
    --with-ldapcrypto \
    --with-ldap-gssapi
make

%install

%makeinstall_std

install -m0644 %{SOURCE10} doc
install -d %{buildroot}/sbin
mv %{buildroot}%{_sbindir}/dhclient %{buildroot}/sbin/dhclient
install -m 755 client/scripts/linux %{buildroot}/sbin/dhclient-script

# initrds include dhclient, regenerate them when it is updated
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/dhcp-client

install -d %{buildroot}%{_unitdir}
install -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/dhcpd.service
install -m 644 %{SOURCE14} %{buildroot}%{_unitdir}/dhcpd6.service
install -m 644 %{SOURCE16} %{buildroot}%{_unitdir}/dhcrelay.service
install -m 644 %{SOURCE22} %{buildroot}%{_unitdir}/

install -D -p -m 644 %{SOURCE17} %{buildroot}%{_tmpfilesdir}/dhcpd.conf
install -D -p -m 644 %{SOURCE18} %{buildroot}%{_tmpfilesdir}/dhclient.conf
install -D -p -m 644 %{SOURCE19} %{buildroot}%{_tmpfilesdir}/dhcrelay.conf

install -d %{buildroot}%{_sysusersdir}
install -m 644 %{SOURCE20} %{buildroot}%{_sysusersdir}/
#install -m 644 %{SOURCE21} %{buildroot}%{_sysusersdir}/

install -m 755 %{SOURCE7} %{SOURCE8} %{buildroot}%{_sbindir}
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}
install -m 755 contrib/ldap/dhcpd-conf-to-ldap %{buildroot}%{_sbindir}

# install exit-hooks script to /etc/
install -m 755 %{SOURCE9} %{buildroot}%{_sysconfdir}

install -d %{buildroot}%{_sysconfdir}/sysconfig
cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcpd <<EOF
# You can set here various option for dhcpd

# Which configuration file to use.
# CONFIGFILE="/etc/dhcpd.conf"

# Where to store the lease state information.
# LEASEFILE="%{var_dhcpd}/dhcpd.leases"

# Define INTERFACES to limit which network interfaces dhcpd listens on.
# The default null value causes dhcpd to listen on all interfaces.
#INTERFACES=""

# Define OPTIONS with any other options to pass to the dhcpd server.
# See dhcpd(8) for available options and syntax.
OPTIONS="-q"
EOF

cat > %{buildroot}%{_sysconfdir}/sysconfig/dhcrelay <<EOF
# Define SERVERS with a list of one or more DHCP servers where
# DHCP packets are to be relayed to and from.  This is mandatory.
#SERVERS="10.11.12.13 10.9.8.7"
SERVERS=""

# Define OPTIONS with any other options to pass to the dhcrelay server.
# See dhcrelay(8) for available options and syntax.
#OPTIONS="-q -i eth0 -i eth1"
OPTIONS="-q"
EOF

find . -type d -exec chmod 0755 {} \;
find . -type f -exec chmod 0644 {} \;

rm -rf doc/ja_JP.eucJP

# remove empty files

find -size 0 |grep ldap | xargs rm -rf 

cat > %{buildroot}%{_sysconfdir}/dhclient-enter-hooks << 'EOF'
# See dhclient-script(8):
# man 8 dhclient-script
EOF
cat > %{buildroot}%{_sysconfdir}/dhclient-exit-hooks << 'EOF'
# See dhclient-script(8):
# man 8 dhclient-script
EOF
mkdir -p %{buildroot}%{_sysconfdir}/dhclient-enter-hooks.d
mkdir -p %{buildroot}%{_sysconfdir}/dhclient-exit-hooks.d

# remove unwanted file
rm -f %{buildroot}%{_sysconfdir}/dhclient.conf.example
rm -f %{buildroot}%{_sysconfdir}/dhcpd.conf.example
rm -f %{buildroot}%{_libdir}/*.a

# Prepare schema files to be included into OpenLDAP configuration
mkdir -p %{buildroot}%{_sysconfdir}/openldap/{schema,slapd.d}
install -m 0644 contrib/ldap/dhcp.schema %{buildroot}%{_sysconfdir}/openldap/schema/
install -m 0644 contrib/ldap/README.ldap %{buildroot}%{_sysconfdir}/openldap/schema/README.%{name}
cat > %{buildroot}%{_sysconfdir}/openldap/slapd.d/%{name}.conf <<EOF
# If interested in storing DHCP leases in your instance of OpenLDAP,
# load this file or copy uncommented lines below to your slapd.conf.
#
# For details see:
#  %{_sysconfdir}/openldap/schema/README.%{name}
#
# You may also find 'dhcpd-conf-to-ldap' script from
# dhcp-server package useful.

include %{_sysconfdir}/openldap/schema/dhcp.schema

EOF

%post server
%sysusers_create isc-dhcpd.conf
%tmpfiles_create dhcpd.conf
# migrate from root:root as it was before ROSA package v4.4.1
# create this directory if it does not esist and then chmod it to allow dhcpd to work properly
[ ! -d %{var_dhcpd}/ ] && mkdir -p %{var_dhcpd}/
[ -d %{var_dhcpd} ] && chown -R isc-dhcpd:isc-dhcpd %{var_dhcpd}/
# https://forum.rosalinux.ru/viewtopic.php?f=56&t=9403
# dhcpd.leases(5) requires precreated databases
for i in dhcpd dhcpd6; do
[ ! -f %{var_dhcpd}/${i}.leases ] && touch %{var_dhcpd}/${i}.leases && chown isc-dhcpd:isc-dhcpd %{var_dhcpd}/${i}.leases; done
%systemd_post dhcpd.service dhcpd6.service

%preun server
%systemd_preun dhcpd.service dhcpd6.service

%post relay
%tmpfiles_create dhcrelay.conf
%systemd_post dhcrelay.service

%preun relay
%systemd_preun dhcrelay.service

%post client
# migrate from root:root as it was before ROSA package v4.4.1
# create this directory if it does not esist and then chmod it to allow dhcpd to work properly
[ ! -d %{var_dhclient}/ ] && mkdir -p %{var_dhclient}/
%tmpfiles_create dhclient.conf

%if %{mdvver} <= 201610
%postun server
# Migrate from dhcpd user created by scripts
# to a dynamic user by systemd-sysusers.
# Makes sense on <=rosa2016.1 only, because a version without
# this user existed in rosa2019.* from the beginning.
if grep -q '^dhcpd:' /etc/passwd ; then
%_postun_userdel dhcpd 2>&1 >/dev/null || true
fi
%endif

%files common
%doc README contrib/ldap/README.ldap RELNOTES
%doc contrib/3.0b1-lease-convert
%{_mandir}/man5/dhcp-options.5*

%files doc
%doc doc/*

%files server
%doc server/dhcpd.conf.example tests/failover contrib/ldap/dhcp.schema
%{_unitdir}/dhcpd.service
%{_unitdir}/dhcpd6.service
%{_tmpfilesdir}/dhcpd.conf
%config(noreplace) %{_sysconfdir}/dhcpd.conf
%config(noreplace) %{_sysconfdir}/dhclient-exit-hooks
%config(noreplace) %{_sysconfdir}/sysconfig/dhcpd
%{_sbindir}/dhcpd
%{_sbindir}/dhcpreport.pl
%{_sbindir}/dhcpd-conf-to-ldap
%{_sbindir}/dhcpd-chroot.sh
%{_bindir}/omshell
%{_mandir}/man1/omshell.1*
%{_mandir}/man3/omapi.3*
%{_mandir}/man5/dhcpd.conf.5*
%{_mandir}/man5/dhcpd.leases.5*
%{_mandir}/man5/dhcp-eval.5*
%{_mandir}/man8/dhcpd.8*
%config %{_sysusersdir}/isc-dhcpd.conf

%files relay
%{_unitdir}/dhcrelay.service
%{_tmpfilesdir}/dhcrelay.conf
%config(noreplace) %{_sysconfdir}/sysconfig/dhcrelay
%{_sbindir}/dhcrelay
%{_mandir}/man8/dhcrelay.8*

%files client
%doc client/dhclient.conf.example
%attr (0755,root,root) /sbin/dhclient-script
%{_tmpfilesdir}/dhclient.conf
%{_unitdir}/dhclient@.service
/sbin/dhclient
%{_mandir}/man5/dhclient.conf.5*
%{_mandir}/man5/dhclient.leases.5*
%{_mandir}/man8/dhclient.8*
%{_mandir}/man8/dhclient-script.8*
/var/spool/initramfs-regen/dhcp-client
%config(noreplace) %{_sysconfdir}/dhclient-enter-hooks
%config(noreplace) %{_sysconfdir}/dhclient-exit-hooks
%dir %{_sysconfdir}/dhclient-enter-hooks.d
%dir %{_sysconfdir}/dhclient-exit-hooks.d

%files devel
%{_includedir}/*
%{_mandir}/man3/*
%exclude %{_mandir}/man3/omapi.3*

%files -n openldap-schemas-%{name}
%config(noreplace) %{_sysconfdir}/openldap/schema/*
%attr(750,ldap,ldap) %config(noreplace) %{_sysconfdir}/openldap/slapd.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12422 |21mr|dhcpcd-9.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DHCP Client Daemon
Name:		dhcpcd
Version:	9.4.0
Release:	2
License:	BSD-Like
Group:		System/Servers
URL:		http://roy.marples.name/projects/dhcpcd
Source0:	http://roy.marples.name/downloads/dhcpcd/%{name}-%{version}.tar.xz
Source1:	%{name}.service
Source2:	%{name}@.service
Source3:	%{name}.sysusers.conf
Patch1:		dhcpcd-9.4.0-fix-install-permissions.patch
Requires(pre):	/bin/systemd-sysusers
Requires(post):	rpm-helper
Provides:	dhcp-client-daemon

%description
dhcpcd is an RFC2131 compliant DHCP client. It is fully featured and yet
lightweight: the binary is 60k as reported by size(1) on Linux i386. It has
support for duplicate address detection, IPv4LL, carrier detection, and a
merged resolv.conf and ntp.conf for which other DHCP clients require third
party tools.

%files
%config(noreplace) %{_sysconfdir}/dhcpcd.conf
/sbin/dhcpcd
%dir /%{_lib}/dhcpcd-hooks
/%{_lib}/dhcpcd-hooks/*
/%{_lib}/dhcpcd-run-hooks
%{_datadir}/%{name}/hooks
%{_mandir}/man5/dhcpcd.conf.5*
%{_mandir}/man8/dhcpcd.8*
%{_mandir}/man8/dhcpcd-run-hooks.8*
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}@.service
%{_sysusersdir}/%{name}.conf
%defattr (0644,root,dhcpcd,0755)
%{_sharedstatedir}/%{name}

%pre
%sysusers_create_package %{name} %{SOURCE3}

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------
%prep
%autosetup -p1

%build
%configure	--bindir=/sbin \
		--libdir=/%{_lib} \
		--libexecdir=/%{_lib} \
		--with-hook=ntp.conf \
		--with-hook=yp.conf \
		--with-hook=ypbind \
		--dbdir=%{_sharedstatedir}/%{name} \
		--without-udev

%ifarch %{e2k}
sed -i 's/i386/e2k/' src/privsep-linux.c
sed -i 's/I386/E2K/' src/privsep-linux.c
%endif

%serverbuild

%make

%install
%makeinstall_std

install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}@.service
install -d %{buildroot}%{_sharedstatedir}/%{name}

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12423 |21mr|dialog-1.3-0.20230209.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 15
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

%global dialogsubversion 20230209

Summary:	A utility for creating TTY dialog boxes
Name:		dialog
Version:	1.3
Release:	0.%{dialogsubversion}.1
License:	LGPLv2.1+
Group:		Development/Tools
Url:		http://invisible-island.net/dialog/dialog.html
Source0:	https://invisible-island.net/archives/dialog/dialog-%{version}-%{dialogsubversion}.tgz
BuildRequires:	findutils
BuildRequires:	gettext
BuildRequires:	libtool
BuildRequires:	pkgconfig(ncursesw)
Conflicts:	cdialog < 1.2
Obsoletes:	cdialog < 1.2
Provides:	cdialog = %{EVRD}

%description
Dialog is a utility that allows you to show dialog boxes (containing
questions or messages) in TTY (text mode) interfaces.  Dialog is called
from within a shell script.  The following dialog boxes are implemented:
yes/no, menu, input, message, text, info, checklist, radiolist, and
gauge.

Install dialog if you would like to create TTY dialog boxes.

%files -f %{name}.lang
%doc COPYING dialog.lsm README _samples/samples
%{_bindir}/dialog
%{_mandir}/man1/dialog.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dialog shared library
Group:		System/Libraries

%description -n %{libname}
Dialog is a utility that allows you to show dialog boxes (containing
questions or messages) in TTY (text mode) interfaces. This package 
contains the dialog shared library.

%files -n %{libname}
%{_libdir}/libdialog.so.%{major}*
#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for building applications with the dialog library
Group:		Development/C
Requires:	pkgconfig(ncursesw)
Provides:	%{name}-devel
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Dialog is a utility that allows you to show dialog boxes (containing
questions or messages) in TTY (text mode) interfaces. This package 
contains the files needed for developing applications, which use the 
dialog library.

%files -n %{devname}
%{_bindir}/dialog-config
%{_includedir}/*.h
%{_libdir}/libdialog.so
%{_mandir}/man3/dialog.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n dialog-%{version}-%{dialogsubversion}

%build
%configure \
	--enable-nls \
	--with-libtool \
	--with-ncursesw \
	--disable-static

%make

%install
# prepare packaged samples
rm -rf _samples
mkdir _samples
cp -a samples _samples
rm -rf _samples/samples/install
find _samples -type f -print0 | xargs -0 chmod a-x

%makeinstall_std

chmod 755 %{buildroot}%{_libdir}/libdialog.so.*.*.*

# remove trash
rm -fr %{buildroot}/%{_libdir}/.libs/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12424 |21mr|dibbler-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%global common_desc \
Dibbler is a portable DHCPv6 implementation. It supports stateful (i.e. IPv6 \
address granting and IPv6 prefix delegation) as well as stateless (i.e. option \
granting) autoconfiguration for IPv6.

%global _pkgdocdir %{_docdir}/%{name}

Name:		dibbler
Version:	1.0.1
Release:	10
Summary:	Portable DHCPv6 implementation
Group:		System/Servers
License:	GPLv2
URL:		http://klub.com.pl/dhcpv6
Source0:	http://klub.com.pl/dhcpv6/dibbler/dibbler-%{version}.tar.gz

BuildRequires:  gcc-c++
%description
%{common_desc}


%package client
Summary:	Dibbler, DHCPv6 client


%description client
%{common_desc}
This package contains DHCPv6 client.

%package relay
Summary:	Dibbler, DHCPv6 relay

%description relay
%{common_desc}
This package contains DHCPv6 relay.

%package requestor
Summary:	Dibbler, DHCPv6 request generator

%description requestor
%{common_desc}
This package contains DHCPv6 request generator.

%package server
Summary:	Dibbler, DHCPv6 server

%description server
%{common_desc}
This package contains DHCPv6 server.

%package docs
Summary:	Dibbler documentation
BuildArch:	noarch

%description docs
%{common_desc}
This package contains dibbler documentation.

%prep
%setup -q -n dibbler-%{version}

%build
%configure
%make_build

%install
%make_install

# We explicitly add license file to each sub-package, so no need to install it
# as documentation
rm %{buildroot}%{_pkgdocdir}/LICENSE

# Setup directories
install -p -d -m 755 %{buildroot}%{_sharedstatedir}/dibbler
install -p -d -m 755 %{buildroot}%{_sysconfdir}/dibbler

# Install configuration files
for config in client relay server; do
    cp -p doc/examples/$config.conf %{buildroot}%{_sysconfdir}/dibbler
done

# Kill example files irrelevant to Fedora Linux
for file in client-win32.conf server-win32.conf; do
    rm %{buildroot}%{_pkgdocdir}/examples/$file
done

for file in client-notify-bsd.sh client-notify-macos.sh; do
    rm %{buildroot}%{_pkgdocdir}/scripts/notify-scripts/$file
done


%files client
%license LICENSE
%{_sbindir}/dibbler-client
%{_mandir}/man8/dibbler-client.8*
%dir %{_sysconfdir}/dibbler
%config(noreplace) %{_sysconfdir}/dibbler/client.conf
%dir %{_sharedstatedir}/dibbler

%files relay
%license LICENSE
%{_sbindir}/dibbler-relay
%{_mandir}/man8/dibbler-relay.8*
%dir %{_sysconfdir}/dibbler
%config(noreplace) %{_sysconfdir}/dibbler/relay.conf
%dir %{_sharedstatedir}/dibbler

%files requestor
%license LICENSE
%{_sbindir}/dibbler-requestor
%dir %{_sharedstatedir}/dibbler

%files server
%license LICENSE
%{_sbindir}/dibbler-server
%{_mandir}/man8/dibbler-server.8*
%dir %{_sysconfdir}/dibbler
%config(noreplace) %{_sysconfdir}/dibbler/server.conf
%dir %{_sharedstatedir}/dibbler

%files docs
%license LICENSE
%dir %{_pkgdocdir}
%{_pkgdocdir}/CHANGELOG
%{_pkgdocdir}/RELNOTES
%{_pkgdocdir}/dibbler-user.pdf
%dir %{_pkgdocdir}/examples
%dir %{_pkgdocdir}/scripts
%{_pkgdocdir}/examples/*.conf
%{_pkgdocdir}/scripts/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12425 |21mr|dietlibc-0.34-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

# This is eventually a biarch package, so no %_lib for diethome
%define diethome %{_prefix}/lib/dietlibc

# Enable builds without testing (default shall always be testing)
%bcond_without check

Summary:	C library optimized for size
Name:		dietlibc
Version:	0.34
Release:	1
License:	GPLv2+
Group:		Development/C
Url:		http://www.fefe.de/dietlibc/
Source0:	http://www.fefe.de/dietlibc/dietlibc-%{version}.tar.xz
Source2:	build_cross_dietlibc.sh
# all in one from RH:
Patch1:		dietlibc-0.34-mdkconfig.patch
Patch5:		dietlibc-0.22-net-ethernet.patch
Patch6:		dietlibc-0.34-rpc-types.patch
Patch17:	dietlibc-0.34-x86_64-stat64.patch
Patch23:	dietlibc-0.34-biarch.patch
Patch26:	dietlibc-0.34-kernel2.6-types.patch
Patch27:	dietlibc-0.34-cross.patch
# (UPSTREAMED differently)
Patch33:	dietlibc-0.34-fix-strncmp.patch
# (pixel) add -fno-stack-protector to override default %{optflags}
Patch37:	dietlibc-0.34-force-no-stack-protector.patch
Patch113:	dietlibc-0.34-i386-types.patch

# (UPSTREAMED)
Patch200:       dietlibc-0.34_mips_Makefile_fixes.patch
Patch201:       dietlibc_mips_use_misc.patch
Patch300:	diet_arm_eabi_time.patch
Patch301:	diet_arm_create_module.patch
# (tv) add string.h's basename (prevent libkmod to segfault in basebame())
Patch322:	basename.diff
Patch323:	dietlibc-0.34-rdts-test.patch

%description
Small libc for building embedded applications.

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for dietlibc
Group:		Development/C
Provides:	%{name} = %{EVRD}

%description devel
Small libc for building embedded applications.

%files devel
%doc AUTHOR BUGS CAVEAT CHANGES README THANKS TODO FAQ
%{_bindir}/diet
%{_mandir}/man*/*
%dir %{diethome}
%dir %{diethome}/include
%{diethome}/include/*
%dir %{diethome}/lib-*
%{diethome}/lib-*/*

#----------------------------------------------------------------------------

%prep
%setup -q

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%patch1 -p1 -b .mdkconfig
%patch5 -p1 -b .net-ethernet
%patch6 -p1 -b .rpc-types
%patch17 -p1 -b .x86_64-stat64
%patch23 -p1 -b .biarch
%patch26 -p1 -b .kernel2.6-types
%patch27 -p1 -b .cross
%patch33 -p1 -b .fix-strncmp
%patch37 -p1 -b .stack-protector

%patch200 -p1 -b .mips
%patch201 -p1 -b .mips_misc
%patch300 -p1 -b .arm_time
%patch301 -p1 -b .arm_create_module
%patch322 -p1 -b .readdir_r
%patch323 -p1

%patch113 -p1 -b .386_types
rm -f x86_64/getpriority.S

#WANT_VALGRIND_SUPPORT
# disable unwanted features
cp dietfeatures.h{,.tv}
sed -i \
    -e '/#define WANT_\(LARGEFILE_BACKCOMPAT\|\LINKER_WARNINGS\|IPV6_DNS\|HIGH_PRECISION_MATH\|SAFEGUARDNT_LINKER_WARNINGS\|PLUGPLAY_DNS\|SAFEGUARD\)/d' \
    dietfeatures.h

# fix execute permission on test scripts
chmod a+x test/{dirent,inet,stdio,string,stdlib,time}/runtests.sh

%build
%make DEBUG=1

%check
# make and run the tests
%if %{with check}
cd test; rm *.c.*
%ifarch %{mips} %{arm}
sed -i -e 's!cycles empty!empty!' Makefile
%endif
# fix build in chroot:
export DIETHOME="%{_builddir}/%{name}-%{version}"
MYARCH=`uname -m | sed -e 's/i[4-9]86/i386/' -e 's/armv[3-7]t\?e\?[lb]/arm/' -e 's!mips!%{_arch}!g'`
find -name "Makefile" | xargs perl -pi -e "s|^DIET.*|DIET=\"${DIETHOME}/bin-${MYARCH}/diet\"|g"
# compile test suite:
%make all  DEBUG=1
%make -C inet all DEBUG=1

# run the tests
# getpass requires user input
perl -pi -e "s|^PASS.*|PASS=\"\"|g" runtests.sh
sh ./runtests.sh
cd ..
%endif

%install
%makeinstall_std DEBUG=1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12426 |21mr|diffstat-1.64-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility which provides statistics based on the output of diff
Name:		diffstat
Version:	1.64
Release:	1
License:	MIT
Group:		Development/Other
Url:		http://invisible-island.net/diffstat/diffstat.html
Source0: 	ftp://invisible-island.net/diffstat/%name-%version.tgz

%description
Diffstat is is useful for reviewing large, complex patch files. It reads from
one or more input files which contain output from diff, producing a histogram
of the total lines changed for each file referenced.

%files
%doc CHANGES
%{_bindir}/diffstat
%{_mandir}/man1/diffstat.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12427 |21mr|diffutils-3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GNU collection of diff utilities
Name:		diffutils
Version:	3.8
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.gnu.org/software/diffutils/
Source0:	ftp://ftp.gnu.org/pub/gnu/diffutils/%{name}-%{version}.tar.xz
Source2:	%{name}-help2man.bz2
BuildRequires:	gettext-devel
BuildRequires:	libsigsegv-devel
BuildRequires:	texinfo

%description
Diffutils includes four utilities:  diff, cmp, diff3 and sdiff.

  * Diff compares two files and shows the differences, line by line.
  * The cmp command shows the offset and line numbers where two files differ,
    or cmp can show the characters that differ between the two files.
  * The diff3 command shows the differences between three files. Diff3 can be
    used when two people have made independent changes to a common original;
    diff3 can produce a merged file that contains both persons' changes and
    warnings about conflicts.
  * The sdiff command can be used to list diff of two files side by side or
    merge two files interactively.

Install diffutils if you need to compare text files.

%files -f %{name}.lang
%doc NEWS README
%{_bindir}/*
%{_mandir}/man*/*
%{_infodir}/%{name}.info*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

bzcat %{SOURCE2} > help2man
chmod +x help2man

# default editor for sdiff interactive mode, vi is likely better than ed
sed -i -e 's/^(#define\s+DEFAULT_EDITOR_PROGRAM\s+)"ed"/$1"vi"/' configure*

aclocal -I m4 --dont-fix
automake -a
autoconf -f

%build
# for finding help2man
export PATH=$PATH:`pwd`
%configure \
	--without-included-regex \
	--with-packager="%{distribution}" \
	--with-packager-bug-reports="%{bugurl}"

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12428 |21mr|digikam-8.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Disable until libmediawiki gets individual tarball release
%bcond_with wikimedia

Summary:	A KDE photo management utility
Name:		digikam
Epoch:		2
Version:	8.0.0
Release:	2
License:	GPLv2+
Group:		Graphics
Url:		http://www.digikam.org
Source0:	http://download.kde.org/stable/digikam/%{version}/digiKam-%{version}.tar.xz
Source1:	digiKam-8.0.0_ru.tar.gz
Source100:	%{name}.rpmlintrc
# fix thumbbar scrolls to 100th image https://bugs.kde.org/show_bug.cgi?id=468593
Patch1: digikam-8.0.0-disable-QListView-Batched-optimization-for-the-thumb.patch
Patch2: https://invent.kde.org/graphics/digikam/-/commit/5b4ba173f6a84a8be1131b1523dc42df95171ec7.diff
BuildRequires:	ninja
BuildRequires:	appstream
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	eigen3
BuildRequires:	extra-cmake-modules
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	git
BuildRequires:	ruby
BuildRequires:	qtav-devel
BuildRequires:	ccache
BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	gomp-devel
# mariadb-connector-c
BuildRequires:	mysql-devel
# mariadb, MySQL embeded library
BuildRequires:	libmysqld-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5sane-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5vkontakte-devel
BuildRequires:	opencv-devel >= 4.3.0
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(lensfun)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(lqr-1)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5NetworkAuth)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(x11)
BuildRequires:	marble-devel
# MediaPlayer dependencies
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavdevice)
BuildRequires:	pkgconfig(libavfilter)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xv)
Requires:	libgphoto-common
Requires:	qt5-database-plugin-sqlite
# Needed to show geolocation
Recommends:	marble

%description
DigiKam is an advanced digital photo management application for KDE.
Photos can be collected into albums which can be sorted chronologically,
by directory layout or by custom collections.
DigiKam also provides tagging functionality. Images can be tagged despite of
their position and digiKam provides fast and intuitive ways to browse them.
User comments and customized meta-information added to images, are stored
into a database and retrieved to make them available into the user interface.
As soon as the camera is plugged in digikam allows you to preview, download,
upload and delete images.
Digikam also includes tools like Image Editor, to modify photos using plugins
such as red eye correction or Gamma correction, exif management,...
Light Table to make artistic photos and an external image editor such
as Showfoto.
Digikam also uses KIPI plugins (KDE Image Plugin Interface) to increase
its functionalities.

%files -f %{name}.lang
%{_kde5_bindir}/digikam
%{_kde5_bindir}/digitaglinktree
%{_kde5_bindir}/cleanup_digikamdb
%{_kde5_datadir}/digikam
%{_kde5_datadir}/solid/actions/digikam*.desktop
%{_kde5_xmlguidir}/digikam
%{_kde5_applicationsdir}/org.kde.digikam.desktop
%{_kde5_mandir}/man1/digitaglinktree.1*
%{_kde5_mandir}/man1/cleanup_digikamdb.1*
%{_kde5_iconsdir}/*/*/apps/digikam.*
%{_kde5_iconsdir}/hicolor/*/*/avplayer.*
%{_kde5_iconsdir}/hicolor/*/*/dk-*.*
%{_kde5_iconsdir}/hicolor/*/apps/expoblending.png
%{_kde5_iconsdir}/hicolor/*/*/panorama.*
%{_kde5_iconsdir}/*/*/*/albumfolder*.*
%{_kde5_iconsdir}/*/*/*/overexposure.*
%{_kde5_iconsdir}/*/*/*/tag*.*
%{_kde5_iconsdir}/*/*/*/underexposure.*
%{_kde5_notificationsdir}/digikam.notifyrc
%{_qt5_plugindir}/digikam
%{_appdatadir}/org.kde.digikam.appdata.xml

#-----------------------------------------------------------------------

%package -n showfoto
Summary:	Fast Image Editor
Group:		Graphics
# Otherwise it doesn't work properly
Requires:	%{name} = %{EVRD}

%description -n showfoto
Showfoto is a fast Image Editor with powerful image editing tools.
You can use it to view your photographs and improve them.

%files -n showfoto
%{_kde5_bindir}/showfoto
%{_kde5_applicationsdir}/org.kde.showfoto.desktop
%{_kde5_datadir}/showfoto
%{_kde5_iconsdir}/*/*/apps/showfoto.*
%{_kde5_xmlguidir}/showfoto/showfotoui5.rc
%{_appdatadir}/org.kde.showfoto.appdata.xml

#-----------------------------------------------------------------------

%define digikamcore_major 8
%define libdigikamcore %mklibname digikamcore %{digikamcore_major}

%package -n %{libdigikamcore}
Summary:	Runtime library for %{name}
Group:		System/Libraries

%description -n %{libdigikamcore}
Librairie File needed by %{name}

%files -n %{libdigikamcore}
%{_kde5_libdir}/libdigikamcore.so.%{digikamcore_major}*

#-----------------------------------------------------------------------

%define digikamdatabase_major 8
%define libdigikamdatabase %mklibname digikamdatabase %{digikamdatabase_major}

%package -n %{libdigikamdatabase}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdigikamdatabase}
Shared library for %{name}.

%files -n %{libdigikamdatabase}
%{_kde5_libdir}/libdigikamdatabase.so.%{digikamdatabase_major}*

#-----------------------------------------------------------------------

%define digikamgui_major 8
%define libdigikamgui %mklibname digikamgui %{digikamgui_major}

%package -n %{libdigikamgui}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdigikamgui}
Shared library for %{name}.

%files -n %{libdigikamgui}
%{_kde5_libdir}/libdigikamgui.so.%{digikamgui_major}*

#-----------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libdigikamcore} = %{EVRD}
Requires:	%{libdigikamdatabase} = %{EVRD}
Requires:	%{libdigikamgui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%{_kde5_includedir}/digikam/
%{_kde5_libdir}/libdigikamcore.so
%{_kde5_libdir}/libdigikamdatabase.so
%{_kde5_libdir}/libdigikamgui.so
%{_kde5_libdir}/cmake/DigikamCore/
%{_kde5_libdir}/cmake/DigikamDatabase/
%{_kde5_libdir}/cmake/DigikamGui/
%{_kde5_libdir}/cmake/DigikamPlugin/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%cmake_kde5 -G Ninja \
	-DENABLE_OPENCV3:BOOL=ON \
	-DCMAKE_SKIP_RPATH=ON \
	-DBUILD_TESTING=OFF \
	-DENABLE_MYSQLSUPPORT:BOOL=ON \
	-DENABLE_INTERNALMYSQL:BOOL=OFF \
	-DENABLE_AKONADICONTACTSUPPORT:BOOL=ON \
	-DENABLE_APPSTYLES:BOOL=ON \
	-DENABLE_KFILEMETADATASUPPORT:BOOL=ON \
	-DENABLE_MEDIAPLAYER:BOOL=ON \
	-DCMAKE_C_COMPILER=gcc \
	-DENABLE_QWEBENGINE=ON

%build
export LD_LIBRARY_PATH=$(pwd)/build/bin
%ninja_build -C build

%install
export LD_LIBRARY_PATH=$(pwd)/build/bin
%ninja_install -C build

%find_lang %{name} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12429 |21mr|ding-libs-0.6.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define path_utils_version 0.2.1
%define dhash_version 0.5.0
%define collection_version 0.7.0
%define ref_array_version 0.1.5
%define ini_config_version 1.3.1
%define basicobjects_version 0.1.1

%define path_utils_major 1
%define path_utils_libname %mklibname path_utils %{path_utils_major}
%define path_utils_devname %mklibname path_utils -d

%define dhash_major 1
%define dhash_libname %mklibname dhash %{dhash_major}
%define dhash_devname %mklibname dhash -d

%define collection_major 4
%define collection_libname %mklibname collection %{collection_major}
%define collection_devname %mklibname collection -d

%define ref_array_major 1
%define ref_array_libname %mklibname ref_array %{ref_array_major}
%define ref_array_devname %mklibname ref_array -d

%define ini_config_major 5
%define ini_config_libname %mklibname ini_config %{ini_config_major}
%define ini_config_devname %mklibname ini_config -d

%define basicobjects_major 0
%define basicobjects_libname %mklibname basicobjects %{basicobjects_major}
%define basicobjects_devname %mklibname basicobjects -d

Summary:	"Ding is not GLib" assorted utility libraries
Name:		ding-libs
Version:	0.6.1
Release:	16
License:	LGPLv3+
Group:		Development/C
Url:		http://fedorahosted.org/sssd/
Source0:	http://fedorahosted.org/releases/d/i/ding-libs/%{name}-%{version}.tar.gz
Patch0:		INI-Silence-ini_augment-match-failures.patch
Patch1:		INI-Remove-definiton-of-TRACE_LEVEL.patch
Patch2:		ding-libs-0.6.1-ini_validators_ut_check-glibc-2.28.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(check)

%description
A set of helpful libraries used by projects such as SSSD.

#----------------------------------------------------------------------------

%package -n %{path_utils_libname}
Summary:	Filesystem Path Utilities
Version:	%{path_utils_version}
Group:		Development/C

%description -n %{path_utils_libname}
Utility functions to manipulate filesystem pathnames.

%files -n %{path_utils_libname}
%doc COPYING COPYING.LESSER
%{_libdir}/libpath_utils.so.%{path_utils_major}*

#----------------------------------------------------------------------------

%package -n %{path_utils_devname}
Summary:	Development files for libpath_utils
Version:	%{path_utils_version}
Group:		Development/C
Requires:	%{path_utils_libname} = %{path_utils_version}-%{release}
Provides:	path_utils-devel = %{path_utils_version}-%{release}

%description -n %{path_utils_devname}
Utility functions to manipulate filesystem pathnames.

%files -n %{path_utils_devname}
%doc path_utils/README.path_utils
%doc path_utils/doc/html/
%{_libdir}/libpath_utils.so
%{_libdir}/pkgconfig/path_utils.pc
%{_includedir}/path_utils.h

#----------------------------------------------------------------------------

%package -n %{dhash_libname}
Summary:	Dynamic hash table
Version:	%{dhash_version}
Group:		Development/C

%description -n %{dhash_libname}
A hash table which will dynamically resize to achieve optimal storage & access
time properties.

%files -n %{dhash_libname}
%doc COPYING COPYING.LESSER
%{_libdir}/libdhash.so.%{dhash_major}*

#----------------------------------------------------------------------------

%package -n %{dhash_devname}
Summary:	Development files for libdhash
Version:	%{dhash_version}
Group:		Development/C
Requires:	%{dhash_libname} = %{dhash_version}-%{release}
Provides:	dhash-devel = %{dhash_version}-%{release}

%description -n %{dhash_devname}
A hash table which will dynamically resize to achieve optimal storage & access
time properties.

%files -n %{dhash_devname}
%doc dhash/README.dhash
%{_includedir}/dhash.h
%{_libdir}/libdhash.so
%{_libdir}/pkgconfig/dhash.pc

#----------------------------------------------------------------------------

%package -n %{collection_libname}
Summary:	Collection data-type for C
Version:	%{collection_version}
Group:		Development/C

%description -n %{collection_libname}
A data-type to collect data in a hierarchical structure for easy iteration
and serialization.

%files -n %{collection_libname}
%doc COPYING COPYING.LESSER
%{_libdir}/libcollection.so.%{collection_major}*

#----------------------------------------------------------------------------

%package -n %{collection_devname}
Summary:	Development files for libcollection
Version:	%{collection_version}
Group:		Development/C
Requires:	%{collection_libname} = %{collection_version}-%{release}
Provides:	collection-devel = %{collection_version}-%{release}

%description -n %{collection_devname}
A data-type to collect data in a hierarchical structure for easy iteration
and serialization.

%files -n %{collection_devname}
%doc collection/doc/html/
%{_includedir}/collection.h
%{_includedir}/collection_tools.h
%{_includedir}/collection_queue.h
%{_includedir}/collection_stack.h
%{_libdir}/libcollection.so
%{_libdir}/pkgconfig/collection.pc

#----------------------------------------------------------------------------

%package -n %{ref_array_libname}
Summary:	A refcounted array for C
Version:	%{ref_array_version}
Group:		Development/C

%description -n %{ref_array_libname}
A dynamically-growing, reference-counted array.

%files -n %{ref_array_libname}
%doc COPYING COPYING.LESSER
%{_libdir}/libref_array.so.%{ref_array_major}*

#----------------------------------------------------------------------------

%package -n %{ref_array_devname}
Summary:	Development files for libref_array
Version:	%{ref_array_version}
Group:		Development/C
Requires:	%{ref_array_libname} = %{ref_array_version}-%{release}
Provides:	ref_array-devel = %{ref_array_version}-%{release}

%description -n %{ref_array_devname}
A dynamically-growing, reference-counted array

%files -n %{ref_array_devname}
%doc refarray/README.ref_array
%doc refarray/doc/html/
%{_includedir}/ref_array.h
%{_libdir}/libref_array.so
%{_libdir}/pkgconfig/ref_array.pc

#----------------------------------------------------------------------------

%package -n %{ini_config_libname}
Summary:	INI file parser for C
Version:	%{ini_config_version}
Group:		Development/C

%description -n %{ini_config_libname}
Library to process config files in INI format into a libcollection data
structure.

%files -n %{ini_config_libname}
%doc COPYING COPYING.LESSER
%{_libdir}/libini_config.so.%{ini_config_major}*

#----------------------------------------------------------------------------

%package -n %{ini_config_devname}
Summary:	Development files for libini_config
Version:	%{ini_config_version}
Group:		Development/C
Requires:	%{ini_config_libname} = %{ini_config_version}-%{release}
Provides:	ini_config-devel = %{ini_config_version}-%{release}

%description -n %{ini_config_devname}
Library to process config files in INI format into a libcollection data
structure.

%files -n %{ini_config_devname}
%doc ini/doc/html/
%{_includedir}/ini_config.h
%{_includedir}/ini_comment.h
%{_includedir}/ini_configmod.h
%{_includedir}/ini_configobj.h
%{_includedir}/ini_valueobj.h
%{_libdir}/libini_config.so
%{_libdir}/pkgconfig/ini_config.pc

#----------------------------------------------------------------------------

%package -n %{basicobjects_libname}
Summary:	Basic object types for C
Version:	%{basicobjects_version}
Group:		Development/C

%description -n %{basicobjects_libname}
Basic object types.

%files -n %{basicobjects_libname}
%doc COPYING COPYING.LESSER
%{_libdir}/libbasicobjects.so.%{basicobjects_major}*

#----------------------------------------------------------------------------

%package -n %{basicobjects_devname}
Summary:	Development files for libbasicobjects
Version:	%{basicobjects_version}
Group:		Development/C
Requires:	%{basicobjects_libname} = %{basicobjects_version}-%{release}
Provides:	basicobjects-devel = %{basicobjects_version}-%{release}

%description -n %{basicobjects_devname}
Basic object types.

%files -n %{basicobjects_devname}
%{_includedir}/simplebuffer.h
%{_libdir}/libbasicobjects.so
%{_libdir}/pkgconfig/basicobjects.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%configure \
	--disable-static

%make
%make docs

%install
rm -fr dhash/examples/{.dirstamp,.deps/.dirstamp,dhash_example.o,dhash_test.o}
%makeinstall_std

# Remove the example files from the output directory
# We will copy them directly from the source directory
# for packaging
rm -f \
    %{buildroot}/usr/share/doc/ding-libs/README.* \
    %{buildroot}/usr/share/doc/ding-libs/examples/dhash_example.c \
    %{buildroot}/usr/share/doc/ding-libs/examples/dhash_test.c

# Remove document install script. RPM is handling this
rm -f */doc/html/installdox

find %{buildroot} -size 0 -delete

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12430 |21mr|dirac-1.0.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
# TODO: split library package
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Video Codec based on Wavelets
Name:		dirac
Version:	1.0.2
Release:	14
License:	MPLv1.1
Group:		Video
Url:		http://sf.net/projects/dirac
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		dirac-0.7.0-werror.patch
Patch1:		dirac-1.0.2-backports.patch
BuildRequires:	doxygen
BuildRequires:	texlive-dvipdfm
BuildRequires:	texlive-latex
BuildRequires:	pkgconfig(cppunit)

%description
Dirac is an open source video codec. It uses a traditional hybrid
video codec architecture, but with the wavelet transform instead of
the usual block transforms.  Motion compensation uses overlapped
blocks to reduce block artefacts that would upset the transform coding
stage.

Dirac can code just about any size of video, from streaming up to HD
and beyond, although certain presets are defined for different
applications and standards.  These cover the parameters that need to
be set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of the Dirac Video codec
Group:		System/Libraries
Obsoletes:	%{_lib}dirac0.1 < 1.0.2-4

%description -n %{libname}
Dirac is an open source video codec. It uses a traditional hybrid
video codec architecture, but with the wavelet transform instead of
the usual block transforms.  Motion compensation uses overlapped
blocks to reduce block artefacts that would upset the transform coding
stage.

Dirac can code just about any size of video, from streaming up to HD
and beyond, although certain presets are defined for different
applications and standards.  These cover the parameters that need to
be set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand.

%files -n %{libname}
%{_libdir}/libdirac*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of the Dirac Video codec
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}%{name}-static-devel < 1.0.2-10

%description -n %{devname}
Dirac is an open source video codec. It uses a traditional hybrid
video codec architecture, but with the wavelet transform instead of
the usual block transforms.  Motion compensation uses overlapped
blocks to reduce block artefacts that would upset the transform coding
stage.

Dirac can code just about any size of video, from streaming up to HD
and beyond, although certain presets are defined for different
applications and standards.  These cover the parameters that need to
be set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand.

%files -n %{devname}
%doc installed-docs/*
%{_includedir}/%{name}
%{_libdir}/libdirac*.so
%{_libdir}/pkgconfig/dirac.pc

#----------------------------------------------------------------------------

%package utils
Summary:	Example encoder and decoder for the Dirac video codec
Group:		Video

%description utils
Dirac is an open source video codec. It uses a traditional hybrid
video codec architecture, but with the wavelet transform instead of
the usual block transforms.  Motion compensation uses overlapped
blocks to reduce block artefacts that would upset the transform coding
stage.

Dirac can code just about any size of video, from streaming up to HD
and beyond, although certain presets are defined for different
applications and standards.  These cover the parameters that need to
be set for the encoder to work, such as block sizes and temporal
prediction structures, which must otherwise be set by hand.

%files utils
%doc README TODO AUTHORS
%{_bindir}/dirac*
%{_bindir}/BMPtoRGB
%{_bindir}/RGB*
%{_bindir}/UYVYtoRGB
%{_bindir}/UYVYtoYUV422
%{_bindir}/YUV*
%{_bindir}/create_dirac_testfile.pl

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p1
%patch1 -p0

%build
%global optflags %{optflags} -std=gnu++11
./bootstrap
%configure --disable-static
%make

%install
%makeinstall_std

mv %{buildroot}%{_datadir}/doc installed-docs
#gw don't package unit tests
rm -fv %{buildroot}%{_bindir}/dirac_unittest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12431 |21mr|directfb-1.6.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname DirectFB
%define api 1.6
%define major 0
%define libdirect %mklibname direct %{api} %{major}
%define libdirectfb %mklibname directfb %{api} %{major}
%define libfusion %mklibname fusion %{api} %{major}
%define devname %mklibname %{name} -d

# Multiple applications support
# Requires fusion kernel module
%bcond_with multi

Summary:	Hardware graphics acceleration library
Name:		directfb
Version:	1.6.3
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.directfb.org/
Source0:	http://directfb.org/downloads/Core/%{oname}-1.6/%{oname}-%{version}.tar.gz
# from Debian
Patch0:		03_link_static_sysfs.patch
Patch1:		DirectFB-1.6.1-link-static-ar.patch
# Explicitly link with -lm. Was failing only on x86_64, but not on i586,
# apparently because -O3 was generating code to bypass libm on i586.
Patch3:		DirectFB-1.2.7-sincos-x86_64.patch
# remove common linkage of x11 system and x11 input driver
# it makes directfb segfault
# (this is a workaround, not a proper upstreamable fix)
Patch4:		DirectFB-1.4.2-x11-linkage.patch
# from Debian #401296, 93_fix_unicode_key_handling.patch
Patch6:		DirectFB-1.4.2-unicode.patch
Patch7:		DirectFB-1.6.1-svg-includedir.patch
Patch8:		DirectFB-1.6.1-zlib.patch
Patch9:		DirectFB-1.5.3-add-missing-davinci-files.patch

BuildRequires:	bzip2-devel
BuildRequires:	jpeg-devel
BuildRequires:	sysfsutils-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(freetype2)
# NEED-A-FIX Building without MESA support
#BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsvg-cairo)
BuildRequires:	pkgconfig(libvncserver)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(zlib)
%if %{with multi}
BuildRequires:	fusion-devel >= 3.0
%endif
Conflicts:	%{_lib}directfb1.6_0 < 1.6.3
Conflicts:	%{_lib}directfb-devel < 1.6.3

%description
DirectFB hardware graphics acceleration utilities and interfaces.

%files
%{_bindir}/dfbdump
%{_bindir}/dfbdumpinput
%{_bindir}/dfbfx
%{_bindir}/dfbg
%{_bindir}/dfbinfo
%{_bindir}/dfbinput
%{_bindir}/dfbinspector
%{_bindir}/dfblayer
%{_bindir}/dfbmaster
%{_bindir}/dfbpenmount
%{_bindir}/dfbscreen
%{_bindir}/directfb-config
%{_bindir}/directfb-csource
%{_bindir}/mkdfiff
%{_bindir}/mkdgiff
%{_bindir}/mkdgifft
%{_bindir}/pxa3xx_dump
%{_datadir}/directfb-%{version}/
%{_libdir}/directfb-%{api}-%{major}/
%{_mandir}/man1/directfb-csource.1*
%{_mandir}/man1/dfbg.1*
%{_mandir}/man5/directfbrc.5*

#----------------------------------------------------------------------------

%package -n %{libdirect}
Summary:	The direct library, a part of DirectFB
Group:		System/Libraries
Conflicts:	%{_lib}directfb1.6_0 < 1.6.3

%description -n %{libdirect}
The direct library, a part of DirectFB.

%files -n %{libdirect}
%{_libdir}/libdirect-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdirectfb}
Summary:	Shared library part of %{oname}
Group:		System/Libraries
# We use >= instead of = to avoid build issues when library major changes
Requires:	%{name} >= %{EVRD}

%description -n %{libdirectfb}
DirectFB hardware graphics acceleration main library.

%files -n %{libdirectfb}
%{_libdir}/libdirectfb-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfusion}
Summary:	The fusion library, a part of DirectFB
Group:		System/Libraries
Conflicts:	%{_lib}directfb1.6_0 < 1.6.3

%description -n %{libfusion}
The fusion library, a part of DirectFB.

%files -n %{libfusion}
%{_libdir}/libfusion-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for compiling DirectFB applications
Group:		Development/C
Requires:	%{libdirect} = %{EVRD}
Requires:	%{libdirectfb} = %{EVRD}
Requires:	%{libfusion} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
DirectFB header files for building applications based on %{oname}.

%files -n %{devname}
%{_bindir}/directfb-config
%{_includedir}/directfb
%{_includedir}/directfb-internal
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package doc
Summary:	DirectFB - documentation
Group:		Documentation

%description doc
DirectFB documentation and examples.

%files doc
%doc docs/html/*
%doc README* AUTHORS NEWS TODO

#----------------------------------------------------------------------------

%prep
%setup  -q -n %{oname}-%{version}
%patch0 -p1 -b .sysfs
%patch1 -p1 -b .link-static-ar
%patch3 -p1
%patch4 -p1 -b .x11-linkage
%patch6 -p1 -b .unicode
%patch7 -p0 -b .svgdir
%patch8 -p1 -b .zlib
%patch9 -p1 -b .davinci

# Needed for Qt 5 as of Qt 5.0.1:
sed -i -e '/define __typeof/d' lib/direct/os/linux/glibc/types.h
find . -name "*.h" |xargs sed -i -e 's,__typeof__,typeof,g'

autoreconf -if

%build
%configure \
	--disable-maintainer-mode \
	--enable-shared \
	--disable-static \
	--disable-fast-install \
	--disable-debug \
	--enable-zlib \
%ifarch %{ix86}
	--disable-mmx \
	--disable-sse \
%endif
%if %{with multi}
	--enable-multi
%else
	--disable-multi
%endif

%make LIBS="-lbz2 -ldl -pthread -lpthread -lrt"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12432 |21mr|directory-project-35-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          directory-project
Version:       35
Release:       8
Summary:       Apache Directory Project Root pom
License:       ASL 2.0
Url:           http://directory.apache.org/
# svn export http://svn.apache.org/repos/asf/directory/project/tags/35 directory-project-35
# tar cJf directory-project-35.tar.xz directory-project-35
Source0:       directory-project-35.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Apache Directory Project provides directory solutions
entirely written in Java. These include a directory server,
which has been certified as LDAP v3 compliant by the
Open Group (Apache Directory Server), and Eclipse-based
directory tools (Apache Directory Studio).

%prep
%setup -q
%pom_remove_plugin :tools-maven-plugin
%pom_remove_plugin :maven-xbean-plugin
%pom_remove_plugin :clirr-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :dashboard-maven-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :javancss-maven-plugin
%pom_remove_plugin :jdepend-maven-plugin
%pom_remove_plugin :l10n-maven-plugin
%pom_remove_plugin :taglist-maven-plugin
%pom_remove_plugin :versions-maven-plugin
%pom_remove_plugin :docbkx-maven-plugin

%pom_remove_plugin :maven-site-plugin

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12433 |21mr|discount-2.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname markdown %{major}
%define devname %mklibname markdown -d

Summary:	A command-line utility for converting Markdown files into HTML
Name:		discount
Version:	2.2.7
Release:	1
License:	BSD
Group:		Text tools
Url:		http://www.pell.portland.or.us/~orc/Code/discount
Source0:	https://github.com/Orc/discount/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		discount-2.2.4-ldconfig.patch

%description
Discount is an implementation of John Gruber's Markdown language in C.
It includes all of the original Markdown features, along with a few
extensions, and passes the Markdown test suite.

%files
%{_bindir}/markdown
%{_bindir}/%{name}-makepage
%{_bindir}/%{name}-mkd2html
%{_bindir}/%{name}-theme
%{_mandir}/man1/markdown.1*
%{_mandir}/man7/markdown.7*
%{_mandir}/man1/%{name}-*.1*
%{_mandir}/man7/mkd-*.7*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A fast implementation of the Markdown language in C
Group:		System/Libraries

%description -n %{libname}
libmarkdown is the library portion of Discount, a fast Markdown language
implementation, written in C.

%files -n %{libname}
%doc README COPYRIGHT CREDITS
%{_libdir}/libmarkdown.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for the libmarkdown library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libmarkdown-devel = %{EVRD}
Provides:	markdown-devel = %{EVRD}

%description -n %{devname}
This package contains development headers and developer-oriented man pages for
libmarkdown.

%files -n %{devname}
%{_libdir}/libmarkdown.so
%{_libdir}/pkgconfig/libmarkdown.pc
%{_includedir}/mkdio.h
%{_mandir}/man3/markdown.3*
%{_mandir}/man3/mkd*.3*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
# Not using %%configure since it is not an autotools script
./configure.sh \
	--shared \
	--pkg-config \
	--prefix=%{_prefix} \
	--execdir=%{_bindir} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir} \
	--enable-all-features \
	--with-fenced-code
# parallel build fail
%make -j1

%install
%makeinstall_std install.everything

install -D -m644 libmarkdown.pc %{buildroot}%{_libdir}/pkgconfig/libmarkdown.pc

# Rename sample programs (names are too generic) and matching man1 pages
mv %{buildroot}%{_bindir}/makepage %{buildroot}%{_bindir}/%{name}-makepage
mv %{buildroot}%{_bindir}/mkd2html %{buildroot}%{_bindir}/%{name}-mkd2html
mv %{buildroot}%{_bindir}/theme %{buildroot}%{_bindir}/%{name}-theme
mv %{buildroot}%{_mandir}/man1/makepage.1 \
   %{buildroot}%{_mandir}/man1/%{name}-makepage.1
mv %{buildroot}%{_mandir}/man1/mkd2html.1 \
   %{buildroot}%{_mandir}/man1/%{name}-mkd2html.1
mv %{buildroot}%{_mandir}/man1/theme.1 \
   %{buildroot}%{_mandir}/man1/%{name}-theme.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12434 |21mr|discover-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without packagekit

Summary:	Plasma 5 package manager
Name:		discover
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Source1:	discoverrc
Patch0:		discover-5.17.5-default-sort-by-name.patch
# always force refresh, periodic refresh set to 12h instead of 24h
Patch1:		https://src.fedoraproject.org/rpms/plasma-discover/raw/rawhide/f/discover-5.21.4-pk_refresh_force.patch
BuildRequires:	extra-cmake-modules
%if %{with packagekit}
BuildRequires:	appstream-qt5-devel
BuildRequires:	pkgconfig(packagekitqt5)
%endif
BuildRequires:	kf5attica-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kirigami2-devel
BuildRequires:	pkgconfig(flatpak)
BuildRequires:	pkgconfig(libmarkdown)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
%ifarch %{x86_64} %{ix86} %{aarch64}
BuildRequires:	pkgconfig(Qt5WebView)
%endif
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(qca2-qt5)
# kns backend downloads KDE-specific stuff and is not needed in other DEs
# where discover works very well
Recommends:	(%{name}-backend-kns if plasma5-workspace)
Recommends:	(%{name}-backend-flatpak if flatpak)
# packagekit backend uses dnf, it is always useful
Recommends:	%{name}-backend-packagekit
Requires:	kirigami2
Requires:	qt5-qtquickcontrols2
Conflicts:	%{_lib}discovercommon5 < 5.27.8-2
Obsoletes:	%{_lib}discovercommon5 < 5.27.8-2
Conflicts:	%{_lib}discovernotifiers5 < 5.27.8-2
Obsoletes:	%{_lib}discovernotifiers5 < 5.27.8-2
Conflicts:	libdiscover-i18n < 5.27.8-2
Obsoletes:	libdiscover-i18n < 5.27.8-2

%description
Plasma 5 package manager.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kcm_updates.desktop
%{_kde5_applicationsdir}/org.kde.discover.desktop
%{_kde5_applicationsdir}/org.kde.discover.urlhandler.desktop
%{_kde5_applicationsdir}/org.kde.discover.snap.desktop
%{_kde5_bindir}/plasma-discover
%{_kde5_bindir}/plasma-discover-update
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_updates.so
%{_kde5_datadir}/qlogging-categories5/discover.categories
%{_kde5_iconsdir}/hicolor/*/apps/plasmadiscover.*
%{_kde5_xmlguidir}/plasmadiscover/plasmadiscoverui.rc
%{_appdatadir}/org.kde.discover.appdata.xml
%{_kde5_datadir}/kpackage/kcms/kcm_updates/contents/ui/main.qml
%{_kde5_libdir}/plasma-discover/libDiscoverCommon.so
%{_kde5_libdir}/plasma-discover/libDiscoverNotifiers.so
%dir %{_kde5_libdir}/plasma-discover
%dir %{_kde5_xmlguidir}/plasmadiscover
%{_sysconfdir}/xdg/discoverrc

#----------------------------------------------------------------------------

%package backend-flatpak
Summary:	Flatpak backend for Discover
Group:		Graphical desktop/KDE
Requires:	flatpak
Requires:	(flatpak-kcm if plasma5-systemsettings)
Requires:	xdg-desktop-portal-kde

%description backend-flatpak
Flatpak backend for Discover.

%files backend-flatpak
%{_kde5_applicationsdir}/org.kde.discover-flatpak.desktop
%{_kde5_datadir}/libdiscover/categories/flatpak-backend-categories.xml
%{_kde5_iconsdir}/hicolor/*/apps/flatpak-discover.*
%{_qt5_plugindir}/discover/flatpak-backend.so
%{_qt5_plugindir}/discover-notifier/FlatpakNotifier.so
%{_appdatadir}/org.kde.discover.flatpak.appdata.xml

#----------------------------------------------------------------------------

%package backend-kns
Summary:	KNewStuff backend for Discover
Group:		Graphical desktop/KDE
Obsoletes:	muon-backend-kns < 5.5

%description backend-kns
KNewStuff backend for Discover.

%files backend-kns
%{_qt5_plugindir}/discover/kns-backend.so

#----------------------------------------------------------------------------

%if %{with packagekit}
%package backend-packagekit
Summary:	PackageKit backend for Discover
Group:		Graphical desktop/KDE
Requires:	packagekit
Requires:	dnf-plugins-core
Obsoletes:	muon-backend-packagekit < 5.5

%description backend-packagekit
PackageKit backend for Discover.

%files backend-packagekit
%{_kde5_datadir}/libdiscover/categories/packagekit-backend-categories.xml
%{_appdatadir}/org.kde.discover.packagekit.appdata.xml
%{_qt5_plugindir}/discover/packagekit-backend.so
%{_qt5_plugindir}/discover-notifier/DiscoverPackageKitNotifier.so
%endif

#----------------------------------------------------------------------------

%package -n plasma5-applet-discovernotifier
Summary:	Plasma 5 Discover notifier plasmoid
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}
Obsoletes:	plasma5-applet-muonnotifier < 5.5

%description -n plasma5-applet-discovernotifier
Plasma 5 Discover notifier plasmoid.

%files -n plasma5-applet-discovernotifier
%{_kde5_applicationsdir}/org.kde.discover.notifier.desktop
%{_kde5_libdir}/libexec/DiscoverNotifier
%{_kde5_configdir}/autostart/org.kde.discover.notifier.desktop

#----------------------------------------------------------------------------

%package -n libdiscover-common
Summary:	Plasma 5 package manager library common data files
Group:		Graphical desktop/KDE
Conflicts:	libmuon-common < 5.5
Obsoletes:	libmuon-common < 5.5
BuildArch:	noarch

%description -n libdiscover-common
Plasma 5 package manager library common data files.

%files -n libdiscover-common
%{_kde5_notificationsdir}/discoverabstractnotifier.notifyrc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 -DCMAKE_SKIP_RPATH:BOOL=OFF
%make

%install
%makeinstall_std -C build
install -m 644 -p -D %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/discoverrc


%find_lang libdiscover plasma-discover plasma-discover-exporter kcm_updates \
	plasma-discover-notifier plasma-discover-updater %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12435 |21mr|disruptor-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          disruptor
Version:       3.4.4
Release:       1
Summary:       Concurrent Programming Framework
Group:         Development/Java
License:       ASL 2.0
URL:           http://lmax-exchange.github.io/disruptor/
Source0:       https://github.com/LMAX-Exchange/disruptor/archive/%{version}/%{name}-%{version}.tar.gz
Source1:       https://repo1.maven.org/maven2/com/lmax/%{name}/%{version}/%{name}-%{version}.pom
# see http://www.jmock.org/threading-synchroniser.html
Patch0:        disruptor-3.3.2-jmock.patch

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.jmock:jmock-junit4)
BuildRequires: mvn(org.jmock:jmock-legacy)

%if 0
# Unavailable performance test deps
BuildRequires: mvn(org.hdrhistogram:HdrHistogram:1.2.1)
%endif

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A High Performance Inter-Thread Messaging Library.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# Cleanup
find . -name "*.class" -print -delete
find . -name "*.jar" -type f -print -delete

#%%patch0 -p1

cp -p %{SOURCE1} pom.xml

# Add OSGi support
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-DocURL>%{url}</Bundle-DocURL>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-Vendor>LMAX Disruptor Development Team</Bundle-Vendor>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# fail to compile cause: incompatible hamcrest apis
rm -r src/test/java/com/lmax/disruptor/RingBufferTest.java \
 src/test/java/com/lmax/disruptor/RingBufferEventMatcher.java
# Failed to stop thread: Thread[com.lmax.disruptor.BatchEventProcessor@1d057a39,5,main]
rm -r src/test/java/com/lmax/disruptor/dsl/DisruptorTest.java
# Test fails due to incompatible jmock version
#rm -f src/test/java/com/lmax/disruptor/EventPollerTest.java

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 -Dproject.build.sourceEncoding=UTF-8 -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENCE.txt

%files javadoc -f .mfiles-javadoc
%license LICENCE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12436 |21mr|distribution-gpg-keys-1.38-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		distribution-gpg-keys
Version:	1.38
Release:	1%{?dist}
Summary:	GPG keys of various Linux distributions
Group:		System/Base

License:	CC0
URL:		https://github.com/xsuchy/distribution-gpg-keys
# Sources can be obtained by
# git clone git://github.com/xsuchy/distribution-gpg-keys.git
# cd distribution-gpg-keys
# tito build --tgz
Source0:	%{name}-%{version}.tar.gz
BuildArch:	noarch

%if 0%{?fedora} > 0
Suggests:	ubu-keyring
Suggests:	debian-keyring
Suggests:	archlinux-keyrings
Suggests:   %{name}-copr
%endif

%description
GPG keys used by various Linux distributions to sign packages.

%package copr
Summary: GPG keys for Copr projects
BuildArch: noarch

%description copr
GPG keys used by Copr projects.

%prep
%setup -q


%build
#nothing to do here


%install
mkdir -p %{buildroot}%{_datadir}/%{name}/
cp -a keys/* %{buildroot}%{_datadir}/%{name}/


%files
%license LICENSE
%doc README.md SOURCES.md
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/copr

%files copr
%license LICENSE
%{_datadir}/%{name}/copr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12437 |21mr|djvulibre-3.5.28-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 21
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	DjVu encoders and utilities
Name:		djvulibre
Version:	3.5.28
Release:	4
License:	GPLv2+
Group:		Publishing
Url:		http://djvu.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/djvu/DjVuLibre/%{version}/%{name}-%{version}.tar.gz
Patch0:		djvulibre-3.5.27-gcc6.patch
#debian patch for fix CVE-2021-32490 CVE-2021-32491 CVE-2021-32492 CVE-2021-32493 CVE-2021-3500
Patch1:		0001-djvulibre-fedora-Patch0-djvulibre-3.5.22-cdefs.patch.patch
Patch2:		0002-djvulibre-fedora-Patch6-djvulibre-3.5.27-export-file.patch
Patch3:		0003-djvulibre-fedora-Patch8-djvulibre-3.5.27-check-image.patch
Patch4:		0004-djvulibre-fedora-Patch9-djvulibre-3.5.27-interger-ov.patch
Patch5:		0005-djvulibre-fedora-Patch10-djvulibre-3.5.27-check-inpu.patch
Patch6:		0006-djvulibre-fedora-Patch11-djvulibre-3.5.27-djvuport-s.patch
Patch7:		0007-djvulibre-fedora-Patch12-djvulibre-3.5.27-unsigned-s.patch
# from Fedora
Patch20:	djvulibre-3.5.27-out-of-bound-write-2.patch

Patch30:	CVE-2021-46312.patch
Patch31:	CVE-2021-46310.patch

BuildRequires:	gnome-mime-data
BuildRequires:	imagemagick
BuildRequires:	ghostscript
BuildRequires:	xdg-utils
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(xt)

%description
DjVu is a web-centric format and software platform for distributing documents
and images.  DjVu content downloads faster, displays and renders faster, looks
nicer on a screen, and consume less client resources than competing formats.
DjVu was originally developed at AT&T Labs-Research by Leon Bottou, Yann LeCun,
Patrick Haffner, and many others.  In March 2000, AT&T sold DjVu to LizardTech
Inc. who now distributes Windows/Mac plug-ins, and commercial encoders (mostly
on Windows).

In an effort to promote DjVu as a Web standard, the LizardTech management was
enlightened enough to release the reference implementation of DjVu under the
GNU GPL in October 2000.  DjVuLibre (which means free DjVu), is an enhanced
version of that code maintained by the original inventors of DjVu. It is
compatible with version 3.5 of the LizardTech DjVu software suite.

DjVulibre-3.5 contains:
- A full-fledged wavelet-based compressor for pictures.
- A simple compressor for bitonal (black and white) scanned pages.
- A compressor for palettized images (a la GIF/PNG).
- A set of utilities to manipulate and assemble DjVu images and documents.
- A set of decoders to convert DjVu to a number of other formats.
- An up-to-date version of the C++ DjVu Reference Library.

%files
%doc README COPYRIGHT COPYING INSTALL NEWS doc
%{_bindir}/any2djvu
%{_bindir}/bzz
%{_bindir}/c44
%{_bindir}/cjb2
%{_bindir}/cpaldjvu
%{_bindir}/csepdjvu
%{_bindir}/ddjvu
%{_bindir}/djvm
%{_bindir}/djvmcvt
%{_bindir}/djvudigital
%{_bindir}/djvudump
%{_bindir}/djvuextract
%{_bindir}/djvumake
%{_bindir}/djvups
%{_bindir}/djvused
%{_bindir}/djvuserve
%{_bindir}/djvutoxml
%{_bindir}/djvutxt
%{_bindir}/djvuxmlparser
%{_datadir}/djvu
%{_mandir}/man1/any2djvu.1*
%{_mandir}/man1/bzz.1*
%{_mandir}/man1/c44.1*
%{_mandir}/man1/cjb2.1*
%{_mandir}/man1/cpaldjvu.1*
%{_mandir}/man1/csepdjvu.1*
%{_mandir}/man1/ddjvu.1*
%{_mandir}/man1/djvm.1*
%{_mandir}/man1/djvmcvt.1*
%{_mandir}/man1/djvu.1*
%{_mandir}/man1/djvudigital.1*
%{_mandir}/man1/djvudump.1*
%{_mandir}/man1/djvuextract.1*
%{_mandir}/man1/djvumake.1*
%{_mandir}/man1/djvups.1*
%{_mandir}/man1/djvused.1*
%{_mandir}/man1/djvuserve.1*
%{_mandir}/man1/djvutoxml.1*
%{_mandir}/man1/djvutxt.1*
%{_mandir}/man1/djvuxml.1*
%{_mandir}/man1/djvuxmlparser.1*
%{_iconsdir}/hicolor/*/mimetypes/image-vnd.djvu.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	DjVulibre library
Group:		System/Libraries

%description -n %{libname}
Djvulibre shared libraries.

%files -n %{libname}
%{_libdir}/libdjvulibre.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	DjVulibre development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
DjVulibre development files.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/libdjvu
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--prefix=%{_prefix} \
	--enable-xmltools \
	--enable-threads \
	--enable-debug \
	--enable-i18n \
	--enable-desktopfiles \
	--with-tiff \
	--disable-static

%make

%install
%makeinstall_std
# Quick fix to stop ldconfig from complaining
find %{buildroot}%{_libdir} -name "*.so*" -exec chmod 755 {} \;
# Quick cleanup of the docs
rm -rf doc/CVS 2>/dev/null || :
rm -rf doc/minilisp/.cvsignore 2 > /dev/null || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12438 |21mr|dkms-2.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _dkmsdir %{_localstatedir}/lib/%{name}
%define _dkmsbinarydir %{_localstatedir}/lib/%{name}-binary

Summary:	Dynamic Kernel Module Support Framework
Name:		dkms
Version:	2.8.4
URL:		https://github.com/dell/dkms
Release:	1
License:	GPLv2+
Group:		System/Base
# unofficial version, git rev a62d38d49148871c6b17636f31c93f986d31c914
Source0:	https://github.com/dell/dkms/archive/v%{version}.tar.gz
Source1:	dkms-mkrpm.template
Source2:	dkms.depmod.conf
Source4:	dkms.service
Patch2:		dkms-2.6.1-mdkize.patch
Patch7:		dkms-2.6.1-procconfig.patch
Patch8:		dkms-2.6.1-mdkrpm-split-ver-rel.patch
Patch10:	dkms-2.6.1-binary_only.patch
Patch11:	dkms-2.6.1-min-max-kernel.patch
Patch17:	dkms-2.6.1-autoalias.patch
Patch18:	dkms-2.6.1-mkrpm_status.patch
Patch22:	dkms-2.6.1-symvers.patch
Patch24:	dkms-2.6.1-generic-preparation-for-2.6.39-and-higher.patch
Patch25:	dkms-2.6.1-suggest-devel-not-source.patch
Patch35:	dkms-2.6.1-dont_fail_if_module_source_removed.patch
Patch37:	dkms-2.6.1-parallel_fix.patch
Patch38:	dkms-2.6.1-display_plymouth_message.patch

BuildArch:	noarch
Requires:	kernel-devel
Suggests:	kernel-devel-latest

Requires: patch
Requires: coreutils
Requires: cpio
Requires: sed
Requires: gawk
Requires: grep
Requires: findutils
Requires: lsb-release
Requires: gcc
Requires: make
Requires: which
Requires: file
Requires: kmod

%description
This package contains the framework for the Dynamic
Kernel Module Support (DKMS) method for installing
module RPMS as originally developed by the Dell
Computer Corporation.

This package is intended for building binary kernel
modules with dkms source packages installed

%prep
%autosetup -p1

%build

%install
%make_install INITD=%{buildroot}%{_initrddir} \
		 SBIN=%{buildroot}%{_sbindir} \
		 VAR=%{buildroot}%{_localstatedir}/lib/%{name} \
		 MAN=%{buildroot}%{_mandir}/man8 \
		 ETC=%{buildroot}%{_sysconfdir}/%{name} \
		 BASHDIR=%{buildroot}%{_sysconfdir}/bash_completion.d \
		 LIBDIR=%{buildroot}%{_prefix}/lib/%{name}

install -m644 -p %{SOURCE1} -D %{buildroot}%{_sysconfdir}/%{name}/template-dkms-mkrpm.spec
install -m755 -p dkms_mkkerneldoth -D %{buildroot}%{_sbindir}/dkms_mkkerneldoth
rm %{buildroot}%{_prefix}/lib/%{name}/dkms_autoinstaller
mkdir -p %{buildroot}%{_dkmsbinarydir}
install -m644 -p %{SOURCE2} -D %{buildroot}%{_sysconfdir}/depmod.d/%{name}.conf
install -m644 -p %{SOURCE4} -D %{buildroot}%{_unitdir}/%{name}.service

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-dkms.preset << EOF
enable dkms.service
EOF

install -m0755 dkms_autoinstaller %{buildroot}%{_sbindir}/dkms_autoinstaller

%post
%systemd_post dkms.service

%preun
%systemd_preun dkms.service

%posttrans
# do all this in %%posttrans because all file will be already in place
/bin/systemctl --quiet restart dkms.service || :
/bin/systemctl --quiet try-restart loadmodules.service || :
/bin/systemctl --quiet try-restart systemd-modules-load.service || :

%files
%doc sample.spec sample.conf AUTHORS template-dkms-mkrpm.spec
%{_presetdir}/86-dkms.preset
%{_unitdir}/%{name}.service
%{_sbindir}/dkms
%{_sbindir}/dkms_autoinstaller
%{_dkmsdir}
%dir %{_dkmsbinarydir}
%{_sbindir}/dkms_mkkerneldoth
%{_mandir}/man8/dkms.8*
%config(noreplace) %{_sysconfdir}/dkms
# these dirs are for plugins - owned by other packages
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/common.postinst
%{_sysconfdir}/kernel/postinst.d/%{name}
%{_sysconfdir}/kernel/prerm.d/%{name}
%{_sysconfdir}/bash_completion.d/%{name}
%{_sysconfdir}/depmod.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12439 |21mr|dleyna-connector-dbus-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0

Name:		dleyna-connector-dbus
Version:	0.3.0
Release:	4
Summary:	D-Bus connector for dLeyna services
Group:		System/Servers
License:	LGPLv2
Url:		https://github.com/01org/dleyna-connector-dbus
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	libtool-base
BuildRequires:	pkgconfig(dleyna-core-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(dbus-1)

%description
D-Bus connector for dLeyna services.

%files
%doc AUTHORS COPYING ChangeLog README
%dir %{_libdir}/dleyna-%{api}
%dir %{_libdir}/dleyna-%{api}/connectors
%{_libdir}/dleyna-%{api}/connectors/libdleyna-connector-dbus.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
#-----------------------------------------------------------------------------------------
%prep
%setup -q


%build
./autogen.sh
%configure \
  --disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12440 |21mr|dleyna-core-0.6.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 5
%define libname	%mklibname dleyna-core %{api} %{major}
%define devname	%mklibname dleyna-core %{api} -d

Name:		dleyna-core
Version:	0.6.0
Release:	6
Summary:	Utilities for higher level dLeyna libraries
Group:		System/Libraries
License:	LGPLv2
URL:            https://github.com/01org/dleyna-core/
Source0:	%{name}-%{version}.tar.gz
Patch0:		dleyna-core-gupnp-1.2.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gupnp-1.2)

%description
A set of utility functions that are used by the higher level dLeyna libraries
to communicate with DLNA devices. It provides APIs for logging, error, settings
and task management, and an IPC abstraction.

#--------------------------------------------------------------------
%package -n %{libname}
Summary:	Utilities for higher level dLeyna libraries
Group:		System/Libraries

%description -n %{libname}
A set of utility functions that are used by the higher level dLeyna libraries
to communicate with DLNA devices. It provides APIs for logging, error, settings
and task management, and an IPC abstraction.

%files -n %{libname}
%{_libdir}/libdleyna-core-%{api}.so.%{major}.0.0
%{_libdir}/libdleyna-core-%{api}.so.%{major}
#----------------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/libdleyna-core-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%dir %{_includedir}/dleyna-%{api}
%dir %{_includedir}/dleyna-%{api}/libdleyna
%{_includedir}/dleyna-%{api}/libdleyna/core
#----------------------------------------------------------------------------------
%prep
%autosetup -p1


%build
autoreconf -fi
%configure \
  --disable-silent-rules \
  --disable-static

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12441 |21mr|dleyna-server-0.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 1

Name:		dleyna-server
Version:	0.6.0
Release:	5
Summary:	Service for interacting with Digital Media Servers
Group:		System/Servers
License:	LGPLv2
URL:		https://github.com/01org/dleyna-server/
Source0:	%{name}-%{version}.tar.gz
Patch0:		dleyna-server-0.6.0-fix-missing-include-gupnp.h.patch
Patch1:		dleyna-server-Avoid-possible-crash-when-getting-server-properties.patch
Patch2:		port-to-gupnp-1.2.patch
BuildRequires:	pkgconfig(dleyna-core-%{api})
BuildRequires:	pkgconfig(glib-2.0) >= 2.28
BuildRequires:	pkgconfig(gssdp-1.2)
BuildRequires:	pkgconfig(gupnp-1.2) >= 0.19.1
BuildRequires:	pkgconfig(gupnp-av-1.0) >= 0.11.5
BuildRequires:	pkgconfig(gupnp-dlna-2.0) >= 0.9.4
BuildRequires:	libsoup-devel
Requires:	dbus

%description
D-Bus service for clients to discover and manipulate DLNA Digital Media
Servers (DMSes).

%files
%doc AUTHORS ChangeLog README
%{_datadir}/dbus-1/services/com.intel.%{name}.service
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libdleyna-server-%{api}.so.%{major}*
%{_libexecdir}/%{name}-service
%config(noreplace) %{_sysconfdir}/%{name}-service.conf
#-------------------------------------------------------------------------
%prep
%setup -q
%apply_patches

%build
autoreconf -fiv
%configure \
  --disable-silent-rules \
  --disable-static

%make


%install
%makeinstall_std


rm -rf %{buildroot}/%{_includedir}
rm -f %{buildroot}/%{_libdir}/%{name}/libdleyna-server-%{api}.so
rm -rf %{buildroot}/%{_libdir}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12442 |21mr|dlm-4.0.7-1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Control daemon and tool
Name:		dlm
Version:	4.0.7
Release:	1.1
License:	GPLv2 and GPLv2+ and LGPLv2+
Group:		System/Kernel and hardware
Url:		https://fedorahosted.org/cluster
Source0:	http://git.fedorahosted.org/cgit/dlm.git/snapshot/%{name}-%{version}.tar.gz
Patch0:		dlm-4.0.7-glibc2.28.patch
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(corosync)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pacemaker)
BuildRequires:	pkgconfig(systemd)
Requires:	corosync
Requires:	%{libname} = %{EVRD}
Requires(post,preun,postun): systemd-units

%description
The kernel dlm requires a user daemon to control membership.

%files
%doc README.license
%{_unitdir}/dlm.service
%{_sbindir}/dlm_controld
%{_sbindir}/dlm_tool
%{_sbindir}/dlm_stonith
%{_mandir}/man8/dlm*
%{_mandir}/man5/dlm*
%{_mandir}/man3/*dlm*
%config(noreplace) %{_sysconfdir}/sysconfig/dlm

%post
%systemd_post dlm.service

%preun
%systemd_preun dlm.service

%postun
%systemd_postun_with_restart dlm.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
Provides:	%{name}-lib = %{EVRD}

%description -n %{libname}
This package contains the libraries needed to use the dlm
from userland applications.

%files -n %{libname}
%doc README.license
%{_prefix}/lib/udev/rules.d/*-dlm.rules
%{_libdir}/libdlm*.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc README.license
%{_libdir}/libdlm*.so
%{_includedir}/libdlm*.h
%{_libdir}/pkgconfig/*.pc

#------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# upstream does not require configure
# upstream does not support _smp_mflags
make \
	LIBDIR=%{_libdir}
#make -C fence

%install
%makeinstall_std \
	LIBDIR=%{_libdir}
#%makeinstall_std -C fence

install -Dm 0644 init/dlm.service %{buildroot}%{_unitdir}/dlm.service
install -Dm 0644 init/dlm.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/dlm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12443 |21mr|dmidecode-3.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for dumping a computer's DMI table contents
Name:		dmidecode
Version:	3.5
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.nongnu.org/dmidecode/
Source0:	http://download.savannah.gnu.org/releases/dmidecode/%{name}-%{version}.tar.xz
# upstream patches for v3.5
Patch0:		80de3762.patch
Patch1:		c76ddda0.patch

%description
Dmidecode is a tool for dumping a computer's DMI (some say SMBIOS) table
contents in a human-readable format. This table contains a description of the
system's hardware components, as well as other useful pieces of information
such as serial numbers and BIOS revision. Part of its code can be found in
the Linux kernel, because DMI data may be used to enable or disable specific
portions of code depending on the hardware vendor. Thus, dmidecode is mainly
used to detect system "signatures" and add them to the kernel source code
when needed.

%files
%doc AUTHORS README LICENSE NEWS
%{_sbindir}/*
%{_mandir}/man8/*

#--------------------------------------------------------------------------

%prep
%setup -q

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{?ldflags}" CC=%{__cc}

%install
%makeinstall_std prefix=%{_prefix} mandir=%{_mandir}
rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12444 |21mr|dmraid-1.0.0-0.rc16.21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# we need the libs in /lib(64) as /usr might not be mounted
%global _libdir /%{_lib}
%global _sbindir /sbin

%define extraver rc16

# from lib/version.h
%define major 1
%define libname %mklibname dmraid %{major}
%define devname %mklibname dmraid -d

Summary:	Device-mapper ATARAID tool
Name:		dmraid
Version:	1.0.0
Release:	0.%{extraver}.21
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://people.redhat.com/~heinzm
Source0:	http://people.redhat.com/~heinzm/sw/dmraid/src/%{name}-%{version}.%{extraver}.tar.bz2
Source1:	fedora-dmraid-activation
Source2:	dmraid-activation.service
# (bluca) since fedora/redhat rpm is the real upstream for dmraid
# patch numbers < 100 are reserved for patches synced from fedora/redhat
# patch numbers > 100 are for our distro specific patches
Patch0:		dmraid-1.0.0.rc16-test_devices.patch
Patch1:		ddf1_lsi_persistent_name.patch
Patch2:		pdc_raid10_failure.patch
Patch3:		return_error_wo_disks.patch
Patch4:		fix_sil_jbod.patch
Patch5:		avoid_register.patch
#we dont use this# Patch6: move_pattern_file_to_var.patch
Patch7:		libversion.patch
Patch8:		libversion-display.patch
Patch9:		bz635995-data_corruption_during_activation_volume_marked_for_rebuild.patch
# Patch10: bz626417_8-faulty_message_after_unsuccessful_vol_registration.patch
Patch11:	bz626417_19-enabling_registration_degraded_volume.patch
Patch12:	bz626417_20-cleanup_some_compilation_warning.patch
Patch13:	bz626417_21-add_option_that_postpones_any_metadata_updates.patch
Patch101:	lib-events-libdmraid-events-isw-strfmt.patch
Patch102:	fix-linking.patch
Patch103:	libdmraid-events-soname.patch
Patch104:	libdmraid-events-install.patch

BuildRequires:	device-mapper-devel >= 1.02.02
BuildRequires:	device-mapper-event-devel >= 1.02.02
Requires:	%{libname} = %{EVRD}
Requires:	dmraid-events = %{EVRD}
Requires:	kpartx >= 0.4.8-16
Requires:	systemd
Requires(post):	systemd >= 195-4

%description
dmraid (Device-Mapper Raid tool) supports RAID device discovery, RAID
set activation, creation, removal, rebuild and display of properties for
ATARAID/DDF1 metadata.

dmraid uses libdevmapper and the device-mapper kernel runtime to create
devices with respective mappings for the ATARAID sets discovered.

The following ATARAID types are supported:

Adaptec HostRAID ASR
Highpoint HPT37X
Highpoint HPT45X
Intel Software RAID
JMicron JMB36x
LSI Logic MegaRAID
NVidia NForce
Promise FastTrack
Silicon Image Medley
SNIA DDF1
VIA Software RAID

%files
%defattr(-,root,root,755)
%doc CHANGELOG CREDITS KNOWN_BUGS README TODO doc/dmraid_design.txt
%{_sbindir}/dmraid
%{_mandir}/man8/dmraid.8*
%{_sbindir}/fedora-dmraid-activation
%{_unitdir}/dmraid-activation.service
%ghost %dir /var/lock/dmraid

%post
%systemd_post dmraid-activation.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for dmraid
Group:		System/Libraries

%description -n %{libname}
Provides libraries for dmraid.

%files -n %{libname}
%attr (0555,root,root) %{_libdir}/libdmraid.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and headers for dmraid
Group:		Development/Other
Provides:	%{name}-devel = %{version}.%{extraver}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Provides a library interface for RAID device discovery, RAID set
activation and display of properties for ATARAID volumes.

%files -n %{devname}
%defattr(644,root,root,755)
%dir %{_includedir}/dmraid
%{_includedir}/dmraid/*.h
%{_libdir}/libdmraid.so

#----------------------------------------------------------------------------

%package events
Summary:	Dmraid event tool
Group:		System/Base
Requires:	%{name} = %{EVRD}
Requires:	device-mapper-event  >= 1.02.02

%description events
Provides a dmeventd DSO and the dmevent_tool to register devices with it
for device monitoring. All active RAID sets should be manually registered
with dmevent_tool.

%files events
%defattr(-,root,root,755)
%{_sbindir}/dmevent_tool
%attr (0555,root,root) %{_libdir}/libdmraid-events-isw.so
%{_mandir}/man8/dmevent_tool*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}/%{version}.%{extraver}
%patch0 -p1 -b .test_devices
%patch1 -p1 -b .ddf1_lsi_persistent_name
%patch2 -p1 -b .pdc_raid10_failure
%patch3 -p1 -b .return_error_wo_disks
%patch4 -p1 -b .fix_sil_jbod
%patch5 -p1 -b .avoid_register
%patch7 -p1 -b .libversion
%patch8 -p1 -b .libversion_display
%patch9 -p1 -b .bz635995
%patch11 -p1 -b .bz626417_19
%patch12 -p1 -b .bz626417_20
%patch13 -p1 -b .bz626417_21

%patch101 -p1 -b .libdmraid_events_isw_strfmt
%patch102 -p1 -b .linking
%patch103 -p1 -b .lib_events_soname
%patch104 -p1 -b .lib_events_install

cp %{SOURCE2} .

%build
%configure \
	--with-user=`id -un` \
	--with-group=`id -gn` \
	--disable-libselinux \
	--disable-libsepol \
	--enable-led \
	--enable-intel_led \
	--enable-shared_lib
make

sed s,"@SBINDIR@","%{_sbindir}",g -i dmraid-activation.service

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/libdmraid.a

mkdir -p %{buildroot}/var/lock/dmraid

# Install systemd unit
mkdir -p %{buildroot}%{_unitdir}
install -m 755 %{SOURCE1} %{buildroot}%{_sbindir}/fedora-dmraid-activation
install -m 444 dmraid-activation.service %{buildroot}%{_unitdir}/dmraid-activation.service

chmod 755 %{buildroot}%{_libdir}/libdmraid-events-isw.so
chmod 755 %{buildroot}%{_libdir}/libdmraid.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12445 |21mr|dnf-4.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define hawkey_version 0.64.0
%define libcomps_version 0.1.8
%define rpm_version 4.14.2
%define min_plugins_core 4.0.20
%define min_plugins_extras 4.0.4

%define confdir %{_sysconfdir}/dnf

%define pluginconfpath %{confdir}/plugins
%define py3pluginpath %{python3_sitelib}/dnf-plugins

# (ngompa): To avoid annoying problems...
%global __python %{__python3}

# freeze on ABF...
%bcond_with tests

Summary:	Package manager forked from Yum, using libsolv as a dependency resolver
Name:		dnf
Version:	4.9.0
Release:	4
Group:		System/Configuration/Packaging
# For a breakdown of the licensing, see PACKAGE-LICENSING
License:	GPLv2+ and GPLv2 and GPL
URL:		https://github.com/rpm-software-management/dnf
Source0:	https://github.com/rpm-software-management/dnf/archive/%{version}/%{name}-%{version}.tar.gz
# Russian man
Source1:	dnf.8

# Backports from upstream
# https://github.com/rpm-software-management/dnf/commit/beddf1b28d769e4f4fd8029bf1193019cd67bc01
# libdnf is built from git snapshot to make this work
# Ddjusted: removed version bump from 4.9.0 to 4.9.1
Patch1:		beddf1b28d769e4f4fd8029bf1193019cd67bc01.patch

# Fixes line breaks in dnf --help
Patch2:		fix.locale.string.patch

# Teach dnf about znver1 and e2k arches
# znver1 is x86_64 with -mtune=znver1, invented in OpenMandriva and not used in ROSA
# e2k is Russian VLIW-like architecture
Patch500:	dnf-arches.diff

# ROSA-specific patches
Patch1002:	dnf-2.7.5-Allow-overriding-SYSTEMD_DIR-for-split-usr.patch
Patch1003:	0001-Decrease-timeout.patch

# The makecache timer disables itself whenever it is run in a live environment.
# However, the upstream version of the unit only knows about the upstream dracut
# live environment module. Since we currently use a custom one in Mageia,
# we need to detect it and properly disable the timer. (ngompa)
Patch1100:	1001-Disable-the-dnf-makecache-timer-for-Mageia-live-envi.patch

BuildArch:	noarch
BuildRequires:	cmake
BuildRequires:	gettext
# Need systemd macros
BuildRequires:	systemd-units
BuildRequires:	python3-sphinx
Requires:	python3-dnf = %{version}-%{release}
Recommends:	dnf-yum
Recommends:	dnf-plugins-core
Conflicts:	dnf-plugins-core < %{min_plugins_core}
Provides:	dnf-command(autoremove)
Provides:	dnf-command(check-update)
Provides:	dnf-command(clean)
Provides:	dnf-command(distro-sync)
Provides:	dnf-command(downgrade)
Provides:	dnf-command(group)
Provides:	dnf-command(history)
Provides:	dnf-command(info)
Provides:	dnf-command(install)
Provides:	dnf-command(list)
Provides:	dnf-command(makecache)
Provides:	dnf-command(mark)
Provides:	dnf-command(provides)
Provides:	dnf-command(reinstall)
Provides:	dnf-command(remove)
Provides:	dnf-command(repolist)
Provides:	dnf-command(repoquery)
Provides:	dnf-command(repository-packages)
Provides:	dnf-command(search)
Provides:	dnf-command(updateinfo)
Provides:	dnf-command(upgrade)
Provides:	dnf-command(upgrade-to)

%description
Package manager forked from Yum, using libsolv as a dependency resolver.

%package conf
Summary:	Configuration files for DNF
Group:		System/Configuration/Packaging

%description conf
Configuration files for DNF.

%package yum
Summary:	As a Yum CLI compatibility layer, supplies /usr/bin/yum redirecting to DNF
Group:		System/Configuration/Packaging
Conflicts:	yum
Requires:	dnf = %{version}-%{release}

%description yum
As a Yum CLI compatibility layer, supplies /usr/bin/yum redirecting to DNF.

%package -n python3-dnf
Summary:	Python 3 interface to DNF
Group:		System/Configuration/Packaging
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-hawkey >= %{hawkey_version}
BuildRequires:	python3-libdnf >= %{hawkey_version}
BuildRequires:	python3-libcomps >= %{libcomps_version}
BuildRequires:	python3-nose
BuildRequires:	python3-gpg
BuildRequires:	python3-rpm >= %{rpm_version}
BuildRequires:	pkgconfig(bash-completion)
Recommends:	bash-completion
Recommends:	python3-dbus
Recommends:	rpm-plugin-systemd-inhibit
Requires:	dnf-conf = %{version}-%{release}
Requires:	deltarpm
Requires:	python3-hawkey >= %{hawkey_version}
Requires:	python3-libdnf >= %{hawkey_version}
Requires:	python3-libcomps >= %{libcomps_version}
Requires:	python3-gpg
Requires:	python3-rpm >= %{rpm_version}
# DNF 2.0 doesn't work with old plugins
Conflicts:	python3-dnf-plugins-core < %{min_plugins_core}
Conflicts:	python3-dnf-plugins-extras-common < %{min_plugins_extras}

%description -n python3-dnf
Python 3 interface to DNF.

%package automatic
Summary:	Alternative CLI to "dnf upgrade" suitable for automatic, regular execution
Group:		System/Configuration/Packaging
Requires:	dnf = %{version}-%{release}
Requires:	systemd

%description automatic
Alternative CLI to "dnf upgrade" suitable for automatic, regular execution.

%prep
%autosetup -p1

%build
%cmake -DPYTHON_DESIRED:str=3 \
	-DSYSTEMD_DIR:str="%{_unitdir}"

%make
make doc-man

%install
%makeinstall_std -C build

%find_lang %{name}

mkdir -p %{buildroot}%{pluginconfpath}
mkdir -p %{buildroot}%{py3pluginpath}
mkdir -p %{buildroot}%{_localstatedir}/log
mkdir -p %{buildroot}%{_mandir}/ru/man8
mkdir -p %{buildroot}%{_var}/cache/dnf
mkdir -p %{buildroot}%{confdir}/vars
touch %{buildroot}%{_localstatedir}/log/%{name}.log
ln -sr %{buildroot}%{_bindir}/dnf-3 %{buildroot}%{_bindir}/dnf
mv %{buildroot}%{_bindir}/dnf-automatic-3 %{buildroot}%{_bindir}/dnf-automatic
ln -sr %{buildroot}%{_bindir}/dnf %{buildroot}%{_bindir}/yum

install -m 644 %{SOURCE1} %{buildroot}%{_mandir}/ru/man8

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-%{name}.preset << EOF
enable %{name}-makecache.timer
EOF

cat > %{buildroot}%{_presetdir}/86-%{name}-automatic.preset << EOF
enable %{name}-automatic.timer
enable %{name}-automatic-notifyonly.timer
enable %{name}-automatic-download.timer
disable %{name}-automatic-install.timer
EOF

# (tpg) not needed here
rm -vf %{buildroot}%{confdir}/%{name}-strict.conf

# (mikhailnov) enable updating package to the latest version by "dnf install foo"
sed -i %{buildroot}%{confdir}/%{name}.conf -e 's,^best=False$,best=True,g'
grep -q '^best=True$' %{buildroot}%{confdir}/%{name}.conf

# own default location of repos configs
mkdir -p %{buildroot}%{_sysconfdir}/yum.repos.d

# ROSA-specific packages forming the base system
cat > %{buildroot}%{confdir}/protected.d/basesystem.conf << 'EOF'
basesystem-minimal
distro-release
filesystem
setup
EOF

%if %{with tests}
%check
make ARGS="-V" test -C build
%endif

%files -f %{name}.lang
%license COPYING PACKAGE-LICENSING
%doc AUTHORS README.rst
%{_bindir}/dnf
%{_mandir}/man5/dnf-transaction-json.5*
%{_mandir}/man7/dnf.modularity.7*
%{_mandir}/man8/dnf.8*
%{_mandir}/man8/yum2dnf.8*
%{_mandir}/ru/man8/dnf.8*
%{_presetdir}/86-%{name}.preset
%{_unitdir}/dnf-makecache.service
%{_unitdir}/dnf-makecache.timer
%{_var}/cache/dnf
%dir %{_sysconfdir}/yum.repos.d

%files conf
%license COPYING PACKAGE-LICENSING
%doc AUTHORS README.rst
%dir %{confdir}
%dir %{pluginconfpath}
%dir %{confdir}/aliases.d
%dir %{confdir}/protected.d
%dir %{confdir}/vars
%config(noreplace) %{confdir}/%{name}.conf
%config(noreplace) %{confdir}/aliases.d/zypper.conf
%config(noreplace) %{confdir}/protected.d/basesystem.conf
%config(noreplace) %{confdir}/protected.d/%{name}.conf
%config(noreplace) %{confdir}/protected.d/yum.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%ghost %{_localstatedir}/log/hawkey.log
%ghost %{_localstatedir}/log/%{name}.log
%ghost %{_localstatedir}/log/%{name}.librepo.log
%ghost %{_localstatedir}/log/%{name}.rpm.log
%ghost %{_localstatedir}/log/%{name}.plugin.log
%ghost %{_sharedstatedir}/%{name}
%ghost %{_sharedstatedir}/%{name}/groups.json
%ghost %{_sharedstatedir}/%{name}/yumdb
%ghost %{_sharedstatedir}/%{name}/history
%{_datadir}/bash-completion/completions/dnf
%{_mandir}/man5/dnf.conf.5.*
%{_tmpfilesdir}/dnf.conf
%{_sysconfdir}/libreport/events.d/collect_dnf.conf

%files yum
%license COPYING PACKAGE-LICENSING
%doc AUTHORS README.rst
%{_bindir}/yum
%{_mandir}/man1/yum-aliases.1*
%{_mandir}/man5/yum.conf.5*
%{_mandir}/man8/yum.8.*
%{_mandir}/man8/yum-shell.8*

%files -n python3-dnf
%license COPYING PACKAGE-LICENSING
%doc AUTHORS README.rst
%{_bindir}/dnf-3
%exclude %{python3_sitelib}/dnf/automatic
%{python3_sitelib}/dnf/
%dir %{py3pluginpath}

%files automatic
%license COPYING PACKAGE-LICENSING
%doc AUTHORS
%{_bindir}/%{name}-automatic
%config(noreplace) %{confdir}/automatic.conf
%{_presetdir}/86-%{name}-automatic.preset
%{_unitdir}/%{name}-automatic.service
%{_unitdir}/%{name}-automatic.timer
%{_unitdir}/%{name}-automatic-notifyonly.service
%{_unitdir}/%{name}-automatic-notifyonly.timer
%{_unitdir}/%{name}-automatic-download.service
%{_unitdir}/%{name}-automatic-download.timer
%{_unitdir}/%{name}-automatic-install.service
%{_unitdir}/%{name}-automatic-install.timer
%{python3_sitelib}/%{name}/automatic
%{_mandir}/man8/dnf-automatic.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12446 |21mr|dnfdaemon-0.3.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dnf_org org.baseurl.Dnf
%global dnf_version 4.4.0

Name:           dnfdaemon
Version:        0.3.22
Release:        1
Summary:        D-Bus daemon for DNF package actions
Group:          System/Configuration/Packaging
License:        GPLv2+
URL:            https://github.com/manatools/dnfdaemon
Source0:        https://github.com/manatools/dnfdaemon/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# https://github.com/manatools/dnfdaemon/pull/40
Patch0:        dnfdaemon-russian.patch
BuildArch:      noarch
BuildRequires: pkgconfig(python3)
BuildRequires:    pkgconfig(systemd)
Requires:       python3-gi
Requires:       python3-dbus
Requires:       python3-dnf >= %{dnf_version}
Requires:       polkit
# dbus-x11
Requires:       /usr/bin/dbus-launch

%description
D-Bus daemon for performing package actions with the DNF package manager

%package -n python3-%{name}
Summary:        Python 3 API for communicating with the dnf-daemon D-Bus service
Group:          Development/Python
BuildRequires:  python3-devel
Requires:       %{name} = %{version}-%{release}
Requires:       python3-gi

%description -n python3-%{name}
Python 3 API for communicating with the dnf-daemon D-Bus service

%prep
%autosetup -p1 -n %{name}-%{version}

%build
# Nothing to build

sed -i -e "s|/usr/lib/systemd|/lib/systemd|g" Makefile

%install
make install DESTDIR=%{buildroot} DATADIR=%{_datadir} SYSCONFDIR=%{_sysconfdir}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%files
%license COPYING
%doc README.md ChangeLog
%{_datadir}/dbus-1/system-services/%{dnf_org}*
%{_datadir}/dbus-1/services/%{dnf_org}*
%{_datadir}/%{name}/
%{_unitdir}/%{name}.service
%{_datadir}/polkit-1/actions/%{dnf_org}*
# this should not be edited by the user, so no %%config
%{_sysconfdir}/dbus-1/system.d/%{dnf_org}*
%dir %{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}/__*
%{python3_sitelib}/%{name}/server

%files -n  python3-%{name}
%license COPYING
%doc README.md ChangeLog
%{python3_sitelib}/%{name}/client

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12447 |21mr|dnfdragora-2.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DNF package-manager based on libYui abstraction
Name:		dnfdragora
Version:	2.1.6
Release:	1
License:	GPLv3+
Group:		System/Configuration/Packaging
Url:		https://github.com/manatools/dnfdragora
Source0:	https://github.com/manatools/dnfdragora/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	update-system.desktop
Source3:	update-system
Source4:	update-system.console.apps
Source5:	update-system.pam.d
Source6:	images.tar.gz
Source7:	dnfdragora-update-runner.sh
Patch0:		rosa-texts.patch
Patch1:		fix-splitting-desktop-gnome.patch
Patch2:		mask-i686-packages-by-default.patch
Patch4:		rosa.droup.panel.patch
Patch5:		dnfdragora-2.1.5-po-ru-translate.patch
Patch6:		desktop-translate.patch
Patch8:		0001-ROSA-hide-tray-icon-if-there-are-no-updates.patch
# В апстрим отправлен PR
# https://github.com/manatools/dnfdragora/pull/229
Patch9:		Fix-spaces-in-path.patch
# В апстрим отправлен PR
# https://github.com/manatools/dnfdragora/pull/230
Patch10:	Fix-empty-error-window.patch
Patch11:	Fix-removesuffix-problem.patch
BuildRequires:	appstream-util
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	python3-dnfdaemon
BuildRequires:	python3-yui
BuildRequires:	python3dist(cairosvg)
BuildRequires:	python3dist(notify2)
BuildRequires:	python3dist(pillow)
BuildRequires:	python3dist(pystray)
BuildRequires:	python3dist(pyxdg)
BuildRequires:	python3dist(pyyaml)
BuildRequires:	python3dist(sphinx)
BuildRequires:	pkgconfig(python3)
Requires:	dnf
Requires:	filesystem
Requires:	hicolor-icon-theme
# Ensure base TUI deps are installed
Requires:	libyui-ncurses
Requires:	libyui-mga-ncurses
Requires:	python3-dnfdaemon
Requires:	python3-manatools
Requires:	python3-yui
Requires:	python3dist(pyyaml)
# Suggest users to select a GUI
Recommends:	%{name}-gui
BuildArch:	noarch

%description
%{name} is a DNF frontend, based on rpmdragora from Mageia
(originally rpmdrake) Perl code.

%{name} is written in Python 3 and uses libYui, the widget
abstraction library written by SUSE, so that it can be run
using Qt 5, GTK+ 3, or ncurses interfaces.

%files -f %{name}.lang
%doc README.md TODO.md %{name}.yaml.example
%license AUTHORS LICENSE
%{_bindir}/%{name}
%{_bindir}/dragora*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.yaml
%{python3_sitelib}/%{name}/
%exclude %{python3_sitelib}/%{name}/updater.py
%exclude %{python3_sitelib}/%{name}/__pycache__/updater.cpython*.py?
%{_datadir}/%{name}/
%exclude %{_datadir}/applications/*%{name}-updater.desktop
%{_mandir}/man5/%{name}.yaml.5*
%{_mandir}/man8/%{name}.8*

#-----------------------------------------------------------

%package qt
Summary:	Qt frontend for %{name}
Group:		System/Configuration/Packaging
Provides:	%{name}-gui = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	libyui-qt
Requires:	libyui-mga-qt

%description qt
This package pulls in the dependencies to run %{name} with a Qt5 GUI.

%files qt
# No files

#-----------------------------------------------------------

%package gtk
Summary:	GTK+ frontend for %{name}
Group:		System/Configuration/Packaging
Provides:	%{name}-gui = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	libyui-gtk
Requires:	libyui-mga-gtk

%description gtk
This package pulls in the dependencies to run %{name} with a GTK+3 GUI.

%files gtk
# No files

#-----------------------------------------------------------

%package common
Summary:	Shared files for Qt and GTK+ flavours of %{name}
Group:		System/Configuration/Packaging
# It's silly to install this without the actual program...
Requires:	%{name} = %{EVRD}
# Without this requirement, it's possible to have desktop files installed
# that won't do anything, since there's no GUI deps installed.
Requires:	%{name}-gui

%description common
This package contains shared files used by the Qt and GTK+ flavours of
%{name}, which are not strictly necessary for the ncurses flavour of the
main %{name} package.

%files common
%{_datadir}/appdata/*%{name}.appdata.xml
%{_datadir}/applications/*%{name}*.desktop
%exclude %{_datadir}/applications/*%{name}-updater.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}*

#-----------------------------------------------------------

%package updater
Summary:	Update notifier applet for %{name}
Group:		System/Configuration/Packaging
Requires:	%{name}-gui = %{EVRD}
Requires:	libnotify
Requires:	python3-cairosvg
Requires:	python3-cssselect2
Requires:	python3-notify2
Requires:	python3-pillow
Requires:	python3-pystray
Requires:	python3-pyxdg
Requires:	python3-webencodings
Requires:	typelib(AppIndicator3)

%description updater
%{name} is a DNF frontend, based on rpmdragora from Mageia
(originally rpmdrake) Perl code.

%{name} is written in Python 3 and uses libYui, the widget
abstraction library written by SUSE, so that it can be run
using Qt 5, GTK+ 3, or ncurses interfaces.

This package provides the update notifier applet for %{name}.

%files updater
%{_bindir}/%{name}-updater
%{_bindir}/%{name}-updater-runner
%{_datadir}/applications/*%{name}-updater.desktop
%{python3_sitelib}/%{name}/updater.py*
%{python3_sitelib}/%{name}/__pycache__/updater.cpython*.py?

#-----------------------------------------------------------

%package updater-autostart
Summary:	Update notifier applet for %{name}
Group:		System/Configuration/Packaging
Requires:	%{name}-updater = %{EVRD}

%description updater-autostart
Add dnfdragora-updater into autostart to check for updates automatically

%files updater-autostart
%{_sysconfdir}/xdg/autostart/*%{name}*.desktop

#-----------------------------------------------------------

%package -n update-system
Summary:	Simple update system
Group:		System/Configuration/Packaging
Requires:	dnf
Requires:	usermode
Requires:	xterm
Requires:	zenity

%description -n update-system
Simple update system.

%files -n update-system
%{_bindir}/update-system
%{_datadir}/applications/update-system.desktop
%{_iconsdir}/hicolor/scalable/apps/dnfdragora-update.svg
%{_sbindir}/update-system
%config (noreplace) %{_sysconfdir}/pam.d/update-system
%config (noreplace) %{_sysconfdir}/security/console.apps/update-system

#-----------------------------------------------------------

%prep
%autosetup -p1
%ifarch %{ix86}
%patch2 -p1 -R
%endif

pushd share
tar -xvzf %{SOURCE6}
popd

%build
%cmake	-DCHECK_RUNTIME_DEPENDENCIES=ON				\
	-DENABLE_COMPS=OFF					\
	-Wno-dev
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/applications/org.mageia.update-system.desktop
install -m755 %{SOURCE3} %{buildroot}%{_sbindir}/
ln -s consolehelper %{buildroot}%{_bindir}/update-system
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/security/console.apps/update-system
install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/pam.d/update-system
cp share/images/dnfdragora-update.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/

install -m755 %{SOURCE7} %{buildroot}%{_bindir}/dnfdragora-updater-runner
sed -i'' %{buildroot}%{_sysconfdir}/xdg/autostart/org.mageia.dnfdragora-updater.desktop -E -e 's,^Exec=.+,Exec=dnfdragora-updater-runner,'

# rename from org.mageia.xxx.desktop to xxx.desktop
find %{buildroot}%{_datadir}/applications %{buildroot}%{_sysconfdir}/xdg/autostart -iname '*.desktop' -print | while read -r line ; do
	new_name="$(echo "$line" | sed -e 's,org.mageia.,,g')"
	mv -v "$line" "$new_name"
done

mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/dragora
cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/bin/bash
if tty |grep -q tty; then
	sudo -i dragora-tty "\$@" || (dragora --exit && dragora "\$@" && reset)
else
	dragora --exit && dragora "\$@"
	[ \$(id -u) -eq 0 ] && dragora --exit
fi
EOF
chmod +x %{buildroot}%{_bindir}/%{name}

cat > %{buildroot}%{_bindir}/dragora-tty <<EOF
#!/bin/bash
eval \$(dbus-launch --sh-syntax)
dragora --exit && dragora "\$@"
dragora --exit
reset
exit 0
EOF
chmod +x %{buildroot}%{_bindir}/dragora-tty

%find_lang %{name}

%check
# Validate desktop-files.
%{_bindir}/desktop-file-validate				\
	%{buildroot}%{_datadir}/applications/*.desktop

# Validate AppData-files.
%{_bindir}/appstream-util validate-relax --nonet		\
	%{buildroot}%{_datadir}/appdata/*.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12448 |21mr|dnf-plugins-core-4.0.23-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?!dnf_lowest_compatible: %global dnf_lowest_compatible 4.2.14}
%define dnf_plugins_extra 2.0.0
%define hawkey_version 0.46.1

# (ngompa): To avoid annoying problems...
%global __python %{__python3}

# Copr targets are not available for ROSA
%bcond_with copr_plugin

Summary:	Core Plugins for DNF
Name:		dnf-plugins-core
Version:	4.0.23
Release:	2
Group:		System/Configuration/Packaging
License:	GPLv2+
Url:		https://github.com/rpm-software-management/dnf-plugins-core
Source0:	https://github.com/rpm-software-management/dnf-plugins-core/archive/%{version}/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	cmake
BuildRequires:	gettext
Requires:	python3-dnf-plugins-core = %{version}-%{release}
Provides:	dnf-command(builddep)
Provides:	dnf-command(changelog)
Provides:	dnf-command(config-manager)
%if %{with copr_plugin}
Provides:	dnf-command(copr)
%endif
Provides:	dnf-command(debug-dump)
Provides:	dnf-command(debug-restore)
Provides:	dnf-command(debuginfo-install)
Provides:	dnf-command(download)
Provides:	dnf-command(repoclosure)
Provides:	dnf-command(repodiff)
Provides:	dnf-command(repograph)
Provides:	dnf-command(repomanage)
Provides:	dnf-command(reposync)

# Plugins shift from extras to core
Provides:	dnf-plugins-extras-debug = %{version}-%{release}
Provides:	dnf-plugins-extras-repoclosure = %{version}-%{release}
Provides:	dnf-plugins-extras-repograph = %{version}-%{release}
Provides:	dnf-plugins-extras-repomanage = %{version}-%{release}
# Generic package name Provides
Provides:	dnf-plugin-builddep = %{version}-%{release}
Provides:	dnf-plugin-config-manager = %{version}-%{release}
Provides:	dnf-plugin-debuginfo-install = %{version}-%{release}
Provides:	dnf-plugin-download = %{version}-%{release}
Provides:	dnf-plugin-generate_completion_cache = %{version}-%{release}
Provides:	dnf-plugin-groups-manager = %{version}-%{release}
Provides:	dnf-plugin-needs_restarting = %{version}-%{release}
Provides:	dnf-plugin-repoclosure = %{version}-%{release}
Provides:	dnf-plugin-repodiff = %{version}-%{release}
Provides:	dnf-plugin-repograph = %{version}-%{release}
Provides:	dnf-plugin-repomanage = %{version}-%{release}
Provides:	dnf-plugin-reposync = %{version}-%{release}
Conflicts:	dnf-plugins-extras-common-data < %{dnf_plugins_extra}

%description
Core Plugins for DNF. This package enhances DNF with the builddep,
config-manager, %{?_with_copr_plugin:copr, }debug, debuginfo-install,
download, needs-restarting, repoclosure, repograph, repomanage,
and reposync commands. Additionally, it provides the
generate_completion_cache passive plugin.

%files -f %{name}.lang
%license COPYING
%doc AUTHORS README.rst
%{_mandir}/man8/dnf-builddep.*
%{_mandir}/man8/dnf-config-manager.*
%if %{with copr_plugin}
%{_mandir}/man8/dnf-copr.*
%else
%exclude %{_mandir}/man8/dnf-copr.*
%endif
%{_mandir}/man1/dnf-utils.*
%{_mandir}/man1/package-cleanup.*
%{_mandir}/man1/yumdownloader.*
%{_mandir}/man8/yum-copr.*
%{_mandir}/man1/yum-changelog.*
%{_mandir}/man1/debuginfo-install.*
%{_mandir}/man1/needs-restarting.*
%{_mandir}/man1/repo-graph.*
%{_mandir}/man1/repoclosure.*
%{_mandir}/man1/repodiff.*
%{_mandir}/man1/repomanage.*
%{_mandir}/man1/reposync.*
%{_mandir}/man1/yum-builddep.*
%{_mandir}/man1/yum-config-manager.*
%{_mandir}/man1/yum-debug-dump.*
%{_mandir}/man1/yum-debug-restore.*
%{_mandir}/man1/yum-utils.1.xz
%{_mandir}/man1/yum-groups-manager.1.xz
%{_mandir}/man8/dnf-changelog.*
%{_mandir}/man8/dnf-debug.*
%{_mandir}/man8/dnf-debuginfo-install.*
%{_mandir}/man8/dnf-download.*
%{_mandir}/man8/dnf-generate_completion_cache.*
%{_mandir}/man8/dnf-needs-restarting.*
%{_mandir}/man8/dnf-repoclosure.*
%{_mandir}/man8/dnf-repodiff.*
%{_mandir}/man8/dnf-repograph.*
%{_mandir}/man8/dnf-repomanage.*
%{_mandir}/man8/dnf-reposync.*
%{_mandir}/man8/dnf-groups-manager.8.xz

%dir %{_sysconfdir}/dnf/protected.d
%ghost %{_var}/cache/dnf/packages.db
%config(noreplace) %{_sysconfdir}/dnf/plugins/debuginfo-install.conf
%config(noreplace) %{_sysconfdir}/dnf/plugins/copr.conf

#----------------------------------------------------------------------
%package -n python3-dnf-plugins-core
Summary:	Python 3 interface to core plugins for DNF
Group:		System/Configuration/Packaging
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-dnf >= %{dnf_lowest_compatible}
BuildRequires:	python3-nose
BuildRequires:	python3-sphinx
BuildRequires:	python3-setuptools
BuildRequires:	python3-dbus
Requires:	python3-dnf >= %{dnf_lowest_compatible}
Requires:	python3-hawkey >= %{hawkey_version}
Requires:	python3-dateutil
Requires:	python3-dbus
#Requires:	python3-distro

Conflicts:	%{name} <= 0.1.5
# let the both python plugin versions be updated simultaneously
Conflicts:	python3-%{name} < %{version}-%{release}
Conflicts:	python2-%{name} < %{version}-%{release}
Provides:	python3-dnf-plugins-extras-debug = %{version}-%{release}
Provides:	python3-dnf-plugins-extras-repoclosure = %{version}-%{release}
Provides:	python3-dnf-plugins-extras-repograph = %{version}-%{release}
Provides:	python3-dnf-plugins-extras-repomanage = %{version}-%{release}
Obsoletes:	python3-dnf-plugins-extras-debug < %{dnf_plugins_extra}
Obsoletes:	python3-dnf-plugins-extras-repoclosure < %{dnf_plugins_extra}
Obsoletes:	python3-dnf-plugins-extras-repograph < %{dnf_plugins_extra}
Obsoletes:	python3-dnf-plugins-extras-repomanage < %{dnf_plugins_extra}

%description -n python3-dnf-plugins-core
Core Plugins for DNF, Python 3 interface. This package enhances DNF with
the builddep, config-manager, %{?_with_copr_plugin:copr, }debug,
debuginfo-install, download, needs-restarting, repoclosure, repograph,
repomanage, and reposync commands.

Additionally, it provides the generate_completion_cache passive plugin.

%files -n python3-dnf-plugins-core
%license COPYING
%doc AUTHORS README.rst
%{python3_sitelib}/dnf-plugins/builddep.py*
%{python3_sitelib}/dnf-plugins/__pycache__/builddep.*
%{python3_sitelib}/dnf-plugins/config_manager.py*
%{python3_sitelib}/dnf-plugins/__pycache__/config_manager.*
%if %{with copr_plugin}
%{python3_sitelib}/dnf-plugins/copr.py*
%{python3_sitelib}/dnf-plugins/__pycache__/copr.*
%else
%exclude %{python3_sitelib}/dnf-plugins/copr.*
%exclude %{python3_sitelib}/dnf-plugins/__pycache__/copr.*
%endif
%{python3_sitelib}/dnf-plugins/changelog.py*
%{python3_sitelib}/dnf-plugins/__pycache__/changelog.*
%{python3_sitelib}/dnf-plugins/debug.py*
%{python3_sitelib}/dnf-plugins/__pycache__/debug.*
%{python3_sitelib}/dnf-plugins/debuginfo-install.py*
%{python3_sitelib}/dnf-plugins/__pycache__/debuginfo-install.*
%{python3_sitelib}/dnf-plugins/download.py*
%{python3_sitelib}/dnf-plugins/__pycache__/download.*
%{python3_sitelib}/dnf-plugins/generate_completion_cache.py*
%{python3_sitelib}/dnf-plugins/__pycache__/generate_completion_cache.*
%{python3_sitelib}/dnf-plugins/needs_restarting.py*
%{python3_sitelib}/dnf-plugins/__pycache__/needs_restarting.*
%{python3_sitelib}/dnf-plugins/repoclosure.py*
%{python3_sitelib}/dnf-plugins/__pycache__/repoclosure.*
%{python3_sitelib}/dnf-plugins/repodiff.py*
%{python3_sitelib}/dnf-plugins/__pycache__/repodiff.*
%{python3_sitelib}/dnf-plugins/repograph.py*
%{python3_sitelib}/dnf-plugins/__pycache__/repograph.*
%{python3_sitelib}/dnf-plugins/repomanage.py*
%{python3_sitelib}/dnf-plugins/__pycache__/repomanage.*
%{python3_sitelib}/dnf-plugins/reposync.py*
%{python3_sitelib}/dnf-plugins/__pycache__/reposync.*
%{python3_sitelib}/dnf-plugins/groups_manager.py
%{python3_sitelib}/dnf-plugins/__pycache__/groups_manager.*
%{python3_sitelib}/dnfpluginscore/


#----------------------------------------------------------------------

%package -n dnf-utils
Summary:	Yum-utils CLI compatibility layer
Group:		System/Configuration/Packaging
Provides:	yum-utils = %{EVRD}
# Allow GDB to have dnf-utils satisfy its requirement for debuginfo-install command
Provides:	pkg-command(debuginfo-install)
# Conflict with other provider of /usr/bin/debuginfo-install
Conflicts:	urpmi-debug-info-install
# Conflict with older versions where debuginfo-install was bundled
Conflicts:	gdb < 9.0
Requires:	dnf >= %{dnf_lowest_compatible}
Requires:	%{name} = %{version}-%{release}
Requires:	python3-dnf >= %{dnf_lowest_compatible}

%description -n dnf-utils
As a Yum-utils CLI compatibility layer, supplies in CLI shims for
debuginfo-install, repograph, package-cleanup, repoclosure, repodiff, repomanage,
repoquery, reposync, repotrack, builddep, config-manager, debug, and
download that use new implementations using DNF.

%files -n dnf-utils
%{_libexecdir}/dnf-utils
%{_bindir}/debuginfo-install
%{_bindir}/needs-restarting
%{_bindir}/find-repos-of-install
%{_bindir}/package-cleanup
%{_bindir}/repo-graph
%{_bindir}/repoclosure
%{_bindir}/repodiff
%{_bindir}/repomanage
%{_bindir}/repoquery
%{_bindir}/reposync
%{_bindir}/repotrack
%{_bindir}/yum-builddep
%{_bindir}/yum-config-manager
%{_bindir}/yum-debug-dump
%{_bindir}/yum-debug-restore
%{_bindir}/yumdownloader

#----------------------------------------------------------------------

%package -n python3-dnf-plugin-leaves
Summary:	Leaves Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name} = %{version}-%{release}
Provides:	python3-dnf-plugins-extras-leaves = %{version}-%{release}
Provides:	dnf-command(leaves)
Provides:	dnf-plugin-leaves = %{version}-%{release}
Provides:	dnf-plugins-extras-leaves = %{version}-%{release}
Conflicts:	dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts:	python2-dnf-plugin-leaves < %{version}-%{release}
Obsoletes:	python3-dnf-plugins-extras-leaves < %{dnf_plugins_extra}

%description -n python3-dnf-plugin-leaves
Leaves Plugin for DNF, Python 3 version. List all installed packages
not required by any other installed package.

%files -n python3-dnf-plugin-leaves
%{python3_sitelib}/dnf-plugins/leaves.*
%{python3_sitelib}/dnf-plugins/__pycache__/leaves.*
%{_mandir}/man8/dnf-leaves.*

#----------------------------------------------------------------------

%package -n python3-dnf-plugin-local
Summary:	Local Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	createrepo_c
Requires:	python3-%{name} = %{version}-%{release}
Provides:	dnf-plugin-local =  %{version}-%{release}
Provides:	python3-dnf-plugins-extras-local = %{version}-%{release}
Provides:	dnf-plugins-extras-local = %{version}-%{release}
Conflicts:	dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts:	python2-dnf-plugin-local < %{version}-%{release}
Obsoletes:	python3-dnf-plugins-extras-local < %{dnf_plugins_extra}

%description -n python3-dnf-plugin-local
Local Plugin for DNF, Python 3 version. Automatically copy all downloaded
packages to a repository on the local filesystem and generating repo metadata.

%files -n python3-dnf-plugin-local
%config(noreplace) %{_sysconfdir}/dnf/plugins/local.conf
%{python3_sitelib}/dnf-plugins/local.*
%{python3_sitelib}/dnf-plugins/__pycache__/local.*
%{_mandir}/man8/dnf-local.*

#----------------------------------------------------------------------

%package -n python3-dnf-plugin-show-leaves
Summary:	Show-leaves Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name} = %{version}-%{release}
Requires:	python3-dnf-plugin-leaves = %{version}-%{release}
Provides:	dnf-plugin-show-leaves =  %{version}-%{release}
Provides:	python3-dnf-plugins-extras-show-leaves = %{version}-%{release}
Provides:	dnf-command(show-leaves)
Provides:	dnf-plugins-extras-show-leaves = %{version}-%{release}
Conflicts:	dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts:	python2-dnf-plugin-show-leaves < %{version}-%{release}
Obsoletes:	python3-dnf-plugins-extras-show-leaves < %{dnf_plugins_extra}

%description -n python3-dnf-plugin-show-leaves
Show-leaves Plugin for DNF, Python 3 version. List all installed
packages that are no longer required by any other installed package
after a transaction.


%files -n python3-dnf-plugin-show-leaves
%{python3_sitelib}/dnf-plugins/show_leaves.*
%{python3_sitelib}/dnf-plugins/__pycache__/show_leaves.*
%{_mandir}/man8/dnf-show-leaves.*

#----------------------------------------------------------------------

%package -n python3-dnf-plugin-versionlock
Summary:	Version Lock Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name} = %{version}-%{release}
Provides:	dnf-plugin-versionlock =  %{version}-%{release}
Provides:	python3-dnf-plugins-extras-versionlock = %{version}-%{release}
Provides:	dnf-command(versionlock)
Provides:	dnf-plugins-extras-versionlock = %{version}-%{release}
Conflicts:	dnf-plugins-extras-common-data < %{dnf_plugins_extra}
Conflicts:	python2-dnf-plugin-versionlock < %{version}-%{release}
Obsoletes:	python3-dnf-plugins-extras-versionlock < %{dnf_plugins_extra}

%description -n python3-dnf-plugin-versionlock
Version lock plugin takes a set of name/versions for packages
and excludes all other versions of those packages. This allows
you to e.g. protect packages from being updated by newer versions.

%files -n python3-dnf-plugin-versionlock
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.conf
%config(noreplace) %{_sysconfdir}/dnf/plugins/versionlock.list
%{python3_sitelib}/dnf-plugins/versionlock.*
%{python3_sitelib}/dnf-plugins/__pycache__/versionlock.*
%{_mandir}/man8/dnf-versionlock.*
%{_mandir}/man5/yum-versionlock.conf.5*
%{_mandir}/man8/yum-versionlock.8*

#----------------------------------------------------------------------

%package -n python3-dnf-plugin-post-transaction-actions
Summary:	Post transaction actions Plugin for DNF
Requires:	python3-%{name} = %{version}-%{release}
Provides:       dnf-plugin-post-transaction-actions =  %{version}-%{release}

%description -n python3-dnf-plugin-post-transaction-actions
Post transaction actions Plugin for DNF, Python 3 version. Plugin runs actions
(shell commands) after transaction is completed. Actions are defined in action
files.

%files -n python3-dnf-plugin-post-transaction-actions
%config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.conf
%config(noreplace) %{_sysconfdir}/dnf/plugins/post-transaction-actions.d
%{python3_sitelib}/dnf-plugins/post-transaction-actions.*
%{python3_sitelib}/dnf-plugins/__pycache__/post-transaction-actions.*
%{_mandir}/man8/dnf-post-transaction-actions.*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DPYTHON_DESIRED:str=3
%make
make doc-man

%install
%makeinstall_std -C build

%find_lang %{name}

mv %{buildroot}%{_libexecdir}/dnf-utils-3 %{buildroot}%{_libexecdir}/dnf-utils

mkdir -p %{buildroot}%{_bindir}
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/debuginfo-install
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/needs-restarting
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/find-repos-of-install
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repo-graph
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/package-cleanup
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repoclosure
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repodiff
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repomanage
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repoquery
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/reposync
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/repotrack
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-builddep
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-config-manager
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-debug-dump
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yum-debug-restore
ln -sf %{_libexecdir}/dnf-utils %{buildroot}%{_bindir}/yumdownloader

# Purge man page for not installed migrate plugin
rm -f %{buildroot}%{_mandir}/man8/dnf-migrate.8*

%check
LC_ALL=C LANG=C LANGUAGE=C PYTHONPATH=./plugins /usr/bin/nosetests-%{python3_version} -s tests/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12449 |21mr|dnf-plugins-extras-4.0.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?dnf_lowest_compatible: %global dnf_lowest_compatible 4.4.0}
%global dnf_plugins_extra_obsolete 2.0.0

# (ngompa): To avoid annoying problems...
%global __python %{__python3}

# ROSA does not have rpmconf
%bcond_with rpmconf
# ROSA does not have snapper
%bcond_with snapper
# ROSA does not have tracer
%bcond_with tracer
%bcond_without pykickstart

Name:		dnf-plugins-extras
Version:	4.0.15
Release:	1
Summary:	Extras Plugins for DNF
Group:		System/Configuration/Packaging
License:	GPLv2+
URL:		https://github.com/rpm-software-management/dnf-plugins-extras
Source0:	https://github.com/rpm-software-management/dnf-plugins-extras/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildArch:	noarch
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-dnf >= %{dnf_lowest_compatible}
BuildRequires:	python3-nose
BuildRequires:	python3-sphinx

%description
Extras Plugins for DNF.

%package -n python3-%{name}-common
Summary:	Common files for Extras Plugins for DNF
Group:		System/Configuration/Packaging
Requires:	python3-dnf >= %{dnf_lowest_compatible}
Provides:	%{name}-common = %{version}-%{release}
Obsoletes:	%{name}-common < %{version}-%{release}
Obsoletes:	python3-%{name}-common < %{version}-%{release}
Obsoletes:	%{name} < %{version}-%{release}
Obsoletes:	%{name}-common-data < %{version}-%{release}
Conflicts:	python2-%{name}-common < %{version}-%{release}

%description -n python3-%{name}-common
Common files for Extras Plugins for DNF, Python 3 version.

%if %{with pykickstart}
%package -n python3-dnf-plugin-kickstart
Summary:	Kickstart Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name}-common = %{version}-%{release}
BuildRequires:	python3-kickstart
Requires:	python3-kickstart
Provides:	dnf-command(kickstart)
Provides:	%{name}-kickstart = %{version}-%{release}
Provides:	dnf-plugin-kickstart = %{version}-%{release}
Provides:	python3-%{name}-kickstart = %{version}-%{release}
Conflicts:	python2-dnf-plugin-kickstart < %{version}-%{release}
Obsoletes:	python3-%{name}-kickstart < %{dnf_plugins_extra_obsolete}

%description -n python3-dnf-plugin-kickstart
Kickstart Plugin for DNF, Python 3 version. Install packages listed in a
Kickstart file.
%endif

%if %{with rpmconf}
%package -n python3-dnf-plugin-rpmconf
Summary:	RpmConf Plugin for DNF
Group:		System/Configuration/Packaging
BuildRequires:	python3-rpmconf
Requires:	python3-%{name}-common = %{version}-%{release}
Requires:	python3-rpmconf
Provides:	%{name}-rpmconf = %{version}-%{release}
Provides:	dnf-plugin-rpmconf = %{version}-%{release}
Provides:	python3-%{name}-rpmconf = %{version}-%{release}
Obsoletes:	python3-%{name}-rpmconf < %{dnf_plugins_extra_obsolete}

%description -n python3-dnf-plugin-rpmconf
RpmConf Plugin for DNF, Python 3 version. Handles .rpmnew, .rpmsave every
transaction.
%endif

%if %{with snapper}
%package -n python3-dnf-plugin-snapper
Summary:	Snapper Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name}-common = %{version}-%{release}
Requires:	python3-dbus
Requires:	snapper
Provides:	%{name}-snapper = %{version}-%{release}
Provides:	dnf-plugin-snapper = %{version}-%{release}
Provides:	python3-%{name}-snapper = %{version}-%{release}
Conflicts:	python2-dnf-plugin-snapper < %{version}-%{release}
Obsoletes:	python3-%{name}-snapper < %{dnf_plugins_extra_obsolete}

%description -n python3-dnf-plugin-snapper
Snapper Plugin for DNF, Python 3 version. Creates snapshot every transaction.
%endif

%package -n python3-dnf-plugin-system-upgrade
Summary:	System Upgrade Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name}-common = %{version}-%{release}
Requires:	python3-systemd
Provides:	dnf-command(system-upgrade)
Provides:	%{name}-system-upgrade = %{version}-%{release}
Provides:	system-upgrade = %{version}-%{release}
Provides:	dnf-plugin-system-upgrade = %{version}-%{release}
Provides:	python3-%{name}-system-upgrade = %{version}-%{release}
Obsoletes:	python3-%{name}-system-upgrade < %{dnf_plugins_extra_obsolete}
Obsoletes:	fedup < 0.9.4
Obsoletes:	dnf-plugin-system-upgrade < 0.10
Conflicts:	python2-dnf-plugin-system-upgrade < %{version}-%{release}
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	python3-systemd
%{?systemd_requires}

%description -n python3-dnf-plugin-system-upgrade
System Upgrade Plugin for DNF, Python 3 version. Enables offline system upgrades
using the "dnf system-upgrade" command.

%if %{with tracer}
%package -n python3-dnf-plugin-tracer
Summary:	Tracer Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name}-common = %{version}-%{release}
Requires:	python3-tracer >= 0.6.12
Provides:	dnf-plugin-tracer = %{version}-%{release}
Provides:	%{name}-tracer = %{version}-%{release}
Provides:	python3-%{name}-tracer = %{version}-%{release}
Conflicts:	python2-dnf-plugin-tracer < %{version}-%{release}
Obsoletes:	python3-%{name}-tracer < %{dnf_plugins_extra_obsolete}

%description -n python3-dnf-plugin-tracer
Tracer Plugin for DNF, Python 3 version. Finds outdated running applications in
your system every transaction.
%endif

%package -n python3-dnf-plugin-torproxy
Summary:	Tor Proxy Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name}-common = %{version}-%{release}
Requires:	python3-pycurl
Provides:	dnf-plugin-torproxy = %{version}-%{release}
Provides:	%{name}-torproxy = %{version}-%{release}
Provides:	python3-%{name}-torproxy = %{version}-%{release}
Obsoletes:	python3-%{name}-torproxy < %{dnf_plugins_extra_obsolete}

%description -n python3-dnf-plugin-torproxy
Tor proxy plugin forces DNF to use Tor to download packages. It makes sure that
Tor is working and avoids leaking the hostname by using the proper SOCKS5 interface.

%package -n python3-dnf-plugin-showvars
Summary:	Showvars Plugin for DNF
Group:		System/Configuration/Packaging
Requires:	python3-%{name}-common = %{version}-%{release}
Provides:	dnf-plugin-showvars = %{version}-%{release}
Provides:	%{name}-showvars = %{version}-%{release}
Provides:	python3-%{name}-showvars = %{version}-%{release}

%description -n python3-dnf-plugin-showvars
This plugin dumps the current value of any defined DNF variables.  For example
$releasever and $basearch.

%prep
%autosetup -n %{name}-%{version}%{?prerel:-%{prerel}} -p1

%build
%cmake -DPYTHON_DESIRED:str=3
%make
make doc-man

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_unitdir}/system-update.target.wants/
cd %{buildroot}%{_unitdir}/system-update.target.wants/
  ln -sr ../dnf-system-upgrade.service
cd -

%find_lang %{name}

%if ! %{with pykickstart}
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/kickstart.*
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/__pycache__/kickstart.*
rm -rf %{buildroot}%{_mandir}/man8/dnf.plugin.kickstart.*
rm -rf %{buildroot}%{_mandir}/man8/dnf-kickstart.*
%endif

%if ! %{with rpmconf}
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/rpmconf.*
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/rpm_conf.*
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/__pycache__/rpmconf.*
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/__pycache__/rpm_conf.*
rm -rf %{buildroot}%{_mandir}/man8/dnf.plugin.rpmconf.*
rm -rf %{buildroot}%{_sysconfdir}/dnf/plugins/rpmconf.conf
rm -rf %{buildroot}%{_mandir}/man8/dnf.plugin.rpmconf.*
rm -rf %{buildroot}%{_mandir}/man8/dnf-rpmconf.*
%endif

%if ! %{with snapper}
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/snapper.*
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/__pycache__/snapper.*
rm -rf %{buildroot}%{_mandir}/man8/dnf.plugin.snapper.*
rm -rf %{buildroot}%{_mandir}/man8/dnf-snapper.*
%endif

%if ! %{with tracer}
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/tracer.*
rm -rf %{buildroot}%{python3_sitelib}/dnf-plugins/__pycache__/tracer.*
rm -rf %{buildroot}%{_mandir}/man8/dnf.plugin.tracer.*
rm -rf %{buildroot}%{_mandir}/man8/dnf-tracer.*
%endif


%check
%if ! %{with pykickstart}
rm -rf tests/test_kickstart.*
%endif

%if ! %{with rpmconf}
rm -rf tests/test_rpmconf.*
%endif

PYTHONPATH="%{buildroot}%{python3_sitelib}:%{buildroot}%{python3_sitelib}/dnf-plugins/" nosetests-%{python3_version} -s tests/

%files -n python3-%{name}-common -f %{name}.lang
%{python3_sitelib}/dnfpluginsextras/
%license COPYING
%doc AUTHORS README.rst

%if %{with pykickstart}
%files -n python3-dnf-plugin-kickstart
%{python3_sitelib}/dnf-plugins/kickstart.*
%{python3_sitelib}/dnf-plugins/__pycache__/kickstart.*
%{_mandir}/man8/dnf-kickstart.8*
%endif

%if %{with rpmconf}
%files -n python3-dnf-plugin-rpmconf
%config(noreplace) %{_sysconfdir}/dnf/plugins/rpmconf.conf
%{python3_sitelib}/dnf-plugins/rpm_conf.*
%{python3_sitelib}/dnf-plugins/__pycache__/rpm_conf.*
%{_mandir}/man8/dnf-rpmconf.8*
%endif

%if %{with snapper}
%files -n python3-dnf-plugin-snapper
%{python3_sitelib}/dnf-plugins/snapper.*
%{python3_sitelib}/dnf-plugins/__pycache__/snapper.*
%{_mandir}/man8/dnf-snapper.8*
%endif

%files -n python3-dnf-plugin-system-upgrade
%{_unitdir}/dnf-system-upgrade.service
%{_unitdir}/system-update.target.wants/dnf-system-upgrade.service
%{_unitdir}/dnf-system-upgrade-cleanup.service
%{python3_sitelib}/dnf-plugins/system_upgrade.py*
%{python3_sitelib}/dnf-plugins/__pycache__/system_upgrade*.pyc
%{_mandir}/man8/dnf-system-upgrade.8*

%if %{with tracer}
%files -n python3-dnf-plugin-tracer
%{python3_sitelib}/dnf-plugins/tracer.*
%{python3_sitelib}/dnf-plugins/__pycache__/tracer.*
%{_mandir}/man8/dnf-tracer.8*
%endif

%files -n python3-dnf-plugin-torproxy
%config(noreplace) %{_sysconfdir}/dnf/plugins/torproxy.conf
%{python3_sitelib}/dnf-plugins/torproxy.*
%{python3_sitelib}/dnf-plugins/__pycache__/torproxy*.pyc
%{_mandir}/man8/dnf-torproxy.8*

%files -n python3-dnf-plugin-showvars
%{python3_sitelib}/dnf-plugins/showvars.*
%{python3_sitelib}/dnf-plugins/__pycache__/showvars.*
%{_mandir}/man8/dnf-showvars.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12450 |21mr|dnf-URPM-2-0.git20180418.2757451.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global snapdate 20180418
%global commit 27574518bb3be9f7c7fc060e6be39df6eac85f21
%global shortcommit %(c=%{commit}; echo ${c:0:7})

%global rel 3

# Replacing urpmi
%bcond_without as_urpmi

Name:           dnf-URPM
Version:        2
Release:        %{?snapdate:0.git%{snapdate}.%{shortcommit}.}%{rel}
Summary:        URPM* tool suite implemented on top of DNF
Group:          System/Base
License:        GPLv3+
URL:            https://github.com/rpm-software-management/%{name}
Source0:        %{url}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz

BuildRequires:  python3-devel
# dnf-urpmi
Requires:       dnf-command(install)
Requires:       dnf-command(upgrade)
Requires:       dnf-command(builddep)
Requires:       dnf-command(downgrade)
Requires:       dnf-command(reinstall)
# dnf-urpmi.update - Not yet implemented
#Requires:       dnf-command(makecache)
# dnf-urpme
Requires:       dnf-command(remove)
# dnf-urpmq / dnf-urpmf - Not yet implemented
#Requires:       dnf-command(repoquery)

Provides:       dnf-urpm = %{version}-%{release}

BuildArch:      noarch

# Do not conflict with real urpmi for now
#%%if %{with as_urpmi}
#Obsoletes:      urpmi < 8.03.10
#Provides:       urpmi = 8.03.10
#%%endif

%description
dnf-URPM aims to reimplement the URPM tool suite on top of DNF,
a next generation repository manager and dependency resolver with
a well-defined and tested CLI and API.

The hope is to implement as much of the functionality of urpmi,
urpmi.update, urpme, urpmq, and urpmf as possible on top of DNF.


%prep
%autosetup -n %{name}-%{commit}

%build
# Nothing to build

%install
# Install module code
mkdir -p %{buildroot}%{python3_sitelib}
cp -av dnf_URPM %{buildroot}%{python3_sitelib}

# Install commands
mkdir -p %{buildroot}%{_bindir}
%if %{with as_urpmi}
mkdir -p %{buildroot}%{_sbindir}
%endif

for urpmcmd in urpmi urpme; do
    install -pm 0755 dnf-${urpmcmd} %{buildroot}%{_bindir}/dnf-${urpmcmd}
%if %{with as_urpmi}
    ln -sr %{buildroot}%{_bindir}/dnf-${urpmcmd} %{buildroot}%{_sbindir}/${urpmcmd}
%endif
done


%files
%license LICENSE
%doc README.md AUTHORS.md TODO.md
%{python3_sitelib}/dnf_URPM/
%{_bindir}/dnf-urpm*
%if %{with as_urpmi}
%{_sbindir}/urpm*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12451 |21mr|dnsjava-2.1.3-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Test of properly function library need DNS querys. It work perfectly on my machine and pass all tests.
# But internet access is not allowed from mock chroot. So, I need disable it by default. Yo may enable it if you want.
%global do_not_test 1

Name:          dnsjava
Version:       2.1.3
Release:       16
Summary:       Java DNS implementation
License:       BSD and MIT
URL:           http://www.dnsjava.org/
Source0:       http://www.dnsjava.org/download/%{name}-%{version}.tar.gz
Source1:       %{name}-%{version}.pom
# bz#842582
Patch0:        dnsjava-2.0.6-java1.5.target.patch

BuildRequires: ant
BuildRequires: aqute-bnd
# see https://fedorahosted.org/released/javapackages/doc/#_add_maven_depmap_macro_2
BuildRequires: javapackages-local
# For tests
BuildRequires: ant-junit
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
dnsjava is an implementation of DNS in Java. It supports all of the common
record types and the DNSSEC types. It can be used for queries, zone transfers,
and dynamic updates. It includes a cache which can be used by clients, and a
minimal implementation of a server. It supports TSIG authenticated messages,
partial DNSSEC verification, and EDNS0.

dnsjava provides functionality above and beyond that of the InetAddress class.
Since it is written in pure Java, dnsjava is fully threadable, and in many
cases is faster than using InetAddress.

dnsjava provides both high and low level access to DNS. The high level
functions perform queries for records of a given name, type, and class, and
return an array of records. There is also a clone of InetAddress, which is
even simpler. A cache is used to reduce the number of DNS queries sent. The
low level functions allow direct manipulation of dns messages and records, as
well as allowing additional resolver properties to be set.

A 'dig' clone and a dynamic update program are included, as well as a
primary-only server.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
rm -rf doc/
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

%patch0 -p0 -b .java1.5

iconv -f iso8859-1 -t utf8 Changelog > Changelog.tmp
touch -r Changelog Changelog.tmp
mv -f Changelog.tmp Changelog
# install in _javadir
%mvn_file %{name}:%{name} %{name}

%build

export CLASSPATH=%(build-classpath jce aqute-bnd)
ant -Dj2se.javadoc=%{_javadocdir}/java clean docsclean bundle docs

%mvn_artifact %{SOURCE1} org.xbill.dns_%{version}.jar

%install
%mvn_install -J doc

%if ! 0%{?do_not_test}
%check
export CLASSPATH='%(build-classpath junit):%{name}-%{version}.jar'
ant -Dj2se.javadoc=%{_javadocdir}/java compile_tests
ant -Dj2se.javadoc=%{_javadocdir}/java run_tests
%endif

%files -f .mfiles
%license LICENSE
%doc Changelog README USAGE examples.html *.java

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12452 |21mr|dnsmasq-2.90-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A lightweight dhcp and caching nameserver
Name:		dnsmasq
Version:	2.90
Release:	1
License:	GPLv2 or GPLv3
Group:		System/Servers
Url:		http://www.thekelleys.org.uk/dnsmasq
Source0:	http://www.thekelleys.org.uk/dnsmasq/%{name}-%{version}.tar.xz
Source1:	dnsmasq.sysconfig
Source2:	dnsmasq.service
Source4:	README.update.urpmi
Patch0:		dnsmasq-2.80-compile.patch

BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	rpm-helper
Requires:	%{name}-base = %{version}-%{release}
Requires(preun,post):	rpm-helper
Conflicts:	bind

%description
Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It
is designed to provide DNS and, optionally, DHCP, to a small network. It can
serve the names of local machines which are not in the global DNS. The DHCP
server integrates with the DNS server and allows machines with DHCP-allocated
addresses to appear in the DNS with names configured either in each host or
in a central configuration file. Dnsmasq supports static and dynamic DHCP
leases and BOOTP for network booting of diskless machines.

%package	base
Summary:	A lightweight dhcp and caching nameserver - base files without init scripts
Group:		Networking/Remote access

%description	base
Dnsmasq is lightweight, easy to configure DNS forwarder and DHCP server. It
is designed to provide DNS and, optionally, DHCP, to a small network. It can
serve the names of local machines which are not in the global DNS. The DHCP
server integrates with the DNS server and allows machines with DHCP-allocated
addresses to appear in the DNS with names configured either in each host or
in a central configuration file. Dnsmasq supports static and dynamic DHCP
leases and BOOTP for network booting of diskless machines.

This package contains the base files of the Dnsmasq server, without the init
scripts and global configuration files.

%package        utils
Summary:        Utilities for manipulating DHCP server leases

%description    utils
Utilities that use the standard DHCP protocol to query/remove a DHCP
server's leases.

%files utils
%license COPYING COPYING-v3
%{_bindir}/dhcp_*
%{_mandir}/man1/dhcp_*

%prep
%autosetup -p1

%build
#fedya
sed -i -r 's:lua5.[0-9]+:lua:' Makefile

#(tpg) enable dbus support
sed -i 's|/\* #define HAVE_DBUS \*/|#define HAVE_DBUS|g' src/config.h

# fedya
# use /var/lib/dnsmasq instead of /var/lib/misc
for file in dnsmasq.conf.example man/dnsmasq.8 man/es/dnsmasq.8 src/config.h; do
    sed -i 's|/var/lib/misc/dnsmasq.leases|/var/lib/dnsmasq/dnsmasq.leases|g' "$file"
done

#enable IDN support
sed -i 's|/\* #define HAVE_IDN \*/|#define HAVE_IDN|g' src/config.h

# RH bugzilla
#enable /etc/dnsmasq.d fix bz 526703
sed -i 's|#conf-dir=/etc/dnsmasq.d|conf-dir=/etc/dnsmasq.d|g' dnsmasq.conf.example

%serverbuild
%make_build CC=%{__cc} CFLAGS="%{optflags}" LDFLAGS="%ldflags"
%make_build -C contrib/lease-tools CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"

%install
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m644 %{SOURCE2} -D %{buildroot}/lib/systemd/system/%{name}.service
install -m644 dnsmasq.conf.example -D %{buildroot}%{_sysconfdir}/dnsmasq.conf
install -m755 -D src/dnsmasq %{buildroot}%{_sbindir}/dnsmasq
install -m644 man/dnsmasq.8 -D %{buildroot}%{_mandir}/man8/dnsmasq.8
install -m644 %{SOURCE4} README.update.urpmi
install -d %{buildroot}/%{_sysconfdir}/dnsmasq.d/
install -d %{buildroot}/var/lib/%{name}/

# utils sub package
mkdir -p %{buildroot}%{_bindir} \
         %{buildroot}%{_mandir}/man1
install -m 755 contrib/lease-tools/dhcp_release %{buildroot}%{_bindir}/dhcp_release
install -m 644 contrib/lease-tools/dhcp_release.1 %{buildroot}%{_mandir}/man1/dhcp_release.1
install -m 755 contrib/lease-tools/dhcp_release6 %{buildroot}%{_bindir}/dhcp_release6
install -m 644 contrib/lease-tools/dhcp_release6.1 %{buildroot}%{_mandir}/man1/dhcp_release6.1
install -m 755 contrib/lease-tools/dhcp_lease_time %{buildroot}%{_bindir}/dhcp_lease_time
install -m 644 contrib/lease-tools/dhcp_lease_time.1 %{buildroot}%{_mandir}/man1/dhcp_lease_time.1

%pre
%_pre_useradd %{name} /dev/null /sbin/nologin
%_pre_groupadd %{name} %{name}
%post
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}
%_postun_groupdel %{name} %{name}

%files
%config(noreplace) %{_sysconfdir}/dnsmasq.conf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%dir %{_sysconfdir}/dnsmasq.d/
%dir /var/lib/%{name}
/lib/systemd/system/%{name}.service
%doc README.update.urpmi

%files base
%doc CHANGELOG FAQ COPYING COPYING-v3 doc.html setup.html
%{_sbindir}/%{name}
%doc %{_mandir}/man8/%{name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12453 |21mr|dnssec4j-0.1.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          dnssec4j
Version:       0.1.6
Release:       8
Summary:       Java Wrapper around DNSSEC primitives in dnsjava
License:       ASL 2.0 and GPLv3+
URL:           https://github.com/adamfisk/DNSSEC4J
Source0:       https://github.com/adamfisk/DNSSEC4J/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(dnsjava:dnsjava)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
DNSSEC4J is a higher level wrapper around the
DNSSEC primitives in dnsjava allowing applications to
more easily integrate DNSSEC into their applications.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n DNSSEC4J-%{name}-%{version}

%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-site-plugin

%pom_change_dep :dnsjava dnsjava:

%mvn_file :%{name} %{name}

%build
# Tests use web access, and @ random fails
# DnsSecTest.testGetByName:55  Results not equal for www.beck.com expected:<[54.243.91.158]> but was:<[107.21.220.33]>
%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license COPYRIGHT.txt LICENSE_APACHE_2.txt LICENSE_GPL.txt

%files javadoc -f .mfiles-javadoc
%license COPYRIGHT.txt LICENSE_APACHE_2.txt LICENSE_GPL.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12454 |21mr|docbook2x-0.8.8-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname docbook2X

Summary:	A docbook to GNU Texinfo format converter
Name:		docbook2x
Version:	0.8.8
Release:	16
License:	MIT
Group:		Publishing
Url:		http://docbook2x.sourceforge.net/
Source0:	http://ovh.dl.sourceforge.net/sourceforge/%{name}/%{oname}-%{version}.tar.bz2
BuildRequires:	perl(XML::SAX)
BuildRequires:	xsltproc
Requires:	xsltproc

%description
Converts DocBook documents into the traditional Unix man page format
and the GNU Texinfo format.

%files
%{_bindir}/db2x_manxml
%{_bindir}/db2x_texixml
%{_bindir}/db2x_xsltproc
%{_bindir}/docbook2x-man
%{_bindir}/docbook2x-texi
%{_bindir}/sgml2xml-isoent
%{_bindir}/utf8trans
%{_docdir}/docbook2X
%{_datadir}/docbook2X
%{_mandir}/man1/*
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
# to avoid clashing with docbook2* from docbook-utils
%configure --program-transform-name='s/^docbook2/docbook2x-/'
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12455 |21mr|docbook-dtds-1.0-77
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global openjadever 1.3.3
%global version_list "{3,4}.{0,1}-sgml 4.1.2-xml 4.{2,3,4,5}-{sgml,xml} 4.{2,3,4,5}-rng 4.{2,3,4,5}-xsd"
%global catalog_list "{3,4}.{0,1}-sgml 4.1.2-xml 4.{2,3,4,5}-{sgml,xml}"
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}

Name:		docbook-dtds
Version:	1.0
Release:	77
Group:		Publishing

Summary:	SGML and XML document type definitions for DocBook

License:	Copyright only
URL:		http://www.oasis-open.org/docbook/

Obsoletes:	docbook-dtd30-sgml < %{EVRD}
Obsoletes:	docbook-dtd31-sgml < %{EVRD}
Obsoletes:	docbook-dtd40-sgml < %{EVRD}
Obsoletes:	docbook-dtd41-sgml < %{EVRD}
Obsoletes:	docbook-dtd412-xml < %{EVRD}
Provides:	docbook-dtd-xml = %{EVRD}
Provides:	docbook-dtd-sgml = %{EVRD}
Provides:	docbook-dtd30-sgml = %{EVRD}
Provides:	docbook-dtd31-sgml = %{EVRD}
Provides:	docbook-dtd40-sgml = %{EVRD}
Provides:	docbook-dtd41-sgml = %{EVRD}
Provides:	docbook-dtd412-xml = %{EVRD}
Provides:	docbook-dtd42-sgml = %{EVRD}
Provides:	docbook-dtd42-xml = %{EVRD}
Provides:	docbook-dtd43-sgml = %{EVRD}
Provides:	docbook-dtd43-xml = %{EVRD}
Provides:	docbook-dtd44-sgml = %{EVRD}
Provides:	docbook-dtd44-xml = %{EVRD}
Provides:	docbook-dtd45-sgml = %{EVRD}
Provides:	docbook-dtd45-xml = %{EVRD}

Requires(post): /usr/bin/xmlcatalog
Requires(postun): /usr/bin/xmlcatalog
Requires(post): %{__chmod}
Requires(post): sed
Requires(postun): sed
Requires: sgml-common
Requires: xml-common
Requires: docbook-style-dsssl

BuildArch: noarch
Source0:	http://www.oasis-open.org/docbook/sgml/3.0/docbk30.zip
Source1:	http://www.oasis-open.org/docbook/sgml/3.1/docbk31.zip
Source2:	http://www.oasis-open.org/docbook/sgml/4.0/docbk40.zip
Source3:	http://www.oasis-open.org/docbook/sgml/4.1/docbk41.zip
Source4:	http://www.oasis-open.org/docbook/xml/4.1.2/docbkx412.zip
Source5:	http://www.oasis-open.org/docbook/sgml/4.2/docbook-4.2.zip
Source6:	http://www.oasis-open.org/docbook/xml/4.2/docbook-xml-4.2.zip
Source7:	http://www.docbook.org/sgml/4.3/docbook-4.3.zip
Source8:	http://www.docbook.org/xml/4.3/docbook-xml-4.3.zip
Source9:	http://www.docbook.org/sgml/4.4/docbook-4.4.zip
Source10:	http://www.docbook.org/xml/4.4/docbook-xml-4.4.zip
Source11:	http://www.docbook.org/sgml/4.5/docbook-4.5.zip
Source12:	http://www.docbook.org/xml/4.5/docbook-xml-4.5.zip
Source13:	http://www.docbook.org/rng/4.2/docbook-rng-4.2.zip
Source14:	http://www.docbook.org/rng/4.3/docbook-rng-4.3.zip
Source15:	http://www.docbook.org/rng/4.4/docbook-rng-4.4.zip
#compressed from http://www.docbook.org/rng/4.5/ upstream archive unavailable
Source16:	docbook-rng-4.5.zip
Source17:	http://www.docbook.org/xsd/4.2/docbook-xsd-4.2.zip
Source18:	http://www.docbook.org/xsd/4.3/docbook-xsd-4.3.zip
Source19:	http://www.docbook.org/xsd/4.4/docbook-xsd-4.4.zip
#compressed from http://www.docbook.org/xsd/4.5/ upstream archive unavailable
Source20:	docbook-xsd-4.5.zip
#fix old catalog files
Patch0:		docbook-dtd30-sgml-1.0.catalog.patch
Patch1:		docbook-dtd31-sgml-1.0.catalog.patch
Patch2:		docbook-dtd40-sgml-1.0.catalog.patch
Patch3:		docbook-dtd41-sgml-1.0.catalog.patch
Patch4:		docbook-dtd42-sgml-1.0.catalog.patch
#fix euro sign in 4.2 dtds
Patch5:		docbook-4.2-euro.patch
#Fix ISO entities in 4.3/4.4/4.5 SGML
Patch6:		docbook-dtds-ents.patch
#Use system rewrite for web URL's in sgml catalogs to prevent reading from the network(#478680)
Patch7:		docbook-sgml-systemrewrite.patch
#use XML at the end of public identificators of XML 4.1.2 ISO entities
Patch8:		docbook-dtd412-entities.patch

BuildRequires:	unzip

%description
The DocBook Document Type Definition (DTD) describes the syntax of
technical documentation texts (articles, books and manual pages).
This syntax is XML-compliant and is developed by the OASIS consortium.
This package contains SGML and XML versions of the DocBook DTD.


%prep
%setup -c -T
eval mkdir %{version_list}
# DocBook V3.0
cd 3.0-sgml
unzip %{SOURCE0}
%patch0 -p0 -b docbook.cat
cd ..

# DocBook V3.1
cd 3.1-sgml
unzip %{SOURCE1}
%patch1 -p0 -b docbook.cat
cd ..

# DocBook V4.0
cd 4.0-sgml
unzip %{SOURCE2}
%patch2 -p0 -b docbook.cat
cd ..

# DocBook V4.1
cd 4.1-sgml
unzip %{SOURCE3}
%patch3 -p0 -b docbook.cat
cd ..

# DocBook XML V4.1.2
cd 4.1.2-xml
unzip %{SOURCE4}
cd ..

# DocBook V4.2
cd 4.2-sgml
unzip %{SOURCE5}
%patch4 -p0 -b docbook.cat
cd ..

# DocBook XML V4.2
cd 4.2-xml
unzip %{SOURCE6}
cd ..

# DocBook V4.3
cd 4.3-sgml
unzip %{SOURCE7}
cd ..

# DocBook XML V4.3
cd 4.3-xml
unzip %{SOURCE8}
cd ..

# DocBook V4.4
cd 4.4-sgml
unzip %{SOURCE9}
cd ..

# DocBook XML V4.4
cd 4.4-xml
unzip %{SOURCE10}
cd ..

# DocBook v4.5
cd 4.5-sgml
unzip %{SOURCE11}
cd ..

# DocBook XML v4.5
cd 4.5-xml
unzip %{SOURCE12}
cd ..

# Docbook RNG v4.2
cd 4.2-rng
unzip %{SOURCE13}
cd ..

# Docbook RNG v4.3
cd 4.3-rng
unzip %{SOURCE14}
cd ..

# Docbook RNG v4.4
cd 4.4-rng
unzip %{SOURCE15}
cd ..

# Docbook RNG v4.5
cd 4.5-rng
unzip %{SOURCE16}
cd ..

# Docbook XSD v4.2
cd 4.2-xsd
unzip %{SOURCE17}
cd ..

# Docbook XSD v4.3
cd 4.3-xsd
unzip %{SOURCE18}
cd ..

# Docbook XSD v4.4
cd 4.4-xsd
unzip %{SOURCE19}
cd ..

# Docbook XSD v4.5
cd 4.5-xsd
unzip %{SOURCE20}
cd ..

# Fix &euro; in SGML.
%patch5 -p1

# Fix ISO entities in 4.3/4.4/4.5 SGML
%patch6 -p1

# Rewrite SYSTEM to use local catalog instead web ones (#478680)
%patch7 -p1

# Add XML to the end of public identificators of 4.1.2 XML entities
%patch8 -p1

# Increase NAMELEN (bug #36058, bug #159382).
sed -e's,\(NAMELEN\s\+\)44\(\s\*\)\?,\1256,' -i.namelen */docbook.dcl

# fix of \r\n issue from rpmlint
sed -i 's/\r//' */*.txt


if [ `id -u` -eq 0 ]; then
  chown -R root:root .
  chmod -R a+rX,g-w,o-w .
fi


%build


%install
# Symlinks
mkdir -p $RPM_BUILD_ROOT/etc/sgml
for fmt in sgml xml; do
  ln -s $fmt-docbook-4.5.cat \
     $RPM_BUILD_ROOT/etc/sgml/$fmt-docbook.cat
done

eval set %{version_list}
for dir
do
  cd $dir
  fmt=${dir#*-} ver=${dir%%-*}
  case $fmt in
    sgml)   DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver ;;
    xml)    DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver ;;
    rng)    DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-$ver ;;
    xsd)    DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-$ver ;;
  esac
  case $fmt in
    sgml)   mkdir -p $DESTDIR ; install *.dcl $DESTDIR ;;
    xml)    mkdir -p $DESTDIR/ent ; install ent/* $DESTDIR/ent ;;
    rng)    mkdir -p $DESTDIR ; install *.r* $DESTDIR ;;
    xsd)    mkdir -p $DESTDIR ; install *.xsd $DESTDIR;;
  esac
  cd ..
done

eval set %{catalog_list}
for dir
do
  cd $dir
  fmt=${dir#*-} ver=${dir%%-*}
  DESTDIR=$RPM_BUILD_ROOT/usr/share/sgml/docbook/$fmt-dtd-$ver
  install *.dtd *.mod $DESTDIR
  install docbook.cat $DESTDIR/catalog
  cd ..
  # File for %%ghost
  touch $RPM_BUILD_ROOT/etc/sgml/$fmt-docbook-$ver.cat
done

#workaround the missing support for --parents hack in rpm 4.11+
mkdir -p $RPM_BUILD_ROOT%{_pkgdocdir}
for i in */*.txt */ChangeLog */README
do
  cp -pr --parents $i $RPM_BUILD_ROOT%{_pkgdocdir}
done


%files
#in upstream tarballs there is a lot of files with 0755 permissions
#but they don't need to be, 0644 is enough for every file in tarball
%{_pkgdocdir}
/usr/share/sgml/docbook/*ml-dtd-*
/usr/share/sgml/docbook/rng-*
/usr/share/sgml/docbook/xsd-*
%config(noreplace) /etc/sgml/*ml-docbook.cat
%ghost %config(noreplace) /etc/sgml/*ml-docbook-*.cat

%post
catcmd='/usr/bin/xmlcatalog --noout'
xmlcatalog=/usr/share/sgml/docbook/xmlcatalog

## Clean up pre-docbook-dtds mess caused by broken trigger.
for v in 3.0 3.1 4.0 4.1 4.2
do
  if [ -f /etc/sgml/sgml-docbook-$v.cat ]
  then
    $catcmd --sgml --del /etc/sgml/sgml-docbook-$v.cat \
      /usr/share/sgml/openjade-1.3.3/catalog 2>/dev/null
  fi
done

# The STYLESHEETS/catalog command is for the case in which the style sheets
# were installed after another DTD but before this DTD
for STYLESHEETS in /usr/share/sgml/docbook/dsssl-stylesheets-*; do : ; done
case $STYLESHEETS in
  *-"*") STYLESHEETS= ;;
esac
eval set %{catalog_list}
for dir
do
  fmt=${dir#*-} ver=${dir%%-*}
  sgmldir=/usr/share/sgml/docbook/$fmt-dtd-$ver
  ## SGML catalog
  # Update the centralized catalog corresponding to this version of the DTD
  for cat_dir in /usr/share/sgml/sgml-iso-entities-8879.1986 $sgmldir $STYLESHEETS; do
    $catcmd --sgml --add /etc/sgml/$fmt-docbook-$ver.cat $cat_dir/catalog
  done
  ## XML catalog
  if [ $fmt = xml -a -w $xmlcatalog ]; then
    while read f desc; do
      case $ver in 4.[45]) f=${f/-/} ;; esac
      $catcmd --add public "$desc" $sgmldir/$f $xmlcatalog
    done <<ENDENT
      ent/iso-pub.ent	ISO 8879:1986//ENTITIES Publishing//EN
      ent/iso-grk1.ent	ISO 8879:1986//ENTITIES Greek Letters//EN
      dbpoolx.mod	-//OASIS//ELEMENTS DocBook XML Information Pool V$ver//EN
      ent/iso-box.ent	ISO 8879:1986//ENTITIES Box and Line Drawing//EN
      docbookx.dtd	-//OASIS//DTD DocBook XML V$ver//EN
      ent/iso-grk3.ent	ISO 8879:1986//ENTITIES Greek Symbols//EN
      ent/iso-amsn.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Negated Relations//EN
      ent/iso-num.ent	ISO 8879:1986//ENTITIES Numeric and Special Graphic//EN
      dbcentx.mod	-//OASIS//ENTITIES DocBook XML Character Entities V$ver//EN
      ent/iso-grk4.ent	ISO 8879:1986//ENTITIES Alternative Greek Symbols//EN
      dbnotnx.mod	-//OASIS//ENTITIES DocBook XML Notations V$ver//EN
      ent/iso-dia.ent	ISO 8879:1986//ENTITIES Diacritical Marks//EN
      ent/iso-grk2.ent	ISO 8879:1986//ENTITIES Monotoniko Greek//EN
      dbgenent.mod	-//OASIS//ENTITIES DocBook XML Additional General Entities V$ver//EN
      dbhierx.mod	-//OASIS//ELEMENTS DocBook XML Document Hierarchy V$ver//EN
      ent/iso-amsa.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Arrow Relations//EN
      ent/iso-amso.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Ordinary//EN
      ent/iso-cyr1.ent	ISO 8879:1986//ENTITIES Russian Cyrillic//EN
      ent/iso-tech.ent	ISO 8879:1986//ENTITIES General Technical//EN
      ent/iso-amsc.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Delimiters//EN
      soextblx.dtd	-//OASIS//DTD XML Exchange Table Model 19990315//EN
      calstblx.dtd	-//OASIS//DTD DocBook XML CALS Table Model V$ver//EN
      ent/iso-lat1.ent	ISO 8879:1986//ENTITIES Added Latin 1//EN
      ent/iso-amsb.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Binary Operators//EN
      ent/iso-lat2.ent	ISO 8879:1986//ENTITIES Added Latin 2//EN
      ent/iso-amsr.ent	ISO 8879:1986//ENTITIES Added Math Symbols: Relations//EN
      ent/iso-cyr2.ent	ISO 8879:1986//ENTITIES Non-Russian Cyrillic//EN
ENDENT
    for f in System URI; do
      $catcmd --add rewrite$f "http://www.oasis-open.org/docbook/xml/$ver" \
	$sgmldir $xmlcatalog
    done
  fi
done

# Historic versions of this scriptlet contained the following comment:
# <quote>
# Fix up SGML super catalog so that there isn't an XML DTD before an
# SGML one.  We need to do this (*sigh*) because xmlcatalog messes up
# the order of the lines, and SGML tools don't like to see XML things
# they aren't expecting.
# </quote>
# But the code that followed just found the first XML DTD and the first
# SGML DTD, swappinmg these two lines if the XML one preceded.
# But that only ensures that there is an SGML DTD before all XML ones.
# No one complained, so either this was enough, or the buggy SGML tools
# are long dead, or their users do not use bugzilla.
# Anyway, the following code, introduced in 1.0-46, does better: it ensures
# that all XML DTDs are after all SGML ones, by moving them to the end.
sed -ni '
  /xml-docbook/ H
  /xml-docbook/ !p
  $ {
          g
          s/^\n//p
  }
  ' /etc/sgml/catalog

# Finally, make sure everything in /etc/sgml is readable!
%{__chmod} a+r /etc/sgml/*

%postun
# remove entries only on removal of package
if [ "$1" = 0 ]; then
  catcmd='/usr/bin/xmlcatalog --noout'
  xmlcatalog=/usr/share/sgml/docbook/xmlcatalog
  entities="
ent/iso-pub.ent
ent/iso-grk1.ent
dbpoolx.mod
ent/iso-box.ent
docbookx.dtd
ent/iso-grk3.ent
ent/iso-amsn.ent
ent/iso-num.ent
dbcentx.mod
ent/iso-grk4.ent
dbnotnx.mod
ent/iso-dia.ent
ent/iso-grk2.ent
dbgenent.mod
dbhierx.mod
ent/iso-amsa.ent
ent/iso-amso.ent
ent/iso-cyr1.ent
ent/iso-tech.ent
ent/iso-amsc.ent
soextblx.dtd
calstblx.dtd
ent/iso-lat1.ent
ent/iso-amsb.ent
ent/iso-lat2.ent
ent/iso-amsr.ent
ent/iso-cyr2.ent
  "
  eval set %{catalog_list}
  for dir
  do
    fmt=${dir#*-} ver=${dir%%-*}
    sgmldir=/usr/share/sgml/docbook/$fmt-dtd-$ver
    ## SGML catalog
    # Update the centralized catalog corresponding to this version of the DTD
    $catcmd --sgml --del /etc/sgml/catalog /etc/sgml/$fmt-docbook-$ver.cat >/dev/null
    rm -f /etc/sgml/$fmt-docbook-$ver.cat
    ## XML catalog
    if [ $fmt = xml -a -w $xmlcatalog ]; then
      for f in $entities; do
        case $ver in 4.[45]) f=${f/-/} ;; esac
        $catcmd --del $sgmldir/$f $xmlcatalog >/dev/null
      done
      $catcmd --del $sgmldir $xmlcatalog >/dev/null
    fi
  done

  # See the comment attached to this command in the %%post scriptlet.
  sed -ni '
  /xml-docbook/ H
  /xml-docbook/ !p
  $ {
          g
          s/^\n//p
  }
    ' /etc/sgml/catalog
fi

%triggerin -- openjade >= %{openjadever}
eval set %{catalog_list}
for dir
do
  fmt=${dir#*-} ver=${dir%%-*}
  /usr/bin/xmlcatalog --sgml --noout --add /etc/sgml/$fmt-docbook-$ver.cat \
    /usr/share/sgml/openjade-%{openjadever}/catalog
done

%triggerun -- openjade >= %{openjadever}
[ $2 = 0 ] || exit 0
eval set %{catalog_list}
for dir
do
  fmt=${dir#*-} ver=${dir%%-*}
  /usr/bin/xmlcatalog --sgml --noout --del /etc/sgml/$fmt-docbook-$ver.cat \
    /usr/share/sgml/openjade-%{openjadever}/catalog
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12456 |21mr|docbook-style-dsssl-1.79-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name docbook-style-dsssl
%define version 1.79
%define release 18

name:		%{name}
version:	%{version}
release:	%{release}
Group:		Publishing

Summary:	Norman Walsh's modular stylesheets for DocBook

License:	Artistic style
URL:		http://sourceforge.net/projects/docbook/

Requires:	sgml-common >= 0.2
Requires:	jade >= 1.2.1


BuildArch:	noarch
Source0:	http://prdownloads.sourceforge.net/docbook/docbook-dsssl-%{version}.tar.bz2
Patch0:		docbook-dsssl-1.78-DTDDECL.patch

%define sgmlbase %{_datadir}/sgml

%description
These DSSSL stylesheets allow you to convert any DocBook document to another
printed (for example, RTF or PostScript) or online (for example, HTML) format.
They are highly customizable.


%prep
%setup -n docbook-dsssl-%{version} -q
%setup -T -D -n docbook-dsssl-%{version}
%patch0 -p1

%build

%install
DESTDIR=$RPM_BUILD_ROOT
mkdir -p $DESTDIR%{_bindir}
mkdir -p $DESTDIR%{sgmlbase}/docbook/dsssl-stylesheets-%{version}/

cd $RPM_BUILD_DIR/docbook-dsssl-%{version}

install bin/collateindex.pl $DESTDIR%{_bindir}
cp -r contrib catalog dtds VERSION olink common html frames lib print images $DESTDIR%{sgmlbase}/docbook/dsssl-stylesheets-%{version}/

rm -f $DESTDIR%{sgmlbase}/docbook/dsssl-stylesheets
ln -sf dsssl-stylesheets-%{version} $DESTDIR%{sgmlbase}/docbook/dsssl-stylesheets

cd ..


%clean
DESTDIR=$RPM_BUILD_ROOT
rm -rf $DESTDIR


%Files
%defattr (0644,root,root,0755)
%doc BUGS README RELEASE-NOTES.* VERSION
%doc ChangeLog WhatsNew
%attr(-,root,root) %{_bindir}/collateindex.pl
%dir %{sgmlbase}/docbook/dsssl-stylesheets-%{version}
%{sgmlbase}/docbook/dsssl-stylesheets-%{version}/*
%{sgmlbase}/docbook/dsssl-stylesheets

%post
# remove possible old references to 
# %{sgmlbase}/docbook/dsssl-stylesheets-%{version}/catalog
rm -f %{_sysconfdir}/sgml/sgml-docbook-\*.cat

# fix old broken stuff
if [ -f %{_sysconfdir}/sgml/xml-docbook-\*.cat ]; then
sed -e '\|CATALOG "%{_sysconfdir}/sgml/xml-docbook-\*.cat"|D' %{_sysconfdir}/sgml/catalog > \
	%{_sysconfdir}/sgml/catalog.bak 
    mv -f %{_sysconfdir}/sgml/catalog.bak %{_sysconfdir}/sgml/catalog
    rm -f %{_sysconfdir}/sgml/xml-docbook-\*.cat
fi

for centralized in %{_sysconfdir}/sgml/sgml-docbook-*.cat; do
   if [ "$centralized" = "%{_sysconfdir}/sgml/sgml-docbook-*.cat" ]; then break; fi
   sed -e "/dsssl-stylesheets-[0-9]/D" $centralized > \
	 $centralized.bak 
   mv -f $centralized.bak $centralized
done 

for centralized in %{_sysconfdir}/sgml/{sgml,xml}-docbook-*.cat; do
  if [ "$centralized" = "%{_sysconfdir}/sgml/{sgml,xml}-docbook-*.cat" ]; then break; fi
  if [ "$centralized" = "%{_sysconfdir}/sgml/xml-docbook-*.cat" ]; then continue; fi
  if [ "$centralized" = "%{_sysconfdir}/sgml/sgml-docbook-*.cat" ]; then continue; fi
  if [ -f "$centralized" ]; then
     %{_bindir}/xmlcatalog --sgml --noout --add $centralized \
	 %{sgmlbase}/docbook/dsssl-stylesheets/catalog
   fi
done

%postun 
# Do not remove if upgrade
if [ "$1" = "0" -a -x %{_bindir}/xmlcatalog ]; then
     for centralized in %{_sysconfdir}/sgml/{sgml,xml}-docbook-*.cat; do
      if  [ "$centralized" = "%{_sysconfdir}/sgml/{sgml,xml}-docbook-*.cat" ]; then break; fi
      if  [ "$centralized" = "%{_sysconfdir}/sgml/xml-docbook-*.cat" ]; then continue; fi
      if  [ "$centralized" = "%{_sysconfdir}/sgml/sgml-docbook-*.cat" ]; then continue; fi

	if [ -w $centralized ]; then
	  %{_bindir}/xmlcatalog --sgml --noout --del $centralized \
	     %{sgmlbase}/docbook/dsssl-stylesheets/catalog
	fi
     done 
    
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12457 |21mr|docbook-style-dsssl-doc-1.79-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name docbook-style-dsssl-doc
%define version 1.79
%define release 15

Name:		%{name}
Version:	%{version}
Release:	%{release}
Group:		Books/Computer books
Summary:	Documentation for DocBook dssl stylesheets
License:	Artistic like
URL:		http://sourceforge.net/projects/docbook/
BuildArch:	noarch
Source0:	http://prdownloads.sourceforge.net/docbook/docbook-dsssl-doc-%{version}.tar.bz2

%description
This package contains the documentation for these stylesheets:
structure, customization, etc.

%prep
%setup -n docbook-dsssl-%{version} -q

%files
%defattr (-,root,root)
%doc doc docsrc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12458 |21mr|docbook-style-xsl-1.79.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Norman Walsh's modular stylesheets for DocBook
Name:		docbook-style-xsl
Version:	1.79.2
Release:	1
Group:		Publishing
License:	Copyright only
Url:		http://sourceforge.net/projects/docbook
Source0:	https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-nons-%{version}.tar.bz2
Source1:	https://github.com/docbook/xslt10-stylesheets/releases/download/release%2F{%version}/docbook-xsl-doc-%{version}.tar.bz2
Source2:	%{name}.Makefile
#Avoid proportional-column-width for passivetex (bug #176766).
Patch1:		docbook-xsl-pagesetup.patch
#Hard-code the margin-left work around to expect passivetex (bug #113456).
Patch2:		docbook-xsl-marginleft.patch
#fix of #161619 - adjustColumnWidths now available
Patch3:		docbook-xsl-newmethods.patch
#change a few non-constant expressions to constant - needed for passivetex(#366441)
Patch4:		docbook-xsl-non-constant-expressions.patch
#added fixes for passivetex extension and list-item-body(#161371)
Patch5:		docbook-xsl-list-item-body.patch
#workaround missing mandir section problem (#727251)
Patch6:		docbook-xsl-mandir.patch
#Non-recursive string.subst that doesn't kill smb.conf.5 generation
Patch7:		docbook-style-xsl-non-recursive-string-subst.patch
Provides:	docbook-xsl = %{version}
Requires:	docbook-dtd-xml
Requires(post,postun): libxml2-utils
Requires(post,postun): xml-common
BuildArch:	noarch

#Requires(pre):	sgml-common

%description
These XSL stylesheets allow to convert any DocBook document to another
printed (for example, RTF or PostScript) or online (for example, HTML) format.
They are highly customizable.

%files
%doc BUGS TODO README VERSION NEWS* COPYING INSTALL
%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
%{_datadir}/sgml/docbook/xsl-stylesheets

%post
CATALOG=%{_sysconfdir}/xml/catalog
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
	"http://cdn.docbook.org/release/xsl-nons/%{version}" \
	"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
	"http://cdn.docbook.org/release/xsl-nons/%{version}" \
	"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
	"http://cdn.docbook.org/release/xsl-nons/current/" \
	"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
	"http://cdn.docbook.org/release/xsl-nons/current/" \
	"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
#keep the old one sourceforge URIs at least temporarily
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
	"http://docbook.sourceforge.net/release/xsl/current" \
	"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
	"http://docbook.sourceforge.net/release/xsl/current" \
	"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG

%postun
# do not remove on upgrade
if [ "$1" = 0 ]; then
	CATALOG=%{_sysconfdir}/xml/catalog
	%{_bindir}/xmlcatalog --noout --del \
		"file://%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}" $CATALOG
fi

#------------------------------------------------------------------------------

%package doc
Summary:	Documentation for DocBook stylesheets
Group:		Documentation

%description doc
This package contains the documentation for these stylesheets:
structure, customization, etc.

%files doc
%doc doc docsrc

#------------------------------------------------------------------------------

%prep
%setup -c -T -n docbook-xsl-%{version}
tar jxf %{SOURCE0}
mv docbook-xsl-nons-%{version}/* .
pushd ..
tar jxf %{SOURCE1}
popd

%patch1 -p1 -b .pagesetup
%patch2 -p1 -b .marginleft
%patch3 -p1 -b .newmethods
%patch4 -p1 -b .nonconstant
%patch5 -p1 -b .listitembody
%patch6 -p1 -b .mandir
%patch7 -p2 -b .non-recursive-subst

cp -p %{SOURCE2} Makefile

# fix of non UTF-8 files rpmlint warnings
for fhtml in $(find ./doc -name '*.html' -type f)
do
	iconv -f ISO-8859-1 -t UTF-8 "$fhtml" -o "$fhtml".tmp
	mv -f "$fhtml".tmp "$fhtml"
	sed -i 's/charset=ISO-8859-1/charset=UTF-8/' "$fhtml"
done

for f in $(find -name "*'*"); 
do
	mv -v "$f" $(echo "$f" | tr -d "'")
done

%build

%install
make install \
	BINDIR=%{buildroot}{_bindir} \
	DESTDIR=%{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}
cp -a VERSION.xsl \
	%{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets-%{version}/VERSION.xsl
ln -sf xsl-stylesheets-%{version} \
	%{buildroot}%{_datadir}/sgml/docbook/xsl-stylesheets

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12459 |21mr|docbook-style-xsl-ns-1.79.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Name docbook-style-xsl-ns

Name:		%{Name}
Version:	1.79.1
Release:	4
Group:		Publishing
Summary:	Norman Walsh's modular stylesheets for DocBook5
License:	Artistic style
URL:		http://sourceforge.net/projects/docbook
Provides:	docbook-xsl-ns = %{version}
Requires:	docbook-dtd-xml
Requires(pre):	sgml-common >= 0.6.3-2mdk
Source0:	https://sourceforge.net/projects/docbook/files/docbook-xsl-ns/1.79.1/docbook-xsl-ns-%{version}.tar.bz2
BuildArch:	noarch
%rename		docbook5-style-xsl

%define sgmlbase %{_datadir}/sgml/

%Description
These XSL stylesheets allow to convert any DocBook5 document to another
printed (for example, RTF or PostScript) or online (for example, HTML) format.
They are highly customizable.
Note that this is an experimental release for testing purposes only: it makes
the stylesheets namespace aware for the first time for DocBook 5 (RNG based).
For production use please install docbook-style-xsl instead.

%prep
%autosetup -n docbook-xsl-ns-%{version} -p1

%build
# index jar files to please rpmlint
# jar -i extensions/*.jar

%install
TARGET=%{sgmlbase}/docbook/xsl-ns-stylesheets-%{version}
mkdir -p %{buildroot}$TARGET
# Camille 2007-01-23: "slides website roundtrip" XSL not available in this DB5 release
cp -a VERSION common eclipse extensions fo highlighting html htmlhelp images javahelp lib template xhtml manpages profiling params tools %{buildroot}$TARGET
ln -s VERSION %{buildroot}$TARGET/VERSION.xsl

ln -s xsl-ns-stylesheets-%{version} \
%{buildroot}/%{sgmlbase}/docbook/xsl-ns-stylesheets

%post
CATALOG=/etc/xml/catalog
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
	"http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
	"file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
	"http://docbook.sourceforge.net/release/xsl-ns/%{version}" \
	"file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteSystem" \
	"http://docbook.sourceforge.net/release/xsl-ns/current" \
	"file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
	"http://docbook.sourceforge.net/release/xsl-ns/current" \
	"file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG

%postun
# do not remove on upgrade
CATALOG=/etc/xml/catalog
if [ "$1" = "0" -a -x %{_bindir}/xmlcatalog -a -f $CATALOG ]; then
  %{_bindir}/xmlcatalog --noout --del \
	"file:///usr/share/sgml/docbook/xsl-ns-stylesheets-%{version}" $CATALOG
fi

%files
%doc BUGS TODO README VERSION NEWS* COPYING RELEASE* INSTALL
%{sgmlbase}/docbook/xsl-ns-stylesheets-%{version}
%{sgmlbase}/docbook/xsl-ns-stylesheets

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12460 |21mr|docbook-to-man-2.0.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define name		docbook-to-man
%define deb_release	26
%define version		2.0.0
%define release     12

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	Converter from DocBook SGML into roff man macros
License:	MIT
Group:		Publishing
URL:		http://www.oasis-open.org/docbook/tools/dtm/
Source0:	http://ftp.debian.org/debian/pool/main/d/docbook-to-man/%{name}_%{version}.orig.tar.gz
Patch0:		%{name}_%{version}-%{deb_release}.diff.gz
Patch10:	%{name}-debian.patch
Patch11:	%{name}-opt.patch
Patch12:	%{name}-PLD.patch
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	OpenSP
Requires:	docbook-dtd41-sgml
Requires:	OpenSP

%description
docbook-to-man is a batch converter that transforms UNIX-style
manpages from the DocBook SGML format into nroff/troff man macros.

This is not the original version by Fred Dalrymple, but one with the
modifications by David Bolen with Debian changes.

%prep
%setup -q -n %{name}-%{version}.orig
%patch0
%patch10 -p1
%{__patch} -p1 -s < debian/patches/01-conglomeration.dpatch
%patch11 -p1
%patch12 -p1

%build
%{__make} \
	CC="%{__cc}" \
	OPT="%{optflags}" \
	ROOT=%{_prefix}

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/sgml,%{_mandir}/man{1,5}}

%{__make} install \
	ROOT=$RPM_BUILD_ROOT%{_prefix}

install Doc/{docbook-to-man.1,instant.1} $RPM_BUILD_ROOT%{_mandir}/man1
install Doc/transpec.1 $RPM_BUILD_ROOT%{_mandir}/man5/transpec.5

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(644,root,root,755)
%doc README README.ANS
%attr(755,root,root) %{_bindir}/docbook-to-man
%attr(755,root,root) %{_bindir}/instant
%{_datadir}/sgml/transpec
%{_mandir}/man1/docbook-to-man.1*
%{_mandir}/man1/instant.1*
%{_mandir}/man5/transpec.5*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12461 |21mr|docbook-utils-0.6.14-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Shell scripts to manage DocBook documents
Name:		docbook-utils
Version:	0.6.14
Release:	23
License:	GPLv2+
Group:		Publishing
Url:		ftp://sources.redhat.com/pub/docbook-tools/new-trials/
Source0:	ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tar.bz2
Source1:	db2html
Source2:	docbook2man-spec.pl
Patch0:		docbook-utils-spaces.patch
Patch1:		docbook-utils-2ndspaces.patch
Patch2:		docbook-utils-w3mtxtconvert.patch
Patch3:		docbook-utils-grepnocolors.patch
Patch4:		docbook-utils-sgmlinclude.patch
Patch5:		docbook-utils-rtfmanpage.patch
Patch6:		docbook-utils-papersize.patch
Patch7:		docbook-utils-nofinalecho.patch
Patch8:		docbook-utils-newgrep.patch
BuildRequires:	docbook-dtd31-sgml
BuildRequires:	docbook-style-dsssl >= 1.72
Requires:	docbook-style-dsssl >= 1.72
Requires:	gawk
Requires:	grep
Requires:	perl-SGMLSpm >= 1.03ii
Requires:	which
Obsoletes:	sgml-tools < %{EVRD}
Provides:	sgml-tools = %{EVRD}
BuildArch:	noarch

%description
This package contains scripts are for easy conversion from DocBook
files to other formats (for example, HTML, RTF, and PostScript), and
for comparing SGML files.

%files
%doc README COPYING TODO doc/HTML/*.html
%{_bindir}/jw
%{_bindir}/docbook2html
%{_bindir}/docbook2man
%{_bindir}/docbook2rtf
%{_bindir}/docbook2tex
%{_bindir}/docbook2texi
%{_bindir}/docbook2txt
%attr(0755,root,root) %{_bindir}/db2html
%{_bindir}/db2rtf
%{_bindir}/db2man
%{_bindir}/sgmldiff
%{_datadir}/sgml/docbook/utils-%{version}
%{_mandir}/*/db2dvi.*
%{_mandir}/*/db2html.*
%{_mandir}/*/db2man.*
%{_mandir}/*/db2ps.*
%{_mandir}/*/db2rtf.*
%{_mandir}/*/docbook2html.*
%{_mandir}/*/docbook2rtf.*
%{_mandir}/*/docbook2man.*
%{_mandir}/*/docbook2tex.*
%{_mandir}/*/docbook2texi.*
%{_mandir}/*/docbook2txt.*
%{_mandir}/*/jw.*
%{_mandir}/*/sgmldiff.*
%{_mandir}/*/*-spec.*

#----------------------------------------------------------------------------

%package pdf
Summary:	A script for converting DocBook documents to PDF format
Group:		Publishing
Url:		ftp://sources.redhat.com/pub/docbook-tools/new-trials/
Requires:	%{name} = %{EVRD}
Requires:	texlive
Requires:	tetex-dvips
Obsoletes:	stylesheets-db2pdf < %{EVRD}
Provides:	stylesheets-db2pdf = %{EVRD}
Conflicts:	%{name} < 0.6.14-13

%description pdf
This package contains a script for converting DocBook documents to
PDF format.

%files pdf
%{_bindir}/docbook2pdf
%{_bindir}/docbook2dvi
%{_bindir}/docbook2ps
%{_bindir}/db2dvi
%{_bindir}/db2pdf
%{_bindir}/db2ps
%{_mandir}/*/db2pdf.*
%{_mandir}/*/docbook2pdf.*
%{_mandir}/*/docbook2dvi.*
%{_mandir}/*/docbook2ps.*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
mkdir -p %{buildroot}%{_mandir}/man{1,7}
for sec in 1 7; do cp -af doc/man/*.$sec %{buildroot}%{_mandir}/man$sec; done

%makeinstall_std

for util in dvi html pdf ps rtf man
do
        ln -s docbook2$util %{buildroot}%{_bindir}/db2$util
        ln -s jw.1 %{buildroot}%{_mandir}/man1/db2$util.1
done
ln -s jw.1 %{buildroot}%{_mandir}/man1/docbook2txt.1

# db2html is not just a symlink, as it has to create the output directory
rm -f %{buildroot}%{_bindir}/db2html
install -c -m 775 %{SOURCE1} %{buildroot}%{_bindir}/db2html
install -p -m 755 %{SOURCE2} %{buildroot}%{_datadir}/sgml/docbook/utils-%{version}/helpers/docbook2man-spec.pl

# clean install html files
rm -rf %{buildroot}%{_prefix}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12462 |21mr|docker-27.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# modifying the dockerinit binary breaks the SHA1 sum check by docker

%global buildx_version 0.17.1

%global project docker
%global repo %{project}
%global import_path github.com/%{project}/%{repo}

#debuginfo not supported with Go
%global gopath  %{_libdir}/golang
%define gosrc %{gopath}/src/pkg/%{import_path}

%global commit      41ca978a0a5400cc24b274137efa9f25517fcc0b
%global shortcommit %(c=%{commit}; echo ${c:0:7})

%global commit_tini 0b44d3665869e46ccbac7414241b8256d6234dc4
%global shortcommit_tini %(echo %{commit_tini} | head -c6)

Summary:	Automates deployment of containerized applications
Name:		docker
Version:	27.3.1
%global moby_version %{version}
Release:	1
License:	ASL 2.0
Epoch:		1
Group:		System/Configuration/Other
URL:		http://www.docker.com
Source0:	https://github.com/moby/moby/archive/v%{version}/moby-%{version}.tar.gz
Source1:	%{repo}.service
Source2:	%{repo}.sysconfig
Source3:	%{repo}-storage.sysconfig
Source4:	docker.sysusers
Source6:	%{repo}-network.sysconfig
Source7:	%{repo}.socket
Source8:	%{repo}-network-cleanup.sh
Source9:	overlay.conf
# use custom daemon.json
# to prevent degenerative westoid sanctions
Source10:	daemon.json
# tini
Source11:	https://github.com/krallin/tini/archive/%{commit_tini}/tini-%{shortcommit_tini}.tar.gz
# cli
Source12:	https://github.com/docker/cli/archive/v%{version}/cli-%{version}.tar.gz
# docker-buildx
Source13:	https://github.com/docker/buildx/archive/v%{buildx_version}/buildx-%{buildx_version}.tar.gz
# (tpg) taken from https://gist.github.com/goll/bdd6b43c2023f82d15729e9b0067de60
Source14:	nftables-docker.nft
BuildRequires:	gcc
BuildRequires:	glibc-devel
BuildRequires:	glibc-static-devel
BuildRequires:	libltdl-devel
# ensure build uses golang 1.4 or above
BuildRequires:	golang >= 1.7
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	go-md2man
BuildRequires:	btrfs-devel
BuildRequires:	pkgconfig(systemd)
BuildRequires:	systemd
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	cmake
Requires(pre):	systemd
%systemd_requires
# With docker >= 1.11 you now need containerd (and runC or crun as a dep)
Requires:	containerd
Requires:	crun
# need xz to work with ubuntu images
# https://bugzilla.redhat.com/show_bug.cgi?id=1045220
Requires:	xz
Requires:	bridge-utils
Requires(post):	nftables
Requires(postun):	sed
# https://bugzilla.redhat.com/show_bug.cgi?id=1034919
# No longer needed in Fedora because of libcontainer
Provides:	lxc-docker = %{version}
Provides:	docker-swarm = %{EVRD}
# compat with Docker repos for RH
Provides:	docker-ce = %{EVRD}
Recommends:	(%{name}-fish-completion if fish)
Recommends:	(%{name}-zsh-completion if zsh)
Recommends:	(%{name}-vim if vim)

%description
Docker is an open-source engine that automates the deployment of any
application as a lightweight, portable, self-sufficient container that will
run virtually anywhere.

Docker containers can encapsulate any payload, and will run consistently on
and between virtually any server. The same container that a developer builds
and tests on a laptop will run at scale, in production*, on VMs, bare-metal
servers, OpenStack clusters, public instances, or combinations of the above.

%package fish-completion
Summary:	fish completion files for Docker
Requires:	%{repo} = %{EVRD}
Provides:	%{repo}-io-fish-completion = %{EVRD}

%description fish-completion
This package installs %{summary}.

%package unit-test
Summary:	%{summary} - for running unit tests

%description unit-test
%{summary} - for running unit tests.

%package vim
Summary:	vim syntax highlighting files for Docker
Requires:	%{repo} = %{EVRD}
Requires:	vim
Provides:	%{repo}-io-vim = %{EVRD}

%description vim
This package installs %{summary}.

%package zsh-completion
Summary:	zsh completion files for Docker
Requires:	%{repo} = %{EVRD}
Requires:	zsh
Provides:	%{repo}-io-zsh-completion = %{EVRD}

%description zsh-completion
This package installs %{summary}.

%prep
%autosetup -p1 -n moby-%{version}
tar xf %{SOURCE11}
mv tini-%{commit_tini} tini
tar xf %{SOURCE12}
tar xf %{SOURCE13}
mv buildx-%{buildx_version} buildx
find . -name "*~" |xargs rm || :
# Needs to be done after unpacking extra bits, given we may want
# to patch tini -- so no %%autosetup
%autopatch -p1

%build
mkdir -p GO/src/github.com/{docker,krallin}
ln -s $(pwd)/cli-%{version} GO/src/github.com/docker/cli
ln -s $(pwd)/tini GO/src/github.com/krallin/tini
ln -s $(pwd)/buildx GO/src/github.com/docker/buildx
ln -s $(pwd) GO/src/github.com/docker/docker
export DOCKER_GITCOMMIT="%{shortcommit}"
export DOCKER_CLI_EXPERIMENTAL=enabled
export TMP_GOPATH="$(pwd)/GO"
export GOPATH=%{gopath}:"$(pwd)/GO"
export CGO_ENABLED=1

# docker-init
cd tini
    %cmake
    %make_build tini-static
cd ../..

# dockerd
DOCKER_BUILDTAGS='selinux seccomp journald' VERSION=%{moby_version} hack/make.sh dynbinary

# cli
cd cli-%{version}
    make VERSION=%{moby_version} GO_LDFLAGS="-linkmode=external" dynbinary
cd ..

# docker-buildx
cd buildx
    make VERSION=%{buildx_version} REVISION= GO_EXTRA_LDFLAGS="-linkmode=external" build
cd ..

%install
# install binaries
install -d %{buildroot}%{_bindir}
install -p -m 755 cli-%{version}/build/docker-linux-* %{buildroot}%{_bindir}/docker
install -d %{buildroot}%{_sbindir}
install -p -m 755 bundles/dynbinary-daemon/dockerd %{buildroot}%{_sbindir}/dockerd
install -p -m 755 bundles/dynbinary-daemon/docker-proxy %{buildroot}%{_bindir}/docker-proxy
install -p -m 755 tini/build/tini-static %{buildroot}%{_bindir}/docker-init
install -d %{buildroot}%{_libexecdir}/docker/cli-plugins
install -p -m 755 buildx/bin/build/docker-buildx %{buildroot}%{_libexecdir}/docker/cli-plugins/docker-buildx

# Place to store images
install -d %{buildroot}%{_var}/lib/docker

install -d %{buildroot}%{_sysconfdir}/docker
# (tpg) we are using nftables
# (bero) but for reasons yet to be determined, that prevents containers
# from having net access -- allow them to keep using iptables for now
cat > %{buildroot}%{_sysconfdir}/docker/daemon.json << 'EOF'
{
  "iptables": true
}
EOF
install -D -p -m 755 %{SOURCE14} %{buildroot}%{_sysconfdir}/nftables/%{name}.nft

# install bash completion
install -d %{buildroot}%{_sysconfdir}/bash_completion.d
install -p -m 644 cli-%{version}/contrib/completion/bash/docker %{buildroot}%{_sysconfdir}/bash_completion.d/docker.bash

# install zsh completion
install -d %{buildroot}%{_datadir}/zsh/site-functions
install -p -m 644 cli-%{version}/contrib/completion/zsh/_docker %{buildroot}%{_datadir}/zsh/site-functions

# install fish completion
# create, install and own /usr/share/fish/vendor_completions.d until
# upstream fish provides it
install -dp %{buildroot}%{_datadir}/fish/vendor_completions.d
install -p -m 644 cli-%{version}/contrib/completion/fish/%{repo}.fish %{buildroot}%{_datadir}/fish/vendor_completions.d

# install udev rules
install -d %{buildroot}%{_udevrulesdir}
install -p -m 644 contrib/udev/80-docker.rules %{buildroot}%{_udevrulesdir}
# install storage dir
install -d -m 700 %{buildroot}%{_var}/lib/docker
# install systemd/init scripts
install -d %{buildroot}%{_unitdir}
install -p -m 644 %{SOURCE1} %{SOURCE7} %{buildroot}%{_unitdir}

# for additional args
install -d %{buildroot}%{_sysconfdir}/sysconfig/
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{repo}
install -p -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/%{repo}-network
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{repo}-storage

#network cleanup
install -d %{buildroot}%{_sbindir}
install -p -m 755 %{SOURCE8} %{buildroot}%{_sbindir}/docker-network-cleanup

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-docker.preset << EOF
enable docker.socket
EOF

install -d %{buildroot}%{_sysconfdir}/modules-load.d/
install -p -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/modules-load.d/overlay.conf

install -Dpm 644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf
# install config with registry mirror
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/%{name}/daemon.json

#%%check
# This is completely unstable so I deactivate it for now.
#[ ! -w /run/%{repo}.sock ] || {
    #mkdir test_dir
    #pushd test_dir
    #git clone https://github.com/lsm5/docker.git -b fedora-1.10
    #pushd %{repo}
    #make test
    #popd
    #popd
#}

%pre
%sysusers_create_package %{name} %{SOURCE4}

%post
%systemd_post docker
if [ -e %{_sysconfdir}/sysconfig/nftables.conf ] && ! grep -q docker.nft %{_sysconfdir}/sysconfig/nftables.conf; then
    printf '%s\n' 'include "/etc/nftables/docker.nft"' >> %{_sysconfdir}/sysconfig/nftables.conf
fi

%preun
%systemd_preun docker

%postun
%systemd_postun_with_restart docker
if [ $1 == 0 ] && [ -e %{_sysconfdir}/sysconfig/nftables.conf ]; then
    sed -i -e '/docker\.nft/d' %{_sysconfdir}/sysconfig/nftables.conf
fi

%files
%config(noreplace) %{_sysconfdir}/sysconfig/%{repo}
%config(noreplace) %{_sysconfdir}/sysconfig/%{repo}-network
%config(noreplace) %{_sysconfdir}/sysconfig/%{repo}-storage
%{_sysusersdir}/%{name}.conf
%dir %{_sysconfdir}/docker
%config(noreplace) %{_sysconfdir}/docker/daemon.json
%config(noreplace) %{_sysconfdir}/nftables/%{name}.nft
%{_bindir}/docker
%{_bindir}/docker-proxy
%{_bindir}/docker-init
%{_sbindir}/docker-network-cleanup
%{_sbindir}/dockerd
%{_presetdir}/86-docker.preset
%{_unitdir}/docker.service
%{_unitdir}/docker.socket
%dir %{_sysconfdir}/bash_completion.d
%{_sysconfdir}/bash_completion.d/docker.bash
%dir %{_var}/lib/docker
%dir %{_udevrulesdir}
%{_udevrulesdir}/80-docker.rules
%{_sysconfdir}/modules-load.d/overlay.conf
%{_libexecdir}/docker

%files fish-completion
%dir %{_datadir}/fish/vendor_completions.d/
%{_datadir}/fish/vendor_completions.d/%{repo}.fish

%files zsh-completion
%{_datadir}/zsh/site-functions/_%{repo}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12463 |21mr|docker-client-java-8.11.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           docker-client-java
Version:        8.11.7
Release:        6
Summary:        Docker Client

# Obsoletes/Provides added in F27
Provides:       docker-client = %{version}-%{release}
Obsoletes:      docker-client < %{version}-%{release}

License:        ASL 2.0
URL:            https://github.com/spotify/docker-client
Source0:        https://github.com/spotify/docker-client/archive/v%{version}.tar.gz

Patch0: 0001-Port-to-latest-version-of-Google-AutoValue.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.fasterxml.jackson.datatype:jackson-datatype-guava)
BuildRequires:  mvn(com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider)
BuildRequires:  mvn(com.github.jnr:jnr-unixsocket)
BuildRequires:  mvn(com.google.auto.value:auto-value) >= 1.4.1
BuildRequires:	mvn(com.google.auto.value:auto-value-annotations) >= 1.4.1
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires:  mvn(org.glassfish.hk2:hk2-api)
BuildRequires:  mvn(org.glassfish.jersey.connectors:jersey-apache-connector)
BuildRequires:  mvn(org.glassfish.jersey.core:jersey-client)
BuildRequires:  mvn(org.glassfish.jersey.media:jersey-media-json-jackson)
BuildRequires:  mvn(org.slf4j:slf4j-api)

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Docker Client is a Java API library for accessing a Docker daemon.

%prep
%setup -q -n docker-client-%{version}
%patch0 -p1

# The parent pom doen't add anything we can't live without
%pom_remove_parent
sed -i -e '/<packaging>/a<groupId>com.spotify</groupId>' pom.xml

# Plugins unnecessary for RPM builds
%pom_remove_plugin :maven-shade-plugin
%pom_remove_plugin :jacoco-maven-plugin

# Unnecessary static ananlysis stuff
%pom_remove_dep com.google.code.findbugs:annotations
sed -i -e '/SuppressFBWarnings/d' src/main/java/com/spotify/docker/client/DefaultDockerClient.java \
  src/main/java/com/spotify/docker/client/messages/{Host,Container}Config.java

# Missing dep for google cloud support
%pom_remove_dep :google-auth-library-oauth2-http
rm -rf src/{main,test}/java/com/spotify/docker/client/auth/gcr

# Add dep on hk2 api
%pom_add_dep org.glassfish.hk2:hk2-api

# Generate OSGi metadata
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" pom.xml \
"<configuration>
  <instructions>
    <Bundle-SymbolicName>\${project.groupId}.docker.client</Bundle-SymbolicName>
    <_nouses>true</_nouses>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>create-manifest</id>
    <phase>process-classes</phase>
    <goals><goal>manifest</goal></goals>
  </execution>
</executions>"
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin" pom.xml \
"<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  </archive>
</configuration>"

%pom_add_dep com.google.auto.value:auto-value-annotations
%pom_change_dep :guava:20.0 :guava:25.0

%build
%mvn_build -j -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE
%doc README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12464 |21mr|docker-compose-2.29.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     debug_package %{nil}

%define     oname docker-compose

Name:		%{oname}
Version:	2.29.7
Release:	1
Summary:	Docker compose golang version
Group:		System/Kernel and hardware
License:	ASL 2.0
URL:		https://docs.docker.com/compose
Source0:	https://github.com/docker/compose/archive/v%{version}/%{name}-%{version}.tar.gz
Source10:	docker-compose-go-mod-vendor-%{version}.tar.xz
Source11:	upd.sh
# docker-compose is compatible with fig and is a simple rename.
Provides:	fig = %{version}-%{release}
Obsoletes:	fig < 1.0.0-4

BuildRequires:	golang
BuildRequires:	git-core
BuildRequires:	upx

Requires:	docker

%description
Docker Compose v2

Docker Compose is a tool for running multi-container
applications on Docker defined using the Compose file
format. A Compose file is used to define how the one or
more containers that make up your application are
configured. Once you have a Compose file, you can
create and start your application with a single command:

docker compose up

%prep
%autosetup -p1 -n compose-%{version}

%build
( cd .. && tar -xf %{SOURCE10} )
export GO111MODULE=on

CGO_ENABLED=0 go build -trimpath -ldflags="-s -w -X github.com/docker/compose/v2/internal.Version=%{version}"  -o bin/%{oname} ./cmd
upx bin/%{oname}

find . -type f -size 0 -exec rm -f {} \;

%install
install -Dm0755 bin/%{oname} %{buildroot}%{_bindir}/%{oname}
mkdir -p %{buildroot}%{_libexecdir}/docker/cli-plugins
ln -s %{_bindir}/%{oname} %{buildroot}%{_libexecdir}/docker/cli-plugins/%{oname}

%files
%doc README.md LICENSE docs
%{_bindir}/%{oname}
%{_libexecdir}/docker/cli-plugins/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12465 |21mr|docker-containerd-1.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with debug

%if %{with debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package %{nil}
%endif

%if ! 0%{?gobuild:1}
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
%endif

%global import_path github.com/containerd/containerd

%define oname containerd

Summary:	A daemon to control runC
Name:		docker-containerd
Version:	1.4.3
Release:	1
License:	ASL 2.0
Group:		System/Kernel and hardware
Url:		http://www.docker.com
%global commit b321d358e6eef9c82fa3f3bb8826dca3724c58c6
%global tag v%{version}
Source0:	https://github.com/containerd/containerd/archive/%{tag}.tar.gz?/%{oname}-%{version}.tar.gz
Source1:	containerd.service
Source2:	containerd.toml
BuildRequires:	glibc-static-devel
BuildRequires:	golang
BuildRequires:	btrfs-devel
BuildRequires:	pkgconfig(libseccomp)
Requires:	runc

%description
Containerd is a daemon with an API and a command line client, to manage
containers on one machine.

It uses runC to run containers according to the OCI specification.
Containerd has advanced features such as seccomp and user namespace
support as well as checkpoint and restore for cloning and live migration
of containers.

%files
%doc *.md LICENSE NOTICE
%{_bindir}/containerd
%{_bindir}/containerd-shim
%{_bindir}/docker-containerd
%{_bindir}/docker-containerd-shim
%{_bindir}/ctr
%{_unitdir}/containerd.service
%dir %{_sysconfdir}/containerd
%config(noreplace) %{_sysconfdir}/containerd/config.toml

#------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
mkdir -p src/%(dirname %{import_path})
ln -s ../../.. src/%{import_path}
export GOPATH=$(pwd):%{_libdir}/golang
export LDFLAGS="-X %{import_path}/version.Package=%{import_path} -X %{import_path}/version.Version=%{tag} -X %{import_path}/version.Revision=%{commit}"
go build -o bin/containerd %{import_path}/cmd/containerd
go build -o bin/containerd-shim %{import_path}/cmd/containerd-shim
go build -o bin/ctr %{import_path}/cmd/ctr

%install
install -D -m 0755 bin/containerd %{buildroot}%{_bindir}/containerd
install -D -m 0755 bin/containerd-shim %{buildroot}%{_bindir}/containerd-shim
install -D -m 0755 bin/ctr %{buildroot}%{_bindir}/ctr
install -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/containerd.service
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/containerd/config.toml

ln -s containerd %{buildroot}%{_bindir}/docker-containerd
ln -s containerd-shim %{buildroot}%{_bindir}/docker-containerd-shim

%post
%systemd_post containerd.service

%preun
%systemd_preun containerd.service

%postun
%systemd_postun_with_restart containerd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12466 |21mr|dolphin-checksign-plugin-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	dolphin checksign plugin
Name:		dolphin-checksign-plugin
Version:	0.1
Release:	2
License:	GPLv3
Group:		System/Base
Url:		https://abf.io/import/dolphin-checksign-plugin
Source0:	dolphin-checksign.sh
Source1:	checksign.desktop
Source2:	dolphin-checksign.po
BuildRequires:	/usr/bin/msgfmt
Requires:	bash
Requires:	gettext
Requires:	plasma5-dolphin
Requires:	ima-evm-utils
Requires:	kdialog
BuildArch:	noarch

%description
checksign plugin for right click menu dolphin

%files
%{_bindir}/dolphin-checksign.sh
%{_datadir}/kservices5/ServiceMenus/*.desktop
%{_localedir}/ru/LC_MESSAGES/dolphin-checksign.mo

%prep

%build

%install
mkdir -p %{buildroot}/%{_bindir} 
mkdir -p %{buildroot}/%{_datadir}/kservices5/ServiceMenus/
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
install -m 755 %{SOURCE0}  %{buildroot}/%{_bindir}/dolphin-checksign.sh
install -m 644 %{SOURCE1}  %{buildroot}/%{_datadir}/kservices5/ServiceMenus/checksign.desktop
msgfmt -v %{SOURCE2} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/dolphin-checksign.mo   

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12467 |21mr|dolphin-plugins-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plugins for Dolphin to view various VCS files
Name:		dolphin-plugins
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	dolphin-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	plasma5-dolphin-plugins = %{EVRD}

%description
Plugins for Dolphin to view various VCS files:
 - bazaar
 - dropbox
 - git
 - mercurial (hg)
 - subversion (svn)

%files -f %{name}.lang
%{_kde5_datadir}/config.kcfg/fileviewsvnpluginsettings.kcfg
%{_kde5_datadir}/config.kcfg/fileviewgitpluginsettings.kcfg
%{_kde5_datadir}/config.kcfg/fileviewhgpluginsettings.kcfg
%{_qt5_plugindir}/dolphin/vcs/fileviewbazaarplugin.so
%{_qt5_plugindir}/dolphin/vcs/fileviewdropboxplugin.so
%{_qt5_plugindir}/dolphin/vcs/fileviewgitplugin.so
%{_qt5_plugindir}/dolphin/vcs/fileviewhgplugin.so
%{_qt5_plugindir}/dolphin/vcs/fileviewsvnplugin.so
%{_qt5_plugindir}/kf5/kfileitemaction/mountisoaction.so
%{_appdatadir}/org.kde.dolphin-plugins.metainfo.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang fileviewbazaarplugin fileviewgitplugin fileviewhgplugin fileviewsvnplugin \
	    mountisoaction %{name}.lang --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12468 |21mr|dom4j-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2007, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           dom4j
Version:        2.0.3
Release:        1
Epoch:          0
Summary:        Open Source XML framework for Java
License:        BSD
URL:            https://dom4j.github.io/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Source0:        https://github.com/%{name}/%{name}/archive/version-%{version}.tar.gz
Source1:        https://repo1.maven.org/maven2/org/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Obsoletes:      %{name}-demo < 2.0.0
Obsoletes:      %{name}-manual < 2.0.0
BuildRequires:  maven-local
BuildRequires:  mvn(jaxen:jaxen)
BuildRequires:  mvn(net.java.dev.msv:xsdlib)
BuildRequires:  mvn(xpp3:xpp3)
BuildRequires:  mvn(javax.xml.bind:jaxb-api)

# Test deps
BuildRequires:  mvn(org.testng:testng)
BuildRequires:  mvn(xerces:xercesImpl)
BuildRequires:  mvn(xalan:xalan)

%description
dom4j is an Open Source XML framework for Java. dom4j allows you to read,
write, navigate, create and modify XML documents. dom4j integrates with
DOM and SAX and is seamlessly integrated with full XPath support.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.


%prep
%autosetup -p1 -n %{name}-version-%{version}

%mvn_alias org.%{name}:%{name} %{name}:%{name}
%mvn_file : %{name}/%{name} %{name}

cp %{SOURCE1} pom.xml
sed -i 's/runtime/compile/' pom.xml

# test deps missing from pom
%pom_add_dep xalan:xalan::test
%pom_add_dep org.testng:testng:6.8.21:test
%pom_add_dep xerces:xercesImpl::test

# Remove support for code which depends on ancient / deprecated classes
# xpp2 (deprecated and not developed since 2003)
rm -r src/main/java/org/dom4j/xpp
rm src/main/java/org/dom4j/io/XPPReader.java
# The datatype code depends on msv (deprecated and not developed since 2013)
rm -r src/main/java/org/dom4j/datatype
rm -r src/test/java/org/dom4j/datatype
%pom_remove_dep net.java.dev.msv:xsdlib

# dom4j supports multiple parsers, remove support for unpackaged parsers
rm src/main/java/org/dom4j/io/XPP3Reader.java
rm src/test/java/org/dom4j/io/XPP3ReaderTest.java
%pom_remove_dep xpp3:xpp3
%pom_remove_dep pull-parser:pull-parser
%pom_remove_dep javax.xml.stream:stax-api

# Remove non-deterministic tests
rm src/test/java/org/dom4j/ThreadingTest.java
rm src/test/java/org/dom4j/util/PerThreadSingletonTest.java

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README.md

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12469 |21mr|dos2unix-7.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts DOS-style EOLs to UNIX-style EOLs and vice versa
Name:		dos2unix
Version:	7.5.2
Release:	1
License:	BSD
Group:		Text tools
Url:		http://waterlan.home.xs4all.nl/dos2unix.html
Source0:	http://waterlan.home.xs4all.nl/dos2unix/%{name}-%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	perl-devel
Provides:	unix2dos = %{EVRD}
Provides:	mac2unix = %{EVRD}
Provides:	unix2mac = %{EVRD}
Obsoletes:	unix2dos < 5.3.1

%description
A filter used to convert DOS-style EOLs to UNIX-style EOLs and vice
versa (EOL - End Of Line character).

This package contains updated Benjamin Lin's implementations of dos2unix
and unix2dos.

Benjamin Lin's implementations of dos2unix and unix2dos are a part of many
Linux distributions such as RedHat, Fedora, Suse, Gentoo and others.
This update includes all RedHat patches and fixes several other problems.
Internationalization has been added and ports to various OS have been made.

%files -f %{name}.lang
%doc %{_docdir}/%{name}/*
%{_bindir}/dos2unix
%{_bindir}/unix2dos
%{_bindir}/mac2unix
%{_bindir}/unix2mac
%{_mandir}/man1/*.1*
%{_mandir}/*/man1/*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make_build

%install
%make_install

# doc is installed two times in doc dir
mv %{buildroot}%{_docdir}/%{name}-%{version}/ %{buildroot}%{_docdir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12470 |21mr|dosfstools-4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities to create and check MS-DOS FAT filesystems
Name:		dosfstools
Version:	4.2
Release:	2
License:	GPLv3+
Group:		File tools
Url:		http://github.com/dosfstools/dosfstools
Source0:	http://github.com/%{name}/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libudev)
BuildRequires:	autoconf-archive
BuildRequires:	gettext-devel
Provides:		mkdosfs-ygg = %{version}

%description
Inside of this package there are two utilities to create and to check MS-DOS
FAT filesystems on either harddisks or floppies under Linux. This version uses
the enhanced boot sector/superblock format of DOS 3.3+ as well as provides a
default dummy boot sector code.

%files
%doc %{_docdir}/%{name}
/sbin/fatlabel
/sbin/mkdosfs
/sbin/mkfs.fat
/sbin/mkfs.msdos
/sbin/mkfs.vfat
/sbin/fsck.fat
/sbin/fsck.msdos
/sbin/fsck.vfat
/sbin/dosfsck
/sbin/dosfslabel
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
export CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
%configure \
		--sbindir=/sbin \
		--enable-compat-symlinks
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12471 |21mr|dotconf-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 0
%define libname %mklibname dotconf %{major}
%define devname %mklibname dotconf -d
%define sdevname %mklibname dotconf -d -s

Name:		dotconf
Summary:	A ConfigurationFile Parser Library
Version:	1.3
Release:	2
License:	LGPLv2.1
Group:		System/Libraries
Url:		https://github.com/williamh/dotconf/
Source0:	https://github.com/williamh/dotconf/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	recode

%description
Dotconf is a configuration file parser library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The shared libraries needed for running programs using dotconf
Group:		System/Libraries
Conflicts:	%{_lib}dotconf1 < 1.0.13-10
Obsoletes:	%{_lib}dotconf1 < 1.0.13-10

%description -n %{libname}
Dotconf is a configuration file parser library.
This package contains only the shared libraries needed for running programs
dynamically linked against dotconf.

%files -n %{libname}
%doc AUTHORS README
%{_libdir}/libdotconf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The libraries and headers needed for dotconf development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Dotconf is a configuration file parser library.
This package contains documentation, headers and shared library symlinks 
needed for dotconf development.

%files -n %{devname}
%doc AUTHORS README
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_docdir}/dotconf/dotconf*.txt

#----------------------------------------------------------------------------

%package examples
Summary:	The examples for the dotconf library
Group:		Development/C

%description examples
Dotconf is a configuration file parser library.
This package contains examples, installed in the same place as the
documentation.

%files examples
%{_docdir}/dotconf/examples/*

#----------------------------------------------------------------------------

%prep
%setup -q
recode l1..u8 AUTHORS doc/dotconf-features.txt

%build
#fix build
autoreconf -i
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12472 |21mr|dotnet3.1-3.1.118-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap
%define _build_pkgcheck_set %{nil}
%define _build_pkgcheck_srpm %{nil}

%if %{mdvver} == 201905
%define __python_3 %{__python38}
%else
%define __python_3 %{__python3}
%endif

# Avoid provides/requires from private libraries
%global privlibs             libhostfxr
%global privlibs %{privlibs}|libclrjit
%global privlibs %{privlibs}|libcoreclr
%global privlibs %{privlibs}|libcoreclrtraceptprovider
%global privlibs %{privlibs}|libdbgshim
%global privlibs %{privlibs}|libhostpolicy
%global privlibs %{privlibs}|libmscordaccore
%global privlibs %{privlibs}|libmscordbi
%global privlibs %{privlibs}|libsos
%global privlibs %{privlibs}|libsosplugin
%global __provides_exclude ^(%{privlibs})\\.so
%global __requires_exclude ^(%{privlibs})\\.so

# LTO triggers a compilation error for a source level issue.  Given that LTO should not
# change the validity of any given source and the nature of the error (undefined enum), I
# suspect a generator program is mis-behaving in some way.  This needs further debugging,
# until that's done, disable LTO.  This has to happen before setting the flags below.
%define _lto_cflags %{nil}


%global host_version 3.1.18
%global runtime_version 3.1.18
%global aspnetcore_runtime_version %{runtime_version}
%global sdk_version 3.1.118
# upstream can update releases without revving the SDK version so these don't always match
%global src_version %{sdk_version}
%global templates_version %(echo %{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')

%global host_rpm_version %{host_version}
%global aspnetcore_runtime_rpm_version %{aspnetcore_runtime_version}
%global runtime_rpm_version %{runtime_version}
%global sdk_rpm_version %{sdk_version}

%if 0%{?fedora} || 0%{?rhel} < 8
%global use_bundled_libunwind 0
%else
%global use_bundled_libunwind 1
%endif

%ifarch aarch64
%global use_bundled_libunwind 1
%endif

%ifarch x86_64
%global runtime_arch x64
%endif
%ifarch aarch64
%global runtime_arch arm64
%endif

%global runtime_id %{distsuffix}.%{rosa_release}*-%{runtime_arch}
%bcond_with identifier_platform_rosa

Name:           dotnet3.1
Version:        %{sdk_rpm_version}
Release:        2
Summary:        .NET Core Runtime and SDK
Group:          Development/Other
License:        MIT and ASL 2.0 and BSD and LGPLv2+ and CC-BY and CC0 and MS-PL and EPL-1.0 and GPL+ and GPLv2 and ISC and OFL and zlib
URL:            https://github.com/dotnet/

# The source is generated on a Fedora box via:
# ./build-dotnet-tarball v%%{src_version}-SDK
Source0:        dotnet-v%{src_version}-SDK%{?_with_bootstrap:-original}.tar.gz
Source1:        check-debug-symbols.py
Source2:        dotnet.sh.in

Patch1:         source-build-warnings-are-not-errors.patch

# Fix building with our additional CFLAGS/CXXFLAGS/LDFLAGS
Patch100:       corefx-optflags-support.patch
#Add some support for cgroupv2 in corefx
# All these patches are upstreamed for 5.0
Patch101:       corefx-39686-cgroupv2-01.patch
Patch102:       corefx-39686-cgroupv2-02.patch
Patch103:       corefx-39633-cgroupv2-mountpoints.patch
# Adding Rosalinux to the group to generate RID
# https://github.com/dotnet/source-build/issues/2095
Patch104:       corefx-Rosalinux-groups.patch

# Fix build with clang 10; Already applied at tarball-build time
# Patch201:       coreclr-clang10.patch
# Fix build on recent versions of gcc/clang
# https://github.com/libunwind/libunwind/pull/166
# Already applied
#Patch202:       coreclr-libunwind-fno-common.patch

# Disable telemetry by default; make it opt-in
Patch500:       cli-telemetry-optout.patch
# fix RID bootstrap, do it once
Patch501:       RuntimeIdentifierGraph-Rosa.patch

ExclusiveArch:  x86_64

BuildRequires:  clang
BuildRequires:  cmake
BuildRequires:  coreutils
%if %{without bootstrap}
BuildRequires:  dotnet-build-reference-packages
BuildRequires:  dotnet-sdk-3.1
BuildRequires:  dotnet-sdk-3.1-source-built-artifacts
%endif
BuildRequires:  findutils
BuildRequires:  git
BuildRequires:  locales-en
BuildRequires:  hostname
BuildRequires:  krb5-devel
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  icu-devel
%if ! %{use_bundled_libunwind}
BuildRequires:  libunwind-devel
%endif
BuildRequires:  %{_lib}lldb-devel
BuildRequires:  llvm
BuildRequires:  lttng-ust-devel
BuildRequires:  make
BuildRequires:  openssl-devel
BuildRequires:  python3
BuildRequires:  systemtap-sdt-devel
BuildRequires:  tar
BuildRequires:  zlib-devel
BuildRequires:  which
ExcludeArch:    %{armx}

%description
.NET Core is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, macOS and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.

.NET Core contains a runtime conforming to .NET Standards a set of
framework libraries, an SDK containing compilers and a 'dotnet'
application to drive everything.


%package -n dotnet

Version:        %{sdk_rpm_version}
Summary:        .NET Core CLI tools and runtime

Requires:       dotnet-sdk-3.1 >= %{sdk_rpm_version}-%{release}

%description -n dotnet
.NET Core is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, macOS and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.

.NET Core contains a runtime conforming to .NET Standards a set of
framework libraries, an SDK containing compilers and a 'dotnet'
application to drive everything.


%package -n dotnet-host

Version:        %{host_rpm_version}
Summary:        .NET command line launcher

%description -n dotnet-host
The .NET Core host is a command line program that runs a standalone
.NET core application or launches the SDK.

.NET Core is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n dotnet-hostfxr-3.1

Version:        %{host_rpm_version}
Summary:        .NET Core command line host resolver

# Theoretically any version of the host should work. But lets aim for the one
# provided by this package, or from a newer version of .NET Core
Requires:       dotnet-host >= %{host_rpm_version}-%{release}

%description -n dotnet-hostfxr-3.1
The .NET Core host resolver contains the logic to resolve and select
the right version of the .NET Core SDK or runtime to use.

.NET Core is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n dotnet-runtime-3.1

Version:        %{runtime_rpm_version}
Summary:        NET Core 3.1 runtime

Requires:       dotnet-hostfxr-3.1 >= %{host_rpm_version}-%{release}

# remove development tools
%if 0
# libicu is dlopen()ed
Requires:       %{_lib}icu-devel
%endif

%if %{use_bundled_libunwind}
Provides: bundled(libunwind) = 1.3
%endif

%description -n dotnet-runtime-3.1
The .NET Core runtime contains everything needed to run .NET Core applications.
It includes a high performance Virtual Machine as well as the framework
libraries used by .NET Core applications.

.NET Core is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n aspnetcore-runtime-3.1

Version:        %{aspnetcore_runtime_rpm_version}
Summary:        ASP.NET Core 3.1 runtime

Requires:       dotnet-runtime-3.1 >= %{runtime_rpm_version}-%{release}

%description -n aspnetcore-runtime-3.1
The ASP.NET Core runtime contains everything needed to run .NET Core
web applications. It includes a high performance Virtual Machine as
well as the framework libraries used by .NET Core applications.

ASP.NET Core is a fast, lightweight and modular platform for creating
cross platform web applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n dotnet-templates-3.1

Version:        %{sdk_rpm_version}
Summary:        .NET Core 3.1 templates

# Theoretically any version of the host should work. But lets aim for the one
# provided by this package, or from a newer version of .NET Core
Requires:       dotnet-host >= %{host_rpm_version}-%{release}

%description -n dotnet-templates-3.1
This package contains templates used by the .NET Core SDK.

ASP.NET Core is a fast, lightweight and modular platform for creating
cross platform web applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n dotnet-sdk-3.1

Version:        %{sdk_rpm_version}
Summary:        .NET Core 3.1 Software Development Kit

Provides:       bundled(js-jquery)
Provides:       bundled(npm)

Requires:       dotnet-runtime-3.1 >= %{runtime_rpm_version}-%{release}
Requires:       aspnetcore-runtime-3.1 >= %{aspnetcore_runtime_rpm_version}-%{release}

Requires:       dotnet-apphost-pack-3.1 >= %{runtime_rpm_version}-%{release}
Requires:       dotnet-targeting-pack-3.1 >= %{runtime_rpm_version}-%{release}
Requires:       aspnetcore-targeting-pack-3.1 >= %{aspnetcore_runtime_rpm_version}-%{release}
Requires:       netstandard-targeting-pack-2.1 >= %{sdk_rpm_version}-%{release}

Requires:       dotnet-templates-3.1 >= %{sdk_rpm_version}-%{release}

%description -n dotnet-sdk-3.1
The .NET Core SDK is a collection of command line applications to
create, build, publish and run .NET Core applications.

.NET Core is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%global dotnet_targeting_pack() %{expand:
%package -n %{1}

Version:        %{2}
Summary:        Targeting Pack for %{3} %{4}

Requires:       dotnet-host

%description -n %{1}
This package provides a targeting pack for %{3} %{4}
that allows developers to compile against and target %{3} %{4}
applications using the .NET Core SDK.

%files -n %{1}
%dir %{_libdir}/dotnet/packs
%{_libdir}/dotnet/packs/%{5}
}

%dotnet_targeting_pack dotnet-apphost-pack-3.1 %{runtime_rpm_version} Microsoft.NETCore.App 3.1 Microsoft.NETCore.App.Host.%{runtime_id}
%dotnet_targeting_pack dotnet-targeting-pack-3.1 %{runtime_rpm_version} Microsoft.NETCore.App 3.1 Microsoft.NETCore.App.Ref
%dotnet_targeting_pack aspnetcore-targeting-pack-3.1 %{aspnetcore_runtime_rpm_version} Microsoft.AspNetCore.App 3.1 Microsoft.AspNetCore.App.Ref
%dotnet_targeting_pack netstandard-targeting-pack-2.1 %{sdk_rpm_version} NETStandard.Library 2.1 NETStandard.Library.Ref


%package -n dotnet-sdk-3.1-source-built-artifacts

Version:        %{sdk_rpm_version}
Summary:        Internal package for building .NET Core 3.1 Software Development Kit

%description -n dotnet-sdk-3.1-source-built-artifacts
The .NET Core source-built archive is a collection of packages needed
to build the .NET Core SDK itself.

These are not meant for general use.


%prep
%setup -q -n dotnet-v%{src_version}-SDK%{?_with_bootstrap:-original}

# https://github.com/dotnet/source-build/issues/1689
find . -type f -exec touch {} +

%if %{without bootstrap}
# Remove all prebuilts
find -iname '*.dll' -type f -delete
find -iname '*.so' -type f -delete
find -iname '*.tar.gz' -type f -delete
find -iname '*.nupkg' -type f -delete
find -iname '*.zip' -type f -delete
rm -rf .dotnet/
rm -rf packages/source-built
%endif

%if %{without bootstrap}
sed -i -e 's|3.1.100-preview1-014459|3.1.103|' global.json
mkdir -p packages/archive
ln -s %{_libdir}/dotnet/source-built-artifacts/*.tar.gz packages/archive/
ln -s %{_libdir}/dotnet/reference-packages/Private.SourceBuild.ReferencePackages*.tar.gz packages/archive
%endif

# Fix bad hardcoded path in build
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/core-setup.*/src/corehost/common/pal.unix.cpp

# Disable warnings
sed -i 's|skiptests|skiptests ignorewarnings|' repos/coreclr.proj

%patch1 -p1

pushd src/corefx.*
%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
%if %{with identifier_platform_rosa}
%patch104 -p1
%endif
popd

pushd src/coreclr.*
#%%patch201 -p1
#%%patch202 -p1
popd

pushd src/core-setup.*
popd

pushd src/cli.*
%patch500 -p1
popd

# If CLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE is misisng, add it back
grep CLR_CMAKE_USE_SYSTEM_LIBUNWIND repos/coreclr.common.props || \
    sed -i 's|\$(BuildArguments) </BuildArguments>|$(BuildArguments) cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE</BuildArguments>|' repos/coreclr.common.props

%if %{use_bundled_libunwind}
sed -i 's|-DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|-DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=FALSE|' repos/coreclr.common.props
%endif

%ifnarch x86_64
mkdir -p artifacts/obj/%{runtime_arch}/Release
cp artifacts/obj/x64/Release/PackageVersions.props artifacts/obj/%{runtime_arch}/Release/PackageVersions.props
%endif

cat source-build-info.txt

find -iname 'nuget.config' -exec echo {}: \; -exec cat {} \; -exec echo \;


%build
cat /etc/os-release

%if %{without bootstrap}
# We need to create a copy because we will mutate this
cp -a %{_libdir}/dotnet previously-built-dotnet
pushd previously-built-dotnet
patch -p1 < %{P:501}
popd
%endif

%if 0%{?fedora} > 32 || 0%{?rhel} > 8
# Setting this macro ensures that only clang supported options will be
# added to ldflags and cflags.
%global toolchain clang
%set_build_flags
%else
# Filter flags not supported by clang
#  -specs=
%global dotnet_cflags %(echo %optflags | sed -re 's/-specs=[^ ]*//g')
%global dotnet_ldflags %(echo %{__global_ldflags} | sed -re 's/-specs=[^ ]*//g') -ldl -pthread -lm
export CFLAGS="%{dotnet_cflags}"
export CXXFLAGS="%{dotnet_cflags}"
export LDFLAGS="%{dotnet_ldflags}"
%endif

%ifarch aarch64
# mbranch-protection=standard breaks unwinding in CoreCLR through libunwind
CFLAGS=$(echo $CFLAGS | sed -e 's/-mbranch-protection=standard //')
CXXFLAGS=$(echo $CXXFLAGS | sed -e 's/-mbranch-protection=standard //')
%endif

# fstack-clash-protection breaks CoreCLR
CFLAGS=$(echo $CFLAGS  | sed -e 's/-fstack-clash-protection//' )
CXXFLAGS=$(echo $CXXFLAGS  | sed -e 's/-fstack-clash-protection//' )

echo $CFLAGS
echo $CXXFLAGS
echo $LDFLAGS

#%%if %%{without bootstrap}
#  --with-ref-packages %%{_libdir}/dotnet/reference-packages/ \
#  --with-packages %%{_libdir}/dotnet/source-built-artifacts/*.tar.gz \
#  --with-sdk %%{_libdir}/dotnet \
#%%endif

VERBOSE=1 ./build.sh \
%if %{without bootstrap}
    --with-sdk previously-built-dotnet \
%endif
    -- \
    /v:n \
    /p:SkipPortableRuntimeBuild=true \
    /p:LogVerbosity=n \
    /p:MinimalConsoleLogOutput=false \
    /p:ContinueOnPrebuiltBaselineError=true


sed -e 's|[@]LIBDIR[@]|%{_libdir}|g' %{SOURCE2} > dotnet.sh


%install
install -dm 0755 %{buildroot}%{_libdir}/dotnet
ls artifacts/%{runtime_arch}/Release
tar xf artifacts/%{runtime_arch}/Release/dotnet-sdk-%{sdk_version}-%{runtime_id}.tar.gz -C %{buildroot}%{_libdir}/dotnet/

# Install managed symbols
tar xf artifacts/%{runtime_arch}/Release/runtime/dotnet-runtime-symbols-%{runtime_version}-%{runtime_id}.tar.gz \
    -C %{buildroot}/%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}/

# Fix executable permissions on files
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.dll' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pdb' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.props' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pubxml' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.targets' -exec chmod -x {} \;
chmod 0755 %{buildroot}/%{_libdir}/dotnet/sdk/%{sdk_version}/AppHostTemplate/apphost
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/libnethost.so
chmod 0755 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/apphost
chmod 0644 %{buildroot}/%{_libdir}/dotnet/packs/Microsoft.NETCore.App.Host.%{runtime_id}/%{runtime_version}/runtimes/%{runtime_id}/native/nethost.h

install -dm 0755 %{buildroot}%{_sysconfdir}/profile.d/
install dotnet.sh %{buildroot}%{_sysconfdir}/profile.d/

install -dm 0755 %{buildroot}/%{_datadir}/bash-completion/completions
# dynamic completion needs the file to be named the same as the base command
install src/cli.*/scripts/register-completions.bash %{buildroot}/%{_datadir}/bash-completion/completions/dotnet

# TODO: the zsh completion script needs to be ported to use #compdef
#install -dm 755 %%{buildroot}/%%{_datadir}/zsh/site-functions
#install src/cli/scripts/register-completions.zsh %%{buildroot}/%%{_datadir}/zsh/site-functions/_dotnet

install -dm 0755 %{buildroot}%{_bindir}
ln -s ../../%{_libdir}/dotnet/dotnet %{buildroot}%{_bindir}/

install -dm 0755 %{buildroot}%{_mandir}/man1/
find -iname 'dotnet*.1' -type f -exec cp {} %{buildroot}%{_mandir}/man1/ \;

echo "%{_libdir}/dotnet" >> install_location
install -dm 0755 %{buildroot}%{_sysconfdir}/dotnet
install install_location %{buildroot}%{_sysconfdir}/dotnet/

install -dm 0755 %{buildroot}%{_libdir}/dotnet/source-built-artifacts
install artifacts/%{runtime_arch}/Release/Private.SourceBuilt.Artifacts.*.tar.gz %{buildroot}/%{_libdir}/dotnet/source-built-artifacts/

# Check debug symbols in all elf objects. This is not in %%check
# because native binaries are stripped by rpm-build after %%install.
# So we need to do this check earlier.
echo "Testing build results for debug symbols..."
%{__python_3} %{SOURCE1} -v %{buildroot}%{_libdir}/dotnet/

%check
%{buildroot}%{_libdir}/dotnet/dotnet --info


%files -n dotnet
# empty package useful for dependencies

%files -n dotnet-host
%dir %{_libdir}/dotnet
%{_libdir}/dotnet/dotnet
%dir %{_libdir}/dotnet/host
%dir %{_libdir}/dotnet/host/fxr
%{_bindir}/dotnet
%license %{_libdir}/dotnet/LICENSE.txt
%license %{_libdir}/dotnet/ThirdPartyNotices.txt
%doc %{_mandir}/man1/dotnet*.1.xz
%{_sysconfdir}/profile.d/dotnet.sh
%{_sysconfdir}/dotnet
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/dotnet

%files -n dotnet-hostfxr-3.1
%dir %{_libdir}/dotnet/host/fxr
%{_libdir}/dotnet/host/fxr/%{host_version}

%files -n dotnet-runtime-3.1
%dir %{_libdir}/dotnet/shared
%dir %{_libdir}/dotnet/shared/Microsoft.NETCore.App
%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}

%files -n aspnetcore-runtime-3.1
%dir %{_libdir}/dotnet/shared
%dir %{_libdir}/dotnet/shared/Microsoft.AspNetCore.App
%{_libdir}/dotnet/shared/Microsoft.AspNetCore.App/%{aspnetcore_runtime_version}

%files -n dotnet-templates-3.1
%dir %{_libdir}/dotnet/templates
%{_libdir}/dotnet/templates/%{templates_version}

%files -n dotnet-sdk-3.1
%dir %{_libdir}/dotnet/sdk
%{_libdir}/dotnet/sdk/%{sdk_version}
%dir %{_libdir}/dotnet/packs

%files -n dotnet-sdk-3.1-source-built-artifacts
%dir %{_libdir}/dotnet
%{_libdir}/dotnet/source-built-artifacts



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12473 |21mr|dotnet6.0-6.0.115-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

# Avoid provides/requires from private libraries
%global privlibs             libhostfxr
%global privlibs %{privlibs}|libclrjit
%global privlibs %{privlibs}|libcoreclr
%global privlibs %{privlibs}|libcoreclrtraceptprovider
%global privlibs %{privlibs}|libdbgshim
%global privlibs %{privlibs}|libhostpolicy
%global privlibs %{privlibs}|libmscordaccore
%global privlibs %{privlibs}|libmscordbi
%global privlibs %{privlibs}|libsos
%global privlibs %{privlibs}|libsosplugin
%global __provides_exclude ^(%{privlibs})\\.so
%global __requires_exclude ^(%{privlibs})\\.so

# LTO triggers a compilation error for a source level issue.  Given that LTO should not
# change the validity of any given source and the nature of the error (undefined enum), I
# suspect a generator program is mis-behaving in some way.  This needs further debugging,
# until that's done, disable LTO.  This has to happen before setting the flags below.
%define _lto_cflags %{nil}

%global host_version 6.0.15
%global runtime_version 6.0.15
%global aspnetcore_runtime_version %{runtime_version}
%global sdk_version 6.0.115
%global sdk_feature_band_version %(echo %{sdk_version} | sed -e 's|[[:digit:]][[:digit:]]$|00|')
%global templates_version %{runtime_version}
#%%global templates_version %%(echo %%{runtime_version} | awk 'BEGIN { FS="."; OFS="." } {print $1, $2, $3+1 }')

%global host_rpm_version %{host_version}
%global runtime_rpm_version %{runtime_version}
%global aspnetcore_runtime_rpm_version %{aspnetcore_runtime_version}
%global sdk_rpm_version %{sdk_version}

# upstream can update releases without revving the SDK version so these don't always match
%global upstream_tag v%{sdk_version}

%global use_bundled_libunwind 1

%ifarch x86_64
%global runtime_arch x64
%endif

%global runtime_id %{distsuffix}.%{rosa_release}*-%{runtime_arch}

Name:           dotnet6.0
Version:        %{sdk_rpm_version}
Release:        1
Summary:        .NET Runtime and SDK
Group:          Development/Other
License:        MIT and ASL 2.0 and BSD and LGPLv2+ and CC-BY and CC0 and MS-PL and EPL-1.0 and GPL+ and GPLv2 and ISC and OFL and zlib
URL:            https://github.com/dotnet/

%if %{with bootstrap}
# The source is generated on a Fedora box via:
# ./build-dotnet-tarball --bootstrap %%{upstream_tag}
Source0:        dotnet-%{upstream_tag}-x64-bootstrap.tar.xz
%else
# The source is generated on a Fedora box via:
# ./build-dotnet-tarball %%{upstream_tag}
Source0:        dotnet-%{upstream_tag}.tar.gz
%endif

Source10:       check-debug-symbols.py
Source11:       dotnet.sh.in

Patch0:		runtime-ROSA-rid.patch
# Mono still has a dependency on (now unbuildable) ILStrip which was removed from CoreCLR: https://github.com/dotnet/runtime/pull/60315
Patch101:       runtime-mono-remove-ilstrip.patch
# Disable telemetry by default; make it opt-in
Patch1500:      sdk-telemetry-optout.patch
ExclusiveArch:  x86_64

BuildRequires:  clang
BuildRequires:  cmake
BuildRequires:  coreutils
BuildRequires:  curl
%if %{without bootstrap}
BuildRequires:  dotnet-sdk-6.0
BuildRequires:  dotnet-sdk-6.0-source-built-artifacts
%endif
BuildRequires:  findutils
BuildRequires:  git
BuildRequires:  locales-en
BuildRequires:  hostname
BuildRequires:  krb5-devel
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  icu-devel
%if ! %{use_bundled_libunwind}
BuildRequires:  libunwind-devel
%endif
BuildRequires:  %{_lib}lldb-devel
BuildRequires:  llvm
BuildRequires:  lttng-ust-devel
BuildRequires:  make
BuildRequires:  openssl-devel
BuildRequires:  python3
BuildRequires:  systemtap-sdt-devel
BuildRequires:  tar
BuildRequires:  zlib-devel
BuildRequires:  which

%description
.NET is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, macOS and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.

.NET contains a runtime conforming to .NET Standards a set of
framework libraries, an SDK containing compilers and a 'dotnet'
application to drive everything.


%package -n dotnet

Version:        %{sdk_rpm_version}
Summary:        .NET CLI tools and runtime

Requires:       dotnet-sdk-6.0 >= %{sdk_rpm_version}-%{release}

%description -n dotnet
.NET is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, macOS and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.

.NET contains a runtime conforming to .NET Standards a set of
framework libraries, an SDK containing compilers and a 'dotnet'
application to drive everything.


%package -n dotnet-host

Version:        %{host_rpm_version}
Summary:        .NET command line launcher

%description -n dotnet-host
The .NET host is a command line program that runs a standalone
.NET application or launches the SDK.

.NET is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n dotnet-hostfxr-6.0

Version:        %{host_rpm_version}
Summary:        .NET command line host resolver

# Theoretically any version of the host should work. But lets aim for the one
# provided by this package, or from a newer version of .NET
Requires:       dotnet-host >= %{host_rpm_version}-%{release}

%description -n dotnet-hostfxr-6.0
The .NET host resolver contains the logic to resolve and select
the right version of the .NET SDK or runtime to use.

.NET is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n dotnet-runtime-6.0

Version:        %{runtime_rpm_version}
Summary:        NET 6.0 runtime

Requires:       dotnet-hostfxr-6.0 >= %{host_rpm_version}-%{release}

# libicu is dlopen()ed
Requires:       icu-devel

# See src/runtime/src/libraries/Native/AnyOS/brotli-version.txt
Provides: bundled(libbrotli) = 1.0.9
%if %{use_bundled_libunwind}
# See src/runtime/src/coreclr/pal/src/libunwind/libunwind-version.txt
Provides: bundled(libunwind) = 1.5.rc1.28.g9165d2a1
%endif

%description -n dotnet-runtime-6.0
The .NET runtime contains everything needed to run .NET applications.
It includes a high performance Virtual Machine as well as the framework
libraries used by .NET applications.

.NET is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n aspnetcore-runtime-6.0

Version:        %{aspnetcore_runtime_rpm_version}
Summary:        ASP.NET Core 6.0 runtime

Requires:       dotnet-runtime-6.0 >= %{runtime_rpm_version}-%{release}

%description -n aspnetcore-runtime-6.0
The ASP.NET Core runtime contains everything needed to run .NET
web applications. It includes a high performance Virtual Machine as
well as the framework libraries used by .NET applications.

ASP.NET Core is a fast, lightweight and modular platform for creating
cross platform web applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n dotnet-templates-6.0

Version:        %{sdk_rpm_version}
Summary:        .NET 6.0 templates

# Theoretically any version of the host should work. But lets aim for the one
# provided by this package, or from a newer version of .NET
Requires:       dotnet-host >= %{host_rpm_version}-%{release}

%description -n dotnet-templates-6.0
This package contains templates used by the .NET SDK.

.NET is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%package -n dotnet-sdk-6.0

Version:        %{sdk_rpm_version}
Summary:        .NET 6.0 Software Development Kit

Provides:       bundled(js-jquery)

Requires:       dotnet-runtime-6.0 >= %{runtime_rpm_version}-%{release}
Requires:       aspnetcore-runtime-6.0 >= %{aspnetcore_runtime_rpm_version}-%{release}

Requires:       dotnet-apphost-pack-6.0 >= %{runtime_rpm_version}-%{release}
Requires:       dotnet-targeting-pack-6.0 >= %{runtime_rpm_version}-%{release}
Requires:       aspnetcore-targeting-pack-6.0 >= %{aspnetcore_runtime_rpm_version}-%{release}
Requires:       netstandard-targeting-pack-2.1 >= %{sdk_rpm_version}-%{release}

Requires:       dotnet-templates-6.0 >= %{sdk_rpm_version}-%{release}

%description -n dotnet-sdk-6.0
The .NET SDK is a collection of command line applications to
create, build, publish and run .NET applications.

.NET is a fast, lightweight and modular platform for creating
cross platform applications that work on Linux, Mac and Windows.

It particularly focuses on creating console applications, web
applications and micro-services.


%global dotnet_targeting_pack() %{expand:
%package -n %{1}

Version:        %{2}
Summary:        Targeting Pack for %{3} %{4}

Requires:       dotnet-host

%description -n %{1}
This package provides a targeting pack for %{3} %{4}
that allows developers to compile against and target %{3} %{4}
applications using the .NET SDK.

%files -n %{1}
%dir %{_libdir}/dotnet/packs
%{_libdir}/dotnet/packs/%{5}
}

%dotnet_targeting_pack dotnet-apphost-pack-6.0 %{runtime_rpm_version} Microsoft.NETCore.App 6.0 Microsoft.NETCore.App.Host.%{runtime_id}
%dotnet_targeting_pack dotnet-targeting-pack-6.0 %{runtime_rpm_version} Microsoft.NETCore.App 6.0 Microsoft.NETCore.App.Ref
%dotnet_targeting_pack aspnetcore-targeting-pack-6.0 %{aspnetcore_runtime_rpm_version} Microsoft.AspNetCore.App 6.0 Microsoft.AspNetCore.App.Ref
%dotnet_targeting_pack netstandard-targeting-pack-2.1 %{sdk_rpm_version} NETStandard.Library 2.1 NETStandard.Library.Ref


%package -n dotnet-sdk-6.0-source-built-artifacts

Version:        %{sdk_rpm_version}
Summary:        Internal package for building .NET 6.0 Software Development Kit

%description -n dotnet-sdk-6.0-source-built-artifacts
The .NET source-built archive is a collection of packages needed
to build the .NET SDK itself.

These are not meant for general use.


%prep
%if %{without bootstrap}
%setup -q -n dotnet-%{upstream_tag}
%else
%setup -q -T -b 0 -n dotnet-%{upstream_tag}-x64-bootstrap
%endif

%if %{without bootstrap}
# Remove all prebuilts
find -iname '*.dll' -type f -delete
find -iname '*.so' -type f -delete
find -iname '*.tar.gz' -type f -delete
find -iname '*.nupkg' -type f -delete
find -iname '*.zip' -type f -delete
rm -rf .dotnet/
rm -rf packages/source-built

mkdir -p packages/archive
ln -s %{_libdir}/dotnet/source-built-artifacts/Private.SourceBuilt.Artifacts.*.tar.gz packages/archive/
%endif

# Fix bad hardcoded path in build
sed -i 's|/usr/share/dotnet|%{_libdir}/dotnet|' src/runtime/src/native/corehost/hostmisc/pal.unix.cpp

pushd src/runtime
%patch0 -p3
%patch101 -p1
popd

pushd src/sdk
%patch1500 -p1
popd

pushd src/installer
popd


%if ! %{use_bundled_libunwind}
sed -i -E 's|( /p:BuildDebPackage=false)|\1 --cmakeargs -DCLR_CMAKE_USE_SYSTEM_LIBUNWIND=TRUE|' src/runtime/eng/SourceBuild.props
%endif

%build
cat /etc/os-release

%if %{without bootstrap}
# We need to create a copy because we will mutate this
cp -a %{_libdir}/dotnet previously-built-dotnet
find previously-built-dotnet
%endif

# Filter flags not supported by clang
%global dotnet_cflags %(echo %optflags | sed -re 's/-specs=[^ ]*//g')
%global dotnet_ldflags %(echo %{__global_ldflags} | sed -re 's/-specs=[^ ]*//g')
export CFLAGS="%{dotnet_cflags}"
export CXXFLAGS="%{dotnet_cflags}"
export LDFLAGS="%{dotnet_ldflags}"

# -fstack-clash-protection breaks CoreCLR
CFLAGS=$(echo $CFLAGS  | sed -e 's/-fstack-clash-protection//' )
CXXFLAGS=$(echo $CXXFLAGS  | sed -e 's/-fstack-clash-protection//' )

export EXTRA_CFLAGS="$CFLAGS"
export EXTRA_CXXFLAGS="$CXXFLAGS"
export EXTRA_LDFLAGS="$LDFLAGS"

# Disable tracing, which is incompatible with certain versions of
# lttng See https://github.com/dotnet/runtime/issues/57784. The
# suggested compile-time change doesn't work, unfortunately.
export COMPlus_LTTng=0

# OpenSSL 3.0 in RHEL 9 has disabled SHA1, used by .NET for strong
# name signing. See https://github.com/dotnet/runtime/issues/67304
# https://gitlab.com/redhat/centos-stream/rpms/openssl/-/commit/78fb78d30755ae18fdaef28ef392f4e67c662ff6
export OPENSSL_ENABLE_SHA1_SIGNATURES=1

%if %{with bootstrap}
rm -fr .dotnet
./prep.sh --bootstrap
%endif

VERBOSE=1 ./build.sh \
%if %{without bootstrap}
    --with-sdk previously-built-dotnet \
%endif
    -- \

echo \
    /v:n \
    /p:SkipPortableRuntimeBuild=true \
    /p:LogVerbosity=n \
    /p:MinimalConsoleLogOutput=false \
    /p:ContinueOnPrebuiltBaselineError=true \
%{nil}

sed -e 's|[@]LIBDIR[@]|%{_libdir}|g' %{SOURCE11} > dotnet.sh

%install
install -dm 0755 %{buildroot}%{_libdir}/dotnet
ls artifacts/%{runtime_arch}/Release
tar xf artifacts/%{runtime_arch}/Release/dotnet-sdk-%{sdk_version}-%{runtime_id}.tar.gz -C %{buildroot}%{_libdir}/dotnet/

# See https://github.com/dotnet/source-build/issues/2579
find %{buildroot}%{_libdir}/dotnet/ -type f -name 'testhost.x86' -delete
find %{buildroot}%{_libdir}/dotnet/ -type f -name 'vstest.console' -delete

# Install managed symbols: disabled because they don't contain sources
# but point to the paths the sources would have been at in the build
# servers. The end user experience is pretty bad atm.
# tar xf artifacts/%%{runtime_arch}/Release/runtime/dotnet-runtime-symbols-%%{runtime_id}-%%{runtime_version}.tar.gz \
#    -C %%{buildroot}/%%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%%{runtime_version}/

# Fix executable permissions on files
find %{buildroot}%{_libdir}/dotnet/ -type f -name 'apphost' -exec chmod +x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name 'singlefilehost' -exec chmod +x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name 'lib*so' -exec chmod +x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.a' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.dll' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.h' -exec chmod 0644 {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.json' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pdb' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.props' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.pubxml' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.targets' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.txt' -exec chmod -x {} \;
find %{buildroot}%{_libdir}/dotnet/ -type f -name '*.xml' -exec chmod -x {} \;

install -dm 0755 %{buildroot}%{_sysconfdir}/profile.d/
install dotnet.sh %{buildroot}%{_sysconfdir}/profile.d/

install -dm 0755 %{buildroot}/%{_datadir}/bash-completion/completions
# dynamic completion needs the file to be named the same as the base command
install src/sdk/scripts/register-completions.bash %{buildroot}/%{_datadir}/bash-completion/completions/dotnet

# TODO: the zsh completion script needs to be ported to use #compdef
#install -dm 755 %%{buildroot}/%%{_datadir}/zsh/site-functions
#install src/cli/scripts/register-completions.zsh %%{buildroot}/%%{_datadir}/zsh/site-functions/_dotnet

install -dm 0755 %{buildroot}%{_bindir}
ln -s ../../%{_libdir}/dotnet/dotnet %{buildroot}%{_bindir}/

install -dm 0755 %{buildroot}%{_mandir}/man1/
find -iname 'dotnet*.1' -type f -exec cp {} %{buildroot}%{_mandir}/man1/ \;

install -dm 0755 %{buildroot}%{_sysconfdir}/dotnet
echo "%{_libdir}/dotnet" >> install_location
install install_location %{buildroot}%{_sysconfdir}/dotnet/
echo "%{_libdir}/dotnet" >> install_location_%{runtime_arch}
install install_location_%{runtime_arch} %{buildroot}%{_sysconfdir}/dotnet/

install -dm 0755 %{buildroot}%{_libdir}/dotnet/source-built-artifacts
install -m 0644 artifacts/%{runtime_arch}/Release/Private.SourceBuilt.Artifacts.*.tar.gz %{buildroot}/%{_libdir}/dotnet/source-built-artifacts/


# Quick and dirty check for https://github.com/dotnet/source-build/issues/2731
test -f %{buildroot}%{_libdir}/dotnet/sdk/%{sdk_version}/Sdks/Microsoft.NET.Sdk/Sdk/Sdk.props

# Check debug symbols in all elf objects. This is not in %%check
# because native binaries are stripped by rpm-build after %%install.
# So we need to do this check earlier.
echo "Testing build results for debug symbols..."
%{__python3} %{SOURCE10} -v %{buildroot}%{_libdir}/dotnet/

%check
%{buildroot}%{_libdir}/dotnet/dotnet --info
%{buildroot}%{_libdir}/dotnet/dotnet --version


%files -n dotnet
# empty package useful for dependencies

%files -n dotnet-host
%dir %{_libdir}/dotnet
%{_libdir}/dotnet/dotnet
%dir %{_libdir}/dotnet/host
%dir %{_libdir}/dotnet/host/fxr
%{_bindir}/dotnet
%license %{_libdir}/dotnet/LICENSE.txt
%license %{_libdir}/dotnet/ThirdPartyNotices.txt
%doc %{_mandir}/man?/dotnet*.?.*
%config(noreplace) %{_sysconfdir}/profile.d/dotnet.sh
%config(noreplace) %{_sysconfdir}/dotnet
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/dotnet

%files -n dotnet-hostfxr-6.0
%dir %{_libdir}/dotnet/host/fxr
%{_libdir}/dotnet/host/fxr/%{host_version}

%files -n dotnet-runtime-6.0
%dir %{_libdir}/dotnet/shared
%dir %{_libdir}/dotnet/shared/Microsoft.NETCore.App
%{_libdir}/dotnet/shared/Microsoft.NETCore.App/%{runtime_version}

%files -n aspnetcore-runtime-6.0
%dir %{_libdir}/dotnet/shared
%dir %{_libdir}/dotnet/shared/Microsoft.AspNetCore.App
%{_libdir}/dotnet/shared/Microsoft.AspNetCore.App/%{aspnetcore_runtime_version}

%files -n dotnet-templates-6.0
%dir %{_libdir}/dotnet/templates
%{_libdir}/dotnet/templates/%{templates_version}

%files -n dotnet-sdk-6.0
%dir %{_libdir}/dotnet/sdk
%{_libdir}/dotnet/sdk/%{sdk_version}
%dir %{_libdir}/dotnet/sdk-manifests
%{_libdir}/dotnet/sdk-manifests/%{sdk_feature_band_version}
%{_libdir}/dotnet/metadata
%dir %{_libdir}/dotnet/packs

%files -n dotnet-sdk-6.0-source-built-artifacts
%dir %{_libdir}/dotnet
%{_libdir}/dotnet/source-built-artifacts



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12474 |21mr|dotnet-build-reference-packages-0-8.20200608gitcd5a8c6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global commit cd5a8c6f5c67cbaa87755aafa8765e812ceaa2dc
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           dotnet-build-reference-packages
Version:        0
Release:        8.20200608git%{shortcommit}
Summary:        Reference packages needed by the .NET Core SDK build
Group:          Development/Other
License:        MIT
URL:            https://github.com/dotnet/source-build-reference-packages
Source0:        https://github.com/dotnet/source-build-reference-packages/archive/%{commit}/%{name}-%{shortcommit}.tar.gz

ExclusiveArch:  x86_64

BuildRequires:  dotnet-sdk-3.1
BuildRequires:  dotnet-sdk-3.1-source-built-artifacts

%description
This contains references packages used for building .NET Core.

This is not meant to be used by end-users.


%prep
%setup -q -n source-build-reference-packages-%{commit}

find -name '*.nupkg' -type f -delete
find -name '*.dll' -type f -delete
find -name '*.so' -type f -delete
find -name '*.tar.gz' -type f -delete

%build
find -iname 'nuget.config' -exec echo {} \; -exec cat {} \;

%{_libdir}/dotnet/dotnet --info

./build.sh \
  --with-sdk %{_libdir}/dotnet \
  --with-packages %{_libdir}/dotnet/source-built-artifacts/*.tar.gz

pushd artifacts/reference-packages
tar cvzf Private.SourceBuild.ReferencePackages.%{version}.tar.gz *.nupkg
popd
mv artifacts/reference-packages/Private.SourceBuild.ReferencePackages.%{version}.tar.gz .

%install
mkdir -p %{buildroot}/%{_libdir}/dotnet
cp -a artifacts/reference-packages %{buildroot}/%{_libdir}/dotnet/
cp -a Private.SourceBuild.ReferencePackages.%{version}.tar.gz %{buildroot}/%{_libdir}/dotnet/reference-packages/


%files
%dir %{_libdir}/dotnet/
%{_libdir}/dotnet/reference-packages/
%license LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12475 |21mr|double-conversion-3.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
%define staticname %mklibname %{name} -d -s
%define gitdate 20160703
%bcond_without static_libs # don't build static libraries

Summary:	Library providing binary-decimal and decimal-binary routines for IEEE doubles
Name:		double-conversion
Version:	3.1.5
Release:	1
License:	BSD
Group:          System/Libraries
URL:            https://github.com/google/double-conversion/
# git archive --format=tar --prefix double-conversion-2.0.1-$(date +%Y%m%d)/ HEAD | xz -vf > double-conversion-2.0.1-$(date +%Y%m%d).tar.xz
#Source0:	https://github.com/google/double-conversion/archive/%{name}-%{version}-%{gitdate}.tar.gz
Source0:	https://github.com/google/double-conversion/archive/%{name}-%{version}.tar.gz
Patch0:		e2k-port.patch
BuildRequires:  cmake

%description
Provides binary-decimal and decimal-binary routines for IEEE doubles.
The library consists of efficient conversion routines that have been
extracted from the V8 JavaScript engine. The code has been re-factored
and improved so that it can be used more easily in other projects.

%package -n %{libname}
Summary:	Library providing binary-decimal and decimal-binary routines for IEEE doubles
Group:		System/Libraries

%description -n %{libname}
Provides binary-decimal and decimal-binary routines for IEEE doubles.
The library consists of efficient conversion routines that have been
extracted from the V8 JavaScript engine. The code has been re-factored
and improved so that it can be used more easily in other projects.

%package -n %{develname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
Contains header files for developing applications that 
use the %{name} library.

There is extensive documentation in src/double-conversion.h.
Other examples can be found in test/cctest/test-conversions.cc.

%package -n %{staticname}
Summary:	Static library for %{name}
Group:		Development/Other
Requires:	%{develname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{staticname}
Static %{name} library.

%prep
%autosetup -n %{name}-%{version} -p1
# Fix up install locations
# https://github.com/floitsch/double-conversion/issues/8
sed -i -e 's,lib/,%{_lib}/,g;s,"lib","%{_lib}",g' CMakeLists.txt

%build
mkdir -p build-shared
cd build-shared
  %cmake -DBUILD_TESTING=ON ../..
  %make_build
cd ../..

%if %{with static_libs}
mkdir  -p build-static
cd build-static
  CXXFLAGS="%{optflags} -fPIC" %cmake -DBUILD_SHARED_LIBS=NO ../..
  %make_build
cd ../..
%endif

%install
%if %{with static_libs}
cd build-static
  %make_install -C build
cd -
%endif

cd build-shared
  %make_install -C build
cd -

%check
cd build-shared
  ctest -V
cd -

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{develname}
%doc LICENSE README.md AUTHORS Changelog
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}
%{_includedir}/%{name}

%if %{with static_libs}
%files -n %{staticname}
%{_libdir}/lib%{name}.a
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12476 |21mr|dovecot-2.3.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without gssapi
%bcond_without ldap
%bcond_without lucene
%bcond_without mysql
%bcond_without pgsql
%bcond_without sqlite
%bcond_without sieve
%bcond_without systemd

# The Sieve plugin needs to reference internal symbols
%define	_disable_ld_no_undefined 1

%define	major %(echo %version |cut -d. -f1-2)
%define	sieve_version 0.5.19

Summary:	Secure IMAP and POP3 server
Name:		dovecot
Version:	2.3.21
Release:	1
License:	MIT and LGPLv2.1+ and BSD and Public Domain
Group:		System/Servers
Url:		https://www.dovecot.org
Source0:	https://dovecot.org/releases/%{major}/%{name}-%{version}.tar.gz
Source2:	%{name}-pamd
Source3:	%{name}-init
Source4:	http://dovecot.org/tools/migration_wuimp_to_dovecot.pl
Source5:	http://dovecot.org/tools/mboxcrypt.pl
Source6:	https://pigeonhole.dovecot.org/releases/%{major}/dovecot-%{major}-pigeonhole-%{sieve_version}.tar.gz
Source7:	http://www.earth.ox.ac.uk/~steve/sieve/procmail2sieve.pl
Source8:	dovecot.sysusers.conf
Source9:	dovecot.tmpfiles.conf
Source100:	%{name}.rpmlintrc
Patch0:		dovecot-conf-ssl.patch
Patch2:		dovecot-2.2.36.3-fix-libstemmer-includes.patch
Patch3:		dovecot-service.patch
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(libzstd)
%if %{with systemd}
BuildRequires:	pkgconfig(systemd)
%endif
BuildRequires:	gettext-devel
BuildRequires:	libstemmer-devel
BuildRequires:	libwrap-devel
%if %{with mysql}
BuildRequires:	mysql-devel
%endif
%if %{with ldap}
BuildRequires:	openldap-devel
%endif
BuildRequires:	pam-devel
BuildRequires:	sasl-devel
%if %{with gssapi}
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libgssglue)
%endif
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libcap)
%if %{with lucene}
BuildRequires:	pkgconfig(libclucene-core)
%endif
BuildRequires:	pkgconfig(libexttextcat)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
%if %{with pgsql}
BuildRequires:	pkgconfig(libpq)
%endif
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
%if %{with sqlite}
BuildRequires:	pkgconfig(sqlite3)
%endif
Provides:	imap-server
Provides:	pop3-server
Provides:	imaps-server
Provides:	pop3s-server
Requires:	%{name}-config >= 2.1
Requires:	cert-sh-functions

%description
Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, written with
security primarily in mind. Although it's written with C, it uses several
coding techniques to avoid most of the common pitfalls.
It can work with standard mbox and maildir formats and it's fully compatible
with UW-IMAP and Courier IMAP servers as well as mail clients accessing the
mailboxes directly.

You can rebuild %{name} with some conditional build switches;
(ie. use with rpm --rebuild):
    --with[out] gssapi		GSSAPI support (enabled)
    --with[out] ldap		LDAP support (enabled)
    --with[out] lucene		Lucene support (enabled)
    --with[out] mysql		MySQL support (enabled)
    --with[out] pgsql		PostgreSQL support (enabled)
    --with[out] sqlite		SQLite support (enabled)
    --with[out] sieve		CMU Sieve support (enabled).

%files
# to preserve security of the ssl password which may be in the config
# file but also allow the use of the 'deliver' command as any user,
# we set the 'deliver' command sgid mail and have the config file owned
# by root.mail. See bug #44926. idea from Josh Bressers at Red Hat.
# - AdamW 2008/10
%doc AUTHORS ChangeLog COPYING* NEWS README TODO
%doc doc/*.sh doc/*.txt doc/*.cnf
%attr(0750,root,mail) %dir %{_sysconfdir}/%{name}
%attr(0750,root,mail) %dir %{_sysconfdir}/%{name}/conf.d
%doc %{_sysconfdir}/dovecot/README
%if %{with systemd}
%{_unitdir}/dovecot.service
%{_unitdir}/dovecot.socket
%else
%attr(0755,root,root) %{_initrddir}/%{name}
%endif
%{_sysusersdir}/%{name}.conf
%{_tmpfilesdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%{_sbindir}/*
%{_bindir}/doveadm
%{_bindir}/doveconf
%{_bindir}/dovecot-sysreport
%{_bindir}/dsync
%{_bindir}/procmail2sieve.pl
# %%dir %%{_libexecdir}/%%{name}
%{_libexecdir}/%{name}/checkpassword-reply
%attr(2755,root,mail) %{_libexecdir}/%{name}/deliver
%{_libexecdir}/%{name}/aggregator
%{_libexecdir}/%{name}/anvil
%{_libexecdir}/%{name}/auth
%{_libexecdir}/%{name}/config
%{_libexecdir}/%{name}/decode2text.sh
%{_libexecdir}/%{name}/dict
%{_libexecdir}/%{name}/director
%{_libexecdir}/%{name}/dns-client
%{_libexecdir}/%{name}/doveadm-server
%{_libexecdir}/%{name}/dovecot-lda
%{_libexecdir}/%{name}/health-check.sh
%{_libexecdir}/%{name}/imap-urlauth
%{_libexecdir}/%{name}/imap-urlauth-login
%{_libexecdir}/%{name}/imap-urlauth-worker
%{_libexecdir}/%{name}/indexer
%{_libexecdir}/%{name}/indexer-worker
%{_libexecdir}/%{name}/ipc
%{_libexecdir}/%{name}/gdbhelper
%{_libexecdir}/%{name}/imap
%{_libexecdir}/%{name}/imap-hibernate
%{_libexecdir}/%{name}/imap-login
%{_libexecdir}/%{name}/lmtp
%{_libexecdir}/%{name}/log
%{_libexecdir}/%{name}/maildirlock
%{_libexecdir}/%{name}/pop3
%{_libexecdir}/%{name}/pop3-login
%{_libexecdir}/%{name}/quota-status
%{_libexecdir}/%{name}/rawlog
%{_libexecdir}/%{name}/replicator
%{_libexecdir}/%{name}/script
%{_libexecdir}/%{name}/script-login
%{_libexecdir}/%{name}/submission
%{_libexecdir}/%{name}/submission-login
#%%{_libexecdir}/%{name}/ssl-params
%{_libexecdir}/%{name}/stats
%{_libexecdir}/%{name}/old-stats
%{_libexecdir}/%{name}/xml2text
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libdcrypt_openssl.so
%{_libdir}/%{name}/libdovecot-dsync.so*
%{_libdir}/%{name}/libdovecot-compression.so*
%{_libdir}/%{name}/libdovecot-fts.so*
%{_libdir}/%{name}/libdovecot-lda.so*
%{_libdir}/%{name}/libdovecot-ldap.so*
%{_libdir}/%{name}/libdovecot-login.so*
%{_libdir}/%{name}/libdovecot-sql.so*
#{_libdir}/%%{name}/libdovecot-ssl.so*
%{_libdir}/%{name}/libdovecot-storage.so*
%{_libdir}/%{name}/libdovecot.so*
%dir %{_libdir}/%{name}/modules
%{_libdir}/%{name}/modules/*.so
%dir %{_libdir}/%{name}/modules/auth
%{_libdir}/%{name}/modules/auth/*.so
%exclude %{_libdir}/%{name}/modules/auth/libauthdb_ldap.so
%exclude %{_libdir}/%{name}/modules/auth/libmech_gssapi.so
%if %{with pgsql}
%exclude %{_libdir}/%{name}/modules/auth/libdriver_pgsql.so
%exclude %{_libdir}/%{name}/modules/dict/libdriver_pgsql.so
%exclude %{_libdir}/%{name}/modules/libdriver_pgsql.so
%endif
%if %{with mysql}
%exclude %{_libdir}/%{name}/modules/auth/libdriver_mysql.so
%exclude %{_libdir}/%{name}/modules/dict/libdriver_mysql.so
%exclude %{_libdir}/%{name}/modules/libdriver_mysql.so
%endif
%if %{with sqlite}
%exclude %{_libdir}/%{name}/modules/auth/libdriver_sqlite.so
%exclude %{_libdir}/%{name}/modules/dict/libdriver_sqlite.so
%exclude %{_libdir}/%{name}/modules/libdriver_sqlite.so
%endif
%dir %{_libdir}/%{name}/modules/dict/
%{_libdir}/%{name}/modules/dict/*.so
%dir %{_libdir}/%{name}/modules/doveadm
%{_libdir}/%{name}/modules/doveadm/*.so
%dir %{_libdir}/%{name}/modules/settings
%{_libdir}/%{name}/modules/settings/*.so
%dir %{_libdir}/%{name}/modules/old-stats/
%{_libdir}/%{name}/modules/old-stats/*.so
%attr(0700,root,root) %dir /var/lib/%{name}
%{_mandir}/man1/deliver.1*
%{_mandir}/man1/doveadm*.1*
%{_mandir}/man1/doveconf.1*
%{_mandir}/man1/dovecot-lda.1*
%{_mandir}/man1/dovecot.1*
%{_mandir}/man1/dsync.1*
%{_mandir}/man1/sieve-dump.1*
%{_mandir}/man1/sieved.1*
%{_mandir}/man1/dovecot-sysreport.1*
%{_mandir}/man7/doveadm-search-query.7*
%{_mandir}/man7/pigeonhole.7*
%{_datadir}/%{name}/stopwords/

%post
%sysusers_create dovecot.conf
%tmpfiles_create dovecot.conf
%systemd_post dovecot.service

%preun
%systemd_preun dovecot.service

#----------------------------------------------------------------------------

%if %{with gssapi}
%package plugins-gssapi
Summary:	GSSAPI support for dovecot
Group:		System/Servers
Requires:	%{name} >= %{version}

%description plugins-gssapi
This package provides GSSAPI capabilities to dovecot in a modular form.

%files plugins-gssapi
%doc COPYING
%{_libdir}/%{name}/modules/auth/libmech_gssapi.so

%post plugins-gssapi
systemctl condrestart %{name}.service > /dev/null 2>&1 || :

%postun plugins-gssapi
if [ "$1" = "0" ]; then
    systemctl condrestart %{name}.service > /dev/null 2>&1 || :
fi
%endif

#----------------------------------------------------------------------------

%if %{with ldap}
%package plugins-ldap
Summary:	LDAP support for dovecot
Group:		System/Servers
Requires:	%{name} >= %{version}

%description plugins-ldap
This package provides LDAP capabilities to dovecot in a modular form.

%files plugins-ldap
%doc COPYING
%{_libdir}/%{name}/modules/auth/libauthdb_ldap.so

%post plugins-ldap
systemctl condrestart %{name}.service > /dev/null 2>&1 || :

%postun plugins-ldap
if [ "$1" = "0" ]; then
    systemctl condrestart %{name}.service > /dev/null 2>&1 || :
fi
%endif

#----------------------------------------------------------------------------

%if %{with mysql}
%package plugins-mysql
Summary:	MySQL backend for dovecot
Group:		System/Servers
Requires:	%{name} >= %{version}

%description plugins-mysql
This package provides the MySQL backend for dovecot-auth etc.

%files plugins-mysql
%doc COPYING
%{_libdir}/%{name}/modules/auth/libdriver_mysql.so
%{_libdir}/%{name}/modules/dict/libdriver_mysql.so
%{_libdir}/%{name}/modules/libdriver_mysql.so

%post plugins-mysql
systemctl condrestart %{name}.service > /dev/null 2>&1 || :

%postun plugins-mysql
if [ "$1" = "0" ]; then
    systemctl condrestart %{name}.service > /dev/null 2>&1 || :
fi
%endif

#----------------------------------------------------------------------------

%if %{with pgsql}
%package plugins-pgsql
Summary:	Postgres SQL backend for dovecot
Group:		System/Servers
Requires:	%{name} >= %{version}

%description plugins-pgsql
This package provides the Postgres SQL backend for dovecot-auth etc.

%files plugins-pgsql
%doc COPYING
%{_libdir}/%{name}/modules/auth/libdriver_pgsql.so
%{_libdir}/%{name}/modules/dict/libdriver_pgsql.so
%{_libdir}/%{name}/modules/libdriver_pgsql.so

%post plugins-pgsql
systemctl condrestart %{name}.service > /dev/null 2>&1 || :

%postun plugins-pgsql
if [ "$1" = "0" ]; then
    systemctl condrestart %{name}.service > /dev/null 2>&1 || :
fi
%endif

#----------------------------------------------------------------------------

%if %{with sieve}
%package plugins-sieve
Summary:	CMU Sieve plugin for dovecot LDA
Group:		System/Servers
Requires:	%{name} >= %{version}

%description plugins-sieve
This package provides the CMU Sieve plugin version %{sieve_version} for dovecot LDA.

%files plugins-sieve
%doc COPYING
%{_bindir}/sieve-filter
%{_bindir}/sieve-test
%{_bindir}/sievec
%{_bindir}/sieve-dump
%{_libdir}/%{name}/libdovecot-sieve.so*
%{_libdir}/%{name}/modules/sieve/lib90_sieve_extprograms_plugin.so
%{_libdir}/%{name}/modules/sieve/lib90_sieve_imapsieve_plugin.so
%{_libexecdir}/%{name}/managesieve
%{_libexecdir}/%{name}/managesieve-login
%{_mandir}/man1/sievec.1*
%{_mandir}/man1/sieve-test.1*

%post plugins-sieve
systemctl condrestart %{name}.service > /dev/null 2>&1 || :

%postun plugins-sieve
if [ "$1" = "0" ]; then
    systemctl condrestart %{name}.service > /dev/null 2>&1 || :
fi
%endif

#----------------------------------------------------------------------------

%if %{with sqlite}
%package plugins-sqlite
Summary:	SQLite backend for dovecot
Group:		System/Servers
Requires:	%{name} >= %{version}

%description plugins-sqlite
This package provides the SQLite backend for dovecot-auth etc.

%files plugins-sqlite
%doc COPYING
%{_libdir}/%{name}/modules/auth/libdriver_sqlite.so
%{_libdir}/%{name}/modules/dict/libdriver_sqlite.so
%{_libdir}/%{name}/modules/libdriver_sqlite.so

%post plugins-sqlite
systemctl condrestart %{name}.service > /dev/null 2>&1 || :

%postun plugins-sqlite
if [ "$1" = "0" ]; then
    systemctl condrestart %{name}.service > /dev/null 2>&1 || :
fi
%endif

#----------------------------------------------------------------------------

%package devel
Summary:	Devel files for Dovecot IMAP and POP3 server
Group:		Development/C
Requires:	%{name} >= %{version}

%description devel
Dovecot is an IMAP and POP3 server for Linux/UNIX-like systems, written with
security primarily in mind. Although it's written with C, it uses several
coding techniques to avoid most of the common pitfalls.

Dovecot can work with standard mbox and maildir formats and it's fully
compatible with UW-IMAP and Courier IMAP servers as well as mail clients
accessing the mailboxes directly.

This package contains development files for dovecot.

%files devel
%doc COPYING
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/%{name}/dovecot-config
%{_datadir}/aclocal/*.m4

#----------------------------------------------------------------------------

%package config-standalone
Summary:	Config files for running dovecot standalone
Group:		System/Servers
Provides:	%{name}-config = %{EVRD}

%description config-standalone
Config files for running the Dovecot IMAP and POP3 server by itself.

This is the basic configuration for running a Dovecot server - you may
want to install the postfix-dovecot-config package instead if you wish
to run a combination of the Postfix SMTP server and the Dovecot IMAP/POP3
server.

%files config-standalone
%doc COPYING
%attr(0644,root,mail) %config(noreplace) %{_sysconfdir}/%{name}/dovecot.conf
%config(noreplace) %attr(0644,root,mail) %{_sysconfdir}/%{name}/conf.d/*

#----------------------------------------------------------------------------

%prep
%setup -q
%if %{with sieve}
%setup -q -D -T -a 6
%endif
%apply_patches

# Remove patch backups so they don't get packaged into the
# config subpackages
find . -name "*~" |xargs rm || :

# Fix perms
find . -name "*.c" |xargs chmod -x

sed -i -e 's,@OPENSSLDIR@,%{_openssldir},g' doc/example-config/conf.d/10-ssl.conf

%ifarch %{e2k}
# lcc 1.25.22: error #1835: attribute "returns_nonnull" does not apply here
sed -i 's/ ATTR_RETURNS_NONNULL//' src/lib/mempool.h
%endif

%build
%serverbuild
# %%configure macros fail aclocal in dovecot-*-pigeonhole directory
# dovecot-2.3-pigeonhole-0.5.19/m4/dovecot.m4:490: error: m4_copy:
# won't overwrite defined macro: gl_AS_VAR_APPEND
./configure \
    --disable-silent-rules \
    --disable-dependency-tracking \
    --disable-rpath \
    --prefix=%{_prefix} \
    --bindir=%{_bindir} \
    --sbindir=%{_sbindir} \
    --sysconfdir=%{_sysconfdir} \
    --datadir=%{_datadir} \
    --includedir=%{_includedir} \
    --libdir=%{_libdir} \
    --libexecdir=%{_libexecdir} \
    --localstatedir=%{_localstatedir} \
    --mandir=%{_mandir} \
	--disable-static \
	--with-sql=plugin \
	--with-ssl=openssl \
	--with-ssldir=%{_sysconfdir}/ssl/%{name} \
	--with-moduledir=%{_libdir}/%{name}/modules \
%if %{with systemd}
	--with-systemd \
%endif
	--with-nss \
%if %{with ldap}
	--with-ldap=plugin \
%endif
%if %{with pgsql}
	--with-pgsql \
%endif
%if %{with mysql}
	--with-mysql \
%endif
%if %{with sqlite}
	--with-sqlite \
%endif
%if %{with gssapi}
	--with-gssapi=plugin \
%endif
%if %{with lucene}
	--with-lucene \
%endif
	--with-libcap \
	--with-icu \
	--with-stemmer \
	--with-textcat

%make

%if %{with sieve}
pushd dovecot-*-pigeonhole-%{sieve_version}
rm -f configure
autoreconf -vfi
touch doc/man/sieve-filter.1
%configure \
    --disable-static \
    --with-dovecot=../ \
    --with-unfinished-features
%make
popd
%endif

%install
%makeinstall_std

%if %{with sieve}
pushd dovecot-*-pigeonhole-%{sieve_version}
%makeinstall_std
# temporary borkiness i guess...
f=%{buildroot}%{_mandir}/man1/sieve-filter.1
if ! [ -s $f ]; then rm -f $f; fi
popd
%endif

# Install pam config
install -d %{buildroot}%{_sysconfdir}/pam.d
cat %{SOURCE2} > %{buildroot}%{_sysconfdir}/pam.d/%{name}

# If not using systemd, install sysvinit script
%if %{without systemd}
install -d %{buildroot}%{_initrddir}
install -m0755 %{SOURCE3} %{buildroot}%{_initrddir}/%{name}
%endif
pwd

# Install sample config...
cp doc/example-config/%{name}.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
cp -a doc/example-config/conf.d %{buildroot}%{_sysconfdir}/%{name}/
# ... remove useless stuff from the above copy
rm -f %{buildroot}%{_sysconfdir}/%{name}/Makefile*

# Install various needed dirs
install -d %{buildroot}%{_libdir}/%{name}/modules
install -d %{buildroot}/var/lib/%{name}

install -d %{buildroot}%{_sysusersdir}/
install -d %{buildroot}%{_tmpfilesdir}/
install -m0644 %{SOURCE8} %{buildroot}%{_sysusersdir}/%{name}.conf
install -m0644 %{SOURCE9} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# Install some tools
cp %{SOURCE4} .
cp %{SOURCE5} .

# Install and fix procmail2sieve converter script
install -d -m 755 %{buildroot}%{_bindir}
install %{SOURCE7} -m 755 %{buildroot}%{_bindir}
perl -pi -e 's|#!/usr/local/bin/perl|#!%{_bindir}/perl|' \
    %{buildroot}%{_bindir}/procmail2sieve.pl

# We took them in %%doc
rm -f %{buildroot}%{_sysconfdir}/dovecot*-example.conf
rm -rf %{buildroot}%{_datadir}/doc/dovecot*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12477 |21mr|doxygen-1.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with doc
%bcond_without qt5

Summary:	A documentation system for C/C++
Name:		doxygen
Version:	1.12.0
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.stack.nl/~dimitri/doxygen/
Source0:	http://doxygen.nl/files/%{name}-%{version}.src.tar.gz
Patch0:		doxygen-1.2.12-fix-latex.patch
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	pkgconfig(libpng)
%if %{with qt5}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Xml)
%endif
%if %{with doc}
BuildRequires:	ghostscript
BuildRequires:	tetex-latex
BuildRequires:	texlive-epstopdf
%endif

%description
Doxygen can generate an online class browser (in HTML) and/or a
reference manual (in LaTeX) from a set of documented source files. The
documentation is extracted directly from the sources. Doxygen can
also be configured to extract the code structure from undocumented
source files.

%files
%if %{with doc}
%doc html examples pdf
%endif
%doc README.md LICENSE
%{_bindir}/doxygen
%{_mandir}/man1/doxygen.1*

#----------------------------------------------------------------------------

%if %{with qt5}
%package doxywizard
Summary:	A GUI for creating and editing configuration files
Group:		Development/Tools
Requires:	%{name} = %{EVRD}

%description doxywizard
Doxygen can generate an online class browser (in HTML) and/or a
reference manual (in LaTeX) from a set of documented source files. The
documentation is extracted directly from the sources. Doxygen can
also be configured to extract the code structure from undocumented
source files.

This is the GUI interface for doxygen.  It requires qt and X11 to
install.

%files doxywizard
%{_bindir}/doxywizard
%{_mandir}/man1/doxywizard.1*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_STATIC_LIBS:BOOL=ON \
%if %{with doc}
	-Dbuild_doc=ON \
%endif
%if %{with qt5}
	-Dbuild_wizard=ON
%endif

make LFLAGS="%{?ldflags}" all

%if %{with doc}
make docs
%endif

%install
%makeinstall_std -C build

%if %{without doc}
install -m644 doc/doxygen.1 -D %{buildroot}%{_mandir}/man1/doxygen.1
%if %{with qt5}
install -m644 doc/doxywizard.1 -D %{buildroot}%{_mandir}/man1/doxywizard.1
%endif
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12478 |21mr|dozer-5.5.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 2cd932235358bee74468867285c98c5eacdcdaca
Name:          dozer
Version:       5.5.1
Release:       10
Summary:       Java Bean to Java Bean mapper
Group:         Development/Java
License:       ASL 2.0
URL:           http://dozer.sourceforge.net/
Source0:       https://github.com/DozerMapper/%{name}/archive/%{githash}.zip
# https://github.com/DozerMapper/dozer/issues/228
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: apache-commons-beanutils
BuildRequires: apache-commons-lang3
BuildRequires: bea-stax
BuildRequires: bea-stax-api
BuildRequires: felix-osgi-core
BuildRequires: felix-parent
BuildRequires: glassfish-el
BuildRequires: glassfish-el-api
BuildRequires: glassfish-jaxb
BuildRequires: glassfish-jaxb-api
BuildRequires: hibernate3
BuildRequires: junit
BuildRequires: jcl-over-slf4j
BuildRequires: protobuf-java
BuildRequires: slf4j
BuildRequires: slf4j-log4j12
BuildRequires: springframework
BuildRequires: springframework-context
BuildRequires: xmlbeans

# test deps
BuildRequires: cglib
BuildRequires: javassist
BuildRequires: mockito
BuildRequires: objectweb-asm3
BuildRequires: relaxngDatatype
BuildRequires: springframework-test
BuildRequires: xml-commons-apis

BuildRequires: jaxb2-maven-plugin
BuildRequires: maven-local
BuildRequires: maven-plugin-build-helper
BuildRequires: maven-plugin-bundle
BuildRequires: xmlbeans-maven-plugin

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Dozer is a Java Bean to Java Bean mapper that recursively
copies data from one object to another. Typically, these
Java Beans will be of different complex types.

Dozer supports simple property mapping, complex type mapping,
bi-directional mapping, implicit-explicit mapping, as well as
recursive mapping. This includes mapping collection attributes
that also need mapping at the element level.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
find . -name "*.jar" -delete
find . -name "*.class" -delete

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

%pom_disable_module osgi
%pom_disable_module osgi-test
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Name>${project.artifactId}</Bundle-Name>
    <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Description>${project.name}</Bundle-Description>
  </instructions>
</configuration>
<executions>
<execution>
  <id>bundle-manifest</id>
  <phase>process-classes</phase>
  <goals>
    <goal>manifest</goal>
  </goals>
</execution>
</executions>'

for p in core proto spring; do
%pom_xpath_set "pom:project/pom:packaging" bundle ${p}
# Unwanted
%pom_remove_plugin :maven-source-plugin ${p}
%pom_remove_plugin :maven-javadoc-plugin ${p}
%pom_remove_plugin :cobertura-maven-plugin ${p}
done

# Unavailable
%pom_remove_plugin :findbugs-maven-plugin core
%pom_remove_plugin :maven-pdf-plugin core

# org.apache.maven.wagon:wagon-ssh
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin :maven-site-plugin core

# fix deps aId:gId
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId='asm']/pom:version" 3 core
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId='hibernate-core']/pom:version" 3 core

%pom_remove_dep org.glassfish.web:el-impl core
%pom_add_dep org.glassfish.web:javax.el::provided core
%pom_remove_dep cglib:cglib-nodep core
%pom_add_dep net.sf.cglib:cglib::test core
%pom_remove_dep javax.xml.bind:jsr173_api core
%pom_add_dep stax:stax-api::provided core
%pom_xpath_set "pom:dependency[pom:groupId='javax.el']/pom:artifactId" javax.el-api core


# these test fails:
# Class org.dozer.util.ReflectionUtils can not access a member of
# class org.apache.xerces.jaxp.datatype.XMLGregorianCalendarImpl with modifiers "public"
# requires: com.sun.org.apache.xerces.internal.jaxp.datatype.XMLGregorianCalendarImpl
rm -r core/src/test/java/org/dozer/functional_tests/ConstructorTest.java \
 core/src/test/java/org/dozer/functional_tests/DateFormatTest.java

%build

# for eclipse plugin see https://github.com/DozerMapper/dozer/issues/209
# in near future should be in a separate project
# Disable test suite incompatibility with newer cglib
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.md LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE.md LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12479 |21mr|dpdk-22.07-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Add option to build as static libraries (--without shared)
%bcond_without shared
# Add option to build without examples
%bcond_without examples
# Add option to build without tools
%bcond_without tools

%define sdkdir  %{_datadir}/%{name}
%define docdir  %{_docdir}/%{name}
%define incdir %{_includedir}/%{name}
%define pmddir %{_libdir}/%{name}-pmds

Summary:   Set of libraries and drivers for fast packet processing
Group:     System/Libraries
Name:      dpdk
Version:   22.07
Release:   1
Epoch:     2
URL:       http://dpdk.org
Source0:   http://fast.dpdk.org/rel/%{name}-%{version}.tar.xz

#
# Note that, while this is dual licensed, all code that is included with this
# Pakcage are BSD licensed. The only files that aren't licensed via BSD is the
# kni kernel module which is dual LGPLv2/BSD, and thats not built for fedora.
#
License:   BSD and LGPLv2 and GPLv2

#
# The DPDK is designed to optimize througput of network traffic using, among
# other techniques, carefully crafted assembly instructions.  As such it
# needs extensive work to port it to other architectures.
#
ExclusiveArch: %{x86_64} i686 aarch64 ppc64le riscv64

# machine_arch maps between rpm and dpdk arch name, often same as _target_cpu
# machine_tmpl is the config template machine name, often "native"
# machine is the actual machine name used in the dpdk make system
%ifarch %{x86_64}
%define machine_arch x86_64
%define machine_tmpl native
%define machine default
%endif
%ifarch i686
%define machine_arch i686
%define machine_tmpl native
%define machine default
%endif
%ifarch aarch64
%define machine_arch arm64
%define machine_tmpl armv8a
%define machine armv8a
%endif
%ifarch ppc64le
%define machine_arch ppc_64
%define machine_tmpl power8
%define machine power8
%endif
%ifarch riscv64
%define machine_arch riscv64
%define machine_tmpl riscv64
%define machine riscv64
%endif

BuildRequires: kernel-headers
BuildRequires: libpcap-devel
BuildRequires: doxygen
BuildRequires: python3-sphinx
BuildRequires: python3-pyelftools
BuildRequires: zlib-devel
BuildRequires: numactl-devel
BuildRequires: meson

%description
The Data Plane Development Kit is a set of libraries and drivers for
fast packet processing in the user space.

%files
# BSD
%{_bindir}/dpdk-testpmd
%{_bindir}/dpdk-proc-info
%{_libdir}/*.so.*
%{_libdir}/dpdk/pmds-22.2/*

#-----------------------------------------------------------------
%package devel
Summary:     Data Plane Development Kit development files
Requires:    %{name} = %{EVRD} python3
%if ! %{with shared}
Provides:    %{name}-static = %{EVRD}
%endif

%description devel
This package contains the headers and other files needed for developing
applications with the Data Plane Development Kit.

%files devel
#BSD
%{_includedir}/*.h
%{_includedir}/generic/*
%{sdkdir}
%{_libdir}/pkgconfig/libdpdk.pc
%if %{with examples}
%exclude %{sdkdir}/examples/
%endif
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/libdpdk-libs.pc

#-----------------------------------------------------------------

%package doc
Summary:      Data Plane Development Kit API documentation
BuildArch:    noarch

%description doc
API programming documentation for the Data Plane Development Kit.

%files doc
#BSD
%{docdir}
#-----------------------------------------------------------------

%if %{with tools}
%package tools
Summary:      Tools for setting up Data Plane Development Kit environment
Requires:     %{name} = %{EVRD}
Requires:     kmod pciutils findutils iproute python3-pyelftools

%description tools
%{summary}

%files tools
%{_bindir}/dpdk-devbind.py
%{_bindir}/dpdk-hugepages.py
%{_bindir}/dpdk-telemetry.py
%{_bindir}/dpdk-pmdinfo.py
%{_bindir}/dpdk-test
%{_bindir}/dpdk-test-acl
%{_bindir}/dpdk-test-bbdev
%{_bindir}/dpdk-test-cmdline
%{_bindir}/dpdk-test-compress-perf
%{_bindir}/dpdk-test-eventdev
%{_bindir}/dpdk-test-fib
%{_bindir}/dpdk-test-flow-perf
%{_bindir}/dpdk-test-gpudev
%{_bindir}/dpdk-test-pipeline
%{_bindir}/dpdk-test-regex
%{_bindir}/dpdk-test-sad
%{_bindir}/dpdk-pdump
%{_bindir}/dpdk-dumpcap
%{_bindir}/dpdk-test-crypto-perf
%endif
#-----------------------------------------------------------------

%if %{with examples}
%package examples
Summary:       Data Plane Development Kit example applications
BuildRequires: libvirt-devel

%description examples
Example applications utilizing the Data Plane Development Kit, such
as L2 and L3 forwarding.

%files examples
%doc %{sdkdir}/examples

%endif
#-----------------------------------------------------------------

%prep
%setup -q -n dpdk-%{version}

%build
%set_build_flags
%meson
%meson_build

%install
%meson_install

# Replace /usr/bin/env python with /usr/bin/python3
find %{buildroot}%{sdkdir}/ -name "*.py" -exec \
  sed -i -e 's|#!\s*/usr/bin/env python|#!/usr/bin/python|' {} +

find %{buildroot}%{_bindir}/ -name "*.py" -exec \
  sed -i -e 's|#!\s*/usr/bin/env python|#!/usr/bin/python|' {} +

find %{buildroot}%{sdkdir}/ -name "*.py" -exec \
  sed -i -e 's|#!\s*/usr/bin/python|#!/usr/bin/python|' {} +


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12480 |21mr|dracut-053-0.git5eb736.23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5eb736103d06197f37283bc27815c050adec81ea
%define commit_short %(echo %{commit} | head -c 6)

%define dracutlibdir %{_prefix}/lib/dracut

Summary:	Next generation initrd image generator
Name:		dracut
Version:	053
Release:	0.git%{commit_short}.23
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/dracutdevs/dracut
Source0:	https://github.com/dracutdevs/dracut/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	01-rosa.conf
Source2:	rosa2016.1_01-rosa.conf

# Git tree with these patches: https://github.com/mikhailnov/dracut/tree/rosa-053%2B
Patch0001:	0001-Always-use-noatime-option-for-live-rw.patch
Patch0002:	0002-dev-sdXn-dev-sdX-for-the-system-images.patch
Patch0003:	0003-ROSA-plymouth-theme.patch
Patch0004:	0004-Do-not-strip-kernel-modules-by-default.patch
Patch0005:	0005-Drop-explicit-9-compression-level.patch
# revert https://github.com/dracutdevs/dracut/commit/42d93d348
Patch0006:	0006-Revert-Use-eurlatgr-as-default-console-font.patch
# https://github.com/dracutdevs/dracut/pull/1396
Patch0007:	0007-Understand-dbus-daemon.service.patch
# cherry-picked 57eefcf7058 from upstream
Patch0008:	0008-fix-network-use-wicked-unit-instead-of-find_binary.patch
# preferred_network_handler
# https://github.com/dracutdevs/dracut/pull/1421
Patch0009:	0009-network-add-option-to-specify-preferred-network-modu.patch
# https://github.com/dracutdevs/dracut/pull/1442
Patch0010:	0010-Support-ZSTD-compressed-kernel-modules.patch
# https://github.com/dracutdevs/dracut/pull/1481
Patch0011:	0011-fix-url-lib-fix-passing-args.patch
# https://github.com/dracutdevs/dracut/pull/1550
Patch0012:	0012-fix-dmsquash-live-set-correct-path-to-checkisomd5.patch
# https://github.com/dracutdevs/dracut/commit/b292ce729
Patch0013:	0013-fix-kernel-modules-add-blk_mq_alloc_disk-and-blk_cle.patch
# https://github.com/dracutdevs/dracut/pull/2103
Patch0014:	0014-fix-90kernel-modules-fix-MMC-and-NVMe-on-kernels-6.0.patch
# backport of the tpm2-tss module
Patch0015:	0015-feat-systemd-udevd-introducing-the-systemd-udevd-mod.patch
Patch0016:	0016-fix-systemd-udev-use-global-vars-instead-of-fixed-pa.patch
Patch0017:	0017-fix-systemd-udev-define-variables-in-backport.patch
Patch0018:	0018-feat-tpm2-tss-introducing-the-tpm2-tss-module.patch
Patch0019:	0019-fix-tpm2-tss-add-tpm2-requirement.patch
Patch0020:	0020-fix-tpm2-tss-typo-in-depends.patch
Patch0021:	0021-fix-tpm2-tss-add-a-missing-library.patch
Patch0022:	0022-fix-fido2-add-a-missing-library.patch
#/ end of backport of tpm2-tss
# https://github.com/openSUSE/dracut/commit/dcbe23c14d13ca335ad327b7bb985071ca442f12
Patch0023:	0023-override-systemd-sysusers.service.patch
Patch0024:	0024-fix-url-lib-improve-ca-bundle-detection.patch
# https://github.com/dracutdevs/dracut/pull/2312
Patch0025:	0025-fix-url-lib-remove-junk-before-path-to-ca-bundle.patch
# https://github.com/dracutdevs/dracut/commit/b7ef13027
Patch0026:	0026-fix-modsign-load-keys-to-correct-keyring.patch
# https://github.com/dracutdevs/dracut/commit/12beeac741e4429
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=13427
Patch0027:	0027-fix-fs-lib-install-fsck-utilities.patch
Patch0028:	0028-fix-kernel-modules-detect-block-device-s-hardware-dr.patch
Patch0029:	0029-fix-kernel-modules-add-more-modules-on-RISC-V.patch
Patch0030:	0030-fix-90kernel-modules-add-Type-C-USB-drivers-for-gene.patch
Patch0031:	0031-fix-90kernel-modules-add-isp1760-USB-controller.patch
Patch0032:	0032-fix-kernel-modules-add-mailbox-drivers-for-arm.patch
Patch0033:	0033-fix-kernel-modules-always-include-nvmem-driver-on-nv.patch
Patch0034:	0034-fix-90kernel-modules-add-nonstandard-NVMe-drivers.patch
Patch0035:	0035-fix-kernel-modules-add-sysctl-to-initramfs-to-handle.patch
Patch0036:	0036-feat-kernel-modules-exclude-USB-drivers-in-strict-ho.patch
Patch0037:	0037-fix-kernel-modules-add-UFS-drivers.patch
Patch0038:	0038-feat-kernel-modules-driver-support-for-macbook-keybo.patch
Patch0039:	0039-fix-crypt-add-missing-libraries.patch
Patch0040:	0040-fix-network-legacy-add-missing-options-to-dhclient.c.patch
Patch0041:	0041-fix-network-add-errors-and-warnings-when-network-int.patch
Patch0042:	0042-fix-network-legacy-check-if-dhclient-has-timeout-opt.patch
Patch0043:	0043-fix-network-legacy-always-include-af_packet.patch
Patch0044:	0044-fix-iscsi-prefix-syntax-for-static-iBFT-IPv6-address.patch
Patch0045:	0045-feat-lvm-always-include-all-drivers-that-LVM-can-use.patch
Patch0046:	0046-fix-dmsquash-live-live-dev.patch
Patch0047:	0047-fix-lvm-drop-dm-eventd-binary-and-libs-from-initramf.patch
Patch0048:	0048-fix-dracut.sh-remove-microcode-check-based-on-CONFIG.patch
Patch0049:	0049-fix-add-modules.builtin.modinfo-to-the-initramfs.patch

BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	dash
BuildRequires:	bash
BuildRequires:	git-core
BuildRequires:	asciidoc
BuildRequires:	systemd-units
BuildRequires:	bash-completion
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(bash-completion)

%ifarch %{ix86} x86_64
Requires:	v86d
%endif
Requires(pre):	filesystem
Requires(pre):	coreutils
Requires:	udev
Requires:	util-linux-ng
Requires:	kmod-compat
Requires:	e2fsprogs
Requires:	cpio
Requires:	findutils
Requires:	binutils
Requires:	grep
Requires:	mktemp
Requires:	bash
Requires:	kbd
Requires:	tar
Requires:	gzip
Requires:	pigz
Requires:	bzip2
Requires:	xz
Requires:	file
Requires:	bridge-utils
#Requires:	bootloader-utils
# dhcp-client, for module network-legacy
# TODO: maybe we can work without network-legacy?
Requires:	/sbin/dhclient
Requires(post,postun):	update-alternatives
# to regenerate initrds
Requires:	rosa-kernel-tools

# Dependencies of module 90multipath
# https://github.com/dracutdevs/dracut/blob/cf31fcf804/modules.d/90multipath/module-setup.sh#L92-L98
Requires:	(dmsetup if multipath-tools)
Requires:	(kpartx if multipath-tools)
Requires:	(procps-ng if multipath-tools)
# pidof, https://github.com/dracutdevs/dracut/issues/2027
Requires:	(sysvinit-tools if multipath-tools)
# TODO: add similar boolean deps for other modules

# These reqs pollute systems with odd dependencies,
# there is no real need in them in this package,
# dracut can work without lvm if there are no LVMs.
# Keep them for compatibility only to avoid orphans.
%if %{mdvver} < 201900
Recommends:	plymouth
Requires(post):	dmraid
Requires(post):	lvm2
Requires:	lvm2
Requires(post):	mdadm
Requires(post):	dracut-aufs
%endif

# dracut module url-lib requires curl; that module is used rarely,
# so let't avoid requiring curl explicitly, but, if curl is being
# installed in one transaction with dracut, make sure that curl
# is installed before dracut to ensure that initrds will be generatable;
# bellow are dependencies of livenet, url-lib, nfs and some other modules.
# TODO: add a Provides generator to RPM to generate "Provides: binary(xxx)"
# and then generate all needed dependencies by grep'ping "require_binaries"
%if %rpm4
OrderWithRequires: coreutils
OrderWithRequires: curl
OrderWithRequires: nfs-utils
OrderWithRequires: /usr/bin/tar
OrderWithRequires: /usr/bin/gzip
# network-legacy fails without it
OrderWithRequires: /sbin/dhclient
%endif

%description
Dracut contains tools to create a bootable initramfs for 2.6 Linux kernels.
Unlike existing implementations, dracut does hard-code as little as possible
into the initramfs. Dracut contains various modules which are driven by the
event-based udev. Having root on MD, DM, LVM2, LUKS is supported as well as
NFS, iSCSI, NBD, FCoE with the dracut-network package.

%prep
%autosetup -S git_am -n %{name}-%{commit}

# We don't want to strip dracut-install, that's debuginfo's job
sed -i -e 's,\$(strip),,g' install/Makefile
# historical
grep -Irl '/boot/initramfs' | xargs sed -i -e 's,/boot/initramfs,/boot/initrd,g'
# inspect changes made by sed
git diff

%build
%global optflags %{optflags} -Os
%serverbuild_hardened

# The build system sets CFLAGS overriding the default value dracut's Makefile
# uses. However, that default set of options also sets the path to libkmod
# headers. Add it here then.
export CFLAGS="%{optflags} $(pkg-config --cflags libkmod)"

%configure \
	--systemdsystemunitdir=%{_unitdir} \
	--bashcompletiondir=$(pkg-config --variable=completionsdir bash-completion) \
	--libdir=%{_prefix}/lib

%make CC=%{__cc}

%install
%makeinstall_std

# We place the distro-specific config in /usr/lib/dracut/dracut-conf.d/
# to make it overridable (the file with the same name in /etc/dracut.conf.d/
# has a higher priority).
%if %{mdvver} > 201610
install -m 644 %{SOURCE1} %{buildroot}%{dracutlibdir}/dracut.conf.d/01-rosa.conf
%else
install -m 644 %{SOURCE2} %{buildroot}%{dracutlibdir}/dracut.conf.d/01-rosa.conf
%endif
# until the e2k kernel supports xz compressed initrd
%ifarch %{e2k}
    sed -i 's/compress=.*/compress="gzip"/' %{buildroot}%{dracutlibdir}/dracut.conf.d/01-rosa.conf
%endif

echo "DRACUT_VERSION=%{version}-%{release}" > %{buildroot}%{dracutlibdir}/dracut-version.sh

# fix permission of module files
chmod +x %{buildroot}%{dracutlibdir}/modules.d/*/*.sh

mkdir -p %{buildroot}/boot/dracut
mkdir -p %{buildroot}%{_var}/lib/dracut/overlay
install -m 755 -d %{buildroot}%{_datadir}/dracut

mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}/sbin
mv %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/

ln -s %{_sbindir}/dracut %{buildroot}%{_bindir}/dracut
ln -s %{_sbindir}/dracut %{buildroot}/sbin/dracut
ln -s %{dracutlibdir}/dracut-install %{buildroot}%{_sbindir}/dracut-install

mkdir -p %{buildroot}%{_localstatedir}/log
touch %{buildroot}%{_localstatedir}/log/dracut.log

# (tpg) don't follow this usr madness
# systemctl sits in /bin, and it symlinks to /usr/bin
sed -i -e 's#/usr/bin/systemctl#/bin/systemctl#g' %{buildroot}%{dracutlibdir}/modules.d/*/*.service
# (tpg) use real path for udevadm
sed -i -e 's#/usr/bin/udevadm#/sbin/udevadm#g' %{buildroot}%{dracutlibdir}/modules.d/*/*.service

# regenerate initrds with rosa-kernel-tools when installing or updating dracut
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/dracut

%pre
# migration from symlink to file
if [ -L %{_sbindir}/lsinitrd ] && [ "$(realpath %{_sbindir}/lsinitrd)" = "%{_sbindir}/lsinitrd-dracut" ]; then
	rm %{_sbindir}/lsinitrd
fi

%files
%doc README.generic README.kernel AUTHORS
%dir /boot/dracut
%dir %{_datadir}/dracut
%dir %{_var}/lib/dracut
%dir %{_var}/lib/dracut/overlay
%dir %{dracutlibdir}/modules.d
%dir %{dracutlibdir}/dracut.conf.d
%dir %{_sysconfdir}/dracut.conf.d
%config %{_sysconfdir}/dracut.conf
%attr(0644,root,root) %ghost %config(missingok,noreplace) %{_localstatedir}/log/dracut.log
%{dracutlibdir}/dracut.conf.d/01-rosa.conf
/sbin/dracut
%{_sbindir}/dracut
%{_bindir}/dracut
%{_sbindir}/dracut-catimages
%{_sbindir}/dracut-install
%{_sbindir}/lsinitrd
%{_unitdir}/*.service
%{_unitdir}/*/*.service
%{_prefix}/lib/kernel/install.d/5*-dracut*.install
%{dracutlibdir}/skipcpio
%{dracutlibdir}/dracut-install
%{dracutlibdir}/dracut-version.sh
%{dracutlibdir}/dracut-functions.sh
%{dracutlibdir}/dracut-functions
%{dracutlibdir}/modules.d/*
%{dracutlibdir}/dracut-initramfs-restore
%{dracutlibdir}/dracut-logger.sh
%{dracutlibdir}/dracut-init.sh
%{dracutlibdir}/dracut-util
%{_datadir}/bash-completion/completions/dracut
%{_datadir}/bash-completion/completions/lsinitrd
%{_mandir}/man1/lsinitrd.1.*
%{_mandir}/man5/dracut.conf.5*
%{_mandir}/man7/dracut.bootup.7*
%{_mandir}/man7/dracut.kernel.7*
%{_mandir}/man7/dracut.cmdline.7*
%{_mandir}/man7/dracut.modules.7*
%{_mandir}/man8/dracut*.8*
%{_datadir}/pkgconfig/dracut.pc
/var/spool/initramfs-regen/dracut

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12481 |21mr|dracut-aufs-1.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	AUFS support for dracut
Name:		dracut-aufs
Version:	1.0
Release:	17
Group:		System/Base
License:	GPLv2+
URL:		http://wiki.rosalab.ru/ru/index.php/ROSA_Freeze
Source0:	union-mount.sh
Source1:	module-setup.sh
BuildArch:	noarch
Requires:	rosa-kernel-tools

%description
Provide possibility to mount system directories using AUFS
during boot.

%prep
# Nothing to do

%build
# Nothing to do

%install
mkdir -p %{buildroot}%{_prefix}/lib/dracut/modules.d/99union-mount/

install -m 755 %{SOURCE0} %{buildroot}%{_prefix}/lib/dracut/modules.d/99union-mount/
install -m 755 %{SOURCE1} %{buildroot}%{_prefix}/lib/dracut/modules.d/99union-mount/

# regenerate initrds by rosa-kernel-tools
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{name}

%files
%{_prefix}/lib/dracut/modules.d/99union-mount/
/var/spool/initramfs-regen/%{name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12482 |21mr|dragonbox-1.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Static library only -- no debug package
%define debug_package %{nil}
%define devname %mklibname dragonbox -d

Name: dragonbox
Version:	1.1.3
Release:	2
Source0: https://github.com/jk-jeon/dragonbox/archive/refs/tags/%{version}.tar.gz
Summary: Float-to-string conversion library
URL: https://github.com/jk-jeon/dragonbox
License: Apache-2.0
Group: System/Libraries
BuildRequires: cmake ninja

%description
Dragonbox is a float-to-string conversion algorithm.

It generates a pair of integers from a floating-point number: the decimal
significand and the decimal exponent of the input floating-point number.
These integers can then be used for string generation of decimal
representation of the input floating-point number, the procedure
commonly called ftoa or dtoa.

The algorithm guarantees three things:

1. It has the roundtrip guarantee; that is, a correct parser interprets the
   generated output string as the original input floating-point number.

2. The output is of the shortest length; that is, no other output strings that
   are interpreted as the input number can contain less number of significand
   digits than the output of Dragonbox.

3. The output is correctly rounded: the number generated by Dragonbox is the
   closest to the actual value of the input number among possible outputs of
   minimum number of digits.

%package -n %{devname}
Summary: Development files for the %{name} float-to-string conversion library
Group: Development/C
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

Dragonbox is a float-to-string conversion algorithm.

It generates a pair of integers from a floating-point number: the decimal
significand and the decimal exponent of the input floating-point number.
These integers can then be used for string generation of decimal
representation of the input floating-point number, the procedure
commonly called ftoa or dtoa.

The algorithm guarantees three things:

1. It has the roundtrip guarantee; that is, a correct parser interprets the
   generated output string as the original input floating-point number.

2. The output is of the shortest length; that is, no other output strings that
   are interpreted as the input number can contain less number of significand
   digits than the output of Dragonbox.

3. The output is correctly rounded: the number generated by Dragonbox is the
   closest to the actual value of the input number among possible outputs of
   minimum number of digits.

%prep
%autosetup -p1
%cmake -G Ninja

%build
%ninja_build -C build

%install
%ninja_install -C build

%files -n %{devname}
%{_includedir}/*
%{_libdir}/cmake/*
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12483 |21mr|dragonplayer-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dragon

Summary:	A simple video player for KDE
Name:		dragonplayer
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/multimedia/dragonplayer/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Source1:	dragon-23.03_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Dragon Player is a multimedia player where the focus is on simplicity,
instead of features. Dragon Player does one thing, and only one thing,
which is playing multimedia files. It's simple interface is designed not
to get in your way and instead empower you to simply play multimedia
files.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.dragonplayer.desktop
%{_kde5_bindir}/dragon
%{_kde5_datadir}/solid/actions/dragonplayer-*.desktop
%{_kde5_iconsdir}/*/*/*/*
%{_kde5_mandir}/man1/*
%{_kde5_services}/ServiceMenus/dragonplayer_*
%{_kde5_sysconfdir}/xdg/dragonplayerrc
%{_appdatadir}/org.kde.dragonplayer.appdata.xml
%{_qt5_plugindir}/kf5/parts/dragonpart.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12484 |21mr|drakconf-icons-12.19.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Control Center Icons
Name:		drakconf-icons
Version:	12.19.3
Release:	3
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://abf.io/import/drakconf-icons
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildArch:	noarch

%description
Icons for elements of old ROSA Control Center.

%files
%{_datadir}/mcc/themes/default/*.png
%dir %{_datadir}/mcc/themes/
%dir %{_datadir}/mcc/themes/default
%{_datadir}/mcc/themes/default/gtkrc
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/mcc/themes/default
cp *png %{buildroot}%{_datadir}/mcc/themes/default/
cp gtkrc %{buildroot}%{_datadir}/mcc/themes/default/
pushd %{buildroot}%{_datadir}/mcc/themes/default/
mv MandrivaUpdate.png RosaUpdate.png
mv MandrivaUpdate_128.png RosaUpdate_128.png
cp firewall-mdk_128.png drakfirewall_128.png

# install hicolor theme icons
for app in XFdrake-mdk drakauth-mdk drakdvb drakfirewall draksec-mdk;
do
    for N in 16 32 48 64 128;
    do
        convert ${app}_128.png -scale ${N}x${N} ${N}.png;
        mkdir -p %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/
        mv ${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/${app}.png
    done
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12485 |21mr|drakconf-lxqt-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#Deprecated

Summary:	Drakxtools launchers for LXQt Control Center
Name:		drakconf-lxqt
Version:	1.1
Release:	3
License:	GPLv2+
Group:		System/Base
Url:		https://abf.io
Source0:	lxqt_drakauth.desktop
Source1:	lxqt_drakfirewall.desktop
Source2:	lxqt_drakguard.desktop
Source3:	lxqt_draksec.desktop
Source4:	lxqt_harddrake.desktop
Source5:	lxqt_logdrake.desktop
Source6:	lxqt_rpmdrake.desktop
Source7:	lxqt_rpmdrake-sources.desktop
Source8:	lxqt_rpmdrake-update.desktop
Source9:	lxqt_update-freq.desktop
Source10:	lxqt_XFdrake.desktop

%description
This metapackage integrates Drakx utilites via LXQt Control Center.

%files
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/applications
#install -m644 %%{SOURCE0} %%{buildroot}%%{_datadir}/applications
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications
#install -m644 %%{SOURCE2} %%{buildroot}%%{_datadir}/applications
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications
#install -m644 %%{SOURCE4} %%{buildroot}%%{_datadir}/applications
# Disable logdrake - it doesn't support journalctl
#install -m644 %%{SOURCE5} %%{buildroot}%%{_datadir}/applications
#install -m644 %%{SOURCE6} %%{buildroot}%%{_datadir}/applications
#install -m644 %%{SOURCE7} %%{buildroot}%%{_datadir}/applications
#install -m644 %%{SOURCE8} %%{buildroot}%%{_datadir}/applications
#install -m644 %%{SOURCE9} %%{buildroot}%%{_datadir}/applications
install -m644 %{SOURCE10} %{buildroot}%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12486 |21mr|drakx-installer-binaries-2.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define family drakx-installer

Summary:	DrakX binaries
Name:		drakx-installer-binaries
Version:	2.0
Release:	16
License:	GPLv2+
Group:		Development/Other
Url:		http://wiki.mandriva.com/Tools/DrakX
Source0:	%{name}-%{version}.tar.xz
Patch0:		kmod-log.diff
Patch2:		drakx-installer-binaries-2.0-tirpc.patch
Patch3:		drakx-installer-binaries-2.0-fix-lib-deps.patch
Patch4:		drakx-installer-binaries-2.0-no-werror.patch
Patch5:		glibc229.patch

BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	hwdata
# Seems to be really needed
BuildRequires:	kernel
BuildRequires:	rpcsvc-proto-devel
BuildRequires:	ldetect-lst >= 0.1.222
BuildRequires:	ldetect-lst-devel
BuildRequires:	ldetect-devel >= 0.9.1
BuildRequires:	slang-static-devel
BuildRequires:	sysfsutils-devel
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libnewt)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(zlib)
#- not requiring the same version otherwise releasing drakx-installer-images takes a day
#- (restore this when the build system can build a pack of packages)
Requires:	ldetect-lst
%rename		%{name}-probe

%description
Binaries needed to build the ROSA Linux installer (DrakX).

%files
%doc mdk-stage1/NEWS
%dir %{_libdir}/%{family}
%dir %{_libdir}/%{family}/binaries
%{_libdir}/%{family}/binaries/stage1
%{_libdir}/%{family}/binaries/rescue-gui
%{_libdir}/%{family}/binaries/dhcp-client
#{_libdir}/%{family}/binaries/drvinst
#{_libdir}/%{family}/binaries/lspcidrake
%optional %{_libdir}/%{family}/binaries/pcmcia_probe.o
%{_libdir}/%{family}/binaries/probe-modules
%{_libdir}/%{family}/binaries/init

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
make -C mdk-stage1 OPTFLAGS="$(pkg-config --cflags libkmod)"

%install
cd mdk-stage1
dest=%{buildroot}%{_libdir}/%{family}/binaries
mkdir -p $dest
install init stage1 rescue-gui dhcp-client probe-modules $dest
if [ -e pcmcia/pcmcia_probe.o ]; then
  install -m 644 pcmcia/pcmcia_probe.o $dest
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12487 |21mr|drakx-kbd-mouse-x11-0.130-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define drakxtools_required_version  14.39
%define drakxtools_conflicted_version  10.4.89

%global __requires_exclude ^perl((interactive::gtk)

Summary: 	Tools to configure the keyboard, the mice and the graphic card
Name:		drakx-kbd-mouse-x11
Version:	0.130
Release:	7
Source0:	%{name}-%{version}.tar.gz
Source1:	XFdrake.desktop
Patch1:		make-sure-cards-array-has-all-elements-defined.patch

License:	GPLv2+
Group:		System/Configuration/Other
Url:		https://abf.rosalinux.ru/soft/drakx-kbd-mouse-x11
#BuildRequires:	perl-MDK-Common-devel
BuildRequires:	gettext perl-devel
BuildRequires:	libxxf86misc-devel ncurses-devel
Requires:	drakxtools-curses => %drakxtools_required_version
# need the common pam config files for usermode config
Requires:	usermode-consoleonly >= 1.92-4mdv2008.0
%ifnarch %{sparcx} %{arm} %{mips}
Requires:	monitor-edid >= 1.12
# Need for grub2-cfg-mod utility
Requires:	grub2 >= 2.00-31
%endif
# for Cards+ using nvidia-current|nvidia71xx|nvidia96xx instead of nvidia/nvidia97xx/NVIDIA_LEGACY
Requires:	ldetect-lst >= 0.1.312
# for nokmsboot (initrds have to have nokmsboot support and udev has to handle it)
Requires: 	%{name}-common = %{EVRD}
# we don't want to require X libs (xf86misc is always used inside an eval)
%define  __requires_exclude ^libX

%description
Keyboarddrake enables to configure  the keyboard.
Mousedrake enables to configure the mice.

%prep
%setup -q
%apply_patches

%build
%make OPTIMIZE="%{optflags} -Os"

%install
%makeinstall_std

#install lang
%find_lang %{name}

mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/

# consolehelper configuration
# ask for user password
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/XFdrake
mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
cat > %{buildroot}%{_sysconfdir}/pam.d/xfdrake  <<EOF
#%PAM-1.0
auth		include		config-util-user
account		include		config-util-user
session		include		config-util-user
EOF

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/xfdrake <<EOF
USER=<user>
PROGRAM=/usr/sbin/XFdrake
FALLBACK=false
SESSION=true
EOF

ln -s %{_sysconfdir}/security/console.apps/xfdrake \
        %{buildroot}%{_sysconfdir}/security/console.apps/XFdrake

%post
[ -f /etc/vconsole.conf ] && sed -e 's/\s*KEYMAP\s*=\s*ru4\s*/KEYMAP=ru/' -i /etc/vconsole.conf

# add nokmsboot if necessary and rebuild initrds so that they handle it
%triggerpostun -- drakx-kbd-mouse-x11 < 0.91
perl -I/usr/lib/libDrakX -MXconfig::various -e 'Xconfig::various::setup_kms();' &>/dev/null
%{_sbindir}/bootloader-config --action rebuild-initrds || :

%files 
%doc COPYING NEWS
%_sbindir/keyboarddrake
%_sbindir/mousedrake

%package common
Summary: Files which are needed for other drak utils
# files were moved
Obsoletes: %{name} < 0.130-6
Conflicts: %{name} < 0.130-6

%description common
Contains common icons, pixmaps, perl modules

%files common -f %{name}.lang
%_datadir/libDrakX/pixmaps/*
/usr/lib/libDrakX/auto/*
/usr/lib/libDrakX/xf86misc/main.pm
/usr/lib/libDrakX/Xconfig/*.pm
%dir /usr/lib/libDrakX/Xconfig
/usr/lib/libDrakX/*.pm

%package -n xfdrake
Summary: Tool to configure the graphic card
Requires: %{name}-common = %{EVRD}
Conflicts: %{name} < 0.130-7

%description -n xfdrake
XFdrake enables to configure the graphic card.

%files -n xfdrake
%doc COPYING NEWS
%config(noreplace) %{_sysconfdir}/pam.d/xfdrake
%config(noreplace) %{_sysconfdir}/security/console.apps/xfdrake
%{_sysconfdir}/security/console.apps/XFdrake
/sbin/display_driver_helper
%_bindir/XFdrake
%_sbindir/XFdrake
%{_datadir}/applications/XFdrake.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12488 |21mr|drakx-net-1.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define drakxtools_ver 12.36

%define libname lib%{name}

%define gtk_files (connection_manager|drakroam|ifw|monitor|netcenter|drakconnect/edit|drakconnect/global).pm

Summary:	Mandriva network tools
Name:		drakx-net
Version:	1.1
Release:	14
Source0:	%{name}-%{version}.tar.xz
Source1:	admin.policy
Patch0:		%{name}-nm-applet-disable-with-NM.patch
Patch1:		drakx-net-1.1-drakhosts-l10n-domain.patch
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		https://abf.rosalinux.ru/soft/drakx-net
BuildArch:	noarch
BuildRequires:	intltool
Requires:	drakxtools >= %{drakxtools_ver}
Requires:	%{name}-text = %{version}
Requires:	%{libname} = %{version}
Recommends:	netprofile >= 0.20
Requires:	perl-Gtk2 >= 1.154
Requires:	usermode-consoleonly >= 1.92-4mdv2008.0
Conflicts:	drakxtools <= 10.4.83
Recommends:	net_monitor
Recommends:	networkmanager

%description
This package contains the Mandriva network tools.

%package	text
Summary:	Mandriva network text tools
Group:		System/Configuration/Networking
Requires:	drakxtools-curses >= %{drakxtools_ver}
Requires:	%{libname} = %{version}
Conflicts:	drakxtools-curses <= 10.4.83
Conflicts:	mdkonline < 2.37

%description	text
This package contains the Mandriva network tools that can be used in
text mode.

drakconnect: LAN/Internet connection configuration. It handles
ethernet, ISDN, DSL, cable, modem.

drakfirewall: simple firewall configurator

drakgw: internet connection sharing

drakproxy: proxies configuration

drakvpn: VPN configuration (openvpn, vpnc)

%package -n	%{libname}
Summary:	ROSA network tools library
Group:		System/Configuration/Networking
Requires:	drakxtools-backend >= %{drakxtools_ver}
# require perl-Net-Telnet for OpenVPN connections (#36126):
Requires:	perl-Net-Telnet
# Require crda, iw and wireless-regdb for CRDA domain settings (#47324)
#Requires:	crda
Requires:	iw
Requires:	wireless-regdb
Conflicts:	drakxtools-backend <= 10.4.83

%description -n	%{libname}
This package contains the ROSA network tools library.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%make

%install
%makeinstall_std

find %{buildroot}%{_prefix}/lib/libDrakX/network/ -type f -name '*.pm'| sed -e 's#^%{buildroot}/##g' | perl -ne 'm!/%{gtk_files}$! ? print STDERR "/$_" : print "/$_"' > %{name}-nogtk.list 2> %{name}-gtk.list

%find_lang %{name} %{name}.lang
cat %{name}-nogtk.list %{name}.lang > %{name}.list

mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
for pak in  drakproxy drakhosts draksambashare draknfs drakfirewall; do
        cp %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/$pak.policy
        sed -i "s/@pak@/$pak/" %{buildroot}%{_datadir}/polkit-1/actions/$pak.policy
        cat > %{buildroot}%{_bindir}/$pak <<EOF
#!/bin/sh
pkexec %{_sbindir}/$pak "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/$pak

mkdir -p %{buildroot}%{_sysconfdir}/pam.d
cat > %{buildroot}%{_sysconfdir}/pam.d/$pak <<EOF
#%PAM-1.0
auth		include		config-util
account		include		config-util
session		include		config-util
EOF
done

#drop draknet-center desktop file
rm -f %{buildroot}%{_datadir}/applications/draknetcenter.desktop

#full drop netapplet
rm -f %{buildroot}%{_bindir}/net_applet
rm -f %{buildroot}%{_datadir}/applications/net_applet.desktop
rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/net_applet.desktop

#rm non-needing part (TODO - fix in tarball)

rm -f %{buildroot}%{_sbindir}/drakids
rm -f %{buildroot}%{_sbindir}/draknetcenter
rm -f %{buildroot}%{_sbindir}/draknetprofile
rm -f %{buildroot}%{_sbindir}/drakroam
rm -f %{buildroot}%{_sbindir}/drakconnect
rm -f %{buildroot}%{_sbindir}/drakgw
rm -f %{buildroot}%{_sbindir}/drakinvictus
rm -f %{buildroot}%{_sbindir}/drakvpn



%check
while read f; do
      grep Gtk2 %{buildroot}$f && exit 1
done < %{name}-nogtk.list
exit 0

%files -f %{name}-gtk.list
%doc NEWS

%{_bindir}/drakhosts
%{_bindir}/draknfs
%{_bindir}/draksambashare
%{_sbindir}/drakhosts
%{_sbindir}/draknfs
%{_sbindir}/draksambashare
%config(noreplace) %{_sysconfdir}/pam.d/drakhosts
%config(noreplace) %{_sysconfdir}/pam.d/draknfs
%config(noreplace) %{_sysconfdir}/pam.d/draksambashare
%{_datadir}/polkit-1/actions/drakhosts.policy
%{_datadir}/polkit-1/actions/draknfs.policy
%{_datadir}/polkit-1/actions/draksambashare.policy

%{_prefix}/lib/libDrakX/icons/*.png
%{_datadir}/libDrakX/pixmaps/*.png

%files text
%config(noreplace) %{_sysconfdir}/pam.d/drakproxy
%config(noreplace) %{_sysconfdir}/pam.d/drakfirewall

%{_bindir}/drakfirewall
%{_bindir}/drakproxy
%{_sbindir}/drakfirewall
%{_sbindir}/drakproxy
%{_datadir}/polkit-1/actions/drakfirewall.policy
%{_datadir}/polkit-1/actions/drakproxy.policy

%files -n %{libname} -f %{name}.list
%dir %{_prefix}/lib/libDrakX/network/
%dir %{_prefix}/lib/libDrakX/network/connection
%dir %{_prefix}/lib/libDrakX/network/connection/isdn
%dir %{_prefix}/lib/libDrakX/network/connection/providers
%dir %{_prefix}/lib/libDrakX/network/drakconnect
%dir %{_prefix}/lib/libDrakX/network/vpn

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12489 |21mr|drakxtools-14.105-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	The drakxtools (diskdrake, ...)
Name:		drakxtools
Version:	14.105
Release:	1
License:	GPLv2+
Group:		System/Configuration/Other
Url:		https://abf.rosalinux.ru/soft/drakxtools
Source0:	https://abf.rosalinux.ru/soft/drakxtools/archive/%{name}-version-%{version}.tar.gz
Source1:	drakxdisks.desktop
Source2:	drakxservices.desktop
Source3:	admin.policy
Source9:	drakxtools.rpmlintrc
BuildRequires:	gettext
BuildRequires:	ldetect-devel >= 0.9.0
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	perl-devel
BuildRequires:	perl_checker
BuildRequires:	perl-MDK-Common-devel >= 1.1.8-3
BuildRequires:	pkgconfig(libparted)
BuildRequires:	drakx-installer-binaries
BuildRequires:	intltool
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libnsl)

# usermode 1.111-3-rosa2012.1 has the /etc/pam.d/config-util
# files to which we symlink
Requires:	usermode-consoleonly >= 1.44-4
Requires:	perl-Locale-gettext >= 1.05-4
Requires:	module-init-tools
Requires:	perl-Gtk2 >= 1.220
Requires:	perl-Glib >= 1.072-1
Requires:	usermode >= 1.92-4
Requires:	perl-Net-DBus
Requires:	perl-Gtk2-WebKit
Requires:	ldetect-lst >= 0.1.299
Requires:	pam
# needed by drakfont (eg: type1inst):
Requires:	font-tools
Requires:	libxxf86misc
# needed by any::enable_x_screensaver()
Requires:	xset
Requires:	drakconf-icons
Requires:	urpmi
# Contrib, for drakdvb
Recommends:	w_scan2
Provides:	draksec = %{EVRD}
Provides:	diskdrake = %{EVRD}
Provides:	kbdconfig = %{EVRD}
Provides:	mouseconfig = %{EVRD}
Provides:	setuptool = %{EVRD}
Provides:	drakfloppy = %{EVRD}
Provides:	drakxtools-newt = %{EVRD}
Provides:	drakxtools-curses = %{EVRD}
#global __requires_exclude ^perl((Net::FTP|Time::localtime|URPM|Xconfig::.*)
Obsoletes:	drakxtools-curses < 14.102-6
Conflicts:	drakxtools-curses < 14.102-6

%description
Contains many Mandriva Linux applications simplifying users and
administrators life on a Mandriva Linux machine. Nearly all of
them work both under XFree (graphical environment) and in console
(text environment), allowing easy distant work.
- drakclock: date & time configurator
- drakfont: import fonts in the system
- draklog: show extracted information from the system logs
- draksec: security options managment
- adduserdrake: help you adding a user
- diskdrake: DiskDrake makes hard disk partitioning easier. It is
  graphical, simple and powerful. Different skill levels are available
  (newbie, advanced user, expert). It's written entirely in Perl and
  Perl/Gtk. It uses resize_fat which is a perl rewrite of the work of
  Andrew Clausen (libresize).
- drakauth: configure authentification (LDAP/NIS/...)
- drakkeyboard: configure your keyboard (both console and X)
- drakmouse: autodetect and configure your mouse
- drakscanner: scanner configurator
- draksound: sound card configuration
- drakx11: menu-driven program which walks you through setting up
  your X server; it autodetects both monitor and video card if
  possible
- drakxservices: SysV services and daemons configurator
- lsnetdrake: display available nfs and smb shares
- lspcidrake: display your pci information, *and* the corresponding
  kernel module

%files -f %{name}.list
%{_bindir}/adduserdrake
%{_bindir}/clock.pl
%{_bindir}/diskdrake
%{_bindir}/drakauth
%{_bindir}/drakboot
%{_bindir}/drakclock
%{_bindir}/drakdisk
%{_bindir}/drakedm
%{_bindir}/drakfont
%{_bindir}/drakguard
%{_bindir}/drakkeyboard
%{_bindir}/draklog
%{_bindir}/drakmouse
%{_bindir}/drakperm
%{_bindir}/drakscanner
%{_bindir}/draksec
%{_bindir}/draksound
%{_bindir}/drakups
%{_bindir}/drakx11
%{_bindir}/drakxservices
%{_bindir}/keyboarddrake
%{_bindir}/logdrake
%{_bindir}/mousedrake
%{_bindir}/scannerdrake
%{_bindir}/Xdrakres
%{_datadir}/polkit-1/actions/adduserdrake.policy
%{_datadir}/polkit-1/actions/diskdrake.policy
%{_datadir}/polkit-1/actions/drakauth.policy
%{_datadir}/polkit-1/actions/drakboot.policy
%{_datadir}/polkit-1/actions/drakdisk.policy
%{_datadir}/polkit-1/actions/drakedm.policy
%{_datadir}/polkit-1/actions/drakguard.policy
%{_datadir}/polkit-1/actions/draklog.policy
%{_datadir}/polkit-1/actions/drakperm.policy
%{_datadir}/polkit-1/actions/draksec.policy
%{_datadir}/polkit-1/actions/drakups.policy
%{_datadir}/polkit-1/actions/drakxservices.policy
%{_datadir}/polkit-1/actions/logdrake.policy
%config(noreplace) %{_sysconfdir}/security/console.apps/clock.pl
%config(noreplace) %{_sysconfdir}/security/console.apps/drakclock
%config(noreplace) %{_sysconfdir}/security/console.apps/drakfont
%config(noreplace) %{_sysconfdir}/security/console.apps/xdrakres
%config(noreplace) %{_sysconfdir}/security/console.apps/Xdrakres
%config(noreplace) %{_sysconfdir}/pam.d/clock.pl
%config(noreplace) %{_sysconfdir}/pam.d/drakclock
%config(noreplace) %{_sysconfdir}/pam.d/drakfont
%config(noreplace) %{_sysconfdir}/pam.d/xdrakres
%config(noreplace) %{_sysconfdir}/security/console.apps/drakkeyboard
%config(noreplace) %{_sysconfdir}/security/console.apps/drakmouse
%config(noreplace) %{_sysconfdir}/security/console.apps/drakscanner
%config(noreplace) %{_sysconfdir}/security/console.apps/draksound
%config(noreplace) %{_sysconfdir}/security/console.apps/drakx11
%config(noreplace) %{_sysconfdir}/security/console.apps/keyboarddrake
%config(noreplace) %{_sysconfdir}/security/console.apps/mousedrake
%config(noreplace) %{_sysconfdir}/security/console.apps/scannerdrake
%config(noreplace) %{_sysconfdir}/pam.d/drakkeyboard
%config(noreplace) %{_sysconfdir}/pam.d/drakmouse
%config(noreplace) %{_sysconfdir}/pam.d/drakscanner
%config(noreplace) %{_sysconfdir}/pam.d/draksound
%config(noreplace) %{_sysconfdir}/pam.d/drakx11
%config(noreplace) %{_sysconfdir}/pam.d/keyboarddrake
%config(noreplace) %{_sysconfdir}/pam.d/mousedrake
%config(noreplace) %{_sysconfdir}/pam.d/scannerdrake
%{_datadir}/applications/drakxdisks.desktop
%{_datadir}/applications/drakxservices.desktop
%doc perl-install/diskdrake/diskdrake.html

%post
%make_session
[[ ! -e %{_sbindir}/kbdconfig ]] && ln -s -f keyboarddrake %{_sbindir}/kbdconfig
[[ ! -e %{_sbindir}/mouseconfig ]] && ln -s -f mousedrake %{_sbindir}/mouseconfig
:

%postun
%make_session
for i in %{_sbindir}/kbdconfig %{_sbindir}/mouseconfig %{_bindir}/printtool;do
    [[ -L $i ]] && rm -f $i
done
:

%package backend
Summary:	Drakxtools libraries and background tools
Group:		System/Configuration/Other
Requires:	dmidecode
Requires:	perl-File-FnMatch
# for common::wrap_command_for_root()
Requires:	perl-String-ShellQuote

%description backend
See package %{name}.

%files backend -f %{name}-backend.list
%config(noreplace) /etc/security/fileshare.conf

#----------------------------------------------------------------------------

%package http
Summary:	The drakxtools via http
Group:		System/Configuration/Other
Requires:	%{name}-curses = %{EVRD}
Requires:	perl(Net::SSLeay) >= 1.22-1
Requires:	perl-Authen-PAM >= 0.14-1
Requires:	perl-CGI >= 2.91-1

%description http
This package lets you configure your computer through your Web browser:
it provides an HTTP interface to the Mandriva tools found in the drakxtools
package.

%files http -f %{name}-http.list
%dir %{_sysconfdir}/drakxtools_http
%config(noreplace) %{_sysconfdir}/pam.d/miniserv
%{_sysconfdir}/init.d/drakxtools_http
%config(noreplace) %{_sysconfdir}/drakxtools_http/conf
%config(noreplace) %{_sysconfdir}/drakxtools_http/authorised_progs
%config(noreplace) %{_sysconfdir}/logrotate.d/drakxtools-http

#----------------------------------------------------------------------------

%package -n drakx-finish-install
Summary:	First boot configuration
Group:		System/Configuration/Other
Requires:	%{name} = %{EVRD}
#Requires:	drakx-installer-matchbox
Requires:	perl-Geo-IP
Requires:	perl-HTTP-Date
Requires:	libdrakx-net

%description -n drakx-finish-install
For OEM-like duplications, it allows at first boot:
- network configuration
- creating users
- setting root password
- choosing authentication

%files -n drakx-finish-install
%config(noreplace) %{_sysconfdir}/sysconfig/finish-install
%{_sysconfdir}/X11/xsetup.d/??finish-install.xsetup
%{_sbindir}/finish-install

#----------------------------------------------------------------------------

%package -n harddrake
Summary:	Main Hardware Configuration/Information Tool
Group:		System/Configuration/Hardware
Requires:	%{name}-curses = %{EVRD}
Provides:	kudzu = %{EVRD}
Provides:	kudzu-devel = %{EVRD}
Provides:	libdetect0 = %{EVRD}
Provides:	libdetect0-devel = %{EVRD}
Provides:	libdetect-lst = %{EVRD}
Provides:	libdetect-lst-devel = %{EVRD}
Provides:	detect = %{EVRD}
Provides:	detect-lst = %{EVRD}
Requires:	drakx-kbd-mouse-x11

%description -n harddrake
The harddrake service is a hardware probing tool run at system boot
time to determine what hardware has been added or removed from the
system.

It then offer to run needed config tool to update the OS
configuration.

%files -n harddrake
%dir /etc/sysconfig/harddrake2/
%config(noreplace) /etc/sysconfig/harddrake2/previous_hw
%config(noreplace) /etc/sysconfig/harddrake2/service.conf
%config(noreplace) %{_sysconfdir}/sysconfig/harddrake2/kernel
%dir %{_datadir}/harddrake/
%{_datadir}/harddrake/*
%{_sysconfdir}/X11/xsetup.d/??notify-x11-free-driver-switch.xsetup
#%{_sysconfdir}/X11/xinit.d/harddrake2

%postun -n harddrake
file /etc/sysconfig/harddrake2/previous_hw | fgrep -q perl && %{_datadir}/harddrake/convert || :

#----------------------------------------------------------------------------

%package -n harddrake-ui
Summary:	Main Hardware Configuration/Information Tool
Group:		System/Configuration/Hardware
Requires:	%{name} = %{EVRD}
Requires:	sane-backends
Requires:	drakx-kbd-mouse-x11
# Without package urpmi installed, the application fails to launch.
# Package urpmi is a dependency of package plasma5-kcm-harddrake,
# after the removal of which application harddrake-ui stops working.
Requires:	urpmi

%description -n harddrake-ui
This is the main configuration tool for hardware that calls all the
other configuration tools.

It offers a nice GUI that show the hardware configuration splitted by
hardware classes.

%files -n harddrake-ui
%dir /etc/sysconfig/harddrake2/
%{_bindir}/drakhardware
%{_bindir}/harddrake2
%{_datadir}/applications/harddrake.desktop
%{_datadir}/pixmaps/harddrake2
%{_datadir}/polkit-1/actions/drakhardware.policy
%{_datadir}/polkit-1/actions/harddrake2.policy
%{_iconsdir}/harddrake.png
%{_iconsdir}/large/harddrake.png
%{_iconsdir}/mini/harddrake.png
%{_sbindir}/drakhardware
%{_sbindir}/harddrake2

#----------------------------------------------------------------------------

%package -n localedrake
Summary:	Language configurator
Group:		System/Configuration/Other
Requires:	%{name} = %{EVRD}

%description -n localedrake
It is tool for interface language & country configuration.

%files -n localedrake
%{_bindir}/localedrake
%{_bindir}/draklocale
%{_datadir}/applications/localedrake-user.desktop
%{_iconsdir}/hicolor/scalable/apps/localedrake.svg

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-version-%{version}

# Setting CCFLAGS to %{optflags} fixes debug package generation,
# but completely breaks 32bit binary.
%build
%make -C perl-install \
	CFLAGS="%{optflags}" \
	-I/usr/include/ldetect/

%install
%make -C perl-install PREFIX=%{buildroot} install
mkdir -p %{buildroot}%{_sysconfdir}/{X11/xinit.d,X11/wmsession.d,sysconfig/harddrake2}
touch %{buildroot}/etc/sysconfig/harddrake2/previous_hw

dirs1="usr/lib/libDrakX usr/share/libDrakX"
(cd %{buildroot} ; find $dirs1 usr/bin usr/sbin ! -type d -printf "/%%p\n")|egrep -v 'bin/.*(harddrake|drakhardware|drak-user-domain-login)' > %{name}.list
(cd %{buildroot} ; find $dirs1 -type d -printf "%%%%dir /%%p\n") >> %{name}.list

perl -ni -e '/dbus_object\.pm|Xdrakres|clock|display_help|drak(floppy|hosts|splash)|gtk|icons|logdrake|pixmaps|curses.pm|\.png$/ ? print STDERR $_ : print' %{name}.list 2> %{name}-backend.list
perl -ni -e 'm!lib/libDrakX|bootloader-config|fileshare|lsnetdrake|drakupdate_fstab|rpcinfo|serial_probe! && !/curses/i ? print STDERR $_ : print' %{name}.list 2>> %{name}-backend.list
perl -pi -e 's|^(/usr/sbin/fileshareset)$|%%attr(4755,root,root) $1|;' %{name}-backend.list
perl -ni -e '/http/ ? print STDERR $_ : print' %{name}.list 2> %{name}-http.list
perl -ni -e '/finish-install/ ? print STDERR $_ : print' %{name}.list 2> finish-install.list
sed -i "/sbin.drakclock/d" %{name}-backend.list
echo "/usr/sbin/drakclock" >>%{name}.list

#mdk menu entry
mkdir -p %{buildroot}%{_datadir}/autostart

cat > %{buildroot}%{_sysconfdir}/X11/xinit.d/harddrake2 <<EOF
#!/bin/sh
exec /usr/share/harddrake/service_harddrake X11
EOF

cat > %{buildroot}%{_sysconfdir}/sysconfig/harddrake2/kernel <<EOF
KERNEL=3.8
EOF

mv %{buildroot}%{_sbindir}/service_harddrake_confirm %{buildroot}%{_datadir}/harddrake/confirm

chmod +x %{buildroot}{%{_datadir}/harddrake/{conf*,service_harddrake},%{_sysconfdir}/X11/xinit.d/harddrake2}
# temporary fix until we reenable this feature
rm -f %{buildroot}%{_sysconfdir}/X11/xinit.d/harddrake2

perl -I perl-install -mharddrake::data -e 'print "DETECT_$_->{class}=yes\n" foreach @harddrake::data::tree' |sort > %{buildroot}%{_sysconfdir}/sysconfig/harddrake2/service.conf
echo -e "AUTORECONFIGURE_RIGHT_XORG_DRIVER=yes\n" >> %{buildroot}%{_sysconfdir}/sysconfig/harddrake2/service.conf

install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/
install -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/

# consolehelper config
#

mkdir -p %{buildroot}%{_sysconfdir}/pam.d/ %{buildroot}%{_sysconfdir}/security/console.apps/

function make_consolehelper {
	pak="$1"

	# Workaround for consolehelper not working with capital-lettered files:
	# make rule files lowercase and add symlink with correct case in console.apps.
	pak_lc=${pak,,}
	ln -sf %{_bindir}/consolehelper %{buildroot}%{_bindir}/$pak
	cat > %{buildroot}%{_sysconfdir}/security/console.apps/$pak_lc <<EOF
USER=root
PROGRAM=%{_sbindir}/$pak
FALLBACK=false
SESSION=true
EOF
	cat > %{buildroot}%{_sysconfdir}/pam.d/$pak_lc <<EOF
#%%PAM-1.0
auth		include		config-util-user
account		include		config-util-user
session		include		config-util-user
EOF
	if [ "$pak" != "$pak_lc" ]; then
		ln -s $pak_lc %{buildroot}%{_sysconfdir}/security/console.apps/$pak
	fi
}

for pak in drakclock clock.pl keyboarddrake drakkeyboard mousedrake drakmouse drakfont drakscanner scannerdrake drakx11 Xdrakres draksound; do
	make_consolehelper $pak
done

mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
for pak in drakups drakauth logdrake draklog drakboot draksec drakxservices drakguard harddrake2 drakhardware drakedm diskdrake drakdisk adduserdrake drakperm; do
	cp %{SOURCE3} %{buildroot}%{_datadir}/polkit-1/actions/$pak.policy
	sed -i "s/@pak@/$pak/" %{buildroot}%{_datadir}/polkit-1/actions/$pak.policy
	cat > %{buildroot}%{_bindir}/$pak <<EOF
#!/bin/sh
pkexec %{_sbindir}/$pak "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/$pak
done

%find_lang libDrakX libDrakX.lang
%find_lang libDrakX-standalone libDrakX-standalone.lang
cat libDrakX.lang libDrakX-standalone.lang >> %{name}.list
sed -i '/localedrake/d' %{name}.list
sed -i '/draklocale/d' %{name}.list

%check
cd perl-install
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12490 |21mr|drkonqi-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DrKonqi crash handler for Plasma 5
Name:		drkonqi
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlrpcclient-devel
BuildRequires:	kuserfeedback-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
Conflicts:	plasma5-workspace < 5.11

%description
DrKonqi crash handler for Plasma 5.

%files -f %{name}5.lang
%{_kde5_applicationsdir}/org.kde.drkonqi.desktop
%{_kde5_applicationsdir}/org.kde.drkonqi.coredump.gui.desktop
%dir %{_kde5_datadir}/drkonqi/
%{_kde5_bindir}/drkonqi-coredump-gui
%{_kde5_datadir}/drkonqi/*
%{_kde5_datadir}/qlogging-categories5/drkonqi.categories
%{_kde5_libexecdir}/drkonqi
%{_kde5_libexecdir}/drkonqi-coredump-cleanup
%{_kde5_libexecdir}/drkonqi-coredump-launcher
%{_kde5_libexecdir}/drkonqi-coredump-processor
%{_qt5_plugindir}/drkonqi/KDECoredumpNotifierTruck.so
%{_prefix}/lib/systemd/system/drkonqi-coredump-processor@.service
%{_prefix}/lib/systemd/user/drkonqi-coredump-cleanup.service
%{_prefix}/lib/systemd/user/drkonqi-coredump-cleanup.timer
%{_prefix}/lib/systemd/user/drkonqi-coredump-launcher.socket
%{_prefix}/lib/systemd/user/drkonqi-coredump-launcher@.service


#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12491 |21mr|drpm-0.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _hardened_build 1

%define major 0
%define libname %mklibname %name %major
%define libname_devel %mklibname -d %name

Name:		drpm
Version:	0.4.1
Release:	2
Summary:	A small library for fetching information from DeltaRPM packages
Group:		System/Libraries
License:	LGPLv2+
URL:		https://github.com/rpm-software-management/%{name}
Source0:	%{url}/releases/download/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	cmake >= 2.8
BuildRequires:	pkgconfig(cmocka) >= 1.0
%ifnarch %{armx} %{riscv} %{e2k}
BuildRequires:	valgrind
%endif
BuildRequires:	doxygen

%package -n %{libname}
Summary:	A small library for fetching information from DeltaRPM packages
Group:		System/Libraries

%package -n %{libname_devel}
Summary:	C interface for the drpm library
Group:		Development/C
Provides:	%{name}-devel%{?_isa} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname}%{?_isa} = %{version}-%{release}

%description
The drpm package provides a small library allowing one to fetch
various info from DeltaRPM packages.

%description -n %{libname}
This package provides a small library allowing one to fetch
information from DeltaRPM packages.

%description -n %{libname_devel}
This package provides a C interface (drpm.h) for the drpm library.

%prep
%autosetup -p1

%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DINCLUDE_INSTALL_DIR=%{_includedir} -DWITH_ZSTD:BOOL=ON
%make

%install
cd ./build
%makeinstall_std
cd -

%files -n %{libname}
%{_libdir}/libdrpm.so.%{major}
%{_libdir}/libdrpm.so.%{major}.*
%license COPYING

%files -n %{libname_devel}
%{_libdir}/libdrpm.so
%{_includedir}/drpm.h
%{_libdir}/pkgconfig/drpm.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12492 |21mr|drv_z42-0.4.3-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Printer driver for the Lexmark Z42, Z43 and Z52 printer
Name: 		drv_z42
Version:	0.4.3
Release:	22
License:	GPLv2+
Group:		System/Printing
Url:		http://www.xs4all.nl/~pastolk/
Source:		http://www.xs4all.nl/~pastolk/drv_z42-%{version}.tar.gz
Source1:	z42-2.png
Source2:	lexmark.png
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gtk+-2.0)

%description
Driver for the Lexmark printers Z42, Z43, Z52, X73 and the Compaq IJ1200.

%files
%defattr(0644,root,root,0755)
%doc COPYING ChangeLog FAQ README
%attr(0755,root,root) %{_bindir}/z42_cmyk

#----------------------------------------------------------------------------

%package -n z42tool
Summary:	GUI for Lexmark printer maintence
Group:		System/Printing
Requires:	%{name} = %{EVRD}

%description -n z42tool
GUI tool to configure the Lexmark printers Z42, Z43, Z52, X73 and the Compaq
IJ1200.

%files -n z42tool
%defattr(0644,root,root,0755)
%doc z42tool/README
%{_datadir}/z42tool
%attr(0755,root,root) %{_bindir}/z42tool
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
pushd src
%__cc %{optflags} %{ldflags} -o z42_cmyk z42_cmyk.c
popd

pushd z42tool
%configure
%make
popd

%install
install -d %{buildroot}%{_bindir}

pushd src
    install -m0755 z42_cmyk %{buildroot}%{_bindir}
popd

pushd z42tool
    %makeinstall_std
popd

# icon
install -d %{buildroot}%{_miconsdir}
install -d %{buildroot}%{_iconsdir}
install -d %{buildroot}%{_liconsdir}

convert %{SOURCE2} -strip -resize 16x16 %{buildroot}%{_miconsdir}/z42tool.png
convert %{SOURCE2} -strip -resize 32x32 %{buildroot}%{_iconsdir}/z42tool.png
convert %{SOURCE2} -strip -resize 48x48 %{buildroot}%{_liconsdir}/z42tool.png

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/z42tool.desktop << EOF
[Desktop Entry]
Name=Lexmark printer manager
Name[ru]=Управление принтерами Lexmark
Comment=Мониторинг, настройка, состояние картриджей ...
Exec=%{_bindir}/z42tool
Icon=z42tool
Terminal=false
Type=Application
Categories=System;Monitor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12493 |21mr|dssi-1.1.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Disposable Soft Synth Interface examples and utilities
Name:		dssi
Version:	1.1.1
Release:	12
License:	LGPLv2+
Group:		Sound
Url:		http://dssi.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/dssi/%{name}-%{version}.tar.gz
Source1:	dssi.sh.bz2
Source2:	dssi.csh.bz2
BuildRequires:	ladspa-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(liblo)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)

%description
DSSI (pronounced "dizzy") is an API for audio plugins, with particular
application for software synthesis plugins with native user
interfaces. DSSI is an open specification developed for use in Linux
audio applications, although portable to other platforms. It may be
thought of as LADSPA-for-instruments, or something comparable to VSTi.

This package contains examples and utilities.

%files
%doc ChangeLog README
%{_bindir}/jack-dssi-host
%{_bindir}/dssi_analyse_plugin
%{_bindir}/dssi_list_plugins
%{_bindir}/dssi_osc_send
%{_bindir}/dssi_osc_update
%{_bindir}/karplong
%{_bindir}/less_trivial_synth
%{_bindir}/trivial_sampler
%{_bindir}/trivial_synth
%{_libdir}/dssi/*.so
%{_libdir}/dssi/less_trivial_synth/LTS_*
%{_libdir}/dssi/trivial_sampler/trivial_sampler_*
%{_mandir}/man1/dssi_osc_send.1*
%{_mandir}/man1/dssi_osc_update.1*
%{_mandir}/man1/jack-dssi-host.1*
%{_mandir}/man1/dssi_analyse_plugin.1*
%{_mandir}/man1/dssi_list_plugins.1*
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/profile.d/dssi*sh

#----------------------------------------------------------------------------

%package devel
Summary:	Disposable Soft Synth Interface API
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	ladspa-devel
Requires:	pkgconfig(alsa)

%description devel
DSSI (pronounced "dizzy") is an API for audio plugins, with particular
application for software synthesis plugins with native user
interfaces. DSSI is an open specification developed for use in Linux
audio applications, although portable to other platforms. It may be
thought of as LADSPA-for-instruments, or something comparable to VSTi.

DSSI consists of a C language API for use by plugins and hosts, based
on the LADSPA API, and an OSC (Open Sound Control) API for use in user
interface to host communications. The DSSI specification consists of
an RFC which describes the background for the proposal and defines the
OSC part of the specification, and a documented header file which
defines the C API.

%files devel
%doc doc/TODO doc/*.txt
%{_includedir}/dssi.h
%{_libdir}/pkgconfig/dssi.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/profile.d/dssi.sh
bzcat %{SOURCE2} > %{buildroot}%{_sysconfdir}/profile.d/dssi.csh
perl -pi -e "s!__LIBDIR__!%{_libdir}!" %{buildroot}%{_sysconfdir}/profile.d/dssi*sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12494 |21mr|dtc-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 4
%define libname %mklibname fdt %{api} %{major}
%define devname %mklibname -d fdt %{api}
%define devnamestatic %mklibname -d fdt_static %{api}

Name:		dtc
Version:	1.6.0
Release:	1
Summary:	Device Tree Compiler
Group:		Development/Other
License:	GPLv2+
URL:		http://devicetree.org/Device_Tree_Compiler
Source0:	https://www.kernel.org/pub/software/utils/dtc/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	swig
BuildRequires:	pkgconfig(python3)

%description
The Device Tree Compiler generates flattened Open Firmware style device trees
for use with PowerPC machines that lack an Open Firmware implementation and
ARM/AArch64 devices that don't implement UEFI.

%package -n	%{libname}
Summary:	Device tree library
Group:		System/Libraries

%description -n %{libname}
libfdt is a library to process Open Firmware style device trees on various
architectures.

%package -n	%{devname}
Summary:	Development headers for device tree library
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	fdt-devel = %{version}-%{release}

%description -n	%{devname}
This package provides development files for libfdt

%package -n	%{devnamestatic}
Summary:	Development headers for device tree library
Group:		System/Libraries
Requires:	%{name}-devel = %{version}-%{release}
Provides:	fdt-static-devel = %{version}-%{release}

%description -n	%{devnamestatic}
This package provides development files for libfdt

%package -n python3-%{name}
Summary:	Python 3 bindings for %{name}
Provides:	python3-libfdt = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n python3-%{name}
This package provides python3 bindings for %{name}.

%prep
%setup -q
%autopatch -p1
sed -i 's/python2/python3/' pylibfdt/setup.py

%build
%setup_compile_flags

sed -i \
	-e '/^CFLAGS =/s:=:+= %{optflags}:' \
	-e '/^CPPFLAGS =/s:=:+=:' \
	-e '/^WARNINGS =/s:=:+=:' \
	-e "/^PREFIX =/s:=.*:= %{_prefix}:" \
	-e "/^LIBDIR =/s:=.*:= \%{_libdir}:" \
	Makefile

# no-macro-redefined is a workaround for flex bug
# https://github.com/westes/flex/issues/155
%make CC=%{__cc} LDFLAGS="%{optflags}" WARNINGS+=-Wno-macro-redefined

%install
%make_install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \
             LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir} V=1

%files
%{_bindir}/*

%files -n %{libname}
%{_libdir}/libfdt-%{version}.so
%{_libdir}/libfdt.so.*

%files -n %{devname}
%doc GPL
%{_libdir}/libfdt.so
%{_includedir}/*

%files -n %{devnamestatic}
%{_libdir}/libfdt.a

%files -n python3-%{name}
%{python3_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12495 |21mr|dtc-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 1
%define libname %mklibname fdt %{api} %{major}
%define devname %mklibname -d fdt %{api}
%define devnamestatic %mklibname -d fdt_static %{api}

Name:		dtc
Version:	1.6.1
Release:	1
Summary:	Device Tree Compiler
Group:		Development/Other
License:	GPLv2+
URL:		http://devicetree.org/Device_Tree_Compiler
Source0:	https://www.kernel.org/pub/software/utils/dtc/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	swig
BuildRequires:	pkgconfig(python3)

%description
The Device Tree Compiler generates flattened Open Firmware style device trees
for use with PowerPC machines that lack an Open Firmware implementation and
ARM/AArch64 devices that don't implement UEFI.

%package -n	%{libname}
Summary:	Device tree library
Group:		System/Libraries

%description -n %{libname}
libfdt is a library to process Open Firmware style device trees on various
architectures.

%package -n	%{devname}
Summary:	Development headers for device tree library
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	fdt-devel = %{version}-%{release}

%description -n	%{devname}
This package provides development files for libfdt

%package -n	%{devnamestatic}
Summary:	Development headers for device tree library
Group:		System/Libraries
Requires:	%{name}-devel = %{version}-%{release}
Provides:	fdt-static-devel = %{version}-%{release}

%description -n	%{devnamestatic}
This package provides development files for libfdt

%package -n python3-%{name}
Summary:	Python 3 bindings for %{name}
Provides:	python3-libfdt = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n python3-%{name}
This package provides python3 bindings for %{name}.

%prep
%setup -q
%autopatch -p1
sed -i 's/python2/python3/' pylibfdt/setup.py

%ifarch %{e2k}
# -MG is an unrecognized option for lcc
sed -i 's,-MG,,' Makefile
echo '#define DTC_VERSION "DTC %{version}"' > version_gen.h
%endif

%build
%setup_compile_flags

sed -i \
	-e '/^CFLAGS =/s:=:+= %{optflags}:' \
	-e '/^CPPFLAGS =/s:=:+=:' \
	-e '/^WARNINGS =/s:=:+=:' \
	-e "/^PREFIX =/s:=.*:= %{_prefix}:" \
	-e "/^LIBDIR =/s:=.*:= \%{_libdir}:" \
	Makefile

# no-macro-redefined is a workaround for flex bug
# https://github.com/westes/flex/issues/155
%make CC=%{__cc} LDFLAGS="%{optflags}" WARNINGS+=-Wno-macro-redefined

%install
%make_install DESTDIR=$RPM_BUILD_ROOT PREFIX=$RPM_BUILD_ROOT/usr \
             LIBDIR=%{_libdir} BINDIR=%{_bindir} INCLUDEDIR=%{_includedir} V=1

%files
%{_bindir}/*

%files -n %{libname}
%{_libdir}/libfdt-%{version}.so
%{_libdir}/libfdt.so.*

%files -n %{devname}
%doc GPL
%{_libdir}/libfdt.so
%{_includedir}/*

%files -n %{devnamestatic}
%{_libdir}/libfdt.a

%files -n python3-%{name}
%{python3_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12496 |21mr|duktape-2.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 207
%define libname %mklibname %{name} %{major}
%define libnamed %mklibname %{name}d %{major}
%define devname %mklibname %{name} -d

Summary:	Embeddable Javascript engine
Name:		duktape
Version:	2.7.0
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://duktape.org/
Source0:	http://duktape.org/%{name}-%{version}.tar.xz

%description
Duktape is an embeddable Javascript engine, with a focus on portability
and compact footprint.

This package contains a commandline duk interpreter.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Embeddable Javascript engine shared library
Group:		System/Libraries

%description -n %{libname}
Embeddable Javascript engine shared library.

%files -n %{libname}
%{_libdir}/libduktape.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamed}
Summary:	Embeddable Javascript engine shared library
Group:		System/Libraries

%description -n %{libnamed}
Embeddable Javascript engine shared library.

%files -n %{libnamed}
%{_libdir}/libduktaped.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamed} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and header files for developing programs based on %{name}.

%files -n %{devname}
%{_includedir}/duk_config.h
%{_includedir}/duktape.h
%{_libdir}/libduktape.so
%{_libdir}/libduktaped.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%set_build_flags
mv Makefile.sharedlibrary Makefile
sed 's/-Wall -Wextra/$(CFLAGS)/g' -i Makefile
%make_build CFLAGS="$CFLAGS -D DUK_USE_FASTINT -w -lm"

%install
%make_install INSTALL_PREFIX="/" LIBDIR="%{_libdir}"
mv %{buildroot}/include/ %{buildroot}/%{_prefix}

sed -e's|@PREFIX@|%{_prefix}|' \
    -e's|@LIBDIR@|/%{_lib}|' \
    -e's|@VERSION@|%{version}|' < %{name}.pc.in > %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12497 |21mr|dump-0.4b47-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Programs for backing up and restoring filesystems
Name:		dump
Version:	0.4b47
Release:	1
License:	BSD
Group:		Archiving/Backup
Url:		http://sourceforge.net/projects/dump/
Source0: 	ftp://osdn.dl.sourceforge.net/pub/sourceforge/d/du/%{name}/%{name}-%{version}.tar.gz
Patch0:		dump-0.4b37-compile-fix.patch
Patch1:		dump_progname_mips.patch
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(com_err)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(zlib)
Requires:	rmt = %{EVRD}

%description
The dump package contains both dump and restore.  Dump examines files in
a filesystem, determines which ones need to be backed up, and copies
those files to a specified disk, tape or other storage medium.  The
restore command performs the inverse function of dump; it can restore a
full backup of a filesystem.  Subsequent incremental backups can then be
layered on top of the full backup.  Single files and directory subtrees
may also be restored from full or partial backups.

%files
%doc AUTHORS ChangeLog KNOWNBUGS NEWS README REPORTING-BUGS TODO MAINTAINERS dump.lsm
%license COPYING
%attr(0664,root,disk) %config(noreplace) %{_sysconfdir}/dumpdates
#attr(6755,root,tty) {_sbindir}/dump
%{_sbindir}/dump*
#attr(6755,root,tty) {_sbindir}/restore
%{_sbindir}/restore*
%{_sbindir}/rdump
%{_sbindir}/rrestore
%{_mandir}/man8/dump.8*
%{_mandir}/man8/rdump.8*
%{_mandir}/man8/restore.8*
%{_mandir}/man8/rrestore.8*

#----------------------------------------------------------------------------

%package -n rmt
Summary:	Provides certain programs with access to remote tape devices
Group:		Archiving/Backup
Provides:	/sbin/rmt

%description -n rmt
The rmt utility provides remote access to tape devices for programs
like dump (a filesystem backup program), restore (a program for
restoring files from a backup) and tar (an archiving program).

%files -n rmt
%license COPYING
%{_sbindir}/ermt
%{_sbindir}/rmt
%{_sysconfdir}/rmt
%{_mandir}/man8/rmt.8*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
rm -f compat/include/{lzoconf,minilzo}.h
rm -f compat/lib/minilzo.c

%build
autoreconf -fi
%configure \
	--with-manowner=root \
	--with-mangrp=root \
	--with-manmode=644 \
	--enable-ermt \
	--disable-kerberos \
	--disable-transselinux

%make_build OPT="$RPM_OPT_FLAGS -fPIC -Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes -Wno-char-subscripts"

%install
%make_install

for i in dump restore; do
  mv %{buildroot}%{_sbindir}/$i %{buildroot}%{_sbindir}/$i.ext3
  ln -s $i.ext3 %{buildroot}%{_sbindir}/$i.ext2
  ln -s $i.ext3 %{buildroot}%{_sbindir}/$i
done

pushd %{buildroot}
  mkdir .%{_sysconfdir}
  > .%{_sysconfdir}/dumpdates
  ln -s ..%{_sbindir}/rmt ./%{_sysconfdir}/rmt
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12498 |21mr|dumpet-2.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to dump and debug bootable CD images
Name:		dumpet
Version:	2.1
Release:	10
License:	GPLv2+
Group:		System/Base
Url:		https://fedorahosted.org/dumpet/
Source0:	https://fedorahosted.org/releases/d/u/dumpet/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(libxml-2.0)

%description
DumpET is a utility to aid in the debugging of bootable CD-ROM images.

%prep
%setup -q

%build
%make CFLAGS="%{optflags} $(pkg-config --cflags libxml-2.0)"

%install
mkdir -p %{buildroot}/%{_bindir}
%makeinstall_std 

%files
%doc README TODO COPYING
%{_bindir}/dumpet
%{_mandir}/man1/dumpet.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12499 |21mr|duplicity-0.8.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Untrusted/encrypted backup using rsync algorithm
Name:		duplicity
Version:	0.8.23
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://www.nongnu.org/duplicity/
Source0:	https://launchpad.net/duplicity/0.8-series/0.8.23/+download/%{name}-%{version}.tar.gz
BuildRequires:	librsync-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-scm)
BuildRequires:	python3dist(pytest-runner)
Requires:	gnupg2
Requires:	ncftp
Requires:	openssh-clients
Requires:	python3dist(lockfile)
Requires:	rsync
Requires:	python3dist(pygobject)
Requires:	python3dist(paramiko)
Requires:	python3dist(pexpect)
Recommends:	python3dist(boto)
Recommends:	python3dist(dropbox)

%description
Duplicity incrementally backs up files and directory by encrypting tar-format
volumes with GnuPG and uploading them to a remote (or local) file server. In
theory many remote backends are possible; right now local, ssh/scp, ftp, and
rsync backends are written. Because duplicity uses librsync, the incremental
archives are space efficient and only record the parts of files that have
changed since the last backup.  Currently duplicity supports deleted files,
full unix permissions, directories, symbolic links, fifos, etc., but not hard
links.

%files -f %{name}.lang
%doc CHANGELOG.md README.md
%{_bindir}/rdiffdir
%{_bindir}/duplicity
%{_mandir}/man1/*
%{py3_platsitedir}/duplicity
%{py3_platsitedir}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

#handle docs in files section
rm -Rf %{buildroot}%{_docdir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12500 |21mr|dvbsubs-0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Define Mandrake Linux version we are building for
%define mdkversion %(perl -pe '/(\\d+)\\.(\\d)\\.?(\\d)?/; $_="$1$2".($3||0)' /etc/mandrake-release)

%define name	dvbsubs
%define version	0.3
%define beta	0


%if %beta
%define release 0.%{beta}.%{mdkrel}
%else
%define release %{mdkrel}
%endif
%define debug_package %{nil}
Summary:	Dvbsubtitle tools	
Name:		%{name}
Version:	%{version}
Release: 12
Source0:	http://linuxtv.org/download/dvb/%{name}-%{version}.tar.bz2
Patch0:	dvbsubs-0.3-png-zlib.patch
License:	GPLv2
Group:		Video
URL:		http://linuxtv.org/dvb/

BuildRequires:	libxml2-devel 
BuildRequires:	freetype2-devel
BuildRequires:	png-devel

%description
DVB subtitles utilities.

%prep
%setup -q
%patch0 -p0

%build
%make

%install
#makeinstall_std
install -d -m755 %buildroot/%{_bindir}
install -m755 dvbsubs %buildroot/%{_bindir}/
install -m755 dvbtextsubs %buildroot/%{_bindir}/
install -m755 xml2spumux %buildroot/%{_bindir}/
install -m755 xml2srt %buildroot/%{_bindir}/

install -d -m755 %buildroot/%{_mandir}/man1
install -m755 dvbtextsubs.1 %buildroot/%{_mandir}/man1/


%files
%doc CHANGES COPYING README 
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12501 |21mr|dvdbackup-0.4.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DVD-Video creation framework
Name:		dvdbackup
Version:	0.4.2
Release:	6
License: 	GPLv3+
Group:		Archiving/Cd burning
Url:		http://sourceforge.net/projects/dvdbackup/
Source0:	http://downloads.sourceforge.net/dvdbackup/%{name}-%{version}.tar.xz
Patch0:		dvdbackup-0.4.2-libdvdread6.1.0.patch
Patch1:		dvdbackup-m4-macro.patch
BuildRequires:	pkgconfig(dvdread)

%description
DVD-Create will not just offer a free DVD Authoring solutions for Linux and
Unix. DVD-Create offers you a framework that enables you to write DVD creation,
editing, and backup software without needing to know all the secretes of
DVD-Video.

%files -f %{name}.lang
%doc NEWS README COPYING AUTHORS ABOUT-NLS 
%{_bindir}/%{name}
%{_mandir}/man1/dvdbackup.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12502 |21mr|dvd+rw-tools-7.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for burning on DVD+RW compliant burner
Name:		dvd+rw-tools
Version:	7.1
Release:	16
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		http://fy.chalmers.se/~appro/linux/DVD+RW/
Source0:	http://fy.chalmers.se/~appro/linux/DVD+RW/tools/%{name}-%{version}.tar.gz
Source1:	dvd+rw-mediainfo.1
# (fc) use genisoimage, not mkisofs by default (SUSE)
Patch0:		growisofs-genisoimage.patch
# fix build with gcc 4.3
Patch2:		dvd+rw-tools-limits.h_fix.diff
# (fc) Allow burn small images on DVD-DL (Fedora bug #476154)
Patch3:		dvd+rw-tools-7.0-dvddl.patch
# (fc) fix widechar overflow (Fedora bug #426068)
Patch4:		dvd+rw-tools-7.0-wctomb.patch
# (fc) fix exit status of dvd+rw-format (Fedora bug #243036)
Patch5:		dvd+rw-tools-7.0-wexit.patch
# (fc) use rpm_opt_flags (SUSE)
Patch6:		rpm_opt_flags.diff
Patch7:		dvd+rw-tools-7.1-sysmacro-inc.patch
Requires:	cdrkit-genisoimage

%description
Even though a modified kernel can let you put for example an ext2 file
system on DVD+RW, it's probably not very practical, because you most
likely want to access the data on an arbitrary computer. Or in other
words you most likely want ISO9660. The trouble is that you might as
well want to add data now and then. And what options do you have in
the lack of multiple sessions (no, DVD+RW has no notion of multiple
sessions)? Complete re-mastering which takes more and more time as
data set grows? Well, yes, unless you employ growisofs! Growisofs
provides the way to both lay down and grow an ISO9660 file system on
(as well as to burn an arbitrary pre-mastered image to) all supported
optical media.

%files
%doc index.html
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .genisoimage
%patch2 -p1 -b .limits
%patch3 -p1 -b .dvddl
%patch4 -p1 -b .wctomb
%patch5 -p1 -b .wexit
%patch6 -p1 -b .rpm_opt_flags
%patch7 -p1 -b .sysmacro

%build
%make LDFLAGS="%{ldflags}"
%make rpl8 btcflash LDFLAGS="%{ldflags}"

%install
make install prefix=%{buildroot}%{_prefix}
install -d %{buildroot}%{_sbindir}
install -m755 rpl8 %{buildroot}%{_sbindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12503 |21mr|dvgrab-3.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DV grabber through the FireWire interface
Name:		dvgrab
Version:	3.5
Release:	13
License:	GPLv2+
Group:		Video
Url:		http://www.kinodv.org/
Source0:	http://prdownloads.sourceforge.net/kino/%{name}-%{version}.tar.gz
Patch0:		dvgrab-3.5-use-best-quality-for-DV-to-JPEG-decoding.patch
Patch1:		dvgrab-3.5-gcc6.patch
BuildRequires:	linux-userspace-headers
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libavc1394)
BuildRequires:	pkgconfig(libiec61883)
BuildRequires:	pkgconfig(libraw1394)
BuildRequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(libquicktime)

%description
Dvgrab is a small utility that grabs AVI-2 video from a DV camera using the
IEEE-1394 bus (aka FireWire).

%files
%doc AUTHORS ChangeLog README TODO
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
perl -p -i -e 's/quicktime\/quicktime.h/lqt\/quicktime.h/g' filehandler.h

%build
%configure \
	--with-libjpeg
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12504 |21mr|dwz-0.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	DWARF optimization and duplicate removal tool
Name:		dwz
Version:	0.14
Release:	1
License:	GPLv2+ and GPLv3+
Group:		Development/Tools
# git archive --format=tar --remote=git://sourceware.org/git/dwz.git \
#   --prefix=%{name}-%{version}/ %{name}-%{version} \
#   | bzip2 -9 > %{name}-%{version}.tar.xz
Source0:	https://sourceware.org/ftp/dwz/releases/%{name}-%{version}.tar.xz
Patch0:		dwz-0.12-CFLAGS.patch
BuildRequires:	pkgconfig(libelf)
BuildRequires:  pkgconfig(libdw)

%description
The dwz package contains a program that attempts to optimize DWARF
debugging information contained in ELF shared libraries and ELF executables
for size, by replacing DWARF information representation with equivalent
smaller representation where possible and by reducing the amount of
duplication using techniques from DWARF standard appendix E - creating
DW_TAG_partial_unit compilation units (CUs) for duplicated information
and using DW_TAG_imported_unit to import it into each CU that needs it.

%files
%doc COPYING COPYING3 COPYING.RUNTIME
%{_bindir}/dwz
%{_mandir}/man1/dwz.1*

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%make_build CC=%{__cc} CFLAGS='%{optflags}' LDFLAGS='%{ldflags}' \
  prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}

%install
%make_install prefix=%{_prefix} mandir=%{_mandir} bindir=%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12505 |21mr|dynalink-0.7-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          dynalink
Version:       0.7
Release:       14
Summary:       Dynamic Linker Framework for Languages on the JVM
License:       ASL 2.0 or BSD
URL:           http://szegedi.github.com/dynalink/
Source0:       https://github.com/szegedi/%{name}/archive/%{version}.tar.gz

BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
# test deps
BuildRequires: mvn(junit:junit)
BuildRequires: maven-local

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Dynalink is an invoke-dynamic-based high-level linking and
meta-object protocol library. It enables creation of
languages on the JVM that can easily inter-operate with
plain Java objects and each other.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

%pom_remove_plugin com.github.koraktor:mavanagaiata

sed -i 's/\r//' LIMITATIONS README.markdown

%mvn_file : %{name}

%build

# Disable test suite, build problems on arm builder
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LIMITATIONS README.markdown
%license LICENSE-Apache-2.0.txt LICENSE-BSD.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-Apache-2.0.txt LICENSE-BSD.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12506 |21mr|dyninst-10.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dyninst_base dyninst-%{version}
%global testsuite_base testsuite-%{version}

%define tsuite_ver 10.1.0

Name:		dyninst
Version:	10.2.1
Release:	1
Summary:	An API for Run-time Code Generation
Group:		System/Base
License:	LGPLv2+
URL:		http://www.dyninst.org
Source0: https://github.com/dyninst/dyninst/archive/v%{version}/dyninst-%{version}.tar.gz
Source1: https://github.com/dyninst/testsuite/archive/v%{tsuite_ver}/testsuite-%{tsuite_ver}.tar.gz
BuildRequires: elfutils-devel
BuildRequires: boost-devel
BuildRequires: binutils-devel
BuildRequires: cmake
BuildRequires: gomp-devel
BuildRequires: tirpc-devel
BuildRequires: tbb-devel

# Extra requires just for the testsuite
BuildRequires: gcc-gfortran nasm libxml2-devel
ExclusiveArch:	%{ix86} %{x86_64} ppc64le aarch64

# Testsuite files should not provide/require anything
%{?filter_setup:
%filter_provides_in %{_libdir}/dyninst/testsuite/
%filter_requires_in %{_libdir}/dyninst/testsuite/
%filter_setup
}

%description
Dyninst is an Application Program Interface (API) to permit the insertion of
code into a running program. The API also permits changing or removing
subroutine calls from the application program. Run-time code changes are
useful to support a variety of applications including debugging, performance
monitoring, and to support composing applications out of existing packages.
The goal of this API is to provide a machine independent interface to permit
the creation of tools and applications that use run-time code patching.

%files
%exclude %{_bindir}/cfg_to_dot
%exclude /usr/bin/codeCoverage
%exclude /usr/bin/parseThat
%exclude /usr/bin/unstrip
%exclude /usr/bin/ddb.db
%exclude /usr/bin/params.db
%exclude /usr/bin/unistd.db
%dir %{_libdir}/dyninst
%{_libdir}/dyninst/*.so.*
# dyninst mutators dlopen the runtime library
%{_libdir}/dyninst/libdyninstAPI_RT.so
%doc %{dyninst_base}/COPYRIGHT
%doc %{dyninst_base}/LICENSE.md
%config(noreplace) /etc/ld.so.conf.d/*

#---------------------------------------------------------------------------
%package doc
Summary:	Documentation for using the Dyninst API
Group:		Documentation

%description doc
dyninst-doc contains API documentation for the Dyninst libraries.

%files doc
%doc %{dyninst_base}/dataflowAPI/doc/dataflowAPI.pdf
%doc %{dyninst_base}/dynC_API/doc/dynC_API.pdf
%doc %{dyninst_base}/dyninstAPI/doc/dyninstAPI.pdf
%doc %{dyninst_base}/instructionAPI/doc/instructionAPI.pdf
%doc %{dyninst_base}/parseAPI/doc/parseAPI.pdf
%doc %{dyninst_base}/patchAPI/doc/patchAPI.pdf
%doc %{dyninst_base}/proccontrol/doc/proccontrol.pdf
%doc %{dyninst_base}/stackwalk/doc/stackwalk.pdf
%doc %{dyninst_base}/symtabAPI/doc/symtabAPI.pdf

#---------------------------------------------------------------------------

%package devel
Summary:	Header files for compiling programs with Dyninst
Group:		Development/Other
Requires:	dyninst = %{EVRD}
Requires:	boost-devel
Requires:	tbb-devel

%description devel
dyninst-devel includes the C header files that specify the Dyninst user-space
libraries and interfaces. This is required for rebuilding any program
that uses Dyninst.

%files devel
%{_includedir}/dyninst
%{_libdir}/dyninst/*.so
%{_libdir}/cmake/Dyninst

#---------------------------------------------------------------------------

%package static
Summary:	Static libraries for the compiling programs with Dyninst
Group:		Development/Other
Requires:	dyninst-devel = %{EVRD}

%description static
dyninst-static includes the static versions of the library files for
the dyninst user-space libraries and interfaces.

%files static
%{_libdir}/dyninst/*.a

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version} -c

# cotire seems to cause non-deterministic gcc errors
# https://bugzilla.redhat.com/show_bug.cgi?id=1420551
sed -i.cotire -e 's/USE_COTIRE true/USE_COTIRE false/' %{dyninst_base}/cmake/shared.cmake

%build
CFLAGS="$CFLAGS $RPM_OPT_FLAGS"
LDFLAGS="$LDFLAGS $RPM_LD_FLAGS"
CXXFLAGS="$CFLAGS"
export CFLAGS CXXFLAGS LDFLAGS

pushd %{dyninst_base}
%cmake \
 -DENABLE_STATIC_LIBS=1 \
 -DINSTALL_LIB_DIR:PATH=%{_libdir}/dyninst \
 -DINSTALL_INCLUDE_DIR:PATH=%{_includedir}/dyninst \
 -DINSTALL_CMAKE_DIR:PATH=%{_libdir}/cmake/Dyninst \
 -DCMAKE_BUILD_TYPE=None \
 -DCMAKE_SKIP_RPATH:BOOL=YES

%make_build
popd

%install
pushd %{dyninst_base}
%make_install -C build
mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/dyninst" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf
popd

# It doesn't install docs the way we want, so remove them.
# We'll just grab the pdfs later, directly from the build dir.
rm -fv %{buildroot}%{_docdir}/*-%{version}.pdf





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12507 |21mr|e2fsprogs-1.46.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _root_sbindir /sbin
%define _root_libdir /%{_lib}

# Library package should be slpit later
%define major 2
%define libname %mklibname ext2fs %{major}
%define devname %mklibname ext2fs -d

%define git_url git://git.kernel.org/pub/scm/fs/ext2/e2fsprogs.git
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Utilities used for ext2/ext3/ext4 filesystems
Name:		e2fsprogs
Version:	1.46.6
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://e2fsprogs.sourceforge.net
Source0:	https://www.kernel.org/pub/linux/kernel/people/tytso/e2fsprogs/v%{version}/%{name}-%{version}.tar.gz
Source1:	e3jsize
# https://git.yoctoproject.org/cgit/cgit.cgi/meta-selinux/tree/recipes-devtools/e2fsprogs
Patch0:		misc_create_inode.c-label_rootfs.patch
Patch1:		e2fsprogs-1.43.7-fuse3.patch

BuildRequires:	gettext
BuildRequires:	texinfo
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(fuse3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)

%if %{with selinux}
BuildRequires:	selinux-devel
%endif

%description
The e2fsprogs package contains a number of utilities for creating,
checking, modifying and correcting any inconsistencies in ext2, ext3,
and ext4 filesystems. E2fsprogs contains e2fsck (used to repair
filesystem inconsistencies after an unclean shutdown), mke2fs (used to
initialize a partition to contain an empty ext2 filesystem), debugfs
(used to examine the internal structure of a filesystem, to manually
repair a corrupted filesystem or to create test cases for e2fsck), tune2fs
(used to modify filesystem parameters), resize2fs to grow and shrink
unmounted filesystems, and most of the other core ext2fs filesystem
utilities.

%files -f %{name}.lang
%doc README
%{_root_sbindir}/badblocks
%{_root_sbindir}/debugfs
%{_root_sbindir}/dumpe2fs
%{_root_sbindir}/e2fsck
%{_root_sbindir}/e2fsck.static
%{_root_sbindir}/e2image
%{_root_sbindir}/e2label
%{_root_sbindir}/e2mmpstatus
%{_root_sbindir}/e2scrub
%{_root_sbindir}/e2scrub_all
%{_root_sbindir}/e2undo
%{_root_sbindir}/e3jsize
%{_root_sbindir}/fsck.ext2
%{_root_sbindir}/fsck.ext3
%{_root_sbindir}/fsck.ext4
%{_root_sbindir}/logsave
%{_root_sbindir}/mke2fs
%{_root_sbindir}/mke3fs
%{_root_sbindir}/mkfs.ext2
%{_root_sbindir}/mkfs.ext3
%{_root_sbindir}/mkfs.ext4
%{_root_sbindir}/resize2fs
%{_root_sbindir}/tune2fs
/lib/systemd/system/e2scrub*
/lib/udev/rules.d/96-e2scrub.rules
%config(noreplace) %{_sysconfdir}/mke2fs.conf
%config(noreplace) %{_sysconfdir}/e2scrub.conf
# %%config(noreplace) %%{_sysconfdir}/cron.d/e2scrub_all
%{_bindir}/chattr
%{_bindir}/lsattr
%{_bindir}/fuse2fs
%{_mandir}/man1/chattr.1*
%{_mandir}/man1/lsattr.1*
%{_mandir}/man1/fuse2fs.1*
%{_mandir}/man5/e2fsck.conf.5*
%{_mandir}/man5/mke2fs.conf.5*
%{_mandir}/man5/ext2.5*
%{_mandir}/man5/ext3.5*
%{_mandir}/man5/ext4.5*
%{_mandir}/man8/badblocks.8*
%{_mandir}/man8/debugfs.8*
%{_mandir}/man8/dumpe2fs.8*
%{_mandir}/man8/e2freefrag.8*
%{_mandir}/man8/e2fsck.8*
%{_mandir}/man8/e2image.8*
%{_mandir}/man8/e2label.8*
%{_mandir}/man8/e2mmpstatus.8*
%{_mandir}/man8/e2scrub.8*
%{_mandir}/man8/e2scrub_all.8*
%{_mandir}/man8/e2undo.8.*
%{_mandir}/man8/e4crypt.8*
%{_mandir}/man8/e4defrag.8.*
%{_mandir}/man8/filefrag.8*
%{_mandir}/man8/fsck.ext2.8*
%{_mandir}/man8/fsck.ext3.8*
%{_mandir}/man8/fsck.ext4.8.*
%{_mandir}/man8/logsave.8*
%{_mandir}/man8/mke2fs.8*
%{_mandir}/man8/mkfs.ext2.8*
%{_mandir}/man8/mkfs.ext3.8*
%{_mandir}/man8/mkfs.ext4.8.*
%{_mandir}/man8/mklost+found.8*
%{_mandir}/man8/resize2fs.8*
%{_mandir}/man8/tune2fs.8*
%{_sbindir}/e2freefrag
%{_sbindir}/e4defrag
%{_sbindir}/e4crypt
%{_sbindir}/filefrag
%{_sbindir}/mklost+found
%{_libdir}/e2fsprogs
#%%{_libdir}/e2fsprogs/e2scrub_all_cron

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The libraries for Ext2fs
Group:		System/Libraries

%description -n %{libname}
The e2fsprogs package contains a number of utilities for creating,
checking, modifying and correcting any inconsistencies in ext2, ext3,
and ext4 filesystems. E2fsprogs contains e2fsck (used to repair
filesystem inconsistencies after an unclean shutdown), mke2fs (used to
initialize a partition to contain an empty ext2 filesystem), debugfs
(used to examine the internal structure of a filesystem, to manually
repair a corrupted filesystem or to create test cases for e2fsck), tune2fs
(used to modify filesystem parameters), resize2fs to grow and shrink
unmounted filesystems, and most of the other core ext2fs filesystem
utilities.

This package contains the shared libraries.

%files -n %{libname}
%doc README
%{_root_libdir}/libcom_err.so.%{major}*
%{_root_libdir}/libe2p.so.%{major}*
%{_root_libdir}/libext2fs.so.%{major}*
%{_root_libdir}/libss.so.%{major}*
%{_libdir}/e2initrd_helper

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The libraries for Ext2fs
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	ext2fs-devel = %{EVRD}

%description -n %{devname}
The e2fsprogs package contains a number of utilities for creating,
checking, modifying and correcting any inconsistencies in ext2, ext3,
and ext4 filesystems.  E2fsprogs contains e2fsck (used to repair
filesystem inconsistencies after an unclean shutdown), mke2fs (used to
initialize a partition to contain an empty ext2 filesystem), debugfs
(used to examine the internal structure of a filesystem, to manually
repair a corrupted filesystem or to create test cases for e2fsck), tune2fs
(used to modify filesystem parameters), resize2fs to grow and shrink
unmounted filesystems, and most of the other core ext2fs filesystem
utilities.

You should install %{libname} to use tools that compile with ext2fs
features.

%files -n %{devname}
%doc RELEASE-NOTES
%{_infodir}/libext2fs.info*
%{_bindir}/compile_et
%{_mandir}/man1/compile_et.1*
%{_bindir}/mk_cmds
%{_mandir}/man1/mk_cmds.1*
%{_libdir}/pkgconfig/*
%{_libdir}/libcom_err.so
%{_libdir}/libe2p.a
%{_libdir}/libe2p.so
%{_libdir}/libext2fs.a
%{_libdir}/libext2fs.so
%{_libdir}/libcom_err.a
%{_libdir}/libss.so
%{_datadir}/et
%{_datadir}/ss
%{_includedir}/com_err.h
%{_includedir}/et
%{_includedir}/ext2fs
%{_includedir}/ss
%dir %{_includedir}/e2p
%{_includedir}/e2p/e2p.h
%{_mandir}/man3/com_err.3*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Remove flawed tests
rm -rf tests/m_rootdir_acl

rm -f configure
autoconf

# Fix build:
chmod 644 po/*.po

%build
%global optflags %{optflags} -I%{_includedir}/fuse3
%configure \
	--enable-elf-shlibs \
	--disable-libblkid \
	--disable-libuuid \
	--disable-fsck \
	--disable-uuidd \
	--enable-symlink-install
%make_build
%make_build -C e2fsck e2fsck.static

%check
LC_ALL=C make check

%install
export PATH=/sbin:$PATH

%make_install install-libs \
	root_sbindir=%{_root_sbindir} root_libdir=%{_root_libdir}

for i in libcom_err.so.2 libe2p.so.2 libext2fs.so.2 libss.so.2; do
	ln -s $i %{buildroot}%{_root_libdir}/${i%.[0-9]}
done

# remove static libraries with a shared counterpart
rm -f  %{buildroot}%{_libdir}/libss.a \
       %{buildroot}%{_root_libdir}/libcom_err.so \
       %{buildroot}%{_root_libdir}/libe2p.so \
       %{buildroot}%{_root_libdir}/libext2fs.so \
       %{buildroot}%{_root_libdir}/libss.so

%find_lang %{name}

chmod +x %{buildroot}%{_bindir}/{mk_cmds,compile_et}

install -m 755 e2fsck/e2fsck.static %{buildroot}%{_root_sbindir}
install -m 755 %{SOURCE1} %{buildroot}%{_root_sbindir}
ln -f %{buildroot}%{_root_sbindir}/mke2fs \
	%{buildroot}%{_root_sbindir}/mke3fs

# We don't need the cron job, use a systemd timer if necessary
rm -rf %{buildroot}%{_sysconfdir}/cron.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12508 |21mr|easymock-3.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           easymock
Version:        3.6
Release:        4
Summary:        Easy mock objects
License:        ASL 2.0
URL:            http://www.easymock.org

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
# Remove bundled binaries which cannot be easily verified for licensing
Source1:        generate-tarball.sh

Patch1:         0001-Disable-android-support.patch
Patch2:         0002-Unshade-cglib-and-asm.patch
Patch3:         0003-Fix-OSGi-manifest.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(cglib:cglib)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.apache.maven.surefire:surefire-junit47)
BuildRequires:  mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.objenesis:objenesis)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.testng:testng)
# xmvn-builddep misses this:
BuildRequires:  mvn(org.apache:apache-jar-resource-bundle)

Obsoletes:      %{name}3 < 3.4
Provides:       %{name}3 = %{version}-%{release}
Obsoletes:      %{name}2 < 2.5.2-10


%description
EasyMock provides Mock Objects for interfaces in JUnit tests by generating
them on the fly using Java's proxy mechanism. Due to EasyMock's unique style
of recording expectations, most refactorings will not affect the Mock Objects.
So EasyMock is a perfect fit for Test-Driven Development.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.


%prep
%setup -q -n %{name}-%{name}-%{version}

%patch1 -p1
%patch2 -p1
%patch3 -p1

%pom_remove_plugin :maven-license-plugin
%pom_remove_plugin :maven-timestamp-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin core

# remove android support
rm core/src/main/java/org/easymock/internal/Android*.java
rm core/src/test/java/org/easymock/tests2/ClassExtensionHelperTest.java
%pom_disable_module test-android
%pom_remove_dep :dexmaker core

# unbundle asm and cglib
%pom_disable_module test-nodeps
%pom_remove_plugin :maven-shade-plugin core

# missing test deps
%pom_disable_module test-integration
%pom_disable_module test-osgi

# remove some warning caused by unavailable plugin
%pom_remove_plugin org.codehaus.mojo:versions-maven-plugin

# For compatibility reasons
%mvn_file ":easymock{*}" easymock@1 easymock3@1

# ssh not needed during our builds
%pom_xpath_remove pom:extensions

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%license core/LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license core/LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12509 |21mr|easypaint-0.1.1-6.git81d7a8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname EasyPaint
%define commit 81d7a87d870f7f6f8069da305bfd5a1677637e56
%define short_commit %(echo %{commit} | head -c 6)

Summary:	A simple graphics painting program
Name:		easypaint
Version:	0.1.1
Release:	6.git%{short_commit}.1
License:	MIT
Group:		Graphics
Url:		https://github.com/Gr1N/EasyPaint
Source0:	https://github.com/Gr1N/EasyPaint/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source10:	easypaint_de_DE.ts
Source11:	easypaint_pl_PL.ts
Patch0:		easypaint-0.1.1-add-translations.patch
Patch1:		easypaint-0.1.1-fix-incomplete-type.patch
Patch2:		easypaint-0.1.1-fix-translate.patch
Patch3:		easypaint-0.1.1-hard-ru-translate.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5PrintSupport)

%description
EasyPaint is a simple graphics painting program.

%files
%doc AUTHORS README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}_64.png

#----------------------------------------------------------------------------

%prep
%autosetup -p2 -n %{oname}-%{commit}

sed -i /^Version=0/d sources/media/easypaint.desktop

cp %{SOURCE10} %{SOURCE11} sources/translations/

%build
%qmake_qt5 sources/%{name}.pro

%install
%makeinstall_qt

mkdir -p %{buildroot}%{_datadir}/%{name}/translations/
for i in sources/translations/*.ts; do
	nametr=$(echo $i |rev |cut -d. -f2 |cut -d/ -f1 |rev)
	lconvert-qt5 $i -o %{buildroot}%{_datadir}/%{name}/translations/$nametr.qm
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12510 |21mr|easytag-2.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tag editor for MP3, OGG and some other files
Name:		easytag
Version:	2.4.3
Release:	1
Epoch:	1
License:	GPLv3+
Group:		Sound
Url:		https://wiki.gnome.org/Apps/EasyTAG
Source0:	https://download.gnome.org/sources/%{name}/2.4/%{name}-%{version}.tar.xz
Source1:	easytag_ru.po.tar.gz
BuildRequires:	appdata-tools
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	itstool
BuildRequires:	intltool
BuildRequires:	libmp4v2-utils
BuildRequires:	yelp
BuildRequires:	yelp-tools
BuildRequires:	xsltproc
BuildRequires:	id3lib-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)
Requires:	yelp

%description
EasyTAG is an utility for viewing and editing tags of MP3, MP2, FLAC,
Ogg Vorbis, MP4/AAC, MusePack, Wavpack, Speex and Monkey's Audio
files. Its simple and nice GTK+ interface makes tagging easier under
GNU/Linux.
Features:
- View, edit, write tags of MP3, MP2 files (ID3 tag with pictures),
  FLAC files (FLAC Vorbis tag), Ogg Vorbis files (Ogg Vorbis tag),
  MP4/AAC (MP4/AAC tag), and MusePack, Wavpack, Monkey's Audio files
  (APE tag), Speex files, Opus files,
- Can edit more tag fields : Title, Artist, Album, Disc Album, Year,
  Track Number, Genre, Comment, Composer, Original Artist/Performer,
  Copyright, URL and Encoder name,
- Auto tagging: parse filename and directory to complete automatically
  the fields (using masks),
- Ability to rename files and directories from the tag (using masks) or by
  loading a text file,
- Process selected files of the selected directory,
- Ability to browse subdirectories,
- Recursion for tagging, removing, renaming, saving...,
- Can set a field (artist, title,...) to all other files,
- Read file header informations (bit-rate, time, ...) and display them,
- Auto completion of the date if a partial is entered,
- Undo and redo last changes,
- Ability to process fields of tag and file name (convert letters into
  uppercase, downcase, ...),
- Ability to open a directory or a file with an external program,
- CDDB support using Freedb.org servers (manual and automatic search),
- A tree based browser or a view by Artist & Album,
- A list to select files,
- A playlist generator window,
- A file searching window,
- Simple and explicit interface!,

%files -f %{name}.lang
%doc COPYING.GPL3 ChangeLog README TODO THANKS
%doc %{_datadir}/help/*/%{name}/*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}*.*
%{_datadir}/glib-2.0/schemas/org.gnome.EasyTAG.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.EasyTAG.gschema.xml

#----------------------------------------------------------------------------

%package nautilus
Summary:	Nautilus extension for opening in EasyTAG
Group:		Sound
License:	GPLv3+
Requires:	%{name} = %{EVRD}

%description nautilus
Nautilus extension to add "Open with EasyTAG" to the Nautilus context menu, for
easier access to EasyTAG when opening directories and audio files.

%files nautilus
%doc COPYING.GPL3 ChangeLog README TODO THANKS
%{_datadir}/appdata/%{name}-nautilus.metainfo.xml
%{_libdir}/nautilus/extensions-3.0/libnautilus-%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%configure
%make


%install
%makeinstall_std

%find_lang %{name}

desktop-file-install --vendor="" \
	--remove-mime-type="x-directory/normal" \
	--add-mime-type="inode/directory" \
	--remove-category="Editor" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12511 |21mr|ebay-cors-filter-1.0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          ebay-cors-filter
Version:       1.0.1
Release:       12
Summary:       eBay CORS filter
License:       ASL 2.0
URL:           https://github.com/eBay/cors-filter
Source0:       https://github.com/eBay/cors-filter/archive/cors-filter-%{version}.tar.gz
Patch0:        %{name}-1.0.1-servlet.patch

BuildRequires: maven-local
BuildRequires: mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
CORS (Cross Origin Resource Sharing) is a mechanism supported by W3C to
enable cross origin requests in web-browsers. CORS requires support from
both browser and server to work. This is a Java servlet filter
implementation of server-side CORS for web containers such as Apache
Tomcat.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n cors-filter-cors-filter-%{version}
%patch0 -p1

%build
sed -i 's/\r//' LICENSE NOTICE README.md
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE
%doc README.md cors-flowchart.png

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12512 |21mr|ebook-tools-0.2.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libepub %mklibname epub %{major}
%define devepub %mklibname epub -d

Summary:	Tools for accessing and converting various ebook file formats
Name:		ebook-tools
Version:	0.2.2
Release:	10
License:	MIT
Group:		Publishing
Url:		http://sourceforge.net/projects/ebook-tools
Source0:	%{name}-%{version}.tar.gz
Patch0:		ebook-tools-0.2.2-libzip2.patch
Patch1:		ebook-tools-0.2.2-crashfix.patch
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	cmake

%description
Tools for accessing and converting various ebook file formats.

%files
%{_bindir}/einfo
%{_bindir}/lit2epub

#----------------------------------------------------------------------------

%package -n %{libepub}
Summary:	KDE shared library
Group:		System/Libraries

%description -n %{libepub}
%{name} library.

%files -n %{libepub}
%{_libdir}/libepub.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devepub}
Summary:	Devel stuff for %{name}
Group:		Development/KDE and Qt
Requires:	%{libepub} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	ebook-tools-devel < 0.2.1-2

%description -n %{devepub}
This package contains header files needed if you wish to build applications
based on %{name}

%files -n %{devepub}
%{_includedir}/*.h
%{_libdir}/libepub.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12513 |21mr|ecap-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name}  %{major}
%define develname %mklibname %{name} -d

Name:		ecap
Version:	1.0.1
Release:	1
Summary:	eCAP library
License:	BSD
Group:		Networking/Other
URL:		http://www.e-cap.org/
Source0:	http://www.measurement-factory.com/tmp/ecap/libecap-%{version}.tar.gz
BuildRequires:	kernel-headers

%description
eCAP is a software interface that allows a network application, such as an 
HTTP proxy or an ICAP server, to outsource content analysis and adaptation 
to a loadable module. For each applicable protocol message being 
processed, an eCAP-enabled application supplies the message details to the 
adaptation module and gets back an adapted message or a "not interested" 
response. These exchanges often include message bodies.

%package -n %{libname}
Summary:	Main library for dssl
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n %{libname}
DSSL library is a network caputre and SSL decryption toolkit useful for
snort and other SSL aware software.

%package -n %{develname}
Summary:	Header files for the dssl library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description    -n %{develname}
DSSL library is a network caputre and SSL decryption toolkit useful for
snort and other SSL aware software.  These are .h files.

%prep
%setup -qn libecap-%{version}

%build
%configure \
	--enable-static \
	--enable-shared \
	--enable-std-include

%make

%install
%makeinstall_std
rm -f %{buildroot}%{_libdir}/libecap.la

%files -n %{libname}
%doc LICENSE
%{_libdir}/libecap.so.%{major}*

%files  -n %{develname}
%{_includedir}/libecap/*
%{_libdir}/libecap.so
%{_libdir}/libecap.a
%{_libdir}/pkgconfig/libecap.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12514 |21mr|ecj-4.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Epoch: 1

%global qualifier R-4.12-201906051800

Summary: Eclipse Compiler for Java
Name: ecj
Version: 4.12
Release: 2
URL: http://www.eclipse.org
License: EPL-2.0

Source0: http://download.eclipse.org/eclipse/downloads/drops4/%{qualifier}/ecjsrc-%{version}.jar
Source1: https://repo1.maven.org/maven2/org/eclipse/jdt/ecj/3.18.0/ecj-3.18.0.pom
# Extracted from https://www.eclipse.org/downloads/download.php?file=/eclipse/downloads/drops4/%%{qualifier}/ecj-%%{version}.jar
Source4: MANIFEST.MF
# Java API stubs for newer JDKs
Source5: java10api.jar

# Always generate debug info when building RPMs (Andrew Haley)
Patch0: %{name}-rpmdebuginfo.patch

# Include java API stubs in build
Patch1: javaAPI.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: ant
BuildRequires: javapackages-local

%description
ECJ is the Java bytecode compiler of the Eclipse Platform.  It is also known as
the JDT Core batch compiler.

%prep
%setup -q -c
%patch0 -p1
%patch1

sed -i -e 's|debuglevel=\"lines,source\"|debug=\"yes\"|g' build.xml

cp %{SOURCE1} pom.xml
mkdir -p scripts/binary/META-INF/
cp %{SOURCE4} scripts/binary/META-INF/MANIFEST.MF

# JDTCompilerAdapter isn't used by the batch compiler
rm -f org/eclipse/jdt/core/JDTCompilerAdapter.java

# Aliases
%mvn_alias org.eclipse.jdt:ecj org.eclipse.jdt:core org.eclipse.jdt.core.compiler:ecj \
  org.eclipse.tycho:org.eclipse.jdt.core org.eclipse.tycho:org.eclipse.jdt.compiler.apt

# Make Java API stubs available for other packages
%mvn_artifact "org.eclipse:java10api:jar:10" %{SOURCE5}
%mvn_alias "org.eclipse:java10api:jar:10" "org.eclipse:java9api:jar:9"

%build
ant -Djavaapi=%{SOURCE5}

%install
%mvn_artifact pom.xml ecj.jar
%mvn_install

# Install the ecj wrapper script
%jpackage_script org.eclipse.jdt.internal.compiler.batch.Main '' '' ecj ecj true

# Install manpage
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -m 644 -p ecj.1 $RPM_BUILD_ROOT%{_mandir}/man1/ecj.1

%files -f .mfiles
%license about.html
%{_bindir}/ecj
%{_mandir}/man1/ecj*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12515 |21mr|eclipse-4.11-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# Set to 1 to build Eclipse without circular dependency to eclipse-pde, API
# generation and docs will not be built and a second run will be required, but
# this is a way to bootstrap Eclipse on secondary archs.
%bcond_without bootstrap

%global __requires_exclude ^(libc.so.*|libdl.so.*|libpthread.so.*)$ 

%global eb_commit       c985e357223668b4bc1fb76ea6b9e0c12829b7e8
%global eclipse_rel     %{version}RC2
%global eclipse_tag     S-%{eclipse_rel}-201903070500

%global _jetty_version  9.4.15
%global _lucene_version 7.7.0

%ifarch %{ix86}
    %global eclipse_arch x86
%endif
%ifarch %{arm}
    %global eclipse_arch arm
%endif
%ifarch s390x x86_64 aarch64 ppc64le
    %global eclipse_arch %{_arch}
%endif

# Desktop file information
%global app_name %{?app_name_prefix}%{!?app_name_prefix:Eclipse}
%global app_exec %{?app_exec_prefix} eclipse

# Eclipse is arch-specific, but multilib agnostic
%global _eclipsedir %{_prefix}/lib/eclipse

%if 0%{?fedora} || 0%{?rhel} > 7
%global use_wayland 1
%else
%global use_wayland 0
%endif

%define _debugsource_template %{nil}
# disable relinking in spec-helper to be more compatible with Fedora
%define dont_relink 1

Summary:        An open, extensible IDE
Name:           eclipse
Version:        4.11
Release:        5
Epoch:          1
License:        EPL-2.0
Group:          Development/Java
URL:            http://www.eclipse.org/

Source0: http://download.eclipse.org/eclipse/downloads/drops4/%{eclipse_tag}/eclipse-platform-sources-%{eclipse_rel}.tar.xz

# Can generate locally with:
# git archive --format=tar --prefix=org.eclipse.linuxtools.eclipse-build-%%{eb_commit}/ \
#   %%{eb_commit} | xz > org.eclipse.linuxtools.eclipse-build-%%{eb_commit}.tar.xz
Source1: http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.eclipse-build.git/snapshot/org.eclipse.linuxtools.eclipse-build-%{eb_commit}.tar.xz

Source2: eclipse.rpmlintrc

# Eclipse should not include source for dependencies that are not supplied by this package
# and should not include source for bundles that are not relevant to our platform
Patch0:  eclipse-no-source-for-dependencies.patch

# https://bugs.eclipse.org/bugs/show_bug.cgi?id=377515
Patch1:  eclipse-p2-pick-up-renamed-jars.patch

# Patch for this was contributed. Unlikely to be released.
Patch2:  eclipse-ignore-version-when-calculating-home.patch

# Explicit requirement on hamcrest where it is used directly
Patch3:  explicit-hamcrest.patch

# Add support for all arches supported by Fedora
Patch4:  eclipse-secondary-arches.patch

Patch5:  eclipse-debug-symbols.patch

#Patch6:  eclipse-test-support.patch

# https://bugs.eclipse.org/bugs/show_bug.cgi?id=408138
Patch12: eclipse-fix-dropins.patch

# Feature plugin definitions lock onto version of plugin at build-time.
# If plugin is external, updating it breaks the feature. (version changes)
# Workaround : Change <plugin> definition to a 'requirement'
# Also makes the following BSN changes at the same time:
# com.sun.el -> com.sun.el.javax.el
# javax.el -> javax.el-api
# javax.servlet -> javax.servlet-api
# org.apache.jasper.glassfish -> org.glassfish.web.javax.servlet.jsp
# javax.annotation -> javax.annotation-api
# org.w3c.dom.smil -> removed
Patch13: eclipse-feature-plugins-to-category-ius.patch

Patch15: eclipse-support-symlink-bundles.patch

# Fix various JDT and PDE tests
Patch20: eclipse-fix-tests.patch

# Droplet fixes
Patch21: eclipse-adjust-droplets.patch
Patch22: eclipse-pde-tp-support-droplets.patch

# Disable uses by default
Patch24: eclipse-disable-uses-constraints.patch

# Droplet fixes
Patch26: eclipse-make-droplets-runnable.patch
Patch27: eclipse-disable-droplets-in-dropins.patch

# Temporary measure until wayland improves
Patch28: prefer_x11_backend.patch

# Fix errors when building ant launcher
Patch29: fix_ant_build.patch

# Hide the p2 Droplets from cluttering Install Wizard Combo
Patch30: eclipse-hide-droplets-from-install-wizard.patch

# https://git.eclipse.org/c/platform/eclipse.platform.ui.git/commit/?id=3cf23b7d8b0fc4e57f18118cb6fc92a8e6de0490
Patch31: fixed-compilation-error.patch

# Upstream no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: maven-local
BuildRequires: tycho
BuildRequires: tycho-extras
BuildRequires: cbi-plugins
BuildRequires: maven-antrun-plugin
BuildRequires: maven-assembly-plugin
BuildRequires: maven-dependency-plugin
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-shade-plugin
BuildRequires: xml-maven-plugin
BuildRequires: rhino
BuildRequires: sonatype-oss-parent
BuildRequires: rsync
BuildRequires: make, gcc
BuildRequires: zip, unzip
BuildRequires: desktop-file-utils
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gio-2.0)
BuildRequires: pkgconfig(nspr)
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(gl)
BuildRequires: pkgconfig(cairo)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(webkit2gtk-4.0)
BuildRequires: icu4j >= 1:63.1
BuildRequires: ant >= 1.10.5
BuildRequires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging ant-apache-bsf
BuildRequires: ant-commons-net ant-javamail ant-jdepend ant-junit ant-swing ant-jsch ant-testutil ant-apache-xalan2 ant-jmf ant-xz ant-junit5
BuildRequires: jsch >= 0:0.1.46-2
BuildRequires: apache-commons-el >= 1.0-22
BuildRequires: apache-commons-logging
BuildRequires: apache-commons-codec
BuildRequires: apache-commons-jxpath
BuildRequires: apache-commons-fileupload
BuildRequires: apache-sshd
BuildRequires: osgi(org.apache.felix.gogo.shell) >= 1.1.0
BuildRequires: osgi(org.apache.felix.gogo.command) >= 1.0.2
BuildRequires: osgi(org.apache.felix.gogo.runtime) >= 1.1.0
BuildRequires: osgi(org.apache.felix.scr) >= 2.1.14
BuildRequires: osgi(org.eclipse.jetty.util) >= %{_jetty_version}
BuildRequires: osgi(org.eclipse.jetty.server) >= %{_jetty_version}
BuildRequires: osgi(org.eclipse.jetty.http) >= %{_jetty_version}
BuildRequires: osgi(org.eclipse.jetty.continuation) >= %{_jetty_version}
BuildRequires: osgi(org.eclipse.jetty.io) >= %{_jetty_version}
BuildRequires: osgi(org.eclipse.jetty.security) >= %{_jetty_version}
BuildRequires: osgi(org.eclipse.jetty.servlet) >= %{_jetty_version}
BuildRequires: lucene-core >= %{_lucene_version}
BuildRequires: lucene-analysis >= %{_lucene_version}
BuildRequires: lucene-queryparser >= %{_lucene_version}
BuildRequires: lucene-analyzers-smartcn >= %{_lucene_version}
BuildRequires: junit >= 4.12
BuildRequires: junit5 >= 5.4.0
BuildRequires: apiguardian
BuildRequires: hamcrest
BuildRequires: sat4j
BuildRequires: objectweb-asm >= 7.0
BuildRequires: sac
BuildRequires: batik >= 1.10
BuildRequires: batik-css >= 1.10
BuildRequires: xmlgraphics-commons >= 2.2
BuildRequires: xml-commons-apis
BuildRequires: atinject
BuildRequires: eclipse-ecf-core >= 3.14.4
BuildRequires: eclipse-emf-core >= 1:2.16.0
BuildRequires: eclipse-license2
BuildRequires: glassfish-annotation-api
BuildRequires: glassfish-el-api >= 3.0.1
BuildRequires: glassfish-el >= 3.0.1
BuildRequires: glassfish-jsp-api >= 2.2.1-4
BuildRequires: glassfish-jsp >= 2.2.5
BuildRequires: glassfish-servlet-api >= 3.1.0
BuildRequires: httpcomponents-core
BuildRequires: httpcomponents-client
BuildRequires: jsoup
BuildRequires: xz-java
BuildRequires: mockito >= 2.23.9
BuildRequires: osgi(osgi.annotation)
# Build deps that are excluded when bootstrapping
%if ! %{with bootstrap}
# For building docs and apitooling
BuildRequires: eclipse-pde
# For contributor tools
BuildRequires: eclipse-egit
BuildRequires: eclipse-emf-runtime
%endif

%description
The Eclipse platform is designed for building integrated development
environments (IDEs), server-side applications, desktop applications, and
everything in between.

%package        swt
Summary:        SWT Library for GTK+
Requires:       java-headless >= 1:1.8.0
Requires:       javapackages-tools
##Requires:       gtk3
##Requires:       webkitgtk4

%description swt
SWT Library for GTK+.

%package        equinox-osgi
Summary:        Eclipse OSGi - Equinox
BuildArch:      noarch
Requires:       java-headless >= 1:1.8.0
Requires:       javapackages-tools
Provides:       osgi(system.bundle) = %{EVRD}

%description  equinox-osgi
Eclipse OSGi - Equinox

%package        platform
Summary:        Eclipse platform common files
Recommends:     eclipse-abrt
Recommends:     eclipse-usage

Requires: ant >= 1.10.5
Requires: ant-antlr ant-apache-bcel ant-apache-log4j ant-apache-oro ant-apache-regexp ant-apache-resolver ant-commons-logging ant-apache-bsf
Requires: ant-commons-net ant-javamail ant-jdepend ant-junit ant-swing ant-jsch ant-testutil ant-apache-xalan2 ant-jmf ant-xz ant-junit5
Requires: jsch >= 0.1.46-2
Requires: apache-commons-el >= 1.0-23
Requires: apache-commons-logging
Requires: apache-commons-codec
Requires: apache-commons-jxpath
Requires: osgi(org.apache.felix.gogo.shell) >= 1.1.0
Requires: osgi(org.apache.felix.gogo.command) >= 1.0.2
Requires: osgi(org.apache.felix.gogo.runtime) >= 1.1.0
Requires: osgi(org.apache.felix.scr) >= 2.1.14
Requires: osgi(org.eclipse.jetty.util) >= %{_jetty_version}
Requires: osgi(org.eclipse.jetty.server) >= %{_jetty_version}
Requires: osgi(org.eclipse.jetty.http) >= %{_jetty_version}
Requires: osgi(org.eclipse.jetty.continuation) >= %{_jetty_version}
Requires: osgi(org.eclipse.jetty.io) >= %{_jetty_version}
Requires: osgi(org.eclipse.jetty.security) >= %{_jetty_version}
Requires: osgi(org.eclipse.jetty.servlet) >= %{_jetty_version}
Requires: lucene-core >= %{_lucene_version}
Requires: lucene-analysis >= %{_lucene_version}
Requires: lucene-queryparser >= %{_lucene_version}
Requires: lucene-analyzers-smartcn >= %{_lucene_version}
Requires: sat4j
Requires: sac
Requires: batik >= 1.10
Requires: batik-css >= 1.10
Requires: xmlgraphics-commons >= 2.2
Requires: xml-commons-apis
Requires: atinject
Requires: eclipse-ecf-core >= 3.14.4
Requires: eclipse-emf-core >= 1:2.16.0
Requires: glassfish-annotation-api
Requires: glassfish-el-api >= 3.0.1
Requires: glassfish-el >= 3.0.1
Requires: glassfish-jsp-api >= 2.2.1-4
Requires: glassfish-jsp >= 2.2.5
Requires: glassfish-servlet-api >= 3.1.0
Requires: icu4j >= 1:63.1
Requires: %{name}-swt = %{EVRD}
Requires: %{name}-equinox-osgi = %{EVRD}
Requires: httpcomponents-core
Requires: httpcomponents-client
Requires: osgi(org.tukaani.xz)

# Provides/obsoletes added in F26
# This is the best place to add this because adding it to the nls RPMs causes every
# single language pack to be installed, which is not desireable -- it needs to be
# obsoleted by exactly one thing.
Provides:  eclipse-nls = %{version}-%{release}
Obsoletes: eclipse-nls < %{version}-%{release}

%description    platform
The Eclipse Platform is the base of all IDE plugins.  This does not include the
Java Development Tools or the Plugin Development Environment.

%package        jdt
Summary:        Eclipse Java Development Tools
Group:          Development/Java
BuildArch:      noarch

Provides:       %{name} = %{EVRD}
Requires:       %{name}-platform = %{EVRD}
Requires:       junit >= 4.12
Requires:       junit5 >= 5.4.0
Requires:       osgi(org.hamcrest.core)

%description    jdt
Eclipse Java Development Tools.  This package is required to use Eclipse for
developing software written in the Java programming language.

%package        pde
Summary:        Eclipse Plugin Development Environment
BuildArch:      noarch

Requires:       %{name}-platform = %{EVRD}
Requires:       %{name}-jdt = %{EVRD}
Requires:       objectweb-asm >= 7.0

%description    pde
Eclipse Plugin Development Environment.  This package is required for
developing Eclipse plugins.

%package        p2-discovery
Summary:        Eclipse p2 Discovery
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Requires:       %{name}-platform = %{EVRD}

%description    p2-discovery
The p2 Discovery mechanism provides a simplified and branded front-end for the
p2 provisioning platform. Discovery can be used as a tool to display and
install from existing P2 repositories or as a framework to build branded
installer UIs.

%package        contributor-tools
Summary:        Tools for Eclipse Contributors

Requires:       %{name}-platform = %{EVRD}
Requires:       easymock
Requires:       hamcrest
Requires:       mockito >= 2.23.9

%description    contributor-tools
This package contains tools specifically for Eclipse contributors. It includes
SWT tools, E4 tools, Rel-Eng tools and Eclipse Test frameworks.

%package        tests
Summary:        Eclipse Tests

Requires:       %{name}-contributor-tools = %{EVRD}

%description    tests
Eclipse Tests.

%prep
%setup -T -c

# Extract main source
tar --strip-components=1 -xf %{SOURCE0}

# Extract linuxtools/eclipse-build sources
tar --strip-components=1 -xf %{SOURCE1}

# Delete pre-built binary artifacts except some test data that cannot be generated
find . ! -path "*/JCL/*" ! -name "rtstubs*.jar" ! -name "java10api.jar" ! -name "j9stubs.jar" \
   -type f -name *.jar -delete
find . -type f -name *.class -delete
find . -type f -name *.so -delete
find . -type f -name *.dll -delete
find . -type f -name *.jnilib -delete

# Remove pre-compiled native launchers
rm -rf rt.equinox.binaries/org.eclipse.equinox.executable/{bin,contributed}/

%patch0
%patch1
%patch2
%patch3
%patch4 -p1
%patch5
#%patch6
%patch12
%patch13 -p1
%patch15
%patch20
%patch21
%patch22
%patch24
%patch26
%patch27
%if ! %{use_wayland}
# Enable wayland by default on F27+
%patch28
%endif
%patch29
%patch30 -p1
%patch31 -p1

# Remove python-based test
rm eclipse.platform.swt/tests/org.eclipse.swt.tests.gtk/ManualTests/org/eclipse/swt/tests/gtk/accessibility/Bug543949_ComponentExtentsTest.py

# Remove jgit deps because building from source tarball, not a git repo
%pom_remove_dep :tycho-buildtimestamp-jgit eclipse-platform-parent
%pom_remove_dep :tycho-sourceref-jgit eclipse-platform-parent
%pom_xpath_remove 'pom:configuration/pom:timestampProvider' eclipse-platform-parent
%pom_xpath_remove 'pom:configuration/pom:sourceReferences' eclipse-platform-parent

# Resolving the target platform requires too many changes, so don't use it
%pom_xpath_remove "pom:configuration/pom:target" eclipse-platform-parent

# Disable as many products as possible to make the build faster, we care only for the IDE
%pom_disable_module platform.sdk eclipse.platform.releng.tychoeclipsebuilder
%pom_disable_module rcp eclipse.platform.releng.tychoeclipsebuilder
%pom_disable_module rcp.sdk eclipse.platform.releng.tychoeclipsebuilder
%pom_disable_module rcp.config eclipse.platform.releng.tychoeclipsebuilder
%pom_disable_module sdk eclipse.platform.releng.tychoeclipsebuilder
%pom_disable_module equinox-sdk eclipse.platform.releng.tychoeclipsebuilder
%pom_disable_module equinox.starterkit.product eclipse.platform.releng.tychoeclipsebuilder
%pom_disable_module eclipse.platform.repository eclipse.platform.releng.tychoeclipsebuilder

# Disable bundles that we don't ship as part of the remaining products
%pom_disable_module bundles/org.eclipse.equinox.cm.test rt.equinox.bundles
%pom_disable_module features/org.eclipse.equinox.sdk rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.console.jaas.fragment rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.console.ssh rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.console.ssh.tests rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.console.tests rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.ip rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.transforms.xslt rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.transforms.hook rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.weaving.caching.j9 rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.weaving.caching rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.weaving.hook rt.equinox.bundles
%pom_disable_module features/org.eclipse.equinox.compendium.sdk rt.equinox.bundles
%pom_disable_module features/org.eclipse.equinox.core.sdk rt.equinox.bundles
%pom_disable_module features/org.eclipse.equinox.p2.sdk rt.equinox.p2
%pom_disable_module features/org.eclipse.equinox.server.p2 rt.equinox.bundles
%pom_disable_module features/org.eclipse.equinox.serverside.sdk rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.p2.tests.reconciler.product rt.equinox.p2
%pom_disable_module bundles/org.eclipse.equinox.p2.artifact.optimizers rt.equinox.p2
%pom_disable_module bundles/org.eclipse.equinox.p2.tests.optimizers rt.equinox.p2
%pom_disable_module bundles/org.eclipse.equinox.p2.artifact.processors rt.equinox.p2

# Don't need annotations for obsolete JDKs
%pom_disable_module org.eclipse.jdt.annotation_v1 eclipse.jdt.core
%pom_xpath_remove "plugin[@version='1.1.400.qualifier']" eclipse.jdt/org.eclipse.jdt-feature/feature.xml
sed -i -e '/org\.eclipse\.jdt\.annotation;bundle-version="\[1\.1\.0,2\.0\.0)"/d' \
  eclipse.jdt.core/org.eclipse.jdt.core.tests.{model,builder,compiler}/META-INF/MANIFEST.MF \
  eclipse.jdt.core/org.eclipse.jdt.apt.pluggable.tests/META-INF/MANIFEST.MF \
  eclipse.jdt.ui/org.eclipse.jdt.ui.tests/META-INF/MANIFEST.MF
sed -i -e 's/javax.annotation/javax.annotation-api/' eclipse.jdt.core/org.eclipse.jdt.core.tests.compiler/META-INF/MANIFEST.MF

# Disable examples
%pom_disable_module bundles/org.eclipse.sdk.examples eclipse.platform.releng
%pom_disable_module features/org.eclipse.sdk.examples-feature eclipse.platform.releng
%pom_disable_module examples/org.eclipse.swt.examples.ole.win32 eclipse.platform.swt

# Disable servletbridge stuff
%pom_disable_module bundles/org.eclipse.equinox.http.servletbridge rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.servletbridge rt.equinox.bundles
%pom_disable_module bundles/org.eclipse.equinox.servletbridge.template rt.equinox.bundles

# Missing dep on reddeer
%pom_disable_module ui/org.eclipse.pde.ui.tests.smartimport eclipse.pde.ui

# Don't need enforcer on RPM builds
%pom_remove_plugin :maven-enforcer-plugin eclipse-platform-parent

# This part generates secondary fragments using primary fragments
rm -rf eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.{aarch64,s390x}
rm -rf rt.equinox.framework/bundles/org.eclipse.equinox.launcher.gtk.linux.{aarch64,s390x}
for dir in rt.equinox.binaries rt.equinox.framework/bundles eclipse.platform.swt.binaries/bundles ; do
  utils/ensure_arch.sh "$dir" x86_64 aarch64 s390x
done

# Remove platform-specific stuff that we don't care about to reduce build time
# (i.e., all bundles that are not applicable to the current build platform --
# this reduces the build time on arm by around 20 minutes per architecture that
# we are not currently building)
TYCHO_ENV="<environment><os>linux</os><ws>gtk</ws><arch>%{eclipse_arch}</arch></environment>"
%pom_xpath_set "pom:configuration/pom:environments" "$TYCHO_ENV" eclipse-platform-parent
%pom_xpath_set "pom:configuration/pom:environments" "$TYCHO_ENV" eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests
%pom_xpath_set "pom:configuration/pom:environments" "$TYCHO_ENV" eclipse.platform.ui/bundles/org.eclipse.e4.ui.swt.gtk
for b in `ls eclipse.platform.swt.binaries/bundles | grep -P -e 'org.eclipse.swt\.(?!gtk\.linux.%{eclipse_arch}$)'` ; do
  module=$(grep ">bundles/$b<" eclipse.platform.swt.binaries/pom.xml || :)
  if [ -n "$module" ] ; then
    %pom_disable_module bundles/$b eclipse.platform.swt.binaries
    %pom_xpath_inject "pom:excludes" "<plugin id='$b'/>" eclipse.platform.ui/features/org.eclipse.e4.rcp
  fi
done
for b in `ls rt.equinox.framework/bundles | grep -P -e 'org.eclipse.equinox.launcher\.(?!gtk\.linux.%{eclipse_arch}$)'` ; do
  module=$(grep ">bundles/$b<" rt.equinox.framework/pom.xml || :)
  if [ -n "$module" ] ; then
    %pom_disable_module bundles/$b rt.equinox.framework
    %pom_xpath_remove -f "plugin[@id='$b']" rt.equinox.framework/features/org.eclipse.equinox.executable.feature/feature.xml
  fi
done
for b in `(cd rt.equinox.bundles/bundles && ls -d *{macosx,win32,linux}*) | grep -P -e 'org.eclipse.equinox.security\.(?!linux\.%{eclipse_arch}$)'` ; do
  module=$(grep ">bundles/$b<" rt.equinox.bundles/pom.xml || :)
  if [ -n "$module" ] ; then
    %pom_disable_module bundles/$b rt.equinox.bundles
    %pom_xpath_remove -f "plugin[@id='$b']" rt.equinox.p2/features/org.eclipse.equinox.p2.core.feature/feature.xml
  fi
done
for b in `ls eclipse.platform.team/bundles/org.eclipse.core.net/fragments/ | grep -P -e 'org.eclipse.core.net\.(?!linux.%{eclipse_arch}$)'` ; do
  %pom_disable_module bundles/org.eclipse.core.net/fragments/$b eclipse.platform.team
done
for b in `ls eclipse.platform.resources/bundles/ | grep -P -e 'org.eclipse.core.filesystem\.(?!linux\.%{eclipse_arch}$)'` ; do
  module=$(grep ">bundles/$b<" eclipse.platform.resources/pom.xml || :)
  if [ -n "$module" ] ; then
    %pom_disable_module bundles/$b eclipse.platform.resources
    %pom_xpath_remove -f "plugin[@id='$b']" eclipse.platform.resources/tests/org.eclipse.core.tests.filesystem.feature/feature.xml
  fi
done
%pom_disable_module org.eclipse.jdt.launching.macosx eclipse.jdt.debug
%pom_disable_module org.eclipse.jdt.launching.ui.macosx eclipse.jdt.debug
%pom_disable_module bundles/org.eclipse.compare.win32 eclipse.platform.team
%pom_disable_module org.eclipse.e4.ui.workbench.renderers.swt.cocoa eclipse.platform.ui/bundles
%pom_disable_module org.eclipse.ui.cocoa eclipse.platform.ui/bundles
%pom_disable_module org.eclipse.ui.win32 eclipse.platform.ui/bundles
%pom_disable_module bundles/org.eclipse.core.resources.win32.x86_64 eclipse.platform.resources
for f in eclipse.jdt/org.eclipse.jdt-feature/feature.xml \
         eclipse.platform.ui/features/org.eclipse.e4.rcp/feature.xml \
         eclipse.platform.releng/features/org.eclipse.rcp/feature.xml \
         eclipse.platform.releng/features/org.eclipse.platform-feature/feature.xml ; do
  %pom_xpath_remove -f "plugin[@os='macosx']" $f
  %pom_xpath_remove -f "plugin[@os='win32']" $f
  %pom_xpath_remove -f "plugin[@ws='win32']" $f
  for arch in x86 x86_64 arm aarch64 ppc64le s390x ; do
    if [ "$arch" != "%{eclipse_arch}" ] ; then
      %pom_xpath_remove -f "plugin[@arch='$arch']" $f
    fi
  done
done

# We don't need SWT fragments since we only care for current arch
%pom_disable_module tests/org.eclipse.swt.tests.fragments.feature eclipse.platform.swt
%pom_xpath_remove "pom:dependency-resolution" eclipse.platform.swt/tests/org.eclipse.swt.tests{,.gtk}

# Disable contributor tools that have external dependencies during bootstrap
%if %{with bootstrap}
%pom_disable_module eclipse.platform.ui.tools
%pom_disable_module features/org.eclipse.releng.tools eclipse.platform.releng
%pom_disable_module bundles/org.eclipse.releng.tools eclipse.platform.releng
%pom_disable_module bundles/org.eclipse.releng.tests eclipse.platform.releng
%pom_xpath_remove "plugin[@id='org.eclipse.releng.tests']" \
  eclipse.platform.releng/features/org.eclipse.sdk.tests/feature.xml
%endif

# Include some extra features with the product that some other projects may need at
# build time as part of their target platform definitions
sed -i -e '/<features>/a<feature id="org.eclipse.core.runtime.feature"/>' \
  eclipse.platform.releng.tychoeclipsebuilder/platform/platform.product

# Ensure batch compiler gets installed correctly
sed -i -e '/org.eclipse.ui.themes/i<plugin id="org.eclipse.jdt.core.compiler.batch" download-size="0" install-size="0" version="0.0.0" unpack="false"/>' \
  eclipse.platform.releng/features/org.eclipse.platform-feature/feature.xml
sed -i -e '/<\/excludes>/i<plugin id="org.eclipse.jdt.core.compiler.batch"/>' \
  eclipse.platform.releng/features/org.eclipse.platform-feature/pom.xml

# Prevent dep cycle
%pom_xpath_remove "plugin[@id='org.eclipse.core.tests.harness']" eclipse.platform.releng/features/org.eclipse.test-feature/feature.xml

# Include maven descriptors to allow our test execution setup to work
%pom_xpath_set "pom:plugin[pom:artifactId = 'tycho-packaging-plugin']/pom:configuration/pom:archive/pom:addMavenDescriptor" "true" eclipse-platform-parent

# Don't set perms on files for platforms that aren't linux
for f in rt.equinox.framework/features/org.eclipse.equinox.executable.feature/build.properties; do
  grep '^root\.linux\.gtk\.%{eclipse_arch}[.=]' $f > tmp
  sed -i -e '/^root\./d' $f && cat tmp >> $f
done

# Hack - this can go away once upstream grows arm and aarch64 support
mkdir -p rt.equinox.binaries/org.eclipse.equinox.executable/bin/gtk/linux/%{eclipse_arch}

# Ensure that bundles with native artifacts are dir-shaped, so no *.so is extracted into user.home
for f in eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.*/META-INF/MANIFEST.MF \
         eclipse.platform.resources/bundles/org.eclipse.core.filesystem.linux.*/META-INF/MANIFEST.MF \
         eclipse.platform.team/bundles/org.eclipse.core.net.linux.*/META-INF/MANIFEST.MF ; do
    echo -e "Eclipse-BundleShape: dir\n\n" >> $f;
done

# Add dep on Java API stubs when compiling with JDT
%pom_xpath_inject "pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='tycho-compiler-plugin']/pom:dependencies" \
  "<dependency><groupId>org.eclipse</groupId><artifactId>java10api</artifactId><version>10</version></dependency>" eclipse-platform-parent

# Build fake ant bundle that contains symlinks to system jars
dependencies/fake_ant_dependency.sh

# Allow usage of javax.servlet.jsp 2.3.
sed -i '/javax\.servlet\.jsp/ s/2\.3/2\.4/' rt.equinox.bundles/bundles/org.eclipse.equinox.jsp.jasper/META-INF/MANIFEST.MF

# Use javax.servlet-api (Glassfish) instead of javax.servlet (Tomcat)
find -name feature.xml | xargs sed -i -e 's|"javax.servlet"|"javax.servlet-api"|'
sed -i -e "2iRequire-Bundle: javax.servlet-api" rt.equinox.bundles/bundles/org.eclipse.equinox.http.{jetty,servlet}/META-INF/MANIFEST.MF

# Fix constraint on gogo runtime
sed -i -e '/org.apache.felix.service.command/s/;status=provisional//' rt.equinox.bundles/bundles/org.eclipse.equinox.console{,.ssh}/META-INF/MANIFEST.MF

# Pre-compiling JSPs does not currently work
%pom_remove_plugin org.eclipse.jetty:jetty-jspc-maven-plugin eclipse.platform.ua/org.eclipse.help.webapp

# Remove generated files not present during bootstrap build
# org.eclipse.platform.doc.isv, org.eclipse.jdt.doc.isv, org.eclipse.pde.doc.user
%if %{with bootstrap}
sed -i '22,51d' eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/src/main/assembly/assembly.xml
%endif

# Use system osgi.annotation lib
ln -s $(build-classpath osgi-annotation) rt.equinox.framework/bundles/org.eclipse.osgi/osgi/
ln -s $(build-classpath osgi-annotation) rt.equinox.framework/bundles/org.eclipse.osgi.services/lib/
ln -s $(build-classpath osgi-annotation) rt.equinox.framework/bundles/org.eclipse.osgi.util/lib/
ln -s $(build-classpath osgi-annotation) rt.equinox.bundles/bundles/org.eclipse.equinox.http.servlet/osgi/
ln -s $(build-classpath osgi-annotation) rt.equinox.bundles/bundles/org.eclipse.equinox.coordinator/lib/
ln -s $(build-classpath osgi-annotation) rt.equinox.bundles/bundles/org.eclipse.equinox.log.stream/osgi/

# The order of these mvn_package calls is important
%mvn_package "::pom::" __noinstall
%mvn_package ":*tests*" tests
%mvn_package ":org.eclipse.equinox.frameworkadmin.test" tests
%mvn_package ":org.eclipse.equinox.p2.installer" tests
%mvn_package ":org.eclipse.jface.examples.databinding" tests
%mvn_package ":org.eclipse.pde.tools.versioning" tests
%mvn_package ":org.eclipse.update.core" tests
%mvn_package "org.eclipse.test:org.eclipse.test" contributor-tools
%mvn_package ":*examples*" __noinstall
%mvn_package "::jar:sources{,-feature}:" sdk
%mvn_package ":org.eclipse.jdt.doc.isv" sdk
%mvn_package ":org.eclipse.platform.doc.isv" sdk
%mvn_package ":org.eclipse.equinox.executable" sdk
%mvn_package "org.eclipse.jdt{,.feature}:" jdt
%mvn_package ":org.eclipse.ant.{launching,ui}" jdt
%mvn_package ":org.eclipse.equinox.p2.discovery.{feature,compatibility}" p2-discovery
%mvn_package ":org.eclipse.equinox.p2{,.ui}.discovery" p2-discovery
%mvn_package ":org.eclipse.e4{,.core}.tools*" contributor-tools
%mvn_package ":org.eclipse.releng.tools" contributor-tools
%mvn_package ":org.eclipse.swt.tools*" contributor-tools
%mvn_package "org.eclipse.test{,.feature}:" contributor-tools
%mvn_package ":org.eclipse.ant.optional.junit" contributor-tools
%mvn_package "org.eclipse.cvs{,.feature}:" cvs
%mvn_package "org.eclipse.team:org.eclipse.team.cvs*" cvs
%mvn_package "org.eclipse.pde{,.ui,.feature}:" pde
%mvn_package "org.eclipse.ui:org.eclipse.ui.{views.log,trace}" pde
%mvn_package "org.eclipse.sdk{,.feature}:" sdk
%mvn_package ":" __noinstall

%build
# Compiler/linker flags for native parts
export CFLAGS="%{optflags}"
export LDFLAGS="%{__global_ldflags}"
export M_CFLAGS="$CFLAGS"
export M_ARCH="$LDFLAGS"

#This is the lowest value where the build succeeds. 512m is not enough.
export MAVEN_OPTS="-Xmx1024m -XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState ${MAVEN_OPTS}"
export JAVA_HOME=%{_jvmdir}/java

# Pre-build agent jar needed for AdvancedSourceLookupSupport
sed -i -e '/createSourcesJar/d' eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/pom.xml
(cd eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent && xmvn -e -o -B clean verify)
mv eclipse.jdt.debug/org.eclipse.jdt.launching.javaagent/target/javaagent-shaded.jar \
  eclipse.jdt.debug/org.eclipse.jdt.launching/lib

# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M)
%mvn_build -j -f -- -e -DforceContextQualifier=$QUALIFIER \
%if %{with bootstrap}
   -P !api-generation,!build-docs \
%endif
   -Declipse.javadoc=/usr/bin/javadoc \
   -Dnative=$(pwd)/eclipse.platform.swt.binaries/bundles/gtk.linux.%{eclipse_arch} \
   -Dtycho.local.keepTarget \
   -Dfedora.p2.repos=$(pwd)/.m2/p2/repo-sdk/plugins -DbuildType=X

# Location that the product is materialised
product="eclipse.platform.releng.tychoeclipsebuilder/platform/target/products/org.eclipse.platform.ide/linux/gtk/%{eclipse_arch}"

# Re-symlink ant bundle to use system jars
dependencies/fake_ant_dependency.sh $product/eclipse/plugins/org.apache.ant_*

# Symlink necessary plugins that are provided by other packages
dependencies/replace_platform_plugins_with_symlinks.sh $product/eclipse %{_javadir} %{_jnidir}

pushd $product/eclipse

#clean up
rm -rf configuration/org.eclipse.core.runtime
rm -rf configuration/org.eclipse.equinox.app
rm -rf configuration/org.eclipse.update
rm -rf configuration/org.eclipse.osgi
rm -rf p2/org.eclipse.equinox.p2.core/cache/*
# no icon needed
rm -f icon.xpm

# EMF and ECF are packaged separately
rm -rf features/org.eclipse.emf.* plugins/org.eclipse.emf.* \
  features/org.eclipse.ecf.* plugins/org.eclipse.ecf.* plugins/org.eclipse.ecf_*

#delete all local repositories. We want to have only "original" by default.
pushd p2/org.eclipse.equinox.p2.engine/.settings
    sed -i "/repositories\/file/d" *.prefs ../profileRegistry/SDKProfile.profile/.data/.settings/*.prefs
    sed -i "/repositories\/memory/d" *.prefs ../profileRegistry/SDKProfile.profile/.data/.settings/*.prefs
popd

# ini file adjustements
sed -i "s|-Xms40m|-Xms512m|g" eclipse.ini
sed -i "s|-Xmx512m|-Xmx1024m|g" eclipse.ini
sed -i '1i-protect\nroot' eclipse.ini

# Temporary fix until https://bugs.eclipse.org/294877 is resolved
cat >> eclipse.ini <<EOF
-Dorg.eclipse.swt.browser.UseWebKitGTK=true
-XX:CompileCommand=exclude,org/eclipse/core/internal/dtree/DataTreeNode,forwardDeltaWith
-XX:CompileCommand=exclude,org/eclipse/jdt/internal/compiler/lookup/ParameterizedMethodBinding,<init>
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/dom/parser/cpp/semantics/CPPTemplates,instantiateTemplate
-XX:CompileCommand=exclude,org/eclipse/cdt/internal/core/pdom/dom/cpp/PDOMCPPLinkage,addBinding
-XX:CompileCommand=exclude,org/python/pydev/editor/codecompletion/revisited/PythonPathHelper,isValidSourceFile
-XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState
-Dorg.eclipse.equinox.p2.reconciler.dropins.directory=%{_datadir}/eclipse/dropins
-Dp2.fragments=%{_eclipsedir}/droplets,%{_datadir}/eclipse/droplets
-Declipse.p2.skipMovedInstallDetection=true
-Dosgi.resolver.usesMode=ignore
EOF

popd #eclipse

%install
%mvn_install

# Some directories we need
install -d -m 755 $RPM_BUILD_ROOT%{_sysconfdir}
install -d -m 755 $RPM_BUILD_ROOT%{_jnidir}
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/eclipse
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}

# Install icons
install -D eclipse.platform/platform/org.eclipse.platform/eclipse32.png \
    $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps/%{name}.png
install -D eclipse.platform/platform/org.eclipse.platform/eclipse48.png \
    $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/%{name}.png
install -D eclipse.platform/platform/org.eclipse.platform/eclipse256.png \
    $RPM_BUILD_ROOT/usr/share/icons/hicolor/256x256/apps/%{name}.png
install -d $RPM_BUILD_ROOT/usr/share/pixmaps
ln -s /usr/share/icons/hicolor/256x256/apps/%{name}.png \
    $RPM_BUILD_ROOT/usr/share/pixmaps/%{name}.png

# Install desktop file
sed -i -e 's/Exec=eclipse/Exec=%{app_exec}/g' desktopintegration/eclipse.desktop
sed -i -e 's/Name=Eclipse/Name=%{app_name}/g' desktopintegration/eclipse.desktop
sed -i -e 's/Icon=eclipse/Icon=%{name}/g' desktopintegration/eclipse.desktop
install -m644 -D desktopintegration/eclipse.desktop $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop
desktop-file-validate $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop

# Install appstream appdata
install -m644 -D desktopintegration/eclipse.appdata.xml      $RPM_BUILD_ROOT%{_datadir}/appdata/eclipse.appdata.xml
install -m644 -D desktopintegration/eclipse-jdt.metainfo.xml $RPM_BUILD_ROOT%{_datadir}/appdata/eclipse-jdt.metainfo.xml
install -m644 -D desktopintegration/eclipse-pde.metainfo.xml $RPM_BUILD_ROOT%{_datadir}/appdata/eclipse-pde.metainfo.xml

LOCAL_PWD=`pwd`
#change the installation p2 files
pushd eclipse.platform.releng.tychoeclipsebuilder/platform/target/products/org.eclipse.platform.ide/linux/gtk/%{eclipse_arch}/eclipse/p2/org.eclipse.equinox.p2.engine/profileRegistry/SDKProfile.profile/
for i in `ls | grep "profile.gz"` ; do  \
        echo $i ; \
        gunzip $i ; \
        sed -i -e "s@${LOCAL_PWD}/eclipse.platform.releng.tychoeclipsebuilder/platform/target/products/org.eclipse.platform.ide/linux/gtk/%{eclipse_arch}/eclipse@%{_eclipsedir}@g" *.profile ; \
        gzip *.profile ; \
    done 
popd 

#installation itself - copy it into right location
rsync -vrpl eclipse.platform.releng.tychoeclipsebuilder/platform/target/products/org.eclipse.platform.ide/linux/gtk/%{eclipse_arch}/eclipse \
    %{buildroot}%{_prefix}/lib

# Symlink eclipse binary
pushd %{buildroot}%{_bindir}
    ln -s %{_eclipsedir}/eclipse
popd

# Symlink eclipse ini
pushd %{buildroot}/%{_sysconfdir}/
    ln -s %{_eclipsedir}/eclipse.ini
popd

# List jars to be symlinked into javadir
pushd %{buildroot}%{_eclipsedir}/plugins
EQUINOX_JARS=$(ls . | grep -P '^org.eclipse.equinox(?!.*\.ui[\._])' | sed -e 's|^org\.eclipse\.\(.*\)_.*|\1|')
OSGI_JARS=$(ls . | grep '^org.eclipse.osgi' | sed -e 's|^org\.eclipse\.\(.*\)_.*|\1|')
popd

# Symlink jars into javadir
location=%{_eclipsedir}/plugins
while [ "$location" != "/" ] ; do
    location=$(dirname $location)
    updir="$updir../"
done
pushd %{buildroot}%{_javadir}/eclipse
for J in $EQUINOX_JARS core.contenttype core.jobs core.net core.runtime ; do
  DIR=$updir%{_eclipsedir}/plugins
  if [ "$J" != "equinox.http.servlet" ] ; then
    [ -e "`ls $DIR/org.eclipse.${J}_*.jar`" ] && ln -s $DIR/org.eclipse.${J}_*.jar ${J}.jar
  fi
done
popd

# Generate addition Maven metadata
rm -rf .xmvn/ .xmvn-reactor
%mvn_package "org.eclipse.osgi:" equinox-osgi
%mvn_package "org.eclipse.equinox.http:" platform
%mvn_package "org.eclipse.swt:" swt

# Install Maven metadata for OSGi jars
for J in $OSGI_JARS ; do
  JAR=%{buildroot}%{_eclipsedir}/plugins/org.eclipse.${J}_*.jar
  VER=$(echo $JAR | sed -e "s/.*${J}_\(.*\)\.jar/\1/")
  %mvn_artifact "org.eclipse.osgi:$J:jar:$VER" $JAR
  if [ "$J" = "osgi" ] ; then
    %mvn_alias "org.eclipse.osgi:$J" "org.eclipse.osgi:org.eclipse.$J" "org.eclipse.tycho:org.eclipse.$J" "org.eclipse:$J"
  else
    %mvn_alias "org.eclipse.osgi:$J" "org.eclipse.osgi:org.eclipse.$J" "org.eclipse.tycho:org.eclipse.$J"
  fi
done


# Install Maven metadata for Equinox HTTP Servlet
JAR=%{buildroot}%{_eclipsedir}/plugins/org.eclipse.equinox.http.servlet_*.jar
VER=$(echo $JAR | sed -e "s/.*_\(.*\)\.jar/\1/")
%mvn_artifact "org.eclipse.equinox.http:equinox.http.servlet:jar:$VER" $JAR
%mvn_alias "org.eclipse.equinox.http:equinox.http.servlet" "org.eclipse.equinox.http:servlet"

# Install Maven metadata for SWT
JAR=%{buildroot}%{_eclipsedir}/plugins/org.eclipse.swt_*.jar
VER=$(echo $JAR | sed -e "s/.*_\(.*\)\.jar/\1/")
%mvn_artifact "org.eclipse.swt:org.eclipse.swt:jar:$VER" ./eclipse.platform.swt.binaries/bundles/org.eclipse.swt.gtk.linux.%{eclipse_arch}/target/org.eclipse.swt.gtk.linux.%{eclipse_arch}-*-SNAPSHOT.jar
%mvn_alias "org.eclipse.swt:org.eclipse.swt" "org.eclipse.swt:swt"
%mvn_file "org.eclipse.swt:org.eclipse.swt" swt

%mvn_install

# Symlink SWT jar
pushd %{buildroot}/%{_eclipsedir}/
    ln -s $(abs2rel %{_jnidir}/swt.jar %{_eclipsedir})
popd

# Tests framework
unzip eclipse.platform.releng.tychoeclipsebuilder/eclipse-junit-tests/target/eclipse-junit-tests-bundle.zip \
  -d $RPM_BUILD_ROOT/%{_datadir}/ -x eclipse-testing/runtests.bat eclipse-testing/runtestsmac.sh
cp utils/splitter.xsl $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing
rm $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing/eclipse-junit-tests-*.zip

# These properties are not correct and nested properties won't get resolved
sed -i '/org.eclipse.equinox.p2.reconciler.test/ d' $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing/equinoxp2tests.properties

# Package testbundle-to-eclipse-test
cp -r testbundle-to-eclipse-test $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing/testbundle
mv $RPM_BUILD_ROOT/%{_datadir}/eclipse-testing/testbundle/eclipse-runTestBundles $RPM_BUILD_ROOT/%{_bindir}/eclipse-runTestBundles

#fix so permissions
find $RPM_BUILD_ROOT/%{_eclipsedir} -name *.so -exec chmod a+x {} \;

# Usage marker
install -d -m 755 %{buildroot}%{_eclipsedir}/.pkgs
echo "%{version}-%{release}" > %{buildroot}%{_eclipsedir}/.pkgs/Distro


###### ROSA hacks
%if %{with bootstrap}
#no files
sed -i -e '32791d' .mfiles-tests
%endif
# delete strange artefacts (*.orig)
sed -i -e '/\.orig$/d' .mfiles*

# Fix more permissions to force stripping
find %{buildroot} -type f -print | while read -r line ; do
  if file "$line" | grep -q ELF ; then
    chmod +x "$line"
  fi
done

%files swt -f .mfiles-swt
%{_eclipsedir}/plugins/org.eclipse.swt_*
%{_eclipsedir}/plugins/org.eclipse.swt.gtk.linux.*
%{_eclipsedir}/swt.jar

%files platform -f .mfiles-platform
%{_bindir}/eclipse
#%%{_eclipsedir}/eclipse
%{_eclipsedir}/.eclipseproduct
%{_eclipsedir}/.pkgs
%config %{_eclipsedir}/eclipse.ini
%config %{_sysconfdir}/eclipse.ini
/usr/share/applications/*
/usr/share/pixmaps/*
/usr/share/icons/*/*/apps/*
%{_datadir}/appdata/eclipse.appdata.xml
%dir %{_eclipsedir}/configuration/
%dir %{_eclipsedir}/configuration/org.eclipse.equinox.simpleconfigurator/
%{_eclipsedir}/configuration/config.ini
%{_eclipsedir}/configuration/org.eclipse.equinox.simpleconfigurator/bundles.info
%{_eclipsedir}/features/org.eclipse.core.runtime.feature_*
%{_eclipsedir}/features/org.eclipse.e4.rcp_*
%{_eclipsedir}/features/org.eclipse.equinox.core.feature_*
%{_eclipsedir}/features/org.eclipse.equinox.p2.core.feature_*
%{_eclipsedir}/features/org.eclipse.equinox.p2.extras.feature_*
%{_eclipsedir}/features/org.eclipse.equinox.p2.rcp.feature_*
%{_eclipsedir}/features/org.eclipse.equinox.p2.user.ui_*
%{_eclipsedir}/features/org.eclipse.help_*
%{_eclipsedir}/features/org.eclipse.platform_*
%{_eclipsedir}/features/org.eclipse.rcp_*
%{_eclipsedir}/plugins/com.ibm.icu_*
%{_eclipsedir}/plugins/com.jcraft.jsch_*
%{_eclipsedir}/plugins/com.sun.el.javax.el_*
%{_eclipsedir}/plugins/javax.*
%{_eclipsedir}/plugins/org.apache.*
%{_eclipsedir}/plugins/org.eclipse.ant.core_*
%{_eclipsedir}/plugins/org.eclipse.compare_*
%{_eclipsedir}/plugins/org.eclipse.compare.core_*
%{_eclipsedir}/plugins/org.eclipse.core.commands_*
%{_eclipsedir}/plugins/org.eclipse.core.contenttype_*
%{_eclipsedir}/plugins/org.eclipse.core.databinding.beans_*
%{_eclipsedir}/plugins/org.eclipse.core.databinding.observable_*
%{_eclipsedir}/plugins/org.eclipse.core.databinding.property_*
%{_eclipsedir}/plugins/org.eclipse.core.databinding_*
%{_eclipsedir}/plugins/org.eclipse.core.expressions_*
%{_eclipsedir}/plugins/org.eclipse.core.externaltools_*
%{_eclipsedir}/plugins/org.eclipse.core.filebuffers_*
%{_eclipsedir}/plugins/org.eclipse.core.filesystem*
%{_eclipsedir}/plugins/org.eclipse.core.jobs_*
%{_eclipsedir}/plugins/org.eclipse.core.net*
%{_eclipsedir}/plugins/org.eclipse.core.resources_*
%{_eclipsedir}/plugins/org.eclipse.core.runtime_*
%{_eclipsedir}/plugins/org.eclipse.core.variables_*
%{_eclipsedir}/plugins/org.eclipse.debug.core_*
%{_eclipsedir}/plugins/org.eclipse.debug.ui_*
%{_eclipsedir}/plugins/org.eclipse.e4.core.commands_*
%{_eclipsedir}/plugins/org.eclipse.e4.core.contexts_*
%{_eclipsedir}/plugins/org.eclipse.e4.core.di_*
%{_eclipsedir}/plugins/org.eclipse.e4.core.di.annotations_*
%{_eclipsedir}/plugins/org.eclipse.e4.core.di.extensions_*
%{_eclipsedir}/plugins/org.eclipse.e4.core.di.extensions.supplier_*
%{_eclipsedir}/plugins/org.eclipse.e4.core.services_*
%{_eclipsedir}/plugins/org.eclipse.e4.emf.xpath_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.bindings_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.css.core_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.css.swt_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.css.swt.theme_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.di_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.dialogs_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.model.workbench_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.services_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.swt.gtk_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.widgets_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.workbench_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.workbench3_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.workbench.addons.swt_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.workbench.renderers.swt_*
%{_eclipsedir}/plugins/org.eclipse.e4.ui.workbench.swt_*
%{_eclipsedir}/plugins/org.eclipse.equinox.app_*
%{_eclipsedir}/plugins/org.eclipse.equinox.bidi_*
%{_eclipsedir}/plugins/org.eclipse.equinox.common_*
%{_eclipsedir}/plugins/org.eclipse.equinox.concurrent_*
%{_eclipsedir}/plugins/org.eclipse.equinox.console_*
%{_eclipsedir}/plugins/org.eclipse.equinox.ds_*
%{_eclipsedir}/plugins/org.eclipse.equinox.event_*
%{_eclipsedir}/plugins/org.eclipse.equinox.frameworkadmin_*
%{_eclipsedir}/plugins/org.eclipse.equinox.frameworkadmin.equinox_*
%{_eclipsedir}/plugins/org.eclipse.equinox.http.jetty_*
%{_eclipsedir}/plugins/org.eclipse.equinox.http.registry_*
%{_eclipsedir}/plugins/org.eclipse.equinox.http.servlet_*
%{_eclipsedir}/plugins/org.eclipse.equinox.jsp.jasper_*
%{_eclipsedir}/plugins/org.eclipse.equinox.jsp.jasper.registry_*
%{_eclipsedir}/plugins/org.eclipse.equinox.launcher_*
%{_eclipsedir}/plugins/org.eclipse.equinox.launcher.gtk.linux.*_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.artifact.repository_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.console_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.core_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.director_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.director.app_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.directorywatcher_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.engine_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.extensionlocation_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.garbagecollector_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.jarprocessor_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.metadata_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.metadata.repository_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.operations_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.publisher_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.publisher.eclipse_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.reconciler.dropins_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.repository_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.repository.tools_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.touchpoint.eclipse_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.touchpoint.natives_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.transport.ecf_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.ui_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.ui.importexport_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.ui.sdk_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.ui.sdk.scheduler_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.updatechecker_*
%{_eclipsedir}/plugins/org.eclipse.equinox.p2.updatesite_*
%{_eclipsedir}/plugins/org.eclipse.equinox.preferences_*
%{_eclipsedir}/plugins/org.eclipse.equinox.registry_*
%{_eclipsedir}/plugins/org.eclipse.equinox.security*
%{_eclipsedir}/plugins/org.eclipse.equinox.simpleconfigurator_*
%{_eclipsedir}/plugins/org.eclipse.equinox.simpleconfigurator.manipulator_*
%{_eclipsedir}/plugins/org.eclipse.equinox.util_*
%{_eclipsedir}/plugins/org.eclipse.help_*
%{_eclipsedir}/plugins/org.eclipse.help.base_*
%{_eclipsedir}/plugins/org.eclipse.help.ui_*
%{_eclipsedir}/plugins/org.eclipse.help.webapp_*
%{_eclipsedir}/plugins/org.eclipse.jdt.core.compiler.batch_*
%{_eclipsedir}/plugins/org.eclipse.jetty.*
%{_eclipsedir}/plugins/org.eclipse.jface_*
%{_eclipsedir}/plugins/org.eclipse.jface.databinding_*
%{_eclipsedir}/plugins/org.eclipse.jface.text_*
%{_eclipsedir}/plugins/org.eclipse.jsch.core_*
%{_eclipsedir}/plugins/org.eclipse.jsch.ui_*
%{_eclipsedir}/plugins/org.eclipse.ltk.core.refactoring_*
%{_eclipsedir}/plugins/org.eclipse.ltk.ui.refactoring_*
%{_eclipsedir}/plugins/org.eclipse.platform_*
%{_eclipsedir}/plugins/org.eclipse.platform.doc.user_*
%{_eclipsedir}/plugins/org.eclipse.rcp_*
%{_eclipsedir}/plugins/org.eclipse.search_*
%{_eclipsedir}/plugins/org.eclipse.team.core_*
%{_eclipsedir}/plugins/org.eclipse.team.genericeditor.diff.extension_*
%{_eclipsedir}/plugins/org.eclipse.team.ui_*
%{_eclipsedir}/plugins/org.eclipse.text_*
%{_eclipsedir}/plugins/org.eclipse.ui_*
%{_eclipsedir}/plugins/org.eclipse.ui.browser_*
%{_eclipsedir}/plugins/org.eclipse.ui.cheatsheets_*
%{_eclipsedir}/plugins/org.eclipse.ui.console_*
%{_eclipsedir}/plugins/org.eclipse.ui.editors_*
%{_eclipsedir}/plugins/org.eclipse.ui.externaltools_*
%{_eclipsedir}/plugins/org.eclipse.ui.forms_*
%{_eclipsedir}/plugins/org.eclipse.ui.genericeditor_*
%{_eclipsedir}/plugins/org.eclipse.ui.ide_*
%{_eclipsedir}/plugins/org.eclipse.ui.ide.application_*
%{_eclipsedir}/plugins/org.eclipse.ui.intro_*
%{_eclipsedir}/plugins/org.eclipse.ui.intro.quicklinks_*
%{_eclipsedir}/plugins/org.eclipse.ui.intro.universal_*
%{_eclipsedir}/plugins/org.eclipse.ui.monitoring_*
%{_eclipsedir}/plugins/org.eclipse.ui.navigator_*
%{_eclipsedir}/plugins/org.eclipse.ui.navigator.resources_*
%{_eclipsedir}/plugins/org.eclipse.ui.net_*
%{_eclipsedir}/plugins/org.eclipse.ui.themes_*
%{_eclipsedir}/plugins/org.eclipse.ui.views_*
%{_eclipsedir}/plugins/org.eclipse.ui.views.log_*
%{_eclipsedir}/plugins/org.eclipse.ui.views.properties.tabbed_*
%{_eclipsedir}/plugins/org.eclipse.ui.workbench_*
%{_eclipsedir}/plugins/org.eclipse.ui.workbench.texteditor_*
%{_eclipsedir}/plugins/org.eclipse.update.configurator_*
%{_eclipsedir}/plugins/org.eclipse.urischeme_*
%{_eclipsedir}/plugins/org.glassfish.web.javax.servlet.jsp_*
%{_eclipsedir}/plugins/org.kxml2_*
%{_eclipsedir}/plugins/org.sat4j.core_*
%{_eclipsedir}/plugins/org.sat4j.pb_*
%{_eclipsedir}/plugins/org.tukaani.xz_*
%{_eclipsedir}/plugins/org.w3c.css.sac_*
%{_eclipsedir}/plugins/org.w3c.dom.svg_*
%{_eclipsedir}/plugins/org.xmlpull_*
%doc %{_eclipsedir}/readme
%{_eclipsedir}/artifacts.xml
%{_eclipsedir}/p2
%{_javadir}/%{name}/core*
%{_javadir}/%{name}/equinox.*

%files jdt -f .mfiles-jdt
%{_datadir}/appdata/eclipse-jdt.metainfo.xml

%files pde -f .mfiles-pde -f .mfiles-cvs -f .mfiles-sdk
%{_datadir}/appdata/eclipse-pde.metainfo.xml

%files p2-discovery -f .mfiles-p2-discovery

%files contributor-tools -f .mfiles-contributor-tools

%files tests -f .mfiles-tests
%{_bindir}/eclipse-runTestBundles
%{_datadir}/eclipse-testing

%files equinox-osgi -f .mfiles-equinox-osgi
%{_eclipsedir}/plugins/org.eclipse.osgi_*
%{_eclipsedir}/plugins/org.eclipse.osgi.compatibility.state_*
%{_eclipsedir}/plugins/org.eclipse.osgi.services_*
%{_eclipsedir}/plugins/org.eclipse.osgi.util_*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12516 |21mr|eclipse-abrt-0.0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		eclipse-abrt
Version:	0.0.3
Release:	9
Summary:	Eclipse ABRT plugin
License:	EPL-1.0
URL:		https://pagure.io/eclipse-abrt

Source0:	https://pagure.io/releases/eclipse-abrt/eclipse-abrt-%{version}.tar.xz

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:	tycho
BuildRequires:	tycho-extras
BuildRequires:	eclipse-platform
BuildRequires:	jnr-unixsocket
BuildRequires:	eclipse-epp-logging
BuildRequires:	eclipse-license
BuildRequires:	osgi(org.eclipse.mylyn.bugzilla.ui)

Requires:	eclipse-platform >= 1:4.3.2
Requires:	eclipse-epp-logging

Obsoletes:	eclipse-mylyn-fedora-integration >= 1.0.4-1

%description
This plugin provide support to add error reports from Eclipse to ABRT

%prep
%setup -q -n eclipse-abrt-%{version}

%build
%mvn_build  -j -- -f pom.xml

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12517 |21mr|eclipse-anyedit-2.7.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: AnyEdit plugin for eclipse
Name: eclipse-anyedit
Version: 2.7.1
Release: 4
License: EPL-1.0
URL: http://andrei.gmxhome.de/anyedit/index.html

Source0: https://github.com/iloveeclipse/anyedittools/archive/%{version}.tar.gz

BuildRequires: tycho
BuildRequires: eclipse-jdt

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

%description
The AnyEdit plugin adds several new actions to the context menu of text-based
Eclipse editors.

%prep
%setup -q -n anyedittools-%{version}

xmvn -o org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms \
  -DgroupId=de.loskutov -Dversion=%{version}

# Use Java 1.8 annotations
sed -i -e '/jdt\.annotation/s/1\.2.\0/3.0.0/' AnyEditTools/META-INF/MANIFEST.MF
sed -i -e 's/JavaSE-1.7/JavaSE-1.8/' AnyEditTools/META-INF/MANIFEST.MF AnyEditTools/build.properties
sed -i -e 's/1.7/1.8/' AnyEditTools/.settings/org.eclipse.jdt.core.prefs

# don't install poms
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.md
 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12518 |21mr|eclipse-cdt-9.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _eclipsedir %{_prefix}/lib/eclipse

%global _build_id_links alldebug

# Change following to 0 to default to no container/remote support when building
# for the first time in a buildroot -- this is needed to build:
#  * eclipse-linuxtools-docker
#  * eclipse-remote
#  * eclipse-tm-terminal
#  * eclipse-launchbar
# which all make circular dependencies on cdt
%global _enable_container_and_remote_support 1
%global _enable_container_support 1

Epoch: 2

%global eclipse_base            %{_datadir}/eclipse
%global cdt_snapshot            org.eclipse.cdt-825423c1e3b2c94d628fbfc5de3c179a647ca51b
%global template_snapshot       org.eclipse.tools.templates-dc437804a238f57a12675f882ba2fbac7c79ef1a

%global _cdtstandalonedir	%{_prefix}/lib/cdt-stand-alone-debugger

# we don't want to either provide or require anything from the stand-alone debugger install dir
%global __provides_exclude_from ^%{_cdtstandalonedir}/.*$
%global __requires_exclude_from ^%{_cdtstandalonedir}/.*$

%ifarch %{ix86}
    %global eclipse_arch x86
%endif
%ifarch %{arm}
    %global eclipse_arch arm
%endif
%ifarch s390x x86_64 aarch64 ppc64le
    %global eclipse_arch %{_arch}
%endif

# Desktop file information
%global app_name %{?app_name_prefix}%{!?app_name_prefix:Eclipse} C/C++ Debugger
%global app_exec %{?app_exec_prefix} cdtdebug

Summary:        Eclipse C/C++ Development Tools (CDT) plugin
Name:           eclipse-cdt
Version:        9.7.0
Release:        2
License:        EPL-2.0 and CPL
Group:          Development/Java
URL:            http://www.eclipse.org/cdt

Source0: http://git.eclipse.org/c/cdt/org.eclipse.cdt.git/snapshot/%{cdt_snapshot}.tar.xz

# This could be broken out into a separate SRPM if another project starts using it
Source1: http://git.eclipse.org/c/cdt/org.eclipse.tools.templates.git/snapshot/%{template_snapshot}.tar.xz

Source3: eclipse-cdt.desktop

# man-page for /usr/bin/cdtdebug
Source4: cdtdebug.man

# Following fixes cdtdebug.sh script to get proper platform filesystem plugin
Patch1: eclipse-cdt-cdtdebug.patch

# Following fixes Standalone Debugger config.ini file to use bundle symbolic names
Patch2: eclipse-cdt-config-ini.patch

# Following fixes Standalone Debugger README file to refer to /usr/bin/cdtdebug
Patch3: eclipse-cdt-cdtdebug-readme.patch

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: make
BuildRequires: rsync
BuildRequires: gcc-c++
BuildRequires: tycho
BuildRequires: tycho-extras
BuildRequires: eclipse-license2
BuildRequires: desktop-file-utils
BuildRequires: lpg-java-compat
BuildRequires: google-gson
BuildRequires: glassfish-jaxb-api
BuildRequires: eclipse-platform
BuildRequires: eclipse-pde
BuildRequires: eclipse-contributor-tools
BuildRequires: eclipse-swtbot >= 2.4.0
BuildRequires: eclipse-tm-terminal
BuildRequires: exec-maven-plugin
BuildRequires: maven-antrun-plugin
BuildRequires: freemarker
BuildRequires: mockito
%if %{_enable_container_and_remote_support}
%if %{_enable_container_support}
BuildRequires: eclipse-linuxtools-docker >= 5.3.0
%endif
BuildRequires: eclipse-launchbar >= 1:2.2.2
BuildRequires: eclipse-remote >= 2.1.0
BuildRequires: eclipse-tm-terminal-connectors >= 4.3.0
%endif

Requires:      gdb make gcc-c++
Requires:      hamcrest
Requires:      eclipse-launchbar >= 1:2.2.2
%if %{_enable_container_and_remote_support}
Requires:      autoconf automake libtool
Requires:      eclipse-remote >= 2.1.0
Requires:      eclipse-tm-terminal-connectors >= 4.3.0
%endif

Recommends:    eclipse-linuxtools-libhover
Recommends:    eclipse-cdt-llvm
Recommends:    eclipse-cdt-qt

%description
Eclipse features and plugins that are useful for C and C++ development.

%package native
Summary:        Eclipse C/C++ Development Tools (CDT) Natives
Requires:       eclipse-platform

%description native
Architecture specific parts of CDT.

%package parsers
Summary:        Eclipse C/C++ Development Tools (CDT) Optional Parsers
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:       lpg-java-compat

%description parsers
Optional language-variant parsers for the CDT.

%package llvm
Summary:        Eclipse C/C++ Development Tools (CDT) LLVM
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:       lpg-java-compat
%if 0%{?fedora} || 0%{?rhel} > 7
Requires:       clang
Requires:       lldb
%endif

%description llvm
Optional llvm parsers for the CDT.

%if %{_enable_container_and_remote_support}

%package arduino
Summary:        Arduino C++ Tools
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:       eclipse-tm-terminal-connectors >= 4.3.0

%description arduino
Extensions to support Arduino C++ projects in Eclipse.

%if %{_enable_container_support}
%package docker
Summary:        C/C++ Docker Launcher
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:       eclipse-linuxtools-docker >= 5.3.0

%description docker
Special launcher for CDT to allow launching and debugging C/C++ applications
in Docker Containers.
%endif

%package qt
Summary:        QT C++ Tools
Requires:       %{name} = %{epoch}:%{version}-%{release}
#for new qt project to work out of the box
#Requires:       pkgconfig(Qt5)
Requires:       qt5-devel
Requires:       pkgconfig(Qt5Qml)
Requires:       pkgconfig(Qt5Quick)

%description qt
Extensions to support Qt projects and objects in the indexer.

%endif

%package tests
Summary:        Eclipse C/C++ Development Tools (CDT) Tests
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:       %{name}-llvm = %{epoch}:%{version}-%{release}
Requires:       %{name}-parsers = %{epoch}:%{version}-%{release}
%if %{_enable_container_and_remote_support}
Requires:       %{name}-docker = %{epoch}:%{version}-%{release}
Requires:       %{name}-arduino = %{epoch}:%{version}-%{release}
Requires:       %{name}-qt = %{epoch}:%{version}-%{release}
%endif
Requires:       eclipse-tests
Requires:       eclipse-swtbot >= 2.4.0
Requires:       hamcrest

%description tests
Test plugins for the CDT.

%package sdk
Summary:        Eclipse C/C++ Development Tools (CDT) SDK plugin
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description sdk
Source for Eclipse CDT for use within Eclipse.

%prep
%setup -q -n %{cdt_snapshot}

# get desktop info
mkdir desktop
cp %{SOURCE3} desktop

# handle man page
mkdir man
cp %{SOURCE4} man

%patch1 -p0
%patch2 -p0
%patch3 -p1

# Fix tycho target environment
TYCHO_ENV="<environment><os>linux</os><ws>gtk</ws><arch>%{eclipse_arch}</arch></environment>"
%pom_xpath_set "pom:configuration/pom:environments" "$TYCHO_ENV" . core/org.eclipse.cdt.core.linux debug/org.eclipse.cdt.debug.application.product

# Add secondary arch support if we are building there
%ifarch s390x aarch64
sed -i -e 's/linux.x86"/linux.%{eclipse_arch}"/g' pom.xml
pushd core
sed -i -e 's/linux.x86 /linux.%{eclipse_arch} /g' org.eclipse.cdt.core.native/plugin.properties
sed -i -e 's/\\(x86\\)/(%{eclipse_arch})/g' org.eclipse.cdt.core.native/plugin.properties
cp -r org.eclipse.cdt.core.linux.x86 org.eclipse.cdt.core.linux.%{eclipse_arch}
rm -fr org.eclipse.cdt.core.linux.x86
pushd org.eclipse.cdt.core.linux.%{eclipse_arch}
sed -i -e 's/x86/%{eclipse_arch}/g' pom.xml
sed -i -e 's/x86/%{eclipse_arch}/g' META-INF/MANIFEST.MF
mv os/linux/x86 os/linux/%{eclipse_arch}
popd
sed -i -e 's/x86/%{eclipse_arch}/g' org.eclipse.cdt.core.linux/pom.xml
popd
sed -i -e 's/"org.eclipse.cdt.core.linux.x86"/"org.eclipse.cdt.core.linux.%{eclipse_arch}"/g' \
       -e 's/arch="x86"/arch="%{eclipse_arch}"/' releng/org.eclipse.cdt.native-feature/feature.xml
sed -i -e "s|org.eclipse.cdt.core.linux.x86</module>|org.eclipse.cdt.core.linux.%{eclipse_arch}</module>|g" pom.xml
%endif
%ifarch s390x x86_64 aarch64 ppc64le
sed -i -e 's|linux/x86_64/|linux/%{eclipse_arch}/|' \
  native/org.eclipse.cdt.native.serial/jni/Makefile
%else
sed -i -e 's|linux/x86/|linux/%{eclipse_arch}/|' \
  native/org.eclipse.cdt.native.serial/jni/Makefile
%endif
sed -i -e 's|-m.. |$(CFLAGS) $(LDFLAGS) |' \
  native/org.eclipse.cdt.native.serial/jni/Makefile

# Ensure correct platform fragments appear in config.ini ...
sed -i -e 's/x86_64/%{eclipse_arch}/' \
  debug/org.eclipse.cdt.debug.application.product/debug.product
# ... then remove fragments on platforms they aren't shipped
%ifarch s390x aarch64 ppc64le
sed -i '/filesystem.linux.%{eclipse_arch}/d' \
  debug/org.eclipse.cdt.debug.application.product/debug.product
sed -i '/net.linux.%{eclipse_arch}/d' \
  debug/org.eclipse.cdt.debug.application.product/debug.product
%endif

# Force the arch-specific plug-ins to be dir-shaped so that binary stripping works and the native files
# aren't loaded into the user.home .eclipse configuration
echo "Eclipse-BundleShape: dir" >> core/org.eclipse.cdt.core.linux.%{eclipse_arch}/META-INF/MANIFEST.MF
echo "Eclipse-BundleShape: dir" >> native/org.eclipse.cdt.native.serial/META-INF/MANIFEST.MF
sed -i -e '/library/s/library\//library\/*.c,library\/*.h,library\/Makefile/' \
  core/org.eclipse.cdt.core.linux/build.properties

# Remove pre-built natives
rm -rf native/org.eclipse.cdt.native.serial/os/* \
       core/org.eclipse.cdt.core.linux.*/os/*
mkdir -p native/org.eclipse.cdt.native.serial/os/linux/%{eclipse_arch} \
         core/org.eclipse.cdt.core.linux.%{eclipse_arch}/os/linux/%{eclipse_arch}

# Don't use the target configuration
%pom_disable_module releng/org.eclipse.cdt.target
%pom_xpath_remove "pom:configuration/pom:target"

# Don't need to build the repo
%pom_disable_module releng/org.eclipse.cdt.repo
%pom_disable_module releng/org.eclipse.cdt.testing.repo

# Disable the jgit provider and force default packaging
%pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin

# Unnecessary plugins for RPM builds
%pom_remove_plugin org.jacoco:jacoco-maven-plugin

# Disable docker, autotools, and remote features if we are building a boot-strap build
%if ! %{_enable_container_and_remote_support}
%pom_disable_module launch/org.eclipse.cdt.docker.launcher
%pom_disable_module launch/org.eclipse.cdt.docker.launcher-feature
%pom_disable_module build/org.eclipse.cdt.autotools.core
%pom_disable_module build/org.eclipse.cdt.autotools.docs
%pom_disable_module build/org.eclipse.cdt.autotools.ui
%pom_disable_module build/org.eclipse.cdt.autotools-feature
%pom_disable_module build/org.eclipse.cdt.autotools.tests
%pom_disable_module build/org.eclipse.cdt.autotools.ui.tests
%pom_disable_module build/org.eclipse.cdt.cmake.core
%pom_disable_module build/org.eclipse.cdt.cmake.ui
%pom_disable_module build/org.eclipse.cdt.cmake-feature
%pom_disable_module build/org.eclipse.cdt.cmake.ui.tests
%pom_disable_module build/org.eclipse.cdt.make.ui
%pom_disable_module build/org.eclipse.cdt.managedbuilder.ui
%pom_disable_module debug/org.eclipse.cdt.debug.core
%pom_disable_module debug/org.eclipse.cdt.debug.ui
%pom_disable_module debug/org.eclipse.cdt.gdb.ui
%pom_disable_module debug/org.eclipse.cdt.gdb-feature
%pom_disable_module debug/org.eclipse.cdt.gnu.debug-feature
%pom_disable_module debug/org.eclipse.cdt.debug.application
%pom_disable_module debug/org.eclipse.cdt.debug.application.product
%pom_disable_module debug/org.eclipse.cdt.debug.standalone-feature
%pom_disable_module dsf/org.eclipse.cdt.dsf
%pom_disable_module dsf/org.eclipse.cdt.dsf.ui
%pom_disable_module dsf-gdb/org.eclipse.cdt.dsf.gdb
%pom_disable_module dsf-gdb/org.eclipse.cdt.dsf.gdb.ui
%pom_disable_module dsf-gdb/org.eclipse.cdt.gnu.dsf-feature
%pom_disable_module dsf-gdb/org.eclipse.cdt.gnu.multicorevisualizer-feature
%pom_disable_module dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui
%pom_disable_module llvm/org.eclipse.cdt.llvm.dsf.lldb.core
%pom_disable_module llvm/org.eclipse.cdt.llvm.dsf.lldb-feature
%pom_disable_module llvm/org.eclipse.cdt.llvm.dsf.lldb.ui
%pom_disable_module jtag/org.eclipse.cdt.debug.gdbjtag
%pom_disable_module jtag/org.eclipse.cdt.debug.gdbjtag.core
%pom_disable_module jtag/org.eclipse.cdt.debug.gdbjtag.ui
%pom_disable_module jtag/org.eclipse.cdt.debug.gdbjtag-feature
%pom_disable_module memory/org.eclipse.cdt.debug.ui.memory-feature
%pom_disable_module memory/org.eclipse.cdt.debug.ui.memory.floatingpoint
%pom_disable_module memory/org.eclipse.cdt.debug.ui.memory.memorybrowser
%pom_disable_module memory/org.eclipse.cdt.debug.ui.memory.search
%pom_disable_module memory/org.eclipse.cdt.debug.ui.memory.traditional
%pom_disable_module memory/org.eclipse.cdt.debug.ui.memory.transport
%pom_disable_module testsrunner/org.eclipse.cdt.testsrunner
%pom_disable_module testsrunner/org.eclipse.cdt.testsrunner.qttest
%pom_disable_module testsrunner/org.eclipse.cdt.testsrunner.boost
%pom_disable_module testsrunner/org.eclipse.cdt.testsrunner.tap
%pom_disable_module testsrunner/org.eclipse.cdt.testsrunner.feature
%pom_disable_module testsrunner/org.eclipse.cdt.testsrunner.gtest
%pom_disable_module visualizer/org.eclipse.cdt.visualizer.core
%pom_disable_module visualizer/org.eclipse.cdt.visualizer.ui
%pom_disable_module visualizer/org.eclipse.cdt.visualizer-feature
%pom_disable_module cross/org.eclipse.cdt.build.crossgcc-feature
%pom_disable_module cross/org.eclipse.cdt.build.crossgcc
%pom_disable_module cross/org.eclipse.cdt.launch.remote
%pom_disable_module cross/org.eclipse.cdt.launch.remote-feature
%pom_disable_module cross/org.eclipse.cdt.launch.serial.core
%pom_disable_module cross/org.eclipse.cdt.launch.serial.ui
%pom_disable_module cross/org.eclipse.cdt.launch.serial-feature
%pom_disable_module launch/org.eclipse.cdt.launch
%pom_disable_module remote/org.eclipse.cdt.remote.core
%pom_disable_module qt/org.eclipse.cdt.qt.core
%pom_disable_module qt/org.eclipse.cdt.qt.ui
%pom_disable_module qt/org.eclipse.cdt.qt-feature
%pom_disable_module qt/org.eclipse.cdt.qt.ui.tests
%pom_disable_module toolchains/arduino/org.eclipse.cdt.arduino.core
%pom_disable_module toolchains/arduino/org.eclipse.cdt.arduino.ui
%pom_disable_module toolchains/arduino/org.eclipse.cdt.arduino-feature
%pom_disable_module xlc/org.eclipse.cdt.xlc.feature
%pom_disable_module xlc/org.eclipse.cdt.xlc.sdk-feature
%pom_disable_module xlc/org.eclipse.cdt.make.xlc.core
%pom_disable_module xlc/org.eclipse.cdt.core.lrparser.xlc
%pom_disable_module xlc/org.eclipse.cdt.errorparsers.xlc
%pom_disable_module xlc/org.eclipse.cdt.managedbuilder.xlc.ui
%pom_disable_module xlc/org.eclipse.cdt.managedbuilder.xlc.core
%pom_disable_module xlc/org.eclipse.cdt.managedbuilder.xlupc.ui
%pom_disable_module releng/org.eclipse.cdt
%pom_disable_module releng/org.eclipse.cdt.platform-feature
%pom_disable_module releng/org.eclipse.cdt-feature
%pom_disable_module releng/org.eclipse.cdt.sdk
%pom_disable_module releng/org.eclipse.cdt.sdk-feature
%pom_disable_module build/org.eclipse.cdt.managedbuilder.core.tests
%pom_disable_module build/org.eclipse.cdt.managedbuilder.ui.tests
%pom_disable_module build/org.eclipse.cdt.make.core.tests
%pom_disable_module build/org.eclipse.cdt.make.ui.tests
%pom_disable_module codan/org.eclipse.cdt.codan.core.tests
%pom_disable_module codan/org.eclipse.cdt.codan.checkers.ui.tests
%pom_disable_module core/org.eclipse.cdt.core.tests
%pom_disable_module core/org.eclipse.cdt.ui.tests
%pom_disable_module dsf-gdb/org.eclipse.cdt.dsf.gdb.tests
%pom_disable_module dsf-gdb/org.eclipse.cdt.tests.dsf.gdb
%pom_disable_module dsf-gdb/org.eclipse.cdt.dsf.gdb.multicorevisualizer.ui.tests
%pom_disable_module testsrunner/org.eclipse.cdt.testsrunner.tests
%pom_disable_module xlc/org.eclipse.cdt.errorparsers.xlc.tests
%pom_disable_module releng/org.eclipse.cdt.testing
%pom_disable_module releng/org.eclipse.cdt.testing-feature
%else
%if ! %{_enable_container_support}
%pom_disable_module launch/org.eclipse.cdt.docker.launcher
%pom_disable_module launch/org.eclipse.cdt.docker.launcher-feature
%endif
# Always disable arduino support on rhel
%if 0%{?rhel} && 0%{?rhel} <= 7
%pom_disable_module toolchains/arduino/org.eclipse.cdt.arduino.core
%pom_disable_module toolchains/arduino/org.eclipse.cdt.arduino.ui
%pom_disable_module toolchains/arduino/org.eclipse.cdt.arduino-feature
%endif
%endif

# Disable all bundles not relavent to the platform we currently building
for b in `ls core/ | grep -P -e 'org.eclipse.cdt.core\.(?!linux\.%{eclipse_arch}$|tests$|linux$|native$)'` ; do
  module=$(grep ">core/$b<" pom.xml || :)
  if [ -n "$module" ] ; then
    %pom_disable_module "core/$b"
    %pom_xpath_remove "plugin[@id='$b']" releng/org.eclipse.cdt.native-feature/feature.xml
  fi
done

# Disable meson (missing dep tm4e)
%pom_disable_module build/org.eclipse.cdt.meson.core
%pom_disable_module build/org.eclipse.cdt.meson.docs
%pom_disable_module build/org.eclipse.cdt.meson.ui
%pom_disable_module build/org.eclipse.cdt.meson.ui.editor
%pom_disable_module build/org.eclipse.cdt.meson-feature
%pom_disable_module build/org.eclipse.cdt.meson.ui.tests

# Disable lsp4e (missing dep)
%pom_disable_module lsp/org.eclipse.cdt.lsp.core
%pom_disable_module lsp/org.eclipse.cdt.lsp.core.tests
%pom_disable_module lsp/org.eclipse.cdt.lsp-feature

# Disable examples
%pom_disable_module visualizer/org.eclipse.cdt.visualizer.examples
%pom_disable_module dsf/org.eclipse.cdt.examples.dsf
%pom_disable_module dsf/org.eclipse.cdt.examples.dsf.pda
%pom_disable_module dsf/org.eclipse.cdt.examples.dsf.pda.ui
%pom_disable_module dsf/org.eclipse.cdt.examples.dsf-feature
%pom_disable_module dsf-gdb/org.eclipse.cdt.examples.dsf.gdb

# Fix hamcrest and mockito deps
RE="-e s/org.hamcrest/org.hamcrest.library/"
%if 0%{?fedora} && 0%{?fedora} < 30
RE="$RE -e s/org.mockito/org.mockito.mockito-core/"
%endif
sed -i $RE \
  dsf-gdb/org.eclipse.cdt.tests.dsf.gdb/META-INF/MANIFEST.MF \
  codan/org.eclipse.cdt.codan.checkers.ui.tests/META-INF/MANIFEST.MF \
  core/org.eclipse.cdt.ui.tests/META-INF/MANIFEST.MF \
  core/org.eclipse.cdt.core.tests/META-INF/MANIFEST.MF

# Add template tools to the build
tar xf %{SOURCE1} --strip-components=1 --exclude=%{template_snapshot}/pom.xml
%pom_set_parent "org.eclipse.cdt:cdt-parent:%{version}-SNAPSHOT" bundles
for b in org.eclipse.tools.templates.{core,freemarker,ui,freemarker.java11} ; do
  %pom_xpath_inject "pom:project/pom:modules" "<module>bundles/$b</module>"
done

# Fix freemarker dep
sed -i -e 's/org.freemarker/org.freemarker.freemarker/' \
  qt/org.eclipse.cdt.qt.core/META-INF/MANIFEST.MF \
  bundles/org.eclipse.tools.templates.freemarker/META-INF/MANIFEST.MF \
  build/org.eclipse.cdt.cmake.core/META-INF/MANIFEST.MF

# Use unversioned dep of packages that can be supplied by the JRE
sed -i -e '/javax.xml.bind/s/;version="2.2.0"//' \
core/org.eclipse.cdt.core/META-INF/MANIFEST.MF \
qt/org.eclipse.cdt.qt.core/META-INF/MANIFEST.MF \
bundles/org.eclipse.tools.templates.freemarker.java11/META-INF/MANIFEST.MF
sed -i -e '/com.sun.xml.bind/d' -e '/org.eclipse.tools.templates.core/s/,//' bundles/org.eclipse.tools.templates.freemarker/META-INF/MANIFEST.MF
sed -i -e 's/javax.xml.bind/jaxb-api/' bundles/org.eclipse.tools.templates.freemarker/build.properties
sed -i -e 's/com.sun.xml.bind.v2/com.sun.xml.internal.bind.v2/' bundles/org.eclipse.tools.templates.freemarker/src/org/eclipse/tools/templates/freemarker/FMGenerator.java
# Avoid unnecessary dep on Java 11
sed -i -e 's/JavaSE-11/JavaSE-1.8/' bundles/org.eclipse.tools.templates.freemarker.java11/META-INF/MANIFEST.MF

%mvn_package "::pom::" __noinstall
%mvn_package ":*.{testing,tests,tests.dsf,tests.dsf.gdb}" tests
%mvn_package "::jar:sources{,-feature}:" sdk
%mvn_package :*.sdk sdk
%mvn_package :*.doc.isv sdk
%mvn_package ":org.eclipse.cdt.core{,.native,.linux,.linux.%{eclipse_arch}}" native
%mvn_package ":org.eclipse.cdt.native{,.serial}" native
%mvn_package ":*.testsrunner*"
%mvn_package :*parser* parsers
%mvn_package ":org.eclipse.cdt.*{xlc,xlupc,bupc}*" parsers
%mvn_package :org.eclipse.tools.templates.*
%mvn_package :org.eclipse.cdt.arduino* arduino
%mvn_package :org.eclipse.cdt.docker* docker
%mvn_package ":org.eclipse.cdt.{managedbuilder.llvm,llvm.dsf}*" llvm
%mvn_package :org.eclipse.cdt.qt* qt
%mvn_package :org.eclipse.cdt.cmake* qt
%mvn_package :org.eclipse.cdt*

%build

export JAVA_HOME=%{_jvmdir}/java

export CFLAGS="${CFLAGS:-%__global_cflags}"
export LDFLAGS="${LDFLAGS:-%__global_ldflags}"

# Build native serial library
pushd native/org.eclipse.cdt.native.serial/jni
make ../os/linux/%{eclipse_arch}/libserial.so
popd

# Avoid running out of heap on s390x
export MAVEN_OPTS="-Xmx1024m"

# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +%Y%m%d%H%M)
%mvn_build -j -f -- -Dtycho.local.keepTarget -Dnative=linux.%{eclipse_arch} -DforceContextQualifier=$QUALIFIER \
  -Pbuild-standalone-debugger-rcp

%install
%mvn_install

%if %{_enable_container_and_remote_support}

binInstallDir=%{buildroot}/%{_bindir}
install -d -m755 $binInstallDir

libInstallDir=%{buildroot}/%{_cdtstandalonedir}
install -d -m755 $libInstallDir

#standalone debugger - copy it into right location
rsync -vrpl debug/org.eclipse.cdt.debug.application.product/target/products/org.eclipse.cdt.debug.application.product/linux/gtk/%{eclipse_arch}/cdt-stand-alone-debugger \
    %{buildroot}%{_prefix}/lib

# Symlink cdtdebug binary
pushd %{buildroot}%{_bindir}
    ln -s %{_cdtstandalonedir}/cdtdebug
popd

# Use distro-specific working dir to avoid clashing with upstream
%if 0%{?rhel}
sed -i -e '/-data/i-configuration' -e '/-data/i@user.home\/rhcdtdebugger' \
       -e 's/@noDefault/@user.home\/workspace-rhcdtdebug/' %{buildroot}%{_cdtstandalonedir}/cdtdebug.ini
%else
sed -i -e '/-data/i-configuration' -e '/-data/i@user.home\/fcdtdebugger' \
       -e 's/@noDefault/@user.home\/workspace-fcdtdebug/' %{buildroot}%{_cdtstandalonedir}/cdtdebug.ini
%endif

%endif

# Install icons
install -D debug/org.eclipse.cdt.debug.application/icons/cc32.png \
    $RPM_BUILD_ROOT/usr/share/icons/hicolor/32x32/apps/%{name}.png
install -D debug/org.eclipse.cdt.debug.application/icons/cc48.png \
    $RPM_BUILD_ROOT/usr/share/icons/hicolor/48x48/apps/%{name}.png
install -D debug/org.eclipse.cdt.debug.application/icons/cc128.png \
    $RPM_BUILD_ROOT/usr/share/icons/hicolor/128x128/apps/%{name}.png
install -D debug/org.eclipse.cdt.debug.application/icons/cc.png \
    $RPM_BUILD_ROOT/usr/share/icons/hicolor/256x256/apps/%{name}.png
install -d $RPM_BUILD_ROOT/usr/share/pixmaps
ln -s /usr/share/icons/hicolor/256x256/apps/%{name}.png \
    $RPM_BUILD_ROOT/usr/share/pixmaps/%{name}.png

# Fix permissions on native libraries
find $RPM_BUILD_ROOT -name *.so -exec chmod +x {} \;

# Install desktop file
sed -i -e 's|Exec=cdtdebug|Exec=%{app_exec}|g' desktop/eclipse-cdt.desktop
sed -i -e 's|Name=Eclipse.*|Name=%{app_name}|g' desktop/eclipse-cdt.desktop
sed -i -e "s|Icon=eclipse|Icon=%{name}|g" desktop/eclipse-cdt.desktop
install -D desktop/eclipse-cdt.desktop $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop
desktop-file-validate $RPM_BUILD_ROOT/usr/share/applications/%{name}.desktop

# Install man page
install -D -m 644 man/cdtdebug.man $RPM_BUILD_ROOT/%{_mandir}/man1/cdtdebug.1

# Remove uneeded extra symlinks that are optional deps of log4j:
%if %{_enable_container_and_remote_support}
sed -i -e '/mail/d' .mfiles* %{buildroot}/%{_datadir}/eclipse/droplets/*/fragment.info %{buildroot}/%{_datadir}/java/*/fragment.info
%else
sed -i -e '/mail/d' .mfiles*
%endif
rm -f %{buildroot}/%{_datadir}/eclipse/droplets/*/plugins/*mail* %{buildroot}/%{_datadir}/java/*/plugins/*mail*

%files -f .mfiles
%if %{_enable_container_and_remote_support}
%{_bindir}/cdtdebug
%{_cdtstandalonedir}/*
%endif
/usr/share/applications/*
/usr/share/pixmaps/*
/usr/share/icons/*/*/apps/*
%{_mandir}/man1/cdtdebug.1*
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%files native -f .mfiles-native
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%files sdk -f .mfiles-sdk
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%files parsers -f .mfiles-parsers
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%if %{_enable_container_and_remote_support}

%files tests -f .mfiles-tests
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%endif

%files llvm -f .mfiles-llvm
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%if %{_enable_container_and_remote_support}

%files qt -f .mfiles-qt
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%files arduino -f .mfiles-arduino
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%if %{_enable_container_support}

%files docker -f .mfiles-docker
%license releng/org.eclipse.cdt.sdk/epl-v20.html

%endif
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12519 |21mr|eclipse-checkstyle-7.6.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global install_loc %{_datadir}/eclipse/droplets/checkstyle
%global cs_ver 7.6

Summary:   Checkstyle plugin for Eclipse
Name:      eclipse-checkstyle
Version:   7.6.0
Release:   7
License:   LGPLv2+
URL:       http://eclipse-cs.sourceforge.net

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

# Redirected from https://sourceforge.net/p/eclipse-cs/git/ci/7.6.0/tarball
Source0: https://sourceforge.net/code-snapshots/git/e/ec/eclipse-cs/git.git/eclipse-cs-git-38600a3c2b01faba76ede3976da733fab453a535.zip

# Sent upstream: https://sourceforge.net/p/eclipse-cs/bugs/421/
Patch0: oxygen-compatibility.patch

Requires: checkstyle >= %{cs_ver}
Requires: antlr-tool
Requires: antlr4-runtime
Requires: guava
Requires: apache-commons-beanutils
Requires: apache-commons-collections
Requires: apache-commons-logging
Requires: dom4j
Requires: jfreechart
Requires: jfreechart-swt

BuildRequires: tycho
BuildRequires: tycho-extras
BuildRequires: eclipse-jdt
BuildRequires: checkstyle >= %{cs_ver}
BuildRequires: antlr-tool
BuildRequires: antlr4-runtime
BuildRequires: guava
BuildRequires: apache-commons-beanutils
BuildRequires: apache-commons-collections
BuildRequires: apache-commons-logging
BuildRequires: dom4j
BuildRequires: jfreechart
BuildRequires: jfreechart-swt

%description
The Eclipse Checkstyle plugin integrates the Checkstyle Java code
auditor into the Eclipse IDE. The plugin provides real-time feedback
to the user about violations of rules that check for coding style and
possible error prone code constructs. 

%prep
%setup -q -n eclipse-cs-git-38600a3c2b01faba76ede3976da733fab453a535

%patch0 -p1

# Ensure correct JDT bundle is wired
sed -i -e '/org.eclipse.jdt.core/d' -e '/Require-Bundle/s/\(.*\)/\1,org.eclipse.jdt.core/' \
  net.sf.eclipsecs.{core,ui}/META-INF/MANIFEST.MF

# Delete pre-built binaries
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;
find -name '*.zip' -exec rm -f '{}' \;

# Fix checkstyle libs manifest
sed -i -e "s|checkstyle-%{cs_ver}-all.jar|checkstyle.jar,antlr.jar,antlr4-runtime.jar,guava.jar,commons-beanutils.jar,commons-collections.jar,commons-logging.jar|g" \
  net.sf.eclipsecs.checkstyle/META-INF/MANIFEST.MF net.sf.eclipsecs.checkstyle/build.properties

# Dir shaped bundles for those with embedded libs
sed -i -e "/ActivationPolicy/aEclipse-BundleShape: dir" net.sf.eclipsecs.{checkstyle,core,ui}/META-INF/MANIFEST.MF

pushd net.sf.eclipsecs.checkstyle
ln -s $(build-classpath checkstyle) checkstyle.jar
ln -s $(build-classpath guava)      guava.jar
ln -s $(build-classpath antlr)      antlr.jar
ln -s $(build-classpath antlr4-runtime) antlr4-runtime.jar
ln -s $(build-classpath commons-beanutils) commons-beanutils.jar
ln -s $(build-classpath commons-collections) commons-collections.jar
ln -s $(build-classpath commons-logging) commons-logging.jar
popd

pushd net.sf.eclipsecs.core
ln -s $(build-classpath dom4j/dom4j) lib/dom4j-1.6.1.jar
popd

pushd net.sf.eclipsecs.ui
ln -s $(build-classpath jcommon/jcommon)           lib/jcommon-1.0.16.jar
ln -s $(build-classpath jfreechart/jfreechart)     lib/jfreechart-1.0.14.jar
ln -s $(build-classpath jfreechart/jfreechart-swt) lib/jfreechart-1.0.14-swt.jar
popd

%pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin net.sf.eclipsecs.parent
%pom_disable_module ../net.sf.eclipsecs-updatesite net.sf.eclipsecs.parent
%pom_disable_module ../net.sf.eclipsecs.sample net.sf.eclipsecs.parent

# Unable to bundle checkstyle source into source plugin
%pom_remove_plugin :maven-antrun-plugin net.sf.eclipsecs.checkstyle

# Don't install poms
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j -- -f net.sf.eclipsecs.parent/pom.xml

%install
%mvn_install

pushd $RPM_BUILD_ROOT%{install_loc}/plugins/net.sf.eclipsecs.checkstyle_*
rm *.jar
ln -s $(build-classpath checkstyle) checkstyle.jar
ln -s $(build-classpath guava)      guava.jar
ln -s $(build-classpath antlr)      antlr.jar
ln -s $(build-classpath antlr4-runtime) antlr4-runtime.jar
ln -s $(build-classpath commons-beanutils) commons-beanutils.jar
ln -s $(build-classpath commons-collections) commons-collections.jar
ln -s $(build-classpath commons-logging) commons-logging.jar
popd

pushd $RPM_BUILD_ROOT%{install_loc}/plugins/net.sf.eclipsecs.core_*
rm lib/*.jar
ln -s $(build-classpath dom4j/dom4j) lib/dom4j-1.6.1.jar
popd

pushd $RPM_BUILD_ROOT%{install_loc}/plugins/net.sf.eclipsecs.ui_*
rm lib/*.jar
ln -s $(build-classpath jcommon/jcommon)           lib/jcommon-1.0.16.jar
ln -s $(build-classpath jfreechart/jfreechart)     lib/jfreechart-1.0.14.jar
ln -s $(build-classpath jfreechart/jfreechart-swt) lib/jfreechart-1.0.14-swt.jar
popd

%files -f .mfiles
%license net.sf.eclipsecs-feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12520 |21mr|eclipse-color-theme-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global install_loc     %{_datadir}/eclipse/dropins/%{name}
%global git_tag         69c3149

Summary:        An Eclipse plugin which permits color theme switching
Name:           eclipse-color-theme
Version:        1.0.0
Release:        11
License:        EPL-1.0
URL:            http://www.eclipsecolorthemes.org/
# http://github.com/eclipse-color-theme/eclipse-color-theme/tarball/v%{version}
Source0:        %{name}-%{name}-v%{version}-0-g%{git_tag}.tar.gz

# Patch submitted upstream https://github.com/eclipse-color-theme/eclipse-color-theme/pull/218
Patch0:         explicit-hamcrest-use.patch

BuildRequires: eclipse-pde
BuildRequires: tycho
Requires:      eclipse-platform

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

%description
The Eclipse Color Theme plugin makes it possible to switch color themes
conveniently and without side effects. It includes the most popular themes
from eclipsecolorthemes.org, but you can add any theme created on the site
by exporting it as XML.

%prep
%setup -q -n %{name}-%{name}-%{git_tag}
%patch0 -p1

%mvn_package ":*.test" __noinstall

%build
%mvn_build -j

%install
%mvn_install 

%files -f .mfiles
%doc README.md CHANGES.md
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12521 |21mr|eclipse-dltk-5.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag R5_11_0

Name:      eclipse-dltk
Version:   5.11.0
Release:   1
Summary:   Dynamic Languages Toolkit (DLTK) Eclipse plug-in
License:   EPL-2.0 and (CPL or GPLv2+ or LGPLv2+) and Ruby and ASL 2.0
URL:       http://www.eclipse.org/dltk/

# source tarball and the script used to generate it from upstream's source control
# script usage:
# $ sh get-dltk.sh
Source0:   eclipse-dltk-%{gittag}.tar.xz
Source1:   get-dltk.sh

Patch0:    use-import-package-for-javax.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:    eclipse-license >= 1.0.1
BuildRequires:    eclipse-pde >= 1:4.6.0
BuildRequires:    eclipse-emf-runtime
BuildRequires:    eclipse-mylyn >= 3.21.0-4
BuildRequires:    eclipse-rse
BuildRequires:    eclipse-manpage
BuildRequires:    lucene
BuildRequires:    lucene-analysis
BuildRequires:    lucene-misc
BuildRequires:    tycho
BuildRequires:    tycho-extras
BuildRequires:    mockito
Requires:         eclipse-platform >= 1:4.6.0

%description
Dynamic Languages Toolkit (DLTK) is a tool for vendors, researchers, and users
who rely on dynamic languages. DLTK is comprised of a set of extensible
frameworks designed to reduce the complexity of building full featured
development environments for dynamic languages such as PHP and Perl.

%package   ruby
Summary:   Ruby Eclipse plug-in
Requires:  ruby
#needed for ri to have standard docs so one has the basic help
Requires:  ruby-doc
%if ! 0%{?rhel}
#needed for tests runner
Requires:  rubygem-test-unit
%endif

%description ruby
Ruby development environment for Eclipse based on the Eclipse Dynamic
Languages Toolkit (DLTK).

%package   tcl
Summary:   TCL Eclipse plug-in
Requires:  tcl

%description tcl
TCL development environment for Eclipse based on the Eclipse Dynamic
Languages Toolkit (DLTK). Includes Incr TCL and XOTCL extensions.

%package   mylyn
Summary:   Mylyn integration for Eclipse DLTK projects
Requires:  eclipse-mylyn >= 3.21.0-4

%description mylyn
Mylyn task-focused UI integration for Eclipse Dynamic Languages Toolkit
(DLTK) projects.

%package   rse
Summary:   RSE integration for Eclipse DLTK projects

%description rse
Remote Development Support via RSE for DLTK based IDEs.

%package   sh
Summary:   Shell Script editor support
Obsoletes: eclipse-shelled <= 2.0.3-9.fc24
Provides:  eclipse-shelled = %{version}-%{release}

%description sh
Shell Script editor/launch support based on DLTK.

%package   sdk
Summary:   Eclipse DLTK SDK
Requires:  eclipse-pde >= 1:4.6.0
Requires:  %{name}       = %{version}-%{release}
Requires:  %{name}-ruby  = %{version}-%{release}
Requires:  %{name}-tcl   = %{version}-%{release}
Requires:  %{name}-mylyn = %{version}-%{release}
Requires:  %{name}-rse   = %{version}-%{release}
Requires:  %{name}-sh    = %{version}-%{release}

%description sdk
Documentation and source for the Eclipse Dynamic Languages Toolkit (DLTK).

%package   tests
Summary:   Eclipse DLTK Tests
Requires:  %{name}-sdk = %{version}-%{release}
Requires:  eclipse-swtbot

%description tests
Tests for Eclipse Dynamic Languages Toolkit (DLTK).

%prep
%setup -q -n eclipse-dltk-%{gittag}
%patch0

# We are not shipping the python and javascript editors
# For python we have eclipse-pydev, which should be used instead
# For javascript we have eclipse-webtools, which should be used instead
%pom_disable_module "../org.eclipse.dltk.javascript" org.eclipse.dltk.releng
%pom_disable_module "../org.eclipse.dltk.python" org.eclipse.dltk.releng
%pom_disable_module "releng/org.eclipse.dltk.core.targetplatform" org.eclipse.dltk.core/core

# Disable h2 indexer, using the lucene one instead
%pom_disable_module "features/org.eclipse.dltk.core.index-feature" org.eclipse.dltk.core/core
%pom_disable_module "features/org.eclipse.dltk.core.index.sdk" org.eclipse.dltk.core/core
%pom_disable_module "plugins/org.eclipse.dltk.core.index.sql" org.eclipse.dltk.core/core
%pom_disable_module "plugins/org.eclipse.dltk.core.index.sql.h2" org.eclipse.dltk.core/core

# It's not necessary to build an update site or p2 repo when using mvn_install
%pom_disable_module build/update.site org.eclipse.dltk.releng

# Allow greater range of Lucene versions
sed -i -e '/apache\.lucene/s/7\.6\.0/8.0.0/' \
  org.eclipse.dltk.core/core/plugins/org.eclipse.dltk.core.index.lucene/META-INF/MANIFEST.MF

# org.hamcrest -> org.hamcrest.core
sed -i -e 's/org.hamcrest/org.hamcrest.core/' \
  org.eclipse.dltk.core/core/tests/org.eclipse.dltk.debug.tests/META-INF/MANIFEST.MF

sed -i '/<target>/,/<\/target>/ d' org.eclipse.dltk.core/core/tests/org.eclipse.dltk.core.tests/pom.xml

%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:dependencies" org.eclipse.dltk.releng
%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:configuration" org.eclipse.dltk.releng
%pom_xpath_remove "pom:plugin[pom:artifactId='target-platform-configuration']/pom:configuration/pom:target" org.eclipse.dltk.releng

%mvn_package "::pom::" __noinstall
%mvn_package ":*.tests" tests
%mvn_package "::jar:sources{,-feature}:" sdk
%mvn_package ":*.sdk" sdk
%mvn_package "org.eclipse.dltk.core:org.eclipse.dltk.core.doc.isv" sdk
%mvn_package "org.eclipse.dltk{,.core}:" core
%mvn_package "org.eclipse.dltk.ruby:" ruby
%mvn_package "org.eclipse.dltk.{tcl,itcl,xotcl}:" tcl
%mvn_package "org.eclipse.dltk.mylyn:" mylyn
%mvn_package "org.eclipse.dltk.rse:" rse
%mvn_package "org.eclipse.dltk.sh:" sh
%mvn_package "org.eclipse.dltk.features:org.eclipse.dltk.core{,.index,.index.lucene}" core
%mvn_package "org.eclipse.dltk.features:org.eclipse.dltk.ruby" ruby
%mvn_package "org.eclipse.dltk.features:org.eclipse.dltk.{tcl,itcl,xotcl}" tcl
%mvn_package "org.eclipse.dltk.features:org.eclipse.dltk.mylyn" mylyn
%mvn_package "org.eclipse.dltk.features:org.eclipse.dltk.rse" rse

%build
# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +%Y%m%d%H%M)
%mvn_build -j -f -- -f org.eclipse.dltk.releng/pom.xml -DforceContextQualifier=$QUALIFIER

%install
%mvn_install

%files -f .mfiles-core
%license org.eclipse.dltk.core/LICENSE

%files ruby -f .mfiles-ruby
%license org.eclipse.dltk.ruby/LICENSE

%files tcl -f .mfiles-tcl
%license org.eclipse.dltk.tcl/LICENSE

%files mylyn -f .mfiles-mylyn

%files rse -f .mfiles-rse

%files sh -f .mfiles-sh
%license org.eclipse.dltk.sh/LICENSE

%files sdk -f .mfiles-sdk

%files tests -f .mfiles-tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12522 |21mr|eclipse-dtp-1.14.102-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tag 0cdebb8165f564f4348fbed6b08c54427c77fdb9

Name:      eclipse-dtp
Version:   1.14.102
Release:   4
Summary:   Eclipse Data Tools Platform
License:   EPL-2.0
URL:       https://www.eclipse.org/datatools/

Source0: https://git.eclipse.org/c/datatools/org.eclipse.datatools.git/snapshot/org.eclipse.datatools-%{tag}.tar.xz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:    tycho
BuildRequires:    tycho-extras
BuildRequires:    apache-commons-net
BuildRequires:    eclipse-emf-runtime
BuildRequires:    eclipse-gef
BuildRequires:    eclipse-pde
BuildRequires:    xalan-j2
BuildRequires:    xerces-j2
BuildRequires:    xml-commons-apis
BuildRequires:    xml-commons-resolver
BuildRequires:    wsdl4j
BuildRequires:    lpg-java-compat = 1.1.0
BuildRequires:    lucene
BuildRequires:    lucene-analysis
BuildRequires:    lucene-queryparser
BuildRequires:    lucene-misc

%description
The Eclipse Data Tools Platform provides extensible frameworks and exemplary 
tools, enabling a diverse set of plug-in offerings specific to particular 
data-centric technologies and supported by the DTP ecosystem.

%prep
%setup -q -n org.eclipse.datatools-%{tag}

# Avoid using tycho-sourceref-jgit due to source tarball not being a git repo
%pom_remove_plugin :tycho-packaging-plugin

# Don't need to build tests or update site for RPM builds
%pom_disable_module tests
%pom_disable_module site

# Don't build oda bundles
%pom_disable_module org.eclipse.datatools.enablement.oda.ecore plugins/enablement
%pom_disable_module org.eclipse.datatools.enablement.oda.ecore.ui plugins/enablement
%pom_disable_module org.eclipse.datatools.enablement.oda.ecore.feature features
%pom_disable_module org.eclipse.datatools.enablement.oda.ecore.sdk.feature features

# Don't package poms
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12523 |21mr|eclipse-ecf-3.14.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _eclipsedir %{_prefix}/lib/eclipse

# This exclude breaks the cyclic dependency on the platform to aide in
# bootstrapping
%global __requires_exclude .*org\.eclipse\.equinox.*

%global git_tag 5d501929b628b6aa6d28b2f5df73fc45c0fa1945

# Set this flag to avoid building additional providers when their
# dependencies are not available
%bcond_without providers
# Set this flag to avoid building everything except for the core bundles
# Allows building into a brand new buildroot before Eclipse is even built
%bcond_with bootstrap

Name:           eclipse-ecf
Version:        3.14.4
Release:        2
Summary:        Eclipse Communication Framework (ECF) Eclipse plug-in

# Note: The jive/smack provider is apache licensed
License:        EPL-1.0 and ASL 2.0
URL:            http://www.eclipse.org/ecf/
Source0:        http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/snapshot/org.eclipse.ecf-%{git_tag}.tar.xz

# Change how feature deps are specified, to avoid embedding versions
Patch0:         eclipse-ecf-feature-deps.patch

BuildRequires:  tycho
BuildRequires:  tycho-extras
BuildRequires:  maven-plugin-build-helper
BuildRequires:  eclipse-license
BuildRequires:  osgi-annotation
BuildRequires:  xpp3-minimal
BuildRequires:  httpcomponents-client
BuildRequires:  httpcomponents-core
BuildRequires:  apache-commons-codec
BuildRequires:  apache-commons-logging
%if %{without bootstrap}
BuildRequires:  eclipse-emf-runtime
BuildRequires:  eclipse-pde
%if %{with providers}
BuildRequires:  dnsjava
BuildRequires:  irclib
%endif
%endif

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ECF is a set of frameworks for building communications into applications and
services. It provides a lightweight, modular, transport-independent, fully
compliant implementation of the OSGi Remote Services standard.

%package   core
Summary:   Eclipse ECF Core
Requires:  httpcomponents-client
Requires:  httpcomponents-core

%description core
ECF bundles required by eclipse-platform.

%if %{without bootstrap}
%package   runtime
Summary:   Eclipse Communication Framework (ECF) Eclipse plug-in

%description runtime
ECF is a set of frameworks for building communications into applications and
services. It provides a lightweight, modular, transport-independent, fully
compliant implementation of the OSGi Remote Services standard.

%package   sdk
Summary:   Eclipse ECF SDK

%description sdk
Documentation and developer resources for the Eclipse Communication Framework
(ECF) plug-in.
%endif

%prep
%setup -q -n org.eclipse.ecf-%{git_tag}

find . -type f -name "*.jar" -exec rm {} \;
find . -type f -name "*.class" -exec rm {} \;

%patch0

# Correction for content of runtime package
%pom_xpath_remove "feature/plugin[@id='org.eclipse.ecf.presence']" releng/features/org.eclipse.ecf.core/feature.xml

# Fix ASM restriction
sed -i -e '/org.objectweb.asm/s/7/8/' protocols/bundles/ch.ethz.iks.r_osgi.remote/META-INF/MANIFEST.MF

# Don't build examples or tests
sed -i -e '/<module>examples/d' -e '/<module>tests/d' pom.xml
%pom_disable_module releng/features/org.eclipse.ecf.tests.feature
%pom_disable_module releng/features/org.eclipse.ecf.eventadmin.examples.feature
%pom_disable_module releng/features/org.eclipse.ecf.remoteservice.examples.feature
%pom_disable_module releng/features/org.eclipse.ecf.remoteservice.sdk.examples.feature
%pom_xpath_remove "feature/requires/import[@feature='org.eclipse.ecf.remoteservice.sdk.examples.feature']" releng/features/org.eclipse.ecf.core/feature.xml
%pom_xpath_remove "feature/plugin[@id='org.eclipse.ecf.example.clients']" releng/features/org.eclipse.ecf.core/feature.xml
%pom_xpath_remove "feature/plugin[@id='org.eclipse.ecf.example.collab']" releng/features/org.eclipse.ecf.core/feature.xml

# Don't use target platform or jgit packaging bits
%pom_xpath_remove "pom:target"
%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:dependencies"
%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:configuration/pom:sourceReferences"
%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:configuration/pom:timestampProvider"
%pom_disable_module releng/org.eclipse.ecf.releng.repository

# Remove unnecesary dep on json
%pom_xpath_remove "feature/requires/import[@plugin='org.json']" releng/features/org.eclipse.ecf.remoteservice.rest.feature/feature.xml

# Using latest zookeeper requires non-trivial port
%pom_disable_module releng/features/org.eclipse.ecf.discovery.zookeeper.feature
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.zookeeper
%pom_xpath_remove "feature/includes[@id='org.eclipse.ecf.discovery.zookeeper.feature']" releng/features/org.eclipse.ecf.remoteservice.sdk.feature/feature.xml

# Using latest rome requires non-trivial port
%pom_disable_module releng/features/org.eclipse.ecf.remoteservice.rest.synd.feature
%pom_disable_module framework/bundles/org.eclipse.ecf.remoteservice.rest.synd

# Disable SLP provider, rhbz#1416706
%pom_disable_module releng/features/org.eclipse.ecf.discovery.slp.feature
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.jslp
%pom_disable_module protocols/bundles/ch.ethz.iks.slp
%pom_xpath_remove "feature/includes[@id='org.eclipse.ecf.discovery.slp.feature']" releng/features/org.eclipse.ecf.remoteservice.sdk.feature/feature.xml

# Misc other providers
%if %{without providers}
%pom_disable_module releng/features/org.eclipse.ecf.discovery.dnssd.feature
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.dnssd
%pom_disable_module protocols/bundles/org.jivesoftware.smack
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.xmpp.datashare
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.xmpp
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.xmpp.remoteservice
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.xmpp.ui
%pom_disable_module releng/features/org.eclipse.ecf.xmpp.feature
%pom_xpath_remove "feature/plugin[@id='org.eclipse.ecf.provider.xmpp.ui']" releng/features/org.eclipse.ecf.core/feature.xml
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.irc
%pom_disable_module providers/bundles/org.eclipse.ecf.provider.irc.ui
%pom_xpath_remove "feature/plugin[@id='org.eclipse.ecf.provider.irc']" releng/features/org.eclipse.ecf.core/feature.xml
%pom_xpath_remove "feature/plugin[@id='org.eclipse.ecf.provider.irc.ui']" releng/features/org.eclipse.ecf.core/feature.xml
%endif

# Use system libs
ln -s $(build-classpath osgi-annotation) osgi/bundles/org.eclipse.osgi.services.remoteserviceadmin/osgi/osgi.annotation.jar
%if %{with providers}
ln -s $(build-classpath xpp3-minimal) protocols/bundles/org.jivesoftware.smack/jars/xpp.jar
echo "Eclipse-BundleShape: dir" >> protocols/bundles/org.jivesoftware.smack/META-INF/MANIFEST.MF
ln -s $(build-classpath irclib) providers/bundles/org.eclipse.ecf.provider.irc/lib/irclib.jar
echo "Eclipse-BundleShape: dir" >> providers/bundles/org.eclipse.ecf.provider.irc/META-INF/MANIFEST.MF
%endif

%if %{with bootstrap}
# Only build core modules when bootstrapping
%pom_xpath_replace "pom:modules" "<modules>
<module>releng/features/org.eclipse.ecf.core.feature</module>
<module>releng/features/org.eclipse.ecf.core.ssl.feature</module>
<module>releng/features/org.eclipse.ecf.filetransfer.feature</module>
<module>releng/features/org.eclipse.ecf.filetransfer.httpclient4.feature</module>
<module>releng/features/org.eclipse.ecf.filetransfer.httpclient4.ssl.feature</module>
<module>releng/features/org.eclipse.ecf.filetransfer.ssl.feature</module>
<module>framework/bundles/org.eclipse.ecf</module>
<module>framework/bundles/org.eclipse.ecf.identity</module>
<module>framework/bundles/org.eclipse.ecf.filetransfer</module>
<module>framework/bundles/org.eclipse.ecf.ssl</module>
<module>providers/bundles/org.eclipse.ecf.provider.filetransfer</module>
<module>providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient4</module>
<module>providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient4.ssl</module>
<module>providers/bundles/org.eclipse.ecf.provider.filetransfer.ssl</module>
</modules>"
%endif

# TODO: Figure out why this is necessary....
sed -i -e '/Require-Bundle:/a\ org.eclipse.osgi.services,' framework/bundles/org.eclipse.ecf.console/META-INF/MANIFEST.MF

# Don't install poms
%mvn_package "::{pom,target}::" __noinstall

%if %{with bootstrap}
%mvn_package "::jar:{sources,sources-feature}:" __noinstall
%else
%mvn_package "::jar:{sources,sources-feature}:" sdk
%endif
%mvn_package ":org.eclipse.ecf.{core,sdk}" sdk
%mvn_package ":org.eclipse.ecf.docshare*" sdk
for p in $(grep '<plugin' releng/features/org.eclipse.ecf.core/feature.xml | sed -e 's/.*id="\(.*\)" d.*/\1/') ; do
%mvn_package ":$p" sdk
done
%mvn_package ":*.ui" sdk
%mvn_package ":*.ui.*" sdk
%mvn_package ":org.eclipse.ecf.remoteservice.sdk.*" sdk
%mvn_package ":org.eclipse.ecf.core.{,ssl.}feature"
%mvn_package ":org.eclipse.ecf.filetransfer.{,httpclient4.}{,ssl.}feature"
%mvn_package ":org.eclipse.ecf{,.identity,.ssl,.filetransfer}"
%mvn_package ":org.eclipse.ecf.provider.filetransfer*"
%mvn_package ":" runtime

%build
# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M)
%mvn_build -j -- -DforceContextQualifier=$QUALIFIER

%install
%mvn_install

# Move to libdir due to being part of core platform
install -d -m 755 %{buildroot}%{_eclipsedir}
mv %{buildroot}%{_datadir}/eclipse/droplets/ecf/{plugins,features} %{buildroot}%{_eclipsedir}
rm -r %{buildroot}%{_datadir}/eclipse/droplets/ecf

# Fixup metadata
sed -i -e 's|%{_datadir}/eclipse/droplets/ecf|%{_eclipsedir}|' %{buildroot}%{_datadir}/maven-metadata/eclipse-ecf.xml
sed -i -e 's|%{_datadir}/eclipse/droplets/ecf/features/|%{_eclipsedir}/features/|' \
       -e 's|%{_datadir}/eclipse/droplets/ecf/plugins/|%{_eclipsedir}/plugins/|' .mfiles
sed -i -e '/droplets/d' .mfiles

# Remove any symlinks that might be created during bootstrapping due to missing platform bundles
for del in $( (cd %{buildroot}%{_eclipsedir}/plugins && ls | grep -v -e '^org\.eclipse\.ecf' ) ) ; do
rm %{buildroot}%{_eclipsedir}/plugins/$del
sed -i -e "/$del/d" .mfiles
done

# Symlink jars into javadir
install -d -m 755 %{buildroot}%{_javadir}/eclipse
location=%{_eclipsedir}/plugins
while [ "$location" != "/" ] ; do
    location=$(dirname $location)
    updir="$updir../"
done
pushd %{buildroot}%{_javadir}/eclipse
for J in ecf{,.identity,.ssl,.filetransfer,.provider.filetransfer{,.ssl,.httpclient4{,.ssl}}}  ; do
    DIR=$updir%{_eclipsedir}/plugins
    [ -e "`ls $DIR/org.eclipse.${J}_*.jar`" ] && ln -s $DIR/org.eclipse.${J}_*.jar ${J}.jar
done
popd

# Use system libs
%if %{without bootstrap}
%if %{with providers}
pushd %{buildroot}%{_datadir}/eclipse/droplets/ecf-sdk/plugins/org.eclipse.ecf.provider.irc_*
rm lib/irclib.jar && ln -s $(build-classpath irclib) lib/irclib.jar
popd
pushd %{buildroot}%{_datadir}/eclipse/droplets/ecf-runtime/plugins/org.jivesoftware.smack_*
rm jars/xpp.jar && ln -s $(build-classpath xpp3-minimal) jars/xpp.jar
popd
%endif
%endif

%files core -f .mfiles
%{_javadir}/eclipse/*

%if %{without bootstrap}
%files runtime -f .mfiles-runtime

%files sdk -f .mfiles-sdk
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12524 |21mr|eclipse-eclemma-3.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag %{version}

Name:      eclipse-eclemma
Version:   3.1.2
Release:   2
Summary:   Java code coverage tool plugin for Eclipse
License:   EPL-1.0 and ASL 2.0
URL:       http://www.eclemma.org
Source0:   https://github.com/eclipse/eclemma/archive/v%{gittag}/%{name}-%{version}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:    eclipse-pde
BuildRequires:    eclipse-swtbot
BuildRequires:    eclipse-license
BuildRequires:    jacoco >= 0.7.8
BuildRequires:    maven-local
BuildRequires:    tycho
BuildRequires:    maven-plugin-build-helper
BuildRequires:    maven-dependency-plugin

%description
EclEmma is a Java code coverage tool for Eclipse based on the EMMA Java
code coverage tool.  Features include launching from within the IDE,
coverage analysis summaries, and highlighting in Java source code
editors.

%prep
%setup -q -n eclemma-%{gittag}

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

# Unnecessary plugins for RPM build
%pom_remove_plugin :jacoco-maven-plugin org.eclipse.eclemma.build/pom.xml

# Don't use jgit packaging extensions
%pom_xpath_remove 'pom:configuration/pom:sourceReferences' org.eclipse.eclemma.build
%pom_remove_dep 'org.eclipse.tycho.extras:tycho-sourceref-jgit' org.eclipse.eclemma.build

# Relax dep on jacoco
sed -i -e 's|0.8.3|0.7.8|g' org.eclipse.eclemma.{core,ui}/META-INF/MANIFEST.MF

%build
%mvn_build -j -f -- -Dimplicit-target

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc org.eclipse.eclemma.feature/about.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12525 |21mr|eclipse-egit-5.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag 5.6.0.201912101111-r

Name:             eclipse-egit
Version:          5.6.0
Release:          2
Summary:          Eclipse Git Integration
Group:            Development/Java
License:          EPL-2.0
URL:              http://www.eclipse.org/egit
Source0:          https://git.eclipse.org/c/egit/egit.git/snapshot/egit-%{gittag}.tar.xz

BuildRequires:    tycho
BuildRequires:    maven-antrun-plugin
BuildRequires:    eclipse-platform
BuildRequires:    eclipse-jdt
BuildRequires:    eclipse-jgit >= %{version}
BuildRequires:    jgit >= %{version}
BuildRequires:    eclipse-license2
Requires:         eclipse-platform
Requires:         eclipse-jgit >= %{version}
Requires:         jgit >= %{version}

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

# Obsoletes added in F31
Obsoletes: %{name}-mylyn <= 5.6.0-2

%description
The eclipse-egit package contains Eclipse plugins for
interacting with Git repositories.

%prep
%setup -q -n egit-%{gittag}

# Disable unnecessary plugins for RPM builds
%pom_remove_plugin :maven-enforcer-plugin

%pom_xpath_remove "pom:repositories"
%pom_xpath_remove "pom:dependencies"
%pom_xpath_remove "pom:profiles"
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin/pom:configuration/pom:target"
%pom_xpath_remove "*[local-name() ='plugin' and (child::*[text()='tycho-packaging-plugin'])]"
%pom_xpath_remove "pom:dependencies" org.eclipse.egit.doc/pom.xml
%pom_disable_module org.eclipse.egit.repository
%pom_disable_module org.eclipse.egit.source-feature
%pom_disable_module org.eclipse.egit.target

# Don't build mylyn feature
%pom_disable_module org.eclipse.egit.mylyn.ui
%pom_disable_module org.eclipse.egit.mylyn-feature

# Relax jsch dep
sed -i -e 's/0\.1\.55/0.1.54/' org.eclipse.egit-feature/feature.xml

# Ensure correct apache sshd bundle gets symlinked
sed -i -e '/jsch/a<import plugin="org.apache.sshd.osgi"/>' org.eclipse.egit-feature/feature.xml

# Disable tests
%pom_disable_module org.eclipse.egit.core.test
%pom_disable_module org.eclipse.egit.ui.test
%pom_disable_module org.eclipse.egit.gitflow.test
%pom_disable_module org.eclipse.egit.mylyn.ui.test

%mvn_package "::pom::" __noinstall
%mvn_package :* egit

%build
%mvn_build -j -f

%install
%mvn_install

%files -f .mfiles-egit
%license LICENSE
%doc README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12526 |21mr|eclipse-emf-2.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _eclipsedir %{_prefix}/lib/eclipse

%global emf_tag 666f438f84c97358ce33fd4c1f615212cdd419f9
%global xsd_tag a5f53126aa28435e3f44bde6700372c8559127de

# Set this flag to avoid building everything except for the core bundles
# Allows building into a brand new buildroot before Eclipse is even built
%bcond_with bootstrap

Name:      eclipse-emf
Version:   2.16.0
Release:   2
Summary:   EMF and XSD Eclipse plug-ins

License:   EPL-2.0
URL:       http://www.eclipse.org/modeling/emf/
Source0:   http://git.eclipse.org/c/emf/org.eclipse.emf.git/snapshot/org.eclipse.emf-%{emf_tag}.tar.xz
Source1:   http://git.eclipse.org/c/xsd/org.eclipse.xsd.git/snapshot/org.eclipse.xsd-%{xsd_tag}.tar.xz

# Avoid hard build-time dep on nebula (not in Fedora)
Patch0:    remove-nebula-dep.patch
# Remove test that requires internet connection
Patch1:    remove-network-tests.patch
# Remove test that seems to fail in some timezones, reported upstream: https://bugs.eclipse.org/bugs/show_bug.cgi?id=534542
Patch2:    remove-timezone-test.patch
# Remove unnecessary imports of JRE packages that are supplied by the system bundle
Patch3:    remove-unnecessary-imports.patch

BuildRequires: tycho
BuildRequires: tycho-extras
%if %{without bootstrap}
BuildRequires: eclipse-pde
%endif

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Eclipse Modeling Framework (EMF) and XML Schema Definition (XSD) plug-ins.

%package   core
Epoch:     1
Summary:   Eclipse EMF Core Bundles

%description core
Core EMF bundles required by the Eclipse platform.

%if %{without bootstrap}
%package   runtime
Summary:   Eclipse Modeling Framework (EMF) Eclipse plug-in

%description runtime
The Eclipse Modeling Framework (EMF) allows developers to build tools and
other applications based on a structured data model. From a model
specification described in XMI, EMF provides tools and run-time support to
produce a set of Java classes for the model, along with a set of adapter
classes that enable viewing and command-based editing of the model, and a
basic editor.

%package   xsd
Summary:   XML Schema Definition (XSD) Eclipse plug-in
# Obsoletes added in F28
Obsoletes: eclipse-xsd < %{version}-%{release}
Provides:  eclipse-xsd = %{version}-%{release}

%description xsd
The XML Schema Definition (XSD) plug-in is a library that provides an API for
manipulating the components of an XML Schema as described by the W3C XML
Schema specifications, as well as an API for manipulating the DOM-accessible
representation of XML Schema as a series of XML documents.

%package   sdk
Summary:   Eclipse EMF and XSD SDK
# Obsoletes added in F28
Obsoletes: %{name}-tests < %{version}-%{release}
Obsoletes: %{name}-examples < %{version}-%{release}
Obsoletes: eclipse-xsd-examples < %{version}-%{release}
Obsoletes: eclipse-xsd-sdk < %{version}-%{release}
Provides:  eclipse-xsd-sdk = %{version}-%{release}

%description sdk
Documentation and developer resources for the Eclipse Modeling Framework
(EMF) plug-in and XML Schema Definition (XSD) plug-in.
%endif

%prep
%setup -c -T -q -a 0 -a 1
mv org.eclipse.emf-%{emf_tag}/ org.eclipse.emf/
mv org.eclipse.xsd-%{xsd_tag}/ org.eclipse.xsd/

%patch0
%patch1
%patch2
%patch3

pushd org.eclipse.emf

# TODO: ODA, GWT, Xtext and RAP components are not packaged, so don't build corresponding bundles
sed -i -e '/org.eclipse.emf.gwt/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml
sed -i -e '/org.eclipse.emf.oda/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml
sed -i -e '/org.eclipse.emf.rap/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml
sed -i -e '/codegen.ecore.xtext/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml
sed -i -e '/ecore.xcore/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml
sed -i -e '/test.edit.ui.rap/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml
%pom_xpath_remove "plugin[@id='org.eclipse.emf.test.edit.ui.rap']" tests/org.eclipse.emf.tests-feature/feature.xml

# Disable example bundles, we don't want to ship them
%pom_disable_module "../../../examples/org.eclipse.emf.examples-feature" releng/org.eclipse.emf.parent/features
%pom_disable_module "../../../../org.eclipse.xsd/features/org.eclipse.xsd.example-feature" releng/org.eclipse.emf.parent/features
sed -i -e '/<module>.*examples/d' releng/org.eclipse.emf.parent/plugins/pom.xml
%pom_xpath_remove "plugin[@id='org.eclipse.emf.test.examples']" tests/org.eclipse.emf.tests-feature/feature.xml

# Disable modules unneeded for tycho build

%pom_disable_module "tp" releng/org.eclipse.emf.parent
%pom_disable_module "../org.eclipse.emf.site" releng/org.eclipse.emf.parent
%pom_disable_module '../../../features/org.eclipse.emf.all-feature' releng/org.eclipse.emf.parent/features

# Disable jgit/target platform stuff that we can't use in RPM builds
%pom_remove_plugin :target-platform-configuration releng/org.eclipse.emf.parent
%pom_remove_dep :tycho-sourceref-jgit releng/org.eclipse.emf.parent
%pom_remove_dep :tycho-buildtimestamp-jgit releng/org.eclipse.emf.parent
%pom_xpath_remove 'pom:configuration/pom:timestampProvider' releng/org.eclipse.emf.parent
%pom_xpath_remove 'pom:configuration/pom:jgit.ignore' releng/org.eclipse.emf.parent
%pom_xpath_remove 'pom:configuration/pom:jgit.dirtyWorkingTree' releng/org.eclipse.emf.parent
%pom_xpath_remove 'pom:configuration/pom:sourceReferences' releng/org.eclipse.emf.parent

%if %{with bootstrap}
# Only build core modules when bootstrapping
%pom_xpath_replace "pom:modules" "<modules>
<module>../../../features/org.eclipse.emf.base-feature</module>
<module>../../../features/org.eclipse.emf.license-feature</module>
<module>../../../features/org.eclipse.emf.common-feature</module>
<module>../../../features/org.eclipse.emf.ecore-feature</module>
</modules>" releng/org.eclipse.emf.parent/features
%pom_xpath_replace "pom:modules" "<modules>
<module>../../../plugins/org.eclipse.emf.common</module>
<module>../../../plugins/org.eclipse.emf.ecore.change</module>
<module>../../../plugins/org.eclipse.emf.ecore.xmi</module>
<module>../../../plugins/org.eclipse.emf.ecore</module>
</modules>" releng/org.eclipse.emf.parent/plugins
%endif

popd

# Don't install poms or license features
%mvn_package "::pom::" __noinstall
%mvn_package ":org.eclipse.{emf,xsd}.license" __noinstall

# No need to ship tests as they are run at buildtime
%mvn_package ":org.eclipse.emf.tests" __noinstall
%mvn_package ":org.eclipse.emf.test.*" __noinstall

%if %{with bootstrap}
%mvn_package ":::{sources,sources-feature}:" __noinstall
%else
%mvn_package ":::{sources,sources-feature}:" sdk
%endif
%mvn_package ":org.eclipse.emf.{sdk,doc,cheatsheets,example.installer}" sdk
%mvn_package ":org.eclipse.xsd.{sdk,doc,cheatsheets,example.installer}" sdk
%mvn_package "org.eclipse.emf.features:org.eclipse.emf.{base,common,ecore}"
%mvn_package "org.eclipse.emf:org.eclipse.emf.{common,ecore,ecore.change,ecore.xmi}"
%mvn_package ":org.eclipse.xsd*" xsd
%mvn_package ":org.eclipse.emf.mapping.xsd**" xsd
%mvn_package ":" runtime

%build
# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M)
%mvn_build -j -- -f org.eclipse.emf/pom.xml -DforceContextQualifier=$QUALIFIER -Dmaven.test.failure.ignore=true

%install
%mvn_install

# Move to libdir due to being part of core platform
install -d -m 755 %{buildroot}%{_eclipsedir}
mv %{buildroot}%{_datadir}/eclipse/droplets/emf/{plugins,features} %{buildroot}%{_eclipsedir}
rm -r %{buildroot}%{_datadir}/eclipse/droplets/emf

# Fixup metadata
sed -i -e 's|%{_datadir}/eclipse/droplets/emf|%{_eclipsedir}|' %{buildroot}%{_datadir}/maven-metadata/eclipse-emf.xml
sed -i -e 's|%{_datadir}/eclipse/droplets/emf/features/|%{_eclipsedir}/features/|' \
       -e 's|%{_datadir}/eclipse/droplets/emf/plugins/|%{_eclipsedir}/plugins/|' .mfiles
sed -i -e '/droplets/d' .mfiles

# Remove any symlinks that might be created during bootstrapping due to missing platform bundles
for del in $( (cd %{buildroot}%{_eclipsedir}/plugins && ls | grep -v -e '^org\.eclipse\.emf' ) ) ; do
rm %{buildroot}%{_eclipsedir}/plugins/$del
sed -i -e "/$del/d" .mfiles
done

%files core -f .mfiles
%license org.eclipse.emf/features/org.eclipse.emf.license-feature/*.html

%if %{without bootstrap}
%files runtime -f .mfiles-runtime

%files xsd -f .mfiles-xsd

%files sdk -f .mfiles-sdk
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12527 |21mr|eclipse-epic-0.7.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag stable_0_7_5

Name:      eclipse-epic
Version:   0.7.5
Release:   4
Summary:   Perl Eclipse plug-in
License:   CPL
URL:       http://www.epic-ide.org/

Source0:   https://github.com/jploski/epic-ide/archive/%{gittag}.tar.gz
Source1:   eclipse-epic.metainfo.xml

# enable module starter and taint checking by default
Patch0:    eclipse-epic-enable-module-starter.patch
# fix build against photon, see https://github.com/jploski/epic-ide/pull/48
Patch1:    photon-build.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:    perl-generators
BuildRequires:    tycho
BuildRequires:    antlr
BuildRequires:    jdom
BuildRequires:    gnu-regexp
BuildRequires:    brazil
BuildRequires:    zip
Requires:         eclipse-platform
Requires:         antlr
Requires:         jdom
Requires:         gnu-regexp
Requires:         brazil
Requires:         perl-interpreter
Requires:         perl(PadWalker)
Requires:         perl(Module::Starter)
Requires:         perl(Test::Simple)
Requires:         perl(Perl::Tidy)

%description
EPIC is an open source Perl IDE based on the Eclipse platform. Features 
supported are syntax highlighting, on-the-fly syntax check, content assist, 
perldoc support, source formatter, templating support, a regular expression 
view and a Perl debugger.

%prep
%setup -q -n epic-ide-%{gittag}

%patch0
%patch1 -p1

# remove all bundled libs
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

# build against fedora packaged libs
build-jar-repository -s -p org.epic.lib/lib jdom antlr gnu-regexp brazil
grep -lR jdom-1.1 *         | xargs sed --in-place "s/jdom-1.1/jdom/"
grep -lR antlr-2.7.5 *      | xargs sed --in-place "s/antlr-2.7.5/antlr/"
grep -lR gnu-regexp-1.1.4 * | xargs sed --in-place "s/gnu-regexp-1.1.4/gnu-regexp/"
grep -lR brazil_mini *      | xargs sed --in-place "s/brazil_mini/brazil/"

# remove plugins we don't build
rm -rf org.epic.perleditor{.ecf,-test}

# generate poms
xmvn -o org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms \
  -DgroupId=org.epic -Dversion=%{version}

# put the source plugin together
for p in org.epic.perleditor \
         org.epic.regexp \
         org.epic.debug; do
  pver=$(grep -e '^Bundle-Version' $p/META-INF/MANIFEST.MF | cut -d' ' -f2)
  mkdir org.epic.source/src/${p}_${pver}
  pushd $p/src
  zip -r -q ../../org.epic.source/src/${p}_${pver}/src.zip *
  popd
done

# dir-shaped bundles
for p in org.epic.doc org.epic.lib org.epic.source; do
  echo "Eclipse-BundleShape: dir" >> $p/META-INF/MANIFEST.MF
done

# don't install poms
%mvn_package "::pom::" __noinstall

%build
# parse grammar for grammar parser
pushd org.epic.perleditor/src/org/epic/core/parser/
for g in `find . -name "*.g"`; do
  antlr $g
done
popd

%mvn_build -j

%install
%mvn_install

# appdata
install -m644 -D %{SOURCE1} %{buildroot}%{_datadir}/appdata/eclipse-epic.metainfo.xml

# need to recreate the symlinks to libraries that were setup in "prep"
# because for some reason the ant copy task doesn't preserve them
pushd %{buildroot}%{_datadir}/eclipse/droplets/epic/plugins/org.epic.lib_*/lib
rm *.jar
build-jar-repository -s -p . jdom antlr gnu-regexp brazil
popd

%files -f .mfiles
%license org.epic.feature.main/license.html
%{_datadir}/appdata/eclipse-epic.metainfo.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12528 |21mr|eclipse-epp-logging-2.0.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_tag 96b6065ed50d4c10e80995b3cae97b143485df17

Name:           eclipse-epp-logging
Version:        2.0.7
Release:        8
Summary:        Eclipse Error Reporting tool
License:        EPL-1.0
URL:            http://www.eclipse.org/epp/

Source0:        http://git.eclipse.org/c/epp/org.eclipse.epp.logging.git/snapshot/org.eclipse.epp.logging-%{git_tag}.tar.xz

Patch0:		feature-cleanup.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: tycho
BuildRequires: tycho-extras
BuildRequires: eclipse-pde
BuildRequires: eclipse-license
BuildRequires: eclipse-emf-runtime
BuildRequires: eclipse-mylyn
BuildRequires: apache-commons-lang3
BuildRequires: lucene
BuildRequires: google-gson
BuildRequires: guava20
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-client-cache
BuildRequires: exec-maven-plugin

Requires:       eclipse-platform >= 1:4.6.0

%description
EPP Logging provides a set of logging plugins for the Eclipse IDE.

%prep
%setup -q -n org.eclipse.epp.logging-%{git_tag}
%patch0 -p1

sed -i -e 's/core=split;//' bundles/org.eclipse.epp.logging.aeri.ide/META-INF/MANIFEST.MF

# Delete anything prebuilt or bundled
find -name *.jar -delete
find -name *.class -delete

# Use newer jdt annotations
sed -i -e '/jdt\.annotation;bundle-version/s/2\.0\.0/3.0.0/' $(find -name MANIFEST.MF)

pushd features/
%pom_disable_module org.eclipse.epp.logging.3rd.feature
%pom_disable_module org.eclipse.epp.logging.aeri.tests.feature
%pom_disable_module org.eclipse.epp.logging.sdk.feature
popd

%pom_disable_module releng
%pom_disable_module tests
%pom_disable_module examples

# Remove plugins not needed for RPM builds
%pom_remove_plugin ":maven-enforcer-plugin" . features bundles
%pom_remove_plugin ":maven-checkstyle-plugin" . bundles tests
%pom_remove_plugin ":maven-license-plugin" . bundles
%pom_remove_plugin org.eclipse.tycho:target-platform-configuration
%pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin
%pom_remove_plugin org.codehaus.mojo:tidy-maven-plugin
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin bundles/
%pom_remove_plugin org.jacoco:jacoco-maven-plugin tests/

# Need to remove some erroneous @Override annotations generated by EMF, see
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=542525
%pom_add_plugin org.codehaus.mojo:exec-maven-plugin:1.6.0 bundles/org.eclipse.epp.logging.aeri.core \
"<executions>
  <execution><phase>process-sources</phase><goals><goal>exec</goal></goals></execution>
</executions>
<configuration>
  <executable>sed</executable>
  <arguments>
    <argument>-i</argument>
    <argument>s/@Override//</argument>
    <argument>\${project.build.directory}/generated-sources/emf/org/eclipse/epp/logging/aeri/core/impl/StringToStringMapImpl.java</argument>
    <argument>\${project.build.directory}/generated-sources/emf/org/eclipse/epp/logging/aeri/core/impl/StringToLinkMapImpl.java</argument>
    <argument>\${project.build.directory}/generated-sources/emf/org/eclipse/epp/logging/aeri/core/impl/ModelFactoryImpl.java</argument>
  </arguments>
</configuration>"

%mvn_package "::pom::" __noinstall

%build
# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M)
%mvn_build -j -- -DforceContextQualifier=$QUALIFIER

%install
%mvn_install

%files -f .mfiles



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12529 |21mr|eclipse-findbugs-3.0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkg_date     20150306
%global pkg_git_rev  5afe4d1

Name:           eclipse-findbugs
Version:        3.0.1
Release:        19
Summary:        Eclipse plugin for FindBugs

License:        LGPLv2+
URL:            http://findbugs.sourceforge.net/
Source0:        http://downloads.sourceforge.net/findbugs/edu.umd.cs.findbugs.plugin.eclipse_%{version}.%{pkg_date}-%{pkg_git_rev}-source.zip
Source1:        fragment.info

# This patch is Fedora-specific, so it has not been submitted upstream.  The
# patch makes the build infrastructure use installed JARs for the build, rather
# than downloading JARs.
Patch0:         eclipsePlugin-build.patch

BuildRequires:  ant, ant-findbugs, eclipse-pde, findbugs = %{version}
BuildRequires:  java-devel >= 1:1.6.0, javapackages-tools
BuildRequires:  dom4j
Requires:       ant, ant-findbugs, eclipse-jdt, findbugs = %{version}
Requires:       java >= 1:1.6.0, javapackages-tools
Requires:       dom4j

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

%global droplets_dir %{_datadir}/eclipse/droplets
%global droplet_dir %{droplets_dir}/findbugs
%global plugins_dir %{droplet_dir}/plugins
%global plugin_dir  %{plugins_dir}/edu.umd.cs.findbugs.plugin.eclipse_%{version}.%{pkg_date}-%{pkg_git_rev}

%description
An Eclipse plugin for the FindBugs Java bug detector.

%prep
%setup -q -c edu.umd.cs.findbugs.plugin.eclipse_%{version}.%{pkg_date}-%{pkg_git_rev}
%patch0 -p1

%build
# Eclipse is always in /usr/lib on all arches
ECLIPSE_BASE=/usr/lib/eclipse

# Set up the eclipse path
sed -i -e "s|@SWT_JAR@|${ECLIPSE_BASE}/swt.jar|" build.xml

ant -DeclipsePlugin.dir=${ECLIPSE_BASE}/plugins \
    -DeclipseJdtPlugin.dir=%{droplets_dir}/eclipse-jdt/plugins \
    -DeclipseSdkPlugin.dir=%{droplets_dir}/eclipse-pde/plugins \
    -Djavadir=%{_javadir} \
    -Dplugin.date=%{pkg_date} \
    -Drelease.base=%{version} \
    -Dfindbugs.git.revision=%{pkg_git_rev} \
    dist

%install
mkdir -p $RPM_BUILD_ROOT%{plugins_dir}
unzip -q -d $RPM_BUILD_ROOT%{plugins_dir} \
  zips/edu.umd.cs.findbugs.plugin.eclipse_%{version}.%{pkg_date}-%{pkg_git_rev}.zip

# Symlink to the external jars we need
mkdir $RPM_BUILD_ROOT%{plugin_dir}/lib
for i in findbugs jsr-305 findbugs-annotations findbugs-bcel dom4j jaxen \
  jFormatString apache-commons-lang objectweb-asm/asm-all; do
    ln -s ../../../../../../java/$i.jar $RPM_BUILD_ROOT%{plugin_dir}/lib
done

# Remove unnecessary files (used at build-time only)
rm -f $RPM_BUILD_ROOT%{plugin_dir}/.options
rm -fr $RPM_BUILD_ROOT%{plugin_dir}/doc

cp %{SOURCE1} $RPM_BUILD_ROOT%{droplet_dir}/

%files
%doc RELEASENOTES
%{droplet_dir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12530 |21mr|eclipse-gef-3.11.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_version R4_0_0

Name:      eclipse-gef
Version:   3.11.0

Release:   9
Summary:   Graphical Editing Framework (GEF) Eclipse plug-in
License:   EPL-1.0
URL:       http://www.eclipse.org/gef/

Source0:   http://git.eclipse.org/c/gef/org.eclipse.gef.git/snapshot/org.eclipse.gef-%{git_version}.tar.xz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:    tycho
BuildRequires:    maven-antrun-plugin
BuildRequires:    maven-dependency-plugin
BuildRequires:    eclipse-pde >= 1:4.4.0
BuildRequires:    eclipse-license
BuildRequires:    ant-contrib
Requires:         eclipse-platform >= 1:4.4.0

# Obsoletes added in F30
Obsoletes:  %{name}-examples < %{version}-%{release}

%description
The Graphical Editing Framework (GEF) allows developers to create a rich
graphical editor from an existing application model. GEF is completely
application neutral and provides the groundwork to build almost any
application, including but not limited to: activity diagrams, GUI builders,
class diagram editors, state machines, and even WYSIWYG text editors.

%package   sdk
Summary:   Eclipse GEF SDK
Requires:  eclipse-pde >= 1:4.4.0
Requires:  %{name} = %{version}-%{release}

%description sdk
Documentation and source for the Eclipse Graphical Editing Framework (GEF).

%package   tests
Summary:   Eclipse GEF Tests

%description tests
Tests for the Eclipse Graphical Editing Framework (GEF).

%prep
%setup -q -n org.eclipse.gef-%{git_version}

find -name *.jar -exec rm -rf {} \;
find -name *.class -exec rm -rf {} \;

%pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin org.eclipse.gef.releng/pom.xml

# Don't ship examples
for m in .flow .logic .shapes .text .ui.capabilities .source-feature -feature ; do
	%pom_disable_module "../org.eclipse.gef.examples$m" org.eclipse.gef.releng
done

# Not needed for RPM builds
%pom_disable_module "../org.eclipse.gef.all-feature" org.eclipse.gef.releng
%pom_disable_module "../org.eclipse.gef.repository" org.eclipse.gef.releng

%mvn_package "org.eclipse.gef:" __noinstall
%mvn_package ":org.eclipse.*.tests" tests
%mvn_package "::jar:sources:" sdk
%mvn_package ":*.{sdk,source,capabilities,doc.isv,examples.ui.pde}" sdk
%mvn_package ":" core

%build
%mvn_build -j -f -- -f org.eclipse.gef.releng/pom.xml -P !MARS.target

%install
%mvn_install

%files -f .mfiles-core

%files sdk -f .mfiles-sdk

%files tests -f .mfiles-tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12531 |21mr|eclipse-jgit-5.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag 5.6.0.201912101111-r

Name:           eclipse-jgit
Version:        5.6.0
Release:        1
Summary:        Eclipse JGit

# The jgit Eclipse plug-ins are "EDL" licensed, which is equivilent to the new BSD license
License:        BSD
URL:            https://www.eclipse.org/jgit/
Source0:        https://git.eclipse.org/c/jgit/jgit.git/snapshot/jgit-%{gittag}.tar.xz

# Set the correct classpath for the command line tools
Patch0:         0001-Ensure-the-correct-classpath-is-set-for-the-jgit-com.patch
# Switch to feature requirements for third-party bundles, also makes the following changes:
#  javaewah -> com.googlecode.javaewah.JavaEWAH
#  org.slf4j.api -> slf4j.api
#  org.slf4j.impl.log4j12 -> slf4j.simple
Patch1:         0002-Don-t-embed-versions-of-third-party-libs-use-feature.patch
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  tycho
BuildRequires:  jgit = %{version}

Requires:       eclipse-platform
Requires:       jgit = %{version}

%description
A pure Java implementation of the Git version control system.

%prep
%setup -n jgit-%{gittag} -q
%patch0 -p1
%patch1 -p1

# Disable multithreaded build
rm .mvn/maven.config

# Don't try to get deps from local *maven* repo, use tycho resolved ones
for p in $(find org.eclipse.jgit.packaging -name pom.xml) ; do
  grep -q dependencies $p && %pom_xpath_remove "pom:dependencies" $p
done

# Don't need target platform or repository modules with xmvn
%pom_disable_module org.eclipse.jgit.target org.eclipse.jgit.packaging
%pom_disable_module org.eclipse.jgit.repository org.eclipse.jgit.packaging
%pom_xpath_remove "pom:build/pom:pluginManagement/pom:plugins/pom:plugin/pom:configuration/pom:target" org.eclipse.jgit.packaging/pom.xml

# Don't build source features
%pom_disable_module org.eclipse.jgit.source.feature org.eclipse.jgit.packaging

# Remove unnecessary plugins for RPM builds
%pom_remove_plugin :maven-enforcer-plugin org.eclipse.jgit.packaging

pushd org.eclipse.jgit.packaging
%mvn_package "::pom::" __noinstall
popd

%build
pushd org.eclipse.jgit.packaging
%mvn_build -j
popd

%install
pushd org.eclipse.jgit.packaging
%mvn_install
popd

%files -f org.eclipse.jgit.packaging/.mfiles
%license LICENSE
%doc README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12532 |21mr|eclipse-launchbar-2.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_tag fe09ae9bae9780adc8b43a8eb020c4f3fd4aab2e

# Set this to avoid building remote launching bundles to eliminate
# a circular dep on CDT->launchbar->remote->CDT
%bcond_without remote

Epoch:          1
Name:           eclipse-launchbar
Version:        2.2.3
Release:        1
Summary:        Eclipse Launchbar plug-in
License:        EPL-1.0
URL:            https://wiki.eclipse.org/CDT/LaunchBar

Source0:        http://git.eclipse.org/c/cdt/org.eclipse.launchbar.git/snapshot/org.eclipse.launchbar-%{git_tag}.tar.xz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: tycho
BuildRequires: tycho-extras
BuildRequires: eclipse-pde
BuildRequires: eclipse-license
%if %{with remote}
BuildRequires: eclipse-remote
%endif

Requires: eclipse-platform

%description
An alternative to the default launcher toolbar in Eclipse.

%prep
%setup -q -n org.eclipse.launchbar-%{git_tag}

find -name *.jar -exec rm -rf {} \;
find -name *.class -exec rm -rf {} \;

# No need to create update site/p2 repo for RPM builds
%pom_disable_module repo

# Disable tests for now
%pom_disable_module tests/org.eclipse.launchbar.core.tests
%pom_disable_module tests/org.eclipse.launchbar.ui.tests

%if %{without remote}
%pom_disable_module bundles/org.eclipse.launchbar.remote.core
%pom_disable_module bundles/org.eclipse.launchbar.remote.ui
%pom_disable_module features/org.eclipse.launchbar.remote
%endif

# No parent poms
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12533 |21mr|eclipse-license-2.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We need to ship both versions of the EPL
# Some plug-ins are moving to EPL 2, but some plug-ins might stay with EPL 1
%global eplv2_ver 2.0.1
%global eplv2_tag org.eclipse.license-license-%{eplv2_ver}.v20180423-1114
%global eplv1_ver 1.0.1
%global eplv1_tag org.eclipse.license-license-%{eplv1_ver}.v20140414-1359

Name:      eclipse-license
Version:   %{eplv2_ver}
Release:   7
Summary:   Shared license features for Eclipse
License:   EPL-1.0 and EPL-2.0
URL:       http://wiki.eclipse.org/CBI
Source1:   http://git.eclipse.org/c/cbi/org.eclipse.license.git/snapshot/%{eplv1_tag}.tar.bz2
Source2:   http://git.eclipse.org/c/cbi/org.eclipse.license.git/snapshot/%{eplv2_tag}.tar.bz2

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: tycho

%description
Shared license features for Eclipse. Other features may consume these
features to avoid unnecessary duplication of license boiler plate.

%package -n %{name}1
Version:   %{eplv1_ver}
Summary:   Shared EPL v1.0 license feature for Eclipse
License:   EPL-1.0
# Provides/Obsoletes added in F28
Provides:  eclipse-license = %{eplv1_ver}-20
Obsoletes: eclipse-license < %{eplv2_ver}-%{release}

%description -n %{name}1
Shared license feature for Eclipse. Other features may consume this
feature to avoid unnecessary duplication of license boiler plate.

%package -n %{name}2
Version:   %{eplv2_ver}
Summary:   Shared EPL v2.0 license feature for Eclipse
License:   EPL-2.0

%description -n %{name}2
Shared license feature for Eclipse. Other features may consume this
feature to avoid unnecessary duplication of license boiler plate.

%prep
%setup -q -c -T

tar xf %{SOURCE1}
tar xf %{SOURCE2}

%pom_remove_plugin ":tycho-packaging-plugin" */pom.xml

%build
pushd %{eplv1_tag}
%mvn_build -j
popd

pushd %{eplv2_tag}
sed -i -e 's/\(-SNAPSHOT\|\.qualifier\)/.v20180423-1114/' pom.xml */*.xml
%mvn_build -j
popd

%install
pushd %{eplv1_tag}
%mvn_package "::pom::" __noinstall
%mvn_package ":" 1
%mvn_install
popd

# Remove exploded tycho external bundles zipfile in case we are operating
# in bootstrap mode
rm -rf /tmp/tycho-bundles-external*

pushd %{eplv2_tag}
%mvn_package "::pom::" __noinstall
%mvn_package ":" 2
%mvn_install
popd

%files -n %{name}1 -f %{eplv1_tag}/.mfiles-1
%license %{eplv1_tag}/org.eclipse.license/*.html

%files -n %{name}2 -f %{eplv2_tag}/.mfiles-2
%license %{eplv2_tag}/org.eclipse.license/*.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12534 |21mr|eclipselink-2.6.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global reltag .v20160428-59c81c5
%global namedversion %{version}%{?reltag}

%global core org.eclipse.persistence.core
%global dbws org.eclipse.persistence.dbws
%global extension org.eclipse.persistence.extension
%global jpa org.eclipse.persistence.jpa
%global jpql org.eclipse.persistence.jpa.jpql
%global modelgen org.eclipse.persistence.jpa.modelgen.processor
%global moxy org.eclipse.persistence.moxy
%global sdo org.eclipse.persistence.sdo

Name:          eclipselink
Version:       2.6.3
Release:       8
Summary:       Eclipse Persistence Services Project
License:       EPL and BSD
Url:           http://www.eclipse.org/eclipselink/
# http://git.eclipse.org/c/eclipselink/eclipselink.runtime
Source0:       http://www.mirrorservice.org/sites/download.eclipse.org/eclipseMirror/rt/%{name}/releases/%{version}/%{name}-src-%{namedversion}.zip
Source1:       %{name}-%{version}-build.properties
Source2:       %{name}-%{version}-build.xml

Source3:       http://repo1.maven.org/maven2/org/eclipse/persistence/%{name}/%{version}/%{name}-%{version}.pom
Source4:       http://repo1.maven.org/maven2/org/eclipse/persistence/%{core}/%{version}/%{core}-%{version}.pom
Source5:       http://repo1.maven.org/maven2/org/eclipse/persistence/%{dbws}/%{version}/%{dbws}-%{version}.pom
Source6:       http://repo1.maven.org/maven2/org/eclipse/persistence/%{extension}/%{version}/%{extension}-%{version}.pom
Source7:       http://repo1.maven.org/maven2/org/eclipse/persistence/%{jpa}/%{version}/%{jpa}-%{version}.pom
Source8:       http://repo1.maven.org/maven2/org/eclipse/persistence/%{jpql}/%{version}/%{jpql}-%{version}.pom
Source9:       http://repo1.maven.org/maven2/org/eclipse/persistence/%{modelgen}/%{version}/%{modelgen}-%{version}.pom
Source10:      http://repo1.maven.org/maven2/org/eclipse/persistence/%{moxy}/%{version}/%{moxy}-%{version}.pom
Source11:      http://repo1.maven.org/maven2/org/eclipse/persistence/%{sdo}/%{version}/%{sdo}-%{version}.pom

BuildRequires: ant
BuildRequires: antlr3-java
BuildRequires: antlr3-tool
BuildRequires: aqute-bnd
BuildRequires: bean-validation-api
BuildRequires: cdi-api
BuildRequires: eclipse-equinox-osgi
BuildRequires: eclipselink-persistence-api
BuildRequires: glassfish-jaxb-api
BuildRequires: glassfish-jaxb-codemodel
BuildRequires: glassfish-jaxb-core
BuildRequires: glassfish-jaxb-jxc
BuildRequires: glassfish-servlet-api
BuildRequires: java-devel
BuildRequires: java-javadoc
BuildRequires: javamail
BuildRequires: javapackages-local
BuildRequires: jboss-connector-1.7-api
BuildRequires: jboss-jaxrs-2.0-api
BuildRequires: jboss-jms-2.0-api
BuildRequires: jboss-transaction-1.2-api
BuildRequires: jgroups
BuildRequires: jsonp
BuildRequires: objectweb-asm
BuildRequires: stringtemplate4
BuildRequires: tuscany-sdo-java
BuildRequires: xsom

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Eclipse Persistence Services Project, more commonly known as EclipseLink,
is a Java comprehensive persistence framework delivering a set of persistence
services based around standards. This lets you rapidly build applications
that combine the best aspects of object technology and the specific data
source.

EclipseLink was started by a donation of the full source code and
test suites of Oracle's TopLink product.

EclipseLink's services currently include object-relational with JPA,
object-XML binding in MOXy (with support for JAXB), a Service Data Objects
(SDO) implementation and support for another technologies like: Database Web
Services (DWS), XML-Relational (XRM) and Non-Relational (EIS via JCA).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -c

rm -r org/eclipse/persistence/internal/libraries/*
find ./ -name "*.java" -exec sed -i "s/org.eclipse.persistence.internal.libraries.antlr/org.antlr/g" {} +
find ./ -name "*.java" -exec sed -i "s/org.eclipse.persistence.internal.libraries.asm/org.objectweb.asm/g" {} +

# temporary fix for antlr 3.5.2
sed -i "s|Token.EOF_TOKEN|Token.EOF|" \
 org/eclipse/persistence/internal/jpa/parsing/jpql/JPQLParser.java

cp -p %{SOURCE1} build.properties
cp -p %{SOURCE2} build.xml

cp -p %{SOURCE3} pom.xml
%pom_change_dep org.eclipse.persistence:commonj.sdo org.apache.tuscany.sdo:tuscany-sdo-api-r2.1:1.1.1

cp -p %{SOURCE4} core-pom.xml
%pom_change_dep org.eclipse.persistence:org.eclipse.persistence.asm org.ow2.asm:asm:5.0.4 core-pom.xml
%pom_add_dep org.ow2.asm:asm-commons:5.0.4:compile core-pom.xml
%pom_add_dep org.ow2.asm:asm-tree:5.0.4:compile core-pom.xml
%pom_add_dep org.ow2.asm:asm-tree:5.0.4:compile core-pom.xml
%pom_add_dep org.ow2.asm:asm-util:5.0.4:compile core-pom.xml
#%pom_add_dep org.ow2.asm:asm-xml:5.0.4:compile core-pom.xml

cp -p %{SOURCE7} jpa-pom.xml
%pom_change_dep org.eclipse.persistence:org.eclipse.persistence.antlr org.antlr:antlr-runtime:3.5.2 jpa-pom.xml
%pom_change_dep org.eclipse.persistence:org.eclipse.persistence.asm org.ow2.asm:asm:5.0.4 jpa-pom.xml
%pom_add_dep org.ow2.asm:asm:5.0.4:compile jpa-pom.xml
%pom_add_dep org.ow2.asm:asm-commons:5.0.4:compile jpa-pom.xml
%pom_add_dep org.ow2.asm:asm-tree:5.0.4:compile jpa-pom.xml
%pom_add_dep org.ow2.asm:asm-tree:5.0.4:compile jpa-pom.xml
%pom_add_dep org.ow2.asm:asm-util:5.0.4:compile jpa-pom.xml
#%pom_add_dep org.ow2.asm:asm-xml:5.0.4:compile jpa-pom.xml

cp -p %{SOURCE11} sdo-pom.xml
%pom_change_dep org.eclipse.persistence:commonj.sdo org.apache.tuscany.sdo:tuscany-sdo-api-r2.1:1.1.1 sdo-pom.xml

# fix non ASCII chars
for s in org/eclipse/persistence/internal/jpa/transaction/JTATransactionWrapper.java \
  org/eclipse/persistence/jpa/jpql/parser/AbstractExpression.java \
  org/eclipse/persistence/jpa/jpql/tools/DefaultGrammarValidator.java \
  org/eclipse/persistence/jpa/jpql/tools/model/IScalarExpressionStateObjectBuilder.java \
  org/eclipse/persistence/platform/database/HANAPlatform.java \
  org/eclipse/persistence/platform/database/MaxDBPlatform.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

%build

(
 cd org/eclipse/persistence/internal/oxm/record/json/
 antlr3 JSON.g
)

(
 cd org/eclipse/persistence/internal/jpa/parsing/jpql/antlr/
# error: variable node is already defined in method subselectIdentificationVariableDeclaration(List)
 sed -i '/Object node = null;/d' JPQL.g
 antlr3 JPQL.g
)

ant

%install
%mvn_artifact pom.xml target/%{name}.jar
%mvn_artifact core-pom.xml target/%{core}-%{version}.jar
%mvn_artifact %{SOURCE5} target/%{dbws}-%{version}.jar
%mvn_artifact %{SOURCE6} target/%{extension}-%{version}.jar
%mvn_artifact jpa-pom.xml target/%{jpa}-%{version}.jar
%mvn_artifact %{SOURCE8} target/%{jpql}-%{version}.jar
%mvn_artifact %{SOURCE9} target/%{modelgen}-%{version}.jar
%mvn_artifact %{SOURCE10} target/%{moxy}-%{version}.jar
%mvn_artifact sdo-pom.xml target/%{sdo}-%{version}.jar
%mvn_install -J target/api

%files -f .mfiles
%doc about.html readme.html
%license license.html

%files javadoc -f .mfiles-javadoc
%license license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12535 |21mr|eclipselink-persistence-api-2.1.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname javax.persistence
%global namedreltag .v201304241213
%global namedversion %{version}%{?namedreltag}
%global api_version 2.1
Name:          eclipselink-persistence-api
Version:       2.1.0
Release:       9
Summary:       JPA 2.1 Spec OSGi Bundle
License:       EPL and ASL 2.0
URL:           http://www.eclipse.org/eclipselink/
#Source0:       https://github.com/eclipse/javax.persistence/archive/%%{namedversion}.tar.gz
Source0:       http://git.eclipse.org/c/eclipselink/javax.persistence.git/snapshot/%{oname}-%{namedversion}.tar.xz
Source1:       eclipse-javax.persistence-template.pom.xml

BuildRequires: java-javadoc
BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.osgi:osgi.core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
EclipseLink definition of the Java Persistence 2.1 API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{namedversion}

cp -p %{SOURCE1} pom.xml
sed -i "s|@VERSION@|%{version}|" pom.xml
sed -i "s|@API_VERSION@|%{api_version}|" pom.xml
sed -i "s|@IMPL_VERSION@|%{namedversion}|" pom.xml

# Switch which OSGi APIs are used at compile time
%pom_change_dep "org.eclipse.osgi:org.eclipse.osgi" "org.osgi:osgi.core:6.0.0:provided"

cp -p resource/{about,license,readme}.html .

mkdir -p target/classes
rm -r META-INF/MANIFEST.MF
mv META-INF target/classes/

# fix non ASCII chars
for s in src/javax/persistence/EntityManager.java\
  src/javax/persistence/MapsId.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

%mvn_file :%{oname} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license license.html

%files javadoc -f .mfiles-javadoc
%license license.html readme.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12536 |21mr|eclipse-linuxtools-7.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_tag 7.2.0

Name:           eclipse-linuxtools
Version:        7.2.0
Release:        4
Summary:        Linux specific Eclipse plugins

License:        EPL-2.0
URL:            http://eclipse.org/linuxtools/
Source0:        http://git.eclipse.org/c/linuxtools/org.eclipse.linuxtools.git/snapshot/org.eclipse.linuxtools-%{git_tag}.tar.xz
Source1:        libstdc++-v3.libhover

Patch0: 0001-Use-local-libhover-data.patch
Patch1: 0002-Fix-Docker-Tooling-terminal-on-newer-versions-of-Jer.patch
Patch2: 0003-Use-import-package-for-javax.xml.bind.patch

BuildRequires: tycho
BuildRequires: tycho-extras
BuildRequires: eclipse-cdt
BuildRequires: eclipse-jdt
BuildRequires: swt-chart
BuildRequires: eclipse-remote
BuildRequires: eclipse-license2
BuildRequires: eclipse-swtbot
BuildRequires: eclipse-gef
BuildRequires: eclipse-mylyn
BuildRequires: exec-maven-plugin
BuildRequires: eclipse-ptp
BuildRequires: nekohtml
BuildRequires: docker-client-java >= 8.11.7-4
BuildRequires: glassfish-jax-rs-api
BuildRequires: glassfish-jaxb-api
BuildRequires: assertj-core
BuildRequires: mockito
# Ensure we have latest security fixes
BuildRequires: bouncycastle >= 1.61
BuildRequires: jackson-databind >= 2.9.8
BuildRequires: jersey >= 2.28-3
# Required because of transitive optional dep from guava
Requires:  glassfish-annotation-api

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

%description
The Linux Tools project is a two-faceted project. Firstly, it develops tools 
and frameworks for writing tools for Linux developers. Secondly, it provides
a place for Linux distributions to collaboratively overcome issues surrounding 
distribution packaging of Eclipse technology. The project will produce both
best practices and tools related to packaging. 

%package changelog

Summary:   Eclipse ChangeLog plug-in
Epoch:     2
Obsoletes: eclipse-changelog < 2:%{version}-%{release}
Provides:  eclipse-changelog = 2:%{version}-%{release}

%description changelog
The Eclipse ChangeLog package contains Eclipse features and plugins that are
useful for ChangeLog maintenance within the Eclipse IDE.  It includes
fragments for parsing C, C++, and Java source files to create more detailed
entries containing function or method names.

%package rpm-editor

Summary:   RPM Spec file editor for Eclipse
Requires:  rpmlint >= 0.81
Requires:  rpmdevtools
Obsoletes: eclipse-rpmstubby < %{version}-%{release}
Provides:  eclipse-rpmstubby = %{version}-%{release}
Obsoletes: eclipse-rpm-editor < %{version}-%{release}
Provides:  eclipse-rpm-editor = %{version}-%{release}

%description rpm-editor
The Eclipse Spec file Editor package contains Eclipse plugins that are
useful for maintenance of RPM spec files within the Eclipse IDE.

%package manpage

Summary:   Man page viewer
Obsoletes: eclipse-manpage < %{version}-%{release}
Provides:  eclipse-manpage = %{version}-%{release}

%description manpage
Plugin providing common interface for displaying a man page in a view or 
fetching its content for embedded display purposes (e.g hover help).

%package docker

Summary:  Docker Tooling
Requires: docker-client-java >= 8.11.7-4
# Ensure we have latest security fixes
Requires: bouncycastle >= 1.61
Requires: jackson-databind >= 2.9.8
Requires: jersey >= 2.28-3

%description docker
Plugin providing support for managing Docker containers and images in
Eclipse.

%package vagrant

Summary:  Vagrant Tooling
Recommends: vagrant

%description vagrant
Plugin providing support for managing Vagrant machines and mages in
Eclipse.

%package gcov

Summary:   GCov Integration
Obsoletes: eclipse-gcov < %{version}-%{release}
Provides:  eclipse-gcov = %{version}-%{release}

%description gcov
Functionality to integrate GCov with the Eclipse workbench.

%package gprof

Summary:   GProf Integration
Obsoletes: eclipse-gprof < %{version}-%{release}
Provides:  eclipse-gprof = %{version}-%{release}

%description gprof
Functionality to integrate GProf with the Eclipse workbench.

%package oprofile

Summary:   Eclipse plugin for OProfile integration
Obsoletes: eclipse-oprofile < %{version}-%{release}
Provides:  eclipse-oprofile = %{version}-%{release}
%if %{?rhel}%{!?rhel:0} == 7
Requires:  oprofile >= 0.9.3
%endif

%description oprofile
Eclipse plugins to integrate OProfile's profiling capabilities with the CDT.

%package perf

Summary:   Eclipse plugin for Perf integration
Obsoletes: eclipse-perf < %{version}-%{release}
Provides:  eclipse-perf = %{version}-%{release}
Requires:  perf

%description perf
Eclipse plugins to integrate Perf's profiling capabilities with the CDT.

%package valgrind

Summary:   Valgrind Tools Integration for Eclipse
Obsoletes: eclipse-valgrind < %{version}-%{release}
Provides:  eclipse-valgrind = %{version}-%{release}
Requires:  valgrind

%description valgrind
This package for Eclipse allows users to launch their C/C++ Development Tools
projects using the Valgrind tool suite and presents the results in the IDE. 

%package systemtap

Summary:   Systemtap Tools Integration for Eclipse
Obsoletes: eclipse-systemtap < %{version}-%{release}
Provides:  eclipse-systemtap = %{version}-%{release}
Requires:  systemtap

%description systemtap
Integrate Systemtap's profiling and tracing capabilities with the CDT.

%package libhover

Summary: Libhover documentation plugin for Eclipse

%description libhover
Common interface for C library hover help to the CDT (C/C++ Development Tools)
as well as a fundamental set of library hovers to choose from. 

%package javadocs

Summary: Javadocs documentation plugin for Eclipse

%description javadocs
Integrates system installed/available javadocs into Eclipse help system.

%package tests

Summary:  Linux Tools Project Test Bundles
Requires: eclipse-linuxtools-changelog
Requires: eclipse-linuxtools-rpm-editor
Requires: eclipse-linuxtools-manpage
Requires: eclipse-linuxtools-gcov
Requires: eclipse-linuxtools-gprof
Requires: eclipse-linuxtools-oprofile
Requires: eclipse-linuxtools-perf
Requires: eclipse-linuxtools-valgrind
Requires: eclipse-linuxtools-systemtap
Requires: eclipse-linuxtools-libhover
Requires: eclipse-linuxtools-javadocs
Requires: eclipse-ptp
Requires: eclipse-swtbot
Requires: eclipse-tests

%description tests
All test bundles for the Linux Tools project.


%prep
%setup -q -n org.eclipse.linuxtools-%{git_tag}
%patch0 -p1
%patch1 -p1
%patch2 -p1

pushd libhover/org.eclipse.linuxtools.cdt.libhover.libstdcxx
mkdir data
cp %{SOURCE1} data/.
popd

# Not needed for RPM builds
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_dep :tycho-sourceref-jgit vagrant containers
%pom_xpath_remove 'pom:configuration/pom:sourceReferences' vagrant containers

# org.assertj -> org.assertj.core
sed -i -e 's/org.assertj/org.assertj.core/' containers/org.eclipse.linuxtools.docker.ui.tests/META-INF/MANIFEST.MF

# Reddeer is not available
%pom_disable_module org.eclipse.linuxtools.docker.reddeer containers
%pom_disable_module org.eclipse.linuxtools.docker.integration.tests containers
%pom_disable_module org.eclipse.linuxtools.docker.tests-feature containers

# Don't use target platform
%pom_disable_module releng
%pom_disable_module org.eclipse.linuxtools.changelog.ui.tests changelog
%pom_disable_module org.eclipse.linuxtools.docker.ui.tests containers
sed -i '/<target>/,/<\/target>/ d' pom.xml

# Fix uses conflict introduced by EBZ #474606
sed -i -e '9i\ javax.annotation-api;bundle-version="1.2.0",' \
containers/org.eclipse.linuxtools.docker.core/META-INF/MANIFEST.MF

# Relax restriction on guava
sed -i -e '/com.google.guava/s/guava\(;bundle-version=\".*\"\)\?/guava;bundle-version=\"[18.0.0,21.0.0)\"/' \
  containers/org.eclipse.linuxtools.docker.{core,ui.tests,integration.tests}/META-INF/MANIFEST.MF

%mvn_package "::pom::" __noinstall
%mvn_package ":*.{test,tests}" linuxtools-tests
%mvn_package ":*.tests.hamcrest-wrap" linuxtools-tests
%mvn_package ":org.eclipse.linuxtools.{jdt.,}docker*" docker
%mvn_package ":org.eclipse.linuxtools.vagrant*" vagrant
%mvn_package "org.eclipse.linuxtools{,.profiling}:" core
%mvn_package "org.eclipse.linuxtools.javadocs:" javadocs
%mvn_package "org.eclipse.linuxtools.changelog:" changelog
%mvn_package "org.eclipse.linuxtools.gcov:" gcov
%mvn_package "org.eclipse.linuxtools.gprof:" gprof
%mvn_package "org.eclipse.linuxtools.man:" manpage
%mvn_package "org.eclipse.linuxtools.oprofile:" oprofile
%mvn_package "org.eclipse.linuxtools.perf{,-parent}:" perf
%mvn_package "org.eclipse.linuxtools.rpm:" rpm-editor
%mvn_package "org.eclipse.linuxtools.systemtap:" systemtap
%mvn_package "org.eclipse.linuxtools.valgrind:" valgrind
%mvn_package "org.eclipse.linuxtools.cdt.libhover:" libhover

%build
%mvn_build -j -f

%install
%mvn_install

# Appstream addon metadata
for p in changelog gcov gprof oprofile perf systemtap valgrind  ; do
  install -m644 -D $p/eclipse-$p.metainfo.xml %{buildroot}%{_datadir}/appdata/eclipse-$p.metainfo.xml
done

%files -f .mfiles-core
%doc README.md

%files changelog -f .mfiles-changelog
%{_datadir}/appdata/eclipse-changelog.metainfo.xml

%files rpm-editor -f .mfiles-rpm-editor

%files manpage -f .mfiles-manpage

%files gcov -f .mfiles-gcov
%{_datadir}/appdata/eclipse-gcov.metainfo.xml

%files gprof -f .mfiles-gprof
%{_datadir}/appdata/eclipse-gprof.metainfo.xml

%files docker -f .mfiles-docker

%files vagrant -f .mfiles-vagrant

%files oprofile -f .mfiles-oprofile
%{_datadir}/appdata/eclipse-oprofile.metainfo.xml

%files perf -f .mfiles-perf
%{_datadir}/appdata/eclipse-perf.metainfo.xml

%files valgrind -f .mfiles-valgrind
%{_datadir}/appdata/eclipse-valgrind.metainfo.xml

%files systemtap -f .mfiles-systemtap
%{_datadir}/appdata/eclipse-systemtap.metainfo.xml

%files libhover -f .mfiles-libhover

%files javadocs -f .mfiles-javadocs

%files tests -f .mfiles-linuxtools-tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12537 |21mr|eclipse-m2e-antlr-0.15.0-0.13.gitb2d587b
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit b2d587b0e271e5dc04c2a29a7ca76df01adad98a
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-antlr
Version:        0.15.0
Release:        0.13.git%{shortcommit}
Summary:        M2E ANTLR connector
License:        EPL
URL:            https://github.com/tesla/m2eclipse-antlr/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-antlr/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)

Enhances:       eclipse-m2e-core

%description
This package provides ANTLR connector for Eclipse M2E.

%prep
%setup -q -n m2eclipse-antlr-%{commit}
find -name *.jar -delete

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module org.sonatype.m2e.antlr.tests

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.antlr.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12538 |21mr|eclipse-m2e-apt-1.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit  %{version}.201804060341

Name:           eclipse-m2e-apt
Version:        1.5.0
Release:        2
Summary:        M2E JDT Annotation Processor Toolkit connector
License:        EPL-1.0
URL:            https://github.com/jbosstools/m2e-apt
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/jbosstools/m2e-apt/archive/%{commit}/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.eclipse.tycho.extras:tycho-source-feature-plugin)
BuildRequires:  mvn(org.eclipse.tycho:target-platform-configuration)
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-source-plugin)
BuildRequires:  osgi(org.eclipse.license)
BuildRequires:  osgi(org.eclipse.jdt.core)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.wst.sse.core)
BuildRequires:  osgi(org.eclipse.wst.xml.core)
BuildRequires:  osgi(slf4j.api)

Enhances:       eclipse-m2e-core

%description
This package provides JDT Annotation Process Toolkit connector for Eclipse
M2E. It provides automatic Annotation Processing configuration in Eclipse
based on your project's pom.xml and its classpath dependencies.

%prep
%setup -q -n m2e-apt-%{commit}
find -name *.jar -delete

# Avoid relying on forge parent pom
%pom_remove_parent

# Don't need to build update site for RPM builds
%pom_disable_module org.jboss.tools.maven.apt.site

# Tests are not able to be run due to missing plugin "org.bsc.maven"
%pom_disable_module org.jboss.tools.maven.apt.tests

# Avoid using tycho-sourceref-jgit due to source tarball not being a git repo
%pom_remove_plugin :tycho-packaging-plugin

# This project is EPL licensed, so let's reuse the eclipse-license
sed -i -e 's/org.jboss.tools.foundation.license.feature/org.eclipse.license/' \
  org.jboss.tools.maven.apt.feature/feature.xml

# Don't package parent pom
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license org.jboss.tools.maven.apt.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12539 |21mr|eclipse-m2e-buildhelper-0.15.0-0.13.git2dbbbb7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 2dbbbb758f72c7665f590feec7f84e855c7b9951
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-buildhelper
Version:        0.15.0
Release:        0.13.git%{shortcommit}
Summary:        M2E Build Helper connector
License:        EPL-1.0
URL:            https://github.com/tesla/m2eclipse-buildhelper/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-buildhelper/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)

Enhances:       eclipse-m2e-core

%description
This package provides Build Helper connector for Eclipse M2E.

%prep
%setup -q -n m2eclipse-buildhelper-%{commit}
find -name *.jar -delete

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module org.sonatype.m2e.buildhelper.tests

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.buildhelper.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12540 |21mr|eclipse-m2e-core-1.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global release_dir m2e-core-c5392da6bab9893bcbf5b43f651abe48d5819bea

Name:           eclipse-m2e-core
Version:        1.11.0
Release:        1
Summary:        Maven integration for Eclipse

# Most of components are under EPL, but some of them are licensed under
# ASL 2.0 license.
License:        EPL-1.0 and ASL 2.0
URL:            https://eclipse.org/m2e/

Source0:        https://git.eclipse.org/c/m2e/m2e-core.git/snapshot/%{release_dir}.tar.xz
Source1:        http://www.eclipse.org/legal/epl-v10.html

# Add some necessary stuff (mainly requires & imports) to manifests
Patch0:         %{name}-fix-manifests.patch

# API changes to accomodate maven-indexer 5.1.1
Patch1:        %{name}-indexer-5.1.1.patch

# API change in aether (remove once implemented)
Patch2:        %{name}-LifecycleMappingFactory.patch

# Port tests to latest Jetty
Patch3:        %{name}-jetty.patch

# Remove "mandatory" attirbutes from OSGi manifests, which cause problems with P2.
# See https://dev.eclipse.org/mhonarc/lists/p2-dev/msg05465.html
Patch4:        %{name}-mandatory-OSGi-attributes.patch

# Port to lucene 5
Patch5:        %{name}-lucene-5.patch

# Fix build against older maven < 3.5.3 as available on rhel 7
Patch6:        eclipse-m2e-maven353.patch

# Fix build against latest maven-resolver
Patch7:        eclipse-m2e-maven-resolver-1.3.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

# Maven build-requires for the main build.  After successfull build
# they can be regenerated with the following command:
#   xmvn-builddep <path-to-build-log>
BuildRequires:  maven-local
BuildRequires:  mvn(io.takari.m2e.workspace:org.eclipse.m2e.workspace.cli)
BuildRequires:  mvn(org.apache.maven.plugins:maven-install-plugin)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:target-platform-configuration)
BuildRequires:  mvn(org.eclipse.tycho:tycho-compiler-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-packaging-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-source-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-surefire-plugin)
BuildRequires:  mvn(org.sonatype.forge:forge-parent:pom:)

# Additional Maven build-requires for m2e-maven-runtime.  They cannot
# be regenerated using xmvn-builddep because m2e-maven-runtime is not
# built using %%mvn_build.
BuildRequires:  mvn(io.takari.aether:aether-connector-okhttp)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.archetype:archetype-common)
BuildRequires:  mvn(org.apache.maven.indexer:indexer-core) >= 5.1.2-0.4
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-embedder)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-file)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-http)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-connector-basic)
BuildRequires:  mvn(org.eclipse.aether:aether-impl)
BuildRequires:  mvn(org.eclipse.aether:aether-spi)
BuildRequires:  mvn(org.eclipse.aether:aether-util)
BuildRequires:  mvn(org.eclipse.aether:aether-transport-wagon)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-plugin)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  mvn(org.sonatype.forge:forge-parent:pom:)
BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)


# OSGi build-requires.  They can be regenerated with the following command:
#   sed -n 's/^Require-Bundle: //;T;:l;s/[;=,].*//;/^org.eclipse.m2e/bn;s/..*/BuildRequires:  osgi(&)/;T;p;:n;n;s/^ //;T;bl' `find -name *.MF` | sort -u
BuildRequires:  osgi(com.google.guava)
BuildRequires:  osgi(com.ibm.icu)
BuildRequires:  osgi(org.apache.ant)
BuildRequires:  osgi(org.apache.lucene.queryparser)
BuildRequires:  osgi(org.apache.maven.archetype.catalog)
BuildRequires:  osgi(org.apache.maven.archetype.descriptor)
BuildRequires:  osgi(org.eclipse.compare)
BuildRequires:  osgi(org.eclipse.core.expressions)
BuildRequires:  osgi(org.eclipse.core.filebuffers)
BuildRequires:  osgi(org.eclipse.core.filesystem)
BuildRequires:  osgi(org.eclipse.core.jobs)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.core.variables)
BuildRequires:  osgi(org.eclipse.debug.core)
BuildRequires:  osgi(org.eclipse.debug.ui)
BuildRequires:  osgi(org.eclipse.emf.common)
BuildRequires:  osgi(org.eclipse.emf.ecore)
BuildRequires:  osgi(org.eclipse.emf.ecore.edit)
BuildRequires:  osgi(org.eclipse.emf.ecore.xmi)
BuildRequires:  osgi(org.eclipse.emf.edit)
BuildRequires:  osgi(org.eclipse.equinox.common)
BuildRequires:  osgi(org.eclipse.equinox.p2.core)
BuildRequires:  osgi(org.eclipse.equinox.p2.discovery)
BuildRequires:  osgi(org.eclipse.equinox.p2.discovery.compatibility)
BuildRequires:  osgi(org.eclipse.equinox.p2.metadata)
BuildRequires:  osgi(org.eclipse.equinox.p2.operations)
BuildRequires:  osgi(org.eclipse.equinox.p2.repository)
BuildRequires:  osgi(org.eclipse.equinox.p2.ui)
BuildRequires:  osgi(org.eclipse.equinox.p2.ui.discovery)
BuildRequires:  osgi(org.eclipse.equinox.registry)
BuildRequires:  osgi(org.eclipse.jdt.core)
BuildRequires:  osgi(org.eclipse.jdt.debug)
BuildRequires:  osgi(org.eclipse.jdt.debug.ui)
BuildRequires:  osgi(org.eclipse.jdt.launching)
BuildRequires:  osgi(org.eclipse.jdt.ui)
BuildRequires:  osgi(org.eclipse.jem.util)
BuildRequires:  osgi(org.eclipse.jetty.http)
BuildRequires:  osgi(org.eclipse.jetty.io)
BuildRequires:  osgi(org.eclipse.jetty.security)
BuildRequires:  osgi(org.eclipse.jetty.server)
BuildRequires:  osgi(org.eclipse.jetty.util)
BuildRequires:  osgi(org.eclipse.jface)
BuildRequires:  osgi(org.eclipse.jface.text)
BuildRequires:  osgi(org.eclipse.license)
BuildRequires:  osgi(org.eclipse.ltk.core.refactoring)
BuildRequires:  osgi(org.eclipse.ltk.ui.refactoring)
BuildRequires:  osgi(org.eclipse.osgi)
BuildRequires:  osgi(org.eclipse.search)
BuildRequires:  osgi(org.eclipse.swt)
BuildRequires:  osgi(org.eclipse.ui)
BuildRequires:  osgi(org.eclipse.ui.console)
BuildRequires:  osgi(org.eclipse.ui.editors)
BuildRequires:  osgi(org.eclipse.ui.externaltools)
BuildRequires:  osgi(org.eclipse.ui.forms)
BuildRequires:  osgi(org.eclipse.ui.ide)
BuildRequires:  osgi(org.eclipse.ui.workbench)
BuildRequires:  osgi(org.eclipse.ui.workbench.texteditor)
BuildRequires:  osgi(org.eclipse.wst.common.emf)
BuildRequires:  osgi(org.eclipse.wst.common.uriresolver)
BuildRequires:  osgi(org.eclipse.wst.sse.core)
BuildRequires:  osgi(org.eclipse.wst.sse.ui)
BuildRequires:  osgi(org.eclipse.wst.xml.core)
BuildRequires:  osgi(org.eclipse.wst.xml.ui)
BuildRequires:  osgi(org.eclipse.wst.xsd.core)
BuildRequires:  osgi(org.junit)

# Maven POM doesn't require maven-parent
BuildRequires:  maven-parent

# Install plugin is invoked explicitly from the spec file
BuildRequires:  maven-install-plugin

# Bundle requires are auto-generated, but explicit requires are needed
# for symlinks to JARs installed by other packages.  After installing
# m2e these requires can be regenerated with the following command:
#   rpm -qf --qf 'Requires:       %%{name}\n' $(readlink -f $(find /usr/share/eclipse/droplets/m2e-core -type l)) | sort -u
Requires:       aether-connector-okhttp
Requires:       aopalliance
Requires:       apache-commons-cli
Requires:       apache-commons-collections
Requires:       apache-commons-io
Requires:       apache-commons-lang
Requires:       apache-commons-lang3
Requires:       atinject
Requires:       dom4j
Requires:       eclipse-m2e-workspace >= 0.4.0
Requires:       google-guice
Requires:       jchardet
Requires:       jdom
Requires:       jetty-util
Requires:       lucene-grouping
Requires:       lucene-highlighter
Requires:       lucene-join
Requires:       lucene-memory
Requires:       maven-archetype-catalog
Requires:       maven-archetype-common
Requires:       maven-archetype-descriptor
Requires:       maven-archetype-registry
Requires:       maven-artifact-manager
Requires:       maven-indexer >= 5.1.2-0.6
Requires:       maven-invoker
Requires:       maven-lib
Requires:       maven-model
Requires:       maven-plugin-registry
Requires:       maven-profile
Requires:       maven-project
Requires:       maven-resolver-api
Requires:       maven-resolver-connector-basic
Requires:       maven-resolver-impl
Requires:       maven-resolver-spi
Requires:       maven-resolver-transport-wagon
Requires:       maven-resolver-util
Requires:       maven-wagon-file
Requires:       maven-wagon-http
Requires:       objectweb-asm
Requires:       okhttp
Requires:       okio
Requires:       plexus-build-api
Requires:       plexus-cipher
Requires:       plexus-classworlds
Requires:       plexus-containers-component-annotations
Requires:       plexus-containers-container-default
Requires:       plexus-interpolation
Requires:       plexus-sec-dispatcher
Requires:       plexus-utils
Requires:       plexus-velocity
Requires:       sisu-inject
Requires:       sisu-plexus
Requires:       slf4j
Requires:       velocity
Requires:       xbean
Requires:       xml-commons-apis

%description
The goal of the m2ec project is to provide a first-class Apache Maven support
in the Eclipse IDE, making it easier to edit Maven's pom.xml, run a build from
the IDE and much more. For Java developers, the very tight integration with JDT
greatly simplifies the consumption of Java artifacts either being hosted on open
source repositories such as Maven Central, or in your in-house Maven repository.

m2e is also a platform that let others provide better integration with
additional Maven plugins (e.g. Android, web development, etc.), and facilitates
the distribution of those extensions through the m2e marketplace.


%package tests
Summary:        Eclipse M2E testing helpers

%description tests
This package contains common code used by tests for Eclipse M2E.


%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains %{summary}.


%prep
%setup -q -n %{release_dir}

find -name '*.class' -delete
find -name '*.jar' -delete

# Copy license files so they can be installed more easily.
cp -p %{SOURCE1} .
cp -p org.eclipse.m2e.core/about_files/LICENSE-2.0.txt .

# These don't currently build, but don't seem to be absolutely necessary
for mod in org.eclipse.m2e.logback.appender \
           org.eclipse.m2e.logback.configuration \
           org.eclipse.m2e.logback.feature \
           org.eclipse.m2e.sdk.feature \
           org.eclipse.m2e.site
do
  %pom_disable_module $mod
  rm -rf $mod
done

# Test bundle goes to its own subpackage.
%mvn_package ":*.tests*::{}:" tests
%mvn_package ":::{}:"

# Ensure all necessary resolver deps are present
pushd m2e-maven-runtime/org.eclipse.m2e.maven.runtime
%pom_remove_dep "org.apache.maven.resolver:"
%pom_add_dep "org.apache.maven.resolver:maven-resolver-api:1.1.0"
%pom_add_dep "org.apache.maven.resolver:maven-resolver-impl:1.1.0"
%pom_add_dep "org.apache.maven.resolver:maven-resolver-connector-basic:1.1.0"
%pom_add_dep "org.apache.maven.resolver:maven-resolver-spi:1.1.0"
%pom_add_dep "org.apache.maven.resolver:maven-resolver-transport-wagon:1.1.0"
%pom_add_dep "org.apache.maven.resolver:maven-resolver-util:1.1.0"
popd

# Embed all Maven dependencies.  They may be some superflous deps
# added this way, but in Fedora we don't have enough manpower to test
# dependency correctness.  And we don't even run m2e tests...
# Except for lucene and asm, avoid embedding that because of problems
for d in `find m2e-maven-runtime/* -maxdepth 0 -type d`; do
    %pom_xpath_inject pom:instructions "<Embed-Directory>jars</Embed-Directory>" $d
    %pom_xpath_set pom:Embed-Dependency "*;scope=compile|runtime;groupId=!org.apache.lucene|org.ow2.asm" $d
done

%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
%patch5 -p0
%if 0%{?rhel} == 7
%patch6 -p0
%endif
%patch7 -p0

# Not needed for RPM builds
%pom_remove_plugin ":jacoco-maven-plugin"

# Fix BSN of annotations
sed -i -e 's/>javax.annotation</>javax.annotation-api</' \
  org.eclipse.m2e.importer.tests/pom.xml org.eclipse.m2e.binaryproject.tests/pom.xml
sed -i -e 's/javax.annotation;/javax.annotation-api;/' \
  org.eclipse.m2e.core.tests/META-INF/MANIFEST.MF

# Specify a guava version
sed -i -e '/com.google.guava/a<version>20.0</version>' \
  m2e-maven-runtime/org.eclipse.m2e.maven.runtime/pom.xml

# Avoid embedding lucene, use as ordinary OSGi bundle instead
%pom_xpath_set pom:Import-Package "org.apache.lucene*,!*" m2e-maven-runtime/org.eclipse.m2e.maven.indexer
sed -i -e '/org.slf4j/s|^\(.*\)|\1,org.apache.lucene.analysis,org.apache.lucene.analysis.standard,org.apache.lucene.analysis.util,org.apache.lucene.document,org.apache.lucene.index,org.apache.lucene.queryparser.classic,org.apache.lucene.search,org.apache.lucene.search.highlight,org.apache.lucene.store,org.apache.lucene.util|' \
  org.eclipse.m2e.core/META-INF/MANIFEST.MF org.eclipse.m2e.core.ui/META-INF/MANIFEST.MF

%build
# Building m2e is a two step process.  See upstream documentation:
# http://wiki.eclipse.org/M2E_Development_Environment#Building_m2e_on_command_line
repo=localrepo
xmvn -B -o package -f m2e-maven-runtime/pom.xml -Dmaven.repo.local=${repo}
# Manually install the first stage (don't rely on felix OBR)
mkdir tmp && pushd tmp
xmvn -B -o install:install-file -DgroupId=org.eclipse.m2e -DartifactId=org.eclipse.m2e.archetype.common -Dversion=%{version}-SNAPSHOT -Dpackaging=jar \
  -Dmaven.repo.local=../${repo} -Dfile=../m2e-maven-runtime/org.eclipse.m2e.archetype.common/target/org.eclipse.m2e.archetype.common-%{version}-SNAPSHOT.jar
xmvn -B -o install:install-file -DgroupId=org.eclipse.m2e -DartifactId=org.eclipse.m2e.maven.indexer -Dversion=%{version}-SNAPSHOT -Dpackaging=jar \
  -Dmaven.repo.local=../${repo} -Dfile=../m2e-maven-runtime/org.eclipse.m2e.maven.indexer/target/org.eclipse.m2e.maven.indexer-%{version}-SNAPSHOT.jar
xmvn -B -o install:install-file -DgroupId=org.eclipse.m2e -DartifactId=org.eclipse.m2e.maven.runtime -Dversion=%{version}-SNAPSHOT -Dpackaging=jar \
  -Dmaven.repo.local=../${repo} -Dfile=../m2e-maven-runtime/org.eclipse.m2e.maven.runtime/target/org.eclipse.m2e.maven.runtime-%{version}-SNAPSHOT.jar
xmvn -B -o install:install-file -DgroupId=org.eclipse.m2e -DartifactId=org.eclipse.m2e.maven.runtime.slf4j.simple -Dversion=%{version}-SNAPSHOT -Dpackaging=jar \
  -Dmaven.repo.local=../${repo} -Dfile=../m2e-maven-runtime/org.eclipse.m2e.maven.runtime.slf4j.simple/target/org.eclipse.m2e.maven.runtime.slf4j.simple-%{version}-SNAPSHOT.jar
popd
# Second stage build
%mvn_build -f -- -Dmaven.repo.local=${repo} -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8

%install
%mvn_artifact m2e-maven-runtime/$mod/pom.xml
for mod in org.eclipse.m2e.archetype.common \
           org.eclipse.m2e.maven.indexer \
           org.eclipse.m2e.maven.runtime \
           org.eclipse.m2e.maven.runtime.slf4j.simple
do
    %mvn_artifact -Dtype=eclipse-plugin m2e-maven-runtime/$mod/pom.xml m2e-maven-runtime/$mod/target/$mod-%{version}-SNAPSHOT.jar
done

%mvn_install

# Replace bundled JARs with symlinks to system JARs using XMvn Subst.  This way
# there is no need to manually synchronize JAR lists between Maven and M2E when
# some Maven dependency changes.  All that needs to be done is rebuilding M2E.
xmvn-subst -s $(find %{buildroot}%{_datadir}/eclipse/droplets/m2e-core -name jars)

%files -f .mfiles
%license epl-v10.html LICENSE-2.0.txt

%files tests -f .mfiles-tests

%files javadoc -f .mfiles-javadoc
%license epl-v10.html LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12541 |21mr|eclipse-m2e-cxf-0.14.0-0.12.gitf22f9ea
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit f22f9eac28b5e1418abe3d96df15d6900015b88d
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-cxf
Version:        0.14.0
Release:        0.12.git%{shortcommit}
Summary:        M2E CXF connector
License:        EPL
URL:            https://github.com/tesla/m2eclipse-cxf/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-cxf/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)

Enhances:       eclipse-m2e-core

%description
This package provides CXF connector for Eclipse M2E.

%prep
%setup -q -n m2eclipse-cxf-%{commit}
find -name *.jar -delete

# Fedora has newer version of M2E.  Relax bundle version requirements.
sed -i 's/\[1.0.0,1.2.0)/[1.0.0,2.0.0)/' $(find -name *.MF)

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.cxf.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12542 |21mr|eclipse-m2e-egit-0.15.1-0.3.git026984f
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 026984fcccd528fab19ca8f053a63a0ed3f57b0c
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-egit
Version:        0.15.1
Release:        0.3.git%{shortcommit}
Summary:        M2E SCM Handler for EGit
License:        EPL-1.0
URL:            https://github.com/tesla/m2eclipse-egit/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-egit/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.egit.core)
BuildRequires:  osgi(org.eclipse.egit.ui)
BuildRequires:  osgi(org.eclipse.jface)
BuildRequires:  osgi(org.eclipse.jgit)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.core.ui)
BuildRequires:  osgi(org.eclipse.m2e.scm)
BuildRequires:  osgi(org.eclipse.swt)
BuildRequires:  osgi(org.eclipse.ui)
BuildRequires:  osgi(slf4j.api)
BuildRequires:  osgi(org.eclipse.equinox.p2.ui.discovery)
BuildRequires:  eclipse-jgit

Enhances:       eclipse-m2e-core

%description
This package provides M2E SCM Handler for EGit which adds support for
git repositories to M2E.

%prep
%setup -q -n m2eclipse-egit-%{commit}
find -name *.jar -delete

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module org.sonatype.m2e.egit.tests

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.egit.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12543 |21mr|eclipse-m2e-mavenarchiver-0.17.2-0.5.git5a285e5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 5a285e50b886ae30fc9e76815fc54d009ca10c22
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-mavenarchiver
Version:        0.17.2
Release:        0.5.git%{shortcommit}
Summary:        M2E Maven Archiver connector
License:        EPL-1.0
URL:            https://github.com/tesla/m2eclipse-mavenarchiver/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-mavenarchiver/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)

Enhances:       eclipse-m2e-core

%description
This package provides Maven Archiver connector for Eclipse M2E.

%prep
%setup -q -n m2eclipse-mavenarchiver-%{commit}
find -name *.jar -delete

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module org.sonatype.m2e.mavenarchiver.tests

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.mavenarchiver.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12544 |21mr|eclipse-m2e-maven-dependency-plugin-0.0.4-0.6.git38c09f1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 38c09f1ee625369f5ebc7a57f5b2a63e9034f9a4
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-maven-dependency-plugin
Version:        0.0.4
Release:        0.6.git%{shortcommit}
Summary:        M2E maven-dependency-plugin connector
License:        EPL
URL:            https://github.com/ianbrandt/m2e-maven-dependency-plugin
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/ianbrandt/m2e-maven-dependency-plugin/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.eclipse.tycho:target-platform-configuration)
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)
BuildRequires:  mvn(org.sonatype.forge:forge-parent:pom:)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)

Enhances:       eclipse-m2e-core

%description
This package provides maven-dependency-plugin connector for Eclipse M2E.

%prep
%setup -q -n m2e-maven-dependency-plugin-%{commit}

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module tests
%pom_disable_module site

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%license feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12545 |21mr|eclipse-m2e-mavendev-0.3.0.201506181201-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           eclipse-m2e-mavendev
Version:        0.3.0.201506181201
Release:        8
Summary:        Maven Development Tools
License:        EPL
URL:            https://github.com/ifedorenko/com.ifedorenko.m2e.mavendev
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/ifedorenko/com.ifedorenko.m2e.mavendev/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        http://www.eclipse.org/legal/epl-v10.html

Patch0: mavendev-remove-takaristats.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-packaging-plugin)
BuildRequires:  takari-tycho-support

BuildRequires:  osgi(org.sonatype.m2e.mavenarchiver)
BuildRequires:  osgi(com.ifedorenko.m2e.sourcelookup)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.debug.ui)
BuildRequires:  osgi(org.eclipse.jdt.core)
BuildRequires:  osgi(org.eclipse.jdt.debug.ui)
BuildRequires:  osgi(org.eclipse.jdt.junit)
BuildRequires:  osgi(org.eclipse.jdt.launching)
BuildRequires:  osgi(org.eclipse.jface)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.launching)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)
BuildRequires:  osgi(org.eclipse.pde.core)
BuildRequires:  osgi(org.eclipse.swt)
BuildRequires:  osgi(org.eclipse.ui.workbench)
BuildRequires:  osgi(org.sonatype.tycho.m2e)
BuildRequires:  osgi(org.eclipse.equinox.p2.ui.discovery)

Enhances:       eclipse-m2e-core

%description
Maven Development Tools is a collection of m2e extensions that enables
end-to-end debugging of Maven Plugins, Maven Core and their
dependencies from m2e development workspace, without the need to
install artifacts to the local Maven repository.

%prep
%setup -q -n com.ifedorenko.m2e.mavendev-%{version}

%patch0 -p1

find -name *.jar -delete
cp -p %{SOURCE1} epl-v10.html

%pom_remove_plugin :tycho-packaging-plugin

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc README.md epl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12546 |21mr|eclipse-m2e-modello-0.16.0-0.13.git5d1062a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 5d1062a4b599e213489ee0c76f1c6753d51ae76b
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-modello
Version:        0.16.0
Release:        0.13.git%{shortcommit}
Summary:        M2E Modello connector
License:        EPL
URL:            https://github.com/tesla/m2eclipse-modello/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-modello/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)
BuildRequires:  osgi(slf4j.api)

Enhances:       eclipse-m2e-core

%description
This package provides Modello connector for Eclipse M2E.

%prep
%setup -q -n m2eclipse-modello-%{commit}
find -name *.jar -delete

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module org.sonatype.m2e.modello.tests

# SLF4J in Fedora uses a different BSN
sed -i s/org.slf4j.api/slf4j.api/ $(find -name *.MF)

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.modello.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12547 |21mr|eclipse-m2e-plexus-0.15.0-0.13.git8baf151
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 8baf151182add310afcc377cda35939dfe0529e5
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-plexus
Version:        0.15.0
Release:        0.13.git%{shortcommit}
Summary:        M2E Plexus connector
License:        EPL
URL:            https://github.com/tesla/m2eclipse-plexus/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-plexus/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(com.ibm.icu)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.jdt.core)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)
BuildRequires:  osgi(slf4j.api)

Enhances:       eclipse-m2e-core

%description
This package provides Plexus connector for Eclipse M2E.

%prep
%setup -q -n m2eclipse-plexus-%{commit}
find -name *.jar -delete

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module org.sonatype.m2e.plexus.annotations.tests

# SLF4J in Fedora uses a different BSN
sed -i s/org.slf4j.api/slf4j.api/ $(find -name *.MF)

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.plexus.annotations.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12548 |21mr|eclipse-m2e-sisu-0.15.0-0.13.git81d3bc5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 81d3bc5f9daf32e3cc6829e7c6b6964cd560b7bc
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-sisu
Version:        0.15.0
Release:        0.13.git%{shortcommit}
Summary:        M2E Sisu connector
License:        EPL
URL:            https://github.com/tesla/m2eclipse-sisu/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-sisu/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

# Add support for Eclipse Sisu
# From https://github.com/tesla/m2eclipse-sisu/pull/1
Patch0:         0001-Add-lifecycle-mapping-for-Eclipse-Sisu.patch

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.equinox.common)
BuildRequires:  osgi(org.eclipse.equinox.registry)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)

Enhances:       eclipse-m2e-core

%description
This package provides Sisu connector for Eclipse M2E.

%prep
%setup -q -n m2eclipse-sisu-%{commit}
%patch0 -p1
find -name *.jar -delete

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc org.sonatype.m2e.sisu.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12549 |21mr|eclipse-m2e-sourcelookup-1.1.0.201506181114-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           eclipse-m2e-sourcelookup
Version:        1.1.0.201506181114
Release:        8
Summary:        M2E Sources Lookup
License:        EPL
Group:          Development/Java
URL:            https://github.com/ifedorenko/com.ifedorenko.m2e.sourcelookup
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/ifedorenko/com.ifedorenko.m2e.sourcelookup/archive/%{version}.tar.gz
Source1:        http://www.eclipse.org/legal/epl-v10.html

BuildRequires:  maven-local
BuildRequires:  mvn(io.takari.tycho:tycho-support:pom:)
# Extra BR for javaagent (not built with %%mvn_build)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)

BuildRequires:  osgi(org.eclipse.core.expressions)
BuildRequires:  osgi(org.eclipse.core.filesystem)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.debug.core)
BuildRequires:  osgi(org.eclipse.debug.ui)
BuildRequires:  osgi(org.eclipse.equinox.common)
BuildRequires:  osgi(org.eclipse.equinox.registry)
BuildRequires:  osgi(org.eclipse.jdt.core)
BuildRequires:  osgi(org.eclipse.jdt.debug)
BuildRequires:  osgi(org.eclipse.jdt.debug.ui)
BuildRequires:  osgi(org.eclipse.jdt.junit)
BuildRequires:  osgi(org.eclipse.jdt.launching)
BuildRequires:  osgi(org.eclipse.jface)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.core.ui)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.launching)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)
BuildRequires:  osgi(org.eclipse.pde.core)
BuildRequires:  osgi(org.eclipse.swt)
BuildRequires:  osgi(org.eclipse.ui)
BuildRequires:  osgi(org.eclipse.ui.ide)
BuildRequires:  osgi(org.eclipse.ui.workbench)
BuildRequires:  osgi(org.sonatype.tycho.m2e)
BuildRequires:  osgi(slf4j.api)
BuildRequires:  osgi(org.eclipse.equinox.p2.ui.discovery)

%description
Allows Eclipse Java debugger lookup sources of Java classes
dynamically loaded by Maven, such as Maven plugins.  Supports multiple
versions of the same class loaded by the Maven VM.  Sources are looked
up among Eclipse workspace projects or resolved from Maven
repositories as necessary.

%prep
%setup -q -n com.ifedorenko.m2e.sourcelookup-%{version}
find -name *.jar -delete
cp -p %{SOURCE1} .

%pom_remove_plugin :tycho-packaging-plugin

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module com.ifedorenko.m2e.binaryproject.tests

# SLF4J in Fedora uses a different BSN
sed -i s/org.slf4j.api/slf4j.api/ $(find -name *.MF)

# Don't attempt to create shaded sources jar
%pom_xpath_remove pom:createSourcesJar com.ifedorenko.m2e.sourcelookup.javaagent/pom.xml

%build
# Building m2e-sourcelookup is a two step process.
xmvn -B -o -f com.ifedorenko.m2e.sourcelookup.javaagent/pom.xml package
cp com.ifedorenko.m2e.sourcelookup.javaagent/target/com.ifedorenko.m2e.sourcelookup.javaagent-*-SNAPSHOT.jar \
    com.ifedorenko.m2e.sourcelookup/com.ifedorenko.m2e.sourcelookup.javaagent.jar
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc README.md epl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12550 |21mr|eclipse-m2e-takari-0.1.0-0.10.gite7603b0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit e7603b0af5f969769e6f1cb917f26f6d67b8f164
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-takari
Version:        0.1.0
Release:        0.10.git%{shortcommit}
Summary:        M2E Takari connector
License:        EPL
URL:            https://github.com/takari/io.takari.m2e.lifecycle
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/takari/io.takari.m2e.lifecycle/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.takari.builder:takari-builder-security-manager)
BuildRequires:  mvn(io.takari:incrementalbuild-workspace)
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)
BuildRequires:  mvn(io.takari.tycho:tycho-support:pom:)
BuildRequires:  osgi(io.takari.incrementalbuild.workspace)
BuildRequires:  osgi(org.eclipse.core.filesystem)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)
BuildRequires:  osgi(org.eclipse.osgi)
BuildRequires:  osgi(slf4j.api)

Enhances:       eclipse-m2e-core

%description
This package provides Takari connector for Eclipse M2E.

%prep
%setup -q -n io.takari.m2e.lifecycle-%{commit}
find -name \*.jar -type f -delete

# Disable user tracking (oficially known as "usage statistics collection")
sed -i /io.takari.stats/d io.takari.m2e.lifecycle.feature/feature.xml

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module io.takari.m2e.lifecycle.test

# SLF4J in Fedora uses a different BSN
sed -i s/org.slf4j.api/slf4j.api/ $(find -name *.MF)

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%license io.takari.m2e.lifecycle.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12551 |21mr|eclipse-m2e-tycho-0.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 03229cacd4c504ffdcef817e180c0ce8724a64c7
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Epoch:          1
Name:           eclipse-m2e-tycho
Version:        0.8.1
Release:        5
Summary:        M2E Tycho connector
License:        EPL-1.0
URL:            https://github.com/tesla/m2eclipse-tycho/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/tesla/m2eclipse-tycho/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
BuildRequires:  osgi(org.eclipse.core.resources)
BuildRequires:  osgi(org.eclipse.core.runtime)
BuildRequires:  osgi(org.eclipse.debug.core)
BuildRequires:  osgi(org.eclipse.jdt.core)
BuildRequires:  osgi(org.eclipse.jdt.launching)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)
BuildRequires:  osgi(org.eclipse.pde.core)

Enhances:       eclipse-m2e-core

%description
This package provides Tycho connector for Eclipse M2E.

%prep
%setup -q -n m2eclipse-tycho-%{commit}
find -name *.jar -delete

# Tests are skipped because of missing dependencies:
# osgi(org.eclipse.m2e.tests.common)
%pom_disable_module org.sonatype.tycho.m2e.tests

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%license org.sonatype.tycho.m2e.feature/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12552 |21mr|eclipse-m2e-workspace-0.4.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name m2e-workspace

Name:           eclipse-m2e-workspace
Version:        0.4.0
Release:        10
Summary:        M2E CLI workspace resolver
License:        EPL-1.0
URL:            https://www.eclipse.org/m2e/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://git.eclipse.org/c/m2e/org.eclipse.m2e.workspace.git/snapshot/%{short_name}-%{version}.tar.bz2
Source1:        http://www.eclipse.org/legal/epl-v10.html

Patch0:         takari.patch

BuildRequires:  maven-local
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.eclipse.aether:aether-api)

%description
Workspace dependency resolver implementation for Maven command line
build.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.


%prep
%setup -q -n %{short_name}-%{version}

%patch0 -p1

cp -a %{SOURCE1} .
pushd org.eclipse.m2e.workspace.cli
# Remove support for Maven 3.0.x (requires Sonatype Aether, which is
# not available in Fedora)
%pom_remove_dep org.sonatype.aether
rm src/main/java/org/eclipse/m2e/workspace/internal/Maven30WorkspaceReader.java
popd

%build
pushd org.eclipse.m2e.workspace.cli
%mvn_build
popd

%install
pushd org.eclipse.m2e.workspace.cli
%mvn_install
popd

%files -f org.eclipse.m2e.workspace.cli/.mfiles
%license epl-v10.html

%files javadoc -f org.eclipse.m2e.workspace.cli/.mfiles-javadoc
%license epl-v10.html



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12553 |21mr|eclipse-m2e-wtp-1.4.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 3ac337e64a56c6bfd4a3c53af77eda0b040f899d
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           eclipse-m2e-wtp
Version:        1.4.1
Release:        3
Summary:        Maven Integration for WTP
License:        EPL-1.0 and ASL 2.0
URL:            https://www.eclipse.org/m2e-wtp/

Source0:        https://git.eclipse.org/c/m2e-wtp/org.eclipse.m2e.wtp.git/snapshot/org.eclipse.m2e.wtp-%{commit}.tar.xz

Patch0:         war-plugin.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-war-plugin) >= 3.2.2
BuildRequires:  mvn(org.eclipse.tycho.extras:tycho-source-feature-plugin)
BuildRequires:  mvn(org.eclipse.tycho:target-platform-configuration)
BuildRequires:  mvn(org.eclipse.tycho:tycho-compiler-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-packaging-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-source-plugin)
BuildRequires:  osgi(org.apache.commons.lang3)
BuildRequires:  osgi(org.eclipse.jdt.core)
BuildRequires:  osgi(org.eclipse.jdt.launching)
BuildRequires:  osgi(org.eclipse.jem.util)
BuildRequires:  osgi(org.eclipse.jem.workbench)
BuildRequires:  osgi(org.eclipse.jpt.common.core)
BuildRequires:  osgi(org.eclipse.jpt.jpa.core)
BuildRequires:  osgi(org.eclipse.jst.common.frameworks)
BuildRequires:  osgi(org.eclipse.jst.common.project.facet.core)
BuildRequires:  osgi(org.eclipse.jst.j2ee)
BuildRequires:  osgi(org.eclipse.jst.j2ee.core)
BuildRequires:  osgi(org.eclipse.jst.j2ee.ejb)
BuildRequires:  osgi(org.eclipse.jst.j2ee.jca)
BuildRequires:  osgi(org.eclipse.jst.j2ee.web)
BuildRequires:  osgi(org.eclipse.jst.jee)
BuildRequires:  osgi(org.eclipse.jst.jee.ejb)
BuildRequires:  osgi(org.eclipse.jst.jee.web)
BuildRequires:  osgi(org.eclipse.jst.jsf.core)
BuildRequires:  osgi(org.eclipse.jst.ws.jaxrs.core)
BuildRequires:  osgi(org.eclipse.license)
BuildRequires:  osgi(org.eclipse.m2e.core)
BuildRequires:  osgi(org.eclipse.m2e.jdt)
BuildRequires:  osgi(org.eclipse.m2e.maven.runtime)
BuildRequires:  osgi(org.eclipse.wst.common.core)
BuildRequires:  osgi(org.eclipse.wst.common.emf)
BuildRequires:  osgi(org.eclipse.wst.common.emfworkbench.integration)
BuildRequires:  osgi(org.eclipse.wst.common.frameworks)
BuildRequires:  osgi(org.eclipse.wst.common.modulecore)
BuildRequires:  osgi(org.eclipse.wst.common.modulecore.ui)
BuildRequires:  osgi(org.eclipse.wst.common.project.facet.core)
BuildRequires:  osgi(org.eclipse.wst.server.core)
BuildRequires:  osgi(org.eclipse.wst.validation)
BuildRequires:  osgi(org.sonatype.m2e.mavenarchiver)
BuildRequires:  osgi(slf4j.api)

Enhances:       eclipse-m2e-core

Requires:       mvn(org.apache.maven.plugins:maven-war-plugin) >= 3.2.2

%description
The Maven Integration for WTP project, also known as m2e-wtp, aims at
providing a tight integration between Maven Integration for Eclipse
(a.k.a m2e) and the Eclipse Web Tools Project (WTP). m2e-wtp provides
a set of m2e connectors used for the configuration of Java EE projects
in WTP, brings unique Maven features to your Eclipse IDE and helps you
convert your Eclipse projects to Maven.

%prep
%setup -q -n org.eclipse.m2e.wtp-%{commit}
%patch0
find -name *.jar -delete

# Avoid relying on forge parent pom
%pom_remove_parent

# Avoid using tycho-sourceref-jgit due to source tarball not being a git repo
%pom_remove_plugin :tycho-packaging-plugin

# Don't need to build update sites for RPM builds
%pom_disable_module org.eclipse.m2e.wtp.site

# Link to system version of war plugin
ln -s $(build-classpath maven-war-plugin) org.eclipse.m2e.wtp/jars
ln -s $(build-classpath maven-mapping) org.eclipse.m2e.wtp/jars

# Make dir-shaped bundle for symlinks to system deps
echo "Eclipse-BundleShape: dir" >> org.eclipse.m2e.wtp/META-INF/MANIFEST.MF

# Don't package parent pom
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j

%install
%mvn_install

pushd %{buildroot}/%{_datadir}/eclipse/droplets/m2e-wtp/plugins/org.eclipse.m2e.wtp_*/jars
rm *.jar
ln -s $(build-classpath maven-war-plugin) .
ln -s $(build-classpath maven-mapping) .
popd

%files -f .mfiles
%doc README.md
%license org.eclipse.m2e.wtp/about.html
%license org.eclipse.m2e.wtp/about_files/LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12554 |21mr|eclipse-moreunit-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           eclipse-moreunit
Version:        3.2.1
Release:        1
Summary:        An Eclipse plugin that assists with writing more unit tests

License:        EPL-1.0
URL:            https://moreunit.github.io/MoreUnit-Eclipse/
Source0:        https://github.com/MoreUnit/MoreUnit-Eclipse/archive/v%{version}.tar.gz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: eclipse-pde
BuildRequires: tycho
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)

%description
MoreUnit is an Eclipse plugin that should assist with writing more unit tests.
It can decorate classes which have testcase(s) and mark methods in the editor
which are under test.  Renaming/moving classes/methods will cause moreUnit to
rename/move the corresponding test code.  Generation of test method stubs is
also possible.

%prep
%setup -q -n MoreUnit-Eclipse-%{version}

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;
pushd org.moreunit.build
%pom_disable_module ../org.moreunit.test.dependencies
%pom_disable_module ../org.moreunit.core.test
%pom_disable_module ../org.moreunit.test
%pom_disable_module ../org.moreunit.mock.test
%pom_disable_module ../org.moreunit.swtbot.test
%pom_disable_module ../org.moreunit.mock.it
%pom_disable_module ../org.moreunit.updatesite
%pom_remove_plugin org.eclipse.tycho:target-platform-configuration
popd
%mvn_package "::jar:sources:"


%build
%mvn_build -j -f -- -f org.moreunit.build/pom.xml

%install
%mvn_install

%files -f .mfiles
%doc README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12555 |21mr|eclipse-mpc-1.7.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global mpc_repo_tag 95646f7bd1afd09a1d8de0b7eacc36a2ef1d02cd
%global uss_repo_tag 6c7f71a293abdba6490465e57692dd0078956a84

Name:           eclipse-mpc
Version:        1.7.5
Release:        2
Summary:        Eclipse Marketplace Client

License:        EPL-2.0
URL:            http://www.eclipse.org/mpc/
Source0:        http://git.eclipse.org/c/mpc/org.eclipse.epp.mpc.git/snapshot/org.eclipse.epp.mpc-%{mpc_repo_tag}.tar.xz

# This could be broken out into a separate srpm if something else requires it in the future
Source1:        http://git.eclipse.org/c/usssdk/org.eclipse.usssdk.git/snapshot/org.eclipse.usssdk-%{uss_repo_tag}.tar.xz

# See https://bugs.eclipse.org/bugs/show_bug.cgi?id=545440
Patch0: 0001-Fix-widget-is-disposed-error-on-platform-start-up.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: eclipse-pde
BuildRequires: eclipse-p2-discovery
BuildRequires: tycho
BuildRequires: tycho-extras
BuildRequires: maven-plugin-build-helper
BuildRequires: maven-enforcer-plugin
BuildRequires: eclipse-license2
BuildRequires: httpcomponents-client
Requires: eclipse-platform
Requires: eclipse-p2-discovery

%description
The Eclipse Marketplace Client provides access to extension catalogs.

%prep
%setup -q -n org.eclipse.epp.mpc-%{mpc_repo_tag}
%patch0 -p1

# Add USS plug-ins to the build
tar --strip-components=1 -xf %{SOURCE1} org.eclipse.usssdk-%{uss_repo_tag}/org.eclipse.userstorage{,.ui,.oauth,-feature,.license-feature}
%pom_xpath_inject "pom:modules" "<module>org.eclipse.userstorage</module><module>org.eclipse.userstorage.ui</module><module>org.eclipse.userstorage.oauth</module><module>org.eclipse.userstorage-feature</module><module>org.eclipse.userstorage.license-feature</module>"
for b in org.eclipse.userstorage{,.ui,.oauth,-feature,.license-feature} ; do
%pom_set_parent "org.eclipse.epp.mpc:org.eclipse.epp.mpc-bundle:%{version}-SNAPSHOT" $b
%pom_xpath_inject "pom:parent" "<relativePath>../org.eclipse.epp.mpc-parent/bundle</relativePath>" $b
done

# Fix errors to do with tycho 1.0.0's new default behaviour
%pom_xpath_inject "pom:plugin[pom:artifactId = 'tycho-compiler-plugin']/pom:configuration" \
  "<useProjectSettings>false</useProjectSettings>" org.eclipse.epp.mpc-parent

# PMD and findbugs is unnecessary to the build
%pom_remove_plugin org.apache.maven.plugins:maven-pmd-plugin org.eclipse.epp.mpc-parent
%pom_remove_plugin org.apache.maven.plugins:maven-pmd-plugin org.eclipse.epp.mpc-parent/bundle
%pom_remove_plugin :spotbugs-maven-plugin org.eclipse.epp.mpc-parent
%pom_remove_plugin :spotbugs-maven-plugin org.eclipse.epp.mpc-parent/bundle

# Remove bundles that are not applicable to Linux
%pom_disable_module org.eclipse.epp.mpc.core.win32
%pom_xpath_remove "feature/plugin[@id='org.eclipse.epp.mpc.core.win32']" org.eclipse.epp.mpc.feature/feature.xml

# Don't need to build update sites or target platforms for RPM builds
%pom_disable_module org.eclipse.epp.mpc.site
%pom_disable_module org.eclipse.epp.mpc-target
%pom_remove_plugin org.eclipse.tycho:target-platform-configuration org.eclipse.epp.mpc-parent/pom.xml

%pom_xpath_remove "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='tycho-packaging-plugin']" org.eclipse.epp.mpc-parent/pom.xml
%pom_disable_module org.eclipse.epp.mpc.tests
%pom_disable_module org.eclipse.epp.mpc.tests.catalog
%pom_disable_module org.eclipse.epp.mpc.dependencies.feature

# Non-strict compiler checking
sed -i -e '/strictCompilerTarget/d' org.eclipse.epp.mpc-parent/pom.xml

%mvn_package "::pom::" __noinstall
%mvn_package ":*.license" __noinstall
%mvn_package "::jar:sources{,-feature}:"

%build
# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M)
%mvn_build -j -f -- -DforceContextQualifier=$QUALIFIER

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12556 |21mr|eclipse-mylyn-3.25.0-0.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tag master
%global incubator_tag e9e79d9d73ec879d0db2b909014e6e1dce7ab806
%global parentpomversion %{version}-SNAPSHOT

# Set this to avoid circular deps when bootstrapping
%bcond_with bootstrap

Name:    eclipse-mylyn
Summary: Eclipse Mylyn main feature
Version: 3.25.0
Release: 0.6
License: EPL-1.0
URL: http://www.eclipse.org/mylyn

# bash fetch-eclipse-mylyn.sh
Source0: eclipse-mylyn-%{tag}-fetched-src.tar.xz
Source1: fetch-eclipse-mylyn.sh
Source6: redhat-bugzilla-custom-transitions.txt
Source7: eclipse-mylyn-%{incubator_tag}-incubator-fetched-src.tar.xz
Source8: fetch-eclipse-mylyn-incubator.sh 

Patch0: %{name}-remove-hudson-discovery.patch
Patch1: %{name}-add-apache-xmlrpc.patch
Patch2: no-wikitext-sources.patch
Patch3: %{name}-merge-incubator.patch
Patch4: %{name}-bug-419133.patch
Patch5: epub-docs.patch
Patch6: explicit-hamcrest-use.patch
Patch7: rome.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  maven-local
# Deps for stage 1 wikitext build
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-install-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.jsoup:jsoup)
# Deps for stage 2 tycho build
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:xml-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:target-platform-configuration)
BuildRequires:  mvn(org.eclipse.tycho:tycho-compiler-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-packaging-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-source-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-surefire-plugin)
# Eclipse deps
BuildRequires: eclipse-ecf-runtime
BuildRequires: eclipse-emf-runtime
BuildRequires: eclipse-license
BuildRequires: eclipse-pde
%if %{without bootstrap}
# Self dependencies
BuildRequires: %{name}-docs-wikitext
BuildRequires: %{name}-docs-epub
# Circular dependencies
BuildRequires: eclipse-cdt
BuildRequires: eclipse-subclipse
BuildRequires: eclipse-egit
BuildRequires: eclipse-jgit
%endif
BuildRequires: apache-commons-lang >= 2.6-6
BuildRequires: apache-commons-logging
BuildRequires: apache-commons-io >= 2.3
BuildRequires: jakarta-commons-httpclient
BuildRequires: ws-commons-util >= 1.0.1-21
BuildRequires: xmlrpc-client >= 3.1.3
BuildRequires: xmlrpc-common >= 3.1.3
BuildRequires: xmlrpc-server >= 3.1.3
BuildRequires: rome >= 1.6
BuildRequires: google-gson
BuildRequires: guava20
BuildRequires: xalan-j2
BuildRequires: junit
BuildRequires: hamcrest
BuildRequires: objenesis
BuildRequires: mockito
BuildRequires: tika >= 1.17
BuildRequires: tika-parsers >= 1.17
BuildRequires: jdom
BuildRequires: jdom2

Requires:      eclipse-platform

%description
Mylyn integrates task support into Eclipse. It supports offline editing
for certain task repositories and monitors work activity to hide
information that is not relevant to the current task.

%package context-java
Summary:  Mylyn Bridge:  Java Development
Requires: eclipse-jdt

%description context-java
Mylyn Task-Focused UI extensions for JDT.  Provides focusing of Java
element views and editors.

%package context-pde
Summary:  Mylyn Bridge:  Plug-in Development
Requires: eclipse-pde

%description context-pde
Mylyn Task-Focused UI extensions for PDE, Ant, Team Support and CVS.

%if %{without bootstrap}
%package context-cdt
Summary:  Mylyn Bridge:  C/C++ Development
Requires: eclipse-cdt

%description context-cdt
Mylyn Task-Focused UI extensions for CDT.  Provides focusing of C/C++
element views and editors.
%endif

%package tasks-bugzilla
Summary: Mylyn Tasks Connector: Bugzilla

%description tasks-bugzilla
Provides Task List integration, offline support and rich editing for the
open source Bugzilla bug tracker.

%package docs-wikitext
Summary: Mylyn WikiText
License: EPL-2.0

%description docs-wikitext
Enables parsing and display of lightweight markup (wiki text) and HTML text.

%package docs-epub
Summary: Mylyn EPub
License: EPL-2.0

%description docs-epub
The EPUB framework in Mylyn Docs offers API to create, manipulate,
read and write EPUB formatted files. 

%package  tasks-trac
Summary: Mylyn Tasks Connector: Trac

%description tasks-trac
Provides Task List integration, offline support and rich editing
for the open source Trac issue tracker.

%package  tasks-web
Summary: Mylyn Tasks Connector: Web Templates (Advanced) (Incubation)

%description tasks-web
Provides Task List integration for web-based issue trackers
and templates for example projects.

%package versions
Summary: Eclipse Mylyn Versions

%description versions
Provides a framework for accessing team providers for Eclipse Mylyn.

%package versions-git
Summary: Mylyn Versions Connector: Git

%description versions-git
Provides Git integration for Eclipse Mylyn.

%package versions-cvs
Summary: Mylyn Versions Connector: CVS

%description versions-cvs
Provides CVS integration for Eclipse Mylyn.

%if %{without bootstrap}
%package versions-subclipse
Summary: Mylyn Versions Connector: SVN

%description versions-subclipse
Provides SVN integration for Eclipse Mylyn.
%endif

%package builds
Summary: Eclipse Mylyn Builds

%description builds
Provides a common framework to interact with continuous integration
build providers using Eclipse Mylyn.

%package builds-hudson
Summary: Mylyn Builds Connector: Hudson/Jenkins
Requires: eclipse-ecf-runtime

%description builds-hudson
Support for the open source Hudson and Jenkins continuous integration servers.

%package sdk
Summary: Mylyn SDK
Requires: %{name} = %{version}-%{release}
Requires: %{name}-builds = %{version}-%{release}
Requires: %{name}-builds-hudson = %{version}-%{release}
Requires: %{name}-context-java = %{version}-%{release}
Requires: %{name}-context-pde = %{version}-%{release}
Requires: %{name}-docs-epub = %{version}-%{release}
Requires: %{name}-docs-wikitext = %{version}-%{release}
Requires: %{name}-tasks-bugzilla = %{version}-%{release}
Requires: %{name}-tasks-trac = %{version}-%{release}
Requires: %{name}-tasks-web = %{version}-%{release}
Requires: %{name}-versions = %{version}-%{release}
Requires: %{name}-versions-cvs = %{version}-%{release}
%if %{without bootstrap}
Requires: %{name}-context-cdt = %{version}-%{release}
Requires: %{name}-versions-git = %{version}-%{release}
Requires: %{name}-versions-subclipse = %{version}-%{release}
%endif

%description sdk
Sources for all Mylyn bundles.

%package tests
Summary: Mylyn test bundles
Requires: eclipse-tests
Requires: eclipse-swtbot

%description tests
All the test bundles for mylyn packages.

%prep
%setup -q -n eclipse-mylyn-%{tag}-fetched-src
tar xaf %{SOURCE7} -C org.eclipse.mylyn.tasks --strip-components=1

%patch0
%patch1
%patch2
%patch3 -b .sav
%patch4
%patch5
%patch6
pushd org.eclipse.mylyn.tasks
%patch7 -p1
popd

# Relax version constraint on jsoup
find -name MANIFEST.MF -exec grep -l -e 'org\.jsoup' {} \; | xargs sed -i -e '/org\.jsoup/s/1.8.3/1.6.1/'

#remove tests that fail to compile
%pom_disable_module org.eclipse.mylyn.wikitext.osgi.tests org.eclipse.mylyn.docs/wikitext/ui
%pom_disable_module org.eclipse.mylyn.wikitext.asciidoc.tests org.eclipse.mylyn.docs/wikitext/ui
%pom_disable_module org.eclipse.mylyn.wikitext.ui.tests org.eclipse.mylyn.docs/wikitext/ui
rm org.eclipse.mylyn.commons/org.eclipse.mylyn.commons.ui.tests/src/org/eclipse/mylyn/commons/ui/ShellDragSupportTest.java
rm org.eclipse.mylyn.builds/org.eclipse.mylyn.hudson.ui/src/org/eclipse/mylyn/internal/hudson/ui/HudsonDiscovery.java
rm org.eclipse.mylyn.builds/org.eclipse.mylyn.hudson.ui/src/org/eclipse/mylyn/internal/hudson/ui/HudsonUiPlugin.java
rm org.eclipse.mylyn.builds/org.eclipse.mylyn.hudson.ui/src/org/eclipse/mylyn/internal/hudson/ui/HudsonStartup.java

# Add docs build back in
%pom_xpath_inject "pom:modules" "<module>org.eclipse.mylyn.docs/docs</module>"
%pom_xpath_set "pom:parent/pom:relativePath" ../../org.eclipse.mylyn/org.eclipse.mylyn-parent org.eclipse.mylyn.docs/docs
%if %{without bootstrap}
#%pom_xpath_inject "pom:modules" "<module>org.eclipse.mylyn.docs/wikitext/ui</module>"
#%pom_xpath_inject "pom:modules" "<module>org.eclipse.mylyn.docs/epub/ui</module>"
%endif

# Correct doc license feature version
sed -i -e 's/license-feature-version=\"2\.0\.0/license-feature-version=\"0.0.0/' $(find org.eclipse.mylyn.docs -name feature.xml)

# Disable plugins we can live without (they are skipped by default anyway)
%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin -r :maven-pmd-plugin
%pom_remove_plugin -r :jacoco-maven-plugin
%pom_remove_plugin -r :maven-deploy-plugin

# Disable target platforms and repos that we don't need for RPM builds
%pom_xpath_remove pom:repositories org.eclipse.mylyn.docs/docs
for site in $(grep -l -r --include="pom.xml" eclipse-update-site .) ; do
  module=$(basename $(dirname $site)); dir=$(dirname $(dirname $site))
  %pom_disable_module $module $dir
done
%pom_disable_module repository org.eclipse.mylyn.docs/{epub/core,wikitext/core}
%pom_disable_module targets org.eclipse.mylyn.docs/{docs,epub/ui,wikitext/ui}
%pom_xpath_remove "pom:configuration/pom:target" org.eclipse.mylyn.docs/docs
%pom_xpath_remove "pom:configuration/pom:target" org.eclipse.mylyn.docs/wikitext/ui
%pom_xpath_remove "pom:configuration/pom:target" org.eclipse.mylyn.docs/epub/ui
%pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin org.eclipse.mylyn.docs/wikitext/ui
%pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin org.eclipse.mylyn.docs/epub/ui

# Don't build development features
%pom_disable_module org.eclipse.mylyn.builds.development-feature org.eclipse.mylyn.builds
%pom_disable_module org.eclipse.mylyn.commons.development-feature org.eclipse.mylyn.commons
%pom_disable_module org.eclipse.mylyn.context.development-feature org.eclipse.mylyn.context
%pom_disable_module org.eclipse.mylyn.docs.development-feature org.eclipse.mylyn.docs/docs
%pom_disable_module org.eclipse.mylyn.reviews.development.feature org.eclipse.mylyn.reviews
%pom_disable_module org.eclipse.mylyn.versions.development-feature org.eclipse.mylyn.versions

# Disable modules we can't build yet
%pom_disable_module org.eclipse.mylyn.reviews
sed -i -e '/\(gerrit\|reviews\)/d' org.eclipse.mylyn/org.eclipse.mylyn.tests/META-INF/MANIFEST.MF
sed -i -e '/All\(Gerrit\|Reviews\)Tests;/d' -e 's/AllGerritTests.class,//' -e '/addTest(All\(Gerrit\|Reviews\)Tests/d' \
  org.eclipse.mylyn/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/All*Tests.java

%pom_xpath_remove "plugin[contains(@id, '.source')]" \
  org.eclipse.mylyn.builds/org.eclipse.mylyn.builds.sdk-feature/feature.xml \
  org.eclipse.mylyn.commons/org.eclipse.mylyn.commons.sdk-feature/feature.xml \
  org.eclipse.mylyn.context/org.eclipse.mylyn.context.sdk-feature/feature.xml \
  org.eclipse.mylyn.tasks/org.eclipse.mylyn.sdk-feature/feature.xml \
  org.eclipse.mylyn.tasks/org.eclipse.mylyn.test-feature/feature.xml \
  org.eclipse.mylyn.versions/org.eclipse.mylyn.versions.sdk-feature/feature.xml

# Conditionally build git, subclipse and cdt support when bootstrapping
%if %{with bootstrap}
%pom_disable_module org.eclipse.mylyn.git-feature org.eclipse.mylyn.versions
%pom_disable_module org.eclipse.mylyn.git.core org.eclipse.mylyn.versions
%pom_disable_module org.eclipse.mylyn.git.ui org.eclipse.mylyn.versions
%pom_xpath_remove "includes[@id='org.eclipse.mylyn.git']" \
  org.eclipse.mylyn.versions/org.eclipse.mylyn.versions.sdk-feature/feature.xml
%pom_disable_module org.eclipse.mylyn.subclipse-feature org.eclipse.mylyn.versions
%pom_disable_module org.eclipse.mylyn.subclipse.core org.eclipse.mylyn.versions
%pom_disable_module org.eclipse.mylyn.subclipse.ui org.eclipse.mylyn.versions
%pom_disable_module org.eclipse.mylyn.cdt-feature org.eclipse.mylyn.context
%pom_disable_module org.eclipse.mylyn.cdt.tests org.eclipse.mylyn.context
%pom_disable_module org.eclipse.mylyn.cdt.ui org.eclipse.mylyn.context
sed -i -e '/cdt.tests/d' org.eclipse.mylyn/org.eclipse.mylyn.tests/META-INF/MANIFEST.MF
sed -i -e '/AllCdtTests/d' org.eclipse.mylyn/org.eclipse.mylyn.tests/src/org/eclipse/mylyn/tests/AllNonConnectorTests.java
%pom_xpath_remove "includes[@id='org.eclipse.cdt.mylyn']" \
  org.eclipse.mylyn.context/org.eclipse.mylyn.context.sdk-feature/feature.xml
%pom_xpath_remove "plugin[@id='org.eclipse.cdt.mylyn.ui.source']" \
  org.eclipse.mylyn.context/org.eclipse.mylyn.context.sdk-feature/feature.xml
%pom_remove_dep :org.eclipse.mylyn.wikitext org.eclipse.mylyn.docs/epub/core/org.eclipse.mylyn.docs.epub.core
rm org.eclipse.mylyn.docs/epub/core/org.eclipse.mylyn.docs.epub.core/src/org/eclipse/mylyn/docs/epub/core/wikitext/MarkupToOPS.java
%endif

# Don't build artifacts that we don't ship
%pom_disable_module org.eclipse.mylyn.commons.tck-feature org.eclipse.mylyn.commons

# These are not intended to be shipped by upstream, see ebz#467669 and ebz#260666
%pom_disable_module org.eclipse.mylyn.commons.identity.ui org.eclipse.mylyn.commons
%pom_disable_module org.eclipse.mylyn.help.sdk org.eclipse.mylyn.tasks

# Don't build wikitext integration tests
%pom_disable_module org.eclipse.mylyn.wikitext.tests org.eclipse.mylyn.docs/wikitext/core

# Correct bundle names
sed -i -e "s/org.hamcrest;/org.hamcrest.core;/g" `find . -name MANIFEST.MF`
%if 0%{?fedora} && 0%{?fedora} < 30
sed -i -e "s/org.mockito;/org.mockito.mockito-core;/g"  `find . -name MANIFEST.MF`
%else
# Fix or disable some tests not ported to mockito 2
sed -i -e "/org.mockito/s/;bundle-version=\".*\"//"  `find . -name MANIFEST.MF`
sed -i -e "/^import/s/Matchers\.argThat/hamcrest.MockitoHamcrest.argThat/" \
  org.eclipse.mylyn.tasks/org.eclipse.mylyn.tasks.ui.tests/src/org/eclipse/mylyn/internal/tasks/ui/migrator/ConnectorMigratorTest.java
rm org.eclipse.mylyn.context/org.eclipse.mylyn.context.tasks.ui.tests/src/org/eclipse/mylyn/internal/context/tasks/ui/ContextTaskActivationListenerTest.java
sed -i -e '/ContextTaskActivationListenerTest/d' org.eclipse.mylyn.context/org.eclipse.mylyn.context.tasks.ui.tests/src/org/eclipse/mylyn/context/tasks/ui/tests/AllContextTasksUiTests.java
%endif

# Use default buildtimestamp source
%pom_remove_dep :tycho-buildtimestamp-jgit org.eclipse.mylyn/org.eclipse.mylyn-parent
%pom_remove_dep :tycho-sourceref-jgit org.eclipse.mylyn/org.eclipse.mylyn-parent
sed -i -e "/<sourceReferences>/,+3d" org.eclipse.mylyn/org.eclipse.mylyn-parent/pom.xml

# Add descriptors to allow tests to run
sed -i -e "s@<addMavenDescriptor>false<@<addMavenDescriptor>true<@" org.eclipse.mylyn/org.eclipse.mylyn-parent/pom.xml

# Integrate incubator bundles
tasks_parent_gav="org.eclipse.mylyn.tasks:org.eclipse.mylyn.tasks-parent:%{version}-SNAPSHOT"
%pom_set_parent $tasks_parent_gav org.eclipse.mylyn.tasks/org.eclipse.mylyn.trac.wiki/pom.xml
%pom_set_parent $tasks_parent_gav org.eclipse.mylyn.tasks/org.eclipse.mylyn.trac.wiki-feature/pom.xml
%pom_set_parent $tasks_parent_gav org.eclipse.mylyn.tasks/org.eclipse.mylyn.web.tasks/pom.xml
%pom_set_parent $tasks_parent_gav org.eclipse.mylyn.tasks/org.eclipse.mylyn.web.tasks-feature/pom.xml

# Fix parent pom versions
%pom_xpath_set pom:parent/pom:version "%{parentpomversion}" org.eclipse.mylyn.docs/docs/pom.xml

# Be more tolerant for objenesis, gson and guava
sed -i -e "/org.objenesis;bundle-version/s/1.0.0,2.0.0/1.0.0,3.0.0/g" $(find -name MANIFEST.MF)
sed -i -e "/com.google.guava;bundle-version/s/21.0.0,22.0.0/18.0.0,22.0.0/g" $(find -name MANIFEST.MF)
sed -i -e "/com.google.gson.*version/s/2.7.0,2.[89].0/2.2.0,2.9.0/g" $(find -name MANIFEST.MF)
sed -i -e "s/21\.0/18.0/" $(find org.eclipse.mylyn.docs -name pom.xml)
sed -i -e "/org.apache.lucene.*version/s/6.0.0,6.3.0/7.7.0,8.0.0/g" org.eclipse.mylyn.tasks/org.eclipse.mylyn.tasks.index.core/META-INF/MANIFEST.MF

# Deal with split package
sed -i -e '/Require-/a\ org.eclipse.jdt.core,' org.eclipse.mylyn.context/org.eclipse.mylyn.context.ui/META-INF/MANIFEST.MF

# Compilation errors with JDT annotations
for mod in $(grep -l 'org.eclipse.jdt.annotation' $(find -name build.properties) ) ; do
  mod_man=$(dirname $mod)/META-INF/MANIFEST.MF
  sed -i -e '/^Require-Bundle:/a\ org.eclipse.jdt.annotation;bundle-version="[1.0.0,3.0.0)";resolution:=optional,' $mod_man
done

%mvn_package "::{target,pom}::" __noinstall
%mvn_package ":*.test{s,_feature}" tests
%mvn_package "::jar:sources:" sdk
%mvn_package ":*.sdk{,_feature}" sdk
%mvn_package ":org.eclipse.mylyn.tests.util" sdk
%mvn_package ":org.eclipse.mylyn.{context,commons}.sdk.util" sdk
%mvn_package ":org.eclipse.mylyn.context.sdk.java" sdk
%mvn_package "org.eclipse.mylyn.builds:*hudson*" builds-hudson
%mvn_package "org.eclipse.mylyn.builds:" builds
%mvn_package "org.eclipse.mylyn.context:*cdt.mylyn*" context-cdt
%mvn_package "org.eclipse.mylyn.context:*mylyn.pde*" context-pde
%mvn_package "org.eclipse.mylyn.context*:*.team.cvs" context-pde
%mvn_package "org.eclipse.mylyn.context:*{java_feature,java.tasks,java.ui,ide.ant,debug.ui}*" context-java
%mvn_package "org.eclipse.mylyn.docs:*epub*" docs-epub
%mvn_package "org.eclipse.mylyn.docs:" docs
%mvn_package "org.eclipse.mylyn.tasks:*bugzilla*" tasks-bugzilla
%mvn_package "org.eclipse.mylyn.tasks:*trac*" tasks-trac
%mvn_package "org.eclipse.mylyn.tasks:*web.tasks*" tasks-web
%mvn_package "org.eclipse.mylyn.versions:*cvs*" versions-cvs
%mvn_package "org.eclipse.mylyn.versions:*git*" versions-git
%mvn_package "org.eclipse.mylyn.versions:*subclipse*" versions-subclipse
%mvn_package "org.eclipse.mylyn.versions:" versions
%mvn_package "org.eclipse.mylyn{,.commons,.context,.context.features,.tasks}:"

%build
# Increase memory to ensure build succeeds on s390x
export MAVEN_OPTS="-Xmx1024m"

# Do a two stage build a la jgit due to a mixed pom-first and manifest-first project

# Build wikitext and epub first, as normal maven projects
# Artifacts installed into a local m2 repo to be used by the tycho build
pushd org.eclipse.mylyn.docs/wikitext/core/
%mvn_package ":" wikitext
%mvn_build -f -j --post install:install -- -Dmaven.repo.local=$(pwd)/../../.m2
popd
pushd org.eclipse.mylyn.docs/epub/core/
%mvn_package ":" epub
%mvn_build -f -j --post install:install -- -Dmaven.repo.local=$(pwd)/../../.m2
popd

# Build everything else as a tycho project
# Specifiying the local m2 repo to use the artifacts built previously
%mvn_build -f -j -- -e -Dfedora.p2.repos=$(pwd)/org.eclipse.mylyn.docs/.m2 -Ddist.qualifier="\'v\'yyyyMMdd-HHmm"

%install
pushd org.eclipse.mylyn.docs/wikitext/core/
%mvn_install
popd

pushd org.eclipse.mylyn.docs/epub/core/
%mvn_install
popd

%mvn_install

install %{SOURCE6} \
  %{buildroot}%{_datadir}/eclipse/droplets/mylyn-tasks-bugzilla/redhat-bugzilla-custom-transitions.txt

%files -f .mfiles

%files context-java -f .mfiles-context-java

%files context-pde -f .mfiles-context-pde

%if %{without bootstrap}
%files context-cdt -f .mfiles-context-cdt
%endif

%files tasks-bugzilla -f .mfiles-tasks-bugzilla
%{_datadir}/eclipse/droplets/mylyn-tasks-bugzilla/redhat-bugzilla-custom-transitions.txt

%files tasks-trac -f .mfiles-tasks-trac

%files tasks-web -f .mfiles-tasks-web

%files docs-wikitext -f .mfiles-docs -f org.eclipse.mylyn.docs/wikitext/core/.mfiles-wikitext

#%if %%{without bootstrap}
#%files docs-epub -f .mfiles-docs-epub -f org.eclipse.mylyn.docs/epub/core/.mfiles-epub
#%else
%files docs-epub -f org.eclipse.mylyn.docs/epub/core/.mfiles-epub
#%endif

%files versions -f .mfiles-versions

%files versions-cvs -f .mfiles-versions-cvs

%if %{without bootstrap}
%files versions-git -f .mfiles-versions-git

%files versions-subclipse -f .mfiles-versions-subclipse
%endif

%files builds -f .mfiles-builds

%files builds-hudson -f .mfiles-builds-hudson

%files sdk -f .mfiles-sdk

%files tests -f .mfiles-tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12557 |21mr|eclipse-nls-4.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Disable repacking of jars and requires/provides analysis since it takes hours for the
# tens of thousands of small jars
%global __jar_repack %{nil}
%global __requires_exclude_from ^.*\\.jar$
%global __provides_exclude_from ^.*\\.jar$

%global platform 2018-12

Name: eclipse-nls
Version: 4.10.0
Release: 1
Summary: Babel language packs for the Eclipse platform and various plug-ins

# License is linked to from https://www.eclipse.org/babel/downloads.php
License: EPL-2.0

URL: http://www.eclipse.org/babel/

# Babel language pack (zipped p2 update site) via: http://www.eclipse.org/babel/downloads.php
Source0: http://download.eclipse.org/technology/babel/update-site/R0.16.1/babel-R0.16.1-%{platform}.zip

# This script extends the mvn_artifact script by allowing us generate reactor information
# for multiple artifacts at a time. There are so many jars (tens of thousands) that doing
# individual calls to mvn_artifact takes a large amount of time, this custom script does it
# in a fraction of the time by eliminating a bunch of process spawns and file ops per jar
Source1: generate.py

# Actually only needed for fp-p2 since there is no real maven build,
# we simply just want to install some maven artifacts
BuildRequires: tycho
BuildRequires: zip
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

%description
Babel language packs include translations for the Eclipse platform and other
Eclipse-related packages.

# %1 subpackage id (ie Linux locale id)
# %2 Java locale id (mostly the same as Linux)
# %3 language name
%define lang_meta_pkg() \
%package %1 \
Summary: Eclipse/Babel language pack for %3 \
Supplements: (eclipse-platform and langpacks-%1) \
\
%description %1 \
This language pack for %3 \
contains user-contributed translations of the \
strings in all Eclipse projects. Please see the http://babel.eclipse.org/ \
Babel project web pages for a full how-to-use explanation of these \
translations as well as how you can contribute to \
the translations of this and future versions of Eclipse. \
Note that English text will be displayed if Babel doesn't \
have a translation for a given string. \
\
%files %1 -f .mfiles-%2

%define spc() %(echo -n ' ')

%lang_meta_pkg ar ar Arabic
%lang_meta_pkg bg bg Bulgarian
%lang_meta_pkg ca ca Catalan
%lang_meta_pkg zh zh Chinese%{spc}(Simplified)
%lang_meta_pkg zh_TW zh_TW Chinese%{spc}(Traditional)
%lang_meta_pkg cs cs Czech
%lang_meta_pkg da da Danish
%lang_meta_pkg nl nl Dutch
%lang_meta_pkg en_AU en_AU English%{spc}(Australian)
%lang_meta_pkg en_CA en_CA English%{spc}(Canadian)
%lang_meta_pkg et et Estonian
%lang_meta_pkg eu eu Basque
%lang_meta_pkg fa fa Farsi
%lang_meta_pkg fi fi Finnish
%lang_meta_pkg fr fr French
%lang_meta_pkg de de German
%lang_meta_pkg el el Greek
# NB 'he' is 'iw' as far as Java is concerned.
# similarly, yi -> ji, id -> in
%lang_meta_pkg he iw Hebrew
%lang_meta_pkg hi hi Hindi
%lang_meta_pkg hu hu Hungarian
%lang_meta_pkg id id Indonesian
%lang_meta_pkg it it Italian
%lang_meta_pkg ja ja Japanese
%lang_meta_pkg ko ko Korean
%lang_meta_pkg ku ku Kurdish
%lang_meta_pkg lt lt Lithuanian
%lang_meta_pkg ml ml Malayalam
%lang_meta_pkg mn mn Mongolian
%lang_meta_pkg no no Norwegian
%lang_meta_pkg pl pl Polish
%lang_meta_pkg pt pt Portuguese
%lang_meta_pkg pt_BR pt_BR Portuguese%{spc}(Brazilian)
%lang_meta_pkg ro ro Romanian
%lang_meta_pkg ru ru Russian
%lang_meta_pkg es es Spanish
%lang_meta_pkg sk sk Slovak
%lang_meta_pkg sl sl Slovene
%lang_meta_pkg sq sq Albanian
%lang_meta_pkg sv sv Swedish
%lang_meta_pkg sr sr Serbian
%lang_meta_pkg th th Thai
%lang_meta_pkg tr tr Turkish
%lang_meta_pkg uk uk Ukrainian

%prep
%setup -q -n %{platform}

cp -p %{SOURCE1} .

# Remove unused p2 metadata
rm -rf mirrors/ artifacts.jar content.jar

# "tl" should be Tagalog but is Klingon, which has < 1% coverage. Tagalog is unsupported.
# Remove unsupported langpacks
for nl in tl en_AA ; do
  rm features/*_${nl}_%{version}.v*.jar
  rm plugins/*.nl_${nl}_%{version}.v*.jar
done

# We don't care for non-linux fragments and example bundles so delete and remove from features
sed_args=""
for frag in org.eclipse.equinox.launcher.{cocoa,win32} \
            org.eclipse.core.filesystem.{macosx,win32} \
            org.eclipse.core.{net,resources}.win32 \
            org.eclipse.ui.{cocoa,win32} \
            org.eclipse.compare.win32 \
            org.eclipse.e4.ui.workbench.renderers.swt.cocoa \
            org.eclipse.jdt.launching{,.ui}.macosx \
            org.eclipse.epp.mpc.core.win32.nl \
            org.eclipse.cdt.core.{win32,macosx} \
            org.eclipse.compare.examples{,.xml}.nl \
            org.eclipse.debug.examples.{core,memory,mixedmode,ui}.nl \
            org.eclipse.jdt.ui.examples.{javafamily,projects}.nl \
            org.eclipse.jface.examples.databinding.nl \
            org.eclipse.equinox.p2.examples.rcp \
            org.eclipse.team.examples.filesystem.nl \
            org.eclipse.ui.examples \
            org.eclipse.ui.{forms,intro.quicklinks}.examples.nl \
            org.eclipse.swt.examples{,.browser.demos,.launcher,.ole.win32,.views,.watchdog}.nl \
            org.eclipse.swt.opengl.examples.nl \
            org.eclipse.emf.examples{,.databinding.project{.core,.core.model,.ui.rcp},.generator.validator,.jet.article2,.library{,.edit,.editor}}.nl \
            org.eclipse.emf.test.examples.nl \
            org.eclipse.bpmn2.modeler.examples.{customtask,datatypes,dynamic,modelreader}.nl \
            org.eclipse.datatools.enablement.sybase.asa.schemaobjecteditor.examples.nl \
            org.eclipse.datatools.sqltools.sqlbuilder.examples.nl \
            org.eclipse.graphiti.examples.{chess,common,composite,filesystem.mm,filesystem,tutorial}.nl \
            org.eclipse.rse{.examples{.daytime,.dstore,-feature,.tutorial},.tests.framework.examples}.nl \
            org.eclipse.tm.rapi.examples.nl
do
  rm plugins/$frag*
  sed_args="$sed_args -e /$frag/d"
done
for feat in features/org.eclipse.babel.nls_eclipse_* ; do
  unzip -p $feat feature.xml | sed $sed_args > feature.xml
  zip -r $feat feature.xml
done

%build
# No actual build step since there is only translation strings,
# and no actual code to compile
# Just generate maven artifacts
for nl in ar bg ca zh zh_TW cs da nl en_AU en_CA et eu fa fi fr de el iw hi hu id it ja ko ku lt ml mn no pl pt pt_BR ro ru es sk sl sq sv sr th tr uk ; do
  python3 ./generate.py -Dtype=eclipse-feature "org.eclipse.nl_$nl::%{version}" $(find features -name *_${nl}_%{version}.v*.jar)
  python3 ./generate.py -Dtype=eclipse-plugin "org.eclipse.nl_$nl::%{version}" $(find plugins -name *.nl_${nl}_%{version}.v*.jar)
  %mvn_package "org.eclipse.nl_$nl:" $nl
done

%install
%mvn_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12558 |21mr|eclipse-packagekit-0.2.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:           eclipse-packagekit
Version:        0.2.0
Release:        11
Summary:        PackageKit integration tools for Eclipse (Incubation)

License:        EPL-1.0
URL:            https://fedorahosted.org/eclipse-packagekit/
Source0:        https://git.fedorahosted.org/cgit/eclipse-packagekit.git/snapshot/eclipse-packagekit-%{version}.tar.bz2

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: dbus-java
BuildRequires: maven-local
BuildRequires: tycho
BuildRequires: eclipse-license
Requires: eclipse-platform >= 3.4.0
Requires: dbus-java

%description
PackageKit integration plugin. It also contains autotools and rpm
plugins integration code.

%prep
%setup -q

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12559 |21mr|eclipse-paho-mqtt-java-1.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname paho.mqtt.java

Name:          eclipse-paho-mqtt-java
Version:       1.0.2
Release:       7
Summary:       MQTT client library written in Java
License:       EPL
URL:           https://eclipse.org/paho/clients/java/
#  NO more available
#Source0:       http://git.eclipse.org/c/paho/%%{oname}.git/snapshot/%%{oname}-%%{version}.tar.xz
Source0:       https://github.com/eclipse/paho.mqtt.java/archive/v%{version}/%{oname}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.eclipse.tycho:target-platform-configuration)
BuildRequires:  mvn(org.eclipse.tycho:tycho-compiler-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-packaging-plugin)
BuildRequires:  mvn(org.eclipse.tycho:tycho-source-plugin)
# OSGi build-requires.  They can be regenerated with the following command:
# sed -n 's/^Require-Bundle: //;T;:l;s/[;=,].*//;/^org.eclipse.paho/bn;s/..*/BuildRequires: osgi(&)/;T;p;:n;n;s/^ //;T;bl' `find -name *.MF` | sort -u
BuildRequires: osgi(org.eclipse.core.databinding)
BuildRequires: osgi(org.eclipse.core.databinding.beans)
BuildRequires: osgi(org.eclipse.core.databinding.observable)
BuildRequires: osgi(org.eclipse.core.databinding.property)
BuildRequires: osgi(org.eclipse.core.runtime)
BuildRequires: osgi(org.eclipse.jface.databinding)
BuildRequires: osgi(org.eclipse.osgi.services)
BuildRequires: osgi(org.eclipse.ui)
Requires:      eclipse-filesystem

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Paho Java Client is an MQTT client library written in Java
for developing applications that run on the JVM or
other Java compatible platforms such as Android.

The Paho Java Client provides two APIs:
* MqttAsyncClient provides a fully asynchronous API
  where completion of activities is notified
  via registered callbacks.
* MqttClient is a synchronous wrapper around MqttAsyncClient
  where functions appear synchronous to the application.

%package tests
Summary:       Paho MQTT Client testing helpers

%description tests
This package contains common code used by tests for Paho MQTT Client.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{version}
# Cleanup
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete
find . -name "*.zip" -print -delete

# These don't currently build
for mod in org.eclipse.paho.android.service \
 org.eclipse.paho.client.mqttv3.repository
do
  %pom_disable_module $mod
  rm -rf $mod
done
# Requires org.eclipse.equinox.executable.feature.group 0.0.0
%pom_disable_module org.eclipse.paho.ui.app org.eclipse.paho.ui
rm -rf org.eclipse.paho.ui/org.eclipse.paho.ui.app

# Replace manually the following values
%pom_remove_plugin -r :templating-maven-plugin
sed -i "s,\${project.version},%{version},;s,\${build.level},$(date +"%FT%TZ")," \
 org.eclipse.paho.client.mqttv3/src/main/java-templates/org/eclipse/paho/client/mqttv3/internal/ClientComms.java

# Test bundle goes to its own subpackage.
%mvn_package ":org.eclipse.paho.client.mqttv3.test" tests
%mvn_package ":org.eclipse.paho.client.mqttv3.test::tests:" tests

%build

# Building Paho MQTT Client.
# See upstream documentation: https://eclipse.org/paho/clients/java/
# Tests require web connection
%mvn_build -- -DskipTests

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license about.html edl-v10 epl-v10 notice.html

%files tests -f .mfiles-tests

%files javadoc -f .mfiles-javadoc
%license about.html edl-v10 epl-v10 notice.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12560 |21mr|eclipse-photran-9.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global cdtreq                  1:9.0.0
%global photran_git_tag         d83cf513860d0e35f7e5c1493c6a381534e6f643

Summary:        Fortran Development Tools (Photran) for Eclipse
Name:           eclipse-photran
Version:        9.2.1
Release:        3
License:        EPL-1.0
URL:            http://www.eclipse.org/photran

# The following tarballs were downloaded from the git repositories
Source0:        http://git.eclipse.org/c/ptp/org.eclipse.photran.git/snapshot/org.eclipse.photran-%{photran_git_tag}.tar.xz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  tycho
BuildRequires:  tycho-extras
BuildRequires:  eclipse-cdt >= %{cdtreq}
BuildRequires:  eclipse-launchbar
BuildRequires:  eclipse-license
Requires:       eclipse-cdt >= %{cdtreq}

%description
An Eclipse-based Integrated Development Environment for Fortran.


%package intel
Summary:        Intel Fortran compiler support for Photran

%description intel
This feature packages the plugins required to support
the Intel Fortran compiler in Photran/FDT.


%package xlf
Summary:        IBM XLF Compiler Support

%description xlf
Error parser and managed build tool chain for the IBM XLF compiler.


%prep
%setup -q -n org.eclipse.photran-%{photran_git_tag}

# We need to rebuild this jar from the sources within it
mkdir cdtdb-4.0.3-eclipse
pushd cdtdb-4.0.3-eclipse
unzip -q ../org.eclipse.photran.core.vpg/lib/cdtdb-4.0.3-eclipse.jar
find -name \*.class -exec rm {} +
popd
# Delete any other jars in the project
find -name \*.jar -exec rm {} +
# This prevents the Photran Intel feature from building
sed -i -e 's/os="linux"//' org.eclipse.photran.intel-feature/feature.xml
#Fix line endings, causes problems with pdebuild link names
#find -name MANIFEST.MF -exec sed -i -e 's|\r||' {} +

# Don't use target platform
%pom_disable_module org.eclipse.photran.target
%pom_xpath_remove "pom:configuration/pom:target"

%mvn_package "::pom::" __noinstall
%mvn_package ":*.source" __noinstall
%mvn_package ":*.tests" __noinstall
%mvn_package ":org.eclipse.photran.*intel*" intel
%mvn_package ":org.eclipse.photran.*xlf*" xlf
%mvn_package ":*" core


%build
export JAVA_HOME=%{_jvmdir}/java

# Build the helper jar first
pushd cdtdb-4.0.3-eclipse
classpath=$(echo /usr/lib*/eclipse/plugins/org.eclipse.equinox.common_*.jar | sed -e 's/ /:/g')
find -name \*java -exec javac -classpath $classpath '{}' +
jar cf ../org.eclipse.photran.core.vpg/lib/cdtdb-4.0.3-eclipse.jar *
popd
#Interferes with feature build
rm -rf cdtdb-4.0.3-eclipse
# Build the projects
%mvn_build -j -f


%install
%mvn_install


%files -f .mfiles-core
%doc org.eclipse.photran-feature/epl-v10.html

%files intel -f .mfiles-intel
%doc org.eclipse.photran-feature/epl-v10.html

%files xlf -f .mfiles-xlf
%doc org.eclipse.photran-feature/epl-v10.html



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12561 |21mr|eclipse-ptp-9.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global ptp_git_tag 047aee100c989827894a95821587119c4e9740c6

%ifarch %{ix86}
    %global eclipse_arch x86
%endif
%ifarch %{arm}
    %global eclipse_arch arm
%endif
%ifarch s390x x86_64 aarch64 ppc64le
    %global eclipse_arch %{_arch}
%endif

Summary:        Eclipse Parallel Tools Platform
Name:           eclipse-ptp
Version:        9.2.1
Release:        3
License:        EPL-1.0
Group:          Development/Java
URL:            http://www.eclipse.org/ptp

# The following tarballs were downloaded from the git repositories
Source0:        http://git.eclipse.org/c/ptp/org.eclipse.ptp.git/snapshot/org.eclipse.ptp-%{ptp_git_tag}.tar.xz

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  tycho
BuildRequires:  tycho-extras
BuildRequires:  maven-antrun-plugin
BuildRequires:  maven-dependency-plugin
BuildRequires:  maven-plugin-build-helper
BuildRequires:  eclipse-cdt-parsers
BuildRequires:  eclipse-license
BuildRequires:  eclipse-jgit
BuildRequires:  eclipse-pde
BuildRequires:  eclipse-photran-intel
BuildRequires:  eclipse-photran-xlf
BuildRequires:  eclipse-remote
BuildRequires:  eclipse-tm-terminal
BuildRequires:  eclipse-tm-terminal-connectors
BuildRequires:  lpg-java-compat = 1.1.0

#Obsolete components no longer available in 9.0
Obsoletes:      %{name}-rdt < %{version}-%{release}
Obsoletes:      %{name}-rdt-xlc < %{version}-%{release}
Obsoletes:      %{name}-remote-rse < %{version}-%{release}


%description
The aim of the parallel tools platform project is to produce an open-source
industry-strength platform that provides a highly integrated environment
specifically designed for parallel application development. The project will
provide:

 - a standard, portable parallel IDE that supports a wide range of parallel
   architectures and run-time systems
 - a scalable parallel debugger
 - support for the integration of a wide range of parallel tools
 - an environment that simplifies the end-user interaction with parallel
   systems

This package contains the main PTP run-time features.


%package        master
Summary:        Complete PTP package
#master package is a virtual package that requires all of the components
Requires:       %{name} = %{version}-%{release}
Requires:       %{name}-etfw-tau = %{version}-%{release}
Requires:       %{name}-etfw-tau-fortran = %{version}-%{release}
Requires:       %{name}-fortran = %{version}-%{release}
Requires:       %{name}-pldt-fortran = %{version}-%{release}
Requires:       %{name}-pldt-upc = %{version}-%{release}
Requires:       %{name}-rdt-sync-fortran = %{version}-%{release}
Requires:       %{name}-rm-contrib = %{version}-%{release}
Requires:       %{name}-gem = %{version}-%{release}
Requires:       %{name}-sci = %{version}-%{release}
Requires:       %{name}-sdm = %{version}-%{release}

%description    master
The package will bring in all of the PTP components.

%package        etfw-tau
Summary:        PTP External Tools Framework TAU Support
Group:          Development/Java
BuildArch:      noarch

%description    etfw-tau
Extends the external tools framework with capabilities specific
to the TAU performance analysis system.


%package        etfw-tau-fortran
Summary:        PTP External Tools Framework: TAU Fortran Enabler
Group:          Development/Java
BuildArch:      noarch

%description    etfw-tau-fortran
Adds selective instrumentation functionality for Fortran via the
Photran project.


%package        fortran
Summary:        PTP Fortran Support
Group:          Development/Java
BuildArch:      noarch
Requires:       %{name}-etfw-tau-fortran = %{version}-%{release}
Requires:       %{name}-pldt-fortran = %{version}-%{release}
Requires:       %{name}-rdt-sync-fortran = %{version}-%{release}

%description    fortran
Adds Fortran support to PTP.


%package        pldt-fortran
Summary:        PTP Parallel Language Development Tools Fortran Support
Group:          Development/Java
BuildArch:      noarch

%description    pldt-fortran
Adds a range of static analysis and programming assistance tools for Fortran.


%package        pldt-upc
Summary:        PTP Parallel Language Development Tools UPC Support
Group:          Development/Java
BuildArch:      noarch

%description    pldt-upc
Adds a range of static analysis and programming assistance tools for UPC.  
Note: this is separated from the rest of PLDT since it requires the UPC
feature of CDT, which is sometimes not installed with CDT.


%package        rdt-sync-fortran
Summary:        PTP Fortran Synchronization Support
Group:          Development/Java
BuildArch:      noarch

%description    rdt-sync-fortran
Adds the ability to remotely synchronize Fortran projects.

%package        rm-contrib
Summary:        PTP Contributed Resource Manager Definitions
Group:          Development/Java
BuildArch:      noarch

%description    rm-contrib
Adds resource managers for a number of different systems.


%package        gem
Summary:        PTP Graphical Explorer of MPI Programs (GEM)
Group:          Development/Java
BuildArch:      noarch

%description    gem
GEM serves as a graphical front end for In-situ Partial Order (ISP), a
dynamic formal verification tool for MPI developed at the School of
Computing, University of Utah.

Whether you are new to MPI or are an advanced user, GEM will help you debug
your MPI programs, and graphically show many valuable facts, including all
the possible send/receive matches, and synchronizations. GEM also includes
features to help users understand and debug the program across all platforms
on which it may be run (e.g. highlighting deadlocks that may occur due to
differing communication buffer allocations). For a given test harness, GEM
will allow you to explore only the relevant process interleavings, which are
much smaller than the number of total feasible interleavings. GEM also
guarantees to discover and explore all non-deterministic matches at run-time. 


%package        sci
Summary:        PTP Scalable Communication Infrastructure (SCI)
Group:          Development/Java
BuildArch:      noarch

%description    sci
Parallel Tools Platform components that implements the Scalable Communication
Infrastructure (SCI).


%package        sdk
Summary:        Parallel Tools Platform SDK 
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Requires:       %{name}-master = %{version}-%{release}
# Obsoletes/Provides added in F25
Provides:       %{name}-core-source = %{version}-%{release}
Obsoletes:      %{name}-core-source < %{version}-%{release}

%description    sdk
Eclipse Parallel Tools Platform. Software development kit including source
code and developer documentation.


%package        sdm
Summary:        PTP Scalable Debug Manager (SDM)

%description    sdm
Parallel Tools Platform components that implement a parallel debug server
using the Scalable Debug Manager (SDM).

NOTE: The sdm binary for the architecture of the host machine is available
in the sdm plugin and at %{_libdir}/ptp/sdm.  If the target system is of
a different archicture, you will need to build and install it by hand.


%prep
%setup -q -n org.eclipse.ptp-%{ptp_git_tag}

# Fix target platform environments
TYCHO_ENV="<environment><os>linux</os><ws>gtk</ws><arch>%{eclipse_arch}</arch></environment>"
%pom_xpath_set "pom:configuration/pom:environments" "$TYCHO_ENV"
%pom_xpath_remove "pom:configuration/pom:target"

# Remove dep on ant-trax
%pom_remove_dep ant:ant-trax rms/org.eclipse.ptp.rm.lml.da.server

# No need to build repo when using xmvn
%pom_disable_module releng/org.eclipse.ptp.repo

# Remove pre-built binaries
rm -r releng/org.eclipse.ptp.linux/os/linux

# Fix xml deps
sed -i -e '/com.sun.xml.bind/s/com.sun.xml.bind,/javax.xml.bind.util,/' \
  rms/org.eclipse.ptp.rm.jaxb.core/META-INF/MANIFEST.MF

# Disable bundles for non-linux platforms
%pom_disable_module releng/org.eclipse.ptp.aix
%pom_disable_module releng/org.eclipse.ptp.macosx
%pom_xpath_remove "plugin[@id='org.eclipse.ptp.aix']" releng/org.eclipse.ptp.sdm-feature/feature.xml
%pom_xpath_remove "plugin[@id='org.eclipse.ptp.macosx']" releng/org.eclipse.ptp.sdm-feature/feature.xml

%mvn_package "::{pom,target}::" __noinstall
%mvn_package "::jar:sources{,-feature}:" sdk
%mvn_package ":*.{sdk,core.source,doc.isv}" sdk
%mvn_package ":*.pldt.*fortran" pldt-fortran
%mvn_package ":*.pldt.upc" pldt-upc
%mvn_package ":*.etfw.tau.{fortran,selinstfort}" etfw-tau-fortran
%mvn_package ":*.etfw.tau*" etfw-tau
%mvn_package ":*.gem{,.help}" gem
%mvn_package ":*.rm.jaxb.contrib" rm-contrib
%mvn_package ":*.sci" sci
%mvn_package ":*.ptp.{proxy,utils,debug.sdm,linux}" sdm
%mvn_package ":*.rdt.sync.fortran{,.ui}" rdt-sync-fortran
%mvn_package ":*.ptp.fortran" fortran
%mvn_package ":"


%build
export JAVA_HOME=%{_jvmdir}/java
export MAVEN_OPTS="-Xmx1024m -XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState ${MAVEN_OPTS}"

# Build the sdm binary
pushd debug/org.eclipse.ptp.debug.sdm
export CFLAGS="%{optflags} -fno-strict-overflow"
sh BUILD
sh BUILD clean
popd

# Put binary in place and make sure bundle is dir-shaped when installed
mkdir -p releng/org.eclipse.ptp.linux/os/linux/%{eclipse_arch}
cp -p debug/org.eclipse.ptp.debug.sdm/bin/sdm releng/org.eclipse.ptp.linux/os/linux/%{eclipse_arch}/sdm
echo -e "Eclipse-BundleShape: dir\n\n" >> releng/org.eclipse.ptp.linux/META-INF/MANIFEST.MF

# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +%Y%m%d%H%M)
%mvn_build -j -- -DforceContextQualifier=$QUALIFIER


%install
%mvn_install

# Install sdm binary so debuginfo is created
mkdir -p %{buildroot}%{_libdir}/ptp
plugin=$(ls %{buildroot}%{_prefix}/lib/eclipse/droplets/ptp-sdm/plugins | grep org.eclipse.ptp.linux_)
chmod +x %{buildroot}%{_prefix}/lib/eclipse/droplets/ptp-sdm/plugins/$plugin/os/linux/%{eclipse_arch}/sdm
ln -s %{_prefix}/lib/eclipse/droplets/ptp-sdm/plugins/$plugin/os/linux/%{eclipse_arch}/sdm \
  %{buildroot}%{_libdir}/ptp/


%files -f .mfiles
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files master
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files etfw-tau -f .mfiles-etfw-tau
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files etfw-tau-fortran -f .mfiles-etfw-tau-fortran
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files fortran -f .mfiles-fortran
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files pldt-fortran -f .mfiles-pldt-fortran
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files pldt-upc -f .mfiles-pldt-upc
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files rdt-sync-fortran -f .mfiles-rdt-sync-fortran
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files rm-contrib -f .mfiles-rm-contrib
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files gem -f .mfiles-gem
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files sci -f .mfiles-sci
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files sdk -f .mfiles-sdk
%doc releng/org.eclipse.ptp-feature/epl-v10.html

%files sdm -f .mfiles-sdm
%doc releng/org.eclipse.ptp-feature/epl-v10.html
%{_libdir}/ptp/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12562 |21mr|eclipse-pydev-7.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Turn off the brp-python-bytecompile script
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')
%global git_tag pydev_7_1_0

Epoch: 1
Summary: Eclipse Python development plug-in
Name:    eclipse-pydev
Version:          7.1.0
Release:          2
License:          EPL-1.0
Group:            Development/Java
URL:              http://pydev.org

Source0:          https://github.com/fabioz/Pydev/archive/%{git_tag}.tar.gz
Source1:          eclipse-pydev.metainfo.xml

# Remove windows specific code that manipulates the windows registry
Patch0:           remove-winregistry.patch

# Fix native name
Patch1:           native-name.patch

# Allow system jython interpreter to be configured in preferences
Patch2:           system-jython-interpreter.patch

# Fix for failing to kill django processes
Patch3:           fix-process-killing.patch

# Don't package source for natives in binary plugins
Patch4:           exclude-project-files.patch

# Port to latest lucene
Patch5:           lucene-71.patch

# Improvements for pip integration
Patch6: better-pip-integration.patch

# Don't attempt update of outline if already disposed
Patch7: prevent_update_outline_when_disposed.patch

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

Requires: eclipse-platform
Requires: python3
Requires: apache-commons-logging
Requires: snakeyaml
Requires: ws-commons-util
Requires: xmlrpc-common
Requires: xmlrpc-client
Requires: xmlrpc-server
Requires: jython >= 2.7.1-3
Requires: antlr32-java >= 3.2-12
Recommends: python3-pylint
Recommends: python3-django
Recommends: python3-ipython-console
BuildRequires:  gcc-c++
BuildRequires:    tycho
BuildRequires:    tycho-extras
BuildRequires:    eclipse-mylyn
BuildRequires:    eclipse-p2-discovery
BuildRequires:    apache-commons-logging
BuildRequires:    snakeyaml
BuildRequires:    ws-commons-util
BuildRequires:    xmlrpc-common
BuildRequires:    xmlrpc-client
BuildRequires:    xmlrpc-server
BuildRequires:    jython >= 2.7.1-3
BuildRequires:    lucene >= 7.1.0
BuildRequires:    lucene-analysis >= 7.1.0

# Required for symlinking into the plugin
%if 0%{?fedora}
BuildRequires:    python3-autopep8
BuildRequires:    python3-isort
BuildRequires:    python3-pycodestyle
Requires: python3-autopep8
Requires: python3-isort
Requires: python3-pycodestyle
%endif

# For building native debugging extensions for both python 2 and 3
%if 0%{?fedora}
BuildRequires:    python2-devel python3-devel
BuildRequires:    python2-Cython python3-Cython
%endif

%description
The eclipse-pydev package contains Eclipse plugins for
Python development.

%package mylyn
Summary: Pydev Mylyn Focused UI
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Requires: %{name} = %{epoch}:%{version}-%{release}

%description mylyn
Mylyn Task-Focused UI extensions for Pydev.

%prep
%setup -q -n Pydev-%{git_tag}
%patch0
%patch1
%patch2 -p1
%patch3 -p1
%patch4
%patch5 -p1
%patch6
%patch7

%mvn_package "::pom:" __noinstall
%mvn_package ":::sources{,-feature}:" __noinstall
%mvn_package ":*.mylyn*" mylyn
%mvn_package ":"

# Fix line endings
sed -i -e 's/\r$//' $(find plugins/org.python.pydev.core/pysrc -name "*.py")

# Remove bundled ctypes (used only under cygwin)
rm -r plugins/org.python.pydev.core/pysrc/third_party/wrapped_for_pydev
# Remove lib2to3 (provided by jython)
rm -r plugins/org.python.pydev.core/pysrc/third_party/pep8/lib2to3
%if 0%{?fedora}
# Symlink to system version of isort
rm -r plugins/org.python.pydev.core/pysrc/third_party/isort_container/isort
(cd plugins/org.python.pydev.core/pysrc/third_party/isort_container && ln -s %{python3_sitelib}/isort)
# Symlink to system versions of autopep8 and pycodestyle
rm plugins/org.python.pydev.core/pysrc/third_party/pep8/{autopep8,pycodestyle}*
(cd plugins/org.python.pydev.core/pysrc/third_party/pep8/ && ln -s %{python3_sitelib}/autopep8.py)
(cd plugins/org.python.pydev.core/pysrc/third_party/pep8/ && ln -s %{python3_sitelib}/pycodestyle.py)
%endif

# Remove pre-built artifacts
find -name '*.class' -delete
find -name '*.jar' -delete
find -name '*.dll' -delete
find -name '*.dylib' -delete
find -name '*.so' -delete
rm -rf plugins/org.python.pydev.jython/Lib

# Symlink to system jython and standard library
pushd plugins/org.python.pydev.jython
ln -sf %{_datadir}/jython/jython.jar
ln -sf %{_datadir}/jython/javalib
ln -sf %{_datadir}/jython/Lib
popd

# Link to system jython
# we must include all of jython's runtime dependencies on the classpath
pushd plugins/org.python.pydev.jython
for j in $(ls javalib/*.jar) ; do
  sed -i -e 's/\r//' -e "/^ jython\.jar/i\ $j," META-INF/MANIFEST.MF
done
sed -i -e "s/ jython\.jar/ jython.jar,javalib\//" build.properties
popd

# Symlinks to other system jars
ln -sf $(build-classpath commons-logging) \
       plugins/org.python.pydev.shared_interactive_console/commons-logging-1.1.1.jar
ln -sf $(build-classpath ws-commons-util) \
       plugins/org.python.pydev.shared_interactive_console/ws-commons-util-1.0.2.jar
ln -sf $(build-classpath xmlrpc-client) \
       plugins/org.python.pydev.shared_interactive_console/xmlrpc-client-3.1.3.jar
ln -sf $(build-classpath xmlrpc-common) \
       plugins/org.python.pydev.shared_interactive_console/xmlrpc-common-3.1.3.jar
ln -sf $(build-classpath xmlrpc-server) \
       plugins/org.python.pydev.shared_interactive_console/xmlrpc-server-3.1.3.jar
ln -sf $(build-classpath snakeyaml) \
       plugins/org.python.pydev.shared_core/libs/snakeyaml-1.11.jar
ln -sf $(build-classpath lucene/lucene-core) \
       plugins/org.python.pydev.shared_core/libs/lucene-core-7.1.0.jar
ln -sf $(build-classpath lucene/lucene-analyzers-common) \
       plugins/org.python.pydev.shared_core/libs/lucene-analyzers-common-7.1.0.jar

# Some bundles that don't need to be dir-shaped
sed -i -e '/Eclipse-BundleShape/d' \
  plugins/org.python.pydev.{mylyn,help}/META-INF/MANIFEST.MF

# Fix encodings
iconv -f CP1252 -t UTF-8 LICENSE.txt > LICENSE.txt.utf
mv LICENSE.txt.utf LICENSE.txt

%pom_disable_module org.python.pydev.p2-repo features

%build
# Build native part first
pushd plugins/org.python.pydev.core/pysrc &>/dev/null
(cd pydevd_attach_to_process && \
  g++ %{optflags} -shared -o attach_linux.so -fPIC -nostartfiles linux/attach_linux.c)
%if 0%{?fedora}
PYTHONPATH=. %{__python2} build_tools/build.py
PYTHONPATH=. %{__python3} build_tools/build.py
%endif
popd &>/dev/null

# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M)

# Build everything else
%mvn_build -j -f -- -DforceContextQualifier=$QUALIFIER

%install
%mvn_install

# fix perms on native lib
find ${RPM_BUILD_ROOT} -name attach_linux.so -exec chmod +x {} \;

# Install appdata
install -m644 -D %{SOURCE1} %{buildroot}%{_datadir}/appdata/eclipse-pydev.metainfo.xml

# Have to re-symlink embedded system jars
installDir=${RPM_BUILD_ROOT}/%{_prefix}/lib/eclipse/droplets/pydev
pushd $installDir/plugins
for f in commons-logging \
         ws-commons-util \
         xmlrpc-client \
         xmlrpc-common \
         xmlrpc-server \
         snakeyaml \
         lucene/lucene-core \
         lucene/lucene-analyzers-common ; do
  file=$(find . -name $(basename $f)*.jar)
  rm $file
  ln -sf $(build-classpath $f) $file
done
popd

# Symlink to system jython and standard library
pushd $installDir/plugins/org.python.pydev.jython_*
rm -rf jython.jar javalib Lib
ln -sf %{_datadir}/jython/jython.jar
ln -sf %{_datadir}/jython/javalib
ln -sf %{_datadir}/jython/Lib
popd

%if 0%{?fedora}
pushd $installDir/plugins/org.python.pydev.core_*
# Symlink to system versions of autopep8 and pycodestyle
rm pysrc/third_party/pep8/*.py
(cd pysrc/third_party/pep8/ && ln -s %{python3_sitelib}/autopep8.py)
(cd pysrc/third_party/pep8/ && ln -s %{python3_sitelib}/pycodestyle.py)
# Symlink to system version of isort
rm pysrc/third_party/isort_container/isort
(cd pysrc/third_party/isort_container && ln -s %{python3_sitelib}/isort)
popd
%endif

# convert .py$ files from mode 0644 to mode 0755
sed -i -e '/.*\.py$/s/0644/0755/' .mfiles*

%files -f .mfiles
%license LICENSE.txt
%doc README.txt
%{_datadir}/appdata/eclipse-pydev.metainfo.xml

%files mylyn -f .mfiles-mylyn
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12563 |21mr|eclipse-quickrex-3.5.0-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global cvs_tag             QuickREx_3_5_0

Name:           eclipse-quickrex
Version:        3.5.0
Release:        31
Summary:        QuickREx regular-expression plug-in for Eclipse

License:        EPL
URL:            http://sourceforge.net/projects/quickrex/

# This tarball was made using the included script, like so:
#   sh ./fetch-quickrex.sh %%{cvs_tag}
Source0:        quickrex-fetched-src-%{cvs_tag}.tar.bz2
Source1:        fetch-quickrex.sh

# Appdata addon metadata
Source2:        eclipse-quickrex.metainfo.xml

# Note: This version of QuickREx disables jregex support due to
# the fact that there isn't a Fedora package of it.
Patch0:         quickrex-disable-jregex-capability.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: tycho
BuildRequires: jakarta-oro
BuildRequires: regexp
Requires: eclipse-platform
Requires: jakarta-oro
Requires: regexp

%description
QuickREx is a regular-expression plug-in for Eclipse. It features on-the-fly
evalution, code-completion, group-navigation, different engines and a library
for regular expressions.

%prep
%setup -q -n quickrex-fetched-src-%{cvs_tag}

# Bundle must be dir-shaped due to embedded libs
echo "Eclipse-BundleShape: dir" >> Plug-In/META-INF/MANIFEST.MF

# Symlink embedded libs with system versions
pushd Plug-In
%patch0 -p0
build-jar-repository -p -s lib regexp jakarta-oro
sed -i -e 's|lib/jakarta-oro-2.0.8.jar,lib/jregex1.2_01.jar,lib/jakarta-regexp-1.4.jar|lib/jakarta-oro.jar,lib/regexp.jar|' \
  META-INF/MANIFEST.MF
popd

# Generate poms
xmvn -o org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms \
  -DgroupId=de.babe.eclipse -Dversion=%{version}

# don't install poms
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j

%install
%mvn_install

# Re-symlink
pushd %{buildroot}%{_datadir}/eclipse/droplets/quickrex/plugins/de.babe.eclipse.plugins.QuickREx_%{version}
rm lib/*.jar
build-jar-repository -p -s lib regexp jakarta-oro
popd

install -D -m655 %{SOURCE2} $RPM_BUILD_ROOT%{_datadir}/appdata/eclipse-quickrex.metainfo.xml

%files -f .mfiles
%doc Plug-In/html
%{_datadir}/appdata/eclipse-quickrex.metainfo.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12564 |21mr|eclipse-remote-3.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_tag b1bdab816fe2541091ed36931f933d03f02cf879

Name:           eclipse-remote
Version:        3.0.1
Release:        2
Summary:        Eclipse Remote Services plug-in
License:        EPL-1.0
URL:            https://www.eclipse.org/ptp/

Source0:        http://git.eclipse.org/c/ptp/org.eclipse.remote.git/snapshot/org.eclipse.remote-%{git_tag}.tar.xz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:    tycho
BuildRequires:    tycho-extras
BuildRequires:    jsch
BuildRequires:    eclipse-pde
BuildRequires:    eclipse-license
BuildRequires:    eclipse-cdt
BuildRequires:    eclipse-tm-terminal

Requires:         jsch
Requires:         eclipse-platform

%description
Remote Services provides an extensible remote services framework.

%prep
%setup -q -n org.eclipse.remote-%{git_tag}

find -name *.jar -exec rm -rf {} \;
find -name *.class -exec rm -rf {} \;

# Remove use of tycho-sourceref-jgit (source is not a git repo)
%pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin releng/org.eclipse.remote.build/pom.xml

# Don't need to build repo or target platform for RPM builds
%pom_disable_module ../../releng/org.eclipse.remote.repo releng/org.eclipse.remote.build/pom.xml
%pom_disable_module ../../releng/org.eclipse.remote.target releng/org.eclipse.remote.build/pom.xml
%pom_xpath_remove "pom:target" releng/org.eclipse.remote.build/pom.xml

# Don't build the proxy product
%pom_disable_module ../../releng/org.eclipse.remote.proxy.server.product releng/org.eclipse.remote.build
%pom_disable_module ../../releng/org.eclipse.remote.proxy.server.linux.ppc64le releng/org.eclipse.remote.build
%pom_disable_module ../../releng/org.eclipse.remote.proxy.server.linux.x86_64 releng/org.eclipse.remote.build
%pom_disable_module ../../releng/org.eclipse.remote.proxy.server.macosx.x86_64 releng/org.eclipse.remote.build
%pom_xpath_remove "feature/plugin[@id='org.eclipse.remote.proxy.server.linux.ppc64le']" \
  features/org.eclipse.remote.proxy-feature/feature.xml
%pom_xpath_remove "feature/plugin[@id='org.eclipse.remote.proxy.server.linux.x86_64']" \
  features/org.eclipse.remote.proxy-feature/feature.xml
%pom_xpath_remove "feature/plugin[@id='org.eclipse.remote.proxy.server.macosx.x86_64']" \
  features/org.eclipse.remote.proxy-feature/feature.xml

%mvn_package "::pom::" __noinstall

%build
%mvn_build  -j -- -Dproject.build.sourceEncoding=UTF-8 \
  -DforceContextQualifier=%(date -u +%%Y%%m%%d1000) \
  -f releng/org.eclipse.remote.build/pom.xml

%install
%mvn_install

%files -f .mfiles
%license features/org.eclipse.remote-feature/epl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12565 |21mr|eclipse-sgx-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag sgx_%{version}

Name:    eclipse-sgx
Summary: Intel Software Guard Extensions Plug-in for Eclipse
Version: 2.0
Release: 6

License: EPL-1.0
URL: https://01.org/intel-softwareguard-extensions
Source0: https://github.com/01org/linux-sgx/archive/%{gittag}/%{name}-%{version}.tar.gz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: tycho
BuildRequires: maven-local
BuildRequires: eclipse-cdt

%description
The Intel Software Guard Extensions Plug-in enables ISVs to develop Linux
applications with Intel Software Guard Extensions. The plug-in extends the
C/C++ Development tools plug-in to allow ISVs develop secure extensions in
C or C++. The plug-in also allows conversion of an Linux Application project
into an Linux Application project with Software Guard Extensions.

%prep
%setup -q -n linux-sgx-%{gittag}

# Relax version restrictions on dependencies
sed -i -e 's/compatible/greaterOrEqual/' \
  Linux_SGXEclipsePlugin/build_directory/features/com.intel.sgx.feature/feature.xml

# Generate tycho poms
pushd Linux_SGXEclipsePlugin
xmvn -o -B org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms -DgroupId=com.intel.sgx
popd

# Don't need to package poms for eclipse plugins
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j -- -f Linux_SGXEclipsePlugin/pom.xml

%install
%mvn_install

%files -f .mfiles
%doc README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12566 |21mr|eclipse-subclipse-4.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global subclipse_tag %{version}
%global svnclientadapter_tag 7a75b85c419455d9b7bdf097468841e99585a686
%global javahl_tag %{javahl_version}

%global svnclientadapter_version 1.11.0
%global javahl_version 1.11.1
%global svnkit_version 1:1.8.12

# Conditionally build svnkit/javahl support; we build javahl support by default becuase it's rock solid
# Otherwise fallback to svnkit where subversion is not present or not new enough
%bcond_without javahl

Name:           eclipse-subclipse
Version:        4.3.0
Release:        1
Summary:        Subversion Eclipse plugin

License:        EPL-1.0 and ASL 2.0 and CC-BY
URL:            http://subclipse.tigris.org/

Source0:        https://github.com/subclipse/subclipse/archive/%{subclipse_tag}/subclipse-%{version}.tar.gz
# Upstream moved the svnclientadapter into a separate repo which could be packaged separately if needed
Source1:        https://github.com/subclipse/svnclientadapter/archive/%{svnclientadapter_tag}/svnclientadapter-%{svnclientadapter_version}.tar.gz
# Upstream moved the javahl fragments into a separate repo which could be packaged separately if needed
Source2:        https://github.com/subclipse/javahl-windows/archive/%{javahl_tag}/javahl-windows-%{javahl_version}.tar.gz

Source3:        eclipse-subclipse.metainfo.xml

# Allow building against Fedora's svnkit
# TODO fix this properly when deps are properly OSGified
Patch1:         svnkit.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  tycho
BuildRequires:  tycho-extras
BuildRequires:  maven-install-plugin
BuildRequires:  eclipse-gef
BuildRequires:  eclipse-mylyn
BuildRequires:  appstream-util
BuildRequires:  pkgconfig(appstream-glib)
%if %{with javahl}
BuildRequires:  svn-javahl >= %{javahl_version}
BuildRequires:  svnkit-javahl
Requires:       svn-javahl >= %{javahl_version}
Requires:       svnkit-javahl
%endif

%description
Subclipse is an Eclipse plugin that adds Subversion integration to the Eclipse
IDE.

%prep
%setup -q -n subclipse-%{subclipse_tag} -a 1
%patch1

# Fix pom xml declarations
sed -i -e 's/4\.2\.0/4.0.0/g' {.,features,bundles}/pom.xml

# Insert Javahl features/bundles into build
tar xf %{SOURCE2} --strip-components=1 javahl-windows-%{javahl_version}/{releng/javahl.configuration,features/feature.javahl,bundles/svnapi.javahl}
%pom_xpath_inject "pom:modules" "<module>feature.javahl</module>" features
%pom_xpath_inject "pom:modules" "<module>svnapi.javahl</module>" bundles
%pom_xpath_remove "feature/plugin[@os='win32']" features/feature.javahl/feature.xml

# Delete pre-built artifacts
find -name '*.jar' -delete

# Don't need to build update site
%pom_disable_module releng

# Dont't ship source jars
%pom_remove_plugin :maven-source-plugin svnclientadapter*

%if %{without javahl}
# Don't build javahl
%pom_disable_module feature.javahl features
%pom_disable_module svnapi.javahl bundles
%pom_change_dep "org.apache.subversion:javahl" "org.tmatesoft.svnkit:svnkit-javahl16" svnclientadapter-%{svnclientadapter_tag}/javahl
%endif

# Must be dir-shaped bundles so we can symlink system versions of libs
for b in bundles/svnapi.* ; do
  echo "Eclipse-BundleShape: dir" >> $b/META-INF/MANIFEST.MF
  sed -i -e 's/-1\.[0-9]\+\.[0-9]\+\.jar/.jar/' $b/META-INF/MANIFEST.MF $b/build.properties
done

# Don't install poms
%mvn_package "::pom::" __noinstall

%build
pushd svnclientadapter-%{svnclientadapter_tag}
%pom_remove_plugin ":bnd-maven-plugin" base cmdline javahl svnkit
%pom_remove_plugin ":maven-jar-plugin" base cmdline javahl svnkit

# TODO: Make subversion-javahl package install a pom file
%if %{with javahl}
xmvn -B -o install:install-file -Dfile=$(build-classpath svn-javahl) -Dpackaging=jar \
      -DgroupId=org.apache.subversion -DartifactId=javahl -Dversion=%{svnclientadapter_version}
%endif

%mvn_build -j
popd

cp -p $(find svnclientadapter-%{svnclientadapter_tag} -name adapter-base*.jar) bundles/svnapi.core/lib/adapter-base.jar
%if %{with javahl}
# JavaHL libs
cp -p $(find svnclientadapter-%{svnclientadapter_tag} -name adapter-javahl*.jar) bundles/svnapi.javahl/lib/adapter-javahl.jar
ln -s $(build-classpath svn-javahl) bundles/svnapi.javahl/lib/javahl.jar
%endif
# SVNKit libs
cp -p $(find svnclientadapter-%{svnclientadapter_tag} -name adapter-svnkit*.jar) bundles/svnapi.svnkit/lib/adapter-svnkit.jar
cp -p $(find svnclientadapter-%{svnclientadapter_tag} -name adapter-javahl*.jar) bundles/svnapi.svnkit/lib/adapter-javahl.jar
for j in \
    svnkit/svnkit svnkit/svnkit-javahl16 \
    sqljet antlr32/antlr-runtime-3.2 sequence-library trilead-ssh2 \
    jsch-agent-proxy/jsch.agentproxy.connector-factory \
    jsch-agent-proxy/jsch.agentproxy.core \
    jsch-agent-proxy/jsch.agentproxy.pageant \
    jsch-agent-proxy/jsch.agentproxy.sshagent \
    jsch-agent-proxy/jsch.agentproxy.svnkit-trilead-ssh2 \
    jsch-agent-proxy/jsch.agentproxy.usocket-jna \
    jsch-agent-proxy/jsch.agentproxy.usocket-nc \
    jna/jna jna/jna-platform ; do
  ln -s $(build-classpath $j) bundles/svnapi.svnkit/lib/$(basename $j).jar
  sed -i -e "/Bundle-ClassPath/s/: /: lib\/$(basename $j).jar,/" bundles/svnapi.svnkit/META-INF/MANIFEST.MF
done

# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +%Y%m%d%H%M)
%mvn_build -j -- -DforceContextQualifier=$QUALIFIER

%install
%mvn_install

droplet=%{buildroot}%{_datadir}/eclipse/droplets/subclipse

# Replace jar with link to system libraries
%if %{with javahl}
# JavaHL libs
pushd $droplet/plugins/org.tigris.subversion.clientadapter.javahl_*
rm lib/javahl.jar
ln -s $(build-classpath svn-javahl) lib/javahl.jar
popd
%endif
# SVNKit libs
pushd $droplet/plugins/org.tigris.subversion.clientadapter.svnkit_*
for j in \
    svnkit/svnkit svnkit/svnkit-javahl16 \
    sqljet antlr32/antlr-runtime-3.2 sequence-library trilead-ssh2 \
    jsch-agent-proxy/jsch.agentproxy.connector-factory \
    jsch-agent-proxy/jsch.agentproxy.core \
    jsch-agent-proxy/jsch.agentproxy.pageant \
    jsch-agent-proxy/jsch.agentproxy.sshagent \
    jsch-agent-proxy/jsch.agentproxy.svnkit-trilead-ssh2 \
    jsch-agent-proxy/jsch.agentproxy.usocket-jna \
    jsch-agent-proxy/jsch.agentproxy.usocket-nc \
    jna/jna jna/jna-platform ; do
  rm lib/$(basename $j).jar
  ln -s $(build-classpath $j) lib/$(basename $j).jar
done
popd

# Install appdata
install -m644 -D %{SOURCE3} %{buildroot}%{_datadir}/appdata/eclipse-subclipse.metainfo.xml
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/appdata/eclipse-subclipse.metainfo.xml

%files -f .mfiles
%doc CHANGELOG.md
%license LICENSE.md
%{_datadir}/appdata/eclipse-subclipse.metainfo.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12567 |21mr|eclipse-swtbot-2.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_tag dc358990381fa5441142b3ba257458ed009bf462

Name:           eclipse-swtbot
Version:        2.8.0
Release:        3
Summary:        UI and functional testing tool for SWT and Eclipse based applications

License:        EPL-1.0
URL:            http://www.eclipse.org/swtbot/
Source0:        http://git.eclipse.org/c/swtbot/org.eclipse.swtbot.git/snapshot/org.eclipse.swtbot-%{git_tag}.tar.xz

# Remove explicit dep on javax-annotation, it is provided by system bundle
Patch0: javax-annotation.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  tycho
BuildRequires:  tycho-extras
BuildRequires:  eclipse-gef
BuildRequires:  eclipse-pde
BuildRequires:  cbi-plugins
BuildRequires:  eclipse-license
BuildRequires:  tycho
BuildRequires:  log4j12
BuildRequires:  hamcrest

%description
SWTBot is a Java based UI/functional testing tool for testing SWT and Eclipse
based applications. SWTBot provides APIs that are simple to read and write.
The APIs also hide the complexities involved with SWT and Eclipse. This makes
it suitable for UI/functional testing by everyone, not just developers.

%prep
%setup -q -n org.eclipse.swtbot-%{git_tag}
%patch0

for j in $(find -name \*.jar); do
if [ ! -L $j ] ; then
rm -fr $j
fi
done
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='target-platform-configuration']"
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_plugin org.eclipse.tycho:tycho-packaging-plugin
%pom_disable_module org.eclipse.swtbot.updatesite
%pom_disable_module org.eclipse.swtbot.nebula.gallery
%pom_disable_module org.eclipse.swtbot.nebula.gallery.finder
%pom_disable_module org.eclipse.swtbot.nebula.gallery.finder.test
%pom_disable_module org.eclipse.swtbot.nebula.nattable
%pom_disable_module org.eclipse.swtbot.nebula.nattable.finder
%pom_disable_module org.eclipse.swtbot.nebula.nattable.finder.test

%mvn_package "::pom::" __noinstall
%mvn_package ":*.test" __noinstall
%mvn_package ":*.test.*" __noinstall
%mvn_package ":*.{examples,demo}" __noinstall
%mvn_package "::jar:sources:"


%build
%mvn_build -j -f

%install
%mvn_install

# Remove uneeded extra symlinks
# (these are optional deps of log4j, which we don't need at runtime)
# Needed until fp-p2 can grow the features to make this possible in a better way
sed -i -e '/\(geronimo\|mail\)/d' .mfiles %{buildroot}/%{_datadir}/eclipse/droplets/swtbot/fragment.info
rm -f %{buildroot}/%{_datadir}/eclipse/droplets/swtbot/plugins/*{mail,geronimo}*

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12568 |21mr|eclipse-testng-6.14.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag %{version}.201902250526

Name:      eclipse-testng
Version:   6.14.3
Release:   2
Summary:   TestNG plug-in for Eclipse
License:   ASL 2.0
URL:       http://testng.org

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

Source0:   https://github.com/cbeust/testng-eclipse/archive/%{gittag}/eclipse-testng-%{version}.tar.gz

# Add gson to classpath because in Fedora, testng-remote does not bundle it
Patch0:    0001-Add-gson-to-classpath-because-in-Fedora-testng-remot.patch

BuildRequires: tycho
BuildRequires: maven-enforcer-plugin
BuildRequires: eclipse-jdt >= 1:4.10.0-1
BuildRequires: eclipse-m2e-core
BuildRequires: guava
BuildRequires: junit
BuildRequires: hamcrest-core
BuildRequires: testng >= 6.14.3
BuildRequires: testng-remote >= 1.3.0
BuildRequires: snakeyaml
BuildRequires: google-gson

Requires: eclipse-jdt >= 1:4.10.0-1
Requires: testng >= 6.14.3
Requires: testng-remote >= 1.3.0
Requires: snakeyaml
Requires: google-gson

%description
The Eclipse TestNG plug-in integrates the TestNG testing framework into the
Eclipse IDE.

%prep
%setup -q -n testng-eclipse-%{gittag}
%patch0 -p1

# remove bundled libs
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

# remove plugin not in Fedora
%pom_remove_plugin "pl.project13.maven:git-commit-id-plugin"
%pom_remove_plugin "pl.project13.maven:git-commit-id-plugin" testng-eclipse-plugin
sed -i -e 's/${git.branch}/%{gittag}/' -e 's/${git.commit.id}/%{gittag}/' -e 's/${git.build.version}/%{version}/' \
  testng-eclipse-plugin/src/main/resources/git.properties

# build against fedora packaged libs
build-jar-repository -s -p testng-eclipse-plugin/lib \
  testng-remote/testng-remote-dist-shaded google-gson/gson
mv testng-eclipse-plugin/lib/testng-remote_testng-remote-dist-shaded.jar testng-eclipse-plugin/lib/testng-remote.jar
sed -i -e '2iEclipse-BundleShape: dir' testng-eclipse-plugin/META-INF/MANIFEST.MF

# TestNG package doesn't supply an eclipse feature
sed -i -e '/org.testng.p2.feature/d' testng-eclipse-feature/feature.xml

# No need to build update site in RPM builds
%pom_disable_module "testng-eclipse-update-site"

# Don't install poms
%mvn_package "::pom::" __noinstall

%build
%mvn_build -j

%install
%mvn_install

# need to recreate the symlinks to libraries that were setup in "prep"
# this will cause some benign dangling-symlink rpmlint warnings
pushd %{buildroot}%{_datadir}/eclipse/droplets/testng/plugins/org.testng.eclipse_*
rm lib/*.jar
build-jar-repository -s -p lib \
  testng-remote/testng-remote-dist-shaded google-gson/gson
mv lib/testng-remote_testng-remote-dist-shaded.jar lib/testng-remote.jar
popd

%files -f .mfiles
%doc README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12569 |21mr|eclipse-tm-terminal-4.5.100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_tag 6b04c544d33c31b1f3da168d0e606d8d20ed541d

# Set this to avoid building CDT and remotes bundles to eliminate
# a circular dep on CDT->tm-terminal->remote->CDT
%bcond_with bootstrap

# RSE server locations
%global rseserver_install   %{_datadir}/eclipse-rse-server
%global rseserver_java      %{_datadir}/java/eclipse-rse-server
%global rseserver_config    %{_sysconfdir}/sysconfig/rseserver

Name: eclipse-tm-terminal
Version: 4.5.100
Release: 1
Summary: Terminal plug-in for Eclipse

License: EPL-2.0
URL: https://www.eclipse.org/tm/
Source0: https://git.eclipse.org/c/tm/org.eclipse.tm.git/snapshot/org.eclipse.tm-%{git_tag}.tar.xz

Patch0: 0001-Fix-feature-includes.patch
# Use Authen::pam to authenticate clients
Patch1: eclipse-rse-server-auth-pl.patch
# Fix classpath in daemon and server scripts to point
# to install locations
Patch2: eclipse-rse-server-scripts.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires: tycho
BuildRequires: tycho-extras
BuildRequires: apache-commons-net
BuildRequires: eclipse-egit
BuildRequires: eclipse-license2
BuildRequires: zip
%if %{without bootstrap}
# Needed for additional terminal connectors
BuildRequires: eclipse-cdt
BuildRequires: eclipse-remote
BuildRequires: rxtx >= 2.2-0.15
%endif

%description
An integrated Eclipse View for the local command prompt (console) or
remote hosts (SSH, Telnet, Serial).

%package rse
Summary: Eclipse Remote System Explorer
Recommends: perl-interpreter
Recommends: perl-Authen-PAM

# Obsoletes/Provides added in F30
Obsoletes: eclipse-rse < %{version}-%{release}
Provides:  eclipse-rse = %{version}-%{release}
Obsoletes: eclipse-rse-server < %{version}-%{release}
Provides:  eclipse-rse-server = %{version}-%{release}

%description rse
Remote System Explorer (RSE) is a framework and toolkit in Eclipse Workbench
that allows you to connect and work with a variety of remote systems.

%if %{without bootstrap}
%package connectors
Summary: Additional connectors for Terminal plug-in for Eclipse

%description connectors
Additional connectors for Terminal plug-in for Eclipse.
%endif

%package sdk
Summary: Terminal SDK plug-in for Eclipse
Requires: %{name} = %{version}-%{release}
%if %{without bootstrap}
Requires: %{name}-connectors = %{version}-%{release}
%endif

%description sdk
Sources and developer resources for the Terminal plug-in for Eclipse.

%prep
%setup -q -n org.eclipse.tm-%{git_tag}
%patch0 -p1
%patch1
%patch2

# Don't need to build repo for RPM builds
%pom_disable_module site
%pom_remove_plugin :target-platform-configuration
%pom_remove_plugin :tycho-packaging-plugin

# Fixup erroneous license info, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=538094
sed -i -e '/license-feature-version/s/1\.0\.1\.qualifier/0.0.0/' \
  $(find -name feature.xml)

# Don't ship tests, examples, etc
%pom_disable_module tests rse
%pom_disable_module org.eclipse.tm.terminal.test terminal/plugins
%pom_disable_module examples rse
%pom_disable_module org.eclipse.rse.ui.capabilities rse/plugins

# When bootstrapping, disable the plugins and features that
# create cyclical dependencies
%if %{with bootstrap}
%pom_disable_module org.eclipse.tm.terminal.connector.process terminal/plugins
%pom_disable_module org.eclipse.tm.terminal.connector.local terminal/plugins
%pom_disable_module org.eclipse.tm.terminal.connector.local.feature terminal/features
%pom_disable_module org.eclipse.tm.terminal.connector.local.sdk.feature terminal/features
%pom_disable_module org.eclipse.tm.terminal.connector.remote terminal/plugins
%pom_disable_module org.eclipse.tm.terminal.connector.remote.feature terminal/features
%pom_disable_module org.eclipse.tm.terminal.connector.remote.sdk.feature terminal/features
%pom_xpath_remove "import[@feature='org.eclipse.tm.terminal.connector.local.sdk.feature']" \
  terminal/features/org.eclipse.tm.terminal.sdk.feature/feature.xml
%endif

# Remove cycles between subpackages
%pom_xpath_remove "import[@feature='org.eclipse.tm.terminal.connector.local.feature']" \
  terminal/features/org.eclipse.tm.terminal.feature/feature.xml

# Fix trying to include non-existent files
sed -i -e "s|feature.properties,\\\|feature.properties|g" terminal/features/org.eclipse.tm.terminal.view.feature/build.properties
sed -i -e "s|p2.inf||g" terminal/features/org.eclipse.tm.terminal.view.feature/build.properties
sed -i -e '/index/d' rse/doc/*/build.properties

# Enable serial connector
sed -i -e '/<modules>/s/<!-- Bug 536800 remove from reactor//' -e '/modules>/s/-->//' \
  terminal/{plugins,features}/pom.xml

# No need to install poms
%mvn_package "::pom::" __noinstall
%mvn_package "::jar:sources{,-feature}:" sdk
%mvn_package ":*.sdk.feature" sdk
%mvn_package ":*.sdk" sdk
%mvn_package ":*.rse*" rse
%mvn_package ":*.dstore*" rse
%mvn_package ":org.eclipse.tm.terminal.connector.{local,process,remote,cdtserial,serial}*" connectors
%mvn_package ":"

%build
%if %{without bootstrap}
%mvn_build -j -- -Pcdtserial,rxtxserial
%else
%mvn_build -j -- -P"!cdtserial,!rxtxserial"
%endif

%install
%mvn_install

install -d -m 755 %{buildroot}%{rseserver_install}
install -d -m 755 %{buildroot}%{rseserver_java}
install -d -m 755 %{buildroot}%{rseserver_config}

pushd %{buildroot}%{_datadir}/eclipse/droplets/tm-terminal-rse/plugins
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.rse.services.dstore_*.jar dstore_miners.jar
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.dstore.core_*.jar dstore_core.jar
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.dstore.extra_*.jar dstore_extra_server.jar
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.rse.services_*.jar clientserver.jar
# Remove server-specific jar files from plug-ins
jarname=`ls org.eclipse.rse.services.dstore_*.jar`
zip -d $jarname dstore_miners.jar
jarname=`ls org.eclipse.dstore.core_*.jar`
zip -d $jarname dstore_core.jar
jarname=`ls org.eclipse.dstore.extra_*.jar`
zip -d $jarname dstore_extra_server.jar
jarname=`ls org.eclipse.rse.services_*.jar`
zip -d $jarname clientserver.jar
popd

pushd rse/plugins/org.eclipse.rse.services.dstore
pushd serverruntime/scripts/linux
cp *.pl %{buildroot}%{rseserver_install}
popd
pushd serverruntime/data
cp *.properties %{buildroot}%{rseserver_config}
cp *.dat %{buildroot}%{rseserver_install}
popd

%files -f .mfiles

%files rse -f .mfiles-rse
%{rseserver_install}
%{rseserver_java}
%dir %{rseserver_config}
%config(noreplace) %{rseserver_config}/ssl.properties
%config(noreplace) %{rseserver_config}/rsecomm.properties

%if %{without bootstrap}
%files connectors -f .mfiles-connectors
%endif

%files sdk -f .mfiles-sdk


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12570 |21mr|eclipse-usage-4.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag %{version}.AM1

Name:             eclipse-usage
Version:          4.11.0
Release:          1
Summary:          Usage reporting plug-ins for Eclipse
License:          EPL-1.0 and ASL 2.0
URL:              http://tools.jboss.org/

# Generate tarball with: ./get-jbosstools.sh
Source0:          jbosstools-%{gittag}.tar.xz
Source1:          get-jbosstools.sh

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:    tycho
BuildRequires:    tycho-extras
BuildRequires:    eclipse-epp-logging
BuildRequires:    maven-install-plugin
BuildRequires:    maven-plugin-build-helper

%description
Usage reporting plug-ins for Eclipse.

%prep
%setup -q -n jbosstools-%{gittag}

# Fix whitespace error in xml declaration
sed -i -e '1s/\t//' jbosstools-build/parent/pom.xml

# Fix perms on license
chmod -x jbosstools-base/foundation/features/org.jboss.tools.foundation.license.feature/license.html

# Remove unnecessary plugins from parent pom
%pom_remove_plugin org.jboss.tools.tycho-plugins:repository-utils jbosstools-build/parent
%pom_remove_plugin org.jacoco:jacoco-maven-plugin jbosstools-build/parent
%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin jbosstools-build/parent
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin jbosstools-build/parent
# need BOTH permutations here because we have 1.1 (maven-download-plugin) and 1.2 (download-maven-plugin) in parent pom
%pom_remove_plugin com.googlecode.maven-download-plugin:maven-download-plugin jbosstools-build/parent
%pom_remove_plugin com.googlecode.maven-download-plugin:download-maven-plugin jbosstools-build/parent

# Remove dep on jgit
%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:dependencies" jbosstools-build/parent
%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:configuration/pom:sourceReferences" jbosstools-build/parent
%pom_xpath_set "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:configuration/pom:timestampProvider" "default" jbosstools-build/parent

# Disable everything except for usage plugin
%pom_disable_module org.jboss.tools.foundation.feature jbosstools-base/foundation/features
%pom_disable_module org.jboss.tools.foundation.security.linux.feature jbosstools-base/foundation/features
%pom_disable_module org.jboss.tools.foundation.test.feature jbosstools-base/foundation/features
%pom_disable_module plugins jbosstools-base/foundation
%pom_disable_module tests jbosstools-base/foundation
%pom_disable_module org.jboss.tools.usage.test.feature jbosstools-base/usage/features
%pom_disable_module org.jboss.tools.usage.test jbosstools-base/usage/tests

# No need to install poms or license feature
%mvn_package "::pom::" __noinstall
%mvn_package ":org.jboss.tools.foundation.license.feature" __noinstall

%build
pushd jbosstools-build
%mvn_build -j -- install -f parent/pom.xml
popd

%mvn_build -j -- -Dno-target-platform -f jbosstools-base/pom.xml -e

%install
%mvn_install

%files -f .mfiles
%license jbosstools-base/usage/plugins/org.jboss.tools.usage/about.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12571 |21mr|eclipse-webtools-3.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           eclipse-webtools
Version:        3.13.0
Release:        1
Summary:        Eclipse Webtools Projects

License:        EPL-1.0 and EPL-2.0
URL:            http://www.eclipse.org/webtools/

# Generate tarball with script:
# $ sh get-sources.sh
# https://git.eclipse.org/c/servertools/webtools.servertools.git
Source0:        %{name}-%{version}.tar.xz

# Missing plugin (maybe this should be provided by eclipselink package in future)
Source1:        http://git.eclipse.org/c/eclipselink/eclipselink.runtime.git/snapshot/eclipselink.runtime-7816e2b523adf5e65ad0c245f13ca4b59ff329f2.tar.bz2

# Remove org.mozilla.javascript bundle from jsdt feature
Patch0:         %{name}-rm-moz-js-from-jsdt-feature.patch

# Remove bundles org.eclipse.persistence.moxy and
# org.eclipse.jpt.jaxb.eclipselink.core.schemagen from
# webtools.dali/jaxb/features/org.eclipse.jpt.jaxb.eclipselink.feature/feature.xml
Patch1:         %{name}-rm-unavailable-plugins-from-jaxb-eclipselink-feature.patch

# Remove version checks from
# webtools.sourceediting/features/org.eclipse.wst.xml_core.feature/feature.xml
Patch2:         %{name}-rm-version-checks-from-xml_core-feature.patch

# Remove version checks of org.jdom, javax.wsdl, and
# disable javax.jws, javax.xml.stream and javax.xml.ws from
# webtools.webservices.jaxws/features/org.eclipse.jst.ws.cxf.feature/feature.xml
Patch3:         %{name}-rm-version-checks-and-obstacle-bundles-from-jst.ws.cxf-feature.patch

# Fix xerces api change (a method needs to return a String)
Patch4:         %{name}-xerces-api-change.patch

# Remove dependence on obsolete axis 1.x library
Patch10:        remove-axis-from-webtools.webservices.patch

# Remove version check for javax.persistence
Patch13:        %{name}-javax.persistence-version.patch

# Remove more version checks
Patch14:        %{name}-rm-version-checks-from-jst.ws.jaxws-feature.patch

# https://git.eclipse.org/c/servertools/webtools.servertools.git/log/plugins/org.eclipse.wst.server.preview/src/org/eclipse/wst/server/preview/internal/WTPErrorHandler.java
Patch15:        eclipse-webtools-new-jetty-fix.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  maven-local
BuildRequires:  tycho
BuildRequires:  tycho-extras
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  eclipse-dtp
BuildRequires:  eclipse-emf-runtime
BuildRequires:  eclipse-gef >= 3.11.0
BuildRequires:  eclipse-jdt
BuildRequires:  eclipse-license2
BuildRequires:  eclipse-pde
BuildRequires:  eclipse-xsd
BuildRequires:  apache-commons-collections
BuildRequires:  apache-commons-lang
BuildRequires:  velocity
BuildRequires:  osgi(javax.servlet-api)
BuildRequires:  osgi(javax.xml.rpc-api)
BuildRequires:  osgi(javax.wsdl)
BuildRequires:  osgi(java_cup.runtime)
BuildRequires:  osgi(com.googlecode.json-simple)
BuildRequires:  osgi(org.apache.wsil4j)
BuildRequires:  osgi(org.apache.commons.discovery)
BuildRequires:  osgi(org.eclipse.jetty.http)
BuildRequires:  osgi(org.eclipse.jetty.webapp)
BuildRequires:  osgi(org.jdom)
BuildRequires:  osgi(org.uddi4j)
BuildRequires:  osgi(osgi.core)
BuildRequires:  osgi(com.google.javascript)
BuildRequires:  osgi(org.mozilla.javascript)

%description
Eclipse Webtools. This contains sub-packages for different sub-projects
of Eclipse Webtools project, including Server Tools, SourceEditing Tools,
Webservices Tools, Java EE Tools, JSF Tools, and Dali (JPA) Tools. 

%package        common
Summary:        WST Common UI and Faceted Project Framework
Requires:       eclipse-gef >= 3.11.0

%description common
This package includes WST common UI functionality, and faceted projects
framework. The Faceted Project Framework allows the plugin developer to think
of projects as composed of units of functionality, otherwise known as facets,
that can be added and removed by the user.

%package        servertools
Summary:        Eclipse Server Tools Framework

%description servertools
This package includes Server tools framework UI, and adapters for use
with the WST and JST server tools.

%package        sourceediting
Summary:        Eclipse Web Developer, XML, XPath, and XSL Tools
Requires:       osgi(com.googlecode.json-simple)

%description sourceediting
Eclipse Web Developer Tools, including HTML, CSS, XHTML, etc.

XML, DTD and XML Schema Editors, validators, and XML Catalog support

PscyhoPath XPath 2.0 Processor Feature

XSLT Editor, validator, launching and debugging support

JavaScript Development Tools

%package        javaee
Summary:        Eclipse Java EE Developer Tools
Requires:       osgi(org.apache.commons.discovery)
# Obsoletes/Provides added in F27
Provides:       %{name}-jsf = %{version}-%{release}
Obsoletes:      %{name}-jsf < 3.10.0-1

%description javaee
Eclipse Java EE Developer Tools including APIs and models for working
with JavaServer Pages (JSP), JavaServer Faces (JSF) and the creation
of Dynamic Web Projects, the Web Services Explorer, WSDL Editor,
WS-I Validator, Service Policy Preferences, and more.

%package        dali
Summary:        Eclipse Dali Java Persistence (JPA) Tools

%description dali
Dali Java Persistence Tools with JPA and JAXB Support.

%prep
%setup -q -n %{name}-%{version}
%patch0
%patch1
%patch2
%patch3
%patch4
pushd webtools.webservices
%patch10 -p1
popd
%patch13
%patch14
# enable on new version Jetty
%if 0
%patch15 -p1
%endif

tar xfj %{SOURCE1}
pushd eclipselink.runtime-7816e2b523adf5e65ad0c245f13ca4b59ff329f2/
cp -r jpa/org.eclipse.persistence.jpa.jpql/ ../webtools.dali/jpa/plugins/
popd
rm -r eclipselink.runtime-7816e2b523adf5e65ad0c245f13ca4b59ff329f2/

# Find and delete any hidden jar or zip files
find -name *.class -type f -delete
find -name *.jar -type f -delete
find -name *.zip -type f -delete

# Fixup erroneous license info, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=538094
sed -i -e '/license-feature-version/s/.\..\..\.qualifier/0.0.0/' \
  $(find -name feature.xml)

sed -i -e '/^ javax\.xml/d' -e '/com.sun.xml.bind/s/.*/Import-Package: javax.xml.bind,javax.xml.bind.annotation/' \
  webtools.jsdt/bundles/org.eclipse.wst.jsdt.chromium.wipbackend.*/META-INF/MANIFEST.MF

# Configure org.eclipse.persistence.jpa.jpql to be built as part of this build
%pom_xpath_inject pom:project/pom:modules \
    "<module>jpa/plugins/org.eclipse.persistence.jpa.jpql</module>" webtools.dali
%pom_set_parent org.eclipse.webtools.dali:org.eclipse.webtools.dali:3.4.0-SNAPSHOT \
    webtools.dali/jpa/plugins/org.eclipse.persistence.jpa.jpql
%pom_xpath_inject pom:project/pom:parent "<relativePath>../../../</relativePath>" \
    webtools.dali/jpa/plugins/org.eclipse.persistence.jpa.jpql

# Build useless jar that is needed to build but does nothing
# See http://dev.eclipse.org/mhonarc/lists/wtp-dev/msg08607.html
# and PERFMSR.README.txt in org.eclipse.perfmsr.core.stub/
CORE_RUNTIME_JAR=$(ls %{_prefix}/lib/eclipse/plugins/org.eclipse.core.runtime_*)
pushd webtools.common/plugins/org.eclipse.jem.util/org.eclipse.perfmsr.core.stub/src
    javac -cp $(build-classpath osgi-core):${CORE_RUNTIME_JAR} \
        org/eclipse/perfmsr/core/*.java
    jar cf ../perfmsr.jar org/
popd

# Fix OSGi headers in manifests
## Remove some version ranges
## Don't Require-Bundle stuff provided by JDK
find -name MANIFEST.MF \
    -exec sed -i \
        -e "s/javax.jws;.*//" \
        -e "s/javax.xml.ws.*;version=.*,\?//" \
        -e "s/\(org.eclipse.jetty.*\);bundle-version=..[0-9\.]\+,[0-9\.]\+../\1/g" \
    {} \;

# Fix some specifics that the above breaks
sed -i -e "s/\(org.eclipse.jdt.apt.core;.*\),/\1/" \
    webtools.webservices/jaxws/bundles/org.eclipse.jst.ws.cxf.creation.ui/META-INF/MANIFEST.MF
sed -i -e "s/\(org.eclipse.jdt.apt.core;.*\),/\1/" \
    webtools.webservices/jaxws/bundles/org.eclipse.jst.ws.cxf.creation.core/META-INF/MANIFEST.MF
find -name MANIFEST.MF -exec sed -i -e "/^ *$/d" {} \;

# Axis bundles are deprecated, let's stop shipping them
# see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=531352
%pom_disable_module tests/org.eclipse.jst.ws.axis.consumption.core.tests webtools.webservices/core
%pom_disable_module bundles/org.eclipse.jst.ws.axis.consumption.core webtools.webservices/core
%pom_disable_module bundles/org.eclipse.jst.ws.axis.consumption.ui webtools.webservices/core
%pom_disable_module bundles/org.eclipse.jst.ws.axis.creation.ui webtools.webservices/core
%pom_xpath_remove "import[@plugin='org.eclipse.jst.ws.axis.consumption.core']" webtools.webservices/core/features/javaee-web/org.eclipse.jst.enterprise_ui.feature/feature.xml
%pom_xpath_remove "import[@plugin='org.eclipse.jst.ws.axis.consumption.ui']"   webtools.webservices/core/features/javaee-web/org.eclipse.jst.enterprise_ui.feature/feature.xml
%pom_xpath_remove "import[@plugin='org.eclipse.jst.ws.axis.creation.ui']"      webtools.webservices/core/features/javaee-web/org.eclipse.jst.enterprise_ui.feature/feature.xml

# Disable the Dali diagram editor (requires graphiti)
%pom_disable_module jpa_diagram_editor/features/org.eclipse.jpt.jpadiagrameditor.feature webtools.dali
%pom_disable_module jpa_diagram_editor/features/org.eclipse.jpt.jpadiagrameditor_sdk.feature webtools.dali
%pom_disable_module jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.branding webtools.dali
%pom_disable_module jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.doc.user webtools.dali
%pom_disable_module jpa_diagram_editor/plugins/org.eclipse.jpt.jpadiagrameditor.ui webtools.dali

# Disable capabilities because they hide stuff by default
%pom_disable_module org.eclipse.wtp.jee.capabilities webtools.javaee/plugins
%pom_disable_module org.eclipse.wtp.javascript.capabilities webtools.sourceediting/web/bundles
%pom_disable_module org.eclipse.wtp.web.capabilities webtools.sourceediting/web/bundles
%pom_disable_module org.eclipse.wtp.xml.capabilities webtools.sourceediting/xml/bundles

# Disable building all repositories and tests for now
%pom_disable_module webtools.releng pom-build-everything.xml
%pom_disable_module webtools.repositories pom-build-everything.xml
%pom_disable_module site webtools.common
%pom_disable_module site webtools.dali
%pom_disable_module site webtools.javaee
%pom_disable_module site webtools.jsf
%pom_disable_module site webtools.jsdt
%pom_disable_module site webtools.servertools
%pom_disable_module site webtools.sourceediting
%pom_disable_module site webtools.webservices
%pom_disable_module tests webtools.common
%pom_disable_module org.eclipse.wst.common_tests.feature webtools.common/features
%pom_disable_module tests webtools.javaee
%pom_disable_module tests webtools.jsdt
%pom_disable_module tests webtools.sourceediting/{core,json,web,xml,xpath,xsl}
%pom_disable_module org.eclipse.wst.json_tests.feature webtools.sourceediting/json/features
%pom_disable_module org.eclipse.wst.web_tests.feature webtools.sourceediting/web/features
%pom_disable_module org.eclipse.wst.xml_tests.feature webtools.sourceediting/xml/features
%pom_disable_module org.eclipse.wst.xsl_tests.feature webtools.sourceediting/xsl/features
%pom_disable_module jsf/features/org.eclipse.jst.jsf.tests.feature webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.common.runtime.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.contentassist.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.context.symbol.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.core.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.designtime.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.facesconfig.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.facesconfig.ui.test webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.metadataprocessingtests2 webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.metadata.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.test.util webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.ui.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.jsf.validation.el.tests webtools.jsf
%pom_disable_module jsf/tests/org.eclipse.jst.pagedesigner.tests webtools.jsf
%pom_disable_module tests/org.eclipse.wst.internet.monitor.core.tests webtools.servertools
%pom_disable_module tests/org.eclipse.wst.server.core.tests webtools.servertools
%pom_disable_module tests/org.eclipse.wst.server.http.core.tests webtools.servertools
%pom_disable_module tests/org.eclipse.wst.server.util.tests webtools.servertools
%pom_disable_module features/org.eclipse.jst.server_adapters.ext_tests.feature webtools.servertools
%pom_disable_module features/org.eclipse.jst.server_tests.feature webtools.servertools
%pom_disable_module features/org.eclipse.wst.server_tests.feature webtools.servertools
%pom_disable_module assembly/features/org.eclipse.jpt.assembly.feature webtools.dali
%pom_disable_module assembly/features/org.eclipse.jpt_sdk.assembly.feature webtools.dali
%pom_disable_module assembly/features/org.eclipse.jpt.tests.assembly.feature webtools.dali
%pom_disable_module common/features/org.eclipse.jpt.common.tests.feature webtools.dali
%pom_disable_module common/tests/org.eclipse.jpt.common.core.tests webtools.dali
%pom_disable_module common/tests/org.eclipse.jpt.common.ui.tests webtools.dali
%pom_disable_module common/tests/org.eclipse.jpt.common.utility.tests webtools.dali
%pom_disable_module jpa/features/org.eclipse.jpt.jpa.eclipselink.feature webtools.dali
%pom_disable_module jpa/features/org.eclipse.jpt.jpa.eclipselink_sdk.feature webtools.dali
%pom_disable_module jpa/plugins/org.eclipse.jpt.jpa.eclipselink.core.ddlgen webtools.dali
%pom_disable_module jpa/features/org.eclipse.jpt.jpa.tests.feature webtools.dali
%pom_disable_module jpa/tests/org.eclipse.jpt.jpa.core.tests.extension.resource webtools.dali
%pom_disable_module jpa/tests/org.eclipse.jpt.jpa.db.tests webtools.dali
%pom_disable_module jaxb/features/org.eclipse.jpt.jaxb.eclipselink_sdk.feature webtools.dali
%pom_disable_module jaxb/plugins/org.eclipse.jpt.jaxb.eclipselink.core.schemagen webtools.dali
%pom_disable_module jaxb/features/org.eclipse.jpt.jaxb.eclipselink.tests.feature webtools.dali
%pom_disable_module jaxb/features/org.eclipse.jpt.jaxb.tests.feature webtools.dali
%pom_disable_module jpa_diagram_editor/features/org.eclipse.jpt.jpadiagrameditor.tests.feature webtools.dali
%pom_disable_module jpa_diagram_editor/tests/org.eclipse.jpt.jpadiagrameditor.ui.tests webtools.dali
%pom_disable_module org.eclipse.wst.jsdt_tests.feature webtools.jsdt/features
%pom_disable_module org.eclipse.wst.jsdt.chromium_tests.feature webtools.jsdt/features
sed -i -e '/>tests\//d' webtools.webservices/{core,jaxws}/pom.xml
%pom_disable_module features/org.eclipse.wst.ws_tests.feature webtools.webservices/core
%pom_disable_module org.eclipse.jst.ws.cxf_tests.feature webtools.webservices/jaxws/features
%pom_disable_module org.eclipse.jst.ws.jaxws.assembly_tests.feature webtools.webservices/jaxws/features
%pom_disable_module org.eclipse.jst.ws.jaxws.dom_tests.feature webtools.webservices/jaxws/features
%pom_disable_module org.eclipse.jst.ws.jaxws_tests.feature webtools.webservices/jaxws/features
%pom_disable_module org.eclipse.jst.enterprise_tests.feature webtools.webservices/core/features/javaee-web
%pom_disable_module org.eclipse.jst.web_tests.feature webtools.webservices/core/features/javaee-web

# Remove additional dep on javax.jws
%pom_xpath_remove pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration \
    webtools.webservices/jaxws/bundles/org.eclipse.jst.ws.jaxws.core
%pom_xpath_remove pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration \
    webtools.webservices/jaxws/bundles/org.eclipse.jst.ws.jaxws.ui
%pom_xpath_remove pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration \
    webtools.webservices/jaxws/tests/org.eclipse.jst.ws.jaxws.core.tests

# No source bundles for external units
%pom_xpath_inject "pom:plugin[pom:artifactId = 'tycho-source-feature-plugin']/pom:executions/pom:execution/pom:configuration/pom:excludes" \
    "<plugin id=\"org.jdom\"/><plugin id=\"javax.wsdl\"/>" webtools.webservices/jaxws/features/org.eclipse.jst.ws.cxf.feature
%pom_xpath_inject "pom:plugin[pom:artifactId = 'tycho-source-feature-plugin']/pom:executions/pom:execution/pom:configuration/pom:excludes" \
    "<plugin id=\"org.jdom\"/><plugin id=\"javax.wsdl\"/>" webtools.webservices/jaxws/features/org.eclipse.jst.ws.jaxws.feature

# Tighten up dep on xerces
sed -i -e '/org.apache.xerces/s/2\..\.0/2.11.0/' $(find webtools.*/bundles -name MANIFEST.MF)

# Don't use strict project settings, webtools is not ready (fixes 'unnecessary cast' errors and API access errors, etc)
%pom_xpath_inject "pom:plugin[pom:artifactId = 'tycho-compiler-plugin']/pom:configuration" \
  "<useProjectSettings>false</useProjectSettings>" wtp-parent

# Remove log4j
%pom_xpath_remove "import[@plugin='org.apache.log4j']" \
  webtools.sourceediting/xsl/features/org.eclipse.wst.xsl.feature/feature.xml \
  webtools.webservices/core/features/org.eclipse.wst.ws_core.feature/feature.xml
%pom_xpath_remove "import[@plugin='javax.mail']" \
  webtools.webservices/core/features/org.eclipse.wst.ws_core.feature/feature.xml
%pom_xpath_remove "plugin[@id='javax.xml']" \
  webtools.sourceediting/xml/features/org.eclipse.wst.xml_core.feature/feature.xml

%pom_xpath_set pom:project/pom:build/pom:pluginManagement/pom:plugins/pom:plugin/pom:configuration/pom:sourceReferences/pom:generate "false" wtp-parent

# Remove pre-built indexes
for index in $(find -name indexed_docs) ; do
  rm $(dirname $index)/*
  %pom_xpath_remove "plugin/extension[@point='org.eclipse.help.toc']/index" $(dirname $(dirname $index))/plugin.xml
done

# Don't install poms
%mvn_package "::pom::" __noinstall

# SDK bits
%mvn_package ":*sdk{,.feature,.documentation}" __noinstall
%mvn_package ":*.assembly.feature" __noinstall
%mvn_package ":*{.api.doc,.doc.api,.doc.isv,.doc.dev}" __noinstall
%mvn_package ":::sources{,-feature}:" __noinstall

# Common features and plugins
%mvn_package "org.eclipse.webtools.common:" common
%mvn_package ":org.eclipse.jst.common.frameworks" common
%mvn_package ":org.eclipse.wst.server.core" common
%mvn_package ":org.eclipse.wst.server.discovery" common

# Server Tools features and plugins
%mvn_package "org.eclipse.webtools.servertools:" servertools

# Source Editing features and plugins
%mvn_package "org.eclipse.webtools.jsdt*:" sourceediting
%mvn_package "org.eclipse.webtools.sourceediting:" sourceediting
%mvn_package ":org.eclipse.wst.web{,.ui,.ui.infopop}" sourceediting

# Java EE features and plugins
%mvn_package "org.eclipse.webtools.ejb:" javaee
%mvn_package "org.eclipse.webtools.javaee:" javaee
%mvn_package "org.eclipse.webtools.webservices:" javaee
%mvn_package "org.eclipse.webtools.jsf:" javaee

# Dali features and plugins
%mvn_package "org.eclipse.webtools.dali:" dali
%mvn_package "org.eclipse.persistence:" dali

# Symlink system lib and make dir-shaped bundle
ln -s $(build-classpath json_simple) webtools.jsdt/bundles/org.eclipse.wst.jsdt.chromium/lib/json_simple/json_simple-1.1.jar
echo "Eclipse-BundleShape: dir" >> webtools.jsdt/bundles/org.eclipse.wst.jsdt.chromium/META-INF/MANIFEST.MF

%build
# Qualifier generated from last modification time of source tarball
QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d%H%M)
%mvn_build -j -f -- -DforceContextQualifier=$QUALIFIER -f pom-build-everything.xml

%install
%mvn_install

# Re-symlink system lib
pushd %{buildroot}%{_datadir}/eclipse/droplets/webtools-sourceediting/plugins/org.eclipse.wst.jsdt.chromium_*/lib/json_simple
f=$(ls json_simple*)
rm $f
ln -s $(build-classpath json_simple) $f
popd

# Remove uneeded extra symlinks
# (these are optional deps of velocity, which we don't need at runtime)
sed -i -e '/\(geronimo\|mail\|log4j\|avalon\|oro\|xml\.bind\)/d' .mfiles-* %{buildroot}/%{_datadir}/eclipse/droplets/webtools-*/fragment.info
rm -f %{buildroot}/%{_datadir}/eclipse/droplets/webtools-*/plugins/*{mail,geronimo,log4j,avalon,oro,xml.bind}*

%files common -f .mfiles-common
%license webtools.common/features/org.eclipse.jst.common_core.feature.patch/epl-v10.html

%files servertools -f .mfiles-servertools

%files sourceediting -f .mfiles-sourceediting

%files javaee -f .mfiles-javaee

%files dali -f .mfiles-dali


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12572 |21mr|ed-1.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GNU line editor
Name:		ed
Version:	1.18
Release:	1
License:	GPLv3+
Group:		Text tools
Url:		http://www.gnu.org/software/ed/ed.html
Source0:	ftp://ftp.gnu.org/pub/gnu/ed/ed-%{version}.tar.lz
Source1:	ftp://ftp.gnu.org/pub/gnu/ed/ed-%{version}.tar.lz.sig
BuildRequires:	lzip

%description
Ed is a line-oriented text editor, used to create, display, and modify text
files (both interactively and via shell scripts). For most purposes, ed has
been replaced in normal usage by full-screen editors (emacs and vi, for
example).

Ed was the original UNIX editor, and may be used by some programs. In general,
however, you probably don't need to install it and you probably won't use it
much.

%prep
%setup -q

%build
%configure \
	--bindir=/bin \
	--exec-prefix=/ \
	CFLAGS="%{optflags}" CC="%__cc" \
	CXXFLAGS="%{optflags}" \
	LDFLAGS="%{?ldflags}"

%make

%check
# all tests must pass
make check

%install
%makeinstall_std

%files
%doc NEWS README AUTHORS ChangeLog
/bin/ed
/bin/red
%{_infodir}/ed.info*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12573 |21mr|ed25519-java-0.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          ed25519-java
Version:       0.3.0
Release:       4
Summary:       Implementation of EdDSA (Ed25519) in Java
License:       CC0
Group:          Development/Java
URL:           https://github.com/str4d/ed25519-java
Source0:       https://github.com/str4d/ed25519-java/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-all)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is an implementation of EdDSA in Java. Structurally, it
is based on the ref10 implementation in SUPERCOP (see
http://ed25519.cr.yp.to/software.html).

There are two internal implementations:

* A port of the radix-2^51 operations in ref10
  - fast and constant-time, but only useful for Ed25519.
* A generic version using BigIntegers for calculation
  - a bit slower and not constant-time, but compatible
    with any EdDSA parameter specification.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

# Unwanted tasks
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
# Unavailable plugin
%pom_remove_plugin :nexus-staging-maven-plugin
# Make dep on sun.security.x509 optional, inject an Import-Package directive
%pom_xpath_inject "pom:configuration/pom:instructions" \
  "<Import-Package>sun.security.x509;resolution:=optional,*</Import-Package>"

%mvn_file net.i2p.crypto:eddsa %{name} eddsa

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12574 |21mr|edidbins-1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generic monitor edid files
Name:		edidbins
Version:	1.1
Release:	5
License:	LGPLv2+
Group:		System/Kernel and hardware
Url:		https://github.com/torvalds/linux/tree/master/Documentation/EDID
# The tarball for these files was generated from the cloned sources from the above url.
# The files were copied to a directory edidbins and then compressed with
# "tar -Jcvf kernel-edidbins edidbins/*" It is unlikely that these sources will change.
# Proprietary edid's should have their own package.
Source0:	kernel-edidbins-%{version}.tar.xz
BuildRequires:	binutils
BuildRequires:	dos2unix
BuildRequires:	util-linux
BuildArch:	noarch

%description
Provides five binary edid files to give to support kernel edid loading feature.

%files
%defattr(0644,root,root,0755)
/lib/firmware/edid/*.bin

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
%make 

%install
mkdir -p %{buildroot}/lib/firmware/edid
cp -avf *.bin %{buildroot}/lib/firmware/edid

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12575 |21mr|edid-decode-20170207-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date	20200127

Summary:	EDID parse tool
Name:		edid-decode
Version:	20170207
Release:	2
License:	MIT
Group:		System/X11
Url:		https://git.linuxtv.org/hverkuil/edid-decode.git/
Source0:	%{name}-%{date}.tar.xz
# (cjw) add a basic man page
Source1:	edid-decode.1

%description
The edid-decode tool parses a given EDID from a file or stdin and
shows the contents on stdout. It handles both the regular video info
and the audio info often provided by HDMI displays.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}

%build
%make CFLAGS="%{optflags}"

%install
%makeinstall_std
mkdir -p %{buildroot}%{_mandir}/man1
install -m 0644 %{SOURCE1} %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12576 |21mr|editres-1.0.7-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A dynamic resource editor for X Toolkit applications
Name:		editres
Version:	1.0.7
Release:	13
License:	MIT
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
Patch0:		editres-1.0.7-fix-str-fmt.patch
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)

%description
Editres is a dynamic resource editor for X Toolkit applications.

%files
%{_bindir}/editres
%{_datadir}/X11/app-defaults/Editres
%{_datadir}/X11/app-defaults/Editres-color
%{_mandir}/man1/editres.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12577 |21mr|edk2-20200801stable-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# RPM doesn't detect that code in /usr/share is python3, this forces it
# https://fedoraproject.org/wiki/Changes/Avoid_usr_bin_python_in_RPM_Build#Python_bytecompilation
%global __python %{__python3}

%global edk2_stable_date 202008
%global edk2_stable_str  edk2-stable%{edk2_stable_date}
%global openssl_version  1.1.1g
%global qosb_version     20190521-gitf158f12
%global softfloat_version 20180726-gitb64af41

# Enable this to skip secureboot enrollment, if problems pop up
%global skip_enroll 0

%define qosb_testing 0

%ifarch %{x86_64}
%define qosb_testing 1
%endif

%ifarch %{ix86} %{x86_64}
%define build_ovmf_ia32 1
%endif
%ifarch %{x86_64}
%define build_ovmf_x64 1
%endif
%ifarch aarch64
%define build_aavmf_aarch64 1
%endif
%ifarch %{arm}
%define build_aavmf_arm 1
%endif

Name:           edk2
# Even though edk2 stable releases are YYYYMM, we need
# to use YYYMMDD to avoid needing to bump package epoch
# due to previous 'git' Version:
Version:        %{edk2_stable_date}01stable
Release:        1
Summary:        EFI Development Kit II
Group:		Emulators
License:        BSD-2-Clause-Patent
URL:            http://www.tianocore.org/edk2/

Source0:        https://github.com/tianocore/edk2/archive/%{edk2_stable_str}.tar.gz#/%{edk2_stable_str}.tar.gz
Source1:        openssl-%{openssl_version}-hobbled.tar.xz
Source2:        ovmf-whitepaper-c770f8c.txt
#Source3:        https://github.com/puiterwijk/qemu-ovmf-secureboot/archive/v{qosb_version}/qemu-ovmf-secureboot-{qosb_version}.tar.gz
Source3:        qemu-ovmf-secureboot-%{qosb_version}.tar.xz
Source4:        softfloat-%{softfloat_version}.tar.xz
Source5:        RedHatSecureBootPkKek1.pem
Source10:       hobble-openssl
Source11:       build-iso.sh
Source12:       update-tarball.sh
Source13:       openssl-patch-to-tarball.sh

# Fedora-specific JSON "descriptor files"
Source14:       40-edk2-ovmf-x64-sb-enrolled.json
Source15:       50-edk2-ovmf-x64-sb.json
Source16:       60-edk2-ovmf-x64.json
Source17:       40-edk2-ovmf-ia32-sb-enrolled.json
Source18:       50-edk2-ovmf-ia32-sb.json
Source19:       60-edk2-ovmf-ia32.json
Source20:       70-edk2-aarch64-verbose.json
Source21:       70-edk2-arm-verbose.json

# non-upstream patches
Patch0001:	0001-OvmfPkg-silence-EFI_D_VERBOSE-0x00400000-in-NvmExpre.patch
Patch0002:	0002-OvmfPkg-silence-EFI_D_VERBOSE-0x00400000-in-the-DXE-.patch
Patch0003:	0003-OvmfPkg-enable-DEBUG_VERBOSE.patch
Patch0004:	0004-OvmfPkg-increase-max-debug-message-length-to-512.patch
Patch0005:	0005-advertise-OpenSSL-on-TianoCore-splash-screen-boot-lo.patch
Patch0006:	0006-OvmfPkg-QemuVideoDxe-enable-debug-messages-in-VbeShi.patch
Patch0007:	0007-MdeModulePkg-TerminalDxe-add-other-text-resolutions.patch
Patch0008:	0008-MdeModulePkg-TerminalDxe-set-xterm-resolution-on-mod.patch
Patch0009:	0009-OvmfPkg-take-PcdResizeXterm-from-the-QEMU-command-li.patch
Patch0010:	0010-ArmVirtPkg-take-PcdResizeXterm-from-the-QEMU-command.patch
Patch0011:	0011-OvmfPkg-allow-exclusion-of-the-shell-from-the-firmwa.patch
Patch0012:	0012-ArmPlatformPkg-introduce-fixed-PCD-for-early-hello-m.patch
Patch0013:	0013-ArmPlatformPkg-PrePeiCore-write-early-hello-message-.patch
Patch0014:	0014-ArmVirtPkg-set-early-hello-message-RH-only.patch
Patch0015:	0015-Tweak-the-tools_def-to-support-cross-compiling.patch
Patch0016:	0016-BaseTools-do-not-build-BrotliCompress-RH-only.patch

ExclusiveArch:  %{ix86} %{x86_64} %{arm} aarch64

BuildRequires:  gcc gcc-c++
BuildRequires:  python3-devel
BuildRequires:  pkgconfig(uuid)
BuildRequires:  iasl
BuildRequires:  nasm
BuildRequires:  qemu-img
BuildRequires:  genisoimage
BuildRequires:  bc
BuildRequires:  sed

# These are for QOSB
BuildRequires:  python3-requests
BuildRequires:  qemu-system-x86
%if %{?qosb_testing}
# This is used for testing the enrollment: builds are run in a chroot, lacking
# a kernel. The testing is only performed on x86_64 for now, but we can't make
# the BuildRequires only on a specific arch, as that'd come through in the SRPM
# NOTE: The actual enrollment needs to happen in all builds for all architectures,
# because OVMF is built as noarch, which means that koji enforces that the build
# results don't actually differ per arch, and then it picks a random arches' build
# for the actual RPM.
BuildRequires:  kernel
%endif

%description
EDK II is a development code base for creating UEFI drivers, applications
and firmware images.

%package tools
Summary:        EFI Development Kit II Tools
Group:		Development/Tools

%description tools
This package provides tools that are needed to
build EFI executables and ROMs using the GNU tools.

%package tools-python
Summary:        EFI Development Kit II Tools
Requires:       python3
BuildArch:      noarch

%description tools-python
This package provides tools that are needed to build EFI executables
and ROMs using the GNU tools.  You do not need to install this package;
you probably want to install edk2-tools only.

%package tools-doc
Summary:        Documentation for EFI Development Kit II Tools
BuildArch:      noarch
%description tools-doc
This package documents the tools that are needed to
build EFI executables and ROMs using the GNU tools.

%package qosb
Summary:        Tool to enroll secureboot
Requires:       python3
Group:		Development/Tools
Buildarch:      noarch
%description qosb
This package contains QOSB (QEMU OVMF Secure Boot), which can enroll OVMF
variable files to enforce Secure Boot.


%if 0%{?build_ovmf_x64:1}
%package ovmf
Summary:        Open Virtual Machine Firmware
# OVMF includes the Secure Boot and IPv6 features; it has a builtin OpenSSL
# library.
License:        BSD-2-Clause-Patent and OpenSSL
Provides:       bundled(openssl)
Group:		Emulators
Provides:       OVMF = %{version}-%{release}
Obsoletes:      OVMF < %{version}-%{release}
BuildArch:      noarch
%description ovmf
EFI Development Kit II
Open Virtual Machine Firmware (x64)
%endif

%if 0%{?build_ovmf_ia32:1}
%package ovmf-ia32
Summary:        Open Virtual Machine Firmware
# OVMF includes the Secure Boot and IPv6 features; it has a builtin OpenSSL
# library.
License:        BSD-2-Clause-Patent and OpenSSL
Provides:       bundled(openssl)
BuildArch:      noarch
%description ovmf-ia32
EFI Development Kit II
Open Virtual Machine Firmware (ia32)
%endif

%if 0%{?build_aavmf_aarch64:1}
%package aarch64
Summary:        AARCH64 Virtual Machine Firmware
Group:		Emulators
Provides:       AAVMF = %{version}-%{release}
Obsoletes:      AAVMF < %{version}-%{release}
BuildArch:      noarch
# No Secure Boot for AAVMF yet, but we include OpenSSL for the IPv6/HTTP boot stack.
License:        BSD-2-Clause-Patent and OpenSSL
Provides:       bundled(openssl)
%description aarch64
EFI Development Kit II
AARCH64 UEFI Firmware
%endif

%if 0%{?build_aavmf_arm:1}
%package arm
Summary:        ARM Virtual Machine Firmware
BuildArch:      noarch
Group:		Emulators
# No Secure Boot for ARMv7, but we include OpenSSL for the IPv6/HTTP boot stack.
License:        BSD-2-Clause-Patent and OpenSSL
%description arm
EFI Development Kit II
ARMv7 UEFI Firmware
%endif


%prep
%setup -q -n edk2-%{edk2_stable_str}

# Ensure old shell and binary packages are not used
rm -rf EdkShellBinPkg
rm -rf EdkShellPkg
rm -rf FatBinPkg
rm -rf ShellBinPkg

# copy whitepaper into place
cp -a -- %{SOURCE2} .
# extract openssl into place
tar -xf %{SOURCE1} --strip-components=1 --directory CryptoPkg/Library/OpensslLib/openssl
# extract softfloat into place
tar -xf %{SOURCE4} --strip-components=1 --directory ArmPkg/Library/ArmSoftFloatLib/berkeley-softfloat-3/

# Extract QOSB
tar -xf %{SOURCE3}
mv qemu-ovmf-secureboot-%{qosb_version}/README.md README.qosb
mv qemu-ovmf-secureboot-%{qosb_version}/LICENSE LICENSE.qosb

%autopatch -p1
base64 --decode < MdeModulePkg/Logo/Logo-OpenSSL.bmp.b64 > MdeModulePkg/Logo/Logo-OpenSSL.bmp

# Extract OEM string from the RH cert, as described here
# https://bugzilla.tianocore.org/show_bug.cgi?id=1747#c2
sed \
  -e 's/^-----BEGIN CERTIFICATE-----$/4e32566d-8e9e-4f52-81d3-5bb9715f9727:/' \
  -e '/^-----END CERTIFICATE-----$/d' \
  %{_sourcedir}/RedHatSecureBootPkKek1.pem \
| tr -d '\n' \
> PkKek1.oemstr


%build
export PYTHON_COMMAND=%{__python3}
source ./edksetup.sh

# compiler
CC_FLAGS="-t GCC5"

# parallel builds
JOBS="%{?_smp_mflags}"
JOBS="${JOBS#-j}"
if test "$JOBS" != ""; then
        CC_FLAGS="${CC_FLAGS} -n $JOBS"
fi

# common features
CC_FLAGS="$CC_FLAGS --cmd-len=65536 -b DEBUG --hash"
CC_FLAGS="$CC_FLAGS -D NETWORK_IP6_ENABLE"
CC_FLAGS="$CC_FLAGS -D NETWORK_TLS_ENABLE"
CC_FLAGS="$CC_FLAGS -D NETWORK_HTTP_BOOT_ENABLE"
CC_FLAGS="$CC_FLAGS -D TPM2_ENABLE"

# ovmf features
OVMF_FLAGS="${CC_FLAGS}"
OVMF_FLAGS="${OVMF_FLAGS} -D FD_SIZE_2MB"

# ovmf + secure boot features
OVMF_SB_FLAGS="${OVMF_FLAGS}"
OVMF_SB_FLAGS="${OVMF_SB_FLAGS} -D SECURE_BOOT_ENABLE"
OVMF_SB_FLAGS="${OVMF_SB_FLAGS} -D SMM_REQUIRE"
OVMF_SB_FLAGS="${OVMF_SB_FLAGS} -D EXCLUDE_SHELL_FROM_FD"

# arm firmware features
ARM_FLAGS="${CC_FLAGS}"

unset MAKEFLAGS
%make_build -C BaseTools \
  EXTRA_OPTFLAGS="%{optflags}" \
  EXTRA_LDFLAGS="%{__global_ldflags}"
sed -i -e 's/-Werror//' Conf/tools_def.txt


%if 0%{?cross:1}
export GCC5_IA32_PREFIX="x86_64-linux-gnu-"
export GCC5_X64_PREFIX="x86_64-linux-gnu-"
export GCC5_AARCH64_PREFIX="aarch64-linux-gnu-"
export GCC5_ARM_PREFIX="arm-linux-gnu-"
%endif

# build ovmf (x64)
%if 0%{?build_ovmf_x64:1}
mkdir -p ovmf
build ${OVMF_FLAGS} -a X64 -p OvmfPkg/OvmfPkgX64.dsc
cp Build/OvmfX64/*/FV/OVMF_*.fd ovmf/
rm -rf Build/OvmfX64

# build ovmf (x64) with secure boot
build ${OVMF_SB_FLAGS} -a IA32 -a X64 -p OvmfPkg/OvmfPkgIa32X64.dsc
cp Build/Ovmf3264/*/FV/OVMF_CODE.fd ovmf/OVMF_CODE.secboot.fd

# build ovmf (x64) shell iso with EnrollDefaultKeys
cp Build/Ovmf3264/*/X64/Shell.efi ovmf/
cp Build/Ovmf3264/*/X64/EnrollDefaultKeys.efi ovmf
sh %{_sourcedir}/build-iso.sh ovmf/

%if !%{skip_enroll}
%__python3 qemu-ovmf-secureboot-%{qosb_version}/ovmf-vars-generator \
    --qemu-binary /usr/bin/qemu-system-x86_64 \
    --ovmf-binary ovmf/OVMF_CODE.secboot.fd \
    --ovmf-template-vars ovmf/OVMF_VARS.fd \
    --uefi-shell-iso ovmf/UefiShell.iso \
    --oem-string "$(< PkKek1.oemstr)" \
    --skip-testing \
    ovmf/OVMF_VARS.secboot.fd
%else
# This isn't going to actually give secureboot, but makes json files happy
# if we need to test disabling ovmf-vars-generator
cp ovmf/OVMF_VARS.fd ovmf/OVMF_VARS.secboot.fd
%endif
%endif


# build ovmf-ia32
%if 0%{?build_ovmf_ia32:1}
mkdir -p ovmf-ia32
build ${OVMF_FLAGS} -a IA32 -p OvmfPkg/OvmfPkgIa32.dsc
cp Build/OvmfIa32/*/FV/OVMF_CODE*.fd ovmf-ia32/
# cp VARS files from from ovmf/, which are all we need
%ifarch %{ix86}
cp Build/OvmfIa32/*/FV/OVMF_VARS*.fd ovmf-ia32/
%else
cp ovmf/OVMF_VARS*.fd ovmf-ia32/
%endif
rm -rf Build/OvmfIa32

# build ovmf-ia32 with secure boot
build ${OVMF_SB_FLAGS} -a IA32 -p OvmfPkg/OvmfPkgIa32.dsc
cp Build/OvmfIa32/*/FV/OVMF_CODE.fd ovmf-ia32/OVMF_CODE.secboot.fd

# build ovmf-ia32 shell iso with EnrollDefaultKeys
cp Build/OvmfIa32/*/IA32/Shell.efi ovmf-ia32/Shell.efi
cp Build/OvmfIa32/*/IA32/EnrollDefaultKeys.efi ovmf-ia32/EnrollDefaultKeys.efi
sh %{_sourcedir}/build-iso.sh ovmf-ia32/
%endif


# build aarch64 firmware
%if 0%{?build_aavmf_aarch64:1}
mkdir -p aarch64
build $ARM_FLAGS -a AARCH64 -p ArmVirtPkg/ArmVirtQemu.dsc
cp Build/ArmVirtQemu-AARCH64/DEBUG_*/FV/*.fd aarch64
dd of="aarch64/QEMU_EFI-pflash.raw" if="/dev/zero" bs=1M count=64
dd of="aarch64/QEMU_EFI-pflash.raw" if="aarch64/QEMU_EFI.fd" conv=notrunc
dd of="aarch64/vars-template-pflash.raw" if="/dev/zero" bs=1M count=64
%endif


# build ARMv7 firmware
%if 0%{?build_aavmf_arm:1}
mkdir -p arm
build $ARM_FLAGS -a ARM -p ArmVirtPkg/ArmVirtQemu.dsc
cp Build/ArmVirtQemu-ARM/DEBUG_*/FV/*.fd arm
dd of="arm/QEMU_EFI-pflash.raw" if="/dev/zero" bs=1M count=64
dd of="arm/QEMU_EFI-pflash.raw" if="arm/QEMU_EFI.fd" conv=notrunc
dd of="arm/vars-template-pflash.raw" if="/dev/zero" bs=1M count=64
%endif


%install
cp CryptoPkg/Library/OpensslLib/openssl/LICENSE LICENSE.openssl
mkdir -p %{buildroot}%{_bindir} \
         %{buildroot}%{_datadir}/%{name}/Conf \
         %{buildroot}%{_datadir}/%{name}/Scripts
install BaseTools/Source/C/bin/* \
        %{buildroot}%{_bindir}
install BaseTools/BinWrappers/PosixLike/LzmaF86Compress \
        %{buildroot}%{_bindir}
install BaseTools/BuildEnv \
        %{buildroot}%{_datadir}/%{name}
install BaseTools/Conf/*.template \
        %{buildroot}%{_datadir}/%{name}/Conf
install BaseTools/Scripts/GccBase.lds \
        %{buildroot}%{_datadir}/%{name}/Scripts

cp -R BaseTools/Source/Python %{buildroot}%{_datadir}/%{name}/Python
for i in build BPDG Ecc GenDepex GenFds GenPatchPcdTable PatchPcdValue TargetTool Trim UPT; do
echo '#!/bin/sh
export PYTHONPATH=%{_datadir}/%{name}/Python
exec python3 '%{_datadir}/%{name}/Python/$i/$i.py' "$@"' > %{buildroot}%{_bindir}/$i
  chmod +x %{buildroot}%{_bindir}/$i
done

# For distro-provided firmware packages, the specification
# (https://git.qemu.org/?p=qemu.git;a=blob;f=docs/interop/firmware.json)
# says the JSON "descriptor files" to be searched in this directory:
# `/usr/share/firmware/`.  Create it.
mkdir -p %{buildroot}/%{_datadir}/qemu/firmware

mkdir -p %{buildroot}/usr/share/%{name}
%if 0%{?build_ovmf_x64:1}
cp -a ovmf %{buildroot}/usr/share/%{name}
# Libvirt hardcodes this directory name
mkdir %{buildroot}/usr/share/OVMF
ln -sf ../%{name}/ovmf/OVMF_CODE.fd                %{buildroot}/usr/share/OVMF
ln -sf ../%{name}/ovmf/OVMF_CODE.secboot.fd        %{buildroot}/usr/share/OVMF
ln -sf ../%{name}/ovmf/OVMF_VARS.fd                %{buildroot}/usr/share/OVMF
ln -sf ../%{name}/ovmf/OVMF_VARS.secboot.fd        %{buildroot}/usr/share/OVMF
ln -sf ../%{name}/ovmf/UefiShell.iso               %{buildroot}/usr/share/OVMF

for f in %{_sourcedir}/*edk2-ovmf-x64*.json; do
    install -pm 644 $f %{buildroot}/%{_datadir}/qemu/firmware
done
%endif


%if 0%{?build_ovmf_ia32:1}
cp -a ovmf-ia32 %{buildroot}/usr/share/%{name}

for f in %{_sourcedir}/*edk2-ovmf-ia32*.json; do
    install -pm 644 $f %{buildroot}/%{_datadir}/qemu/firmware
done
%endif


%if 0%{?build_aavmf_aarch64:1}
cp -a aarch64 %{buildroot}/usr/share/%{name}
# Libvirt hardcodes this directory name
mkdir %{buildroot}/usr/share/AAVMF
ln -sf ../%{name}/aarch64/QEMU_EFI-pflash.raw      %{buildroot}/usr/share/AAVMF/AAVMF_CODE.fd
ln -sf ../%{name}/aarch64/vars-template-pflash.raw %{buildroot}/usr/share/AAVMF/AAVMF_VARS.fd

for f in %{_sourcedir}/*edk2-aarch64*.json; do
    install -pm 644 $f %{buildroot}/%{_datadir}/qemu/firmware
done
%endif


%if 0%{?build_aavmf_arm:1}
cp -a arm %{buildroot}/usr/share/%{name}
ln -sf ../%{name}/arm/QEMU_EFI-pflash.raw          %{buildroot}/usr/share/AAVMF/AAVMF32_CODE.fd

for f in %{_sourcedir}/*edk2-arm*.json; do
    install -pm 644 $f %{buildroot}/%{_datadir}/qemu/firmware
done
%endif

%if 0%{?py_byte_compile:1}
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Python_Appendix/#manual-bytecompilation
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/edk2/Python
%endif

install qemu-ovmf-secureboot-%{qosb_version}/ovmf-vars-generator %{buildroot}%{_bindir}
#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/ovmf-vars-generator


%files tools
%license License.txt
%license LICENSE.openssl
%{_bindir}/DevicePath
%{_bindir}/EfiRom
%{_bindir}/GenCrc32
%{_bindir}/GenFfs
%{_bindir}/GenFv
%{_bindir}/GenFw
%{_bindir}/GenSec
%{_bindir}/LzmaCompress
%{_bindir}/LzmaF86Compress
%{_bindir}/Split
%{_bindir}/TianoCompress
%{_bindir}/VfrCompile
%{_bindir}/VolInfo
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/BuildEnv
%{_datadir}/%{name}/Conf
%{_datadir}/%{name}/Scripts

%files tools-python
%{_bindir}/build
%{_bindir}/BPDG
%{_bindir}/Ecc
%{_bindir}/GenDepex
%{_bindir}/GenFds
%{_bindir}/GenPatchPcdTable
%{_bindir}/PatchPcdValue
%{_bindir}/TargetTool
%{_bindir}/Trim
%{_bindir}/UPT
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/Python

%files tools-doc
%doc BaseTools/UserManuals/*.rtf

%files qosb
%license LICENSE.qosb
%doc README.qosb
%{_bindir}/ovmf-vars-generator

%if 0%{?build_ovmf_x64:1}
%files ovmf
%license OvmfPkg/License.txt
%license LICENSE.openssl
%doc OvmfPkg/README
%doc ovmf-whitepaper-c770f8c.txt
%dir /usr/share/%{name}
%dir /usr/share/%{name}/ovmf
%dir /usr/share/qemu/firmware
/usr/share/%{name}/ovmf/OVMF*.fd
/usr/share/%{name}/ovmf/*.efi
/usr/share/%{name}/ovmf/*.iso
/usr/share/qemu/firmware/*edk2-ovmf-x64*.json
/usr/share/OVMF
%endif

%if 0%{?build_ovmf_ia32:1}
%files ovmf-ia32
%license OvmfPkg/License.txt
%license LICENSE.openssl
%doc OvmfPkg/README
%doc ovmf-whitepaper-c770f8c.txt
%dir /usr/share/%{name}
%dir /usr/share/%{name}/ovmf-ia32
%dir /usr/share/qemu/firmware
/usr/share/%{name}/ovmf-ia32/OVMF*.fd
/usr/share/%{name}/ovmf-ia32/*.efi
/usr/share/%{name}/ovmf-ia32/*.iso
/usr/share/qemu/firmware/*edk2-ovmf-ia32*.json
%endif

%if 0%{?build_aavmf_aarch64:1}
%files aarch64
%license OvmfPkg/License.txt
%license LICENSE.openssl
%dir /usr/share/%{name}
%dir /usr/share/%{name}/aarch64
%dir /usr/share/qemu/firmware
/usr/share/%{name}/aarch64/QEMU*.fd
/usr/share/%{name}/aarch64/*.raw
/usr/share/qemu/firmware/*edk2-aarch64*.json
/usr/share/AAVMF/AAVMF_*
%endif

%if 0%{?build_aavmf_arm:1}
%files arm
%license OvmfPkg/License.txt
%license LICENSE.openssl
%dir /usr/share/%{name}
%dir /usr/share/%{name}/arm
%dir /usr/share/qemu/firmware
/usr/share/%{name}/arm/QEMU*.fd
/usr/share/%{name}/arm/*.raw
/usr/share/qemu/firmware/*edk2-arm*.json
/usr/share/AAVMF/AAVMF32_*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12578 |21mr|efibootmgr-18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# A subdirectory in /boot/efi/EFI/ where the boot files for ROSA are located.
%global efidir rosa
%global commit	1904f9cd5a48207d49e393ac8de824f54ccfb697
Summary:	EFI Boot Manager
Name:		efibootmgr
Version:	18
Release:	1
Epoch:		1
License:	GPL
Group:		System/Kernel and hardware
URL:		https://github.com/rhboot/efibootmgr
Source0:	%{URL}/archive/%{commit}.zip

BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(efivar) >= 37

%description
%{name} is a Linux user-space application to modify the Intel
Extensible Firmware Interface (EFI) Boot Manager. This application can
create and destroy boot entries, change the boot order, change the
next running boot option, and more.

%files
%doc AUTHORS COPYING README.md TODO
%{_sbindir}/efibootmgr
%{_bindir}/efibootmgr
%{_sbindir}/efibootdump
%{_mandir}/man8/*

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}
%ifarch %{e2k}
# -MG is an unrecognized option for lcc
sed -i 's,-MG,,' Make.deps
%endif

%build
%ifarch %{e2k}
# error: type qualifier is meaningless on cast type
export CFLAGS="%{optflags} -Wno-error=ignored-qualifiers"
%endif
%make_build EFIDIR=%{efidir}

%install
%make_install EFIDIR=%{efidir}

# When used from kcm_grub2, grub2-install is unable to find efibootmgr
# because /usr/sbin/ is not in $PATH. This is a bug in kcm_grub2 which
# has been there for several years now.
mkdir -p %{buildroot}%{_bindir}
ln -s %{_sbindir}/efibootmgr %{buildroot}%{_bindir}/efibootmgr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12579 |21mr|efi-rpm-macros-4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Common RPM Macros for building EFI-related packages
Name: efi-rpm-macros
Version: 4
Group: System/Base
Release: 3
License: GPLv3+
URL: https://github.com/rhboot/%{name}/
BuildRequires: git-core
BuildRequires: sed
BuildArch: noarch

Source0: https://github.com/rhboot/%{name}/releases/download/%{version}/%{name}-%{version}.tar.bz2

%global debug_package %{nil}
%global _efi_vendor_ %(eval echo $(. /etc/os-release && echo $ID))

%description
%{name} provides a set of RPM macros for use in EFI-related packages.

%package -n efi-srpm-macros
Summary: Common SRPM Macros for building EFI-related packages
BuildArch: noarch
Requires: rpm

%description -n efi-srpm-macros
efi-srpm-macros provides a set of SRPM macros for use in EFI-related packages.

%package -n efi-filesystem
Summary: The basic directory layout for EFI machines
BuildArch: noarch
Requires: filesystem

%description -n efi-filesystem
The efi-filesystem package contains the basic directory layout for EFI
machine bootloaders and tools.

%prep
%autosetup -S git -n %{name}-%{version}
git config --local --add efi.vendor "%{_efi_vendor_}"
git config --local --add efi.esp-root /boot/efi
git config --local --add efi.arches "x86_64 aarch64 %{arm} %{ix86}"

%build
%make_build clean all

%install
%make_install

%files -n efi-srpm-macros
%license LICENSE
%doc README
%{_rpmmacrodir}/macros.efi-srpm
%{_rpmconfigdir}/brp-boot-efi-times

%files -n efi-filesystem
%defattr(0700,root,root,-)
%dir /boot/efi
%dir /boot/efi/EFI
%dir /boot/efi/EFI/BOOT
%dir /boot/efi/EFI/%{_efi_vendor_}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12580 |21mr|efitools-1.9.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools to manipulate EFI secure boot keys and signatures
Name:		efitools
Version:	1.9.2
Release:	3
Group:		System/Kernel and hardware
License:	GPL
Url:		https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git
Source0:	https://git.kernel.org/pub/scm/linux/kernel/git/jejb/efitools.git/snapshot/efitools-%{version}.tar.gz
##https://bugs.gentoo.org/701152
Patch0:		fix_typo.patch
##https://gitea.de/marco/aports/commit/c8f276e61b44fb233f6e26cae65eb20919b5d8c5
Patch1:		fix-wchar_t.patch
BuildRequires:	pkgconfig(openssl)
BuildRequires:	gnu-efi
BuildRequires:	sbsigntools
BuildRequires:	gnu-efi-devel
BuildRequires:	help2man
BuildRequires:	openssl
BuildRequires:	perl(File::Slurp)
Requires:	sbsigntools

%description
This package installs a variety of tools for manipulating keys and binary
signatures on UEFI secure boot platforms.
The tools provide access to the keys and certificates stored in the
secure variables of the UEFI firmware, usually in the NVRAM area.

%files
%doc README COPYING
%{_bindir}/*
%{_datadir}/efitools/efi/*.efi
%{_mandir}/*/*

#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# multithread build fail on i686
%make_build -j1

%install
make \
	DESTDIR=%{buildroot} \
	install

# these files are installed as docs
rm -fv %{buildroot}%{_datadir}/efitools/README
rm -fv %{buildroot}%{_datadir}/efitools/COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12581 |21mr|efivar-38-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define date 20220214
%define major           1
%define libname         %mklibname %{name} %{major}
%define develname       %mklibname -d %{name}

Name:			efivar
Version:		38
Release:		1
Epoch:			1
Summary:		Tools to manage UEFI variables
License:		LGPLv2.1
Group:			System/Kernel and hardware
URL:			https://github.com/rhboot/efivar
Source0:		https://github.com/rhboot/%{name}/releases/download/%{version}/efivar-%{version}.tar.bz2
#Source0:		efivar-git%{date}.tar.gz
Patch0:         0001-Fix-the-march-issue-for-riscv64.patch

Requires:		%{libname} = %{EVRD}

BuildRequires:	pkgconfig(popt)
BuildRequires:	mandoc
BuildRequires:	glibc-static-devel

%description
efivar provides a simple command line interface to the UEFI variable facility.

%files
%doc COPYING README.md
%{_bindir}/efivar
%{_bindir}/efisecdb
%{_mandir}/man1/*

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:        Library to manage UEFI variables
Group:          System/Libraries

%description -n %{libname}
Library to allow for the simple manipulation of UEFI variables.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{develname}
Summary:        Development files for %{name}
Group:          Development/C
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{develname}
%{develname} contains libraries and header files for
developing applications that use %{name}.

%files -n %{develname}
%{_mandir}/man3/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}
%ifarch %{e2k}
# unrecognized options for lcc
sed -i '/^CFLAGS_GCC/,+1d' src/include/defaults.mk
sed -i 's/-MG//' src/include/deps.mk
# error: type qualifier is meaningless on cast type
sed -i src/include/defaults.mk \
	-e 's/\$(ERRORS)/$(ERRORS) -Wno-error=ignored-qualifiers/'
%endif

%build
make -j1 \
  libdir=%{_libdir} \
  bindir=%{_bindir} \
  CFLAGS="%{optflags} -Wstrict-aliasing=3" \
  LDFLAGS="%{ldflags}"

# -Wstring-aliasing=3 enables slower but more accurate detection of
# aliasing issues than level 2 used by default, less false positives.

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12582 |21mr|eglexternalplatform-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	EGL External Platform Interface headers
Name:		eglexternalplatform
Version:	1.1
Release:	2
License:	MIT
Group:		Development/X11
Url:		https://github.com/NVIDIA/eglexternalplatform
Source0:	https://github.com/NVIDIA/eglexternalplatform/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
EGL External Platform Interface headers.

#----------------------------------------------------------------------------

%package devel
Summary:	EGL External Platform Interface headers
Group:		Development/X11

%description devel
This package contains the header files for developing applications
that use EGL External Platform Interface.

%files devel
%doc README.md samples
%{_includedir}/eglexternalplatform.h
%{_includedir}/eglexternalplatformversion.h
%{_datadir}/pkgconfig/eglexternalplatform.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_includedir}/
install -p -m 0644 interface/eglexternalplatform.h %{buildroot}%{_includedir}/
install -p -m 0644 interface/eglexternalplatformversion.h %{buildroot}%{_includedir}/
mkdir -p %{buildroot}%{_datadir}/pkgconfig/
install -p -m 0644 eglexternalplatform.pc %{buildroot}%{_datadir}/pkgconfig/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12583 |21mr|egl-gbm-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname nvidia-egl-gbm %{major}

Summary:        The NVIDIA GBM EGL external platform library
Name:           egl-gbm
Version:        1.1.0
Release:        2
License:        MIT
Group:		System/X11
URL:            https://github.com/NVIDIA/egl-gbm
Source0:        https://github.com/NVIDIA/egl-gbm/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	egl-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(eglexternalplatform)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libglvnd)

%description
The NVIDIA GBM EGL external platform library

#-----------------------------------------------------------

%package -n %{libname}
Summary:	The NVIDIA GBM EGL external platform library
Group:		System/Libraries
Provides:	egl-gbm = %{EVRD}

%if %{mdvver} <= 202110
# package was renamed inside rosa2021.1
Conflicts:	egl-gbm < 1.1.0-2
Obsoletes:	egl-gbm < 1.1.0-2
%endif

%description -n %{libname}
The NVIDIA GBM EGL external platform library

%files -n %{libname}
%license COPYING
%{_libdir}/libnvidia-egl-gbm.so.%{major}*

#-----------------------------------------------------------

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install
# Delete unversioned .so
rm %{buildroot}%{_libdir}/libnvidia-egl-gbm.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12584 |21mr|egl-wayland-1.1.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname nvidia-egl-wayland %{major}
%define devname %mklibname nvidia-egl-wayland -d

Summary:	Wayland EGL External Platform library
Name:		egl-wayland
Version:	1.1.11
Release:	1
License:	MIT
Group:		System/X11
Url:		https://github.com/NVIDIA/egl-wayland
Source0:	https://github.com/NVIDIA/egl-wayland/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	10_nvidia_wayland.json
Source2:	15_nvidia_gbm.json
BuildRequires:	meson
BuildRequires:	egl-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(eglexternalplatform)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl-backend)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-server)
# Required for directory ownership
Requires:	libglvnd

%description
Wayland EGL External Platform library.

%files
%doc README.md
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%{_datadir}/egl/egl_external_platform.d/15_nvidia_gbm.json

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Wayland EGL External Platform shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
Wayland EGL External Platform shared library.

%files -n %{libname}
%{_libdir}/libnvidia-egl-wayland.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Wayland EGL External Platform library development package
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	wayland-eglstream-protocols = %{EVRD}

%description -n %{devname}
Wayland EGL External Platform library development package.

%files -n %{devname}
%{_libdir}/libnvidia-egl-wayland.so
%{_libdir}/pkgconfig/wayland-eglstream.pc
%{_datadir}/pkgconfig/wayland-eglstream-protocols.pc
%{_datadir}/wayland-eglstream/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -fno-strict-aliasing
%meson
%meson_build


%install
%meson_install
install -m 0755 -d %{buildroot}%{_datadir}/egl/egl_external_platform.d/
install -pm 0644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_datadir}/egl/egl_external_platform.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12585 |21mr|ehcache-core-2.6.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          ehcache-core
Version:       2.6.11
Release:       7
Summary:       Easy Hibernate Cache
License:       ASL 2.0
URL:           http://ehcache.org/
# svn export http://svn.terracotta.org/svn/ehcache/tags/ehcache-core-2.6.11
# find ehcache-core-2.6.11 -name '*.jar' -delete
# tools/maven-ant-tasks-2.0.7.jar
# src/test/resources/resourceclassloader/private-classpath.jar
# find ehcache-core-2.6.11 -name '*.class' -delete
# tar cJf ehcache-core-2.6.11.tar.xz ehcache-core-2.6.11
Source0:       %{name}-%{version}.tar.xz
Patch0:        %{name}-2.6.7-java8.patch

BuildRequires: maven-local
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.transaction:jta)
BuildRequires: mvn(net.sf.ehcache:ehcache-parent:pom:)
BuildRequires: mvn(net.sf.ehcache:sizeof-agent)
BuildRequires: mvn(org.codehaus.mojo:rmic-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:xml-maven-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-resources)
BuildRequires: mvn(org.hibernate:hibernate-core:3)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-jdk14)

# test
%if 0
BuildRequires: mvn(com.sun.xsom:xsom)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(javassist:javassist)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.hibernate:hibernate:2.1.8)
BuildRequires: mvn(org.apache.derby:derby)
BuildRequires: mvn(org.beanshell:bsh:1.3.0)
BuildRequires: mvn(org.codehaus.btm:btm)
BuildRequires: mvn(org.hamcrest:hamcrest-core:1.2)
BuildRequires: mvn(org.hamcrest:hamcrest-library:1.2)
BuildRequires: mvn(org.hibernate:hibernate-ehcache:3.3.2.GA)
BuildRequires: mvn(org.mockito:mockito-core)
%endif

Requires:      hibernate3 >= 3.6.10-7

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Ehcache is a pure Java, in-process cache.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
%patch0 -p0
# Use net.sf.ehcache:ehcache-parent:2.5
# Remove its support because it breaks build during javadoc task
%pom_remove_parent
# disable doclint
%pom_remove_plugin :maven-javadoc-plugin
%pom_xpath_inject "pom:project" "<groupId>net.sf.ehcache</groupId>"

%pom_remove_plugin :gmaven-plugin
%pom_remove_plugin :lifecycle-mapping
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-source-plugin

# don't generate source archive
%pom_remove_plugin :maven-assembly-plugin

# Make sure we require version '3' of Hibernate
%pom_xpath_set "pom:dependency[pom:groupId = 'org.hibernate']/pom:version" 3

%pom_change_dep :servlet-api :javax.servlet-api:3.1.0

# Don't use buildnumber-plugin, because jna is required (and currently broken)
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'buildnumber-git']"

# circular deps
# org.hibernate hibernate-ehcache 3.3.2.GA
# unavailable deps
%pom_remove_dep net.sf.hibernate:hibernate
%pom_xpath_remove "pom:dependency[pom:scope = 'test']"

%pom_xpath_remove "pom:dependency/pom:scope"

# disable embedded ehcache-sizeof-agent.jar copy
%pom_remove_plugin :maven-dependency-plugin

%mvn_file :%{name} %{name}
%mvn_alias :%{name} net.sf.ehcache:ehcache

%build

# tests skipped. cause: missing dependencies
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license src/assemble/EHCACHE-CORE-LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license src/assemble/EHCACHE-CORE-LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12586 |21mr|ehcache-parent-2.3-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          ehcache-parent
Version:       2.3
Release:       18
Summary:       Ehcache Parent
License:       ASL 2.0
URL:           http://www.terracotta.org/
# svn export http://svn.terracotta.org/svn/ehcache/tags/ehcache-parent-2.3
# tar czf ehcache-parent-2.3-src-svn.tar.gz ehcache-parent-2.3
Source0:       ehcache-parent-2.3-src-svn.tar.gz
BuildRequires: maven-local
BuildRequires: maven-source-plugin
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Ehcache is a widely used, pure Java, in-process, distributed cache.

%prep
%setup -q -n ehcache-parent-%{version}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12587 |21mr|ehcache-sizeof-agent-1.0.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          ehcache-sizeof-agent
Version:       1.0.1
Release:       17
Summary:       Ehcache Size Of Agent
License:       ASL 2.0
Group:         Development/Java
URL:           http://www.terracotta.org/
# svn export http://svn.terracotta.org/svn/ehcache/tags/sizeof-agent-1.0.1
# tar czf ehcache-sizeof-agent-1.0.1.tar.gz sizeof-agent-1.0.1
Source0:       %{name}-%{version}.tar.gz
# ehcache-sizeof-agent package don't include the license file
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: maven-shared
BuildRequires: maven-gpg-plugin
BuildRequires: maven-idea-plugin
BuildRequires: maven-source-plugin
BuildRequires: maven-release-plugin

BuildRequires: ehcache-parent
Requires:      ehcache-parent

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Ehcache is a widely used, pure Java, in-process, distributed cache.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep

%setup -q -n sizeof-agent-%{version}

cp %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%mvn_file :sizeof-agent %{name}

%build

%mvn_build 

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12588 |21mr|eigen3-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight C++ template library for vector and matrix math
Name:		eigen3
Version:	3.4.0
Release:	1
License:	LGPLv3+ or GPLv2+
Group:		System/Libraries
Url:		http://eigen.tuxfamily.org/
Source0:	https://gitlab.com/libeigen/eigen/-/archive/%{version}/eigen-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
Patch0:		eigen-3.2.10-install-FindEigen3.patch
Patch1:		e2k-avoid-sse2.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ghostscript-common
BuildRequires:	graphviz
BuildRequires:	boost-devel
BuildRequires:	suitesparse-common-devel
# Needed for having generic BLAS
BuildRequires:	gfortran-devel
BuildRequires:	mpfr-devel
# This package is in Contrib ATM:
# support could be enabled if moved to Main
BuildRequires:	superlu-devel
BuildRequires:	umfpack-devel
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(hwloc)
BuildRequires:	pkgconfig(gmp)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(libsparsehash)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)
Provides:	%{name}-devel = %{EVRD}
BuildArch:	noarch

%description
Eigen is a lightweight C++ template library for vector and matrix math, a.k.a.
linear algebra.

%files
%doc COPYING* build/doc/html/
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/*
%{_datadir}/cmake/Modules/FindEigen3.cmake
%{_datadir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/eigen3/*.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n eigen-%{version}

%build
%cmake -DCMAKE_PREFIX_PATH=%{_prefix} \
	-DINCLUDE_INSTALL_DIR=%_includedir/%name \
	-DCMAKEPACKAGE_INSTALL_DIR=%_libdir/cmake/%name

%make_build
%make_build doc


%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12589 |21mr|ElectricFence-2.2.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libname %mklibname efence %{major}
%define devname %mklibname efence -d

Summary:	A debugger which detects memory allocation violations
Name:		ElectricFence
Version:	2.2.2
Release:	17
License:	GPLv2+
Group:		Development/Tools
Url:		http://perens.com/FreeSoftware/ElectricFence/
# ftp://ftp.perens.com/pub/ElectricFence/beta/ used to be here, but
# the site is inaccessible as of lately.  I looked through the web but
# didn't find anything.  Debian has a link to a site that hosts an
# obsolete version.  I don't think there's any proper upstream for
# this.
Source0:	%{name}-%{version}.tar.gz
Patch1:		ElectricFence-2.0.5-longjmp.patch
Patch2:		ElectricFence-2.1-vaarg.patch
Patch3:		ElectricFence-2.2.2-pthread.patch
Patch4:		ElectricFence-2.2.2-madvise.patch
Patch5:		ElectricFence-mmap-size.patch
Patch6:		ElectricFence-2.2.2-banner.patch
Patch7:		ElectricFence-2.2.2-ef.patch
Patch8:		ElectricFence-2.2.2-builtins.patch
Patch9:		ElectricFence-2.2.2-sse.patch
Patch10:	ElectricFence-2.2.2-posix_memalign.patch
Patch11:	ElectricFence-2.2.2-malloc_usable_size.patch
Patch12:	ElectricFence-2.2.2-man-ef.patch

# https://bugzilla.redhat.com/show_bug.cgi?id=1105913
Patch13:	ElectricFence-2.2.2-sys_errlist.patch
Patch14:	ElectricFence-2.2.2-lto.patch
Patch15:	ElectricFence-strerror.patch

%description
ElectricFence is a utility for C programming and
debugging. ElectricFence uses the virtual memory hardware of your
system to detect when software overruns malloc() buffer boundaries,
and/or to detect any accesses of memory released by
free(). ElectricFence will then stop the program on the first
instruction that caused a bounds violation and you can use your
favorite debugger to display the offending statement.

Install ElectricFence if you need a debugger to find malloc()
violations.

%files
%doc README COPYING
%{_mandir}/man1/ef.1*
%{_mandir}/man3/efence.3*
%{_mandir}/man3/libefence.3*
%{_bindir}/ef

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared Libraries for Electric Fence
Group:		System/Libraries

%description -n %{libname}
This package contains Electric Fence shared object library. Electric
Fence is a debugger which detects memory allocation violations.

%files -n %{libname}
%{_libdir}/libefence.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library for Electric Fence
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	efence-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{libname}-devel < 2.2.2-13

%description -n %{devname}
This package contains the static library for Electric Fence.

%files -n %{devname}
%{_libdir}/*.a
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
make CFLAGS='%{optflags} -DUSE_SEMAPHORE -fpic'

%install
mkdir -p %{buildroot}{%{_bindir},%{_libdir},%{_mandir}/man{1,3}}

make	BIN_INSTALL_DIR=%{buildroot}%{_bindir} \
	LIB_INSTALL_DIR=%{buildroot}%{_libdir} \
	MAN_INSTALL_DIR=%{buildroot}%{_mandir} \
	install

echo ".so man3/efence.3" > %{buildroot}%{_mandir}/man3/libefence.3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12590 |21mr|elementary-theme-5.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname stylesheet

Summary:	Elementary theme
Name:		elementary-theme
Version:	5.4.2
Release:	2
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/elementary/stylesheet
Source0:	https://github.com/elementary/stylesheet/archive/%{version}/%{oname}-%{version}.tar.gz
Patch01:	stylesheet-5.4.2-fix-checkbox-and-menubar.patch
BuildRequires:	meson
BuildRequires:	sassc
Requires:	murrine
Recommends:	elementary-icons
BuildArch:	noarch

%description
An original Gtk.CSS stylesheet designed specifically for elementary OS
and its desktop environment.

%files
%doc README.md COPYING
%dir %{_datadir}/themes/elementary
%{_datadir}/themes/elementary/index.theme
%{_datadir}/metainfo/io.elementary.%{oname}.appdata.xml

#----------------------------------------------------------------------------

%package	gtk2
Summary:	Stylesheet from elementary (GTK+2)
Group:		Graphical desktop/Other
Requires:	%{name} = %{version}-%{release}

%description	gtk2
This package contains the GTK+2 theme.

%files	gtk2
%{_datadir}/themes/elementary/gtk-2.0/

#----------------------------------------------------------------------------

%package	gtk3
Summary:	Stylesheet from elementary (GTK+3)
Group:		Graphical desktop/Other
Requires:	%{name} = %{version}-%{release}

%description	gtk3
This package contains the GTK+3 theme.

%files  gtk3
%{_datadir}/themes/elementary/gtk-3.0/

#----------------------------------------------------------------------------

%package	plank
Summary:	Stylesheet from elementary (plank theme)
Group:		Graphical desktop/Other
Requires:	%{name} = %{version}-%{release}

%description	plank
This package contains the plank theme.

%files	plank
%{_datadir}/themes/elementary/plank/
%{_datadir}/plank/themes/elementary-dark/dock.theme

#----------------------------------------------------------------------------

%prep
%autosetup -n %{oname}-%{version} -p1

%build
%meson
%meson_build

%install
%meson_install
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12591 |21mr|elfutils-0.187-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1

%define libasm %mklibname asm %{major}
%define libdw %mklibname dw %{major}
%define libelf %mklibname elf %{major}
%define libdbginfod %mklibname dbginfod %{major}
%define devname %mklibname %{name} -d
%define static %mklibname %{name} -d -s

%global optflags %{optflags} -Os -fstack-protector-strong -Wno-error

%define _program_prefix eu-

Summary:	A collection of utilities and DSOs to handle compiled objects
Name:		elfutils
Version:	0.187
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://fedorahosted.org/elfutils/
Source0:	https://sourceware.org/elfutils/ftp/%{version}/%{name}-%{version}.tar.bz2
Patch1:		elfutils-0.148-dont-crash.diff
Patch2:		elfutils-revert-portability-scanf.patch

# mdv patches
Patch103:	elfutils-0.152-strip-.GCC.command.line-section.patch

BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmicrohttpd)


%description
Elfutils is a collection of utilities, including stack (to show
backtraces), nm (for listing symbols from object files), size
(for listing the section sizes of an object or archive file),
strip (for discarding symbols), readelf (to see the raw ELF file
structures), and elflint (to check for well-formed ELF files).

%files -f %{name}.lang
%doc NOTES README NEWS TODO
%{_sysconfdir}/profile.d/debuginfod.csh
%{_sysconfdir}/profile.d/debuginfod.sh
%{_bindir}/eu-*
%{_bindir}/debuginfod*
%{_mandir}/man1/eu-*.1.*
%{_mandir}/man1/debuginfo*.1.*
%{_mandir}/man7/debuginfod-client-config.7.*

#----------------------------------------------------------------------------

%package -n %{libasm}
Summary:	Libraries to read and write ELF files
Group:		System/Libraries

%description -n %{libasm}
Included are the helper library which implement machine-specific ELF handling.

%files -n %{libasm}
%{_libdir}/libasm-%{version}.so
%{_libdir}/libasm*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdw}
Summary:	Libraries to read and write ELF files
Group:		System/Libraries

%description -n %{libdw}
Included are the helper library which implement DWARF ELF handling.

%files -n %{libdw}
%{_libdir}/libdw-%{version}.so
%{_libdir}/libdw*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdbginfod}
Summary:	Libraries to read and write ELF files
Group:		System/Libraries

%description -n %{libdbginfod}
Included are the helper library which implement DWARF ELF handling.

%files -n %{libdbginfod}
%{_libdir}/libdebuginfod-%{version}.so
%{_libdir}/libdebuginfod*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libelf}
Summary:	Libraries to read and write ELF files
Group:		System/Libraries
Requires:	%{libdw} = %{EVRD}
Requires:	%{libasm} = %{EVRD}
Obsoletes:	%{_lib}elfutils1 < 0.159

%description -n %{libelf}
This package provides DSOs which allow reading and writing ELF files
on a high level. Third party programs depend on this package to read
internals of ELF files. The programs of the elfutils package use it
also to generate new ELF files.

%files -n %{libelf}
%{_libdir}/libelf-%{version}.so
%{_libdir}/libelf*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries to handle compiled objects
Group:		Development/Other
Requires:	%{libasm} = %{EVRD}
Requires:	%{libdw} = %{EVRD}
Requires:	%{libelf} = %{EVRD}
Requires:	%{libdbginfod} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and dynamic libraries to create
applications for handling compiled objects.

   * libelf allows you to access the internals of the ELF object file
     format, so you can see the different sections of an ELF file.
   * libebl provides some higher-level ELF access functionality.
   * libasm provides a programmable assembler interface.

%files -n %{devname}
%{_includedir}/dwarf.h
%{_includedir}/libelf.h
%{_includedir}/gelf.h
%{_includedir}/nlist.h
%dir %{_includedir}/elfutils
%{_includedir}/elfutils/*.h
%{_libdir}/libelf.so
%{_libdir}/libdw.so
%{_libdir}/libasm.so
%{_libdir}/libdebuginfod.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/elf_*.3.*
%{_mandir}/man3/debuginfo*.3.*

#----------------------------------------------------------------------------

%package -n %{static}
Summary:	Static libraries for development with libelfutils
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{static}
This package contains the static libraries to create applications for
handling compiled objects.

%files -n %{static}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1
autoreconf -fi

%build
%configure \
	%{?_program_prefix: --program-prefix=%{_program_prefix}} \
	--disable-debuginfod \
	--disable-thread-safety \
	--with-zlib \
	--with-bzlib \
	--with-lzma

%make_build


%install
%make_install

%find_lang %{name}

%ifarch %{armx}
%check
make check || true
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12592 |21mr|elisa-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_cmake_skip_rpath %{nil}

Summary:	A powerful media player for plasma
Name:		elisa
Version:	23.08.4
Release:	1
Epoch:		3
License:	LGPLv2+
Group:		Sound
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
# TODO: Update to the new release
Source1:	elisa-23.03.70_ru.tar.gz
Patch0:	    elisa-russian_radio.patch
BuildRequires:	cmake
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	extra-cmake-modules >= 5.105.0
BuildRequires:	gettext
BuildRequires:	kf5auth-devel
BuildRequires:	kf5baloo-devel >= 5.110.0
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libvlc)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:		qt5-qtquickcontrols2
Requires:		vlc-plugin-pulse
Conflicts:	%{_lib}elisa0 < 3:22.08.2
Obsoletes:	%{_lib}elisa0 < 3:22.08.2

%description
A powerful media player for plasma.

%files -f %{name}.lang
%doc COPYING README.md
%{_kde5_bindir}/%{name}
%{_kde5_datadir}/applications/org.kde.%{name}.desktop
%{_kde5_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.png
%{_kde5_qmldir}/org/kde/elisa/plugins.qmltypes
%{_appdatadir}/org.kde.%{name}.appdata.xml
%{_kde5_datadir}/dbus-1/services/org.kde.elisa.service
%{_kde5_datadir}/qlogging-categories5/elisa.categories
%{_kde5_libdir}/elisa/libelisaLib.so.*
%{_kde5_qmldir}/org/kde/%{name}/qmldir
%{_kde5_qmldir}/org/kde/%{name}/libelisaqmlplugin.so

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Russian locale
#pushd po
#tar -xvzf %%{SOURCE1}
#popd


%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} %{name}.lang --with-kde --with-html

mv %{buildroot}%{_kde5_applicationsdir}/org.kde.%{name}.desktop %{buildroot}%{_kde5_datadir}/applications/
chmod -x %{buildroot}%{_kde5_datadir}/applications/org.kde.%{name}.desktop


%check
desktop-file-validate %{buildroot}%{_kde5_datadir}/applications/org.kde.elisa.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/org.kde.elisa.appdata.xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12593 |21mr|emacs-28.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNU Emacs text editor with X11 support
Name:		emacs
Version:	28.1
Release:	5
License:	GPLv3+
Group:		Editors
Url:		https://www.gnu.org/software/emacs/
Source0:	https://ftp.gnu.org/gnu/emacs/%{name}-%{version}.tar.xz
Source2:	gnu-mini.png
Source3:	gnu-normal.png
Source4:	gnu-large.png
Source5:	emacs-config
Patch0:		emacs-28.1-infofix.patch
Patch1:		emacs-25.0.92-ispell-dictionaries-list-iso-8859-15.patch
Patch2:		emacs-25.0.92-lzma-support.patch
Patch3:		emacs-emacs-25.0.92-l10n.patch
Patch4:		CVE-2023-27985.patch
Patch5:		CVE-2023-27986.patch
Patch6:		CVE-2022-45939.patch
Patch7:		CVE-2022-48337.patch
Patch8:		CVE-2022-48338.patch
Patch9:		CVE-2022-48339.patch
BuildRequires:	texinfo
BuildRequires:	x11-server-common
BuildRequires:	giflib-devel
BuildRequires:	gpm-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libotf)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libtiff-4)
#BuildRequires:	pkgconfig(m17n-flt) #Contrib
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw3d)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xpm)
Requires:	%{name}-common = %{EVRD}
Requires(post,preun):	update-alternatives
Provides:	%{name}-bin
Provides:	%{name}-gtk

%description
Emacs is a powerful, customizable, self-documenting, modeless text
editor. Emacs contains special code editing features, a scripting
language (elisp), and the capability to read mail, news, and more
without leaving the editor.

This package provides an emacs binary with support for X Windows.

%files
%doc src/COPYING
%{_appdatadir}/%{name}.metainfo.xml
%{_bindir}/%{name}-%{version}
%{_datadir}/applications/%{name}*.desktop
%{_iconsdir}/hicolor/*/apps/%{name}*.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.*
%{_iconsdir}/hicolor/scalable/mimetypes/%{name}-document.svg
%{_iconsdir}/hicolor/scalable/mimetypes/%{name}-document23.svg

%post
/usr/sbin/update-alternatives --install %{_bindir}/%{name} %{name} %{_bindir}/%{name}-%{version} 21
/usr/sbin/update-alternatives --install %{_libexecdir}/%{name}/%{version}/%{_target_platform}/emacs.pdmp emacs.pdmp  \
		    %{_libexecdir}/%{name}/%{version}/%{_target_platform}/x-emacs.pdmp 21

%postun
[[ ! -f %{_bindir}/%{name}-%{version} ]] && \
	/usr/sbin/update-alternatives --remove %{name} %{_bindir}/%{name}-%{version}|| :
	/usr/sbin/update-alternatives --remove emacs.pdmp %{_libexecdir}/%{name}/%{version}/%{_target_platform}/x-emacs.pdmp

#----------------------------------------------------------------------------

%package common
Summary:	Common files for GNU Emacs
Group:		Editors
Obsoletes:	%{name}-cedet < 1.0-0.pre7
Provides:	%{name}-cedet = 1.0-0.pre7
Obsoletes:	%{name}-easypg < 1.0.0
Provides:	%{name}-easypg = 1.0.0

%description common
Emacs is a powerful, customizable, self-documenting, modeless text
editor. Emacs contains special code editing features, a scripting
language (elisp), and the capability to read mail, news, and more
without leaving the editor.

This package contains all of the common files needed by emacs-snapshot
or emacs-snapshot-nox

%files common -f common-filelist
%doc BUGS README src/COPYING
%dir %{_sysconfdir}/%{name}/site-start.d
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/site-start.el
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/site-lisp
%{_datadir}/%{name}/%{version}/lisp/site-start.el
%attr(2755,root,mail) %{_libexecdir}/%{name}/%{version}/%{_target_platform}/movemail
%{_bindir}/%{name}client
%{_bindir}/%{name}-etags
%{_bindir}/ebrowse
%{_bindir}/gctags
%{_mandir}/*/*
%{_infodir}/*
%exclude %{_datadir}/%{name}/%{version}/site-lisp/subdirs.el
%{_libdir}/systemd/user/%{name}.service
%{_includedir}/%{name}-module.h

%post common
/usr/sbin/update-alternatives --install %{_bindir}/etags etags %{_bindir}/%{name}-etags 1

%postun common
[[ ! -f %{_bindir}/%{name}-etags ]] && \
	/usr/sbin/update-alternatives --remove etags %{_bindir}/%{name}-etags || :

#----------------------------------------------------------------------------

%package doc
Summary:	GNU Emacs documentation
Group:		Documentation
Requires:	%{name}-common = %{EVRD}

%description doc
Documentation for GNU Emacs.

%files doc -f doc-filelist
%doc src/COPYING

#----------------------------------------------------------------------------

%package el
Summary:	GNU Emacs Lisp source files
Group:		Editors
Requires:	%{name}-common = %{EVRD}
Provides:	%{name}-filesystem

%description el
The emacs-snapshot-el package contains the emacs elisp sources for
many of the elisp programs included with the main Emacs text editor
package.

You need to install this package only if you intend to modify any of
the Emacs packages or see some elisp examples.

%files el -f el-filelist
%doc src/COPYING
%{_datadir}/%{name}/%{version}/site-lisp/subdirs.el
%{_datadir}/%{name}/site-lisp/subdirs.el
%{_datadir}/%{name}/%{version}/lisp/leim/ja-dic/*.el.gz
%{_datadir}/%{name}/%{version}/lisp/leim/quail/*.el.gz

#----------------------------------------------------------------------------

%package leim
Summary:	GNU Emacs Lisp code for international input methods
Group:		Editors
Requires:	%{name}-common = %{EVRD}

%description leim
This package contains Emacs Lisp code for input methods for various
international character scripts.

%files leim
%doc src/COPYING
%{_datadir}/%{name}/%{version}/lisp/leim/leim-list.el
%dir %{_datadir}/%{name}/%{version}/lisp/leim/ja-dic
%{_datadir}/%{name}/%{version}/lisp/leim/ja-dic/*.elc
%dir %{_datadir}/%{name}/%{version}/lisp/leim/quail
%{_datadir}/%{name}/%{version}/lisp/leim/quail/*.elc

#----------------------------------------------------------------------------

%package nox
Summary:	GNU Emacs text editor without support for X11
Group:		Editors
Requires:	%{name}-common = %{EVRD}
Provides:	emacs-bin
Requires(post,preun):	update-alternatives

%description nox
Emacs is a powerful, customizable, self-documenting, modeless text
editor. Emacs contains special code editing features, a scripting
language (elisp), and the capability to read mail, news, and more
without leaving the editor.

This package provides an emacs binary with no X Windows support for
running on a terminal.

%files nox
%doc src/COPYING
%{_bindir}/%{name}-nox
%{_libexecdir}/%{name}/%{version}/%{_target_platform}/nox-emacs.pdmp

%post nox
/usr/sbin/update-alternatives --install %{_bindir}/%{name} %{name} %{_bindir}/%{name}-nox 10
/usr/sbin/update-alternatives --install %{_libexecdir}/%{name}/%{version}/%{_target_platform}/emacs.pdmp emacs.pdmp  \
		    %{_libexecdir}/%{name}/%{version}/%{_target_platform}/nox-emacs.pdmp 10

[[ ! -f %{_bindir}/%{name} ]] && update-alternatives --auto %{name}
:

%postun nox
[[ ! -f %{_bindir}/%{name}-nox ]] && \
	/usr/sbin/update-alternatives --remove %{name} %{_bindir}/%{name}-nox
	/usr/sbin/update-alternatives --remove emacs.pdmp %{_libexecdir}/%{name}/%{version}/%{_target_platform}/nox-emacs.pdmp
:

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi -I m4
PUREDEF="-DNCURSES_OSPEED_T"
XPUREDEF="-DNCURSES_OSPEED_T"

%ifnarch %{e2k}
export CFLAGS="%{optflags} $PUREDEF -fno-zero-initialized-in-bss"
%else
# -fno-zero-initialized-bss is not supported by lcc
export CFLAGS="%{optflags} -fPIC $PUREDEF"
%endif

%ifnarch %{e2k}
%configure\
	--with-x=no\
%ifarch %{e2k}
	--enable-check-lisp-object-type\
%endif
	--localstatedir=%{_localstatedir}/lib
%make bootstrap
%endif

%make distclean
# Build binary without X support
%configure\
	--with-x=no\
%ifarch %{e2k}
	--enable-check-lisp-object-type\
%endif
	--localstatedir=%{_localstatedir}/lib
%make
mv src/%{name} src/nox-%{name}
mv src/%{name}.pdmp src/nox-%{name}.pdmp

%make distclean
# Build binary with X support
%configure\
	--with-x-toolkit\
%ifarch %{e2k}
	--enable-check-lisp-object-type\
%endif
	--localstatedir=%{_localstatedir}/lib
%make

%install
mkdir -p %{buildroot}/usr

PATH=$PATH:/sbin
ARCHDIR=%{_target_platform}
%old_makeinstall sharedstatedir=%{buildroot}/var/lib localstatedir=%{buildroot}/var/lib

rm -f %{buildroot}%{_bindir}/%{name}
rm -f %{buildroot}%{_infodir}/dir

# remove sun specific stuff
rm -f %{buildroot}%{_datadir}/emacs/%{version}/etc/{emacstool.1,emacs.1,ctags.1,etags.1,sex.6}

# rename ctags to gctags
mv %{buildroot}%{_mandir}/man1/ctags.1.gz %{buildroot}%{_mandir}/man1/gctags.1.gz
mv %{buildroot}%{_bindir}/ctags %{buildroot}%{_bindir}/gctags
mv -f %{buildroot}%{_bindir}/{etags,emacs-etags}

# is that needed?
install -d %{buildroot}%{_libdir}/emacs/site-lisp

mkdir -p %{buildroot}%{_sysconfdir}/emacs
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/emacs/site-start.el
(cd %{buildroot}%{_datadir}/emacs/%{version}/lisp; ln -s ../../../../..%{_sysconfdir}/emacs/site-start.el site-start.el)

install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d

install -m755 src/nox-emacs %{buildroot}%{_bindir}/emacs-nox
chmod -t %{buildroot}%{_bindir}/emacs*
#need for update-alternatives
install -m755 src/nox-emacs.pdmp %{buildroot}%{_libexecdir}/%{name}/%{version}/%{_target_platform}/nox-emacs.pdmp
mv %{buildroot}%{_libexecdir}/%{name}/%{version}/%{_target_platform}/emacs.pdmp %{buildroot}%{_libexecdir}/%{name}/%{version}/%{_target_platform}/x-emacs.pdmp

#
# emacs-doc file list
#
# 3.22MB of docs from emacs-common to emacs-doc to reduce size (tutorials, news, postscript files, ...)
# NB: etc/ps-prin{0,1}.ps are needed by ps-print
find %{buildroot}%{_datadir}/emacs/%{version}/etc/ -type f | \
	grep -E 'TUTORIAL\.|NEWS|ONEWS|.ps$'|grep -F -v /etc/ps-prin | \
	sed "s^%{buildroot}^^" > doc-filelist

#
# emacs-el file list
#

# take every .el and .el.gz which have a corresponding .elc
find %{buildroot}%{_datadir}/emacs -name '*.el' -o -name '*.el.gz' | \
	grep -v /leim/ | while read I; do
	f=`basename $I .gz`
	f=`basename $f .el`
	if [ -e `dirname $I`/$f.elc ]; then
		echo $I | sed "s^%{buildroot}^^"
	fi
done > el-filelist

#
# emacs-common file list
#
# everything not in previous filelists, and remove a few things listed in %%files
find %{buildroot}%{_datadir}/emacs/%{version} -type f -print -o -type d -printf "%%%%dir %%p\n" | \
	grep -v /leim/ | sed "s^%{buildroot}^^" > common-filelist.raw
while read I; do
	grep -qxF $I doc-filelist el-filelist || echo $I
done < common-filelist.raw > common-filelist

find %{buildroot}%{_libexecdir}/emacs -type f -print -o -type d -printf "%%%%dir %%p\n" | \
	grep -E -v 'movemail$|update-game-score$' | sed "s^%{buildroot}^^" >> common-filelist

# this conflicts with the info package
rm -f %{buildroot}%{_infodir}/info.info.gz

have_info_files=$(echo $(ls %{buildroot}%{_infodir} | sed -e 's/\.info\.gz$//' | grep -E -v -- '-[0-9]+$' | LC_ALL=C sort))

%define info_files auth autotype bovine calc ccmode cl dbus dired-x ebrowse ede ediff edt efaq eieio eintr elisp emacs emacs-gnutls emacs-mime epa erc ert eshell eudc eww flymake forms gnus htmlfontify idlwave ido mairix-el message mh-e modus-themes newsticker nxml-mode octave-mode org pcl-cvs pgg rcirc reftex remember sasl sc semantic ses sieve smtpmail speedbar srecode todo-mode tramp transient url vhdl-mode vip viper widget wisent woman
[ "$have_info_files" = "%{info_files}" ] || {
	echo "you must modify the spec file, %%info_files should be: $have_info_files"
	exit 1
}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12594 |21mr|emacs-auctex-13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname auctex

Summary:	Enhanced LaTeX mode for GNU Emacs
Name:		emacs-auctex
Version:	13.1
Release:	1
License:	GPLv3+
Group:		Editors
Url:		http://www.gnu.org/software/auctex/
Source0:	http://ftp.gnu.org/pub/gnu/auctex/auctex-%{version}.tar.gz
BuildRequires:	emacs
BuildRequires:	texlive-knuth
BuildRequires:	texlive-hyphen-afrikaans
BuildRequires:	texlive-hyphen-ancientgreek
BuildRequires:	texlive-hyphen-armenian
BuildRequires:	texlive-hyphen-basque
BuildRequires:	texlive-hyphen-belarusian
BuildRequires:	texlive-hyphen-bulgarian
BuildRequires:	texlive-hyphen-catalan
BuildRequires:	texlive-hyphen-chinese
BuildRequires:	texlive-hyphen-churchslavonic
BuildRequires:	texlive-hyphen-coptic
BuildRequires:	texlive-hyphen-croatian
BuildRequires:	texlive-hyphen-czech
BuildRequires:	texlive-hyphen-danish
BuildRequires:	texlive-hyphen-dutch
BuildRequires:	texlive-hyphen-english
BuildRequires:	texlive-hyphen-esperanto
BuildRequires:	texlive-hyphen-estonian
BuildRequires:	texlive-hyphen-ethiopic
BuildRequires:	texlive-hyphen-finnish
BuildRequires:	texlive-hyphen-french
BuildRequires:	texlive-hyphen-friulan
BuildRequires:	texlive-hyphen-galician
BuildRequires:	texlive-hyphen-georgian
BuildRequires:	texlive-hyphen-german
BuildRequires:	texlive-hyphen-greek
BuildRequires:	texlive-hyphen-hungarian
BuildRequires:	texlive-hyphen-icelandic
BuildRequires:	texlive-hyphen-indic
BuildRequires:	texlive-hyphen-indonesian
BuildRequires:	texlive-hyphen-interlingua
BuildRequires:	texlive-hyphen-irish
BuildRequires:	texlive-hyphen-italian
BuildRequires:	texlive-hyphen-kurmanji
BuildRequires:	texlive-hyphen-latin
BuildRequires:	texlive-hyphen-latvian
BuildRequires:	texlive-hyphen-lithuanian
BuildRequires:	texlive-hyphen-mongolian
BuildRequires:	texlive-hyphen-norwegian
BuildRequires:	texlive-hyphen-occitan
BuildRequires:	texlive-hyphen-piedmontese
BuildRequires:	texlive-hyphen-polish
BuildRequires:	texlive-hyphen-portuguese
BuildRequires:	texlive-hyphen-romanian
BuildRequires:	texlive-hyphen-romansh
BuildRequires:	texlive-hyphen-russian
BuildRequires:	texlive-hyphen-sanskrit
BuildRequires:	texlive-hyphen-serbian
BuildRequires:	texlive-hyphen-slovak
BuildRequires:	texlive-hyphen-slovenian
BuildRequires:	texlive-hyphen-spanish
BuildRequires:	texlive-hyphen-swedish
BuildRequires:	texlive-hyphen-thai
BuildRequires:	texlive-hyphen-turkish
BuildRequires:	texlive-hyphen-turkmen
BuildRequires:	texlive-hyphen-ukrainian
BuildRequires:	texlive-hyphen-uppersorbian
BuildRequires:	texlive-hyphen-welsh
BuildRequires:	texlive-thailatex
BuildRequires:	tetex-dvips
BuildRequires:	tetex-latex
BuildRequires:	texlive-dehyph-exptl
Requires:	emacs
Conflicts:	texlive-preview
BuildArch:	noarch

%description
AUCTeX is a comprehensive customizable integrated environment for
writing input files for TeX, LaTeX, ConTeXt, Texinfo, and docTeX using
GNU Emacs.

%files
%doc RELEASE COPYING INSTALL README TODO FAQ CHANGES
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{rname}*
%{_datadir}/emacs/site-lisp/%{rname}
%{_datadir}/emacs/site-lisp/auctex.el
%{_datadir}/emacs/site-lisp/preview-latex.el
%{_datadir}/emacs/site-lisp/tex-site.el
%{_datadir}/texmf-dist/tex/latex/preview
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{rname}-%{version}

%build

%configure --with-emacs
%make -j1

%install
install -d %{buildroot}{%{_datadir}/emacs/site-lisp/site-start.d,%{_infodir}}
%makeinstall autodir=%{buildroot}/var/lib/auctex

# This is already in tetex-latex:
rm -rf %{buildroot}%{_datadir}/texmf/tex/latex/preview
# What's this for?
rm -rf %{buildroot}/var/lib/auctex
# Don't install reference card:
rm -rf %{buildroot}%{_datadir}/doc/auctex

#sed -i -e "s|%{buildroot}||" %{buildroot}/%{_datadir}/emacs/site-lisp/tex-site.el
install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
echo "(if (string-match \"GNU Emacs\" (version)) (require 'tex-site))" >> %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{rname}.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12595 |21mr|embree-3.13.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name}3 %{major}
%define devname %mklibname %{name}3 -d

%global __cmake_in_source_build 1

Summary:	Collection of high-performance ray tracing kernels
Name:		embree
Version:	3.13.3
Release:	2
License:	ASL 2.0
Group:		Development/Other
Url:		https://embree.github.io
Source:		https://github.com/embree/embree/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	gcc-c++
BuildRequires:	giflib-devel
BuildRequires:	ispc
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(glfw3)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(OpenImageIO)
BuildRequires:	pkgconfig(tbb)
BuildRequires:	pkgconfig(xmu)
# Use 64bit architectures because no i686 ispc
ExclusiveArch:	x86_64 aarch64

%description
A collection of high-performance ray tracing kernels intended to graphics 
application engineers that want to improve the performance of their application.

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
A collection of high-performance ray tracing kernels intended to graphics 
application engineers that want to improve the performance of their application.

%files -n %{libname}
%{_libdir}/lib%{name}3.so.%{major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
 applications that use %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}/*
%doc CHANGELOG.md README.md
%license LICENSE.txt
%{_includedir}/%{name}3/
%{_libdir}/cmake/%{name}-%{version}/
%{_libdir}/lib%{name}3.so
%{_mandir}/man3/*

#------------------------------------------------------------------------

%package	examples
Summary:	Example of application using %{name}
Requires:	%{libname} = %{EVRD}

%description	examples
The %{name}-examples package contains sample binaries using %{name}.

%files examples
%license LICENSE.txt
%{_datadir}/%{name}3

#------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CXXFLAGS="%{optflags} -Wl,--as-needed"
%cmake \
	-DCMAKE_BUILD_TYPE=Release		\
	-DCMAKE_INSTALL_LIBDIR=%{_libdir}	\
	-DCMAKE_INSTALL_PREFIX=%{_prefix}	\
	-DEMBREE_IGNORE_CMAKE_CXX_FLAGS=OFF	\
	-DEMBREE_COMPACT_POLYS=ON		\
	-DEMBREE_MAX_ISA=DEFAULT
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}
mv -f %{buildroot}%{_bindir}/%{name}3 %{buildroot}%{_datadir}/
chmod -x %{buildroot}%{_datadir}/%{name}3/models/*.{bench,ecs,mtl,obj,xml}

# Relocate doc files
mv %{buildroot}%{_docdir}/%{name}3 %{buildroot}%{_docdir}/%{name}
rm %{buildroot}%{_docdir}/%{name}/LICENSE.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12596 |21mr|emma-2.0.5312-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2007, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global shortver 2.0

Summary:        Code Coverage Tool
Name:           emma
Version:        %{shortver}.5312
Release:        23
Epoch:          0
License:        CPL
Group:          Development/Java
URL:            http://emma.sourceforge.net/
Source0:        http://downloads.sourceforge.net/emma/%{name}-%{version}-src.zip
Source1:        emma-2.0.5312.pom
Source2:        emma_ant-2.0.5312.pom
# These are hacks until we get the source for the timestamping class
# http://sourceforge.net/tracker/index.php?func=detail&aid=1953619&group_id=108932&atid=651900
Source3:        emma-timestamp.sh
Source4:        emma-timestamp2.sh

Patch0:         emma-2.0.5312-dependencies_xml.patch
Patch1:         emma-2.0.5312-build_xml.patch
# Taken from Gentoo package to allow us to build on a JDK > 1.4
Patch2:         emma-2.0.5312-java15api.patch
# From eclemma's emmapatch directory
Patch3:         %{name}-eclemma.patch
# This is a hack until we get the source for the timestamping class
# http://sourceforge.net/tracker/index.php?func=detail&aid=1953619&group_id=108932&atid=651900
Patch4:         %{name}-timestamp.patch
# This patch fixes ArrayIndexOutOfBoundExceptions on 64-bit.  I modified
# the patch against HEAD to apply to this version -- overholt
# http://sourceforge.net/tracker/index.php?func=detail&aid=2119913&group_id=108932&atid=651897
Patch5:         %{name}-%{version}-64_bit_fix.patch
Requires:       jaxp_parser_impl
BuildRequires:  ant >= 0:1.6.5
BuildRequires:  java-devel >= 0:1.6
BuildRequires:  jpackage-utils >= 0:1.7.5-1jpp.3
# For the timestamp hack (see above)
BuildRequires:  bc
BuildRequires:  javapackages-local


BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
EMMA is an open-source toolkit for measuring and reporting Java
code coverage. EMMA distinguishes itself from other tools by going
after a unique feature combination: support for large-scale
enterprise software development while keeping individual developer's
work fast and iterative.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q
cp -p %{SOURCE3} .
cp -p %{SOURCE4} .

# Make sure we don't use this no-source jar
rm lib/internal/stamptool.jar

%patch0 -b .orig
%patch1 -b .orig
%patch2 -p1 -b .orig
%patch3 -b .orig
%patch4 -b .orig
%patch5 -b .orig

%build
[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
ant -Dbuild.compiler=modern build javadoc

%install
%mvn_artifact %{SOURCE1} dist/%{name}.jar
%mvn_artifact %{SOURCE2} dist/%{name}_ant.jar

# JAVADOCS
%mvn_install -J out/javadocs/

%files -f .mfiles
%doc cpl-v10.html

%files javadoc -f .mfiles-javadoc
%doc cpl-v10.html



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12597 |21mr|enblend-4.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for compositing images
Name:		enblend
Version:	4.2
Release:	7
License:	GPLv2+
Group:		Graphics
Url:		http://enblend.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/enblend/enblend-enfuse/enblend-enfuse-4.2/enblend-enfuse-%{version}.tar.gz
Patch0:		add_include.patch
BuildRequires:	help2man
BuildRequires:	perl(Time::Zone)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	texlive-latex.bin
BuildRequires:	texlive-metafont.bin
BuildRequires:	texlive-pdftex.bin
BuildRequires:	texlive-kpathsea.bin
BuildRequires:	texlive-kpathsea
BuildRequires:	texlive-tetex
BuildRequires:	boost-devel
BuildRequires:	vigra-devel
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(IlmBase)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(gsl)
Provides:	enfuse = %{EVRD}

%description
Enblend is a tool for compositing images. Given a set of images that overlap
in some irregular way, Enblend overlays them in such a way that the seam
between the images is invisible, or at least very difficult to see.

%files
%doc AUTHORS NEWS README
%{_bindir}/enblend
%{_bindir}/enfuse
%{_mandir}/man1/enblend.1.*
%{_mandir}/man1/enfuse.1.*

#----------------------------------------------------------------------------

%prep
%setup -q -n enblend-enfuse-%{version}
%apply_patches
sed -i -e 's/src:://g;s/CFG::/CFG_/g' configure.ac


%build
export CPPFLAGS="-std=gnu++14"
autoreconf -fiv
%configure \
	--with-boost-filesystem \
	--enable-openmp
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12598 |21mr|enca-1.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A program that can detect and convert between character sets
Name:		enca
Version:	1.19
Release:	2
License:	GPLv2+
Group:		Text tools
Url:		https://cihar.com/software/enca/
Source0:	https://github.com/nijel/enca/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	recode-devel
BuildRequires:	gettext-devel

%description
Enca is an Extremely Naive Charset Analyser. It detects character set and
encoding of text files and can also convert them to other encodings using
either a built-in converter or external libraries and tools like libiconv,
librecode, or cstocs.

Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, and
Ukrainian and some multibyte encodings (mostly variants of Unicode)
independently on the language.

Install Enca if you need to cope with text files of dubious origin
and unknown encoding and convert them to some reasonable encoding.

%files
%doc AUTHORS ChangeLog ChangeLog.prelib FAQ README.md THANKS TODO
%{_bindir}/enca
%{_bindir}/enconv
%{_libexecdir}/%{name}/extconv/*
%dir %{_libexecdir}/%{name}/extconv
%dir %{_libexecdir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library detecting encoding of text files
Group:		System/Libraries

%description -n %{libname}
Enca is an Extremely Naive Charset Analyser. It detects character set and
encoding of text files and can also convert them to other encodings using
either a built-in converter or external libraries and tools like libiconv,
librecode, or cstocs.

Currently, it has support for Belarussian, Bulgarian, Croatian, Czech,
Estonian, Latvian, Lithuanian, Polish, Russian, Slovak, Slovene, and
Ukrainian and some multibyte encodings (mostly variants of Unicode)
independently on the language.

This package contains shared Enca library other programs can make use of.

%files -n %{libname}
%{_libdir}/libenca.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for Enca development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the static libraries and header files for writing
programs using the Extremely Naive Charset Analyser library, and its API
documentation.

Install it if you are going to create applications using the Enca library.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/libenca
%{_includedir}/enca.h
%{_libdir}/libenca.so
%{_libdir}/pkgconfig/enca.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12599 |21mr|encfs-1.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.9
%define libname %mklibname %{name} %{major}

Summary:	Encrypted pass-through filesystem for Linux
Name:		encfs
Version:	1.9.5
Release:	1
Epoch:		2
License:	GPLv3+
Group:		File tools
Url:		http://www.arg0.net/encfs
Source0:	http://encfs.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(fuse)
#BuildRequires:	pkgconfig(librlog)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(tinyxml2)
Requires:	fuse
Requires:	openssl

%description
EncFS implements an encrypted pass-through filesystem in userspace using
FUSE. File names and contents are encrypted using OpenSSL.

%files -f %{name}.lang
%doc AUTHORS ChangeLog
%{_bindir}/encfs
%{_bindir}/encfsctl
%{_bindir}/encfssh
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for encfs
Group:		System/Libraries

%description -n %{libname}
Shared library for encfs.

%files -n %{libname}
%{_libdir}/libencfs.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DCMAKE_SKIP_RPATH=ON \
	-DBUILD_SHARED_LIBS=ON \
	-DINSTALL_LIBENCFS=ON \
	-DUSE_INTERNAL_TINYXML=OFF

%make

%install
%makeinstall_std -C build

chmod +x %{buildroot}%{_bindir}/encfssh

# unneeded files
rm -f %{buildroot}%{_libdir}/libencfs.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12600 |21mr|enchant-1.6.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname enchant %{major}
%define devname %mklibname enchant -d

%bcond_with voikko

Summary:	An enchanting spell checking library
Name:		enchant
Version:	1.6.0
Release:	17
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.abisource.com/projects/enchant/
Source0:	http://www.abisource.com/downloads/enchant/%{version}/%{name}-%{version}.tar.gz
Patch0:		enchant-1.6.0-hunspell1.6.0.patch
BuildRequires:	aspell-devel
BuildRequires:	hspell-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(hunspell)
%if %{with voikko}
BuildRequires:	pkgconfig(libvoikko)
%endif
Conflicts:	%{libname} < 1.6.0-3

%description
A library that wraps other spell checking backends.

%files
%doc AUTHORS HACKING README TODO
%{_bindir}/*
%{_datadir}/enchant
%{_mandir}/man1/*
%dir %{_libdir}/enchant
%{_libdir}/enchant/lib*.so*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for enchant
Group:		System/Libraries

%description -n %{libname}
This package provides the libraries for using enchant.

%files -n %{libname}
%{_libdir}/libenchant.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing with enchant
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with enchant.

%files -n %{devname}
%{_libdir}/libenchant.so
%{_libdir}/pkgconfig/enchant.pc
%dir %{_includedir}/enchant
%{_includedir}/enchant/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
%if %{without voikko}
	--disable-voikko \
%endif
	--disable-static \
	--with-myspell-dir=%{_datadir}/dict/ooo

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12601 |21mr|enchant2-2.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2
%define major 2
%define libname %mklibname enchant %{api} %{major}
%define devname %mklibname enchant %{api} -d

%bcond_with voikko

Summary:	An enchanting spell checking library
Name:		enchant%{api}
Version:	2.3.2
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/AbiWord/enchant
Source0:	https://github.com/AbiWord/enchant/releases/download/v%{version}/enchant-%{version}.tar.gz
BuildRequires:	aspell-devel
BuildRequires:	hspell-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(hunspell)
%if %{with voikko}
BuildRequires:	pkgconfig(libvoikko)
%endif

%description
A library that wraps other spell checking backends.

%files
%doc AUTHORS HACKING README
%{_bindir}/enchant-%{api}
%{_bindir}/enchant-lsmod-%{api}
%{_datadir}/enchant-%{api}
%{_mandir}/man1/enchant-%{api}.1*
%{_mandir}/man1/enchant-lsmod-%{api}.1*
%dir %{_libdir}/enchant-%{api}
%{_libdir}/enchant-%{api}/enchant_aspell.so
%{_libdir}/enchant-%{api}/enchant_hspell.so
%{_libdir}/enchant-%{api}/enchant_hunspell.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for enchant %{api}
Group:		System/Libraries
Recommends:	%{name}

%description -n %{libname}
This package provides the libraries for using enchant %{api}.

%files -n %{libname}
%{_libdir}/libenchant-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing with enchant %{api}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with enchant %{api}.

%files -n %{devname}
%{_libdir}/libenchant-%{api}.so
%{_libdir}/pkgconfig/enchant-%{api}.pc
%dir %{_includedir}/enchant-%{api}
%{_includedir}/enchant-%{api}/*

#----------------------------------------------------------------------------

%prep
%setup -qn enchant-%{version}

%build
%configure \
%if %{without voikko}
	--without-voikko \
%endif
	--disable-static \
	--with-hunspell-dir=%{_datadir}/myspell

%make pkgdatadir=%{_datadir}/enchant-%{api}

%install
%makeinstall_std pkgdatadir=%{_datadir}/enchant-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12602 |21mr|enscript-1.6.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts plain ASCII to PostScript
Name:		enscript
Version:	1.6.6
Release:	2
License:	GPLv3+
Group:		Publishing
Source0:	ftp://ftp.gnu.org/gnu/enscript/%{name}-%{version}.tar.gz
Url:		ftp://ftp.gnu.org/gnu/enscript/
BuildRequires:	flex
BuildRequires:	gettext
Provides:	nenscript = %{EVRD}

%description
GNU enscript is a free replacement for Adobe's Enscript program. Enscript
converts ASCII files to PostScript(TM) and spools generated PostScript
output to the specified printer or saves it to a file. Enscript can be
extended to handle different output media and includes many options for
customizing printouts.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README README.ESCAPES THANKS TODO 
%config(noreplace) %{_sysconfdir}/enscript.cfg
%dir %{_sysconfdir}/enscript
%config(noreplace) %{_sysconfdir}/enscript/font.map
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/hl
%dir %{_datadir}/%{name}/afm
%{_bindir}/*
%{_mandir}/*/*
%{_infodir}/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e 's/AM_C_PROTOTYPES/AC_DEFINE([PROTOTYPES], [1], [Compiler is not prehistoric])/g' configure.ac

%build
%configure --with-media=Letter
%make_build

%install
%make_install

mkdir -p %{buildroot}/etc/%{name}
cp %{buildroot}/%{_datadir}/%{name}/afm/font.map %{buildroot}/etc/%{name}/font.map
pushd %{buildroot}/%{_datadir}/%{name}
ln -sf /etc/%{name}/font.map
popd

rm -f %{buildroot}/%{_datadir}/%{name}/font.map

%find_lang %{name}

# XXX note doubled %% in sed script below.
(cd %{buildroot};find .%{_datadir}/enscript/* -type f) | \
	sed -e 's,^\.,,' | sed -e 's,*font.map,%%config &,' > share.list

( cd %{buildroot}
  ln .%{_prefix}/bin/enscript .%{_prefix}/bin/nenscript
)

cat share.list >> %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12603 |21mr|enunciate-2.8.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global old_enunciate_core_annotations_ver 1.28
%global jersey1_version %(rpm -q --qf "%%{version}" jsersey1)
%global jersey_version %(rpm -q --qf "%%{version}" jsersey2)
Name:          enunciate
# Because "duplicate class" compiler errors, we cannot yet use the 2.x
# See also https://github.com/stoicflame/enunciate/issues/117
#      and https://bugs.openjdk.java.net/browse/JDK-8143213
Version:       2.8.0
Release:       9
Summary:       Build-time enhancement tool for Java-based Web services projects
License:       ASL 2.0
URL:           http://enunciate.webcohesion.com/
Source0:       https://github.com/stoicflame/enunciate/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: mvn(asm:asm)
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.sun.jersey:jersey-server:1)
BuildRequires: mvn(com.sun.jersey:jersey-servlet:1)
BuildRequires: mvn(com.sun.jersey.contribs:jersey-spring:1)
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(javax.mail:mail)
BuildRequires: mvn(javax.servlet:servlet-api)
BuildRequires: mvn(javax.ws.rs:javax.ws.rs-api)
BuildRequires: mvn(javax.ws.rs:jsr311-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.archetype:archetype-packaging)
BuildRequires: mvn(org.apache.maven.plugins:maven-archetype-plugin)
BuildRequires: mvn(org.codehaus:codehaus-parent:pom:)
BuildRequires: mvn(org.codehaus.jackson:jackson-jaxrs)
BuildRequires: mvn(org.codehaus.jackson:jackson-xc)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.mockito:mockito-core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
%{summary}.

Provides:    %{name}-core-annotations = %{version}-%{release}
Obsoletes:   %{name}-core-annotations < %{old_enunciate_core_annotations_ver}
Provides:    %{name}-core-annotations-javadoc = %{version}-%{release}
Obsoletes:   %{name}-core-annotations-javadoc < %{old_enunciate_core_annotations_ver}

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}
# Cleanup
find -name "*.jar" -print -delete
find -name "*.js" -print -delete

# disable some plugins that are not in fedora and not relevant in fedora packaging 
%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-inherit-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-surefire-plugin

## disable rest of the modules

# Depends on echo-maven-plugin
%pom_disable_module c-xml-client
%pom_disable_module csharp-xml-client

## Does not compile with java8
%pom_disable_module javac-support

# Depends on javac-support
%pom_disable_module core

# Depends on enunciate-core
%pom_disable_module docs
%pom_disable_module examples
%pom_disable_module gwt-json-overlay
%pom_disable_module idl
%pom_disable_module jackson
%pom_disable_module jackson1
%pom_disable_module java-json-client
%pom_disable_module java-xml-client
%pom_disable_module javascript-client
%pom_disable_module jaxb
%pom_disable_module jaxrs
%pom_disable_module jaxws
%pom_disable_module lombok
%pom_disable_module maven-plugin
%pom_disable_module php-json-client
%pom_disable_module php-xml-client
%pom_disable_module obj-c-xml-client
%pom_disable_module ruby-json-client
%pom_disable_module slim-maven-plugin
%pom_disable_module spring-web
%pom_disable_module swagger
%pom_disable_module top

%pom_xpath_set "pom:properties/pom:jersey1.version" %{jersey1.version}
%pom_xpath_set "pom:properties/pom:jersey2.version" %{jersey.version}

chmod 644 README.md LICENSE.txt NOTICE.txt

%build
%mvn_build

%install
%mvn_install

# Put core-annotation in main package to avoid
# conflict with enunciate-core-annotations
%files -f .mfiles
%doc README.md
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12604 |21mr|eog-42.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define gi_major 3.0
%define girname %mklibname %{name}-gir %{gi_major}

Summary:	The Eye of GNOME image viewer
Name:		eog
Version:	42.2
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/eog
Source0: 	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	python3
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(libportal)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xdg-desktop-portal)
Requires:	librsvg
Requires:	typelib(Peas)

%description
This is the Eye of Gnome, an image viewer program. It is meant
to be a fast and functional image viewer as well as an image
cataloging program. It does proper handling of large images and
images with full opacity information, and can zoom and scroll
images quickly while keeping memory usage constant.

%files -f %{name}.lang
%doc AUTHORS NEWS
%{_appdatadir}/eog.appdata.xml
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/eog
%{_datadir}/GConf/gsettings/eog.convert
%{_datadir}/glib-2.0/schemas/org.gnome.eog.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.eog.gschema.xml
%{_datadir}/icons/hicolor/*/*/*
%{_libdir}/eog/plugins/fullscreen.plugin
%{_libdir}/eog/plugins/reload.plugin
%{_libdir}/eog/plugins/statusbar-date.plugin
%{_libdir}/eog/plugins/*.so*
%{_libdir}/eog/*.so

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{name}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/eog/girepository-1.0/Eog-%{gi_major}.typelib

#----------------------------------------------------------------------------

%package devel
Summary:	C headers needed to build EOG plugins
Group:		Development/C
Requires:	%{girname} = %{EVRD}

%description devel
This is the Eye of Gnome, an image viewer program. It is meant
to be a fast and functional image viewer as well as an image
cataloging program. It does proper handling of large images and
images with full opacity information, and can zoom and scroll
images quickly while keeping memory usage constant.

Install this if you want to build EOG plugins.

%files devel
%{_includedir}/eog-3.0
%{_libdir}/pkgconfig/eog.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

sed s,"\${prefix}//","\${prefix}/",g -i %{buildroot}%{_libdir}/pkgconfig/eog.pc

desktop-file-install --vendor=""	\
	--add-category=Graphics		\
	--add-category=2DGraphics	\
	--dir %{buildroot}%{_datadir}/applications	\
	%{buildroot}%{_datadir}/applications/*

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12605 |21mr|epiphany-42.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api %(echo %{version}|cut -d. -f1)

Summary:	GNOME web browser based on the webkit rendering engine
Name:		epiphany
Version:	42.5
Release:	1
License:	GPLv2+ and GFDL
Group:		Networking/WWW
Url:		https://download.gnome.org/sources/epiphany
Source0:	https://download.gnome.org/sources/epiphany/%{api}/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	rootcerts
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-gobject)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(hogweed)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libdazzle-1.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libportal)
BuildRequires:	pkgconfig(libsoup-gnome-2.4)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(x11)
#gw for the index themes
Requires:	dbus-x11
Requires:	enchant
Requires:	gnome-doc-utils
Requires:	indexhtml
Requires:	iso-codes
Recommends:	gnome-themes

%description
Epiphany is a GNOME web browser based on the webkit rendering engine.
The name meaning: "An intuitive grasp of reality through something 
(as an event) usually simple and striking"

%files -f %{name}.lang
%doc README.md TODO NEWS
%license COPYING
%{_appdatadir}/org.gnome.Epiphany.appdata.xml
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.gnome.Epiphany.SearchProvider.service
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/org.gnome.Epiphany.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_mandir}/man1/%{name}.1*
%{_libexecdir}/%{name}-search-provider
%{_libexecdir}/%{name}/ephy-profile-migrator
%{_libdir}/%{name}/libephymain.so
%{_libdir}/%{name}/libephymisc.so
%{_libdir}/%{name}/libephysync.so
%{_libdir}/%{name}/web-process-extensions/libephywebprocessextension.so
%{_datadir}/gnome-shell/search-providers/org.gnome.Epiphany.SearchProvider.ini
%{_iconsdir}/hicolor/*/apps/org.gnome.Epiphany*.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

#gw these are useless
rm -f %{buildroot}%{_datadir}/icons/LowContrastLargePrint/*/apps/*

#CVE-2023-26081

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12606 |21mr|epsoneplijs-0.4.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ghostscript IJS Plugin for the Epson EPL-5700L/5800L/5900L/6100L/6200L printers
Name:		epsoneplijs
Version:	0.4.1
Release:	14
Group:		System/Printing
License:	BSD
URL:		http://sourceforge.net/projects/epsonepl/
Source0:	http://osdn.dl.sourceforge.net/sourceforge/epsonepl/epsoneplijs-%{version}.tgz
Patch0:		epsoneplijs-use_system_libs.diff
Patch1:		epsoneplijs-mandriva-install.diff
Patch2:		epsoneplijs-0.4.1-LDFLAGS.diff
BuildRequires:	libtool
BuildRequires:	libusb-devel
BuildRequires:	ieee1284-devel
Requires:	ghostscript >= 6.53
Conflicts:	printer-utils = 2007
Conflicts:	printer-filters = 2007

%description
Support for the Epson EPL-5700L/5800L/5900L/6100L/6200L printer family under
linux and other unix-like systems.
It is known to work for at least one user for each of 5700L, 5800L,
5900L, and 6100L. 6100L and 6200L support is new.

%prep

%setup -q

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%patch0 -p1 -b .use_system_libs
%patch1 -p1 -b .mandriva-install
%patch2 -p0 -b .LDFLAGS

%build
%serverbuild

perl -pi -e "s|-g -O2 -Wall -Werror -ansi -pedantic -Wmissing-prototypes|$CFLAGS -fPIC|g" Makefile.in

rm -f configure
libtoolize --force --copy; aclocal; autoconf

%configure \
    --with-kernelusb \
    --with-kernel1284 \
    --with-libusb \
    --with-libieee1284 

%make
%make test5700lusb

gcc $CFLAGS -fPIC -Wall %{ldflags} -o epl-5700 epl_docs/epl-5700.c
gcc $CFLAGS -fPIC -Wall %{ldflags} -o epl-5800 epl_docs/epl-5800.c
gcc $CFLAGS -fPIC -Wall %{ldflags} -o epl5x00l epl_docs/epl5x00l.c

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}

%makeinstall

install -m0755 ps2epl.pl %{buildroot}%{_bindir}
install -m0755 test5700lusb %{buildroot}%{_bindir}/
install -m0755 epl-5700 %{buildroot}%{_bindir}/
install -m0755 epl-5800 %{buildroot}%{_bindir}/
install -m0755 epl5x00l %{buildroot}%{_bindir}/

pushd foomatic_scripts
sh install_mandrake %{buildroot}
popd

%clean
rm -rf %{buildroot}

%files
%defattr(-, root, root)
%doc ChangeLog FAQ LIMITATIONS README* *.pdf epl_test* apsfilter cups epl_docs/epl-protocol.pdf epl_docs/README.1st
%{_bindir}/*
%{_datadir}/cups/model/epson/*.ppd.gz
%{_datadir}/foomatic/db/source/driver/*.xml
%{_datadir}/foomatic/db/source/opt/*.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12607 |21mr|epsonscan2-6.7.63.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Простое получение изображений для сканеров и МФУ Epson
Summary: Simple Image Acquisition for Epson scanners and MFP
Name:    epsonscan2
Version: 6.7.63.0
Release: 1

License: GPLv3+
Group:	 System/Printing
Url:     http://support.epson.net/linux/en/epsonscan2.php

Source:  %{name}-%{version}-1.src.tar.gz
Source2: %{name}.png
Source3: %{name}.desktop

Patch1:  epsonscan2-alt-return-type.patch
Patch2:  epsonscan2-crash.patch
Patch3:  epsonscan2-oob-container.patch
Patch4:  epsonscan2-xdg-open.patch

BuildRequires: ninja
BuildRequires: boost-devel
BuildRequires: cmake(boost_filesystem)
BuildRequires: cmake(boost)
BuildRequires: libusb-devel
BuildRequires: libtiff-devel
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(sane-backends)
BuildRequires: pkgconfig(RapidJSON)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)

%description
This software provides applications to easily turn hard-copy documents and
imagery into formats that are more amenable to computer processing.

Included are a native driver for a number of EPSON scanners and a compatibility
driver to interface with software built around the SANE standard.

%description -l ru_RU.UTF-8
Это программное обеспечение позволяет легко преобразовывать документы и изображения
на бумажных носителях в форматы, удобные для компьютерной обработки. В комплект
поставки входит собственный драйвер для ряда сканеров EPSON и драйвер совместимости
для взаимодействия с программным обеспечением, построенным на основе стандарта SANE

#-----------------------------------------------------------------------------------

%package gui
Summary(ru_RU.UTF-8): Графические инструменты для %name 
Summary:	Graphical tools for %name
Group:		System/Printing
Requires:       %{name}-sane%{_isa} = %{EVRD}
Requires:       %{_bindir}/which
Requires:       %{_bindir}/xdg-open

%description gui
Graphical tools for %name

%description -l ru_RU.UTF-8 gui
Графические инструменты для %name 

%files gui
%doc AUTHORS NEWS README
%{_bindir}/epsonscan2
%{_libdir}/epsonscan2/detectalert
%{_libdir}/epsonscan2/Resources
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#-----------------------------------------------------------------------------------

%package sane
Summary(ru_RU.UTF-8): Драйвер SANE для сканеров Epson 
Summary:	SANE driver for Epson scanners
Group:		System/Printing

%description sane
SANE driver for Epson scanners

%description -l ru_RU.UTF-8 sane
Драйвер SANE для сканеров Epson

%files sane
%dir %{_libdir}/epsonscan2
%{_libdir}/epsonscan2/lib*.so
%{_libdir}/sane
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/epsonscan2
%{_udevrulesdir}/60-epsonscan2.rules

#-----------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-1

sed -i -e 's,${EPSON_INSTALL_ROOT}/lib/udev/rules.d,%{_udevrulesdir},g' CMakeLists.txt

%build
%cmake -G Ninja \
       -Wno-dev \
       -DCMAKE_SKIP_RPATH=OFF \
       -DCMAKE_SKIP_INSTALL_RPATH=OFF

%ninja_build

%install
%ninja_install -C build
# Remove copy of documentation
rm -rf %{buildroot}%{_defaultdocdir}/epsonscan2-1.0.0.0-1

install -D -m644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png
install -D -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{name}.desktop

mkdir -p %{buildroot}%{_libdir}/sane
ln -s %{_libdir}/%{name}/libsane-epsonscan2.so \
         %{buildroot}%{_libdir}/sane/libsane-epsonscan2.so
ln -s %{_libdir}/%{name}/libsane-epsonscan2.so \
         %{buildroot}%{_libdir}/sane/libsane-epsonscan2.so.1
ln -s %{_libdir}/%{name}/libsane-epsonscan2.so \
         %{buildroot}%{_libdir}/sane/libsane-epsonscan2.so.1.0.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12608 |21mr|epydoc-3.0.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Edward Loper's API Documentation Generation Tool
Name:		epydoc
Version:	3.0.1
Release:	16
License:	IBM Open Source License
Group:		Development/Python
BuildArch:	noarch
Url:		http://epydoc.sourceforge.net/
Source0:	http://prdownloads.dl.sourceforge.net/sourceforge/epydoc/%{name}-%{version}.tar.gz
# https://qa.mandriva.com/show_bug.cgi?id=62543
Patch0:		epydoc_restructuredtext_Bug_62543.patch

BuildRequires: pkgconfig(python2)
Requires:	pythonegg(docutils)
Requires:	tkinter

%description
Epydoc is a tool for generating API documentation for Python modules,
based on their docstrings. A lightweight markup language called
epytext can be used to format docstrings, and to add information about
specific fields, such as parameters and instance variables. Epydoc
also understands docstrings written in ReStructuredText, Javadoc, and
plaintext.

%prep
%setup -q
%apply_patches

%build
%py2_build

%install
%py2_install
mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 man/*.1 %{buildroot}%{_mandir}/man1

%files
%doc *.txt doc/
%{_bindir}/epydoc
%{_bindir}/epydocgui
%{_bindir}/apirst2html.py
%{_mandir}/man1/*
%{python2_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12609 |21mr|esound-0.2.41-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname esound %{major}
%define devname %mklibname esound -d

Summary:	The Enlightened Sound Daemon
Name:		esound
Version:	0.2.41
Release:	18
License:	LGPLv2.1+
Group:		System/Servers
Url:		ftp://ftp.gnome.org/pub/GNOME/sources/esound/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/esound/esound-%{version}.tar.bz2
# (fc) 0.2.28 default options : increase spawn process waiting time, release device after 2s of inactivity
Patch0:		esound-0.2.37-defaultoptions.patch
Patch1:		esound-0.2.41-xmlto-migratation.patch
#avoid putting two or more adjacent hyphens inside comments.
Patch2:		esound-0.2.41-sgml-validation.patch
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-dtd412-xml
BuildRequires:  xmlto	
BuildRequires:	pkgconfig(audiofile)

%description
EsounD (the Enlightened Sound Daemon) is a server process that allows multiple
applications to share a single sound card. For example, when you're listening
to music from your CD and you receive a sound-related event from ICQ, your
applications won't have to jockey for the attention of your sound card.

EsounD mixes several audio streams for playback by a single audio device.

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities for EsounD
Group:		Sound

%description utils
Utility applications for EsounD.

%files utils
%doc installed-docs/*
%doc AUTHORS INSTALL NEWS README TIPS TODO
%{_bindir}/esdcat
%{_bindir}/esdctl
%{_bindir}/esddsp
%{_bindir}/esdfilt
%{_bindir}/esdloop
%{_bindir}/esdmon
%{_bindir}/esdplay
%{_bindir}/esdrec
%{_bindir}/esdsample
%{_mandir}/man1/esd[a-z]*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for EsounD
Group:		System/Libraries

%description -n %{libname}
These are the libraries for EsounD.

%files -n %{libname}
%{_libdir}/libesd.so.%{major}*
%{_libdir}/libesddsp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Includes and more to develop EsounD applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	esound-devel = %{EVRD}

%description -n %{devname}
Libraries, include files and other resources you can use to develop EsounD
applications.

%files -n %{devname}
%{_bindir}/esd-config
%{_includedir}/*
%{_datadir}/aclocal/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man1/esd-config.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .defaultoptions
%patch1 -p1 -b .xmlto
%patch2 -p1 -b .validation

%build
#due to xmlto migration
autoreconf -fi

%configure \
	--disable-static \
	--with-libwrap \
	--disable-alsa

%make LIBS='-lm'

%install
%makeinstall_std
mv %{buildroot}%{_datadir}/doc/esound installed-docs

# (cg) We no longer ship the actual deamon - PulseAudio does this these days
rm -f %{buildroot}%{_sysconfdir}/esd.conf %{buildroot}%{_bindir}/esd %{buildroot}%{_mandir}/man1/esd.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12610 |21mr|espeak-1.51.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We now package a more recent and active fork
%define	oname espeak-ng

%define	major 1
%define	libname %mklibname %{oname} %{major}
%define	libnamedev %mklibname -d %{oname}

Summary:	Text to speech synthesis engine
Name:		espeak
Version:	1.51.1
Release:	2
License:	GPLv3+
Group:		Sound
Url:		https://github.com/espeak-ng/espeak-ng
Source0:	https://github.com/espeak-ng/espeak-ng/archive/%{oname}-%{version}.tar.gz
# BRs not provided yet: pcaudiolib, sonic, ronn (manpages)

%description
A compact open source software speech synthesizer for English and other
languages. It supports more than 100 languages and accents, and produces good
quality speech, by using a "formant synthesis" method. This allows many
languages to be provided in a small size. The speech is clear, and can be used
at high speeds, but is not as natural or smooth as larger synthesizers which
are based on human speech recordings. It also supports Klatt formant synthesis
and the ability to use MBROLA as back-end speech synthesizer.

%files
%doc CHANGELOG.md COPYING README.md
%{_bindir}/%{name}*
%{_bindir}/speak*
%{_datadir}/%{oname}-data
%{_datadir}/vim/addons/*/*.vim
%{_datadir}/vim/registry/espeak.yaml
#{_mandir}/man1/%%{name}.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Text to speech library
Group:		System/Libraries

%description -n %{libname}
A compact open source software speech synthesizer for English and other
languages.
This package contains the shared library for %{oname}.

%files -n %{libname}
%doc COPYING
%{_libdir}/libespeak-ng.so.%{major}*
%{_libdir}/libespeak.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{libnamedev}
Summary:	Development files for %{oname} library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:		libespeak-devel = %{EVRD}
Provides:		espeak-devel = %{EVRD}
%rename	%{_lib}espeak-devel

%description -n %{libnamedev}
A compact open source software speech synthesizer for English and other
languages.
This package contains the development files needed to use the %{oname}
library.

%files -n %{libnamedev}
%doc docs
%{_includedir}/%{oname}/
%{_includedir}/%{name}/*.h
%{_libdir}/libespeak-ng.so
%{_libdir}/libespeak.so
%{_libdir}/pkgconfig/%{oname}.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}


%build
PWD=`pwd`
export LD_LIBRARY_PATH="$PWD/src/.libs:$LD_LIBRARY_PATH"

pushd ./src/ucd-tools
	./autogen.sh
popd

./autogen.sh
%configure	\
	--disable-rpath \
	--without-gradle \
	--without-pcaudiolib \
	--without-sonic
# Parallel building breaks dictionaries building
%make -j1


%install
%makeinstall_std

# We don't want .a files
rm -f %{buildroot}%{_libdir}/libespeak-ng.a

# add symlink for compat
ln -s libespeak-ng.so %{buildroot}%{_libdir}/libespeak.so
ln -s libespeak-ng.so.%{major} %{buildroot}%{_libdir}/libespeak.so.%{major}

# Fix wrong perms
#chmod -x %%{buildroot}%%{_datadir}/%%{oname}-data/lang/thai/shn

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12611 |21mr|etcd-3.5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug_package %nil

# use bundled golang modules (from Source1)
%ifarch %{e2k}
%global gomodulesmode GO111MODULE=off
%else
%global gomodulesmode GO111MODULE=on
%endif
%global goipath github.com/etcd-io/etcd

# Package source code as a devel package.
# Turn on if using not bundled go modules.
# Offed for now because it automatically requires not packaged golang modules.
%bcond_with devel

Name:		etcd
Version:	3.5.2
Release:	2
Summary:	Distributed reliable key-value store for the most critical data of a distributed system
Group:		Development/Other
# Upstream license specification: Apache-2.0
License:	ASL 2.0
URL:		https://etcd.io/
Source0:	https://github.com/etcd-io/etcd/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}.service
Source2:	%{name}.conf
Source3:	etcd.sysusers.conf
# go mod vendor, created with ./upd.sh
Source10:	%{name}-%{version}-go-mod-vendor.tar.xz
Source11:	upd.sh
Patch0:		etcd-remove-gobin.patch
Patch1:		CVE-2023-32082.patch
BuildRequires:	golang

Requires(pre):	/bin/systemd-sysusers

%gometa

%description
Distributed reliable key-value store for the most critical
data of a distributed system.

%if %{with devel}
%gopkg
%gopkgfiles
%endif

%files
%license LICENSE
%doc CONTRIBUTING.md README.md
%doc Documentation
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}
%dir %attr(-,%{name},%{name}) %{_sharedstatedir}/%{name}
%{_unitdir}/%{name}.service
%{_sysusersdir}/etcd.conf

%pre
%sysusers_create_package etcd %{SOURCE3}

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun %{name}.service

#---------------------------------------------------------
%package -n %{name}ctl
Summary:	etcdctl is a command line client for etcd
Group:		Development/Other

%description -n %{name}ctl
etcdctl is a command line client for etcd.

%files -n %{name}ctl
%doc README.md LICENSE
%{_bindir}/etcdctl
%{_bindir}/etcdutl

#---------------------------------------------------------

%prep
%goprep
%apply_patches

for d in contrib etcdctl etcdutl pkg raft hack security; do
mv $d/README.md README-$d.md
done
mv etcdctl/READMEv2.md READMEv2-etcdctl.md
mv client/v2/README.md README-clientv2.md
mv client/v3/README.md README-clientv3.md

%build
( cd .. && tar -xf %{SOURCE10} )
export %{gomodulesmode}
mkdir -p vendor/github.com/etcd-io
ln -s %{_builddir}/%{name}-%{version} vendor/github.com/etcd-io/etcd

#----------------------------
rm -r vendor/go.etcd.io/etcd/api/v3
ln -s %{_builddir}/%{name}-%{version}/api vendor/go.etcd.io/etcd/api/v3
rm -r vendor/go.etcd.io/etcd/client/pkg/v3
ln -s %{_builddir}/%{name}-%{version}/client/pkg vendor/go.etcd.io/etcd/client/pkg/v3
rm -r vendor/go.etcd.io/etcd/client/v2
ln -s %{_builddir}/%{name}-%{version}/client/v2 vendor/go.etcd.io/etcd/client/v2
rm -r vendor/go.etcd.io/etcd/client/v3
ln -s %{_builddir}/%{name}-%{version}/client/v3 vendor/go.etcd.io/etcd/client/v3
rm -r vendor/go.etcd.io/etcd/etcdctl/v3
ln -s %{_builddir}/%{name}-%{version}/etcdctl vendor/go.etcd.io/etcd/etcdctl/v3
rm -r vendor/go.etcd.io/etcd/etcdutl/v3
ln -s %{_builddir}/%{name}-%{version}/etcdutl vendor/go.etcd.io/etcd/etcdutl/v3
rm -r vendor/go.etcd.io/etcd/pkg/v3
ln -s %{_builddir}/%{name}-%{version}/pkg vendor/go.etcd.io/etcd/pkg/v3
rm -r vendor/go.etcd.io/etcd/raft/v3
ln -s %{_builddir}/%{name}-%{version}/raft vendor/go.etcd.io/etcd/raft/v3
rm -r vendor/go.etcd.io/etcd/server/v3
ln -s %{_builddir}/%{name}-%{version}/server vendor/go.etcd.io/etcd/server/v3
rm -r vendor/go.etcd.io/etcd/tests/v3
ln -s %{_builddir}/%{name}-%{version}/tests vendor/go.etcd.io/etcd/tests/v3

#----------------------------

%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}/server

for cmd in etcdctl etcdutl; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%if %{with devel}
%gopkginstall
%endif

install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

install -Dpm 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -dm 0755 %{buildroot}%{_sysconfdir}/%{name}
install -pm 644 -t %{buildroot}%{_sysconfdir}/%{name} %{SOURCE2}

# And create /var/lib/etcd
install -dm 0755 %{buildroot}%{_sharedstatedir}/%{name}

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/etcd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12612 |21mr|etcskel-1.63-39
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA default files for new users' home directories
Name:		etcskel
Version:	1.63
Release:	39
License:	Public Domain
Group:		System/Base
Source0:	%{name}-%{version}.tar.bz2
Source1:	etcskel.rpmlintrc
BuildArch:	noarch
Requires:	bash

%description
The etcskel package is part of the basic ROSA system.

Etcskel provides the /etc/skel directory's files. These files are then placed
in every new user's home directory when new accounts are created.

%prep
%setup -q

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/skel/.cache
chmod 0755 %{buildroot}%{_sysconfdir}/skel/.cache

mkdir -p %{buildroot}%{_sysconfdir}/skel/.compose-cache
chmod 0755 %{buildroot}%{_sysconfdir}/skel/.compose-cache

%files
%doc ChangeLog
%config(noreplace) /etc/skel

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12613 |21mr|ethtool-5.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ethernet settings tool for network cards
Name:		ethtool
Version:	5.19
Release:	1
License:	GPL
Group:		System/Configuration/Networking
Source0:	https://www.kernel.org/pub/software/network/ethtool/%{name}-%{version}.tar.xz
Source1:	https://www.kernel.org/pub/software/network/ethtool/%{name}-%{version}.tar.sign
URL:		https://www.kernel.org/pub/software/network/ethtool
BuildRequires:	pkgconfig(libmnl)
Epoch:		1

%description
This utility allows querying and changing of ethernet
card settings, such as speed, port, and autonegotiation.

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install

%files
%doc AUTHORS NEWS
%{_mandir}/*/*
%{_sbindir}/ethtool
%{_datadir}/bash-completion/completions/ethtool

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12614 |21mr|eventviews-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 event views module
Name:		eventviews
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicalendar-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarsupport-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kgantt-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 event views module.

%files
%{_kde5_datadir}/qlogging-categories5/eventviews.categories
%{_kde5_datadir}/qlogging-categories5/eventviews.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 event views library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 event views library translations.

%files i18n -f libeventviews.lang

#----------------------------------------------------------------------------

%define kf5eventviews_major 5
%define libkf5eventviews %mklibname kf5eventviews %{kf5eventviews_major}

%package -n %{libkf5eventviews}
Summary:	KDE Frameworks 5 event views shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5eventviews}
KDE Frameworks 5 event views shared library.

%files -n %{libkf5eventviews}
%{_kde5_libdir}/libKPim5EventViews.so.%{kf5eventviews_major}*

#----------------------------------------------------------------------------

%define devkf5eventviews %mklibname kf5eventviews -d

%package -n %{devkf5eventviews}
Summary:	Development files for KDE Frameworks 5 event views module
Group:		Development/KDE and Qt
Requires:	%{libkf5eventviews} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5eventviews-devel = %{version}

%description -n %{devkf5eventviews}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5eventviews}
%{_kde5_includedir}/KPim5/EventViews
%{_kde5_libdir}/cmake/KPim5EventViews
%{_kde5_libdir}/libKPim5EventViews.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libeventviews --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12615 |21mr|evince-42.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major			4
%define major_evdocument	4
%define major_evview		3
%define api			3.0
%define gir_major		3.0
%define libname_evdocument	%mklibname evdocument 3 %{major_evdocument}
%define libname_evview		%mklibname evview 3 %{major_evview}
%define girname			%mklibname %{name}-gir %{gir_major}
%define devname			%mklibname %{name} -d

%define url_ver	%(echo %{version}|cut -d. -f1)

Summary:	GNOME Document viewer
Name:		evince
Version:	42.3
Release:	2
License:	GPLv2+ and GFDL+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/evince
Source0:	https://download.gnome.org/sources/evince/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	evince-40.4_ru.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	ghostscript
#gw if we run autoconf
BuildRequires:	gnome-icon-theme
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	kpathsea-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(adwaita-icon-theme)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-pdf)
BuildRequires:	pkgconfig(cairo-ps)
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(gi-docgen)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtk+-unix-print-3.0)
BuildRequires:	pkgconfig(gtk+-x11-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libgxps)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(synctex)
BuildRequires:	pkgconfig(x11)
Requires:	ghostscript
Requires:	ghostscript-module-X
Obsoletes:	%{name}-browser-plugin <= %{EVRD}

%description
Evince is the GNOME Document viewer. It supports PDF, PostScript and
other formats. To view .dvi files as produced by TeX in evince,
install the %{name}-dvi package.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md TODO
%license COPYING
%{_appdatadir}/*.xml
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.gnome.%{name}.Daemon.service
%{_datadir}/GConf/gsettings/%{name}.convert
%{_datadir}/glib-2.0/schemas/org.gnome.Evince.gschema.xml
%{_datadir}/icons/hicolor/*/apps/org.gnome.Evince*
%{_datadir}/%{name}
%{_datadir}/thumbnailers/%{name}.thumbnailer
%{_libdir}/%{name}/%{major}/backends/comicsdocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/djvudocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/libcomicsdocument.so
%{_libdir}/%{name}/%{major}/backends/libdjvudocument.so
%ifarch %{ix86} %{x86_64} %{armx}
%{_libdir}/%{name}/%{major}/backends/libpdfdocument.so
%endif
%{_libdir}/%{name}/%{major}/backends/libtiffdocument.so
%{_libdir}/%{name}/%{major}/backends/libxpsdocument.so
%ifarch %{ix86} %{x86_64} %{armx}
%{_libdir}/%{name}/%{major}/backends/pdfdocument.evince-backend
%endif
%{_libdir}/%{name}/%{major}/backends/tiffdocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/xpsdocument.%{name}-backend
%{_libdir}/nautilus/extensions-3.0/lib%{name}*so*
%{_libexecdir}/%{name}d
%{_mandir}/man1/%{name}*.1*
%{_userunitdir}/org.gnome.Evince.service

#----------------------------------------------------------------------------

%package dvi
Summary:	TeX DVI document support for evince
Group:		Graphical desktop/GNOME
#gw just like xdvi, needed for rendering the fonts
Requires:	texlive-xdvi
Requires:	%{name} = %{EVRD}

%description dvi
This package adds support for displaying .dvi files to evince.
These files are produced by TeX, often using a macro package like LaTeX.

%files dvi
%doc COPYING
%{_libdir}/%{name}/%{major}/backends/dvidocument.%{name}-backend
%{_libdir}/%{name}/%{major}/backends/libdvidocument.so

#----------------------------------------------------------------------------

%package -n %{libname_evdocument}
Summary:	GNOME Document viewer library
Group:		System/Libraries

%description -n %{libname_evdocument}
This is the GNOME Document viewer library, the shared parts of evince.

%files -n %{libname_evdocument}
%doc COPYING
%{_libdir}/libevdocument3.so.%{major_evdocument}*

#----------------------------------------------------------------------------

%package -n %{libname_evview}
Summary:	GNOME Document viewer library
Group:		System/Libraries

%description -n %{libname_evview}
This is the GNOME Document viewer library, the shared parts of evince.

%files -n %{libname_evview}
%doc COPYING
%{_libdir}/libevview3.so.%{major_evview}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname_evdocument} = %{EVRD}
Requires:	%{libname_evview} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/EvinceDocument-%{gir_major}.typelib
%{_libdir}/girepository-1.0/EvinceView-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GNOME Document viewer library
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{libname_evdocument} = %{EVRD}
Requires:	%{libname_evview} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the GNOME Document viewer library, the shared parts of evince.

%files -n %{devname}
%license COPYING
%{_datadir}/gir-1.0/EvinceDocument-%{gir_major}.gir
%{_datadir}/gir-1.0/EvinceView-%{gir_major}.gir
%{_defaultdocdir}/libevdocument
%{_defaultdocdir}/libevview
%{_includedir}/%{name}*
%{_libdir}/libevdocument3.so
%{_libdir}/libevview3.so
%{_libdir}/pkgconfig/%{name}*pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson \
	-Dthumbnail_cache=enabled	\
	-Dmultimedia=enabled
%meson_build


%install
%meson_install

desktop-file-install	\
	--delete-original				\
	--vendor=""					\
	--dir=%{buildroot}%{_datadir}/applications	\
	--remove-category=Application			\
	%{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12616 |21mr|evo-inflector-1.2.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          evo-inflector
Version:       1.2.1
Release:       10
Summary:       Implements English pluralization algorithm
License:       ASL 2.0
URL:           https://github.com/atteo/evo-inflector
Source0:       https://github.com/atteo/evo-inflector/archive/%{version}.tar.gz
# Test deps
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(junit:junit)
BuildRequires: maven-local
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Evo Inflector implements English pluralization algorithm
based on Damian Conway's paper "An Algorithmic Approach to
English Pluralization".

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

# org.atteo:parent:pom:1.11
%pom_remove_parent
%pom_xpath_inject pom:project "<groupId>org.atteo</groupId>"

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12617 |21mr|evolution-3.52.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	Integrated GNOME mail client, calendar and address book
Name:		evolution
Version:	3.52.2
Release:	2
License: 	LGPLv2+
Group:		Networking/Mail
Url:		https://download.gnome.org/sources/evolution
Source0:	https://download.gnome.org/sources/evolution/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		evolution-3.52.1-downgrade-gobject-introspection.patch
Patch1:		Translations-of-the-concepts-email-and-raw-email-are.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	gtk-doc
BuildRequires:	highlight
BuildRequires:	intltool
BuildRequires:	itstool
#BuildRequires:	libytnef-devel #Contrib
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo-gobject)
BuildRequires:	pkgconfig(camel-1.2)
BuildRequires:	pkgconfig(champlain-gtk-0.12)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gnome-autoar-0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-icon-theme)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtkhtml-editor-4.0)
BuildRequires:	pkgconfig(gtkspell3-3.0)
BuildRequires:	pkgconfig(gweather4)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libcmark)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libebook-contacts-1.2)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libgtkhtml-4.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpst)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(webkit2gtk-4.1)
# (fc) 0.8-5mdk implicit dependency is not enough
Requires:	%{name}-data-server
Requires:	gnupg
Requires:	gtkhtml4
Requires:	gtk+3.0
Requires:	webkit2gtk4.1
Recommends:	gstreamer1.0-plugins-good
# the old shared lib pkg should be obsoleted after everything is rebuilt

%description
Evolution is the GNOME mailer, calendar, contact manager and
communications tool. The tools which make up Evolution will
be tightly integrated with one another and act as a seamless
personal information-management tool.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README.md
%license COPYING
%{_appdatadir}/*.xml
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/GConf/gsettings/%{name}.convert
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/%{name}
%{_libdir}/%{name}-data-server/camel-providers
%{_libdir}/%{name}-data-server/ui-modules
%{_libdir}/%{name}/modules/*.so
%{_libdir}/%{name}/plugins/*.eplug
%{_libdir}/%{name}/plugins/*.so
%{_libdir}/%{name}/*.so
%{_libdir}/%{name}/web-extensions
%{_libexecdir}/%{name}/killev
%{_libexecdir}/%{name}/%{name}-backup
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package devel
Summary:	Libraries and include files for developing Evolution components
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{EVRD}

%description devel
This package contains the files necessary to develop applications
using Evolution's libraries.

%files devel
%license COPYING
%{_includedir}/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DCMAKE_INSTALL_PREFIX=%{_prefix}	\
	-DCMAKE_SKIP_RPATH:BOOL=OFF		\
	-DENABLE_CONTACT_MAPS=ON		\
	-DENABLE_YTNEF=OFF			\
	-DLIBEXEC_INSTALL_DIR=%{_libexecdir}	\
	-DLIB_INSTALL_DIR=%{_libdir}		\
	-DSHARE_INSTALL_PREFIX=%{_datadir}	\
	-DWITH_GWEATHER4=ON
%make

%install
%makeinstall_std -C build
#remove unpackaged files
rm -rf %{buildroot}/var/lib/

desktop-file-install --vendor="" \
	--remove-category="Office" \
	--remove-category="Calendar" \
	--remove-category="ContactManagement" \
	--add-category="Network" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/org.gnome.Evolution.desktop

# do not package obsolete mime-info files, evolution doesn't import them on commandline (Mdv bug #53984)
rm -fr %{buildroot}/%{_datadir}/mime-info

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12618 |21mr|evolution-data-server-3.42.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api		1.2
%define api_cal		2.0
%define camel_major	63
%define ebackend_major	10
%define ebook_major	20
%define ebookcon_major	3
%define ecal_major	1
%define edatabook_major	26
%define edatacal_major	1
%define edataserv_major	26
%define edatasui_major	3
%define libcamel	%mklibname camel %{api} %{camel_major}
%define libebackend	%mklibname ebackend %{api} %{ebackend_major}
%define libebook	%mklibname ebook %{api} %{ebook_major}
%define libebookcon	%mklibname ebook-contacts %{api} %{ebookcon_major}
%define libecal		%mklibname ecal %{api_cal} %{ecal_major}
%define libedatabook	%mklibname edata-book %{api} %{edatabook_major}
%define libedatacal	%mklibname edata-cal %{api_cal} %{edatacal_major}
%define libedataserv	%mklibname edataserver %{api} %{edataserv_major}
%define libedatasui	%mklibname edataserverui %{api} %{edatasui_major}
%define devname		%mklibname %{name} -d
%define devcal		%mklibname %{name}-cal -d
%define girname		%mklibname %{name}-gir %{api}
%define gircal		%mklibname %{name}-cal-gir %{api}

Name:		evolution-data-server
Summary:	Evolution Data Server
Version:	3.42.4
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/evolution-data-server
Source0:	https://download.gnome.org/sources/evolution-data-server/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gettext
BuildRequires:	gnome-common
BuildRequires:	gperf
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	vala-tools
BuildRequires:	db-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gcr-base-3)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gweather-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(oauth)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(webkit2gtk-4.0)

%description
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -f %{name}.lang
%license COPYING
%doc NEWS README
%{_datadir}/applications/org.gnome.Evolution-alarm-notify.desktop
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook10.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar8.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources5.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter0.service
%{_datadir}/GConf/gsettings/evolution-data-server.convert
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
%{_datadir}/pixmaps/%{name}
%{_datadir}/%{name}
%{_libdir}/%{name}
%exclude %{_libdir}/%{name}/libedbus-private.so
%{_libexecdir}/%{name}
%{_libexecdir}/camel-gpg-photo-saver
%{_libexecdir}/camel-index-control-%{api}
%attr(2755,root,mail) %{_libexecdir}/camel-lock-helper-%{api}
%{_libexecdir}/evolution-addressbook-factory
%{_libexecdir}/evolution-addressbook-factory-subprocess
%{_libexecdir}/evolution-calendar-factory
%{_libexecdir}/evolution-calendar-factory-subprocess
%{_libexecdir}/evolution-scan-gconf-tree-xml
%{_libexecdir}/evolution-source-registry
%{_libexecdir}/evolution-user-prompter
%{_sysconfdir}/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop
%{_userunitdir}/evolution-addressbook-factory.service
%{_userunitdir}/evolution-calendar-factory.service
%{_userunitdir}/evolution-source-registry.service
%{_userunitdir}/evolution-user-prompter.service

#----------------------------------------------------------------------------

# Public libraries from subpackages are linked with it,
# make it a subpackage as a temporary solution to avoid pulling
# full evolution-data-server where it is not needed. More info:
# https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/325

%package libedbus-private
Summary:	libedbus private library from evolution-data-server
Group:		System/Libraries
Conflicts:	%{name} < 3.39.2-3

%description libedbus-private
libedbus private library from evolution-data-server

%files libedbus-private
%{_libdir}/%{name}/libedbus-private.so

#----------------------------------------------------------------------------

%package gtk-doc
Summary:	GTK docs for %{name}
Group:		System/Libraries

%description gtk-doc
GTK docs for %{name}

%files gtk-doc
%license COPYING
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%package -n %{libcamel}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libcamel}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libcamel}
%license COPYING
%{_libdir}/libcamel-%{api}.so.%{camel_major}*

#----------------------------------------------------------------------------

%package -n %{libebackend}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libebackend}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libebackend}
%license COPYING
%{_libdir}/libebackend-%{api}.so.%{ebackend_major}*

#----------------------------------------------------------------------------

%package -n %{libebook}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libebook}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libebook}
%license COPYING
%{_libdir}/libebook-%{api}.so.%{ebook_major}*

#----------------------------------------------------------------------------

%package -n %{libebookcon}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libebookcon}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libebookcon}
%license COPYING
%{_libdir}/libebook-contacts-%{api}.so.%{ebookcon_major}*

#----------------------------------------------------------------------------

%package -n %{libecal}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libecal}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libecal}
%license COPYING
%{_libdir}/libecal-%{api_cal}.so.%{ecal_major}*

#----------------------------------------------------------------------------

%package -n %{libedatabook}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedatabook}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedatabook}
%license COPYING
%{_libdir}/libedata-book-%{api}.so.%{edatabook_major}*

#----------------------------------------------------------------------------

%package -n %{libedatacal}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedatacal}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedatacal}
%license COPYING
%{_libdir}/libedata-cal-%{api_cal}.so.%{edatacal_major}*

#----------------------------------------------------------------------------

%package -n %{libedataserv}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedataserv}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedataserv}
%license COPYING
%{_libdir}/libedataserver-%{api}.so.%{edataserv_major}*

#----------------------------------------------------------------------------

%package -n %{libedatasui}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedatasui}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedatasui}
%license COPYING
%{_libdir}/libedataserverui-%{api}.so.%{edatasui_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for using Evolution Data Server
Group:		Development/GNOME and GTK+
Requires:	%{girname} = %{EVRD}
Requires:	%{libcamel} = %{EVRD}
Requires:	%{libebackend} = %{EVRD}
Requires:	%{libebook} = %{EVRD}
Requires:	%{libebookcon} = %{EVRD}
Requires:	%{libedatabook} = %{EVRD}
Requires:	%{libedataserv} = %{EVRD}
Requires:	%{libedatasui} = %{EVRD}

%description -n %{devname}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{devname}
%license COPYING
%{_datadir}/gir-1.0/*-%{api}.gir
%{_datadir}/vala/vapi/*-%{api}.deps
%{_datadir}/vala/vapi/*-%{api}.vapi
%{_includedir}/%{name}/camel
%{_includedir}/%{name}/libebackend
%{_includedir}/%{name}/libebook
%{_includedir}/%{name}/libebook-contacts
%{_includedir}/%{name}/libedata-book
%{_includedir}/%{name}/libedataserver
%{_includedir}/%{name}/libedataserverui
%{_libdir}/pkgconfig/*-%{api}.pc
%{_libdir}/*-%{api}.so

#----------------------------------------------------------------------------

%package -n %{devcal}
Summary:	Libraries and include files for using Evolution Data Server
Group:		Development/GNOME and GTK+
Requires:	%{gircal} = %{EVRD}
Requires:	%{libecal} = %{EVRD}
Requires:	%{libedatacal} = %{EVRD}

%description -n %{devcal}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{devcal}
%license COPYING
%{_datadir}/gir-1.0/*-%{api_cal}.gir
%{_datadir}/vala/vapi/*-%{api_cal}.deps
%{_datadir}/vala/vapi/*-%{api_cal}.vapi
%{_includedir}/%{name}/libecal
%{_includedir}/%{name}/libedata-cal
%{_libdir}/pkgconfig/*-%{api_cal}.pc
%{_libdir}/*-%{api_cal}.so

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{gircal} = %{EVRD}
Requires:	%{libcamel} = %{EVRD}
Requires:	%{libebackend} = %{EVRD}
Requires:	%{libebook} = %{EVRD}
Requires:	%{libebookcon} = %{EVRD}
Requires:	%{libedatabook} = %{EVRD}
Requires:	%{libedataserv} = %{EVRD}
Requires:	%{libedatasui} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/*-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{gircal}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libecal} = %{EVRD}
Requires:	%{libedatacal} = %{EVRD}

%description -n %{gircal}
GObject Introspection interface description for %{name}.

%files -n %{gircal}
%license COPYING
%{_libdir}/girepository-1.0/*-%{api_cal}.typelib

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CPPFLAGS="-I%{_includedir}/et"
export CFLAGS="%{optflags} -DLDAP_DEPRECATED -fPIC -I%{_includedir}/et -Wno-deprecated-declarations"
%cmake \
	-DENABLE_GTK_DOC=ON			\
	-DENABLE_VALA_BINDINGS=ON		\
	-DENABLE_INTROSPECTION=ON		\
	-DCMAKE_SKIP_RPATH:BOOL=OFF		\
	-G Ninja
%ninja_build

%install
%ninja_install -C build

# give the libraries some executable bits 
find %{buildroot} -name '*.so.*' -exec chmod +x {} \;

sed -i 's/\([^-]\)Dawati/\1X-Dawati/' %{buildroot}%{_datadir}/applications/org.gnome.Evolution-alarm-notify.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12619 |21mr|evolution-data-server-3.52.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude_from ^%{_libdir}/libedbus-private.so

%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api		1.2
%define api4		1.0
%define api_cal		2.0
%define camel_major	64
%define ebackend_major	11
%define ebookcon_major	4
%define ebook_major	21
%define ecal_major	3
%define edatabook_major	27
%define edatacal_major	2
%define edataserv_major	27
%define edatasui4_major	0
%define edatasui_major	4
%define libcamel	%mklibname camel %{api} %{camel_major}
%define libebackend	%mklibname ebackend %{api} %{ebackend_major}
%define libebookcon	%mklibname ebook-contacts %{api} %{ebookcon_major}
%define libebook	%mklibname ebook %{api} %{ebook_major}
%define libecal		%mklibname ecal %{api_cal} %{ecal_major}
%define libedatabook	%mklibname edata-book %{api} %{edatabook_major}
%define libedatacal	%mklibname edata-cal %{api_cal} %{edatacal_major}
%define libedataserv	%mklibname edataserver %{api} %{edataserv_major}
%define libedatasui4	%mklibname edataserverui4 %{api4} %{edatasui4_major}
%define libedatasui	%mklibname edataserverui %{api} %{edatasui_major}
%define gircal		%mklibname %{name}-cal-gir %{api}
%define girname4	%mklibname %{name}4-gir %{api4}
%define girname		%mklibname %{name}-gir %{api}
%define devcal		%mklibname %{name}-cal -d
%define devname		%mklibname %{name} -d

Name:		evolution-data-server
Summary:	Evolution Data Server
Version:	3.52.2
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/evolution-data-server
Source0:	https://download.gnome.org/sources/evolution-data-server/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		0001-Fix-EWS-module.patch
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	gnome-common
BuildRequires:	gperf
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	ninja
BuildRequires:	vala-tools
BuildRequires:	db-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gweather4)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(oauth)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(webkit2gtk-4.1)
BuildRequires:	pkgconfig(webkitgtk-6.0)

%description
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -f %{name}.lang
%doc NEWS README
%license COPYING
%attr(2755,root,mail) %{_libexecdir}/camel-lock-helper-%{api}
%{_datadir}/applications/org.gnome.Evolution-alarm-notify.desktop
%{_datadir}/applications/org.gnome.evolution-data-server.OAuth2-handler.desktop
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.AddressBook10.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Calendar8.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.Sources5.service
%{_datadir}/dbus-1/services/org.gnome.evolution.dataserver.UserPrompter0.service
%{_datadir}/GConf/gsettings/evolution-data-server.convert
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.addressbook.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.calendar.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution-data-server.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.Evolution.DefaultSources.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution.eds-shell.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.evolution.shell.network-config.gschema.xml
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}
%{_iconsdir}/hicolor/scalable/apps/org.gnome.Evolution-alarm-notify.svg
%exclude %{_libdir}/%{name}/libedbus-private.so
%{_libdir}/%{name}
%{_libexecdir}/camel-gpg-photo-saver
%{_libexecdir}/camel-index-control-%{api}
%{_libexecdir}/evolution-addressbook-factory
%{_libexecdir}/evolution-addressbook-factory-subprocess
%{_libexecdir}/evolution-calendar-factory
%{_libexecdir}/evolution-calendar-factory-subprocess
%{_libexecdir}/evolution-scan-gconf-tree-xml
%{_libexecdir}/evolution-source-registry
%{_libexecdir}/evolution-user-prompter
%{_libexecdir}/%{name}
%{_sysconfdir}/xdg/autostart/org.gnome.Evolution-alarm-notify.desktop
%{_userunitdir}/evolution-addressbook-factory.service
%{_userunitdir}/evolution-calendar-factory.service
%{_userunitdir}/evolution-source-registry.service
%{_userunitdir}/evolution-user-prompter.service

#----------------------------------------------------------------------------

# Public libraries from subpackages are linked with it,
# make it a subpackage as a temporary solution to avoid pulling
# full evolution-data-server where it is not needed. More info:
# https://gitlab.gnome.org/GNOME/evolution-data-server/-/issues/325

%package libedbus-private
Summary:	libedbus private library from evolution-data-server
Group:		System/Libraries
Conflicts:	%{name} < 3.39.2-3

%description libedbus-private
libedbus private library from evolution-data-server

%files libedbus-private
%{_libdir}/%{name}/libedbus-private.so
%{_libdir}/libedbus-private.so

#----------------------------------------------------------------------------

%package gtk-doc
Summary:	GTK docs for %{name}
Group:		System/Libraries

%description gtk-doc
GTK docs for %{name}

%files gtk-doc
%license COPYING
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%package -n %{libcamel}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libcamel}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libcamel}
%license COPYING
%{_libdir}/libcamel-%{api}.so.%{camel_major}*

#----------------------------------------------------------------------------

%package -n %{libebackend}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libebackend}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libebackend}
%license COPYING
%{_libdir}/libebackend-%{api}.so.%{ebackend_major}*

#----------------------------------------------------------------------------

%package -n %{libebook}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libebook}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libebook}
%license COPYING
%{_libdir}/libebook-%{api}.so.%{ebook_major}*

#----------------------------------------------------------------------------

%package -n %{libebookcon}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libebookcon}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libebookcon}
%license COPYING
%{_libdir}/libebook-contacts-%{api}.so.%{ebookcon_major}*

#----------------------------------------------------------------------------

%package -n %{libecal}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libecal}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libecal}
%license COPYING
%{_libdir}/libecal-%{api_cal}.so.%{ecal_major}*

#----------------------------------------------------------------------------

%package -n %{libedatabook}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedatabook}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedatabook}
%license COPYING
%{_libdir}/libedata-book-%{api}.so.%{edatabook_major}*

#----------------------------------------------------------------------------

%package -n %{libedatacal}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedatacal}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedatacal}
%license COPYING
%{_libdir}/libedata-cal-%{api_cal}.so.%{edatacal_major}*

#----------------------------------------------------------------------------

%package -n %{libedataserv}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedataserv}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedataserv}
%license COPYING
%{_libdir}/libedataserver-%{api}.so.%{edataserv_major}*

#----------------------------------------------------------------------------

%package -n %{libedatasui}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedatasui}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedatasui}
%license COPYING
%{_libdir}/libedataserverui-%{api}.so.%{edatasui_major}*

#----------------------------------------------------------------------------

%package -n %{libedatasui4}
Summary:	Shared libraries for using Evolution Data Server
Group:		System/Libraries

%description -n %{libedatasui4}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{libedatasui4}
%license COPYING
%{_libdir}/libedataserverui4-%{api4}.so.%{edatasui4_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for using Evolution Data Server
Group:		Development/GNOME and GTK+
Requires:	%{girname4} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{libcamel} = %{EVRD}
Requires:	%{libebackend} = %{EVRD}
Requires:	%{libebookcon} = %{EVRD}
Requires:	%{libebook} = %{EVRD}
Requires:	%{libedatabook} = %{EVRD}
Requires:	%{libedataserv} = %{EVRD}
Requires:	%{libedatasui4} = %{EVRD}
Requires:	%{libedatasui} = %{EVRD}

%description -n %{devname}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{devname}
%license COPYING
%{_datadir}/gir-1.0/*-%{api4}.gir
%{_datadir}/gir-1.0/*-%{api}.gir
%{_datadir}/vala/vapi/*-%{api4}.deps
%{_datadir}/vala/vapi/*-%{api4}.vapi
%{_datadir}/vala/vapi/*-%{api}.deps
%{_datadir}/vala/vapi/*-%{api}.vapi
%{_includedir}/%{name}/camel
%{_includedir}/%{name}/libebackend
%{_includedir}/%{name}/libebook
%{_includedir}/%{name}/libebook-contacts
%{_includedir}/%{name}/libedata-book
%{_includedir}/%{name}/libedataserver
%{_includedir}/%{name}/libedataserverui
%{_includedir}/%{name}/libedataserverui4
%{_libdir}/*-%{api4}.so
%{_libdir}/*-%{api}.so
%{_libdir}/pkgconfig/*-%{api4}.pc
%{_libdir}/pkgconfig/*-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{devcal}
Summary:	Libraries and include files for using Evolution Data Server
Group:		Development/GNOME and GTK+
Requires:	%{gircal} = %{EVRD}
Requires:	%{libecal} = %{EVRD}
Requires:	%{libedatacal} = %{EVRD}

%description -n %{devcal}
Evolution Data Server provides a central location for your addressbook
and calendar in the gnome desktop.

%files -n %{devcal}
%license COPYING
%{_datadir}/gir-1.0/*-%{api_cal}.gir
%{_datadir}/vala/vapi/*-%{api_cal}.deps
%{_datadir}/vala/vapi/*-%{api_cal}.vapi
%{_includedir}/%{name}/libecal
%{_includedir}/%{name}/libedata-cal
%{_libdir}/pkgconfig/*-%{api_cal}.pc
%{_libdir}/*-%{api_cal}.so

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{gircal} = %{EVRD}
Requires:	%{libcamel} = %{EVRD}
Requires:	%{libebackend} = %{EVRD}
Requires:	%{libebook} = %{EVRD}
Requires:	%{libebookcon} = %{EVRD}
Requires:	%{libedatabook} = %{EVRD}
Requires:	%{libedataserv} = %{EVRD}
Requires:	%{libedatasui} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/*-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girname4}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{gircal} = %{EVRD}
Requires:	%{libcamel} = %{EVRD}
Requires:	%{libebackend} = %{EVRD}
Requires:	%{libebook} = %{EVRD}
Requires:	%{libebookcon} = %{EVRD}
Requires:	%{libedatabook} = %{EVRD}
Requires:	%{libedataserv} = %{EVRD}
Requires:	%{libedatasui4} = %{EVRD}

%description -n %{girname4}
GObject Introspection interface description for %{name}.

%files -n %{girname4}
%license COPYING
%{_libdir}/girepository-1.0/*-%{api4}.typelib

#----------------------------------------------------------------------------

%package -n %{gircal}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libecal} = %{EVRD}
Requires:	%{libedatacal} = %{EVRD}

%description -n %{gircal}
GObject Introspection interface description for %{name}.

%files -n %{gircal}
%license COPYING
%{_libdir}/girepository-1.0/*-%{api_cal}.typelib

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CPPFLAGS="-I%{_includedir}/et"
export CFLAGS="%{optflags} -DLDAP_DEPRECATED -fPIC -I%{_includedir}/et -Wno-deprecated-declarations"
%cmake \
	-DENABLE_GTK_DOC=ON			\
	-DENABLE_VALA_BINDINGS=ON		\
	-DENABLE_INTROSPECTION=ON		\
	-DCMAKE_SKIP_RPATH:BOOL=OFF		\
	-DLIB_INSTALL_DIR=%{_libdir}		\
	-DWITH_GWEATHER4=ON			\
	-G Ninja
%ninja_build

%install
%ninja_install -C build

# libedbus-private.so, needed by /usr/lib64/libebook-1.2.so, not found in evolution build
ln -s %{name}/libedbus-private.so %{buildroot}%{_libdir}/libedbus-private.so

# give the libraries some executable bits 
find %{buildroot} -name '*.so.*' -exec chmod +x {} \;

sed -i 's/\([^-]\)Dawati/\1X-Dawati/' %{buildroot}%{_datadir}/applications/org.gnome.Evolution-alarm-notify.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12620 |21mr|evolution-ews-3.52.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Exchange Connector for Evolution, compatible with Exchange 2007 and later
Name:		evolution-ews
Version:	3.52.2
Release:	1
License:	LGPLv2+
Group:		Networking/Mail
Url:		https://download.gnome.org/sources/evolution-ews
Source0:	https://download.gnome.org/sources/evolution-ews/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	pkgconfig(camel-1.2)
BuildRequires:	pkgconfig(evolution-data-server-1.2)
BuildRequires:	pkgconfig(evolution-mail-3.0)
BuildRequires:	pkgconfig(evolution-shell-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libebackend-1.2)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libedata-book-1.2)
BuildRequires:	pkgconfig(libedata-cal-2.0)
BuildRequires:	pkgconfig(libemail-engine)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libmspack)
BuildRequires:	pkgconfig(libsoup-3.0)
Requires:	evolution
Requires:	evolution-data-server

%description
The EWS Exchange Connector for Evolution provides a Exchange backend
from evolution-data-server as well as plugins for Evolution to access
Exchange features.

%files -f %{name}.lang
%doc README
%license COPYING
%{_appdatadir}/org.gnome.Evolution-ews.metainfo.xml
%{_datadir}/evolution/errors/module-ews-configuration.error
%{_datadir}/evolution-data-server/ews/windowsZones.xml
%{_libdir}/evolution-data-server/addressbook-backends/libebookbackend*.so
%{_libdir}/evolution-data-server/calendar-backends/libecalbackend*.so
%{_libdir}/evolution-data-server/camel-providers/libcamel*.so
%{_libdir}/evolution-data-server/camel-providers/libcamel*.urls
%{_libdir}/evolution-data-server/registry-modules/module-*-backend.so
%{_libdir}/evolution-ews/libcamelews-priv.so
%{_libdir}/evolution-ews/libevolution-*.so
%{_libdir}/evolution/modules/module-*-configuration.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DCMAKE_SKIP_RPATH:BOOL=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12621 |21mr|exec-maven-plugin-1.6.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           exec-maven-plugin
Version:        1.6.0
Release:        7
Summary:        Exec Maven Plugin

License:        ASL 2.0
URL:            http://www.mojohaus.org/exec-maven-plugin/
Source0:        http://repo1.maven.org/maven2/org/codehaus/mojo/exec-maven-plugin/%{version}/exec-maven-plugin-%{version}-source-release.zip

Patch1:         exec-maven-plugin-1.6.0-Port-to-Maven-3.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-exec)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

Obsoletes:      maven-plugin-exec < %{version}-%{release}
Provides:       maven-plugin-exec = %{version}-%{release}

%description
A plugin to allow execution of system and Java programs.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n exec-maven-plugin-%{version}

sed -i 's/\r$//' LICENSE.txt
find . -name *.jar -delete

%pom_remove_dep :maven-project
%pom_remove_dep :maven-toolchain
%pom_remove_dep :maven-artifact-manager

%pom_add_dep org.apache.maven:maven-compat
%pom_add_dep junit:junit::test

%pom_remove_plugin :animal-sniffer-maven-plugin

%patch1 -p1

%build
%mvn_build -- -DmavenVersion=3

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12622 |21mr|exempi-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	XMP implementation library
Name:		exempi
Version:	2.6.1
Release:	1
License:	BSD-like
Group:		System/Libraries
Url:		http://libopenraw.freedesktop.org/wiki/Exempi
Source0:	http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
Source1:	http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2.asc
Source2:	boost.m4
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(zlib)

%description
Exempi provides a library for easy parsing of XMP metadata. It is a port of
Adobe XMP SDK to work on UNIX and to be build with GNU automake.
It includes XMPCore and XMPFiles.

%files
%{_bindir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	XMP implementation library
Group:		System/Libraries

%description -n %{libname}
Exempi provides a library for easy parsing of XMP metadata. It is a port of
Adobe XMP SDK to work on UNIX and to be build with GNU automake.
It includes XMPCore and XMPFiles.

%files -n %{libname}
%{_libdir}/libexempi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	XMP implementation - development libraries and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Exempi provides a library for easy parsing of XMP metadata. It is a port of
Adobe XMP SDK to work on UNIX and to be build with GNU automake.
It includes XMPCore and XMPFiles.

%files -n %{devname}
%{_includedir}/%{name}-2.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
cp -f %{SOURCE2} m4/

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12623 |21mr|exfat-utils-1.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities for exFAT file system
Name:		exfat-utils
Version:	1.3.0
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://github.com/relan/exfat
Source0:	https://github.com/relan/exfat/releases/download/v%{version}/%{name}-%{version}.tar.gz

%description
A set of utilities for creating, checking, dumping and labeling exFAT file
system.

%files
%{_sbindir}/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

install -Dm644 dump/dumpexfat.8 %{buildroot}/%{_mandir}/man8/dumpexfat.8
install -m644 fsck/exfatfsck.8 %{buildroot}/%{_mandir}/man8/exfatfsck.8
install -m644 mkfs/mkexfatfs.8 %{buildroot}/%{_mandir}/man8/mkexfatfs.8
install -m644 label/exfatlabel.8 %{buildroot}/%{_mandir}/man8/exfatlabel.8

pushd %{buildroot}/%{_mandir}/man8/
ln -s exfatfsck.8 fsck.exfat.8
ln -s mkexfatfs.8 mkfs.exfat.8
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12624 |21mr|exiv2-0.27.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 27
%define libname %mklibname exiv2_ %{major}
%define devname %mklibname exiv2 -d

Summary:	Command line tool to access EXIF data in image files
Name:		exiv2
Version:	0.27.5
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://www.exiv2.org/
Source0:	http://www.exiv2.org/builds/%{name}-%{version}-Source.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	python
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(zlib)

%description
Exiv2 is a command line utility to access image metadata:

    * print the Exif metadata of JPEG, TIFF and several RAW image 
      formats as summary info, interpreted values, or the plain data 
      for each tag (a sample is here)
    * print the IPTC metadata of JPEG images
    * print, set and delete the JPEG comment of JPEG images
    * set, add and delete Exif and IPTC metadata of JPEG images
    * adjust the Exif timestamp (that's how it all started...)
    * rename Exif image files according to the Exif timestamp
    * extract, insert and delete Exif metadata, IPTC metadata and JPEG 
      comments
    * extract, insert and delete the thumbnail image embedded in the
      Exif metadata
    * fix the Exif ISO setting of picture taken with Nikon cameras

%files -f %{name}.lang
%doc COPYING README.md
%{_bindir}/exiv2
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to access EXIF data in image files
Group:		Graphics

%description -n %{libname}
libexiv2 is a C++ library to access image metadata. libexiv2 is free
software.

The Exiv2 library provides

    * full read and write access to the Exif and IPTC metadata of
      an image through Exiv2 keys and standard C++ iterators
      (Example1, Example2, Example3, Example4)
    * a smart IPTC implementation that does not affect data that
      programs like Photoshop store in the same image segment
    * Exif MakerNote support:
          o MakerNote tags can be accessed just like any other Exif metadata
          o a sophisticated write algorithm avoids corrupting the MakerNote:
              1) the MakerNote is not re-located if possible at all, and
              2) MakerNote Ifd offsets are re-calculated if the MakerNote 
                 needs to be moved (for known Ifd MakerNotes)
    * extract and delete methods for Exif thumbnails (both, JPEG and TIFF
      thumbnails)
    * set methods for Exif thumbnails (JPEG only, TIFF thumbnails can be
      set from individual tags)
    * complete API documentation (by Doxygen)

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and links to compile against the "%{libname}" library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains all files which one needs to compile programs using
the "%{libname}" library.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}-xmp.a
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/*

#----------------------------------------------------------------------------

%package doc
Summary:	Exiv2 library documentation
Group:		Books/Computer books
BuildArch:	noarch

%description doc
Exiv2 library documentation.

%files doc
%doc doc/ChangeLog doc/cmd.txt doc/include doc/index.html
%{_datadir}/doc/exiv2

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-Source

# -fcf-protection is supported only on x86, from GCC docs:
# "Currently the x86 GNU/Linux target provides an implementation based
# on Intel Control-flow Enforcement Technology (CET)".
%ifnarch %{ix86} %{x86_64}
sed -i -e 's, -fcf-protection,,' cmake/compilerFlags.cmake
%endif

%build
%cmake \
	-DEXIV2_BUILD_DOC:BOOL=ON \
	-DEXIV2_BUILD_SAMPLES:BOOL=OFF \
	-DEXIV2_ENABLE_NLS:BOOL=ON
%make
%make doc

%install
%makeinstall_std -C build

# Workaround cmake bug
sed -i -e 's,\${prefix}/%{_libdir},\${prefix}/%{_lib},g' "%{buildroot}"%{_libdir}/pkgconfig/%{name}.pc

%find_lang exiv2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12625 |21mr|exosip-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 14
%define libname %mklibname exosip2_ %{major}
%define devname %mklibname -d exosip2

Summary:	Extended osip library
Name:		exosip
Version:	5.2.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://savannah.nongnu.org/projects/exosip/
Source0:	http://download.savannah.gnu.org/releases/exosip/libexosip2-%{version}.tar.gz
BuildRequires:	pkgconfig(libosip2) >= %{version}
BuildRequires:	pkgconfig(openssl)

%description
Exosip is a library that hides the complexity of using the SIP protocol for
mutlimedia session establishement. This protocol is mainly to be used by VoIP
telephony applications (endpoints or conference server) but might be also
useful for any application that wish to establish sessions like multiplayer
games.

%files
%doc README
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}

%files -n %{libname}
%{_libdir}/libeXosip2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libexosip2-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}exosip2-devel < 3.6.0

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS
%{_includedir}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn libexosip2-%{version}

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12626 |21mr|expat-2.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname expat %{major}
%define devname %mklibname expat -d

Summary:	XML parser written in C
Name:		expat
Version:	2.6.2
Release:	1
License:	MPL
Group:		System/Libraries
Url:		http://www.libexpat.org
Source0:	https://sourceforge.net/projects/expat/files/expat/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	docbook2x
BuildRequires:	libtool

%description
Expat is an XML 1.0 parser written in C by James Clark. It aims to be
fully conforming. It is currently not a validating XML parser.

%files
%{_bindir}/xmlwf
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for expat
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with expat.

%files -n %{libname}
%{_libdir}/libexpat.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development environment for the expat XML parser
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Development environment for the expat XML parser.

%files -n %{devname}
%doc doc/reference.html
%doc AUTHORS COPYING README.md Changes
%{_libdir}/libexpat.so
%{_includedir}/expat.h
%{_includedir}/expat_config.h
%{_includedir}/expat_external.h
%{_libdir}/pkgconfig/expat.pc
%{_libdir}/cmake/%{name}-%{version}/*.cmake

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fPIC"

%configure \
	--disable-static
%make

%install
%makeinstall_std

# We use %%doc instead
rm -rf %{buildroot}%{_datadir}/doc/expat/

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12627 |21mr|expect-5.45.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		5.45
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

%if %{_use_internal_dependency_generator}
%global __requires_exclude /depot/path/expect|/depot/path/expectk
%endif

Summary:	A tcl extension for simplifying program-script interaction
Name:		expect
Version:	5.45.4
Release:	1
Epoch:		1
Group:		System/Libraries
License:	BSD
URL:		http://expect.nist.gov/
Source:		https://downloads.sourceforge.net/project/expect/Expect/%{version}/expect%{version}.tar.gz

# Patch0: fixes change log file permissions
Patch0: expect-5.43.0-log_file.patch
# Patch1: fixes install location, change pkgIndex
Patch1: expect-5.43.0-pkgpath.patch
# Patch2: fixes minor man page formatting issue
Patch2: expect-5.45-man-page.patch
# Patch3: fixes segmentation fault during matching characters
Patch3: expect-5.45-match-gt-numchars-segfault.patch
# Patch4: fixes memory leak when using -re, http://sourceforge.net/p/expect/patches/13/
Patch4: expect-5.45-re-memleak.patch
# Patch5: use vsnprintf instead of vsprintf to avoid buffer overflow
Patch5: expect-5.45-exp-log-buf-overflow.patch
# Patch6: fixes segfaults if Tcl is built with stubs and Expect is used directly
#   from C program rhbz#1091060
Patch6: expect-5.45-segfault-with-stubs.patch
# Patch7: fixes leaked fd, patch by Matej Mužila, rhbz#1001220
Patch7: expect-5.45-fd-leak.patch
# Patch8: unificates usage message of expect binary and man page, adds -h flag
Patch8: expect-5.45.4-unification-of-usage-and-man-page.patch
# Patch9: fixes issues detected by static analysis
Patch9: expect-5.45.4-covscan-fixes.patch
# examples patches
# Patch100: changes random function
Patch100: expect-5.32.2-random.patch
# Patch101: fixes bz674184 - mkpasswd fails randomly
Patch101: expect-5.45-mkpasswd-dash.patch
# Patch102: fixes bz703702 - let user know that telnet is needed for
# running some examples
Patch102: expect-5.45-check-telnet.patch
# Patch103: use full path to 'su', it's safer
Patch103: expect-5.45-passmass-su-full-path.patch
# Patch104: rhbz 963889, fixes inaccuracy in mkpasswd man page
Patch104: expect-5.45-mkpasswd-man.patch
# Patch105: Fix error with -Werror=format-security
Patch105: expect-5.45-format-security.patch

Patch202:	expect-5.45-soname.patch

BuildRequires:	tcl tcl-devel
BuildRequires:	tk tk-devel
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	autoconf
BuildRequires:	chrpath
Requires:	tcl
Requires:	%{libname} = %{EVRD}
Provides:	%{_bindir}/expect
Provides:	%{_bindir}/expectk

%description
Expect is a tcl extension for automating interactive applications such
as telnet, ftp, passwd, fsck, rlogin, tip, etc.  Expect is also useful
for testing the named applications.  Expect makes it easy for a script
to control another program and interact with it.

Install the expect package if you'd like to develop scripts which interact
with interactive applications.  You'll also need to install the tcl
package.

%files
%doc ChangeLog FAQ HISTORY NEWS README
%{_bindir}/*
%{tcl_sitearch}/%{name}%{version}
%{_mandir}/man1/*
%{_mandir}/man3/*

#------------------------------------------------------------------------
%package -n	%{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Expect is a tcl extension for automating interactive applications such
as telnet, ftp, passwd, fsck, rlogin, tip, etc.  Expect is also useful
for testing the named applications.  Expect makes it easy for a script
to control another program and interact with it.

Install the expect package if you'd like to develop scripts which interact
with interactive applications.  You'll also need to install the tcl
package.

%files -n %{libname}
%{_libdir}/lib*.so.1

#------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Obsoletes:	%{mklibname expect 5.43 -d} < %{version}-%{release}

%description -n	%{develname}
This package contains development files for %{name}.

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}%{version}

%build
autoconf

for f in config.guess config.sub ; do
        test -f /usr/share/libtool/$f || continue
        find . -type f -name $f -exec cp /usr/share/libtool/$f \{\} \;
done

chmod u+w testsuite/configure
. %{_libdir}/tclConfig.sh

%configure \
    --with-tcl=%{_libdir} \
    --with-tk=%{_libdir}\
    --enable-gcc \
    --enable-shared

%make

%check
make test

%install
%makeinstall_std TKLIB_INSTALLED="-L%{buildroot}%{_libdir} -ltk" \
	TCLLIB_INSTALLED="-L%{buildroot}%{_libdir} -ltcl" \
	INSTALL_ROOT=%{buildroot}

# move
mv %{buildroot}%{tcl_sitearch}/expect%{version}/libexpect%{version}.so %{buildroot}%{_libdir}/libexpect%{major}.so.1

# for linking with -lexpect
ln -s libexpect%{major}.so.1 %{buildroot}%{_libdir}/libexpect.so
ln -s libexpect%{major}.so.1 %{buildroot}%{_libdir}/libexpect%{major}.so

# remove cryptdir/decryptdir, as Linux has no crypt command (bug 6668).
rm -f %{buildroot}%{_bindir}/{cryptdir,decryptdir}
rm -f %{buildroot}%{_mandir}/man1/{cryptdir,decryptdir}.1*
rm -f %{buildroot}%{_bindir}/autopasswd

# rename mkpasswd, as it collides with more powerful variant from whois package (bug 1649456)
mv %{buildroot}%{_bindir}/mkpasswd %{buildroot}%{_bindir}/mkpasswd-expect
mv %{buildroot}%{_mandir}/man1/mkpasswd.1 %{buildroot}%{_mandir}/man1/mkpasswd-expect.1
sed -i 's/mkpasswd/mkpasswd-expect/g;s/MKPASSWD/MKPASSWD-EXPECT/g' %{buildroot}%{_mandir}/man1/mkpasswd-expect.1
sed -i 's/mkpasswd/mkpasswd-expect/g' %{buildroot}%{_bindir}/mkpasswd-expect

# remove rpath
chrpath --delete %{buildroot}%{_libdir}/libexpect%{major}.so.1


# (fc) make sure .so files are writable by root
chmod 755 %{buildroot}%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12628 |21mr|expected-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: expected
Version: 1.0.0
Release: 1%{?dist}
Group:	System/Libraries

License: CC0
Summary: C++11/14/17 std::expected with functional-style extensions
URL: https://github.com/TartanLlama/%{name}
Source0: %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch: noarch

# Backported upstream patch with cmake fixes.
Patch100: %{name}-cmake.patch

BuildRequires: ninja
BuildRequires: cmake

%description
Header-only %{summary}.

%package devel
Summary: Development files for %{name}
Group:	System/Libraries
Provides: %{name}-static = %{?epoch:%{epoch}:}%{version}-%{release}

%description devel
Header-only %{summary}.

std::expected is proposed as the preferred way to represent objec
which will either have an expected value, or an unexpected value
giving information about why something failed. Unfortunately,
chaining together many computations which may fail can be verbose,
as error-checking code will be mixed in with the actual programming
logic. This implementation provides a number of utilities to make
coding with expected cleaner.

%prep
%autosetup -p1
mkdir -p %{_target_platform}

%build
%cmake -G Ninja \
-DCMAKE_BUILD_TYPE=Release \
-DEXPECTED_BUILD_TESTS=OFF \
-DEXPECTED_BUILD_PACKAGE=OFF \

%ninja_build

%install
%ninja_install -C build

%files devel
%doc README.md
%license COPYING
%{_includedir}/tl
%{_datadir}/cmake/tl-%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12629 |21mr|extra166y-1.7.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          extra166y
Version:       1.7.0
Release:       12
Summary:       Concurrency JSR-166 - Collections supporting parallel operations
License:       Public Domain
URL:           http://gee.cs.oswego.edu/dl/concurrency-interest
# cvs -d :pserver:anonymous@gee.cs.oswego.edu/home/jsr166/jsr166 login
# cvs -d :pserver:anonymous@gee.cs.oswego.edu/home/jsr166/jsr166 export -r release-1_7_0 jsr166
# available in java 7 rt.jar
# rm -r jsr166/src/main/java
# rm -r jsr166/src/jsr166x jsr166/.cvsignore
# rm -r jsr166/src/jsr166y
# rm -r jsr166/src/loops
# rm -r jsr166/src/test/jtreg
# rm -r jsr166/src/test/loops
# rm -r jsr166/src/test/tck
# find jsr166 -type f -name "*.jar" -delete
# find jsr166 -type f -name "*.class" -delete
# tar cJf jsr166-1.7.0.tar.xz jsr166
Source0:       jsr166-%{version}.tar.xz
Source1:       http://repository.codehaus.org/org/codehaus/jsr166-mirror/%{name}/%{version}/%{name}-%{version}.pom
Source2:       extra166y-OSGi.bnd
Patch0:        extra166y-osgi-manifest.patch
BuildRequires: ant
BuildRequires: aqute-bnd >= 3.2.0-2
BuildRequires: javapackages-local
BuildRequires: junit
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Implementation of Java collections supporting parallel operations using
Fork-Join concurrent framework provided by JSR-166.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n jsr166
%patch0 -p0

# Use JVM jsr166
for s in $(find . -name "*.java");do
  sed -i "s|jsr166y.|java.util.concurrent.|" ${s}
done
sed -i '/configure-compiler, jsr166ycompile/d' build.xml

sed -i '/<compilerarg line="${build.args}"/d' build.xml

cp -p %{SOURCE2} extra166y.bnd
sed -i "s|@VERSION@|%{version}|" extra166y.bnd

%build

%mvn_file org.codehaus.jsr166-mirror:%{name} %{name}
export CLASSPATH=$(build-classpath junit)
ant extra166yjar extra166ydist-docs
%mvn_artifact %{SOURCE1} build/%{name}lib/%{name}.jar

%install
%mvn_install -J dist/%{name}docs

%files -f .mfiles
%doc src/main/intro.html src/main/readme

%files javadoc -f .mfiles-javadoc
%doc src/main/intro.html src/main/readme


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12630 |21mr|extra-cmake-modules-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 CMake extra modules
Name:		extra-cmake-modules
Version:	5.116.0
Release:	3
License:	MIT
Group:		Development/KDE and Qt
Url:		http://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Patch0:		extra-cmake-modules-5.53.0-support-newer-clang.patch
BuildRequires:	cmake
%if %{mdvver} >= 201910
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)
%else
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pythonegg(sphinx)
%endif
# (The following OPTIONAL packages have not been found):
# PythonModuleGeneration
# Required only for PythonModuleGeneration sip generator tests,
# we don't have it yet. The feature itself is enabled anyway.
#BuildRequires:	python-clang
BuildRequires:	qt5-linguist-tools
Requires:	kde5-macros
Requires:	qmake5
Requires:	qt5-linguist-tools
Requires:	pkgconfig(Qt5Core)
Requires:	pkgconfig(Qt5Quick)
BuildArch:	noarch

%description
KDE Frameworks 5 CMake extra modules.

%files
%doc %{_datadir}/doc/ECM/html/
%dir %{_datadir}/ECM
%{_datadir}/ECM/*
%{_mandir}/man7/ecm*.7*

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12631 |21mr|ezmorph-1.0.6-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          ezmorph
Version:       1.0.6
Release:       20
Summary:       Object transformation library for Java
License:       ASL 2.0
URL:           http://ezmorph.sourceforge.net/
# A plain jarball with the source is provided by upstream.  We could use
# it, but we choose to build with maven for the sake of consistency.
# Therefore we pull the tree with maven metadata from VCS.
# cvs -d:pserver:anonymous@ezmorph.cvs.sourceforge.net:/cvsroot/ezmorph login
# cvs -z3 -d:pserver:anonymous@ezmorph.cvs.sourceforge.net:/cvsroot/ezmorph co -r REL_1_0_6 -d ezmorph-1.0.6 -P ezmorph
# tar czf ezmorph-1.0.6.tar.gz --exclude CVS ezmorph-1.0.6
Source0:       %{name}-%{version}.tar.gz
# License is not in tarball, but has since been added to upstream's source control:
Source1:       http://ezmorph.cvs.sourceforge.net/viewvc/ezmorph/ezmorph/LICENSE.txt

#BuildRequires: jakarta-oro
BuildRequires: maven-local
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:12)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
EZMorph is simple java library for transforming an Object to another
Object. It supports transformations for primitives and Objects and
multidimensional arrays.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

cp -p %{SOURCE1} .

%pom_change_dep :log4j ::12

%pom_xpath_remove "pom:plugins"

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12632 |21mr|f2fs-tools-1.14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define format_major 7
%define libname %mklibname f2fs %{major}
%define libformat %mklibname f2fs_format %{format_major}
%define devname %mklibname f2fs -d

# Distro-specific default value is defined in branding-configs package
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Tools for Flash-Friendly File System (F2FS)
Name:		f2fs-tools
Version:	1.14.0
Release:	2
License:	GPLv2+
Group:		System/Base
Url:		http://sourceforge.net/projects/f2fs-tools/
Source0:	http://git.kernel.org/cgit/linux/kernel/git/jaegeuk/f2fs-tools.git/snapshot/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(blkid)
%if %{with selinux}
BuildRequires:	selinux-devel
%endif

%description
NAND flash memory-based storage devices, such as SSD, and SD cards, have been
widely being used for ranging from mobile to server systems. Since they are
known to have different characteristics from the conventional rotational
disks, a file system, an upper layer to the storage device, should adapt to
the changes from the sketch.

F2FS is a new file system carefully designed for the NAND flash memory-based
storage devices. We chose a log structure file system approach, but we tried
to adapt it to the new form of storage. Also we remedy some known issues of
the very old log structured file system, such as snowball effect of wandering
tree and high cleaning overhead.

Because a NAND-based storage device shows different characteristics according
to its internal geometry or flash memory management scheme aka FTL, we add
various parameters not only for configuring on-disk layout, but also for
selecting allocation and cleaning algorithms.

%files
%doc AUTHORS COPYING README
%{_sbindir}/f2fstat
%{_sbindir}/f2fscrypt
%{_sbindir}/*.f2fs
%{_mandir}/man8/*.f2fs.8*
%{_mandir}/man8/f2fscrypt.8*
%{_mandir}/man8/f2fs_io.8.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libf2fs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libformat}
Summary:	Format library for Flash-Friendly File System (F2FS)
Group:		System/Libraries

%description -n	%{libformat}
This package contains the format library for Flash-Friendly File System (F2FS).

%files -n %{libformat}
%{_libdir}/libf2fs_format.so.%{format_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libformat} = %{EVRD}

%description -n	%{devname}
This package contains the libraries needed to develop applications
that use %{name}.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# /usr/bin/sg_write_buffer is provided in sg3_utils
sed -i '/sg_write_buffer/d' tools/Makefile.am
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std \
	sbindir=%{_sbindir}

mkdir -m 755 -p %{buildroot}%{_includedir}
install -m 644 include/f2fs_fs.h %{buildroot}%{_includedir}
install -m 644 mkfs/f2fs_format_utils.h %{buildroot}%{_includedir}
rm -f %{buildroot}/%{_libdir}/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12633 |21mr|faac-1.30-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname -d %{name}

%define url_ver %(echo %{version}|tr . _)

Summary:	Freeware Advanced Audio Encoder
Name:		faac
Version:	1.30
Release:	3
Epoch:		0
License:	LGPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/faac/
Source0:	https://downloads.sourceforge.net/project/faac/faac-src/faac-%{version}/%{name}-%{url_ver}.tar.gz
Patch0: faac-1.30-keep-alignment-on-encoding-progress.patch
Patch1: faac-1.30-fix-out_of_root-build.patch
Patch2: faac-1.30-add-pkgconfig-file.patch
Patch3: faac-1.30-add-album-artist-tag-and-sorting-options.patch
BuildRequires:	dos2unix
BuildRequires:	pkgconfig(sndfile)
#gw else the detection for libmp4v2 kicks in
BuildConflicts:	%{libname}-devel < %{EVRD}
BuildConflicts:	%{develname} < %{EVRD}

%description
FAAC is an AAC encoder based on the ISO MPEG-4 reference code.

%files
%doc README TODO ChangeLog
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Free Advanced Audio Encoder shared library
Group:		System/Libraries

%description -n %{libname}
FAAC is an AAC encoder based on the ISO MPEG-4 reference code.
This package contains the shared library needed by programs based on
libfaac.

%files -n %{libname}
%doc COPYING
%{_libdir}/libfaac*so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Free Advanced Audio Encoder development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
FAAC is an AAC encoder based on the ISO MPEG-4 reference code.
This package contains the needed files for compiling programs with
libfaac.

%files -n %{develname}
%doc COPYING
%{_includedir}/*.h
%{_libdir}/libfaac.so
%{_libdir}/libfaac.a
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{url_ver}
%apply_patches


%build
#dos2unix configure.in
aclocal
autoheader
libtoolize --automake
automake --add-missing --copy

%ifarch %{e2k}
CC='%{__cc} -U__SSE2__ -D__clang__'
%endif
%configure --enable-static
%make


%install
%makeinstall_std

# Manual header installation
mkdir -p %{buildroot}%{_includedir}
cp include/*h %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12634 |21mr|faad2-2.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname faad %{major}
%define	libdrm %mklibname faad_drm %{major}
%define	devname %mklibname -d %{name}

Summary:	Freeware Advanced Audio Decoder version 2
Name:		faad2
Version:	2.11.1
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/knik0/faad2
Source0:	https://github.com/knik0/faad2/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	id3lib-devel
#BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sndfile)

%description
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch. FAAD 2 is licensed under the GPL v. 2.

%files
%doc AUTHORS ChangeLog README
%{_bindir}/faad
%{_mandir}/man1/faad.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Freeware Advanced Audio Decoder shared library
Group:		System/Libraries
Conflicts:	%{_lib}faad2_2 < 1:2.9.2
Obsoletes:	%{_lib}faad2_2 < 1:2.9.2

%description -n %{libname}
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch.
This package contains the shared library needed by programs linked to libfaad.

%files -n %{libname}
%doc COPYING
%{_libdir}/libfaad.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdrm}
Summary:	Freeware Advanced Audio Decoder shared library
Group:		System/Libraries
Conflicts:	%{_lib}faad2_2 < 1:2.9.2

%description -n %{libdrm}
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch. 
This package contains the shared library needed by programs linked to
libfaad_drm.

%files -n %{libdrm}
%doc COPYING
%{_libdir}/libfaad_drm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Freeware Advanced Audio Decoder development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libdrm} = %{EVRD}
Provides:	lib%{name}-devel  = %{EVRD}

%description -n %{devname}
FAAD 2 is a LC, MAIN and LTP profile, MPEG2 and MPEG-4 AAC decoder, completely
written from scratch.
This package contains the C++ headers needed to build programs with libfaad
and libfaad_drm.

%files -n %{devname}
%doc docs/*.pdf
%{_includedir}/*.h
%{_libdir}/libfaad.so
%{_libdir}/libfaad_drm.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/libfaad.3*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake

%make


%install
%makeinstall_std -C build

# Install also a man3 page
mkdir -p %{buildroot}%{_mandir}/man3
install -m 0644 docs/libfaad.3 %{buildroot}%{_mandir}/man3/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12635 |21mr|facile-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%global __requires_exclude ocamlx

Summary:	Constraint programming library
Name:		facile
Version:	1.1.3
Release:	1
License:	GPLv2+
Group:		Development/OCaml
Url:		http://www.recherche.enac.fr/log/facile/
Source0:	http://www.recherche.enac.fr/log/facile/distrib/%{name}-%{version}.tar.gz
Patch0:		facile-1.1-install.patch
Patch1:		10-srcMakefile
Patch2:		20-Makefile
Patch3:		30-non-opt-check
BuildRequires:	ocaml
Requires:	ocaml

%description
FaCiLe is a constraint programming library on integer and integer set finite
domains written in OCaml.

%files
%{_libdir}/ocaml/facile

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
./configure

%ifarch %{arm}
%make OCAMLC="ocamlc -g" OCAMLMLI=ocamlc
%else
%make
%endif

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12636 |21mr|facter-4.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name facter

Summary:	Ruby module for collecting simple facts about a host operating system
Name:		facter
Version:	4.4.0
Release:	1
License:	Apache Software License
Group:		System/Libraries
Url:		http://www.puppetlabs.com/puppet/related-projects/facter/
Source0:	https://rubygems.org/downloads/%{name}-%{version}.gem
BuildRequires:	ruby-devel
BuildRequires:	rubygems-devel
# needed for host, in facter/ipaddress.rb
Requires:	bind-utils
Requires:	dmidecode
Requires:	lsb-release
Requires:	ruby >= 1.8.1
Requires:	rubygems
Requires:	rubygem(json)
BuildArch:	noarch

%description
Ruby module for collecting simple facts about a host Operating
system. Some of the facts are preconfigured, such as the host-name and the
operating system. Additional facts can be added through simple Ruby scripts

%files
%{_bindir}/facter*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build
# Use /usr/bin/ruby directly instead of /usr/bin/env ruby in
#+ executables. Otherwise, initscripts break since pidof can't
#+ find the right process
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' bin/facter

%install
%gem_install -d %{buildroot}
install -d -m 0755 %{buildroot}%{gem_dir}/specifications
install -p -m 0644 ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12637 |21mr|fake-gnome-shell-41-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define pkg gnome-shell

Summary:	Dummy package to provide %{pkg} on e2k
Name:		fake-%{pkg}
Version:	41
Release:	1
License:	MIT
Group:		Graphical desktop/GNOME
# gdm
Provides:	%{pkg} = %{EVRD}
ExclusiveArch:	%{e2k}

%description
%{summary}

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12638 |21mr|fake-provides-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		fake-provides
Summary:	Temporary fake provides for different development purposes
Group:		System/Configuration/Other
Version:	0.1
Release:	1
License:	MIT

# changable temporary provides
Provides: cmake-filesystem = %{EVRD}
Provides: cmake-filesystem%{_isa} = %{EVRD}

%description
Temporary fake provides for different development purposes

%files
# empty

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12639 |21mr|fakeroot-1.25.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gives a fake root environment
Name:		fakeroot
Version:	1.25.3
Release:	1
License:	GPL
Group:		Development/Other
URL:		http://fakechroot.alioth.debian.org/
Source0:	https://cdn-aws.deb.debian.org/debian/pool/main/f/fakeroot/%{name}_%{version}.orig.tar.gz
# Debian package patches, from debian.tar.xz
Patch0:		debian_eglibc-fts-without-LFS.patch
Patch2:		debian_fix-shell-in-fakeroot.patch
# Address some POSIX-types related problems.
Patch4:		fakeroot-inttypes.patch
# Fix LD_LIBRARY_PATH for multilib: https://bugzilla.redhat.com/show_bug.cgi?id=1241527
Patch5:		fakeroot-1.25.3-multilib.patch
Patch6:		0001-libfakeroot.c-define-_STAT_VER-if-not-already-define.patch
Patch7:		0002-libfakeroot.c-add-wrappers-for-new-glibc-2.33-symbol.patch
Patch8:		0003-libfakeroot.c-fix-compile-error-with-DEBUG-enabled.patch
Patch9:		0004-configure.ac-fix-__xmknod-at-pointer-argument.patch
BuildRequires:	sharutils
BuildRequires:	util-linux-ng
BuildRequires:	acl-devel
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(libcap)

%description
This package is intended to enable something like: fakeroot rpm
--rebuild i.e. to remove the need to become root for a package
build. This is done by setting LD_PRELOAD to a "libfakeroot.so.0.0",
that provides wrappers around chown, chmod, mknod, stat, etc.

If you don't understand any of this, you do not need this!

%files
%defattr(-,root,root,0755)
%doc AUTHORS BUGS COPYING ChangeLog DEBUG INSTALL NEWS README 
%{_bindir}/*
%{_libdir}/libfakeroot
%{_mandir}/man*/*
%lang(de) %{_mandir}/de/man*/*
%lang(es) %{_mandir}/es/man*/*
%lang(nl) %{_mandir}/nl/man*/*
%lang(pt) %{_mandir}/pt/man*/*
%lang(sv) %{_mandir}/sv/man*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# anti version hack
perl -pi -e "s|-release 0|-avoid-version|g" Makefile*

for file in ./doc/*/*.1.*; do
  iconv -f latin1 -t utf8 < $file > $file.new
  mv -f $file.new $file
done
# Fix man page location
perl -pi -e 's|faked.1|../faked.1|; s|fakeroot.1|../fakeroot.1|' doc/*/Makefile.am

%build
autoreconf -fi
%configure \
    --disable-dependency-tracking \
    --disable-static \
    --libdir=%{_libdir}/libfakeroot \
    --with-ipc=tcp
%make

%install
%makeinstall_std libdir=%{_libdir}/libfakeroot

# the french man page is in man-pages-fr-1.58.0-18mdk, nuke this one to prevent file clash
rm -r %{buildroot}%{_mandir}/fr/man*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12640 |21mr|faketime-0.9.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define libnamemt %mklibname %{name}MT %{major}

Summary:	Report faked system time to programs
Name:		faketime
Version:	0.9.7
Release:	2
License:	GPLv2+
Group:		Development/Other
Url:		http://www.code-wizards.com/projects/libfaketime/
Source0:	http://www.code-wizards.com/projects/libfaketime/libfaketime-%{version}.tar.gz
Patch0:		libfaketime-0.9.7-no-werror.patch
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamemt} = %{EVRD}

%description
libfaketime intercepts various system calls which programs use to
retrieve the current date and time. It can then report faked dates and
times (as specified by you, the user) to these programs. This means you
can modify the system time a program sees without having to change the
time system-wide.

%files
%doc README NEWS
%{_bindir}/faketime
%{_mandir}/man1/faketime.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Faketime shared library
Group:		System/Libraries
Conflicts:	%{name} < 0.9.5

%description -n %{libname}
Faketime shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamemt}
Summary:	Faketime shared library
Group:		System/Libraries
Conflicts:	%{name} < 0.9.5

%description -n %{libnamemt}
Faketime shared library.

%files -n %{libnamemt}
%{_libdir}/lib%{name}MT.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -qn libfaketime-%{version}
%patch0 -p1

%build
%setup_compile_flags
make PREFIX=%{_prefix} LIBDIRNAME=/%{_lib}

%install
%makeinstall_std PREFIX=%{_prefix} LIBDIRNAME=/%{_lib}

chmod 0755 %{buildroot}%{_libdir}/lib%{name}*.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12641 |21mr|fapolicyd-1.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Application Whitelisting Daemon
Name:		fapolicyd
Version:	1.3.2
Release:	2
License:	GPLv3+
Group:		System/Base
Url:		http://people.redhat.com/sgrubb/fapolicyd
Source0:	https://github.com/linux-application-whitelisting/fapolicyd/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	uthash-devel
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(lmdb)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(systemd)

%description
Fapolicyd (File Access Policy Daemon) implements application whitelisting
to decide file access rights. Applications that are known via a reputation
source are allowed access while unknown applications are not. The daemon
makes use of the kernel's fanotify interface to determine file access rights.

%files
%doc README.md
%license COPYING
%attr(755,root,%{name}) %dir %{_datadir}/%{name}
%attr(644,root,%{name}) %{_datadir}/%{name}/sample-rules
%attr(644,root,%{name}) %{_datadir}/%{name}/default-ruleset.known-libs
%attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}
%attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/trust.d
%attr(750,root,%{name}) %dir %{_sysconfdir}/%{name}/rules.d
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/%{name}.trust
%config(noreplace) %attr(644,root,%{name}) %{_sysconfdir}/%{name}/fapolicyd-filter.conf
%ghost %attr(644,root,%{name}) %{_sysconfdir}/%{name}/compiled.rules
%attr(644,root,root) %{_prefix}%{_unitdir}/%{name}.service
%attr(644,root,root) %{_tmpfilesdir}/%{name}.conf
%attr(755,root,root) %{_sbindir}/%{name}
%attr(755,root,root) %{_sbindir}/%{name}-cli
%attr(755,root,root) %{_sbindir}/fagenrules
%attr(644,root,root) %{_mandir}/man8/*
%attr(644,root,root) %{_mandir}/man5/*
%attr(644,root,root) %{_datadir}/%{name}/fapolicyd-magic.mgc
%ghost %{_localstatedir}/log/%{name}-access.log
%attr(770,root,%{name}) %dir %{_localstatedir}/lib/%{name}
%attr(770,root,%{name}) %dir /run/%{name}
%ghost /run/%{name}/%{name}.fifo
%ghost %{_localstatedir}/lib/%{name}/data.mdb
%ghost %{_localstatedir}/lib/%{name}/lock.mdb
%{_sysconfdir}/bash_completion.d/fapolicyd.bash_completion

%pre
getent passwd %{name} >/dev/null || useradd -r -M -d %{_localstatedir}/lib/%{name} -s /sbin/nologin -c "Application Whitelisting Daemon" %{name}
if [ $1 -eq 2 ]; then
# detect changed default rules in case of upgrade
%manage_default_rules
fi

%pretrans -p <lua>
if posix.access("/run/fapolicyd.pid", "f") then
  os.execute([[
    c=/etc/fapolicyd/fapolicyd.rules
    rule="allow perm=any uid=0 : all"

    if test -e $c; then
       if systemctl is-active fapolicyd &> /dev/null; then
          tmp=`mktemp`
          cat $c > $tmp
          echo "$rule" > $c
          cat $tmp >> $c
          systemctl restart fapolicyd || true
          sleep 10
          cat $tmp > $c
          rm -f $tmp
        fi
    fi
    ]])
end

%post
# if no pre-existing rule file
if [ ! -e %{_sysconfdir}/%{name}/%{name}.rules ] ; then
  files=`ls %{_sysconfdir}/%{name}/rules.d/ 2>/dev/null | wc -w`
  # Only if no pre-existing component rules
  if [ "$files" -eq 0 ] ; then
    ## Install the known libs policy
    for rulesfile in `cat %{_datadir}/%{name}/default-ruleset.known-libs`; do
      cp %{_datadir}/%{name}/sample-rules/$rulesfile  %{_sysconfdir}/%{name}/rules.d/
    done
    chgrp %{name} %{_sysconfdir}/%{name}/rules.d/*
    if [ -x /usr/sbin/restorecon ] ; then
      # restore correct label
      /usr/sbin/restorecon -F %{_sysconfdir}/%{name}/rules.d/*
    fi
    fagenrules >/dev/null
  fi
fi
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service
if [ $1 -eq 0 ]; then
# detect changed default rules in case of uninstall
%manage_default_rules
else
  [ -e %{_sysconfdir}/%{name}/%{name}.rules ] && rm -rf %{_sysconfdir}/%{name}/rules.d/* || :
fi

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%package dnf-plugin
Summary:	Fapolicyd dnf plugin
Group:		System/Base
Requires:	%{name} = %{EVRD}
Provides:	%{name}-plugin = %{EVRD}
BuildArch:	noarch

%description dnf-plugin
The %{name}-dnf-plugin notifies %{name} daemon about dnf update.
The dnf plugin will be replaced with rpm plugin later.
Don't use dnf and rpm plugin together.

%files dnf-plugin
%{python3_sitelib}/dnf-plugins/%{name}-dnf-plugin.py
%{python3_sitelib}/dnf-plugins/__pycache__

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# generate rules for python
sed -i "s|%python2_path%|`readlink -f %{__python2}`|g" rules.d/*.rules
sed -i "s|%python3_path%|`readlink -f %{__python3}`|g" rules.d/*.rules

# Detect run time linker directly from bash
interpret=`readelf -e /usr/bin/bash \
	| grep Requesting \
	| sed 's/.$//' \
	| rev | cut -d" " -f1 \
	| rev`

sed -i "s|%ld_so_path%|`realpath $interpret`|g" rules.d/*.rules

%build
%configure \
	--with-audit	\
	--with-rpm	\
	--disable-shared

%make

%install
%makeinstall_std
mkdir -p %{buildroot}/%{python3_sitelib}/dnf-plugins/
install -p -m 644 dnf/%{name}-dnf-plugin.py %{buildroot}/%{python3_sitelib}/dnf-plugins/

install -p -m 644 -D init/%{name}-tmpfiles.conf %{buildroot}/%{_tmpfilesdir}/%{name}.conf
mkdir -p %{buildroot}/%{_localstatedir}/lib/%{name}
mkdir -p %{buildroot}/run/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/trust.d
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/rules.d

# get list of file names between known-libs and restrictive from sample-rules/README-rules
cat %{buildroot}/%{_datadir}/%{name}/sample-rules/README-rules \
  | grep -A 100 'known-libs' \
  | grep -B 100 'restrictive' \
  | grep '^[0-9]' > %{buildroot}/%{_datadir}/%{name}/default-ruleset.known-libs
chmod 644 %{buildroot}/%{_datadir}/%{name}/default-ruleset.known-libs

#cleanup
find %{buildroot} \( -name '*.la' -o -name '*.a' \) -exec rm -f {} ';'

%define manage_default_rules   default_changed=0 \
  # check changed fapolicyd.rules \
  if [ -e %{_sysconfdir}/%{name}/%{name}.rules ]; then \
    diff %{_sysconfdir}/%{name}/%{name}.rules %{_datadir}/%{name}/%{name}.rules.known-libs >/dev/null 2>&1 || { \
      default_changed=1; \
      #echo "change detected in fapolicyd.rules"; \
    } \
  fi \
  if [ -e %{_sysconfdir}/%{name}/rules.d ]; then \
    default_ruleset=''; \
    # get listing of default rule files in known-libs \
    [ -e %{_datadir}/%{name}/default-ruleset.known-libs ] && default_ruleset=`cat %{_datadir}/%{name}/default-ruleset.known-libs`; \
    # check for removed or added files \
    default_count=`echo "$default_ruleset" | wc -l`; \
    current_count=`ls -1 %{_sysconfdir}/%{name}/rules.d/*.rules | wc -l`; \
    [ $default_count -eq $current_count ] || { \
      default_changed=1; \
      # echo "change detected in number of rule files d:$default_count vs c:$current_count"; \
    }; \
    for file in %{_sysconfdir}/%{name}/rules.d/*.rules; do \
      if echo "$default_ruleset" | grep -q "`basename $file`"; then \
        # compare content of the rule files \
        diff $file %{_datadir}/%{name}/sample-rules/`basename $file` >/dev/null 2>&1 || { \
          default_changed=1; \
          # echo "change detected in `basename $file`"; \
        }; \
      else \
        # added file detected \
        default_changed=1; \
        # echo "change detected in added rules file `basename $file`"; \
      fi; \
    done; \
  fi; \
  # remove files if no change against default rules detected \
  [ $default_changed -eq 0 ] && rm -rf %{_sysconfdir}/%{name}/%{name}.rules %{_sysconfdir}/%{name}/rules.d/* || : \


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12642 |21mr|farstream-0.2.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api		0.2
%define	major		5
%define	girmajor	0.2
%define	libname		%mklibname %{name} %{api} %{major}
%define	plugname	%mklibname %{name}-plugins %{api}
%define	develname	%mklibname %{name} -d
%define	girname		%mklibname %{name}-gir %{girmajor}

Summary:	An audio/video communications framework
Name:		farstream
Version:	0.2.9
Release:	3
License:	LGPLv2.1+
Group:		Networking/Instant messaging
Url:		http://www.freedesktop.org/wiki/Software/Farstream
Source0:	http://freedesktop.org/software/farstream/releases/%{name}/%{name}-%{version}.tar.gz
# Upstream fixes
Patch0:		farstream-0.2.9-build-Adapt-to-backwards-incompatible-change-in-GNU-.patch
Patch1:		farstream-0.2.9-check-for-glib-mkenums.patch
BuildRequires:	gtk-doc >= 1.18
BuildRequires:	pkgconfig(glib-2.0) >= 2.40
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0) >= 1.4
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gupnp-1.2)
BuildRequires:	pkgconfig(nice) >= 0.1.8
%rename	farsight2
%rename	python-farsight2

%description
The Farstream (formerly Farsight) project is an effort to create a framework
to deal with all known audio/video conferencing protocols. On one side it
offers a generic API that makes it possible to write plugins for different
streaming protocols, on the other side it offers an API for clients to use
those plugins.
The main target clients for Farstream are Instant Messaging applications.
These applications should be able to use Farstream for all their Audio/Video
conferencing needs without having to worry about any of the lower level
streaming and NAT traversal issues.

#----------------------------------------------------------------------------

%package -n %{plugname}
Summary:	Farstream plugins
Group:		System/Libraries
Conflicts:	%_lib%{name}0.1.2_0

%description -n %{plugname}
The Farstream (formerly Farsight) project is an effort to create a framework
to deal with all known audio/video conferencing protocols.
This package contains the plugins for %{name}.

%files -n %{plugname}
%doc COPYING
%{_libdir}/%{name}-%{api}/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Farstream library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
%rename		%{_lib}farstream_0.1-8

%description -n %{libname}
The Farstream (formerly Farsight) project is an effort to create a framework
to deal with all known audio/video conferencing protocols.
This package contains the shared libraries for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n	gstreamer1.0-%{name}
Summary:	Set of plugins for GStreamer for Audio/Video conferencing
Group:		Sound
Requires:	%{libname} = %{EVRD}
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-good
%rename		gstreamer0.10-farsight2
%rename		gstreamer0.10-%{name}

%description -n gstreamer1.0-%{name}
The Farstream (formerly Farsight) project is an effort to create a framework
to deal with all known audio/video conferencing protocols.
This package contains a set of plugins for GStreamer that will be used for
Audio/Video conferencing.

%files -n gstreamer1.0-%{name}
%doc COPYING
%{_libdir}/gstreamer-1.0/*.so
%dir %{_datadir}/%{name}/%{api}/
%{_datadir}/%{name}/%{api}/*

#----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Headers of %{name} for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}
Provides:	%{_lib}farstream%{api}-devel = %{EVRD}

%description -n %{develname}
The Farstream (formerly Farsight) project is an effort to create a framework
to deal with all known audio/video conferencing protocols.
This package contains the headers aand the files needed for development.

%files -n %{develname}
%doc ChangeLog COPYING NEWS README
%doc %{_datadir}/gtk-doc/html/%{name}-libs-%{api}/
%doc %{_datadir}/gtk-doc/html/%{name}-plugins-%{api}/
%{_includedir}/%{name}-%{api}/
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/lib%{name}-%{api}.so
%{_datadir}/gir-1.0/Farstream-%{girmajor}.gir

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
The Farstream (formerly Farsight) project is an effort to create a framework
to deal with all known audio/video conferencing protocols.
This package contains the GObject Introspection interface description
for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Farstream-%{girmajor}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
autoreconf -vfi
# Enabling plugins docs makes the build fail
%configure \
	--disable-static \
	--enable-gupnp \
	--disable-gtk-doc \
	--enable-gtk-doc-html \
	--enable-introspection="auto" \
	--with-package-name="%{distribution} %{name}" \
	--with-package-origin="%{disturl}"
%make -j1


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12643 |21mr|fasterxml-oss-parent-34-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname oss-parent
Name:          fasterxml-oss-parent
Version:       34
Release:       2
Summary:       FasterXML parent pom
License:       ASL 2.0
URL:           http://fasterxml.com/
Source0:       https://github.com/FasterXML/oss-parent/archive/oss-parent-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
FasterXML is the business behind the Woodstox streaming XML parser,
Jackson streaming JSON parser, the Aalto non-blocking XML parser, and
a growing family of utility libraries and extensions.

FasterXML offers consulting services for adoption, performance tuning,
and extension.

This package contains the parent pom file for FasterXML.com projects.

%prep
%setup -q -n %{oname}-%{oname}-%{version}

# Stuff unnecessary for RPM builds
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :maven-scm-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :nexus-maven-plugin
%pom_remove_plugin :jdepend-maven-plugin
%pom_remove_plugin :taglist-maven-plugin
%pom_xpath_remove "pom:build/pom:extensions"

# remove unavailable com.google.doclava doclava 1.0.3
%pom_xpath_remove "pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration"
%pom_xpath_inject "pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']" '
<configuration>
  <encoding>UTF-8</encoding>
  <quiet>true</quiet>
  <source>${javac.src.version}</source>
  <additionalJOption>-J-Xmx1024m</additionalJOption>
  <maxmemory>${javadoc.maxmemory}</maxmemory>
</configuration>'

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc README.creole
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12644 |21mr|fastutil-7.0.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          fastutil
Version:       7.0.7
Release:       8
Summary:       Fast & compact type-specific collections for Java
# LGPL (v2.1 or later):
# src/it/unimi/dsi/fastutil/io/InspectableFileCachedInputStream.java
# test/it/unimi/dsi/fastutil/io/InspectableFileCachedInputStreamTest.java
License:       ASL 2.0 and LGPLv2+
# altenative url
#URL:           https://github.com/vigna/fastutil
# often is offline
URL:           http://fastutil.di.unimi.it/
Source0:       https://github.com/vigna/fastutil/archive/%{version}.tar.gz
# Disable ivy and maven-ant-tasks support
# Fix aqute-bnd classpath
# Fix pom task
Patch0:        fastutil-7.0.7-build.patch

BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: aqute-bnd
BuildRequires: emma
BuildRequires: java-javadoc
BuildRequires: javapackages-local
# Required for generate source code
BuildRequires: gcc
BuildRequires: make

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Fastutil extends the Java Collections Framework by providing type-specific
maps, sets, lists and priority queues with a small memory footprint and
fast access and insertion; it also includes a fast I/O API for binary and
text files. The classes implement their standard counterpart interface
(e.g., Map for maps) and can be plugged into existing code. Moreover, they
provide additional features (such as bidirectional iterators) that are not
available in the standard classes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

%patch0 -p1

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," \
 src/it/unimi/dsi/fastutil/io/InspectableFileCachedInputStream.java \
 test/it/unimi/dsi/fastutil/io/InspectableFileCachedInputStreamTest.java
 
# Remove empty dependencies list
%pom_xpath_remove "pom:dependencies" pom-model.xml

%build

# Generate source code
mkdir -p build
%{__make} -s clean sources
# Build
ant -Djar.base=%{_javadir}/emma -Dj2se.apiurl=%{_javadocdir}/java pom

%install
%mvn_file it.unimi.dsi:%{name} %{name}
%mvn_artifact dist/lib/pom.xml dist/lib/%{name}-%{version}.jar
%mvn_install -J docs

%check
mkdir -p reports
ant -Djar.base=%{_javadir}/emma junit

%files -f .mfiles
%doc CHANGES README.md
%license LICENSE-2.0

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12645 |21mr|faudio-24.04-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

%define	oname FAudio

Summary:	A re-implementation of XAudio
Name:		faudio
Version:	24.04
Release:	1
# We enable ffmpeg support and this forces the same license as our ffmpeg:
# see README.ffmpeg
License:	GPLv2+
Group:		Sound
Url:		https://github.com/FNA-XNA/FAudio
Source0:	https://github.com/FNA-XNA/FAudio/archive/%{version}.tar.gz?/archive/%{oname}-%{version}.tar.gz
Patch0:		faudio-19.03-compile.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(sdl2)

%description
FAudio is a re-implementation of XAudio that focuses solely on developing
fully accurate DirectX Audio runtime libraries, including XAudio2, X3DAudio,
XAPO and XACT3.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	It's a reimplementation of XAudio
Group:		System/Libraries

%description -n %{libname}
FAudio is a re-implementation of XAudio that focuses solely on developing
fully accurate DirectX Audio runtime libraries, including XAudio2, X3DAudio,
XAPO and XACT3. This package contains the main library.

%files -n %{libname}
%doc README
%license LICENSE
%{_libdir}/lib%{oname}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for FAudio
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
FAudio is a re-implementation of XAudio that focuses solely on developing
fully accurate DirectX Audio runtime libraries, including XAudio2, X3DAudio,
XAPO and XACT3. This package contains the files needed to develop software
using the %{name} library.

%files -n %{devname}
%doc README
%license LICENSE
%{_includedir}/*.h
%{_libdir}/lib%{oname}.so
%{_libdir}/pkgconfig/%{oname}.pc
%{_libdir}/cmake/%{oname}/%{oname}*.cmake

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}


%build
%cmake \
	-DBUILD_TESTS:BOOL=ON	\
	-DBUILD_UTILS:BOOL=ON	\
	-DXNASONG:BOOL=ON	\
	-G Ninja
%ninja_build


%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12646 |21mr|fbset-2.1-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Framebuffer utilities for changing video modes
Name:		fbset
Version:	2.1
Release:	29
License:	GPL
Group:		System/Kernel and hardware
Url:		http://users.telenet.be/geertu/Linux/fbdev/
Source0:	fbset-%{version}.tar.bz2
Patch0:		fbset-2.0-pre-19981028.patch
Patch1:		fbset-2.1-fixmode.patch
Patch2:		fbset-2.1-mdkconf.patch
Patch3:		fbset-2.1-manfix.patch
BuildRequires:	bison
BuildRequires:	flex

%description
fbset is a utility for querying and changing video modes of fbcon consoles.

%files
%{_sbindir}/%{name}
%{_mandir}/man[58]/*
%config(noreplace) %{_sysconfdir}/fb.modes

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1 -b .mdkconf
%patch3 -p1

perl -pi -e 's|geometry 10224 768 10224 768 8|geometry 1024 768 1024 768 8|' etc/fb.modes.ATI
perl -pi -e 's|geometry 1024 1024 1024 1024 8|geometry 1280 1024 1280 1024 8|' etc/fb.modes.ATI

%build
%make CFLAGS="%{optflags}"

%install
#make install PREFIX=$RPM_BUILD_ROOT
install %{name} -D %{buildroot}%{_sbindir}/%{name}
bzip2 %{name}.8 fb.modes.5
install %{name}.8.bz2 -D %{buildroot}%{_mandir}/man8/%{name}.8.bz2
install fb.modes.5.bz2 -D %{buildroot}%{_mandir}/man5/fb.modes.bz2

install etc/fb.modes.ATI -D %{buildroot}%{_sysconfdir}/fb.modes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12647 |21mr|fcoe-utils-1.0.34-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# v1.0.33-9-aa2dca5
%define commit      51019ea43a2e8b521d713b809311e6bf1b59f3e0
%define shortcommit %(c=%{commit}; echo ${c:0:7})

Name:               fcoe-utils
Version:            1.0.34
Release:            1
Summary:            Fibre Channel over Ethernet utilities
License:            GPLv2
Group:              Networking/File transfer
URL:                http://www.open-fcoe.org
Source0:            https://github.com/openSUSE/fcoe-utils/archive/%{commit}.tar.gz#/%{name}-%{version}-%{shortcommit}.tar.gz
Patch3:             %{name}-gcc11.patch
BuildRequires:      autoconf
BuildRequires:      automake
BuildRequires:      libtool
BuildRequires:      libpciaccess-devel
BuildRequires:      pkgconfig(lldpad) >= 0.9.43
BuildRequires:      systemd
BuildRequires:      make
Requires:           iproute2
Requires:           multipath-tools
Requires:           lldpad

Requires(post):     systemd
Requires(preun):    systemd
Requires(postun):   systemd

%description
Fibre Channel over Ethernet utilities
fcoeadm - command line tool for configuring FCoE interfaces
fcoemon - service to configure DCB Ethernet QOS filters, works with lldpad

%prep
%autosetup -p1 -n fcoe-utils-%{commit}

%build
./bootstrap.sh
%configure --with-systemdsystemunitdir=%{_unitdir}
sed -i 's/^CFLAGS\ =\ /CFLAGS\ =\ -Wno-stringop-truncation\ -Wno-format-overflow\ -Wno-format-truncation\ -Wno-type-limits\ /g' Makefile
sed -i 's/-Wstrict-aliasing\=2//g' Makefile
%make_build

%install
%make_install
rm -rf %{buildroot}/etc/init.d
mkdir -p %{buildroot}%{_libexecdir}/fcoe
for file in \
    contrib/*.sh \
    debug/*sh
    do install -m 755 ${file} %{buildroot}%{_libexecdir}/fcoe/
done

%post
%systemd_post fcoe.service fcoemon.socket

%preun
%systemd_preun fcoe.service fcoemon.socket

%postun
%systemd_postun_with_restart fcoe.service fcoemon.socket

%files
%doc README COPYING QUICKSTART
%{_sbindir}/*
%{_mandir}/man8/*
%{_unitdir}/fcoe.service
%{_unitdir}/fcoemon.socket
%config(noreplace) %{_sysconfdir}/fcoe/cfg-ethx
%config(noreplace) %{_sysconfdir}/fcoe/config
%{_datadir}/bash-completion/completions/*
%{_libexecdir}/fcoe/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12648 |21mr|fdk-aac-2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Fraunhofer FDK AAC Codec Library
Name:		fdk-aac
Version:	2.0.2
Release:	1
# Considered as free by Fedora and Free Software Foundation
License:	FDK-AAC
Group:		Sound
Url:		https://github.com/mstorsjo/fdk-aac
Source0:	https://github.com/mstorsjo/fdk-aac/archive/v%{version}/%{name}-%{version}.tar.gz

%description
The Fraunhofer FDK AAC Codec Library ("FDK AAC Codec") is software that
implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding
scheme for digital audio.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fraunhofer FDK AAC Codec Library
Group:		System/Libraries

%description -n %{libname}
The Fraunhofer FDK AAC Codec Library ("FDK AAC Codec") is software that
implements the MPEG Advanced Audio Coding ("AAC") encoding and decoding
scheme for digital audio.

%files -n %{libname}
%doc ChangeLog
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{libname}.

%files -n %{devname}
%doc documentation/*.pdf
%{_includedir}/fdk-aac/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12649 |21mr|fdupes-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Identify or delete duplicate files
Name:		fdupes
Version:	2.1.2
Release:	1
License:	BSD like
Group:		File tools
Url:		https://github.com/adrianlopezroche/fdupes
Source0:	https://github.com/adrianlopezroche/fdupes/releases/download/v2.1.2/%{name}-%{version}.tar.gz
Source1:	macros.fdupes
BuildRequires: pkgconfig(ncurses)
BuildRequires: pcre2-devel

%description
FDUPES is a program for identifying or deleting duplicate files residing within
specified directories.

%files
%doc CHANGES CONTRIBUTORS INSTALL README
%{_bindir}/%{name}
%{_sysconfdir}/rpm/macros.fdupes

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make COMPILER_OPTIONS="%{optflags}"

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_sysconfdir}/rpm
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/

%check
./%{name} testdir
./%{name} --omitfirst testdir
./%{name} --recurse testdir
./%{name} --size testdir


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12650 |21mr|feathernotes-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname FeatherNotes

Summary:	Lightweight Qt hierarchical notes-manager
Name:		feathernotes
Version:	1.1.1
Release:	1
License:	GPLv3+
Group:		Editors
Url:		https://github.com/tsujan/FeatherNotes
Source0:	https://github.com/tsujan/FeatherNotes/archive/V%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)

%description
FeatherNotes is a lightweight Qt5 hierarchical notes-manager.
It is independent of any desktop environment.

%files -f %{name}.lang
%doc ChangeLog README.md
%license COPYING
%{_appdatadir}/%{name}.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_iconsdir}/hicolor/scalable/mimetypes/text-%{name}-fnx.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12651 |21mr|featherpad-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname FeatherPad

Summary:	Lightweight Qt5 Plain-Text Editor
Name:		featherpad
Version:	1.4.1
Release:	1
License:	GPLv3+
Group:		Editors
Url:		https://github.com/tsujan/FeatherPad
Source0:	https://github.com/tsujan/FeatherPad/archive/V%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5X11Extras)

%description
FeatherPad is a lightweight Qt5 plain-text editor for Linux

%files -f %{name}.lang
%doc ChangeLog NEWS README.md
%license COPYING
%{_appdatadir}/%{name}.metainfo.xml
%{_bindir}/fpad
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/help*
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12652 |21mr|felix-bundlerepository-2.0.10-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           felix-bundlerepository
Version:        2.0.10
Release:        7
Summary:        Bundle repository service
License:        ASL 2.0 and MIT
URL:            http://felix.apache.org/documentation/subprojects/apache-felix-osgi-bundle-repository.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://archive.apache.org/dist/felix/org.apache.felix.bundlerepository-%{version}-source-release.tar.gz

Patch1:         0001-Unbundle-libraries.patch
Patch2:         0002-Compatibility-with-osgi-r6.patch

BuildRequires:  maven-local
BuildRequires:  mvn(net.sf.kxml:kxml2)
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.gogo.runtime)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.shell)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.utils)
BuildRequires:  mvn(org.apache.felix:org.osgi.service.obr)
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(xpp3:xpp3)

%description
Bundle repository service

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n org.apache.felix.bundlerepository-%{version}
%patch1 -p1
%patch2 -p1

%pom_remove_plugin :maven-source-plugin

# Unbundle xpp3
%pom_add_dep "xpp3:xpp3:1.1.3.4.O" pom.xml "<optional>true</optional>"

# Make felix utils mandatory dep
%pom_xpath_remove "pom:dependency[pom:artifactId[text()='org.apache.felix.utils']]/pom:optional"

%pom_change_dep :easymock :::test

# Use latest OSGi implementation
%pom_change_dep :org.osgi.core org.osgi:osgi.core
%pom_change_dep :org.osgi.compendium org.osgi:osgi.cmpn

# For compatibility reasons
%mvn_file : felix/%{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE LICENSE.kxml2 NOTICE
%doc DEPENDENCIES

%files javadoc -f .mfiles-javadoc
%license LICENSE LICENSE.kxml2 NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12653 |21mr|felix-framework-5.6.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.felix.framework

Name:           felix-framework
Version:        5.6.0
Release:        7
Summary:        Apache Felix Framework
License:        ASL 2.0
URL:            http://felix.apache.org
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.resolver) >= 1.8.0
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.osgi:org.osgi.annotation)
BuildRequires:  mvn(org.ow2.asm:asm-all)

%description
Apache Felix Framework Interfaces and Classes.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-source-plugin

# This test needs porting to easymock3
rm src/test/java/org/apache/felix/framework/ServiceRegistryTest.java

# This test fails when run on arm builders
rm src/test/java/org/apache/felix/framework/ConcurrencyTest.java

# This test is unstable on Koji
sed -i "/testgetOsNameWithAliases/s//ignore_&/" $(find -name NativeLibraryClauseTest.java)

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE
%doc DEPENDENCIES

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12654 |21mr|felix-gogo-command-1.0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle  org.apache.felix.gogo.command

Name:           felix-gogo-command
Version:        1.0.2
Release:        8
Summary:        Apache Felix Gogo command line shell for OSGi
License:        ASL 2.0
URL:            http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://repo1.maven.org/maven2/org/apache/felix/org.apache.felix.gogo.command/%{version}/%{bundle}-%{version}-source-release.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:gogo-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.gogo.runtime)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)

%description
Apache Felix Gogo is a subproject of Apache Felix implementing a command
line shell for OSGi. It is used in many OSGi runtimes and servers.

This package implements a set of basic commands.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%mvn_file : felix/%{bundle}

# Use provided scope because this is useful on OSGi frameworks other than Felix
%pom_change_dep :org.osgi.core :osgi.core::provided
%pom_change_dep :org.osgi.compendium :osgi.cmpn::provided

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12655 |21mr|felix-gogo-parent-4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           felix-gogo-parent
Version:        4
Release:        3
Summary:        Parent pom for Apache Felix Gogo
License:        ASL 2.0
URL:            http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html

Source0:        http://archive.apache.org/dist/felix/gogo-parent-%{version}-source-release.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)

%description
Apache Felix Gogo is a subproject of Apache Felix implementing a command
line shell for OSGi. It is used in many OSGi runtimes and servers.

%prep
%setup -q -n gogo-parent-%{version}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12656 |21mr|felix-gogo-runtime-1.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle  org.apache.felix.gogo.runtime

Name:           felix-gogo-runtime
Version:        1.1.0
Release:        3
Summary:        Apache Felix Gogo command line shell for OSGi
License:        ASL 2.0
URL:            http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html

Source0:        http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:gogo-parent:pom:) >= 4
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)

%description
Apache Felix Gogo is a subproject of Apache Felix implementing a command
line shell for OSGi. It is used in many OSGi runtimes and servers.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%mvn_file : felix/%{bundle}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12657 |21mr|felix-gogo-shell-1.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle  org.apache.felix.gogo.shell

Name:           felix-gogo-shell
Version:        1.1.0
Release:        3
Summary:        Apache Felix Gogo command line shell for OSGi
License:        ASL 2.0
URL:            http://felix.apache.org/documentation/subprojects/apache-felix-gogo.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:gogo-parent:pom:) >= 4
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.gogo.runtime)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)

%description
Apache Felix Gogo is a subproject of Apache Felix implementing a command
line shell for OSGi. It is used in many OSGi runtimes and servers.

This package provides a simple textual user interface to interact with the
command processor.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%mvn_file : felix/%{bundle}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12658 |21mr|felix-main-5.4.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.felix.main

Name:    felix-main
Version: 5.4.0
Release: 8
Summary: Apache Felix Main
License: ASL 2.0
URL:     http://felix.apache.org
Source0: http://www.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: felix-bundlerepository
BuildRequires: felix-gogo-command
BuildRequires: felix-gogo-runtime
BuildRequires: felix-gogo-shell
BuildRequires: felix-osgi-compendium
BuildRequires: felix-osgi-core
BuildRequires: felix-parent
BuildRequires: felix-framework >= 4.2.0
BuildRequires: maven-local
BuildRequires: maven-antrun-plugin
BuildRequires: maven-dependency-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin
BuildRequires: maven-surefire-provider-junit
BuildRequires: mockito

Requires: felix-bundlerepository
Requires: felix-gogo-command
Requires: felix-gogo-runtime
Requires: felix-gogo-shell
Requires: felix-osgi-compendium
Requires: felix-osgi-core
Requires: felix-framework >= 4.2.0

%description
Apache Felix Main Classes.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%mvn_file :%{bundle} "felix/%{bundle}"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE DEPENDENCIES

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12659 |21mr|felix-osgi-compendium-1.4.0-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.osgi.compendium

Name:           felix-osgi-compendium
Version:        1.4.0
Release:        29
Summary:        Felix OSGi R4 Compendium Bundle
License:        ASL 2.0
Group:          Development/Java
URL:            http://felix.apache.org
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz

Patch0:         0001-Fix-servlet-api-dependency.patch
Patch1:         0002-Fix-compile-target.patch
Patch2:         0003-Add-CM_LOCATION_CHANGED-property-to-ConfigurationEve.patch
Patch3:         0004-Add-TARGET-property-to-ConfigurationPermission.patch
# This is an ugly patch that adds getResourceURL method. This prevents jbosgi-framework
# package from bundling osgi files. Once the jbosgi-framework will be updated
# to a new version without the need for this patch, REMOVE it!
Patch4:         0005-Add-getResourceURL-method-to-make-jbosgi-framework-h.patch

BuildRequires:  maven-local
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.osgi.core)
BuildRequires:  mvn(org.apache.felix:org.osgi.foundation)

%description
OSGi Service Platform Release 4 Compendium Interfaces and Classes.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

# fix servlet api properly
%patch0 -p1
# fix compile source/target
%patch1 -p1
# add CM_LOCATION_CHANGED property
%patch2 -p1
# add TARGET property
%patch3 -p1
# add getResourceURL method
%patch4 -p1

%mvn_file :%{bundle} "felix/%{bundle}"
%mvn_alias "org.apache.felix:%{bundle}" "org.osgi:%{bundle}"

%build
%mvn_build -- -Drat.numUnapprovedLicenses=100

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12660 |21mr|felix-osgi-core-1.4.0-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.osgi.core

Name:           felix-osgi-core
Version:        1.4.0
Release:        27
Summary:        Felix OSGi R4 Core Bundle
License:        ASL 2.0
URL:            http://felix.apache.org/site/apache-felix-osgi-core.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%description
OSGi Service Platform Release 4 Core Interfaces and Classes.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%mvn_file :%{bundle} "felix/%{bundle}"
%mvn_alias "org.apache.felix:%{bundle}" "org.osgi:%{bundle}"

%build
export LC_ALL=C.utf8
%mvn_build -- -Drat.numUnapprovedLicenses=50

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12661 |21mr|felix-osgi-foundation-1.2.0-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.osgi.foundation

Name:    felix-osgi-foundation
Version: 1.2.0
Release: 26
Summary: Felix OSGi Foundation EE Bundle
License: ASL 2.0
URL:     http://felix.apache.org
Source0: http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: maven-local
BuildRequires: mockito
BuildRequires: felix-parent

Requires: java-headless >= 1:1.6.0

%description
OSGi Foundation Execution Environment (EE) Classes.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%mvn_file :%{bundle} "felix/%{bundle}"
%mvn_alias "org.apache.felix:%{bundle}" "org.osgi:%{bundle}"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12662 |21mr|felix-osgi-obr-1.0.2-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.osgi.service.obr

Name:           felix-osgi-obr
Version:        1.0.2
Release:        24
Summary:        Felix OSGi OBR Service API
License:        ASL 2.0
URL:            http://felix.apache.org/site/apache-felix-osgi-bundle-repository.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/felix/org.osgi.service.obr-%{version}-project.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:felix:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.osgi:osgi.core)

%description
OSGi OBR Service API.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

# Use latest OSGi implementation
%pom_change_dep :org.osgi.core org.osgi:osgi.core

%mvn_file ":{*}" felix/@1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12663 |21mr|felix-osgi-obr-resolver-1.8.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global osginame org.apache.felix.resolver

Name:             felix-osgi-obr-resolver
Version:          1.8.0
Release:          8
Summary:          Apache Felix Resolver
License:          ASL 2.0
URL:              http://felix.apache.org/documentation/subprojects/apache-felix-osgi-bundle-repository.html

Source0:          http://www.apache.org/dist/felix/org.apache.felix.resolver-%{version}-source-release.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.framework)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.utils)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.mockito:mockito-all)

%description
This package contains the Apache Felix Resolver

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{osginame}-%{version}

%pom_remove_plugin :apache-rat-plugin

%pom_change_dep org.osgi:org.osgi.core org.apache.felix:org.apache.felix.framework

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc NOTICE DEPENDENCIES

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12664 |21mr|felix-parent-4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           felix-parent
Version:        4
Release:        8
Summary:        Parent POM file for Apache Felix Specs
License:        ASL 2.0
URL:            http://felix.apache.org/
Source0:        http://repo1.maven.org/maven2/org/apache/felix/felix-parent/%{version}/%{name}-%{version}-source-release.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.mockito:mockito-all)

# FIXME auto-requires are not generated
Requires:  mvn(org.easymock:easymock)
Requires:  mvn(org.mockito:mockito-all)

%description
Parent POM file for Apache Felix Specs.

%prep
%setup -q -n felix-parent-%{version}
%mvn_alias : :felix
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin org.codehaus.mojo:ianal-maven-plugin
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin

# wagon ssh dependency unneeded
%pom_xpath_remove pom:extensions

# Remove workaround for MANTRUN-51/MNG-6205 issue
# (should only be needed with old versions of Maven)
# See: http://svn.apache.org/viewvc/maven/plugins/trunk/maven-antrun-plugin/src/site/fml/faq.fml?r1=790402&r2=790401
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-antrun-plugin']/pom:dependencies"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12665 |21mr|felix-scr-2.1.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle  org.apache.felix.scr

Name:          felix-scr
Version:       2.1.16
Release:       2
Summary:       Apache Felix Service Component Runtime (SCR)
License:       ASL 2.0
URL:           http://felix.apache.org/documentation/subprojects/apache-felix-service-component-runtime.html

Source0:       http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz

# Don't embed deps, use import-package instead
Patch0: 0001-Use-import-package-instead-of-embedding-dependencies.patch

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(net.sf.kxml:kxml2)
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.gogo.runtime)
BuildRequires:  mvn(org.osgi:osgi.annotation)
BuildRequires:  mvn(org.osgi:osgi.cmpn) >= 7.0.0
BuildRequires:  mvn(org.osgi:osgi.core) >= 7.0.0
BuildRequires:  mvn(xpp3:xpp3)

%description
Implementation of the OSGi Declarative Services Specification Version 1.3 (R6).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}
%patch0 -p1

# All these OSGi deps are provided in the compendium jar
%pom_add_dep org.osgi:osgi.cmpn:7.0.0:provided
%pom_remove_dep org.osgi:org.osgi.service.component
%pom_remove_dep org.osgi:org.osgi.service.cm
%pom_remove_dep org.osgi:org.osgi.service.log
%pom_remove_dep org.osgi:org.osgi.service.metatype
%pom_remove_dep org.osgi:org.osgi.namespace.extender
%pom_remove_dep org.osgi:org.osgi.util.promise
%pom_remove_dep org.osgi:org.osgi.util.function

# Many test deps are not in Fedora
%pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:scope='test']"
%pom_remove_dep org.ops4j.base:
%pom_remove_plugin :maven-failsafe-plugin

# Animal sniffer is unnecessary since we always know JRE level on Fedora
%pom_remove_dep :animal-sniffer-annotations
sed -i -e '/IgnoreJRERequirement/d' src/main/java/org/apache/felix/scr/impl/manager/ThreadDump.java

# Upstream kxml bundles xpp3. Since RHBZ#1299774 kxml no longer
# bundles xpp3 packages. Add the dep to the pom. kxml requires xpp3
# already.
%pom_add_dep xpp3:xpp3:1.1.4c:compile
# And since we are not bundling kxml, need to make it 'compile' scope
# instead of 'provided' scope so it's pulled in by RPM requires
%pom_change_dep net.sf.kxml:kxml2 net.sf.kxml:kxml2:2.2.2:compile

%mvn_file : felix/%{bundle}

%build
# No test deps availables e.g org.ops4j.pax.url:pax-url-wrap
%mvn_build -f -- -Dfelix.java.version=7

%install
%mvn_install

%files -f .mfiles
%doc changelog.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12666 |21mr|felix-scr-annotations-1.12.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.felix.scr.annotations

Name:          felix-scr-annotations
Version:       1.12.0
Release:       6
Summary:       Annotations for SCR
License:       ASL 2.0
URL:           http://felix.apache.org/
Source0:       http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.scr.generator)

%description
Annotations for generating OSGi service descriptors.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%mvn_file : felix/%{bundle}

%build
# no test to run
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc changelog.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12667 |21mr|felix-scr-generator-1.18.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionals to help breaking org.apache.felix.scr.generator <-> org.apache.felix.scr.annotations dependency cycle

%bcond_with annotations

%global bundle    org.apache.felix.scr.generator

Name:          felix-scr-generator
Version:       1.18.0
Release:       4
Summary:       Descriptor Generator Implementation
License:       ASL 2.0
URL:           http://felix.apache.org/documentation/subprojects/apache-felix-service-component-runtime.html
Source0:       http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
%if %{without annotations}
BuildRequires:  mvn(org.apache.felix:org.apache.felix.scr.annotations)
%endif
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.ow2.asm:asm-all)

%description
Provides the implementation to generate Declarative Services and Metatype
Service descriptors from Java 5 Annotations and/or JavaDoc tags.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%mvn_file : felix/%{bundle}

%pom_change_dep org.osgi:org.osgi.core org.osgi:osgi.core
%pom_change_dep org.osgi:org.osgi.compendium org.osgi:osgi.cmpn

%build
# tests skipped for circular dependency with org.apache.felix.scr.annotations
%mvn_build \
%if %{with annotations}
 -f \
%endif
 -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc changelog.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12668 |21mr|felix-scr-maven-plugin-1.26.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global artifactId maven-scr-plugin

Name:           felix-scr-maven-plugin
Version:        1.26.0
Release:        3
Summary:        Apache Felix Maven SCR Plugin
License:        ASL 2.0
URL:            http://felix.apache.org/documentation/subprojects/apache-felix-maven-scr-plugin.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/felix/%{artifactId}-%{version}-source-release.tar.gz

BuildRequires:  maven-local

BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.scr.generator) >= 1.12.0
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)

BuildRequires:  mvn(org.mockito:mockito-all)

%description
Maven plugin for generating OSGi Declarative Services annotations

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{artifactId}-%{version}

%pom_remove_plugin :maven-invoker-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc changelog.txt

%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12669 |21mr|felix-shell-1.4.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.felix.shell

Name:           felix-shell
Version:        1.4.3
Release:        15
Summary:        Apache Felix Shell Service
License:        ASL 2.0
URL:            http://felix.apache.org
Source0:        http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)

%description
A simple OSGi command shell service.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}

%pom_remove_plugin org.codehaus.mojo:rat-maven-plugin

# Use latest OSGi implementation
%pom_change_dep :org.osgi.core org.osgi:osgi.core
%pom_change_dep :org.osgi.compendium org.osgi:osgi.cmpn

%mvn_file :%{bundle} "felix/%{bundle}"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12670 |21mr|felix-utils-1.11.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bundle org.apache.felix.utils

Name:           felix-utils
Version:        1.11.2
Release:        1
Summary:        Utility classes for OSGi
License:        ASL 2.0
URL:            http://felix.apache.org
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/felix/%{bundle}/%{version}/%{bundle}-%{version}-source-release.tar.gz

# The module org.osgi.cmpn requires implementing methods which were not
# implemented in previous versions where org.osgi.compendium was used
Patch0:         0000-Port-to-osgi-cmpn.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)

%description
Utility classes for OSGi

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{bundle}-%{version}
%patch0 -p1

%pom_remove_plugin :apache-rat-plugin

%mvn_file :%{bundle} "felix/%{bundle}"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE
%doc DEPENDENCIES

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12671 |21mr|festival-2.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# we ship the 1.4.2 docs for now.
%define docversion 1.4.2
%define debug_package %{nil}

%define major 2.5.0.1
%define stringmajor 1.2
%define libname %mklibname speech_tools %{major}
%define libnamestring %mklibname eststring %{stringmajor}
%define devname %mklibname speech_tools -d

%define url_ver %(echo %{version} |cut -d. -f1,2)

Summary:	A free speech synthesizer
Name:		festival
Version:	2.5.0
Release:	2
License:	BSD
Group:		Sound
Url:		http://www.cstr.ed.ac.uk/projects/festival/
Source0:	http://festvox.org/packed/festival/%{url_ver}/%{name}-%{version}-release.tar.gz
Source1:	http://festvox.org/packed/festival/%{url_ver}/speech_tools-%{version}-release.tar.gz
Source2:	http://festvox.org/packed/festival/%{docversion}/festdoc-%{docversion}.tar.gz

Source3:	siteinit.scm
Source4:	sitevars.scm
Source100:	festival.rpmlintrc
### Systemd service file.
Source230:	festival.service
Source231:	festival.sysusers.conf

# Fix up various locations to be more FSSTND compliant
Patch0:		festival-1.4.1-fsstnd.patch
# Set defaults to American English instead of British English - the OALD
# dictionary (free for non-commercial use only) is needed for BE support
# Additionally, prefer the smaller nitech hts voices.
Patch1:		festival-2.1-nitech-american.patch

# Whack some buildroot references
Patch2:		festival_buildroot.patch

Patch3:		festival-2.5.0-compile.patch
Patch4:		festival-2.5.0-remove-editline.patch

# (fc) 1.2.96-4mdv Link libs with libm, libtermcap, and libesd (RH bug #198190) (Fedora)
# (ahmad) 2.1-2.mga1 modify this patch so that we don't link against libesd,
# as esound is being phased out of the distro
Patch6:		festival-2.1-speechtools-linklibswithotherlibs.patch
# For some reason, CXX is set to gcc on everything but Mac OS Darwin,
# where it's set to g++. Yeah, well. We need it to be right too.
Patch7:		festival-1.96-speechtools-ohjeezcxxisnotgcc.patch
# (fc) 1.2.96-5mdv build speech_tools as shared libraries (Fedora)
Patch8:		festival-1.96-speechtools-shared-build.patch
# (fc) 1.2.96-5mdv Look for speech tools here, not back there (Fedora)
Patch10:	festival-1.96-findspeechtools.patch
# (fc) 1.96-5mdv  Build main library as shared, not just speech-tools (Fedora)
Patch11:	festival-1.96-main-shared-build.patch
# (fc) 1.2.96-5mdv improve soname (Fedora)
Patch12:	festival-2.1-bettersonamehack.patch
# (fc) 
Patch15:	festival-finnish.patch
# Look for siteinit and sitevars in /etc/festival
Patch16:	festival-1.96-etcsiteinit.patch
Patch17:	festival-2.5.0-pulseaudio.patch
Patch18:	festival-2.5-force-pulseaudio.patch
Patch19:        e2k-omp-fix.patch
BuildRequires:	perl
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pulseaudio-devel
BuildRequires:	texi2html
BuildRequires:	gomp-devel

Requires:	festival-voice

%description
Festival is a general multi-lingual speech synthesis system developed
at CSTR. It offers a full text to speech system with various APIs, as
well as an environment for development and research of speech synthesis
techniques. It is written in C++ with a Scheme-based command interpreter
for general control.

%files
%doc ACKNOWLEDGMENTS COPYING INSTALL NEWS README*
%doc festdoc-%{docversion}/festival/html/*html
%doc festdoc-%{docversion}/festival/info
%doc festdoc-%{docversion}/festival/festival.ps
%{_bindir}/audsp
%{_bindir}/festival
%{_bindir}/default_voices
%{_bindir}/festival_client
%{_bindir}/festival_server
%{_bindir}/festival_server_control
%{_bindir}/text2wave
%{_bindir}/saytime
%{_libdir}/libFestival.so.%{version}*
%dir %{_datadir}/festival
%dir %{_datadir}/festival/lib
%{_datadir}/festival/lib/*.scm
%{_datadir}/festival/lib/festival.el
%{_datadir}/festival/lib/*.ent
%{_datadir}/festival/lib/*.gram
%{_datadir}/festival/lib/*.dtd
%{_datadir}/festival/lib/*.ngrambin
%{_datadir}/festival/lib/speech.properties
%{_datadir}/festival/dicts
%{_datadir}/festival/voices
%dir %{_datadir}/festival/lib/multisyn
%{_datadir}/festival/lib/multisyn/*.scm
%dir %{_datadir}/festival/examples
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/festival
%{_unitdir}/festival.service
%{_sysusersdir}/festival.conf

%post
%sysusers_create festival.conf
%systemd_post festival.service

%preun
%systemd_preun festival.service

%postun
%systemd_postun_with_restart festival.service

#----------------------------------------------------------------------------

%package -n speech_tools
Summary:	Miscellaneous utilities from the Edinburgh Speech Tools
Group:		Sound

%description -n speech_tools
Miscellaneous utilities from the Edinburgh Speech Tools. Unless you have a
specific need for one of these programs, you probably don't need to install
this.

%files -n speech_tools
%doc speech_tools/INSTALL speech_tools/README.md
%{_bindir}/ch_track
%{_bindir}/ch_wave
%{_bindir}/make_wagon_desc
%{_bindir}/na_play
%{_bindir}/na_record
%{_bindir}/pitchmark
%{_bindir}/pm
%{_bindir}/sig2fv
%{_bindir}/wagon
%{_bindir}/wagon_test
%{_bindir}/wfst_run
%{_bindir}/wfst_build
%{_datadir}/festival/examples

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for festival text to speech
Group:		System/Libraries
Requires:	speech_tools

%description -n %{libname}
Festival is a general multi-lingual speech synthesis system developed
at CSTR. It offers a full text to speech system with various APIs, as
well as an environment for development and research of speech synthesis
techniques. It is written in C++ with a Scheme-based command interpreter
for general control.

This package contains the libraries and includes files necessary for
applications that use festival.

%files -n %{libname}
%doc speech_tools/README.md
%{_libdir}/libestbase.so.%{major}*
%{_libdir}/libestools.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamestring}
Summary:	Shared libraries for festival text to speech
Group:		System/Libraries
Requires:	speech_tools

%description -n %{libnamestring}
Festival is a general multi-lingual speech synthesis system developed
at CSTR. It offers a full text to speech system with various APIs, as
well as an environment for development and research of speech synthesis
techniques. It is written in C++ with a Scheme-based command interpreter
for general control.

This package contains the libraries and includes files necessary for
applications that use festival.

%files -n %{libnamestring}
%{_libdir}/libeststring.so.%{stringmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static libraries and headers for festival text to speech
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamestring} = %{EVRD}
Provides:	speech_tools-devel = %{EVRD}

%description -n %{devname}
Festival is a general multi-lingual speech synthesis system developed
at CSTR. It offers a full text to speech system with various APIs, as
well as an environment for development and research of speech synthesis
techniques. It is written in C++ with a Scheme-based command interpreter
for general control.

This package contains the libraries and includes files necessary to develop
applications using festival.

%files -n %{devname}
%{_includedir}/EST
%{_libdir}/libestbase.so
%{_libdir}/libestools.so
%{_libdir}/libeststring.so

#----------------------------------------------------------------------------

%package devel
Summary:	Static libraries and headers for festival text to speech
Group:		Development/C++
Requires:	%{name} = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description devel
Festival is a general multi-lingual speech synthesis system developed
at CSTR. It offers a full text to speech system with various APIs, as
well as an environment for development and research of speech synthesis
techniques. It is written in C++ with a Scheme-based command interpreter
for general control.

This package contains the libraries and includes files necessary to develop
applications using festival.

%files devel
%doc festdoc-%{docversion}/speech_tools
%{_libdir}/libFestival.so
%{_includedir}/festival
%{_datadir}/festival/config

#----------------------------------------------------------------------------

%prep
%setup -q -n festival -a 1 -a 2
%autopatch -p1

# zero length
rm festdoc-%{docversion}/speech_tools/doc/index_html.jade
rm festdoc-%{docversion}/speech_tools/doc/examples_gen/error_example_section.sgml
rm festdoc-%{docversion}/speech_tools/doc/tex_stuff.jade
rm festdoc-%{docversion}/speech_tools/doc/.doc*
rm festdoc-%{docversion}/speech_tools/doc/.examples*
rm festdoc-%{docversion}/speech_tools/doc/.manuals*
rm festdoc-%{docversion}/speech_tools/doc/.tex*
rm festdoc-%{docversion}/speech_tools/doc/.speech*
rm -Rf festdoc-%{docversion}/speech_tools/doc/CVS
rm -Rf festdoc-%{docversion}/speech_tools/doc/arch_doc/CVS
rm -Rf festdoc-%{docversion}/speech_tools/doc/man
rm -Rf festdoc-%{docversion}/speech_tools/doc/speechtools/arch_doc

# (gb) lib64 fixes, don't bother with a patch for now
perl -pi -e '/^REQUIRED_LIBRARY_DIR/ and s,/usr/lib,%{_libdir},' config/project.mak


%build
# build speech tools (and libraries)
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/speech_tools/lib
cd speech_tools
  %configure
  # -fPIC 'cause we're building shared libraries and it doesn't hurt
  # -fno-strict-aliasing because of a couple of warnings about code
  #   problems; if %{optflags} contains -O2 or above, this puts
  #   it back. Once that problem is gone upstream, remove this for
  #   better optimization.
  make
cd -

# build the main program
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$(pwd)/src/lib
# instead of doing this, maybe we should patch the make process
# so it looks in the right place explicitly:
export PATH=$(pwd)/bin:$PATH
%configure
make \
  EST=$PWD/speech_tools

%install
# install speech tools libs, binaries, and include files
pushd speech_tools

  make INSTALLED_LIB=%{buildroot}%{_libdir} make_installed_lib_shared
  # no thanks, static libs.
  rm -f %{buildroot}%{_libdir}/*.a

  make INSTALLED_BIN=%{buildroot}%{_bindir} make_installed_bin_static
  # this list of the useful programs in speech_tools comes from
  # upstream developer Alan W. Black; the other stuff is to be removed.
  pushd %{buildroot}%{_bindir}
    ls |
        grep -Evw "ch_wave|ch_track|na_play|na_record|wagon|wagon_test" |
        grep -Evw "make_wagon_desc|pitchmark|pm|sig2fv|wfst_build" |
        grep -Evw "wfst_run|wfst_run" |
        xargs rm
  popd

  pushd include
    for d in $( find . -type d | grep -v win32 ); do
      make -w -C $d INCDIR=%{buildroot}%{_includedir}/EST/$d install_incs
    done  
  popd

popd


install -d %{buildroot}%{_datadir}/%{name}/{voices/english,dicts}

# bin
make INSTALLED_BIN=%{buildroot}%{_bindir} make_installed_bin_static
install -m 755 bin/text2wave %{buildroot}%{_bindir}

# this is just nifty. and it's small.
install -m 755 examples/saytime %{buildroot}%{_bindir}

# install the shared library
cp -a src/lib/libFestival.so* %{buildroot}%{_libdir}

# devel
mkdir -p %{buildroot}%{_includedir}/festival
install -m 644 src/include/*.h %{buildroot}%{_includedir}/%{name}

# data
cp -r lib config examples %{buildroot}%{_datadir}/%{name}
find %{buildroot}%{_datadir}/%{name} -name Makefile -exec rm \{\} \;

# man pages
mkdir -p %{buildroot}%{_mandir}/man1
cp -a doc/*.1 %{buildroot}%{_mandir}/man1

# lib: the bulk of the program -- the scheme stuff and so on
pushd lib
  mkdir -p %{buildroot}%{_datadir}/festival/lib
  for f in *.scm festival.el *.ent *.gram *.dtd *.ngrambin speech.properties ; do
    install -m 644 $f %{buildroot}%{_datadir}/festival/lib/
  done
  mkdir -p %{buildroot}%{_datadir}/festival/lib/multisyn/
  install -m 644 multisyn/*.scm %{buildroot}%{_datadir}/festival/lib/multisyn/
popd 

mv -f %{buildroot}%{_datadir}/%{name}/lib/etc/unknown_RedHatLinux/audsp %{buildroot}/%{_bindir}
rm -Rf %{buildroot}%{_datadir}/%{name}/lib/etc/
rm -f %{buildroot}%{_datadir}/%{name}/lib/VCLocalRules

# the actual /etc. :)
mkdir -p %{buildroot}%{_sysconfdir}/festival

# use our version of this file
rm %{buildroot}%{_datadir}/festival/lib/siteinit.scm
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/festival/siteinit.scm
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/festival/sitevars.scm

sed -i -e 's,/projects/festival/lib,%{_datadir}/%{name},g' %{buildroot}/%{_datadir}/%{name}/lib/lexicons.scm

# copy in the intro.text. It's small and makes (intro) work. in the future,
# we may want include more examples in an examples subpackage
mkdir -p %{buildroot}%{_datadir}/festival/examples/
install -p -m 644 examples/intro.text %{buildroot}%{_datadir}/festival/examples

# systemd service
mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 %{SOURCE230} %{buildroot}%{_unitdir}/

# sysuser config
install -d %{buildroot}/%{_sysusersdir}/
install -m0644 %{SOURCE231} %{buildroot}/%{_sysusersdir}/festival.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12672 |21mr|festlex-2.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Voices for Festival - a free speech synthesizer 
Name:		festlex
Version:	2.4
Release:	5
License:	BSD
Group:		Sound
Url:		http://www.cstr.ed.ac.uk/projects/festival/
### DICTIONARIES
# Generic English dictionary
Source100:	http://www.cstr.ed.ac.uk/downloads/festival/%{version}/%{name}_POSLEX.tar.gz
# American English dictionary
Source101:	http://www.cstr.ed.ac.uk/downloads/festival/%{version}/%{name}_CMU.tar.gz
BuildArch:	noarch

%description
Festival is a general multi-lingual speech synthesis system developed at CSTR.
It offers a full text to speech system with various APIs, as well as an
environment for development and research of speech synthesis techniques. It is
written in C++ with a Scheme-based command interpreter for general control.
This package contains dictionaries for use with Festival

#-----------------------------------------------------------------------------

%package POSLEX
Group:		Sound
Summary:	Festival Speech Lexicons for Engish
Provides:	festival-lexicons

%description POSLEX
Part of speech lexicons and ngram from English.  Required by all British and
American English voices.

%files POSLEX
%doc festival/lib/dicts/COPYING.poslex
%{_datadir}/festival/dicts/wsj*


#-----------------------------------------------------------------------------

%package CMU
Group:		Sound
Summary:	CMU dictionary in Festival form
Provides:	festival-dictionary
Provides:	festival-dictionary-en_US
Requires:	festlex-POSLEX

%description CMU
CMU dictionary in Festival form, required for American English voices.

%files CMU
%doc festival/lib/dicts/cmu/COPYING
%{_datadir}/festival/dicts/cmu


#-----------------------------------------------------------------------------

%prep
%setup  -T -c -q -a 100 -a 101


%build
#cd festival/lib/dicts/cmu
#make
#cd ../../..


%install
mkdir -p %{buildroot}%{_datadir}/festival
cp -a festival/lib/dicts %{buildroot}%{_datadir}/festival

rm -f %{buildroot}/%{_datadir}/festival/dicts/COPYING.poslex

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12673 |21mr|festvox-2.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Voices for Festival - a free speech synthesizer 
Name:		festvox
Version:	2.4
Release:	4
License:	BSD
Group:		Sound
Url:		http://festvox.org/festival/index.html
### VOICES
# American English male speaker (KAL), residual excited LPC diphone database
Source200: 	http://festvox.org/packed/festival/%{version}/voices/festvox_kallpc16k.tar.gz
# British English RP male speaker using residual excited LPC diphone
# database, requires festlex_POSLEX and festlex_OALD (non-free)
#Source204: 	http://festvox.org/packed/festival/%%{version}/voices/festvox_rablpc16k.tar.bz2

# All the below are no more present on festival sites (08/2016)
#
# Same voice at lower quality
#Source201: 	ftp://ftp.cstr.ed.ac.uk/pub/festival/%%{version}/festvox_kallpc8k.tar.bz2
# American English male speaker, residual excited LPC diphone database
#Source202: 	ftp://ftp.cstr.ed.ac.uk/pub/festival/%%{version}/festvox_kedlpc16k.tar.bz2
# Same voice at lower quality
#Source203: 	ftp://ftp.cstr.ed.ac.uk/pub/festival/%%{version}/festvox_kedlpc8k.tar.bz2
# Same as festvox_rablpc16k but at 8KHz sampling.
# requires festlex_POSLEX and festlex_OALD (non-free)
#Source205: 	ftp://ftp.cstr.ed.ac.uk/pub/festival/%%{version}/festvox_rablpc8k.tar.bz2 
# Castilian Spanish male speaker, residual excited LPC diphone database
# NONFREE! - Free for non-commercial use
#Source299: 	ftp://ftp.cstr.ed.ac.uk/pub/festival/%%{version}/festvox_ellpc11k.tar.bz2

# Add some useful words to the dictionary...
#Patch10: CMU-redhat.patch.bz2
BuildArch:	noarch

%description
Festival is a general multi-lingual speech synthesis system developed at CSTR.
It offers a full text to speech system with various APIs, as well as an
environment for development and research of speech synthesis techniques. It is
written in C++ with a Scheme-based command interpreter for general control.
This package contains voices for use with Festival.

#-----------------------------------------------------------------------------

%package kallpc16k
Group:		Sound
Summary:	Festival Voice - American English male speaker (KAL) 16kHz
Requires:	festvox-kallpc-common
Provides:	festival-voice
Provides:	festival-voice-english
Provides:	festival-voice-en_US

%description kallpc16k
Festival Voice - American English male speaker (KAL) 16kHz,

%files kallpc16k
%doc festival/lib/voices/english/kal_diphone/COPYING
%{_datadir}/festival/voices/english/kal_diphone/group/kallpc16k.group

#-----------------------------------------------------------------------------

%package kallpc-common
Group:		Sound
Summary:	Festival Voice - American English male speaker (KAL) - Common
Requires:	festlex-CMU

%description kallpc-common
Festival Voice - American English male speaker (KAL). Files shared between the
16kHz and 8kHz Voices.

%files kallpc-common
%doc festival/lib/voices/english/kal_diphone/COPYING
%{_datadir}/festival/voices/english/kal_diphone/festvox/*.scm

#-----------------------------------------------------------------------------

#package kallpc8k
#Group:		Sound
#Summary:	Festival Voice - American English male speaker (KAL) 8kHz
#Requires:	festvox-kallpc-common
#Provides:	festival-voice
#Provides:	festival-voice-english
#Provides:	festival-voice-en_US

#description kallpc8k
#Festival Voice - American English male speaker (KAL) 8kHz

#files kallpc8k
#_datadir/festival/voices/english/kal_diphone/group/kallpc8k.group

#-----------------------------------------------------------------------------

#package kedlpc16k
#Group:		Sound
#Summary:	Festival Voice - American English male speaker (KED) 16kHz
#Requires:	festvox-kedlpc-common
#Provides:	festival-voice
#Provides:	festival-voice-english
#Provides:	festival-voice-en_US

#description kedlpc16k
#Festival Voice - American English male speaker (KAL) 16kHz

#files kedlpc16k
#_datadir/festival/voices/english/ked_diphone/group/kedlpc16k.group

#-----------------------------------------------------------------------------

#package kedlpc8k
#Group:		Sound
#Summary:	Festival Voice - American English male speaker (KDE) 8kHz
#Requires:	festvox-kedlpc-common
#Provides:	festival-voice
#Provides:	festival-voice-english
#Provides:	festival-voice-en_US

#description kedlpc8k
#Festival Voice - American English male speaker (KED) 8kHz

#files kedlpc8k
#_datadir/festival/voices/english/ked_diphone/group/kedlpc8k.group

#-----------------------------------------------------------------------------

#package kedlpc-common
#Group:		Sound
#Summary:	Festival Voice - American English male speaker (KED) - Common
#Requires:	festlex-CMU

#description kedlpc-common
#Festival Voice - American English male speaker (KED).
#Files shared between the 16kHz and 8kHz Voices.

#files kedlpc-common
#doc festival/lib/voices/english/ked_diphone/COPYING
#_datadir/festival/voices/english/ked_diphone/festvox/*.scm

#-----------------------------------------------------------------------------

#package rablpc16k
#Group:		Sound
#Summary:	Festival Voice - British English male speaker (RAB) 16kHz
#Requires:	festvox-rablpc-common
#Provides:	festival-voice
#Provides:	festival-voice-english
#Provides:	festival-voice-en_UK

#description rablpc16k
#Festival Voice - British English male speaker (RAB) 16kHz

#files rablpc16k
#_datadir/festival/voices/english/rab_diphone/group/rablpc16k.group

#-----------------------------------------------------------------------------

#package rablpc8k
#Group:		Sound
#Summary:	Festival Voice - British English male speaker (RAB) 8kHz
#Requires:	festvox-rablpc-common
#Provides:	festival-voice
#Provides:	festival-voice-english
#Provides:	festival-voice-en_UK

#description rablpc8k
#Festival Voice - American English male speaker (RAB) 8kHz

#files rablpc8k
#_datadir/festival/voices/english/rab_diphone/group/rablpc8k.group

#-----------------------------------------------------------------------------

#package rablpc-common
#Group:		Sound
#Summary:	Festival Voice - British English male speaker (RAB) - Common
#Requires:	festlex-OALD

#description rablpc-common
#Festival Voice - British English male speaker (RAB).
#Files shared between the 16kHz and 8kHz Voices.

#files rablpc-common
#doc festival/lib/voices/english/rab_diphone/COPYING
#_datadir/festival/voices/english/rab_diphone/festvox/*.scm

#-----------------------------------------------------------------------------

%prep
#%%setup -D -T -c -q -a 100 -a 101 -a 201 -a 202 -a 203 -a 204 -a205
%setup  -T -c -q -a 200
#%%patch10


%build
#cd festival/lib/dicts/cmu
#make
#cd ../../..


%install
mkdir -p %{buildroot}%{_datadir}/festival
cp -a festival/lib/voices %{buildroot}%{_datadir}/festival

rm -f %{buildroot}/%{_datadir}/festival/voices/english/*/COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12674 |21mr|fetchmail-6.4.38-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	Full-featured POP/IMAP mail retrieval daemon
Name:		fetchmail
Version:	6.4.38
Release:	4
License:	GPLv2+
Group:		Networking/Mail
Url: 		http://www.fetchmail.info
Source0:	http://sourceforge.net/projects/fetchmail/files/branch_6.4/%{name}-%{version}.tar.xz
Source4:	fetchmail.sysconfig
Source5:	fetchmail.service
Patch0:		fetchmail-5.7.0-nlsfix.patch
Patch9:		fetchmail-6.3.2-norootwarning.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
Requires:	MailTransportAgent

%description
Fetchmail is a free, full-featured, robust, and well-documented remote mail
retrieval and forwarding utility intended to be used over on-demand TCP/IP
links (such as SLIP or PPP connections).

It retrieves mail from remote mail servers and forwards it to your local
(client) machine's delivery system, so it can then be read by normal
mail user agents such as Mutt, Elm, Pine, (X)Emacs/Gnus or Mailx.

It comes with an interactive GUI configurator suitable for end-users.

Fetchmail supports every remote-mail protocol currently in use on the
Internet (POP2, POP3, RPOP, APOP, KPOP, all IMAPs, ESMTP ETRN) for
retrieval. Then Fetchmail forwards the mail through SMTP, so you can
read it through your normal mail client.

%files -f %{name}.lang
%license COPYING
%doc FAQ FEATURES INSTALL NEWS NOTES README
%doc contrib fetchmail-features.html fetchmail-FAQ.html design-notes.html
%{_bindir}/fetchmail
%{_mandir}/man1/fetchmail.1*

#----------------------------------------------------------------------------

%package -n fetchmailconf
Summary:	A utility for graphically configuring your fetchmail preferences
Group:		System/Configuration/Networking
# module "past" in in "future"
Requires:	python3-future
Requires:	tkinter3
Requires:	%{name} = %{EVRD}

%description -n fetchmailconf
Fetchmailconf is a TCL/TK application for graphically configuring
your ~/.fetchmailrc preferences file.

Fetchmail has many options which can be daunting to the new user.

This utility takes some of the guesswork and hassle out of setting up
fetchmail.

%files -n fetchmailconf
%license COPYING
%doc README.fetchmail-conf
%{_libdir}/rhs/control-panel/*
%{_bindir}/fetchmailconf
%{_mandir}/man1/fetchmailconf.1*
%{python3_sitelib}/fetchmailconf.py*
%{python3_sitelib}/__pycache__/

#----------------------------------------------------------------------------

%package daemon
Summary:	Systemd service for demonize fetchmail for retrieving emails
Group:		System/Base
Requires:	%{name} = %{EVRD}

%description daemon
Systemd service for demonize fetchmail for sucking emails.

%files daemon
%license COPYING
%attr(600,root,root) %config(noreplace,missingok) %{_sysconfdir}/fetchmailrc
%config(noreplace) %{_sysconfdir}/sysconfig/fetchmail
%attr(755,root,root) %config(noreplace) %{_unitdir}/fetchmail.service

%post daemon
%system_post fetchmail.service

%postun daemon
%systemd_postun_with_restart fetchmail.service

#----------------------------------------------------------------------------

%prep
%autosetup -p0

%build
%serverbuild
%configure  \
	--with-ssl=%{_prefix} \
	--enable-RPA \
	--enable-NTLM \
	--enable-SDPS \
	--with-kerberos5 \
	--with-gssapi

# (tv) do not use %%make in order to workaround buggy parallel build:
make all

%install
mkdir -p %{buildroot}{%{_libdir}/rhs/control-panel,%{_datadir}/applets/Administration} \
	%{buildroot}{%{_sysconfdir}/{X11/wmconfig,sysconfig},%{_mandir}/man1,%{_unitdir}}

%makeinstall

install rh-config/*.{xpm,init} %{buildroot}%{_libdir}/rhs/control-panel

install -Dm 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/fetchmail
install -m0755 %{SOURCE5} %{buildroot}%{_unitdir}/fetchmail.service

echo -e "# Put here each user config\n" > %{buildroot}/etc/fetchmailrc

rm -rf contrib/RCS
chmod 644 contrib/*
find -name \*.xpm -exec chmod 644 '{}' \;

%find_lang %{name}

cat > README.fetchmail-conf <<EOF
Fetchmailconf is a TCL/TK application for graphically configuring your
~/.fetchmailrc preferences file.

Fetchmail has many options which can be daunting to the new user.


This utility takes some of the guesswork and hassle out of setting up
fetchmail.
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12675 |21mr|ffmpeg-4.4.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major           58
%define avdevmajor      58
%define filtermajor     7
%define avfmtmajor      58
%define avumajor        56
%define ppmajor         55
%define swrmajor        3
%define swsmajor        5
%define avrmajor        4
%define libavcodec      %mklibname avcodec %{major}
%define libavdevice     %mklibname avdevice %{avdevmajor}
%define libavfilter     %mklibname avfilter %{filtermajor}
%define libavformat     %mklibname avformat %{avfmtmajor}
%define libavutil       %mklibname avutil %{avumajor}
%define libpostproc     %mklibname postproc %{ppmajor}
%define libswresample   %mklibname swresample %{swrmajor}
%define libswscale      %mklibname swscaler %{swsmajor}
%define libavresample   %mklibname avresample %{avrmajor}
%define devname         %mklibname %{name} -d
%define statname        %mklibname %{name} -d -s

%bcond_without	swscaler
%bcond_with	opencv
# disabled due mesa bug
%bcond_with	opencl

Summary:	Hyper fast MPEG1/MPEG4/H263/RV and AC3/MPEG audio encoder
Name:		ffmpeg
Version:	4.4.3
Release:	3
License:	GPLv3+
Group:		Video
Url:		http://ffmpeg.org/
Source0:	http://ffmpeg.org/releases/%{name}-%{version}.tar.xz
# FDK-AAC license is considered as free by Fedora and Free Software Foundation
Patch2:		ffmpeg-1.0.1-time.h.patch
Patch5:		ffmpeg-xbmc-support.patch
#Patch6:		ffmpeg-3.5.0-force_dl.patch
Patch7:		CVE-2022-3109.patch
Patch8:		CVE-2022-3341.patch
BuildRequires:	nasm
BuildRequires:	texi2html
BuildRequires:	bzip2-devel
BuildRequires:	gsm-devel
BuildRequires:	jpeg-devel
BuildRequires:	ladspa-devel
BuildRequires:	liblame-devel
# Maybe needs to be updated in future
BuildConflicts:	crystalhd-devel
%if %{with opencl}
BuildRequires:	pkgconfig(OpenCL)
%endif

BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(aom)
BuildRequires:	pkgconfig(celt)
BuildRequires:	pkgconfig(fdk-aac)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gnutls) >= 3.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libbluray)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libcdio_paranoia)
BuildRequires:	pkgconfig(libdc1394-2)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(librtmp)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libv4l2)
%if %{with opencv}
BuildRequires:	pkgconfig(opencv)
%endif
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(soxr)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-shm)
BuildRequires:	pkgconfig(xcb-shape)
BuildRequires:	pkgconfig(xcb-xfixes)
%ifarch %{ix86} %{x86_64}
BuildRequires:	ffnvcodec-headers
%endif
BuildRequires:	xvid-devel
BuildRequires:	pkgconfig(opencore-amrnb)
BuildRequires:	pkgconfig(opencore-amrwb)
BuildRequires:	pkgconfig(vo-amrwbenc)
BuildRequires:	pkgconfig(x264)
BuildRequires:	pkgconfig(x265)
%if 0
BuildRequires:	pkgconfig(frei0r)
%endif

%description
ffmpeg is a hyper fast realtime audio/video encoder, a streaming server
and a generic audio and video file converter.

It can grab from a standard Video4Linux video source and convert it into
several file formats based on DCT/motion compensation encoding. Sound is
compressed in MPEG audio layer 2 or using an AC3 compatible stream.

%files
%doc INSTALL.md README.md doc/*.html doc/*.txt
%{_bindir}/ffmpeg
%{_bindir}/ffplay
%{_bindir}/ffprobe
%{_mandir}/man1/*
%{_datadir}/ffmpeg
%exclude %{_datadir}/ffmpeg/examples

#----------------------------------------------------------------------------

%package -n %{libavcodec}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n %{libavcodec}
This package contains a shared library for %{name}.

%files -n %{libavcodec}
%{_libdir}/libavcodec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libavdevice}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n %{libavdevice}
This package contains a shared library for %{name}.

%files -n %{libavdevice}
%{_libdir}/libavdevice.so.%{avdevmajor}*

#----------------------------------------------------------------------------

%package -n %{libavfilter}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n	%{libavfilter}
This package contains a shared library for %{name}.

%files -n %{libavfilter}
%{_libdir}/libavfilter.so.%{filtermajor}*

#----------------------------------------------------------------------------

%package -n %{libavformat}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n %{libavformat}
This package contains a shared library for %{name}.

%files -n %{libavformat}
%{_libdir}/libavformat.so.%{avfmtmajor}*

#----------------------------------------------------------------------------

%package -n %{libavutil}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n %{libavutil}
This package contains a shared library for %{name}.

%files -n %{libavutil}
%{_libdir}/libavutil.so.%{avumajor}*

#----------------------------------------------------------------------------

%package -n %{libpostproc}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n	%{libpostproc}
This package contains a shared library for %{name}.

%files -n %{libpostproc}
%{_libdir}/libpostproc.so.%{ppmajor}*

#----------------------------------------------------------------------------

%package -n %{libswresample}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n %{libswresample}
This package contains a shared library for %{name}.

%files -n %{libswresample}
%{_libdir}/libswresample.so.%{swrmajor}*

#----------------------------------------------------------------------------

%if %{with swscaler}
%package -n %{libswscale}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n %{libswscale}
This package contains a shared library for %{name}.

%files -n %{libswscale}
%{_libdir}/libswscale.so.%{swsmajor}*
%endif

#----------------------------------------------------------------------------

%package -n %{libavresample}
Summary:	Shared library part of ffmpeg
Group:		System/Libraries

%description -n %{libavresample}
This package contains a shared library for %{name}.

%files -n %{libavresample}
%{_libdir}/libavresample.so.%{avrmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for the ffmpeg codec library
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libavcodec} = %{EVRD}
Requires:	%{libavdevice} = %{EVRD}
Requires:	%{libavfilter} = %{EVRD}
Requires:	%{libavformat} = %{EVRD}
Requires:	%{libavresample} = %{EVRD}
Requires:	%{libavutil} = %{EVRD}
Requires:	%{libpostproc} = %{EVRD}
Requires:	%{libswresample} = %{EVRD}
%if %{with swscaler}
Requires:	%{libswscale} = %{EVRD}
%endif
%if %{with opencl}
Requires:	pkgconfig(OpenCL)
%endif
Provides:	ffmpeg-devel = %{EVRD}
# /usr/share/ffmpeg/examples was moved
Conflicts:	ffmpeg < 4.4-5

%description -n %{devname}
ffmpeg is a hyper fast realtime audio/video encoder, a streaming server
and a generic audio and video file converter.

It can grab from a standard Video4Linux video source and convert it into
several file formats based on DCT/motion compensation encoding. Sound is
compressed in MPEG audio layer 2 or using an AC3 compatible stream.

Install this package if you want to compile apps with ffmpeg support.

%files -n %{devname}
%{_includedir}/libavcodec
%{_includedir}/libavdevice
%{_includedir}/libavfilter
%{_includedir}/libavformat
%{_includedir}/libavutil
%{_includedir}/libpostproc
%{_includedir}/libswresample
%{_includedir}/libavresample
%{_libdir}/libavcodec.so
%{_libdir}/libavdevice.so
%{_libdir}/libavfilter.so
%{_libdir}/libavformat.so
%{_libdir}/libavutil.so
%{_libdir}/libpostproc.so
%{_libdir}/libswresample.so
%{_libdir}/libavresample.so
%if %{with swscaler}
%{_includedir}/libswscale
%{_libdir}/libswscale.so
%{_libdir}/pkgconfig/libswscale.pc
%endif
%{_libdir}/pkgconfig/libavcodec.pc
%{_libdir}/pkgconfig/libavdevice.pc
%{_libdir}/pkgconfig/libavfilter.pc
%{_libdir}/pkgconfig/libavformat.pc
%{_libdir}/pkgconfig/libavutil.pc
%{_libdir}/pkgconfig/libpostproc.pc
%{_libdir}/pkgconfig/libswresample.pc
%{_libdir}/pkgconfig/libavresample.pc
%{_mandir}/man3/lib*.3.*
%{_datadir}/ffmpeg/examples

#----------------------------------------------------------------------------

%package -n %{statname}
Summary:	Static library for the ffmpeg codec library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	ffmpeg-static-devel = %{EVRD}

%description -n	%{statname}
ffmpeg is a hyper fast realtime audio/video encoder, a streaming server
and a generic audio and video file converter.

It can grab from a standard Video4Linux video source and convert it into
several file formats based on DCT/motion compensation encoding. Sound is
compressed in MPEG audio layer 2 or using an AC3 compatible stream.

Install this package if you want to compile static apps with ffmpeg support.

%files -n %{statname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch2 -p1 -b .timeh~
%patch5 -p1 -b .xbmc~
#%%patch6 -p1 -b .ldl
%patch7 -p1
%patch8 -p1

%build
export CFLAGS="%{optflags} -fPIC"
export LDFLAGS="%{ldflags}"

./configure --prefix=%{_prefix} \
	--enable-shared \
	--libdir=%{_libdir} \
	--shlibdir=%{_libdir} \
	--incdir=%{_includedir} \
	--disable-stripping \
	--enable-libaom \
	--enable-postproc \
	--enable-gpl \
	--enable-pthreads \
	--enable-ladspa \
	--enable-libbluray \
	--enable-libtheora \
	--enable-libvorbis --disable-encoder=vorbis \
	--enable-libvpx \
	--enable-libxcb \
	--enable-libxcb-shm \
	--enable-libxcb-xfixes \
	--enable-libxcb-shape \
	--enable-runtime-cpudetect \
	--enable-libfdk-aac \
	--enable-libdc1394 \
	--enable-librtmp \
	--enable-libspeex \
	--enable-libfreetype \
	--enable-libgsm \
	--enable-libcelt \
	--enable-avresample \
	--enable-version3 \
	--enable-nonfree \
%if %{with opencl}
	--enable-opencl \
%endif
%ifarch %{ix86} %{x86_64}
	--enable-nvdec \
	--enable-nvenc \
%endif
%if %{with opencv}
	--enable-libopencv \
%else
	--disable-libopencv \
%endif
	--enable-libopenjpeg \
	--enable-libopus \
	--enable-libsoxr \
	--disable-libxavs \
	--enable-libmodplug \
	--enable-libmp3lame \
	--enable-libass \
	--enable-gnutls \
	--enable-libcdio \
	--enable-libpulse \
	--enable-libv4l2 \
%if 0
	--enable-frei0r \
%endif
	--enable-libopencore-amrnb \
	--enable-libopencore-amrwb \
	--enable-version3 \
	--enable-libx264 \
	--enable-libx265 \
	--enable-libvo-amrwbenc \
	--enable-libxvid \
	--enable-libsmbclient

%make

%install
%makeinstall_std SRC_PATH=`pwd`

# CVE-2022-1475 < 4.4.2 (and < 5.0.1)
# CVE-2022-2566 > 5.1
# CVE-2022-3964
# CVE-2022-48434


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12676 |21mr|ffnvcodec-headers-11.0.10.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FFmpeg version of headers required to interface with Nvidias codec APIs
Name:		ffnvcodec-headers
Version:	11.0.10.1
Release:	2
License:	MIT
Group:		Development/C
Url:		https://git.videolan.org/?p=ffmpeg/nv-codec-headers.git
Source0:	https://github.com/FFmpeg/nv-codec-headers/releases/download/n%{version}/nv-codec-headers-%{version}.tar.gz
# not imlemented on arm arch`s
ExcludeArch:	%{armx}
BuildArch:	noarch

%description
FFmpeg version of headers required to interface with Nvidias codec APIs

%files
%doc README
%{_datadir}/pkgconfig/ffnvcodec.pc
%{_includedir}/ffnvcodec/*.h

#----------------------------------------------------------------------------

%prep
%setup -qn nv-codec-headers-%{version}

%build
make PREFIX=%{_prefix}

%install
%makeinstall_std \
	LIBDIR=/share \
	PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12677 |21mr|fftw-3.3.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define api 3
%define major 3
%define libname %mklibname %{name} %{api} %{major}
%define libname_threads %mklibname %{name}%{api}_threads %{major}
%define libnamef %mklibname %{name}%{api}f %{major}
%define libnamef_threads %mklibname %{name}%{api}f_threads %{major}
%define libnamel %mklibname %{name}%{api}l %{major}
%define libnamel_threads %mklibname %{name}%{api}l_threads %{major}
%define devname	 %mklibname %{name} -d

Summary:	Fast fourier transform library
Name:		fftw
Version:	3.3.10
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.fftw.org
Source0:	http://www.fftw.org/%{name}-%{version}.tar.gz
BuildRequires:	gcc-gfortran
BuildRequires:	texinfo
BuildConflicts:	%{devname}

%description
FFTW is a collection of fast C routines for computing the Discrete Fourier
Transform in one or more dimensions.  It includes complex, real, and
parallel transforms, and can handle arbitrary array sizes efficiently.

#----------------------------------------------------------------------------

%package wisdom
Summary:	FFTW-wisdom file generator
Group:		Development/Other

%description wisdom
fftw-wisdom is a utility to generate FFTW wisdom files, which contain saved
information about how to optimally compute (Fourier) transforms of various
sizes.

%files wisdom
%doc AUTHORS CO* NEWS README TODO
%{_bindir}/fftw*-wisdom
%{_bindir}/fftw-wisdom-to-conf
%{_includedir}/fftw3.f
%{_mandir}/man1/fftw-wisdom-to-conf.*
%{_mandir}/man1/fftw*-wisdom.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast fourier transform library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Conflicts:	%{_lib}fftw3 < 3.3.3-2
Obsoletes:	%{_lib}fftw3 < 3.3.3-2

%description -n %{libname}
FFTW is a collection of fast C routines for computing the Discrete Fourier
Transform in one or more dimensions.  It includes complex, real, and
parallel transforms, and can handle arbitrary array sizes efficiently.

%files -n %{libname}
%{_libdir}/libfftw%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_threads}
Summary:	Fast fourier transform library
Group:		System/Libraries
Conflicts:	%{_lib}fftw3 < 3.3.3-2

%description -n %{libname_threads}
This package contains a shared library for %{name}.

%files -n %{libname_threads}
%{_libdir}/libfftw%{api}_threads.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamef}
Summary:	Fast fourier transform library
Group:		System/Libraries
Conflicts:	%{_lib}fftw3 < 3.3.3-2

%description -n %{libnamef}
This package contains a shared library for %{name}.

%files -n %{libnamef}
%{_libdir}/libfftw%{api}f.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamef_threads}
Summary:	Fast fourier transform library
Group:		System/Libraries
Conflicts:	%{_lib}fftw3 < 3.3.3-2

%description -n %{libnamef_threads}
This package contains a shared library for %{name}.

%files -n %{libnamef_threads}
%{_libdir}/libfftw%{api}f_threads.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamel}
Summary:	Fast fourier transform library
Group:		System/Libraries
Conflicts:	%{_lib}fftw3 < 3.3.3-2

%description -n %{libnamel}
This package contains a shared library for %{name}.

%files -n %{libnamel}
%{_libdir}/libfftw%{api}l.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamel_threads}
Summary:	Fast fourier transform library
Group:		System/Libraries
Conflicts:	%{_lib}fftw3 < 3.3.3-2

%description -n %{libnamel_threads}
This package contains a shared library for %{name}.

%files -n %{libnamel_threads}
%{_libdir}/libfftw%{api}l_threads.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers, libraries, & docs for FFTW fast fourier transform library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_threads} = %{EVRD}
Requires:	%{libnamef} = %{EVRD}
Requires:	%{libnamef_threads} = %{EVRD}
Requires:	%{libnamel} = %{EVRD}
Requires:	%{libnamel_threads} = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the additional header files, documentation, and
libraries you need to develop programs using the FFTW fast fourier
transform library.

%files -n %{devname}
%doc doc/*
%{_includedir}/*fftw*.h
%{_includedir}/fftw3*.f03
%{_infodir}/fftw%{api}.info*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libfftw*.so
%{_libdir}/cmake/fftw3/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%config_update
export F77="gfortran"
mkdir build-std
pushd build-std
CONFIGURE_TOP=.. \
%configure \
	--disable-static \
	--enable-shared \
	--enable-threads \
	--enable-fortran \
%ifarch x86_64
	--disable-sse \
	--enable-sse2 \
%endif
	--infodir=%{_infodir}

%make
popd

mkdir build-float
pushd build-float
CONFIGURE_TOP=.. \
%configure \
	--disable-static \
	--enable-float \
	--enable-shared \
	--enable-threads \
	--enable-fortran \
%ifarch x86_64
	--enable-sse \
	--enable-sse2 \
%endif
	--infodir=%{_infodir}
%make
popd

# SSE doesn't work with long-double:
mkdir build-long-double
pushd build-long-double
CONFIGURE_TOP=.. \
%configure \
	--disable-static \
	--enable-long-double \
	--enable-shared \
	--enable-threads \
	--enable-fortran \
	--infodir=%{_infodir}
%make
popd

%install
%makeinstall_std -C build-std
%makeinstall_std -C build-float
%makeinstall_std -C build-long-double

rm -fr %{buildroot}/%{_docdir}/Make*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12678 |21mr|field3d-1.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1.7
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

%define up_name	Field3D

Name:		field3d
Version:	1.7.3
Release:	1
Summary:	Library for storing voxel data
Group:		System/Libraries
License:	BSD
URL:		https://sites.google.com/site/field3d/
Source0:	https://github.com/imageworks/%{up_name}/archive/v%{version}/%{up_name}-%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	gcc-c++
BuildRequires:	doxygen
BuildRequires:	hdf5-devel
BuildRequires:	boost-devel
BuildRequires:	ilmbase-devel
BuildRequires:	zlib-devel

Requires:	hdf5

%description
Field3D is an open source library for storing voxel data. It provides C++
classes that handle in-memory storage and a file format based on HDF5 that
allows the C++ objects to be written to and read from disk.

%files
%doc CHANGES README
%doc COPYING
%{_bindir}/f3dinfo
%{_mandir}/man1/f3dinfo.1*

#------------------------------------------------

%package -n	%{libname}
Summary:	Library for storing voxel data
Group:		System/Libraries

%description -n	%{libname}
Field3D is an open source library for storing voxel data. It provides C++
classes that handle in-memory storage and a file format based on HDF5 that
allows the C++ objects to be written to and read from disk.

%files -n %{libname}
%doc CHANGES README
%doc COPYING
%{_libdir}/libField3D.so.%{major}{,.*}

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{name} = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
Header files for development with %{name}.

%files -n %{develname}
%doc docs/html/
%{_includedir}/Field3D/
%{_libdir}/libField3D.so

#------------------------------------------------

# Need devel-docs subpackage.

%prep
%autosetup -p1 -n %{up_name}-%{version}

%build
%cmake -DINSTALL_DOCS=OFF

%make

%install
%makeinstall_std -C build

install -D -m 0644 man/f3dinfo.1 %{buildroot}%{_mandir}/man1/f3dinfo.1

%check
pushd build
LD_LIBRARY_PATH=. ./unitTest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12679 |21mr|file-5.45-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname magic %{major}
%define devname %mklibname magic -d
%define staticname %mklibname magic -d -s

Summary:	A utility for determining file types
Name:		file
Version:	5.45
Release:	1
License:	BSD
Group:		File tools
Url:		http://www.darwinsys.com/file/
Source0:	ftp://ftp.astron.com/pub/file/%{name}-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Patch3:		file-5.44-selinux.patch
Patch4:		file-5.04-oracle.patch
Patch8:		file-5.40-berkeleydb.patch
Patch9:		file-5.14-xen.patch
Patch13:	file-5.44-images.patch
Patch14:	file-5.40-seccomp-whitelist-getpid.patch
# Fedora patches
Patch103:	file-4.17-rpm-name.patch
Patch104:	file-5.04-volume_key.patch

BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python2-pkg-resources

%description
The file command is used to identify a particular file according to the
type of data contained by the file.  File can identify many different
file types, including ELF binaries, system libraries, RPM packages, and
different graphics formats.

You should install the file package, since the file command is such a
useful utility.

%files
%doc README.md MAINT ChangeLog
%{_bindir}/*
%{_datadir}/misc/*
%{_mandir}/man1/*
%{_mandir}/man4/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for handling magic files
Group:		System/Libraries

%description -n %{libname}
The file command is used to identify a particular file according to the
type of data contained by the file.  File can identify many different
file types, including ELF binaries, system libraries, RPM packages, and
different graphics formats.

Libmagic is a library for handlig the so called magic files the 'file'
command is based on.

%files -n %{libname}
%{_libdir}/libmagic.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files to build applications that handle magic files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	magic-devel = %{EVRD}

%description -n %{devname}
The file command is used to identify a particular file according to the
type of data contained by the file.  File can identify many different
file types, including ELF binaries, system libraries, RPM packages, and
different graphics formats.

Libmagic is a library for handlig the so called magic files the 'file'
command is based on.

%files -n %{devname}
%{_libdir}/libmagic.so
%{_includedir}/*
%{_mandir}/man3/*
%{_libdir}/pkgconfig/libmagic.pc

#----------------------------------------------------------------------------

%package -n %{staticname}
Summary:	Static library to build applications that handle magic files
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	magic-static-devel = %{EVRD}

%description -n %{staticname}
The file command is used to identify a particular file according to the
type of data contained by the file.  File can identify many different
file types, including ELF binaries, system libraries, RPM packages, and
different graphics formats.

Libmagic is a library for handlig the so called magic files the 'file'
command is based on.

%files -n %{staticname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package -n python2-magic
%py2_migration_meta python2-magic
Summary:	Python module to use libmagic
Group:		Development/Python
BuildArch:	noarch
Requires:	%{name} >= %{EVRD}

%description -n python2-magic
Libmagic is a library for handlig the so called magic files the 'file'
command is based on.

This package contains the python binding for libmagic.

%files -n python2-magic
%doc python/example.py
%{py2_puresitedir}/*

#----------------------------------------------------------------------------

%package -n python3-magic
Summary:	Python3 module to use libmagic
Group:		Development/Python
BuildArch:	noarch
Provides:	python-magic = %{EVRD}
Requires:	%{name} >= %{EVRD}

%description -n python3-magic
Libmagic is a library for handlig the so called magic files the 'file'
command is based on.

This package contains the python3 binding for libmagic.

%files -n python3-magic
%doc python/example.py
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

cp -r python python3

%build
autoreconf -fi
CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE" \
%configure --enable-static || cat config.log
%make

pushd python
%py2_build
popd

pushd python3
%py3_build
popd

%install
%makeinstall_std

# install one missing header file
install -m644 src/file.h -D %{buildroot}%{_includedir}/file.h

pushd python
%py2_install
popd

pushd python3
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12680 |21mr|filelight-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical disk usage statistics
Name:		filelight
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/filelight/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kquickcharts

%description
Filelight allows you to quickly understand exactly where your
diskspace is being used by graphically representing your file
system as a set of concentric segmented-rings. You can use it
to locate hotspots of disk usage and then manipulate those
areas using a file manager.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.filelight.desktop
%{_kde5_bindir}/filelight
%{_kde5_iconsdir}/*/*/apps/filelight.*
%{_kde5_sysconfdir}/xdg/filelightrc
%{_kde5_xmlguidir}/filelight/filelightui.rc
%{_kde5_datadir}/qlogging-categories5/filelight.categories
%{_appdatadir}/org.kde.filelight.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12681 |21mr|file-roller-3.42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} |rev |cut -d. -f2- |rev)

Summary:	An archive manager for GNOME
Name:		file-roller
Version:	3.42.0
Release:	2
License:	GPLv2+
Group:		Archiving/Compression
Url:		https://download.gnome.org/sources/file-roller
Source0:	https://download.gnome.org/sources/file-roller/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	file-roller-3.38.0_ru.tar.gz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libtool
BuildRequires:	meson
BuildRequires:	magic-devel
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(sm)

%description
File Roller is an archive manager for the GNOME environment.  This means that 
you can : create and modify archives; view the content of an archive; view a 
file contained in the archive; extract files from the archive.
File Roller is only a front-end (a graphical interface) to archiving programs 
like tar and zip. The supported file types are :
    * Tar archives uncompressed (.tar) or compressed with
          * gzip (.tar.gz , .tgz)
          * bzip (.tar.bz , .tbz)
          * bzip2 (.tar.bz2 , .tbz2)
          * compress (.tar.Z , .taz)
          * lzop (.tar.lzo , .tzo)
          * lzma (.tar.lzma , .tlz)
    * Zip archives (.zip)
    * Jar archives (.jar , .ear , .war)
    * Lha archives (.lzh)
    * Rar archives (.rar)
    * Single files compressed with gzip, bzip, bzip2, compress, lzop, lzma
    * ISO images

%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_appdatadir}/org.gnome.FileRoller.appdata.xml
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.gnome.FileRoller.service
%{_datadir}/file-roller
%{_datadir}/glib-2.0/schemas/org.gnome.FileRoller.gschema.xml
%{_datadir}/icons/hicolor/*/*/*.*
%{_datadir}/dbus-1/services/org.gnome.ArchiveManager1.service
%{_libexecdir}/%{name}
%{_libdir}/nautilus/extensions-3.0/libnautilus-fileroller.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson -Dpackagekit=false
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12682 |21mr|filesystem-2.1.9-52
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The basic directory layout for a Linux system
Name:		filesystem
Version:	2.1.9
Release:	52
License:	Public Domain
Group:		System/Base
Url:		http://www.rosalinux.ru/
Source0:	%{name}.rpmlintrc
#Added to transfer /var/run and /var/lock from folders to symlinks
Provides:	should-restart = system
# To set correct %%atr, default /etc/passwd from setup is needed
OrderWithRequires: setup

%description
The filesystem package is one of the basic packages that is installed on
a ROSA Linux system. Filesystem contains the basic directory layout
for a Linux operating system, including the correct permissions for the
directories.

%files
/bin
/boot
/etc
/home
/lib
%if "%{_lib}" != "lib"
/%{_lib}
%endif
%dir /dev
%dir /media
%dir /mnt
%dir /opt
/proc
%dir %attr(555,root,root) /sys
%attr(750,root,root) /root
/sbin
%attr(1777,root,root) /tmp
%{_prefix}
%dir /run
%dir /run/lock
%dir /var
/var/db
/var/lib
/var/local
/var/empty
/var/cache
/var/log
/var/mail
/var/nis
/var/opt
/var/preserve
/var/run
/var/lock
%dir /var/spool
%attr(0755,root,daemon) %dir /var/spool/lpd
%attr(775,root,mail) /var/spool/mail
%attr(1777,root,root) /var/tmp
/var/yp

#----------------------------------------------------------------------------

%install
cd %{buildroot}
mkdir -p mnt media bin boot dev
mkdir -p opt proc root sbin sys tmp
mkdir -p home initrd
mkdir -p lib/modules/keys

mkdir -p %{buildroot}%{_sysconfdir}/{profile.d,skel,security,ssl,sysconfig,default}
mkdir -p %{_lib}

mkdir -p %{buildroot}%{_prefix}/{etc,src,lib}
mkdir -p %{buildroot}/{%{_bindir},%{_libdir},%{_includedir},%{_sbindir},%{_datadir}}
mkdir -p %{buildroot}/%{_datadir}/{misc,pixmaps,applications,dict,doc,empty,fonts,xsessions,wayland-sessions}
mkdir -p %{buildroot}/%{_datadir}/color/{icc,cmms,settings}
mkdir -p %{buildroot}%{_libexecdir}

# rpm stores %%license's here
mkdir -p %{buildroot}/%{_datadir}/licenses

# appdata
mkdir -p %{buildroot}/%{_datadir}/metainfo

# man
mkdir -p %{buildroot}/%{_mandir}/man{1,2,3,4,5,6,7,8,9,n}
mkdir -p %{buildroot}/%{_infodir}
# games
mkdir -p %{buildroot}/{%{_gamesbindir},%{_gamesdatadir}}
mkdir -p %{buildroot}/{%{_libdir},%{_prefix}/lib}/games

mkdir -p %{buildroot}/%{_libdir}/gcc-lib
mkdir -p %{buildroot}/%{_prefix}/lib/gcc-lib

mkdir -p usr/local/{bin,doc,etc,games,lib,%{_lib},sbin,src,libexec,include}
mkdir -p usr/local/share/{man/man{1,2,3,4,5,6,7,8,9,n},info}

mkdir -p var/{local,log,nis,preserve,lib,empty}
mkdir -p var/spool/{mail,lpd}
mkdir -p var/lib/{games,misc}
mkdir -p var/{tmp,db,cache,opt,games,yp}
mkdir -p run/lock

ln -snf ../run var/run
ln -snf ../run/lock var/lock

ln -snf ../var/tmp usr/tmp
ln -snf spool/mail var/mail

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12683 |21mr|filezilla-3.55.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%global __requires_exclude devel(.*)

Summary:	Fast and reliable FTP client
Name:		filezilla
Version:	3.55.1
Release:	2
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://filezilla-project.org/
Source0:	https://download.filezilla-project.org/client/FileZilla_%{version}_src.tar.bz2
Source1:	filezilla.rpmlintrc
Patch0:		filezilla-3.25.1-desktop-l10n.patch
#fix compile error with std::list undeclared
Patch1:		add_include.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	xdg-utils
BuildRequires:	idn-devel
BuildRequires:	wxgtku3.0-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libfilezilla)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(pugixml)
Requires:	xdg-utils

%description
FileZilla is a fast and reliable FTP client and server with lots 
of useful features and an intuitive interface

%files -f %{name}.lang
%doc AUTHORS COPYING GPL.html NEWS README
%{_bindir}/%{name}
%{_bindir}/fzsftp
%{_bindir}/fzputtygen
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/resources
%{_datadir}/%{name}/docs/fzdefaults.xml.example
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_datadir}/appdata/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%{_mandir}/man*/*
# this lib needed only for filezilla, standalone lib package not needed
%{_libdir}/libfzclient-private-%{version}.so
%{_libdir}/libfzclient-private.so
%{_libdir}/libfzclient-commonui-private-%{version}.so
%{_libdir}/libfzclient-commonui-private.so

#--------------------------------------------------------------------



%prep
%setup -q
%apply_patches

%build
export CXX=%{__cxx}
autoreconf -fi
%configure \
	--disable-static \
	--enable-locales \
	--disable-manualupdatecheck \
	--with-tinyxml=builtin \
	--with-wx-config=wx-config \
	--disable-autoupdatecheck
%make LIBS="-lpthread"

%install
%makeinstall_std

desktop-file-install --vendor='' \
	--dir=%{buildroot}%{_datadir}/applications \
	--add-category='GTK' \
	--add-category='X-MandrivaLinux-CrossDesktop'\
	%{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12684 |21mr|findbugs-3.0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global noupdatechecks_version 20140707gitcce19ac
%bcond_with texlive

Name:           findbugs
Version:        3.0.1
Release:        19
Summary:        Find bugs in Java code

License:        LGPLv2+
Group:          Development/Java
URL:            http://findbugs.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}-source.zip
Source1:        findbugs-ant
Source2:        findbugs-tools-README

Source3:        http://repo1.maven.org/maven2/com/google/code/findbugs/findbugs/3.0.1/findbugs-3.0.1.pom
Source4:        http://repo1.maven.org/maven2/com/google/code/findbugs/annotations/3.0.0/annotations-3.0.0.pom

# This archive contains the source for the noUpdateChecks plugin.
# It was created with:
#   $ git clone --bare https://code.google.com/p/findbugs
#   $ git --git-dir=findbugs.git archive --format tgz cce19ac plugins/noUpdateChecks -o noUpdateChecks-plugin-20140707gitcce19ac.tgz
Source5:        noUpdateChecks-plugin-%{noupdatechecks_version}.tgz

Source6:        http://repo1.maven.org/maven2/com/google/code/findbugs/findbugs-ant/3.0.0/findbugs-ant-3.0.0.pom

# This patch has not been submitted upstream, as it contains Fedora-specific
# changes.  It looks in /usr/share/java for jar files at compile time, instead
# of in findbugs' lib directory.
Patch0:         findbugs-build.patch

# Fedora-specific patch:
#  - Remove Class-Path entry from findbugs.jar manifest; use build-classpath
#    instead (#575632)
#  - Simplify shell fragment that determines findbugs_home (also fixes #848612)
Patch1:         findbugs-fedora.patch

# Fedora-specific patch to allow Ant task to work even though findbugs.jar has
# no Class-Path attribute in its manifest (bug #1080682)
Patch2:         findbugs-ant-task-classpath.patch

Patch3:         findbugs-manual.patch

# Port to dom4j 2.0
Patch4:         findbugs-dom4j.patch

Patch5:         findbugs-javadoc.patch

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  findbugs-bcel
BuildRequires:  ant
BuildRequires:  docbook-style-xsl
BuildRequires:  apache-commons-lang
BuildRequires:  dom4j
BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  jaxen
BuildRequires:  jcip-annotations
BuildRequires:  jdepend
BuildRequires:  jFormatString
BuildRequires:  jpackage-utils
BuildRequires:  jsr-305
BuildRequires:  junit
BuildRequires:  make
BuildRequires:  objectweb-asm
BuildRequires:  perl-interpreter
BuildRequires:  perl-generators
BuildRequires:  texlive-latex
BuildRequires:  texlive-latex.bin
BuildRequires:  texlive-preprint
BuildRequires:  xsltproc

# Add temporary dependency on javapackages-local, for %%add_maven_depmap macro
# See https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject.org/thread/R3KZ7VI5DPCMCELFIVJQ4AXB2WQED35C/
BuildRequires:  javapackages-local

# For generating HTML version of manual using xsltproc
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  docbook-style-xsl

Requires:       findbugs-bcel
Requires:       apache-commons-lang
Requires:       dom4j
Requires:       java >= 1:1.6.0
Requires:       jaxen
Requires:       jcip-annotations
Requires:       jFormatString
Requires:       jpackage-utils
Requires:       jsr-305
Requires:       junit
Requires:       objectweb-asm

%description
Findbugs is a program which uses static analysis to look for bugs in Java code.
It can check for null pointer exceptions, multithreaded code errors, and other
bugs.

%package -n ant-findbugs
Summary:        Ant task for findbugs
Requires:       %{name} = %{version}-%{release}
Requires:       ant

%description -n ant-findbugs
This package defines an ant task for findbugs for easy integration of findbugs
into your ant-controlled project.

%package javadoc
Summary:        Javadoc documentation for findbugs

%description javadoc
Javadoc documentation for findbugs.

%package tools
Summary:        Addon tools for findbugs
Requires:       %{name} = %{version}-%{release}
Requires:       junit

%description tools
This package contains additional tools for use with findbugs.  See
README.fedora for more information.

%prep
%setup -q
%setup -a 5
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

cp -p %{SOURCE2} README.fedora

# Make sure we don't accidentally use any existing JAR files
rm -f lib/*.jar

# Get rid of code for Mac OS X that depends on a jar from Apple
rm -f src/gui/edu/umd/cs/findbugs/gui2/OSXAdapter.java
%pom_remove_dep com.apple:AppleJavaExtensions %{SOURCE3}

%build
# Build the class files and docs
ant docs build

# Build the javadocs
ant apiJavadoc

%if %{with texlive}
# Build the architecture PDF
pushd design/architecture
make depend
make
popd
%endif

# Package up the tools
pushd build/classes
jar cf ../../lib/findbugs-tools.jar edu/umd/cs/findbugs/tools
popd

# Build the noUpdateChecks plugin
pushd plugins/noUpdateChecks
ant plugin-jar
popd

%install
# Install the jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p lib/annotations.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-annotations.jar
cp -p lib/%{name}-tools.jar $RPM_BUILD_ROOT%{_javadir}/%{name}-tools.jar
cp -p lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

# Install the ant task
mkdir -p $RPM_BUILD_ROOT%{_javadir}/ant
cp -p lib/%{name}-ant.jar $RPM_BUILD_ROOT%{_javadir}/ant/ant-%{name}.jar
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/%{name}

# Install the javadocs
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
cp -a apiJavaDoc $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# Install the scripts
mkdir -p $RPM_BUILD_ROOT%{_bindir}
for f in $(find bin -maxdepth 1 -type f \! -name '*.bat' \! -name '*.ico'); do
  cp -p $f $RPM_BUILD_ROOT%{_bindir}
done

# Install the shared files
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -a etc plugin $RPM_BUILD_ROOT%{_datadir}/%{name}

# Install the noUpdateChecks plugin
cp -p plugins/noUpdateChecks/build/noUpdateChecks.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/plugin

# Create /usr/share/findbugs/lib directory containing symlinks to required JARs (bug #1080682)
# List is based on the Class-Path attribute in etc/MANIFEST-findbugs.MF
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
for i in findbugs findbugs-bcel dom4j jaxen objectweb-asm/asm-all jsr-305 \
  jFormatString apache-commons-lang; do
    ln -s %{_javadir}/$i.jar $RPM_BUILD_ROOT%{_datadir}/%{name}/lib
done

# Remove now unnecessary build-only manual files so %%doc doesn't get them
rm -f build/doc/manual*.xml build/doc/manual*.xsl

# Install poms
mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
sed -i 's/3\.0\.0/3\.0\.1/g' %{SOURCE4} %{SOURCE6}

#cp %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
# From https://build.opensuse.org/request/show/733942
# Fix building Gradle (rhbz#1657836)
# https://bugzilla.redhat.com/show_bug.cgi?id=1657836
cp %{SOURCE3} JPP-%{name}.pom
%pom_remove_parent JPP-%{name}.pom
cp JPP-%{name}.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

cp %{SOURCE4} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}-annotations.pom
cp %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.ant-ant-%{name}.pom

# Add depmaps
%add_maven_depmap -a net.sourceforge.findbugs:findbugs JPP-%{name}.pom %{name}.jar
%add_maven_depmap -a net.sourceforge.findbugs:annotations JPP-%{name}-annotations.pom %{name}-annotations.jar
%add_maven_depmap -a net.sourceforge.findbugs:findbugs-ant JPP.ant-ant-%{name}.pom ant/ant-findbugs.jar -f ant

%pretrans javadoc -p <lua>
path = "%{_javadocdir}/%{name}"
st = posix.stat(path)
if st and st.type == "link" then
  os.remove(path)
end

%files -f .mfiles
%doc licenses/LICENSE.txt design/DecouplingFromBCEL.txt design/VisitingAndCaching.txt
%doc README.txt "design/eclipse findbugs plugin features.sxw"
%if %{with texlive}
%doc design/architecture/architecture.pdf build/doc
%endif
%{_bindir}/*
%{_datadir}/%{name}

%files -n ant-findbugs -f .mfiles-ant
%doc licenses/LICENSE.txt
%config(noreplace) %{_sysconfdir}/ant.d/%{name}

%files javadoc
%{_javadocdir}/*

%files tools
%doc licenses/LICENSE.txt README.fedora
%{_javadir}/findbugs-tools.jar


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12685 |21mr|findbugs-bcel-6.0-0.15.20140707svn1547656
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This is a snapshot of the BCEL trunk for FindBugs 3.0.

%global findbugsver 20140707svn1547656

Name:           findbugs-bcel
Version:        6.0
Release:        0.15.%{findbugsver}
Summary:        Byte Code Engineering Library for FindBugs

License:        ASL 2.0
URL:            http://commons.apache.org/proper/commons-bcel/

# This archive was created with:
#   $ svn export http://svn.apache.org/repos/asf/commons/proper/bcel/trunk -r 1547656 bcel-6.0
#   $ tar -zcf bcel-20140707svn1547656.tgz bcel-6.0
Source0:        bcel-%{findbugsver}.tgz
Source1:        http://central.maven.org/maven2/com/google/code/findbugs/bcel-findbugs/%{version}/bcel-findbugs-%{version}.pom

# Add temporary dependency on javapackages-local, for %%add_maven_depmap macro
# See https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject.org/thread/R3KZ7VI5DPCMCELFIVJQ4AXB2WQED35C/
BuildRequires:  javapackages-local

BuildRequires:  java-devel, jpackage-utils
Requires:       java-headless, jpackage-utils

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a snapshot of Apache's Byte Code Engineering Library (BCEL) for use
with FindBugs 3.0.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n bcel-%{version}

%build
mkdir classes
find src/main/java -type f -name '*.java' | \
xargs javac -g -d classes -source 1.5 -encoding ISO8859-1
cd classes
jar cf findbugs-bcel.jar org
cd ..

mkdir javadoc
find src/main/java -type f -name '*.java' | xargs javadoc -sourcepath src/main/java \
  -classpath classes -source 1.5 -encoding ISO8859-1 -d javadoc -Xdoclint:none

%install

mkdir -p $RPM_BUILD_ROOT%{_javadir}
install -d -m 755 %{buildroot}%{_mavenpomdir}
cp -p classes/findbugs-bcel.jar $RPM_BUILD_ROOT%{_javadir}
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "com.google.code.findbugs:bcel"

mkdir -p $RPM_BUILD_ROOT%{_javadocdir}
cp -a javadoc $RPM_BUILD_ROOT%{_javadocdir}/findbugs-bcel

%pretrans javadoc -p <lua>
path = "%{_javadocdir}/%{name}"
st = posix.stat(path)
if st and st.type == "link" then
  os.remove(path)
end

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt README.txt

%files javadoc
%doc LICENSE.txt NOTICE.txt
%{_javadocdir}/findbugs-bcel*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12686 |21mr|findutils-4.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	The GNU versions of find utilities (find and xargs)
Name:		findutils
Version:	4.8.0
Release:	2
License:	GPLv3
Group:		File tools
Url:		http://www.gnu.org/software/findutils/findutils.html
Source0:	https://ftp.gnu.org/pub/gnu/findutils/%{name}-%{version}.tar.xz

# do not build locate
# https://src.fedoraproject.org/rpms/findutils/raw/master/f/findutils-4.5.15-no-locate.patch
Patch1:		findutils-4.8.0-no-locate.patch
# add a new option -xautofs to find to not descend into directories on autofs file systems
Patch3:		https://src.fedoraproject.org/rpms/findutils/raw/master/f/findutils-4.4.2-xautofs.patch
# eliminate compile-time warnings
Patch4:		https://src.fedoraproject.org/rpms/findutils/raw/master/f/findutils-4.5.13-warnings.patch
# test-lock: disable the rwlock test
Patch10:	https://src.fedoraproject.org/rpms/findutils/raw/master/f/findutils-4.6.0-test-lock.patch
# implement the -noleaf option of find (#1252549)
Patch12:	https://src.fedoraproject.org/rpms/findutils/raw/master/f/findutils-4.6.0-leaf-opt.patch

BuildRequires:	texinfo
BuildRequires:	gettext-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif

%description
The findutils package contains programs which will help you locate
files on your system.  The find utility searches through a hierarchy
of directories looking for files which match a certain set of criteria
(such as a filename pattern). The xargs utility builds and executes
command lines from standard input arguments (usually lists of file
names generated by the find command).

You should install findutils because it includes tools that are very
useful for finding things on your system.

%files -f %{name}.lang
%doc NEWS README
/bin/find
%{_bindir}/find
%{_bindir}/oldfind
%{_bindir}/xargs
%{_mandir}/man1/find.1*
%{_mandir}/man1/xargs.1*
%{_infodir}/find*

%prep
%autosetup -p1
rm -rf locate

%build
# Don't build or install locate because it conflicts with slocate,
# which is a secure version of locate.
sed -i '/^SUBDIRS/s/locate//' Makefile.in
libtoolize --copy --force
autoreconf -fiv

%serverbuild_hardened
%configure \
	--enable-leaf-optimisation \
	--enable-d_type-optimization \
	--with-packager="%{vendor}" \
%if %{with selinux}
       --with-selinux \
%endif
	--with-packager-bug-reports="%{bugurl}" \
	--with-fts

%make_build

%check
# fails because they need py2
make check

%install
%make_install

install -d %{buildroot}/bin
mv %{buildroot}%{_bindir}/find %{buildroot}/bin
ln -sf ../../bin/find %{buildroot}%{_bindir}/find
# (tpg) compat symlink
ln -sf ../../bin/find %{buildroot}%{_bindir}/oldfind

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12687 |21mr|finger-0.17-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The finger client
Name:		finger
Version:	0.17
Release:	23
License:	BSD
Group:		Networking/Other
Url:		http://www.ibiblio.org/pub/Linux/system/network/finger/
Source0:	http://www.ibiblio.org/pub/Linux/system/network/finger/bsd-finger-%{version}.tar.gz
Source1:	finger.socket
Source2:	finger@.service
# fedora patches
Patch1:		bsd-finger-0.16-pts.patch
Patch2:		bsd-finger-0.17-exact.patch
Patch3:		bsd-finger-0.16-allocbroken.patch
Patch4:		bsd-finger-0.17-rfc742.patch
Patch5:		bsd-finger-0.17-time.patch
Patch6:		bsd-finger-0.17-usagi-ipv6.patch
Patch7:		bsd-finger-0.17-typo.patch
Patch8:		bsd-finger-0.17-strip.patch
Patch9:		bsd-finger-0.17-utmp.patch
Patch10:	bsd-finger-wide-char-support5.patch
Patch11:	bsd-finger-0.17-init-realname.patch
Patch12:	bsd-finger-0.17-host-info.patch
Patch13:	bsd-finger-0.17-match_sigsegv.patch
Patch14:	bsd-finger-0.17-man_page_systemd.patch

# mandriva patches
Patch100:	bsd-finger-0.17-autotoolish.patch

%description
Finger is a utility which allows users to see information about system users
(login name, home directory, name, how long they've been logged in to the
system, etc.). The finger package includes a standard finger client.

You should install finger if you'd like to retreive finger information from
other systems.

%package	server
Summary:	The finger daemon
Group:		System/Servers

%description	server
Finger is a utility which allows users to see information about system users
(login name, home directory, name, how long they've been logged in to the
system, etc.). The finger-server package includes a standard finger server. The
server daemon (fingerd) runs from /etc/inetd.conf, which must be modified to
disable finger requests.

You should install finger-server if your system is used by multiple users and
you'd like finger information to be available.

%prep
%setup -qn bsd-finger-%{version}
%apply_patches

%build
%serverbuild_hardened

%configure \
	--enable-ipv6
%make

%install
install -m644 %{SOURCE1} -D %{buildroot}%{_unitdir}/finger.socket
install -m644 %{SOURCE2} -D %{buildroot}%{_unitdir}/finger@.service

%makeinstall_std

%files
%{_bindir}/finger
%{_mandir}/man1/finger.1*

%files server
%{_unitdir}/finger.socket
%{_unitdir}/finger@.service
%{_sbindir}/in.fingerd
%{_mandir}/man8/in.fingerd.8*
%{_mandir}/man8/fingerd.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12688 |21mr|fio-3.38-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A flexible I/O tester/benchmarker
Name:		fio
Version:	3.38
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://github.com/axboe/fio
#Source0:	http://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2
Source0:	https://github.com/axboe/fio/archive/refs/tags/%{name}-%{version}.tar.gz
Patch0:		fio-3.30-fio-version.patch
BuildRequires:	libaio-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)

%description
fio is an I/O tool meant to be used both for benchmark and 
stress/hardware verification.
It has support for 9 different types of I/O engines
(sync, mmap, libaio, posixaio, SG v3, splice, null, network, syslet),
I/O priorities (for newer Linux kernels), rate I/O, forked or threaded jobs,
and much more. It can work on block devices as well as files.
fio accepts job descriptions in a simple-to-understand text format.
Several example job files are included.
fio displays all sorts of I/O performance information.
It supports Linux, FreeBSD, and OpenSolaris.

%files
%license COPYING
%doc HOWTO.rst README.rst REPORTING-BUGS
%doc examples
%{_bindir}/fio
%{_bindir}/fio_generate_plots
%{_bindir}/fio_jsonplus_clat2csv
%{_bindir}/fio-btrace2fio
%{_bindir}/fio-dedupe
%{_bindir}/fio-genzipf
%{_bindir}/fio-histo-log-pctiles.py
%{_bindir}/fio-verify-state
%{_bindir}/fio2gnuplot
%{_bindir}/fiologparser.py
%{_bindir}/fiologparser_hist.py
%{_bindir}/genfio
%dir %{_datadir}/fio
%{_datadir}/fio/graph2D.gpm
%{_datadir}/fio/graph3D.gpm
%{_datadir}/fio/math.gpm
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n fio-fio-%{version}

%build
%setup_compile_flags
./configure \
	--prefix=%{_prefix} \
	--disable-optimizations
%make_build

%install
%make_install
mkdir -p %{buildroot}%{_datadir}
mv -v %{buildroot}%{_prefix}/man %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12689 |21mr|firebird-3.0.7.33374-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oversion 3.0.7
%define		major 2
%define		pkgversion Firebird-%{version}-0
%define		libfbclient %mklibname fbclient %{major}
%define		libfbclient_devel %mklibname fbclient -d

# Rosa has /bin/sh 
%global		__requires_exclude ^/usr/bin/sh$

Summary:	Firebird SQL database management system
Name:		firebird
Version:	%{oversion}.33374
Release:	3
Group:		Databases
License:	MPLv1.1-like
URL:		http://www.firebirdsql.org/
Source0:	https://github.com/FirebirdSQL/firebird/releases/download/R3_0_7/%{pkgversion}.tar.bz2
Source1:	firebird-logrotate
Source2:	README.ROSA
Source3:	firebird.conf
Source4:	fb_config

# from OpenSuse
Patch101:	add-pkgconfig-files.patch
Patch103:	Provide-sized-global-delete-operators-when-compiled.patch

# from Debian to be sent upstream
Patch201:	obsolete-syslogd.target.patch
Patch202:	honour-buildflags.patch
Patch203:	no-copy-from-icu.patch
Patch205:	cloop-honour-build-flags.patch

BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	tommath-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	icu-devel
BuildRequires:	pkgconfig(libedit)
BuildRequires:	gcc-c++
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconfig(atomic_ops)
BuildRequires:	chrpath
BuildRequires:	pkgconfig(zlib)
BuildRequires:	procmail
BuildRequires:	sed

Requires(post):		systemd
Requires(pre):		rpm-helper
Requires(postun):	rpm-helper

Requires:	%{libfbclient} = %{EVRD}
Requires:	libib-util = %{EVRD}
Requires:	%{name}-utils = %{EVRD}

Obsoletes:	firebird-arch < 3.0
Obsoletes:	firebird-filesystem < 3.0
Obsoletes:	firebird-server-common < 3.0
Obsoletes:	firebird-classic < 3.0
Obsoletes:	firebird-classic-common < 3.0
Obsoletes:	firebird-server-classic < 3.0
Obsoletes:	firebird-server-superserver < 3.0
Obsoletes:	firebird-superclassic < 3.0
Obsoletes:	firebird-superserver < 3.0
Conflicts:	firebird-arch < 3.0
Conflicts:	firebird-filesystem < 3.0
Conflicts:	firebird-server-common < 3.0
Conflicts:	firebird-classic < 3.0
Conflicts:	firebird-classic-common < 3.0
Conflicts:	firebird-server-classic < 3.0
Conflicts:	firebird-server-superserver < 3.0
Conflicts:	firebird-superclassic < 3.0
Conflicts:	firebird-superserver < 3.0

%description
Firebird is a relational database offering many ANSI SQL standard
features that runs on Linux, Windows, and a variety of Unix platforms.
Firebird offers excellent concurrency, high performance, and powerful
language support for stored procedures and triggers. It has been used
in production systems, under a variety of names, since 1981.

%files
%{_docdir}/%{name}/IDPLicense.txt
%{_docdir}/%{name}/IPLicense.txt
%{_docdir}/%{name}/README.ROSA
%{_bindir}/fbtracemgr
%{_sbindir}/firebird
%{_sbindir}/fbguard
%{_sbindir}/fb_lock_print
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/databases.conf
%config(noreplace) %{_sysconfdir}/%{name}/fbtrace.conf
%config(noreplace) %{_sysconfdir}/%{name}/firebird.conf
%config(noreplace) %{_sysconfdir}/%{name}/plugins.conf
%dir %{_libdir}/%{name}
%dir %{_datadir}/%{name}
%{_libdir}/%{name}/intl
%{_libdir}/%{name}/plugins
%{_libdir}/%{name}/udf
%{_datadir}/%{name}/misc

%dir %attr(0755,%{name},%{name}) %{_localstatedir}/lib/%{name}
%dir %attr(0750,%{name},%{name}) %{_localstatedir}/lib/%{name}/secdb
%dir %attr(0750,%{name},%{name}) %{_localstatedir}/lib/%{name}/data
%dir %attr(0755,%{name},%{name}) %{_localstatedir}/lib/%{name}/system
%attr(0600,%{name},%{name}) %config(noreplace) %{_localstatedir}/lib/%{name}/secdb/security3.fdb
%attr(0644,%{name},%{name}) %{_localstatedir}/lib/%{name}/system/help.fdb
%attr(0644,%{name},%{name}) %{_localstatedir}/lib/%{name}/system/firebird.msg
%attr(0644,root,root) %{_tmpfilesdir}/firebird.conf 
%dir %{_localstatedir}/log/%{name}
%config(noreplace) %attr(0664,%{name},%{name})  %{_localstatedir}/log/%{name}/%{name}.log
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}

%defattr(0755,root,root,0755)
%{_unitdir}/%{name}-superserver.service

%pre
# Create the firebird user and group if it doesn't exist
%_pre_useradd %{name} %{_localstatedir}/lib/%{name}/data /sbin/nologin 

# Add gds_db to /etc/services if needed
FileName=/etc/services
newLine="gds_db 3050/tcp  # Firebird SQL Database Remote Protocol"
oldLine=`grep "^gds_db" $FileName`
if [ -z "$oldLine" ]; then
 echo $newLine >> $FileName
fi


%post
%tmpfiles_create %{name}
%_post_service %{name}-superserver

%postun
%_postun_userdel %{name}

%preun
%_preun_service %{name}-superserver 

#---------------------------------------------------------------------------

%package devel
Group:		Development/Databases
Requires:	%{name} = %{EVRD}
Summary:	UDF support library for Firebird SQL server

%description devel
This package is needed for development of client applications and user
defined functions (UDF) for Firebird SQL server.

Firebird is a relational database offering many ANSI SQL standard
features that runs on Linux, Windows, and a variety of Unix platforms.
Firebird offers excellent concurrency, high performance, and powerful
language support for stored procedures and triggers. It has been used
in production systems, under a variety of names, since 1981.

%files devel
%{_includedir}/*.h
%{_includedir}/%{name}
%{_libdir}/fb_config
%{_sbindir}/fb_config

#---------------------------------------------------------------------------

%package -n libib-util
Group:		System/Libraries
Summary:	Firebird SQL UDF support library

%description -n libib-util
libib_util contains utility functions used by
User-Defined Functions (UDF) for memory management etc.

Firebird is a relational database offering many ANSI SQL standard
features that runs on Linux, Windows, and a variety of Unix platforms.
Firebird offers excellent concurrency, high performance, and powerful
language support for stored procedures and triggers. It has been used
in production systems, under a variety of names, since 1981.

%files -n libib-util
%{_libdir}/libib_util.so

#---------------------------------------------------------------------------

%package -n %{libfbclient}
%define old_fbclient %mklibname fbclient 2.5
%define old_fbembed %mklibname fbembed 2.5
Group:		System/Libraries
Summary:	Firebird SQL server client library
Obsoletes:	%{old_fbclient} < %{EVRD}
Obsoletes:	%{old_fbembed} < %{EVRD}
Conflicts:	%{old_fbclient} < %{EVRD}
Conflicts:	%{old_fbembed} < %{EVRD}

%description -n %{libfbclient}
Shared client library for Firebird SQL server.

Firebird is a relational database offering many ANSI SQL standard
features that runs on Linux, Windows, and a variety of Unix platforms.
Firebird offers excellent concurrency, high performance, and powerful
language support for stored procedures and triggers. It has been used
in production systems, under a variety of names, since 1981.

%files -n %{libfbclient}
%{_libdir}/libfbclient.so.%{major}
%{_libdir}/libfbclient.so.%{oversion}

#---------------------------------------------------------------------------

%package -n %{libfbclient_devel}
Group:          System/Libraries
Summary:        Development libraries and headers for Firebird SQL server
Requires:       %{name}-devel = %{EVRD}
Requires:       %{libfbclient} = %{EVRD}

%description -n %{libfbclient_devel}
Development files for Firebird SQL server client library.

Firebird is a relational database offering many ANSI SQL standard
features that runs on Linux, Windows, and a variety of Unix platforms.
Firebird offers excellent concurrency, high performance, and powerful
language support for stored procedures and triggers. It has been used
in production systems, under a variety of names, since 1981.

%files -n %{libfbclient_devel}
%{_libdir}/libfbclient.so
%{_libdir}/pkgconfig/fbclient.pc

#---------------------------------------------------------------------------

%package doc
Group:		Databases
Requires:	%{name} = %{EVRD}
Summary:	Documentation for Firebird SQL server
BuildArch:      noarch

%description doc
Documentation for Firebird SQL server.

Firebird is a relational database offering many ANSI SQL standard
features that runs on Linux, Windows, and a variety of Unix platforms.
Firebird offers excellent concurrency, high performance, and powerful
language support for stored procedures and triggers. It has been used
in production systems, under a variety of names, since 1981.

%files doc
%{_docdir}/%{name}
%exclude %{_docdir}/%{name}/sample
%exclude %{_docdir}/%{name}/IDPLicense.txt
%exclude %{_docdir}/%{name}/IPLicense.txt
%exclude %{_docdir}/%{name}/README.ROSA

#---------------------------------------------------------------------------

%package utils
Group:		Databases
Requires:	%{libfbclient} = %{version}-%{release}
Summary:	Firebird SQL user utilities
Obsoletes:	firebird-utils-classic < 3.0
Conflicts:	firebird-utils-classic < 3.0
Obsoletes:	firebird-utils-common < 3.0
Conflicts:	firebird-utils-common < 3.0
Obsoletes:	firebird-utils-superserver < 3.0
Conflicts:	firebird-utils-superserver < 3.0

%description utils
Firebird SQL user utilities.

Firebird is a relational database offering many ANSI SQL standard
features that runs on Linux, Windows, and a variety of Unix platforms.
Firebird offers excellent concurrency, high performance, and powerful
language support for stored procedures and triggers. It has been used
in production systems, under a variety of names, since 1981.

%files utils
%{_bindir}/gstat-fb
%{_bindir}/fbsvcmgr
%{_bindir}/gbak
%{_bindir}/gfix
%{_bindir}/gpre
%{_bindir}/gsec
%{_bindir}/isql-fb
%{_bindir}/nbackup
%{_bindir}/qli
%{_bindir}/gsplit

#---------------------------------------------------------------------------

%package examples
Group:		Databases
Requires:	%{name}-doc = %{EVRD}
Summary:	Examples for Firebird SQL server
BuildArch:	noarch

%description examples
Examples for Firebird SQL server.

Firebird is a relational database offering many ANSI SQL standard
features that runs on Linux, Windows, and a variety of Unix platforms.
Firebird offers excellent concurrency, high performance, and powerful
language support for stored procedures and triggers. It has been used
in production systems, under a variety of names, since 1981.

%files examples
%{_docdir}/%{name}/sample
%attr(0660,%{name},%{name}) %{_localstatedir}/lib/%{name}/data/employee.fdb

#---------------------------------------------------------------------------

%prep
%setup -q -n %{pkgversion}
%patch101 -p1
%patch103 -p1
%patch201 -p1
%patch202 -p1
%patch203 -p1
%patch205 -p1

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="-std=c++14 ${CFLAGS} -fno-delete-null-pointer-checks"
NOCONFIGURE=1 ./autogen.sh
%configure --prefix=%{_prefix} \
  --disable-binreloc \
  --with-system-editline \
  --with-fbbin=%{_bindir} --with-fbsbin=%{_sbindir} \
  --with-fbconf=%{_sysconfdir}/%{name} \
  --with-fblib=%{_libdir} --with-fbinclude=%{_includedir} \
  --with-fbdoc=%{_defaultdocdir}/%{name} \
  --with-fbudf=%{_libdir}/%{name}/udf \
  --with-fbsample=%{_defaultdocdir}/%{name}/sample \
  --with-fbsample-db=%{_localstatedir}/lib/%{name}/data/ \
  --with-fbhelp=%{_localstatedir}/lib/%{name}/system/ \
  --with-fbintl=%{_libdir}/%{name}/intl \
  --with-fbmisc=%{_datadir}/%{name}/misc \
  --with-fbsecure-db=%{_localstatedir}/lib/%{name}/secdb/ \
  --with-fbmsg=%{_localstatedir}/lib/%{name}/system/ \
  --with-fblog=%{_localstatedir}/log/%{name} \
  --with-fbglock=%{_var}/run/%{name} \
  --with-fbplugins=%{_libdir}/%{name}/plugins

# Can't use %%make as it seems that sometimes parallel build is broken
make
cd gen
make -f Makefile.install buildRoot
chmod -R u+w buildroot%{_docdir}/%{name}

%install
chmod u+rw,a+rx gen/buildroot/usr/include/firebird/impl
cp -r gen/buildroot/* %{buildroot}/
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp -v gen/install/misc/*.pc %{buildroot}%{_libdir}/pkgconfig/

cd %{buildroot}
rm -vf .%{_sbindir}/*.sh
mv -v .%{_sbindir}/fb_config .%{_libdir}/
install -p -m 0755 %{SOURCE4} %{buildroot}%{_sbindir}/fb_config
rm -vf .%{_includedir}/perf.h
rm -vf .%{_libdir}/libicu*.so
chmod -R u+w .%{_docdir}/%{name}
rm -vf .%{_datadir}/%{name}/misc/firebird.init.*
rm -vf .%{_datadir}/%{name}/misc/firebird.xinetd
rm -vf .%{_datadir}/%{name}/misc/rc.config.firebird
mv -v .%{_sysconfdir}/%{name}/README .%{_sysconfdir}/%{name}/WhatsNew \
  .%{_docdir}/%{name}/
mv -v .%{_sysconfdir}/%{name}/IDPLicense.txt .%{_docdir}/%{name}/
mv -v .%{_sysconfdir}/%{name}/IPLicense.txt .%{_docdir}/%{name}/
install -p -m 0644 -D %{SOURCE2} .%{_docdir}/%{name}/README.ROSA
mv -v .%{_bindir}/gstat .%{_bindir}/gstat-fb
mv -v .%{_bindir}/isql .%{_bindir}/isql-fb

mkdir -p .%{_localstatedir}/log/%{name}
mkdir -p .%{_sysconfdir}/logrotate.d
echo 1 > .%{_localstatedir}/log/%{name}/%{name}.log
sed "s@%{name}.log@%{_localstatedir}/log/%{name}/%{name}.log@g" %{SOURCE1} > .%{_sysconfdir}/logrotate.d/%{name}

mkdir -p .%{_tmpfilesdir}
cp %{SOURCE3} .%{_tmpfilesdir}/

mkdir -p .%{_unitdir}
cp .%{_datadir}/%{name}/misc/%{name}-superserver.service .%{_unitdir}/%{name}-superserver.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12690 |21mr|firefox-133.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if 0%{?debug}
%define debug_package %{nil}
%endif
#
# WARNING, READ FIRST:
#
# This is a special package that needs special treatment. Due to the amount of
# security updates it needs, it's common to ship new upstream versions instead of patching.
# That means this package MUST be BUILDABLE for stable official releases.
# This also means only STABLE upstream releases, NO betas.
# This is a discussed topic. Please, do not flame it again.

%define major 133.0
%define ff_epoch 0
# (tpg) set version HERE !!!
%define realver %{major}
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}

# (tpg) MOZILLA_FIVE_HOME
%define mozillalibdir %{_libdir}/%{name}
%define pluginsdir %{_libdir}/mozilla/plugins

# this seems fragile, so require the exact version or later (#58754)
#%%define sqlite3_version %%(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)
%define nspr_version %(pkg-config --modversion nspr &>/dev/null && pkg-config --modversion nspr 2>/dev/null |sed -e 's!\.0!!' || echo 0)

# Requested 'nss >= 3.53.1' but version of NSS is 3.52.1
%if %{mdvver} == 202310
%bcond_without system_nss_nspr
%else
%bcond_with system_nss_nspr
%endif

# Firefox 61.0: ERROR: Only GCC 6.1 or newer is supported (found version 5.5.0).
%bcond_without clang
%bcond_with build_gcc

%if %{with clang}
%if %{mdvver} < 202310
%bcond_with system_llvm
%else
%bcond_without system_llvm
%endif
%endif

%define llvm_opt_ver llvm18
%define llvm_dir_path /opt/%{llvm_opt_ver}
%define clang_path %{llvm_dir_path}/bin
%ifarch %{x86_64} %{arm64}
%define linker lld
%else
%define linker %{nil}
%endif

%define use_bundled_cbindgen 1

# KDE integration
%bcond_with kde

# Do not make provides from plugins /usr/lib64/firefox/*.so
%global _privatelibs freeblpriv3.*|gkcodecs.*|ipcclientcerts.*|lgpllibs.*
%global _privatelibs %{_privatelibs}|mozavcodec.*|mozavutil.*|mozgtk.*
%global _privatelibs %{_privatelibs}|mozsandbox.*|mozsqlite3.*|mozwayland.*
%global _privatelibs %{_privatelibs}|nspr4.*|nss3.*|nssckbi.*|nssutil3.*
%global _privatelibs %{_privatelibs}|plc4.*|plds4.*|smime3.*|softokn3.*
%global _privatelibs %{_privatelibs}|ssl3.*|xul.*

%global __provides_exclude ^lib(%{_privatelibs}).so.++$
%global __requires_exclude ^lib(%{_privatelibs}).so.++$
%global __provides_exclude_from ^(%{_libdir}/%{name}/.*\\.so.*)$

%global debug 0

%global system_jpeg 1

%global system_libevent 1

%if %{mdvver} >= 202310
%global system_pixman 1
%else
%global system_pixman 0
%endif

%global system_zlib 1

%global system_ffi 1

%global system_av1 0

%if %{mdvver} >= 202310
%global system_libvpx 1
%else
%global system_libvpx 0
%endif

%global system_webp 1

%global pgo_build 0

%global toolkit_gtk3 1


Summary:	Next generation web browser
Name:		firefox
Version:	%{major}
Epoch:		%{ff_epoch}
Release:	1
License:	MPLv1+
Group:		Networking/WWW
Url:		http://www.mozilla.com/firefox/
Source0:	https://archive.mozilla.org/pub/firefox/releases/%{realver}/source/%{name}-%{realver}.source.tar.xz
Source1:	firefox.rpmlintrc
Source2:	ru@dictionaries.addons.mozilla.org.tar.bz2
Source3:	use_yandex_search_as_default.py
Source4:	%{name}.desktop
Source5:	MOZ_MAIN
Source6:	32dc5c21-98c7-4355-8603-398c9f5eec49
Source7:	firefox.cfg
Source9:	kde.js
Source10:	mozilla-api-key
Source11:	google-api-key
# for 2016.1
Source80:	loffice-libcxx-wrapper.sh
# Fedora
# https://github.com/eqrion/cbindgen/releases
# version 0.26.0
Source12:	cbindgen-vendor.tar.xz
Source13:	gen_cbindgen-vendor.sh
# To return Russian search services and messengers that firefox refused
Patch0:		yandex_search_engine_icon.patch
Patch1:		firefox-129.0.1-yandex.patch
# Patches for kde integration of FF
# http://www.rosenauer.org/hg/mozilla/summary
# https://build.opensuse.org/package/show/mozilla:Factory/MozillaFirefox
Patch11:	mozilla-kde.patch
Patch12:	firefox-kde.patch
# Fedora specific patches
# Unable to install addons from https pages
Patch215:	firefox-enable-addons.patch
Patch219:	mozilla-ntlm-full-path.patch
Patch301:	firefox-enable-vaapi.patch
# system AV1 patches (from Gentoo)
Patch800:        bmo-1559213-Support-system-av1.patch
Patch801:        bmo-1559213-fix-system-av1-libs.patch
ExclusiveArch:	%{x86_64} %{arm64}
BuildRequires:	gtk+2-devel
%if 0%{?toolkit_gtk3}
BuildRequires:	gtk+3-devel
%endif
BuildRequires:	rust
BuildRequires:	rustfmt
BuildRequires:	cargo
BuildRequires:	unzip
BuildRequires:	zip
%if %{with clang}
%if %{without system_llvm}
BuildRequires:  %{llvm_opt_ver}
%else
BuildRequires:	clang
BuildRequires:	clang-devel
BuildRequires:	lld
%endif
%endif
BuildRequires:	nasm
BuildRequires:	libatomic-devel
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
%if 0%{?system_jpeg}
BuildRequires:	jpeg-devel
%endif
%if 0%{?system_zlib}
BuildRequires:	zlib-devel
%endif
BuildRequires:	glib2-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	makedepend
BuildRequires:	nodejs
%if 0%{?system_pixman}
BuildRequires:	pixman-devel
%endif
%if %{with system_nss_nspr}
BuildRequires:	nss-devel >= 2:3.24
BuildRequires:	nss-static-devel
BuildRequires:	pkgconfig(nspr) >= 4.17
%endif
BuildRequires:	startup-notification-devel
BuildRequires:	dbus-glib-devel
%ifnarch %armx %mips
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	yasm >= 1.0.1
%endif
%if 0%{?system_ffi}
BuildRequires:	pkgconfig(libffi)
%endif
BuildRequires:	rootcerts >= 1:20110830.00
BuildRequires:	pkgconfig(xt)
%if 0%{?system_libevent}
BuildRequires:	pkgconfig(libevent)
%endif
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	wget
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(gl)
BuildRequires:	autoconf2.1
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(fontconfig)
%if 0%{?system_libvpx}
BuildRequires:	pkgconfig(vpx)
%endif
# webp
%if 0%{?system_webp}
BuildRequires:  pkgconfig(libwebp)
BuildRequires:  pkgconfig(libwebpdemux)
%endif
# use system av1 and aom
%if 0%{?system_av1}
BuildRequires:  pkgconfig(aom)
BuildRequires:  pkgconfig(dav1d)
%endif

Provides:	%{name} = %{EVRD}
Provides:	mozilla-firefox = %{EVRD}
Provides:	webclient

%if %{with system_nss_nspr}
Requires:	%{mklibname nss 3} >= 2:%{nss_version}
Requires:	%{mklibname nspr 4} >= 2:%{nspr_version}
%endif
Requires:	indexhtml
Requires:	xdg-utils
# fixes bug #42096
Requires:	mailcap
Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2
%if %{with kde}
%if %{mdvver} > 202115
Recommends: (kmozillahelper if plasma5-workspace)
%endif
%endif

%description
The award-winning Web browser is now faster, more secure, and fully
customizable to your online life. With Firefox(R), we've added powerful new
features that make your online experience even better. It is an 'open source'
product which is  freely available, and is acquiring a growing proportion of
international web browser usage.

Firefox claims to offer a more secure web browsing experience than other
products, with better protection against spyware and other Internet-based
security threats.  It includes all the standard features of a modern web
browser, like Internet searching, tracking recently visited sites, setting up
shortcuts to favourite sites, customising the software behaviour and so on.
Firefox also includes  features like 'tabbed browsing' (opening several web
sites as sections within the same window) and methods for controlling pop-up
windows, cookies and downloaded files.

%files
%doc AUTHORS CLOBBER LICENSE README.txt
%{_bindir}/%{name}
%{_bindir}/mozilla-firefox
%{_datadir}/applications/*.desktop
%{_datadir}/mozilla/extensions/%{firefox_appid}/
%{_iconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{mozillalibdir}*
%if %{without system_nss_nspr}
%exclude %{mozillalibdir}/libnssckbi.so
%endif
%dir %{_libdir}/mozilla
%dir %{_libdir}/mozilla/extensions
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
%dir %{pluginsdir}

#---------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
%if %{mdvver} > 201610
Conflicts:	%{_lib}xulrunner-devel
%endif

%description devel
Files and macros mainly for building Firefox extensions.

%files devel
%doc AUTHORS CLOBBER LICENSE README.txt
%{_rpmmacrodir}/*%{name}*
%if %{mdvver} > 201610
%{_datadir}/pkgconfig/mozilla-plugin.pc
%endif

#---------------------------------------------------------------------

%prep
%setup -q

%patch0 -p1
# script update search yandex
cp -av %{SOURCE6} ${PWD}
%{__python3} %{SOURCE3}

# Add search yandex and set by default
%patch1 -p1 -b .ya.ru

%if %{with kde}
## KDE INTEGRATION
%patch11 -p1
# declare identifier
sed -i '/nsKDEUtils.h/a #include "nsPrintfCString.h"' toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp
%patch12 -p1
%endif

# Fedora patches
%patch215 -p1 -b .addons
%patch219 -p1 -b .ntlm
%if %{with system_nss_nspr}
# needed to regenerate certdata.c
pushd security/nss/lib/ckfw/builtins
perl ./certdata.perl /etc/pki/tls/mozilla/certdata.txt
popd
%endif

%ifarch %{arm64}
sed -i -e "s|sys/sysctl.h|linux/sysctl.h|" media/ffvpx/libavutil/cpu.c
%endif
# use system av1
%if 0%{?system_av1}
%patch800 -p1 -b .system-av1
%patch801 -p1 -b .system-av1-fixup
%endif
cp %{SOURCE5} ${PWD}/.mozconfig

echo "ac_add_options --host=\"%{_host}\"" >> .mozconfig
echo "ac_add_options --prefix=\"%{_prefix}\"" >> .mozconfig
echo "ac_add_options --libdir=\"%{_libdir}\"" >> .mozconfig
%if 0%{?debug}
echo "ac_add_options --disable-debug" >> .mozconfig
echo "ac_add_options --disable-debug-symbols" >> .mozconfig
%endif
%ifarch aarch64
echo "ac_add_options --disable-elf-hack" >> .mozconfig
%endif
%if 0%{?toolkit_gtk3}
echo "ac_add_options --enable-default-toolkit=cairo-gtk3-x11-wayland" >> .mozconfig
%else
echo "ac_add_options --enable-default-toolkit=cairo-gtk2" >> .mozconfig
%endif
echo "ac_add_options --enable-linker=%{linker}" >> .mozconfig
echo "ac_add_options --enable-optimize=\"-g -O2\"" >> .mozconfig
echo "ac_add_options --with-google-location-service-api-keyfile=%{SOURCE11}" >> .mozconfig
echo "ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE11}" >> .mozconfig
echo "ac_add_options --with-mozilla-api-keyfile=%{SOURCE10}" >> .mozconfig
%if 0%{?system_jpeg}
echo "ac_add_options --with-system-jpeg" >> .mozconfig
%else
echo "ac_add_options --without-system-jpeg" >> .mozconfig
%endif
%if 0%{?system_libevent}
echo "ac_add_options --with-system-libevent" >> .mozconfig
%else
echo "ac_add_options --without-system-libevent" .mozconfig
%endif
%if 0%{?system_pixman}
echo "ac_add_options --enable-system-pixman" >> .mozconfig
%endif
%if %{with system_nss_nspr}
echo "ac_add_options --with-system-nspr" >> .mozconfig
echo "ac_add_options --with-system-nss" >> .mozconfig
%else
echo "ac_add_options --without-system-nspr" >> .mozconfig
echo "ac_add_options --without-system-nss" >> .mozconfig
%endif
%if 0%{?system_zlib}
echo "ac_add_options --with-system-zlib" >> .mozconfig
%endif
%if 0%{?system_ffi}
echo "ac_add_options --enable-system-ffi" >> .mozconfig
%endif
%if 0%{?system_av1}
echo "ac_add_options --with-system-av1" >> .mozconfig
%else
#echo "ac_add_options --without-system-av1" >> .mozconfig
%endif
%if 0%{?system_libvpx}
echo "ac_add_options --with-system-libvpx" >> .mozconfig
%else
echo "ac_add_options --without-system-libvpx" >> .mozconfig
%endif
%if 0%{?system_webp}
echo "ac_add_options --with-system-webp" >> .mozconfig
%else
echo "ac_add_options --without-system-webp" >> .mozconfig
%endif
echo "ac_add_options --enable-pulseaudio" >> .mozconfig

echo "ac_add_options --disable-lto" >> .mozconfig

%if 0%{?pgo_build}
echo "ac_add_options MOZ_PGO=1" >> .mozconfig
%endif

%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
cd my_rust_vendor
%{__tar} xf %{SOURCE12}
mkdir -p .cargo
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"

[source.vendored-sources]
directory = "`pwd`"
EOL

env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH
%endif
cd -

export RUSTFLAGS="-Cdebuginfo=0"

%if %{without build_gcc}
%if %{without system_llvm}
export PATH="%clang_path:$PATH"
export CC=%clang_path/clang
export CXX=%clang_path/clang++
export AR=%clang_path/llvm-ar
export NM=%clang_path/llvm-nm
export RANLIB=%clang_path/llvm-ranlib
export LLVM_PROFDATA=%clang_path/llvm-profdata
%else
export CC=clang
export CXX=clang++
export AR="%(which llvm-ar)"
export NM="%(which llvm-nm)"
export RANLIB="%(which llvm-ranlib)"
export LLVM_PROFDATA="%(which llvm-profdata)"
%endif
%else
export CC=%{__cc}
export CXX=%{__cxx}
export AR="%(which gcc-ar)"
export NM="%(which gcc-nm)"
export RANLIB="%(which gcc-ranlib)"
CFLAGS="$CFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
CXXFLAGS="$CXXFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
export CFLAGS
export CXXFLAGS
%endif

# force memory efficient linking and ets
%if %{with clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

export MOZ_SERVICES_SYNC="1"
export STRIP=/bin/true

# This is needed since Firefox 68, otherwise each language installation
# (and Firefox 68 from Mozilla binaries compared to old Firefox binaries
# from ROSA) will have their own profile (and users are missing bookmarks
# and such).
export MOZ_LEGACY_PROFILES="1"

# This mach command requires /builddir/.mozbuild/_virtualenvs/mach/bin/python,
# which wasn't found on the system!
# Consider running 'mach bootstrap' or 'mach create-mach-environment'
# to create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use
# the system Python installation over a virtualenv.
export MACH_USE_SYSTEM_PYTHON=1

export MOZCONFIG=${PWD}/.mozconfig

./mach build

%install
# Make sure locale works for langpacks
cat > ${PWD}/obj/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
EOF

make -C ${PWD}/obj/browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0

# Copy files to buildroot
mkdir -p %{buildroot}%{mozillalibdir}
cp -rf ${PWD}/obj/dist/firefox/* %{buildroot}%{mozillalibdir}

mkdir -p  %{buildroot}%{_bindir}


%if 0
cat > %{buildroot}%{_bindir}/firefox <<'EOF'
#!/bin/sh
if [ "${XDG_SESSION_TYPE:-}" = wayland ]; then
export MOZ_ENABLE_WAYLAND=1
	exec %{mozillalibdir}/firefox "$@"
else
export MOZ_DISABLE_WAYLAND=1
	exec %{mozillalibdir}/firefox "$@"
fi
EOF
chmod +x %{buildroot}%{_bindir}/firefox
%endif

ln -s %{mozillalibdir}/firefox \
	%{buildroot}%{_bindir}/
ln -s %{mozillalibdir}/firefox \
	%{buildroot}%{_bindir}/mozilla-firefox

%if 0
pushd %{buildroot}%{_bindir}
	ln -sf firefox mozilla-firefox
popd
%endif

mkdir -p %{buildroot}%{mozillalibdir}/defaults/preferences/
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/defaults/preferences/kde.js

# Create and own %%_libdir/mozilla/plugins & firefox extensions directories
mkdir -p %{buildroot}%{pluginsdir}
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
# added ru dictionaries
tar xjf %{SOURCE2} -C %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}/

# (tpg) desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop

# (tpg) icons
for i in 16 22 24 32 48 256; do
# (cg) Not all icon sizes are installed with make install, so just redo it here.
install -m 644 browser/branding/official/default$i.png %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default$i.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png ;
done
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default48.png %{buildroot}%{_liconsdir}/%{name}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default32.png %{buildroot}%{_iconsdir}/%{name}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}%{_miconsdir}/%{name}.png

# exclusions
rm -f %{buildroot}%{mozillalibdir}/README.txt
rm -f %{buildroot}%{mozillalibdir}/removed-files
rm -f %{buildroot}%{mozillalibdir}/precomplete

install -m 644 %{SOURCE7} %{buildroot}%{mozillalibdir}/firefox.cfg

cat << EOF >> %{buildroot}%{mozillalibdir}/defaults/pref/config-prefs.js
pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift
EOF

# display icon for Firefox button
mkdir -p %{buildroot}%{mozillalibdir}/defaults/profile/chrome
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/profile/chrome/userChrome.css
#appmenu-toolbar-button {
	list-style-image: url("chrome://branding/content/icon16.png");
}
EOF

%if %{mdvver} > 201610
# Add stuff to build a plugin to -devel
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}/%{_datadir}/pkgconfig
cat <<EOF >%{buildroot}/%{_datadir}/pkgconfig/mozilla-plugin.pc
Name: Mozilla Plug-In API
Description: Mozilla Plug-In API
Version: %{version}
Cflags: -I%{_includedir} -DXP_UNIX
EOF
%endif

cat <<FIN >macro
# Macros from %{name} package
%%firefox_major		%{major}
%%firefox_epoch		%{ff_epoch}
%%firefox_version	%{major}
%%firefox_mozillapath	%{mozillalibdir}
%%firefox_pluginsdir	%{pluginsdir}
%%firefox_appid		\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%%firefox_extdir	%%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
FIN
%install_macro %{name} macro

mkdir -p %{buildroot}%{_docdir}/%{name}




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12691 |21mr|firefox-esr102-102.15.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No build in 62.0.2
%if %{mdvver} <= 201905
%ifarch %{ix86}
%define debug_package %{nil}
 %endif
%endif

#
# WARNING, READ FIRST:
#
# This is a special package that needs special treatment. Due to the amount of
# security updates it needs, it's common to ship new upstream versions instead of patching.
# That means this package MUST be BUILDABLE for stable official releases.
# This also means only STABLE upstream releases, NO betas.
# This is a discussed topic. Please, do not flame it again.

%ifarch %ix86
%define _host i686-unknown-linux-gnu
%endif

%define oname firefox
%define major 102.15.1
%define ff_epoch 0
# (tpg) set version HERE !!!
%define realver %{major}
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}

# (tpg) MOZILLA_FIVE_HOME
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=10129
%define mozillalibdir %{_libdir}/%{oname}-esr
%define pluginsdir %{_libdir}/mozilla/plugins

# this seems fragile, so require the exact version or later (#58754)
#%%define sqlite3_version %%(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)
%define nspr_version %(pkg-config --modversion nspr &>/dev/null && pkg-config --modversion nspr 2>/dev/null |sed -e 's!\.0!!' || echo 0)

%define toolkit_gtk3 1

# Firefox 61.0: ERROR: Only GCC 6.1 or newer is supported (found version 5.5.0).
%bcond_without clang

%bcond_with system_llvm
%define llvm_opt_ver llvm15
%define llvm_dir_path /opt/%{llvm_opt_ver}
%define clang_path %{llvm_dir_path}/bin

%define xpi 1
%define languages ach af an ar ast az be bg bn br bs ca cak ca-valencia cs cy da de dsb el en-CA en-GB eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL ga-IE gd gl gn gu-IN he hi-IN hr hsb hu hy-AM ia id is it ja ka kab kk km kn ko lij lt lv mk mr ms my nb-NO ne-NP nl nn-NO oc pa-IN pl pt-BR pt-PT rm ro ru sco si sk sl son sq sr sv-SE szl ta te th tl tr trs uk ur uz vi xh zh-CN zh-TW
%define objdir obj

%define use_bundled_cbindgen 1

# Requested 'nss >= 3.53.1' but version of NSS is 3.52.1
%bcond_with system_nss_nspr

# Do not make provides from plugins /usr/lib64/firefox/*.so
%global __provides_exclude_from ^%{_libdir}/firefox.*/.*\\.so$
# Do not require filtered out provides
# To inspect them:
# for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then echo ; echo -- $i ; LC_ALL=C  ldd $i | grep found ; fi; done
# To make this list:
# ( for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then LC_ALL=C ldd $i | grep found | awk '{print $1}' | awk -F '\\.so' '{print $1}' ; fi; done ) | sort -u | tr '\n' '|'
%global __requires_exclude ^(liblgpllibs|libmozavutil|libmozgtk|libmozsandbox|libmozsqlite3|libmozwayland|libnspr4|libnss3|libnssutil3|libplc4|libplds4|libsmime3|libssl3|libxul)\\.so.*$

%global optflags $(echo "%optflags" | sed -e "s/-O2/-O3/g")
%global ldflags $(echo "%ldflags" | sed -e "s/-O2/-O3/g")

Summary:	Next generation web browser
Name:		firefox-esr102
Version:	%{major}
Epoch:		%{ff_epoch}
Release:	1
License:	MPLv1+
Group:		Networking/WWW
Url:		http://www.mozilla.com/firefox/
Source0:	https://archive.mozilla.org/pub/firefox/releases/%{version}esr/source/%{oname}-%{version}esr.source.tar.xz
Source1:	firefox.rpmlintrc
Source2:	ru@dictionaries.addons.mozilla.org.tar.bz2
Source3:	moz_main
Source4:	%{oname}.desktop
Source6:	l10n.tar.xz
Source7:	firefox.cfg
Source9:	kde.js
Source8:	use_yandex_search_as_default.py
Source10:	mozilla-api-key
Source11:	google-api-key
# for 2016.1
Source80:	loffice-libcxx-wrapper.sh
# Fedora
# https://github.com/eqrion/cbindgen/releases
# version 0.19.0
Source12:	cbindgen-vendor.tar.xz
Source13:	gen_cbindgen-vendor.sh
# To return Russian search services and messengers that firefox refused
Patch1:		0001-Change-yandex-clids.patch
Patch2:		fix-build-gcc13.patch
# Patches for kde integration of FF 
# http://www.rosenauer.org/hg/mozilla/summary
Patch11:	mozilla-kde.patch
Patch12:	firefox-kde.patch

# Fedora specific patches
# Unable to install addons from https pages
Patch215:	firefox-enable-addons.patch

Patch219:	mozilla-ntlm-full-path.patch

Patch300:	firefox-56.0-build-error.patch

BuildRequires:	gtk+2-devel
%if %{toolkit_gtk3}
BuildRequires:	gtk+3-devel
%endif
BuildRequires:	rust
BuildRequires:	cargo
BuildRequires:	unzip
BuildRequires:	zip
%if %{without system_llvm}
BuildRequires:  %{llvm_opt_ver}
%else
BuildRequires:	clang
BuildRequires:	clang-devel
%if %{with clang} 
BuildRequires:	lld
 %endif
%endif
BuildRequires:	nasm
BuildRequires:	libatomic-devel
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	jpeg-devel
BuildRequires:	zlib-devel
BuildRequires:	glib2-devel
%if %{mdvver} >= 202110
BuildRequires:	pkgconfig(python2)
%else
BuildRequires:	pkgconfig(python)
BuildRequires:	python38
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	makedepend
BuildRequires:	nodejs
%if %{with system_nss_nspr}
BuildRequires:	nss-devel >= 2:3.24
BuildRequires:	nss-static-devel
BuildRequires:	pkgconfig(nspr) >= 4.17
%endif
BuildRequires:	startup-notification-devel
BuildRequires:	dbus-glib-devel
%ifnarch %armx %mips
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	yasm >= 1.0.1
%endif
%ifarch %arm
BuildRequires:	libffi-devel
%endif
BuildRequires:	rootcerts >= 1:20110830.00
BuildRequires:	pkgconfig(xt)
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	wget
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(gl)
BuildRequires:	autoconf2.1
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(fontconfig)
%if %{mdvver} < 202110
BuildRequires:	stdc++-gcc10-devel
%endif

Provides:	mozilla-firefox = %{EVRD}
Provides:	webclient

%if %{with system_nss_nspr}
Requires:	%{mklibname nss 3} >= 2:%{nss_version}
Requires:	%{mklibname nspr 4} >= 2:%{nspr_version}
%endif
Requires:	indexhtml
Requires:	xdg-utils
# fixes bug #42096
Requires:	mailcap
Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2

Conflicts:	firefox
Conflicts:	firefox-esr24
Conflicts:	firefox-esr45
Conflicts:	firefox-esr52
Conflicts:	firefox-esr60
Conflicts:	firefox-esr68
Obsoletes:	firefox-esr78 < %{EVRD}
Conflicts:	firefox-esr < %{EVRD}
Obsoletes:	firefox-esr91 < %{EVRD}

%description
The award-winning Web browser is now faster, more secure, and fully
customizable to your online life. With Firefox(R), we've added powerful new
features that make your online experience even better. It is an 'open source'
product which is  freely available, and is acquiring a growing proportion of
international web browser usage.

Firefox claims to offer a more secure web browsing experience than other
products, with better protection against spyware and other Internet-based
security threats.  It includes all the standard features of a modern web
browser, like Internet searching, tracking recently visited sites, setting up
shortcuts to favourite sites, customising the software behaviour and so on.
Firefox also includes  features like 'tabbed browsing' (opening several web
sites as sections within the same window) and methods for controlling pop-up
windows, cookies and downloaded files.

%files
%doc AUTHORS CLOBBER LICENSE README.txt
%{_bindir}/%{oname}
%{_bindir}/mozilla-firefox
%{_datadir}/applications/*.desktop
%{_datadir}/mozilla/extensions/%{firefox_appid}/ru@dictionaries.addons.mozilla.org.xpi
%{_iconsdir}/%{oname}.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_liconsdir}/%{oname}.png
%{_miconsdir}/%{oname}.png
%{mozillalibdir}*
%dir %{_libdir}/mozilla
%dir %{_libdir}/mozilla/extensions
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
%dir %{pluginsdir}

#---------------------------------------------------------------------
%if %{xpi}

%define package_l10n() %{expand:

%package %{1} 
Summary:	%{2} localization for Firefox
License:	GPL
Group:		System/Internationalization
Url:		http://www.mozilla.org/products/firefox/
Requires:	%{name}%{_isa} = %{EVRD}
Obsoletes:      firefox-esr78-%{1} < %{EVRD}
Obsoletes:      firefox-esr91-%{1} < %{EVRD}
Recommends:     locales-%{3}

%description %{1}
%{1} localization for Firefox web browser

%files %{1}
%{_datadir}/mozilla/extensions/%{firefox_appid}/langpack-%{2}@%{oname}.mozilla.org.xpi
}

%(for ORIG in `echo %{languages}`; do \
E=$(echo $ORIG | sed -e "s/-/_/g"); \
D=$(echo $E | tr -d [=_=] | tr -d [:upper:] | sed -e "s/valencia//"); \
echo "%{package_l10n "${E}" "${ORIG}" "${D}"}";done)

%endif
#---------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Conflicts:	firefox-devel
Conflicts:	firefox-esr-devel
Conflicts:	firefox-esr24-devel
Conflicts:	firefox-esr45-devel
Conflicts:	firefox-esr52-devel
Conflicts:	firefox-esr60-devel
Conflicts:	firefox-esr68-devel
Conflicts:	firefox-esr78-devel
Conflicts:	firefox-esr91-devel

%description devel
Files and macros mainly for building Firefox extensions.

%files devel
%doc AUTHORS CLOBBER LICENSE README.txt
%{_rpmmacrodir}/*%{name}*

#---------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%patch1 -p1
%{__python3} %{SOURCE8} services/settings/dumps/main/search-config.json

# gcc13 build
%if %{mdvver} > 202110
%patch2 -p1
%endif

## KDE INTEGRATION
%patch11 -p1 -b .kdepatch

# declare identifier 
sed -i '/nsKDEUtils.h/a #include "nsPrintfCString.h"' toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp

%patch12 -p1 -b .kdemoz

# Fedora patches
%patch215 -p1 -b .addons
%patch219 -p1 -b .ntlm

%if %{with system_nss_nspr}
%patch300 -p1
%endif

pushd js/src
autoconf-2.13
popd
autoconf-2.13

%if %{with system_nss_nspr}
# needed to regenerate certdata.c
pushd security/nss/lib/ckfw/builtins
perl ./certdata.perl /etc/pki/tls/mozilla/certdata.txt
popd
%endif

%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
cd my_rust_vendor
%{__tar} xf %{SOURCE12}
mkdir -p .cargo
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"
 
[source.vendored-sources]
directory = "`pwd`"
EOL
 
env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH
%endif
cd -

export RUSTFLAGS="-Cdebuginfo=0"

%if %{mdvver} < 202110
sed -i "s/python3/python3.8/g" configure.in
sed -i "s/python3/python3.8/g" mach
export PYTHON3=%{_prefix}/libexec/python3.8
export PATH=%{_prefix}/libexec:$PATH
%endif

%if %{with clang}
%define linker lld

%if %{without system_llvm}
export PATH="%clang_path:$PATH"
export CC=%clang_path/clang
export CXX=%clang_path/clang++
%else
export CC=clang
export CXX=clang++
%endif

%else

%define linker gold
export CC="%{__cc}"
export CXX="%{__cxx}"
CFLAGS="$CFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
CXXFLAGS="$CXXFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
export CFLAGS
export CXXFLAGS
%endif


cp -rf %{S:3} mozconfig

echo "mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags}" >> mozconfig
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/%{objdir}" >> mozconfig
echo "ac_add_options --disable-crashreporter" >> mozconfig
%if %{mdvver} <= 201905
%ifarch %{ix86}
echo "ac_add_options --disable-debug-symbols" >> mozconfig
%endif
 %endif
%ifnarch aarch64
echo "ac_add_options --disable-elf-hack" >> mozconfig
%endif
%if %{toolkit_gtk3}
echo "ac_add_options --enable-default-toolkit=cairo-gtk3-x11-wayland" >> mozconfig
%endif
echo "ac_add_options --host=%{_host}" >> mozconfig
echo "ac_add_options --libdir=%{_libdir}" >> mozconfig
echo "ac_add_options --prefix=%{_prefix}" >> mozconfig
# Uncomment the following line if you wish to use Google's geolocaton API
# (needed for use with saved maps with Google Maps)
echo "ac_add_options --with-google-location-service-api-keyfile=%{SOURCE11}" >> mozconfig
echo "ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE11}" >> mozconfig
# Uncomment the following line if you wish to use Mozilla Location Service
echo "ac_add_options --with-mozilla-api-keyfile=%{SOURCE10}" >> mozconfig
%if %{with system_nss_nspr}
echo "ac_add_options --with-system-nspr" >> mozconfig
echo "ac_add_options --with-system-nss" >> mozconfig
%endif
echo "ac_add_options --without-wasm-sandboxed-libraries" >> mozconfig

export MOZCONFIG=`pwd`/mozconfig

# force memory efficient linking and ets
%if %{with clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

export MOZ_SERVICES_SYNC="1"
export STRIP=/bin/true

# This is needed since Firefox 68, otherwise each language installation
# (and Firefox 68 from Mozilla binaries compared to old Firefox binaries
# from ROSA) will have their own profile (and users are missing bookmarks
# and such).
export MOZ_LEGACY_PROFILES="1"

# This mach command requires /builddir/.mozbuild/_virtualenvs/mach/bin/python,
# which wasn't found on the system!
# Consider running 'mach bootstrap' or 'mach create-mach-environment'
# to create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use
# the system Python installation over a virtualenv.
export MACH_USE_SYSTEM_PYTHON=1

./mach build

%install
# Make sure locale works for langpacks
cat > `pwd`/obj/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
EOF

make -C `pwd`/obj/browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0

# Copy files to buildroot
mkdir -p %{buildroot}%{mozillalibdir}
cp -rf `pwd`/obj/dist/firefox/* %{buildroot}%{mozillalibdir}

mkdir -p  %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/firefox <<'EOF'
#!/bin/sh
if [ "${XDG_SESSION_TYPE:-}" = wayland ]; then
export MOZ_ENABLE_WAYLAND=1
	exec %{mozillalibdir}/firefox
else
export MOZ_DISABLE_WAYLAND=1
	exec %{mozillalibdir}/firefox
fi
EOF
chmod +x %{buildroot}%{_bindir}/firefox

pushd %{buildroot}%{_bindir}
	ln -sf firefox mozilla-firefox
popd
mkdir -p %{buildroot}%{mozillalibdir}/defaults/preferences/
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/defaults/preferences/kde.js

# Create and own %%_libdir/mozilla/plugins & firefox extensions directories
mkdir -p %{buildroot}%{pluginsdir}
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
# added ru dictionaries
tar xjf %{SOURCE2} -C %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}/

# (tpg) desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{oname}.desktop

# (tpg) icons
for i in 16 22 24 32 48 256; do
# (cg) Not all icon sizes are installed with make install, so just redo it here.
install -m 644 browser/branding/official/default$i.png %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default$i.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{oname}.png ;
done
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default48.png %{buildroot}%{_liconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default32.png %{buildroot}%{_iconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}%{_miconsdir}/%{oname}.png

# exclusions
rm -f %{buildroot}%{mozillalibdir}/README.txt
rm -f %{buildroot}%{mozillalibdir}/removed-files
rm -f %{buildroot}%{mozillalibdir}/precomplete

install -m 644 %{SOURCE7} %{buildroot}%{mozillalibdir}/firefox.cfg

cat << EOF >> %{buildroot}%{mozillalibdir}/defaults/pref/config-prefs.js
pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift
EOF

# display icon for Firefox button
mkdir -p %{buildroot}%{mozillalibdir}/defaults/profile/chrome
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/profile/chrome/userChrome.css
#appmenu-toolbar-button {
	list-style-image: url("chrome://branding/content/icon16.png");
}
EOF

cat <<FIN >macro
# Macros from %{name} package
%%firefox_major		%{major}
%%firefox_epoch		%{ff_epoch}
%%firefox_version	%{major}
%%firefox_mozillapath	%{mozillalibdir}
%%firefox_pluginsdir	%{pluginsdir}
%%firefox_appid		\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%%firefox_extdir	%%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
FIN
%install_macro %{name} macro

mkdir -p %{buildroot}%{_docdir}/%{name}

%if %{xpi}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
tar xf %{SOURCE6} -C %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
rm -fvr %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}/langpack-en-US@firefox.mozilla.org.xpi
%endif

%post

if [ -x %{_bindir}/%{oname} ]; then
LANG="${LANG:-}"

if [[ "$LANG" =~ ^ru(|_.*).UTF-8$ ]] ; then
	echo "Firefox-esr был обновлен до новой мажорной версии."
	echo "Сделайте резервную копию профиля (~/.mozilla) перед первым запуском."
else
	echo "Firefox-esr has been upgraded to a new major version."
	echo "Make a backup of your profile (~/.mozilla) before running the new version."
fi
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12692 |21mr|firefox-esr115-115.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No build in 62.0.2
%ifarch %{ix86}
%define debug_package %{nil}
%endif

#
# WARNING, READ FIRST:
#
# This is a special package that needs special treatment. Due to the amount of
# security updates it needs, it's common to ship new upstream versions instead of patching.
# That means this package MUST be BUILDABLE for stable official releases.
# This also means only STABLE upstream releases, NO betas.
# This is a discussed topic. Please, do not flame it again.

%ifarch %ix86
%define _host i686-unknown-linux-gnu
%endif

%define oname firefox
%define major 115.18.0
%define ff_epoch 0
# (tpg) set version HERE !!!
%define realver %{major}
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}

# (tpg) MOZILLA_FIVE_HOME
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=10129
%define mozillalibdir %{_libdir}/%{oname}-esr
%define pluginsdir %{_libdir}/mozilla/plugins

# this seems fragile, so require the exact version or later (#58754)
#%%define sqlite3_version %%(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)
%define nspr_version %(pkg-config --modversion nspr &>/dev/null && pkg-config --modversion nspr 2>/dev/null |sed -e 's!\.0!!' || echo 0)

%define toolkit_gtk3 1

# Firefox 61.0: ERROR: Only GCC 6.1 or newer is supported (found version 5.5.0).
%bcond_without clang

%bcond_with system_llvm
%define llvm_opt_ver llvm15
%define llvm_dir_path /opt/%{llvm_opt_ver}
%define clang_path %{llvm_dir_path}/bin

%define xpi 1
%define languages ach af an ar ast az be bg bn br bs ca cak ca-valencia cs cy da de dsb el en-CA en-GB eo es-AR es-CL es-ES es-MX et eu fa ff fi fr fy-NL fur ga-IE gd gl gn gu-IN he hi-IN hr hsb hu hy-AM ia id is it ja ka kab kk km kn ko lij lt lv mk mr ms my nb-NO ne-NP nl nn-NO oc pa-IN pl pt-BR pt-PT rm ro ru sc sco si sk sl son sq sr sv-SE szl ta te tg th tl tr trs uk ur uz vi xh zh-CN zh-TW
%define del_languages ca-valencia en-US
%define objdir obj

%define use_bundled_cbindgen 1

# Requested 'nss >= 3.53.1' but version of NSS is 3.52.1
%bcond_with system_nss_nspr

# Do not make provides from plugins /usr/lib64/firefox/*.so
%global __provides_exclude_from ^%{_libdir}/firefox.*/.*\\.so$
# Do not require filtered out provides
# To inspect them:
# for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then echo ; echo -- $i ; LC_ALL=C  ldd $i | grep found ; fi; done
# To make this list:
# ( for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then LC_ALL=C ldd $i | grep found | awk '{print $1}' | awk -F '\\.so' '{print $1}' ; fi; done ) | sort -u | tr '\n' '|'
%global __requires_exclude ^(liblgpllibs|libmozavutil|libmozgtk|libmozsandbox|libmozsqlite3|libmozwayland|libnspr4|libnss3|libnssutil3|libplc4|libplds4|libsmime3|libssl3|libxul)\\.so.*$

%global optflags $(echo "%optflags" | sed -e "s/-O2/-O3/g")
%global ldflags $(echo "%ldflags" | sed -e "s/-O2/-O3/g")

Summary:	Next generation web browser
Name:		firefox-esr115
Version:	%{major}
Epoch:		%{ff_epoch}
Release:	1
License:	MPLv1+
Group:		Networking/WWW
Url:		http://www.mozilla.com/firefox/
Source0:	https://archive.mozilla.org/pub/firefox/releases/%{version}esr/source/%{oname}-%{version}esr.source.tar.xz
Source1:	firefox.rpmlintrc
Source2:	ru@dictionaries.addons.mozilla.org.tar.bz2
Source3:	moz_main
Source4:	%{oname}.desktop
Source6:	l10n.tar.xz
Source7:	firefox.cfg
Source9:	kde.js
Source8:	use_yandex_search_as_default.py
Source10:	mozilla-api-key
Source11:	google-api-key
# for 2016.1
Source80:	loffice-libcxx-wrapper.sh
# Fedora
# https://github.com/eqrion/cbindgen/releases
# version 0.24.3
Source12:	cbindgen-vendor.tar.xz
Source13:	gen_cbindgen-vendor.sh
# To return Russian search services and messengers that firefox refused
Patch1:		0001-Change-yandex-clids.patch
Patch2:		fix-build-gcc13.patch
# Patches for kde integration of FF 
# http://www.rosenauer.org/hg/mozilla/summary
Patch11:	mozilla-kde.patch
Patch12:	firefox-kde.patch

# Fedora specific patches
# Unable to install addons from https pages
Patch215:	firefox-enable-addons.patch

Patch219:	mozilla-ntlm-full-path.patch

Patch300:	firefox-56.0-build-error.patch

BuildRequires:	gtk+2-devel
%if %{toolkit_gtk3}
BuildRequires:	gtk+3-devel
%endif
BuildRequires:	rust
BuildRequires:	cargo
BuildRequires:	unzip
BuildRequires:	zip
%if %{without system_llvm}
BuildRequires:  %{llvm_opt_ver}
%else
BuildRequires:	clang
BuildRequires:	clang-devel
%if %{with clang} 
BuildRequires:	lld
 %endif
%endif
BuildRequires:	nasm
BuildRequires:	libatomic-devel
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	jpeg-devel
BuildRequires:	zlib-devel
BuildRequires:	glib2-devel
%if %{mdvver} >= 202110
BuildRequires:	pkgconfig(python3)
%else
BuildRequires:	pkgconfig(python)
BuildRequires:	python38
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	makedepend
BuildRequires:	nodejs
%if %{with system_nss_nspr}
BuildRequires:	nss-devel >= 2:3.24
BuildRequires:	nss-static-devel
BuildRequires:	pkgconfig(nspr) >= 4.17
%endif
BuildRequires:	startup-notification-devel
BuildRequires:	dbus-glib-devel
%ifnarch %armx %mips
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	yasm >= 1.0.1
%endif
%ifarch %arm
BuildRequires:	libffi-devel
%endif
BuildRequires:	rootcerts >= 1:20110830.00
BuildRequires:	pkgconfig(xt)
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	wget
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(gl)
BuildRequires:	autoconf2.1
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(fontconfig)
%if %{mdvver} < 202110
BuildRequires:	stdc++-gcc10-devel
%endif

Provides:	mozilla-firefox = %{EVRD}
Provides:	webclient

%if %{with system_nss_nspr}
Requires:	%{mklibname nss 3} >= 2:%{nss_version}
Requires:	%{mklibname nspr 4} >= 2:%{nspr_version}
%endif
Requires:	indexhtml
Requires:	xdg-utils
# fixes bug #42096
Requires:	mailcap
Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2

Conflicts:	firefox
Conflicts:	firefox-esr24
Conflicts:	firefox-esr45
Conflicts:	firefox-esr52
Conflicts:	firefox-esr60
Conflicts:	firefox-esr68
Conflicts:	firefox-esr78 < %{EVRD}
Conflicts:	firefox-esr < %{EVRD}
conflicts:	firefox-esr91 < %{EVRD}
Conflicts:	firefox-esr102 < %{EVRD}

%description
The award-winning Web browser is now faster, more secure, and fully
customizable to your online life. With Firefox(R), we've added powerful new
features that make your online experience even better. It is an 'open source'
product which is  freely available, and is acquiring a growing proportion of
international web browser usage.

Firefox claims to offer a more secure web browsing experience than other
products, with better protection against spyware and other Internet-based
security threats.  It includes all the standard features of a modern web
browser, like Internet searching, tracking recently visited sites, setting up
shortcuts to favourite sites, customising the software behaviour and so on.
Firefox also includes  features like 'tabbed browsing' (opening several web
sites as sections within the same window) and methods for controlling pop-up
windows, cookies and downloaded files.

%files
%doc AUTHORS CLOBBER LICENSE README.txt
%{_bindir}/%{oname}
%{_bindir}/mozilla-firefox
%{_datadir}/applications/*.desktop
%{_datadir}/mozilla/extensions/%{firefox_appid}/ru@dictionaries.addons.mozilla.org.xpi
%{_iconsdir}/%{oname}.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_liconsdir}/%{oname}.png
%{_miconsdir}/%{oname}.png
%{mozillalibdir}*
%if %{without system_nss_nspr}
%exclude %{mozillalibdir}/libnssckbi.so
%endif
%dir %{_libdir}/mozilla
%dir %{_libdir}/mozilla/extensions
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
%dir %{pluginsdir}

#---------------------------------------------------------------------
%if %{xpi}

%define package_l10n() %{expand:

%package %{1} 
Summary:	%{2} localization for Firefox
License:	GPL
Group:		System/Internationalization
Url:		http://www.mozilla.org/products/firefox/
Requires:	%{name}%{_isa} = %{EVRD}
Conflicts:      firefox-esr78-%{1} < %{EVRD}
Conflicts:      firefox-esr91-%{1} < %{EVRD}
Conflicts:      firefox-esr102-%{1} < %{EVRD}
Recommends:     locales-%{3}

%description %{1}
%{1} localization for Firefox web browser

%files %{1}
%{_datadir}/mozilla/extensions/%{firefox_appid}/langpack-%{2}@%{oname}.mozilla.org.xpi
}

%(for ORIG in `echo %{languages}`; do \
E=$(echo $ORIG | sed -e "s/-/_/g"); \
D=$(echo $E | tr -d [=_=] | tr -d [:upper:] | sed -e "s/valencia//"); \
echo "%{package_l10n "${E}" "${ORIG}" "${D}"}";done)

%endif
#---------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Conflicts:	firefox-devel
Conflicts:	firefox-esr-devel
Conflicts:	firefox-esr24-devel
Conflicts:	firefox-esr45-devel
Conflicts:	firefox-esr52-devel
Conflicts:	firefox-esr60-devel
Conflicts:	firefox-esr68-devel
Conflicts:	firefox-esr78-devel
Conflicts:	firefox-esr91-devel
Conflicts:	firefox-esr102-devel

%description devel
Files and macros mainly for building Firefox extensions.

%files devel
%doc AUTHORS CLOBBER LICENSE README.txt
%{_rpmmacrodir}/*%{name}*

#---------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%patch1 -p1
%{__python3} %{SOURCE8} services/settings/dumps/main/search-config.json

# gcc13 build
%if %{mdvver} > 202115
%patch2 -p1
%endif

## KDE INTEGRATION
%patch11 -p1 -b .kdepatch

# declare identifier 
sed -i '/nsKDEUtils.h/a #include "nsPrintfCString.h"' toolkit/system/unixproxy/nsUnixSystemProxySettings.cpp

%patch12 -p1 -b .kdemoz

# Fedora patches
%patch215 -p1 -b .addons
%patch219 -p1 -b .ntlm

%if %{with system_nss_nspr}
%patch300 -p1
%endif

%if %{with system_nss_nspr}
# needed to regenerate certdata.c
pushd security/nss/lib/ckfw/builtins
perl ./certdata.perl /etc/pki/tls/mozilla/certdata.txt
popd
%endif

%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
cd my_rust_vendor
%{__tar} xf %{SOURCE12}
mkdir -p .cargo
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"
 
[source.vendored-sources]
directory = "`pwd`"
EOL
 
env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH
%endif
cd -

export RUSTFLAGS="-Cdebuginfo=0"

%if %{mdvver} < 202110
sed -i "s/python3/python3.8/g" configure.in
sed -i "s/python3/python3.8/g" mach
export PYTHON3=%{_prefix}/libexec/python3.8
export PATH=%{_prefix}/libexec:$PATH
%endif

%if %{with clang}
%define linker lld

%if %{without system_llvm}
export PATH="%clang_path:$PATH"
export CC=%clang_path/clang
export CXX=%clang_path/clang++
%else
export CC=clang
export CXX=clang++
%endif

%else

%define linker gold
export CC="%{__cc}"
export CXX="%{__cxx}"
CFLAGS="$CFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
CXXFLAGS="$CXXFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
export CFLAGS
export CXXFLAGS
%endif


cp -rf %{S:3} mozconfig

echo "mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags}" >> mozconfig
echo "mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/%{objdir}" >> mozconfig
echo "ac_add_options --disable-crashreporter" >> mozconfig
%ifarch %{ix86}
echo "ac_add_options --disable-debug-symbols" >> mozconfig
%endif
echo "ac_add_options --disable-elf-hack" >> mozconfig
%if %{toolkit_gtk3}
echo "ac_add_options --enable-default-toolkit=cairo-gtk3-x11-wayland" >> mozconfig
%endif
echo "ac_add_options --host=%{_host}" >> mozconfig
echo "ac_add_options --libdir=%{_libdir}" >> mozconfig
echo "ac_add_options --prefix=%{_prefix}" >> mozconfig
# Uncomment the following line if you wish to use Google's geolocaton API
# (needed for use with saved maps with Google Maps)
echo "ac_add_options --with-google-location-service-api-keyfile=%{SOURCE11}" >> mozconfig
echo "ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE11}" >> mozconfig
# Uncomment the following line if you wish to use Mozilla Location Service
echo "ac_add_options --with-mozilla-api-keyfile=%{SOURCE10}" >> mozconfig
%if %{with system_nss_nspr}
echo "ac_add_options --with-system-nspr" >> mozconfig
echo "ac_add_options --with-system-nss" >> mozconfig
%endif
echo "ac_add_options --without-wasm-sandboxed-libraries" >> mozconfig

export MOZCONFIG=`pwd`/mozconfig

# force memory efficient linking and ets
%if %{with clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

export MOZ_SERVICES_SYNC="1"
export STRIP=/bin/true

# This is needed since Firefox 68, otherwise each language installation
# (and Firefox 68 from Mozilla binaries compared to old Firefox binaries
# from ROSA) will have their own profile (and users are missing bookmarks
# and such).
export MOZ_LEGACY_PROFILES="1"

# This mach command requires /builddir/.mozbuild/_virtualenvs/mach/bin/python,
# which wasn't found on the system!
# Consider running 'mach bootstrap' or 'mach create-mach-environment'
# to create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use
# the system Python installation over a virtualenv.
export MACH_USE_SYSTEM_PYTHON=1

./mach build

%install
# Make sure locale works for langpacks
cat > `pwd`/obj/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
EOF

make -C `pwd`/obj/browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0

# Copy files to buildroot
mkdir -p %{buildroot}%{mozillalibdir}
cp -rf `pwd`/obj/dist/firefox/* %{buildroot}%{mozillalibdir}

mkdir -p  %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/firefox <<'EOF'
#!/bin/sh
if [ "${XDG_SESSION_TYPE:-}" = wayland ]; then
export MOZ_ENABLE_WAYLAND=1
	exec %{mozillalibdir}/firefox
else
export MOZ_DISABLE_WAYLAND=1
	exec %{mozillalibdir}/firefox
fi
EOF
chmod +x %{buildroot}%{_bindir}/firefox

pushd %{buildroot}%{_bindir}
	ln -sf firefox mozilla-firefox
popd
mkdir -p %{buildroot}%{mozillalibdir}/defaults/preferences/
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/defaults/preferences/kde.js

# Create and own %%_libdir/mozilla/plugins & firefox extensions directories
mkdir -p %{buildroot}%{pluginsdir}
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
# added ru dictionaries
tar xjf %{SOURCE2} -C %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}/

# (tpg) desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{oname}.desktop

# (tpg) icons
for i in 16 22 24 32 48 256; do
# (cg) Not all icon sizes are installed with make install, so just redo it here.
install -m 644 browser/branding/official/default$i.png %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default$i.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{oname}.png ;
done
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default48.png %{buildroot}%{_liconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default32.png %{buildroot}%{_iconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}%{_miconsdir}/%{oname}.png

# exclusions
rm -f %{buildroot}%{mozillalibdir}/README.txt
rm -f %{buildroot}%{mozillalibdir}/removed-files
rm -f %{buildroot}%{mozillalibdir}/precomplete

install -m 644 %{SOURCE7} %{buildroot}%{mozillalibdir}/firefox.cfg

cat << EOF >> %{buildroot}%{mozillalibdir}/defaults/pref/config-prefs.js
pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift
EOF

# display icon for Firefox button
mkdir -p %{buildroot}%{mozillalibdir}/defaults/profile/chrome
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/profile/chrome/userChrome.css
#appmenu-toolbar-button {
	list-style-image: url("chrome://branding/content/icon16.png");
}
EOF

cat <<FIN >macro
# Macros from %{name} package
%%firefox_major		%{major}
%%firefox_epoch		%{ff_epoch}
%%firefox_version	%{major}
%%firefox_mozillapath	%{mozillalibdir}
%%firefox_pluginsdir	%{pluginsdir}
%%firefox_appid		\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%%firefox_extdir	%%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
FIN
%install_macro %{name} macro

mkdir -p %{buildroot}%{_docdir}/%{name}

%if %{xpi}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
tar xf %{SOURCE6} -C %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
rm -vr %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}/langpack-en-US@firefox.mozilla.org.xpi
%endif

%post

if [ -x %{_bindir}/%{oname} ]; then
LANG="${LANG:-}"

if [[ "$LANG" =~ ^ru(|_.*).UTF-8$ ]] ; then
	echo "Firefox-esr был обновлен до новой мажорной версии."
	echo "Сделайте резервную копию профиля (~/.mozilla) перед первым запуском."
else
	echo "Firefox-esr has been upgraded to a new major version."
	echo "Make a backup of your profile (~/.mozilla) before running the new version."
fi
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12693 |21mr|firefox-esr52-52.9.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# WARNING, READ FIRST:
#
# This is a special package that needs special treatment. Due to the amount of
# security updates it needs, it's common to ship new upstream versions instead of patching.
# That means this package MUST be BUILDABLE for stable official releases.
# This also means only STABLE upstream releases, NO betas.
# This is a discussed topic. Please, do not flame it again.

%define oname firefox
%define major 52.9.0
%define ff_epoch 0
# (tpg) set version HERE !!!
%define realver %{major}
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}

# (tpg) MOZILLA_FIVE_HOME
%define mozillalibdir %{_libdir}/%{name}-%{major}
%define pluginsdir %{_libdir}/mozilla/plugins

# this seems fragile, so require the exact version or later (#58754)
#%%define sqlite3_version %%(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)
%define nspr_version 4.25

%define _use_syshunspell 0

%define update_channel release

%define toolkit_gtk3 1

%if %{mdvver} < 201910
%bcond_without clang
%else
%bcond_with clang
%endif

Summary:	Firefox ESR 52.x web browser
Name:		%{oname}-esr52
Version:	%{major}
Epoch:		%{ff_epoch}
Release:	7
License:	MPLv1+
Group:		Networking/WWW
Url:		http://www.mozilla.com/firefox/
Source0:	https://archive.mozilla.org/pub/firefox/releases/%{version}esr/source/%{oname}-%{version}esr.source.tar.xz
Source1:	firefox-esr52.rpmlintrc
Source4:	%{oname}.desktop
Source9:	kde.js
Patch0:		include-sysctl.patch
Patch1:		firefox-52.9.0esr-gcc11.patch
Patch2:		seamonkey-2.53.7.1-CLEANUP.patch
# Patches for kde integration of FF 
# http://www.rosenauer.org/hg/mozilla/summary
Patch11:	firefox-kde.patch
Patch12:	mozilla-kde.patch
Patch13:	mozilla-kde-background.patch
Patch34:	xulrunner_nojit.patch
Patch35:	firefox-37-build-with-time-independent-uuids.patch
Patch37:	firefox-50.1-fix-glibc-check.patch

# Fedora specific patches
# Unable to install addons from https pages
Patch204:	rhbz-966424.patch
Patch215:	firefox-enable-addons.patch
Patch219:	rhbz-1173156.patch

BuildRequires:	gtk+2-devel
%if %{toolkit_gtk3}
BuildRequires:	gtk+3-devel
%endif
BuildRequires:	unzip
BuildRequires:	zip
%if %{with clang}
BuildRequires:	clang
BuildRequires:	clang-devel
BuildRequires:	llvm-devel
BuildRequires:	lld
%endif
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	jpeg-devel
BuildRequires:	zlib-devel
BuildRequires:	glib2-devel
BuildRequires:	python2-devel
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	makedepend
BuildRequires:	nss-devel >= 2:3.24
BuildRequires:	nss-static-devel
BuildRequires:	pkgconfig(nspr)
BuildRequires:	startup-notification-devel
BuildRequires:	dbus-glib-devel
BuildRequires:	pkgconfig(libevent)
%ifnarch %arm %mips
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	yasm >= 1.0.1
%endif
%ifarch %arm
BuildRequires:	libffi-devel
%endif
BuildRequires:	rootcerts >= 1:20110830.00
BuildRequires:	pkgconfig(xt)
%if %_use_syshunspell
BuildRequires:	hunspell-devel
%endif
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	wget
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(gl)
BuildRequires:	autoconf2.1
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(fontconfig)
Requires:	%{mklibname nss 3} >= 2:%{nss_version}
Requires:	%{mklibname nspr 4} >= 2:%{nspr_version}
Requires:	indexhtml
# /etc/sysconfig/system
Requires(post):	mandriva-release
Requires:	xdg-utils
# fixes bug #42096
Requires:	mailcap
%if %_use_syshunspell
Recommends:	hunspell-en
%endif
Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2

Conflicts:	firefox
Conflicts:	firefox-esr24
Conflicts:	firefox-esr45
Conflicts:	firefox-esr < %{EVRD}

%description
The award-winning Web browser is now faster, more secure, and fully
customizable to your online life. With Firefox(R), we've added powerful new
features that make your online experience even better. It is an 'open source'
product which is  freely available, and is acquiring a growing proportion of
international web browser usage.

Firefox claims to offer a more secure web browsing experience than other
products, with better protection against spyware and other Internet-based
security threats.  It includes all the standard features of a modern web
browser, like Internet searching, tracking recently visited sites, setting up
shortcuts to favourite sites, customising the software behaviour and so on.
Firefox also includes  features like 'tabbed browsing' (opening several web
sites as sections within the same window) and methods for controlling pop-up
windows, cookies and downloaded files.

%files
%{_bindir}/%{oname}
%{_bindir}/mozilla-firefox
%{_iconsdir}/hicolor/*/apps/*.png
%{_miconsdir}/%{oname}.png
%{_iconsdir}/%{oname}.png
%{_liconsdir}/%{oname}.png
%{_datadir}/applications/*.desktop
%{_libdir}/%{name}-%{major}*
%dir %{_libdir}/mozilla
%dir %{_libdir}/mozilla/extensions
%dir %{pluginsdir}
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
%dir %{_datadir}/mozilla/extensions/%{firefox_appid}

#---------------------------------------------------------------------

%package devel
Summary:	Development files for %{oname}
Group:		Development/Other
Conflicts:	firefox-devel
Conflicts:	firefox-esr-devel
Conflicts:	firefox-esr24-devel
Conflicts:	firefox-esr45-devel

%description devel
Files and macros mainly for building Firefox extensions.

%files devel
%{_rpmmacrodir}/*%{name}*

#---------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}esr

%patch0 -p1
%patch1 -p1
%patch2 -p1
## KDE INTEGRATION
%patch11 -p1 -b .kdepatch
%patch12 -p1 -b .kdemoz
%patch13 -p1 -b .kdebackground

%ifarch %{arm}
%if "%{_target_cpu}" != "armv7l"
%patch34 -p1
%endif
%endif
%patch35 -p1
%patch37 -p1

# Fedora patches
%patch204 -p2 -b .966424
%patch215 -p1 -b .addons
%patch219 -p2 -b .rhbz-1173156

pushd js/src
autoconf-2.13
popd
autoconf-2.13

# needed to regenerate certdata.c
pushd security/nss/lib/ckfw/builtins
perl ./certdata.perl /etc/pki/tls/mozilla/certdata.txt
popd

sed -i 's!static inline pid_t gettid()!static inline pid_t _nm_gettid(void)!g' tools/profiler/core/platform.h

%build
%if %{with clang}
export CC=clang
export CXX=clang++
%else
CFLAGS="$CFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
CXXFLAGS="$CFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
export CFLAGS
export CXXFLAGS
%endif

export MOZCONFIG=`pwd`/mozconfig
cat << EOF > $MOZCONFIG
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
ac_add_options --host=%{_host}
ac_add_options --target=%{_target_platform}
ac_add_options --enable-release
ac_add_options --enable-ipc-fuzzer
ac_add_options --prefix="%{_prefix}"
ac_add_options --libdir="%{_libdir}"
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
ac_add_options --with-system-zlib
ac_add_options --with-system-jpeg
ac_add_options --with-pthreads
ac_add_options --with-system-libevent
ac_add_options --without-system-libvpx
ac_add_options --with-system-bz2
ac_add_options --enable-gio
ac_add_options --disable-updater
ac_add_options --disable-tests
%if %{toolkit_gtk3}
ac_add_options --enable-default-toolkit=cairo-gtk3
%else
ac_add_options --enable-default-toolkit=cairo-gtk2
%endif
ac_add_options --enable-official-branding
ac_add_options --disable-system-sqlite
ac_add_options --enable-startup-notification
ac_add_options --with-distribution-id=org.rosa
ac_add_options --disable-crashreporter
ac_add_options --disable-optimize

EOF

perl -p -i -e 's|\-0|\-9|g' config/make-jars.pl

# force memory efficient linking and ets
%if %{with clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

%make -f client.mk build

%install
# Make sure locale works for langpacks
cat > %{_builddir}/obj/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
EOF

make -C %{_builddir}/obj/browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0

# Copy files to buildroot
mkdir -p %{buildroot}%{mozillalibdir}
cp -rf %{_builddir}/obj/dist/firefox/* %{buildroot}%{mozillalibdir}

mkdir -p  %{buildroot}%{_bindir}
ln -sf %{mozillalibdir}/firefox %{buildroot}%{_bindir}/firefox
pushd %{buildroot}%{_bindir}
	ln -sf firefox mozilla-firefox
popd
mkdir -p %{buildroot}%{mozillalibdir}/defaults/preferences/
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/defaults/preferences/kde.js

# Create and own %%_libdir/mozilla/plugins & firefox extensions directories
mkdir -p %{buildroot}%{pluginsdir}
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}

# (tpg) desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{oname}.desktop

# (tpg) icons
cp %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}/%{mozillalibdir}/browser/icons/
for i in 16 22 24 32 48 256; do
# (cg) Not all icon sizes are installed with make install, so just redo it here.
install -m 644 browser/branding/official/default$i.png %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default$i.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{oname}.png ;
done
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default48.png %{buildroot}%{_liconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default32.png %{buildroot}%{_iconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}%{_miconsdir}/%{oname}.png

# exclusions
rm -f %{buildroot}%{mozillalibdir}/README.txt
rm -f %{buildroot}%{mozillalibdir}/removed-files
rm -f %{buildroot}%{mozillalibdir}/precomplete

cat << EOF >> %{buildroot}%{mozillalibdir}/firefox.cfg
#code
pref("browser.rights.3.shown", false);
defaultPref("browser.startup.homepage", "data:text/html,browser.startup.homepage=file:///usr/share/doc/HTML/index.html");
pref("startup.homepage_welcome_url", "file:///usr/share/branding-configs/fresh/first_startup.html");
pref("browser.shell.checkDefaultBrowser", false);
pref("browser.ctrlTab.previews", true);
pref("browser.tabs.insertRelatedAfterCurrent", false);
pref("browser.backspace_action", 2);
pref("browser.display.use_system_colors", true);
pref("browser.download.folderList", 1);
pref("browser.link.open_external", 3);
pref("app.update.auto", false);
pref("app.update.enabled", false);
pref("app.update.autoInstallEnabled", false);
pref("security.ssl.require_safe_negotiation", false);
pref("dom.ipc.plugins.enabled.nswrapper*", false);
pref("extensions.autoDisableScopes", 0);
pref("extensions.shownSelectionUI", true);
pref("network.manage-offline-status", true);
pref("layers.offmainthreadcomposition.enabled", false);
pref("intl.locale.matchOS", true);
EOF
cat << EOF >> %{buildroot}%{mozillalibdir}/defaults/pref/config-prefs.js
pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift
EOF

# display icon for Firefox button
mkdir -p %{buildroot}%{mozillalibdir}/defaults/profile/chrome
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/profile/chrome/userChrome.css
#appmenu-toolbar-button {
	list-style-image: url("chrome://branding/content/icon16.png");
}
EOF

# use the system myspell dictionaries
rm -fr %{buildroot}%{mozillalibdir}/dictionaries
#ln -s %%{_datadir}/hunspell %%{buildroot}%%{mozillalibdir}/dictionaries
ln -s %{_datadir}/dict/mozilla/ %{buildroot}%{mozillalibdir}/dictionaries

# (lm) touch and %%ghost bookmarks.html to a proper uninstall
touch %{buildroot}%{mozillalibdir}/defaults/profile/bookmarks.html

cat <<FIN >macro
# Macros from %{name} package
%%firefox_major		%{major}
%%firefox_epoch		%{ff_epoch}
%%firefox_version	%{major}
%%firefox_mozillapath	%{mozillalibdir}
%%firefox_pluginsdir	%{pluginsdir}
%%firefox_appid		\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%%firefox_extdir	%%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
FIN
%install_macro %{name} macro

mkdir -p %{buildroot}%{_docdir}/%{name}

%pre
if [ -d %{mozillalibdir}/browser/dictionaries ]; then
	rm -fr %{mozillalibdir}/browser/dictionaries
fi

%post
if [ ! -r /etc/sysconfig/oem ]; then
	if [ ! -f /etc/sysconfig/system ]; then
		exit 0
	fi
	. /etc/sysconfig/system
	case "$META_CLASS" in
		*powerpack) bookmark="mozilla-powerpack.html" ;;
		*desktop) bookmark="mozilla-one.html";;
		*) bookmark="mozilla-download.html";;
	esac
	ln -s -f ../../../../share/mdk/bookmarks/mozilla/$bookmark  %{mozillalibdir}/defaults/profile/bookmarks.html
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12694 |21mr|firefox-esr52-l10n-52.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define xpidir http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}esr/linux-i686/xpi/
%define oname firefox-esr52

# Supported l10n language lists
%define langlist af ar ast bg bn_IN bn_BD br bs ca cs cy da de el en_GB en_ZA eo es_AR es_CL es_ES es_MX et eu fa fi fr fy ga_IE gd gl gu_IN he hi hr hu hy id is it ja kk ko kn lt lv mai mk ml mr nb_NO nl nn_NO or pa_IN pl pt_BR pt_PT ro ru si sk sl sq sr sv_SE ta te th tr uk vi zh_CN zh_TW
# Disabled l10n languages, for any reason
# - no locales-XX package:
# uu ak be rm son

# Disabled myspell dicts, for any reason
%define disabled_dict_langlist ar be bn br br_FR es_AR eu fi fy gl gu_IN he id ja ka kn ko mk pa_IN te tr zh_CN zh_TW

# Language descriptions
%define language_ak ak
%define langname_ak Akan
%define language_ar ar
%define langname_ar Arabic
%define language_ast ast
%define langname_ast Asturian
%define language_af af
%define langname_af Afrikaans
%define language_be be
%define langname_be Belarusian
%define language_bg bg
%define langname_bg Bulgarian
%define language_bn_BD bn-BD
%define langname_bn_BD Bengali
%define language_bn_IN bn-IN
%define langname_bn_IN Bengali
%define language_br br
%define langname_br Breton
%define language_bs bs
%define langname_bs Bosnian
%define language_ca ca
%define langname_ca Catalan
%define language_cs cs
%define langname_cs Czech
%define language_cy cy
%define langname_cy Welsh
%define language_da da
%define langname_da Dansk
%define language_de de
%define langname_de German
%define language_el el
%define langname_el Greek
%define language_en_GB en-GB
%define langname_en_GB British English
%define language_en_ZA en-ZA
%define langname_en_ZA English (South Africa)
%define language_eo eo
%define langname_eo Esperanto
%define language_es_AR es-AR
%define langname_es_AR Spanish (Argentina)
%define language_es_CL es-CL
%define langname_es_CL Spanish (Chile)
%define language_es_ES es-ES
%define langname_es_ES Spanish
%define language_es_MX es-MX
%define langname_es_MX Spanish (Mexico)
%define language_et et
%define langname_et Estonian
%define language_eu eu
%define langname_eu Basque
%define language_fa fa
%define langname_fa Farsi
%define language_fi fi
%define langname_fi Finnish
%define language_fr fr
%define langname_fr French
%define language_fy fy-NL
%define langname_fy Frisian
%define language_ga_IE ga-IE
%define langname_ga_IE Irish
%define language_gd gd
%define langname_gd Scottish Gaelic
%define language_gl gl
%define langname_gl Galician
%define language_gu_IN gu-IN
%define langname_gu_IN Gujarati
%define language_he he
%define langname_he Hebrew
%define language_hi hi-IN
%define langname_hi Hindi
%define language_hr hr
%define langname_hr Croatian
%define language_hu hu
%define langname_hu Hungarian
%define language_hy hy-AM
%define langname_hy Armenian
%define language_id id
%define langname_id Indonesian
%define language_is is
%define langname_is Icelandic
%define language_it it
%define langname_it Italian
%define language_ja ja
%define langname_ja Japanese
%define language_kk kk
%define langname_kk Kazakh
%define language_ko ko
%define langname_ko Korean
%define language_kn kn
%define langname_kn Kannada
%define language_lt lt
%define langname_lt Lithuanian
%define language_lv lv
%define langname_lv Latvian
%define language_mai mai
%define langname_mai Maithili
%define language_mk mk
%define langname_mk Macedonian
%define language_ml ml
%define langname_ml Malayalam
%define language_mr mr
%define langname_mr Marathi
%define language_nb_NO nb-NO
%define langname_nb_NO Norwegian Bokmaal
%define language_nn_NO nn-NO
%define langname_nn_NO Norwegian Nynorsk
%define language_nl nl
%define langname_nl Dutch
%define language_or or
%define langname_or Oriya
%define language_pa_IN pa-IN
%define langname_pa_IN Punjabi (gurmukhi)
%define language_pl pl
%define langname_pl Polish
%define language_pt_BR pt-BR
%define langname_pt_BR Brazilian portuguese
%define language_pt_PT pt-PT
%define langname_pt_PT Portuguese
%define language_rm rm
%define langname_rm Rumantsch
%define language_ro ro
%define langname_ro Romanian
%define language_ru ru
%define langname_ru Russian
%define language_si si
%define langname_si Sinhala
%define language_sk sk
%define langname_sk Slovak
%define language_sl sl
%define langname_sl Slovenian
%define language_son son
%define langname_son Soŋay
%define language_sq sq
%define langname_sq Shqipe
%define language_sr sr
%define langname_sr Serbian
%define language_sv_SE sv-SE
%define langname_sv_SE Swedish
%define language_ta ta
%define langname_ta Tamil
%define language_te te
%define langname_te Telugu
%define language_th th
%define langname_th Thai
%define language_tr tr
%define langname_tr Turkish
%define language_uk uk
%define langname_uk Ukrainian
%define language_uk_UA uk-UA
%define langname_uk_UA Ukrainian
%define language_vi vi
%define langname_vi Vietnamese
%define language_zh_CN zh-CN
%define langname_zh_CN Simplified Chinese
%define language_zh_TW zh-TW
%define langname_zh_TW Traditional Chinese

# --- Danger line ---

# Defaults (all languages enabled by default)
# dicts
%{expand:%(for lang in %langlist; do echo "%%define with_dict_$lang 0"; done)}
%{expand:%(for lang in %disabled_dict_langlist; do echo "%%define with_dict_$lang 0"; done)}

# Locales
%{expand:%(for lang in %langlist; do echo "%%define locale_$lang `echo $lang | cut -d _ -f 1` "; done)}

Summary:	Localizations for Firefox (virtual package)
Name:		%{oname}-l10n
Version:	52.9.0
Release:	2
License:	GPL
Group:		Networking/WWW
Url:		http://www.firefox.com/
Source0:	%{name}-%{version}.tar.xz
# Language package template
Source1:	firefox-l10n-template.in
# No deleted!
Source2:	get-langpacks.sh
Source3:	firefox-esr52-l10n.rpmlintrc
BuildRequires:	%{oname}-devel
BuildArch:	noarch

%description
Localizations for Firefox web browser.

# Expand all languages packages.
%{expand:%(\
	for lang in %langlist; do\
		echo "%%{expand:%%(sed "s!__LANG__!$lang!g" %{SOURCE1} 2> /dev/null)}";\
	done\
	)
}

%prep
%setup -q

%build

%install
# Convert rpm macros to bash variables
%{expand:%(for lang in %langlist; do echo "language_$lang=%%{language_$lang}"; done)}

mkdir -p %{buildroot}%{firefox_extdir}/

# Install all languages
for lang in %{langlist}; do
	language="language_$lang"
	language=${!language}

#	l10n
	cp ${language}.xpi %{buildroot}%{firefox_extdir}/langpack-${language}@firefox.mozilla.org.xpi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12695 |21mr|firefox-esr78-78.15.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No build in 62.0.2
#%%define debug_package %%{nil}

#
# WARNING, READ FIRST:
#
# This is a special package that needs special treatment. Due to the amount of
# security updates it needs, it's common to ship new upstream versions instead of patching.
# That means this package MUST be BUILDABLE for stable official releases.
# This also means only STABLE upstream releases, NO betas.
# This is a discussed topic. Please, do not flame it again.

%ifarch %ix86
%define _host i686-unknown-linux-gnu
%endif

%define oname firefox
%define major 78.15.0
%define ff_epoch 0
# (tpg) set version HERE !!!
%define realver %{major}
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}

# (tpg) MOZILLA_FIVE_HOME
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=10129
%define mozillalibdir %{_libdir}/%{oname}-esr
%define pluginsdir %{_libdir}/mozilla/plugins

# this seems fragile, so require the exact version or later (#58754)
#%%define sqlite3_version %%(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)
%define nspr_version %(pkg-config --modversion nspr &>/dev/null && pkg-config --modversion nspr 2>/dev/null |sed -e 's!\.0!!' || echo 0)

%define toolkit_gtk3 1

# Firefox 61.0: ERROR: Only GCC 6.1 or newer is supported (found version 5.5.0).
%define clang 1

%define use_bundled_cbindgen 1

# Requested 'nss >= 3.53.1' but version of NSS is 3.52.1
%bcond_with system_nss_nspr

# Do not make provides from plugins /usr/lib64/firefox/*.so
%global __provides_exclude_from ^%{_libdir}/firefox.*/.*\\.so$
# Do not require filtered out provides
# To inspect them:
# for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then echo ; echo -- $i ; LC_ALL=C  ldd $i | grep found ; fi; done
# To make this list:
# ( for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then LC_ALL=C ldd $i | grep found | awk '{print $1}' | awk -F '\\.so' '{print $1}' ; fi; done ) | sort -u | tr '\n' '|'
%global __requires_exclude ^(liblgpllibs|libmozavutil|libmozgtk|libmozsandbox|libmozsqlite3|libmozwayland|libnspr4|libnss3|libnssutil3|libplc4|libplds4|libsmime3|libssl3|libxul)\\.so.*$

Summary:	Next generation web browser
Name:		firefox-esr78
Version:	%{major}
Epoch:		%{ff_epoch}
Release:	2
License:	MPLv1+
Group:		Networking/WWW
Url:		http://www.mozilla.com/firefox/
Source0:	https://archive.mozilla.org/pub/firefox/releases/%{version}esr/source/%{oname}-%{version}esr.source.tar.xz
Source1:	firefox.rpmlintrc
Source2:	ru@dictionaries.addons.mozilla.org.tar.bz2
Source4:	%{oname}.desktop
Source7:	firefox.cfg
Source9:	kde.js
Source10:	mozilla-api-key
Source11:	google-api-key
# for 2016.1
Source80:	loffice-libcxx-wrapper.sh
# Fedora
# https://github.com/eqrion/cbindgen/releases
# version 0.14.2
Source12:	cbindgen-vendor.tar.xz
Source13:	gen_cbindgen-vendor.sh

# Patches for kde integration of FF 
# http://www.rosenauer.org/hg/mozilla/summary
Patch11:	mozilla-kde.patch
Patch12:	firefox-kde.patch
Patch13:	mozilla-kde-background.patch

# Fedora specific patches
# Unable to install addons from https pages
Patch215:	firefox-enable-addons.patch

Patch219:	mozilla-ntlm-full-path.patch

Patch300:	firefox-56.0-build-error.patch

BuildRequires:	gtk+2-devel
%if %{toolkit_gtk3}
BuildRequires:	gtk+3-devel
%endif
BuildRequires:	rust
BuildRequires:	cargo
BuildRequires:	unzip
BuildRequires:	zip
BuildRequires:	clang
BuildRequires:	clang-devel
%if 0%{?clang}
BuildRequires:	lld
%endif
BuildRequires:	nasm
BuildRequires:	libatomic-devel
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	jpeg-devel
BuildRequires:	zlib-devel
BuildRequires:	glib2-devel
%if %{mdvver} >= 201910
BuildRequires:	pkgconfig(python2)
%else
BuildRequires:	pkgconfig(python)
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	makedepend
BuildRequires:	nodejs
%if %{with system_nss_nspr}
BuildRequires:	nss-devel >= 2:3.24
BuildRequires:	nss-static-devel
BuildRequires:	pkgconfig(nspr) >= 4.17
%endif
BuildRequires:	startup-notification-devel
BuildRequires:	dbus-glib-devel
%ifnarch %armx %mips
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	yasm >= 1.0.1
%endif
%ifarch %arm
BuildRequires:	libffi-devel
%endif
BuildRequires:	rootcerts >= 1:20110830.00
BuildRequires:	pkgconfig(xt)
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	wget
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(gl)
BuildRequires:	autoconf2.1
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(fontconfig)
%if %{mdvver} < 201910
BuildRequires:	stdc++-gcc10-devel
%endif

Provides:	mozilla-firefox = %{EVRD}
Provides:	webclient

%if %{with system_nss_nspr}
Requires:	%{mklibname nss 3} >= 2:%{nss_version}
Requires:	%{mklibname nspr 4} >= 2:%{nspr_version}
%endif
Requires:	indexhtml
Requires:	xdg-utils
# fixes bug #42096
Requires:	mailcap
Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2

Conflicts:	firefox
Conflicts:	firefox-esr24
Conflicts:	firefox-esr45
Conflicts:	firefox-esr52
Conflicts:	firefox-esr60
Conflicts:	firefox-esr68
Conflicts:	firefox-esr < %{EVRD}

%description
The award-winning Web browser is now faster, more secure, and fully
customizable to your online life. With Firefox(R), we've added powerful new
features that make your online experience even better. It is an 'open source'
product which is  freely available, and is acquiring a growing proportion of
international web browser usage.

Firefox claims to offer a more secure web browsing experience than other
products, with better protection against spyware and other Internet-based
security threats.  It includes all the standard features of a modern web
browser, like Internet searching, tracking recently visited sites, setting up
shortcuts to favourite sites, customising the software behaviour and so on.
Firefox also includes  features like 'tabbed browsing' (opening several web
sites as sections within the same window) and methods for controlling pop-up
windows, cookies and downloaded files.

%files
%doc AUTHORS CLOBBER LEGAL LICENSE README.txt
%{_bindir}/%{oname}
%{_bindir}/mozilla-firefox
%{_datadir}/applications/*.desktop
%{_datadir}/mozilla/extensions/%{firefox_appid}/
%{_iconsdir}/%{oname}.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_liconsdir}/%{oname}.png
%{_miconsdir}/%{oname}.png
%{mozillalibdir}*
%dir %{_libdir}/mozilla
%dir %{_libdir}/mozilla/extensions
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
%dir %{pluginsdir}

#---------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Conflicts:	firefox-devel
Conflicts:	firefox-esr-devel
Conflicts:	firefox-esr24-devel
Conflicts:	firefox-esr45-devel
Conflicts:	firefox-esr52-devel
Conflicts:	firefox-esr60-devel
Conflicts:	firefox-esr68-devel

%description devel
Files and macros mainly for building Firefox extensions.

%files devel
%doc AUTHORS CLOBBER LEGAL LICENSE README.txt
%{_rpmmacrodir}/*%{name}*

#---------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

## KDE INTEGRATION
%patch11 -p1 -b .kdepatch
%patch12 -p1 -b .kdemoz
%patch13 -p1 -b .kdebackground

# Fedora patches
%patch215 -p1 -b .addons

%patch219 -p1 -b .ntlm

%if %{with system_nss_nspr}
%patch300 -p1
%endif

pushd js/src
autoconf-2.13
popd
autoconf-2.13

%if %{with system_nss_nspr}
# needed to regenerate certdata.c
pushd security/nss/lib/ckfw/builtins
perl ./certdata.perl /etc/pki/tls/mozilla/certdata.txt
popd
%endif

%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
cd my_rust_vendor
%{__tar} xf %{SOURCE12}
mkdir -p .cargo
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"
 
[source.vendored-sources]
directory = "`pwd`"
EOL
 
env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH
%endif
cd -

export RUSTFLAGS="-Cdebuginfo=0"

%if 0%{?clang}
%define linker lld
%if %{mdvver} < 201910
# not using %%clang_gcc_wrapper here because it fails
# to deal with complex quotation like
# -DCPPUNIT_PLUGIN_EXPORT='extern "C" SAL_DLLPUBLIC_EXPORT'
for i in %noclang_optflags ; do
	export CFLAGS="$(echo "$CFLAGS" | sed -e "s,${i},,g")"
	export CXXFLAGS="$(echo "$CXXFLAGS" | sed -e "s,${i},,g")"
done
mkdir -p local_bin
install -m0755 %{SOURCE80} "local_bin/clang++"
export PATH="${PWD}/local_bin:${PATH}"
%endif
export CC=clang
export CXX=clang++
%if %{mdvver} < 201910
export CPP=clang-cpp
# libstdc++ from gcc5 is too old, use newer version of libstdc++
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libstdc++-gcc10 -I%{_includedir}/libstdc++-gcc10/$(ls %{_includedir}/libstdc++-gcc10/ | grep '\-linux-gnu' | head -n 1)"
export CXXFLAGS="$CXXFLAGS -nostdinc++ $CPPFLAGS -Wno-unused-command-line-argument"
export LIBCCX_LIBS="-lstdc++-gcc10"
%endif
%else
%define linker gold
CFLAGS="$CFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
CXXFLAGS="$CXXFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
export CFLAGS
export CXXFLAGS
%endif

export MOZCONFIG=`pwd`/mozconfig
cat << EOF > $MOZCONFIG
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
ac_add_options --disable-crashreporter
# debug
#ac_add_options --disable-debug
#ac_add_options --disable-debug-symbols
%ifnarch aarch64
ac_add_options --disable-elf-hack
%endif
ac_add_options --disable-tests
ac_add_options --disable-updater
%if %{toolkit_gtk3}
ac_add_options --enable-default-toolkit=cairo-gtk3
%else
ac_add_options --enable-default-toolkit=cairo-gtk2
%endif
# # Enables security hardening compiler options
# ac_add_options --enable-hardening
# # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
# ac_add_options --enable-linker=%%{linker}
# # Optimization for size is broken with gcc7 and later
# ac_add_options --enable-optimize="-O2"
ac_add_options --enable-official-branding
ac_add_options --enable-release
# # Enable compatibility with older libstdc++
# #ac_add_options --enable-stdcxx-compat
ac_add_options --host=%{_host}
ac_add_options --libdir="%{_libdir}"
ac_add_options --prefix="%{_prefix}"
ac_add_options --with-distribution-id=org.rosa
# Uncomment the following line if you wish to use Google's geolocaton API
# (needed for use with saved maps with Google Maps)
ac_add_options --with-google-location-service-api-keyfile=%{SOURCE11}
ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE11}
# Uncomment the following line if you wish to use Mozilla Location Service
ac_add_options --with-mozilla-api-keyfile=%{SOURCE10}
ac_add_options --with-system-jpeg
%if %{with system_nss_nspr}
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
%endif
ac_add_options --with-system-zlib
ac_add_options --with-unsigned-addon-scopes=app
ac_add_options --without-system-libvpx
#ac_add_options --enable-rust-debug
ac_add_options --allow-addon-sideload

EOF

# force memory efficient linking and ets
%if 0%{?clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -lwayland-client"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

export MOZ_SERVICES_SYNC="1"
export STRIP=/bin/true

# This is needed since Firefox 68, otherwise each language installation
# (and Firefox 68 from Mozilla binaries compared to old Firefox binaries
# from ROSA) will have their own profile (and users are missing bookmarks
# and such).
export MOZ_LEGACY_PROFILES="1"

./mach build

%install
# Make sure locale works for langpacks
cat > %{_builddir}/obj/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
EOF

make -C %{_builddir}/obj/browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0

# Copy files to buildroot
mkdir -p %{buildroot}%{mozillalibdir}
cp -rf %{_builddir}/obj/dist/firefox/* %{buildroot}%{mozillalibdir}

mkdir -p  %{buildroot}%{_bindir}
ln -sf %{mozillalibdir}/firefox %{buildroot}%{_bindir}/firefox
pushd %{buildroot}%{_bindir}
	ln -sf firefox mozilla-firefox
popd
mkdir -p %{buildroot}%{mozillalibdir}/defaults/preferences/
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/defaults/preferences/kde.js

# Create and own %%_libdir/mozilla/plugins & firefox extensions directories
mkdir -p %{buildroot}%{pluginsdir}
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
# added ru dictionaries
tar xjf %{SOURCE2} -C %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}/

# (tpg) desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{oname}.desktop

# (tpg) icons
for i in 16 22 24 32 48 256; do
# (cg) Not all icon sizes are installed with make install, so just redo it here.
install -m 644 browser/branding/official/default$i.png %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default$i.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{oname}.png ;
done
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default48.png %{buildroot}%{_liconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default32.png %{buildroot}%{_iconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}%{_miconsdir}/%{oname}.png

# exclusions
rm -f %{buildroot}%{mozillalibdir}/README.txt
rm -f %{buildroot}%{mozillalibdir}/removed-files
rm -f %{buildroot}%{mozillalibdir}/precomplete

install -m 644 %{SOURCE7} %{buildroot}%{mozillalibdir}/firefox.cfg

cat << EOF >> %{buildroot}%{mozillalibdir}/defaults/pref/config-prefs.js
pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift
EOF

# display icon for Firefox button
mkdir -p %{buildroot}%{mozillalibdir}/defaults/profile/chrome
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/profile/chrome/userChrome.css
#appmenu-toolbar-button {
	list-style-image: url("chrome://branding/content/icon16.png");
}
EOF

# (lm) touch and %%ghost bookmarks.html to a proper uninstall
touch %{buildroot}%{mozillalibdir}/defaults/profile/bookmarks.html

cat <<FIN >macro
# Macros from %{name} package
%%firefox_major		%{major}
%%firefox_epoch		%{ff_epoch}
%%firefox_version	%{major}
%%firefox_mozillapath	%{mozillalibdir}
%%firefox_pluginsdir	%{pluginsdir}
%%firefox_appid		\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%%firefox_extdir	%%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
FIN
%install_macro %{name} macro

mkdir -p %{buildroot}%{_docdir}/%{name}

%post
if [ ! -r /etc/sysconfig/oem ]; then
	case `grep META_CLASS /etc/sysconfig/system` in
		*powerpack) bookmark="mozilla-powerpack.html" ;;
		*desktop) bookmark="mozilla-one.html";;
		*) bookmark="mozilla-download.html";;
	esac
	ln -s -f ../../../../share/mdk/bookmarks/mozilla/$bookmark  %{mozillalibdir}/defaults/profile/bookmarks.html
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12696 |21mr|firefox-esr78-l10n-78.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define xpidir http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/
%define oname firefox-esr78

# Supported l10n language lists
%define langlist af ar ast bg br bs ca cs cy da de el en_GB eo es_AR es_CL es_ES es_MX et eu fa fi fr fy ga_IE gd gl gu_IN he hi hr hu hy id is it ja kk ko kn lt lv mk mr nb_NO nl nn_NO oc pa_IN pl pt_BR pt_PT ro ru si sk sl sq sr sv_SE ta te th tr uk vi zh_CN zh_TW
# Disabled l10n languages, for any reason
# - no locales-XX package:
# uu ak be rm son bn-IN bn_BD en_ZA mai ml or

# Disabled myspell dicts, for any reason
%define disabled_dict_langlist ar be bn br br_FR es_AR eu fi fy gl gu_IN he id ja ka kn ko mk pa_IN te tr zh_CN zh_TW

# Language descriptions
%define language_ak ak
%define langname_ak Akan
%define language_ar ar
%define langname_ar Arabic
%define language_ast ast
%define langname_ast Asturian
%define language_af af
%define langname_af Afrikaans
%define language_be be
%define langname_be Belarusian
%define language_bg bg
%define langname_bg Bulgarian
%define language_bn_BD bn-BD
%define langname_bn_BD Bengali
%define language_bn_IN bn-IN
%define langname_bn_IN Bengali
%define language_br br
%define langname_br Breton
%define language_bs bs
%define langname_bs Bosnian
%define language_ca ca
%define langname_ca Catalan
%define language_cs cs
%define langname_cs Czech
%define language_cy cy
%define langname_cy Welsh
%define language_da da
%define langname_da Dansk
%define language_de de
%define langname_de German
%define language_el el
%define langname_el Greek
%define language_en_GB en-GB
%define langname_en_GB British English
%define language_en_ZA en-ZA
%define langname_en_ZA English (South Africa)
%define language_eo eo
%define langname_eo Esperanto
%define language_es_AR es-AR
%define langname_es_AR Spanish (Argentina)
%define language_es_CL es-CL
%define langname_es_CL Spanish (Chile)
%define language_es_ES es-ES
%define langname_es_ES Spanish
%define language_es_MX es-MX
%define langname_es_MX Spanish (Mexico)
%define language_et et
%define langname_et Estonian
%define language_eu eu
%define langname_eu Basque
%define language_fa fa
%define langname_fa Farsi
%define language_fi fi
%define langname_fi Finnish
%define language_fr fr
%define langname_fr French
%define language_fy fy-NL
%define langname_fy Frisian
%define language_ga_IE ga-IE
%define langname_ga_IE Irish
%define language_gd gd
%define langname_gd Scottish Gaelic
%define language_gl gl
%define langname_gl Galician
%define language_gu_IN gu-IN
%define langname_gu_IN Gujarati
%define language_he he
%define langname_he Hebrew
%define language_hi hi-IN
%define langname_hi Hindi
%define language_hr hr
%define langname_hr Croatian
%define language_hu hu
%define langname_hu Hungarian
%define language_hy hy-AM
%define langname_hy Armenian
%define language_id id
%define langname_id Indonesian
%define language_is is
%define langname_is Icelandic
%define language_it it
%define langname_it Italian
%define language_ja ja
%define langname_ja Japanese
%define language_kk kk
%define langname_kk Kazakh
%define language_ko ko
%define langname_ko Korean
%define language_kn kn
%define langname_kn Kannada
%define language_lt lt
%define langname_lt Lithuanian
%define language_lv lv
%define langname_lv Latvian
%define language_mai mai
%define langname_mai Maithili
%define language_mk mk
%define langname_mk Macedonian
%define language_ml ml
%define langname_ml Malayalam
%define language_mr mr
%define langname_mr Marathi
%define language_nb_NO nb-NO
%define langname_nb_NO Norwegian Bokmaal
%define language_nn_NO nn-NO
%define langname_nn_NO Norwegian Nynorsk
%define language_nl nl
%define langname_nl Dutch
%define language_oc oc
%define langname_oc Occitan
%define language_or or
%define langname_or Oriya
%define language_pa_IN pa-IN
%define langname_pa_IN Punjabi (gurmukhi)
%define language_pl pl
%define langname_pl Polish
%define language_pt_BR pt-BR
%define langname_pt_BR Brazilian portuguese
%define language_pt_PT pt-PT
%define langname_pt_PT Portuguese
%define language_rm rm
%define langname_rm Rumantsch
%define language_ro ro
%define langname_ro Romanian
%define language_ru ru
%define langname_ru Russian
%define language_si si
%define langname_si Sinhala
%define language_sk sk
%define langname_sk Slovak
%define language_sl sl
%define langname_sl Slovenian
%define language_son son
%define langname_son Soŋay
%define language_sq sq
%define langname_sq Shqipe
%define language_sr sr
%define langname_sr Serbian
%define language_sv_SE sv-SE
%define langname_sv_SE Swedish
%define language_ta ta
%define langname_ta Tamil
%define language_te te
%define langname_te Telugu
%define language_th th
%define langname_th Thai
%define language_tr tr
%define langname_tr Turkish
%define language_uk uk
%define langname_uk Ukrainian
%define language_uk_UA uk-UA
%define langname_uk_UA Ukrainian
%define language_vi vi
%define langname_vi Vietnamese
%define language_zh_CN zh-CN
%define langname_zh_CN Simplified Chinese
%define language_zh_TW zh-TW
%define langname_zh_TW Traditional Chinese

# --- Danger line ---

# Defaults (all languages enabled by default)
# dicts
%{expand:%(for lang in %langlist; do echo "%%define with_dict_$lang 0"; done)}
%{expand:%(for lang in %disabled_dict_langlist; do echo "%%define with_dict_$lang 0"; done)}

# Locales
%{expand:%(for lang in %langlist; do echo "%%define locale_$lang `echo $lang | cut -d _ -f 1` "; done)}

Summary:	Localizations for Firefox (virtual package)
Name:		%{oname}-l10n
Version:	78.15.0
Release:	1
License:	GPL
Group:		Networking/WWW
Url:		http://www.firefox.com
Source0:	%{name}-%{version}.tar.xz
# Language package template
Source1:	firefox-l10n-template.in
# No deleted!
Source2:	get-langpacks.sh
Source3:	%{name}.rpmlintrc
BuildRequires:	%{oname}-devel
BuildArch:	noarch

%description
Localizations for Firefox web browser.

# Expand all languages packages.
%{expand:%(\
	for lang in %langlist; do\
		echo "%%{expand:%%(sed "s!__LANG__!$lang!g" %{SOURCE1} 2> /dev/null)}";\
	done\
	)
}

%prep
%setup -q

%build

%install
# Convert rpm macros to bash variables
%{expand:%(for lang in %langlist; do echo "language_$lang=%%{language_$lang}"; done)}

mkdir -p %{buildroot}%{firefox_extdir}/

# Install all languages
for lang in %{langlist}; do
	language="language_$lang"
	language=${!language}

	# l10n
	cp ${language}.xpi %{buildroot}%{firefox_extdir}/langpack-${language}@firefox.mozilla.org.xpi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12697 |21mr|firefox-esr91-91.13.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No build in 62.0.2
%if %{mdvver} <= 201905
%ifarch %{ix86}
%define debug_package %{nil}
 %endif
%endif

#
# WARNING, READ FIRST:
#
# This is a special package that needs special treatment. Due to the amount of
# security updates it needs, it's common to ship new upstream versions instead of patching.
# That means this package MUST be BUILDABLE for stable official releases.
# This also means only STABLE upstream releases, NO betas.
# This is a discussed topic. Please, do not flame it again.

%ifarch %ix86
%define _host i686-unknown-linux-gnu
%endif

%define oname firefox
%define major 91.13.0
%define ff_epoch 0
# (tpg) set version HERE !!!
%define realver %{major}
%define firefox_appid \{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}

# (tpg) MOZILLA_FIVE_HOME
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=10129
%define mozillalibdir %{_libdir}/%{oname}-esr
%define pluginsdir %{_libdir}/mozilla/plugins

# this seems fragile, so require the exact version or later (#58754)
#%%define sqlite3_version %%(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)
%define nspr_version %(pkg-config --modversion nspr &>/dev/null && pkg-config --modversion nspr 2>/dev/null |sed -e 's!\.0!!' || echo 0)

%define toolkit_gtk3 1

# Firefox 61.0: ERROR: Only GCC 6.1 or newer is supported (found version 5.5.0).
%bcond_without clang

%define use_bundled_cbindgen 1

# Requested 'nss >= 3.53.1' but version of NSS is 3.52.1
%bcond_with system_nss_nspr

# Do not make provides from plugins /usr/lib64/firefox/*.so
%global __provides_exclude_from ^%{_libdir}/firefox.*/.*\\.so$
# Do not require filtered out provides
# To inspect them:
# for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then echo ; echo -- $i ; LC_ALL=C  ldd $i | grep found ; fi; done
# To make this list:
# ( for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then LC_ALL=C ldd $i | grep found | awk '{print $1}' | awk -F '\\.so' '{print $1}' ; fi; done ) | sort -u | tr '\n' '|'
%global __requires_exclude ^(liblgpllibs|libmozavutil|libmozgtk|libmozsandbox|libmozsqlite3|libmozwayland|libnspr4|libnss3|libnssutil3|libplc4|libplds4|libsmime3|libssl3|libxul)\\.so.*$

%global optflags $(echo "%optflags" | sed -e "s/-O2/-O3/g")
%global ldflags $(echo "%ldflags" | sed -e "s/-O2/-O3/g")

Summary:	Next generation web browser
Name:		firefox-esr91
Version:	%{major}
Epoch:		%{ff_epoch}
Release:	2
License:	MPLv1+
Group:		Networking/WWW
Url:		http://www.mozilla.com/firefox/
Source0:	https://archive.mozilla.org/pub/firefox/releases/%{version}esr/source/%{oname}-%{version}esr.source.tar.xz
Source1:	firefox.rpmlintrc
Source2:	ru@dictionaries.addons.mozilla.org.tar.bz2
Source4:	%{oname}.desktop
Source7:	firefox.cfg
Source9:	kde.js
Source10:	mozilla-api-key
Source11:	google-api-key
# for 2016.1
Source80:	loffice-libcxx-wrapper.sh
# Fedora
# https://github.com/eqrion/cbindgen/releases
# version 0.19.0
Source12:	cbindgen-vendor.tar.xz
Source13:	gen_cbindgen-vendor.sh
# To return Russian search services and messengers that firefox refused
Patch1:		Russian-services.patch
# Patches for kde integration of FF 
# http://www.rosenauer.org/hg/mozilla/summary
Patch11:	mozilla-kde.patch
Patch12:	firefox-kde.patch

# Fedora specific patches
# Unable to install addons from https pages
Patch215:	firefox-enable-addons.patch

Patch219:	mozilla-ntlm-full-path.patch

Patch300:	firefox-56.0-build-error.patch

BuildRequires:	gtk+2-devel
%if %{toolkit_gtk3}
BuildRequires:	gtk+3-devel
%endif
BuildRequires:	rust
BuildRequires:	cargo
BuildRequires:	unzip
BuildRequires:	zip
BuildRequires:	clang
BuildRequires:	clang-devel
%if %{with clang}
BuildRequires:	lld
%endif
BuildRequires:	nasm
BuildRequires:	libatomic-devel
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	jpeg-devel
BuildRequires:	zlib-devel
BuildRequires:	glib2-devel
%if %{mdvver} >= 202110
BuildRequires:	pkgconfig(python2)
%else
BuildRequires:	pkgconfig(python)
BuildRequires:	python38
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	makedepend
BuildRequires:	nodejs
%if %{with system_nss_nspr}
BuildRequires:	nss-devel >= 2:3.24
BuildRequires:	nss-static-devel
BuildRequires:	pkgconfig(nspr) >= 4.17
%endif
BuildRequires:	startup-notification-devel
BuildRequires:	dbus-glib-devel
%ifnarch %armx %mips
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	yasm >= 1.0.1
%endif
%ifarch %arm
BuildRequires:	libffi-devel
%endif
BuildRequires:	rootcerts >= 1:20110830.00
BuildRequires:	pkgconfig(xt)
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	wget
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(gl)
BuildRequires:	autoconf2.1
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(theoradec)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(fontconfig)
%if %{mdvver} < 202110
BuildRequires:	stdc++-gcc10-devel
%endif

Provides:	mozilla-firefox = %{EVRD}
Provides:	webclient

%if %{with system_nss_nspr}
Requires:	%{mklibname nss 3} >= 2:%{nss_version}
Requires:	%{mklibname nspr 4} >= 2:%{nspr_version}
%endif
Requires:	indexhtml
Requires:	xdg-utils
# fixes bug #42096
Requires:	mailcap
Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2

Conflicts:	firefox
Conflicts:	firefox-esr24
Conflicts:	firefox-esr45
Conflicts:	firefox-esr52
Conflicts:	firefox-esr60
Conflicts:	firefox-esr68
Conflicts:	firefox-esr78
Conflicts:	firefox-esr < %{EVRD}

%description
The award-winning Web browser is now faster, more secure, and fully
customizable to your online life. With Firefox(R), we've added powerful new
features that make your online experience even better. It is an 'open source'
product which is  freely available, and is acquiring a growing proportion of
international web browser usage.

Firefox claims to offer a more secure web browsing experience than other
products, with better protection against spyware and other Internet-based
security threats.  It includes all the standard features of a modern web
browser, like Internet searching, tracking recently visited sites, setting up
shortcuts to favourite sites, customising the software behaviour and so on.
Firefox also includes  features like 'tabbed browsing' (opening several web
sites as sections within the same window) and methods for controlling pop-up
windows, cookies and downloaded files.

%files
%doc AUTHORS CLOBBER LICENSE README.txt
%{_bindir}/%{oname}
%{_bindir}/mozilla-firefox
%{_datadir}/applications/*.desktop
%{_datadir}/mozilla/extensions/%{firefox_appid}/
%{_iconsdir}/%{oname}.png
%{_iconsdir}/hicolor/*/apps/*.png
%{_liconsdir}/%{oname}.png
%{_miconsdir}/%{oname}.png
%{mozillalibdir}*
%dir %{_libdir}/mozilla
%dir %{_libdir}/mozilla/extensions
%dir %{_libdir}/mozilla/extensions/%{firefox_appid}
%dir %{pluginsdir}

#---------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Conflicts:	firefox-devel
Conflicts:	firefox-esr-devel
Conflicts:	firefox-esr24-devel
Conflicts:	firefox-esr45-devel
Conflicts:	firefox-esr52-devel
Conflicts:	firefox-esr60-devel
Conflicts:	firefox-esr68-devel
Conflicts:      firefox-esr78-devel

%description devel
Files and macros mainly for building Firefox extensions.

%files devel
%doc AUTHORS CLOBBER LICENSE README.txt
%{_rpmmacrodir}/*%{name}*

#---------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%patch1 -p1

## KDE INTEGRATION
%patch11 -p1 -b .kdepatch
%patch12 -p1 -b .kdemoz

# Fedora patches
%patch215 -p1 -b .addons
%patch219 -p1 -b .ntlm

%if %{with system_nss_nspr}
%patch300 -p1
%endif

pushd js/src
autoconf-2.13
popd
autoconf-2.13

%if %{with system_nss_nspr}
# needed to regenerate certdata.c
pushd security/nss/lib/ckfw/builtins
perl ./certdata.perl /etc/pki/tls/mozilla/certdata.txt
popd
%endif

%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
cd my_rust_vendor
%{__tar} xf %{SOURCE12}
mkdir -p .cargo
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"
 
[source.vendored-sources]
directory = "`pwd`"
EOL
 
env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH
%endif
cd -

export RUSTFLAGS="-Cdebuginfo=0"

%if %{mdvver} < 202110
sed -i "s/python3/python3.8/g" configure.in
sed -i "s/python3/python3.8/g" mach
export PYTHON3=%{_prefix}/libexec/python3.8
export PATH=%{_prefix}/libexec:$PATH
%endif

%if %{with clang}
%define linker lld
%if %{mdvver} < 202110
# not using %%clang_gcc_wrapper here because it fails
# to deal with complex quotation like
# -DCPPUNIT_PLUGIN_EXPORT='extern "C" SAL_DLLPUBLIC_EXPORT'
for i in %noclang_optflags ; do
	export CFLAGS="$(echo "$CFLAGS" | sed -e "s,${i},,g")"
	export CXXFLAGS="$(echo "$CXXFLAGS" | sed -e "s,${i},,g")"
done
mkdir -p local_bin
install -m0755 %{SOURCE80} "local_bin/clang++"
export PATH="${PWD}/local_bin:${PATH}"
%endif
export CC=clang
export CXX=clang++
%if %{mdvver} < 202110
export CPP=clang-cpp
# libstdc++ from gcc5 is too old, use newer version of libstdc++
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libstdc++-gcc10 -I%{_includedir}/libstdc++-gcc10/$(ls %{_includedir}/libstdc++-gcc10/ | grep '\-linux-gnu' | head -n 1)"
export CXXFLAGS="$CXXFLAGS -nostdinc++ $CPPFLAGS -Wno-unused-command-line-argument"
export LIBCCX_LIBS="-lstdc++-gcc10"
%endif
%else
%define linker gold
CFLAGS="$CFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
CXXFLAGS="$CXXFLAGS -Wno-error=coverage-mismatch -Wno-error=free-nonheap-object"
export CFLAGS
export CXXFLAGS
%endif

export MOZCONFIG=`pwd`/mozconfig
cat << EOF > $MOZCONFIG
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
ac_add_options --disable-crashreporter
# debug
#ac_add_options --disable-debug
%if %{mdvver} <= 201905
%ifarch %{ix86}
ac_add_options --disable-debug-symbols
%endif
 %endif
%ifnarch aarch64
ac_add_options --disable-elf-hack
%endif
ac_add_options --disable-tests
ac_add_options --disable-updater
%if %{toolkit_gtk3}
ac_add_options --enable-default-toolkit=cairo-gtk3-wayland
%endif
# # Enables security hardening compiler options
# ac_add_options --enable-hardening
# # https://bugzilla.mozilla.org/show_bug.cgi?id=1483822
# ac_add_options --enable-linker=%%{linker}
# # Optimization for size is broken with gcc7 and later
ac_add_options --enable-optimize="-O3"
ac_add_options --enable-official-branding
ac_add_options --enable-release
# # Enable compatibility with older libstdc++
# #ac_add_options --enable-stdcxx-compat
ac_add_options --host=%{_host}
ac_add_options --libdir="%{_libdir}"
ac_add_options --prefix="%{_prefix}"
ac_add_options --with-distribution-id=org.rosa
# Uncomment the following line if you wish to use Google's geolocaton API
# (needed for use with saved maps with Google Maps)
ac_add_options --with-google-location-service-api-keyfile=%{SOURCE11}
ac_add_options --with-google-safebrowsing-api-keyfile=%{SOURCE11}
# Uncomment the following line if you wish to use Mozilla Location Service
ac_add_options --with-mozilla-api-keyfile=%{SOURCE10}
ac_add_options --with-system-jpeg
%if %{with system_nss_nspr}
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
%endif
ac_add_options --with-system-zlib
ac_add_options --with-unsigned-addon-scopes=app
ac_add_options --without-system-libvpx
#ac_add_options --enable-rust-debug
ac_add_options --allow-addon-sideload

#JS
ac_add_options --enable-js-shell
ac_add_options --enable-av1
ac_add_options --enable-pulseaudio
EOF

# force memory efficient linking and ets
%if %{with clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

export MOZ_SERVICES_SYNC="1"
export STRIP=/bin/true

# This is needed since Firefox 68, otherwise each language installation
# (and Firefox 68 from Mozilla binaries compared to old Firefox binaries
# from ROSA) will have their own profile (and users are missing bookmarks
# and such).
export MOZ_LEGACY_PROFILES="1"

# This mach command requires /builddir/.mozbuild/_virtualenvs/mach/bin/python,
# which wasn't found on the system!
# Consider running 'mach bootstrap' or 'mach create-mach-environment'
# to create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use
# the system Python installation over a virtualenv.
export MACH_USE_SYSTEM_PYTHON=1

./mach build

%install
# Make sure locale works for langpacks
cat > %{_builddir}/obj/dist/bin/browser/defaults/preferences/firefox-l10n.js << EOF
pref("general.useragent.locale", "chrome://global/locale/intl.properties");
EOF

make -C %{_builddir}/obj/browser/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0

# Copy files to buildroot
mkdir -p %{buildroot}%{mozillalibdir}
cp -rf %{_builddir}/obj/dist/firefox/* %{buildroot}%{mozillalibdir}

mkdir -p  %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/firefox <<'EOF'
#!/bin/sh
if [ "${XDG_SESSION_TYPE:-}" = wayland ]; then
export MOZ_ENABLE_WAYLAND=1
	exec %{mozillalibdir}/firefox
else
export MOZ_DISABLE_WAYLAND=1
	exec %{mozillalibdir}/firefox
fi
EOF
chmod +x %{buildroot}%{_bindir}/firefox

pushd %{buildroot}%{_bindir}
	ln -sf firefox mozilla-firefox
popd
mkdir -p %{buildroot}%{mozillalibdir}/defaults/preferences/
install -m 644 %{SOURCE9} %{buildroot}%{mozillalibdir}/defaults/preferences/kde.js

# Create and own %%_libdir/mozilla/plugins & firefox extensions directories
mkdir -p %{buildroot}%{pluginsdir}
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{firefox_appid}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}
# added ru dictionaries
tar xjf %{SOURCE2} -C %{buildroot}%{_datadir}/mozilla/extensions/%{firefox_appid}/

# (tpg) desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{oname}.desktop

# (tpg) icons
for i in 16 22 24 32 48 256; do
# (cg) Not all icon sizes are installed with make install, so just redo it here.
install -m 644 browser/branding/official/default$i.png %{buildroot}%{mozillalibdir}/browser/chrome/icons/default/default$i.png
mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{oname}.png ;
done
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default48.png %{buildroot}%{_liconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default32.png %{buildroot}%{_iconsdir}/%{oname}.png
ln -sf %{mozillalibdir}/browser/chrome/icons/default/default16.png %{buildroot}%{_miconsdir}/%{oname}.png

# exclusions
rm -f %{buildroot}%{mozillalibdir}/README.txt
rm -f %{buildroot}%{mozillalibdir}/removed-files
rm -f %{buildroot}%{mozillalibdir}/precomplete

install -m 644 %{SOURCE7} %{buildroot}%{mozillalibdir}/firefox.cfg

cat << EOF >> %{buildroot}%{mozillalibdir}/defaults/pref/config-prefs.js
pref("general.config.filename", "firefox.cfg");
pref("general.config.obscure_value", 0); // use this to disable the byte-shift
EOF

# display icon for Firefox button
mkdir -p %{buildroot}%{mozillalibdir}/defaults/profile/chrome
cat << EOF > %{buildroot}%{mozillalibdir}/defaults/profile/chrome/userChrome.css
#appmenu-toolbar-button {
	list-style-image: url("chrome://branding/content/icon16.png");
}
EOF

cat <<FIN >macro
# Macros from %{name} package
%%firefox_major		%{major}
%%firefox_epoch		%{ff_epoch}
%%firefox_version	%{major}
%%firefox_mozillapath	%{mozillalibdir}
%%firefox_pluginsdir	%{pluginsdir}
%%firefox_appid		\{ec8030f7-c20a-464f-9b0e-13a3a9e97384\}
%%firefox_extdir	%%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{firefox_appid}; else echo %%{_libdir}/mozilla/extensions/%%{firefox_appid}; fi)
FIN
%install_macro %{name} macro

mkdir -p %{buildroot}%{_docdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12698 |21mr|firefox-esr91-l10n-91.13.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define xpidir http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/
%define oname firefox-esr91

# Supported l10n language lists
%define langlist af ar ast bg br bs ca cs cy da de el en_GB eo es_AR es_CL es_ES es_MX et eu fa fi fr fy ga_IE gd gl gu_IN he hi hr hu hy id is it ja kk ko kn lt lv mk mr nb_NO nl nn_NO oc pa_IN pl pt_BR pt_PT ro ru si sk sl sq sr sv_SE ta te th tr uk vi zh_CN zh_TW
# Disabled l10n languages, for any reason
# - no locales-XX package:
# uu ak be rm son bn-IN bn_BD en_ZA mai ml or

# Disabled myspell dicts, for any reason
%define disabled_dict_langlist ar be bn br br_FR es_AR eu fi fy gl gu_IN he id ja ka kn ko mk pa_IN te tr zh_CN zh_TW

# Language descriptions
%define language_ak ak
%define langname_ak Akan
%define language_ar ar
%define langname_ar Arabic
%define language_ast ast
%define langname_ast Asturian
%define language_af af
%define langname_af Afrikaans
%define language_be be
%define langname_be Belarusian
%define language_bg bg
%define langname_bg Bulgarian
%define language_bn_BD bn-BD
%define langname_bn_BD Bengali
%define language_bn_IN bn-IN
%define langname_bn_IN Bengali
%define language_br br
%define langname_br Breton
%define language_bs bs
%define langname_bs Bosnian
%define language_ca ca
%define langname_ca Catalan
%define language_cs cs
%define langname_cs Czech
%define language_cy cy
%define langname_cy Welsh
%define language_da da
%define langname_da Dansk
%define language_de de
%define langname_de German
%define language_el el
%define langname_el Greek
%define language_en_GB en-GB
%define langname_en_GB British English
%define language_en_ZA en-ZA
%define langname_en_ZA English (South Africa)
%define language_eo eo
%define langname_eo Esperanto
%define language_es_AR es-AR
%define langname_es_AR Spanish (Argentina)
%define language_es_CL es-CL
%define langname_es_CL Spanish (Chile)
%define language_es_ES es-ES
%define langname_es_ES Spanish
%define language_es_MX es-MX
%define langname_es_MX Spanish (Mexico)
%define language_et et
%define langname_et Estonian
%define language_eu eu
%define langname_eu Basque
%define language_fa fa
%define langname_fa Farsi
%define language_fi fi
%define langname_fi Finnish
%define language_fr fr
%define langname_fr French
%define language_fy fy-NL
%define langname_fy Frisian
%define language_ga_IE ga-IE
%define langname_ga_IE Irish
%define language_gd gd
%define langname_gd Scottish Gaelic
%define language_gl gl
%define langname_gl Galician
%define language_gu_IN gu-IN
%define langname_gu_IN Gujarati
%define language_he he
%define langname_he Hebrew
%define language_hi hi-IN
%define langname_hi Hindi
%define language_hr hr
%define langname_hr Croatian
%define language_hu hu
%define langname_hu Hungarian
%define language_hy hy-AM
%define langname_hy Armenian
%define language_id id
%define langname_id Indonesian
%define language_is is
%define langname_is Icelandic
%define language_it it
%define langname_it Italian
%define language_ja ja
%define langname_ja Japanese
%define language_kk kk
%define langname_kk Kazakh
%define language_ko ko
%define langname_ko Korean
%define language_kn kn
%define langname_kn Kannada
%define language_lt lt
%define langname_lt Lithuanian
%define language_lv lv
%define langname_lv Latvian
%define language_mai mai
%define langname_mai Maithili
%define language_mk mk
%define langname_mk Macedonian
%define language_ml ml
%define langname_ml Malayalam
%define language_mr mr
%define langname_mr Marathi
%define language_nb_NO nb-NO
%define langname_nb_NO Norwegian Bokmaal
%define language_nn_NO nn-NO
%define langname_nn_NO Norwegian Nynorsk
%define language_nl nl
%define langname_nl Dutch
%define language_oc oc
%define langname_oc Occitan
%define language_or or
%define langname_or Oriya
%define language_pa_IN pa-IN
%define langname_pa_IN Punjabi (gurmukhi)
%define language_pl pl
%define langname_pl Polish
%define language_pt_BR pt-BR
%define langname_pt_BR Brazilian portuguese
%define language_pt_PT pt-PT
%define langname_pt_PT Portuguese
%define language_rm rm
%define langname_rm Rumantsch
%define language_ro ro
%define langname_ro Romanian
%define language_ru ru
%define langname_ru Russian
%define language_si si
%define langname_si Sinhala
%define language_sk sk
%define langname_sk Slovak
%define language_sl sl
%define langname_sl Slovenian
%define language_son son
%define langname_son Soŋay
%define language_sq sq
%define langname_sq Shqipe
%define language_sr sr
%define langname_sr Serbian
%define language_sv_SE sv-SE
%define langname_sv_SE Swedish
%define language_ta ta
%define langname_ta Tamil
%define language_te te
%define langname_te Telugu
%define language_th th
%define langname_th Thai
%define language_tr tr
%define langname_tr Turkish
%define language_uk uk
%define langname_uk Ukrainian
%define language_uk_UA uk-UA
%define langname_uk_UA Ukrainian
%define language_vi vi
%define langname_vi Vietnamese
%define language_zh_CN zh-CN
%define langname_zh_CN Simplified Chinese
%define language_zh_TW zh-TW
%define langname_zh_TW Traditional Chinese

# --- Danger line ---

# Defaults (all languages enabled by default)
# dicts
%{expand:%(for lang in %langlist; do echo "%%define with_dict_$lang 0"; done)}
%{expand:%(for lang in %disabled_dict_langlist; do echo "%%define with_dict_$lang 0"; done)}

# Locales
%{expand:%(for lang in %langlist; do echo "%%define locale_$lang `echo $lang | cut -d _ -f 1` "; done)}

Summary:	Localizations for Firefox (virtual package)
Name:		%{oname}-l10n
Version:	91.13.0
Release:	2
License:	GPL
Group:		Networking/WWW
Url:		http://www.firefox.com
Source0:	%{name}-%{version}.tar.xz
# Language package template
Source1:	firefox-l10n-template.in
# No deleted!
Source2:	get-langpacks.sh
Source3:	%{name}.rpmlintrc
BuildRequires:	%{oname}-devel
BuildArch:	noarch

%description
Localizations for Firefox web browser.

# Expand all languages packages.
%{expand:%(\
	for lang in %langlist; do\
		echo "%%{expand:%%(sed "s!__LANG__!$lang!g" %{SOURCE1} 2> /dev/null)}";\
	done\
	)
}

%prep
%setup -q

%build

%install
# Convert rpm macros to bash variables
%{expand:%(for lang in %langlist; do echo "language_$lang=%%{language_$lang}"; done)}

mkdir -p %{buildroot}%{firefox_extdir}/

# Install all languages
for lang in %{langlist}; do
	language="language_$lang"
	language=${!language}

	# l10n
	cp ${language}.xpi %{buildroot}%{firefox_extdir}/langpack-${language}@firefox.mozilla.org.xpi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12699 |21mr|firefox-l10n-133.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define xpidir http://ftp.mozilla.org/pub/mozilla.org/firefox/releases/%{version}/linux-i686/xpi/
%define oname firefox

# Supported l10n language lists
%define langlist af ar ast bg br bs ca cs cy da de el en_GB eo es_AR es_CL es_ES es_MX et eu fa fi fr fy ga_IE gd gl gu_IN he hi hr hu hy id is it ja kk ko kn lt lv mk mr nb_NO nl nn_NO oc pa_IN pl pt_BR pt_PT ro ru si sk sl sq sr sv_SE ta te th tr uk vi zh_CN zh_TW
# Disabled l10n languages, for any reason
# - no locales-XX package:
# uu ak be rm son bn-IN bn_BD en_ZA mai ml or

# Disabled myspell dicts, for any reason
%define disabled_dict_langlist ar be bn br br_FR es_AR eu fi fy gl gu_IN he id ja ka kn ko mk pa_IN te tr zh_CN zh_TW

# Language descriptions
%define language_ak ak
%define langname_ak Akan
%define language_ar ar
%define langname_ar Arabic
%define language_ast ast
%define langname_ast Asturian
%define language_af af
%define langname_af Afrikaans
%define language_be be
%define langname_be Belarusian
%define language_bg bg
%define langname_bg Bulgarian
%define language_bn_BD bn-BD
%define langname_bn_BD Bengali
%define language_bn_IN bn-IN
%define langname_bn_IN Bengali
%define language_br br
%define langname_br Breton
%define language_bs bs
%define langname_bs Bosnian
%define language_ca ca
%define langname_ca Catalan
%define language_cs cs
%define langname_cs Czech
%define language_cy cy
%define langname_cy Welsh
%define language_da da
%define langname_da Dansk
%define language_de de
%define langname_de German
%define language_el el
%define langname_el Greek
%define language_en_GB en-GB
%define langname_en_GB British English
%define language_en_ZA en-ZA
%define langname_en_ZA English (South Africa)
%define language_eo eo
%define langname_eo Esperanto
%define language_es_AR es-AR
%define langname_es_AR Spanish (Argentina)
%define language_es_CL es-CL
%define langname_es_CL Spanish (Chile)
%define language_es_ES es-ES
%define langname_es_ES Spanish
%define language_es_MX es-MX
%define langname_es_MX Spanish (Mexico)
%define language_et et
%define langname_et Estonian
%define language_eu eu
%define langname_eu Basque
%define language_fa fa
%define langname_fa Farsi
%define language_fi fi
%define langname_fi Finnish
%define language_fr fr
%define langname_fr French
%define language_fy fy-NL
%define langname_fy Frisian
%define language_ga_IE ga-IE
%define langname_ga_IE Irish
%define language_gd gd
%define langname_gd Scottish Gaelic
%define language_gl gl
%define langname_gl Galician
%define language_gu_IN gu-IN
%define langname_gu_IN Gujarati
%define language_he he
%define langname_he Hebrew
%define language_hi hi-IN
%define langname_hi Hindi
%define language_hr hr
%define langname_hr Croatian
%define language_hu hu
%define langname_hu Hungarian
%define language_hy hy-AM
%define langname_hy Armenian
%define language_id id
%define langname_id Indonesian
%define language_is is
%define langname_is Icelandic
%define language_it it
%define langname_it Italian
%define language_ja ja
%define langname_ja Japanese
%define language_kk kk
%define langname_kk Kazakh
%define language_ko ko
%define langname_ko Korean
%define language_kn kn
%define langname_kn Kannada
%define language_lt lt
%define langname_lt Lithuanian
%define language_lv lv
%define langname_lv Latvian
%define language_mai mai
%define langname_mai Maithili
%define language_mk mk
%define langname_mk Macedonian
%define language_ml ml
%define langname_ml Malayalam
%define language_mr mr
%define langname_mr Marathi
%define language_nb_NO nb-NO
%define langname_nb_NO Norwegian Bokmaal
%define language_nn_NO nn-NO
%define langname_nn_NO Norwegian Nynorsk
%define language_nl nl
%define langname_nl Dutch
%define language_oc oc
%define langname_oc Occitan
%define language_or or
%define langname_or Oriya
%define language_pa_IN pa-IN
%define langname_pa_IN Punjabi (gurmukhi)
%define language_pl pl
%define langname_pl Polish
%define language_pt_BR pt-BR
%define langname_pt_BR Brazilian portuguese
%define language_pt_PT pt-PT
%define langname_pt_PT Portuguese
%define language_rm rm
%define langname_rm Rumantsch
%define language_ro ro
%define langname_ro Romanian
%define language_ru ru
%define langname_ru Russian
%define language_si si
%define langname_si Sinhala
%define language_sk sk
%define langname_sk Slovak
%define language_sl sl
%define langname_sl Slovenian
%define language_son son
%define langname_son Soŋay
%define language_sq sq
%define langname_sq Shqipe
%define language_sr sr
%define langname_sr Serbian
%define language_sv_SE sv-SE
%define langname_sv_SE Swedish
%define language_ta ta
%define langname_ta Tamil
%define language_te te
%define langname_te Telugu
%define language_th th
%define langname_th Thai
%define language_tr tr
%define langname_tr Turkish
%define language_uk uk
%define langname_uk Ukrainian
%define language_uk_UA uk-UA
%define langname_uk_UA Ukrainian
%define language_vi vi
%define langname_vi Vietnamese
%define language_zh_CN zh-CN
%define langname_zh_CN Simplified Chinese
%define language_zh_TW zh-TW
%define langname_zh_TW Traditional Chinese

# --- Danger line ---

# Defaults (all languages enabled by default)
# dicts
%{expand:%(for lang in %langlist; do echo "%%define with_dict_$lang 0"; done)}
%{expand:%(for lang in %disabled_dict_langlist; do echo "%%define with_dict_$lang 0"; done)}

# Locales
%{expand:%(for lang in %langlist; do echo "%%define locale_$lang `echo $lang | cut -d _ -f 1` "; done)}

Summary:	Localizations for Firefox (virtual package)
Name:		%{oname}-l10n
Version:	133.0
Release:	1
License:	GPL
Group:		Networking/WWW
Url:		http://www.firefox.com
Source0:	%{name}-%{version}.tar.xz
# Language package template
Source1:	firefox-l10n-template.in
# No deleted!
Source2:	get-langpacks.sh
Source3:	firefox-l10n.rpmlintrc
BuildRequires:	%{oname}-devel
ExclusiveArch:	%{x86_64} %{arm64}

%description
Localizations for Firefox web browser.

# Expand all languages packages.
%{expand:%(\
	for lang in %langlist; do\
		echo "%%{expand:%%(sed "s!__LANG__!$lang!g" %{SOURCE1} 2> /dev/null)}";\
	done\
	)
}

%prep
%setup -q

%build

%install
# Convert rpm macros to bash variables
%{expand:%(for lang in %langlist; do echo "language_$lang=%%{language_$lang}"; done)}

mkdir -p %{buildroot}%{firefox_extdir}/

# Install all languages
for lang in %{langlist}; do
	language="language_$lang"
	language=${!language}

	# l10n
	cp ${language}.xpi %{buildroot}%{firefox_extdir}/langpack-${language}@firefox.mozilla.org.xpi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12700 |21mr|firewalld-0.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without ebtables

Summary:	A dynamic firewall daemon
Name:		firewalld
Version:	0.9.3
Release:	1
License:	GPLv2+
Group:		System/Base
Url:		https://fedorahosted.org/firewalld/
Source0:	https://github.com/firewalld/firewalld/archive/%{name}-%{version}.tar.gz
Source1:	FedoraServer.xml
Source2:	FedoraWorkstation.xml
Patch0:		firewalld-0.4.2-MDNS-default.patch
BuildRequires:	desktop-file-utils
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	ipset
BuildRequires:	iptables
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(python3)
%if %{with ebtables}
BuildRequires:	ebtables
Requires:	ebtables
%endif
Requires:	ipset
Requires:	iptables
Requires:	python3-dbus
Requires:	python3-decorator
Requires:	python3-slip-dbus >= 0.2.7
Requires:	typelib(NM) = 1.0
Requires(post,preun,postun):	rpm-helper
Requires:	firewalld-filesystem = %{version}-%{release}
Requires:	python3-firewall  = %{version}-%{release}
Conflicts:	firewall-config < 0.4.2-3
BuildArch:	noarch

%description
A firewall service daemon with D-BUS interface managing a dynamic firewall.

%files -f %{name}.lang
%doc COPYING README
%{_presetdir}/86-firewalld.preset
%{_sbindir}/firewalld
%{_bindir}/firewall-cmd
%{_bindir}/firewall-offline-cmd
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/firewall-cmd
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_firewalld
%{_prefix}/lib/firewalld/icmptypes/*.xml
%{_prefix}/lib/firewalld/ipsets/README
%{_prefix}/lib/firewalld/services/*.xml
%{_prefix}/lib/firewalld/zones/*.xml
%{_prefix}/lib/firewalld/helpers/*.xml
%{_prefix}/lib/firewalld/policies/allow-host-ipv6.xml
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld
%config(noreplace) %{_sysconfdir}/firewalld/firewalld.conf
%config(noreplace) %{_sysconfdir}/firewalld/firewalld-standard.conf
%config(noreplace) %{_sysconfdir}/firewalld/firewalld-server.conf
%config(noreplace) %{_sysconfdir}/firewalld/firewalld-workstation.conf
%config(noreplace) %{_sysconfdir}/firewalld/lockdown-whitelist.xml
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/helpers
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/icmptypes
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/ipsets
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/services
%attr(0750,root,root) %dir %{_sysconfdir}/firewalld/zones
%defattr(0644,root,root)
%config(noreplace) %{_sysconfdir}/sysconfig/firewalld
%{_unitdir}/firewalld.service
%config(noreplace) %{_datadir}/dbus-1/system.d/FirewallD.conf
%{_datadir}/polkit-1/actions/org.fedoraproject.FirewallD1.policy
%{_datadir}/polkit-1/actions/org.fedoraproject.FirewallD1.desktop.policy.choice
%{_datadir}/polkit-1/actions/org.fedoraproject.FirewallD1.server.policy.choice
%{_mandir}/man1/firewall*cmd*.1*
%{_mandir}/man1/firewalld*.1*
%{_mandir}/man5/firewall*.5*
%{_sysconfdir}/modprobe.d/firewalld-sysctls.conf
%{_sysconfdir}/logrotate.d/firewalld

%post
%systemd_post firewalld.service

%preun
%systemd_preun firewalld.service

%postun
%systemd_postun_with_restart firewalld.service

#----------------------------------------------------------------------------
%package -n python3-firewall
Summary: Python3 bindings for firewalld
Obsoletes: python-firewall < 0.5.2-2
Obsoletes: python2-firewall < 0.5.2-2
Requires: python3-dbus
Requires: python3-slip-dbus
Requires: python3-decorator
Requires: python3-gi
Requires: python3-nftables

%description -n python3-firewall
Python3 bindings for firewalld.

%files -n python3-firewall
%attr(0755,root,root) %dir %{python3_sitelib}/firewall
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/__pycache__
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/config
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/config/__pycache__
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/core
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/core/__pycache__
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/core/io
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/core/io/__pycache__
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/server
%attr(0755,root,root) %dir %{python3_sitelib}/firewall/server/__pycache__
%{python3_sitelib}/firewall/__pycache__/*.py*
%{python3_sitelib}/firewall/*.py*
%{python3_sitelib}/firewall/config/*.py*
%{python3_sitelib}/firewall/config/__pycache__/*.py*
%{python3_sitelib}/firewall/core/*.py*
%{python3_sitelib}/firewall/core/__pycache__/*.py*
%{python3_sitelib}/firewall/core/io/*.py*
%{python3_sitelib}/firewall/core/io/__pycache__/*.py*
%{python3_sitelib}/firewall/server/*.py*
%{python3_sitelib}/firewall/server/__pycache__/*.py*

#----------------------------------------------------------------------------

%package -n firewall-applet
Summary:	Firewall panel applet
Group:		System/Base
Requires:	%{name} = %{EVRD}
Requires:	firewall-config = %{EVRD}
Requires:	python3-gobject3
Requires:	typelib(Notify) = 0.7

%description -n firewall-applet
The firewall panel applet provides a status information of firewalld and also
the firewall settings.

%files -n firewall-applet
%{_bindir}/firewall-applet
%defattr(0644,root,root)
%{_sysconfdir}/xdg/autostart/firewall-applet.desktop
%dir %{_sysconfdir}/firewall
%{_sysconfdir}/firewall/applet.conf
%{_datadir}/icons/hicolor/*/apps/firewall-applet*.*
%{_mandir}/man1/firewall-applet*.1*

#----------------------------------------------------------------------------

%package -n firewall-config
Summary:	Firewall configuration application
Group:		System/Base
Requires:	%{name} = %{EVRD}
Requires:	python3-gobject3
Requires:	typelib(NetworkManager)
Requires:	typelib(Gtk) = 3.0

%description -n firewall-config
The firewall configuration application provides an configuration interface for
firewalld.

%files -n firewall-config
%{_bindir}/firewall-config
%defattr(0644,root,root)
%{_datadir}/firewalld/__pycache__/
%{_datadir}/firewalld/firewall-config.glade
%{_datadir}/firewalld/gtk3_chooserbutton.py*
%{_datadir}/firewalld/gtk3_niceexpander.py*
%{_datadir}/applications/firewall-config.desktop
%{_datadir}/metainfo/firewall-config.appdata.xml
%{_datadir}/icons/hicolor/*/apps/firewall-config*.*
%{_datadir}/glib-2.0/schemas/org.fedoraproject.FirewallConfig.gschema.xml
%{_mandir}/man1/firewall-config*.1*

#----------------------------------------------------------------------------

%package -n firewalld-filesystem
Summary: Firewalld directory layout and rpm macros

%description -n firewalld-filesystem
This package provides directories and rpm macros which
are required by other packages that add firewalld configuration files.

%files -n firewalld-filesystem
%dir %{_prefix}/lib/firewalld
%dir %{_prefix}/lib/firewalld/helpers
%dir %{_prefix}/lib/firewalld/icmptypes
%dir %{_prefix}/lib/firewalld/ipsets
%dir %{_prefix}/lib/firewalld/services
%dir %{_prefix}/lib/firewalld/zones
%{_rpmconfigdir}/macros.d/macros.firewalld

#----------------------------------------------------------------------------

%prep
%autosetup -p1
./autogen.sh

%build
autoreconf -fi
%configure \
	--enable-sysconfig \
	--enable-rpmmacros PYTHON=%{__python3} \
%if %{without ebtables}
	--without-ebtables \
	--without-ebtables-restore \
%endif
	--with-systemd-unitdir=%{_unitdir}

# no make
cd doc
%make_build
cd ..

%install
%make_install

desktop-file-install --delete-original \
  --dir %{buildroot}%{_sysconfdir}/xdg/autostart \
  %{buildroot}%{_sysconfdir}/xdg/autostart/firewall-applet.desktop

desktop-file-install --delete-original \
  --dir %{buildroot}%{_datadir}/applications \
  %{buildroot}%{_datadir}/applications/firewall-config.desktop

install -d -m 755 %{buildroot}%{_prefix}/lib/firewalld/zones/
install -c -m 644 %{SOURCE1} %{buildroot}%{_prefix}/lib/firewalld/zones/FedoraServer.xml
install -c -m 644 %{SOURCE2} %{buildroot}%{_prefix}/lib/firewalld/zones/FedoraWorkstation.xml

# standard firewalld.conf
cp -fv %{buildroot}%{_sysconfdir}/firewalld/firewalld.conf \
    %{buildroot}%{_sysconfdir}/firewalld/firewalld-standard.conf

# server firewalld.conf
cp -a %{buildroot}%{_sysconfdir}/firewalld/firewalld-standard.conf \
    %{buildroot}%{_sysconfdir}/firewalld/firewalld-server.conf
sed -i 's|^DefaultZone=.*|DefaultZone=FedoraServer|g' \
    %{buildroot}%{_sysconfdir}/firewalld/firewalld-server.conf

# workstation firewalld.conf
cp -a %{buildroot}%{_sysconfdir}/firewalld/firewalld-standard.conf \
    %{buildroot}%{_sysconfdir}/firewalld/firewalld-workstation.conf
sed -i 's|^DefaultZone=.*|DefaultZone=FedoraWorkstation|g' \
    %{buildroot}%{_sysconfdir}/firewalld/firewalld-workstation.conf

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-firewalld.preset << EOF
enable firewalld.service
EOF

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12701 |21mr|five-or-more-3.32.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Five or More game
Name:		five-or-more
Version:	3.32.3
Release:	2
License:	GPLv2+ and GFDL
Group:		Games/Puzzles
Url:		https://download.gnome.org/sources/five-or-more
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	five-or-more-3.32.2_ru.tar.gz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libgnome-games-support-1)
BuildRequires:	pkgconfig(librsvg-2.0)

%description
Five or More is the GNOME port of the once popular Windows game called
Color Lines. The game's objective is to align as often as possible five
or more objects of the same color and shape causing them to disappear.
Play as long as possible, and be #1 in the High Scores!

%files -f %{name}.lang
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_iconsdir}/*/*/apps/*
%{_mandir}/man6/%{name}.6*
%{_datadir}/metainfo/org.gnome.%{name}.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12702 |21mr|flac-1.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

%define majorpp 6
%define libnamepp %mklibname %{name}++ %{majorpp}
%define devnamepp %mklibname %{name}++ -d
%define sdevnamepp %mklibname %{name}++ -d -s

Summary:	An encoder/decoder for the Free Lossless Audio Codec
Name:		flac
Version:	1.3.4
Release:	2
License:	BSD and GPLv2+
Group:		Sound
Url:		http://flac.sourceforge.net/
Source0:	http://downloads.xiph.org/releases/flac/%{name}-%{version}.tar.xz
Patch0:		CVE-2020-22219.patch
BuildRequires:	libtool
%ifarch %{ix86}
BuildRequires:	nasm >= 0.98.30
%endif
BuildRequires:	gettext-devel
BuildRequires:	id3lib-devel
BuildRequires:	pkgconfig(ogg) >= 1.1.2

%description
FLAC is an Open Source lossless audio codec developed by Josh Coalson.
The package is comprised of:
  1) "libFLAC", a library which implements reference encoders and decoders,
     licensed under the GNU Lesser General Public License (LGPL);
  2) "flac", a command-line program for encoding and decoding files, licensed
     under the GNU General public License (GPL);
  3) "metaflac", a command-line program for editing FLAC metadata, licensed
     under the GPL;
  4) the player plugins for XMMS and Winamp, licensed under the GPL;
  5) the documentation, licensed under the GNU Free Documentation License.

%files
%doc AUTHORS COPYING* README
%{_bindir}/%{name}
%{_bindir}/metaflac
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for FLAC
Group:		System/Libraries

%description  -n %{libname}
This package contains the C libraries for FLAC.

%files -n %{libname}
%doc AUTHORS COPYING*
%{_libdir}/libFLAC.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers needed for building apps using FLAC
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the libraries and header files necessary to develop
applications using FLAC written in C.

%files -n %{devname}
%doc AUTHORS COPYING*
%{_includedir}/FLAC
%{_libdir}/libFLAC.so
%{_datadir}/aclocal/libFLAC.m4
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries needed for building apps using FLAC
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains the static libraries and header files necessary to develop
applications using FLAC written in C.

%files -n %{sdevname}
%{_libdir}/libFLAC.a

#----------------------------------------------------------------------------

%package -n %{libnamepp}
Summary:	Shared C++ libraries for FLAC
Group:		System/Libraries

%description  -n %{libnamepp}
This package contains the libraries for C++ applications using FLAC.

%files -n %{libnamepp}
%doc AUTHORS COPYING*
%{_libdir}/libFLAC++.so.%{majorpp}*

#----------------------------------------------------------------------------

%package -n %{devnamepp}
Summary:	Libraries and headers needed for building apps using FLAC++
Group:		Development/C++
Requires:	%{libnamepp} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	%{name}++-devel = %{EVRD}

%description -n %{devnamepp}
This package contains the libraries and header files necessary to develop
applications using FLAC written in C++.

%files -n %{devnamepp}
%doc AUTHORS COPYING*
%{_datadir}/doc/flac/
%{_includedir}/FLAC++
%{_libdir}/libFLAC++.so
%{_datadir}/aclocal/libFLAC++.m4
%{_libdir}/pkgconfig/%{name}++.pc

#----------------------------------------------------------------------------

%package -n %{sdevnamepp}
Summary:	Static libraries and headers needed for building apps using FLAC++
Group:		Development/C++
Requires:	%{devnamepp} = %{EVRD}
Provides:	%{name}++-static-devel = %{EVRD}

%description -n %{sdevnamepp}
This package contains the static libraries and header files necessary to develop
applications using FLAC written in C++.

%files -n %{sdevnamepp}
%{_libdir}/libFLAC++.a

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

./autogen.sh -V
rm -rf html
cp -r doc/html .
autoreconf -vfi


%build
%configure \
	--enable-static \
	--disable-xmms-plugin \
	--disable-thorough-tests \
	--disable-asm-optimizations

find . -name Makefile |xargs sed -i -e 's, dwarf-4, -gdwarf-4,g'

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12703 |21mr|flatbuffers-22.11.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 22
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Memory efficient serialization library
Name:		flatbuffers
Version:	22.11.23
Release:	1
# The entire source code is ASL 2.0 except grpc/ which is BSD (3 clause)
License:	ASL 2.0 and BSD
Group:		System/Libraries
Url:		http://google.github.io/flatbuffers
Source0:	https://github.com/google/flatbuffers/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	flatc.1
Source2:	flatbuffers.7
BuildRequires:	cmake
BuildRequires:	doxygen

%description
FlatBuffers is a serialization library for games and other memory constrained
apps. FlatBuffers allows you to directly access serialized data without
unpacking/parsing it first, while still having great forwards/backwards
compatibility.

%files
%doc LICENSE.txt readme.md
%{_bindir}/flatc
%{_mandir}/man1/flatc.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Memory efficient serialization library
Group:		System/Libraries

%description -n %{libname}
FlatBuffers is a serialization library for games and other memory constrained
apps. FlatBuffers allows you to directly access serialized data without
unpacking/parsing it first, while still having great forwards/backwards
compatibility.

%files -n %{libname}
%doc LICENSE.txt
%{_libdir}/libflatbuffers.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc docs/html/*
%{_includedir}/%{name}/
%{_libdir}/libflatbuffers.so
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man7/%{name}.7*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# cleanup distribution
rm -rf js net php python go java js biicode {samples/,}android
chmod -x readme.md

%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DFLATBUFFERS_BUILD_SHAREDLIB=ON \
	-DFLATBUFFERS_BUILD_FLATLIB=OFF \
	-DFLATBUFFERS_BUILD_FLATC=ON \
	-DFLATBUFFERS_BUILD_TESTS=OFF

%make_build

# Build devel docs
pushd ../docs/source
doxygen
popd

%install
%make_install -C build
mkdir -p %{buildroot}%{_mandir}/man{1,7}
cp -p %{SOURCE1} %{buildroot}%{_mandir}/man1/flatc.1
cp -p %{SOURCE2} %{buildroot}%{_mandir}/man7/%{name}.7

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12704 |21mr|flatbuffers-23.5.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 23
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Memory efficient serialization library
Name:		flatbuffers
Version:	23.5.26
Release:	1
# The entire source code is ASL 2.0 except grpc/ which is BSD (3 clause)
License:	ASL 2.0 and BSD
Group:		System/Libraries
Url:		http://google.github.io/flatbuffers
Source0:	https://github.com/google/flatbuffers/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	flatc.1
Source2:	flatbuffers.7
BuildRequires:	cmake
BuildRequires:	doxygen

%description
FlatBuffers is a serialization library for games and other memory constrained
apps. FlatBuffers allows you to directly access serialized data without
unpacking/parsing it first, while still having great forwards/backwards
compatibility.

%files
%doc README.md
%{_bindir}/flatc
%{_mandir}/man1/flatc.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Memory efficient serialization library
Group:		System/Libraries

%description -n %{libname}
FlatBuffers is a serialization library for games and other memory constrained
apps. FlatBuffers allows you to directly access serialized data without
unpacking/parsing it first, while still having great forwards/backwards
compatibility.

%files -n %{libname}
%{_libdir}/libflatbuffers.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc docs/html/*
%{_includedir}/%{name}/
%{_libdir}/libflatbuffers.so
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man7/%{name}.7*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# cleanup distribution
rm -rf js net php python go java js biicode {samples/,}android

%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DFLATBUFFERS_BUILD_SHAREDLIB=ON \
	-DFLATBUFFERS_BUILD_FLATLIB=OFF \
	-DFLATBUFFERS_BUILD_FLATC=ON \
	-DFLATBUFFERS_BUILD_TESTS=OFF

%make_build

# Build devel docs
pushd ../docs/source
doxygen
popd

%install
%make_install -C build
mkdir -p %{buildroot}%{_mandir}/man{1,7}
cp -p %{SOURCE1} %{buildroot}%{_mandir}/man1/flatc.1
cp -p %{SOURCE2} %{buildroot}%{_mandir}/man7/%{name}.7

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12705 |21mr|flatpack-4.0.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          flatpack
Version:       4.0.1
Release:       9
Summary:       Flat File Parser via XML Mappings (fixed length,CSV)
License:       ASL 2.0
URL:           http://flatpack.sourceforge.net/
# wget https://github.com/Appendium/flatpack/archive/flatpack-parent-4.0.1.tar.gz
# tar -xf flatpack-parent-4.0.1.tar.gz
# mv flatpack-flatpack-parent-4.0.1 flatpack-4.0.1
# rm -rf flatpack-4.0.1/flatpack/src/site/*  flatpack-4.0.1/flatpack-samples/src/site/* flatpack-4.0.1/src/site/*
# tar cJf flatpack-4.0.1-clean.tar.xz flatpack-4.0.1
Source0:       flatpack-%{version}-clean.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(jdom:jdom)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sourceforge.jexcelapi:jxl)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Simple Java delimited and fixed width file parser.
Handles CSV, Excel CSV, Tab, Pipe delimiters,
just to name a few. Maps column positions in the
file to user friendly names via XML.

%package examples
Summary:       FlatPack Examples

%description examples
This package contains FlatPack Examples.

%package parent
Summary:       FlatPack Parent POM

%description parent
This package provides FlatPack Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.jar" -delete
find . -name "*.class" -delete

%pom_remove_plugin -r :maven-source-plugin
%pom_xpath_remove -r "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

sed -i 's|${pom.artifactId}|${project.artifactId}|' pom.xml %{name}/pom.xml %{name}-samples/pom.xml
sed -i 's|${pom.version}|${project.version}|' pom.xml  %{name}/pom.xml %{name}-samples/pom.xml

%pom_change_dep -r jexcelapi:jxl net.sourceforge.jexcelapi: %{name} %{name}-samples

%pom_xpath_remove -r "pom:Bundle-RequiredExecutionEnvironment" %{name} %{name}-samples

sed -i 's/\r//' LICENSE.txt README.md

%mvn_file net.sf.%{name}:%{name} %{name}
%mvn_alias net.sf.%{name}:%{name} org.apache.servicemix.bundles:org.apache.servicemix.bundles.flatpack
%mvn_file net.sf.%{name}:%{name}-examples %{name}-examples
%mvn_package net.sf.%{name}:%{name}::tests: %{name}

%build

%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license LICENSE.txt

%files examples -f .mfiles-%{name}-examples
%license LICENSE.txt

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12706 |21mr|flatpak-1.14.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global major 0
%global girmajor 1.0
%global libname %mklibname %{name} %{major}
%global girname %mklibname %{name}-gir %{girmajor}
%global devname %mklibname %{name} -d

%{?!_pkgdocdir:%global _pkgdocdir %{_docdir}/%{name}}

Summary:	Application deployment framework for desktop apps
Name:		flatpak
Version:	1.14.4
Release:	1
License:	LGPLv2+
Group:		System/Configuration/Packaging
Url:		https://flatpak.org/
Source0:	https://github.com/flatpak/flatpak/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	bubblewrap
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl
BuildRequires:	intltool
BuildRequires:	xmlto
BuildRequires:	xsltproc
BuildRequires:	attr-devel
BuildRequires:	dwarf-devel
BuildRequires:	gpgme-devel
BuildRequires:	pkgconfig(appstream)
BuildRequires:	pkgconfig(ostree-1)
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libarchive) >= 2.8.0
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libelf) >= 0.8.12
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.4
BuildRequires:	pkgconfig(ostree-1)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
# for variant-schema-compiler
BuildRequires:	python3egg(pyparsing)
# Needed for the document portal
Requires:	fuse
# Crashes with older kernels (the bug being introduced in 4.0.2), without the
# upstream fixes in this version
Recommends:	kernel >= 4.1.0
# Needed for confinement
Requires:	bubblewrap
Requires:	ostree
# Required to ensure flatpak functions
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description
flatpak is a system for building, distributing and running sandboxed desktop
applications on Linux. See https://wiki.gnome.org/Projects/SandboxedApps for
more information.

%files -f %{name}.lang
%doc COPYING
%doc NEWS README.md
%{_bindir}/flatpak
%{_bindir}/flatpak-bisect
%{_bindir}/flatpak-coredumpctl
%{_datadir}/bash-completion/*
%{_datadir}/fish/vendor_completions.d/flatpak.fish
%{_datadir}/fish/vendor_conf.d/flatpak.fish
%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.Flatpak.Authenticator.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.Flatpak.xml
%{_datadir}/dbus-1/services/org.freedesktop.portal.Flatpak.service
%{_datadir}/dbus-1/services/org.freedesktop.Flatpak.service
%{_datadir}/dbus-1/system-services/org.freedesktop.Flatpak.SystemHelper.service
%{_datadir}/dbus-1/services/org.flatpak.Authenticator.Oci.service
%{_datadir}/zsh/site-functions/_flatpak
%{_sysusersdir}/%{name}.conf
# Co-own directory.
%{_datadir}/%{name}
%{_datadir}/polkit-1/actions/org.freedesktop.Flatpak.policy
%{_datadir}/polkit-1/rules.d/org.freedesktop.Flatpak.rules
%{_libexecdir}/flatpak-dbus-proxy
%{_libexecdir}/flatpak-session-helper
%{_libexecdir}/flatpak-system-helper
%{_libexecdir}/flatpak-portal
%{_libexecdir}/flatpak-validate-icon
%{_libexecdir}/revokefs-fuse
%{_libexecdir}/flatpak-oci-authenticator
%dir %{_localstatedir}/lib/flatpak
%dir %{_sysconfdir}/flatpak/remotes.d
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man5/%{name}-metadata.5*
%{_mandir}/man5/%{name}-flatpakref.5*
%{_mandir}/man5/%{name}-flatpakrepo.5*
%{_mandir}/man5/%{name}-installation.5*
%{_mandir}/man5/%{name}-remote.5*
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.Flatpak.SystemHelper.conf
%{_sysconfdir}/profile.d/flatpak.sh
%{_prefix}/lib/systemd/system/flatpak-system-helper.service
%{_userunitdir}/flatpak-session-helper.service
%{_userunitdir}/flatpak-oci-authenticator.service
%{_userunitdir}/flatpak-portal.service
# Co-own directory.
%{_systemd_user_env_generator_dir}/60-flatpak
%{_defaultdocdir}/flatpak/docbook.css
%{_defaultdocdir}/flatpak/flatpak-docs.html
%{_prefix}/lib/systemd/system-environment-generators/60-flatpak-system-only

%post
# Create an (empty) system-wide repo.
flatpak remote-list --system &> /dev/null || :

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
License:	LGPLv2+
Group:		System/Libraries
Requires:	bubblewrap
Requires:	ostree

%description -n %{libname}
This package contains libflatpak.

%files -n %{libname}
%doc COPYING
%{_libdir}/libflatpak.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection Libraries for %{name}
License:	LGPLv2+
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
This package contains libflatpak GObject libraries.

%files -n %{girname}
%{_libdir}/girepository-1.0/Flatpak-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
License:	LGPLv2+
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the pkg-config file and development headers for %{name}.

%files -n %{devname}
%{_datadir}/gir-1.0/Flatpak-%{girmajor}.gir
%{_datadir}/gtk-doc/
%{_includedir}/%{name}/
%{_libdir}/libflatpak.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
(if ! test -x configure; then NOCONFIGURE=1 ./autogen.sh; CONFIGFLAGS=--enable-gtk-doc; fi;
# User namespace support is sufficient.
autoreconf -fi
%configure \
	--with-dwarf-header=%{_includedir}/libdwarf \
	--with-priv-mode=none \
	--with-system-bubblewrap \
	--enable-docbook-docs $CONFIGFLAGS)

%make V=1


%install
%makeinstall_std
# The system repo is not installed by the flatpak build system.
install -d %{buildroot}%{_localstatedir}/lib/flatpak
install -d %{buildroot}%{_sysconfdir}/flatpak/remotes.d
rm -f %{buildroot}%{_libdir}/libflatpak.la

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12707 |21mr|flatpak-kcm-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Flatpak configuration module
Name:		flatpak-kcm
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(flatpak)

%description
Plasma 5 Flatpak configuration module.

%files -f kcm_flatpak.lang
%{_kde5_applicationsdir}/kcm_flatpak.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_flatpak.so
%{_kde5_datadir}/kpackage/kcms/kcm_flatpak/contents/ui/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_flatpak

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12708 |21mr|flex-2.6.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for creating scanners (text pattern recognizers)
Name:		flex
Version:	2.6.4
Release:	5
License:	BSD
Group:		Development/Tools
Url:		https://github.com/westes/flex
Source0:	https://github.com/westes/flex/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:		flex-2.6.1-skel.patch
Patch2:		flex-2.6.4-changes-from-git.patch
BuildRequires:	bison
BuildRequires:	help2man
BuildRequires:	indent
BuildRequires:	texinfo
BuildRequires:	gettext-devel
Requires:	m4
Conflicts:	flex-reentrant

%description
The flex program generates scanners. Scanners are programs which can recognize
lexical patterns in text.

Flex takes pairs of regular expressions and C code as input and generates a C
source file as output. The output file is compiled and linked with a library
to produce an executable.

The executable searches through its input for occurrences of the regular
expressions. When a match is found, it executes the corresponding C code.

Flex was designed to work with both Yacc and Bison, and is used by many
programs as part of their build process.

You should install flex if you are going to use your system for application
development.

%files -f %{name}.lang
%doc NEWS README.md AUTHORS COPYING ONEWS
%{_bindir}/*
%{_mandir}/man1/*
%{_libdir}/libfl*.a
%{_includedir}/FlexLexer.h
%{_infodir}/*
%{_libdir}/pkgconfig/libfl.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Force regeneration of skel.c with Patch2 changes
rm -f src/skel.c

%build
CFLAGS="-fPIC %{optflags}" %configure --disable-rpath --disable-shared --enable-static
%make_build

%install
%make_install

%find_lang %{name}

pushd %{buildroot}
ln -sf flex .%{_bindir}/lex
ln -s flex.1 .%{_mandir}/man1/lex.1
ln -s flex.1 .%{_mandir}/man1/flex++.1
popd

%check
#(tpg) these tests used features removed in bison-2.6
sed -i -e '/test-bison-yylloc/d' -e '/test-bison-yylval/d' tests/Makefile.am

make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12709 |21mr|flite-2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2.2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Small, fast speech synthesis engine (text-to-speech)
Name:		flite
Version:	2.2
Release:	4
License:	MIT
Group:		Sound
Url:		https://github.com/festvox/flite
Source0:	https://github.com/festvox/flite/archive/%{name}-%{version}.tar.gz
Source1:	README-ALSA.txt
Patch0:		flite-2.1-fix-library-interdependencies.patch
BuildRequires:	chrpath
BuildRequires:	ed
BuildRequires:	texi2html
BuildRequires:	pkgconfig(libpulse)

%description
Flite (festival-lite) is a small, fast run-time speech synthesis engine
developed at CMU and primarily designed for small embedded machines and/or
large servers. Flite is designed as an alternative synthesis engine to
Festival for voices built using the FestVox suite of voice building tools.

%files
%doc ACKNOWLEDGEMENTS README-ALSA.txt
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for flite
Group:		System/Libraries
%rename %{_lib}flite1

%description -n %{libname}
Shared libraries for Flite, a small, fast speech synthesis engine.

%files -n %{libname}
%{_libdir}/lib%{name}*.so.%{major}*
%{_libdir}/lib%{name}*.so.1

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for flite
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for Flite, a small, fast speech synthesis engine.

%files -n %{devname}
%{_libdir}/lib%{name}*.so
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/flite.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

cp -p %{SOURCE1} .

%build
autoreconf -fvi
%configure \
	--enable-shared \
	--with-audio=pulseaudio

make V=1

# Build documentation
# latex breakage somewhere...?
#%make -C doc %{name}.html

%install
%make_install

rm %{buildroot}%{_libdir}/libflite*.a
chrpath -d %{buildroot}%{_bindir}/*

mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat > %{buildroot}%{_libdir}/pkgconfig/flite.pc << EOF
prefix=%{_prefix}
exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}
version=%{version}

Name: flite
Description: small, fast speech synthesis engine
Version: ${version}
Libs: -lflite
Cflags:
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12710 |21mr|fltk-1.3.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.3
%define libname %mklibname %{name} %{major}
%define libforms %mklibname %{name}_forms %{major}
%define libgl %mklibname %{name}_gl %{major}
%define libimages %mklibname %{name}_images %{major}
%define devname %mklibname %{name} -d

Summary:	Fast Light Tool Kit (FLTK)
Name:		fltk
Version:	1.3.8
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.fltk.org
Source0:	https://www.fltk.org/pub/fltk/%{version}/%{name}-%{version}-source.tar.gz
Patch1:		fltk-1.3.8-fix-cmake-install-cmake-path.patch
Patch2:		fltk-1.3.8-fix-libdir.patch
BuildRequires:	cmake
BuildRequires:	man
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	jpeg-devel

%description
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r),
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally
developed by Mr. Bill Spitzak and is currently maintained by a
small group of developers across the world with a central
repository in the US.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast Light Tool Kit (FLTK) - main library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Conflicts:	%{name} < 1.3.2

%description -n %{libname}
The Fast Light Tool Kit ("FLTK", pronounced "fulltick") is a LGPL'd
C++ graphical user interface toolkit for X (UNIX(r)), OpenGL(r),
and Microsoft(r) Windows(r) NT 4.0, 95, or 98. It was originally
developed by Mr. Bill Spitzak and is currently maintained by a
small group of developers across the world with a central
repository in the US.

%files -n %{libname}
%{_libdir}/libfltk.so.%{major}
%{_libdir}/libfltk.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libforms}
Summary:	Fast Light Tool Kit (FLTK) - library
Group:		System/Libraries
Conflicts:	%{_lib}fltk0 < 1.3.2-1
Conflicts:	%{name} < 1.3.2

%description -n %{libforms}
This package contains a shared library for %{name}.

%files -n %{libforms}
%{_libdir}/libfltk_forms.so.%{major}
%{_libdir}/libfltk_forms.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libgl}
Summary:	Fast Light Tool Kit (FLTK) - library
Group:		System/Libraries
Conflicts:	%{_lib}fltk0 < 1.3.2-1
Conflicts:	%{name} < 1.3.2

%description -n %{libgl}
This package contains a shared library for %{name}.

%files -n %{libgl}
%{_libdir}/libfltk_gl.so.%{major}
%{_libdir}/libfltk_gl.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libimages}
Summary:	Fast Light Tool Kit (FLTK) - library
Group:		System/Libraries
Conflicts:	%{_lib}fltk0 < 1.3.2-1
Conflicts:	%{name} < 1.3.2

%description -n %{libimages}
This package contains a shared library for %{name}.

%files -n %{libimages}
%{_libdir}/libfltk_images.so.%{major}
%{_libdir}/libfltk_images.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Fast Light Tool Kit (FLTK) - development environment
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libforms} = %{EVRD}
Requires:	%{libgl} = %{EVRD}
Requires:	%{libimages} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Install libfltk1-devel if you need to develop FLTK applications. You'll
need to install the libfltk1.1 package if you plan to run dynamically
linked applications.

%files -n %{devname}
%doc README CHANGES
%{_includedir}/F?
%{_bindir}/fltk-config
%{_bindir}/fluid
%{_iconsdir}/hicolor/*/apps/fluid.png
%{_datadir}/applications/fluid.desktop
%{_datadir}/mime/packages/fluid.xml
%{_mandir}/man?/*
%{_libdir}/cmake/fltk
%{_libdir}/libfltk*.so
%{_libdir}/libfltk*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%define Werror_cflags %{nil}
%cmake \
	-DOPTION_BUILD_SHARED_LIBS=ON \
	-DFLTK_BUILD_TEST=OFF
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12711 |21mr|fluid-soundfont-3.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	patch_pkg_version 2

%define	common_description \
FluidR3 is the third release of Frank Wen's pro-quality GM/GS soundfont.\
The soundfont has lots of excellent samples, including all the GM instruments\
along side with the GS instruments that are recycled and reprogrammed versions\
of the GM presets.

Summary:	Pro-quality GM/GS soundfont
Name:		fluid-soundfont
Version:	3.1
Release:	8
License:	MIT
Group:		Sound
# The original URL (http://www.powermage.com/fluid) seems dead. Therefore we point
# to the Hammersound archives:
URL:            http://www.hammersound.com/cgi-bin/soundlink.pl?action=view_category&category=Collections&ListStart=0&ListLength=20
# There is also: https://musescore.org/en/handbook/soundfont
# The Hammersound source gives us a soundfont in a linux-unfriendly .sfArk format. 
# In order to convert this to a linux-friendly .sf2 format one needs to use a 
# non-free utility sfarkxtc from http://www.melodymachine.com
# This page explains how this conversion is done: http://vsr.informatik.tu-chemnitz.de/staff/jan/nted/doc/ch01s46.html
# Debian folks already did this and we will borrow their source tarball:
Source0:        http://ftp.de.debian.org/debian/pool/main/f/%{name}/%{name}_%{version}.orig.tar.gz
# Some information about the soundfont that can be found in the Hammersound archive:
Source1:        Fluid_R3_Readme.pdf
Source2:	timidity-fluid.cfg
BuildRequires:	soundfont-utils
BuildArch:	noarch

%description
%common_description

#-----------------------------------------------------------------------------

%package common
Summary:	Common files for FluidR3 soundfont
Group:		Sound

%description common
%common_description
This package contains common files shared among all FluidR3 soundfont packages.

%files common
%doc COPYING README *Readme*
%dir %{_datadir}/soundfonts/

#-----------------------------------------------------------------------------

%package gm
Summary:	Pro-quality General Midi soundfont
Group:		Sound
Requires:	%{name}-common = %{version}-%{release}
Provides:	soundfont2
Provides:	soundfont2-default

%description gm
%common_description
This package contains Fluid General Midi (GM) soundfont in soundfont 2.0 (.sf2)
format.

%files gm
%{_datadir}/soundfonts/FluidR3_GM.sf2
%{_datadir}/soundfonts/default.sf2

#-----------------------------------------------------------------------------

%package gs
Summary:	Pro-quality General Standard Extension soundfont
Group:		Sound
Requires:	%{name}-common = %{version}-%{release}
Requires:	%{name}-gm = %{version}-%{release}
Provides:	soundfont2

%description gs
%common_description
This package contains instruments belonging to General Midi's General Standard
(GS) Extension in soundfont 2.0 (.sf2) format.

%files gs
%{_datadir}/soundfonts/FluidR3_GS.sf2

#-----------------------------------------------------------------------------

%package -n timidity-patch-fluid
Summary:	Pro-quality General Midi soundfont in GUS patch format
Group:		Sound
Requires:	%{name}-common = %{version}-%{release}
%rename		fluid-soundfont-lite-patches
Provides:	timidity-instruments = %{patch_pkg_version}
Obsoletes:	timidity-instruments < %{patch_pkg_version}

%description -n timidity-patch-fluid
%common_description
This package contains Fluid General Midi (GM) soundfont in Gravis Ultrasound
(GUS) patch (.pat) format.

%files -n timidity-patch-fluid
%config %{_sysconfdir}/timidity/fluid/FluidR3.cfg
%config %{_sysconfdir}/timidity/timidity-fluid.cfg
%{_datadir}/timidity/fluid/


%post -n timidity-patch-fluid
%{_sbindir}/update-alternatives --install %{_sysconfdir}/timidity/timidity.cfg timidity.cfg %{_sysconfdir}/timidity/timidity-fluid.cfg 40

%postun -n timidity-patch-fluid
if [ "$1" = "0" ]; then
  %{_sbindir}/update-alternatives --remove timidity.cfg %{_sysconfdir}/timidity/timidity-fluid.cfg
fi

#-----------------------------------------------------------------------------

%prep
%setup -q
cp -a %{SOURCE1} .


%build
unsf -v -s -m FluidR3_GM.sf2
unsf -v -s -m FluidR3_GS.sf2

# Cut the size of the patches subpackage:
for bank in GM-B{8,9,16} Standard{1,2,3,4,5,6,7} Room{1,2,3,4,5,6,7} Power{1,2,3} Jazz{1,2,3,4} Brush{1,2}; do
   sed -i "/$bank/d" FluidR3_GM.cfg
   rm -fr *$bank*
done

echo dir /usr/share/timidity/fluid > FluidR3.cfg
cat FluidR3_GM.cfg FluidR3_GS.cfg >> FluidR3.cfg

# The GUS patches get used by a lot of different programs and some need the
# path to the patches to be absolute
#sed -i 's|FluidR3_GM-|%%{_datadir}/soundfonts/%%{name}-lite-patches/FluidR3_GM-|g' FluidR3.cfg
#sed -i 's|FluidR3_GS-|%%{_datadir}/soundfonts/%%{name}-lite-patches/FluidR3_GS-|g' FluidR3.cfg


%install
# The actual soundfonts:
mkdir -p %{buildroot}%{_datadir}/soundfonts
install -p -m 644 FluidR3_GM.sf2 %{buildroot}%{_datadir}/soundfonts
install -p -m 644 FluidR3_GS.sf2 %{buildroot}%{_datadir}/soundfonts
# Create a symlink to denote that this is the Rosa default soundfont
ln -s FluidR3_GM.sf2 %{buildroot}%{_datadir}/soundfonts/default.sf2

# GUS patches:
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_datadir}/timidity/fluid
cp -a FluidR3_GM-* %{buildroot}%{_datadir}/timidity/fluid
cp -a FluidR3_GS-* %{buildroot}%{_datadir}/timidity/fluid
mkdir -p %{buildroot}%{_sysconfdir}/timidity/fluid
install -p -m 644 FluidR3.cfg %{buildroot}%{_sysconfdir}/timidity/fluid/FluidR3.cfg
install -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/timidity/timidity-fluid.cfg


%triggerpostun -- TiMidity++ <= 2.13.2-1mdk
%{_sbindir}/update-alternatives --install %{_sysconfdir}/timidity/timidity.cfg timidity.cfg %{_sysconfdir}/timidity/timidity-fluid.cfg 40

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12712 |21mr|fluidsynth-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 3
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Realtime, SoundFont-based synthesizer
Name:		fluidsynth
Version:	2.3.0
Release:	1
License:	LGPLv2+
Group:		Sound
Url:		https://www.fluidsynth.org/
Source0:	https://github.com/FluidSynth/fluidsynth/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	chrpath
BuildRequires:	doxygen
BuildRequires:	ladspa-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0) >= 2.26.0
BuildRequires:	pkgconfig(jack)
# FIXME: Find a way to use ladish, to avoid conflicts forcing the removing
# of packages using it (eg Carla or Cadence)
#BuildRequires:	pkgconfig(lash-1.0) >= 0.3
# FIXME: Still in Contrib...
#BuildRequires:	pkgconfig(libinstpatch-1.0) >= 1.1.0
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ompi)
BuildRequires:	pkgconfig(portaudio-2.0) >= 19
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(sndfile) >= 1.0.18
BuildRequires:	pkgconfig(systemd)

%description
FluidSynth is a real-time software synthesizer based on the SoundFont 2
specifications. It is a "software synthesizer". FluidSynth can read MIDI
events from the MIDI input device and render them to the audio device. It can
also play MIDI files.

%files
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%license LICENSE
%{_libdir}/libfluidsynth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc AUTHORS TODO
%{_includedir}/%{name}.h
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/libfluidsynth.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake	\
	-Denable-ladspa=on	\
	-Denable-lash=off	\
	-Denable-portaudio=on	\
	-DLIB_SUFFIX=''
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12713 |21mr|flute-1.3.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name: flute
Version: 1.3.0
Release: 13
Summary: Java CSS parser using SAC
# The entire source code is W3C except ParseException.java which is LGPLv2+
License: W3C and LGPLv2+
Group:   System/Libraries
Source0: http://downloads.sourceforge.net/jfreereport/%{name}-%{version}-OOo31.zip
URL: http://www.w3.org/Style/CSS/SAC/
BuildRequires: ant, java-devel >= 0:1.6.0, jpackage-utils, sac, java-rpmbuild
Requires: sac
Requires: javapackages-filesystem
# java stack not available on i686
ExcludeArch: %{ix86}

%description
A Cascading Style Sheets parser using the Simple API for CSS, for Java.

%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib sac

%build
ant jar javadoc

%install
mkdir -p %{buildroot}%{_javadir}
cp -p build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp build/api %{buildroot}%{_javadocdir}/%{name}

%files
%defattr(0644,root,root,0755)
%license COPYRIGHT.html
%{_javadir}/*.jar

%files javadoc
%defattr(0644,root,root,0755)
%license COPYRIGHT.html
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12714 |21mr|fmirror-0.8.4-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FTP mirroring package
Name:		fmirror
Version:	0.8.4
Release:	22
License:	GPLv2+
Group:		Networking/File transfer
URL:		ftp://ftp.sunet.se/pub/nir/ftp/utilities/fmirror/
Source:		ftp://ftp.sunet.se/pub/nir/ftp/utilities/fmirror/testing/%{name}-%{version}.tar.bz2
Patch0:		fmirror-mandriva.patch
Patch1:		fmirror-0.8.4-anonymous.patch
Patch2:		fmirror-0.8.4-typofix_inman.patch
Patch3:		fmirror-0.8.4-signal.patch
Patch4:		fmirror-0.8.4-skip-solaris-acl.patch
Patch5:		fmirror-0.8.4-maxdel.patch
Patch6:		fmirror-0.8.4-eol.patch
Patch7:		fmirror-0.8.4-remotez.patch
Patch8:		fmirror-0.8.4-bugfix.patch

%description
This is an FTP mirroring package; it is useful to keep in sync with some FTP
site.

%prep

%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

%build
%configure
%make

%install
rm -rf %{buildroot}

%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/*
%{_mandir}/man?/*
%{_datadir}/fmirror

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12715 |21mr|fmpp-0.9.14-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fmpp_version 0.9.14

Name:		fmpp
Version:	%{fmpp_version}
Release:	12
Summary:	FreeMarker-based text file PreProcessor 

License:	BSD
URL:		http://fmpp.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/fmpp/fmpp_%{version}.tar.gz

Patch0:		fmpp-0.9.14-build.xml.patch
Patch1:		fmpp-0.9.14-excise-imageinfo.patch

BuildRequires:	javapackages-local

BuildRequires:	ant

BuildRequires:	mvn(oro:oro)
BuildRequires:	mvn(org.freemarker:freemarker)
BuildRequires:	mvn(org.beanshell:bsh)
BuildRequires:	mvn(xml-resolver:xml-resolver)
BuildRequires:	mvn(xml-apis:xml-apis) 

Requires:	mvn(oro:oro)
Requires:	mvn(org.freemarker:freemarker)
Requires:	mvn(org.beanshell:bsh)
Requires:	mvn(xml-resolver:xml-resolver)
Requires:	mvn(xml-apis:xml-apis) 

Group:          Development/Java
BuildArch:	noarch


%description

FMPP is a general-purpose text file preprocessor tool that uses
FreeMarker templates. It is particularly designed for HTML
preprocessor, to generate complete (static) homepages: directory
structure that contains HTML-s, image files, etc. But of course it can
be used to generate source code or whatever text files. FMPP is
extendable with Java classes to pull data from any data sources
(database, etc.) and embed the data into the generated files.

%package javadoc
Summary:	Javadoc for %{name}
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
Javadoc for %{name}.


%prep
%setup -q -n %{name}_%{fmpp_version}
%patch0 -p1 
%patch1 -p1 

find lib -name \*.jar -delete

rm -rf lib/forbuild/classes

# these two tests don't pass for some reason
find . -name always_create_dirs_\* -and -type d | xargs rm -rf

# strip carriage returns
find . -name \*.fmpp -or\
 -name package-list -or\
 -name \*.bsh -or\
 -name \*.txt -or\
 -name \*.xml -or\
 -name \*.c -or \
 -name \*.css -or \
 -name \*.csv -or \
 -name \*.dtd -or \
 -name \*.ent -or \
 -name \*.ftl -or \
 -name \*.html -or \
 -name \*.tdd| xargs sed -i 's/\r$//'

%build

ant build

ant make-pom

%mvn_artifact build/pom.xml lib/fmpp.jar

%check

ant test

%install
%mvn_install -J docs

%files -f .mfiles
%doc LICENSE.txt README.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt README.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12716 |21mr|fmt-7.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Small, safe and fast formatting library
Name:		fmt
Version:	7.1.3
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://fmtlib.net
Source0:	https://github.com/fmtlib/fmt/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
fmt is an open-source formatting library for C++. It can be used as a safe
alternative to printf or as a fast alternative to IOStreams.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Small, safe and fast formatting shared library
Group:		System/Libraries

%description -n %{libname}
This package contains the library for libfmt.

%files -n %{libname}
%doc ChangeLog.rst LICENSE.rst README.rst
%{_libdir}/libfmt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for small, safe and fast formatting library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development header files, libraries
and cmake files for libfmt

%files -n %{devname}
%doc LICENSE.rst
%{_includedir}/%{name}/
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/fmt.pc
%{_libdir}/libfmt.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DFMT_TEST=OFF
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12717 |21mr|folks-0.15.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define dirver	26
%define major	26
%define gir_major 0.7
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{gir_major}
%define devname %mklibname %{name} -d

Summary:	Aggregates people from multiple sources to create metacontacts
Name:		folks
Version:	0.15.5
Release:	3
License:	LGPLv2+
Group:		Networking/Instant messaging
Url:		https://download.gnome.org/sources/folks
Source0:	https://download.gnome.org/sources/folks/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	glib2.0-common
BuildRequires:	intltool
BuildRequires:	meson
# In Contrib
# BuildRequires:	valadoc
BuildRequires:	vala-tools
BuildRequires:	readline-devel
BuildRequires:	python3egg(python-dbusmock)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libedata-book-1.2)
BuildRequires:	pkgconfig(libedataserver-1.2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(vapigen)
Requires:	evolution-data-server
Requires:	python3egg(python-dbusmock)

%description
libfolks is a library that aggregates people from multiple sources (eg,
Telepathy connection managers and eventually evolution data server, Facebook,
etc.) to create metacontacts. It's written in Vala (in part to evaluate Vala).
The initial goal is for GObject/C support, though the Vala bindings should
basically automatic.

%files -f %{name}.lang
%doc AUTHORS README.md
%license COPYING
%{_bindir}/folks-*
%{_datadir}/GConf/gsettings/folks.convert
%{_datadir}/glib-2.0/schemas/org.freedesktop.folks.gschema.xml
%{_libdir}/folks/%{dirver}/backends

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Aggregates people from multiple sources
Group:		System/Libraries

%description -n %{libname}
This package contains the dynamic libraries from %{name}.

%files -n %{libname}
%license COPYING
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	Aggregates people from multiple sources
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
This package contains the Gir-repository typelib for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/Folks*-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Aggregates people from multiple sources
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This packages contains the headers and libraries for %{name}.

%files -n %{devname}
%license COPYING
%{_datadir}/gir-1.0/Folks*-%{gir_major}.gir
%{_datadir}/vala/vapi/folks*
%{_includedir}/folks
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%ifarch aarch64
%meson \
	-Dbluez_backend=false	\
	-Deds_backend=false	\
	-Dofono_backend=false
%else
%meson
%endif
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12718 |21mr|foma-0.9.18-0.9.20200928gitb44022c
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Upstream changed its licensing to ASL 2.0 after releasing 0.9.18.
# I have decided to use the newest upstream code from September 2020 because
# in addition to many other fixes it fixes the build on Fedora.
%global commit0 b44022c7d9d347dc7392aabbf72c82e558767675
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global snapshotdate 20200928

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		foma
Version:	0.9.18
Release:	0.9.%{snapshotdate}git%{shortcommit0}%{?dist}
Summary:	Xerox-compatible finite-state compiler
Group:		Text tools
License:	ASL 2.0
URL:		https://github.com/mhulden/foma
Source0:	https://github.com/mhulden/%{name}/archive/%{commit0}.tar.gz#/%{name}-%{shortcommit0}.tar.gz

# This patch is made after the OpenSUSE patch at
# https://build.opensuse.org/package/view_file/openSUSE:Factory/foma/foma-harden-build.patch?expand=1
#
# Foma does not use autotools, which complicates things a bit.
# CFLAGS, LDFLAGS and FLOOKUPLDFLAGS are edited with sed during the build so
# that the Fedora hardening switches are used. We can't, however, just
# add -pie to all of the linking phases with sed, because that would break
# the linker when building the shared library. For discussion on a similar
# issue, see https://lists.debian.org/debian-devel/2016/05/msg00302.html
Patch0:		foma-harden-build-fedora.patch
BuildRequires:	zlib-devel
BuildRequires:	readline-devel
BuildRequires:	flex
BuildRequires:	bison
Requires:	%{libname} = %{EVRD}

%description
Foma can be used for constructing finite-state automata and transducers.
It has support for many natural language processing applications such as
producing morphological analyzers. It is sufficiently generic to use for
a large number of purposes in addition to NLP. The foma interface is
similar to the Xerox xfst interface.

This package includes the foma command line tools.

%files
%doc foma/README
%{_bindir}/cgflookup
%{_bindir}/flookup
%{_bindir}/foma

#-----------------------------------------------------------------------
%package -n %{libname}
Summary:	The foma C library
Group:		System/Libraries

%description -n %{libname}
Foma can be used for constructing finite-state automata and transducers.
It has support for many natural language processing applications such as
producing morphological analyzers. It is sufficiently generic to use for
a large number of purposes in addition to NLP. The foma interface is
similar to the Xerox xfst interface.

This package includes the foma C library.

%files -n %{libname}
%{_libdir}/libfoma.so.%{major}*

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libfoma-devel package contains libraries and header files for
developing applications that use libfoma.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/libfoma.so
%{_libdir}/pkgconfig/libfoma.pc

#-----------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{commit0} -p1

%build
sed -i '/^CFLAGS/c\CFLAGS = %{optflags} -Wl,--as-needed -D_GNU_SOURCE -std=c99 -fvisibility=hidden -fPIC' foma/Makefile
sed -i '/^LDFLAGS/c\LDFLAGS = -lreadline -lz %{build_ldflags}' foma/Makefile
sed -i '/^FLOOKUPLDFLAGS/c\FLOOKUPLDFLAGS = libfoma.a -lz %{build_ldflags}' foma/Makefile
sed -i 's|echo "prefix=${prefix}"|echo "prefix=%{_prefix}"|' foma/Makefile

cd foma
%make_build

%install
sed -i '/^prefix/c\prefix = %{buildroot}%{_prefix}' foma/Makefile
sed -i '/^libdir/c\libdir = %{buildroot}%{_libdir}' foma/Makefile
cd foma
%make_install
# Remove static archive
find %{buildroot} -name '*.a' -exec rm -f {} ';'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12719 |21mr|fontconfig-2.13.94-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# We pushed patches from plf to main repository (TK 03062015)

Summary:	Font configuration library
Name:		fontconfig
Version:	2.13.94
Release:	3
License:	MIT
Group:		System/X11
Url:		https://fontconfig.org/
Source0:	https://www.freedesktop.org/software/fontconfig/release/%{name}-%{version}.tar.xz
# (fc) 2.3.2-3mdk prefer urw fonts
Source1:	30-mdv-urwfonts.conf
Source2:	10-antialias.conf
# (fc) 2.3.2-3mdk disable antialiasing for some fonts
Source3:	20-mdv-disable-antialias.conf
Source4:	10-hinting.conf
# (fc) 2.3.2-3mdk  Avoid KDE/QT uses some bitmapped fonts (guisseppe)
Source5:	30-mdv-avoid-bitmap.conf
# (fc) 2.4.2-1mdv disable embedded bitmap for big size (Mdv bug #25924)
Source8:	26-mdv-no-embeddedbitmap.conf
# (fc) 2.4.92-1mdv enable embeddedbitmap on some CJK fonts (Fedora)
Source10:	25-no-bitmap-fedora.conf
Patch0:		fontconfig-2.13.94-path-cache.patch
Patch2:		fontconfig-2.13.0-fonts-nanum.patch
Patch3:		fontconfig-2.13.0-lcdfilterlegacy.patch
Patch4:		fontconfig-2.13.94-mdvconfig.patch
Patch6:		fontconfig-2.13.0-sleep-less.patch
Patch7:		fontconfig-2.13.0-ubuntu-add-hinting-and-antialiasing-confs.patch
Patch8:		fontconfig-2.13.0-ubuntu-add-monospace-lcd-filter-conf.patch
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	docbook-utils
BuildRequires:	ed
BuildRequires:	gperf
BuildRequires:	lynx
BuildRequires:	meson
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uuid)
Provides:	lib%{name} = %{EVRD}
Provides:	%{name}-libs = %{EVRD}
# fwang: add conflicts to ease upgrade
Conflicts:	x11-font-wqy-bitmapfont < 1.0-0.20070901.1

%description
Fontconfig is designed to locate fonts within the system and select them
according to requirements specified by applications.

This package contains Ubuntu LCD patches.

%files -f %{name}.lang
%doc README AUTHORS COPYING doc/fontconfig-user.html doc/fontconfig-user.txt
%{_var}/cache/fontconfig
%{_bindir}/*
%dir %{_sysconfdir}/fonts
%dir %{_sysconfdir}/fonts/conf.d
%{_datadir}/gettext/its/fontconfig.*
%{_datadir}/locale/zh_CN/*/fontconfig-conf.mo
%{_datadir}/%{name}/conf.avail
%{_datadir}/xml/fontconfig/fonts.dtd
# those files must NOT have noreplace option
%config %{_sysconfdir}/fonts/fonts.conf
%config %{_sysconfdir}/fonts/conf.d/*.conf
%config %{_sysconfdir}/fonts/conf.d/README
%{_mandir}/man1/*
%{_mandir}/man5/*

%transfiletriggerin -- /usr/share/fonts /usr/share/X11/fonts/Type1 /usr/share/X11/fonts/TTF /usr/share/fonts /usr/lib/X11/fonts /usr/X11R6/lib/X11/fonts /usr/local/share/fonts /opt/ttfonts
HOME=/root fc-cache -s

%transfiletriggerpostun -- /usr/share/fonts /usr/share/X11/fonts/Type1 /usr/share/X11/fonts/TTF /usr/share/fonts /usr/lib/X11/fonts /usr/X11R6/lib/X11/fonts /usr/local/share/fonts /opt/ttfonts
HOME=/root fc-cache -s

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Font configuration and customization library
Group:		System/Libraries

%description -n %{libname}
Fontconfig is designed to locate fonts within the system and select them
according to requirements specified by applications.

%files -n %{libname}
%{_libdir}/libfontconfig.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Font configuration and customization library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package includes the header files, and developer docs for the fontconfig
package. Install it if you want to develop programs which will use fontconfig.

%files -n %{devname}
%doc doc/fontconfig-devel doc/fontconfig-devel.txt 
%{_datadir}/doc/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%ifarch %{e2k}
sed -i 's/gcc/lcc/' src/meson.build
%endif
%meson	\
	-Ddoc-txt=disabled	\
	-Ddoc-html=disabled

%install
mkdir -p %{buildroot}%{_var}/cache/fontconfig
sed -i "s!@buildroot@!%{buildroot}!" fc-cache/meson.build
%meson_install

# unknown element "reset-dirs"
rm -f %{buildroot}%{_datadir}/%{name}/conf.avail/05-reset-dirs-sample.conf

mkdir -p %{buildroot}%{_sysconfdir}/fonts/conf.d
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE10} %{buildroot}%{_sysconfdir}/fonts/conf.d 

# needed in case main config files isn't up to date
cat << EOF > %{buildroot}%{_sysconfdir}/fonts/conf.d/00-cache.conf
<?xml version="1.0"?>
<!DOCTYPE fontconfig SYSTEM "fonts.dtd">
<fontconfig>
<!-- Font cache directory list -->

        <cachedir>/var/cache/fontconfig</cachedir>
        <cachedir>~/.fontconfig</cachedir>

</fontconfig>
EOF

ln -sf ../../..%{_datadir}/%{name}/conf.avail/10-antialias.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/10-antialias.conf
ln -sf ../../..%{_datadir}/%{name}/conf.avail/10-hinting.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/10-hinting.conf
ln -sf ../../..%{_datadir}/%{name}/conf.avail/10-sub-pixel-rgb.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/10-sub-pixel-rgb.conf
ln -sf ../../..%{_datadir}/%{name}/conf.avail/11-lcdfilter-default.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/11-lcdfilter-default.conf
ln -sf ../../..%{_datadir}/%{name}/conf.avail/25-unhint-nonlatin.conf %{buildroot}%{_sysconfdir}/fonts/conf.d/25-unhint-nonlatin.conf

# Fixed errors and warnings with new features, which unsupported in old applications
sed -i \
	-e '/<its:rules/d' \
	-e '/<\/its:rules/d' \
	-e '/<its:translateRule/d' \
	-e '/<\/its:translateRule/d' \
	-e '/<description/d' \
	-e '/<\/description/d' \
	%{buildroot}{%{_datadir}/%{name}/conf.avail,%{_sysconfdir}/fonts}/*.conf

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12720 |21mr|fontforge-1.0-0.20200314.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ffversion 20200314

%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

#define gnulib_githead 2bf7326

Summary:	Font Editor for PostScript, TrueType, OpenType and various fonts
Name:		fontforge
Version:	1.0
Release:	0.%{ffversion}.3
License:	BSD
Group:		Publishing
Url:		http://fontforge.sourceforge.net/
# For current version, check https://github.com/fontforge/fontforge/releases
Source0:	http://github.com/fontforge/fontforge/archive/%{ffversion}.tar.gz?/%{name}-%{ffversion}.tar.gz
# https://github.com/fontforge/fontforge/pull/4269
Patch1:		fontforge-20200314-sphinx-make-changes-to-support-Sphinx-3.patch

BuildRequires:	chrpath
BuildRequires:	desktop-file-utils
BuildRequires:	cmake
BuildRequires:	git
BuildRequires:	jpeg-devel
BuildRequires:	libuninameslist-devel
BuildRequires:	libltdl-devel
BuildRequires:	ungif-devel
BuildRequires:	uthash-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pangoxft)
BuildRequires:	pkgconfig(libspiro)
BuildRequires:	pkgconfig(readline)

#for create docs
BuildRequires:	python3egg(sphinx)

# (Abel) it wants either autotrace or potrace
Requires:	potrace
Provides:	/usr/bin/fontforge

%description
FontForge is an outline font editor that lets you create your own 
postscript, truetype, opentype, cid-keyed, multi-master, cff, svg and 
bitmap (bdf) fonts, or edit existing ones. Also lets you convert one
format to another. FontForge has support for many macintosh font formats.

%files -f FontForge.lang
%{_bindir}/*
%{_mandir}/man1/*
%{_iconsdir}/hicolor/*/apps/org.%{name}*
%{_datadir}/applications/org.fontforge.FontForge.desktop
%{_datadir}/metainfo/org.fontforge.*
%{_datadir}/mime/packages/fontforge.xml
%{_datadir}/%{name}
#%%{_docdir}/fontforge/*
%{_datadir}/pixmaps/org.fontforge.*

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Library for %{name}

%description -n %{libname}
This package contains the shared library libfontforge.

%files -n %{libname}
%{_libdir}/libfontforge.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Group:		Development/C
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_libdir}/lib*.so

#----------------------------------------------------------------------------

%package python3
Group:		Development/Python
Summary:	Library bindings for python

%description python3
This package contains the python library for python applications that
use %{name}.

%files python3
%{python3_sitearch}/fontforge.so
%{python3_sitearch}/psMat.so

#----------------------------------------------------------------------------

%prep
%setup -qn fontforge-%{ffversion}
%apply_patches

%build
%global optflags %{optflags} -fno-strict-aliasing
%cmake \
	-DBUILD_SHARED_LIBS=on \
	-DENABLE_X11=on \
	-DENABLE_PYTHON_EXTENSION=on \
	-DENABLE_LIBREADLINE=on \
	-DENABLE_DOCS=off
%make -s

%install
pushd build
%makeinstall_std
popd

desktop-file-install \
	--dir %{buildroot}%{_datadir}/applications \
	desktop/org.fontforge.FontForge.desktop
rm -f %{buildroot}/%{_docdir}/fontforge/.buildinfo
rm -f %{buildroot}/%{_docdir}/fontforge/.nojekyll

%find_lang FontForge

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12721 |21mr|fontpackages-1.44-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spectemplatedir %{_sysconfdir}/rpmdevtools/
%global ftcgtemplatedir %{_datadir}/fontconfig/templates/
%global rpmmacrodir     %{_sysconfdir}/rpm/

Name:    fontpackages
Version: 1.44
Release: 5
Summary: Common directory and macro definitions used by font packages


# Mostly means the scriptlets inserted via this package do not change the
# license of the packages they're inserted in
Group:	   System/X11
License:   LGPLv3+
URL:       http://fedoraproject.org/wiki/fontpackages
Source0:   http://fedorahosted.org/releases/f/o/%{name}/%{name}-%{version}.tar.xz

BuildArch: noarch


%description
This package contains the basic directory layout, spec templates, rpm macros
and other materials used to create font packages.


%package filesystem
Summary: Directories used by font packages
License: Public Domain

%description filesystem
This package contains the basic directory layout used by font packages,
including the correct permissions for the directories.


%package devel
Summary: Templates and macros used to create font packages

Requires: rpmdevtools, %{name}-filesystem = %{version}-%{release}
Requires: fontconfig

%description devel
This package contains spec templates, rpm macros and other materials used to
create font packages.


%package tools
Summary: Tools used to check fonts and font packages

Requires: fontconfig, fontforge
Requires: curl, make
Recommends: mutt
Requires: rpmlint

%description tools
This package contains tools used to check fonts and font packages


%prep
%setup -q

%build
for file in bin/repo-font-audit bin/compare-repo-font-audit ; do
sed -i "s|^DATADIR\([[:space:]]*\)\?=\(.*\)$|DATADIR=%{_datadir}/%{name}|g" \
  $file
done

%install

# Pull macros out of macros.fonts and emulate them during install
for dir in fontbasedir        fontconfig_masterdir \
           fontconfig_confdir fontconfig_templatedir ; do
  export _${dir}=$(rpm --eval $(%{__grep} -E "^%_${dir}\b" \
    rpm/macros.fonts | %{__awk} '{ print $2 }'))
done

install -m 0755 -d %{buildroot}${_fontbasedir} \
                   %{buildroot}${_fontconfig_masterdir} \
                   %{buildroot}${_fontconfig_confdir} \
                   %{buildroot}${_fontconfig_templatedir} \
                   %{buildroot}%{spectemplatedir} \
                   %{buildroot}%{rpmmacrodir} \
                   %{buildroot}%{_datadir}/fontconfig/templates \
                   %{buildroot}/%_datadir/%{name} \
                   %{buildroot}%{_bindir}
install -m 0644 -p spec-templates/*.spec       %{buildroot}%{spectemplatedir}
install -m 0644 -p fontconfig-templates/*      %{buildroot}%{ftcgtemplatedir}
install -m 0644 -p rpm/macros*                 %{buildroot}%{rpmmacrodir}
install -m 0644 -p private/repo-font-audit.mk  %{buildroot}/%{_datadir}/%{name}
install -m 0755 -p private/core-fonts-report \
                   private/font-links-report \
                   private/fonts-report \
                   private/process-fc-query \
                   private/test-info           %{buildroot}/%{_datadir}/%{name}
install -m 0755 -p bin/*                       %{buildroot}%{_bindir}

cat <<EOF > %{name}-%{version}.files
%defattr(0644,root,root,0755)
%dir ${_fontbasedir}
%dir ${_fontconfig_masterdir}
%dir ${_fontconfig_confdir}
%dir ${_fontconfig_templatedir}
EOF

%files filesystem -f %{name}-%{version}.files
%defattr(0644,root,root,0755)
%dir %{_datadir}/fontconfig

%files devel
%defattr(0644,root,root,0755)
%doc license.txt readme.txt
%config(noreplace) %{spectemplatedir}/*.spec
%{rpmmacrodir}/macros*
%dir %{ftcgtemplatedir}
%{ftcgtemplatedir}/*conf
%{ftcgtemplatedir}/*txt

%files tools
%defattr(0644,root,root,0755)
%doc license.txt readme.txt
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/repo-font-audit.mk
%defattr(0755,root,root,0755)
%{_datadir}/%{name}/core-fonts-report
%{_datadir}/%{name}/font-links-report
%{_datadir}/%{name}/fonts-report
%{_datadir}/%{name}/process-fc-query
%{_datadir}/%{name}/test-info
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12722 |21mr|fonts-bitmap-misc-console-1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name fonts-bitmap-misc-console
%define version 1.3
%define release 5

Summary:    Console font backported from KDE3
Name:       %{name}
Version:    %{version}
Release:    %{release}
Source0:    %{name}-%{version}.tar.xz
License:    GPLv2+
Group:      Graphical desktop/KDE
Url:        https://abf.rosalinux.ru/captainflint/fonts-bitmap-misc-console
Packager:   Konstantin Vlasov <konstantin.vlasov@rosalab.ru>
BuildArch:  noarch
Requires:   fontconfig
Requires:   mkfontdir

%description
The fixed-sized font Console is optimized for terminal applications and makes
Konsole look pretty.

%prep
%setup -q

%build

%install
rm -rf %buildroot

mkdir -p %{buildroot}%{_datadir}/fonts/misc
install -m 0644 usr/share/fonts/misc/console8x16.pcf.gz %{buildroot}%{_datadir}/fonts/misc/

%files
%defattr(-,root,root)
%{_datadir}/fonts/misc/console8x16.pcf.gz

%post
fc-cache
mkfontdir /usr/share/fonts/misc

%postun
fc-cache
mkfontdir /usr/share/fonts/misc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12723 |21mr|fonts-otf-google-noto-cjk-20190416-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname google-noto-cjk-fonts
%define fedora 30

%global commit0 be6c059ac1587e556e2412b27f5155c8eb3ddbe6
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

%global fontname google-noto-cjk
%global fontconf google-noto
%global fontconf2 65-%{fontconf}-cjk-fonts.conf

%global common_desc \
Noto CJK fonts, supporting Simplified Chinese, Traditional Chinese, \
Japanese, and Korean. The supported scripts are Han, Hiragana, Katakana, \
Hangul, and Bopomofo. Latin, Greek, Cyrllic, and various symbols are also \
supported for compatibility with CJK standards. \
%{nil}

Name:           fonts-otf-google-noto-cjk
Version:        20190416
Release:        2
Summary:        Google Noto Sans CJK Fonts
Group:          System/Fonts/True type

License:        OFL
URL:            https://github.com/googlei18n/noto-cjk
Source0:        https://github.com/googlei18n/noto-cjk/archive/%{commit0}.tar.gz#/noto-cjk-%{shortcommit0}.tar.gz
Source1:        genfontconf.py
Source2:        genfontconf.sh
Source3:        %{fontconf2}

BuildArch:      noarch
BuildRequires:  fontpackages-devel
BuildRequires:  python3
BuildRequires:  /usr/bin/xmllint
Requires:       fonts-otf-google-noto-sans-cjk-ttc
Requires:       fonts-otf-google-noto-serif-cjk-ttc

%if 0%{?fedora}

Provides:       google-noto-sans-cjk-fonts = %{EVRD}

# notocjkrep Package Name
%define notocjkrep(:)\
%define pname %(echo %{*} | tr "A-Z " "a-z-")\
Provides:       google-noto-%{pname}-fonts = %{EVRD}\
Provides:       google-noto-cjk-%{pname}-fonts = %{version}-%{release}\


%notocjkrep Sans Simplified Chinese
%notocjkrep Sans Traditional Chinese
%notocjkrep Sans Japanese
%notocjkrep Sans Korean

%endif

%description
%common_desc

%package -n fonts-otf-google-noto-cjk-common
Group: System/Fonts/True type
Summary:        Common files for Noto CJK fonts

%description -n fonts-otf-google-noto-cjk-common
%common_desc

%package -n fonts-otf-google-noto-sans-cjk-ttc
Summary:	Sans OTC font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-cjk-ttc
%common_desc
Noto font Sans OTC.

%files -n fonts-otf-google-noto-sans-cjk-ttc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansCJK-*.ttc
%{_fontconfig_templatedir}/65-0-%{fontconf}-sans-cjk-ttc.conf
%config(noreplace) %{_fontconfig_confdir}/65-0-%{fontconf}-sans-cjk-ttc.conf

%package -n fonts-otf-google-noto-serif-cjk-ttc
Summary:	Serif OTC font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-cjk-ttc
%common_desc
Noto font Serif OTC.

%files -n fonts-otf-google-noto-serif-cjk-ttc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifCJK-*.ttc
%{_fontconfig_templatedir}/65-0-%{fontconf}-serif-cjk-ttc.conf
%config(noreplace) %{_fontconfig_confdir}/65-0-%{fontconf}-serif-cjk-ttc.conf

%package -n fonts-otf-google-noto-sans-cjk-jp
Summary:	Japanese Multilingual Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-cjk-jp
%common_desc
Noto font Japanese Multilingual Sans OTF.

%files -n fonts-otf-google-noto-sans-cjk-jp
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansCJKjp-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cjk-jp.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cjk-jp.conf

%package -n fonts-otf-google-noto-serif-cjk-jp
Summary:	Japanese Multilingual Serif OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-cjk-jp
%common_desc
Noto font Japanese Multilingual Serif OTF.

%files -n fonts-otf-google-noto-serif-cjk-jp
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifCJKjp-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-cjk-jp.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-cjk-jp.conf

%package -n fonts-otf-google-noto-sans-mono-cjk-jp
Summary:	Japanese Multilingual Sans Mono OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-mono-cjk-jp
%common_desc
Noto font Japanese Multilingual Sans Mono OTF.

%files -n fonts-otf-google-noto-sans-mono-cjk-jp
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansMonoCJKjp-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mono-cjk-jp.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mono-cjk-jp.conf

%package -n fonts-otf-google-noto-sans-cjk-kr
Summary:	Korean Multilingual Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-cjk-kr
%common_desc
Noto font Korean Multilingual Sans OTF.

%files -n fonts-otf-google-noto-sans-cjk-kr
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansCJKkr-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cjk-kr.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cjk-kr.conf

%package -n fonts-otf-google-noto-serif-cjk-kr
Summary:	Korean Multilingual Serif OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-cjk-kr
%common_desc
Noto font Korean Multilingual Serif OTF.

%files -n fonts-otf-google-noto-serif-cjk-kr
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifCJKkr-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-cjk-kr.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-cjk-kr.conf

%package -n fonts-otf-google-noto-sans-mono-cjk-kr
Summary:	Korean Multilingual Sans Mono OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-mono-cjk-kr
%common_desc
Noto font Korean Multilingual Sans Mono OTF.

%files -n fonts-otf-google-noto-sans-mono-cjk-kr
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansMonoCJKkr-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mono-cjk-kr.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mono-cjk-kr.conf

%package -n fonts-otf-google-noto-sans-cjk-sc
Summary:	Simplified Chinese Multilingual Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-cjk-sc
%common_desc
Noto font Simplified Chinese Multilingual Sans OTF.

%files -n fonts-otf-google-noto-sans-cjk-sc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansCJKsc-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cjk-sc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cjk-sc.conf

%package -n fonts-otf-google-noto-serif-cjk-sc
Summary:	Simplified Chinese Multilingual Serif OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-cjk-sc
%common_desc
Noto font Simplified Chinese Multilingual Serif OTF.

%files -n fonts-otf-google-noto-serif-cjk-sc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifCJKsc-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-cjk-sc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-cjk-sc.conf

%package -n fonts-otf-google-noto-sans-mono-cjk-sc
Summary:	Simplified Chinese Multilingual Sans Mono OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-mono-cjk-sc
%common_desc
Noto font Simplified Chinese Multilingual Sans Mono OTF.

%files -n fonts-otf-google-noto-sans-mono-cjk-sc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansMonoCJKsc-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mono-cjk-sc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mono-cjk-sc.conf

%package -n fonts-otf-google-noto-sans-cjk-tc
Summary:	Traditional Chinese Multilingual Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-cjk-tc
%common_desc
Noto font Traditional Chinese Multilingual Sans OTF.

%files -n fonts-otf-google-noto-sans-cjk-tc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansCJKtc-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cjk-tc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cjk-tc.conf

%package -n fonts-otf-google-noto-serif-cjk-tc
Summary:	Traditional Chinese Multilingual Serif OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-cjk-tc
%common_desc
Noto font Traditional Chinese Multilingual Serif OTF.

%files -n fonts-otf-google-noto-serif-cjk-tc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifCJKtc-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-cjk-tc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-cjk-tc.conf

%package -n fonts-otf-google-noto-sans-mono-cjk-tc
Summary:	Traditional Chinese Multilingual Sans Mono OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-mono-cjk-tc
%common_desc
Noto font Traditional Chinese Multilingual Sans Mono OTF.

%files -n fonts-otf-google-noto-sans-mono-cjk-tc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansMonoCJKtc-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mono-cjk-tc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mono-cjk-tc.conf

%package -n fonts-otf-google-noto-sans-cjk-hk
Summary:	Traditional Chinese Multilingual Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-cjk-hk
%common_desc
Noto font Traditional Chinese Multilingual Sans OTF.

%files -n fonts-otf-google-noto-sans-cjk-hk
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansCJKhk-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cjk-hk.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cjk-hk.conf

%package -n fonts-otf-google-noto-sans-mono-cjk-hk
Summary:	Traditional Chinese Multilingual Sans Mono OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-mono-cjk-hk
%common_desc
Noto font Traditional Chinese Multilingual Sans Mono OTF.

%files -n fonts-otf-google-noto-sans-mono-cjk-hk
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansMonoCJKhk-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mono-cjk-hk.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mono-cjk-hk.conf

%package -n fonts-otf-google-noto-sans-jp
Summary:	Japanese Region-specific Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-jp
%common_desc
Noto font Japanese Region-specific Sans OTF.

%files -n fonts-otf-google-noto-sans-jp
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansJP-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-jp.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-jp.conf

%package -n fonts-otf-google-noto-serif-jp
Summary:	Japanese Region-specific Serif OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-jp
%common_desc
Noto font Japanese Region-specific Serif OTF.

%files -n fonts-otf-google-noto-serif-jp
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifJP-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-jp.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-jp.conf

%package -n fonts-otf-google-noto-sans-kr
Summary:	Korean Region-specific Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-kr
%common_desc
Noto font Korean Region-specific Sans OTF.

%files -n fonts-otf-google-noto-sans-kr
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansKR-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-kr.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-kr.conf

%package -n fonts-otf-google-noto-serif-kr
Summary:	Korean Region-specific Serif OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-kr
%common_desc
Noto font Korean Region-specific Serif OTF.

%files -n fonts-otf-google-noto-serif-kr
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifKR-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-kr.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-kr.conf

%package -n fonts-otf-google-noto-sans-sc
Summary:	Simplified Chinese Region-specific Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-sc
%common_desc
Noto font Simplified Chinese Region-specific Sans OTF.

%files -n fonts-otf-google-noto-sans-sc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansSC-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-sc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-sc.conf

%package -n fonts-otf-google-noto-serif-sc
Summary:	Simplified Chinese Region-specific Serif OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-sc
%common_desc
Noto font Simplified Chinese Region-specific Serif OTF.

%files -n fonts-otf-google-noto-serif-sc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifSC-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-sc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-sc.conf

%package -n fonts-otf-google-noto-sans-tc
Summary:	Traditional Chinese Region-specific Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-tc
%common_desc
Noto font Traditional Chinese Region-specific Sans OTF.

%files -n fonts-otf-google-noto-sans-tc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansTC-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tc.conf

%package -n fonts-otf-google-noto-serif-tc
Summary:	Traditional Chinese Region-specific Serif OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-serif-tc
%common_desc
Noto font Traditional Chinese Region-specific Serif OTF.

%files -n fonts-otf-google-noto-serif-tc
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSerifTC-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-tc.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-tc.conf

%package -n fonts-otf-google-noto-sans-hk
Summary:	Traditional Chinese Region-specific Sans OTF font files for %{oldname}
Group:		System/Fonts/True type
Requires:	fonts-otf-%{fontname}-common = %{EVRD}

%description -n fonts-otf-google-noto-sans-hk
%common_desc
Noto font Traditional Chinese Region-specific Sans OTF.

%files -n fonts-otf-google-noto-sans-hk
%dir %_otffontsdir/%{fontname}
%_otffontsdir/%{fontname}/NotoSansHK-*.otf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-hk.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-hk.conf

%prep
%setup -q -n noto-cjk-%{commit0}
cp -p %{SOURCE1} %{SOURCE2} .
# generate the font conf files
bash -x ./genfontconf.sh


%build


%install
%define _fontdir  %_otffontsdir/%{fontname}
install -m 0755 -d %{buildroot}%{_fontdir}

# copy OTC files
install -m 0644 -p NotoSansCJK-*.ttc %{buildroot}%{_fontdir}
install -m 0644 -p NotoSerifCJK-*.ttc %{buildroot}%{_fontdir}

# copy Multilingual OTF files
install -m 0644 -p NotoSansCJK{jp,kr,sc,tc,hk}-*.otf %{buildroot}%{_fontdir}
install -m 0644 -p NotoSerifCJK{jp,kr,sc,tc}-*.otf %{buildroot}%{_fontdir}
install -m 0644 -p NotoSansMonoCJK{jp,kr,sc,tc,hk}-*.otf %{buildroot}%{_fontdir}

# copy Region-specific OTF
install -m 0644 -p NotoSans{JP,KR,SC,TC,HK}-*.otf %{buildroot}%{_fontdir}
install -m 0644 -p NotoSerif{JP,KR,SC,TC}-*.otf %{buildroot}%{_fontdir}


install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
            %{buildroot}%{_fontconfig_confdir}

for f in sans-cjk-ttc serif-cjk-ttc \
    sans-cjk-jp serif-cjk-jp sans-mono-cjk-jp \
    sans-cjk-kr serif-cjk-kr sans-mono-cjk-kr \
    sans-cjk-sc serif-cjk-sc sans-mono-cjk-sc \
    sans-cjk-tc serif-cjk-tc sans-mono-cjk-tc \
    sans-cjk-hk sans-mono-cjk-hk \
    sans-jp serif-jp \
    sans-kr serif-kr \
    sans-sc serif-sc \
    sans-tc serif-tc \
    sans-hk;
do
    fconf=$(basename -a *-%{fontconf}-$f.conf)
    if [ "$(echo $fconf | wc -w)" -ne 1 ]; then
       echo "Did not find unique \*-%{fontconf}-$f.conf file"
       exit 1
    fi

    install -m 0644 -p ${fconf} \
                %{buildroot}%{_fontconfig_templatedir}/${fconf}

    ln -s %{_fontconfig_templatedir}/${fconf} \
         %{buildroot}%{_fontconfig_confdir}/${fconf}
done

install -m 0644 -p %{SOURCE3} \
            %{buildroot}%{_fontconfig_templatedir}/%{fontconf2}

ln -s %{_fontconfig_templatedir}/%{fontconf2} \
     %{buildroot}%{_fontconfig_confdir}/%{fontconf2}


%files


%files -n fonts-otf-google-noto-cjk-common
%doc NEWS HISTORY README.formats README.third_party
%license LICENSE
%{_fontconfig_templatedir}/%{fontconf2}
%config(noreplace) %{_fontconfig_confdir}/%{fontconf2}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12724 |21mr|fonts-rpm-macros-2.0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _docdir_fmt     %{name}

# Master definition that will be written to macro files
%global _fontbasedir            %{_datadir}/fonts
%global _fontconfig_masterdir   %{_sysconfdir}/fonts
%global _fontconfig_confdir     %{_sysconfdir}/fonts/conf.d
%global _fontconfig_templatedir %{_datadir}/fontconfig/conf.avail

Name:      fonts-rpm-macros
Version:   2.0.5
Release:   7
Summary:   Build-stage rpm automation for fonts packages
License:   GPLv3+
Url:       https://docs.fedoraproject.org/en-US/packaging-guidelines/FontsPolicy/
Source0:   https://pagure.io/fonts-rpm-macros/archive/%{version}/fonts-rpm-macros-%{version}.tar.gz
# adapted from ALT Linux for compat with font packages from there
Source1:   macros.fonts-alt
# compat with packages from ALT Linux (ALT uses the same naming of font packages as ROSA)
Patch1:    alt.diff
Group:     System/Base
BuildArch: noarch
Requires:  fonts-srpm-macros = %{EVRD}
Requires:  fonts-filesystem  = %{EVRD}
Requires:  fontconfig
Requires:  appstream-util
Requires:  uchardet
Provides:  fontpackages-devel = %{EVRD}

# For the experimental generator
Requires:  python3-ruamel-yaml
Requires:  python3-lxml
Requires:  libxml2-utils

# for macros.fonts-alt
Requires:   sed
Requires:   %{_bindir}/install
Requires:   %{_bindir}/find
Requires:   %{_bindir}/mkfontscale
Requires:   %{_bindir}/mkfontdir

%description
This package provides build-stage rpm automation to simplify the creation of
fonts packages.

It does not need to be included in the default build root: fonts-srpm-macros
will pull it in for fonts packages only.

%files
%license LICENSE.txt
%{_bindir}/*
%{_rpmmacrodir}/macros.fonts-rpm*
%{_rpmmacrodir}/macros.fonts-alt
%{_rpmluadir}/fedora/rpm/*.lua

#-------------------------------------------------------------------------
%package -n fonts-srpm-macros
Summary:   Source-stage rpm automation for fonts packages

%description -n fonts-srpm-macros
This package provides SRPM-stage rpm automation to simplify the creation of
fonts packages.

It limits itself to the automation subset required to create fonts SRPM
packages and needs to be included in the default build root.

The rest of the automation is provided by the fonts-rpm-macros package, that
fonts-srpm-macros will pull in for fonts packages only.

%files -n fonts-srpm-macros
%license LICENSE.txt
%doc     *.md changelog.txt
%{_rpmmacrodir}/macros.fonts-srpm*
%{_rpmluadir}/fedora/srpm/*.lua

#-------------------------------------------------------------------------

%package -n fonts-filesystem
Summary:   Directories used by font packages
License:   MIT
Provides:  fontpackages-filesystem = %{EVRD}

%description -n fonts-filesystem
This package contains the basic directory layout used by font packages,
including the correct permissions for the directories.

%files -n fonts-filesystem
%dir %{_datadir}/fontconfig
%dir %{_fontbasedir}
%dir %{_fontconfig_masterdir}
%dir %{_fontconfig_confdir}
%dir %{_fontconfig_templatedir}

#-------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i rpm/macros.d/macros.fonts-srpm \
  -e 's,@@_FONTBASEDIR@@,%{_fontbasedir},g' \
  -e 's,@@_FONTCONFIG_MASTERDIR@@,%{_fontconfig_masterdir},g' \
  -e 's,@@_FONTCONFIG_CONFDIR@@,%{_fontconfig_confdir},g' \
  -e 's,@@_FONTCONFIG_TEMPLATEDIR@@,%{_fontconfig_templatedir},g' \
  -e 's,fonts@lists.fedoraproject.org,support@rosalinux.ru,g'

%build
:

%install
install -m 0755 -d    %{buildroot}%{_fontbasedir} \
                      %{buildroot}%{_fontconfig_masterdir} \
                      %{buildroot}%{_fontconfig_confdir} \
                      %{buildroot}%{_fontconfig_templatedir}

install -m 0755 -vd   %{buildroot}%{_rpmmacrodir}
install -m 0644 -vp   rpm/macros.d/macros.fonts-* \
                      %{buildroot}%{_rpmmacrodir}
install -m 0755 -vd   %{buildroot}%{_rpmluadir}/fedora/srpm
install -m 0644 -vp   rpm/lua/srpm/*lua \
                      %{buildroot}%{_rpmluadir}/fedora/srpm
install -m 0755 -vd   %{buildroot}%{_rpmluadir}/fedora/rpm
install -m 0644 -vp   rpm/lua/rpm/*lua \
                      %{buildroot}%{_rpmluadir}/fedora/rpm

install -m 0755 -vd   %{buildroot}%{_bindir}
install -m 0755 -vp   bin/* %{buildroot}%{_bindir}

%install_macro fonts-alt %{SOURCE1}




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12725 |21mr|fonts-ttf-arabic-1.1-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Arabic TrueType fonts
Name:		fonts-ttf-arabic
Version:	1.1
Release:	26
License:	GPLv2+
Group:		System/Fonts/True type
Source0:	http://www.linux.org.sa/download/KacstArabicFonts-%{version}.tar.bz2
Source1:	nastaliq_unicode.ttf.bz2
BuildRequires:	fontconfig
BuildRequires:	mkfontscale
BuildArch:	noarch

%description
This Package provides Free Arabic TrueType fonts.

%files
%doc *txt
%dir %{_datadir}/fonts/TTF/arabic/
%{_datadir}/fonts/TTF/arabic/*
%{_sysconfdir}/X11/fontpath.d/ttf-arabic:pri=50

%post
touch %{_datadir}/fonts/TTF

#----------------------------------------------------------------------------

%prep
%setup -q -c

%build
bzcat %{SOURCE1} > nastaliq_unicode.ttf

%install
mkdir -p %{buildroot}/%{_datadir}/fonts/TTF/arabic/
cp *.ttf %{buildroot}/%{_datadir}/fonts/TTF/arabic/

(
cd %{buildroot}/%{_datadir}/fonts/TTF/arabic/
mkfontscale
cp fonts.scale fonts.dir
)

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/arabic \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-arabic:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12726 |21mr|fonts-ttf-arabic-arabeyes-2.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name fonts-ttf-arabic-arabeyes
%define name_orig	ae_fonts
%define version 2.0
%define release 14
%define fontdir	fonts/TTF/arabic/arabeyes

Name:		%{name}
Summary:	Arabic TrueType fonts
Version:	%{version}
Release:	%{release}
License:	GPLv2+
Group:		System/Fonts/True type
Source:		http://prdownloads.sourceforge.net/arabeyes/%{name_orig}_%{version}.tar.bz2
URL:		http://www.arabeyes.org/project.php?proj=Khotot
BuildArch:	noarch
BuildRequires: fontconfig
Buildrequires: 	mkfontscale
Provides:	fonts-ttf-arabic

%description
This Package provides Free Arabic TrueType fonts donated under the GPL license
by arabeyes.org.

%prep
%setup -n %{name_orig}_%version -q

%build

%install
rm -rf %buildroot

mkdir -p %buildroot/%_datadir/%fontdir
cp */*.ttf %buildroot/%_datadir/%fontdir

pushd %buildroot/%_datadir/%fontdir
mkfontscale
cp fonts.scale fonts.dir
popd

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/%fontdir \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-arabic-arabeyes:pri=50

%post
touch %_datadir/fonts/TTF

%clean
rm -rf %buildroot

%files
%defattr(0644,root,root,0755)
%doc README ChangeLog
%dir %_datadir/%fontdir
%_datadir/%fontdir/*
%_sysconfdir/X11/fontpath.d/ttf-arabic-arabeyes:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12727 |21mr|fonts-ttf-arabic-farsi-0.4-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name fonts-ttf-arabic-farsi
%define name_orig farsifonts
%define version 0.4
%define release 18
%define fontdir	fonts/TTF/arabic/farsi

Name:		%{name}
Summary:	Arabic TrueType fonts
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		System/Fonts/True type
Source:		http://www.farsiweb.info/font/%{name_orig}-%{version}.tar.bz2
URL:		http://www.farsiweb.info
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale
Provides:	fonts-ttf-arabic

%description
This Package provides Free Arabic TrueType fonts donated under the GPL license
by farsiweb.info.

%prep
%setup -n %name_orig-%version -q

%build

%install
rm -rf %buildroot

mkdir -p %buildroot/%_datadir/%fontdir
cp *.ttf %buildroot/%_datadir/%fontdir

pushd %buildroot/%_datadir/%fontdir
mkfontscale
cp fonts.scale fonts.dir
popd

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/%fontdir \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-arabic-farsi:pri=50

%clean
rm -rf %buildroot

%files
%defattr(0644,root,root,0755)
%doc COPYING NEWS *.txt
%dir %_datadir/%{fontdir}
%_datadir/%{fontdir}/*
%_sysconfdir/X11/fontpath.d/ttf-arabic-farsi:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12728 |21mr|fonts-ttf-arabic-kacst-2.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name fonts-ttf-arabic-kacst
%define name_orig kacst_fonts
%define srcname KacstArabicFonts-2.0
%define version 2.0
%define release 12
%define fontdir	fonts/TTF/arabic/kacst

Name:		%{name}
Summary:	Arabic TrueType fonts
Version:	%{version}
Release:	%{release}
License:	GPLv2
Group:		System/Fonts/True type
Source:		http://downloads.sourceforge.net/project/arabeyes/kacst_fonts/%{name_orig}_%{version}.tar.bz2
URL:		http://www.arabeyes.org/resources.php
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale
Requires:	common-licenses
Provides:	fonts-ttf-arabic

%description
This Package provides Free Arabic TrueType fonts donated under the GPL license
by King Abdul-Aziz City for Science and Technology (KACST).

Now maintained by Arabeyes http://www.arabeyes.org

%prep
%setup -q -n %{srcname}

%build

%install
rm -rf %buildroot

mkdir -p %buildroot/%_datadir/%fontdir
cp *.ttf %buildroot/%_datadir/%fontdir

pushd %buildroot/%_datadir/%fontdir
mkfontscale
cp fonts.scale fonts.dir
popd

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/%fontdir \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-arabic-kacst:pri=50

%clean
rm -rf %buildroot

%files
%defattr(0644,root,root,0755)
%dir %_datadir/%fontdir
%_datadir/%fontdir/*
%_sysconfdir/X11/fontpath.d/ttf-arabic-kacst:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12729 |21mr|fonts-ttf-armenian-1.1-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Armenian TrueType fonts
Name:		fonts-ttf-armenian
Version:	1.1
Release:	27
License:	Distributable
URL:		http://www.freenet.am/armnls/
Group:		System/Fonts/True type

Source0:	fonts-ttf-armenian-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	mkfontscale

%description
This Package provides free Armenian TrueType fonts.

%prep
%setup -q

%build
# TODO: create a README file

%install
rm -fr %buildroot

mkdir -p %buildroot/%_datadir/fonts/TTF/armenian/
cp * %buildroot/%_datadir/fonts/TTF/armenian
pushd %buildroot/%_datadir/fonts/TTF/armenian
mkfontscale
cp fonts.scale fonts.dir
popd

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/armenian \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-armenian:pri=50


%clean
rm -fr %buildroot

%files
%defattr(0644,root,root,0755)
%dir %_datadir/fonts/TTF/armenian/
%_datadir/fonts/TTF/armenian/*
%_sysconfdir/X11/fontpath.d/ttf-armenian:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12730 |21mr|fonts-ttf-bengali-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A set of Bangla fonts under GPL
Name: fonts-ttf-bengali
# version number is defined at http://www.bengalinux.org/downloads/
Version:	1.0
Release:	1
License: GPL
Group: System/Fonts/True type
Source0: http://savannah.nongnu.org/download/freebangfont/Akaash-0.8.5.tar.gz
Source1: http://savannah.nongnu.org/download/freebangfont/Ani.tar.gz
Source2: http://savannah.nongnu.org/download/freebangfont/Likhan-0.5.tar.gz
Source3: http://savannah.nongnu.org/download/freebangfont/MuktiNarrow-0.94.tar.bz2
URL: http://www.bengalinux.org/
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	freetype-tools

Provides: fonts-tt-Akaash
Provides: fonts-tt-Ani
Provides: fonts-tt-Likhan
Provides: fonts-tt-MuktiNarrow

%description
This package contains a set of Bangla (Bengali) OpenType fonts based on
Unicode encoding scheme. The fonts are provided by Free Bangla Font project,
a sub project of Ankur group (http://www.bengalinux.org).

Install freebanglafont if you'd like to use Bangla or want to see Bangla
interface for GNOME, KDE, etc.

%prep
%setup -c -a 0 -a 1 -a 2 -a 3 -q

%build

%install
install -d %{buildroot}/%{_datadir}/fonts/TTF/bengali

for i in `find . -name "*.ttf"` ; do
install -m 644 $i %{buildroot}/%{_datadir}/fonts/TTF/bengali
done
for i in `find . -name "*.TTF"` ; do
  install -m 644 $i \
	 %{buildroot}/%{_datadir}/fonts/TTF/bengali/`basename $i .TTF`.ttf
done

mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}/Akaash/
install -m 644 Akaash/{BUGS,README,MAILINGLISTS,VERSION,CHANGELOG,CREDITS} \
	%{buildroot}/%{_docdir}/%{name}-%{version}/Akaash/
mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}/Ani/
install -m 644 Ani/{AUTHORS,BUGS,MAILINGLISTS,README,VERSION} \
	%{buildroot}/%{_docdir}/%{name}-%{version}/Ani/
mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}/Likhan/
install -m 644 Likhan-0.5/README \
	%{buildroot}/%{_docdir}/%{name}-%{version}/Likhan/
mkdir -p %{buildroot}/%{_docdir}/%{name}-%{version}/MuktiNarrow/
install -m 644 MuktiNarrow0.94/readme.txt \
	%{buildroot}/%{_docdir}/%{name}-%{version}/MuktiNarrow/
install -m 644 Ani/COPYING %{buildroot}/%{_docdir}/%{name}-%{version}/

%post
touch %{_datadir}/fonts/TTF

%clean
rm -fr %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc %{_docdir}/%{name}-%{version}/*
%dir %{_datadir}/fonts/TTF/
%dir %{_datadir}/fonts/TTF/bengali
%{_datadir}/fonts/TTF/bengali/*.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12731 |21mr|fonts-ttf-bitstream-vera-1.10-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bitstream Vera ttf fonts
Name:		fonts-ttf-bitstream-vera
Version:	1.10
Release:	21
License:	Bitstream Vera Fonts Copyright
Group:		System/Fonts/True type
Url:		http://www.gnome.org/fonts/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/ttf-bitstream-vera/%{version}/ttf-bitstream-vera-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
Provides:	fonts-ttf-vera = %{EVRD}
BuildArch:	noarch

%description
Bitstream Vera ttf fonts

%files
%doc README.TXT COPYRIGHT.TXT RELEASENOTES.TXT
%{_datadir}/fonts/TTF/Vera*.ttf

%post
mkfontscale %{_datadir}/fonts/TTF
mkfontdir %{_datadir}/fonts/TTF

%postun
mkfontscale %{_datadir}/fonts/TTF
mkfontdir %{_datadir}/fonts/TTF

#----------------------------------------------------------------------------

%prep
%setup -qn ttf-bitstream-vera-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/
cp -f *.ttf %{buildroot}%{_datadir}/fonts/TTF/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12732 |21mr|fonts-ttf-dejavu-2.37-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname dejavu-fonts-ttf

Summary:	DejaVu ttf Fonts
Name:		fonts-ttf-dejavu
Version:	2.37
Release:	5
License:	Bitstream Vera Fonts Copyright
Group:		System/Fonts/True type
Url:		http://dejavu.sourceforge.net/
Source0:	http://sourceforge.net/projects/dejavu/files/dejavu/2.37/dejavu-fonts-ttf-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	fontconfig
BuildRequires:	ttmkfdir
# compat with RedHat/Fedora
# it is a separate package in Fedora/RH
Provides:		dejavu-sans-fonts = %{EVRD}
Provides:		dejavu-sans-mono-fonts = %{EVRD}
Provides:		dejavu-serif-fonts = %{EVRD}

%description
The DejaVu fonts are modifications of the Bitstream Vera fonts designed 
to extend this original for greater coverage of Unicode. The Bitstream Vera 
family was limited mainly to the characters in the Basic Latin and Latin-1 
Supplement portions of Unicode (roughly equivalent to ISO-8859-15) but was 
released with a license that permitted changes. The DejaVu fonts project was 
started with the aim to "provide a wider range of characters... while 
maintaining the original look and feel through the process of collaborative 
development".

%files
%doc LICENSE AUTHORS NEWS BUGS *cover.txt
%dir %{_datadir}/fonts/TTF/dejavu
%{_datadir}/fonts/TTF/dejavu/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/dejavu/fonts.dir
%{_datadir}/fonts/TTF/dejavu/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-dejavu:pri=50

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pkgname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/dejavu

install -m 644 ttf/*.ttf %{buildroot}%{_datadir}/fonts/TTF/dejavu
ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/dejavu > %{buildroot}%{_datadir}/fonts/TTF/dejavu/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/dejavu/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/dejavu \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-dejavu:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12733 |21mr|fonts-ttf-devanagari-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Devanagari TTF font(s)
Name: fonts-ttf-devanagari
Version:	1.1
Release:	1
License: Free use and distribution
Group: System/Fonts/True type
# it was previously distributed with XFree86; it's in public domain
Source0: raghu.ttf.bz2
#URL: 
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	freetype-tools

%description
This package contains fonts for the devanagari script.

%prep
#%setup -c 

rm -rf %{name}-%{version}
mkdir %{name}-%{version}
cd %{name}-%{version}

%build
cd %{name}-%{version}
bzcat %{SOURCE0} > raghu.ttf

%install
cd %{name}-%{version}
rm -rf %buildroot
install -d %buildroot/%_datadir/fonts/TTF/devanagari

for i in `find . -name "*.ttf"` ; do
install -m 644 $i %buildroot/%_datadir/fonts/TTF/devanagari
done

%post
touch %{_datadir}/fonts/TTF

%clean
rm -fr %buildroot

%files
%defattr(0644,root,root,0755)
#%doc %{name}-%{version}/README*
%dir %_datadir/fonts/TTF/
%dir %_datadir/fonts/TTF/devanagari
%_datadir/fonts/TTF/devanagari/*.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12734 |21mr|fonts-ttf-droid-1.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname droid-fonts

Summary:	Droid Fonts
Name:		fonts-ttf-droid
Version:	1.0
Release:	17
License:	Apache License
Group:		System/Fonts/True type
Url:		http://www.droidfonts.com/
Source0:	%{pkgname}-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
BuildArch:	noarch

%description
The Droid family of fonts consists of Droid Sans, Droid Sans Mono and
Droid Serif. Each contains extensive character set coverage including
Western Europe, Eastern/Central Europe, Baltic, Cyrillic, Greek and
Turkish support. The Droid Sans regular font also includes support for
Simplified and Traditional Chinese, Japanese and Korean support for
the GB2312, Big 5, JIS 0208 and KSC 5601 character sets respectively.
Droid was designed by Ascender's Steve Matteson to provide optimal quality
and comfort on a mobile handset when rendered in application menus, web
browsers and for other screen text.

%files
%doc README COPYING AUTHORS
%dir %{_datadir}/fonts/TTF/droid
%{_datadir}/fonts/TTF/droid/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/droid/fonts.dir
%{_datadir}/fonts/TTF/droid/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-droid:pri=50

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/droid

install -m 644 *.ttf %{buildroot}%{_datadir}/fonts/TTF/droid
ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/droid > %{buildroot}%{_datadir}/fonts/TTF/droid/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/droid/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/droid \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-droid:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12735 |21mr|fonts-ttf-fontawesome-4.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname fontawesome
%global fontconf 60-%{fontname}.conf

Name:		fonts-ttf-%{fontname}
Version:	4.7.0
Release:	1
Group:		System/Fonts/True type
Summary:	Iconic font set
License:	OFL
URL:		http://fontawesome.io
Source0:	https://github.com/FortAwesome/Font-Awesome/archive/v%{version}.tar.gz?/fontawesome-%{version}.tar.gz
Source1:	%{fontname}-fonts-fontconfig.conf
Source2:	README-Trademarks.txt
BuildArch:	noarch
#BuildRequires:	fontconfig
BuildRequires:	freetype-tools
BuildRequires:	fontpackages-devel
BuildRequires:	ttembed
Requires:	fontpackages-filesystem
Provides:	%{fontname}-fonts = %{version}

%description
Font Awesome gives you scalable vector icons that can instantly be
customized — size, color, drop shadow, and anything that can be done with the
power of CSS.

This package contains OpenType and TrueType font files which are typically used
locally.

#------------------------------------------------------------------------------
%package web
Summary:	Iconic font set, web files
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{fontname} = %{EVRD}
Provides:	%{fontname}-fonts-web = %{version}

%description web
Font Awesome gives you scalable vector icons that can instantly be
customized — size, color, drop shadow, and anything that can be done with the
power of CSS.

This package contains CSS, SCSS and LESS style files as well as Web Open Font
Format versions 1 and 2, Embedded OpenType and SVG font files which are
typically used on the web.

%files web
%{_datadir}/font-awesome-web/
%{_datadir}/fonts/TTF/%{fontname}/*.svg
%{_datadir}/fonts/TTF/%{fontname}/*.woff
%{_datadir}/fonts/TTF/%{fontname}/*.woff2
%{_datadir}/fonts/TTF/%{fontname}/*.eot

#------------------------------------------------------------------------------

%prep
%setup -q -n Font-Awesome-%{version}
cp -p %SOURCE2 .

%build
ttembed fonts/*.ttf fonts/*.otf

%install
install -m 0755 -d %{buildroot}%{_datadir}/fonts/TTF/%{fontname}
install -m 0755 -d %{buildroot}%{_datadir}/fonts/OTF/%{fontname}
install -m 0644 -p fonts/*.ttf fonts/*.woff fonts/*.svg fonts/*.woff2 fonts/*.eot %{buildroot}%{_datadir}/fonts/TTF/%{fontname}
install -m 0644 -p fonts/*.otf %{buildroot}%{_datadir}/fonts/OTF/%{fontname}

ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/%{fontname} > %{buildroot}%{_datadir}/fonts/TTF/%{fontname}/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/%{fontname}/fonts.scale

ttmkfdir %{buildroot}%{_datadir}/fonts/OTF/%{fontname} > %{buildroot}%{_datadir}/fonts/OTF/%{fontname}/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/OTF/%{fontname}/fonts.scale

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
		%{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{SOURCE1} \
		%{buildroot}%{_fontconfig_templatedir}/%{fontconf}

ln -s %{_fontconfig_templatedir}/%{fontconf} \
		%{buildroot}%{_fontconfig_confdir}/%{fontconf}

mkdir -p %{buildroot}%{_datadir}/font-awesome-web/
cp -a css less scss %{buildroot}%{_datadir}/font-awesome-web/

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_fontdir}/TTF/%{fontname} \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-%{fontname}:pri=50

%files
%{_datadir}/fonts/TTF/%{fontname}/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/%{fontname}/fonts.dir
%{_datadir}/fonts/TTF/%{fontname}/fonts.scale
%{_datadir}/fonts/OTF/%{fontname}/*.otf
%verify(not mtime) %{_datadir}/fonts/OTF/%{fontname}/fonts.dir
%{_datadir}/fonts/OTF/%{fontname}/fonts.scale
%{_fontconfig_templatedir}/%{fontconf}
%{_fontconfig_confdir}/%{fontconf}
%{_sysconfdir}/X11/fontpath.d/ttf-%{fontname}:pri=50
#%%exclude %{_datadir}/fonts/TTF/%{fontname}/*.svg
#%%exclude %{_datadir}/fonts/TTF/%{fontname}/*.woff
#%%exclude %{_datadir}/fonts/TTF/%{fontname}/*.woff2
#%%exclude %{_datadir}/fonts/TTF/%{fontname}/*.eot

%doc README-Trademarks.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12736 |21mr|fonts-ttf-freefont-20090104-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of free Truetype fonts (GPL)
Name:		fonts-ttf-freefont
Version:	20090104
Release:	11

Source0:	freefont-ttf-%{version}.tar.gz
Source1:	remove-kana-glyphs
Source2:	freefont-20040828.readme_kana.mdk
# (mpol) pfaedit is now fontforge
Patch0:		freefont-20040828.fontforge.patch
License:	GPLv3+
Group:		System/Fonts/True type
URL:		http://www.nongnu.org/freefont/
BuildArch:	noarch
BuildRequires: fontconfig
Requires(post): mkfontdir mkfontscale
Requires(postun): mkfontdir mkfontscale

%description 
A set of Truetype fonts released under the GPL.
This project aims to provide a set of free outline
(PostScript Type0, TrueType, OpenType...) fonts
covering the ISO 10646/Unicode UCS (Universal Character Set).
This package provides the Truetype fonts from that project.

%prep
%setup -q -n freefont-%{version}

%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/fonts/TTF

install -m644 *.ttf %{buildroot}%{_datadir}/fonts/TTF

%post
mkfontscale %{_datadir}/fonts/TTF
mkfontdir %{_datadir}/fonts/TTF

%postun
mkfontscale %{_datadir}/fonts/TTF
mkfontdir %{_datadir}/fonts/TTF

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc AUTHORS CREDITS ChangeLog README
%{_datadir}/fonts/TTF/*.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12737 |21mr|fonts-ttf-google-crosextra-carlito-1.103-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname google-crosextra-carlito-fonts
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
%global fontname google-crosextra-carlito
%define _fontstem google-crosextra-carlito
%global fontconf62 62-%{fontname}
%global fontconf30 30-0-%{fontname}

%global archivename crosextrafonts-carlito-20130920

Name:           fonts-ttf-google-crosextra-carlito
Version:        1.103
Release:        1
Summary:        Sans-serif font metric-compatible with Calibri font
License:        OFL
Group:          System/Fonts/True type
URL:            http://code.google.com/p/chromium/issues/detail?id=280557
Source0:        http://gsdview.appspot.com/chromeos-localmirror/distfiles/%{archivename}.tar.gz
Source1:        30-0-%{fontname}-fontconfig.conf
Source2:        62-%{fontname}-fontconfig.conf
Source3:        fonts-ttf-google-crosextra-carlito.metainfo.xml
BuildArch:      noarch
BuildRequires:  fontpackages-devel
Requires:       fontpackages-filesystem
# compat with Fedora/RH
Provides:       google-carlito-fonts = %{EVRD}

%description
Carlito is metric-compatible with Calibri font. Carlito comes in regular, bold,
italic, and bold italic. The family covers Latin-Greek-Cyrillic (not a 
complete set, though) with about 2,000 glyphs. It has the same character 
coverage as Calibri. This font is sans-serif typeface family based on Lato.

%prep
%setup -q -n %{archivename}


%build


%install
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p *.ttf %{buildroot}%{_fontdir}

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                   %{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{SOURCE1} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf
install -m 0644 -p %{SOURCE2} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf

ln -s %{_fontconfig_templatedir}/%{fontconf30}-fontconfig.conf \
      %{buildroot}%{_fontconfig_confdir}/%{fontconf30}-fontconfig.conf
ln -s %{_fontconfig_templatedir}/%{fontconf62}-fontconfig.conf \
      %{buildroot}%{_fontconfig_confdir}/%{fontconf62}-fontconfig.conf

# Add AppStream metadata
install -Dm 0644 -p %{SOURCE3} \
        %{buildroot}%{_datadir}/appdata/fonts-ttf-google-crosextra-carlito.metainfo.xml
# generic fedora font import transformations
# move fonts to corresponding subdirs if any
for fontpatt in OTF TTF TTC otf ttf ttc pcf pcf.gz bdf afm pfa pfb; do
    case "$fontpatt" in 
	pcf*|bdf*) type=bitmap;;
	tt*|TT*) type=ttf;;
	otf|OTF) type=otf;;
	afm*|pf*) type=type1;;
    esac
    find $RPM_BUILD_ROOT/usr/share/fonts -type f -name '*.'$fontpatt | while read i; do
	j=`echo "$i" | sed -e s,/usr/share/fonts/,/usr/share/fonts/$type/,`;
	install -Dm644 "$i" "$j";
	rm -f "$i";
	olddir=`dirname "$i"`;
	mv -f "$olddir"/{encodings.dir,fonts.{dir,scale,alias}} `dirname "$j"`/ 2>/dev/null ||:
	rmdir -p "$olddir" 2>/dev/null ||:
    done
done
# kill invalid catalogue links
if [ -d $RPM_BUILD_ROOT/etc/X11/fontpath.d ]; then
    find -L $RPM_BUILD_ROOT/etc/X11/fontpath.d -type l -print -delete ||:
    # relink catalogue
    find $RPM_BUILD_ROOT/usr/share/fonts -name fonts.dir | while read i; do
	pri=10;
	j=`echo $i | sed -e s,$RPM_BUILD_ROOT/usr/share/fonts/,,`; type=${j%%%%/*}; 
	pre_stem=${j##$type/}; stem=`dirname $pre_stem|sed -e s,/,-,g`;
	case "$type" in 
	    bitmap) pri=10;;
	    ttf|ttf) pri=50;;
	    type1) pri=40;;
	esac
	ln -s /usr/share/fonts/$j $RPM_BUILD_ROOT/etc/X11/fontpath.d/"$stem:pri=$pri"
    done ||:
fi

%files
%license LICENSE
%{_fontconfig_templatedir}/*-%{fontname}-fontconfig.conf
%config(noreplace) %{_fontconfig_confdir}/*-%{fontname}-fontconfig.conf
%{_fontbasedir}/*/%{_fontstem}/*.ttf
%{_datadir}/appdata/fonts-ttf-google-crosextra-carlito.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12738 |21mr|fonts-ttf-google-noto-20181223-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname google-noto-fonts
%global _fontname google-noto
%global _fontnamevf google-noto-vf
%global _fontvfdir %{_fontbasedir}/%{_fontnamevf}
%global fontname %{_fontname}
%global fontconf %{_fontname}
%global common_desc Noto fonts aims to remove tofu from web by providing fonts for all \
Unicode supported scripts. Its design goal is to achieve visual harmonization\
between multiple scripts. Noto family supports almost all scripts available\
in Unicode.\
%{nil}

%global commit a5e21f60336d8b9b76a0f230d07dd59e12d6da80
%global hprio	65
%global mprio	66
%global lprio	67

Name:           fonts-ttf-google-noto
Version:        20181223
Release:        2
Summary:        Hinted and Non Hinted OpenType fonts for Unicode scripts
Group:		System/Fonts/True type
License:        OFL
URL:            https://github.com/googlei18n/noto-fonts/
# downloaded from https://github.com/googlei18n/noto-fonts/commits/a5e21f60336d8b9b76a0f230d07dd59e12d6da80 -> download [zip]
# link https://github.com/googlei18n/noto-fonts/archive/a5e21f60336d8b9b76a0f230d07dd59e12d6da80.zip
Source0:        noto-fonts-%{commit}.zip
Source3:        %{mprio}-%{fontconf}-sans-armenian.conf
Source5:        %{mprio}-%{fontconf}-sans-bengali.conf
Source6:        %{lprio}-%{fontconf}-sans-bengali-ui.conf
Source9:        %{mprio}-%{fontconf}-sans-cherokee.conf
Source10:       %{mprio}-%{fontconf}-sans-coptic.conf
Source12:       %{mprio}-%{fontconf}-sans-devanagari.conf
Source13:       %{lprio}-%{fontconf}-sans-devanagari-ui.conf
Source15:       %{mprio}-%{fontconf}-sans-ethiopic.conf
Source16:       %{mprio}-%{fontconf}-sans-georgian.conf
Source18:       %{mprio}-%{fontconf}-sans-hebrew.conf
Source21:       %{mprio}-%{fontconf}-sans-kannada.conf
Source24:       %{mprio}-%{fontconf}-sans-khmer.conf
Source25:       %{lprio}-%{fontconf}-sans-khmer-ui.conf
Source26:       %{mprio}-%{fontconf}-sans-lao.conf
Source27:       %{lprio}-%{fontconf}-sans-lao-ui.conf
Source28:       %{mprio}-%{fontconf}-sans-lisu.conf
Source31:       %{mprio}-%{fontconf}-sans-malayalam.conf
Source32:       %{lprio}-%{fontconf}-sans-malayalam-ui.conf
Source34:       %{mprio}-%{fontconf}-sans-meetei-mayek.conf
Source35:       %{mprio}-%{fontconf}-sans-nko.conf
Source40:       %{mprio}-%{fontconf}-sans-shavian.conf
Source42:       %{mprio}-%{fontconf}-sans-tagalog.conf
Source44:       %{mprio}-%{fontconf}-sans-tamil.conf
Source45:       %{lprio}-%{fontconf}-sans-tamil-ui.conf
Source46:       %{mprio}-%{fontconf}-sans-telugu.conf
Source47:       %{mprio}-%{fontconf}-sans-thai.conf
Source48:       %{lprio}-%{fontconf}-sans-thai-ui.conf
Source51:       %{mprio}-%{fontconf}-sans-vai.conf
Source52:       %{mprio}-%{fontconf}-serif-armenian.conf
Source54:       %{mprio}-%{fontconf}-serif-georgian.conf
Source55:       %{mprio}-%{fontconf}-serif-khmer.conf
Source56:       %{mprio}-%{fontconf}-serif-lao.conf
Source57:       %{mprio}-%{fontconf}-serif-thai.conf
Source58:       %{lprio}-%{fontconf}-sans-kannada-ui.conf
Source59:       %{lprio}-%{fontconf}-sans-telugu-ui.conf
Source60:       %{mprio}-%{fontconf}-sans-gujarati.conf
Source61:       %{lprio}-%{fontconf}-sans-gujarati-ui.conf
Source62:       %{mprio}-%{fontconf}-sans-hanunoo.conf
Source64:       %{mprio}-%{fontconf}-kufi-arabic.conf
Source65:       %{mprio}-%{fontconf}-naskh-arabic.conf
Source66:       %{lprio}-%{fontconf}-naskh-arabic-ui.conf
Source67:       %{mprio}-%{fontconf}-serif-balinese.conf
Source68:       %{mprio}-%{fontconf}-sans-bamum.conf
Source69:       %{mprio}-%{fontconf}-sans-batak.conf
Source70:       %{mprio}-%{fontconf}-sans-buginese.conf
Source71:       %{mprio}-%{fontconf}-sans-buhid.conf
Source72:       %{mprio}-%{fontconf}-sans-canadian-aboriginal.conf
Source73:       %{mprio}-%{fontconf}-sans-cham.conf
Source74:       %{mprio}-%{fontconf}-sans-cuneiform.conf
Source75:       %{mprio}-%{fontconf}-sans-cypriot.conf
Source76:       %{mprio}-%{fontconf}-sans-gothic.conf
Source77:       %{mprio}-%{fontconf}-sans-gurmukhi.conf
Source78:       %{lprio}-%{fontconf}-sans-gurmukhi-ui.conf
Source81:       %{mprio}-%{fontconf}-sans-javanese.conf
Source82:       %{mprio}-%{fontconf}-sans-lepcha.conf
Source83:       %{mprio}-%{fontconf}-sans-limbu.conf
Source85:       %{mprio}-%{fontconf}-sans-mongolian.conf
Source86:       %{mprio}-%{fontconf}-sans-myanmar.conf
Source87:       %{lprio}-%{fontconf}-sans-myanmar-ui.conf
Source88:       %{mprio}-%{fontconf}-sans-new-tai-lue.conf
Source89:       %{mprio}-%{fontconf}-sans-ogham.conf
Source90:       %{mprio}-%{fontconf}-sans-ol-chiki.conf
Source94:       %{mprio}-%{fontconf}-sans-rejang.conf
Source95:       %{mprio}-%{fontconf}-sans-runic.conf
Source97:       %{mprio}-%{fontconf}-sans-saurashtra.conf
Source98:       %{hprio}-%{fontconf}-sans-sinhala.conf
Source99:       %{mprio}-%{fontconf}-sans-sundanese.conf
Source101:      %{mprio}-%{fontconf}-sans-syriac-eastern.conf
Source102:      %{mprio}-%{fontconf}-sans-syriac-estrangela.conf
Source103:      %{mprio}-%{fontconf}-sans-syriac-western.conf
Source105:      %{mprio}-%{fontconf}-sans-tifinagh.conf
Source107:      %{mprio}-%{fontconf}-sans-tagbanwa.conf
Source108:      %{mprio}-%{fontconf}-sans-thaana.conf

Source156:      %{mprio}-%{fontconf}-sans-oriya.conf
Source157:      %{lprio}-%{fontconf}-sans-oriya-ui.conf
Source158:      %{mprio}-%{fontconf}-nastaliq-urdu.conf
Source159:      %{mprio}-%{fontconf}-sans-tibetan.conf
Source161:      %{mprio}-%{fontconf}-serif-bengali.conf
Source162:      %{mprio}-%{fontconf}-serif-devanagari.conf
Source163:      %{mprio}-%{fontconf}-serif-gujarati.conf
Source164:      %{mprio}-%{fontconf}-serif-kannada.conf
Source165:      %{mprio}-%{fontconf}-serif-malayalam.conf
Source166:      %{mprio}-%{fontconf}-serif-tamil.conf
Source167:      %{mprio}-%{fontconf}-serif-telugu.conf

# Add appstream metadata files
Source200:      %{fontname}.metainfo.xml

BuildArch:      noarch
BuildRequires:  fontpackages-devel

%description
%common_desc


%package -n fonts-ttf-google-noto-common
Group: System/Fonts/True type
Summary:        Common files for Noto fonts

%description -n fonts-ttf-google-noto-common
Common files for Google Noto fonts.

%package -n fonts-ttf-google-noto-kufi-arabic
Summary:	Kufi Arabic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-kufi-arabic
%common_desc
Noto font Kufi Arabic.

%files -n fonts-ttf-google-noto-kufi-arabic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoKufiArabic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-kufi-arabic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-kufi-arabic.conf
%{_datadir}/appdata/%{_fontname}-kufi-arabic.metainfo.xml

%package -n fonts-ttf-google-noto-music
Summary:	Music font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-music
%common_desc
Noto font Music.

%files -n fonts-ttf-google-noto-music
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoMusic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-music.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-music.conf
%{_datadir}/appdata/%{_fontname}-music.metainfo.xml

%package -n fonts-ttf-google-noto-naskh-arabic
Summary:	Naskh Arabic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-naskh-arabic
%common_desc
Noto font Naskh Arabic.

%files -n fonts-ttf-google-noto-naskh-arabic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoNaskhArabic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-naskh-arabic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-naskh-arabic.conf
%{_datadir}/appdata/%{_fontname}-naskh-arabic.metainfo.xml

%package -n fonts-ttf-google-noto-naskh-arabic-ui
Summary:	Naskh Arabic UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-naskh-arabic-ui
%common_desc
Noto font Naskh Arabic UI.

%files -n fonts-ttf-google-noto-naskh-arabic-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoNaskhArabicUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-naskh-arabic-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-naskh-arabic-ui.conf
%{_datadir}/appdata/%{_fontname}-naskh-arabic-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans
Summary:	Sans font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans
%common_desc
Noto font Sans.

%files -n fonts-ttf-google-noto-sans
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSans-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans.conf
%{_datadir}/appdata/%{_fontname}-sans.metainfo.xml

%package -n fonts-ttf-google-noto-sans-display
Summary:	Sans Display font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-display
%common_desc
Noto font Sans Display.

%files -n fonts-ttf-google-noto-sans-display
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansDisplay-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-display.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-display.conf
%{_datadir}/appdata/%{_fontname}-sans-display.metainfo.xml

%package -n fonts-ttf-google-noto-sans-adlam
Summary:	Sans Adlam font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-adlam
%common_desc
Noto font Sans Adlam.

%files -n fonts-ttf-google-noto-sans-adlam
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansAdlam-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-adlam.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-adlam.conf
%{_datadir}/appdata/%{_fontname}-sans-adlam.metainfo.xml

%package -n fonts-ttf-google-noto-sans-adlam-unjoined
Summary:	Sans Adlam Unjoined font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-adlam-unjoined
%common_desc
Noto font Sans Adlam Unjoined.

%files -n fonts-ttf-google-noto-sans-adlam-unjoined
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansAdlamUnjoined-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-adlam-unjoined.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-adlam-unjoined.conf
%{_datadir}/appdata/%{_fontname}-sans-adlam-unjoined.metainfo.xml

%package -n fonts-ttf-google-noto-sans-anatolian-hieroglyphs
Summary:	Sans Anatolian Hieroglyphs font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-anatolian-hieroglyphs
%common_desc
Noto font Sans Anatolian Hieroglyphs.

%files -n fonts-ttf-google-noto-sans-anatolian-hieroglyphs
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansAnatolianHieroglyphs-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-anatolian-hieroglyphs.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-anatolian-hieroglyphs.conf
%{_datadir}/appdata/%{_fontname}-sans-anatolian-hieroglyphs.metainfo.xml

%package -n fonts-ttf-google-noto-sans-arabic
Summary:	Sans Arabic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-arabic
%common_desc
Noto font Sans Arabic.

%files -n fonts-ttf-google-noto-sans-arabic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansArabic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-arabic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-arabic.conf
%{_datadir}/appdata/%{_fontname}-sans-arabic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-arabic-ui
Summary:	Sans Arabic UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-arabic-ui
%common_desc
Noto font Sans Arabic UI.

%files -n fonts-ttf-google-noto-sans-arabic-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansArabicUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-arabic-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-arabic-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-arabic-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-armenian
Summary:	Sans Armenian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-armenian
%common_desc
Noto font Sans Armenian.

%files -n fonts-ttf-google-noto-sans-armenian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansArmenian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-armenian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-armenian.conf
%{_datadir}/appdata/%{_fontname}-sans-armenian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-avestan
Summary:	Sans Avestan font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-avestan
%common_desc
Noto font Sans Avestan.

%files -n fonts-ttf-google-noto-sans-avestan
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansAvestan-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-avestan.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-avestan.conf
%{_datadir}/appdata/%{_fontname}-sans-avestan.metainfo.xml

%package -n fonts-ttf-google-noto-sans-bamum
Summary:	Sans Bamum font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-bamum
%common_desc
Noto font Sans Bamum.

%files -n fonts-ttf-google-noto-sans-bamum
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBamum-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-bamum.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-bamum.conf
%{_datadir}/appdata/%{_fontname}-sans-bamum.metainfo.xml

%package -n fonts-ttf-google-noto-sans-bassa-vah
Summary:	Sans Bassa Vah font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-bassa-vah
%common_desc
Noto font Sans Bassa Vah.

%files -n fonts-ttf-google-noto-sans-bassa-vah
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBassaVah-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-bassa-vah.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-bassa-vah.conf
%{_datadir}/appdata/%{_fontname}-sans-bassa-vah.metainfo.xml

%package -n fonts-ttf-google-noto-sans-batak
Summary:	Sans Batak font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-batak
%common_desc
Noto font Sans Batak.

%files -n fonts-ttf-google-noto-sans-batak
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBatak-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-batak.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-batak.conf
%{_datadir}/appdata/%{_fontname}-sans-batak.metainfo.xml

%package -n fonts-ttf-google-noto-sans-bengali
Summary:	Sans Bengali font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-bengali
%common_desc
Noto font Sans Bengali.

%files -n fonts-ttf-google-noto-sans-bengali
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBengali-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-bengali.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-bengali.conf
%{_datadir}/appdata/%{_fontname}-sans-bengali.metainfo.xml

%package -n fonts-ttf-google-noto-sans-bengali-ui
Summary:	Sans Bengali UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-bengali-ui
%common_desc
Noto font Sans Bengali UI.

%files -n fonts-ttf-google-noto-sans-bengali-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBengaliUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-bengali-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-bengali-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-bengali-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-bhaiksuki
Summary:	Sans Bhaiksuki font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-bhaiksuki
%common_desc
Noto font Sans Bhaiksuki.

%files -n fonts-ttf-google-noto-sans-bhaiksuki
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBhaiksuki-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-bhaiksuki.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-bhaiksuki.conf
%{_datadir}/appdata/%{_fontname}-sans-bhaiksuki.metainfo.xml

%package -n fonts-ttf-google-noto-sans-brahmi
Summary:	Sans Brahmi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-brahmi
%common_desc
Noto font Sans Brahmi.

%files -n fonts-ttf-google-noto-sans-brahmi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBrahmi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-brahmi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-brahmi.conf
%{_datadir}/appdata/%{_fontname}-sans-brahmi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-buginese
Summary:	Sans Buginese font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-buginese
%common_desc
Noto font Sans Buginese.

%files -n fonts-ttf-google-noto-sans-buginese
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBuginese-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-buginese.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-buginese.conf
%{_datadir}/appdata/%{_fontname}-sans-buginese.metainfo.xml

%package -n fonts-ttf-google-noto-sans-buhid
Summary:	Sans Buhid font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-buhid
%common_desc
Noto font Sans Buhid.

%files -n fonts-ttf-google-noto-sans-buhid
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansBuhid-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-buhid.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-buhid.conf
%{_datadir}/appdata/%{_fontname}-sans-buhid.metainfo.xml

%package -n fonts-ttf-google-noto-sans-canadian-aboriginal
Summary:	Sans Canadian Aboriginal font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-canadian-aboriginal
%common_desc
Noto font Sans Canadian Aboriginal.

%files -n fonts-ttf-google-noto-sans-canadian-aboriginal
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansCanadianAboriginal-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-canadian-aboriginal.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-canadian-aboriginal.conf
%{_datadir}/appdata/%{_fontname}-sans-canadian-aboriginal.metainfo.xml

%package -n fonts-ttf-google-noto-sans-caucasian-albanian
Summary:	Sans Caucasian Albanian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-caucasian-albanian
%common_desc
Noto font Sans Caucasian Albanian.

%files -n fonts-ttf-google-noto-sans-caucasian-albanian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansCaucasianAlbanian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-caucasian-albanian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-caucasian-albanian.conf
%{_datadir}/appdata/%{_fontname}-sans-caucasian-albanian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-carian
Summary:	Sans Carian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-carian
%common_desc
Noto font Sans Carian.

%files -n fonts-ttf-google-noto-sans-carian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansCarian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-carian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-carian.conf
%{_datadir}/appdata/%{_fontname}-sans-carian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-chakma
Summary:	Sans Chakma font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-chakma
%common_desc
Noto font Sans Chakma.

%files -n fonts-ttf-google-noto-sans-chakma
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansChakma-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-chakma.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-chakma.conf
%{_datadir}/appdata/%{_fontname}-sans-chakma.metainfo.xml

%package -n fonts-ttf-google-noto-sans-cham
Summary:	Sans Cham font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-cham
%common_desc
Noto font Sans Cham.

%files -n fonts-ttf-google-noto-sans-cham
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansCham-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cham.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cham.conf
%{_datadir}/appdata/%{_fontname}-sans-cham.metainfo.xml

%package -n fonts-ttf-google-noto-sans-cherokee
Summary:	Sans Cherokee font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-cherokee
%common_desc
Noto font Sans Cherokee.

%files -n fonts-ttf-google-noto-sans-cherokee
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansCherokee-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cherokee.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cherokee.conf
%{_datadir}/appdata/%{_fontname}-sans-cherokee.metainfo.xml

%package -n fonts-ttf-google-noto-sans-coptic
Summary:	Sans Coptic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-coptic
%common_desc
Noto font Sans Coptic.

%files -n fonts-ttf-google-noto-sans-coptic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansCoptic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-coptic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-coptic.conf
%{_datadir}/appdata/%{_fontname}-sans-coptic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-cuneiform
Summary:	Sans Cuneiform font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-cuneiform
%common_desc
Noto font Sans Cuneiform.

%files -n fonts-ttf-google-noto-sans-cuneiform
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansCuneiform-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cuneiform.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cuneiform.conf
%{_datadir}/appdata/%{_fontname}-sans-cuneiform.metainfo.xml

%package -n fonts-ttf-google-noto-sans-cypriot
Summary:	Sans Cypriot font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-cypriot
%common_desc
Noto font Sans Cypriot.

%files -n fonts-ttf-google-noto-sans-cypriot
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansCypriot-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cypriot.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cypriot.conf
%{_datadir}/appdata/%{_fontname}-sans-cypriot.metainfo.xml

%package -n fonts-ttf-google-noto-sans-deseret
Summary:	Sans Deseret font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-deseret
%common_desc
Noto font Sans Deseret.

%files -n fonts-ttf-google-noto-sans-deseret
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansDeseret-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-deseret.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-deseret.conf
%{_datadir}/appdata/%{_fontname}-sans-deseret.metainfo.xml

%package -n fonts-ttf-google-noto-sans-devanagari
Summary:	Sans Devanagari font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-devanagari
%common_desc
Noto font Sans Devanagari.

%files -n fonts-ttf-google-noto-sans-devanagari
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansDevanagari-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-devanagari.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-devanagari.conf
%{_datadir}/appdata/%{_fontname}-sans-devanagari.metainfo.xml

%package -n fonts-ttf-google-noto-sans-devanagari-ui
Summary:	Sans Devanagari UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-devanagari-ui
%common_desc
Noto font Sans Devanagari UI.

%files -n fonts-ttf-google-noto-sans-devanagari-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansDevanagariUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-devanagari-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-devanagari-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-devanagari-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-duployan
Summary:	Sans Duployan font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-duployan
%common_desc
Noto font Sans Duployan.

%files -n fonts-ttf-google-noto-sans-duployan
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansDuployan-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-duployan.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-duployan.conf
%{_datadir}/appdata/%{_fontname}-sans-duployan.metainfo.xml

%package -n fonts-ttf-google-noto-sans-egyptian-hieroglyphs
Summary:	Sans Egyptian Hieroglyphs font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-egyptian-hieroglyphs
%common_desc
Noto font Sans Egyptian Hieroglyphs.

%files -n fonts-ttf-google-noto-sans-egyptian-hieroglyphs
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansEgyptianHieroglyphs-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-egyptian-hieroglyphs.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-egyptian-hieroglyphs.conf
%{_datadir}/appdata/%{_fontname}-sans-egyptian-hieroglyphs.metainfo.xml

%package -n fonts-ttf-google-noto-sans-elbasan
Summary:	Sans Elbasan font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-elbasan
%common_desc
Noto font Sans Elbasan.

%files -n fonts-ttf-google-noto-sans-elbasan
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansElbasan-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-elbasan.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-elbasan.conf
%{_datadir}/appdata/%{_fontname}-sans-elbasan.metainfo.xml

%package -n fonts-ttf-google-noto-sans-ethiopic
Summary:	Sans Ethiopic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-ethiopic
%common_desc
Noto font Sans Ethiopic.

%files -n fonts-ttf-google-noto-sans-ethiopic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansEthiopic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-ethiopic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-ethiopic.conf
%{_datadir}/appdata/%{_fontname}-sans-ethiopic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-georgian
Summary:	Sans Georgian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-georgian
%common_desc
Noto font Sans Georgian.

%files -n fonts-ttf-google-noto-sans-georgian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansGeorgian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-georgian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-georgian.conf
%{_datadir}/appdata/%{_fontname}-sans-georgian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-glagolitic
Summary:	Sans Glagolitic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-glagolitic
%common_desc
Noto font Sans Glagolitic.

%files -n fonts-ttf-google-noto-sans-glagolitic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansGlagolitic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-glagolitic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-glagolitic.conf
%{_datadir}/appdata/%{_fontname}-sans-glagolitic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-gothic
Summary:	Sans Gothic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-gothic
%common_desc
Noto font Sans Gothic.

%files -n fonts-ttf-google-noto-sans-gothic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansGothic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-gothic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-gothic.conf
%{_datadir}/appdata/%{_fontname}-sans-gothic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-grantha
Summary:	Sans Grantha font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-grantha
%common_desc
Noto font Sans Grantha.

%files -n fonts-ttf-google-noto-sans-grantha
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansGrantha-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-grantha.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-grantha.conf
%{_datadir}/appdata/%{_fontname}-sans-grantha.metainfo.xml

%package -n fonts-ttf-google-noto-sans-gujarati
Summary:	Sans Gujarati font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-gujarati
%common_desc
Noto font Sans Gujarati.

%files -n fonts-ttf-google-noto-sans-gujarati
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansGujarati-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-gujarati.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-gujarati.conf
%{_datadir}/appdata/%{_fontname}-sans-gujarati.metainfo.xml

%package -n fonts-ttf-google-noto-sans-gujarati-ui
Summary:	Sans Gujarati UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-gujarati-ui
%common_desc
Noto font Sans Gujarati UI.

%files -n fonts-ttf-google-noto-sans-gujarati-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansGujaratiUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-gujarati-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-gujarati-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-gujarati-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-gurmukhi
Summary:	Sans Gurmukhi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-gurmukhi
%common_desc
Noto font Sans Gurmukhi.

%files -n fonts-ttf-google-noto-sans-gurmukhi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansGurmukhi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-gurmukhi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-gurmukhi.conf
%{_datadir}/appdata/%{_fontname}-sans-gurmukhi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-gurmukhi-ui
Summary:	Sans Gurmukhi UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-gurmukhi-ui
%common_desc
Noto font Sans Gurmukhi UI.

%files -n fonts-ttf-google-noto-sans-gurmukhi-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansGurmukhiUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-gurmukhi-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-gurmukhi-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-gurmukhi-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-hanunno
Summary:	Sans Hanunoo font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-hanunno
%common_desc
Noto font Sans Hanunoo.

%files -n fonts-ttf-google-noto-sans-hanunno
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansHanunoo-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-hanunoo.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-hanunoo.conf
%{_datadir}/appdata/%{_fontname}-sans-hanunoo.metainfo.xml

%package -n fonts-ttf-google-noto-sans-hatran
Summary:	Sans Hatran font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-hatran
%common_desc
Noto font Sans Hatran.

%files -n fonts-ttf-google-noto-sans-hatran
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansHatran-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-hatran.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-hatran.conf
%{_datadir}/appdata/%{_fontname}-sans-hatran.metainfo.xml

%package -n fonts-ttf-google-noto-sans-hebrew
Summary:	Sans Hebrew font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-hebrew
%common_desc
Noto font Sans Hebrew.

%files -n fonts-ttf-google-noto-sans-hebrew
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansHebrew-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-hebrew.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-hebrew.conf
%{_datadir}/appdata/%{_fontname}-sans-hebrew.metainfo.xml

%package -n fonts-ttf-google-noto-sans-imperial-aramaic
Summary:	Sans Imperial Aramaic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-imperial-aramaic
%common_desc
Noto font Sans Imperial Aramaic.

%files -n fonts-ttf-google-noto-sans-imperial-aramaic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansImperialAramaic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-imperial-aramaic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-imperial-aramaic.conf
%{_datadir}/appdata/%{_fontname}-sans-imperial-aramaic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-inscriptional-pahlavi
Summary:	Sans Inscriptional Pahlavi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-inscriptional-pahlavi
%common_desc
Noto font Sans Inscriptional Pahlavi.

%files -n fonts-ttf-google-noto-sans-inscriptional-pahlavi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansInscriptionalPahlavi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-inscriptional-pahlavi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-inscriptional-pahlavi.conf
%{_datadir}/appdata/%{_fontname}-sans-inscriptional-pahlavi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-inscriptional-parthian
Summary:	Sans Inscriptional Parthian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-inscriptional-parthian
%common_desc
Noto font Sans Inscriptional Parthian.

%files -n fonts-ttf-google-noto-sans-inscriptional-parthian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansInscriptionalParthian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-inscriptional-parthian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-inscriptional-parthian.conf
%{_datadir}/appdata/%{_fontname}-sans-inscriptional-parthian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-javanese
Summary:	Sans Javanese font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-javanese
%common_desc
Noto font Sans Javanese.

%files -n fonts-ttf-google-noto-sans-javanese
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansJavanese-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-javanese.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-javanese.conf
%{_datadir}/appdata/%{_fontname}-sans-javanese.metainfo.xml

%package -n fonts-ttf-google-noto-sans-kaithi
Summary:	Sans Kaithi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-kaithi
%common_desc
Noto font Sans Kaithi.

%files -n fonts-ttf-google-noto-sans-kaithi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKaithi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-kaithi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-kaithi.conf
%{_datadir}/appdata/%{_fontname}-sans-kaithi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-kannada
Summary:	Sans Kannada font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-kannada
%common_desc
Noto font Sans Kannada.

%files -n fonts-ttf-google-noto-sans-kannada
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKannada-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-kannada.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-kannada.conf
%{_datadir}/appdata/%{_fontname}-sans-kannada.metainfo.xml

%package -n fonts-ttf-google-noto-sans-kannada-ui
Summary:	Sans Kannada UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-kannada-ui
%common_desc
Noto font Sans Kannada UI.

%files -n fonts-ttf-google-noto-sans-kannada-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKannadaUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-kannada-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-kannada-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-kannada-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-kayah-li
Summary:	Sans Kayah Li font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-kayah-li
%common_desc
Noto font Sans Kayah Li.

%files -n fonts-ttf-google-noto-sans-kayah-li
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKayahLi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-kayah-li.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-kayah-li.conf
%{_datadir}/appdata/%{_fontname}-sans-kayah-li.metainfo.xml

%package -n fonts-ttf-google-noto-sans-kharoshthi
Summary:	Sans Kharoshthi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-kharoshthi
%common_desc
Noto font Sans Kharoshthi.

%files -n fonts-ttf-google-noto-sans-kharoshthi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKharoshthi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-kharoshthi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-kharoshthi.conf
%{_datadir}/appdata/%{_fontname}-sans-kharoshthi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-khmer
Summary:	Sans Khmer font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-khmer
%common_desc
Noto font Sans Khmer.

%files -n fonts-ttf-google-noto-sans-khmer
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKhmer-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-khmer.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-khmer.conf
%{_datadir}/appdata/%{_fontname}-sans-khmer.metainfo.xml

%package -n fonts-ttf-google-noto-sans-khmer-ui
Summary:	Sans Khmer UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-khmer-ui
%common_desc
Noto font Sans Khmer UI.

%files -n fonts-ttf-google-noto-sans-khmer-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKhmerUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-khmer-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-khmer-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-khmer-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-khojki
Summary:	Sans Khojki font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-khojki
%common_desc
Noto font Sans Khojki.

%files -n fonts-ttf-google-noto-sans-khojki
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKhojki-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-khojki.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-khojki.conf
%{_datadir}/appdata/%{_fontname}-sans-khojki.metainfo.xml

%package -n fonts-ttf-google-noto-sans-khudawadi
Summary:	Sans Khudawadi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-khudawadi
%common_desc
Noto font Sans Khudawadi.

%files -n fonts-ttf-google-noto-sans-khudawadi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansKhudawadi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-khudawadi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-khudawadi.conf
%{_datadir}/appdata/%{_fontname}-sans-khudawadi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-lao
Summary:	Sans Lao font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-lao
%common_desc
Noto font Sans Lao.

%files -n fonts-ttf-google-noto-sans-lao
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLao-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-lao.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-lao.conf
%{_datadir}/appdata/%{_fontname}-sans-lao.metainfo.xml

%package -n fonts-ttf-google-noto-sans-lao-ui
Summary:	Sans Lao UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-lao-ui
%common_desc
Noto font Sans Lao UI.

%files -n fonts-ttf-google-noto-sans-lao-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLaoUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-lao-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-lao-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-lao-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-lepcha
Summary:	Sans Lepcha font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-lepcha
%common_desc
Noto font Sans Lepcha.

%files -n fonts-ttf-google-noto-sans-lepcha
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLepcha-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-lepcha.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-lepcha.conf
%{_datadir}/appdata/%{_fontname}-sans-lepcha.metainfo.xml

%package -n fonts-ttf-google-noto-sans-limbu
Summary:	Sans Limbu font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-limbu
%common_desc
Noto font Sans Limbu.

%files -n fonts-ttf-google-noto-sans-limbu
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLimbu-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-limbu.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-limbu.conf
%{_datadir}/appdata/%{_fontname}-sans-limbu.metainfo.xml

%package -n fonts-ttf-google-noto-sans-linear-a
Summary:	Sans Linear A font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-linear-a
%common_desc
Noto font Sans Linear A.

%files -n fonts-ttf-google-noto-sans-linear-a
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLinearA-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-linear-a.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-linear-a.conf
%{_datadir}/appdata/%{_fontname}-sans-linear-a.metainfo.xml

%package -n fonts-ttf-google-noto-sans-linearb
Summary:	Sans Linear B font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-linearb
%common_desc
Noto font Sans Linear B.

%files -n fonts-ttf-google-noto-sans-linearb
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLinearB-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-linear-b.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-linear-b.conf
%{_datadir}/appdata/%{_fontname}-sans-linear-b.metainfo.xml

%package -n fonts-ttf-google-noto-sans-lisu
Summary:	Sans Lisu font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-lisu
%common_desc
Noto font Sans Lisu.

%files -n fonts-ttf-google-noto-sans-lisu
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLisu-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-lisu.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-lisu.conf
%{_datadir}/appdata/%{_fontname}-sans-lisu.metainfo.xml

%package -n fonts-ttf-google-noto-sans-lycian
Summary:	Sans Lycian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-lycian
%common_desc
Noto font Sans Lycian.

%files -n fonts-ttf-google-noto-sans-lycian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLycian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-lycian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-lycian.conf
%{_datadir}/appdata/%{_fontname}-sans-lycian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-lydian
Summary:	Sans Lydian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-lydian
%common_desc
Noto font Sans Lydian.

%files -n fonts-ttf-google-noto-sans-lydian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansLydian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-lydian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-lydian.conf
%{_datadir}/appdata/%{_fontname}-sans-lydian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-mahajani
Summary:	Sans Mahajani font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-mahajani
%common_desc
Noto font Sans Mahajani.

%files -n fonts-ttf-google-noto-sans-mahajani
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMahajani-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mahajani.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mahajani.conf
%{_datadir}/appdata/%{_fontname}-sans-mahajani.metainfo.xml

%package -n fonts-ttf-google-noto-sans-malayalam
Summary:	Sans Malayalam font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-malayalam
%common_desc
Noto font Sans Malayalam.

%files -n fonts-ttf-google-noto-sans-malayalam
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMalayalam-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-malayalam.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-malayalam.conf
%{_datadir}/appdata/%{_fontname}-sans-malayalam.metainfo.xml

%package -n fonts-ttf-google-noto-sans-malayalam-ui
Summary:	Sans Malayalam UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-malayalam-ui
%common_desc
Noto font Sans Malayalam UI.

%files -n fonts-ttf-google-noto-sans-malayalam-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMalayalamUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-malayalam-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-malayalam-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-malayalam-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-mandaic
Summary:	Sans Mandaic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-mandaic
%common_desc
Noto font Sans Mandaic.

%files -n fonts-ttf-google-noto-sans-mandaic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMandaic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mandaic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mandaic.conf
%{_datadir}/appdata/%{_fontname}-sans-mandaic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-manichaean
Summary:	Sans Manichaean font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-manichaean
%common_desc
Noto font Sans Manichaean.

%files -n fonts-ttf-google-noto-sans-manichaean
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansManichaean-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-manichaean.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-manichaean.conf
%{_datadir}/appdata/%{_fontname}-sans-manichaean.metainfo.xml

%package -n fonts-ttf-google-noto-sans-marchen
Summary:	Sans Marchen font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-marchen
%common_desc
Noto font Sans Marchen.

%files -n fonts-ttf-google-noto-sans-marchen
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMarchen-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-marchen.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-marchen.conf
%{_datadir}/appdata/%{_fontname}-sans-marchen.metainfo.xml

%package -n fonts-ttf-google-noto-sans-math
Summary:	Sans Math font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-math
%common_desc
Noto font Sans Math.

%files -n fonts-ttf-google-noto-sans-math
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMath-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-math.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-math.conf
%{_datadir}/appdata/%{_fontname}-sans-math.metainfo.xml

%package -n fonts-ttf-google-noto-sans-meeteimayek
Summary:	Sans Meetei Mayek font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-meeteimayek
%common_desc
Noto font Sans Meetei Mayek.

%files -n fonts-ttf-google-noto-sans-meeteimayek
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMeeteiMayek-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-meetei-mayek.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-meetei-mayek.conf
%{_datadir}/appdata/%{_fontname}-sans-meetei-mayek.metainfo.xml

%package -n fonts-ttf-google-noto-sans-mende-kikakui
Summary:	Sans Mende Kikakui font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-mende-kikakui
%common_desc
Noto font Sans Mende Kikakui.

%files -n fonts-ttf-google-noto-sans-mende-kikakui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMendeKikakui-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mende-kikakui.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mende-kikakui.conf
%{_datadir}/appdata/%{_fontname}-sans-mende-kikakui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-meroitic
Summary:	Sans Meroitic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-meroitic
%common_desc
Noto font Sans Meroitic.

%files -n fonts-ttf-google-noto-sans-meroitic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMeroitic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-meroitic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-meroitic.conf
%{_datadir}/appdata/%{_fontname}-sans-meroitic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-miao
Summary:	Sans Miao font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-miao
%common_desc
Noto font Sans Miao.

%files -n fonts-ttf-google-noto-sans-miao
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMiao-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-miao.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-miao.conf
%{_datadir}/appdata/%{_fontname}-sans-miao.metainfo.xml

%package -n fonts-ttf-google-noto-sans-modi
Summary:	Sans Modi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-modi
%common_desc
Noto font Sans Modi.

%files -n fonts-ttf-google-noto-sans-modi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansModi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-modi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-modi.conf
%{_datadir}/appdata/%{_fontname}-sans-modi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-mongolian
Summary:	Sans Mongolian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-mongolian
%common_desc
Noto font Sans Mongolian.

%files -n fonts-ttf-google-noto-sans-mongolian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMongolian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mongolian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mongolian.conf
%{_datadir}/appdata/%{_fontname}-sans-mongolian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-mro
Summary:	Sans Mro font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-mro
%common_desc
Noto font Sans Mro.

%files -n fonts-ttf-google-noto-sans-mro
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMro-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mro.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mro.conf
%{_datadir}/appdata/%{_fontname}-sans-mro.metainfo.xml

%package -n fonts-ttf-google-noto-sans-multani
Summary:	Sans Multani font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-multani
%common_desc
Noto font Sans Multani.

%files -n fonts-ttf-google-noto-sans-multani
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMultani-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-multani.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-multani.conf
%{_datadir}/appdata/%{_fontname}-sans-multani.metainfo.xml

%package -n fonts-ttf-google-noto-sans-myanmar
Summary:	Sans Myanmar font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-myanmar
%common_desc
Noto font Sans Myanmar.

%files -n fonts-ttf-google-noto-sans-myanmar
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMyanmar-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-myanmar.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-myanmar.conf
%{_datadir}/appdata/%{_fontname}-sans-myanmar.metainfo.xml

%package -n fonts-ttf-google-noto-sans-myanmar-ui
Summary:	Sans Myanmar UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-myanmar-ui
%common_desc
Noto font Sans Myanmar UI.

%files -n fonts-ttf-google-noto-sans-myanmar-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMyanmarUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-myanmar-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-myanmar-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-myanmar-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-nabataean
Summary:	Sans Nabataean font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-nabataean
%common_desc
Noto font Sans Nabataean.

%files -n fonts-ttf-google-noto-sans-nabataean
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansNabataean-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-nabataean.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-nabataean.conf
%{_datadir}/appdata/%{_fontname}-sans-nabataean.metainfo.xml

%package -n fonts-ttf-google-noto-sans-new-tai-lue
Summary:	Sans New Tai Lue font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-new-tai-lue
%common_desc
Noto font Sans New Tai Lue.

%files -n fonts-ttf-google-noto-sans-new-tai-lue
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansNewTaiLue-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-new-tai-lue.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-new-tai-lue.conf
%{_datadir}/appdata/%{_fontname}-sans-new-tai-lue.metainfo.xml

%package -n fonts-ttf-google-noto-sans-newa
Summary:	Sans Newa font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-newa
%common_desc
Noto font Sans Newa.

%files -n fonts-ttf-google-noto-sans-newa
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansNewa-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-newa.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-newa.conf
%{_datadir}/appdata/%{_fontname}-sans-newa.metainfo.xml

%package -n fonts-ttf-google-noto-sans-nko
Summary:	Sans NKo font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-nko
%common_desc
Noto font Sans NKo.

%files -n fonts-ttf-google-noto-sans-nko
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansNKo-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-nko.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-nko.conf
%{_datadir}/appdata/%{_fontname}-sans-nko.metainfo.xml

%package -n fonts-ttf-google-noto-sans-ogham
Summary:	Sans Ogham font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-ogham
%common_desc
Noto font Sans Ogham.

%files -n fonts-ttf-google-noto-sans-ogham
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOgham-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-ogham.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-ogham.conf
%{_datadir}/appdata/%{_fontname}-sans-ogham.metainfo.xml

%package -n fonts-ttf-google-noto-sans-ol-chiki
Summary:	Sans Ol Chiki font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-ol-chiki
%common_desc
Noto font Sans Ol Chiki.

%files -n fonts-ttf-google-noto-sans-ol-chiki
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOlChiki-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-ol-chiki.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-ol-chiki.conf
%{_datadir}/appdata/%{_fontname}-sans-ol-chiki.metainfo.xml

%package -n fonts-ttf-google-noto-sans-old-hungarian
Summary:	Sans Old Hungarian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-old-hungarian
%common_desc
Noto font Sans Old Hungarian.

%files -n fonts-ttf-google-noto-sans-old-hungarian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOldHungarian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-old-hungarian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-old-hungarian.conf
%{_datadir}/appdata/%{_fontname}-sans-old-hungarian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-old-italic
Summary:	Sans Old Italic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-old-italic
%common_desc
Noto font Sans Old Italic.

%files -n fonts-ttf-google-noto-sans-old-italic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOldItalic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-old-italic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-old-italic.conf
%{_datadir}/appdata/%{_fontname}-sans-old-italic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-old-north-arabian
Summary:	Sans Old North Arabian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-old-north-arabian
%common_desc
Noto font Sans Old North Arabian.

%files -n fonts-ttf-google-noto-sans-old-north-arabian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOldNorthArabian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-old-north-arabian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-old-north-arabian.conf
%{_datadir}/appdata/%{_fontname}-sans-old-north-arabian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-old-permic
Summary:	Sans Old Permic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-old-permic
%common_desc
Noto font Sans Old Permic.

%files -n fonts-ttf-google-noto-sans-old-permic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOldPermic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-old-permic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-old-permic.conf
%{_datadir}/appdata/%{_fontname}-sans-old-permic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-old-persian
Summary:	Sans Old Persian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-old-persian
%common_desc
Noto font Sans Old Persian.

%files -n fonts-ttf-google-noto-sans-old-persian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOldPersian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-old-persian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-old-persian.conf
%{_datadir}/appdata/%{_fontname}-sans-old-persian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-old-south-arabian
Summary:	Sans Old South Arabian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-old-south-arabian
%common_desc
Noto font Sans Old South Arabian.

%files -n fonts-ttf-google-noto-sans-old-south-arabian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOldSouthArabian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-old-south-arabian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-old-south-arabian.conf
%{_datadir}/appdata/%{_fontname}-sans-old-south-arabian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-old-turkic
Summary:	Sans Old Turkic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-old-turkic
%common_desc
Noto font Sans Old Turkic.

%files -n fonts-ttf-google-noto-sans-old-turkic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOldTurkic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-old-turkic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-old-turkic.conf
%{_datadir}/appdata/%{_fontname}-sans-old-turkic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-osage
Summary:	Sans Osage font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-osage
%common_desc
Noto font Sans Osage.

%files -n fonts-ttf-google-noto-sans-osage
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOsage-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-osage.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-osage.conf
%{_datadir}/appdata/%{_fontname}-sans-osage.metainfo.xml

%package -n fonts-ttf-google-noto-sans-osmanya
Summary:	Sans Osmanya font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-osmanya
%common_desc
Noto font Sans Osmanya.

%files -n fonts-ttf-google-noto-sans-osmanya
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOsmanya-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-osmanya.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-osmanya.conf
%{_datadir}/appdata/%{_fontname}-sans-osmanya.metainfo.xml

%package -n fonts-ttf-google-noto-sans-pahawh-hmong
Summary:	Sans Pahawh Hmong font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-pahawh-hmong
%common_desc
Noto font Sans Pahawh Hmong.

%files -n fonts-ttf-google-noto-sans-pahawh-hmong
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansPahawhHmong-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-pahawh-hmong.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-pahawh-hmong.conf
%{_datadir}/appdata/%{_fontname}-sans-pahawh-hmong.metainfo.xml

%package -n fonts-ttf-google-noto-sans-palmyrene
Summary:	Sans Palmyrene font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-palmyrene
%common_desc
Noto font Sans Palmyrene.

%files -n fonts-ttf-google-noto-sans-palmyrene
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansPalmyrene-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-palmyrene.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-palmyrene.conf
%{_datadir}/appdata/%{_fontname}-sans-palmyrene.metainfo.xml

%package -n fonts-ttf-google-noto-sans-pau-cin-hau
Summary:	Sans Pau Cin Hau font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-pau-cin-hau
%common_desc
Noto font Sans Pau Cin Hau.

%files -n fonts-ttf-google-noto-sans-pau-cin-hau
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansPauCinHau-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-pau-cin-hau.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-pau-cin-hau.conf
%{_datadir}/appdata/%{_fontname}-sans-pau-cin-hau.metainfo.xml

%package -n fonts-ttf-google-noto-sans-phags-pa
Summary:	Sans Phags Pa font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-phags-pa
%common_desc
Noto font Sans Phags Pa.

%files -n fonts-ttf-google-noto-sans-phags-pa
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansPhagsPa-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-phags-pa.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-phags-pa.conf
%{_datadir}/appdata/%{_fontname}-sans-phags-pa.metainfo.xml

%package -n fonts-ttf-google-noto-sans-phoenician
Summary:	Sans Phoenician font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-phoenician
%common_desc
Noto font Sans Phoenician.

%files -n fonts-ttf-google-noto-sans-phoenician
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansPhoenician-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-phoenician.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-phoenician.conf
%{_datadir}/appdata/%{_fontname}-sans-phoenician.metainfo.xml

%package -n fonts-ttf-google-noto-sans-psalter-pahlavi
Summary:	Sans Psalter Pahlavi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-psalter-pahlavi
%common_desc
Noto font Sans Psalter Pahlavi.

%files -n fonts-ttf-google-noto-sans-psalter-pahlavi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansPsalterPahlavi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-psalter-pahlavi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-psalter-pahlavi.conf
%{_datadir}/appdata/%{_fontname}-sans-psalter-pahlavi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-rejang
Summary:	Sans Rejang font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-rejang
%common_desc
Noto font Sans Rejang.

%files -n fonts-ttf-google-noto-sans-rejang
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansRejang-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-rejang.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-rejang.conf
%{_datadir}/appdata/%{_fontname}-sans-rejang.metainfo.xml

%package -n fonts-ttf-google-noto-sans-runic
Summary:	Sans Runic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-runic
%common_desc
Noto font Sans Runic.

%files -n fonts-ttf-google-noto-sans-runic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansRunic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-runic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-runic.conf
%{_datadir}/appdata/%{_fontname}-sans-runic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-samaritan
Summary:	Sans Samaritan font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-samaritan
%common_desc
Noto font Sans Samaritan.

%files -n fonts-ttf-google-noto-sans-samaritan
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSamaritan-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-samaritan.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-samaritan.conf
%{_datadir}/appdata/%{_fontname}-sans-samaritan.metainfo.xml

%package -n fonts-ttf-google-noto-sans-saurashtra
Summary:	Sans Saurashtra font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-saurashtra
%common_desc
Noto font Sans Saurashtra.

%files -n fonts-ttf-google-noto-sans-saurashtra
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSaurashtra-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-saurashtra.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-saurashtra.conf
%{_datadir}/appdata/%{_fontname}-sans-saurashtra.metainfo.xml

%package -n fonts-ttf-google-noto-sans-sharada
Summary:	Sans Sharada font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-sharada
%common_desc
Noto font Sans Sharada.

%files -n fonts-ttf-google-noto-sans-sharada
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSharada-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-sharada.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-sharada.conf
%{_datadir}/appdata/%{_fontname}-sans-sharada.metainfo.xml

%package -n fonts-ttf-google-noto-sans-shavian
Summary:	Sans Shavian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-shavian
%common_desc
Noto font Sans Shavian.

%files -n fonts-ttf-google-noto-sans-shavian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansShavian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-shavian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-shavian.conf
%{_datadir}/appdata/%{_fontname}-sans-shavian.metainfo.xml

%package -n fonts-ttf-google-noto-sans-sinhala
Summary:	Sans Sinhala font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-sinhala
%common_desc
Noto font Sans Sinhala.

%files -n fonts-ttf-google-noto-sans-sinhala
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSinhala-*.*tf
%{_fontconfig_templatedir}/%{hprio}-%{fontconf}-sans-sinhala.conf
%config(noreplace) %{_fontconfig_confdir}/%{hprio}-%{fontconf}-sans-sinhala.conf
%{_datadir}/appdata/%{_fontname}-sans-sinhala.metainfo.xml

%package -n fonts-ttf-google-noto-sans-sinhala-ui
Summary:	Sans Sinhala UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-sinhala-ui
%common_desc
Noto font Sans Sinhala UI.

%files -n fonts-ttf-google-noto-sans-sinhala-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSinhalaUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-sinhala-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-sinhala-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-sinhala-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-sora-sompeng
Summary:	Sans Sora Sompeng font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-sora-sompeng
%common_desc
Noto font Sans Sora Sompeng.

%files -n fonts-ttf-google-noto-sans-sora-sompeng
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSoraSompeng-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-sora-sompeng.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-sora-sompeng.conf
%{_datadir}/appdata/%{_fontname}-sans-sora-sompeng.metainfo.xml

%package -n fonts-ttf-google-noto-sans-sundanese
Summary:	Sans Sundanese font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-sundanese
%common_desc
Noto font Sans Sundanese.

%files -n fonts-ttf-google-noto-sans-sundanese
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSundanese-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-sundanese.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-sundanese.conf
%{_datadir}/appdata/%{_fontname}-sans-sundanese.metainfo.xml

%package -n fonts-ttf-google-noto-sans-syloti-nagri
Summary:	Sans Syloti Nagri font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-syloti-nagri
%common_desc
Noto font Sans Syloti Nagri.

%files -n fonts-ttf-google-noto-sans-syloti-nagri
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSylotiNagri-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-syloti-nagri.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-syloti-nagri.conf
%{_datadir}/appdata/%{_fontname}-sans-syloti-nagri.metainfo.xml

%package -n fonts-ttf-google-noto-sans-symbols
Summary:	Sans Symbols font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-symbols
%common_desc
Noto font Sans Symbols.

%files -n fonts-ttf-google-noto-sans-symbols
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSymbols-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-symbols.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-symbols.conf
%{_datadir}/appdata/%{_fontname}-sans-symbols.metainfo.xml

%package -n fonts-ttf-google-noto-sans-symbols2
Summary:	Sans Symbols2 font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-symbols2
%common_desc
Noto font Sans Symbols2.

%files -n fonts-ttf-google-noto-sans-symbols2
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSymbols2-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-symbols2.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-symbols2.conf
%{_datadir}/appdata/%{_fontname}-sans-symbols2.metainfo.xml

%package -n fonts-ttf-google-noto-sans-syriac
Summary:	Sans Syriac font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-syriac
%common_desc
Noto font Sans Syriac.

%files -n fonts-ttf-google-noto-sans-syriac
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSyriac-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-syriac.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-syriac.conf
%{_datadir}/appdata/%{_fontname}-sans-syriac.metainfo.xml

%package -n fonts-ttf-google-noto-sans-syriac-eastern
Summary:	Sans Syriac Eastern font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-syriac-eastern
%common_desc
Noto font Sans Syriac Eastern.

%files -n fonts-ttf-google-noto-sans-syriac-eastern
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSyriacEastern-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-syriac-eastern.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-syriac-eastern.conf
%{_datadir}/appdata/%{_fontname}-sans-syriac-eastern.metainfo.xml

%package -n fonts-ttf-google-noto-sans-syriac-estrangela
Summary:	Sans Syriac Estrangela font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-syriac-estrangela
%common_desc
Noto font Sans Syriac Estrangela.

%files -n fonts-ttf-google-noto-sans-syriac-estrangela
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSyriacEstrangela-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-syriac-estrangela.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-syriac-estrangela.conf
%{_datadir}/appdata/%{_fontname}-sans-syriac-estrangela.metainfo.xml

%package -n fonts-ttf-google-noto-sans-syriac-western
Summary:	Sans Syriac Western font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-syriac-western
%common_desc
Noto font Sans Syriac Western.

%files -n fonts-ttf-google-noto-sans-syriac-western
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansSyriacWestern-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-syriac-western.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-syriac-western.conf
%{_datadir}/appdata/%{_fontname}-sans-syriac-western.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tagalog
Summary:	Sans Tagalog font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tagalog
%common_desc
Noto font Sans Tagalog.

%files -n fonts-ttf-google-noto-sans-tagalog
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTagalog-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tagalog.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tagalog.conf
%{_datadir}/appdata/%{_fontname}-sans-tagalog.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tagbanwa
Summary:	Sans Tagbanwa font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tagbanwa
%common_desc
Noto font Sans Tagbanwa.

%files -n fonts-ttf-google-noto-sans-tagbanwa
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTagbanwa-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tagbanwa.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tagbanwa.conf
%{_datadir}/appdata/%{_fontname}-sans-tagbanwa.metainfo.xml

%package -n fonts-ttf-google-noto-sans-takri
Summary:	Sans Takri font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-takri
%common_desc
Noto font Sans Takri.

%files -n fonts-ttf-google-noto-sans-takri
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTakri-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-takri.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-takri.conf
%{_datadir}/appdata/%{_fontname}-sans-takri.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tai-le
Summary:	Sans Tai Le font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tai-le
%common_desc
Noto font Sans Tai Le.

%files -n fonts-ttf-google-noto-sans-tai-le
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTaiLe-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tai-le.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tai-le.conf
%{_datadir}/appdata/%{_fontname}-sans-tai-le.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tai-tham
Summary:	Sans Tai Tham font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tai-tham
%common_desc
Noto font Sans Tai Tham.

%files -n fonts-ttf-google-noto-sans-tai-tham
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTaiTham-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tai-tham.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tai-tham.conf
%{_datadir}/appdata/%{_fontname}-sans-tai-tham.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tai-viet
Summary:	Sans Tai Viet font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tai-viet
%common_desc
Noto font Sans Tai Viet.

%files -n fonts-ttf-google-noto-sans-tai-viet
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTaiViet-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tai-viet.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tai-viet.conf
%{_datadir}/appdata/%{_fontname}-sans-tai-viet.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tamil
Summary:	Sans Tamil font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tamil
%common_desc
Noto font Sans Tamil.

%files -n fonts-ttf-google-noto-sans-tamil
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTamil-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tamil.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tamil.conf
%{_datadir}/appdata/%{_fontname}-sans-tamil.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tamil-ui
Summary:	Sans Tamil UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tamil-ui
%common_desc
Noto font Sans Tamil UI.

%files -n fonts-ttf-google-noto-sans-tamil-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTamilUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-tamil-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-tamil-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-tamil-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-telugu
Summary:	Sans Telugu font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-telugu
%common_desc
Noto font Sans Telugu.

%files -n fonts-ttf-google-noto-sans-telugu
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTelugu-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-telugu.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-telugu.conf
%{_datadir}/appdata/%{_fontname}-sans-telugu.metainfo.xml

%package -n fonts-ttf-google-noto-sans-telugu-ui
Summary:	Sans Telugu UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-telugu-ui
%common_desc
Noto font Sans Telugu UI.

%files -n fonts-ttf-google-noto-sans-telugu-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTeluguUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-telugu-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-telugu-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-telugu-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-thaana
Summary:	Sans Thaana font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-thaana
%common_desc
Noto font Sans Thaana.

%files -n fonts-ttf-google-noto-sans-thaana
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansThaana-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-thaana.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-thaana.conf
%{_datadir}/appdata/%{_fontname}-sans-thaana.metainfo.xml

%package -n fonts-ttf-google-noto-sans-thai
Summary:	Sans Thai font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-thai
%common_desc
Noto font Sans Thai.

%files -n fonts-ttf-google-noto-sans-thai
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansThai-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-thai.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-thai.conf
%{_datadir}/appdata/%{_fontname}-sans-thai.metainfo.xml

%package -n fonts-ttf-google-noto-sans-thai-ui
Summary:	Sans Thai UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-thai-ui
%common_desc
Noto font Sans Thai UI.

%files -n fonts-ttf-google-noto-sans-thai-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansThaiUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-thai-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-thai-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-thai-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tifinagh
Summary:	Sans Tifinagh font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tifinagh
%common_desc
Noto font Sans Tifinagh.

%files -n fonts-ttf-google-noto-sans-tifinagh
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTifinagh-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tifinagh.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tifinagh.conf
%{_datadir}/appdata/%{_fontname}-sans-tifinagh.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tirhuta
Summary:	Sans Tirhuta font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tirhuta
%common_desc
Noto font Sans Tirhuta.

%files -n fonts-ttf-google-noto-sans-tirhuta
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTirhuta-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tirhuta.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tirhuta.conf
%{_datadir}/appdata/%{_fontname}-sans-tirhuta.metainfo.xml

%package -n fonts-ttf-google-noto-sans-ugaritic
Summary:	Sans Ugaritic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-ugaritic
%common_desc
Noto font Sans Ugaritic.

%files -n fonts-ttf-google-noto-sans-ugaritic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansUgaritic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-ugaritic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-ugaritic.conf
%{_datadir}/appdata/%{_fontname}-sans-ugaritic.metainfo.xml

%package -n fonts-ttf-google-noto-sans-vai
Summary:	Sans Vai font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-vai
%common_desc
Noto font Sans Vai.

%files -n fonts-ttf-google-noto-sans-vai
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansVai-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-vai.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-vai.conf
%{_datadir}/appdata/%{_fontname}-sans-vai.metainfo.xml

%package -n fonts-ttf-google-noto-sans-warang-citi
Summary:	Sans Warang Citi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-warang-citi
%common_desc
Noto font Sans Warang Citi.

%files -n fonts-ttf-google-noto-sans-warang-citi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansWarangCiti-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-warang-citi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-warang-citi.conf
%{_datadir}/appdata/%{_fontname}-sans-warang-citi.metainfo.xml

%package -n fonts-ttf-google-noto-sans-yi
Summary:	Sans Yi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-yi
%common_desc
Noto font Sans Yi.

%files -n fonts-ttf-google-noto-sans-yi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansYi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-yi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-yi.conf
%{_datadir}/appdata/%{_fontname}-sans-yi.metainfo.xml

%package -n fonts-ttf-google-noto-serif
Summary:	Serif font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif
%common_desc
Noto font Serif.

%files -n fonts-ttf-google-noto-serif
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerif-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif.conf
%{_datadir}/appdata/%{_fontname}-serif.metainfo.xml

%package -n fonts-ttf-google-noto-serif-ahom
Summary:	Serif Ahom font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-ahom
%common_desc
Noto font Serif Ahom.

%files -n fonts-ttf-google-noto-serif-ahom
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifAhom-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-ahom.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-ahom.conf
%{_datadir}/appdata/%{_fontname}-serif-ahom.metainfo.xml

%package -n fonts-ttf-google-noto-serif-armenian
Summary:	Serif Armenian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-armenian
%common_desc
Noto font Serif Armenian.

%files -n fonts-ttf-google-noto-serif-armenian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifArmenian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-armenian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-armenian.conf
%{_datadir}/appdata/%{_fontname}-serif-armenian.metainfo.xml

%package -n fonts-ttf-google-noto-serif-balinese
Summary:	Serif Balinese font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-balinese
%common_desc
Noto font Serif Balinese.

%files -n fonts-ttf-google-noto-serif-balinese
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifBalinese-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-balinese.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-balinese.conf
%{_datadir}/appdata/%{_fontname}-serif-balinese.metainfo.xml

%package -n fonts-ttf-google-noto-serif-display
Summary:	Serif Display font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-display
%common_desc
Noto font Serif Display.

%files -n fonts-ttf-google-noto-serif-display
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifDisplay-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-serif-display.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-serif-display.conf
%{_datadir}/appdata/%{_fontname}-serif-display.metainfo.xml

%package -n fonts-ttf-google-noto-serif-ethiopic
Summary:	Serif Ethiopic font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-ethiopic
%common_desc
Noto font Serif Ethiopic.

%files -n fonts-ttf-google-noto-serif-ethiopic
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifEthiopic-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-ethiopic.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-ethiopic.conf
%{_datadir}/appdata/%{_fontname}-serif-ethiopic.metainfo.xml

%package -n fonts-ttf-google-noto-serif-georgian
Summary:	Serif Georgian font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-georgian
%common_desc
Noto font Serif Georgian.

%files -n fonts-ttf-google-noto-serif-georgian
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifGeorgian-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-georgian.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-georgian.conf
%{_datadir}/appdata/%{_fontname}-serif-georgian.metainfo.xml

%package -n fonts-ttf-google-noto-serif-hebrew
Summary:	Serif Hebrew font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-hebrew
%common_desc
Noto font Serif Hebrew.

%files -n fonts-ttf-google-noto-serif-hebrew
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifHebrew-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-hebrew.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-hebrew.conf
%{_datadir}/appdata/%{_fontname}-serif-hebrew.metainfo.xml

%package -n fonts-ttf-google-noto-serif-khmer
Summary:	Serif Khmer font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-khmer
%common_desc
Noto font Serif Khmer.

%files -n fonts-ttf-google-noto-serif-khmer
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifKhmer-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-khmer.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-khmer.conf
%{_datadir}/appdata/%{_fontname}-serif-khmer.metainfo.xml

%package -n fonts-ttf-google-noto-serif-lao
Summary:	Serif Lao font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-lao
%common_desc
Noto font Serif Lao.

%files -n fonts-ttf-google-noto-serif-lao
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifLao-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-lao.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-lao.conf
%{_datadir}/appdata/%{_fontname}-serif-lao.metainfo.xml

%package -n fonts-ttf-google-noto-serif-myanmar
Summary:	Serif Myanmar font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-myanmar
%common_desc
Noto font Serif Myanmar.

%files -n fonts-ttf-google-noto-serif-myanmar
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifMyanmar-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-myanmar.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-myanmar.conf
%{_datadir}/appdata/%{_fontname}-serif-myanmar.metainfo.xml

%package -n fonts-ttf-google-noto-serif-tamil-slanted
Summary:	Serif Tamil Slanted font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-tamil-slanted
%common_desc
Noto font Serif Tamil Slanted.

%files -n fonts-ttf-google-noto-serif-tamil-slanted
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifTamilSlanted-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-tamil-slanted.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-tamil-slanted.conf
%{_datadir}/appdata/%{_fontname}-serif-tamil-slanted.metainfo.xml

%package -n fonts-ttf-google-noto-serif-thai
Summary:	Serif Thai font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-thai
%common_desc
Noto font Serif Thai.

%files -n fonts-ttf-google-noto-serif-thai
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifThai-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-thai.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-thai.conf
%{_datadir}/appdata/%{_fontname}-serif-thai.metainfo.xml

%package -n fonts-ttf-google-noto-sans-oriya
Summary:	Sans Oriya font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-oriya
%common_desc
Noto font Sans Oriya.

%files -n fonts-ttf-google-noto-sans-oriya
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOriya-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-oriya.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-oriya.conf
%{_datadir}/appdata/%{_fontname}-sans-oriya.metainfo.xml

%package -n fonts-ttf-google-noto-sans-oriya-ui
Summary:	Sans Oriya UI font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-oriya-ui
%common_desc
Noto font Sans Oriya UI.

%files -n fonts-ttf-google-noto-sans-oriya-ui
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansOriyaUI-*.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-oriya-ui.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-oriya-ui.conf
%{_datadir}/appdata/%{_fontname}-sans-oriya-ui.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tibetan
Summary:	Sans Tibetan font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tibetan
%common_desc
Noto font Sans Tibetan.

%files -n fonts-ttf-google-noto-sans-tibetan
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansTibetan-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tibetan.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tibetan.conf
%{_datadir}/appdata/%{_fontname}-sans-tibetan.metainfo.xml

%package -n fonts-ttf-google-noto-nastaliq-urdu
Summary:	Nastaliq Urdu font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-nastaliq-urdu
%common_desc
Noto font Nastaliq Urdu.

%files -n fonts-ttf-google-noto-nastaliq-urdu
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoNastaliqUrdu-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-nastaliq-urdu.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-nastaliq-urdu.conf
%{_datadir}/appdata/%{_fontname}-nastaliq-urdu.metainfo.xml

%package -n fonts-ttf-google-noto-sans-mono
Summary:	Sans Mono font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-mono
%common_desc
Noto font Sans Mono.

%files -n fonts-ttf-google-noto-sans-mono
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSansMono-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mono.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mono.conf
%{_datadir}/appdata/%{_fontname}-sans-mono.metainfo.xml

%package -n fonts-ttf-google-noto-serif-bengali
Summary:	Serif Bengali font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-bengali
%common_desc
Noto font Serif Bengali.

%files -n fonts-ttf-google-noto-serif-bengali
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifBengali-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-bengali.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-bengali.conf
%{_datadir}/appdata/%{_fontname}-serif-bengali.metainfo.xml

%package -n fonts-ttf-google-noto-serif-devanagari
Summary:	Serif Devanagari font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-devanagari
%common_desc
Noto font Serif Devanagari.

%files -n fonts-ttf-google-noto-serif-devanagari
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifDevanagari-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-devanagari.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-devanagari.conf
%{_datadir}/appdata/%{_fontname}-serif-devanagari.metainfo.xml

%package -n fonts-ttf-google-noto-serif-gujarati
Summary:	Serif Gujarati font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-gujarati
%common_desc
Noto font Serif Gujarati.

%files -n fonts-ttf-google-noto-serif-gujarati
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifGujarati-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-gujarati.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-gujarati.conf
%{_datadir}/appdata/%{_fontname}-serif-gujarati.metainfo.xml

%package -n fonts-ttf-google-noto-serif-gurmukhi
Summary:	Serif Gurmukhi font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-gurmukhi
%common_desc
Noto font Serif Gurmukhi.

%files -n fonts-ttf-google-noto-serif-gurmukhi
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifGurmukhi-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-gurmukhi.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-gurmukhi.conf
%{_datadir}/appdata/%{_fontname}-serif-gurmukhi.metainfo.xml

%package -n fonts-ttf-google-noto-serif-kannada
Summary:	Serif Kannada font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-kannada
%common_desc
Noto font Serif Kannada.

%files -n fonts-ttf-google-noto-serif-kannada
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifKannada-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-kannada.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-kannada.conf
%{_datadir}/appdata/%{_fontname}-serif-kannada.metainfo.xml

%package -n fonts-ttf-google-noto-serif-malayalam
Summary:	Serif Malayalam font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-malayalam
%common_desc
Noto font Serif Malayalam.

%files -n fonts-ttf-google-noto-serif-malayalam
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifMalayalam-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-malayalam.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-malayalam.conf
%{_datadir}/appdata/%{_fontname}-serif-malayalam.metainfo.xml

%package -n fonts-ttf-google-noto-serif-sinhala
Summary:	Serif Sinhala font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-sinhala
%common_desc
Noto font Serif Sinhala.

%files -n fonts-ttf-google-noto-serif-sinhala
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifSinhala-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-sinhala.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-sinhala.conf
%{_datadir}/appdata/%{_fontname}-serif-sinhala.metainfo.xml

%package -n fonts-ttf-google-noto-serif-tamil
Summary:	Serif Tamil font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-tamil
%common_desc
Noto font Serif Tamil.

%files -n fonts-ttf-google-noto-serif-tamil
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifTamil-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-tamil.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-tamil.conf
%{_datadir}/appdata/%{_fontname}-serif-tamil.metainfo.xml

%package -n fonts-ttf-google-noto-serif-telugu
Summary:	Serif Telugu font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-telugu
%common_desc
Noto font Serif Telugu.

%files -n fonts-ttf-google-noto-serif-telugu
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifTelugu-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-telugu.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-telugu.conf
%{_datadir}/appdata/%{_fontname}-serif-telugu.metainfo.xml

%package -n fonts-ttf-google-noto-serif-tibetan
Summary:	Serif Tibetan font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-tibetan
%common_desc
Noto font Serif Tibetan.

%files -n fonts-ttf-google-noto-serif-tibetan
%dir %_ttffontsdir/%_fontname
%_ttffontsdir/%_fontname/NotoSerifTibetan-*.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-tibetan.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-tibetan.conf
%{_datadir}/appdata/%{_fontname}-serif-tibetan.metainfo.xml

%package -n fonts-ttf-google-noto-sans-vf
Summary:	Sans variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-vf
%common_desc
Noto font Sans.

%files -n fonts-ttf-google-noto-sans-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSans-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-arabic-vf
Summary:	Sans Arabic variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-arabic-vf
%common_desc
Noto font Sans Arabic.

%files -n fonts-ttf-google-noto-sans-arabic-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansArabic-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-arabic-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-arabic-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-arabic-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-arabic-ui-vf
Summary:	Sans Arabic UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-arabic-ui-vf
%common_desc
Noto font Sans Arabic UI.

%files -n fonts-ttf-google-noto-sans-arabic-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansArabicUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-arabic-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-arabic-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-arabic-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-armenian-vf
Summary:	Sans Armenian variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-armenian-vf
%common_desc
Noto font Sans Armenian.

%files -n fonts-ttf-google-noto-sans-armenian-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansArmenian-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-armenian-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-armenian-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-armenian-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-bengali-vf
Summary:	Sans Bengali variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-bengali-vf
%common_desc
Noto font Sans Bengali.

%files -n fonts-ttf-google-noto-sans-bengali-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansBengali-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-bengali-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-bengali-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-bengali-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-bengali-ui-vf
Summary:	Sans Bengali UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-bengali-ui-vf
%common_desc
Noto font Sans Bengali UI.

%files -n fonts-ttf-google-noto-sans-bengali-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansBengaliUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-bengali-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-bengali-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-bengali-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-canadian-aboriginal-vf
Summary:	Sans Canadian Aboriginal variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-canadian-aboriginal-vf
%common_desc
Noto font Sans Canadian Aboriginal.

%files -n fonts-ttf-google-noto-sans-canadian-aboriginal-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansCanadianAboriginal-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-canadian-aboriginal-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-canadian-aboriginal-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-canadian-aboriginal-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-cham-vf
Summary:	Sans Cham variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-cham-vf
%common_desc
Noto font Sans Cham.

%files -n fonts-ttf-google-noto-sans-cham-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansCham-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cham-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cham-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-cham-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-cherokee-vf
Summary:	Sans Cherokee variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-cherokee-vf
%common_desc
Noto font Sans Cherokee.

%files -n fonts-ttf-google-noto-sans-cherokee-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansCherokee-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-cherokee-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-cherokee-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-cherokee-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-devanagari-vf
Summary:	Sans Devanagari variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-devanagari-vf
%common_desc
Noto font Sans Devanagari.

%files -n fonts-ttf-google-noto-sans-devanagari-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansDevanagari-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-devanagari-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-devanagari-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-devanagari-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-devanagari-ui-vf
Summary:	Sans Devanagari UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-devanagari-ui-vf
%common_desc
Noto font Sans Devanagari UI.

%files -n fonts-ttf-google-noto-sans-devanagari-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansDevanagariUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-devanagari-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-devanagari-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-devanagari-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-display-vf
Summary:	Sans Display variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-display-vf
%common_desc
Noto font Sans Display.

%files -n fonts-ttf-google-noto-sans-display-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansDisplay-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-display-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-display-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-display-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-ethiopic-vf
Summary:	Sans Ethiopic variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-ethiopic-vf
%common_desc
Noto font Sans Ethiopic.

%files -n fonts-ttf-google-noto-sans-ethiopic-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansEthiopic-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-ethiopic-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-ethiopic-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-ethiopic-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-georgian-vf
Summary:	Sans Georgian variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-georgian-vf
%common_desc
Noto font Sans Georgian.

%files -n fonts-ttf-google-noto-sans-georgian-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansGeorgian-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-georgian-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-georgian-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-georgian-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-hebrew-vf
Summary:	Sans Hebrew variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-hebrew-vf
%common_desc
Noto font Sans Hebrew.

%files -n fonts-ttf-google-noto-sans-hebrew-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansHebrew-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-hebrew-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-hebrew-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-hebrew-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-kannada-vf
Summary:	Sans Kannada variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-kannada-vf
%common_desc
Noto font Sans Kannada.

%files -n fonts-ttf-google-noto-sans-kannada-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansKannada-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-kannada-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-kannada-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-kannada-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-kannada-ui-vf
Summary:	Sans Kannada UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-kannada-ui-vf
%common_desc
Noto font Sans Kannada UI.

%files -n fonts-ttf-google-noto-sans-kannada-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansKannadaUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-kannada-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-kannada-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-kannada-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-khmer-vf
Summary:	Sans Khmer variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-khmer-vf
%common_desc
Noto font Sans Khmer.

%files -n fonts-ttf-google-noto-sans-khmer-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansKhmer-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-khmer-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-khmer-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-khmer-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-khmer-ui-vf
Summary:	Sans Khmer UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-khmer-ui-vf
%common_desc
Noto font Sans Khmer UI.

%files -n fonts-ttf-google-noto-sans-khmer-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansKhmerUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-khmer-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-khmer-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-khmer-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-lao-vf
Summary:	Sans Lao variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-lao-vf
%common_desc
Noto font Sans Lao.

%files -n fonts-ttf-google-noto-sans-lao-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansLao-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-lao-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-lao-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-lao-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-lao-ui-vf
Summary:	Sans Lao UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-lao-ui-vf
%common_desc
Noto font Sans Lao UI.

%files -n fonts-ttf-google-noto-sans-lao-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansLaoUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-lao-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-lao-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-lao-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-malayalam-vf
Summary:	Sans Malayalam variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-malayalam-vf
%common_desc
Noto font Sans Malayalam.

%files -n fonts-ttf-google-noto-sans-malayalam-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansMalayalam-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-malayalam-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-malayalam-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-malayalam-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-malayalam-ui-vf
Summary:	Sans Malayalam UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-malayalam-ui-vf
%common_desc
Noto font Sans Malayalam UI.

%files -n fonts-ttf-google-noto-sans-malayalam-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansMalayalamUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-malayalam-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-malayalam-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-malayalam-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-mono-vf
Summary:	Sans Mono variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-mono-vf
%common_desc
Noto font Sans Mono.

%files -n fonts-ttf-google-noto-sans-mono-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansMono-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-mono-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-mono-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-mono-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-myanmar-vf
Summary:	Sans Myanmar variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-myanmar-vf
%common_desc
Noto font Sans Myanmar.

%files -n fonts-ttf-google-noto-sans-myanmar-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansMyanmar-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-myanmar-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-myanmar-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-myanmar-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-myanmar-ui-vf
Summary:	Sans Myanmar UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-myanmar-ui-vf
%common_desc
Noto font Sans Myanmar UI.

%files -n fonts-ttf-google-noto-sans-myanmar-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansMyanmarUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-myanmar-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-myanmar-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-myanmar-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-sinhala-vf
Summary:	Sans Sinhala variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-sinhala-vf
%common_desc
Noto font Sans Sinhala.

%files -n fonts-ttf-google-noto-sans-sinhala-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansSinhala-*VF.*tf
%{_fontconfig_templatedir}/%{hprio}-%{fontconf}-sans-sinhala-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{hprio}-%{fontconf}-sans-sinhala-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-sinhala-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-symbols-vf
Summary:	Sans Symbols variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-symbols-vf
%common_desc
Noto font Sans Symbols.

%files -n fonts-ttf-google-noto-sans-symbols-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansSymbols-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-symbols-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-symbols-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-symbols-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tamil-vf
Summary:	Sans Tamil variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tamil-vf
%common_desc
Noto font Sans Tamil.

%files -n fonts-ttf-google-noto-sans-tamil-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansTamil-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-tamil-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-tamil-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-tamil-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-tamil-ui-vf
Summary:	Sans Tamil UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-tamil-ui-vf
%common_desc
Noto font Sans Tamil UI.

%files -n fonts-ttf-google-noto-sans-tamil-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansTamilUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-tamil-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-tamil-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-tamil-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-thaana-vf
Summary:	Sans Thaana variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-thaana-vf
%common_desc
Noto font Sans Thaana.

%files -n fonts-ttf-google-noto-sans-thaana-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansThaana-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-thaana-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-thaana-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-thaana-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-thai-vf
Summary:	Sans Thai variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-thai-vf
%common_desc
Noto font Sans Thai.

%files -n fonts-ttf-google-noto-sans-thai-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansThai-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-sans-thai-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-sans-thai-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-thai-vf.metainfo.xml

%package -n fonts-ttf-google-noto-sans-thai-ui-vf
Summary:	Sans Thai UI variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-sans-thai-ui-vf
%common_desc
Noto font Sans Thai UI.

%files -n fonts-ttf-google-noto-sans-thai-ui-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSansThaiUI-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-sans-thai-ui-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-sans-thai-ui-vf.conf
%{_datadir}/appdata/%{_fontname}-sans-thai-ui-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-vf
Summary:	Serif variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-vf
%common_desc
Noto font Serif.

%files -n fonts-ttf-google-noto-serif-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerif-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-armenian-vf
Summary:	Serif Armenian variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-armenian-vf
%common_desc
Noto font Serif Armenian.

%files -n fonts-ttf-google-noto-serif-armenian-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifArmenian-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-armenian-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-armenian-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-armenian-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-display-vf
Summary:	Serif Display variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-display-vf
%common_desc
Noto font Serif Display.

%files -n fonts-ttf-google-noto-serif-display-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifDisplay-*VF.*tf
%{_fontconfig_templatedir}/%{lprio}-%{fontconf}-serif-display-vf.conf
%config(noreplace) %{_fontconfig_confdir}/%{lprio}-%{fontconf}-serif-display-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-display-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-ethiopic-vf
Summary:	Serif Ethiopic variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-ethiopic-vf
%common_desc
Noto font Serif Ethiopic.

%files -n fonts-ttf-google-noto-serif-ethiopic-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifEthiopic-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-ethiopic-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-ethiopic-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-ethiopic-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-georgian-vf
Summary:	Serif Georgian variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-georgian-vf
%common_desc
Noto font Serif Georgian.

%files -n fonts-ttf-google-noto-serif-georgian-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifGeorgian-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-georgian-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-georgian-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-georgian-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-gujarati-vf
Summary:	Serif Gujarati variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-gujarati-vf
%common_desc
Noto font Serif Gujarati.

%files -n fonts-ttf-google-noto-serif-gujarati-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifGujarati-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-gujarati-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-gujarati-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-gujarati-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-gurmukhi-vf
Summary:	Serif Gurmukhi variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-gurmukhi-vf
%common_desc
Noto font Serif Gurmukhi.

%files -n fonts-ttf-google-noto-serif-gurmukhi-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifGurmukhi-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-gurmukhi-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-gurmukhi-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-gurmukhi-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-hebrew-vf
Summary:	Serif Hebrew variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-hebrew-vf
%common_desc
Noto font Serif Hebrew.

%files -n fonts-ttf-google-noto-serif-hebrew-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifHebrew-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-hebrew-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-hebrew-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-hebrew-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-kannada-vf
Summary:	Serif Kannada variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-kannada-vf
%common_desc
Noto font Serif Kannada.

%files -n fonts-ttf-google-noto-serif-kannada-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifKannada-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-kannada-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-kannada-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-kannada-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-khmer-vf
Summary:	Serif Khmer variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-khmer-vf
%common_desc
Noto font Serif Khmer.

%files -n fonts-ttf-google-noto-serif-khmer-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifKhmer-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-khmer-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-khmer-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-khmer-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-lao-vf
Summary:	Serif Lao variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-lao-vf
%common_desc
Noto font Serif Lao.

%files -n fonts-ttf-google-noto-serif-lao-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifLao-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-lao-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-lao-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-lao-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-myanmar-vf
Summary:	Serif Myanmar variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-myanmar-vf
%common_desc
Noto font Serif Myanmar.

%files -n fonts-ttf-google-noto-serif-myanmar-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifMyanmar-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-myanmar-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-myanmar-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-myanmar-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-sinhala-vf
Summary:	Serif Sinhala variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-sinhala-vf
%common_desc
Noto font Serif Sinhala.

%files -n fonts-ttf-google-noto-serif-sinhala-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifSinhala-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-sinhala-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-sinhala-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-sinhala-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-tamil-vf
Summary:	Serif Tamil variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-tamil-vf
%common_desc
Noto font Serif Tamil.

%files -n fonts-ttf-google-noto-serif-tamil-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifTamil-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-tamil-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-tamil-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-tamil-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-tamil-slanted-vf
Summary:	Serif Tamil Slanted variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-tamil-slanted-vf
%common_desc
Noto font Serif Tamil Slanted.

%files -n fonts-ttf-google-noto-serif-tamil-slanted-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifTamilSlanted-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-tamil-slanted-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-tamil-slanted-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-tamil-slanted-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-thai-vf
Summary:	Serif Thai variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-thai-vf
%common_desc
Noto font Serif Thai.

%files -n fonts-ttf-google-noto-serif-thai-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifThai-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-thai-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-thai-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-thai-vf.metainfo.xml

%package -n fonts-ttf-google-noto-serif-tibetan-vf
Summary:	Serif Tibetan variable font
Group:		System/Fonts/True type
Requires:	fonts-ttf-%{_fontname}-common = %{EVRD}

%description -n fonts-ttf-google-noto-serif-tibetan-vf
%common_desc
Noto font Serif Tibetan.

%files -n fonts-ttf-google-noto-serif-tibetan-vf
%dir %_ttffontsdir/%_fontnamevf
%_ttffontsdir/%_fontnamevf/NotoSerifTibetan-*VF.*tf
%{_fontconfig_templatedir}/66-%{fontconf}-serif-tibetan-vf.conf
%config(noreplace) %{_fontconfig_confdir}/66-%{fontconf}-serif-tibetan-vf.conf
%{_datadir}/appdata/%{_fontname}-serif-tibetan-vf.metainfo.xml

%prep
%setup -q -n noto-fonts-%{commit}


%build

%install
%global fontname %{_fontname}
%global _fontdir  %_ttffontsdir/%{_fontname}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p unhinted/Noto*.ttf %{buildroot}%{_fontdir}
install -m 0644 -p hinted/Noto*.ttf %{buildroot}%{_fontdir}
%global fontname %{_fontnamevf}
%global _fontdir  %_ttffontsdir/%{_fontnamevf}
install -m 0755 -d %{buildroot}%{_fontdir}
install -m 0644 -p phaseIII_only/unhinted/variable-ttf/Noto*.ttf %{buildroot}%{_fontdir}



install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                   %{buildroot}%{_fontconfig_confdir}

# Add appstream metadata
install -Dm 0644 -p %{SOURCE200} \
        %{buildroot}%{_datadir}/appdata/%{_fontname}.metainfo.xml

%define fcconfbuild(a:g:p:v)\
%define _pname %(echo %{*} | tr "A-Z " "a-z-")\
%define pname %{_pname}%{-v:-vf}\
%define fconf %{-p*}%{!-p:%{mprio}}-%{fontconf}-%{pname}.conf\
cat<<_EOL_>%{buildroot}%{_fontconfig_templatedir}/%{fconf}\
<?xml version=\"1.0\" encoding=\"UTF-8\"?>\
<!DOCTYPE fontconfig SYSTEM \"fonts.dtd\">\
<fontconfig>\
  <alias>\
    <family>%{-g*}</family>\
    <prefer>\
      <family>Noto %{*}</family>\
    </prefer>\
  </alias>\
  <alias>\
    <family>Noto %{*}</family>\
    <default>\
      <family>%{-g*}</family>\
    </default>\
  </alias>\
</fontconfig>\
_EOL_

%fcconfbuild -g fantasy Music
%fcconfbuild -g sans-serif Sans Adlam
%fcconfbuild -g sans-serif Sans Adlam Unjoined
%fcconfbuild -g sans-serif Sans Anatolian Hieroglyphs
%fcconfbuild -g sans-serif Sans Arabic
%fcconfbuild -p %{lprio} -g sans-serif Sans Arabic UI
%fcconfbuild -g sans-serif Sans Avestan
%fcconfbuild -g sans-serif Sans Bassa Vah
%fcconfbuild -g sans-serif Sans Bhaiksuki
%fcconfbuild -g sans-serif Sans Brahmi
%fcconfbuild -g sans-serif Sans Carian
%fcconfbuild -g sans-serif Sans Caucasian Albanian
%fcconfbuild -g sans-serif Sans Chakma
%fcconfbuild -g sans-serif Sans Deseret
%fcconfbuild -p %{lprio} -g sans-serif Sans Display
%fcconfbuild -g sans-serif Sans Duployan
%fcconfbuild -g sans-serif Sans Egyptian Hieroglyphs
%fcconfbuild -g sans-serif Sans Elbasan
%fcconfbuild -g sans-serif Sans Glagolitic
%fcconfbuild -g sans-serif Sans Grantha
%fcconfbuild -g sans-serif Sans Hatran
%fcconfbuild -g sans-serif Sans Imperial Aramaic
%fcconfbuild -g sans-serif Sans Inscriptional Pahlavi
%fcconfbuild -g sans-serif Sans Inscriptional Parthian
%fcconfbuild -g sans-serif Sans Kaithi
%fcconfbuild -g sans-serif Sans Kayah Li
%fcconfbuild -g sans-serif Sans Kharoshthi
%fcconfbuild -g sans-serif Sans Khojki
%fcconfbuild -g sans-serif Sans Khudawadi
%fcconfbuild -g sans-serif Sans Linear A
%fcconfbuild -g sans-serif Sans Linear B
%fcconfbuild -g sans-serif Sans Lycian
%fcconfbuild -g sans-serif Sans Lydian
%fcconfbuild -g sans-serif Sans Mahajani
%fcconfbuild -g sans-serif Sans Mandaic
%fcconfbuild -g sans-serif Sans Manichaean
%fcconfbuild -g sans-serif Sans Marchen
%fcconfbuild -g sans-serif -p %{lprio} Sans Math
%fcconfbuild -g sans-serif Sans Mende Kikakui
%fcconfbuild -g sans-serif Sans Meroitic
%fcconfbuild -g sans-serif Sans Miao
%fcconfbuild -g sans-serif Sans Modi
%fcconfbuild -g monospace Sans Mono
%fcconfbuild -g sans-serif Sans Mro
%fcconfbuild -g sans-serif Sans Multani
%fcconfbuild -g sans-serif Sans Nabataean
%fcconfbuild -g sans-serif Sans Newa
%fcconfbuild -g sans-serif Sans Old Hungarian
%fcconfbuild -g sans-serif Sans Old Italic
%fcconfbuild -g sans-serif Sans Old North Arabian
%fcconfbuild -g sans-serif Sans Old Permic
%fcconfbuild -g sans-serif Sans Old Persian
%fcconfbuild -g sans-serif Sans Old South Arabian
%fcconfbuild -g sans-serif Sans Old Turkic
%fcconfbuild -g sans-serif Sans Osage
%fcconfbuild -g sans-serif Sans Osmanya
%fcconfbuild -g sans-serif Sans Pahawh Hmong
%fcconfbuild -g sans-serif Sans Palmyrene
%fcconfbuild -g sans-serif Sans Pau Cin Hau
%fcconfbuild -g sans-serif Sans Phags Pa
%fcconfbuild -g sans-serif Sans Phoenician
%fcconfbuild -g sans-serif Sans Psalter Pahlavi
%fcconfbuild -g sans-serif Sans Samaritan
%fcconfbuild -g sans-serif Sans Sharada
%fcconfbuild -p %{lprio} -g sans-serif Sans Sinhala UI
%fcconfbuild -g sans-serif Sans Sora Sompeng
%fcconfbuild -g sans-serif Sans Syloti Nagri
%fcconfbuild -g fantasy Sans Symbols
%fcconfbuild -g fantasy Sans Symbols2
%fcconfbuild -g sans-serif Sans Syriac
%fcconfbuild -g sans-serif Sans Tai Le
%fcconfbuild -g sans-serif Sans Tai Tham
%fcconfbuild -g sans-serif Sans Tai Viet
%fcconfbuild -g sans-serif Sans Takri
%fcconfbuild -g sans-serif Sans Tirhuta
%fcconfbuild -g sans-serif Sans Ugaritic
%fcconfbuild -g sans-serif Sans Warang Citi
%fcconfbuild -g sans-serif Sans Yi
%fcconfbuild -g sans-serif Sans
%fcconfbuild -g serif Serif Ahom
%fcconfbuild -p %{lprio} -g serif Serif Display
%fcconfbuild -g serif Serif Ethiopic
%fcconfbuild -g serif Serif Gurmukhi
%fcconfbuild -g serif Serif Hebrew
%fcconfbuild -g serif Serif Myanmar
%fcconfbuild -g serif Serif Sinhala
%fcconfbuild -g serif Serif Tamil Slanted
%fcconfbuild -g serif Serif Tibetan
%fcconfbuild -g serif Serif

%fcconfbuild -v -g sans-serif Sans
%fcconfbuild -v -g sans-serif Sans Arabic
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Arabic UI
%fcconfbuild -v -g sans-serif Sans Armenian
%fcconfbuild -v -g sans-serif Sans Bengali
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Bengali UI
%fcconfbuild -v -g sans-serif Sans Canadian Aboriginal
%fcconfbuild -v -g sans-serif Sans Cham
%fcconfbuild -v -g sans-serif Sans Cherokee
%fcconfbuild -v -g sans-serif Sans Devanagari
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Devanagari UI
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Display
%fcconfbuild -v -g sans-serif Sans Ethiopic
%fcconfbuild -v -g sans-serif Sans Georgian
%fcconfbuild -v -g sans-serif Sans Hebrew
%fcconfbuild -v -g sans-serif Sans Kannada
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Kannada UI
%fcconfbuild -v -g sans-serif Sans Khmer
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Khmer UI
%fcconfbuild -v -g sans-serif Sans Lao
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Lao UI
%fcconfbuild -v -g sans-serif Sans Malayalam
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Malayalam UI
%fcconfbuild -v -g monospace Sans Mono
%fcconfbuild -v -g sans-serif Sans Myanmar
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Myanmar UI
%fcconfbuild -v -g sans-serif -p %{hprio} Sans Sinhala
%fcconfbuild -v -g fantasy Sans Symbols
%fcconfbuild -v -g sans-serif Sans Tamil
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Tamil UI
%fcconfbuild -v -g sans-serif Sans Thaana
%fcconfbuild -v -g sans-serif Sans Thai
%fcconfbuild -v -g sans-serif -p %{lprio} Sans Thai UI
%fcconfbuild -v -g serif Serif
%fcconfbuild -v -g serif Serif Armenian
%fcconfbuild -v -g serif -p %{lprio} Serif Display
%fcconfbuild -v -g serif Serif Ethiopic
%fcconfbuild -v -g serif Serif Georgian
%fcconfbuild -v -g serif Serif Gujarati
%fcconfbuild -v -g serif Serif Gurmukhi
%fcconfbuild -v -g serif Serif Hebrew
%fcconfbuild -v -g serif Serif Kannada
%fcconfbuild -v -g serif Serif Khmer
%fcconfbuild -v -g serif Serif Lao
%fcconfbuild -v -g serif Serif Myanmar
%fcconfbuild -v -g serif Serif Sinhala
%fcconfbuild -v -g serif Serif Tamil
%fcconfbuild -v -g serif Serif Tamil Slanted
%fcconfbuild -v -g serif Serif Thai
%fcconfbuild -v -g serif Serif Tibetan

for f in \
        kufi-arabic music naskh-arabic naskh-arabic-ui \
        sans sans-adlam sans-adlam-unjoined sans-anatolian-hieroglyphs \
	sans-arabic sans-arabic-ui \
	sans-armenian sans-avestan sans-bamum sans-bassa-vah \
        sans-batak sans-bhaiksuki sans-bengali sans-bengali-ui sans-brahmi \
        sans-buginese sans-buhid sans-canadian-aboriginal sans-caucasian-albanian \
	sans-carian \
        sans-chakma sans-cham sans-cherokee sans-coptic sans-cuneiform \
        sans-cypriot sans-deseret sans-devanagari sans-devanagari-ui \
	sans-duployan \
        sans-egyptian-hieroglyphs sans-elbasan sans-ethiopic sans-georgian \
        sans-glagolitic sans-gothic sans-grantha sans-gujarati sans-gujarati-ui \
        sans-gurmukhi sans-gurmukhi-ui sans-hanunoo sans-hatran sans-hebrew \
        sans-imperial-aramaic sans-inscriptional-pahlavi \
        sans-inscriptional-parthian sans-javanese \
        sans-kaithi sans-kannada sans-kannada-ui sans-kayah-li \
        sans-kharoshthi sans-khmer sans-khmer-ui sans-khojki sans-khudawadi sans-lao \
        sans-lao-ui sans-lepcha sans-limbu sans-linear-a sans-linear-b sans-lisu \
        sans-lycian sans-lydian sans-mahajani sans-malayalam sans-malayalam-ui \
        sans-mandaic sans-manichaean sans-marchen sans-meetei-mayek sans-math \
	sans-mende-kikakui \
	sans-meroitic sans-miao sans-modi sans-mongolian sans-mro sans-multani \
	sans-myanmar \
        sans-myanmar-ui sans-nabataean sans-new-tai-lue sans-newa sans-nko sans-ogham \
        sans-ol-chiki sans-old-hungarian sans-old-italic sans-old-north-arabian \
	sans-old-permic sans-old-persian \
        sans-old-south-arabian sans-old-turkic sans-osage sans-osmanya \
        sans-pahawh-hmong sans-palmyrene sans-pau-cin-hau \
	sans-phags-pa sans-phoenician sans-psalter-pahlavi sans-rejang sans-runic \
        sans-samaritan sans-saurashtra sans-sharada sans-shavian sans-sinhala sans-sinhala-ui \
	sans-sora-sompeng \
        sans-sundanese sans-syloti-nagri sans-symbols sans-symbols2 sans-syriac sans-syriac-eastern \
        sans-syriac-estrangela sans-syriac-western sans-tagalog \
        sans-tagbanwa sans-takri sans-tai-le sans-tai-tham sans-tai-viet \
        sans-tamil sans-tamil-ui sans-telugu sans-telugu-ui \
        sans-thaana sans-thai sans-thai-ui sans-tifinagh sans-tirhuta \
        sans-ugaritic sans-display sans-vai sans-warang-citi sans-yi \
        serif serif-ahom serif-armenian serif-display serif-ethiopic serif-georgian \
	serif-gurmukhi \
	serif-hebrew serif-khmer serif-lao serif-myanmar serif-sinhala serif-thai \
        sans-oriya sans-oriya-ui sans-tibetan nastaliq-urdu sans-mono \
        serif-balinese serif-bengali serif-devanagari serif-gujarati serif-kannada \
        serif-malayalam serif-tamil serif-tamil-slanted serif-telugu serif-tibetan \
	sans-vf sans-arabic-vf sans-arabic-ui-vf sans-armenian-vf sans-bengali-vf \
	sans-bengali-ui-vf sans-canadian-aboriginal-vf sans-cham-vf sans-cherokee-vf \
	sans-devanagari-vf sans-devanagari-ui-vf sans-display-vf sans-ethiopic-vf \
	sans-georgian-vf sans-hebrew-vf sans-kannada-vf sans-kannada-ui-vf \
	sans-khmer-vf sans-khmer-ui-vf sans-lao-vf sans-lao-ui-vf sans-malayalam-vf \
	sans-malayalam-ui-vf sans-mono-vf sans-myanmar-vf sans-myanmar-ui-vf \
	sans-sinhala-vf sans-symbols-vf sans-tamil-vf sans-tamil-ui-vf \
	sans-thaana-vf sans-thai-vf sans-thai-ui-vf \
	serif-vf serif-armenian-vf serif-display-vf serif-ethiopic-vf serif-georgian-vf \
	serif-gujarati-vf serif-gurmukhi-vf serif-hebrew-vf serif-kannada-vf \
	serif-khmer-vf serif-lao-vf serif-myanmar-vf serif-sinhala-vf \
	serif-tamil-vf serif-tamil-slanted-vf serif-thai-vf serif-tibetan-vf \
        ; do
  fconf=$(basename -a %{_sourcedir}/*-%{fontconf}-$f.conf)
  ifconf=$(basename -a %{buildroot}%{_fontconfig_templatedir}/*-%{fontconf}-$f.conf)
  if [ "$(echo $fconf | wc -w)" -ne 1 -o "$(echo $ifconf | wc -w)" -ne 1 ]; then
     echo "Did not find unique \*-%{fontconf}-$f.conf file"
     exit 1
  fi
  if [ -f %{_sourcedir}/${fconf} ]; then
    install -m 0644 -p %{_sourcedir}/${fconf} \
          %{buildroot}%{_fontconfig_templatedir}/${fconf}
  else
    fconf=$ifconf
  fi
  ln -s %{_fontconfig_templatedir}/${fconf} \
        %{buildroot}%{_fontconfig_confdir}/${fconf}

  meta=%{_fontname}-$f.metainfo.xml
  echo '<?xml version="1.0" encoding="UTF-8"?>' > $meta
  echo '<!-- Copyright 2014 Parag Nemade <pnemade AT redhat DOT com> -->' >> $meta
  echo '<component type="font">' >> $meta
  echo "  <id>google-noto-$f</id>" >> $meta
  echo '  <metadata_license>CC-BY-3.0</metadata_license>' >> $meta
  echo '  <extends>google-noto</extends>' >> $meta
  echo '</component>' >> $meta

  install -Dm 0644 -p %{_fontname}-$f.metainfo.xml \
          %{buildroot}%{_datadir}/appdata/%{_fontname}-$f.metainfo.xml
done


%files -n fonts-ttf-google-noto-common
%license LICENSE
%doc README.md FAQ.md
%{_datadir}/appdata/%{_fontname}.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12739 |21mr|fonts-ttf-google-noto-emoji-20191019-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname google-noto-emoji-fonts
%define fedora 30
%global commit0 16151a2312a1f8a7d79e91789d3cfe24559d61f7
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

%global fontname google-noto-emoji

%if (0%{?fedora} > 25)
%global buildfont 0
%else
%global buildfont 0
%endif


Name:           fonts-ttf-google-noto-emoji
Version:        20191019
Release:        2
Summary:        Google a.'Noto Emojia.' Black-and-White emoji font
Group:		System/Fonts/True type

# In noto-emoji-fonts source
## noto-emoji code is in ASL 2.0 license
## Emoji fonts are under OFL license
### third_party color-emoji code is in BSD license
### third_party region-flags code is in Public Domain license
# In nototools source
## nototools code is in ASL 2.0 license
### third_party ucd code is in Unicode license
License:        OFL and ASL 2.0
URL:            https://github.com/googlei18n/noto-emoji
Source0:        https://github.com/googlei18n/noto-emoji/archive/%{commit0}.tar.gz#/noto-emoji-%{shortcommit0}.tar.gz
Source2:        %{fontname}.metainfo.xml
Source3:        %{fontname}-color.metainfo.xml

Patch0:         noto-emoji-use-system-pngquant.patch
Patch1:         noto-emoji-build-all-flags.patch
Patch2:         noto-emoji-use-gm.patch
Patch3:         noto-emoji-python3.patch
Patch4:         noto-emoji-port-to-python3.patch

BuildArch:      noarch
BuildRequires:  gcc
BuildRequires:  fontpackages-devel
%if %buildfont
BuildRequires:  fonttools
BuildRequires:  python3-module-fonttools
BuildRequires:  nototools
BuildRequires:  python3-module-nototools
BuildRequires:  python3-devel
BuildRequires:  GraphicsMagick
BuildRequires:  pngquant
BuildRequires:  libzopfli zopfli
BuildRequires:  libcairo-devel
%endif


Provides:       google-noto-color-emoji-fonts = %{EVRD}

%description
This package provides the Google a.'Noto Emojia.' Black-and-White emoji font.

%package -n fonts-ttf-google-noto-emoji-color
Group: System/Fonts/True type
Summary:        Google a.'Noto Color Emojia.' colored emoji font
Provides:       google-noto-color-emoji-fonts = %{EVRD}

%description -n fonts-ttf-google-noto-emoji-color
This package provides the Google a.'Noto Color Emojia.' colored emoji font.

%prep
%setup -n noto-emoji-%{commit0}
%autopatch -p1

rm -rf third_party/pngquant

%build
%if %buildfont
# Work around UTF-8
export LANG=C.UTF-8

%make_build OPT_CFLAGS="$RPM_OPT_FLAGS"
%endif

%install
install -m 0755 -d %{buildroot}%{_fontdir}

%if %buildfont
# Built by us from the supplied pngs:
install -m 0644 -p NotoColorEmoji.ttf %{buildroot}%{_fontdir}
%else
# Pre-built, and included with the source:
install -m 0644 -p fonts/NotoColorEmoji.ttf %{buildroot}%{_fontdir}
%endif

# Pre-built, and included with the source:
install -m 0644 -p fonts/NotoEmoji-Regular.ttf %{buildroot}%{_fontdir}

mkdir -p %{buildroot}%{_datadir}/appdata
install -m 0644 -p %{SOURCE2} %{buildroot}%{_datadir}/appdata
install -m 0644 -p %{SOURCE3} %{buildroot}%{_datadir}/appdata
# generic fedora font import transformations
# move fonts to corresponding subdirs if any
for fontpatt in OTF TTF TTC otf ttf ttc pcf pcf.gz bdf afm pfa pfb; do
    case "$fontpatt" in 
	pcf*|bdf*) type=bitmap;;
	tt*|TT*) type=ttf;;
	otf|OTF) type=otf;;
	afm*|pf*) type=type1;;
    esac
    find $RPM_BUILD_ROOT/usr/share/fonts -type f -name '*.'$fontpatt | while read i; do
	j=`echo "$i" | sed -e s,/usr/share/fonts/,/usr/share/fonts/$type/,`;
	install -Dm644 "$i" "$j";
	rm -f "$i";
	olddir=`dirname "$i"`;
	mv -f "$olddir"/{encodings.dir,fonts.{dir,scale,alias}} `dirname "$j"`/ 2>/dev/null ||:
	rmdir -p "$olddir" 2>/dev/null ||:
    done
done
# kill invalid catalogue links
if [ -d $RPM_BUILD_ROOT/etc/X11/fontpath.d ]; then
    find -L $RPM_BUILD_ROOT/etc/X11/fontpath.d -type l -print -delete ||:
    # relink catalogue
    find $RPM_BUILD_ROOT/usr/share/fonts -name fonts.dir | while read i; do
	pri=10;
	j=`echo $i | sed -e s,$RPM_BUILD_ROOT/usr/share/fonts/,,`; type=${j%%%%/*}; 
	pre_stem=${j##$type/}; stem=`dirname $pre_stem|sed -e s,/,-,g`;
	case "$type" in 
	    bitmap) pri=10;;
	    ttf|ttf) pri=50;;
	    type1) pri=40;;
	esac
	ln -s /usr/share/fonts/$j $RPM_BUILD_ROOT/etc/X11/fontpath.d/"$stem:pri=$pri"
    done ||:
fi

%files
%dir %{_fontbasedir}/*/%{_fontstem}/
%{_fontbasedir}/*/%{_fontstem}/NotoEmoji-Regular.ttf
%license LICENSE
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
%{_datadir}/appdata/google-noto-emoji.metainfo.xml

%files -n fonts-ttf-google-noto-emoji-color
%dir %{_fontbasedir}/*/%{_fontstem}/
%{_fontbasedir}/*/%{_fontstem}/NotoColorEmoji.ttf
%license LICENSE
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
%{_datadir}/appdata/google-noto-emoji-color.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12740 |21mr|fonts-ttf-japanese-0.20180604-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion 20180604
%define oname umeplus-fonts

Summary:	Japanese TrueType fonts
Name:		fonts-ttf-japanese
Version:	0.%{oversion}
Release:	14
License:	Distributable
Group:		System/Fonts/True type
Url:		http://www.geocities.jp/ep3797/modified_fonts_01.html
## Original fonts is here
Source0:	http://downloads.sourceforge.net/mdk-ut/umeplus-fonts-%{oversion}.tar.xz
Source3:	cidinst.japanese
Source4:	cidunin.japanese
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
BuildArch:	noarch

%description
This Package provides Free Japanese TrueType fonts (umeplus-gothic, 
umeplus-p-gothic)

%files
%defattr(-,root,root,0755)
%doc ChangeLog
%doc docs-*/
%dir %{_datadir}/fonts/TTF/japanese/
%{_datadir}/fonts/TTF/japanese/*.ttf
%{_sysconfdir}/X11/fontpath.d/ttf-japanese:pri=50

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{oversion}

%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/japanese
install -m 644 *.ttf %{buildroot}%{_datadir}/fonts/TTF/japanese

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/japanese \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-japanese:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12741 |21mr|fonts-ttf-latex-0.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	LaTeX TrueType fonts for LyX
Name:		fonts-ttf-latex
Version:	0.1
Release:	17

# see README: these fonts were converted from the LaTeX .pfb forms,
#             and are under the respective licenses of the sources.
License:	Distributable

URL:		http://wiki.lyx.org/pmwiki.php/FAQ/Qt
Group:		System/Fonts/True type

Source0:	http://movementarian.org/latex-xft-fonts-%version.tar.gz

BuildArch:	noarch
BuildRequires: fontconfig
Provides:	latex-xft-fonts

%description
This Package provides LaTeX TrueType fonts so that LyX can display LaTex
characters.

%prep
%setup -q -n latex-xft-fonts-%version

%build
perl -p -i -e "s|INSTALLDIR=.*|INSTALLDIR=%_datadir/fonts/TTF/latex|" Makefile

%install
rm -fr %buildroot
DESTDIR=%buildroot make install

(
cd %buildroot/%_datadir/fonts/TTF/latex/
# those are not unicode but in latex encoding
/usr/sbin/ttmkfdir -u | sed 's/iso10646-1/misc-fontspecific/' > fonts.scale
cp fonts.scale fonts.dir
)

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/latex \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-latex:pri=50

%clean
rm -fr %buildroot

%files
%defattr(0644,root,root,0755)
%doc README
%dir %_datadir/fonts/TTF/latex/
%_datadir/fonts/TTF/latex/*.ttf
%config(noreplace) %_datadir/fonts/TTF/latex/fonts.dir
%config(noreplace) %_datadir/fonts/TTF/latex/fonts.scale
%_sysconfdir/X11/fontpath.d/ttf-latex:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12742 |21mr|fonts-ttf-liberation-2.1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global priority  59
%global fontname liberation
%global fontconf %{priority}-%{fontname}
%global common_desc The Liberation Fonts are intended to be replacements for the 3 most commonly\
used fonts on Microsoft systems: Times New Roman, Arial, and Courier New.

%define catalogue %{_sysconfdir}/X11/fontpath.d

Name:             fonts-ttf-liberation
Summary:          Fonts to replace commonly used Microsoft Windows fonts
Version:          2.1.3
Release:          3
License:          OFL
Group:            System/Fonts/True type
URL:              https://github.com/liberationfonts/liberation-fonts
Source0:          https://github.com/liberationfonts/liberation-fonts/files/6060974/liberation-fonts-%{version}.tar.gz
# From Fedora
# Actually these configs are not needed because fontconfig's conf.d/30-metric-aliases.conf contains allt his,
# but let's better ship them...
Source2:          liberation-fonts-mono.conf
Source3:          liberation-fonts-sans.conf
Source4:          liberation-fonts-serif.conf
BuildArch:        noarch

BuildRequires:    fontpackages-devel
BuildRequires:    mkfontdir
BuildRequires:    mkfontscale
BuildRequires:    fontforge
BuildRequires:    python3
BuildRequires:    python3-fonttools
BuildRequires:    make

Requires:         %{name}-mono = %{EVRD}
Requires:         %{name}-sans = %{EVRD}
Requires:         %{name}-serif = %{EVRD}

# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	liberation-narrow-fonts = %{EVRD}

# Google Chrome >= 70 depends from liberation-fonts
Provides:         liberation-fonts = %{EVRD}

%description
%common_desc

Meta-package of Liberation fonts which installs Sans, Serif, and Monospace
families.

%files

#-----------------------------------------------------------------------------


%package mono
Summary:      Monospace fonts to replace commonly used Microsoft Courier New
# splitted into multiple packages
Conflicts:        %{name} < 2.1.3
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	liberation-mono-fonts = %{EVRD}

%description mono
%common_desc

This package provides Monospace TrueType fonts that replace commonly used
Microsoft Courier New.

%files mono
%{_fontdir}-mono
%ghost %attr(644, root, root) %{_fontdir}-mono/.uuid 
%{_fontconfig_templatedir}/*-liberation-mono.conf 
%config(noreplace) %{_fontconfig_confdir}/*-liberation-mono.conf 
%{catalogue}/%{name}-mono

#-----------------------------------------------------------------------------


%package sans
Summary:      Sans-serif fonts to replace commonly used Microsoft Arial
# splitted into multiple packages
Conflicts:        %{name} < 2.1.3
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	liberation-sans-fonts = %{EVRD}

%description sans
%common_desc

This package provides Sans-serif TrueType fonts that replace commonly used
Microsoft Arial.

%files sans
%{_fontdir}-sans
%ghost %attr(644, root, root) %{_fontdir}-sans/.uuid 
%{_fontconfig_templatedir}/*-liberation-sans.conf 
%config(noreplace) %{_fontconfig_confdir}/*-liberation-sans.conf 
%{catalogue}/%{name}-sans

#-----------------------------------------------------------------------------

%package serif
Summary:      Serif fonts to replace commonly used Microsoft Times New Roman
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	liberation-serif-fonts = %{EVRD}

%description serif
%common_desc

This package provides Serif TrueType fonts that replace commonly used
Microsoft Times New Roman.

%files serif
%{_fontdir}-serif
%ghost %attr(644, root, root) %{_fontdir}-serif/.uuid 
%{_fontconfig_templatedir}/*-liberation-serif.conf 
%config(noreplace) %{_fontconfig_confdir}/*-liberation-serif.conf 
%{catalogue}/%{name}-serif

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n liberation-fonts-%{version}

# Fedora fix for https://bugzilla.redhat.com/show_bug.cgi?id=1526510
sed -i 's/OS2_UseTypoMetrics: 1/OS2_UseTypoMetrics: 0/g' src/*.sfd

sed -i 's|/usr/bin/env python|%{_bindir}/python2|' scripts/setisFixedPitch-fonttools.py

%build
make %{?_smp_mflags} 
mv liberation-fonts-ttf-%{version}/* .


%install
# fonts .ttf
install -m 0755 -d %{buildroot}%{_fontdir}-mono
install -m 0755 -d %{buildroot}%{_fontdir}-sans
install -m 0755 -d %{buildroot}%{_fontdir}-serif

install -m 0644 -p LiberationMono*.ttf %{buildroot}%{_fontdir}-mono
install -m 0644 -p LiberationSans*.ttf %{buildroot}%{_fontdir}-sans
install -m 0644 -p LiberationSerif*.ttf %{buildroot}%{_fontdir}-serif


# catalogue
install -m 0755 -d %{buildroot}%{catalogue}
ln -s %{_fontdir}-mono %{buildroot}%{catalogue}/%{name}-mono
ln -s %{_fontdir}-sans %{buildroot}%{catalogue}/%{name}-sans
ln -s %{_fontdir}-serif %{buildroot}%{catalogue}/%{name}-serif

install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
                   %{buildroot}%{_fontconfig_confdir}

# Repeat for every font family
install -m 0644 -p %{SOURCE2} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-mono.conf
install -m 0644 -p %{SOURCE3} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-sans.conf
install -m 0644 -p %{SOURCE4} \
        %{buildroot}%{_fontconfig_templatedir}/%{fontconf}-serif.conf

for fconf in %{fontconf}-mono.conf \
             %{fontconf}-sans.conf \
             %{fontconf}-serif.conf; do
  ln -s %{_fontconfig_templatedir}/$fconf \
        %{buildroot}%{_fontconfig_confdir}/$fconf
done

# fonts.{dir,scale}
mkfontscale %{buildroot}%{_fontdir}-mono
mkfontscale %{buildroot}%{_fontdir}-sans
mkfontscale %{buildroot}%{_fontdir}-serif
mkfontdir %{buildroot}%{_fontdir}-mono
mkfontdir %{buildroot}%{_fontdir}-sans
mkfontdir %{buildroot}%{_fontdir}-serif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12743 |21mr|fonts-ttf-malayalam-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Malayalam TrueType fonts
Name:		fonts-ttf-malayalam
Version:	1.0
Release:	13
License:	GPLv2+
URL:		http://malayalamlinux.sourceforge.net/downloads/downloads.html
Group:		System/Fonts/True type
Source0:	http://malayalamlinux.sourceforge.net/downloads/fonts/MalOtf.ttf
Source1:	http://malayalamlinux.sourceforge.net/downloads/COPYING
BuildArch:	noarch
BuildRequires: fontconfig

%description
This Package provides Free Malayalam TrueType fonts.

%prep

%build

%install
rm -fr %buildroot
mkdir -p %buildroot/%{_datadir}/fonts/TTF/malayalam
install -m 644 %SOURCE0 %buildroot/%{_datadir}/fonts/TTF/malayalam

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/malayalam \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-malayalam:pri=50

%clean
rm -fr %buildroot

%files
%defattr(-,root,root,0755)
%dir %_datadir/fonts/TTF/malayalam/
%_datadir/fonts/TTF/malayalam/*.ttf
%_sysconfdir/X11/fontpath.d/ttf-malayalam:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12744 |21mr|fonts-ttf-opensans-1.10-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontname opensans

Name:           fonts-ttf-opensans
Version:        1.10
Release:        11
Summary:        Humanist Sans Serif Typeface
License:        Apache-2.0
Group:          System/Fonts/True type
Url:            http://code.google.com/webfonts/family?family=Open+Sans
Source0:        %{name}-%{version}.tar.xz
Source1:		getopensans.sh
BuildArch: 	noarch
BuildRequires: fontconfig
BuildRequires: freetype-tools
BuildRequires:  dos2unix
Provides:		open-sans-fonts = %{EVRD}
Obsoletes:		open-sans-fonts < 1.10-10
Conflicts:		open-sans-fonts < 1.10-10

%description
Open Sans is a humanist sans serif typeface designed by
Steve Matteson, Type Director of Ascender Corp.

This version contains the complete 897 character set, which
includes the standard ISO Latin 1, Latin CE, Greek and Cyrillic
character sets. Open Sans was designed with an upright stress,
open forms and a neutral, yet friendly appearance. It was
optimized for print, web, and mobile interfaces, and has
excellent legibility characteristics in its letterforms.

Designer: Steve Matteson

%prep
%setup -q

%build
chmod 644 LICENSE.txt
dos2unix LICENSE.txt

%install

mkdir -p %{buildroot}%{_datadir}/fonts/TTF/%{fontname}

install -m 644 *.ttf %{buildroot}%{_datadir}/fonts/TTF/%{fontname}
ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/%{fontname} > %{buildroot}%{_datadir}/fonts/TTF/%{fontname}/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/%{fontname}/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/TTF/%{fontname} \
    %{buildroot}%_sysconfdir/X11/fontpath.d/ttf-%{fontname}:pri=50

%files
%defattr(-,root,root,-)
%license LICENSE.txt
%dir %{_datadir}/fonts/TTF/%{fontname}
%{_datadir}/fonts/TTF/%{fontname}/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/%{fontname}/fonts.dir
%{_datadir}/fonts/TTF/%{fontname}/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-%{fontname}:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12745 |21mr|fonts-ttf-overpass-3.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fontname overpass
%global fontconf 60-%{fontname}.conf
%global monofontconf 60-%{fontname}-mono.conf

Name:		fonts-ttf-overpass
Version:	3.0.4
Release:	2
Summary:	Typeface based on the U.S. interstate highway road signage type system
Group:		System/Fonts/True type
License:	OFL or LGPLv2+
URL:		https://github.com/RedHatBrand/overpass/
Source0:	https://github.com/RedHatBrand/Overpass/archive/%{version}.tar.gz?/%{fontname}-%{version}.tar.gz
Source1:	%{fontname}-fonts-fontconfig.conf
Source2:	%{fontname}.metainfo.xml
Source3:	%{fontname}-mono-fonts-fontconfig.conf
Source4:	%{fontname}-mono.metainfo.xml

BuildRequires:	fontconfig
BuildRequires:	freetype-tools
Provides:	overpass-fonts
BuildArch:	noarch

%description
Free and open source typeface based on the U.S. interstate highway road signage
type system; it is sans-serif and suitable for both body and titling text.

%files
%doc README.md overpass-specimen.pdf
%license LICENSE.md
%{_datadir}/appdata/%{fontname}.metainfo.xml
%{_sysconfdir}/X11/fontpath.d/ttf-overpass*
%{_sysconfdir}/X11/fontpath.d/otf-overpass*
%{_datadir}/fonts/TTF/overpass/overpass-bold*
%{_datadir}/fonts/TTF/overpass/overpass-extrabold*
%{_datadir}/fonts/TTF/overpass/overpass-extralight*
%{_datadir}/fonts/TTF/overpass/overpass-light*
%{_datadir}/fonts/TTF/overpass/overpass-heavy*
%{_datadir}/fonts/TTF/overpass/overpass-italic*
%{_datadir}/fonts/TTF/overpass/overpass-regular*
%{_datadir}/fonts/TTF/overpass/overpass-semibold*
%{_datadir}/fonts/TTF/overpass/overpass-thin*
%{_datadir}/fonts/OTF/overpass/overpass-bold*
%{_datadir}/fonts/OTF/overpass/overpass-extrabold*
%{_datadir}/fonts/OTF/overpass/overpass-extralight*
%{_datadir}/fonts/OTF/overpass/overpass-light*
%{_datadir}/fonts/OTF/overpass/overpass-heavy*
%{_datadir}/fonts/OTF/overpass/overpass-italic*
%{_datadir}/fonts/OTF/overpass/overpass-regular*
%{_datadir}/fonts/OTF/overpass/overpass-semibold*
%{_datadir}/fonts/OTF/overpass/overpass-thin*
%verify(not mtime) %{_datadir}/fonts/TTF/overpass/fonts.dir
%verify(not mtime) %{_datadir}/fonts/OTF/overpass/fonts.dir
%{_datadir}/fonts/TTF/overpass/fonts.scale
%{_datadir}/fonts/OTF/overpass/fonts.scale

%if 0
%{_libdir}/node_modules/overpass/
%endif

#------------------------------------------------------------------------------
%package -n %{fontname}-mono-fonts
Summary:	Monospace version of overpass fonts
Group:		System/Fonts/True type

%description -n %{fontname}-mono-fonts
Free and open source typeface based on the U.S. interstate highway road signage
type system. This is the monospace family variant.

%files -n %{fontname}-mono-fonts
#%%{monofontconf} overpass-mono-*.otf
%doc README.md overpass-mono-specimen.pdf
%license LICENSE.md
%{_datadir}/appdata/%{fontname}-mono.metainfo.xml
%{_datadir}/fonts/TTF/overpass/overpass-mono*
%{_datadir}/fonts/OTF/overpass/overpass-mono*

#------------------------------------------------------------------------------

%prep
%setup -q -n Overpass-%{version}

%build
# Nothing to do here.

%install
#ttf install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/overpass

install -m 644 -p webfonts/overpass*/*.ttf %{buildroot}%{_datadir}/fonts/TTF/overpass
ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/overpass > %{buildroot}%{_datadir}/fonts/TTF/overpass/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/overpass/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/overpass \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-overpass:pri=50

#otf install
mkdir -p %{buildroot}%{_datadir}/fonts/OTF/overpass

install -m 644 -p desktop-fonts/overpass*/*.otf %{buildroot}%{_datadir}/fonts/OTF/overpass
ttmkfdir %{buildroot}%{_datadir}/fonts/OTF/overpass > %{buildroot}%{_datadir}/fonts/OTF/overpass/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/OTF/overpass/fonts.scale

ln -s ../../..%{_datadir}/fonts/OTF/overpass \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/otf-overpass:pri=50


install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
		%{buildroot}%{_fontconfig_confdir}

install -m 0644 -p %{SOURCE1} \
		%{buildroot}%{_fontconfig_templatedir}/%{fontconf}

install -m 0644 -p %{SOURCE3} \
		%{buildroot}%{_fontconfig_templatedir}/%{monofontconf}

ln -s %{_fontconfig_templatedir}/%{fontconf} \
		%{buildroot}%{_fontconfig_confdir}/%{fontconf}

ln -s %{_fontconfig_templatedir}/%{monofontconf} \
                %{buildroot}%{_fontconfig_confdir}/%{monofontconf}

# I do not think this is useful to package, but if it is...
%if 0
mkdir -p %{buildroot}%{_libdir}/node_modules/overpass/
cp -a bower.json package.json %{buildroot}%{libdir}/node_modules/overpass/
%endif

# Add AppStream metadata
install -Dm 0644 -p %{SOURCE2} \
	%{buildroot}%{_datadir}/appdata/%{fontname}.metainfo.xml

install -Dm 0644 -p %{SOURCE4} \
        %{buildroot}%{_datadir}/appdata/%{fontname}-mono.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12746 |21mr|fonts-ttf-paratype-20141121-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define mononame paratype-pt-mono
%define sansname paratype-pt-sans
%define serifname paratype-pt-serif

Summary:	A pan-Cyrillic typeface
Name:		fonts-ttf-paratype
Version:	20141121
Release:	7
License:	OFL
Group:		System/Fonts/True type
Url:		http://www.paratype.com/public/
# We now got new updated source archive to use
Source0:	http://www.fontstock.com/public/PTSansOFL.zip
Source1:	http://www.fontstock.com/public/PTSerifOFL.zip
Source2:	http://www.fontstock.com/public/PTMonoOFL.zip
Source12:	%{sansname}.metainfo.xml
Source13:	%{sansname}-narrow.metainfo.xml
Source14:	%{sansname}-caption.metainfo.xml
Source22:	%{serifname}.metainfo.xml
Source23:	%{serifname}-caption.metainfo.xml
Source31:	%{mononame}.metainfo.xml
BuildRequires:	fontconfig
BuildRequires:	ttmkfdir
Conflicts:	paratype-pt-sans-fonts < 20141121-3
Obsoletes:	paratype-pt-sans-fonts < 20141121-3
Provides:	paratype-pt-mono-fonts = %{EVRD}
Provides:	paratype-pt-sans-fonts = %{EVRD}
Provides:	paratype-pt-serif-fonts = %{EVRD}
BuildArch:	noarch

%description
The Paratype family was developed as part of the "Public Types of Russian
Federation" project. This project aims at enabling the peoples of Russia to
read and write their native languages, using free/libre fonts. It is
dedicated to the 300-year anniversary of the Russian civil type invented by
Peter the Great from 1708 to 1710, and was realized with financial support
from the Russian Federal Agency for Press and Mass Communications.

The fonts include support for all 54 title languages of the Russian
Federation as well as more common Western, Central European and Cyrillic
blocks making them unique and a very important tool for modern digital
communications.

Paratype is a grotesque font based on Russian type designs of the second part
of the 20th century. However, it also includes very distinctive features of
modern humanistic design, fulfilling present day aesthetic and functional
requirements.

It was designed by Alexandra Korolkova, Olga Umpeleva and Vladimir Yefimov
and released by ParaType.

This package includes the four basic styles and two narrows styles for
economic setting.

%files
%doc *.txt
%{_datadir}/appdata/%{mononame}.metainfo.xml
%{_datadir}/appdata/%{sansname}.metainfo.xml
%{_datadir}/appdata/%{sansname}-narrow.metainfo.xml
%{_datadir}/appdata/%{serifname}.metainfo.xml
%{_datadir}/fonts/TTF/paratype/PTF*.ttf
%{_datadir}/fonts/TTF/paratype/PTM*.ttf
%{_datadir}/fonts/TTF/paratype/PTN*.ttf
%{_datadir}/fonts/TTF/paratype/PTS*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/paratype/fonts.dir
%{_datadir}/fonts/TTF/paratype/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-paratype:pri=50

#----------------------------------------------------------------------------

%package caption
Summary:	A pan-Cyrillic typeface (caption forms for small text)
Group:		System/Fonts/True type
Conflicts:	paratype-pt-sans-caption-fonts < 20141121-3
Obsoletes:	paratype-pt-sans-caption-fonts < 20141121-3
Provides:	paratype-pt-sans-caption-fonts = %{EVRD}
Provides:	paratype-pt-serif-caption-fonts = %{EVRD}

%description caption
This paratype subpackage includes captions styles for small text sizes.

%files caption
%doc *.txt
%{_datadir}/appdata/%{sansname}-caption.metainfo.xml
%{_datadir}/appdata/%{serifname}-caption.metainfo.xml
%{_datadir}/fonts/TTF/paratype-caption/PTC*.ttf
%{_datadir}/fonts/TTF/paratype-caption/PTZ*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/paratype-caption/fonts.dir
%{_datadir}/fonts/TTF/paratype-caption/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-paratype-caption:pri=50

#----------------------------------------------------------------------------

%prep
%setup -q -c -T
unzip -o %{SOURCE0}
unzip -o %{SOURCE1}
unzip -o %{SOURCE2}

for txt in *.txt ; do
   if $(echo "$txt" | grep -q "rus\.txt") ; then
     iconv --from=UTF-16       --to=UTF-8 "$txt" > "$txt.1"
   else
     iconv --from=WINDOWS-1251 --to=UTF-8 "$txt" > "$txt.1"
   fi
   sed -i 's/\r//' "$txt.1"
   touch -r "$txt" "$txt.1"
   mv "$txt.1" "$txt"
done

%build

%install
# Paratype fonts
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/paratype
install -m 0644 -p PTF*.ttf PTM*.ttf PTN*.ttf PTS*.ttf %{buildroot}%{_datadir}/fonts/TTF/paratype/

ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/paratype > %{buildroot}%{_datadir}/fonts/TTF/paratype/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/paratype/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/paratype \
        %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-paratype:pri=50

# Paratype Caption fonts
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/paratype-caption
install -m 0644 -p PTC*.ttf PTZ*.ttf %{buildroot}%{_datadir}/fonts/TTF/paratype-caption/

ttmkfdir %{buildroot}%{_datadir}/fonts/TTF/paratype-caption > %{buildroot}%{_datadir}/fonts/TTF/paratype-caption/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/paratype-caption/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/paratype-caption \
        %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-paratype-caption:pri=50

# Add AppStream metadata
install -Dm 0644 -p %{SOURCE12} \
        %{buildroot}%{_datadir}/appdata/%{sansname}.metainfo.xml
install -Dm 0644 -p %{SOURCE13} \
        %{buildroot}%{_datadir}/appdata/%{sansname}-narrow.metainfo.xml
install -Dm 0644 -p %{SOURCE14} \
        %{buildroot}%{_datadir}/appdata/%{sansname}-caption.metainfo.xml
install -Dm 0644 -p %{SOURCE22} \
        %{buildroot}%{_datadir}/appdata/%{serifname}.metainfo.xml
install -Dm 0644 -p %{SOURCE23} \
        %{buildroot}%{_datadir}/appdata/%{serifname}-caption.metainfo.xml
install -Dm 0644 -p %{SOURCE31} \
        %{buildroot}%{_datadir}/appdata/%{mononame}.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12747 |21mr|fonts-ttf-unifont-12.1.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pkgname	unifont

Summary:	GNU Unifont glyphs
Name:		fonts-ttf-%{pkgname}
Version:	12.1.03
Release:	1
Group:		System/Fonts/True type
License:	GPLv2+
Url:		http://unifoundry.com/unifont.html
# Packaged from:
# http://unifoundry.com/pub/unifont/unifont-%%{version}/font-builds/unifont-%%{version}.ttf
Source0:	%{pkgname}-%{version}.tar.xz
BuildRequires:	fontconfig
BuildRequires:	freetype-tools
BuildArch:		noarch

%description
GNU Unifont provides glyphs for every printable code point in the Unicode
Basic Multilingual Plane (BMP). The BMP occupies the first 65,536 code points
of the Unicode space, denoted as U+0000..U+FFFF.
There is also growing coverage of the Supplementary Multilingual Plane (SMP),
in the range U+010000..U+01FFFF.

%files
%dir %{_datadir}/fonts/TTF/%{pkgname}
%{_datadir}/fonts/TTF/%{pkgname}/*.ttf
%verify(not mtime) %{_datadir}/fonts/TTF/%{pkgname}/fonts.dir
%{_datadir}/fonts/TTF/%{pkgname}/fonts.scale
%{_sysconfdir}/X11/fontpath.d/ttf-%{pkgname}:pri=50

#-----------------------------------------------------------------------------

%prep
%setup -q -T -c %{pkgname}-%{version}
tar -Jxf %{SOURCE0}


%build
# Pre-built ttf font: nothing to do.


%install
mkdir -p %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}

install -m 644 *.ttf %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}
ln -s %{pkgname}-%{version}.ttf %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}/%{pkgname}.ttf
ttmkfdir %{buildroot}/%{_datadir}/fonts/TTF/%{pkgname} > %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}/fonts.dir
ln -s fonts.dir %{buildroot}%{_datadir}/fonts/TTF/%{pkgname}/fonts.scale

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/TTF/%{pkgname} %{buildroot}%{_sysconfdir}/X11/fontpath.d/ttf-%{pkgname}:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12748 |21mr|fonts-ttf-XO-0.20190919-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: fonts-ttf-XO
Version: 0.20190919
Release: 1
Summary: MyOffice fonts
License: XO Fonts
Group: System/Fonts/True type
Url: https://fonts.myoffice.ru/
Source: https://fonts.myoffice.ru/wp-content/themes/template/fonts_page/files/all_fonts_myoffice.zip
# elinks -dump https://fonts.myoffice.ru/license/ > LICENSE.txt  
Source1: LICENSE.txt
BuildArch: noarch
BuildRequires: unzip
BuildRequires: fontpackages-devel
Requires: fontpackages-filesystem

%description
%summary

%prep
%setup -c
cp %SOURCE1 .

%build
ln */*.ttf .
%install
%ttf_fonts_install XO

%files -f XO.files
%license LICENSE.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12749 |21mr|fonts-type1-cyrillic-1.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Cyrillic Type1 fonts
Name:		fonts-type1-cyrillic
Version:	1.1
Release:	20

# The "TopTeam" bulgarian company kindly donated good quality
# PS Type1 cyrillic font "Teams" to X community.
# info from: "Alexander Voropay" <a.voropay@globalone.ru>
Source0:	http://www.sensi.org/download/teams-1.1.tar.gz
#
Source1:	oldslavic.tar.bz2
License:	GPL+ and MIT
Group:		System/Fonts/Type1
BuildArch:	noarch
BuildRequires: fontconfig
BuildRequires:	freetype-tools
BuildRequires:	mkfontdir

%description
Scalable fonts including common Cyrillic glyphs.

%prep

%setup -n teams -a1 -q
mv doc teams
mkdir oldslavic
cp README COPYING oldslavic/

%build

%install
rm -fr %buildroot

install -d %buildroot/%_datadir/fonts/type1/cyrillic/
install -m 0644 *.pfb %buildroot/%_datadir/fonts/type1/cyrillic
# the *.pfb files don't show up in Xft; installing the *.pfa ones
install -m 0644 Teams/*.pfa %buildroot/%_datadir/fonts/type1/cyrillic
# 
install -m 0644 *.afm %buildroot/%_datadir/fonts/type1/cyrillic/
install -m 0644 Teams/*.afm %buildroot/%_datadir/fonts/type1/cyrillic/

mkfontdir %buildroot/%_datadir/fonts/type1/cyrillic
cp %buildroot/%_datadir/fonts/type1/cyrillic/fonts.dir %buildroot/%_datadir/fonts/type1/cyrillic/fonts.scale

mkdir -p %{buildroot}%_sysconfdir/X11/fontpath.d/
ln -s ../../..%_datadir/fonts/type1/cyrillic \
    %{buildroot}%_sysconfdir/X11/fontpath.d/type1-cyrillic:pri=50

# not listed in xfs, as the fonts don't cover any of the X11 encodings
# they only have basic cyrillic

%clean
rm -fr %buildroot

%post
touch %{_datadir}/fonts/type1

%files
%defattr(0644,root,root,0755)
%doc README* teams/ oldslavic/
%_datadir/fonts/type1/cyrillic
%_sysconfdir/X11/fontpath.d/type1-cyrillic:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12750 |21mr|fonts-type1-greek-2.0-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Greek Type1 fonts
Name:		fonts-type1-greek
Version:	2.0
Release:	24
License: 	Distributable
Group:		System/Fonts/Type1
Url:		http://iris.math.aegean.gr/kerkis/
# date 2003-01-17
Source0:	http://iris.math.aegean.gr/kerkis/Kerkis_for_X11.tar.bz2
BuildRequires:	font-tools
BuildRequires:	fontconfig
BuildArch:	noarch

%description
Nice Greek scalable fonts, usable for display on screen or for printing.
Please if you want to use them for publishing, read the licence at
http://iris.math.aegean.gr/kerkis/ or in the doc directory.

%files
%defattr(0644,root,root,0755)
%doc License.txt
%dir %{_datadir}/fonts/type1/greek
%{_datadir}/fonts/type1/greek/*.pfb
%{_datadir}/fonts/type1/greek/*.afm
%config(noreplace) %{_datadir}/fonts/type1/greek/fonts.dir
%config(noreplace) %{_datadir}/fonts/type1/greek/fonts.scale
%{_sysconfdir}/X11/fontpath.d/type1-greek:pri=50

#----------------------------------------------------------------------------

%prep
%setup -q -n Kerkis_for_X11

%build

%install
install -d %{buildroot}%{_datadir}/fonts/type1/greek/
install -m 0644 *.pfb %{buildroot}%{_datadir}/fonts/type1/greek
install -m 0644 *.afm %{buildroot}%{_datadir}/fonts/type1/greek

cat fonts.scale | \
	sed 's:^\(.*\)-iso8859-7$:\1-iso8859-7#\1-iso10646-1:' | \
	tr '#' '\n' | uniq | grep '[ 	]' > fonts.scale.tmp
wc -l fonts.scale.tmp | awk '{print $1}'> fonts.scale.new
cat fonts.scale.tmp >> fonts.scale.new
install -m 0644 fonts.scale.new \
	%{buildroot}%{_datadir}/fonts/type1/greek/fonts.scale

(
cd %{buildroot}%{_datadir}/fonts/type1/greek
cp fonts.scale fonts.dir
)

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/type1/greek \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/type1-greek:pri=50

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12751 |21mr|font-tools-0.1-34
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ttf2pt1ver 3.4.4

Summary:	Font-related utilities
Name:		font-tools
Version:	0.1
Release:	34
License:	GPLv2+ and BSD
Group:		System/Configuration/Other
Url: 		http://abf.io/import/font-tools
Source0:	%{name}-%{version}.tar.bz2
Source1:	http://download.sourceforge.net/ttf2pt1/ttf2pt1-%{ttf2pt1ver}.tgz
Requires:	groff
Requires:	t1utils
Requires:	ttmkfdir

%description
font-tools is used by drakfont and includes:
- ttf2type1: convert .ttf to .pfb and .afm.
- tt2afm:    convert .ttf to .afm.
- pfm2afm:   convert .pfm to afm.

%files
%defattr(0644,root,root,0755)
%doc README README.ttf2pt1 COPYRIGHT.ttf2pt1
%attr(0755,root,root) %{_sbindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -a1

%build
# ttf2pt1 3.3.5 from main sources had IA-32 objects
make clean
perl -pi -e 's/ttf2pt1-3.3.5/ttf2pt1-%{ttf2pt1ver}/g' Makefile
make CC="gcc %{optflags}"

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man1

%makeinstall PREFIX=%{buildroot}/usr

install ttf2pt1-%{ttf2pt1ver}/ttf2pt1.1 %{buildroot}%{_mandir}/man1
install ttf2pt1-%{ttf2pt1ver}/ttf2pt1 %{buildroot}%{_sbindir}
install type1inst-0.6.1/type1inst.man %{buildroot}%{_mandir}/man1/type1inst.1

rm -f %{buildroot}%{_sbindir}/t1asm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12752 |21mr|fonttools-4.49.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool to convert True/OpenType fonts to XML and back
Name:		fonttools
Version:	4.49.0
Release:	1
License:	BSD
Group:		Development/Other
Url:		https://github.com/behdad/fonttools
Source0:	https://github.com/behdad/fonttools/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-numpy
BuildRequires:	python3egg(cffi)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pip)
BuildRequires:	python3-cython
Requires:	python3-%{name} = %{EVRD}
Requires:	python3dist(setuptools)

%description
TTX/FontTools is a tool to convert OpenType and TrueType fonts to and
from XML. FontTools is a library for manipulating fonts, written in Python.
It supports TrueType, OpenType, AFM and to an extent Type 1 and some
Mac-specific formats.

%files
%{_bindir}/%{name}
%{_bindir}/pyft*
%{_bindir}/ttx
%{_mandir}/man1/ttx.1.xz

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 fonttools library
Requires:	python3dist(numpy)

%description -n python3-%{name}
TTX/FontTools is a tool for manipulating TrueType and OpenType fonts. It is
written in Python and has a BSD-style, open-source license. TTX can dump
TrueType and OpenType fonts to an XML-based text format and vice versa.

%files -n python3-%{name}
%license LICENSE
%doc NEWS.rst README.rst
%{python3_sitearch}/fontTools
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
export FONTTOOLS_WITH_CYTHON=1
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12753 |21mr|fonttosfnt-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wrap a bitmap font in a sfnt (TrueType) wrapper
Name:		fonttosfnt
Version:	1.2.2
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(fontenc)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	x11-proto-devel

%description
Fonttosfnt wraps a bitmap font in a sfnt (TrueType or OpenType) wrapper.

%files
%{_bindir}/fonttosfnt
%{_mandir}/man1/fonttosfnt*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12754 |21mr|foomatic-db-4.0-4.20230509.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define releasedate 20230509

Name:		foomatic-db
Version:	4.0
Release:	4.%{releasedate}.1
Epoch:		1
Summary:	Foomatic printer/driver database
License:	GPLv2 and MIT
Group:		System/Servers
Url:		http://www.linuxprinting.org/
Source:		http://www.openprinting.org/download/foomatic/%{name}-%{version}-%{releasedate}.tar.xz
# Perl script to clean up Manufacturer entries in the PPD files, so that
# drivers are sorted by the printer manufacturer in the graphical frontends
Source2:	cleanppd.pl.bz2
Patch0:		foomatic-db-20130312-cp_argument_list_too_long.diff
Patch1:		foomatic-db-device-ids.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	cups
BuildRequires:	cups-common
BuildRequires:	foomatic-db-engine
# Make sure we get postscriptdriver tags:
BuildRequires: python3-cups
Requires:	foomatic-db-engine
BuildArch:	noarch

%description
Foomatic is a comprehensive, spooler-independent database of printers, printer
drivers, and driver descriptions. It contains utilities to generate PPD
(Postscript Printer Description) files and printer queues for CUPS, LPD,
GNUlpr, LPRng, PPR, and PDQ using the database. There is also the possibility
to read the PJL options out of PJL-capable laser printers and take them into
account at the driver description file generation.

There are spooler-independent command line interfaces to manipulate queues
(foomatic-configure) and to print files/manipulate jobs (foomatic printjob).
 
This package is the Foomatic database, an XML database containing information
about the capabilities of near 1000 printers and around 250 drivers.
Especially it contains the information how and with which options the drivers
have to be executed.

%files
%doc README USAGE COPYING
%{_datadir}/foomatic/db
%{_datadir}/foomatic/xmlschema
%{_datadir}/cups/model/foomatic-db-ppds

# Restart the CUPS daemon when it is running, but do not start it when it
# is not running. The restart updates the CUPS-internal PPD index

%post
/sbin/service cups condrestart > /dev/null 2>/dev/null || :

%postun
/sbin/service cups condrestart > /dev/null 2>/dev/null || :


#-----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{releasedate}

%patch0 -p0
# foomatic-db patches
# Don't use "-b" when patching PPD files as the backups will be packaged.

# Device IDs for:
# Brother MFC-8840D (#678065)
# HP LaserJet M1522nf MFP (#745499)
# Lexmark C453 (#770169)
# HP DeskJet 720C (bug #797099)
# Kyocera FS-1118MFP (bug #782377)
%patch1 -p1

# Use sed instead of perl in the PPDs (bug #512739).
find db/source/PPD -type f -name '*.ppd' | xargs perl -pi -e 's,perl -p,sed,'


%build
# Makefile generation ("./make_configure" for CVS snapshots)
./make_configure

# Fix for lib64 architectures, avoid patch
perl -pi -e "s@/usr/lib/(cups|pdq|ppr)@%{_libdir}/\1@g" configure

# We do not compress the PPDs now, so that we can do a clean-up
%configure --disable-gzip-ppds

# "make" is not needed for this package: there is nothing to build

# Delete drivers which are not on the distro (obsolete drivers which are
# replaced by a new driver with a different name)
# "stp" replaced by "gimp-print"/"gutenprint"
rm -f db/source/driver/stp.xml
# "cZ11" replaced by "cZ11somsom"
rm -f db/source/driver/cZ11.xml
# "cZ11somsom" replaced by "lz11"
rm -f db/source/driver/cZ11somsom.xml
# "hpdj" replaced by "pcl3"
rm -f db/source/driver/hpdj.xml
# "lxm3200[mcp]" replaced by "lxm3200"
rm -f db/source/driver/lxm3200[mcp].xml
# "lxm3200" replaced by "lxm3200-tweaked"
rm -f db/source/driver/lxm3200.xml
# Japanese drivers which are not in our GhostScript
rm -f db/source/driver/bjc800j.xml
rm -f db/source/driver/bj10.xml

# These drivers come with their own Foomatic data: remove the files
# from this package
rm -f db/source/*/gimp-print*.xml
rm -f db/source/*/gutenprint*.xml
rm -f db/source/*/foo2*.xml
rm -f db/source/*/lz11*.xml
rm -f db/source/*/m2300w*.xml
rm -f db/source/*/m2400w*.xml
rm -f db/source/[do]*/*[Pp]touch*.xml

# foo2zjs files
rm -f \
	db/source/printer/HP-Color_LaserJet_1500.xml \
	db/source/printer/HP-Color_LaserJet_1600.xml \
	db/source/printer/HP-Color_LaserJet_2600n.xml \
	db/source/printer/HP-LaserJet_1000.xml \
	db/source/printer/HP-LaserJet_1005.xml \
	db/source/printer/HP-LaserJet_1020.xml \
	db/source/printer/HP-LaserJet_1022.xml \
	db/source/printer/HP-LaserJet_M1005_MFP.xml \
	db/source/printer/Minolta-magicolor_2300_DL.xml \
	db/source/printer/Minolta-magicolor_2430_DL.xml \
	db/source/printer/Samsung-CLP-300.xml \
	db/source/printer/Samsung-CLP-600.xml \
	db/source/printer/Xerox-Phaser-6115MFP.xml

# m2300w files
rm -f \
	db/source/printer/Minolta-magicolor_2300W.xml \
	db/source/printer/Minolta-magicolor_2400W.xml

# ptouch files
rm -f \
	db/source/printer/Brother-PT-1500PC.xml \
	db/source/printer/Brother-PT-18R.xml \
	db/source/printer/Brother-PT-1950.xml \
	db/source/printer/Brother-PT-1950VP.xml \
	db/source/printer/Brother-PT-1960.xml \
	db/source/printer/Brother-PT-2420PC.xml \
	db/source/printer/Brother-PT-2450DX.xml \
	db/source/printer/Brother-PT-2500PC.xml \
	db/source/printer/Brother-PT-2600.xml \
	db/source/printer/Brother-PT-2610.xml \
	db/source/printer/Brother-PT-3600.xml \
	db/source/printer/Brother-PT-550A.xml \
	db/source/printer/Brother-PT-9200DX.xml \
	db/source/printer/Brother-PT-9200PC.xml \
	db/source/printer/Brother-PT-9400.xml \
	db/source/printer/Brother-PT-9500PC.xml \
	db/source/printer/Brother-PT-9600.xml \
	db/source/printer/Brother-PT-PC.xml \
	db/source/printer/Brother-QL-500.xml \
	db/source/printer/Brother-QL-550.xml \
	db/source/printer/Brother-QL-650TD.xml

# Delete drivers with empty command line prototype: they would give
# unusable printer/driver combos.
FOOMATICDB=`pwd` %{_sbindir}/foomatic-cleanupdrivers

# Correct recommended driver "gimp-print" or "gutenprint", must be 
# "gutenprint-ijs.5.0".
for f in db/source/printer/*.xml; do
	perl -p -i -e 's:<driver>(gimp-|guten)print</driver>:<driver>gutenprint-ijs.5.0</driver>:' $f
done

# Fixed default paper tray for HP Business Inkjet 2800.
perl -p -i -e 's/(\*DefaultInputSlot:\s+)Auto/$1Tray1/' db/source/PPD/HP/business_inkjet/HP_Business_Inkjet_2800.ppd
# Fixed device ID lines in the HP PPDs
perl -p -i -e 's/1284DeviceId/1284DeviceID/' db/source/PPD/HP/*/*.ppd


%install
# Do not use "make" macro, as parallelized build of Foomatic does not work.
make	PREFIX=%{_prefix} \
		DESTDIR=%{buildroot} \
		install

# Uncompress Perl script for cleaning up the PPD files...
bzcat %{SOURCE2} > ./cleanppd.pl
chmod a+rx ./cleanppd.pl
# ...and do the clean-up
find %{buildroot}%{_datadir}/foomatic/db/source/PPD -name "*.ppd" -exec ./cleanppd.pl '{}' \;

# Remove PPDs which are not Adobe-compliant and therefore not working with
# CUPS 1.1.20 or newer
for ppd in `find %{buildroot}%{_datadir}/foomatic/db/source/PPD -name "*.ppd.gz"`
do
	cupstestppd -q $ppd || (
		rm -f $ppd && \
		echo "$ppd not Adobe-compliant. Deleted." && \
		echo $ppd >> deletedppds-%{name}-%{version}-%{release}.txt
	)
done

# Correct permissions
for f in %{buildroot}%{_datadir}/foomatic/db/source/*/*.xml; do
	chmod a-x $f
done
chmod a-x %{buildroot}%{_datadir}/foomatic/db/oldprinterids

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12755 |21mr|foomatic-db-engine-4.0.13-6.20230510
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	releasedate 20230510
%define	tarname %{name}-4.0-%{releasedate}
%define	debug 0

Summary:	Foomatic database access, printer admin, and printing utils
Name:		foomatic-db-engine
Version:	4.0.13
Release:	6.%{releasedate}
License:	GPLv2+
Group:		System/Servers
Url:		http://www.linuxprinting.org/
Source0:	http://www.openprinting.org/download/foomatic/%{tarname}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	autoconf 
BuildRequires:	automake 
BuildRequires:	cups
BuildRequires:	file 
BuildRequires:	libxml2-devel
BuildRequires:	perl-devel
Requires:		foomatic-filters
Requires:		perl-base

%description
Foomatic is a comprehensive, spooler-independent database of printers, printer
drivers, and driver descriptions. It contains utilities to generate PPD
(Postscript Printer Description) files and printer queues for CUPS, LPD,
GNUlpr, LPRng, PPR, and PDQ using the database. There is also the possibility
to read the PJL options out of PJL-capable laser printers and take them into
account at the driver description file generation.
There are spooler-independent command line interfaces to manipulate queues
(foomatic-configure) and to print files/manipulate jobs (foomatic printjob).
This package contains the tools for accessing the Foomatic database, for
printer administration, and for printing.

%files
%doc README TODO USAGE Foomatic-Devel-Ideas.txt ChangeLog
%{_bindir}/*
%{_sbindir}/*
%{perl_vendorlib}/Foomatic
%{_datadir}/foomatic/templates
%{_mandir}/man*/*
%{_prefix}/lib/cups/driver/*

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{tarname}
chmod -x *.c


%build
# Change compiler flags for debugging when in debug mode
%if %{debug}
export DONT_STRIP=1
export CFLAGS="`echo %{optflags} |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
export CXXFLAGS="`echo %{optflags} |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
export RPM_OPT_FLAGS="`echo %{optflags} |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
%endif

# Makefile generation ("./make_configure" for CVS snapshots)
./make_configure
%configure --libdir=%{_prefix}/lib

# Fix for new library "make install" behaviour of Perl 5.8.1.
perl -p -i -e 's/PREFIX=\$\(DESTDIR\)\$\(PERLPREFIX\)/PREFIX=\$\(PERLPREFIX\)/' Makefile

# Final build of Foomatic package
# Use the real file names of the printing utilities to be independent of the
# update-alternatives configuration
# Do not use "make" macro, as parallelized build of Foomatic does not work.
make \
		CUPS_LPR=/usr/bin/lpr \
		CUPS_LPQ=/usr/bin/lpq \
		CUPS_LPRM=/usr/bin/lprm \
		CUPS_LPC=/usr/sbin/lpc \
		CUPS_LP=/usr/bin/lp \
		CUPS_CANCEL=/usr/bin/cancel \
		CUPS_LPSTAT=/usr/bin/lpstat \
		PREFIX=%{_prefix} \
		PERL_INSTALLDIRS=vendor \
		DESTDIR=%{buildroot}

chmod a+rx mkinstalldirs


%install
# Change compiler flags for debugging when in debug mode
%if %{debug}
export DONT_STRIP=1
export CFLAGS="`echo %{optflags} |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
export CXXFLAGS="`echo %{optflags} |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
export RPM_OPT_FLAGS="`echo %{optflags} |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
%endif

# Create the needed directories
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_mandir}/man8

# Install program files
eval `perl '-V:installsitelib'`
mkdir -p %{buildroot}/$installsitelib
export INSTALLSITELIB=%{buildroot}/$installsitelib
make	PREFIX=%{_prefix} \
		DESTDIR=%{buildroot} \
		INSTALLSITELIB=%{buildroot}/$installsitelib \
		install

# Use update-alternatives to make "foomatic-printjob" also possible through
# the usual printing commands
( cd %{buildroot}%{_bindir}
  ln -s foomatic-printjob lpr-foomatic
  ln -s foomatic-printjob lpq-foomatic
  ln -s foomatic-printjob lprm-foomatic
)
( cd %{buildroot}%{_sbindir}
  ln -s %{_bindir}/foomatic-printjob lpc-foomatic
)

# Correct permissions
chmod -R a-X %{buildroot}%{perl_vendorlib}/Foomatic/*.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12756 |21mr|foomatic-filters-4.0.17-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Foomatic filters needed to run print queues with Foomatic PPDs
Name:		foomatic-filters
Version:	4.0.17
Release:	11
License:	GPLv2
Group:		System/Servers
Url:		http://www.openprinting.org
Source0:	http://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz
# SEnt to Tim, in process of consulting with him
Patch0001:	0001-Fix-work-with-modern-ghostscript.patch
BuildRequires:	cups
BuildRequires:	file
BuildRequires:	mpage
BuildRequires:	libgs-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	mpage
Provides:	foomatic

%description
Foomatic is a comprehensive, spooler-independent database of printers,
printer drivers, and driver descriptions. It contains utilities to
generate PPD (Postscript Printer Description) files and printer queues
for CUPS, LPD, GNUlpr, LPRng, PPR, and PDQ using the database. There
is also the possibility to read the PJL options out of PJL-capable
laser printers and take them into account at the driver description
file generation.

There are spooler-independent command line interfaces to manipulate
queues (foomatic-configure) and to print files/manipulate jobs
(foomatic printjob).

This package contains the filters needed to run print queues based on
Foomatic PPD files.

%files
%doc README USAGE TODO ChangeLog
%{_bindir}/*
%{_prefix}/lib/cups/filter/*
%{_prefix}/lib/ppr/interfaces/*
%{_prefix}/lib/ppr/lib/*
%{_mandir}/man1/*
%dir %config(noreplace) %{_sysconfdir}/foomatic
%dir %config(noreplace) %{_sysconfdir}/foomatic/direct
%config(noreplace) %{_sysconfdir}/foomatic/filter.conf

%post
# Restart the CUPS daemon when it is running, but do not start it when it
# is not running. The restart of the CUPS daemon updates the CUPS-internal
# backend index
/sbin/service cups condrestart > /dev/null 2>/dev/null || :

%postun
# Restart the CUPS daemon when it is running, but do not start it when it
# is not running. The restart of the CUPS daemon updates the CUPS-internal
# backend index
/sbin/service cups condrestart > /dev/null 2>/dev/null || :

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
make

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_mandir}/man1

make \
	PREFIX=%{_prefix} \
	DESTDIR=%{buildroot} \
	install

# Remove superfluous file
rm -f %{buildroot}/etc/foomatic/filter.conf.sample

# Link to make Foomatic 2.0.x CUPS queues working with Foomatic 3.0.x
ln -s ../../../bin/foomatic-rip %{buildroot}%{_prefix}/lib/cups/filter/cupsomatic

# In cups-filters 1.11.2+
rm -rf %{buildroot}%{_prefix}/lib/cups/backend/beh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12757 |21mr|fop-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           fop
Summary:        XSL-driven print formatter
Version:        2.4
Release:        1
# ASL 1.1:
# several files in fop-core/src/main/resources/org/apache/fop/render/awt/viewer/resources
# rest is ASL 2.0
License:        ASL 2.0 and ASL 1.1
URL:            https://xmlgraphics.apache.org/fop
Source0:        https://www.apache.org/dist/xmlgraphics/%{name}/source/%{name}-%{version}-src.tar.gz
Source1:        %{name}.script
Source2:        batik-pdf-MANIFEST.MF
Source3:        https://repo1.maven.org/maven2/org/apache/xmlgraphics/%{name}/%{version}/%{name}-%{version}.pom
Source4:        https://www.apache.org/licenses/LICENSE-1.1.txt
Patch1:         0001-Main.patch
Patch2:         0002-Use-sRGB.icc-color-profile-from-colord-package.patch
Patch3:         0003-Disable-javadoc-doclint.patch
Patch4:         0004-Port-to-QDox-2.0.patch
Patch5:         0005-Allow-javascript-in-javadoc.patch
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Requires:       apache-commons-io >= 1.2
Requires:       apache-commons-logging >= 1.0.4
Requires:       batik >= 1.7
Requires:       fontbox
Requires:       jakarta-commons-httpclient
Requires:       java
Requires:       xalan-j2 >= 2.7.0
Requires:       xml-commons-apis >= 1.3.04
Requires:       xmlgraphics-commons >= 1.5
# Explicit requires for javapackages-tools since fop script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

BuildRequires:  ant
BuildRequires:  apache-commons-io
BuildRequires:  apache-commons-logging
BuildRequires:  batik
BuildRequires:  fontbox
BuildRequires:  javapackages-local
BuildRequires:  junit
BuildRequires:  qdox
BuildRequires:  servlet
BuildRequires:  xmlgraphics-commons >= 1.5
BuildRequires:  xmlunit

%description
FOP is the world's first print formatter driven by XSL formatting
objects. It is a Java application that reads a formatting object tree
and then turns it into a PDF document. The formatting object tree, can
be in the form of an XML document (output by an XSLT engine like XT or
Xalan) or can be passed in memory as a DOM Document or (in the case of
XT) SAX events.

%package javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%prep
%autosetup -p1

cp %{SOURCE4} LICENSE-1.1

rm -f fop/lib/*.jar fop/lib/build/*.jar

#upstream workaround -- many thanks to spepping@apache.org -- see https://issues.apache.org/bugzilla/show_bug.cgi?id=50575
ln -s %{_javadir}/qdox.jar fop/lib/build/qdox.jar

%build
#qdox intentionally left off classpath -- see https://issues.apache.org/bugzilla/show_bug.cgi?id=50575
export CLASSPATH=$(build-classpath apache-commons-logging apache-commons-io \
    fontbox xmlgraphics-commons batik-all avalon-framework-api \
    avalon-framework-impl servlet batik/batik-svg-dom xml-commons-apis \
    xml-commons-apis-ext objectweb-asm/asm-all xmlunit)
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
ant -f fop/build.xml jar-main transcoder-pkg javadocs

%install
# inject OSGi manifest
jar ufm fop/build/%{name}.jar %{SOURCE2}


# jars
install -d -m 755 %{buildroot}%{_javadir}
install -p -m 644 fop/build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
install -p -m 644 fop/build/%{name}-transcoder.jar %{buildroot}%{_javadir}/pdf-transcoder.jar

# script
install -d -m 755 %{buildroot}%{_bindir}
install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/fop

# data
install -d -m 755 %{buildroot}%{_datadir}/%{name}/conf
cp -rp fop/conf/* %{buildroot}%{_datadir}/%{name}/conf

# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -rp fop/build/javadocs/* %{buildroot}%{_javadocdir}/%{name}

install -d -m 755 %{buildroot}%{_mavenpomdir}
install -p -m 644 %{SOURCE3} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar


%files -f .mfiles
%doc LICENSE LICENSE-1.1 README NOTICE
%{_datadir}/%{name}
%{_javadir}/pdf-transcoder.jar
%{_bindir}/fop

%files javadoc
%doc %{_javadocdir}/%{name}
%doc LICENSE LICENSE-1.1



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12758 |21mr|forbidden-apis-2.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          forbidden-apis
Version:       2.5
Release:       4
Summary:       Policeman's Forbidden API Checker
License:       ASL 2.0
URL:           https://github.com/policeman-tools/forbidden-apis
Source0:       https://github.com/policeman-tools/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

# Avoid bundling deps
Patch0:        avoid-jarjar-bundling.patch

# Port to latest versions of gradle and maven in Fedora
Patch1:        fix-gradle-maven-build.patch

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: gradle-local
BuildRequires: ivy-local
BuildRequires: maven-local
BuildRequires: ant
BuildRequires: ant-antunit
BuildRequires: ant-contrib
BuildRequires: ant-junit
BuildRequires: objectweb-asm
BuildRequires: plexus-utils
BuildRequires: maven-plugin-plugin
BuildRequires: sonatype-oss-parent

%description
Allows to parse Java byte code to find invocations of method/class/field
signatures and fail build (Apache Ant, Apache Maven, or Gradle).

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q
%patch0
%patch1

find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

# Use system ivy settings
sed -i -e '/ivy:configure/d' build.xml

# Can't use missing maven-ant-tasks
%pom_xpath_remove "target/artifact:pom" build.xml
%pom_xpath_remove "target/artifact:mvn" build.xml
%pom_xpath_remove "target/artifact:install" build.xml
%pom_xpath_inject "target[@name='maven-descriptor']" \
"<exec executable='xmvn'>
  <arg value=\"-o\"/>
  <arg value=\"-f\"/>
  <arg value=\"\${maven-build-dir}/pom-build.xml\"/>
  <arg value=\"plugin:helpmojo\"/>
  <arg value=\"plugin:descriptor\"/>
  <arg value=\"plugin:report\"/>
  <arg value=\"-Dinjected.src.dir=src/main/java\"/>
  <arg value=\"-Dinjected.output.dir=../../build/main\"/>
  <arg value=\"-Dinjected.build.dir=\${maven-build-dir}\"/>
  <arg value=\"-Dinjected.maven-plugin-plugin.version=\${maven-plugin-plugin.version}\"/>
</exec>" build.xml
sed -i -e '/maven-ant-tasks/d' ivy.xml
sed -i -e '/uri="antlib:org.apache.maven.artifact.ant/d' build.xml

# Don't need to run RAT for RPM builds
sed -i -e '/apache-rat/d' ivy.xml
sed -i -e '/uri="antlib:org.apache.rat.anttasks/d' build.xml

%build
ant -Divy.mode=local jar documentation test-junit

%install
# Add deps on unbundled jars, taken from ivy.xml
%pom_add_dep org.apache.ant:ant:1.7.0:provided build/maven/pom-deploy.xml
%pom_add_dep org.ow2.asm:asm:6.1.1 build/maven/pom-deploy.xml
%pom_add_dep org.ow2.asm:asm-commons:6.1.1 build/maven/pom-deploy.xml
%pom_add_dep org.codehaus.plexus:plexus-utils:1.1 build/maven/pom-deploy.xml
%pom_add_dep commons-cli:commons-cli:1.3.1 build/maven/pom-deploy.xml

# Install maven artifacts
%mvn_artifact build/maven/pom-deploy.xml dist/forbiddenapis-2.5.jar
%mvn_install -J build/docs

# Install ant configuration
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
echo "%{name} ant apache-commons-cli objectweb-asm/asm objectweb-asm/asm-commons plexus/utils" > %{name}-ant
install -pm 644 %{name}-ant %{buildroot}%{_sysconfdir}/ant.d/%{name}

%files -f .mfiles
%config(noreplace) %{_sysconfdir}/ant.d/%{name}
%license LICENSE.txt NOTICE.txt
%doc README.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12759 |21mr|forge-parent-38-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           forge-parent
Version:        38
Release:        14
Summary:        Sonatype Forge Parent Pom
License:        ASL 2.0
Group:          Development/Java
URL:            https://docs.sonatype.org/display/FORGE/Index
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/sonatype/forge/%{name}/%{version}/%{name}-%{version}.pom
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local

%description
Sonatype Forge is an open-source community dedicated to the creation of the 
next-generation of development tools and technologies.

%prep
%setup -qcT
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} LICENSE
# We don't have nexus-staging-maven-plugin in Fedora
%pom_remove_plugin :nexus-staging-maven-plugin
# We don't use source JARs in Fedora
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12760 |21mr|fortune-mod-2.28.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program which will display a fortune
Name:		fortune-mod
Version:	2.28.0
Release:	1
License:	BSD
Group:		Toys
# Sources of the program
Url:		https://www.shlomifish.org/open-source/projects/fortune-mod
Source0:	https://www.shlomifish.org/open-source/projects/fortune-mod/arcs/fortune-mod-%{version}.tar.xz
# sources of fortune data files
# when no URL is given it is because the data files are not on the internet.
# they are either personal data I've collected myself trough the years;
# or data that people sent me in my quality of i18n coordinator of Mandriva
Source1:	http://crystal.u-strasbg.fr/glp.txt.bz2
Source2:	COPYING.glp
Source3:	http://crystal.u-strasbg.fr/cabale.txt.bz2
Source4:	ftp://sunsite.unc.edu/pub/Linux/games/amusement/fortune-fr.1138.tar.bz2
Source5:	ftp://sunsite.unc.edu/pub/Linux/games/amusement/fortune-it-1.51.tar.bz2
Source6:	ftp://ftp.startrek.eu.org/pub/linux/MS-FORTUNES.bz2
Source7:	http://sam.linuxfr.org/fortunes.txt.bz2
Source8:	COPYING.linuxfr
Source9:	http://www.multimania.com/fortune/ffr.tar.bz2
Source10:	azafra.txt.bz2
Source11:	deprimente.txt.bz2
Source12:	fortune-wa-spots.txt.bz2
Source13:	fortune-kotowaza.bz2
Source14:	fortune-kotowaza.README.bz2
Source15:	fortune-proverbs-gaeilge.bz2
Source16:	fortune-walon.txt.bz2
Source17:	fortune-msg-id.tar.bz2
Source18:	ftp://sunsite.unc.edu/pub/Linux/games/amusement/fortune-cs-1.2.4.tar.bz2
Source19:	ftp://sunsite.unc.edu/pub/Linux/games/amusement/fortunes-hu-0.1.tar.bz2
BuildRequires:	cmake
BuildRequires:	pkgconfig(librinutils)
BuildRequires:	recode
BuildRequires:	recode-devel

%description
Fortune-mod contains the ever-popular fortune program. Want a little
bit of random wisdom revealed to you when you log in? Fortune's
your program. Fun-loving system administrators can add fortune to
users' .login files, so that the users get their dose of wisdom 
each time they log in.

Install fortune if you want a program which will bestow these random
bits o' wit.

Now it supports reading the LANG variable and choosing, if they exist,
fortunes in the user language, when no parameter is given.

%files
%defattr(644,root,root,755)
%doc README ChangeLog TODO
#%doc doc/en/*
%lang(cs) %doc doc/cs
#%lang(es) %doc doc/es
%lang(fr) %doc doc/fr
%lang(ga) %doc doc/ga
%lang(hu) %doc doc/hu
#%lang(id) %doc doc/id
%lang(it) %doc doc/it
%lang(ja) %doc doc/ja
#%lang(wa) %doc doc/wa
%attr(755,root,root)%{_gamesbindir}/fortune
%attr(755,root,root)%{_sbindir}/strfile
%attr(755,root,root)%{_sbindir}/unstr
%attr(755,root,root)%{_bindir}/rot
%lang(cs) %{_gamesdatadir}/fortunes/cs
%lang(es) %{_gamesdatadir}/fortunes/es
%lang(fr) %{_gamesdatadir}/fortunes/fr
%lang(ga) %{_gamesdatadir}/fortunes/ga
%lang(hu) %{_gamesdatadir}/fortunes/hu
%lang(id) %{_gamesdatadir}/fortunes/id
%lang(it) %{_gamesdatadir}/fortunes/it
%lang(ja) %{_gamesdatadir}/fortunes/ja
%lang(wa) %{_gamesdatadir}/fortunes/wa
%dir %{_gamesdatadir}/fortunes
%{_gamesdatadir}/fortunes/MS-FORTUNES
%{_gamesdatadir}/fortunes/art
%{_gamesdatadir}/fortunes/ascii-art
%{_gamesdatadir}/fortunes/computers
%{_gamesdatadir}/fortunes/cookie
%{_gamesdatadir}/fortunes/debian
%{_gamesdatadir}/fortunes/definitions
%{_gamesdatadir}/fortunes/disclaimer
%{_gamesdatadir}/fortunes/drugs
%{_gamesdatadir}/fortunes/education
%{_gamesdatadir}/fortunes/ethnic
%{_gamesdatadir}/fortunes/food
%{_gamesdatadir}/fortunes/fortunes
%{_gamesdatadir}/fortunes/goedel
%{_gamesdatadir}/fortunes/humorists
%{_gamesdatadir}/fortunes/kids
%{_gamesdatadir}/fortunes/knghtbrd
%{_gamesdatadir}/fortunes/law
%{_gamesdatadir}/fortunes/linux
%{_gamesdatadir}/fortunes/linuxcookie
%{_gamesdatadir}/fortunes/literature
%{_gamesdatadir}/fortunes/love
%{_gamesdatadir}/fortunes/magic
%{_gamesdatadir}/fortunes/medicine
%{_gamesdatadir}/fortunes/men-women
%{_gamesdatadir}/fortunes/miscellaneous
%{_gamesdatadir}/fortunes/news
%{_gamesdatadir}/fortunes/paradoxum
%{_gamesdatadir}/fortunes/people
%{_gamesdatadir}/fortunes/perl
%{_gamesdatadir}/fortunes/pets
%{_gamesdatadir}/fortunes/platitudes
%{_gamesdatadir}/fortunes/politics
%{_gamesdatadir}/fortunes/pratchett
%{_gamesdatadir}/fortunes/riddles
%{_gamesdatadir}/fortunes/science
%{_gamesdatadir}/fortunes/songs-poems
%{_gamesdatadir}/fortunes/sports
%{_gamesdatadir}/fortunes/startrek
%{_gamesdatadir}/fortunes/tao
%{_gamesdatadir}/fortunes/translate-me
%{_gamesdatadir}/fortunes/wisdom
%{_gamesdatadir}/fortunes/work
%{_gamesdatadir}/fortunes/zippy
%{_gamesdatadir}/fortunes/*.dat
%{_gamesdatadir}/fortunes/*.u8
%{_mandir}/man6/fortune.6*
%{_mandir}/man1/strfile.1*
%{_mandir}/man1/unstr.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DLOCALDIR=%{_gamesdatadir}/fortunes
%make RPM_OPT_FLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/*str* %{buildroot}%{_sbindir}/
#cp util/rot %{buildroot}%{_bindir}

# extra english fortunes
mkdir -p en
mkdir -p doc/en
bzcat %{SOURCE6} > en/MS-FORTUNES

chmod -R a+rX en
cp en/* %{buildroot}%{_gamesdatadir}/fortunes/

# Czech fortunes
mkdir -p cs
mkdir -p doc/cs

tar xjf %{SOURCE18} && mv fortune-cs-1.2.4/{README,LICENSE,HISTORIE} doc/cs \
	&& rm fortune-cs-1.2.4/{fortune-cs.lsm,install.sh} \
	&& mv fortune-cs-1.2.4/* cs/
cd cs
for x in *;do recode l2..u8 $x;ln -s $x $x.u8; done
cd ..

chmod -R a+rX cs
cp -var cs %{buildroot}%{_gamesdatadir}/fortunes/

# Spanish fortunes
mkdir -p es
mkdir -p doc/es
bzcat %{SOURCE10} |recode l1..u8 > es/azafra
ln -s azafra es/azafra.u8
bzcat %{SOURCE11} |recode l1..u8 > es/deprimente
ln -s deprimente es/deprimente.u8

chmod -R a+rX es
cp -var es %{buildroot}%{_gamesdatadir}/fortunes/

# French fortunes
mkdir -p fr
mkdir -p doc/fr
tar xjf %{SOURCE4} -C fr/ && mkdir -p doc/fr/fortunes-fr && \
	mv fr/README fr/COPYING fr/INSTALL fr/*.lsm doc/fr/fortunes-fr
bzcat %{SOURCE1} | grep -v '^$' | sed 's/^-- /%/' > fr/glp \
	&& cp %{SOURCE2} doc/fr
bzcat %{SOURCE3} | grep -v '^$' | sed 's/^-- /%/' > fr/cabale
bzcat %{SOURCE7} > fr/linuxfr && cp %{SOURCE8} doc/fr
tar xjf %{SOURCE9} && mv ffr/data/* fr/ && rmdir ffr/data && \
	 mkdir -p doc/fr/ffr && mv ffr/* doc/fr/ffr/

recode l1..u8 fr/cabale
ln -s cabale fr/cabale.u8
recode l1..u8 fr/france
ln -s france fr/france.u8
recode l1..u8 fr/linuxfr
ln -s linuxfr fr/linuxfr.u8
recode l1..u8 fr/glp
ln -s glp fr/glp.u8
chmod -R a+rX fr
cp -var fr %{buildroot}%{_gamesdatadir}/fortunes/

# Gaeilge (Irish Gaelic) fortunes
mkdir -p ga
mkdir -p doc/ga
bzcat %{SOURCE15} > ga/proverbs && cat > doc/ga/proverbs << EOF
Gaeilge proverbs from Damian Lyons and GAELIC-L (mailing list)
EOF
recode l1..u8 ga/proverbs
ln -s proverbs ga/proverbs.u8
chmod -R a+rX ga
cp -var ga %{buildroot}%{_gamesdatadir}/fortunes/


# Hungarian fortunes
mkdir -p hu
mkdir -p doc/hu

tar xjvf %{SOURCE19} && mv fortunes-hu/{README,OLVASSEL} doc/hu \
	&& mv fortunes-hu/hu/magyar hu/
recode l1..u8 hu/magyar
ln -s magyar hu/magyar.u8

chmod -R a+rX hu
cp -var hu %{buildroot}%{_gamesdatadir}/fortunes/

# Indonesian fortunes
mkdir -p id
mkdir -p doc/id
tar xjf %{SOURCE17} && mv fortune-msg-id/README doc/id && \
	 mv fortune-msg-id/* id/

chmod -R a+rX id
cp -var id %{buildroot}%{_gamesdatadir}/fortunes/

# Italian fortunes
mkdir -p it
mkdir -p doc/it
tar xjf %{SOURCE5}
mv fortune.it-1.51/COPYING fortune.it-1.51/README doc/it
mv fortune.it-1.51/INSTALLAZIONE fortune.it-1.51/*.lsm doc/it
mv fortune.it-1.51/* it/

chmod -R a+rX it
cp -var it %{buildroot}%{_gamesdatadir}/fortunes/

# Japanese fortunes
mkdir -p ja
mkdir -p doc/ja
bzcat %{SOURCE13} > ja/kotowaza ; bzcat %{SOURCE14} > doc/ja/kotowaza.README

chmod -R a+rX ja
cp -var ja %{buildroot}%{_gamesdatadir}/fortunes/

# Walloon fortunes
mkdir -p wa
mkdir -p doc/wa
bzcat %{SOURCE12} > wa/spots
bzcat %{SOURCE16} > wa/walon
recode l1..u8 wa/spots
ln -s spots wa/spots.u8
recode l1..u8 wa/walon
ln -s walon wa/walon.u8

chmod -R a+rX wa
cp -var wa %{buildroot}%{_gamesdatadir}/fortunes/

rm -rf %{buildroot}%{_gamesdatadir}/fortunes/off

(
    cd %{buildroot}%{_gamesdatadir}/fortunes/
    find * -name "*.dat" | xargs rm
    for i in `find * -type f` ; do
        %{buildroot}%{_sbindir}/strfile $i
    done
)

ln -s strfile.1%{_extension} %{buildroot}%{_mandir}/man1/unstr.1%{_extension}
#wrong paths in the man page:
perl -pi -e 's!%{buildroot}!!' %{buildroot}%{_mandir}/man6/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12761 |21mr|four-in-a-row-3.38.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Four-in-a-row game
Name:		four-in-a-row
Version:	3.38.1
Release:	10
License:	GPLv2+ and GFDL
Group:		Games/Boards
Url:		https://download.gnome.org/sources/four-in-a-row
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(zlib)

%description
The objective of Four-in-a-row is to build a line of four of your marbles
while trying to stop your opponent (human or computer) building a line
of his or her own.

%files -f %{name}.lang
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/org.gnome.Four-in-a-row.desktop
%{_datadir}/dbus-1/services/org.gnome.Four-in-a-row.service
%{_datadir}/glib-2.0/schemas/org.gnome.Four-in-a-row.gschema.xml
%{_datadir}/metainfo/org.gnome.Four-in-a-row.appdata.xml
%{_iconsdir}/*/*/*/*
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12762 |21mr|fpc-3.2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# how to compile on a different architecture
# Building on x86_64 under aarch64 
# install cross-aarch64-rosa-linux-android-binutils (or another)
# create folder for installation files mkdir -vp fpc-aarch64-boot
# unpack the source directory tar xf fpc-version.source.tar.gz
# cd fpc-version
# enter the build command
# make all install CPU_TARGET=aarch64 OS_TARGET=linux BINUTILSPREFIX=aarch64-linux-android- INSTALL_PREFIX=PATH/fpc-aarch64-boot
# After assembly and installation in the directory, we will pack the archive
# tar cfJ fpc-aarch64-boot.tar.xz fpc-aarch64-boot
# Our bootstrap is ready.

%bcond_with bootstrap

%define fpc_target %{_arch}

%if "%{fpc_target}" == "ppc"
%define fpc_target powerpc
%endif
%define fpc_short_target %{_target_cpu}
%ifarch x86_64
%if "%{fpc_short_target}" == "x86_64"
%define fpc_short_target x64
%endif
%endif
%ifarch i586
%if "%{fpc_short_target}" == "i586"
%define fpc_short_target 386
%endif
%endif
%ifarch i686
%if "%{fpc_short_target}" == "i686"
%define fpc_short_target 386
%endif
%endif
%ifarch aarch64
%if "%{fpc_short_target}" == "aarch64"
%define fpc_short_target a64
%endif
%endif

%define debug_package %{nil}

%define fpcversion %{version}
%define fpcdir %{_libdir}/%{name}/%{fpcversion}
%define docdir %{_datadir}/doc/fpc-%{fpcversion}

%define builddocdir %{buildroot}%{docdir}
%define buildmandir %{buildroot}%{_datadir}
%define buildbindir %{buildroot}%{_bindir}
%define buildlibdir %{buildroot}%{_libdir}
%define buildexampledir %{builddocdir}/examples

Summary:	Free Pascal Compiler
Name:		fpc
Version:	3.2.2
Release:	3
License:	GPLv2+ and LGPLv2+ with exceptions
Group:		Development/Pascal
Url:		http://www.freepascal.org/
Source0:	https://sourceforge.net/projects/freepascal/files/Source/%{version}/%{name}-%{version}.source.tar.gz
Source100:	%{name}.rpmlintrc
Source102:	fpc-aarch64-boot.tar.xz
Patch0:		fpc-3.2.2--glibc-2.34.patch
%if !%{with bootstrap}
BuildRequires:	%{name}
%endif
BuildRequires:	texlive-latex
BuildRequires:	texlive-epsf
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(ncurses)
Requires:	%{name}-base = %{EVRD}
Requires:	%{name}-units = %{EVRD}
ExclusiveArch:	%{ix86} x86_64 aarch64

%description
The Free Pascal Compiler is a Turbo Pascal 7.0 and Delphi compatible 32bit
Pascal Compiler. It comes with fully TP 7.0 compatible run-time library.
Some extensions are added to the language, like function overloading. Shared
libraries can be linked. Basic Delphi support is already implemented (classes,
exceptions,ansistrings,RTTI). This package contains commandline compiler and
utils. Provided units are the runtime library (RTL), free component library
(FCL), gtk, ncurses, zlib, mysql, postgres, ibase bindings.

%files

#----------------------------------------------------------------------------

%package src
Summary:	Source code of Free Pascal Compiler
Group:		Development/Pascal
BuildArch:	noarch

%description src
The source code of Freepascal for documentation and code generation
purposes (needed for e.g. lazarus).

%files src
%doc compiler/COPYING.txt
%{_datadir}/fpcsrc

#----------------------------------------------------------------------------

%package base
Summary:	Ide and rtl units with some base unit
Group:		Development/Pascal
Provides:	%{_bindir}/instantfpc
Requires:	gcc
Requires:	coreutils
# samplecfg also looks for gcc as an executable
# TODO: get rid of %%post, as Fedora
Requires(post):	/bin/sh
Requires(post):	coreutils
Requires(post):	gcc

%description base
This package consists FPC IDE and only RTL units for using with classical 
CLI Pascal programm. It also includes:
- X11 (Xlib, Xutil)
- NCurses
- ZLib.

%files base
%license rtl/COPYING.FPC
%doc %{_defaultdocdir}/%{name}-%{version}
%doc rtl/*.txt
%{_bindir}/*
%{_prefix}/lib/%{name}/lexyacc
%{_libdir}/libpas2jslib.so
%{_libdir}/%{name}/%{version}/fpmkinst
%{_libdir}/%{name}/%{version}/ide
%{_libdir}/%{name}/%{version}/msg
%{_libdir}/%{name}/%{version}/samplecfg
%ifarch %{ix86}
%{_libdir}/%{name}/%{version}/units/i386-linux/rtl
%{_libdir}/%{name}/%{version}/units/i386-linux/x11
%{_libdir}/%{name}/%{version}/units/i386-linux/ncurses
%{_libdir}/%{name}/%{version}/units/i386-linux/zlib
%{_libdir}/%{name}/%{version}/ppc386
%endif
%ifarch x86_64
%{_libdir}/%{name}/%{version}/units/x86_64-linux/rtl
%{_libdir}/%{name}/%{version}/units/x86_64-linux/x11
%{_libdir}/%{name}/%{version}/units/x86_64-linux/ncurses
%{_libdir}/%{name}/%{version}/units/x86_64-linux/zlib
%{_libdir}/%{name}/%{version}/ppcx64
%endif
%ifarch aarch64
%{_libdir}/%{name}/%{version}/units/aarch64-linux/rtl
%{_libdir}/%{name}/%{version}/units/aarch64-linux/x11
%{_libdir}/%{name}/%{version}/units/aarch64-linux/ncurses
%{_libdir}/%{name}/%{version}/units/aarch64-linux/zlib
%{_libdir}/%{name}/%{version}/ppca64
%endif

%post base
# Create config
%{fpcdir}/samplecfg %{fpcdir}

#----------------------------------------------------------------------------

%package units
Summary:	Units not included in fpc-base
Group:		Development/Pascal
# Dependency loop 
#Requires:	fpc-base = %%{EVRD}

%description units
This package consists units not include in fpc-base packets. Use it if you
need all units instead RTL and X11,NCurses and ZLib only.

%files units
%{_libdir}/%{name}/%{version}/units
# Those are in fpc-base
%ifarch %{ix86}
%exclude %{_libdir}/%{name}/%{version}/units/i386-linux/rtl
%exclude %{_libdir}/%{name}/%{version}/units/i386-linux/x11
%exclude %{_libdir}/%{name}/%{version}/units/i386-linux/ncurses
%exclude %{_libdir}/%{name}/%{version}/units/i386-linux/zlib
%endif
%ifarch x86_64
%exclude %{_libdir}/%{name}/%{version}/units/x86_64-linux/rtl
%exclude %{_libdir}/%{name}/%{version}/units/x86_64-linux/x11
%exclude %{_libdir}/%{name}/%{version}/units/x86_64-linux/ncurses
%exclude %{_libdir}/%{name}/%{version}/units/x86_64-linux/zlib
%endif
%ifarch aarch64
%exclude %{_libdir}/%{name}/%{version}/units/aarch64-linux/rtl
%exclude %{_libdir}/%{name}/%{version}/units/aarch64-linux/x11
%exclude %{_libdir}/%{name}/%{version}/units/aarch64-linux/ncurses
%exclude %{_libdir}/%{name}/%{version}/units/aarch64-linux/zlib
%endif

#----------------------------------------------------------------------------

%prep
%setup -q

%if %{mdvver} > 202110
# Do not use this patch for platform 2021.1
%patch0 -p1
%endif

%build
# Prepare sources to be installed
install -dm 755 fpc_src
cp -a rtl packages fpc_src
rm -rf fpc_src/packages/extra/amunits
rm -rf fpc_src/packages/extra/winunits

%if %{with bootstrap}
tar xf %{S:102} -C ..
%endif

EXTRA_FLAGS=
NEWPP=`pwd`/compiler/ppc%{fpc_short_target}
NEWFPDOC=`pwd`/utils/fpdoc/fpdoc

%if !%{with bootstrap}
STARTPP=ppc%{fpc_short_target}
%else
%ifarch aarch64
STARTPP=%{_builddir}/fpc-aarch64-boot/bin/ppc%{fpc_short_target}
%endif
%endif

make all ${EXTRA_FLAGS} FPC=${STARTPP} OVERRIDEVERSIONCHECK=0


%install
EXTRA_FLAGS=
NEWPP=`pwd`/compiler/ppc%{fpc_short_target}
NEWFCPMAKE=`pwd`/utils/fpcm/bin/%{fpc_target}-linux/fpcmake

INSTALLOPTS="FPC=${NEWPP} \
	INSTALL_PREFIX=%{buildroot}/%{_prefix} \
	INSTALL_LIBDIR=%{buildlibdir} \
	INSTALL_BASEDIR=%{buildlibdir}/%{name}/%{version} \
	INSTALL_DOCDIR=%{builddocdir} \
	INSTALL_BINDIR=%{buildbindir}"

make install ${INSTALLOPTS} FPCMAKE=${NEWFCPMAKE} ${EXTRA_FLAGS}

# Create the IDE configuration files
%{buildroot}%{_bindir}/fpcmkcfg -p -1 -d "basepath=%{_libdir}/%{name}/\$fpcversion" -o %{buildroot}%{_libdir}/%{name}/%{version}/ide/text/fp.cfg
%{buildroot}%{_bindir}/fpcmkcfg -p -2 -o %{buildroot}%{_libdir}/%{name}/%{version}/ide/text/fp.ini

# Create link
	ln -sf %{fpcdir}/ppc%{fpc_short_target} %{buildroot}%{_bindir}/ppc%{fpc_short_target}
#make fcl_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%%{builddocdir}
#make api_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%%{builddocdir}
#make packages_exampleinstall ${INSTALLOPTS} DOCINSTALLDIR=%%{builddocdir}

# Install source files
install -dm 755 %{buildroot}%{_datadir}/fpcsrc
cp -a fpc_src/* %{buildroot}%{_datadir}/fpcsrc/
rm -f %{buildroot}%{_datadir}/fpcsrc/rtl/palmos/m68k/libcrt.a

# Fix permissions
find %{buildroot}%{_datadir}/fpcsrc/ -type d -exec chmod 755 {} \;
#find %%{buildroot}%%{_datadir}/fpcsrc/ -type f -exec chmod 644 {} \;
find %{buildroot}%{_datadir}/fpcsrc/ -name "*.pp" | xargs chmod -x
find %{buildroot}%{_datadir}/fpcsrc/ -name "mkdb" -o -name "rmdb" | xargs chmod +x
find %{buildroot}%{_bindir} -name "*.rsj" -o -name "*.tdf" -o -name "*.pt" | xargs chmod -x

%check

pushd %{buildroot}%{_bindir}
./ppc%{fpc_short_target} -iSP
./ppc%{fpc_short_target} -iSO
./ppc%{fpc_short_target} -iD
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12763 |21mr|fpc-units-ptcpas-838-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define self ptcpas

%define fpc_ver 3.2.2

%ifarch %{ix86}
%define fpcarch i386
%else
%define fpcarch %{_arch}
%endif

%define unitdir %{_libdir}/fpc/%{fpc_ver}/units/%{fpcarch}-linux/

Summary:	A free, portable framebuffer library, written in Free Pascal
Name:		fpc-units-%{self}
# svn info -r HEAD https://ptcpas.svn.sourceforge.net/svnroot/ptcpas/trunk | grep Revision
Version:	838
Release:	1
License:	Modified LGPL
Group:		Development/Pascal
Url:		http://ptcpas.sourceforge.net/
# svn co https://svn.code.sf.net/p/ptcpas/code/trunk ptcpas-802
Source:		%{self}-%{version}.tar.bz2
BuildRequires:	fpc = %{fpc_ver}
BuildRequires:	fpc-src
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	fpc = %{fpc_ver}
Requires:	pkgconfig(x11)
Requires:	pkgconfig(xext)
Requires:	pkgconfig(xfixes)
Requires:	pkgconfig(xi)
Requires:	pkgconfig(xrandr)
Requires:	pkgconfig(xxf86dga)
Requires:	pkgconfig(xxf86vm)
ExclusiveArch:	%{ix86} x86_64

%description
PTCPas is a free, portable framebuffer library, written in Free Pascal.
It allows low-level high-speed graphics access on multiple platforms and
is distributed under the terms of a modified (to allow static linking)
GNU LGPL license. Currently supports DirectX, X11, VBE1.2+ and
fakemodes. It has been tested on Windows (all versions since Windows 95;
on i386 and x86_64), Linux (i386, x86_64 and ppc), FreeBSD and DOS.

%files
%doc docs
%{unitdir}/%{self}
%config %{_sysconfdir}/%{self}.conf

#----------------------------------------------------------------------------

%package demos
Summary:	Demo applications for %{name}
Group:		Development/Pascal
Requires:	%{name}
Requires:	fpc

%description demos
Demo applications for %{name}.

%files demos
%{_libdir}/%{name}-demos

#----------------------------------------------------------------------------

%prep
%setup -qn %{self}-%{version}

find . -depth -name .svn -exec rm -rf {} \;

for N in core/*; do sed -i 's@/usr/share/ptcpas/ptcpas.conf@%{_sysconfdir}/%{self}.conf@' $N; done

%build
export FPCDIR=%{_datadir}/fpcsrc

./configure

make
make demos examples

%install
mkdir -p %{buildroot}%{unitdir}/%{self}
install units/%{fpcarch}-linux/* %{buildroot}%{unitdir}/%{self}
mkdir -p %{buildroot}%{_libdir}/%{name}-demos
cp -a demos examples %{buildroot}%{_libdir}/%{name}-demos
rm -rf %{buildroot}%{_libdir}/%{name}-demos/*/units
install -D ptcpas.cfg %{buildroot}%{_sysconfdir}/%{self}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12764 |21mr|fping-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Quickly ping N number of hosts to determine their reachability
Name:		fping
Version:	5.0
Release:	1
License:	BSD
Group:		Networking/Other
URL:		http://fping.org/
Source0:	http://fping.org/dist/%{name}-%{version}.tar.gz

%description
fping is a ping(1) like program which uses the Internet Control Message
Protocol (ICMP) echo request to determine if a host is up. fping is different
from ping in that you can specify any  number of hosts on the command line, or
specify a file containing the lists of hosts to ping. Instead of trying one
host until it timeouts or replies, fping will send out a ping packet and move
on to the next host in a round-robin fashion. If a host replies, it is noted
and removed from the list of hosts to check. If a host does not respond within
a certain time limit and/or retry limit it will be considered unreachable.

%files
%doc README.md INSTALL CHANGELOG.md
%attr(4755,root,root) %{_sbindir}/fping
%{_mandir}/man8/fping.8*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12765 |21mr|fprintd-1.94.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	D-Bus service for Fingerprint reader access
Name:		fprintd
Version:	1.94.1
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.freedesktop.org/wiki/Software/fprint/fprintd
Source0:	https://gitlab.freedesktop.org/libfprint/fprintd/-/archive/v%{version}/%{name}-v%{version}.tar.gz
# Drop when update
Patch0:		fprintd-v1.94.1-upstream.patch
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	python3-libpamtest
BuildRequires:	meson
BuildRequires:	python3dist(dbus-python)
BuildRequires:	python3dist(pycairo)
BuildRequires:	python3dist(python-dbusmock)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(libfprint-2)
BuildRequires:	pkgconfig(pam_wrapper)
BuildRequires:	pkgconfig(polkit-agent-1)

%description
D-Bus service to access fingerprint readers.

%files -f %{name}.lang
%doc README COPYING AUTHORS TODO
%{_bindir}/%{name}-*
%{_datadir}/dbus-1/system.d/net.reactivated.Fprint.conf
%{_datadir}/dbus-1/system-services/net.reactivated.Fprint.service
%{_datadir}/polkit-1/actions/net.reactivated.fprint.device.policy
%{_libexecdir}/%{name}
%dir %{_localstatedir}/lib/fprint
%{_mandir}/man1/%{name}.1.*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_unitdir}/%{name}.service

#--------------------------------------------------------------------

%package pam
Summary:	PAM module for fingerprint authentication
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}
Provides:	pam_fprint = %{EVRD}

%description pam
PAM module that uses the fprintd D-Bus service for fingerprint
authentication.

%files pam
%doc pam/README
/%{_lib}/security/pam_%{name}.so
%{_mandir}/man8/pam_%{name}.8.*

#--------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Development documentation for fprintd, the D-Bus service for
fingerprint readers access.

%files devel
%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Device.xml
%{_datadir}/dbus-1/interfaces/net.reactivated.Fprint.Manager.xml
%{_datadir}/gtk-doc/html/%{name}

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

mkdir -p %{buildroot}/%{_localstatedir}/lib/fprint

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12766 |21mr|frameworkintegration-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 workspace and cross-framework integration module
Name:		frameworkintegration
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	appstream-qt5-devel
BuildRequires:	packagekit-qt5-devel
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5newstuff-devel = %{version}
BuildRequires:	kf5notifications-devel = %{version}
BuildRequires:	kf5package-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
Requires:	kinit

%description
KDE Frameworks 5 workspace and cross-framework integration module.

Framework Integration is a set of plugins responsible for better integration
of Qt applications when running on a KDE Plasma workspace.

Applications do not need to link to this directly.

%files
%dir %{_kde5_datadir}/kf5/infopage/
%{_kde5_datadir}/kf5/infopage/*
%{_kde5_libexecdir}/kf5/kpackagehandlers/knshandler
%{_kde5_libexecdir}/kf5/kpackagehandlers/appstreamhandler
%{_kde5_notificationsdir}/plasma_workspace.notifyrc
%{_kde5_plugindir}/FrameworkIntegrationPlugin.so

#----------------------------------------------------------------------------

%define kf5style_major 5
%define libkf5style %mklibname kf5style %{kf5style_major}

%package -n %{libkf5style}
Summary:	KDE Frameworks 5 cross-framework integration shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5style}
KDE Frameworks 5 cross-framework integration shared library.

%files -n %{libkf5style}
%{_kde5_libdir}/libKF5Style.so.%{kf5style_major}*

#----------------------------------------------------------------------------

%define devkf5frameworkintegration %mklibname kf5frameworkintegration -d

%package -n %{devkf5frameworkintegration}
Summary:	Development files for KDE Frameworks 5 cross-framework integration module
Group:		Development/KDE and Qt
Requires:	%{libkf5style} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5frameworkintegration-devel = %{version}
Provides:	kf5style-devel = %{version}

%description -n %{devkf5frameworkintegration}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5frameworkintegration}
%{_kde5_includedir}/KF5/KStyle
%{_kde5_includedir}/KF5/FrameworkIntegration/frameworkintegration_version.h
%{_kde5_libdir}/cmake/KF5FrameworkIntegration
%{_kde5_libdir}/libKF5Style.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12767 |21mr|freecell-solver-6.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with tests

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	The Freecell Solver Executable
Name:		freecell-solver
Version:	6.4.0
Release:	1
License:	MIT
Group:		Games/Cards
Url:		http://fc-solve.shlomifish.org/
Source0:	http://fc-solve.shlomifish.org/downloads/fc-solve/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	gmp-devel
BuildRequires:	gperf
BuildRequires:	tap-devel
BuildRequires:	perl(Moo)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Template)
BuildRequires:	python3egg(random2)
BuildRequires:	python3egg(pysol-cards)
BuildRequires:	pkgconfig(librinutils)
%if %{with tests}
BuildRequires:	ack
BuildRequires:	valgrind
BuildRequires:	perl-devel
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Cwd) >= 3.470.0
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Data::Dumper) >= 2.154.0
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Env::Path)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Path) >= 2.90.0
BuildRequires:	perl(Games::Solitaire::Verify) >= 0.140.0
BuildRequires:	perl(Inline)
BuildRequires:	perl(Inline::C)
BuildRequires:	perl(IPC::Open2)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(MooX)
BuildRequires:	perl(MooX::late)
BuildRequires:	perl(Storable)
BuildRequires:	perl(strict)
BuildRequires:	perl(String::ShellQuote)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Trap)
BuildRequires:	perl(warnings)
BuildRequires:	perl(YAML::XS)
BuildRequires:	perl(Type::Utils)
%endif
Requires:	%{libname} = %{EVRD}

%description
The Freecell Solver package contains the fc-solve executable which is
a command-line program that can be used to solve games of Freecell and
similar card solitaire variants.

This package also contains command line executables to generate the initial
boards of several popular Freecell implementations.

%files
%{_bindir}/*
%{_datadir}/freecell-solver
%{_mandir}/*/*
%{_docdir}/*

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	The Freecell Solver dynamic libraries for solving Freecell games
Group:		System/Libraries

%description -n %{libname}
Contains the Freecell Solver libraries that are used by some programs to solve
games of Freecell and similar variants of card solitaire.

This package is mandatory for the Freecell Solver executable too.

%files -n %{libname}
%doc AUTHORS.html COPYING.html HACKING.html NEWS.html README.html TODO.html USAGE.html
%{_libdir}/libfreecell-solver.so.%{major}.*
%{_libdir}/libfreecell-solver.so.%{major}

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	The Freecell Solver development tools for solving Freecell games
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Freecell Solver is a library for automatically solving boards of Freecell and
similar variants of card Solitaire. This package contains the header files and
static libraries necessary for developing programs using Freecell Solver.

You should install it if you are a game developer who would like to use
Freecell Solver from within your programs.

%files -n %{devname}
%doc AUTHORS.html COPYING.html HACKING.html NEWS.html README.html TODO.html USAGE.html
%{_includedir}/freecell-solver/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libfreecell-solver.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	The Freecell Solver static libraries
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
Freecell Solver is a library for automatically solving boards of Freecell and
similar variants of card Solitaire. This package contains the static libraries.

It is not generally required.

%files -n %{sdevname}
%doc AUTHORS.html COPYING.html HACKING.html NEWS.html README.html TODO.html USAGE.html
%{_libdir}/libfreecell-solver.a

#----------------------------------------------------------------------------

%prep
%setup -q

cd board_gen
mkdir doc
cd doc
mkdir board_gen
cd board_gen
cp ../../README .

%build
%cmake \
	-DLOCALE_INSTALL_DIR=%{_datadir}/locale \
	-DLIB_INSTALL_DIR=%{_libdir} \
%if %{with tests}
	-DFCS_WITH_TEST_SUITE:BOOL=ON \
%else
	-DFCS_WITH_TEST_SUITE:BOOL=OFF \
%endif
	-DMAX_NUM_FREECELLS=8 \
	-DMAX_NUM_STACKS=20 \
	-DMAX_NUM_INITIAL_CARDS_IN_A_STACK=60

%make

%install
%makeinstall_std -C build
# M$ stuff
rm -fr %{buildroot}%{_bindir}/make-microsoft-freecell-board

#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/fc_solve_find_index_s2ints.py
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/make_pysol_freecell_board.py
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/find-freecell-deal-index.py
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/transpose-freecell-board.py


%if %{with tests}
%check
cd build
%make test
# exposing the test log
cat Testing/Temporary/LastTest.log
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12768 |21mr|freeglut-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A freely licensed alternative to the GLUT library
Name:		freeglut
Version:	3.4.0
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://freeglut.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# For the manpages
Source1:	http://downloads.sourceforge.net/openglut/openglut-0.6.3-doc.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xxf86vm)

# The virtual Provides below is present so that this freeglut package is a
# drop in binary replacement for "glut" which will satisfy rpm dependancies
# properly.  The Obsoletes tag is required in order for any pre-existing
# "glut" package to be removed and replaced with freeglut when upgrading to
# freeglut.  Note: This package will NOT co-exist with the glut package.

%description
freeglut is a completely open source alternative to the OpenGL Utility Toolkit
(GLUT) library with an OSI approved free software license. GLUT was originally
written by Mark Kilgard to support the sample programs in the second edition
OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical
applications because it is simple, universally available and highly portable.

freeglut allows the user to create and manage windows containing OpenGL
contexts on a wide range of platforms and also read the mouse, keyboard and
joystick functions.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A freely licensed alternative to the GLUT library
Group:		System/Libraries
Provides:	glut = 3.7

%description -n %{libname}
freeglut is a completely open source alternative to the OpenGL Utility Toolkit
(GLUT) library with an OSI approved free software license. GLUT was originally
written by Mark Kilgard to support the sample programs in the second edition
OpenGL 'RedBook'. Since then, GLUT has been used in a wide variety of practical
applications because it is simple, universally available and highly portable.

freeglut allows the user to create and manage windows containing OpenGL
contexts on a wide range of platforms and also read the mouse, keyboard and
joystick functions.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING
# don't include contents of doc/ directory as it is mostly obsolete
%{_libdir}/libglut.so.%{major}
%{_libdir}/libglut.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Freeglut developmental libraries and header files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(glu)
Provides:	glut-devel = 3.7
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
Developmental libraries and header files required for developing or compiling
software which links to the freeglut library, which is an open source
alternative to the popular GLUT library, with an OSI approved free software
license.

%files -n %{devname}
%{_includedir}/GL/*.h
%{_libdir}/libglut.so
%{_libdir}/pkgconfig/freeglut.pc
%{_libdir}/pkgconfig/glut.pc
%{_libdir}/cmake/FreeGLUT/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -a 1

%build
%cmake \
	-DFREEGLUT_BUILD_STATIC_LIBS:BOOL=OFF
%make

%install
%make_install -C build

mkdir -p %{buildroot}/%{_mandir}/man3
install -p -m 644 doc/man/*.3 %{buildroot}%{_mandir}/man3

# We take the soname as the version because the package
# version doesn't really match -- the last release of
# the original glut was 3.7, and we need to match/exceed
# its version number.
VER=`ls %{buildroot}%{_libdir}/libglut.so.?.??.? |sed -e 's,.*\.so\.,,'`
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat >%{buildroot}%{_libdir}/pkgconfig/glut.pc <<EOF
prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}/GL

Name: glut
Description: GL Utility Toolkit
Requires: gl
Version:	3.4.0
Libs: -lglut
Libs.private: -lX11 -lXxf86vm -lXrandr -lGL -lm
Cflags: -I\${includedir}
EOF

cp %{buildroot}%{_libdir}/pkgconfig/glut.pc %{buildroot}%{_libdir}/pkgconfig/freeglut.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12769 |21mr|freeimage-3.190-1.r1903
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname FreeImage
%define oversion 3.19.0
%define svn r1903
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Image library
Name:		freeimage
Version:	3.190
Release:	1.%{svn}
License:	GPLv2+
Group:		System/Libraries
Url:		http://freeimage.sourceforge.net/
Source0:	https://sourceforge.net/code-snapshots/svn/f/fr/freeimage/svn/freeimage-svn-%{svn}-FreeImage.zip
# Unbundle bundled libraries
Patch0:		FreeImage-unbundle.patch
# Fix incorrect path in doxyfile
Patch1:		FreeImage_doxygen.patch
# Fixing permission issue (cannot change ownership of ...) MGA patch.
Patch10:	FreeImage-3.17.0-mga-makeinstall.patch
Patch11:	FreeImage-openexr3.patch
Patch12:	FreeImage-libraw.patch
BuildRequires:	jpeg-devel
BuildRequires:	jxrlib-devel
BuildRequires:	pkgconfig(libmng)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebpmux)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(Imath)

%description
FreeImage is an Open Source library project for developers who would
like to support popular graphics image formats like PNG, BMP, JPEG,
TIFF and others as needed by today's multimedia applications.
FreeImage is easy to use, fast, multithreading safe, compatible with
all 32-bit versions of Windows, and cross-platform (works both with
Linux and Mac OS X).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library to Image library
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}-%{oversion}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs using %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries needed for
developing programs using the %{name} library.

%files -n %{devname}
%doc trunk/Whatsnew.txt trunk/license-*.txt trunk/Wrapper/FreeImagePlus/WhatsNew_FIP.txt trunk/README.linux
%{_includedir}/%{oname}*.h
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-svn-%{svn}-FreeImage

cd trunk
%apply_patches

# Remove included libs to make sure these don't get used during compile
# Sadly LibTIFF4 can't be removed as TIFF-support relies on private defintions...
rm -rf Source/Lib{JPEG,MNG,OpenJPEG,PNG,RawLite,TIFF} Source/OpenEXR Source/ZLib

sed -i 's/\r//g' Whatsnew.txt license-*.txt gensrclist.sh \
  Wrapper/FreeImagePlus/WhatsNew_FIP.txt

sed -i -e 's/ -o root -g root//' Makefile.gnu
sed -i -e 's/\bldconfig//' Makefile.gnu

# clear files which cannot be built due to dependencies on private headers
# (see also unbundle patch)
> Source/FreeImage/PluginG3.cpp
> Source/FreeImageToolkit/JPEGTransform.cpp

%build
cd trunk
sh ./gensrclist.sh
%setup_compile_flags CFLAGS="%{optflags} -fPIC -std=c++11"
%make LIBRARIES="-lstdc++ $(`pkg-config --libs OpenEXR`) -ljpeg -ljxrglue -lm -lopenjp2 -lpng -lraw -ltiff -lwebp -lwebpmux -lz"

%install
cd trunk
mkdir -p %{buildroot}%{_includedir} %{buildroot}%{_libdir}

%make install \
  INCDIR=%{buildroot}%{_includedir} \
  INSTALLDIR=%{buildroot}%{_libdir}

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12770 |21mr|freeipa-healthcheck-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global project freeipa
%global projectname FreeIPA
%global shortname healthcheck
%global longname ipa%{shortname}

%global debug_package %{nil}
%global python3dir %{_builddir}/python3-%{name}-%{EVRD}

# TODO: change it after building FreeIPA
%bcond_without bootstrap
%bcond_with check

Name:           freeipa-healthcheck
Version:        0.9
Release:        1
Summary:        Health check tool for FreeIPA
License:        GPLv3
Group:          System/Base
URL:            https://github.com/freeipa/freeipa-healthcheck
Source0:        https://github.com/freeipa/freeipa-healthcheck/archive/%{version}.tar.gz?/%{project}-%{shortname}-%{version}.tar.gz
Source1:        %{longname}.conf
%if %{without bootstrap}
Requires:       %{project}-server
Requires:       python3-ipalib
Requires:       python3-ipaserver
%endif
# cronie-anacron provides anacron
Requires:       anacron
Requires:       logrotate
Requires:       %{name}-core = %{EVRD}
%{systemd_requires}

BuildRequires:  python3-devel
BuildRequires:  python3-pip
BuildRequires:  python3-setuptools
BuildRequires:  pkgconfig(systemd)

# packages for make check
BuildRequires:  python3-pytest-runner
%if %{with check}
BuildRequires:  python3-ipalib
BuildRequires:  python3-ipaserver
BuildRequires:  python3-lib389
BuildRequires:  python3-libsss_nss_idmap
%endif

BuildArch:      noarch
# FreeIPA server is not supported on i686
ExcludeArch: %{ix86}

%description
The FreeIPA health check tool provides a set of checks to
proactively detect defects in a FreeIPA cluster.

%files -f healthcheck.list
%license COPYING
%doc README.md
%{_bindir}/ipa-clustercheck
%{_bindir}/ipa-%{shortname}
%dir %{_sysconfdir}/%{longname}
%dir /var/log/ipa/%{shortname}
%config(noreplace) %{_sysconfdir}/%{longname}/%{longname}.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{longname}
%{python3_sitelib}/%{longname}-%{version}-*/
%{python3_sitelib}/%{longname}-%{version}-*-nspkg.pth
%{python3_sitelib}/ipaclustercheck/ipa
%{_unitdir}/*
%{_libexecdir}/*
%{_mandir}/man5/*
%{_mandir}/man8/*

%post
%systemd_post ipa-%{shortname}.service

%preun
%systemd_preun ipa-%{shortname}.service

%postun
%systemd_postun_with_restart ipa-%{shortname}.service

#----------------------------------------------------------------

%package -n %{name}-core
Summary: Core plugin system for healthcheck
Group:   System/Base

%description -n %{name}-core
Core files

%files -n %{name}-core
%license COPYING
%doc README.md
%{python3_sitelib}/%{longname}/core/
%{python3_sitelib}/ipaclustercheck/core/

#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{project}-%{shortname}-%{version}

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_sysconfdir}/%{longname}
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{longname}

mkdir -p %{buildroot}/%{_unitdir}
install -p -m644 %{_builddir}/%{project}-%{shortname}-%{version}/systemd/ipa-%{shortname}.service %{buildroot}%{_unitdir}
install -p -m644 %{_builddir}/%{project}-%{shortname}-%{version}/systemd/ipa-%{shortname}.timer %{buildroot}%{_unitdir}

mkdir -p %{buildroot}/%{_libexecdir}/ipa
install -p -m755 %{_builddir}/%{project}-%{shortname}-%{version}/systemd/ipa-%{shortname}.sh %{buildroot}%{_libexecdir}/ipa/

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -p -m644 %{_builddir}/%{project}-%{shortname}-%{version}/logrotate/%{longname} %{buildroot}%{_sysconfdir}/logrotate.d

mkdir -p %{buildroot}/%{_localstatedir}/log/ipa/%{shortname}

mkdir -p %{buildroot}/%{_mandir}/man5
mkdir -p %{buildroot}/%{_mandir}/man8
install -p -m644 %{_builddir}/%{project}-%{shortname}-%{version}/man/man8/ipa-%{shortname}.8  %{buildroot}%{_mandir}/man8/
install -p -m644 %{_builddir}/%{project}-%{shortname}-%{version}/man/man5/%{longname}.conf.5  %{buildroot}%{_mandir}/man5/

%py_byte_compile %{__python3} %{buildroot}

(cd %{buildroot}/%{python3_sitelib}/ipahealthcheck && find . -type f  | \
    grep -v '^./core' | \
    grep -v 'opt-1' | \
    sed -e 's,\.py.*$,.*,g' | sort -u | \
    sed -e 's,\./,%%{python3_sitelib}/ipahealthcheck/,g' ) >healthcheck.list

%check
%if %{with check}
%{__python3} setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12771 |21mr|freeipmi-1.6.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define freeipmi_major		17
%define ipmiconsole_major	2
%define ipmidetect_major	0
%define ipmimonitoring_major	6
%define libfreeipmi		%mklibname freeipmi %{freeipmi_major}
%define libipmiconsole		%mklibname ipmiconsole %{ipmiconsole_major}
%define libipmidetect		%mklibname ipmidetect %{ipmidetect_major}
%define libipmimonitoring	%mklibname ipmimonitoring %{ipmimonitoring_major}
%define devname			%mklibname %{name} -d

Summary:	FreeIPMI
Name:		freeipmi
Version:	1.6.10
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.gnu.org/software/freeipmi/index.html
Source0:	http://ftp.gnu.org/gnu/freeipmi/%{name}-%{version}.tar.gz
Source1:	ipmidetectd.service
Source2:	bmc-watchdog.service
BuildRequires:	ghostscript
BuildRequires:	texinfo
BuildRequires:	texlive-scheme-small
BuildRequires:	transfig
BuildRequires:	pkgconfig(guile-3.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(systemd)

%description
The FreeIPMI project provides "Remote-Console" (out-of-band) and
"System Management Software" (in-band) based on Intelligent
Platform Management Interface (IPMI v1.5) specification.

%files
%doc AUTHORS ChangeLog* INSTALL NEWS README TODO
%license COPYING
%dir %{_localstatedir}/lib/%{name}
%{_infodir}/freeipmi-faq.info*
%{_localstatedir}/lib/%{name}/ipckey
%{_mandir}/man5/freeipmi_interpret_sel.conf.5.*
%{_mandir}/man5/freeipmi_interpret_sensor.conf.5.*
%{_mandir}/man5/libipmiconsole.conf.5.*
%{_sysconfdir}/freeipmi/*.conf

#----------------------------------------------------------------------------

%package -n %{libfreeipmi}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libfreeipmi}
This package contains one of the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{libfreeipmi}
%{_libdir}/libfreeipmi.so.%{freeipmi_major}*

#----------------------------------------------------------------------------

%package -n %{libipmiconsole}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libipmiconsole}
This package contains one of the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{libipmiconsole}
%{_libdir}/libipmiconsole.so.%{ipmiconsole_major}*

#----------------------------------------------------------------------------

%package -n %{libipmidetect}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libipmidetect}
This package contains one of the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{libipmidetect}
%{_libdir}/libipmidetect.so.%{ipmidetect_major}*

#----------------------------------------------------------------------------

%package -n %{libipmimonitoring}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libipmimonitoring}
This package contains one of the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{libipmimonitoring}
%{_libdir}/libipmimonitoring.so.%{ipmimonitoring_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libfreeipmi} = %{EVRD}
Requires:	%{libipmiconsole} = %{EVRD}
Requires:	%{libipmidetect} = %{EVRD}
Requires:	%{libipmimonitoring} = %{EVRD}
Conflicts:	%{libfreeipmi} < 1.0.8-2
Conflicts:	%{libipmiconsole} < 1.0.8-2
Conflicts:	%{libipmidetect} < 1.0.8-2
Conflicts:	%{libipmimonitoring} < 1.0.8-2
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package fish
Summary:	FreeIPMI Shell
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description fish
Fish provides Shell, Extension/Plug-in and scripting interface. As a
shell, User has access to both in-band and out-of-band access to the
host BMC through a rich set of IPMI commands.

%files fish
%{_mandir}/man5/bmc-config.conf.5*
%{_mandir}/man5/ipmi-config.conf.5*
%{_mandir}/man8/bmc-config.8*
%{_mandir}/man8/bmc-info.8*
%{_mandir}/man8/ipmi-config.8*
%{_mandir}/man8/ipmi-sel.8*
%{_mandir}/man8/ipmi-sensors.8*
%{_mandir}/man8/ipmi-sensors-config.8*
%{_sbindir}/bmc-config
%{_sbindir}/bmc-info
%{_sbindir}/ipmi-config
%{_sbindir}/ipmi-sel
%{_sbindir}/ipmi-sensors
%{_sbindir}/ipmi-sensors-config

#----------------------------------------------------------------------------

%package utils
Summary:	FreeIPMI Utilities
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}
Requires(post,preun):	rpm-helper

%description utils
FreeIPMI utilities ipmipower, bmc-watchdog, ipmiping, and rmcpping.

%files utils
%doc DISCLAIMER.*
%license COPYING.*
%config(noreplace) %{_sysconfdir}/sysconfig/bmc-watchdog
/lib/systemd/system/ipmiseld.service
%{_mandir}/man3/libfreeipmi.3.*
%{_mandir}/man3/libipmiconsole.3.*
%{_mandir}/man3/libipmidetect.3.*
%{_mandir}/man3/libipmimonitoring.3.*
%{_mandir}/man5/freeipmi.conf.5.*
%{_mandir}/man5/ipmiconsole.conf.5.*
%{_mandir}/man5/ipmidetect.conf.5.*
%{_mandir}/man5/ipmidetectd.conf.5.*
%{_mandir}/man5/ipmimonitoring.conf.5.*
%{_mandir}/man5/ipmi_monitoring_sensors.conf.5.*
%{_mandir}/man5/ipmimonitoring_sensors.conf.5.*
%{_mandir}/man5/ipmipower.conf.5.*
%{_mandir}/man5/ipmiseld.conf.5.*
%{_mandir}/man5/libipmimonitoring.conf.5.*
%{_mandir}/man7/freeipmi.7.*
%{_mandir}/man8/bmc-device.8.*
%{_mandir}/man8/bmc-watchdog.8.*
%{_mandir}/man8/ipmi-chassis.8.*
%{_mandir}/man8/ipmi-chassis-config.8.*
%{_mandir}/man8/ipmi-console.8.*
%{_mandir}/man8/ipmiconsole.8.*
%{_mandir}/man8/ipmi-dcmi.8.*
%{_mandir}/man8/ipmi-detect.8.*
%{_mandir}/man8/ipmidetect.8.*
%{_mandir}/man8/ipmidetectd.8.*
%{_mandir}/man8/ipmi-fru.8.*
%{_mandir}/man8/ipmi-locate.8.*
%{_mandir}/man8/ipmimonitoring.8.*
%{_mandir}/man8/ipmi-oem.8.*
%{_mandir}/man8/ipmi-pef-config.8.*
%{_mandir}/man8/ipmi-pet.8.*
%{_mandir}/man8/ipmi-ping.8.*
%{_mandir}/man8/ipmiping.8.*
%{_mandir}/man8/ipmi-power.8.*
%{_mandir}/man8/ipmipower.8.*
%{_mandir}/man8/ipmi-raw.8.*
%{_mandir}/man8/ipmiseld.8.*
%{_mandir}/man8/pef-config.8.*
%{_mandir}/man8/rmcp-ping.8.*
%{_mandir}/man8/rmcpping.8.*
%{_sbindir}/bmc-device
%{_sbindir}/bmc-watchdog
%{_sbindir}/ipmi-chassis
%{_sbindir}/ipmi-chassis-config
%{_sbindir}/ipmi-console
%{_sbindir}/ipmiconsole
%{_sbindir}/ipmi-dcmi
%{_sbindir}/ipmi-detect
%{_sbindir}/ipmidetect
%{_sbindir}/ipmidetectd
%{_sbindir}/ipmi-fru
%{_sbindir}/ipmi-locate
%{_sbindir}/ipmimonitoring
%{_sbindir}/ipmi-oem
%{_sbindir}/ipmi-pef-config
%{_sbindir}/ipmi-pet
%{_sbindir}/ipmi-ping
%{_sbindir}/ipmiping
%{_sbindir}/ipmi-power
%{_sbindir}/ipmipower
%{_sbindir}/ipmi-raw
%{_sbindir}/ipmiseld
%{_sbindir}/pef-config
%{_sbindir}/rmcp-ping
%{_sbindir}/rmcpping
%{_unitdir}/bmc-watchdog.service
%{_unitdir}/bmcwatchdog.service
%{_unitdir}/ipmidetectd.service

%post utils
%_post_service bmcwatchdog

%preun utils
%_preun_service bmcwatchdog

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%serverbuild
%configure \
	--localstatedir=%{_var} \
	--disable-dependency-tracking \
	--disable-static
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/%{name}
rm -f %{buildroot}%{_initrddir}/*
rm -f %{buildroot}%{_sysconfdir}/init.d/*

# Install systemd units
install -m 755 -d %{buildroot}%{_unitdir}
install -m 644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_unitdir}

# (cg) Make sure we mask the sysvinit script name
ln -s bmc-watchdog.service %{buildroot}%{_unitdir}/bmcwatchdog.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12772 |21mr|freemarker2.3.23-2.3.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname freemarker
# BuildRequires: ecj >= 4.12
Epoch: 0
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
# Prevent brp-java-repack-jars from being run.
%global __jar_repack %{nil}

%global checkForbiddenJARFiles F=`find -type f -iname '*.jar'`; [ ! -z "$F" ] && \
echo "ERROR: Sources should not contain JAR files:" && echo "$F" && exit 1

%global fm_compatible_ver 2.3
%global fm_ver %{fm_compatible_ver}.23

Name:           freemarker2.3.23
Version:        %{fm_ver}
Release:        1
Summary:        A template engine
Group:          Development/Java
License:        BSD
URL:            http://freemarker.sourceforge.net/
Source0:        http://downloads.sourceforge.net/%{oldname}/%{oldname}-%{version}.tar.gz

# Remove JSP 1.x and 2.0 API usage
Patch1: jsp-api.patch
# Compile only the classes compatible with the version of jython
Patch2: jython-compatibility.patch
# illegal character in the javadoc comment
Patch3: fix-javadoc-encoding.patch
# Fix ivy configuration
Patch4: ivy-configuration.patch
# Disable JavaRebelIntegration
Patch5: no-javarebel.patch
# enable jdom extension
Patch6: enable-jdom.patch
# use system javacc and fix Token.java
Patch7: javacc.patch
# Fix compatibility with javacc 7
Patch8: javacc-7.patch

BuildArch: noarch

BuildRequires: ant >= 1.6
BuildRequires: apache-parent
BuildRequires: apache-commons-logging
BuildRequires: apache-commons-io
BuildRequires: aqute-bnd
BuildRequires: avalon-logkit >= 1.2
BuildRequires: dom4j >= 1.6.1
BuildRequires: emma >= 2.0
BuildRequires: findbugs
BuildRequires: hamcrest
BuildRequires: ivy-local
BuildRequires: java-devel >= 1.6.0
BuildRequires: javacc >= 4.0
BuildRequires: javapackages-local
BuildRequires: jaxen >= 1.1
BuildRequires: jboss-jsp-2.2-api
BuildRequires: jcl-over-slf4j
BuildRequires: jdom >= 1.0
BuildRequires: jetty-jsp
BuildRequires: jetty-webapp
BuildRequires: junit >= 3.8.2
BuildRequires: jython >= 2.2.1
BuildRequires: log4j >= 1.2
BuildRequires: log4j-over-slf4j
BuildRequires: logback
BuildRequires: rhino >= 1.6
BuildRequires: sonatype-oss-parent
BuildRequires: saxpath
BuildRequires: slf4j
BuildRequires: xalan-j2 >= 2.7.0
BuildRequires: mvn(org.eclipse.jdt.core.compiler:ecj)

%description
FreeMarker is a Java tool to generate text output based on templates.
It is designed to be practical as a template engine to generate web
pages and particularly for servlet-based page production that follows
the MVC (Model View Controller) pattern. That is, you can separate the
work of Java programmers and website designers - Java programmers
needn't know how to design nice websites, and website designers needn't
know Java programming.

%package javadoc
Group: Development/Java
Summary: Javadoc for %{name}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{oldname}-%{version} -c


find . -name "*.jar" -delete
find . -name "*.class" -delete
rm -rf documentation/_html/api/

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1

# javacc generated sources are not Java 4 compatible, set source and target levels to Java 8
sed -i 's/"1\.4"/"1.8"/g' source/build.xml

rm -rf source/ivysettings.xml

# %%{__rm} -rf src/freemarker/core/ParseException.java
rm -rf source/src/freemarker/core/FMParser.java
rm -rf source/src/freemarker/core/FMParserConstants.java
rm -rf source/src/freemarker/core/FMParserTokenManager.java
rm -rf source/src/freemarker/core/SimpleCharStream.java
rm -rf source/src/freemarker/core/Token.java
rm -rf source/src/freemarker/core/TokenMgrError.java

%checkForbiddenJARFiles

%mvn_file org.%{oldname}:%{oldname}:%{version} %{name}
%mvn_compat_version : %{version}

%build
cd source
ant -Divy.mode=local javacc jar javadoc maven-pom

%install
%mvn_artifact source/build/pom.xml source/build/%{oldname}.jar
%mvn_install -J source/build/api

%files -f .mfiles
%doc README.txt
%doc LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt

%changelog
* Thu May 17 2018 Igor Vlasenko <viy at altlinux.ru> 0:2.3.23-alt3_5jpp8
- compact package for cookcc and jboss-dmr

* Fri Nov 17 2017 Igor Vlasenko <viy at altlinux.ru> 0:2.3.23-alt2_5jpp8
- fixed build with new tomcat

* Thu Nov 09 2017 Igor Vlasenko <viy at altlinux.ru> 0:2.3.23-alt1_5jpp8
- fc27 update

* Fri Nov 25 2016 Igor Vlasenko <viy at altlinux.ru> 0:2.3.23-alt1_2jpp8
- new version

* Sun Feb 07 2016 Igor Vlasenko <viy at altlinux.ru> 0:2.3.19-alt2_11jpp8
- java 8 mass update

* Mon Sep 08 2014 Igor Vlasenko <viy at altlinux.ru> 0:2.3.19-alt2_7jpp7
- new release

* Mon Jul 28 2014 Igor Vlasenko <viy at altlinux.ru> 0:2.3.19-alt2_5jpp7
- new release

* Mon Jul 14 2014 Igor Vlasenko <viy at altlinux.ru> 0:2.3.19-alt2_4jpp7
- NMU rebuild to move poms and fragments

* Thu Sep 13 2012 Igor Vlasenko <viy at altlinux.ru> 0:2.3.19-alt1_4jpp7
- new version

* Fri Sep 16 2011 Igor Vlasenko <viy at altlinux.ru> 0:2.3.16-alt1_2jpp6
- new version

* Sun Feb 13 2011 Igor Vlasenko <viy at altlinux.ru> 0:2.3.15-alt3_1jpp5
- fedora compat maven2 mapping added

* Wed Apr 29 2009 Igor Vlasenko <viy at altlinux.ru> 0:2.3.15-alt2_1jpp5
- fedora compat symlink added

* Mon Mar 30 2009 Igor Vlasenko <viy at altlinux.ru> 0:2.3.15-alt1_1jpp5
- new jpp release

* Thu Dec 18 2008 Igor Vlasenko <viy at altlinux.ru> 0:2.3.13-alt2_4jpp5
- raised epoch: to 0 (alt rpm quirk)

* Sat Dec 13 2008 Igor Vlasenko <viy at altlinux.ru> 2.3.13-alt1_4jpp5
- converted from JPackage by jppimport script

* Sat Nov 24 2007 Igor Vlasenko <viy at altlinux.ru> 0:2.3.6-alt1_2jpp1.7
- converted from JPackage by jppimport script


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12773 |21mr|freemarker-2.3.28-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionally build with a minimal dependency set
%bcond_with jp_minimal

Name:           freemarker
Version:        2.3.28
Release:        4
Summary:        The Apache FreeMarker Template Engine
License:        ASL 2.0
URL:            https://freemarker.apache.org/
Source0:        https://github.com/apache/incubator-freemarker/archive/v%{version}/%{name}-%{version}.tar.gz
Group:          Development/Java
# Remove JSP 2.0 API usage
Patch1:         jsp-api.patch
# Compile only the classes compatible with the version of jython
Patch2:         jython-compatibility.patch
# illegal character in the javadoc comment
Patch3:         fix-javadoc-encoding.patch
# Disable JRebel integration, it is not free software and not in Fedora
Patch5:         no-javarebel.patch
# enable jdom extension
Patch6:         enable-jdom.patch
# Fix compatibility with javacc 7
Patch7:         javacc-7.patch

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: ant
BuildRequires: apache-parent
BuildRequires: apache-commons-logging
BuildRequires: aqute-bnd
BuildRequires: hamcrest
BuildRequires: ivy-local
BuildRequires: glassfish-jsp-api
BuildRequires: glassfish-servlet-api
BuildRequires: javacc >= 7.0
BuildRequires: jaxen >= 1.1
BuildRequires: jcl-over-slf4j
BuildRequires: jdom >= 1.0
BuildRequires: junit
BuildRequires: log4j-over-slf4j
BuildRequires: slf4j
BuildRequires: xalan-j2 >= 2.7.0

%if %{without jp_minimal}
BuildRequires: dom4j
BuildRequires: saxpath
BuildRequires: jython
BuildRequires: rhino >= 1.6
%endif

%description
Apache FreeMarker is a template engine: a Java library to generate text output
(HTML web pages, e-mails, configuration files, source code, etc.) based on
templates and changing data. Templates are written in the FreeMarker Template
Language (FTL), which is a simple, specialized language (not a full-blown
programming language like PHP).

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

find -type f -name "*.jar" -delete
find -type f -name "*.class" -delete

%patch1
%patch2
%patch3
%patch5
%patch6
%patch7 -p1

# Use system ivy settings
rm ivysettings.xml

# Correct classpath for Javadoc generation
sed -i 's/cachepath conf="IDE"/cachepath conf="javadoc"/' build.xml
sed -i '/conf name="IDE"/i<conf name="javadoc" extends="build.jython2.5,build.jsp2.1" />' ivy.xml

# Disable Java 8 javadoc linting
sed -i '/<javadoc/a\ additionalparam="-Xdoclint:none"' build.xml

# Drop unnecessary dep on avalon
sed -i -e '/avalon-logkit/d' ivy.xml
rm src/main/java/freemarker/log/_AvalonLoggerFactory.java

%if %{with jp_minimal}
# Drop dep on optional extra deps for minimal build
sed -i -e '/"rhino"/d' -e '/"jython"/d' ivy.xml
rm -rf src/main/java/freemarker/ext/{rhino,jython,ant}
rm src/main/java/freemarker/template/utility/JythonRuntime.java
# Drop dep on additional xml backends for minimal build
sed -i -e '/dom4j/d' -e '/saxpath/d' ivy.xml
rm src/main/java/freemarker/ext/xml/_Dom4jNavigator.java
%endif

%mvn_file org.%{name}:%{name} %{name}

%build
ant -Divy.mode=local -Ddeps.available=true javacc jar javadoc maven-pom

%install
%mvn_artifact build/pom.xml build/%{name}.jar
%mvn_install -J build/api

%files -f .mfiles
%doc README.md RELEASE-NOTES
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12774 |21mr|freeradius-3.0.26-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_disable_ld_no_undefined 1
%global __requires_exclude 'perl\\(DBI\\)'

%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	High-performance and highly configurable RADIUS server
Name:		freeradius
Version:	3.0.26
Release:	2
License:	GPLv2+
Group:		System/Servers
Url:		http://www.freeradius.org/
Source0:	ftp://ftp.freeradius.org/pub/radius/%{name}-server-%{version}.tar.gz
Source1:	radius.sysusers.conf
Source2:	freeradius.pam-0.77
Source3:	freeradius.pam
Source5:	freeradius.logrotate
Source6:	freeradius.sysconfig
Source7:	freeradius.service
Source8:	freeradius.tmpfiles
# Some advice to user about upgrading from old 2.2.x
Source9:	README.urpmi
Source10:	freeradius-cert-helper.sh
Source100:	freeradius.rpmlintrc
# Fix certificate location
Patch0:		freeradius-3.0.23-ssl-config.patch
# Otherwise the pidfile goes in /var/run/%%{name},
# while we search for it in /run/%%{name}
Patch2:		freeradius-3.0.21-fix-pid-dir.patch
# By default uid=guid=the one of the user launching the daemon:
# we want instead "radius" for both
Patch3:		freeradius-3.0.21-enable-radius-uid-guid.patch
Patch4:		e2k-fix-conffile-h.patch
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	gdbm-devel
BuildRequires:	hiredis-devel
BuildRequires:	libtool-devel
BuildRequires:	mysql-devel
BuildRequires:	net-snmp-utils
BuildRequires:	openssl
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	pcap-devel
BuildRequires:	perl-devel
BuildRequires:	sasl-devel
BuildRequires:	unixODBC-devel
BuildRequires:	ykclient-devel >= 2.10
BuildRequires:	libyubikey-devel
# Needed for enabling more modules:
# libcouchbase, libnaaeap, libeap-ikev2, opendirectory and libaceclnt
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(krb5)
# This one in Contrib
#BuildRequires:	pkgconfig(libcollectdclient)
BuildRequires:	pkgconfig(libcurl) >= 7.19.1
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libmemcached)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(libunbound)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(samba-util)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(wbclient)
BuildRequires:	pkgconfig(zlib)
Requires:	cert-sh-functions
Requires:	net-snmp-utils
Requires(pre):	/bin/systemd-sysusers
# Minimal version for ssl cert generation
Requires(post):	openssl
Requires(post,preun):	systemd
# In 3.0.x dialup-admin does not exist anymore
%rename	%{name}-web

%description
The FreeRADIUS Server Project is a high-performance and highly configurable
GPL'd RADIUS server. It is somewhat similar to the Livingston 2.0 RADIUS
server, but has many more features, and is much more configurable.

%files
%doc COPYRIGHT CREDITS LICENSE LICENSE.openssl README.rst README.upgrade
%doc Readme.cram Standard.draft dictionary.sandy
%doc README.urpmi
%doc %{_datadir}/doc/freeradius/ChangeLog
%doc %{_datadir}/doc/freeradius/Makefile.sphinx
%doc %{_datadir}/doc/freeradius/README
%doc %{_datadir}/doc/freeradius/antora
%doc %{_datadir}/doc/freeradius/bugs
%doc %{_datadir}/doc/freeradius/concepts
%doc %{_datadir}/doc/freeradius/configuration
%doc %{_datadir}/doc/freeradius/deployment
%doc %{_datadir}/doc/freeradius/developer
%doc %{_datadir}/doc/freeradius/index.rst
%doc %{_datadir}/doc/freeradius/modules
%doc %{_datadir}/doc/freeradius/rfc
%doc %{_datadir}/doc/freeradius/schemas
%doc %{_datadir}/doc/freeradius/vendor

%{_unitdir}/radiusd.service
%{_tmpfilesdir}/radiusd.conf
%config(noreplace) %{_sysconfdir}/pam.d/radiusd
%config(noreplace) %{_sysconfdir}/logrotate.d/radiusd
%config(noreplace) %{_sysconfdir}/sysconfig/radiusd
%dir %{_sysconfdir}/raddb
%config(noreplace) %attr(0644,root,radius) %{_sysconfdir}/raddb/dictionary
%config(noreplace) %attr(0640,root,radius) %{_sysconfdir}/raddb/experimental.conf
%config(noreplace) %{_sysconfdir}/raddb/hints
%config(noreplace) %{_sysconfdir}/raddb/huntgroups
%config(noreplace) %attr(0640,root,radius) %{_sysconfdir}/raddb/panic.*gdb
%config(noreplace) %attr(0640,root,radius) %{_sysconfdir}/raddb/proxy.conf
%config(noreplace) %attr(0640,root,radius) %{_sysconfdir}/raddb/radiusd.conf
%config(noreplace) %attr(0640,root,radius) %{_sysconfdir}/raddb/templates.conf
%config(noreplace) %attr(0640,root,radius) %{_sysconfdir}/raddb/trigger.conf
# Those contains passwords
%config(noreplace) %attr(0640,root,radius) %{_sysconfdir}/raddb/clients.conf
%config(noreplace) %{_sysconfdir}/raddb/users
%dir %attr(0770,root,radius) %{_sysconfdir}/raddb/certs
%dir %attr(0750,root,radius) %{_sysconfdir}/raddb/mods-available
%config(noreplace) %attr(-,root,radius) %{_sysconfdir}/raddb/mods-available/*
%dir %attr(0750,root,radius) %{_sysconfdir}/raddb/mods-config
%config(noreplace) %attr(-,root,radius) %{_sysconfdir}/raddb/mods-config/*
%dir %attr(0750,root,radius) %{_sysconfdir}/raddb/mods-enabled
%config(noreplace) %attr(-,root,radius) %{_sysconfdir}/raddb/mods-enabled/*
%dir %attr(0750,root,radius) %{_sysconfdir}/raddb/policy.d
%config(noreplace) %attr(-,root,radius) %{_sysconfdir}/raddb/policy.d/*
%dir %attr(0750,root,radius) %{_sysconfdir}/raddb/sites-available
%config(noreplace) %attr(-,root,radius) %{_sysconfdir}/raddb/sites-available/*
%dir %attr(0750,root,radius) %{_sysconfdir}/raddb/sites-enabled
%config(noreplace) %attr(-,root,radius) %{_sysconfdir}/raddb/sites-enabled/*
%{_bindir}/dhcpclient
%{_bindir}/map_unit
%{_bindir}/radattr
%{_bindir}/rad_counter
%{_bindir}/radclient
%{_bindir}/radcrypt
%{_bindir}/radeapclient
%{_bindir}/radlast
%{_bindir}/radsniff
%{_bindir}/radsqlrelay
%{_bindir}/radtest
%{_bindir}/radwho
%{_bindir}/radzap
%{_bindir}/rlm_ippool_tool
%{_bindir}/rlm_sqlippool_tool
%{_bindir}/smbencrypt
%{_sbindir}/checkrad
%{_sbindir}/freeradius-cert-helper.sh
%{_sbindir}/raddebug
%{_sbindir}/radiusd
%{_sbindir}/radmin
%attr(0755,radius,radius) %dir %{_localstatedir}/log/radius
%attr(0755,radius,radius) %dir %{_localstatedir}/log/radius/radacct
%attr(0644,radius,radius) %ghost %{_localstatedir}/log/radius/radutmp
%attr(0644,radius,radius) %ghost %{_localstatedir}/log/radius/radwtmp
%attr(0644,radius,radius) %ghost %{_localstatedir}/log/radius/radius.log
%{_datadir}/snmp/mibs/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/dictionary*
%{_mandir}/man*/*
%{_sysusersdir}/radius.conf

%pre
%sysusers_create_package radius %{SOURCE1}

%post
echo "Create tempfiles"
%tmpfiles_create radiusd.conf

echo "Create ghostfiles"
%create_ghostfile %{_localstatedir}/log/radius/radutmp radius radius 0644
%create_ghostfile %{_localstatedir}/log/radius/radwtmp radius radius 0644
%create_ghostfile %{_localstatedir}/log/radius/radius.log radius radius 0644

echo "Post systemd service"
%_post_service radiusd

%preun
%_preun_service radiusd

%postun
%_postun_userdel radius

#----------------------------------------------------------------------------

%package ldap
Summary:	The LDAP module for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	openldap-clients

%description ldap
The FreeRADIUS server can use LDAP to authenticate users, and this module is
necessary for that.

%files ldap
%doc doc/modules/ldap_howto.rst doc/schemas/ldap/openldap/*.schema
%{_libdir}/%{name}/rlm_ldap.so

#----------------------------------------------------------------------------

%package krb5
Summary:	The Kerberos module for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	krb5-libs

%description krb5
The FreeRADIUS server can use Kerberos to authenticate users, and this module
is necessary for that.

%files krb5
%doc doc/modules/rlm_krb5
%{_libdir}/%{name}/rlm_krb5.so

#----------------------------------------------------------------------------

%package mysql
Summary:	The MySQL module for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	mysql

%description mysql
The FreeRADIUS server can use MySQL to authenticate users and do accounting,
and this module is necessary for that.

%files mysql
%doc COPYRIGHT
%{_libdir}/%{name}/rlm_sql_mysql.so

#----------------------------------------------------------------------------

%package postgresql
Summary:	The PostgreSQL module for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	postgresql

%description postgresql
The FreeRADIUS server can use PostgreSQL to authenticate users and do
accounting, and this module is necessary for that.

%files postgresql
%doc COPYRIGHT
%{_libdir}/%{name}/rlm_sql_postgresql.so

#----------------------------------------------------------------------------

%package sqlite
Summary:	The sqlite module for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	sqlite-tools

%description sqlite
The FreeRADIUS server can use sqlite to authenticate users and do accounting,
and this module is necessary for that.

%files sqlite
%doc COPYRIGHT
%{_libdir}/%{name}/rlm_sql_sqlite.so

#----------------------------------------------------------------------------

%package unixODBC
Summary:	The unixODBC module for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	unixODBC

%description unixODBC
The FreeRADIUS server can use unixODBC to authenticate users and do accounting,
and this module is necessary for that.

%files unixODBC
%doc COPYRIGHT
%{_libdir}/%{name}/rlm_sql_unixodbc.so

#----------------------------------------------------------------------------

%package yubikey
Summary:	The yubikey module for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	libyubikey-tools

%description yubikey
The FreeRADIUS server can use yubikey to authenticate users and do accounting,
and this module is necessary for that.

%files yubikey
%doc COPYRIGHT
%{_libdir}/%{name}/rlm_yubikey.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries for %{name}.

%files -n %{libname}
%doc LICENSE.lgpl
%dir %{_libdir}/%{name}/
# FIXME: Find a way to add a SONAME
#{_libdir}/%%{name}/libfreeradius-dhcp.so.%%{major}*
#{_libdir}/%%{name}/libfreeradius-eap.so.%%{major}*
#{_libdir}/%%{name}/libfreeradius-radius.so.%%{major}*
#{_libdir}/%%{name}/libfreeradius-server.so.%%{major}*
%{_libdir}/%{name}/libfreeradius-dhcp.so
%{_libdir}/%{name}/libfreeradius-eap.so
%{_libdir}/%{name}/libfreeradius-radius.so
%{_libdir}/%{name}/libfreeradius-server.so
%{_libdir}/%{name}/proto_dhcp.so
%{_libdir}/%{name}/proto_vmps.so
%{_libdir}/%{name}/rlm_always.so
%{_libdir}/%{name}/rlm_attr_filter.so
%{_libdir}/%{name}/rlm_cache.so
%{_libdir}/%{name}/rlm_cache_memcached.so
%{_libdir}/%{name}/rlm_cache_rbtree.so
%{_libdir}/%{name}/rlm_chap.so
%{_libdir}/%{name}/rlm_counter.so
%{_libdir}/%{name}/rlm_cram.so
%{_libdir}/%{name}/rlm_date.so
%{_libdir}/%{name}/rlm_detail.so
%{_libdir}/%{name}/rlm_dhcp.so
%{_libdir}/%{name}/rlm_digest.so
%{_libdir}/%{name}/rlm_dynamic_clients.so
%{_libdir}/%{name}/rlm_eap.so
%{_libdir}/%{name}/rlm_eap_fast.so
%{_libdir}/%{name}/rlm_eap_gtc.so
#%%{_libdir}/%{name}/rlm_eap_leap.so
%{_libdir}/%{name}/rlm_eap_md5.so
%{_libdir}/%{name}/rlm_eap_mschapv2.so
%{_libdir}/%{name}/rlm_eap_peap.so
%{_libdir}/%{name}/rlm_eap_pwd.so
%{_libdir}/%{name}/rlm_eap_sim.so
%{_libdir}/%{name}/rlm_eap_tls.so
%{_libdir}/%{name}/rlm_eap_ttls.so
%{_libdir}/%{name}/rlm_example.so
%{_libdir}/%{name}/rlm_exec.so
%{_libdir}/%{name}/rlm_expiration.so
%{_libdir}/%{name}/rlm_expr.so
%{_libdir}/%{name}/rlm_files.so
%{_libdir}/%{name}/rlm_idn.so
%{_libdir}/%{name}/rlm_ippool.so
%{_libdir}/%{name}/rlm_linelog.so
%{_libdir}/%{name}/rlm_logintime.so
%{_libdir}/%{name}/rlm_mschap.so
%{_libdir}/%{name}/rlm_otp.so
%{_libdir}/%{name}/rlm_pam.so
%{_libdir}/%{name}/rlm_pap.so
%{_libdir}/%{name}/rlm_passwd.so
%{_libdir}/%{name}/rlm_perl.so
%{_libdir}/%{name}/rlm_preprocess.so
%{_libdir}/%{name}/rlm_python.so
%{_libdir}/%{name}/rlm_python3.so
%{_libdir}/%{name}/rlm_radutmp.so
%{_libdir}/%{name}/rlm_realm.so
%{_libdir}/%{name}/rlm_redis.so
%{_libdir}/%{name}/rlm_rediswho.so
%{_libdir}/%{name}/rlm_replicate.so
%{_libdir}/%{name}/rlm_rest.so
%{_libdir}/%{name}/rlm_ruby.so
%{_libdir}/%{name}/rlm_smsotp.so
%{_libdir}/%{name}/rlm_soh.so
%{_libdir}/%{name}/rlm_sometimes.so
%{_libdir}/%{name}/rlm_sql.so
%{_libdir}/%{name}/rlm_sql_null.so
%{_libdir}/%{name}/rlm_sqlcounter.so
%{_libdir}/%{name}/rlm_sqlhpwippool.so
%{_libdir}/%{name}/rlm_sqlippool.so
%{_libdir}/%{name}/rlm_sql_map.so
%{_libdir}/%{name}/rlm_test.so
%{_libdir}/%{name}/rlm_totp.so
%{_libdir}/%{name}/rlm_unbound.so
%{_libdir}/%{name}/rlm_unix.so
%{_libdir}/%{name}/rlm_unpack.so
%{_libdir}/%{name}/rlm_utf8.so
%{_libdir}/%{name}/rlm_wimax.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for %{name}

%files -n %{devname}
%doc doc/developer
%{_includedir}/%{name}
#{_libdir}/%%{name}/libfreeradius-dhcp.so
#{_libdir}/%%{name}/libfreeradius-eap.so
#{_libdir}/%%{name}/libfreeradius-radius.so
#{_libdir}/%%{name}/libfreeradius-server.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-server-%{version}
%config_update

# Fix strange perms
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;


%build
#./autogen.sh

# Fix paths
find . -type f | xargs perl -pi -e "s|/usr/local/bin|%{_bindir}|g"

%serverbuild
export CFLAGS="$CFLAGS -fPIC -DLDAP_DEPRECATED"
export CXXFLAGS="$CXXFLAGS -fPIC -DLDAP_DEPRECATED"
./configure \
	--prefix=%{_prefix} \
	--docdir="%{_datadir}/doc/%{name}" \
	--libdir="%{_libdir}/%{name}"  \
	--libexecdir="%{_libdir}/%{name}" \
	--with-logdir="%{_var}/log/radius" \
	--localstatedir=%{_var} \
	--with-gnu-ld \
	--disable-static \
	--with-threads \
	--with-thread-pool \
	--with-systemd \
	--with-system-libtool \
	--with-system-libltdl \
	--disable-ltdl-install \
	--with-ltdl-lib=%{_libdir} \
	--with-ltdl-include=%{_includedir} \
	--with-radacctdir="%{_var}/log/radius/radacct" \
	--with-raddbdir="%{_sysconfdir}/raddb" \
	--with-static-modules="" \
	--with-experimental-modules \
	--with-large-files \
	--with-rlm-dbm-lib-dir=%{_libdir} \
	--with-rlm-eap-peap-lib-dir=%{_libdir} \
	--with-openssl-libraries=%{_libdir} \
	--with-rlm-ruby-include-dir=%{_includedir}/ruby \
	--with-rlm-krb5-lib-dir=%{_libdir} \
	--with-rlm-ldap-lib-dir=%{_libdir} \
	--with-rlm-ldap-include-dir=%{_includedir}/ldap \
	--with-mysql-include-dir=%{_includedir}/mysql \
	--with-mysql-lib-dir=%{_libdir}/mysql \
	--with-mysql-dir=%{_prefix} \
	--with-rlm-sql-postgresql-lib-dir=%{_libdir}/mysql \
	--with-rlm-sql-postgresql-include-dir=%{_includedir}/pgsql \
	--with-unixodbc-lib-dir=%{_libdir} \
	--with-unixodbc-dir=%{_prefix} \
	--without-rlm_couchbase \
	--without-rlm_eap_tnc \
	--without-rlm_eap_ikev2 \
	--without-rlm_opendirectory \
	--without-rlm_securid \
	--without-rlm_sql_mongo \
	--without-rlm_sql_db2 \
	--without-rlm_sql_firebird \
	--without-rlm_sql_freetds \
	--without-rlm_sql_iodbc \
	--without-rlm_sql_oracle \
	--without-rlm_sql_sybase

# Needed, otherwise rml_python3 compiling fails for -fgcc-record-switches
perl -pi -e "s|-frecord||g" src/modules/rlm_python3/all.mk

# Avoid undefined references warnings in rml_perl
perl -pi -e "s|-Wl,--no-undefined||g" src/modules/rlm_perl/all.mk

make


%install
make install R=%{buildroot}

# Fix default configuration file permissions
find %{buildroot}%{_sysconfdir}/raddb -type d | xargs chmod 755
find %{buildroot}%{_sysconfdir}/raddb -type f | xargs chmod 644
chmod 640 %{buildroot}%{_sysconfdir}/raddb/clients.conf %{buildroot}%{_sysconfdir}/raddb/users

# Install headers
cp src/include/build-radpaths-h %{buildroot}%{_includedir}/%{name}/build-radpaths-h

# Install distribution scripts and stuff...
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/pam.d/radiusd
install -D -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/radiusd
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/sysconfig/radiusd
install -D -m 644 %{SOURCE7} %{buildroot}%{_unitdir}/radiusd.service
install -D -m 644 %{SOURCE8} %{buildroot}%{_tmpfilesdir}/radiusd.conf
install -D -m 755 %{SOURCE10} %{buildroot}%{_sbindir}/freeradius-cert-helper.sh

# Put the mibs in place
install -d -m 755 %{buildroot}%{_datadir}/snmp/mibs
install -m 644 mibs/RADIUS* %{buildroot}%{_datadir}/snmp/mibs/
install -m 644 mibs/FREERADIUS* %{buildroot}%{_datadir}/snmp/mibs/

# Fix ghostfiles
touch %{buildroot}%{_localstatedir}/log/radius/radutmp
touch %{buildroot}%{_localstatedir}/log/radius/radwtmp
touch %{buildroot}%{_localstatedir}/log/radius/radius.log

# Include more docs
cp src/modules/rlm_cram/Readme Readme.cram
cp src/modules/rlm_cram/Standard.draft .
cp src/modules/rlm_cram/dictionary.sandy .
cp src/LICENSE.openssl .
cp src/lib/LICENSE ./LICENSE.lgpl
# Put specific docs and files where they belong (prepare for doc inclusion)
cp raddb/README.rst ./README.upgrade
cp %{SOURCE9} .

# Remove various unneeded stuff
rm -f %{buildroot}%{_sbindir}/rc.radiusd
rm -f %{buildroot}%{_sysconfdir}/raddb/certs/*
rm -f %{buildroot}%{_sysconfdir}/raddb/README.rst
rm -rf %{buildroot}%{_sysconfdir}/raddb/mods-config/sql/ippool/oracle
rm -rf %{buildroot}%{_sysconfdir}/raddb/mods-config/sql/ippool/mssql
rm -rf %{buildroot}%{_sysconfdir}/raddb/mods-config/sql/ippool-dhcp/oracle
rm -rf %{buildroot}%{_sysconfdir}/raddb/mods-config/sql/main/oracle
rm -rf %{buildroot}%{_sysconfdir}/raddb/mods-config/sql/ippool/mongo
rm -rf %{buildroot}%{_sysconfdir}/raddb/mods-config/sql/main/mongo

# Do not use "find %%{buildroot} -name '*.*a' -delete" as
# it remove some dictionary files
find %{buildroot}%{_libdir}/%{name} -name '*.la' -delete
find %{buildroot}%{_libdir}/%{name} -name '*.a' -delete

# More perm fixes
#chmod +x %%{buildroot}%%{_sysconfdir}/raddb/mods-config/{python,python3}/example.py
#chmod +x %%{buildroot}%%{_sysconfdir}/raddb/mods-config/{python,python3}/radiusd.py
#chmod +x %%{buildroot}%%{_sysconfdir}/raddb/mods-config/sql/main/sqlite/process-radacct-refresh.sh

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/radius.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12775 |21mr|freerdp-2.11.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	rdtk_major      2
%define	winpr_major     2
%define	uwac_major      0
%define	major           2

%define	devname		%mklibname %{name} -d

%define	librdtk		%mklibname rdtk %{rdtk_major}
%define	libwinpr	%mklibname winpr %{winpr_major}
%define	libuwac		%mklibname uwac %{uwac_major}
%define	libclient	%mklibname freerdp-client %{major}
%define	libxclient	%mklibname xfreerdp-client %{major}
%define	libserver	%mklibname freerdp-server %{major}
%define	libshadow	%mklibname freerdp-shadow %{major}
%define	libname		%mklibname freerdp %{major}

Summary:	A free remote desktop protocol client
Name:		freerdp
Version:	2.11.7
Release:	1
License:	Apache License
Group:		Networking/Remote access
Url:		http://www.freerdp.com/
Source0:	https://github.com/FreeRDP/FreeRDP/archive/%{version}.tar.gz?/FreeRDP-%{version}.tar.gz
BuildRequires:	cmake >= 3.3.2
BuildRequires:	docbook-style-xsl
BuildRequires:	xmlto
BuildRequires:	cups-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	gsm-devel
BuildRequires:	lame-devel
BuildRequires:	libfaac-devel
BuildRequires:	libfaad2-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0) >= 1.0.5
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gstreamer-audio-1.0)
BuildRequires:	pkgconfig(gstreamer-fft-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(openh264)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(soxr)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libusb)
%rename		%{_lib}freerdp-utils1
%rename		%{_lib}freerdp-rail1
%rename		%{_lib}freerdp-kbd1
%rename		%{_lib}freerdp-gdi1
%rename		%{_lib}freerdp-core1
%rename		%{_lib}freerdp-codec1
%rename		%{_lib}freerdp-channels1
%rename		%{_lib}freerdp-cache1
%rename		%{librdtk}
%rename		%{libxclient}

%description
FreeRDP is a fork of the rdesktop project.

%files
%doc ChangeLog LICENSE README.md
%{_bindir}/*
%{_mandir}/man1/xfreerdp.1.*
%{_mandir}/man1/freerdp-shadow-cli.1.*
%{_mandir}/man1/wlfreerdp.1.*
%{_mandir}/man1/winpr-hash.1.*
%{_mandir}/man1/winpr-makecert.1.*
%{_mandir}/man7/wlog.7.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}freerdp1 < 1.0.2

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libfreerdp2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwinpr}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}freerdp1 < 1.0.2

%description -n %{libwinpr}
Shared library for %{name}.

%files -n %{libwinpr}
%doc LICENSE
%{_libdir}/libwinpr2.so.%{winpr_major}*
%{_libdir}/libwinpr-tools2.so.%{winpr_major}*

#----------------------------------------------------------------------------

%package -n %{libclient}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}freerdp1 < 1.0.2

%description -n %{libclient}
Shared library for %{name}.

%files -n %{libclient}
%doc LICENSE
%{_libdir}/libfreerdp-client2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libuwac}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}freerdp1 < 1.0.2

%description -n %{libuwac}
Shared library for %{name}.

%files -n %{libuwac}
%doc LICENSE
%{_libdir}/libuwac0.so.%{uwac_major}*

#----------------------------------------------------------------------------

%package -n %{libserver}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}freerdp1 < 1.0.2

%description -n %{libserver}
Shared library for %{name}.

%files -n %{libserver}
%doc LICENSE
%{_libdir}/libfreerdp-server2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libshadow}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}freerdp1 < 1.0.2

%description -n %{libshadow}
Shared library for %{name}.

%files -n %{libshadow}
%doc LICENSE
%{_libdir}/libfreerdp-shadow*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libclient} = %{EVRD}
Requires:	%{libwinpr} = %{EVRD}
Requires:	%{libshadow} = %{EVRD}
Requires:	%{libuwac} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc LICENSE
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n FreeRDP-%{version}

# Fix perms
find . -name "*.c" -o -name "*.h" | xargs chmod 0644


%build
%cmake \
	-DWITH_ALSA=ON \
	-DWITH_CUNIT=OFF \
	-DWITH_CUPS=ON \
	-DWITH_DIRECTFB=OFF \
	-DWITH_FAAC=ON \
	-DWITH_FAAD2=ON \
	-DWITH_FFMPEG=ON \
	-DWITH_GSM=ON \
	-DWITH_GSTREAMER_1_0=ON \
	-DWITH_GSTREAMER_0_10=OFF \
	-DWITH_JPEG=ON \
	-DWITH_LAME=ON \
	-DWITH_MANPAGES=ON \
	-DWITH_OPENH264=ON \
	-DWITH_PCSC=ON \
	-DWITH_PULSE=ON \
%ifarch x86_64
	-DWITH_SSE2=ON \
%else
	-DWITH_SSE2=OFF \
%endif
	-DWITH_SERVER=ON \
	-DWITH_SOXR=ON \
	-DWITH_X11=ON \
	-DWITH_XCURSOR=ON \
	-DWITH_XEXT=ON \
	-DWITH_XI=ON \
	-DWITH_XINERAMA=ON \
	-DWITH_XKBFILE=ON \
	-DWITH_XRENDER=ON \
	-DWITH_XV=ON \
	-DWITH_WAYLAND=ON \
	-DWITH_ZLIB=ON \
	-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12776 |21mr|freetds-1.3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define TDSVER 7.4

%define ct_major 4
%define sybdb_major 5
%define tdsodbc_major 0
%define libct %mklibname ct %{ct_major}
%define libsybdb %mklibname sybdb %{sybdb_major}
%define libtdsodbc %mklibname tdsodbc %{tdsodbc_major}
%define devname %mklibname %{name} -d

Summary:	An OpenSource implementation of the tabular data stream protocol
Name:		freetds
Version:	1.3.14
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.freetds.org/
Source0:	ftp://ftp.freetds.org/pub/freetds/stable/%{name}-%{version}.tar.gz
BuildRequires:	docbook-style-dsssl
BuildRequires:	doxygen
BuildRequires:	gettext-devel
BuildRequires:	gmp-devel
BuildRequires:	readline-devel
BuildRequires:	unixODBC-devel >= 2.0.0
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(ncurses)
Conflicts:	%{_lib}freetds0 < 1.1.20

%description
FreeTDS is a free (open source) implementation of Sybase's db-lib, ct-lib, and
ODBC libraries. Currently, dblib and ctlib are most mature. Both of these
libraries have several programs know to compile and run against them. ODBC is
just a roughed in skeleton, and not useful for real work.

This package is built with support for TDS version %{TDSVER}.

%files
%doc AUTHORS.md BUGS.md COPYING.txt ChangeLog INSTALL.md NEWS.md README.md PWD
%config(noreplace) %{_sysconfdir}/freetds.conf
%config(noreplace) %{_sysconfdir}/locales.conf
%config(noreplace) %{_sysconfdir}/pool.conf
%{_bindir}/bsqldb
%{_bindir}/bsqlodbc
%{_bindir}/datacopy
%{_bindir}/defncopy
%{_bindir}/fisql
%{_bindir}/freebcp
%{_bindir}/osql
%{_bindir}/tdspool
%{_bindir}/tsql
%{_mandir}/man1/*
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%package -n %{libct}
Summary:	An Open Source implementation of the tabular data stream protocol
Group:		System/Libraries
Requires:	%{name}
Conflicts:	%{_lib}freetds0 < 1.1.20

%description -n %{libct}
FreeTDS is a free (open source) implementation of Sybase's db-lib, ct-lib, and
ODBC libraries. Currently, dblib and ctlib are most mature. Both of these
libraries have several programs know to compile and run against them. ODBC is
just a roughed in skeleton, and not useful for real work.

This package is built with support for TDS version %{TDSVER}.

%files -n %{libct}
%{_libdir}/libct.so.%{ct_major}*

#----------------------------------------------------------------------------

%package -n %{libsybdb}
Summary:	An Open Source implementation of the tabular data stream protocol
Group:		System/Libraries
Requires:	%{name}
Conflicts:	%{_lib}freetds0 < 1.1.20
Obsoletes:	%{_lib}freetds0 < 1.1.20

%description -n %{libsybdb}
FreeTDS is a free (open source) implementation of Sybase's db-lib, ct-lib, and
ODBC libraries. Currently, dblib and ctlib are most mature. Both of these
libraries have several programs know to compile and run against them. ODBC is
just a roughed in skeleton, and not useful for real work.

This package is built with support for TDS version %{TDSVER}.

%files -n %{libsybdb}
%{_libdir}/libsybdb.so.%{sybdb_major}*

#----------------------------------------------------------------------------

%package -n %{libtdsodbc}
Summary:	Driver ODBC for unixODBC
Group:		System/Libraries
Provides:	%{name}-unixodbc = %{EVRD}
Provides:	%{_lib}freetds0-unixodbc = %{EVRD}
Conflicts:	%{_lib}freetds0-unixodbc < 1.1.20
Obsoletes:	%{_lib}freetds0-unixodbc < 1.1.20

%description -n %{libtdsodbc}
This package contains ODBC driver for unixODBC.

This package is built with support for TDS version %{TDSVER}.

%files  -n %{libtdsodbc}
%{_libdir}/libtdsodbc.so.%{tdsodbc_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files for the FreeTDS library
Group:		Development/C
Requires:	%{libct} = %{EVRD}
Requires:	%{libsybdb} = %{EVRD}
Requires:	%{libtdsodbc} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	freetds_mssql-devel = %{EVRD}

%description -n %{devname}
FreeTDS is a free (open source) implementation of Sybase's db-lib, ct-lib, and
ODBC libraries. Currently, dblib and ctlib are most mature. Both of these
libraries have several programs know to compile and run against them. ODBC is
just a roughed in skeleton, and not useful for real work.

This package is built with support for TDS version %{TDSVER}.

This package allows you to compile applications with freetds libraries.

%files -n %{devname}
%doc TODO.md
%{_includedir}/*.h
%{_libdir}/libct.so
%{_libdir}/libsybdb.so
%{_libdir}/libtdsodbc.so
%{_datadir}/%{name}-%{version}/samples

#----------------------------------------------------------------------------

%package doc
Summary:	User documentation for FreeTDS
Group:		Documentation
Obsoletes:	%{_lib}freetds0-doc < 1.1.20
BuildArch:	noarch

%description doc
The freetds-doc package contains the useguide and reference of FreeTDS and can
be installed even if FreeTDS main package is not installed

%files doc
%doc doc/images doc/userguide doc/reference doc/*.html

#----------------------------------------------------------------------------

%prep
%autosetup -p1

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

# lib64 fix
sed -i -e "s|/lib\b|/%{_lib}|g" configure*

# perl path fix
find -type f | xargs sed -i -e "s|/usr/local/bin/perl|%{_bindir}/perl|g"

# cleanup the initial source
sed -i 's/\r//' doc/tds_ssl.html
sed -i '1 s,#!.*/perl,#!%{__perl},' samples/*.pl doc/api_status.txt

find doc/ samples/ COPYING* -type f -print0 | xargs -0 chmod -x
find . -name "*.[ch]" -print0 | xargs -0 chmod -x

# disable docs
sed -i -e 's#src doc#src#' Makefile.*


%build
autoreconf -fis

%configure \
	--disable-static \
	--with-tdsver=%{TDSVER} \
	--with-unixodbc=%{_prefix} \
	--enable-krb5 \
	--with-gnutls \
	--enable-sybase-compat \
	--enable-msdblib

%make_build

%install
%make_install

install -d %{buildroot}%{_datadir}/%{name}-%{version}/samples
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
install -m 0644 doc/*.1 %{buildroot}%{_mandir}/man1/
install -m 0644 doc/*.5 %{buildroot}%{_mandir}/man5/
cp -a -f samples/* %{buildroot}%{_datadir}/%{name}-%{version}/samples/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12777 |21mr|freetype-2.10.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without subpixel

%define major 6
%define libname %mklibname freetype %{major}
%define devname %mklibname freetype %{major} -d

%define git_url git://git.sv.gnu.org/freetype/freetype2.git
%define docver %(echo %version |cut -d. -f1-3)

Summary:	A free and portable TrueType font rendering engine
Name:		freetype
Version:	2.10.4
Release:	6
License:	FreeType License/GPLv2+
Group:		System/Libraries
Url:		http://www.freetype.org/
Source0:	http://downloads.sourceforge.net/freetype/%{name}-%{version}.tar.xz
Source1:	http://downloads.sourceforge.net/freetype/%{name}-doc-%{version}.tar.xz
Source2:	http://downloads.sourceforge.net/freetype/ft2demos-%{version}.tar.xz
Patch1:		freetype-2.4.2-CVE-2010-3311.patch
Patch2:		0001-Enable-table-validation-modules.patch
Patch3:		0002-Enable-infinality-subpixel-hinting.patch
# Enable subpixel rendering (ClearType)
Patch4:		freetype-2.3.0-enable-spr.patch
# CVE patches
Patch5:		CVE-2022-27404.patch
Patch6:		CVE-2022-27405.patch
Patch7:		CVE-2022-27406.patch
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(libbrotlienc)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
The FreeType2 engine is a free and portable TrueType font rendering engine.
It has been developed to provide TT support to a great variety of
platforms and environments. Note that FreeType2 is a library, not a
stand-alone application, though some utility applications are included

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for a free and portable TrueType font rendering engine
Group:		System/Libraries
# compat with Fedora/Red Hat
Provides:	freetype = %{EVRD}
Provides:	freetype%{major} = %{EVRD}

%description -n %{libname}
The FreeType2 engine is a free and portable TrueType font rendering
engine.  It has been developed to provide TT support to a great
variety of platforms and environments. Note that FreeType2 is a
library, not a stand-alone application, though some utility
applications are included

%files -n %{libname}
%{_libdir}/libfreetype.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static library for development with FreeType2
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}2-devel = %{EVRD}

%description -n %{devname}
This package is only needed if you intend to develop or compile applications
which rely on the FreeType2 library. If you simply want to run existing
applications, you won't need this package.

%files -n %{devname}
%doc docs/*
%{_bindir}/freetype-config
%{_libdir}/libfreetype.so
%{_includedir}/freetype
%{_includedir}/ft2build.h
%dir %{_includedir}/freetype2
%{_includedir}/freetype2/*
#%%{_mandir}/man1/freetype-config.1*
%{_datadir}/aclocal/*
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/freetype-config.1*

#----------------------------------------------------------------------------

%package demos
Summary:	A collection of FreeType demos
Group:		File tools

%description demos
The FreeType engine is a free and portable font rendering engine, developed to
provide advanced font support for a variety of platforms and environments. The
demos package includes a set of useful small utilities showing various
capabilities of the FreeType library.

%files demos
%{_bindir}/ftbench
%{_bindir}/ftdiff
%{_bindir}/ftdump
%{_bindir}/ftgamma
%{_bindir}/ftgrid
%{_bindir}/ftlint
%{_bindir}/ftmulti
%{_bindir}/ftstring
%{_bindir}/ftvalid
%{_bindir}/ftview

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1 -a2

enable() {
    if [ "$#" = "1" ]; then
	KEY=FT_CONFIG_OPTION_${1}
    else
	KEY=${1}_CONFIG_OPTION_${2}
    fi
    sed -i -e "s|^/\* #define ${KEY} \*/|#define ${KEY}|" include/freetype/config/ftoption.h devel/ftoption.h builds/unix/ftoption.h
}
disable() {
    if [ "$#" = "1" ]; then
	KEY=FT_CONFIG_OPTION_${1}
    else
	KEY=${1}_CONFIG_OPTION_${2}
    fi
    sed -i -e "s|^#define ${KEY}\$|/* #define ${KEY} */|" include/freetype/config/ftoption.h devel/ftoption.h builds/unix/ftoption.h
}

./autogen.sh
%configure \
	--enable-freetype-config \
%if %{with harfbuzz}
	--with-harfbuzz=yes \
%else
	--with-harfbuzz=no \
%endif
	--with-zlib=yes \
	--with-bzip2=yes \
	--with-png=yes

enable SUBPIXEL_RENDERING
enable PCF LONG_FAMILY_NAMES
disable CFF OLD_ENGINE

sed -i -e 's,^/\* #define FT_EXPORT_DEF(x).*,#define FT_EXPORT_DEF(x) __attribute__((visibility("default"))) x,' include/freetype/config/ftoption.h devel/ftoption.h builds/unix/ftoption.h

%build
%make_build

cd ft2demos-%{version}
# The purpose of overriding LINK_LIBRARY is getting rid of ****ing
# rpath
%make TOP_DIR=".." X11_LIB="" \
LINK_LIBRARY='$(LIBTOOL) --mode=link $(CCraw) -o $@ $(OBJECTS_LIST) \
                          -version-info $(version_info) \
                           $(LDFLAGS) -no-undefined \
                           # -export-symbols $(EXPORTS_LIST)'
cd -

%install
%make_install

install -d %{buildroot}%{_bindir}

for ftdemo in ftbench ftdiff ftdump ftgamma ftgrid ftlint ftmulti ftstring ftvalid ftview; do
    builds/unix/libtool --mode=install install -m 755 ft2demos-%{docver}/bin/$ftdemo %{buildroot}%{_bindir}
done

# compatibility symlink
ln -sf freetype2/freetype %{buildroot}%{_includedir}/freetype
ln -sf freetype2/ft2build.h %{buildroot}%{_includedir}/ft2build.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12778 |21mr|frei0r-plugins-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname frei0r
%define commit febd73874dab6be330398a3b55112451b36ee939
%define short_commit %(echo %{commit} | head -c 6)

Summary:	A minimalistic plugin API for video effects
Name:		%{oname}-plugins
Version:	1.8.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.piksel.org/frei0r
Source0:	https://github.com/dyne/frei0r/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch1:		frei0r-1.3-build-docs-by-default.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	opencv-devel
Buildrequires:	pkgconfig(cairo)
Buildrequires:	pkgconfig(gavl)
BuildRequires:	pkgconfig(libpng)
# for HTML docs with pictures
BuildRequires:	graphviz
%rename		%{oname}

%description
frei0r - a minimalistic plugin API for video effects.

It is a minimalistic plugin API for video sources and filters.
The behaviour of the effects can be controlled from the host by
simple parameters. The intent is to solve the recurring
reimplementation or adaptation issue of standard effects.

It is not meant as a generic API for all kinds of video
applications.

There is no support for the requirements of special application
areas like non linear editors, hardware accelerated shader effects,
and high precision video processing. These advanced issues are not
even solved satisfactory for non cross application plugin apis and
are still an evolving field.

The frei0r API is not meant to be a competing standard to more
ambitious efforts.

%files
%dir %{_libdir}/frei0r-1
%{_libdir}/frei0r-1/*.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for frei0r-plugins
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
The fri0r-plugins-devel package contains header files for developing
applications that use frei0r-plugins.

%files devel
%doc %{_docdir}/%{name}
%{_includedir}/frei0r.h
%{_libdir}/pkgconfig/frei0r.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{commit}

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12779 |21mr|fribidi-1.0.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Library to support Bi-directional scripts
Name:		fribidi
Version:	1.0.10
Release:	3
License:	LGPLv2.1+
Group:		System/Internationalization
Url:		http://fribidi.org
# building from git tag requires /usr/bin/c2man which is not packaged in ROSA
Source0:	https://github.com/fribidi/fribidi/releases/download/v%{version}/fribidi-%{version}.tar.xz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	meson
Patch0:		CVE-2022-25308.patch
Patch1:		CVE-2022-25309.patch
Patch2:		CVE-2022-25310.patch

%description
A library to handle bidirectional scripts (eg hebrew, arabic), so that
the display is done in the proper way; while the text data itself is
always written in logical order.

The library uses unicode internally.

%files
%doc README AUTHORS ChangeLog TODO THANKS NEWS
%{_bindir}/fribidi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to support Bi-directional scripts
Group:		System/Libraries

%description -n %{libname}
A library to handle bidirectional scripts (eg hebrew, arabic), so that
the display is done in the proper way; while the text data itself is
always written in logical order.

The library uses unicode internally.

%files -n %{libname}
%{_libdir}/libfribidi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for development with %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{_lib}fribidi-static-devel < 0.19.2-6

%description -n %{devname}
This package includes the libraries and header files for the %{name}
package.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%set_build_flags
%meson

%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12780 |21mr|frozen-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Header-only, constexpr alternative to gperf for C++14
Name:		frozen
Version:	1.1.1
Release:	1
Group:		Development/C++
License:	Apache-2.0
Source0:	https://github.com/serge-sans-paille/frozen/archive/refs/tags/1.1.1.tar.gz
Patch0:		frozen-1.1.1-missing-include.patch
URL:		https://github.com/frozen/frozen
BuildRequires:	cmake
BuildRequires:	ninja
BuildArch:	noarch

%description
Header-only library that provides 0 cost initialization for immutable
containers, fixed-size containers, and various algorithms.

Frozen provides:

immutable (a.k.a. frozen), constexpr-compatible versions of std::set,
std::unordered_set, std::map and std::unordered_map.
fixed-capacity, constinit-compatible versions of std::map and
std::unordered_map with immutable, compile-time selected keys mapped to
mutable values.

0-cost initialization version of std::search for frozen needles using
Boyer-Moore or Knuth-Morris-Pratt algorithms.
The unordered_* containers are guaranteed perfect (a.k.a. no hash collision)
and the extra storage is linear with respect to the number of keys.

Once initialized, the container keys cannot be updated, and in exchange,
lookups are faster. And initialization is free when constexpr or constinit is
used.

#--------------------------------------------------------------------------

%package	devel
Summary:	Header-only, constexpr alternative to gperf for C++14
Group:		Development/C++

%description	devel
Header-only library that provides 0 cost initialization for immutable
containers, fixed-size containers, and various algorithms.

%files	devel
%{_includedir}/frozen
%{_datadir}/cmake/frozen

#--------------------------------------------------------------------------

%prep
%autosetup -p1
%cmake -G Ninja

%build
%ninja_build -C build

%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12781 |21mr|fslsfonts-1.0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	List fonts served by X font server
Name:		fslsfonts
Version:	1.0.5
Release:	2
License:	MIT
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(libfs)
BuildRequires:	pkgconfig(x11)

%description
Fslsfonts lists the fonts that match the given pattern.

%files
%{_bindir}/fslsfonts
%{_mandir}/man1/fslsfonts.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12782 |21mr|fstobdf-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Generate BDF font from X font server
Name:		fstobdf
Version:	1.0.6
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(libfs)
BuildRequires:	pkgconfig(x11)

%description
The fstobdf program reads a font from a font server and generate BDF font.

%files
%{_bindir}/fstobdf
%{_mandir}/man1/fstobdf.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12783 |21mr|fstrcmp-0.7.D001-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Fuzzy string compare library
Name:		fstrcmp
Version:	0.7.D001
Release:	3
License:	GPLv3+
Group:		File tools
Url:		http://fstrcmp.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	ghostscript
BuildRequires:	groff
BuildRequires:	libtool

%description
The fstrcmp package provides a library which may be used to make fuzzy
comparisons of strings and byte arrays. It also provides simple commands
for use in shell scripts.

%files
%doc LICENSE README
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fuzzy string compare shared library
Group:		System/Libraries

%description -n %{libname}
This package contains fuzzy string compare shared library.

%files -n %{libname}
%{_libdir}/libfstrcmp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc etc/reference.pdf
%{_includedir}/fstrcmp.h
%{_libdir}/libfstrcmp.so
%{_libdir}/pkgconfig/fstrcmp.pc
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# Fix permissions
chmod 0755 %{buildroot}%{_libdir}/lib%{name}.so.%{major}*

# Remove useless compilation instructions
rm %{buildroot}%{_defaultdocdir}/%{name}/building.pdf
# Remove API documentation in main subpackage
rm %{buildroot}%{_defaultdocdir}/%{name}/reference.pdf
# Remove duplicate README in PDF
rm %{buildroot}%{_defaultdocdir}/%{name}/readme.pdf

%check
# make t0001a ... t0010a
make $(seq -f "t%04ga" 1 10)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12784 |21mr|fstrm-0.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname fstrm %{major}
%define dev %mklibname fstrm -d

Summary:	Frame Streams implementation in C
Name:		fstrm
Version:	0.6.1
Release:	1
Group:		Development/C
License:	MIT
URL:		https://github.com/farsightsec/fstrm
Source0:	https://dl.farsightsecurity.com/dist/fstrm/fstrm-%{version}.tar.gz
Patch0:		fstrm-0.6.1-Fix-CLANG_WARNING.patch
Patch1:		fstrm-0.6.1-Fix-deadcode-and-check-return-code.patch
Patch2:		fstrm-0.6.1-Invalid-dereference.patch
Patch3:		fstrm-0.6.1-Possible-resource-leak-fix.patch
BuildRequires:	libtool
BuildRequires:	doxygen
BuildRequires:	libevent-devel

%description
Frame Streams is a light weight, binary clean protocol that allows for the
transport of arbitrarily encoded data payload sequences with minimal framing
overhead -- just four bytes per data frame. Frame Streams does not specify
an encoding format for data frames and can be used with any data serialization
format that produces byte sequences, such as Protocol Buffers, XML, JSON,
MessagePack, YAML, etc.

#------------------------------------------------------------------------

%package -n %libname
Summary:	Files for fstrm library
Group:		System/Libraries

%description -n %libname
Frame Streams is a light weight, binary clean protocol that allows for the
transport of arbitrarily encoded data payload sequences with minimal framing
overhead -- just four bytes per data frame. Frame Streams does not specify
an encoding format for data frames and can be used with any data serialization
format that produces byte sequences, such as Protocol Buffers, XML, JSON,
MessagePack, YAML, etc.

%files -n  %libname
%doc COPYRIGHT LICENSE html
%{_libdir}/libfstrm.so.*

#------------------------------------------------------------------------

%package -n %dev
Summary: Development Files for fstrm library
Requires: %{libname} = %{EVRD}
Provides: fstrm-devel

%description -n %dev
The fstrm-devel package contains header files required to build an application
using fstrm library.

%files -n %dev
%doc README.md
%{_bindir}/fstrm_capture
%{_bindir}/fstrm_dump
%{_bindir}/fstrm_replay
%{_mandir}/man1/fstrm_*
%{_includedir}/fstrm.h
%{_includedir}/fstrm/
%{_libdir}/pkgconfig/libfstrm.pc
%{_libdir}/libfstrm.so

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
    --prefix=/usr \
    --disable-static
%make
make html

%install
# install the library
%makeinstall_std
rm %{buildroot}%{_libdir}/libfstrm.la

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12785 |21mr|fuse2-2.9.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define ulmajor 1
%define libname %mklibname %{name} %{major}
%define libulm %mklibname ulockmgr %{ulmajor}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	Interface for userspace programs to export a virtual filesystem to the kernel
Name:		fuse2
Version:	2.9.9
Release:	6
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/libfuse
Source0:	https://github.com/libfuse/libfuse/releases/download/fuse-%{version}/fuse-%{version}.tar.gz
Source1:	fuse.conf
Patch0:		mount-readlink-hang-workaround.patch
Patch1:		fuse-2.9.2-namespace-conflict-fix.patch
Patch2:		fuse-0001-More-parentheses.patch
BuildRequires:	libtool
BuildRequires:	gettext-devel

%description
FUSE (Filesystem in USErspace) is a simple interface for userspace
programs to export a virtual filesystem to the linux kernel.  FUSE
also aims to provide a secure method for non privileged users to
create and mount their own filesystem implementations.

%files
%doc AUTHORS ChangeLog NEWS README.NFS
%attr(0755,root,root) /sbin/mount.fuse2
%attr(4755,root,root) /bin/fusermount2
%attr(0755,root,root) /bin/ulockmgr_server
%{_bindir}/fusermount2
%{_bindir}/ulockmgr_server
%{_mandir}/man1/fusermount.1.*
%{_mandir}/man1/ulockmgr_server.1.*
%{_mandir}/man8/mount.fuse.8.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for fuse2
License:	LGPLv2+
Group:		System/Libraries

%description -n %{libname}
Libraries for fuse2.

%files -n %{libname}
/%{_lib}/libfuse.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libulm}
Summary:	libulockmgr for fuse2
License:	LGPLv2+
Group:		System/Libraries
Conflicts:	%{libname} < 2.9.2-1

%description -n %{libulm}
Libraries for fuse2.

%files -n %{libulm}
/%{_lib}/libulockmgr.so.%{ulmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development libraries for %{name}
License:	LGPLv2+
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libulm} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and development libraries for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for fuse
License:	LGPLv2+
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static libraries for fuse.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n fuse-%{version}

sed -e 's|mknod|/bin/echo Disabled: mknod |g' -i util/Makefile.in
sed -i -e 's|INIT_D_PATH=.*|INIT_D_PATH=%{_initrddir}|' configure*

%build
%serverbuild_hardened
%configure \
%ifnarch %e2k
	CC="%{__cc} -fuse-ld=bfd" \
%endif
	--enable-static \
	--bindir=/bin \
	--exec-prefix=/
%make

%install
%makeinstall_std
install -d %{buildroot}/%{_lib}
for l in libfuse.so libulockmgr.so; do
	rm %{buildroot}%{_libdir}/${l}
	mv %{buildroot}%{_libdir}/${l}.*.* %{buildroot}/%{_lib}
	ln -sr %{buildroot}/%{_lib}/${l}.*.* %{buildroot}%{_libdir}/${l}
done

# Many programs call fusermount, let it be from fuse 3.x
mv -v %{buildroot}/bin/fusermount %{buildroot}/bin/fusermount2
mv -v %{buildroot}/sbin/mount.fuse %{buildroot}/sbin/mount.fuse2

# XXX: have a hard time believing that these symlinks are actually needed,,,
mkdir -p %{buildroot}%{_bindir}
ln -s /bin/fusermount2 %{buildroot}%{_bindir}/fusermount2
ln -s /bin/ulockmgr_server %{buildroot}%{_bindir}/ulockmgr_server

rm -rf %{buildroot}%{_sysconfdir}/rc.d/init.d %{buildroot}%{_sysconfdir}/udev/rules.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12786 |21mr|fuse-3.10.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name}3 %{major}
%define devname %mklibname %{name}3 -d
%define static %mklibname %{name}3 -d -s
# https://github.com/libfuse/libfuse/issues/198
# gcc lto not supported yet, but doesn't seem to affect clang
%define _disable_lto %nil

Summary:	Interface for userspace programs to export a virtual filesystem to the kernel
Name:		fuse
Version:	3.10.4
Release:	2
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/libfuse/libfuse
Source0:	https://github.com/libfuse/libfuse/releases/download/%{name}-%{version}/%{name}-%{version}.tar.xz

BuildRequires:	libtool
BuildRequires:	gettext-devel
BuildRequires:	meson
BuildRequires:	pkgconfig(libudev)

Provides:	fuse3 = %{EVRD}

# non-versioned binaries were moved from fuse2 to here, make upgrades smooth
OrderWithRequires(pre):	fuse2 >= 2.9.9-3

%description
FUSE (Filesystem in USErspace) is a simple interface for userspace
programs to export a virtual filesystem to the linux kernel.  FUSE
also aims to provide a secure method for non privileged users to
create and mount their own filesystem implementations.

%package -n %{libname}
Summary:	Libraries for fuse
Group:		System/Libraries
License:	LGPLv2+

%description -n %{libname}
Libraries for fuse.

%package -n %{devname}
Summary:	Header files and development libraries for libfuse2
Group:		Development/C
License:	LGPLv2+
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Header files and development libraries for fuse.

%package -n %{static}
Summary:	Static libraries for fuse
Group:		Development/C
License:	LGPLv2+
Provides:	%{name}-static-devel = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{static}
Static libraries for fuse.

%prep
%autosetup -p1
%meson -Duseroot=false -Db_lto=false

%build
%meson_build

%install
%meson_install

rm -rf %{buildroot}%{_sysconfdir}/rc.d/init.d %{buildroot}%{_sysconfdir}/udev/rules.d
rm -rf %{buildroot}%{_sysconfdir}/init.d

( cd %{buildroot}%{_bindir} ; ln -s fusermount3 fusermount )
( cd %{buildroot}%{_sbindir} ; ln -s mount.fuse3 mount.fuse )

%pre
if [ -x %{_sbindir}/control-dump ]; then
  control-dump fusermount ||:
fi

%post
if [ -x %{_sbindir}/control-restore ]; then
  control-restore ping fusermount ||:
fi

%files
%config(noreplace) %{_sysconfdir}/fuse.conf
%{_udevrulesdir}/99-fuse3.rules
%attr(4755,root,root) %{_bindir}/fusermount3
%{_bindir}/fusermount
%{_sbindir}/mount.fuse3
%{_sbindir}/mount.fuse
%{_mandir}/man1/fusermount3.1*
%{_mandir}/man8/mount.fuse3.8*

%files -n %{libname}
%{_libdir}/libfuse3.so.%{major}*

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12787 |21mr|fuse-exfat-1.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free exFAT file system implementation
Name:		fuse-exfat
Version:	1.3.0
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://github.com/relan/exfat
Source0:	https://github.com/relan/exfat/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(fuse)
Requires:	exfat-utils
Requires:	fuse

%description
This driver is the first free exFAT file system implementation with write
support. exFAT is a simple file system created by Microsoft. It is intended
to replace FAT32 removing some of it's limitations. exFAT is a standard FS
for SDXC memory cards.

%files
/sbin/mount.exfat
/sbin/mount.exfat-fuse
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--sbindir=/sbin
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12788 |21mr|fuseiso-20070708-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FUSE module to mount ISO filesystem images
Name:		fuseiso
Version:	20070708
Release:	13
License:	GPLv2+
Group:		File tools
Url:		http://fuse.sourceforge.net/wiki/index.php/FuseIso
Source0:	http://ubiz.ru/dm/%{name}-%{version}.tar.bz2
Patch0:		fuseiso-automake-1.13.patch
Patch1:		CVE-2015-8836.patch
Patch2:		CVE-2015-8837.patch
Patch3:		00-support_large_iso.patch
Patch4:		01-fix_typo.patch
Patch5:		05-infinite-loop-parsing-line-options-on-arm.patch
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(zlib)
Requires:	fuse >= 2.2

%description
FuseIso is a FUSE module to mount ISO filesystem images (.iso files,
.bin files, .nrg files..).

The main advantage of using this is that you don't have to be root.

%prep
%autosetup -p1

%build
export LDFLAGS="`pkg-config glib-2.0 --libs` -lz"
autoreconf -fi
%configure
%make

%install
%makeinstall

%files
%doc AUTHORS COPYING NEWS ChangeLog README 
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12789 |21mr|fuse-overlayfs-1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%{!?_modulesloaddir:%global _modulesloaddir %{_usr}/lib/modules-load.d}

Name:		fuse-overlayfs
Version:	1.10
Release:	1
License:	GPLv3+
Summary:	FUSE overlay+shiftfs implementation for rootless containers
Group:		System/Base
URL:		https://github.com/containers/%{name}
Source0:	https://github.com/containers/fuse-overlayfs/archive/refs/tags/v1.10.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	fuse-devel
Requires:	fuse3
Requires:	kmod

%description
%{summary}.

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/*
%{_modulesloaddir}/fuse-overlayfs.conf

%post
modprobe fuse > /dev/null 2>&1 || :

#-------------------------------------------------------
%package devel
Summary: %{summary}
BuildArch: noarch

%description devel
%{summary}

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

#-------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh
%configure
%make

%install
%make_install

install -d %{buildroot}%{_modulesloaddir}
echo fuse > %{buildroot}%{_modulesloaddir}/fuse-overlayfs.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12790 |21mr|fusesource-pom-1.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             fusesource-pom
Version:          1.11
Release:          6
Summary:          Parent POM for FuseSource Maven projects
License:          ASL 2.0
Group:            Development/Java
URL:              http://fusesource.com/
Source0:          http://repo1.maven.org/maven2/org/fusesource/fusesource-pom/%{version}/fusesource-pom-%{version}.pom
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local

%description
This is a shared POM parent for FuseSource Maven projects

%prep
%setup -c -T
cp %{SOURCE0} pom.xml
cp -p %{SOURCE1} LICENSE

%pom_remove_plugin :maven-scm-plugin

# WebDAV wagon is not available in Fedora.
%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-webdav-jackrabbit']]"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12791 |21mr|futuresql-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname futuresql5
%define devname %mklibname futuresql5 -d

Summary:	Non-blocking database framework for Qt
Name:		futuresql
Version:	0.1
Release:	1
Group:		System/Libraries
License:	GPLv2+
URL:		https://api.kde.org/futuresql/html/index.html
Source0:	https://invent.kde.org/libraries/futuresql/-/archive/%{version}/futuresql-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	qcoro-qt5-devel

%description
A non-blocking database framework for Qt.

FutureSQL was in part inspired by Diesel, and provides a higher level of
abstraction than QtSql. Its features include non-blocking database access
by default, relatively boilderplate-free queries, automatic database
migrations and simple mapping to objects.

In order to make FutureSQL's use of templates less confusing, FutureSQL
uses C++20 concepts, and requires a C++20 compiler.

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Non-blocking database framework for Qt
Group:		System/Libraries

%description -n %{libname}
A non-blocking database framework for Qt.

FutureSQL was in part inspired by Diesel, and provides a higher level of
abstraction than QtSql. Its features include non-blocking database access
by default, relatively boilderplate-free queries, automatic database
migrations and simple mapping to objects.

In order to make FutureSQL's use of templates less confusing, FutureSQL
uses C++20 concepts, and requires a C++20 compiler.

%files -n %{libname}
%{_libdir}/libfuturesql5.so.%{major}*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Non-blocking database framework for Qt (Development files)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	futuresql5-devel = %{EVRD}

%description -n %{devname}
A non-blocking database framework for Qt.

FutureSQL was in part inspired by Diesel, and provides a higher level of
abstraction than QtSql. Its features include non-blocking database access
by default, relatively boilderplate-free queries, automatic database
migrations and simple mapping to objects.

In order to make FutureSQL's use of templates less confusing, FutureSQL
uses C++20 concepts, and requires a C++20 compiler.

%files -n %{devname}
%{_includedir}/FutureSQL5
%{_libdir}/cmake/FutureSQL5
%{_libdir}/libfuturesql5.so

#---------------------------------------------------------------------------

%prep
%autosetup -p1
%cmake -G Ninja

%build
%ninja_build -C build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12792 |21mr|g2clib-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define major 0
%define libname %mklibname %{name}_ %{major}
%define develname %mklibname %{name} -d

Name:           g2clib
Version:        1.4.0
Release:        1
Summary:        GRIB2 encoder/decoder and search/indexing routines in C

Group:          Sciences/Mathematics
License:        Public Domain
URL:            http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/
Source0:        http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/g2clib-%{version}.tar
Source1:        g2clib-msg.txt
#Patch to fix up printf arguments on 64-bit machines
Patch0:         g2clib-1.2.1-64bit.patch
# Patch to remove multiple definitions of templates
Patch1:         g2clib-templates.patch
# Patch from Wesley Ebisuzaki <wesley.ebisuzaki@noaa.gov> to fix sigfault
# if simunpack() is called with 0 values to unpack
Patch2:         g2clib-simunpack.patch
# Patch from degrib - appears to fix projection issues
Patch3:         g2clib-degrib.patch
# Fix build with Jasper 2
Patch4:         g2clib-jasper2.patch

BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(jasper)

%description
This library contains "C" decoder/encoder
routines for GRIB edition 2.  The user API for the GRIB2 routines
is described in file "grib2c.doc".


%package -n     %{develname}
Summary:        Development files for %{name}
Group:          Development/C
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}
Requires:       libpng-devel jasper-devel

%description -n %{develname}
This library contains "C" decoder/encoder
routines for GRIB edition 2.  The user API for the GRIB2 routines
is described in file "grib2c.doc".

The %{develname} package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -q
%patch0 -p1 -b .64bit
%patch1 -p1 -b .templates
%patch2 -p1 -b .simunpack
%patch3 -p1 -b .degrib
%patch4 -p1 -b .jasper2
chmod a-x *.h *.c README CHANGES grib2c.doc makefile
cp -p %{SOURCE1} .


%build
CFLAGS="%{optflags} -DUSE_PNG -DUSE_JPEG2000"

%ifarch sparc64 s390x %{mips64}
CFLAGS="$CFLAGS -D__64BIT__ -fPIC"
%endif
%ifarch x86_64 ia64 %{power64} aarch64
CFLAGS="$CFLAGS -D__64BIT__ -fpic"
%endif
%ifarch %{ix86} %{arm} %{mips32}
CFLAGS="$CFLAGS -fpic"
%endif

make CFLAGS="$CFLAGS" CC="%{__cc}" ARFLAGS=


%install
mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_includedir}
install -p -m0644 libgrib2c.a %{buildroot}%{_libdir}
install -p -m0644 grib2.h %{buildroot}%{_includedir}
install -p -m0644 drstemplates.h %{buildroot}%{_includedir}
install -p -m0644 gridtemplates.h %{buildroot}%{_includedir}
install -p -m0644 pdstemplates.h %{buildroot}%{_includedir}

%files -n %{develname}
%doc README CHANGES grib2c.doc g2clib-msg.txt
%{_libdir}/libgrib2c.a
%{_includedir}/grib2.h
%{_includedir}/drstemplates.h
%{_includedir}/gridtemplates.h
%{_includedir}/pdstemplates.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12793 |21mr|g2clib-1.6.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define major 0
%define libname %mklibname %{name}_ %{major}
%define develname %mklibname %{name} -d

Name:           g2clib
Version:        1.6.3
Release:        3
Summary:        GRIB2 encoder/decoder and search/indexing routines in C

Group:          Sciences/Mathematics
License:        Public Domain
URL:            http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/
Source0:        http://www.nco.ncep.noaa.gov/pmb/codes/GRIB2/g2clib-%{version}.tar
Source1:        g2clib-msg.txt
#Patch to fix up printf arguments on 64-bit machines
Patch0:         g2clib-64bit.patch
# Patch to remove multiple definitions of templates
Patch1:         g2clib-templates.patch
# Patch from Wesley Ebisuzaki <wesley.ebisuzaki@noaa.gov> to fix sigfault
# if simunpack() is called with 0 values to unpack
Patch2:         g2clib-simunpack.patch
# Patch from degrib - appears to fix projection issues
Patch3:         g2clib-degrib.patch
# Fix build with Jasper 2
Patch4:         g2clib-jasper2.patch

%if %{lua: print(rpm.vercmp(rpm.expand("%version"),"1.6.0"))} >= 0
%global g2clib g2c_v%{version}
%else
%global g2clib grib2c
%endif

BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(jasper)

%description
This library contains "C" decoder/encoder
routines for GRIB edition 2.  The user API for the GRIB2 routines
is described in file "grib2c.doc".


%package -n     %{develname}
Summary:        Development files for %{name}
Group:          Development/C
Provides:       %{name}-static = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}
Requires:       libpng-devel jasper-devel

%description -n %{develname}
This library contains "C" decoder/encoder
routines for GRIB edition 2.  The user API for the GRIB2 routines
is described in file "grib2c.doc".

The %{develname} package contains libraries and header files for
developing applications that use %{name}.


%prep
%setup -q
%patch0 -p1 -b .64bit
%patch1 -p1 -b .templates
%patch2 -p1 -b .simunpack
%patch3 -p1 -b .degrib
%patch4 -p1 -b .jasper2
chmod a-x *.h *.c README CHANGES grib2c.doc makefile
cp -p %{SOURCE1} .


%build
CFLAGS="%{optflags} -DUSE_PNG -DUSE_JPEG2000"

%ifarch sparc64 s390x %{mips64}
CFLAGS="$CFLAGS -D__64BIT__ -fPIC"
%endif
%ifarch x86_64 ia64 %{power64} aarch64
CFLAGS="$CFLAGS -D__64BIT__ -fpic"
%endif
%ifarch %{ix86} %{arm} %{mips32}
CFLAGS="$CFLAGS -fpic"
%endif

make CFLAGS="$CFLAGS" CC="%{__cc}" ARFLAGS=


%install
mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_includedir}
install -p -m0644 lib%{g2clib}.a %{buildroot}%{_libdir}
install -p -m0644 grib2.h %{buildroot}%{_includedir}
install -p -m0644 drstemplates.h %{buildroot}%{_includedir}
install -p -m0644 gridtemplates.h %{buildroot}%{_includedir}
install -p -m0644 pdstemplates.h %{buildroot}%{_includedir}

%files -n %{develname}
%doc README CHANGES grib2c.doc g2clib-msg.txt
%{_libdir}/lib%{g2clib}.a
%{_includedir}/grib2.h
%{_includedir}/drstemplates.h
%{_includedir}/gridtemplates.h
%{_includedir}/pdstemplates.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12794 |21mr|game-music-emu-0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname gme %{major}
%define devname %mklibname gme -d

Summary:	Game Music Emulators library
Name:		game-music-emu
Version:	0.6.3
Release:	1
License:	LGPLv2.1+
Group:		Sound
Url:		https://bitbucket.org/mpyne/game-music-emu/wiki/Home
Source0:	https://bitbucket.org/mpyne/%{name}/downloads/%{name}-%{version}.tar.xz
BuildRequires:	cmake >= 2.6
# TODO: Verify if can be useful installing the player demo program
# Buildrequires:	pkgconfig(sdl)
BuildRequires:	zlib-devel
BuildRequires:	ubsan-devel

%description
This is a collection of video game music file emulators that supports a
variety of formats and systems.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Game Music Emulators library
Group:		System/Libraries

%description -n %{libname}
This is a collection of video game music file emulators that supports a
variety of formats and systems.

%files -n %{libname}
%doc readme.txt gme.txt license.txt
%{_libdir}/libgme.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Game Music Emulators development library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	libgme-devel = %{EVRD}

%description -n %{devname}
This is a collection of video game music file emulators that supports a
variety of formats and systems.

%files -n %{devname}
%doc changes.txt design.txt
%{_libdir}/libgme.so
%{_libdir}/pkgconfig/libgme.pc
%{_includedir}/gme

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12795 |21mr|gaupol-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Subtitle editor
Name:		gaupol
Version:	1.9
Release:	1
License:	GPLv3+
Group:		Video
Url:		http://otsaloma.io/gaupol/
Source0:	https://github.com/otsaloma/gaupol/archive/%{version}.tar.gz?//%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	gtkspell3 >= 3.0.0
BuildRequires:	intltool
BuildRequires:	iso-codes
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.12
BuildRequires:	pkgconfig(pygobject-3.0) >= 3.12
BuildRequires:	pkgconfig(python3) >= 3.2
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	python3-aeidon
Requires:	python3-chardet
Requires:	python3-enchant >= 1.4.0
Requires:	python3-gstreamer1.0
Recommends:	gstreamer1.0-libav
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-ugly
Recommends:	vlc
BuildArch:	noarch

%description
Editor for text-based subtitle files. It supports multiple subtitle file
formats and provides means of correcting texts and timing subtitles to match
video. The user interface is designed with attention to batch processing of
multiple documents and convenience of translating.

%files -f %{name}.lang
%doc AUTHORS.md COPYING NEWS.md README.md
%{_bindir}/%{name}
%{python3_sitelib}/%{name}*
%{_datadir}/applications/io.otsaloma.%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/apps/io.otsaloma.%{name}.*
%{_datadir}/icons/hicolor/symbolic/apps/io.otsaloma.gaupol-symbolic.svg
%{_datadir}/metainfo/io.otsaloma.%{name}.appdata.xml
%{_mandir}/man1/%{name}.1*
# python3-aeidon in project https://abf.io/import/python-aeidon
%exclude %{python3_sitelib}/aeidon
#----------------------------------------------------------------------
%prep
%autosetup -p1

%build
%{__python3} setup.py build


%install
%{__python3} setup.py install --root %{buildroot}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12796 |21mr|gavl-1.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Gmerlin Audio Video Library
Name:		gavl
Version:	1.4.0
Release:	6
License:	GPLv2+
Group:		System/Libraries
Url:		http://gmerlin.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/gmerlin/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(samplerate)

%description
GAVL is short for Gmerlin Audio Video Library. It standardized types audio
and video formats, and defines generic container types for video frames and
blocks of audio samples.

In addition, it handles the sometimes ugly task to convert between all these
formats. The idea is to be able to convert from any format to any other with
the lowest possible CPU usage.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Shared libraries from %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc AUTHORS TODO README
%doc %{_datadir}/doc/gavl/apiref
%{_libdir}/pkgconfig/*.pc
%{_includedir}/gavl
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q
#Disable buildtime cpu detection
sed -i -i 's/LQT_TRY_CFLAGS/dnl LQT_TRY_CFLAGS/g' configure.ac
sed -i -i 's/LQT_OPT_CFLAGS/dnl LQT_OPT_CFLAGS/g' configure.ac

%build
autoreconf -fi
# Adding some upstream CFLAGS
export CFLAGS=$(echo %{optflags} | sed -e "s/-O2/-O3 -funroll-all-loops -fomit-frame-pointer -ffast-math -fvisibility=hidden/")
%configure	\
	--disable-static \
	--disable-cpu-clip

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12797 |21mr|gawk-5.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GNU version of the awk text processing utility
Name:		gawk
Version:	5.2.0
Release:	3
License:	GPLv3+
Group:		Text tools
Url:		http://www.gnu.org/software/gawk/gawk.html
Source0:	http://ftp.gnu.org/gnu/gawk/%{name}-%{version}.tar.xz
# fix double free error
Patch0:		gawk-double-free.patch
BuildRequires:	byacc
BuildRequires:	gettext-devel
BuildRequires:	texinfo
BuildRequires:	libsigsegv-devel >= 2.8
Provides:	awk
Provides:	/usr/bin/awk
Provides:	/usr/bin/gawk
Provides:	/bin/awk
Provides:	/bin/gawk

%description
The gawk packages contains the GNU version of awk, a text processing
utility.  Awk interprets a special-purpose programming language to do
quick and easy text pattern matching and reformatting jobs. Gawk should
be upwardly compatible with the Bell Labs research version of awk and
is almost completely compliant with the 1993 POSIX 1003.2 standard for
awk.

Install the gawk package if you need a text processing utility. Gawk is
considered to be a standard Linux tool for processing text.

%files -f %{name}.lang
%defattr(644,root,root,755)
%attr(755,root,root) /bin/*
%attr(755,root,root) %{_bindir}/*
%{_mandir}/*/*
%{_infodir}/*
%{_libdir}/gawk
%{_libexecdir}/*
%{_datadir}/awk
%{_sysconfdir}/profile.d/gawk.*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation about the GNU version of the awk text processing utility
Group:		Documentation

%description doc
The gawk packages contains the GNU version of awk, a text processing
utility.  Awk interprets a special-purpose programming language to do
quick and easy text pattern matching and reformatting jobs. Gawk should
be upwardly compatible with the Bell Labs research version of awk and
is almost completely compliant with the 1993 POSIX 1003.2 standard for
awk.

%files doc
%doc README INSTALL NEWS
%doc README_d POSIX.STD doc/*.pdf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# bug with tests
sed -i '/^pty1:$/s|$|\n_pty1:|' test/Makefile.in


%build
export CC=gcc
export CXX=g++
%define _disable_rebuild_configure 1
libtoolize --force
aclocal -I m4
autoheader
automake -a
autoconf

pushd extension
sed -i 's/AC_ZOS_USS//'  configure.ac
libtoolize --force --copy
aclocal -I m4
autoheader
automake -a
autoconf
popd

# Note that build scripts add -no-pie linker flags
# so we get non-PIE executables
# (here we effectively add -Wl,-z,now)
%serverbuild_hardened
%configure \
	--with-libsigsegv-prefix=%{_prefix}

%make_build
%make_build -C doc

# (tpg) seems like tests fails due to overlayfs which is used inside docker-builder
#check
#make check

%install
%make_install  bindir=/bin
%find_lang %{name}

mkdir -p %{buildroot}%{_bindir}
cd %{buildroot}%{_datadir}
mkdir awk && for i in *.awk;do
	mv $i awk
done
cd %{buildroot}%{_mandir}/man1
ln -s gawk.1 awk.1
cd %{buildroot}%{_bindir}
ln -s ../../bin/awk %{buildroot}%{_bindir}/awk
ln -s ../../bin/gawk %{buildroot}%{_bindir}/gawk
rm %{buildroot}/bin/gawk-%{version}

# For now, there's nothing that uses the gawk API.
# Let's start shipping it if and when it becomes useful.
rm -rf %buildroot%_includedir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12798 |21mr|gc-8.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bdwgc

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	Conservative garbage collector for C
Name:		gc
Version:	8.2.2
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://github.com/ivmai/bdwgc/
Source0:	https://github.com/ivmai/bdwgc/archive/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	libatomic_ops-devel

%description
Boehm's GC is a garbage collecting storage allocator that is intended to be
used as a plug-in replacement for C's malloc.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Conservative garbage collector for C
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Boehm's GC is a garbage collecting storage allocator that is intended to be
used as a plug-in replacement for C's malloc.

%files -n %{libname}
%doc README.QUICK
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and documentation for Bohem's GC
Group:		Development/C
License: 	BSD
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and documentation needed to develop programs that use Bohem's GC.

%files -n %{devname}
%{_libdir}/*.so
%dir %{_includedir}/gc
%{_includedir}/%{name}/*
%{_includedir}/*h
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for Bohem's GC
Group:		Development/C
License:	BSD
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static libraries neded to develop programs that use Bohem's GC.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%autopatch -p1
# refresh auto*/libtool to purge rpaths
rm -f libtool libtool.m4
libtoolize --force
autoreconf -i

%build
%configure \
	--disable-dependency-tracking \
	--enable-cplusplus \
	--enable-static \
%ifarch %{ix86}
	--enable-parallel-mark \
%endif
	--enable-threads=pthreads

%make_build

%check
make check

%install
%make_install

rm -rf %{buildroot}%{_datadir}

install -m644 doc/gc.man -D %{buildroot}%{_mandir}/man3/gc.3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12799 |21mr|gcab-1.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Tool and library mainly made to create Cabinet files
Name:		gcab
Version:	1.4
Release:	10
License:	GPLv2+
Group:		Development/Databases
Url:		https://download.gnome.org/sources/gcab
Source0:	https://download.gnome.org/sources/gcab/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	git
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(vapigen)

%description
Tool and library mainly made to create Cabinet files.
 - creation supports plain and basic MSZIP compression
 - can open and list files from cabinet, no extraction

%files -f %{name}.lang
%doc COPYING NEWS
%{_bindir}/gcab
%{_mandir}/man1/gcab.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A support library for %{name}
Group:		System/Libraries

%description -n %{libname}
A support library for %{name}.

%files -n %{libname}
%doc COPYING NEWS
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING NEWS
%{_libdir}/girepository-1.0/GCab-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc COPYING NEWS
%{_datadir}/gtk-doc/html/gcab
%{_includedir}/lib%{name}-%{api}/*
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/GCab-%{api}.gir
%{_datadir}/vala/vapi/libgcab-%{api}.deps
%{_datadir}/vala/vapi/libgcab-%{api}.vapi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12800 |21mr|gcc-11.4.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Listed targets are short form and will be expanded by rpm
# gnueabihf variants etc. are inserted by rpm into long_targets
%ifarch %{riscv}
# Still missing a few deps...
%global targets aarch64-linux armv7hnl-linux x86_64-linux x32-linux riscv64-linux aarch64-linuxmusl armv7hnl-linuxmusl i686-linuxmusl x86_64-linuxmusl x32-linuxmusl riscv64-linuxmusl
%else
%ifarch %{ix86}
# FIXME at some point, we need to figure out why x86_32 to
# x86_64-mingw crosscompilers are broken
%global targets aarch64-linux armv7hnl-linux x86_64-linux x32-linux riscv64-linux aarch64-linuxmusl armv7hnl-linuxmusl i686-linuxmusl x86_64-linuxmusl x32-linuxmusl riscv64-linuxmusl i686-mingw32
%global bootstraptargets i686-linux aarch64-linuxuclibc armv7hnl-linuxuclibc i686-linuxuclibc riscv64-linuxuclibc ppc64-linux ppc64le-linux
%else
%global targets aarch64-linux armv7hnl-linux x86_64-linux x32-linux riscv64-linux aarch64-linuxmusl armv7hnl-linuxmusl i686-linuxmusl x86_64-linuxmusl x32-linuxmusl riscv64-linuxmusl i686-mingw32 x86_64-mingw32 i686-linux ppc64-linux ppc64le-linux ppc64le-linuxmusl
%global bootstraptargets aarch64-linuxuclibc armv7hnl-linuxuclibc i686-linuxuclibc x86_64-linuxuclibc x32-linuxuclibc riscv64-linuxuclibc ppc64-linuxuclibc ppc64le-linuxuclibc ppc64-linuxmusl
%endif
%endif
# Once bionic is built, add: aarch64-android armv7l-android armv8l-android
%global long_targets %(
        for i in %{targets}; do
                CPU=$(echo $i |cut -d- -f1)
                OS=$(echo $i |cut -d- -f2)
                echo -n "$(rpm --target=${CPU}-${OS} -E %%{_target_platform}) "
        done
)
%global long_bootstraptargets %(
        for i in %{bootstraptargets}; do
                CPU=$(echo $i |cut -d- -f1)
                OS=$(echo $i |cut -d- -f2)
                echo -n "$(rpm --target=${CPU}-${OS} -E %%{_target_platform}) "
        done
)
%bcond_with crosscompilers

# functions with printf format attribute but with special parser and also
# receiving non constant format strings
%define		Werror_cflags			%{nil}

# avoid failures when testing if compiler used to build gcc can generate
# shared objects (regardless of unresolved symbols)
%define		_disable_ld_no_undefined	1

# avoid build failure due to configure built with different autoconf version
%define		_disable_libtoolize		1
# -flto in compiler flags breaks things, but --with-build-config=bootstrap-lto
# does the right thing
%define		_disable_lto			1

# (tpg) optimize it a bit
%global optflags %{optflags} -O3
#-----------------------------------------------------------------------

%define nof_arches		noarch
%define biarches		%{x86_64} mips64 mips64el mips mipsel

%define	system_gcc		1
%define majorver %(echo %{version} |cut -d. -f1)

%if %{system_gcc}
%define cross_prefix		%{nil}
%define cross_program_prefix	%{nil}
%define package_suffix		%{nil}
%define program_prefix		%{nil}
%define program_suffix		%{nil}
%define	program_long_suffix	-%{version}
%else
%define cross_prefix		%{nil}
%define cross_program_prefix	%{nil}
%define package_suffix		%{branch}
%define program_prefix		%{nil}
%define program_suffix		%{branch}
%define program_long_suffix	%{branch}
%endif

# Define GCC target platform, and arch we built for
%define arch			%(echo %{_target_cpu}|sed -e "s/\\(i.86\\|athlon\\)/i386/" -e "s/amd64/x86_64/")
%define	target_cpu		%{arch}
%define gcc_target_platform	%{_target_platform}
%define target_prefix		%{_prefix}
%define target_libdir		%{_libdir}
%define target_slibdir		/%{_lib}
%define target_slibdir32	/lib
%define isarch()		%(case " %* " in (*" %{arch} "*) echo 1;; (*) echo 0;; esac)

%if %isarch %{x86_64}
%define multilib_32_arch	i686
%endif
%if %isarch mips64
%define	multilib_32_arch	mips
%endif
%if %isarch mips64el
%define	multilib_32_arch	mipsel
%endif
%if %isarch %{biarches}
%define gcc32_target_platform	%{multilib_32_arch}-%{_target_vendor}-%{_target_os}%{?_gnu}
%endif

%define		default_compiler	1
%define		majorver		%(echo %{version} |cut -d. -f1)
%define		branch			11.4
%define		ver			%{branch}.0
%define		prerelease		%{nil}
%define		gcclibexecdirparent	%{_libexecdir}/gcc/%{gcc_target_platform}/
%define		gcclibexecdir		%{gcclibexecdirparent}/%{ver}
%define		gccdirparent		%{_libdir}/gcc/%{gcc_target_platform}/
%define		gccdir			%{gccdirparent}/%{ver}
%define		multigccdir		%{_libdir}/gcc/%{gcc_target_platform}/%{ver}/32
%define		multigccdirn32		%{_libdir}/gcc/%{gcc_target_platform}/%{ver}/n32
%define		multigccdir64		%{_libdir}/gcc/%{gcc_target_platform}/%{ver}/64
%define		multilibdir		%{target_prefix}/lib
%define		multirootlibdir		/lib

#-----------------------------------------------------------------------
%define		gcc_major		1
%define		libgcc			%mklibname gcc %{gcc_major}
%define		multilibgcc		libgcc%{gcc_major}
%define		libx32gcc		libx32gcc%{gcc_major}
%define		libgcc_devel		%mklibname gcc -d
%define		libgcc_static_devel	%mklibname gcc -d -s
%define		stdcxx_major		6
%define		libstdcxx		%mklibname stdc++ %{stdcxx_major}
%define		libstdcxx_devel		%mklibname stdc++ -d
%define		libstdcxx_static_devel	%mklibname stdc++ -d -s
%define		multilibstdcxx		libstdc++%{stdcxx_major}
%define		d_major			2
%define		libgdruntime		%mklibname gdruntime %{d_major}
%define		libgdruntime_devel	%mklibname gdruntime -d
%define		libgdruntime_static_devel	%mklibname gdruntime -d -s
%define		multilibgdruntime	libgdruntime%{d_major}
%define		gfortran_major		5
%define		libgfortran		%mklibname gfortran %{gfortran_major}
%define		libgfortran_devel	%mklibname gfortran -d
%define		libgfortran_static_devel %mklibname gfortran -d -s
%define		multilibgfortran	libgfortran%{gfortran_major}
%define		ffi_major		4
%define		libffi			%mklibname ffi %{ffi_major}
%define		libffi_devel		%mklibname ffi -d
%define		libffi_static_devel	%mklibname ffi -d -s
%define		multilibffi		libffi%{ffi_major}
%define		gnat_major		1
%define		libgnat			%mklibname gnat %{gnat_major}
%define		libgnat_devel		%mklibname gnat -d
%define		libgnat_static_devel	%mklibname gnat -d -s
%define		multilibgnat		libgnat%{gnat_major}
%define		go_major		19
%define		libgo			%mklibname go %{go_major}
%define		libgo_devel		%mklibname go -d
%define		libgo_static_devel	%mklibname go -d -s
%define		multilibgo		libgo%{go_major}
%define		cc1_major		0
%define		libcc1			%mklibname cc1 %{cc1_major}
%define		libcc1_devel		%mklibname cc1 -d
%define		libcc1_static_devel	%mklibname cc1 -d -s
%define		gomp_major		1
%define		libgomp			%mklibname gomp %{gomp_major}
%define		libgomp_devel		%mklibname gomp -d
%define		libgomp_static_devel	%mklibname gomp -d -s
%define		multilibgomp		libgomp%{gomp_major}
%define		objc_major		4
%define		libobjc			%mklibname objc %{objc_major}
%define		libobjc_devel		%mklibname objc -d
%define		libobjc_static_devel	%mklibname objc -d -s
%define		multilibobjc		libobjc%{objc_major}
%define		quadmath_major		0
%define		libquadmath		%mklibname quadmath %{quadmath_major}
%define		libquadmath_devel	%mklibname quadmath -d
%define		libquadmath_static_devel %mklibname quadmath -d -s
%define		multilibquadmath	libquadmath%{quadmath_major}
%define		ssp_major		0
%define		libssp			%mklibname ssp %{ssp_major}
%define		libssp_devel		%mklibname ssp -d
%define		libssp_static_devel	%mklibname ssp -d -s
%define		multilibssp		libssp%{ssp_major}
%define		itm_major		1
%define		libitm			%mklibname itm %{itm_major}
%define		libitm_devel		%mklibname itm -d
%define		libitm_static_devel	%mklibname itm -d -s
%define		multilibitm		libitm%{itm_major}
%define		asan_major		6
%define		libasan			%mklibname asan %{asan_major}
%define		libasan_devel		%mklibname asan -d
%define		libasan_static_devel	%mklibname asan -d -s
%define		multilibasan		libasan%{asan_major}
%define		tsan_major		0
%define		libtsan			%mklibname tsan %{tsan_major}
%define		libtsan_devel		%mklibname tsan -d
%define		libtsan_static_devel	%mklibname tsan -d -s
%define		atomic_major		1
%define		libatomic		%mklibname atomic %{atomic_major}
%define		libatomic_devel		%mklibname atomic -d
%define		libatomic_static_devel	%mklibname atomic -d -s
%define		multilibatomic		libatomic%{atomic_major}
%define		ubsan_major		1
%define		libubsan		%mklibname ubsan %{ubsan_major}
%define		libubsan_devel		%mklibname ubsan -d
%define		libubsan_static_devel	%mklibname ubsan -d -s
%define		multilibubsan		libubsan%{ubsan_major}
%define		vtv_major		0
%define		libvtv			%mklibname vtv %{vtv_major}
%define		libvtv_devel		%mklibname vtv -d
%define		libvtv_static_devel	%mklibname vtv -d -s
%define		multilibvtv		libvtv%{vtv_major}
%define		lsan_major		0
%define		liblsan			%mklibname lsan %{lsan_major}
%define		liblsan_devel		%mklibname lsan -d
%define		liblsan_static_devel	%mklibname lsan -d -s
%define		hwasan_major		0
%define		libhwasan			%mklibname hwasan %{hwasan_major}
%define		libhwasan_devel		%mklibname hwasan -d
%define		libhwasan_static_devel	%mklibname hwasan -d -s

#-----------------------------------------------------------------------
%define		build_ada		0
%define		build_asan		0
%define		build_check		0
%define		build_multilib		0
%define		build_go		0
%define		build_d			%{system_gcc}
%define		build_lto		1
%define		build_atomic		1
%define		build_objc		0
%define		build_objcxx		0
%define		build_quadmath		0
%define		build_ssp		0
%define		build_ubsan		%{system_gcc}
%if %isarch %{ix86} %{x86_64} %{arm}
%define		build_itm		1
%else
# aarch64 libitm support not implemented yet
%define		build_itm		0
%endif
%define		build_cxx		%{system_gcc}
%define		build_doc		0
%define		build_ffi		%{system_gcc}
%define		build_fortran		%{system_gcc}
%define		build_gomp		%{system_gcc}
# need to build if major does not conflict with current system_gcc
%define		build_libgcc		%{system_gcc}
%define		build_pdf		%{build_doc}
%define		build_plugin		%{system_gcc}
%if %isarch %{x86_64} %{armx}
  %define	build_tsan		%{system_gcc}
  %define	build_lsan		%{system_gcc}

%if %isarch %{x86_64}
  %define	build_multilib		%{system_gcc}
%endif
%endif
%if %isarch %{ix86} %{x86_64}
  %define	build_quadmath		%{system_gcc}
  %define	build_doc		1
# system_gcc && build_cxx
  %define	build_go		%{system_gcc}
  %define	build_vtv		%{system_gcc}
%endif
%if %isarch %{ix86} %{x86_64}
  %define	build_ada		%{system_gcc}
%endif
%if %isarch %{ix86} %{x86_64} %{armx} %{riscv}
  %define	build_objc		%{system_gcc}
  %define	build_objcxx		%{system_gcc}
  %define	build_go		%{system_gcc}
%if %isarch %{ix86} %{x86_64} %{armx} %{riscv}
  %define	build_asan		%{system_gcc}
%else
  %define	build_asan		0
%endif
%endif

%define		build_doc		0
%define		build_pdf		0

%define		package_ffi		0

# Some versions of gcc build shared libgnat/libgnarl, some don't...
%define		shared_libgnat		1

# Define C library to use
%define		libc			glibc
%define		libc_shared		1

%define		build_minimal		0

%if %{build_minimal}
%define		build_ada		0
%define		build_asan		0
%define		build_atomic		0
%define		build_check		0
%define		build_go		0
%define		build_d			0
%define		build_lto		0
%define		build_lsan		0
%define		build_objc		0
%define		build_objcxx		0
%define		build_quadmath		0
%define		build_ssp		0
%define		build_tsan		0
%define		build_ubsan		0
%define		build_vtv		0
%define		build_itm		0
%define		build_cxx		0
%define		build_doc		0
%define		build_ffi		0
%define		build_fortran		0
%define		build_gomp		0
%define		build_libgcc		0
%define		build_pdf		0
%define		build_plugin		0
%define		package_ffi		0
%define		shared_libgnat		0
%endif

#-----------------------------------------------------------------------

Summary:	GNU Compiler Collection
%if %{system_gcc}
Name:		gcc
%else
Name:		gcc%{package_suffix}
%endif
License:	GPLv3+ and GPLv3+ with exceptions and GPLv2+ with exceptions and LGPLv2+ and BSD
Group:		Development/C
Url:		http://gcc.gnu.org/
%define		major %(echo %{ver} |cut -d. -f1)
%if "%{prerelease}" != ""
Version:	%{ver}
Release:	0.%(echo %{prerelease} |sed -e 's,-,_,g').2
%global major %(echo %{ver} |cut -d. -f1)
%define srcname gcc-%{major}-%{prerelease}
Source0:	http://mirror.koddos.net/gcc/snapshots/%{major}-%{prerelease}/%{srcname}.tar.xz
Source1:	http://mirror.koddos.net/gcc/snapshots/%{major}-%{prerelease}/sha512.sum
%else
Version:	%{ver}
Release:	11
# http://www.gnu.org/prep/ftp.html ...
Source0:	http://mirror.koddos.net/gcc/releases/gcc-%{version}/gcc-%{version}.tar.xz
Source1:	http://mirror.koddos.net/gcc/releases/gcc-%{version}/sha512.sum
%define srcname gcc-%{version}
%endif
Source4:	c89
Source5:	c99

# environment variables for enabling/disabling colorized gcc output
Source10:	gcc.sysconfig
Source11:	gcc.sh
Source12:	gcc.csh

Source100:	gcc.rpmlintrc

Patch0:		gcc-4.7.1-uclibc-ldso-path.patch
Patch1:		libstdc++-pthread-linkage.patch
Patch2:		gcc-4.8-aarch64-ld-path.patch
Patch3:		gcc-4.7.1-linux32.patch
Patch4:		gnatmake-execstack.patch
Patch6:		gcc-9-20190706-use-bfd-ld-with-lto.patch
Patch7:		gcc-4.7.1-linker-plugin-detect.patch
Patch8:		gcc-4.7.1-extern-inline-not-inlined.patch
# Patch for Android compatibility (creating Linux->Android crosscompilers etc)
Patch9:		gcc-4.7-androidcompat.patch
Patch10:	gcc-4.7.3-texinfo-5.0.patch
# Fix build failure
Patch11:	gcc-4.8-istream-ignore.patch
# Seems to be still required on armv7hnl
Patch12:	gcc-4.8-non-fatal-compare-failure.patch
# https://bugs.launchpad.net/gcc-linaro/+bug/1225317
Patch13:	Gcc-4.8.2-arm-thumb2-CASE_VECTOR_SHORTEN_MODE.patch
# Alias -Oz to -Os for compatibility with clang's -Oz flag
Patch14:	gcc-4.9-add-Oz-for-clang-compatibility.patch
# Fix libstdc++ for use with clang
Patch15:	gcc-9-libstdc++-locale-clang.patch
# FIXME this is ***evil***
# Without this patch, we get an Exec format error every time cc1plus is run inside qemu.
# A notable difference:
# Without the patch:
# $ file except.o
# except.o: ELF 64-bit LSB relocatable, ARM aarch64, version 1 (SYSV), not stripped
# With the patch:
# except.o: ELF 64-bit LSB relocatable, ARM aarch64, version 1 (GNU/Linux), not stripped
# Apparently, the kernel or glibc can't handle Linux specific object files in
# qemu?
# This needs further debugging (and preferrably testing on real hardware), but
# for now, the evil patch allows us to continue building.
Patch16:	gcc-4.9-aarch64-evil-exception-workaround.patch

# Provide functions from compiler-rt in libgcc
Patch17:	gcc-6.3-libgcc-__muloti4.patch

# MUSL Support
Patch18:	gcc-5.1.0-libstdc++-musl.patch

Patch20:	gcc-6.3-libgcc-musl-workaround.patch

# From Google's tree
# 771c2f9542b4e84b08c107060319603d12ec8867
Patch101:	gcc-4.9-neon-alignment.patch
# d7c9c7963a79b60e2247bd5a41decc80938023f4
Patch102:	gcc-4.9-libstdc++-clang.patch

# Patches 1001 and 1007 disabled until they're committed
# slibdir is either /lib or /lib64
Patch1001:	gcc33-pass-slibdir.patch
# pass libdir around
Patch1007:	gcc-4.6.2-multi-do-libdir.patch

BuildRequires:	binutils >= 2.20.51.0.2
BuildRequires:	dejagnu
BuildRequires:	elfutils-devel >= 0.147
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gdb
BuildRequires:	gettext
BuildRequires:	sharutils
BuildRequires:	diffutils
BuildRequires:	texinfo
BuildRequires:	pkgconfig(libtirpc)
# For py_puresitedir
%if ! %{build_minimal}
BuildRequires:	python3 >= 3.4
%endif
%if %{build_doc}
BuildRequires:	texi2html
%endif
%if %{build_pdf}
BuildRequires:	texlive
%endif
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	libmpc-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(isl)

%if %{system_gcc}
Requires:	%{name}-cpp >= %{EVRD}
Requires:	%{libgcc} >= %{EVRD}
Requires:	%{libgcc_devel} >= %{EVRD}
Requires:	%{libgomp} >= %{EVRD}
Requires:	%{libcc1} >= %{EVRD}
# as gcc now has it's own output color support, let's obsolete the old
# colorgcc with it's perl wrapper script which is slightly buggy with it's
# it's output redirection anyways...
Obsoletes:	colorgcc <= 1.3.2-17
%endif
Requires:	binutils >= 2.20.51.0.2

Obsoletes:	%{_lib}mudflap0 < 4.9.1_2014.05
Obsoletes:	%{_lib}mudflap-devel < 4.9.1_2014.05
Obsoletes:	%{_lib}mudflap-static-devel < 4.9.1_2014.05

%description
The gcc package contains the GNU Compiler Collection version %{branch}.

%if %{system_gcc}
%files -f gcc.lang
%else
%files
%endif
%{_bindir}/%{gcc_target_platform}-gcc
%{_bindir}/%{gcc_target_platform}-gcc-ar
%{_bindir}/%{gcc_target_platform}-gcc-nm
%{_bindir}/%{gcc_target_platform}-gcc-ranlib
%{_bindir}/lto-dump
%(
	if [ -n "$(echo %{gcc_target_platform} |cut -d- -f4-)" ]; then
		shortplatform="$(echo %{gcc_target_platform} |cut -d- -f1)-$(echo %{gcc_target_platform} |cut -d- -f3-)"
		echo "%%optional %{_bindir}/${shortplatform}-gcc"
		echo "%%optional %{_bindir}/${shortplatform}-gcc-%{ver}"
		echo "%%optional %{_bindir}/${shortplatform}-gcc-ar"
		echo "%%optional %{_bindir}/${shortplatform}-gcc-nm"
		echo "%%optional %{_bindir}/${shortplatform}-gcc-ranlib"
	fi
)
%config(noreplace) %{_sysconfdir}/sysconfig/gcc
%{_sysconfdir}/profile.d/90gcc.sh
%{_sysconfdir}/profile.d/90gcc.csh
%if %{default_compiler}
%{_bindir}/c89
%{_bindir}/c99
%{_bindir}/cc
%endif

%if %{with crosscompilers}
%{_bindir}/%{target_cpu}-%{_os}%{_gnu}-c++
%{_bindir}/%{target_cpu}-%{_os}%{_gnu}-g++
%{_bindir}/%{target_cpu}-%{_os}%{_gnu}-g++-%{ver}
%{_bindir}/%{target_cpu}-%{_os}%{_gnu}-gcc
%{_bindir}/%{target_cpu}-%{_os}%{_gnu}-gcc-%{ver}
%{_bindir}/%{target_cpu}-%{_os}%{_gnu}-gcc-ar
%{_bindir}/%{target_cpu}-%{_os}%{_gnu}-gcc-nm
%{_bindir}/%{target_cpu}-%{_os}%{_gnu}-gcc-ranlib
%endif

%{_bindir}/gcc
%{_bindir}/gcc-ar
%{_bindir}/gcc-nm
%{_bindir}/gcc-ranlib
%{_bindir}/gcov
%{_bindir}/gcov-dump
%{_bindir}/gcov-tool
%{_mandir}/man1/gcc.1*
%{_mandir}/man1/gcov.1*
%{_mandir}/man1/gcov-dump.1*
%{_mandir}/man1/gcov-tool.1*
%{_mandir}/man1/lto-dump.1*
%{_mandir}/man7/*
%{_infodir}/gcc.info*
%{_infodir}/gccint.info*
%{_infodir}/gccinstall.info*
# Marked optional because of weird failure on armv7hnl
%optional %{_infodir}/libquadmath.info*
%{_bindir}/gcc-%{ver}
%{_bindir}/%{gcc_target_platform}-gcc-%{ver}
%dir %{gccdirparent}
%dir %{gccdir}
%dir %{gcclibexecdirparent}
%dir %{gcclibexecdir}
%{gcclibexecdir}/cc1
%{gcclibexecdir}/collect2
%{gccdir}/libgcov.a
%{gcclibexecdir}/lto*
%if %{build_lto}
%{gcclibexecdir}/liblto*
%{_libdir}/bfd-plugins/liblto_plugin.so
%endif
%dir %{gccdir}/include
%{gccdir}/include/*.h
%{gcclibexecdir}/install-tools
%if "%{gcclibexecdir}" != "%{gccdir}"
%{gccdir}/install-tools
%endif
%if %{build_quadmath}
%exclude %{gccdir}/include/quadmath*.h
%endif
%if %{build_gomp}
%exclude %{gccdir}/include/omp*.h
%endif
%if %{build_multilib}
%if %isarch mips mipsel
%dir %{multigccdirn32}
%{multigccdirn32}/libgcov.a
%dir %{multigccdir64}
%{multigccdir64}/libgcov.a
%else
%dir %{multigccdir}
%{multigccdir}/libgcov.a
%endif
%endif
%if %{build_doc}
%doc %{_docdir}/gcc
%endif
%if %{build_check}
%doc %{_docdir}/gcc/test_summary.log
%endif


########################################################################
%if %{build_libgcc}
#-----------------------------------------------------------------------

%package -n %{libgcc}
Summary:	GNU C library
Group:		System/Libraries
%if "%{libgcc}" != "libgcc"
Provides:	libgcc = %{EVRD}
%endif

%description -n %{libgcc}
The %{libgcc} package contains GCC shared libraries for gcc %{branch}

%files -n %{libgcc}
/%{_lib}/libgcc_s.so.%{gcc_major}

#-----------------------------------------------------------------------

%package -n %{libgcc_devel}
Summary:	Development files for libgcc
Group:		System/Libraries
Requires:	%{libgcc} = %{EVRD}

%description -n %{libgcc_devel}
The %{libgcc} package contains header files and object files needed to
build applications with libgcc.

%files -n %{libgcc_devel}
%{target_libdir}/libgcc_s.so
%if %{build_multilib}
%{multilibdir}/libgcc_s.so
%ifarch %{x86_64}
# 3-fold multilib...
%optional %{_prefix}/libx32/libgcc_s.so
%endif
%endif
%optional %{_prefix}/lib/libgcc_s.a
%if %isarch mips mipsel
%{target_libdir}32/libgcc_s.so
%{target_libdir}64/libgcc_s.so
%endif
%{gccdir}/*.o
%{gccdir}/libgcc*.a
%if %{build_multilib}
%ifarch mips mipsel
%dir %{multigccdirn32}
%{multigccdirn32}/*.o
%{multigccdirn32}/libgcc*.a
%dir %{multigccdir64}
%{multigccdir64}/*.o
%{multigccdir64}/libgcc*.a
%else
%dir %{multigccdir}
%{multigccdir}/*.o
%{multigccdir}/libgcc*.a
%endif
%endif

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibgcc}
Summary:	GNU C library
Group:		System/Libraries
Conflicts:	%{libgcc} < 4.6.2-11

%description -n %{multilibgcc}
The %{multilibgcc} package contains GCC shared libraries for gcc %{branch}

%files -n %{multilibgcc}
%{multirootlibdir}/libgcc_s.so.%{gcc_major}

%if %{with crosscompilers}
%ifarch %{x86_64} aarch64 riscv64
%package -n %{libx32gcc}
Summary:	GNU C library
Group:		System/Libraries
Conflicts:	%{libgcc} < 4.6.2-11

%description -n %{libx32gcc}
The %{libx32gcc} package contains GCC shared libraries for gcc %{branch}

%files -n %{libx32gcc}
/libx32/libgcc_s.so.%{gcc_major}
%endif
%endif
# end crosscompilers
%endif

#-----------------------------------------------------------------------
# build libgcc
%endif

########################################################################
%if %{build_plugin}
#-----------------------------------------------------------------------

%package plugin-devel
Summary:	Headers to build gcc plugins
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	gmp-devel
Requires:	mpfr-devel
Requires:	libmpc-devel

%description plugin-devel
This package contains header files and other support files
for compiling GCC plugins. The GCC plugin ABI is currently
not stable, so plugins must be rebuilt any time GCC is updated.

%files plugin-devel
%{gccdir}/plugin
%if "%{gccdir}" != "%{gcclibexecdir}"
%{gcclibexecdir}/plugin
%endif

#-----------------------------------------------------------------------
# build_plugin
%endif

########################################################################
%if %{system_gcc}
#-----------------------------------------------------------------------

%package cpp
Summary:	The C Preprocessor
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description cpp
Cpp is the GNU C-Compatible Compiler Preprocessor.
Cpp is a macro processor which is used automatically
by the C compiler to transform your program before actual
compilation. It is called a macro processor because it allows
you to define macros, abbreviations for longer
constructs.

The C preprocessor provides four separate functionalities:

* Inclusion of header files. These are files of declarations that can be
  substituted into your program.
* Macro expansion. You can define 'macros,' which are abbreviations for
  arbitrary fragments of C code, and then the C preprocessor will replace
  the macros with their definitions throughout the program.
* Conditional compilation. Using special preprocessing directives,
  you can include or exclude parts of the program according to various
  conditions.
* Line control. If you use a program to combine or rearrange source files
  into an intermediate file which is then compiled, you can use line
  control to inform the compiler about where each source line originated.

%if %{system_gcc}
%files cpp -f cpplib.lang
%else
%files cpp
%endif
%{_bindir}/cpp
%if %{system_gcc}
/lib/cpp
%{_mandir}/man1/cpp.1*
%{_infodir}/cpp*
%if %{build_doc}
%doc %{_docdir}/gcc-cpp
%endif
%endif

#-----------------------------------------------------------------------
# system_gcc
%endif

########################################################################
%if %{build_cxx}
#-----------------------------------------------------------------------

%package c++
Summary:	C++ support for gcc
Group:		Development/C++
Requires:	%{name} = %{EVRD}
%if %{system_gcc}
Requires:	%{libstdcxx_devel} = %{version}
%endif

%description c++
This package adds C++ support to the GNU Compiler Collection.
It includes support for most of the current C++ specification,
including templates and exception handling.

%files c++
%if %{system_gcc}
%{_bindir}/g++
%{_mandir}/man1/g++.1*
%endif
%if %{system_gcc}
%{_bindir}/%{gcc_target_platform}-c++
%{_bindir}/%{gcc_target_platform}-g++
%endif
%{_bindir}/c++-%{ver}
%{_bindir}/g++-%{ver}
%{_bindir}/%{gcc_target_platform}-g++-%{ver}
%if %{default_compiler}
%{_bindir}/c++
%endif
%(
	if [ -n "$(echo %{gcc_target_platform} |cut -d- -f4-)" ]; then
		shortplatform="$(echo %{gcc_target_platform} |cut -d- -f1)-$(echo %{gcc_target_platform} |cut -d- -f3-)"
		echo "%%optional %{_bindir}/${shortplatform}-c++"
		echo "%%optional %{_bindir}/${shortplatform}-g++"
		echo "%%optional %{_bindir}/${shortplatform}-g++-%{ver}"
	fi
)
%{gcclibexecdir}/cc1plus
%{gcclibexecdir}/g++-mapper-server

#-----------------------------------------------------------------------

%package -n %{libstdcxx}
Summary:	GNU Standard C++ library
Group:		System/Libraries
%if "%{libstdcxx}" != "libstdc++"
Provides:	libstdc++ = %{EVRD}
%endif
%if %{build_doc}
BuildRequires:	doxygen
BuildRequires:	graphviz
%endif

%description -n %{libstdcxx}
The libstdc++ package contains a rewritten standard compliant
GCC Standard C++ Library.

%if %{system_gcc}
%files -n %{libstdcxx} -f libstdc++.lang
%else
%files -n %{libstdcxx}
%endif
%{target_slibdir}/libstdc++.so.%{stdcxx_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibstdcxx}
Summary:	GNU Standard C++ library
Group:		System/Libraries
Conflicts:	%{libstdcxx} < 4.6.2-11

%description -n %{multilibstdcxx}
The libstdc++ package contains a rewritten standard compliant
GCC Standard C++ Library.

%files -n %{multilibstdcxx}
%{multirootlibdir}/libstdc++.so.%{stdcxx_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libstdcxx_devel}
Summary:	Header files and libraries for C++ development
Group:		Development/C++
Requires:	%{libstdcxx} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibstdcxx} = %{EVRD}
%endif
%if "%{libstdcxx_devel}" != "libstdc++-devel"
Provides:	libstdc++-devel = %{EVRD}
%endif
Provides:	stdc++-devel = %{EVRD}
%if "%{ver}" != "%{version}"
# 4.7.2_2010.10 should provide 4.7.2 so clang can pick up the dep
%if "%{libstdcxx_devel}" != "libstdc++-devel"
Provides:	%{libstdcxx_devel} = %{ver}-%{release}
%endif
Provides:	libstdc++-devel = %{ver}-%{release}
Provides:	stdc++-devel = %{ver}-%{release}
%endif
# We don't want to pull in an entire Python environment just because of
# libstdc++'s python based gdb plugin...
%define __requires_exclude_from ^(%{py3_puresitedir}|%{_datadir}/gdb/).*$

%description -n %{libstdcxx_devel}
This is the GNU implementation of the standard C++ libraries.  This
package includes the header files and libraries needed for C++
development. This includes rewritten implementation of STL.

%files -n %{libstdcxx_devel}
%{_includedir}/c++/%{ver}
%{target_libdir}/libstdc++.so
%{_datadir}/gdb/auto-load%{_libdir}/libstdc++.*.py
%{_datadir}/gdb/auto-load%{_libdir}/__pycache__/libstdc++*.pyc
%if %{build_multilib}
%{multilibdir}/libstdc++.so
%{_datadir}/gdb/auto-load%{multilibdir}/libstdc++.*.py
%{_datadir}/gdb/auto-load%{multilibdir}/__pycache__/libstdc++*.pyc
%endif
%{py3_puresitedir}/libstdcxx
%if %{build_doc}
%doc %{_docdir}/libstdc++
%endif

#-----------------------------------------------------------------------

%package -n %{libstdcxx_static_devel}
Summary:	Static libraries for the GNU standard C++ library
Group:		Development/C++
Requires:	%{libstdcxx_devel} = %{EVRD}
%if "%{libstdcxx_static_devel}" != "libstdc++-static-devel"
Provides:	libstdc++-static-devel = %{EVRD}
%endif
Provides:	stdc++-static-devel = %{EVRD}

%description -n %{libstdcxx_static_devel}
Static libraries for the GNU standard C++ library.

%files -n %{libstdcxx_static_devel}
%{target_libdir}/libstdc++.*a
%{target_libdir}/libstdc++fs.*a
%{target_libdir}/libsupc++.*a
%if %{build_multilib}
%{multilibdir}/libstdc++.*a
%{multilibdir}/libstdc++fs.*a
%{multilibdir}/libsupc++.*a
%endif

#-----------------------------------------------------------------------
# build_cxx
%endif

########################################################################
%if %{build_d}
#-----------------------------------------------------------------------

%package d
Summary:	D support for gcc
Group:		Development/C++
Requires:	%{name} = %{EVRD}
%if %{system_gcc}
Requires:	%{libgdruntime_devel} = %{version}
%endif

%description d
This package adds D support to the GNU Compiler Collection.

%files d
%if %{system_gcc}
%{_bindir}/gdc
%{_mandir}/man1/gdc.1*
%{_infodir}/gdc.info*
%endif
%if %{system_gcc}
%{_bindir}/%{gcc_target_platform}-gdc
%endif
%(
	if [ -n "$(echo %{gcc_target_platform} |cut -d- -f4-)" ]; then
		shortplatform="$(echo %{gcc_target_platform} |cut -d- -f1)-$(echo %{gcc_target_platform} |cut -d- -f3-)"
		echo "%%optional %{_bindir}/${shortplatform}-gdc"
	fi
)
%{gcclibexecdir}/d21

#-----------------------------------------------------------------------

%package -n %{libgdruntime}
Summary:	D standard library
Group:		System/Libraries
%if "%{libgdruntime}" != "libgdruntime"
Provides:	libgdruntime = %{EVRD}
%endif

%description -n %{libgdruntime}
The libphobos package contains a version of the
D Standard Library.

%files -n %{libgdruntime}
%{target_libdir}/libgdruntime.so.%{d_major}*
%{target_libdir}/libgphobos.so.%{d_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibgdruntime}
Summary:	D Standard library
Group:		System/Libraries

%description -n %{multilibgdruntime}
The libphobos package contains a version of the
D Standard Library.

%files -n %{multilibgdruntime}
%{multilibdir}/libgdruntime.so.%{d_major}*
%{multilibdir}/libgphobos.so.%{d_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libgdruntime_devel}
Summary:	Header files and libraries for D development
Group:		Development/Other
Requires:	%{libgdruntime} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibgdruntime} = %{EVRD}
%endif
%if "%{libgdruntime_devel}" != "libgdruntime-devel"
Provides:	libgdruntime-devel = %{EVRD}
%endif

%description -n %{libgdruntime_devel}
This is the GNU implementation of the D standard libraries.  This
package includes the header files and libraries needed for D
development.

%files -n %{libgdruntime_devel}
%{target_libdir}/libgdruntime.so
%{target_libdir}/libgphobos.so
%{target_libdir}/libgphobos.spec
%{gccdir}/include/d
%if %{build_multilib}
%{multilibdir}/libgdruntime.so
%{multilibdir}/libgphobos.so
%{multilibdir}/libgphobos.spec
%endif

#-----------------------------------------------------------------------

%package -n %{libgdruntime_static_devel}
Summary:	Static libraries for the D standard library
Group:		Development/Other
Requires:	%{libgdruntime_devel} = %{EVRD}
%if "%{libgdruntime_static_devel}" != "libgdruntime-static-devel"
Provides:	libgdruntime-static-devel = %{EVRD}
%endif
Provides:	gdruntime-static-devel = %{EVRD}

%description -n %{libgdruntime_static_devel}
Static libraries for the GNU standard D library.

%files -n %{libgdruntime_static_devel}
%{target_libdir}/libgdruntime.*a
%{target_libdir}/libgphobos.*a
%if %{build_multilib}
%{multilibdir}/libgdruntime.*a
%{multilibdir}/libgphobos.*a
%endif

#-----------------------------------------------------------------------
# build_d
%endif

########################################################################
%if %{build_ada}
#-----------------------------------------------------------------------

%package gnat
Summary:	Ada support for gcc
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libgnat_devel} = %{EVRD}
# no bootstrap support
BuildRequires:	gcc-gnat >= 3.1, libgnat >= 3.1

%description gnat
GNAT is a GNU Ada front-end to GCC. This package includes development
tools, the documents and Ada compiler.

%files gnat
%{_bindir}/gnat*
%{gcclibexecdir}/gnat1
%{_infodir}/gnat*
%if %{build_doc}
%doc %{_docdir}/gcc-gnat
%endif

# libgnat and libgnarl are static-only these days
%if %{shared_libgnat}
#-----------------------------------------------------------------------

%package -n %{libgnat}
Summary:	GNU Ada runtime libraries
Group:		System/Libraries
Provides:	libgnat = %{EVRD}
Obsoletes:	gnat-runtime < %{EVRD}

%description -n %{libgnat}
GNAT is a GNU Ada front-end to GCC. This package includes shared
libraries, which are required to run programs compiled with the GNAT.

%files -n %{libgnat}
%{target_libdir}/libgnat-%{majorver}.so.%{gnat_major}
%{target_libdir}/libgnarl-%{majorver}.so.%{gnat_major}

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibgnat}
Summary:	GNU Ada runtime libraries
Group:		System/Libraries
Conflicts:	%{libgnat} < 4.6.2-11

%description -n %{multilibgnat}
GNAT is a GNU Ada front-end to GCC. This package includes shared
libraries, which are required to run programs compiled with the GNAT.

%files -n %{multilibgnat}
%{multilibdir}/libgnat-%{majorver}.so.%{gnat_major}
%{multilibdir}/libgnarl-%{majorver}.so.%{gnat_major}
%endif
%endif

#-----------------------------------------------------------------------

%package -n %{libgnat_devel}
Summary:	GNU Ada libraries
Group:		Development/Other
%if %{shared_libgnat}
Requires:	%{libgnat} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibgnat} = %{EVRD}
%endif
%else
Obsoletes:	%{libgnat} < %{EVRD}
Obsoletes:	%{multilibgnat} < %{EVRD}
Requires:	%{libgnat_static_devel} = %{EVRD}
%endif
Provides:	libgnat-devel = %{EVRD}
Provides:	gnat-devel = %{EVRD}

%description -n %{libgnat_devel}
GNAT is a GNU Ada front-end to GCC. This package includes shared
libraries, which are required to compile with the GNAT.

%files -n %{libgnat_devel}
%if %{shared_libgnat}
%{target_libdir}/libgnat*.so
%{_libdir}/libgnarl*.so
%endif
%{gccdir}/adalib
%{gccdir}/adainclude
%exclude %{gccdir}/adalib/lib*.a
%{_libdir}/gcc/*/*/ada_target_properties
%if %{build_multilib}
%{_libdir}/gcc/*/*/32/ada_target_properties
%if %{shared_libgnat}
%{multilibdir}/libgnat*.so
%{multilibdir}/libgnarl*.so
%endif
%{multigccdir}/adalib
%{multigccdir}/adainclude
%exclude %{multigccdir}/adalib/lib*.a
%endif

#-----------------------------------------------------------------------

%package -n %{libgnat_static_devel}
Summary:	GNU Ada static libraries
Group:		Development/Other
Requires:	%{libgnat_devel} = %{EVRD}
Provides:	libgnat-static-devel = %{EVRD}
Provides:	gnat-static-devel = %{EVRD}

%description -n %{libgnat_static_devel}
GNAT is a GNU Ada front-end to GCC. This package includes static
libraries.

%files -n %{libgnat_static_devel}
%{gccdir}/adalib/lib*.a
%if %{build_multilib}
%{multigccdir}/adalib/lib*.a
%endif
#-----------------------------------------------------------------------
# build ada
%endif

########################################################################
%if %{build_fortran}
#-----------------------------------------------------------------------

%package gfortran
Summary:	Fortran 95 support for gcc
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libgfortran_devel} = %{EVRD}

%description gfortran
The gcc-gfortran package provides support for compiling Fortran
programs with the GNU Compiler Collection.

%files gfortran
%{_bindir}/gfortran
%{_bindir}/gfortran-%{ver}
%{_bindir}/%{_target_platform}-gfortran
%{_bindir}/%{_target_platform}-gfortran-%{ver}
%(
	if [ -n "$(echo %{gcc_target_platform} |cut -d- -f4-)" ]; then
		shortplatform="$(echo %{gcc_target_platform} |cut -d- -f1)-$(echo %{gcc_target_platform} |cut -d- -f3-)"
		echo "%%optional %{_bindir}/${shortplatform}-gfortran"
		echo "%%optional %{_bindir}/${shortplatform}-gfortran-%{ver}"
	fi
)
%{_infodir}/gfortran.info*
%{_mandir}/man1/gfortran.1*
%{gcclibexecdir}/f951
%{gccdir}/finclude
%{gccdir}/libcaf_single.a
%if %{build_multilib}
%{multigccdir}/libcaf_single.a
%{multigccdir}/finclude
%endif
%if %{build_doc}
%doc %{_docdir}/gcc-gfortran
%endif

#-----------------------------------------------------------------------

%package -n %{libgfortran}
Summary:	Fortran 95 runtime libraries
Group:		System/Libraries
%if %{build_quadmath}
Requires:	%{libquadmath} = %{EVRD}
%endif
%if "%{libgfortran}" != "libgfortran"
Provides:	libgfortran = %{EVRD}
%endif
%if %{build_multilib}
Provides:	%{multilibgfortran} = %{EVRD}
%endif

%description -n %{libgfortran}
This package contains Fortran 95 shared library which is needed to run
Fortran 95 dynamically linked programs.

%files -n %{libgfortran}
%{target_libdir}/libgfortran.so.%{gfortran_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibgfortran}
Summary:	Fortran 95 runtime libraries
Group:		System/Libraries
%if %{build_quadmath}
Requires:	%{multilibquadmath} = %{EVRD}
%endif
Conflicts:	%{libgfortran} < 4.6.2-11

%description -n %{multilibgfortran}
This package contains Fortran 95 shared library which is needed to run
Fortran 95 dynamically linked programs.

%files -n %{multilibgfortran}
%{multilibdir}/libgfortran.so.%{gfortran_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libgfortran_devel}
Summary:	Fortran 95 libraries
Group:		System/Libraries
Requires:	%{libgfortran} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibgfortran} = %{EVRD}
%endif
%if %{build_quadmath}
Requires:	%{libquadmath_devel} = %{EVRD}
%endif
Provides:	gfortran-devel = %{EVRD}

%description -n %{libgfortran_devel}
This package contains Fortran 95 shared library which is needed to
compile Fortran 95 programs.

%files -n %{libgfortran_devel}
%{target_libdir}/libgfortran.so
%{target_libdir}/libgfortran.spec
%if %{build_multilib}
%{multilibdir}/libgfortran.so
%{multilibdir}/libgfortran.spec
%endif

#-----------------------------------------------------------------------

%package -n %{libgfortran_static_devel}
Summary:	Fortran 95 static libraries
Group:		System/Libraries
Requires:	%{libgfortran_devel} = %{EVRD}
Provides:	gfortran-static-devel = %{EVRD}

%description -n %{libgfortran_static_devel}
This package contains Fortran 95 static library which is needed to
compile Fortran 95 programs.

%files -n %{libgfortran_static_devel}
%{target_libdir}/libgfortran.*a
%if %{build_multilib}
%{multilibdir}/libgfortran.*a
%endif
#-----------------------------------------------------------------------
# build fortran
%endif

########################################################################
%if %{build_go}
#-----------------------------------------------------------------------

%package go
Summary:	Go support for gcc
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libgo_devel} = %{EVRD}
BuildRequires:	(gcc-go or golang-bin)

%description go
The gcc-go package provides support for compiling Go programs
with the GNU Compiler Collection.

%files go
%{_bindir}/go
%{_bindir}/gofmt
%{_bindir}/gccgo
%{_bindir}/%{gcc_target_platform}-gccgo
%(
	if [ -n "$(echo %{gcc_target_platform} |cut -d- -f4-)" ]; then
		shortplatform="$(echo %{gcc_target_platform} |cut -d- -f1)-$(echo %{gcc_target_platform} |cut -d- -f3-)"
		echo "%%optional %{_bindir}/${shortplatform}-gccgo"
		echo "%%optional %{_bindir}/${shortplatform}-gccgo-%{ver}"
	fi
)
%{_libexecdir}/gcc/*/*/cgo
%{_libdir}/%{name}/bin/%{name}
%dir %{_libdir}/go
%if %{build_multilib}
%dir %{multilibdir}/go
%endif
%{_infodir}/gccgo.info*
%{_mandir}/man1/gccgo.1*
%{_bindir}/gccgo-%{ver}
%{_bindir}/%{gcc_target_platform}-gccgo-%{ver}
%{gcclibexecdir}/go1
%{gcclibexecdir}/buildid
%{gcclibexecdir}/test2json
%{gcclibexecdir}/vet
%{_libdir}/go/%{ver}
%{_libdir}/libgobegin.a
%{_libdir}/libgolibbegin.a
%if %{build_multilib}
%{multilibdir}/go/%{ver}
%{multilibdir}/libgobegin.a
%{multilibdir}/libgolibbegin.a
%endif
%if %{build_doc}
%doc %{_docdir}/gcc-go
%endif
%{_mandir}/man1/go.1*
%{_mandir}/man1/gofmt.1*

#-----------------------------------------------------------------------

%package -n %{libgo}
Summary:	Go runtime libraries
Group:		System/Libraries
Provides:	libgo = %{EVRD}

%description -n %{libgo}
This package contains Go shared library which is needed to run
Go dynamically linked programs.

%files -n %{libgo}
%{target_libdir}/libgo.so.%{go_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibgo}
Summary:	Go runtime libraries
Group:		System/Libraries
Conflicts:	%{libgo} < 4.6.2-11

%description -n %{multilibgo}
This package contains Go shared library which is needed to run
Go dynamically linked programs.

%files -n %{multilibgo}
%{multilibdir}/libgo.so.%{go_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libgo_devel}
Summary:	Go development libraries
Group:		Development/Other
Requires:	%{libgo} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibgo} = %{EVRD}
%endif
Provides:	libgo-devel = %{EVRD}
Provides:	go-devel = %{EVRD}

%description -n %{libgo_devel}
This package includes libraries and support files for compiling
Go programs.

%files -n %{libgo_devel}
%{target_libdir}/libgo.so
%if %{build_multilib}
%{multilibdir}/libgo.so
%endif

#-----------------------------------------------------------------------

%package -n %{libgo_static_devel}
Summary:	Static Go libraries
Group:		Development/Other
Requires:	%{libgo_devel} = %{EVRD}
Provides:	libgo-static-devel = %{EVRD}
Provides:	go-static-devel = %{EVRD}

%description -n %{libgo_static_devel}
This package contains static Go libraries.

%files -n %{libgo_static_devel}
%{target_libdir}/libgo.*a
%if %{build_multilib}
%{multilibdir}/libgo.*a
%endif

#-----------------------------------------------------------------------
# build go
%endif

########################################################################
%if %{build_objc}
#-----------------------------------------------------------------------

%package objc
Summary:	Objective-C support for GCC
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libobjc_devel} = %{EVRD}

%description objc
gcc-objc provides Objective-C support for the GCC.
Mainly used on systems running NeXTSTEP, Objective-C is an
object-oriented derivative of the C language.

%files objc
%{gcclibexecdir}/cc1obj

#-----------------------------------------------------------------------

%package -n %{libobjc}
Summary:	Objective-C runtime
Group:		System/Libraries
Provides:	libobjc = %{EVRD}

%description -n %{libobjc}
This package contains Objective-C shared library which is needed to run
Objective-C dynamically linked programs.

%files -n %{libobjc}
%{target_libdir}/libobjc.so.%{objc_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibobjc}
Summary:	Objective-C runtime
Group:		System/Libraries
Provides:	libobjc = %{EVRD}
Conflicts:	%{libobjc} < 4.6.2-11

%description -n %{multilibobjc}
This package contains Objective-C shared library which is needed to run
Objective-C dynamically linked programs.

%files -n %{multilibobjc}
%{multilibdir}/libobjc.so.%{objc_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libobjc_devel}
Summary:	Objective-C development libraries
Group:		Development/Other
Requires:	%{libobjc} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibobjc} = %{EVRD}
%endif
Provides:	libobjc-devel = %{EVRD}
Provides:	objc-devel = %{EVRD}

%description -n %{libobjc_devel}
This package includes libraries and support files for compiling
Objective-C programs.

%files -n %{libobjc_devel}
%{target_libdir}/libobjc.so
%{gccdir}/include/objc
%if %{build_multilib}
%{multilibdir}/libobjc.so
%endif

#-----------------------------------------------------------------------

%package -n %{libobjc_static_devel}
Summary:	Static Objective-C libraries
Group:		Development/Other
Requires:	%{libobjc_devel} = %{EVRD}
Provides:	libobjc-static-devel = %{EVRD}
Provides:	objc-static-devel = %{EVRD}

%description -n %{libobjc_static_devel}
This package contains static Objective-C libraries.

%files -n %{libobjc_static_devel}
%{target_libdir}/libobjc.*a
%if %{build_multilib}
%{multilibdir}/libobjc.*a
%endif
#-----------------------------------------------------------------------
# build objc
%endif

########################################################################
%if %{build_objcxx}
#-----------------------------------------------------------------------

%package objc++
Summary:	Objective-C++ support for GCC
Group:		Development/Other
Requires:	gcc-objc = %{EVRD}

%description objc++
gcc++-objc provides Objective-C++ support for the GCC.

%files objc++
%{gcclibexecdir}/cc1objplus
#-----------------------------------------------------------------------
# build objcxx
%endif

########################################################################
%if %{package_ffi}
#-----------------------------------------------------------------------

%package -n %{libffi}
Summary:	GCC support library for FFI
Group:		System/Libraries
Provides:	libffi = %{EVRD}

%description -n %{libffi}
This package contains GCC shared support library which is needed
for FFI support.

%files -n %{libffi}
%{target_libdir}/libffi.so.%{ffi_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibffi}
Summary:	GCC support library for FFI
Group:		System/Libraries
Conflicts:	%{libffi} < 4.6.2-11

%description -n %{multilibffi}
This package contains GCC shared support library which is needed
for FFI support.

%files -n %{multilibffi}
%{multirootlibdir}/libffi.so.%{ffi_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libffi_devel}
Summary:	GCC development for FFI
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libffi} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibffi} = %{EVRD}
%endif
Provides:	libffi-devel = %{EVRD}
Provides:	ffi-devel = %{EVRD}

%description -n %{libffi_devel}
This package contains GCC development which is needed
to compile FFI support.

%files -n %{libffi_devel}
%{target_libdir}/libffi.so
%if %{build_multilib}
%{multilibdir}/libffi.so
%endif

#-----------------------------------------------------------------------

%package -n %{libffi_static_devel}
Summary:	GCC FFI static library
Group:		Development/C
Requires:	%{libffi_devel} = %{EVRD}
Provides:	libffi-static-devel = %{EVRD}
Provides:	ffi-static-devel = %{EVRD}

%description -n %{libffi_static_devel}
This package contains GCC static libraries which are needed
to compile FFI support.

%files -n %{libffi_static_devel}
%{target_libdir}/libffi.*a
%if %{build_multilib}
%{multilibdir}/libffi.*a
%endif

#-----------------------------------------------------------------------
# package ffi
%endif

########################################################################
%if %{build_quadmath}
#-----------------------------------------------------------------------

%package -n %{libquadmath}
Summary:	GCC __float128 shared support library
Group:		System/Libraries
Provides:	libquadmath = %{EVRD}

%description -n %{libquadmath}
This package contains GCC shared support library which is needed
for __float128 math support and for Fortran REAL*16 support.

%files -n %{libquadmath}
%{target_libdir}/libquadmath.so.%{quadmath_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibquadmath}
Summary:	GCC __float128 shared support library
Group:		System/Libraries
Conflicts:	%{libquadmath} < 4.6.2-11

%description -n %{multilibquadmath}
This package contains GCC shared support library which is needed
for __float128 math support and for Fortran REAL*16 support.

%files -n %{multilibquadmath}
%{multilibdir}/libquadmath.so.%{quadmath_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libquadmath_devel}
Summary:	GCC __float128 support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libquadmath} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibquadmath} = %{EVRD}
%endif
Provides:	libquadmath-devel = %{EVRD}
Provides:	quadmath-devel = %{EVRD}

%description -n %{libquadmath_devel}
This package contains support for building Fortran programs using
REAL*16 and programs using __float128 math.

%files -n %{libquadmath_devel}
%{target_libdir}/libquadmath.so
%if %{build_multilib}
%{multilibdir}/libquadmath.so
%endif
%{gccdir}/include/quadmath*.h
%if %{build_pdf}
%doc %{_docdir}/libquadmath
%endif

#-----------------------------------------------------------------------

%package -n %{libquadmath_static_devel}
Summary:	Static libraries for __float128 support
Group:		Development/C
Requires:	%{libquadmath_devel} = %{EVRD}
Provides:	libquadmath-static-devel = %{EVRD}
Provides:	quadmath-static-devel = %{EVRD}

%description -n %{libquadmath_static_devel}
This package contains static libraries for building Fortran programs
using REAL*16 and programs using __float128 math.

%files -n %{libquadmath_static_devel}
%{target_libdir}/libquadmath.*a
%if %{build_multilib}
%{multilibdir}/libquadmath.*a
%endif

#-----------------------------------------------------------------------
# build quadmath
%endif

########################################################################
#-----------------------------------------------------------------------

%if ! %{build_minimal}
%package -n %{libcc1}
Summary:	GCC parsing shared library
Group:		System/Libraries

%description -n %{libcc1}
This package contains the gcc parsing library

%files -n %{libcc1}
%{_libdir}/libcc1.so.%{cc1_major}*

#-----------------------------------------------------------------------

%package -n %{libcc1_devel}
Summary:	GCC parser library development support
Group:		Development/C
Requires:	%{libcc1} = %{EVRD}

%description -n %{libcc1_devel}
Development files for gcc's parser library

%files -n %{libcc1_devel}
%{_libdir}/libcc1.so

#-----------------------------------------------------------------------

%package -n %{libcc1_static_devel}
Summary:	Static library containing the gcc parser
Group:		Development/C
Requires:	%{libcc1_devel} = %{EVRD}
Provides:	libcc1-static-devel = %{EVRD}

%description -n %{libcc1_static_devel}
Static library containing the gcc parser

%files -n %{libcc1_static_devel}
%{_libdir}/libcc1.a
%endif

#-----------------------------------------------------------------------
########################################################################
%if %{build_gomp}
#-----------------------------------------------------------------------

%package -n %{libgomp}
Summary:	GCC OpenMP v3.0 shared support library
Group:		System/Libraries
Provides:	libgomp = %{EVRD}

%description -n %{libgomp}
This package contains GCC shared library which is needed
for OpenMP v3.0 support.

%files -n %{libgomp}
/%{_lib}/libgomp.so.%{gomp_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibgomp}
Summary:	GCC OpenMP v3.0 shared support library
Group:		System/Libraries
Provides:	libgomp = %{EVRD}
Conflicts:	%{libgomp} < 4.6.2-11

%description -n %{multilibgomp}
This package contains GCC shared library which is needed
for OpenMP v3.0 support.

%files -n %{multilibgomp}
%{multirootlibdir}/libgomp.so.%{gomp_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libgomp_devel}
Summary:	GCC OpenMP v3.0 development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libgomp} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibgomp} = %{EVRD}
%endif
Provides:	libgomp-devel = %{EVRD}
Provides:	gomp-devel = %{EVRD}

%description -n %{libgomp_devel}
This package contains GCC development which is needed
to compile OpenMP v3.0 support.

%files -n %{libgomp_devel}
%{target_libdir}/libgomp.so
%{target_libdir}/libgomp.spec
%if %{build_multilib}
%{multilibdir}/libgomp.so
%{multilibdir}/libgomp.spec
%endif
%{_infodir}/libgomp.info*
%{gccdir}/include/omp*.h
%if %{build_pdf}
%doc %{_docdir}/libgomp
%endif

#-----------------------------------------------------------------------

%package -n %{libgomp_static_devel}
Summary:	GCC OpenMP v3.0 static library
Group:		Development/C
Requires:	%{libgomp_devel} = %{EVRD}
Provides:	libgomp-static-devel = %{EVRD}
Provides:	gomp-static-devel = %{EVRD}

%description -n %{libgomp_static_devel}
This package contains GCC static libraries which are needed
to compile OpenMP v3.0 support.

%files -n %{libgomp_static_devel}
%{target_libdir}/libgomp.*a
%if %{build_multilib}
%{multilibdir}/libgomp.*a
%endif

#-----------------------------------------------------------------------
# build gomp
%endif

########################################################################
%if %{build_ssp}
#-----------------------------------------------------------------------

%package -n %{libssp}
Summary:	GCC SSP shared support library
Group:		System/Libraries
Provides:	libssp = %{EVRD}

%description -n %{libssp}
This package contains GCC shared support library which is needed
for SSP support.

%files -n %{libssp}
%{target_libdir}/libssp.so.%{ssp_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibssp}
Summary:	GCC SSP shared support library
Group:		System/Libraries
Provides:	libssp = %{EVRD}
Conflicts:	%{libssp} < 4.6.2-11

%description -n %{multilibssp}
This package contains GCC shared support library which is needed
for SSP support.

%files -n %{multilibssp}
%{multilibdir}/libssp.so.%{ssp_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libssp_devel}
Summary:	GCC SSP development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libssp} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibssp} = %{EVRD}
%endif
Provides:	libssp-devel = %{EVRD}
Provides:	ssp-devel = %{EVRD}

%description -n %{libssp_devel}
This package contains GCC libraries which are needed
to compile SSP support.

%files -n %{libssp_devel}
%{target_libdir}/libssp.so
%if %{build_multilib}
%{multilibdir}/libssp.so
%endif
%{gccdir}/include/ssp

#-----------------------------------------------------------------------

%package -n %{libssp_static_devel}
Summary:	GCC SSP static libraries
Group:		Development/C
Requires:	%{libssp_devel} = %{EVRD}
Provides:	libssp-static-devel = %{EVRD}
Provides:	ssp-static-devel = %{EVRD}

%description -n %{libssp_static_devel}
This package contains GCC static libraries which are needed
to compile SSP support.

%files -n %{libssp_static_devel}
%{target_libdir}/libssp.*.*a
%if %{build_multilib}
%{multilibdir}/libssp.*.*a
%endif

#-----------------------------------------------------------------------
# build ssp
%endif

########################################################################
%if %{build_itm}
#-----------------------------------------------------------------------

%package -n %{libitm}
Summary:	GCC Transactional Memory support library
Group:		System/Libraries
Provides:	libitm = %{EVRD}

%description -n %{libitm}
This package contains GCC's Transactional Memory support library.

%files -n %{libitm}
%{target_libdir}/libitm.so.%{itm_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibitm}
Summary:	GCC Transactional Memory support library
Group:		System/Libraries
Provides:	libitm = %{EVRD}

%description -n %{multilibitm}
This package contains GCC's Transactional Memory support library.

%files -n %{multilibitm}
%{multilibdir}/libitm.so.%{itm_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libitm_devel}
Summary:	GCC Transactional Memory development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libitm} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibitm} = %{EVRD}
%endif
Provides:	libitm-devel = %{EVRD}
Provides:	itm-devel = %{EVRD}

%description -n %{libitm_devel}
This package contains GCC libraries which are needed
to use Transactional Memory features.

%files -n %{libitm_devel}
%{target_libdir}/libitm.so
%{target_libdir}/libitm.spec
%if %{build_multilib}
%{multilibdir}/libitm.so
%{multilibdir}/libitm.spec
%endif
%if %{system_gcc}
%{_infodir}/libitm.info*
%endif

#-----------------------------------------------------------------------

%package -n %{libitm_static_devel}
Summary:	GCC Transactional Memory static libraries
Group:		Development/C
Requires:	%{libitm_devel} = %{EVRD}
Provides:	libitm-static-devel = %{EVRD}
Provides:	itm-static-devel = %{EVRD}

%description -n %{libitm_static_devel}
This package contains GCC static libraries which are needed
to compile Transactional Memory support.

%files -n %{libitm_static_devel}
%{target_libdir}/libitm.a
%if %{build_multilib}
%{multilibdir}/libitm.a
%endif

#-----------------------------------------------------------------------
# build itm
%endif

%if %{build_asan}
#-----------------------------------------------------------------------
# Address Sanitizer
#-----------------------------------------------------------------------
%package -n %{libasan}
Summary:	GCC Address Sanitizer library
Group:		Development/C

%description -n %{libasan}
GCC Address Sanitizer Library.

%files -n %{libasan}
%{target_libdir}/libasan.so.%{asan_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibasan}
Summary:	GCC Address Sanitizer library
Group:		Development/C

%description -n %{multilibasan}
GCC Address Sanitizer Library.

%files -n %{multilibasan}
%{multilibdir}/libasan.so.%{asan_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libasan_devel}
Summary:	GCC Address Sanitizer development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libasan} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibasan} = %{EVRD}
%endif
Provides:	libasan-devel = %{EVRD}
Provides:	asan-devel = %{EVRD}

%description -n %{libasan_devel}
This package contains GCC libraries which are needed
to use Address Sanitizer features.

%files -n %{libasan_devel}
%{target_libdir}/libasan.so
%{target_libdir}/libasan_preinit.o
%if %{build_multilib}
%{multilibdir}/libasan.so
%{multilibdir}/libasan_preinit.o
%endif

#-----------------------------------------------------------------------

%package -n %{libasan_static_devel}
Summary:	Static libasan
Group:		Development/C
Requires:	%{libasan_devel} = %{EVRD}

%description -n %{libasan_static_devel}
Static libasan.

%files -n %{libasan_static_devel}
%{target_libdir}/libasan.a
%if %{build_multilib}
%{multilibdir}/libasan.a
%endif
%endif

#-----------------------------------------------------------------------
# Thread Sanitizer
#-----------------------------------------------------------------------
%if %isarch %{x86_64} aarch64
%if %{build_tsan}
%package -n %{libtsan}
Summary:	GCC Thread Sanitizer library
Group:		Development/C

%description -n %{libtsan}
GCC Address Sanitizer Library.

%files -n %{libtsan}
%{target_libdir}/libtsan.so.%{tsan_major}*

#-----------------------------------------------------------------------

%package -n %{libtsan_devel}
Summary:	GCC Thread Sanitizer development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libtsan} = %{EVRD}
Provides:	libtsan-devel = %{EVRD}
Provides:	tsan-devel = %{EVRD}

%description -n %{libtsan_devel}
This package contains GCC libraries which are needed
to use Thread Sanitizer features.

%files -n %{libtsan_devel}
%{target_libdir}/libtsan.so
%{target_libdir}/libtsan_preinit.o

#-----------------------------------------------------------------------

%package -n %{libtsan_static_devel}
Summary:	Static libtsan
Group:		Development/C
Requires:	%{libtsan_devel} = %{EVRD}

%description -n %{libtsan_static_devel}
Static libtsan.

%files -n %{libtsan_static_devel}
%{target_libdir}/libtsan.a
%endif
%endif

#-----------------------------------------------------------------------
# Atomic operations
#-----------------------------------------------------------------------
%if %{build_atomic}
%package -n %{libatomic}
Summary:	GCC Atomic operations library
Group:		Development/C
# compat with Fedora/RH
Provides:	libatomic = %{EVRD}

%description -n %{libatomic}
GCC Atomic operations Library.

%files -n %{libatomic}
%{target_libdir}/libatomic.so.%{atomic_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibatomic}
Summary:	GCC Atomic optimizer library
Group:		Development/C

%description -n %{multilibatomic}
GCC Atomic optimizer Library.

%files -n %{multilibatomic}
%{multilibdir}/libatomic.so.%{atomic_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libatomic_devel}
Summary:	GCC Atomic optimizer development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libatomic} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibatomic} = %{EVRD}
%endif
Provides:	libatomic-devel = %{EVRD}
Provides:	atomic-devel = %{EVRD}

%description -n %{libatomic_devel}
This package contains GCC libraries which are needed
to use Atomic optimizer features.

%files -n %{libatomic_devel}
%{target_libdir}/libatomic.so
%if %{build_multilib}
%{multilibdir}/libatomic.so
%endif

#-----------------------------------------------------------------------

%package -n %{libatomic_static_devel}
Summary:	Static libatomic
Group:		Development/C
Requires:	%{libatomic_devel} = %{EVRD}

%description -n %{libatomic_static_devel}
Static libatomic.

%files -n %{libatomic_static_devel}
%{target_libdir}/libatomic.a
%if %{build_multilib}
%{multilibdir}/libatomic.a
%endif
%endif

########################################################################
# VTV (VTable Verification)
########################################################################
%if 0
%if %{build_vtv}
%package -n %{libvtv}
Summary:	VTable Verification library
Group:		Development/C

%description -n %{libvtv}
VTable Verification library.

%files -n %{libvtv}
%{target_libdir}/libvtv.so.%{vtv_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibvtv}
Summary:	VTable Verification library
Group:		Development/C

%description -n %{multilibvtv}
VTable Verification library.

%files -n %{multilibvtv}
%{multilibdir}/libvtv.so.%{vtv_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libvtv_devel}
Summary:	GCC VTable Verification development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libvtv} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibvtv} = %{EVRD}
%endif
Provides:	libvtv-devel = %{EVRD}
Provides:	vtv-devel = %{EVRD}

%description -n %{libvtv_devel}
This package contains GCC libraries which are needed
to use VTable Verification features.

%files -n %{libvtv_devel}
%{target_libdir}/libvtv.so
%if %{build_multilib}
%{multilibdir}/libvtv.so
%endif

#-----------------------------------------------------------------------

%package -n %{libvtv_static_devel}
Summary:	Static libvtv
Group:		Development/C
Requires:	%{libvtv_devel} = %{EVRD}

%description -n %{libvtv_static_devel}
Static libvtv

%files -n %{libvtv_static_devel}
%{target_libdir}/libvtv.a
%if %{build_multilib}
%{multilibdir}/libvtv.a
%endif
%endif
%endif

########################################################################
# UBSan (Undefined Behavior Sanitizer)
########################################################################
%if %{build_ubsan}
%package -n %{libubsan}
Summary:	Undefined Behavior Sanitizer library
Group:		Development/C

%description -n %{libubsan}
Undefined Behavior Sanitizer library.

%files -n %{libubsan}
%{target_libdir}/libubsan.so.%{ubsan_major}*

#-----------------------------------------------------------------------

%if %{build_multilib}
%package -n %{multilibubsan}
Summary:	Undefined Behavior Sanitizer library
Group:		Development/C

%description -n %{multilibubsan}
Undefined Behavior Sanitizer library.

%files -n %{multilibubsan}
%{multilibdir}/libubsan.so.%{ubsan_major}*
%endif

#-----------------------------------------------------------------------

%package -n %{libubsan_devel}
Summary:	GCC Undefined Behavior Sanitizer development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libubsan} = %{EVRD}
%if %{build_multilib}
Requires:	%{multilibubsan} = %{EVRD}
%endif
Provides:	libubsan-devel = %{EVRD}
Provides:	ubsan-devel = %{EVRD}

%description -n %{libubsan_devel}
This package contains GCC libraries which are needed
to use Undefined Behavior Sanitizer features.

%files -n %{libubsan_devel}
%{target_libdir}/libubsan.so
%{target_libdir}/libsanitizer.spec
%if %{build_multilib}
%{multilibdir}/libubsan.so
%{multilibdir}/libsanitizer.spec
%endif
%optional %{gccdir}/include/sanitizer

#-----------------------------------------------------------------------

%package -n %{libubsan_static_devel}
Summary:	Static libubsan
Group:		Development/C
Requires:	%{libubsan_devel} = %{EVRD}

%description -n %{libubsan_static_devel}
Static libubsan.

%files -n %{libubsan_static_devel}
%{target_libdir}/libubsan.a
%if %{build_multilib}
%{multilibdir}/libubsan.a
%endif
%endif

########################################################################
# LSan (Leak Sanitizer)
########################################################################
%if %isarch %{x86_64} aarch64
%if %{build_lsan}
%package -n %{liblsan}
Summary:	Leak Sanitizer library
Group:		Development/C

%description -n %{liblsan}
Leak Sanitizer library.

%files -n %{liblsan}
%{target_libdir}/liblsan.so.%{lsan_major}*

#-----------------------------------------------------------------------

%package -n %{liblsan_devel}
Summary:	GCC Leak Sanitizer development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{liblsan} = %{EVRD}
Provides:	liblsan-devel = %{EVRD}
Provides:	lsan-devel = %{EVRD}

%description -n %{liblsan_devel}
This package contains GCC libraries which are needed
to use Leak Sanitizer features.

%files -n %{liblsan_devel}
%{target_libdir}/liblsan.so
%{_libdir}/liblsan_preinit.o

#-----------------------------------------------------------------------

%package -n %{liblsan_static_devel}
Summary:	Static liblsan
Group:		Development/C
Requires:	%{liblsan_devel} = %{EVRD}

%description -n %{liblsan_static_devel}
Static liblsan.

%files -n %{liblsan_static_devel}
%{target_libdir}/liblsan.a
%endif
%endif
########################################################################
%if %isarch aarch64
%package -n %{libhwasan}
Summary:	Sanitizer library
Group:		Development/C

%description -n %{libhwasan}
Sanitizer library.

%files -n %{libhwasan}
%{target_libdir}/libhwasan.so.%{hwasan_major}*

#-----------------------------------------------------------------------

%package -n %{libhwasan_devel}
Summary:	GCC Sanitizer development support
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libhwasan} = %{EVRD}
Provides:	libhwasan-devel = %{EVRD}
Provides:	hwasan-devel = %{EVRD}

%description -n %{libhwasan_devel}
This package contains GCC libraries which are needed
to use Sanitizer features.

%files -n %{libhwasan_devel}
%{target_libdir}/libhwasan.so

#-----------------------------------------------------------------------

%package -n %{libhwasan_static_devel}
Summary:	Static libhwasan
Group:		Development/C
Requires:	%{libhwasan_devel} = %{EVRD}

%description -n %{libhwasan_static_devel}
Static libhwasan.

%files -n %{libhwasan_static_devel}
%{target_libdir}/libhwasan.a
%endif

########################################################################

%prep
%setup -q -n %{srcname}
%patch0 -p1 -b .uclibc~
%patch1 -p1 -b .pthreadlinkage~
#patch2 -p1 -b .aarch64~
%patch3 -p1 -b .linux32~
%patch4 -p1 -b .execstack~
%patch6 -p1 -b .ltobfd~
%patch7 -p1 -b .plugindet~
# Breaks the build, see comment on bug 33763
#patch8 -p1 -b .ext_inline~
#patch9 -p1 -b .android~
#patch10 -p1 -b .texi50~
%patch11 -p1 -b .buildfix~
%patch12 -p1 -b .compare~
%patch13 -p1 -b .short
%patch14 -p1 -b .Oz~
%patch15 -p1 -b .libstdc++clang~
%ifarch aarch64
%patch16 -p1 -b .EVILaarch64~
%endif
%patch17 -p1 -b .compilerRt~
%patch18 -p1 -b .musl1~
%patch20 -p1 -b .musllibgcc~

%patch101 -p2 -b .google2~
%patch102 -p2 -b .google3~

%patch1001 -p1 -b .pass_slibdir~
%patch1007 -p1 -b .multi-do-libdir~
# Allow building with current autoconf
find . -name "*.m4" |xargs sed -i -e 's,2\.69,2.71,g'

aclocal -I config
autoconf

echo %{vendor} > gcc/DEV-PHASE
%if "%{snapshot}" != ""
echo %{version} > gcc/BASE-VER
%endif

# Let's get our flags right...
LANGUAGES=c
%if %{build_ada}
    LANGUAGES="$LANGUAGES,ada"
%endif
%if %{build_cxx}
    LANGUAGES="$LANGUAGES,c++"
%endif
%if %{build_d}
    LANGUAGES="$LANGUAGES,d"
%endif
%if %{build_fortran}
    LANGUAGES="$LANGUAGES,fortran"
%endif
%if %{build_go}
    LANGUAGES="$LANGUAGES,go"
%endif
%if %{build_lto}
    LANGUAGES="$LANGUAGES,lto"
%endif
%if %{build_objc}
    LANGUAGES="$LANGUAGES,objc"
%endif
%if %{build_objcxx}
    LANGUAGES="$LANGUAGES,obj-c++"
%endif
PROGRAM_SUFFIX=""
%if "%{program_suffix}" != ""
PROGRAM_SUFFIX="--program-suffix=%{program_suffix}"
%endif
PROGRAM_PREFIX=""
%if "%{program_prefix}" != ""
PROGRAM_PREFIX="--program-prefix=%{program_prefix}"
%endif
case %{libc} in
glibc|musl)	LIBC_FLAGS="--enable-threads=posix";;
newlib)		LIBC_FLAGS="--with-newlib --with-headers --disable-threads";;
*)		echo "ERROR: unsupported %{libc} C library"; exit 1;;
esac
%if %{libc_shared}
LIBC_FLAGS="$LIBC_FLAGS --enable-shared --enable-static"
%else
LIBC_FLAGS="$LIBC_FLAGS --disable-shared --enable-static"
%endif
# target specific flags (don't %ifarch for cross compilers)
case %{target_cpu} in
x86_64)		TARGET_FLAGS="--with-cpu=generic %{?build_multilib:--with-arch_32=i686 --with-multilib-list=m32,m64,mx32}";;
znver1)		TARGET_FLAGS="--with-cpu=znver1 %{?build_multilib:--with-arch_32=i686 --with-multilib-list=m32,m64,mx32}";;
i?86|athlon)	TARGET_FLAGS="--with-arch=i686 --with-cpu=generic";;
mips64|mips64el) TARGET_FLAGS="--enable-long-long --with-abi=64 --enable-targets=all";;
mips32|mips32el) TARGET_FLAGS="--enable-long-long --with-abi=n32 --enable-targets=all";;
mips|mipsel) TARGET_FLAGS="--enable-long-long --enable-targets=all --enable-multiarch";;
armv7*) TARGET_FLAGS="--with-arch=armv7-a --with-tune=cortex-a15 ";;
esac

# Configure for building some key crosscompilers
for i in %{long_bootstraptargets} %{long_targets}; do
	EXTRA_FLAGS=""
	CFLAGS_FOR_TARGET=""
	CXXFLAGS_FOR_TARGET=""
	mkdir -p obj-${i}
	cd obj-${i}
	if echo ${i} |grep -q x32; then
		EXTRA_FLAGS="--with-abi=mx32 --with-multilib-list=mx32"
		export CFLAGS_FOR_TARGET="-mx32"
		export CXXFLAGS_FOR_TARGET="-mx32"
	elif echo ${i} |grep -qE '(x86_64|znver1)'; then
		# FIXME add mx32 once X32 is bootstrapped far enough
		EXTRA_FLAGS="--with-multilib-list=m64,m32"
		if [ "%{gcc_target_platform}" != "$i" ]; then
			# We have separate crosscompilers for i686 and x32,
			# let's make sure we get a 64bit libgcc.a
			EXTRA_FLAGS="--with-abi=m64 --without-multilib --disable-multilib"
			export CFLAGS_FOR_TARGET="-m64"
			export CXXFLAGS_FOR_TARGET="-m64"
		fi
	elif echo ${i} |grep ppc64; then
		EXTRA_FLAGS="--without-multilib --disable-multilib"
		export CFLAGS_FOR_TARGET="-m64"
		export CXXFLAGS_FOR_TARGET="-m64"
	fi
	# https://sourceware.org/bugzilla/show_bug.cgi?id=26360
	# glibc on ppc64le assumes 128-bit long doubles, while gcc (when built
	# without glibc headers already present) assumes 64-bit long doubles.
	# Let's force glibc's view of the world to make it match.
	# While other libcs don't barf as badly, --with-long-double-128 makes
	# sense for all ppc64 targets.
	if echo ${i} |grep -qE '^(ppc|powerpc)64le.*-gnu'; then
		EXTRA_FLAGS="$EXTRA_FLAGS --with-long-double-128"
	fi
	if echo ${i} |grep -q '-gnu'; then
		# glibc target -- when bootstrapping, make sure we set defaults
		# for the right version anyway
		EXTRA_FLAGS="$EXTRA_FLAGS --with-glibc-version=2.32"
	fi
	if echo ${i} |grep -q musl; then
		# gcc sanitizers currently aren't compatible with musl
		# (too many hardcoded assumptions that match glibc/bionic behavior)
		EXTRA_FLAGS="$EXTRA_FLAGS --disable-libsanitizer"
		if echo ${i} |grep -qE '(i.86|x86_64|znver1)'; then
			# Incomplete struct _libc_fpstate on x86 musl
			if echo ${i} |grep -E '(x86_64|znver1)'; then
				# No multilib support in crosscompilers
				if echo ${i} |grep x32; then
					EXTRA_FLAGS="$EXTRA_FLAGS --with-abi=mx32 --with-multilib-list=mx32 --without-multilib --disable-multilib"
				else
					EXTRA_FLAGS="$EXTRA_FLAGS --with-abi=m64 --with-multilib-list=m64 --without-multilib --disable-multilib"
				fi
			fi
		fi
	fi
	if echo ${i} |grep -q riscv; then
		# RISC-V 32 is not yet supported
		EXTRA_FLAGS="$EXTRA_FLAGS --without-multilib --disable-multilib"
	elif echo ${i} |grep i686-w64; then
		# Despite the "64" in its name, i686-w64-mingw32 is a 32-bit,
		# non-multilib arch
		EXTRA_FLAGS="$EXTRA_FLAGS --without-multilib --disable-multilib"
	fi
	if [ "%{gcc_target_platform}" = "$i" ]; then
		echo "===== Building native $i compiler ====="
		# This is the native compiler...

		# We can't currently compile gcc with clang, even
		# though that would be great for bootstrapping
		# --with-build-config=bootstrap-lto would be nice to
		# add, but currently errors out on "make install" in
		# fixincludes
		CC=gcc \
		CXX=g++ \
		CFLAGS="$OPT_FLAGS" \
		CXXFLAGS="$OPT_FLAGS" \
		TCFLAGS="$OPT_FLAGS" \
		XCFLAGS="$OPT_FLAGS" \
		ORIGINAL_NM_FOR_TARGET="%{_bindir}/nm" \
		NM_FOR_TARGET="%{_bindir}/nm" \
		../configure \
			--prefix=%{_prefix} \
			--libexecdir=%{_libexecdir} \
			--libdir=%{_libdir} \
			--with-slibdir=%{target_slibdir} \
			--mandir=%{_mandir} \
			--infodir=%{_infodir} \
			--disable-isl-version-check \
%if !%{build_ffi}
			--disable-libffi \
%endif
%if !%{build_gomp}
			--disable-libgomp \
%endif
%if !%{build_quadmath}
			--disable-libquadmath \
%if %{build_fortran}
			--disable-libquadmath-support \
%endif
%endif
%if !%{build_ssp}
			--disable-libssp \
%endif
			--disable-werror \
			--enable-__cxa_atexit \
%if !%isarch %{mipsx}
			--enable-gold=default \
%endif
			--with-plugin-ld=%{_bindir}/%{gcc_target_platform}-ld \
%if %{system_gcc}
			--enable-bootstrap \
%endif
			--enable-checking=release \
			--enable-gnu-unique-object \
%if %mdvver <= 3000000
			--with-default-libstdcxx-abi=gcc4-compatible \
%endif
			--enable-gnu-indirect-function \
			--with-linker-hash-style=gnu \
			--enable-languages="$LANGUAGES" \
			$PROGRAM_PREFIX \
			--enable-linker-build-id \
%if !%{build_plugin}
			--disable-plugin \
%else
			--enable-plugin \
			--enable-shared \
			--enable-libcc1 \
			--enable-lto \
%endif
%if !%{build_lto}
			--disable-lto \
%endif
%if %{build_atomic}
			--enable-libatomic \
%else
			--disable-libatomic \
%endif
			$LIBC_FLAGS \
			--with-system-zlib \
			--with-bugurl=%{bugurl} \
%if !%{build_multilib}
			--disable-multilib \
%endif
%if %isarch armv5te
			--with-arch=armv5te \
%endif
%if %isarch armv7l armv7hl armv7hln armv7hnl armv8l armv8hl armv8hnl armv8hcnl
			--without-multilib \
			--disable-multilib \
			--with-mode=thumb \
%if %isarch armv7l armv8l
			--with-float=softfp \
%else
			--with-float=hard \
%endif
%if 0
		# should be be armv7hl only
			--with-fpu=vfpv3-d16 \
		# should be be armv7hln armv7hnl
%endif
%if %isarch armv7hl armv7hln armv7hnl armv8hl armv8hnl armv8hcnl
			--with-fpu=neon \
			--with-abi=aapcs-linux \
%endif
%endif
			--host=%{_target_platform} \
			--build=%{_target_platform} \
			$TARGET_FLAGS \
			$EXTRA_FLAGS
%if %{with crosscompilers}
	else
		if echo $i |grep -q '^arm'; then
			if echo $i |grep -q h; then
				EXTRA_FLAGS="$EXTRA_FLAGS --with-float=hard --with-abi=aapcs-linux"
			else
				EXTRA_FLAGS="$EXTRA_FLAGS --with-float=softfp --with-abi=aapcs-linux"
			fi
			if echo $i |grep -q n; then
				EXTRA_FLAGS="$EXTRA_FLAGS --with-fpu=neon"
			else
				EXTRA_FLAGS="$EXTRA_FLAGS --with-fpu=vfpv3"
			fi
		fi
		if ! echo $i |grep -q 'mingw'; then
			# We want --hash-stlye=gnu, but not on a non-ELF target
			EXTRA_FLAGS="$EXTRA_FLAGS --with-linker-hash-style=gnu"
		fi
		if echo "%{long_bootstraptargets}" |grep -q $i; then
			echo "===== Building %{gcc_target_platform} -> $i bootstrap crosscompiler ====="
			CC=gcc CXX=g++ LDFLAGS="-fuse-ld=bfd" ../configure \
				--prefix=%{_prefix} \
				--libexecdir=%{_libexecdir} \
				--libdir=%{_libdir} \
				--with-slibdir=%{_prefix}/${i}/lib \
				--mandir=%{_mandir} \
				--infodir=%{_infodir} \
				--disable-libffi \
				--disable-libgomp \
				--disable-libquadmath \
				--disable-libssp \
				--disable-werror \
				--enable-__cxa_atexit \
				--enable-gold=default \
				--with-plugin-ld=%{_bindir}/${i}-ld \
				--enable-checking=release \
				--enable-gnu-unique-object \
				--enable-gnu-indirect-function \
				--enable-languages=c \
				--program-prefix=${i}- \
				--enable-linker-build-id \
				--disable-plugin \
				--disable-lto \
				--disable-libatomic \
				--disable-shared \
				--enable-static \
				--with-system-zlib \
				--with-bugurl=https://bugzilla.rosalinux.ru \
				--disable-multilib \
				--disable-threads \
				--target=${i} \
				$EXTRA_FLAGS
		else
			echo "===== Building %{gcc_target_platform} -> $i crosscompiler ====="
			CC=gcc CXX=g++ LDFLAGS="-fuse-ld=bfd" ../configure \
				--prefix=%{_prefix} \
				--libexecdir=%{_libexecdir} \
				--libdir=%{_libdir} \
				--with-slibdir=%{_prefix}/${i}/lib \
				--mandir=%{_mandir} \
				--infodir=%{_infodir} \
				--with-sysroot=%{_prefix}/${i} \
				--with-native-system-header-dir=/include \
				--enable-threads \
				--enable-shared \
				--enable-lto \
				--enable-plugin \
				--enable-languages=c,c++,fortran,lto,objc,obj-c++ \
				--target=${i} \
				--with-bugurl=https://bugzilla.rosalinux.ru \
				$EXTRA_FLAGS
		fi
%endif
	fi
	cd ..
done

#-----------------------------------------------------------------------
%build
# FIXME: extra tools needed
export PATH=$PATH:$PWD/bin
export sysroot=%{target_prefix}
#_prefix}/%{gcc_target_platform}

# The -gdwarf-4 removal is a workaround for gcc bug #52420
OPT_FLAGS=`echo %{optflags} -fno-strict-aliasing | \
    sed -e 's/-Wall//g' -e 's/-all//g' \
    -e 's/\(-Wp,\)\?-D_FORTIFY_SOURCE=[12]//g' \
    -e 's/-m\(31\|32\|64\)//g' \
    -e 's/-mx32//g' \
    -e 's/-fstack-protector-strong//g' \
    -e 's/-fstack-protector//g' \
    -e 's/--param=ssp-buffer-size=4//' \
    -e 's/-gdwarf-4/-g/' \
    -e 's/-pipe//g'`
OPT_FLAGS=`echo "$OPT_FLAGS" | sed -e 's/[[:blank:]]\+/ /g'`

# don't build crt files with -fasynchronous-unwind-tables
case " $OPT_FLAGS " in
*" -fasynchronous-unwind-tables "*)
  sed -e 's/-fno-exceptions /-fno-exceptions -fno-asynchronous-unwind-tables /' -i gcc/Makefile.in
  ;;
esac
echo "Using OPT_FLAGS $OPT_FLAGS"

BOOTSTRAP=bootstrap
%if %isarch %{ix86} %{x86_64}
    %if %{system_gcc}
        BOOTSTRAP=profiledbootstrap
    %endif
%endif

# FIXME debugedit
[ ! -z "$TMP" ] && export TMP=`echo $TMP | sed -e 's|/$||'`
[ ! -z "x$TMPDIR" ] && export TMPDIR=`echo $TMPDIR | sed -e 's|/$||'`

for i in %{long_bootstraptargets} %{long_targets}; do
	cd obj-${i}
	if [ "%{gcc_target_platform}" = "$i" ]; then
		# Native host compiler gets special treatment...

		if ! %make BOOT_CFLAGS="$OPT_FLAGS" $BOOTSTRAP; then
			# Let's try to get a better error message
			# (Workaround for builds working locally and failing in abf,
			# let's see where exactly it's failing)
			make -j1 BOOT_CFLAGS="$OPT_FLAGS" $BOOTSTRAP
		fi

%if %{build_pdf}
		%make pdf || :
%endif

%if %{build_doc}
		pushd host-%{gcc_target_platform}/gcc
		%make html || :
%if %{build_pdf}
		%make pdf || :
%endif
		popd
%endif

%if %{with crosscompilers}
	else
		%make
%endif
	fi
	cd ..
done

#-----------------------------------------------------------------------

%if %{build_check}
%check
echo ====================TESTING=========================
%{_bindir}/time %make -k check || true
echo "XXX check time above XXX"
contrib/test_summary > test_summary.log
echo ====================TESTING END=====================
install -D -m644 test_summary.log %{buildroot}%{_docdir}/gcc/test_summary.log
%endif

#-----------------------------------------------------------------------

%install
%if %{with crosscompilers}
# Install crosscompilers first so the native compiler can overwrite stuff
for i in %{long_bootstraptargets} %{long_targets}; do
	[ "%{gcc_target_platform}" = "$i" ] && continue
	%make_install -C obj-${i}
done
# *-mingw32 crosscompilers include a float.h file that hides
# mingw's own float.h, causing mingw-crt to fail
for i in %{buildroot}%{_libdir}/gcc/*mingw32/*/include/float.h; do
	[ -e "$i" ] || continue
	echo >>$i
	echo '#include_next <float.h>' >>$i
done
%endif
# Native compiler
%make_install -C obj-%{gcc_target_platform}

%if %{build_lto}
# Put the LTO plugin where ld can see it...
mkdir -p %{buildroot}%{_libdir}/bfd-plugins
ln -s ../../libexec/gcc/%{gcc_target_platform}/%{ver}/liblto_plugin.so %{buildroot}%{_libdir}/bfd-plugins/liblto_plugin.so
%endif

# configure python dir option does not cover libstdc++
mkdir -p %{buildroot}%{py3_puresitedir}
    if [ -d %{buildroot}%{_datadir}/gcc-%{ver}/python ]; then
        mv -f %{buildroot}%{_datadir}/gcc-%{ver}/python/* \
            %{buildroot}%{py3_puresitedir}
        rm -fr %{buildroot}%{_datadir}/gcc-%{ver}
    fi

pushd %{buildroot}%{_bindir}
%if %{system_gcc}
    mkdir -p %{buildroot}/lib
    ln -sf %{_bindir}/cpp %{buildroot}/lib/cpp
    install -m 0755 %{SOURCE4} %{SOURCE5} %{buildroot}%{_bindir}
    ln -sf %{gcc_target_platform}-gcc-%{ver} cc
%else
    rm %{buildroot}%{_bindir}/cpp
%endif
    PROGRAMS="gcc"
    %if %{build_cxx}
        PROGRAMS="$PROGRAMS g++"
    %endif
    %if %{build_go}
        PROGRAMS="$PROGRAMS gccgo"
    %endif
    %if %{build_fortran}
        PROGRAMS="$PROGRAMS gfortran"
    %endif
    for prog in $PROGRAMS; do
        if [ -f %{gcc_target_platform}-$prog ]; then
            rm -f %{gcc_target_platform}-$prog-%{ver}
            mv -f %{gcc_target_platform}-$prog{,-%{ver}}
        fi
        rm -f $prog
        ln -sf %{gcc_target_platform}-$prog-%{ver} $prog-%{ver}
        %if %{system_gcc}
            ln -sf %{gcc_target_platform}-$prog-%{ver} $prog
            ln -sf %{gcc_target_platform}-$prog-%{ver} %{gcc_target_platform}-$prog
        %endif
    done
%if %{build_cxx}
    rm -f c++ %{gcc_target_platform}-c++{,-%{ver}}
    ln -sf %{gcc_target_platform}-g++-%{ver} c++-%{ver}
    %if %{system_gcc}
        ln -sf %{gcc_target_platform}-g++-%{ver} c++
    %endif
    %if %{system_gcc}
        ln -sf %{gcc_target_platform}-g++-%{ver} %{gcc_target_platform}-c++
    %endif

    mkdir -p %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}
    mv -f %{buildroot}%{_libdir}/libstdc++.so.*.py \
        %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}
    perl -pi -e 's|%{_datadir}/gcc-%{ver}/python|%{py3_puresitedir}|;' \
        %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}/libstdc++.*.py

    mkdir -p %{buildroot}/%{target_slibdir}
    mv %{buildroot}%{target_libdir}/libstdc++.so.%{stdcxx_major}* \
        %{buildroot}/%{target_slibdir}
    ln -srf %{buildroot}/%{target_slibdir}/libstdc++.so.%{stdcxx_major}.*.* \
        %{buildroot}%{target_libdir}/libstdc++.so

    %if %{build_multilib}
        mkdir -p %{buildroot}%{_datadir}/gdb/auto-load%{multilibdir}
        mv -f %{buildroot}%{multilibdir}/libstdc++.so.*.py \
        %{buildroot}%{_datadir}/gdb/auto-load%{multilibdir}
        perl -pi -e 's|%{_datadir}/gcc-%{ver}/python|%{py3_puresitedir}|;' \
            %{buildroot}%{_datadir}/gdb/auto-load%{multilibdir}/libstdc++.*.py

        mkdir -p %{buildroot}%{multirootlibdir}
        mv %{buildroot}%{multilibdir}/libstdc++.so.%{stdcxx_major}* \
            %{buildroot}%{multirootlibdir}
        ln -srf %{buildroot}%{multirootlibdir}/libstdc++.so.%{stdcxx_major}.*.* \
            %{buildroot}%{multilibdir}/libstdc++.so
    %endif
%endif
popd

%if %{build_gomp}
    mkdir -p %{buildroot}%{target_slibdir}
    mv %{buildroot}%{target_libdir}/libgomp.so.%{gomp_major}* \
        %{buildroot}%{target_slibdir}
    ln -srf %{buildroot}%{target_slibdir}/libgomp.so.%{gomp_major}.*.* \
        %{buildroot}%{target_libdir}/libgomp.so

    %if %{build_multilib}
        mkdir -p %{buildroot}%{multirootlibdir}
        mv %{buildroot}%{multilibdir}/libgomp.so.%{gomp_major}* \
            %{buildroot}%{multirootlibdir}
        ln -srf %{buildroot}%{multirootlibdir}/libgomp.so.%{gomp_major}.*.* \
            %{buildroot}%{multilibdir}/libgomp.so
    %endif
%endif

%if %{system_gcc}
    mkdir -p %{buildroot}/%{target_slibdir}
    mv %{buildroot}%{target_libdir}/libgcc_s.so.%{gcc_major} \
        %{buildroot}/%{target_slibdir}
    # FIXME symlinking libgcc_s.so.%{gcc_major} to libgcc_s.so results in
    # odd unresolved symbols as seen in
    # https://bugzilla.redhat.com/show_bug.cgi?id=1830472
    # The fix works, but why isn't upstream doing anything like this?
    # Need to keep checking if there has been an upstream fix.
    #ln -srf %{buildroot}/%{target_slibdir}/libgcc_s.so.%{gcc_major} \
    #    %{buildroot}%{target_libdir}/libgcc_s.so
    cat >%{buildroot}%{target_libdir}/libgcc_s.so <<EOF
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(`gcc -Wl,--print-output-format -nostdlib -r -o /dev/null`)
GROUP ( %{target_slibdir}/libgcc_s.so.%{gcc_major} libgcc.a )
EOF

    %if %{build_multilib}
        mkdir -p %{buildroot}%{multirootlibdir}
        mv %{buildroot}%{multilibdir}/libgcc_s.so.%{gcc_major} \
            %{buildroot}%{multirootlibdir}
#        ln -srf %{buildroot}%{multirootlibdir}/libgcc_s.so.%{gcc_major} \
#            %{buildroot}%{multilibdir}/libgcc_s.so
        cat >%{buildroot}%{multilibdir}/libgcc_s.so <<EOF
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(`gcc -m32 -Wl,--print-output-format -nostdlib -r -o /dev/null`)
GROUP ( %{multirootlibdir}/libgcc_s.so.%{gcc_major} libgcc.a )
EOF

	if [ -e %{buildroot}%{_prefix}/libx32/libgcc_s.so.%{gcc_major} ]; then
            mkdir -p %{buildroot}/libx32
            mv %{buildroot}%{_prefix}/libx32/libgcc_s.so.%{gcc_major} \
                %{buildroot}/libx32/
#            ln -srf %{buildroot}/libx32/libgcc_s.so.%{gcc_major} \
#                %{buildroot}%{_prefix}/libx32/libgcc_s.so
            cat >%{buildroot}%{_prefix}/libx32/libgcc_s.so <<EOF
/* GNU ld script
   Use the shared library, but some functions are only in
   the static library, so try that secondarily.  */
OUTPUT_FORMAT(`gcc -mx32 -Wl,--print-output-format -nostdlib -r -o /dev/null`)
GROUP ( %{multirootlibdir}/libgcc_s.so.%{gcc_major} libgcc.a )
EOF
        fi
    %endif
%endif

%if %{shared_libgnat}
    %if %{build_ada}
        for lib in libgnarl libgnat; do
            rm -f %{buildroot}%{target_libdir}/$lib.so
            rm -f %{buildroot}%{gccdir}/adalib/$lib.so
            mv -f %{buildroot}%{gccdir}/adalib/$lib-%{majorver}.so \
                    %{buildroot}%{target_libdir}/$lib-%{majorver}.so.%{gnat_major}
            ln -sf $lib-%{majorver}.so.%{gnat_major} %{buildroot}%{target_libdir}/$lib-%{majorver}.so
            ln -sf $lib-%{majorver}.so.%{gnat_major} %{buildroot}%{target_libdir}/$lib.so
            %if %{build_multilib}
                rm -f %{buildroot}%{multilibdir}/$lib.so
                rm -f %{buildroot}%{multigccdir}/adalib/$lib.so
                mv -f %{buildroot}%{multigccdir}/adalib/$lib-%{majorver}.so \
                        %{buildroot}%{multilibdir}/$lib-%{majorver}.so.%{gnat_major}
                ln -sf $lib-%{majorver}.so.%{gnat_major} %{buildroot}%{multilibdir}/$lib-%{majorver}.so
                ln -sf $lib-%{majorver}.so.%{gnat_major} %{buildroot}%{multilibdir}/$lib.so
            %endif
        done
    %endif
%endif

mv -f %{buildroot}%{gccdir}/include{-fixed,}/syslimits.h
mv -f %{buildroot}%{gccdir}/include{-fixed,}/limits.h
rm -fr %{buildroot}%{gccdir}/include-fixed
rm -fr %{buildroot}%{gccdir}/install-tools/include

%if !%{system_gcc}
    rm -fr %{buildroot}%{_infodir}
    rm -fr %{buildroot}%{_mandir}
    rm -fr %{buildroot}%{_localedir}
    rm -f %{buildroot}%{_bindir}/gcov
    rm -f %{buildroot}%{_libdir}/libgcc_s.so
    %if %{build_multilib}
        rm -f %{buildroot}%{multilibdir}/libgcc_s.so
        rm -f %{buildroot}%{_prefix}/libx32/libgcc_s.so
    %endif
    %if !%{build_libgcc}
         rm -f %{buildroot}%{target_libdir}/libgcc_s.so.*
         %if %{build_multilib}
             rm -f %{buildroot}%{multilibdir}/libgcc_s.so.*
             rm -f %{buildroot}%{_prefix}/libx32/libgcc_s.so.*
         %endif
    %endif
%endif
rm -f %{buildroot}%{_libdir}/libiberty.a
rm -f %{buildroot}%{multilibdir}/libiberty.a

%if !%{build_ubsan}
    rm -f %{buildroot}%{target_libdir}/libubsan*
    %if %{build_multilib}
        rm -f %{buildroot}%{multilibdir}/libubsan*
    %endif
    rm -f %{buildroot}%{target_libdir}/libsanitizer.spec
%endif

%if !%{build_asan}
    rm -f %{buildroot}%{target_libdir}/libasan*
    %if %{build_multilib}
        rm -f %{buildroot}%{multilibdir}/libasan*
    %endif
%endif

%if !%{build_itm}
    rm -f %{buildroot}%{target_libdir}/libitm* %{buildroot}%{_infodir}/libitm.info*
    %if %{build_multilib}
        rm -f %{buildroot}%{multilibdir}/libitm*
    %endif
%else
    %if !%{system_gcc}
        rm -f %{buildroot}%{_infodir}/libitm.info*
    %endif
%endif

%if !%{package_ffi}
    rm -f %{buildroot}%{target_libdir}/libffi.*
    rm -f %{buildroot}%{multilibdir}/libffi.*
    rm -f %{buildroot}%{_mandir}/man3/ffi*
%else
    mkdir -p %{buildroot}%{target_slibdir}
    mv %{buildroot}%{target_libdir}/libffi.so.%{ffi_major}* \
        %{buildroot}%{target_slibdir}
    ln -srf %{buildroot}%{target_slibdir}/libffi.so.%{ffi_major}.*.* \
        %{buildroot}%{target_libdir}/libffi.so

    %if %{build_multilib}
        mkdir -p %{buildroot}%{multirootlibdir}
        mv %{buildroot}%{multilibdir}/libffi.so.%{ffi_major}* \
            %{buildroot}%{multirootlibdir}
        ln -srf %{buildroot}%{multirootlibdir}/libffi.so.%{ffi_major}.*.* \
            %{buildroot}%{multilibdir}/libffi.so
    %endif
%endif

pushd obj-%{gcc_target_platform}

%if %{build_doc}
    %if %{build_cxx}
    mkdir -p %{buildroot}%{_docdir}/libstdc++
    cp -far libstdc++-v3/doc/html %{buildroot}%{_docdir}/libstdc++
    %endif
    pushd host-%{gcc_target_platform}/gcc/HTML/gcc-%{ver}
        mkdir -p %{buildroot}%{_docdir}/gcc/html
        for doc in gcc gccinstall gccint; do
            cp -far $doc %{buildroot}%{_docdir}/gcc/html
        done
        %if %{system_gcc}
            mkdir -p %{buildroot}%{_docdir}/gcc-cpp/html
            for doc in cpp cppinternals; do
                cp -far $doc %{buildroot}%{_docdir}/gcc-cpp/html
            done
        %endif
        %if %{build_fortran}
            mkdir -p %{buildroot}%{_docdir}/gcc-gfortran/html
            cp -far gfortran %{buildroot}%{_docdir}/gcc-gfortran/html
        %endif
        %if %{build_go}
            mkdir -p %{buildroot}%{_docdir}/gcc-go/html
            cp -far go %{buildroot}%{_docdir}/gcc-go/html
        %endif
    popd
    %if %{build_pdf}
    pushd host-%{gcc_target_platform}/gcc/doc
        for doc in gcc.pdf gccinstall.pdf gccint.pdf; do
            install -m 0644 $doc %{buildroot}%{_docdir}/gcc/$doc
        done
        %if %{system_gcc}
            for doc in cpp.pdf cppinternals.pdf; do
                install -m 0644 $doc %{buildroot}%{_docdir}/gcc-cpp/$doc
            done
        %endif
        %if %{build_ada}
            mkdir -p %{buildroot}%{_docdir}/gcc-gnat
            for doc in gnat_ugn.pdf gnat_rm.pdf gnat-style.pdf; do
                install -m 0644 $doc %{buildroot}%{_docdir}/gcc-gnat/$doc
            done
        %endif
        %if %{build_fortran}
            for doc in gfc-internals.pdf gfortran.pdf; do
                install -m 0644 $doc %{buildroot}%{_docdir}/gcc-gfortran/$doc
            done
        %endif
        %if %{build_go}
            install -m 0644 -D gccgo.pdf %{buildroot}%{_docdir}/gcc-go/gccgo.pdf
        %endif
    popd
    pushd %{gcc_target_platform}
        %if %{build_gomp}
            install -m 0644 -D libgomp/libgomp.pdf %{buildroot}%{_docdir}/libgomp/libgomp.pdf
        %endif
        %if %{build_quadmath}
            install -m 0644 -D libquadmath/libquadmath.pdf %{buildroot}%{_docdir}/libquadmath/libquadmath.pdf
        %endif
    popd
    %endif
%endif

cd ..

%if ! %{default_compiler}
# Leave the cc, c89, c++, ... symlinks to clang
# or whatever other compiler is the default
rm -f \
	%{buildroot}%{_bindir}/cc \
	%{buildroot}%{_bindir}/c89 \
	%{buildroot}%{_bindir}/c99 \
	%{buildroot}%{_bindir}/c++
%endif

%if %{system_gcc}
install -m644 %{SOURCE10} -D %{buildroot}%{_sysconfdir}/sysconfig/gcc
install -m644 %{SOURCE11} -D %{buildroot}%{_sysconfdir}/profile.d/90gcc.sh
install -m644 %{SOURCE12} -D %{buildroot}%{_sysconfdir}/profile.d/90gcc.csh
%endif
%if %{build_go}
mkdir -p %{buildroot}/%{_libdir}/%{name}/bin/
ln -s %{_bindir}/%{name} %{buildroot}/%{_libdir}/%{name}/bin/%{name}
%endif

%if %{with crosscompilers}
for i in %{long_bootstraptargets} %{long_targets}; do
	# aarch64-mandriva-linux-gnu and aarch64-linux-gnu are similar enough...
	longplatform=$(grep ^target_alias= obj-$i/Makefile |cut -d= -f2-)
	if [ -n "$(echo $i |cut -d- -f4-)" ]; then
		shortplatform="$(echo $i |cut -d- -f1)-$(echo $i |cut -d- -f3-)"
		cd %{buildroot}%{_bindir}
		for j in $longplatform-*; do
			[ -e $(echo $j |sed -e "s,$longplatform,$shortplatform,") ] || ln -s $j $(echo $j |sed -e "s,$longplatform,$shortplatform,")
		done
		cd -
	fi
	if [ "$longplatform" != "$i" ]; then
		cd %{buildroot}%{_bindir}
		for j in $longplatform-*; do
			[ -e $(echo $j |sed -e "s,$longplatform,$i,") ] || ln -s $j $(echo $j |sed -e "s,$longplatform,$i,")
		done
		cd -
	fi
done
%endif

# Not sure why this ends up in /usr as well as the crosscompiler
# directories... Doesn't belong there for sure
%ifarch %{aarch64} %{riscv}
rm -rf %{buildroot}%{_prefix}/libx32
%endif

%if %{system_gcc}
%find_lang cpplib
%find_lang gcc
%if %{build_cxx}
%find_lang libstdc++
%endif
%endif

%if %{with crosscompilers}
%(
for i in %{long_bootstraptargets} %{long_targets}; do
	[ "$i" = "%{_target_platform}" ] && continue
	if echo "%{long_bootstraptargets}" |grep -q $i; then
		bootstrap=true
	else
		bootstrap=false
	fi
	if $bootstrap; then
		package=cross-${i}-gcc-bootstrap
	else
		package=cross-${i}-gcc
	fi
	cat <<EOF
%package -n ${package}
EOF
	if $bootstrap; then
		if echo $i |grep -q mingw; then
			echo "BuildRequires: cross-${i}-libc-bootstrap"
		fi
	else
		cat <<EOF
# Full compiler can also be used for bootstrapping...
%rename cross-${i}-gcc-bootstrap
BuildRequires: cross-${i}-libc
Recommends: cross-${i}-libc
EOF
		if ! echo $i |grep -q mingw; then
			cat <<EOF
BuildRequires: cross-${i}-kernel-release-headers
EOF
		fi
	fi
	cat <<EOF
Summary: Gcc for crosscompiling to ${i}
Group: Development/Other
BuildRequires: cross-${i}-binutils
Recommends: cross-${i}-binutils
AutoReqProv: no

%description -n ${package}
Gcc for crosscompiling to ${i}

%files -n ${package}
%{_bindir}/${i}-*
%{_mandir}/man?/${i}-*
%{_libdir}/gcc/${i}
%{_libexecdir}/gcc/${i}
EOF
	if ! $bootstrap; then
		cat <<EOF
%{_prefix}/${i}/include/*
%{_prefix}/${i}/lib*/*
EOF
	fi

	if [ -n "$(echo $i |cut -d- -f4-)" ]; then
		shortplatform="$(echo $i |cut -d- -f1)-$(echo $i |cut -d- -f3-)"
		echo "%{_bindir}/${shortplatform}-*"
	fi
	echo
done
)
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12801 |21mr|gccmakedep-1.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Create dependencies in makefiles using 'gcc -M'
Name:		gccmakedep
Version:	1.0.3
Release:	6
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/util/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(xorg-macros)
BuildArch:	noarch

%description
Create dependencies in makefiles using 'gcc -M'.

%files
%{_bindir}/gccmakedep
%{_mandir}/man1/gccmakedep.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# (abondrov) config* don't understand noarch-unknown-linux-gnu arch
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir} \
	--build=i586-%{_target_vendor}-%{_target_os}%{?_gnu}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12802 |21mr|GConf2-3.2.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname GConf

%define api 2
%define gi_version 2.0
%define major 4
%define libname %mklibname %{pkgname} %{api} %{major}
%define girname %mklibname gconf-gir %{gi_version}
%define devname %mklibname %{pkgname} %{api} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	A configuration database system for GNOME
Name:		%{pkgname}%{api}
Version:	3.2.6
Release:	11
License:	LGPLv2.1+
Group:		Graphical desktop/GNOME
URL:		http://www.gnome.org/projects/gconf/
Source0:	http://download.gnome.org/sources/%{pkgname}/%{url_ver}/%{pkgname}-%{version}.tar.xz
Source1:	gconf.sh
Source2:	gconf.csh
# (fc) reload database when schemas are installed/uninstalled (GNOME bug #328697)
Patch1:		GConf-2.12.1-reload.patch
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
Requires:	gsettings-desktop-schemas
Requires:	polkit-agent
# needed by patch1
Requires:	psmisc
Requires:	sed
Requires:	%{girname} = %{EVRD}
Requires(post):	update-alternatives
# Removed upstream, see https://bugzilla.gnome.org/show_bug.cgi?id=646674
Obsoletes:	GConf2-sanity-check < 3.2.6
Recommends:	dconf

%description
GConf is a configuration data storage mechanism scheduled to
ship with GNOME. GConf does work without GNOME however; it
can be used with plain GTK+, Xlib, KDE, or even text mode
applications as well.

%files -f %{name}.lang
%doc README
%dir %{_libdir}/GConf
%dir %{_libdir}/GConf/%{api}
%dir %{_sysconfdir}/gconf
%dir %{_sysconfdir}/gconf/gconf.xml*
%dir %{_sysconfdir}/gconf/schemas
%config(noreplace) %{_sysconfdir}/profile.d/*
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.gnome.GConf.Defaults.conf
%config(noreplace) %{_sysconfdir}/gconf/%{api}
%{_sysconfdir}/xdg/autostart/gsettings-data-convert.desktop
%{_bindir}/gsettings-data-convert
%{_bindir}/gconftool*
%{_bindir}/gconf-merge-tree
%{_mandir}/man1/gconftool-2.1*
%{_mandir}/man1/gsettings-data-convert.1*
%if "%{_lib}" != "lib"
%{_prefix}/lib/GConf
%endif
%{_libexecdir}/gconfd-%{api}
%{_libexecdir}/gconf-defaults-mechanism
%{_libdir}/GConf/%{api}/*.so
%{_libdir}/gio/modules/libgsettingsgconfbackend.so
%{_datadir}/polkit-1/actions/org.gnome.gconf.defaults.policy
%{_datadir}/sgml/gconf
%{_datadir}/GConf
%{_datadir}/dbus-1/services/org.gnome.GConf.service
%{_datadir}/dbus-1/system-services/org.gnome.GConf.Defaults.service

# remove buggy symlink
%post
update-alternatives --install %{_bindir}/gconftool gconftool /usr/bin/gconftool-%{api} 20
if [ "$1" = "2" ]; then
	update-alternatives --auto gconftool
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	gir-repository < 0.6.5-12

%description -n %{libname}
GConf is a configuration data storage mechanism scheduled to
ship with GNOME. GConf does work without GNOME however; it
can be used with plain GTK+, Xlib, KDE, or even text mode
applications as well.

This package contains necessary libraries to run any programs linked
with GConf.

%files -n %{libname}
%{_libdir}/libgconf-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface library for %{pkgname}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject introspection interface library for %{pkgname}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GConf-%{gi_version}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and headers for GConf
Group:		Development/GNOME and GTK+
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Conflicts:	gir-repository < 0.6.5-12

%description -n %{devname}
GConf is a configuration data storage mechanism scheduled to
ship with GNOME. GConf does work without GNOME however; it
can be used with plain GTK+, Xlib, KDE, or even text mode
applications as well.

This package contains the header files and libraries needed to develop
applications using GConf.

%files -n %{devname}
%doc ChangeLog TODO NEWS AUTHORS
%doc %{_datadir}/gtk-doc/html/*
%{_bindir}/gsettings-schema-convert
%{_datadir}/aclocal/*
%{_datadir}/gir-1.0/GConf-%{gi_version}.gir
%{_includedir}/gconf/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man1/gsettings-schema-convert.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}
%apply_patches

2to3 --write --nobackup gsettings/gsettings-schema-convert
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" . gsettings/gsettings-schema-convert

%build
%configure \
	--with-gtk=3.0 \
	--disable-static \
	--disable-orbit

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/gconf.sh
install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/gconf.csh

mkdir %{buildroot}%{_sysconfdir}/gconf/schemas

# Provide /usr/lib symlink on lib64 platforms
%if "%{_lib}" != "lib"
mkdir -p %{buildroot}%{_prefix}/lib
( cd %{buildroot}%{_prefix}/lib && ln -s ../%{_lib}/GConf GConf )
%endif

mkdir -p %{buildroot}%{_sysconfdir}/gconf/{gconf.xml.local-defaults,gconf.xml.local-mandatory,gconf.xml.system}

cat << EOF > %{buildroot}%{_sysconfdir}/gconf/2/local-defaults.path
xml:readonly:/etc/gconf/gconf.xml.local-defaults
include "\$(HOME)/.gconf.path.defaults"
EOF

cat << EOF > %{buildroot}%{_sysconfdir}/gconf/2/local-mandatory.path
xml:readonly:/etc/gconf/gconf.xml.local-mandatory
include "\$(HOME)/.gconf.path.mandatory"
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12803 |21mr|gcr3-3.41.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define oname		gcr

%define major_gck	0
%define api_gck		1

%define major_gcr	1
%define api_gcr		3

%define libname		%mklibname %{oname} %{api_gcr} %{major_gcr}
%define libnamebase	%mklibname %{oname}-base %{api_gcr} %{major_gcr}
%define libnamegck	%mklibname gck %{api_gck} %{major_gck}
%define girname		%mklibname %{oname}-gir %{major_gcr}
%define girnamegck	%mklibname gck-gir %{major_gck}
%define devname		%mklibname %{name} -d

Summary:	A library for bits of crypto UI and parsing
Name:		gcr3
Version:	3.41.2
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Networking/Remote access
Url:		https://download.gnome.org/sources/gcr
Source0:	https://download.gnome.org/sources/gcr/%{url_ver}/%{oname}-%{version}.tar.xz
Source10:	%{name}.rpmlintrc
Patch0:		gcr-3.41.1-hard-ru-translate.patch
# https://github.com/GNOME/gcr/commit/96443bfd2183
Patch1:		96443bfd218375527a7bc04c864bf1f6b0ad8522.patch
BuildRequires:	intltool
BuildRequires:	libtasn1-tools
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libtasn1)
BuildRequires:	pkgconfig(p11-kit-1)
BuildRequires:	pkgconfig(vapigen)
Recommends:	%{oname}

%description
A library for bits of crypto UI and parsing etc.

This package also contains the %{oname}-viewer binary.

%files -f %{oname}.lang
%doc README.md NEWS
%license COPYING
%{_bindir}/%{oname}-viewer
%{_datadir}/applications/%{oname}-prompter.desktop
%{_datadir}/applications/%{oname}-viewer.desktop
%{_datadir}/dbus-1/services/org.gnome.keyring.PrivatePrompter.service
%{_datadir}/dbus-1/services/org.gnome.keyring.SystemPrompter.service
%{_datadir}/GConf/gsettings/org.gnome.crypto.pgp*.convert
%{_datadir}/glib-2.0/schemas/org.gnome.crypto.pgp*.xml
%{_datadir}/icons/hicolor/*/apps/%{oname}*.png
%{_datadir}/mime/packages/%{oname}-crypto-types.xml
%{_libexecdir}/%{oname}-prompter
%{_libexecdir}/%{oname}-ssh-askpass

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for integration with the gnome keyring system
Group:		System/Libraries

%description -n %{libname}
This package contains shared libraries for Gnome keyring.

%files -n %{libname}
%{_libdir}/lib%{oname}-ui-%{api_gcr}.so.%{major_gcr}*

#----------------------------------------------------------------------------

%package -n %{libnamegck}
Summary:	Library for integration with the gnome keyring system
Group:		System/Libraries

%description -n %{libnamegck}
This package contains shared libraries for Gnome keyring.

%files -n %{libnamegck}
%{_libdir}/libgck-%{api_gck}.so.%{major_gck}*

#----------------------------------------------------------------------------

%package -n %{libnamebase}
Summary:	Library for integration with the gnome keyring system
Group:		System/Libraries

%description -n %{libnamebase}
This package contains shared libraries for Gnome keyring.

%files -n %{libnamebase}
%{_libdir}/lib%{oname}-base-%{api_gcr}.so.%{major_gcr}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for Gcr3
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for Gcr3.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gcr-%{api_gcr}.typelib
%{_libdir}/girepository-1.0/GcrUi-%{api_gcr}.typelib

#----------------------------------------------------------------------------

%package -n %{girnamegck}
Summary:	GObject Introspection interface description for Gck
Group:		System/Libraries

%description -n %{girnamegck}
GObject Introspection interface description for Gck.

%files -n %{girnamegck}
%{_libdir}/girepository-1.0/Gck-%{api_gck}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamegck} = %{EVRD}
Requires:	%{libnamebase} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girnamegck} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Thi package contains the development files and headers for %{name}.

%files -n %{devname}
%{_datadir}/gir-1.0/Gck-%{api_gck}.gir
%{_datadir}/gir-1.0/Gcr-%{api_gcr}.gir
%{_datadir}/gir-1.0/GcrUi-%{api_gcr}.gir
%{_datadir}/vala
%{_defaultdocdir}/gc*
%{_includedir}/gck-%{api_gck}
%{_includedir}/%{oname}-%{api_gcr}
%{_libdir}/libgck-%{api_gck}.so
%{_libdir}/lib%{oname}-base-%{api_gcr}.so
%{_libdir}/lib%{oname}-ui-%{api_gcr}.so
%{_libdir}/pkgconfig/gck-%{api_gck}.pc
%{_libdir}/pkgconfig/%{oname}-%{api_gcr}.pc
%{_libdir}/pkgconfig/%{oname}-base-%{api_gcr}.pc
%{_libdir}/pkgconfig/%{oname}-ui-%{api_gcr}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%meson -Dgtk_doc=false
%meson_build

%install
%meson_install

# Conflicts with gcr4
rm %{buildroot}%{_libexecdir}/%{oname}-ssh-agent
rm %{buildroot}%{_userunitdir}/%{oname}-ssh-agent.service
rm %{buildroot}%{_userunitdir}/%{oname}-ssh-agent.socket

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12804 |21mr|gcr-4.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major_gck	2
%define api_gck		2

%define major_gcr	4
%define api_gcr		4

%define libname		%mklibname %{name} %{api_gcr} %{major_gcr}
%define libnamegck	%mklibname gck %{api_gck} %{major_gck}
%define girname		%mklibname %{name}-gir %{major_gcr}
%define girnamegck	%mklibname gck-gir %{major_gck}
%define devname		%mklibname %{name} -d

Summary:	A library for bits of crypto UI and parsing
Name:		gcr
Version:	4.3.0
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Networking/Remote access
Url:		https://download.gnome.org/sources/gcr
Source0:	https://download.gnome.org/sources/gcr/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	10-gcr-ssh.sh
Source10:	%{name}.rpmlintrc
BuildRequires:	intltool
BuildRequires:	libtasn1-tools
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	xsltproc
BuildRequires:	python3dist(gi-docgen)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libtasn1)
BuildRequires:	pkgconfig(p11-kit-1)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(vapigen)
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14539
Requires:		gcr3

%description
A library for bits of crypto UI and parsing etc.

This package also contains the gcr-viewer binary.

%files -f %{name}-%{api_gcr}.lang
%doc README.md NEWS
%license COPYING
%{_bindir}/%{name}-viewer-gtk4
%{_libexecdir}/%{name}%{api_gcr}-ssh-askpass
%{_libexecdir}/%{name}-ssh-agent
%{_userunitdir}/%{name}-ssh-agent.service
%{_userunitdir}/%{name}-ssh-agent.socket
%config(noreplace) %{_sysconfdir}/profile.d/10-gcr-ssh.sh

%post
%systemd_user_post %{name}-ssh-agent.service

%preun
%systemd_user_preun %{name}-ssh-agent.service

%postun
%systemd_user_postun_with_restart %{name}-ssh-agent.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for integration with the gnome keyring system
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
This package contains shared libraries for Gnome keyring.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api_gcr}.so.%{major_gcr}*

#----------------------------------------------------------------------------

%package -n %{libnamegck}
Summary:	Library for integration with the gnome keyring system
Group:		System/Libraries

%description -n %{libnamegck}
This package contains shared libraries for Gnome keyring.

%files -n %{libnamegck}
%{_libdir}/libgck-%{api_gck}.so.%{major_gck}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for Gcr
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for Gcr.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gcr-%{api_gcr}.typelib

#----------------------------------------------------------------------------

%package -n %{girnamegck}
Summary:	GObject Introspection interface description for Gck
Group:		System/Libraries

%description -n %{girnamegck}
GObject Introspection interface description for Gck.

%files -n %{girnamegck}
%{_libdir}/girepository-1.0/Gck-%{api_gck}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamegck} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girnamegck} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Thi package contains the development files and headers for %{name}.

%files -n %{devname}
%{_datadir}/gir-1.0/Gck-%{api_gck}.gir
%{_datadir}/gir-1.0/Gcr-%{api_gcr}.gir
%{_datadir}/vala
%{_defaultdocdir}/gc*
%{_includedir}/gck-%{api_gck}
%{_includedir}/%{name}-%{api_gcr}
%{_libdir}/libgck-%{api_gck}.so
%{_libdir}/lib%{name}-%{api_gcr}.so
%{_libdir}/pkgconfig/gck-%{api_gck}.pc
%{_libdir}/pkgconfig/%{name}-%{api_gcr}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dgtk_doc=false
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d

%find_lang %{name}-%{api_gcr}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12805 |21mr|gd-2.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gd

%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A library used to create PNG, JPEG, or WBMP images
Name:		gd
Version:	2.3.3
Release:	2
License:	BSD-style
Group:		System/Libraries
Url:		http://www.libgd.org/
Source0:	https://github.com/libgd/libgd/archive/gd-%{version}.tar.gz
#It uses freetype2-devel, but uses the old library for gdttf
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(zlib)

%description
gd is a graphics library. It allows your code to quickly draw images complete
with lines, arcs, text, multiple colors, cut and paste from other images, and
flood fills, and write out the result as a PNG or JPEG file. This is
particularly useful in World Wide Webapplications, where PNG and JPEG are two
of the formats accepted for inlineimages by most browsers.

gd is not a paint program. If you are looking for a paint program, you are
looking in the wrong place. If you are not a programmer, you are looking in the
wrong place.

gd does not provide for every possible desirable graphics operation. It is not
necessary or desirable for gd to become a kitchen-sink graphics package, but
version 1.7.3 incorporates most of the commonly requested features for an 8-bit
2D package.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library used to create PNG, JPEG, or WBMP images
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with libgd.

%files -n %{libname}
%{_libdir}/libgd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The development libraries and header files for gd
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
These are the development libraries and header files for gd, the .png and .jpeg
graphics library. If you're installing the gd graphics library, you'll probably
want to install %{devname}.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/libgd.so
%{_libdir}/pkgconfig/gdlib.pc

#----------------------------------------------------------------------------

%package utils
Summary:	The Utils files for gd
Group:		Graphics

%description utils
gd is a graphics library. It allows your code to quickly draw images complete
with lines, arcs, text, multiple colors, cut and paste from other images, and
flood fills, and write out the result as a PNG or JPEG file. This is
particularly useful in World Wide Webapplications, where PNG and JPEG are two
of the formats accepted for inlineimages by most browsers.

gd is not a paint program. If you are looking for a paint program, you are
looking in the wrong place. If you are not a programmer, you are looking in the
wrong place.

gd does not provide for every possible desirable graphics operation. It is not
necessary or desirable for gd to become a kitchen-sink graphics package, but
version 1.7.3 incorporates most of the commonly requested features for an 8-bit
2D package.

This package contains various utilities utilizing the gd library.

%files utils
%doc README.md
%{_bindir}/annotate
%{_bindir}/bdftogd
%{_bindir}/gd2copypal
%{_bindir}/gd2topng
%{_bindir}/gdparttopng
%{_bindir}/gdtopng
%{_bindir}/pngtogd
%{_bindir}/pngtogd2
%{_bindir}/webpng
%{_bindir}/gd2togif
%{_bindir}/gdcmpgif
%{_bindir}/giftogd2

#----------------------------------------------------------------------------

%prep
%setup -qn libgd-%{oname}-%{version}
%autopatch -p1

%build
autoreconf -fi
%configure \
	--disable-static\
	--enable-gd-formats \
	--disable-werror

%make

%install
%makeinstall

#sed -i -e 's!-Wl,--as-needed!!' -e 's!-Wl,--no-undefined!!' %{buildroot}%{_bindir}/gdlib-config

install -m0644 src/gdhelpers.h %{buildroot}%{_includedir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12806 |21mr|gda-6.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname libgda

%define api	6.0
%define major	6
%define libname	%mklibname %{name} %{api} %{major}
%define libui	%mklibname %{name}-ui %{api} %{major}
%define libxslt	%mklibname %{name}-xslt %{api} %{major}
%define girname	%mklibname %{name}-gir %{api}
%define girui	%mklibname %{name}ui-gir %{api}
%define devname	%mklibname %{name} %{api} -d
%define devui	%mklibname %{name}-ui %{api} -d

Summary:	GNU Data Access
Name: 		gda
Version:	6.0.0
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Databases
Url:		http://www.gnome-db.org/
Source0:	https://download.gnome.org/sources/%{oname}/%{url_ver}/%{oname}-%{version}.tar.xz
Patch0:		gda-signed-int.patch
Patch1:		gda-mariadb.patch
Patch2:		gda-goocanvas3.patch
Patch3:		libgda-6.0.0-meson.patch
Patch4:		libgda-6.0.0-two-type-declaration.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gtk-doc
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	valadoc
BuildRequires:	valgrind
BuildRequires:	yelp-tools
BuildRequires:	db-devel
BuildRequires:	gdbm-devel
BuildRequires:	goocanvas3-devel
BuildRequires:	graphviz-devel
BuildRequires:	gtksourceview3-devel
BuildRequires:	iso-codes-devel
BuildRequires:	mariadb-devel
BuildRequires:	openldap2-devel
BuildRequires:	openssl-devel
BuildRequires:	postgresql-devel
BuildRequires:	sqlcipher-devel
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(sqlite3)
Requires:	%{girname} = %{EVRD}
Requires:	%{name}-tools = %{EVRD}

%description
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).
It is a complete architecture that provides all you need to
access your data.

libgda was part of the GNOME-DB project
(http://www.gnome-db.org/), but has been
separated from it to allow non-GNOME applications to be
developed based on it.

Drivers for the supported databases are included in the gda2.0-* packages.

%files -f %{oname}-%{api}.lang
%doc AUTHORS ChangeLog README NEWS
%license COPYING
%config(noreplace) %{_sysconfdir}/%{oname}-%{api}/config
%{_datadir}/%{oname}-%{api}/dtd/%{oname}-*.dtd
%{_datadir}/%{oname}-%{api}/import_encodings.xml
%{_datadir}/%{oname}-%{api}/information_schema.xml
%dir %{_datadir}/%{oname}-%{api}
%dir %{_datadir}/%{oname}-%{api}/dtd
%dir %{_libdir}/%{oname}-%{api}
%dir %{_libdir}/%{oname}-%{api}/providers
%dir %{_sysconfdir}/%{oname}-%{api}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNU Data Access Development
Group: 		System/Libraries
Requires:	%{name}-sqlite

%description -n %{libname}
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).

%files -n %{libname}
%{_libdir}/%{oname}-%{api}.so.%{major}*
%{_libdir}/%{oname}-report-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gda-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{libxslt}
Summary:	GNU Data Access Development
Group: 		System/Libraries

%description -n %{libxslt}
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).

%files -n %{libxslt}
%{_libdir}/%{oname}-xslt-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GNU Data Access Development
Group: 		Development/Databases
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{libxslt} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).

%files -n %{devname}
%{_datadir}/devhelp/books/Gda-%{api}
%{_datadir}/devhelp/books/Gdaui-%{api}
%{_datadir}/gir-1.0/Gda-%{api}.gir
%{_datadir}/vala/vapi/%{oname}-%{api}.deps
%{_datadir}/vala/vapi/%{oname}-%{api}.vapi
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%dir %{_includedir}/%{oname}-%{api}
%doc %{_datadir}/gtk-doc/html/%{oname}-%{api}
%{_includedir}/%{oname}-%{api}/%{oname}
%{_includedir}/%{oname}-%{api}/%{oname}-report
%{_includedir}/%{oname}-%{api}/providers
%{_libdir}/%{oname}-%{api}.so
%{_libdir}/%%{oname}-report-%{api}.so
%{_libdir}/%{oname}-xslt-%{api}.so
%{_libdir}/pkgconfig/%{oname}-%{api}.pc
%{_libdir}/pkgconfig/%{oname}-*-%{api}.pc
%exclude %{_libdir}/pkgconfig/%{oname}-ui-%{api}.pc

#----------------------------------------------------------------------------

%package ldap
Summary:	GDA LDAP Provider
Group:		Databases
Requires:	%{name} = %{EVRD}

%description ldap
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).

This package includes the GDA LDAP provider.

%files ldap
%{_libdir}/%{oname}-%{api}/providers/%{oname}-ldap-%{api}.so

#----------------------------------------------------------------------------

%package mysql
Summary:	GDA MySQL Provider
Group:		Databases
Requires:	%{name} = %{EVRD}

%description mysql
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).

This package includes the GDA MySQL provider.

%files mysql
%{_libdir}/%{oname}-%{api}/providers/%{oname}-mysql-%{api}.so

#----------------------------------------------------------------------------

%package postgres
Summary:	GDA PostgreSQL Provider
Group:		Databases
Requires:	%{name} = %{EVRD}

%description postgres
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).

This package includes the GDA PostgreSQL provider.

%files postgres
%{_libdir}/%{oname}-%{api}/providers/%{oname}-postgres-%{api}.so

#----------------------------------------------------------------------------

%package sqlite
Summary:	GDA sqlite Provider
Group:		Databases
Requires:	%{name} = %{EVRD}

%description sqlite
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).

This package includes the GDA sqlite provider.

%files sqlite
%{_libdir}/%{oname}-%{api}/providers/%{oname}-sqlite-%{api}.so

#----------------------------------------------------------------------------

%package sqlcipher
Summary:	SQLiteCipher provider
Group:		Databases
Requires:	%{name} = %{EVRD}

%description sqlcipher
GNU Data Access is an attempt to provide uniform access to
different kinds of data sources (databases, information
servers, mail spools, etc).

This package includes the GDA MySQL provider.

%files sqlcipher
%{_libdir}/%{oname}-%{api}/providers/%{oname}-sqlcipher-%{api}.so

#----------------------------------------------------------------------------

%package ui
Summary:	UI extensions for %{oname}
Group:		Databases
Requires:	%{name} = %{EVRD}
Requires:	%{libui} = %{EVRD}
Requires:	%{girui} = %{EVRD}

%description ui
%{name}-ui extends %{name} providing graphical widgets (Gtk+).

%files ui
%{_datadir}/%{oname}-%{api}/ui
%{_libdir}/%{oname}-%{api}/plugins/%{oname}-ui-plugins-%{oname}-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libui}
Summary:	Library for %{name}-ui
Group: 		System/Libraries
Requires:	%{name}

%description -n %{libui}
Library package for %{name}-ui.

%files -n %{libui}
%{_libdir}/%{oname}-ui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girui}
Summary:	GObject introspection interface library for %{name}-ui
Group:		System/Libraries
Requires:	%{libui} = %{EVRD}

%description -n %{girui}
GObject introspection interface library for %{name}-ui.

%files -n %{girui}
%{_libdir}/girepository-1.0/Gdaui-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devui}
Summary:	Development files for %{name}-ui
Group: 		Development/Databases
Requires:	%{name} = %{EVRD}
Requires:	%{name}-ui = %{EVRD}
Requires:	%{devname} = %{EVRD}
Requires:	pkgconfig(gtk+-3.0)

%description -n %{devui}
The %{name}-ui-devel package contains libraries and header files for
developing applications that use %{name}-ui.

%files -n %{devui}
%{_datadir}/gir-1.0/Gdaui-%{api}.gir
%{_datadir}/glade
%{_datadir}/%{oname}-%{api}/demo
%{_datadir}/vala/vapi/%{oname}ui-%{api}.vapi
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_includedir}/%{oname}-%{api}/%{oname}-ui
%{_libdir}/%{oname}-ui-%{api}.so
%{_libdir}/pkgconfig/%{oname}-ui-%{api}.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Graphical tools for %{name}
Group:		Databases
Requires:	%{name}-ui = %{EVRD}

%description tools
This %{name}-tools package provides graphical tools for %{name}.

%files tools
%doc %{_datadir}/gtk-doc/html/%{oname}ui-%{api}
%{_appdatadir}/org.gnome.%{name}.Browser.appdata.xml
%{_bindir}/%{name}-*
%{_bindir}/org.gnome.%{name}.*
%{_bindir}/trml2html.py
%{_bindir}/trml2pdf.py
%{_datadir}/applications/org.gnome.%{name}.Browser.desktop
%{_datadir}/%{oname}-%{api}/%{name}-sql/help/C/%{name}-sql-help.xml
%{_datadir}/%{oname}-%{api}/%{name}_trml2html
%{_datadir}/%{oname}-%{api}/%{name}_trml2pdf
%{_datadir}/pixmaps/org.gnome.%{name}.Browser.png
%{_iconsdir}/hicolor/*/apps/org.gnome.%{name}.Browser.*
%{_mandir}/man1/%{name}-sql.1.*

#----------------------------------------------------------------------------

%package web
Summary:	Web provider for %{name}
Group:		Databases
Requires:	%{name} = %{EVRD}

%description web
This %{name}-web includes the %{name} Web provider.

%files web
%{_libdir}/%{oname}-%{api}/providers/%{oname}-web-%{api}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%meson	\
	-Ddoc=true		\
	-Dexamples=true		\
	-Dexperimental=true	\
	-Dflatpak=false		\
	-Dgraphviz=true		\
	-Dhelp=true		\
	-Djson=true		\
	-Dldap=true		\
	-Dlibsecret=true	\
	-Dlibsoup=true		\
	-Dsqlcipher=true	\
	-Dtools=true		\
	-Dui=true		\
	-Dweb=true
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}/%{oname}-%{api}
install data/config %{buildroot}%{_sysconfdir}/%{oname}-%{api}/config
install %{oname}-ui/data/import_encodings.xml %{buildroot}%{_datadir}/%{oname}-%{api}/import_encodings.xml

%find_lang %{oname}-%{api} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12807 |21mr|gdal-3.4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}
%define _disable_lto 1

%if %{_use_internal_dependency_generator}
%global __requires_exclude 'devel\\(libogdi31.*|devel\\(libcfitsio.*|libgrass.*'
%else
%define _requires_exceptions devel\(libogdi31.*\)\\|devel\(libcfitsio.*\)\\|libgrass
%endif

%define major 30
%define libname %mklibname %{name} %{major}
%define libnamedev %mklibname %{name} -d

# Build gdal against libgrass. It is better to instead compile the new plugin
# which builds against grass itself (and thus has more features than the
# libgrass5 version)
# In fact, building with direct grass support will break gdal on every grass
# upgrade, see http://n2.nabble.com/qgis-%2B-grass-plugin-%3D-gdal-problem-tp2394932p2405146.html
%define build_libgrass 0
%{?with_libgrass: %define build_libgrass 1}

%define ogdidir %{_includedir}
%define ogdidir %{_includedir}/ogdi

Name:		gdal
Version:	3.4.3
Release:	2
Summary:	The Geospatial Data Abstraction Library (GDAL)
Group:		Sciences/Geosciences
License:	MIT
URL:		http://www.gdal.org/
Source0:	http://download.osgeo.org/gdal/%{version}/%{name}-%{version}.tar.xz
Patch2:		gdal-2.3.2-libtoolsucks.patch
Patch3:		gdal-3.1.0-no-Lusrlib.patch
Patch4:		gdal-fix-pythontools-install.patch
BuildRequires:	libtool-devel
BuildRequires:	zlib-devel
BuildRequires:	geotiff-devel >= 1.2.0
BuildRequires:	png-devel
BuildRequires:	giflib-devel
BuildRequires:	postgresql-devel >= 9.0
BuildRequires:	jpeg-devel
BuildRequires:	lzma-devel
BuildRequires:	pkgconfig(proj) >= 4.4.7
BuildRequires:	pkgconfig(python3)
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libtirpc)
%if %{build_libgrass}
Requires:	grass >= 6.4.0
BuildRequires:	grass
%else
BuildConflicts:	%mklibname -d grass 5 0
%endif
BuildRequires:	jasper-devel
BuildRequires:	geos-devel >= 2.2.3
BuildRequires:	netcdf-devel >= 3.6.2
BuildRequires:	ogdi-devel
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	python3-numpy-devel
BuildRequires:	python3-setuptools
BuildRequires:	sqlite3-devel
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(OpenCL)
BuildRequires:	pkgconfig(OpenEXR)
#BuildRequires:	mysql-devel
#BuildRequires:	libdap-devel
#BuildRequires:	librx-devel
BuildRequires:	unixODBC-devel
BuildRequires:	xerces-c-devel
BuildRequires:	hdf5-devel
BuildRequires:	swig

%description
The Geospatial Data Abstraction Library (GDAL) is a unifying
C/C++ API for accessing raster geospatial data, and currently
includes formats like GeoTIFF, Erdas Imagine, Arc/Info
Binary, CEOS, DTED, GXF, and SDTS. It is intended to provide
efficient access, suitable for use in viewer applications,
and also attempts to preserve coordinate systems and metadata.
Python, C, and C++ interfaces are available.

%files
%{_datadir}/gdal/
%{_bindir}/*
%{_mandir}/man1/*

%exclude %{_bindir}/gdal-config
%doc VERSION

#-------------------------------------------------------------
%package -n python3-%{name}
Summary:	The Python bindings for the GDAL library
Group:		Sciences/Geosciences
Requires:	%{libname} = %{version}
%rename gdal-python

%description -n python3-%{name}
The Python bindings for the GDAL library

%files -n python3-%{name}
%{python3_sitearch}/*

#-------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries required for the GDAL library
Group:		System/Libraries
Provides:	lib%{name} = %{version}

%description -n %{libname}
Libraries required for the GDAL library


%files -n %{libname}
%{_libdir}/*.so.%{major}*

#-------------------------------------------------------------

%package -n %{libnamedev}
Summary:	Development files for using the GDAL library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}
Provides:	%{name}-devel = %{version}

%description -n %{libnamedev}
Development files for using the GDAL library

%files -n %{libnamedev}
%{_bindir}/%{name}-config
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/gdal.pc

#-------------------------------------------------------------

%prep
%autosetup -p1

aclocal -I m4
autoconf

find . -name '*.h' -o -name '*.cpp' -executable -exec chmod a-x {} \;
find . -name '*.h' -o -name '*.cpp' -executable -exec chmod a+r {} \;

# Replace hard-coded library- and include paths
sed -i 's|@LIBTOOL@|%{_bindir}/libtool|g' GDALmake.opt.in

# Fix mandir
sed -i "s|^mandir=.*|mandir='\${prefix}/share/man'|" configure

%build
%ifarch aarch64
# Workaround for a compile time failure last verified
# with clang 3.8.0-2
#export CC=gcc
#export CXX=g++
libtoolize --force
autoreconf -f
%endif

%ifarch %e2k
# lcc 1.23 can't do those __builtin_functions (mcst#3588)
%global optflags %{optflags} -D__INTEL_COMPILER
# remove lcc unsupported -w2 flag
sed -i 's/ac_cv_cflags_warn_all="-w2"//' configure
sed -i 's/ac_cv_cxxflags_warn_all="-w2"//' configure
%endif

%configure \
	--datadir=%{_datadir} \
	--mandir=%{_mandir} \
	--includedir=%{_includedir}/gdal \
        --with-dods-root=no \
        --with-ogdi=%{ogdidir} \
        --with-cfitsio=yes \
        --with-geotiff            \
        --with-libtiff            \
        --with-libz               \
        --with-liblzma=yes        \
        --with-netcdf=%{_prefix}  \
        --with-hdf5               \
        --with-geos               \
        --with-jasper             \
        --with-png                \
        --with-gif                \
        --with-jpeg               \
        --with-odbc               \
        --with-sqlite3            \
        --with-mysql              \
        --with-curl               \
        --with-python             \
        --with-xerces             \
        --with-xerces-lib='-lxerces-c' \
        --with-xerces-inc=%{_includedir} \
        --without-pcraster        \
        --without-local           \
        %if %{build_libgrass}
	    --with-grass=%{_libdir}/grass64     \
        %endif
        --with-threads

sed -i -e 's,^INST_MAN.*,INST_MAN = %{_mandir},g' GDALmake.opt

%make_build
#make docs

%install
mkdir -p %{buildroot}/%{py3_platsitedir}
export PYTHONPATH="%{buildroot}/%{py3_platsitedir}"
export DESTDIR=%{buildroot}
unset PYTHONDONTWRITEBYTECODE
%make_install install-man

find %{buildroot}%{py3_platsitedir} -name '*.py' -exec chmod a-x {} \;

#fix python shebangs
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/*.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12808 |21mr|gdb-9.0.90-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# rpmbuild parameters:
# --with testsuite: Run the testsuite (biarch if possible).  Default is without.
# --with asan: gcc -fsanitize=address
# --with debug: Build without optimizations and without splitting the debuginfo.
# --without python: No python support.
# --with profile: gcc -fprofile-generate / -fprofile-use: Before better
#                 workload gets run it decreases the general performance now.
# --without rpm: Don't build rpm support (for aarch64 bootstrap)
%bcond_without rpm
%bcond_with testsuite

%{?build_chrome}%{?!build_chrome:%bcond_with chrome}

# Extract OpenMandriva Linux name and version
%define distro_version	%(perl -ne '/^([.\\w\\s]+) \\(.+\\).+/ and print $1' < /etc/release)
%define Werror_cflags %nil
# Libtool die die die!
%define __libtoolize /bin/true
# use python3
%define __python %{__python3}

Summary:	A GNU source-level debugger for C, C++, Fortran, Go and other languages
Name:		gdb%{?_withi_debug:-debug}
Version:	9.0.90
Release:	4
License:	GPLv3+ and GPLv3+ with exceptions and GPLv2+ and GPLv2+ with exceptions and GPL+ and LGPLv2+ and BSD and Public Domain
Group:		Development/Other
Url:		http://gnu.org/software/gdb/
Source0:	ftp://sourceware.org/pub/gdb/snapshots/branch/gdb-%{version}.tar.xz
Source1:	gdb.rpmlintrc
# For our convenience
%define gdb_build build-%{_target_platform}
%define gdb_docdir %{_docdir}/%{name}-doc

%if 0%{?_with_debug:1}
# Define this if you want to skip the strip step and preserve debug info.
# Useful for testing.
%define __debug_install_post : > %{_builddir}/%{?buildsubdir}/debugfiles.list
%define debug_package %{nil}
%endif

# eu-strip: -g recognizes .gdb_index as a debugging section. (#631997)
Conflicts: elfutils < 0.149

# GDB patches have the format `gdb-<version>-bz<red-hat-bz-#>-<desc>.patch'.
# They should be created using patch level 1: diff -up ./gdb (or gdb-6.3/gdb).

#=
#push=Should be pushed upstream.
#maybepush=Should be pushed upstream unless it got obsoleted there.
#fedora=Should stay as a Fedora patch.
#ia64=Drop after RHEL-5 rebases and rebuilds are no longer meaningful.
#fedoratest=Keep it in Fedora only as a regression test safety.
#+ppc=Specific for ppc32/ppc64/ppc*
#+work=Requires some nontrivial work.

# Cleanup any leftover testsuite processes as it may stuck mock(1) builds.
#=push
Source2: gdb-orphanripper.c

# /etc/gdbinit (from Debian but with Fedora compliant location).
#=fedora
Source4: gdbinit

# simple bash script from Fedora (https://src.fedoraproject.org/rpms/gdb)
Source5:	gstack.sh
Source6:	gstack.man

BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  make
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(expat)
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(rpm)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(liblzma)
BuildRequires:  readline-devel
BuildRequires:  texinfo
# To be cleaned up later
#BuildRequires:	texlive
#BuildRequires:	texlive-scheme-medium
#BuildRequires:	texlive-texinfo
#BuildRequires:  texlive-texconfig
# chrome is used for certified products
%if %{with chrome}
BuildRequires:	texlive-collection-texinfo
BuildRequires:	texlive-latex-fonts
BuildRequires:	texlive-ec
BuildRequires:	texlive-cm-super
%endif
%if %{with testsuite}
BuildRequires:	dejagnu
%endif

# For users who are using gdb rather than buildsystem
Recommends:	dnf-command(debuginfo-install)

%description
GDB, the GNU debugger, allows you to debug programs written in C, C++,
Java, and other languages, by executing them in a controlled fashion
and printing their data.

%prep
# This allows the tarball name to be different from our
# version-release name.

%setup -q

# Files have `# <number> <file>' statements breaking VPATH / find-debuginfo.sh .
(cd gdb;rm -fv $(perl -pe 's/\\\n/ /' <Makefile.in|sed -n 's/^YYFILES = //p'))

# *.info* is needlessly split in the distro tar; also it would not get used as
# we build in %{gdb_build}, just to be sure.
find -name "*.info*"|xargs rm -f

find -name "*.orig" | xargs rm -f
! find -name "*.rej" # Should not happen.

cat > gdb/version.in << EOF
%{version}-%{release} (%{distro_version})
EOF


# Remove the info and other generated files added by the FSF release
# process.
rm -f libdecnumber/gstdint.h
rm -f bfd/doc/*.info
rm -f bfd/doc/*.info-*
rm -f gdb/doc/*.info
rm -f gdb/doc/*.info-*

# RL_STATE_FEDORA_GDB would not be found for:
# Patch642: gdb-readline62-ask-more-rh.patch
# --with-system-readline
mv -f readline/readline/doc readline-doc
rm -rf readline/readline/*
mv -f readline-doc readline/readline/doc
rm -rf zlib texinfo

%build
CONFIGURE_TOP=$PWD
# Identify the build directory with the version of gdb as well as the
# architecture, to allow for mutliple versions to be installed and
# built.
# Initially we're in the gdb-%{version} directory.

for fprofile in %{?_with_profile:-fprofile} ""
do

mkdir %{gdb_build}$fprofile
cd %{gdb_build}$fprofile

export CFLAGS="$RPM_OPT_FLAGS -DDNF_DEBUGINFO_INSTALL"

%if 0%{?_with_debug:1}
# --enable-werror could conflict with `-Wall -O0' but this is no longer true
# for recent GCCs.
CFLAGS="$CFLAGS -O0 -ggdb2"
%endif

CC=gcc CXX=g++ %configure	\
	--htmldir=%{gdb_docdir}					\
	--pdfdir=%{gdb_docdir}					\
	--with-system-gdbinit=%{_sysconfdir}/gdbinit		\
	--with-gdb-datadir=%{_datadir}/gdb			\
	--enable-gdb-build-warnings=,-Wno-unused		\
	--with-separate-debug-dir=/usr/lib/debug		\
	--disable-werror					\
	--disable-rpath						\
	--with-system-readline					\
	--with-lzma						\
	--with-system-zlib					\
	--with-expat						\
$(: ppc64 host build crashes on ppc variant of libexpat.so )	\
	--without-libexpat-prefix				\
	--disable-tui						\
%if 0%{!?_without_python:1}
	--with-python=%{__python}				\
%else
	--without-python					\
%endif
%if %{with rpm}
	--with-rpm						\
%else
	--without-rpm						\
%endif
	--without-libunwind					\
	--enable-64-bit-bfd					\
%if 0%{?_with_debug:1}
	--enable-static --disable-shared --enable-debug		\
%endif
	--enable-targets=all \
	%{_target_platform}

if [ -z "%{!?_with_profile:no}" ]
then
  # Run all the configure tests being incompatible with $FPROFILE_CFLAGS.
  %make configure-host configure-target
  %make clean

  # Workaround -fprofile-use:
  # linux-x86-low.c:2225: Error: symbol `start_i386_goto' is already defined
  %make -C gdb/gdbserver linux-x86-low.o
fi

# Global CFLAGS would fail on:
# conftest.c:1:1: error: coverage mismatch for function 'main' while reading counter 'arcs'
if [ "$fprofile" = "-fprofile" ]
then
  FPROFILE_CFLAGS='-fprofile-generate'
elif [ -z "%{!?_with_profile:no}" ]
then
  FPROFILE_CFLAGS='-fprofile-use'
  # We cannot use -fprofile-dir as the bare filenames clash.
  (cd ../%{gdb_build}-fprofile;
   # It was 333 on x86_64.
   test $(find -name "*.gcda"|wc -l) -gt 300
   find -name "*.gcda" | while read -r i
   do
     ln $i ../%{gdb_build}/$i
   done
  )
else
  FPROFILE_CFLAGS=""
fi

%make CFLAGS="$CFLAGS $FPROFILE_CFLAGS" LDFLAGS="$FPROFILE_CFLAGS"

if [ "$fprofile" = "-fprofile" ]
then
  cd gdb
  cp -p gdb gdb-withindex
  PATH="$PWD:$PATH" sh ../../gdb/gdb-add-index $PWD/gdb-withindex
  ./gdb -nx -ex q ./gdb-withindex
  ./gdb -nx -readnow -ex q ./gdb-withindex
  cd ..
fi

cd ..

done	# fprofile

cd %{gdb_build}

%make info
#make_build -C gdb/doc {gdb,annotate}{.info,/index.html,.pdf} MAKEHTMLFLAGS=--no-split MAKEINFOFLAGS=--no-split

# Copy the <sourcetree>/gdb/NEWS file to the directory above it.
cp $RPM_BUILD_DIR/gdb-%{version}/gdb/NEWS $RPM_BUILD_DIR/gdb-%{version}

%check
# Initially we're in the gdb-%{version} directory.
cd %{gdb_build}

%if %{without testsuite}
echo ====================TESTSUITE DISABLED=========================
%else
echo ====================TESTING=========================
cd gdb
gcc -o ./orphanripper %{SOURCE2} -Wall -lutil -ggdb2
# Need to use a single --ignore option, second use overrides first.
# No `%{?_smp_mflags}' here as it may race.
# WARNING: can't generate a core file - core tests suppressed - check ulimit
# "readline-overflow.exp" - Testcase is broken, functionality is OK.
(
  # ULIMIT required for `gdb.base/auxv.exp'.
  ulimit -H -c
  ulimit -c unlimited || :

  # Setup $CHECK as `check//unix/' or `check//unix/-m64' for explicit bitsize.
  # Never use two different bitsizes as it fails on ppc64.
  echo 'int main (void) { return 0; }' >biarch.c
  CHECK=""
  for BI in -m64 -m32 -m31 ""
  do
    # Do not use size-less options if any of the sizes works.
    # On ia64 there is no -m64 flag while we must not leave a bare `check' here
    # as it would switch over some testing scripts to the backward compatibility
    # mode: when `make check' was executed from inside the testsuite/ directory.
    if [ -z "$BI" -a -n "$CHECK" ];then
      continue
    fi
    # Do not use $RPM_OPT_FLAGS as the other non-size options will not be used
    # in the real run of the testsuite.
    if ! gcc $BI -o biarch biarch.c
    then
      continue
    fi
    CHECK="$CHECK check//unix/$BI"
  done
  # Do not try -m64 inferiors for -m32 GDB as it cannot handle inferiors larger
  # than itself.
  # s390 -m31 still uses the standard ELF32 binary format.
  gcc $RPM_OPT_FLAGS -o biarch biarch.c
  RPM_SIZE="$(file ./biarch|sed -n 's/^.*: ELF \(32\|64\)-bit .*$/\1/p')"
  if [ "$RPM_SIZE" != "64" ]
  then
    CHECK="$(echo " $CHECK "|sed 's# check//unix/-m64 # #')"
  fi

  # Disable some problematic testcases.
  # RUNTESTFLAGS='--ignore ...' is not used below as it gets separated by the
  # `check//...' target spawn and too much escaping there would be dense.
  for test in				\
    gdb.base/readline-overflow.exp	\
    gdb.base/bigcore.exp		\
  ; do
    mv -f ../../gdb/testsuite/$test ../gdb/testsuite/$test-DISABLED || :
  done

  # Run all the scheduled testsuite runs also in the PIE mode.
  # Upstream GDB would lock up the testsuite run for too long on its failures.
  CHECK="$(echo $CHECK|sed 's#check//unix/[^ ]*#& &/-fPIE/-pie#g')"

  ./orphanripper %make -k $CHECK \
$(: Serialize the output to keep the order for regression checks. ) \
%if 0%{?el5:1}
    RUNTESTFLAGS="--tool gdb" \
%endif
    || :
)
for t in sum log
do
  for file in testsuite*/gdb.$t
  do
    suffix="${file#testsuite.unix.}"
    suffix="${suffix%/gdb.$t}"
    ln $file gdb-%{_target_platform}$suffix.$t || :
  done
done
# `tar | bzip2 | uuencode' may have some piping problems in Brew.
tar cjf gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}*.{sum,log}
uuencode gdb-%{_target_platform}.tar.bz2 gdb-%{_target_platform}.tar.bz2
cd ../..
echo ====================TESTING END=====================
%endif

%install
# Initially we're in the gdb-%{version} directory.
cd %{gdb_build}

%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/gdbinit.d
sed 's#%%{_sysconfdir}#%{_sysconfdir}#g' <%{SOURCE4} >%{buildroot}%{_sysconfdir}/gdbinit

for i in `find %{buildroot}%{_datadir}/gdb/python/gdb -name "*.py"`
do
  # Files could be also patched getting the current time.
  touch -r $RPM_BUILD_DIR/gdb-%{version}/gdb/ChangeLog $i
done

# Remove the files that are part of a gdb build but that are owned and
# provided by other packages.
# These are part of binutils

rm -rf %{buildroot}%{_datadir}/locale/
rm -f %{buildroot}%{_infodir}/bfd*
rm -f %{buildroot}%{_infodir}/standard*
rm -f %{buildroot}%{_infodir}/mmalloc*
rm -f %{buildroot}%{_infodir}/configure*
rm -f %{buildroot}%{_infodir}/gdbint*
rm -f %{buildroot}%{_infodir}/stabs*
rm -rf %{buildroot}%{_includedir}
rm -rf %{buildroot}/%{_libdir}/lib{bfd*,opcodes*,iberty*,mmalloc*}

# Delete this too because the dir file will be updated at rpm install time.
# We don't want a gdb specific one overwriting the system wide one.

rm -f %{buildroot}%{_infodir}/dir

#remove static
rm -rf %{buildroot}%{_libdir}/*.a

install -m755 %{SOURCE5} %{buildroot}%{_bindir}/gstack
ln -s gstack %{buildroot}%{_bindir}/pstack
install -m644 %{SOURCE6} %{buildroot}%{_mandir}/man1/gstack.1
ln -s gstack.1 %{buildroot}%{_mandir}/man1/pstack.1

# Packaged GDB is not a cross-target one.
(cd %{buildroot}%{_datadir}/gdb/syscalls
 rm -f mips*.xml
 rm -f sparc*.xml
%ifnarch x86_64
 rm -f amd64-linux.xml
%endif
%ifnarch %{ix86} x86_64
 rm -f i386-linux.xml
%endif
%ifnarch ppc ppc64
 rm -f ppc{,64}-linux.xml
%endif
)

%files
%doc README NEWS
%license COPYING3 COPYING COPYING.LIB
%{_bindir}/gcore
%{_bindir}/gdb
%{_bindir}/gstack
%{_bindir}/pstack
%config(noreplace) %{_sysconfdir}/gdbinit
%{_sysconfdir}/gdbinit.d
%{_mandir}/*/gdbinit.5*
%{_mandir}/*/gdb.1*
%{_mandir}/*/gcore.1*
%{_mandir}/*/gstack.1*
%{_mandir}/*/pstack.1*
%{_mandir}/*/gdb-add-index.1*
%ifarch %armx
%{_bindir}/run
%optional %{_libdir}/lib*-*mandriva-linux-gnu*-sim.a
%optional %{_mandir}/man1/run.1*
%endif
%{_bindir}/gdb-add-index
%{_datadir}/gdb
# don't include the files in include, they are part of binutils
%ifnarch %{riscv}
%{_bindir}/gdbserver
%endif
%{_mandir}/*/gdbserver.1*
%ifnarch %{riscv}
%{_libdir}/libinproctrace.so
%endif
%{_infodir}/annotate.info*
%{_infodir}/gdb.info*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12809 |21mr|gdbm-1.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 6
%define compatmajor 4
%define	libname %mklibname gdbm %{major}
%define libcompat %mklibname gdbm_compat %{compatmajor}
%define	develname %mklibname gdbm -d

Summary:	A GNU set of database routines which use extensible hashing
Name:		gdbm
Version:	1.23
Release:	1
License:	GPL
Group:		System/Libraries
URL:		http://www.gnu.org/software/gdbm/
Source0:	ftp://ftp.gnu.org/pub/gnu/gdbm/%{name}-%{version}.tar.gz
Buildrequires:	texinfo autoconf automake libtool

%description
Gdbm is a GNU database indexing library, including routines
which use extensible hashing.  Gdbm works in a similar way to standard UNIX
dbm routines.  Gdbm is useful for developers who write C applications and
need access to a simple and efficient database or who are building C
applications which will use such a database.

If you're a C developer and your programs need access to simple database
routines, you should install gdbm.  You'll also need to install gdbm-devel.

%package -n	%{libname}
Summary:	Main library for gdbm
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
%if "%_lib" == "lib64"
Provides:	libgdbm.so.4()(64bit)
Provides:	libgdbm.so.5()(64bit)
%else
Provides:	libgdbm.so.4
Provides:	libgdbm.so.5
%endif
Obsoletes:	%{name} < 1.10

%description -n	%{libname}
This package provides library needed to run programs dynamically linked
with gdbm.


%package -n %{libcompat}
Summary:	Main library for gdbm
Group:		System/Libraries
Conflicts:	%{_lib}gdbm4 < 1.10-4

%description -n %{libcompat}
This package provides library needed to run programs dynamically linked
with gdbm.


%package -n	%{develname}
Summary:	Development libraries and header files for the gdbm library
Group:		Development/Databases
Requires:	%{libname} >= %{version}-%{release}
Requires:	%{libcompat} >= %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
# (anssi) biarch compat conflict (FIXME: this should be fixed more generally,
# maybe by adding a hack in perl-URPM):
Conflicts:	%{name}-devel < %{version}-%{release}
Conflicts:	%{mklibname gdbm 2 -d} < 1.10
Obsoletes:	%{name}-devel < 1.10
Obsoletes:	%{mklibname gdbm 1 -d} < 1.10
Obsoletes:	%{mklibname gdbm 3 -d} < 1.10

%description -n	%{develname}
Gdbm-devel contains the development libraries and header files
for gdbm, the GNU database system.  These libraries and header files are
necessary if you plan to do development using the gdbm database.

Install gdbm-devel if you are developing C programs which will use the
gdbm database library.  You'll also need to install the gdbm package.

%prep
%autosetup -p1

%build
%configure --disable-static --enable-libgdbm-compat --enable-largefile
%make_build

%install
%make_install
%find_lang %{name}

# create symlinks for compatibility
mkdir -p %{buildroot}/%{_includedir}/gdbm
ln -sf ../gdbm.h %{buildroot}/%{_includedir}/gdbm/gdbm.h
ln -sf ../ndbm.h %{buildroot}/%{_includedir}/gdbm/ndbm.h
ln -sf ../dbm.h %{buildroot}/%{_includedir}/gdbm/dbm.h

ln -s libgdbm.so.%{major} %{buildroot}%{_libdir}/libgdbm.so.4
ln -s libgdbm.so.%{major} %{buildroot}%{_libdir}/libgdbm.so.5

%files -f %{name}.lang
%{_bindir}/*

%files -n %{libname}
%doc NEWS README
%{_libdir}/libgdbm*.so.%{major}*
%{_libdir}/libgdbm.so.4
%{_libdir}/libgdbm.so.5

%files -n %{libcompat}
%{_libdir}/libgdbm_compat.so.%{compatmajor}*

%files -n %{develname}
%{_libdir}/libgdbm*.so
%dir %{_includedir}/gdbm
%{_includedir}/gdbm/*.h
%{_includedir}/*.h
%{_infodir}/gdbm*
%{_mandir}/man3/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12810 |21mr|gdisk-0.8.10-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An fdisk-like partitioning tool for GPT disks
Name:		gdisk
Version:	0.8.10
Release:	9
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://www.rodsbooks.com/gdisk
Source0:	http://www.rodsbooks.com/%{name}/gptfdisk-%{version}.tar.gz
BuildRequires:	pkgconfig(icu-io)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
Buildrequires:	pkgconfig(popt)
Buildrequires:	pkgconfig(uuid)

%description
An fdisk-like partitioning tool for GPT disks. GPT
fdisk features a command-line interface, fairly direct
manipulation of partition table structures, recovery
tools to help you deal with corrupt partition tables,
and the ability to convert MBR disks to GPT format.

%files
%doc NEWS COPYING README
%{_sbindir}/gdisk
%{_sbindir}/sgdisk
%doc %{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -qn gptfdisk-%{version}

%build
CFLAGS="%{optflags}" CXXFLAGS="%{optflags}" %make

%install
mkdir -p %{buildroot}%{_sbindir}
install -Dp -m0755 gdisk %{buildroot}%{_sbindir}
install -Dp -m0755 sgdisk %{buildroot}%{_sbindir}
install -Dp -m0644 gdisk.8 %{buildroot}%{_mandir}/man8/gdisk.8
install -Dp -m0644 sgdisk.8 %{buildroot}%{_mandir}/man8/sgdisk.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12811 |21mr|gdk-pixbuf2.0-2.42.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_as_needed 1

%define oname		gdk_pixbuf
%define pkgname		gdk-pixbuf
%define api_ver		2.0
%define bin_ver		2.10.0
%define major		0
%define girmajor	2.0

%define libname		%mklibname %{oname} %{api_ver} %{major}
%define devname		%mklibname %{oname} %{api_ver} -d
%define girname		%mklibname %{oname}-gir %{girmajor}

Summary:	Image loading and manipulation library for GTK+
Name:		%{pkgname}%{api_ver}
Version:	2.42.8
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gdk-pixbuf
Source0:	https://download.gnome.org/sources/gdk-pixbuf/%(echo %{version} |cut -d. -f1-2)/%{pkgname}-%{version}.tar.xz
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	sgml-tools
BuildRequires:	texinfo
BuildRequires:	x11-server-xvfb
BuildRequires:	gettext-devel
BuildRequires:	jasper-devel
BuildRequires:	jpeg-devel
BuildRequires:	tiff-devel
BuildRequires:	python3dist(jinja2)
BuildRequires:	python3dist(markdown)
BuildRequires:	python3dist(toml)
BuildRequires:	python3dist(typogrify)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(x11)
Requires:	common-licenses
Requires:	shared-mime-info
Requires:	webp-pixbuf-loader

%description
This package contains libraries used by GTK+ to load and handle
various image formats.

%files -f %{pkgname}.lang
%{_bindir}/%{pkgname}-pixdata
%{_bindir}/%{pkgname}-query-loaders
%{_bindir}/%{pkgname}-thumbnailer
%{_datadir}/thumbnailers/%{pkgname}-thumbnailer.thumbnailer
%{_mandir}/man1/%{pkgname}-query-loaders.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Image loading and manipulation library for GTK+
Group:		System/Libraries
Provides:	lib%{oname}%{api_ver} = %{EVRD}
Requires:	%{name} >= %{EVRD}
Requires(pre,post): %{name} >= %{EVRD}

%description -n %{libname}
This package contains libraries used by GTK+ to load and handle
various image formats.

%files -n %{libname}
%dir %{_libdir}/%{pkgname}-%{api_ver}
%dir %{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}
%dir %{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}/loaders
%{_libdir}/lib%{oname}-%{api_ver}.so.%{major}*
%{_libdir}/%{pkgname}-%{api_ver}/bin/%{pkgname}-query-loaders
%ghost %verify (not md5 mtime size) %{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}/loaders.cache

%post -n %{libname}
if [ "$1" = "2" ]; then
	if [ -f %{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}/loaders.cache ]; then
		rm -f %{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}/loaders.cache
	fi
fi
%{_libdir}/%{pkgname}-%{api_ver}/bin/%{pkgname}-query-loaders --update-cache

%filetriggerin -n %{libname} -- %{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}/loaders/
%{_libdir}/%{pkgname}-%{api_ver}/bin/%{pkgname}-query-loaders --update-cache

%filetriggerpostun -n %{libname} -- %{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}/loaders/
if [ -x %{_bindir}/%{pkgname}-query-loaders ]; then
%{_libdir}/%{pkgname}-%{api_ver}/bin/%{pkgname}-query-loaders --update-cache
fi

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GdkPixbuf-%{api_ver}.typelib
%{_libdir}/girepository-1.0/GdkPixdata-%{api_ver}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for image handling library for GTK+
Group:		Development/GNOME and GTK+
Provides:	lib%{oname}%{api_ver}-devel = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires: 	%{name} = %{EVRD}

%description -n %{devname}
This package contains the development files needed to compile programs
that uses GTK+ image loading/manipulation library.

%files -n %{devname}
%doc %{_defaultdocdir}/%{pkgname}
%doc %{_defaultdocdir}/gdk-pixdata
%{_bindir}/%{pkgname}-csource
%{_datadir}/gir-1.0/GdkPixbuf-%{api_ver}.gir
%{_datadir}/gir-1.0/GdkPixdata-%{api_ver}.gir
%{_includedir}/%{pkgname}-%{api_ver}/%{pkgname}/
%{_libdir}/lib%{oname}-%{api_ver}.so
%{_libdir}/pkgconfig/%{pkgname}-%{api_ver}.pc
%{_mandir}/man1/%{pkgname}-csource.1*

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pkgname}-%{version} -p1

# fix crash in nautilus (GNOME bug #596977)
export CFLAGS=$(echo %{optflags} | sed -e 's/-fomit-frame-pointer//g')

%build
%meson \
	-Dbuiltin_loaders=all \
	-Dgtk_doc=true \
	-Dinstalled_tests=false
%meson_build -j2

%install
%meson_install

mkdir -p %{buildroot}%{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}/loaders
touch %{buildroot}%{_libdir}/%{pkgname}-%{api_ver}/%{bin_ver}/loaders.cache

# handle biarch packages
progs="%{pkgname}-query-loaders"
mkdir -p %{buildroot}%{_libdir}/%{pkgname}-%{api_ver}/bin
for f in $progs; do
	mv -f %{buildroot}%{_bindir}/$f %{buildroot}%{_libdir}/%{pkgname}-%{api_ver}/bin/
	cat > %{buildroot}%{_bindir}/$f << EOF
#!/bin/sh
lib=%{_lib}
case ":\$1:" in
:lib*:) lib="\$1"; shift 1;;
esac
exec %{_prefix}/\$lib/%{pkgname}-%{api_ver}/bin/$f \${1+"\$@"}
EOF
	chmod +x %{buildroot}%{_bindir}/$f
done

%find_lang %{pkgname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12812 |21mr|gdk-pixbuf-2.40.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_as_needed 1

%define url_ver %(echo %{version} |cut -d. -f1-2)

%define oname		gdk_pixbuf
%define api_ver		2.0
%define major		0

%define xlibname	%mklibname %{oname}_xlib %{api_ver} %{major}
%define devxlib		%mklibname %{oname}_xlib %{api_ver} -d

Summary:	Image loading and manipulation library for GTK+
Name:		gdk-pixbuf
Version:	2.40.0
Release:	11
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gdk-pixbuf
Source0:	https://download.gnome.org/sources/gdk-pixbuf/%{url_ver}/%{name}-%{version}.tar.xz
# CVE-2020-29385 PS:"remove the test from the patch or it will fail"
Patch0:		https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/bdd3acbd48a575d418ba6bf1b32d7bda2fae1c81.patch
# CVE-2021-20240
Patch1:		https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/086e8adf4cc352cd11572f96066b001b545f354e.patch
# CVE-2021-46829
Patch2:		https://gitlab.gnome.org/GNOME/gdk-pixbuf/-/commit/6976bdc8ee9dd2c2954f91066f7b0f643769a379.patch
BuildRequires:	meson
BuildRequires:	gettext-devel
BuildRequires:	jasper-devel
BuildRequires:	jpeg-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(shared-mime-info)
Requires:	common-licenses
Requires:	shared-mime-info

%description
This package contains libraries used by GTK+ to load and handle
various image formats. It need for icewm, xscreensaver, etc.

#----------------------------------------------------------------------------

%package -n %{xlibname}
Summary:	Image loading and manipulation library for GTK+
Group:		System/Libraries

%description -n %{xlibname}
This package contains libraries used by GTK+ to load and handle
various image formats.

%files -n %{xlibname}
%{_libdir}/lib%{oname}_xlib-%{api_ver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devxlib}
Summary:	Development files for image handling library for GTK+ - Xlib
Group:		Development/GNOME and GTK+
Provides:	lib%{oname}_xlib%{api_ver}-devel = %{EVRD}
Requires:	%{xlibname} = %{EVRD}

%description -n %{devxlib}
This package contains the development files needed to compile programs
that uses GTK+ image loading/manipulation Xlib library.

%files -n %{devxlib}
%{_libdir}/lib%{oname}_xlib-%{api_ver}.so
%{_includedir}/%{name}-%{api_ver}/%{name}-xlib/
%{_libdir}/pkgconfig/%{name}-xlib-%{api_ver}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix crash in nautilus (GNOME bug #596977)
export CFLAGS=$(echo %{optflags} | sed -e 's/-fomit-frame-pointer//g')

%meson \
	-Djasper=true \
	-Dbuiltin_loaders=png \
	-Dinstalled_tests=false

%build
%meson_build -j2

%install
%meson_install

# Drop unuse files
rm -rf %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_datadir}
rm -rf %{buildroot}%{_includedir}/%{name}-%{api_ver}/%{name}
rm -rf %{buildroot}%{_libdir}/lib%{oname}-*
rm -rf %{buildroot}%{_libdir}/%{name}*
rm -rf %{buildroot}%{_libdir}/gir*
rm -rf %{buildroot}%{_libdir}/pkgconfig/%{name}-%{api_ver}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12813 |21mr|gdl-3.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 3
%define major 5
%define gir_major 3
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{gir_major}
%define devname %mklibname %{name} %{api} -d

Summary:	Gnome Devtool Libraries
Name:		gdl
Version:	3.40.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gdl
Source0:	https://download.gnome.org/sources/gdl/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
This package contains components and libraries that are intended to be
shared between GNOME development tools, including gnome-debug,
gnome-build, and anjuta2.

The current pieces of GDL include:
 - A symbol browser bonobo component (symbol-browser-control).
 - A docking widget (gdl).
 - A utility library that also contains the stubs and skels for
   the symbol browser and text editor components (gdl, idl).

%files -f %{name}-%{api}.lang
%doc README NEWS MAINTAINERS AUTHORS

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gnome Devtool Libraries - shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This package contains components and libraries that are intended to be
shared between GNOME development tools, including gnome-debug,
gnome-build, and anjuta2.

The current pieces of GDL include:
 - A symbol browser bonobo component (symbol-browser-control).
 - A docking widget (gdl).
 - A utility library that also contains the stubs and skels for
   the symbol browser and text editor components (gdl, idl).

%files -n %{libname}
%{_libdir}/libgdl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gdl-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Gnome Devtool Libraries - development components
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains components and libraries that are intended to be
shared between GNOME development tools, including gnome-debug,
gnome-build, and anjuta2.

The current pieces of GDL include:
 - A symbol browser bonobo component (symbol-browser-control).
 - A docking widget (gdl).
 - A utility library that also contains the stubs and skels for
   the symbol browser and text editor components (gdl, idl).

%files -n %{devname}
%doc ChangeLog
%{_datadir}/gtk-doc/html/gdl-*
%{_datadir}/gir-1.0/Gdl-%{gir_major}.gir
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12814 |21mr|gdm-42.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major		1
%define gmajor		1.0
%define libname		%mklibname gdm %{major}
%define girname		%mklibname gdm-gir %{gmajor}
%define devname		%mklibname %{name} -d

%define url_ver	%(echo %{version}|cut -d. -f1)

Summary:	The GNOME Display Manager
Name:		gdm
Version:	42.0
Release:	5
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gdm
Source0:	https://download.gnome.org/sources/gdm/%{url_ver}/gdm-%{version}.tar.xz
Source1:	org.gnome.login-screen.gschema.override
Source2:	logo_start_02.svg
Source3:	gdm.sysusers.conf
Source4:	gdm-40.0_ru.tar.gz
# Allow to define default session in drop-in config files
# https://gitlab.gnome.org/GNOME/gdm/-/merge_requests/137
Patch0001:	0001-Allow-to-set-default-session-via-env.patch
# Drop it when update
Patch0002:	gdm-42.0-upstream.patch
Patch0003:	gdm-42.0-fix-touch-systemd-path.patch
Patch0302:	gdm-41.3-pam.d-configs-unknown-selinux-lib.patch
Patch0303:	0303-Read-.xsetup-scripts.patch
# From Ubuntu
# https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1794280
# https://www.reddit.com/r/archlinux/comments/ilo4sm/gdm_not_displaying_until_i_switch_to_a_tty_and
Patch0401:	0001-gdm.service-wait-for-drm-device-before-trying-to-sta.patch
# From Fedora 33
# https://src.fedoraproject.org/rpms/gdm/tree/f33
Patch0502:	0001-data-add-system-dconf-databases-to-gdm-profile.patch
BuildRequires:	gnome-common
BuildRequires:	dconf
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	yelp-tools
BuildRequires:	audit-devel
BuildRequires:	gettext-devel
BuildRequires:	libwrap-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(accountsservice)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(ply-boot-client)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xdmcp)
# Needed to determine how to create command line to enable/disable tcp connection
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xrandr)
# For Patch0401 (launchpad#1794280)
BuildRequires:	pkgconfig(gudev-1.0)
Requires:	pam
Requires:	xinitrc
Requires:	dbus-x11
Requires:	accountsservice
# gdm exec()'s gnome-session as greeter
Requires:	gnome-shell
Requires:	gnome-session
Requires:	gnome-session-bin
Requires(pre):	/bin/systemd-sysusers
Provides:	dm

%description
Gdm (the GNOME Display Manager) is a highly configurable
reimplementation of xdm, the X Display Manager. Gdm allows you to log
into your system with the X Window System running and supports running
several different X sessions on your local machine at the same time.

%files -f %{name}.lang
%license COPYING
%doc AUTHORS NEWS README.md
%{_sysconfdir}/dbus-1/system.d/gdm.conf
%{_bindir}/gdm-screenshot
%{_bindir}/gdmflexiserver
%{_sbindir}/gdm
%dir %{_sysconfdir}/X11/gdm
%{_sysconfdir}/gdm
%config(noreplace) %{_sysconfdir}/pam.d/gdm-autologin
%config(noreplace) %{_sysconfdir}/pam.d/gdm-fingerprint
%config(noreplace) %{_sysconfdir}/pam.d/gdm-password
%config(noreplace) %{_sysconfdir}/pam.d/gdm-smartcard
%config(noreplace) %{_sysconfdir}/pam.d/gdm-launch-environment
%config(noreplace) %{_sysconfdir}/X11/gdm/custom.conf
# symlink to /etc/X11/Xsession from xinitrc
%{_sysconfdir}/X11/gdm/Xsession
%dir %{_sysconfdir}/X11/dm
%dir %{_sysconfdir}/X11/dm/Sessions
%config(noreplace) %{_sysconfdir}/X11/gdm/PreSession
%config(noreplace) %{_sysconfdir}/X11/gdm/PostSession
%config(noreplace) %{_sysconfdir}/X11/gdm/PostLogin
%config(noreplace) %{_sysconfdir}/X11/gdm/Init
%{_libexecdir}/gdm-host-chooser
%{_libexecdir}/gdm-runtime-config
%{_libexecdir}/gdm-session-worker
%{_libexecdir}/gdm-simple-chooser
%{_libexecdir}/gdm-wait-for-drm
%{_libexecdir}/gdm-wayland-session
%{_libexecdir}/gdm-x-session
%{_datadir}/pixmaps/*
%{_datadir}/gdm
%{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.xml
%dir %{_datadir}/hosts
%attr(1770, gdm, gdm) %dir %{_localstatedir}/lib/gdm
%ghost %attr(1755, gdm, gdm) %dir %{_localstatedir}/run/gdm/greeter
%ghost %attr(1777, root, gdm) %dir %{_localstatedir}/run/gdm
%attr(1750, gdm, gdm) %dir %{_localstatedir}/lib/gdm/.local
%attr(1750, gdm, gdm) %dir %{_localstatedir}/lib/gdm/.local/share
%attr(1750, gdm, gdm) %dir %{_localstatedir}/lib/gdm/.local/share/xorg
%{_datadir}/dconf/profile/gdm
%dir %{_var}/log/gdm
%{_unitdir}/gdm.service
%dir %{_unitdir}/gdm.service.d
%{_userunitdir}/gnome-session@gnome-login.target.d/session.conf
%{_datadir}/glib-2.0/schemas/org.gnome.login-screen.gschema.override
%{_datadir}/gnome-session/sessions/gnome-login.session
/%{_lib}/security/pam_gdm.so
%{_udevrulesdir}/61-gdm.rules
%{_sysusersdir}/gdm.conf

%pre
%sysusers_create_package gdm %{SOURCE3}

%post
%systemd_post gdm.service

%preun
%systemd_preun gdm.service

#--------------------------------------------------------------------
%package -n %{libname}
Summary:	Library for the %name greeter
Group:		System/Libraries

%description -n %{libname}
Gdm (the GNOME Display Manager) is a highly configurable
reimplementation of xdm, the X Display Manager. Gdm allows you to log
into your system with the X Window System running and supports running
several different X sessions on your local machine at the same time.

%files -n %{libname}
%license COPYING
%{_libdir}/libgdm.so.%{major}*

#--------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/Gdm-%{gmajor}.typelib

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%license COPYING
%{_includedir}/gdm
%{_libdir}/libgdm.so
%{_libdir}/pkgconfig/gdm.pc
%{_libdir}/pkgconfig/gdm-pam-extensions.pc
%{_datadir}/gir-1.0/Gdm-%{gmajor}.gir

#--------------------------------------------------------------------

%package default-to-xorg
Summary:	Run GDM greeter via Xorg by default
Group:		Graphical desktop/Other
Requires:	gdm

%description default-to-xorg
GDM runs its greeter via Wayland by default.
Install this package to run GDM greeter via Xorg
without editing its config (/etc/gdm/custom.conf).

%files default-to-xorg
%{_unitdir}/gdm.service.d/10-gdm-xorg.conf
#--------------------------------------------------------------------

%prep
%setup -q
cp data/Init.in data/Default.in
%autopatch -p1

pushd po
tar -xvzf %{SOURCE4}
popd

%build

%meson \
	-Dgdm-xsession=false \
	-Dsysconfsubdir=X11/gdm \
	-Ddmconfdir=%{_sysconfdir}/X11/dm \
	-Dpam-prefix=%{_sysconfdir} \
	-Dplymouth=enabled \
	-Dselinux=enabled
%meson_build

%install
%meson_install

# don't provide PreSession/PostSession, pam handle this
rm -f %{buildroot}%{_sysconfdir}/X11/PreSession/Default
rm -f %{buildroot}%{_sysconfdir}/X11/PostSession/Default

mkdir -p %{buildroot}%{_datadir}/hosts
# pre-own directories
mkdir -p %{buildroot}%{_datadir}/gdm/autostart/LoginWindow

mkdir -p %{buildroot}%{_var}/log/gdm %{buildroot}%{_sysconfdir}/X11/dm/Sessions

#remove unpackaged files
rm -rf %{buildroot}%{_sysconfdir}/X11/gdm/PostLogin/Default.sample \
	%{buildroot}%{_datadir}/xsessions/gnome.desktop

pushd %{buildroot}%{_sysconfdir}
ln -s X11/gdm
popd

( cd %{buildroot}%{_sysconfdir}/gdm
# Use /etc/X11/Xsession script from xinitrc instead of the one from gdm
# because it better knows how to deal with our Xorg stack
# (Fedora does the same)
  ln -sf ../Xsession Xsession
)

# added ROSA logo
install -dD %{buildroot}%{_datadir}/glib-2.0/schemas
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/glib-2.0/schemas/
mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/rosa-logo-gdm.svg

mkdir -p %{buildroot}/%{_lib}/security
mv %{buildroot}%{_libdir}/security/pam_gdm.so %{buildroot}/%{_lib}/security/pam_gdm.so

# (tmb) must exist for gdm to start xorg when WaylandEnable=false
mkdir -p %{buildroot}%{_localstatedir}/lib/gdm/.local/share/xorg

install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/gdm.conf

mkdir -p %{buildroot}%{_unitdir}/gdm.service.d
cat > %{buildroot}%{_unitdir}/gdm.service.d/10-gdm-xorg.conf << 'EOF'
[Service]
# Create or edit /run/gdm/custom.conf
ExecStartPre=%{_libexecdir}/gdm-runtime-config set daemon PreferredDisplayServer xorg
EOF

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12815 |21mr|gdm-kde-smartcards-2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Use GDM instead of screensaver to login back to session
Name:		gdm-kde-smartcards
Version:	2
Release:	1
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://abf.io/import/gdm-kde-smartcards
Source1:	gdm-kde-smartcards-dbus-watcher.sh
Source2:	gdm-kde-smartcards-dbus-watcher.desktop
BuildArch:	noarch
Requires:	gdm
Requires:	kscreenlocker-switch-to-dm
Requires:	gsd-smartcard-not-gnome
Requires:	/usr/bin/dbus-monitor
Requires:	/usr/libexec/gsd-smartcard
# package was renamed
Obsoletes:	gdm-as-screensaver < 2
Conflicts:	gdm-as-screensaver < 2

%description
Use GDM instead of screensaver to login back to session:
automatically switch to TTY1 with gdm when screensaver starts.
Works with any screensaver, which uses the org.freedesktop.ScreenSaver
D-Bus interface, e.g. KDE kscreenlocker.
This allows to use GDM as a single point of authorization and avoid
autorizing via screenlocker. Useful e.g. when using smartcards.
Integrates gsd-smartcard into KDE.

%files
%{_bindir}/gdm-kde-smartcards-dbus-watcher
%{_sysconfdir}/xdg/autostart/gdm-kde-smartcards-dbus-watcher.desktop

#------------------------------------------------------------------

%prep
%setup -T -c
cp %{sources} .

%install
mkdir -p %{buildroot}%{_bindir}
install -m755 gdm-kde-smartcards-dbus-watcher.sh %{buildroot}%{_bindir}/gdm-kde-smartcards-dbus-watcher
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
install -m644 gdm-kde-smartcards-dbus-watcher.desktop %{buildroot}%{_sysconfdir}/xdg/autostart/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12816 |21mr|geany-1.38-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

#for educational needs
%bcond_without edm

Summary:	Small C editor using GTK3
Name:		geany
Version:	1.38
Release:	1
License:	GPLv2+
Group: 		Development/Tools
URL:		https://www.geany.org
Source0: 	http://download.geany.org/%{name}-%{version}.tar.bz2
# The following tags files were retrieved 6th Jan 2011
Source1:	http://wiki.geany.org/_media/tags/dbus-glib-0.76.c.tags
Source2:	http://wiki.geany.org/_media/tags/drupal.php.tags
Source3:	http://wiki.geany.org/_media/tags/ethos-1.0.c.tags
Source4:	http://wiki.geany.org/_media/tags/geany-api-0.21.c.tags
Source5:	http://wiki.geany.org/_media/tags/gladeui-1.0.c.tags
Source6:	http://wiki.geany.org/_media/tags/gnt.c.tags
Source7:	http://wiki.geany.org/_media/tags/gtk_-2.24.c.tags
Source8:	http://download.geany.org/contrib/tags/gtkscintilla-2.0.c.tags
Source9:	http://wiki.geany.org/_media/tags/gtksourceview-3.0.c.tags
Source10:	http://wiki.geany.org/_media/tags/libdevhelp-2.0.c.tags
Source11:	http://wiki.geany.org/_media/tags/libgdl-3.0.c.tags
Source12:	http://wiki.geany.org/_media/tags/libxml-2.0.c.tags
Source13:	http://wiki.geany.org/_media/tags/sqlite3.c.tags
Source14:	http://wiki.geany.org/_media/tags/standard.css.tags
Source15:	http://wiki.geany.org/_media/tags/std.glsl.tags
Source16:	http://wiki.geany.org/_media/tags/std.latex.tags
Source17:	http://download.geany.org/contrib/tags/std.vala.tags
Source18:	http://wiki.geany.org/_media/tags/v4l2.c.tags
Source19:	http://wiki.geany.org/_media/tags/webkit-1.0.c.tags
Source20:	http://wiki.geany.org/_media/tags/wordpress.php.tags
Source21:	http://wiki.geany.org/_media/tags/xfce48.c.tags
Source22:	http://advamacs.com/pub/tcl.tcl.tags
# Russian help source. You may create another similar file for you language
Source50:	index.html
Source51:	images.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(gtk+-3.0)
Recommends:	geany-plugins
Recommends:	geany-themes

%description
Geany is a small C editor using GTK2 with basic features of an
integrated development environment. It features syntax highlighting,
code completion, call tips, many supported filetypes (including C,
Java, PHP, HTML, DocBook, Perl, LateX, and Bash), and symbol lists.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_defaultdocdir}/%{name}
%{_iconsdir}/hicolor/*/apps/*
%{_iconsdir}/hicolor/*/actions/*
%{_iconsdir}/Tango/*/actions/*
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Geany runtime library
Group:		System/Libraries

%description -n %{libname}
Geany runtime library.

%files -n %{libname}
%{_libdir}/libgeany.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for building Geany plug-ins
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.25-3
Obsoletes:	%{name}-devel < 1.25-3

%description -n %{devname}
This package contains the header files and pkg-config file needed for
building Geany plug-ins. You do not need to install this package

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libgeany.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh --enable-gtk3 --prefix=/usr
%configure --enable-gtk3
%make

%install
%makeinstall


#Fix for Russian
sed 's/Name\[ru\]=Geany/Name\[ru\]=Среда разработки Geany/g' -i %{buildroot}%{_datadir}/applications/geany.desktop
mkdir -p  %{buildroot}%{_defaultdocdir}/%{name}/html/ru/
install -Dpm 0644 %{SOURCE50} %{buildroot}%{_defaultdocdir}/%{name}/html/ru/
tar -xjvf %{SOURCE51}
mv images %{buildroot}%{_defaultdocdir}/%{name}/html/ru/

# research locale file
%find_lang %{name}

# prepare menu
# we remove the key "Version" and "Encoding" because it's invalid
desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="GNOME" \
	--remove-key="Version" \
	--remove-key="Encoding" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Install tags files
install -p %{SOURCE1}  %{SOURCE2}  %{SOURCE3}  %{SOURCE4}  %{SOURCE5}  %{SOURCE6} \
           %{SOURCE7}  %{SOURCE8}  %{SOURCE9}  %{SOURCE10} %{SOURCE11} %{SOURCE12}\
           %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18}\
           %{SOURCE19} %{SOURCE20} %{SOURCE21} %{SOURCE22}\
           %{buildroot}%{_datadir}/%{name}

# remove useless file
rm -f %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache
rm -f %{buildroot}%{_datadir}/icons/Tango/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12817 |21mr|geany-plugins-1.38-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname geanypluginutils %{major}

%global geany_plug_docdir %{_defaultdocdir}/%{name}

Summary:	A collection of different plugins for Geany
Name:		geany-plugins
Version:	1.38
Release:	4
License:	GPLv2+ and GPLv3+
Group:		Development/GNOME and GTK+
Url:		http://plugins.geany.org/
Source0:	http://plugins.geany.org/geany-plugins/%{name}-%{version}.tar.bz2
Patch0:		geany-plugins-1.38-asize-reserved-libgit-support.patch
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libsoup-devel
BuildRequires:	vala
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(geany) >= %{version}
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkspell-2.0)
BuildRequires:	pkgconfig(gpgme)
BuildRequires:	pkgconfig(gtkspell3-3.0)
BuildRequires:	pkgconfig(libgit2)
BuildRequires:	pkgconfig(libwnck-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
Requires:	geany
#Requires:	lua5.1
Requires:	%{libname} = %{EVRD}

%description
Geany-Plugins is a collection of different plugins for Geany,
a lightweight IDE. It provides a common location for plugin authors
and users with a known infrastructure and support. List of included
plugins:

- Addons: Collection of small addons for geany
- Codenav: make it possible to
           - switch between header and implementation
           - go to a file by typing its name
- Geanydoc: allow executing specified commands on the
            current word at the cursor position
- Geanyextreasel: The Extra Selection adds several selection
                  enhancements to geany
- Geanygdb: integrated debugging support within Geany via
            the GNU Debugger (GDB).
- Geanyinsertnum: replaces a (possibly zero-width) rectangular selection
                  with integer numbers, using start/step/base etc.
                  specified by the user.
- Geanylatex: GeanyLaTeX is a plugin for Geany IDE to improve work
              with LaTeX.
- Geanylipsum: implements a Lorem Ipsum generator to insert
               placeholder text into your document
- Geanyprj: alternative project manager for Geany fast light IDE
- Geanysendmail: send a document as attachment using the preferred
                 mail client from inside Geany
- Geanyvc: provides a uniform way of accessing the different
           version-control systems inside Geany IDE.
- ShiftColumn: allows you to move blocks of text horizontally
- Spellcheck: checks the content of the current document in Geany
              with the spell check library Enchant
- Treebrowser

...and other

%files -f %{name}.lang
%doc NEWS README AUTHORS
%{_libdir}/geany*
%{_datadir}/geany-plugins
%doc %{_defaultdocdir}/%{name}/*/*
%license %{_defaultlicensedir}/%{name}/COPYING


#----------------------------------------------------------------------------
%package -n %{libname}
Summary:        Geany plugins library
Group:          System/Libraries

%description -n %{libname}
Geany plugins library

%files -n %{libname}
%{_libdir}/libgeanypluginutils.so.%{major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --docdir=%{geany_plug_docdir}
%make

%install
%makeinstall_std
find %{buildroot}/%{geany_plug_docdir} -type f -size 0 -exec rm -f {} ";"

mkdir -p %{buildroot}%{_defaultlicensedir}/%{name}
mv %{buildroot}%{_defaultdocdir}/%{name}/COPYING %{buildroot}%{_defaultlicensedir}/%{name}

# not needed devel symlink
[ -L %{buildroot}%{_libdir}/libgeanypluginutils.so ] && unlink %{buildroot}%{_libdir}/libgeanypluginutils.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12818 |21mr|gedit-42.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define _disable_ld_no_undefined 1

Summary:	Small but powerful text editor for GNOME
Name:		gedit
Version:	42.2
Release:	4
License:	GPLv2+
Group:		Editors
Url:		https://download.gnome.org/sources/gedit
Source0:	https://download.gnome.org/sources/gedit/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gedit-42.2-localization.patch
Patch1:		gedit-42.2-po-ru-translate.patch
Patch2:		gedit-44.2-win1251-autodetect.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	python3-gi
BuildRequires:	vala-tools
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(tepl-6)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(x11)
Obsoletes:	%{_lib}gedit-private0 < 3.4.2
Obsoletes:	%{name}-zeitgeist < 3.15.91

%description
gEdit is a small but powerful text editor designed expressly
for GNOME.

It includes such features as split-screen mode, a plugin
API, which allows gEdit to be extended to support many
features while remaining small at its core, multiple
document editing through the use of a 'tabbed' notebook and
many more functions.

%files -f %{name}.lang
%doc README.md NEWS
%license COPYING
%{_appdatadir}/org.gnome.gedit.appdata.xml
%{_bindir}/*
%{_datadir}/applications/org.gnome.gedit.desktop
%{_datadir}/dbus-1/services/org.gnome.gedit.service
%{_datadir}/gedit
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.*
%{_iconsdir}/hicolor/*/apps/org.gnome.gedit*
%{_libdir}/gedit/girepository-1.0/Gedit-3.0.typelib
%{_libdir}/gedit/libgedit-*.so
%{_libdir}/gedit/plugins/*
%{_mandir}/man1/gedit.1*
%{python3_sitelib}/gi/overrides/

#----------------------------------------------------------------------------

%package devel
Summary:	Headers for writing gEdit plugins
Group:		Development/C
Obsoletes:	%{_lib}gedit-private-devel < 3.4.2

%description devel
Install this if you want to build plugins that use gEdit's API.

%files devel
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_datadir}/vala/vapi/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12819 |21mr|gedit-plugins-42.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)
%define _disable_ld_no_undefined 1

Summary:	Extra plugins for gedit
Name:		gedit-plugins
Version:	42.1
Release:	2
License:	GPLv2+
Group:		Editors
Url:		https://download.gnome.org/sources/gedit-plugins
Source0:	https://download.gnome.org/sources/gedit-plugins/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	pkgconfig(dbus-python)
BuildRequires:	gedit
BuildRequires:	pkgconfig(gedit)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-5)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(python3)
Requires:	gedit

%description
gEdit is a small but powerful text editor designed expressly
for GNOME.

It includes such features as split-screen mode, a plugin
API, which allows gEdit to be extended to support many
features while remaining small at its core, multiple
document editing through the use of a 'tabbed' notebook and
many more functions.

This package contains some extra plugins for gEdit, extending gEdit
functionality.

%files -f %{name}.lang
%doc NEWS AUTHORS
%doc %{_datadir}/help/*/gedit/*
%license COPYING
%{_datadir}/glib-2.0/schemas/*.xml
%{_libdir}/gedit/plugins/*
%{_datadir}/gedit/plugins/*
%{_datadir}/metainfo/*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12820 |21mr|gegl-0.4.46-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 0.4
%define libname %mklibname %{name} %{api}_%{major}
%define libsc %mklibname %{name}-sc %{api}_%{major}
%define libnpd %mklibname %{name}-npd %{api}_%{major}
%define devname %mklibname %{name} -d
%define girname %mklibname %{name}-gir %{api}

Summary:	Generic Graphics Library - graph based image processing framework
Name:		gegl
Version:	0.4.46
Release:	1
License:	LGPLv3+
Group:		System/Libraries
Url:		http://www.gegl.org/
Source0:	https://download.gimp.org/pub/gegl/%{api}/%{name}-%{version}.tar.xz
Patch0:		gegl-0.4.18-soname.patch
Patch1:		gegl-0.4.40-linking.patch
BuildRequires:	asciidoc
BuildRequires:	enscript
BuildRequires:	graphviz
BuildRequires:	gtk-doc
#No need, so big BuildRequires:	gtk-doc-mkpdf
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pango-modules
BuildRequires:	patchelf
BuildRequires:	ruby
BuildRequires:	vala
BuildRequires:	vala-tools
#Contrib BuildRequires:	w3m
#gw warning: this needs the deprecated libavcodec scaler (img_convert,...)
BuildRequires:	ffmpeg-devel
BuildRequires:	jpeg-devel
BuildRequires:	umfpack-devel
BuildRequires:	pkgconfig(babl-0.1)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(gexiv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(lensfun)
BuildRequires:	pkgconfig(libopenraw-0.1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libraw)
%ifnarch %{e2k}
# rsvg requires rust to build which is unavailable for e2k
BuildRequires:	pkgconfig(librsvg-2.0)
%endif
BuildRequires:	pkgconfig(libspiro)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
%ifnarch riscv64
BuildRequires:	pkgconfig(luajit)
%endif
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(poly2tri-c)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vapigen)
%rename gegl03

# Executed from code, required to work, otherwise GIMP does not launch
# (graphviz)
Requires:	%{_bindir}/dot

%description
GEGL (Generic Graphics Library) is a graph based image processing framework.

GEGLs original design was made to scratch GIMPs itches for a new compositing
and processing core. This core is being designed to have minimal dependencies
and a simple well defined API.

%files -f %{name}-%{api}.lang
%doc AUTHORS MAINTAINERS
%license COPYING COPYING.LESSER
%{_bindir}/%{name}
%{_bindir}/%{name}-imgcmp
%{_libdir}/%{name}-%{api}/*.json
%{_libdir}/%{name}-%{api}/*.so
# No in riscv64
%optional %{_datadir}/%{name}-%{api}/lua/*.lua
# In e2kv4
%ifarch %{e2k}
%optional %{_libdir}/VariantIter
%endif
%optional %{_libdir}/*t

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for %{name}
Group:		System/Libraries
Requires:	%{libnpd} = %{EVRD}
Requires:	%{libsc} = %{EVRD}
%define libname04 %mklibname gegl04 %{api} %{major}
%rename %{libname04}

%description -n %{libname}
GEGL (Generic Graphics Library) is a graph based image processing framework.

GEGLs original design was made to scratch GIMPs itches for a new compositing
and processing core. This core is being designed to have minimal dependencies
and a simple well defined API.

%files -n %{libname}
%license COPYING COPYING.LESSER
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libsc}
Summary:	libgegl-sc library for %{name}
Group:		System/Libraries
Conflicts:	%{libname} < 0.4.26-2
Obsoletes:	%{libname} < 0.4.26-2

%description -n %{libsc}
This package contains the libgegl-sc shared library for %{name}.

%files -n %{libsc}
%{_libdir}/lib%{name}-sc-%{api}.so.%{major}

#----------------------------------------------------------------------------

%package -n %{libnpd}
Summary:	libgegl-npd library for %{name}
Group:		System/Libraries
Conflicts:	%{libname} < 0.4.26-2
Obsoletes:	%{libname} < 0.4.26-2

%description -n %{libnpd}
This package contains the libgegl-npd shared library for %{name}.

%files -n %{libnpd}
%{_libdir}/lib%{name}-npd-%{api}.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%define develname04 %mklibname -d gegl04
%rename %{develname04}
Conflicts:	%{libname} < 0.4.26-2
Obsoletes:	%{libname} < 0.4.26-2

%description -n %{devname}
GEGL (Generic Graphics Library) is a graph based image processing
framework.

GEGLs original design was made to scratch GIMPs itches for a new
compositing and processing core. This core is being designed to
have minimal dependencies. and a simple well defined API.

%files -n %{devname}
%license COPYING COPYING.LESSER
%{_datadir}/gir-1.0/Gegl-%{api}.gir
%{_datadir}/vala/vapi/*
%{_includedir}/%{name}-%{api}/
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/lib%{name}-npd-%{api}.so
%{_libdir}/lib%{name}-sc-%{api}.so
%{_libdir}/pkgconfig/*.pc
# files exists only if e2k
%optional %{_libdir}/listautoptr_cleanup_GVariantBuilder
%optional %{_libdir}/tr_cleanup_GVariantBuilder

#----------------------------------------------------------------------------

%package -n %{girname}

Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
%define girname04 %mklibname gegl04-gir %{api}
%rename %{girname04}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING COPYING.LESSER
%{_libdir}/girepository-1.0/Gegl-%{api}.typelib

#----------------------------------------------------------------------------

%prep
%autosetup -p1
export LC_ALL=UTF-8

%build
%meson
%meson_build

%install
%meson_install

# Need libmetis.so
rm -f %{buildroot}%{_libdir}/%{name}-%{api}/matting-levin.so

# Remove rpaths
chrpath --delete %{buildroot}%{_bindir}/*
chrpath --delete %{buildroot}%{_libdir}/*.so*
chrpath --delete %{buildroot}%{_libdir}/%{name}-%{api}/*.so

# Some external consumers are linked with non-versionized libgegle-*-*.so libraries.
# This makes the devel() generator make incorrect dependencies from devel(),
# while nothing provides those devel()-s because those files are not symlinks.
# I am not sure here if it is a good idea to keep them unversionized or not,
# for now let's just versionize them by changing so-names
# from libgegel-npd-0.4.so to libgegl-npd-04.so.0
# by hacks. Maybe we should change build scripts and suggest changes to upstream,
# or maybe relocate them to /usr/lib64/gegl-0.4/ or maybe do not hack them at all.
# For now make sonames look more standard.
# I hope that nothing dlopen()-s them.
# TODO: think about it later.
( cd %{buildroot}%{_libdir}
patchelf --set-soname lib%{name}-npd-%{api}.so.%{major} lib%{name}-npd-%{api}.so
mv -v lib%{name}-npd-%{api}.so lib%{name}-npd-%{api}.so.%{major}
ln -s lib%{name}-npd-%{api}.so.%{major} lib%{name}-npd-%{api}.so
patchelf --set-soname lib%{name}-sc-%{api}.so.%{major} lib%{name}-sc-%{api}.so
mv -v lib%{name}-sc-%{api}.so lib%{name}-sc-%{api}.so.%{major}
ln -s lib%{name}-sc-%{api}.so.%{major} lib%{name}-sc-%{api}.so
patchelf --print-soname lib%{name}-sc-%{api}.so.%{major} | grep -q 'lib%{name}-sc-%{api}.so.%{major}'
patchelf --print-soname lib%{name}-npd-%{api}.so.%{major} | grep -q 'lib%{name}-npd-%{api}.so.%{major}'
)
find %{buildroot}%{_libdir} %{buildroot}%{_bindir} -type f -print | while read -r line
do
if ! file "$line" | grep -q ': ELF '; then
	continue
fi
change_sc=0
change_npd=0
needed="$(patchelf --print-needed "$line")"
if grep -q '^lib%{name}-sc-%{api}.so$' <<< "$needed"; then
	change_sc=1
fi
if grep -q '^lib%{name}-npd-%{api}.so$' <<< "$needed"; then
	change_npd=1
fi
if [ "$change_sc" = 1 ]; then
	patchelf --replace-needed lib%{name}-sc-%{api}.so lib%{name}-sc-%{api}.so.%{major} "$line"
fi
if [ "$change_npd" = 1 ]; then
	patchelf --replace-needed lib%{name}-npd-%{api}.so lib%{name}-npd-%{api}.so.%{major} "$line"
fi
done

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12821 |21mr|gemini-blueprint-1.0.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
%global dotname gemini.blueprint
Name:          gemini-blueprint
Version:       1.0.2
Release:       16
Summary:       Reference Implementation of the OSGi Blueprint Service
# BSD file - test-support/src/main/java/org/eclipse/gemini/blueprint/test/internal/util/DependencyVisitor.java,
License:       ASL 2.0 and BSD and EPL
URL:           http://www.eclipse.org/gemini/
# https://github.com/glyn/Gemini-Blueprint
Source0:       https://github.com/eclipse/gemini.blueprint/archive/%{namedversion}.tar.gz
# add maven-{bundle,jar}-plugin configuration
Patch0:        %{name}-%{namedversion}-add-osgi-manifests.patch

BuildRequires: aopalliance
BuildRequires: felix-osgi-compendium
BuildRequires: felix-osgi-core
BuildRequires: log4j12
BuildRequires: springframework
BuildRequires: springframework-aop
BuildRequires: springframework-beans
BuildRequires: springframework-context
BuildRequires: springframework-context-support
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle

# test deps
BuildRequires: easymock3
BuildRequires: junit
BuildRequires: multithreadedtc
# BuildRequires: springframework-test

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Eclipse Gemini Blueprint project makes it
easy to build Java applications that run
in an OSGi framework. 
By using Gemini Blueprint, applications
benefit from using a better separation of
modules, the ability to dynamically add,
remove, and update modules in a running system,
the ability to deploy multiple versions of a
module simultaneously (and have clients
automatically bind to the appropriate one),
and a dynamic service model.

NOTE: Eclipse Gemini Blueprint can be considered the
successor of Spring DM (OSGi) 2.x (http://www.springsource.org/osgi).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{dotname}-%{namedversion}
%patch0 -p1

%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:configuration/pom:instructions" "
<Bundle-Activator>org.eclipse.gemini.blueprint.extender.internal.boot.ChainActivator</Bundle-Activator>" extender

find . -name "*.class" -delete
find . -name "*.jar" -type f -delete

%pom_remove_plugin com.springsource.bundlor:com.springsource.bundlor.maven
%pom_remove_plugin :maven-clover2-plugin
%pom_remove_plugin :maven-antrun-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :jdepend-maven-plugin

# remove org.springframework.build.aws.maven
%pom_xpath_remove pom:extensions
# remove clover knopflerfish profiles (todo remove also eclipse/equinox and org.apache.felix profiles)
%pom_xpath_remove pom:profiles

# TODO require:
# org.springframework spring-test
# org.knopflerfish framework
# org.apache.felix org.apache.felix.main
# org.eclipse.osgi org.eclipse.osgi
%pom_disable_module test-support
%pom_remove_dep org.eclipse.gemini.blueprint:gemini-blueprint-test

# build deps
%pom_remove_dep org.springframework:spring-test
%pom_remove_dep org.springframework:spring-test core
# require org.springframework:org.springframework.test*
rm -r core/src/test/java/org/eclipse/gemini/blueprint/internal/util/BeanFactoryUtilsTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/DictionaryEditorTest.java

%pom_remove_dep log4j:log4j
%pom_remove_dep org.apache.log4j:com.springsource.org.apache.log4j
%pom_add_dep log4j:log4j:1.2.17
%pom_remove_dep org.junit:com.springsource.org.junit
%pom_add_dep junit:junit:4.11:test

%pom_remove_dep org.aopalliance: core
%pom_add_dep aopalliance:aopalliance::provided core

%pom_remove_dep org.aopalliance: extender
%pom_add_dep aopalliance:aopalliance::test extender

%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId = 'multithreadedtc' ]/pom:groupId" edu.umd.cs core

%pom_xpath_set "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:version = '1.0.0' ]/pom:artifactId" aopalliance
%pom_xpath_set "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:version = '1.0.0' ]/pom:groupId" aopalliance

# migrate from easymock 1 to easymock 3
%pom_remove_dep easymock:
%pom_add_dep org.easymock:easymock:3.2:test
rm -r mock/src/test/java/org/eclipse/gemini/blueprint/mock/MockServiceRegistrationTest.java \
 extender/src/test/java/org/eclipse/gemini/blueprint/extender/internal/ContextLoaderListenerTest.java \
 io/src/test/java/org/eclipse/gemini/blueprint/io/OsgiBundleResourceLoaderTest.java \
 io/src/test/java/org/eclipse/gemini/blueprint/io/OsgiBundleResourceTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/config/internal/OsgiServiceLifecycleListenerAdapterTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/config/internal/OsgiServiceRegistrationListenerAdapterTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/config/BundleFactoryBeanParserTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/context/support/AbstractBundleXmlApplicationContextTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/context/support/AbstractRefreshableOsgiBundleApplicationContextTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/context/support/BundleContextAwareProcessorTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/util/BundleDelegatingClassLoaderTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/service/OsgiServiceReferenceUtilsTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/service/importer/OsgiSingleServiceProxyFactoryBeanTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/service/importer/OsgiServiceCollectionProxyFactoryBeanTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/service/OsgiServiceUtilsTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/service/exporter/support/internal/support/ServiceRegistrationWrapperTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/service/exporter/support/OsgiServiceFactoryBeanTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/service/exporter/BeanNameServicePropertiesResolverTest.java \
 core/src/test/java/org/eclipse/gemini/blueprint/compendium/internal/cm/ConfigurationAdminManagerTest.java

# Fix CRLF
sed 's/\r//' -i changelog.txt license-apache.txt readme-building.txt readme.txt

rm -r core/src/test/java/org/eclipse/gemini/blueprint/blueprint/ReflectionTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/ComponentElementTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/ComponentSubElementTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/ConstructorInjectionTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/MixedRfc124BeansTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/NestedElementsTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/SchemaWithLocationTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/SpringDmRfc124Test.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/SpringRootConfigTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/config/TypeConverterTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/BlueprintFieldsTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/CycleTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/GenericsTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/LazyExporterTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/TestBlueprintBuiltinConvertersTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/container/TestLazyBeansTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/metadata/BundleContextApiTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/metadata/ImporterMetadataTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/metadata/BeanComponentMetadataTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/metadata/DefaultsTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/metadata/ExporterMetadataTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/metadata/ImporterCollectionsMetadataTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/blueprint/reflect/NestedDefinitionMetadataTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/compendium/config/CmConfigAndCtxPropertiesConfigurationTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/compendium/config/ConfigPropertiesHandlerTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/compendium/config/ManagedPropertiesTest.java \
  core/src/test/java/org/eclipse/gemini/blueprint/compendium/config/ManagedServiceFactoryTest.java \

%build

# some test fails for unavailable build deps*
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%doc about.html changelog.txt readme-building.txt readme.txt
%license epl-v10.html license-apache.txt notice.html 

%files javadoc -f .mfiles-javadoc
%license epl-v10.html license-apache.txt notice.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12822 |21mr|generic-jms-ra-1.0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          generic-jms-ra
Version:       1.0.7
Release:       4
Group:         Development/Java
Summary:       Generic JMS JCA Resource Adapter for JBoss AS
License:       LGPLv2+
URL:           https://github.com/jms-ra/generic-jms-ra
Source0:       https://github.com/jms-ra/generic-jms-ra/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.jboss:jboss-common-core)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This project is for the Generic JMS JCA Resource Adapter for JBoss AS. As the
name suggests, this JCA RA provides the ability to integrate with any JMS
broker which allows remote clients to look-up connection factories and
destinations via JNDI (as outlined in section 4.2 of the JMS 1.1
specification). It currently is only verified to work in JBoss AS7 and
supports, for example, consuming messages with an MDB and sending messages with
a JCA-base JMS connection factory to 3rd-party brokers. It is based on the
generic JMS JCA RA found in previous versions of JBoss AS (e.g. 4, 5, and 6).
However, unlike those versions this is a stand-alone project now and no longer
supports internal dead-letter processing since every modern JMS broker supports
this already.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_disable_module generic-jms-ra-rar

%pom_remove_plugin :maven-deploy-plugin

%pom_remove_plugin :maven-javadoc-plugin generic-jms-ra-jar

%pom_change_dep "org.jboss.javaee:jboss-jca-api" "org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec"
%pom_remove_dep "org.jboss.javaee:jboss-jca-api" generic-jms-ra-jar
%pom_add_dep "org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec" generic-jms-ra-jar

%pom_add_dep "org.jboss:jboss-common-core"

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12823 |21mr|gengetopt-2.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNU gengetopt generates command line parsers
Name:		gengetopt
Version:	2.23
Release:	1
License:	GPLv3+
Group:		Development/C
Url:		http://www.gnu.org/software/gengetopt/gengetopt.html
Source0:	ftp://ftp.gnu.org/gnu/gengetopt/%{name}-%{version}.tar.xz
Source10:	%{name}.rpmlintrc
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	help2man
BuildRequires:	texinfo

%description
This program generates a C function that uses getopt_long function to parse
the command line options, to validate them and fills a struct.

Thus your program can now handle options such as:

myprog --input foo.c -o foo.o --no-tabs -i 100 *.class

And both long options (those that start with --) and short options (start
with - and consist of only one character) can be handled. For standards
about short and long options you may want to take a look at the GNU Coding
Standards.

%files
%doc %{_docdir}/%{name}/*
%{_bindir}/gengetopt
%{_datadir}/gengetopt/
%{_mandir}/man1/gengetopt.1*
%{_infodir}/gengetopt.info*
%{_infodir}/index.info.xz

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
make

#check
#make check

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12824 |21mr|geoclue-2.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define api 2.0

Summary:	The geoinformation service
Name:		geoclue
Version:	2.7.1
Release:	2
License:	LGPLv2+
Group:		Networking/Other
Url:		http://www.freedesktop.org/wiki/Software/GeoClue
Source0:	https://gitlab.freedesktop.org/geoclue/geoclue/-/archive/%{version}/%{name}-%{version}.tar.bz2
Patch0:		geoclue-2.7.1-googleapis-key.patch
BuildRequires:	docbook-dtds
BuildRequires:	gobject-introspection
BuildRequires:	gtk-doc
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	xmlto
BuildRequires:	avahi-common-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpng16)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	pkgconfig(systemd)
Provides:	geoclue2 = %{EVRD}

%description
Geoclue is a modular geoinformation service built on top of the D-Bus
messaging system.The goal of the Geoclue project is to make creating
location-aware applications as simple as possible.

%files
%doc NEWS README.md
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_datadir}/applications/%{name}-demo-agent.desktop
%{_datadir}/applications/%{name}-where-am-i.desktop
%{_datadir}/dbus-1/interfaces/*.xml
%{_datadir}/dbus-1/system.d/*.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.GeoClue2.service
%{_datadir}/polkit-1/rules.d/org.freedesktop.GeoClue2.rules
%dir %attr(755,geoclue,geoclue) %{_sharedstatedir}/%{name}
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/conf.d
%{_libexecdir}/%{name}
%{_libexecdir}/%{name}-2.0
%{_sysconfdir}/xdg/autostart/%{name}-demo-agent.desktop
%{_unitdir}/%{name}.service

%pre
# Update the home directory for existing users
getent passwd %{name} >/dev/null && \
	usermod -d /var/lib/%{name} %{name} &>/dev/null
# Create a new user and group if they don't exist
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || \
	useradd -r -g %{name} -d /var/lib/%{name} -s /sbin/nologin \
	-c "User for %{name}" %{name}
exit 0

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Main library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-2.so.%{major}*


#--------------------------------------------------------------------

%package vala
Summary:	Vala integration for geoclue
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description vala
Vala integration for geoclue

%files vala
%{_datadir}/vala/vapi/*

#----------------------------------------------------------------------------

%package gir
Summary:	GObject Introspection interface description for geoclue2
Group:		System/Libraries

%description gir
GObject Introspection interface description for geoclue2.

%files gir
%{_libdir}/girepository-1.0/Geoclue-2.0.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/*
%{_datadir}/gir-1.0/Geoclue-2.0.gir
%{_includedir}/lib%{name}-%{api}
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/lib%{name}-%{api}.pc
%{_libdir}/*.so
%{_mandir}/man5/%{name}.5.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/conf.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12825 |21mr|geocode-glib-3.26.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 2
%define major 0
%define girmajor 2.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{girmajor}
%define devname %mklibname %{name} -d

Summary:	A convenience library for the Yahoo! Place Finder APIs
Name:		geocode-glib
Version:	3.26.4
Release:	3
License:	LGPLv2
Group:		Networking/Other
Url:		https://download.gnome.org/sources/geocode-glib
Source0:	https://download.gnome.org/sources/geocode-glib/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libsoup-3.0)
Conflicts:	%{_lib}geocode-glib0 < 3.20.1

%description
geocode-glib is a convenience library for the Yahoo! Place Finder
APIs, as described at:
http://developer.yahoo.com/geo/placefinder/

The Place Finder web service allows to do geocoding (finding longitude
and latitude from an address), and reverse geocoding (finding an address
from coordinates).

%files
%doc AUTHORS ChangeLog NEWS README
%license COPYING.LIB
%{_iconsdir}/hicolor/scalable/places/*.svg

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A convenience library for the Yahoo! Place Finder APIs
Group:		System/Libraries
Recommends:	%{name} = %{EVRD}

%description -n %{libname}
Geocode-glib allows you to do geocoding (going from a place name,
to a longitude/latitude pair) and reverse geocoding (finding a place
name from coordinates) using Yahoo! Place Finder API.

This library should be used in place of Geoclue's D-Bus API for
geocoding and reverse geocoding.

%files -n %{libname}
%{_libdir}/libgeocode-glib-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	A convenience library for the Yahoo! Place Finder APIs
Group:		Networking/Other

%description -n %{girname}
This package contains GObjectIntrospection data for geocode-glib.

%files -n %{girname}
%{_libdir}/girepository-1.0/GeocodeGlib-%{girmajor}.typelib

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	A convenience library for the Yahoo! Place Finder APIs
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for geocode-glib.

%files -n %{devname}
%{_datadir}/gir-1.0/GeocodeGlib-%{girmajor}.gir
%{_datadir}/gtk-doc/html/%{name}-%{api}
%{_includedir}/geocode-glib-*
%{_libdir}/libgeocode-glib-%{api}.so
%{_libdir}/pkgconfig/geocode-glib-*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
	-Denable-installed-tests=false	\
	-Dsoup2=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12826 |21mr|geoip-1.5.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname GeoIP
%define major 1
%define updatemajor 0

%define libname %mklibname geoip %{major}
%define libupdate %mklibname geoipupdate %{updatemajor}
%define devname %mklibname geoip -d

Summary:	Find what country an IP address or hostname originates from
Name:		geoip
Version:	1.5.1
Release:	10
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.maxmind.com/app/c
Source0:	http://www.maxmind.com/download/geoip/api/c/%{oname}-%{version}.tar.gz
Source1:	http://geolite.maxmind.com/download/geoip/database/GeoLiteCountry/%{oname}.dat.gz
Source2:	http://geolite.maxmind.com/download/geoip/database/LICENSE.txt
Source3:	http://geolite.maxmind.com/download/geoip/database/GeoLiteCity.dat.gz
Source4:	http://download.maxmind.com/download/geoip/database/asnum/GeoIPASNum.dat.gz
BuildRequires:	libtool
BuildRequires:	pkgconfig(zlib)
BuildRequires:  gzip-utils

%description
GeoIP is a C library that enables the user to find the country that any IP
address or hostname originates from. It uses a file based database that is
accurate as of March 2003. This database simply contains IP blocks as keys,
and countries as values. This database should be more complete and accurate
than using reverse DNS lookups. Commercial databases and automatic update
services are available from http://www.maxmind.com/

This module can be used to automatically select the geographically closest
mirror, to analyze your web server logs to determine the countries of your
visitors, for credit card fraud detection, and for software export controls.

%package -n	%{libname}
Summary:	Shared library part of GeoIP
Group:		System/Libraries
Recommends:	%{name} >= %{version}-%{release}

%description -n	%{libname}
This package contains a shared library for %{name}.

%package -n	%{libupdate}
Summary:	Shared library parts of GeoIP
Group:		System/Libraries

%description -n	%{libupdate}
This package contains a shared library for %{name}.

%package -n	%{devname}
Summary:	Headers and libraries needed for GeoIP development
Group:		Development/C
Requires:	%{libname} >= %{version}-%{release}
Requires:	%{libupdate} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{oname}-devel = %{version}-%{release}

%description -n	%{devname}
This package contains the development files for %{name}.

%prep
%setup -qn %{oname}-%{version}

zcat %{SOURCE1} > data/GeoIP.dat
cp %{SOURCE2} LICENSE.txt
zcat %{SOURCE3} > data/GeoLiteCity.dat
zcat %{SOURCE4} > data/GeoIPASNum.dat

%build
rm -rf configure autom4te.cache
libtoolize --copy --force; aclocal; automake --gnu --add-missing --copy; autoconf

%configure \
	--disable-static

%make

%check
#gw disable tests if there's no network
if ping -c 1 www.rosalab.com; then
make check
fi

%install
%makeinstall_std
#gw path fix man page
perl -pi -e "s^%{buildroot}^^" %{buildroot}%{_mandir}/man1/geoipupdate.1

mkdir -p %{buildroot}%{_datadir}/GeoIP
install -m0644 data/GeoLiteCity.dat %{buildroot}%{_datadir}/GeoIP/
install -m0644 data/GeoIPASNum.dat %{buildroot}%{_datadir}/GeoIP/

%files
%doc AUTHORS COPYING ChangeLog README TODO LICENSE.txt
%config(noreplace) %{_sysconfdir}/GeoIP.conf
%config(noreplace) %{_sysconfdir}/GeoIP.conf.default
%{_bindir}/geoiplookup
%{_bindir}/geoipupdate
%{_bindir}/geoiplookup6
%config(noreplace) %{_datadir}/GeoIP
%{_mandir}/man1/geoiplookup.1*
%{_mandir}/man1/geoiplookup6.1*
%{_mandir}/man1/geoipupdate.1*

%files -n %{libname}
%{_libdir}/libGeoIP.so.%{major}*

%files -n %{libupdate}
%{_libdir}/libGeoIPUpdate.so.%{updatemajor}*

%files -n %{devname}
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12827 |21mr|geolatte-geom0.14-0.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname geolatte-geom

Name:          geolatte-geom0.14
Version:       0.14
Release:       1
Summary:       A geometry model for Java that conforms to the Simple Features For SQL
License:       LGPLv3+
Group:         Development/Java
URL:           http://www.geolatte.org/
Source0:       https://github.com/GeoLatte/geolatte-geom/archive/v%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.vividsolutions:jts:1.14.0)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(jaxen:jaxen)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildArch:     noarch

%description
This geoLatte-geom library offers a geometry model
that conforms to the OGC Simple Features for SQL
specification.

%package javadoc
Group: Development/Java
Summary:       Javadoc for %{oldname}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{oldname}.

%prep
%setup -q -n %{oldname}-%{version}

%pom_xpath_set "pom:dependency[pom:groupId='log4j']/pom:version" 1.2.17
%pom_xpath_set "pom:dependency[pom:groupId='org.codehaus.jackson']/pom:artifactId" jackson-mapper-asl

%pom_remove_dep org.apache.directory.studio:org.apache.commons.collections
%pom_add_dep commons-collections:commons-collections:3.2.1:test

%mvn_file org.geolatte:%{oldname} %{oldname}
%pom_change_dep com.vividsolutions:jts:1.13 com.vividsolutions:jts:1.14.0
%mvn_compat_version : 0.13 %{version}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12828 |21mr|geolatte-geom-1.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          geolatte-geom
Version:       1.2.0
Release:       4
Summary:       A geometry model for Java that conforms to the Simple Features For SQL
License:       LGPLv3+
URL:           http://www.geolatte.org/
Source0:       https://github.com/GeoLatte/geolatte-geom/archive/v%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(com.vividsolutions:jts)
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(jaxen:jaxen)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:1.2.17)
BuildRequires:  mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-log4j12)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A geometry model for Java that conforms to the Simple Features For
SQL specification. It is intended as a drop-in replacement for the
Java Topology Suite (JTS) geometry model. GeoLatte-geom is fully
inter-operable with JTS but offers additional features.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

# Unneeded plugins for RPM builds
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin

# Use compat version of log4j
%pom_xpath_set "pom:dependency[pom:groupId='log4j']/pom:version" 1.2.17 geom

# Fix dependencies to reflect what's in Fedora
%pom_change_dep :jackson-mapper-lgpl org.codehaus.jackson:jackson-mapper-asl geom
%pom_change_dep :org.apache.commons.collections commons-collections:commons-collections geom

# Allow building against new jts
sed -i -e 's/com\.vividsolutions\.jts/org.locationtech.jts/g' $(find geom -name "*.java")
sed -i -e '/clone()/a@Override public CoordinateSequence copy() {return (CoordinateSequence)clone();}' \
  geom/src/main/java/org/geolatte/geom/AbstractPositionSequence.java

%build
# Ignore a couple of test failures, not sure why it happens
%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license copyright-template.vml

%files javadoc -f .mfiles-javadoc
%license copyright-template.vml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12829 |21mr|geos-3.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	libname %mklibname %{name} %{version}
%define	major_c 1
%define	libname_c %mklibname %{name}_c %{major_c}
%define	devname %mklibname %{name} -d
%define	sdevname %mklibname %{name} -d -s

Summary:	GEOS (Geometry Engine, Open Source) topology library
Name:		geos
Version:	3.9.2
Release:	1
License:	LGPLv2+
Group:		Sciences/Geosciences
Url:		https://trac.osgeo.org/geos
Source0:	https://download.osgeo.org/geos/%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	boost-devel >= 1.32

%description
GEOS (Geometry Engine - Open Source) is a C++ port of the ​JTS Topology Suite.
It aims to contain the complete functionality of it in C++ and thus provides
topological operators and simple spatial constructs: points, lines, polygons
and collections.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for GEOS
Group:		System/Libraries

%description -n %{libname}
The GEOS library provides topological operators and simple spatial constructs:
points, lines, polygons, and collections.
This package contains the main C++ library (ABI changes at every release).

%files -n %{libname}
%doc COPYING
%{_libdir}/libgeos.so.%{version}

#-----------------------------------------------------------------------------

%package -n %{libname_c}
Summary:	Libraries for GEOS
Group:		System/Libraries

%description -n %{libname_c}
The GEOS library provides topological operators and simple spatial constructs:
points, lines, polygons, and collections.
This package contains the always stable C-interface library.

%files -n %{libname_c}
%doc COPYING
%{_libdir}/libgeos_c.so.%{major_c}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the GEOS topology library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_c} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{sdevname}
%rename		%{name}-static-devel

%description -n %{devname}
The GEOS library provides topological operators and simple spatial constructs:
points, lines, polygons, and collections.
This package contains the headers and the libraries needed to build against
%{name}.

%files -n %{devname}
%doc COPYING NEWS README.md
%{_bindir}/%{name}-config
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/geos.pc
%{_libdir}/cmake/GEOS

#-----------------------------------------------------------------------------

%prep
%setup -q

# for install to _libdir
sed -i 's/DESTINATION lib/DESTINATION %{_lib}/g' CMakeLists.txt
sed -i 's/DESTINATION lib/DESTINATION %{_lib}/g' tools/CMakeLists.txt
sed -i 's|/lib|/%{_lib}|' tools/geos.pc.cmake

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12830 |21mr|geotiff-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	5
%define libname %mklibname geotiff %{major}
%define devname %mklibname geotiff -d

Summary:	Cartographic software
Name:		geotiff
Version:	1.7.0
Release:	1
Group:		Sciences/Geosciences
License:	MIT style
Url:		http://trac.osgeo.org/geotiff/
Source0:	http://download.osgeo.org/geotiff/libgeotiff/libgeotiff-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	jpeg-devel
BuildRequires:	proj-devel
BuildRequires:	tiff-devel >= 3.6.0
BuildRequires:	pkgconfig(proj)
BuildRequires:	pkgconfig(zlib)
Requires:	proj

%description
This library is designed to permit the extraction and parsing of the
"GeoTIFF" Key directories, as well as definition and installation
of GeoTIFF keys in new files.

%files
%doc %{_docdir}/%{name}
%{_mandir}/man1/*
%{_bindir}/geotifcp
%{_bindir}/listgeo
%{_bindir}/makegeo
%{_bindir}/applygeo*

#----------------------------------------------------------------

%package -n %{libname}
Summary:	Cartographic software - Libraries
Group:		Sciences/Geosciences

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%{_libdir}/libgeotiff.so.*

#----------------------------------------------------------------

%package -n %{devname}
Summary:	Cartographic software - Development files
Group:		Sciences/Geosciences
Requires:	%{libname} = %{version}
Provides:	geotiff-devel = %{version}-%{release}

%description -n %{devname}
libgeotiff development files.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/*
%{_datadir}/cmake/GeoTIFF

#----------------------------------------------------------------

%prep
%autosetup -p1 -n libgeotiff-%{version}

# fix wrongly encoded files from tarball
set +x
for f in `find . -type f` ; do
	if file $f | grep -q ISO-8859 ; then
		set -x
		iconv -f ISO-8859-1 -t UTF-8 $f > ${f}.tmp && \
		mv -f ${f}.tmp $f
		set +x
	fi
	if file $f | grep -q CRLF ; then
		set -x
		sed -i -e 's|\r||g' $f
		set +x
	fi
done
set -x

# for install to _libdir
sed -i 's|DESTINATION lib|DESTINATION %{_lib}|g' CMakeLists.txt
sed -i 's|DESTINATION doc|DESTINATION share/doc/%{name}|' CMakeLists.txt

%build
%cmake
%make_build

%install
%make_install -C build

# install pkgconfig file
cat > %{name}.pc <<EOF
prefix=%{_prefix}
exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}/%{name}

Name:	%{name}
Description:	GeoTIFF file format library
Version:	%{version}
Libs:	-L\${libdir} -lgeotiff
Cflags:	-I\${includedir}
EOF

mkdir -p %{buildroot}%{_libdir}/pkgconfig/
install -p -m 644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/

#clean up junks
rm -rf %{buildroot}%{_datadir}/*.csv
rm -rf %{buildroot}%{_libdir}/*.a

# generate docs
pushd docs
doxygen
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12831 |21mr|geronimo-annotation-1.0-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           geronimo-annotation
Version:        1.0
Release:        26
Summary:        Java EE: Annotation API v1.3
License:        ASL 2.0
URL:            http://geronimo.apache.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{name}_1.3_spec/%{version}/%{name}_1.3_spec-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.geronimo.specs:specs:pom:)

%description
This package defines the common annotations.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}_1.3_spec-%{version}

%pom_set_parent org.apache.geronimo.specs:specs:1.4

%mvn_alias : org.apache.geronimo.specs:geronimo-annotation_1.0_spec
%mvn_alias : org.apache.geronimo.specs:geronimo-annotation_1.1_spec
%mvn_alias : org.apache.geronimo.specs:geronimo-annotation_1.2_spec
%mvn_alias : javax.annotation:jsr250-api
%mvn_alias : org.eclipse.jetty.orbit:javax.annotation

%mvn_file : %{name} annotation

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12832 |21mr|geronimo-commonj-1.1.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 1.1
%global spec_name geronimo-commonj_%{spec_ver}_spec
Name:    geronimo-commonj
Version: 1.1.0
Release: 19
Summary: CommonJ Specification
License: ASL 2.0
URL:     http://geronimo.apache.org/
# svn export https://svn.apache.org/repos/asf/geronimo/specs/tags/specs-1.4/geronimo-commonj_1.1_spec geronimo-commonj-1.1.0
# tar cvfJ geronimo-commonj-1.1.0.tar.xz geronimo-commonj-1.1.0
Source:  %{name}-%{version}.tar.xz

# Remove the SNAPSHOT tag from the version in the POM file:
Patch0:  %{name}-version-fix.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires: geronimo-parent-poms
BuildRequires: maven-local

%description
Geronimo CommonJ Specification.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%patch0 -p0

%mvn_file :%{spec_name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12833 |21mr|geronimo-ejb-1.0-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           geronimo-ejb
Version:        1.0
Release:        23
Summary:        Java EE: EJB API v3.1
License:        ASL 2.0
URL:            http://geronimo.apache.org
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{name}_3.1_spec/%{version}/%{name}_3.1_spec-%{version}-source-release.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-annotation_1.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-interceptor_1.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jaxrpc_1.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-osgi-locator)
BuildRequires:  mvn(org.apache.geronimo.specs:specs:pom:)

%description
Contains the Enterprise JavaBeans classes and interfaces that define the
contracts between the enterprise bean and its clients and between the
enterprise bean and the EJB container.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}_3.1_spec-%{version}
sed -i 's/\r//' LICENSE
# Use parent pom files instead of unavailable 'genesis-java5-flava'
%pom_set_parent org.apache.geronimo.specs:specs:1.4

%mvn_alias : org.apache.geronimo.specs:geronimo-ejb_2.1_spec
%mvn_alias : org.apache.geronimo.specs:geronimo-ejb_3.0_spec
%mvn_alias : javax.ejb:ejb
%mvn_alias : javax.ejb:ejb-api

%mvn_file : %{name} ejb

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12834 |21mr|geronimo-interceptor-1.0.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 3.0
%global spec_name geronimo-interceptor_%{spec_ver}_spec

Name:             geronimo-interceptor
Version:          1.0.1
Release:          21
Summary:          Java EE: Interceptor API v3.0
License:          ASL 2.0
URL:              http://geronimo.apache.org/

# svn export http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-interceptor_3.0_spec-1.0.1/
# tar czf geronimo-interceptor_3.0_spec-1.0.1.tar.gz geronimo-interceptor_3.0_spec-1.0.1/
Source0:          %{spec_name}-%{version}.tar.gz
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    java-devel
BuildRequires:    jpackage-utils
BuildRequires:    maven-local
BuildRequires:    geronimo-parent-poms

Provides:         interceptor_api = %{spec_ver}

%description
Contains annotations and interfaces for defining interceptor methods,
interceptor classes and for binding interceptor classes to target classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{spec_name}-%{version}

%mvn_alias : org.apache.geronimo.specs:geronimo-interceptor_1.1_spec

%mvn_file : %{name} interceptor

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12835 |21mr|geronimo-jaspic-spec-1.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_version 1.0
%define pkg_name geronimo-jaspic_%{api_version}_spec
Name:          geronimo-jaspic-spec
Version:       1.1
Release:       19
Summary:       Java Authentication SPI for Containers
License:       ASL 2.0 and W3C
URL:           http://geronimo.apache.org/
Source0:       http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{pkg_name}/%{version}/%{pkg_name}-%{version}-source-release.tar.gz

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: java-devel
BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: geronimo-osgi-support
BuildRequires: geronimo-parent-poms
BuildRequires: jpackage-utils

Provides:      javax.security.auth.message

%description
Java Authentication Service Provider Interface for Containers (JSR-196) api.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.


%prep
%setup -q -n %{pkg_name}-%{version}

for d in LICENSE NOTICE ; do
  iconv -f iso8859-1 -t utf-8 $d > $d.conv && mv -f $d.conv $d
  sed -i 's/\r//' $d
done

%pom_xpath_remove "pom:parent"
%pom_xpath_inject "pom:project" "
    <parent>
      <groupId>org.apache.geronimo.specs</groupId>
      <artifactId>specs</artifactId>
      <version>any</version>
    </parent>"

%build
%mvn_file  : %{name}
%mvn_alias : org.eclipse.jetty.orbit:javax.security.auth.message
%mvn_build

%install
%mvn_install

install -d -m 755 %{buildroot}%{_javadir}/javax.security.auth.message/
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.security.auth.message/

%files -f .mfiles
%doc LICENSE NOTICE
%{_javadir}/javax.security.auth.message/

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12836 |21mr|geronimo-jaxrpc-2.1-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 1.1
%global spec_name geronimo-jaxrpc_%{spec_ver}_spec

Name:             geronimo-jaxrpc
Version:          2.1
Release:          25
Summary:          Java EE: Java API for XML Remote Procedure Call v1.1
License:          ASL 2.0 and W3C

URL:              http://geronimo.apache.org/
Source0:          http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{spec_name}/%{version}/%{spec_name}-%{version}-source-release.tar.gz
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    java-devel >= 1:1.6.0
BuildRequires:    jpackage-utils
BuildRequires:    maven-local
BuildRequires:    geronimo-parent-poms
BuildRequires:    maven-resources-plugin
BuildRequires:    saaj_api
BuildRequires:    geronimo-osgi-locator
BuildRequires:    glassfish-servlet-api
BuildRequires:    mvn(org.apache.geronimo.specs:geronimo-servlet_3.0_spec)
BuildRequires:    maven-surefire-provider-junit

Provides:         jaxrpc_api = %{spec_ver}

%description
This package contains the core JAX-RPC APIs for the client programming model.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{spec_name}-%{version}
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
sed -i 's/\r//' LICENSE NOTICE
# Use parent pom files instead of unavailable 'genesis-java5-flava'
%pom_set_parent org.apache.geronimo.specs:specs:1.4

%mvn_alias : javax.xml:jaxrpc-api
%mvn_file : %{name} jaxrpc

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12837 |21mr|geronimo-jcache-1.0-0.8.alpha.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 1.0
%global spec_name geronimo-jcache_%{spec_ver}_spec

%global namedreltag -alpha-1
%global namedversion %{version}%{?namedreltag}

Name:          geronimo-jcache
Version:       1.0
Release:       0.8.alpha.1
Summary:       Apache Geronimo JCache Spec 1.0
License:       ASL 2.0
URL:           http://geronimo.apache.org/
Source0:       http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{spec_name}/%{namedversion}/%{spec_name}-%{namedversion}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jcdi_1.0_spec)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Geronimo implementation of JSR-107.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{spec_name}-%{namedversion}

# org.apache.geronimo.genesis:genesis-java5-flava:2.2
%pom_remove_parent
%pom_add_parent org.apache.geronimo.specs:specs:1.4

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12838 |21mr|geronimo-jcdi-1.0-api-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 1.0
%global spec_name geronimo-jcdi_%{spec_ver}_spec
Name:          geronimo-jcdi-1.0-api
Version:       1.0
Release:       12
Summary:       Apache Geronimo Java Contexts and Dependency Injection (JSR-299) Spec API
License:       ASL 2.0
URL:           http://geronimo.apache.org/
Source0:       http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{spec_name}/%{version}/%{spec_name}-%{version}-source-release.tar.gz

BuildRequires: mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-annotation_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_2.2_spec)

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
# bundle-plugin requires
#BuildRequires: mvn(org.sonatype.aether:aether)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Geronimo implementation of the JSR-299 Context and
Dependency Injection for the Java EE Platform.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{spec_name}-%{version}

%pom_xpath_set "pom:project/pom:parent/pom:groupId" org.apache.geronimo.specs
%pom_xpath_set "pom:project/pom:parent/pom:artifactId" specs
%pom_xpath_set "pom:project/pom:parent/pom:version" 1.4
%pom_xpath_inject "pom:project/pom:parent" "<relativePath>../pom.xml</relativePath>"

%pom_remove_dep org.apache.geronimo.specs:geronimo-el_2.2_spec
%pom_add_dep org.jboss.spec.javax.el:jboss-el-api_2.2_spec::provided

%pom_remove_dep org.apache.geronimo.specs:geronimo-atinject_1.0_spec
%pom_add_dep javax.inject:javax.inject::provided

%pom_remove_dep org.apache.geronimo.specs:geronimo-interceptor_1.1_spec
%pom_add_dep org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.1_spec::provided

for s in src/main/java/javax/enterprise/inject/spi/BeanManager.java \
  src/main/java/javax/enterprise/context/RequestScoped.java \
  src/main/java/javax/enterprise/context/spi/Context.java \
  src/main/java/javax/enterprise/util/AnnotationLiteral.java; do
 native2ascii -encoding UTF8 ${s} ${s}
done

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12839 |21mr|geronimo-jcdi-1.1-api-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 1.1
%global spec_name geronimo-jcdi_%{spec_ver}_spec

%global namedreltag %nil
%global namedversion %{version}%{?namedreltag}

Name:          geronimo-jcdi-1.1-api
Version:       1.0
Release:       7
Summary:       Apache Geronimo JCDI Spec 1.1
License:       ASL 2.0
URL:           http://geronimo.apache.org/
Source0:       http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{spec_name}/%{namedversion}/%{spec_name}-%{namedversion}-source-release.zip

BuildRequires: maven-local
BuildRequires: mvn(javax.el:javax.el-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:specs-parent:pom:)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-annotation_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Geronimo implementation of the JSR-346 Context and
Dependency Injection 1.1 and 1.2 Specification.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{spec_name}-%{namedversion}

# org.apache.geronimo.genesis:genesis-java5-flava:2.2
%pom_remove_parent
%pom_add_parent org.apache.geronimo.specs:specs-parent:1.6

%pom_change_dep org.apache.geronimo.specs:geronimo-el_2.2_spec javax.el:javax.el-api:3.0.0
%pom_change_dep :geronimo-interceptor_1.1_spec org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec:1.0.0.Final
%pom_change_dep :geronimo-atinject_1.0_spec javax.inject:javax.inject:1

sed -i 's,${artifactId},${project.artifactId},;s,${version},${project.version},' pom.xml

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12840 |21mr|geronimo-jcdi-2.0-api-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global src_name geronimo-jcdi_2.0_spec

Summary:	Apache Geronimo JCDI Spec 2.0
Name:		geronimo-jcdi-2.0-api
Version:	1.2
Release:	1
License:	Apache License 2.0
Group:		Development/Java
Url:		http://download.nust.na/pub2/apache/geronimo/specs/
Source0:	http://download.nust.na/pub2/apache/geronimo/specs/%{src_name}-%{version}-source-release.zip
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-annotation_1.1_spec)
BuildRequires:  mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.el:jboss-el-api_2.2_spec)
BuildRequires:  maven-local
BuildRequires:  maven-plugin-bundle

%description
Apache Geronimo JCDI Spec 2.0

%files          -f .mfiles
%doc LICENSE NOTICE

#------------------------------------------------------------------

%package       javadoc
Summary:       Javadoc for %{name}

%description   javadoc
This package contains javadoc for %{name}.

%files         javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE

#------------------------------------------------------------------

%prep
%setup -qn %{src_name}-%{version}

# fix parent pom
%pom_xpath_set "pom:project/pom:parent/pom:groupId" org.apache.geronimo.specs
%pom_xpath_set "pom:project/pom:parent/pom:artifactId" specs
%pom_xpath_set "pom:project/pom:parent/pom:version" 1.2

# fix dependencies 
%pom_remove_dep org.apache.geronimo.specs:geronimo-el_2.2_spec
%pom_add_dep org.jboss.spec.javax.el:jboss-el-api_2.2_spec::provided

%pom_remove_dep org.apache.geronimo.specs:geronimo-atinject_1.0_spec
%pom_add_dep javax.inject:javax.inject::provided

%pom_remove_dep org.apache.geronimo.specs:geronimo-interceptor_1.2_spec
%pom_add_dep org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec::provided

sed -i 's,${artifactId},${project.artifactId},;s,${version},${project.version},' pom.xml

%build
%mvn_build -- -Dfile.encoding=UTF8

%install
%mvn_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12841 |21mr|geronimo-jms-1.1.1-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_name geronimo-jms_1.1_spec

Name:           geronimo-jms
Version:        1.1.1
Release:        28
Summary:        J2EE JMS v1.1 API
License:        ASL 2.0
URL:            http://geronimo.apache.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export http://svn.apache.org/repos/asf/geronimo/specs/tags/%{spec_name}-%{version}/
Source0:        %{spec_name}-%{version}.tar.bz

# Remove unavailable dependencies
Patch0:         geronimo-jms-1.1-api-remove-mockobjects.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.geronimo.specs:specs:pom:)

%description
The Java Message Service (JMS) API is a messaging standard that allows
application components based on the Java 2 Platform, Enterprise Edition
(J2EE) to create, send, receive, and read messages. It enables distributed
communication that is loosely coupled, reliable, and asynchronous.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -n %{spec_name}-%{version}
%patch0 -p1

%mvn_file  : %{name} %{spec_name} jms
%mvn_alias : javax.jms:jms

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12842 |21mr|geronimo-jpa-1.1.1-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 3.0
%global spec_name geronimo-jpa_%{spec_ver}_spec

Name:           geronimo-jpa
Version:        1.1.1
Release:        24
Summary:        Java persistence API implementation
Group:          Development/Java
License:        ASL 2.0
URL:            http://geronimo.apache.org/
# Unfortunately no source release was created in
# http://repo2.maven.org/maven2/org/apache/geronimo/specs/geronimo-jpa_3.0_spec/1.1.1/
# so we do:
# svn export http://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-jpa_3.0_spec-1.1.1
# tar caf geronimo-jpa_3.0_spec-1.1.1.tar.xz geronimo-jpa_3.0_spec-1.1.1
Source0:       %{spec_name}-%{version}.tar.xz

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.geronimo.specs:specs:pom:)

Provides:       jpa_api = %{spec_ver}
Provides:       javax.persistence = %{spec_ver}


%description
The Java Persistence API is a new programming model under EJB 3.0
specification (JSR220) for the management of persistence and
object/relational mapping with Java EE and Java SE. Geronimo JPA is
one implementation of this specification.


%package javadoc
Summary:   API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{spec_name}-%{version}

%build
%mvn_file  : %{name}/%{name} %{name} jpa
%mvn_alias : javax.persistence:persistence-api
%mvn_build

%install
%mvn_install

install -d -m 755 %{buildroot}%{_javadir}/javax.persistence/
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.persistence/

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt
%{_javadir}/javax.persistence/

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12843 |21mr|geronimo-jta-1.1.1-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_name geronimo-jta_1.1_spec

Name:		geronimo-jta
Version:	1.1.1
Release:	26
Summary:	J2EE JTA v1.1 API
License:	ASL 2.0
URL:		http://geronimo.apache.org/
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export http://svn.apache.org/repos/asf/geronimo/specs/tags/%{spec_name}-%{version}/
Source0:	%{spec_name}-%{version}.tar.bz

# This pulls in almost all of the required java and maven stuff
BuildRequires:  maven-local
BuildRequires:	geronimo-parent-poms
BuildRequires:	maven-resources-plugin

# Ensure a smooth transition from geronimo-specs
Provides:	jta = %{version}-%{release}

%description
Java Transaction API (JTA) specifies standard Java interfaces between a
transaction manager and the parties involved in a distributed transaction
system: the resource manager, the application server, and the transactional
applications.

%package javadoc
Summary:	API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{spec_name}-%{version}


%build
%mvn_file  : %{name} %{spec_name} jta
%mvn_alias : javax.transaction:jta
%mvn_alias : org.eclipse.jetty.orbit:javax.transaction
%mvn_build -f

%install
%mvn_install

%pre javadoc
# workaround for rpm bug, can be removed in F-20
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12844 |21mr|geronimo-osgi-support-1.0-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global registry geronimo-osgi-registry
%global locator geronimo-osgi-locator

Name:             geronimo-osgi-support
Version:          1.0
Release:          24
Summary:          OSGI spec bundle support
License:          ASL 2.0 and W3C
Group:          Development/Java
URL:              http://geronimo.apache.org/

Source0:          http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{name}/%{version}/%{name}-%{version}-source-release.tar.gz
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    java-devel >= 1:1.6.0
BuildRequires:    jpackage-utils
BuildRequires:    maven-local
BuildRequires:    felix-osgi-core
BuildRequires:    felix-osgi-compendium
BuildRequires:    geronimo-parent-poms
BuildRequires:    maven-resources-plugin


Provides:         geronimo-osgi-locator = %{version}-%{release}
Provides:         geronimo-osgi-registry = %{version}-%{release}

%description
This project is a set of bundles and integration tests for implementing
OSGi-specific lookup in the Geronimo spec projects.


%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
sed -i 's/\r//' LICENSE NOTICE
# Use parent pom files instead of unavailable 'genesis-java5-flava'
%pom_set_parent org.apache.geronimo.specs:specs:1.4

# Remove itests due to unavailable dependencies
%pom_disable_module geronimo-osgi-itesta
%pom_disable_module geronimo-osgi-itestb
%pom_disable_module geronimo-osgi-registry-itests
%pom_disable_module geronimo-osgi-locator-itests

%pom_xpath_inject "pom:plugin[pom:artifactId[text()='maven-bundle-plugin']]
                       /pom:configuration/pom:instructions" "
    <Export-Package>!*</Export-Package>" geronimo-osgi-locator

# preserve compatibility locations for jars
%mvn_file ':{*}' @1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12845 |21mr|geronimo-parent-poms-1.6-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           geronimo-parent-poms
Version:        1.6
Release:        28
Summary:        Parent POM files for geronimo-specs
License:        ASL 2.0
URL:            http://geronimo.apache.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Following the parent chain all the way up ...
Source0:        http://svn.apache.org/repos/asf/geronimo/specs/tags/specs-parent-%{version}/pom.xml
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

# Dependencies and plugins from the POM files
Provides:       geronimo-specs = %{version}-%{release}

%description
The Project Object Model files for the geronimo-specs modules.

%prep
%setup -c -T
cp -p %{SOURCE0} .
cp -p %{SOURCE1} LICENSE
%pom_remove_parent
# IDEA plugin is not really useful in Fedora
%pom_remove_plugin :maven-idea-plugin
%mvn_alias : org.apache.geronimo.specs:specs

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12846 |21mr|geronimo-saaj-1.1-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 1.3
%global spec_name geronimo-saaj_%{spec_ver}_spec

Name:             geronimo-saaj
Version:          1.1
Release:          23
Summary:          Java EE: SOAP with Attachments API Package v1.3
License:          ASL 2.0 and W3C

URL:              http://geronimo.apache.org/
Source0:          http://repo2.maven.org/maven2/org/apache/geronimo/specs/%{spec_name}/%{version}/%{spec_name}-%{version}-source-release.tar.gz
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    java-devel >= 1:1.6.0
BuildRequires:    jpackage-utils
BuildRequires:    maven-local
BuildRequires:    geronimo-parent-poms
BuildRequires:    maven-resources-plugin
BuildRequires:    geronimo-osgi-locator

Provides:         saaj_api = %{spec_ver}


%description
Provides the API for creating and building SOAP messages.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{spec_name}-%{version}
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
sed -i 's/\r//' LICENSE NOTICE
# Use parent pom files instead of unavailable 'genesis-java5-flava'
%pom_set_parent org.apache.geronimo.specs:specs:1.4
%pom_remove_dep :geronimo-activation_1.1_spec

%mvn_alias : org.apache.geronimo.specs:geronimo-saaj_1.1_spec
%mvn_alias : javax.xml.soap:saaj-api

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12847 |21mr|geronimo-txmanager-3.1.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          geronimo-txmanager
Version:       3.1.3
Release:       8
Summary:       Geronimo Transaction Manager
License:       ASL 2.0
URL:           http://geronimo.apache.org/
Source0:       https://github.com/apache/geronimo-txmanager/archive/%{name}-parent-%{version}.tar.gz

BuildRequires: apache-resource-bundles
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-validation_1.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires: mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec)
BuildRequires: mvn(org.objectweb.howl:howl)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Inbound and outbound connections in Geronimo are managed through the
J2CA connector framework. This covers JDBC, JMS, DataSources,
EIS connectivity, and connection pools. JDBC connectivity is implemented by
wrapping JDBC XADataSource, ConnectionPoolDataSource, DataSource,
or Driver implementations in J2CA connector wrappers.

%package -n geronimo-connector
Summary:       Geronimo TxManager :: Connector

%description -n geronimo-connector
Geronimo J2CA Connector Framework.

%package -n geronimo-transaction
Summary:       Geronimo TxManager :: Transaction

%description -n geronimo-transaction
Geronimo Transaction Manager.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-parent-%{version}
# Fix parent pom
# org.apache.geronimo.genesis:genesis-java5-flava:2.0
%pom_remove_parent
%pom_add_parent org.apache.geronimo.specs:specs:1.4

%pom_change_dep -r :geronimo-j2ee-connector_1.6_spec org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec:1.0.0.Final

# these tests fails with NullPointerException
rm -r geronimo-connector/src/test/java/org/apache/geronimo/connector/outbound/AbstractSinglePoolTest.java \
  geronimo-connector/src/test/java/org/apache/geronimo/connector/outbound/SinglePoolTest.java \
  geronimo-connector/src/test/java/org/apache/geronimo/connector/outbound/SinglePoolMatchAllTest.java

%mvn_file :geronimo-connector geronimo-connector
%mvn_file :geronimo-transaction geronimo-transaction

%mvn_package :geronimo-connector::tests: geronimo-connector

%build

%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}-parent
%license LICENSE NOTICE

%files -n geronimo-connector -f .mfiles-geronimo-connector
%license LICENSE NOTICE

%files -n geronimo-transaction -f .mfiles-geronimo-transaction
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12848 |21mr|geronimo-validation-1.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global spec_ver 1.0
%global spec_name geronimo-validation_%{spec_ver}_spec

Name:           geronimo-validation
Version:        1.1
Release:        21
Summary:        Geronimo implementation of JSR 303
License:        ASL 2.0
# should be http://geronimo.apache.org/
URL:            http://apache.org/
# svn export https://svn.apache.org/repos/asf/geronimo/specs/tags/geronimo-validation_1.0_spec-1.1/
# tar caf geronimo-validation_1.0_spec-1.1.tar.xz geronimo-validation_1.0_spec-1.1
Source0:        %{spec_name}-%{version}.tar.xz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  geronimo-parent-poms
BuildRequires:  geronimo-osgi-support

%description
This is the Geronimo implementation of JSR-303, the Bean
Validation API specification.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{spec_name}-%{version}
%pom_xpath_set "pom:project/pom:parent/pom:groupId" org.apache.geronimo.specs
%pom_xpath_set "pom:project/pom:parent/pom:artifactId" specs
%pom_xpath_set "pom:project/pom:parent/pom:version" 1.4
%pom_xpath_inject "pom:project/pom:parent" "<relativePath>../pom.xml</relativePath>"
%pom_xpath_set "pom:project/pom:packaging" jar

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12849 |21mr|getfem++-5.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Debug package is empty
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define	major	5
%define	libname	%mklibname getfem %{major}
%define	devname	%mklibname getfem -d

Summary:	Generic and efficient C++ library for finite element methods
Name:		getfem++
Version:	5.4.1
Release:	1
Url:		http://home.gna.org/getfem/
License:	LGPLv2+
Group:		Development/C++
Source0:	http://download.gna.org/getfem/stable/getfem-%{version}.tar.gz
Patch0:		getfem-5.4.1-aarch64-buildfix.patch
BuildRequires:	boost-devel
BuildRequires:	metis-devel
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(muparser)

%description
The Getfem++ project focuses on the development of a generic and efficient
C++ library for finite element methods. The goal is to provide a library
allowing the computation of any elementary matrix (even for mixed finite
element methods) on the largest class of methods and elements, and for
arbitrary dimension (i.e. not only 2D and 3D problems).

%files
%doc README COPYING
%{_prefix}/getfem_toolbox

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for gupnp
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libgetfem.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_bindir}/getfem-config
%{_libdir}/libgetfem.so
%{_includedir}/gmm
%{_includedir}/getfem

#--------------------------------------------------------------------

%prep
%setup -qn getfem-%{version}
%autopatch -p1

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CC=gcc
export CXX=g++
%configure \
	--enable-shared \
	--enable-boost \
	--enable-muparser \
	--disable-python
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12850 |21mr|gettext-0.21-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define intl_major 8
%define major 0
%define libintl %mklibname intl %{intl_major}
%define libasprintf %mklibname asprintf %{major}
%define libgettextpo %mklibname gettextpo %{major}
%define libgettextmisc %mklibname gettextmisc
%define libtextstyle %mklibname textstyle %{major}

%global _disable_rebuild_configure 1

%bcond_with check
%bcond_with csharp
%bcond_with java
%{?build_emacs}%{?!build_emacs:%bcond_without emacs}

Summary:	GNU libraries and utilities for producing multi-lingual messages
Name:		gettext
Version:	0.21
Release:	4
License:	GPLv3+ and LGPLv2.1+
Group:		System/Internationalization
Url:		http://www.gnu.org/software/gettext/
Source0:	ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.xz
Source2:	po-mode-init.el
# Missing in 0.19.1 tarball
Source3:	git-version-gen
Source100:	%{name}.rpmlintrc
# KDE example comes from 2003, it's really useless now
Patch0:		gettext-0.19.1-drop-kde-example.patch
Patch1:		gettext-0.19.7-stdio-gets.patch

BuildRequires:	bison
BuildRequires:	chrpath
%if %{with emacs}
BuildRequires:	emacs-nox
%endif
BuildRequires:	flex
BuildRequires:	texinfo
BuildRequires:	acl-devel
BuildRequires:	gomp-devel
BuildRequires:	libunistring-devel
BuildRequires:	pkgconfig(libcroco-0.6)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(libxml-2.0)
%if %{with check}
# test suite
BuildRequires:	locales-fa
BuildRequires:	locales-fr
BuildRequires:	locales-ja
BuildRequires:	locales-zh
%endif
%if %{with csharp}
# (Abel) we pick mono here, though pnet can be used as well.
BuildRequires:	mono
%endif
%if %{with java}
BuildRequires:	eclipse-ecj
BuildRequires:	gcc-java
BuildRequires:	gcj-tools
BuildRequires:	fastjar
%endif

Requires:	%{name}-base = %{version}-%{release}
Requires:	%{libgettextmisc} = %{version}-%{release}
# xgettext will dlopen() it when extracting strings from glade files
Requires:	%mklibname expat 1

%description
The GNU gettext package provides a set of tools and documentation for producing
multi-lingual messages in programs. Tools include a set of conventions about
how programs should be written to support message catalogs, a directory and
file naming organization for the message catalogs, a runtime library which
supports the retrieval of translated messages, and stand-alone programs for
handling the translatable and the already translated strings. Gettext provides
an easy to use library and tools for creating, using, and modifying natural
language catalogs and is a powerful and simple method for internationalizing
programs.

If you would like to internationalize or incorporate multi-lingual messages
into programs that you're developing, you should install gettext.

%files
%doc AUTHORS README COPYING gettext-runtime/ABOUT-NLS gettext-runtime/BUGS NEWS THANKS
%if %{with emacs}
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*.el
%endif
%{_bindir}/envsubst
%{_bindir}/gettext.sh
%{_bindir}/msg*
%{_bindir}/recode-sr-latin
%{_bindir}/xgettext
%dir %{_datadir}/gettext
%{_datadir}/%{name}/msgunfmt.tcl
%{_datadir}/%{name}/projects
%{_datadir}/%{name}/javaversion.class
%{_datadir}/%{name}/styles
%{_datadir}/%{name}-*/its/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/cldr-plurals
%{_libdir}/%{name}/hostname
%{_libdir}/%{name}/project-id
%{_libdir}/%{name}/urlget
%{_libdir}/%{name}/user-email
%if %{with java}
%exclude %{_libdir}/%{name}/gnu.gettext.*
%endif
%{_infodir}/gettext.*
%if %{with emacs}
%{_datadir}/emacs/site-lisp/*.el*
%endif
%{_mandir}/man1/envsubst.*
%{_mandir}/man1/msg*
%{_mandir}/man1/xgettext.*
%{_mandir}/man1/recode-sr-latin.*

#----------------------------------------------------------------------------

%package -n %{libintl}
Summary:	Basic libintl library for internationalization
Group:		System/Libraries
License:	LGPLv2.1+
Provides:	libintl = %{EVRD}

%description -n %{libintl}
This package contains the libintl library, which is important for
system internationalization.

%files -n %{libintl}
/%{_lib}/libintl.so.%{intl_major}*

#----------------------------------------------------------------------------

%package -n %{libasprintf}
Summary:	%{name} libasprintf needed by %{name} utilities
Group:		System/Libraries
License:	LGPLv2.1+
Conflicts:	%{_lib}gettextmisc < 0.18.1.1-4

%description -n %{libasprintf}
This package contains libasprintf shared library.

%files -n %{libasprintf}
%{_libdir}/libasprintf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgettextpo}
Summary:	%{name} libgettextpo needed by %{name} utilities
Group:		System/Libraries
License:	LGPLv2.1+
Conflicts:	%{_lib}gettextmisc < 0.18.1.1-4

%description -n %{libgettextpo}
This package contains libgettextpo shared library.

%files -n %{libgettextpo}
%{_libdir}/libgettextpo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgettextmisc}
Summary:	Other %{name} libraries needed by %{name} utilities
Group:		System/Libraries
License:	LGPLv2.1+

%description -n %{libgettextmisc}
This package contains all other libraries used by %{name} utilities,
and are not very widely used outside %{name}.

%files -n %{libgettextmisc}
%{_libdir}/libgettextlib-*.so
%{_libdir}/libgettextsrc-*.so

#----------------------------------------------------------------------------

%package -n	%{libtextstyle}
Summary:	%{name} libtextstyle needed by %{name} utilities
Group:		System/Libraries
License:	LGPL

%description -n	%{libtextstyle}
This package contains libtextstyle shared library.

%files -n %{libtextstyle}
%{_libdir}/libtextstyle.so.%{major}*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C
License:	LGPLv2.1+
Requires:	%{name} = %{EVRD}
Requires:	%{libgettextpo} = %{EVRD}
Requires:	%{libasprintf} = %{EVRD}
Requires:	%{libgettextmisc} = %{EVRD}
Requires:	%{libintl} = %{EVRD}
# fwang: autopoint requires cvs to work
Requires:	cvs

%description devel
This package contains all development related files necessary for
developing or compiling applications/libraries that needs
internationalization capability. You also need this package if you
want to add gettext support for your project.

%files devel
%doc gettext-runtime/man/*.3.html examples htmldoc
%doc %{_docdir}/libtextstyle
%{_bindir}/autopoint
%{_bindir}/gettextize
%{_datadir}/%{name}/ABOUT-NLS
%{_datadir}/%{name}/archive*
%{_datadir}/%{name}/config.rpath
%{_datadir}/%{name}/*.h
%{_datadir}/%{name}/po
%{_datadir}/aclocal/*
%{_includedir}/*
%{_infodir}/autosprintf*
%{_infodir}/libtextstyle*
# "lib*.so" cannot be used (it should be 'lib[^\.]*\.so' regexp in fact
# but using regexp is not possible here; so we list all files manually
%{_libdir}/libasprintf.so
%{_libdir}/libgettextlib.so
%{_libdir}/libgettextpo.so
%{_libdir}/libgettextsrc.so
%{_libdir}/libintl.so
%{_libdir}/libtextstyle.so
%{_mandir}/man1/autopoint.*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package base
Summary:	Basic binary for showing translation of textual messages
Group:		System/Internationalization
Requires:	%{libintl} = %{EVRD}

%description base
This package contains the basic binary from %{name}. It is splitted from
%{name} because initscript need it to show translated boot messages.

%files base -f %{name}.lang
%doc gettext-runtime/man/*.1.html
%doc gettext-runtime/intl/COPYING*
/bin/gettext
%{_bindir}/gettext
%{_bindir}/ngettext
%{_mandir}/man1/gettext*
%{_mandir}/man1/ngettext*

#----------------------------------------------------------------------------

%if %{with java}
%package java
Summary:	Java binding for GNU gettext
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}

%description java
This package contains class file that implements the main GNU libintl
functions in Java. This allows compiling GNU gettext message catalogs
into Java ResourceBundle classes.

%files java
%doc gettext-runtime/intl-java/javadoc*
%{_libdir}/%{name}/gnu.gettext.*
%{_datadir}/%{name}/*.jar
%endif

#----------------------------------------------------------------------------

%if %{with csharp}
%package csharp
Summary:	C# binding for GNU gettext
Group:		System/Internationalization
Requires:	mono
Requires:	%{name} = %{EVRD}

%description csharp
This package contains class file that implements the main GNU libintl
functions in C#. This allows compiling GNU gettext message catalogs
into C# dll or resource files.

%files csharp
%doc gettext-runtime/intl-csharp/csharpdoc/*
%{_libdir}/*.dll
%{_libdir}/gettext/*.exe
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
install -m 755 %{SOURCE3} build-aux/

%build
#autoreconf -fi
%if %{with java}
export GCJ="%{_bindir}/gcj"
export JAVAC="%{_bindir}/gcj -C"
export JAR="%{_bindir}/fastjar"
%endif

for i in `find -name configure|sort`
do
pushd `dirname $i`
CONFIGURE_TOP=. \
%configure \
	--disable-option-checking \
	--disable-static \
	--disable-rpath \
	--enable-shared \
	--with-included-gettext \
%if %{with csharp}
	--enable-csharp=mono \
%else
	--disable-csharp \
%endif
%if ! %{with java}
	--disable-java
%endif

popd
done

%make

%if %{with check}
%check
export JAVAC=ecj
LC_ALL=C make check
%endif

%install
%makeinstall_std

# remove unwanted files
rm -f %{buildroot}%{_includedir}/libintl.h \
	%{buildroot}%{_datadir}/locale/locale.alias
rm -f gettext-runtime/intl-java/javadoc2/package-list

%if %{with emacs}
install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el
%endif

# remove non-standard lc directories
for i in en@boldquot en@quot ; do rm -rf %{buildroot}/%{_datadir}/locale/$i; done

# move installed doc back to %%doc
rm -rf htmldoc examples
mkdir htmldoc
for i in gettext-runtime/man/*.html; do
	rm -f %{buildroot}%{_datadir}/doc/gettext/`basename $i`
done
rm -rf %{buildroot}%{_datadir}/doc/gettext/javadoc*
mv %{buildroot}%{_datadir}/doc/gettext/* %{buildroot}/%{_datadir}/doc/libasprintf/* htmldoc
mv htmldoc/examples examples

# move crucial stuff to /lib and /bin
pushd %{buildroot}
mkdir -p bin
mkdir -p ./%{_lib}
mv usr/bin/gettext bin/
ln -s ../../bin/gettext usr/bin/gettext
mv .%{_libdir}/libintl.so.* ./%{_lib}/
rm -f .%{_libdir}/libintl.so
# if major changed, then package build will fail, which is a GOOD THING.
# this prevents mindless packaging.
[ -f %{_lib}/libintl.so.%{intl_major} ] && \
	ln -s ../../%{_lib}/libintl.so.%{intl_major} .%{_libdir}/libintl.so

chmod 755 ./%{_lib}/libintl.so.%{intl_major}
popd

# remove java stuff, otherwise rpm complains
%if !%{with java}
rm -f %{buildroot}%{_libdir}/%{name}/gnu.gettext.* \
	%{buildroot}%{_datadir}/%{name}/*.jar
%endif

# cleanup rpaths
for i in %{buildroot}%{_bindir}/* `find %{buildroot}%{_libdir} -type f`; do
	if file $i | grep "ELF 64-bit" >/dev/null; then
	chrpath -l $i && chrpath --delete $i
	fi
done

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12851 |21mr|gflags-2.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		major	2.2
%define		libname	%mklibname %{name} %{major}
%define		devel	%mklibname %{name} -d

Name:		gflags
Version:	2.2.2
Release:	2
Summary:	A C++ library that implements commandline flags processing
Group:		Development/C++
License:	BSD
URL:		https://gflags.github.io/gflags/
Source0:	https://github.com/gflags/gflags/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1:		gflags-fix-pkg-path.patch

BuildRequires:	cmake

%description
The gflags package contains a C++ library that implements commandline flags
processing. It includes built-in support for standard types such as string
and the ability to define flags in the source file in which they are used.

%package -n	%{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}%{name}2 < 2.2.1-2

%description -n	%{libname}
Libraries for %{name}

%package -n	%{devel}
Summary:	Development files for %{name}
Group:		Development/C++
Conflicts:	%{name} < 2.2.1-2
Conflicts:	%{_lib}%{name}2 < 2.2.1-2
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devel}
Development files for %{name}

%prep
%autosetup -p1

%build
%cmake \
	-DBUILD_gflags_LIBS:BOOL=ON \
	-DINSTALL_HEADERS:BOOL=ON
%make_build

%install
%make_install -C build

# Delete file in $HOME
%{__rm} -rf %{buildroot}/${HOME}/.cmake/packages/%{name}

%files
%doc README.md ChangeLog.txt doc/
%{_bindir}/%{name}_completions.sh

%files -n	%{devel}
%{_libdir}/libgflags.so
%{_libdir}/libgflags_nothreads.so
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}/

%files -n	%{libname}
%{_libdir}/libgflags_nothreads.so.%{major}
%{_libdir}/libgflags_nothreads.so.%{version}
%{_libdir}/libgflags.so.%{major}
%{_libdir}/libgflags.so.%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12852 |21mr|gfs2-utils-3.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities for managing the global file system (GFS2)
Name:		gfs2-utils
Version:	3.4.1
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		System/Kernel and hardware
Url:		https://pagure.io/gfs2-utils
Source0:	https://releases.pagure.org/gfs2-utils/gfs2-utils-%{version}.tar.gz
Patch0:		bz1326508-gfs2_5_Clarify_the_availability_of_the_loccookie_option.patch
Patch2:		bz1440269-1-mkfs_gfs2_Free_unnecessary_cached_pages_disable_readahead.patch
Patch3:		gfs2-utils-glibc2.36.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	gettext-devel
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)

%description
The gfs2-utils package contains a number of utilities for creating,
checking, modifying, and correcting any inconsistencies in GFS2
file systems.

%files
%doc README.md doc/COPYING.* doc/COPYRIGHT doc/*.txt doc/README.*
%{_sbindir}/*gfs2
%{_sbindir}/gfs2_*
%{_sbindir}/glocktop
%{_libexecdir}/gfs2_withdraw_helper
%{_mandir}/man8/*gfs2*
%{_mandir}/man8/glocktop*
%{_mandir}/man5/*
%{_prefix}/lib/udev/rules.d/82-gfs2-withdraw.rules

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
export LIBS="$LIBS -luuid"
%configure
%make

%install
%makeinstall_std -C gfs2 DESTDIR=%{buildroot}
# Don't ship gfs2_{trace,lockcapture} in this package
rm -f %{buildroot}/usr/sbin/gfs2_trace
rm -f %{buildroot}/usr/sbin/gfs2_lockcapture
rm -f %{buildroot}%{_mandir}/man8/gfs2_trace.8
rm -f %{buildroot}%{_mandir}/man8/gfs2_lockcapture.8

%check
#make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12853 |21mr|gfxboot-4.5.79-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools to create graphical boot logos
Name:		gfxboot
Version:	4.5.79
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://en.opensuse.org/
Source0:	https://github.com/openSUSE/gfxboot/archive/%{version}.tar.gz?/%{name}-%{version}.tar.xz
BuildRequires:	lynx
BuildRequires:	nasm
BuildRequires:	xmlto
BuildRequires:	sed
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-dtd412-xml
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(x11)
ExclusiveArch:	%{ix86} x86_64

%description
gfxboot provides tools to create graphical boot logos, for grub, lilo
and syslinux. It supports arch-specific boot menus, advanced help
menus, multiple keymaps, animated images, and more graphical pretty
things.

%files
%{_sbindir}/gfxboot
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%package devel
Summary:	Tools for creating a graphical boot logo
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}
Requires:	master-boot-code
Requires:	qemu

%description devel
Here you find the necessary programs to create your own graphical boot
logo. The logo can be used with grub, lilo or syslinux.

%files devel
%{_bindir}/gfxboot-compile
%{_bindir}/gfxboot-font
%{_bindir}/gfxboot-adddir
%{_bindir}/gfxboot-keymapchars
%{_bindir}/gfxboot-test
%doc doc/gfxboot.txt
%doc doc/gfxboot.html

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export SUSE_ASNEEDED=0
%make
%make doc

%install
%makeinstall_std THEMES=""
install -d -m 755 %{buildroot}%{_mandir}/man8
install -m 644 doc/gfxboot.8 %{buildroot}%{_mandir}/man8

# gfxboot-compile is used to build as non-root, move it out of /usr/sbin
install -d %{buildroot}%{_bindir}
# add adddir and keymapchars since they are used in mandriva-gfxboot-theme
# build system
cp %{_builddir}/%{name}-%{version}/bin/adddir %{buildroot}%{_bindir}/gfxboot-adddir
cp %{_builddir}/%{name}-%{version}/bin/keymapchars %{buildroot}%{_bindir}/gfxboot-keymapchars
mv %{buildroot}%{_sbindir}/gfxboot-compile %{buildroot}%{_bindir}/gfxboot-compile
mv %{buildroot}%{_sbindir}/gfxboot-font %{buildroot}%{_bindir}/gfxboot-font
mv %{buildroot}%{_sbindir}/gfxtest %{buildroot}%{_bindir}/gfxboot-test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12854 |21mr|gherkin2-java-2.12.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          gherkin2-java
Version:       2.12.2
Release:       9
Summary:       Pure Java Gherkin language
# Source files without license headers https://github.com/cucumber/gherkin2/issues/348
License:       MIT
# Newer release available @ https://github.com/cucumber/gherkin-java
URL:           https://github.com/cucumber/gherkin2
Source0:       https://github.com/cucumber/gherkin2/archive/v%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.gson:gson)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.iharder:base64)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
# Explicit requires for javapackages-tools since gherkin2-script
# uses /usr/share/java-utils/java-functions
Requires:      javapackages-tools

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A fast lexer and parser for the Gherkin language based on Ragel.
Gherkin is two things:

° The language that has evolved out of the Cucumber project.
° This library.

Supported platforms:
° Pure Java

%package javadoc
Summary:       Javadoc for Gherkin Java

%description javadoc
This package contains javadoc for Gherkin Java.

%prep
%setup -q -n gherkin2-%{version}
# Cleanup
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete
find . -name "*.dll" -print -delete
find . -name "*.exe" -print -delete
find . -name "*.rb" -print -delete
rm -r ikvm js tasks *.sh

# Unwanted tasks
%pom_remove_plugin :maven-gpg-plugin java
%pom_remove_plugin :maven-site-plugin java
%pom_remove_plugin :maven-source-plugin java
# org.apache.maven.wagon:wagon-ssh:2.3
%pom_xpath_remove pom:build/pom:extensions java
# Disable shaded libraries*
%pom_remove_plugin :maven-shade-plugin java
# Disable repackage Gherkin jar (use org.jruby:jruby-complete:1.7.2)
%pom_remove_plugin :maven-antrun-plugin java

# Use system libraries*
%pom_remove_dep info.cukes:gherkin-jvm-deps java
%pom_add_dep com.google.code.gson:gson java
%pom_add_dep net.iharder:base64 java
find ./ -name "*.java" -exec sed -i "s/gherkin.deps.//g" {} +

# Newer release have different gId
%mvn_file info.cukes:gherkin gherkin2

%build

%mvn_build -- -f java/pom.xml

%install
%mvn_install

%jpackage_script gherkin.Main "" "" gherkin2:google-gson:base64 gherkin2 true

%files -f .mfiles
%{_bindir}/*
%doc History.md README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12855 |21mr|ghex-42.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} |cut -d. -f1)

%define api 4
%define major 0
%define libname %mklibname gtkhex %{api} %{major}
%define devname %mklibname gtkhex -d

Summary:	GNOME Hexadecimal Editor
Name:		ghex
Version:	42.3
Release:	4
License:	GPLv2+
Group:		Editors
Url:		https://download.gnome.org/sources/ghex
Source0:	https://download.gnome.org/sources/ghex/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		ghex-42.3-ru-fix-translate.patch
Patch1:		ghex-42.3-ru-po-translate.patch
BuildRequires:	gettext
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	perl-XML-Parser
BuildRequires:	python3dist(gi-docgen)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(xml2po)

%description
GHex allows the user to load data from any file, view and edit it in either
hex or ascii. A must for anyone playing games that use non-ascii format for
saving.

%files -f %{name}-%{api}.lang
%doc README.md
%license COPYING
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/glib-2.0/schemas/org.gnome.GHex.gschema.xml
%{_datadir}/metainfo/org.gnome.GHex.appdata.xml
%{_iconsdir}/hicolor/scalable/apps/org.gnome.GHex*.svg
%{_iconsdir}/hicolor/symbolic/apps/org.gnome.GHex-symbolic.svg
%{_libdir}/gtkhex-%{api}.%{major}/libhex-buffer-mmap.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of the GNOME Hexadecimal Editor
Group:		System/Libraries

%description -n %{libname}
This contains the shared library needed by ghex.

%files -n %{libname}
%{_libdir}/libgtkhex-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the GNOME Hexadecimal Editor library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This contains the development files needed to compile applications with
libghex.

%files -n %{devname}
%{_libdir}/libgtkhex-%{api}.so
%{_libdir}/pkgconfig/gtkhex-%{api}.pc
%{_includedir}/gtkhex-%{api}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="X-MandrivaLinux-MoreApplications-Editors" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

%find_lang %{name}-%{api} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12856 |21mr|ghostscript10-10.02.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# ghostscript10 as a separate package for coinstalling with ghostscript
# for CUPS v2.4 (https://github.com/OpenPrinting/cups-filters/commit/531505b)

%define _disable_ld_no_undefined 1

%define gsver 10.02.1
%define gsver_nodot %(echo %{gsver} | tr -d .)
%define gsmajor 10
%define libgs %mklibname gs %{gsmajor}

Summary:	PostScript/PDF interpreter and renderer (Main executable)
Name:		ghostscript%{gsmajor}
Version:	%{gsver}
Release:	3
License:	AGPLv3+
Group:		Publishing
Url:		http://www.ghostscript.com
Source0:	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%{gsver_nodot}/ghostscript-%{version}.tar.xz
Source1:	http://www.linuxprinting.org/download/printing/sipixa6.upp
Source2:	ps2pdfpress.bz2
Source3:	ghostscript%{gsmajor}.rpmlintrc

# Fedora patches
Patch0:		ghostscript-9.53-scripts.patch
Patch1:		ghostscript-runlibfileifexists.patch
Patch2:		ghostscript-Fontmap.local.patch
Patch3:		ghostscript-gdevcups-debug-uninit.patch
Patch4:		ghostscript-9.54-openjpeg2-non-static.patch
Patch5:		ghostscript-10.02.1-PostScript-Fix-selectdevice.patch
Patch6:		ghostscript-10.02.1-txtwrite-device-needs-to-countdown-the-device-on-tex.patch

# Ubuntu patches
Patch7:		Ubuntu-1004_enable_spot_devices.patch
Patch8:		Ubuntu-2010_add_build_timestamp_setting.patch
#Cve's
Patch1000:	CVE-2024-29506.patch
Patch1001:	CVE-2024-29508.patch
Patch1002:	CVE-2024-29508-2.patch
Patch1003:	CVE-2024-29508-3.patch
Patch1004:	CVE-2024-29509.patch
BuildRequires:	automake
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	bison
BuildRequires:	cups-devel
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	poppler-data
BuildRequires:	unzip
BuildRequires:	gettext-devel
BuildRequires:	glibc-devel
BuildRequires:	jbig2dec-devel
BuildRequires:	jpeg-devel
BuildRequires:	libpaper-devel
BuildRequires:	netpbm-devel
BuildRequires:	tesseract-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(zlib)

Requires:	ghostscript-fonts
Requires:	poppler-data
Requires:	update-alternatives
Requires:	urw-fonts

%description
Ghostscript is a set of software tools that provide a PostScript(TM)
interpreter, a set of C procedures (the Ghostscript library, which
implements the graphics capabilities in the PostScript language) and
an interpreter for Portable Document Format (PDF) files. Ghostscript
translates PostScript code into many common, bitmapped and vector
formats, like those understood by your printer or screen. Ghostscript
is normally used to display PostScript files and to print PostScript
files to non-PostScript printers.

This package provides the utility %{_bindir}/gsc%{gsmajor}.
%{_bindir}/gsc is in the ghostscript package.

%files
%{_bindir}/gsc%{gsmajor}
%{_datadir}/ghostscript/%{version}
%{_mandir}/man1/gsc%{gsmajor}.1*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/conf.d
%dir %{_sysconfdir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libgs}
Summary:	PostScript/PDF interpreter and renderer (GhostScript shared library)
Group:		Publishing

%description -n %{libgs}
This is the API library for programs which use the PostScript and/or
PDF interpreters of GhostScript.

%files -n %{libgs}
%{_libdir}/libgs.so.*%{gsmajor}*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for GhostScript
Group:		Documentation

%description doc
This package contains documentation for GhostScript.

%files doc
%doc %{_docdir}/ghostscript-doc-%{gsver}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n ghostscript-%{version}

# prevent building and using bundled libs
rm -rf jasper jbig2dec libpng jpeg tiff expat zlib lcms freetype tesseract

%build
EXTRACFLAGS="-fno-strict-aliasing"

FONTPATH=
for path in \
        %{_datadir}/fonts/default/ghostscript \
        %{_datadir}/fonts/default/Type1 \
        %{_datadir}/fonts/default/amspsfnt/pfb \
        %{_datadir}/fonts/default/cmpsfont/pfb \
        %{_datadir}/fonts \
        %{_datadir}/ghostscript/conf.d \
        %{_datadir}/%{name}/conf.d \
        %{_sysconfdir}/ghostscript \
        %{_sysconfdir}/%{name} \
        %{_datadir}/poppler/cMap/*
do
  FONTPATH="$FONTPATH${FONTPATH:+:}$path"
done
autoconf --force

%configure \
	--enable-dynamic \
	--disable-hidden-visibility \
	--enable-fontconfig \
	--with-drivers=ALL \
	--with-fontpath="$FONTPATH" \
	--without-ijs \
	--without-x \
	--disable-compile-inits \
	--with-system-libtiff \
	--without-install-cups \
	CFLAGS="$CFLAGS $EXTRACFLAGS"

# Drivers which do not compile:
# Needs newsiop/lbp.h: nwp533
# Needs sys/ioccom.h: sparc
# Needs unbdev/lpviio.h: sparc

# Set documentation dir
perl -p -i -e 's|^(docdir=).*$|$1\$\(datadir\)/doc/%{name}-doc-%{gsver}|' Makefile

# Fix references to X11 libraries
perl -p -i -e "s|(/usr/X11R6)/lib\b|\1/%{_lib}|g" Makefile base/*.mak

# Correct paths for CJK fonts
perl -p -i -e "s:/usr/share/ghostscript/:/usr/share/ghostscript/Resource/:g" Resource/Init/gs_res.ps
perl -p -i -e "s:ghostscript/Resource/fonts:ghostscript/Resource/Font:g" Resource/Init/gs_res.ps

# Do not use "-ansi" in gcc calls
perl -p -i -e "s:-ansi::g" Makefile

# bork
perl -p -i -e "s|^EXTRALIBS=|EXTRALIBS=-L/%{_lib} -lz |g" Makefile

%install
# Make directories
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}

##### GHOSTSCRIPT
mkdir -p %{buildroot}%{_docdir}/ghostscript-doc-%{gsver}

%make \
	prefix=%{_prefix} \
	DESTDIR=%{buildroot} \
	gssharedir=%{_libdir}/ghostscript/%{gsver} \
	docdir=%{_docdir}/ghostscript-doc-%{gsver} \
	bindir=%{_bindir} \
	mandir=%{_mandir}

%make \
	prefix=%{_prefix} \
	DESTDIR=%{buildroot} \
	gssharedir=%{_libdir}/ghostscript/%{gsver} \
	docdir=%{_docdir}/ghostscript-doc-%{gsver} \
	bindir=%{_bindir} \
	libdir=%{_libdir} \
	mandir=%{_mandir} \
	soinstall

# UPP file for SiPix Pocket Printer A6
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/ghostscript/%{gsver}/lib/

# Correct permissions for all documentation files
chmod -R a+rX %{buildroot}%{_docdir}
chmod -R go-w %{buildroot}%{_docdir}
chmod -R u+w %{buildroot}%{_docdir}

cp %{buildroot}%{_mandir}/man1/gs.1 gs.1.bak
rm -fvr %{buildroot}%{_mandir}/man*
mkdir -p %{buildroot}%{_mandir}/man1
install -m644 gs.1.bak %{buildroot}%{_mandir}/man1/gsc%{gsmajor}.1

mv %{buildroot}%{_bindir}/gsc gsc%{gsmajor}.bak
rm -fv %{buildroot}%{_bindir}/*
install -m755 gsc%{gsmajor}.bak %{buildroot}%{_bindir}/gsc%{gsmajor}

rm -fvr %{buildroot}%{_includedir}
rm -fv %{buildroot}%{_libdir}/*.so

# search paths shown by gs --version
mkdir -p %{buildroot}%{_datadir}/%{name}/conf.d
mkdir -p %{buildroot}%{_sysconfdir}/%{name}

%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
# Ensure that all needed output devices are available
# https://github.com/OpenPrinting/cups-filters/commit/531505b
for i in cups pwgraster appleraster urf
do
	%{buildroot}%{_bindir}/gsc%{gsmajor} --help | grep "$i"
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12857 |21mr|ghostscript-9.56.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define gsver 9.56.1
%define gsver_nodot %(echo %{gsver} | tr -d .)
%define ijsver 0.35
%define ijsreloffset 131
%define ijsrel %(echo $((%{release} + %{ijsreloffset})))

%define ijsmajor 1
%define libijs %mklibname ijs %{ijsmajor}
%define libijs_devel %mklibname -d ijs

%define gsmajor 9
%define libgs %mklibname gs %{gsmajor}
%define libgs_devel %mklibname -d gs

%define bootstrap 0

%define GSx11SVGAmodule 1
%define withcupsfilters 0
%define debug 0
%if %{bootstrap}
%global withcupsfilters 0
%endif

Summary:	PostScript/PDF interpreter and renderer (Main executable)
Name:		ghostscript
Version:	%{gsver}
Release:	1
License:	GPLv2+
Group:		Publishing
Url:		http://www.ghostscript.com
Source0:	https://github.com/ArtifexSoftware/ghostpdl-downloads/releases/download/gs%{gsver_nodot}/ghostscript-%{version}.tar.gz
Source2:	ps2pdfpress.bz2
Source3:	http://www.linuxprinting.org/download/printing/sipixa6.upp
Source4:	ghostscript.rpmlintrc

# Fedora patches
Patch0:		ghostscript-9.53-scripts.patch
Patch1:		ghostscript-runlibfileifexists.patch
Patch2:		ghostscript-Fontmap.local.patch
Patch3:		ghostscript-gdevcups-debug-uninit.patch
Patch4:		ghostscript-9.54-openjpeg2-non-static.patch
# CVE-2021-3781 fixed
# CVE-2021-45949 fixed
Patch7:		CVE-2023-28879.patch
Patch8:		CVE-2023-36664.patch
Patch9:		CVE-2023-43115.patch
Patch10:	CVE-2023-38559.patch
Patch12:	CVE-2024-29508.patch
Patch13:	CVE-2024-29508-2.patch
Patch14:	CVE-2024-46951.patch
Patch15:	CVE-2024-46952.patch
Patch16:	CVE-2024-46953.patch
Patch17:	CVE-2024-46954.patch
Patch18:	CVE-2024-46955.patch
Patch19:	CVE-2024-46956.patch
%if !%{bootstrap}
BuildRequires:	cups-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gtk+-3.0)
%endif
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	poppler-data
BuildRequires:	unzip
BuildRequires:	gettext-devel
BuildRequires:	glibc-devel
BuildRequires:	jbig2dec-devel
BuildRequires:	jpeg-devel
BuildRequires:	libpaper-devel
BuildRequires:	netpbm-devel
BuildRequires:	tesseract-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)

Requires:	ghostscript-common
Requires:	ghostscript-fonts
Requires:	poppler-data
Requires:	update-alternatives
Requires:	urw-fonts
%if !%{GSx11SVGAmodule}
%rename	ghostscript-module-X ghostscript-module-SVGALIB
%endif

%description
Ghostscript is a set of software tools that provide a PostScript(TM)
interpreter, a set of C procedures (the Ghostscript library, which
implements the graphics capabilities in the PostScript language) and
an interpreter for Portable Document Format (PDF) files. Ghostscript
translates PostScript code into many common, bitmapped and vector
formats, like those understood by your printer or screen. Ghostscript
is normally used to display PostScript files and to print PostScript
files to non-PostScript printers.

You should install ghostscript if you need to display PostScript or
PDF files, or if you have a non-PostScript printer.

%files
%{_bindir}/gsc
%{_bindir}/gs-common
%{_bindir}/ghostscript

%preun
if [ "$1" = 0 ]; then
  # Remove update-alternatives entry
  %{_sbindir}/update-alternatives --remove gs %{_bindir}/gsc
fi

%post
# Set up update-alternatives entries
%{_sbindir}/update-alternatives --install %{_bindir}/gs gs %{_bindir}/gsc 200

#----------------------------------------------------------------------------

%package dvipdf
Summary:	PostScript/PDF interpreter and renderer (DVI-to-PDF converter)
Group:		Publishing
Requires: 	ghostscript
Requires:	coreutils
Requires:	tetex-dvips

%description dvipdf
Tool to convert the DVI format of TeX into the PDF format. There are
more such tools (for different quality levels) in the tetex-dvipdfm
package. All these tools use dvips of TeX to convert the DVI file to
PostScript, then they use GhostScript to generate the PDF file.

%files dvipdf
%{_bindir}/dvipdf

#----------------------------------------------------------------------------

%package common
Summary:	PostScript/PDF interpreter and renderer (Common files)
Group:		Publishing
Requires:	urw-fonts >= 1.1
Requires:	ghostscript-fonts
Requires:	perl

%description common
Ghostscript is a PostScript/PDF interpreter. It can render both
PostScript and PDF files to devices which include X window, many
printer formats, and popular graphics file formats.

This package contains the common data files needed by GhostScript.

%files common
%dir %{_datadir}/ghostscript
%{_datadir}/ghostscript/%{gsver}
%{_mandir}/man1/*
%lang(de) %{_mandir}/de/man1/*
%{_bindir}/[e-f]*
#{_bindir}/gs-common
%{_bindir}/gs[a-b]*
%{_bindir}/gs[d-n]*
%{_bindir}/[j-l]*
%{_bindir}/[n-z]*
%if %{withcupsfilters}
# "pstoraster" wrapper script to make GhostScript being used as the
# cups-internal RIP
%attr(0755,root,root) %{_prefix}/lib*/cups/filter/*
%{_datadir}/cups/model/*
%config(noreplace) %{_sysconfdir}/cups/gstoraster.convs
%endif

%post common
# Initialize japanese fonts
if test -f /usr/share/fonts/ttf/japanese/cidinst; then
    sh /usr/share/fonts/ttf/japanese/cidinst
fi

#----------------------------------------------------------------------------

%package X
Summary:	PostScript/PDF interpreter and renderer (GTK-based executable)
Group:		Publishing
Requires: 	ghostscript-common
Requires:	update-alternatives

%description X
Ghostscript is a PostScript/PDF interpreter. It can render both
PostScript and PDF files to devices which include X window, many
printer formats, and popular graphics file formats.

This package contains a GhostScript executable with GTK-based X
display support ("display" device, default, so it displays files by
simply entering "gs <file>" on the command line). It makes use of the
GhostScript shared library.

%files X
%{_bindir}/gsx

%preun X
if [ "$1" = 0 ]; then
  # Remove update-alternatives entry
  %{_sbindir}/update-alternatives --remove gs %{_bindir}/gsx
fi

%post X
# Set up update-alternatives entries
%{_sbindir}/update-alternatives --install %{_bindir}/gs gs %{_bindir}/gsx 100

#----------------------------------------------------------------------------

%if %{GSx11SVGAmodule}
%package module-X
Summary:	PostScript/PDF interpreter and renderer (Additional support for X)
Group: 		Publishing
Requires: 	ghostscript-common

%description module-X
Ghostscript is a PostScript/PDF interpreter. It can render both
PostScript and PDF files to devices which include X window, many
printer formats, and popular graphics file formats.

This package enhances Ghostscript with X window support.

%files module-X
%dir %{_libdir}/ghostscript/%{gsver}
%{_libdir}/ghostscript/%{gsver}/X11.so
%endif

#----------------------------------------------------------------------------

%package -n %{libgs}
Summary:	PostScript/PDF interpreter and renderer (GhostScript shared library)
Group:		Publishing

%description -n %{libgs}
This is the API library for programs which use the PostScript and/or
PDF interpreters of GhostScript.

%files -n %{libgs}
%{_libdir}/libgs.so.*%{gsmajor}*

#----------------------------------------------------------------------------

%package -n %{libgs_devel}
Summary:	Headers and links to compile against the "%{libgs}" library
Group:		Development/C
Requires:	%{libgs} >= %{gsver}
Provides:	%{name}-devel = %{gsver}
Provides:	libgs-devel = %{gsver}

%description -n %{libgs_devel}
This package contains the static library and the header files needed
to compile applications using the GhostScript shared library.

%files -n %{libgs_devel}
%{_libdir}/libgs.so
%{_includedir}/ghostscript

#----------------------------------------------------------------------------

%package -n %{libijs}
Summary:	Dynamic library for the IJS printer driver plug-in interface
Version:	%{ijsver}
Release:	%{ijsrel}
Group:		Publishing
Url:		http://www.linuxprinting.org/ijs/
Provides:	libijs = %{ijsver}-%{ijsrel}

%description -n %{libijs}
This is the API library for programs using the IJS printer driver
plug-in interface. Printer drivers using this interface can be added
to GhostScript (6.53 or newer) without needing to rebuild
GhostScript. Application programs providing an IJS interface can make
use of IJS printer drivers directly, without needing GhostScript.

%files -n %{libijs}
%{_libdir}/libijs-%{ijsver}.so

#----------------------------------------------------------------------------

%package -n %{libijs_devel}
Summary:	Headers and links for compiling against the "%{libijs}" library
Version:	%{ijsver}
Release:	%{ijsrel}
Group:		Development/C
Url:		http://www.linuxprinting.org/ijs/
Requires:	%{libijs} >= %{ijsver}
Requires:	multiarch-utils
Provides:	libijs-devel = %{ijsver}-%{ijsrel}
Provides:	ijs-devel = %{ijsver}-%{ijsrel}

%description -n %{libijs_devel}
This package contains the static library and the header files needed
to compile applications using the IJS library.

%files -n %{libijs_devel}
%doc ijs/README
%{_libdir}/libijs.so
%{_libdir}/pkgconfig/ijs.pc
%{_includedir}/ijs
%{_bindir}/ijs_client_example
%{_bindir}/ijs_server_example

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for GhostScript
Group:		Documentation

%description doc
This package contains documentation for GhostScript.

%files doc
%doc %{_docdir}/ghostscript-doc-%{gsver}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# prevent building and using bundled libs
rm -rf jasper jbig2dec libpng jpeg tiff expat zlib lcms freetype tesseract

# Convert manual pages to UTF-8
from8859_1() {
        iconv -f iso-8859-1 -t utf-8 < "$1" > "${1}_"
        mv "${1}_" "$1"
}
for i in man/de/*.1; do from8859_1 "$i"; done

# ps2pdfpress
bzcat %{SOURCE2} > ps2pdfpress

%build
EXTRACFLAGS="-fno-strict-aliasing"

pushd ijs*
# pass --version as a configure parameter to skip excessive configure
./autogen.sh --version
%configure \
%ifarch %{ix86}
	--disable-sse2 \
%endif
	--enable-shared \
	--disable-static

%make
popd

FONTPATH=
for path in \
        %{_datadir}/fonts/default/%{name} \
        %{_datadir}/fonts/default/Type1 \
        %{_datadir}/fonts/default/amspsfnt/pfb \
        %{_datadir}/fonts/default/cmpsfont/pfb \
        %{_datadir}/fonts \
        %{_datadir}/%{name}/conf.d \
        %{_sysconfdir}/%{name} \
        %{_sysconfdir}/%{name}/%{gs_dot_ver} \
        %{_datadir}/poppler/cMap/*
do
  FONTPATH="$FONTPATH${FONTPATH:+:}$path"
done
autoconf --force

%configure \
	--enable-dynamic \
%if !%{bootstrap}
	--enable-fontconfig \
%endif
	--with-drivers=ALL \
	--with-fontpath="$FONTPATH" \
	--with-ijs \
	--with-x \
	--disable-compile-inits \
	--with-system-libtiff \
%if %{withcupsfilters}
	--with-install-cups \
%endif
	CFLAGS="$CFLAGS $EXTRACFLAGS"


# Drivers which do not compile:
# Needs newsiop/lbp.h: nwp533
# Needs sys/ioccom.h: sparc
# Needs unbdev/lpviio.h: sparc

# Set documentation dir
perl -p -i -e 's|^(docdir=).*$|$1\$\(datadir\)/doc/%{name}-doc-%{gsver}|' Makefile

# Fix references to X11 libraries
perl -p -i -e "s|(/usr/X11R6)/lib\b|\1/%{_lib}|g" Makefile base/*.mak

# Correct paths for CJK fonts
perl -p -i -e "s:/usr/share/ghostscript/:/usr/share/ghostscript/Resource/:g" Resource/Init/gs_res.ps
perl -p -i -e "s:ghostscript/Resource/fonts:ghostscript/Resource/Font:g" Resource/Init/gs_res.ps

# Do not use "-ansi" in gcc calls
perl -p -i -e "s:-ansi::g" Makefile

# bork
perl -p -i -e "s|^EXTRALIBS=|EXTRALIBS=-L/%{_lib} -lz |g" Makefile

%if %{GSx11SVGAmodule}
#make STDDIRS
%make obj/X11.so
%endif
%make so
#make pcl3opts
%make cups

%install
# Make directories
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_mandir}/man1
%if !%{bootstrap}
install -d %{buildroot}%{_prefix}/lib/cups
install -d %{buildroot}%{_datadir}/cups/model
install -d %{buildroot}%{_sysconfdir}/cups
%endif

pushd ijs*
%configure \
	--enable-shared \
	--prefix=%{buildroot}%{_prefix} \
	--libdir=%{buildroot}%{_libdir}

# Work around bug in "configure" script
perl -p -i -e 's/\@OBJEXT\@/o/g' Makefile
perl -p -i -e 's/\@EXEEXT\@//g' Makefile
%makeinstall
# Fix prefixes in scripts
perl -p -i -e "s:%{buildroot}::g" %{buildroot}%{_libdir}/pkgconfig/ijs.pc
popd

##### GHOSTSCRIPT
mkdir -p %{buildroot}%{_docdir}/ghostscript-doc-%{gsver}

%if !%{bootstrap}
%make \
	prefix=%{_prefix} \
	DESTDIR=%{buildroot} \
	gssharedir=%{_libdir}/ghostscript/%{gsver} \
	docdir=%{_docdir}/ghostscript-doc-%{gsver} \
	bindir=%{_bindir} \
%if %{withcupsfilters}
	install-cups \
%endif
	mandir=%{_mandir}
%endif

%make \
	prefix=%{_prefix} \
	DESTDIR=%{buildroot} \
	gssharedir=%{_libdir}/ghostscript/%{gsver} \
	docdir=%{_docdir}/ghostscript-doc-%{gsver} \
	bindir=%{_bindir} \
	libdir=%{_libdir} \
	mandir=%{_mandir} \
	soinstall

%if %{GSx11SVGAmodule}
%make \
	prefix=%{_prefix} \
	DESTDIR=%{buildroot} \
	gssharedir=%{_libdir}/ghostscript/%{gsver} \
	docdir=%{_docdir}/ghostscript-doc-%{gsver} \
	bindir=%{_bindir} \
	libdir=%{_libdir} \
	mandir=%{_mandir} \
	install-shared
%endif

ln -sf gs.1%{_extension} %{buildroot}%{_mandir}/man1/ghostscript.1%{_extension}

# ps2pdfpress
install -m 755 ps2pdfpress %{buildroot}%{_bindir}

# UPP file for SiPix Pocket Printer A6
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/ghostscript/%{gsver}/lib/

# why?
%if %{withcupsfilters}
mv %{buildroot}%{_datadir}/cups/mime/gstoraster.convs %{buildroot}%{_sysconfdir}/cups/gstoraster.convs
%endif

# Add backward compatibility link to not break printerdrake in Mandriva
# 2006 and older
ln -s %{_bindir}/gsc %{buildroot}%{_bindir}/gs-common
ln -s %{_bindir}/gsc %{buildroot}%{_bindir}/ghostscript

# Correct permissions for all documentation files
chmod -R a+rX %{buildroot}%{_docdir}
chmod -R go-w %{buildroot}%{_docdir}
chmod -R u+w %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12858 |21mr|ghostscript-fonts-9.06-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fonts for the GhostScript PostScript(TM) interpreter
Name:		ghostscript-fonts
Version:	9.06
Release:	2
License:	GPLv2+
Group:		Publishing
Url:		http://sourceforge.net/projects/gs-fonts/
Source0:	http://heanet.dl.sourceforge.net/sourceforge/gs-fonts/ghostscript-fonts-other-6.0.tar.bz2
BuildArch:	noarch

%description
These fonts can be used by the GhostScript interpreter during text
rendering. They are in addition to the shared fonts between GhostScript
and X11.

%files
%dir %{_datadir}/fonts/default/
%dir %{_datadir}/fonts/default/ghostscript/
%{_datadir}/fonts/default/ghostscript/*.pfa
%{_datadir}/fonts/default/ghostscript/*.afm
%{_datadir}/fonts/default/ghostscript/*.gsf
%{_datadir}/fonts/default/ghostscript/*.pfm

#----------------------------------------------------------------------------

%prep
%setup -q -c ghostscript-fonts-6.0

%install
mkdir -p %{buildroot}%{_datadir}/fonts/default/ghostscript/
cp fonts/* %{buildroot}%{_datadir}/fonts/default/ghostscript

# Remove unneeded files
rm -f %{buildroot}%{_datadir}/fonts/default/ghostscript/*.pfb
rm -f %{buildroot}%{_datadir}/fonts/default/ghostscript/fonts.{dir,scale}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12859 |21mr|gi-docgen-2021.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Documentation tool for GObject-based libraries
Name:		gi-docgen
Version:	2021.8
Release:	1
License:	(ASL 2.0 or GPLv3+) and MIT and CC0
Group:		Development/Other
Url:		https://gitlab.gnome.org/GNOME/gi-docgen
Source0:	https://gitlab.gnome.org/GNOME/gi-docgen/-/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		gi-docgen-2021.8-too-many-values-to-unpack.patch
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
GI-DocGen is a document generator for GObject-based libraries. GObject is the
base type system of the GNOME project. GI-Docgen reuses the introspection data
generated by GObject-based libraries to generate the API reference of these
libraries, as well as other ancillary documentation.

#------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Example python3 module
Group:		Development/Other

%description -n python3-%{name}
GI-DocGen is a document generator for GObject-based libraries. GObject is the
base type system of the GNOME project. GI-Docgen reuses the introspection data
generated by GObject-based libraries to generate the API reference of these
libraries, as well as other ancillary documentation.

%files -n python3-%{name}
%doc CONTRIBUTING.md README.md
%license LICENSES/*
%{_bindir}/%{name}
%{_datadir}/pkgconfig/%{name}.pc
%{_mandir}/man1/%{name}.1.*
%{python3_sitelib}/gi_docgen-%{version}-py*.egg-info
%{python3_sitelib}/gidocgen

#------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12860 |21mr|gif2png-3.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for converting websites from using GIFs to using PNGs
Name:		gif2png
Version:	3.0.0
Release:	2
License:	MIT style
Group:		Graphics
URL:		http://www.catb.org/~esr/gif2png/
Source0:	http://www.catb.org/~esr/gif2png/%{name}-%{version}.tar.gz
#golang(golang.org/x/crypto/ssh/terminal)golang(golang.org/x/crypto/ssh/terminal)patch from upstream https://gitlab.com/esr/gif2png/-/commit/561d594178ca1039c8dca8b2c8f9c40f6a77cdb5
Patch0:		gif2png-3.0.0-utime.patch
BuildRequires:	pkgconfig(libpng)
BuildRequires:	zlib-devel
BuildRequires:	golang
BuildRequires:	golang(golang.org/x/crypto/ssh/terminal)

%description
Tools for converting GIFs to PNGs. The program gif2png converts GIF files to
PNG files. The Python script web2png converts an entire web tree, also patching
HTML pages to keep IMG SRC references correct.

%files
%doc README NEWS COPYING
%{_mandir}/*/*
%{_bindir}/*

#---------------------------------------------------------------------------------
%prep
%autosetup -p1

%build
export GOPATH="%{_datadir}/gocode"
# Make $GOPATH work with golang >= 1.16
# https://www.opennet.ru/opennews/art.shtml?num=54605
export GO111MODULE=off
%make

%install
%makeinstall_std

#remove python2 dependensy
# web2png is Python 2 only, see https://bugzilla.redhat.com/show_bug.cgi?id=1787242
rm %{buildroot}%{_bindir}/web2png
rm %{buildroot}%{_mandir}/man1/web2png*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12861 |21mr|giflib-5.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname gif %{major}
%define devname %mklibname gif -d

Summary:	Library for reading and writing gif images
Name:		giflib
Version:	5.2.1
Release:	4
License:	BSD
Group:		System/Libraries
Url:		http://giflib.sourceforge.net/
Source0:	https://sourceforge.net/projects/giflib/files/giflib-%{version}.tar.gz
Patch0:		https://src.fedoraproject.org/rpms/giflib/raw/master/f/giflib_quantize.patch
Patch1:		https://git.archlinux.org/svntogit/packages.git/plain/trunk/giflib-5.1.9-make-flags.patch
Patch100:	CVE-2022-28506.patch
# CVE-2023-39742
# Taken from Debian package
Patch101:	fix-get-args-segment-violation.patch
BuildRequires:	xmlto
BuildRequires:	pkgconfig(x11)

%description
giflib is a library for reading and writing gif images. It is API and
ABI compatible with libungif which was in wide use while the LZW
compression algorithm was patented.

#----------------------------------------------------------------------------

%package progs
Summary:	Gif tools based on giflib
Group:		Graphics

%description progs
giflib is a library for reading and writing gif images. It is API and
ABI compatible with libungif which was in wide use while the LZW
compression algorithm was patented.

This package provides some gif tools based on giflib.

%files progs
%doc COPYING ChangeLog NEWS README TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for reading and writing gif images
Group:		System/Libraries

%description -n %{libname}
giflib is a library for reading and writing gif images. It is API and
ABI compatible with libungif which was in wide use while the LZW
compression algorithm was patented.

%files -n %{libname}
%doc COPYING ChangeLog NEWS README TODO
%{_libdir}/libgif.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for giflib
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	giflib-devel = %{EVRD}
Provides:	ungif-devel = %{EVRD}

%description -n %{devname}
giflib is a library for reading and writing gif images. It is API and
ABI compatible with libungif which was in wide use while the LZW
compression algorithm was patented.

This packages provides the developement files for giflib.

%files -n %{devname}
%doc COPYING ChangeLog NEWS README TODO
%{_includedir}/gif_lib.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make_build CFLAGS="%{optflags}" PREFIX="%{_prefix}" LIBDIR="%{_libdir}" MANDIR="%{_mandir}/man1" CC="%{__cc}" all

%install
%make_install CFLAGS="%{optflags}" PREFIX="%{_prefix}" LIBDIR="%{_libdir}" MANDIR="%{_mandir}/man1" CC="%{__cc}"

rm %{buildroot}%{_libdir}/*.a

# Let's try to keep -lungif working for really old code
ln -s libgif.so %{buildroot}%{_libdir}/libungif.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12862 |21mr|giftrans-1.12.2-34
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define debug_package %nil

Summary:	Convert transparent GIFs into non-transparent GIFs
Name:		giftrans
Version:	1.12.2
Release:	34
License:	BSD
Group:		Graphics
Url:		ftp://ftp.rz.uni-karlsruhe.de/pub/net/www/tools/
Source0: 	%{name}-%{version}.tar.bz2
Patch0:		giftrans-1.12.2-operator.patch
Patch1:		giftrans-1.12.2-cleanup.patch
Patch2:		giftrans-1.12.2-warnings.patch
Requires:	rgb

%description
Giftrans will convert an existing GIF87 file to GIF89 format. In other
words, Giftrans can make one color in a .gif image (normally the
background) transparent.

Install the giftrans package if you need a quick, small, one-purpose
graphics program to make transparent .gifs out of existing .gifs.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
gcc -Dvoidd=void -Wall %{optflags} -DRGBTXT=\"%{_datadir}/X11/rgb.txt\" -o giftrans giftrans.c

%install
install -m755 %{name} -D %{buildroot}%{_bindir}/%{name}
install -m644 %{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12863 |21mr|gig-4.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname libgig

%define	akaimajor 0
%define	gigmajor 10
%define	libakai %mklibname akai %{akaimajor}
%define	libname %mklibname %{name} %{gigmajor}
%define	devname %mklibname %{name} -d

Summary:	C++ library for loading Gigasampler files
Name:		gig
Version:	4.3.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://www.linuxsampler.org/
Source0:	http://download.linuxsampler.org/packages/%{oname}-%{version}.tar.bz2
Patch0:		libgig-4.1.0-libdir.patch
BuildRequires:	pkgconfig(sndfile) >= 1.0.2
BuildRequires:	pkgconfig(uuid)

%description
C++ library for loading Gigasampler files and DLS Level 1/2 files.

%files
%doc ChangeLog COPYING NEWS README
%{_bindir}/*
%{_mandir}/man1/*.1.*

#--------------------------------------------------------------------

%package -n %{libakai}
Summary:	Shared library from %{name}
Group:		System/Libraries

%description -n %{libakai}
C++ library for loading Gigasampler files and DLS Level 1/2 files.

%files -n %{libakai}
%doc ChangeLog COPYING NEWS README
%{_libdir}/libakai.so.%{akaimajor}*

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library from %{name}
Group:		System/Libraries

%description -n %{libname}
C++ library for loading Gigasampler files and DLS Level 1/2 files.

%files -n %{libname}
%doc ChangeLog COPYING NEWS README
%{_libdir}/libgig.so.%{gigmajor}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from %{name}
Group:		Development/Other
Requires:	%{libakai} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}
%rename %{_lib}%{name}6-devel

%description -n %{devname}
Development libraries from %{oname}.

%files -n %{devname}
%doc ChangeLog COPYING NEWS README
%dir %{_includedir}/%{oname}
%{_includedir}/%{oname}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/gig.pc
%{_libdir}/pkgconfig/akai.pc

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# Kill wrong perms
find . -name "*.cpp" -type f -print0 | xargs -0 chmod -x
find . -name "*.h" -type f -print0 | xargs -0 chmod -x


%build
autoreconf -vfi
%configure \
	--disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12864 |21mr|gigolo-0.5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -c 1-3)
%define _disable_rebuild_configure 1

Summary:	Frontend for GIO/GVFS
Name:		gigolo
Version:	0.5.2
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Xfce
Url:		http://www.xfce.org
Source0:	http://archive.xfce.org/src/apps/gigolo/%{url_ver}/gigolo-%{version}.tar.bz2
# https://gitlab.xfce.org/apps/gigolo/-/issues/14
Patch0:		ru.diff
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Gigolo is a frontend to easily manage connections to remote filesystems 
using GIO/GVFS. It allows you to quickly connect/mount a remote filesystem 
and manage bookmarks of such.

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/%{name}

%find_lang %{name} %{name}.lang

%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog TODO NEWS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/org.xfce.gigolo.png
%{_datadir}/icons/hicolor/scalable/apps/org.xfce.gigolo.svg
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12865 |21mr|gimp-2.10.36-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# disable python until gimp ported to python3
# https://gitlab.gnome.org/GNOME/gimp/issues/4368
# https://gitlab.gnome.org/GNOME/gimp/-/issues/5031
%bcond_with	python

%define	api	2.0
%define	abi	2.10
%define	major	0
%define	libname		%mklibname %{name} %{api}_%{major}
%define	libbase		%mklibname %{name}base %{api} %{major}
%define	libcolor	%mklibname %{name}color %{api} %{major}
%define	libconfig	%mklibname %{name}config %{api} %{major}
%define	libmath		%mklibname %{name}math %{api} %{major}
%define	libmodule	%mklibname %{name}module %{api} %{major}
%define	libthumb	%mklibname %{name}thumb %{api} %{major}
%define	libui		%mklibname %{name}ui %{api} %{major}
%define	libwidgets	%mklibname %{name}widgets %{api} %{major}
%define	devname		%mklibname -d %{name}%{api}

Summary:	The GNU Image Manipulation Program
Name:		gimp
Version:	2.10.36
Release:	3
Epoch:		1
License:	GPLv2+
Group:		Graphics
Url:		https://www.gimp.org/
Source0:	https://download.gimp.org/pub/gimp/v%{abi}/gimp-%{version}.tar.bz2
# disable RGB font anti-aliasing, see http://bugs.rosalinux.ru/show_bug.cgi?id=6620
Source1:	fonts.conf
Patch0:		gimp-2.10.36-desktopentry.patch
Patch1:		gimp-2.10.6-link.patch
Patch2:		gimp-2.10.14-initial-pref.patch
Patch3:		gimp-2.10.6-gimprc.patch
Patch4:		gimp-2.10.6-sessionrc.patch
Patch5:		gimp-use-mypaint-brashes-2.0.patch
Patch6:		gimp-2.10.32-drop-check-update-button.patch
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	gegl
BuildRequires:	glib-networking
BuildRequires:	gtk-doc
BuildRequires:	gtk-update-icon-cache
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	x11-server-xvfb
BuildRequires:	xdg-utils
BuildRequires:	aalib-devel
BuildRequires:	bzip2-devel
BuildRequires:	ghostscript-devel
BuildRequires:	gomp-devel
BuildRequires:	jasper-devel
BuildRequires:	libwmf-devel
BuildRequires:	lzma-devel
BuildRequires:	mypaint-brushes-devel
BuildRequires:	poppler-data-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gegl-0.4)
BuildRequires:	pkgconfig(gexiv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(lcms2)
#BuildRequires:	pkgconfig(libart-2.0) # In contrib
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libjxl)
BuildRequires:	pkgconfig(libmng)
BuildRequires:	pkgconfig(libmypaint)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
%ifnarch %{e2k}
# not available on e2k
BuildRequires:	pkgconfig(libunwind)
%endif
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(poppler-glib)
# python plugin
%if %{with python}
BuildRequires:	pkgconfig(pygtk-2.0)
BuildRequires:	pkgconfig(py3cairo)
BuildRequires:	pkgconfig(python)
%endif
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xpm)
# Require gegl, otherwise GIMP crashes on some operations
# (at least on cage transformation)
Requires:	gegl
Requires:	%{libname} = %{EVRD}
Recommends:	(gimp-help-2-ru if locales-ru)
Recommends:	gimp-plugin-saveforweb
Provides:	%{name}-plugin-wavelet-decompose = %{EVRD}
Obsoletes:	gimp-plugin-wavelet-decompose <= 0.1.2

%rename	gimp2.6

%description
The GIMP is an image manipulation program suitable for photo retouching,
image composition and image authoring.  Many people find it extremely useful
in creating logos and other graphics for web pages.  The GIMP has many of the
tools and filters you would expect to find in similar commercial offerings,
and some interesting extras as well.

The GIMP provides a large image manipulation toolbox, including channel
operations and layers, effects, sub-pixel imaging and anti-aliasing,
and conversions, all with multi-level undo.

This version of The GIMP includes a scripting facility, but many of the
included scripts rely on fonts that we cannot distribute.  The GIMP ftp
site has a package of fonts that you can install by yourself, which
includes all the fonts needed to run the included scripts.  Some of the
fonts have unusual licensing requirements; all the licenses are documented
in the package.  Get them in ftp://ftp.gimp.org/pub/gimp/fonts/ if you are so
inclined.  Alternatively, choose fonts which exist on your system before
running the scripts.

%files -f %{name}20.lang
%doc AUTHORS NEWS README README.i18n docs/Wilber*
%license COPYING LICENSE
%config(noreplace) %{_sysconfdir}/%{name}/*/*
%{_bindir}/%{name}
%{_bindir}/%{name}-%{abi}
%{_bindir}/%{name}-console
%{_bindir}/%{name}-console-%{abi}
%{_bindir}/%{name}-test-clipboard-%{api}
%dir %{_libdir}/%{name}/%{api}
%dir %{_libdir}/%{name}/%{api}/environ
%{_libexecdir}/%{name}-debug-tool-%{api}
%{_libdir}/%{name}/%{api}/interpreters
%{_libdir}/%{name}/%{api}/environ/default.env
%{_libdir}/%{name}/%{api}/modules
%{_libdir}/%{name}/%{api}/plug-ins
%optional %exclude %{_libdir}/%{name}/%{api}/plug-ins/*/*.py
%{_datadir}/applications/*
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_datadir}/metainfo/%{name}-data-extras.metainfo.xml
%{_datadir}/metainfo/org.%{name}.GIMP.appdata.xml
%{_mandir}/man1/%{name}-*
%{_mandir}/man1/%{name}.*
%{_mandir}/man5/%{name}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GIMP libraries
Group:		System/Libraries

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%license COPYING LICENSE
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libbase}
Summary:	GIMP libraries
Group:		System/Libraries
Conflicts:	%{_lib}gimp2.0_0 < 1:2.8.4-2

%description -n %{libbase}
This package contains a shared library for %{name}.

%files -n %{libbase}
%license COPYING LICENSE
%{_libdir}/lib%{name}base-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcolor}
Summary:	GIMP libraries
Group:		System/Libraries
Conflicts:	%{_lib}gimp2.0_0 < 1:2.8.4-2

%description -n %{libcolor}
This package contains a shared library for %{name}.

%files -n %{libcolor}
%license COPYING LICENSE
%{_libdir}/lib%{name}color-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libconfig}
Summary:	GIMP libraries
Group:		System/Libraries
Conflicts:	%{_lib}gimp2.0_0 < 1:2.8.4-2

%description -n %{libconfig}
This package contains a shared library for %{name}.

%files -n %{libconfig}
%license COPYING LICENSE
%{_libdir}/lib%{name}config-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libmath}
Summary:	GIMP libraries
Group:		System/Libraries
Conflicts:	%{_lib}gimp2.0_0 < 1:2.8.4-2

%description -n %{libmath}
This package contains a shared library for %{name}.

%files -n %{libmath}
%license COPYING LICENSE
%{_libdir}/lib%{name}math-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libmodule}
Summary:	GIMP libraries
Group:		System/Libraries
Conflicts:	%{_lib}gimp2.0_0 < 1:2.8.4-2

%description -n %{libmodule}
This package contains a shared library for %{name}.

%files -n %{libmodule}
%license COPYING LICENSE
%{_libdir}/lib%{name}module-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libthumb}
Summary:	GIMP libraries
Group:		System/Libraries
Conflicts:	%{_lib}gimp2.0_0 < 1:2.8.4-2

%description -n %{libthumb}
This package contains a shared library for %{name}.

%files -n %{libthumb}
%license COPYING LICENSE
%{_libdir}/lib%{name}thumb-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libui}
Summary:	GIMP libraries
Group:		System/Libraries
Conflicts:	%{_lib}gimp2.0_0 < 1:2.8.4-2

%description -n %{libui}
This package contains a shared library for %{name}.

%files -n %{libui}
%license COPYING LICENSE
%{_libdir}/lib%{name}ui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwidgets}
Summary:	GIMP libraries
Group:		System/Libraries
Conflicts:	%{_lib}gimp2.0_0 < 1:2.8.4-2

%description -n %{libwidgets}
This package contains a shared library for %{name}.

%files -n %{libwidgets}
%license COPYING LICENSE
%{_libdir}/lib%{name}widgets-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GIMP plugin and extension development kit
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libbase} = %{EVRD}
Requires:	%{libcolor} = %{EVRD}
Requires:	%{libconfig} = %{EVRD}
Requires:	%{libmath} = %{EVRD}
Requires:	%{libmodule} = %{EVRD}
Requires:	%{libthumb} = %{EVRD}
Requires:	%{libui} = %{EVRD}
Requires:	%{libwidgets} = %{EVRD}
Requires:	pkgconfig(gegl-0.4)
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
Development libraries and header files for writing GIMP plugins and extensions.

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_bindir}/%{name}tool-*
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man1/%{name}tool-*

#----------------------------------------------------------------------------

%if %{with python}
%package python
Summary:	GIMP python extension
Group:		Graphics

%description python
This package contains the python modules for GIMP, which act as a
wrapper to libgimp allowing the writing of plug-ins for Gimp.
This is similar to script-fu, except that you can use the full set
of Python extension modules from the plug-in, and you write plug-in
in python instead of in scheme.

%files python
%license COPYING LICENSE
%{_libdir}/%{name}/%{api}/environ/py%{name}.env
%{_libdir}/%{name}/%{api}/python
%{_libdir}/%{name}/%{api}/plug-ins/*/*.py
%{_libdir}/python%{py2_ver}/site-packages/*.pth
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fiv
%configure	\
	--disable-check-update	\
	--enable-default-binary=yes	\
	--enable-gimp-console	\
	--enable-gtk-doc=yes	\
	--enable-mp=yes		\
%if %{with python}
	--enable-python=yes	\
%else
	--enable-python=no	\
%endif
	--with-aa		\
	--with-alsa		\
	--with-bug-report-url=%{bugurl}	\
	--with-gif-compression=lzw	\
	--with-libmng		\
	--with-libxpm		\
	--with-linux-input	\
	--with-pdbgen		\
	--with-print		\
	--without-hal || cat config.log
%ifarch %{e2k}
# /usr/bin/ld: core/libappcore.a(gimppickable-contiguous-region.o):
# undefined reference to symbol '__gxx_personality_v0@@CXXABI_1.3'
sed -i '/^CCLD =/s/(CC)/(CXX)/' app/Makefile
%endif
%make_build

%install
%make_install

# workaround broken help system
HELP_DIR=%{buildroot}%{_datadir}/%{name}/%{api}/help/C
[[ -d $HELP_DIR ]] || mkdir -p $HELP_DIR
HELP_IDX=$HELP_DIR/introduction.html
echo -e '<HTML><HEAD><TITLE>GIMP Base Library</HEAD>\n<BODY><UL>' > $HELP_IDX

/bin/ls %{buildroot}%{_datadir}/gtk-doc/html/*/index.html | sed -e "s@%{buildroot}@@g" >> $HELP_IDX
perl -pi -e 's!(.*/html/)([^/]*)(/index.html)!<LI><A HREF="\1\2\3">\2</A>!g' $HELP_IDX

echo '</UL></BODY></HTML>' >> $HELP_IDX

%find_lang %{name}20 --all-name

%if %{with python}
mkdir -p %{buildroot}%{_libdir}/python%{py2_ver}/site-packages
echo %{_libdir}/%{name}/%{api}/python > %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/foggify >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/py-slice >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/python-console >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/colorxhtml >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/python-eval >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/palette-sort >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/file-openraster >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/histogram-export >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/palette-to-gradient >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
echo %{_libdir}/%{name}/%{api}/plug-ins/gradients-save-as-css >> %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{name}.pth
chmod -x %{buildroot}%{_libdir}/%{name}/%{api}/plug-ins/spyro_plus/spyro_plus.py
%endif

cp %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/2.0/

unlink %{buildroot}%{_bindir}/%{name}
cat > %{buildroot}%{_bindir}/%{name} <<"EOF"
#!/bin/sh
mkdir -p ~/.config/GIMP/2.10/{backups,brushes,CrashLog,curves,dynamics,environ,filters}
mkdir -p ~/.config/GIMP/2.10/{fonts,fractalexplorer,gfig,gflare,gimpressionist,gradients}
mkdir -p ~/.config/GIMP/2.10/{icons,internal-data,interpreters,levels,modules,palettes,patterns}
mkdir -p ~/.config/GIMP/2.10/{plug-ins,scripts,templates,themes,tmp,tool-options,tool-presets}
%{name}-%{abi} "$@"
EOF
chmod +x %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12866 |21mr|gimp-help-2-2.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Help files for Gimp
Name:		gimp-help-2
Version:	2.10.0
Release:	4
License:	GFDL
Group:		Documentation
Url:		http://docs.gimp.org/
# This is site docs.gimp.org/2.10, download by ~ wget -rl2 https://docs.gimp.org/2.10/*
# * - ca da de el en en_GB es fi fr #404hr it ja ko #404lt nl nn pt_BR ro ru #404sl #404sv zh_CN
# This file is need for use F1 in gimp:
# for i in ca da de el en en_GB es fi fr it ja ko nl nn pt_BR ro ru zh_CN; do
# wget -rl2 https://docs.gimp.org/2.10/$i/gimp-help.xml; done
# Download date: 30.09.21
Source0:	2.10.tar.xz
BuildRequires:	libwebp-tools
BuildArch:	noarch

%description
This is the HTML help for Gimp.

#----------------------------------------------------------------------------

%package ca
Summary:	Catalan translation of Gimp help
Group:		Documentation
Requires:	locales-ca
Provides:	%{name} = %{EVRD}

%description ca
This package contains the Catalan translation of Gimp help.

%files ca
%{_datadir}/gimp/2.0/help/ca

#----------------------------------------------------------------------------

%package da
Summary:	Danish translation of Gimp help
Group:		Documentation
Requires:	locales-da
Provides:	%{name} = %{EVRD}

%description da
This package contains the Danish translation of Gimp help.

%files da
%{_datadir}/gimp/2.0/help/da

#----------------------------------------------------------------------------

%package de
Summary:	German translation of Gimp help
Group:		Documentation
Requires:	locales-de
Provides:	%{name} = %{EVRD}

%description de
This package contains the German translation of Gimp help.

%files de
%{_datadir}/gimp/2.0/help/de

#----------------------------------------------------------------------------

%package el
Summary:	Greek translation of Gimp help
Group:		Documentation
Requires:	locales-el
Provides:	%{name} = %{EVRD}

%description el
This package contains the Greek translation of Gimp help.

%files el
%{_datadir}/gimp/2.0/help/el

#----------------------------------------------------------------------------

%package en
Summary:	English translation of Gimp help
Group:		Documentation
Requires:	locales-en
Provides:	%{name} = %{EVRD}
Provides:	%{name}-hr = %{EVRD}
Provides:	%{name}-lt = %{EVRD}
Provides:	%{name}-sl = %{EVRD}
Provides:	%{name}-sv = %{EVRD}

%description en
This package contains the English translation of Gimp help.

%files en
%{_datadir}/gimp/2.0/help/en

#----------------------------------------------------------------------------

%package en_GB
Summary:	English (United Kingdom) translation of Gimp help
Group:		Documentation
Requires:	locales-en
Provides:	%{name} = %{EVRD}

%description en_GB
This package contains the English (United Kingdom) translation of Gimp help.

%files en_GB
%{_datadir}/gimp/2.0/help/en_GB

#----------------------------------------------------------------------------

%package es
Summary:	Spanish translation of Gimp help
Group:		Documentation
Requires:	locales-es
Provides:	%{name} = %{EVRD}

%description es
This package contains the Spanish translation of Gimp help.

%files es
%{_datadir}/gimp/2.0/help/es

#----------------------------------------------------------------------------

%package fi
Summary:	Finnish translation of Gimp help
Group:		Documentation
Requires:	locales-fi
Provides:	%{name} = %{EVRD}

%description fi
This package contains the Finnish translation of Gimp help.

%files fi
%{_datadir}/gimp/2.0/help/fi

#----------------------------------------------------------------------------

%package fr
Summary:	French translation of Gimp help
Group:		Documentation
Requires:	locales-fr
Provides:	%{name} = %{EVRD}

%description fr
This package contains the French translation of Gimp help.

%files fr
%{_datadir}/gimp/2.0/help/fr

#----------------------------------------------------------------------------

#package hr
#Summary:	Croatian translation of Gimp help
#Group:		Documentation
#Requires:	locales-hr
#Provides:	%%{name} = %%{EVRD}

#description hr
#This package contains the Croatian translation of Gimp help.

#files hr
#{_datadir}/gimp/2.0/help/hr

#----------------------------------------------------------------------------

%package it
Summary:	Italian translation of Gimp help
Group:		Documentation
Requires:	locales-it
Provides:	%{name} = %{EVRD}

%description it
This package contains the Italian translation of Gimp help.

%files it
%{_datadir}/gimp/2.0/help/it

#----------------------------------------------------------------------------

%package ja
Summary:	Japanese translation of Gimp help
Group:		Documentation
Requires:	locales-ja
Provides:	%{name} = %{EVRD}

%description ja
This package contains the Japanese translation of Gimp help.

%files ja
%{_datadir}/gimp/2.0/help/ja

#----------------------------------------------------------------------------

%package ko
Summary:	Korean translation of Gimp help
Group:		Documentation
Requires:	locales-ko
Provides:	%{name} = %{EVRD}

%description ko
This package contains the Korean translation of Gimp help.

%files ko
%{_datadir}/gimp/2.0/help/ko

#----------------------------------------------------------------------------

#package lt
#Summary:	Lithuanian translation of Gimp help
#Group:		Documentation
#Requires:	locales-lt
#Provides:	%%{name} = %%{EVRD}

#description lt
#This package contains the Lithuanian translation of Gimp help.

#files lt
#{_datadir}/gimp/2.0/help/lt

#----------------------------------------------------------------------------

%package nl
Summary:	Dutch translation of Gimp help
Group:		Documentation
Requires:	locales-nl
Provides:	%{name} = %{EVRD}

%description nl
This package contains the Dutch translation of Gimp help.

%files nl
%{_datadir}/gimp/2.0/help/nl

#----------------------------------------------------------------------------

%package nn
Summary:	Nynorsk Norwegian translation of Gimp help
Group:		Documentation
Requires:	locales-no
Provides:	%{name} = %{EVRD}
Provides:	%{name}-no = %{EVRD}

%description nn
This package contains the Nynorsk Norwegian translation of Gimp help.

%files nn
%{_datadir}/gimp/2.0/help/nn

#----------------------------------------------------------------------------

%package pt_BR
Summary:	Portuguese translation of Gimp help
Group:		Documentation
Requires:	locales-pt
Provides:	%{name} = %{EVRD}

%description pt_BR
This package contains the Portuguese translation of Gimp help.

%files pt_BR
%{_datadir}/gimp/2.0/help/pt_BR

#----------------------------------------------------------------------------

%package ro
Summary:	Romanian translation of Gimp help
Group:		Documentation
Requires:	locales-ro
Provides:	%{name} = %{EVRD}

%description ro
This package contains the Romanian translation of Gimp help.

%files ro
%{_datadir}/gimp/2.0/help/ro

#----------------------------------------------------------------------------

%package ru
Summary:	Russian translation of Gimp help
Group:		Documentation
Requires:	locales-ru
Provides:	%{name} = %{EVRD}

%description ru
This package contains the Russian translation of Gimp help.

%files ru
%{_datadir}/gimp/2.0/help/ru

#----------------------------------------------------------------------------

#package sl
#Summary:	Slovenian translation of Gimp help
#Group:		Documentation
#Requires:	locales-sl
#Provides:	%%{name} = %%{EVRD}

#description sl
#This package contains the Slovenian translation of Gimp help.

#files sl
#{_datadir}/gimp/2.0/help/sl

#----------------------------------------------------------------------------

#package sv
#Summary:	Swedish translation of Gimp help
#Group:		Documentation
#Requires:	locales-sv
#Provides:	%%{name} = %%{EVRD}

#description sv
#This package contains the Swedish translation of Gimp help.

#files sv
#{_datadir}/gimp/2.0/help/sv

#----------------------------------------------------------------------------

%package zh_CN
Summary:	Simplified Chinese translation of Gimp help
Group:		Documentation
Requires:	locales-zh
Provides:	%{name} = %{EVRD}

%description zh_CN
This package contains the Simplified Chinese translation of Gimp help.

%files zh_CN
%defattr(-,root,root)
%{_datadir}/gimp/2.0/help/zh_CN

#----------------------------------------------------------------------------

%prep
%setup -qn 2.10

%build
# Strange files
find . -name "taj_orig.png" |sed 's/\.png$//' |xargs -P "$(nproc)" -I% mv %.png %.ppnngg
# Press
find . -name "*.jpg" |sed 's/\.jpg$//' |xargs -P "$(nproc)" -I% cwebp -quiet -q 40 %.jpg -o %.webp
find . -name "*.png" |sed 's/\.png$//' |xargs -P "$(nproc)" -I% cwebp -quiet -q 40 %.png -o %.webp
# Clear
find . -name "*.jpg" -o -name "*.png" -delete
# Rename files in links, revert artifacts
find . -name '*.css' -o -name '*.html' |xargs -P "$(nproc)" sed -i	\
	-e s/\\.jpg\"/.webp\"/g						\
	-e s/\\.png\"/.webp\"/g						\
	-e s/beavis\\.webp/beavis.jpg/g					\
	-e s/\(comme\ \\\"\\.webp\\\"\)/\(comme\ \\\".jpg\\\"\)/g	\
	-e s/taj_orig\\.webp/taj_orig.png/g
# Revert name strange files
find . -name "taj_orig.ppnngg" | sed 's/\.ppnngg$//' |xargs -P "$(nproc)" -I% mv %.ppnngg %.png

%install
mkdir -p %{buildroot}%{_datadir}/gimp/2.0/help
cp -rf * %{buildroot}%{_datadir}/gimp/2.0/help

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12867 |21mr|gimp-plugin-saveforweb-0.29.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Save for web plug-in for GIMP
Name:		gimp-plugin-saveforweb
Version:	0.29.3
Release:	5
Group:		Graphics
License:	GPLv2+
Url:		http://registry.gimp.org/node/33
Source0:	http://registry.gimp.org/files/gimp-save-for-web-%{version}.tar.bz2
Patch0000:	gimp-plugin-saveforweb-fsf.patch
Patch0001:	0001-Changed-all-Save-entries-to-Export-moved-the-menu-item-to-the-Export-subgroup.patch
Patch0002:	0002-Updated-Russian-translation-to-match-the-introduced-changes.patch
Patch0003:	0003-Allow-still-larger-images.patch
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	pkgconfig(gimp-2.0)
Requires:	gimp

%description
Save for Web allows to find compromise between minimal file size
and acceptable quality of image quickly. While adjusting various
settings, you may explore how image quality and file size change.
Options to reduce file size of an image include setting compression
quality, number or colors, resizing, cropping, Exif information
removal, etc.

%files -f gimp20-save-for-web.lang
%doc AUTHORS ChangeLog NEWS README
%license COPYING
%{_datadir}/gimp-save-for-web
%{_libdir}/gimp/2.0/plug-ins/webexport

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n gimp-save-for-web-%{version}

%build
%configure
%make

%install
%makeinstall_std

%find_lang gimp20-save-for-web

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12868 |21mr|git-2.47.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname git -d
%define profile_branch 93git-branch.sh
%define profile_env 93git-env.sh
# it's a hack remove it after perl upgrade
%define perl_vendorlib /usr/share/perl5/vendor_perl

Summary:	Global Information Tracker
Name:		git
Version:	2.47.1
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Development/Tools
Url:		http://git-scm.com/
Source0:	https://www.kernel.org/pub/software/scm/git/%{name}-%{version}.tar.xz
Source2:	gitweb.conf
Source3:	%{profile_branch}
# Do we really need it? It's not used anyway
Source4:	%{profile_env}
# for fix build on old systems (error: storage size of 'tz' isn't known)
Patch0:		git-update-clar.patch
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	xmlto
BuildRequires:	perl-CGI
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Requires:	git-core = %{EVRD}
Requires:	git-email = %{EVRD}
Recommends:	git-svn = %{EVRD}
Recommends:	gitk = %{EVRD}
Recommends:	git-scalar = %{EVRD}
Recommends:	git-arch = %{EVRD}
Recommends:	git-core-oldies = %{EVRD}
Recommends:	git-cvs = %{EVRD}

%description
This is a stupid (but extremely fast) directory content manager.  It
doesn't do a whole lot, but what it _does_ do is track directory
contents efficiently. It is intended to be the base of an efficient,
distributed source code management system. This package includes
rudimentary tools that can be used as a SCM, but you should look
elsewhere for tools for ordinary humans layered on top of this.

This is a dummy package which brings in all subpackages.

%files
# no file in the main package

#----------------------------------------------------------------------------

%package -n git-core
Summary:	Global Information Tracker
Group:		Development/Other
Requires:	diffutils
Recommends:	git-prompt
Requires:	less
Requires:	openssh-clients
Requires:	rsync
%rename	gitcompletion

%description -n git-core
This is a stupid (but extremely fast) directory content manager.  It
doesn't do a whole lot, but what it _does_ do is track directory
contents efficiently. It is intended to be the base of an efficient,
distributed source code management system. This package includes
rudimentary tools that can be used as a SCM, but you should look
elsewhere for tools for ordinary humans layered on top of this.

This are the core tools with minimal dependencies.

You may want to install subversion, cpsps and/or tla to import
repositories from other VCS.

%files -n git-core -f %{name}.lang
%doc Documentation/*.html Documentation/howto Documentation/technical Documentation/RelNotes.txt.gz
%{_sysconfdir}/emacs/site-start.d/*
%{_datadir}/bash-completion/completions/*
%{_datadir}/emacs/site-lisp/*
%{_bindir}/git
%{_bindir}/git-*
%{_libdir}/git-core
%exclude %{_libdir}/git-core/*svn*
%exclude %{_libdir}/git-core/*cvs*
%exclude %{_libdir}/git-core/git-archimport
%exclude %{_libdir}/git-core/*email*
%{_datadir}/git-core
%{_datadir}/git-gui
%{_mandir}/man7/git*.7.*
%{_mandir}/man1/git*.1.*
%{_mandir}/man5/git*.5.*
%exclude %{_mandir}/man1/*svn*.1*
%exclude %{_mandir}/man1/*cvs*.1*
%exclude %{_mandir}/man7/*cvs*.7*
%exclude %{_mandir}/man1/*email*.1*
%exclude %{_mandir}/man1/git-archimport.1*

#----------------------------------------------------------------------------

%package scalar
Summary:	Tools for git scalability
Group:		Development/Tools
Requires:	git-core = %{EVRD}

%description scalar
Scalar is a tool that helps Git scale to some of the largest Git repositories.
It achieves this by enabling some advanced Git features, such as:

* Partial clone: reduces time to get a working repository by not downloading
  all Git objects right away.

* Background prefetch: downloads Git object data from all remotes every
  hour, reducing the amount of time for foreground git fetch calls.

* Sparse-checkout: limits the size of your working directory.

* File system monitor: tracks the recently modified files and eliminates
  the need for Git to scan the entire worktree.

* Commit-graph: accelerates commit walks and reachability calculations,
  speeding up commands like git log.

* Multi-pack-index: enables fast object lookups across many pack-files.

* Incremental repack: Repacks the packed Git data into fewer pack-file
  without disrupting concurrent commands by using the multi-pack-index.

%files scalar
%{_bindir}/scalar
%{_mandir}/man1/scalar.1*

#----------------------------------------------------------------------------

%package -n gitk
Summary:	Git revision tree visualiser
Group:		Development/Other
Requires:	git-core = %{EVRD}
Requires:	tcl >= 8.4
Requires:	tk >= 8.4

%description -n gitk
Git revision tree visualiser.

%files -n gitk
%{_bindir}/gitk
%{_mandir}/*/gitk*
%{_datadir}/gitk

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Git development files
Group:		Development/Other
Provides:	git-devel = %{EVRD}

%description -n %{devname}
Development files for git.

%files -n %{devname}
%{_includedir}/git
%{_libdir}/libgit.a

#----------------------------------------------------------------------------

%package -n git-svn
Summary:	Git tools for importing Subversion repositories
Group:		Development/Other
Requires:	git-core = %{EVRD}
Requires:	perl-Git
Requires:	perl-SVN
Requires:	perl-Git-SVN
Requires:	subversion

%description -n git-svn
Git tools for importing Subversion repositories.

%files -n git-svn
%{_libdir}/git-core/*svn*
%{_mandir}/man1/*svn*.1*

#----------------------------------------------------------------------------

%package -n git-cvs
Summary:	Git tools for importing CVS repositories
Group:		Development/Other
Requires:	git-core = %{EVRD}
Recommends:	cvs
Recommends:	cvsps

%description -n git-cvs
Git tools for importing CVS repositories.

%files -n git-cvs
%{_libdir}/git-core/*cvs*
%{_mandir}/man1/*cvs*.1*
%{_mandir}/man7/*cvs*.7*

#----------------------------------------------------------------------------

%package -n git-arch
Summary:	Git tools for importing Arch repositories
Group:		Development/Other
Requires:	git-core = %{EVRD}
Recommends:	tla

%description -n git-arch
Git tools for importing Arch repositories.

%files -n git-arch
%{_libdir}/git-core/git-archimport
%{_mandir}/man1/git-archimport.1*

#----------------------------------------------------------------------------

%package -n git-email
Summary:	Git tools for sending email
Group:		Development/Other
Requires:	git-core = %{EVRD}
Recommends:	perl-Authen-SASL
Recommends:	perl-MIME-Base64

%description -n git-email
Git tools for sending email.

%files -n git-email
%{_libdir}/git-core/*email*
%{_mandir}/man1/*email*.1*
%{_mandir}/man5/gitmailmap.5.*

#----------------------------------------------------------------------------

%package -n perl-Git
Summary:	Perl interface to Git
Group:		Development/Perl
Requires:	git-core = %{EVRD}

%description -n perl-Git
Perl interface to Git

%files -n perl-Git
%{perl_vendorlib}/Git.pm
%dir %{perl_vendorlib}/Git
%{perl_vendorlib}/Git/I18N.pm
%{perl_vendorlib}/Git/IndexInfo.pm
%{perl_vendorlib}/Git/Packet.pm
%{perl_vendorlib}/FromCPAN
%{perl_vendorlib}/Git/LoadCPAN.pm
%{perl_vendorlib}/Git/LoadCPAN
%{_mandir}/man3/Git.3pm*

#----------------------------------------------------------------------------

%package -n perl-Git-SVN
Summary:	Perl interface to Git SVN
Group:		Development/Perl
Requires:	perl-Git = %{EVRD}

%description -n perl-Git-SVN
Perl interface to Git SVN.

%files -n perl-Git-SVN
%{perl_vendorlib}/Git/SVN
%{perl_vendorlib}/Git/SVN.pm

#----------------------------------------------------------------------------

%package -n git-core-oldies
Summary:	Git obsolete commands, bound to extinction
Group:		Development/Other
Requires:	git-core = %{EVRD}

%description -n git-core-oldies
Git obsolete commands, bound to extinction

%files -n git-core-oldies

#----------------------------------------------------------------------------

%package -n gitweb
Summary:	cgi-bin script for browse a git repository with web browser
Group:		System/Servers
Requires:	git-core = %{EVRD}
Requires:	apache-mod_perl

%description -n gitweb
cgi-bin script for browse a git repository with web browser.

%files -n gitweb
%doc gitweb/README
%config(noreplace) %{_sysconfdir}/gitweb.conf
%config(noreplace) %{_webappconfdir}/gitweb.conf
%{_datadir}/gitweb
%{_mandir}/man1/gitweb.1*
%{_mandir}/man5/gitweb.conf.5*

#----------------------------------------------------------------------------

%package -n git-prompt
Summary:	Shows the current git branch in your bash prompt
Group:		Shells
Requires:	git-core = %{EVRD}
Requires:	bash-completion

%description -n git-prompt
Shows the current git branch in your bash prompt.

%files -n git-prompt
%{_sysconfdir}/profile.d/%{profile_branch}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# remove borring file
rm -f Documentation/.gitignore
# prefix gitweb css/png files with /gitweb
perl -pi -e 's!^(GITWEB_CSS|GITWEB_LOGO|GITWEB_FAVICON) = !$1 = /gitweb/!' Makefile

%build
%global optflags %{optflags} -fno-strict-aliasing
# same flags and prefix must be passed for make test too
%define git_make_params prefix=%{_prefix} CC=%{__cc} gitexecdir=%{_libdir}/git-core CFLAGS="%{optflags}" GITWEB_CONFIG=%{_sysconfdir}/gitweb.conf DOCBOOK_XSL_172=0 INSTALLDIRS=vendor perllibdir=%{perl_vendorlib}
%make %{git_make_params} all doc gitweb

# Produce RelNotes.txt.gz
# sed trick changes "-x.y.z.txt" to "-x.y.z.0.txt" for ordering, then undoes it
# use awk to print a newline before each RelNotes header
cd Documentation/RelNotes \
&& relnotesls="`find . -name '*.txt' | sed 's/\([0-9]\.[0-9]\.[0-9]\)\.txt/\1.0.txt/' | sort -nr | sed 's/\([0-9]\.[0-9]\.[0-9]\)\.0\.txt/\1.txt/'`" \
&& awk 'FNR == 1 { print "" } { print }' $relnotesls | gzip -9c >../RelNotes.txt.gz

%install
mkdir -p %{buildroot}%{_bindir}
%make_install %{?with_docs:install-doc} CC=%{__cc} AR=%{__ar} prefix=%{_prefix} gitexecdir=%{_libdir}/git-core CFLAGS="%{optflags}" INSTALLDIRS=vendor perllibdir=%{perl_vendorlib}
make install-doc prefix=%{_prefix} gitexecdir=%{_libdir}/git-core   DESTDIR=%{buildroot}

# Avoid dependencies on obscure perl modules
chmod -x contrib/mw-to-git/git-remote-mediawiki.perl

mkdir -p %{buildroot}%{_includedir}/git
cp *.h %{buildroot}%{_includedir}/git

mkdir -p %{buildroot}%{_libdir}
install -m 644 libgit.a %{buildroot}%{_libdir}/libgit.a
mkdir -p %{buildroot}/%{perl_vendorlib}
rm -f %{buildroot}%{_mandir}/man3/private-Error.3pm*

mkdir -p %{buildroot}%{_datadir}/gitweb/static
install -m 755 gitweb/gitweb.cgi %{buildroot}%{_datadir}/gitweb
install -m 644 gitweb/static/*.css gitweb/static/*.png %{buildroot}%{_datadir}/gitweb/static/

mkdir -p %{buildroot}%{_sysconfdir}
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/gitweb.conf
# apache configuration
mkdir -p %{buildroot}%{_webappconfdir}
cat > %{buildroot}%{_webappconfdir}/gitweb.conf <<EOF
# gitweb configuration
Alias /gitweb %{_datadir}/gitweb

<Directory %{_datadir}/gitweb>
	Require all granted
	Options ExecCgi
	DirectoryIndex gitweb.cgi
	AddHandler cgi-script .cgi
</Directory>
EOF

# fix .sp in man files
find %{buildroot}/%{_mandir} -type f | xargs perl -e 's/\.sp$/\n\.sp/g' -pi

# emacs VC backend:
mkdir -p %{buildroot}{%{_datadir}/emacs/site-lisp,/etc/emacs/site-start.d}
install -m 644 contrib/emacs/*.el %{buildroot}%{_datadir}/emacs/site-lisp
cat >%{buildroot}/etc/emacs/site-start.d/vc_git.el <<EOF
(add-to-list 'vc-handled-backends 'GIT)
EOF

# install bash-completion file
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
install -m644 contrib/completion/git-completion.bash \
	%{buildroot}%{_datadir}/bash-completion/completions/git
install -m644 contrib/completion/git-prompt.sh \
	%{buildroot}%{_datadir}/bash-completion/completions/git-prompt

# And the prompt manipulation file
install -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/profile.d/%{profile_branch}

%find_lang %{name}

%check
# t9502 t9501 t9500 gitweb test need internet connection
# t1517.6 'imap-send outside repository'
GIT_SKIP_TESTS="t9001 t9902 t9500 t9501 t9502 t1517.6"
%ifarch aarch64 %{arm} %{power64}
# Skip tests which fail on aarch64, arm, and ppc
#
# The following 2 tests use run_with_limited_cmdline, which calls ulimit -s 128
# to limit the maximum stack size.
# t5541.35 'push 2000 tags over http'
# t5551.25 'clone the 2,000 tag repo to check OS command line overflow'
GIT_SKIP_TESTS="$GIT_SKIP_TESTS t5541.35 t5551.25"
%endif

export GIT_SKIP_TESTS
# Set LANG so various UTF-8 tests are run
export LANG=en_US.UTF-8

# Run the tests
%__make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12869 |21mr|gjs-1.73.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api		1.0
%define major		0
%define girmajor	1.0
%define libname		%mklibname %{name} %{major}
%define devname		%mklibname %{name} -d
%define girname		%mklibname %{name}-gir %{girmajor}

%global __requires_exclude ^devel\\((libmozjs-91(.*))

Summary:	JavaScript bindings based on gobject-introspection
Name:		gjs
Version:	1.73.1
Release:	2
License:	BSD
Group:		Development/Other
Url:		https://download.gnome.org/sources/gjs
Source0:	https://download.gnome.org/sources/gjs/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	dbus
BuildRequires:	meson
BuildRequires:	readline-devel
BuildRequires:	systemtap-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-gobject)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(mozjs-91)
BuildRequires:	pkgconfig(sysprof-capture-4)
Provides:	/usr/bin/gjs
Provides:	/usr/bin/gjs-console

%description
This package contains JavaScript bindings based on gobject-introspection.

%files
%doc COPYING NEWS
%{_bindir}/gjs
%{_bindir}/gjs-console

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	JavaScript bindings based on gobject-introspection
Group:		System/Libraries

%description -n %{libname}
This package contains JavaScript bindings based on gobject-introspection.

%files -n %{libname}
%{_libdir}/libgjs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/gjs/girepository-1.0/GjsPrivate-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	JavaScript bindings based on gobject-introspection
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains JavaScript bindings based on gobject-introspection.

%files -n %{devname}
%{_datadir}/gjs-%{api}/lsan/lsan.supp
%{_datadir}/gjs-%{api}/valgrind/gjs.supp
%{_includedir}/gjs-%{api}
%{_libdir}/libgjs.so
%{_libdir}/pkgconfig/gjs-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dinstalled_tests=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12870 |21mr|gl2ps-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname gl2ps %{major}
%define libname_virt    gl2ps
%define develname %mklibname gl2ps -d


Summary:	An OpenGL to PostScript printing library
Name:		gl2ps
Version:	1.4.2
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Source0:	http://www.geuz.org/gl2ps/src/%{name}-%{version}.tgz
URL:		http://www.geuz.org/gl2ps/
BuildRequires:	cmake
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)

%description
GL2PS is a C library providing high quality vector output for any
OpenGL application. The main difference between GL2PS and other
similar libraries is the use of sorting algorithms capable of handling
intersecting and stretched polygons, as well as non manifold objects.
GL2PS provides advanced smooth shading and text rendering, culling of
invisible primitives, mixed vector/bitmap output, and much more...

GL2PS can currently create PostScript (PS), Encapsulated PostScript
(EPS) and Portable Document Format (PDF) files, as well as LaTeX files
for the text fragments. Adding new vector output formats should be
relatively easy (and amongst the formats we would be interested in
adding, SVG is first in line). Meanwhile, you can use the excellent
pstoedit program to transform the PostScript files generated by GL2PS
into many other vector formats such as xfig, cgm, wmf, etc.

#-----------------------------------------------------------------------
%package -n %{libname}
Summary: An OpenGL to PostScript printing library
Group:  System/Libraries
Provides: %{name} = %{EVRD}
Provides: %{libname_virt} = %{version}-%{release}

%description -n %libname
GL2PS is a C library providing high quality vector output for any
OpenGL application. The main difference between GL2PS and other
similar libraries is the use of sorting algorithms capable of handling
intersecting and stretched polygons, as well as non manifold objects.
GL2PS provides advanced smooth shading and text rendering, culling of
invisible primitives, mixed vector/bitmap output, and much more...

GL2PS can currently create PostScript (PS), Encapsulated PostScript
(EPS) and Portable Document Format (PDF) files, as well as LaTeX files
for the text fragments. Adding new vector output formats should be
relatively easy (and amongst the formats we would be interested in
adding, SVG is first in line). Meanwhile, you can use the excellent
pstoedit program to transform the PostScript files generated by GL2PS
into many other vector formats such as xfig, cgm, wmf, etc.

%files -n %libname
%doc COPYING.GL2PS COPYING.LGPL README.txt
%attr(755,root,root) %{_libdir}/libgl2ps.so.*

#-----------------------------------------------------------------------

%package -n %develname
Summary:        Header files for GL2PS library
Group:          System/Libraries
Requires:       %{name} = %{EVRD}
Requires:       pkgconfig(gl)
Provides:       gl2ps-devel = %{version}-%{release}


%description -n %develname
Header files for GL2PS library.

%files -n %develname
%doc gl2ps.pdf gl2psTest*.c
%{_libdir}/libgl2ps.so
%{_includedir}/gl2ps.h
%{_docdir}/gl2ps

#-----------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%apply_patches

%build
%cmake
%make

%install
pushd ./build
%makeinstall_std
rm %{buildroot}%{_libdir}/libgl2ps.a



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12871 |21mr|glade-3.38.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver		%(echo %{version}|cut -d. -f1,2)

%define api		2
%define major		13
%define girmajor	2.0

%define libname 	%mklibname gladeui %{api} %{major}
%define girname		%mklibname gladeui-gir %{girmajor}
%define devname		%mklibname gladeui %{api} -d

Summary:	GTK+ / GNOME 3 widget builder
Name:		glade
Version:	3.38.2
Release:	9
License:	GPLv2+
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/glade
Source0:	https://download.gnome.org/sources/glade/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		0001-fix-for-new-meson.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gtk-doc
BuildRequires:	gnome-doc-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)



%description
Glade is a RAD tool to enable quick & easy development of user interfaces
for the Gtk+ toolkit and the GNOME desktop environment.

The user interfaces designed in Glade are stored in XML format,
enabling easy integration with external tools. In particular libglade can
load the XML files and create the interfaces at runtime.

Other tools are available which can turn the XML files into source code
in languages such as C++, Perl and Python.

%files -f %{name}.lang
%doc AUTHORS TODO
%{_bindir}/%{name}*
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/modules/
%{_libdir}/%{name}/modules/libgladegtk.so
%{_libdir}/%{name}/modules/libgladepython.so
%{_datadir}/%{name}
%{_datadir}/applications/org.gnome.Glade.desktop
%{_datadir}/icons/hicolor/*/apps/org.gnome.Glade*
%{_datadir}/icons/hicolor/symbolic/apps/glade-brand-symbolic.svg
%{_mandir}/man1/glade*
%{_appdatadir}/org.gnome.Glade.appdata.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries required for %{name}
Group:		System/Libraries
Provides:	libgladeui = %{EVRD}

%description -n %{libname}
Libraries and file require to run program built with %{name}.

%files -n %{libname}
%{_libdir}/libgladeui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and include files for libgladeui (%{name})
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
Development libraries, headers files and documentation needed in order
to develop applications using libgladeui (%{name}).

%files -n %{devname}
%doc NEWS
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/libgladeui-2.0/
%{_libdir}/pkgconfig/gladeui-2.0.pc
%{_libdir}/libgladeui-%{api}.so
%{_datadir}/gettext/its/%{name}-catalog.*
%{_datadir}/gir-1.0/Gladeui-%{girmajor}.gir

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for libgladeui (%{name})
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for libgladeui (%{name}).

%files -n %{girname}
%{_libdir}/girepository-1.0/Gladeui-%{girmajor}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

# menu
desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="GUIDesigner" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12872 |21mr|glassfish-annotation-api-1.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}
%global oname javax.annotation-api
Name:          glassfish-annotation-api
Version:       1.2
Release:       16
Summary:       Common Annotations API Specification (JSR 250)
License:       CDDL or GPLv2 with exceptions
# http://jcp.org/en/jsr/detail?id=250
URL:           http://glassfish.java.net/
# svn export https://svn.java.net/svn/glassfish~svn/tags/javax.annotation-api-1.2/ glassfish-annotation-api-1.2
# tar czf glassfish-annotation-api-1.2-src-svn.tar.gz glassfish-annotation-api-1.2
Source0:       %{name}-%{namedversion}-src-svn.tar.gz

BuildRequires: jvnet-parent
BuildRequires: glassfish-legal

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: maven-remote-resources-plugin
BuildRequires: maven-source-plugin
BuildRequires: spec-version-maven-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Common Annotations APIs for the Java Platform (JSR 250).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%mvn_file :%{oname} %{name}

%build

%mvn_build

sed -i 's/\r//' target/classes/META-INF/LICENSE.txt
cp -p target/classes/META-INF/LICENSE.txt .

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12873 |21mr|glassfish-dtd-parser-1.2-0.20.20120120svn
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-dtd-parser
Version:       1.2
Release:       0.20.20120120svn
Summary:       Library for parsing XML DTDs
License:       CDDL-1.1 and GPLv2 with exceptions
Url:           http://java.net/projects/dtd-parser
# svn export https://svn.java.net/svn/dtd-parser~svn/trunk/dtd-parser glassfish-dtd-parser-1.2-SNAPSHOT
# find glassfish-dtd-parser-1.2-SNAPSHOT/ -name '*.jar' -delete
# tar czf glassfish-dtd-parser-1.2-SNAPSHOT-src-svn.tar.gz glassfish-dtd-parser-1.2-SNAPSHOT
Source0:       %{name}-%{version}-SNAPSHOT-src-svn.tar.gz
BuildRequires: bsf
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: sonatype-oss-parent

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Library for parsing XML DTDs.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}-SNAPSHOT

%build

%mvn_file :dtd-parser %{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12874 |21mr|glassfish-ejb-api-3.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-ejb-api
Version:       3.2
Release:       9
Summary:       Java EJB 3.2 API Design Specification
License:       CDDL or GPLv2 with exceptions
URL:           https://java.net/projects/ejb-spec/
# svn export https://svn.java.net/svn/glassfish~svn/tags/javax.ejb-api-3.2 glassfish-ejb-api-3.2
# tar cJf glassfish-ejb-api-3.2.tar.xz glassfish-ejb-api-3.2
Source0:       %{name}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(javax.transaction:javax.transaction-api)
BuildRequires: mvn(javax.xml.rpc:javax.xml.rpc-api)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.glassfish:legal)
BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Project GlassFish Enterprise JavaBean API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :glassfishbuild-maven-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin

%pom_xpath_remove "pom:Embed-Dependency"

# fix build failure. 'useDefaultManifestFile' has been removed from the maven-jar-plugin >= 3.0.0
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:useDefaultManifestFile"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration" '
<archive>
  <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>'

%mvn_file : %{name}

%build

%mvn_build

cp -p target/classes/META-INF/LICENSE.txt .
sed -i 's/\r//' LICENSE.txt

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12875 |21mr|glassfish-el-3.0.1-0.11.b08
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -b08
%global namedversion %{version}%{?namedreltag}

Name:          glassfish-el
Version:       3.0.1
Release:       0.11.b08
Summary:       J2EE Expression Language Implementation
License:       CDDL-1.1 or GPLv2 with exceptions
URL:           http://uel.java.net
# svn export https://svn.java.net/svn/uel~svn/tags/javax.el-3.0.1-b08/ glassfish-el-3.0.1-b08
# rm -r glassfish-el-3.0.1-b08/fonts
# rm -r glassfish-el-3.0.1-b08/parent-pom
# rm -r glassfish-el-3.0.1-b08/repo
# rm -r glassfish-el-3.0.1-b08/spec
# rm -r glassfish-el-3.0.1-b08/uel
# rm -r glassfish-el-3.0.1-b08/www
# tar cJf glassfish-el-3.0.1-b08.tar.xz glassfish-el-3.0.1-b08
Source0:       %{name}-%{namedversion}-clean.tar.xz
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit47)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.glassfish:legal)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This project provides an implementation of the Expression Language (EL).
The main goals are:
 * Improves current implementation: bug fixes and performance improvements
 * Provides API for use by other tools, such as Netbeans

%package api
Summary:       Expression Language 3.0 API
License:       (CDDL or GPLv2 with exceptions) and ASL 2.0

%description api
Expression Language 3.0 API.

%package javadoc
Summary:       Javadoc for %{name}
License:       (CDDL or GPLv2 with exceptions) and ASL 2.0

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

cp -p %{SOURCE1} .

%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin -r :findbugs-maven-plugin api
%pom_remove_plugin -r :glassfish-copyright-maven-plugin

# Useless tasks
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-release-plugin api
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-source-plugin api

# Fix javadoc task
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:executions/pom:execution/pom:goals"
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:executions/pom:execution/pom:goals" api
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:executions/pom:execution/pom:configuration/pom:sourcepath"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions/pom:execution/pom:configuration" "<additionalparam>-Xdoclint:none</additionalparam>"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions/pom:execution/pom:configuration" "<additionalparam>-Xdoclint:none</additionalparam>" api

# Fix apis version
%pom_xpath_set "pom:project/pom:version" %{namedversion} api
# Add missing build dep
%pom_add_dep javax.el:javax.el-api:'${project.version}'

# Move code without build-helper plugin in the proper folder
%pom_remove_plugin -r :build-helper-maven-plugin
mv impl/src/main src

# Do not use ant
%pom_add_plugin org.codehaus.mojo:javacc-maven-plugin:2.6 . "
<executions>
    <execution>
        <id>jjtree-javacc</id>
        <goals>
            <goal>jjtree-javacc</goal>
        </goals>
        <configuration>
            <sourceDirectory>src/main/java/com/sun/el/parser</sourceDirectory>
            <outputDirectory>src/main/java/com/sun/el/parser</outputDirectory>
        </configuration>
    </execution>
</executions>"

# Fix impl resources path
%pom_xpath_remove "pom:build/pom:resources/pom:resource"
%pom_xpath_inject "pom:build/pom:resources" "
    <resource>
        <directory>src/main/java</directory>
        <includes>
            <include>**/*.properties</include>
            <include>**/*.xml</include>
        </includes>
    </resource>"

# This is a dummy POM added just to ease building in the RPM platforms
cat > pom-parent.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.glassfish.web</groupId>
  <artifactId>javax.el-root</artifactId>
  <version>%{namedversion}</version>
  <packaging>pom</packaging>
  <name>%{name} Parent</name>
  <modules>
    <module>api</module>
    <module>pom.xml</module>
  </modules>
</project>
EOF

%mvn_file javax.el:javax.el-api %{name}-api
%mvn_alias javax.el:javax.el-api "javax.el:el-api" "org.glassfish:javax.el-api"

%mvn_file org.glassfish:javax.el %{name}
%mvn_alias org.glassfish:javax.el "org.eclipse.jetty.orbit:com.sun.el" "org.glassfish.web:javax.el" "org.glassfish:javax.el-impl"

%mvn_package :javax.el-root __noinstall

%build

%mvn_build -s -- -f pom-parent.xml

%install
%mvn_install

cp -p api/target/classes/META-INF/LICENSE.txt .
cp -p api/src/main/javadoc/doc-files/*-spec-license.html .

%files -f .mfiles-javax.el
%files api -f .mfiles-javax.el-api
%license LICENSE.txt LICENSE-2.0.txt *-spec-license.html

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12876 |21mr|glassfish-enterprise-concurrent-1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             glassfish-enterprise-concurrent
Version:          1.0
Release:          11
Summary:          Concurrency Utilities for Java EE
License:          CDDL or GPLv2 with exceptions
Url:              https://java.net/projects/cu-javaee

# svn export https://svn.java.net/svn/cu-javaee~source-code-repository/tags/javax.enterprise.concurrent-1.0/  glassfish-enterprise-concurrent-1.0
# tar -zcvf glassfish-enterprise-concurrent-1.0.tar.gz glassfish-enterprise-concurrent-1.0
Source0:          glassfish-enterprise-concurrent-%{version}.tar.gz
Source1:          cddl.txt

BuildRequires:    maven-local
BuildRequires:    mvn(javax.enterprise.concurrent:javax.enterprise.concurrent-api)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(net.java:jvnet-parent:pom:)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:    mvn(org.glassfish.build:spec-version-maven-plugin)
BuildRequires:    mvn(org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Reference Implementation for JSR 236 - Concurrency Utilities for Java EE

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n glassfish-enterprise-concurrent-%{version}

# Useless tasks
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"
%pom_remove_plugin :maven-source-plugin

%pom_change_dep "javax:javaee-web-api" "org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec:1.0.1.Final"

# Build problem with maven-bundle-plugin >= 3.0.1
# Remove license header
mv osgi.bundle osgi.bundle.old
echo '-exportcontents: \
                        org.glassfish.enterprise.concurrent; \
                        org.glassfish.enterprise.concurrent.internal; \
                        org.glassfish.enterprise.concurrent.spi; version=1.0' >> osgi.bundle

# Remove deprecated instruction
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:configuration/pom:useDefaultManifestFile"
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:configuration" '
<archive>
 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>'
              
cp %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license cddl.txt

%files javadoc -f .mfiles-javadoc
%license cddl.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12877 |21mr|glassfish-enterprise-concurrent-api-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             glassfish-enterprise-concurrent-api
Version:          1.0
Release:          13
Summary:          Concurrency Utilities API for Java EE
License:          CDDL or GPLv2 with exceptions
Url:              https://java.net/projects/cu-javaee

# svn export https://svn.java.net/svn/concurrency-ee-spec~source-code-repository/tags/javax.enterprise.concurrent-api-1.0 glassfish-enterprise-concurrent-api-1.0
# tar -zcvf glassfish-enterprise-concurrent-api-1.0.tar.gz glassfish-enterprise-concurrent-api-1.0
Source0:          glassfish-enterprise-concurrent-api-%{version}.tar.gz
Source1:          cddl.txt

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(net.java:jvnet-parent:pom:)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.glassfish.build:spec-version-maven-plugin)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
API for JSR 236 - Concurrency Utilities for Java EE

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n glassfish-enterprise-concurrent-api-%{version}

cp %{SOURCE1} .

%pom_remove_plugin "org.codehaus.mojo:buildnumber-maven-plugin"

%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-jxr-plugin
# Fix javadoc doclint
%pom_remove_plugin :maven-javadoc-plugin
# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

# Remove deprecated instruction
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:configuration/pom:useDefaultManifestFile"
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:configuration" '
<archive>
 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>'

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license cddl.txt

%files javadoc -f .mfiles-javadoc
%license cddl.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12878 |21mr|glassfish-fastinfoset-1.2.13-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-fastinfoset
Version:       1.2.13
Release:       12
Summary:       Fast Infoset
License:       ASL 2.0
URL:           https://fi.java.net
# svn export https://svn.java.net/svn/fi~svn/tags/fastinfoset-project-1.2.13/ glassfish-fastinfoset-1.2.13
# find glassfish-fastinfoset-1.2.13/ -name '*.class' -delete
# find glassfish-fastinfoset-1.2.13/ -name '*.jar' -delete
# rm -rf glassfish-fastinfoset-1.2.13/roundtrip-tests
# tar czf glassfish-fastinfoset-1.2.13-src-svn.tar.gz glassfish-fastinfoset-1.2.13
Source0:       %{name}-%{version}-src-svn.tar.gz
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt
# add xmlstreambuffer 1.5.x support
Patch0:        %{name}-1.2.12-utilities-FastInfosetWriterSAXBufferProcessor.patch

BuildRequires: maven-local
BuildRequires: mvn(com.sun.xml.stream.buffer:streambuffer)
BuildRequires: mvn(com.sun.xsom:xsom)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Fast Infoset specifies a standardized binary encoding for the XML Information
Set. An XML infoset (such as a DOM tree, StAX events or SAX events in
programmatic representations) may be serialized to an XML 1.x document or, as
specified by the Fast Infoset standard, may be serialized to a fast infoset
document.  Fast infoset documents are generally smaller in size and faster to
parse and serialize than equivalent XML documents.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
%patch0 -p0

cp %{SOURCE1} .

# Remove wagon-webdav
%pom_xpath_remove "pom:build/pom:extensions"

%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-antrun-extended-plugin
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin

%pom_disable_module roundtrip-tests
%pom_disable_module samples

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
 <execution>
  <id>default-jar</id>
  <phase>skip</phase>
 </execution>" fastinfoset

%mvn_file :FastInfoset %{name}
%mvn_file :FastInfosetUtilities %{name}-utilities

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license copyright.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license copyright.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12879 |21mr|glassfish-gmbal-3.2.0-0.15.b003
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -b003
%global namedversion %{version}%{?namedreltag}
Name:          glassfish-gmbal
Version:       3.2.0
Release:       0.15.b003
Summary:       GlassFish MBean Annotation Library
License:       CDDL or GPLv2 with exceptions
URL:           http://java.net/projects/gmbal/pages/Home
# hg clone -r VERSION-3.2.0-b003 https://hg.java.net/hg/gmbal~master glassfish-gmbal-3.2.0-b003
# find glassfish-gmbal-3.2.0-b003/ -name '*.jar' -delete
# find glassfish-gmbal-3.2.0-b003/ -name '*.class' -delete
# find glassfish-gmbal-3.2.0-b003/ -name '*.tgz' -delete
# find glassfish-gmbal-3.2.0-b003/ -name '*.zip' -delete
# rm -rf glassfish-gmbal-3.2.0-b003/lib/* glassfish-gmbal-3.2.0-b003/.hg
# tar cJf glassfish-gmbal-3.2.0-b003-src-hg.tar.xz glassfish-gmbal-3.2.0-b003
Source0:       %{name}-%{namedversion}-src-hg.tar.xz
Source1:       %{name}-%{namedversion}-01-build.xml

BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: aqute-bnd
BuildRequires: glassfish-management-api
BuildRequires: glassfish-pfl
BuildRequires: javapackages-local
BuildRequires: junit

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The GlassFish MBean Annotation Library (gmbal, pronounced "Gumball")
is a library for using annotations to create Open MBeans. There is similar
functionality in JSR 255 for JDK 7, but gmbal only requires JDK 5. Gmbal
also supports JSR 77 ObjectNames and the GlassFish Version 3 AMX 
requirements for MBeans. AS a consequence, gmbal-enabled classes
will be fully manageable in GlassFish v3 using the standard GlassFish
v3 admin tools, while still being manageable with generic MBean tools
when not run under GlassFish v3.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

cp -p %{SOURCE1} build.xml

# This test fails on java8
rm -r test/org/glassfish/gmbal/impl/AMXClientTest.java

%build

%ant jars javadoc test

bnd wrap -p make/gmbal.bnd -o dist/gmbal.bar dist/gmbal.jar
mv dist/gmbal.bar dist/gmbal.jar
bnd wrap -p make/gmbal-api-only.bnd -o dist/gmbal-api-only.bar dist/gmbal-api-only.jar
mv dist/gmbal-api-only.bar dist/gmbal-api-only.jar

%install
%mvn_file org.glassfish.gmbal:gmbal %{name}
%mvn_file org.glassfish.gmbal:gmbal-api-only %{name}-api-only
%mvn_artifact make/gmbal.pom dist/gmbal.jar
%mvn_artifact make/gmbal-api-only.pom dist/gmbal-api-only.jar
%mvn_install -J dist/javadoc

%files -f .mfiles
%license legal/LICENSE.TXT

%files javadoc -f .mfiles-javadoc
%license legal/LICENSE.TXT


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12880 |21mr|glassfish-ha-api-3.1.9-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-ha-api
Version:       3.1.9
Release:       13
Summary:       High Availability APIs and SPI
License:       CDDL or GPLv2 with exceptions
URL:           http://glassfish.java.net/
# svn export https://svn.java.net/svn/glassfish~svn/tags/ha-api-3.1.9 glassfish-ha-api-3.1.9
# tar czf glassfish-ha-api-3.1.9-src-svn.tar.gz glassfish-ha-api-3.1.9
Source0:       %{name}-%{version}-src-svn.tar.gz
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# glassfish-ha-api package don't include the license file
Source1:       glassfish-LICENSE.txt

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.glassfish.hk2:hk2-api)
BuildRequires: mvn(org.glassfish.hk2:osgiversion-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
GlassFish High Availability APIs and SPI.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

# Remove support for hk2-jar
%pom_xpath_remove "pom:supportedProjectTypes"
%pom_remove_plugin org.glassfish.hk2:hk2-maven-plugin

%pom_xpath_set pom:packaging bundle
%pom_xpath_inject "pom:plugin[pom:artifactId ='maven-bundle-plugin']" "
<version>2.5.4</version>
<extensions>true</extensions>"

%pom_change_dep :hk2 :hk2-api

# META-INF/inhabitants/default contents ...not available without hk2
#class=org.glassfish.ha.store.impl.NoOpBackingStoreFactory,index=org.glassfish.ha.store.api.BackingStoreFactory:noop
#class=org.glassfish.ha.store.spi.ObjectInputStreamWithLoader

cp -p %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%mvn_file :ha-api %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12881 |21mr|glassfish-hk2-2.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Set this flag to build with reduced dependency set
%bcond_with jp_minimal

%global extra_version 1.0.3

Name:          glassfish-hk2
Version:       2.5.0
Release:       2
Summary:       Glassfish Hundred Kilobytes Kernel
License:       EPL-2.0 or GPLv2 with exceptions
URL:           https://github.com/eclipse-ee4j/glassfish-hk2/
Source0:       https://github.com/eclipse-ee4j/glassfish-hk2/archive/%{version}-RELEASE/%{name}-%{version}.tar.gz
Source1:       https://github.com/eclipse-ee4j/glassfish-hk2-extra/archive/%{extra_version}-RELEASE/%{name}-extra-%{extra_version}.tar.gz
Source2:       hk2-inhabitant-generator-osgi.bundle

# unbundles tiger-types from hk2-utils osgi metadata and
# fixes invalid whitespace in hk2-core osgi metadata
Patch0:        0001-OSGi-metadata-fixes.patch
# fixed some test failures
Patch1:        0002-Fixed-tests.patch

BuildRequires:  maven-local
BuildRequires:  mvn(aopalliance:aopalliance)
BuildRequires:  mvn(javax.annotation:javax.annotation-api)
BuildRequires:  mvn(javax.enterprise:cdi-api)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.shared:maven-osgi)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.javassist:javassist)
BuildRequires:  mvn(org.osgi:osgi.cmpn)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.ow2.asm:asm-all)
%if %{without jp_minimal}
BuildRequires:  mvn(args4j:args4j)
BuildRequires:  mvn(com.google.inject:guice)
BuildRequires:  mvn(com.google.protobuf:protobuf-java)
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(javax.el:javax.el-api)
BuildRequires:  mvn(javax.json:javax.json-api)
BuildRequires:  mvn(javax.validation:validation-api)
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
BuildRequires:  mvn(org.apache.bcel:bcel)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.bundlerepository)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.glassfish:javax.json)
BuildRequires:  mvn(org.hibernate:hibernate-validator)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.springframework:spring-context)
BuildRequires:  mvn(org.testng:testng)
%endif

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HK2 for Hundred Kilobytes Kernel is an abstraction to
a module subsystem coupled with a simple yet powerful
component model to build server side software.

%package hk2
Summary:       HK2 module of HK2 itself

%description hk2
This is so that other modules can depend on HK2 as an HK2 module.

%package api
Summary:       HK2 API module

%description api
Hundred Kilobytes Kernel API module.

%package core
Summary:       HK2 core module

%description core
Hundred Kilobytes Kernel core module.

%package configuration
Summary:       HK2 configuration modules

%description configuration
Hundred Kilobytes Kernel configuration modules.

%package extras
Summary:       HK2 extras module

%description extras
Default implementations for HK2 services.

%package jmx
Summary:       HK2 JMX module

%description jmx
Hundred Kilobytes Kernel JMX module.

%package locator
Summary:       HK2 ServiceLocator Default Implementation

%description locator
Hundred Kilobytes Kernel ServiceLocator Default Implementation.

%package metadata-generator
Summary:       HK2 Metadata Generator

%description metadata-generator
HK2 Metadata Generator Subsystem.

%package runlevel
Summary: HK2 Run Level Service

%description runlevel
Hundred Kilobytes Kernel Run Level Service.

%package utils
Summary:       HK2 Implementation Utilities

%description utils
Hundred Kilobytes Kernel Implementation Utilities.

%package class-model
Summary:       Class Model for Hk2

%description class-model
Hundred Kilobytes Kernel Class Model.

%package osgi-resource-locator
Summary: HK2 OSGi resource locator bundle
Obsoletes: osgi-resource-locator < %{version}-%{release}
Provides:  osgi-resource-locator = %{version}-%{release}

%description osgi-resource-locator
Hundred Kilobytes Kernel - OSGi resource locator bundle. Used by
various API providers that rely on META-INF/services mechanism to
locate providers.

%if %{without jp_minimal}
%package dependency-verifier
Summary: HK2 Static Analyser for verifying module dependency

%description dependency-verifier
HK2 Static Analyser for verifying module dependency.

%package dependency-visualizer
Summary: HK2 Tool to visualize the dependencies

%description dependency-visualizer
Tool to visualize the dependencies generated by HK2's dependency-verifier.

%package guice-bridge
Summary: HK2 Guice Bridge

%description guice-bridge
Hundred Kilobytes Kernel Guice Bridge.

%package spring-bridge
Summary: HK2 Spring Bridge

%description spring-bridge
Hundred Kilobytes Kernel Spring Bridge.

%package osgi
Summary: HK2 OSGi Adapter

%description osgi
Hundred Kilobytes Kernel OSGi Adapter.
%endif

%package testing
Summary: Utilities for testing with HK2
# Obsoletes/Provides added in F30
Obsoletes: %{name}-locator-extras < %{version}-%{release}
Provides:  %{name}-locator-extras = %{version}-%{release}
Obsoletes: %{name}-locator-no-proxies < %{version}-%{release}
Provides:  %{name}-locator-no-proxies = %{version}-%{release}
Obsoletes: %{name}-locator-no-proxies2 < %{version}-%{release}
Provides:  %{name}-locator-no-proxies2 = %{version}-%{release}
Obsoletes: %{name}-runlevel-extras < %{version}-%{release}
Provides:  %{name}-runlevel-extras = %{version}-%{release}
Obsoletes: %{name}-testng < %{version}-%{release}
Provides:  %{name}-testng = %{version}-%{release}

%description testing
Hundred Kilobytes Kernel utilities for testing.

%package maven-plugins
Summary: HK2 Maven Plug-ins
# Obsoletes/Provides added in F30
Obsoletes: %{name}-maven < %{version}-%{release}
Provides:  %{name}-maven < %{version}-%{release}
Obsoletes: %{name}-inhabitant-generator < %{version}-%{release}
Provides:  %{name}-inhabitant-generator < %{version}-%{release}

%description maven-plugins
This package provides various maven plug-ins:
* consolidatedbundle-maven-plugin
* osgiversion-maven-plugin
* hk2-inhabitant-generator

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n glassfish-hk2-%{version}-RELEASE
%patch0 -p1
%patch1 -p1

# Explode extra bundles and insert into the build
tar xf %{SOURCE1} --strip-components=1 \
  %{name}-extra-%{extra_version}-RELEASE/osgi-resource-locator \
  %{name}-extra-%{extra_version}-RELEASE/dependency-{verifier,visualizer}
%pom_xpath_set "pom:dependency[pom:groupId ='org.glassfish.hk2']/pom:version" %{version} dependency-verifier
for mod in osgi-resource-locator dependency-verifier dependency-visualizer ; do
  %pom_xpath_inject "pom:modules" "<module>$mod</module>"
  %pom_remove_parent $mod
  %pom_add_parent "org.glassfish.hk2:hk2-parent:%{version}" $mod
done

# Do not remove test resources
find . -name '*.jar' ! -name "gendir.jar" -type f -print -delete
find . -name '*.class' -print -delete

# EE4j parent pom contains only release/nexus related stuff, we won't miss it
%pom_remove_parent bom .

# Some Glassfish APIs that moved to the EE4j project are not yet updated in Fedora to
# provide the new Jakarta maven coords, so continue to use the old javax coords for now
%pom_change_dep -r jakarta.servlet:jakarta.servlet-api javax.servlet:javax.servlet-api
%pom_change_dep -r jakarta.annotation:jakarta.annotation-api javax.annotation:javax.annotation-api
%pom_change_dep -r jakarta.el:jakarta.el-api javax.el:javax.el-api
%pom_change_dep -r jakarta.json:jakarta.json-api javax.json:javax.json-api
%pom_change_dep -r org.glassfish:jakarta.json org.glassfish:javax.json
%pom_change_dep -r org.glassfish.hk2.external:jakarta.inject javax.inject:javax.inject

# Use system libraries, not bundled versions
%pom_change_dep -r org.glassfish.hk2.external:asm-repackaged org.ow2.asm:asm-all:'${asm.version}'
%pom_change_dep -r org.glassfish.hk2.external:aopalliance-repackaged aopalliance:aopalliance:'${aopalliance.version}'
find class-model maven-plugins/hk2-inhabitant-generator hk2-testing/hk2-junitrunner \
   -name "*.java" -exec sed -i "s/org.glassfish.hk2.external.org.objectweb.asm/org.objectweb.asm/g" {} +

# Fix version of deps from hk2 extra
%pom_change_dep :osgi-resource-locator ::%{extra_version}

# Enterprise APIs are a subset of those provided by the Compendium APIs
%pom_remove_dep org.osgi:org.osgi.enterprise
%pom_change_dep :org.osgi.enterprise org.osgi:osgi.cmpn:6.0.0 class-model

# Remove plugins not necessary for RPM builds
%pom_remove_plugin :maven-download-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-eclipse-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_dep :jacoco-maven-plugin
%pom_remove_plugin :maven-jar-plugin osgi-resource-locator
%pom_remove_plugin :maven-source-plugin osgi-resource-locator
%pom_remove_plugin :maven-javadoc-plugin osgi-resource-locator
%pom_remove_plugin :maven-release-plugin osgi-resource-locator
%pom_remove_plugin :maven-gpg-plugin osgi-resource-locator
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-jar-plugin']/pom:executions" hk2

# Don't ship re-packaged external deps or examples
%pom_disable_module external
%pom_disable_module examples

# Disable modules and tests that require org.ops4j.*
# These are not available in Fedora
%pom_disable_module osgi-adapter-test osgi/adapter-tests
%pom_remove_dep org.ops4j.pax.exam:
%pom_remove_dep org.ops4j.pax.url:
%pom_remove_dep org.ops4j.pax.logging:

# Disable test that would introduce circular deps
%pom_disable_module jersey hk2-testing

%if %{with jp_minimal}
# Disable modules with extra deps when building with jp_minimal
%pom_disable_module dependency-verifier
%pom_disable_module dependency-visualizer
%pom_disable_module osgi
%pom_disable_module guice-bridge
%pom_disable_module spring-bridge
%pom_remove_dep :osgi-adapter bom
%pom_remove_dep :guice-bridge bom
%pom_remove_dep :spring-bridge bom
%pom_disable_module hk2-xml hk2-configuration/persistence
# Build minimal testing utilities when building with jp_minimal
%pom_xpath_set "pom:modules" "<module>hk2-junitrunner</module>" hk2-testing
# Avoid dep on hibernate when building with jp_minimal
%pom_remove_dep javax.validation:validation-api hk2-utils
%pom_remove_dep org.hibernate:hibernate-validator hk2-utils
%pom_remove_dep javax.el:javax.el-api hk2-utils
rm hk2-utils/src/main/java/org/glassfish/hk2/utilities/general/ValidatorUtilities.java \
   hk2-utils/src/main/java/org/glassfish/hk2/utilities/general/internal/MessageInterpolatorImpl.java \
   hk2-utils/src/test/java/org/glassfish/hk2/utilities/test/ValidatorTest.java
%endif

# Remove pointless unused dependencies
# Patch submitted upstream, see https://github.com/eclipse-ee4j/glassfish-hk2/pull/445
%pom_remove_dep org.osgi:osgi_R4_core
%pom_remove_dep :com.springsource.org.junit

# Remove some optional deps
%pom_remove_dep -r :jboss-logging
%pom_remove_dep -r :classmate

# Disable security policy that interferes with tests
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-surefire-plugin']/pom:configuration" hk2-api
%pom_xpath_remove "pom:plugin[pom:artifactId ='maven-surefire-plugin']/pom:configuration" hk2-locator

# Fix reference to JDK tools jar
%pom_xpath_set "pom:dependency[pom:groupId ='com.sun']/pom:artifactId" tools hk2-testing/ant
%pom_xpath_remove "pom:dependency[pom:groupId ='com.sun']/pom:scope" hk2-testing/ant
%pom_xpath_remove "pom:dependency[pom:groupId ='com.sun']/pom:systemPath" hk2-testing/ant
%pom_xpath_remove "pom:profiles/pom:profile[pom:id ='mac']" hk2-testing/ant

# Don't put classpath in jar manifest
%pom_xpath_set "pom:addClasspath" false dependency-verifier

mkdir -p hk2/target/classes

# Drop pre-existent OSGI manifest file
rm maven-plugins/hk2-inhabitant-generator/src/main/resources/META-INF/MANIFEST.MF
%pom_add_plugin org.apache.felix:maven-bundle-plugin maven-plugins/hk2-inhabitant-generator '
<configuration>
  <supportedProjectTypes>
   <supportedProjectType>maven-plugin</supportedProjectType>
  </supportedProjectTypes> 
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# Add configuration file for osgiversion plugin
cp -p %SOURCE2 maven-plugins/hk2-inhabitant-generator/osgi.bundle
%pom_add_plugin org.glassfish.hk2:osgiversion-maven-plugin:'${project.version}' maven-plugins/hk2-inhabitant-generator

# Inject manifest file
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.4 maven-plugins/hk2-inhabitant-generator "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <manifestEntries>
      <service>foo</service>
    </manifestEntries>
  </archive>
</configuration>"

# fix build failure. 'useDefaultManifestFile' has been removed from the maven-jar-plugin >= 3.0.0
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:configuration/pom:useDefaultManifestFile" . hk2-utils
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:configuration/pom:archive" \
  "<manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>" hk2-utils

# For every module that generates a OSGi manifest, add it to the jar
# Remove this when upstream moves to maven-jar-plugin >= 3.0.0
for mod in $(grep -l maven-bundle-plugin $(find */ -name pom.xml) ) ; do
  if [ "$(dirname $mod)" = "hk-utils" ] ; then
    continue
  fi
  %pom_add_plugin org.apache.maven.plugins:maven-jar-plugin $mod "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  </archive>
</configuration>"
done

# Don't package unit test jars
%mvn_package ":::tests:" __noinstall

# Create subpackages
%mvn_package ":hk2-bom" %{name}
%mvn_package ":hk2-parent" %{name}
%mvn_package ":hk2" hk2
%mvn_package ":hk2-api" api
%mvn_package ":hk2-core" core
%mvn_package ":hk2-configuration" configuration
%mvn_package ":hk2-configuration-hub" configuration
%mvn_package ":hk2-configuration-integration" configuration
%mvn_package ":hk2-configuration-persistence" configuration
%mvn_package ":hk2-property-file" configuration
%mvn_package ":hk2-xml-parent" configuration
%mvn_package ":hk2-xml-schema" configuration
%mvn_package ":hk2-xml-integration-test" __noinstall
%mvn_package ":hk2-xml-test" __noinstall
%mvn_package ":hk2-json" configuration
%mvn_package ":hk2-pbuf" configuration
%mvn_package ":hk2-xml" configuration
%mvn_package ":hk2-extras" extras
%mvn_package ":hk2-jmx" jmx
%mvn_package ":hk2-locator" locator
%mvn_package ":hk2-metadata-generator" metadata-generator
%mvn_package ":hk2-metadata-generator-parent" metadata-generator
%mvn_package ":hk2-metadata-generator-test1" __noinstall
%mvn_package ":hk2-runlevel" runlevel
%mvn_package ":hk2-utils" utils
%mvn_package ":class-model" class-model
%mvn_package ":osgi-resource-locator" osgi-resource-locator
%mvn_package ":hk2-dependency-verifier" dependency-verifier
%mvn_package ":hk2-dependency-visualizer" dependency-visualizer
%mvn_package ":guice-bridge" guice-bridge
%mvn_package ":spring-bridge" spring-bridge
%mvn_package ":osgi" osgi
%mvn_package ":osgi-adapter" osgi
%mvn_package ":osgi-adapter-tests-parent" __noinstall
%mvn_package ":contract-bundle" __noinstall
%mvn_package ":faux-sdp-bundle" __noinstall
%mvn_package ":no-hk2-bundle" __noinstall
%mvn_package ":osgi-adapter-test" __noinstall
%mvn_package ":sdp-management-bundle" __noinstall
%mvn_package ":test-module-startup" __noinstall

# Testing modules
%mvn_package ":hk2-testing" testing
%mvn_package ":hk2-ant-test" testing
%mvn_package ":hk2-collections-tests" testing
%mvn_package ":hk2-junitrunner" testing
%mvn_package ":hk2-locator-extras" testing
%mvn_package ":hk2-locator-no-proxies" testing
%mvn_package ":hk2-locator-no-proxies2" testing
%mvn_package ":hk2-mockito" testing
%mvn_package ":hk2-runlevel-extras" testing
%mvn_package ":hk2-testng" testing
%mvn_package ":interceptor-events" testing

# Maven plug-ins
%mvn_package ":maven-plugins" maven-plugins
%mvn_package ":consolidatedbundle-maven-plugin" maven-plugins
%mvn_package ":hk2-inhabitant-generator" maven-plugins
%mvn_package ":osgiversion-maven-plugin" maven-plugins

%build
%mvn_build -f -- -Dhk2.mvn.plugins.version=%{version}

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license LICENSE.md NOTICE.md

%files hk2 -f .mfiles-hk2
%license LICENSE.md NOTICE.md

%files api -f .mfiles-api
%license LICENSE.md NOTICE.md

%files core -f .mfiles-core
%license LICENSE.md NOTICE.md

%files configuration -f .mfiles-configuration
%license LICENSE.md NOTICE.md

%files extras -f .mfiles-extras
%license LICENSE.md NOTICE.md

%files jmx -f .mfiles-jmx
%license LICENSE.md NOTICE.md

%files locator -f .mfiles-locator
%license LICENSE.md NOTICE.md

%files metadata-generator -f .mfiles-metadata-generator
%license LICENSE.md NOTICE.md

%files runlevel -f .mfiles-runlevel
%license LICENSE.md NOTICE.md

%files utils -f .mfiles-utils
%license LICENSE.md NOTICE.md

%files class-model -f .mfiles-class-model
%license LICENSE.md NOTICE.md

%files osgi-resource-locator -f .mfiles-osgi-resource-locator
%license LICENSE.md NOTICE.md

%if %{without jp_minimal}
%files dependency-verifier -f .mfiles-dependency-verifier
%license LICENSE.md NOTICE.md

%files dependency-visualizer -f .mfiles-dependency-visualizer
%doc dependency-visualizer/README
%license LICENSE.md NOTICE.md

%files guice-bridge -f .mfiles-guice-bridge
%license LICENSE.md NOTICE.md

%files spring-bridge -f .mfiles-spring-bridge
%license LICENSE.md NOTICE.md

%files osgi -f .mfiles-osgi
%license LICENSE.md NOTICE.md
%endif

%files testing -f .mfiles-testing
%license LICENSE.md NOTICE.md

%files maven-plugins -f .mfiles-maven-plugins
%license LICENSE.md NOTICE.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.md NOTICE.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12882 |21mr|glassfish-jaxb-2.2.11-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionally build with a minimal dependency set
%bcond_with jp_minimal

Name:           glassfish-jaxb
Version:        2.2.11
Release:        15
Summary:        JAXB Reference Implementation

License:        CDDL-1.1 and GPLv2 with exceptions
URL:            http://jaxb.java.net

Source0:        https://jaxb.java.net/%{version}/jaxb-ri-%{version}.src.zip
Patch0:         0001-Avoid-unnecessary-dep-on-istack-commons.patch
Patch1:         0002-Port-to-latest-version-of-args4j.patch

BuildRequires:  maven-local
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
%if %{without jp_minimal}
BuildRequires:  mvn(args4j:args4j)
BuildRequires:  mvn(com.sun.istack:istack-commons-runtime)
BuildRequires:  mvn(com.sun.istack:istack-commons-tools)
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(com.sun.xml.dtd-parser:dtd-parser)
BuildRequires:  mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires:  mvn(com.sun.xsom:xsom)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.jvnet.staxex:stax-ex)
BuildRequires:  mvn(relaxngDatatype:relaxngDatatype)
%endif

Requires:       %{name}-core                          = %{version}-%{release}
Requires:       %{name}-runtime                       = %{version}-%{release}
Requires:       %{name}-txw2                          = %{version}-%{release}
%if %{without jp_minimal}
Requires:       %{name}-bom                           = %{version}-%{release}
Requires:       %{name}-bom-ext                       = %{version}-%{release}
Requires:       %{name}-codemodel                     = %{version}-%{release}
Requires:       %{name}-codemodel-annotation-compiler = %{version}-%{release}
Requires:       %{name}-codemodel-parent              = %{version}-%{release}
Requires:       %{name}-external-parent               = %{version}-%{release}
Requires:       %{name}-jxc                           = %{version}-%{release}
Requires:       %{name}-parent                        = %{version}-%{release}
Requires:       %{name}-rngom                         = %{version}-%{release}
Requires:       %{name}-runtime-parent                = %{version}-%{release}
Requires:       %{name}-txwc2                         = %{version}-%{release}
Requires:       %{name}-txw-parent                    = %{version}-%{release}
Requires:       %{name}-xjc                           = %{version}-%{release}
%endif

Obsoletes:      glassfish-jaxb1-impl                  < 2.2.11-12

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
GlassFish JAXB Reference Implementation.

%package core
Summary:        JAXB Core

%description core
JAXB Core module. Contains sources required by XJC, JXC and Runtime
modules.

%package runtime
Summary:        JAXB Runtime

%description runtime
JAXB (JSR 222) Reference Implementation

%package txw2
Summary:        TXW2 Runtime

%description txw2
TXW is a library that allows you to write XML documents.

%if %{without jp_minimal}
%package codemodel
Summary:        Codemodel Core

%description codemodel
The core functionality of the CodeModel java source code generation
library.

%package codemodel-annotation-compiler
Summary:        Codemodel Annotation Compiler

%description codemodel-annotation-compiler
The annotation compiler ant task for the CodeModel java source code
generation library.

%package bom
Summary:        JAXB BOM

%description bom
JAXB Bill of Materials (BOM)

%package bom-ext
Summary:        JAXB BOM with all dependencies

%description bom-ext
JAXB Bill of Materials (BOM) with all dependencies.

%package codemodel-parent
Summary:        Codemodel parent POM

%description codemodel-parent
This package contains codemodel parent POM.

%package external-parent
Summary:        JAXB External parent POM

%description external-parent
JAXB External parent POM.

%package jxc
Summary:        JAXB schema generator

%description jxc
The tool to generate XML schema based on java classes.

%package parent
Summary:        JAXB parent POM

%description parent
This package contains parent POM.

%package runtime-parent
Summary:        JAXB Runtime parent POM

%description runtime-parent
This package contains Runtime parent POM.

%package txw-parent
Summary:        JAXB TXW parent POM

%description txw-parent
This package contains TXW parent POM.

%package xjc
Summary:        JAXB XJC

%description xjc
JAXB Binding Compiler. Contains source code needed for binding
customization files into java sources. In other words: the tool to
generate java classes for the given xml representation.

%package rngom
Summary:        RELAX NG Object Model/Parser

%description rngom
This package contains RELAX NG Object Model/Parser.

%package txwc2
Summary:        TXW2 Compiler

%description txwc2
JAXB schema generator. The tool to generate XML schema based on java
classes.
%endif

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -c

%if %{with jp_minimal}
%patch0 -p1
%endif
%patch1 -p1

# Disable unneeded OSGi bundles
%pom_disable_module xjc bundles
%pom_disable_module jxc bundles
%pom_disable_module ri bundles
%pom_disable_module osgi bundles
%pom_disable_module core bundles

# Fix jar plug-in usage for OSGi bundles
%pom_xpath_replace "pom:useDefaultManifestFile" "
<archive>
  <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>" bundles/core bundles/runtime

# Make javax.activation an optional dep
%pom_xpath_inject "pom:configuration/pom:instructions" "
<Import-Package>javax.activation;resolution:=optional,*</Import-Package>" bundles/runtime

# Disable ancient jaxb1 runtime
%pom_disable_module jaxb1 runtime

# Fix hard-coded tools location
%pom_remove_dep com.sun:tools
%pom_add_dep_mgmt com.sun:tools
%pom_remove_dep com.sun:tools jxc
%pom_add_dep com.sun:tools jxc

# Plug-ins not useful for RPM builds
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :gfnexus-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin jxc
%pom_remove_plugin :maven-source-plugin xjc

%if %{with jp_minimal}
# For minimal build disable all modules with extra deps
%pom_disable_module codemodel
%pom_disable_module external
%pom_disable_module jxc
%pom_disable_module compiler txw
%pom_disable_module xjc
# For minimal build of impl module, don't compile in support for extra deps
%pom_remove_dep org.jvnet.staxex:stax-ex runtime/impl
%pom_remove_dep com.sun.xml.fastinfoset:FastInfoset runtime/impl
rm runtime/impl/src/main/java/com/sun/xml/bind/v2/runtime/unmarshaller/{FastInfoset,StAXEx}Connector.java
rm runtime/impl/src/main/java/com/sun/xml/bind/v2/runtime/output/{FastInfoset,StAXEx}StreamWriterOutput.java
%endif

%mvn_alias org.glassfish.jaxb:jaxb-xjc "com.sun.xml.bind:jaxb-xjc"

# Package OSGi version of runtime with the non-OSGi version
%mvn_package com.sun.xml.bind:jaxb-impl jaxb-runtime

# Don't install bundles parent pom
%mvn_package com.sun.xml.bind.mvn:jaxb-bundles __noinstall

%if %{with jp_minimal}
# Don't install aggregator poms or boms for minimal build
%mvn_package com.sun.xml.bind.mvn: __noinstall
%mvn_package :jaxb-bom* __noinstall
%endif

%build
%mvn_build -f -s -- -Ddev -DbuildNumber=unknown

%install
%mvn_install

%files
%license License.txt licenceheader.txt License.html

%files core -f .mfiles-jaxb-core
%license License.txt licenceheader.txt License.html

%files runtime -f .mfiles-jaxb-runtime
%license License.txt licenceheader.txt License.html

%files txw2 -f .mfiles-txw2
%license License.txt licenceheader.txt License.html

%if %{without jp_minimal}
%files codemodel -f .mfiles-codemodel
%license License.txt licenceheader.txt License.html

%files codemodel-annotation-compiler -f .mfiles-codemodel-annotation-compiler

%files bom -f .mfiles-jaxb-bom
%license License.txt licenceheader.txt License.html

%files bom-ext -f .mfiles-jaxb-bom-ext

%files codemodel-parent -f .mfiles-jaxb-codemodel-parent

%files external-parent -f .mfiles-jaxb-external-parent

%files jxc -f .mfiles-jaxb-jxc
%license License.txt licenceheader.txt License.html

%files parent -f .mfiles-jaxb-parent

%files runtime-parent -f .mfiles-jaxb-runtime-parent

%files txw-parent -f .mfiles-jaxb-txw-parent

%files xjc -f .mfiles-jaxb-xjc

%files rngom -f .mfiles-rngom
%license License.txt licenceheader.txt License.html

%files txwc2 -f .mfiles-txwc2
%license License.txt licenceheader.txt License.html
%endif

%files javadoc -f .mfiles-javadoc
%license License.txt licenceheader.txt License.html



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12883 |21mr|glassfish-jaxb-api-2.2.12-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname jaxb-api
Name:          glassfish-jaxb-api
Version:       2.2.12
Release:       13
Summary:       Java Architecture for XML Binding
License:       CDDL-1.1 or GPLv2 with exception
Group:          Development/Java
URL:           http://jaxb.java.net/
# jaxb api and impl have different version
# svn export https://svn.java.net/svn/jaxb~version2/tags/jaxb-2_2_6/tools/lib/redist/jaxb-api-src.zip

Source0:       http://repo1.maven.org/maven2/javax/xml/bind/%{oname}/%{version}/%{oname}-%{version}-b141001.1542-sources.jar
Source1:       http://repo1.maven.org/maven2/javax/xml/bind/%{oname}/%{version}/%{oname}-%{version}-b141001.1542.pom


BuildRequires:  java-javadoc
BuildRequires:  maven-local
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# The Fedora Packaging Committee granted openjdk a bundling exception to carry JAXP and
# JAX-WS (glassfish doesn't need one, since it is the upstream for these files).
# Reference: https://fedorahosted.org/fpc/ticket/292

%description
Glassfish - JAXB (JSR 222) API.

%package javadoc
Summary:       Javadoc for %{oname}
Requires:      %{name} = %{version}-%{release} 

%description javadoc
Glassfish - JAXB (JSR 222) API.

This package contains javadoc for %{name}.

%prep
%setup -T -q -c

# fixing incomplete source directory structure
mkdir -p src/main/java

(
  cd src/main/java
  unzip -qq %{SOURCE0}
  rm -rf META-INF
)

cp -p %{SOURCE1} pom.xml

%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
%pom_remove_plugin org.glassfish.build:gfnexus-maven-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :cobertura-maven-plugin

%pom_xpath_set "pom:instructions/pom:Import-Package" "javax.activation;resolution:=optional,*"

sed -i 's|<location>${basedir}/offline-javadoc</location>|<location>%{_javadocdir}/java</location>|' pom.xml

%build
%mvn_file :%{oname} %{oname}
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12884 |21mr|glassfish-jaxrpc-api-1.1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-jaxrpc-api
Version:       1.1.1
Release:       11
Summary:       The Java API for XML-Based RPC (JAX-RPC)
License:       CDDL or GPLv2 with exceptions
URL:           https://metro.java.net/
# svn export https://svn.java.net/svn/glassfish~svn/tags/javax.xml.rpc-api-1.1.1 glassfish-jaxrpc-api-1.1.1
# tar cJf glassfish-jaxrpc-api-1.1.1.tar.xz glassfish-jaxrpc-api-1.1.1
Source0:       %{name}-%{version}.tar.xz

BuildRequires:  maven-local
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.glassfish:legal)
BuildRequires:  mvn(org.glassfish.build:spec-version-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Project GlassFish Enterprise JavaBean API.

Java APIs for XML based RPC 1.1 Design Specification.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin

%pom_change_dep :servlet-api :javax.servlet-api:3.1.0 . "<optional>true</optional>"

# fix build failure. 'useDefaultManifestFile' has been removed from the maven-jar-plugin >= 3.0.0
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:useDefaultManifestFile"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration" '
<archive>
  <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>'

# Make OSGi dep on soap api optional
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" \
  "<Import-Package>javax.xml.soap;resolution:=optional,*</Import-Package>"

%mvn_file : %{name}

%build

%mvn_build

cp -p target/classes/META-INF/LICENSE.txt .
sed -i 's/\r//' LICENSE.txt

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12885 |21mr|glassfish-jax-rs-api-2.1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-jax-rs-api
Version:       2.1.5
Release:       4
Summary:       JAX-RS API Specification (JSR 339)
License:       EPL-2.0 or GPLv2 with exceptions
URL:           https://github.com/eclipse-ee4j/jaxrs-api
Source0:       https://github.com/eclipse-ee4j/jaxrs-api/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.glassfish.build:spec-version-maven-plugin)
BuildRequires:  mvn(org.mockito:mockito-core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JAX-RS Java API for RESTful Web Services (JSR 339).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n jaxrs-api-%{version}
find . -name '*.jar' -delete
find . -name '*.class' -delete

# Plugins not needed for RPM builds
%pom_remove_plugin org.apache.maven.plugins:maven-jxr-plugin jaxrs-api
%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin jaxrs-api
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin jaxrs-api
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin jaxrs-api
%pom_remove_plugin org.apache.maven.plugins:maven-deploy-plugin jaxrs-api

%pom_xpath_remove "pom:build/pom:finalName" jaxrs-api

# Avoid duplicate invokation of javadoc plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin' ]/pom:executions" jaxrs-api

%build
(
cd jaxrs-api
# Compatibility symlink
%mvn_file :{*} @1 %{name}

# Compatibility alias
%mvn_alias : javax.ws.rs:javax.ws.rs-api

%mvn_build
)

%install
(
cd jaxrs-api
%mvn_install
)

%files -f jaxrs-api/.mfiles
%license LICENSE.md NOTICE.md
%doc README.md CONTRIBUTING.md

%files javadoc -f jaxrs-api/.mfiles-javadoc
%license LICENSE.md NOTICE.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12886 |21mr|glassfish-jsp-2.3.3-0.16.b02
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global artifactId javax.servlet.jsp
%global jspspec 2.3
%global reltag b02

Name:       glassfish-jsp
Version:    2.3.3
Release:    0.16.%{reltag}
Summary:    Glassfish J2EE JSP API implementation
License:    (CDDL-1.1 or GPLv2 with exceptions) and ASL 2.0
URL:        http://glassfish.org
Group:          Development/Java
BuildArch:  noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:    %{artifactId}-%{version}-%{reltag}.tar.xz
# no source releases, but this will generate tarball for you from an
# SVN tag
Source1:    generate_tarball.sh
Source2:    http://www.apache.org/licenses/LICENSE-2.0.txt
Source3:    https://javaee.github.io/glassfish/LICENSE.html

Patch0:     %{name}-build-eclipse-compilers.patch
Patch1:     %{name}-port-to-servlet-3.1.patch

BuildRequires:  maven-local
BuildRequires:  mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires:  mvn(javax.servlet.jsp:javax.servlet.jsp-api)
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.eclipse.jdt:core)
BuildRequires:  mvn(org.glassfish:javax.el)

Provides:   jsp = %{jspspec}
Provides:   jsp%{jspspec}

Provides:   javax.servlet.jsp
# make sure the symlinks will be correct
Requires:  glassfish-jsp-api

%description
This project provides a container independent implementation of JSP
2.3. The main goals are:
  * Improves current implementation: bug fixes and performance
    improvements
  * Provides API for use by other tools, such as Netbeans
  * Provides a sandbox for new JSP features; provides a reference
    implementation of next JSP spec.


%package javadoc
Summary:    API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{artifactId}-%{version}-%{reltag}
%patch0 -p1
%patch1 -p1

%pom_add_dep org.eclipse.jdt:core::provided

cp -p %{SOURCE2} LICENSE-ASL-2.0.txt
cp -p %{SOURCE3} LICENSE-CDDL+GPLv2.html

%mvn_alias : "org.eclipse.jetty.orbit:org.apache.jasper.glassfish"

# compat symlink
%mvn_file : %{name}/javax.servlet.jsp %{name}

# javadoc generation fails due to strict doclint in JDK 8
%pom_remove_plugin :maven-javadoc-plugin

%build
%mvn_build

%install
%mvn_install

# install j2ee api symlinks
install -d -m 755 %{buildroot}%{_javadir}/javax.servlet.jsp/
pushd %{buildroot}%{_javadir}/javax.servlet.jsp/
for jar in ../%{name}/*jar; do
    ln -sf $jar .
done
# copy jsp-api so that build-classpath will include dep as well
build-jar-repository -p . glassfish-jsp-api
xmvn-subst -R %{buildroot} -s .
popd

%files -f .mfiles
%{_javadir}/javax.servlet.jsp
%license LICENSE-ASL-2.0.txt LICENSE-CDDL+GPLv2.html

%files javadoc -f .mfiles-javadoc
%license LICENSE-ASL-2.0.txt LICENSE-CDDL+GPLv2.html



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12887 |21mr|glassfish-jsp-api-2.3.2-0.12.b01
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global artifactId javax.servlet.jsp-api
%global jspspec 2.2
%global reltag b01


Name:       glassfish-jsp-api
Version:    2.3.2
Release:    0.12.%{reltag}
Summary:    Glassfish J2EE JSP API specification

License:    (CDDL-1.1 or GPLv2 with exceptions) and ASL 2.0
URL:        http://java.net/jira/browse/JSP
Source0:    %{artifactId}-%{version}-%{reltag}.tar.xz
# no source releases, but this will generate tarball for you from an
# SVN tag
Source1:    generate_tarball.sh
Source2:    http://www.apache.org/licenses/LICENSE-2.0.txt
Source3:    https://javaee.github.io/glassfish/LICENSE.html

Group:          Development/Java
BuildArch:  noarch

BuildRequires:  maven-local
BuildRequires:  mvn(javax.el:javax.el-api)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)

%description
This project provides a container independent specification of JSP
2.2. Note that this package doesn't contain implementation of this
specification. See glassfish-jsp for one of implementations

%package javadoc
Summary:        API documentation for %{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
%{summary}.

%prep
%setup -q -n %{artifactId}-%{version}-%{reltag}

cp -p %{SOURCE2} LICENSE-ASL-2.0.txt
cp -p %{SOURCE3} LICENSE-CDDL+GPLv2.html

# Submited upstream: http://java.net/jira/browse/JSP-31
sed -i "/<bundle.symbolicName>/s/-api//" pom.xml

%pom_xpath_remove "pom:dependency[pom:groupId='javax.el' or pom:groupId='javax.servlet']/pom:scope"

# javadoc generation fails due to strict doclint in JDK 8
%pom_remove_plugin :maven-javadoc-plugin

%mvn_alias : javax.servlet:jsp-api

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE-ASL-2.0.txt LICENSE-CDDL+GPLv2.html

%files javadoc -f .mfiles-javadoc
%license LICENSE-ASL-2.0.txt LICENSE-CDDL+GPLv2.html



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12888 |21mr|glassfish-legal-1.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-legal
Version:       1.1
Release:       14
Summary:       Legal License for glassfish code
License:       CDDL or GPLv2 with exceptions
URL:           http://glassfish.java.net/
# svn export https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/ glassfish-legal-1.1
# tar czf glassfish-legal-1.1-src-svn.tar.gz glassfish-legal-1.1
Source0:       %{name}-%{version}-src-svn.tar.gz

BuildRequires: glassfish-master-pom
BuildRequires: maven-local
BuildRequires: maven-remote-resources-plugin

Requires:      glassfish-master-pom
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
An archive which contains license files for glassfish code.

%prep
%setup -q -n %{name}-%{version}

sed -i 's/\r//' src/main/resources/META-INF/LICENSE.txt
cp -p src/main/resources/META-INF/LICENSE.txt .

%mvn_file :legal %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12889 |21mr|glassfish-management-api-3.2.1-0.9.b002
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -b002
%global namedversion %{version}%{?namedreltag}
Name:          glassfish-management-api
Version:       3.2.1
Release:       0.9.b002
Summary:       GlassFish Common APIs
License:       CDDL or GPLv2 with exceptions
URL:           http://java.net/projects/gmbal/pages/Home
# hg clone -r management-api-3.2.1-b002 https://hg.java.net/hg/gmbal~gf_common/ glassfish-management-api-3.2.1-b002
# rm -rf glassfish-management-api-3.2.1-b002/.hg
# find glassfish-management-api-3.2.1-b002 -name "*.jar" -delete
# find glassfish-management-api-3.2.1-b002 -name "*.class" -delete
# tar cJf glassfish-management-api-3.2.1-b002.tar.xz glassfish-management-api-3.2.1-b002
# or
Source0:       http://central.maven.org/maven2/org/glassfish/external/management-api/%{namedversion}/management-api-%{namedversion}-sources.jar
Source1:       http://central.maven.org/maven2/org/glassfish/external/management-api/%{namedversion}/management-api-%{namedversion}.pom
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# glassfish-management-api package don't include the license file
Source2:       glassfish-LICENSE.txt

BuildRequires: jvnet-parent

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The GlassFish MBean Annotation Library (gmbal, pronounced "Gumball")
is a library for using annotations to create Open MBeans. There is similar
functionality in JSR 255 for JDK 7, but gmbal only requires JDK 5. Gmbal
also supports JSR 77 ObjectNames and the GlassFish Version 3 AMX 
requirements for MBeans. AS a consequence, gmbal-enabled classes
will be fully manageable in GlassFish v3 using the standard GlassFish
v3 admin tools, while still being manageable with generic MBean tools
when not run under GlassFish v3.

This package contains the gmbal Common APIs.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -T -q -c

# fixing incomplete source directory structure
mkdir -p src/main/java

(
  cd src/main/java
  unzip -qq %{SOURCE0}
  rm -rf META-INF
)

cp -p %{SOURCE1} pom.xml
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"

cp -p %{SOURCE2} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%mvn_file :management-api %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12890 |21mr|glassfish-master-pom-8-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-master-pom
Version:       8
Release:       14
Summary:       Master POM for Glassfish Maven projects
License:       CDDL or GPLv2 with exceptions
Group:          Development/Java
URL:           http://glassfish.java.net/
# svn export https://svn.java.net/svn/glassfish~svn/tags/master-pom-8/ glassfish-master-pom-8
# tar czf glassfish-master-pom-8-src-svn.tar.gz glassfish-master-pom-8
Source0:       %{name}-%{version}-src-svn.tar.gz
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# glassfish-master-pom package don't include the license file
Source1:       glassfish-LICENSE.txt

BuildRequires: maven-local
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a shared POM parent for Glassfish Maven projects.

%prep
%setup -q
# remove wagon-webdav
%pom_xpath_remove pom:build/pom:extensions
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-compiler-plugin']" "<groupId>org.apache.maven.plugins</groupId><version>2.5.1</version>"
cp -p %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12891 |21mr|glassfish-pfl-3.2.0-0.16.b001
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -b001
%global namedversion %{version}%{?namedreltag}
Name:          glassfish-pfl
Version:       3.2.0
Release:       0.16.b001
Summary:       GlassFish Primitive Function Library
# Few files in src/org/glassfish/pfl/test/ is under ASL 2.0
License:       (CDDL or GPLv2 with exceptions) and ASL 2.0
URL:           http://java.net/projects/gmbal/pages/Home
# hg clone -r VERSION-3.2.0-b001 https://hg.java.net/hg/gmbal~pfl glassfish-pfl-3.2.0-b001
# find glassfish-pfl-3.2.0-b001/ -name '*.jar' -delete
# find glassfish-pfl-3.2.0-b001/ -name '*.class' -delete
# find glassfish-pfl-3.2.0-b001/ -name '*.zip' -delete
# rm -rf glassfish-pfl-3.2.0-b001/src/org/glassfish/pfl/objectweb
# tar czf glassfish-pfl-3.2.0-b001-src-hg.tar.gz glassfish-pfl-3.2.0-b001
Source0:       %{name}-%{namedversion}-src-hg.tar.gz
# custom build file
Source1:       %{name}-%{namedversion}-00-build.xml

Source2:       http://repo1.maven.org/maven2/org/glassfish/pfl/pfl-basic/3.2.0-b001/pfl-basic-3.2.0-b001.pom
Source3:       http://repo1.maven.org/maven2/org/glassfish/pfl/pfl-basic-tools/3.2.0-b001/pfl-basic-tools-3.2.0-b001.pom
Source4:       http://repo1.maven.org/maven2/org/glassfish/pfl/pfl-dynamic/3.2.0-b001/pfl-dynamic-3.2.0-b001.pom
# custom pom file
Source5:       pfl-ff-%{namedversion}.pom

Source6:       http://repo1.maven.org/maven2/org/glassfish/pfl/pfl-tf/3.2.0-b001/pfl-tf-3.2.0-b001.pom
Source7:       http://repo1.maven.org/maven2/org/glassfish/pfl/pfl-tf-tools/3.2.0-b001/pfl-tf-tools-3.2.0-b001.pom
Source8:       http://repo1.maven.org/maven2/org/glassfish/pfl/pfl-test/3.2.0-b001/pfl-test-3.2.0-b001.pom

# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# glassfish-pfl package don't include the license file
Source9:       glassfish-LICENSE.txt

Source10:      http://www.apache.org/licenses/LICENSE-2.0.txt

Patch0:        %{name}-%{namedversion}-use-system-asm.patch

BuildRequires: ant
BuildRequires: aqute-bnd
BuildRequires: javapackages-local
BuildRequires: objectweb-asm3

# test deps
BuildRequires: geronimo-ejb
BuildRequires: hamcrest
BuildRequires: junit

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The GlassFish MBean Annotation Library (gmbal, pronounced "Gumball")
is a library for using annotations to create Open MBeans. There is similar
functionality in JSR 255 for JDK 7, but gmbal only requires JDK 5. Gmbal
also supports JSR 77 ObjectNames and the GlassFish Version 3 AMX 
requirements for MBeans. AS a consequence, gmbal-enabled classes
will be fully manageable in GlassFish v3 using the standard GlassFish
v3 admin tools, while still being manageable with generic MBean tools
when not run under GlassFish v3.

This package provides the gmbal Primitive Function Library.
 
%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
cp -p %{SOURCE1} build.xml
%patch0 -p1

cp -p %{SOURCE4} pom-dynamic.xml
%pom_remove_dep org.glassfish.pfl:pfl-asm pom-dynamic.xml
%pom_xpath_inject "pom:project/pom:dependencies" "
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>3</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-util</artifactId>
      <version>3</version>
    </dependency>" pom-dynamic.xml

cp -p %{SOURCE6} pom-tf.xml
%pom_remove_dep org.glassfish.pfl:pfl-asm pom-tf.xml
%pom_xpath_inject "pom:project/pom:dependencies" "
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>3</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-tree</artifactId>
      <version>3</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-util</artifactId>
      <version>3</version>
    </dependency>" pom-tf.xml

cp -p %{SOURCE7} pom-tf-tools.xml
%pom_remove_dep org.glassfish.pfl:pfl-asm pom-tf-tools.xml
%pom_xpath_inject "pom:project/pom:dependencies" "
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm</artifactId>
      <version>3</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-tree</artifactId>
      <version>3</version>
    </dependency>
    <dependency>
      <groupId>asm</groupId>
      <artifactId>asm-util</artifactId>
      <version>3</version>
    </dependency>" pom-tf-tools.xml

cp -p %{SOURCE9} LICENSE.txt
cp -p %{SOURCE10} .
sed -i 's/\r//' LICENSE.txt LICENSE-2.0.txt

%build

%ant dist javadoc test

%install
%mvn_artifact %{SOURCE2} target/pfl-basic.jar
%mvn_artifact %{SOURCE3} target/pfl-basic-tools.jar
%mvn_artifact pom-dynamic.xml target/pfl-dynamic.jar
%mvn_artifact %{SOURCE5} target/pfl-ff.jar
%mvn_artifact pom-tf.xml target/pfl-tf.jar
%mvn_artifact pom-tf-tools.xml target/pfl-tf-tools.jar
%mvn_artifact %{SOURCE8} target/pfl-test.jar
%mvn_install -J target/apidocs

%files -f .mfiles
%license LICENSE.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12892 |21mr|glassfish-policy-2.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname policy
Name:          glassfish-policy
Version:       2.5
Release:       10
Summary:       GlassFish WS-Policy implementation
License:       CDDL or GPLv2 with exceptions
URL:           http://policy.java.net/
# svn export https://svn.java.net/svn/policy~policy/tags/policy-2.5
# tar cJf policy-2.5.tar.xz policy-2.5
Source0:       %{oname}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(com.sun.istack:istack-commons-buildtools)
BuildRequires: mvn(com.sun.istack:istack-commons-runtime)
BuildRequires: mvn(com.sun.xml.txw2:txw2)
BuildRequires: mvn(javax.xml.stream:stax-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl)
#BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
#BuildRequires: mvn(org.apache.maven.plugins:maven-deploy-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The policy project provides the WS-Policy implementation
for Project Metro.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{version}
find -name '*.jar' -delete
find -name '*.class' -delete

%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%pom_remove_plugin org.glassfish.build:gfnexus-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-deploy-plugin


sed -i 's/${artifactId}/${project.artifactId}/' pom.xml

iconv -f iso8859-1 -t utf-8 LICENSE.txt > LICENSE.txt.conv && mv -f LICENSE.txt.conv LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%mvn_file :%{oname} %{name}

%build
# https://github.com/FasterXML/woodstox/issues/10
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt Licenses/license-policy.html

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt Licenses/license-policy.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12893 |21mr|glassfish-saaj-1.3.19-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             glassfish-saaj
Version:          1.3.19
Release:          16
Summary:          JSR-67 implementation
License:          CDDL and GPLv2 with exceptions
URL:              http://java.net/projects/saaj

# svn export https://svn.java.net/svn/saaj~svn/tags/saaj-impl-1.3.19 glassfish-saaj-1.3.19
# find glassfish-saaj-1.3.19/ -name '*.jar' -delete
# find glassfish-saaj-1.3.19/ -name '*.zip' -delete
# tar cafJ glassfish-saaj-1.3.19.tar.xz glassfish-saaj-1.3.19
Source0:          glassfish-saaj-%{version}.tar.xz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    java-devel
BuildRequires:    maven-local
BuildRequires:    mvn(net.java:jvnet-parent:pom:)
BuildRequires:    mvn(javax.xml.soap:saaj-api)
BuildRequires:    mvn(net.java:jvnet-parent:pom:)
BuildRequires:    mvn(org.jvnet.mimepull:mimepull)

%description
Open source Reference Implementation of JSR-67: SOAP with Attachments
API for Java (SAAJ MR: 1.3)

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

# Useless tasks
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license license.html

%files javadoc -f .mfiles-javadoc
%license license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12894 |21mr|glassfish-servlet-api-3.1.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global artifactId javax.servlet-api

Name:           glassfish-servlet-api
Version:        3.1.0
Release:        17
Summary:        Java Servlet API
License:        (CDDL or GPLv2 with exceptions) and ASL 2.0
URL:            http://servlet-spec.java.net
# svn export https://svn.java.net/svn/glassfish~svn/tags/javax.servlet-api-3.1.0 javax.servlet-api-3.1.0
# tar cvJf javax.servlet-api-3.1.0.tar.xz javax.servlet-api-3.1.0/
Source0:        %{artifactId}-%{version}.tar.xz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  jvnet-parent
BuildRequires:  maven-local
BuildRequires:  maven-plugin-bundle
BuildRequires:  maven-source-plugin


%description
The javax.servlet package contains a number of classes 
and interfaces that describe and define the contracts between 
a servlet class and the runtime environment provided for 
an instance of such a class by a conforming servlet container.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{artifactId}-%{version}
%pom_remove_plugin :maven-remote-resources-plugin
%pom_remove_plugin :maven-javadoc-plugin
cp -p %{SOURCE1} .
# README contains also part of javax.servlet-api license
cp -p src/main/resources/META-INF/README .
%mvn_file :%{artifactId} %{name}

%build
%mvn_alias : javax.servlet:servlet-api
%mvn_alias : org.apache.geronimo.specs:geronimo-servlet_3.0_spec
%mvn_alias : org.eclipse.jetty.orbit:javax.servlet
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc README
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12895 |21mr|glassfish-toplink-essentials-2.0.46-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-toplink-essentials
Version:       2.0.46
Release:       17
Summary:       Glassfish JPA Toplink Essentials
License:       CDDL or GPLv2 with exceptions
URL:           http://glassfish.java.net/javaee5/persistence/
Source0:       http://dlc.sun.com.edgesuite.net/javaee5/promoted/source/glassfish-persistence-v2-b46-src.zip
# wget http://download.java.net/javaee5/v2.1.1_branch/promoted/source/glassfish-v2.1.1-b31g-src.zip
# unzip glassfish-v2.1.1-b31g-src.zip
# mkdir -p glassfish-bootstrap
# mv glassfish/bootstrap/* glassfish-bootstrap
# tar czf glassfish-bootstrap.tar.gz glassfish-bootstrap
Source1:       glassfish-bootstrap.tar.gz
# fix javadoc build
Patch0:        glassfish-entity-persistence-build.patch

Patch1:        glassfish-persistence-2.0.41-jdk7.patch
Patch2:        glassfish-persistence-2.0.41-agent-remove-manifest-classpath.patch
Patch3:        glassfish-persistence-2.0.41-use_system_antlr.patch

BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: javapackages-local

BuildRequires: ant
BuildRequires: antlr-tool
BuildRequires: geronimo-jta
BuildRequires: geronimo-jpa

Requires:      antlr-tool
Requires:      geronimo-jpa
Requires:      geronimo-jta

Requires:      jpackage-utils
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Glassfish Persistence Implementation.

%package javadoc
Summary:       Javadoc for %{name} Implementation

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -c

tar xzf %{SOURCE1}
mv glassfish-bootstrap glassfish/bootstrap
find . -name "*.class" -delete
find . -name "*.jar" -delete

%patch0 -b .sav0
%patch1 -b .sav1
%patch2 -b .sav2
%patch3 -b .sav3

sed -i -e 's/@VERSION@/%{version}/' glassfish/entity-persistence/toplink-essentials.pom
sed -i -e 's/@VERSION@/%{version}/' glassfish/entity-persistence/toplink-essentials-agent.pom

cd glassfish/bootstrap/legal
for d in CDDLv1.0.txt LICENSE.txt COPYRIGHT 3RD-PARTY-LICENSE.txt ; do
  iconv -f iso8859-1 -t utf-8 $d > $d.conv && mv -f $d.conv $d
  sed -i 's/\r//' $d
done

%build

pushd glassfish/entity-persistence
  export CLASSPATH=$(build-classpath geronimo-jpa)
  %ant -Djavaee.jar=$(build-classpath geronimo-jta) -Dglassfish.schemas.home=$PWD/../persistence-api/schemas all docs
popd

%install

mkdir -p %{buildroot}%{_javadir}/glassfish
install -m 644 publish/glassfish/lib/toplink-essentials.jar %{buildroot}%{_javadir}/%{name}.jar
install -m 644 publish/glassfish/lib/toplink-essentials-agent.jar %{buildroot}%{_javadir}/%{name}-agent.jar

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 glassfish/entity-persistence/toplink-essentials.pom \
    %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar
install -pm 644 glassfish/entity-persistence/toplink-essentials-agent.pom \
    %{buildroot}%{_mavenpomdir}/JPP-%{name}-agent.pom
%add_maven_depmap JPP-%{name}-agent.pom %{name}-agent.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr glassfish/entity-persistence/build/javadoc/* %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%license glassfish/bootstrap/legal/*

%files javadoc
%{_javadocdir}/%{name}
%license glassfish/bootstrap/legal/3RD-PARTY-LICENSE*.txt
%license glassfish/bootstrap/legal/CDDL*.txt
%license glassfish/bootstrap/legal/COPYRIGHT
%license glassfish/bootstrap/legal/LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12896 |21mr|glassfish-transaction-api-1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-transaction-api
Version:       1.2
Release:       8
Summary:       Java JTA 1.2 API Design Specification
License:       CDDL or GPLv2 with exceptions
URL:           https://java.net/projects/jta-spec/
# svn export https://svn.java.net/svn/glassfish~svn/tags/javax.transaction-api-1.2 glassfish-transaction-api-1.2
# tar cJf glassfish-transaction-api-1.2.tar.xz glassfish-transaction-api-1.2
Source0:       %{name}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.glassfish:legal)
BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Project GlassFish Java Transaction API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin

%mvn_file : %{name}

%build

%mvn_build

cp -p target/classes/META-INF/LICENSE.txt .
sed -i 's/\r//' LICENSE.txt

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12897 |21mr|glassfish-websocket-api-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          glassfish-websocket-api
Version:       1.1
Release:       8
Summary:       JSR 356: Java API for WebSocket
License:       CDDL or GPLv2 with exceptions
URL:           https://java.net/projects/websocket-spec/
# git://java.net/websocket-spec~code
Source0:       https://github.com/pavelbucek/websocket-spec/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.glassfish.build:spec-version-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java API for WebSocket JSR will define a standard API for
creating web socket applications.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n websocket-spec-%{version}

find  -name "*.class"  -print -delete
find  -name "*.jar"  -print -delete
cd api

%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-release-plugin

%pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :maven-dependency-plugin server
%pom_remove_plugin :maven-jar-plugin server

%pom_xpath_set "pom:packaging" bundle client
%pom_xpath_inject "pom:project" "<version>%{version}</version>" client
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 client '
<extensions>true</extensions>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

chmod 644 etc/config/copyright.txt

sed -i '/check-module/d' server/pom.xml

%mvn_file :javax.websocket-api %{name}
%mvn_file :javax.websocket-client-api glassfish-websocket-client-api

%build

cd api
%mvn_build

%install
cd api
%mvn_install

%files -f api/.mfiles
%doc websocket-1.1-changes.txt
%license api/etc/config/copyright.txt api/src/main/javadoc/doc-files/speclicense.html

%files javadoc -f api/.mfiles-javadoc
%license api/etc/config/copyright.txt api/src/main/javadoc/doc-files/speclicense.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12898 |21mr|gle-3.1.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname gle %{major}
%define develname %mklibname -d gle

Summary:	GLE Tubing and Extrusion Library
Name:		gle
Version:	3.1.0
Release:	19
License:	GPLv2
Group:		System/Libraries
Source:		gle-%{version}.tar.bz2
# (Anssi 05/2008) Link against libGL and libGLU to fix undefined symbols.
Patch0:		gle-3.1.0-link-with-gl+glu.patch
# (Anssi 05/2008) Fix Makefile.am files using += on unset CLEANFILES and SUFFIXES.
# This patch simply changes += to =, which AFAICS is correct here.
Patch1:		gle-3.1.0-fix-makefiles.patch
URL:		http://sourceforge.net/projects/gle
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)

%description
GLE is a library package of C functions that draw extruded surfaces,
including surfaces of revolution, sweeps, tubes, polycones,
polycylinders and helicoids.  Generically, the extruded surface is
specified with a 2D polyline that is extruded along a 3D path.  A
local coordinate system allows for additional flexibility in the
primitives drawn.  Extrusions may be texture mapped in a variety of
ways.  The GLE library generates 3D triangle coordinates, lighting
normal vectors and texture coordinates as output. GLE uses the GL or
OpenGL API's to perform the actual rendering.

%package -n %{libname}
Summary:	GLE shared library
Group:		System/Libraries

%description -n %{libname}
GLE is a library package of C functions that draw extruded surfaces,
including surfaces of revolution, sweeps, tubes, polycones,
polycylinders and helicoids.  Generically, the extruded surface is
specified with a 2D polyline that is extruded along a 3D path.  A
local coordinate system allows for additional flexibility in the
primitives drawn.  Extrusions may be texture mapped in a variety of
ways.  The GLE library generates 3D triangle coordinates, lighting
normal vectors and texture coordinates as output. GLE uses the GL or
OpenGL API's to perform the actual rendering.

The shared library needed by GLE applications.

%package -n %{develname}
Summary:	Devel files for GLE
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	libgle-devel = %{version}-%{release}
Provides:	gle-devel = %{version}-%{release}

%description -n %{develname}
GLE is a library package of C functions that draw extruded surfaces,
including surfaces of revolution, sweeps, tubes, polycones,
polycylinders and helicoids.  Generically, the extruded surface is
specified with a 2D polyline that is extruded along a 3D path.  A
local coordinate system allows for additional flexibility in the
primitives drawn.  Extrusions may be texture mapped in a variety of
ways.  The GLE library generates 3D triangle coordinates, lighting
normal vectors and texture coordinates as output. GLE uses the GL or
OpenGL API's to perform the actual rendering.

The static library and headers needed for developing GLE applications.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
find examples -name .cvsignore -exec rm {} \;

%build
# link-with-gl+glu.patch
autoreconf --force --install
%configure --disable-static
%make

%install
%makeinstall_std
mv %{buildroot}%{_datadir}/doc/gle installed-docs

cd examples
make clean

%files -n %{libname}
%doc README NEWS COPYING AUTHORS
%{_libdir}/libgle.so.%{major}*

%files -n %{develname}
%doc ChangeLog src/COPYING.src src/README.gutil examples installed-docs
%{_libdir}/libgle.so
%{_includedir}/GL/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12899 |21mr|glew-2.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2.2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	The OpenGL Extension Wrangler Library
Name:		glew
Version:	2.2.0
Release:	2
License:	BSD and MIT
Group:		Development/C
Url:		http://glew.sourceforge.net
Source0:	http://downloads.sourceforge.net/glew/%{name}-%{version}.tgz
Patch0:		glew-2.0.0-no-strip.patch
BuildRequires:	file
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)

%description
The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist C/C++
OpenGL developers with two tedious tasks: initializing and using extensions
and writing portable applications. GLEW provides an efficient run-time
mechanism to determine whether a certain extension is supported by the
driver or not. OpenGL core and extension functionality is exposed via a
single header file. GLEW currently supports a variety of platforms and
operating systems, including Windows, Linux, Darwin, Irix, and Solaris.

%files
%doc README.md doc
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GLEW shared library
Group:		System/Libraries

%description -n %{libname}
The goal of the OpenGL Extension Wrangler Library (GLEW) is to assist C/C++
OpenGL developers with two tedious tasks: initializing and using extensions
and writing portable applications. GLEW provides an efficient run-time
mechanism to determine whether a certain extension is supported by the
driver or not. OpenGL core and extension functionality is exposed via a
single header file. GLEW currently supports a variety of platforms and
operating systems, including Windows, Linux, Darwin, Irix, and Solaris.

%files -n %{libname}
%{_libdir}/libGLEW*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for using the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for using the %{name} library.

%files -n %{devname}
%{_includedir}/GL/*.h
%{_libdir}/libGLEW*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

sed -i 's#-shared -soname#-shared -lc -soname#g' config/Makefile.linux

#fix txt/doc files permissions
chmod 0755 doc
chmod 0644 doc/* README.md

sed -i 's|cc|%{__cc}|g' config/Makefile.linux

%build
%before_configure
%make_build \
	CFLAGS.EXTRA="%{optflags} -fPIC" \
	GLEW_DEST= \
	STRIP= \
	LIBDIR=%{_libdir} \
	bindir=%{_bindir} \
	includedir=%{_includedir}

%install
make install.all \
	GLEW_DEST="%{buildroot}%{_usr}" \
	STRIP= \
	PKGDIR=%{buildroot}%{_libdir}/pkgconfig \
	bindir=%{buildroot}%{_bindir} \
	LIBDIR=%{buildroot}%{_libdir} \
	includedir=%{buildroot}%{_includedir}/GL

perl -pi -e "s#%{buildroot}##g" %{buildroot}%{_libdir}/pkgconfig/*.pc

rm -f %{buildroot}%{_libdir}/*.a

chmod 0755 %{buildroot}%{_libdir}/*.so*

cp -fv include/GL/eglew.h %{buildroot}%{_includedir}/GL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12900 |21mr|glfw-3.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define major	3
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

Summary:	An OpenGL Framework
Name:		glfw
Version:	3.3.6
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://www.glfw.org
Source0:	https://github.com/glfw/glfw/releases/download/%{version}/%{name}-%{version}.zip
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xxf86vm)

%description
GLFW is a portable framework for OpenGL application development.
It handles operating system specific tasks, such OpenGL window management,
keyboard, mouse and joystick input, reding a high precision timer,
creating threads, and more.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for gupnp
Group:		System/Libraries

%description -n %{libname}
GLFW is a portable framework for OpenGL application development.
It handles operating system specific tasks, such OpenGL window management,
keyboard, mouse and joystick input, reding a high precision timer,
creating threads, and more.

This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libglfw.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name} < 2.7.8
Conflicts:	%{name} < 2.7.8

%description -n %{devname}
This package contains the development filescw for %{name}.

%files -n %{devname}
%doc docs/* README.md
%{_libdir}/libglfw.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake -DGLFW_BUILD_EXAMPLES:BOOL=OFF \
       -DGLFW_BUILD_TESTS:BOOL=OFF

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12901 |21mr|glib2.0-2.72.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

#gw this was required since 2.23.2 (new atomic OPs?)
%if %{_use_internal_dependency_generator}
%global __requires_exclude GLIBC_PRIVATE|python\\(abi\\)
%else
%define _requires_exceptions GLIBC_PRIVATE
%endif
%define _python_bytecompile_build 0
#% global __requires_exclude bin/python3

%bcond_with gtkdoc

# gw bootstrap: fam pulls glib2, so build without fam
%bcond_without bootstrap

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

# Note that this is NOT a relocatable package
%define api	2.0
%define major	0
%define libname		%mklibname %{name}_ %{major}
%define libgio		%mklibname gio %{api} %{major}
%define libgmodule	%mklibname gmodule %{api} %{major}
%define libgthread	%mklibname gthread %{api} %{major}
%define libgobject	%mklibname gobject %{api} %{major}
%define devname		%mklibname %{name} -d
%define sdevname	%mklibname %{name} -d -s
%ifarch x86_64 aarch64
%define	bit	64
%else
%define	bit	32
%endif
%define gio	gio2.0-%{bit}

Summary:	GIMP Toolkit and GIMP Drawing Kit support library
Name:		glib%{api}
Epoch:		1
Version:	2.72.3
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/glib
Source0:	https://download.gnome.org/sources/glib/%{url_ver}/glib-%{version}.tar.xz
Patch0:		glib-2.54.2-no-warnings.patch
# Backported upstream fixes for GVariant normalization issues, fixing
# CVE-2023-24593, CVE-2023-29499, CVE-2023-25180, CVE-2023-32611,
# CVE-2023-32636, CVE-2023-32643, CVE-2023-32665
# (from https://launchpad.net/ubuntu/+source/glib2.0/2.72.4-0ubuntu2.3)
Patch1:	gvariant-security-1-01.patch
Patch2:	gvariant-security-1-02.patch
Patch3:	gvariant-security-1-03.patch
Patch4:	gvariant-security-1-04.patch
Patch5:	gvariant-security-1-05.patch
Patch6:	gvariant-security-1-06.patch
Patch7:	gvariant-security-1-07.patch
Patch8:	gvariant-security-1-08.patch
Patch9:	gvariant-security-1-09.patch
Patch10:	gvariant-security-1-10.patch
Patch11:	gvariant-security-1-11.patch
Patch12:	gvariant-security-1-12.patch
Patch13:	gvariant-security-1-13.patch
Patch14:	gvariant-security-1-14.patch
Patch15:	gvariant-security-1-15.patch
Patch16:	gvariant-security-1-16.patch
Patch17:	gvariant-security-1-17.patch
Patch18:	gvariant-security-1-18.patch
Patch19:	gvariant-security-2-1.patch
Patch20:	gvariant-security-2-2.patch
Patch21:	gvariant-security-3-1.patch
BuildRequires:	docbook-dtd412-xml
BuildRequires:	docbook-xsl
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	locales-en
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(dbus-1)
%if %{without bootstrap}
BuildRequires:	pkgconfig(gamin)
%endif
%if %{with gtkdoc}
BuildRequires:	pkgconfig(gtk-doc)
%endif
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(mount)
BuildRequires:	pkgconfig(zlib)
Requires:	pkgconfig(shared-mime-info)

%description
Glib is a handy library of utility functions. This C
library is designed to solve some portability problems
and provide other useful functionality which most
programs require.

Glib is used by GDK, GTK+ and many applications.
You should install Glib because many of your applications
will depend on this library.

#----------------------------------------------------------------------------

%package common
Summary:	Data files used by glib
Group:		System/Libraries

%description common
Glib is a handy library of utility functions. This C
library is designed to solve some portability problems
and provide other useful functionality which most
programs require.

Glib is used by GDK, GTK+ and many applications.
You should install Glib because many of your applications
will depend on this library.

This package contains data used by glib library.

%files common -f glib20.lang
%doc README
%{_bindir}/gapplication
%{_bindir}/gdbus
%{_bindir}/gio
%{_bindir}/glib-compile-schemas
%{_bindir}/gsettings
%{_datadir}/bash-completion/completions/gapplication
%{_datadir}/bash-completion/completions/gdbus
%{_datadir}/bash-completion/completions/gio
%{_datadir}/bash-completion/completions/gsettings
%{_datadir}/gettext/its/gschema.*
%{_datadir}/glib-2.0/schemas/gschema.dtd
%dir %{_datadir}/glib-2.0/
%dir %{_datadir}/glib-2.0/schemas/
%ghost %{_datadir}/glib-2.0/schemas/gschemas.compiled
%{_mandir}/man1/gapplication.1.xz
%{_mandir}/man1/gdbus.1*
%{_mandir}/man1/gio.1*
%{_mandir}/man1/glib-compile-schemas.1*
%{_mandir}/man1/gsettings.1*

%post common
%{_bindir}/glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas/

%filetriggerin common -- %{_datadir}/glib-2.0/schemas/
%{_bindir}/glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas/

%filetriggerpostun common -- %{_datadir}/glib-2.0/schemas/
%{_bindir}/glib-compile-schemas --allow-any-name %{_datadir}/glib-2.0/schemas/

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{summary}
Group:		%{group}
Provides:	glib2 = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libglib.

%files -n %{libname}
%{_libdir}/libglib-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgio}
Summary:	%{summary}
Group:		%{group}

%description -n %{libgio}
This package contains the library needed to run programs dynamically
linked with libgio.

%files -n %{libgio}
%{_libdir}/libgio-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgmodule}
Summary:	%{summary}
Group:		%{group}

%description -n %{libgmodule}
This package contains the library needed to run programs dynamically
linked with libgmodule.

%files -n %{libgmodule}
%{_libdir}/libgmodule-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgobject}
Summary:	%{summary}
Group:		%{group}

%description -n %{libgobject}
This package contains the library needed to run programs dynamically
linked with libgobject.

%files -n %{libgobject}
%{_libdir}/libgobject-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgthread}
Summary:	%{summary}
Group:		%{group}

%description -n %{libgthread}
This package contains the library needed to run programs dynamically
linked with libgthread.

%files -n %{libgthread}
%{_libdir}/libgthread-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{gio}
Summary:	GIO is the input, output and streaming API of glib
Group:		%{group}
Provides:	gio2.0 = %{EVRD}

%description -n %{gio}
GIO is the input, output and streaming API of glib. It on the one hand
provides a set of various streaming classes to access data from different
sources in a convenient way and on the other hand it provides a high level
file system abstraction to access file and directories not only local but also
on the network. For the latter you need to install gvfs.

%files -n %{gio}
%{_bindir}/gio-querymodules-%{bit}
%ghost %{_libdir}/gio/modules/giomodule.cache
%if %{without bootstrap}
%dir %{_libdir}/gio/
%dir %{_libdir}/gio/modules/
%{_libdir}/gio/modules/libgiofam.so
%endif
%{_mandir}/man1/gio-querymodules*.1*

%post -n %{gio}
%{_bindir}/gio-querymodules-%{bit} %{_libdir}/gio/modules

%filetriggerin -n %{gio} -- %{_libdir}/gio/modules/
%{_bindir}/gio-querymodules-%{bit} %{_libdir}/gio/modules

%filetriggerpostun -n %{gio} -- %{_libdir}/gio/modules/
%{_bindir}/gio-querymodules-%{bit} %{_libdir}/gio/modules

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of %{name}
Group:		Development/C
Requires:	glib-gettextize = %{EVRD}
Requires:	%{libgio} = %{EVRD}
Requires:	%{libgmodule} = %{EVRD}
Requires:	%{libgobject} = %{EVRD}
Requires:	%{libgthread} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Provides:	glib2-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the support library for the GIMP's X libraries, which are
available as public libraries. GLIB includes generally useful data structures.

%files -n %{devname}
%doc AUTHORS NEWS
%if %{with gtkdoc}
%doc %{_datadir}/gtk-doc/html/*
%endif
%{_bindir}/gdbus-codegen
%{_bindir}/glib-compile-resources
%{_bindir}/glib-genmarshal
%{_bindir}/glib-mkenums
%{_bindir}/gobject-query
%{_bindir}/gresource
%{_bindir}/gtester*
%{_datadir}/aclocal/glib-%{api}.m4
%{_datadir}/aclocal/gsettings.m4
%{_datadir}/bash-completion/completions/gresource
%{_datadir}/gdb/auto-load/%{_libdir}/lib*-gdb.py
%{_datadir}/glib-2.0/valgrind/*
%{_datadir}/glib-%{api}/codegen
%{_datadir}/glib-%{api}/gdb/
%{_includedir}/*
%{_libdir}/glib-%{api}/include/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man1/gdbus-codegen.1*
%{_mandir}/man1/glib-compile-resources.1*
%{_mandir}/man1/glib-genmarshal.1*
%{_mandir}/man1/glib-mkenums.1*
%{_mandir}/man1/gobject-query.1*
%{_mandir}/man1/gresource.1*
%{_mandir}/man1/gtester.1*
%{_mandir}/man1/gtester-report.1*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries of %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Provides:	glib2-static-devel = %{EVRD}

%description -n %{sdevname}
Static libraries of %{name}.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package -n glib-gettextize
Summary:	Gettextize replacement
Group:		Development/Other

%description -n glib-gettextize
%{name} package is designed to replace gettextize completely.
Various gettext related files are modified in glib and gtk+ to
allow better and more flexible i18n; however gettextize overwrites
them with its own copy of files, thus nullifying the changes.
If this replacement of gettextize is run instead, then all gnome
packages can potentially benefict from the changes.

%files -n glib-gettextize
%{_bindir}/glib-gettextize
%{_datadir}/aclocal/glib-gettext.m4
%{_datadir}/glib-%{api}/gettext/
%{_mandir}/man1/glib-gettextize.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n glib-%{version}
# (tpg) remove pcre as we use system one
rm -rf glib/pcre/*.[ch]

%build
%meson \
	-Db_pgo=off			\
%if !%{with bootstrap}
	-Dfam=true			\
%else
	-Dfam=false			\
%endif
	-Dgio_module_dir="%{_libdir}/gio/modules"	\
	-Dinstalled_tests=false		\
	-Dman=true			\
	-Dselinux=disabled		\
	-Dsystemtap=true		\
	-Dtapset_install_dir=%{_datadir}/systemtap	\
	--default-library=both

%meson_build

%install
%meson_install

%find_lang glib20

mv %{buildroot}%{_bindir}/gio-querymodules %{buildroot}%{_bindir}/gio-querymodules-%{bit}
mv %{buildroot}%{_mandir}/man1/gio-querymodules.1 %{buildroot}%{_mandir}/man1/gio-querymodules-%{bit}.1

#ghost files
mkdir -p %{buildroot}%{_libdir}/gio/modules
touch %{buildroot}%{_libdir}/gio/modules/giomodule.cache %{buildroot}%{_datadir}/glib-2.0/schemas/gschemas.compiled

# bash-completion scripts need not be executable
chmod 644 %{buildroot}%{_datadir}/bash-completion/completions/*

#gw at the moment, don't ship these:
rm -fv %{buildroot}%{_datadir}/systemtap/tapset/{glib,gobject}.stp

# (tpg) delete rpath
chrpath --delete %{buildroot}%{_libdir}/*.so
#chrpath --delete %{buildroot}/%{_lib}/*.so.*

rm -rf %{buildroot}%{_libexecdir}/installed-tests %{buildroot}%{_datadir}/installed-tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12902 |21mr|glibc-2.33-10.git1a2009.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Use snapshots of post-release branch
# https://sourceware.org/git/?p=glibc.git;a=log;h=refs/heads/release/2.33/master
# Package from the last commit from there
# Only important patches are ported into it
# (instead of applying many commits as patches)
%define commit 1a200935e135e8576556092e328155d150ce97de
%define commit_short %(echo %{commit} | head -c6)

# Fixes of CVEs:
# CVE-2021-3998 - https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=e41e5b97e34
# CVE-2021-3999 - https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=bcdde07537d
# CVE-2021-27645 - https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=a151f2e05a6
# CVE-2021-33574 - https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=4b6be914bd3,
#                  https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=8c06748c517
# CVE-2021-38604 - https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=27a78fd712c
# CVE-2022-23218 - https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=0f70b829f8e
# CVE-2022-23219 - https://sourceware.org/git/?p=glibc.git;a=commitdiff;h=4653cd9e366
# CVE-2023-4527 - glibc 2.33 is not affected because it does not have no-aaaa mode

%bcond_with crosscompilers
%ifarch %{ix86} %{arm}
# FIXME add riscv32-linux when glibc starts supporting it
# FIXME Determine why (and fix) 32-bit platform to x86_64-linux crosscompilers
# are broken (build failure with static assertion on offset of __private_ss)
%global targets aarch64-linux armv7hnl-linux i686-linux x32-linux riscv64-linux
%else
# FIXME add riscv32-linux when glibc starts supporting it
%global targets aarch64-linux armv7hnl-linux i686-linux x86_64-linux x32-linux riscv64-linux
%endif
%global long_targets %(
        for i in %{targets}; do
                CPU=$(echo $i |cut -d- -f1)
                OS=$(echo $i |cut -d- -f2)
                echo -n "$(rpm --target=${CPU}-${OS} -E %%{_target_platform}) "
        done
)

%define _libdir32 %{_prefix}/lib
%define _libdirn32 %{_prefix}/lib32

%define oname glibc
%define major 6
%define source_dir %{oname}-%{commit}
%define checklist %{_builddir}/%{source_dir}/Check.list
%define libc %mklibname c %{major}
%define devname %mklibname -d c
%define statname %mklibname -d -s c
%define multilibc libc%{major}

%define _disable_rebuild_configure 1

# (tpg) 2020-08-20 by default glibc is not designed to make use of LTO
%define _disable_lto 1

%define _disable_ld_no_undefined 1

# (tpg) optimize it a bit
%global optflags %{optflags} -O3 -Wno-error=stringop-overflow -fno-strict-aliasing

%global platform %{_target_vendor}-%{_target_os}%{?_gnu}
%global target_cpu %{_target_cpu}

%global target_platform %{_target_platform}
%global target_arch %{_arch}
%define cross_prefix %{nil}
%define cross_program_prefix %{nil}
%define _slibdir /%{_lib}
%define _slibdir32 /lib

# Define target (base) architecture
%define arch %(echo %{target_cpu}|sed -e "s/\\(i.86\\|athlon\\)/i386/" -e "s/amd64/x86_64/")
%define isarch() %(case " %* " in (*" %{arch} "*) echo 1;; (*) echo 0;; esac)

# Define Xen arches to build with -mno-tls-direct-seg-refs
%define xenarches %{ix86}

# Determine minimum kernel versions (rhbz#619538)
# Support being a chroot on RHEL 8 (4.18), Ubuntu 18.04 (4.15) and LTS (4.14) kernel
%define enablekernel 4.14

# Define to build nscd with selinux support
# Distro-specific default value is defined in branding-configs package
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

# Define to build a biarch package
%define build_biarch 0
%if %isarch %{x86_64} mips64 mips64el mips mipsel
%define build_biarch 1
%endif

%bcond_without nscd
%bcond_without i18ndata
%bcond_with timezone
%bcond_without locales

%if %isarch %{ix86} %{x86_64}
%bcond_without systap
%else
%bcond_with systap
%endif

# build documentation by default
%bcond_without doc
%bcond_with pdf
# enable utils by default
%bcond_without utils

#-----------------------------------------------------------------------
Summary:	The GNU libc libraries
Name:		%{cross_prefix}%{oname}
Epoch:		6
Version:	2.33
#Source0:	http://ftp.gnu.org/gnu/glibc/%{oname}-%{version}.tar.xz
# use ./upd.sh to make a tarball and automatically update Release
Source0:	glibc-%{commit}.tar.xz
Release:	10.git%{commit_short}.3
License:	LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Group:		System/Libraries
Url:		http://www.gnu.org/software/libc/

# From Fedora
Source3:	glibc-manpages.tar.bz2
Source5:	glibc-check.sh
Source10:	libc-lock.h
# (tpg) our NSS config
Source11:	nsswitch.conf

Source100:	%{oname}.rpmlintrc
Source1000:	localepkg.sh
Source1001:	locale_install.sh
Source1002:	locale_uninstall.sh
Source1003:	locales.sysconfig

#-----------------------------------------------------------------------
# fedora patches
Patch25:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-linux-tcsetattr.patch
Patch26:	eglibc-fedora-locale-euro.patch
Patch27:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-localedata-rh61908.patch
# We disagree with
#		http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-streams-rh436349.patch
# Therefore we don't package/apply it.
Patch30:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-localedef.patch
Patch31:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-locarchive.patch
Patch32:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-manual-dircategory.patch
Patch35:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-ppc-unwind.patch
Patch36:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-aarch64-tls-fixes.patch
Patch38:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-arm-hardfloat-3.patch
Patch40:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-c-utf8-locale.patch
Patch41:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-cs-path.patch
# We disagree with http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-disable-rwlock-elision.patch
# Patch 131 is a much nicer solution that disables rwlock elision only on CPUs that can't handle it.
Patch44:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-__libc_multiple_libcs.patch
Patch46:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-fedora-nscd.patch
Patch47:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-gcc-PR69537.patch
Patch50:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-nscd-sysconfig.patch
Patch52:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh1009145.patch
Patch54:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh1070416.patch
#Patch55:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh1315108.patch
Patch58:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh1324623.patch
#Patch59:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh1335011.patch
Patch61:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh697421.patch
Patch63:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh819430.patch
Patch64:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh825061.patch
Patch65:	http://pkgs.fedoraproject.org/cgit/rpms/glibc.git/plain/glibc-rh827510.patch

#-----------------------------------------------------------------------
# Clear Linux patches
Patch83:	https://github.com/clearlinux-pkgs/glibc/blob/master/alternate_trim.patch
Patch84:	https://github.com/clearlinux-pkgs/glibc/blob/master/madvise-bss.patch
Patch86:	https://raw.githubusercontent.com/clearlinux-pkgs/glibc/master/large-page-huge-page.patch
Patch87:	https://raw.githubusercontent.com/clearlinux-pkgs/glibc/master/use_madv_free.patch
Patch88:	https://raw.githubusercontent.com/clearlinux-pkgs/glibc/master/malloc_tune.patch
# (tpg) CLR disabled this patch
#Patch90:	https://raw.githubusercontent.com/clearlinux-pkgs/glibc/master/ldconfig-Os.patch
Patch92:	https://raw.githubusercontent.com/clearlinux-pkgs/glibc/master/pause.patch
Patch101:	https://raw.githubusercontent.com/clearlinux-pkgs/glibc/master/nostackshrink.patch

#-----------------------------------------------------------------------
# OpenMandriva patches
Patch1000:	eglibc-mandriva-localedef-archive-follow-symlinks.patch
Patch1001:	glibc-2.33-compile.patch
Patch1003:	eglibc-mandriva-share-locale.patch
Patch1004:	eglibc-mandriva-nsswitch.conf.patch
Patch1005:	eglibc-mandriva-xterm-xvt.patch
Patch1007:	eglibc-mandriva-nscd-no-host-cache.patch
Patch1010:	eglibc-mandriva-timezone.patch
Patch1012:	eglibc-mandriva-ENOTTY-fr-translation.patch
Patch1018:	eglibc-mandriva-testsuite-ldbl-bits.patch
Patch1019:	eglibc-mandriva-testsuite-rt-notparallel.patch
Patch1020:	glibc-2.19-no-__builtin_va_arg_pack-with-clang.patch
# http://sourceware.org/bugzilla/show_bug.cgi?id=14995
# http://sourceware.org/bugzilla/attachment.cgi?id=6795
Patch1029:	glibc-2.19-nscd-socket-and-pid-moved-from-varrun-to-run.patch
Patch1033:	glibc-2.25-force-use-ld-bfd.patch
Patch1035:	glibc-2.33-aarch64-buildfix.patch
Patch1036:	glibc-2.29-strict-aliasing.patch
Patch1037:	glibc-2.29-SIG_BLOCK.patch
Patch1038:	glibc-2.31.9000-aarch64-compile.patch
Patch1039:	https://github.com/FireBurn/glibc/commit/4483f2500825a84382c2a6a9ac60fc77954533d7.patch
Patch1040:	https://github.com/FireBurn/glibc/commit/2efa9591e5e8a129e7b73ad0dad3eecbd69482ff.patch

Patch1051:	glibc-2.34-select-i686.patch

# https://sourceware.org/bugzilla/show_bug.cgi?id=30843#c19
# This fix does not introduce CVE-2023-5156
Patch2001:	 CVE-2023-4806.patch
Patch2002:	 CVE-2023-4813.patch

# do not remove this BR - it helps to bootstrap the generator
BuildRequires:	devel-rpm-generators
BuildRequires:	autoconf2.5
BuildRequires:	%{cross_prefix}binutils >= 2.30-7
BuildRequires:	%{cross_prefix}gcc
BuildRequires:	gettext
BuildRequires:	kernel-release-headers >= %{enablekernel}
BuildRequires:	patch
BuildRequires:	hardlink
BuildRequires:	cap-devel
BuildRequires:	bison
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	systemd
%if %{with selinux}
# see configure.ac
BuildRequires:	selinux-devel
BuildRequires:	audit-devel
BuildRequires:	pkgconfig(libcap)
%endif
BuildRequires:	texinfo
%if %{with pdf}
BuildRequires:	texlive
%endif
%if %{with utils}
BuildRequires:	gd-devel pkgconfig(zlib) pkgconfig(libpng)
%endif
%if %{with systap}
BuildRequires:	systemtap-devel
%endif
Requires:	filesystem
Requires(post):	filesystem
%if %isarch %{xenarches}
%rename		%{name}-xen
%endif
# The dynamic linker supports DT_GNU_HASH
Provides:	rtld(GNU_HASH)
Provides:	should-restart = system
Obsoletes:	glibc-profile < 2.33
# Old prelink versions breaks the system with glibc 2.11
Conflicts:	prelink < 1:0.4.2-1.20091104.1mdv2010.1
Conflicts:	kernel < %{enablekernel}

# Don't try to explicitly provide GLIBC_PRIVATE versioned libraries
%global __filter_GLIBC_PRIVATE 1

%rename		ld.so
%ifarch %{mips} %{mipsel}
Provides:	ld.so.1
%endif
%rename		ldconfig
%define		libnssfiles %mklibname nss_files 2
%rename		%{libnssfiles}
Provides:	/sbin/ldconfig
Obsoletes:	nss_db < 2.33

%if %{build_biarch}
Requires:	%{multilibc} = %{EVRD}
%endif

%description
The glibc package contains standard libraries which are used by
multiple programs on the system. In order to save disk space and
memory, as well as to make upgrading easier, common system code is
kept in one place and shared between programs. This particular package
contains the most important sets of shared libraries: the standard C
library and the standard math library. Without these two libraries, a
Linux system will not function.

%if "%{name}" == "glibc"
%pre -p <lua>
-- Check that the running kernel is new enough
required = '%{enablekernel}'
rel = posix.uname("%r")
if rpm.vercmp(rel, required) < 0 then
  error("FATAL: installed kernel is too old for glibc", 0)
end

%post -p <lua>
-- We use lua's posix.exec because there may be no shell that we can
-- run during glibc upgrade.
function post_exec (program, ...)
  local pid = posix.fork ()
  if pid == 0 then
    assert (posix.exec (program, ...))
  elseif pid > 0 then
    posix.wait (pid)
  end
end

-- (1) Remove multilib libraries from previous installs.
-- In order to support in-place upgrades, we must immediately remove
-- obsolete platform directories after installing a new glibc
-- version.  RPM only deletes files removed by updates near the end
-- of the transaction.  If we did not remove the obsolete platform
-- directories here, they may be preferred by the dynamic linker
-- during the execution of subsequent RPM scriptlets, likely
-- resulting in process startup failures.

-- Full set of libraries glibc may install.
install_libs = { "anl", "BrokenLocale", "c", "dl", "m", "mvec",
	 "nss_compat", "nss_db", "nss_dns", "nss_files",
	 "nss_hesiod", "pthread", "resolv", "rt", "SegFault",
	 "thread_db", "util" }

-- We are going to remove these libraries. Generally speaking we remove
-- all core libraries in the multilib directory.
-- We employ a tight match where X.Y is in [2.0,9.9*], so we would 
-- match "libc-2.0.so" and so on up to "libc-9.9*".
remove_regexps = {}
for i = 1, #install_libs do
  remove_regexps[i] = ("lib" .. install_libs[i]
                       .. "%%-[2-9]%%.[0-9]+%%.so$")
end

-- Two exceptions:
remove_regexps[#install_libs + 1] = "libthread_db%%-1%%.0%%.so"
remove_regexps[#install_libs + 2] = "libSegFault%%.so"

-- We are going to search these directories.
local remove_dirs = { "%{_libdir}/i686",
	      "%{_libdir}/i686/nosegneg",
	      "%{_libdir}/power6",
	      "%{_libdir}/power7",
	      "%{_libdir}/power8" }

-- Walk all the directories with files we need to remove...
for _, rdir in ipairs (remove_dirs) do
  if posix.access (rdir) then
    -- If the directory exists we look at all the files...
    local remove_files = posix.files (rdir)
    for rfile in remove_files do
      for _, rregexp in ipairs (remove_regexps) do
    -- Does it match the regexp?
    local dso = string.match (rfile, rregexp)
        if (dso ~= nil) then
      -- Removing file...
      os.remove (rdir .. '/' .. rfile)
    end
      end
    end
  end
end

-- (2) Update /etc/ld.so.conf
-- Next we update /etc/ld.so.conf to ensure that it starts with
-- a literal "include ld.so.conf.d/*.conf".

local ldsoconf = "/etc/ld.so.conf"
local ldsoconf_tmp = "/etc/glibc_post_upgrade.ld.so.conf"

if posix.access (ldsoconf) then

  -- We must have a "include ld.so.conf.d/*.conf" line.
  local have_include = false
  for line in io.lines (ldsoconf) do
    -- This must match, and we don't ignore whitespace.
    if string.match (line, "^include ld.so.conf.d/%%*%%.conf$") ~= nil then
      have_include = true
    end
  end

  if not have_include then
    -- Insert "include ld.so.conf.d/*.conf" line at the start of the
    -- file. We only support one of these post upgrades running at
    -- a time (temporary file name is fixed).
    local tmp_fd = io.open (ldsoconf_tmp, "w")
    if tmp_fd ~= nil then
      tmp_fd:write ("include ld.so.conf.d/*.conf\n")
      for line in io.lines (ldsoconf) do
        tmp_fd:write (line .. "\n")
      end
      tmp_fd:close ()
      local res = os.rename (ldsoconf_tmp, ldsoconf)
      if res == nil then
        io.stdout:write ("Error: Unable to update configuration file (rename).\n")
      end
    else
      io.stdout:write ("Error: Unable to update configuration file (open).\n")
    end
  end
end

-- (3) Rebuild ld.so.cache early.
-- If the format of the cache changes then we need to rebuild
-- the cache early to avoid any problems running binaries with
-- the new glibc.

-- Note: We use _prefix because Fedora's UsrMove says so.
post_exec ("/sbin/ldconfig")

-- (4) Update gconv modules cache.
-- If the /usr/lib/gconv/gconv-modules.cache exists, then update it
-- with the latest set of modules that were just installed.
-- We assume that the cache is in _libdir/gconv and called
-- "gconv-modules.cache".

local iconv_dir = "%{_libdir}/gconv"
local iconv_cache = iconv_dir .. "/gconv-modules.cache"
if (posix.utime (iconv_cache) == 0) then
  post_exec ("%{_sbindir}/iconvconfig",
         "-o", iconv_cache,
         "--nostdlib",
         iconv_dir)
else
  io.stdout:write ("Error: Missing " .. iconv_cache .. " file.\n")
end

%transfiletriggerin -p <lua> -- /lib/ /lib64/ /usr/lib/ /usr/lib64/ /etc/ld.so.conf.d/
os.execute("/sbin/ldconfig -X")

%transfiletriggerpostun -p <lua> -- /lib/ /lib64/ /usr/lib/ /usr/lib64/ /etc/ld.so.conf.d/
os.execute("/sbin/ldconfig -X")
%endif

%if %{with locales}
%package -n task-locales
Summary:	Task with locales-*
Group:		System/Internationalization
Recommends:	locales-aa locales-af locales-agr locales-ak locales-am locales-anp locales-ar locales-as locales-ast locales-ayc locales-az locales-be locales-bem locales-ber locales-bg locales-bhb locales-bho locales-bi locales-bn locales-bo locales-br locales-bs locales-ca locales-ce locales-chr locales-ckb locales-crh locales-cs locales-cv locales-cy locales-da locales-de locales-doi locales-dsb locales-dv locales-dz locales-el locales-en locales-eo locales-es locales-et locales-eu locales-fa locales-ff locales-fi locales-fo locales-fr locales-fur locales-fy locales-ga locales-gd locales-gl locales-gu locales-gv locales-ha locales-he locales-hi locales-hif locales-hne locales-hr locales-hsb locales-ht locales-hu locales-hy locales-ia locales-id locales-ig locales-ik locales-is locales-it locales-iu locales-ja locales-ka locales-kab locales-kk locales-kl locales-km locales-kn locales-ko locales-kok locales-ks locales-ku locales-kw locales-ky locales-lb locales-lg locales-li locales-lij locales-ln locales-lo locales-lt locales-lv locales-mag locales-mai locales-mfe locales-mg locales-mhr locales-mi locales-miq locales-mjw locales-mk locales-ml locales-mn locales-mni locales-mnw locales-mr locales-ms locales-mt locales-my locales-nds locales-ne locales-nhn locales-niu locales-nl locales-no locales-nr locales-nso locales-oc locales-or locales-os locales-pa locales-pap locales-pl locales-ps locales-pt locales-quz locales-raj locales-ro locales-ru locales-rw locales-sa locales-sah locales-sat locales-sc locales-sd locales-se locales-sgs locales-shn locales-shs locales-si locales-sk locales-sl locales-sm locales-so locales-sq locales-sr locales-ss locales-st locales-sv locales-sw locales-szl locales-ta locales-tcy locales-te locales-tg locales-th locales-the locales-tk locales-tl locales-tn locales-to locales-tpi locales-tr locales-ts locales-tt locales-ug locales-uk locales-unm locales-ur locales-uz locales-ve locales-vi locales-wa locales-wae locales-wo locales-xh locales-yi locales-yo locales-yue locales-yuw locales-zh locales-zu

%description -n task-locales
Task with locales-* for use in liveinstall.

%files -n task-locales

%package -n locales
Summary:	Base files for localization
Group:		System/Internationalization
Obsoletes:	locales <= 2.18.90-2
Obsoletes:	locales < 2.19-13
Requires(post,preun):	/bin/sh
Requires(post,preun):	grep
Requires(post,preun):	sed
Requires(post,preun):	coreutils
Requires(post,preun):	util-linux
Requires(post,preun):	glibc
Requires(post,preun):	rpm

%description -n locales
These are the base files for language localization.
You also need to install the specific locales-?? for the
language(s) you want. Then the user need to set the
LANG variable to their preferred language in their
~/.profile configuration file.

# Locale specifc packages
# To look up a language name from a newly appearing code,
# Try http://scriptsource.org/cms/scripts/page.php?item_id=language_detail&key=XXX (where XXX is the new code without country suffix)
%{expand:%(sh %{S:1000} "Afar" "aa" "aa_DJ" "aa_ER" "aa_ET")}
%{expand:%(sh %{S:1000} "Afrikaans" "af" "af_ZA")}
%{expand:%(sh %{S:1000} "Aguaruna" "agr" "agr_PE")}
%{expand:%(sh %{S:1000} "Amharic" "am" "am_ET" "byn_ER" "gez_ER" "gez_ET" "om_ET" "om_KE" "sid_ET" "ti_ER" "ti_ET" "tig_ER" "wal_ET")}
%{expand:%(sh %{S:1000} "Akan" "ak" "ak_GH")}
%{expand:%(sh %{S:1000} "Angika" "anp" "anp_IN")}
%{expand:%(sh %{S:1000} "Arabic" "ar" "ar_AE" "ar_BH" "ar_DZ" "ar_EG" "ar_IN" "ar_IQ" "ar_JO" "ar_KW" "ar_LB" "ar_LY" "ar_MA" "ar_OM" "ar_QA" "ar_SA" "ar_SD" "ar_SS" "ar_SY" "ar_TN" "ar_YE")}
%{expand:%(sh %{S:1000} "Assamese" "as" "as_IN")}
%{expand:%(sh %{S:1000} "Asturian" "ast" "ast_ES")}
%{expand:%(sh %{S:1000} "Aymara" "ayc" "ayc_PE")}
%{expand:%(sh %{S:1000} "Azeri" "az" "az_AZ" "az_IR")}
%{expand:%(sh %{S:1000} "Belarusian" "be" "be_BY")}
%{expand:%(sh %{S:1000} "Bemba" "bem" "bem_ZM")}
%{expand:%(sh %{S:1000} "Berber" "ber" "ber_DZ" "ber_MA")}
%{expand:%(sh %{S:1000} "Bulgarian" "bg" "bg_BG")}
%{expand:%(sh %{S:1000} "Bhili" "bhb" "bhb_IN")}
%{expand:%(sh %{S:1000} "Bhojpuri" "bho" "bho_NP")}
%{expand:%(sh %{S:1000} "Bislama" "bi" "bi_VU")}
%{expand:%(sh %{S:1000} "Bengali" "bn" "bn_BD" "bn_IN")}
%{expand:%(sh %{S:1000} "Tibetan" "bo" "bo_CN" "bo_IN")}
%{expand:%(sh %{S:1000} "Breton" "br" "br_FR")}
%{expand:%(sh %{S:1000} "Bosnian" "bs" "bs_BA")}
%{expand:%(sh %{S:1000} "Catalan" "ca" "ca_AD" "ca_ES" "ca_FR" "ca_IT")}
%{expand:%(sh %{S:1000} "Chechen" "ce" "ce_RU")}
%{expand:%(sh %{S:1000} "Cherokee" "chr" "chr_US")}
%{expand:%(sh %{S:1000} "Central Kurdish" "ckb" "ckb_IQ")}
%{expand:%(sh %{S:1000} "Crimean Tatar" "crh" "crh_UA")}
%{expand:%(sh %{S:1000} "Czech" "cs" "cs_CZ")}
%{expand:%(sh %{S:1000} "Chuvash" "cv" "cv_RU")}
%{expand:%(sh %{S:1000} "Welsh" "cy" "cy_GB")}
%{expand:%(sh %{S:1000} "Danish" "da" "da_DK")}
%{expand:%(sh %{S:1000} "German" "de" "de_AT" "de_BE" "de_CH" "de_DE" "de_LU" "de_IT" "de_LI")}
%{expand:%(sh %{S:1000} "Dogri" "doi" "doi_IN")}
%{expand:%(sh %{S:1000} "Dhivehi" "dv" "dv_MV")}
%{expand:%(sh %{S:1000} "Dzongkha" "dz" "dz_BT")}
%{expand:%(sh %{S:1000} "Greek" "el" "r:gr" "el_CY" "el_GR")}
%{expand:%(sh %{S:1000} "English" "en" "C" "en_AG" "en_AU" "en_BW" "en_CA" "en_DK" "en_GB" "en_HK" "en_IE" "en_IL" "en_IN" "en_NG" "en_NZ" "en_PH" "en_SC" "en_SG" "en_US" "en_ZA" "en_ZM" "en_ZW")}
%{expand:%(sh %{S:1000} "Esperanto" "eo" "eo" "eo_XX")}
# Potentially unhandled: es@tradicional? an = Aragonese
%{expand:%(sh %{S:1000} "Spanish" "es" "an_ES" "es_AR" "es_BO" "es_CL" "es_CO" "es_CR" "es_CU" "es_DO" "es_EC" "es_ES" "es_GT" "es_HN" "es_MX" "es_NI" "es_PA" "es_PE" "es_PR" "es_PY" "es_SV" "es_US" "es_UY" "es_VE")}
%{expand:%(sh %{S:1000} "Estonian" "et" "et_EE")}
%{expand:%(sh %{S:1000} "Basque" "eu" "eu_ES")}
%{expand:%(sh %{S:1000} "Farsi" "fa" "fa_IR")}
%{expand:%(sh %{S:1000} "Finnish" "fi" "fi_FI")}
%{expand:%(sh %{S:1000} "Fulah" "ff" "ff_SN")}
%{expand:%(sh %{S:1000} "Faroese" "fo" "fo_FO")}
%{expand:%(sh %{S:1000} "French" "fr" "fr_BE" "fr_CA" "fr_CH" "fr_FR" "fr_LU")}
%{expand:%(sh %{S:1000} "Friulan" "fur" "fur_IT")}
%{expand:%(sh %{S:1000} "Frisian" "fy" "fy_DE" "fy_NL")}
%{expand:%(sh %{S:1000} "Irish" "ga" "ga_IE")}
%{expand:%(sh %{S:1000} "Scottish Gaelic" "gd" "gd_GB")}
%{expand:%(sh %{S:1000} "Galician" "gl" "gl_ES")}
%{expand:%(sh %{S:1000} "Gujarati" "gu" "gu_IN")}
%{expand:%(sh %{S:1000} "Manx Gaelic" "gv" "gv_GB")}
%{expand:%(sh %{S:1000} "Hausa" "ha" "ha_NG")}
%{expand:%(sh %{S:1000} "Hebrew" "he" "he_IL" "iw_IL")}
%{expand:%(sh %{S:1000} "Hindi" "hi" "bho_IN" "brx_IN" "hi_IN" "ur_IN")}
%{expand:%(sh %{S:1000} "Fiji Hindi" "hif" "hif_FJ")}
%{expand:%(sh %{S:1000} "Chhattisgarhi" "hne" "hne_IN")}
%{expand:%(sh %{S:1000} "Croatian" "hr" "hr_HR")}
%{expand:%(sh %{S:1000} "Upper Sorbian" "hsb" "hsb_DE")}
%{expand:%(sh %{S:1000} "Lower Sorbian" "dsb" "dsb_DE")}
%{expand:%(sh %{S:1000} "Breyol" "ht" "ht_HT")}
%{expand:%(sh %{S:1000} "Hungarian" "hu" "hu_HU")}
%{expand:%(sh %{S:1000} "Armenian" "hy" "hy_AM")}
%{expand:%(sh %{S:1000} "Interlingua" "ia" "ia_FR")}
%{expand:%(sh %{S:1000} "Indonesian" "id" "id_ID")}
%{expand:%(sh %{S:1000} "Igbo" "ig" "ig_NG")}
%{expand:%(sh %{S:1000} "Inupiaq" "ik" "ik_CA")}
%{expand:%(sh %{S:1000} "Icelandic" "is" "is_IS")}
%{expand:%(sh %{S:1000} "Italian" "it" "it_CH" "it_IT")}
%{expand:%(sh %{S:1000} "Inuktitut" "iu" "iu_CA")}
%{expand:%(sh %{S:1000} "Japanese" "ja" "ja" "ja_JP")}
%{expand:%(sh %{S:1000} "Georgian" "ka" "ka_GE")}
%{expand:%(sh %{S:1000} "Kabyle" "kab" "kab_DZ")}
%{expand:%(sh %{S:1000} "Kazakh" "kk" "kk_KZ")}
%{expand:%(sh %{S:1000} "Sakha" "sah" "sah_RU")}
%{expand:%(sh %{S:1000} "Greenlandic" "kl" "kl_GL")}
%{expand:%(sh %{S:1000} "Khmer" "km" "km_KH")}
%{expand:%(sh %{S:1000} "Kannada" "kn" "kn_IN")}
%{expand:%(sh %{S:1000} "Korean" "ko" "ko_KR")}
%{expand:%(sh %{S:1000} "Konkani" "kok" "kok_IN")}
%{expand:%(sh %{S:1000} "Kashmiri" "ks" "ks_IN")}
%{expand:%(sh %{S:1000} "Kurdish" "ku" "ku_TR")}
%{expand:%(sh %{S:1000} "Cornish" "kw" "kw_GB")}
%{expand:%(sh %{S:1000} "Kyrgyz" "ky" "ky_KG")}
%{expand:%(sh %{S:1000} "Luxembourgish" "lb" "lb_LU")}
%{expand:%(sh %{S:1000} "Luganda" "lg" "lg_UG")}
%{expand:%(sh %{S:1000} "Limburguish" "li" "li_BE" "li_NL")}
%{expand:%(sh %{S:1000} "Ligurian" "lij" "lij_IT")}
%{expand:%(sh %{S:1000} "Lingala" "ln" "ln_CD")}
%{expand:%(sh %{S:1000} "Laotian" "lo" "lo_LA")}
%{expand:%(sh %{S:1000} "Lithuanian" "lt" "lt_LT")}
%{expand:%(sh %{S:1000} "Latvian" "lv" "lv_LV")}
%{expand:%(sh %{S:1000} "Magahi" "mag" "mag_IN")}
%{expand:%(sh %{S:1000} "Maithili" "mai" "mai_IN" "mai_NP")}
%{expand:%(sh %{S:1000} "Mauritian Creole" "mfe" "mfe_MU")}
%{expand:%(sh %{S:1000} "Malagasy" "mg" "mg_MG")}
%{expand:%(sh %{S:1000} "Mari" "mhr" "mhr_RU")}
%{expand:%(sh %{S:1000} "Maori" "mi" "mi_NZ")}
%{expand:%(sh %{S:1000} "Miskito" "miq" "miq_NI")}
%{expand:%(sh %{S:1000} "Karbi" "mjw" "mjw_IN")}
%{expand:%(sh %{S:1000} "Macedonian" "mk" "mk_MK")}
%{expand:%(sh %{S:1000} "Malayalam" "ml" "ml_IN")}
%{expand:%(sh %{S:1000} "Mongolian" "mn" "mn_MN")}
%{expand:%(sh %{S:1000} "Manipuri" "mni" "mni_IN")}
%{expand:%(sh %{S:1000} "Mon" "mnw" "mnw_MM")}
%{expand:%(sh %{S:1000} "Marathi" "mr" "mr_IN")}
%{expand:%(sh %{S:1000} "Malay" "ms" "ms_MY")}
%{expand:%(sh %{S:1000} "Maltese" "mt" "mt_MT")}
%{expand:%(sh %{S:1000} "Burmese" "my" "my_MM")}
%{expand:%(sh %{S:1000} "Lower Saxon" "nds" "nds_DE" "nds_NL")}
%{expand:%(sh %{S:1000} "Nepali" "ne" "ne_NP")}
%{expand:%(sh %{S:1000} "Nahuatl" "nhn" "nhn_MX")}
%{expand:%(sh %{S:1000} "Niuean" "niu" "niu_NU" "niu_NZ")}
%{expand:%(sh %{S:1000} "Dutch" "nl" "nl_AW" "nl_BE" "nl_NL")}
%{expand:%(sh %{S:1000} "Norwegian" "no" "r:nb" "r:nn" "nb_NO" "nn_NO")}
%{expand:%(sh %{S:1000} "Ndebele" "nr" "nr_ZA")}
%{expand:%(sh %{S:1000} "Northern Sotho" "nso" "nso_ZA")}
%{expand:%(sh %{S:1000} "Occitan" "oc" "oc_FR")}
%{expand:%(sh %{S:1000} "Oriya" "or" "or_IN")}
%{expand:%(sh %{S:1000} "Ossetian" "os" "os_RU")}
%{expand:%(sh %{S:1000} "Punjabi" "pa" "pa_IN" "pa_PK")}
%{expand:%(sh %{S:1000} "Papiamento" "pap" "r:pp" "pap_AN" "pap_AW" "pap_CW")}
%{expand:%(sh %{S:1000} "Polish" "pl" "csb_PL" "pl_PL")}
%{expand:%(sh %{S:1000} "Pashto" "ps" "ps_AF")}
%{expand:%(sh %{S:1000} "Portuguese" "pt" "pt_BR" "pt_PT")}
%{expand:%(sh %{S:1000} "Quechua" "quz" "quz_PE")}
%{expand:%(sh %{S:1000} "Rajasthani" "raj" "raj_IN")}
%{expand:%(sh %{S:1000} "Romanian" "ro" "ro_RO")}
%{expand:%(sh %{S:1000} "Russian" "ru" "ru_RU" "ru_UA")}
%{expand:%(sh %{S:1000} "Kinyarwanda" "rw" "rw_RW")}
%{expand:%(sh %{S:1000} "Sanskrit" "sa" "sa_IN")}
%{expand:%(sh %{S:1000} "Santali" "sat" "sat_IN")}
%{expand:%(sh %{S:1000} "Sardinian" "sc" "sc_IT")}
%{expand:%(sh %{S:1000} "Sindhi" "sd" "sd_IN")}
%{expand:%(sh %{S:1000} "Saami" "se" "se_NO")}
%{expand:%(sh %{S:1000} "Samogitian" "sgs" "sgs_LT")}
%{expand:%(sh %{S:1000} "Shan" "shn" "shn_MM")}
%{expand:%(sh %{S:1000} "Secwepemctsin" "shs" "shs_CA")}
%{expand:%(sh %{S:1000} "Sinhala" "si" "si_LK")}
%{expand:%(sh %{S:1000} "Slovak" "sk" "sk_SK")}
%{expand:%(sh %{S:1000} "Slovenian" "sl" "sl_SI")}
%{expand:%(sh %{S:1000} "Samoan" "sm" "sm_WS")}
%{expand:%(sh %{S:1000} "Serbian" "sr" "sr_ME" "sr_RS")}
%{expand:%(sh %{S:1000} "Somali" "so" "so_DJ" "so_ET" "so_KE" "so_SO")}
%{expand:%(sh %{S:1000} "Albanian" "sq" "sq_AL" "sq_MK")}
%{expand:%(sh %{S:1000} "Swati" "ss" "ss_ZA")}
%{expand:%(sh %{S:1000} "Sotho" "st" "st_ZA")}
%{expand:%(sh %{S:1000} "Swedish" "sv" "sv_FI" "sv_SE")}
# sw_XX?
%{expand:%(sh %{S:1000} "Swahili" "sw" "sw_KE" "sw_TZ")}
%{expand:%(sh %{S:1000} "Silesian" "szl" "szl_PL")}
%{expand:%(sh %{S:1000} "Tamil" "ta" "ta_IN" "ta_LK")}
%{expand:%(sh %{S:1000} "Telugu" "te" "te_IN")}
%{expand:%(sh %{S:1000} "Tajik" "tg" "tg_TJ")}
%{expand:%(sh %{S:1000} "Thai" "th" "th_TH")}
%{expand:%(sh %{S:1000} "Tharu/Tharuhati" "the" "the_NP")}
%{expand:%(sh %{S:1000} "Tok Pisin" "tpi" "tpi_PG")}
%{expand:%(sh %{S:1000} "Turkmen" "tk" "tk_TM")}
%{expand:%(sh %{S:1000} "Pilipino" "tl" "r:ph" "fil_PH" "tl_PH")}
%{expand:%(sh %{S:1000} "Tswana" "tn" "tn_ZA")}
%{expand:%(sh %{S:1000} "Tonga" "to" "to_TO")}
%{expand:%(sh %{S:1000} "Turkish" "tr" "tr_CY" "tr_TR")}
%{expand:%(sh %{S:1000} "Tsonga" "ts" "ts_ZA")}
%{expand:%(sh %{S:1000} "Tatar" "tt" "tt_RU")}
%{expand:%(sh %{S:1000} "Tulu" "tcy" "tcy_IN")}
%{expand:%(sh %{S:1000} "Uyghur" "ug" "ug_CN")}
%{expand:%(sh %{S:1000} "Unami" "unm" "unm_US")}
%{expand:%(sh %{S:1000} "Ukrainian" "uk" "uk_UA")}
%{expand:%(sh %{S:1000} "Urdu" "ur" "ur_PK")}
%{expand:%(sh %{S:1000} "Uzbek" "uz" "uz_UZ")}
%{expand:%(sh %{S:1000} "Venda" "ve" "ve_ZA")}
%{expand:%(sh %{S:1000} "Vietnamese" "vi" "vi_VN")}
%{expand:%(sh %{S:1000} "Walloon" "wa" "wa_BE")}
%{expand:%(sh %{S:1000} "Walser" "wae" "wae_CH")}
%{expand:%(sh %{S:1000} "Wolof" "wo" "wo_SN")}
%{expand:%(sh %{S:1000} "Xhosa" "xh" "xh_ZA")}
%{expand:%(sh %{S:1000} "Yiddish" "yi" "yi_US")}
%{expand:%(sh %{S:1000} "Yoruba" "yo" "yo_NG")}
%{expand:%(sh %{S:1000} "Yue Chinese (Cantonese)" "yue" "yue_HK")}
%{expand:%(sh %{S:1000} "Yau" "yuw" "yuw_PG")}
%{expand:%(sh %{S:1000} "Chinese" "zh" "zh_CN" "zh_HK" "zh_SG" "zh_TW" "cmn_TW" "hak_TW" "lzh_TW" "nan_TW")}
%{expand:%(sh %{S:1000} "Zulu" "zu" "zu_ZA")}

%endif

%files -f libc.lang
%if "%{name}" == "glibc"
%if %{with timezone}
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/localtime
%endif
# (tpg) please do not set (noreplace) here as after update system may end up in broken state
%config %{_sysconfdir}/nsswitch.conf
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/ld.so.conf
%dir %{_sysconfdir}/ld.so.conf.d
%config(noreplace) %{_sysconfdir}/rpc
%doc %dir %{_docdir}/glibc
%doc %{_docdir}/glibc/gai.conf
%doc %{_docdir}/glibc/COPYING
%doc %{_docdir}/glibc/COPYING.LIB
%{_localedir}/locale.alias
/sbin/sln
%{_prefix}/libexec/getconf
%endif
%if %isarch %{x86_64}
%exclude %{_prefix}/libexec/getconf/POSIX_V6_ILP32_OFF32
%exclude %{_prefix}/libexec/getconf/POSIX_V6_ILP32_OFFBIG
%exclude %{_prefix}/libexec/getconf/POSIX_V7_ILP32_OFF32
%exclude %{_prefix}/libexec/getconf/POSIX_V7_ILP32_OFFBIG
%exclude %{_prefix}/libexec/getconf/XBS5_ILP32_OFF32
%exclude %{_prefix}/libexec/getconf/XBS5_ILP32_OFFBIG
%endif
%{_slibdir}/ld-[0-9]*.so
%if %isarch %{ix86}
%{_slibdir}/ld-linux.so.2
%endif
%if %isarch %{x86_64}
%{_slibdir}/ld-linux-x86-64.so.2
%endif
%if %isarch armv7l armv8l
%{_slibdir}/ld-linux.so.3
%endif
%if %isarch armv7hl armv7hnl armv8hl armv8hnl armv8hcnl armv6j
%{_slibdir}/ld-linux-armhf.so.3
%endif
%if %isarch aarch64
%{_slibdir}/ld-linux-aarch64.so.1
/lib/ld-linux-aarch64.so.1
%endif
%if %isarch %{mips}
%{_slibdir}/ld.so.1
%endif
%if %isarch riscv64
%{_slibdir}/ld-linux-riscv64-lp64d.so.1
/lib/ld-linux-riscv64-lp64d.so.1
%{_slibdir}/lp64d
%{_libdir}/lp64d
%endif
%{_slibdir}/lib*-[.0-9]*.so
%{_slibdir}/lib*.so.[0-9]*
%{_slibdir}/libSegFault.so
%if "%{name}" == "glibc"
%dir %{_libdir}/audit
%{_libdir}/audit/sotruss-lib.so
%dir %{_libdir}/gconv
%{_libdir}/gconv/*.so
%{_libdir}/gconv/gconv-modules
%ghost %{_libdir}/gconv/gconv-modules.cache
%{_bindir}/catchsegv
%{_bindir}/gencat
%{_bindir}/getconf
%{_bindir}/getent
%{_bindir}/iconv
%{_bindir}/ldd
%if %isarch %{ix86}
%{_bindir}/lddlibc4
%endif
%{_bindir}/locale
%{_bindir}/localedef
%{_bindir}/makedb
%{_bindir}/pldd
%{_bindir}/sotruss
%{_bindir}/sprof
%{_bindir}/tzselect
%{_sbindir}/iconvconfig
/sbin/ldconfig
%ghost %{_sysconfdir}/ld.so.cache
%dir %{_var}/cache/ldconfig
%ghost %{_var}/cache/ldconfig/aux-cache
%{_var}/db/Makefile
%else
%if %isarch mips mipsel
%if %{build_biarch}
%{_slibdir32}/ld-[0-9]*.so
%{_slibdir32}/ld.so.1
%{_slibdir32}/lib*-[.0-9]*.so
%{_slibdir32}/lib*.so.[0-9]*
%{_slibdir32}/libSegFault.so
%dir %{_slibdirn32}
%{_slibdirn32}/ld*-[.0-9]*.so
%{_slibdirn32}/ld.so.1
%{_slibdirn32}/lib*-[.0-9]*.so
%{_slibdirn32}/lib*.so.[0-9]*
%{_slibdirn32}/libSegFault.so
%endif
%endif
%endif

########################################################################
%if %{build_biarch}
#-----------------------------------------------------------------------
%package -n %{multilibc}
Summary:	The GNU libc libraries
Group:		System/Libraries
Conflicts:	glibc < 2.14.90-13
Requires:	%{name} = %{EVRD}

%transfiletriggerin -p <lua> -- /usr/lib/gconv/
os.execute("/usr/sbin/iconvconfig /usr/lib/gconv -o /usr/lib/gconv/gconv-modules.cache")

%description -n %{multilibc}
The glibc package contains standard libraries which are used by
multiple programs on the system. In order to save disk space and
memory, as well as to make upgrading easier, common system code is
kept in one place and shared between programs. This particular package
contains the most important sets of shared libraries: the standard C
library and the standard math library. Without these two libraries, a
Linux system will not function.

%files -n %{multilibc}
%{_slibdir32}/ld-[0-9]*.so
%{_slibdir32}/ld-linux*.so.2
%{_slibdir32}/lib*-[.0-9]*.so
%{_slibdir32}/lib*.so.[0-9]*
%{_slibdir32}/libSegFault.so
%if "%{name}" == "glibc"
%dir %{_libdir32}/audit
%{_libdir32}/audit/sotruss-lib.so
%dir %{_libdir32}/gconv
%{_libdir32}/gconv/*.so
%{_libdir32}/gconv/gconv-modules
%ghost %{_libdir32}/gconv/gconv-modules.cache
%endif

%{_prefix}/libexec/getconf/POSIX_V6_ILP32_OFF32
%{_prefix}/libexec/getconf/POSIX_V6_ILP32_OFFBIG
%{_prefix}/libexec/getconf/POSIX_V7_ILP32_OFF32
%{_prefix}/libexec/getconf/POSIX_V7_ILP32_OFFBIG
%{_prefix}/libexec/getconf/XBS5_ILP32_OFF32
%{_prefix}/libexec/getconf/XBS5_ILP32_OFFBIG
#-----------------------------------------------------------------------
# build_biarch
%endif

#-----------------------------------------------------------------------
%package devel
Summary:	Header and object files for development using standard C libraries
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig(libxcrypt)
%if %{build_biarch}
Requires:	%{multilibc} = %{EVRD}
%endif
Autoreq:	true
Requires:	%{?cross:cross-}kernel-release-headers >= %{enablekernel}
%if %{with pdf}
%rename		glibc-doc-pdf
%endif

%description devel
The glibc-devel package contains the header and object files necessary
for developing programs which use the standard C libraries (which are
used by nearly all programs).  If you are developing programs which
will use the standard C libraries, your system needs to have these
standard header and object files available in order to create the
executables.

%package doc
Summary:	Docs for %{name}
Group:		Development/C
BuildArch:	noarch

%description doc
The glibc-docs package contains docs for %{name}.

%files doc
%doc %{_docdir}/glibc/*
%exclude %{_docdir}/glibc/gai.conf
%exclude %{_docdir}/glibc/COPYING
%exclude %{_docdir}/glibc/COPYING.LIB

%files devel
%if "%{name}" == "glibc"
%{_infodir}/libc.info*
%endif
%{_includedir}/*
%{_libdir}/*.o
%{_libdir}/*.so
%exclude %{_slibdir}/ld*-[.0-9]*.so
%exclude %{_slibdir}/lib*-[.0-9]*.so
%exclude %{_slibdir}/libSegFault.so
%{_libdir}/libc_nonshared.a
# Exists for some, but not all arches
%optional %{_libdir}/libmvec_nonshared.a
%{_libdir}/libg.a
%{_libdir}/libmcheck.a
%optional %{_libdir}/libmvec.a
%if %{build_biarch}
%{_libdir32}/*.o
%{_libdir32}/*.so
%{_libdir32}/libc_nonshared.a
%{_libdir32}/libg.a
%{_libdir32}/libmcheck.a
%if %isarch mips mipsel
%exclude %{_slibdir32}/ld*-[.0-9]*.so
%exclude %{_slibdir32}/lib*-[.0-9]*.so
%exclude %{_slibdir32}/libSegFault.so
%exclude %{_slibdirn32}/ld*-[.0-9]*.so
%exclude %{_slibdirn32}/lib*-[.0-9]*.so
%exclude %{_slibdirn32}/libSegFault.so
%{_libdirn32}/*.o
%{_libdirn32}/*.so
%{_libdirn32}/libc_nonshared.a
%{_libdirn32}/libg.a
%{_libdirn32}/libmcheck.a
%exclude %{_slibdir}/ld*-[.0-9]*.so
%exclude %{_slibdir}/lib*-[.0-9]*.so
%exclude %{_slibdir}/libSegFault.so
%endif
%endif

#-----------------------------------------------------------------------
%package static-devel
Summary:	Static libraries for GNU C library
Group:		Development/C
Requires:	%{name}-devel = %{EVRD}
Requires:	%{_lib}crypt-static-devel >= 4.4.3

%description static-devel
The glibc-static-devel package contains the static libraries necessary
for developing programs which use the standard C libraries. Install
glibc-static-devel if you need to statically link your program or
library.

%files static-devel
%{_libdir}/libBrokenLocale.a
%{_libdir}/libanl.a
%{_libdir}/libc.a
%{_libdir}/libdl.a
%{_libdir}/libm.a
# Versioned libm.a seems to be generated only on x86_64
%optional %{_libdir}/libm-[0-9]*.a
%{_libdir}/libpthread.a
%{_libdir}/libresolv.a
%{_libdir}/librt.a
%{_libdir}/libutil.a
%if %{build_biarch}
%{_libdir32}/libBrokenLocale.a
%{_libdir32}/libanl.a
%{_libdir32}/libc.a
%{_libdir32}/libdl.a
%{_libdir32}/libm.a
%{_libdir32}/libpthread.a
%{_libdir32}/libresolv.a
%{_libdir32}/librt.a
%{_libdir32}/libutil.a
%if %isarch mips mipsel
%{_libdirn32}/libBrokenLocale.a
%{_libdirn32}/libanl.a
%{_libdirn32}/libc.a
%{_libdirn32}/libdl.a
%{_libdirn32}/libm.a
%{_libdirn32}/libpthread.a
%{_libdirn32}/libresolv.a
%{_libdirn32}/librt.a
%{_libdirn32}/libutil.a
%endif
%endif

########################################################################
%if %{with nscd}
#-----------------------------------------------------------------------
%package -n nscd
Summary:	A Name Service Caching Daemon (nscd)
Group:		System/Servers
Conflicts:	kernel < 2.2.0
BuildRequires:	rpm-helper
Requires(post):	systemd
Requires(pre):	shadow

%description -n nscd
Nscd caches name service lookups and can dramatically improve
performance with NIS+, and may help with DNS as well.

%pre -n nscd -p <lua>
user = os.execute("/usr/bin/getent passwd nscd >/dev/null 2>&1")
if user ~= 0 then
    os.execute("/usr/sbin/useradd -r -M -U -s /sbin/nologin -d / -c 'system user for nscd' nscd >/dev/null 2>&1")
end

%post -n nscd -p <lua>
os.execute("/usr/sbin/nscd -i passwd -i group >/dev/null 2>&1")
os.execute("/bin/systemctl preset --now nscd.socket >/dev/null 2>&1")
os.execute("/bin/systemctl preset --now nscd.service >/dev/null 2>&1")

%files -n nscd
%config(noreplace) %{_sysconfdir}/nscd.conf
%dir %attr(0755,root,root) /run/nscd
%dir %attr(0755,root,root) %{_var}/db/nscd
%dir %attr(0755,root,root) %{_sysconfdir}/netgroup
%{_unitdir}/nscd.service
%{_unitdir}/nscd.socket
%{_sbindir}/nscd
%{_tmpfilesdir}/nscd.conf
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /run/nscd/nscd.pid
%attr(0666,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /run/nscd/socket
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /run/nscd/passwd
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /run/nscd/group
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /run/nscd/hosts
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) /run/nscd/services
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_var}/db/nscd/passwd
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_var}/db/nscd/group
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_var}/db/nscd/hosts
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_var}/db/nscd/services
%ghost %config(missingok,noreplace) %{_sysconfdir}/sysconfig/nscd
#-----------------------------------------------------------------------
# with nscd
%endif

########################################################################
%if %{with utils}
#-----------------------------------------------------------------------
%package utils
Summary:	Development utilities from GNU C library
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description utils
The glibc-utils package contains memusage, a memory usage profiler,
mtrace, a memory leak tracer and xtrace, a function call tracer which
can be helpful during program debugging.

If unsure if you need this, don't install this package.

%files utils
%{_bindir}/memusage
%{_bindir}/memusagestat
%{_bindir}/mtrace
%{_bindir}/pcprofiledump
%{_bindir}/xtrace
%{_slibdir}/libmemusage.so
%{_slibdir}/libpcprofile.so
%if %{build_biarch}
%{_slibdir32}/libmemusage.so
%{_slibdir32}/libpcprofile.so
%endif
#-----------------------------------------------------------------------
# with utils
%endif

########################################################################
%if %{with i18ndata}
#-----------------------------------------------------------------------
%package i18ndata
Summary:	Database sources for 'locale'
Group:		System/Libraries
%rename		glibc-localedata

%description i18ndata
This package contains the data needed to build the locale data files
to use the internationalization features of the GNU libc.

%files i18ndata
%dir %{_datadir}/i18n
%dir %{_datadir}/i18n/charmaps
%{_datadir}/i18n/charmaps/*
%dir %{_datadir}/i18n/locales
%{_datadir}/i18n/locales/*
%{_datadir}/i18n/SUPPORTED
#-----------------------------------------------------------------------
# with i18ndata
%endif

########################################################################
%if %{with timezone}
#-----------------------------------------------------------------------
%package -n timezone
Summary:	Time zone descriptions
Group:		System/Base
Obsoletes:	zoneinfo < 2.33

%description -n timezone
These are configuration files that describe possible time zones.

%files -n timezone
%{_sbindir}/zdump
%{_bindir}/zdump
%{_sbindir}/zic
%{_mandir}/man1/zdump.1*
%{_datadir}/zoneinfo
#-----------------------------------------------------------------------
# with timezone
%endif

%if %{with crosscompilers}
%global kernelver %(rpm -q --qf '%%{version}-%%{release}%%{disttag}' kernel-release-source)
%(
for i in %{long_targets}; do
	[ "$i" = "%{_target_platform}" ] && continue
	package=cross-${i}-libc
	cat <<EOF
%package -n ${package}
Summary: Libc for crosscompiling to ${i}
Group: Development/Other
BuildRequires: cross-${i}-binutils cross-${i}-gcc-bootstrap cross-${i}-kernel-release-headers
BuildRequires: kernel-release-source
Recommends: cross-${i}-binutils cross-${i}-gcc
%description -n ${package}
Libc for crosscompiling to ${i}

%files -n ${package}
%{_prefix}/${i}/include/*
%{_prefix}/${i}/lib*/*
EOF
done
)
%endif

%prep
%setup -q -n %{source_dir} -a3
%autopatch -p1

find . -type f -size 0 -o -name "*.orig" -exec rm {} \;

# Remove patch backups from files we ship in glibc packages
#rm localedata/locales/[a-z_]*.*

# Regenerate autoconf files, some of our patches touch them
# Remove the autoconf 2.69 hardcode...
sed -e "s,2.69,`autoconf --version |head -n1 |cut -d' ' -f4`," -i aclocal.m4
# fix nss headers location
sed -e 's@<hasht.h>@<nss/hasht.h>@g' -e 's@<nsslowhash.h>@<nss/nsslowhash.h>@g' -i configure*

aclocal
autoconf

#-----------------------------------------------------------------------
%build
# qemu hack
%ifarch %{riscv}
export libc_cv_mtls_dialect_gnu2=yes
%endif
# ...
mkdir -p bin
ln -sf %{_bindir}/ld.bfd bin/ld
export PATH=$PWD/bin:$PATH

# Prepare test matrix in the next function
> %{checklist}

#
# WithSelinux
#
# When building on 64 bit system 32 bit binaries are also built.
# But building with --with-selinux requires linking with at least libselinux.
# This linking requires a 32 bit libselinux.so, but 32 bit repositories
# are not or may not be available at build time, so there is no source to take
# 32 bit libselinux.so from. Only nscd executable is linked with libselinux
# and we do not need to build 32 bit nscd executable on 64 bit systems,
# so let's just omit selinux when building 32 bit binaries on 64 bit systems.
function WithSelinux() {
%if %{with selinux}
  if [ "$BIARCH_BUILDING" = 0 ]
    then echo '--with-selinux'
    else echo '--without-selinux'
  fi
%else
  echo '--without-selinux'
%endif
}

#
# BuildGlibc <arch> [<extra_configure_options>+]
#
function BuildGlibc() {
  arch="$1"
  shift 1

  # Select optimization flags and compiler to use
  BuildAltArch="no"
  BuildCompFlags=""
  # -Wall is just added to get conditionally %%optflags printed...
  # cut -flto flag
  BuildFlags="$(rpm --target ${arch}-%{_target_os} -D '%__common_cflags_with_ssp -Wall' -E %%{optflags} | sed -e 's# -fPIC##g' -e 's#-m64##' -e 's#-gdwarf-4##;s#-g1##;s#-g##' -e 's#-flto##' -e 's#-m[36][24]##' -e 's#-O[s2]#-O3#')"
  case $arch in
    i[3-6]86)
%ifarch %{x86_64}
%ifarch znver1
	BuildFlags="$BuildFlags -march=znver1 -mtune=znver1"
%else
	BuildFlags="$BuildFlags -march=x86-64 -mtune=generic"
%endif
	BuildAltArch="yes"
	BuildCompFlags="-m32"
%endif
%ifarch %{ix86}
	BuildFlags="$BuildFlags -march=i686 -msse -mfpmath=sse -fasynchronous-unwind-tables -mtune=generic -mstackrealign"
%endif
      ;;
    znver1)
      BuildFlags="$BuildFlags -march=znver1 -mtune=znver1"
      ;;
    x86_64)
      BuildFlags="$BuildFlags -march=x86-64 -mtune=generic"
      ;;
    mips|mipsel)
      BuildCompFlags="$BuildFlags"
      ;;
    mips32|mips32el)
      BuildFlags="$BuildFlags -march=mips3 -mabi=n32"
      BuildCompFlags="$BuildFlags -march=mips3 -mabi=n32"
      ;;
    mips64|mips64el)
      BuildFlags="$BuildFlags -march=mips3 -mabi=64"
      BuildCompFlags="$BuildFlags -march=mips3 -mabi=64"
      ;;
    armv5t*)
      BuildFlags="$BuildFlags -march=armv5t"
      BuildCompFlags="$BuildFlags -march=armv5t"
      ;;
    # to check
    armv7*)
      # As of gcc 8.3.0, glibc 2.29, using -funwind-tables or -fasynchronous-unwind-tables
      # on armv7hnl results in a build failure because configure can't find a
      # compiler it believes to be working -- with -nostdlib, we get an
      # undefined reference to __aeabi_unwind_cpp_pr0
      BuildFlags="`echo $BuildFlags |sed -e 's,-funwind-tables ,,g;s,-fasynchronous-unwind-tables,,g'`"
      BuildCompFlags="$BuildFlags"
      ;;
    armv6*)
      BuildCompFlags="$BuildFlags"
      ;;
  esac
  BuildCompFlags="$BuildCompFlags"

  # Choose biarch support
  MultiArchFlags=
  case $arch in
    i686|x86_64|znver1)
      MultiArchFlags="--enable-multi-arch"
      ;;
  esac

  # Determine C & C++ compilers
  BuildCC="gcc -fuse-ld=bfd $BuildCompFlags"
  BuildCXX="g++ -fuse-ld=bfd $BuildCompFlags"

  # Are we supposed to cross-compile?
  if [ "%{target_cpu}" != "%{_target_cpu}" ]; then
    # Can't use BuildCC anymore with previous changes.
    BuildCC="%{cross_program_prefix}gcc $BuildCompFlags"
    BuildCXX="%{cross_program_prefix}g++ $BuildCompFlags"
    BuildCross="--build=%{_target_platform}"
    export libc_cv_forced_unwind=yes libc_cv_c_cleanup=yes
  fi

# set some extra flags here
# (tpg) build with -O3

  BuildFlags="$BuildFlags -Wp,-D_GLIBCXX_ASSERTIONS -DNDEBUG=1 -fstack-clash-protection %(echo %{optflags} |sed -e 's#-m[36][24]##g;s#-O[s2]#-O3#g')"
  %ifnarch %{arm}
  # As of gcc 8.3.0, glibc 2.29, using -funwind-tables or -fasynchronous-unwind-tables
  # on armv7hnl results in a build failure because configure can't find a
  # compiler it believes to be working -- with -nostdlib, we get an
  # undefined reference to __aeabi_unwind_cpp_pr0
  BuildFlags="-funwind-tables -fasynchronous-unwind-tables $BuildFlags"
  %endif
  BuildFlags="$BuildFlags -fno-lto"

  if [ "$arch" = 'i586' ] || [ "$arch" = 'i686' ]; then
    # Work around https://sourceware.org/ml/libc-alpha/2015-10/msg00745.html
    BuildCC="$BuildCC -fomit-frame-pointer"
    BuildCXX="$BuildCXX -fomit-frame-pointer"
  fi

  # XXX: -frecord-gcc-switches makes gold abort with assertion error and gcc segfault :|
  BuildFlags="$(echo $BuildFlags |sed -e 's#-frecord-gcc-switches##g')"

  # Do not use direct references against %gs when accessing tls data
  # XXX make it the default in GCC? (for other non glibc specific usage)
%if %isarch %{xenarches}
  BuildFlags="$BuildFlags -mno-tls-direct-seg-refs"
%endif

  # Extra configure flags
  ExtraFlags=

   # We'll be having issues with biarch builds of these two as longs as their
   # build dependencies aren't provided as biarch packages as well.
   # But as the alternate arch is less likely to make any use of the
   # functionality and that we might just ditch biarch packaging completely,
   # we just enable it on the main arch for now.
%if %{with systap}
   if [ "$BuildAltArch" = 'no' ]; then
%if %{with systap}
   ExtraFlags="$ExtraFlags --enable-systemtap"
%endif
   fi
%endif

  # Add-ons
  AddOns="libidn"

  # Kernel headers directory
  %if "%{name}" == "glibc"
    KernelHeaders=%{_includedir}
  %else
    KernelHeaders=/usr/%{target_arch}-%{_target_os}/include
  %endif

  LIB=$(rpm --macros %{_usrlibrpm}/macros:%{_usrlibrpm}/platform/${arch}-%{_target_os}/macros --target=${arch} -E %%{_lib})
  LIBDIR=$(rpm --macros %{_usrlibrpm}/macros:%{_usrlibrpm}/platform/${arch}-%{_target_os}/macros --target=${arch} -E %%{_libdir})
  SLIBDIR=/${LIB}

  # Determine library name
  glibc_cv_cc_64bit_output=no
  if echo ".text" | $BuildCC -c -o test.o -xassembler -; then
    case `/usr/bin/file test.o` in
    *"ELF 64"*)
      glibc_cv_cc_64bit_output=yes
      ;;
    esac
  fi
  rm -f test.o
  # Force a separate object dir
  mkdir -p build-$arch-linux
  cd  build-$arch-linux
  [ "$BuildAltArch" = 'yes' ] && touch ".alt" || touch ".main"
  export libc_cv_slibdir=${SLIBDIR}
  case $arch in
  znver1)
    configarch=x86_64
    ;;
  *)
    configarch=$arch
    ;;
  esac
echo CC="$BuildCC" CXX="$BuildCXX" CFLAGS="$BuildFlags -Wno-error" ARFLAGS="$ARFLAGS --generate-missing-build-notes=yes" LDFLAGS="%{ldflags} -fuse-ld=bfd"
  CC="$BuildCC" CXX="$BuildCXX" CFLAGS="$BuildFlags -Wno-error" ARFLAGS="$ARFLAGS --generate-missing-build-notes=yes" LDFLAGS="%{ldflags} -fuse-ld=bfd" ../configure \
    --target=$configarch-%{platform} \
    --host=$configarch-%{platform} \
    $BuildCross \
    --prefix=%{_prefix} \
    --libexecdir=%{_prefix}/libexec \
    --libdir=${LIBDIR} \
    --infodir=%{_infodir} \
    --localedir=%{_localedir} \
    --enable-add-ons=$AddOns \
    --disable-profile \
    --enable-static \
    --disable-nss-crypt \
    --disable-crypt \
    $(WithSelinux) \
%if !%{with nscd}
    --disable-build-nscd \
%endif
    --enable-bind-now \
    --enable-lock-elision \
    --enable-tunables \
    --enable-stack-protector=strong \
    $ExtraFlags \
    $MultiArchFlags \
    --enable-kernel=%{enablekernel} \
    --with-headers=$KernelHeaders ${1+"$@"} \
    --with-bugurl=%{bugurl}

  # FIXME drop -j1 if the Makefiles ever get fixed for parallel build
  if [ "$BuildAltArch" = "yes" ]; then
    %make_build -j1 -r all subdir_stubs LIBGD=no
  else
    %make_build -j1 -r all subdir_stubs
  fi
  cd -

  check_flags="-k"

  # Generate test matrix
  [ -d "build-$arch-linux" ] || {
    echo "ERROR: PrepareGlibcTest: build-$arch-linux does not exist!"
    return 1
  }
  local BuildJobs="%{_smp_mflags}"
  echo "$BuildJobs -d build-$arch-linux $check_flags" >> %{checklist}

  case $arch in
  i[56]86)	base_arch=i686;;
  *)		base_arch=none;;
  esac

  [ -d "build-$base_arch-linux" ] && {
    check_flags="$check_flags -l build-$base_arch-linux/elf/ld.so"
    echo "$BuildJobs -d build-$arch-linux $check_flags" >> %{checklist}
  }
  return 0
}

%if %{with crosscompilers}
for i in %{targets}; do
        CPU=$(echo $i |cut -d- -f1)
        OS=$(echo $i |cut -d- -f2)
        TRIPLET="$(rpm --target=${CPU}-${OS} -E %%{_target_platform})"
	if [ "${TRIPLET}" = "%{_target_platform}" ]; then
		echo "===== Skipping $i cross libc (native arch) ====="
		continue
	fi
	echo "===== Building %{_target_platform} -> $i ($TRIPLET) cross libc ====="
	KARCH=$(echo $TRIPLET |cut -d- -f1)
	case $KARCH in
	aarch64)
		KARCH=arm64
		;;
	arm*)
		KARCH=arm
		;;
	i.86)
		KARCH=x86
		;;
	esac
	mkdir -p obj-${TRIPLET}
	cd obj-${TRIPLET}
	CFLAGS="$(rpm --target ${i} --eval '%%{optflags} -fuse-ld=bfd -fno-strict-aliasing -Wno-error' |sed -e 's,-m[36][24],,;s,-flto,,g;s,-Werror[^ ]*,,g')" \
	CXXFLAGS="$(rpm --target ${i} --eval '%%{optflags} -fuse-ld=bfd -fno-strict-aliasing -Wno-error' |sed -e 's,-m[36][24],,;s,-flto,,g;s,-Werror[^ ]*,,g')" \
	ASFLAGS="$(rpm --target ${i} --eval '%%{optflags} -fuse-ld=bfd -fno-strict-aliasing -Wno-error' |sed -e 's,-m[36][24],,;s,-flto,,g;s,-Werror[^ ]*,,g')" \
	LDFLAGS="$(rpm --target ${i} --eval '%%{ldflags} -fuse-ld=bfd -fno-strict-aliasing -Wno-error' |sed -e 's,-m[36][24],,;s,-flto,,g')" \
	CC="${TRIPLET}-gcc ${CFLAGS}" \
	../configure \
		--prefix=%{_prefix}/${TRIPLET} \
		--host=${TRIPLET} \
		--target=${TRIPLET} \
    		--with-gnu-ld=${TRIPLET}-ld.bfd \
		--with-headers=%{_prefix}/${TRIPLET}/include
	# We set CXX to empty to prevent links-dso-program from being built
	# (it may not work -- if we're using a bootstrap version of gcc,
	# there's no libstdc++ or libgcc_s)
	# the " || make ..." part is a workaround for the build failing on
	# aarch64 boxes with lots of cores while building the iconv converters
	# for the i686 crosscompiler. This should be fixed properly at some
	# point.
	%make_build CXX="" LIBGD=no || make CXX="" LIBGD=no
	cd ..
done
%endif

# Build main glibc
export BIARCH_BUILDING=0
BuildGlibc %{target_cpu}

export BIARCH_BUILDING=1
%if %{build_biarch}
    %if %isarch %{x86_64}
	BuildGlibc i686
    %endif
    %if %isarch mips
	BuildGlibc mips64
	BuildGlibc mips32
    %endif
    %if %isarch mipsel
	BuildGlibc mips64el
	BuildGlibc mips32el
    %endif
    %if %isarch mips64
	BuildGlibc mips
	BuildGlibc mips32
    %endif
    %if %isarch mips64el
	BuildGlibc mipsel
	BuildGlibc mips32el
    %endif
%else
    # Build i686 libraries if not already building for i686
    case %{target_cpu} in
    i686)
	;;
    i[3-5]86)
	BuildGlibc i686
	;;
    esac
%endif

#-----------------------------------------------------------------------

#if "%{target_cpu}" != "i686"
# check fails due to race conditions probably
%if 0
%check
# ...
export PATH=$PWD/bin:$PATH

export TMPDIR=/tmp
export TIMEOUTFACTOR=16
while read arglist; do
    sh %{SOURCE5} $arglist || exit 1
done < %{checklist}
%endif

#-----------------------------------------------------------------------
%install
# ...
%if !%isarch %{mipsx}
export PATH=$PWD/bin:$PATH
%endif

%if %{with crosscompilers}
for i in %{long_targets}; do
	if [ "${i}" = "%{_target_platform}" ]; then
		echo "===== Skipping $i cross libc (native arch)"
		continue
	fi
	echo "===== Installing %{_target_platform} -> $i cross libc ====="
	cd obj-${i}

	# FIXME as of 2.30, installing the x86_64 -> aarch64 crosscompiler
	# fails unless those directories are created first. Should figure
	# out what's going on there at some point.
	#mkdir cstdlib cmath

	%make_install
	cd ..
	# We don't need all the bits and pieces with a crosscompiler
	rm -rf %{buildroot}%{_prefix}/$i/bin %{buildroot}%{_prefix}/$i/sbin %{buildroot}%{_prefix}/$i/var %{buildroot}%{_prefix}/$i/share %{buildroot}%{_prefix}/$i/etc
	# We need to get rid of this hardcode at some point so the sysroot can
	# double as a chroot... But we probably can't do this before the FS
	# changes, it breaks second stage gcc crosscompilers
	# sed -i -e "s,%{_prefix}/$i,,g" %{buildroot}%{_prefix}/$i/lib/libc.so
done
%endif

make install_root=%{buildroot} install -C build-%{target_cpu}-linux

%if %{build_biarch} || %isarch %{mips} %{mipsel}
    %if %isarch %{x86_64}
	ALT_ARCHES=i686-linux
    %endif
    %if %isarch %{mips}
	ALT_ARCHES="mips64-linux mips32-linux"
    %endif
    %if %isarch %{mipsel}
	ALT_ARCHES="mips64el-linux mips32el-linux"
    %endif
    %if %isarch mips64
	ALT_ARCHES="mips-linux mips32-linux"
    %endif
    %if %isarch mips64el
	ALT_ARCHES="mipsel-linux mips32el-linux"
    %endif
    for ALT_ARCH in $ALT_ARCHES; do
	mkdir -p %{buildroot}/$ALT_ARCH
	%make install_root=%{buildroot}/$ALT_ARCH LIBGD=no -C build-$ALT_ARCH \
		install

	# Dispatch */lib only
	case "$ALT_ARCH" in
	    mips32*)
		LIB="%{_slibdirn32}"
		;;
	    mips64*)
		LIB="%{_slibdir}"
		;;
	    mips*)
		LIB="%{_slibdir32}"
		;;
	    *)
		LIB=/lib
		;;
	esac
	mv     %{buildroot}/$ALT_ARCH/$LIB %{buildroot}/$LIB
	mv     %{buildroot}/$ALT_ARCH%{_libexecdir}/getconf/* %{buildroot}%{_prefix}/libexec/getconf/
	[ ! -d %{buildroot}%{_prefix}/$LIB/ ] && mkdir -p %{buildroot}%{_prefix}/$LIB/
	mv     %{buildroot}/$ALT_ARCH%{_prefix}/$LIB/* %{buildroot}%{_prefix}/$LIB/

	rm -rf %{buildroot}/$ALT_ARCH
	# XXX Dispatch 32-bit stubs
	(sed '/^@/d' include/stubs-prologue.h; LC_ALL=C sort $(find build-$ALT_ARCH -name stubs)) \
	> %{buildroot}%{_includedir}/gnu/stubs-32.h
	done
%endif

# Install extra glibc libraries
function InstallGlibc() {
  local BuildDir="$1"
  local SubDir="$2"
  local LibDir="$3"

  [ -z "$LibDir" ] && LibDir="%{_slibdir}"

  cd $BuildDir
  mkdir -p %{buildroot}$LibDir/$SubDir/
  install -m755 libc.so %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/libc-*.so`
  ln -sf `basename %{buildroot}$LibDir/libc-*.so` %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/libc.so.*`
  install -m755 math/libm.so %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/libm-*.so`
  ln -sf `basename %{buildroot}$LibDir/libm-*.so` %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/libm.so.*`
  install -m755 nptl/libpthread.so %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/libpthread-*.so`
  ln -sf `basename %{buildroot}$LibDir/libpthread-*.so` %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/libpthread.so.*`
  install -m755 nptl_db/libthread_db.so %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/libthread_db-*.so`
  ln -sf `basename %{buildroot}$LibDir/libthread_db-*.so` %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/libthread_db.so.*`
  install -m755 rt/librt.so %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/librt-*.so`
  ln -sf `basename %{buildroot}$LibDir/librt-*.so` %{buildroot}$LibDir/$SubDir/`basename %{buildroot}$LibDir/librt.so.*`
  cd -

}

# Install arch-specific optimized libraries
%if %isarch %{i586}
case %{target_cpu} in
i[3-5]86)
  InstallGlibc build-i686-linux i686
  ;;
esac
%endif

# NPTL <bits/stdio-lock.h> is not usable outside of glibc, so include
# the generic one (RH#162634)
install -m644 sysdeps/generic/stdio-lock.h -D %{buildroot}%{_includedir}/bits/stdio-lock.h
# And <bits/libc-lock.h> needs sanitizing as well.
install -m644 %{SOURCE10} -D %{buildroot}%{_includedir}/bits/libc-lock.h

# Compatibility hack: this locale has vanished from glibc, but some other
# programs are still using it. Normally we would handle it in the %pre
# section but with glibc that is simply not an option
mkdir -p %{buildroot}%{_localedir}/ru_RU/LC_MESSAGES

install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/nsswitch.conf

# This is for nscd - in glibc 2.2
%if %{with nscd}
    install -m644 nscd/nscd.conf -D %{buildroot}%{_sysconfdir}/nscd.conf
    install -m755 -d %{buildroot}%{_sysconfdir}/sysconfig
    touch %{buildroot}%{_sysconfdir}/sysconfig/nscd
    install -m755 -d %{buildroot}%{_sysconfdir}/netgroup
    mkdir -p %{buildroot}%{_unitdir}
    install -m 644 nscd/nscd.service nscd/nscd.socket %{buildroot}%{_unitdir}
    install -m644 nscd/nscd.tmpfiles -D %{buildroot}%{_tmpfilesdir}/nscd.conf
    install -m755 -d %{buildroot}%{_var}/db/nscd
    touch %{buildroot}%{_var}/db/nscd/{passwd,group,hosts,services}
    install -m755 -d %{buildroot}/run/nscd
    touch %{buildroot}/run/nscd/{nscd.pid,socket,passwd,group,hosts,services}
    install -d %{buildroot}%{_presetdir}
%endif

# Include ld.so.conf
%if "%{name}" == "glibc"
%if %isarch mips mipsel
# needed to get a ldd which understands o32, n32, 64
install -m755 build-%{_target_cpu}-linux/elf/ldd %{buildroot}%{_bindir}/ldd
%endif

# ldconfig cache
mkdir -p %{buildroot}%{_var}/cache/ldconfig
truncate -s 0 %{buildroot}%{_var}/cache/ldconfig/aux-cache
# Note: This has to happen before creating /etc/ld.so.conf.
# ldconfig is statically linked, so we can use the new version.
%{buildroot}/sbin/ldconfig -N -r %{buildroot}

echo "include /etc/ld.so.conf.d/*.conf" > %{buildroot}%{_sysconfdir}/ld.so.conf
chmod 644 %{buildroot}%{_sysconfdir}/ld.so.conf
mkdir -p  %{buildroot}%{_sysconfdir}/ld.so.conf.d

# gconv-modules.cache
touch %{buildroot}%{_libdir}/gconv/gconv-modules.cache
chmod 644 %{buildroot}%{_libdir}/gconv/gconv-modules.cache
%if %{build_biarch}
    touch %{buildroot}%{_libdir32}/gconv/gconv-modules.cache
    chmod 644 %{buildroot}%{_libdir32}/gconv/gconv-modules.cache
%endif

touch %{buildroot}%{_sysconfdir}/ld.so.cache
%endif

# Are we cross-compiling?
Strip="strip"
if [ "%{_target_cpu}" != "%{target_cpu}" ]; then
  Strip="%{cross_program_prefix}$Strip"
fi

# Strip debugging info from all static libraries
cd %{buildroot}%{_slibdir}
for i in *.a; do
  if [ -f "$i" ]; then
    case "$i" in
    *_p.a) ;;
    *) $Strip -g -R .comment -R .GCC.command.line         $i ;;
    esac
  fi
done
cd -

%if %{with i18ndata}
    install -m644 localedata/SUPPORTED %{buildroot}%{_datadir}/i18n/
%endif

rm -r %{buildroot}%{_includedir}/netatalk/

# /etc/localtime - we're proud of our timezone #Well we(mdk) may put Paris
%if %{with timezone}
    rm %{buildroot}%{_sysconfdir}/localtime
    cp -f %{buildroot}%{_datadir}/zoneinfo/CET %{buildroot}%{_sysconfdir}/localtime
%endif

# Documentation
install -m 755 -d %{buildroot}%{_docdir}/glibc
    cd build-%{target_cpu}-linux
%if %{with doc}
	make html
	cp -fpar manual/libc %{buildroot}%{_docdir}/glibc/html
%endif
%if %{with pdf}
	make pdf
	install -m644 -D manual/libc.pdf %{buildroot}%{_docdir}/glibc/libc.pdf
%endif
    cd -
install -m 644 COPYING COPYING.LIB README NEWS INSTALL 			\
    hesiod/README.hesiod						\
    posix/gai.conf		\
    %{buildroot}%{_docdir}/glibc
install -m 644 timezone/README %{buildroot}%{_docdir}/glibc/README.timezone

# Localization
%if "%{name}" == "glibc"
%find_lang libc
%else
touch libc.lang
%endif

# Remove unpackaged files
rm -f %{buildroot}%{_bindir}/rpcgen %{buildroot}%{_mandir}/man1/rpcgen.1*

# XXX: verify
#find %{buildroot}%{_localedir} -type f -name LC_\* -o -name SYS_LC_\* |xargs rm -f

%if %{without utils}
    rm -f %{buildroot}%{_bindir}/memusage
    rm -f %{buildroot}%{_bindir}/memusagestat
    rm -f %{buildroot}%{_bindir}/mtrace
    rm -f %{buildroot}%{_bindir}/pcprofiledump
    rm -f %{buildroot}%{_bindir}/xtrace
    rm -f %{buildroot}%{_slibdir}/libmemusage.so
    rm -f %{buildroot}%{_slibdir}/libpcprofile.so
    %if %{build_biarch}
	rm -f %{buildroot}%{_slibdir32}/libmemusage.so
	rm -f %{buildroot}%{_slibdir32}/libpcprofile.so
    %endif
    %if %isarch %{mips} %{mipsel}
	rm -f %{buildroot}%{_slibdirn32}/libmemusage.so
	rm -f %{buildroot}%{_slibdirn32}/libpcprofile.so
    %endif
%endif

%if !%{with timezone}
    rm -f %{buildroot}%{_sbindir}/zdump
    rm -f %{buildroot}%{_bindir}/zdump
    rm -f %{buildroot}%{_sbindir}/zic
    rm -f %{buildroot}%{_mandir}/man1/zdump.1*
%endif

%if !%{with i18ndata}
    rm -rf %{buildroot}%{_datadir}/i18n
%endif

%if %{with locales}
# Build locales...
%global glibcver %(rpm -q --qf "%%{VERSION}" glibc)
export I18NPATH=%{buildroot}%{_datadir}/i18n

# make default charset pseudo-locales
# those will be symlinked (for LC_CTYPE, LC_COLLATE mainly) from
# a lot of other locales, thus saving space
for DEF_CHARSET in UTF-8 ISO-8859-1 ISO-8859-2 ISO-8859-3 ISO-8859-4 \
	ISO-8859-5 ISO-8859-7 ISO-8859-9 \
	ISO-8859-13 ISO-8859-14 ISO-8859-15 KOI8-R KOI8-U CP1251
do
	# don't use en_DK because of LC_MONETARY
	%{buildroot}%{_bindir}/localedef -c -f $DEF_CHARSET -i en_US %{buildroot}%{_datadir}/locale/$DEF_CHARSET
done

# Build regular locales
LANGS="$(sed '1,/^SUPPORTED-LOCALES=/d;s,\\$,,;s,\n,,' %{buildroot}%{_datadir}/i18n/SUPPORTED)"
for l in $LANGS; do
	LNG=$(echo $l |cut -d/ -f1)
	CS=$(echo $l |cut -d/ -f2)
	%{buildroot}%{_bindir}/localedef -i "$(echo $LNG |sed 's/\([^.]*\)[^@]*\(.*\)/\1\2/')" -c -f $CS %{buildroot}%{_datadir}/locale/$LNG
done

# Locale related tools
install -c -m 755 %{SOURCE1001} %{SOURCE1002} %{buildroot}%{_bindir}/
# And configs
install -c -m 644 %{SOURCE1003} -D %{buildroot}%{_sysconfdir}/sysconfig/locales

# Hardlink identical locales
%{_sbindir}/hardlink -vvc %{buildroot}%{_datadir}/locale

# Symlink identical files
# TODO

# Needed for/used by locale-archive
mkdir -p %{buildroot}%{_prefix}/lib/locale
touch %{buildroot}%{_prefix}/lib/locale/locale-archive
%endif

# Remove stuff we get from libxcrypt
rm -f %{buildroot}%{_prefix}/*/libcrypt.a %{buildroot}%{_includedir}/crypt.h %{buildroot}/*/libcrypt* %{buildroot}%{_prefix}/*/libcrypt.a
# remove broken symlink
rm -f %{buildroot}%{_prefix}/lib/libcrypt.so

%ifarch aarch64
# Compat symlink -- some versions of ld hardcoded /lib/ld-linux-aarch64.so.1
# as dynamic loader
ln -s %{_slibdir}/ld-linux-aarch64.so.1 %{buildroot}/lib/ld-linux-aarch64.so.1
%endif

%ifarch riscv64
# RISC-V ABI wants to install everything in /lib64/lp64d or /usr/lib64/lp64d.
# Make these be symlinks to /lib64 or /usr/lib64 respectively.  See:
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/DRHT5YTPK4WWVGL3GIN5BF2IKX2ODHZ3/
for d in %{buildroot}%{_libdir} %{buildroot}/%{_lib}; do
        mkdir -p $d
        (cd $d && rm -f lp64d; ln -sf . lp64d)
done
# Compat symlink -- some versions of ld hardcoded /lib/ld-linux-aarch64.so.1
# as dynamic loader
ln -s %{_slibdir}/ld-linux-riscv64-lp64d.so.1 %{buildroot}/lib/ld-linux-riscv64-lp64d.so.1
%endif

%ifarch %{x86_64}
# Needed for bootstrapping x32 compilers
[ -e %{buildroot}%{_includedir}/gnu/stubs-x32.h ] || cp %{buildroot}%{_includedir}/gnu/stubs-64.h %{buildroot}%{_includedir}/gnu/stubs-x32.h
%endif

# This will make the '-g' argument to be passed to eu-strip for these libraries, so that
# some info is kept that's required to make valgrind work without depending on glibc-debug
# package to be installed.
export EXCLUDE_FROM_FULL_STRIP="ld-%{version}.so libpthread libc-%{version}.so libm-%{version}.so"

unset LD_LIBRARY_PATH

%if %{with locales}
%files -n locales
%{_bindir}/locale_install.sh
%{_bindir}/locale_uninstall.sh
%config(noreplace) %{_sysconfdir}/sysconfig/locales
%dir %{_datadir}/locale
%dir %{_prefix}/lib/locale
%ghost %{_prefix}/lib/locale/locale-archive
%{_datadir}/locale/ISO*
%{_datadir}/locale/CP*
%{_datadir}/locale/UTF*
%{_datadir}/locale/KOI*

%post -n locales
%{_bindir}/locale_install.sh "ENCODINGS"

%preun -n locales
%{_bindir}/locale_uninstall.sh "ENCODINGS"
%endif

# CVE-2013-4412 - fixed by slim 1.3.6
# CVE-2013-4458 - <=2.18
# CVE-2013-4788 - <=2.17
# CVE-2013-7423 - <2.20
# CVE-2013-7424 - <2.15
# CVE-2021-3326 - <=2.32
# CVE-2021-35942 - <2.33
# CVE-2021-43396 - =2.34
# CVE-2022-39046 - =2.36

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12903 |21mr|glibc_lsb-2.4.7-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ld_ver 3
%define compat_ld_ver 2
%define libname %mklibname glibc_lsb

Summary:	LSB dynamic loader links
Name:		glibc_lsb
Version:	2.4.7
Release:	15
License:	Freely redistributable without restriction
Group:		System/Libraries
Url:		http://www.linuxbase.org/spec
Requires:	lsb-core >= 3.1

%description
Provides ld-lsb* dynamic loader links for LSB compliance.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LSB dynamic loader links
Group:		System/Libraries
%rename		glibc_lsb

%description -n %{libname}
Provides ld-lsb* dynamic loader links for LSB compliance.

%files -n %{libname}
%ifarch %{ix86}
/%{_lib}/ld-lsb.so.%{ld_ver}
/%{_lib}/ld-lsb.so.%{compat_ld_ver}
%endif
%ifarch ppc
/%{_lib}/ld-lsb-ppc32.so.%{ld_ver}
/%{_lib}/ld-lsb-ppc32.so.%{compat_ld_ver}
%endif
%ifarch x86_64
/%{_lib}/ld-lsb-x86-64.so.%{ld_ver}
/%{_lib}/ld-lsb-x86-64.so.%{compat_ld_ver}
%endif

#----------------------------------------------------------------------------

%prep

%build

%install
install -d %{buildroot}/%{_lib}
%ifarch %{ix86}
ln -sf ld-linux.so.2 %{buildroot}/%{_lib}/ld-lsb.so.%{ld_ver}
ln -sf ld-linux.so.2 %{buildroot}/%{_lib}/ld-lsb.so.%{compat_ld_ver}
%endif
%ifarch ppc
ln -sf ld-2.4.so %{buildroot}/%{_lib}/ld-lsb-ppc32.so.%{ld_ver}
ln -sf ld-2.4.so %{buildroot}/%{_lib}/ld-lsb-ppc32.so.%{compat_ld_ver}
%endif
%ifarch x86_64
ln -sf ld-linux-x86-64.so.2 %{buildroot}/%{_lib}/ld-lsb-x86-64.so.%{ld_ver}
ln -sf ld-linux-x86-64.so.2 %{buildroot}/%{_lib}/ld-lsb-x86-64.so.%{compat_ld_ver}
%endif

export DONT_SYMLINK_LIBS=1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12904 |21mr|glibmm2.4-2.66.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)
%define _disable_rebuild_configure 1

%define pkgname glibmm
%define api 2.4
%define major 1
%define libname %mklibname %{pkgname} %{api} %{major}
%define devname %mklibname %{pkgname} %{api} -d

Summary:	C++ interface for Glib
Name:		%{pkgname}%{api}
Version:	2.66.4
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/glibmm
Source0:	https://download.gnome.org/sources/glibmm/%{url_ver}/%{pkgname}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	mm-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(sigc++-2.0)

%description
GtkMM provides a C++ interface to the GTK+ GUI library.

%{pkgname} originally belongs to GtkMM, but is now separated,
for use with non-GUI software written in C++.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for Glib
Group:		System/Libraries

%description -n %{libname}
GtkMM provides a C++ interface to the GTK+ GUI library.

%{pkgname} originally belongs to gtkmm, but is now separated,
for use with non-GUI software written in C++.

This package contains the library needed to run programs dynamically
linked with %{pkgname}.

%files -n %{libname}
%doc NEWS README
%license COPYING
%{_libdir}/libglibmm*%{api}.so.%{major}*
%{_libdir}/libgiomm*%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{pkgname}%{api}-devel = %{EVRD}
Requires:	mm-common

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{pkgname}.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/giomm-%{api}/
%{_libdir}/glibmm-%{api}/
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12905 |21mr|glibmm2.68-2.72.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)
%define _disable_rebuild_configure 1

%define pkgname glibmm
%define api 2.68
%define major 1
%define libname %mklibname %{pkgname} %{api} %{major}
%define devname %mklibname %{pkgname} %{api} -d

Summary:	C++ interface for Glib
Name:		%{pkgname}%{api}
Version:	2.72.1
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/glibmm
Source0:	https://download.gnome.org/sources/glibmm/%{url_ver}/%{pkgname}-%{version}.tar.xz
# https://gitlab.gnome.org/GNOME/glibmm/-/commit/1b5e5f94068cd62b93bc3c835d2da1af29603f55
# fixes https://gitlab.gnome.org/GNOME/glibmm/-/issues/104 (for telegram-desktop)
Patch0:		1b5e5f94068cd62b93bc3c835d2da1af29603f55.patch
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	mm-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(sigc++-3.0)

%description
GtkMM provides a C++ interface to the GTK+ GUI library.

%{pkgname} originally belongs to GtkMM, but is now separated,
for use with non-GUI software written in C++.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for Glib
Group:		System/Libraries

%description -n %{libname}
GtkMM provides a C++ interface to the GTK+ GUI library.

%{pkgname} originally belongs to gtkmm, but is now separated,
for use with non-GUI software written in C++.

This package contains the library needed to run programs dynamically
linked with %{pkgname}.

%files -n %{libname}
%doc NEWS README
%license COPYING
%{_libdir}/libglibmm*%{api}.so.%{major}*
%{_libdir}/libgiomm*%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{pkgname}%{api}-devel = %{EVRD}
Requires:	mm-common

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{pkgname}.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/giomm-%{api}/
%{_libdir}/glibmm-%{api}/
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgname}-%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12906 |21mr|glib-networking-2.72.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define libname %mklibname %{name}

Summary:	Network-related GIO modules
Name:		glib-networking
Version:	2.72.1
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/glib-networking
Source0:	https://download.gnome.org/sources/glib-networking/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libproxy-1.0)
Requires:	%{libname} = %{EVRD}

%description
This package contains the network-related GIO modules for Glib.

%files -f %{name}.lang
%doc README
%{_libexecdir}/glib-pacrunner
%{_datadir}/dbus-1/services/*.service
%{_userunitdir}/glib-pacrunner.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Network-related GIO modules
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This package contains the network-related GIO modules for Glib.

%files -n %{libname}
%{_libdir}/gio/modules/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12907 |21mr|glm-0.9.9.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The library consists of headers only
%global debug_package %{nil}

Summary:	C++ mathematics library for graphics programming
Name:		glm
Version:	0.9.9.8
Release:	1
License:	MIT
Group:		Development/C
Url:		https://github.com/g-truc/glm
Source0:	https://github.com/g-truc/glm/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# From Fedora
Patch0:		glm-0.9.9.8-install.patch
Patch1:		glm-0.9.9.8-noarch.patch
BuildRequires:	cmake

%description
GLM is a C++ library for doing mathematics operations
required in many OpenGL based applications. Its interface
has been designed to resemble the built-in matrix and vector
types of the OpenGL shading language.

#----------------------------------------------------------------------------

%package devel
Summary:	C++ mathematics library for graphics programming
Group:		Development/C
BuildArch:	noarch

%description devel
GLM is a C++ library for doing mathematics operations
required in many OpenGL based applications. Its interface
has been designed to resemble the built-in matrix and vector
types of the OpenGL shading language.

%{name}-devel is only required for building software that uses
the GLM library. Because GLM currently is a header-only library,
there is no matching run time package.

%files devel
%doc manual.md readme.md
%license copying.txt
%{_includedir}/%{name}
%{_datadir}/cmake

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}-devel
Group:		Books/Computer books
BuildArch:	noarch

%description doc
The %{name}-doc package contains reference documentation and
a programming manual for the %{name}-devel package.

%files doc
%doc doc/manual.pdf
%doc doc/api

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

sed -i 's/\r//' readme.md
sed -i 's/\r//' CMakeLists.txt
sed -i 's/\r//' doc/api/doxygen.css
sed -i 's/\r//' doc/api/dynsections.js
sed -i 's/\r//' doc/api/jquery.js
sed -i 's/\r//' doc/api/tabs.css
sed -i 's/\r//' glm/detail/setup.hpp
sed -i 's/\r//' glm/simd/platform.h
sed -i 's/\r//' test/core/core_setup_message.cpp

%build
export CXXFLAGS="%{optflags} -fno-strict-aliasing"
%{cmake} -DGLM_TEST_ENABLE=ON
%make

%install
pushd build
%makeinstall_std
find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name CMakeLists.txt -exec rm -f {} ';'
mkdir -p %{buildroot}%{_datadir}
mv %{buildroot}%{_libdir}/cmake %{buildroot}%{_datadir}/cmake
rmdir %{buildroot}%{_libdir}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12908 |21mr|glpk-4.47-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -s -d

Summary:	GLPK glpsol utility
Name:		glpk
Version:	4.47
Release:	11
License:	GPLv3+
Group:		Sciences/Mathematics
Url:		http://www.gnu.org/software/glpk/glpk.html
Source0:	http://ftp.gnu.org/gnu/glpk/%{name}-%{version}.tar.gz
BuildRequires:	texinfo
BuildRequires:	gmp-devel

%description
The GLPK (GNU Linear Programming Kit) package is intended for solving
large-scale linear programming (LP), mixed integer programming (MIP),
and other related problems. It is a set of routines written in ANSI C
and organized in the form of a callable library.

This package contains the utility glpsol.

%files
%attr(0755,root,root) %{_bindir}/glpsol

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GLPK shared libraries
Group:		System/Libraries
Provides:	libglpk = %{EVRD}

%description -n %{libname}
The GLPK (GNU Linear Programming Kit) package is intended for solving
large-scale linear programming (LP), mixed integer programming (MIP),
and other related problems. It is a set of routines written in ANSI C
and organized in the form of a callable library.

This package contains the library needed to run programs dynamically
linked with GLPK.

%files -n %{libname}
%{_libdir}/libglpk.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for development with GLPK
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{devname} = %{EVRD}

%description -n %{devname}
The GLPK (GNU Linear Programming Kit) package is intended for solving
large-scale linear programming (LP), mixed integer programming (MIP),
and other related problems. It is a set of routines written in ANSI C
and organized in the form of a callable library.

This package contains the headers needed to develop applications using
GLPK.

%files -n %{devname}
%doc examples doc/*.txt doc/*.pdf AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_includedir}/*.h
%{_libdir}/libglpk.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	GLPK static libraries
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
The GLPK (GNU Linear Programming Kit) package is intended for solving
large-scale linear programming (LP), mixed integer programming (MIP),
and other related problems. It is a set of routines written in ANSI C
and organized in the form of a callable library.

This package contains the static libraries necessary for developing
programs which use GLPK.

%files -n %{sdevname}
%{_libdir}/libglpk.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-static
%make

%install
%makeinstall
# Clean out the examples directory so we can include it wholesale in %doc.
%make -C examples distclean
rm -rf examples/Makefile*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12909 |21mr|glslang-1.3.283.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 14
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	OpenGL and OpenGL ES shader compiler front end and validator
Name:		glslang
Version:	1.3.283.0
Release:	1
Epoch:		1
Group:		Graphics
License:	BSD and GPLv3+ and ASL 2.0
Url:		https://github.com/KhronosGroup/glslang
Source0:	https://github.com/KhronosGroup/glslang/archive/vulkan-sdk-%{version}.tar.gz?/%{name}-vulkan-sdk-%{version}.tar.gz
Patch0:		glslang-vulkan-sdk-1.3.280.0-glslang_tests.patch
BuildRequires:	cmake
BuildRequires:	python3
BuildRequires:	spirv-tools
BuildRequires:	pkgconfig(SPIRV-Tools)

%description
This is the official reference compiler front-end for the OpenGL ES and OpenGL
shading languages. It implements a strict interpretation of the specifications
for these languages.

%files
%doc README.md README-spirv-remap.txt
%license LICENSE.txt
%{_bindir}/%{name}
%{_bindir}/%{name}Validator
%{_bindir}/spirv-remap

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for %{name}
Group:		System/Libraries

%description -n %{libname}
A library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-default-resource-limits.so.%{major}*
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/libSPIRV.so.%{major}*
%{_libdir}/libSPVRemapper.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the official reference compiler front end for the OpenGL ES and OpenGL
shading languages. It implements a strict interpretation of the specifications
for these languages.
This package provides devel files for using %{name}.

%files -n %{devname}
%doc README.md
%license LICENSE.txt
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}-default-resource-limits.so
%{_libdir}/lib%{name}.so
%{_libdir}/libSPIRV.so
%{_libdir}/libSPVRemapper.so

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-vulkan-sdk-%{version}

%build
%cmake	..	\
	-DALLOW_EXTERNAL_SPIRV_TOOLS=ON	\
	-DBUILD_SHARED_LIBS=ON		\
	-DCMAKE_BUILD_TYPE=Release	\
	-DCMAKE_INSTALL_LIBDIR=%{_libdir}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12910 |21mr|glu-9.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Mesa libGLU library
Name:		glu
Version:	9.0.3
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://mesa3d.org/
# snapshot only at this point
Source0:	ftp://ftp.freedesktop.org/pub/mesa/glu/%{name}-%{version}.tar.xz
Source2:	make-git-snapshot.sh
BuildRequires:	pkgconfig(gl)
BuildRequires:	meson

%description
Mesa implementation of the standard GLU OpenGL utility API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Files for Mesa (GLU libs)
Group:		System/Libraries
Provides:	libmesaglu = %{EVRD}
Provides:   libGLU = %{EVRD}
Provides:   mesa-libGLU = %{EVRD}
%rename		%{_lib}mesaglu1

%description -n %{libname}
GLU is the OpenGL Utility Library.

It provides a number of functions upon the base OpenGL library to provide
higher-level drawing routines from the more primitive routines provided by
OpenGL.

%files -n %{libname}
%{_libdir}/libGLU.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for GLU libs
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libmesaglu-devel = %{EVRD}
Provides:	mesaglu-devel = %{EVRD}
%rename		%{_lib}mesaglu1-devel

%description -n %{devname}
This package contains the headers needed to compile programs with GLU.

%files -n %{devname}
%{_includedir}/GL/glu.h
%{_libdir}/libGLU.so
%{_libdir}/pkgconfig/glu.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dgl_provider=glvnd
%meson_build

%install
%meson_install
rm -rf %{buildroot}%{_datadir}/man/man3/gl[A-Z]*
find %{buildroot} -name '*.a' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12911 |21mr|glui-2.37-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define	major	2

%define libname		%mklibname %{name} %{major}
%define libnamedev 	%mklibname %{name} %{major} -d

Summary:	GL User Interface Library
Name:		glui
Version:	2.37
Release:	1
Group:		System/Libraries
License:	LGPL
URL:		http://glui.sourceforge.net/
Source:		https://github.com/libglui/glui/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(xmu)


%description
GLUI is a GLUT-based C++ user interface library which provides
controls such as buttons, checkboxes, radio buttons, and spinners
to OpenGL applications. It is window-system independent, relying
on GLUT to handle all system-dependent issues, such as window and
mouse management.

#------------------------------------------------------------------

%package -n %{libnamedev}
Summary:	GLUI User Interface Library Development Files
Group:		System/Libraries
Provides:	%{name}-devel = %{EVRD}


%description -n %{libnamedev}
GLUI is a GLUT-based C++ user interface library which provides
controls such as buttons, checkboxes, radio buttons, and spinners
to OpenGL applications. It is window-system independent, relying
on GLUT to handle all system-dependent issues, such as window and
mouse management.
This package includes the header files and static library.

%files -n %{libnamedev}
%doc doc/*
%{_includedir}/GL
%{_libdir}/*.a


#------------------------------------------------------------------

%package -n %{name}-demos
Summary:	GLUI Demos
Group:		Graphics

%description -n %{name}-demos
GLUI is a GLUT-based C++ user interface library which provides
controls such as buttons, checkboxes, radio buttons, and spinners
to OpenGL applications. It is window-system independent, relying
on GLUT to handle all system-dependent issues, such as window and
mouse management.
This package includes some binaries statically built with GLUI.
Their source code is in %{_datadir}/%{name}-demos.

%files -n %{name}-demos
%{_datadir}/%{name}-demos/example*.cpp
%{_bindir}/ppm2array
%{_bindir}/GLUI-example1
%{_bindir}/GLUI-example2
%{_bindir}/GLUI-example3
%{_bindir}/GLUI-example4
%{_bindir}/GLUI-example5
%{_bindir}/GLUI-example6

#------------------------------------------------------------------
%prep
%autosetup -p1

%build
export LDFLAGS="-lGL"
%cmake -G Ninja
%ninja_build

%install
# autoinstall broken
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}/GL
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_datadir}/%{name}-demos
cp build/*.a %{buildroot}%{_libdir}
cp include/GL/*.h %{buildroot}%{_includedir}/GL
cp build/ppm2array %{buildroot}%{_bindir}
cp example/example*.cpp %{buildroot}%{_datadir}/%{name}-demos
cp build/example1 %{buildroot}%{_bindir}/GLUI-example1
cp build/example2 %{buildroot}%{_bindir}/GLUI-example2
cp build/example3 %{buildroot}%{_bindir}/GLUI-example3
cp build/example4 %{buildroot}%{_bindir}/GLUI-example4
cp build/example5 %{buildroot}%{_bindir}/GLUI-example5
cp build/example6 %{buildroot}%{_bindir}/GLUI-example6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12912 |21mr|glusterfs-10.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _sharedstatedir %{_var}/lib

%define major 0
%define libname %mklibname glusterfs %{major}
%define devname %mklibname glusterfs -d

%define libgfchangelog %mklibname gfchangelog %{major}
%define libgfrpc %mklibname gfrpc %{major}
%define libgfxdr %mklibname gfxdr %{major}
%define libglusterd %mklibname glusterd %{major}

%define libnameapi %mklibname gfapi %{major}
%define devnameapi %mklibname gfapi -d

%define url_ver %(echo %{version}|cut -d. -f1)
# (cg) Temporary hack to make it build
#%%define _disable_ld_no_undefined 1

Summary:	GlusterFS network/cluster filesystem
Name:		glusterfs
Version:	10.4
Release:	4
License:	GPLv3+
Group:		Networking/Other
Url: 		http://www.gluster.org/docs/index.php/GlusterFS
Source0:	http://download.gluster.org/pub/gluster/glusterfs/%{url_ver}/%{version}/%{name}-%{version}.tar.gz
Source1:	glusterfsd.service
Source2:	glusterfsd.sysconfig
Source3:	glusterfsd.logrotate
Source4:	glusterfs.logrotate
Patch1:		glusterfs-10.3-makecontext-e2k.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	acl-devel
BuildRequires:	libaio-devel
BuildRequires:	readline-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libibverbs)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(liburcu-bp)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libtcmalloc)
BuildRequires:	pkgconfig(liburing)
BuildRequires:	openssl
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
Provides:	%{name}-common = %{EVRD}
Provides:	%{name}-core = %{EVRD}

%description
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package includes the glusterfs binary, the glusterfsd daemon and the
gluster command line, libglusterfs and glusterfs translator modules common to
both GlusterFS server and client framework.

%files
%doc ChangeLog COPYING-GPLV2 COPYING-LGPLV3 INSTALL README.md THANKS
%config(noreplace) %{_sysconfdir}/sysconfig/glusterfsd
%{_libexecdir}/glusterfs/*
# server-side, etc., xlators in other RPMs
%exclude %{_libexecdir}/glusterfs/python/syncdaemon/*
%exclude %{_libexecdir}/glusterfs/gsyncd
%exclude %{_libexecdir}/glusterfs/gverify.sh
%exclude %{_libexecdir}/glusterfs/peer_add_secret_pub
%exclude %{_libexecdir}/glusterfs/peer_gsec_create

%{_sbindir}/glusterfs*
%{_sbindir}/gf_attach
%{_sbindir}/gluster-setgfid2path
%{_mandir}/man8/*gluster*.8*
%exclude %{_mandir}/man8/gluster.8*
%exclude %{_mandir}/man8/mount.glusterfs.8*
%dir %{_localstatedir}/log/glusterfs

%dir %{_sharedstatedir}/glusterd
%{_datadir}/glusterfs/scripts/post-upgrade-script-for-quota.sh
%{_datadir}/glusterfs/scripts/pre-upgrade-script-for-quota.sh

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GlusterFS network/cluster filesystem library
Group:		System/Libraries

%description -n %{libname}
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

Please visit http://www.gluster.org/docs/index.php/GlusterFS for more info.

This package includes the libglusterfs and glusterfs translator modules common
to both GlusterFS server and client framework.

%files -n %{libname}
%{_libdir}/libglusterfs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgfchangelog}
Summary:	GlusterFS network/cluster filesystem library
Group:		System/Libraries

%description -n %{libgfchangelog}
Package with library libgfchangelog.so.%{major}.

%files -n %{libgfchangelog}
%{_libdir}/libgfchangelog.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgfrpc}
Summary:	GlusterFS network/cluster filesystem library
Group:		System/Libraries

%description -n %{libgfrpc}
Package with library libgfrpc.so.%{major}.

%files -n %{libgfrpc}
%{_libdir}/libgfrpc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgfxdr}
Summary:	GlusterFS network/cluster filesystem library
Group:		System/Libraries

%description -n %{libgfxdr}
Package with library libgfxdr.so.%{major}.

%files -n %{libgfxdr}
%{_libdir}/libgfxdr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libglusterd}
Summary:	GlusterFS libglusterd library
Group:		System/Libraries

%description -n %{libglusterd}
GlusterFS is a distributed file-system capable of scaling to several
petabytes. It aggregates various storage bricks over TCP/IP interconnect
into one large parallel network filesystem. GlusterFS is one of the
most sophisticated file systems in terms of features and extensibility.
It borrows a powerful concept called Translators from GNU Hurd kernel.
Much of the code in GlusterFS is in user space and easily manageable.

This package provides the libglusterd library

%files -n %{libglusterd}
%{_libdir}/libglusterd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the GlusterFS library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libgfchangelog} = %{EVRD}
Requires:	%{libgfrpc} = %{EVRD}
Requires:	%{libgfxdr} = %{EVRD}
Requires:	%{libglusterd} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}api-devel < 7.0

%description -n %{devname}
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

This package provides the development libraries and include files.

%files -n %{devname}
%{_includedir}/glusterfs
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%exclude %{_includedir}/glusterfs/api/*
%exclude %{_libdir}/pkgconfig/glusterfs-api.pc
%exclude %{_libdir}/libgfapi.so

#----------------------------------------------------------------------------

%package -n %{libnameapi}
Summary:	Gluster filesystem api shared library
Group:		System/Libraries
Conflicts:	%{_lib}api0 < 7.0
Obsoletes:	%{_lib}api0 < 7.0

%description -n %{libnameapi}
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides the api shared library.

%files -n %{libnameapi}
%{_libdir}/libgfapi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devnameapi}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libnameapi} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Conflicts:	%{_lib}api-devel < 7.0
Obsoletes:	%{_lib}api-devel < 7.0

%description -n %{devnameapi}
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides the api include files.

%files -n %{devnameapi}
%{_libdir}/pkgconfig/glusterfs-api.pc
%{_libdir}/libgfapi.so
%{_includedir}/glusterfs/api/*

#----------------------------------------------------------------------------

%package regression-tests
Summary:	Development Tools
Group:		File tools
Requires:	%{name} = %{EVRD}
Requires:	%{name}-fuse = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires:	attr
Requires:	dbench
Requires:	gcc
Requires:	git
Requires:	lvm2
Requires:	nfs-utils
Requires:	python3
Requires:	util-linux-ng
Requires:	xfsprogs
Requires:	perl(App::Prove)
Requires:	perl(Test::Harness)

%description regression-tests
The Gluster Test Framework, is a suite of scripts used for
regression testing of Gluster.

%files regression-tests
%{_datadir}/glusterfs/*
%exclude %{_libexecdir}/glusterfs/scripts/get-gfid.sh
%exclude %{_libexecdir}/glusterfs/scripts/gsync-upgrade.sh
%exclude %{_libexecdir}/glusterfs/scripts/generate-gfid-file.sh
%exclude %{_libexecdir}/glusterfs/scripts/gsync-sync-gfid
%exclude %{_datadir}/glusterfs/scripts/post-upgrade-script-for-quota.sh
%exclude %{_datadir}/glusterfs/scripts/pre-upgrade-script-for-quota.sh

#----------------------------------------------------------------------------

%package cli
Summary:	GlusterFS CLI
Group:		File tools

%description cli
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides the GlusterFS CLI application and its man page

%files cli
%{_sbindir}/gluster
%{_mandir}/man8/gluster.8*
%{_sysconfdir}/bash_completion.d/gluster

#----------------------------------------------------------------------------

%package client
Summary:	GlusterFS client
Group:		Networking/Other
Requires:	%{name}-common = %{EVRD}
Requires(post):	rpm-helper

%description	client
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

This package is the client needed to mount a GlusterFS fs.

%files client
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/glusterfs
%{_sbindir}/mount.glusterfs
%{_bindir}/fusermount-glusterfs
%attr(0644,root,root) %ghost %config(noreplace) %{_logdir}/glusterfs/glusterfs.log
%{_mandir}/man8/mount.glusterfs.8*

%post client
%create_ghostfile %{_logdir}/glusterfs/glusterfs.log root root 0644

#----------------------------------------------------------------------------

%package fuse
Summary:	GlusterFS fuse client
Group:		Networking/Other
Requires:	%{name} = %{EVRD}

%description fuse
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides support to FUSE based clients.

%files fuse
%{_libdir}/glusterfs/%{version}/xlator/mount/fuse*

#----------------------------------------------------------------------------

%package server
Summary:	GlusterFS server
Group:		Networking/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-client = %{EVRD}
Requires:	%{name}-extra-xlators = %{EVRD}
Requires(post,preun):	rpm-helper
Requires(post):	sed

%description server
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

This package is the server.

%files server
%doc extras/clear_xattrs.sh
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/glusterfsd
%attr(0644,root,root) %ghost %config(noreplace) %{_logdir}/glusterfs/glusterfsd.log
%config(noreplace) %{_sysconfdir}/sysconfig/glusterd
%config(noreplace) %{_sysconfdir}/glusterfs
# binaries
%{_bindir}/glusterfind
%{_sbindir}/glusterd
%{_libexecdir}/glusterfs/glfsheal
%{_unitdir}/%{name}*.service
%{_unitdir}/glusterd.service
%{_unitdir}/gluster-ta-volume.service
%{_unitdir}/glustereventsd.service
%{_prefix}/lib/ocf/resource.d/glusterfs
%{_sbindir}/gluster-eventsapi
%{_sbindir}/glustereventsd
# {_sbindir}/glusterfsd is the actual binary, but glusterfs (client) is a
# symlink. The binary itself (and symlink) are part of the glusterfs-fuse
# package, because glusterfs-server depends on that anyway.
%ghost %attr(0644,-,-) %config(noreplace) %{_sharedstatedir}/glusterd/glusterd.info
%ghost %attr(0600,-,-) %{_sharedstatedir}/glusterd/options
# This is really ugly, but I have no idea how to mark these directories in
# any other way. They should belong to the glusterfs-server package, but
# don't exist after installation. They are generated on the first start...
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/disabled-quota-root-xattr-heal.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/S10selinux-label-brick.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/post/S13create-subdir-mounts.sh
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/add-brick/pre/S28Quota-enable-root-xattr-heal.sh
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/post
%{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post/S30samba-set.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/post/S32gluster_enable_shared_storage.sh
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/set/pre
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S29CTDBsetup.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/post/S30samba-start.sh
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/start/pre
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/post
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre/S30samba-stop.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/stop/pre/S29CTDB-teardown.sh

%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/vols
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/peers
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/groups
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/virt
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs
%attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs/nfs-server.vol
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs/run
%attr(0755,-,-) %{_sharedstatedir}/glusterd/nfs/run/nfs.pid
#v.7.6 files
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/db-workload
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/distributed-virt
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/gluster-block
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/metadata-cache
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/nl-cache
%attr(0644,-,-) %{_sharedstatedir}/glusterd/groups/samba
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post/S10selinux-label-brick.sh
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre/S10selinux-del-fcontext.sh

# snap_scheduler
%{_sbindir}/conf.py
%{_sbindir}/gcron.py
%{_sbindir}/snap_scheduler.py

%post server
%create_ghostfile %{_logdir}/glusterfs/glusterfsd.log root root 0644
%_post_service %{name}d
%_post_service glusterd
if [ -e /etc/glusterfs/glusterfs-server.vol ]; then 
echo "Updating /etc/sysconfig/glusterfsd to point to old /etc/glusterfs/glusterfs-server.vol file"
sed -i 's|GLUSTERFSD_CONFIG_FILE="/etc/glusterfs/glusterfsd.vol"|GLUSTERFSD_CONFIG_FILE="/etc/glusterfs/glusterfs-server.vol"|g' /etc/sysconfig/glusterfsd
#   mv -n /etc/glusterfs/glusterfs-server.vol /etc/glusterfs/glusterfsd.vol
fi

%preun server
%_preun_service glusterfsd
%_preun_service glusterd

#----------------------------------------------------------------------------

%package api
Summary:	Clustered file-system api library
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{libnameapi} = %{EVRD}
# we provide the Python package/namespace 'gluster'
Provides:	python3-gluster = %{EVRD}

%description api
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides the glusterfs libgfapi library.

%files api
# libgfapi files
%{_libdir}/glusterfs/%{version}/xlator/mount/api*

#----------------------------------------------------------------------------

%package extra-xlators
Summary:	Extra Gluster filesystem Translators
Group:		File tools
# We need -api rpm for its __init__.py in Python3 site-packages area
Requires:	python3-gluster = %{EVRD}
Requires:	%{name}-api = %{EVRD}

%description extra-xlators
GlusterFS is a clustered file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides extra filesystem Translators,
for GlusterFS.

%files extra-xlators
#v.7.6 xlator files
%{_libdir}/glusterfs/%{version}/xlator/cluster/
%{_libdir}/glusterfs/%{version}/xlator/debug/
%{_libdir}/glusterfs/%{version}/xlator/mgmt/
%{_libdir}/glusterfs/%{version}/xlator/storage/
%{_libdir}/glusterfs/%{version}/xlator/system/
%{_libdir}/glusterfs/%{version}/xlator/protocol/
%{_libdir}/glusterfs/%{version}/xlator/playground/
%{_libdir}/glusterfs/%{version}/xlator/performance/
%{_libdir}/glusterfs/%{version}/xlator/meta.so
%{_libdir}/glusterfs/%{version}/xlator/features/access-control.so
%{_libdir}/glusterfs/%{version}/xlator/features/arbiter.so
%{_libdir}/glusterfs/%{version}/xlator/features/barrier.so
%{_libdir}/glusterfs/%{version}/xlator/features/bit-rot.so
%{_libdir}/glusterfs/%{version}/xlator/features/bitrot-stub.so
%{_libdir}/glusterfs/%{version}/xlator/features/cdc.so
%{_libdir}/glusterfs/%{version}/xlator/features/changelog.so
%{_libdir}/glusterfs/%{version}/xlator/features/cloudsync.so
%{_libdir}/glusterfs/%{version}/xlator/features/gfid-access.so
%{_libdir}/glusterfs/%{version}/xlator/features/index.so
%{_libdir}/glusterfs/%{version}/xlator/features/leases.so
%{_libdir}/glusterfs/%{version}/xlator/features/locks.so
%{_libdir}/glusterfs/%{version}/xlator/features/marker.so
%{_libdir}/glusterfs/%{version}/xlator/features/namespace.so
%{_libdir}/glusterfs/%{version}/xlator/features/posix-locks.so
%{_libdir}/glusterfs/%{version}/xlator/features/quiesce.so
%{_libdir}/glusterfs/%{version}/xlator/features/quota.so
%{_libdir}/glusterfs/%{version}/xlator/features/quotad.so
%{_libdir}/glusterfs/%{version}/xlator/features/read-only.so
%{_libdir}/glusterfs/%{version}/xlator/features/sdfs.so
%{_libdir}/glusterfs/%{version}/xlator/features/selinux.so
%{_libdir}/glusterfs/%{version}/xlator/features/shard.so
%{_libdir}/glusterfs/%{version}/xlator/features/snapview-client.so
%{_libdir}/glusterfs/%{version}/xlator/features/snapview-server.so
%{_libdir}/glusterfs/%{version}/xlator/features/thin-arbiter.so
%{_libdir}/glusterfs/%{version}/xlator/features/trash.so
%{_libdir}/glusterfs/%{version}/xlator/features/upcall.so
%{_libdir}/glusterfs/%{version}/xlator/features/utime.so
%{_libdir}/glusterfs/%{version}/xlator/features/worm.so
%{_libdir}/glusterfs/%{version}/xlator/nfs/server.so
%{_libdir}/glusterfs/%{version}/auth/addr.so
%{_libdir}/glusterfs/%{version}/auth/login.so
%{_libdir}/glusterfs/%{version}/rpc-transport/socket.so
#----------------------------------------------------------------------------
%package cloudsync-plugins
Summary:	Cloudsync Plugins
Group:		Networking/Other
BuildRequires:	curl-devel

%description cloudsync-plugins
GlusterFS is a distributed file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package provides cloudsync plugins for archival feature.

%files cloudsync-plugins
%dir %{_libdir}/glusterfs/%{version}%{?prereltag}/cloudsync-plugins
%{_libdir}/glusterfs/%{version}%{?prereltag}/cloudsync-plugins/cloudsyncs3.so
%{_libdir}/glusterfs/%{version}%{?prereltag}/cloudsync-plugins/cloudsynccvlt.so

#-----------------------------------------------------------------------------
%package geo-replication
Summary:	GlusterFS Geo-replication
Group:		Networking/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-client = %{EVRD}
Requires:	python3-prettytable
Requires:	python3-gluster = %{EVRD}


%description geo-replication
GlusterFS is a clustered file-system capable of scaling to several
peta-bytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file system in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in userspace and easily manageable.

This package provides support to geo-replication.

%files geo-replication
%config(noreplace) %{_sysconfdir}/logrotate.d/glusterfs-georep
%{_libexecdir}/glusterfs/gsyncd
%{_libexecdir}/glusterfs/python/syncdaemon/*
%{_libexecdir}/glusterfs/gverify.sh
%{_libexecdir}/glusterfs/peer_add_secret_pub
%{_libexecdir}/glusterfs/peer_gsec_create
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/geo-replication
%dir %{_sharedstatedir}/glusterd/hooks
%dir %{_sharedstatedir}/glusterd/hooks/1
%dir %{_sharedstatedir}/glusterd/hooks/1/gsync-create
%dir %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post
%attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/gsync-create/post/S56glusterd-geo-rep-create-post.sh
%{_libexecdir}/glusterfs/scripts/get-gfid.sh
%{_libexecdir}/glusterfs/scripts/gsync-upgrade.sh
%{_libexecdir}/glusterfs/scripts/generate-gfid-file.sh
%{_libexecdir}/glusterfs/scripts/gsync-sync-gfid
%ghost %attr(0644,-,-) %{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
%{_sbindir}/gfind_missing_files
%{_sbindir}/gluster-georep-sshkey
%{_sbindir}/gluster-mountbroker

%post geo-replication
#restart glusterd.
if [ $1 -ge 1 ]; then
   systemctl try-restart %1.service 
fi

#----------------------------------------------------------------------------

%package -n python3-gluster
Summary:	GlusterFS python library
Group:		Development/Python
Obsoletes:	python-gluster < 3.10

%description -n python3-gluster
GlusterFS is a distributed file-system capable of scaling to several
petabytes. It aggregates various storage bricks over Infiniband RDMA
or TCP/IP interconnect into one large parallel network file
system. GlusterFS is one of the most sophisticated file systems in
terms of features and extensibility.  It borrows a powerful concept
called Translators from GNU Hurd kernel. Much of the code in GlusterFS
is in user space and easily manageable.

This package contains the python modules of GlusterFS and own gluster
namespace.

%files -n python3-gluster
# introducing glusterfs module in site packages.
# so that all other gluster submodules can reside in the same namespace.
%dir %{python3_sitelib}/gluster
     %{python3_sitelib}/gluster/__init__.*
     %{python3_sitelib}/gluster/__pycache__
     %{python3_sitelib}/gluster/cliutils

#----------------------------------------------------------------------------

%package ganesha
Summary:	NFS-Ganesha configuration
Group:		File tools
Requires:	%{name}-server%{?_isa} = %{EVRD}
Requires:	nfs-ganesha-selinux >= 2.7.6
Requires:	nfs-ganesha-gluster >= 2.7.6
Requires:	pcs >= 0.10.0
Requires:	resource-agents >= 4.2.0
Requires:	dbus
# we need portblock resource-agent in 3.9.5 and later.
Requires:         net-tools
Requires(post):   policycoreutils-python-utils
Requires(postun): policycoreutils-python-utils

%description ganesha
GlusterFS is a distributed file-system capable of scaling to several
petabytes. It aggregates various storage bricks over TCP/IP interconnect
into one large parallel network filesystem. GlusterFS is one of the
most sophisticated file systems in terms of features and extensibility.
It borrows a powerful concept called Translators from GNU Hurd kernel.
Much of the code in GlusterFS is in user space and easily manageable.

This package provides the configuration and related files for using
NFS-Ganesha as the NFS server using GlusterFS

%files ganesha
%dir %{_libexecdir}/ganesha
%{_sysconfdir}/ganesha/ganesha-ha.conf.sample
%{_libexecdir}/ganesha/*
%{_prefix}/lib/ocf/resource.d/heartbeat/*
%{_sharedstatedir}/glusterd/hooks/1/start/post/S31ganesha-start.sh
%ghost      %attr(0644,-,-) %config(noreplace) %{_sysconfdir}/ganesha/ganesha-ha.conf
%ghost %dir %attr(0755,-,-) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha
%ghost      %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
%ghost      %attr(0644,-,-) %config(noreplace) %{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf

#-----------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}
cp %{SOURCE2} glusterfsd.sysconfig
cp %{SOURCE3} glusterfsd.logrotate
cp %{SOURCE4} glusterfs.logrotate

%build
./autogen.sh
%serverbuild
%configure \
	--with-systemddir=%{_unitdir} \
	%ifarch %e2k
	  --disable-linux-io_uring \
	%endif
	--enable-georeplication \
	--disable-static \
	--disable-syslog \
	--enable-gnfs \
	--enable-events

# fix hardening and remove rpath in shlibs
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|' libtool

%make_build

%install
%make_install
# This is a config option but seems not working 
mv %{buildroot}/sbin/* %{buildroot}%{_sbindir}

install -D -p -m 0644 extras/glusterd-sysconfig \
    %{buildroot}%{_sysconfdir}/sysconfig/glusterd


# Remove installed docs, the ones we want are included by %%doc, in
# /usr/share/doc/glusterfs or /usr/share/doc/glusterfs-x.y.z depending
# on the distribution
rm -rf %{buildroot}%{_docdir}/glusterfs/*

head -50 ChangeLog > ChangeLog.head && mv ChangeLog.head ChangeLog
cat << EOM >> ChangeLog

More commit messages for this ChangeLog can be found at
https://forge.gluster.org/glusterfs-core/glusterfs/commits/v%{version}
EOM

# Remove benchmarking and other unpackaged files
# make install always puts these in %%{_defaultdocdir}/%%{name} so don't
# use %%{_pkgdocdir}; that will be wrong on later Fedora distributions
rm -rf %{buildroot}%{_defaultdocdir}/%{name}/benchmarking
rm -f %{buildroot}%{_defaultdocdir}/%{name}/glusterfs-mode.el
rm -f %{buildroot}%{_defaultdocdir}/%{name}/glusterfs.vim

# Create working directory
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd

mkdir -p %{buildroot}%{_localstatedir}/log/glusterd
mkdir -p %{buildroot}%{_localstatedir}/log/glusterfs
mkdir -p %{buildroot}%{_localstatedir}/log/glusterfsd
mkdir -p %{buildroot}%{_rundir}/gluster/metrics

# Update configuration file to /var/lib working directory
sed -i 's|option working-directory /etc/glusterd|option working-directory %{_sharedstatedir}/glusterd|g' \
    %{buildroot}%{_sysconfdir}/glusterfs/glusterd.vol

install -D -p -m 0644 extras/glusterfs-logrotate \
    %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs

# ganesha ghosts
mkdir -p %{buildroot}%{_sysconfdir}/ganesha
touch %{buildroot}%{_sysconfdir}/ganesha/ganesha-ha.conf
mkdir -p %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/
touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha.conf
touch %{buildroot}%{_localstatedir}/run/gluster/shared_storage/nfs-ganesha/ganesha-ha.conf

# geo-rep ghosts
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/geo-replication
touch %{buildroot}%{_sharedstatedir}/glusterd/geo-replication/gsyncd_template.conf
install -D -p -m 0644 extras/glusterfs-georep-logrotate \
    %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs-georep


install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}d.service
install -p -m 644 extras/systemd/gluster-ta-volume.service \
	extras/systemd/glusterd.service \
	extras/systemd/glusterfssharedstorage.service \
	extras/systemd/glustereventsd.service %{buildroot}%{_unitdir}/ 

install -d %{buildroot}%{_sysconfdir}/logrotate.d

### we use journal, let's remove outdated rsyslog files
rm -f %{buildroot}extras/gluster-rsyslog-*.conf
rm -f %{buildroot}extras/gluster-rsyslog-*.conf

install -m0644 glusterfsd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/glusterfsd
install -m0644 glusterfsd.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/glusterfsd
install -m0644 glusterfs.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/glusterfs


# the rest of the ghosts
touch %{buildroot}%{_sharedstatedir}/glusterd/glusterd.info
touch %{buildroot}%{_sharedstatedir}/glusterd/options
subdirs=(add-brick create copy-file delete gsync-create remove-brick reset set start stop)
for dir in ${subdirs[@]}; do
    mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/"$dir"/{pre,post}
done

touch %{buildroot}/%{_logdir}/glusterfs/glusterfs.log
touch %{buildroot}/%{_logdir}/glusterfs/glusterfsd.log

find ./tests ./run-tests.sh -type f | cpio -pd %{buildroot}%{_prefix}/share/glusterfs

rm -f %{buildroot}%{_prefix}/share/glusterfs/tests/basic/rpm.t
rm -rf %{buildroot}/etc/init.d

# sample xlators not generally used or usable
rm -rf %{buildroot}%{_libdir}/glusterfs/%{version}/xlator/encryption/rot-13*
rm -rf %{buildroot}%{_libdir}/glusterfs/%{version}/xlator/features/mac-compat*
rm -rf %{buildroot}%{_libdir}/glusterfs/%{version}/xlator/testing/performance/symlink-cache*
rm -rf %{buildroot}%{_libdir}/glusterfs/%{version}/rpc-transport/rdma*

mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/glustershd
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/peers
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/vols
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/nfs/run
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/bitd
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/quotad
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/scrub
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/snaps
mkdir -p %{buildroot}%{_sharedstatedir}/glusterd/ss_brick
touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/nfs-server.vol
touch %{buildroot}%{_sharedstatedir}/glusterd/nfs/run/nfs.pid

## Install bash completion for cli
install -p -m 0755 -D extras/command-completion/gluster.bash \
    %{buildroot}%{_sysconfdir}/bash_completion.d/gluster

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12913 |21mr|gmavenplus-plugin-1.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          gmavenplus-plugin
Version:       1.5
Release:       8
Summary:       Integrates Groovy into Maven projects
License:       ASL 2.0
URL:           http://groovy.github.io/GMavenPlus/
Source0:       https://github.com/groovy/GMavenPlus/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(jline:jline)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-antlr)
BuildRequires: mvn(org.apache.ant:ant-junit)
BuildRequires: mvn(org.apache.ant:ant-launcher)
BuildRequires: mvn(org.apache.ivy:ivy)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-plugin-registry)
BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.shared:file-management)
BuildRequires: mvn(org.codehaus:codehaus-parent:pom:)
BuildRequires: mvn(org.codehaus.groovy:groovy-all)
BuildRequires: mvn(org.codehaus.groovy:groovy-ant)
BuildRequires: mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires: mvn(org.codehaus.plexus:plexus-cli)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires: mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires: mvn(org.fusesource.jansi:jansi)
BuildRequires: mvn(org.mockito:mockito-all)
# IT tests deps
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
GMavenPlus is a rewrite of GMaven, a Maven plugin
that allows you to integrate Groovy into your
Maven projects.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n GMavenPlus-%{version}

%pom_remove_plugin :maven-clean-plugin
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-help-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-site-plugin

%pom_xpath_remove "pom:build/pom:extensions"
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

# Mockito cannot mock this class: class org.codehaus.gmavenplus.mojo.AbstractGroovyMojoTest$TestGroovyMojo
rm -r src/test/java/org/codehaus/gmavenplus/mojo/AbstractGroovyMojoTest.java

# Convert from dos to unix line ending
sed -i.orig 's|\r||g' README.markdown
touch -r README.markdown.orig README.markdown
rm README.markdown.orig

%mvn_file : %{name}

%build
# Disable tests for now due to incompatibility with new mockito 2.x
%mvn_build -f -- -Pnonindy

%install
%mvn_install

%files -f .mfiles
%doc README.markdown
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12914 |21mr|gmetric4j-1.0.10-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          gmetric4j
Version:       1.0.10
Release:       11
Summary:       JVM instrumentation to Ganglia
License:       BSD
URL:           https://github.com/ganglia/gmetric4j
Source0:       https://github.com/ganglia/gmetric4j/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.acplt.remotetea:remotetea-oncrpc)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: xmvn

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Gmetric4j is a 100% java, configurable Ganglia agent that
periodically polls arbitrary attributes and reports their
values to Ganglia.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.class" -delete
find . -name "*.jar" -type f -delete

%pom_remove_plugin :maven-jar-plugin
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin:2.4" . '
<executions>
  <execution>
    <goals>
      <goal>test-jar</goal>
    </goals>
  </execution>
</executions>'

%pom_remove_plugin :maven-javadoc-plugin
# disable source jar
%pom_remove_plugin :maven-source-plugin

%pom_xpath_inject "pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:configuration/pom:instructions" "
 <Can-Redefine-Classes>false</Can-Redefine-Classes>"

rm src/main/resources/META-INF/MANIFEST.MF

rm -r src/test/java/info/ganglia/gmetric4j/gmetric/GMetricIT.java

%mvn_file : %{name}
%mvn_package :%{name}::tests:

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license COPYING

%files javadoc -f .mfiles-javadoc
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12915 |21mr|gmetrics-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname GMetrics

Name:          gmetrics
Version:       0.7
Release:       7
Summary:       Groovy library that provides reports and metrics for Groovy code
License:       ASL 2.0
Url:           http://gmetrics.sourceforge.net/
Source0:       http://downloads.sourceforge.net/%{name}/%{oname}-%{version}-bin.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:12)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
BuildRequires: mvn(org.codehaus.groovy:groovy)
BuildRequires: mvn(org.codehaus.groovy:groovy-ant)
BuildRequires: mvn(org.codehaus.groovy:groovy-xml)
BuildRequires: mvn(org.codehaus.groovy:groovy-test)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
GMetrics provides calculation and reporting of size and
complexity metrics for Groovy source code, by scanning the
code with an Ant Task, applying a set of metrics, and
generating an HTML or XML report of the results.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{version}
# Cleanup
find . -name "*.jar" -delete
find . -name "*.class" -delete
rm -rf docs/*

%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-site-plugin

%pom_remove_plugin :gmaven-plugin
%pom_add_plugin org.codehaus.gmavenplus:gmavenplus-plugin:1.5 . "
 <executions>
  <execution>
   <goals>
    <goal>generateStubs</goal>
    <goal>testGenerateStubs</goal>
   </goals>
  </execution>
 </executions>"

%pom_remove_dep :CodeNarc
%pom_change_dep :log4j ::12

# package org.apache.tools.ant does not exist
%pom_add_dep org.apache.ant:ant:1.9.6 . "<optional>true</optional>"

#sed -i "s|pom.version|project.version|" pom.xml

chmod 644 README.txt

# Convert from dos to unix line ending
for file in CHANGELOG.txt LICENSE.txt NOTICE.txt README.txt ; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

%mvn_file :%{oname} %{name} %{oname}

%build

# test skipped require Codenarc, circular deps
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.txt README.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12916 |21mr|gmime-3.2.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define api 3.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	The libGMIME library
Name:		gmime
Version:	3.2.7
Release:	10
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gmime
Source0:	https://download.gnome.org/sources/gmime/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	gnupg2
BuildRequires:	gpgme-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(zlib)

%description
This library allows you to manipulate MIME messages.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The libGMIME library
Group:		System/Libraries

%description -n %{libname}
This library allows you to manipulate MIME messages.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GMime-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the lib%{name} library
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel

%description -n %{devname}
This package contains the lib%{name} development library and its header files.

%files -n %{devname}
%doc AUTHORS ChangeLog PORTING README TODO
%{_datadir}/gir-1.0/GMime-%{api}.gir
%{_datadir}/gtk-doc/html/*
%{_datadir}/vala/vapi/gmime-%{api}.*
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-static \
	--with-html-dir=%{_datadir}/gtk-doc/html \
	--enable-gtk-doc
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12917 |21mr|gmp-6.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# XXX this should really be the default behaviour of rpm..
%global __requires_exclude_from	%{_docdir}

%define major 10
%define major_xx 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define libgmpxx %mklibname %{name}xx %{major_xx}
%define devgmpxx %mklibname %{name}xx -d

Summary:	A GNU arbitrary precision library
Name:		gmp
Version:	6.2.1
Release:	3
License:	GPLv3+
Group:		System/Libraries
Url:		http://gmplib.org/
Source0:	ftp://ftp.gmplib.org/pub/%{name}-%{version}/%{name}-%{version}.tar.xz
Patch0:		gmp-6.1.0-x32-build-fix.patch
Patch1:		gmp-6.1.2-execstackfix.patch
Patch2:		CVE-2021-43618.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)

%description
The gmp package contains GNU MP, a library for arbitrary precision
arithmetic, signed integers operations, rational numbers and floating
point numbers. GNU MP is designed for speed, for both small and very
large operands.

GNU MP is fast for several reasons:
   - it uses fullwords as the basic arithmetic type,
   - it uses fast algorithms,
   - it carefully optimizes assembly code for many CPUs' most common
     inner loops
   - it generally emphasizes speed over simplicity/elegance in its
     operations

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A GNU arbitrary precision library
Group:		System/Libraries
# compat provides
# e.g. gmp(x86-64)
Provides:	%{name}%{_isa} = %{EVRD}

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%doc NEWS README
%{_libdir}/libgmp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for the GNU MP arbitrary precision library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The static libraries, header files and documentation for using the GNU MP
arbitrary precision library in applications.

If you want to develop applications which will use the GNU MP library,
you'll need to install the gmp-devel package.  You'll also need to
install the gmp package.

%files -n %{devname}
%doc doc demos
%{_libdir}/libgmp.so
%{_libdir}/libgmp.a
%{_includedir}/gmp.h
%{_infodir}/gmp.info*
%{_libdir}/pkgconfig/gmp.pc

#----------------------------------------------------------------------------

%package -n %{libgmpxx}
Summary:	C++ support for GMP
Group:		System/Libraries

%description -n %{libgmpxx}
C++ support for GMP.

%files -n %{libgmpxx}
%{_libdir}/libgmpxx.so.%{major_xx}*

#----------------------------------------------------------------------------

%package -n %{devgmpxx}
Summary:	C++ Development tools for the GMP
Group:		Development/C++
Requires:	%{libgmpxx} = %{EVRD}
Provides:	gmpxx-devel = %{EVRD}

%description -n %{devgmpxx}
C++ Development tools for the GMP.

%files -n %{devgmpxx}
%{_libdir}/libgmpxx.so
%{_libdir}/libgmpxx.a
%{_includedir}/gmpxx.h
%{_libdir}/pkgconfig/gmpxx.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
autoreconf -fi

%build
%define noconftarget 1
%configure \
	--enable-cxx \
	--enable-static \
	--enable-mpbsd \
	--enable-fft
%make_build

%install
%make_install

%if ! %{cross_compiling}
%check
# All tests must pass
make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12918 |21mr|gn-20210925-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	The GN build tool
Name:		gn
Version:	20210925
Release:	1
License:	GPLv3+
Group:		Development/Other
Url:		http://chromium.googlesource.com/
# git clone https://gn.googlesource.com/gn
# tar cf gn-%{version}.tar gn
# zstd --ultra -22 --rm *.tar
# gn can't be built from a "git archive"-d tarball, must package .git
# (and even --depth 1 won't work)
Source0:	gn-%{version}.tar.zst
Source100:	%{name}.rpmlintrc
BuildRequires:	python
BuildRequires:	ninja
BuildRequires:	atomic-devel
BuildRequires:	git-core
# FIXME as of clang 10.0.0-20200207 crashes on startup if
# built with clang on armv7hnl. It works perfectly on the
# other arches and on armv7hnl built with gcc...
%ifarch %{arm}
BuildRequires:	gcc gcc-c++
%endif

%description
The gn build tool, needed to build Chromium.

%prep
%autosetup -p1 -n %{name}
%ifarch %{e2k}
sed -i '/-fdiagnostics-color/d' build/gen.py
%endif

%build
%set_build_flags
python build/gen.py \
	--no-static-libstdc++

%ninja_build -C out

%install
install -c -D -m 755 out/gn %{buildroot}%{_bindir}/gn

%check
out/gn_unittests

%files
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12919 |21mr|gnome-autoar-0.4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 0
%define major 0
%define girmajor 0.1

%define libname %mklibname %{name} %{major}
%define libnamegtk %mklibname %{name}-gtk %{major}
%define girname %mklibname %{name}-gir %{girmajor}
%define girnamegtk %mklibname %{name}-gtk-gir %{girmajor}
%define devname %mklibname %{name} -d

Summary:	GNOME archive library
Name:		gnome-autoar
Version:	0.4.3
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gnome-autoar
Source0:	https://download.gnome.org/sources/gnome-autoar/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(vapigen)

%description
%{name} is a GObject based library for handling archives.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNOME archive library
Group:		System/Libraries

%description -n %{libname}
%{name} is a GObject based library for handling archives.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamegtk}
Summary:	GNOME archive library
Group:		System/Libraries

%description -n %{libnamegtk}
%{name} is a GObject based library for handling archives.

%files -n %{libnamegtk}
%{_libdir}/lib%{name}-gtk-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GnomeAutoar-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{girnamegtk}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libnamegtk} = %{EVRD}

%description -n %{girnamegtk}
GObject Introspection interface library for %{name}.

%files -n %{girnamegtk}
%{_libdir}/girepository-1.0/GnomeAutoarGtk-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamegtk} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girnamegtk} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}-%{api}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-gtk-%{api}.pc
%{_datadir}/gir-1.0/GnomeAutoar-%{girmajor}.gir
%{_datadir}/gir-1.0/GnomeAutoarGtk-%{girmajor}.gir
%{_datadir}/vala/vapi/%{name}-%{api}.deps
%{_datadir}/vala/vapi/%{name}-gtk-%{api}.deps
%{_datadir}/vala/vapi/%{name}-%{api}.vapi
%{_datadir}/vala/vapi/%{name}-gtk-%{api}.vapi
%{_datadir}/gtk-doc/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
	-Dgtk_doc=true	\
	-Dvapi=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12920 |21mr|gnome-backgrounds-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Background images for the GNOME desktop
Name:		gnome-backgrounds
Version:	42.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-backgrounds
Source0:	https://download.gnome.org/sources/gnome-backgrounds/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
BuildArch:	noarch

%description
This module contains a set of backgrounds packaged with the GNOME desktop.

%files
%doc NEWS README.md AUTHORS
%{_datadir}/backgrounds/*
%{_datadir}/gnome-background-properties/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12921 |21mr|gnome-battery-bench-3.15.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Name:           gnome-battery-bench
Version:        3.15.4
Release:        6
Summary:        Measure power usage in defined scenarios

License:        GPLv2+
Group:          Graphical desktop/GNOME
URL:            https://git.gnome.org/browse/%{name}
Source0:        https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz

BuildRequires: asciidoc
BuildRequires: desktop-file-utils
BuildRequires: xmlto
BuildRequires: docbook-dtd45-xml
BuildRequires: pkgconfig(gio-unix-2.0)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(json-glib-1.0)
BuildRequires: pkgconfig(libevdev)
BuildRequires: pkgconfig(polkit-gobject-1)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xtst)

%description
This application is designed for measuring power usage. It does it by
recording the reported battery statistics as it replays recorded event
logs, and then using that to estimate power consumption and total
battery lifetime.

%prep
%setup -q
sed -i "/GNOME_COMPILE_WARNINGS/d" configure.ac

%build
%configure
%make


%install
%makeinstall_std

desktop-file-validate %{buildroot}/%{_datadir}/applications/org.gnome.BatteryBench.desktop

%files
%doc README COPYING
%{_bindir}/%{name}
%{_bindir}/gbb
%{_datadir}/%{name}
%{_datadir}/applications/org.gnome.BatteryBench.desktop
%{_datadir}/dbus-1/services/org.gnome.BatteryBench.service
%{_datadir}/dbus-1/system-services/org.gnome.BatteryBench.Helper.service
%{_datadir}/polkit-1/actions/org.gnome.BatteryBench.Helper.policy
%{_libexecdir}/gnome-battery-bench-helper
%{_mandir}/man1/gbb.1*
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.gnome.BatteryBench.Helper.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12922 |21mr|gnome-bluetooth-42.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define major 13
%define gir_maj 3.0
%define libname %mklibname %{name} %{major}
%define libui %mklibname %{name}-ui %{major}
%define girname %mklibname %{name}-gir %{gir_maj}
%define devname %mklibname %{name} -d

Summary:	GNOME Bluetooth Subsystem
Name:		gnome-bluetooth
Version:	42.7
Release:	1
Epoch:		1
#gw lib is LGPL, main app is GPL
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-bluetooth
Source0:	https://download.gnome.org/sources/gnome-bluetooth/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	61-gnome-bluetooth-rfkill.rules
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(upower-glib)
Requires:	bluez
Provides:	nautilus-sendto-bluetooth = %{EVRD}
Provides:	bluez-pin

%description
The gnome-bluetooth package contains graphical utilities to setup,
monitor and use Bluetooth devices.

%files -f %{name}2.lang
%doc README.md AUTHORS
%{_bindir}/*
%{_datadir}/applications/bluetooth-sendto.desktop
%{_datadir}/%{name}-%{gir_maj}
%{_mandir}/man1/*
%{_udevrulesdir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNOME bluetooth library
Group:		System/Libraries

%description -n %{libname}
Library from GNOME-Bluetooth.

%files -n %{libname}
%{_libdir}/lib%{name}-%{gir_maj}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libui}
Summary:	GNOME bluetooth ui library
Group:		System/Libraries

%description -n %{libui}
Library from GNOME-Bluetooth ui.

%files -n %{libui}
%{_libdir}/lib%{name}-ui-%{gir_maj}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{mklibname gnome-bluetooth-gir 1.0} <= 1:3.34.5

%description -n %{girname}
GObject Introspection interface for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GnomeBluetooth-%{gir_maj}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files from %{name}
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development libraries and header files from %{name}.

%files -n %{devname}
%{_datadir}/gtk-doc/html/%{name}-%{gir_maj}
%{_includedir}/%{name}-%{gir_maj}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/GnomeBluetooth-%{gir_maj}.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{name}2 --all-name --with-gnome

mkdir -p %{buildroot}%{_udevrulesdir}
install -m644 %{SOURCE1} %{buildroot}%{_udevrulesdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12923 |21mr|gnome-boxes-42.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Boxes manager for GNOME
Name:		gnome-boxes
Version:	42.2
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-boxes
Source0:	https://download.gnome.org/sources/gnome-boxes/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(govirt-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(gtk-vnc-2.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gvncpulse-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libosinfo-1.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libvirt-gconfig-1.0)
BuildRequires:	pkgconfig(libvirt-gobject-1.0)
BuildRequires:	pkgconfig(spice-client-gtk-3.0)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(winpr2)
Requires:	libvirt-utils
Requires:	qemu

%description
Standalone boxes manager for GNOME desktop.

%files -f %{name}.lang
%doc README.md NEWS
%license COPYING
%{_appdatadir}/org.gnome.Boxes.appdata.xml
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/org.gnome.Boxes.desktop
%{_datadir}/dbus-1/services/org.gnome.Boxes.SearchProvider.service
%{_datadir}/dbus-1/services/org.gnome.Boxes.service
%{_datadir}/glib-2.0/schemas/org.gnome.boxes.gschema.xml
%{_datadir}/gnome-shell/search-providers/org.gnome.Boxes.SearchProvider.ini
%{_iconsdir}/hicolor/*/apps/*.svg
%{_libexecdir}/%{name}-search-provider
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson
%meson_build

%install
%meson_install

# Remove unneeded development files
rm -rf %{buildroot}%{_includedir}/%{name}
rm -rf %{buildroot}%{_libdir}/%{name}/girepository-1.0
rm -rf %{buildroot}%{_libdir}/%{name}/pkgconfig

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12924 |21mr|gnome-browser-connector-42.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	GNOME Shell integration for Browser
Name:		gnome-browser-connector
Version:	42.0
Release:	1
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/nE0sIghT/gnome-browser-connector
Source0:	https://gitlab.gnome.org/nE0sIghT/gnome-browser-connector/-/archive/v%{version}/%{name}-v%{version}.tar.gz
Patch0:		gnome-browser-connector-v42.0-upstream.patch
BuildRequires:	meson
BuildRequires:	python3-gi
BuildRequires:	pkgconfig(python3)
Requires:	gnome-shell
Requires:	python3-gi
Provides:	chrome-gnome-shell = %{EVRD}
Obsoletes:	chrome-gnome-shell <= 10.1

%description
This repository contains Browser extension for Google Chrome/Chromium,
Firefox, Vivaldi, Opera (and other Browser Extension, Chrome Extension
or WebExtensions capable browsers) and native host messaging connector
that provides integration with GNOME Shell.

%files
%doc NEWS README.md
%license LICENSE
%attr(0755,root,root) %{_bindir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}-host
%{_datadir}/applications/org.gnome.BrowserConnector.desktop
%{_datadir}/dbus-1/services/org.gnome.BrowserConnector.service
%{_iconsdir}/hicolor/*/apps/org.gnome.BrowserConnector.png
%{_libdir}/mozilla/native-messaging-hosts/org.gnome.*.json
%{python3_sitelib}/gnome_browser_connector/
%{_sysconfdir}/chromium/native-messaging-hosts/org.gnome.*.json
%{_sysconfdir}/opt/chrome/native-messaging-hosts/org.gnome.*.json

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12925 |21mr|gnome-builder-42.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude typelib(.*Adw.*|.*Gio.*if.*|.*is_adwaita.*)

%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	IDE for writing GNOME-based software
Name:		gnome-builder
Version:	42.1
Release:	3
License:	GPLv3+
Group:		Editors
Url:		https://download.gnome.org/sources/gnome-builder
Source0:	https://download.gnome.org/sources/gnome-builder/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	appstream-util
BuildRequires:	ctags
BuildRequires:	desktop-file-utils
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	mm-common
BuildRequires:	tidy
BuildRequires:	uncrustify
BuildRequires:	clang-devel
BuildRequires:	llvm-devel
BuildRequires:	python3dist(autopep8)
BuildRequires:	python3dist(gi-docgen)
BuildRequires:	python3dist(sphinx)
BuildRequires:	pkgconfig(flatpak)
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(jsonrpc-glib-1.0)
BuildRequires:	pkgconfig(libcmark)
BuildRequires:	pkgconfig(libdazzle-1.0)
BuildRequires:	pkgconfig(libdevhelp-3.0)
BuildRequires:	pkgconfig(libgit2-glib-1.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libportal)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sysprof-4)
BuildRequires:	pkgconfig(template-glib-1.0)
BuildRequires:	pkgconfig(vte-2.91)
BuildConflicts: lib64javascriptcoregtk3.0_0 lib64jscore-gir3.0 lib64webkit-gir3.0 lib64webkitgtk3.0_0
Requires:	uncrustify

%description
Builder attempts to be an IDE for writing software for GNOME. It does not try
to be a generic IDE, but one specialized for writing GNOME software.

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_appdatadir}/org.gnome.Builder.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Builder.desktop
%{_datadir}/dbus-1/services/org.gnome.Builder.service
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/gtksourceview-4/language-specs/blueprint.lang
%{_datadir}/gtksourceview-4/styles/*.xml
%{_datadir}/%{name}/*
%{_defaultdocdir}/libide
%{_defaultdocdir}/%{name}/en
%{_iconsdir}/*/*/*/*
%{_includedir}/%{name}*
%{_libdir}/%{name}/*
%{_libdir}/pkgconfig/%{name}-%{version}.pc
%{_libexecdir}/%{name}-*
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types -Wno-error=format"
%meson \
	-Dhelp=true	\
	-Ddocs=true
%meson_build

%install
%meson_install

chmod +x %{buildroot}%{_libdir}/%{name}/plugins/*.py
chmod +x %{buildroot}%{py3_puresitedir}/gi/overrides/Ide.py

%find_lang %{name} --all-name --with-gnome

%check
appstream-util validate-relax --nonet %{buildroot}/%{_appdatadir}/*.xml
desktop-file-validate %{buildroot}/%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12926 |21mr|gnome-calculator-42.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude libgcalc-2.so()|libgci-1.so()

%define url_ver %(echo %{version}|cut -d. -f1)

%define major	1
%define api	2
%define libname %mklibname gcalc %{api} %{major}
%define girname %mklibname gcalc-gir %{api}
%define devname %mklibname gcalc -d

%define major_gci	0
%define api_gci		1
%define libgci %mklibname gci %{api_gci} %{major_gci}
%define girgci %mklibname gci-gir %{api_gci}
%define devgci %mklibname gci -d

Summary:	A desktop calculator
Name:		gnome-calculator
Version:	42.2
Release:	3
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-calculator
Source0:	https://download.gnome.org/sources/gnome-calculator/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-calculator-42.0-ru-po-translate.patch
Patch1:		gnome-calculator-potini.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	libmpc-devel
BuildRequires:	mpfr-devel
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-5)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
gnome-calculator is a powerful graphical calculator with financial,
logical and scientific modes. It uses a multiple precision package
to do its arithmetic to give a high degree of accuracy.

%files -f %{name}.lang
%doc COPYING README.md
%{_appdatadir}/org.gnome.Calculator.appdata.xml
%{_bindir}/gcalccmd
%{_bindir}/gnome-calculator
%{_datadir}/applications/org.gnome.Calculator.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.calculator.gschema.xml
%{_datadir}/dbus-1/services/org.gnome.Calculator.SearchProvider.service
%{_datadir}/gnome-shell/search-providers/org.gnome.Calculator-search-provider.ini
%{_iconsdir}/hicolor/*/apps/org.gnome.Calculator*.svg
%{_libexecdir}/gnome-calculator-search-provider
%{_mandir}/man1/gnome-calculator.1*
%{_mandir}/man1/gcalccmd.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The GCalc library
Group:		System/Libraries

%description -n %{libname}
The GCalc library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libgcalc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for GCalc
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for GCalc.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/GCalc-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for gcalc
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{devname}%{api} = %{EVRD}

%description -n %{devname}
Development files for gcalc.

%files -n %{devname}
%doc COPYING
%{_datadir}/gir-1.0/GCalc-%{api}.gir
%{_datadir}/vala/vapi/gcalc-%{api}.deps
%{_datadir}/vala/vapi/gcalc-%{api}.vapi
%{_includedir}/gcalc-%{api}
%{_libdir}/libgcalc-%{api}.so
%{_libdir}/pkgconfig/gcalc-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{libgci}
Summary:	The GCi library
Group:		System/Libraries

%description -n %{libgci}
The GCi library.

%files -n %{libgci}
%doc COPYING
%{_libdir}/libgci-%{api_gci}.so.%{major_gci}*

#----------------------------------------------------------------------------

%package -n %{girgci}
Summary:	GObject Introspection interface description for GCi
Group:		System/Libraries
Requires:	%{libgci} = %{EVRD}

%description -n %{girgci}
GObject Introspection interface description for GCi.

%files -n %{girgci}
%doc COPYING
%{_libdir}/girepository-1.0/GCi-%{api_gci}.typelib

#----------------------------------------------------------------------------

%package -n %{devgci}
Summary:	Development files for gci
Group:		Development/GNOME and GTK+
Requires:	%{libgci} = %{EVRD}
Requires:	%{girgci} = %{EVRD}
Provides:	%{devgci}%{api_gci} = %{EVRD}

%description -n %{devgci}
Development files for gci.

%files -n %{devgci}
%doc COPYING
%{_datadir}/gir-1.0/GCi-%{api_gci}.gir
%{_datadir}/vala/vapi/gci-%{api_gci}.deps
%{_datadir}/vala/vapi/gci-%{api_gci}.vapi
%{_includedir}/gci-%{api}
%{_libdir}/libgci-%{api_gci}.so
%{_libdir}/pkgconfig/gci-%{api_gci}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

sed -i 's/GTK;Utility;/GTK;Utility;System;/' %{buildroot}%{_datadir}/applications/org.gnome.Calculator.desktop

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12927 |21mr|gnome-calendar-43.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Simple and beautiful calendar application designed to fit GNOME 3
Name:		gnome-calendar
Version:	43.1
Release:	1
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-calendar
Source0:	https://download.gnome.org/sources/gnome-calendar/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-calendar-43.1-po-ru-translate.patch
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gweather4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libdazzle-1.0)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libedataserver-1.2)
BuildRequires:	pkgconfig(libedataserverui-1.2)
BuildRequires:	pkgconfig(libgeoclue-2.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libsoup-3.0)

%description
Calendar is a simple and beautiful calendar application designed to fit
GNOME 3.
Features:
* Week, month and year views
* Basic editing of events
* Evolution Data Server integration
* Search support

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_appdatadir}/org.gnome.Calendar.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Calendar.desktop
%{_datadir}/dbus-1/services/org.gnome.Calendar.service
%{_datadir}/glib-2.0/schemas/org.gnome.calendar.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.calendar.gschema.xml
%{_datadir}/gnome-shell/search-providers/org.gnome.Calendar.search-provider.ini
%{_iconsdir}/hicolor/*/apps/org.gnome.Calendar*.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

%check
desktop-file-validate %{buildroot}%{_datadir}/applications/org.gnome.Calendar.desktop
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/org.gnome.Calendar.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12928 |21mr|gnome-characters-42.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)
%global appname org.gnome.Characters

Summary:	Character map application for GNOME
Name:		gnome-characters
Version:	42.0
Release:	4
# Files from gtk-js-app are licensed under 3-clause BSD.
# Other files are GPL 2.0 or later.
License:	BSD and GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-characters
Source0:	https://download.gnome.org/sources/gnome-characters/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gjs
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(pangoft2)
Requires:	gjs

%description
Characters is a simple utility application to find and insert unusual
characters.

%files -f %{appname}.lang
%doc NEWS
%license COPYING COPYINGv2
%{_appdatadir}/%{appname}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{appname}.desktop
%{_datadir}/dbus-1/services/%{appname}.service
%{_datadir}/glib-2.0/schemas/%{appname}.gschema.xml
%{_datadir}/%{appname}
%{_datadir}/gnome-shell/search-providers/%{appname}.search-provider.ini
%{_iconsdir}/hicolor/*/apps/org.gnome.Characters.svg
%{_iconsdir}/hicolor/*/apps/org.gnome.Characters-symbolic.svg
%{_libdir}/%{appname}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{appname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12929 |21mr|gnome-chess-42.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Chess game
Name:		gnome-chess
Version:	42.1
Release:	2
License:	GPLv2+ and GFDL
Group:		Games/Other
Url:		https://download.gnome.org/sources/gnome-chess
Source0:	https://download.gnome.org/sources/gnome-chess/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-chess-40.1_ru.tar.gz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vapigen)
Requires:	gnuchess
Provides:	glchess = %{EVRD}

%description
A chess game which supports several chess engines, with 2D and optionally 3D
support if OpenGL is present.

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_appdatadir}/org.gnome.Chess.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Chess.desktop
%{_datadir}/dbus-1/services/org.gnome.Chess.service
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_iconsdir}/*/*/*/*
%{_mandir}/man6/%{name}.6*
%{_sysconfdir}/%{name}/engines.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12930 |21mr|gnome-clocks-43.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Clock application designed for GNOME 3
Name:		gnome-clocks
Version:	43.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-clocks
Source0:	https://download.gnome.org/sources/gnome-clocks/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-clocks-42.0-po-ru-translate.patch
BuildRequires:	appstream-util
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	itstool
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	typelib(GnomeDesktop) = 4.0
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(gnome-desktop-4)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gweather4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnotify)
Requires:	typelib(GWeather)

%description
Clock application designed for GNOME 3.

%files -f gnome-clocks.lang
%doc README.md NEWS
%license LICENSE.md
%{_appdatadir}/org.gnome.clocks.metainfo.xml
%{_bindir}/gnome-clocks
%{_datadir}/icons/*/*/apps/*
%{_datadir}/glib-2.0/schemas/org.gnome.clocks.gschema.xml
%{_datadir}/applications/org.gnome.clocks.desktop
%{_datadir}/dbus-1/services/org.gnome.clocks.service
%{_datadir}/help/*/gnome-clocks/*
%{_datadir}/gnome-shell/search-providers/org.gnome.clocks.search-provider.ini

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12931 |21mr|gnome-common-3.18.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Gnome-common contains useful things common to building gnome packages
Name:		gnome-common
Version:	3.18.0
Release:	5
License: 	GPLv3+
Group:		Development/GNOME and GTK+
Url: 		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Requires:	autoconf-archive
Requires:	common-licenses
BuildArch:	noarch

%description
gnome-common is for building various GNOME modules from CVS. It is not
needed to run GNOME.

%files
%doc ChangeLog
%{_bindir}/*
%{_datadir}/aclocal/*.m4

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-autoconf-archive
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12932 |21mr|gnome-contacts-42.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1)

Summary:	Contacts manager for GNOME
Name:		gnome-contacts
Version:	42.0
Release:	7
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-contacts
Source0:	https://download.gnome.org/sources/gnome-contacts/%{url_ver}/%{name}-%{version}.tar.xz
# Drop it when unneed
Patch0:		gnome-contacts-42.0-disable-eds.patch
Patch1:		gnome-contacts-42.0-hard-ru-translate.patch
Patch2:		gnome-contacts-42.0-ru-po-translate.patch
BuildRequires:	appstream-util
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(cheese)
BuildRequires:	pkgconfig(cheese-gtk)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(folks)
BuildRequires:	pkgconfig(folks-telepathy)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libedataserver-1.2)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libportal)
BuildRequires:	pkgconfig(vapigen)
Requires:	telepathy-mission-control

%description
Standalone contacts manager for GNOME desktop.

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_appdatadir}/org.gnome.Contacts.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.Contacts.SearchProvider.service
%{_datadir}/dbus-1/services/org.gnome.Contacts.service
%{_datadir}/glib-2.0/schemas/org.gnome.Contacts.gschema.xml
%{_datadir}/gnome-shell/search-providers/*.ini
%{_iconsdir}/hicolor/*/apps/org.gnome.Contacts*.*
%{_libexecdir}/gnome-contacts-search-provider
%{_mandir}/man1/gnome-contacts.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%ifnarch aarch64
%patch0 -p1 -R
%endif

%build
%meson	\
%ifarch aarch64
	-Dtelepathy=false
%else
	-Dtelepathy=true
%endif
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12933 |21mr|gnome-control-center-42.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define devname %mklibname %{name} -d

Summary:	GNOME control center
Name:		gnome-control-center
Version:	42.10
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-control-center
Source0:	https://download.gnome.org/sources/gnome-control-center/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-control-center-42.10-ru-po-translate.patch
Patch1:		gnome-control-center-42.4-add-nm-connection-editor-button.patch
Patch2:		gnome-control-center-42.1-icon-about-size.patch
Patch3:		gnome-control-center-41.4-fix-desktop.patch
# Drop when fix add PPPoE/DSL staff in gnome-control-center upstream
Patch4:		gnome-control-center-42.9-drop-vpn-add.patch
Patch5:		gnome-control-center-42.9-drop-vpn-edit.patch
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-style-xsl
BuildRequires:	gnome-common
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	shared-mime-info
BuildRequires:	cups-devel
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(accountsservice)
BuildRequires:	pkgconfig(cheese-gtk)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(colord-gtk4)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-bluetooth-ui-3.0)
BuildRequires:	pkgconfig(gnome-desktop-4)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-settings-daemon)
BuildRequires:	pkgconfig(goa-backend-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(grilo-0.3)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgnome-menu-3.0)
BuildRequires:	pkgconfig(libgnomekbd)
BuildRequires:	pkgconfig(libgnomekbdui)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libnma-gtk4)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libwacom)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(pwquality)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(udisks2)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xxf86misc)
Requires:	cups-pk-helper
Requires:	gnome-settings-daemon
Requires:	networkmanager-applet
Requires:	%{name}-common = %{EVRD}
Recommends:	ntp

%description
GNOME Control-center is a configuration tool for easily setting up your
GNOME environment.

%files -f %{name}-2.0.lang
%doc NEWS README.md
%license COPYING
%{_appdatadir}/org.gnome.Settings.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/bash-completion/*
%{_datadir}/dbus-1/services/*
%{_datadir}/gettext/its/*
%{_datadir}/glib-2.0/schemas/org.gnome.Settings.gschema.xml
%{_datadir}/gnome-shell
%{_datadir}/%{name}
%{_datadir}/pixmaps
%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/polkit-1/rules.d/*.rules
%{_datadir}/sounds/gnome/default/*
%{_iconsdir}/gnome-logo-text*.svg
%{_libexecdir}/cc-remote-login-helper
%{_libexecdir}/%{name}-goa-helper
%{_libexecdir}/%{name}-print-renderer
%{_libexecdir}/%{name}-search-provider
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package common
Summary:	Common files for GNOME control center
Group:		Development/GNOME and GTK+

%description common
Common files for GNOME control center.

%files common
%license COPYING
%{_iconsdir}/hicolor/*/*/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files for GNOME control center
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{EVRD}

%description -n %{devname}
Development libraries, include files for GNOME Control Center

%files -n %{devname}
%license COPYING
%{_datadir}/pkgconfig/gnome-keybindings.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Ddocumentation=true	\
%ifarch %{armx}
	-Dtests=false		\
%endif
	%{nil}
%meson_build

%install
%meson_install

sed -i "/StartupNotify/d" %{buildroot}%{_datadir}/applications/gnome-wwan-panel.desktop

desktop-file-install --delete-original \
	--dir %{buildroot}%{_datadir}/applications \
	--add-only-show-in GNOME \
	%{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name}-2.0 --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12934 |21mr|gnome-desktop3-42.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define oname gnome-desktop

%define api3_ver	3
%define api4_ver	4
%define api3		3.0
%define api4		4.0
%define major3		19
%define major4		1

%define libname3	%mklibname %{oname} %{api3_ver} %{major3}
%define libname4	%mklibname %{oname} %{api4_ver} %{major4}
%define devname3	%mklibname %{oname} %{api3_ver} -d
%define devname4	%mklibname %{oname} %{api4_ver} -d
%define girname3	%mklibname %{oname}-gir %{api3}
%define girname4	%mklibname %{oname}-gir %{api4}

Summary:	Package containing code shared among gnome-panel, gnome-session, nautilus, etc
Name:		gnome-desktop3
Version:	42.6
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-desktop
Source0:	https://download.gnome.org/sources/gnome-desktop/%{url_ver}/%{oname}-%{version}.tar.xz
Patch0:		gnome-desktop-3.38.0-unknown-type.patch
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xkeyboard-config)
BuildRequires:	pkgconfig(xrandr)
Requires:	%{name}-l10n = %{EVRD}
%rename 	%{oname}

%description
This package contains some data files and other shared components of the
GNOME user environment.

%files
%doc AUTHORS NEWS
%license COPYING
%{_datadir}/gnome/gnome-version.xml
%{_datadir}/help/*
%{_libexecdir}/%{oname}-debug/gnome-rr-debug
%{_libexecdir}/%{oname}-debug/test-*

#----------------------------------------------------------------------------

%package l10n
Summary:	Localization files for gnome-desktop3
Group:		Graphical desktop/GNOME

%description l10n
Localization files for gnome-desktop3.

%files l10n -f %{oname}-%{api3}.lang

#----------------------------------------------------------------------------

%package -n %{libname3}
Summary:	Package containing code shared among gnome-panel, gnome-session, nautilus, etc
Group:		System/Libraries

%description -n %{libname3}
This package contains an internal library
(libgnomedesktop) used to implement some portions of the GNOME
desktop.

%files -n %{libname3}
%{_libdir}/libgnome-desktop-%{api3_ver}.so.%{major3}*

#----------------------------------------------------------------------------

%package -n %{libname4}
Summary:	Package containing code shared among gnome-panel, gnome-session, nautilus, etc
Group:		System/Libraries

%description -n %{libname4}
This package contains an internal library
(libgnomedesktop) used to implement some portions of the GNOME
desktop.

%files -n %{libname4}
%{_libdir}/libgnome-*-%{api4_ver}.so.%{major4}*

#----------------------------------------------------------------------------

%package -n %{girname3}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries

%description -n %{girname3}
GObject Introspection interface description for %{oname}.

%files -n %{girname3}
%{_libdir}/girepository-1.0/GnomeDesktop-%{api3}.typelib

#----------------------------------------------------------------------------

%package -n %{girname4}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries

%description -n %{girname4}
GObject Introspection interface description for %{oname}.

%files -n %{girname4}
%{_libdir}/girepository-1.0/Gnome*-%{api4}.typelib

#----------------------------------------------------------------------------

%package -n %{devname3}
Summary:	Development libraries, include files for %{oname}
Group:		Development/GNOME and GTK+
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname3} = %{EVRD}
Requires:	%{girname3} = %{EVRD}

%description -n %{devname3}
Development libraries, include files for internal library %{oname}.

%files -n %{devname3}
%{_datadir}/gir-1.0/GnomeDesktop-%{api3}.gir
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*-%{api3}
%{_libdir}/lib*-%{api3_ver}.so
%{_libdir}/pkgconfig/*-%{api3}.pc

#----------------------------------------------------------------------------

%package -n %{devname4}
Summary:	Development libraries, include files for %{oname}
Group:		Development/GNOME and GTK+
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname4} = %{EVRD}
Requires:	%{girname4} = %{EVRD}

%description -n %{devname4}
Development libraries, include files for internal library %{oname}.

%files -n %{devname4}
%{_datadir}/gir-1.0/Gnome*-%{api4}.gir
%{_includedir}/*-%{api4}
%{_libdir}/lib*-%{api4_ver}.so
%{_libdir}/pkgconfig/*-%{api4_ver}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p0

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{oname}-%{api3}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12935 |21mr|gnome-dictionary-40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Dictionary
Name:		gnome-dictionary
Version:	40.0
Release:	6
Epoch:		1
License:	GPLv2+ and LGPLv2
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-dictionary
Source0:	https://download.gnome.org/sources/gnome-dictionary/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-dictionary-40.0_ru.tar.gz
Patch0:         fix-build-with-new-meson.patch
BuildRequires:	docbook-style-xsl
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
GNOME Dictionary - Look up words in dictionary sources.

%files -f %{name}.lang
%doc README.md NEWS
%{_appdatadir}/org.gnome.Dictionary.appdata.xml
%{_bindir}/%{name}
%{_datadir}/gdict-1.0/
%{_datadir}/glib-2.0/schemas/org.gnome.dictionary.gschema.xml
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.Dictionary.service
%{_iconsdir}/hicolor/*/apps/org.gnome.Dictionary*.svg
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12936 |21mr|gnome-directory-thumbnailer-0.1.11-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Thumbnailer for directories
Name:		gnome-directory-thumbnailer
Version:	0.1.11
Release:	10
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-directory-thumbnailer
Source0:	https://download.gnome.org/sources/gnome-directory-thumbnailer/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
Buildrequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gtk4)

%description
Thumbnailer for directories based on some heuristics.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README
%{_bindir}/gnome-directory-thumbnailer
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/gnome-directory-thumbnailer.thumbnailer

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-silent-rules
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12937 |21mr|gnome-disk-utility-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Disk management daemon
Name:		gnome-disk-utility
Version:	42.0
Release:	2
License:	LGPLv2+
Group:		System/Configuration/Other
Url:		https://download.gnome.org/sources/gnome-disk-utility
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-disk-utility-42.0-ru-po-translate.patch
BuildRequires:	gnome-doc-utils
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gnome-settings-daemon)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(pwquality)
BuildRequires:	pkgconfig(udisks2)
Requires:	polkit-agent
Requires:	udisks2

%description
This package contains the Palimpsest disk management application.
Palimpsest supports partitioning, file system creation, encryption,
RAID, SMART monitoring, etc.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%{_appdatadir}/org.gnome.DiskUtility.appdata.xml
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.DiskUtility.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_iconsdir}/*/*/*/*
%{_libexecdir}/gsd-disk-utility-notify
%{_mandir}/man1/gnome*1*
%{_sysconfdir}/xdg/autostart/org.gnome.SettingsDaemon.DiskUtilityNotify.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12938 |21mr|gnome-doc-utils-0.20.10-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNOME XML documentation utilities
Name:		gnome-doc-utils
Version:	0.20.10
Release:	18
License:	LGPLv2.1+ and GPLv2+
Group:		Publishing
Url:		http://www.gnome.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
# (fc) 0.8.0-1mdv use catalog for dtd validation (GNOME bug #497055)
Patch0:		gnome-doc-utils-0.12.1-catalog.patch
Patch1:		gnome-doc-utils-0.20.10-python3.patch
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-dtd45-xml
BuildRequires:	glib-gettextize
BuildRequires:	intltool
BuildRequires:	python3-libxml2
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(libxslt)
Requires:	xsltproc
BuildArch:	noarch

%description
gnome-doc-utils is a collection of documentation utilities for the Gnome
project.  Notably, it contains utilities for building documentation and
all auxiliary files in your source tree, and it contains the DocBook
XSLT stylesheets that were once distributed with Yelp.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_bindir}/gnome-doc-tool
%dir %{_datadir}/gnome-doc-utils
%{_datadir}/gnome-doc-utils/icons
%{_datadir}/gnome-doc-utils/watermarks
%dir %{_datadir}/xml/
%{_datadir}/xml/gnome
%{_datadir}/xml/mallard

#----------------------------------------------------------------------------

%package -n xml2po
Summary:	Tool to extract translatable content from XML documents
Requires:	python3-libxml2

%description -n xml2po
xml2po is a simple Python program which extracts translatable
content from free-form XML documents and outputs gettext compatible
POT files.

%files -n xml2po
%doc xml2po/AUTHORS xml2po/ChangeLog xml2po/COPYING xml2po/NEWS xml2po/README
%{_bindir}/xml2po
%{py3_puresitedir}/xml2po/
%{_mandir}/man1/xml2po.1*

#----------------------------------------------------------------------------

%package devel
Summary:	A Collection of Documentation Utilities for GNOME
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{version}
Requires:	docbook-dtd45-xml
Requires:	libxml2-utils
Requires:	xml2po

%description devel
This package contains the development files for %{name}.

%files devel
%{_bindir}/gnome-doc-prepare
%{_datadir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4
%{_datadir}/gnome-doc-utils/gnome-doc-utils.make
%{_datadir}/gnome-doc-utils/templates
%{_datadir}/gnome-doc-utils/template*.*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

rm -f m4/glib-gettext.m4
intltoolize --force
#needed by patch0
aclocal -I tools -I m4
autoconf
automake -a -c

%build
%configure \
	--build=%{_build} \
	--disable-scrollkeeper \
	--enable-documentation \
	--enable-build-utils

%make
sed -i s/python$/python3/g xml2po/xml2po/xml2po

%install
%makeinstall_std pkgconfigdir=%{_datadir}/pkgconfig

%find_lang gnome-doc-make --with-gnome
%find_lang gnome-doc-xslt --with-gnome
%find_lang %{name}
cat gnome-doc-xslt.lang gnome-doc-make.lang >> %{name}.lang

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12939 |21mr|gnome-epub-thumbnailer-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Name:           gnome-epub-thumbnailer
Version:	1.6
Release:	2
Summary:        Thumbnailers for EPub and MOBI books

License:        GPLv2+
Group:		Graphical desktop/GNOME
URL:            https://git.gnome.org/browse/gnome-epub-thumbnailer
Source0:        http://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz

BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(libxml-2.0)
Buildrequires:  pkgconfig(libarchive)

%description
Thumbnailers for EPub and MOBI books


%prep
%setup -q
%apply_patches


%build
%configure
%make


%install
%makeinstall_std


%files
%doc AUTHORS COPYING NEWS README
%{_bindir}/gnome-epub-thumbnailer
%{_bindir}/gnome-mobi-thumbnailer
%dir %{_datadir}/thumbnailers
%{_datadir}/thumbnailers/gnome-epub-thumbnailer.thumbnailer
%{_datadir}/thumbnailers/gnome-mobi-thumbnailer.thumbnailer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12940 |21mr|gnome-font-viewer-42.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Font viewer
Name:		gnome-font-viewer
Version:	42.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-font-viewer
Source0:	https://download.gnome.org/sources/gnome-font-viewer/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-font-viewer-40.0_ru.tar.gz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-4)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libhandy-1)

%description
Font viewer for Gnome desktop.

%files -f %{name}.lang
%doc NEWS
%license COPYING
%{_appdatadir}/org.gnome.font-viewer.appdata.xml
%{_bindir}/%{name}
%{_bindir}/gnome-thumbnail-font
%{_datadir}/thumbnailers/gnome-font-viewer.thumbnailer
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.gnome.font-viewer.service
%{_iconsdir}/hicolor/*/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12941 |21mr|gnome-getting-started-docs-3.38.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Help a new user get started in GNOME
Name:		gnome-getting-started-docs
Version:	3.38.1
Release:	9
License:	CC-BY-SA
Group:		Documentation
Url:		https://download.gnome.org/sources/gnome-getting-started-docs
Source0:	https://download.gnome.org/sources/gnome-getting-started-docs/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	itstool
BuildRequires:	yelp-tools
Requires:	gnome-user-docs
BuildArch:	noarch

%description
This package contains a 'Getting Started' guide that can be viewed
with yelp. It is normally used together with gnome-initial-setup.

%files -f %{name}.lang
%doc COPYING NEWS AUTHORS
%exclude %{_datadir}/help/??/gnome-help/figures/

#----------------------------------------------------------------------------

%package as
Summary:	as translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description as
as translations for the Getting Started guide videos.

%files as
%{_datadir}/help/as/gnome-help/figures/

#----------------------------------------------------------------------------

%package ca
Summary:	ca translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description ca
ca translations for the Getting Started guide videos.

%files ca
%{_datadir}/help/ca/gnome-help/figures/

#----------------------------------------------------------------------------

%package cs
Summary:	cs translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description cs
cs translations for the Getting Started guide videos.

%files cs
%{_datadir}/help/cs/gnome-help/figures/

#----------------------------------------------------------------------------

%package da
Summary:	da translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description da
da translations for the Getting Started guide videos.

%files da
%{_datadir}/help/da/gnome-help/figures/

#----------------------------------------------------------------------------

%package de
Summary:	de translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description de
de translations for the Getting Started guide videos.

%files de
%{_datadir}/help/de/gnome-help/figures/

#----------------------------------------------------------------------------

%package el
Summary:	el translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description el
el translations for the Getting Started guide videos.

%files el
%{_datadir}/help/el/gnome-help/figures/

#----------------------------------------------------------------------------

%package es
Summary:	es translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description es
es translations for the Getting Started guide videos.

%files es
%{_datadir}/help/es/gnome-help/figures/

#----------------------------------------------------------------------------

%package fi
Summary:	fi translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description fi
fi translations for the Getting Started guide videos.

%files fi
%{_datadir}/help/fi/gnome-help/figures/

#----------------------------------------------------------------------------

%package fr
Summary:	fr translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description fr
fr translations for the Getting Started guide videos.

%files fr
%{_datadir}/help/fr/gnome-help/figures/

#----------------------------------------------------------------------------

%package gl
Summary:	gl translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description gl
gl translations for the Getting Started guide videos.

%files gl
%{_datadir}/help/gl/gnome-help/figures/

#----------------------------------------------------------------------------

%package gu
Summary:	gu translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description gu
gu translations for the Getting Started guide videos.

%files gu
%{_datadir}/help/gu/gnome-help/figures/

#----------------------------------------------------------------------------

%package he
Summary:	he translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description he
he translations for the Getting Started guide videos.

%files he
%{_datadir}/help/he/gnome-help/figures/

#----------------------------------------------------------------------------

%package hi
Summary:	hi translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description hi
hi translations for the Getting Started guide videos.

%files hi
%{_datadir}/help/hi/gnome-help/figures/

#----------------------------------------------------------------------------

%package hr
Summary:	hr translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description hr
hr translations for the Getting Started guide videos.

%files hr
%{_datadir}/help/hr/gnome-help/figures/

#----------------------------------------------------------------------------

%package hu
Summary:	hu translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description hu
hu translations for the Getting Started guide videos.

%files hu
%{_datadir}/help/hu/gnome-help/figures/

#----------------------------------------------------------------------------

%package id
Summary:	id translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description id
id translations for the Getting Started guide videos.

%files id
%{_datadir}/help/id/gnome-help/figures/

#----------------------------------------------------------------------------

%package ja
Summary:	ja translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description ja
ja translations for the Getting Started guide videos.

%files ja
%{_datadir}/help/ja/gnome-help/figures/

#----------------------------------------------------------------------------

%package it
Summary:	it translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description it
it translations for the Getting Started guide videos.

%files it
%{_datadir}/help/it/gnome-help/figures/

#----------------------------------------------------------------------------

%package kn
Summary:	kn translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description kn
kn translations for the Getting Started guide videos.

%files kn
%{_datadir}/help/kn/gnome-help/figures/

#----------------------------------------------------------------------------

%package ko
Summary:	ko translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description ko
ko translations for the Getting Started guide videos.

%files ko
%{_datadir}/help/ko/gnome-help/figures/

#----------------------------------------------------------------------------

%package lt
Summary:	lt translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description lt
lt translations for the Getting Started guide videos.

%files lt
%{_datadir}/help/lt/gnome-help/figures/

#----------------------------------------------------------------------------

%package lv
Summary:	lv translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description lv
lv translations for the Getting Started guide videos.

%files lv
%{_datadir}/help/lv/gnome-help/figures/

#----------------------------------------------------------------------------

%package mr
Summary:	mr translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description mr
mr translations for the Getting Started guide videos.

%files mr
%{_datadir}/help/mr/gnome-help/figures/

#----------------------------------------------------------------------------

%package nl
Summary:	nl translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description nl
nl translations for the Getting Started guide videos.

%files nl
%{_datadir}/help/nl/gnome-help/figures/

#----------------------------------------------------------------------------

%package pa
Summary:	pa translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description pa
pa translations for the Getting Started guide videos.

%files pa
%{_datadir}/help/pa/gnome-help/figures/

#----------------------------------------------------------------------------

%package pl
Summary:	pl translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description pl
pl translations for the Getting Started guide videos.

%files pl
%{_datadir}/help/pl/gnome-help/figures/

#----------------------------------------------------------------------------

%package pt
Summary:	pt translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description pt
pt translations for the Getting Started guide videos.

%files pt
%{_datadir}/help/pt/gnome-help/figures/

#----------------------------------------------------------------------------

%package ro
Summary:	ro translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description ro
ro translations for the Getting Started guide videos.

%files ro
%{_datadir}/help/ro/gnome-help/figures/

#----------------------------------------------------------------------------

%package ru
Summary:	ru translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description ru
ru translations for the Getting Started guide videos.

%files ru
%{_datadir}/help/ru/gnome-help/figures/

#----------------------------------------------------------------------------

%package sk
Summary:	sk translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description sk
sk translations for the Getting Started guide videos.

%files sk
%{_datadir}/help/sk/gnome-help/figures/

#----------------------------------------------------------------------------

%package sr
Summary:	sr translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description sr
sr translations for the Getting Started guide videos.

%files sr
%{_datadir}/help/sr/gnome-help/figures/

#----------------------------------------------------------------------------

%package sv
Summary:	sv translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description sv
sv translations for the Getting Started guide videos.

%files sv
%{_datadir}/help/sv/gnome-help/figures/

#----------------------------------------------------------------------------

%package ta
Summary:	ta translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description ta
ta translations for the Getting Started guide videos.

%files ta
%{_datadir}/help/ta/gnome-help/figures/

#----------------------------------------------------------------------------

%package te
Summary:	te translations for gnome-getting-started-docs videos
Group:		Documentation
Requires:	gnome-getting-started-docs = %{EVRD}

%description te
te translations for the Getting Started guide videos.

%files te
%{_datadir}/help/te/gnome-help/figures/

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12942 |21mr|gnome-icon-theme-3.12.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNOME icon theme
Name:		gnome-icon-theme
Version:	3.12.0
Release:	10
License:	GPL+
Group:		Graphical desktop/GNOME
URL:		https://download.gnome.org/sources/gnome-icon-theme
Source0:	http://download.gnome.org/sources/gnome-icon-theme/3.12/%{name}-%{version}.tar.xz
Source1:	legacy-icon-mapping.xml
Source2:	xfce-icon-%{version}.tar.bz2
BuildArch:	noarch

BuildRequires:	icon-naming-utils >= 0.8.7
BuildRequires:	gettext
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	intltool
BuildRequires:	/usr/bin/gtk-update-icon-cache

Requires:	gnome-icon-theme-symbolic
Requires:	hicolor-icon-theme
Requires:	pkgconfig
Requires(post):	/usr/bin/gtk-update-icon-cache
Requires(postun): /usr/bin/gtk-update-icon-cache
OrderWithRequires: /usr/bin/gtk-update-icon-cache

%description
This package contains the default icon theme used by the GNOME desktop.

%files -f files.txt
%doc COPYING AUTHORS
%{_datadir}/pkgconfig/gnome-icon-theme.pc

%post
%update_icon_cache gnome

%postun
%update_icon_cache gnome


#---------------------------------------------------------------------
%package legacy
Summary:	Old names for icons in gnome-icon-theme
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{version}-%{release}

%description legacy
This package contains symlinks to make the icons in gnome-icon-theme
available under old names.

%files legacy -f legacy.txt

%post legacy
%update_icon_cache gnome

%postun legacy
%update_icon_cache gnome

#---------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-icon-mapping

%install
%makeinstall_std

install -d %{buildroot}%{_iconsdir}
tar xjvf %{SOURCE2} -C %{buildroot}%{_iconsdir}

rm -f %{buildroot}%{_datadir}/icons/gnome/icon-theme.cache
touch %{buildroot}%{_datadir}/icons/gnome/icon-theme.cache


cp %{SOURCE1} .
export INU_DATA_DIR=$PWD
(cd %{buildroot}%{_datadir}/icons/gnome
for size in 8x8 16x16 22x22 24x24 32x32 48x48 256x256; do
        cd $size || continue;
        echo -e "Adding rtl variants for $size"
        for dir in `find . -type d`; do
                context="`echo $dir | cut -c 3-`"
                if [ $context ]; then
                        icon-name-mapping -c $context
                fi
        done
        cd ..
done
)

# Add scalable directories for symbolic icons
(cd %{buildroot}%{_datadir}/icons/gnome

mkdir -p scalable/actions
mkdir -p scalable/apps
mkdir -p scalable/devices
mkdir -p scalable/emblems
mkdir -p scalable/mimetypes
mkdir -p scalable/places
mkdir -p scalable/status
)

touch files.txt

(cd %{buildroot}%{_datadir}
 echo "%%defattr(-,root,root)"
 find icons/gnome \( -name *-rtl.png -or -name *-ltr.png -or -type f \) -printf "%%%%{_datadir}/%%p\n"
 find icons/gnome -type d -printf "%%%%dir %%%%{_datadir}/%%p\n"
) > files.txt

(cd %{buildroot}%{_datadir}
 echo "%%defattr(-,root,root)"
 find icons/gnome \( -type l -and -not -name *-rtl.png -and -not -name *-ltr.png \) -printf "%%%%{_datadir}/%%p\n"
) > legacy.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12943 |21mr|gnome-icon-theme-symbolic-3.12.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNOME symbolic icons
Name:		gnome-icon-theme-symbolic
Version:	3.12.0
Release:	6

License:	CC-BY-SA
Group:		Graphical desktop/GNOME
URL:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/3.12/%{name}-%{version}.tar.xz

BuildRequires:	icon-naming-utils >= 0.8.1
BuildRequires:	git-core
BuildRequires:	/usr/bin/gtk-update-icon-cache

BuildArch: noarch

Requires:	gnome-icon-theme
Requires(post):	/usr/bin/gtk-update-icon-cache
Requires(postun): /usr/bin/gtk-update-icon-cache
OrderWithRequires: /usr/bin/gtk-update-icon-cache

%description
Purpose of this icon theme is to extend the base icon theme that
follows the Tango style guidelines for specific purposes. This would
include OSD messages, panel system/notification area, and possibly
menu icons.

Icons follow the naming specification, but have a -symbolic suffix, so
only applications specifically looking up these symbolic icons will
render them. If a -symbolic icon is missing, the app will fall back to
the regular name.

%files
%doc README COPYING NEWS AUTHORS
%{_datadir}/icons/gnome/*
%{_datadir}/pkgconfig/gnome-icon-theme-symbolic.pc

#---------------------------------------------------------------------
%prep
%setup -q

%build

./configure --prefix=%_prefix --enable-icon-mapping

%make

%install
%makeinstall_std GTK_UPDATE_ICON_CACHE=true


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12944 |21mr|gnome-keyring-42.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define api 3

Summary:	Keyring and password manager for the GNOME desktop
Name:		gnome-keyring
Version:	42.1
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Networking/Remote access
Url:		https://download.gnome.org/sources/gnome-keyring
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-keyring-40.0-ru.tar.gz
BuildRequires:	intltool
BuildRequires:	glib2.0-common
BuildRequires:	gtk-doc
BuildRequires:	libtasn1-tools
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gck-1)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libtasn1)
#gw for keyring management GUI
Recommends:	seahorse

%description
gnome-keyring is a program that keep password and other secrets for
users. It is run as a damon in the session, similar to ssh-agent, and
other applications can locate it by an environment variable.

The program can manage several keyrings, each with its own master
password, and there is also a session keyring which is never stored to
disk, but forgotten when the session ends.

%files -f %{name}.lang
%doc README NEWS
%license COPYING*
%attr(755,root,root) %{_bindir}/%{name}-daemon
%{_bindir}/%{name}
%{_bindir}/%{name}-%{api}
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.Secret.service
%{_datadir}/dbus-1/services/org.freedesktop.secrets.service
%{_datadir}/dbus-1/services/org.gnome.keyring.service
%{_datadir}/GConf/gsettings/*.convert
%{_datadir}/glib-2.0/schemas/org.gnome.crypto.cache.gschema.xml
%{_datadir}/xdg-desktop-portal/portals/%{name}.portal
%{_libdir}/%{name}
%{_libdir}/pkcs11
/%{_lib}/security/pam_gnome_keyring*.so
%{_mandir}/man1/gnome-*
%{_sysconfdir}/pkcs11/modules/%{name}.module
%{_sysconfdir}/xdg/autostart/%{name}-pkcs11.desktop
%{_sysconfdir}/xdg/autostart/%{name}-secrets.desktop
%{_sysconfdir}/xdg/autostart/%{name}-ssh.desktop
%{_userunitdir}/%{name}-daemon.*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%configure \
	--with-pam-dir=/%{_lib}/security \
	--disable-static \
	--enable-pam \
	--disable-schemas-compile
%make LIBS='-lgmodule-2.0 -lglib-2.0'

%install
%makeinstall_std

%find_lang %{name} %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12945 |21mr|gnome-klotski-3.38.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Klotski game
Name:		gnome-klotski
Version:	3.38.2
Release:	12
License:	GPLv2+ and GFDL
Group:		Games/Puzzles
Url:		https://download.gnome.org/sources/gnome-klotski
Source0:	https://download.gnome.org/sources/gnome-klotski/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(libgnome-games-support-1)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(librsvg-2.0)

%description
A series of sliding block puzzles. Try and solve them in the least number of
moves.

%files -f %{name}.lang
%doc COPYING
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Klotski.desktop
%{_datadir}/dbus-1/services/org.gnome.Klotski.service
%{_datadir}/glib-2.0/schemas/org.gnome.Klotski.gschema.xml
%{_datadir}/metainfo/org.gnome.Klotski.appdata.xml
%{_iconsdir}/*/*/apps/*
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12946 |21mr|gnome-logs-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Log Viewer
Name:		gnome-logs
Version:	42.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-logs
Source0:	https://download.gnome.org/sources/gnome-logs/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	appdata-tools
BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	gsettings-desktop-schemas
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libsystemd)
Requires:	gsettings-desktop-schemas

%description
Logs makes it easy to view and filter log messages and events. Filter
logs by category and importance to get the information you want. Use
the integrated search to get more relevant results.

%files -f %{name}.lang
%doc README NEWS
%doc %{_datadir}/help/*/%{name}/*
%{_bindir}/%{name}
%{_iconsdir}/*/*/*/*
%{_appdatadir}/*.appdata.xml
%{_datadir}/applications/org.gnome.Logs.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Logs.*.xml
%{_datadir}/dbus-1/services/org.gnome.Logs.service
%{_datadir}/%{name}/gl-style.css
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Dman=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12947 |21mr|gnome-mahjongg-3.38.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Mahjongg game
Name:		gnome-mahjongg
Version:	3.38.3
Release:	10
License:	GPLv2+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/gnome-mahjongg
Source0:	https://download.gnome.org/sources/gnome-mahjongg/%{url_ver}/gnome-mahjongg-%{version}.tar.xz
Patch0:         fix-new-meson-builds.patch
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(librsvg-2.0)
Requires(post):	glib2.0-common
Requires(post):	gtk-update-icon-cache

%description
Mahjongg is a simple pattern recognition game. You score points by
matching identical tiles.

%files -f %{name}.lang
%doc COPYING
%{_bindir}/gnome-mahjongg
%{_datadir}/applications/org.gnome.Mahjongg.desktop
%{_datadir}/glib-2.0/schemas/*.gschema.xml
%{_datadir}/gnome-mahjongg
%{_datadir}/icons/*/*/*/*
%{_datadir}/metainfo/org.gnome.Mahjongg.appdata.xml
%{_mandir}/man6/gnome-mahjongg.6*

%post
glib-compile-schemas /usr/share/glib-2.0/schemas || :
gtk-update-icon-cache -t -f /usr/share/icons/hicolor/scalable || :

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%meson \
	-Dcompile-schemas=disabled \
	-Dupdate-icon-cache=disabled
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12948 |21mr|gnome-maps-43.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} |cut -d. -f1)
%define aver %(echo %{version} |tr -d "~")

Summary:	A map application for GNOME
Name:		gnome-maps
Version:	43.7
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-maps
Source0:	https://download.gnome.org/sources/gnome-maps/%{url_ver}/%{name}-%{aver}.tar.xz
Source1:	gnome-maps-40.2_ru.tar.gz
BuildRequires:	appstream-util
BuildRequires:	gjs
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(champlain-0.12)
BuildRequires:	pkgconfig(folks)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gweather4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libportal)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(rest-1.0)
BuildRequires:	pkgconfig(shumate-1.0)
Requires:	folks
Requires:	geoclue2
Requires:	gjs
Requires:	typelib(Champlain)
Requires:	typelib(GeocodeGlib) = 2.0
Requires:	typelib(Geoclue)
Requires:	typelib(GtkChamplain)
Requires:	typelib(Shumate) = 1.0
Requires:	typelib(Memphis)
Requires:	typelib(Rest) = 1.0
Requires:	typelib(Secret)

%description
%{name} is a map application for GNOME.

%files -f %{name}.lang
%doc NEWS README
%license COPYING
%{_appdatadir}/org.gnome.Maps.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.gnome.Maps.service
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/%{name}
%{_iconsdir}/*/*/apps/*
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{aver}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12949 |21mr|gnome-menus2-2.30.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname gnome-menu %{major}
%define libnamedev %mklibname -d gnome-menu %{api}
%define api 2.0
%define oname gnome-menus

Summary:	GNOME menu library
Name:		gnome-menus2
Version:	2.30.5
Release:	11
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%oname/%{oname}-%{version}.tar.bz2
# (fc) 2.15.91-2mdv grab translation from menu-messages if not in upstream file
Patch0:		gnome-menus-2.27.92-l10n.patch
# (fc) 2.16.0-2mdv unclutter preferences/settings menu
Patch1:		gnome-menus-2.23.1-uncluttermenu.patch
Patch2:		gnome-menus-compile-warnings.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	intltool >= 0.40.0
BuildRequires:	pkgconfig(python2)
Requires:	python2-%{name}

%description
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec

Also contained here are the GNOME menu layout configuration files,
.directory files and assorted menu related utility programs.

%files -f %{oname}.lang
%doc README NEWS HACKING AUTHORS ChangeLog
%{_datadir}/desktop-directories
%dir %{_sysconfdir}/xdg/gnome
%dir %{_sysconfdir}/xdg/gnome/menus
%config(noreplace) %{_sysconfdir}/xdg/gnome/menus/*
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/%{oname}

#------------------------------------------------------------------
%package -n python2-%{name}
Group:		Development/Python
Summary:	Module to access XDG menu
Provides:	python-%{name} = %{EVRD}

%description -n python2-%{name}
Python module to access XDG menu.

%files -n python2-%{name}
%{python2_sitearch}/*

#------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	GNOME menu library
Conflicts:	gir-repository < 0.6.5-8

%description -n %{libname}
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec

%files -n %{libname}
%{_libdir}/libgnome-menu.so.%{major}*
%{_libdir}/girepository-1.0/GMenu-%{api}.typelib

#------------------------------------------------------------------

%package -n %{libnamedev}
Group:		Development/C
Summary:	GNOME menu library development files
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname -d gnome-menu 2} < 2.30.5-5
Conflicts:	gir-repository < 0.6.5-8

%description -n %{libnamedev}
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec

%files -n %{libnamedev}
%{_libdir}/lib*.so
%{_includedir}/gnome-menus/
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/GMenu-%{api}.gir

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
export PYTHON=%{__python2}
%configure --disable-static
%make

%install
%makeinstall_std
# gw these produce rpmlint errors:
rm -rf %{buildroot}%{_datadir}/locale/{io,be@latin,bn_IN,si,uz@cyrillic}

%find_lang %{oname}

mkdir -p %{buildroot}%{_sysconfdir}/xdg/gnome
mv %{buildroot}%{_sysconfdir}/xdg/menus %{buildroot}%{_sysconfdir}/xdg/gnome

chmod 755 %{buildroot}%{python2_sitearch}/GMenuSimpleEditor/*.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12950 |21mr|gnome-menus-3.36.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define api	3
%define gimajor	3.0
%define libname	%mklibname gnome-menu %{api} %{major}
%define girname	%mklibname gmenu-gir %{gimajor}
%define devname	%mklibname -d gnome-menu

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	GNOME menu library
Name:		gnome-menus
Version:	3.36.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz

BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(python3)

Obsoletes:	gnome-menus2 < 3.4

Obsoletes:	python-%{name} < %{version}

%description
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec

Also contained here are the GNOME menu layout configuration files,
.directory files and assorted menu related utility programs.

%files -f %{name}.lang
%doc README NEWS HACKING AUTHORS ChangeLog
%{_datadir}/desktop-directories/*
%dir %{_sysconfdir}/xdg/gnome
%dir %{_sysconfdir}/xdg/gnome/menus
%config(noreplace) %{_sysconfdir}/xdg/gnome/menus/*

#-------------------------------------------------------------------
%package -n %{libname}
Group:		System/Libraries
Summary:	GNOME menu library
Conflicts:	gir-repository < 0.6.5-8

%description -n %{libname}
This package contains the shared libraries of %{name}.

%files -n %{libname}
%{_libdir}/libgnome-menu-%{api}.so.%{major}*

#-------------------------------------------------------------------

%package -n %{girname}
Group:		System/Libraries
Summary:	GObject Introspection interface library for %{name}
Requires:	%{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GMenu-%{gimajor}.typelib

#-------------------------------------------------------------------

%package -n %{devname}
Group:		Development/C
Summary:	GNOME menu library development files
Requires:	%{libname} = %{version}-%{release}
Requires:	%{girname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}gnome-menu2-devel < 3.4
Conflicts:	gir-repository < 0.6.5-8

%description -n %{devname}
This package contains the development libraries of %{name}.

%files -n %{devname}
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/GMenu-%{gimajor}.gir

#-------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static

%make LIBS='-lgmodule-2.0'

%install
%makeinstall_std

%find_lang %{name}

mkdir -p %{buildroot}%{_sysconfdir}/xdg/gnome
mv %{buildroot}%{_sysconfdir}/xdg/menus %{buildroot}%{_sysconfdir}/xdg/gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12951 |21mr|gnome-mime-data-2.18.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GNOME virtual file-system libraries
Name:		gnome-mime-data
Version:	2.18.0
Release:	18
License:	GPL+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
# (fc) 2.3.2-1mdk fix default html viewer
Patch0:		gnome-mime-data-2.4.1-html.patch
# (fc) 2.2.0-2mdk use OOo in preference of abiword (rawhide)
Patch1:		gnome-mime-data-2.4.1-openoffice.patch
# (fc) 2.2.0-2mdk fix default applications (Mdk bug 1505) (rawhide)
Patch2:		gnome-mime-data-2.4.2-default-applications.patch
# (fc) 2.3.1-2mdk add gdesklet magic detection (Mdk bug 4790)
Patch3:		gnome-mime-data-2.18.0-gdesklet.patch
BuildRequires:	perl-XML-Parser
BuildArch:	noarch

%description
The GNOME MIME database contains a basic set of applications and MIME
types for a GNOME system.

%files -f %{name}.lang
%doc ChangeLog README
%config(noreplace) %{_sysconfdir}/gnome-vfs-mime-magic
%{_datadir}/application-registry
%{_datadir}/mime-info/*
%{_datadir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .html
%patch1 -p1 -b .ooo
%patch2 -p1 -b .defaultapp
%patch3 -p1 -b .gdesklet

%build
%configure --build=%{_host}
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12952 |21mr|gnome-mines-40.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Mines Sweeper game
Name:		gnome-mines
Version:	40.1
Release:	1
License:	GPLv2+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/gnome-mines
Source0:	https://download.gnome.org/sources/gnome-mines/%{url_ver}/gnome-mines-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(libgnome-games-support-1)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(vapigen)
Provides:	gnomine = %{EVRD}

%description
The popular logic puzzle minesweeper. Find mines on a grid
using hints from squares you have already cleared.

%files -f %{name}.lang
%doc COPYING
%{_appdatadir}/org.gnome.Mines.appdata.xml
%{_bindir}/gnome-mines
%{_datadir}/applications/org.gnome.Mines.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Mines.gschema.xml
%{_datadir}/gnome-mines
%{_iconsdir}/*/*/apps/*
%{_mandir}/man6/gnome-mines.6*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12953 |21mr|gnome-music-42.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Music player and management application
Name:		gnome-music
Version:	42.1
Release:	2
License:	GPLv2+
Group:		Sound
Url:		https://download.gnome.org/sources/gnome-music
Source0:	https://download.gnome.org/sources/gnome-music/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-music-42.1-ru-po-translate.patch
Patch1:		gnome-music-42.1-upstream.patch
BuildRequires:	appstream-util
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	python3
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(grilo-0.3)
BuildRequires:	pkgconfig(grilo-plugins-0.3)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libdazzle-1.0)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libmediaart-2.0)
BuildRequires:	pkgconfig(py3cairo)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
Requires:	gnome-settings-daemon
Requires:	grilo
Requires:	python3-cairo
Requires:	python3-dbus
Requires:	python3-gi-cairo
Requires:	python3-gobject3
Requires:	python3-requests
Requires:	python3-urllib3
Requires:	tracker
Requires:	typelib(Grl)
Requires:	typelib(MediaArt)
Requires:	typelib(TotemPlParser)
Requires:	typelib(Tracker)
Recommends:	grilo-plugins

%description
Music is the new GNOME music playing application.

%files -f org.gnome.Music.lang
%doc NEWS README.md
%license LICENSE
%{_appdatadir}/org.gnome.Music.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/help/*/gnome-music/*
%{_datadir}/org.gnome.Music
%{_iconsdir}/*/*/*/*
%{py3_puresitedir}/gnomemusic

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang org.gnome.Music

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12954 |21mr|gnome-online-accounts-3.45.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define	oname		goa
%define	api		1.0
%define	major		0
%define	bmajor		1
%define	libname		%mklibname %{oname} %{api} %{major}
%define	libbackend	%mklibname %{oname}-backend %{api} %{bmajor}
%define	girname		%mklibname %{oname}-gir %{api}
%define	devname		%mklibname %{oname} %{api} -d
%define	devbackend	%mklibname %{oname}-backend %{api} -d

Summary:	Provide online accounts information
Name:		gnome-online-accounts
Version:	3.45.2
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-online-accounts
Source0:	https://download.gnome.org/sources/gnome-online-accounts/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(javascriptcoregtk-4.1)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(rest-1.0)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(webkit2gtk-4.1)

%description
It provides interfaces so applications and
libraries in GNOME can access the user's online accounts.

%files -f %{name}.lang
%doc NEWS README
%license COPYING
%{_datadir}/dbus-1/services/org.gnome.Identity.service
%{_datadir}/dbus-1/services/org.gnome.OnlineAccounts.service
%{_datadir}/glib-2.0/schemas/org.gnome.online-accounts.gschema.xml
%{_datadir}/icons/hicolor/*/apps/*
%{_libdir}/goa-1.0/web-extensions/libgoawebextension.so
%{_libexecdir}/goa-daemon
%{_libexecdir}/goa-identity-service
%{_mandir}/man8/goa-daemon.8.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Runtime libraries for %{name}.

%files -n %{libname}
%{_libdir}/libgoa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libbackend}
Summary:	Runtime libraries for %{name}
Group:		System/Libraries

%description -n %{libbackend}
Runtime libraries for %{name}.

%files -n %{libbackend}
%{_libdir}/libgoa-backend-%{api}.so.%{bmajor}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject introspection interface for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Goa-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
The gnome-online-accounts-devel package contains libraries and header
files for developing applications that use gnome-online-accounts.

%files -n %{devname}
%{_includedir}/goa-%{api}/
%{_libdir}/goa-%{api}/include/goaconfig.h
%{_libdir}/libgoa-%{api}.so
%{_libdir}/pkgconfig/goa-%{api}.pc
%{_datadir}/gir-1.0/Goa-%{api}.gir
%{_datadir}/gtk-doc/html/goa/
%{_datadir}/vala/vapi/goa-1.0.deps
%{_datadir}/vala/vapi/goa-1.0.vapi

#----------------------------------------------------------------------------

%package -n %{devbackend}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libbackend} = %{EVRD}
Provides:	%{oname}-backend-devel = %{EVRD}

%description -n %{devbackend}
The gnome-online-accounts-devel package contains libraries and header
files for developing applications that use gnome-online-accounts.

%files -n %{devbackend}
%{_libdir}/libgoa-backend-%{api}.so
%{_libdir}/pkgconfig/goa-backend-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson	\
	-Dexchange=false	\
	-Dgoogle=false		\
	-Dgtk_doc=true		\
	-Dlastfm=false		\
	-Dman=true		\
	-Downcloud=false	\
	-Dwindows_live=false
%meson_build

%install
%meson_install

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12955 |21mr|gnome-packagekit-3.16.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	A PackageKit client for the GNOME desktop
Name:		gnome-packagekit
Version:	3.16.0
Release:	5
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		http://www.packagekit.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/gnome-packagekit/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	docbook-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(packagekit-glib2)
BuildRequires:	pkgconfig(unique-1.0)
BuildRequires:	pkgconfig(upower-glib)
Requires:	%{name}-common = %{EVRD}
Conflicts:	%{name}-common < 3.14.0

%description
This package contains PackageKit client programs designed for the GNOME
desktop.

%files
%{_bindir}/gpk-application
%{_bindir}/gpk-log
%{_bindir}/gpk-prefs
%{_bindir}/gpk-update-*
%{_datadir}/appdata/gpk*.xml
%{_datadir}/applications/gpk-application.desktop
%{_datadir}/applications/gpk-prefs.desktop
%{_datadir}/applications/gpk-update-viewer.desktop
%{_datadir}/gnome-packagekit/gpk-application.ui
%{_datadir}/gnome-packagekit/gpk-prefs.ui
%{_datadir}/gnome-packagekit/gpk-update-viewer.ui
%{_datadir}/gnome-packagekit/gpk-log.ui
%{_mandir}/man1/gpk-application*
%{_mandir}/man1/gpk-prefs*
%{_mandir}/man1/gpk-update*
%{_mandir}/man1/gpk-log*
%{_datadir}/applications/gpk-log.desktop

#----------------------------------------------------------------------------

%package common
Summary:	Common files and services for GNOME PackageKit
Group:		System/Configuration/Packaging
Requires:	packagekit
Provides:	packagekit-gui

%description common
Common files and services used by GNOME PackageKit. This packages provides
D-Bus service for packages installation.

%files common -f %{name}.lang
%{_datadir}/applications/gpk-install-*.desktop
%{_datadir}/GConf/gsettings/org.gnome.packagekit.gschema.migrate
%{_datadir}/glib-2.0/schemas/org.gnome.packagekit.gschema.xml
%dir %{_datadir}/gnome-packagekit
%{_datadir}/gnome-packagekit/gpk-client.ui
%{_datadir}/gnome-packagekit/gpk-error.ui
%{_datadir}/gnome-packagekit/gpk-eula.ui
%{_datadir}/gnome-packagekit/gpk-signature.ui
%{_datadir}/gnome-packagekit/icons
%{_iconsdir}/hicolor/*/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--disable-scrollkeeper

%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12956 |21mr|gnome-photos-44.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Access, organize and share your photos on GNOME
Name:		gnome-photos
Version:	44.0
Release:	1
# GNOME Photos itself is GPLv2+, but the bundled libgd is LGPLv2+
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-photos
Source0:	https://download.gnome.org/sources/gnome-photos/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	docbook-style-xsl
BuildRequires:	git
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(babl-0.1)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gegl-0.4)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(gexiv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(grilo-0.3)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libportal)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libdazzle-1.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
Requires:	gegl
Requires:	tracker
# libgd is not meant to be installed as a system-wide shared library.
# It is just a way for GNOME applications to share widgets and other common
# code on an ad-hoc basis.
Provides:	bundled(libgd)

%description
Photos, like Documents, Music and Videos, is one of the core GNOME
applications meant for find and reminding the user about her content.

%files -f %{name}.lang
%license COPYING
%{_appdatadir}/org.gnome.Photos.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Photos.desktop
%{_datadir}/dbus-1/services/org.gnome.Photos*.service
%{_datadir}/glib-2.0/schemas/org.gnome.photos.gschema.xml
%{_datadir}/gnome-shell/search-providers/org.gnome.Photos.search-provider.ini
%{_datadir}/help/*/%{name}/*
%{_docdir}/%{name}
%{_iconsdir}/*/*/*/*
%{_libdir}/%{name}/lib%{name}.so
%{_libexecdir}/%{name}-thumbnailer
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package tests
Summary:	Tests for %{name}
Group:		Graphical desktop/GNOME

%description tests
This package contains the installable tests for %{name}.

%files tests
%{_libexecdir}/installed-tests/%{name}
%{_datadir}/installed-tests

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
	-Ddogtail=false		\
	-Dinstalled_tests=true	\
	-Dmanuals=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12957 |21mr|gnome-power-manager-3.32.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Power Manager
Name:		gnome-power-manager
Version:	3.32.0
Release:	10
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-power-manager
Source0:	https://download.gnome.org/sources/gnome-power-manager/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	docbook-utils
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	xmlto
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(upower-glib)
Requires:	upower

%description
GNOME Power Manager uses the information and facilities provided by Upower
displaying icons and handling user callbacks in an interactive GNOME session. 
GNOME Power Preferences allows authorised users to set policy and 
change preferences.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_appdatadir}/org.gnome.PowerStats.appdata.xml
%{_bindir}/*
%{_datadir}/applications/org.gnome.PowerStats.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.power-manager.gschema.xml
%{_datadir}/icons/*/*/*/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12958 |21mr|gnome-robots-40.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Robots game
Name:		gnome-robots
Version:	40.0
Release:	6
License:	GPLv2+ and GFDL
Group:		Games/Arcade
Url:		https://download.gnome.org/sources/gnome-robots
Source0:	https://download.gnome.org/sources/gnome-robots/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgnome-games-support-1)
BuildRequires:	pkgconfig(librsvg-2.0)

%description
The classic game where you have to avoid a hoard of robots who are trying to
kill you. Each step you take brings them closer toward you. Fortunately they
aren't very smart and you also have a helpful teleportation gadget.

%files -f %{name}.lang
%doc COPYING
%{_appdatadir}/org.gnome.Robots.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Robots.desktop
%{_datadir}/dbus-1/services/org.gnome.Robots.service
%{_datadir}/glib-2.0/schemas/org.gnome.Robots.gschema.xml
%{_datadir}/%{name}
%{_iconsdir}/*/*/*/*
%{_mandir}/man6/%{name}.6*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12959 |21mr|gnome-screenshot-41.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Screenshot utility
Name:		gnome-screenshot
Version:	41.0
Release:	3
License:	GPLv2+
Group:		File tools
Url:		https://download.gnome.org/sources/gnome-screenshot
Source0:	https://download.gnome.org/sources/gnome-screenshot/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-screenshot_ru.tar.gz
Patch0:		gnome-screenshot-41.0-meson-positional-arguments.patch
Patch10:	gnome-screenshot_ru.patch
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(x11)

%description
Gnome screenshot utility.

%files -f %{name}.lang
%doc NEWS
%{_bindir}/%{name}
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-screenshot.gschema.xml
%{_datadir}/dbus-1/services/org.gnome.Screenshot.service
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/scalable/apps/org.gnome.Screenshot.svg
%{_iconsdir}/hicolor/symbolic/apps/org.gnome.Screenshot-symbolic.svg
%{_appdatadir}/org.gnome.Screenshot.metainfo.xml
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

pushd po
tar -xvzf %{SOURCE1}
popd
%patch10 -p1

%build
%meson
%meson_build

%install
%meson_install

#handle docs with files section
rm -rf %{buildroot}%{_defaultdocdir}

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12960 |21mr|gnome-search-tool-3.6.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Search tool
Name:		gnome-search-tool
Version:	3.6.0
Release:	8
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://www.gnome.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(sm)
Conflicts:	gnome-utils < 1:3.3.1

%description
Search tool for Gnome desktop.

%files -f %{name}.lang
%doc NEWS AUTHORS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/gsearchtool/thumbnail_frame.png
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-search-tool.gschema.xml
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/GConf/gsettings/gnome-search-tool.convert
%{_mandir}/man1/%{name}.1.*

#-------------------------------------------------------------------
%prep
%setup -q

%build
%configure \
	--disable-rpath \
	--disable-schemas-compile \
	--disable-schemas-install \
	--disable-scrollkeeper
%make

%install
export GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1
%makeinstall_std

# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p %{buildroot}%{_datadir}/appdata
cat > %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> -->
<!--
BugReportURL: https://bugzilla.gnome.org/show_bug.cgi?id=730809
SentUpstream: 2014-09-18
-->
<application>
  <id type="desktop">gnome-search-tool.desktop</id>
  <metadata_license>CC0-1.0</metadata_license>
  <summary>Search the files on your computer</summary>
  <description>
    <p>
      The Search Tool allows you to search your computer for files
      based on their names. It also allows you to restrict the search
      to specific directories, and specify other parameters for searching
      such as when a file was last modified.
    </p>
  </description>
  <url type="homepage">https://git.gnome.org/browse/gnome-search-tool/</url>
  <screenshots>
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/gnome-search-tool/a.png</screenshot>
  </screenshots>
</application>
EOF

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-gnome


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12961 |21mr|gnome-session-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	The gnome desktop programs for the GNOME GUI desktop environment
Name:		gnome-session
Version:	42.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-session
Source0:	https://download.gnome.org/sources/gnome-session/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-session-40.1.1_ru.tar.gz
Patch0:		gnome-session-41.3-drop-assertion-error.patch
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd412-xml
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	xmlto
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtrans)
BuildRequires:	pkgconfig(xtst)
Requires:	GConf2
Requires:	desktop-common-data
Requires:	gnome-settings-daemon
Requires:	%{name}-bin = %{EVRD}
Requires:	typelib(PangoCairo)
Requires:	typelib(PangoFT2)

%description
GNOME (GNU Network Object Model Environment) is a user-friendly
set of applications and desktop tools to be used in conjunction with a
window manager for the X Window System.

The GNOME Session Manager restores a set session (group of applications)
when you log into GNOME.

%files -f %{name}-%{url_ver}.lang
%doc AUTHORS ChangeLog NEWS README
%license COPYING
%{_datadir}/GConf/gsettings/%{name}.convert
%{_mandir}/man1/%{name}-inhibit.1.*
%{_userunitdir}/gnome-launched-.scope.d/override.conf
%{_userunitdir}/%{name}@gnome.target.d/gnome.session.conf
%{_userunitdir}/%{name}*.service
%{_userunitdir}/%{name}*.target

%post
if [ "$1" = "2" -a -r %{_sysconfdir}/sysconfig/desktop ]; then
	sed -i -e "s|^DESKTOP=Gnome$|DESKTOP=GNOME|g" %{_sysconfdir}/sysconfig/desktop
fi

#----------------------------------------------------------------------------

%package bin
Summary:	The gnome desktop programs for the GNOME GUI desktop environment
Group:		Graphical desktop/GNOME

%description bin
This package contains the binaries for the GNOME Session Manager, but
no startup scripts. It is meant for applications such as GDM that use
gnome-session internally.

%files bin
%license COPYING
%{_bindir}/%{name}*
%{_datadir}/glib-2.0/schemas/org.gnome.SessionManager.gschema.xml
%{_datadir}/%{name}
%{_docdir}/%{name}/dbus/*.html
%{_libexecdir}/%{name}*
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-quit.1*

#----------------------------------------------------------------------------

%package wayland-session
Summary:	The gnome desktop programs for the GNOME GUI desktop environment
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{EVRD}

%description wayland-session
This package contains Wayland and X11 session desktop files for
the GNOME GUI desktop environment.

%files wayland-session
%doc AUTHORS ChangeLog NEWS README
%license COPYING
%{_datadir}/wayland-sessions/gnome.desktop
%{_datadir}/wayland-sessions/gnome-wayland.desktop
%{_datadir}/xsessions/gnome-xorg.desktop

#----------------------------------------------------------------------------

%package x11-session
Summary:	The gnome desktop programs for the GNOME GUI desktop environment
Group:		Graphical desktop/GNOME
Requires:	%{name} = %{EVRD}

%description x11-session
This package contains X11 session desktop file for
the GNOME GUI desktop environment.

%files x11-session
%doc AUTHORS ChangeLog NEWS README
%license COPYING
%{_datadir}/xsessions/gnome.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}-%{url_ver}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12962 |21mr|gnome-settings-daemon-43.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Settings Daemon
Name:		gnome-settings-daemon
Version:	43.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-settings-daemon
Source0:	https://download.gnome.org/sources/gnome-settings-daemon/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gsd-smartcard-not-gnome.desktop
Patch0:		gnome-settings-daemon-43.0-po-ru-translate.patch
# backports of smartcards-related things
# https://gitlab.gnome.org/GNOME/gnome-settings-daemon/-/commits/master/plugins/smartcard
Patch0001:	0001-smartcard-manager-reduce-variable-scope.patch
Patch0002:	0002-smartcard-manager-minor-cleanups.patch
Patch0003:	0003-smartcard-check-for-the-addition-of-new-smartcard-re.patch
Patch0004:	0004-smartcard-Rewrite-to-use-p11-kit-backend-via-Gck-API.patch
Patch0005:	0005-smartcard-manager-Use-Blocking-wait-for-slot-event-i.patch
Patch0006:	0006-gsd-smartcard-manager-Avoid-sleeping-if-the-card-sup.patch
Patch0007:	0007-smartcard-manager-Only-sync-token-state-if-it-really.patch
Patch0008:	0008-smartcard-utils-Free-the-type-name-when-registering-.patch
Patch0009:	0009-smartcard-service-Unown-the-name-on-dispose.patch
Patch0010:	0010-smartcard-Use-autopointers.patch
Patch0011:	0011-smartcard-manager-Use-mutex-auto-lockers-when-conven.patch
Patch0012:	0012-smartcard-Add-utility-function-to-get-the-login-toke.patch
Patch0013:	0013-smartcard-manager-Ignore-slots-with-invalid-tokens.patch
Patch0014:	0014-smartcard-Steal-error-when-propagating-through-GTask.patch
Patch0015:	0015-smartcard-Don-t-lose-track-of-token-name-on-card-rem.patch
Patch0016:	lock-screen-on-not-gnome.patch
BuildRequires:	docbook-style-xsl
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	cups-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gweather4)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(kbproto)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgeoclue-2.0)
BuildRequires:	pkgconfig(libgnomekbd)
BuildRequires:	pkgconfig(libgnomekbdui)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libwacom)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xkeyboard-config)
BuildRequires:	pkgconfig(xorg-wacom)

%description
GNOME settings daemon manages the configuration of the desktop in the
background.

%files -f %{name}.lang
%doc AUTHORS NEWS
%license COPYING
%{_datadir}/gnome-settings-daemon/
%{_datadir}/polkit-1/actions/org.gnome.settings-daemon.plugins.power.policy
%{_datadir}/polkit-1/actions/org.gnome.settings-daemon.plugins.wacom.policy
%{_datadir}/GConf/gsettings/gnome-settings-daemon.convert
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.*.xml
%{_libdir}/gnome-settings-daemon-%{url_ver}/libgsd.so
%{_libexecdir}/gsd-*
%{_sysconfdir}/xdg/autostart/org.gnome.SettingsDaemon.*.desktop
%{_sysconfdir}/xdg/Xwayland-session.d/00-xrdb
%{_udevrulesdir}/61-gnome-settings-daemon-rfkill.rules
%{_userunitdir}/gnome-session-x11-services*.target.wants/org.gnome.SettingsDaemon.XSettings.service
%{_userunitdir}/org.gnome.SettingsDaemon.*.service
%{_userunitdir}/org.gnome.SettingsDaemon.*.target

%pre
if [ -d %{_libexecdir}/%{name} ]
	then rm -rf %{_libexecdir}/%{name}
fi

#----------------------------------------------------------------------------

%package -n gsd-smartcard-not-gnome
Summary:	gsd-smartcard for not GNOME
Group:		Graphical desktop/KDE
Requires:	/usr/libexec/gsd-smartcard
# script that send SIGSTOP to gsd-smarcard when needed
# to avoid race between gsd-smartcard inside GDM and this one
Recommends:	(gdm-kde-smartcards if (gdm and /usr/bin/plasmashell))

%description -n gsd-smartcard-not-gnome
Lock session on smartcard removal when logged in via GDM
in other DEs, then GNOME. Tested with KDE Plasma.

%files -n gsd-smartcard-not-gnome
%{_sysconfdir}/xdg/autostart/gsd-smartcard-not-gnome.desktop

#----------------------------------------------------------------------------

%package devel
Summary:	Include files for the GNOME settings daemon
Group:		Development/GNOME and GTK+

%description devel
Include files for the GNOME settings daemon.

%files devel
%license COPYING
%{_includedir}/gnome-settings-daemon-%{url_ver}
%{_libdir}/pkgconfig/gnome-settings-daemon.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dgcr3=true
%meson_build

%install
%meson_install

install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/autostart/

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12963 |21mr|gnome-shell-42.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Next generation GNOME desktop shell
Name:		gnome-shell
Version:	42.9
Release:	10
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-shell
Source0:	https://download.gnome.org/sources/gnome-shell/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	rosa-gdm-theme-12.4.css
Source100:	css_update.sh
Patch0:		gnome-shell-40.2-new-favorites.patch
Patch1:		gnome-shell-42.3.1-locale-string.patch
Patch2:		gnome-shell-42.0-disable-updates-extensions.patch
Patch3:		gnome-shell-40.3-drop-fractional-scaling-zoom.patch
Patch4:		gnome-shell-42.4-ru-po-translate.patch
Patch5:		gnome-shell-42.9-rosa-gnome-colors.patch
Patch6:		gnome-shell-42.9-drop-autodisable-extensions.patch
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	chrpath
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	gjs
BuildRequires:	gtk4-update-icon-cache
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	rootcerts
BuildRequires:	sassc
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(caribou-1.0)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(folks)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gnome-autoar-0)
BuildRequires:	pkgconfig(gnome-bluetooth-ui-3.0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-keybindings)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libecal-2.0)
BuildRequires:	pkgconfig(libedataserver-1.2)
BuildRequires:	pkgconfig(libgnome-menu-3.0)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(libnm)
#BuildRequires:	pkgconfig(libpipewire-0.3) # Conflict with cheese
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(mozjs-91)
BuildRequires:	pkgconfig(mutter-clutter-10)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(telepathy-logger-0.2)
Requires:	at-spi2-atk
Requires:	gjs
Requires:	glxinfo
Requires:	gtk4
Requires:	json-glib
Requires:	librsvg
Requires:	mutter
Requires:	rosa-wallpapers-2021
# md until js & python typelib autoreqs works
Requires:	typelib(AccountsService)
Requires:	typelib(Atspi)
Requires:	typelib(Caribou)
Requires:	typelib(ClutterX11)
Requires:	typelib(Cogl)
Requires:	typelib(DBusGLib)
Requires:	typelib(Folks)
Requires:	typelib(Gck)
Requires:	typelib(Gcr) = 3
Requires:	typelib(GDesktopEnums)
Requires:	typelib(Gdm)
Requires:	typelib(Gee)
Requires:	typelib(Geoclue)
Requires:	typelib(GjsPrivate)
Requires:	typelib(Gkbd)
Requires:	typelib(GMenu)
Requires:	typelib(GnomeBluetooth)
Requires:	typelib(GnomeDesktop) = 3.0
Requires:	typelib(GnomeDesktop) = 4.0
Requires:	typelib(GWeather) = 4.0
Requires:	typelib(IBus)
Requires:	typelib(Json)
Requires:	typelib(Meta)
Requires:	typelib(NM)
Requires:	typelib(NMA)
Requires:	typelib(Polkit)
Requires:	typelib(Rsvg)
Requires:	typelib(Soup) = 3.0
Requires:	typelib(TelepathyGLib)
Requires:	typelib(TelepathyLogger)
Requires:	typelib(UPowerGlib)
Recommends:	abattis-cantarell-fonts
Recommends:	bolt
Recommends:	gnome-desktop3-l10n
Recommends:	gnome-control-center-common
Recommends:	%{name}-theme-desktop = %{EVRD}
#Recommends:	pipewire-gstreamer # For prtscn video rec

%description
The GNOME Shell redefines user interactions with the GNOME desktop. In
particular, it offers new paradigms for launching applications,
accessing documents, and organizing open windows in GNOME. Later, it
will introduce a new applets eco-system and offer new solutions for
other desktop features, such as notifications and contacts
management. The GNOME Shell is intended to replace functions handled
by the GNOME Panel and by the window manager in previous versions of
GNOME. The GNOME Shell has rich visual effects enabled by new
graphical technologies.

%files -f %{name}.lang
%doc README.md
%{_appdatadir}/org.gnome.Extensions.metainfo.xml
%{_bindir}/*
%{_datadir}/applications/evolution-calendar.desktop
%{_datadir}/applications/org.gnome.*.desktop
%{_datadir}/bash-completion/completions/gnome-extensions
%{_datadir}/dbus-1/services/org.gnome.Extensions.service
%{_datadir}/dbus-1/services/org.gnome.ScreenSaver.service
%{_datadir}/dbus-1/services/org.gnome.Shell.*.service
%{_datadir}/dbus-1/interfaces
%{_datadir}/glib-2.0/schemas/org.gnome.shell.gschema.xml
%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.gschema.override
%{_datadir}/%{name}
%{_datadir}/gnome-control-center/keybindings/50-%{name}-launchers.xml
%{_datadir}/gnome-control-center/keybindings/50-%{name}-screenshots.xml
%{_datadir}/gnome-control-center/keybindings/50-%{name}-system.xml
%{_datadir}/gtk-doc/html
%{_datadir}/xdg-desktop-portal/portals/%{name}.portal
%{_iconsdir}/hicolor/*/apps/org.gnome.*.svg
%{_libdir}/%{name}
%{_libexecdir}/%{name}-*
%{_mandir}/man1/gnome-extensions.1.*
%{_mandir}/man1/%{name}.1*
%{_sysconfdir}/xdg/autostart/%{name}-overrides-migration.desktop
%{_userunitdir}/org.gnome.Shell*.service
%{_userunitdir}/org.gnome.Shell.target

#----------------------------------------------------------------------------

%package theme-desktop
Summary:	Desktop theme for Gnome Shell
Group:		Graphical desktop/GNOME

%description theme-desktop
Desktop theme for Gnome Shell.

%files theme-desktop
%{_datadir}/themes/Desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1
mkdir -p Desktop/%{name}
cp -f data/theme/*.css Desktop/%{name}
cp -f %{SOURCE1} data/theme/%{name}.css

# Fix locale strings _('...') -> _("...")
find . -regex ".*\.js$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "s/_(\x27\([^\x27]*\)\x27)/_(\x22\1\x22)/" {}'

%build
sed -i "s/libpipewire/libpipewire-no/" meson.build
%meson	\
	-Dgtk_doc=true	\
	-Dsoup2=false
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_datadir}/themes/
cp -rf Desktop %{buildroot}%{_datadir}/themes/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12964 |21mr|gnome-shell-extensions-42.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Modify and extend GNOME Shell functionality and behavior
Name:		gnome-shell-extensions
Version:	42.3
Release:	1
License:	GPLv2+ and BSD
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-shell-extensions
Source0:	https://download.gnome.org/sources/gnome-shell-extensions/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-shell-extensions-40.2-desktop.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	sassc
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(libgtop-2.0)
Requires:	gnome-shell
BuildArch:	noarch

%description
GNOME Shell Extensions is a collection of extensions providing additional and
optional functionality to GNOME Shell.

#------------------------------------------------------------------------------

%package common
Summary:	Files common to GNOME Shell Extensions
Group:		Graphical desktop/GNOME
Requires:	gnome-shell

%description common
GNOME Shell Extensions is a collection of extensions providing additional and
optional functionality to GNOME Shell. Common files and directories needed by
extensions are provided here.

%files common -f %{name}.lang
%doc NEWS README.md
%license COPYING
%dir %{_datadir}/gnome-shell/extensions/

#------------------------------------------------------------------------------

%package -n gnome-classic-session
Summary:	GNOME "classic" mode session
Group:		Graphical desktop/GNOME
Requires:	%{name}-apps-menu = %{EVRD}
Requires:	%{name}-launch-new-instance = %{EVRD}
Requires:	%{name}-places-menu = %{EVRD}
Requires:	%{name}-window-list = %{EVRD}
Requires:	nautilus
Obsoletes:	%{name}-horizontal-workspaces <= 3.38.2-4

%description -n gnome-classic-session
This package contains the required components for the GNOME Shell "classic"
mode, which aims to provide a GNOME 2-like user interface.

%files -n gnome-classic-session
%license COPYING
%{_datadir}/glib-2.0/schemas/00_org.gnome.shell.extensions.classic.gschema.override
%{_datadir}/gnome-shell/modes/classic.json
%{_datadir}/gnome-shell/theme/gnome-classic.css
%{_datadir}/gnome-shell/theme/gnome-classic-high-contrast.css
%{_datadir}/gnome-shell/theme/*.svg
%{_datadir}/wayland-sessions/gnome-classic.desktop
%{_datadir}/wayland-sessions/gnome-classic-wayland.desktop
%{_datadir}/xsessions/gnome-classic.desktop
%{_datadir}/xsessions/gnome-classic-xorg.desktop

#------------------------------------------------------------------------------

%package screenshot-window-sizer
Summary:	Screenshot window sizer for GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description screenshot-window-sizer
This GNOME Shell extension allows to easily resize windows for GNOME Software
screenshots.

%files screenshot-window-sizer
%license COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.screenshot-window-sizer.gschema.xml
%{_datadir}/gnome-shell/extensions/screenshot-window-sizer*/

#------------------------------------------------------------------------------

%package apps-menu
Summary:	Application menu for GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}
Requires:	gnome-menus

%description apps-menu
This GNOME Shell extension adds a GNOME 2.x style menu for applications.

%files apps-menu
%license COPYING
%{_datadir}/gnome-shell/extensions/apps-menu*/
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.apps-menu.gschema.xml

#------------------------------------------------------------------------------

%package auto-move-windows
Summary:	Assign specific workspaces to applications in GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description auto-move-windows
This GNOME Shell extension enables easy workspace management. A specific
workspace can be assigned to each application as soon as it creates a window,
in a manner configurable with a GSettings key.

%files auto-move-windows
%license COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.auto-move-windows.gschema.xml
%{_datadir}/gnome-shell/extensions/auto-move-windows*/

#------------------------------------------------------------------------------

%package drive-menu
Summary:	Drive status menu for GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description drive-menu
This GNOME Shell extension provides a panel status menu for accessing and
unmounting removable devices.

%files drive-menu
%license COPYING
%{_datadir}/gnome-shell/extensions/drive-menu*/

#------------------------------------------------------------------------------

%package launch-new-instance
Summary:	Always launch a new application instance for GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description launch-new-instance
This GNOME Shell extension modifies the behavior of clicking in the dash and
app launcher to always launch a new application instance.

%files launch-new-instance
%license COPYING
%{_datadir}/gnome-shell/extensions/launch-new-instance*/

#------------------------------------------------------------------------------

%package native-window-placement
Summary:	Native window placement for GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description native-window-placement
This GNOME Shell extension provides additional configurability for the window
layout in the overview, including a mechanism similar to KDE4.

%files native-window-placement
%license COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.native-window-placement.gschema.xml
%{_datadir}/gnome-shell/extensions/native-window-placement*/

#------------------------------------------------------------------------------

%package places-menu
Summary:	Places status menu for GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description places-menu
This GNOME Shell extension add a system status menu for quickly navigating
places in the system.

%files places-menu
%license COPYING
%{_datadir}/gnome-shell/extensions/places-menu*/

#------------------------------------------------------------------------------

%package user-theme
Summary:	Support for custom themes in GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description user-theme
This GNOME Shell extension enables loading a GNOME Shell theme from
~/.themes/<name>/gnome-shell/.

%files user-theme
%license COPYING
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.user-theme.gschema.xml
%{_datadir}/gnome-shell/extensions/user-theme*/

#------------------------------------------------------------------------------

%package window-list
Summary:	Display a window list at the bottom of the screen in GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description window-list
This GNOME Shell extension displays a window list at the bottom of the screen.

%files window-list
%license COPYING
%{_datadir}/gnome-shell/extensions/window-list*/
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.window-list.gschema.xml

#------------------------------------------------------------------------------

%package windowsNavigator
Summary:	Support for keyboard selection of windows and workspaces in GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description windowsNavigator
This GNOME Shell extension enables keyboard selection of windows and workspaces
in overlay mode, by pressing the Alt and Ctrl key respectively.

%files windowsNavigator
%license COPYING
%{_datadir}/gnome-shell/extensions/windowsNavigator*/

#------------------------------------------------------------------------------

%package workspace-indicator
Summary:	Workspace indicator for GNOME Shell
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}

%description workspace-indicator
This GNOME Shell extension add a system status menu for quickly changing
workspaces.

%files workspace-indicator
%license COPYING
%{_datadir}/gnome-shell/extensions/workspace-indicator*/

#------------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix locale strings _('...') -> _("...")
find . -regex ".*\.js$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "s/_(\x27\([^\x27]*\)\x27)/_(\x22\1\x22)/" {}'

%build
%meson \
	-Dextension_set=all \
	-Dclassic_mode=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12965 |21mr|gnome-shell-extensions-desktop-shortcuts-0.1.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define extname DesktopShortcuts@rosalab.com
%define extdir %{buildroot}%{_datadir}/gnome-shell/extensions/%{extname}

Summary:	Gnome Shell extension allows you to add shortcuts to the desktop
Name:		gnome-shell-extensions-desktop-shortcuts
Version:	0.1.2
Release:	13
Group:		Graphical desktop/GNOME
License:	GPLv3+
Url:		http://extensions.gnome.org
Source0:	https://abf.io/uxteam/%{name}-devel/archive/%{name}-devel-v%{version}.tar.gz
Patch0:		gnome-shell-extensions-desktop-shortcuts-devel-v0.1.2-gnome-shell-version.patch
# fix error "No JS module 'tweener' found in search path"
# https://askubuntu.com/questions/1286212/no-js-module-tweener-found-in-search-path-gnome-shell-extension-error-on-ubun
Patch1:		gnome-shell-extensions-desktop-shortcuts-fix.patch
Requires:	gnome-shell
BuildArch:	noarch

%description
Gnome Shell extension allows you to add shortcuts to the desktop.

%files
%{_datadir}/gnome-shell/extensions/%{extname}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-devel-v%{version}
%apply_patches

%build
# Nothing to build

%install
rm -rf %{buildroot}
mkdir -p %{extdir}
cp -r *  %{extdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12966 |21mr|gnome-shell-extensions-win-key-for-help-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gnome-shell-extensions-win-key-for-help
Version:        1.0.0
Release:        7
Summary:        Gnome Shell extension showing a list of hot keys when Win key holding down

Group:          Graphical desktop/GNOME
License:        GPLv3+
Url:		      https://github.com/belonesox/win-key-for-help-gnome-shell-extension
Source0:	    https://github.com/belonesox/win-key-for-help-gnome-shell-extension/archive/v%{version}.tar.gz
Patch0:			win-key-for-help-gnome-shell-extension-shell-version.patch
# fix error "No JS module 'tweener' found in search path"
# https://askubuntu.com/questions/1286212/no-js-module-tweener-found-in-search-path-gnome-shell-extension-error-on-ubun
Patch1:			win-key-for-help-gnome-shell-extension-fix.patch
BuildArch:      noarch
Requires:       gnome-shell
Requires:       mutter

%description
Gnome Shell extension showing a list of hot keys when Win key holding down.

%files
%{_datadir}/gnome-shell/extensions/*

%prep
%setup -qn win-key-for-help-gnome-shell-extension-%{version}
%apply_patches

%build

%install
mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/
cp -r .  %{buildroot}%{_datadir}/gnome-shell/extensions/win-key-for-help-gnome-shell-extension@belonesox.github.com 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12967 |21mr|gnome-shell-rosa-extensions-42-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A gnome-shell extensions used in ROSA GNOME ISO
Name:		gnome-shell-rosa-extensions
# Up version when major gnome-shell update
Version:	42
Release:	17
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://extensions.gnome.org
Source0:	https://extensions.gnome.org/extension-data/add-to-desktoptommimon.github.com.v10.shell-extension.zip
Source1:	https://extensions.gnome.org/extension-data/appindicatorsupportrgcjonas.gmail.com.v42.shell-extension.zip
Source2:	https://extensions.gnome.org/extension-data/backslidecodeisland.org.v26.shell-extension.zip
Source3:	https://extensions.gnome.org/extension-data/blur-my-shellaunetx.v47.shell-extension.zip
Source4:	https://extensions.gnome.org/extension-data/clipboard-indicatortudmotu.com.v45.shell-extension.zip
Source5:	https://extensions.gnome.org/extension-data/dash-to-dockmicxgx.gmail.com.v84.shell-extension.zip
Source6:	https://extensions.gnome.org/extension-data/dash-to-paneljderose9.github.com.v56.shell-extension.zip
Source7:	https://extensions.gnome.org/extension-data/dictsun.wxggmail.com.v39.shell-extension.zip
Source8:	https://extensions.gnome.org/extension-data/drive-menugnome-shell-extensions.gcampax.github.com.v51.shell-extension.zip
Source9:	https://extensions.gnome.org/extension-data/gnome-shell-Google-search-providerMrNinso.v6.shell-extension.zip
Source10:	https://extensions.gnome.org/extension-data/gnome-shell-screenshotttll.de.v68.shell-extension.zip
Source11:	https://extensions.gnome.org/extension-data/gsconnectandyholmes.github.io.v50.shell-extension.zip
Source12:	https://extensions.gnome.org/extension-data/impatiencegfxmonk.net.v22.shell-extension.zip
Source13:	https://extensions.gnome.org/extension-data/noannoyancedaase.net.v17.shell-extension.zip
Source14:	https://extensions.gnome.org/extension-data/NotificationCountercoolllsk.v7.shell-extension.zip
Source15:	https://extensions.gnome.org/extension-data/openweather-extensionjenslody.de.v121.shell-extension.zip
Source16:	https://extensions.gnome.org/extension-data/sermonrovellipaolo-gmail.com.v23.shell-extension.zip
Source17:	https://extensions.gnome.org/extension-data/switchWorkSpacesun.wxggmail.com.v36.shell-extension.zip
Source18:	https://extensions.gnome.org/extension-data/ShutdownTimerdeminder.v31.shell-extension.zip
Source19:	https://extensions.gnome.org/extension-data/sound-output-device-chooserkgshank.net.v43.shell-extension.zip
Source20:	https://extensions.gnome.org/extension-data/syspeek-gsgs.eros2.info.v12.shell-extension.zip
Source21:	https://extensions.gnome.org/extension-data/tweaks-system-menuextensions.gnome-shell.fifi.org.v18.shell-extension.zip
Source22:	https://extensions.gnome.org/extension-data/user-themegnome-shell-extensions.gcampax.github.com.v49.shell-extension.zip
Source23:	https://extensions.gnome.org/extension-data/wintilenowsci.com.v7.shell-extension.zip
Source50:	setproxylocalhost42.v2.shell-extension.zip
Source94:	telegram-desktop-update.sh
Source95:	gnome-reset.desktop
Source96:	gnome-reset
Source97:	console.apps
Source98:	pam.d
# Copy settings from system with en locale ~/.config/dconf/user
Source99:	user-en
# Copy settings from system ~/.config/dconf/user
Source100:	user
Source101:	appindicatorsupportrgcjonas.gmail.com.v41.shell-extension-po-ru-translate.sh
Source102:	backslide.po
Source103:	blur-my-shellaunetx.v44.shell-extension-po-ru-translate.sh
Source104:	clipboard-indicatortudmotu.com.v42.shell-extension-po-ru-translate.sh
Source105:	dash-to-dockmicxgx.gmail.com.v84.shell-extension-po-ru-translate.sh
Source106:	dash-to-paneljderose9.github.com.v50.shell-extension-po-ru-translate.sh
Source110:	gnome-shell-screenshotttll.de.v56.shell-extension-po-ru-translate.sh
Source111:	gsconnectandyholmes.github.io.v48.shell-extension-po-ru-translate.sh
Source115:	openweather-extensionjenslody.de.v106.shell-extension-po-ru-translate.sh
Source118:	ShutdownTimer.po
Source202:	default-wallpaper.svg
Source206:	distributor-logo.svg
Patch0:		add-to-desktoptommimon.github.com.v4.shell-extension-po-ru-translate.patch
Patch3:		blur-my-shellaunetx.v44.shell-extension-hard-ru-translate.patch
Patch5:		dash-to-dockmicxgx.gmail.com.v75.shell-extension-height-reduction.patch
Patch6:		dash-to-paneljderose9.github.com.v50.shell-extension-hard-ru-translate.patch
Patch7:		dictsun.wxggmail.com.v37.shell-extension-hard-ru-translate.patch
Patch9:		gnome-shell-Google-search-providerMrNinso.v6.shell-extension-hard-ru-translate.patch
Patch10:	gnome-shell-screenshotttll.de.v58.shell-extension-drop-open-portal.patch
Patch12:	impatiencegfxmonk.net.v20.shell-extension-hard-ru-translate.patch
Patch13:	noannoyancedaase.net.v16.shell-extension-hard-ru-translate.patch
Patch15:	openweather-extensionjenslody.de.v121.shell-extension-default-size.patch
Patch16:	sermonrovellipaolo-gmail.com.v19.shell-extension-hard-ru-translate.patch
Patch17:	switchworkspacesun.wxggmail.com.v31.shell-extension-hard-ru-translate.patch
Patch18:	ShutdownTimerdeminder.v31.shell-extension-hard-ru-translate.patch
Patch19:	sound-output-device-chooserkgshank.net.v34.shell-extension-ru-po-translate.patch
Patch20:	syspeek-gsgs.eros2.info.v6.shell-extension-hard-ru-translate.patch
Patch21:	tweaks-system-menuextensions.gnome-shell.fifi.org.v15.shell-extension-ru-po-translate.patch
Patch22:	user-themegnome-shell-extensions.gcampax.github.com.v49.shell-extension-hard-ru-translate.patch
Patch23:	wintilenowsci.com.v6.shell-extension-hard-ru-translate.patch
Patch99:	gnome-shell-rosa-extensions-metadata-json-hard-ru-translate.patch
Patch106:	dash-to-paneljderose9.github.com.v50.shell-extension-settings-size.patch
Patch109:	gnome-shell-Google-search-providerMrNinso.v6.shell-extension-fix.patch
Patch110:	gnome-shell-screenshotttll.de.v58.shell-extension-gnome41-support.patch
Patch116:	sermonrovellipaolo-gmail.com.v22.shell-extension-start-podman.patch
Patch118:	ShutdownTimerdeminder.v31.shell-extension-drop-root.patch
Patch119:	sound-output-device-chooserkgshank.net.v34.shell-extension-hard-ru-translate.patch
Patch121:	tweaks-system-menuextensions.gnome-shell.fifi.org.v11.shell-extension-drop-debug-translate.patch
Patch122:	user-themegnome-shell-extensions.gcampax.github.com.v49.shell-extension-drop-default-theme.patch
Patch123:	wintilenowsci.com.v6.shell-extension-use-system-tiling-too.patch
Patch209:	gnome-shell-Google-search-providerMrNinso.v6.shell-extension-yandex.patch
Patch219:	sound-output-device-chooserkgshank.net.v34.shell-extension-some-fixes.patch
BuildRequires:	gettext
BuildRequires:	glib2.0-common
Requires:	gnome-shell
Requires:	patch
Requires:	usermode
Requires:	zenity
Recommends:	glib-networking
# 50, contrib
Recommends:	spoofdpi
OrderWithRequires: anaconda-core
BuildArch:	noarch

%description
This package contains some GNOME Shell extensions from http://extensions.gnome.org

%files
%{_bindir}/gnome-reset
%{_datadir}/applications/gnome-reset.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/128x128/places
%attr(0755,root,root) %{_sbindir}/gnome-reset
%config(noreplace) %{_sysconfdir}/pam.d/gnome-reset
%config(noreplace) %{_sysconfdir}/security/console.apps/gnome-reset

%posttrans
# For adduser
mkdir -p %{_sysconfdir}/skel/.config/dconf
cp -f %{_datadir}/%{name}/user %{_sysconfdir}/skel/.config/dconf/user
mkdir -p %{_sysconfdir}/skel/.local/share/gnome-shell
rm -rf %{_sysconfdir}/skel/.local/share/gnome-shell/extensions
cp -rf %{_datadir}/%{name}/extensions %{_sysconfdir}/skel/.local/share/gnome-shell/
if [ -n "$LANG" ] && ! [ ${LANG:0:2} = ru ]; then
	# Revert hard localization
	cp -f %{_datadir}/%{name}/user-en %{_sysconfdir}/skel/.config/dconf/user
	pushd %{_sysconfdir}/skel/.local/share/gnome-shell/extensions
		for PATCH in $(ls /usr/share/gnome-shell-rosa-extensions |grep "hard-ru-translate.patch"); do
			patch -p0 -F3 -R <%{_datadir}/%{name}/$PATCH || :
		done
	popd
fi

# Update of rosa mainteined extensions
for i in $(ls /home); do
	[ -d /home/$i/.local/share/gnome-shell/extensions ] || continue
	id $i &>/dev/null || continue
	# Bug with telegram-desktop desktop update in dash-to-panel
	sudo su - $i -s /bin/sh -c "dbus-launch %{_datadir}/%{name}/telegram-desktop-update.sh &>/dev/null" &>/dev/null
	pushd /home/$i/.local/share/gnome-shell/extensions &>/dev/null
	# Update extensions
	for j in $(ls ./); do
		if (grep \"distrib\" $j/metadata.json |grep -q \"rosa\" || grep -q "[А-Яа-я]" $j/metadata.json) && [ -d %{_sysconfdir}/skel/.local/share/gnome-shell/extensions/$j ]; then
			rm -rf $j
			cp -r %{_sysconfdir}/skel/.local/share/gnome-shell/extensions/$j ./
		fi
	done
	# Obsoletes extensions
	for j in ShutdownTimer@neumann; do
		if [ -d $j ] && (grep \"distrib\" $j/metadata.json |grep -q \"rosa\" || grep -q "[А-Яа-я]" $j/metadata.json); then
			rm -rf $j
		fi
	done
	# New extensions
	for j in blur-my-shell@aunetx impatience@gfxmonk.net sermon@rovellipaolo-gmail.com SetProxyLocalhost@abf.io ShutdownTimer@deminder; do
		if ! [ -d $j ]; then
			cp -rf %{_sysconfdir}/skel/.local/share/gnome-shell/extensions/$j ./
		fi
	done
	popd &>/dev/null
	chown -R $i:$i /home/$i/.local/share/gnome-shell/extensions*
done

if [ -d %{_sysconfdir}/anaconda-scripts.d/livecd-init ] && [ -d %{_sysconfdir}/anaconda-scripts.d/post-install ]; then
	# For live
cat >> %{_sysconfdir}/anaconda-scripts.d/livecd-init/11-gnome-settings.sh << 'EOF'
#!/bin/bash
if [ -n "$LANGUAGE" ] && [ "${LANGUAGE:0:2}" = "ru" ]; then
	cp -f %{_datadir}/%{name}/user /home/live/.config/dconf/user
	chown live:live /home/live/.config/dconf/user
fi
if [ -n "$LANGUAGE" ] && ! [ "${LANGUAGE:0:2}" = "ru" ]; then
	# Revert hard localization
	pushd /home/live/.local/share/gnome-shell/extensions/
		for PATCH in $(ls %{_datadir}/%{name} |grep "hard-ru-translate.patch"); do
			patch -p0 -F3 -R <%{_datadir}/%{name}/$PATCH || :
		done
	popd
	chown -R live:live /home/live/.local/share/gnome-shell/extensions
	cp -f %{_datadir}/%{name}/user-en /home/live/.config/dconf/user
	chown live:live /home/live/.config/dconf/user
fi
EOF
	chmod +x %{_sysconfdir}/anaconda-scripts.d/livecd-init/11-gnome-settings.sh
	# For system install
cat >> %{_sysconfdir}/anaconda-scripts.d/post-install/11-gnome-settings.sh << 'EOF'
#!/bin/bash
# Get anaconda langs
X11_LANGS="$(localectl status |grep "X11 Layout: " |rev |cut -d" " -f1 |rev)"
for i in $(ls /home); do
	[ -d /home/$i/.local/share/gnome-shell/extensions ] || continue
	if echo $X11_LANGS |grep -q ru; then
		cp -f %{_datadir}/%{name}/user %{_sysconfdir}/skel/.config/dconf/user
		cp -f %{_datadir}/%{name}/user /home/$i/.config/dconf/user
		chown $i:$i /home/$i/.config/dconf/user
	else
		# Revert hard localization
		pushd %{_sysconfdir}/skel/.local/share/gnome-shell/extensions
			for PATCH in $(ls /usr/share/gnome-shell-rosa-extensions |grep "hard-ru-translate.patch"); do
				patch -p0 -F3 -R <%{_datadir}/%{name}/$PATCH || :
			done
		popd
		pushd /home/$i/.local/share/gnome-shell/extensions/
			for PATCH in $(ls %{_datadir}/%{name} |grep "hard-ru-translate.patch"); do
				patch -p0 -F3 -R <%{_datadir}/%{name}/$PATCH || :
			done
		popd
		chown -R $i:$i /home/$i/.local/share/gnome-shell/extensions
		cp -f %{_datadir}/%{name}/user-en %{_sysconfdir}/skel/.config/dconf/user
		cp -f %{_datadir}/%{name}/user-en /home/$i/.config/dconf/user
		chown $i:$i /home/$i/.config/dconf/user
	fi
done
EOF
	chmod +x %{_sysconfdir}/anaconda-scripts.d/post-install/11-gnome-settings.sh
fi

#----------------------------------------------------------------------------

%prep
%setup -qcT
for i in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{SOURCE8} %{SOURCE9} %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE15} %{SOURCE16} %{SOURCE17} %{SOURCE18} %{SOURCE19} %{SOURCE20} %{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE50}; do
	unzip $i -d $(unzip -c $i metadata.json |grep uuid |cut -d \" -f4)
done
%autopatch -p0

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}/extensions/
cp -r * %{buildroot}%{_datadir}/%{name}/extensions/
# For revert -hard-ru-translate.patch on non-ru locales and settings files
cp %{PATCH3} %{PATCH6} %{PATCH7} %{PATCH9} %{PATCH12} %{PATCH13} %{PATCH16} %{PATCH17} %{PATCH18} %{PATCH20} %{PATCH22} %{PATCH23} %{PATCH99} %{PATCH119} %{SOURCE99} %{SOURCE100} %{buildroot}%{_datadir}/%{name}

mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
cp %{SOURCE95} %{buildroot}%{_datadir}/applications
cp %{SOURCE96} %{buildroot}%{_sbindir}
ln -s consolehelper %{buildroot}%{_bindir}/gnome-reset
install -m 0644 %{SOURCE97} %{buildroot}%{_sysconfdir}/security/console.apps/gnome-reset
install -m 0644 %{SOURCE98} %{buildroot}%{_sysconfdir}/pam.d/gnome-reset

find %{buildroot} -type f -exec chmod 0644 {} \;
# 0
pushd %{buildroot}%{_datadir}/%{name}/extensions/add-to-desktop@tommimon.github.com/locale/ru/LC_MESSAGES
	msgfmt add-to-desktop.po -o add-to-desktop.mo
popd
# 1
pushd %{buildroot}%{_datadir}/%{name}/extensions/appindicatorsupport@rgcjonas.gmail.com/locale/ru/LC_MESSAGES
	bash -x %{SOURCE101}
popd
# 2
mkdir -p %{buildroot}%{_datadir}/%{name}/extensions/backslide@codeisland.org/locale/ru/LC_MESSAGES
pushd %{buildroot}%{_datadir}/%{name}/extensions/backslide@codeisland.org/locale/ru/LC_MESSAGES
	cp %{SOURCE102} ./
	msgfmt backslide.po -o backslide.mo
	rm -f backslide.po
popd
cp -f %{SOURCE202} %{buildroot}%{_datadir}/%{name}/extensions/backslide@codeisland.org/
# 3
pushd %{buildroot}%{_datadir}/%{name}/extensions/blur-my-shell@aunetx/locale/ru/LC_MESSAGES
	bash -x %{SOURCE103}
popd
# 4
pushd %{buildroot}%{_datadir}/%{name}/extensions/clipboard-indicator@tudmotu.com/locale/ru/LC_MESSAGES
	bash -x %{SOURCE104}
popd
# 5
pushd %{buildroot}%{_datadir}/%{name}/extensions/dash-to-dock@micxgx.gmail.com/locale/ru/LC_MESSAGES
	bash -x %{SOURCE105}
popd
# 6
pushd %{buildroot}%{_datadir}/%{name}/extensions/dash-to-panel@jderose9.github.com/locale/ru/LC_MESSAGES
	bash -x %{SOURCE106}
popd
mkdir -p %{buildroot}%{_iconsdir}/hicolor/128x128/places
cp %{SOURCE206} %{buildroot}%{_iconsdir}/hicolor/128x128/places/rosa-logo.svg
sed -i "s/view.*-app.*-grid-symbolic/rosa-logo/" %{buildroot}%{_datadir}/%{name}/extensions/dash-to-panel@jderose9.github.com/{appIcons,prefs}.js
cp %{SOURCE94} %{buildroot}%{_datadir}/%{name}/telegram-desktop-update.sh
chmod +x %{buildroot}%{_datadir}/%{name}/telegram-desktop-update.sh
# 7
chmod +x %{buildroot}%{_datadir}/%{name}/extensions/dict@sun.wxg@gmail.com/dict.js
# 10
pushd %{buildroot}%{_datadir}/%{name}/extensions/gnome-shell-screenshot@ttll.de/locale/ru/LC_MESSAGES
	bash -x %{SOURCE110}
popd
# 11
chmod +x %{buildroot}%{_datadir}/%{name}/extensions/gsconnect@andyholmes.github.io/gsconnect-preferences
chmod +x %{buildroot}%{_datadir}/%{name}/extensions/gsconnect@andyholmes.github.io/service/daemon.js
chmod +x %{buildroot}%{_datadir}/%{name}/extensions/gsconnect@andyholmes.github.io/service/nativeMessagingHost.js
pushd %{buildroot}%{_datadir}/%{name}/extensions/gsconnect@andyholmes.github.io/locale/ru/LC_MESSAGES
	bash -x %{SOURCE111}
popd
# 15
pushd %{buildroot}%{_datadir}/%{name}/extensions/openweather-extension@jenslody.de/locale/ru/LC_MESSAGES
	bash -x %{SOURCE115}
popd
# 18
pushd %{buildroot}%{_datadir}/%{name}/extensions/ShutdownTimer@deminder/locale/ru/LC_MESSAGES
	cp %{SOURCE118} ./
	rm -f ShutdownTimer.mo
	msgfmt ShutdownTimer.po -o ShutdownTimer.mo
	rm -f ShutdownTimer.po
popd
# 19
chmod +x %{buildroot}%{_datadir}/%{name}/extensions/sound-output-device-chooser@kgshank.net/utils/pa_helper.py
sed -i "s/^#!\x2fusr\x2fbin\x2fpython$/&3/" %{buildroot}%{_datadir}/%{name}/extensions/sound-output-device-chooser@kgshank.net/utils/pa_helper.py
pushd %{buildroot}%{_datadir}/%{name}/extensions/sound-output-device-chooser@kgshank.net/locale/ru/LC_MESSAGES
	msgfmt sound-output-device-chooser.po -o sound-output-device-chooser.mo
popd
# 21
pushd %{buildroot}%{_datadir}/%{name}/extensions/tweaks-system-menu@extensions.gnome-shell.fifi.org/locale/ru/LC_MESSAGES
	msgfmt tweaks-system-menu.po -o tweaks-system-menu.mo
popd

# Set supported version of gnome-shell
find %{buildroot} -type f -name metadata.json -exec sed -i -e "/shell-version/,/]/d" -e "s/\"name\":.*/&\n  \"shell-version\": \[\"%{version}\"\],/" {} \;
# Set distrib key for updates script
find %{buildroot} -type f -name metadata.json -exec sed -i "s/.*\"version\":.*/  \"distrib\": \"rosa\",\n&/" {} \;

find %{buildroot} -type d -name schemas -exec glib-compile-schemas {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12968 |21mr|gnome-shell-rosa-hotkeys-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gnome-shell-rosa-hotkeys
Version:        1.0.0
Release:        6
Summary:        Windows-like desktop hotkeys for GNOME Shell

Group:          Graphical desktop/GNOME
License:        GPLv3+
Url:				 https://github.com/belonesox/win-hotkeys-gnome-shell-extension
Source0:	       https://github.com/belonesox/win-hotkeys-gnome-shell-extension/archive/v%{version}.tar.gz
Patch0:		win-hotkeys-gnome-shell-extension-shell-version.patch
# fix error "No JS module 'tweener' found in search path"
# https://askubuntu.com/questions/1286212/no-js-module-tweener-found-in-search-path-gnome-shell-extension-error-on-ubun
Patch1:		win-hotkeys-gnome-shell-extension-fix.patch
BuildArch:      noarch
Requires:       gnome-shell


%description
This package contains GNOME Shell extension
implementing familiar (Windows-like) desktop hotkeys.

%prep
%setup -qn win-hotkeys-gnome-shell-extension-%{version}
%apply_patches


%build

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_datadir}/gnome-shell/extensions/
cp -r .  %{buildroot}%{_datadir}/gnome-shell/extensions/win-hotkeys-gnome-shell-extension@belonesox.github.com 

%files
%defattr(-,root,root,-)
%{_datadir}/gnome-shell/extensions/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12969 |21mr|gnome-shell-theme-elementary-3.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global src_name   gnome_shell___elementary_by_half_left-d45raik
%global theme      Elementary
%global theme_dir  %{theme}-3.4

Name:       gnome-shell-theme-elementary
Version:    3.4
Release:    6
Summary:    The %{theme} gnome-shell theme
Group:      Graphical desktop/GNOME

License:    GPLv3 and LGPLv2
URL:        http://half-left.deviantart.com/art/GNOME-Shell-Elementary-251536124
Source0:    http://www.deviantart.com/download/251536124/%{src_name}.zip

Patch0:     set-bold-font-in-panel.patch

Requires:   gnome-shell-extensions-user-theme
Requires:   gnome-shell >= 3.4 

BuildArch:  noarch


%description
The %{theme} gnome-shell theme created by half_left


%prep
%setup -q -c
%patch0 -p0


%build
# nothing to build


%install
mkdir -p -m755 %{buildroot}/%{_datadir}/themes/%{theme}/gnome-shell

# put the theme files into some data dir
cp -pr %{theme_dir}/gnome-shell/* \
     %{buildroot}%{_datadir}/themes/%{theme}/gnome-shell

# delete backup files (*~)
find %{buildroot} -name *~ -type f -exec rm -f '{}' \;

# Remove LICENSE file from BUILDROOT
find %{buildroot} -name LICENSE -type f -exec rm -f '{}' \;


%files
%doc %{theme_dir}/gnome-shell/LICENSE
%dir %{_datadir}/themes/%{theme}
%{_datadir}/themes/%{theme}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12970 |21mr|gnome-shell-theme-korora-0.5-2.20150716git939ecf
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global theme    Korora
%global daterev 20150716git939ecf

Summary:	%{theme} theme for Gnome Shell
Name:		gnome-shell-theme-korora
Version:	0.5
Release:	2.%{daterev}

Group:		Graphical desktop/Other
License:	GPLv2
URL:		https://github.com/kororaproject/kp-gnome-shell-theme-korora
Source0:	%{name}-%{version}-%{daterev}.tar.xz
# set 11pt for main font
Patch0:		gnome-shell-theme-korora-0.5-change-font-size.patch
# black background for dock
Patch1:		gnome-shell-theme-korora-0.5-black-background-for-dock.patch

BuildArch:	noarch

%description
The %{theme} theme for GNOME Shell.

%prep
%setup -q
%apply_patches

%install
mkdir -p -m755 %{buildroot}%{_datadir}/themes/%{theme}/gnome-shell
cp -pr gnome-shell/* %{buildroot}%{_datadir}/themes/%{theme}/gnome-shell

%files
%defattr(-,root,root)
%dir %{_datadir}/themes/%{theme}
%{_datadir}/themes/%{theme}/gnome-shell/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12971 |21mr|gnome-sound-recorder-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	A simple, modern sound recorder
Name:		gnome-sound-recorder
Version:	42.0
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-sound-recorder
Source0:	https://download.gnome.org/sources/gnome-sound-recorder/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-sound-recorder-40.0_ru.tar.gz
Patch0:		gnome-sound-recorder-42.0-localestring.patch
BuildRequires:	appstream-util
BuildRequires:	gsettings-desktop-schemas
BuildRequires:	gstreamer1.0-flac
BuildRequires:	gstreamer1.0-tools
BuildRequires:	gstreamer1.0-plugins-bad
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	gstreamer1.0-pulse
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-player-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libhandy-1)
Requires:	gsettings-desktop-schemas
Requires:	gstreamer1.0-flac
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-pulse
BuildArch:	noarch

%description
A simple, modern sound recorder for the GNOME desktop.

%files -f org.gnome.SoundRecorder.lang
%doc AUTHORS README.md NEWS
%{_datadir}/metainfo/org.gnome.SoundRecorder.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.SoundRecorder.desktop
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/org.gnome.SoundRecorder/
%{_iconsdir}/*/*/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang org.gnome.SoundRecorder

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12972 |21mr|gnome-sudoku-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Sudoku game
Name:		gnome-sudoku
Version:	42.0
Release:	2
Epoch:		1
License:	GPLv2+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/gnome-sudoku
Source0:	https://download.gnome.org/sources/gnome-sudoku/%{url_ver}/%{name}-%{version}.tar.xz
Source100:	gnome-sudoku.rpmlintrc
Patch0:		gnome-sudoku-3.38.0-udefine-reference-qqwing.patch
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(qqwing)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(pygobject-3.0)
Requires:	gtk+3.0
# fix http://bugs.rosalinux.ru/show_bug.cgi?id=2826
Requires:	python3-gi-cairo

%description
GNOME version of the popular Sudoku Japanese logic game.

%files -f %{name}.lang
%doc COPYING NEWS
%{_bindir}/gnome-sudoku
%{_datadir}/applications/org.gnome.Sudoku.desktop
%{_datadir}/dbus-1/services/org.gnome.Sudoku.service
%{_datadir}/glib-2.0/schemas/org.gnome.Sudoku.gschema.xml
%{_datadir}/icons/hicolor/*/apps/org.gnome.Sudoku*.*
%{_datadir}/metainfo/org.gnome.Sudoku.appdata.xml
%{_mandir}/man6/gnome-sudoku.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12973 |21mr|gnome-system-monitor-42.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Simple process monitor
Name:		gnome-system-monitor
Version:	42.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-system-monitor
Source0:	https://download.gnome.org/sources/gnome-system-monitor/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-system-monitor-42.0-ru-po-localization.patch
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(giomm-2.4)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glibmm-2.68)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-icon-theme)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	polkit-agent
Requires:	lsb-release

%description
Gnome-system-monitor is a simple process and system monitor.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_appdatadir}/gnome-system-monitor.appdata.xml
%{_bindir}/gnome-system-monitor
%{_datadir}/applications/gnome-system-monitor.desktop
%{_datadir}/applications/gnome-system-monitor-kde.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.gnome-system-monitor.gschema.xml
%{_datadir}/gnome-system-monitor/gsm.gresource
%{_datadir}/polkit-1/actions/org.gnome.gnome-system-monitor.policy
%{_iconsdir}/hicolor/*/*/*.svg
%{_libexecdir}/gnome-system-monitor/gsm-*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12974 |21mr|gnome-taquin-3.38.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Sliding-block puzzle game
Name:		gnome-taquin
Version:	3.38.1
Release:	9
License:	GPLv3+ and GPLv2+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/gnome-taquin
Source0:	https://download.gnome.org/sources/gnome-taquin/%{url_ver}/%{name}-%{version}.tar.xz
# Drop it
Patch0:		gnome-taquin-3.38.1-drop-not-allowed.patch
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gsound)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(librsvg-2.0)

%description
Taquin is a computer version of the 15-puzzle and other sliding puzzles.
The object of Taquin is to move tiles so that they reach their places, 
either indicated with numbers, or with parts of a great image.

%files -f %{name}.lang
%doc AUTHORS NEWS COPYING COPYING.sounds COPYING.themes
%{_appdatadir}/org.gnome.Taquin.appdata.xml
%{_bindir}/gnome-taquin
%{_datadir}/applications/org.gnome.Taquin.desktop
%{_datadir}/dbus-1/services/org.gnome.Taquin.service
%{_datadir}/glib-2.0/schemas/org.gnome.Taquin.gschema.xml
%{_datadir}/gnome-taquin
%{_iconsdir}/hicolor/*/apps/org.gnome.Taquin*.svg
%{_mandir}/man6/gnome-taquin.6.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12975 |21mr|gnome-terminal-3.44.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME terminal
Name:		gnome-terminal
Version:	3.44.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-terminal
Source0:	https://download.gnome.org/sources/gnome-terminal/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	appdata-tools
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl
BuildRequires:	gnome-shell
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(x11)

%description
This is the GNOME terminal emulator application.

%files -f %{name}.lang
%doc ChangeLog README.md
%license COPYING COPYING.GFDL
%{_appdatadir}/*.xml
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.gnome.Terminal.service
%{_datadir}/glib-2.0/schemas/org.gnome.Terminal.gschema.xml
%{_datadir}/gnome-shell/search-providers/%{name}-search-provider.ini
%{_iconsdir}/hicolor/*/apps/org.gnome.Terminal*.svg
%{_libdir}/%{name}/gschemas.compiled
%{_libdir}/nautilus/extensions-3.0/libterminal-nautilus.so
%{_libexecdir}/%{name}*
%{_mandir}/man1/%{name}.1.*
%{_userunitdir}/%{name}-server.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12976 |21mr|gnome-tetravex-3.38.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Tetravex game
Name:		gnome-tetravex
Version:	3.38.2
Release:	12
License:	GPLv2+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/gnome-tetravex
Source0:	https://download.gnome.org/sources/gnome-tetravex/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:         fix-new-meson-versions-build.patch
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(librsvg-2.0)
Provides:	gnotravex = %{EVRD}

%description
A puzzle game where you have to match a grid of tiles together. The skill
level ranges from the simple two by two up to the seriously mind-bending six
by six grid.

%files -f %{name}.lang
%doc COPYING
%{_appdatadir}/org.gnome.Tetravex.appdata.xml
%{_bindir}/gnome-tetravex*
%{_datadir}/applications/org.gnome.Tetravex.desktop
%{_datadir}/dbus-1/services/org.gnome.Tetravex.service
%{_datadir}/glib-2.0/schemas/org.gnome.Tetravex*.gschema.xml
%{_iconsdir}/hicolor/*/*/*.svg
%{_mandir}/man6/gnome-tetravex*.6*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%meson -Dbuild_cli=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12977 |21mr|gnome-themes-standard-3.27.90-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Standard themes for GNOME applications
Name:		gnome-themes-standard
Version:	3.27.90
Release:	13
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-themes-standard
Source0:	https://download.gnome.org/sources/gnome-themes-standard/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	settings.ini
Source2:	gtkrc
BuildRequires:	/usr/bin/gtk-update-icon-cache
BuildRequires:	intltool
BuildRequires:	libxml2-utils
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(librsvg-2.0)
Requires:	gnome-icon-theme
Requires:	abattis-cantarell-fonts
Requires:	adwaita-icon-theme
Requires:	adwaita-cursor-theme
Requires:	adwaita-gtk2-theme = %{EVRD}
Requires:	adwaita-gtk3-theme = %{EVRD}
Requires(post,postun):	/usr/bin/gtk-update-icon-cache
OrderWithRequires: /usr/bin/gtk-update-icon-cache
%rename gnome-themes

%description
The gnome-themes-standard package contains the standard theme for the GNOME
desktop, which provides default appearance for cursors, desktop background,
window borders and GTK+ applications.

%files
%doc NEWS
# Background and WM
%{_datadir}/themes/Adwaita
%{_datadir}/themes/Adwaita-dark
%exclude %{_datadir}/themes/Adwaita/gtk-2.0
%exclude %{_datadir}/themes/Adwaita-dark/gtk-2.0
# A11y themes
%{_datadir}/icons/HighContrast
%{_datadir}/themes/HighContrast

%post
touch --no-create %{_datadir}/icons/Adwaita &>/dev/null || :
for t in Adwaita HighContrast; do
    touch --no-create %{_datadir}/icons/$t &>/dev/null
    gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || :
done

%postun
if [ $1 -eq 0 ] ; then
    for t in Adwaita HighContrast; do
        touch --no-create %{_datadir}/icons/$t &>/dev/null
        gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || :
    done
fi

%posttrans
for t in Adwaita HighContrast; do
  gtk-update-icon-cache %{_datadir}/icons/$t &>/dev/null || :
done

#----------------------------------------------------------------------------

%package -n adwaita-gtk2-theme
Summary:	Adwaita gtk2 theme
Group:		Graphical desktop/GNOME

%description -n adwaita-gtk2-theme
The adwaita-gtk2-theme package contains a gtk2 theme for presenting widgets
with a GNOME look and feel.

%files -n adwaita-gtk2-theme
# gtk2 Theme
%{_datadir}/themes/Adwaita/gtk-2.0
%{_datadir}/themes/Adwaita-dark/gtk-2.0
%{_libdir}/gtk-2.0/2.10.0/engines/libadwaita.so
# Default gtk2 settings
%{_sysconfdir}/gtk-2.0/gtkrc

#----------------------------------------------------------------------------

%package -n adwaita-gtk3-theme
Summary:	Adwaita gtk3 theme
Group:		Graphical desktop/GNOME

%description -n adwaita-gtk3-theme
The adwaita-gtk3-theme package contains a gtk3 theme for rendering widgets
with a GNOME look and feel.

%files -n adwaita-gtk3-theme
# Default gtk3 settings
%{_sysconfdir}/gtk-3.0/settings.ini

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# we don't want these
rm -rf %{buildroot}%{_libdir}/gtk-3.0/3.0.0/theming-engines/libadwaita.la

install -Dpm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/gtk-3.0/settings.ini
install -Dpm644 %{SOURCE2} %{buildroot}%{_sysconfdir}/gtk-2.0/gtkrc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12978 |21mr|gnome-tweak-tool-40.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gnome-tweaks

%define url_ver %(echo %{version} | cut -d "." -f1)

Summary:	A tool to customize advanced GNOME 3 options
Name:		gnome-tweak-tool
Version:	40.10
Release:	2
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-tweaks
Source0:	https://download.gnome.org/sources/gnome-tweaks/%{url_ver}/%{oname}-%{version}.tar.xz
Source1:	gnome-tweaks-40.0_ru.tar.gz
Patch0:		gnome-tweaks-3.28.1-categories-for-g-c-c.patch
Patch1:		gnome-tweak-tool-3.26.4-autostart.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
Requires:	gnome-shell
Requires:	python3-gi
Requires:	typelib(Handy)
Requires:	typelib(Notify)
Provides:	%{oname} = %{EVRD}
BuildArch:	noarch

%description
GNOME Tweak Tool is an application for changing the advanced settings
of GNOME 3.

Features:
* Install and switch gnome-shell themes
* Switch GTK+ themes
* Switch icon themes
* Change
  - The user-interface and title bar fonts
  - Icons in menus and buttons
  - Behavior on laptop lid close
  - Shell font size
  - File manager desktop icons
  - Title bar click action
  - Shell clock to show date
  - Font hinting
  - Font anti-aliasing

%files -f %{oname}.lang
%doc AUTHORS NEWS README.md
%license LICENSES/CC0-1.0 LICENSES/GPL-3.0
%{_appdatadir}/org.gnome.tweaks.appdata.xml
%{_bindir}/%{oname}
%{_datadir}/applications/org.gnome.tweaks.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.tweaks.gschema.xml
%{_datadir}/%{oname}
%{_datadir}/icons/*/*/*/*
%{_libexecdir}/gnome-tweak-tool-lid-inhibitor
%{py3_puresitedir}/gtweak

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12979 |21mr|gnome-user-docs-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME User Documentation
Name:		gnome-user-docs
Version:	42.0
Release:	2
License:	GFDL
Group:		Documentation
Url:		https://download.gnome.org/sources/gnome-user-docs
Source0:	https://download.gnome.org/sources/gnome-user-docs/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gettext
BuildRequires:	itstool
BuildRequires:	yelp-tools
BuildArch:	noarch

%description
This package contains the GNOME Glossary, Introduction to GNOME, and a Unix
Primer.

%files -f %{name}.lang
%doc README NEWS

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12980 |21mr|gnome-user-share-3.34.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME user file sharing
Name:		gnome-user-share
Version:	3.34.0
Release:	11
License:	GPLv2+
Group:		System/Servers
Url:		https://download.gnome.org/sources/gnome-user-share
Source0:	https://download.gnome.org/sources/gnome-user-share/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnome-user-share-3.34.0-meson-positional-arguments.patch
BuildRequires:	gnome-doc-utils
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-bluetooth-ui-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(systemd)
Requires:	obex-data-server
Recommends:	apache
Recommends:	apache-mod_dnssd

%description
This program enables user to share directories through Webdav or Bluetooth 
(over ObexFTP).

%files -f %{name}.lang
%doc COPYING README NEWS
%{_datadir}/applications/gnome-user-share-webdav.desktop
%{_datadir}/gnome-user-share
%{_datadir}/GConf/gsettings/gnome-user-share.convert
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.file-sharing.gschema.xml
%{_libdir}/nautilus/extensions-3.0/libnautilus-share-extension.so
%{_libexecdir}/gnome-user-share-webdav
%{_userunitdir}/gnome-user-share-webdav.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dnautilus_extension=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12981 |21mr|gnome-vfs2-2.24.4-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%define pkgname gnome-vfs
%define api 2
%define major 0
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

%define _disable_ld_no_undefined 1

Summary:	GNOME virtual file-system libraries
Name:		%{pkgname}%{api}
Version:	2.24.4
Release:	20
License:	GPLv2+ and LGPLv2.1+
Group:		Graphical desktop/GNOME
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
Patch0:		gnome-vfs-2.24.4-docbook-dtd45.patch
# (gw) 2.6.0-1mdk set default web browser
Patch5:		gnome-vfs-2.8.2-webclient.patch
# (fc) 2.8.2-1mdk handle about: url (Fedora)
Patch8:		gnome-vfs-2.7.90-schema_about_for_upstream.patch
# (fc) 2.8.3-5mdk support pamconsole mount option (Fedora)
Patch10:	gnome-vfs-2.24.1-console-mount-opt.patch
# (fc) 2.17.91-2mdv replace references to gnomemeeting with ekiga
Patch11:	gnome-vfs-2.17.91-fixh323.patch
# (fc) 2.17.91-3mdv allow OnlyShowIn=KDE .desktop to be used when running under KDE (Mdv bug #26999)
Patch12:	gnome-vfs-2.17.91-onlyshow.patch
# (fc) 2.18.0.1-2mdv fix crash when fstab is being edited (Ubuntu) (GNOME bug #300547)
Patch13:	gnome-vfs-2.20.0-fstab-edit-crash.patch
# (fc) 2.18.0.1-2mdv fix uuid and label mount point duplication (initial idea from Ubuntu bug #57701) (Mdv bug #32792)
Patch14:	gnome-vfs-2.20.0-uuid-label-mount.patch
# (fc) 2.18.0.1-2mdv resolve mount point fstab symlinks (Ubuntu)
Patch15:	gnome-vfs-2.20.0-resolve-fstab-symlinks.patch
# (fc) 2.24.2-3mdv add default media player schema (GNOME bug #435653) (Fedora)
Patch16:	gnome-vfs-2.24.2-default-media-application-schema.patch
# (fc) 2.24.2-3mdv ensure mailto evolution command is a mailer (RH bug #197868) (Fedora)
Patch17:	gnome-vfs-2.15.91-mailto-command.patch
# (fc) 2.24.2-3mdv fix dbus error (Fedora bug #486286) (Fedora)
Patch18:	gnome-vfs-2.24.xx-utf8-mounts.patch
# (fc) CVE-2009-2473 gnome-vfs2 embedded neon: billion laughs DoS attacck (Fedora)
Patch19:	gnome-vfs-2.24.3-CVE-2009-2473.patch
Patch20:	gnome-vfs-2.24.4-openssl11.patch

BuildRequires:	docbook-dtd45-xml
BuildRequires:	gawk
BuildRequires:	GConf2
BuildRequires:	gnome-mime-data
#BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	avahi-common-devel
BuildRequires:	acl-devel
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0) >= 1.1.1
BuildRequires:	pkgconfig(glib-2.0) >= 2.9.3
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	perl-XML-Parser
Requires:	%{libname} = %{EVRD}
Requires:	dbus-x11
Requires:	shared-mime-info
# needed for www-browser
Requires:	desktop-common-data
Requires:	gnome-mime-data >= 2.0.0
Requires(post,preun):	GConf2 >= 1.1.1
Conflicts:	%{_lib}gnome-vfs2_0 < 2.24.4-5

%description
The GNOME Virtual File System provides an abstraction to common file
system operations like reading, writing and copying files, listing
directories and so on.  It is similar in spirit to the Midnight
Commander's VFS (as it uses a similar URI scheme) but it is designed
from the ground up to be extensible and to be usable from any
application.

%files -n %{name} -f %{pkgname}-2.0.lang
%doc AUTHORS NEWS README
%config(noreplace) %{_sysconfdir}/%{pkgname}-*
%config(noreplace) %{_sysconfdir}/gconf/schemas/*
%{_bindir}/*
%{_datadir}/dbus-1/services/*.service
%dir %{_libdir}/%{pkgname}-2.0
%dir %{_libdir}/%{pkgname}-2.0/modules
%{_libdir}/%{pkgname}-2.0/modules/*.so
%{_libexecdir}/gnome-vfs-daemon

%define schemas desktop_default_applications desktop_gnome_url_handlers system_dns_sd system_http_proxy system_smb

%preun
%preun_uninstall_gconf_schemas %{schemas}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNOME virtual file-system shared library
Group:		System/Libraries

%description -n %{libname}
The GNOME Virtual File System provides an abstraction to common file
system operations like reading, writing and copying files, listing
directories and so on.

This package contains the main GNOME VFS libraries, which is required
by the basic GNOME 2 system.

%files -n %{libname}
%{_libdir}/libgnomevfs-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for gnome-vfs
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The GNOME Virtual File System provides an abstraction to common file
system operations like reading, writing and copying files, listing
directories and so on.

This package includes libraries and header files for developing
GNOME VFS applications.

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/gnome-vfs*2.0/*
%{_libdir}/*.so
%{_libdir}/%{pkgname}-*/include
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}
%apply_patches

# this is a hack for glib2.0 >= 2.31.0
sed -i -e 's/-DG_DISABLE_DEPRECATED//g' \
	./daemon/Makefile.* \
	./libgnomevfs/Makefile.*

%build
%configure \
	--enable-gtk-doc=no \
%if %{with selinux}
	--enable-selinux \
%else
	--disable-selinux \
%endif
	--disable-hal \
	--disable-static

%make

%install
%makeinstall_std

# we ship our own files in drakconf and drakwizard
rm -f %{buildroot}%{_sysconfdir}/gnome-vfs-2.0/vfolders/{system,server}-settings.vfolder-info

# don't package these
rm -f %{buildroot}%{_libdir}/%{pkgname}-*/modules/*a
find %{buildroot}%{_libdir} -name '*.la' -type f -delete -print

%find_lang %{pkgname}-2.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12982 |21mr|gnome-vfsmm2.6-2.26.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define api 2.6

%define pkgname gnome-vfsmm
%define libname %mklibname %{pkgname} %{api} %{major}
%define devname %mklibname %{pkgname} %{api} -d

%define libname_orig %mklibname %{pkgname} %{api}

Summary:	A C++ interface for GNOME VFS library
Name:		%{pkgname}%{api}
Version:	2.26.0
Release:	14
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gtkmm.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gnome-vfs-2.0)

%description
This package provides a C++ interface for gnome-vfs (the GNOME
Virtual File System), which provides an abstraction to common file
system operations like reading, writing and copying files, listing
directories and so on.  It is a subpackage of the gnomemm project,
which provides a C++ interface for GNOME libraries.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C++ interface for GNOME VFS library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Provides:	%{libname_orig} = %{EVRD}

%description -n %{libname}
This package provides a C++ interface for gnome-vfs (the GNOME
Virtual File System), which provides an abstraction to common file
system operations like reading, writing and copying files, listing
directories and so on.  It is a subpackage of the gnomemm project,
which provides a C++ interface for GNOME libraries.

%files -n %{libname}
%doc COPYING
%{_libdir}/libgnomevfsmm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of GNOME VFS C++ wrapper
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(glibmm-2.4)
Requires:	pkgconfig(gnome-vfs-2.0)
Provides:	%{name}-devel = %{EVRD}
Provides:	%{libname_orig}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and various development files needed,
when compiling or developing programs which want C++ wrapper of GNOME
VFS library.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_includedir}/*
%{_libdir}/%{pkgname}-%{api}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{pkgname} library
Group:		Documentation

%description doc
This package provides API documentation of %{pkgname} library.

%files doc
%doc docs/reference/html

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static
%make

### Build doc
pushd docs/reference
  perl -pi -e 's/^(HAVE_DOT.*=) YES/$1 NO/' Doxyfile
  make all
popd

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12983 |21mr|gnome-video-effects-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Collection of GStreamer video effects
Name:		gnome-video-effects
Version:	0.5.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://live.gnome.org/GnomeVideoEffects
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
Buildarch:	noarch

%description
A collection of GStreamer effects to be used in different GNOME Modules.

%files
%doc README
%{_datadir}/gnome-video-effects

#----------------------------------------------------------------------------

%package devel
Summary:	Collection of GStreamer video effects
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
A collection of GStreamer effects to be used in different GNOME Modules.

%files devel
%doc AUTHORS COPYING NEWS
%{_datadir}/pkgconfig/gnome-video-effects.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12984 |21mr|gnome-weather-42.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	A weather application for GNOME
Name:		gnome-weather
Version:	42.0
Release:	4
License:	GPLv2+ and LGPLv2+ and MIT and CC-BY and CC-BY-SA
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gnome-weather
Source0:	https://download.gnome.org/sources/gnome-weather/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	gnome-weather-40.0_ru.tar.gz
Source100:	gnome-weather.rpmlintrc
BuildRequires:	appstream-util
BuildRequires:	gjs
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gweather4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libgeoclue-2.0)
BuildRequires:	pkgconfig(libhandy-1)
Requires:	gjs
Requires:	glib-networking
Requires:	typelib(cairo)
Requires:	typelib(Geoclue)
Requires:	typelib(GIRepository)
Requires:	typelib(GLib)
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(GWeather)
BuildArch:	noarch

%description
gnome-weather is a weather application for GNOME

%files -f org.gnome.Weather.lang
%doc NEWS data/CREDITS README.md
%license COPYING.md
%{_appdatadir}/*.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Weather.desktop
%{_datadir}/dbus-1/services/org.gnome.Weather.BackgroundService.service
%{_datadir}/dbus-1/services/org.gnome.Weather.service
%{_datadir}/glib-2.0/schemas/org.gnome.Weather.gschema.xml
%{_datadir}/gnome-shell/search-providers/org.gnome.Weather.search-provider.ini
%{_datadir}/org.gnome.Weather/*
%{_iconsdir}/*/*/*/*

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%meson
%meson_build

%install
%meson_install

%find_lang org.gnome.Weather --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12985 |21mr|gnucash-4.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_disable_ld_no_undefined 1

%define	major 0
%define	qof_major 1
%define	devname %mklibname %{name} -d

%if %{_use_internal_dependency_generator}
%global __requires_exclude devel\\(libgncmod(.*)\\)|libgnc.*so$
%endif

Summary:	Application to keep track of your finances
Name:		gnucash
Version:	4.13
Release:	1
License:	GPLv2+
Group:		Office
Url:		http://www.gnucash.org/
Source0:	http://downloads.sourceforge.net/gnucash/%{name}-%{version}.tar.bz2
# There is no doc tarball for 2.6.21: use the 2.6.20 one
Source4:	http://downloads.sourceforge.net/gnucash/%{name}-docs-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ctags
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	intltool
BuildRequires:	libdbi-drivers-dbd-sqlite3
BuildRequires:	perl
BuildRequires:	rarian
BuildRequires:	slib
BuildRequires:	swig
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	gettext-devel
BuildRequires:	gmock-devel
BuildRequires:	gtest-devel
BuildRequires:	pkgconfig(dbi)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(guile-3.0)
BuildRequires:	pkgconfig(ktoblzcheck)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgoffice-0.10)
BuildRequires:	pkgconfig(libofx)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(x11)
Requires:	guile-runtime
Requires:	libdbi-drivers-dbd-sqlite3
Requires:	slib
Requires:	yelp
Recommends:	perl-Finance-Quote
%rename gnucash-sql
ExclusiveArch:	%{ix86} x86_64

%description
GnuCash is a personal finance manager. A check-book like register GUI allows
you to enter and track bank accounts, stocks, income and even currency trades.
The interface is designed to be simple and easy to use, but is backed with
double-entry accounting principles to ensure balanced books.

%files -f %{name}.lang
%{_bindir}/gnc-fq-check
%{_bindir}/gnc-fq-dump
%{_bindir}/gnc-fq-helper
%{_bindir}/gnucash-cli
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/gschemas.compiled
%{_datadir}/glib-2.0/schemas/org.gnucash.GnuCash.dialogs.flicker.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.deprecated.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.business.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.checkprinting.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.commodities.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.export.csv.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.import.csv.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.import.generic.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.import.qif.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.reconcile.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.sxs.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.totd.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.general.finance-quote.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.history.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.warnings.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.window.pages.account.tree.gschema.xml
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.window.pages.gschema.xml
%{_datadir}/gnucash/chartjs/*
%{_datadir}/gnucash/icons/hicolor/*/actions/*.png
%{_datadir}/gnucash/python/*
%{_datadir}/guile/site/3.0/gnucash/*
%{_datadir}/metainfo/gnucash.appdata.xml
%{_datadir}/%{name}/accounts
%{_datadir}/%{name}/checks
%{_datadir}/%{name}/gtkbuilder
%{_datadir}/%{name}/pixmaps
%{_datadir}/%{name}/pref_transformations.xml
%{_datadir}/%{name}/tip_of_the_day.list
%{_datadir}/%{name}/ui
%{_defaultdocdir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_libdir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_libdir}/guile/3.0/site-ccache/gnucash/*
%{_libdir}/%{name}/*.so*
%{_mandir}/*/*
%{python3_sitearch}/gnucash/*

#----------------------------------------------------------------------------

%package ofx
Summary:	Enables OFX importing in GnuCash
Group:		Office
Requires:	%{name} = %{EVRD}

%description ofx
This package adds OFX file import support to the base
GnuCash package. Install this package if you want to
import OFX files.

%files ofx
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.import.ofx.gschema.xml
%{_datadir}/%{name}/ui/gnc-plugin-ofx-ui.xml
%{_libdir}/%{name}/libgncmod-ofx*

#----------------------------------------------------------------------------

%package hbci
Summary:	Enables HBCI importing in GnuCash
Group:		Office
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(aqbanking)
# only require the wizard, it will pull aqhbci package too 
#gw it really required qt3-wizard which wasn't included in aqbanking for a while
Requires:	aqhbci

%description hbci
This package adds HBCI file import support to the base
GnuCash package. Install this package if you want to
import HBCI files.

%files hbci
%{_datadir}/glib-2.0/schemas/org.%{name}.GnuCash.dialogs.import.hbci.gschema.xml
%{_datadir}/%{name}/ui/gnc-plugin-aqbanking-ui.xml
%{_libdir}/%{name}/libgncmod-aqbanking*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a4

%build
sed 's/-Wno-error=parentheses/-Wno-error=parentheses -Wno-error=strict-aliasing/g' -i CMakeLists.txt
# change rpath for .so moved to %{_libdir}/gnucash (see install section)
%global ldflags %{ldflags} -Wl,-rpath -Wl,%{_libdir}/gnucash

%cmake -DWITH_PYTHON=ON

%make

pushd ../%{name}-docs-%{version}
%cmake
%make
popd

%install
%makeinstall_std -C build

%makeinstall_std -C %{name}-docs-%{version}/build

# Menu entry
desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="GTK" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

%find_lang %{name} --with-gnome --all-name

# move unversioning lib to subdir
mv %{buildroot}%{_libdir}/lib*.so %{buildroot}%{_libdir}/gnucash

rm -rf	\
	%{buildroot}%{_bindir}/gnc-fq-update	\
	%{buildroot}%{_bindir}/gnucash-valgrind	\
	%{buildroot}%{_datadir}/aclocal		\
	%{buildroot}%{_datadir}/gnucash-docs	\
	%{buildroot}%{_datadir}/guile/site/3.0/tests	\
	%{buildroot}%{_includedir}		\
	%{buildroot}%{_infodir}			\
	%{buildroot}%{_libdir}/gnucash/lib*.a	\
	%{buildroot}%{_libdir}/lib*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12986 |21mr|gnuchess-6.2.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define book_version 1.02

Summary:	The GNU chess program
Name:		gnuchess
Version:	6.2.7
Release:	2
License:	GPL and Public Domain
Group:		Games/Boards
Url:		http://www.gnu.org/software/chess/
Source0:	ftp://ftp.gnu.org/pub/gnu/chess/%{name}-%{version}.tar.gz
#Source2:	ftp://ftp.gnu.org/pub/gnu/chess/book_%{book_version}.pgn.gz
# use precompiled book.dat:
Source1: book_1.02.dat.gz
BuildRequires:	help2man
BuildRequires:	flex
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
Provides:	chessengine
Provides:	gnuchess-book = %{EVRD}

%description
The gnuchess package contains the GNU chess program.  By default,
GNUchess uses a text-based interface.  Alternatively, GNUchess can
be used in conjunction with other GUI interface, thus serving as a
chess engine.

You should install the gnuchess package if you would like to play
chess on your computer. If you'd like to use a graphical interface
with GNUchess, you'll also need to install other GUI interface,
such as xboard or eboard.

This package also includes opening book for gnuchess, containing many
historic games played between masters and grandmasters.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README
%{_gamesbindir}/*
%{_gamesdatadir}/gnuchess
%{_gamesdatadir}/games/plugins/*/*
%{_infodir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
gzip -dc %{SOURCE1} > book.dat

%build
%configure \
	--bindir=%{_gamesbindir} \
	--datadir=%{_gamesdatadir}
%make

# create book
#echo -e 'book add book.pgn\nquit' | ./src/gnuchess -

%install
%makeinstall_std

install -m0644 book.dat -D %{buildroot}%{_gamesdatadir}/gnuchess/book.pgn

#Add gnuchess.ini, BZ 1075958
mkdir -p %{buildroot}%{_gamesdatadir}/gnuchess/
install -m 644 src/gnuchess.ini %{buildroot}%{_gamesdatadir}/gnuchess/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12987 |21mr|gnu-efi-3.0.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%ifarch %{x86_64}
%global efiarch x86_64
%endif
%ifarch aarch64
%global efiarch aarch64
%endif
%ifarch %{arm}
%global efiarch arm
%endif
%ifarch %{ix86}
%global efiarch ia32
%endif
%ifarch riscv64
%global efiarch riscv64
%endif

%global _efi_vendor %(eval echo $(. /etc/os-release && echo $ID))

Summary:	Development Libraries and headers for EFI
Name:		gnu-efi
Version:	3.0.14
Release:	1
Group:		System/Kernel and hardware
License:	BSD
Url:		http://sourceforge.net/projects/gnu-efi/
Source0:	http://freefr.dl.sourceforge.net/project/gnu-efi/gnu-efi-%{version}.tar.bz2

BuildRequires:	glibc-devel
BuildRequires:	efi-srpm-macros

%description
This package contains development headers and libraries for developing
applications that run under EFI (Extensible Firmware Interface).

%files
%doc README.* ChangeLog
%{_libdir}/gnuefi/*
%{_libdir}/*.a
# compat
%if %{efi_has_alt_arch}
%{_prefix}/lib/gnuefi/elf_ia32_efi.lds
%{_prefix}/lib/gnuefi/crt0-efi-%{efi_alt_arch}.o
%{_prefix}/lib/libefi.a
%{_prefix}/lib/libgnuefi.a
%endif
%attr(0644,root,root) /boot/efi/EFI/%{_efi_vendor}/*.efi

#---------------------------------------------------------------------------

%package devel
Summary: Development Libraries and headers for EFI
Requires: gnu-efi = %{EVRD}
BuildArch: noarch

%description devel
This package contains development headers and libraries for developing
applications that run under EFI (Extensible Firmware Interface).

%files devel
%doc README.*
%{_includedir}/efi

#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# (tpg) pass -z norelro for LLD
sed -i -e 's/build-id=sha1/build-id=sha1 -z norelro/g' Make.defaults

# Make sure we don't need an executable stack
find . -name "*.S" |while read i; do
    if ! grep -q .note.GNU-stack $i; then
%ifarch armv7hnl
	echo '.section .note.GNU-stack,""' >>$i
%else
	echo '.section .note.GNU-stack,"",@progbits' >>$i
%endif
    fi
done

make CC=%{__cc} HOSTCC=%{__cc} PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot}
make apps CC=%{__cc} HOSTCC=%{__cc} PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot}

# Makefiles aren't SMP clean and do not pass our optflags and ldflags
%if %{efi_has_alt_arch}
sed -i 's!-Werror !!g' Make.defaults
setarch linux32 -B make ARCH=%{efi_alt_arch} PREFIX=%{_prefix} LIBDIR=%{_prefix}/lib
setarch linux32 -B make ARCH=%{efi_alt_arch} PREFIX=%{_prefix} LIBDIR=%{_prefix}/lib apps
%endif

%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot}

mkdir -p %{buildroot}%{_libdir}/gnuefi
mv %{buildroot}/%{_libdir}/*.lds %{buildroot}/%{_libdir}/*.o %{buildroot}/%{_libdir}/gnuefi

mkdir -p %{buildroot}/boot/efi/EFI/%{_efi_vendor}
cp -a %{efiarch}/apps/*.efi %{buildroot}/boot/efi/EFI/%{_efi_vendor}/

%if %{efi_has_alt_arch}
mkdir -p %{buildroot}%{_prefix}/lib/gnuefi
setarch linux32 -B make PREFIX=%{_prefix} LIBDIR=%{_prefix}/lib INSTALLROOT=%{buildroot} ARCH=%{efi_alt_arch} install
mv %{buildroot}/%{_prefix}/lib/*.lds %{buildroot}/%{_prefix}/lib/*.o %{buildroot}/%{_prefix}/lib/gnuefi
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12988 |21mr|gnu-getopt-1.0.14-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           gnu-getopt
Version:        1.0.14
Release:        16
Epoch:          0
Summary:        Java getopt implementation
License:        LGPLv2+
Group:          Development/Java
URL:            http://www.urbanophile.com/arenn/hacking/download.html
Source0:        http://www.urbanophile.com/arenn/hacking/getopt/java-getopt-%{version}.tar.gz
Source2:        gnu-getopt-%{version}.pom
Provides:       gnu.getopt = %{epoch}:%{version}-%{release}
Obsoletes:      gnu.getopt < %{epoch}:%{version}-%{release}
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  ant
BuildRequires:  javapackages-local
Requires:       java-headless
Requires:       jpackage-utils


%description
The GNU Java getopt classes support short and long argument parsing in
a manner 100% compatible with the version of GNU getopt in glibc 2.0.6
with a mostly compatible programmer's interface as well. Note that this
is a port, not a new implementation. I am currently unaware of any bugs
in this software, but there certainly could be some lying about. I would
appreciate bug reports as well as hearing about positive experiences.

%package javadoc
Summary:        Javadoc for %{name}
Requires:       jpackage-utils
Provides:       gnu.getopt-javadoc = %{epoch}:%{version}-%{release}
Obsoletes:      gnu.getopt-javadoc < %{epoch}:%{version}-%{release}

%description javadoc
%{summary}.

%prep
%setup -q -c
mv gnu/getopt/buildx.xml build.xml

%build
ant jar javadoc

%install
install -d -m 755 %{buildroot}%{_javadir}
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}

install -p -m 644 build/lib/gnu.getopt.jar %{buildroot}%{_javadir}/%{name}.jar
ln -sf %{name}.jar %{buildroot}%{_javadir}/gnu.getopt.jar

install -p -m 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap -a urbanophile:java-getopt,gnu.getopt:java-getopt

cp -pr build/api/* %{buildroot}%{_javadocdir}/%{name}

%pre javadoc
# workaround for rpm bug, can be removed in F-22
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :

%files -f .mfiles
%doc gnu/getopt/COPYING.LIB gnu/getopt/README
%{_javadir}/gnu.getopt.jar

%files javadoc
%doc gnu/getopt/COPYING.LIB
%{_javadocdir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12989 |21mr|gnugo-3.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define chinese_rules 0
%{?_with_chinese: %global chinese_rules 1}

Summary:	The GNU program to play the game of Go
Name:		gnugo
Version:	3.8
Release:	9
License:	GPLv3+ 
Group:		Games/Boards
Url:		http://www.gnu.org/software/gnugo/
Source0:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Source1:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
Patch0:		gnugo-3.8-fix-format-errors.patch
BuildRequires:	ncurses-devel
BuildRequires:	readline-devel

%description
Go is a game of strategy between two players usually played on a 
19x19 grid called goban. GNU Go plays a game of Go against the 
user. It has many other features: it can play against itself or 
another program, analyse and score a recorded game. GNU Go is 
compliant with Go Modem Protocol, and load / save games in the
Smart Go format.
GNU Go uses a simple alpha-numeric board display by default. If you
want to use a graphical interface with GNU Go, you'll also need 
to install other GUI clients, such as CGoban or Jago.

Build Options:
--with chinese      Use Chinese rules for endgame counting

%prep
%setup -q
%patch0 -p 1 -b .format

%build
autoconf
%configure \
	--bindir=%{_gamesbindir}	\
	--enable-color			\
	--with-readline			\
%if %chinese_rules
	--enable-chinese-rules
%endif

%make
make check

%install
%makeinstall_std

# install emacs file
install -D -m 644 interface/gnugo.el %{buildroot}%{_datadir}/emacs/site-lisp/gnugo.el
mkdir -p %{buildroot}%{_sysconfdir}/emacs/site-start.d/
echo "(autoload 'gnugo \"gnugo\" \"GNU Go\" t)" > %{buildroot}%{_sysconfdir}/emacs/site-start.d/gnugo.el

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README THANKS TODO 
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*.el
%{_infodir}/*
%{_gamesbindir}/*
%{_mandir}/man6/*
%{_datadir}/emacs/site-lisp/*.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12990 |21mr|gnumeric-1.12.50-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define goffice_ver 0.10
%define libname %mklibname spreadsheet %{version}
%define devname %mklibname -d spreadsheet

Summary:	A full-featured spreadsheet for GNOME
Name:		gnumeric
Version:	1.12.50
Release:	2
License:	GPLv2+
Group:		Office
Url:		https://www.gnumeric.org
Source0:	https://download.gnome.org/sources/gnumeric/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	desktop-file-utils
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	perl-IO-Compress
BuildRequires:	rarian
BuildRequires:	perl-devel
BuildRequires:	psiconv-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgda-6.0)
BuildRequires:	pkgconfig(libgda-ui-6.0)
BuildRequires:	pkgconfig(libgoffice-0.10)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pxlib)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
Requires:	goffice

%description
This is the Gnumeric, the GNOME spreadsheet program. If you are familiar with 
Excel, you should be ready to use Gnumeric.  It tries to clone all of 
the good features and stay as compatible as possible with Excel in terms of 
usability. Hopefully the bugs have been left behind :).

%files -f %{name}.lang
%doc AUTHORS NEWS BUGS README
%license COPYING*
%{_bindir}/*
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/*
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}*.xml
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_libdir}/%{name}
%{_libdir}/goffice/%{goffice_ver}/plugins/%{name}
%{_mandir}/man1/*

%preun
%preun_uninstall_gconf_schemas %{schemas}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Spreadsheet library from Gnumeric
Group:		System/Libraries

%description -n %{libname}
This is the Gnumeric, the GNOME spreadsheet program. If you are familiar with 
Excel, you should be ready to use Gnumeric.  It tries to clone all of 
the good features and stay as compatible as possible with Excel in terms of 
usability. Hopefully the bugs have been left behind :).

%files -n %{libname}
%{_libdir}/libspreadsheet-%{version}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Spreadsheet library from Gnumeric - development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the Gnumeric, the GNOME spreadsheet program. If you are familiar with 
Excel, you should be ready to use Gnumeric.  It tries to clone all of 
the good features and stay as compatible as possible with Excel in terms of 
usability. Hopefully the bugs have been left behind :).

%files -n %{devname}
%{_includedir}/libspreadsheet-*
%{_libdir}/libspreadsheet.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --enable-gtk-doc
%make

%install
GCONF_DISABLE_MAKEFILE_SCHEMA_INSTALL=1 %makeinstall_std
rm -vf %{buildroot}%{_datadir}/%{name}/%{version}/perl/*/auto/Gnumeric/.packlist
rm -rf %{buildroot}/var
ln -s %{_datadir}/gnome %{buildroot}%{_datadir}/%{name}/%{version}

desktop-file-install --vendor="" \
	--remove-category="Application" \
	--remove-category="Science" \
	--remove-category="Math" \
	--remove-category="Application" \
	--remove-mime-type="zz-application/zz-winassoc-xls" \
	--add-category="GTK" \
	--add-category="GNOME" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12991 |21mr|gnupg1-1.4.23-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define oname gnupg

# Hide binaries of this very old and not supported GnuPG to avoid conflicts with modern GnuPG2
%define _bindir %{_libexecdir}/gnupg1

Summary:	GNU privacy guard - a free PGP replacement
Name:		gnupg1
Version:	1.4.23
Release:	5
License:	GPLv3+
Group:		File tools
Url:		http://www.gnupg.org
Source0:	ftp://ftp.gnupg.org/gcrypt/gnupg/%{oname}-%{version}.tar.bz2
Source1:	ftp://ftp.gnupg.org/gcrypt/gnupg/%{oname}-%{version}.tar.bz2.sig
Source2:	mdk-keys.tar.bz2
Source3:	mdk-keys.tar.bz2.sig
Patch1:		gnupg-1.4.2.2-use-agent-by-default.diff
Patch4:		gnupg-1.4.5-ppc64.patch
# splitted off from the previous debian patch
Patch6:		gnupg-1.4.7-deb-free_caps.patch
Patch7:		gnupg-1.4.7-deb-manpage.patch
Patch8:		gnupg-1.4.7-deb-min_privileges.patch
BuildRequires:	bison
BuildRequires:	docbook-utils
BuildRequires:	gettext
BuildRequires:	sendmail-command
BuildRequires:	bzip2-devel
BuildRequires:	openldap-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libusb)

# also provided in gnupg2, but of a lower version
Provides:	gnupg = %{EVRD}

# renamed from gnupg to gnupg1, gpg etc binaries moved to gnupg2
Conflicts:	gnupg < 1.4.23-4
Obsoletes:	gnupg < 1.4.23-4

%description
GnuPG is GNU's tool for secure communication and data storage.
It can be used to encrypt data and to create digital signatures.
It includes an advanced key management facility and is compliant
with the proposed OpenPGP Internet standard as described in RFC2440.

%files -f %{oname}.lang
%doc README NEWS THANKS TODO doc/DETAILS doc/FAQ doc/HACKING
%doc doc/OpenPGP doc/samplekeys.asc
%doc doc/gpgv.texi
# %%_bindir is %%{_libexecdir}/gnupg1 !!!
%attr(0755,root,root) %{_bindir}/gpg
%attr(0755,root,root) %{_bindir}/gpgv
%attr(0755,root,root) %{_bindir}/lspgpot
%attr(0755,root,root) %{_bindir}/gpgsplit
%attr(0755,root,root) %{_bindir}/gpg-zip
%dir %{_libexecdir}/gnupg1
%dir %{_libexecdir}/gnupg1/gnupg
%attr(0755,root,root) %{_libexecdir}/gnupg1/gnupg/gpgkeys_curl
%attr(0755,root,root) %{_libexecdir}/gnupg1/gnupg/gpgkeys_finger
%attr(0755,root,root) %{_libexecdir}/gnupg1/gnupg/gpgkeys_hkp
%attr(0755,root,root) %{_libexecdir}/gnupg1/gnupg/gpgkeys_ldap
%dir %{_datadir}/gnupg
%{_datadir}/gnupg/options.skel
%{_mandir}/man1/*
%{_infodir}/gnupg1.info*
%dir %{_sysconfdir}/RPM-GPG-KEYS
%attr(0644,root,root) %{_sysconfdir}/RPM-GPG-KEYS/*.asc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch1 -p0 -b .use_agent
%patch4 -p1 -b .ppc64
%patch6 -p1 -b .free_caps
%patch7 -p1 -b .manpage
%patch8 -p1 -b .min_privileges

%build
%serverbuild
%configure \
	--libexecdir=%{_libexecdir}/gnupg1 \
	--without-included-regex \
	--without-included-gettext \
	--without-included-zlib \
	--with-static-rnd=linux \
	--disable-rpath \
	--without-capabilities \
	--enable-noexecstack \
%ifarch %{sunsparc}
	--enable-m-guard
%else
	--disable-m-guard
%endif
%make

%check
# all tests must pass
make check

%install
%makeinstall_std

sed -e "s#../g10/gpg#gpg#" < tools/lspgpot > %{buildroot}%{_bindir}/lspgpot

perl -pi -e 's|/usr/local|/usr/|' %{buildroot}%{_mandir}/man1/gpg.1

# install some extra man pages by debian
install -m0644 debian/gpgsplit.1 %{buildroot}%{_mandir}/man1/
install -m0644 debian/lspgpot.1 %{buildroot}%{_mandir}/man1/

# installed but not wanted
rm -f %{buildroot}%{_datadir}/gnupg/{FAQ,faq.html}
rm -f %{buildroot}%{_datadir}/locale/locale.alias

mkdir -p %{buildroot}%{_sysconfdir}/RPM-GPG-KEYS
tar xvjf %{SOURCE2} -C %{buildroot}%{_sysconfdir}/RPM-GPG-KEYS

# gpg.1 -> gpg1.1, gpg.1 is in gnupg2
( cd %{buildroot}%{_mandir}/man1
  for i in *.1
  do
    mv -v "$i" "$(echo "$i" | sed -e 's,.1,1.1,g')"
  done
)


%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12992 |21mr|gnupg2-2.2.39-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname gnupg

Summary:	GNU privacy guard - a free PGP replacement
Name:		gnupg2
Version:	2.2.39
Release:	1
License:	GPLv3+
Group:		File tools
Url:		http://www.gnupg.org
Source0:	https://www.gnupg.org/ftp/gcrypt/gnupg/gnupg-%{version}.tar.bz2
Source1:	sysconfig-gnupg2
# https://github.com/archlinux/svntogit-packages/blob/packages/gnupg/trunk/avoid-beta-warning.patch
Patch1:		avoid-beta-warning.patch
BuildRequires:	docbook-utils
BuildRequires:	sendmail-command
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel >= 0.19.3
BuildRequires:	libassuan-devel
BuildRequires:	libksba-devel
BuildRequires:	npth-devel >= 1.2
BuildRequires:	openldap-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
Provides:	newpg = %{EVRD}
Requires:	pinentry
Conflicts:	dirmngr
Obsoletes:	dirmngr < 1.1.1-3
# gnupg1 also provides it, but of a lower version
Provides:	gnupg = %{EVRD}
# /usr/bin/gnupg etc. were in gnupg1 named gnupg
Conflicts:	gnupg < 1.4.23-3
Obsoletes:	gnupg < 1.4.23-3

%description
GnuPG is GNU's tool for secure communication and data storage.
It can be used to encrypt data and to create digital signatures.
It includes an advanced key management facility and is compliant
with the proposed OpenPGP Internet standard as described in RFC2440.

%files -f %{name}.lang
%doc README NEWS THANKS TODO ChangeLog
%doc doc/FAQ doc/HACKING doc/KEYSERVER doc/OpenPGP doc/TRANSLATE doc/DETAILS
%doc doc/examples
%{_bindir}/dirmngr
%{_bindir}/dirmngr-client
%{_bindir}/gpg-agent
%{_bindir}/gpg-connect-agent
%{_bindir}/gpg-wks-server
%{_bindir}/gpgconf
%{_bindir}/gpgparsemail
%{_bindir}/gpgscm
%{_bindir}/gpgsplit
%{_bindir}/gpgtar
%{_bindir}/gpg
%{_bindir}/gpg2
%{_bindir}/gpgsm
%{_bindir}/gpgv
%{_bindir}/kbxutil
%{_bindir}/watchgnupg
%{_sbindir}/addgnupghome
%{_sbindir}/applygnupgdefaults
%{_libexecdir}/dirmngr_ldap
%{_libexecdir}/gpg-check-pattern
%{_libexecdir}/gpg-preset-passphrase
%{_libexecdir}/gpg-protect-tool
%{_libexecdir}/gpg-wks-client
%{_libexecdir}/scdaemon
%{_infodir}/gnupg.info*
%{_mandir}/man1/dirmngr-client.1*
%{_mandir}/man1/gpg-agent.1*
%{_mandir}/man1/gpg-connect-agent.1*
%{_mandir}/man1/gpg-preset-passphrase.1*
%{_mandir}/man1/gpg-wks-client.1*
%{_mandir}/man1/gpg-wks-server.1*
%{_mandir}/man1/gpg.1*
%{_mandir}/man1/gpgconf.1*
%{_mandir}/man1/gpgparsemail.1*
%{_mandir}/man1/gpgsm.1*
%{_mandir}/man1/gpgtar.1*
%{_mandir}/man1/gpgv.1*
%{_mandir}/man1/scdaemon.1*
%{_mandir}/man1/watchgnupg.1*
%{_mandir}/man1/gpg-check-pattern.1.*
%{_mandir}/man8/addgnupghome.8*
%{_mandir}/man8/applygnupgdefaults.8*
%{_mandir}/man8/dirmngr.8*
%config(noreplace) %{_sysconfdir}/sysconfig/gnupg2
%{_userunitdir}/dirmngr.service
%{_userunitdir}/dirmngr.socket
%{_userunitdir}/gpg-agent-browser.socket
%{_userunitdir}/gpg-agent-extra.socket
%{_userunitdir}/gpg-agent-ssh.socket
%{_userunitdir}/gpg-agent.service
%{_userunitdir}/gpg-agent.socket

%post
%systemd_user_post dirmngr.socket
%systemd_user_post gpg-agent-browser.socket
%systemd_user_post gpg-agent-extra.socket
%systemd_user_post gpg-agent-ssh.socket
%systemd_user_post gpg-agent.socket

%preun
%systemd_user_preun dirmngr.socket
%systemd_user_preun gpg-agent-browser.socket
%systemd_user_preun gpg-agent-extra.socket
%systemd_user_preun gpg-agent-ssh.socket
%systemd_user_preun gpg-agent.socket

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgname}-%{version}

%build
%serverbuild

%configure \
	--disable-rpath \
	--without-capabilities \
	--with-adns=no \
	--with-pkits-tests

%make

%install
%makeinstall_std

# remove this from package because the content of options.skel is the
# identical for both gnupg 1/2, except for comment
rm -rf %{buildroot}%{_datadir}/gnupg

rm -rf %{buildroot}%{_docdir}/gnupg

# conflicts with gnupg package
rm -rf %{buildroot}%{_mandir}/man7/gnupg.7*

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/gnupg2

# Install systemd units
mkdir -p %{buildroot}%{_userunitdir}
install -m0644 doc/examples/systemd-user/* %{buildroot}%{_userunitdir}
rm -fv %{buildroot}%{_userunitdir}/README

ln -s gpg %{buildroot}%{_bindir}/gpg2

%find_lang %{name}

# all tests must pass on i586 and x86_64
%check
[[ -n "$GPG_AGENT_INFO" ]] || eval `./agent/gpg-agent --use-standard-socket --daemon --write-env-file gpg-agent-info`
make check
[[ -a gpg-agent-info ]] && kill -0 `cut -d: -f 2 gpg-agent-info`
rm -f gpg-agent-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12993 |21mr|gnupg-pkcs11-scd-0.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GnuPG-compatible smart-card daemon with PKCS#11 support
Name:		gnupg-pkcs11-scd
Version:	0.9.2
Release:	1
License:	BSD
Group:		File tools
Url:		http://gnupg-pkcs11.sourceforge.net
Source0:	https://github.com/alonbl/%{name}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
# From ALT Linux package (GOST support)
# http://sisyphus.ru/ru/srpm/Sisyphus/gnupg-pkcs11-scd/patches
Patch0:		gnupg-pkcs11-scd-0.9.2-gost-1.0.0.patch
BuildRequires:	libassuan-devel
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libpkcs11-helper-1)
BuildRequires:	pkgconfig(openssl)
Requires:	openssl

%description
gnupg-pkcs11-scd is a drop-in replacement for the smart-card daemon (scd)
shipped with the next-generation GnuPG (gnupg2). The daemon interfaces
with smart-cards by using RSA Security Inc.'s PKCS#11 Cryptographic Token
Interface.

%files
%doc AUTHORS COPYING  README THANKS gnupg-pkcs11-scd/gnupg-pkcs11-scd.conf.example
%{_bindir}/gnupg-pkcs11-scd
%{_mandir}/man1/gnupg-pkcs11-scd.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12994 |21mr|gnuplot-5.4.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modeversion 0.8.0
# Latex BR for building docs are incomplete and finding all
# of them by trial-and-error is a pain: let's disabling it for now
%define	want_docs 0
%global _texmflocaldir %{_datadir}/texmf-local

Summary:	A program for plotting mathematical expressions and data
Name:		gnuplot
Version:	5.4.10
Release:	1
License:	Freeware-like
Group:		Sciences/Other
Url:		http://www.gnuplot.info/
Source0:	https://downloads.sourceforge.net/project/gnuplot/%{name}/%{version}/%{name}-%{version}.tar.gz
Source1:	https://github.com/bruceravel/gnuplot-mode/archive/%{modeversion}/%{name}-mode-%{modeversion}.tar.gz
Source2:	http://downloads.sourceforge.net/project/gnuplot/%{name}/%{version}/Gnuplot_5_4.pdf
Source11:	%{name}.16.png
Source12:	%{name}.32.png
Source13:	%{name}.48.png
#Patch0:		gnuplot-mode-0.7.0-disable-f9.patch
Patch1:		gnuplot-5.4.0-nocrossbuild.patch
BuildRequires:	emacs-bin
BuildRequires:	qt5-linguist-tools
BuildRequires:	texinfo
BuildRequires:	readline-devel
BuildRequires:	wxgtku3.0-devel
BuildRequires:	pkgconfig(cairo) >= 1.6.0
BuildRequires:	pkgconfig(gdlib)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcerf)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(x11)
Requires:	%{name}-nox
Recommends:	%{name}-mode
Recommends:	%{name}-doc

%description
Gnuplot is a command-line driven, interactive function plotting program
especially suited for scientific data representation. Gnuplot can be used to
plot functions and data points in both two and three dimensions and in many
different formats.
Install it if you need a graphics package for scientific data representation.

%files
%doc Copyright
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package nox
Summary:	A program for plotting mathematical expressions and data
Group:		Sciences/Other
Conflicts:	%{name} < 4.4.3

%description nox
Gnuplot is a command-line driven, interactive function plotting program
especially suited for scientific data representation. Gnuplot can be used to
plot functions and data points in both two and three dimensions and in many
different formats.
Install it if you need a graphics package for scientific data representation.
This package provides GNUPlot without any X dependency.

%files nox
%doc Copyright NEWS README
%{_bindir}/%{name}-nox
%{_mandir}/*/*
%{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%optional %{_texmflocaldir}/tex/latex/%{name}/*

#----------------------------------------------------------------------------

%package mode
Summary:	Yet another Gnuplot mode for Emacs
Group:		Sciences/Other
Conflicts:	%{name} < 4.4.3

%description mode
Gnuplot is a major mode for Emacs flavours with the following features:
 - Functions for plotting lines, regions, entire scripts, or entire files
 - Graphical interface to setting command arguments
 - Syntax colorization
 - Completion of common words in Gnuplot
 - Code indentation
 - On-line help using Info for Gnuplot functions and features
 - Interaction with Gnuplot using comint
 - Pull-down menus plus a toolbar in XEmacs
 - Distributed with a quick reference sheet in postscript.

%files mode
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*.el
%optional %{_datadir}/emacs/site-lisp/*

#----------------------------------------------------------------------------

%package doc
Summary:	GNUPlot Documentation
Group:		Documentation
Conflicts:	%{name} < 4.4.3

%description doc
Gnuplot is a command-line driven, interactive function plotting program
especially suited for scientific data representation. Gnuplot can be used to
plot functions and data points in both two and three dimensions and in many
different formats.
Install it if you need a graphics package for scientific data representation.
This package provides additional documentation.

%files doc
%doc demo FAQ.pdf
%doc Gnuplot_5_4.pdf
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -a 1
%apply_patches

cp -f %{SOURCE2} .

#perl -pi -e 's|(^\s*)mkinstalldirs\s|$1./mkinstalldirs |' %{name}-mode-%{modeversion}/Makefile.in

# Non-free stuff. Ouch. -- Geoff
rm demo/prob.dem demo/prob2.dem


%build
autoreconf -vfi
%global optflags %{optflags} -std=gnu++11
export CFLAGS="%{optflags} -fno-fast-math"
export CONFIGURE_TOP=..

mkdir build-nox
pushd build-nox
	%configure \
		--libexecdir=%{_libdir} \
		--with-readline=gnu \
		--with-texdir="%{_texmflocaldir}/tex/latex/%{name}" \
		--without-x \
		--without-qt \
		--disable-wxwidgets
	%make -C src
%if %{want_docs}
	make -C docs ps
	%make -C docs pdf_nofig
%endif
popd

mkdir build-x11
pushd build-x11
	%configure \
	--libexecdir=%{_libdir} \
	--with-readline=gnu \
	--with-texdir="%{_texmflocaldir}/tex/latex/%{name}"
	%make
%make
popd

pushd gnuplot-%{modeversion}
	%make
popd



%install
pushd build-nox
	%makeinstall_std
	mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-nox
popd

pushd build-x11
	%makeinstall_std
popd

pushd gnuplot-%{modeversion}
	install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
	install -d %{buildroot}%{_datadir}/emacs/site-lisp
	install -m 644 gnuplot.el %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el
	install -m 644 *.el %{buildroot}%{_datadir}/emacs/site-lisp/
	install -m 644 *.elc %{buildroot}%{_datadir}/emacs/site-lisp/
popd

# Provide menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Gnuplot
GenericName=Function plotting program
GenericName[ru]=Построение графиков функций
Comment=The famous function plotting program
Comment[af]=Die welbekende funksieplotprogram
Comment[ar]=برنامج تحديد الوظائف الشهير
Comment[az]=Funksiya çap edici proqram
Comment[bg]=Програма за чертане с плотер
Comment[bn]=ফাংশন প্লট অঙ্কনকারী বিখ্যাত প্রোগ্রাম
Comment[bs]=Poznati program za crtanje funkcija
Comment[ca]=El conegut programa de funcions d'impressió amb traçador
Comment[cs]=Známý program pro vytváření grafů funkcí
Comment[cy]=Rhaglen plotio swyddogaeth enwog
Comment[da]=Det berømte funktion-plotteprogram
Comment[de]=Das berühmte Programm zur Darstellung mathematischer Funktionen
Comment[el]=Το διάσημο πρόγραμμα σχεδίασης μαθηματικών συναρτήσεων
Comment[es]=El programa famoso de graficado de funciones
Comment[et]=Kuulus funktsioonide joonistamise rakendus
Comment[eu]=Funtzioak marrazteko programa ospetsua
Comment[fa]=برنامه‌ی مشهور ترسیم تابع
Comment[fi]=Kuuluisa kuvaajienpiirto-ohjelma
Comment[fr]=Le fameux programme de traçage de fonction
Comment[gl]=O famoso programa de representación de funcións
Comment[he]=תוכנת ציור הפונקציות המפורסמת
Comment[hi]=एक प्रसिद्ध फ़ंक्शन प्लौटिंग प्रोग्राम
Comment[hr]=Čuveni program za crtanje funkcija
Comment[hu]=Elterjedt függvényábrázoló
Comment[id]=Program plot terkenal
Comment[is]=Víðfrægt falla-teikniforrit
Comment[it]=Il famoso programma per tracciare funzioni
Comment[ja]=有名な関数プロットソフト
Comment[ky]=Белгилүү функция сызуучу програм
Comment[lt]=Garsioji funkcijų braižymų programa
Comment[lv]=Slavenā programma funkciju zīmēšanai
Comment[mk]=Познатиот програм за цртање графици на функции
Comment[mt]=Programm famuż li jipplottja funzjonijiet
Comment[nb]=Det berømte plotteprogrammet
Comment[nl]=Het beroemde functie-plotprogramma (grafieken van functies)
Comment[nn]=Eit program for plotting av funksjonar
Comment[pl]=Słynny program do rysowania wykresów
Comment[pt]=O famoso programa de gráficos de funções
Comment[pt_BR]=O famoso programa para plotagem de funções
Comment[ro]=Faimosul program de trasare de funcții
Comment[ru]=Знаменитая программа для построения графиков функций
Comment[sc]=Su programa po fai plot de funtzionis
Comment[sk]=Plotting program s mnohými funkciami
Comment[sl]=Znani program za risanje funkcij
Comment[sq]=Program me famë të funksioneve gjurmuese
Comment[sr]=Познати функционални плотинг програм
Comment[sr@Latn]=Poznati funkcionalni ploting program
Comment[sv]=Det berömda programmet för funktionsplotting
Comment[ta]=gவரைவியல்
Comment[tg]=Барномаи машҳури нақшакашии вазифоӣ
Comment[th]=โปรแกรมวาดรูปฟังชั่น
Comment[tl]=Ang tanyag na program na nagpa-plot ng function
Comment[tr]=Fonksiyon çizim programı
Comment[uk]=Відома програма для побудови графіків функцій
Comment[vi]=Chương trình có chức năng vẽ nổi tiếng
Comment[wa]=Li fameus programe di traçaedje di fonccions
Comment[zh_CN]=绘制函数图像
Comment[zh_TW]=著名的函數繪製程式
Exec=%{name}
Icon=%{name}
Terminal=true
Type=Application
StartupNotify=true
Categories=Graphics;Science;
EOF

# Provide icons
install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12995 |21mr|gnu-regexp-1.1.4-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           gnu-regexp
Version:        1.1.4
Release:        28
Summary:        Java NFA regular expression engine implementation
# GPLv2+: gnu/regexp/util/Egrep.java
#         gnu/regexp/util/Grep.java
#         gnu/regexp/util/REApplet.java
# Public Domain: gnu/regexp/util/RETest.java
#                gnu/regexp/util/Tests.java
# Rest is LGPLv2+
# Note files under GPLv2+ and Public Domain are included in -demo subpackage
License:        LGPLv2+
Group:          Development/Java
Source0:        http://ftp.frugalware.org/pub/other/sources/gnu.regexp/gnu.regexp-%{version}.tar.gz
Source1:        %{name}.build.xml
Source2:        http://repo1.maven.org/maven2/gnu-regexp/gnu-regexp/%{version}/gnu-regexp-%{version}.pom
BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  gnu-getopt
URL:            http://savannah.gnu.org/projects/gnu-regexp
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Provides:       gnu.regexp = %{version}-%{release}
Obsoletes:      gnu.regexp < %{version}-%{release}

%description
The gnu.regexp package is a pure-Java implementation of a traditional
(non-POSIX) NFA regular expression engine. Its syntax can emulate many
popular development tools, including awk, sed, emacs, perl and grep. For
a relatively complete list of supported and non-supported syntax, refer
to the syntax and usage notes.

%package demo
Summary:        Demo for %{name}
License:        LGPLv2+ and GPLv2+ and Public Domain
Requires:       %{name} = %{version}-%{release}
Requires:       gnu-getopt
Provides:       gnu.regexp-demo = %{version}-%{release}
Obsoletes:      gnu.regexp-demo < %{version}-%{release}

%description demo
Demonstrations and samples for %{name}.

%package javadoc
Summary:        Javadoc for %{name}
License:        LGPLv2+ and GPLv2+ and Public Domain
Provides:       gnu.regexp-javadoc = %{version}-%{release}
Obsoletes:      gnu.regexp-javadoc < %{version}-%{release}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n gnu.regexp-%{version}
cp %{SOURCE1} build.xml

%build
export CLASSPATH=$(build-classpath gnu-getopt)
ant jar javadoc

%install
# jars
install -d -m 755 %{buildroot}%{_javadir}
install -p -m 644 build/lib/gnu.regexp.jar %{buildroot}%{_javadir}/%{name}.jar
ln -s %{name}.jar %{buildroot}%{_javadir}/gnu.regexp.jar

# pom
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -p -m 644 %{SOURCE2} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

# depmap
%add_maven_depmap JPP-%{name}.pom %{name}.jar

# demo
install -d -m 755 %{buildroot}%{_datadir}/%{name}/gnu/regexp/util
install -p -m 644 build/classes/gnu/regexp/util/*.class \
  %{buildroot}%{_datadir}/%{name}/gnu/regexp/util

# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -rp build/api/* %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%doc COPYING COPYING.LIB README TODO docs/*.html
%{_javadir}/gnu.regexp.jar

%files demo
%{_datadir}/%{name}

%files javadoc
%doc COPYING COPYING.LIB
%doc %{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12996 |21mr|gnustep-back-0.29.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GNUstep Backend package
Name:		gnustep-back
Version:	0.29.0
Release:	1
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.gnustep.org/
Source0:	ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
BuildRequires:	gcc-objc
BuildRequires:	gnustep-make
BuildRequires:	gnustep-base-devel
BuildRequires:	gnustep-gui-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
Requires:	gnustep-gui

%description
It is a library of graphical user interface classes written completely in the
Objective-C language; the classes are based upon the OpenStep specification as
released by NeXT Software, Inc. The library does not completely conform to the
specification and has been enhanced in a number of ways to take advantage of
the GNU system. These classes include graphical objects such as buttons, text
fields, popup lists, browser lists, and windows; there are also many associated
classes for handling events, colors, fonts, pasteboards and images.

%files
%license COPYING.LIB
%doc ANNOUNCE INSTALL NEWS README
%{_bindir}/*
%{_libdir}/GNUstep/Bundles/*
%{_libdir}/GNUstep/Fonts
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
#define __cputoolize /bin/true
# FIXME:	gold linker dies with internal error in convert_types, at ../../gold/gold.h:192 on i586
%ifarch %{ix86}
export CC="%{__cc} -fuse-ld=bfd"
%endif
%configure
%make

%install
%makeinstall_std GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12997 |21mr|gnustep-base-1.28.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with docs

%define major 1.28
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GNUstep Base package
Name:		gnustep-base
Version:	1.28.0
Release:	2
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.gnustep.org/
Source0:	http://ftpmain.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
Source100:	gnustep-base.rpmlintrc
Patch0:		gnustep-base-1.24.6-force-ffi.patch
BuildRequires:	gnustep-make >= 2.6.2-3
BuildRequires:	gcc-objc
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(icu-i18n)
%if %{with docs}
BuildRequires:	tetex-dvips
BuildRequires:	texi2html
BuildRequires:	texinfo
%endif
Requires:	gnustep-make >= 2.6.2-3

%description
The GNUstep Base Library is a powerful fast library of general-purpose,
non-graphical Objective C classes, inspired by the superb OpenStep API but
implementing Apple and GNU additions to the API as well. It includes for
example classes for unicode strings, arrays, dictionaries, sets, byte
streams, typed coders, invocations, notifications, notification dispatchers,
scanners, tasks, files, networking, threading, remote object messaging
support (distributed objects), event loops, loadable bundles, attributed
unicode strings, xml, mime, user defaults. This package includes development
headers too.

%files
%doc NEWS README
%{_bindir}/*
%{_libdir}/GNUstep
%{_mandir}/man1/*
%{_mandir}/man8/*
%if %{with docs}
%{_infodir}/*
%endif

%post
grep -q '^gdomap' /etc/services                                            \
	|| (echo "gdomap 538/tcp # GNUstep distributed objects" >> /etc/services  \
	&& echo "gdomap 538/udp # GNUstep distributed objects" >> /etc/services)

%postun
mv -f /etc/services /etc/services.orig
grep -v "^gdomap 538" /etc/services.orig > /etc/services
rm -f /etc/services.orig

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/Other
Requires:	%{name} >= %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc ANNOUNCE COPYING COPYING.LIB ChangeLog*
%{_includedir}/*
%{_datadir}/GNUstep/*
%{_libdir}/*.so

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
  . %{_datadir}/GNUstep/Makefiles/GNUstep.sh
fi
%define __cputoolize /bin/true
# FIXME We force ld.bfd because of a gold bug last seen in 2.23.51.0.8, causing
# the build to fail on x86_32. -fuse-ld=bfd should be removed as soon as this
# is fixed.
export LDFLAGS="%{ldflags} -fuse-ld=bfd"
%configure \
	--with-default-config=/etc/GNUstep/GNUstep.conf \
	--with-installation-domain=SYSTEM \
	--enable-setuid-gdomap
%make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

%if %{with docs}
export LD_LIBRARY_PATH="${RPM_BUILD_DIR}/%{name}-%{version}/Source/obj:${LD_LIBRARY_PATH}"
make -C Documentation
%endif

%install
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
  . %{_datadir}/GNUstep/Makefiles/GNUstep.sh
fi
%makeinstall_std GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

%if %{with docs}
cd Documentation
%makeinstall_std GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
%endif

mkdir -p %{buildroot}%{_libdir}/GNUstep/Libraries/Resources

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12998 |21mr|gnustep-base-1.28.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with docs

%define major 1.28
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GNUstep Base package
Name:		gnustep-base
Version:	1.28.0
Release:	4
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.gnustep.org/
Source0:	http://ftpmain.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
Source100:	gnustep-base.rpmlintrc
Patch0:		gnustep-base-1.24.6-force-ffi.patch
BuildRequires:	gnustep-make >= 2.6.2-3
BuildRequires:	gcc-objc
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(icu-i18n)
%if %{with docs}
BuildRequires:	tetex-dvips
BuildRequires:	texi2html
BuildRequires:	texinfo
%endif
Requires:	gnustep-make >= 2.6.2-3

%description
The GNUstep Base Library is a powerful fast library of general-purpose,
non-graphical Objective C classes, inspired by the superb OpenStep API but
implementing Apple and GNU additions to the API as well. It includes for
example classes for unicode strings, arrays, dictionaries, sets, byte
streams, typed coders, invocations, notifications, notification dispatchers,
scanners, tasks, files, networking, threading, remote object messaging
support (distributed objects), event loops, loadable bundles, attributed
unicode strings, xml, mime, user defaults. This package includes development
headers too.

%files
%doc NEWS README
%{_bindir}/*
%{_libdir}/GNUstep
%{_mandir}/man1/*
%{_mandir}/man8/*
%if %{with docs}
%{_infodir}/*
%endif

%post
grep -q '^gdomap' /etc/services                                            \
	|| (echo "gdomap 538/tcp # GNUstep distributed objects" >> /etc/services  \
	&& echo "gdomap 538/udp # GNUstep distributed objects" >> /etc/services)

%postun
mv -f /etc/services /etc/services.orig
grep -v "^gdomap 538" /etc/services.orig > /etc/services
rm -f /etc/services.orig

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/Other
Requires:	%{name} >= %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc ANNOUNCE COPYING COPYING.LIB ChangeLog*
%{_includedir}/*
%{_datadir}/GNUstep/*
%{_libdir}/*.so

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
  . %{_datadir}/GNUstep/Makefiles/GNUstep.sh
fi
%define __cputoolize /bin/true
# FIXME We force ld.bfd because of a gold bug last seen in 2.23.51.0.8, causing
# the build to fail on x86_32. -fuse-ld=bfd should be removed as soon as this
# is fixed.
export LDFLAGS="%{ldflags} -fuse-ld=bfd"
%configure \
	--with-default-config=/etc/GNUstep/GNUstep.conf \
	--with-installation-domain=SYSTEM \
	--enable-setuid-gdomap
%make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

%if %{with docs}
export LD_LIBRARY_PATH="${RPM_BUILD_DIR}/%{name}-%{version}/Source/obj:${LD_LIBRARY_PATH}"
make -C Documentation
%endif

%install
if [ -z "$GNUSTEP_SYSTEM_ROOT" ]; then
  . %{_datadir}/GNUstep/Makefiles/GNUstep.sh
fi
%makeinstall_std GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

%if %{with docs}
cd Documentation
%makeinstall_std GNUSTEP_INSTALLATION_DOMAIN=SYSTEM
%endif

mkdir -p %{buildroot}%{_libdir}/GNUstep/Libraries/Resources

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 12999 |21mr|gnustep-gui-0.29.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %version |cut -d. -f1-2)
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GNUstep GUI package
Name:		gnustep-gui
Version:	0.29.0
Release:	3
License:	GPLv2+
Group:		Development/Other
Url:		http://www.gnustep.org/
Source0:	ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
BuildRequires:	gcc-objc
BuildRequires:	gnustep-make >= 2.6.2-3
BuildRequires:	aspell-devel
BuildRequires:	cups-devel
BuildRequires:	gnustep-base-devel >= 1.24.0-2
BuildRequires:	jpeg-devel
BuildRequires:	ungif-devel
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(libpng) >= 1.5
Buildrequires:	pkgconfig(libtiff-4)
Requires:	gnustep-base >= 1.24.0-3

%description
This is a library of graphical user interface classes written completely in the
Objective-C language; the classes are based upon the OpenStep specification as
released by NeXT Software, Inc.  The library does not completely conform to the
specification and has been enhanced in a number of ways to take advantage of
the GNU system. These classes include graphical objects such as buttons, text
fields, popup lists, browser lists, and windows; there are also many associated
classes for handling events, colors, fonts, pasteboards and images.

%files
%license COPYING.LIB
%doc ANNOUNCE BUGS NEWS README
%{_bindir}/*
%{_libdir}/GNUstep/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%license COPYING.LIB
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development library from %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Library and includes files for developing programs based on %{name}.

%files -n %{devname}
%license COPYING.LIB
%{_includedir}/*
%{_libdir}/*.so
%{_datadir}/GNUstep/Makefiles/Additional/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --with-installation-domain=SYSTEM
%make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

%install
%makeinstall_std GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13000 |21mr|gnustep-gui-0.29.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %version |cut -d. -f1-2)
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GNUstep GUI package
Name:		gnustep-gui
Version:	0.29.0
Release:	5
License:	GPLv2+
Group:		Development/Other
Url:		http://www.gnustep.org/
Source0:	ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
BuildRequires:	gcc-objc
BuildRequires:	gnustep-make >= 2.6.2-3
BuildRequires:	aspell-devel
BuildRequires:	cups-devel
BuildRequires:	gnustep-base-devel >= 1.24.0-2
BuildRequires:	jpeg-devel
BuildRequires:	ungif-devel
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(libpng) >= 1.5
Buildrequires:	pkgconfig(libtiff-4)
Requires:	gnustep-base >= 1.24.0-3

%description
This is a library of graphical user interface classes written completely in the
Objective-C language; the classes are based upon the OpenStep specification as
released by NeXT Software, Inc.  The library does not completely conform to the
specification and has been enhanced in a number of ways to take advantage of
the GNU system. These classes include graphical objects such as buttons, text
fields, popup lists, browser lists, and windows; there are also many associated
classes for handling events, colors, fonts, pasteboards and images.

%files
%license COPYING.LIB
%doc ANNOUNCE BUGS NEWS README
%{_bindir}/*
%{_libdir}/GNUstep/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%license COPYING.LIB
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development library from %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Library and includes files for developing programs based on %{name}.

%files -n %{devname}
%license COPYING.LIB
%{_includedir}/*
%{_libdir}/*.so
%{_datadir}/GNUstep/Makefiles/Additional/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --with-installation-domain=SYSTEM
%make GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

%install
%makeinstall_std GNUSTEP_INSTALLATION_DOMAIN=SYSTEM

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13001 |21mr|gnustep-make-2.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No binaries included => no need for a debug package
# Still can't make it noarch because files will contain
# lib vs. lib64 references
%define debug_package %{nil}
%define _disable_ld_no_undefined 1

Summary:	GNUstep Makefile package
Name:		gnustep-make
Version:	2.9.0
Release:	2
License:	GPLv3+
Group:		Development/Tools
Url:		http://www.gnustep.org/
Source0: 	ftp://ftp.gnustep.org/pub/gnustep/core/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	texinfo
BuildRequires:	latex2html

%description
This package contains the basic scripts, makefiles and directory layout
needed to run and compile any GNUstep software.

NOTE: Following FHS standards, this package will attempt to force all other
gnustep-based into /usr/bin, /usr/lib, /usr/share, etc.  Many documentation
files will refer to /usr/GNUstep as being the root directory, which is
incorrect.  Also, user files are stored in ~/.gnustep rather than ~/GNUstep.

%files
%doc ANNOUNCE ChangeLog FAQ GNUstep-HOWTO NEWS README RELEASENOTES Version
%{_sysconfdir}/GNUstep
%{_bindir}/*
%{_datadir}/GNUstep
%{_mandir}/man1/*
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%prep
%setup -q
%if "%{_lib}" != "lib"
sed -i -e 's,/lib,/%{_lib},g' FilesystemLayouts/fhs*
%endif

%build
%configure \
	--with-layout=fhs-system \
	--with-user-dir=.gnustep \
    --enable-native-objc-exceptions
    
%make
sed -i -e 's|%{_prefix}/man|%{_mandir}|g' GNUstep.conf
sed -i -e 's|%{_prefix}/info|%{_datadir}/GNUstep/info|g' GNUstep.conf

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13002 |21mr|gnutls-3.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define dirver %(echo %{version}|cut -d. -f1,2,3)

%define major 30
%define sslmajor 27
%define danemajor 0
%define xxmajor 30
%define libname %mklibname %{name} %{major}
%define libnamexx %mklibname %{name}xx %{xxmajor}
%define libssl %mklibname %{name}-openssl %{sslmajor}
%define libdane %mklibname %{name}-dane %{danemajor}
%define devname %mklibname %{name} -d

%define _disable_ld_no_undefined 1

Summary:	Library providing a secure layer (SSL)
Name:		gnutls
Version:	3.8.4
Release:	1
License:	GPLv2+ and LGPLv2.1+
Group:		System/Libraries
Url:		https://gnupg.org/index.html
Source0:	https://www.gnupg.org/ftp/gcrypt/gnutls/v%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gnutls-3.2.7-rpath.patch
BuildRequires:	liblzo-devel
BuildRequires:	unbound-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libtasn1)
BuildRequires:	pkgconfig(nettle)
BuildRequires:	pkgconfig(p11-kit-1)
BuildRequires:	pkgconfig(autoopts)
BuildRequires:	pkgconfig(gmp)
%ifnarch %{armx} %{mips} %{e2k} %{riscv}
BuildRequires:	valgrind
%endif

%description
GnuTLS is a project that aims to develop a library which provides
a secure layer, over a reliable transport layer.

%files
%doc %{_docdir}/%{name}
%{_bindir}/[cgs]*
%{_bindir}/danetool
%{_bindir}/psktool
%{_bindir}/p11tool
%{_bindir}/ocsptool
%{_mandir}/man?/*
%{_infodir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing a secure layer (SSL)
Group:		System/Libraries
Requires:	%{name}-locales

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamexx}
Summary:	Library providing a secure layer (SSL)
Group:		System/Libraries

%description -n %{libnamexx}
This package contains a shared library for %{name}.

%files -n %{libnamexx}
%{_libdir}/lib%{name}xx.so.%{xxmajor}*

#----------------------------------------------------------------------------

%package -n %{libssl}
Summary:	Library providing a secure layer (SSL)
Group:		System/Libraries

%description -n %{libssl}
This package contains a shared library for %{name}.

%files -n %{libssl}
%{_libdir}/lib%{name}-openssl.so.%{sslmajor}*

#----------------------------------------------------------------------------

%package -n %{libdane}
Summary:	Library providing a secure layer (SSL)
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libdane}
This package contains a shared library for %{name}.

%files -n %{libdane}
%{_libdir}/lib%{name}-dane.so.%{danemajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamexx} = %{EVRD}
Requires:	%{libssl} = %{EVRD}
Requires:	%{libdane} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains all necessary files to compile or develop
programs/libraries that use %{name}.

%files -n %{devname}
%doc README.md
%license LICENSE
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%package locales
Summary:	Locale files for GnuTLS
Group:		System/Internationalization
BuildArch:	noarch

%description locales
Locale files for GnuTLS main library.

%files locales -f %{name}.lang

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{dirver}

%build
%configure \
	--disable-static \
	--with-included-libtasn1=no \
	--enable-openssl-compatibility \
	--disable-srp-authentication \
	--with-libz-prefix=%{_prefix} \
%ifnarch %{armx} %{mips}
	--enable-valgrind-tests \
%endif
	--enable-non-suiteb-curves \
	--disable-rpath \
	--disable-guile \
	--with-included-unistring

%make_build

%install
%make_install

%find_lang %{name}

# CVE-2021-20231 CVE-2021-20232
# CVE-2021-4209
# CVE-2022-2509

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13003 |21mr|gobject-introspection-1.71.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define typelibnames DBus-1.0 DBusGLib-1.0 GIRepository-2.0 GL-1.0 GLib-2.0 GModule-2.0 GObject-2.0 Gio-2.0 cairo-1.0 fontconfig-2.0 freetype2-2.0 libxml2-2.0 xfixes-4.0 xft-2.0 xlib-2.0 xrandr-1.3

%define url_ver %(echo %{version}|cut -d. -f1,2)

%bcond_with bootstrap

%define api 1.0
%define major 1
%define libname %mklibname girepository %{api} %{major}
%define devname %mklibname girepository -d

Summary:	GObject Introspection
Name:		gobject-introspection
Version:	1.71.0
Release:	1
License:	GPLv2+, LGPLv2.1+, MIT
Group:		Development/C
Url:		https://download.gnome.org/sources/gobject-introspection
Source0:	https://download.gnome.org/sources/gobject-introspection/%{url_ver}/%{name}-%{version}.tar.xz
# gi-find-deps.sh is a rpm helper for Provides and Requires. Script creates typelib()-style Provides/Requires.
Source1:	gi-find-deps.sh
Source2:	typelib.attr
Source3:	gobject-introspection-typelib.template
BuildRequires:	meson
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-gobject)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-mako
# these are needed by the g-ir-dep-tool
%if %{without bootstrap}
BuildRequires:	gobject-introspection >= 1.32.0-2
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 1.32.0
%endif

Requires:	%{libname} = %{EVRD}
Conflicts:	%mklibname girepository 1.0 0 < 0.6.10-5
%rename		gir-repository

# Provide typelib() symbols based on gobject-introspection-typelib.template
# The template is checked during install if it matches the installed *.typelib files.
%if %{with bootstrap}
%(cat %{SOURCE3} | awk '{ print "Provides: " $0}')
%endif

%description
The goal of the project is to describe the APIs and  collect them in
a uniform, machine readable format.

%files
%dir %{_libdir}/girepository-%{api}
%{_libdir}/girepository-%{api}/*.typelib

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GObject Introspection shared library
Group:		System/Libraries
Conflicts:	%{name} < 0.6.8-2

%description -n %{libname}
The goal of the project is to describe the APIs and  collect them in
a uniform, machine readable format.

%files -n %{libname}
%{_libdir}/libgirepository-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GObject Introspection development libraries
Group:		Development/C
# these two pkgs are needed for typelib requires generation
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
#gw /usr/bin/libtool is called in giscanner
Requires:	libtool
Requires:	python3-mako
Requires:	pcre
# gi-find-deps.sh
Requires:	bash
Provides:	libgirepository-devel = %{EVRD}
Provides:	girepository-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The goal of the project is to describe the APIs and  collect them in
a uniform, machine readable format.

%files -n %{devname}
%doc TODO NEWS
%{_bindir}/g-ir-annotation-tool
%{_bindir}/g-ir-compiler
%{_bindir}/g-ir-generate
%{_bindir}/g-ir-inspect
%{_bindir}/g-ir-scanner
%{_bindir}/g-ir-dep-tool
%{_libdir}/%{name}
%{_libdir}/libgirepository-%{api}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}-%{api}
%{_datadir}/aclocal/*.m4
%{_datadir}/%{name}-%{api}
#%{_datadir}/gtk-doc/html/gi
%dir %{_datadir}/gir-%{api}
%{_datadir}/gir-%{api}/*.gir
%{_datadir}/gir-%{api}/gir-1.2.rnc
%{_rpmconfigdir}/gi-find-deps.sh
%{_fileattrsdir}/typelib.attr
%{_rpmmacrodir}/*typelib*
%{_mandir}/man1/*


#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

grep -lr "file=sys.stderr" . | xargs sed -i -e "s/file=sys.stderr/sys.stderr/g"

%build
export LDFLAGS="-L%{_libdir}"
%meson
%meson_build

%install
%meson_install
install -D %{SOURCE1} %{buildroot}%{_rpmconfigdir}/gi-find-deps.sh
install -D -m 0664 %{SOURCE2} %{buildroot}%{_fileattrsdir}/typelib.attr
%install_macro typelib %{SOURCE2}

# tool was renamed
ln -s g-ir-inspect %{buildroot}%{_bindir}/g-ir-dep-tool

# comparing, if we provide all the symbols expected.
%if %{with bootstrap}
ls %{buildroot}%{_libdir}/girepository-1.0/*.typelib | sh %{SOURCE1} -P > gobject-introspection-typelib.installed
diff -s %{SOURCE3} gobject-introspection-typelib.installed
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13004 |21mr|gobject-introspection-1.72.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define typelibnames DBus-1.0 DBusGLib-1.0 GIRepository-2.0 GL-1.0 GLib-2.0 GModule-2.0 GObject-2.0 Gio-2.0 cairo-1.0 fontconfig-2.0 freetype2-2.0 libxml2-2.0 xfixes-4.0 xft-2.0 xlib-2.0 xrandr-1.3

%define url_ver %(echo %{version}|cut -d. -f1,2)

%bcond_with bootstrap

%define api 1.0
%define major 1
%define libname %mklibname girepository %{api} %{major}
%define devname %mklibname girepository -d

Summary:	GObject Introspection
Name:		gobject-introspection
Version:	1.72.0
Release:	2
License:	GPLv2+, LGPLv2.1+, MIT
Group:		Development/C
Url:		https://download.gnome.org/sources/gobject-introspection
Source0:	https://download.gnome.org/sources/gobject-introspection/%{url_ver}/%{name}-%{version}.tar.xz
# gi-find-deps.sh is a rpm helper for Provides and Requires. Script creates typelib()-style Provides/Requires.
Source1:	gi-find-deps.sh
Source2:	typelib.attr
Source3:	gobject-introspection-typelib.template
BuildRequires:	meson
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-gobject)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-mako
# these are needed by the g-ir-dep-tool
%if %{without bootstrap}
BuildRequires:	gobject-introspection >= 1.32.0-2
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 1.32.0
%endif

Requires:	%{libname} = %{EVRD}
Conflicts:	%mklibname girepository 1.0 0 < 0.6.10-5
%rename		gir-repository

# Provide typelib() symbols based on gobject-introspection-typelib.template
# The template is checked during install if it matches the installed *.typelib files.
%if %{with bootstrap}
%(cat %{SOURCE3} | awk '{ print "Provides: " $0}')
%endif

%description
The goal of the project is to describe the APIs and  collect them in
a uniform, machine readable format.

%files
%dir %{_libdir}/girepository-%{api}
%{_libdir}/girepository-%{api}/*.typelib

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GObject Introspection shared library
Group:		System/Libraries
Conflicts:	%{name} < 0.6.8-2

%description -n %{libname}
The goal of the project is to describe the APIs and  collect them in
a uniform, machine readable format.

%files -n %{libname}
%{_libdir}/libgirepository-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GObject Introspection development libraries
Group:		Development/C
# these two pkgs are needed for typelib requires generation
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
#gw /usr/bin/libtool is called in giscanner
Requires:	libtool
Requires:	python3-mako
Requires:	pcre
# gi-find-deps.sh
Requires:	bash
Provides:	libgirepository-devel = %{EVRD}
Provides:	girepository-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The goal of the project is to describe the APIs and  collect them in
a uniform, machine readable format.

%files -n %{devname}
%doc TODO NEWS
%{_bindir}/g-ir-annotation-tool
%{_bindir}/g-ir-compiler
%{_bindir}/g-ir-generate
%{_bindir}/g-ir-inspect
%{_bindir}/g-ir-scanner
%{_bindir}/g-ir-dep-tool
%{_libdir}/%{name}
%{_libdir}/libgirepository-%{api}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}-%{api}
%{_datadir}/aclocal/*.m4
%{_datadir}/%{name}-%{api}
#%{_datadir}/gtk-doc/html/gi
%dir %{_datadir}/gir-%{api}
%{_datadir}/gir-%{api}/*.gir
%{_datadir}/gir-%{api}/gir-1.2.rnc
%{_rpmconfigdir}/gi-find-deps.sh
%{_fileattrsdir}/typelib.attr
%{_rpmmacrodir}/*typelib*
%{_mandir}/man1/*


#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

grep -lr "file=sys.stderr" . | xargs sed -i -e "s/file=sys.stderr/sys.stderr/g"

%build
export LDFLAGS="-L%{_libdir}"
%meson
%meson_build

%install
%meson_install
install -D %{SOURCE1} %{buildroot}%{_rpmconfigdir}/gi-find-deps.sh
install -D -m 0664 %{SOURCE2} %{buildroot}%{_fileattrsdir}/typelib.attr
%install_macro typelib %{SOURCE2}

# tool was renamed
ln -s g-ir-inspect %{buildroot}%{_bindir}/g-ir-dep-tool

# comparing, if we provide all the symbols expected.
%if %{with bootstrap}
ls %{buildroot}%{_libdir}/girepository-1.0/*.typelib | sh %{SOURCE1} -P > gobject-introspection-typelib.installed
diff -s %{SOURCE3} gobject-introspection-typelib.installed
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13005 |21mr|gocr-0.52-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_as_needed 1

Summary:	OCR (Optical Character Recognition) program
Name:		gocr
Version:	0.52
Release:	2
License:	GPLv2
Group:		Graphics
URL:		http://jocr.sourceforge.net/
Source0:	http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-%{version}.tar.gz
Source1:	http://www-e.uni-magdeburg.de/jschulen/ocr/gocr-%{version}.tar.gz.asc
Source2:	%{name}-icons.tar.bz2
BuildRequires:	libnetpbm-devel
Requires:	gzip
Requires:	bzip2
Requires:	jpeg-progs
Requires:	netpbm
Requires:	transfig

%description
GOCR is an optical character recognition program, released under the
GNU General Public License. It reads images in many formats (pnm, pbm,
pgm, ppm, some pcx and tga image files (or PNM from stdin); if
pnm-tools installed and running linux-like system you can also use
pnm.gz, pnm.bz2, png, jpg, tiff, gif, bmp and others) and outputs
a text file.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# drop buggy tcl frontend
rm -rf %{buildroot}%{_bindir}/gocr.tcl

# Desktop menu - not needed without GUI frontend
#mkdir -p %{buildroot}/{%{_miconsdir},%{_liconsdir},%{_menudir}}
#bzcat %{SOURCE2}|tar xf - -C %{buildroot}/%{_datadir}
#
#mkdir -p %{buildroot}%{_datadir}/applications/
#cat << EOF > %{buildroot}%{_datadir}/applications/%{name}.desktop
#[Desktop Entry]
#Type=Application
#Exec=%{_bindir}/gocr
#Icon=%{name}
#Categories=Graphics;Viewer;
#Name=Gocr
#Name[ru]=Gocr
#Comment=Optical recognition program
#Comment[ru]=Система распознавания текста
#EOF

%clean

%files -n %{name}
%doc AUTHORS BUGS CREDITS HISTORY README REMARK.txt REVIEW TODO
%doc doc/{examples.txt,gocr.html,unicode.txt}
%{_mandir}/man1/*
%attr(755,root,root) %{_bindir}/*
#%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13006 |21mr|gofer-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rel 0.1

Summary:	A lightweight, extensible python agent
Name:		gofer
Version:	3.0.0
Release:	1
License:	LGPLv2
Group:		Development/Other
Url:		https://github.com/jortel/gofer/
Source0:	https://github.com/jortel/gofer/archive/gofer-%{version}-%{rel}.tar.gz?/%{name}-%{version}-%{rel}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
Requires:	python3-%{name} = %{EVRD}
BuildArch:	noarch

%description
Gofer provides an extensible, light weight, universal python agent.
The gofer core agent is a python daemon (service) that provides
infrastructure for exposing a remote API and for running Recurring
Actions. The APIs contributed by plug-ins are accessible by Remote
Method Invocation (RMI). The transport for RMI is AMQP using the
QPID message broker. Actions are also provided by plug-ins and are
executed at the specified interval.

%files
%doc LICENSE
%{_sysconfdir}/%{name}
%{_sysconfdir}/sysconfig/%{name}d
%dir %{_prefix}/lib/%{name}/plugins/
%{_datadir}/%{name}/plugins/
%dir %{_var}/log/%{name}/
%{_bindir}/%{name}*
%{_unitdir}/%{name}d.service
%{_mandir}/man1/gofer*

%post
%_post_service %{name}d

%preun
%_preun_service %{name}d

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Gofer python lib modules
Group:		Development/Python
%rename python-%{name}

%description -n python3-%{name}
Contains gofer python lib modules.

%files -n python3-%{name}
%doc LICENSE
%{py3_puresitedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}-%{rel}

%build
pushd src
%py3_build
popd
pushd docs/man/man1
gzip *
popd

%install
pushd src
%py3_install
popd

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/plugins
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/conf.d
mkdir -p %{buildroot}%{_sysconfdir}/init.d
mkdir -p %{buildroot}%{_var}/log/%{name}
mkdir -p %{buildroot}%{_var}/lib/%{name}/journal/watchdog
mkdir -p %{buildroot}%{_usr}/lib/%{name}/plugins
mkdir -p %{buildroot}%{_datadir}/%{name}/plugins
mkdir -p %{buildroot}%{_mandir}/man1

mkdir -p %{buildroot}/usr/bin
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/plugins
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/conf.d
mkdir -p %{buildroot}/%{_sysconfdir}/init.d
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}/%{_unitdir}
mkdir -p %{buildroot}/%{_usr}/lib/%{name}/plugins
mkdir -p %{buildroot}/%{_usr}/share/%{name}/plugins
mkdir -p %{buildroot}/%{_mandir}/man1

cp bin/* %{buildroot}/usr/bin
cp etc/%{name}/*.conf %{buildroot}/%{_sysconfdir}/%{name}
cp etc/sysconfig/%{name}d %{buildroot}/%{_sysconfdir}/sysconfig
cp docs/man/man1/* %{buildroot}/%{_mandir}/man1
cp plugins/demo.conf %{buildroot}/%{_sysconfdir}/%{name}/plugins
cp plugins/demo.py %{buildroot}/%{_usr}/share/%{name}/plugins
cp usr/lib/systemd/system/* %{buildroot}/%{_unitdir}

rm -rf %{buildroot}%{py3_puresitedir}/%{name}*.egg-info

# Disable virt plugin for now
rm -f %{buildroot}%{_sysconfdir}/%{name}/plugins/virt.conf
rm -f %{buildroot}%{_datadir}/%{name}/plugins/virt.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13007 |21mr|goffice-0.10.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api	0.10
%define major	10
%define libname	%mklibname %{name} %{api} %{major}
%define devname	%mklibname %{name} %{api} -d
%define girname	%mklibname %{name}-gir %{api}

Summary:	Set of document centric objects and utilities for GLib/GTK
Name:		goffice
Version:	0.10.50
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/goffice/%{url_ver}/%{name}-%{version}.tar.xz

BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	perl-IO-Compress
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxslt)
Obsoletes:	goffice0 < 0.10

%description
There are common operations for document centric applications that are
conceptually simple, but complex to implement fully.
 - plugins
 - load/save documents
 - undo/redo

%files -f %{name}-%{version}.lang
%doc README NEWS AUTHORS BUGS MAINTAINERS
%{_libdir}/%{name}/%{version}/
%dir %{_libdir}/%{name}/
%{_datadir}/%{name}/%{version}/mmlitex

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{summary}
Group:		%{group}

%description -n %{libname}
Shared library implementing document centric objects and utilities for
GLib/GTK.

%files -n %{libname}
%{_libdir}/libgoffice-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GOffice-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	%{summary}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files of the Goffice library.

%files -n %{devname}
%{_includedir}/libgoffice-%{api}/
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/goffice-%{api}/
%{_datadir}/gir-1.0/*.gir

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-introspection=yes

%make

%install
%makeinstall_std
%find_lang %{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13008 |21mr|golang-1.22.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%bcond_with bootstrap
# temporalily ignore test failures
%ifarch %{ix86} %{armx} %{riscv}
%bcond_without ignore_tests
%else
%bcond_with ignore_tests
%endif

# build ids are not currently generated:
# https://code.google.com/p/go/issues/detail?id=5238
#
# also, debuginfo extraction currently fails with
# "Failed to write file: invalid section alignment"
%global debug_package %{nil}

# we are shipping the full contents of src in the data subpackage, which
# contains binary-like things (ELF data for tests, etc)
%global _binaries_in_noarch_packages_terminate_build 0

# Do not check any files in doc or src for requires
%global __requires_exclude_from ^(%{_datadir}|/usr/lib)/%{name}/(doc|src)/.*$

# Don't alter timestamps of especially the .a files (or else go will rebuild later)
# Actually, don't strip at all since we are not even building debug packages and this corrupts the dwarf testdata
%global __strip /bin/true

# rpmbuild magic to keep from having meta dependency on libc.so.6
%define _use_internal_dependency_generator 0
%define __find_requires %{nil}
%global __spec_install_post /usr/lib/rpm/check-rpaths   /usr/lib/rpm/check-buildroot  \
  /usr/lib/rpm/brp-compress

%global golibdir %{_libdir}/golang

# Golang build options.

# Build golang using external/internal(close to cgo disabled) linking.
%ifarch %{ix86} %{x86_64} ppc64le %{armx} s390x %{riscv}
%global external_linker 1
%else
%global external_linker 0
%endif

# Build golang with cgo enabled/disabled(later equals more or less to internal linking).
%ifarch %{ix86} %{x86_64} ppc64le %{armx} s390x %{riscv}
%global cgo_enabled 1
%else
%global cgo_enabled 0
%endif

# Use golang/gcc-go as bootstrap compiler
%if %{with bootstrap}
%global golang_bootstrap 0
%global __cc /usr/bin/gcc
%global __cxx /usr/bin/g++
%else
# 1.12.7 dont like clang
%global __cc /usr/bin/gcc
%global __cxx /usr/bin/g++
%global golang_bootstrap 1
%endif

# Controls what ever we fail on failed tests
%if %{with ignore_tests}
%global fail_on_tests 0
%else
%global fail_on_tests 1
%endif

# Build golang shared objects for stdlib
%ifarch %{ix86} %{x86_64} ppc64le %{armx}
%global shared 1
%else
%global shared 0
%endif

# Pre build std lib with -race enabled
%global race 0

# Fedora GOROOT
%global goroot          /usr/lib/%{name}

%ifarch %{x86_64}
%global gohostarch  amd64
%endif
%ifarch %{ix86}
%global gohostarch  386
%endif
%ifarch %{arm}
%global gohostarch  arm
%endif
%ifarch aarch64
%global gohostarch  arm64
%endif
%ifarch ppc64
%global gohostarch  ppc64
%endif
%ifarch ppc64le
%global gohostarch  ppc64le
%endif
%ifarch s390x
%global gohostarch  s390x
%endif
%ifarch riscv64
%global gohostarch  riscv64
%endif

%global go_api %(echo %{version}|cut -d. -f1.2)

Name:           golang
Version:        1.22.4
Group:          Development/Other
Release:        2
Summary:        The Go Programming Language
# source tree includes several copies of Mark.Twain-Tom.Sawyer.txt under Public Domain
License:        BSD and Public Domain
URL:            http://golang.org/
Source0:        https://storage.googleapis.com/golang/go%{version}.src.tar.gz
# make possible to override default traceback level at build time by setting build tag rpm_crashtraceback
Source1:        fedora.go
Source1000:     golang.rpmlintrc
# The compiler is written in Go. Needs go(1.4+) compiler for build.
%if !%{golang_bootstrap}
BuildRequires:  gcc-go >= 5
%else
BuildRequires:  golang > 1.4
%endif
BuildRequires:  hostname
# for tests
BuildRequires:  pcre-devel
BuildRequires:  glibc-static-devel
BuildRequires:  perl-interpreter
BuildRequires:  procps-ng
BuildRequires:  timezone

Provides:       go = %{version}-%{release}

# Bundled/Vendored provides generated by
# go list -f {{.ImportPath}} ./src/vendor/... | sed "s:_$PWD/src/vendor/::g;s:_:.:;s:.*:Provides\: bundled(golang(&)):" && go list -f {{.ImportPath}} ./src/cmd/vendor/... | sed "s:_$PWD/src/cmd/vendor/::g;s:_:.:;s:.*:Provides\: bundled(golang(&)):"
Provides: bundled(golang(golang.org/x/crypto/chacha20poly1305))
Provides: bundled(golang(golang.org/x/crypto/cryptobyte))
Provides: bundled(golang(golang.org/x/crypto/cryptobyte/asn1))
Provides: bundled(golang(golang.org/x/crypto/curve25519))
Provides: bundled(golang(golang.org/x/crypto/internal/chacha20))
Provides: bundled(golang(golang.org/x/crypto/poly1305))
Provides: bundled(golang(golang.org/x/net/dns/dnsmessage))
Provides: bundled(golang(golang.org/x/net/http/httpguts))
Provides: bundled(golang(golang.org/x/net/http/httpproxy))
Provides: bundled(golang(golang.org/x/net/http2/hpack))
Provides: bundled(golang(golang.org/x/net/idna))
Provides: bundled(golang(golang.org/x/net/internal/nettest))
Provides: bundled(golang(golang.org/x/net/nettest))
Provides: bundled(golang(golang.org/x/text/secure))
Provides: bundled(golang(golang.org/x/text/secure/bidirule))
Provides: bundled(golang(golang.org/x/text/transform))
Provides: bundled(golang(golang.org/x/text/unicode))
Provides: bundled(golang(golang.org/x/text/unicode/bidi))
Provides: bundled(golang(golang.org/x/text/unicode/norm))
Provides: bundled(golang(github.com/google/pprof/driver))
Provides: bundled(golang(github.com/google/pprof/internal/binutils))
Provides: bundled(golang(github.com/google/pprof/internal/driver))
Provides: bundled(golang(github.com/google/pprof/internal/elfexec))
Provides: bundled(golang(github.com/google/pprof/internal/graph))
Provides: bundled(golang(github.com/google/pprof/internal/measurement))
Provides: bundled(golang(github.com/google/pprof/internal/plugin))
Provides: bundled(golang(github.com/google/pprof/internal/proftest))
Provides: bundled(golang(github.com/google/pprof/internal/report))
Provides: bundled(golang(github.com/google/pprof/internal/symbolizer))
Provides: bundled(golang(github.com/google/pprof/internal/symbolz))
Provides: bundled(golang(github.com/google/pprof/profile))
Provides: bundled(golang(github.com/google/pprof/third.party/d3))
Provides: bundled(golang(github.com/google/pprof/third.party/d3flamegraph))
Provides: bundled(golang(github.com/google/pprof/third.party/svgpan))
Provides: bundled(golang(github.com/ianlancetaylor/demangle))
Provides: bundled(golang(golang.org/x/arch/arm/armasm))
Provides: bundled(golang(golang.org/x/arch/arm64/arm64asm))
Provides: bundled(golang(golang.org/x/arch/ppc64/ppc64asm))
Provides: bundled(golang(golang.org/x/arch/x86/x86asm))
Provides: bundled(golang(golang.org/x/crypto/ssh/terminal))
Provides: bundled(golang(golang.org/x/sys/unix))
Provides: bundled(golang(golang.org/x/sys/windows))
Provides: bundled(golang(golang.org/x/sys/windows/registry))

Requires:       %{name}-bin = %{version}-%{release}
Requires:       %{name}-src = %{version}-%{release}
Requires:       go-srpm-macros

# Having documentation separate was broken
Obsoletes:      %{name}-docs < 1.1-4

# RPM can't handle symlink -> dir with subpackages, so merge back
Obsoletes:      %{name}-data < 1.1.1-4

# go1.4 deprecates a few packages
Obsoletes:      %{name}-vim < 1.4
Obsoletes:      emacs-%{name} < 1.4

Source100:      golang-gdbinit

%description
%{summary}.

%package       docs
Summary:       Golang compiler docs
Requires:      %{name} = %{version}-%{release}
BuildArch:     noarch
Obsoletes:     %{name}-docs < 1.1-4

%description   docs
%{summary}.

%package       misc
Summary:       Golang compiler miscellaneous sources
Requires:      %{name} = %{version}-%{release}
BuildArch:     noarch

%description   misc
%{summary}.

%package       tests
Summary:       Golang compiler tests for stdlib
Requires:      %{name} = %{version}-%{release}
BuildArch:     noarch

%description   tests
%{summary}.

%package        src
Summary:        Golang compiler source tree
BuildArch:      noarch
%description    src
%{summary}

%package        bin
Summary:        Golang core compiler tools
Requires:       go = %{version}-%{release}
# Pre-go1.5, all arches had to be bootstrapped individually, before usable, and
# env variables to compile for the target os-arch.
# Now the host compiler needs only the GOOS and GOARCH environment variables
# set to compile for the target os-arch.
Obsoletes:      %{name}-pkg-bin-linux-386 < 1.4.99
Obsoletes:      %{name}-pkg-bin-linux-amd64 < 1.4.99
Obsoletes:      %{name}-pkg-bin-linux-arm < 1.4.99
Obsoletes:      %{name}-pkg-linux-386 < 1.4.99
Obsoletes:      %{name}-pkg-linux-amd64 < 1.4.99
Obsoletes:      %{name}-pkg-linux-arm < 1.4.99
Obsoletes:      %{name}-pkg-darwin-386 < 1.4.99
Obsoletes:      %{name}-pkg-darwin-amd64 < 1.4.99
Obsoletes:      %{name}-pkg-windows-386 < 1.4.99
Obsoletes:      %{name}-pkg-windows-amd64 < 1.4.99
Obsoletes:      %{name}-pkg-plan9-386 < 1.4.99
Obsoletes:      %{name}-pkg-plan9-amd64 < 1.4.99
Obsoletes:      %{name}-pkg-freebsd-386 < 1.4.99
Obsoletes:      %{name}-pkg-freebsd-amd64 < 1.4.99
Obsoletes:      %{name}-pkg-freebsd-arm < 1.4.99
Obsoletes:      %{name}-pkg-netbsd-386 < 1.4.99
Obsoletes:      %{name}-pkg-netbsd-amd64 < 1.4.99
Obsoletes:      %{name}-pkg-netbsd-arm < 1.4.99
Obsoletes:      %{name}-pkg-openbsd-386 < 1.4.99
Obsoletes:      %{name}-pkg-openbsd-amd64 < 1.4.99

Obsoletes:      golang-vet < 0-12.1
Obsoletes:      golang-cover < 0-12.1

Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives

# We strip the meta dependency, but go does require glibc.
# This is an odd issue, still looking for a better fix.
Requires:       glibc
Requires:       %{__cc}
Requires:       git

%description    bin
%{summary}.

# Workaround old RPM bug of symlink-replaced-with-dir failure
%pretrans -p <lua>
for _,d in pairs({"api", "doc", "include", "lib", "src"}) do
  path = "%{goroot}/" .. d
  if posix.stat(path, "type") == "link" then
    os.remove(path)
    posix.mkdir(path)
  end
end

%if %{shared}
%package        shared
Summary:        Golang shared object libraries

%description    shared
%{summary}.
%endif

%if %{race}
%package        race
Summary:        Golang std library with -race enabled

Requires:       %{name} = %{version}-%{release}

%description    race
%{summary}
%endif

%prep
export LANG=en_US.utf-8
export LC_ALL=en_US.utf-8
%autosetup -p1 -n go

cp %{SOURCE1} ./src/runtime/

%build
# bootstrap compiler GOROOT
%if !%{golang_bootstrap}
export GOROOT_BOOTSTRAP=/
%else
export GOROOT_BOOTSTRAP=%{goroot}
%endif

# set up final install location
export GOROOT_FINAL=%{goroot}

export GOHOSTOS=linux
export GOHOSTARCH=%{gohostarch}

pushd src
# use our gcc options for this build, but store gcc as default for compiler
export CC="%{__cc}"
export CXX="%{__cxx}"
export CC_FOR_TARGET="%{__cc}"
export CFLAGS="%{optflags}"
export LDFLAGS="%{build_ldflags}"
export GOOS=linux
export GOARCH=%{gohostarch}
%if !%{external_linker}
export GO_LDFLAGS="-linkmode internal"
%endif
%if !%{cgo_enabled}
export CGO_ENABLED=0
%endif
./make.bash -v
popd

# build shared std lib
%if %{shared}
GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -buildmode=shared -v -x std
%endif

%if %{race}
GOROOT=$(pwd) PATH=$(pwd)/bin:$PATH go install -race -v -x std
%endif

%install
rm -rf %{buildroot}
# remove GC build cache
rm -rf pkg/obj/go-build/*

# create the top level directories
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{goroot}

# install everything into libdir (until symlink problems are fixed)
# https://code.google.com/p/go/issues/detail?id=5830
cp -apv api bin doc lib pkg src misc test go.env VERSION \
   %{buildroot}%{goroot}

# bz1099206
find %{buildroot}%{goroot}/src -exec touch -r %{buildroot}%{goroot}/VERSION "{}" \;
# and level out all the built archives
touch %{buildroot}%{goroot}/pkg
find %{buildroot}%{goroot}/pkg -exec touch -r %{buildroot}%{goroot}/pkg "{}" \;
# generate the spec file ownership of this source tree and packages
cwd=$(pwd)
src_list=$cwd/go-src.list
pkg_list=$cwd/go-pkg.list
shared_list=$cwd/go-shared.list
race_list=$cwd/go-race.list
misc_list=$cwd/go-misc.list
docs_list=$cwd/go-docs.list
tests_list=$cwd/go-tests.list
rm -f $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list $race_list
touch $src_list $pkg_list $docs_list $misc_list $tests_list $shared_list $race_list
pushd %{buildroot}%{goroot}
    find src/ -type d -a \( ! -name testdata -a ! -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $src_list
    find src/ ! -type d -a \( ! -ipath '*/testdata/*' -a ! -name '*_test.go' \) -printf '%{goroot}/%p\n' >> $src_list

    find bin/ pkg/ -type d -a ! -path '*_dynlink/*' -a ! -path '*_race/*' -printf '%%%dir %{goroot}/%p\n' >> $pkg_list
    find bin/ pkg/ ! -type d -a ! -path '*_dynlink/*' -a ! -path '*_race/*' -printf '%{goroot}/%p\n' >> $pkg_list

    find doc/ -type d -printf '%%%dir %{goroot}/%p\n' >> $docs_list
    find doc/ ! -type d -printf '%{goroot}/%p\n' >> $docs_list

    find misc/ -type d -printf '%%%dir %{goroot}/%p\n' >> $misc_list
    find misc/ ! -type d -printf '%{goroot}/%p\n' >> $misc_list

%if %{shared}
    mkdir -p %{buildroot}/%{_libdir}/
    mkdir -p %{buildroot}/%{golibdir}/
    for file in $(find .  -iname "*.so" ); do
        chmod 755 $file
        mv  $file %{buildroot}/%{golibdir}
        pushd $(dirname $file)
        ln -fs %{golibdir}/$(basename $file) $(basename $file)
        popd
        echo "%%{goroot}/$file" >> $shared_list
        echo "%%{golibdir}/$(basename $file)" >> $shared_list
    done
    find pkg/*_dynlink/ -type d -printf '%%%dir %{goroot}/%p\n' >> $shared_list
    find pkg/*_dynlink/ ! -type d -printf '%{goroot}/%p\n' >> $shared_list
%endif

%if %{race}

    find pkg/*_race/ -type d -printf '%%%dir %{goroot}/%p\n' >> $race_list
    find pkg/*_race/ ! -type d -printf '%{goroot}/%p\n' >> $race_list

%endif

    find test/ -type d -printf '%%%dir %{goroot}/%p\n' >> $tests_list
    find test/ ! -type d -printf '%{goroot}/%p\n' >> $tests_list
    find src/ -type d -a \( -name testdata -o -ipath '*/testdata/*' \) -printf '%%%dir %{goroot}/%p\n' >> $tests_list
    find src/ ! -type d -a \( -ipath '*/testdata/*' -o -name '*_test.go' \) -printf '%{goroot}/%p\n' >> $tests_list
    # this is only the zoneinfo.zip
    find lib/ -type d -printf '%%%dir %{goroot}/%p\n' >> $tests_list
    find lib/ ! -type d -printf '%{goroot}/%p\n' >> $tests_list
popd

# remove the doc Makefile
rm -rfv %{buildroot}%{goroot}/doc/Makefile

# put binaries to bindir, linked to the arch we're building,
# leave the arch independent pieces in {goroot}
mkdir -p %{buildroot}%{goroot}/bin/linux_%{gohostarch}
ln -sf %{goroot}/bin/go %{buildroot}%{goroot}/bin/linux_%{gohostarch}/go
ln -sf %{goroot}/bin/gofmt %{buildroot}%{goroot}/bin/linux_%{gohostarch}/gofmt

# ensure these exist and are owned
mkdir -p %{buildroot}%{gopath}/src/github.com
mkdir -p %{buildroot}%{gopath}/src/bitbucket.org
mkdir -p %{buildroot}%{gopath}/src/code.google.com/p
mkdir -p %{buildroot}%{gopath}/src/golang.org/x

# make sure these files exist and point to alternatives
rm -f %{buildroot}%{_bindir}/go
ln -sf /etc/alternatives/go %{buildroot}%{_bindir}/go
rm -f %{buildroot}%{_bindir}/gofmt
ln -sf /etc/alternatives/gofmt %{buildroot}%{_bindir}/gofmt

# gdbinit
mkdir -p %{buildroot}%{_sysconfdir}/gdbinit.d
cp -av %{SOURCE100} %{buildroot}%{_sysconfdir}/gdbinit.d/golang.gdb

%check
export GOROOT=$(pwd -P)
export PATH="$GOROOT"/bin:"$PATH"
cd src

export CC="%{__cc}"
export CFLAGS="%{optflags}"
export LDFLAGS="%{build_ldflags}"
%if !%{external_linker}
export GO_LDFLAGS="-linkmode internal"
%endif
%if !%{cgo_enabled} || !%{external_linker}
export CGO_ENABLED=0
%endif

# make sure to not timeout
export GO_TEST_TIMEOUT_SCALE=20

%if %{fail_on_tests}
#./run.bash --no-rebuild -v -v -v -k
%else
#./run.bash --no-rebuild -v -v -v -k || :
%endif
cd ..

%post bin
%{_sbindir}/update-alternatives --install %{_bindir}/go \
    go %{goroot}/bin/go 90 \
    --slave %{_bindir}/gofmt gofmt %{goroot}/bin/gofmt

%preun bin
if [ $1 = 0 ]; then
    %{_sbindir}/update-alternatives --remove go %{goroot}/bin/go
fi

%files
%doc LICENSE PATENTS
# VERSION has to be present in the GOROOT, for `go install std` to work
%doc %{goroot}/VERSION
%dir %{goroot}/doc
%doc %{goroot}/doc/*

# go files
%dir %{goroot}
%exclude %{goroot}/bin/
%exclude %{goroot}/pkg/
%exclude %{goroot}/src/
%exclude %{goroot}/doc/
%exclude %{goroot}/misc/
%exclude %{goroot}/test/
%exclude %{goroot}/go.env
%{goroot}/*

# ensure directory ownership, so they are cleaned up if empty
%dir %{gopath}
%dir %{gopath}/src
%dir %{gopath}/src/github.com/
%dir %{gopath}/src/bitbucket.org/
%dir %{gopath}/src/code.google.com/
%dir %{gopath}/src/code.google.com/p/
%dir %{gopath}/src/golang.org
%dir %{gopath}/src/golang.org/x

# gdbinit (for gdb debugging)
%{_sysconfdir}/gdbinit.d

%files -f go-src.list src

%files -f go-docs.list docs

%files -f go-misc.list misc

%files -f go-tests.list tests

%files -f go-pkg.list bin
%{_bindir}/go
%{_bindir}/gofmt
%{goroot}/go.env

%if %{shared}
%files -f go-shared.list shared
%endif

%if %{race}
%files -f go-race.list race
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13009 |21mr|golang-github-bgentry-speakeasy-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/bgentry/speakeasy
%global goipath         github.com/bgentry/speakeasy
Version:                0.1.0

%gometa

%global common_description %{expand:
This package provides cross-platform Go helpers for taking user input from the
terminal while not echoing the input back (similar to getpasswd). The package
uses syscalls to avoid any dependence on cgo, and is therefore compatible with
cross-compiling.}

%global golicenses      LICENSE LICENSE_WINDOWS
%global godocs          example Readme.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Cross-platform golang helpers for reading password input without cgo
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13010 |21mr|golang-github-BurntSushi-toml-0-0.10.git2ceedfe
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)

# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 1
# Run tests in check section
%global with_check 1
# Generate unit-test rpm
%global with_unit_test 0

%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package   %{nil}
%endif

%if ! 0%{?gobuild:1}
%define gobuild(o:) go build -ldflags "${LDFLAGS:-} -B 0x$(head -c20 /dev/urandom|od -An -tx1|tr -d ' \\n')" -a -v -x %{?**};
%endif

%global provider        github
%global provider_tld    com
%global project         BurntSushi
%global repo            toml
# https://github.com/BurntSushi/toml
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}
%global commit          2ceedfee35ad3848e49308ab0c9a4f640cfb5fb2
%global shortcommit     %(c=%{commit}; echo ${c:0:7})

Name:		golang-%{provider}-%{project}-%{repo}
Version:	0
Release:	0.10.git%{shortcommit}%{?dist}
Summary:	TOML parser and encoder for Go with reflection
Group:		Development/Other
License:	BSD
URL:		https://%{provider_prefix}
Source0:	https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
Provides:	tomlv = %{version}-%{release}

# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch:  %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}

%description
%{summary}

%files
%license COPYING README.md
%{_bindir}/tomlv

#---------------------------------------------------------------------------------------
%if 0%{?with_devel}
%package devel
Summary:	%{summary}
Group:		Development/Other
BuildArch:	noarch

%if 0%{?with_check}
%endif

Provides:	golang(%{import_path}) = %{version}-%{release}

%description devel
%{summary}

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

%files devel -f devel.file-list
%license COPYING README.md
%doc README.md
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}

%endif

#---------------------------------------------------------------------------------------

%if 0%{?with_unit_test} && 0%{?with_devel}
%package unit-test
Summary:	Unit tests for %{name} package
Group:		Development/Other
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}

%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif

# test subpackage tests code from devel subpackage
Requires:        %{name}-devel = %{version}-%{release}

%description unit-test
%{summary}

This package contains unit tests for project
providing packages with %{import_path} prefix.

%files unit-test -f unit-test.file-list
%license COPYING

%endif

#---------------------------------------------------------------------------------------

%prep
%setup -q -n %{repo}-%{commit}

%build
mkdir -p src/github.com/BurntSushi
ln -s ../../../ src/github.com/BurntSushi/toml

%if ! 0%{?with_bundled}
export GOPATH=$(pwd):%{gopath}
%else
export GOPATH=$(pwd):$(pwd)/Godeps/_workspace:%{gopath}
%endif

%gobuild -o bin/tomlv %{import_path}/cmd/tomlv

%install
install -d %{buildroot}/%{_bindir}
install -p -m 755 bin/tomlv %{buildroot}%{_bindir}/tomlv

# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
# find all *.go but no *_test.go files and generate unit-test.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
done
%endif

# testing files for this project
%if 0%{?with_unit_test} && 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test.file-list
for file in $(find . -iname "*_test.go"); do
    echo "%%dir %%{gopath}/src/%%{import_path}/$(dirname $file)" >> devel.file-list
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
done
%endif

%if 0%{?with_devel}
sort -u -o devel.file-list devel.file-list
%endif

%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif

%if ! 0%{?gotest:1}
%global gotest go test
%endif

%gotest %{import_path}
%endif

#define license tag if not already defined
%{!?_licensedir:%global license %doc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13011 |21mr|golang-github-cespare-xxhash-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/cespare/xxhash
%global goipath         github.com/cespare/xxhash
Version:                2.1.2

%gometa

%global goaltipaths     github.com/cespare/xxhash/v2

%global common_description %{expand:
xxhash is a Go implementation of the 64-bit xxHash algorithm, XXH64. This is a
high-quality hashing algorithm that is much faster than anything in the Go
standard library.}

%global golicenses      LICENSE.txt
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        Go implementation of the 64-bit xxHash algorithm (XXH64)
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in xxhsum; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck
%endif

%files
%license %{golicenses}
%doc %{godocs}
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13012 |21mr|golang-github-cockroachdb-logtags-0-0.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/cockroachdb/logtags
%global goipath         github.com/cockroachdb/logtags
%global commit          dabe8e521a4ffbce9a63bffceb5bcbc5159effef

%gometa

%global common_description %{expand:
Key/value annotations for Go contexts.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Version:        0
Release:        0.3
Summary:        Key/value annotations for Go contexts
Group:          Development/Other
# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13013 |21mr|golang-github-cockroachdb-redact-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/cockroachdb/redact
%global goipath         github.com/cockroachdb/redact
Version:                1.1.0

%gometa

%global common_description %{expand:
Utilities to redact Go strings for confidentiality.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        Utilities to redact Go strings for confidentiality
Group:          Development/Other
# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13014 |21mr|golang-github-coreos-iptables-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/coreos/go-iptables
%global goipath         github.com/coreos/go-iptables
Version:                0.5.0

%gometa

%global common_description %{expand:
Go bindings for iptables utility.

In-kernel netfilter does not have a good userspace API. The tables are
manipulated via setsockopt that sets/replaces the entire table. Changes to
existing table need to be resolved by userspace code which is difficult and
error-prone. Netfilter developers heavily advocate using iptables utlity for
programmatic manipulation.

go-iptables wraps invocation of iptables utility with functions to append and
delete rules; create, clear and delete chains.}

%global golicenses      LICENSE NOTICE
%global godocs          README.md code-of-conduct.md

%global gosupfiles      glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Go wrapper around iptables utility
Group:          Development/Other

# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.lock
Source2:        glide.yaml

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{S:1} %{S:2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck -d iptables
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13015 |21mr|golang-github-coreos-semver-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/coreos/go-semver
%global goipath         github.com/coreos/go-semver
Version:                0.3.0

%gometa

%global common_description %{expand:
Go-semver is a semantic versioning library for Go. It lets you parse and compare
two semantic version strings.}

%global golicenses      LICENSE NOTICE
%global godocs          README.md code-of-conduct.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Go semantic versioning library
Group:          Development/Other
# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.lock
Source2:        glide.yaml

%if %{with check}
# Tests
BuildRequires:  golang(gopkg.in/yaml.v2)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13016 |21mr|golang-github-coreos-systemd-22.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/coreos/go-systemd
%global goipath         github.com/coreos/go-systemd
Version:                22.3.2

%gometa

%global goaltipaths     github.com/coreos/go-systemd/v22

%global common_description %{expand:
Go bindings to systemd. The project has several packages:

 - activation - for writing and using socket activation from Go
 - daemon - for notifying systemd of service status changes
 - dbus - for starting/stopping/inspecting running services and units
 - journal - for writing to systemd's logging service, journald
 - sdjournal - for reading from journald by wrapping its C API
 - login1 - for integration with the systemd logind API
 - machine1 - for registering machines/containers with systemd
 - unit - for (de)serialization and comparison of unit files
}

%global golicenses      LICENSE NOTICE
%global godocs          examples CONTRIBUTING.md README.md code-of-conduct.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Go bindings to systemd socket activation, journal, D-Bus, and unit files
Group:          Development/Other
# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.lock
Source2:        glide.yaml

BuildRequires:  golang(github.com/godbus/dbus/v5)

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
# internal/dlopen: https://github.com/coreos/go-systemd/issues/339
%gocheck -d dbus -d journal -d login1 -d machine1 -d sdjournal -d import1 -d internal/dlopen -d util
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13017 |21mr|golang-github-cpuguy83-go-md2man-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package   %{nil}
%global provider        github
%global provider_tld    com
%global project         cpuguy83
%global repo            go-md2man
# https://github.com/cpuguy83/go-md2man
%global goipath         %{provider}.%{provider_tld}/%{project}/%{repo}


%global gosupfiles glide.lock glide.yaml

%global golicenses      LICENSE.md
%global godocs          README.md go-md2man.1.md

Name:		golang-%{provider}-%{project}-%{repo}
Version:	2.0.1
Release:	1
Summary:	Process markdown into manpages
License:	MIT
Group:		System/Base
URL:		https://%{goipath}
Source0:	https://%{goipath}/archive/v%{version}/%{repo}-%{version}.tar.gz
Source1:	glide.yaml
Source2:	glide.lock
Provides:	%{repo} = %{version}-%{release}
ExclusiveArch:	%{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm} aarch64 ppc64le}
BuildRequires:	golang >= 1.2.1-3
BuildRequires:	go-rpm-macros
BuildRequires:	golang(github.com/russross/blackfriday)
Provides:	golang-github-cpuguy83-md2man = %{EVRD}
Provides:	go-md2man = %{version}-%{release}

%description
%{repo} is a golang tool using blackfriday to process markdown into
manpages.

%gopkg

%prep
%autosetup -p1 -n %{repo}-%{version}
cp %{S:1} %{S:2} .

# Make $GOPATH work with golang >= 1.16
# https://www.opennet.ru/opennews/art.shtml?num=54605
# export GO111MODULE=off

%build
%ifarch %{e2k}
export GO111MODULE=off
%endif
mkdir -p _build/src/%{provider}.%{provider_tld}/%{project}
ln -s $(pwd) ./_build/src/%{goipath}

export GOPATH=$(pwd)/_build:%{gopath}

pushd $(pwd)/_build/src
%gobuild -o ./go-md2man %{goipath}
popd


%install
# install go-md2man binary
install -d %{buildroot}%{_bindir}
install -p -m 755 ./_build/src/%{repo} %{buildroot}%{_bindir}

%files
%license LICENSE.md
%doc README.md
%{_bindir}/%{repo}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13018 |21mr|golang-github-cpuguy83-md2man-2.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/cpuguy83/go-md2man
%global goipath         github.com/cpuguy83/go-md2man
Version:                2.0.1

%gometa

%global goaltipaths     github.com/cpuguy83/go-md2man/v2

%global common_description %{expand:
Converts markdown into roff (man pages).}

%global golicenses      LICENSE.md
%global godocs          README.md go-md2man.1.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        3
Group:          Development/Other
Summary:        Converts markdown into roff (man pages)

License:        MIT
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

BuildRequires:  golang(github.com/russross/blackfriday/v2)
Provides:       go-md2man = %{version}-%{release}

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{S:1} %{S:2} .

%build
%gobuild -o %{gobuilddir}/bin/go-md2man %{goipath}

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck
%endif

%files
%license %{golicenses}
%doc %{godocs}
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13019 |21mr|golang-github-creack-pty-1.1.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/creack/pty
%global goipath         github.com/creack/pty
Version:                1.1.18

%gometa

%global common_description %{expand:
Pty is a Go package for using unix pseudo-terminals.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        PTY interface for Go
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13020 |21mr|golang-github-d2g-dhcp4-0-0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/d2g/dhcp4
%global goipath         github.com/d2g/dhcp4
%global commit          a1d1b6c41b1ce8a71a5121a9cee31809c4707d9c

%gometa

%global common_description %{expand:
A DHCP library written in Go.}

%global golicenses      LICENSE
%global godocs          README.md

%global gosupfiles      glide.lock glide.yaml

Name:           %{goname}
Version:        0
Release:        0.1
Summary:        DHCP4 library written in Go
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{S:1} %{S:2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13021 |21mr|golang-github-davecgh-spew-1.1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/davecgh/go-spew
%global goipath         github.com/davecgh/go-spew
Version:                1.1.1

%gometa

# Remove in F33:
%global godevelheader %{expand:
Obsoletes:      golang-github-davecgh-go-spew-devel < 1.1.1-3
}

%global common_description %{expand:
Go-spew implements a deep pretty printer for Go data structures to aid in
debugging. A comprehensive suite of tests with 100% test coverage is
provided to ensure proper functionality.}

%global golicenses      LICENSE
%global godocs          README.md test_coverage.txt

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        10
Summary:        Implements a deep pretty printer for go data structures to aid in debugging
Group:		Development/Other
License:        ISC
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.lock
Source2:        glide.yaml

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{S:1} %{S:2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Fri Jul 05 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.1.1-4
- Add Obsoletes for old name.

* Mon Apr 15 18:20:17 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.1.1-3
- Update to new macros

* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Mon Oct 29 2018 Robert-André Mauchin <zebob.m@gmail.com> - 0.1.0-1.20181029git272ad12
- Update to upstream v1.1.1

* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org> - 1.1.0-4
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Sat Jun 09 2018 Jan Chaloupka <jchaloup@redhat.com> - 1.1.0-2
- Upload glide files

* Mon Mar 26 2018 Robert-André Mauchin <zebob.m@gmail.com> - 1.1.0-1
- Update to upstream v1.1.0
- Update to new guidelines for Go

* Wed Feb 28 2018 Jan Chaloupka <jchaloup@redhat.com> - 0-0.16.20161107git6d21280
- Autogenerate some parts using the new macros

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.15.git6d21280
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.14.git6d21280
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.13.git6d21280
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.12.git6d21280
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Wed Jan 18 2017 Jan Chaloupka <jchaloup@redhat.com> - 0-0.11.git6d21280
- Bump to upstream 6d212800a42e8ab5c146b8ace3490ee17e5225f9
  related: #1248791

* Fri Jan 13 2017 Jan Chaloupka <jchaloup@redhat.com> - 0-0.10.git3e6e67c
- Polish the spec file
  related: #1248791

* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.9.git3e6e67c
- https://fedoraproject.org/wiki/Changes/golang1.7

* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.8.git3e6e67c
- https://fedoraproject.org/wiki/Changes/golang1.6

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.7.git3e6e67c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Sat Sep 12 2015 jchaloup <jchaloup@redhat.com> - 0-0.6.git3e6e67c
- Update to spec-2.1
  related: #1248791

* Thu Jul 30 2015 jchaloup <jchaloup@redhat.com> - 0-0.5.git3e6e67c
- Update spec file to spec-2.0
  resolves: #1248791

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.4.git3e6e67c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Mon Apr 20 2015 jchaloup <jchaloup@redhat.com> - 0-0.3.git3e6e67c
- Bump to upstream 3e6e67c4dcea3ac2f25fd4731abc0e1deaf36216
  related: #1172198

* Fri Feb 06 2015 jchaloup <jchaloup@redhat.com> - 0-0.2.git1aaf839
- Bump to upstream 1aaf839fb07e099361e445273993ccd9adc21b07
  related: #1172198

* Tue Dec 09 2014 jchaloup <jchaloup@redhat.com> - 0-0.1.git83f84dc
- First package for Fedora
  resolves: #1172198


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13022 |21mr|golang-github-fsnotify-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

%define _duplicate_files_terminate_build 0

# https://github.com/fsnotify/fsnotify
%global goipath         github.com/fsnotify/fsnotify
Version:                1.5.1

%gometa

%global goaltipaths     gopkg.in/fsnotify/fsnotify.v1 gopkg.in/fsnotify/v1/fsnotify

%global common_description %{expand:
Cross-platform file system notifications for Go.}

%global golicenses      LICENSE
%global godocs          AUTHORS CHANGELOG.md CONTRIBUTING.md README.md

Name:           %{goname}
Release:        1
Summary:        Cross-platform file system notifications for Go
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(golang.org/x/sys/unix)

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13023 |21mr|golang-github-glog-0-0.31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/golang/glog
%global goipath         github.com/golang/glog
%global commit          9ef845f417d839250ceabbc25c1b26101e772dd7

%gometa

%global common_description %{expand:
This is an efficient pure Go implementation of leveled logs in the
manner of the open source C++ package.

By binding methods to booleans it is possible to use the log package
without paying the expense of evaluating the arguments to the log.
Through the -vmodule flag, the package also provides fine-grained
control over logging at the file level.}

%global golicenses      LICENSE
%global godocs          README

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Version:        0
Release:        0.31
Summary:        Leveled execution logs for Go
Group:          Development/Other
# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13024 |21mr|golang-github-godbus-dbus-5.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
# Needs a functional D-Bus install
%bcond_with check

# https://github.com/godbus/dbus
%global goipath         github.com/godbus/dbus
Version:                5.0.6

%gometa

%global goaltipaths     github.com/godbus/dbus/v5

%global common_description %{expand:
Dbus is a simple library that implements native Go client bindings for the D-Bus
message bus system.}

%global golicenses      LICENSE
%global godocs          _examples CONTRIBUTING.md README.markdown

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Native Go bindings for D-Bus
Group:          Development/Other
# Upstream license specification: BSD-2-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13025 |21mr|golang-github-gogo-protobuf-1.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/gogo/protobuf
%global goipath         github.com/gogo/protobuf
Version:                1.3.2

%gometa

%global common_description %{expand:
Gogoprotobuf is a fork of golang/protobuf with extra code generation features.

This code generation is used to achieve:

 - fast marshalling and unmarshalling
 - more canonical Go structures
 - goprotobuf compatibility
 - less typing by optionally generating extra helper code
 - peace of mind by optionally generating test and benchmark code
 - other serialization formats}

%global golicenses      LICENSE
%global godocs          AUTHORS CONTRIBUTORS README bench.md custom_types.md Readme.md extensions.md

Name:           %{goname}
Release:        2
Summary:        Protocol buffers for Go with gadgets
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Patch0:         protobuf-imports.patch
BuildRequires:  protobuf-compiler

%description
%{common_description}

%gopkg

%prep
%goprep
%apply_patches

%build
for cmd in protoc-gen-gogo protoc-gen-gofast protoc-min-version protoc-gen-combo protoc-gen-gostring protoc-gen-gogoslick protoc-gen-gogotypes protoc-gen-gogofaster gogoreplace conformance protoc-gen-gogofast; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck -t protoc-gen-gogo -d test/stdtypes -d test/moredefaults -d test/dashfilename -d test/embedconflict -d test/issue270 -r .*/unsafeunmarshaler -r .*/unsafeboth -r .*/unsafemarshaler -d test/packed
%endif

%files
%license LICENSE
%doc AUTHORS CONTRIBUTORS README bench.md custom_types.md Readme.md extensions.md
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13026 |21mr|golang-github-google-cmp-0.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/google/go-cmp
%global goipath         github.com/google/go-cmp
Version:                0.5.4

%gometa

%global common_description %{expand:
This package is intended to be a more powerful and safer alternative
to reflect.DeepEqual for comparing whether two values are semantically
equal.}

%global golicenses      LICENSE
%global godocs          CONTRIBUTING.md README.md

Name:           %{goname}
Release:        1
Summary:        Package for comparing Go values in tests
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(golang.org/x/xerrors)

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13027 |21mr|golang-github-google-uuid-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/google/uuid
%global goipath         github.com/google/uuid
Version:                1.3.0

%gometa

%global common_description %{expand:
The Uuid package generates and inspects UUIDs based on RFC 4122 and DCE 1.1:
Authentication and Security Services.

This package is based on the github.com/pborman/uuid package (previously named
code.google.com/p/go-uuid). It differs from these earlier packages in that a
UUID is a 16 byte array rather than a byte slice. One loss due to this change is
the ability to represent an invalid UUID (vs a NIL UUID).}

%global golicenses      LICENSE
%global godocs          CONTRIBUTING.md CONTRIBUTORS README.md

Name:           %{goname}
Release:        1
Summary:        Go library to generate and inspect UUIDs
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13028 |21mr|golang-github-hydrogen18-memlistener-0-0.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/hydrogen18/memlistener
%global goipath         github.com/hydrogen18/memlistener
%global commit          dcc25e7acd91be02da6708e2fccafaa726375ac4

%gometa

%global common_description %{expand:
An in memory listener for testing socket & HTTP servers in Golang.}

%global golicenses      LICENSE
%global godocs          example

Name:           %{goname}
Version:        0
Release:        0.3
Summary:        An in memory listener for testing socket & HTTP servers in Golang
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13029 |21mr|golang-github-iancoleman-strcase-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/iancoleman/strcase
%global goipath         github.com/iancoleman/strcase
Version:                0.2.0

%gometa

%global common_description %{expand:
A Golang package for converting to snake_case or CamelCase.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        A Golang package for converting to snake_case or CamelCase
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13030 |21mr|golang-github-kr-fs-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/kr/fs
%global goipath         github.com/kr/fs
Version:                0.1.0

%gometa

%global common_description %{expand:
Package fs provides filesystem-related functions.}

%global golicenses      LICENSE
%global godocs          Readme

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Filesystem-related functions for Go
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13031 |21mr|golang-github-kr-pretty-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/kr/pretty
%global goipath         github.com/kr/pretty
Version:                0.3.0

%gometa

%global common_description %{expand:
Package pretty provides pretty-printing for go values. This is useful during
debugging, to avoid wrapping long output lines in the terminal.}

%global golicenses      License
%global godocs          Readme

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Pretty printing for go values
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

BuildRequires:  golang(github.com/kr/text)
BuildRequires:  golang(github.com/rogpeppe/go-internal/fmtsort)

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13032 |21mr|golang-github-kr-pty-1.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/kr/pty
%global goipath         github.com/kr/pty
Version:                1.1.8

%gometa

%global common_description %{expand:
Go package for using unix pseudo-terminals.}

%global golicenses      License
%global godocs          README.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Go package for using unix pseudo-terminals
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

BuildRequires:  golang(github.com/creack/pty)

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13033 |21mr|golang-github-kr-text-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/kr/text
%global goipath         github.com/kr/text
Version:                0.2.0

%gometa

%global common_description %{expand:
Miscellaneous functions for formatting text.}

%global golicenses      License
%global godocs          Readme Readme-colwriter Readme-mc

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Miscellaneous functions for formatting text
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

BuildRequires:  golang(github.com/kr/pty)

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .
mv colwriter/Readme Readme-colwriter
mv mc/Readme Readme-mc

%build
for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done
%gobuild -o %{gobuilddir}/bin/go-mc %{goipath}/mc

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck
%endif

%files
%license %{golicenses}
%doc %{godocs}
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13034 |21mr|golang-github-nxadm-tail-1.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/nxadm/tail
%global goipath         github.com/nxadm/tail
Version:                1.4.6

%gometa

%global common_description %{expand:
Go package for reading from continously updated files (tail -f).}

%global golicenses      LICENSE
%global godocs          CHANGES.md README.md

Name:           %{goname}
Release:        1
Summary:        Read from continously updated files (tail -f)
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/fsnotify/fsnotify)
BuildRequires:  golang(gopkg.in/tomb.v1)

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
for test in "TestInotify_WaitForCreateThenMove" \
; do
awk -i inplace '/^func.*'"$test"'\(/ { print; print "\tt.Skip(\"disabled failing test\")"; next}1' $(grep -rl $test)
done
%gocheck
%endif

%files
%license LICENSE
%doc CHANGES.md README.md
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13035 |21mr|golang-github-openprinting-goipp-1.1.0-1.git94c92a.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 94c92a6d5d2b2591683a3a50f94b333a49b99220
%define commit_short %(echo %{commit} | head -c6)
%global goipath github.com/OpenPrinting/goipp
%global golicenses LICENSE
%global godocs README.md index.md

Summary:	IPP core protocol in pure Go (RFC 8010)
Name:		golang-github-openprinting-goipp
Group:		Development/Other
License:	BSD
Version:	1.1.0
Release:	1.git%{commit_short}.1
Url:		https://github.com/OpenPrinting/goipp
Source0:	https://github.com/OpenPrinting/goipp/archive/%{commit}.tar.gz?/goipp-%{commit}.tar.gz
BuildRequires:	go-srpm-macros
%gometa

%description
Package goipp implements the IPP core protocol in pure Go (RFC 8010).

%gopkg

%prep
%goprep

%install
%gopkginstall

%check
%gocheck

# https://bugzilla.redhat.com/show_bug.cgi?id=2049514
%gopkgfiles

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13036 |21mr|golang-github-openprinting-ipp-usb-0.9.28-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define forgesetupargs -n ipp-usb-%{version}

%global goipath github.com/OpenPrinting/ipp-usb
%global golicenses LICENSE
%global godocs README.md

# we ship devel rpm too, which means it needs to require avahi and libusbx
# too to work correctly
%global godevelheader %{expand:
Requires:  pkgconfig(avahi-client)
Requires:  pkgconfig(libusb-1.0)
}

# use bundled golang modules
%global gomodulesmode GO111MODULE=off

Name:		golang-github-openprinting-ipp-usb
Version:	0.9.28
Release:	2
Summary:	HTTP reverse proxy, backed by IPP-over-USB connection to device
Group:		Development/Other
License:	BSD
Url:		https://github.com/OpenPrinting/ipp-usb
Source0:    https://github.com/OpenPrinting/ipp-usb/archive/%{version}.tar.gz?/ipp-usb-%{version}.tar.gz
%gometa

BuildRequires:	go-srpm-macros
# needed for registering device on localhost
BuildRequires:	pkgconfig(avahi-client)
# for functions working with USB devices
BuildRequires:	pkgconfig(libusb-1.0)

%description
HTTP reverse proxy, backed by IPP-over-USB connection to device. It enables
driverless support for USB devices capable of using IPP-over-USB protocol.

#-------------------------------------------------------------------------
%gopkg

#-------------------------------------------------------------------------

%package -n ipp-usb
Summary:	HTTP reverse proxy capable of IPP-over-USB connection
Group:		System/Printing

%description -n ipp-usb
HTTP reverse proxy, backed by IPP-over-USB connection to device. It enables
driverless support for USB devices capable of using IPP-over-USB protocol.

%files -n ipp-usb
%license LICENSE
%doc README.md
%dir %{_datadir}/ipp-usb
%dir %{_datadir}/ipp-usb/quirks
%{_datadir}/ipp-usb/quirks/*
%{_sbindir}/ipp-usb
%{_mandir}/man8/ipp-usb.8*
%dir %{_sysconfdir}/ipp-usb
%config(noreplace) %{_sysconfdir}/ipp-usb/ipp-usb.conf
%{_udevrulesdir}/*.rules
%{_unitdir}/*.service

%post -n ipp-usb
%systemd_post ipp-usb.service

%preun -n ipp-usb
%systemd_preun ipp-usb.service

%postun -n ipp-usb
%systemd_postun_with_restart ipp-usb.service

#-------------------------------------------------------------------------

%prep
%goprep -k
sed -i'' -e 's,^ExecStart=/sbin/ipp-usb,ExecStart=%{_sbindir}/ipp-usb,' systemd-udev/ipp-usb.service

%build
%gobuild -o %{gobuilddir}/bin/ipp-usb %{goipath}

%install
%gopkginstall

install -m 0755 -vd                        %{buildroot}%{_sbindir}
install -m 0755 -vp %{gobuilddir}/bin/*    %{buildroot}%{_sbindir}/
install -m 0755 -vd                        %{buildroot}%{_udevrulesdir}
install -m 0644 -vp systemd-udev/*.rules   %{buildroot}%{_udevrulesdir}
install -m 0755 -vd                        %{buildroot}%{_unitdir}
install -m 0644 -vp systemd-udev/*.service %{buildroot}%{_unitdir}
install -m 0755 -vd                        %{buildroot}%{_sysconfdir}/ipp-usb
install -m 0644 -vp ipp-usb.conf           %{buildroot}%{_sysconfdir}/ipp-usb/
install -m 0755 -vd                        %{buildroot}%{_mandir}/man8
install -m 0644 -vp ipp-usb.8              %{buildroot}%{_mandir}/man8
install -m 0755 -vd %{buildroot}%{_datadir}/ipp-usb
install -m 0755 -vd %{buildroot}%{_datadir}/ipp-usb/quirks
install -m 0644 -vp ipp-usb-quirks/* %{buildroot}%{_datadir}/ipp-usb/quirks

#check
#gocheck

# https://bugzilla.redhat.com/show_bug.cgi?id=2049514
%gopkgfiles

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13037 |21mr|golang-github-pkg-diff-0-0.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1.3
%bcond_without check

# https://github.com/pkg/diff
%global goipath         github.com/pkg/diff
%global commit          20ebb0f2a09e612109b224b32f79370409108bcc

%gometa

%global common_description %{expand:
Module github.com/pkg/diff can be used to create, modify, and print diffs.

The top level package, diff, contains convenience functions for the most common
uses.

The subpackages provide very fine-grained control over every aspect:
- myers: creates diffs using the Myers diff algorithm.
- edit: contains the core diff data types.
- ctxt: provides tools to reduce the amount of context in a diff.
- write: provides routines to write diffs in standard formats.}

%global golicenses      LICENSE
%global godocs          readme.md

Name:           %{goname}
Version:        0
Release:        0.3
Summary:        Create, modify, and print diffs
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%files
%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13038 |21mr|golang-github-pkg-errors-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/pkg/errors
%global goipath         github.com/pkg/errors
Version:                0.9.1

%gometa

%global common_description %{expand:
Package Errors provides simple error handling primitives.}

%global golicenses      LICENSE
%global godocs          README.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        Simple error handling primitives
Group:          Development/Other
# Upstream license specification: BSD-2-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13039 |21mr|golang-github-pkg-sftp-1.13.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/pkg/sftp
%global goipath         github.com/pkg/sftp
Version:                1.13.4

%gometa

%global common_description %{expand:
The sftp package provides support for file system operations on remote ssh
servers using the SFTP subsystem. It also implements an SFTP server for serving
files from the filesystem.}

%global golicenses      LICENSE
%global godocs          examples CONTRIBUTORS README.md request-readme.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Summary:        SFTP support for the  Go crypto/ssh package
Group:          Development/Other
# Upstream license specification: BSD-2-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

BuildRequires:  golang(github.com/kr/fs)
BuildRequires:  golang(github.com/pkg/errors)
BuildRequires:  golang(golang.org/x/crypto/ssh)
BuildRequires:  golang(golang.org/x/crypto/ssh/agent)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
BuildRequires:  golang(github.com/stretchr/testify/require)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13040 |21mr|golang-github-pmezard-difflib-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/pmezard/go-difflib
%global goipath         github.com/pmezard/go-difflib
Version:                1.0.0

%gometa

# Remove in F33:
%global godevelheader %{expand:
Obsoletes:      golang-github-pmezard-go-difflib-devel < 0-0.15
}

%global common_description %{expand:
Go-difflib is a partial port of python 3 difflib package. Its main goal is to
make unified and context diff available in pure Go, mostly for testing
purposes.}

%global golicenses      LICENSE
%global godocs          README.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        7%{?dist}
Summary:        Partial port of python difflib package to Go
Group:		Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{S:1} %{S:2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Fri Jul 05 2019 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.0.0-2
- Add Obsoletes for old name

* Mon Apr 15 21:49:54 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.0-1
- Release 1.0.0

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.13.git792786c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Tue Oct 23 2018 Nicolas Mailhot <nim@fedoraproject.org> - 0-0.13.git792786c
- redhat-rpm-config-123 triggers bugs in gosetup, remove it from Go spec files as it’s just an alias
- https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/RWD5YATAYAFWKIDZBB7EB6N5DAO4ZKFM/

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.12.git792786c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Thu Jun 21 2018 Jan Chaloupka <jchaloup@redhat.com> - 0-0.11.git792786c
- Upload glide files

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.10.git792786c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Tue Sep 12 2017 Jan Chaloupka <jchaloup@redhat.com> - 0-0.9.git792786c
- Bump to upstream 792786c7400a136282c1664665ae0a8db921c6c2
  resolves: #1490448

* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.8.gitd8ed262
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.7.gitd8ed262
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Thu Mar 16 2017 Jan Chaloupka <jchaloup@redhat.com> - 0-0.6.gitd8ed262
- Bump to upstream d8ed2627bdf02c080bf22230dbb337003b7aba2d
  resolves: #1432934

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5.gitf78a839
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.4.gitf78a839
- https://fedoraproject.org/wiki/Changes/golang1.7

* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.3.gitf78a839
- https://fedoraproject.org/wiki/Changes/golang1.6

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2.gitf78a839
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Oct 15 2015 jchaloup <jchaloup@redhat.com> - 0-0.1.gitf78a839
- First package for Fedora
  resolves: #1272174

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13041 |21mr|golang-github-protobuf-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/golang/protobuf
%global goipath         github.com/golang/protobuf
Version:                1.5.2

%gometa

%global common_description %{expand:
Go support for Google's protocol buffers.}

%global golicenses      LICENSE
%global godocs          AUTHORS CONTRIBUTORS README.md

Name:           %{goname}
Release:        1
Summary:        Go support for Google's protocol buffers
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(google.golang.org/protobuf/cmd/protoc-gen-go/internal_gengo)
BuildRequires:  golang(google.golang.org/protobuf/compiler/protogen)
BuildRequires:  golang(google.golang.org/protobuf/encoding/protojson)
BuildRequires:  golang(google.golang.org/protobuf/encoding/prototext)
BuildRequires:  golang(google.golang.org/protobuf/encoding/protowire)
BuildRequires:  golang(google.golang.org/protobuf/proto)
BuildRequires:  golang(google.golang.org/protobuf/reflect/protodesc)
BuildRequires:  golang(google.golang.org/protobuf/reflect/protoreflect)
BuildRequires:  golang(google.golang.org/protobuf/reflect/protoregistry)
BuildRequires:  golang(google.golang.org/protobuf/runtime/protoiface)
BuildRequires:  golang(google.golang.org/protobuf/runtime/protoimpl)
BuildRequires:  golang(google.golang.org/protobuf/types/descriptorpb)
BuildRequires:  golang(google.golang.org/protobuf/types/known/anypb)
BuildRequires:  golang(google.golang.org/protobuf/types/known/durationpb)
BuildRequires:  golang(google.golang.org/protobuf/types/known/emptypb)
BuildRequires:  golang(google.golang.org/protobuf/types/known/structpb)
BuildRequires:  golang(google.golang.org/protobuf/types/known/timestamppb)
BuildRequires:  golang(google.golang.org/protobuf/types/known/wrapperspb)
BuildRequires:  golang(google.golang.org/protobuf/types/pluginpb)

%if %{with check}
# Tests
BuildRequires:  golang(github.com/google/go-cmp/cmp)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13042 |21mr|golang-github-rogpeppe-internal-1.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/rogpeppe/go-internal
%global goipath         github.com/rogpeppe/go-internal
Version:                1.8.1

%gometa

%global common_description %{expand:
Selected Go-internal packages factored out from the standard library.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        Selected Go-internal packages factored out from the standard library
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(gopkg.in/errgo.v2/fmt/errors)
BuildRequires:  golang(github.com/pkg/diff)

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
# https://github.com/rogpeppe/go-internal/issues/76
%gocheck -d imports -d cmd/testscript -d testscript
%endif

%files
%license LICENSE
%doc README.md
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13043 |21mr|golang-github-russross-blackfriday-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)

# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 0
# Run tests in check section
%global with_check 1
# Generate unit-test rpm
%global with_unit_test 0

%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package   %{nil}
%endif

%global provider        github
%global provider_tld    com
%global project         russross
%global repo            blackfriday
# https://github.com/russross/blackfriday
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}
%global commit          4c9bf9512682b995722660a4196c0013228e2049
%global shortcommit     %(c=%{commit}; echo ${c:0:7})

Name:       golang-%{provider}-%{project}-%{repo}
Version:    2.1.0
Release:    2
Summary:    Markdown processor implemented in Go
License:    BSD
Group:		System/Base
URL:            https://%{provider_prefix}
Source0:        https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz

# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch:  %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}

%description
%{summary}

%if 0%{?with_devel}
%package devel
Summary:       %{summary}
BuildArch:     noarch

%if 0%{?with_check}
%endif

Provides:      golang(%{import_path}) = %{version}-%{release}

%description devel
%{summary}

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.
%endif

%if 0%{?with_unit_test}
%package unit-test
Summary:         Unit tests for %{name} package

%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif

# test subpackage tests code from devel subpackage
Requires:        %{name}-devel = %{version}-%{release}

%description unit-test
%{summary}

This package contains unit tests for project
providing packages with %{import_path} prefix.
%endif

%prep
%setup -q -n %{repo}-%{commit}

%build

%install
# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list
done
%endif

# testing files for this project
%if 0%{?with_unit_test}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test.file-list
for file in $(find . -iname "*_test.go"); do
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
done
cp -r testdata %{buildroot}/%{gopath}/src/%{import_path}/.
echo "%%{gopath}/src/%%{import_path}/testdata" >> unit-test.file-list
%endif

%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%ifarch 0%{?gccgo_arches}
function gotest { %{gcc_go_test} "$@"; }
%else
%if 0%{?golang_test:1}
function gotest { %{golang_test} "$@"; }
%else
function gotest { go test "$@"; }
%endif
%endif

export GOPATH=%{buildroot}/%{gopath}:%{gopath}
gotest %{import_path}
%endif

#define license tag if not already defined
%{!?_licensedir:%global license %doc}

%if 0%{?with_devel}
%files devel -f devel.file-list
%license LICENSE.txt
%doc README.md
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}
%dir %{gopath}/src/%{import_path}
%endif

%if 0%{?with_unit_test}
%files unit-test -f unit-test.file-list
%license LICENSE.txt
%doc README.md
%endif
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13044 |21mr|golang-github-sanity-io-litter-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/sanity-io/litter
%global goipath         github.com/sanity-io/litter
Version:                1.5.1

%gometa

%global common_description %{expand:
Litter is a pretty printer library for Go data structures to aid in debugging
and testing.}

%global golicenses      LICENSE
%global godocs          CHANGELOG.md README.md

Name:           %{goname}
Release:        1
Summary:        Pretty printer for Go data structures for debugging and testing
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13045 |21mr|golang-github-sergi-diff-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/sergi/go-diff
%global goipath         github.com/sergi/go-diff
Version:                1.2.0

%gometa

# Remove in F33:
%global godevelheader %{expand:
Obsoletes:      golang-github-sergi-go-diff-devel < 1.0.0-2
}

%global common_description %{expand:
Go-diff offers algorithms to perform operations required for synchronizing plain
text:
 - Compare two texts and return their differences.
 - Perform fuzzy matching of text.
 - Apply patches onto text.}

%global golicenses      APACHE-LICENSE-2.0 LICENSE
%global godocs          AUTHORS CONTRIBUTORS README.md

Name:           %{goname}
Release:        1
Summary:        Diff, match and patch text in Go
Group:          Development/Other
# Upstream license specification: Apache-2.0 and MIT
License:        ASL 2.0 and MIT
URL:            %{gourl}
Source0:        %{gosource}

%if %{with check}
# Tests
BuildRequires:  golang(github.com/stretchr/testify/assert)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13046 |21mr|golang-github-sirupsen-logrus-1.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifnarch aarch64
%bcond_without check
%endif

# https://github.com/sirupsen/logrus
%global goipath         github.com/sirupsen/logrus
Version:                1.8.1

%gometa

%global goaltipaths     github.com/Sirupsen/logrus

%global common_description %{expand:
Logrus is a structured logger for Go, completely API compatible with the
standard library logger.}

%global golicenses      LICENSE
%global godocs          CHANGELOG.md README.md

Name:		%{goname}
Release:	1
Summary:	Structured, pluggable logging for Go
Group:		Development/Other
License:	MIT
URL:		%{gourl}
Source0:	%{gosource}

BuildRequires:	golang(github.com/stretchr/testify/require)
BuildRequires:	golang(golang.org/x/sys/unix)

%if %{with check}
# Tests
BuildRequires:	golang(github.com/stretchr/testify/assert)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13047 |21mr|golang-github-stretchr-objx-0.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/stretchr/objx
%global goipath         github.com/stretchr/objx
Version:                0.3.0

%gometa

%global common_description %{expand:
Objx provides the objx.Map type, which is a map[string]interface{} that exposes
a powerful Get method (among others) that allows you to easily and quickly get
access to data within the map, without having to worry too much about type
assertions, missing data, default values etc.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        3%{?dist}
Summary:        Go package for dealing with maps, slices, json and other data
Group:		Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.3.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Sun Aug 02 22:09:13 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0.3.0-1
- Update to 0.3.0

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Mon Apr 15 22:07:50 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0.2.0-1
- Release 0.2.0

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.15.git1a9d0bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.14.git1a9d0bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.13.git1a9d0bb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Tue Sep 12 2017 Jan Chaloupka <jchaloup@redhat.com> - 0-0.12.git1a9d0bb
- Bump to upstream 1a9d0bb9f541897e62256577b352fdbc1fb4fd94
  resolves: #1490415

* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.11.gitcbeaeb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.10.gitcbeaeb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.9.gitcbeaeb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sat Dec 17 2016 Jan Chaloupka <jchaloup@redhat.com> - 0-0.8.gitcbeaeb1
- Polish the spec file
  resolves: #1250514

* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.7.gitcbeaeb1
- https://fedoraproject.org/wiki/Changes/golang1.7

* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.6.gitcbeaeb1
- https://fedoraproject.org/wiki/Changes/golang1.6

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.5.gitcbeaeb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Aug 10 2015 Fridolin Pokorny <fpokorny@redhat.com> - 0-0.4.gitcbeaeb1
- Update spec file to spec-2.0
  resolves: #1250514

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.3.gitcbeaeb1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Mon Sep 15 2014 Lokesh Mandvekar <lsm5@fedoraproject.org> - 0-0.2.gitcbeaeb1
- do not redefine gopath

* Wed Aug 06 2014 Adam Miller <maxamillion@fedoraproject.org> - 0-0.1.gitcbeaeb1
- First package for Fedora.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13048 |21mr|golang-github-stretchr-testify-1.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%ifarch x86_64
%bcond_without check
%endif

# https://github.com/stretchr/testify
%global goipath         github.com/stretchr/testify
Version:                1.8.0

%gometa

%global goaltipaths     gopkg.in/stretchr/testify.v1

%global common_description %{expand:
Golang set of packages that provide many tools for testifying
that your code will behave as you intend.

Features include:

 - Easy assertions
 - Mocking
 - Testing suite interfaces and functions}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        3%{?dist}
Summary:        Toolkit with common assertions and mocks
Group:		Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/davecgh/go-spew/spew)
BuildRequires:  golang(github.com/pmezard/go-difflib/difflib)
BuildRequires:  golang(github.com/stretchr/objx)
BuildRequires:  golang(gopkg.in/yaml.v3)

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13049 |21mr|golang-github-urfave-cli-1.20.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)

# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 0
# Run tests in check section
%global with_check 1
# Generate unit-test rpm
%global with_unit_test 1

%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package   %{nil}
%endif

%global provider        github
%global provider_tld    com
%global project         urfave
%global repo            cli
# https://github.com/urfave/cli
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}

Name:		golang-%{provider}-%{project}-%{repo}
Version:	1.20.0
Release:	1%{?dist}
Summary:	A simple, fast, and fun package for building command line apps in Go
Group:		Development/Other
# Detected licences
# - MIT/X11 (BSD like) at 'LICENSE'
License:	MIT
URL:		https://%{provider_prefix}
Source0:	https://%{provider_prefix}/archive/v%{version}.tar.gz#/%{repo}-%{version}.tar.gz

Patch0:		0001-fix-ineffective-assigns.patch

# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch:  %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}



%description
%{summary}

#------------------------------------------------------------------------
%if 0%{?with_devel}
%package devel
Summary:	%{summary}
Group:		Development/Other
BuildArch:	noarch

%if 0%{?with_check} && ! 0%{?with_bundled}
BuildRequires:	golang(gopkg.in/yaml.v2)
BuildRequires:	golang(github.com/BurntSushi/toml)
%endif

Requires:	golang(gopkg.in/yaml.v2)
Requires:	golang(github.com/BurntSushi/toml)

Provides:	golang(%{import_path}) = %{version}-%{release}
Provides:	golang(%{import_path}/altsrc) = %{version}-%{release}

%description devel
%{summary}

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

%files devel -f devel.file-list
%license LICENSE
%doc CHANGELOG.md README.md
%dir %{gopath}/src/%{provider}.%{provider_tld}/%{project}

%endif

#------------------------------------------------------------------------

%if 0%{?with_unit_test} && 0%{?with_devel}
%package unit-test-devel
Summary:	Unit tests for %{name} package
Group:		Development/Other
%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif

# test subpackage tests code from devel subpackage
Requires:	%{name}-devel = %{version}-%{release}

%if 0%{?with_check} && ! 0%{?with_bundled}
%endif


%description unit-test-devel
%{summary}

This package contains unit tests for project
providing packages with %{import_path} prefix.

%files unit-test-devel -f unit-test-devel.file-list
%license LICENSE

%endif

#------------------------------------------------------------------------

%prep
%setup -q -n %{repo}-%{version}

%patch0 -p1

%build
%install
# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
echo "%%dir %%{gopath}/src/%%{import_path}/." >> devel.file-list
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go" | grep -v "Godeps/_workspace") ; do
    dirprefix=$(dirname $file)
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list

    while [ "$dirprefix" != "." ]; do
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
        dirprefix=$(dirname $dirprefix)
    done
done
%endif

# testing files for this project
%if 0%{?with_unit_test} && 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test-devel.file-list
for file in $(find . -iname "*_test.go" | grep -v "Godeps/_workspace") ; do
    dirprefix=$(dirname $file)
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$dirprefix
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test-devel.file-list

    while [ "$dirprefix" != "." ]; do
        echo "%%dir %%{gopath}/src/%%{import_path}/$dirprefix" >> devel.file-list
        dirprefix=$(dirname $dirprefix)
    done
done
%endif

%if 0%{?with_devel}
sort -u -o devel.file-list devel.file-list
%endif

%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif

%if ! 0%{?gotest:1}
%global gotest go test
%endif

%gotest %{import_path}
#i%%gotest %{import_path}/altsrc
%endif

#define license tag if not already defined
%{!?_licensedir:%global license %doc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13050 |21mr|golang-github-vbatts-tar-split-0.11.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without check

# https://github.com/vbatts/tar-split
%global goipath         github.com/vbatts/tar-split

Version:                0.11.1

%gometa

%global common_description %{expand:
Pristinely disassembling a tar archive, and stashing needed raw bytes and
offsets to reassemble a validating original archive.}

%global golicenses      LICENSE
%global godocs          README.md README-tar-split.md

Name:           %{goname}
Release:        8%{?dist}
Summary:        Tar archive assembly/disassembly
Group:		Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/sirupsen/logrus)
BuildRequires:  golang(github.com/urfave/cli)

%description
%{common_description}

%gopkg

%prep
%goprep
mv cmd/tar-split/README.md README-tar-split.md

%build
for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck
%endif

%files
%license LICENSE
%doc README.md README-tar-split.md
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13051 |21mr|golang-github-vishvananda-netlink-1.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
# Needs superuser permissions
%bcond_with check

# https://github.com/vishvananda/netlink
%global goipath         github.com/vishvananda/netlink
Version:                1.1.0

%gometa

%global common_description %{expand:
The netlink package provides a simple netlink library for Go. Netlink is the
interface a user-space program in linux uses to communicate with the kernel. It
can be used to add and remove interfaces, set ip addresses and routes, and
configure ipsec. Netlink communication requires elevated privileges, so in most
cases this code needs to be run as root. Since low-level netlink messages are
inscrutable at best, the library attempts to provide an api that is loosely
modeled on the CLI provided by iproute2. Actions like ip link add will be
accomplished via a similarly named function like AddLink(). This library began
its life as a fork of the netlink functionality in docker/libcontainer but was
heavily rewritten to improve testability, performance, and to add new
functionality like ipsec xfrm handling.}

%global golicenses      LICENSE
%global godocs          CHANGELOG.md README.md

Name:           %{goname}
Release:        3%{?dist}
Summary:        Simple netlink library for Go
Group:          Development/Other
# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(github.com/vishvananda/netns)
BuildRequires:  golang(golang.org/x/sys/unix)

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Tue Aug 04 00:11:35 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 1.1.0-1
- Update to 1.1.0

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sat May 04 17:50:10 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 1.0.0-1.20190504gitfafc1e7
- Release 1.0.0, commit fafc1e7b600abbb5cdcf1ebc90e4865423733a0c

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.18.gitf5a6f69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.17.gitf5a6f69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.16.gitf5a6f69
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Aug 24 2017 Jan Chaloupka <jchaloup@redhat.com> - 0-0.15.gitf5a6f69
- Bump to upstream f5a6f697a596c788d474984a38a0ac4ba0719e93
  related: #1398575

* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.14.gite73bad4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.13.gite73bad4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.12.gite73bad4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Wed Dec 14 2016 Jan Chaloupka <jchaloup@redhat.com> - 0-0.11.gite73bad4
- Polish the spec file
  related: #1398575

* Tue Dec 13 2016 Jan Chaloupka <jchaloup@redhat.com> - 0-0.10.gite73bad4
- Bump to upstream e73bad418fd727ed3a02830b1af1ad0283a1de6c
  related: #1398575

* Tue Dec 13 2016 Jan Chaloupka <jchaloup@redhat.com> - 0-0.9.git1e2e08e
- Fix tests for ppc64le architecture (upstream patch)
  resolves: #1398575

* Thu Jul 21 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.8.git1e2e08e
- https://fedoraproject.org/wiki/Changes/golang1.7

* Mon Feb 22 2016 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.7.git1e2e08e
- https://fedoraproject.org/wiki/Changes/golang1.6

* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.6.git1e2e08e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Nov 26 2015 jchaloup <jchaloup@redhat.com> - 0-0.5.git1e2e08e
- Bump to upstream 1e2e08e8a2dcdacaae3f14ac44c5cfa31361f270
  related: #1248155

* Wed Jul 29 2015 jchaloup <jchaloup@redhat.com> - 0-0.4.git991a7a2
- Update of spec file to spec-2.0
  resolves: #1248155

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0-0.3.git991a7a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Wed May 20 2015 jchaloup <jchaloup@redhat.com> - 0-0.2.git991a7a2
- Bump to upstream 991a7a2fa7c073968fb27f36669df199b1fdf412
- Remove runtime dependency on golang
- Add license macro
  related: #1164176

* Fri Nov 14 2014 jchaloup <jchaloup@redhat.com> - 0-0.1.git2187ba6
- First package for Fedora
  resolves: #1164176

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13052 |21mr|golang-github-vishvananda-netns-0-0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
# Needs superuser permissions
%bcond_with check

# https://github.com/vishvananda/netns
%global goipath         github.com/vishvananda/netns
%global commit          2eb08e3e575f00733a612d25cc5d7470f8db6f35

%gometa

%global common_description %{expand:
The netns package provides an ultra-simple interface for handling network
namespaces in Go. Changing namespaces requires elevated privileges, so in most
cases this code needs to be run as root.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Version:        0
Release:        0.1
Summary:        Simple network namespace handling for Go
Group:          Development/Other
# Upstream license specification: Apache-2.0
License:        ASL 2.0
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(golang.org/x/sys/unix)

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13053 |21mr|golang-github-yuin-goldmark-1.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
## START: Set by rpmautospec
## (rpmautospec version 0.2.5)
%define autorelease(e:s:pb:) %{?-p:0.}%{lua:
    release_number = 1;
    base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}"));
    print(release_number + base_release_number - 1);
}%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{?dist}
## END: Set by rpmautospec

%bcond_without check

# https://github.com/yuin/goldmark
%global goipath         github.com/yuin/goldmark
Version:                1.4.4

%gometa

%global common_description %{expand:
A markdown parser written in Go. Easy to extend, standard(CommonMark)
compliant, well structured.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        Markdown parser written in Go
Group:          Development/Other
License:        MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13054 |21mr|golang-google-protobuf-1.25.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/protocolbuffers/protobuf-go
%global goipath         google.golang.org/protobuf
%global forgeurl        https://github.com/protocolbuffers/protobuf-go
Version:                1.25.0

%gometa

%global common_description %{expand:
Go support for Google's protocol buffers.}

%global golicenses      LICENSE PATENTS
%global godocs          AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md

Name:           %{goname}
Release:        1
Summary:        Go support for Google's protocol buffers
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}


BuildRequires:  protobuf-compiler
Provides:       protoc-gen-go = %{version}-%{release}
Provides:       golang(%{goipath}/protoc-gen-go) = %{version}-%{release}

BuildRequires:  golang(github.com/google/go-cmp/cmp)
BuildRequires:  golang(github.com/google/go-cmp/cmp/cmpopts)

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck -d internal/impl
%endif

%files
%license LICENSE PATENTS
%doc AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13055 |21mr|golang-gopkg-check-1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)

# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 0
# Run tests in check section
# Failing on aarch and arm
%global with_check 0
# Generate unit-test rpm
%global with_unit_test 0

%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package   %{nil}
%endif

%global provider        github
%global provider_tld    com
%global project         go-check
%global repo            check
# https://github.com/go-check/check
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     gopkg.in/check.v1
%global import_path_sec launchpad.net/gocheck
%global commit          4f90aeace3a26ad7021961c297b22c42160c7b25
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
%global gimport_path    github.com/go-check/check

# github.com/motain/gocheck, cloned from github.com/go-check/check on Oct 23, 2013
%global mcommit         10bfe0586b48cbca10fe6c43d6e18136f25f8c0c
%global mscommit        %(c=%{mcommit}; echo ${c:0:7})
%global mimport_path    github.com/motain/gocheck

Name:		golang-gopkg-%{repo}
Version:	1
Release:	13%{?dist}
Summary:	Rich testing for the Go language
Group:		Development/Other
License:	BSD
URL:		https://%{provider_prefix}
Source0:	https://%{provider_prefix}/archive/%{mcommit}/%{repo}-%{mscommit}.tar.gz
Source1:	https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
Obsoletes:	golang-launchpad-gocheck

# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch:	%{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:	%{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}

%description
%{summary}

#-------------------------------------------------------------------------------------
%if 0%{?with_devel}
%package devel
Summary:	%{summary}
Group:		Development/Other
BuildArch:	noarch

%if 0%{?with_check}
%endif

Provides:	golang(%{import_path}) = %{version}-%{release}
Provides:	golang(%{import_path_sec}) = %{version}-%{release}
Provides:	golang(%{mimport_path}) = %{version}-%{release}
Provides:	golang(%{gimport_path}) = %{version}-%{release}
Obsoletes:	golang-launchpad-gocheck-devel

%description devel
%{summary}

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

%files devel -f devel.file-list
%license LICENSE
%doc README.md
%dir %{gopath}/src/%{import_path}
%dir %{gopath}/src/%{import_path_sec}
%dir %{gopath}/src/%{gimport_path}

%endif

#-------------------------------------------------------------------------------------

%if 0%{?with_unit_test}
%package unit-test
Summary:	Unit tests for %{name} package
Group:		Development/Other

%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif

# test subpackage tests code from devel subpackage
Requires:	%{name}-devel = %{version}-%{release}

%description unit-test
%{summary}

This package contains unit tests for project
providing packages with %{import_path} prefix.

%files unit-test -f unit-test.file-list
%license LICENSE
%doc README.md

%endif

#-------------------------------------------------------------------------------------

%prep
%setup -n %{repo}-%{mcommit} -q
%setup -n %{repo}-%{commit} -q -T -b 1

%build

%install
# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
install -d -p %{buildroot}/%{gopath}/src/%{import_path_sec}/
install -d -p %{buildroot}/%{gopath}/src/%{gimport_path}/
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list

    install -d -p %{buildroot}/%{gopath}/src/%{import_path_sec}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{import_path_sec}/$file
    echo "%%{gopath}/src/%%{import_path_sec}/$file" >> devel.file-list

    install -d -p %{buildroot}/%{gopath}/src/%{gimport_path}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{gimport_path}/$file
    echo "%%{gopath}/src/%%{gimport_path}/$file" >> devel.file-list
done
%endif

pushd ../%{repo}-%{mcommit}
install -d -p %{buildroot}/%{gopath}/src/%{mimport_path}/
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    install -d -p %{buildroot}/%{gopath}/src/%{mimport_path}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{mimport_path}/$file
    echo "%%{gopath}/src/%%{mimport_path}/$file" >> ../%{repo}-%{commit}/devel.file-list
done
popd

# testing files for this project
%if 0%{?with_unit_test}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test.file-list
for file in $(find . -iname "*_test.go"); do
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
done
%endif

%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif

%if ! 0%{?gotest:1}
%global gotest go test
%endif

%gotest %{import_path}
%endif

#define license tag if not already defined
%{!?_licensedir:%global license %doc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13056 |21mr|golang-gopkg-check-1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)

# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 0
# Run tests in check section
# Failing on aarch and arm
%global with_check 0
# Generate unit-test rpm
%global with_unit_test 0

%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package   %{nil}
%endif

%global provider        github
%global provider_tld    com
%global project         go-check
%global repo            check
# https://github.com/go-check/check
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     gopkg.in/check.v1
%global import_path_sec launchpad.net/gocheck
%global commit          4f90aeace3a26ad7021961c297b22c42160c7b25
%global shortcommit     %(c=%{commit}; echo ${c:0:7})
%global gimport_path    github.com/go-check/check

# github.com/motain/gocheck, cloned from github.com/go-check/check on Oct 23, 2013
%global mcommit         10bfe0586b48cbca10fe6c43d6e18136f25f8c0c
%global mscommit        %(c=%{mcommit}; echo ${c:0:7})
%global mimport_path    github.com/motain/gocheck

Name:		golang-gopkg-%{repo}
Version:	1
Release:	14%{?dist}
Summary:	Rich testing for the Go language
Group:		Development/Other
License:	BSD
URL:		https://%{provider_prefix}
Source0:	https://%{provider_prefix}/archive/%{mcommit}/%{repo}-%{mscommit}.tar.gz
Source1:	https://%{provider_prefix}/archive/%{commit}/%{repo}-%{shortcommit}.tar.gz
Obsoletes:	golang-launchpad-gocheck < 1

# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch:	%{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:	%{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}

%description
%{summary}

#-------------------------------------------------------------------------------------
%if 0%{?with_devel}
%package devel
Summary:	%{summary}
Group:		Development/Other
BuildArch:	noarch

%if 0%{?with_check}
%endif

Provides:	golang(%{import_path}) = %{version}-%{release}
Provides:	golang(%{import_path_sec}) = %{version}-%{release}
Provides:	golang(%{mimport_path}) = %{version}-%{release}
Provides:	golang(%{gimport_path}) = %{version}-%{release}
Obsoletes:	golang-launchpad-gocheck-devel < 1

%description devel
%{summary}

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

%files devel -f devel.file-list
%license LICENSE
%doc README.md
%dir %{gopath}/src/%{import_path}
%dir %{gopath}/src/%{import_path_sec}
%dir %{gopath}/src/%{gimport_path}

%endif

#-------------------------------------------------------------------------------------

%if 0%{?with_unit_test}
%package unit-test
Summary:	Unit tests for %{name} package
Group:		Development/Other

%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
%endif

# test subpackage tests code from devel subpackage
Requires:	%{name}-devel = %{version}-%{release}

%description unit-test
%{summary}

This package contains unit tests for project
providing packages with %{import_path} prefix.

%files unit-test -f unit-test.file-list
%license LICENSE
%doc README.md

%endif

#-------------------------------------------------------------------------------------

%prep
%setup -n %{repo}-%{mcommit} -q
%setup -n %{repo}-%{commit} -q -T -b 1

%build

%install
# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
install -d -p %{buildroot}/%{gopath}/src/%{import_path_sec}/
install -d -p %{buildroot}/%{gopath}/src/%{gimport_path}/
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> devel.file-list

    install -d -p %{buildroot}/%{gopath}/src/%{import_path_sec}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{import_path_sec}/$file
    echo "%%{gopath}/src/%%{import_path_sec}/$file" >> devel.file-list

    install -d -p %{buildroot}/%{gopath}/src/%{gimport_path}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{gimport_path}/$file
    echo "%%{gopath}/src/%%{gimport_path}/$file" >> devel.file-list
done
%endif

pushd ../%{repo}-%{mcommit}
install -d -p %{buildroot}/%{gopath}/src/%{mimport_path}/
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    install -d -p %{buildroot}/%{gopath}/src/%{mimport_path}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{mimport_path}/$file
    echo "%%{gopath}/src/%%{mimport_path}/$file" >> ../%{repo}-%{commit}/devel.file-list
done
popd

# testing files for this project
%if 0%{?with_unit_test}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test.file-list
for file in $(find . -iname "*_test.go"); do
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> unit-test.file-list
done
%endif

%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
%if ! 0%{?with_bundled}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}
%else
export GOPATH=%{buildroot}/%{gopath}:$(pwd)/Godeps/_workspace:%{gopath}
%endif

%if ! 0%{?gotest:1}
%global gotest go test
%endif

%gotest %{import_path}
%endif

#define license tag if not already defined
%{!?_licensedir:%global license %doc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13057 |21mr|golang-gopkg-errgo-2-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/go-errgo/errgo
%global goipath         gopkg.in/errgo.v2
%global forgeurl        https://github.com/go-errgo/errgo
Version:                2.1.0

%gometa

%global common_description %{expand:
The Errgo package provides a way to create and diagnose errors. It is compatible
with the usual Go error idioms but adds a way to wrap errors so that they record
source location information while retaining a consistent way for code to inspect
errors to find out particular problems.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        Dependable Go errors with tracebacks
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13058 |21mr|golang-gopkg-russross-blackfriday-2-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/russross/blackfriday
%global goipath         gopkg.in/russross/blackfriday.v2
%global forgeurl        https://github.com/russross/blackfriday
Version:                2.1.0

%gometa

%global goaltipaths     github.com/russross/blackfriday/v2

%global common_description %{expand:
Blackfriday is a Markdown processor implemented in Go. It is paranoid about its
input (so you can safely feed it user-supplied data), it is fast, it supports
common extensions (tables, smart punctuation substitutions, etc.), and it is
safe for all utf-8 (unicode) input.

HTML output is currently supported, along with Smartypants extensions.}

%global golicenses      LICENSE.txt
%global godocs          README.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Release:        1
Group:          Development/Other
Summary:        Markdown processor for Go

# Upstream license specification: BSD-2-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.yaml
Source2:        glide.lock


%description
%{common_description}

%gopkg

%prep
%goprep
cp %{S:1} %{S:2} .

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13059 |21mr|golang-gopkg-tomb-1-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/go-tomb/tomb
%global goipath         gopkg.in/tomb.v1
%global forgeurl        https://github.com/go-tomb/tomb
%global commit          dd632973f1e7218eb1089048e0798ec9ae7dceb8

%gometa

%global goaltipaths     gopkg.in/v1/tomb

%global common_description %{expand:
The Tomb package handles clean goroutine tracking and termination.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Version:        1
Release:        1
Summary:        Clean goroutine termination in the Go language
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13060 |21mr|golang-gopkg-yaml-1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If any of the following macros should be set otherwise,
# you can wrap any of them with the following conditions:
# - %%if 0%%{centos} == 7
# - %%if 0%%{?rhel} == 7
# - %%if 0%%{?fedora} == 23
# Or just test for particular distribution:
# - %%if 0%%{centos}
# - %%if 0%%{?rhel}
# - %%if 0%%{?fedora}
#
# Be aware, on centos, both %%rhel and %%centos are set. If you want to test
# rhel specific macros, you can use %%if 0%%{?rhel} && 0%%{?centos} == 0 condition.
# (Don't forget to replace double percentage symbol with single one in order to apply a condition)

# Generate devel rpm
%global with_devel 1
# Build project from bundled dependencies
%global with_bundled 0
# Build with debug info rpm
%global with_debug 0
# Run tests in check section
# both tests failing
%global with_check 0
# Generate unit-test rpm
%global with_unit_test 1

%if 0%{?with_debug}
%global _dwz_low_mem_die_limit 0
%else
%global debug_package   %{nil}
%endif

%global provider        github
%global provider_tld    com
%global project         go-yaml
%global repo            yaml
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global commit          7649d4548cb53a614db133b2a8ac1f31859dda8c
%global shortcommit     %(c=%{commit}; echo ${c:0:7})

%global import_path     gopkg.in/v2/yaml
%global import_path_sec gopkg.in/yaml.v2

%global v1_commit          1b9791953ba4027efaeb728c7355e542a203be5e
%global v1_shortcommit     %(c=%{v1_commit}; echo ${c:0:7})
%global v1_import_path     gopkg.in/v1/yaml
%global v1_import_path_sec gopkg.in/yaml.v1

%global devel_main golang-gopkg-yaml-devel-v2

Name:		golang-gopkg-yaml
Version:	1
Release:	16
Summary:	Enables Go programs to comfortably encode and decode YAML values
Group:		Development/Other
License:	LGPLv3 with exceptions
URL:		https://%{provider_prefix}
Source0:	https://%{provider_prefix}/archive/%{commit}/yaml-%{shortcommit}.tar.gz
Source1:	https://%{provider_prefix}/archive/%{v1_commit}/yaml-%{v1_commit}.tar.gz

# e.g. el6 has ppc64 arch without gcc-go, so EA tag is required
ExclusiveArch:  %{?go_arches:%{go_arches}}%{!?go_arches:%{ix86} x86_64 aarch64 %{arm}}
# If go_compiler is not set to 1, there is no virtual provide. Use golang instead.
BuildRequires:  %{?go_compiler:compiler(go-compiler)}%{!?go_compiler:golang}

%description
%{summary}

#------------------------------------------------------------------------------------
%if 0%{?with_devel}
%package devel
Summary:	Enables Go programs to comfortably encode and decode YAML values
Group:		Development/Other
BuildArch:	noarch

%if 0%{?with_check}
%endif

Provides:	golang(%{v1_import_path}) = %{version}-%{release}
Provides:	golang(%{v1_import_path_sec}) = %{version}-%{release}

%description devel
The yaml package enables Go programs to comfortably encode and decode YAML
values. It was developed within Canonical as part of the juju project, and
is based on a pure Go port of the well-known libyaml C library to parse and
generate YAML data quickly and reliably.

The yaml package is almost compatible with YAML 1.1, including support for
anchors, tags, etc. There are still a few missing bits, such as document
merging, base-60 floats (huh?), and multi-document unmarshalling. These
features are not hard to add, and will be introduced as necessary.

This package contains library source intended for
building other packages which use import path with
%{v1_import_path} prefix.

%files devel -f v1_devel.file-list
%license LICENSE LICENSE.libyaml
%doc README.md
%dir %{gopath}/src/gopkg.in/v1
%dir %{gopath}/src/%{v1_import_path}
%dir %{gopath}/src/%{v1_import_path_sec}

#------------------------------------------------------------------------------------

%package devel-v2
Summary:	Enables Go programs to comfortably encode and decode YAML values
Group:		Development/Other
BuildArch:	noarch

%if 0%{?with_check}
%endif

Provides:	golang(%{import_path}) = %{version}-%{release}
Provides:	golang(%{import_path_sec}) = %{version}-%{release}

%description devel-v2
The yaml package enables Go programs to comfortably encode and decode YAML
values. It was developed within Canonical as part of the juju project, and
is based on a pure Go port of the well-known libyaml C library to parse and
generate YAML data quickly and reliably.

The yaml package supports most of YAML 1.1 and 1.2,
including support for anchors, tags, map merging, etc.
Multi-document unmarshalling is not yet implemented, and base-60 floats
from YAML 1.1 are purposefully not supported since they're a poor design
 and are gone in YAML 1.2.

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.

%files devel-v2 -f devel.file-list
%license LICENSE LICENSE.libyaml
%doc README.md
%dir %{gopath}/src/gopkg.in/v2
%dir %{gopath}/src/%{import_path}
%dir %{gopath}/src/%{import_path_sec}

%endif

#------------------------------------------------------------------------------------

%if 0%{?with_unit_test}
%package unit-test
Summary:	Unit tests for %{name} package
Group:		Development/Other

%if 0%{?with_check}
#Here comes all BuildRequires: PACKAGE the unit tests
#in %%check section need for running
BuildRequires:	golang(gopkg.in/check.v1)
%endif

Requires:	golang(gopkg.in/check.v1)

# test subpackage tests code from devel subpackage
Requires:	%{name}-devel = %{version}-%{release}
Requires:	%{name}-devel-v2 = %{version}-%{release}

%description unit-test
%{summary}

This package contains unit tests for project
providing packages with %{import_path} prefix.

%files unit-test -f unit-test.file-list
%license LICENSE LICENSE.libyaml
%doc README.md

%endif

#------------------------------------------------------------------------------------

%prep
%setup -q -n yaml-%{commit}
%setup -q -n yaml-%{v1_commit} -T -b 1

%build

%install
# source codes for building projects
%if 0%{?with_devel}
install -d -p %{buildroot}/%{gopath}/src/%{v1_import_path}/
install -d -p %{buildroot}/%{gopath}/src/%{v1_import_path_sec}/
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    install -d -p %{buildroot}/%{gopath}/src/%{v1_import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{v1_import_path}/$file
    echo "%%{gopath}/src/%%{v1_import_path}/$file" >> v1_devel.file-list
    install -d -p %{buildroot}/%{gopath}/src/%{v1_import_path_sec}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{v1_import_path_sec}/$file
    echo "%%{gopath}/src/%%{v1_import_path_sec}/$file" >> v1_devel.file-list
done
pushd ../yaml-%{commit}
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
install -d -p %{buildroot}/%{gopath}/src/%{import_path_sec}/
# find all *.go but no *_test.go files and generate devel.file-list
for file in $(find . -iname "*.go" \! -iname "*_test.go") ; do
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> ../yaml-%{v1_commit}/devel.file-list
    install -d -p %{buildroot}/%{gopath}/src/%{import_path_sec}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path_sec}/$file
    echo "%%{gopath}/src/%%{import_path_sec}/$file" >> ../yaml-%{v1_commit}/devel.file-list
done
popd
%endif

# testing files for this project
%if 0%{?with_unit_test}
install -d -p %{buildroot}/%{gopath}/src/%{v1_import_path}/
install -d -p %{buildroot}/%{gopath}/src/%{import_path}/
# find all *_test.go files and generate unit-test.file-list
for file in $(find . -iname "*_test.go"); do
    install -d -p %{buildroot}/%{gopath}/src/%{v1_import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{v1_import_path}/$file
    echo "%%{gopath}/src/%%{v1_import_path}/$file" >> unit-test.file-list
done
pushd ../yaml-%{commit}
for file in $(find . -iname "*_test.go"); do
    install -d -p %{buildroot}/%{gopath}/src/%{import_path}/$(dirname $file)
    cp -pav $file %{buildroot}/%{gopath}/src/%{import_path}/$file
    echo "%%{gopath}/src/%%{import_path}/$file" >> ../yaml-%{v1_commit}/unit-test.file-list
done
popd
%endif

%check
%if 0%{?with_check} && 0%{?with_unit_test} && 0%{?with_devel}
export GOPATH=%{buildroot}/%{gopath}:%{gopath}

%if ! 0%{?gotest:1}
%global gotest go test
%endif

%gotest %{import_path}
pushd ../yaml-%{v1_commit}
%gotest %{v1_import_path}
popd
%endif

#define license tag if not already defined
%{!?_licensedir:%global license %doc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13061 |21mr|golang-gopkg-yaml-3-0-0.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/go-yaml/yaml
%global goipath         gopkg.in/yaml.v3
%global forgeurl        https://github.com/go-yaml/yaml
%global commit          496545a6307b2a7d7a710fd516e5e16e8ab62dbc

%gometa

%global goaltipaths     gopkg.in/v3/yaml

%global common_description %{expand:
The yaml package enables Go programs to comfortably encode and decode YAML
values. It was developed within Canonical as part of the juju project, and is
based on a pure Go port of the well-known libyaml C library to parse and
generate YAML data quickly and reliably.

The yaml package supports most of YAML 1.2, but preserves some behavior from 1.1
for backwards compatibility.

Specifically, as of v3 of the yaml package:

 - YAML 1.1 bools (yes/no, on/off) are supported as long as they are being
   decoded into a typed bool value. Otherwise they behave as a string. Booleans
   in YAML 1.2 are true/false only.
 - Octals encode and decode as 0777 per YAML 1.1, rather than 0o777 as specified
   in YAML 1.2, because most parsers still use the old format. Octals in the
   0o777 format are supported though, so new files work.
 - Does not support base-60 floats. These are gone from YAML 1.2, and were
   actually never supported by this package as it's clearly a poor choice.

and offers backwards compatibility with YAML 1.1 in some cases. 1.2, including
support for anchors, tags, map merging, etc. Multi-document unmarshalling is not
yet implemented, and base-60 floats from YAML 1.1 are purposefully not supported
since they're a poor design and are gone in YAML 1.2.}

%global golicenses      LICENSE NOTICE
%global godocs          README.md

Name:           %{goname}
Version:        0
Release:        0.8%{?dist}
Summary:        Yaml support for the Go language
Group:		Development/Other
# Upstream license specification: Apache-2.0 and MIT
License:        ASL 2.0 and MIT
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Wed Jan 13 20:30:00 CET 2021 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.6.20210113git496545a
- Bump to commit 496545a6307b2a7d7a710fd516e5e16e8ab62dbc

* Wed Aug 05 22:35:54 CEST 2020 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.5.20200805giteeeca48
- Bump to commit eeeca48fe7764f320e4870d231902bf9c1be2c08

* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0-0.2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Sun Apr 21 07:44:40 CEST 2019 Robert-André Mauchin <zebob.m@gmail.com> - 0-0.1.20190622gitcdc409d
- Initial package

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13062 |21mr|golang-mvdan-xurls-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/mvdan/xurls
%global goipath         mvdan.cc/xurls
%global forgeurl        https://github.com/mvdan/xurls
Version:                2.3.0

%gometa

%global goaltipaths     github.com/mvdan/xurls mvdan.cc/xurls/v2

%global common_description %{expand:
Extract urls from text using regular expressions. Requires Go 1.10.3 or later.}

%global golicenses      LICENSE
%global godocs          README.md

Name:           %{goname}
Release:        1
Summary:        Extract urls from text
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%if %{with check}
# Tests
BuildRequires:  golang(github.com/rogpeppe/go-internal/testscript)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck -d cmd/xurls
%endif

%files
%license LICENSE
%doc README.md
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13063 |21mr|golang-net-0.1.git84a4013f96e0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prerelease 84a4013f96e01fdd14b65d260a78b543e3702ee1
%define import_path code.google.com/p/go.net
%define gopath %{_prefix}/lib/golang
%define gosrc %{gopath}/src/%{import_path}
%define shortcommit %(c=%{prerelease}; echo ${c:0:12})

Summary:	Supplementary Go networking libraries
Name:		golang-net
Version:	0.1.git%{shortcommit}
Release:	13
License:	BSD
Group:		Development/Other
Url:		http://net.go.googlecode.com
Source0:	http://net.go.googlecode.com/archive/%{prerelease}.zip
BuildRequires:	golang >= 1.3.3
Provides:	golang(%{import_path}) = %{version}-%{release}
Provides:	golang(%{import_path}/dict) = %{version}-%{release}
Provides:	golang(%{import_path}/html) = %{version}-%{release}
Provides:	golang(%{import_path}/html/atom) = %{version}-%{release}
Provides:	golang(%{import_path}/idna) = %{version}-%{release}
Provides:	golang(%{import_path}/ipv4) = %{version}-%{release}
Provides:	golang(%{import_path}/ipv6) = %{version}-%{release}
Provides:	golang(%{import_path}/proxy) = %{version}-%{release}
Provides:	golang(%{import_path}/publicsuffix) = %{version}-%{release}
Provides:	golang(%{import_path}/spdy) = %{version}-%{release}
Provides:	golang(%{import_path}/websocket) = %{version}-%{release}
BuildArch:	noarch

%description
Supplementary Go networking libraries (only docs).

%files
%doc net.go-%{shortcommit}/README
%doc net.go-%{shortcommit}/LICENSE

#----------------------------------------------------------------------------

%package devel
Summary:	Supplementary Go networking libraries
Group:		Development/Other
Requires:	golang >= 1.3.3

%description devel
Supplementary Go networking libraries devel part.

%files devel
%doc net.go-%{shortcommit}/LICENSE
%doc net.go-%{shortcommit}/README
%doc net.go-%{shortcommit}/AUTHORS
%doc net.go-%{shortcommit}/CONTRIBUTORS
%doc net.go-%{shortcommit}/PATENTS
%{gosrc}/*

#----------------------------------------------------------------------------

%prep
%setup -qc

%build
#cd %{_builddir}/net.go-%{shortcommit}
#go build

%install
mkdir -p %{buildroot}%{gosrc}
cp -av net.go-%{shortcommit}/* %{buildroot}%{gosrc}/
rm -vf %{buildroot}%{gosrc}/LICENSE
rm -vf %{buildroot}%{gosrc}/README
rm -vf %{buildroot}%{gosrc}/AUTHORS
rm -vf %{buildroot}%{gosrc}/CONTRIBUTORS
rm -vf %{buildroot}%{gosrc}/PATENTS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13064 |21mr|golang-x-crypto-0-0.41
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_with check
# Avoid noarch package built differently on different architectures
%global __requires_exclude %{?__requires_exclude:%{__requires_exclude}|}^golang\\(golang.org/x/sys/cpu\\)|golang\\(golang.org/x/net/idna\\)$

# https://github.com/golang/crypto
%global goipath         golang.org/x/crypto
%global forgeurl        https://github.com/golang/crypto
%global commit          5770296d904e90f15f38f77dfc2e43fdf5efc083

%gometa

%global common_description %{expand:
Go supplementary cryptography libraries.}

%global golicenses      LICENSE PATENTS
%global godocs          AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md

%global gosupfiles curve25519/const_amd64.h

Name:           %{goname}
Version:        0
Release:        0.41
Summary:        Go supplementary cryptography libraries
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

#BuildRequires:  golang(golang.org/x/net/idna)
BuildRequires:  golang(golang.org/x/sys/cpu)
BuildRequires:  golang(golang.org/x/sys/unix)

%if %{with check}
# Tests
BuildRequires:  golang(golang.org/x/term)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13065 |21mr|golang-x-mod-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/golang/mod
%global goipath         golang.org/x/mod
%global forgeurl        https://github.com/golang/mod
Version:                0.4.0

%gometa

%global common_description %{expand:
This packages holds packages for writing tools that work directly with Go module
mechanics. That is, it is for direct manipulation of Go modules themselves.}

%global golicenses      LICENSE PATENTS
%global godocs          README

Name:           %{goname}
Release:        1
Summary:        Go module mechanics libraries
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(golang.org/x/crypto/ed25519)
BuildRequires:  golang(golang.org/x/xerrors)

%description
%{common_description}

%gopkg

%prep
%goprep

%build
for cmd in gosumcheck; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
%gopkginstall
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
# sumdb/tlog: needs network
%gocheck -d sumdb/tlog -d zip
%endif

%files
%license LICENSE PATENTS
%doc README
%{_bindir}/*

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13066 |21mr|golang-x-net-0-0.63
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%ifnarch s390x
%bcond_without check
%endif
%bcond_without bootstrap

# https://github.com/golang/net
%global goipath         golang.org/x/net
%global forgeurl        https://github.com/golang/net
%global commit          5f4716e94777e714bc2fb3e3a44599cb40817aac

%gometa

%global goipaths0       golang.org/x/net
%global goipathsex0     golang.org/x/net/http golang.org/x/net/http2 golang.org/x/net/html/charset golang.org/x/net/idna golang.org/x/net/publicsuffix

%if %{without bootstrap}
%global goipaths1       golang.org/x/net/http golang.org/x/net/http2 golang.org/x/net/html/charset golang.org/x/net/idna golang.org/x/net/publicsuffix
%endif

%global common_description %{expand:
This package holds supplementary Go networking libraries.}

%global golicenses      LICENSE PATENTS
%global godocs          AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md

%global gosupfiles glide.lock glide.yaml

Name:           %{goname}
Version:        0
Release:        0.63
Summary:        Go supplementary network libraries
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}
Source1:        glide.lock
Source2:        glide.yaml

# BuildRequires:  golang(cloud.google.com/go/storage)
# BuildRequires:  golang(go4.org/syncutil/singleflight)
# BuildRequires:  golang(golang.org/x/build/autocertcache)
# BuildRequires:  golang(golang.org/x/crypto/acme/autocert)
BuildRequires:  golang(golang.org/x/sys/unix)
BuildRequires:  golang(golang.org/x/term)
%if %{without bootstrap}
BuildRequires:  golang(golang.org/x/text/encoding)
BuildRequires:  golang(golang.org/x/text/encoding/charmap)
BuildRequires:  golang(golang.org/x/text/encoding/htmlindex)
BuildRequires:  golang(golang.org/x/text/secure/bidirule)
BuildRequires:  golang(golang.org/x/text/transform)
BuildRequires:  golang(golang.org/x/text/unicode/bidi)
BuildRequires:  golang(golang.org/x/text/unicode/norm)
%endif

%description
%{common_description}

%gopkg

%prep
%goprep
cp %{SOURCE1} %{SOURCE2} .
# Demo, with cyclic dependency on cloud.google.com/go/storage
rm -rf http2/h2demo

%install
%gopkginstall

%if %{with check}
%check
%if %{with bootstrap}
%gocheck -t http/httpguts -t http/httpproxy -t http2 -t html/charset -t idna -t publicsuffix
%else
%gocheck
%endif
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13067 |21mr|golang-x-sync-0-0.15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/golang/sync
%global goipath         golang.org/x/sync
%global forgeurl        https://github.com/golang/sync
%global commit          09787c993a3ab68e3d1f5c9b2394ab9433f391be

%gometa

%global common_description %{expand:
This package provides Go concurrency primitives in addition to the ones
provided by the language and "sync" and "sync/atomic" packages.}

%global golicenses      LICENSE PATENTS
%global godocs          AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md

Name:           %{goname}
Version:        0
Release:        0.15
Summary:        Go concurrency primitives
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13068 |21mr|golang-x-sys-0.4.0-0.42
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://github.com/golang/sys
%global goipath         golang.org/x/sys
%global forgeurl        https://github.com/golang/sys
%define commit          b8be2fde2a9e207d880642665d4d53cc833e2f36

%gometa

%global common_description %{expand:
Go packages for low-level interactions with the operating system.}

%global golicenses      LICENSE PATENTS
%global godocs          AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md

# Add Windows file to compile Winio
%global gosupfiles glide.lock glide.yaml ${windows[@]}

Name:		%{goname}
Version:	0.4.0
Release:	0.42
Summary:	Go packages for low-level interaction with the operating system
Group:		Development/Other
# Upstream license specification: BSD-3-Clause
License:	BSD
URL:		%{gourl}
Source0:	%{gosource}
Source1:	glide.yaml
Source2:	glide.lock
# Disable TestOpenByHandleAt which doesn't work in Mock chroot
# https://bugzilla.redhat.com/show_bug.cgi?id=1750000
Patch0:		golang-x-sys-Disable-TestOpenByHandleAt.patch

%description
%{common_description}

%gopkg

%prep
%goprep
%patch0 -p1
cp %{S:1} %{S:2} .

%install
# Add Windows file to compile Winio
mapfile -t windows <<< $(find *_windows.go -type f)
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13069 |21mr|golang-x-term-0-0.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1.3
%bcond_without check

# https://github.com/golang/term
%global goipath         golang.org/x/term
%global forgeurl        https://github.com/golang/term
%global commit          6886f2dfbf5b25f595b4fe4279c49956e867c59b

%gometa

%global common_description %{expand:
Go terminal and console support.}

%global golicenses      LICENSE PATENTS
%global godocs          AUTHORS CONTRIBUTING.md CONTRIBUTORS README.md

Name:           %{goname}
Version:        0
Release:        0.4
Summary:        Go terminal and console support
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

BuildRequires:  golang(golang.org/x/sys/unix)

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13070 |21mr|golang-x-xerrors-0-0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm 1
%bcond_without check

# https://github.com/golang/xerrors
%global goipath         golang.org/x/xerrors
%global forgeurl        https://github.com/golang/xerrors
%global commit          5ec99f83aff198f5fbd629d6c8d8eb38a04218ca

%gometa

%global common_description %{expand:
This package holds the transition packages for the new Go 1.13 error values.
See golang.org/design/29934-error-values.}

%global golicenses      LICENSE PATENTS
%global godocs          README

Name:           %{goname}
Version:        0
Release:        0.1
Summary:        Transition packages for the new Go 1.13 error values
Group:          Development/Other
# Upstream license specification: BSD-3-Clause
License:        BSD
URL:            %{gourl}
Source0:        %{gosource}

%description
%{common_description}

%gopkg

%prep
%goprep

%install
%gopkginstall

%if %{with check}
%check
%gocheck
%endif

%gopkgfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13071 |21mr|golist-0.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated by go2rpm
%bcond_without check

# https://pagure.io/golist
%global goipath         pagure.io/golist
%global forgeurl        https://pagure.io/golist
Version:        0.10.1

%gometa

%global common_description %{expand:
A tool to analyse the properties of a Go (Golang) codebase.}

%global godocs          NEWS.md README.md
%global golicenses      LICENSE

Name:           golist
Release:        %mkrel 1
Summary:        A tool to analyse the properties of a Go (Golang) codebase
Group:          Development/Other
License:        BSD
URL:            %{gourl}
Source0:        https://pagure.io/golist/archive/v%{version}/golist-%{version}.tar.gz
BuildRequires:  golang(github.com/urfave/cli)
BuildRequires:  golang
BuildRequires:  go-rpm-macros

%description
A tool to analyse the properties of a Go (Golang) codebase.

%prep
%goprep -v

%build
# FIXME need to patch go.lua from go-rpm-macros
%ifarch %{e2k}
%define currentgoldflags %{nil}
%endif

for cmd in cmd/* ; do
  %gobuild -o %{gobuilddir}/bin/$(basename $cmd) %{goipath}/$cmd
done

%install
install -m 0755 -vd                     %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

%if %{with check}
%check
%gocheck
%endif

%files
%doc README.md NEWS.md
%license LICENSE
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13072 |21mr|gom-0.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version} | cut -d. -f1,2)

%define api	1.0
%define major	0
%define libname	%mklibname gom %{api} %{major}
%define devname	%mklibname gom %{api} -d
%define girname	%mklibname gom-gir %{api}

Summary:	GObject to SQLite object mapper library
Name:		gom
Version:	0.4
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gom
Source0:	https://download.gnome.org/sources/gom/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gobject-introspection-devel
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(libpng16)

%description
Gom provides an object mapper from GObjects to SQLite. It helps you write
applications that need to store structured data as well as make complex queries
upon that data.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GObject to SQLite object mapper library
Group:		System/Libraries

%description -n %{libname}
Gom provides an object mapper from GObjects to SQLite. It helps you write
applications that need to store structured data as well as make complex queries
upon that data.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README TODO
%{_libdir}/libgom-%{api}.so.%{major}
%{_libdir}/libgom-%{api}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Gom-%{api}.typelib

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 binding for the GObject Dara Mapper
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n python3-%{name}
This is a DataMapper for GObject.

%files -n python3-%{name}
%doc COPYING
%{python3_sitearch}/gi/overrides/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	python3-%{name} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc COPYING
%{_datadir}/gir-1.0/Gom-%{api}.gir
%{_datadir}/gtk-doc/html
%{_includedir}/gom-%{api}
%{_libdir}/libgom-%{api}.so
%{_libdir}/pkgconfig/gom-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Denable-gtk-doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13073 |21mr|goocanvas3-3.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define oname goocanvas

%define major 9
%define api 3.0
%define gmajor 3.0
%define libname %mklibname %{oname} %{api} %{major}
%define devname %mklibname %{oname} %{api} -d
%define girname %mklibname %{oname}-gir %{gmajor}

%define url_ver %(echo %version | cut -d. -f1,2)

Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Name:		goocanvas3
Version:	3.0.0
Release:	4
License:	LGPLv2.1+
Group:		Development/GNOME and GTK+
Url:		http://sourceforge.net/projects/goocanvas
Source0:	http://download.gnome.org/sources/%{oname}/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
GooCanvas is a new canvas widget for GTK+ that uses the cairo 2D library for
drawing. It has a model/view split, and uses interfaces for canvas items and
views, so you can easily turn any application object into canvas items.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		System/Libraries
Requires:	%{name}-i18n >= %{EVRD}

%description -n %{libname}
This package contains the shared library for goocanvas.

%files -n %{libname}
%doc README COPYING AUTHORS
%{_libdir}/lib%{oname}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GooCanvas-%{gmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	goocanvas2-devel = %{EVRD}

%description -n %{devname}
This package contains the development libraries, include files 
and documentation.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/goocanvas3
%{_includedir}/%{oname}-%{api}
%{_libdir}/lib%{oname}-%{api}.so
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/GooCanvas-%{gmajor}.gir

#----------------------------------------------------------------------------

%package i18n
Summary:	New canvas widget for GTK+ that uses the cairo 2D library
Group:		System/Internationalization

%description i18n
This package contains the translations for goocanvas.

%files i18n -f goocanvas3.lang

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%configure \
	--enable-introspection=yes \
	--disable-static
%make LIBS=-lm

%install
%makeinstall_std

%find_lang goocanvas3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13074 |21mr|google-api-python-client-2.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Share doc between python- and python3-
%global _docdir_fmt %{name}
%global pypi_name google-api-client

Name:		google-api-python-client
Summary:	Google APIs Client Library for Python
Epoch:		1
Version:	2.18.0
Release:	1
Group:		Development/Python
License:	ASL 2.0
URL:		http://github.com/googleapis/%{name}/
Source0:	https://github.com/googleapis/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildArch:	noarch

%description
Written by Google, this library provides a small, flexible, and powerful
Python client library for accessing Google APIs.

#------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Google APIs Client Library for Python
Group:		Development/Python
BuildRequires:	python3-devel >= 3.3
BuildRequires:	python3-setuptools
BuildRequires:	python3-httplib2 >= 0.9.2
BuildRequires:	python3-oauth2client >= 2.0.0
BuildRequires:	python3-uritemplate >= 3.0.0
BuildRequires:	python3-six >= 1.6.1

Requires:	python3-httplib2 >= 0.9.2
Requires:	python3-oauth2client >= 2.0.0
Requires:	python3-uritemplate >= 3.0.0
Requires:	python3-six >= 1.6.1
Requires:	python3-google-api-core >= 1.18.0
Requires:	python3-google-auth-httplib2 >= 0.0.3

%description -n python3-%{pypi_name}
Written by Google, this library provides a small, flexible, and powerful
Python 3 client library for accessing Google APIs.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/apiclient/
%{python3_sitelib}/googleapiclient/
%{python3_sitelib}/google_api_python_client-%{version}-py%{python3_version}.egg-info/

#------------------------------------------------------------------

%prep
%autosetup

# remove unusable google-api-client requires
sed -i /google-api-core/d setup.py

# remove egg info
rm -rf google_api_python_client.egg-info

# remove shebang without touching timestamp
for lib in googleapiclient/*.py; do
 sed '1{\@^#!/usr/bin/python@d}' $lib > $lib.new &&
 touch -r $lib $lib.new &&
 mv $lib.new $lib
done

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13075 |21mr|google-authenticator-1.03-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	One-time pass-code support using open standards
Name:		google-authenticator
Version:	1.03
Release:	2
License:	ASL 2.0
Group:		System/Libraries
Url:		https://github.com/google/%{name}-libpam/
Source0:	https://github.com/google/%{name}-libpam/archive/%{version}.zip
BuildRequires:	libtool
BuildRequires:	pam-devel

%description
The Google Authenticator package contains a plug-able authentication
module (PAM) which allows login using one-time pass-codes conforming to
the open standards developed by the Initiative for Open Authentication
(OATH) (which is unrelated to OAuth).

Pass-code generators are available (separately) for several mobile
platforms.

These implementations support the HMAC-Based One-time Password (HOTP)
algorithm specified in RFC 4226 and the Time-based One-time Password
(TOTP) algorithm currently in draft.

%files
%doc %{_docdir}/%{name}
%{_bindir}/%{name}
/%{_lib}/security/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-libpam-%{version}

%build
./bootstrap.sh
%configure \
	--libdir="/%{_lib}/"
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13076 |21mr|google-crc32c-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname crc32c %{major}
%define devname %mklibname crc32c -d

# NOTE(mhayden): Tests are disabled because the upstream repository doesn't
#include the 'googletest' component and even if 'googletest' is packaged
#separately, lots of patching for the cmake configuration is required to make it
#work.
%bcond_with tests

Name:           google-crc32c
Version:        1.1.2
Release:        1
License:        BSD
Summary:        CRC32C implementation with support for CPU-specific acceleration instructions
Group:          System/Libraries
Url:            https://github.com/google/crc32c
Source0:        https://github.com/google/crc32c/archive/refs/tags/%{version}.tar.gz?/crc32c-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  gcc-c++

%description
This project collects a few CRC32C implementations under an umbrella that
dispatches to a suitable implementation based on the host computer's hardware
capabilities. CRC32C is specified as the CRC that uses the iSCSI polynomial in
RFC 3720. The polynomial was introduced by G. Castagnoli, S. Braeuer and M.
Herrmann. CRC32C is used in software such as Btrfs, ext4, Ceph and leveldb.

#-------------------------------------------------------
%package -n %{libname}
Summary:	CRC32C implementation with support for CPU-specific acceleration instructions
Group:		System/Libraries

%description -n %{libname}
This project collects a few CRC32C implementations under an umbrella that
dispatches to a suitable implementation based on the host computer's hardware
capabilities. CRC32C is specified as the CRC that uses the iSCSI polynomial in
RFC 3720. The polynomial was introduced by G. Castagnoli, S. Braeuer and M.
Herrmann. CRC32C is used in software such as Btrfs, ext4, Ceph and leveldb.

%files -n %{libname}
%license LICENSE
%doc README.md
%{_libdir}/libcrc32c.so.%{major}*

#-------------------------------------------------------
%package -n %{devname}
Summary:        Development files for %{name}
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
Provides:       crc32c-devel = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use crc32c.

%files -n %{devname}
%license LICENSE
%doc README.md
%{_libdir}/libcrc32c.so
%{_libdir}/cmake/Crc32c/
%{_includedir}/crc32c

#-------------------------------------------------------

%prep
%autosetup -n crc32c-%{version}


%build
# NOTE(mhayden): Thanks to the Arch Linux developers for providing ideas on how
# to compile this properly. https://aur.archlinux.org/packages/google-crc32c/
%cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DCRC32C_BUILD_BENCHMARKS=OFF \
    -DCRC32C_BUILD_TESTS=OFF \
    -DCRC32C_USE_GLOG=OFF
%make_build


%install
%make_install -C build


%if %{with tests}
%check
%ctest
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13077 |21mr|google-gson-2.8.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           google-gson
Version:        2.8.2
Release:        4
Summary:        Java lib for conversion of Java objects into JSON representation
License:        ASL 2.0
Group:          Development/Java
URL:            https://github.com/google/gson
Source0:        https://github.com/google/gson/archive/gson-parent-%{version}.tar.gz
Patch0:         osgi-export-internal.patch

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Gson is a Java library that can be used to convert a Java object into its
JSON representation. It can also be used to convert a JSON string into an
equivalent Java object. Gson can work with arbitrary Java objects including
pre-existing objects that you do not have source-code of.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n gson-gson-parent-%{version}
%patch0 -p1

# Use felix maven-bundle-plugin only for OSGi metadata
%pom_remove_plugin :bnd-maven-plugin gson
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']" "<configuration>
    <instructions>
      <_include>bnd.bnd</_include>
    </instructions>
  </configuration>
  <executions>
    <execution>
      <id>create-manifest</id>
      <phase>process-classes</phase>
      <goals><goal>manifest</goal></goals>
    </execution>
  </executions>" gson

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README.md CHANGELOG.md UserGuide.md

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13078 |21mr|google-guice-4.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     jpa
%bcond_with     spring

%global short_name guice

Name:           google-%{short_name}
Version:        4.2.2
Release:        1
Summary:        Lightweight dependency injection framework for Java 5 and above
License:        ASL 2.0
URL:            https://github.com/google/%{short_name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./create-tarball.sh %%{version}
Source0:        %{name}-%{version}.tar.xz
Source1:        create-tarball.sh

BuildRequires:  maven-local
BuildRequires:  mvn(aopalliance:aopalliance)
BuildRequires:  mvn(cglib:cglib)
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(javax.servlet:servlet-api)
# xmvn-builddep misses apache-jar-resource-bundle
BuildRequires:  mvn(org.apache:apache-jar-resource-bundle)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.sonatype.plugins:munge-maven-plugin)

%if %{with jpa}
BuildRequires:  mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
%endif
%if %{with spring}
BuildRequires:  mvn(org.springframework:spring-beans)
%endif

# Test dependencies:
%if 0
BuildRequires:  maven-surefire-provider-testng
BuildRequires:  aqute-bnd
BuildRequires:  atinject-tck
BuildRequires:  easymock2
BuildRequires:  felix-framework
BuildRequires:  hibernate3-entitymanager
BuildRequires:  mvn(org.hsqldb:hsqldb-j5)
BuildRequires:  testng
%endif

Obsoletes:      guice-testlib < 4.1-17

%description
Put simply, Guice alleviates the need for factories and the use of new
in your Java code. Think of Guice's @Inject as the new new. You will
still need to write factories in some cases, but your code will not
depend directly on them. Your code will be easier to change, unit test
and reuse in other contexts.

Guice embraces Java's type safe nature, especially when it comes to
features introduced in Java 5 such as generics and annotations. You
might think of Guice as filling in missing features for core
Java. Ideally, the language itself would provide most of the same
features, but until such a language comes along, we have Guice.

Guice helps you design better APIs, and the Guice API itself sets a
good example. Guice is not a kitchen sink. We justify each feature
with at least three use cases. When in doubt, we leave it out. We
build general functionality which enables you to extend Guice rather
than adding every feature to the core framework.


%package -n %{short_name}-parent
Summary:        Guice parent POM

%description -n %{short_name}-parent
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides parent POM for Guice modules.


%package -n %{short_name}-assistedinject
Summary:        AssistedInject extension module for Guice

%description -n %{short_name}-assistedinject
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides AssistedInject module for Guice.


%package -n %{short_name}-extensions
Summary:        Extensions for Guice

%description -n %{short_name}-extensions
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides extensions POM for Guice.


%package -n %{short_name}-grapher
Summary:        Grapher extension module for Guice

%description -n %{short_name}-grapher
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides Grapher module for Guice.


%package -n %{short_name}-jmx
Summary:        JMX extension module for Guice

%description -n %{short_name}-jmx
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides JMX module for Guice.


%package -n %{short_name}-jndi
Summary:        JNDI extension module for Guice

%description -n %{short_name}-jndi
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides JNDI module for Guice.


%package -n %{short_name}-multibindings
Summary:        MultiBindings extension module for Guice

%description -n %{short_name}-multibindings
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides MultiBindings module for Guice.


%if %{with jpa}
%package -n %{short_name}-persist
Summary:        Persist extension module for Guice

%description -n %{short_name}-persist
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides Persist module for Guice.
%endif


%package -n %{short_name}-servlet
Summary:        Servlet extension module for Guice

%description -n %{short_name}-servlet
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides Servlet module for Guice.


%if %{with spring}
%package -n %{short_name}-spring
Summary:        Spring extension module for Guice

%description -n %{short_name}-spring
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides Spring module for Guice.
%endif


%package -n %{short_name}-throwingproviders
Summary:        ThrowingProviders extension module for Guice

%description -n %{short_name}-throwingproviders
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides ThrowingProviders module for Guice.


%package -n %{short_name}-bom
Summary:        Bill of Materials for Guice

%description -n %{short_name}-bom
Guice is a lightweight dependency injection framework for Java 5
and above. This package provides Bill of Materials module for Guice.


%package javadoc
Summary:        API documentation for Guice

%description javadoc
This package provides %{summary}.


%prep
%setup -q -n %{name}-%{version}

# We don't have struts2 in Fedora yet.
%pom_disable_module struts2 extensions
# Android-specific extension
%pom_disable_module dagger-adapter extensions

# Remove additional build profiles, which we don't use anyways
# and which are only pulling additional dependencies.
%pom_xpath_remove "pom:profile[pom:id='guice.with.jarjar']" core

# Fix OSGi metadata due to not using jarjar
%pom_xpath_set "pom:instructions/pom:Import-Package" \
  "!com.google.inject.*,*" core

# Animal sniffer is only causing problems. Disable it for now.
%pom_remove_plugin :animal-sniffer-maven-plugin core
%pom_remove_plugin :animal-sniffer-maven-plugin extensions

%pom_remove_plugin :maven-gpg-plugin

# We don't have the custom doclet used by upstream. Remove
# maven-javadoc-plugin to generate javadocs with default style.
%pom_remove_plugin -r :maven-javadoc-plugin

# remove test dependency to make sure we don't produce requires
# see #1007498
%pom_remove_dep :guava-testlib extensions
%pom_xpath_remove "pom:dependency[pom:classifier[text()='tests']]" extensions

%pom_remove_parent
%pom_set_parent com.google.inject:guice-parent:%{version} jdk8-tests

%if %{without jpa}
%pom_disable_module persist extensions
%endif
%if %{without spring}
%pom_disable_module spring extensions
%endif

%pom_disable_module jdk8-tests

# Require a newer compiler
%pom_xpath_set "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" "1.8"
%pom_xpath_set "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" "1.8"

%pom_disable_module testlib extensions


%build
%mvn_alias "com.google.inject.extensions:" "org.sonatype.sisu.inject:"

%mvn_package :::no_aop: guice

%mvn_file  ":guice-{*}"  %{short_name}/guice-@1
%mvn_file  ":guice" %{short_name}/%{name} %{name}
%mvn_alias ":guice" "org.sonatype.sisu:sisu-guice"

# Skip tests because of missing dependency guice-testlib
%mvn_build -f -s


%install
%mvn_install


%files -f .mfiles-guice

%files -n %{short_name}-parent -f .mfiles-guice-parent
%doc COPYING

%files -n %{short_name}-assistedinject -f .mfiles-guice-assistedinject
%files -n %{short_name}-extensions -f .mfiles-extensions-parent
%files -n %{short_name}-grapher -f .mfiles-guice-grapher
%files -n %{short_name}-jmx -f .mfiles-guice-jmx
%files -n %{short_name}-jndi -f .mfiles-guice-jndi
%files -n %{short_name}-multibindings -f .mfiles-guice-multibindings
%if %{with jpa}
%files -n %{short_name}-persist -f .mfiles-guice-persist
%endif
%files -n %{short_name}-servlet -f .mfiles-guice-servlet
%if %{with spring}
%files -n %{short_name}-spring -f .mfiles-guice-spring
%endif
%files -n %{short_name}-throwingproviders -f .mfiles-guice-throwingproviders

%files -n %{short_name}-bom -f .mfiles-guice-bom

%files javadoc -f .mfiles-javadoc
%doc COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13079 |21mr|google-http-java-client-1.22.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if 0%{?fedora}
%bcond_with datanucleus_plugin
%endif

Name:          google-http-java-client
Version:       1.22.0
Release:       6
Summary:       Google HTTP Client Library for Java
License:       ASL 2.0
URL:           https://github.com/google/google-http-java-client/
Source0:       https://github.com/google/google-http-java-client/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(com.google.code.findbugs:findbugs)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(com.google.code.gson:gson)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.google.protobuf:protobuf-java)
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(javax.jdo:jdo2-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(mysql:mysql-connector-java)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires: mvn(org.codehaus.jackson:jackson-core-asl)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.datanucleus:datanucleus-core)
BuildRequires: mvn(org.datanucleus:datanucleus-api-jdo)
BuildRequires: mvn(org.datanucleus:datanucleus-rdbms)
%if %{with datanucleus_plugin}
BuildRequires: mvn(org.datanucleus:datanucleus-maven-plugin)
%endif
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(xpp3:xpp3)
BuildRequires: /usr/bin/protoc

# google-http-client/src/main/java/com/google/api/client/util/Base64.java
Provides:      bundled(apache-commons-codec) = 1.8

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Google HTTP Client Library for Java. Functionality
that works on all supported Java platforms,
including Java 5 (or higher) desktop (SE) and
web (EE), Android, and Google App Engine.

%package findbugs
Summary:       Google HTTP Client Findbugs plugin

%description findbugs
Google APIs Client Library Findbugs custom plugin.

%package gson
Summary:       Google HTTP Client GSON extensions

%description gson
GSON extensions to the Google HTTP Client Library for Java.

%package jackson
Summary:       Google HTTP Client Jackson extensions

%description jackson
Jackson extensions to the Google HTTP Client Library for Java.

%package jackson2
Summary:      Google HTTP Client Jackson 2 extensions

%description jackson2
Jackson 2 extensions to the Google HTTP Client Library for Java.

%package jdo
Summary:       Google HTTP Client JDO extensions

%description jdo
JDO extensions to the Google HTTP Client Library for Java.

%package parent
Summary:       Google HTTP Client Parent POM

%description parent
Parent POM for the Google HTTP Client Library for Java.

%package protobuf
Summary:       Google HTTP Client Protocol Buffer extensions

%description protobuf
Protocol Buffer extensions to the Google HTTP Client Library for Java.

%package test
Summary:       Google HTTP Client Test support

%description test
Shared classes used for testing of artifacts in the
Google HTTP Client Library for Java.

%package xml
Summary:       Google HTTP Client XML extensions

%description xml
XML extensions to the Google HTTP Client Library for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin
%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin -r :maven-deploy-plugin

%pom_remove_plugin :maven-release-plugin

%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"

# kr.motd.maven:os-maven-plugin:1.4.0.Final
%pom_xpath_remove -r "pom:build/pom:extensions"

%pom_disable_module google-http-client-assembly
%pom_disable_module google-http-client-appengine
%pom_disable_module google-http-client-android
%pom_disable_module samples/dailymotion-simple-cmdline-sample
%pom_disable_module samples/googleplus-simple-cmdline-sample

%pom_change_dep -r :guava-jdk5 :guava

%pom_xpath_remove "pom:dependency[pom:groupId='commons-codec']/pom:scope" google-http-client

# Disable bundle of commons-codec & guava
%pom_remove_plugin org.sonatype.plugins:jarjar-maven-plugin google-http-client
%pom_remove_plugin :maven-antrun-plugin google-http-client

%pom_remove_dep com.google.android:android google-http-client

%if %{without datanucleus_plugin}
%pom_remove_plugin :maven-datanucleus-plugin
%pom_remove_plugin :maven-datanucleus-plugin google-http-client-jdo
%else
# Generate: ENHANCED (PersistenceCapable) : com.google.api.client.extensions.jdo.JdoDataStoreFactory$JdoValue
# Upgrade datanucleus-maven-plugin refs
%pom_xpath_set "pom:plugins/pom:plugin[pom:groupId='org.datanucleus']/pom:artifactId" datanucleus-maven-plugin
%pom_xpath_set "pom:plugins/pom:plugin[pom:groupId='org.datanucleus']/pom:artifactId" datanucleus-maven-plugin google-http-client-jdo
# Fix datanucleus-maven-plugin runtime deps
# Error: Could not find or load main class org.datanucleus.enhancer.DataNucleusEnhancer
%pom_xpath_inject "pom:plugins/pom:plugin[pom:groupId='org.datanucleus']" "
<dependencies>
    <dependency>
      <groupId>org.datanucleus</groupId>
      <artifactId>datanucleus-core</artifactId>
      <version>3.2.9</version>
    </dependency>
    <dependency>
      <groupId>org.datanucleus</groupId>
      <artifactId>datanucleus-api-jdo</artifactId>
      <version>3.2.6</version>
    </dependency>
</dependencies>" google-http-client-jdo
%endif

# com.google.protobuf.tools:maven-protoc-plugin:0.4.2
%pom_remove_plugin com.google.protobuf.tools:maven-protoc-plugin google-http-client-protobuf
%pom_add_plugin org.codehaus.mojo:build-helper-maven-plugin:1.5 google-http-client-protobuf "
<executions>
   <execution>
      <id>add-test-source</id>
      <phase>generate-test-sources</phase>
      <goals>
         <goal>add-test-source</goal>
      </goals>
      <configuration>
         <sources>
            <source>target/generated-test-sources</source>
         </sources>
      </configuration>
   </execution>
</executions>"
%pom_add_plugin org.apache.maven.plugins:maven-antrun-plugin:1.8 google-http-client-protobuf '
<executions>
  <execution>
     <id>generate-sources</id>
     <phase>generate-sources</phase>
     <configuration>
       <target>
         <mkdir dir="target/generated-test-sources"/>
         <exec failonerror="true" executable="protoc">
            <arg value="--java_out=target/generated-test-sources"/>
            <arg value="src/test/proto/simple_proto.proto"/>
         </exec>
       </target>
     </configuration>
     <goals>
       <goal>run</goal>
     </goals>
  </execution>
</executions>'

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
<execution>
 <id>default-jar</id>
 <phase>skip</phase>
</execution>" google-http-client-jdo

# UnknownHostException: www.test.url: Name or service not known
rm -r google-http-client/src/test/java/com/google/api/client/http/apache/ApacheHttpTransportTest.java
# UrlEncodedContentTest.testWriteTo:47->subtestWriteTo:54 expected:<[username=un&password=password123%%3B%%7B%%7D]>
# but was:<[password=password123%%3B%%7B%%7D&username=un]>
#rm -r google-http-client/src/test/java/com/google/api/client/http/UrlEncodedContentTest.java

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-google-http-client
%doc README.md
%license LICENSE

%files findbugs -f .mfiles-google-http-client-findbugs
%files gson -f .mfiles-google-http-client-gson
%files jackson -f .mfiles-google-http-client-jackson
%files jackson2 -f .mfiles-google-http-client-jackson2
%files jdo -f .mfiles-google-http-client-jdo
%files parent -f .mfiles-google-http-client-parent
%files protobuf -f .mfiles-google-http-client-protobuf
%files test -f .mfiles-google-http-client-test
%files xml -f .mfiles-google-http-client-xml

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13080 |21mr|google-oauth-java-client-1.22.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if 0%{?fedora}
%bcond_with dnplugin
%endif

Name:          google-oauth-java-client
Version:       1.22.0
Release:       3
Summary:       Google OAuth Client Library for Java
License:       ASL 2.0
Group:         Development/Java
URL:           https://github.com/google/google-oauth-java-client
Source0:       https://github.com/google/google-oauth-java-client/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(com.google.http-client:google-http-client)
BuildRequires: mvn(com.google.http-client:google-http-client-jackson)
BuildRequires: mvn(com.google.http-client:google-http-client-jdo)
BuildRequires: mvn(javax.jdo:jdo2-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(mysql:mysql-connector-java)
BuildRequires: mvn(org.datanucleus:datanucleus-core)
BuildRequires: mvn(org.datanucleus:datanucleus-api-jdo)
BuildRequires: mvn(org.datanucleus:datanucleus-rdbms)
%if %{with dnplugin}
BuildRequires: mvn(org.datanucleus:datanucleus-maven-plugin)
%endif
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Google OAuth Client Library for Java. Functionality that
works on all supported Java platforms, including Java 5
(or higher) desktop (SE) and web (EE), Android, and
Google App Engine.

%package java6
Summary:       Google OAuth Client Java 6 extensions

%description java6
Java 6 (and higher) extensions to the
Google OAuth Client Library for Java.

%package parent
Summary:       Google OAuth Client Parent POM

%description parent
Parent POM for the Google OAuth Client Library for Java.

%package servlet
Summary:       Google OAuth Client Servlet and JDO extensions

%description servlet
Servlet and JDO extensions to the
Google OAuth Client Library for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :clirr-maven-plugin
%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-deploy-plugin
%pom_remove_plugin -r :maven-source-plugin
# duplicate declaration
%pom_remove_plugin -r :maven-release-plugin

%pom_disable_module google-oauth-client-assembly
# com.google.appengine:appengine-{api-1.0-sdk,testing,api-stubs}:1.7.7
%pom_disable_module google-oauth-client-appengine

# org.mortbay.jetty:jetty
%pom_disable_module google-oauth-client-jetty

%pom_disable_module samples/dailymotion-cmdline-sample

%pom_change_dep -r :guava-jdk5 :guava
%pom_change_dep -r :servlet-api :javax.servlet-api:3.1.0

%if %{without dnplugin}
%pom_remove_plugin org.datanucleus:maven-datanucleus-plugin google-oauth-client-servlet
%else
# Generate:
# ENHANCED (PersistenceCapable) : com.google.api.client.extensions.auth.helpers.oauth.OAuthHmacThreeLeggedFlow
# ENHANCED (PersistenceCapable) : com.google.api.client.extensions.auth.helpers.oauth.OAuthHmacCredential
# Upgrade datanucleus-maven-plugin refs
%pom_xpath_set "pom:plugin[pom:groupId='org.datanucleus']/pom:artifactId" datanucleus-maven-plugin google-oauth-client-servlet
# Fix datanucleus-maven-plugin runtime deps
# Error: Could not find or load main class org.datanucleus.enhancer.DataNucleusEnhancer
%pom_xpath_inject "pom:plugin[pom:groupId='org.datanucleus']" "
<dependencies>
    <dependency>
      <groupId>org.datanucleus</groupId>
      <artifactId>datanucleus-core</artifactId>
      <version>3.2.9</version>
    </dependency>
    <dependency>
      <groupId>org.datanucleus</groupId>
      <artifactId>datanucleus-api-jdo</artifactId>
      <version>3.2.6</version>
    </dependency>
</dependencies>" google-oauth-client-servlet
# Class "com.google.api.client.extensions.auth.helpers.oauth.OAuthHmacThreeLeggedFlow"
# field "authorizationUrl" : marked as persistent yet is final so cannot be persisted
#sed -i "s|private final String authorizationUrl;|private String authorizationUrl;|" \
# google-oauth-client-servlet/src/main/java/com/google/api/client/extensions/auth/helpers/oauth/OAuthHmacThreeLeggedFlow.java
%endif

%pom_xpath_remove -r "pom:plugin[pom:artifactId ='maven-jar-plugin']/pom:executions"

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-google-oauth-client
%doc README.md
%license LICENSE

%files java6 -f .mfiles-google-oauth-client-java6

%files parent -f .mfiles-google-oauth-client-parent
%license LICENSE

%files servlet -f .mfiles-google-oauth-client-servlet

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13081 |21mr|go-rpm-macros-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

%global forgeurl  https://pagure.io/go-rpm-macros
Version:   3.2.0
%forgemeta

#https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
%global _spectemplatedir %{_datadir}/rpmdevtools/fedora
%global _docdir_fmt     %{name}

# Master definition that will be written to macro files
%global golang_arches   %{ix86} %{x86_64} %{armx} %{riscv} ppc64le s390x %{riscv}
%global gccgo_arches    %{mips} %{e2k}
# Go sources can contain arch-specific files and our macros will package the
# correct files for each architecture. Therefore, move gopath to _libdir and
# make Go devel packages archful
%global gopath          %{_datadir}/gocode

ExclusiveArch: %{golang_arches} %{gccgo_arches}

Name:      go-rpm-macros
Release:   1
Summary:   Build-stage rpm automation for Go packages
Group:     Development/Other

License:   GPLv3+
URL:       https://pagure.io/go-rpm-macros
Source0:   https://pagure.io/go-rpm-macros/archive/%{version}/go-rpm-macros-%{version}.tar.gz

Requires:  go-srpm-macros = %{EVRD}
Requires:  go-filesystem  = %{EVRD}
%if %{without bootstrap}
Requires:  golist
%endif

%ifarch %{golang_arches}
Requires:  golang
Provides:  compiler(golang)
Provides:  compiler(go-compiler) = 2
Provides:  go-compilers-golang-compiler = 2
%endif

%ifarch %{gccgo_arches}
Requires:  gcc-go
Provides:  compiler(gcc-go)
Provides:  compiler(go-compiler) = 1
%endif

%description
This package provides build-stage rpm automation to simplify the creation of Go
language (golang) packages.

It does not need to be included in the default build root: go-srpm-macros will
pull it in for Go packages only.

%package -n go-srpm-macros
Summary:   Source-stage rpm automation for Go packages
BuildArch: noarch
Requires:  rpm-openmandriva-setup-build

%description -n go-srpm-macros
This package provides SRPM-stage rpm automation to simplify the creation of Go
language (golang) packages.

It limits itself to the automation subset required to create Go SRPM packages
and needs to be included in the default build root.

The rest of the automation is provided by the go-rpm-macros package, that
go-srpm-macros will pull in for Go packages only.

%package -n go-filesystem
Summary:   Directories used by Go packages
License:   Public Domain

%description -n go-filesystem
This package contains the basic directory layout used by Go packages.

%package -n go-rpm-templates
Summary:   RPM spec templates for Go packages
License:   MIT
BuildArch: noarch
Requires:  go-rpm-macros = %{version}-%{release}

%description -n go-rpm-templates
This package contains documented rpm spec templates showcasing how to use the
macros provided by go-rpm-macros to create Go packages.

%prep
%forgesetup
%writevars -f rpm/macros.d/macros.go-srpm golang_arches gccgo_arches gopath
for template in templates/rpm/*\.spec ; do
  target=$(echo "${template}" | sed "s|^\(.*\)\.spec$|\1-bare.spec|g")
  grep -v '^#' "${template}" > "${target}"
  touch -r "${template}" "${target}"
done

%install
install -m 0755 -vd   %{buildroot}%{gopath}/src

install -m 0755 -vd   %{buildroot}%{_spectemplatedir}

install -m 0644 -vp   templates/rpm/*spec \
                      %{buildroot}%{_spectemplatedir}

install -m 0755 -vd   %{buildroot}%{_bindir}
install -m 0755 bin/* %{buildroot}%{_bindir}

install -m 0755 -vd   %{buildroot}%{_rpmmacrodir}
install -m 0644 -vp   rpm/macros.d/macros.go-*rpm* \
                      %{buildroot}%{_rpmmacrodir}
install -m 0755 -vd   %{buildroot}%{_rpmluadir}/fedora/srpm
install -m 0644 -vp   rpm/lua/srpm/*lua \
                      %{buildroot}%{_rpmluadir}/fedora/srpm
install -m 0755 -vd   %{buildroot}%{_rpmluadir}/fedora/rpm
install -m 0644 -vp   rpm/lua/rpm/*lua \
                      %{buildroot}%{_rpmluadir}/fedora/rpm
install -m 0755 -vd   %{buildroot}%{_rpmconfigdir}/fileattrs
install -m 0644 -vp   rpm/fileattrs/*.attr \
                      %{buildroot}%{_rpmconfigdir}/fileattrs/
install -m 0755 -vp   rpm/*\.{prov,deps} \
                      %{buildroot}%{_rpmconfigdir}/

%ifarch %{golang_arches}
# https://bugzilla.redhat.com/show_bug.cgi?id=2079705
install -m 0644 -vp   rpm/macros.d/macros.go-compilers-golang* \
                      %{buildroot}%{_rpmmacrodir}
%endif

%ifarch %{gccgo_arches}
install -m 0644 -vp   rpm/macros.d/macros.go-compilers-gcc \
                      %{buildroot}%{_rpmmacrodir}
%endif

%files
%license LICENSE.txt
%doc README.md
%{_bindir}/*
%{_rpmconfigdir}/fileattrs/*.attr
%{_rpmconfigdir}/*.prov
%{_rpmconfigdir}/*.deps
%{_rpmmacrodir}/macros.go-rpm*
%{_rpmmacrodir}/macros.go-compiler*
%{_rpmluadir}/fedora/rpm/*.lua

%files -n go-srpm-macros
%license LICENSE.txt
%doc README.md
%{_rpmconfigdir}/macros.d/macros.go-srpm
%{_rpmluadir}/fedora/srpm/*.lua

%files -n go-filesystem
%dir %{gopath}
%dir %{gopath}/src

%files -n go-rpm-templates
%license LICENSE-templates.txt
%doc README.md
# https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/51
%dir %{dirname:%{_spectemplatedir}}
%dir %{_spectemplatedir}
%{_spectemplatedir}/*.spec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13082 |21mr|gpars-1.2.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           gpars
Version:        1.2.1
Release:        14
Summary:        Groovy Parallel Systems
License:        ASL 2.0 and Public Domain
URL:            http://gpars.codehaus.org
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
# ./generate-tarball.sh %{version}
Source0:        %{name}-%{version}.tar.bz2
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:        generate-tarball.sh

Patch0:         0001-JSR-166.patch
Patch1:         0002-Enable-XMvn-local-mode.patch
Patch2:         0003-Port-build-script-to-current-gradle.patch
Patch3:         gpars-1.2.1-port-to-netty-3.10.6.patch

BuildRequires:  gradle-local >= 2.1-0.10
BuildRequires:  apache-parent
BuildRequires:  extra166y
BuildRequires:  jcsp
BuildRequires:  netty3
BuildRequires:  groovy-lib
BuildRequires:  multiverse

%description
The GPars framework offers Java developers intuitive and safe ways to
handle Java or Groovy tasks concurrently. Leveraging the enormous
flexibility of the Groovy programming language and building on proven
Java technologies, we aim to make concurrent programming for
multi-core hardware intuitive, robust and enjoyable.

GPars is a multi-paradigm concurrency framework, offering several
mutually cooperating high-level concurrency abstractions, such as
Dataflow operators, Promises, CSP, Actors, Asynchronous Functions,
Agents and Parallel Collections.

%prep
%setup -q
cp %{SOURCE1} .
rm -rf lib/ gradle/wrapper/
rm -rf src/main/groovy/groovyx/gpars/extra166y/
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%gradle_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13083 |21mr|gpart-0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hard disk primary partition table reconstruction
Name:		gpart
Version:	0.3
Release:	4
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://github.com/baruch/gpart/
Source0:	https://github.com/baruch/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz

%description
A tool which tries to guess the primary partition table of a PC-type hard disk
in case the primary partition table in sector 0 is damaged, incorrect or
deleted. The guessed table can be written to a file or device. Supported
(guessable) filesystem or partition types: DOS/Windows FAT, Linux ext2 and
swap, OS/2 HPFS, Windows NTFS, FreeBSD and Solaris/x86 disklabels, Minix FS,
QNX 4 FS, Reiser FS, LVM physical volumes, BeOS FS, SGI XFS.

%prep
%autosetup -p1

%build
./autogen.sh
%configure
%make_build

%install
%make_install

%files
%doc %{_docdir}/%{name}
%{_sbindir}/%{name}
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13084 |21mr|gparted-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _files_listed_twice_terminate_build 0

Summary:	Graphical frontend to libparted
Name:		gparted
Version:	1.5.0
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://gparted.org
Source0:	http://downloads.sourceforge.net/project/gparted/%{name}/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0:		gparted-1.5.0-fix-translate-overflow.patch
BuildRequires:	imagemagick
BuildRequires:	gettext-devel
BuildRequires:	polkit
BuildRequires:	polkit-1-devel
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libparted)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(uuid)
Requires:	gpart
# used in gparted.in script
Requires:	grep
Requires:	sysvinit-tools
Requires:	xhost

%description
GParted stands for Gnome Partition Editor and is a graphical frontend to
libparted. Among other features it supports creating, resizing, moving
and copying of partitions.

%files -f %{name}.lang
%doc AUTHORS README COPYING ChangeLog
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/polkit-1/actions/org.gnome.gparted.policy
%{_datadir}/appdata/*
%{_iconsdir}/hicolor/*/apps/*
%{_libexecdir}/gpartedbin
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Workaround strange desktop-common-data in ROSA's KDE desktop
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9397
sed -i -e 's,Categories=GNOME;,Categories=,g' gparted.desktop.in.in

%build
#autoreconf -vfi
%configure \
	--disable-doc
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13085 |21mr|gperf-3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A perfect hash function generator
Name:		gperf
Version:	3.1
Release:	3
License:	GPLv3+
Group:		Development/Tools
Url:		http://www.gnu.org/software/gperf/
Source:		ftp://ftp.gnu.org/gnu/gperf/%{name}-%{version}.tar.gz

%description
Gperf is a perfect hash function generator written in C++. Simply stated,
a perfect hash function is a hash function and a data structure that allows
recognition of a key word in a set of words using exactly one probe into
the data structure.

Install gperf if you need a program that generates perfect hash functions.

%files
%doc README NEWS doc/gperf.html
%{_bindir}/gperf
%{_mandir}/man1/gperf.1*
%{_infodir}/gperf.info*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std
rm -f %{buildroot}%{_datadir}/doc/gperf.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13086 |21mr|gperftools-2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1
%define oname		gperftools
%define libname		%mklibname %{oname} %major
%define develname	%mklibname %{oname} -d

Name:		gperftools
Version:	2.8
Release:	1
License:	BSD
Group:		Development/Other
Summary:	Very fast malloc and performance analysis tools
URL:		https://github.com/gperftools/gperftools
Source0:	https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz
BuildRequires:	libunwind-devel

%description
Perf Tools is a collection of performance analysis tools, including a
high-performance multi-threaded malloc() implementation that works
particularly well with threads and STL, a thread-friendly heap-checker,
a heap profiler, and a cpu-profiler.

%package -n	%{develname}
Summary:	Development libraries and headers for gperftools
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{EVRD}
Provides:	google-perftools-devel = %{version}-%{release}
Obsoletes:	google-perftools-devel < 2.0

%description -n %{develname}
Libraries and headers for developing applications that use gperftools.

%files -n %{develname}
%{_docdir}/%{name}-%{version}/
%{_includedir}/google/
%{_includedir}/gperftools/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
#------------------------------------------------------------------------

%package -n	%{libname}
Group:		System/Libraries
Summary:	Libraries provided by gperftools
Provides:	%{libname} = %{EVRD}
Provides:	perftools-libs = %{EVRD}
Provides:	gperftools-libs = %{EVRD}
Obsoletes:	google-perftools-libs < 2.0

%description -n %{libname}
Libraries provided by gperftools, including libtcmalloc and libprofiler.

%files -n %{libname}
%{_libdir}/*.so.*
#------------------------------------------------------------------------

%package -n pprof
Summary:	CPU and Heap Profiler tool
Group:		Development/Other
Requires:	gv, graphviz
BuildArch:	noarch
Provides:	google-perftools = %{version}-%{release}
Obsoletes:	google-perftools < 2.0

%description -n pprof
Pprof is a heap and CPU profiler tool, part of the gperftools suite.

%files -n pprof
%{_bindir}/pprof
%{_bindir}/pprof-symbolize
%{_mandir}/man1/*
#------------------------------------------------------------------------

%prep
%setup -q

# Fix end-of-line encoding
sed -i 's/\r//' README_windows.txt

# No need to have exec permissions on source code
chmod -x src/sampler.h src/sampler.cc

%build
%configure --disable-static
%make_build

%install
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version}/ install
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'

# Zero files
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/NEWS

# Delete useless files
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13087 |21mr|gperftools-2.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1
%define oname		gperftools
%define libname		%mklibname %{oname} %major
%define develname	%mklibname %{oname} -d

Name:		gperftools
Version:	2.9.1
Release:	1
License:	BSD
Group:		Development/Other
Summary:	Very fast malloc and performance analysis tools
URL:		https://github.com/gperftools/gperftools
Source0:	https://github.com/gperftools/gperftools/releases/download/gperftools-%{version}/gperftools-%{version}.tar.gz
#BuildRequires:	libunwind-devel

%description
Perf Tools is a collection of performance analysis tools, including a
high-performance multi-threaded malloc() implementation that works
particularly well with threads and STL, a thread-friendly heap-checker,
a heap profiler, and a cpu-profiler.

%package -n	%{develname}
Summary:	Development libraries and headers for gperftools
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{EVRD}
Provides:	google-perftools-devel = %{version}-%{release}
Obsoletes:	google-perftools-devel < 2.0

%description -n %{develname}
Libraries and headers for developing applications that use gperftools.

%files -n %{develname}
%{_docdir}/%{name}-%{version}/
%{_includedir}/google/
%{_includedir}/gperftools/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
#------------------------------------------------------------------------

%package -n	%{libname}
Group:		System/Libraries
Summary:	Libraries provided by gperftools
Provides:	%{libname} = %{EVRD}
Provides:	perftools-libs = %{EVRD}
Provides:	gperftools-libs = %{EVRD}
Obsoletes:	google-perftools-libs < 2.0

%description -n %{libname}
Libraries provided by gperftools, including libtcmalloc and libprofiler.

%files -n %{libname}
%{_libdir}/*.so.*
#------------------------------------------------------------------------

%package -n pprof
Summary:	CPU and Heap Profiler tool
Group:		Development/Other
Requires:	gv, graphviz
BuildArch:	noarch
Provides:	google-perftools = %{version}-%{release}
Obsoletes:	google-perftools < 2.0

%description -n pprof
Pprof is a heap and CPU profiler tool, part of the gperftools suite.

%files -n pprof
%{_bindir}/pprof
%{_bindir}/pprof-symbolize
%{_mandir}/man1/*
#------------------------------------------------------------------------

%prep
%setup -q

# Fix end-of-line encoding
sed -i 's/\r//' README_windows.txt

# No need to have exec permissions on source code
chmod -x src/sampler.h src/sampler.cc

%build
%configure --disable-static
%make_build

%install
make DESTDIR=%{buildroot} docdir=%{_docdir}/%{name}-%{version}/ install
find %{buildroot} -type f -name "*.la" -exec rm -f {} ';'

# Zero files
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/NEWS

# Delete useless files
rm -rf %{buildroot}%{_docdir}/%{name}-%{version}/INSTALL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13088 |21mr|gpgme-1.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

%define pp_major 6
%define libnamepp %mklibname %{name}pp %{pp_major}
%define devnamepp %mklibname %{name}pp -d

%define q_major 7
%define libqname %mklibname q%{name} %{q_major}
%define devqname %mklibname q%{name} -d

%bcond_without qt5

Summary:	GnuPG Made Easy (GPGME)
Name:		gpgme
Version:	1.16.0
Release:	2
License:	GPLv2+
Group:		File tools
Url:		http://www.gnupg.org/gpgme.html
Source0:	ftp://ftp.gnupg.org/gcrypt/gpgme/%{name}-%{version}.tar.bz2
Patch0:		python3.8.patch
BuildRequires:	gnupg2
BuildRequires:	pkgconfig(libassuan)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gpg-error)
%if %{with qt5}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
%endif
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	swig
BuildRequires:	pkgconfig(python3)

%description
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GnuPG Made Easy (GPGME)
Group:		System/Libraries
Requires:	gnupg2
Provides:	%{name} = %{EVRD}

%description -n %{libname}
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

%files -n %{libname}
%{_libdir}/libgpgme.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamepp}
Summary:	GnuPG Made Easy (GPGME)
Group:		System/Libraries

%description -n %{libnamepp}
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

%files -n %{libnamepp}
%{_libdir}/libgpgmepp.so.%{pp_major}*

#----------------------------------------------------------------------------

%if %{with qt5}
%package -n %{libqname}
Summary:	GnuPG Made Easy (GPGME) (Qt5 bindings)
Group:		System/Libraries

%description -n %{libqname}
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

%files -n %{libqname}
%{_libdir}/libqgpgme.so.%{q_major}*
%endif
#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GnuPG Made Easy (GPGME) Header files and libraries for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

Install this package if you want to develop applications that will use
the %{name} library for crypto awareness.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%{_bindir}/gpgme-config
%{_bindir}/gpgme-json
%{_bindir}/gpgme-tool
%{_libdir}/libgpgme.so
%{_libdir}/pkgconfig/gpgme.pc
%{_libdir}/pkgconfig/gpgme-glib.pc
%{_datadir}/aclocal/*.m4
%{_includedir}/*.h
%{_infodir}/*
%dir %{_datadir}/common-lisp/source/gpgme
%{_datadir}/common-lisp/source/gpgme/gpgme-package.lisp
%{_datadir}/common-lisp/source/gpgme/gpgme.asd
%{_datadir}/common-lisp/source/gpgme/gpgme.lisp
%{_datadir}/common-lisp/source/gpgme/gpgme-grovel.lisp

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	GnuPG Made Easy (GPGME) Header files and libraries for development
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-devel-static = %{EVRD}
Conflicts:	%{_lib}gpgme-devel < 1.3.2-4

%description -n %{sdevname}
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

Install this package if you want to develop applications that will use
the %{name} library for crypto awareness. It's static library.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package -n %{devnamepp}
Summary:	GnuPG Made Easy (GPGME) Header files and libraries for development
Group:		Development/C++
Requires:	%{devname} = %{EVRD}
Requires:	%{libnamepp} = %{EVRD}
Provides:	%{name}pp-devel = %{EVRD}
Provides:	%{name}++-devel = %{EVRD}
Conflicts:	kdepimlibs4-devel

%description -n %{devnamepp}
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

Install this package if you want to develop applications that will use
the %{name} library for crypto awareness.

%files -n %{devnamepp}
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%{_includedir}/gpgme++/*
%{_libdir}/libgpgmepp.so
%dir %{_libdir}/cmake/Gpgmepp/
%{_libdir}/cmake/Gpgmepp/*

#----------------------------------------------------------------------------

%if %{with qt5}
%package -n %{devqname}
Summary:	GnuPG Made Easy (GPGME) development files (Qt5 bindings)
Group:		Development/C++
Requires:	%{libqname} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Requires:	%{devnamepp} = %{EVRD}
Provides:	q%{name}-devel = %{EVRD}
Conflicts:	kdepimlibs4-devel

%description -n %{devqname}
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

Install this package if you want to develop applications that will use
the %{name} library for crypto awareness.

%files -n %{devqname}
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%{_includedir}/qgpgme/*
%{_includedir}/QGpgME/*
%{_libdir}/libqgpgme.so
%dir %{_libdir}/cmake/QGpgme/
%{_libdir}/cmake/QGpgme/*
%endif

#----------------------------------------------------------------------------

%package -n python3-gpg
Summary:        GnuPG Made Easy (GPGME) bindings for Python 3
Group:          Development/Python
%{?python_provide:%python_provide python3-gpg}
Requires:       %{libname}%{?_isa} = %{version}-%{release}

%description -n python3-gpg
GnuPG Made Easy (GPGME) is a library designed to make access to GnuPG
easier for applications.

This package provides bindings to %{name} libraries for Python 3.

%files -n python3-gpg
%doc lang/python/README
%{python3_sitearch}/gpg-*.egg-info
%{python3_sitearch}/gpg/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export PATH=%{_qt5_bindir}:$PATH
%configure --enable-static
%make_build

%install
%make_install

# Likely we don't need it
rm -rf %{buildroot}%{_libdir}/libgpgmepp.a

%check
make check || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13089 |21mr|gphoto2-2.5.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Command line utilities to access digital cameras
Name:		gphoto2
Version:	2.5.27
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://sourceforge.net/projects/gphoto/
Source0:	https://downloads.sourceforge.net/project/gphoto/gphoto/%{version}/gphoto2-%{version}.tar.bz2

%if %{mdvver} < 202100
BuildRequires:	cdk-devel
%endif
BuildRequires:	gpm-devel
BuildRequires:	jpeg-devel
BuildRequires:	libaa-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgphoto2) >= %{version}
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(x11)
Requires:	libgphoto-common

%description
The gPhoto2 project is a universal, free application and library
framework that lets you download images from several different
digital camera models, including the newer models with USB
connections. Note that
a) for some older camera models you must use the old "gphoto" package.
b) for USB mass storage models you must use the driver in the kernel.

This package contains the command-line utility gphoto2.

%files -f %{name}.lang
%doc %{_defaultdocdir}/%{name}
%{_bindir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
%if %{mdvver} < 202100
	--with-cdk
%else
	--without-cdk
%endif
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13090 |21mr|gpm-1.20.7-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%bcond_without ncurses

# this defines the library version that this package builds.
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A mouse server for the Linux console
Name:		gpm
Version:	1.20.7
Release:	15
License:	GPLv2+
Group:		System/Servers
Url:		http://www.nico.schottelius.org/software/gpm/
Source0:	http://www.nico.schottelius.org/software/gpm/archives/%{name}-%{version}.tar.lzma
#(proyvind): please don't remove, still used by DrakX micro environment
Source1:	gpm.init
Source2:	inputattach.c
Source3:	gpm.service
# fedora patches (gpm-1.20.5-1.fc10.src.rpm)
Patch1:		gpm-1.20.1-multilib.patch
Patch2:		gpm-1.20.1-lib-silent.patch
Patch4:		gpm-1.20.5-close-fds.patch
Patch5:		gpm-1.20.7-weak-wgetch.patch
Patch6:		gpm-1.20.7-Fix-building-with-glibc-2.25.patch
# mdv patches
Patch50:	gpm-1.20.5-nodebug.patch
Patch51:	gpm-1.20.0-docfix.patch
Patch52:	gpm-1.20.7-do_not_build_it_twice.diff
Patch53:	gpm-1.20.5-format_not_a_string_literal_and_no_format_arguments.diff
# these automake files are utter crap, so just let's rip out the stuff that really doesn't belong
# there, we don't use and that's causing problem..
Patch54:	gpm-1.20.7-fix-out-of-source-build.patch

BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	texinfo
%if %{with ncurses}
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
%endif
Requires(post,preun):	chkconfig
Requires(post,preun):	rpm-helper

%description
Gpm provides mouse support to text-based Linux applications like the
emacs editor, the Midnight Commander file management system, and other
programs.  Gpm also provides console cut-and-paste operations using
the mouse and includes a program to allow pop-up menus to appear at
the click of a mouse button.

%files
%doc doc/*
%config(noreplace) %{_sysconfdir}/gpm-root.conf
%{_unitdir}/gpm.service
%{_initrddir}/gpm
%{_bindir}/display-buttons
%{_bindir}/display-coords
%{_bindir}/mev
%{_bindir}/gpm-root
%{_bindir}/hltest
%{_bindir}/mouse-test
%{_bindir}/disable-paste
%{_bindir}/get-versions
%{_sbindir}/gpm
%{_sbindir}/inputattach
%{_infodir}/gpm.info*
%{_mandir}/man1/mev.1*
%{_mandir}/man1/mouse-test.1*
%{_mandir}/man1/gpm-root.1*
%{_mandir}/man7/gpm-types.7*
%{_mandir}/man8/gpm.8*

%post
%_post_service gpm
# handle init sequence change
if [ -f /etc/rc5.d/S85gpm ]; then
	chkconfig --add gpm
fi

%preun
%_preun_service gpm

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries and header files for developing mouse driven programs
Group:		System/Libraries

%description -n %{libname}
Library used by the gpm program.

%files -n %{libname}
/%{_lib}/libgpm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for developing mouse driven programs
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains the libraries and header files needed
for development of mouse driven programs.  This package allows you to
develop text-mode programs which use the mouse.

Install %{devname} if you need to develop text-mode programs which
will use the mouse. You'll also need to install the gpm package.

%files -n %{devname}
#%%{_libdir}/libgpm.a
%{_libdir}/libgpm.so
%{_includedir}/gpm.h

#----------------------------------------------------------------------------

%prep
%setup -q
find -name \*.c |xargs chmod 644

# fedora patches
%patch1 -p1 -b .multilib~
%patch2 -p1 -b .lib-silent́~
%patch4 -p1 -b .close-fd~
%patch5 -p1 -b .weak-wgetch~
%patch6 -p1 -b .fix~

# mdv patches
%patch50 -p1 -b .nodebug~
%patch51 -p1 -b .docfix~
%patch52 -p1 -b .do_not_build_it_twice~
%patch53 -p0 -b .format_not_a_string_literal_and_no_format_arguments~
%patch54 -p1 -b .out_of_source~

sed -i -e 's:<gpm.h>:"headers/gpm.h":' src/prog/{display-buttons,display-coords,get-versions}.c

cp %{SOURCE2} inputattach.c

./autogen.sh

%build
export ac_cv_path_emacs=no

%configure \
	--disable-static \
%if !%{with ncurses}
	--without-curses
%endif
	%{nil}
make

%{__cc} %{optflags} %{ldflags} -o inputattach inputattach.c

%install
%makeinstall_std

install -m644 conf/gpm-root.conf -D %{buildroot}%{_sysconfdir}/gpm-root.conf
install -m755 inputattach -D %{buildroot}%{_sbindir}/inputattach

mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libgpm.so.%{major}* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libgpm.so.%{major}.*.* %{buildroot}%{_libdir}/libgpm.so

install -m755 %{SOURCE1} -D %{buildroot}%{_initrddir}/gpm
install -m644 %{SOURCE3} -D %{buildroot}%{_unitdir}/gpm.service
chmod +x %{buildroot}/%{_lib}/libgpm.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13091 |21mr|gprolog-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	GNU Prolog is a free implementation of Prolog
Name:		gprolog
Version:	1.5.0
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		http://www.gprolog.org/
Source0:	ftp://ftp.gnu.org:21/gnu/gprolog/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch1:		gprolog-1.4.4-test.patch

%description
GNU Prolog is a native Prolog compiler with constraint solving over finite
domains (FD) developed by Daniel Diaz. Latest information about GNU Prolog can
be found at http://www.gnu.org/software/prolog

A lot of work has been devoted to the ISO compatibility. GNU Prolog is very
close to the ISO standard (http://www.logic-programming.org/prolog_std.html).

%files
%doc ChangeLog NEWS PROBLEMS README doc/html_node
%{_bindir}/*
%{_libdir}/%{name}*
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
cd src
CFLG="$(echo %{optflags} | sed -s "s/\-O2/-O1/g" \
                         | sed -e "s/\-fomit-frame-pointer//")"

# Based on a gentoo ebuild (??)
CFLG="$CFLG -funsigned-char"
%configure \
	--with-c-flags="$CFLG -fno-unit-at-a-time" \
	--disable-regs \
	--with-install-dir=%{_prefix} \
	--with-doc-dir=%{_datadir}/%{name}-%{version} \
	--with-html-dir=%{_datadir}/%{name}-%{version}/html \
	--with-examples-dir=%{_datadir}/%{name}-%{version}/examples
# parallel build is not safe - AdamW 2008/12
make

%check
cd src
#
export PATH=%{buildroot}%{_bindir}:$PATH
#
make check

%install
install -d %{buildroot}%{_bindir}

(cd src ; make install-system INSTALL_DIR=%{buildroot}%{_libdir}/%{name}-%{version})

(cd %{buildroot}%{_bindir} ; ln -sf ../%{_lib}/%{name}-%{version}/bin/* .)

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=GNU Prolog
Name[ru]=Язык логического программирования Пролог
Comment=GNU Prolog is a free implementation of Prolog
Comment[ru]=Компилятор языка программирования Пролог
Exec=%{name}
Icon=interpreters_section
Terminal=true
Type=Application
Categories=Development;X-MandrivaLinux-MoreApplications-Development-Interpreters;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13092 |21mr|gpsd-3.21-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 27
%define libgps %mklibname gps %{major}
%define libqtname %mklibname Qgpsmm %{major}
%define devname %mklibname %{name} -d
%bcond_without qt
%bcond_without gtk

Summary:	GPS data translator and GUI
Name:		gpsd
Version:	3.21
Release:	4
License:	BSD
Group:		Sciences/Geosciences
Url:		http://catb.org/gpsd/
Source0:	http://download.savannah.gnu.org/releases/gpsd/%{name}-%{version}.tar.gz
Source11:	gpsd.sysconfig
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd412-xml
BuildRequires:	scons
BuildRequires:	udev
BuildRequires:	xmlto
BuildRequires:	lesstif-devel
%if %{with qt}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif
%if %{with gtk}
BuildRequires:	python3-cairo
BuildRequires:	python3-gi
BuildRequires:	pkgconfig(gtk+-3.0)
%endif
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(python3)
BuildRequires:	%{__python3}
BuildRequires:	python3-serial
Requires:	python3-%{name} = %{EVRD}

# DEBUG: Checking Python module serial (pyserial)... 
# DEBUG: WARNING: ubxtool and zerk are missing optional runtime module serial
Recommends:		python3-serial

%description
gpsd is a service daemon that mediates access to a GPS sensor
connected to the host computer by serial or USB interface, making its
data on the location/course/velocity of the sensor available to be
queried on TCP port 2947 of the host computer.  With gpsd, multiple
GPS client applications (such as navigational and wardriving software)
can share access to a GPS without contention or loss of data.  Also,
gpsd responds to queries with a format that is substantially easier to
parse than NMEA 0183.  A client library is provided for applications.

After installing this RPM, gpsd will automatically connect to USB
GPSes when they are plugged in and requires no configuration.  For
serial GPSes, you will need to start gpsd by hand.  Once connected,
the daemon automatically discovers the correct baudrate, stop bits,
and protocol. The daemon will be quiescent when there are no
clients asking for location information, and copes gracefully when the
GPS is unplugged and replugged.

%files
%{_sbindir}/gpsd
%{_sbindir}/gpsdctl
%{_sbindir}/gpsinit
%{_bindir}/gegps
%{_bindir}/gps2udp
%{_bindir}/gpscat
%{_bindir}/gpsctl
%{_bindir}/gpsprof
%{_bindir}/gpsmon
%{_bindir}/gpsdecode
%{_bindir}/ntpshmmon
%{_bindir}/gpsrinex
%{_bindir}/ppscheck
%{_bindir}/ubxtool
%{_bindir}/zerk
%{_mandir}/man1/ntpshmmon.1.xz
%{_mandir}/man8/gpsd.8*
%{_mandir}/man8/gpsdctl.8*
%{_mandir}/man8/gpsinit.8*
%{_mandir}/man1/gegps.1*
%{_mandir}/man1/gps.1*
%{_mandir}/man1/gps2udp.1*
%{_mandir}/man1/gpsprof.1*
%{_mandir}/man1/gpscat.1*
%{_mandir}/man1/gpsctl.1*
%{_mandir}/man1/gpsmon.1*
%{_mandir}/man1/gpsdecode.1*
%{_mandir}/man5/gpsd_json.5*
%{_mandir}/man5/srec.5*
%{_mandir}/man1/gpsrinex*
%{_mandir}/man1/gpxlogger*
%{_mandir}/man8/ppscheck*
%{_mandir}/man1/ubxtool*
%{_mandir}/man1/zerk*
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_udevrulesdir}/99-gpsd.rules
%{_unitdir}/gpsd.service
%{_unitdir}/gpsd.socket
%{_unitdir}/gpsdctl@.service
%{_presetdir}/86-%{name}.preset
%{_datadir}/%{name}

%post
%systemd_post gpsd.service gpsd.socket

%preun
%systemd_preun gpsd.service gpsd.socket

%postun
# Don't restart the service
%systemd_postun gpsd.service gpsd.socket

#----------------------------------------------------------------------------

%package -n %{libgps}
Summary:	Libraries for gpsd
Group:		System/Libraries

%description -n %{libgps}
This package contains a shared library for %{name}.

%files -n %{libgps}
%{_libdir}/libgps.so.%{major}*

#----------------------------------------------------------------------------
%if %{with qt}
%package -n %{libqtname}
Summary:	Qt bindings for gpsd
Group:		System/Libraries

%description -n %{libqtname}
This package contains Qt bindings for gpsd.

%files -n %{libqtname}
%{_libdir}/libQgpsmm.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Client libraries in C and Python for talking to a running gpsd or GPS
Group:		Development/C
Requires:	%{libgps} = %{EVRD}
%if %{with qt}
Requires:	%{libqtname} = %{EVRD}
%endif
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}gpsd-static-devel < 2.95-5

%description -n %{devname}
This package provides C header files for the gpsd shared libraries
that manage access to a GPS for applications; also Python modules.
You will need to have gpsd installed for it to work.

%files -n %{devname}
%doc TODO
%{_includedir}/gps.h
%{_includedir}/libgpsmm.h
%{_libdir}/libgps.so
%{_libdir}/libgpsdpacket.so
%if %{with qt}
%{_libdir}/libQgpsmm.so
%{_libdir}/libQgpsmm.prl
%{_mandir}/man3/libQgpsmm.3*
%endif
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/gpsfake.1*
%{_mandir}/man3/libgps.3*
%{_mandir}/man3/libgpsmm.3*
%{_bindir}/gpsfake

%libpackage gpsdpacket %{major}

#----------------------------------------------------------------------------

%package clients
Summary:	Clients for gpsd with an X interface
Group:		Sciences/Geosciences
Requires:	%{name}
Requires:	python3-%{name} = %{EVRD}
%if %{with gtk}
BuildRequires:	python3-cairo
BuildRequires:	python3-gi
%endif

%description clients
xgps is a simple test client for gpsd with an X interface. It displays
current GPS position/time/velocity information and (for GPSes that
support the feature) the locations of accessible satellites.

xgpsspeed is a speedometer that uses position information from the GPS.
It accepts an -h option and optional argument as for gps, or a -v option
to dump the package version and exit. Additionally, it accepts -rv
(reverse video) and -nc (needle color) options.

%files clients
%if %{with gtk}
%{_bindir}/xgps
%{_bindir}/xgpsspeed
%{_mandir}/man1/xgps.1*
%{_mandir}/man1/xgpsspeed.1*
%endif
%{_bindir}/cgps
%{_bindir}/gpspipe
%{_bindir}/gpxlogger
%{_bindir}/lcdgps
%{_mandir}/man1/cgps.1*
%{_mandir}/man1/gpspipe.1*
%{_mandir}/man1/lcdgps.1.*
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python bindings for gpsd
Group:		Development/Python

%description -n python3-%{name}
This package contains the Python bindings for gpsd. It will be needed
for any applications that interface with gpsd via python.

%files -n python3-%{name}
%{python3_sitearch}/gps
%{python3_sitearch}/gps-%{version}.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix paths in systemd unit files
sed -i 's|/usr/local/sbin|%{_sbindir}|' systemd/*.service

# set gpsd revision string to include package revision
sed -i 's|^revision=.*REVISION.*$|revision='\'\
'#define REVISION "%{version}-%{release}'\"\'\| SConstruct

# fix systemd path
sed -i 's|systemd_dir =.*|systemd_dir = '\'%{_unitdir}\''|' SConstruct

# don't try reloading systemd when installing in the build root
sed -i 's|systemctl daemon-reload|true|' SConstruct

# don't set RPATH
sed -i 's|env.Prepend.*RPATH.*|pass #\0|' SConstruct


%build
export CCFLAGS="%{optflags}"
export LINKFLAGS="%{ldflags}"

# Parallel build sometimes fails
scons \
        dbus_export=yes \
        systemd=yes \
%if %{with qt}
	qt_versioned=5 \
	qt=yes \
%else
	qt=no \
%endif
        debug=yes \
        leapfetch=no \
        prefix="%{_prefix}" \
        sysconfdif=%{_sysconfdir} \
        bindir=%{_bindir} \
        includedir=%{_includedir} \
        libdir=%{_libdir} \
        sbindir=%{_sbindir} \
        mandir=%{_mandir} \
        docdir=%{_docdir} \
        pkgconfigdir=%{_libdir}/pkgconfig \
        udevdir=$(dirname %{_udevrulesdir}) \
        target_python=%{__python3} \
        python_shebang=%{__python3} \
        python_libdir=%{python3_sitearch} \
        build

%install
# avoid rebuilding
export CCFLAGS="%{optflags}"
export LINKFLAGS="%{ldflags}"


DESTDIR=%{buildroot} scons install systemd_install udev-install

# use the old name for udev rules
mv %{buildroot}%{_udevrulesdir}/{25,99}-gpsd.rules

%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
%{__install} -p -m 0644 %{SOURCE11} \
    %{buildroot}%{_sysconfdir}/sysconfig/gpsd

# Install the .desktop files
desktop-file-install \
    --dir %{buildroot}%{_datadir}/applications \
    packaging/X11/xgps.desktop
desktop-file-install \
    --dir %{buildroot}%{_datadir}/applications \
    packaging/X11/xgpsspeed.desktop

# Install logo icon for .desktop files
%{__install} -d -m 0755 %{buildroot}%{_datadir}/gpsd
%{__install} -p -m 0644 packaging/X11/gpsd-logo.png %{buildroot}%{_datadir}/gpsd/gpsd-logo.png

# Missed in scons install.
%{__install} -p -m 0755 gpsinit %{buildroot}%{_sbindir}

# If qt build was disabled, clean up the files that may have been installed
# anyway
%if !%{with_qt}
%{__rm} -f %{buildroot}%{_libdir}/libQgpsmm* \
    %{buildroot}%{_libdir}/pkgconfig/Qgpsmm* \
    %{buildroot}%{_mandir}/man3/libQgpsmm.3*
%endif

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-%{name}.preset << EOF
enable gpsd.socket
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13093 |21mr|gptfdisk-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An fdisk-like partitioning tool for GPT disks
Name:		gptfdisk
Version:	1.0.9
Release:	1
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://www.rodsbooks.com/gdisk
Source0:	http://download.sourceforge.net/project/gptfdisk/gptfdisk/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(icu-io)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(uuid)
Provides:	gdisk = %{EVRD}
Conflicts:	gdisk < 1.0.1
Obsoletes:	gdisk < 1.0.1

%description
An fdisk-like partitioning tool for GPT disks. GPT
fdisk features a command-line interface, fairly direct
manipulation of partition table structures, recovery
tools to help you deal with corrupt partition tables,
and the ability to convert MBR disks to GPT format.

%files
%doc NEWS COPYING README
%{_sbindir}/gdisk
%{_sbindir}/cgdisk
%{_sbindir}/sgdisk
%{_sbindir}/fixparts
%{_mandir}/man8/*.8*

#----------------------------------------------------------------------------

%prep
%setup -qn gptfdisk-%{version}

%build
%setup_compile_flags
%make CC=%{__cc} CXX=%{__cxx}

%install
mkdir -p %{buildroot}%{_sbindir}
install -Dp -m0755 gdisk %{buildroot}%{_sbindir}
install -Dp -m0755 cgdisk %{buildroot}%{_sbindir}
install -Dp -m0755 sgdisk %{buildroot}%{_sbindir}
install -Dp -m0755 fixparts %{buildroot}%{_sbindir}
install -Dp -m0644 gdisk.8 %{buildroot}%{_mandir}/man8/gdisk.8
install -Dp -m0644 cgdisk.8 %{buildroot}%{_mandir}/man8/cgdisk.8
install -Dp -m0644 sgdisk.8 %{buildroot}%{_mandir}/man8/sgdisk.8
install -Dp -m0644 fixparts.8 %{buildroot}%{_mandir}/man8/fixparts.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13094 |21mr|gpui-0.2.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Name:		gpui
Version:	0.2.17
Release:	2
Summary:	Group policy editor
License:	GPLv2+
Group:		Development/Other
Url:		https://github.com/august-alt/gpui
# package from Alt linux
Source0:	%{name}-%{version}.tar
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	samba-devel

BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	glib2-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(krb5)

BuildRequires:	doxygen
BuildRequires:	libxerces-c-devel
BuildRequires:	xsd-devel
BuildRequires:	boost-devel

BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	libqt-mvvm-devel
BuildRequires:	x11-server-xvfb

# temporary disable
#Requires: admx-rosa


%description
Group policy editor

%files
%doc README.md
%doc INSTALL.md
%{_bindir}/gpui-main
%{_libdir}/libgpui-*.so
%{_libdir}/gpui/plugins/*.so
%{_datadir}/icons/hicolor/*/apps/gpui.png
%{_datadir}/applications/gpui.desktop
%{_mandir}/man1/gpui.*
%{_mandir}/ru/man1/gpui.*

#-------------------------------------------
%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

cd build
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
                     --set-key Exec --set-value %{_bindir}/gpui-main \
                     ../setup/gpui.desktop

for size in 48 64 128 256 512; do
    mkdir -p %{buildroot}%{_datadir}/icons/hicolor/''${size}x''${size}/apps/
    convert ../setup/logo_1024_1024.png -resize ''${size}x''${size} \
    %{buildroot}%{_datadir}/icons/hicolor/''${size}x''${size}/apps/gpui.png
done

install -v -p -m 644 -D ../setup/man/en/gpui.1 %{buildroot}%{_mandir}/man1/gpui.1
install -v -p -m 644 -D ../setup/man/ru/gpui.1 %{buildroot}%{_mandir}/ru/man1/gpui.1



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13095 |21mr|gpupdate-0.9.13.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _unpackaged_files_terminate_build 1
%define _duplicate_files_terminate_build 0

%define _cachedir /var/cache

%define altrelease alt1

# version 0.9.13.0 without tag
%define commit a1281d3ac00ff1f0ef90378206aafc768672628d

Name:		gpupdate
Version:	0.9.13.0
Release:	5
Summary:	GPT applier
Group:		Development/Other
License:	GPLv3+
Url:		https://github.com/altlinux/gpupdate
Source0:	https://github.com/altlinux/gpupdate/archive/%{commit}.zip?/%{name}-%{version}-%{altrelease}.zip
Patch0:		0001-Add-commands-to-install-packages-from-Rosa.-Requires.patch
Patch1:		gpupdate-dnf.patch
Patch2:		winbind-separator.patch
Patch3:		fix-auto-master-path.patch
BuildRequires:	gettext
Requires:	control
Requires:	python3-rpm
Requires:	python3-crypto
Requires:	python3-configobj
Requires:	python3-dbus
Requires:	python3-sqlalchemy
Requires:	python3-libsss_nss_idmap
Requires:	python3-jinja2
Requires:	python3-django
Requires:	oddjob-%{name} >= 0.2.0
Requires:	libnss-role >= 0.5.0
Requires:	local-policy >= 0.4.9
Requires:	pam-config >= 1.9.0
# for sssd.service
Requires:	sssd
Requires:	autofs
# This is needed by shortcuts_applier
Requires:	desktop-file-utils
# This is needed for smb file cache support
Requires:	python3-smbc >= 1.0.23
BuildArch:	noarch

%description
gpupdate is the facility to apply various GPO/GPT settings retrieved
from Active Directory domain in UNIX environment.

#--------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}

%install
mkdir -p  %{buildroot}%{python3_sitelib}/
cp -r gpoa %{buildroot}%{python3_sitelib}/

# Generate translations
msgfmt -o %{buildroot}%{python3_sitelib}/gpoa/locale/ru_RU/LC_MESSAGES/gpoa.mo \
    %{buildroot}%{python3_sitelib}/gpoa/locale/ru_RU/LC_MESSAGES/gpoa.po

mkdir -p %{buildroot}%{_bindir}/ \
    %{buildroot}%{_sbindir}/ \
    %{buildroot}%{_cachedir}/%{name}/ \
    %{buildroot}%{_cachedir}/%{name}_file_cache/ \
    %{buildroot}%{_cachedir}/%{name}/creds

# fix python3.8/site-packages path
sed -i 's|python3/site-packages|python%{py3_ver}/site-packages|' %{buildroot}%{python3_sitelib}/gpoa/gpoa
sed -i 's|python3/site-packages|python%{py3_ver}/site-packages|' %{buildroot}%{python3_sitelib}/gpoa/gpupdate
sed -i 's|python3/site-packages|python%{py3_ver}/site-packages|' %{buildroot}%{python3_sitelib}/gpoa/pkcon_runner

ln -s %{python3_sitelib}/gpoa/gpoa \
    %{buildroot}%{_sbindir}/gpoa
ln -s %{python3_sitelib}/gpoa/gpupdate \
    %{buildroot}%{_bindir}/gpupdate
ln -s %{python3_sitelib}/gpoa/gpupdate-setup \
    %{buildroot}%{_sbindir}/gpupdate-setup

mkdir -p %{buildroot}%{_prefix}/libexec/%{name}

ln -s %{python3_sitelib}/gpoa/pkcon_runner \
    %{buildroot}%{_prefix}/libexec/%{name}/pkcon_runner
ln -s %{python3_sitelib}/gpoa/scripts_runner  \
    %{buildroot}%{_prefix}/libexec/%{name}/scripts_runner

mkdir -p %{buildroot}%{_datadir}/%{name}
mv %{buildroot}%{python3_sitelib}/gpoa/templates \
    %{buildroot}%{_datadir}/%{name}/

mkdir -p %{buildroot}%{_sysconfdir}/%{name}
touch %{buildroot}%{_sysconfdir}/%{name}/environment

install -Dm0644 dist/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
install -Dm0644 dist/%{name}.timer %{buildroot}%{_unitdir}/%{name}.timer
install -Dm0644 dist/%{name}-scripts-run.service %{buildroot}%{_unitdir}/%{name}-scripts-run.service
install -Dm0644 dist/%{name}-user.service %{buildroot}%{_userunitdir}/%{name}-user.service
install -Dm0644 dist/%{name}-scripts-run-user.service %{buildroot}%{_userunitdir}/%{name}-scripts-run-user.service
install -Dm0644 dist/%{name}-user.timer %{buildroot}%{_userunitdir}/%{name}-user.timer
install -Dm0644 dist/system-policy-%{name} %{buildroot}%{_sysconfdir}/pam.d/system-policy-%{name}
install -Dm0644 dist/%{name}-remote-policy %{buildroot}%{_sysconfdir}/pam.d/%{name}-remote-policy
install -Dm0644 dist/%{name}.ini %{buildroot}%{_sysconfdir}/%{name}/%{name}.ini
install -Dm0644 doc/gpoa.1 %{buildroot}%{_mandir}/man1/gpoa.1
install -Dm0644 doc/gpupdate.1 %{buildroot}%{_mandir}/man1/gpupdate.1

for i in gpupdate-localusers \
     gpupdate-group-users \
     gpupdate-system-uids
do
    install -pD -m755 "dist/$i" \
	"%{buildroot}%{_sysconfdir}/control.d/facilities/$i"
done

%preun
%systemd_preun gpupdate.service

%post
%systemd_post gpupdate.service

# Remove storage in case we've lost compatibility between versions.
# The storage will be regenerated on GPOA start.
%define active_policy %{_sysconfdir}/local-policy/active
%triggerpostun -- %{name} < 0.9.12.4
rm -f %{_cachedir}/%{name}/registry.sqlite
if test -L %{active_policy}; then
    sed -i "s|^\s*local-policy\s*=.*|local-policy = $(readlink -f %{active_policy})|" \
	%{_sysconfdir}/%{name}/%{name}.ini
fi

%files
%{_sbindir}/gpoa
%{_sbindir}/gpupdate-setup
%{_bindir}/gpupdate
%{_prefix}/libexec/%{name}/scripts_runner
%{_prefix}/libexec/%{name}/pkcon_runner
%attr(755,root,root) %{python3_sitelib}/gpoa/gpoa
%attr(755,root,root) %{python3_sitelib}/gpoa/gpupdate
%attr(755,root,root) %{python3_sitelib}/gpoa/gpupdate-setup
%attr(755,root,root) %{python3_sitelib}/gpoa/scripts_runner
%attr(755,root,root) %{python3_sitelib}/gpoa/pkcon_runner
%{python3_sitelib}/gpoa
%{_datadir}/%{name}
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-scripts-run.service
%{_unitdir}/%{name}.timer
%{_mandir}/man1/gpoa.1.*
%{_mandir}/man1/gpupdate.1.*
%{_userunitdir}/%{name}-user.service
%{_userunitdir}/%{name}-user.timer
%{_userunitdir}/%{name}-scripts-run-user.service
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/control.d/facilities/*
%config(noreplace) %{_sysconfdir}/%{name}/environment
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.ini
%config(noreplace) %{_sysconfdir}/pam.d/system-policy-%{name}
%config(noreplace) %{_sysconfdir}/pam.d/%{name}-remote-policy
%dir %attr(0700, root, root) %{_cachedir}/%{name}
%dir %attr(0755, root, root) %{_cachedir}/%{name}_file_cache
%dir %attr(0700, root, root) %{_cachedir}/%{name}/creds
%exclude %{python3_sitelib}/gpoa/.pylintrc
%exclude %{python3_sitelib}/gpoa/.prospector.yaml
%exclude %{python3_sitelib}/gpoa/Makefile
%exclude %{python3_sitelib}/gpoa/test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13096 |21mr|gradle-4.4.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Gradle depends on itself for building.  This can be problematic, for
# example when some library it uses changes API, Gradle may stop
# working and it may be impossible to rebuild it in normal way.
#
# For cases like that bootstrap mode can be used.  In this mode a
# minimal working version of Gradle is built with plain groovyc.  The
# only purpose of bootstrapped Gradle is to rebuild itself.  Gradle
# built using bootstrap mode doesn't have all features, for example it
# doesn't provide Maven metadata, and it may have some functionality
# missing.  For this reason a normal non-bootstrap build should be
# done immediately after Gradle is bootstrapped.
%bcond_with bootstrap

Name:           gradle
Version:        4.4.1
Release:        4%{?with_bootstrap:.boot}
Summary:        Build automation tool
# Some examples and integration tests are under GNU LGPL and Boost
# Software License, but are not used to create binary package.
License:        ASL 2.0
Group:          Development/Java
URL:            http://www.gradle.org/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://services.gradle.org/distributions/gradle-%{version}-src.zip
Source1:        http://services.gradle.org/versions/all#/all-released-versions.json
Source2:        gradle-font-metadata.xml
Source3:        gradle-jquery-metadata.xml
Source4:        gradle-launcher.sh
Source5:        gradle.desktop
Source6:        gradle-man.txt

# Sources 99xx are used only for bootstrapping.
# Main script used to build gradle with plain groovyc
Source9900:     gradle-bootstrap.sh
# Script used to generate Source991x from upstream binaries
Source9901:     gradle-bootstrap-generate-resources.py
# Files containing information about Gradle module structure
Source9910:     gradle-bootstrap-module-list
Source9911:     gradle-bootstrap-module-dependencies
# List of API mappings, extracted from gradle-docs.jar
Source9920:     gradle-bootstrap-api-mapping.txt
# List of default imorts, extracted from gradle-docs.jar
Source9921:     gradle-bootstrap-default-imports.txt
# List of Gradle plugins, extracted from gradle-core.jar
Source9922:     gradle-bootstrap-plugin.properties
Source9923:     gradle-bootstrap-implementation-plugin.properties
Source9924:     gradle-bootstrap-api-relocated.txt
Source9925:     gradle-bootstrap-test-kit-relocated.txt

Patch0001:      0001-Gradle-local-mode.patch
Patch0002:      0002-Remove-Class-Path-from-manifest.patch
Patch0003:      0003-Implement-XMvn-repository-factory-method.patch
Patch0004:      0004-Use-unversioned-dependency-JAR-names.patch
Patch0005:      0005-Port-to-Maven-3.3.9-and-Eclipse-Aether.patch
Patch0006:      0006-Disable-code-quality-checks.patch
Patch0007:      0007-Port-to-Kryo-3.0.patch
Patch0008:      0008-Port-to-Ivy-2.4.0.patch
Patch0009:      0009-Port-to-Polyglot-0.1.8.patch
Patch0010:      0010-Port-from-Simple-4-to-Jetty-9.patch
Patch0011:      0011-Disable-benchmarks.patch
Patch0012:      0012-Disable-patching-of-external-modules.patch
Patch0013:      0013-Add-missing-transitive-dependencies.patch
Patch0014:      0014-Disable-ideNative-module.patch
Patch0015:      0015-Disable-docs-build.patch
Patch0016:      0016-Port-to-guava-20.0.patch
# it depends on ant which is Java 8+
Patch0017:      0017-Set-core-api-source-level-to-8.patch
# Fix for CVE-2019-11065, backported from upstream commit 7ee79e7
# https://github.com/gradle/gradle/pull/8927
Patch0018:      0018-Use-HTTPS-for-GoogleAPIs-repository.patch

# For autosetup
BuildRequires:  git

# Dependencies on build system used.  In bootstrap mode we use plain
# groovyc to compile Gradle, otherwise Gradle is built with itself.
%if %{with bootstrap}
BuildRequires:  groovy >= 2.3
BuildRequires:  javapackages-local
%else
BuildRequires:  gradle-local
%endif

# Generic build dependencies
BuildRequires:  desktop-file-utils
BuildRequires:  locales-en
BuildRequires:  hostname
BuildRequires:  procps-ng

# manpage build dependencies
BuildRequires:  asciidoc
BuildRequires:  docbook-dtd45-xml
BuildRequires:  xmlto

# Artifacts required for Gradle build
BuildRequires:  mvn(antlr:antlr)
BuildRequires:  mvn(biz.aQute.bnd:bndlib)
BuildRequires:  mvn(bsh:bsh)
BuildRequires:  mvn(ch.qos.logback:logback-classic)
BuildRequires:  mvn(ch.qos.logback:logback-core)
BuildRequires:  mvn(com.amazonaws:aws-java-sdk-core)
BuildRequires:  mvn(com.amazonaws:aws-java-sdk-kms)
BuildRequires:  mvn(com.amazonaws:aws-java-sdk-s3)
BuildRequires:  mvn(com.beust:jcommander)
BuildRequires:  mvn(com.esotericsoftware.kryo:kryo)
BuildRequires:  mvn(com.esotericsoftware:minlog)
BuildRequires:  mvn(com.esotericsoftware:reflectasm)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
# ! findbugs must include a workaround of rhbz#1657836 from
#   https://build.opensuse.org/request/show/733942
BuildRequires:  mvn(com.google.code.findbugs:findbugs)
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(com.google.code.gson:gson)
BuildRequires:  mvn(com.google.guava:guava:20.0)
BuildRequires:  mvn(com.google.guava:guava-jdk5:20.0)
BuildRequires:  mvn(com.google.http-client:google-http-client)
BuildRequires:  mvn(com.google.oauth-client:google-oauth-client)
BuildRequires:  mvn(com.googlecode.jarjar:jarjar)
BuildRequires:  mvn(com.googlecode.jatl:jatl)
BuildRequires:  mvn(com.jcraft:jsch)
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(com.typesafe.zinc:zinc)
BuildRequires:  mvn(com.uwyn:jhighlight)
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-configuration:commons-configuration)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(jaxen:jaxen)
BuildRequires:  mvn(jline:jline)
BuildRequires:  mvn(joda-time:joda-time)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java.dev.jna:jna)
BuildRequires:  mvn(net.jcip:jcip-annotations)
BuildRequires:  mvn(net.rubygrapefruit:native-platform)
BuildRequires:  mvn(net.sourceforge.nekohtml:nekohtml)
BuildRequires:  mvn(org.antlr:antlr4-runtime)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-launcher)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-annotation_1.0_spec)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.apache.ivy:ivy)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-file)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-http)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-http-shared)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.apache.maven:maven-aether-provider)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-builder-support)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-model-builder)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-repository-metadata)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven:maven-settings-builder)
BuildRequires:  mvn(org.apache.xbean:xbean-reflect)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.bouncycastle:bcpg-jdk15on)
BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires:  mvn(org.codehaus.groovy.modules.http-builder:http-builder)
BuildRequires:  mvn(org.codehaus.groovy:groovy-all)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.codenarc:CodeNarc)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-connector-basic)
BuildRequires:  mvn(org.eclipse.aether:aether-impl)
BuildRequires:  mvn(org.eclipse.aether:aether-spi)
BuildRequires:  mvn(org.eclipse.aether:aether-transport-wagon)
BuildRequires:  mvn(org.eclipse.aether:aether-util)
BuildRequires:  mvn(org.eclipse.jdt:core)
# dropped in Fedora 32
#BuildRequires:  mvn(org.eclipse.jetty:jetty-annotations)
#BuildRequires:  mvn(org.eclipse.jetty:jetty-jsp)
#BuildRequires:  mvn(org.eclipse.jetty:jetty-plus)
BuildRequires:  mvn(org.eclipse.jetty:jetty-security)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:  mvn(org.eclipse.jetty:jetty-util)
BuildRequires:  mvn(org.eclipse.jetty:jetty-webapp)
BuildRequires:  mvn(org.eclipse.jetty:jetty-xml)
BuildRequires:  mvn(org.eclipse.jgit:org.eclipse.jgit)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.fusesource.hawtjni:hawtjni-runtime)
BuildRequires:  mvn(org.fusesource.jansi:jansi)
BuildRequires:  mvn(org.fusesource.jansi:jansi-native)
BuildRequires:  mvn(org.gmetrics:GMetrics)
BuildRequires:  mvn(org.jsoup:jsoup)
BuildRequires:  mvn(org.mozilla:rhino)
BuildRequires:  mvn(org.objenesis:objenesis)
BuildRequires:  mvn(org.ow2.asm:asm-all)
BuildRequires:  mvn(org.parboiled:parboiled-core)
BuildRequires:  mvn(org.parboiled:parboiled-java)
BuildRequires:  mvn(org.pegdown:pegdown)
BuildRequires:  mvn(org.samba.jcifs:jcifs)
BuildRequires:  mvn(org.slf4j:jcl-over-slf4j)
BuildRequires:  mvn(org.slf4j:jul-to-slf4j)
BuildRequires:  mvn(org.slf4j:log4j-over-slf4j)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  mvn(org.sonatype.plexus:plexus-cipher)
BuildRequires:  mvn(org.sonatype.plexus:plexus-sec-dispatcher)
BuildRequires:  mvn(org.sonatype.pmaven:pmaven-common)
BuildRequires:  mvn(org.sonatype.pmaven:pmaven-groovy)
BuildRequires:  mvn(org.testng:testng)
BuildRequires:  mvn(xerces:xercesImpl)
BuildRequires:  mvn(xml-apis:xml-apis)

# Artifacts required for Gradle build which don't have Maven metadata
# and thus no mvn provides.
#%%BuildRequires:  lato-fonts
#%%BuildRequires:  liberation-mono-fonts
BuildRequires:  js-jquery

# Generic runtime dependencies.
Requires:       javapackages-tools
Requires:       bash
Requires:       hicolor-icon-theme

# Theoretically Gradle might be usable with just JRE, but typical Gradle
# workflow requires full JDK, so we recommend it here.
Recommends:     java-devel

# Providers of symlinks in Gradle lib/ directory. Generated with:
# for l in $(find /usr/share/gradle -type l); do rpm -qf --qf 'Requires:       %{name}\n' $(readlink $l); done | sort -u | grep -v gradle
Requires:       ant-lib
Requires:       apache-commons-cli
Requires:       apache-commons-codec
Requires:       apache-commons-collections
Requires:       apache-commons-compress
Requires:       apache-commons-io
Requires:       apache-commons-lang
Requires:       apache-commons-lang3
Requires:       apache-ivy
Requires:       aqute-bndlib
Requires:       atinject
Requires:       aws-sdk-java-core
Requires:       aws-sdk-java-kms
Requires:       aws-sdk-java-s3
Requires:       base64coder
Requires:       beust-jcommander
Requires:       bouncycastle
Requires:       bouncycastle-pg
Requires:       bsh
Requires:       ecj
Requires:       glassfish-servlet-api
Requires:       google-gson
Requires:       google-guice
Requires:       groovy-lib
Requires:       guava20
Requires:       hawtjni-runtime
Requires:       httpcomponents-client
Requires:       httpcomponents-core
Requires:       jackson-annotations
Requires:       jackson-core
Requires:       jackson-databind
Requires:       jansi
Requires:       jansi-native
Requires:       jatl
Requires:       jcifs
Requires:       jcip-annotations
Requires:       jcl-over-slf4j
Requires:       jetty-server
Requires:       jetty-util
Requires:       jgit
Requires:       joda-time
Requires:       jsch
Requires:       jsr-305
Requires:       jul-to-slf4j
Requires:       junit
Requires:       kryo
Requires:       log4j-over-slf4j
Requires:       maven-lib
Requires:       maven-resolver-api
Requires:       maven-resolver-connector-basic
Requires:       maven-resolver-impl
Requires:       maven-resolver-spi
Requires:       maven-resolver-transport-wagon
Requires:       maven-resolver-util
Requires:       maven-wagon-file
Requires:       maven-wagon-http
Requires:       maven-wagon-http-shared
Requires:       maven-wagon-provider-api
Requires:       minlog
Requires:       native-platform
Requires:       nekohtml
Requires:       objectweb-asm
Requires:       objenesis
Requires:       plexus-cipher
Requires:       plexus-classworlds
Requires:       plexus-containers-component-annotations
Requires:       plexus-interpolation
Requires:       plexus-sec-dispatcher
Requires:       plexus-utils
Requires:       reflectasm
Requires:       rhino
Requires:       sisu-inject
Requires:       sisu-plexus
Requires:       slf4j
Requires:       snakeyaml
Requires:       tesla-polyglot-common
Requires:       tesla-polyglot-groovy
Requires:       testng
Requires:       xbean
Requires:       xerces-j2
Requires:       xml-commons-apis

%description
Gradle is build automation evolved. Gradle can automate the building,
testing, publishing, deployment and more of software packages or other
types of projects such as generated static websites, generated
documentation or indeed anything else.

Gradle combines the power and flexibility of Ant with the dependency
management and conventions of Maven into a more effective way to
build. Powered by a Groovy DSL and packed with innovation, Gradle
provides a declarative way to describe all kinds of builds through
sensible defaults. Gradle is quickly becoming the build system of
choice for many open source projects, leading edge enterprises and
legacy automation challenges.

%prep
%autosetup -S git

# Remove bundled wrapper JAR
rm -rf gradle/wrapper/
# Remove bundled JavaScript
>subprojects/diagnostics/src/main/resources/org/gradle/api/tasks/diagnostics/htmldependencyreport/jquery.jstree.js

# This file is normally downloaded from Internet during package build
mkdir -p build
cp %{SOURCE1} build/all-released-versions.json

# quality checks for which we don't have deps
rm -r buildSrc/src/main/groovy/org/gradle/binarycompatibility
rm buildSrc/src/main/groovy/org/gradle/build/docs/CacheableAsciidoctorTask.groovy

# jquery and fonts don't have Maven metadata
%mvn_config resolverSettings/metadataRepositories/repository %{SOURCE2}
%mvn_config resolverSettings/metadataRepositories/repository %{SOURCE3}

# Tests for bulid script currently fail, but the bulid works.
# TODO: enble tests
rm -rf buildSrc/src/test

# Compilation with Fedora versions of some libraries produces
# warnings. Lets not treat them as errors to make the build work.
sed -i 's/"-Werror" <<//' gradle/strictCompile.gradle

removeProject() {
sed -i "/'$1'/d" settings.gradle
sed -i "s/'$1',\?//" build.gradle
}
removeProject resourcesGcs
rm -r subprojects/resources-gcs
rm -r subprojects/ide-native

%build
export LANG=en_US.UTF8
%if %{with bootstrap}
mkdir -p subprojects/docs/src/main/resources
mkdir -p subprojects/core/src/main/resources/org/gradle/api/internal/runtimeshaded
cp %{SOURCE9920} subprojects/docs/src/main/resources/api-mapping.txt
cp %{SOURCE9921} subprojects/docs/src/main/resources/default-imports.txt
cp %{SOURCE9922} subprojects/core/src/main/resources/gradle-plugins.properties
cp %{SOURCE9923} subprojects/core/src/main/resources/gradle-implementation-plugins.properties
cp %{SOURCE9924} subprojects/core/src/main/resources/org/gradle/api/internal/runtimeshaded/api-relocated.txt
cp %{SOURCE9925} subprojects/core/src/main/resources/org/gradle/api/internal/runtimeshaded/test-kit-relocated.txt
%{SOURCE9900} %{SOURCE9910} %{SOURCE9911}
%else
# Disables parallel build and daemon mode
rm gradle.properties
gradle-local --offline --no-daemon install xmvnInstall \
    -Pgradle_installPath=$PWD/inst \
    -PfinalRelease -Dbuild.number="%{?fedora:Fedora }%{?rhel:Red Hat }%{version}-%{release}"
%endif

# manpage build
mkdir man
asciidoc -b docbook -d manpage -o man/gradle.xml %{SOURCE6}
# XXX possible problems with DTD?
# TODO: avoid skipping validation
xmlto --skip-validation man man/gradle.xml -o man

%install
cp subprojects/distributions/src/toplevel/NOTICE .
cp subprojects/docs/src/samples/application/src/dist/LICENSE .

install -d -m 755 %{buildroot}%{_javadir}/%{name}/

%if %{with bootstrap}
cp -r bootstrap-home %{buildroot}%{_datadir}/%{name}
# Launcher with dependencies needs to be in _javadir
# Dependencies of xmvn-connector-gradle need to have Maven metadata
for mod in launcher base-services core core-api dependency-management resources \
        logging base-services-groovy model-core; do
    %mvn_file ":{gradle-$mod}" %{name}/@1 %{_datadir}/lib/@1
    %mvn_artifact org.gradle:gradle-$mod:%{version} bootstrap-home/lib/gradle-$mod.jar
done

%else # non-bootstrap

rm -rf inst/bin/gradle.bat inst/media
ln -sf %{_bindir}/%{name} inst/bin/gradle
find inst/lib -type f -name 'gradle*' | sed 's:.*/\(gradle-.*\)-%{version}.*:ln -sf %{_javadir}/%{name}/\1.jar &:' | bash -x
ln -sf $(build-classpath ecj) inst/lib/plugins/ecj.jar
xmvn-subst -s $(find inst/lib -type f)
# TODO figure out why this one is missing
ln -s `find-jar commons-lang` inst/lib/
cp -a inst %{buildroot}%{_datadir}/%{name}

%endif

%mvn_install

install -d -m 755 %{buildroot}%{_bindir}/
install -p -m 755 %{SOURCE4} %{buildroot}%{_bindir}/%{name}

desktop-file-install --dir %{buildroot}%{_datadir}/applications %{SOURCE5}

for r in 16 24 32 48 64 128 256; do
    install -d -m 755 %{buildroot}%{_datadir}/icons/hicolor/${r}x${r}/apps/
    install -p -m 644 subprojects/distributions/src/toplevel/media/gradle-icon-${r}x${r}.png \
        %{buildroot}%{_datadir}/icons/hicolor/${r}x${r}/apps/%{name}.png
done

install -d -m 755 %{buildroot}%{_mandir}/man1/
install -p -m 644 man/gradle.1 %{buildroot}%{_mandir}/man1/gradle.1

%files -f .mfiles
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man1/gradle.1*
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13097 |21mr|grafana-10.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Specify if the frontend will be compiled as part of the build or
# is attached as a webpack tarball (in case of an unsuitable nodejs version on the build system)
%define compile_frontend 0

%define enable_fips_mode 1

%global gomodulesmode GO111MODULE=auto
%global gotestflags   %{gotestflags} -tags=integration

Name:             grafana
Version:          10.4.4
Release:          1
Summary:          Metrics dashboard and graph editor
Group:            Development/Other
License:          AGPLv3
URL:              https://grafana.org

# Source0 contains the tagged upstream sources
Source0:          https://github.com/grafana/grafana/archive/v%{version}/%{name}-%{version}.tar.gz

# Source1 contains the bundled Go and Node.js dependencies
# Note: In case there were no changes to this tarball, the NVR of this tarball
# lags behind the NVR of this package.
Source1:          grafana-vendor-%{version}-1.tar.xz

%if %{compile_frontend} == 0
# Source2 contains the precompiled frontend
# Note: In case there were no changes to this tarball, the NVR of this tarball
# lags behind the NVR of this package.
Source2:          grafana-webpack-%{version}-1.tar.gz
%endif

# Source3 contains the systemd-sysusers configuration
Source3:          grafana.sysusers.conf

# Source4 contains the script to create the vendor and webpack bundles
Source4:          create_bundles.sh

# Source5 contains the script to build the frontend
Source5:          build_frontend.sh

# Source6 contains the script to generate the list of bundled nodejs packages
Source6:          list_bundled_nodejs_packages.py

# Source7 contains the script to create the vendor and webpack bundles in a container
Source7:          create_bundles_in_container.sh

# Patches affecting the source tarball
Patch1:           0001-update-grafana-cli-script-with-distro-specific-paths.patch
Patch2:           0002-add-manpages.patch
# fix path to /usr/sbin/grafana binary
Patch10:          grafana-systemd-service.patch

BuildRequires:    systemd
BuildRequires:    golang
BuildRequires:    go-srpm-macros
BuildRequires:    go-rpm-macros

%if %{compile_frontend}
BuildRequires:    nodejs
BuildRequires:    yarnpkg
%endif
BuildRequires:    openssl-devel

#please change grafana.sysusers.conf if you change username/group in spec
%global           GRAFANA_USER %{name}
%global           GRAFANA_GROUP %{name}

# grafana-server service daemon uses systemd
%{?systemd_requires}
Requires(pre):    shadow-utils

# Grafana queries the mime database (through mime.TypeByExtension, in a unit test and at runtime)
BuildRequires:    shared-mime-info
Requires:         shared-mime-info

%if 0%{?fedora} || 0%{?rhel} > 7
Recommends: grafana-pcp
%endif

Obsoletes:        grafana-cloudwatch < 7.3.6-1
Obsoletes:        grafana-elasticsearch < 7.3.6-1
Obsoletes:        grafana-azure-monitor < 7.3.6-1
Obsoletes:        grafana-graphite < 7.3.6-1
Obsoletes:        grafana-influxdb < 7.3.6-1
Obsoletes:        grafana-loki < 7.3.6-1
Obsoletes:        grafana-mssql < 7.3.6-1
Obsoletes:        grafana-mysql < 7.3.6-1
Obsoletes:        grafana-opentsdb < 7.3.6-1
Obsoletes:        grafana-postgres < 7.3.6-1
Obsoletes:        grafana-prometheus < 7.3.6-1
Obsoletes:        grafana-stackdriver < 7.3.6-1
Provides:         grafana-cloudwatch = 7.3.6-1
Provides:         grafana-elasticsearch = 7.3.6-1
Provides:         grafana-azure-monitor = 7.3.6-1
Provides:         grafana-graphite = 7.3.6-1
Provides:         grafana-influxdb = 7.3.6-1
Provides:         grafana-loki = 7.3.6-1
Provides:         grafana-mssql = 7.3.6-1
Provides:         grafana-mysql = 7.3.6-1
Provides:         grafana-opentsdb = 7.3.6-1
Provides:         grafana-postgres = 7.3.6-1
Provides:         grafana-prometheus = 7.3.6-1
Provides:         grafana-stackdriver = 7.3.6-1

# vendored golang and node.js build dependencies
# this is for security purposes, if nodejs-foo ever needs an update,
# affected packages can be easily identified.
# Note: generated by the Makefile (see README.md)
Provides: bundled(golang(cloud.google.com/go/storage)) = 1.21.0
Provides: bundled(golang(cuelang.org/go)) = 0.4.3
Provides: bundled(golang(github.com/Azure/azure-sdk-for-go)) = 59.3.0+incompatible
Provides: bundled(golang(github.com/Azure/go-autorest/autorest)) = 0.11.22
Provides: bundled(golang(github.com/BurntSushi/toml)) = 1.1.0
Provides: bundled(golang(github.com/Masterminds/semver)) = 1.5.0
Provides: bundled(golang(github.com/VividCortex/mysqlerr)) = 0.0.0-20170204212430.6c6b55f8796f
Provides: bundled(golang(github.com/aws/aws-sdk-go)) = 1.44.109
Provides: bundled(golang(github.com/beevik/etree)) = 1.1.0
Provides: bundled(golang(github.com/benbjohnson/clock)) = 1.3.0
Provides: bundled(golang(github.com/bradfitz/gomemcache)) = 0.0.0-20190913173617.a41fca850d0b
Provides: bundled(golang(github.com/centrifugal/centrifuge)) = 0.25.0
Provides: bundled(golang(github.com/cortexproject/cortex)) = 1.10.1-0.20211014125347.85c378182d0d
Provides: bundled(golang(github.com/davecgh/go-spew)) = 1.1.1
Provides: bundled(golang(github.com/denisenkom/go-mssqldb)) = 0.12.0
Provides: bundled(golang(github.com/dop251/goja)) = 0.0.0-20210804101310.32956a348b49
Provides: bundled(golang(github.com/fatih/color)) = 1.13.0
Provides: bundled(golang(github.com/gchaincl/sqlhooks)) = 1.3.0
Provides: bundled(golang(github.com/getsentry/sentry-go)) = 0.13.0
Provides: bundled(golang(github.com/go-git/go-git/v5)) = 5.4.2
Provides: bundled(golang(github.com/go-kit/kit)) = 0.11.0
Provides: bundled(golang(github.com/go-openapi/strfmt)) = 0.21.3
Provides: bundled(golang(github.com/go-redis/redis/v8)) = 8.11.4
Provides: bundled(golang(github.com/go-sourcemap/sourcemap)) = 2.1.3+incompatible
Provides: bundled(golang(github.com/go-sql-driver/mysql)) = 1.6.0
Provides: bundled(golang(github.com/go-stack/stack)) = 1.8.1
Provides: bundled(golang(github.com/gobwas/glob)) = 0.2.3
Provides: bundled(golang(github.com/gogo/protobuf)) = 1.3.2
Provides: bundled(golang(github.com/golang/mock)) = 1.6.0
Provides: bundled(golang(github.com/golang/snappy)) = 0.0.4
Provides: bundled(golang(github.com/google/go-cmp)) = 0.5.9
Provides: bundled(golang(github.com/google/uuid)) = 1.3.0
Provides: bundled(golang(github.com/google/wire)) = 0.5.0
Provides: bundled(golang(github.com/gorilla/websocket)) = 1.5.0
Provides: bundled(golang(github.com/gosimple/slug)) = 1.12.0
Provides: bundled(golang(github.com/grafana/cuetsy)) = 0.0.4-0.20220714174355.ebd987fdab27
Provides: bundled(golang(github.com/grafana/grafana-aws-sdk)) = 0.10.8
Provides: bundled(golang(github.com/grafana/grafana-azure-sdk-go)) = 1.3.0
Provides: bundled(golang(github.com/grafana/grafana-plugin-sdk-go)) = 0.139.0
Provides: bundled(golang(github.com/grafana/thema)) = 0.0.0-20220817114012.ebeee841c104
Provides: bundled(golang(github.com/grpc-ecosystem/go-grpc-middleware)) = 1.3.0
Provides: bundled(golang(github.com/hashicorp/go-hclog)) = 1.0.0
Provides: bundled(golang(github.com/hashicorp/go-plugin)) = 1.4.3
Provides: bundled(golang(github.com/hashicorp/go-version)) = 1.3.0
Provides: bundled(golang(github.com/influxdata/influxdb-client-go/v2)) = 2.6.0
Provides: bundled(golang(github.com/influxdata/line-protocol)) = 0.0.0-20210311194329.9aa0e372d097
Provides: bundled(golang(github.com/jmespath/go-jmespath)) = 0.4.0
Provides: bundled(golang(github.com/json-iterator/go)) = 1.1.12
Provides: bundled(golang(github.com/lib/pq)) = 1.10.4
Provides: bundled(golang(github.com/linkedin/goavro/v2)) = 2.10.0
Provides: bundled(golang(github.com/m3db/prometheus_remote_client_golang)) = 0.4.4
Provides: bundled(golang(github.com/magefile/mage)) = 1.13.0
Provides: bundled(golang(github.com/mattn/go-isatty)) = 0.0.14
Provides: bundled(golang(github.com/mattn/go-sqlite3)) = 1.14.16
Provides: bundled(golang(github.com/matttproud/golang_protobuf_extensions)) = 1.0.2
Provides: bundled(golang(github.com/mwitkow/go-conntrack)) = 0.0.0-20190716064945.2f068394615f
Provides: bundled(golang(github.com/ohler55/ojg)) = 1.12.9
Provides: bundled(golang(github.com/opentracing/opentracing-go)) = 1.2.0
Provides: bundled(golang(github.com/patrickmn/go-cache)) = 2.1.0+incompatible
Provides: bundled(golang(github.com/pkg/errors)) = 0.9.1
Provides: bundled(golang(github.com/prometheus/alertmanager)) = 0.24.1-0.20221003101219.ae510d09c048
Provides: bundled(golang(github.com/prometheus/client_golang)) = 1.13.1
Provides: bundled(golang(github.com/prometheus/client_model)) = 0.2.0
Provides: bundled(golang(github.com/prometheus/common)) = 0.37.0
Provides: bundled(golang(github.com/prometheus/prometheus)) = 1.8.2-0.20211011171444.354d8d2ecfac
Provides: bundled(golang(github.com/robfig/cron/v3)) = 3.0.1
Provides: bundled(golang(github.com/russellhaering/goxmldsig)) = 1.2.0
Provides: bundled(golang(github.com/stretchr/testify)) = 1.8.1
Provides: bundled(golang(github.com/teris-io/shortid)) = 0.0.0-20171029131806.771a37caa5cf
Provides: bundled(golang(github.com/ua-parser/uap-go)) = 0.0.0-20211112212520.00c877edfe0f
Provides: bundled(golang(github.com/uber/jaeger-client-go)) = 2.29.1+incompatible
Provides: bundled(golang(github.com/urfave/cli/v2)) = 2.3.0
Provides: bundled(golang(github.com/vectordotdev/go-datemath)) = 0.1.1-0.20220323213446.f3954d0b18ae
Provides: bundled(golang(github.com/xorcare/pointer)) = 1.1.0
Provides: bundled(golang(github.com/yalue/merged_fs)) = 1.2.2
Provides: bundled(golang(github.com/yudai/gojsondiff)) = 1.0.0
Provides: bundled(golang(go.opentelemetry.io/collector)) = 0.31.0
Provides: bundled(golang(go.opentelemetry.io/collector/model)) = 0.31.0
Provides: bundled(golang(go.opentelemetry.io/otel)) = 1.6.3
Provides: bundled(golang(go.opentelemetry.io/otel/exporters/jaeger)) = 1.0.0
Provides: bundled(golang(go.opentelemetry.io/otel/sdk)) = 1.6.3
Provides: bundled(golang(go.opentelemetry.io/otel/trace)) = 1.6.3
Provides: bundled(golang(golang.org/x/crypto)) = 0.0.0-20220622213112.05595931fe9d
Provides: bundled(golang(golang.org/x/exp)) = 0.0.0-20220613132600.b0d781184e0d
Provides: bundled(golang(golang.org/x/oauth2)) = 0.0.0-20220608161450.d0670ef3b1eb
Provides: bundled(golang(golang.org/x/sync)) = 0.0.0-20220722155255.886fb9371eb4
Provides: bundled(golang(golang.org/x/time)) = 0.0.0-20220609170525.579cf78fd858
Provides: bundled(golang(golang.org/x/tools)) = 0.1.12
Provides: bundled(golang(gonum.org/v1/gonum)) = 0.11.0
Provides: bundled(golang(google.golang.org/api)) = 0.74.0
Provides: bundled(golang(google.golang.org/grpc)) = 1.45.0
Provides: bundled(golang(google.golang.org/protobuf)) = 1.28.1
Provides: bundled(golang(gopkg.in/ini.v1)) = 1.66.2
Provides: bundled(golang(gopkg.in/ldap.v3)) = 3.1.0
Provides: bundled(golang(gopkg.in/mail.v2)) = 2.3.1
Provides: bundled(golang(gopkg.in/square/go-jose.v2)) = 2.5.1
Provides: bundled(golang(gopkg.in/yaml.v2)) = 2.4.0
Provides: bundled(golang(gopkg.in/yaml.v3)) = 3.0.1
Provides: bundled(golang(xorm.io/builder)) = 0.3.6
Provides: bundled(golang(xorm.io/core)) = 0.7.3
Provides: bundled(golang(xorm.io/xorm)) = 0.8.2
Provides: bundled(golang(github.com/andybalholm/brotli)) = 1.0.3
Provides: bundled(golang(github.com/deepmap/oapi-codegen)) = 1.10.1
Provides: bundled(golang(github.com/go-kit/log)) = 0.2.1
Provides: bundled(golang(github.com/go-openapi/loads)) = 0.21.2
Provides: bundled(golang(github.com/golang/protobuf)) = 1.5.2
Provides: bundled(golang(github.com/googleapis/gax-go/v2)) = 2.2.0
Provides: bundled(golang(github.com/grafana/grafana-google-sdk-go)) = 0.0.0-20211104130251.b190293eaf58
Provides: bundled(golang(github.com/hashicorp/go-multierror)) = 1.1.1
Provides: bundled(golang(github.com/segmentio/encoding)) = 0.3.5
Provides: bundled(golang(go.uber.org/atomic)) = 1.9.0
Provides: bundled(golang(golang.org/x/text)) = 0.4.0
Provides: bundled(golang(google.golang.org/genproto)) = 0.0.0-20220421151946.72621c1f0bd3
Provides: bundled(golang(cloud.google.com/go/kms)) = 1.4.0
Provides: bundled(golang(github.com/Azure/azure-sdk-for-go/sdk/azidentity)) = 0.13.2
Provides: bundled(golang(github.com/Azure/azure-sdk-for-go/sdk/keyvault/azkeys)) = 0.4.0
Provides: bundled(golang(github.com/Azure/go-autorest/autorest/adal)) = 0.9.17
Provides: bundled(golang(github.com/Masterminds/semver/v3)) = 3.1.1
Provides: bundled(golang(github.com/armon/go-radix)) = 1.0.0
Provides: bundled(golang(github.com/blugelabs/bluge)) = 0.1.9
Provides: bundled(golang(github.com/blugelabs/bluge_segment_api)) = 0.2.0
Provides: bundled(golang(github.com/dlmiddlecote/sqlstats)) = 1.0.2
Provides: bundled(golang(github.com/docker/docker)) = 20.10.8+incompatible
Provides: bundled(golang(github.com/drone/drone-cli)) = 1.5.0
Provides: bundled(golang(github.com/getkin/kin-openapi)) = 0.94.0
Provides: bundled(golang(github.com/golang-migrate/migrate/v4)) = 4.7.0
Provides: bundled(golang(github.com/google/go-github)) = 17.0.0+incompatible
Provides: bundled(golang(github.com/google/go-github/v45)) = 45.2.0
Provides: bundled(golang(github.com/grafana/dskit)) = 0.0.0-20211011144203.3a88ec0b675f
Provides: bundled(golang(github.com/jmoiron/sqlx)) = 1.3.5
Provides: bundled(golang(github.com/urfave/cli)) = 1.22.5
Provides: bundled(golang(go.etcd.io/etcd/api/v3)) = 3.5.4
Provides: bundled(golang(go.opentelemetry.io/contrib/instrumentation/google.golang.org/grpc/otelgrpc)) = 0.31.0
Provides: bundled(golang(go.opentelemetry.io/contrib/propagators/jaeger)) = 1.6.0
Provides: bundled(golang(go.opentelemetry.io/otel/exporters/otlp/otlptrace)) = 1.6.3
Provides: bundled(golang(go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc)) = 1.6.3
Provides: bundled(golang(gocloud.dev)) = 0.25.0
Provides: bundled(golang(github.com/wk8/go-ordered-map)) = 1.0.0
Provides: bundled(npm(@babel/core)) = 7.12.9
Provides: bundled(npm(@babel/plugin-proposal-class-properties)) = 7.16.7
Provides: bundled(npm(@babel/plugin-proposal-nullish-coalescing-operator)) = 7.16.7
Provides: bundled(npm(@babel/plugin-proposal-object-rest-spread)) = 7.12.1
Provides: bundled(npm(@babel/plugin-proposal-optional-chaining)) = 7.16.7
Provides: bundled(npm(@babel/plugin-syntax-dynamic-import)) = 7.8.3
Provides: bundled(npm(@babel/plugin-transform-react-constant-elements)) = 7.18.9
Provides: bundled(npm(@babel/plugin-transform-runtime)) = 7.18.10
Provides: bundled(npm(@babel/plugin-transform-typescript)) = 7.16.7
Provides: bundled(npm(@babel/preset-env)) = 7.16.11
Provides: bundled(npm(@babel/preset-react)) = 7.16.7
Provides: bundled(npm(@babel/preset-typescript)) = 7.16.7
Provides: bundled(npm(@babel/runtime)) = 7.15.4
Provides: bundled(npm(@betterer/betterer)) = 5.4.0
Provides: bundled(npm(@betterer/cli)) = 5.4.0
Provides: bundled(npm(@betterer/eslint)) = 5.4.0
Provides: bundled(npm(@betterer/regexp)) = 5.4.0
Provides: bundled(npm(@braintree/sanitize-url)) = 6.0.0
Provides: bundled(npm(@cypress/webpack-preprocessor)) = 5.12.0
Provides: bundled(npm(@daybrush/utils)) = 1.6.0
Provides: bundled(npm(@emotion/css)) = 10.0.27
Provides: bundled(npm(@emotion/eslint-plugin)) = 11.7.0
Provides: bundled(npm(@emotion/react)) = 11.9.0
Provides: bundled(npm(@grafana/agent-core)) = 0.4.0
Provides: bundled(npm(@grafana/agent-web)) = 0.4.0
Provides: bundled(npm(@grafana/aws-sdk)) = 0.0.37
Provides: bundled(npm(@grafana/data)) = 0.0.0-use.local
Provides: bundled(npm(@grafana/e2e)) = 0.0.0-use.local
Provides: bundled(npm(@grafana/e2e-selectors)) = 0.0.0-use.local
Provides: bundled(npm(@grafana/eslint-config)) = 5.0.0
Provides: bundled(npm(@grafana/experimental)) = 1.0.1
Provides: bundled(npm(@grafana/google-sdk)) = 0.0.3
Provides: bundled(npm(@grafana/lezer-logql)) = 0.1.0
Provides: bundled(npm(@grafana/runtime)) = 0.0.0-use.local
Provides: bundled(npm(@grafana/schema)) = 0.0.0-use.local
Provides: bundled(npm(@grafana/toolkit)) = 0.0.0-use.local
Provides: bundled(npm(@grafana/tsconfig)) = 1.2.0rc1
Provides: bundled(npm(@grafana/ui)) = 0.0.0-use.local
Provides: bundled(npm(@jaegertracing/jaeger-ui-components)) = 0.0.0-use.local
Provides: bundled(npm(@jest/core)) = 27.5.1
Provides: bundled(npm(@kusto/monaco-kusto)) = 5.2.0
Provides: bundled(npm(@lezer/common)) = 1.0.0
Provides: bundled(npm(@lezer/highlight)) = 1.0.0
Provides: bundled(npm(@lezer/lr)) = 1.2.3
Provides: bundled(npm(@lingui/cli)) = 3.14.0
Provides: bundled(npm(@lingui/core)) = 3.14.0
Provides: bundled(npm(@lingui/macro)) = 3.12.1
Provides: bundled(npm(@lingui/react)) = 3.14.0
Provides: bundled(npm(@mdx-js/react)) = 1.6.22
Provides: bundled(npm(@mochajs/json-file-reporter)) = 1.3.0
Provides: bundled(npm(@monaco-editor/react)) = 4.4.5
Provides: bundled(npm(@opentelemetry/api)) = 1.1.0
Provides: bundled(npm(@opentelemetry/exporter-collector)) = 0.25.0
Provides: bundled(npm(@opentelemetry/semantic-conventions)) = 0.25.0
Provides: bundled(npm(@pmmmwh/react-refresh-webpack-plugin)) = 0.5.7
Provides: bundled(npm(@popperjs/core)) = 2.11.2
Provides: bundled(npm(@prometheus-io/lezer-promql)) = 0.37.0
Provides: bundled(npm(@react-aria/button)) = 3.6.1
Provides: bundled(npm(@react-aria/dialog)) = 3.3.1
Provides: bundled(npm(@react-aria/focus)) = 3.8.0
Provides: bundled(npm(@react-aria/interactions)) = 3.11.0
Provides: bundled(npm(@react-aria/menu)) = 3.6.1
Provides: bundled(npm(@react-aria/overlays)) = 3.10.1
Provides: bundled(npm(@react-aria/utils)) = 3.13.1
Provides: bundled(npm(@react-stately/collections)) = 3.4.1
Provides: bundled(npm(@react-stately/menu)) = 3.4.1
Provides: bundled(npm(@react-stately/tree)) = 3.3.1
Provides: bundled(npm(@react-types/button)) = 3.6.1
Provides: bundled(npm(@react-types/menu)) = 3.7.1
Provides: bundled(npm(@react-types/overlays)) = 3.6.1
Provides: bundled(npm(@react-types/shared)) = 3.13.1
Provides: bundled(npm(@reduxjs/toolkit)) = 1.8.5
Provides: bundled(npm(@rollup/plugin-commonjs)) = 22.0.1
Provides: bundled(npm(@rollup/plugin-json)) = 4.1.0
Provides: bundled(npm(@rollup/plugin-node-resolve)) = 13.3.0
Provides: bundled(npm(@rtsao/plugin-proposal-class-properties)) = 7.0.1-patch.1
Provides: bundled(npm(@sentry/browser)) = 6.19.7
Provides: bundled(npm(@sentry/types)) = 6.19.7
Provides: bundled(npm(@sentry/utils)) = 6.19.7
Provides: bundled(npm(@storybook/addon-a11y)) = 6.4.21
Provides: bundled(npm(@storybook/addon-actions)) = 6.4.21
Provides: bundled(npm(@storybook/addon-docs)) = 6.4.21
Provides: bundled(npm(@storybook/addon-essentials)) = 6.4.21
Provides: bundled(npm(@storybook/addon-knobs)) = 6.4.0
Provides: bundled(npm(@storybook/addon-storysource)) = 6.4.21
Provides: bundled(npm(@storybook/addons)) = 6.4.21
Provides: bundled(npm(@storybook/api)) = 6.4.21
Provides: bundled(npm(@storybook/builder-webpack5)) = 6.4.21
Provides: bundled(npm(@storybook/client-api)) = 6.4.21
Provides: bundled(npm(@storybook/components)) = 6.4.21
Provides: bundled(npm(@storybook/core-events)) = 6.4.21
Provides: bundled(npm(@storybook/manager-webpack5)) = 6.4.21
Provides: bundled(npm(@storybook/react)) = 6.4.21
Provides: bundled(npm(@storybook/theming)) = 6.4.21
Provides: bundled(npm(@swc/core)) = 1.3.1
Provides: bundled(npm(@swc/helpers)) = 0.4.3
Provides: bundled(npm(@testing-library/dom)) = 8.13.0
Provides: bundled(npm(@testing-library/jest-dom)) = 5.16.4
Provides: bundled(npm(@testing-library/react)) = 12.1.4
Provides: bundled(npm(@testing-library/react-hooks)) = 8.0.1
Provides: bundled(npm(@testing-library/user-event)) = 14.4.3
Provides: bundled(npm(@types/angular)) = 1.8.3
Provides: bundled(npm(@types/angular-route)) = 1.7.2
Provides: bundled(npm(@types/chrome-remote-interface)) = 0.31.4
Provides: bundled(npm(@types/classnames)) = 2.3.0
Provides: bundled(npm(@types/command-exists)) = 1.2.0
Provides: bundled(npm(@types/common-tags)) = 1.8.1
Provides: bundled(npm(@types/d3)) = 7.4.0
Provides: bundled(npm(@types/d3-force)) = 2.1.4
Provides: bundled(npm(@types/d3-interpolate)) = 1.4.2
Provides: bundled(npm(@types/d3-scale-chromatic)) = 1.3.1
Provides: bundled(npm(@types/debounce-promise)) = 3.1.4
Provides: bundled(npm(@types/deep-freeze)) = 0.1.2
Provides: bundled(npm(@types/dompurify)) = 2.4.0
Provides: bundled(npm(@types/enzyme)) = 3.10.10
Provides: bundled(npm(@types/enzyme-adapter-react-16)) = 1.0.6
Provides: bundled(npm(@types/eslint)) = 7.28.2
Provides: bundled(npm(@types/file-saver)) = 2.0.5
Provides: bundled(npm(@types/fs-extra)) = 9.0.13
Provides: bundled(npm(@types/google.analytics)) = 0.0.42
Provides: bundled(npm(@types/gtag.js)) = 0.0.11
Provides: bundled(npm(@types/history)) = 4.7.9
Provides: bundled(npm(@types/hoist-non-react-statics)) = 3.3.1
Provides: bundled(npm(@types/inquirer)) = 8.2.1
Provides: bundled(npm(@types/is-hotkey)) = 0.1.7
Provides: bundled(npm(@types/jest)) = 26.0.15
Provides: bundled(npm(@types/jquery)) = 3.5.14
Provides: bundled(npm(@types/js-yaml)) = 4.0.5
Provides: bundled(npm(@types/jsurl)) = 1.2.30
Provides: bundled(npm(@types/lingui__macro)) = 3.0.0
Provides: bundled(npm(@types/lodash)) = 4.14.149
Provides: bundled(npm(@types/logfmt)) = 1.2.2
Provides: bundled(npm(@types/marked)) = 4.0.3
Provides: bundled(npm(@types/mock-raf)) = 1.0.3
Provides: bundled(npm(@types/mousetrap)) = 1.6.9
Provides: bundled(npm(@types/node)) = 14.17.32
Provides: bundled(npm(@types/ol-ext)) = 2.3.0
Provides: bundled(npm(@types/papaparse)) = 5.3.2
Provides: bundled(npm(@types/pluralize)) = 0.0.29
Provides: bundled(npm(@types/prettier)) = 2.4.2
Provides: bundled(npm(@types/prismjs)) = 1.26.0
Provides: bundled(npm(@types/prop-types)) = 15.7.4
Provides: bundled(npm(@types/rc-time-picker)) = 3.4.1
Provides: bundled(npm(@types/rc-tree)) = 3.0.0
Provides: bundled(npm(@types/react)) = 17.0.30
Provides: bundled(npm(@types/react-beautiful-dnd)) = 13.1.2
Provides: bundled(npm(@types/react-calendar)) = 3.5.1
Provides: bundled(npm(@types/react-color)) = 3.0.6
Provides: bundled(npm(@types/react-dev-utils)) = 9.0.10
Provides: bundled(npm(@types/react-dom)) = 17.0.10
Provides: bundled(npm(@types/react-grid-layout)) = 1.3.2
Provides: bundled(npm(@types/react-highlight-words)) = 0.16.4
Provides: bundled(npm(@types/react-icons)) = 2.2.7
Provides: bundled(npm(@types/react-redux)) = 7.1.20
Provides: bundled(npm(@types/react-resizable)) = 3.0.2
Provides: bundled(npm(@types/react-router-dom)) = 5.3.3
Provides: bundled(npm(@types/react-table)) = 7.7.12
Provides: bundled(npm(@types/react-test-renderer)) = 17.0.1
Provides: bundled(npm(@types/react-transition-group)) = 4.4.4
Provides: bundled(npm(@types/react-virtualized-auto-sizer)) = 1.0.1
Provides: bundled(npm(@types/react-window)) = 1.8.5
Provides: bundled(npm(@types/react-window-infinite-loader)) = 1.0.6
Provides: bundled(npm(@types/redux-mock-store)) = 1.0.3
Provides: bundled(npm(@types/reselect)) = 2.2.0
Provides: bundled(npm(@types/rimraf)) = 3.0.2
Provides: bundled(npm(@types/semver)) = 7.3.9
Provides: bundled(npm(@types/sinon)) = 10.0.13
Provides: bundled(npm(@types/slate)) = 0.47.9
Provides: bundled(npm(@types/slate-plain-serializer)) = 0.7.2
Provides: bundled(npm(@types/slate-react)) = 0.22.9
Provides: bundled(npm(@types/systemjs)) = 0.20.8
Provides: bundled(npm(@types/testing-library__jest-dom)) = 5.14.1
Provides: bundled(npm(@types/testing-library__react-hooks)) = 3.4.1
Provides: bundled(npm(@types/tinycolor2)) = 1.4.3
Provides: bundled(npm(@types/tmp)) = 0.2.3
Provides: bundled(npm(@types/uuid)) = 8.3.4
Provides: bundled(npm(@types/webpack-env)) = 1.16.3
Provides: bundled(npm(@typescript-eslint/eslint-plugin)) = 5.16.0
Provides: bundled(npm(@typescript-eslint/parser)) = 5.16.0
Provides: bundled(npm(@visx/event)) = 2.6.0
Provides: bundled(npm(@visx/gradient)) = 2.10.0
Provides: bundled(npm(@visx/group)) = 2.10.0
Provides: bundled(npm(@visx/scale)) = 2.2.2
Provides: bundled(npm(@visx/shape)) = 2.12.2
Provides: bundled(npm(@visx/tooltip)) = 2.10.0
Provides: bundled(npm(@welldone-software/why-did-you-render)) = 7.0.1
Provides: bundled(npm(@wojtekmaj/enzyme-adapter-react-17)) = 0.6.7
Provides: bundled(npm(angular)) = 1.8.3
Provides: bundled(npm(angular-bindonce)) = 0.3.1
Provides: bundled(npm(angular-route)) = 1.8.3
Provides: bundled(npm(angular-sanitize)) = 1.8.3
Provides: bundled(npm(ansicolor)) = 1.1.100
Provides: bundled(npm(app)) = 0.0.0-use.local
Provides: bundled(npm(autoprefixer)) = 9.8.8
Provides: bundled(npm(axios)) = 0.25.0
Provides: bundled(npm(babel-jest)) = 27.5.1
Provides: bundled(npm(babel-loader)) = 8.2.5
Provides: bundled(npm(babel-plugin-angularjs-annotate)) = 0.10.0
Provides: bundled(npm(babel-plugin-macros)) = 2.8.0
Provides: bundled(npm(baron)) = 3.0.3
Provides: bundled(npm(blink-diff)) = 1.0.13
Provides: bundled(npm(brace)) = 0.11.1
Provides: bundled(npm(calculate-size)) = 1.1.1
Provides: bundled(npm(centrifuge)) = 3.0.1
Provides: bundled(npm(chalk)) = 2.4.2
Provides: bundled(npm(chance)) = 1.1.8
Provides: bundled(npm(chrome-remote-interface)) = 0.31.3
Provides: bundled(npm(classnames)) = 2.3.1
Provides: bundled(npm(combokeys)) = 3.0.1
Provides: bundled(npm(comlink)) = 4.3.1
Provides: bundled(npm(command-exists)) = 1.2.9
Provides: bundled(npm(commander)) = 2.11.0
Provides: bundled(npm(common-tags)) = 1.8.0
Provides: bundled(npm(copy-to-clipboard)) = 3.3.1
Provides: bundled(npm(copy-webpack-plugin)) = 9.0.1
Provides: bundled(npm(core-js)) = 2.6.12
Provides: bundled(npm(css-loader)) = 5.2.7
Provides: bundled(npm(css-minimizer-webpack-plugin)) = 3.4.1
Provides: bundled(npm(csstype)) = 2.6.18
Provides: bundled(npm(cypress)) = 9.5.1
Provides: bundled(npm(cypress-file-upload)) = 5.0.8
Provides: bundled(npm(d3)) = 5.15.0
Provides: bundled(npm(d3-force)) = 1.2.1
Provides: bundled(npm(d3-interpolate)) = 1.4.0
Provides: bundled(npm(d3-scale-chromatic)) = 1.5.0
Provides: bundled(npm(dangerously-set-html-content)) = 1.0.9
Provides: bundled(npm(date-fns)) = 2.25.0
Provides: bundled(npm(debounce-promise)) = 3.1.2
Provides: bundled(npm(deep-freeze)) = 0.0.1
Provides: bundled(npm(devtools-protocol)) = 0.0.927104
Provides: bundled(npm(dompurify)) = 2.3.8
Provides: bundled(npm(emotion)) = 10.0.27
Provides: bundled(npm(enzyme)) = 3.11.0
Provides: bundled(npm(enzyme-to-json)) = 3.6.2
Provides: bundled(npm(esbuild)) = 0.15.7
Provides: bundled(npm(eslint)) = 8.11.0
Provides: bundled(npm(eslint-config-prettier)) = 8.5.0
Provides: bundled(npm(eslint-plugin-import)) = 2.26.0
Provides: bundled(npm(eslint-plugin-jest)) = 26.6.0
Provides: bundled(npm(eslint-plugin-jsdoc)) = 38.0.6
Provides: bundled(npm(eslint-plugin-jsx-a11y)) = 6.6.1
Provides: bundled(npm(eslint-plugin-lodash)) = 7.4.0
Provides: bundled(npm(eslint-plugin-react)) = 7.29.4
Provides: bundled(npm(eslint-plugin-react-hooks)) = 4.3.0
Provides: bundled(npm(eslint-webpack-plugin)) = 3.2.0
Provides: bundled(npm(eventemitter3)) = 4.0.7
Provides: bundled(npm(execa)) = 1.0.0
Provides: bundled(npm(expose-loader)) = 4.0.0
Provides: bundled(npm(fast-deep-equal)) = 3.1.3
Provides: bundled(npm(fast-json-patch)) = 3.1.1
Provides: bundled(npm(fast_array_intersect)) = 1.1.0
Provides: bundled(npm(file-saver)) = 2.0.5
Provides: bundled(npm(fork-ts-checker-webpack-plugin)) = 4.1.6
Provides: bundled(npm(framework-utils)) = 1.1.0
Provides: bundled(npm(fs-extra)) = 0.30.0
Provides: bundled(npm(fuzzy)) = 0.1.3
Provides: bundled(npm(glob)) = 7.1.4
Provides: bundled(npm(globby)) = 9.2.0
Provides: bundled(npm(history)) = 4.10.1
Provides: bundled(npm(hoist-non-react-statics)) = 3.3.2
Provides: bundled(npm(html-loader)) = 3.1.0
Provides: bundled(npm(html-webpack-plugin)) = 5.5.0
Provides: bundled(npm(http-server)) = 14.1.1
Provides: bundled(npm(husky)) = 8.0.1
Provides: bundled(npm(immer)) = 9.0.7
Provides: bundled(npm(immutable)) = 3.8.2
Provides: bundled(npm(inquirer)) = 7.3.3
Provides: bundled(npm(is-hotkey)) = 0.1.4
Provides: bundled(npm(jest)) = 27.5.1
Provides: bundled(npm(jest-canvas-mock)) = 2.3.1
Provides: bundled(npm(jest-date-mock)) = 1.0.8
Provides: bundled(npm(jest-environment-jsdom)) = 27.5.1
Provides: bundled(npm(jest-fail-on-console)) = 2.4.2
Provides: bundled(npm(jest-junit)) = 13.1.0
Provides: bundled(npm(jest-matcher-utils)) = 27.5.1
Provides: bundled(npm(jquery)) = 3.5.1
Provides: bundled(npm(js-yaml)) = 3.14.1
Provides: bundled(npm(json-markup)) = 1.1.3
Provides: bundled(npm(json-source-map)) = 0.6.1
Provides: bundled(npm(jsurl)) = 0.1.5
Provides: bundled(npm(kbar)) = 0.1.0b36
Provides: bundled(npm(lerna)) = 5.2.0
Provides: bundled(npm(less)) = 4.1.2
Provides: bundled(npm(less-loader)) = 10.2.0
Provides: bundled(npm(lint-staged)) = 13.0.3
Provides: bundled(npm(lodash)) = 4.17.21
Provides: bundled(npm(logfmt)) = 1.3.2
Provides: bundled(npm(lru-cache)) = 6.0.0
Provides: bundled(npm(lru-memoize)) = 1.1.0
Provides: bundled(npm(marked)) = 4.1.0
Provides: bundled(npm(md5-file)) = 5.0.0
Provides: bundled(npm(memoize-one)) = 4.0.3
Provides: bundled(npm(mini-css-extract-plugin)) = 2.6.0
Provides: bundled(npm(mocha)) = 10.0.0
Provides: bundled(npm(mock-raf)) = 1.0.1
Provides: bundled(npm(moment)) = 2.29.4
Provides: bundled(npm(moment-timezone)) = 0.5.35
Provides: bundled(npm(monaco-editor)) = 0.34.0
Provides: bundled(npm(monaco-promql)) = 1.7.4
Provides: bundled(npm(mousetrap)) = 1.6.5
Provides: bundled(npm(mousetrap-global-bind)) = 1.1.0
Provides: bundled(npm(moveable)) = 0.35.4
Provides: bundled(npm(msw)) = 0.48.1
Provides: bundled(npm(mutationobserver-shim)) = 0.3.7
Provides: bundled(npm(ngtemplate-loader)) = 2.1.0
Provides: bundled(npm(node-notifier)) = 10.0.1
Provides: bundled(npm(ol)) = 6.15.1
Provides: bundled(npm(ol-ext)) = 3.2.28
Provides: bundled(npm(ora)) = 5.4.1
Provides: bundled(npm(papaparse)) = 5.3.1
Provides: bundled(npm(pixelmatch)) = 5.2.1
Provides: bundled(npm(pluralize)) = 8.0.0
Provides: bundled(npm(pngjs)) = 2.3.1
Provides: bundled(npm(postcss)) = 7.0.39
Provides: bundled(npm(postcss-flexbugs-fixes)) = 4.2.1
Provides: bundled(npm(postcss-loader)) = 4.3.0
Provides: bundled(npm(postcss-preset-env)) = 7.4.3
Provides: bundled(npm(postcss-reporter)) = 7.0.5
Provides: bundled(npm(postcss-scss)) = 4.0.2
Provides: bundled(npm(prettier)) = 2.3.0
Provides: bundled(npm(prismjs)) = 1.27.0
Provides: bundled(npm(process)) = 0.11.10
Provides: bundled(npm(prop-types)) = 15.7.2
Provides: bundled(npm(raw-loader)) = 4.0.2
Provides: bundled(npm(rc-cascader)) = 3.6.1
Provides: bundled(npm(rc-drawer)) = 4.4.3
Provides: bundled(npm(rc-slider)) = 9.7.5
Provides: bundled(npm(rc-time-picker)) = 3.7.3
Provides: bundled(npm(rc-tree)) = 5.6.5
Provides: bundled(npm(re-resizable)) = 6.9.9
Provides: bundled(npm(react)) = 17.0.1
Provides: bundled(npm(react-awesome-query-builder)) = 5.1.2
Provides: bundled(npm(react-beautiful-dnd)) = 13.1.0
Provides: bundled(npm(react-calendar)) = 3.7.0
Provides: bundled(npm(react-colorful)) = 5.5.1
Provides: bundled(npm(react-custom-scrollbars-2)) = 4.5.0
Provides: bundled(npm(react-dev-utils)) = 12.0.0
Provides: bundled(npm(react-diff-viewer)) = 3.1.1
Provides: bundled(npm(react-dom)) = 17.0.1
Provides: bundled(npm(react-draggable)) = 4.4.4
Provides: bundled(npm(react-dropzone)) = 14.2.2
Provides: bundled(npm(react-grid-layout)) = 1.3.4
Provides: bundled(npm(react-highlight-words)) = 0.18.0
Provides: bundled(npm(react-hook-form)) = 7.5.3
Provides: bundled(npm(react-icons)) = 2.2.7
Provides: bundled(npm(react-inlinesvg)) = 3.0.0
Provides: bundled(npm(react-moveable)) = 0.38.4
Provides: bundled(npm(react-popper)) = 2.2.5
Provides: bundled(npm(react-popper-tooltip)) = 3.1.1
Provides: bundled(npm(react-redux)) = 7.2.6
Provides: bundled(npm(react-refresh)) = 0.11.0
Provides: bundled(npm(react-resizable)) = 3.0.4
Provides: bundled(npm(react-reverse-portal)) = 2.1.1
Provides: bundled(npm(react-router-dom)) = 5.3.0
Provides: bundled(npm(react-select)) = 3.2.0
Provides: bundled(npm(react-select-event)) = 5.3.0
Provides: bundled(npm(react-simple-compat)) = 1.2.2
Provides: bundled(npm(react-split-pane)) = 0.1.92
Provides: bundled(npm(react-table)) = 7.8.0
Provides: bundled(npm(react-test-renderer)) = 17.0.2
Provides: bundled(npm(react-transition-group)) = 4.4.2
Provides: bundled(npm(react-use)) = 17.4.0
Provides: bundled(npm(react-virtualized-auto-sizer)) = 1.0.6
Provides: bundled(npm(react-window)) = 1.8.7
Provides: bundled(npm(react-window-infinite-loader)) = 1.0.8
Provides: bundled(npm(redux)) = 4.1.1
Provides: bundled(npm(redux-mock-store)) = 1.5.4
Provides: bundled(npm(redux-thunk)) = 2.4.1
Provides: bundled(npm(regenerator-runtime)) = 0.11.1
Provides: bundled(npm(replace-in-file-webpack-plugin)) = 1.0.6
Provides: bundled(npm(reselect)) = 4.1.0
Provides: bundled(npm(resolve-as-bin)) = 2.1.0
Provides: bundled(npm(rimraf)) = 2.7.1
Provides: bundled(npm(rollup)) = 2.77.2
Provides: bundled(npm(rollup-plugin-dts)) = 4.2.2
Provides: bundled(npm(rollup-plugin-esbuild)) = 4.9.1
Provides: bundled(npm(rollup-plugin-node-externals)) = 4.1.0
Provides: bundled(npm(rollup-plugin-sourcemaps)) = 0.6.3
Provides: bundled(npm(rollup-plugin-svg-import)) = 1.6.0
Provides: bundled(npm(rollup-plugin-terser)) = 7.0.2
Provides: bundled(npm(rst2html)) = 1.0.4
Provides: bundled(npm(rudder-sdk-js)) = 2.13.0
Provides: bundled(npm(rxjs)) = 6.6.7
Provides: bundled(npm(sass)) = 1.50.1
Provides: bundled(npm(sass-loader)) = 12.6.0
Provides: bundled(npm(selecto)) = 1.19.1
Provides: bundled(npm(semver)) = 5.7.1
Provides: bundled(npm(simple-git)) = 3.7.1
Provides: bundled(npm(sinon)) = 14.0.0
Provides: bundled(npm(slate)) = 0.47.9
Provides: bundled(npm(slate-plain-serializer)) = 0.7.11
Provides: bundled(npm(slate-react)) = 0.22.10
Provides: bundled(npm(sql-formatter-plus)) = 1.3.6
Provides: bundled(npm(storybook-dark-mode)) = 1.1.0
Provides: bundled(npm(style-loader)) = 1.3.0
Provides: bundled(npm(stylelint)) = 14.9.1
Provides: bundled(npm(stylelint-config-prettier)) = 9.0.3
Provides: bundled(npm(stylelint-config-sass-guidelines)) = 9.0.1
Provides: bundled(npm(symbol-observable)) = 4.0.0
Provides: bundled(npm(systemjs)) = 0.20.19
Provides: bundled(npm(terser-webpack-plugin)) = 4.2.3
Provides: bundled(npm(test)) = 0.0.0-use.local
Provides: bundled(npm(testing-library-selector)) = 0.2.1
Provides: bundled(npm(tether-drop)) = 1.5.0
Provides: bundled(npm(tinycolor2)) = 1.4.2
Provides: bundled(npm(tracelib)) = 1.0.1
Provides: bundled(npm(ts-jest)) = 27.1.3
Provides: bundled(npm(ts-loader)) = 8.4.0
Provides: bundled(npm(ts-node)) = 9.1.1
Provides: bundled(npm(tslib)) = 1.14.1
Provides: bundled(npm(tween-functions)) = 1.2.0
Provides: bundled(npm(typescript)) = 4.6.4
Provides: bundled(npm(uplot)) = 1.6.22
Provides: bundled(npm(uuid)) = 3.4.0
Provides: bundled(npm(vendor)) = 0.0.0-use.local
Provides: bundled(npm(visjs-network)) = 4.25.0
Provides: bundled(npm(wait-on)) = 6.0.1
Provides: bundled(npm(webpack)) = 5.72.0
Provides: bundled(npm(webpack-bundle-analyzer)) = 4.5.0
Provides: bundled(npm(webpack-cli)) = 4.10.0
Provides: bundled(npm(webpack-dev-server)) = 4.9.3
Provides: bundled(npm(webpack-filter-warnings-plugin)) = 1.2.1
Provides: bundled(npm(webpack-manifest-plugin)) = 5.0.0
Provides: bundled(npm(webpack-merge)) = 5.8.0
Provides: bundled(npm(whatwg-fetch)) = 3.6.2
Provides: bundled(npm(xss)) = 1.0.13
Provides: bundled(npm(yaml)) = 1.10.2


%description
Grafana is an open source, feature rich metrics dashboard and graph editor for
Graphite, InfluxDB & OpenTSDB.


%prep
%setup -q -T -D -b 0
%setup -q -T -D -b 1
%if %{compile_frontend} == 0
# remove bundled plugins source, otherwise they'll get merged
# with the compiled bundled plugins when extracting the webpack
rm -r plugins-bundled
%setup -q -T -D -b 2
%endif

%autopatch -p1

%build
# Build the frontend
%if %{compile_frontend}
%{SOURCE5}
%endif

# Build the backend

# see grafana-X.Y.Z/pkg/build/cmd.go
export LDFLAGS="-X main.version=%{version} -X main.buildstamp=${SOURCE_DATE_EPOCH}"
for cmd in grafana grafana-cli grafana-server; do
    %gobuild -o %{_builddir}/bin/${cmd} ./pkg/cmd/${cmd}
done


%install
# dirs, shared files, public html, webpack
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_libexecdir}/%{name}
cp -a conf public plugins-bundled %{buildroot}%{_datadir}/%{name}
rm -f %{buildroot}%{_datadir}/%{name}/public/img/icons/.gitignore
rm %{buildroot}%{_datadir}/%{name}/public/lib/.gitignore

# wrappers
install -p -m 755 packaging/wrappers/grafana-cli %{buildroot}%{_sbindir}/%{name}-cli

# binaries
install -p -m 755 %{_builddir}/bin/%{name}-server %{buildroot}%{_sbindir}
install -p -m 755 %{_builddir}/bin/%{name}-cli %{buildroot}%{_libexecdir}/%{name}
install -p -m 755 %{_builddir}/bin/%{name} %{buildroot}%{_sbindir}/%{name}

# man pages
install -d %{buildroot}%{_mandir}/man1
install -p -m 644 docs/man/man1/* %{buildroot}%{_mandir}/man1

# config dirs
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}/provisioning
install -d %{buildroot}%{_sysconfdir}/%{name}/provisioning/alerting
install -d %{buildroot}%{_sysconfdir}/%{name}/provisioning/access-control
install -d %{buildroot}%{_sysconfdir}/%{name}/provisioning/dashboards
install -d %{buildroot}%{_sysconfdir}/%{name}/provisioning/datasources
install -d %{buildroot}%{_sysconfdir}/%{name}/provisioning/notifiers
install -d %{buildroot}%{_sysconfdir}/%{name}/provisioning/plugins
install -d %{buildroot}%{_sysconfdir}/sysconfig

# config defaults
install -p -m 640 conf/sample.ini %{buildroot}%{_sysconfdir}/%{name}/grafana.ini
install -p -m 640 conf/ldap.toml %{buildroot}%{_sysconfdir}/%{name}/ldap.toml
install -p -m 644 conf/defaults.ini %{buildroot}%{_datadir}/%{name}/conf/defaults.ini
install -p -m 644 conf/sample.ini %{buildroot}%{_datadir}/%{name}/conf/sample.ini
install -p -m 644 packaging/rpm/sysconfig/grafana-server \
    %{buildroot}%{_sysconfdir}/sysconfig/grafana-server

# config database directory and plugins
install -d -m 750 %{buildroot}%{_sharedstatedir}/%{name}
install -d -m 755 %{buildroot}%{_sharedstatedir}/%{name}/plugins

# log directory
install -d %{buildroot}%{_localstatedir}/log/%{name}

# systemd service files
install -d %{buildroot}%{_unitdir} # only needed for manual rpmbuilds
install -p -m 644 packaging/rpm/systemd/grafana-server.service \
    %{buildroot}%{_unitdir}

# daemon run pid file config for using tmpfs
install -d %{buildroot}%{_tmpfilesdir}
echo "d %{_rundir}/%{name} 0755 %{GRAFANA_USER} %{GRAFANA_GROUP} -" \
    > %{buildroot}%{_tmpfilesdir}/%{name}.conf

# systemd-sysusers configuration
install -p -m 644 -D %{SOURCE3} %{buildroot}%{_sysusersdir}/%{name}.conf

%pre
%sysusers_create_package %{GRAFANA_USER} %{SOURCE3}

%preun
%systemd_preun grafana-server.service

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post grafana-server.service
# create grafana.db with secure permissions on new installations
# otherwise grafana-server is creating grafana.db on first start
# with world-readable permissions, which may leak encrypted datasource
# passwords to all users (if the secret_key in grafana.ini was not changed)

# https://bugzilla.redhat.com/show_bug.cgi?id=1805472
if [ "$1" = 1 ] && [ ! -f %{_sharedstatedir}/%{name}/grafana.db ]; then
    touch %{_sharedstatedir}/%{name}/grafana.db
fi

# apply secure permissions to grafana.db if it exists
# (may not exist on upgrades, because users can choose between sqlite/mysql/postgres)
if [ -f %{_sharedstatedir}/%{name}/grafana.db ]; then
    chown %{GRAFANA_USER}:%{GRAFANA_GROUP} %{_sharedstatedir}/%{name}/grafana.db
    chmod 640 %{_sharedstatedir}/%{name}/grafana.db
fi

# required for upgrades
chmod 640 %{_sysconfdir}/%{name}/grafana.ini
chmod 640 %{_sysconfdir}/%{name}/ldap.toml

%postun
%systemd_postun_with_restart grafana-server.service

%files
# binaries and wrappers
%{_sbindir}/%{name}
%{_sbindir}/%{name}-server
%{_sbindir}/%{name}-cli
%{_libexecdir}/%{name}

# config files
%config(noreplace) %{_sysconfdir}/sysconfig/grafana-server
%dir %{_sysconfdir}/%{name}
%attr(0755, root, %{GRAFANA_GROUP}) %dir %{_sysconfdir}/%{name}/provisioning
%attr(0755, root, %{GRAFANA_GROUP}) %dir %{_sysconfdir}/%{name}/provisioning/alerting
%attr(0755, root, %{GRAFANA_GROUP}) %dir %{_sysconfdir}/%{name}/provisioning/access-control
%attr(0755, root, %{GRAFANA_GROUP}) %dir %{_sysconfdir}/%{name}/provisioning/dashboards
%attr(0750, root, %{GRAFANA_GROUP}) %dir %{_sysconfdir}/%{name}/provisioning/datasources
%attr(0755, root, %{GRAFANA_GROUP}) %dir %{_sysconfdir}/%{name}/provisioning/notifiers
%attr(0755, root, %{GRAFANA_GROUP}) %dir %{_sysconfdir}/%{name}/provisioning/plugins
%attr(0640, root, %{GRAFANA_GROUP}) %config(noreplace) %{_sysconfdir}/%{name}/grafana.ini
%attr(0640, root, %{GRAFANA_GROUP}) %config(noreplace) %{_sysconfdir}/%{name}/ldap.toml

# config database directory and plugins
%attr(0750, %{GRAFANA_USER}, %{GRAFANA_GROUP}) %dir %{_sharedstatedir}/%{name}
%attr(-,    %{GRAFANA_USER}, %{GRAFANA_GROUP}) %dir %{_sharedstatedir}/%{name}/plugins

# shared directory and all files therein
%{_datadir}/%{name}

# systemd service file
%{_unitdir}/grafana-server.service

# Grafana configuration to dynamically create /run/grafana/grafana.pid on tmpfs
%{_tmpfilesdir}/%{name}.conf

# systemd-sysusers configuration file
%{_sysusersdir}/%{name}.conf

# log directory - grafana.log is created by grafana-server, and it does it's own log rotation
%attr(0755, %{GRAFANA_USER}, %{GRAFANA_GROUP}) %dir %{_localstatedir}/log/%{name}

# man pages for grafana binaries
%{_mandir}/man1/%{name}-server.1*
%{_mandir}/man1/%{name}-cli.1*

# other docs and license
%license LICENSE LICENSING.md NOTICE.md
%doc CHANGELOG.md CODE_OF_CONDUCT.md CONTRIBUTING.md GOVERNANCE.md HALL_OF_FAME.md ISSUE_TRIAGE.md MAINTAINERS.md
%doc README.md ROADMAP.md SECURITY.md SUPPORT.md UPGRADING_DEPENDENCIES.md WORKFLOW.md



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13098 |21mr|granatier-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Bomberman game
Name:		granatier
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/granatier/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Granatier is a clone of the classic Bomberman game, inspired by the work
of the Clanbomber clone.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.granatier.desktop
%{_kde5_bindir}/granatier
%{_kde5_datadir}/qlogging-categories5/granatier.categories
%{_kde5_datadir}/granatier
%{_kde5_datadir}/config.kcfg/granatier.kcfg
%{_kde5_iconsdir}/*/*/apps/granatier.*
%{_appdatadir}/org.kde.granatier.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13099 |21mr|grantlee-editor-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Grantlee editor for KDE PIM applications
Name:		grantlee-editor
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		grantlee-editor-categories.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5grantleetheme-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	grantleeeditor = %{EVRD}

%description
Grantlee editor for KDE PIM applications.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.contactprintthemeeditor.desktop
%{_kde5_applicationsdir}/org.kde.contactthemeeditor.desktop
%{_kde5_applicationsdir}/org.kde.headerthemeeditor.desktop
%{_kde5_bindir}/contactprintthemeeditor
%{_kde5_bindir}/contactthemeeditor
%{_kde5_bindir}/headerthemeeditor
%{_kde5_datadir}/config.kcfg/grantleethemeeditor.kcfg
%{_kde5_datadir}/qlogging-categories5/grantleeditor.categories
%{_kde5_datadir}/qlogging-categories5/grantleeditor.renamecategories

#----------------------------------------------------------------------------

%define grantleethemeeditor_major 5
%define libgrantleethemeeditor %mklibname grantleethemeeditor %{grantleethemeeditor_major}

%package -n %{libgrantleethemeeditor}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libgrantleethemeeditor}
KDE PIM shared library.

%files -n %{libgrantleethemeeditor}
%{_kde5_libdir}/libgrantleethemeeditor.so.%{grantleethemeeditor_major}*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_kde5_libdir}/libgrantleethemeeditor.so

%find_lang contactprintthemeeditor contactthemeeditor headerthemeeditor libgrantleethemeeditor %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13100 |21mr|grantlee-qt5-5.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname grantlee

Summary:	Qt string template engine based on the Django template system
Name:		%{oname}-qt5
Version:	5.3.1
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.gitorious.org/grantlee/pages/Home
Source0:	http://downloads.grantlee.org/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)

%description
Grantlee is a plugin based String Template system written using the Qt
framework. The goals of the project are to make it easier for application
developers to separate the structure of documents from the data they
contain, opening the door for theming.

The syntax is intended to follow the syntax of the Django template
system, and the design of Django is reused in Grantlee. Django is covered
by a BSD style license.

Part of the design of both is that application developers can extend the
syntax by implementing their own tags and filters. For details of how to
do that, see the API documentation.

For template authors, different applications using Grantlee will present
the same interface and core syntax for creating new themes. For details
of how to write templates, see the documentation.

#----------------------------------------------------------------------------

# Should be possible to install both 32 and 64 bit package
%define modules %mklibname %{name}-modules

%package -n %{modules}
Summary:	Modules for Qt string template engine based on the Django template system
Group:		System/Libraries

%description -n %{modules}
Modules for Qt string template engine based on the Django template system

%files -n %{modules}
%doc AUTHORS CHANGELOG COPYING.LIB
%{_libdir}/%{oname}/5.3/*.so

#----------------------------------------------------------------------------

%define templates_major 5
%define libtemplates %mklibname Grantlee_Templates %{templates_major}

%package -n %{libtemplates}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{modules}

%description  -n %{libtemplates}
Shared library for %{name}.

%files -n %{libtemplates}
%{_libdir}/libGrantlee_Templates.so.%{templates_major}*

#----------------------------------------------------------------------------

%define textdocument_major 5
%define libtextdocument %mklibname Grantlee_TextDocument %{textdocument_major}

%package -n %{libtextdocument}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{modules}

%description  -n %{libtextdocument}
Shared library for %{name}.

%files -n %{libtextdocument}
%{_libdir}/libGrantlee_TextDocument.so.%{textdocument_major}*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libtemplates} = %{EVRD}
Requires:	%{libtextdocument} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	grantlee5-devel = %{EVRD}
# Qt4-based version
Conflicts:	%{oname}-devel

%description -n %{devname}
Libraries and header files to develop applications that use %{name}.

%files -n %{devname}
%{_libdir}/cmake/Grantlee5
%{_includedir}/%{oname}
%{_includedir}/%{oname}_textdocument.h
%{_includedir}/%{oname}_templates.h
%{_libdir}/libGrantlee_Templates.so
%{_libdir}/libGrantlee_TextDocument.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13101 |21mr|grantleetheme-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __requires_exclude .*cmake.*KF6.*

Summary:	KDE Frameworks 5 Grantlee theme module
Name:		grantleetheme
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 Grantlee theme module.

%files -f libgrantleetheme.lang
%{_kde5_libdir}/grantlee/*/kde_grantlee_plugin.so
%{_kde5_datadir}/qlogging-categories5/grantleetheme.categories
%{_kde5_datadir}/qlogging-categories5/grantleetheme.renamecategories

#----------------------------------------------------------------------------

%define kf5grantleetheme_major 5
%define libkf5grantleetheme %mklibname kf5grantleetheme %{kf5grantleetheme_major}

%package -n %{libkf5grantleetheme}
Summary:	KDE Frameworks 5 Grantlee theme shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkf5grantleetheme}
KDE Frameworks 5 Grantlee theme shared library.

%files -n %{libkf5grantleetheme}
%{_kde5_libdir}/libKPim5GrantleeTheme.so.%{kf5grantleetheme_major}*

#----------------------------------------------------------------------------

%define devkf5grantleetheme %mklibname kf5grantleetheme -d

%package -n %{devkf5grantleetheme}
Summary:	Development files for KDE Frameworks 5 Grantlee theme module
Group:		Development/KDE and Qt
Requires:	%{libkf5grantleetheme} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5grantleetheme-devel = %{version}

%description -n %{devkf5grantleetheme}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5grantleetheme}
%{_kde5_includedir}/KPim5/GrantleeTheme
%{_kde5_libdir}/cmake/KPim5GrantleeTheme
%{_kde5_libdir}/libKPim5GrantleeTheme.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libgrantleetheme


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13102 |21mr|graphene-1.10.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

%define major	0
%define api	1.0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d
%define girname	%mklibname %{name}-gir %{api}

Summary:	Thin layer of types for graphic libraries
Name:		graphene
Version:	1.10.8
Release:	2
License:	MIT
Group:		System/Libraries
Url:		https://download.gnome.org/sources/graphene
Source0:	https://download.gnome.org/sources/graphene/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
Graphene provides a small set of mathematical types needed to implement graphic
libraries that deal with 2D and 3D transformations and projections.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A thin layer of types for graphic libraries
Group:		System/Libraries

%description -n %{libname}
Graphene provides a small set of mathematical types needed to implement graphic
libraries that deal with 2D and 3D transformations and projections.

%files -n %{libname}
%doc LICENSE.txt README.md
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for Graphene library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc LICENSE.txt
%{_libdir}/lib%{name}-%{api}.so
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}/include
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-gobject-1.0.pc
%{_datadir}/gir-1.0/Graphene-%{api}.gir
%{_datadir}/gtk-doc/html/%{name}

#----------------------------------------------------------------------------

%package tests
Summary:	Tests for the %{name} package
Group:		System/Libraries

%description tests
The %{name}-tests package contains tests that can be used to verify
the functionality of the installed %{name} package.

%files tests
%doc LICENSE.txt
%{_libexecdir}/installed-tests/
%{_datadir}/installed-tests/

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject introspection interface library for %{name}.

%files -n %{girname}
%doc LICENSE.txt
%{_libdir}/girepository-1.0/Graphene-%{api}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13103 |21mr|graphicsmagick-1.3.36-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# GraphicsMagick actually uses libtool to load its modules
%define	dont_remove_libtool_files 1

%define	_disable_ld_no_undefined 0

%define	Werror_cflags	%{nil}

%define	build_modules	1
%define	enable_jasper	1
%define	enable_graphwiz	1

%define	oname		GraphicsMagick
%define	major		3
%define	wand_major	2
%define	majorpp		12
%define	libname		%mklibname %{name} %{major}
%define	libnamepp	%mklibname %{name}++ %{majorpp}
%define	libwandname	%mklibname graphicsmagickwand %{wand_major}
%define	devname		%mklibname %{name} -d
%define	qlev		Q16

%global __provides_exclude .*\.so$

Summary:	An X application for displaying and manipulating images
Name:		graphicsmagick
Version:	1.3.36
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		http://www.graphicsmagick.org/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{oname}-%{version}.tar.xz
Patch100:	e2k-lcc-openmp-fix.patch
BuildRequires:	chrpath
BuildRequires:	bzip2-devel
BuildRequires:	ghostscript-devel
BuildRequires:	gomp-devel
BuildRequires:	jbigkit-devel
BuildRequires:	libtool-devel
BuildRequires:	libwmf-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp) >= 0.5.2
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(zlib)

%description
GraphicsMagick is the swiss army knife of image processing. It provides a
robust collection of tools and libraries which support reading, writing, and
manipulating an image in over 88 major formats including important formats
like DPX, GIF, JPEG, JPEG-2000, PNG, PDF, SVG, and TIFF.
GraphicsMagick supports huge images on systems that support large files, and
has been tested with gigapixel-size images.
GraphicsMagick can create new images on the fly, making it suitable for
building dynamic Web applications. GraphicsMagick may be used to resize,
rotate, sharpen, color reduce, or add special effects to an image and save the
result in the same or differing image format.
Image processing operations are available from the command line, as well as
through C, C++, Perl, or Windows COM programming interfaces.
Extensions are available from third-parties to support programming in Python,
Tcl, and Ruby. With some modification, language extensions for ImageMagick may
be used.

%files
%doc ChangeLog *.txt
%{_bindir}/gm
%dir %{_libdir}/%{oname}-%{version}/config
%{_libdir}/%{oname}-%{version}/config/*.mgk
%dir %{_datadir}/%{oname}-%{version}/config
%{_datadir}/%{oname}-%{version}/config/*.mgk
%if %{build_modules}
%dir %{_libdir}/%{oname}-%{version}/modules-%{qlev}
%{_libdir}/%{oname}-%{version}/modules-%{qlev}/filters
%dir %{_libdir}/%{oname}-%{version}/modules-%{qlev}/coders
%{_libdir}/%{oname}-%{version}/modules-%{qlev}/coders/*.so
%{_libdir}/%{oname}-%{version}/modules-%{qlev}/coders/*.la
%endif
%{_mandir}/man1/GraphicsMagick++-config.1.*
%{_mandir}/man1/GraphicsMagick-config.1.*
%{_mandir}/man1/GraphicsMagickWand-config.1.*
%{_mandir}/man1/gm.1.*
%{_mandir}/man4/miff.4.*
%{_mandir}/man5/quantize.5.*

#--------------------------------------------------------------

%package -n %{libname}
Summary:	%{oname} libraries
Group:		System/Libraries

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%doc Copyright.txt
%{_libdir}/libGraphicsMagick.so.%{major}*

#--------------------------------------------------------------

%package -n %{libnamepp}
Summary:	%{oname} libraries
Group:		System/Libraries
Conflicts:	%{_lib}graphicsmagick3 < 1.3.18-2

%description -n %{libnamepp}
This package contains a shared library for %{name}.

%files -n %{libnamepp}
%doc Copyright.txt
%{_libdir}/libGraphicsMagick++.so.%{majorpp}*

#--------------------------------------------------------------

%package -n %{libwandname}
Summary:	%{oname} libraries
Group:		System/Libraries

%description -n %{libwandname}
This package contains a shared library for %{name}.

%files -n %{libwandname}
%doc Copyright.txt
%{_libdir}/libGraphicsMagickWand.so.%{wand_major}*

#--------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for %{oname} app development
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamepp} = %{EVRD}
Requires:	%{libwandname} = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc Copyright.txt NEWS.txt
%{_bindir}/GraphicsMagick++-config
%{_bindir}/%{oname}-config
%{_bindir}/GraphicsMagickWand-config
%dir %{_includedir}/%{oname}
%{_includedir}/%{oname}/Magick++.h
%dir %{_includedir}/%{oname}/magick
%{_includedir}/%{oname}/magick/*.h
%dir %{_includedir}/%{oname}/Magick++
%{_includedir}/%{oname}/Magick++/*.h
%dir %{_includedir}/%{oname}/wand
%{_includedir}/%{oname}/wand/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#--------------------------------------------------------------

%package -n perl-Graphics-Magick
Summary:	Libraries and modules for access to %{oname} from perl
Group:		Development/Perl
Requires:	%{name} = %{version}
%if %{enable_graphwiz}
Requires:	graphviz
%endif

%description -n perl-Graphics-Magick
Perl bindings for %{oname}.

%files -n perl-Graphics-Magick
%doc Copyright.txt
%{_mandir}/man3*/*::*.3pm*
%{perl_vendorarch}/Graphics
%{perl_vendorarch}/auto

#--------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Other

%description doc
This package contains HTML/PDF documentation of %{name}.

%files doc
%{_datadir}/doc/%{oname}

#--------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%ifarch %{e2k}
%patch100 -p1
%endif


%build
%configure \
	--enable-fast-install \
	--without-dps \
	--with-quantum-depth=16 \
%if %{build_modules}
	--with-modules \
%else
	--without-modules \
%endif
	--enable-shared \
	--disable-static \
	--with-pic \
%if %{enable_jasper}
	--with-jp2 \
%else
	--without-jp2 \
%endif
	--with-webp \
	--with-perl \
	--with-perl-options="INSTALLDIRS=vendor"

%make
%make perl-build


%install
%makeinstall_std
%makeinstall_std -C PerlMagick

# Remove unwanted files
rm -f %{buildroot}%{_datadir}/GraphicsMagick-%{version}/{ChangeLog,NEWS.txt}
rm -f %{buildroot}%{_libdir}/*.la

# Fix perms and remove rpaths
chmod 755 %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so
chrpath -d %{buildroot}%{perl_vendorarch}/auto/Graphics/Magick/Magick.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13104 |21mr|graphite2-1.3.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname graphite2_ %{major}
%define devname %mklibname graphite2 -d

Summary:	Font rendering capabilities for complex non-Roman writing systems
Name:		graphite2
Version:	1.3.14
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/silgraphite/
Source0:	https://sourceforge.net/projects/silgraphite/files/%{name}/graphite2-%{version}.tgz
BuildRequires:	cmake
BuildConflicts:	dblatex
BuildRequires:	pkgconfig(freetype2)

%description
Graphite2 is a project within SIL’s Non-Roman Script Initiative and Language
Software Development groups to provide rendering capabilities for complex
non-Roman writing systems. Graphite can be used to create "smart fonts"
capable of displaying writing systems with various complex behaviors. With
respect to the Text Encoding Model, Graphite handles the "Rendering" aspect
of writing system implementation.

%files
# it's just a test
%optional %{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for graphite2
Group:		System/Libraries

%description -n %{libname}
Graphite2 is a project within SIL’s Non-Roman Script Initiative and Language
Software Development groups to provide rendering capabilities for complex
non-Roman writing systems. Graphite can be used to create "smart fonts"
capable of displaying writing systems with various complex behaviors. With
respect to the Text Encoding Model, Graphite handles the "Rendering" aspect
of writing system implementation.

%files -n %{libname}
%{_libdir}/libgraphite2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development header files and libraries for graphite2
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Includes and definitions for developing with graphite2.

%files -n %{devname}
%doc ChangeLog
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.cmake
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%ifarch %{e2k}
# do not build tests on elbrus
sed -i 's!add_subdirectory(tests)!!g' CMakeLists.txt
sed -i 's!add_subdirectory(gr2fonttest)!!g' CMakeLists.txt
# https://bugs.mcst.ru/bugzilla/show_bug.cgi?id=7050
sed -i 's!-nodefaultlibs!!g' src/CMakeLists.txt
export LDFLAGS="%{ldflags} -lstdc++"
%endif
%cmake \
	-DENABLE_COMPARE_RENDERER=OFF
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13105 |21mr|graphviz-7.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# disable madness
%define _unpackaged_subdirs_terminate_build 0
%define _disable_rebuild_configure 1

%define _disable_ld_no_undefined 1
%bcond_without static
%bcond_with libr
%bcond_with java

# temorary section ro e2k
%ifnarch %{e2k} %{riscv}
%bcond_without ruby
%bcond_without php
%bcond_without tcl
%bcond_without ocaml
%else
%bcond_with ruby
%bcond_with php
%bcond_with tcl
%bcond_with ocaml
%endif

%define cdt_major 5
%define cgraph_major 6
%define gamut_major 1
%define gvc_major 6
%define gvpr_major 2
%define pathplan_major 4
%define xdot_major 4

%define lib_cdt %mklibname cdt %{cdt_major}
%define lib_cgraph %mklibname cgraph %{cgraph_major}
%define lib_gamut %mklibname lab_gamut %{gamut_major}
%define lib_gvc %mklibname gvc %{gvc_major}
%define lib_gvpr %mklibname gvpr %{gvpr_major}
%define lib_pathplan %mklibname pathplan %{pathplan_major}
%define lib_xdot %mklibname xdot %{xdot_major}
%define devname %mklibname graphviz -d
%define staticname %mklibname graphviz -d -s

%if %{_use_internal_dependency_generator}
%global __requires_exclude /usr/bin/lua
%endif

Summary:	Graph visualization tools
Name:		graphviz
Version:	7.0.3
Release:	1
License:	Common Public License
Group:		Graphics
Url:		http://www.graphviz.org
Source0:	https://www2.graphviz.org/Packages/stable/portable_source/%{name}-%{version}.tar.gz
Patch0:		graphviz-link.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	swig
BuildRequires:	gd-devel
BuildRequires:	git
BuildRequires:	groff
BuildRequires:	gettext-devel
BuildRequires:	ghostscript
# jpeg:          No (only required by internal libgd)
#BuildRequires:	jpeg-devel
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	perl-ExtUtils-Embed
# temporary section
%ifnarch %e2k}
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(glut)
%endif
Conflicts: %{mklibname graphviz 4} < 2.20.3-3

%description
A collection of tools for the manipulation and layout
of graphs (as in nodes and edges, not as in barcharts).

%files
%dir %{_libdir}/%{name}
%{_bindir}/*
%{_mandir}/man?/*
%{_datadir}/graphviz
%{_libdir}/graphviz/*.so.*

%post
%{_bindir}/dot -c

%postun
if ! test -x %{_bindir}/dot; then rm -f %{_libdir}/%{name}/config; fi

#-------------------------------------------------------------------------

%package doc
Summary:	%{name} documentation
Group:		Books/Computer books

%description doc
The %{name} documentation.

%files doc
%{_datadir}/doc/%{name}

#-------------------------------------------------------------------------

%package -n %{lib_cdt}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}graphviz4 < 2.26

%description -n %{lib_cdt}
This package provides the cdt shared library for %{name}.

%files -n %{lib_cdt}
%{_libdir}/libcdt.so.%{cdt_major}*

#-------------------------------------------------------------------------

%package -n %{lib_cgraph}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}graphviz4 < 2.26

%description -n %{lib_cgraph}
This package provides the cgraph shared library for %{name}.

%files -n %{lib_cgraph}
%{_libdir}/libcgraph.so.%{cgraph_major}*

#-------------------------------------------------------------------------

%package -n     %{lib_gamut}
Group:          System/Libraries
Summary:        Shared library for %{name}

%description -n %{lib_gamut}
This package provides the lib_gamut shared library for %{name}.

%files -n %{lib_gamut}
%{_libdir}/liblab_gamut.so.%{gamut_major}*

#-------------------------------------------------------------------------

%package -n %{lib_gvc}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}graphviz4 < 2.26

%description -n %{lib_gvc}
This package provides the gvc shared library for %{name}.

%files -n %{lib_gvc}
%{_libdir}/libgvc.so.%{gvc_major}*

#-------------------------------------------------------------------------

%package -n %{lib_gvpr}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{lib_gvpr}
This package provides the gvpr shared library for %{name}.

%files -n %{lib_gvpr}
%{_libdir}/libgvpr.so.%{gvpr_major}*

#-------------------------------------------------------------------------

%package -n %{lib_pathplan}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}graphviz4 < 2.26

%description -n %{lib_pathplan}
This package provides the pathplan shared library for %{name}.

%files -n %{lib_pathplan}
%{_libdir}/libpathplan.so.%{pathplan_major}*

#-------------------------------------------------------------------------

%package -n %{lib_xdot}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{lib_xdot}
This package provides the xdot shared library for %{name}.

%files -n %{lib_xdot}
%{_libdir}/libxdot.so.%{xdot_major}*

#-------------------------------------------------------------------------

%define lua_version %(if [ -x /usr/bin/lua ]; then lua -v 2>&1| awk '{print $2}' | awk -F. '{print $1 "." $2}'; fi)

%package -n lua-graphviz
Summary:	Graphviz bindings for lua
Group:		System/Libraries
BuildRequires:	pkgconfig(lua)

%description -n lua-graphviz
This package provides the Lua extension for %{name}.

%files -n lua-graphviz
%{_libdir}/graphviz/lua
%{_libdir}/lua/%{lua_version}/gv.so

#-------------------------------------------------------------------------

%if %{with php}
%package -n php-graphviz
Summary:	Graphviz bindings for php
Group:		System/Libraries
BuildRequires:	php-devel
BuildRequires:	php-cli
Obsoletes:	%{mklibname graphvizphp 0} < 2.28.0-4

%description -n php-graphviz
This package provides the PHP extension for %{name}.

%files -n php-graphviz
%{_libdir}/graphviz/php
%{_libdir}/php/extensions/gv.so
%{_datadir}/php/gv.php
%endif

#-------------------------------------------------------------------------

%package -n python3-graphviz
Summary:	Graphviz bindings for python3
Group:		System/Libraries
Obsoletes:	%{mklibname graphvizpython 0} < 2.28.0-4
BuildRequires:	pkgconfig(python3)

%description -n python3-graphviz
This package provides the Python extension for %{name}.

%files -n python3-graphviz
%{_libdir}/graphviz/python3
%{py3_platsitedir}/*

#-------------------------------------------------------------------------

%if %{with ruby}
%package -n ruby-graphviz
Summary:	Graphviz bindings for ruby
Group:		System/Libraries
BuildRequires:	ruby-devel
Obsoletes:	%{mklibname graphvizruby 0} < 2.28.0-4

%description -n ruby-graphviz
This package provides the Ruby extension for %{name}.

%files -n ruby-graphviz
%{_libdir}/graphviz/ruby
%{_libdir}/*ruby*/*
%endif

#-------------------------------------------------------------------------

%package -n perl-graphviz
Summary:	Graphviz bindings for perl
Group:		System/Libraries
BuildRequires:	perl-devel
Obsoletes:	%{mklibname graphvizperl 0} < 2.28.0-4

%description -n perl-graphviz
This package provides the Perl extension for %{name}.

%files -n perl-graphviz
%{perl_vendorarch}/*
%{_libdir}/graphviz/perl

#-------------------------------------------------------------------------
%if %{with tcl}
%package -n tcl-graphviz
Summary:	Graphviz bindings for tcl
Group:		System/Libraries
BuildRequires:	tcl-devel >= 8.3.0
BuildRequires:	tk-devel >= 8.3.0
BuildRequires:	tk >= 8.3.0
Obsoletes:	%{mklibname graphviztcl 7 -d} < 2.28.0-4
Obsoletes:	%{mklibname graphviztcl 0} < 2.28.0-4

%description -n tcl-graphviz
This package provides the Tcl extension for %{name}.

%files -n tcl-graphviz
%{_libdir}/tcl*
%{_libdir}/graphviz/tcl
%endif
#-------------------------------------------------------------------------
%if %{with java}
%define jdk_path %{_prefix}/lib/jvm/java

%package -n java-graphviz
Summary:	Graphviz bindings for java
Group:		System/Libraries
BuildRequires:	java-devel
Obsoletes:	%{mklibname graphvizjava 0} < 2.28.0-4

%description -n java-graphviz
This package provides the Java extension for %{name}.

%files -n java-graphviz
%{_libdir}/graphviz/java
%endif
#-------------------------------------------------------------------------

%if %{with libr}
%package -n r-graphviz
Summary:	Graphviz bindings for R
Group:		System/Libraries
BuildRequires:	pkgconfig(libRmath)
Obsoletes:	%{mklibname graphvizr 0} < 2.28.0-4

%description -n r-graphviz
This package provides the R extension for %{name}.

%files -n r-graphviz
%{_libdir}/graphviz/R
%endif

#-------------------------------------------------------------------------
%if %{with ocaml}
%package -n ocaml-graphviz
Summary:	Graphviz bindings for OCaml
Group:		Development/OCaml
BuildRequires:	ocaml
Obsoletes:	%{mklibname graphvizocaml 0} < 2.28.0-4

%description -n ocaml-graphviz
This package provides the OCaml extension for %{name}.

%files -n ocaml-graphviz
%{_libdir}/graphviz/ocaml
%endif
#-------------------------------------------------------------------------

%package -n %{devname}
Group:		Development/Other
Summary:	Development package for %{name}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{mklibname graphviz -d 7} < 2.28.0-4
Obsoletes:	%{mklibname tcl -d 7} < 2.28.0-4
Obsoletes:	%{mklibname -d graphviz 3} < 2.28.0-4
Requires:	%{lib_cdt} = %{EVRD}
Requires:	%{lib_cgraph} = %{EVRD}
Requires:	%{lib_gvc} = %{EVRD}
Requires:	%{lib_gvpr} = %{EVRD}
Requires:	%{lib_pathplan} = %{EVRD}
Requires:	%{lib_xdot} = %{EVRD}

%description -n %{devname}
Development package for %{name}.

%files -n %{devname}
%{_libdir}/pkgconfig/*
%{_libdir}/graphviz/*.so
%{_libdir}/*.so
%{_includedir}/graphviz

#-------------------------------------------------------------------------

%if ! %{without static}
%package -n %{staticname}
Group:		Development/Other
Summary:	Static development package for %{name}
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Obsoletes:	%{mklibname -d -s graphviz 3} < 2.28.0-4

%description -n %{staticname}
Static development package for %{name}.

%files -n %{staticname}
%{_libdir}/graphviz/*.a
%{_libdir}/*.a
%endif

#-------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1
%if "%{_libdir}" != "/usr/lib64"
sed -i -e 's,I/usr/lib64,I%{_libdir},g' tclpkg/gv/Makefile.am
%endif

rm -rf libltdl

%build
./autogen.sh
#autoreconf -fi
%if %{with php}
sed -i -e "s,-php5,php$(rpm -q --qf '%{Version}' php-cli | cut -d'.' -f1),g" configure
%endif

%ifarch %{e2k}
LUA_INSTALL_DIR=%{_libdir}/lua
%endif

%configure \
	--with-x \
%if %{without static}
	--disable-static \
%else
	--enable-static \
%endif
%if %{with libr}
	--enable-r \
%else
	--disable-r \
%endif
	--enable-ocaml \
	--enable-perl \
%if %{with php}
	--enable-php \
%endif
	--disable-guile \
	--disable-python \
	--disable-python2 \
	--enable-python3 \
	--disable-sharp \
	--with-pangocairo \
	--with-gtk \
	--with-libgd \
	--disable-io \
%if %{with ruby}
	--enable-ruby=yes \
%else
	--enable-ruby=no \
%endif
	--disable-dependency-tracking

pushd libltdl
aclocal -I m4
popd
%make TK_LIB_SPEC="-ltcl -ltk" LIBS="-lX11" \
            PYTHON_INCLUDES=`python3-config --includes` \
            PYTHON_LIBS=`python3-config --embed --libs` \
            PYTHON_INSTALL_DIR=%{python3_sitearch} \
            PYTHON=%{__python3}

%install
%makeinstall_std

%ifarch %e2k
[ -d %{buildroot}%{_prefix}/lib/lua ] && mv %{buildroot}%{_prefix}/lib/lua %{buildroot}%{_libdir}/
%endif

# fix documentation
install -d -m 755 %{buildroot}%{_docdir}
mv %{buildroot}%{_datadir}/%{name}/demo %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13106 |21mr|greenmail-1.5.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%if 0%{?fedora}
# Disable running the test suite by default
%bcond_with tests
# https://bugzilla.redhat.com/show_bug.cgi?id=1363923
# Use springframework:4.2.6.RELEASE
%bcond_with spring
%endif

Name:          greenmail
Version:       1.5.3
Release:       6
Summary:       Suite of email servers for testing purposes
License:       ASL 2.0
URL:           http://www.icegreen.com/greenmail
Source0:       https://github.com/greenmail-mail-test/greenmail/archive/release-%{version}/%{name}-%{version}.tar.gz
# e-mail clearing up licensing issues
Source1:       %{name}-license-confusion.eml

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: java-devel
BuildRequires: maven-local
BuildRequires: mvn(com.sun.mail:javax.mail)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.slf4j:slf4j-simple)
%if %{without spring}
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-test)
%endif

# Old guideline
# FPC bundling exception: https://fedorahosted.org/fpc/ticket/392
# New guideline
# ./greenmail-core/src/main/java/com/icegreen/greenmail/foedus
# ./greenmail-core/src/main/java/com/icegreen/greenmail/mail
# ./greenmail-core/src/main/java/com/icegreen/greenmail/pop3
# ./greenmail-core/src/main/java/com/icegreen/greenmail/smtp
# ./greenmail-core/src/main/java/com/icegreen/greenmail/user
Provides:      bundled(foedus) = 0.1.2
# ./greenmail-core/src/main/java/com/icegreen/greenmail/imap
# ./greenmail-core/src/main/java/com/icegreen/greenmail/store
Provides:      bundled(apache-mime4j) = r109034

%description
GreenMail is an intuitive and easy-to-use test suite of email servers for
testing purposes.  It supports SMTP, POP3, IMAP with SSL socket support.
GreenMail also provides a JBoss GreenMail Service.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%package parent
Summary:       Greenmail Parent POM

%description parent
Greenmail Parent POM.

%package spring
Summary:       Greenmail Spring

%description spring
GreenMail support for Spring Framework.

%package standalone
Summary:       Greenmail Standalone

%description standalone
Run GreenMail standalone.

%prep
%setup -qn %{name}-release-%{version}

# Unavailable build deps
%pom_disable_module %{name}-jboss-service
%pom_disable_module %{name}-docker/standalone
# Unsupported features
%pom_disable_module %{name}-webapp

%if %{with spring}
%pom_disable_module %{name}-spring
%endif

# Use system JVM apis
%pom_remove_dep -r javax.activation:activation
# Unavailable test dep
%pom_remove_dep -r org.easymock:easymockclassextension

# https://github.com/marcelmay/inject-maven-plugin
%pom_remove_plugin de.m3y.maven:inject-maven-plugin %{name}-core

# Disable bundled copies of system libraries
%pom_remove_plugin :maven-shade-plugin %{name}-standalone
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:3.0.2 %{name}-standalone "
<configuration>
  <archive>
    <manifest>
      <addClasspath>false</addClasspath>
      <mainClass>com.icegreen.greenmail.standalone.GreenMailStandaloneRunner</mainClass>
    </manifest>
  </archive>
</configuration>"

%build

%if %{without tests}
# Unavailable test dep
opts='-f'
%endif
%mvn_build -s $opts

%install
%mvn_install

install %{SOURCE1} .

%files -f .mfiles-%{name}
%doc README.md
%license license.txt %{name}-license-confusion.eml

%files javadoc -f .mfiles-javadoc
%license license.txt %{name}-license-confusion.eml

%files parent -f .mfiles-%{name}-parent
%license license.txt %{name}-license-confusion.eml

%if %{without spring}
%files spring -f .mfiles-%{name}-spring
%endif

%files standalone -f .mfiles-%{name}-standalone


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13107 |21mr|grep-3.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _bindir /bin

Summary:	The GNU versions of grep pattern matching utilities
Name:		grep
Version:	3.11
Release:	3
License:	GPLv3+
Group:		Text tools
Url:		http://www.gnu.org/software/grep/grep.html
Source0:	ftp://ftp.gnu.org/pub/gnu/grep/%{name}-%{version}.tar.xz
Source1:	ftp://ftp.gnu.org/pub/gnu/grep/%{name}-%{version}.tar.xz.sig
Patch0:		grep-3.11-drop-egrep-warning.patch
Patch1:		grep-svace-fix.patch
BuildRequires:	bison
BuildRequires:	gettext
BuildRequires:	texinfo
BuildRequires:	pcre2-devel
Provides:	/bin/grep

%description
The GNU versions of commonly used grep utilities.  Grep searches one or
more input files for lines which contain a match to a specified pattern
and then prints the matching lines. GNU's grep utilities.

You should install grep on your system, because it is a very useful utility
for searching through text files, for system administration tasks, etc.

%files -f %{name}.lang
%{_bindir}/*grep
%{_bindir}/grep-syr
%{_mandir}/man1/grep.1*

#----------------------------------------------------------------------------

%package doc
Summary:	Grep documentation in info format
Group:		Documentation

%description doc
The GNU versions of commonly used grep utilities.  Grep searches one or
more input files for lines which contain a match to a specified pattern
and then prints the matching lines. GNU's grep utilities include grep.

You should install grep on your system, because it is a very useful utility
for searching through text files, for system administration tasks, etc.

Install this package if you want info documentation on grep.

%files doc
%doc AUTHORS THANKS TODO NEWS README ChangeLog
%{_infodir}/*.info*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# Build version that properly works with Syriac language
%serverbuild_hardened
%configure \
	--with-included-regex \
	--enable-perl-regexp \
	--enable-threads=posix

%make_build

mv src/grep src/grep-syr
make clean

# Build version that properly works with european languages
%serverbuild_hardened
%configure \
	--without-included-regex \
	--enable-perl-regexp \
	--exec-prefix=/ \
	--enable-threads=posix

%install
%make_install

install -m 0755 src/grep-syr %{buildroot}%{_bindir}/grep-syr
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13108 |21mr|grilo-0.3.14-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

%define api		0.3
%define major		0
%define major_grlnet	0
%define major_grlpls	0
%define libname		%mklibname %{name} %{api} %{major}
%define libgrlnet	%mklibname grlnet %{api} %{major_grlnet}
%define libgrlpls	%mklibname grlpls %{api} %{major_grlpls}
%define girname		%mklibname %{name}-gir %{api}
%define girgrlnet	%mklibname grlnet-gir %{api}
%define girgrlpls	%mklibname grlpls-gir %{api}
%define devname		%mklibname %{name} -d

Summary:	Content discovery framework
Name:		grilo
Version:	0.3.14
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/grilo
Source0:	https://download.gnome.org/sources/grilo/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(totem-plparser)
BuildRequires:	pkgconfig(vapigen)

%description
Grilo is a framework that provides access to different sources of
multimedia content, using a pluggable system.
This package contains the core library and elements.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README.md TODO
%{_bindir}/grl-inspect-%{api}
%{_bindir}/grl-launch-%{api}
%{_bindir}/grilo-test-ui-%{api}
%{_libdir}/grilo-%{api}
%{_datadir}/grilo-%{api}/plugins
%{_mandir}/man1/*.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries files for Grilo framework
Group:		System/Libraries

%description -n %{libname}
This package contains the core library for %{name}.

%files -n %{libname}
%{_libdir}/libgrilo-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgrlnet}
Summary:	Libraries files for Grilo framework
Group:		System/Libraries

%description -n %{libgrlnet}
This package contains the grlnet library for %{name}.

%files -n %{libgrlnet}
%{_libdir}/libgrlnet-%{api}.so.%{major_grlnet}*

#----------------------------------------------------------------------------

%package -n %{libgrlpls}
Summary:	Libraries files for Grilo framework
Group:		System/Libraries

%description -n %{libgrlpls}
This package contains the grlnet library for %{name}.

%files -n %{libgrlpls}
%{_libdir}/libgrlpls-%{api}.so.%{major_grlpls}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Grl-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girgrlnet}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libgrlnet} = %{EVRD}

%description -n %{girgrlnet}
GObject Introspection interface description for %{name}.

%files -n %{girgrlnet}
%{_libdir}/girepository-1.0/GrlNet-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girgrlpls}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libgrlpls} = %{EVRD}

%description -n %{girgrlpls}
GObject Introspection interface description for %{name}.

%files -n %{girgrlpls}
%{_libdir}/girepository-1.0/GrlPls-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries/include files for Grilo framework
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libgrlnet} = %{EVRD}
Requires:	%{libgrlpls} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girgrlnet} = %{EVRD}
Requires:	%{girgrlpls} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Grilo is a framework that provides access to different sources of
multimedia content, using a pluggable system.

This package contains the core library and elements, as well as
general and API documentation.

%files -n %{devname}
%doc AUTHORS COPYING NEWS README.md TODO
%doc %{_datadir}/gtk-doc/html/%{name}
%{_includedir}/%{name}-%{api}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/vala/vapi/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%meson -Denable-gtk-doc=true
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_libdir}/grilo-%{api} %{buildroot}%{_datadir}/grilo-%{api}/plugins

# Remove files that will not be packaged
rm -f %{buildroot}%{_bindir}/grilo-simple-playlist

%find_lang %{name} || touch %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13109 |21mr|grilo-plugins-0.3.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

%define api 0.3
%define develname %mklibname %{name} -d

Summary:	Plugins for the Grilo framework
Name:		grilo-plugins
Version:	0.3.15
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/grilo-plugins
Source0:	https://download.gnome.org/sources/grilo-plugins/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gnome-common
BuildRequires:	gperf
BuildRequires:	gstreamer1.0-tools
BuildRequires:	gstreamer1.0-plugins-bad
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(avahi-gobject)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmime-3.0)
BuildRequires:	pkgconfig(gom-1.0)
BuildRequires:	pkgconfig(grilo-%{api})
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libgdata)
BuildRequires:	pkgconfig(libdmapsharing-4.0)
BuildRequires:	pkgconfig(libmediaart-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(oauth)
BuildRequires:	pkgconfig(rest-0.7)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(totem-plparser)
BuildRequires:	pkgconfig(totem-plparser-mini)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
Requires:	grilo
Requires:	gstreamer1.0-plugins-bad

%description
Grilo is a framework for browsing and searching media content from
various sources using a single API.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%{_libdir}/grilo-%{api}/libgrl*.so
%{_datadir}/help/*/%{name}/%{name}.xml
%{_datadir}/help/*/%{name}/legal.xml
%{_datadir}/grilo-plugins/grl-lua-factory/*

#----------------------------------------------------------------------------

%package -n %{develname}
Summary:	This package provides the development files for grilo-plugins
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description -n %{develname}
Grilo is a framework for browsing and searching media content from
various sources using a single API.
This package provides the development files.

%files -n %{develname}
%doc AUTHORS NEWS README.md
%{_datadir}/help/*/examples/example-tmdb.c
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13110 |21mr|grizzly-2.3.24-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %{nil}
%global _version %(echo %version | tr . _)
%global namedversion %{_version}%{?namedreltag}

# Conditionals to help breaking grizzly <-> jersey dependency cycle
%if 0%{?fedora}
%bcond_with jersey
%bcond_with jaxws
%endif

Name:          grizzly
Version:       2.3.24
Release:       8
Summary:       Java NIO Server Framework
# see Grizzly_THIRDPARTYLICENSEREADME.txt
License:       (CDDL or GPLv2 with exceptions) and BSD and ASL 2.0 and Public Domain
URL:           http://grizzly.java.net/
# git clone git://java.net/grizzly~git
# (cd grizzly~git/ && git archive --format=tar --prefix=grizzly-2.3.6/ 2_3_6 | xz > ../grizzly-2.3.6.tar.xz)
Source0:       https://github.com/GrizzlyNIO/grizzly-mirror/archive/%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.sun.istack:istack-commons-maven-plugin)
%if %{with jersey}
BuildRequires: mvn(com.sun.jersey:jersey-client)
BuildRequires: mvn(com.sun.jersey:jersey-server)
BuildRequires: mvn(com.sun.jersey:jersey-servlet)
%endif
%if %{with jaxws}
BuildRequires: mvn(com.sun.xml.ws:rt)
%endif
BuildRequires: mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.glassfish.gmbal:gmbal)
BuildRequires: mvn(org.glassfish.gmbal:gmbal-api-only)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-npn-api)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-npn-bootstrap)
BuildRequires: mvn(org.glassfish.hk2:hk2-inhabitant-generator)
BuildRequires: mvn(org.glassfish.hk2:osgiversion-maven-plugin)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.osgi:org.osgi.core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Writing scalable server applications in the Java programming
language has always been difficult. Before the advent of the
Java New I/O API (NIO), thread management issues made it
impossible for a server to scale to thousands of users. The
Grizzly framework has been designed to help developers to take
advantage of the Java NIO API. Originally developed under the
GlassFish umbrella, the framework is now available as a
standalone project. Grizzly goals is to help developers to
build scalable and robust servers using NIO.

%package samples
Summary:       Grizzly samples

%description samples
This package contains samples for %{name}.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-mirror-%{namedversion}
find . -name '*.class' -delete
find . -name '*.jar' -print -delete
find . -name '*.js' -print -delete

# unavailable deps
# org.jvnet.maven-antrun-extended-plugin maven-antrun-extended-plugin
%pom_disable_module bundles extras
%pom_disable_module bundles modules

# org.ops4j maven-pax-plugin  1.5
%pom_disable_module grizzly-httpservice extras
# Unsupport war extension
%pom_disable_module comet samples
%pom_disable_module websockets/chat samples
%pom_disable_module websockets/chat-ssl samples

%pom_remove_dep :maven-bundle-plugin
%pom_remove_dep :maven-plugin-tools-api
%pom_remove_dep org.glassfish.hk2:config-types
%pom_remove_dep org.glassfish.hk2:core
%pom_remove_dep org.glassfish.hk2:hk2-config
%pom_remove_dep org.glassfish.hk2:hk2-locator
%pom_remove_dep org.glassfish.hk2:osgi-adapter

# wagon-webdav & wagon-ssh-external
%pom_xpath_remove "pom:build/pom:extensions"

# org.glassfish.grizzly:grizzly-npn-bootstrap:1.0
%pom_xpath_inject "pom:dependency[pom:artifactId = 'grizzly-spdy']" '<version>${project.version}</version>' samples/spdy-samples

#%% pom_remove_dep org.glassfish.grizzly:documentation bom
%pom_remove_dep org.glassfish.grizzly:grizzly-comet-server bom
%pom_remove_dep org.glassfish.grizzly:grizzly-compression bom
%pom_remove_dep org.glassfish.grizzly:grizzly-core bom
%pom_remove_dep org.glassfish.grizzly:grizzly-http-all bom
%pom_remove_dep org.glassfish.grizzly:grizzly-http-server-core bom
%pom_remove_dep org.glassfish.grizzly:grizzly-http-server-jaxws bom
%pom_remove_dep org.glassfish.grizzly:grizzly-http-servlet-server bom
%pom_remove_dep org.glassfish.grizzly:grizzly-websockets-server bom
%pom_remove_dep org.glassfish.grizzly.osgi:grizzly-httpservice bom
%pom_remove_dep org.glassfish.grizzly.osgi:grizzly-httpservice-bundle bom
%pom_remove_plugin :maven-antrun-extended-plugin bom
%pom_remove_plugin :glassfish-copyright-maven-plugin bom

%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :nexus-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

%if %{without jersey}
%pom_remove_dep com.sun.jersey: modules/http-servlet
rm -rf modules/http-servlet/src/test/java/filter/*
%else
%pom_add_dep com.sun.jersey:jersey-servlet:'${jersey-version}':test modules/http-servlet
%endif

cp -p modules/grizzly/src/main/resources/Grizzly_THIRDPARTYLICENSEREADME.txt .
sed -i 's/\r//' LICENSE.txt Grizzly_THIRDPARTYLICENSEREADME.txt

%pom_xpath_set -r "pom:plugin[pom:groupId='com.sun.istack']/pom:artifactId" istack-commons-maven-plugin

# Force servlet 3.1 apis
%pom_change_dep -r javax.servlet:servlet-api javax.servlet:javax.servlet-api:'${servlet-version}'

%if %{without jaxws}
%pom_disable_module http-server-jaxws extras
%pom_disable_module http-jaxws-samples samples
%else
%pom_change_dep com.sun.xml.ws: :rt extras/http-server-jaxws
%pom_change_dep com.sun.xml.ws: :rt samples/http-jaxws-samples
%endif

for m in http2 spdy ; do
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:useDefaultManifestFile" modules/${m}
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration" '
  <archive>
    <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  </archive>' modules/${m}
done

%mvn_package org.glassfish.grizzly.samples: samples

%build
# forcing the use of required glassfish-servlet-api 3.1 apis
# test skipped on arm builder
# https://bugzilla.redhat.com/show_bug.cgi?id=991712
%mvn_build \
%ifarch %{arm}
 -f -- \
%else
 -- -Dmaven.test.failure.ignore=true \
%endif
 -Dmaven.local.depmap.file="%{_mavendepmapfragdir}/glassfish-servlet-api.xml"

%install
%mvn_install

(
  cd %{buildroot}%{_javadir}/%{name}
  ln -sf %{name}-framework.jar %{name}.jar
)

%files -f .mfiles
%{_javadir}/%{name}/%{name}.jar
%license LICENSE.txt Grizzly_THIRDPARTYLICENSEREADME.txt

%files samples -f .mfiles-samples
%license LICENSE.txt Grizzly_THIRDPARTYLICENSEREADME.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt Grizzly_THIRDPARTYLICENSEREADME.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13111 |21mr|grizzly-npn-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          grizzly-npn
Version:       1.2
Release:       10
Summary:       Grizzly Next Protocol Negotiation API
License:       CDDL or GPLv2 with exceptions
URL:           https://grizzly.java.net/spdy.html
# git clone git://java.net/grizzly~npn
# (cd grizzly~npn && git archive --format=tar --prefix=grizzly-npn-1.2/ 1_2 | xz > ../grizzly-npn-1.2.tar.xz)
Source0:       %{name}-%{version}.tar.xz
# https://java.net/jira/browse/GRIZZLY-1770
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# grizzly-npn-api package don't include the license file
Source1:       glassfish-LICENSE.txt

BuildRequires: maven-local
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.osgi:org.osgi.core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A pure Java implementation of the
Next Protocol Negotiation TLS Extension
for OpenJDK 7 or greater.

NPN allows the application layer to
negotiate which protocol to use over the
secure connection.

%package bootstrap
Summary:       Grizzly NPN Bootstrap

%description bootstrap
This package contains the JAR that
will be placed on the bootclasspath
in order for NPN to work.

%package osgi
Summary:       Grizzly NPN OSGi

%description osgi
This empty module allows the bootclasspath classes in
org.glassfish.grizzly.npn to be available via the
OSGi classloading mechanisms.

Using GlassFish as an example:
- grizzly-npn-bootstrap.jar goes into the
  domain's bootclasspath (-Xbootclasspath/p:[PATH TO THE JAR])
- grizzly-npn-osgi and grizzly-spdy JARs go into the
  [PATH TO THE GlassFish 4 HOME]/modules directory.
 
%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

cp -p %{SOURCE1} LICENSE.txt

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301,"  $(find -name "*.java") LICENSE.txt

sed -i 's/\r//' LICENSE.txt

mkdir -p osgi/target/classes/META-INF
touch osgi/target/classes/META-INF/MANIFEST.MF

# use jvm jsse
rm -r bootstrap/src/main/java/sun/security/ssl/Alerts.java \
 bootstrap/src/main/java/sun/security/ssl/ClientHandshaker.java \
 bootstrap/src/main/java/sun/security/ssl/ExtensionType.java \
 bootstrap/src/main/java/sun/security/ssl/Handshaker.java \
 bootstrap/src/main/java/sun/security/ssl/HandshakeMessage.java \
 bootstrap/src/main/java/sun/security/ssl/HelloExtensions.java \
 bootstrap/src/main/java/sun/security/ssl/ServerHandshaker.java \
 bootstrap/src/main/java/sun/security/ssl/SSLEngineImpl.java

%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:configuration/pom:instructions/pom:Export-Package" bootstrap
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:configuration/pom:instructions" "
<Export-Package>
    sun.security.ssl
</Export-Package>
<Import-Package>
    org.glassfish.grizzly.npn
</Import-Package>" bootstrap

%mvn_package :%{name} %{name}
%mvn_package :%{name}-api %{name}

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%license LICENSE.txt

%files bootstrap -f .mfiles-%{name}-bootstrap
%license LICENSE.txt

%files osgi -f .mfiles-%{name}-osgi
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13112 |21mr|groff-1.22.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# filter requres provided in groff-perl pkg
%global __requires_exclude perl\\(main_subs.pl|man.pl|oop_fh.pl|subs.pl\\)

%define short_ver %(echo %{version}|cut -d. -f1,2)
%bcond_with	crosscompile

Summary:	Document formatting system
Name:		groff
Version:	1.22.4
Release:	4
License:	GPLv2+
Group:		Text tools
Url:		http://www.gnu.org/software/groff/
Source0:	ftp://ftp.gnu.org/gnu/groff/%{name}-%{version}.tar.gz
Source1:	troff-to-ps.fpi
Source100:	%{name}.rpmlintrc
Patch1:		groff-1.22.4-nroff-convert-encoding.patch

BuildRequires:	bison
BuildRequires:	ghostscript
BuildRequires:	imake
BuildRequires:	texinfo
BuildRequires:	netpbm
BuildRequires:	psutils
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmu)
Requires:	groff-base

%description
Groff is a document formatting system. Groff takes standard text and
formatting commands as input and produces formatted output. The created
documents can be shown on a display or printed on a printer. Groff's
formatting commands allow you to specify font type and size, bold type,
italic type, the number and size of columns on a page, and more.

You should install groff if you want to use it as a document formatting
system. Groff can also be used to format man pages. If you are going to
use groff with the X Window System, you'll also need to install the
groff-gxditview package.

%files
%{_bindir}/addftinfo
%{_bindir}/chem
%{_bindir}/eqn2graph
%{_bindir}/gdiffmk
%{_bindir}/grap2graph
%{_bindir}/grn
%{_bindir}/grodvi
%{_bindir}/grolbp
%{_bindir}/grolj4
%{_bindir}/gropdf
%{_bindir}/hpftodit
%{_bindir}/indxbib
%{_bindir}/lkbib
%{_bindir}/lookbib
%{_bindir}/neqn
%{_bindir}/pdfroff
%{_bindir}/pdfmom
%{_bindir}/pic
%{_bindir}/pic2graph
%{_bindir}/post-grohtml
%{_bindir}/pre-grohtml
%{_bindir}/roff2dvi
%{_bindir}/roff2html
%{_bindir}/roff2pdf
%{_bindir}/roff2ps
%{_bindir}/roff2text
%{_bindir}/roff2x
%{_bindir}/refer
%{_bindir}/soelim
%{_bindir}/tfmtodit
%{_bindir}/xtotroff
%{_datadir}/groff/%{version}/eign
%{_datadir}/groff/%{version}/font/devX100
%{_datadir}/groff/%{version}/font/devX100-12
%{_datadir}/groff/%{version}/font/devX75
%{_datadir}/groff/%{version}/font/devX75-12
%{_datadir}/groff/%{version}/font/devdvi
%{_datadir}/groff/%{version}/font/devhtml
%{_datadir}/groff/%{version}/font/devlbp
%{_datadir}/groff/%{version}/font/devlj4
%{_datadir}/groff/%{version}/font/devps
%{_datadir}/groff/%{version}/font/devpdf
%{_datadir}/groff/%{version}/oldfont/devps
%{_datadir}/groff/%{version}/pic/chem.pic
%{_docdir}/groff-%{version}
%{_infodir}/groff*
%{_mandir}/man1/addftinfo.*
%{_mandir}/man1/chem.*
%{_mandir}/man1/eqn2graph.*
%{_mandir}/man1/gdiffmk.*
%{_mandir}/man1/grap2graph.*
%{_mandir}/man1/grn.*
%{_mandir}/man1/grodvi.*
%{_mandir}/man1/grohtml.*
%{_mandir}/man1/grolbp.*
%{_mandir}/man1/grolj4.*
%{_mandir}/man1/gropdf.*
%{_mandir}/man1/hpftodit.*
%{_mandir}/man1/indxbib.*
%{_mandir}/man1/lkbib.*
%{_mandir}/man1/lookbib.*
%{_mandir}/man1/neqn.*
%{_mandir}/man1/pdfroff.*
%{_mandir}/man1/pdfmom.*
%{_mandir}/man1/pic.*
%{_mandir}/man1/pic2graph.*
%{_mandir}/man1/refer.*
%{_mandir}/man1/roff2dvi.*
%{_mandir}/man1/roff2html.*
%{_mandir}/man1/roff2ps.*
%{_mandir}/man1/roff2pdf.*
%{_mandir}/man1/roff2text.*
%{_mandir}/man1/roff2x.*
%{_mandir}/man1/soelim.*
%{_mandir}/man1/tfmtodit.*
%{_mandir}/man1/xtotroff.*
%{_mandir}/man5/*
%{_mandir}/man7/*

#---------------------------------------------------------------
%package base
Summary:	Groff components required for viewing manpages
Group:		Text tools
%rename groff-for-man
# preconv binary moved from older groff
# pfbtops binary moved from groff to base
# the only bin reqd by font-tools MD 2012/02

%description base
The groff-base package contains the parts of the groff text processor
package that are required for viewing manpages.
For a full groff package, install package groff.

%files base
%{_bindir}/eqn
%{_bindir}/groff
%{_bindir}/grops
%{_bindir}/grotty
%{_bindir}/nroff
%{_bindir}/pfbtops
%{_bindir}/preconv
%{_bindir}/tbl
%{_bindir}/troff
%{_datadir}/groff/current
%dir %{_datadir}/groff
%dir %{_datadir}/groff/%{version}
%{_datadir}/groff/%{version}/tmac
%dir %{_datadir}/groff/%{version}/font
%{_datadir}/groff/%{version}/font/devascii
%{_datadir}/groff/%{version}/font/devlatin1
%{_datadir}/groff/%{version}/font/devutf8
%{_datadir}/groff/%{version}/font/devcp1047/B
%{_datadir}/groff/%{version}/font/devcp1047/BI
%{_datadir}/groff/%{version}/font/devcp1047/DESC
%{_datadir}/groff/%{version}/font/devcp1047/I
%{_datadir}/groff/%{version}/font/devcp1047/R
%dir %{_datadir}/groff/site-tmac
%{_datadir}/groff/site-tmac/man.local
%{_datadir}/groff/site-tmac/mdoc.local
%{_libdir}/groff/groff_opts_no_arg.txt
%{_libdir}/groff/groff_opts_with_arg.txt
%{_mandir}/man1/eqn.*
%{_mandir}/man1/groff.*
%{_mandir}/man1/grops.*
%{_mandir}/man1/grotty.*
%{_mandir}/man1/pfbtops.*
%{_mandir}/man1/preconv.*
%{_mandir}/man1/nroff.*
%{_mandir}/man1/tbl.*
%{_mandir}/man1/troff.*

#---------------------------------------------------------------

%package perl
Summary:	Parts of the groff formatting system that require Perl
Group:		Text tools
Requires:	groff-base = %{version}-%{release}

%description perl
The groff-perl package contains the parts of the groff text processor
package that require Perl. These include the afmtodit font processor for
creating PostScript font files, the grog utility that can be used to
automatically determine groff command-line options, and the troff-to-ps
print filter.

%files perl
%{_bindir}/afmtodit
%{_bindir}/grog
%{_bindir}/gperl
%{_bindir}/gpinyin
%{_bindir}/groffer
%{_bindir}/glilypond
%{_bindir}/mmroff
%{_libdir}/rhs/rhs-printfilters/troff-to-ps.fpi
%{_libdir}/groff/grog/subs.pl
%{_libdir}/groff/glilypond
%{_libdir}/groff/gpinyin
%{_libdir}/groff/groffer
%{_mandir}/man1/afmtodit.*
%{_mandir}/man1/grog.*
%{_mandir}/man1/gperl.1.xz
%{_mandir}/man1/gpinyin.1.xz
%{_mandir}/man1/groffer.*
%{_mandir}/man1/mmroff.*
%{_mandir}/man1/glilypond.1.xz

#---------------------------------------------------------------

%package gxditview
Summary:	X previewer for groff text processor output
Group:		Text tools
Requires:	groff-base = %{version}-%{release}

%description gxditview

Gxditview displays the groff text processor's output on an X Window
System display.

If you are going to use groff as a text processor, you should install
gxditview so that you preview your processed text files in X. You'll
also need to install the groff package and the X Window System.

%files gxditview
%{_bindir}/gxditview
%{_datadir}/X11/app-defaults/GXditview
%{_datadir}/X11/app-defaults/GXditview-color
%{_mandir}/man1/gxditview.*

#---------------------------------------------------------------

%prep
%setup -q
%apply_patches
%if %{with crosscompile}
sed -i \
    -e '/^GROFFBIN=/s:=.*:=%{_bindir}/groff:' \
    -e '/^TROFFBIN=/s:=.*:=%{_bindir}/troff:' \
    -e '/^GROFF_BIN_PATH=/s:=.*:=%{_bindir}:' \
    -e '/^GROFF_BIN_DIR=/s:=.*:=%{_bindir}:' \
    contrib/*/Makefile.sub \
    doc/Makefile.in \
    doc/Makefile.sub
%endif

%build
%configure --with-appresdir=%{_datadir}/X11/app-defaults
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_libdir}/rhs/rhs-printfilters
install -m755 %{SOURCE1} %{buildroot}/%{_libdir}/rhs/rhs-printfilters

# MD fix bad symlink
rm -f %{buildroot}/%{_datadir}/doc/groff-%version/pdf/mom-pdf.pdf
ln -s ../examples/mom/mom-pdf.pdf \
	%{buildroot}/%{_datadir}/doc/groff-%version/pdf/mom-pdf.pdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13113 |21mr|groovy18-1.8.9-34
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Note to packagers: When rebasing this to a later version, do not
# forget to ensure that sources 1 and 2 are up to date as well as
# the Requires list.
%global majorversion 1.8
%global archiver 1_8_9

Name:           groovy18
Version:        1.8.9
Release:        34
Summary:        Dynamic language for the Java Platform

# Some of the files are licensed under BSD and CPL terms, but the CPL has been superceded
# by the EPL. We include copies of both for completeness.
# groovyConsole uses CC-BY licensed icons
# thanks to Michal Srb and Mikolaj Izdebski, and Tom Callaway
License:        ASL 2.0 and BSD and EPL and Public Domain and CC-BY
URL:            http://groovy-lang.org

Source0:        https://github.com/groovy/groovy-core/archive/GROOVY_%{archiver}.zip
# thanks to Johannes Lips and Matt Spaulding
Source1:        groovy18-script
Source2:        groovy18-starter.conf
Source4:        cpl-v10.txt
Source5:        epl-v10.txt
Source6:        http://www.apache.org/licenses/LICENSE-2.0.txt
# thanks to Andy Grimm
Patch0:         groovy-inner-interface-annotations.patch
Patch1:         groovy-build-with-java8.patch
Patch2:         groovy-servlet31.patch
Patch3:         groovy-commons-cli-1.3.patch
Patch4:         groovy-CVE-2015-3253-and-CVE-2016-6814.patch

BuildRequires:  ant
BuildRequires:  antlr-tool
BuildRequires:  ant-antlr
BuildRequires:  objectweb-asm3
BuildRequires:  bsf
BuildRequires:  apache-ivy
BuildRequires:  jansi
BuildRequires:  jline1
BuildRequires:  glassfish-jsp-api
BuildRequires:  junit
BuildRequires:  glassfish-servlet-api
BuildRequires:  xstream
BuildRequires:  java-devel >= 1.8
BuildRequires:  desktop-file-utils
BuildRequires:  jpackage-utils
BuildRequires:  apache-commons-cli
BuildRequires:  unzip
BuildRequires:  javapackages-local
BuildRequires:  mvn(org.apache.ant:ant-junit)
BuildRequires:  mvn(org.apache.ant:ant-launcher)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(javax.servlet:jsp-api)

Requires:       %{name}-lib = %{version}-%{release}
# Following dependencies are optional from Maven POV,
# but upstream ships them in binary distribution
Requires:       mvn(junit:junit)
# Only used for command line tools:
Requires:       mvn(commons-cli:commons-cli)
# Only used for Ant tasks & scripting tool:
Requires:       mvn(org.apache.ant:ant)
Requires:       mvn(org.apache.ant:ant-antlr)
Requires:       mvn(org.apache.ant:ant-launcher)
Requires:       mvn(org.apache.ant:ant-junit)
# Only used for BSF adapter:
Requires:       mvn(bsf:bsf)
Requires:       mvn(commons-logging:commons-logging)
# Used for servlet / gsp:
Requires:       glassfish-jsp-api
Requires:       glassfish-servlet-api
# Used to dump out the AST, xpp only needed for reading:
Requires:       mvn(com.thoughtworks.xstream:xstream)
# Used for richer interactive groovysh support:
Requires:       mvn(jline:jline:1)
Requires:       mvn(org.fusesource.jansi:jansi)
# Used for @Grab and Grapes:
Requires:       mvn(org.apache.ivy:ivy)
Requires:       mvn(org.codehaus.gpars:gpars)

# Joint compilation requires tools.jar from java-devel
Suggests:       java-devel

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Groovy is an agile and dynamic language for the Java Virtual Machine,
built upon Java with features inspired by languages like Python, Ruby and
Smalltalk.  It seamlessly integrates with all existing Java objects and
libraries and compiles straight to Java byte-code so you can use it anywhere
you can use Java.

%package lib
Summary:        Groovy JAR artifact
%description lib
This package contains Groovy JAR artifact.

%package javadoc
Summary:        API Documentation for %{name}
%description javadoc
JavaDoc documentation for %{name}

%prep
%setup -q -n groovy-core-GROOVY_%{archiver}
find . -name "*.class" -delete
find . -name "*.jar" -delete

cp %{SOURCE4} %{SOURCE5} %{SOURCE6} .

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

# build.xml is not compatible with Ant 1.10+
sed -i "s| depends=\"-excludeLegacyAntVersion\"||" build.xml

# We don't want to generate auto-R on optional dependencies
%pom_xpath_replace "pom:dependency[pom:optional[text()='true']]/pom:scope" "<scope>provided</scope>"

# java 7 apis
%pom_remove_dep org.livetribe:livetribe-jsr223
# explicit tomcat apis
sed -i "s|<groupId>javax.servlet</groupId>|<groupId>org.apache.tomcat</groupId>|" pom.xml
sed -i "s|<artifactId>jsp-api</artifactId>|<artifactId>tomcat-jsp-api</artifactId>|" pom.xml
sed -i "s|<version>2.0</version>|<version>any</version>|" pom.xml
sed -i "s|<artifactId>servlet-api</artifactId>|<artifactId>tomcat-servlet-api</artifactId>|" pom.xml
sed -i "s|<version>2.4</version>|<version>any</version>|" pom.xml

# fix non ASCII chars
for s in src/main/groovy/transform/NotYetImplemented.java\
  src/main/org/codehaus/groovy/transform/NotYetImplementedASTTransformation.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

# build against shaded asm3
# TODO: fast&ugly, this could use some improvements
find . -name "*.java" -exec sed -i 's|org.objectweb.asm|org.objectweb.distroshaded.asm|g' {} +
find . -name "*.groovy" -exec sed -i 's|org.objectweb.asm|org.objectweb.distroshaded.asm|g' {} +

%pom_change_dep :asm :asm-distroshaded
%pom_change_dep :asm-commons :asm-commons-distroshaded
%pom_change_dep :asm-util :asm-util-distroshaded
%pom_change_dep :asm-analysis :asm-analysis-distroshaded
%pom_change_dep :asm-tree :asm-tree-distroshaded

%mvn_package : %{name}-lib
%mvn_file : groovy %{name}

%mvn_alias : :groovy-all :%{name}-all :%{name}
%mvn_compat_version : "1.8" "1.8.9"

%build
mkdir -p target/lib/{compile,tools}

# Construct classpath
build-jar-repository target/lib/compile glassfish-servlet-api glassfish-jsp-api/javax.servlet.jsp-api \
        objectweb-asm3/asm-tree-distroshaded objectweb-asm3/asm-distroshaded \
        objectweb-asm3/asm-util-distroshaded objectweb-asm3/asm-analysis-distroshaded \
        antlr ant/ant-antlr antlr \
        bsf jline1/jline-1 xstream ant junit apache-ivy commons-cli \
        jansi

# Build
# TODO: Build at least tests, maybe examples
export CLASSPATH=$(build-classpath ant/ant-antlr) 
ant -DskipTests=on -DskipExamples=on -DskipFetch=on -DskipEmbeddable=on \
        createJars javadoc


%install
%mvn_artifact pom.xml target/dist/groovy.jar
%mvn_install -J target/html/api/

# Startup scripts
install -d $RPM_BUILD_ROOT%{_bindir}
install -p -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
for TOOL in grape18 %{name}c %{name}Console java2%{name} %{name}sh
do
        ln $RPM_BUILD_ROOT%{_bindir}/%{name} \
                $RPM_BUILD_ROOT%{_bindir}/$TOOL
done

# Configuration
install -d $RPM_BUILD_ROOT%{_sysconfdir}
install -p -m644 %{SOURCE2} \
        $RPM_BUILD_ROOT%{_sysconfdir}/%{name}-starter.conf


%files
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/%{name}-starter.conf
%doc README.md
%license LICENSE.txt LICENSE-2.0.txt NOTICE.txt cpl-v10.txt epl-v10.txt

%files lib -f .mfiles-%{name}-lib
%license LICENSE.txt LICENSE-2.0.txt NOTICE.txt cpl-v10.txt epl-v10.txt

%files javadoc
%{_javadocdir}/%{name}
%license LICENSE.txt LICENSE-2.0.txt NOTICE.txt cpl-v10.txt epl-v10.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13114 |21mr|groovy-2.4.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# Note to packagers: When rebasing this to a later version, do not
# forget to ensure that sources 1 and 2 are up to date as well as
# the Requires list.

Name:           groovy
Version:        2.4.8
Release:        10
Summary:        Dynamic language for the Java Platform
Group:          Development/Java
# Some of the files are licensed under BSD and CPL terms, but the CPL has been superceded
# by the EPL. We include copies of both for completeness.
# groovyConsole uses CC-BY licensed icons
# (see: subprojects/groovy-console/target/tmp/groovydoc/groovy/ui/icons/credits.txt)
License:        ASL 2.0 and BSD and EPL and Public Domain and CC-BY
URL:            http://groovy-lang.org

Source0:        https://dl.bintray.com/groovy/maven/apache-groovy-src-%{version}.zip
Source1:        groovy-script.sh
Source3:        groovy.desktop
Source4:        cpl-v10.txt
Source5:        epl-v10.txt
Source6:        http://central.maven.org/maven2/org/codehaus/groovy/groovy-all/%{version}/groovy-all-%{version}.pom

Patch0:         0001-Port-to-Servlet-API-3.1.patch
Patch1:         0002-Gradle-local-mode.patch
Patch2:         0003-Bintray.patch
Patch3:         0004-Remove-android-support.patch
Patch4:         0005-Update-to-QDox-2.0.patch
Patch5:         0006-Disable-artifactory-publish.patch
Patch6:         0007-Fix-missing-extension-definitions.patch


BuildRequires:  gradle-local
BuildRequires:  javapackages-local
BuildRequires:  java-devel >= 1.8
BuildRequires:  ant
BuildRequires:  antlr-tool
BuildRequires:  ant-antlr
BuildRequires:  aqute-bnd
BuildRequires:  gpars
BuildRequires:  multiverse
BuildRequires:  apache-parent
BuildRequires:  testng
BuildRequires:  jline
BuildRequires:  apache-commons-cli
BuildRequires:  apache-commons-beanutils
BuildRequires:  apache-commons-collections
BuildRequires:  jarjar
BuildRequires:  glassfish-jsp-api
BuildRequires:  glassfish-servlet-api
BuildRequires:  objectweb-asm3
BuildRequires:  bsf
BuildRequires:  apache-ivy
BuildRequires:  jansi
BuildRequires:  junit
BuildRequires:  xstream
BuildRequires:  desktop-file-utils
BuildRequires:  unzip
BuildRequires:  qdox
BuildRequires:  mvn(org.apache.ant:ant-junit)
BuildRequires:  mvn(org.apache.ant:ant-launcher)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(javax.servlet:jsp-api)

Requires:       %{name}-lib = %{version}-%{release}
Requires:       %{name}-ant = %{version}-%{release}
Requires:       %{name}-bsf = %{version}-%{release}
Requires:       %{name}-console = %{version}-%{release}
Requires:       %{name}-docgenerator = %{version}-%{release}
Requires:       %{name}-groovydoc = %{version}-%{release}
Requires:       %{name}-groovysh = %{version}-%{release}
Requires:       %{name}-jmx = %{version}-%{release}
Requires:       %{name}-json = %{version}-%{release}
Requires:       %{name}-jsr223 = %{version}-%{release}
Requires:       %{name}-nio = %{version}-%{release}
Requires:       %{name}-servlet = %{version}-%{release}
Requires:       %{name}-sql = %{version}-%{release}
Requires:       %{name}-swing = %{version}-%{release}
Requires:       %{name}-templates = %{version}-%{release}
Requires:       %{name}-test = %{version}-%{release}
Requires:       %{name}-testng = %{version}-%{release}
Requires:       %{name}-xml = %{version}-%{release}

# optional in pom.xml, but present in upstream binary tarball
Requires:       xpp3-minimal

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Groovy is an agile and dynamic language for the Java Virtual Machine,
built upon Java with features inspired by languages like Python, Ruby and
Smalltalk.  It seamlessly integrates with all existing Java objects and
libraries and compiles straight to Java bytecode so you can use it anywhere
you can use Java.


%package lib
Summary:        Groovy JAR artifact
Obsoletes:      %{name}-javadoc < 2

%description lib
This package contains Groovy JAR artifact.

%package ant
Summary:        ant module for %{name}

%description ant
ant module for %{name}.

%package bsf
Summary:        bsf module for %{name}

%description bsf
bsf module for %{name}.

%package console
Summary:        console module for %{name}

%description console
console module for %{name}.

%package docgenerator
Summary:        docgenerator module for %{name}

%description docgenerator
docgenerator module for %{name}.

%package groovydoc
Summary:        groovydoc module for %{name}

%description groovydoc
groovydoc module for %{name}.

%package groovysh
Summary:        groovysh module for %{name}

%description groovysh
groovysh module for %{name}.

%package jmx
Summary:        jmx module for %{name}

%description jmx
jmx module for %{name}.

%package json
Summary:        json module for %{name}

%description json
json module for %{name}.

%package jsr223
Summary:        jsr223 module for %{name}

%description jsr223
jsr223 module for %{name}.

%package nio
Summary:        nio module for %{name}

%description nio
nio module for %{name}.

%package servlet
Summary:        servlet module for %{name}

%description servlet
servlet module for %{name}.

%package sql
Summary:        sql module for %{name}

%description sql
sql module for %{name}.

%package swing
Summary:        swing module for %{name}

%description swing
swing module for %{name}.

%package templates
Summary:        templates module for %{name}

%description templates
templates module for %{name}.

%package test
Summary:        test module for %{name}

%description test
test module for %{name}.

%package testng
Summary:        testng module for %{name}

%description testng
testng module for %{name}.

%package xml
Summary:        xml module for %{name}

%description xml
xml module for %{name}.


%prep
%setup -q
cp %{SOURCE4} %{SOURCE5} .
# Remove bundled JARs and classes
find \( -name *.jar -o -name *.class \) -delete

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

%mvn_package ':groovy::indy:'
%mvn_package ':groovy-{*}' @1
%mvn_package ':groovy-{*}::indy:' @1

%build
%gradle_build -f -G jarAll -- -x groovydoc -x javadoc -Pindy=true
%gradle_build -f -G distBin -- -x groovydoc -x javadoc -x jarAllWithIndy

%install
%mvn_artifact %{SOURCE6} target/libs/groovy-all-%{version}-indy.jar
%mvn_install

unzip -o target/distributions/apache-groovy-binary-%{version}.zip
rm -rf groovy-%{version}/{*LICENSE.txt,NOTICE.txt,bin/*.bat,META-INF}
install -d -m 755 %{buildroot}%{_datadir}/
cp -a groovy-%{version} %{buildroot}%{_datadir}/%{name}

for mod in groovy groovy-ant groovy-bsf groovy-console groovy-docgenerator \
           groovy-groovydoc groovy-groovysh groovy-jmx groovy-json \
           groovy-jsr223 groovy-nio groovy-servlet groovy-sql groovy-swing \
           groovy-templates groovy-test groovy-testng groovy-xml; do
    ln -sf ../../java/%{name}/$mod.jar %{buildroot}%{_datadir}/%{name}/lib/$mod-%{version}.jar
    ln -sf ../../java/%{name}/$mod-indy.jar %{buildroot}%{_datadir}/%{name}/indy/$mod-%{version}.jar
done

ln -sf ../../java/%{name}/groovy-all.jar %{buildroot}%{_datadir}/%{name}/embeddable/groovy-all-%{version}.jar
ln -sf ../../java/%{name}/groovy-all.jar %{buildroot}%{_datadir}/%{name}/embeddable/groovy-all-%{version}-indy.jar

find %{buildroot}%{_datadir}/%{name}/lib/ ! -name "groovy*" -type f -print -delete
xmvn-subst %{buildroot}%{_datadir}/%{name}/

# $GROOVY_HOME/lib probably contains much more JARs (optional deps?) than is actually needed.
# These extra JARs can cause problems, e.g. rhbz#1184269.
# From that reason, let's symlink needed JARs manually for now.
ln -sf `build-classpath ant/ant` %{buildroot}%{_datadir}/%{name}/lib/ant.jar
ln -sf `build-classpath ant/ant-antlr` %{buildroot}%{_datadir}/%{name}/lib/ant-antlr.jar
ln -sf `build-classpath ant/ant-junit` %{buildroot}%{_datadir}/%{name}/lib/ant-junit.jar
ln -sf `build-classpath ant/ant-launcher` %{buildroot}%{_datadir}/%{name}/lib/ant-launcher.jar
ln -sf `build-classpath bsf` %{buildroot}%{_datadir}/%{name}/lib/bsf.jar
ln -sf `build-classpath commons-cli` %{buildroot}%{_datadir}/%{name}/lib/commons-cli.jar
ln -sf `build-classpath commons-logging` %{buildroot}%{_datadir}/%{name}/lib/commons-logging.jar
ln -sf `build-classpath gpars/gpars` %{buildroot}%{_datadir}/%{name}/lib/gpars.jar
ln -sf `build-classpath hamcrest/core` %{buildroot}%{_datadir}/%{name}/lib/hamcrest-core.jar
ln -sf `build-classpath apache-ivy/ivy` %{buildroot}%{_datadir}/%{name}/lib/ivy.jar
ln -sf `build-classpath jansi/jansi` %{buildroot}%{_datadir}/%{name}/lib/jansi.jar
ln -sf `build-classpath beust-jcommander` %{buildroot}%{_datadir}/%{name}/lib/jcommander.jar
ln -sf `build-classpath jline/jline` %{buildroot}%{_datadir}/%{name}/lib/jline.jar
ln -sf `build-classpath glassfish-jsp-api` %{buildroot}%{_datadir}/%{name}/lib/jsp-api.jar
# part of JDK7+ (?)
#ln -sf `build-classpath jsr166y` %{buildroot}%{_datadir}/%{name}/lib/jsr166y.jar
ln -sf `build-classpath junit` %{buildroot}%{_datadir}/%{name}/lib/junit.jar
ln -sf `build-classpath multiverse/multiverse-core` %{buildroot}%{_datadir}/%{name}/lib/multiverse-core.jar
# Android support, removed by patch
#ln -sf `build-classpath openbeans` %{buildroot}%{_datadir}/%{name}/lib/openbeans.jar
ln -sf `build-classpath qdox` %{buildroot}%{_datadir}/%{name}/lib/qdox.jar
ln -sf `build-classpath glassfish-servlet-api` %{buildroot}%{_datadir}/%{name}/lib/servlet-api.jar
ln -sf `build-classpath testng` %{buildroot}%{_datadir}/%{name}/lib/testng.jar
ln -sf `build-classpath xpp3-minimal` %{buildroot}%{_datadir}/%{name}/lib/xpp3-minimal.jar
ln -sf `build-classpath xstream/xstream` %{buildroot}%{_datadir}/%{name}/lib/xstream.jar
# upstream bundles extra166y in gpars
ln -sf `build-classpath extra166y` %{buildroot}%{_datadir}/%{name}/lib/extra166y.jar

# Startup scripts
install -d -m 755 %{buildroot}%{_bindir}/
for cmd in grape groovy groovyc groovyConsole groovydoc groovysh java2groovy; do
    class=$(awk '/^startGroovy/{print$2}' %{buildroot}%{_datadir}/%{name}/bin/$cmd)
    install -p -m 755 %{SOURCE1} %{buildroot}%{_bindir}/$cmd
    sed -i "s/@CLASS@/$class/" %{buildroot}%{_bindir}/$cmd
    ln -sf %{_bindir}/$cmd %{buildroot}%{_datadir}/%{name}/bin/$cmd
done

# Configuration
install -d -m 755 %{buildroot}%{_sysconfdir}/
mv %{buildroot}%{_datadir}/%{name}/conf/groovy-starter.conf %{buildroot}%{_sysconfdir}/
ln -s %{_sysconfdir}/groovy-starter.conf %{buildroot}%{_datadir}/%{name}/conf/

# Desktop icon
install -d %{buildroot}%{_datadir}/pixmaps
install -d %{buildroot}%{_datadir}/applications
install -p -m644 subprojects/groovy-console/src/main/resources/groovy/ui/ConsoleIcon.png \
        %{buildroot}%{_datadir}/pixmaps/groovy.png
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
        %{SOURCE3}

# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
cat > $RPM_BUILD_ROOT%{_datadir}/appdata/%{name}.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Ryan Lerch <rlerch@redhat.com> -->
<!--
SentUpstream: No public bugtracker
-->
<application>
  <id type="desktop">groovy.desktop</id>
  <metadata_license>CC0-1.0</metadata_license>
  <summary>Interactive console for the Groovy programming language</summary>
  <description>
    <p>
      Groovy is a dynamic programming language that is commonly used as a
      scripting language for the Java platform. This application provides an
      interactive console for evaluating scripts in the Groovy language.
    </p>
  </description>
  <url type="homepage">http://groovy-lang.org/</url>
  <screenshots>
    <screenshot type="default">https://raw.githubusercontent.com/hughsie/fedora-appstream/master/screenshots-extra/groovy/a.png</screenshot>
  </screenshots>
  <!-- FIXME: change this to an upstream email address for spec updates
  <updatecontact>someone_who_cares@upstream_project.org</updatecontact>
  -->
</application>
EOF

%files
%{_datadir}/%{name}
%{_bindir}/*
%{_datadir}/pixmaps/*
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/applications/*
%config(noreplace) %{_sysconfdir}/*

%files lib -f .mfiles -f .mfiles-all
%doc LICENSE NOTICE README.adoc
%files ant -f .mfiles-ant
%files bsf -f .mfiles-bsf
%files console -f .mfiles-console
%files docgenerator -f .mfiles-docgenerator
%files groovydoc -f .mfiles-groovydoc
%files groovysh -f .mfiles-groovysh
%files jmx -f .mfiles-jmx
%files json -f .mfiles-json
%files jsr223 -f .mfiles-jsr223
%files nio -f .mfiles-nio
%files servlet -f .mfiles-servlet
%files sql -f .mfiles-sql
%files swing -f .mfiles-swing
%files templates -f .mfiles-templates
%files test -f .mfiles-test
%files testng -f .mfiles-testng
%files xml -f .mfiles-xml


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13115 |21mr|grpc-1.30.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major                   10
%define libaddress_sorting      %mklibname address_sorting %{major}
%define libgpr                  %mklibname gpr %{major}
%define libgrpc_csharp_ext      %mklibname grpc_csharp_ext %{major}
%define libgrpc_unsecure        %mklibname grpc_unsecure %{major}
%define libgrpc                 %mklibname grpc %{major}
%define libupb                  %mklibname upb %{major}

%define majorpp                 1
%define libgrpcpp_alts          %mklibname grpc++_alts %{majorpp}
%define libgrpcpp_error_details %mklibname grpc++_error_details %{majorpp}
%define libgrpcpp_reflection    %mklibname grpc++_reflection %{majorpp}
%define libgrpcpp_unsecure      %mklibname grpc++_unsecure %{majorpp}
%define libgrpcpp               %mklibname grpc++ %{majorpp}
%define libgrpcpp_channelz      %mklibname grpcpp_channelz %{majorpp}

%define devname                 %mklibname %{name} -d

# Third_party abseil-cpp
%define absl_commit             df3ea785d8c30a9503321a3d35ee7d35808f190d
# Third_party benchmark
%define bench_commit            090faecb454fbd6e6e17a75ef8146acb037118d4

Name:           grpc
Version:        1.30.2
Release:        1
Summary:        Modern, open source, high-performance remote procedure call (RPC) framework
License:        ASL 2.0
Group:          System/Libraries
URL:            https://www.grpc.io
Source0:        https://github.com/grpc/grpc/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:        https://github.com/abseil/abseil-cpp/archive/%{absl_commit}.tar.gz
Source2:        https://github.com/google/benchmark/archive/%{bench_commit}.tar.gz
Source3:	benchmark-gcc11.patch
Source4:        e2k-cycleclock.patch
Patch0:         0001-enforce-system-crypto-policies.patch
Patch4:         0004-use-shell-loop-instead-makefile-function.patch
Patch10:        grpc-1.30.0-linking.patch
BuildRequires:  gcc-c++
BuildRequires:  protobuf-compiler
BuildRequires:  gperftools-devel
BuildRequires:  pkgconfig(benchmark)
BuildRequires:  pkgconfig(protobuf) >= 3.12.0
BuildRequires:  pkgconfig(openssl) > 1.1
BuildRequires:  pkgconfig(libcares)
BuildRequires:  pkgconfig(gflags)
BuildRequires:  pkgconfig(gtest)
BuildRequires:  pkgconfig(zlib)

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-cython

Requires:       %{libaddress_sorting} = %{version}-%{release}
Requires:       %{libgpr} = %{version}-%{release}
Requires:       %{libgrpc_csharp_ext} = %{version}-%{release}
Requires:       %{libgrpc_unsecure} = %{version}-%{release}
Requires:       %{libgrpc} = %{version}-%{release}
Requires:       %{libgrpcpp_error_details} = %{version}-%{release}
Requires:       %{libgrpcpp_reflection} = %{version}-%{release}
Requires:       %{libgrpcpp_unsecure} = %{version}-%{release}
Requires:       %{libgrpcpp} = %{version}-%{release}
Requires:       %{libgrpcpp_channelz} = %{version}-%{release}

%description
gRPC is a modern open source high performance RPC framework that can run in any
environment. It can efficiently connect services in and across data centers
with pluggable support for load balancing, tracing, health checking and
authentication. It is also applicable in last mile of distributed computing to
connect devices, mobile applications and browsers to backend services.

The main usage scenarios:

* Efficiently connecting polyglot services in microservices style architecture
* Connecting mobile devices, browser clients to backend services
* Generating efficient client libraries

Core Features that make it awesome:

* Idiomatic client libraries in 10 languages
* Highly efficient on wire and with a simple service definition framework
* Bi-directional streaming with http/2 based transport
* Pluggable auth, tracing, load balancing and health checking

#------------------------------------------------

%package        plugins
Summary:        gRPC protocol buffers compiler plugins
Group:          System/Libraries
Requires:       %{name} = %{version}-%{release}
Requires:       protobuf-compiler

%description    plugins
Plugins to the protocol buffers compiler to generate gRPC sources.

#------------------------------------------------

%package        cli
Summary:        gRPC protocol buffers cli
Group:          System/Libraries
Requires:       %{name} = %{version}-%{release}

%description    cli
Plugins to the protocol buffers compiler to generate gRPC sources.

#------------------------------------------------

%package -n     %{libaddress_sorting}
Summary:        Address Sorting library for gRPC
Group:          System/Libraries

%description -n %{libaddress_sorting}
Address Sorting library for gRPC.

#------------------------------------------------

%package -n     %{libgpr}
Summary:        Gpr library for gRPC
Group:          System/Libraries

%description -n %{libgpr}
Gpr library for gRPC.

#------------------------------------------------

%package -n     %{libgrpc_csharp_ext}
Summary:        gRPC Csharp ext library
Group:          System/Libraries

%description -n %{libgrpc_csharp_ext}
gRPC Csharp ext library.

#------------------------------------------------

%package -n     %{libgrpc_unsecure}
Summary:        gRPC Unsecure library
Group:          System/Libraries

%description -n %{libgrpc_unsecure}
gRPC Unsecure library.

#------------------------------------------------

%package -n     %{libgrpc}
Summary:        Main gRPC library
Group:          System/Libraries

%description -n %{libgrpc}
Main gRPC library.

#------------------------------------------------

%package -n     %{libupb}
Summary:        gRPC Upb library
Group:          System/Libraries

%description -n %{libupb}
gRPC Upb library.

#------------------------------------------------

%package -n     %{libgrpcpp_alts}
Summary:        gRPC++ ALTS library
Group:          System/Libraries

%description -n %{libgrpcpp_alts}
gRPC++ ALTS library.

#------------------------------------------------

%package -n     %{libgrpcpp_error_details}
Summary:        gRPC++ Error Details library
Group:          System/Libraries

%description -n %{libgrpcpp_error_details}
gRPC++ Error Details library.

#------------------------------------------------

%package -n     %{libgrpcpp_reflection}
Summary:        gRPC++ Reflection library
Group:          System/Libraries

%description -n %{libgrpcpp_reflection}
gRPC++ Reflection library.

#------------------------------------------------

%package -n     %{libgrpcpp_unsecure}
Summary:        gRPC++ Unsecure library
Group:          System/Libraries

%description -n %{libgrpcpp_unsecure}
gRPC++ Unsecure library.

#------------------------------------------------

%package -n     %{libgrpcpp}
Summary:        Main gRPC++ library
Group:          System/Libraries

%description -n %{libgrpcpp}
Main gRPC++ library.

#------------------------------------------------

%package -n     %{libgrpcpp_channelz}
Summary:        gRPC++ Channelz library
Group:          System/Libraries

%description -n %{libgrpcpp_channelz}
gRPC++ Channelz library.

#------------------------------------------------

%package -n     %{devname}
Summary:        gRPC library development files
Group:          Development/C++
Requires:       %{name}-cli = %{version}-%{release}
Requires:       %{name}-plugins = %{version}-%{release}
Requires:       %{libaddress_sorting} = %{version}-%{release}
Requires:       %{libgpr} = %{version}-%{release}
Requires:       %{libgrpc_csharp_ext} = %{version}-%{release}
Requires:       %{libgrpc_unsecure} = %{version}-%{release}
Requires:       %{libgrpc} = %{version}-%{release}
Requires:       %{libupb} = %{version}-%{release}
Requires:       %{libgrpcpp_error_details} = %{version}-%{release}
Requires:       %{libgrpcpp_reflection} = %{version}-%{release}
Requires:       %{libgrpcpp_unsecure} = %{version}-%{release}
Requires:       %{libgrpcpp} = %{version}-%{release}
Requires:       %{libgrpcpp_channelz} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{devname}
Development headers and files for gRPC libraries.

#------------------------------------------------

%package -n     python3-grpcio
Summary:        Python3 language bindings for grpc, remote procedure call (RPC) framework
Group:          Development/Python
Requires:       %{name} = %{version}-%{release}
%{?python_provide:%python_provide python3-grpcio}

%description -n python3-grpcio
Python3 bindings for gRPC library.

#------------------------------------------------

%prep
%setup -q -a1 -a2
%autopatch -p1

sed -i 's:^prefix ?= .*:prefix ?= %{_prefix}:' Makefile
sed -i 's:$(prefix)/lib:$(prefix)/%{_lib}:' Makefile
sed -i 's:^GTEST_LIB =.*::' Makefile

# prepare abseil-cpp Third_party
mv abseil-cpp-%{absl_commit}/* third_party/abseil-cpp/
rm -rf abseil-cpp-%{absl_commit}/
# prepare benchmark Third_party
mv benchmark-%{bench_commit}/* third_party/benchmark/
rm -rf benchmark-%{bench_commit}/

patch -p1 < %{S:3}
patch -p1 < %{S:4}

%build
%make_build shared plugins

# build python module
export GRPC_PYTHON_BUILD_WITH_CYTHON=True
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=True
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=True
export GRPC_PYTHON_BUILD_SYSTEM_CARES=True
export CFLAGS="%{optflags}"
%py3_build

%install
%make_install prefix="%{buildroot}%{_prefix}"
%make_install install-grpc-cli prefix="%{buildroot}%{_prefix}"

find %{buildroot} -name '*.a' -delete

%py3_install

%files
%doc README.md
%license LICENSE
%{_datadir}/grpc/

%files cli
%doc README.md
%license LICENSE
%{_bindir}/grpc_cli

%files plugins
%doc README.md
%license LICENSE
%{_bindir}/grpc_*_plugin

%files -n %{libaddress_sorting}
%{_libdir}/libaddress_sorting.so.%{major}{,.*}

%files -n %{libgpr}
%{_libdir}/libgpr.so.%{major}{,.*}

%files -n %{libgrpc_csharp_ext}
%{_libdir}/libgrpc_csharp_ext.so.%{major}{,.*}

%files -n %{libgrpc_unsecure}
%{_libdir}/libgrpc_unsecure.so.%{major}{,.*}

%files -n %{libgrpc}
%{_libdir}/libgrpc.so.%{major}{,.*}

%files -n %{libupb}
%{_libdir}/libupb.so.%{major}{,.*}

%files -n %{libgrpcpp_alts}
%{_libdir}/libgrpc++_alts.so.%{majorpp}{,.*}

%files -n %{libgrpcpp_error_details}
%{_libdir}/libgrpc++_error_details.so.%{majorpp}{,.*}

%files -n %{libgrpcpp_reflection}
%{_libdir}/libgrpc++_reflection.so.%{majorpp}{,.*}

%files -n %{libgrpcpp_unsecure}
%{_libdir}/libgrpc++_unsecure.so.%{majorpp}{,.*}

%files -n %{libgrpcpp}
%{_libdir}/libgrpc++.so.%{majorpp}{,.*}

%files -n %{libgrpcpp_channelz}
%{_libdir}/libgrpcpp_channelz.so.%{majorpp}{,.*}

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/grpc/
%{_includedir}/grpc++/
%{_includedir}/grpcpp/

%files -n python3-grpcio
%license LICENSE
%{python3_sitearch}/grpc/
%{python3_sitearch}/grpcio-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13116 |21mr|grub2-2.06-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libdir32 %{_exec_prefix}/lib
%ifarch %{ix86} %{x86_64}
%define platform pc
%endif

%ifarch armv7hnl
%define platform uboot
%endif

%ifarch aarch64 riscv64
%define platform efi
%endif

%global efi %{ix86} %{x86_64} aarch64 %{riscv}

%define unifont unifont.pcf.gz
%define unifont_version 13.0.06

# Do not build HTML and PDF documentation by default.
%bcond_with	doc
%bcond_with	pdf

%bcond_with git
%if %{with git}
# specify in the commit abf.yml
# what version do you download by %%commit
%global commit c0e647eb0e2bd09315612446cb4d90f7f75cb44c
%global shortcommit %(echo %{commit} | head -c7)
%global release 0.git%{shortcommit}.1
%else
%global release 22
%endif

# autoreconf is run
%define _disable_rebuild_configure 1

Summary:	GRUB is a boot loader
Name:		grub2
Version:	2.06
Release:	%{release}
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://www.gnu.org/software/grub/
# Git with patches: https://github.com/mikhailnov/grub2/tree/rosa-v2.04
Source0:	http://git.savannah.gnu.org/cgit/grub.git/snapshot/grub-%{!?with_git:%{version}}%{?with_git:%{shortcommit}}.tar.gz
Source1:	http://unifoundry.com/pub/unifont/unifont-%{unifont_version}/font-builds/unifont-%{unifont_version}.pcf.gz
Source2:	grub.default
Source3:	https://github.com/rhboot/gnulib/archive/refs/tags/fixes.tar.gz?/gnulib-fixes.tar.gz
# Translated by "Victor Ryzhikh"
Source7:	grub2_po.tar.gz
Source9:	update-grub2
Source11:	grub2.rpmlintrc
# grub2-cfg-mod is used by XFdrake and nvidia-current drivers to add or
# remove 'nomodeset' and other boot options as needed.
Source14:	grub2-cfg-mod
Source15:	no-redhat-hardened-cc1.patch
Source16:	fix_gettext_string.patch
# translate additional strings
Source101:	ru.po
Source102:	it.po
Source103:	fr.po
Source104:	de.po
Source105:	es.po
Source106:	pt.po

# Patches from RHEL, Fedora and Ubuntu
Patch501:	501-Don-t-say-GNU-Linux-in-generated-menus.patch
# fedora
Patch502:	502-Add-support-for-Linux-EFI-stub-loading.patch
Patch503:	0007-Add-secureboot-support-on-efi-chainloader.patch
Patch521:	521-Make-any-of-the-loaders-that-link-in-efi-mode-honor-.patch
Patch522:	522-Add-support-for-UEFI-operating-systems-returned-by-o.patch
# Part of "Load arm with SB enabled" which affects x86 as well and is needed
# for subsequent patches.
Patch560:	560-Don-t-write-messages-to-the-screen.patch
Patch561:	561-Don-t-print-GNU-GRUB-header.patch
Patch562:	562-Don-t-add-to-highlighted-row.patch
Patch563:	563-Message-string-cleanups.patch
Patch564:	564-Fix-border-spacing-now-that-we-aren-t-displaying-it.patch
Patch565:	565-Use-the-correct-indentation-for-the-term-help-text.patch
Patch566:	566-Indent-menu-entries.patch
Patch567:	567-Fix-margins.patch
Patch568:	568-Use-2-instead-of-1-for-our-right-hand-margin-so-line.patch
Patch569:	569-Don-t-draw-a-border-around-the-menu.patch
Patch570:	570-Use-the-standard-margin-for-the-timeout-string.patch
# This patch:
# - introduces a new tool grub2-rpm-sort which receives list of kernels to stdin,
#   sorts it according to RPM's vercmp and prints a sorted list to stdout
# - make grub2-mkconfig use it
# I (mikhailnov) would not say that this is really useful, but it seems to be
# not useless, and also it maybe a useful utility outside of grub.
Patch574:	0057-Use-Distribution-Package-Sort-for-grub2-mkconfig-112.patch
Patch575:	0221-fix-build-with-rpm-4.16.patch
# Support GRUB2_PASSWORD= directive, used by Anaconda installer
# Patch grub2-Adapt-grub-set-password-for-ROSA.patch fixes it
Patch060:	0060-Add-friendly-grub2-password-config-tool-985962.patch
# ROSA patch on top of Patch060
Patch061:	0061-Translate-grub2-set-password.patch

# Patches from Virtuozzo/VZLinux (some are reworked and updated variants
# of the patches used in ROSA before)
Patch1002:	vl-1002-gfx-terminal-background.patch
Patch1003:	vl-1003-gfx-cut-long-titles-using-ellipsis.patch
Patch1004:	vl-1004-Support-showing-UEFI-logo-when-booting-in-UEFI.patch
# ROSA-specific patches
Patch2001:	grub2-read-cfg.patch
Patch2003:	grub2-improved-boot-menu.patch
Patch2004:	grub2-30_os-prober-loading-messages.patch
Patch2005:	grub2-Install-signed-images-if-UEFI-Secure-Boot-is-enabled.patch
Patch2006:	grub2-30_os-prober-common-commands.patch
Patch2007:	grub2-support-grub.cfg-links.patch
Patch2008:	grub2-10_linux_hibernate_fix.patch
Patch2009:	grub2-make-sure-configure-finds-DejaVu-fonts.patch
Patch2010:	grub2-Use-full-OS-name.patch
Patch2011:	grub2-resume-ignore-zram.patch
Patch2012:	grub2-translate-theme-label-strings.patch
Patch2013:	grub-2.02-fuse3.patch
# Adapting patch 0060 from Fedora
Patch2014:	grub2-Adapt-grub-set-password-for-ROSA.patch
# GRUB_PASSWORD_PROTECT_ONLY_EDITING=true in /etc/default/grub
Patch2015:	grub2-Add-option-to-password-protect-only-editing-of-entri.patch
Patch2016:	0104-Rework-how-the-fdt-command-builds.patch
Patch2017:	0113-Attempt-to-fix-up-all-the-places-Wsign-compare-error.patch
Patch2018:	0133-Use-git-to-apply-gnulib-patches.patch
Patch2019:	os-prober.patch
# riscv
Patch2020:     0001-Add-riscv64-to-150-patch.patch
# From Fedora (rediffed on top of previous patches)
Patch3001:	0041-macos-just-build-chainloader-entries-don-t-try-any-x.patch
# ROSA patch
Patch3002:	0001-grub-install-fix-creating-mach_kernel-on-x86-mac.patch
Patch3003:	CVE-2021-3981.patch
# picked from upstream for compatibility with e2fsprogs 1.47.0
# "The mke2fs program now enables the metadata_csum_seed and orphan_file features by default"
# https://git.savannah.gnu.org/cgit/grub.git/log/grub-core/fs/ext2.c
Patch3004:	3004-fs-ext2-Ignore-checksum-seed-incompat-feature.patch
Patch3005:	3005-fs-ext2-Ignore-the-large_dir-incompat-feature.patch
### 
Patch3006:	0050-Add-grub_efi_allocate_pool-and-grub_efi_free_pool-wr.patch
Patch3007:	0051-Use-grub_efi_.-memory-helpers-where-reasonable.patch
Patch3008:	0052-Add-PRIxGRUB_EFI_STATUS-and-use-it.patch
Patch3009:	0213-grub-core-loader-efi-chainloader.c-do-not-validate-c.patch
Patch3010:	0220-loader-efi-chainloader-grub_load_and_start_image-doe.patch
Patch3011:	0221-loader-efi-chainloader-simplify-the-loader-state.patch
Patch3012:      0032-commands-boot-Add-API-to-pass-context-to-loader.patch
# CVE-2022-28736
Patch3013:      0223-loader-efi-chainloader-Use-grub_loader_set_ex.patch
Patch3014:      0034-kern-efi-sb-Reject-non-kernel-files-in-the-shim_lock.patch
# CVE-2022-28735
Patch3015:      0035-kern-file-Do-not-leak-device_name-on-error-in-grub_f.patch
# CVE-2021-3695
# CVE-2021-3696
# CVE-2021-3697
Patch3016:      0001-video-readers-png-Drop-greyscale-support-to-fix-heap.patch
Patch3017:      0002-video-readers-png-Avoid-heap-OOB-R-W-inserting-huff-.patch
Patch3018:      0003-video-readers-png-Sanity-check-some-huffman-codes.patch
Patch3019:	0004-video-readers-jpeg-Abort-sooner-if-a-read-operation-.patch
Patch3020:      0005-video-readers-jpeg-Do-not-reallocate-a-given-huff-ta.patch
Patch3021:      0006-video-readers-jpeg-Refuse-to-handle-multiple-start-o.patch
Patch3022:	0007-video-readers-jpeg-Block-int-underflow-wild-pointer-.patch
# CVE-2022-28733
Patch3023:      0009-net-ip-Do-IP-fragment-maths-safely.patch
# CVE-2022-28734
Patch3024:	0016-net-http-Fix-OOB-write-for-split-http-headers.patch
Patch3025:      0017-net-http-Error-out-on-headers-with-LF-without-CR.patch
# fix CVE-2023-4692 CVE-2023-4693
Patch3026:	fs-ntfs-Fix-an-OOB-write-when-parsing-the-ATTRIBUTE_LIST-.patch
Patch3027:	fs-ntfs-Fix-an-OOB-read-when-reading-data-from-the-reside.patch
Patch3028:	fs-ntfs-Fix-an-OOB-read-when-parsing-directory-entries-fr.patch
Patch3029:	fs-ntfs-Fix-an-OOB-read-when-parsing-bitmaps-for-index-at.patch
Patch3030:	fs-ntfs-Fix-an-OOB-read-when-parsing-a-volume-label.patch
Patch3031:	fs-ntfs-Make-code-more-readable.patch
Patch3032:	riscv-handle-r-riscv-call-plt-reloc.patch
BuildRequires:  intltool
BuildRequires:	autogen
BuildRequires:	automake
BuildRequires:	gettext-devel
BuildRequires:	/usr/bin/git
BuildRequires:	bison
BuildRequires:	binutils
BuildRequires:	flex
# DejaVu fonts can be used by some themes.
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	help2man
BuildRequires:	texinfo
%if %{with pdf}
BuildRequires:	texlive-collection-texinfo
BuildRequires:	texlive-epsf
BuildRequires:	texlive-latex
%endif
BuildRequires:	glibc-static-devel
BuildRequires:	liblzo-devel
BuildRequires:	bzip2-devel
# For grub2-rpm-sort, added by patch
BuildRequires:	rpm-devel
BuildRequires:	pkgconfig(devmapper)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(ncurses)
%if %{mdvver} >= 201910
BuildRequires:	pkgconfig(fuse3)
%else
BuildRequires:	pkgconfig(fuse)
%endif

Requires:	grub2-theme
Requires:	xorriso
# os-prober is used by update-grub2 and grub2*-mkconfig and is therefore
# needed both at post install stage and generally.
Requires(post):	os-prober >= 1.74
Requires:	os-prober
Requires:	e2fsprogs >= 1.42.13
# Some of the scripts from /etc/grub.d/ may use perl.
Requires:	perl
Recommends:	grub2-theme-rosa
Requires:	%{name}-rpm-sort = %{EVRD}

Provides:	bootloader
Provides:	grub2bootloader

%description
GRUB is a highly configurable and customizable boot loader with modular
architecture.  It supports a rich variety of kernel formats, file systems,
computer architectures and hardware devices.

%files -f grub.lang
%ifnarch aarch64 %{riscv}
#Files here are needed for install. Moved from efi package
%{libdir32}/grub/%{_arch}-efi/
%endif
%{libdir32}/grub/*-%{platform}
%{_sbindir}/update-grub2
%{_bindir}/%{name}-editenv
%{_bindir}/%{name}-file
%{_bindir}/%{name}-fstest
%{_bindir}/%{name}-glue-efi
%{_bindir}/%{name}-kbdcomp
%{_bindir}/%{name}-menulst2cfg
%{_bindir}/%{name}-mkfont
%{_bindir}/%{name}-mkimage
%{_bindir}/%{name}-mklayout
%{_bindir}/%{name}-mknetdir
%{_bindir}/%{name}-mkpasswd-pbkdf2
%{_bindir}/%{name}-mkrelpath
%{_bindir}/%{name}-mkrescue
%{_bindir}/%{name}-mkstandalone
%{_bindir}/%{name}-mount
%{_bindir}/%{name}-render-label
%{_bindir}/%{name}-script-check
%{_bindir}/%{name}-syslinux2cfg
%{_sbindir}/%{name}-bios-setup
%{_sbindir}/%{name}-install
# compat symlink
%{_sbindir}/%{name}-efi-install
%{_sbindir}/%{name}-macbless
%{_sbindir}/%{name}-mkconfig
# compat symlink
%{_sbindir}/%{name}-efi-mkconfig
%{_sbindir}/%{name}-ofpathname
%{_sbindir}/%{name}-probe
%{_sbindir}/%{name}-reboot
%{_sbindir}/%{name}-set-default
%{_sbindir}/%{name}-set-password
%{_sbindir}/%{name}-sparc64-setup
%{_sbindir}/%{name}-cfg-mod
%{_datadir}/grub
%attr(0700,root,root) %dir %{_sysconfdir}/grub.d
%{_sysconfdir}/grub.d/README
%config %{_sysconfdir}/grub.d/??_*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/default/grub
%{_sysconfdir}/bash_completion.d/grub
%dir /boot/%{name}
%dir /boot/%{name}/locale
%ghost %config(noreplace) /boot/%{name}/grub.cfg
%if %{with doc}
%doc %{_docdir}/%{name}
%endif
%{_infodir}/grub.info*
%{_infodir}/grub-dev.info*
%{_mandir}/*/%{name}-*
%exclude %{_mandir}/*/*rpm-sort*
%dir /boot/%{name}/fonts
/boot/%{name}/fonts/unicode.pf2

%transfiletriggerin -- /boot
if grep -qE 'vmlinuz-|vmlinux-' ; then
  %{_sbindir}/update-grub2
fi

%transfiletriggerpostun -- /lib/modules
%{_sbindir}/update-grub2


%transfiletriggerin -- /etc/os-release /etc/branding-configs /etc/grub.d /usr/sbin/os-prober
# 1) grub menu entries contain name of OS from /etc/os-release
# /etc/os-release is a symlink to /etc/branding-configs/... in modern branding-configs* packages,
# so it is not changed when branding is updated, watch an additional directory
# 2) Packages like pcmemtest contain additional Grub menu entries in /etc/grub.d/,
# this will also trigger update-grub2 when installing or updating grub2 itself.
# 3) Trigger when os-prober is updated because other OSes may be detected differently.
%{_sbindir}/update-grub2

#-----------------------------------------------------------------------

%package rpm-sort
Summary:	Utility to sort stdin by RPM vercmp
Group:		System/Base
Provides:	rpm-sort = %{EVRD}
# file moved
Conflicts:	grub2 < 2.04-14

%description rpm-sort
Sort a list of strings in RPM version sort order

%files rpm-sort
%{_bindir}/rpm-sort
# symlink to rpm-sort
%{_sbindir}/%{name}-rpm-sort
# TODO: fix man section
%{_mandir}/man8/*rpm-sort*

#-----------------------------------------------------------------------

%ifarch %{efi}
%package efi
Summary:	GRUB for EFI systems
Group:		System/Kernel and hardware

# Even on UEFI, we need the common grub tools, scripts and /boot/grub2/grub.cfg.
Requires:	%{name} = %{EVRD}
Requires(post):	%{name} = %{EVRD}

# efibootmgr is needed to install the bootloader on UEFI systems.
Requires(post):	efibootmgr >= 16
Requires:	efibootmgr

# Properly signed shim is needed for ROSA to work if SecureBoot is enabled.
# Paths changed in shim, grub2-Install-signed-images-if-UEFI-Secure-Boot-is-enabled.patch was adjusted
Requires:	shim >= 15-2

# The signed grub binaries are in a separate project, grub2-efi-signed,
# for now. It can be beneficial to keep it separate, for example, to be able
# to fix the GRUB tools or the scripts from /etc/grub.d/ and update
# grub2-efi RPM without having to sign the EFI images again.
#
# This is why grub2-efi requires version >= some_minimal_version of
# grub2-efi-signed rather than the same EVRD that it has.
#
# [IMPORTANT]
# If you have prepared an update for grub2-efi-signed, please update the
# required version of it below and rebuild grub2 packages too (with an
# increased release number, of course). This will make sure the correct
# signed binaries will be installed when the user tries to update grub2-efi.

# XXX For now shipping not signed EFI binaries
# TODO: ship signed EFI shim and grub
#Requires(post):	%{name}-efi-signed >= 2.02-15
#Requires:	%{name}-efi-signed

%description efi
The GRand Unified Bootloader (GRUB) is a highly configurable and customizable
bootloader with modular architecture.

It support rich variety of kernel formats, file systems, computer
architectures and hardware devices.

This package contains provides tools and settings needed to support EFI
systems but does not install GRUB binaries into /boot/efi/EFI/rosa/. This is
because signed binaries from "grub-efi-signed" package should go there.

This package, in turn, contains unsigned GRUB binaries, in
%{_datadir}/grub2-efi/. If a user wants to use them they need to copy these
images into /boot/efi/EFI/rosa/ manually, sign them if required, etc.

%files efi
#/etc/bash_completion.d/grub-efi
%ifnarch aarch64 %{riscv}
%{libdir32}/grub/%{_arch}-efi/
%endif
#% {_mandir}/*/%{name}-efi-*
%dir %{_datadir}/%{name}-efi
%{_datadir}/%{name}-efi/*.efi

%endif
#-----------------------------------------------------------------------

%prep
%autosetup -S git_am -n grub-%{!?with_git:%{version}}%{?with_git:%{shortcommit}}

%if %{mdvver} < 201910
# back to fuse2
%patch2013 -p1 -R
%endif

%if %rpm5
echo "File triggers are only for rpm4!"
exit 1
%endif

# Make sure GRUB uses the particular font.
# The top build directory is searched for it first by 'configure'.
cp %{SOURCE1} %{unifont}

sed -ri -e 's/-Werror//g' configure.ac
sed -ri -e 's/-Werror //g' grub-core/Makefile.am

echo "build gnulib -------"

tar -xf %{S:3} -C $PWD
mv gnulib-* gnulib
patch -p1 < %{S:15}
./bootstrap

echo "--------------------"

tar -xf %{SOURCE7}
# added line feed "Victor Ryzhikh"
patch -p1 < %{S:16}


for file in %{S:101} %{S:102} %{S:103} %{S:104} %{S:105} %{S:106} ; do
    bfile=$(basename $file)
    msgcat  $file ./po/$bfile  -o ./po/$bfile  --use-first
    gmo_file=$(echo $bfile | sed "s/.po/.gmo/")
    msgfmt ./po/$bfile -o ./po/$gmo_file
done



# remove not needed extra modules
rm -rf grub-extras/915resolution
rm -rf grub-extras/disabled
rm -rf grub-extras/ntldr-img
rm -rf grub-extras/lua

%build
export CONFIGURE_TOP="$PWD"
./autogen.sh

%if "%{platform}" != ""
mkdir -p %{platform}
cp %{unifont} %{platform}
pushd %{platform}
%configure \
	CFLAGS="" \
	TARGET_LDFLAGS=-static \
	--with-platform=%{platform} \
    %ifarch %{x86_64}
	--enable-efiemu \
    %endif
	--program-transform-name=s,grub,%{name}, \
	--libdir=%{libdir32} \
	--libexecdir=%{libdir32} \
	--with-grubdir=grub2 \
	--disable-werror \
	--enable-grub-mkfont \
	--enable-device-mapper \
	--enable-grub-emu-sdl \
	--without-included-regex

%make_build ascii.h widthspec.h
%make_build all

%if %{with doc}
make html
%endif
%if %{with pdf}
make pdf
%endif

popd
%endif

%ifarch %{efi}
mkdir -p efi
cp %{unifont} efi/
pushd efi
%configure \
	CFLAGS="" \
	TARGET_LDFLAGS=-static \
	--with-platform=efi \
	--program-transform-name=s,grub,%{name}, \
	--libdir=%{libdir32} \
	--libexecdir=%{libdir32} \
	--with-grubdir=grub2 \
	--disable-werror \
	--enable-grub-mkfont \
	--enable-device-mapper \
	--enable-grub-emu-sdl \
	--without-included-regex

%make_build ascii.h widthspec.h
%make_build -C grub-core

%if %{with doc}
make html
%endif
%if %{with pdf}
make pdf
%endif

%define grub_modules_default all_video boot btrfs cat gettext chain configfile cryptodisk echo efifwsetup efinet ext2 f2fs fat font gcry_rijndael gcry_rsa gcry_serpent gcry_sha256 gcry_twofish gcry_whirlpool gfxmenu gfxterm gfxterm_background gfxterm_menu gzio halt hfsplus iso9660 jpeg loadenv loopback linux lsefi luks lvm mdraid09 mdraid1x minicmd normal part_apple part_gpt part_msdos password_pbkdf2 probe png reboot regexp search search_fs_file search_fs_uuid search_label serial sleep squash4 syslinuxcfg test tftp video xfs

%ifarch aarch64
%define grubefiarch arm64-efi
%define grub_modules %{grub_modules_default} efi_gop
%endif

%ifarch %{riscv}
%define grubefiarch riscv64-efi
%define grub_modules %{grub_modules_default} efi_gop
%endif

%ifarch %{ix86} %{x86_64}
%define grubefiarch %{_arch}-efi
%define grub_modules multiboot multiboot2 %{grub_modules_default}
%endif

../%{platform}/grub-mkimage -O %{grubefiarch} -p /EFI/rosa -o grub.efi -d grub-core %{grub_modules}
../%{platform}/grub-mkimage -O %{grubefiarch} -p /EFI/BOOT -o grubcd.efi -d grub-core %{grub_modules}

popd
%endif

%install
%ifarch %{efi}
%make_install -C efi/grub-core
install -d %{buildroot}/%{_datadir}/%{name}-efi/
install -m 755 efi/grub.efi %{buildroot}%{_datadir}/%{name}-efi/
install -m 755 efi/grubcd.efi %{buildroot}%{_datadir}/%{name}-efi/

install -d %{buildroot}/%{_infodir}
install -d %{buildroot}/etc/bash_completion.d/

# docs
%if %{with doc}
%make_install -C efi/docs install-html
%endif
%if %{with pdf}
%make_install -C efi/docs install-pdf
%endif
# end docs


# Install ELF files modules and images were created from into
# the shadow root, where debuginfo generator will grab them from
find %{buildroot} -name '*.mod' -o -name '*.img' |
while read MODULE
do
        BASE=$(echo $MODULE |sed -r "s,.*/([^/]*)\.(mod|img),\1,")
        # Symbols from .img files are in .exec files, while .mod
        # modules store symbols in .elf. This is just because we
        # have both boot.img and boot.mod ...
        EXT=$(echo $MODULE |grep -q '.mod' && echo '.elf' || echo '.exec')
        TGT=$(echo $MODULE |sed "s,%{buildroot},.debugroot,")
#        install -m 755 -D $BASE$EXT $TGT
done
%endif

%if "0%{?platform}"
######EFI
%make_install -C %{platform}
%if %{with doc}
%make_install -C %{platform}/docs install-html
mv -f %{buildroot}%{_docdir}/grub %{buildroot}%{_docdir}/%{name}
%endif
%if %{with pdf}
%make_install -C %{platform}/docs install-pdf
%endif
# end platform
%endif

install -d %{buildroot}/boot/%{name}
install -d %{buildroot}/boot/%{name}/locale

# Create the ghost grub.cfg - just to make sure it is not deleted by
# the updates of grub packages.
touch %{buildroot}/boot/%{name}/grub.cfg

# Install ELF files modules and images were created from into
# the shadow root, where debuginfo generator will grab them from
find %{buildroot} -name '*.mod' -o -name '*.img' |
while read MODULE
do
        BASE=$(echo $MODULE |sed -r "s,.*/([^/]*)\.(mod|img),\1,")
        # Symbols from .img files are in .exec files, while .mod
        # modules store symbols in .elf. This is just because we
        # have both boot.img and boot.mod ...
        EXT=$(echo $MODULE |grep -q '.mod' && echo '.elf' || echo '.exec')
        TGT=$(echo $MODULE |sed "s,%{buildroot},.debugroot,")
done
# Defaults
install -m 644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/default/grub

#Add more useful update-grub2 script
install -m 755 -D %{SOURCE9} %{buildroot}%{_sbindir}

install -m 755 %{SOURCE14} %{buildroot}%{_sbindir}/grub2-cfg-mod

# compat symlinks, for draklive-install for e.g.
( cd %{buildroot}%{_sbindir}
  ln -s %{name}-install %{name}-efi-install
  ln -s %{name}-mkconfig %{name}-efi-mkconfig
)

# this utility is very useful for generic usage, no need to be in sbin - out of user $PATH
mkdir -p %{buildroot}%{_bindir}
mv -v %{buildroot}%{_sbindir}/%{name}-rpm-sort %{buildroot}%{_bindir}/rpm-sort
# compat symlinks
( cd %{buildroot}%{_sbindir}
  ln -s ../bin/rpm-sort %{name}-rpm-sort
)
# TODO: fix man section
( cd %{buildroot}%{_mandir}/man8
  mv %{name}-rpm-sort.8 rpm-sort.8
  ln -s rpm-sort.8 %{name}-rpm-sort.8
)
# verify
[ -f "$(realpath %{buildroot}%{_sbindir}/%{name}-rpm-sort)" ]


%find_lang grub

#Copy font to properly place
mkdir -p %{buildroot}/boot/%{name}/fonts/
cp -f %{buildroot}%{_datadir}/grub/unicode.pf2 %{buildroot}/boot/%{name}/fonts/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13117 |21mr|grub2-install-hooks-0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Script for correctly update/install grub2
Name:		grub2-install-hooks
Version:	0.3
Release:	13
License:	GPLv2+
Group:		System/Base
Url:		https://abf.io/import/grub2-install-hooks
Source0:	%{name}
Source1:	anaconda-%{name}.sh
Requires:	grub2
Requires:	coreutils
Requires:	awk
Requires:	findutils
Requires:	util-linux
Buildarch:	noarch
Provides:	gruben-kostylen = %{EVRD}

%description
Script for correctly update/install grub2

%transfiletriggerin -- /usr/lib/grub
%{_sbindir}/%{name} || true

%package -n anaconda-%{name}
Summary: run %{name} with anaconda
Requires:	anaconda-core
Requires:	%{name} = %{EVRD}
Supplements:	( anaconda-core and %{name} )

%description -n anaconda-%{name}
run %{name} with anaconda

%files
%{_sbindir}/%{name}

%files -n anaconda-%{name}
%{_sysconfdir}/anaconda-scripts.d/post-install/anaconda-%{name}.sh

%prep

%build

%install
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}/%{_sysconfdir}/anaconda-scripts.d/post-install

install -m 755  %{SOURCE0}  %{buildroot}/%{_sbindir}/%{name}
install -m 755  %{SOURCE1} %{buildroot}/%{_sysconfdir}/anaconda-scripts.d/post-install/anaconda-%{name}.sh


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13118 |21mr|grub2-theme-breeze-5.24.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname breeze-grub

%define grub_name grub2

Summary:	Breeze theme for grub2
Name:		grub2-theme-breeze
Version:	5.24.6
Release:	1
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Requires(pre):	grub2 >= 2.00-28
#Provides:	grub2-theme
BuildArch:	noarch

%description
This package provides Breeze theme for grub2.

%files
%dir /boot/%{grub_name}/themes/breeze
/boot/%{grub_name}/themes/breeze/*

%post
if [ $1 -eq 1 ] ; then
# Remove all previous theme from config
sed -i '/GRUB_THEME=*/d' %{_sysconfdir}/default/grub
sed -i '/GRUB_BACKGROUND=*/d' %{_sysconfdir}/default/grub
# Remove trailing blank lines from /etc/default/grub
sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' %{_sysconfdir}/default/grub
# Check that /etc/default/grub ends in a linefeed
[ "$(tail -n 1 %{_sysconfdir}/default/grub | wc --lines)" = "1" ] || echo >> %{_sysconfdir}/default/grub
# Add theme
echo "GRUB_THEME=\"/boot/grub2/themes/breeze/theme.txt\"" >> %{_sysconfdir}/default/grub
# Regenerate configure on install or update
%{_sbindir}/update-grub2
fi

%postun
exec > /var/log/%{grub_name}_theme_postun.log 2>&1
# Only if uninstalling theme
if [ $1 -eq 0 ]; then
# Remove theme from config
sed -i '/GRUB_THEME=\/boot\/grub2\/themes\/breeze\/theme.txt/d' %{_sysconfdir}/default/grub
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}/boot/%{grub_name}/themes/breeze
cp -r breeze/* %{buildroot}/boot/%{grub_name}/themes/breeze/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13119 |21mr|grub2-theme-rosa-2.02.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define grub_name grub2

Summary:	ROSA-specific graphical theme for GRUB
Name:		grub2-theme-rosa
Version:	2.02.3
Release:	4
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://www.rosalab.ru
Source0:	https://abf.io/soft/%{name}/archive/%{name}-%{version}.tar.gz

Requires(pre):	grub2 >= 2.02
Requires(post):	rosa-release
Provides:	grub2-theme = %{EVRD}
Provides:	grub2theme = %{EVRD}
Obsoletes:	grub2theme <= 2.00-27

BuildArch:	noarch

%description
This package provides a custom ROSA-specific graphical theme for GRUB.

%files
%dir /boot/%{grub_name}/themes/rosa
/boot/%{grub_name}/themes/rosa/*

%posttrans
if [ $1 -eq 1 ] ; then
# Remove all previous theme from config
sed -i '/GRUB_THEME=*/d' %{_sysconfdir}/default/grub
sed -i '/GRUB_BACKGROUND=*/d' %{_sysconfdir}/default/grub
# Remove trailing blank lines from /etc/default/grub
sed -i -e :a -e '/^\n*$/{$d;N;};/\n$/ba' %{_sysconfdir}/default/grub
# Check that /etc/default/grub ends in a linefeed
[ "$(tail -n 1 %{_sysconfdir}/default/grub | wc --lines)" = "1" ] || echo >> %{_sysconfdir}/default/grub
# Add theme
echo "GRUB_THEME=\"/boot/grub2/themes/rosa/theme.txt\"" >> %{_sysconfdir}/default/grub
echo "GRUB_BACKGROUND=\"/boot/grub2/themes/rosa/terminal_background.png\"" >> %{_sysconfdir}/default/grub
# Regenerate configure on install or update
# Do not fail in chroots etc.
%{_sbindir}/update-grub2 || :
fi

%postun
exec > /var/log/%{grub_name}_theme_postun.log 2>&1
# Only if uninstalling theme
if [ $1 -eq 0 ]; then
# Remove theme from config
sed -i '/GRUB_THEME=\/boot\/grub2\/themes\/rosa\/theme.txt/d' %{_sysconfdir}/default/grub
fi

#---------------------------------------------------------------------------

%prep
%setup -q

%build
# Intentionally empty. The section should be present to make rpmlint happy.

%install
mkdir -p %{buildroot}/boot/%{grub_name}/themes/
tar -xf %{SOURCE0} -C %{buildroot}/boot/%{grub_name}/themes
mv %{buildroot}/boot/%{grub_name}/themes/{%{name}-%{version},rosa}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13120 |21mr|grubby-8.40-47.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# https://src.fedoraproject.org/rpms/grubby/blob/master/f/grubby.spec
# Red Hat patches grubby heavily for some reason
# 42 is the release that was last imported here
%define rh_release 47

Name: grubby
Version: 8.40
Release: %{rh_release}.1
Summary: Command line tool for updating bootloader configs
Group: System/Kernel and hardware
License: GPLv2+
URL: https://github.com/rhinstaller/grubby
Source0: https://github.com/rhboot/grubby/archive/%{version}-1.tar.gz
Source1: grubby-bls
Source2: grubby.in
Source3: installkernel.in
Source4: installkernel-bls
Source5: 95-kernel-hooks.install
Source6: grubby.8
Patch0001: 0001-remove-the-old-crufty-u-boot-support.patch
Patch0002: 0002-Change-return-type-in-getRootSpecifier.patch
Patch0003: 0003-Add-btrfs-subvolume-support-for-grub2.patch
Patch0004: 0004-Add-tests-for-btrfs-support.patch
Patch0005: 0005-Use-system-LDFLAGS.patch
Patch0006: 0006-Honor-sbindir.patch
Patch0007: 0007-Make-installkernel-to-use-kernel-install-scripts-on-.patch
Patch0008: 0008-Add-usr-libexec-rpm-sort.patch
Patch0009: 0009-Improve-man-page-for-info-option.patch
Patch0010: 0010-Fix-GCC-warnings-about-possible-string-truncations-a.patch
Patch0011: 0011-Fix-stringop-overflow-warning.patch
Patch0012: 0012-Fix-maybe-uninitialized-warning.patch
Patch0013: 0013-Fix-build-with-rpm-4.16.patch

BuildRequires: gcc
BuildRequires: pkgconfig
BuildRequires: glib2-devel
BuildRequires: popt-devel 
BuildRequires: blkid-devel
BuildRequires: git-core
BuildRequires: sed
BuildRequires: make
# for make test / getopt:
BuildRequires: util-linux-ng
BuildRequires: rpm-devel
%ifarch aarch64 i686 x86_64 %{power64}
BuildRequires: grub2
Requires: grub2
%endif
#%ifarch s390 s390x
#Requires: s390utils-base
#%endif
Requires: findutils
Requires: util-linux

%description
This package provides a grubby compatibility script that manages
BootLoaderSpec files and is meant to only be used for legacy compatibility
users with existing grubby users.

%files
%{!?_licensedir:%global license %%doc}
%license COPYING
%dir %{_libexecdir}/grubby
%dir %{_libexecdir}/installkernel
%attr(0755,root,root) %{_libexecdir}/grubby/grubby-bls
%attr(0755,root,root) %{_libexecdir}/grubby/rpm-sort
%attr(0755,root,root) %{_sbindir}/grubby
%attr(0755,root,root) %{_libexecdir}/installkernel/installkernel-bls
%attr(0755,root,root) %{_sbindir}/installkernel
%attr(0755,root,root) %{_prefix}/lib/kernel/install.d/95-kernel-hooks.install
%{_mandir}/man8/[gi]*.8*

%post
#if [ "$1" = 2 ]; then
#    arch=$(uname -m)
#    [[ $arch == "s390x" ]] && \
#    zipl-switch-to-blscfg --backup-suffix=.rpmsave &>/dev/null || :
#fi

#--------------------------------------------------------------------------------------------

%package deprecated
Summary:	Legacy command line tool for updating bootloader configs
Conflicts:	%{name} <= 8.40-18
Group: System/Kernel and hardware

%description deprecated
This package provides deprecated, legacy grubby.  This is for temporary
compatibility only.

grubby is a command line tool for updating and displaying information about
the configuration files for the grub, lilo, elilo (ia64), yaboot (powerpc)
and zipl (s390) boot loaders. It is primarily designed to be used from
scripts which install new kernels and need to find information about the
current boot environment.

%files deprecated
%{!?_licensedir:%global license %%doc}
%license COPYING
%dir %{_libexecdir}/grubby
%dir %{_libexecdir}/installkernel
%attr(0755,root,root) %{_libexecdir}/grubby/grubby
%attr(0755,root,root) %{_libexecdir}/installkernel/installkernel
%attr(0755,root,root) %{_sbindir}/grubby
%attr(0755,root,root) %{_sbindir}/installkernel
%attr(0755,root,root) %{_sbindir}/new-kernel-pkg
%{_mandir}/man8/*.8*

#--------------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n grubby-%{version}-1

%build
%set_build_flags
%make_build LDFLAGS="${LDFLAGS}"

%ifnarch aarch64 %{arm}
%check
# TODO: reenable it
#make test
%endif

%install
make install DESTDIR=%{buildroot} mandir=%{_mandir} sbindir=%{_sbindir} libexecdir=%{_libexecdir}

mkdir -p %{buildroot}%{_libexecdir}/{grubby,installkernel}/ %{buildroot}%{_sbindir}/
mv -v %{buildroot}%{_sbindir}/grubby %{buildroot}%{_libexecdir}/grubby/grubby
mv -v %{buildroot}%{_sbindir}/installkernel %{buildroot}%{_libexecdir}/installkernel/installkernel
install -m 0755 %{SOURCE1} %{buildroot}%{_libexecdir}/grubby/
install -m 0755 %{SOURCE4} %{buildroot}%{_libexecdir}/installkernel/
sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/grubby,g" %{SOURCE2} \
	> %{buildroot}%{_sbindir}/grubby
sed -e "s,@@LIBEXECDIR@@,%{_libexecdir}/installkernel,g" %{SOURCE3} \
	> %{buildroot}%{_sbindir}/installkernel
install -D -m 0755 -t %{buildroot}%{_prefix}/lib/kernel/install.d/ %{SOURCE5}
rm %{buildroot}%{_mandir}/man8/grubby.8*
install -m 0644 %{SOURCE6} %{buildroot}%{_mandir}/man8/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13121 |21mr|grub-customizer-5.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical interface to configure the grub2/burg settings
Name:		grub-customizer
Version:	5.1.0
Release:	3
License:	GPLv3+
Group:		System/Configuration/Boot and Init
Url:		https://launchpad.net/grub-customizer
Source0:	https://launchpad.net/grub-customizer/5.1/%{version}/+download/%{name}_%{version}.tar.gz
Source1:	%{name}-grub.cfg
Source3:	translation-ru.mo
Source4:	translation-ru.po
Patch1:		grub-customizer-3.0.4-russian_desktopfile.patch
Patch2:		grub-customizer-5.0.6-gettext.patch
Patch3:		Russian-language-support.patch
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	grub2
Requires:	grub2
# uses polkit to run, but can be run from root without it if needed
Recommends:	polkit

%description
Grub Customizer is a graphical interface to configure the grub2/burg
settings with focus on the individual list order - without losing the
dynamical behavior of grub.

%files -f %{name}.lang
%license COPYING
%doc README changelog
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/grub.cfg
%{_bindir}/%{name}
%{_libdir}/grubcfg-proxy
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.svg
%{_mandir}/man1/%{name}.1*
%{_datadir}/polkit-1/actions/net.launchpad.danielrichter2007.pkexec.grub-customizer.policy

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch3 -p1

# Fix Russian translation for 4.0.6, should be checked in future updates
cp %{SOURCE3} translation/translation-ru.mo
cp %{SOURCE4} translation/translation-ru.po

%build
%cmake
%make

%install
%makeinstall_std -C build

mkdir %{buildroot}/etc/%{name} -p
cp %{SOURCE1} %{buildroot}/etc/%{name}/grub.cfg

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13122 |21mr|gsbase-2.0.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          gsbase
Version:       2.0.1
Release:       14
Summary:       A collection of java utility classes
# http://gsbase.sourceforge.net/license.html Apache style license
License:       ASL 2.0
Url:           http://sourceforge.net/projects/gsbase/
Source0:       http://downloads.sourceforge.net/gsbase/%{name}-%{version}.zip
Source1:       http://repo1.maven.org/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
# build fix for java7
Patch0:        %{name}-%{version}-jdk7.patch

BuildRequires: junit
BuildRequires: junitperf
BuildRequires: maven-local
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A collection of classes that are helpful 
when writing JUnit test cases. Classes
include things like a logging subsystem and
a complex layout manager.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -c
find . -name '*.jar' -delete
find . -name '*.class' -delete
rm -r docs/*
%patch0 -p1

cp -pr %{SOURCE1} pom.xml

%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-surefire-plugin']" "<version>2.14.2</version>"
# list.size expected:<2> but was:<0>
rm -r src/test/com/gargoylesoftware/base/resource/jdbc/WrapperTestCase.java \
 src/test/com/gargoylesoftware/base/resource/jdbc/CallableStatementWrapperTest.java \
 src/test/com/gargoylesoftware/base/resource/jdbc/ConnectionWrapperTest.java \
 src/test/com/gargoylesoftware/base/resource/jdbc/DatabaseMetaDataWrapperTest.java \
 src/test/com/gargoylesoftware/base/resource/jdbc/PreparedStatementWrapperTest.java \
 src/test/com/gargoylesoftware/base/resource/jdbc/ResultSetWrapperTest.java \
 src/test/com/gargoylesoftware/base/resource/jdbc/StatementWrapperTest.java
# Require Java awt subsystem
rm -r src/test/com/gargoylesoftware/base/gui/TableLayoutTest.java

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13123 |21mr|gs-collections-5.1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          gs-collections
Version:       5.1.0
Release:       8
Summary:       A supplement or replacement for the Java Collections Framework
License:       ASL 2.0
URL:           https://github.com/goldmansachs/gs-collections
Source0:       https://github.com/goldmansachs/gs-collections/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.jcip:jcip-annotations)
BuildRequires: mvn(org.antlr:ST4)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Goldman Sachs Collections is a collections framework for Java. It
has JDK-compatible List, Set and Map implementations with a rich API and
set of utility classes that work with any JDK compatible Collections,
Arrays, Maps or Strings. The iteration protocol was inspired by the
Smalltalk collection framework.

%package api
Summary:       Goldman Sachs Collections API

%description api
Goldman Sachs Collections API.

%package code-generator
Summary:       Goldman Sachs Collections Code Generator

%description code-generator
Goldman Sachs Collections Code Generator.

%package code-generator-ant
Summary:       Goldman Sachs Collections Code Generator Ant Task

%description code-generator-ant
Goldman Sachs Collections Code Generator Ant Task.

%package code-generator-maven-plugin
Summary:       Goldman Sachs Collections Code Generator Maven Plugin

%description code-generator-maven-plugin
Goldman Sachs Collections Code Generator Maven Plugin.

%package forkjoin
Summary:       Goldman Sachs Collections Fork Join Utilities

%description forkjoin
Goldman Sachs Collections Fork Join Utilities.

%package parent
Summary:       Goldman Sachs Collections Parent Project

%description parent
Goldman Sachs Collections Parent POM Project.

%package testutils
Summary:       Goldman Sachs Collections API

%description testutils
Goldman Sachs Collections API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

# Unavailable plugins
%pom_remove_plugin -r :clirr-maven-plugin
%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin -r :maven-clover2-plugin
%pom_remove_plugin -r :sonar-maven-plugin
%pom_remove_plugin -r :versions-maven-plugin
# Unwanted task
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-source-plugin

%pom_disable_module unit-tests
%pom_disable_module scala-unit-tests
%pom_disable_module serialization-tests
%pom_disable_module jmh-scala-tests
%pom_disable_module jmh-tests

# Use maven 3.x apis only
%pom_remove_plugin :maven-enforcer-plugin %{name}-code-generator-maven-plugin
%pom_change_dep :maven-project :maven-core %{name}-code-generator-maven-plugin

# Convert from dos to unix line ending
sed -i.orig 's|\r||g' README.md
touch -r README.md.orig README.md
rm README.md.orig

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}

%files api -f .mfiles-%{name}-api
%doc README.md
%license LICENSE-2.0.txt NOTICE

%files code-generator -f .mfiles-%{name}-code-generator
%license LICENSE-2.0.txt NOTICE

%files code-generator-ant -f .mfiles-%{name}-code-generator-ant
%files code-generator-maven-plugin -f .mfiles-%{name}-code-generator-maven-plugin
%files forkjoin -f .mfiles-%{name}-forkjoin
%files parent -f .mfiles-%{name}-parent
%license LICENSE-2.0.txt NOTICE

%files testutils -f .mfiles-%{name}-testutils

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13124 |21mr|gsettings-desktop-schemas-42.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define url_ver %(echo %{version}|cut -d. -f1)

%define girmajor 3.0
%define girname %mklibname gdesktopenums-gir %{girmajor}

Summary:	Shared GSettings schemas for the desktop
Name:		gsettings-desktop-schemas
Version:	42.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/gsettings-desktop-schemas
Source0:	https://download.gnome.org/sources/gsettings-desktop-schemas/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gsettings-desktop-schemas-40.0-default-keyboard-switching.patch
Patch1:		gsettings-desktop-schemas-40.0-default-icon-theme.patch
Patch2:		gsettings-desktop-schemas-40.0-tap-to-click.patch
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
This contains a collection of GSettings schemas for settings shared by
various components of a desktop.

%files -f %{name}.lang
%doc README NEWS AUTHORS
%{_datadir}/GConf/gsettings/gsettings-desktop-schemas.convert
%{_datadir}/GConf/gsettings/wm-schemas.convert
%{_datadir}/glib-2.0/schemas/*.xml

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GDesktopEnums-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{name} = %{EVRD}

%description devel
This contains a collection of GSettings schemas for settings shared by
various components of a desktop.

%files devel
%doc ChangeLog HACKING MAINTAINERS
%{_includedir}/%{name}
%{_datadir}/pkgconfig/%{name}.pc
%{_datadir}/gir-1.0/GDesktopEnums-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13125 |21mr|gsl-2.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 25
%define cblasmajor 0

%define libname %mklibname %{name} %{major}
%define libcblas %mklibname %{name}cblas %{cblasmajor}
%define devname %mklibname %{name} -d

Summary:	The GNU Scientific Library for numerical analysis
Name:		gsl
Version:	2.6
Release:	3
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		http://www.gnu.org/software/gsl/
Source0:	ftp://ftp.gnu.org/gnu/gsl/%{name}-%{version}.tar.gz
Patch0:		%{name}-2.6-undefined-symbols.patch

%description
The GNU Scientific Library (GSL) is a numerical library for C and
C++ programmers.  It contains over 1000 mathematical routines written
in ANSI C.  The library follows modern coding conventions, and lends
itself to being used in very high level languages (VHLLs).

The library covers the following subject areas:

  Complex Numbers             Roots of Polynomials     Special Functions
  Vectors and Matrices        Permutations             Sorting
  BLAS Support                Linear Algebra           Eigensystems
  Fast Fourier Transforms     Quadrature               Random Numbers
  Quasi-Random Sequences      Random Distributions     Statistics
  Histograms                  N-Tuples                 Monte Carlo Integration
  Simulated Annealing         Differential Equations   Interpolation
  Numerical Differentiation   Chebyshev Approximation  Series Acceleration
  Discrete Hankel Transforms  Root-Finding             Minimization
  Least-Squares Fitting       Physical Constants       IEEE Floating-Point

Further information can be found in the GSL Reference Manual.

Install the gsl package if you need a library for high-level
scientific numerical analysis.

#----------------------------------------------------------------------------

%package progs
Summary:	Programs of the Scientific Library
Group:		Sciences/Mathematics

%description progs
Here're the GNU Scientific Library (GSL) programs:
 - gsl-histogram: computes a histogram of the data on stdin
                  using n bins from xmin to xmax.
 - gsl-randist: generates n samples from a given distribution DIST
                with given parameters

%files progs
%doc AUTHORS NEWS README THANKS
%{_bindir}/gsl-histogram
%{_bindir}/gsl-randist
%{_mandir}/man1/gsl-histogram*
%{_mandir}/man1/gsl-randist*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of the Scientific Library
Group:		Documentation

%description doc
This is the documentation in info format of the GNU Scientific Library (GSL).
This doc can be viewed through info, pinfo, konqueror, gnome yelp, ...

%files doc
%{_infodir}/*info*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for Scientific Library
Group:		System/Libraries

%description -n %{libname}
The GNU Scientific Library (GSL) is a numerical library for C and
C++ programmers.  It contains over 1000 mathematical routines written
in ANSI C.  The library follows modern coding conventions, and lends
itself to being used in very high level languages (VHLLs).

 The library covers the following subject areas:

  Complex Numbers             Roots of Polynomials     Special Functions
  Vectors and Matrices        Permutations             Sorting
  BLAS Support                Linear Algebra           Eigensystems
  Fast Fourier Transforms     Quadrature               Random Numbers
  Quasi-Random Sequences      Random Distributions     Statistics
  Histograms                  N-Tuples                 Monte Carlo Integration
  Simulated Annealing         Differential Equations   Interpolation
  Numerical Differentiation   Chebyshev Approximation  Series Acceleration
  Discrete Hankel Transforms  Root-Finding             Minimization
  Least-Squares Fitting       Physical Constants       IEEE Floating-Point

Further information can be found in the GSL Reference Manual.

%files -n %{libname}
%{_libdir}/libgsl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcblas}
Summary:	Shared libraries for Scientific Library
Group:		System/Libraries
Conflicts:	%{_lib}gsl0 < 1.15-5

%description -n %{libcblas}
This package contains a shared library for %{name}.

%files -n %{libcblas}
%{_libdir}/libgslcblas.so.%{cblasmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Scientific Library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc BUGS ChangeLog TODO
%{_bindir}/gsl-config
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_mandir}/man3/*
%{_mandir}/man1/gsl-config.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%check
%ifarch %{x86_64}
make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13126 |21mr|gsm-1.0.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcver %(echo %{version} |cut -d. -f1-2)-pl%(echo %{version} |cut -d. -f3-)

%global ver_major 1
%global ver_minor 0
%global ver_patch 19

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Shared libraries for GSM speech compressor
Name:		gsm
Version:	1.0.19
Release:	2
Group:		System/Libraries
License:	Distributable
Url:		http://www.quut.com/gsm/
Source0:	http://www.quut.com/gsm/%{name}-%{version}.tar.gz
Patch0:         %{name}-makefile.patch
Patch1:         %{name}-warnings.patch

%description
Contains runtime shared libraries for libgsm, an implementation of
the European GSM 06.10 provisional standard for full-rate speech
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
excitation/long term prediction) coding at 13 kbit/s.

GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling
rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
with typical UNIX applications, our implementation turns frames of 160
16-bit linear samples into 33-byte frames (1650 Bytes/s).
The quality of the algorithm is good enough for reliable speaker
recognition; even music often survives transcoding in recognizable
form (given the bandwidth limitations of 8 kHz sampling rate).

The interfaces offered are a front end modelled after compress(1), and
a library API.  Compression and decompression run faster than realtime
on most SPARCstations.  The implementation has been verified against the
ETSI standard test patterns.

%files
%doc COPYRIGHT ChangeLog* README
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for GSM speech compressor
Group:		System/Libraries

%description -n %{libname}
Contains runtime shared libraries for libgsm, an implementation of
the European GSM 06.10 provisional standard for full-rate speech
transcoding, prI-ETS 300 036, which uses RPE/LTP (residual pulse
excitation/long term prediction) coding at 13 kbit/s.

GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling
rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
with typical UNIX applications, our implementation turns frames of 160
16-bit linear samples into 33-byte frames (1650 Bytes/s).
The quality of the algorithm is good enough for reliable speaker
recognition; even music often survives transcoding in recognizable
form (given the bandwidth limitations of 8 kHz sampling rate).

The interfaces offered are a front end modelled after compress(1), and
a library API.  Compression and decompression run faster than realtime
on most SPARCstations.  The implementation has been verified against the
ETSI standard test patterns.

%files -n %{libname}
%{_libdir}/libgsm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for a GSM speech compressor
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Contains header files and development libraries for libgsm, an
implementation of the European GSM 06.10 provisional standard for
full-rate speech transcoding, prI-ETS 300 036, which uses RPE/LTP
(residual pulse excitation/long term prediction) coding at 13 kbit/s.

GSM 06.10 compresses frames of 160 13-bit samples (8 kHz sampling
rate, i.e. a frame rate of 50 Hz) into 260 bits; for compatibility
with typical UNIX applications, our implementation turns frames of 160
16-bit linear samples into 33-byte frames (1650 Bytes/s).
The quality of the algorithm is good enough for reliable speaker
recognition; even music often survives transcoding in recognizable
form (given the bandwidth limitations of 8 kHz sampling rate).

The interfaces offered are a front end modelled after compress(1), and
a library API.  Compression and decompression run faster than realtime
on most SPARCstations.  The implementation has been verified against the
ETSI standard test patterns.

%files -n %{devname}
%{_libdir}/libgsm.so
%{_includedir}/gsm
%{_includedir}/gsm.h
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{srcver}
%autopatch -p1

sed -i -e 's|gcc -ansi -pedantic|%{__cc} -ansi -pedantic|g' Makefile
sed -i -e 's|^LD.*|LD=%{__cc} %{optflags} %{ldflags}|g' Makefile

%build
export LDFLAGS="%{ldflags}"
%make_build all SO_MAJOR=%{ver_major} SO_MINOR=%{ver_minor} SO_PATCH=%{ver_patch}

%install
export LDFLAGS="%{ldflags}"
mkdir -p %{buildroot}{%{_bindir},%{_includedir}/gsm,%{_libdir},%{_mandir}/{man1,man3}}
make install \
	INSTALL_ROOT=%{buildroot}%{_prefix} \
	GSM_INSTALL_INC=%{buildroot}%{_includedir}/gsm \
	GSM_INSTALL_LIB=%{buildroot}%{_libdir} \
	SO_MAJOR=%{ver_major} SO_MINOR=%{ver_minor} SO_PATCH=%{ver_patch}

mkdir -p %{buildroot}%{_bindir}
ln -snf toast %{buildroot}%{_bindir}/untoast
ln -snf toast %{buildroot}%{_bindir}/tcat

ln -s gsm/gsm.h %{buildroot}%{_includedir}

%check
# This is to ensure that the patch creates the proper library version.
[ -f %{buildroot}%{_libdir}/libgsm.so.%{version} ]
export LDFLAGS="%{ldflags}"
make addtst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13127 |21mr|gsoap-2.8.111-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ver %(echo %{version} |cut -d. -f1-2)

Summary:	Development tookit for SOAP/XML Web services in C/C++
Name:		gsoap
Version:	2.8.111
Release:	1
License:	gSOAP Public License
Group:		Development/Other
Url:		http://www.cs.fsu.edu/~engelen/soap.html
Source0:	https://downloads.sourceforge.net/project/gsoap2/gsoap-2.8/gsoap_%{version}.zip
Patch0:		gsoap-2.8.66-ssl.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
The gSOAP Web services development toolkit offers an XML to C/C++ language
binding to ease the development of SOAP/XML Web services in C and C/C++.

%files
%doc LICENSE.txt NOTES.txt README.txt license.pdf %{name}/doc
%{_bindir}/soapcpp2
%{_bindir}/wsdl2h
%{_includedir}/stdsoap2.h
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_libdir}/libgsoap++.a
%{_libdir}/libgsoap.a
%{_libdir}/libgsoapck++.a
%{_libdir}/libgsoapck.a
%{_libdir}/libgsoapssl++.a
%{_libdir}/libgsoapssl.a
%{_libdir}/pkgconfig/gsoapssl++.pc
%{_libdir}/pkgconfig/gsoapssl.pc
%{_libdir}/pkgconfig/gsoap++.pc
%{_libdir}/pkgconfig/gsoap.pc
%{_libdir}/pkgconfig/gsoapck++.pc
%{_libdir}/pkgconfig/gsoapck.pc

#----------------------------------------------------------------------------

%package source
Summary:	Source files of %{name}
Group:		Development/C

%description source
The gSOAP Web services development toolkit offers an XML to C/C++ language
binding to ease the development of SOAP/XML Web services in C and C/C++.

This package contains the source code.

%files source
%{_prefix}/src/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{ver}
%patch0 -p0 -b .ssl

%build
aclocal
automake --add-missing
autoreconf
%configure

# keep a copy of source code (used by some TPM tools for Intel Classmate)
rm -rf %{name}-source
cp -a . ../%{name}-source
mv ../%{name}-source .

make SOAPCPP2_IMPORTPATH="-DSOAPCPP2_IMPORT_PATH=\"\\\"%{_datadir}/%{name}/import\"\\\"" WSDL2H_IMPORTPATH="-DWSDL2H_IMPORT_PATH=\"\\\"%{_datadir}/%{name}/WS\"\\\""

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -R %{name}/import %{buildroot}%{_datadir}/%{name}
cp -R %{name}/WS %{buildroot}%{_datadir}/%{name}
cp -R %{name}/uddi2 %{buildroot}%{_datadir}/%{name}
cp %{name}/stdsoap2.cpp %{buildroot}%{_datadir}/%{name}
cp %{name}/stdsoap2.c %{buildroot}%{_datadir}/%{name}
%makeinstall
install -d %{buildroot}%{_prefix}/src/
cp -a %{name}-source %{buildroot}%{_prefix}/src/%{name}

find %{buildroot} -type d -perm 0744 -exec chmod 0755 '{}' \;
find %{buildroot} -type f -perm 0744 -exec chmod 0644 '{}' \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13128 |21mr|gsound-1.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define gir_major 1.0
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{gir_major}
%define devname %mklibname %{name} -d

Summary:	Small gobject library for playing system sounds
Name:		gsound
Version:	1.0.2
Release:	4
License:	LGPLv2
Group:		Graphical desktop/GNOME
Url:		https://wiki.gnome.org/Projects/GSound
Source0:	http://download.gnome.org/sources/gsound/1.0/gsound-%{version}.tar.xz
Patch0:		gsound-1.0.2-alt-tools_makefile.patch
BuildRequires:	vala
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(vapigen)
Requires:	%{girname} = %{EVRD}

%description
GSound is a small library for playing system sounds.
It's designed to be used via GObject Introspection,
and is a thin wrapper around the libcanberra C library.

%files
%doc COPYING README
%{_bindir}/gsound-play

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains libraries used by %{name}.

%files -n %{libname}
%{_libdir}/libgsound.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GSound-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/gsound.pc
%dir %{_datadir}/gir-1.0
%{_datadir}/gir-1.0/GSound-%{gir_major}.gir
%dir %{_datadir}/gtk-doc
%dir %{_datadir}/gtk-doc/html
%{_datadir}/gtk-doc/html/gsound
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/gsound.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%ifarch %e2k
# unsupported as of lcc 1.23.20
sed -i 's,--warn-all,-Wall,;s,--warn-error,-Werror,' m4/ax_compiler_flags_gir.m4
%endif

%build
%configure2_5x \
	--disable-static \
	--enable-vala

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13129 |21mr|gspell-1.11.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 2
%define api 1
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	A flexible API to implement spell checking in a GTK+ application
Name:		gspell
Version:	1.11.1
Release:	2
License:	GPLv2+
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/gspell
Source0:	https://download.gnome.org/sources/gspell/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	gtk-doc
BuildRequires:	gnome-common
BuildRequires:	vala-tools
BuildRequires:	gettext-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 0.6.3
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(vapigen)

%description
gspell provides a flexible API to implement spell checking in a GTK+
application.

%files
%{_bindir}/gspell-app1

#----------------------------------------------------------------------------

%package i18n
Summary:	A flexible API to implement spell checking in a GTK+ application
Group:		System/Libraries

%description i18n
gspell provides a flexible API to implement spell checking in a GTK+
application.

%files i18n -f %{name}-%{api}.lang
%doc README AUTHORS

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A flexible API to implement spell checking in a GTK+ application
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
gspell provides a flexible API to implement spell checking in a GTK+
application.

%files -n %{libname}
%{_libdir}/libgspell-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gspell-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A flexible API to implement spell checking in a GTK+ application
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
gspell provides a flexible API to implement spell checking in a GTK+
application.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_includedir}/%{name}-%{api}
%{_datadir}/gtk-doc/html/%{name}-1.0
%{_datadir}/vala/vapi/%{name}-%{api}.deps
%{_datadir}/vala/vapi/%{name}-%{api}.vapi
%{_datadir}/gir-1.0/Gspell-%{api}.gir

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--enable-gtk-doc \
	--disable-static
%make

%install
%makeinstall_std

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13130 |21mr|gspell-1.9.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 2
%define api 1
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	A flexible API to implement spell checking in a GTK+ application
Name:		gspell
Version:	1.9.1
Release:	11
License:	GPLv2+
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/gspell
Source0:	https://download.gnome.org/sources/gspell/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	gtk-doc
BuildRequires:	gnome-common
BuildRequires:	vala-tools
BuildRequires:	gettext-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 0.6.3
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-3.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(vapigen)

%description
gspell provides a flexible API to implement spell checking in a GTK+
application.

%files
%{_bindir}/gspell-app1

#----------------------------------------------------------------------------

%package i18n
Summary:	A flexible API to implement spell checking in a GTK+ application
Group:		System/Libraries

%description i18n
gspell provides a flexible API to implement spell checking in a GTK+
application.

%files i18n -f %{name}-%{api}.lang
%doc README AUTHORS

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A flexible API to implement spell checking in a GTK+ application
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
gspell provides a flexible API to implement spell checking in a GTK+
application.

%files -n %{libname}
%{_libdir}/libgspell-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gspell-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A flexible API to implement spell checking in a GTK+ application
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
gspell provides a flexible API to implement spell checking in a GTK+
application.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_includedir}/%{name}-%{api}
%{_datadir}/gtk-doc/html/%{name}-1.0
%{_datadir}/vala/vapi/%{name}-%{api}.deps
%{_datadir}/vala/vapi/%{name}-%{api}.vapi
%{_datadir}/gir-1.0/Gspell-%{api}.gir

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--enable-gtk-doc \
	--disable-static
%make

%install
%makeinstall_std

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13131 |21mr|gssdp-1.4.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.2
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Implements resource discovery and announcement over SSDP
Name:		gssdp
Version:	1.4.0.1
Release:	4
License:	GPLv2+
Group:		Development/Other
Url:		https://download.gnome.org/sources/gssdp
Source0:	https://download.gnome.org/sources/gssdp/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
GSSDP implements resource discovery and announcement over SSDP.

%files
%doc AUTHORS README.md NEWS
%license COPYING
%{_bindir}/gssdp-device-sniffer

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for gssdp
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with gssdp.

%files -n %{libname}
%{_libdir}/libgssdp-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for GSSDP
Group:		System/Libraries
Conflicts:	%{_lib}gssdp1.0_3 < 0.12.1-2

%description -n %{girname}
GObject Introspection interface description for GSSDP.

%files -n %{girname}
%{_libdir}/girepository-1.0/GSSDP-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use gssdp
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use gssdp.

%files -n %{devname}
%{_includedir}/gssdp-%{api}/lib%{name}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/gssdp*.pc
%{_datadir}/gir-1.0/GSSDP-%{api}.gir
%{_datadir}/vala/vapi/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13132 |21mr|gssntlmssp-0.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GSSAPI NTLMSSP Mechanism
Name:		gssntlmssp
Version:	0.9.0
Release:	5
License:	LGPLv3+
Group:		System/Libraries
Url:		https://github.com/gssapi/gss-ntlmssp
Source0:	https://github.com/gssapi/gss-ntlmssp/archive/v%{version}.tar.gz?/%{name}-v%{version}.tar.gz
#BuildRequires:	docbook-dtds
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	doxygen
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(wbclient)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	libunistring-devel
BuildConflicts:	docbook-dtd30-sgml

%description
A GSSAPI Mechanism that implements NTLMSSP.

%files -f %{name}.lang
%doc README.md COPYING doc/*
%config(noreplace) %{_sysconfdir}/gss/mech.d/ntlmssp.conf
%{_mandir}/man8/gssntlmssp.8*
%{_libdir}/%{name}/%{name}.so

#------------------------------------------------------------------

%package devel
Summary:	Development header for GSSAPI NTLMSSP
Group:		Development/C

%description devel
Adds a header file with definition for custom GSSAPI extensions for NTLMSSP.

%files devel
%doc README.md COPYING
%{_includedir}/gssapi/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n gss-ntlmssp-%{version}

%build
mkdir -p m4
autoreconf -fi
%configure --disable-static

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/gss/mech.d
install -m 644 examples/mech.ntlmssp %{buildroot}%{_sysconfdir}/gss/mech.d/ntlmssp.conf
# Clenaup
rm -rf %{buildroot}%{_docdir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13133 |21mr|gssproxy-0.8.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%global	servicename gssproxy
%global	pubconfpath %{_sysconfdir}/gssproxy
%global	gpstatedir %{_localstatedir}/lib/gssproxy

Summary:	GSSAPI Proxy
Name:		gssproxy
Version:	0.8.4
Release:	2
License:	MIT
Group:		System/Servers
Url:		https://pagure.io/gssproxy
Source0:	https://github.com/gssapi/gssproxy/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch100:	0001-Add-support-for-the-NO_CI_FLAG-credentials-option.REVERT
Patch101:	0002-Add-test-to-check-setting-cred-options.REVERT
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	doxygen
BuildRequires:	findutils
BuildRequires:	xsltproc
BuildRequires:	gettext-devel
BuildRequires:	keyutils-devel
BuildRequires:	pkgconfig(ini_config)
%if %{mdvver} < 201610
BuildRequires:	pkgconfig(krb5) >= 1.11
%else
BuildRequires:	pkgconfig(krb5) >= 1.14
%endif
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
%endif
BuildRequires:	pkgconfig(libverto)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ref_array)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(systemd)
# Looks like it's loaded at runtime
Requires:	%{_lib}verto-tevent1
Requires(post,preun):	rpm-helper

%description
A proxy for GSSAPI credential handling.

%files
%doc COPYING
%{_unitdir}/%{name}.service
%{_sbindir}/%{name}
%dir %{pubconfpath}
%dir %{gpstatedir}
%attr(700,root,root) %dir %{gpstatedir}/clients
%attr(700,root,root) %dir %{gpstatedir}/rcache
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}/99-nfs-client.conf
%config(noreplace) %{_sysconfdir}/gss/mech.d/gssproxy.conf
%{_libdir}/%{name}/proxymech.so
%{_mandir}/man5/%{name}.conf.5*
%{_mandir}/man8/%{name}.8*
%{_mandir}/man8/%{name}-mech.8*

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%if %{mdvver} < 201610
# These two patches remove use of GSS_KRB5_CRED_NO_CI_FLAGS_X
# which was not added to krb5 until krb5-1.14
%patch100 -p1
%patch101 -p1
%endif

%build
%global optflags %{optflags} -fno-strict-aliasing
autoreconf -vfi
%configure \
	--with-pubconf-path=%{pubconfpath} \
	--with-initscript=systemd \
	--disable-static \
	--disable-rpath \
	--with-gpp-default-behavior=REMOTE_FIRST \
%if %{with selinux}
	--with-selinux
%else
	--without-selinux
%endif

%make
make test_proxymech


%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 examples/%{name}.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -m 644 examples/99-nfs-client.conf %{buildroot}%{_sysconfdir}/%{name}/99-nfs-client.conf

install -d -m 755 %{buildroot}%{_sysconfdir}/gss/mech.d
install -m 644 examples/mech %{buildroot}%{_sysconfdir}/gss/mech.d/%{name}.conf

install -d -m 755 %{buildroot}%{gpstatedir}/rcache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13134 |21mr|gstreamer1.0-1.19.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	gstreamer
%define	api	1.0
%define	name	%{oname}%{api}
%define	vname	%{oname}10

%define	major		0
%define	libname		%mklibname %{oname} %{api} %{major}
%define	girname		%mklibname gst-gir %{api}
%define	devname		%mklibname %{name} -d

%bcond_with docs

Summary:	GStreamer Streaming-media framework runtime
Name:		%{oname}%{api}
Version:	1.19.1
Release:	1
License:	BSD
Group:		Sound
Url:		http://gstreamer.freedesktop.org/
Source0:	http://gstreamer.freedesktop.org/src/gstreamer/%{oname}-%{version}.tar.xz
# TODO: Switch to meson build system
BuildRequires:	chrpath
BuildRequires:	meson
BuildRequires:	bison >= 2.4
BuildRequires:	flex >= 2.5.31
%ifarch %{ix86}
BuildRequires:	nasm
%endif
%if %{with docs}
BuildRequires:	docbook-dtd412-xml
BuildRequires:	docbook-dtd42-xml
BuildRequires:	ghostscript
BuildRequires:	gtk-doc >= 0.7
BuildRequires:	python-pyxml
BuildRequires:	transfig
%endif
BuildRequires:	gettext-devel >= 0.17
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(gio-2.0) >= 2.32.0
BuildRequires:	pkgconfig(glib-2.0) >= 2.32.0
BuildRequires:	pkgconfig(gmodule-no-export-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.4.9
BuildRequires:	pkgconfig(popt)
%ifnarch %{arm} %{mips} %{e2k} %{riscv}
BuildRequires:	pkgconfig(valgrind)
%endif

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new 
plugins.

#----------------------------------------------------------------------------

%package tools
Summary:	GStreamer Streaming-media framework runtime
Group:		Sound
Provides:	%{vname}-tools = %{EVRD}

%description tools
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new 
plugins.

%files tools -f %{oname}-%{api}.lang
%doc AUTHORS COPYING README NEWS
%dir %{_var}/cache/%{oname}-%{api}
%{_bindir}/gst-inspect-%{api}
%{_bindir}/gst-launch-%{api}
%{_bindir}/gst-stats-%{api}
%{_bindir}/gst-tester-%{api}
%{_bindir}/gst-typefind-%{api}
%{_mandir}/man1/gst-inspect-%{api}.1*
%{_mandir}/man1/gst-launch-%{api}.1*
%{_mandir}/man1/gst-typefind-%{api}.1*
%{_mandir}/man1/gst-stats-%{api}.1*
%{_datadir}/bash-completion/completions/gst-inspect-1.0
%{_datadir}/bash-completion/completions/gst-launch-1.0
%{_datadir}/bash-completion/helpers/gst
%{_datadir}/gdb/auto-load%{_libdir}/libgstreamer-1.0.so.0.*-gdb.py*
%{_datadir}/gdb/auto-load%{_libdir}/__pycache__/*.py*
%{_datadir}/gstreamer-1.0/gdb/glib_gobject_helper.py*
%{_datadir}/gstreamer-1.0/gdb/gst_gdb.py*
%{_datadir}/gstreamer-1.0/gdb/__pycache__/*.py*
%{_libexecdir}/gstreamer-1.0/gst-hotdoc-plugins-scanner
%{_libexecdir}/gstreamer-1.0/gst-plugins-doc-cache-generator
%{_libexecdir}/gstreamer-1.0/gst-ptp-helper
%{_libexecdir}/gstreamer-1.0/gst-completion-helper

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries
Requires:	%{name}-tools
Provides:	libgstreamer%{api} = %{EVRD}

%description -n %{libname}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.

This package contains the libraries.

%files -n %{libname}
%doc COPYING
%dir %{_libdir}/%{oname}-%{api}
%{_libdir}/libgstbase-%{api}.so.%{major}*
%{_libdir}/libgstcheck-%{api}.so.%{major}*
%{_libdir}/libgstreamer-%{api}.so.%{major}*
%{_libdir}/libgstnet-%{api}.so.%{major}*
%{_libdir}/libgstcontroller-%{api}.so.%{major}*
%{_libexecdir}/%{oname}-%{api}/gst-plugin-scanner
%{_libdir}/%{oname}-%{api}/libgstcoreelements.so
%{_libdir}/%{oname}-%{api}/libgstcoretracers.so

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface libraries for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface libraries for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Gst-%{api}.typelib
%{_libdir}/girepository-1.0/GstBase-%{api}.typelib
%{_libdir}/girepository-1.0/GstCheck-%{api}.typelib
%{_libdir}/girepository-1.0/GstController-%{api}.typelib
%{_libdir}/girepository-1.0/GstNet-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires:	%{name}-tools = %{version}-%{release}
Provides:	gstreamer%{api}-devel = %{version}-%{release}

%description -n %{devname}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.

This package contains the libraries and includes files necessary to develop
applications and plugins for GStreamer.

%files -n %{devname}
%doc ChangeLog COPYING
#if %%{with docs}
#%%doc installed-docs/*
#endif
%dir %{_includedir}/%{oname}-%{api}
%dir %{_includedir}/%{oname}-%{api}/gst
%{_includedir}/%{oname}-%{api}/gst/*.h
%dir %{_includedir}/%{oname}-%{api}/gst/base/
%{_includedir}/%{oname}-%{api}/gst/base/*.h
%{_includedir}/%{oname}-%{api}/gst/check/
%dir %{_includedir}/%{oname}-%{api}/gst/controller/
%{_includedir}/%{oname}-%{api}/gst/controller/*.h
%{_includedir}/%{oname}-%{api}/gst/net/
%{_libdir}/libgstbase-%{api}.so
%{_libdir}/libgstcheck-%{api}.so
%{_libdir}/libgstreamer-%{api}.so
%{_libdir}/libgstnet-%{api}.so
%{_libdir}/libgstcontroller-%{api}.so
%{_datadir}/aclocal/gst-element-check-%{api}.m4
%{_libdir}/pkgconfig/gstreamer-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-base-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-check-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-net-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-controller-%{api}.pc
## We specify the API docs as regular files since %%docs doesn't fail when
#  files aren't found anymore for RPM >= 4
#  We list all of the files we really need to trap incomplete doc builds
#  then we catch the rest with *, you can safely ignore the errors from this
## gstreamer API
%if %{with docs}
%{_datadir}/gtk-doc/html/*
%endif
%{_datadir}/gir-1.0/Gst-%{api}.gir
%{_datadir}/gir-1.0/GstBase-%{api}.gir
%{_datadir}/gir-1.0/GstCheck-%{api}.gir
%{_datadir}/gir-1.0/GstController-%{api}.gir
%{_datadir}/gir-1.0/GstNet-%{api}.gir


#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%apply_patches


%build
%meson -D package-name="%{_vendor} %{name} package" \
	-D package-origin="https://bugzilla.rosalinux.ru/"

%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_var}/cache/%{oname}-%{api}

#if %%{with docs}
#mv %%{buildroot}%%{_datadir}/doc/%%{oname}-%%{api}/ installed-docs
#endif

#gw really remove rpath for rpmlint
chrpath -d %{buildroot}{%{_bindir}/gst-{inspect,launch,typefind}-1.0,%{_libdir}/{*.so,%{oname}-%{api}/*.so}}

# Fix perms
chmod -x %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}/libgstreamer-1.0.so.0.*-gdb.py

%find_lang %{oname}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13135 |21mr|gstreamer1.0-decoders-1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Default GStreamer 1.0 decoders
Name:		gstreamer1.0-decoders
Version:	1
Release:	1
License:	GPLv2+ # spec file
Group:		Video
BuildArch:	noarch

# Please provide URL to sample which does not work without the
# package and works correctly with it, if adding new packages here.

# We want audio as well:
Requires:	%{name}-audio

# AC-3 decoder (popular multichannel audio codec), used usually
# only in videos:
# http://samples.mplayerhq.hu/A-codecs/AC3/liba52_altivec.avi
Recommends:	gstreamer1.0-a52dec

# MPEG-1/2 video decoder:
# http://samples.mplayerhq.hu/MPEG1/zelda%20first%20commercial.mpeg
Recommends:	gstreamer1.0-mpeg

# DTS multichannel audio decoder, used usually only in videos:
# http://samples.mplayerhq.hu/A-codecs/DTS/dtsac3audiosample.avi
Recommends:	gstreamer1.0-dts

# DV file support:
# http://samples.mplayerhq.hu/DV-raw/voxnews.dv
Recommends:	gstreamer1.0-dv

%description
Virtual package which installs the GStreamer 1.0 input plugins that
cover most of the usage cases.

This package can be suggested or required by software that uses
GStreamer to open media files, such as video players.

%package audio
Summary:	Default GStreamer 1.0 audio decoders
Group:		Sound

# Core plugins required for operation:
Requires:	gstreamer1.0-plugins-base

# MMS protocol support:
# Used for live broadcasts, for example freely-viewable NASA TV.
# mms://63.250.197.124/bcenc202056?StreamID=51410198&pl_auth=2e83b652202abf941f7793
# bda887d1f5&ht=30&pl_b=00D90C088654FA550A41CFEAA7477AC791&CG_ID=1369080&Segment=149773
Recommends:	gstreamer1.0-mms

# GSM audio decoder:
# http://samples.mplayerhq.hu/A-codecs/GSM/countdown.wmv
Recommends:	gstreamer1.0-gsm

# AAC audio decoder (most commonly used in .mp4 files):
# http://samples.mplayerhq.hu/A-codecs/AAC/ct_nero-heaac.mp4
Recommends:	gstreamer1.0-faad

# Contains important plugins such as AVI demuxer:
Recommends:	gstreamer1.0-plugins-good

# Contains, for example, an MP3 decoder:
# http://samples.mplayerhq.hu/FLV/flash8/mrandmrssmith_320x176_200.flv
Recommends:	gstreamer1.0-plugins-ugly

# Contains, for example, NUV demuxer, used in MythTV recordings:
# http://samples.mplayerhq.hu/nuv/mythtvexample.nuv
# CD Audio
Recommends:	gstreamer1.0-plugins-bad

# Lots of decoders, for example for Flash video and MPEG-2 TS (eg. DVB):
# http://samples.mplayerhq.hu/FLV/flash8/mrandmrssmith_320x176_200.flv
# http://samples.mplayerhq.hu/MPEG-VOB/transport/dishtest.ts
Recommends:	gstreamer1.0-libav

# FLAC audio decoder (popular lossless codec):
# Note that the below sample plays without working seeking even
# without this package.
# http://samples.mplayerhq.hu/flac/dilvie_-_the_dragonfly.flac
Recommends:	gstreamer1.0-flac


%description audio
Virtual package which installs the GStreamer 1.0 input plugins that
cover most of the audio-only usage cases. For playing videos see
%{name}.

This package can be suggested or required by software that uses
GStreamer to open audio files.

%files
%files audio

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13136 |21mr|gstreamer1.0-devtools-1.18.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gst-devtools

%define api	1.0
%define major	0
%define gmajor	1.0

%define libname	%mklibname gstvalidate %{api} %{major}
%define girname	%mklibname gstvalidate-gir %{gmajor}
%define devname	%mklibname gstvalidate %{api} -d

%global __python %{__python3}

Name:		gstreamer1.0-devtools
Summary:	Suite of tools to run GStreamer1.0 integration tests
Version:	1.18.4
Release:	1
License:	LGPLv2+
Group:		Video
Url:		https://gstreamer.freedesktop.org/
Source0:	https://gstreamer.freedesktop.org/src/%{oname}/%{oname}-%{version}.tar.xz
BuildRequires:	gettext-devel
BuildRequires:  meson
BuildRequires:	python
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gobject-introspection-%{api})
BuildRequires:	pkgconfig(gstreamer-%{api})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api})
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-%{api})
BuildRequires:	pkgconfig(libunwind)
BuildRequires:	pkgconfig(libdw)
BuildRequires:	gstreamer1.0-rtsp-server-devel
Requires:	%{name}-scenarios = %{EVRD}
Obsoletes:	gstreamer1.0-validate < 1.18.0
Provides:	gstreamer1.0-validate = %{EVRD}

%description
The goal of GstValidate is to be able to detect when elements are not
behaving as expected and report it to the user so he knows how things
are supposed to work inside a GstPipeline. In the end, fixing issues
found by the tool will ensure that all elements behave all together in
the expected way.

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared libraries for %{name}.

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Provides:	%{_lib}%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains the shared libraries and development files
for %{name}.

%package scenarios
Summary:	Validate scenarios for %{name}
Group:		Video
BuildArch:	noarch

%description scenarios
This package contains the scenario files for %{name}.

%prep
%setup -qn %{oname}-%{version}
%autopatch -p1

%build
%meson \
	-Ddoc=%{?with_docs:enabled}%{?!with_docs:disabled}
%meson_build

%install
%meson_install
#we don't want these
find %{buildroot} -name "*.la" -delete

%files
%{_bindir}/gst-validate-%{api}
%{_bindir}/gst-validate-images-check-%{api}
%{_bindir}/gst-validate-launcher
%{_bindir}/gst-validate-media-check-%{api}
%{_bindir}/gst-validate-rtsp-server-%{api}
%{_bindir}/gst-validate-transcoding-%{api}
%{_libdir}/gst-validate-launcher/
# should plugins be here or somewhere else?
%{_libdir}/gstreamer-%{api}/validate/libgstvalidatefaultinjection.so
%{_libdir}/gstreamer-%{api}/validate/libgstvalidategapplication.so
%{_libdir}/gstreamer-%{api}/validate/libgstvalidategtk.so
%{_libdir}/gstreamer-%{api}/validate/libgstvalidatessim.so
%{_libdir}/gstreamer-%{api}/libgstvalidatetracer.so

%files -n %{libname}
%{_libdir}/libgstvalidate-%{api}.so.%{major}
%{_libdir}/libgstvalidate-%{api}.so.%{major}.*
%{_libdir}/libgstvalidate-default-overrides-%{api}.so.%{major}
%{_libdir}/libgstvalidate-default-overrides-%{api}.so.%{major}.*

%files -n %{girname}
%{_libdir}/girepository-%{api}/GstValidate-%{gmajor}.typelib

%files -n %{devname}

%{_includedir}/gstreamer-%{api}/gst/validate/
%{_libdir}/pkgconfig/gst-validate-%{api}.pc
%{_datadir}/gir-%{api}/GstValidate-%{gmajor}.gir
%{_libdir}/libgstvalidate-%{api}.so
%{_libdir}/libgstvalidate-default-overrides-%{api}.so

%files scenarios
%{_datadir}/gstreamer-%{api}/validate/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13137 |21mr|gstreamer1.0-editing-services-1.18.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname gst-editing-services

%define	api 1.0
%define	major 0
%define	libname %mklibname ges %{api} %{major}
%define	devname %mklibname ges %{api} -d
%define	girname %mklibname ges-gir %{api}

%bcond_without validate

%bcond_without python

Summary:	Gstreamer editing services
Name:		gstreamer%{api}-editing-services
Version:	1.18.6
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		System/Libraries
Url:		http://cgit.freedesktop.org/gstreamer/gst-editing-services/
Source0:	http://gstreamer.freedesktop.org/src/%{oname}/%{oname}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	gtk-doc
BuildRequires:	flex
BuildRequires:	valgrind
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(gio-2.0) >= 2.16
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-%{api}) >= 1.2.0
BuildRequires:	pkgconfig(gstreamer-controller-%{api}) >= 1.2.0
BuildRequires:	pkgconfig(gstreamer-pbutils-%{api}) >= 1.2.0
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api}) >= 1.2.0
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(gstreamer-video-%{api}) >= 1.2.0
BuildRequires:	pkgconfig(gstreamer-audio-%{api})
BuildRequires:	pkgconfig(gstreamer-tag-%{api})
BuildRequires:	pkgconfig(gstreamer-base-%{api})
BuildRequires:	pkgconfig(gst-validate-1.0)
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	gstreamer1.0-plugins-base
BuildRequires:	gstreamer1.0-plugins-bad
BuildRequires:	gstreamer1.0-plugins-ugly
BuildRequires:	gstreamer1.0-libav
BuildRequires:	gstreamer1.0-soup
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	gstreamer1.0-devtools
BuildRequires:	gstreamer1.0-devtools-devel
Requires:	python3-gstreamer%{api}

%description
This is a high-level library for facilitating the creation of audio/video
non-linear editors.

%files
%doc ChangeLog COPYING* README RELEASE NEWS AUTHORS
%{_bindir}/ges-launch-%{api}
%{_datadir}/bash-completion/completions/ges-launch-%{api}
%{_libdir}/gstreamer-%{api}/libgstnle.so
%{_libdir}/gstreamer-%{api}/libgstges.so
%{_mandir}/man1/ges-launch-%{api}.1*
%{_libdir}/gst-validate-launcher/python/launcher/apps/*
%{_datadir}/gstreamer-1.0/validate/scenarios/ges-edit-clip-while-paused.scenario

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gstreamer editing services shared library
Group:		System/Libraries

%description -n %{libname}
This is a high-level library for facilitating the creation of audio/video
non-linear editors.

%files -n %{libname}
%doc COPYING
%{_libdir}/libges-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	Gstreamer editing services gobject-introspection files
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
Gstreamer editing services gobject-introspection files.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/GES-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc docs/
%{_libdir}/libges-%{api}.so
%{_includedir}/gstreamer-%{api}/ges/
%{_libdir}/pkgconfig/gst-editing-services-%{api}.pc
%{_datadir}/gir-1.0/GES-%{api}.gir

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python bindings for %{name}
Group:		Development/Python
Requires:	%{girname}

%description -n python3-%{name}
Python bindings for %{name}.

%files -n python3-%{name}
%doc COPYING
%{python3_sitearch}/gi/overrides/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}


%build
%meson \
        -Dpygi-overrides-dir=%{python3_sitearch}/gi/overrides/ \
        -Dvalidate=%{?with_validate:enabled}%{?!with_validate:disabled} \
        -Dpython=%{?with_python:enabled}%{?!with_python:disabled} \
        -Ddoc=disabled \
        -Dpython=enabled \
        -Dexamples=disabled
        
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13138 |21mr|gstreamer1.0-libav-1.18.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define	api 1.0

# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

Summary:	Gstreamer plugin for the libav codec
Name:		gstreamer%{api}-libav
Version:	1.18.4
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://gstreamer.freedesktop.org
Source0:	http://gstreamer.freedesktop.org/src/gst-libav/gst-libav-%{version}.tar.xz
Source1:	%{name}.rpmlintrc
BuildRequires:	docbook-dtd412-xml
BuildRequires:	gtk-doc >= 1.12
# TODO: Switch to meson build system
%ifnarch %{arm} %{mips} %{e2k} %{riscv}
BuildRequires:	valgrind
%endif
BuildRequires:  cmake
BuildRequires:  meson
BuildRequires:	yasm
BuildRequires:	bzip2-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api}) >= %{version}
BuildRequires:	pkgconfig(gstreamer-%{api}) >= %{version}
BuildRequires:	pkgconfig(gstreamer-base-%{api}) >= %{version}
BuildRequires:	pkgconfig(gstreamer-check-%{api}) >= %{version}
BuildRequires:	pkgconfig(orc-0.4)
Provides:	gstreamer%{api}-ffmpeg = %{EVRD}

%description
Video codec plugin for GStreamer based on the libav libraries.

%files
%doc README.md NEWS ChangeLog AUTHORS
%{_libdir}/gstreamer-%{api}/libgstlibav.so

#----------------------------------------------------------------------------

%prep
%setup -qn gst-libav-%{version}
# get rid of the bundled libav
rm -rf gst-libs/ext/libav

%build
export CFLAGS="$CFLAGS -Wno-implicit-function-declaration -Wno-deprecated-declarations"
%meson \
       -Ddoc=disabled
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13139 |21mr|gstreamer1.0-plugins-bad-1.19.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

# docs not available at 1.16.2 version
%define	build_doc	0
%define	build_gme	1

%define	build_amrwb	0
%define	build_faad	1
%define	build_dts	1

%define	api		1.0
%define	bname	gstreamer%{api}
%define	major	0

# Plugins packages
%define	libadaptivedemux	%mklibname gstadaptivedemux %{api} %{major}
%define	devadaptivedemux	%mklibname gstadaptivedemux %{api} -d
%define	libbadaudio		%mklibname gstbadaudio %{api} %{major}
%define	devbadaudio		%mklibname gstbadaudio %{api} -d
%define	libcodecs		%mklibname gstcodecs %{api} %{major}
%define	devcodecs		%mklibname gstcodecs %{api} -d
%define	libtranscoder		%mklibname gsttranscoder %{api} %{major}
%define	devtranscoder		%mklibname gsttranscoder %{api} -d
%define	libbase			%mklibname gstbasevideo %{api} %{major}
%define	devbase			%mklibname gstbasevideo %{api} -d
%define	libcodecparsers		%mklibname gstcodecparsers %{api} %{major}
%define	devcodecparsers		%mklibname gstcodecparsers %{api} -d
%define	libinsertbin		%mklibname gstinsertbin %{api} %{major}
%define	devinsertbin		%mklibname gstinsertbin %{api} -d
%define	libmpegts		%mklibname gstmpegts %{api} %{major}
%define	devmpegts		%mklibname gstmpegts %{api} -d
%define	libphoto		%mklibname gstphotography %{api} %{major}
%define	devphoto		%mklibname gstphotography %{api} -d
%define	libplayer		%mklibname gstplayer %{api} %{major}
%define	devplayer		%mklibname gstplayer %{api} -d
%define	liburidownloader	%mklibname gsturidownloader %{api} %{major}
%define	devuridownloader	%mklibname gsturidownloader %{api} -d
%define	libgstwayland		%mklibname gstwayland %{api} %{major}
%define	devgstwayland		%mklibname gstwayland %{api} -d
# New packages in 1.16.0
%define	libisoff		%mklibname gstisoff %{api} %{major}
%define	devisoff		%mklibname gstisoff %{api} -d
%define	libsctp			%mklibname gstsctp %{api} %{major}
%define	devsctp			%mklibname gstsctp %{api} -d
%define	libwebrtc		%mklibname gstwebrtc %{api} %{major}
%define	devwebrtc		%mklibname gstwebrtc %{api} -d
# Removed packages in 1.16.0
%define	liballocators		%mklibname gstallocators %{api} %{major}
%define	devallocators		%mklibname gstallocators %{api} -d
%define	libbadbase		%mklibname gstbadbase %{api} %{major}
%define	devbadbase		%mklibname gstbadbase %{api} -d
%define	libbadvideo		%mklibname gstbadvideo %{api} %{major}
%define	devbadvideo		%mklibname gstbadvideo %{api} -d
# Now part of plugins-base
%define	libgl			%mklibname gstgl %{api} %{major}
%define	devgl			%mklibname gstgl %{api} -d
# New packages in 1.19.1
%define	libplay			%mklibname gstplay %{api} %{major}
%define	devplay			%mklibname gstplay %{api} -d
%define	libgstva		%mklibname gstgstva %{api} %{major}
%define	devgstva		%mklibname gstgstva %{api} -d

# GObject introspection packages

%define	girbadaudio		%mklibname gstbadaudio-gir %{api}
%define	gircodecs		%mklibname gstcodecs-gir %{api}
%define	girinsertbin		%mklibname gstinsertbin-gir %{api}
%define	girmpegts		%mklibname gstmpegts-gir %{api}
%define	girplayer		%mklibname gstplayer-gir %{api}
%define	girsctp			%mklibname gstsctp-gir %{api}
%define	girtranscoder		%mklibname gsttranscoder-gir %{api}
%define	girwebrtc		%mklibname gstwebrtc-gir %{api}
%define	girplay			%mklibname gstplay-gir %{api}
# Now part of plugins-base
%define	girgl			%mklibname gstgl-gir %{api}
# Removed
%define	girbadallocators	%mklibname gstbadallocators-gir %{api}


Summary:	GStreamer Streaming-media framework plug-ins
Name:		%{bname}-plugins-bad
Version:	1.19.1
Release:	4%{?extrarelsuffix}
License:	LGPLv2+ and GPLv2+
Group: 		Sound
Url:		http://gstreamer.freedesktop.org/
Source0:	http://gstreamer.freedesktop.org/src/gst-plugins-bad/gst-plugins-bad-%{version}.tar.xz
# From Mageia, since we now enable wildmidi plugin
Patch0:		gst-plugins-bad-1.14.0-wildmidi-timidity.cfg.patch
Patch1:		CVE-2023-40474.patch
Patch2:		CVE-2023-40475.patch
Patch3:		CVE-2023-40476.patch
# TODO: Switch to meson build system
BuildRequires:	fonts-ttf-dejavu
%if %{build_doc}
BuildRequires:	gtk-doc >= 1.12
%endif
%ifarch %{ix86}
BuildRequires:	nasm => 0.90
%endif
BuildRequires:	bzip2-devel
BuildRequires:	meson
#gw for autoreconf
BuildRequires:	gettext-devel >= 0.17
BuildRequires:	libva-devel
BuildRequires:	pkgconfig(bluez) >= 5.0
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dvdnav) >= 4.1.2
BuildRequires:	pkgconfig(dvdread) >= 4.1.2
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(fdk-aac)
BuildRequires:	pkgconfig(fluidsynth) >= 1.1.11
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.14.0
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.24
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-%{api}) >= %{version}
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api}) >= %{version}
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 1.31.1
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(libcdaudio)
BuildRequires:	pkgconfig(lcms2) >= 2.7
BuildRequires:	pkgconfig(raptor2)
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libdc1394-2) >= 2.0.0
%if %{build_dts}
BuildRequires:	pkgconfig(libdts)
%endif
BuildRequires:	pkgconfig(libdrm) >= 2.4.55
BuildRequires:	pkgconfig(libexif) >= 0.6.16
BuildRequires:	pkgconfig(libmimic)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(libopenjpeg1)
# In contrib
#BuildRequires:	pkgconfig(libofa) >= 0.9.3
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(schroedinger-1.0)
BuildRequires:	pkgconfig(libssh2) >= 1.4.3
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.8
BuildRequires:	pkgconfig(openal) >= 1.14
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus) >= 0.9.4
BuildRequires:	pkgconfig(orc-0.4) >= 0.4.17
BuildRequires:	pkgconfig(pango) >= 1.22.0
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(sbc)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sndfile) >= 1.0.16
%ifarch %{ix86} %{x86_64} %{armx}
BuildRequires:	pkgconfig(valgrind)
%endif
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-client) >= 1.11.0
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols) >= 1.15
BuildRequires:	pkgconfig(wildmidi)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb) >= 1.10
BuildRequires:	pkgconfig(vo-aacenc)
BuildRequires:	pkgconfig(vo-amrwbenc)
BuildRequires:	pkgconfig(x265)
Requires:	gstreamer%{api}-transcoder

Obsoletes:	%{bname}-voip < 1.6
Obsoletes:	%{bname}-rtpvp8 < 1.6
# This was removed because umnaintained (see ChangeLog file)
Obsoletes:	%{bname}-schroedinger < %{version}
# Those are now provided by -base
Obsoletes:	%{libgl} < %{version}
Obsoletes:	%{girgl} < %{version}
Obsoletes:	%{devgl} < %{version}
# Other removed libraries
Obsoletes:	%{liballocators} < %{version}
Obsoletes:	%{girbadallocators} < %{version}
Obsoletes:	%{devallocators} < %{version}
Obsoletes:	%{libbadbase} < %{version}
Obsoletes:	%{devbadbase} < %{version}
Obsoletes:	%{libbadvideo} < %{version}
Obsoletes:	%{devbadvideo} < %{version}

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains a set of plug-ins that aren't up to par compared to the
rest. They might be close to being good quality, but they're missing something
- be it a good code review, some documentation, a set of tests, a real live
maintainer, or some actual wide use. If the blanks are filled in they might be
upgraded to become part of either gstreamer-plugins-good or
gstreamer-plugins-ugly, depending on the other factors.
If the plug-ins break, you can't complain - instead, you can fix the problem
and send us a patch, or bribe someone into fixing them for you.
New contributors can start here for things to work on.

%files -f gst-plugins-bad-%{api}.lang
%doc AUTHORS COPYING README NEWS
%{_bindir}/playout
%{_libdir}/gstreamer-%{api}/libgstaccurip.so
%{_libdir}/gstreamer-%{api}/libgstadpcmdec.so
%{_libdir}/gstreamer-%{api}/libgstadpcmenc.so
%{_libdir}/gstreamer-%{api}/libgstaom.so
%{_libdir}/gstreamer-%{api}/libgstaudiobuffersplit.so
%{_libdir}/gstreamer-%{api}/libgstaudiomixmatrix.so
%{_libdir}/gstreamer-%{api}/libgstaiff.so
%{_libdir}/gstreamer-%{api}/libgstasfmux.so
%{_libdir}/gstreamer-%{api}/libgstaudiofxbad.so
%{_libdir}/gstreamer-%{api}/libgstaudiolatency.so
%{_libdir}/gstreamer-%{api}/libgstdtsdec.so
%{_libdir}/gstreamer-%{api}/libgstdash.so
%{_libdir}/gstreamer-%{api}/libgstdvbsubenc.so
%{_libdir}/gstreamer-%{api}/libgstnvcodec.so
%{_libdir}/gstreamer-%{api}/libgstrist.so
%{_libdir}/gstreamer-%{api}/libgstrtmp2.so
%{_libdir}/gstreamer-%{api}/libgstrtpmanagerbad.so
%{_libdir}/gstreamer-%{api}/libgstsctp.so
%{_libdir}/gstreamer-%{api}/libgstswitchbin.so
%{_libdir}/gstreamer-%{api}/libgstv4l2codecs.so
%{_libdir}/gstreamer-%{api}/libgstva.so
%{_libdir}/gstreamer-%{api}/libgstaudiovisualizers.so
%{_libdir}/gstreamer-%{api}/libgstautoconvert.so
%{_libdir}/gstreamer-%{api}/libgstbayer.so
%{_libdir}/gstreamer-%{api}/libgstbluez.so
%{_libdir}/gstreamer-%{api}/libgstbz2.so
%{_libdir}/gstreamer-%{api}/libgstcamerabin.so
%{_libdir}/gstreamer-%{api}/libgstchromaprint.so
%{_libdir}/gstreamer-%{api}/libgstuvch264.so
%{_libdir}/gstreamer-%{api}/libgstclosedcaption.so
%{_libdir}/gstreamer-%{api}/libgstcoloreffects.so
%{_libdir}/gstreamer-%{api}/libgstcolormanagement.so
%{_libdir}/gstreamer-%{api}/libgstcodecalpha.so
%{_libdir}/gstreamer-%{api}/libgstdc1394.so
%{_libdir}/gstreamer-%{api}/libgstdebugutilsbad.so
%{_libdir}/gstreamer-%{api}/libgstdecklink.so
%{_libdir}/gstreamer-%{api}/libgstdtls.so
%{_libdir}/gstreamer-%{api}/libgstdvb.so
%{_libdir}/gstreamer-%{api}/libgstdvbsuboverlay.so
%{_libdir}/gstreamer-%{api}/libgstdvdspu.so
%{_libdir}/gstreamer-%{api}/libgstfaceoverlay.so
%{_libdir}/gstreamer-%{api}/libgstfbdevsink.so
%{_libdir}/gstreamer-%{api}/libgstfdkaac.so
%{_libdir}/gstreamer-%{api}/libgstfieldanalysis.so
%{_libdir}/gstreamer-%{api}/libgstfestival.so
%{_libdir}/gstreamer-%{api}/libgstfluidsynthmidi.so
%{_libdir}/gstreamer-%{api}/libgstfreeverb.so
%{_libdir}/gstreamer-%{api}/libgstfrei0r.so
%{_libdir}/gstreamer-%{api}/libgstgaudieffects.so
%{_libdir}/gstreamer-%{api}/libgstgdp.so
%{_libdir}/gstreamer-%{api}/libgstgeometrictransform.so
%{_libdir}/gstreamer-%{api}/libgsthls.so
%{_libdir}/gstreamer-%{api}/libgstid3tag.so
%{_libdir}/gstreamer-%{api}/libgstinter.so
%{_libdir}/gstreamer-%{api}/libgstinterlace.so
%{_libdir}/gstreamer-%{api}/libgstipcpipeline.so
%{_libdir}/gstreamer-%{api}/libgstivfparse.so
%{_libdir}/gstreamer-%{api}/libgstivtc.so
%{_libdir}/gstreamer-%{api}/libgstjp2kdecimator.so
%{_libdir}/gstreamer-%{api}/libgstjpegformat.so
%{_libdir}/gstreamer-%{api}/libgstkms.so
%{_libdir}/gstreamer-%{api}/libgstlegacyrawparse.so
%{_libdir}/gstreamer-%{api}/libgstmpegtsmux.so
%{_libdir}/gstreamer-%{api}/libgstmidi.so
%{_libdir}/gstreamer-%{api}/libgstmodplug.so
%{_libdir}/gstreamer-%{api}/libgstmpegpsdemux.so
%{_libdir}/gstreamer-%{api}/libgstmpegpsmux.so
%{_libdir}/gstreamer-%{api}/libgstmpegtsdemux.so
%{_libdir}/gstreamer-%{api}/libgstmxf.so
%{_libdir}/gstreamer-%{api}/libgstnetsim.so
%{_libdir}/gstreamer-%{api}/libgstneonhttpsrc.so
#{_libdir}/gstreamer-%%{api}/libgstofa.so
%{_libdir}/gstreamer-%{api}/libgstopenal.so
%{_libdir}/gstreamer-%{api}/libgstopusparse.so
%{_libdir}/gstreamer-%{api}/libgstopenjpeg.so
%{_libdir}/gstreamer-%{api}/libgstpcapparse.so
%{_libdir}/gstreamer-%{api}/libgstpnm.so
%{_libdir}/gstreamer-%{api}/libgstproxy.so
%{_libdir}/gstreamer-%{api}/libgsttranscode.so
%{_libdir}/gstreamer-%{api}/libgstremovesilence.so
%{_libdir}/gstreamer-%{api}/libgstresindvd.so
%{_libdir}/gstreamer-%{api}/libgstrfbsrc.so
%{_libdir}/gstreamer-%{api}/libgstrtponvif.so
%{_libdir}/gstreamer-%{api}/libgstsbc.so
%{_libdir}/gstreamer-%{api}/libgstsdpelem.so
%{_libdir}/gstreamer-%{api}/libgstsegmentclip.so
%{_libdir}/gstreamer-%{api}/libgstshm.so
%{_libdir}/gstreamer-%{api}/libgstsiren.so
%{_libdir}/gstreamer-%{api}/libgstsmooth.so
%{_libdir}/gstreamer-%{api}/libgstsmoothstreaming.so
%{_libdir}/gstreamer-%{api}/libgstsndfile.so
%{_libdir}/gstreamer-%{api}/libgstspeed.so
%{_libdir}/gstreamer-%{api}/libgstsubenc.so
%{_libdir}/gstreamer-%{api}/libgsttimecode.so
%{_libdir}/gstreamer-%{api}/libgstttmlsubs.so
%{_libdir}/gstreamer-%{api}/libgstvideofiltersbad.so
%{_libdir}/gstreamer-%{api}/libgstvideoframe_audiolevel.so
%{_libdir}/gstreamer-%{api}/libgstvideoparsersbad.so
%{_libdir}/gstreamer-%{api}/libgstvideosignal.so
%{_libdir}/gstreamer-%{api}/libgstvmnc.so
%{_libdir}/gstreamer-%{api}/libgstwebp.so
%{_libdir}/gstreamer-%{api}/libgsty4mdec.so
%{_libdir}/gstreamer-%{api}/libgstwaylandsink.so
%{_libdir}/gstreamer-%{api}/libgstwildmidi.so
%{_libdir}/gstreamer-%{api}/libgstvoaacenc.so
%{_libdir}/gstreamer-%{api}/libgstvoamrwbenc.so
%{_libdir}/gstreamer-%{api}/libgstx265.so
%{_datadir}/gstreamer-%{api}/presets/GstVoAmrwbEnc.prs
%{_datadir}/gstreamer-%{api}/presets/GstFreeverb.prs
%{_datadir}/gstreamer-%{api}/encoding-profiles

#----------------------------------------------------------------------------

%package -n %{libadaptivedemux}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libadaptivedemux}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libadaptivedemux}
%doc COPYING
%{_libdir}/libgstadaptivedemux-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devadaptivedemux}
Summary:	Libraries for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libadaptivedemux} = %{EVRD}
Provides:	gstadaptivedemux%{api}-devel = %{EVRD}

%description -n %{devadaptivedemux}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

%files -n %{devadaptivedemux}
%doc COPYING
%{_libdir}/libgstadaptivedemux-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libbadaudio}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libbadaudio}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libbadaudio}
%doc COPYING
%{_libdir}/libgstbadaudio-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girbadaudio}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libbadaudio} = %{EVRD}

%description -n %{girbadaudio}
GObject Introspection interface description for %{name}.

%files -n %{girbadaudio}
%doc COPYING
%{_libdir}/girepository-1.0/GstBadAudio-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devbadaudio}
Summary:	Libraries for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libbadaudio} = %{EVRD}
Provides:	gstbadaudio%{api}-devel = %{EVRD}

%description -n %{devbadaudio}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

%files -n %{devbadaudio}
%doc COPYING
%{_includedir}/gstreamer-%{api}/gst/audio/*
%{_libdir}/libgstbadaudio-%{api}.so
%{_libdir}/pkgconfig/gstreamer-bad-audio-%{api}.pc
%{_datadir}/gir-1.0/GstBadAudio-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libbase}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libbase}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries.

%files -n %{libbase}
%doc COPYING
%{_libdir}/libgstbasecamerabinsrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devbase}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libbase} = %{EVRD}
Provides:	gstbasecamerabinsrc%{api}-devel = %{EVRD}
Provides:	gstbasevideo%{api}-devel = %{EVRD}

%description -n %{devbase}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins  for %{name}.

%files -n %{devbase}
%doc COPYING
%{_includedir}/gstreamer-%{api}/gst/basecamerabinsrc/*
%{_libdir}/libgstbasecamerabinsrc-%{api}.so
%{_libdir}/pkgconfig/gstreamer-plugins-bad-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{libcodecs}
Summary:	Libraries for GStreamer streaming-codecs framework
Group:		System/Libraries

%description -n %{libcodecs}
GStreamer is a streaming-codecs framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libcodecs}
%doc COPYING
%{_libdir}/libgstcodecs-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{gircodecs}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libcodecs} = %{EVRD}

%description -n %{gircodecs}
GObject Introspection interface description for %{name}.

%files -n %{gircodecs}
%doc COPYING
%{_libdir}/girepository-1.0/GstCodecs-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devcodecs}
Summary:	Libraries for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libcodecs} = %{EVRD}
Provides:	gstcodecs%{api}-devel = %{EVRD}

%description -n %{devcodecs}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

%files -n %{devcodecs}
%doc COPYING
%{_libdir}/libgstcodecs-%{api}.so
%{_datadir}/gir-1.0/GstCodecs-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libtranscoder}
Summary:	Libraries for GStreamer streaming-transcoder framework
Group:		System/Libraries

%description -n %{libtranscoder}
GStreamer is a streaming-transcoder framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libtranscoder}
%doc COPYING
%{_libdir}/libgsttranscoder-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girtranscoder}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libtranscoder} = %{EVRD}

%description -n %{girtranscoder}
GObject Introspection interface description for %{name}.

%files -n %{girtranscoder}
%doc COPYING
%{_libdir}/girepository-1.0/GstTranscoder-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devtranscoder}
Summary:	Libraries for GStreamer streaming-transcoder framework
Group:		Development/C
Requires:	%{libtranscoder} = %{EVRD}
Provides:	gsttranscoder%{api}-devel = %{EVRD}

%description -n %{devtranscoder}
GStreamer is a streaming-transcoder framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

%files -n %{devtranscoder}
%doc COPYING
%{_includedir}/gstreamer-%{api}/gst/transcoder/*
%{_libdir}/libgsttranscoder-%{api}.so
%{_libdir}/pkgconfig/gstreamer-transcoder-%{api}.pc
%{_datadir}/gir-1.0/GstTranscoder-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libcodecparsers}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries
Conflicts:	%{_lib}gstphotography1.0_0 < 1.6.2

%description -n %{libcodecparsers}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libcodecparsers}
%doc COPYING
%{_libdir}/libgstcodecparsers-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devcodecparsers}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libcodecparsers} = %{EVRD}
Provides:	gstcodecparsers%{api}-devel = %{EVRD}
Conflicts:	%{_lib}gstphotographyi1.0-devel < 1.6.2

%description -n %{devcodecparsers}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins for  for %{name}.

%files -n %{devcodecparsers}
%doc COPYING
%{_libdir}/libgstcodecparsers-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/codecparsers/
%{_libdir}/pkgconfig/gstreamer-codecparsers-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{libinsertbin}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries
# package bug
Obsoletes:	%{_lib}gstinsertbin1.0_0-devel < 1.4.5-2

%description -n %{libinsertbin}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libinsertbin}
%doc COPYING
%{_libdir}/libgstinsertbin-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girinsertbin}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libinsertbin} = %{EVRD}

%description -n %{girinsertbin}
GObject Introspection interface description for %{name}.

%files -n %{girinsertbin}
%doc COPYING
%{_libdir}/girepository-1.0/GstInsertBin-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devinsertbin}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libinsertbin} = %{EVRD}
Requires:	%{girinsertbin} = %{EVRD}
Provides:	gstinsertbin%{api}-devel = %{EVRD}

%description -n %{devinsertbin}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins  for %{name}.

%files -n %{devinsertbin}
%doc COPYING
%{_libdir}/libgstinsertbin-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/insertbin/*
%{_libdir}/pkgconfig/gstreamer-insertbin-%{api}.pc
%{_datadir}/gir-1.0/GstInsertBin-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libisoff}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libisoff}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains libraries for %{name}.

%files -n %{libisoff}
%doc COPYING
%{_libdir}/libgstisoff-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devisoff}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libisoff} = %{EVRD}
Provides:	gstisoff%{api}-devel = %{EVRD}

%description -n %{devisoff}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins for %{name}.

%files -n %{devisoff}
%doc COPYING
%{_libdir}/libgstisoff-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/isoff/*.h

#----------------------------------------------------------------------------
%package -n %{libmpegts}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries
# package bug
Obsoletes:	%{_lib}gstmpegts1.0_0-devel < 1.4.5-2

%description -n %{libmpegts}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libmpegts}
%doc COPYING
%{_libdir}/libgstmpegts-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girmpegts}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libmpegts} = %{EVRD}

%description -n %{girmpegts}
GObject Introspection interface description for %{name}.

%files -n %{girmpegts}
%doc COPYING
%{_libdir}/girepository-1.0/GstMpegts-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devmpegts}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libmpegts} = %{EVRD}
Requires:	%{girmpegts} = %{EVRD}
Provides:	gstmpegts%{api}-devel = %{EVRD}

%description -n %{devmpegts}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins  for %{name}.

%files -n %{devmpegts}
%doc COPYING
%{_libdir}/libgstmpegts-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/mpegts/*
%{_libdir}/pkgconfig/gstreamer-mpegts-%{api}.pc
%{_datadir}/gir-1.0/GstMpegts-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libphoto}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libphoto}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libphoto}
%doc COPYING
%{_libdir}/libgstphotography-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devphoto}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libphoto} = %{EVRD}
Provides:	gstphotography%{api}-devel = %{EVRD}
Conflicts:	%{_lib}gstphotographyi1.0-devel < 1.6.2
Obsoletes:	%{_lib}gstphotographyi1.0-devel < 1.6.2

%description -n %{devphoto}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins  for %{name}.

%files -n %{devphoto}
%doc COPYING
%{_libdir}/libgstphotography-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/interfaces/photography*
%{_libdir}/pkgconfig/gstreamer-photography-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{libplayer}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libplayer}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libplayer}
%doc COPYING
%{_libdir}/libgstplayer-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girplayer}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libplayer} = %{EVRD}

%description -n %{girplayer}
GObject Introspection interface description for %{name}.

%files -n %{girplayer}
%doc COPYING
%{_libdir}/girepository-1.0/GstPlayer-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devplayer}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libplayer} = %{EVRD}
Requires:	%{girplayer} = %{EVRD}
Provides:	gstplayer%{api}-devel = %{EVRD}

%description -n %{devplayer}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins  for %{name}.

%files -n %{devplayer}
%doc COPYING
%{_libdir}/libgstplayer-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/player/*
%{_libdir}/pkgconfig/gstreamer-player-%{api}.pc
%{_datadir}/gir-1.0/GstPlayer-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libsctp}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libsctp}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains libraries for %{name}.

%files -n %{libsctp}
%doc COPYING
%{_libdir}/libgstsctp-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devsctp}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libsctp} = %{EVRD}
Provides:	gstsctp%{api}-devel = %{EVRD}

%description -n %{devsctp}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins for %{name}.

%files -n %{devsctp}
%doc COPYING
%{_libdir}/libgstsctp-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/sctp/*.h
%{_libdir}/pkgconfig/gstreamer-sctp-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{liburidownloader}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries
# package bug
Obsoletes:	%{_lib}gsturidownloader1.0_0-devel < 1.4.5-2

%description -n %{liburidownloader}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{liburidownloader}
%doc COPYING
%{_libdir}/libgsturidownloader-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devuridownloader}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{liburidownloader} = %{EVRD}
Provides:	gsturidownloader%{api}-devel = %{EVRD}

%description -n %{devuridownloader}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries and includes files necessary to develop
applications and plugins for %{name}.

%files -n %{devuridownloader}
%doc COPYING
%{_libdir}/libgsturidownloader-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/uridownloader/*

#----------------------------------------------------------------------------

%package -n %{libgstwayland}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstwayland}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything from
real-time sound processing to playing videos, and just about anything else
media-related. Its plugin-based architecture means that new data types or
processing capabilities can be added simply by installing new plug-ins.

This package contains the libraries for %{name}.

%files -n %{libgstwayland}
%doc COPYING
%{_libdir}/libgstwayland-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devgstwayland}
Summary:	Libraries for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libgstwayland} = %{EVRD}
Provides:	gstwayland%{api}-devel = %{EVRD}

%description -n %{devgstwayland}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.

This package contains the libraries for %{name}.

%files -n %{devgstwayland}
%doc COPYING
%{_libdir}/libgstwayland-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/wayland/wayland.h
%{_libdir}/pkgconfig/gstreamer-wayland-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{libwebrtc}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libwebrtc}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.

This package contains the libraries for %{name}.

%files -n %{libwebrtc}
%doc COPYING
%{_libdir}/libgstwebrtc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girwebrtc}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libwebrtc} = %{EVRD}

%description -n %{girwebrtc}
GObject Introspection interface description for %{name}.

%files -n %{girwebrtc}
%doc COPYING
%{_libdir}/girepository-1.0/GstWebRTC-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devwebrtc}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libwebrtc} = %{EVRD}
Requires:	%{girwebrtc} = %{EVRD}
Provides:	gstwebrtc%{api}-devel = %{EVRD}

%description -n %{devwebrtc}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.
This package contains the libraries and includes files necessary to develop
applications and plugins for GStreamer.

%files -n %{devwebrtc}
%doc COPYING
%{_libdir}/libgstwebrtc-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/webrtc/*.h
%{_libdir}/pkgconfig/gstreamer-webrtc-%{api}.pc
%{_datadir}/gir-1.0/GstWebRTC-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libplay}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libplay}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.

This package contains the libraries for %{name}.

%files -n %{libplay}
%doc COPYING
%{_libdir}/libgstplay-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girplay}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libplay} = %{EVRD}

%description -n %{girplay}
GObject Introspection interface description for %{name}.

%files -n %{girplay}
%doc COPYING
%{_libdir}/girepository-1.0/GstPlay-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devplay}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libplay} = %{EVRD}
Requires:	%{girplay} = %{EVRD}
Provides:	gstplay%{api}-devel = %{EVRD}

%description -n %{devplay}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.
This package contains the libraries and includes files necessary to develop
applications and plugins for GStreamer.

%files -n %{devplay}
%doc COPYING
%{_libdir}/libgstplay-%{api}.so
%{_includedir}/gstreamer-%{api}/gst/play/*.h
%{_libdir}/pkgconfig/gstreamer-play-%{api}.pc
%{_datadir}/gir-1.0/GstPlay-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{libgstva}
Summary:	Libraries for GStreamer streaming-media framework
Group:		System/Libraries

%description -n %{libgstva}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.

This package contains the libraries for %{name}.

%files -n %{libgstva}
%doc COPYING
%{_libdir}/libgstva-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devgstva}
Summary:	Libraries and include files for GStreamer streaming-media framework
Group:		Development/C
Requires:	%{libgstva} = %{EVRD}
Provides:	gstva%{api}-devel = %{EVRD}

%description -n %{devgstva}
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plugins.
This package contains the libraries and includes files necessary to develop
applications and plugins for GStreamer.

%files -n %{devgstva}
%doc COPYING
%{_libdir}/libgstva-%{api}.so
%{_libdir}/pkgconfig/gstreamer-va-%{api}.pc

#----------------------------------------------------------------------------

%if %{build_doc}
%package doc
Summary:	GStreamer plugins-bad documentation
Group:		Documentation
BuildArch:	noarch

%description doc
This is the documentation of %{name}.

%files doc
%doc docs/plugins/html
%{_datadir}/gtk-doc/html/
%endif

#----------------------------------------------------------------------------

%if %{build_amrwb}
# FIXME: perhaps this one was removed, since is never built
%package -n %{bname}-amrwb
Summary:	GStreamer plug-in for AMR-WB support
Group:		Sound
BuildRequires:	libamrwb-devel
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-amrwb
Plug-in for decoding AMR-WB under GStreamer.
This package is in restricted repository as it violates some patents.

%files -n %{bname}-amrwb
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstamrwbenc.so
%{_datadir}/gstreamer-%{api}/presets/GstAmrwbEnc.prs
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-curl
Summary:	GStreamer Curl plugin
Group:		Networking/Other
BuildRequires:	pkgconfig(libcurl) >= 7.35.0
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-curl
This is a HTTP plugin for GStreamer based on the curl library.

%files -n %{bname}-curl
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstcurl.so

#----------------------------------------------------------------------------

%if %{build_dts}
%package -n %{bname}-dts
Summary:	GStreamer plug-ins for DTS audio playback
Group:		Sound
BuildRequires:	pkgconfig(libdts)
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-dts
Plug-in for decoding DTS audio.

%files -n %{bname}-dts
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstdtsdec.so
%endif

#----------------------------------------------------------------------------

%if %{build_faad}
%package -n %{bname}-faac
Summary:	GStreamer plug-ins for AAC audio encoding
Group:		Sound
BuildRequires:	libfaac-devel
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-faac
Plug-in for encoding AAC audio.
This package is in restricted repository as it violates some patents.

%files -n %{bname}-faac
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstfaac.so

#----------------------------------------------------------------------------

%package -n %{bname}-faad
Summary:	GStreamer plug-in for AAC audio playback
Group:		Sound
BuildRequires:	libfaad2-devel >= 2.7
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-faad
Plug-in for playing AAC audio
This package is in restricted repository as it violates some patents.

%files -n %{bname}-faad
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstfaad.so
%endif

#----------------------------------------------------------------------------

%if %{build_gme}
%package -n %{bname}-gme
Summary:	GStreamer Game Music plug-in
Group:		Sound
BuildRequires:	pkgconfig(libgme) >= 0.5.6
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-gme
Game Music decoding plug-in.

%files -n %{bname}-gme
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstgme.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-gsm
Summary:	GStreamer plugin for GSM lossy audio format
Group:		Sound
BuildRequires:	gsm-devel >= 1.0.10
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-gsm
Output plugin for GStreamer to convert to GSM lossy audio format.

%files -n %{bname}-gsm
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstgsm.so

#----------------------------------------------------------------------------

%package -n %{bname}-ladspa
Summary:	GStreamer ladspa plug-in
Group:		Sound
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(lrdf)
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-ladspa
Ladspa support plug-in.

%files -n %{bname}-ladspa
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstladspa.so

#----------------------------------------------------------------------------

%package -n %{bname}-libass
Summary:	GStreamer subtitles plugin
Group:		Video
BuildRequires:	pkgconfig(libass) >= 0.10.2
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-libass
This is a subtitle plugin for GStreamer based on libass.

%files -n %{bname}-libass
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstassrender.so

#----------------------------------------------------------------------------

%package -n %{bname}-lv2
Summary:	GStreamer lv2 plug-in
Group:		Sound
BuildRequires:	pkgconfig(lilv-0) >= 0.22
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-lv2
Lv2 support plug-in.

%files -n %{bname}-lv2
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstlv2.so

#----------------------------------------------------------------------------

%package -n %{bname}-mms
Summary:	GStreamer plug-in for mms streams
Group:		System/Libraries
BuildRequires:	pkgconfig(libmms)
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-mms
Plug-in supporting the mms protocol, based on the libmms library.

%files -n %{bname}-mms
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstmms.so

#----------------------------------------------------------------------------

%package -n %{bname}-mpeg2enc
Summary:	GStreamer mjpegtools plug-in
Group:		Video
BuildRequires:	pkgconfig(mjpegtools) >= 2.0.0
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-mpeg2enc
Mjpegtools-based encoding and decoding plug-ins.

%files -n %{bname}-mpeg2enc
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstmpeg2enc.so
%{_libdir}/gstreamer-%{api}/libgstmplex.so

#----------------------------------------------------------------------------

%package -n %{bname}-rtmp
Summary:	GStreamer plug-in for rtmp streams
Group:		Networking/Other
BuildRequires:	pkgconfig(librtmp)
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-rtmp
Plug-in supporting the rtmp protocol based on the librtmp library.

%files -n %{bname}-rtmp
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstrtmp.so

#----------------------------------------------------------------------------

%package -n %{bname}-soundtouch
Summary:	GStreamer plug-in for SoundTouch support
Group:		Sound
BuildRequires:	pkgconfig(soundtouch) >= 1.4
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-soundtouch
Plug-in supporting the SoundTouch audio manipulation support.

%files -n %{bname}-soundtouch
%doc COPYING
%{_libdir}/gstreamer-%{api}/libgstsoundtouch.so

#----------------------------------------------------------------------------

%package -n %{bname}-transcoder
Summary:	GStreamer Transcoding API
Group:		Video
Requires:	%{bname}-plugins >= %{version}
Requires:	%{libtranscoder} = %{EVRD}

%description -n %{bname}-transcoder
GStreamer Transcoding API.

%files -n %{bname}-transcoder
%{_bindir}/gst-transcoder-%{api}

#----------------------------------------------------------------------------

%prep
%setup -qn gst-plugins-bad-%{version}
%apply_patches


%build
%meson \
	-Dpackage-name="%{_vendor} %{name} package" \
	-Dpackage-origin="%{bugurl}" \
	-Ddirectfb=disabled \
	-Dopenjpeg=enabled \
%if %{build_dts}
	-Ddts=enabled \
%endif
%if %{build_faad}
	-Dfaad=enabled
%endif

%meson_build


%install
%meson_install

%find_lang gst-plugins-bad-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13140 |21mr|gstreamer1.0-plugins-base-1.19.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api 1.0
%define	major 0

%define	bname gstreamer%{api}
%define	libname %mklibname gstreamer-plugins-base %{api} %{major}
%define	girname %mklibname gstreamer-plugins-base-gir %{api}
%define	devname %mklibname gstreamer-plugins-base %{api} -d

# Before 1.16.0 all those were in plugins-bad
%define	libgstgl %mklibname gstgl %{api} %{major}
%define	devgstgl %mklibname gstgl %{api} -d
%define gstgirgl %mklibname gstgl-gir %{api}

Summary:	GStreamer Streaming-media framework plug-ins
Name:		%{bname}-plugins-base
Version:	1.19.1
Release:	3
License:	LGPLv2+
Group:		Sound
Url:		http://gstreamer.freedesktop.org/
Source0:	http://gstreamer.freedesktop.org/src/gst-plugins-base/gst-plugins-base-%{version}.tar.xz
Patch0:		align.patch
Patch1:		gst-plugins-base-1.19.1-upstream-fix-totem.patch
#gw we need some fonts for the tests
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	gtk-doc >= 1.12
BuildRequires:	iso-codes
%ifarch %{ix86}
BuildRequires:	nasm => 0.90
%endif
BuildRequires:	alsa-oss-devel
BuildRequires:	gettext-devel
BuildRequires:	meson
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glib-2.0) >= 2.40.0
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-%{api}) >= %{version}
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(opus) >= 0.9.4
BuildRequires:	pkgconfig(orc-0.4) >= 0.4.24
BuildRequires:	pkgconfig(pango) >= 1.22.0
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(theora) >= 1.1
%ifarch %{x86_64} %{ix86} %{armx}
BuildRequires:	pkgconfig(valgrind)
%endif
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols) >= 1.15
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(zlib)
Provides:	%{bname}-plugins
Conflicts:	gstreamer1.0-plugins-bad < 1.16.0

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related. Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This package contains a set of reference plugins, base classes for other
plugins and helper libraries:
 * device plugins: x(v)imagesink, alsa, v4lsrc, cdparanoia.
 * containers: ogg.
 * codecs: vorbis, theora.
 * text: textoverlay, subparse.
 * sources: audiotestsrc, videotestsrc, gnomevfssrc.
 * network: tcp.
 * typefind.
 * audio processing: audioconvert, adder, audiorate, audioscale, volume.
 * visualisation: libvisual.
 * video processing: ffmpegcolorspace.
 * aggregate elements: decodebin, playbin.

%files -f gst-plugins-base-%{api}.lang
%doc AUTHORS README NEWS
%license COPYING
%{_bindir}/gst-discoverer-%{api}
%{_bindir}/gst-play-%{api}
%{_bindir}/gst-device-monitor-%{api}
%{_mandir}/man1/*
# Non-core plugins without external dependencies
%{_libdir}/gstreamer-%{api}/libgstalsa.so
%{_libdir}/gstreamer-%{api}/libgstadder.so
%{_libdir}/gstreamer-%{api}/libgstapp.so
%{_libdir}/gstreamer-%{api}/libgstaudioconvert.so
%{_libdir}/gstreamer-%{api}/libgstaudiomixer.so
%{_libdir}/gstreamer-%{api}/libgstaudiorate.so
%{_libdir}/gstreamer-%{api}/libgstaudioresample.so
%{_libdir}/gstreamer-%{api}/libgstaudiotestsrc.so
%{_libdir}/gstreamer-%{api}/libgstcompositor.so
%{_libdir}/gstreamer-%{api}/libgstencoding.so
%{_libdir}/gstreamer-%{api}/libgstgio.so
%{_libdir}/gstreamer-%{api}/libgstogg.so
%{_libdir}/gstreamer-%{api}/libgstopengl.so
%{_libdir}/gstreamer-%{api}/libgstopus.so
%{_libdir}/gstreamer-%{api}/libgstoverlaycomposition.so
%{_libdir}/gstreamer-%{api}/libgstpango.so
%{_libdir}/gstreamer-%{api}/libgstplayback.so
%{_libdir}/gstreamer-%{api}/libgstpbtypes.so
%{_libdir}/gstreamer-%{api}/libgstsubparse.so
%{_libdir}/gstreamer-%{api}/libgsttcp.so
%{_libdir}/gstreamer-%{api}/libgsttheora.so
%{_libdir}/gstreamer-%{api}/libgsttypefindfunctions.so
%{_libdir}/gstreamer-%{api}/libgstrawparse.so
%{_libdir}/gstreamer-%{api}/libgstvideoconvert.so
%{_libdir}/gstreamer-%{api}/libgstvideorate.so
%{_libdir}/gstreamer-%{api}/libgstvideoscale.so
%{_libdir}/gstreamer-%{api}/libgstvideotestsrc.so
%{_libdir}/gstreamer-%{api}/libgstvolume.so
%{_libdir}/gstreamer-%{api}/libgstvorbis.so
%{_libdir}/gstreamer-%{api}/libgstximagesink.so
%{_libdir}/gstreamer-%{api}/libgstxvimagesink.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GStreamer plugin libraries
Group:		System/Libraries
# The the GstGL compositor library was before in plugins-bad
%rename	%{libgstgl}
Conflicts:	%{_lib}gstgl1.0_0 < 1.16.0

%description -n %{libname}
This package contain the basic audio and video playback libraries and the
interfaces libraries.

%files -n %{libname}
%license COPYING
%{_libdir}/libgstaudio-%{api}.so.%{major}*
%{_libdir}/libgstapp-%{api}.so.%{major}*
%{_libdir}/libgstfft-%{api}.so.%{major}*
%{_libdir}/libgstgl-%{api}.so.%{major}*
%{_libdir}/libgstpbutils-%{api}.so.%{major}*
%{_libdir}/libgstriff-%{api}.so.%{major}*
%{_libdir}/libgstrtp-%{api}.so.%{major}*
%{_libdir}/libgstrtsp-%{api}.so.%{major}*
%{_libdir}/libgsttag-%{api}.so.%{major}*
%{_libdir}/libgstsdp-%{api}.so.%{major}*
%{_libdir}/libgstvideo-%{api}.so.%{major}*
%{_libdir}/libgstallocators-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	Object Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
# The the GstGL compositor library was before in plugins-bad
%rename	%{gstgirgl}
Conflicts:	%{_lib}gstgl-gir1.0 < 1.16.0

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/GstApp-%{api}.typelib
%{_libdir}/girepository-1.0/GstAudio-%{api}.typelib
%{_libdir}/girepository-1.0/GstGL-%{api}.typelib
%{_libdir}/girepository-1.0/GstGLEGL-%{api}.typelib
%{_libdir}/girepository-1.0/GstGLWayland-%{api}.typelib
%{_libdir}/girepository-1.0/GstGLX11-%{api}.typelib
%{_libdir}/girepository-1.0/GstPbutils-%{api}.typelib
%{_libdir}/girepository-1.0/GstRtp-%{api}.typelib
%{_libdir}/girepository-1.0/GstRtsp-%{api}.typelib
%{_libdir}/girepository-1.0/GstSdp-%{api}.typelib
%{_libdir}/girepository-1.0/GstTag-%{api}.typelib
%{_libdir}/girepository-1.0/GstVideo-%{api}.typelib
%{_libdir}/girepository-1.0/GstAllocators-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary: 	GStreamer Plugin Library Headers
Group: 		Development/C
Requires: 	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	libgstreamer%{api}-plugins-base-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
# gstvideoaggregator.h etc was moved here from plugins-bad
%rename	%{devgstgl}
Conflicts:	%{_lib}gstgl1.0-devel < 1.16.0

%description -n %{devname}
GStreamer support libraries header files.

%files -n %{devname}
%license COPYING
#% doc docs/libs/html docs/plugins/html
%{_includedir}/gstreamer-%{api}/gst/app/
%{_includedir}/gstreamer-%{api}/gst/audio
%{_includedir}/gstreamer-%{api}/gst/fft
%{_includedir}/gstreamer-%{api}/gst/gl/
%{_libdir}/gstreamer-%{api}/include/gst/gl/gstglconfig.h
%{_includedir}/gstreamer-%{api}/gst/pbutils
%{_includedir}/gstreamer-%{api}/gst/riff
%{_includedir}/gstreamer-%{api}/gst/rtsp
%{_includedir}/gstreamer-%{api}/gst/sdp
%{_includedir}/gstreamer-%{api}/gst/tag/
%{_includedir}/gstreamer-%{api}/gst/video/
%{_includedir}/gstreamer-%{api}/gst/rtp
%{_includedir}/gstreamer-%{api}/gst/allocators
%{_libdir}/pkgconfig/gstreamer-app-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-audio-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-gl-egl-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-gl-prototypes-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-gl-wayland-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-gl-x11-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-fft-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-gl-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-pbutils-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-plugins-base-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-riff-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-rtp-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-rtsp-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-sdp-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-tag-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-video-%{api}.pc
%{_libdir}/pkgconfig/gstreamer-allocators-%{api}.pc
%{_libdir}/libgstaudio-%{api}.so
%{_libdir}/libgstapp-%{api}.so
%{_libdir}/libgstfft-%{api}.so
%{_libdir}/libgstgl-%{api}.so
%{_libdir}/libgstpbutils-%{api}.so
%{_libdir}/libgstriff-%{api}.so
%{_libdir}/libgstrtp-%{api}.so
%{_libdir}/libgstrtsp-%{api}.so
%{_libdir}/libgsttag-%{api}.so
%{_libdir}/libgstsdp-%{api}.so
%{_libdir}/libgstvideo-%{api}.so
%{_libdir}/libgstallocators-%{api}.so
%{_datadir}/gir-1.0/GstApp-%{api}.gir
%{_datadir}/gir-1.0/GstAudio-%{api}.gir
%{_datadir}/gir-1.0/GstGL-%{api}.gir
%{_datadir}/gir-1.0/GstGLEGL-%{api}.gir
%{_datadir}/gir-1.0/GstGLWayland-%{api}.gir
%{_datadir}/gir-1.0/GstGLX11-%{api}.gir
%{_datadir}/gir-1.0/GstPbutils-%{api}.gir
%{_datadir}/gir-1.0/GstRtp-%{api}.gir
%{_datadir}/gir-1.0/GstRtsp-%{api}.gir
%{_datadir}/gir-1.0/GstSdp-%{api}.gir
%{_datadir}/gir-1.0/GstTag-%{api}.gir
%{_datadir}/gir-1.0/GstVideo-%{api}.gir
%{_datadir}/gir-1.0/GstAllocators-%{api}.gir
%{_datadir}/gst-plugins-base/%{api}/license-translations.dict
###

#----------------------------------------------------------------------------

### CDPARANOIA ###
%package -n %{bname}-cdparanoia
Summary:	Gstreamer plugin for CD audio input using CDParanoia IV
Group:		Sound
Requires:	%{name} = %{EVRD}
BuildRequires:	libcdda-devel >= 10.2

%description -n %{bname}-cdparanoia
Plugin for ripping audio tracks using cdparanoia under GStreamer.

%files -n %{bname}-cdparanoia
%license COPYING
%{_libdir}/gstreamer-%{api}/libgstcdparanoia.so

#----------------------------------------------------------------------------

%package -n %{bname}-libvisual
Summary:	GStreamer visualisations plug-in based on libvisual
Group:		Video
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(libvisual-0.4)

%description -n %{bname}-libvisual
This plugin makes visualisations based on libvisual available for
GStreamer applications.

%files -n %{bname}-libvisual
%license COPYING
%{_libdir}/gstreamer-%{api}/libgstlibvisual.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gst-plugins-base-%{version}

%build
%meson	\
	-Dpackage-name="%{_vendor} %{name} package" \
	-Dpackage-origin="%{bugurl}"
%meson_build

%install
%meson_install

%find_lang gst-plugins-base-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13141 |21mr|gstreamer1.0-plugins-good-1.19.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without	docs

%define	major		1.0
%define	majorminor	1.0
%define	bname		gstreamer1.0

Summary:	GStreamer Streaming-media framework plug-ins
Name:		%{bname}-plugins-good
Version:	1.19.1
Release:	4
Group:		Sound
License:	LGPLv2.1+
Url:		http://gstreamer.freedesktop.org/
Source0:	http://gstreamer.freedesktop.org/src/gst-plugins-good/gst-plugins-good-%{version}.tar.xz
Patch0:		CVE-2022-1920.patch
Patch1:		CVE-2022-1921.patch
# also fix CVE-2022-1923 CVE-2022-1924 CVE-2022-1925
Patch10:	CVE-2022-1922.patch
Patch11:	CVE-2022-2122.patch
BuildRequires:	gstreamer1.0-plugins-base >= %{version}
%if %{with docs}
BuildRequires:	gtk-doc >= 1.12
%endif
%ifarch %{ix86}
BuildRequires:	nasm
%endif
BuildRequires:	kernel-headers
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel >= 0.17
BuildRequires:	meson
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0) >= 2.40.0
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0) >= %{version}
BuildRequires:	pkgconfig(gdk-pixbuf-2.0) >= 2.8.0
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.15.0
BuildRequires:	pkgconfig(gudev-1.0) >= 147
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libpng) >= 1.5.1
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(orc-0.4) >= 0.4.17
BuildRequires:	pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(shout)
BuildRequires:	pkgconfig(taglib) >= 1.5
BuildRequires:	pkgconfig(theora)
%ifnarch %{mips} %{arm} %{riscv}
BuildRequires:	pkgconfig(valgrind)
%endif
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(zlib)
Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink
%rename	gstreamer1.0-voip
# gw this is the default http source:
Recommends:	%{bname}-soup
# Before they were in plugins-ugly
Conflicts:	%{bname}-lame < %{version}
Conflicts:	%{bname}-twolame < %{version}

%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related.  Its plugin-based architecture means that new data
types or processing capabilities can be added simply by installing new
plug-ins.

This package contains a set of plug-ins that are considered to have
good quality code, correct functionality, the preferred license (LGPL
for the plug-in code, LGPL or LGPL-compatible for the supporting
library). People writing elements should base their code on these
elements.

%files -f gst-plugins-good-%{majorminor}.lang
%doc AUTHORS COPYING README NEWS
%{_libdir}/gstreamer-%{majorminor}/libgstalaw.so
%{_libdir}/gstreamer-%{majorminor}/libgstalpha.so
%{_libdir}/gstreamer-%{majorminor}/libgstalphacolor.so
%{_libdir}/gstreamer-%{majorminor}/libgstapetag.so
%{_libdir}/gstreamer-%{majorminor}/libgstaudiofx.so
%{_libdir}/gstreamer-%{majorminor}/libgstaudioparsers.so
%{_libdir}/gstreamer-%{majorminor}/libgstauparse.so
%{_libdir}/gstreamer-%{majorminor}/libgstautodetect.so
%{_libdir}/gstreamer-%{majorminor}/libgstavi.so
%{_libdir}/gstreamer-%{majorminor}/libgstcairo.so
%{_libdir}/gstreamer-%{majorminor}/libgstcutter.so
%{_libdir}/gstreamer-%{majorminor}/libgstdebug.so
%{_libdir}/gstreamer-%{majorminor}/libgstdeinterlace.so
%{_libdir}/gstreamer-%{majorminor}/libgstdtmf.so
%{_libdir}/gstreamer-%{majorminor}/libgsteffectv.so
%{_libdir}/gstreamer-%{majorminor}/libgstflv.so
%{_libdir}/gstreamer-%{majorminor}/libgstequalizer.so
%{_libdir}/gstreamer-%{majorminor}/libgstflxdec.so
%{_libdir}/gstreamer-%{majorminor}/libgstgdkpixbuf.so
%{_libdir}/gstreamer-%{majorminor}/libgstgoom.so
%{_libdir}/gstreamer-%{majorminor}/libgstgoom2k1.so
%{_libdir}/gstreamer-%{majorminor}/libgstgtk.so
%{_libdir}/gstreamer-%{majorminor}/libgsticydemux.so
%{_libdir}/gstreamer-%{majorminor}/libgstid3demux.so
%{_libdir}/gstreamer-%{majorminor}/libgstimagefreeze.so
%{_libdir}/gstreamer-%{majorminor}/libgstinterleave.so
%{_libdir}/gstreamer-%{majorminor}/libgstisomp4.so
%{_libdir}/gstreamer-%{majorminor}/libgstjpeg.so
%{_libdir}/gstreamer-%{majorminor}/libgstlevel.so
%{_libdir}/gstreamer-%{majorminor}/libgstmatroska.so
%{_libdir}/gstreamer-%{majorminor}/libgstmonoscope.so
%{_libdir}/gstreamer-%{majorminor}/libgstmpg123.so
%{_libdir}/gstreamer-%{majorminor}/libgstmulaw.so
%{_libdir}/gstreamer-%{majorminor}/libgstmultifile.so
%{_libdir}/gstreamer-%{majorminor}/libgstmultipart.so
%{_libdir}/gstreamer-%{majorminor}/libgstnavigationtest.so
%{_libdir}/gstreamer-%{majorminor}/libgstossaudio.so
%{_libdir}/gstreamer-%{majorminor}/libgstoss4.so
%{_libdir}/gstreamer-%{majorminor}/libgstpng.so
%{_libdir}/gstreamer-%{majorminor}/libgstqmlgl.so
%{_libdir}/gstreamer-%{majorminor}/libgstreplaygain.so
%{_libdir}/gstreamer-%{majorminor}/libgstrtp.so
%{_libdir}/gstreamer-%{majorminor}/libgstrtpmanager.so
%{_libdir}/gstreamer-%{majorminor}/libgstrtsp.so
%{_libdir}/gstreamer-%{majorminor}/libgstshapewipe.so
%{_libdir}/gstreamer-%{majorminor}/libgstshout2.so
%{_libdir}/gstreamer-%{majorminor}/libgstsmpte.so
%{_libdir}/gstreamer-%{majorminor}/libgstspectrum.so
%{_libdir}/gstreamer-%{majorminor}/libgsttaglib.so
%{_libdir}/gstreamer-%{majorminor}/libgstudp.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideo4linux2.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideobox.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideocrop.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideofilter.so
%{_libdir}/gstreamer-%{majorminor}/libgstvideomixer.so
%{_libdir}/gstreamer-%{majorminor}/libgstwavenc.so
%{_libdir}/gstreamer-%{majorminor}/libgstwavparse.so
%{_libdir}/gstreamer-%{majorminor}/libgstximagesrc.so
%{_libdir}/gstreamer-%{majorminor}/libgsty4menc.so
%dir %{_datadir}/gstreamer-%{majorminor}/
%dir %{_datadir}/gstreamer-%{majorminor}/presets
%{_datadir}/gstreamer-%{majorminor}/presets/*
#%{_datadir}/gtk-doc/html/gst-plugins-good-plugins-%{major}/*

#----------------------------------------------------------------------------

%package -n %{bname}-aalib
Summary:	Gstreamer plugin for Ascii-art output
Group:		Video
BuildRequires:	aalib-devel >= 1.3
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-aalib
Plugin for viewing movies in Ascii-art using aalib library.

%files -n %{bname}-aalib
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstaasink.so

#----------------------------------------------------------------------------

%package -n %{bname}-caca
Summary:	Gstreamer plugin for Ascii-art output
Group:		Video
BuildRequires:	pkgconfig(caca)
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-caca
Plugin for viewing movies in Ascii-art using caca library.

%files -n %{bname}-caca
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstcacasink.so

#----------------------------------------------------------------------------

%package -n %{bname}-dv
Summary:	GStreamer DV plug-in
Group:		Video
Requires:	%{bname}-plugins >= %{version}
BuildRequires:	pkgconfig(libdv) >= 0.100

%description -n %{bname}-dv
Plug-in for digital video support using libdv.

%files -n %{bname}-dv
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstdv.so

#----------------------------------------------------------------------------

%package -n %{bname}-flac
Summary:	GStreamer plug-in for FLAC lossless audio
Group:		Sound
Requires:	%{bname}-plugins >= %{version}
BuildRequires:	pkgconfig(flac) >= 1.1.4

%description -n %{bname}-flac
Plug-in for the free FLAC lossless audio format.

%files -n %{bname}-flac
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstflac.so

#----------------------------------------------------------------------------

%package -n %{bname}-jack
Summary:	GStreamer plug-in for the Jack Sound Server
Group:		Sound
BuildRequires:	pkgconfig(jack) >= 1.9.7
Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink

%description -n %{bname}-jack
Plug-in for the JACK professional sound server.

%files -n %{bname}-jack
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstjack.so

#----------------------------------------------------------------------------

%package -n %{bname}-lame
Summary:	GStreamer plug-in for encoding mp3 songs using lame
Group:		Sound
BuildRequires:	lame-devel >= 3.89
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-lame
Plug-in for encoding mp3 with lame under GStreamer.

%files -n %{bname}-lame
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstlame.so

#----------------------------------------------------------------------------

%package -n %{bname}-pulse
Summary:	Pulseaudio plugin for GStreamer
Group:		Sound
Requires:	%{bname}-plugins >= %{version}
BuildRequires:	pkgconfig(libpulse) >= 2.0

%description -n %{bname}-pulse
This is a GStreamer audio output plugin using the Pulseaudio sound server.

%files -n %{bname}-pulse
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstpulseaudio.so

#----------------------------------------------------------------------------

%package -n %{bname}-raw1394
Summary:	GStreamer raw1394 Firewire plug-in
Group:		Video
Requires:	%{bname}-plugins >= %{version}
BuildRequires:	pkgconfig(libavc1394)
BuildRequires:	pkgconfig(libiec61883) >= 1.0.0
BuildRequires:	pkgconfig(libraw1394) >= 2.0.0

%description -n %{bname}-raw1394
Plug-in for digital video support using raw1394.

%files -n %{bname}-raw1394
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgst1394.so

#----------------------------------------------------------------------------

%package -n %{bname}-soup
Summary:	GStreamer HTTP plugin based on libsoup
Group:		Networking/Other
Requires:	%{bname}-plugins >= %{version}
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.48

%description -n %{bname}-soup
Plug-in for HTTP access based on libsoup.

%files -n %{bname}-soup
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstsoup.so

#----------------------------------------------------------------------------

%package -n %{bname}-speex
Summary:	Gstreamer plugin for encoding and decoding Ogg Speex audio files
Group:		Sound
Requires:	%{bname}-plugins >= %{version}
BuildRequires:	pkgconfig(speex) >= 1.1.6

%description -n %{bname}-speex
Plug-Ins for creating and playing Ogg Speex audio files.

%files -n %{bname}-speex
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstspeex.so

#----------------------------------------------------------------------------

%package -n %{bname}-twolame
Summary:	GStreamer plug-in for MP2 encoding support
Group:		Sound
BuildRequires:	pkgconfig(twolame)
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-twolame
Plug-in for encoding MP2 under GStreamer.

%files -n %{bname}-twolame
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgsttwolame.so

#----------------------------------------------------------------------------

%package -n %{bname}-wavpack
Summary:	Gstreamer plugin for encoding and decoding WavPack audio files
Group:		Sound
Requires:	%{bname}-plugins >= %{version}
BuildRequires:	pkgconfig(wavpack) >= 4.60

%description -n %{bname}-wavpack
Plug-Ins for creating and playing WavPack audio files.

%files -n %{bname}-wavpack
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstwavpack.so

#----------------------------------------------------------------------------

%package -n %{bname}-vp8
Summary:	GStreamer VP8 plug-in
Group:		Video
BuildRequires:	pkgconfig(vpx) >= 1.4.0

%description -n %{bname}-vp8
VP8 encoding and decoding plug-in.

%files -n %{bname}-vp8
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstvpx.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gst-plugins-good-%{version}

%build
%meson -D package-name="%{_vendor} %{name} package" \
    -D package-origin="https://bugzilla.rosalinux.ru/"
%meson_build

%install
rm -f gst-plugins-base-%{majorminor}.lang

%meson_install

%find_lang gst-plugins-good-%{majorminor}

# Clean out files that should not be part of the rpm.
# This is the recommended way of dealing with it for RH8
rm -f %{buildroot}%{_libdir}/gstreamer-%{majorminor}/*.la
rm -f %{buildroot}%{_libdir}/gstreamer-%{majorminor}/*.a
rm -f %{buildroot}%{_libdir}/*.a

#blino remove development doc since we don't ship devel files
rm -rf %{buildroot}%{_docdir}/docs/plugins/html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13142 |21mr|gstreamer1.0-plugins-ugly-1.19.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1.0
%define	majorminor 1.0
%define	bname gstreamer1.0

%bcond_without	docs
%bcond_with	experimental

%define	build_amrnb 1
%define	build_amrwbdec 1
%define	build_x264 1

Summary:	GStreamer Streaming-media framework plug-ins
Name:		%{bname}-plugins-ugly
Version:	1.19.1
Release:	1
License:	LGPLv2+
Group:		Sound
Source0:	http://gstreamer.freedesktop.org/src/gst-plugins-ugly/gst-plugins-ugly-%{version}.tar.xz
Url:		http://gstreamer.freedesktop.org/
# TODO: Switch to the meson build system
%if %{with docs}
BuildRequires:	gtk-doc >= 1.12
%endif

BuildRequires:	meson
BuildRequires:	gettext-devel >= 0.17
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(glib-2.0) >= 2.40.0
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0) >= %{version}
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(orc-0.4) >= 0.4.16
%ifnarch %{mips} %{arm} %{riscv}
BuildRequires:	pkgconfig(valgrind)
%endif
Requires:	%{bname}-a52dec
%if %{build_amrnb}
Requires:	%{bname}-amrnb
%endif
%if %{build_amrwbdec}
Requires:	%{bname}-amrwbdec
%endif
Requires:	%{bname}-cdio
Requires:	%{bname}-mpeg
Requires:	%{bname}-sid
%if %{build_x264}
Requires:	%{bname}-x264
%endif
Provides:	%{bname}-audiosrc
Provides:	%{bname}-audiosink
# Now in plugins-good
Obsoletes:	%{bname}-lame < %{version}
Obsoletes:	%{bname}-twolame < %{version}


%description
GStreamer is a streaming-media framework, based on graphs of filters which
operate on media data. Applications using this library can do anything
from real-time sound processing to playing videos, and just about anything
else media-related. Its plugin-based architecture means that new data types
or processing capabilities can be added simply by installing new plug-ins.

This package contains a set of plug-ins that have good quality and correct
functionality, but distributing them might pose problems. The license on
either the plug-ins or the supporting libraries might not be how the GStreamer
authors like. The code might be widely known to present patent problems.

%files -f gst-plugins-ugly-%{majorminor}.lang
%doc AUTHORS COPYING README NEWS
%{_libdir}/gstreamer-%{majorminor}/libgstasf.so
%{_libdir}/gstreamer-%{majorminor}/libgstdvdlpcmdec.so
%{_libdir}/gstreamer-%{majorminor}/libgstdvdread.so
%{_libdir}/gstreamer-%{majorminor}/libgstdvdsub.so
%{_libdir}/gstreamer-%{majorminor}/libgstrealmedia.so
%if %{with experimental}
# This one is never built
#{_libdir}/gstreamer-%%{majorminor}/libgstsynaesthesia.so
%endif
%{_libdir}/gstreamer-%{majorminor}/libgstxingmux.so

#----------------------------------------------------------------------------

%package -n %{bname}-a52dec
Summary:	GStreamer VOB decoder plugin
Group:		Sound
BuildRequires:	a52dec-devel >= 0.7.3
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-a52dec
Plugin for decoding of VOB files.

%files -n %{bname}-a52dec
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgsta52dec.so

#----------------------------------------------------------------------------

%if %{build_amrnb}
%package -n %{bname}-amrnb
Summary:	GStreamer plug-in for AMR-NB support
Group: 		Sound
BuildRequires:	pkgconfig(opencore-amrnb)
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-amrnb
Plug-in for decoding AMR-NB under GStreamer.

This package is in restricted repository as it violates some patents.

%files -n %{bname}-amrnb
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstamrnb.so
%{_datadir}/gstreamer-%{majorminor}/presets/GstAmrnbEnc.prs
%endif

#----------------------------------------------------------------------------

%if %{build_amrwbdec}
%package -n %{bname}-amrwbdec
Summary:	GStreamer plug-in for AMR-WB decoding support
Group:		Sound
BuildRequires:	pkgconfig(opencore-amrwb)
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-amrwbdec
Plug-in for decoding AMR-Wb under GStreamer.

This package is in restricted repository as it violates some patents.

%files -n %{bname}-amrwbdec
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstamrwbdec.so
%endif

#----------------------------------------------------------------------------

%package -n %{bname}-cdio
Summary:	GStreamer plug-in for audio CD playback
Group:		Sound
BuildRequires:	pkgconfig(libcdio) >= 0.76
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-cdio
Plug-in for audio CD playback.

%files -n %{bname}-cdio
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstcdio.so

#----------------------------------------------------------------------------

%package -n %{bname}-mpeg
Summary:	GStreamer plug-ins for MPEG video playback and encoding
Group:		Video
BuildRequires:	pkgconfig(libmpeg2) >= 0.5.1
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-mpeg
Plug-ins for playing and encoding MPEG video.

%files -n %{bname}-mpeg
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstmpeg2dec.so

#----------------------------------------------------------------------------

%package -n %{bname}-sid
Summary:	GStreamer Sid C64 music plugin
Group:		Sound
# Not compatible with 2.x.x
BuildRequires:	sidplay-devel => 1.36.0
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-sid
Plugin for playback of C64 SID format music files

%files -n %{bname}-sid
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstsid.so

#----------------------------------------------------------------------------

%if %{build_x264}
%package -n %{bname}-x264
Summary:	GStreamer plug-in for H264/AVC video encoding
Group:		Video
BuildRequires:	pkgconfig(x264) >= 0.120
Requires:	%{bname}-plugins >= %{version}

%description -n %{bname}-x264
Plug-in for encoding H264/AVC video.

This package is in restricted repository as it violates some patents.

%files -n %{bname}-x264
%doc COPYING
%{_libdir}/gstreamer-%{majorminor}/libgstx264.so
%{_datadir}/gstreamer-%{majorminor}/presets/GstX264Enc.prs
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn gst-plugins-ugly-%{version}

%build
%meson -D package-name="%{_vendor} %{name} package" \
    -D package-origin="https://bugzilla.rosalinux.ru/"
%meson_build

%install
%meson_install

%find_lang gst-plugins-ugly-%{majorminor}

#remove gtk-doc
rm -rf %{buildroot}%{_datadir}/gtk-doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13143 |21mr|gstreamer1.0-rtsp-server-1.18.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname gst-rtsp-server

%define	api 1.0
%define	major 0
%define	libname %mklibname gstrtspserver %{api} %{major}
%define	girname %mklibname gstrtspserver-gir %{api}
%define	devname %mklibname gstrtspserver %{api} -d

Summary:	RTSP server library for the GStreamer framework
Name:		gstreamer%{api}-rtsp-server
Version:	1.18.2
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://gstreamer.freedesktop.org
Source0:	https://gstreamer.freedesktop.org/src/%{oname}/%{oname}-%{version}.tar.xz
BuildRequires:	gettext-devel >= 0.17
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0) >= 2.40.0
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api})
BuildRequires:	pkgconfig(gstreamer-plugins-bad-%{api})
BuildRequires:	pkgconfig(pygobject-2.0)
BuildRequires:	pkgconfig(python)

%description
RTSP server based on GStreamer.

%files
%{_libdir}/gstreamer-%{api}/libgstrtspclientsink.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	RTSP server library for the GStreamer framework
Group:		System/Libraries

%description -n %{libname}
RTSP server based on GStreamer.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libgstrtspserver-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/GstRtspServer-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	RTSP server library for the GStreamer framework
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
RTSP server based on GStreamer.

%files -n %{devname}
%doc COPYING
%{_libdir}/libgstrtspserver-%{api}.so
%{_libdir}/pkgconfig/gstreamer-rtsp-server-%{api}.pc
%{_includedir}/gstreamer-%{api}/gst/rtsp-server
%{_datadir}/gir-1.0/GstRtspServer-%{api}.gir

#----------------------------------------------------------------------------


%prep
%setup -qn %{oname}-%{version}

%build
%meson \
	-Dexamples=disabled \
	-Dtests=disabled \
	-Ddoc=%{?with_docs:enabled}%{?!with_docs:disabled} \
	-Dpackage-name='%{_vendor} %{name} package' \
	-Dpackage-origin='https://www.%{_real_vendor}.org/'

%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13144 |21mr|gstreamer1.0-vaapi-1.18.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api 1.0

Summary:	VA-API support for GStreamer %{api}
Name:		gstreamer%{api}-vaapi
Version:	1.18.4
Release:	1
License:	LGPLv2+ and GPLv2+
Group:		Video
Url:		https://github.com/01org/gstreamer-vaapi
Source0: 	http://gstreamer.freedesktop.org/src/gstreamer-vaapi/gstreamer-vaapi-%{version}.tar.xz
# TODO: Switch to meson build system
BuildRequires:	meson
BuildRequires:	nasm
BuildRequires:	yasm
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(libglvnd)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-%{api})
BuildRequires:	pkgconfig(gstreamer-codecparsers-%{api})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api})
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(wayland-client) >= 1.11.0
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)

%description
Gstreamer-vaapi is a collection of VA-API based plugins for GStreamer
and helper libraries.
* Vaapidecode is used to decode MPEG-2, MPEG-4, H.264, VC-1, WMV3 videos to
video/x-vaapi-surface surfaces, depending on the underlying HW capabilities.
* Vaapiconvert is used to convert from video/x-raw-yuv pixels to
video/x-vaapi-surface surfaces.
* Vaapisink is used to display video/x-vaapi-surface surfaces to the screen.

%files
%doc NEWS README
%{_libdir}/gstreamer-%{api}/libgstvaapi.so

#----------------------------------------------------------------------------

%prep
%setup -qn gstreamer-vaapi-%{version}

%build
%meson \
       -Ddoc=disabled \
       -Dwith_encoders=yes \
       -Dwith_drm=yes \
       -Dwith_x11=yes \
       -Dwith_glx=yes \
       -Dwith_wayland=yes \
       -Dwith_egl=yes \
       --buildtype=release
%meson_build

%install
%meson_install
rm -rf %{buildroot}/%{_datadir}/gtk-doc/
find %{buildroot} -name "*.la" -delete


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13145 |21mr|gt-0.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Modified Timidity which supportes enhanced gus format patches
Name:		gt
Version:	0.4
Release:	9
License:	GPLv2+
Group:		Sound
Url:		http://alsa.opensrc.org/Gt
# This is ftp://ling.lll.hawaii.edu/pub/greg/gt-0.4.tar.gz
# with the examples/patch and sfz directories removed as the license of the
# samples in these dirs is unclear. Also the src/ac3* files have been removed
# as these contain patented code.
Source0:	%{name}-%{version}-clean.tar.gz
Patch0:		gt-0.4-noac3.patch
Patch1:		gt-0.4-compile-fix.patch
Patch2:		gt-0.4-optflags.patch
Patch3:		gt-0.4-config-default-velocity-layer.patch
Patch4:		gt-0.4-ppc-compile-fix.patch
Patch5:		gt-0.4-unsf-bigendian-fix.patch
Patch6:		gt-0.4-unsf-tremolo.patch
Patch7:		gt-0.4-glibc2.31.patch
BuildRequires:	flex
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(vorbis)

%description
Modified timidity midi player which supportes enhanced gus format patches and
surround audio output.

%files
%doc AUTHORS COPYING ChangeLog FEATURES NEWS README*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%package -n soundfont-utils
Summary:	Utilities for converting from / to various soundfont formats
Group:		Sound

%description -n soundfont-utils
Utilities for converting from / to various soundfont formats and a midi file
disassembler.

%files -n soundfont-utils
%doc utils/README* utils/GUSSF2-SPEC
%{_bindir}/*
%{_mandir}/man1/*
%exclude %{_bindir}/%{name}
%exclude %{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1
cp -p src/README README.timidity


%build
export CFLAGS="%{optflags} -fsigned-char"
%configure
# Building breaks on e2k when using highly parallel builds (-j32)
%make -j8


%install
%makeinstall_std
# Rename somewhat genericly named dim to midi-disasm
mv %{buildroot}%{_bindir}/dim %{buildroot}%{_bindir}/midi-disasm
mv %{buildroot}%{_mandir}/man1/dim.1 %{buildroot}%{_mandir}/man1/midi-disasm.1

sed -i 's/dim/midi-disasm/g' %{buildroot}%{_mandir}/man1/midi-disasm.1
touch -r utils/midifile.c %{buildroot}%{_mandir}/man1/midi-disasm.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13146 |21mr|gtest-1.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define mocklibname	%mklibname gmock %{major}
%define mockdevname %mklibname gmock -d
%global _python_bytecompile_build 0

Summary:	Google's framework for writing C++ tests
Name:		gtest
Version:	1.10.0
Release:	3
License:	BSD
Group:		Development/C++
Url:		https://github.com/abseil/googletest
Source0:	https://github.com/abseil/googletest/archive/release-%{version}.tar.gz
Patch0:		googletest-1.8.0-sonames.patch
BuildRequires:	cmake ninja
BuildRequires:	python2
%rename gmock

%description
Google's framework for writing C++ tests on a variety of platforms
(Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian). Based
on the xUnit architecture. Supports automatic test discovery, a rich
set of assertions, user-defined assertions, death tests, fatal and
non-fatal failures, value- and type-parameterized tests, various
options for running the tests, and XML test report generation.

#----------------------------------------------------------------------------

%package -n	%{mocklibname}
Summary:	Shared libraries for gmock
Group:		System/Libraries

%description -n	%{mocklibname}
Inspired by jMock, EasyMock, and Hamcrest, and designed with C++'s
specifics in mind, Google C++ Mocking Framework (or Google Mock for
short) is a library for writing and using C++ mock classes.

Google Mock:

 o lets you create mock classes trivially using simple macros,
 o supports a rich set of matchers and actions,
 o handles unordered, partially ordered, or completely ordered
   expectations,
 o is extensible by users, and
 o works on Linux, Mac OS X, Windows, Windows Mobile, minGW, and
   Symbian.

%files -n %{mocklibname}
%{_libdir}/libgmock*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Google's framework for writing C++ tests on a variety of platforms
(Linux, Mac OS X, Windows, Cygwin, Windows CE, and Symbian). Based
on the xUnit architecture. Supports automatic test discovery, a rich
set of assertions, user-defined assertions, death tests, fatal and
non-fatal failures, value- and type-parameterized tests, various
options for running the tests, and XML test report generation.

This package contains the shared %{name} libraries.

%files -n %{libname}
%{_libdir}/lib%{name}*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{mocklibname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_libdir}/lib%{name}*.so
%{_includedir}/%{name}
%{_libdir}/cmake/GTest
%{_libdir}/pkgconfig/gtest.pc
%{_libdir}/pkgconfig/gtest_main.pc
#----------------------------------------------------------------------------

%package -n %{mockdevname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{mocklibname} = %{EVRD}
Provides:	gmock-devel = %{EVRD}

%description -n %{mockdevname}
This package contains development files for %{name}.

%files -n %{mockdevname}
%{_libdir}/libgmock*.so
%{_includedir}/gmock
%{_libdir}/pkgconfig/gmock.pc
%{_libdir}/pkgconfig/gmock_main.pc
#----------------------------------------------------------------------------

%package source
Summary:	Source code for the %{name} test suite
Group:		Development/C++

%description source
Source code for the %{name} test suite.

%files source
%{_prefix}/src/googletest

#----------------------------------------------------------------------------

%prep
%autosetup -n googletest-release-%{version} -p1
find . -name "*.py" -exec sed -i 's|/usr/bin/env python|%__python2|' {} \;

%build
%ifarch %{e2k}
CXXFLAGS='%{optflags} -Wno-error=unused-function'
%endif
%cmake \
	-DBUILD_GMOCK:BOOL=ON \
	-DBUILD_GTEST:BOOL=ON \
	-DBUILD_SHARED_LIBS:BOOL=ON \
	-Dgtest_force_shared_crt:BOOL=ON \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

mkdir -p %{buildroot}%{_prefix}/src/googletest
rm -rf build
cp -a * %{buildroot}%{_prefix}/src/googletest/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13147 |21mr|gtk+2.0-2.24.33-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without gtkdoc
%bcond_with bootstrap
%bcond_with tests

%define pkgname gtk+
%define binary_version 2.10.0

%define api 2.0
%define major 0
%define libname %mklibname %{pkgname} %{api} %{major}
%define devname %mklibname %{pkgname} %{api} -d
# this isnt really a true lib pkg, but a modules/plugin pkg
%define modules %mklibname gtk-modules %{api}

%define gail_major 18
%define libgail %mklibname gail %{gail_major}
%define devgail %mklibname gail -d

%define girname %mklibname gtk-gir %{api}

Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Name:		%{pkgname}%{api}
Version:	2.24.33
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gtk.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/gtk+/2.24/%{pkgname}-%{version}.tar.xz
# extra IM modules (vietnamese and tamil) -- pablo
#gw TODO, needs to be fixed for 2.21.3
Patch0:		gtk+-2.13.1-extra_im.patch
# (fc) 2.0.6-8mdk fix infinite loop and crash in file selector when / and $HOME are not readable (bug #90)
Patch1:		gtk+-2.6.9-fileselectorfallback.patch
# (fwang) 2.22.1-3 use elementary theme by default if available
Patch2:		gtk+-defaulttheme.patch
# (fc) 2.20.0-2mdv allow window dragging toolbars / menubar (GNOME bug #611313)
Patch3:		gtk+-2.24.7-window-dragging.patch
# (fc) 2.20.0-3mdv allow specifying icon padding for tray icon (GNOME bug #583273) (Fedora)
Patch4:		gtk+-2.20.0-icon-padding.patch

BuildRequires:	cups-devel
#BuildRequires:	fam-devel # In contrib
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
%if %{with tests}
BuildRequires:	x11-server-xvfb
# gw tests will fail without this
BuildRequires:	fonts-ttf-dejavu
%endif
%if %{with gtkdoc}
BuildRequires:	gtk-doc
BuildRequires:	sgml-tools
BuildRequires:	texinfo
%endif
Requires:	%{name}-common = %{EVRD}
# MD to pull in all the orphaned module loaders
Requires:	fontconfig
Requires:	gdk-pixbuf2.0
Requires:	gio2.0
Requires:	pango-modules
# required for icon theme apis to work
Requires:	hicolor-icon-theme
# built as a subpackage of gtk3
Requires:	gtk-update-icon-cache
%if %{without bootstrap}
Recommends:	xdg-user-dirs-gtk
Recommends:	elementary-theme
%endif
Provides:	gtk2 = %{EVRD}
Provides:	%{pkgname}2 = %{EVRD}
Obsoletes:	%{pkgname}2 < %{EVRD}

%description
The gtk+ package contains the GIMP ToolKit (GTK+), a library for creating
graphical user interfaces for the X Window System.  GTK+ was originally
written for the GIMP (GNU Image Manipulation Program) image processing
program, but is now used by several other programs as well.

If you are planning on using the GIMP or another program that uses GTK+,
you'll need to have the gtk+ package installed.

%files
%doc README
%{_bindir}/gtk-query-immodules-%{api}

#----------------------------------------------------------------------------

%package common
Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Group:		System/Libraries
Requires:	%{modules} = %{EVRD}
Requires:	gtk2-modules = %{EVRD}
BuildArch:	noarch

%description common
This package contains the common files for the GTK+2.0 graphical user
interface.

%files common -f gtk20.lang
%{_datadir}/themes/
%dir %{_sysconfdir}/gtk-%{api}
%config(noreplace) %{_sysconfdir}/gtk-%{api}/im-multipress.conf

#----------------------------------------------------------------------------

%package -n %{modules}
Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Provides:	gtk2-modules = %{EVRD}
%if %{without bootstrap}
Recommends:	%{_lib}gtk-aurora-engine
%endif

%description -n %{modules}
This package contains the immodules, engines and printbackends libraries 
for %{name} to function properly.

%files -n %{modules}
%ghost %verify (not md5 mtime size) %config(noreplace) %{_sysconfdir}/gtk-%{api}/gtk.immodules.%{_lib}
%dir %{_libdir}/gtk-%{api}
%dir %{_libdir}/gtk-%{api}/bin
%{_libdir}/gtk-%{api}/bin/gtk-query-immodules-%{api}
%dir %{_libdir}/gtk-%{api}/modules
%dir %{_libdir}/gtk-%{api}/%{binary_version}
%dir %{_libdir}/gtk-%{api}/%{binary_version}/immodules
%dir %{_libdir}/gtk-%{api}/%{binary_version}/engines
%dir %{_libdir}/gtk-%{api}/%{binary_version}/printbackends
%{_libdir}/gtk-%{api}/%{binary_version}/immodules/*.so
%{_libdir}/gtk-%{api}/%{binary_version}/engines/*.so
%{_libdir}/gtk-%{api}/%{binary_version}/printbackends/*.so
# from gail lib
%{_libdir}/gtk-2.0/modules/libferret.so
%{_libdir}/gtk-2.0/modules/libgail.so

%post -n %{modules}
if [ "$1" = "2" ]; then
  if [ -f %{_sysconfdir}/gtk-%{api}/gtk.immodules ]; then
    rm -f %{_sysconfdir}/gtk-%{api}/gtk.immodules
  fi
fi
%{_libdir}/gtk-%{api}/bin/gtk-query-immodules-%{api} > %{_sysconfdir}/gtk-%{api}/gtk.immodules.%{_lib}

%filetriggerin -n %{modules} -- %{_libdir}/gtk-%{api}/%{binary_version}/immodules/
%{_libdir}/gtk-%{api}/bin/gtk-query-immodules-%{api} > %{_sysconfdir}/gtk-%{api}/gtk.immodules.%{_lib}

%filetriggerpostun -n %{modules} -- %{_libdir}/gtk-%{api}/%{binary_version}/immodules/
if [ -x %{_libdir}/gtk-%{api}/bin/gtk-query-immodules-%{api} ]; then %{_libdir}/gtk-%{api}/bin/gtk-query-immodules-%{api} > %{_sysconfdir}/gtk-%{api}/gtk.immodules.%{_lib}
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X11 backend of The GIMP ToolKit (GTK+)
Group:		System/Libraries

%description -n %{libname}
This package contains the X11 version of library needed to run
programs dynamically linked with gtk+.

%files -n %{libname}
%{_libdir}/libgdk-x11-%{api}.so.%{major}*
%{_libdir}/libgtk-x11-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Conflicts:	gir-repository < 0.6.5-4

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gdk-%{api}.typelib
%{_libdir}/girepository-1.0/GdkX11-%{api}.typelib
%{_libdir}/girepository-1.0/Gtk-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for GTK+ (GIMP ToolKit) applications
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	gtk2-devel = %{EVRD}
Provides:	%{pkgname}2-devel = %{EVRD}
Provides:	lib%{pkgname}%{api}-devel = %{EVRD}
Provides:	%{libname}-devel = %{EVRD}

%description -n %{devname}
The libgtk+-devel package contains the static libraries and header files
needed for developing GTK+ (GIMP ToolKit) applications. The libgtk+-devel
package contains GDK (the General Drawing Kit, which simplifies the interface
for writing GTK+ widgets and using GTK+ widgets in applications), and GTK+
(the widget set).

%files -n %{devname}
%doc docs/*.txt AUTHORS ChangeLog NEWS* README*
%doc %{_datadir}/gtk-doc/html/gdk2/
%doc %{_datadir}/gtk-doc/html/gtk2/
%{_bindir}/gtk-demo
%{_bindir}/gtk-builder-convert
%{_datadir}/aclocal/*
%{_datadir}/gtk-%{api}/
%{_includedir}/gtk-unix-print-%{api}/
%{_includedir}/gtk-%{api}/gdk
%{_includedir}/gtk-%{api}/gtk
%{_libdir}/gtk-%{api}/include
%{_libdir}/pkgconfig/gdk-%{api}.pc
%{_libdir}/pkgconfig/gtk+-%{api}.pc
%{_libdir}/pkgconfig/gtk+-unix-print-%{api}.pc
%{_libdir}/libgdk-x11-%{api}.so
%{_libdir}/libgtk-x11-%{api}.so
%{_datadir}/gir-1.0/Gdk-2.0.gir
%{_datadir}/gir-1.0/GdkX11-2.0.gir
%{_datadir}/gir-1.0/Gtk-2.0.gir
%{_libdir}/pkgconfig/*x11*

#----------------------------------------------------------------------------

%package -n %{libgail}
Summary:	GNOME Accessibility Implementation Library
Group:		System/Libraries

%description -n %{libgail}
Gail is the GNOME Accessibility Implementation Library

%files -n %{libgail}
%{_libdir}/libgailutil.so.%{gail_major}*

#----------------------------------------------------------------------------

%package -n %{devgail}
Summary:	Development libraries, include files for GAIL
Group:		Development/GNOME and GTK+
Requires:	%{libgail} = %{EVRD}
Provides:	gail-devel = %{EVRD}

%description -n %{devgail}
Gail is the GNOME Accessibility Implementation Library

%files -n %{devgail}
%{_datadir}/gtk-doc/html/gail-libgail-util
%{_libdir}/libgailutil.so
%{_includedir}/gail-1.0/
%{_libdir}/pkgconfig/gail.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}
%apply_patches

#needed by patches 4 & 13
#gw disable it for bootstrapping
mkdir -p m4
autoreconf -fi

%build
# fix crash in nautilus (GNOME bug #596977)
export CFLAGS=`echo %{optflags} | sed -e 's/-fomit-frame-pointer//g'`

#CONFIGURE_TOP=.. 
export CPPFLAGS="-DGTK_COMPILATION"
%configure \
	--disable-static \
	--enable-xinerama \
	--with-xinput=xfree

%make

%install
%makeinstall_std mandir=%{_mandir} RUN_QUERY_IMMODULES_TEST=false RUN_QUERY_LOADER_TEST=false

mkdir -p %{buildroot}%{_sysconfdir}/gtk-%{api}
touch %{buildroot}%{_sysconfdir}/gtk-%{api}/gtk.immodules.%{_lib}
mkdir -p %{buildroot}%{_libdir}/gtk-%{api}/modules

# Remove unpackaged files
rm -f %{buildroot}%{_bindir}/gtk-update-icon-cache
rm -f %{buildroot}%{_mandir}/man1/gtk-update-icon-cache.1*

# handle biarch packages
progs="gtk-query-immodules-%{api}"
mkdir -p %{buildroot}%{_libdir}/gtk-%{api}/bin
for f in $progs; do
  mv -f %{buildroot}%{_bindir}/$f %{buildroot}%{_libdir}/gtk-%{api}/bin/
  cat > %{buildroot}%{_bindir}/$f << EOF
#!/bin/sh
lib=%{_lib}
case ":\$1:" in
:lib*:) lib="\$1"; shift 1;;
esac
exec %{_prefix}/\$lib/gtk-%{api}/bin/$f \${1+"\$@"}
EOF
  chmod +x %{buildroot}%{_bindir}/$f
done


# Versionize python shebangs
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/gtk-builder-convert

%find_lang gtk20
%find_lang gtk20-properties
cat gtk20-properties.lang >> gtk20.lang

%check
%if %{with tests}
XDISPLAY=$(i=1; while [ -f /tmp/.X$i-lock ]; do i=$(($i+1)); done; echo $i)
%{_bindir}/Xvfb :$XDISPLAY &
export DISPLAY=:$XDISPLAY
make check
kill $(cat /tmp/.X$XDISPLAY-lock) ||:
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13148 |21mr|gtk+3.0-3.24.43-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%bcond_without gtkdoc
# Circle with tracker
%bcond_with bootstrap
%bcond_with tests

%define pkgname		gtk+
%define api		3
%define api_version	3.0
%define binary_version	3.0.0
%define major		0
%define libname		%mklibname %{pkgname} %{api} %{major}
%define devname		%mklibname %{pkgname} %{api_version} -d
# this isnt really a true lib pkg, but a modules/plugin pkg
%define modules		%mklibname gtk-modules %{api_version}

%define gail_major	0
%define libgail		%mklibname gail %{api} %{gail_major}
%define devgail		%mklibname gail %{api_version} -d

%define libgir		%mklibname gtk-gir %{api_version}

Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Name:		gtk+3.0
Version:	3.24.43
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gtk+
Source0:	https://download.gnome.org/sources/gtk+/%{url_ver}/%{pkgname}-%{version}.tar.xz
Patch0:		gtk+-3.24.30-anaconda-key-color.patch
Patch1:		gtk+-3.24.31-ru-po-translate.patch
#gw needed for gtk-update-icon-cache in gtk+3.0 3.0.9
%if %{with tests}
# gw tests will fail without this
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	x11-server-xvfb
%endif
%if %{with gtkdoc}
BuildRequires:	gtk-doc
BuildRequires:	sgml-tools
BuildRequires:	texlive-texinfo
%endif
BuildRequires:	meson
BuildRequires:	cups-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(atk-bridge-2.0)
BuildRequires:	pkgconfig(cairo)
#BuildRequires:	pkgconfig(cloudproviders) # In contrib
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
%if %{without bootstrap}
BuildRequires:	pkgconfig(tracker-sparql-3.0)
%endif
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
Requires:	%{name}-common = %{EVRD}
# MD to pull in all the orphaned module loaders
Requires:	fontconfig
Requires:	gdk-pixbuf2.0
Requires:	gio2.0
Requires:	glib2.0-common
Requires:	pango-modules
# standard icons
Requires:	adwaita-icon-theme
# required for icon theme apis to work
Requires:	hicolor-icon-theme
# split out in a subpackage
Requires:	gtk-update-icon-cache
%if %{without bootstrap}
Recommends:	xdg-user-dirs-gtk
%endif
Provides:	%{pkgname}%{api} = %{EVRD}
# compat with Fedora/RH
Provides:	gtk3 = %{EVRD}
Provides:	libgtk+3 = %{EVRD}

%description
The gtk+ package contains the GIMP ToolKit (GTK+), a library for creating
graphical user interfaces for the X Window System. GTK+ was originally
written for the GIMP (GNU Image Manipulation Program) image processing
program, but is now used by several other programs as well.

If you are planning on using the GIMP or another program that uses GTK+,
you'll need to have the gtk+ package installed.

%files
%doc README.md
%license COPYING
%{_bindir}/broadwayd
%{_bindir}/gtk-launch
%{_bindir}/gtk-query-immodules-%{api_version}-*
%{_bindir}/gtk-query-settings

#----------------------------------------------------------------------------

%package common
Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Group:		System/Libraries
BuildArch:	noarch

%description common
This package contains the common files for the GTK+3.0 graphical user
interface.

%files common -f gtk30.lang
%config(noreplace) %{_sysconfdir}/gtk-%{api_version}/im-multipress.conf
%{_datadir}/gettext/its/gtkbuilder.*
%{_datadir}/glib-2.0/schemas/org.gtk.Settings.ColorChooser.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gtk.Settings.EmojiChooser.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gtk.Settings.FileChooser.gschema.xml
%{_datadir}/themes
%{_mandir}/man1/broadwayd.1*
%{_mandir}/man1/gtk-launch.1*
%{_mandir}/man1/gtk-query-immodules-%{api_version}.1*
%{_mandir}/man1/gtk-query-settings.1*

#----------------------------------------------------------------------------

%package -n %{modules}
Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Group:		System/Libraries
Requires(post):	%{name}%{_isa} = %{EVRD}
Provides:	gtk%{api}-modules = %{EVRD}

%description -n %{modules}
This package contains the immodules, engines and printbackends libraries
for %{name} to function properly.

%files -n %{modules}
%ghost %verify (not md5 mtime size) %{_libdir}/gtk-%{api_version}/3.0.0/immodules.cache
%{_libdir}/gtk-%{api_version}/%{binary_version}/immodules
%{_libdir}/gtk-%{api_version}/%{binary_version}/printbackends
%dir %{_libdir}/gtk-%{api_version}/modules

%post -n %{modules}
if [ "$1" = "2" ]; then
	if [ -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules ]; then
		rm -f %{_sysconfdir}/gtk-%{api_version}/gtk.immodules
	fi
fi
%if "%{_lib}" != "lib"
	%{_bindir}/gtk-query-immodules-%{api_version}-64 --update-cache
%else
	%{_bindir}/gtk-query-immodules-%{api_version}-32 --update-cache
%endif

%filetriggerin -n %{modules} -- %{_libdir}/gtk-%{api_version}/%{binary_version}/immodules/
%if "%{_lib}" != "lib"
	%{_bindir}/gtk-query-immodules-%{api_version}-64 --update-cache
%else
	%{_bindir}/gtk-query-immodules-%{api_version}-32 --update-cache
%endif

%filetriggerpostun -n %{modules} -- %{_libdir}/gtk-%{api_version}/%{binary_version}/immodules/
%if "%{_lib}" != "lib"
	%{_bindir}/gtk-query-immodules-%{api_version}-64 --update-cache
%else
	%{_bindir}/gtk-query-immodules-%{api_version}-32 --update-cache
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries of The GIMP ToolKit (GTK+)
Group:		System/Libraries
# These modules are requierd by any program that attempts to print somethin using GTK possibilities
Requires:	%{modules}
Requires:	%{name}-common
Provides:	%{_lib}gtk%{api}_%{major} = %{EVRD}

%description -n %{libname}
This package contains the shared libraries needed to run programs dynamically
linked with gtk+.

%files -n %{libname}
%{_libdir}/libgdk-3.so.%{major}*
%{_libdir}/libgtk-3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgir}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{libgir}
GObject Introspection interface description for %{name}.

%files -n %{libgir}
%{_libdir}/girepository-1.0/Gdk-%{api_version}.typelib
%{_libdir}/girepository-1.0/GdkX11-%{api_version}.typelib
%{_libdir}/girepository-1.0/Gtk-%{api_version}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for GTK+ (GIMP ToolKit) applications
Group:		Development/GNOME and GTK+
Requires:	%{libgir} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(wayland-protocols)
Provides:	%{pkgname}%{api}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libgtk+-devel package contains the static libraries and header files
needed for developing GTK+ (GIMP ToolKit) applications. The libgtk+-devel
package contains GDK (the General Drawing Kit, which simplifies the interface
for writing GTK+ widgets and using GTK+ widgets in applications), and GTK+
(the widget set).

%files -n %{devname}
%doc docs/*.txt NEWS* README*
%{_bindir}/gtk3-demo
%{_bindir}/gtk3-demo-application
%{_bindir}/gtk3-icon-browser
%{_bindir}/gtk3-widget-factory
%{_bindir}/gtk-builder-tool
%{_bindir}/gtk-encode-symbolic-svg
%{_datadir}/aclocal/*
%{_datadir}/applications/gtk3-demo.desktop
%{_datadir}/applications/gtk3-icon-browser.desktop
%{_datadir}/applications/gtk3-widget-factory.desktop
%{_datadir}/gir-1.0/Gdk-%{api_version}.gir
%{_datadir}/gir-1.0/GdkX11-%{api_version}.gir
%{_datadir}/gir-1.0/Gtk-%{api_version}.gir
%{_datadir}/glib-2.0/schemas/org.gtk.Settings.Debug.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gtk.Demo.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gtk.exampleapp.gschema.xml
%{_datadir}/gtk-%{api_version}
%doc %{_datadir}/gtk-doc/html/gdk3
%doc %{_datadir}/gtk-doc/html/gtk3
%{_datadir}/icons/hicolor/*/apps/*.png
%{_includedir}/gtk-%{api_version}
%{_libdir}/libgdk-%{api}.so
%{_libdir}/libgtk-%{api}.so
%{_libdir}/pkgconfig/gdk-*%{api_version}.pc
%{_libdir}/pkgconfig/gtk+-*%{api_version}.pc
%{_mandir}/man1/gtk-builder-tool.1*
%{_mandir}/man1/gtk-encode-symbolic-svg.1*
%{_mandir}/man1/gtk3-demo-application.1*
%{_mandir}/man1/gtk3-demo.1*
%{_mandir}/man1/gtk3-icon-browser.1*
%{_mandir}/man1/gtk3-widget-factory.1*

#----------------------------------------------------------------------------

%package -n %{libgail}
Summary:	GNOME Accessibility Implementation Library
Group:		System/Libraries

%description -n %{libgail}
Gail is the GNOME Accessibility Implementation Library.

%files -n %{libgail}
%{_libdir}/libgailutil-%{api}.so.%{gail_major}*

#----------------------------------------------------------------------------

%package -n %{devgail}
Summary:	Development libraries, include files for GAIL
Group:		Development/GNOME and GTK+
Provides:	libgail-%{api_version}-devel = %{EVRD}
Requires:	%{libgail} = %{EVRD}

%description -n %{devgail}
Gail is the GNOME Accessibility Implementation Library

%files -n %{devgail}
%{_datadir}/gtk-doc/html/gail-libgail-util3
%{_includedir}/gail-%{api_version}
%{_libdir}/libgailutil-%{api}.so
%{_libdir}/pkgconfig/gail-%{api_version}.pc

#----------------------------------------------------------------------------

%package -n gtk-update-icon-cache
Summary:	Icon theme caching utility
Group:		System/Libraries

%description -n gtk-update-icon-cache
GTK+ can use the cache files created by gtk-update-icon-cache to avoid a lot of
system call and disk seek overhead when the application starts. Since the
format of the cache files allows them to be mmap()ed shared between multiple
applications, the overall memory consumption is reduced as well.

%files -n gtk-update-icon-cache
%doc COPYING
%{_bindir}/gtk-update-icon-cache
%{_mandir}/man1/gtk-update-icon-cache.1*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}
%apply_patches
sed -i "s/#3584e4/#7ab3db/g" gtk/theme/Adwaita/*.*

%build
# fix crash in nautilus (GNOME bug #596977)
export CFLAGS=`echo %{optflags} | sed -e 's/-fomit-frame-pointer//g'`
sed -i "/Werror=array-bounds/d" meson.build

%meson \
	-Dbroadway_backend=true	\
	-Dcolord=yes		\
	-Dgtk_doc=true		\
	-Dman=true		\
%if %{without bootstrap}
	-Dtracker3=true		\
%endif
	-Dxinerama=yes
#	-Dcloudproviders=true
%meson_build

%install
%meson_install

touch %{buildroot}%{_libdir}/gtk-%{api_version}/%{binary_version}/immodules.cache
mkdir -p %{buildroot}%{_libdir}/gtk-%{api_version}/modules

%if "%{_lib}" != "lib"
	mv %{buildroot}%{_bindir}/gtk-query-immodules-%{api_version} %{buildroot}%{_bindir}/gtk-query-immodules-%{api_version}-64
%else
	mv %{buildroot}%{_bindir}/gtk-query-immodules-%{api_version} %{buildroot}%{_bindir}/gtk-query-immodules-%{api_version}-32
%endif

%find_lang gtk30 gtk30-properties gtk30.lang

%check
%if %{with tests}
XDISPLAY=$(i=1; while [ -f /tmp/.X$i-lock ]; do i=$(($i+1)); done; echo $i)
%{_bindir}/Xvfb :$XDISPLAY &
export DISPLAY=:$XDISPLAY
make check
kill $(cat /tmp/.X$XDISPLAY-lock) ||:
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13149 |21mr|gtk4-4.7.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%bcond_without gtkdoc
%bcond_with bootstrap
%bcond_with tests

# Filter provides for private modules
%global __provides_exclude_from ^%{_libdir}/gtk-4.0

%define pkgname		gtk
%define api		4
%define api_version	4.0
%define binary_version	4.0.0
%define major		1
%define libname		%mklibname %{pkgname} %{api} %{major}
%define devname		%mklibname %{pkgname} %{api_version} -d
# this isnt really a true lib pkg, but a modules/plugin pkg
%define modules		%mklibname gtk-modules %{api_version}

%define libgir		%mklibname gtk-gir %{api_version}

Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Name:		gtk4
Version:	4.7.2
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gtk
Source0:	https://download.gnome.org/sources/gtk/%{url_ver}/%{pkgname}-%{version}.tar.xz
Patch0:		0001-disable-asm-optimizations.patch
%if %{with tests}
# gw tests will fail without this
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	x11-server-xvfb
%endif
BuildRequires:	gtk+3.0
BuildRequires:	meson
BuildRequires:	python3-gi
BuildRequires:	sassc
%if %{with gtkdoc}
BuildRequires:	gtk-doc
BuildRequires:	sgml-tools
BuildRequires:	texlive-texinfo
%endif
BuildRequires:	cups-devel
BuildRequires:	gettext-devel
BuildRequires:	python3dist(docutils)
BuildRequires:	python3dist(jinja2)
BuildRequires:	python3dist(markdown)
BuildRequires:	python3dist(markupsafe)
BuildRequires:	python3dist(pygments)
BuildRequires:	python3dist(toml)
BuildRequires:	python3dist(typogrify)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(atk-bridge-2.0)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gi-docgen)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(graphene-gobject-1.0)
BuildRequires:	pkgconfig(gstreamer-player-1.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(rest-0.7)
%ifnarch %{e2k}
BuildRequires:	pkgconfig(sysprof-capture-4)
BuildRequires:	pkgconfig(librsvg-2.0)
%endif
BuildRequires:	pkgconfig(tracker-sparql-3.0)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
Requires:	%{name}-common = %{EVRD}
# MD to pull in all the orphaned module loaders
Requires:	fontconfig
Requires:	gdk-pixbuf2.0
Requires:	gio2.0
Requires:	glib2.0-common
Requires:	pango-modules
# standard icons
Requires:	adwaita-icon-theme
# required for icon theme apis to work
Requires:	hicolor-icon-theme
# split out in a subpackage
Requires:	gtk-update-icon-cache
%if %{without bootstrap}
Recommends:	xdg-user-dirs-gtk
%endif
Provides:	%{pkgname}%{api} = %{EVRD}

%description
The gtk+ package contains the GIMP ToolKit (GTK+), a library for creating
graphical user interfaces for the X Window System. GTK+ was originally
written for the GIMP (GNU Image Manipulation Program) image processing
program, but is now used by several other programs as well.

If you are planning on using the GIMP or another program that uses GTK+,
you'll need to have the gtk+ package installed.

%files
%doc README.md
%{_bindir}/%{name}-broadwayd
%{_bindir}/%{name}-launch
%{_bindir}/%{name}-query-settings

#----------------------------------------------------------------------------

%package common
Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Group:		System/Libraries
BuildArch:	noarch

%description common
This package contains the common files for the GTK+3.0 graphical user
interface.

%files common -f %{name}0.lang
%{_datadir}/glib-2.0/schemas/org.gtk.%{name}.Settings.ColorChooser.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gtk.%{name}.Settings.EmojiChooser.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gtk.%{name}.Settings.FileChooser.gschema.xml
%{_mandir}/man1/%{name}-broadwayd.1.*
%{_mandir}/man1/%{name}-launch.1*
%{_mandir}/man1/%{name}-query-settings.1*

#----------------------------------------------------------------------------

%package -n %{modules}
Summary:	The GIMP ToolKit (GTK+), a library for creating GUIs
Group:		System/Libraries
Requires(post):	%{name} = %{EVRD}
Provides:	%{name}-modules = %{EVRD}

%description -n %{modules}
This package contains the printbackends libraries
for %{name} to function properly.

%files -n %{modules}
%{_libdir}/gtk-%{api_version}/%{binary_version}/printbackends

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries of The GIMP ToolKit (GTK+)
Group:		System/Libraries
# These modules are requierd by any program that attempts to print somethin using GTK possibilities
Requires:	%{modules}
Requires:	%{name}-common
Provides:	%{_lib}%{name}_%{major} = %{EVRD}

%description -n %{libname}
This package contains the shared libraries needed to run programs dynamically 
linked with gtk+.

%files -n %{libname}
%{_libdir}/libgtk-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgir}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{libgir}
GObject Introspection interface description for %{name}.

%files -n %{libgir}
%{_libdir}/girepository-1.0/Gdk-%{api_version}.typelib
%{_libdir}/girepository-1.0/GdkWayland-%{api_version}.typelib
%{_libdir}/girepository-1.0/GdkX11-%{api_version}.typelib
%{_libdir}/girepository-1.0/Gsk-%{api_version}.typelib
%{_libdir}/girepository-1.0/Gtk-%{api_version}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for GTK+ (GIMP ToolKit) applications
Group:		Development/GNOME and GTK+
Requires:	%{libgir} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(wayland-protocols)
Provides:	%{pkgname}%{api}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libgtk+-devel package contains the static libraries and header files
needed for developing GTK+ (GIMP ToolKit) applications. The libgtk+-devel
package contains GDK (the General Drawing Kit, which simplifies the interface
for writing GTK+ widgets and using GTK+ widgets in applications), and GTK+
(the widget set).

%files -n %{devname}
%doc docs/*.txt AUTHORS NEWS* README*
%license COPYING
%{_appdatadir}/org.gtk.Demo%{api}.appdata.xml
%{_appdatadir}/org.gtk.%{name}.NodeEditor.appdata.xml
%{_appdatadir}/org.gtk.IconBrowser%{api}.appdata.xml
%{_appdatadir}/org.gtk.PrintEditor%{api}.appdata.xml
%{_appdatadir}/org.gtk.WidgetFactory%{api}.appdata.xml
%{_bindir}/%{name}-builder-tool
%{_bindir}/%{name}-demo
%{_bindir}/%{name}-demo-application
%{_bindir}/%{name}-encode-symbolic-svg
%{_bindir}/%{name}-icon-browser
%{_bindir}/%{name}-node-editor
%{_bindir}/%{name}-print-editor
%{_bindir}/%{name}-widget-factory
%{_datadir}/applications/org.gtk.Demo%{api}.desktop
%{_datadir}/applications/org.gtk.IconBrowser%{api}.desktop
%{_datadir}/applications/org.gtk.%{name}.NodeEditor.desktop
%{_datadir}/applications/org.gtk.PrintEditor%{api}.desktop
%{_datadir}/applications/org.gtk.WidgetFactory%{api}.desktop
%{_datadir}/gettext/its/%{name}builder.*
%{_datadir}/gir-1.0/Gdk-%{api_version}.gir
%{_datadir}/gir-1.0/GdkWayland-%{api_version}.gir
%{_datadir}/gir-1.0/GdkX11-%{api_version}.gir
%{_datadir}/gir-1.0/Gsk-%{api_version}.gir
%{_datadir}/gir-1.0/Gtk-%{api_version}.gir
%{_datadir}/glib-2.0/schemas/org.gtk.Demo%{api}.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gtk.%{name}.Settings.Debug.gschema.xml
%{_datadir}/gtk-%{api_version}
%{_defaultdocdir}/g?k%{api}*
%{_iconsdir}/hicolor/*/apps/org.gtk.*.svg
%{_includedir}/gtk-%{api_version}
%{_libdir}/gtk-%{api_version}/%{binary_version}/media/libmedia-ffmpeg.so
%{_libdir}/gtk-%{api_version}/%{binary_version}/media/libmedia-gstreamer.so
%{_libdir}/libgtk-%{api}.so
%{_libdir}/pkgconfig/%{name}*.pc
%{_mandir}/man1/%{name}-builder-tool.1*
%{_mandir}/man1/%{name}-demo.1*
%{_mandir}/man1/%{name}-demo-application.1*
%{_mandir}/man1/%{name}-encode-symbolic-svg.1*
%{_mandir}/man1/%{name}-icon-browser.1*
%{_mandir}/man1/%{name}-node-editor.1*
%{_mandir}/man1/%{name}-widget-factory.1*

#----------------------------------------------------------------------------

%package update-icon-cache
Summary:	Icon theme caching utility
Group:		System/Libraries

%description update-icon-cache
GTK+ can use the cache files created by gtk-update-icon-cache to avoid a lot of
system call and disk seek overhead when the application starts. Since the
format of the cache files allows them to be mmap()ed shared between multiple
applications, the overall memory consumption is reduced as well.

%files update-icon-cache
%doc COPYING
%{_bindir}/%{name}-update-icon-cache
%{_mandir}/man1/%{name}-update-icon-cache.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgname}-%{version}
%ifnarch %{e2k}
%patch0 -p1 -R
%endif

%build
export CFLAGS="-fno-strict-aliasing -DG_DISABLE_CAST_CHECKS -DG_DISABLE_ASSERT `echo %{optflags} | sed -e 's/-fomit-frame-pointer//g'`"
%meson \
	-Dbroadway-backend=true	\
	-Dcolord=enabled	\
	-Df16c=enabled		\
	-Dgtk_doc=true		\
	-Dintrospection=enabled	\
	-Dman-pages=true	\
	-Dmedia-ffmpeg=enabled	\
	-Dprint-cups=enabled	\
%ifnarch %{e2k}
	-Dsysprof=enabled	\
%else
	-Dsysprof=disabled	\
%endif
	-Dtracker=enabled	\
	-Dvulkan=enabled
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}/gtk-%{api_version}
mkdir -p %{buildroot}%{_libdir}/gtk-%{api_version}/modules
mkdir -p %{buildroot}%{_libdir}/gtk-%{api_version}/%{binary_version}/theming-engines

# It's in wayland packages
rm -f %{buildroot}%{_bindir}/wayland-scanner
rm -f %{buildroot}%{_datadir}/aclocal/wayland-scanner.m4
rm -f %{buildroot}%{_includedir}/wayland-*.h
rm -f %{buildroot}%{_libdir}/libwayland-*
rm -f %{buildroot}%{_libdir}/pkgconfig/wayland-*

%find_lang %{name}0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13150 |21mr|gtk-aurora-engine-1.5.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name}
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

Summary:	Aurora engine for Gtk 2.x
Name:		gtk-aurora-engine
Version:	1.5.1
Release:	10
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://gnome-look.org/content/show.php/Aurora+Gtk+Engine?content=56438
Source0:	http://gnome-look.org/CONTENT/content-files/56438-aurora-%{version}.tar.bz2
Patch0:		animation.diff
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	%{libname} = %{EVRD}

%description
The goal of this theme is to provide a complete and consistent look
for Gtk. The theme aims to be very flexible in color choice, but
provide few other options otherwise. The theme includes some features
that do not seem to be available in other Gtk engines; it also allows
the theming of Gnome panel widgets.

%files
%doc aurora-1.5/README aurora-1.5/ChangeLog
%{_datadir}/themes/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries

%description -n %{libname}
Library files for %{name}.

%files -n %{libname}
%{_libdir}/gtk-2.0/*/engines/*.*

#----------------------------------------------------------------------------

%prep
%setup -qc %{name}-%{version}
tar xf *.tar.bz2
tar xf *.tar.gz
%apply_patches

# Fix bug 56215:
sed -i 's/\(^.*odd_row_color.*\)/\#\1/' Aurora/gtk-2.0/gtkrc

%build
pushd aurora-1.5
%configure --enable-animation
%make
popd

%install
%makeinstall_std -C aurora-1.5
mkdir -p %{buildroot}%{_datadir}/themes
cp -fr Aurora %{buildroot}%{_datadir}/themes/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13151 |21mr|gtkdialogs-2.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ready-to-use GTK+ dialog boxes
Name:		gtkdialogs
Version:	2.2
Release:	14
License:	GPLv2
Group:		System/Configuration/Packaging
Source0:	%{name}-%{version}.tar.bz2
Patch0:		gtkdialogs-2.2-fix-str-fmt.patch
Patch1:		gtkdialogs-2.2-no-strip.patch
Provides:	gchooser = %{version}-%{release}
Provides:	gmessage = %{version}-%{release}
Provides:	xtest = %{version}-%{release}
BuildRequires:	pkgconfig(gtk+-2.0)

%description
Ready-to-use GTK+ dialog boxes:
- xtest lets you test if X is running or not
- gmessage show a message and some buttons, it returns with the number of the
  pressed button
- gchooser presents a list of entries from which the user can choose
- gfilechooser helps choosing a filename or dirname

%prep
%setup -n %{name} -q
%apply_patches

%build
make clean
%make CFLAGS="%{optflags} %{?ldflags}"

%install
%makeinstall

%files
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13152 |21mr|gtk-doc-1.33.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global __requires_exclude perl\\(gtkdoc-common.pl\\)

%bcond_with tests

Summary:	API documentation generation tool for GTK+ and GNOME
Name:		gtk-doc
Version:	1.33.2
Release:	9
License:	GPLv2+ and GFDL
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/gtk-doc
Source0:	https://download.gnome.org/sources/gtk-doc/%{version}/%{name}-%{version}.tar.xz
# Partially revert a gtk-doc 1.31 change that broke e-d-s and NM builds
# https://bugzilla.redhat.com/show_bug.cgi?id=1775560
# https://gitlab.gnome.org/GNOME/gtk-doc/issues/98
# https://gitlab.gnome.org/GNOME/gtk-doc/issues/110
Patch0:		0001-Partially-revert-a-gtk-doc-1.31-change-that-broke-e-.patch
BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	gnome-doc-utils
BuildRequires:	itstool
BuildRequires:	openjade
BuildRequires:	rarian
BuildRequires:	source-highlight
BuildRequires:	xsltproc
#gw for building the checks
BuildRequires:	pkgconfig(glib-2.0)
%if %{with tests}
BuildRequires:	dblatex
BuildRequires:	python3-mock
%endif
Requires:	diffutils
Requires:	docbook-dtd43-xml
Requires:	docbook-style-xsl
Requires:	docbook-utils
Requires:	python3-six
Requires:	python3-pygments
Requires:	source-highlight
Requires:	xsltproc
Requires(post,postun):	rarian

%description
gtk-doc is a tool for generating API reference documentation.
it is used for generating the documentation for GTK+, GLib
and GNOME.

%files
%doc AUTHORS README doc/* examples
%{_bindir}/gtkdoc-check
%{_bindir}/gtkdoc-depscan
%{_bindir}/gtkdoc-fixxref
%{_bindir}/gtkdoc-mkdb
%{_bindir}/gtkdoc-mkhtml
%{_bindir}/gtkdoc-mkhtml2
%{_bindir}/gtkdoc-mkman
%{_bindir}/gtkdoc-rebase
%{_bindir}/gtkdoc-scan
%{_bindir}/gtkdoc-scangobj
%{_bindir}/gtkdocize
%{_datadir}/gtk-doc
%{_datadir}/pkgconfig/gtk-doc.pc
%{_datadir}/aclocal/*
%{_datadir}/cmake/GtkDoc/

#----------------------------------------------------------------------------

%package mkpdf
Summary:	API documentation PDF format generation tool for GTK+ and GNOME
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{EVRD}
Requires:	dblatex
Conflicts:	%{name} < 1.17-3

%description mkpdf
gtkdoc-mkpdf is a tool for generating API reference documentation in PDF
format. It is used for generating the documentation for GTK+, GLib and
GNOME.

%files mkpdf
%{_bindir}/gtkdoc-mkpdf

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Move this doc file to avoid name collisions
mv doc/README doc/README.docs

%build
export PYTHON=%{__python3}
%configure \
	--build=%{_build}

%make_build

%install
%make_install

# include shared directory
install -d -m 755 %{buildroot}%{_datadir}/gtk-doc/html

%if %{with tests}
%check
PERL5LIB=$(pwd) PATH=$PATH:$(pwd) make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13153 |21mr|gtk-engines2-2.20.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname     gtk-engines
%define pkgversion  2
%define libname     %mklibname %{name}

%define cleanice_version    2.4.1
%define bluecurve_version   1.0.0
%define mist_version        0.5
%define nimbus_version      0.1.7
%define lightbluehouse_rel  eq3
%define lightbluehouse_version  2.7.5
%define nodoka_version      0.7.5
%define equinox_version     1.50
%define ubuntulooks_version 0.9.12

%global __requires_exclude pkgconfig\\\(.*\\\)

%define gtkbinaryver %(if $([ -x %{_bindir}/pkg-config ] && pkg-config --exists gtk+-2.0); then pkg-config --variable=gtk_binary_version gtk+-2.0; else echo 0; fi)

Summary:	Default GTK+ 2.0 theme engines
Name:		%{pkgname}%{pkgversion}
Version:	2.20.2
Release:	16
License:	GPLv2+ and LGPLv2+
Group:		System/Libraries
Url:		ftp://ftp.gnome.org/pub/GNOME/sources/gtk-engines/
Source0:	https://download.gnome.org/sources/gtk-engines/gtk-engines-%{version}.tar.bz2
Source1:	http://prdownloads.sourceforge.net/elysium-project/gtk-engines-cleanice-%{cleanice_version}.tar.bz2
Source2:	http://themes.freshmeat.net/redir/gtk2flat/31385/url_tgz/gtk2flat-default.tar.bz2
Source3:	bluecurve-gtk-themes-%{bluecurve_version}.tar.bz2
Source4:	http://dlc.sun.com/osol/jds/downloads/extras/nimbus/nimbus-%{nimbus_version}.tar.bz2
#http://gnome-look.org/content/show.php/LighthouseBlue+GTK2+Engine?content=137266
Source5:	http://gnome-look.org/CONTENT/content-files/137266-gtk-engines-lighthouseblue-%{lightbluehouse_version}-%{lightbluehouse_rel}.tar.gz
#http://fedoraproject.org/wiki/Artwork/NodokaTheme
Source6:	https://fedorahosted.org/released/nodoka/gtk-nodoka-engine-%{nodoka_version}.tar.gz
#http://gnome-look.org/content/show.php?content=121881
Source7:	http://gnome-look.org/CONTENT/content-files/121881-equinox-%{equinox_version}.tar.gz
Source8:	http://gnome-look.org/CONTENT/content-files/140448-equinox-themes-1.30.tar.gz
# http://gnome-look.org/content/show.php?content=56438
Source11:	http://archive.ubuntu.com/ubuntu/pool/main/u/ubuntulooks_%{ubuntulooks_version}.orig.tar.gz
#http://gnome-look.org/content/show.php/xl_cheeselooks+gtk-engine?content=73163
Source12:	xl_cheeselooks_Engine_Themes.tar.gz
Source13:	http://gnome-look.org/CONTENT/content-files/75868-xl_cheeselooks_ThemePack.tar.gz
Patch1:		gtk-engines-2.20.2-glib.patch
Patch2:		gtk-engines-2.20.2-automake-1.13.patch
Patch3:		equinox-engine-1.5.0-glib.patch
Patch4:		ubuntulooks-0.9.12-fix_listview_arrows_drawing.patch
Patch5:		ubuntulooks-0.9.12-fix_tick_box_drawing.patch
Patch6:		ubuntulooks-0.9.12-fix-firefox-buttons.patch
Patch7:		xl-cheese-engine-1.1-missing_automake_files.patch
Patch8:		0001-Work-around-bug-in-automake.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	icon-naming-utils
Requires:	%{libname} = %{EVRD}
Provides:	gtk-clearlooks-engine = %{EVRD}
Provides:	gtk-hcengine = %{EVRD}
Provides:	gtk-equinox-engine = %{EVRD}
Provides:	gtk-nodoka-engine = %{EVRD}
Provides:	gtk-nodoka-engine-extras = %{EVRD}
#Recommends:	nimbus-icon-theme
Conflicts:	gtk-hcengine < 2.20.2-16
Conflicts:	gtk-clearlooks-engine < 2.20.2-16
Obsoletes:	gtk-hcengine < 2.20.2-16
Obsoletes:	gtk-clearlooks-engine < 2.20.2-16

%description
These are the graphical engines for the various GTK2+ toolkit themes.
Included themes are:

  - Notif
  - Redmond95
  - Pixmap
  - Metal (swing-like)
  - Equinox
  - Nodoka
  - Nimbus
  - Many more...

%files
%doc README AUTHORS Nimbus-AUTHORS Lighthouseblue-AUTHORS Nodoka-AUTHORS Equinox-AUTHORS Ubuntulooks-AUTHORS Xlcheese-AUTHORS
%{_datadir}/themes/Bluecurve*/
%{_datadir}/themes/Clearlooks/
%{_datadir}/themes/Crux/
%{_datadir}/themes/Equinox*
%{_datadir}/themes/Flat/
%{_datadir}/themes/Human/
%{_datadir}/themes/Industrial/
%{_datadir}/themes/LighthouseBlue/
%{_datadir}/themes/Mist/
%{_datadir}/themes/Nodoka*/
%{_datadir}/themes/Redmond/
%{_datadir}/themes/ThinIce/
%{_datadir}/themes/blueboo/
%{_datadir}/themes/brightOrangexl_dark/
%{_datadir}/themes/*nimbus/
%{_datadir}/themes/userChrome.css
%{_datadir}/themes/xl_*/
%dir %{_datadir}/gtk-engines/
%{_datadir}/gtk-engines/clearlooks.xml
%{_datadir}/gtk-engines/crux-engine.xml
%{_datadir}/gtk-engines/glide.xml
%{_datadir}/gtk-engines/hcengine.xml
%{_datadir}/gtk-engines/industrial.xml
%{_datadir}/gtk-engines/mist.xml
%{_datadir}/gtk-engines/redmond95.xml
%{_datadir}/gtk-engines/thinice.xml
%{_datadir}/gtk-engines/xl_cheeselooks.xml

# --------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries
Requires:	gtk+2.0 >= 2.9.0
Conflicts:	%{_lib}gtk-hcengine < 2.20.2-16
Conflicts:	%{_lib}gtk-clearlooks-engine < 2.20.2-16
Obsoletes:	%{_lib}gtk-hcengine < 2.20.2-16
Obsoletes:	%{_lib}gtk-clearlooks-engine < 2.20.2-16

%description -n %{libname}
Library files for %{name}.

%files -n %{libname}
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libbluecurve.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libcleanice.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libclearlooks.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libcrux-engine.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libequinox.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libflat.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libglide.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libhcengine.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libindustrial.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/liblighthouseblue.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libluaengine.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libmist.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libnimbus.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libnodoka.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libredmond95.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libthinice.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libubuntulooks.so
%{_libdir}/gtk-2.0/%{gtkbinaryver}/engines/libxl_cheeselooks.so

# ------------------------------------------------------------------------

%package -n nimbus-icon-theme
Summary:	Nimbus icon theme
Group:		Graphical desktop/Other
BuildArch:	noarch

%description -n nimbus-icon-theme
Opensolaris icon theme for Gnome and other desktops.

%files -n nimbus-icon-theme
%dir %{_datadir}/icons/nimbus/
%{_datadir}/icons/nimbus/*x*

#----------------------------------------------------------------------------

%package devel
Summary:	Pkgconfig file for %{name}
Group:		Development/Other
Requires:	%{name} >= %{version}
Conflicts:	%{_lib}gtk-engines2 < 2.20.2-16

%description devel
Pkgconfig file for %{name}.

%files devel
%{_libdir}/pkgconfig/gtk-engines-2.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n gtk-engines-%{version} -a 1 -a 2 -a 3 -a 4 -a 5 -a 6 -a 7 -a 11 -a 12 -a 13

#remove broken automake symlinks for xlcheese engine
rm -r xl_cheeselooks_Engine_Themes/gtk-enginesxl_cheese/{depcomp,INSTALL,install-sh,missing}
%autopatch -p1
(mkdir -p equinox-1.50/themes && %__tar fx %{SOURCE8} -C equinox-1.50/themes)
find . -name "*~" -delete

%build
# does not work because of $(filter...
autoreconf -vfi

# Build: gtk-engines
%configure \
	--disable-static \
	--enable-lua \
	--with-system-lua \
	--enable-animation
%make

# Build: gtk-engines-cleanice
pushd gtk-engines-cleanice-%{cleanice_version}/
autoreconf -vfi
%configure \
	--disable-static
%make
popd

# Build: gtk-flat-theme
pushd gtk-flat-theme-2.0/
autoreconf -vfi
%configure \
	--disable-static
%make
popd

# Build: bluecurve
pushd bluecurve-gtk-themes-%{bluecurve_version}/
autoreconf -vfi
%configure \
	--disable-static
%make
popd

# Build: equinox
pushd equinox-%{equinox_version}
autoreconf -vfi
%configure \
	--disable-static \
	--enable-animation
%make
popd

# Build: gtk-nodoka-engine
pushd gtk-nodoka-engine-%{nodoka_version}
autoreconf -vfi
%configure \
	--disable-static \
	--with-gtk=2.0
%make
popd

# Build: gtk-engines-lighthouseblue
pushd gtk-engines-lighthouseblue-%{lightbluehouse_version}-eq1.2
autoreconf -vfi
%configure \
	--disable-static
%make
popd

# Build: nimbus
pushd nimbus-%{nimbus_version}
autoreconf -vfi
%configure \
	--disable-static
%make
popd

# Build: ubuntulooks
pushd ubuntulooks-%{ubuntulooks_version}
autoreconf -vfi
%configure \
	--disable-static \
	--enable-animation
%make
popd

# Build: xl_cheese
pushd xl_cheeselooks_Engine_Themes/gtk-enginesxl_cheese
autoreconf -vfi
%configure \
	--disable-static
make clean
%make
popd

%install
# Install: cleanice
pushd gtk-engines-cleanice-%{cleanice_version}/
%makeinstall_std
popd

# Install: flat
pushd gtk-flat-theme-2.0/
%makeinstall_std
popd

# Install: bluecurve
pushd bluecurve-gtk-themes-%{bluecurve_version}/
%makeinstall_std
popd

# Install: equinox
pushd equinox-%{equinox_version}
%makeinstall_std
cp -ar themes/* %{buildroot}%{_datadir}/themes
install -D -m 644 AUTHORS ../Equinox-AUTHORS
popd

# Install: nodoka
pushd gtk-nodoka-engine-%{nodoka_version}
%makeinstall_std
install -m 644 AUTHORS ../Nodoka-AUTHORS
popd

# Install: lighthouseblue
pushd gtk-engines-lighthouseblue-%{lightbluehouse_version}-eq1.2
%makeinstall_std
install -m 644 AUTHORS ../Lighthouseblue-AUTHORS
popd

# Install: nimbus
pushd nimbus-%{nimbus_version}
%makeinstall_std
install -m 644 AUTHORS ../Nimbus-AUTHORS
popd

pushd ubuntulooks-%{ubuntulooks_version}
%makeinstall_std
install -m 644 AUTHORS ../Ubuntulooks-AUTHORS
popd

# Install: xlcheese
pushd xl_cheeselooks_Engine_Themes/gtk-enginesxl_cheese
%makeinstall_std
install -m 644 engines/xl_cheeselooks/AUTHORS ../../Xlcheese-AUTHORS
popd
cp -ar xl_cheeselooks_Engine_Themes/{blueboo,xl_cheeselooks_LightAlt,brightOrangexl_dark,xl_cheeselooksBlueMono,xl_monochrome,xl_cheeselooks_Dark} %{buildroot}%{_datadir}/themes/
cp -ar xl_cheeselooks_ThemePack/* %{buildroot}%{_datadir}/themes/

# Install 'main' pkg last
%makeinstall_std

#remove empty files
rm -f %{buildroot}%{_datadir}/themes/*/ICON.png \

#gw needed at build time only
rm -rf %{buildroot}%{_datadir}/locale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13154 |21mr|gtkhtml4-4.6.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define oname gtkhtml
%define api_version 4.0
%define libname %mklibname %{oname} %{api_version} %{major}
%define develname %mklibname -d %{oname} %{api_version}

Summary: HTML rendering/editing library
Name: gtkhtml4
Version: 4.6.6
Release: 7
License: LGPLv2+
Group: Graphical desktop/GNOME
URL: http://ftp.gnome.org/pub/gnome/sources/gtkhtml/
Source0: http://ftp.gnome.org/pub/GNOME/sources/gtkhtml/4.6/%{oname}-%{version}.tar.xz

BuildRequires:	intltool
BuildRequires:	pkgconfig(enchant) >= 1.1.7
BuildRequires:	pkgconfig(gail-3.0) >= 3.0.2
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.0.2
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(cairo) >= 1.10.0
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.26.0
BuildRequires:	pkgconfig(gnome-icon-theme) >= 2.22.0

Requires:	%{libname} >= %{version}-%{release}

%description 
GtkHTML is a HTML rendering/editing library.  GtkHTML is
not designed to be the ultimate HTML browser/editor: instead, it is
designed to be easily embedded into applications that require
lightweight HTML functionality.

GtkHTML was originally based on KDE's KHTMLW widget, but is now
developed independently of it.  The most important difference between
KHTMLW and GtkHTML, besides being GTK-based, is that GtkHTML is also
an editor.  Thanks to the Bonobo editor component that comes with the
library, it's extremely simple to add HTML editing to an existing
application.

%package -n %{libname}
Summary:	Libraries for GtkHTML
Group:		System/Libraries

%description -n %{libname}
GtkHTML is a HTML rendering/editing library.  GtkHTML is
not designed to be the ultimate HTML browser/editor: instead, it is
designed to be easily embedded into applications that require
lightweight HTML functionality.

This package contains libraries used by GtkHTML.

%package -n %{develname}
Summary:	Development libraries, header files and utilities for GtkHTML
Group:		Development/GNOME and GTK+
#Requires:	%{name} = %{version}
Requires:	%{libname} = %{version}
Provides:	%{oname}-%{api_version}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
GtkHTML is a HTML rendering/editing library.  GtkHTML is
not designed to be the ultimate HTML browser/editor: instead, it is
designed to be easily embedded into applications that require
lightweight HTML functionality.

This package contains the files necessary to develop applications with GtkHTML.

%prep
%setup -qn %{oname}-%{version}

%build
%configure \
	--disable-static \
	--program-suffix=4

%make

%install
rm -rf %{buildroot}
%makeinstall_std
find %{buildroot} -name "*.la" -delete
%{find_lang} %{oname}-%{api_version}

%files -f %{oname}-%{api_version}.lang
%doc AUTHORS NEWS README TODO COPYING
%{_datadir}/gtkhtml-%{api_version}

%files -n %{libname}
%{_libdir}/libgtkhtml-%{api_version}.so.%{major}*
%{_libdir}/libgtkhtml-editor-%{api_version}.so.%{major}*

%files -n %{develname}
%doc ChangeLog
%{_bindir}/gtkhtml-editor-test4
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13155 |21mr|gtkimageview-1.6.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major	0
%define lib_name	%mklibname %{name} %{lib_major}
%define lib_name_devel	%mklibname %{name} -d

Summary:	Simple image viewer widget for GTK
Name:		gtkimageview
Version:	1.6.4
Release:	9
License:	LGPLv2+
Group:		System/Libraries
URL:		http://trac.bjourne.webfactional.com/
Source0:	http://trac.bjourne.webfactional.com/attachment/wiki/WikiStart/gtkimageview-%{version}.tar.gz
# (fc) 1.3.0-1mdv disable -Werror flag
Patch0:		gtkimageview-1.3.0-nowerror.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	gtk-doc
BuildRequires:	automake1.9
BuildRequires:	gnome-common
Requires:	common-licenses

%description
GtkImageView is a widget that provides a zoomable and panable view of
a GdkPixbuf. It is intended to be usable in most types of image
viewing applications.

%package -n %{lib_name}
Summary:	Simple image viewer widget for GTK
Group:		System/Libraries

%description -n %{lib_name}
GtkImageView is a widget that provides a zoomable and panable view of
a GdkPixbuf. It is intended to be usable in most types of image
viewing applications.

This package contains the library needed to run programs dynamically
linked with gtkimageview.

%package -n %{lib_name_devel}
Summary:	Static libraries and header files of %{name}
Group:		Development/C
Requires:	%{lib_name} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{lib_name_devel}
GtkImageView is a widget that provides a zoomable and panable view of
a GdkPixbuf. It is intended to be usable in most types of image
viewing applications.

%prep
%setup  -q
%patch0 -p1 -b .nowerror

%build
NOCONFIGURE=yes ./autogen.sh
%configure --disable-static
%make LIBS="-lm"

%install
%makeinstall_std

%files -n %{lib_name}
%doc README
%{_libdir}/*.so.%{lib_major}*

%files -n %{lib_name_devel}
%doc %{_datadir}/gtk-doc/html/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13156 |21mr|gtkmm2.4-2.24.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname gtkmm
%define api_version 2.4
%define major 1
%define libname %mklibname %{pkgname} %{api_version} %{major}
%define devname %mklibname %{pkgname} %{api_version} -d

Summary:	C++ interface for popular GUI library GTK+
Name:		%{pkgname}%{api_version}
Version:	2.24.5
Release:	4
#gw lib is LGPL, tool is GPL
License:	LGPLv2+ and GPLv2+
Group:		System/Libraries
Url:		http://gtkmm.sourceforge.net/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.xz
BuildRequires:	pkgconfig(atkmm-1.6)
BuildRequires:	pkgconfig(cairomm-1.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pangomm-1.4)

%description
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for popular GUI library GTK+
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}
Provides:	%{pkgname}%{api_version} = %{EVRD}
Provides:	gtkmm24 = %{EVRD}

%description -n %{libname}
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains the library needed to run programs dynamically
linked with %{pkgname}.

%files -n %{libname}
%{_libdir}/libgdkmm-%{api_version}.so.%{major}*
%{_libdir}/libgtkmm-%{api_version}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{pkgname}%{api_version}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{pkgname}.

%files -n %{devname}
%doc PORTING ChangeLog AUTHORS COPYING NEWS README
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/gtkmm-%{api_version}/
%{_libdir}/gdkmm-%{api_version}/
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	GTKmm documentation
Group:		Documentation

%description doc
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for gtkmm. You can readily read
this documentation with devhelp, a documentation reader.

%files doc
%doc %{_datadir}/doc/gtkmm-%{api_version}/
%doc %{_datadir}/devhelp/books/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--enable-shared \
	--disable-static
%make

# make check does nothing

%install
%makeinstall_std MMDOCTOOLDIR=%{_datadir}/mm-common/doctool

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13157 |21mr|gtkmm3.0-3.24.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)

%define pkgname gtkmm
%define api_version 3.0
%define major 1
%define libname_orig %mklibname %{pkgname} %{api_version}
%define libname %mklibname %{pkgname} %{api_version} %{major}
%define devname %mklibname %{pkgname} %{api_version} -d

Summary:	C++ interface for popular GUI library gtk+
Name:		%{pkgname}%{api_version}
Version:	3.24.6
Release:	2
#gw lib is LGPL, tool is GPL
License:	LGPLv2+ and GPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gtkmm
Source0:	https://download.gnome.org/sources/gtkmm/%{url_ver}/%{pkgname}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(atkmm-1.6)
BuildRequires:	pkgconfig(cairomm-1.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(giomm-2.4)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(pangomm-1.4)

%description
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for popular GUI library gtk+
Group:		System/Libraries
Provides:	%{libname_orig} = %{EVRD}
Provides:	%{pkgname}%{api_version} = %{EVRD}

%description -n %{libname}
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains the library needed to run programs dynamically
linked with %{pkgname}.

%files -n %{libname}
%doc AUTHORS NEWS README
%license COPYING
%{_libdir}/libgdkmm-%{api_version}.so.%{major}*
%{_libdir}/libgtkmm-%{api_version}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{pkgname}%{api_version}-devel = %{EVRD}
Provides:	%{libname_orig}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{pkgname}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/gtkmm-%{api_version}
%{_libdir}/gdkmm-%{api_version}
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	GTKmm documentation
Group:		Documentation

%description doc
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for gtkmm. You can readily read
this documentation with devhelp, a documentation reader.

%files doc
%doc %{_datadir}/doc/gtkmm-%{api_version}
%doc %{_datadir}/devhelp/books/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
%meson \
	-Dbuild-x11-api=true \
	-Dbuild-documentation=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13158 |21mr|gtkmm4.0-4.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f1,2)

%define pkgname gtkmm
%define api_version 4.0
%define major 0
%define libname_orig %mklibname %{pkgname} %{api_version}
%define libname %mklibname %{pkgname} %{api_version} %{major}
%define devname %mklibname %{pkgname} %{api_version} -d

Summary:	C++ interface for popular GUI library gtk+
Name:		%{pkgname}%{api_version}
Version:	4.6.1
Release:	1
#gw lib is LGPL, tool is GPL
License:	LGPLv2+ and GPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gtkmm
Source0:	https://download.gnome.org/sources/gtkmm/%{url_ver}/%{pkgname}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(atkmm-2.36)
BuildRequires:	pkgconfig(cairomm-1.16)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(giomm-2.4) >= 2.44.0
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(pangomm-2.48)

%description
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for popular GUI library gtk+
Group:		System/Libraries
Provides:	%{libname_orig} = %{EVRD}
Provides:	%{pkgname}%{api_version} = %{EVRD}

%description -n %{libname}
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains the library needed to run programs dynamically
linked with %{pkgname}.

%files -n %{libname}
%doc AUTHORS NEWS README
%license COPYING
%{_libdir}/libgtkmm-%{api_version}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{pkgname}%{api_version}-devel = %{EVRD}
Provides:	%{libname_orig}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{pkgname}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/gtkmm-%{api_version}
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	GTKmm documentation
Group:		Documentation

%description doc
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for gtkmm. You can readily read
this documentation with devhelp, a documentation reader.

%files doc
%doc %{_datadir}/doc/gtkmm-%{api_version}
%doc %{_datadir}/devhelp/books/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgname}-%{version}

%build
%meson -Dbuild-documentation=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13159 |21mr|gtk-sharp2-2.12.45-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname gtk-sharp
%define monodir %{_prefix}/lib/mono

Summary:	C# language binding for the gtk+ toolkit
Name:		gtk-sharp2
Version:	2.12.45
Release:	2
License:	LGPLv2+
Group:		Development/C#
Url:		http://gtk-sharp.sourceforge.net/
Source0:	http://download.mono-project.com/sources/gtk-sharp212/%{oname}-%{version}.tar.gz
Patch0:		gtk-sharp2-2.12.12-glib-include.patch
Patch1:		gtk-sharp2-2.12.12-gtkrange.patch
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(mono)
BuildRequires:	pkgconfig(pango)
Requires:	glib-sharp2 = %{EVRD}

%description
Gtk-sharp is a C# language binding for the gtk+ toolkit.

%files
%{monodir}/gac/*atk-sharp
%{monodir}/gac/*gdk-sharp
%{monodir}/gac/*gtk-dotnet
%{monodir}/gac/*gtk-sharp
%{monodir}/gac/*pango-sharp
%{monodir}/%{oname}-2.0/*atk-sharp.dll*
%{monodir}/%{oname}-2.0/*gdk-sharp.dll*
%{monodir}/%{oname}-2.0/*gtk-sharp.dll*
%{monodir}/%{oname}-2.0/*gtk-dotnet.dll*
%{monodir}/%{oname}-2.0/*pango-sharp.dll*
%{_libdir}/libatksharpglue-2.so
%{_libdir}/libgdksharpglue-2.so
%{_libdir}/libgtksharpglue-2.so
%{_libdir}/libpangosharpglue-2.so
%{_libdir}/pkgconfig/gtk-sharp-2.0.pc
%{_libdir}/pkgconfig/gtk-dotnet-2.0.pc

#----------------------------------------------------------------------------

%package -n glib-sharp2
Summary:	C# binding for glib
Group:		Development/C#
Requires:	mono

%description -n glib-sharp2
Glib-sharp is a C# language binding for glib.

%files -n glib-sharp2
%{monodir}/gac/*glib-sharp
%{monodir}/%{oname}-2.0/*glib-sharp.dll*
%{_libdir}/libglibsharpglue-2.so
%{_libdir}/pkgconfig/glib-sharp-2.0.pc

#----------------------------------------------------------------------------

%package -n glade-sharp2
Summary:	C# binding for glade
Group:		Development/C#
Requires:	%{name} = %{version}

%description -n glade-sharp2
Glade-sharp is a C# language binding for glade.

%files -n glade-sharp2
%{monodir}/gac/*glade-sharp
%{monodir}/%{oname}-2.0/*glade-sharp.dll*
%{_libdir}/pkgconfig/glade-sharp-2.0.pc
%{_libdir}/libgladesharpglue-2.so

#----------------------------------------------------------------------------

%package devel
Summary:	C# code generation tools for %{name}
Group:		Development/C#

%description devel
This contains the code generation tools of gtk-sharp. It is needed for building
C# wrappers for GObject APIs.

%files devel
%{_bindir}/*
%{_datadir}/gapi-2.0/
%{_libdir}/pkgconfig/gapi-2.0.pc
%{_prefix}/lib/%{oname}-2.0/

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for gtk-sharp
Group:		Documentation
BuildArch:	noarch
#Requires(post,postun):	mono-tools

%description doc
Gtk-sharp is a C# language binding for the gtk+ toolkit.
This package provides documentation for gtk-sharp.

%files doc
%doc ChangeLog README README.generator
%{_prefix}/lib/monodoc/sources/gtk*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_libdir}/lib*a
rm -rf sample/valtest/{.deps, .libs}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13160 |21mr|gtksourceview-2.10.5-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_version 2.0
%define lib_major 0
%define libname %mklibname %{name}- %{api_version} %{lib_major}
%define libnamedev %mklibname -d %{name}- %{api_version}


Summary:	Source code viewing library
Name:		gtksourceview
Version:	2.10.5
Release:	14
License:	GPLv2+
Group:		Editors
URL:		http://people.ecsc.co.uk/~matt/downloads/rpms/gtksourceview/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
Patch0:		gtksourceview-gnome-warnings.patch
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	gtk-doc
BuildRequires:	intltool

%description
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

%files -f %{name}-%{api_version}.lang
%doc AUTHORS NEWS README
%{_datadir}/gtksourceview-%{api_version}


#------------------------------------------------------------
%package -n %{libname}
Summary:	Source code viewing library
Group:		Editors
Requires:	%{name} >= %{version}-%{release}
Provides:	lib%{name} = %{version}-%{release}
Provides:	libgtksourceview0 = %{version}-%{release}
Obsoletes:	libgtksourceview0 < 2.10.5-7
Provides:	libgtksourceview1.0 = %{version}-%{release}
Obsoletes:	libgtksourceview1.0 < 2.10.5-7

%description -n %{libname}
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

%files -n %{libname}
%{_libdir}/libgtksourceview-%{api_version}.so.%{lib_major}*

#------------------------------------------------------------

%package -n %{libnamedev}
Summary:	Libraries and include files for GtkSourceView
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-%{api_version}-devel = %{version}-%{release}
Obsoletes:	%{mklibname -d gtksourceview- 2.0 0} < 2.10.5-7

%description -n %{libnamedev}
GtkSourceView development files.

%files -n %{libnamedev}
%doc %{_datadir}/gtk-doc/html/gtksourceview-2.0
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*

#------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static

%make

%install
%makeinstall_std

%find_lang %{name}-%{api_version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13161 |21mr|gtksourceview3-3.24.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 3.0
%define major 1
%define oname gtksourceview
%define libname %mklibname %{oname}- %{api} %{major}
%define girname %mklibname %{oname}-gir %{api}
%define devname %mklibname %{oname}- %{api} -d

Summary:	Source code viewing library
Name:		gtksourceview3
Version:	3.24.11
Release:	3
License:	GPLv2+
Group:		Editors
Url:		https://download.gnome.org/sources/gtksourceview
Source0:	https://download.gnome.org/sources/gtksourceview/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libxml-2.0)

%description
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

%files -f %{oname}-%{api}.lang
%doc AUTHORS NEWS README
%{_datadir}/gtksourceview-%{api}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Source code viewing library
Group:		Editors
Requires:	%{name} = %{EVRD}

%description -n %{libname}
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

%files -n %{libname}
%{_libdir}/libgtksourceview-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkSource-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for GtkSourceView
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-%{api}-devel = %{EVRD}

%description -n %{devname}
GtkSourceView development files.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/gtksourceview-%{api}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/GtkSource-%{api}.gir

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%configure --disable-vala
%make LIBS='-lgmodule-2.0'

%install
%makeinstall_std

%find_lang %{oname}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13162 |21mr|gtksourceview4-4.8.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 4
%define major 0
%define oname gtksourceview
%define libname %mklibname %{oname}- %{api} %{major}
%define girname %mklibname %{oname}-gir %{api}
%define devname %mklibname %{oname}- %{api} -d

Summary:	Source code viewing library
Name:		gtksourceview4
Version:	4.8.3
Release:	2
License:	GPLv2+
Group:		Editors
Url:		https://download.gnome.org/sources/gtksourceview
Source0:	https://download.gnome.org/sources/gtksourceview/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	vala
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(gladeui-2.0)
BuildRequires:  pkgconfig(vapigen)

%description
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

%files -f %{oname}-%{api}.lang
%doc AUTHORS NEWS README.md
%{_datadir}/gtksourceview-%{api}
%{_datadir}/glade/catalogs/gtksourceview.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Source code viewing library
Group:		Editors
Requires:	%{name} = %{EVRD}

%description -n %{libname}
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

%files -n %{libname}
%{_libdir}/libgtksourceview-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkSource-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for GtkSourceView
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-%{api}-devel = %{EVRD}

%description -n %{devname}
GtkSourceView development files.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/GtkSource-%{api}.gir
%{_datadir}/vala/vapi/gtksourceview-%{api}.deps
%{_datadir}/vala/vapi/gtksourceview-%{api}.vapi
%{_datadir}/gtk-doc/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson \
	-Dglade_catalog="true"	\
	-Dgtk_doc="true"
%meson_build

%install
%meson_install

%find_lang %{oname}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13163 |21mr|gtksourceview5-5.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 5
%define major 0
%define oname gtksourceview
%define libname %mklibname %{oname}- %{api} %{major}
%define girname %mklibname %{oname}-gir %{api}
%define devname %mklibname %{oname}- %{api} -d

Summary:	Source code viewing library
Name:		gtksourceview5
Version:	5.5.1
Release:	2
License:	GPLv2+
Group:		Editors
Url:		https://download.gnome.org/sources/gtksourceview
Source0:	https://download.gnome.org/sources/gtksourceview/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gi-docgen)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sysprof-capture-4)
BuildRequires:  pkgconfig(vapigen)

%description
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

%files -f %{oname}-%{api}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_datadir}/gtksourceview-%{api}
%{_iconsdir}/hicolor/scalable/actions/*.svg

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Source code viewing library
Group:		Editors
Requires:	%{name} = %{EVRD}

%description -n %{libname}
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

%files -n %{libname}
%{_libdir}/libgtksourceview-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkSource-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for GtkSourceView
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-%{api}-devel = %{EVRD}

%description -n %{devname}
GtkSourceView development files.

%files -n %{devname}
%{_includedir}/*
%{_datadir}/gir-1.0/GtkSource-%{api}.gir
%{_datadir}/vala/vapi/gtksourceview-%{api}.deps
%{_datadir}/vala/vapi/gtksourceview-%{api}.vapi
%{_defaultdocdir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson	\
	-Dgtk_doc=true	\
	-Dsysprof=true
%meson_build

%install
%meson_install

%find_lang %{oname}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13164 |21mr|gtksourceviewmm4-3.91.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)
%define oname	gtksourceviewmm

%define api 4.0
%define major 0
%define libname %mklibname %{oname} %{api} %{major}
%define devname %mklibname %{oname} %{api} -d

Summary:	Source code viewing library
Name:		gtksourceviewmm4
Version:	3.91.1
Release:	9
License:	LGPLv2+
Group:		Editors
Url:		https://download.gnome.org/sources/gtksourceviewmm
Source0:	https://download.gnome.org/sources/gtksourceviewmm/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(gtksourceview-4)

%description
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

This package contains the C++ language bindings for GtkSourceview.

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Source code viewing library
Group:		System/Libraries

%description -n %{libname}
GtkSourceview is a library that adds syntax highlighting,
line numbers, and other programming-editor features.
GtkSourceView specializes these features for a code editor.

This package contains the C++ language bindings for GtkSourceview.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/lib%{oname}-%{api}.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for GtkSourceView
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
GtkSourceView development files.

This package contains the C++ language bindings for GtkSourceview.

%files -n %{devname}
%doc %{_datadir}/doc/%{oname}-%{api}/
%{_datadir}/devhelp/books/%{oname}-%{api}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/%{oname}*

#--------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

sed -i '/convert_\(gtkmm\|gtksourceview\)\.m4/d' codegen/m4/convert.m4

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13165 |21mr|gtkspell-2.0.16-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Spell-checking addon for GTK's TextView widget
Name:		gtkspell
Version:	2.0.16
Release:	13
License:	GPL+
Group:		System/Libraries
Url:		http://gtkspell.sourceforge.net/
Source0:	http://gtkspell.sourceforge.net/download/%{name}-%{version}.tar.gz
BuildRequires:	docbook-dtd-xml
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a
GtkTextView widget. Right-clicking a misspelled word pops up a menu of
suggested replacements.

%files -f %{name}.lang
%doc README AUTHORS ChangeLog

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Spell-checking addon for GTK's TextView widget
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a
GtkTextView widget. Right-clicking a misspelled word pops up a menu of
suggested replacements.

%files -n %{libname}
%{_libdir}/libgtkspell.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Spell-checking addon for GTK's TextView widget development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a
GtkTextView widget. Right-clicking a misspelled word pops up a menu of
suggested replacements.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
#gw the gtk-doc 1.13 bug:
autoreconf -f -i
NOCONFIGURE=yes gnome-autogen.sh

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13166 |21mr|gtkspell3-3.0.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 3.0
%define major 0
%define libname %mklibname %{name}_ %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	On-the-fly spell checking for GtkTextView widgets
Name:		gtkspell3
Version:	3.0.9
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		http://gtkspell.sourceforge.net/
Source0:	http://downloads.sourceforge.net/gtkspell/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(vapigen)
# need for autoreconf
BuildRequires:  gtk-doc

%description
GtkSpell provides word-processor-style highlighting and replacement of
misspelled words in a GtkTextView widget as you type. Right-clicking a
misspelled word pops up a menu of suggested replacements.

%files -f %{name}.lang
%doc README AUTHORS ChangeLog

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	On-the-fly spell checking for GtkTextView widgets
Group:		System/Libraries
Requires:	%{name}
Conflicts:	%{_lib}gtkspell30 < 3.0.9
Obsoletes:	%{_lib}gtkspell30 < 3.0.9

%description -n %{libname}
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a
GtkTextView widget. Right-clicking a misspelled word pops up a menu of
suggested replacements.

%files -n %{libname}
%{_libdir}/libgtkspell3-3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}gtkspell30 < 3.0.9

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkSpell-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
GtkSpell provides MSWord/MacOSX-style highlighting of misspelled words in a
GtkTextView widget. Right-clicking a misspelled word pops up a menu of
suggested replacements.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/
%{_includedir}/gtkspell-3.0/
%{_libdir}/libgtkspell3-3.so
%{_libdir}/pkgconfig/gtkspell3-3.0.pc
%{_datadir}/gir-1.0/GtkSpell-3.0.gir
%{_datadir}/vala/vapi/gtkspell3-3.0.vapi
%{_datadir}/vala/vapi/gtkspell3-3.0.deps

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-vala
%make V=1

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13167 |21mr|gtkspellmm-3.0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 3.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d
%define _disable_rebuild_configure 1

Summary:	On-the-fly spell checking for GtkTextView widgets - C++ bindings
Name:		gtkspellmm
Version:	3.0.5
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		http://gtkspell.sourceforge.net/
Source0:	http://sourceforge.net/projects/gtkspell/files/gtkspellmm/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(gtkspell3-3.0)

%description
GtkSpell provides word-processor-style highlighting and replacement of
misspelled words in a GtkTextView widget as you type. Right-clicking a
misspelled word pops up a menu of suggested replacements.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	On-the-fly spell checking for GtkTextView widgets - C++ bindings
Group:		System/Libraries

%description -n %{libname}
GtkSpell provides word-processor-style highlighting and replacement of
misspelled words in a GtkTextView widget as you type. Right-clicking a
misspelled word pops up a menu of suggested replacements.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides header and documentation files for developing C++
applications which use GtkSpell.

%files -n %{devname}
%doc COPYING
%{_includedir}/gtkspellmm-%{api}
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/gtkspellmm-%{api}.pc
%{_libdir}/gtkspellmm-%{api}
%{_datadir}/devhelp/books/gtkspellmm-%{api}
%{_datadir}/doc/gtkspellmm-%{api}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13168 |21mr|gtk-unico-engine-1.0.2-3.20120808bzr139
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global engine_name unico
%global revision 139
%global revision_date 20120808

Summary:	Unico Gtk+ theming engine
Name:		gtk-unico-engine
Version:	1.0.2
Release:	3.%{revision_date}bzr%{revision}
License:	LGPLv3+
Group:		Graphical desktop/GNOME
Url:		https://launchpad.net/unico/
# The source for this package was pulled from upstream's VCS. Use the following
# commands to generate the tarball:
# $ bzr export -r %{revision} %{engine_name}-%{version}-bzr%{revision}.tar.xz lp:unico
Source0:	%{engine_name}-%{version}-bzr%{revision}.tar.xz
# For /usr/bin/gnome-autogen.sh
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Unico is a Gtk+ engine that aims to be the more complete yet powerful theming
engine for Gtk+ 3.0 and newer. It’s the first Gtk+ engine written with Gtk+
style context APIs in mind, using CSS as first class citizen.

%files
%doc AUTHORS COPYING NEWS
%{_libdir}/gtk-3.0/3.0.0/theming-engines/lib%{engine_name}.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{engine_name}-%{version}-bzr%{revision}

%build
[ -f autogen.sh ] && NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-silent-rules \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13169 |21mr|gtk-vnc-1.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 2.0
%define major 0
%define gvncapi 1.0
%define libname %mklibname %{name} %{api} %{major}
%define libgvnc %mklibname gvnc %{gvncapi} %{major}
%define libgvncpulse %mklibname gvncpulse %{gvncapi} %{major}
%define girname %mklibname %{name}-gir %{api}
%define girgvnc %mklibname gvnc-gir %{api}
%define devname %mklibname %{name} %{api} -d
%define devgvnc %mklibname gvnc %{gvncapi} -d
%define devgvncpulse %mklibname gvncpulse %{gvncapi} -d

%define _disable_rebuild_configure 1

Summary:	A VNC viewer widget for GTK3
Name:		gtk-vnc
Version:	1.0.0
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gtk-vnc.sourceforge.net/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		makecontext-e2k.patch
BuildRequires:	intltool
BuildRequires:	vala-tools
BuildRequires:	gettext-devel
BuildRequires:	libsasl-devel
BuildRequires:	meson
BuildRequires:	pulseaudio-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libview)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(python3)
Obsoletes:	mozilla-%{name} < 0.5.4

%description
gtk-vnc is a VNC viewer widget for GTK3. It is built using
coroutines allowing it to be completely asynchronous while
remaining single threaded. It provides a core C library, and
bindings for Python (PyGTK).

%files
%doc README NEWS AUTHORS
%{_bindir}/gvnccapture
#%%{_bindir}/gvncviewer
%{_mandir}/man1/gvnccapture.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A VNC viewer widget for GTK3
Group:		System/Libraries
Requires:	gtk-vnc-common

%description -n %{libname}
This package contains the gtk-vnc shared library for %{name}.

%files -n %{libname}
%{_libdir}/libgtk-vnc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgvnc}
Summary:	A VNC viewer widget for GTK3
Group:		System/Libraries
Conflicts:	%{_lib}gtk-vnc1.0_0 < 0.4.4-2

%description -n %{libgvnc}
This package contains the gvnc shared library for %{name}.

%files -n %{libgvnc}
%{_libdir}/libgvnc-%{gvncapi}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}gtk-vnc1.0_0 < 0.4.4-2

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GtkVnc-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girgvnc}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libgvnc} = %{EVRD}
Conflicts:	%{_lib}gtk-vnc1.0_0 < 0.4.4-2

%description -n %{girgvnc}
GObject Introspection interface library for %{libgvnc}.

%files -n %{girgvnc}
%{_libdir}/girepository-1.0/GVnc-%{gvncapi}.typelib

#----------------------------------------------------------------------------

%package common
Summary:	A VNC viewer widget for GTK3
Group:		System/Libraries

%description common
gtk-vnc is a VNC viewer widget for GTK. It is built using
coroutines allowing it to be completely asynchronous while
remaining single threaded. It provides a core C library, and
bindings for Python3 (PyGTK)

This package contains translations used by gtk-vnc.

%files common -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{devgvnc}
Summary:	A VNC viewer widget for GTK3
Group:		Development/C
Requires:	%{libgvnc} = %{EVRD}
Requires:	%{girgvnc} = %{EVRD}
Provides:	gvnc%{gvncapi}-devel = %{EVRD}
Provides:	gvnc-devel = %{EVRD}

%description -n %{devgvnc}
This package contains the development files for %{libgvnc}.

%files -n %{devgvnc}
%{_libdir}/libgvnc-%{gvncapi}.so
%{_libdir}/pkgconfig/gvnc-%{gvncapi}.pc
%{_includedir}/gvnc-%{gvncapi}
%{_datadir}/gir-1.0/GVnc-%{gvncapi}.gir

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A VNC viewer widget for GTK3
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_libdir}/libgtk-vnc-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_includedir}/gtk-vnc-%{api}
%{_datadir}/gir-1.0/GtkVnc-%{api}.gir
%{_datadir}/vala/vapi/*

#----------------------------------------------------------------------------

%package -n %{libgvncpulse}
Summary: A Pulse Audio bridge for VNC connections
Requires: %{libgvnc} = %{EVRD}

%description -n %{libgvncpulse}
gvncpulse is a bridge to the Pulse Audio system for VNC.
It allows VNC clients to play back audio on the local
system

%files -n %{libgvncpulse}
%{_libdir}/libgvncpulse-%{gvncapi}.so.*
%{_libdir}/girepository-1.0/GVncPulse-%{gvncapi}.typelib
%{_datadir}/vala/vapi/gvncpulse-%{gvncapi}.deps
%{_datadir}/vala/vapi/gvncpulse-%{gvncapi}.vapi
#---------------------------------------------------------------
%package -n %{devgvncpulse}
Summary: Libraries, includes, etc. to compile with the gvncpulse library
Requires: %{libgvncpulse} = %{EVRD}
Provides: gvncpulse-devel = %{EVRD}

%description -n %{devgvncpulse}
gvncpulse is a bridge to the Pulse Audio system for VNC.
It allows VNC clients to play back audio on the local
system

Libraries, includes, etc. to compile with the gvnc library

%files -n %{devgvncpulse}
%{_libdir}/libgvncpulse-%{gvncapi}.so
%dir %{_includedir}/gvncpulse-%{gvncapi}/
%{_includedir}/gvncpulse-%{gvncapi}/*.h
%{_libdir}/pkgconfig/gvncpulse-%{gvncapi}.pc
%{_datadir}/gir-1.0/GVncPulse-%{gvncapi}.gir
#----------------------------------------------------------------
%prep
%setup -q
%apply_patches
sed -i "s:keymapgen =.*:keymapgen = '../subprojects/keycodemapdb/tools/keymap-gen':" meson.build
sed -i "s:keymapcsv =.*:keymapcsv = '../subprojects/keycodemapdb/data/keymaps.csv':" meson.build


%build
%meson
%meson_build
chmod -x examples/*.pl examples/*.js examples/*.py

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13170 |21mr|guava20-20.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           guava20
Version:        20.0
Release:        10
Summary:        Google Core Libraries for Java
# Most of the code is under ASL 2.0
# Few classes are under CC0, grep for creativecommons
License:        ASL 2.0 and CC0
URL:            https://github.com/google/guava
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/google/guava/archive/v%{version}.tar.gz
Patch0:         0001-Avoid-presizing-arrays.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Guava is a suite of core and expanded libraries that include
utility classes, Google’s collections, io classes, and much
much more.
This project is a complete packaging of all the Guava libraries
into a single jar.  Individual portions of Guava can be used
by downloading the appropriate module and its dependencies.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%package testlib
Summary:        The guava-testlib artifact

%description testlib
guava-testlib provides additional functionality for conveninent unit testing

%prep
%setup -q -n guava-%{version}

%patch0 -p1

find . -name '*.jar' -delete

%pom_disable_module guava-gwt
%pom_remove_plugin -r :animal-sniffer-maven-plugin 
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_dep jdk:srczip guava
%pom_remove_dep :caliper guava-tests
%mvn_package :guava-parent guava
%mvn_package :guava-tests __noinstall

# javadoc generation fails due to strict doclint in JDK 1.8.0_45
%pom_remove_plugin -r :maven-javadoc-plugin

%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>" guava/pom.xml

%pom_remove_dep -r :animal-sniffer-annotations
%pom_remove_dep -r :error_prone_annotations
%pom_remove_dep -r :j2objc-annotations

annotations=$(
    fgrep -hr -e com.google.j2objc.annotations \
        -e com.google.errorprone.annotation -e org.codehaus.mojo.animal_sniffer \
    | sort -u \
    | sed 's/.*\.\([^.]*\);/\1/' \
    | paste -sd\|
)
# guava started using quite a few annotation libraries for code quality, which
# we don't have. This ugly regex is supposed to remove their usage from the code
find -name '*.java' | xargs sed -ri \
    "s/^import .*\.($annotations);//;s/@($annotations)"'\>\s*(\((("[^"]*")|([^)]*))\))?//'

%build
%mvn_compat_version : 20.0 19.0 18.0 17.0 16.0.1 16.0 15.0 14.0.1 14.0 13.0.1 13.0 12.0.1 12.0 11.0.2 11.0.1 11.0 10.0.1 10.0
%mvn_alias :guava com.google.collections:google-collections com.google.guava:guava-jdk5
# Tests fail on Koji due to insufficient memory,
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332971
%mvn_build -s -f

%install
%mvn_install

%files -f .mfiles-guava
%doc CONTRIBUTORS README*
%license COPYING

%files javadoc -f .mfiles-javadoc
%license COPYING

%files testlib -f .mfiles-guava-testlib


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13171 |21mr|guava-25.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           guava
Version:        25.0
Release:        5
Summary:        Google Core Libraries for Java
# Most of the code is under ASL 2.0
# Few classes are under CC0, grep for creativecommons
License:        ASL 2.0 and CC0
URL:            https://github.com/google/guava
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/google/guava/archive/v%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Guava is a suite of core and expanded libraries that include
utility classes, Google’s collections, io classes, and much
much more.
This project is a complete packaging of all the Guava libraries
into a single jar.  Individual portions of Guava can be used
by downloading the appropriate module and its dependencies.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%package testlib
Summary:        The guava-testlib artifact

%description testlib
guava-testlib provides additional functionality for conveninent unit testing

%prep
%setup -q

find . -name '*.jar' -delete

%pom_disable_module guava-gwt
%pom_disable_module guava-tests

%pom_remove_plugin -r :animal-sniffer-maven-plugin
# Downloads JDK source for doc generation
%pom_remove_plugin :maven-dependency-plugin guava

%pom_remove_dep :caliper guava-tests

%mvn_package :guava-parent guava

# javadoc generation fails due to strict doclint in JDK 1.8.0_45
%pom_remove_plugin -r :maven-javadoc-plugin

%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>" guava/pom.xml

%pom_remove_dep -r :animal-sniffer-annotations
%pom_remove_dep -r :error_prone_annotations
%pom_remove_dep -r :j2objc-annotations
%pom_remove_dep -r org.checkerframework:

annotations=$(
    find -name '*.java' \
    | xargs fgrep -h \
        -e 'import com.google.j2objc.annotations' \
        -e 'import com.google.errorprone.annotation' \
        -e 'import org.codehaus.mojo.animal_sniffer' \
        -e 'import org.checkerframework' \
    | sort -u \
    | sed 's/.*\.\([^.]*\);/\1/' \
    | paste -sd\|
)
# guava started using quite a few annotation libraries for code quality, which
# we don't have. This ugly regex is supposed to remove their usage from the code
find -name '*.java' | xargs sed -ri \
    "s/^import .*\.($annotations);//;s/@($annotations)"'\>\s*(\((("[^"]*")|([^)]*))\))?//g'

%build
# Tests fail on Koji due to insufficient memory,
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332971
%mvn_build -s -f

%install
%mvn_install

%files -f .mfiles-guava
%doc CONTRIBUTORS README*
%license COPYING

%files javadoc -f .mfiles-javadoc
%license COPYING

%files testlib -f .mfiles-guava-testlib


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13172 |21mr|gucharmap-12.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api		2_90
%define major		7
%define gir_major	2.90
%define libname		%mklibname %{name} %{api} %{major}
%define girname		%mklibname %{name}-gir %{gir_major}
%define devname		%mklibname %{name} -d

Summary:	A Unicode character map and font viewer
Name:		gucharmap
Version:	12.0.1
Release:	10
License:	GPLv3+
Group:		Publishing
Url:		https://download.gnome.org/sources/gucharmap
Source0:	https://download.gnome.org/sources/gucharmap/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	unicode-ucd
BuildRequires:	xsltproc
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
gucharmap is a Unicode/ISO 10646 character map and font viewer. It
supports anti-aliased, scalable truetype fonts in X, using Xft, and
works on Unix and Windows platforms.

%files -f %{name}.lang
%doc COPYING
%{_bindir}/*
%{_datadir}/glib-2.0/schemas/
%{_datadir}/applications/*
%{_appdatadir}/gucharmap.appdata.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for gucharmap
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with gucharmap.

%files -n %{libname}
%{_libdir}/libgucharmap_%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gucharmap-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use gucharmap
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use gucharmap.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_datadir}/gir-1.0/Gucharmap-%{gir_major}.gir

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-introspection \
	--with-unicode-data=%{_datadir}/unicode/ucd

%make_build LIBS='-ldl'

%install
%make_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13173 |21mr|guestfs-tools-1.52.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Architectures that we run the test suite on.
#
# As the test suite takes a very long time to run and is somewhat
# unreliable on !x86 architectures, only run it on x86-64.
%bcond_with test

# 1.48.2 -> 1.48
%define version_short %(echo %{version} | cut -d. -f1,2)

# Filter perl provides.
%{?perl_default_filter}

Summary:	Tools to access and modify virtual machine disk images
Name:		guestfs-tools
Version:	1.52.0
Group:		Development/Tools
Release:	2
License:	GPLv2+
URL:		http://libguestfs.org/
Source0:	http://download.libguestfs.org/guestfs-tools/%{version_short}-stable/%{name}-%{version}.tar.gz

# ceph arches
ExclusiveArch: %{x86_64} aarch64

BuildRequires:	gettext-devel
BuildRequires:	bash-completion-devel

# Basic build requirements.
BuildRequires:	libguestfs-devel >= 1.45.3-1
BuildRequires:	perl(Pod::Simple)
BuildRequires:	perl(Pod::Man)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More)
BuildRequires:	/usr/bin/pod2text
BuildRequires:	po4a
BuildRequires:	pcre2-devel
BuildRequires:	libxml2-devel
BuildRequires:	jansson-devel
BuildRequires:	libosinfo-devel
BuildRequires:	libvirt-devel
BuildRequires:	libxcrypt-devel
BuildRequires:	ncurses-devel
BuildRequires:	ocaml-libguestfs-devel
BuildRequires:	ocaml-findlib-devel
BuildRequires:	ocaml-gettext-devel
BuildRequires:	ocaml-ounit-devel
BuildRequires:	ocaml-seq-devel
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	xz-devel
BuildRequires:	zip
BuildRequires:	unzip
BuildRequires:	perl(Expect)
BuildRequires:	bash-completion
BuildRequires:	/usr/bin/qemu-img
BuildRequires:	xorriso
BuildRequires:	perl(Locale::TextDomain)
BuildRequires:	perl(Sys::Guestfs)
BuildRequires:	perl(Win::Hivex)
BuildRequires:	perl(Win::Hivex::Regedit)

# For virt-builder:
Requires:	curl
Requires:	gnupg2
Requires:	/usr/bin/qemu-img
Requires:	xz

# For virt-builder-repository:
Suggests:	osinfo-db

# For virt-inspector, since Fedora and RHEL >= 7 use XFS:
Recommends:	libguestfs-xfs

# For virt-edit and virt-customize:
Suggests:	perl

# This replaces the libguestfs-tools-c package.
Provides:	libguestfs-tools-c = %{EVRD}

Conflicts:	virt-dib < %{version}-%{release}
Obsoletes:	virt-dib < %{version}-%{release}

%description
guestfs-tools is a set of tools that can be used to make batch
configuration changes to guests, get disk used/free statistics
(virt-df), perform backups and guest clones, change
registry/UUID/hostname info, build guests from scratch (virt-builder)
and much more.

Virt-alignment-scan scans virtual machines looking for partition
alignment problems.

Virt-builder is a command line tool for rapidly making disk images
of popular free operating systems.

Virt-cat is a command line tool to display the contents of a file in a
virtual machine.

Virt-customize is a command line tool for customizing virtual machine
disk images.

Virt-df is a command line tool to display free space on virtual
machine filesystems.  Unlike other tools, it doesn’t just display the
amount of space allocated to a virtual machine, but can look inside
the virtual machine to see how much space is really being used.  It is
like the df(1) command, but for virtual machines, except that it also
works for Windows virtual machines.

Virt-diff shows the differences between virtual machines.

Virt-edit is a command line tool to edit the contents of a file in a
virtual machine.

Virt-filesystems is a command line tool to display the filesystems,
partitions, block devices, LVs, VGs and PVs found in a disk image
or virtual machine.  It replaces the deprecated programs
virt-list-filesystems and virt-list-partitions with a much more
capable tool.

Virt-format is a command line tool to erase and make blank disks.

Virt-get-kernel extracts a kernel/initrd from a disk image.

Virt-inspector examines a virtual machine and tries to determine the
version of the OS, the kernel version, what drivers are installed,
whether the virtual machine is fully virtualized (FV) or
para-virtualized (PV), what applications are installed and more.

Virt-log is a command line tool to display the log files from a
virtual machine.

Virt-ls is a command line tool to list out files in a virtual machine.

Virt-make-fs is a command line tool to build a filesystem out of
a collection of files or a tarball.

Virt-resize can resize existing virtual machine disk images.

Virt-sparsify makes virtual machine disk images sparse (thin-provisioned).

Virt-sysprep lets you reset or unconfigure virtual machines in
preparation for cloning them.

Virt-tail follows (tails) a log file within a guest, like 'tail -f'.

%files -f %{name}.lang
%license COPYING
%doc README
%doc installed-docs/*
%dir %{_sysconfdir}/virt-builder
%dir %{_sysconfdir}/virt-builder/repos.d
%config(noreplace) %{_sysconfdir}/virt-builder/repos.d/*
%{_bindir}/virt-alignment-scan
%{_bindir}/virt-builder
%{_bindir}/virt-builder-repository
%{_bindir}/virt-cat
%{_bindir}/virt-customize
%{_bindir}/virt-df
%{_bindir}/virt-diff
%{_bindir}/virt-drivers
%{_bindir}/virt-edit
%{_bindir}/virt-filesystems
%{_bindir}/virt-format
%{_bindir}/virt-get-kernel
%{_bindir}/virt-index-validate
%{_bindir}/virt-inspector
%{_bindir}/virt-log
%{_bindir}/virt-ls
%{_bindir}/virt-make-fs
%{_bindir}/virt-resize
%{_bindir}/virt-sparsify
%{_bindir}/virt-sysprep
%{_bindir}/virt-tail
%{_mandir}/man1/virt-alignment-scan.1*
%{_mandir}/man1/virt-builder-repository.1*
%{_mandir}/man1/virt-builder.1*
%{_mandir}/man1/virt-cat.1*
%{_mandir}/man1/virt-customize.1*
%{_mandir}/man1/virt-df.1*
%{_mandir}/man1/virt-diff.1*
%{_mandir}/man1/virt-drivers.1*
%{_mandir}/man1/virt-edit.1*
%{_mandir}/man1/virt-filesystems.1*
%{_mandir}/man1/virt-format.1*
%{_mandir}/man1/virt-get-kernel.1*
%{_mandir}/man1/virt-index-validate.1*
%{_mandir}/man1/virt-inspector.1*
%{_mandir}/man1/virt-log.1*
%{_mandir}/man1/virt-ls.1*
%{_mandir}/man1/virt-make-fs.1*
%{_mandir}/man1/virt-resize.1*
%{_mandir}/man1/virt-sparsify.1*
%{_mandir}/man1/virt-sysprep.1*
%{_mandir}/man1/virt-tail.1*
%{_mandir}/man1/guestfs-tools-release-notes*.1*

#------------------------------------------------------------------------------
%package -n virt-win-reg
Summary:	Access and modify the Windows Registry of a Windows VM
Group:		Development/Tools
BuildArch:	noarch

%description -n virt-win-reg
Virt-win-reg lets you look at and modify the Windows Registry of
Windows virtual machines.

%files -n virt-win-reg
%{_bindir}/virt-win-reg
%{_mandir}/man1/virt-win-reg.1*

#------------------------------------------------------------------------------

%package bash-completion
Summary:	Bash tab-completion scripts for %{name}
Group:		Development/Tools
Requires:	bash-completion >= 2.0
Requires:	%{name} = %{version}-%{release}
BuildArch:	noarch

%description bash-completion
Install this package if you want intelligent bash tab-completion
for the virt-* tools.

%files bash-completion
%license COPYING
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/virt-*

#------------------------------------------------------------------------------

%package man-pages-ja
Summary:	Japanese (ja) man pages for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description man-pages-ja
%{name}-man-pages-ja contains Japanese (ja) man pages
for %{name}.

%files man-pages-ja
%lang(ja) %{_mandir}/ja/man1/*.1*

#------------------------------------------------------------------------------

%package man-pages-uk
Summary:	Ukrainian (uk) man pages for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description man-pages-uk
%{name}-man-pages-uk contains Ukrainian (uk) man pages
for %{name}.

%files man-pages-uk
%lang(uk) %{_mandir}/uk/man1/*.1*

#------------------------------------------------------------------------------

%prep
%autosetup -p1

autoreconf -i

%build
%configure

# Building index-parse.c by hand works around a race condition in the
# autotools cruft, where two or more copies of yacc race with each
# other, resulting in a corrupted file.
make -j1 -C builder index-parse.c

make V=1 %{?_smp_mflags}

%if %{with test}
%check
# Enable debugging.
export LIBGUESTFS_DEBUG=1
export LIBGUESTFS_TRACE=1

# This test is currently broken and needs further investigation.
export SKIP_TEST_MACHINE_READABLE_SH=1

# This test fails for me in local mock and Koji, but not when running
# in an unrestricted environment.
export SKIP_TEST_VIRT_FORMAT_SH=1

# This test takes too long to run under Koji and times out.  It runs
# fine with KVM enabled.
export SKIP_TEST_VIRT_RESIZE_PL=1

if ! make check -k ; then
    # Dump out the log files of any failing tests to make
    # debugging test failures easier.
    for f in `find -name test-suite.log | xargs grep -l ^FAIL:`; do
        echo '*****' $f '*****'
        cat $f
        echo
    done
    exit 1
fi
%endif


%install
make DESTDIR=%{buildroot} install

# Delete libtool files.
find %{buildroot} -name '*.la' -delete

# Move installed documentation back to the source directory so
# we can install it using a %%doc rule.
mv %{buildroot}%{_docdir}/%{name} installed-docs
gzip --best installed-docs/*.xml

# Find locale files.
%find_lang %{name}


# Fix upgrades from old libguestfs-tools-c package
# which had /etc/virt-builder -> xdg/virt-builder.
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
# This can be removed in Fedora > 36.
%pretrans -p <lua>
path = "/etc/virt-builder"
st = posix.stat(path)
if st and st.type == "link" then
  os.remove(path)
end

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13174 |21mr|guidelines-support-library-3.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: guidelines-support-library
Summary: Guidelines Support Library
# update breaks telegram-desktop
Version:	3.1.0
Group:		System/Libraries
Release:	1

License: MIT
URL: https://github.com/Microsoft/GSL
Source0: %{url}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch: noarch

%description
Header-only %{summary}.

%package devel
Summary: Development files for %{name}
Provides: %{name}-static = %{version}-%{release}

%description devel
%{summary}.

%prep
%autosetup -n GSL-%{version}

%build
# Nothing to build. Header-only library.

%install
# Installing headers...
mkdir -p "%{buildroot}%{_includedir}/"
cp -ra include/gsl %{buildroot}%{_includedir}/

%files devel
%doc README.md CONTRIBUTING.md
%license LICENSE ThirdPartyNotices.txt
%{_includedir}/gsl/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13175 |21mr|guile22-2.2.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname guile

%define major 1
%define api 2.2
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	GNU implementation of Scheme for application extensibility
Name:		guile22
Version:	2.2.7
Release:	5
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.gnu.org/software/guile/guile.html
Source0:	ftp://ftp.gnu.org/pub/gnu/guile/%{oname}-%{version}.tar.xz
Source100:	guile22.rpmlintrc
Patch3:		guile-2.0.7-turn-off-gc-test.patch
Patch4:		guile-2.0.3-mktemp.patch
BuildRequires:	chrpath
BuildRequires:	libunistring-devel
BuildRequires:	texinfo
# for srfi-19.test
BuildRequires:	timezone
BuildRequires:	gettext-devel
BuildRequires:	gmp-devel
BuildRequires:	libtool-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(bdw-gc)
Conflicts:	%{oname} > %{version}

%description
GUILE (GNU's Ubiquitous Intelligent Language for Extension) is a
library implementation of the Scheme programming language, written in
C. GUILE provides a machine-independent execution platform that can
be linked in as a library during the building of extensible programs.

Install the guile package if you'd like to add extensibility to
programs that you are developing. You'll also need to install the
guile-devel package.

%files
%doc AUTHORS GUILE-VERSION README THANKS
%{_bindir}/%{oname}
%{_bindir}/%{oname}-tools
%{_bindir}/guild
%{_libdir}/%{oname}
%exclude %{_libdir}/%{oname}/%{api}
%{_datadir}/%{oname}
%exclude %{_datadir}/%{oname}/%{api}
%{_mandir}/man1/guile.1.*
%{_infodir}/*

%triggerin -- slib
ln -sfT ../../slib %{_datadir}/guile/%{api}/slib

rm -f %{_datadir}/guile/%{mver}/slibcat
export SCHEME_LIBRARY_PATH=%{_datadir}/slib/

# Build SLIB catalog
for pre in \
    "(use-modules (ice-9 slib))" \
    "(load \"%{_datadir}/slib/guile.init\")"
do
    %{_bindir}/guile -c "$pre
        (set! implementation-vicinity (lambda () \"%{_datadir}/guile/%{api}/\"))
        (require 'new-catalog)" &> /dev/null && break
    rm -f %{_datadir}/guile/%{api}/slibcat
done
:

%triggerun -- slib
if [ "$1" = 0 -o "$2" = 0 ]; then
    rm -f %{_datadir}/guile/%{api}/slib{,cat}
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for Guile %{version}
Group:		System/Libraries
Requires:	%{name}-runtime = %{EVRD}

%description -n %{libname}
This package contains Guile shared object libraries.

%files -n %{libname}
%{_libdir}/lib%{oname}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and static library for libguile
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
# For -lgc, requested by pkg-config --libs guile-2.2
Requires:	pkgconfig(bdw-gc)
Requires:	gmp-devel
Conflicts:	%{mklibname %{oname} -d} > %{version}

%description -n %{devname}
This package contains the development headers and the static library
for libguile. C headers, aclocal macros, the `guile1.4-snarf' and
`guile-config' utilities, and static `libguile' library for Guile, the
GNU Ubiquitous Intelligent Language for Extension

%files -n %{devname}
%{_bindir}/%{oname}-config
%{_bindir}/%{oname}-snarf
%{_datadir}/aclocal/*
%{_includedir}/%{oname}
%{_libdir}/lib%{oname}-%{api}.so
%{_libdir}/pkgconfig/%{oname}*.pc
%{_datadir}/gdb/auto-load%{_libdir}/libguile*.scm

#----------------------------------------------------------------------------

%package runtime
Summary:	Guile runtime library
Group:		System/Libraries

%description runtime
This package contains Scheme runtime for GUILE, including ice-9
Scheme module.

%files runtime
%{_libdir}/%{oname}/%{api}/*
%{_datadir}/%{oname}/%{api}/*.scm
%{_datadir}/%{oname}/%{api}/*.txt
%{_datadir}/%{oname}/%{api}/ice-9/*
%{_datadir}/%{oname}/%{api}/language/*
%{_datadir}/%{oname}/%{api}/oop/*
%{_datadir}/%{oname}/%{api}/rnrs/*
%{_datadir}/%{oname}/%{api}/scripts/*
%{_datadir}/%{oname}/%{api}/srfi/*
%{_datadir}/%{oname}/%{api}/sxml/*
%{_datadir}/%{oname}/%{api}/system/*
%{_datadir}/%{oname}/%{api}/texinfo/*
%{_datadir}/%{oname}/%{api}/web/*
%ghost %{_datadir}/%{oname}/%{api}/slibcat
%ghost %{_datadir}/%{oname}/%{api}/slib

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches
autoreconf -vfi

#fix encodings
for i in libguile/ChangeLog*; do
    mv $i $i.old
    iconv -f ISO8859-1 -t UTF-8 $i.old -o $i
done

%build
# http://llvm.org/bugs/show_bug.cgi?id=14406
export CC=gcc
export CXX=g++
%configure \
    --disable-error-on-warning \
    --disable-rpath \
    --with-threads \
    --with-pic

%make

%install
%makeinstall_std

#remove rpath
chrpath -d %{buildroot}%{_bindir}/%{oname}

#for ghost files
touch %{buildroot}%{_datadir}/%{oname}/%{api}/slibcat
touch %{buildroot}%{_datadir}/%{oname}/%{api}/slib

mkdir -p %{buildroot}/%{_datadir}/gdb/auto-load%{_libdir}
mv -f %{buildroot}%{_libdir}/libguile-*gdb.scm %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}

#slib needs this
mkdir -p %{buildroot}%{_datadir}/guile/site

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13176 |21mr|guile-3.0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define api %(echo %{version} | cut -d. -f1-2)
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	GNU implementation of Scheme for application extensibility
Name:		guile
Version:	3.0.8
Release:	2
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.gnu.org/software/guile/guile.html
Source0:	ftp://ftp.gnu.org/pub/gnu/guile/%{name}-%{version}.tar.xz
Source1:        guile.rpmlintrc
BuildRequires:	chrpath
BuildRequires:	libunistring-devel
BuildRequires:	texinfo
# for srfi-19.test
BuildRequires:	timezone
BuildRequires:	gettext-devel
BuildRequires:	gmp-devel
BuildRequires:	libtool-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(bdw-gc)

%description
GUILE (GNU's Ubiquitous Intelligent Language for Extension) is a
library implementation of the Scheme programming language, written in
C. GUILE provides a machine-independent execution platform that can
be linked in as a library during the building of extensible programs.

Install the guile package if you'd like to add extensibility to
programs that you are developing. You'll also need to install the
guile-devel package.

%files
%doc AUTHORS ChangeLog GUILE-VERSION LICENSE README THANKS
%{_bindir}/%{name}
%{_bindir}/%{name}-tools
%{_bindir}/guild
%{_libdir}/%{name}
%exclude %{_libdir}/%{name}/%{api}
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/%{api}
%{_mandir}/man1/guile.1.*
%{_infodir}/*

%triggerin -- slib
ln -sfT ../../slib %{_datadir}/guile/%{api}/slib

rm -f %{_datadir}/guile/%{mver}/slibcat
export SCHEME_LIBRARY_PATH=%{_datadir}/slib/

# Build SLIB catalog
for pre in \
    "(use-modules (ice-9 slib))" \
    "(load \"%{_datadir}/slib/guile.init\")"
do
    %{_bindir}/guile -c "$pre
        (set! implementation-vicinity (lambda () \"%{_datadir}/guile/%{api}/\"))
        (require 'new-catalog)" &> /dev/null && break
    rm -f %{_datadir}/guile/%{api}/slibcat
done
:

%triggerun -- slib
if [ "$1" = 0 -o "$2" = 0 ]; then
    rm -f %{_datadir}/guile/%{api}/slib{,cat}
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for Guile %{version}
Group:		System/Libraries
Requires:	%{name}-runtime = %{EVRD}

%description -n %{libname}
This package contains Guile shared object libraries.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and static library for libguile
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development headers and the static library
for libguile. C headers, aclocal macros, the `guile1.4-snarf' and
`guile-config' utilities, and static `libguile' library for Guile, the
GNU Ubiquitous Intelligent Language for Extension

%files -n %{devname}
%doc HACKING NEWS libguile/ChangeLog*
%{_bindir}/%{name}-config
%{_bindir}/%{name}-snarf
%{_datadir}/aclocal/*
%{_includedir}/%{name}
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}*.pc
%{_datadir}/gdb/auto-load%{_libdir}/libguile*.scm

#----------------------------------------------------------------------------

%package runtime
Summary:	Guile runtime library
Group:		System/Libraries
Conflicts:	%{name} < 2.0.5-1

%description runtime
This package contains Scheme runtime for GUILE, including ice-9
Scheme module.

%files runtime
%{_libdir}/%{name}/%{api}/*
%{_datadir}/%{name}/%{api}/*.scm
%{_datadir}/%{name}/%{api}/*.txt
%{_datadir}/%{name}/%{api}/ice-9/*
%{_datadir}/%{name}/%{api}/language/*
%{_datadir}/%{name}/%{api}/oop/*
%{_datadir}/%{name}/%{api}/rnrs/*
%{_datadir}/%{name}/%{api}/scripts/*
%{_datadir}/%{name}/%{api}/srfi/*
%{_datadir}/%{name}/%{api}/sxml/*
%{_datadir}/%{name}/%{api}/system/*
%{_datadir}/%{name}/%{api}/texinfo/*
%{_datadir}/%{name}/%{api}/web/*
%ghost %{_datadir}/%{name}/%{api}/slibcat
%ghost %{_datadir}/%{name}/%{api}/slib

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# remove broken prebuilt objects
rm -r prebuilt/32-bit-big-endian

autoreconf -vfi

#fix encodings
for i in libguile/ChangeLog*; do
	mv $i $i.old
	iconv -f ISO8859-1 -t UTF-8 $i.old -o $i
done

%build
%config_update
%configure \
	--disable-error-on-warning \
	--disable-rpath \
	--disable-static \
	--with-threads \
	--with-pic

%make_build

%install
%make_install

#remove rpath
chrpath -d %{buildroot}%{_bindir}/%{name}

#for ghost files
touch %{buildroot}%{_datadir}/%{name}/%{api}/slibcat
touch %{buildroot}%{_datadir}/%{name}/%{api}/slib

mkdir -p %{buildroot}/%{_datadir}/gdb/auto-load%{_libdir}
mv -f %{buildroot}%{_libdir}/libguile-*gdb.scm %{buildroot}%{_datadir}/gdb/auto-load%{_libdir}

#slib needs this
mkdir -p %{buildroot}%{_datadir}/guile/site

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13177 |21mr|gulrak-filesystem-devel-1.5.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %nil

Summary:	This is a header-only single-file std::filesystem compatible helper library
Name:		gulrak-filesystem-devel
Version:	1.5.14
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		https://github.com/gulrak/filesystem/
Source0:	https://github.com/gulrak/filesystem/archive/refs/tags/v%{version}.tar.gz
Patch0:		e2k-fix-warning-error.patch
BuildRequires:	cmake

%description
This is a header-only single-file std::filesystem compatible helper library

%files
%{_includedir}/ghc/*

#---------------------------------------------------------------------

%prep
%autosetup -p1 -n filesystem-%{version}

%build
%cmake -DGHC_FILESYSTEM_BUILD_EXAMPLES=OFF -DGHC_FILESYSTEM_BUILD_TESTING=OFF
%make_build

%install
%make_install -C build
rm -rf %{buildroot}/%{_libdir}/cmake/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13178 |21mr|gupnp-1.4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.2
%define major 1
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Object-oriented framework for creating UPnP devices and control points
Name:		gupnp
Version:	1.4.3
Release:	2
License:	GPLv2+
Group:		Development/Other
Url:		https://download.gnome.org/sources/gupnp
Source0:	https://download.gnome.org/sources/gupnp/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gupnp-1.4.3-drop-web-check-man.patch
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gssdp-1.2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uuid)

%description
GUPnP is an object-oriented open source framework for creating UPnP
devices and control points.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for gupnp
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with gupnp.

%files -n %{libname}
%{_libdir}/*%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GUPnP-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use gupnp
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use gupnp

%files -n %{devname}
%doc AUTHORS README.md NEWS
%license COPYING
%{_libdir}/pkgconfig/%{name}*.pc
%{_includedir}/%{name}-%{api}/lib%{name}/*.h
%{_libdir}/*.so
%{_datadir}/gtk-doc/html/*
%{_bindir}/%{name}-binding-tool-%{api}
%{_datadir}/gir-1.0/GUPnP-%{api}.gir
%{_datadir}/vala/vapi/*
%{_mandir}/man1/%{name}-binding-tool-*.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%ifarch %{e2k}
CFLAGS='%{optflags} -Wno-error=deprecated-declarations'
%endif
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13179 |21mr|gupnp-av-0.14.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.0
%define major 3
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	A collection of helpers for building UPnP AV applications
Name:		gupnp-av
Version:	0.14.1
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gupnp-av
Source0:	https://download.gnome.org/sources/gupnp-av/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gupnp-1.2)
BuildRequires:	pkgconfig(libxml-2.0)

%description
GUPnP is an object-oriented open source framework for creating UPnP
devices and control points, written in C using GObject and libsoup.
The GUPnP API is intended to be easy to use, efficient and flexible.

GUPnP-AV is a collection of helpers for building AV (audio/video)
applications using GUPnP.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A collection of helpers for building UPnP AV applications
Group:		System/Libraries
# The .xsd files were moved from the dev package to this one
Conflicts:	%{devname} < %{EVRD}

%description -n %{libname}
GUPnP is an object-oriented open source framework for creating UPnP
devices and control points, written in C using GObject and libsoup.
The GUPnP API is intended to be easy to use, efficient and flexible.

GUPnP-AV is a collection of helpers for building AV (audio/video) 
applications using GUPnP.

%files -n %{libname}
%license COPYING
%{_libdir}/libgupnp-av-%{api}.so.%{major}*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/GUPnPAV-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for gupnp-av
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for development with gupnp-av.

%files -n %{devname}
%doc AUTHORS NEWS README.md
%license COPYING
%{_datadir}/gir-1.0/GUPnPAV-%{api}.gir
%{_datadir}/gtk-doc/html/gupnp-av/
%{_datadir}/vala/vapi/*
%{_includedir}/gupnp-av-%{api}
%{_libdir}/pkgconfig/gupnp-av-%{api}.pc
%{_libdir}/libgupnp-av-%{api}.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%ifarch %{e2k}
CFLAGS="%{optflags} -Wno-error=deprecated-declarations"
%endif

%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13180 |21mr|gupnp-dlna-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)
%define _disable_ld_no_undefined 1

%define api		2.0
%define major		4
%define girmajor	2.0
%define libname		%mklibname %{name} %{api} %{major}
%define libgst		%mklibname %{name}-gst %{api} %{major}
%define girname		%mklibname %{name}-gir %{girmajor}
%define girgst		%mklibname %{name}-gst-gir %{girmajor}
%define devname		%mklibname %{name} -d

Summary:	A collection of helpers for building UPnP dlna applications
Name:		gupnp-dlna
Version:	0.12.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gupnp-dlna
Source0:	https://download.gnome.org/sources/gupnp-dlna/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(vapigen)

%description
GUPnP is an object-oriented open source framework for creating UPnP devices and
control points, written in C using GObject and libsoup. The GUPnP API is
intended to be easy to use, efficient and flexible.

GUPnP DLNA is a small utility library that aims to ease the
DLNA-related tasks such as media profile guessing, transcoding to
a given profile, etc.

%files
%{_bindir}/%{name}-*
%{_datadir}/%{name}-%{api}
%{_libdir}/%{name}/libgstreamer.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A collection of helpers for building UPnP DLNA applications
Group:		System/Libraries

%description -n %{libname}
GUPnP is an object-oriented open source framework for creating UPnP
devices and control points, written in C using GObject and libsoup.
The GUPnP API is intended to be easy to use, efficient and flexible.

GUPnP DLNA is a small utility library that aims to ease the
DLNA-related tasks such as media profile guessing, transcoding to
a given profile, etc.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgst}
Summary:	A collection of helpers for building UPnP DLNA applications
Group:		System/Libraries

%description -n %{libgst}
GUPnP is an object-oriented open source framework for creating UPnP
devices and control points, written in C using GObject and libsoup.
The GUPnP API is intended to be easy to use, efficient and flexible.

GUPnP DLNA is a small utility library that aims to ease the
DLNA-related tasks such as media profile guessing, transcoding to
a given profile, etc.

%files -n %{libgst}
%doc AUTHORS COPYING README
%{_libdir}/lib%{name}-gst-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libgst} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%{_datadir}/gir-1.0/GUPnPDLNA-%{girmajor}.gir
%{_datadir}/gir-1.0/GUPnPDLNAGst-%{girmajor}.gir
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/gtk-doc/html/%{name}-metadata
%{_datadir}/gtk-doc/html/%{name}-gst
%{_datadir}/vala/vapi/*
%{_includedir}/*
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-gst-%{api}.pc
%{_libdir}/pkgconfig/%{name}-metadata-2.0.pc
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/lib%{name}-gst-%{api}.so

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GUPnPDLNA-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{girgst}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libgst} = %{EVRD}

%description -n %{girgst}
GObject Introspection interface description for %{name}.

%files -n %{girgst}
%{_libdir}/girepository-1.0/GUPnPDLNAGst-%{girmajor}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13181 |21mr|gupnp-igd-1.2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api	1.0
%define major	4
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Handle Internet Gateway Device port mappings
Name:		gupnp-igd
Version:	1.2.0
Release:	10
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gupnp-igd
Source0:	https://download.gnome.org/sources/gupnp-igd/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gupnp-1.2)
BuildRequires:	pkgconfig(pygobject-3.0)

%description
GUPnP is an object-oriented open source framework for creating UPnP
devices and control points, written in C using GObject and libsoup.
The GUPnP API is intended to be easy to use, efficient and flexible.

GUPnP-Igd is a library that handle Internet Gateway Device port mappings.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Handle Internet Gateway Device port mappings
Group:		System/Libraries

%description -n %{libname}
GUPnP is an object-oriented open source framework for creating UPnP
devices and control points, written in C using GObject and libsoup.
The GUPnP API is intended to be easy to use, efficient and flexible.

GUPnP-Igd is a library that handle Internet Gateway Device port mappings.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/GUPnPIgd-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for gupnp-igd
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for development with gupnp-igd.

%files -n %{devname}
%doc AUTHORS COPYING README
%{_datadir}/gir-1.0/GUPnPIgd-%{api}.gir
%{_datadir}/gtk-doc/html/%{name}
%{_includedir}/%{name}-%{api}
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/lib%{name}-%{api}.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13182 |21mr|gutenprint-5.3.4-1.20231214T01
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sver 2023-12-14T01-00-6a3da773
%define dver %(echo %{sver} |cut -d- -f-3 |tr -d -)

%define driverversion 5.3
%define gutenprintmajor 9
%define libgutenprint %mklibname %{name} %{gutenprintmajor}
%define devgutenprint %mklibname %{name} -d
%define gutenprintui2major 2
%define libgutenprintui2 %mklibname %{name}ui2_ %{gutenprintui2major}
%define devgutenprintui2 %mklibname %{name}ui2 -d

%define cups_serverbin %{_exec_prefix}/lib/cups

%define _disable_ld_no_undefined 1

Summary:	Photo-quality printer drivers primarily for inkjet printers
Name:		gutenprint
Version:	5.3.4
Release:	1.%{dver}
License:	GPLv2+
Group:		Publishing
Url:		https://gimp-print.sourceforge.net
Source0:	https://sourceforge.net/projects/gimp-print/files/snapshots/%{name}-%{version}-%{sver}.tar.xz
Patch1:		gutenprint-5.0.1-menu.patch
Patch2:		gutenprint-5.3.3-default-a4.patch
Patch3:		gutenprint-5.2.9-m4dir.patch
Patch4:		gutenprint-postscriptdriver.patch
Patch5:		gutenprint-yyin.patch
Patch6:		gutenprint-manpage.patch
Patch7:		gutenprint-5.3.4-add-brother-hl-2030-support.patch
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	flex
BuildRequires:	foomatic-db
BuildRequires:	foomatic-db-engine
BuildRequires:	cups-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ijs)
BuildRequires:	pkgconfig(libtiff-4)

%description
Gutenprint is a high quality printer driver suite for photo-quality
printing on inkjet printers, especially Epson. There are also some
Canon, HP, and Lexmark inkjets (older models) and PCL bw laser
printers supported (PCL 5e and earlier). If your printer is supported
by Gutenprint and not an HP printer supported by HPIJS, this is the
best choice of a free software printer driver.

Keep in mind that the leader of this project is hobby photographer and
wanted to get his 6-ink Epson Stylus Photo EX working in its best
quality without necessity of proprietary software.

#----------------------------------------------------------------------------

%package -n %{libgutenprint}
Summary:	Shared library for high-quality image printing
Group:		Publishing
Provides:	lib%{name} = %{EVRD}

%description -n %{libgutenprint}
This is a high-quality printing library used by the Gutenprint plugin,
the Gutenprint IJS color/photo inkjet/laser driver for GhostScript,
and by specialized CUPS drivers.

%files -n %{libgutenprint}
%{_libdir}/lib%{name}.so.%{gutenprintmajor}*

#----------------------------------------------------------------------------

%package -n %{devgutenprint}
Summary:	Headers and links for compiling against libgutenprint
Group:		Development/C
Requires:	%{libgutenprint} = %{EVRD}
Provides:	libgutenprint-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}gutenprint2-devel < 5.2.9-6
Obsoletes:	%{_lib}gutenprint2-devel < 5.2.9-6

%description -n %{devgutenprint}
These are the links and header files to compile applications which
should use the libgutenprint library.

%files -n %{devgutenprint}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n %{libgutenprintui2}
Summary:	Shared library for Gutenprint GUI with GTK 2.x
Group:		Publishing
Provides:	lib%{name}ui2 = %{EVRD}

%description -n %{libgutenprintui2}
This is a GTK-2.x-based GUI library to create dialogs to control
the Gutenprint printer drivers.

%files -n %{libgutenprintui2}
%{_libdir}/lib%{name}ui2.so.%{gutenprintui2major}*

#----------------------------------------------------------------------------

%package -n %{devgutenprintui2}
Summary:	Headers and links for compiling against libgutenprintui2
Group:		Development/C
Requires:	%{libgutenprintui2} = %{EVRD}
Provides:	lib%{name}ui2-devel = %{EVRD}
Conflicts:	%{_lib}gutenprintui2_1-devel < 5.2.9-6
Obsoletes:	%{_lib}gutenprintui2_1-devel < 5.2.9-6

%description -n %{devgutenprintui2}
These are the links and header files to compile applications which
should use the libgutenprintui2 library.

%files -n %{devgutenprintui2}
%{_includedir}/gutenprintui2
%{_libdir}/lib%{name}ui2.so
%{_libdir}/pkgconfig/%{name}ui2.pc

#----------------------------------------------------------------------------

%package common
Summary:	Documentation, samples and translations of Gutenprint
Group:		Publishing
Provides:	gimpprint-common = %{EVRD}
Obsoletes:	gutenprint-ijs < 5.3.3
Obsoletes:	gutenprint-foomatic < 5.3.3

%description common
Documentation, sample files, and translations of Gutenprint.

%files common -f %{name}.lang
%doc ABOUT-NLS AUTHORS NEWS README
%license COPYING
%{_bindir}/testpattern
%{_datadir}/%{name}
%{_libdir}/%{name}/%{driverversion}

#----------------------------------------------------------------------------

%package cups
Summary:	Special CUPS printer driver of Gutenprint
Group:		Publishing
Requires:	cups
Requires:	%{name}-common = %{EVRD}
Provides:	gimpprint-cups = %{EVRD}

%description cups
This package contains a special Gutenprint printer driver to be used
with CUPS (and without GhostScript) and also the appropriate PPD files
to set up print queues with this driver.

With the Gutenprint CUPS drivers you can do a colour caibration. Use
the program "cups-calibrate" to perform it.

%files cups
%attr(0755,root,root) %{_prefix}/lib*/cups/driver/%{name}.%{driverversion}
%attr(0755,root,root) %{_prefix}/lib*/cups/filter/*
%{_bindir}/cups-*
%config(noreplace) %{_sysconfdir}/cups/command.*
%{_datadir}/cups/calibrate.ppm
%{_mandir}/man8/cups-*
%{_sbindir}/cups-*

%post cups
# Restart the CUPS daemon when it is running, but do not start it when it
# is not running. The restart of the CUPS daemon updates the CUPS-internal
# PPD index
/sbin/service cups condrestart || :
# Update print queues with Gutenprint CUPS driver
/usr/sbin/cups-genppdupdate > /dev/null 2>/dev/null || :

%postun cups
# Restart the CUPS daemon when it is running, but do not start it when it
# is not running. The restart of the CUPS daemon updates the CUPS-internal
# PPD index
# Do not restart on upgrades, as it is already restarted by post section.
if [ $1 -eq 1 ]; then
	/sbin/service cups condrestart || :
fi

#----------------------------------------------------------------------------

%package escputil
Summary:	Gutenprint ink level monitor and printer maintenance tool
Group:		Publishing
Requires:	%{name}-common = %{EVRD}
Provides:	gimpprint-escputil

%description escputil
This is a command line tool to query ink levels and to maintain
Epson's inkjet printers. It allows ink level query, head alignment,
nozzle checking, and nozzle cleaning. If you want a graphical
interface, use mtink instead.

%files escputil
%attr(0755,lp,sys) %{_bindir}/escputil
%{_mandir}/man1/escputil*

#----------------------------------------------------------------------------

%package gimp2
Summary:	Gutenprint plugin for high-quality image printing
Group:		Publishing
Requires:	gimp
Requires:	%{name}-common = %{EVRD}
Provides:	gimpprint-gimp2 = %{EVRD}

%description gimp2
This is a plug-in for the GIMP, which allows printing of images and
photos in very high quality on many modern inkjet printers and also
some lasers. Especially on Epson Stylus printers the quality which one
gets under proprietary operating systems is reached, due to Epson
publishing the protocols of their printers, but other brands of
printers give very high qualities, too. It can also output PostScript
to be able to print out of the GIMP on any printer.

%files gimp2
%{_libdir}/gimp/2.0/plug-ins/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-%{sver}

%build
# Don't run the weave test as it takes a very long time.
sed -i -e 's,^\(TESTS *=.*\) run-weavetest,\1,' test/Makefile.in

%configure	\
	--disable-libgutenprintui	\
	--disable-rpath		\
	--disable-static-genppd	\
	--disable-translated-cups-ppds	\
	--enable-cups-level3-ppds	\
	--enable-libgutenprintui2	\
	--enable-shared		\
	--enable-simplified-cups-ppds	\
	--with-cups		\
	--with-foomatic		\
	--with-foomatic3	\
	--with-gimp2		\
	--with-ijs		\
	--without-gimp
%make

%install
%make_install

# Remove /usr/share/foomatic/kitload.log
rm -f %{buildroot}%{_datadir}/foomatic/kitload.log

# Remove "canon" and "epson" CUPS backends
rm -f %{buildroot}%{_prefix}/lib*/cups/backend/canon
rm -f %{buildroot}%{_prefix}/lib*/cups/backend/epson

# Remove a GTK-1.x file which is installed even when GTK-1.x support
# is disabled (Gutenprint bug)
rm -f %{buildroot}%{_libdir}/pkgconfig/%{name}ui.pc

# Fix up rpath.
for file in \
	%{buildroot}%{_sbindir}/cups-genppd.%{driverversion} \
	%{buildroot}%{_libdir}/gimp/*/plug-ins/* \
	%{buildroot}%{_libdir}/*.so.* \
	%{buildroot}%{cups_serverbin}/driver/* \
	%{buildroot}%{cups_serverbin}/filter/* \
	%{buildroot}%{_bindir}/*
do
	chrpath --delete ${file}
done

# Translation files of Gutenprint
find %{buildroot} -regex ".*/gutenprint.*.[mp]o" | sed -e "s@^%{buildroot}@@" > %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13183 |21mr|gv-3.7.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An enhanced front-end for the ghostscript PostScript(TM) interpreter
Name:		gv
Version:	3.7.4
Release:	5
License:	GPLv2+
Group:		Publishing
Url:		http://www.gnu.org/software/gv/
# old source: ftp://thep.physik.uni-mainz.de/pub/gv/unix/%{name}-%{version}.tar.bz2
Source0:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Source1:	ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz.sig
Source11:	%{name}.png
Patch1:		gv-3.6.3-gvuncompress.patch
BuildRequires:	imagemagick
BuildRequires:	texinfo
BuildRequires:	Xaw3d-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
Requires:	ghostscript-module-X
Provides:	ghostview = %{EVRD}

%description
Gv provides a user interface for the ghostscript PostScript(TM) interpreter.
Derived from the ghostview program, gv can display PostScript and PDF
documents using the X Window System.

Install the gv package if you'd like to view PostScript and PDF documents
on your system. You'll also need to have the ghostscript package
installed, as well as the X Window System.

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_infodir}/*
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/applications/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1 -b .gvuncompress

%build
# force regeneration of file
rm -f src/gv_intern_res_unix.dat

%configure \
	--with-scratch-dir=~/tmp/ \
	--enable-scrollbar-code
%make

%install
%makeinstall_std
install -m 0755 gvuncompress %{buildroot}%{_bindir}/gvuncompress

# icons
mkdir -p %{buildroot}%{_iconsdir} %{buildroot}%{_miconsdir}
install -m644 %{SOURCE11} -D %{buildroot}%{_liconsdir}/gv.png
convert -geometry 32x32 %{SOURCE11} %{buildroot}%{_iconsdir}/gv.png
convert -geometry 16x16 %{SOURCE11} %{buildroot}%{_miconsdir}/gv.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=gv
Comment=Viewer for Postscript and PDF files
Comment=Просмотр файлов Postscript и PDF
Exec=%{_bindir}/gv %f
Icon=gv
Terminal=false
Type=Application
Categories=Office;Viewer;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13184 |21mr|gvfs-1.54.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%bcond_without gphoto2

%define Werror_cflags %{nil}

Summary:	Glib VFS library
Name:		gvfs
Version:	1.54.3
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/gvfs
Source0:	https://download.gnome.org/sources/gvfs/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		gvfs-1.50.1-ru-po-translate.patch
Patch1:		gvfs-1.54.0-drop-undefined-reference-timeout.patch
BuildRequires:	intltool
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
BuildRequires:	cdda-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(fuse3)
BuildRequires:	pkgconfig(gcr-4)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gmodule-no-export-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libbluray)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libcdio_paranoia)
%if %{with gphoto2}
BuildRequires:	pkgconfig(libgphoto2)
%endif
BuildRequires:	pkgconfig(libimobiledevice-1.0)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libnfs)
BuildRequires:	pkgconfig(libplist-2.0)
BuildRequires:	pkgconfig(libsecret-unstable)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(udisks2)
Requires(post,postun):	gio2.0
Requires:	dconf
Requires:	udisks2
Requires:	%{name}-mtp
Recommends:	%{name}-fuse
Recommends:	%{name}-smb
Recommends:	%{name}-archive
Recommends:	%{name}-iphone
%if %{with gphoto2}
Recommends:	%{name}-gphoto2
%endif
Conflicts:	%{libname} < 1.6.7-4
Conflicts:	%{name}-gphoto2 < 1.13.2-3
Obsoletes:	%{name}-obexftp < 1.23.92

%description
This is a Virtual File System library based on gio and Glib.

%files -f %{name}.lang
%doc README.md
%license COPYING
%{_datadir}/dbus-1/services/org.gtk.vfs.Daemon.service
%{_datadir}/dbus-1/services/org.gtk.vfs.Metadata.service
%{_datadir}/dbus-1/services/org.gtk.vfs.UDisks2VolumeMonitor.service
%{_datadir}/GConf/gsettings/%{name}-dns-sd.convert
%{_datadir}/glib-2.0/schemas/org.gnome.system.dns_sd.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.system.%{name}.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.system.wsdd.gschema.xml
%{_datadir}/%{name}/mounts/afp-browse.mount
%{_datadir}/%{name}/mounts/afp.mount
%{_datadir}/%{name}/mounts/cdda.mount
%{_datadir}/%{name}/mounts/computer.mount
%{_datadir}/%{name}/mounts/dav.mount
%{_datadir}/%{name}/mounts/dav+sd.mount
%{_datadir}/%{name}/mounts/dns-sd.mount
%{_datadir}/%{name}/mounts/ftpis.mount
%{_datadir}/%{name}/mounts/ftp.mount
%{_datadir}/%{name}/mounts/ftps.mount
%{_datadir}/%{name}/mounts/http.mount
%{_datadir}/%{name}/mounts/localtest.mount
%{_datadir}/%{name}/mounts/network.mount
%{_datadir}/%{name}/mounts/recent.mount
%{_datadir}/%{name}/mounts/sftp.mount
%{_datadir}/%{name}/mounts/trash.mount
%{_datadir}/%{name}/mounts/wsdd.mount
%{_datadir}/%{name}/remote-volume-monitors/udisks2.monitor
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/mounts
%dir %{_datadir}/%{name}/remote-volume-monitors
%{_libdir}/gio/modules/libgioremote-volume-monitor.so
%{_libdir}/gio/modules/lib%{name}dbus.so
%{_libexecdir}/%{name}d
%{_libexecdir}/%{name}d-afp
%{_libexecdir}/%{name}d-afp-browse
%{_libexecdir}/%{name}d-cdda
%{_libexecdir}/%{name}d-computer
%{_libexecdir}/%{name}d-dav
%{_libexecdir}/%{name}d-dnssd
%{_libexecdir}/%{name}d-ftp
%{_libexecdir}/%{name}d-http
%{_libexecdir}/%{name}d-localtest
%{_libexecdir}/%{name}d-metadata
%{_libexecdir}/%{name}d-network
%{_libexecdir}/%{name}d-recent
%{_libexecdir}/%{name}d-sftp
%{_libexecdir}/%{name}d-trash
%{_libexecdir}/%{name}d-wsdd
%{_libexecdir}/%{name}-udisks2-volume-monitor
%{_mandir}/man1/%{name}d.*
%{_mandir}/man1/%{name}d-metadata.*
%{_mandir}/man7/%{name}.*
%{_prefix}/lib/tmpfiles.d/%{name}d-fuse-tmpfiles.conf
%{_sysconfdir}/skel/.%{name}
%{_userunitdir}/%{name}-daemon.service
%{_userunitdir}/%{name}-metadata.service
%{_userunitdir}/%{name}-udisks2-volume-monitor.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Glib VFS library
Group:		System/Libraries

%description -n %{libname}
This is a Virtual File System library based on gio and Glib.

%files -n %{libname}
%{_libdir}/%{name}/lib%{name}*.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Glib VFS Library - development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is a Virtual File System library based on gio and Glib.

%files -n %{devname}
%doc NEWS README.md
%{_includedir}/%{name}-client

#----------------------------------------------------------------------------

%package fuse
Summary:	FUSE support for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	fuse

%description fuse
This package provides support for applications not using gio
to access the %{name} filesystems.

%files fuse
%{_libexecdir}/%{name}d-fuse
%{_mandir}/man1/%{name}d-fuse.*

#----------------------------------------------------------------------------

%package iphone
Summary:	Iphone support for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description iphone
This package provides support for reading and writing files on
the iPhone and the iPod TouchP to applications using %{name}.

%files iphone
%{_datadir}/dbus-1/services/org.gtk.vfs.AfcVolumeMonitor.service
%{_datadir}/%{name}/mounts/afc.mount
%{_datadir}/%{name}/remote-volume-monitors/afc.monitor
%{_libexecdir}/%{name}-afc-volume-monitor
%{_libexecdir}/%{name}d-afc
%{_userunitdir}/%{name}-afc-volume-monitor.service

#----------------------------------------------------------------------------

%package smb
Summary:	Windows fileshare support for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description smb
This package provides support for reading and writing files on windows
shares (smb) to applications using %{name}.

%files smb
%{_datadir}/GConf/gsettings/%{name}-smb.convert
%{_datadir}/glib-2.0/schemas/org.gnome.system.smb.gschema.xml
%{_datadir}/%{name}/mounts/smb-browse.mount
%{_datadir}/%{name}/mounts/smb.mount
%{_libexecdir}/%{name}d-smb
%{_libexecdir}/%{name}d-smb-browse

#----------------------------------------------------------------------------

%package mtp
Summary:	Support MTP media players
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description mtp
This package provides support for reading and writing files on MTP
media players.

%files mtp
%{_datadir}/dbus-1/services/org.gtk.vfs.MTPVolumeMonitor.service
%{_datadir}/%{name}/mounts/mtp.mount
%{_datadir}/%{name}/remote-volume-monitors/mtp.monitor
%{_libexecdir}/%{name}d-mtp
%{_libexecdir}/%{name}-mtp-volume-monitor
%{_userunitdir}/%{name}-mtp-volume-monitor.service

#----------------------------------------------------------------------------

%package nfs
Summary:	NFS support for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description nfs
This package provides support for reading and writing files on
NFS network shares (Network File System) to applications using %{name}.

%files nfs
%{_datadir}/%{name}/mounts/nfs.mount
%{_libexecdir}/%{name}d-nfs

#----------------------------------------------------------------------------

%package goa
Summary:	GOA support for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description goa
This package provides seamless integration with gnome-online-accounts
file services.

%files goa
%{_datadir}/dbus-1/services/org.gtk.vfs.GoaVolumeMonitor.service
%{_datadir}/%{name}/remote-volume-monitors/goa.monitor
%{_libexecdir}/%{name}-goa-volume-monitor
%{_userunitdir}/%{name}-goa-volume-monitor.service

#----------------------------------------------------------------------------

%package archive
Summary:	Archiving support for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description archive
This package provides support for accessing files inside Zip and Tar archives,
as well as ISO images, to applications using %{name}.

%files archive
%{_libexecdir}/%{name}d-archive
%{_datadir}/%{name}/mounts/archive.mount

#----------------------------------------------------------------------------

%if %{with gphoto2}
%package gphoto2
Summary:	Gphoto2 support for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description gphoto2
This package provides support for reading and writing files on
PTP based cameras (Picture Transfer Protocol) and MTP based
media players (Media Transfer Protocol) to applications using %{name}.

%files gphoto2
%{_datadir}/dbus-1/services/org.gtk.vfs.GPhoto2VolumeMonitor.service
%{_datadir}/%{name}/mounts/gphoto2.mount
%{_datadir}/%{name}/remote-volume-monitors/gphoto2.monitor
%{_libexecdir}/%{name}d-gphoto2
%{_libexecdir}/%{name}-gphoto2-volume-monitor
%{_userunitdir}/%{name}-gphoto2-volume-monitor.service
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# admin backend is disabled due to being a huge security hole
# https://gitlab.gnome.org/GNOME/gvfs/issues/355
# https://www.opennet.ru/opennews/art.shtml?num=49871
%meson \
	-Dadmin=false	\
	-Dgoogle=false	\
%if %{with gphoto2}
	-Dgphoto2=true	\
%else
	-Dgphoto2=false	\
%endif
	-Dman=true	\
	-Donedrive=false	\
	-Dudisks2=true

# workaround for meson bug (generate headers in proper dir)
gdbus-codegen \
	--c-namespace GVfsDBus		\
	--generate-c-code %{name}dbus	\
	--interface-prefix org.gtk.vfs.	\
	--output-directory common	\
	common/org.gtk.vfs.xml
%meson_build

%install
%meson_install

%find_lang %{name}

mkdir -p %{buildroot}%{_sysconfdir}/skel/.%{name}

# upstream bash completion is installed in the wrong place, with the wrong perms
# and redefine system variables without notice
rm -f %{buildroot}%{_sysconfdir}/profile.d/%{name}-bash-completion.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13185 |21mr|gwenhywfar-5.6.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 79
%define libname %mklibname %{name} %{major}
%define cpplibname %mklibname gwengui-cpp %{major}
%define gtklibname %mklibname gwengui-gtk2_ %{major}
%define gtk3libname %mklibname gwengui-gtk3_ %{major}
%define qt4libname %mklibname gwengui-qt4_ %{major}
%define qt5libname %mklibname gwengui-qt5_ %{major}
%define devname %mklibname %{name} -d

Summary:	A multi-platform helper library for other libraries
Name:		gwenhywfar
Version:	5.6.0
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gwenhywfar.sourceforge.net/
# http://www2.aquamaniac.de/sites/download/packages.php
Source0:	https://www.aquamaniac.de/rdm/attachments/download/364/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Conflicts:	%{_lib}gwenhywfar60 < 4.15.3
Recommends:	%{name}-gui = %{EVRD}

%description
This is Gwenhywfar, a multi-platform helper library for networking and
security applications and libraries. It is heavily used by libchipcard
and OpenHBCI-TNG (The Next Generation).

%files -f %{name}.lang
%doc AUTHORS README
%{_bindir}/gct-tool
%{_datadir}/%{name}
%{_libdir}/%{name}/plugins/%{major}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A multi-platform helper library for other libraries
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
This is Gwenhywfar, a multi-platform helper library for networking and
security applications and libraries. It is heavily used by libchipcard
and OpenHBCI-TNG (The Next Generation).

%files -n %{libname}
%{_libdir}/libgwenhywfar.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{cpplibname}
Summary:	A multi-platform helper library for other libraries
Group:		System/Libraries

%description -n %{cpplibname}
This is Gwenhywfar, a multi-platform helper library for networking and
security applications and libraries. It is heavily used by libchipcard
and OpenHBCI-TNG (The Next Generation).

%files -n %{cpplibname}
%{_libdir}/libgwengui-cpp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{gtklibname}
Summary:	A multi-platform helper library for other libraries
Group:		System/Libraries

%description -n %{gtklibname}
This is Gwenhywfar, a multi-platform helper library for networking and
security applications and libraries. It is heavily used by libchipcard
and OpenHBCI-TNG (The Next Generation).

%files -n %{gtklibname}
%{_libdir}/libgwengui-gtk2.so.%{major}*

#----------------------------------------------------------------------------


%package -n %{gtk3libname}
Summary:	A multi-platform helper library for other libraries
Group:		System/Libraries
Provides:	%{name}-gui = %{EVRD}

%description -n %{gtk3libname}
This is Gwenhywfar, a multi-platform helper library for networking and
security applications and libraries. It is heavily used by libchipcard
and OpenHBCI-TNG (The Next Generation).

%files -n %{gtk3libname}
%{_libdir}/libgwengui-gtk3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{qt4libname}
Summary:	A multi-platform helper library for other libraries
Group:		System/Libraries

%description -n %{qt4libname}
This is Gwenhywfar, a multi-platform helper library for networking and
security applications and libraries. It is heavily used by libchipcard
and OpenHBCI-TNG (The Next Generation).

%files -n %{qt4libname}
%{_libdir}/libgwengui-qt4.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{qt5libname}
Summary:	A multi-platform helper library for other libraries
Group:		System/Libraries
Provides:	%{name}-gui = %{EVRD}

%description -n %{qt5libname}
This is Gwenhywfar, a multi-platform helper library for networking and
security applications and libraries. It is heavily used by libchipcard
and OpenHBCI-TNG (The Next Generation).

%files -n %{qt5libname}
%{_libdir}/libgwengui-qt5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Gwenhywfar development kit
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{cpplibname} = %{EVRD}
Requires:	%{gtklibname} = %{EVRD}
Requires:	%{gtk3libname} = %{EVRD}
Requires:	%{qt4libname} = %{EVRD}
Requires:	%{qt5libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains gwenhywfar-config and header files for writing and
compiling programs using Gwenhywfar.

%files -n %{devname}
%{_bindir}/gwenhywfar-config
%{_bindir}/gsa
%{_bindir}/xmlmerge
%{_bindir}/mklistdoc
%{_bindir}/typemaker
%{_bindir}/typemaker2
%{_includedir}/gwenhywfar5
%{_libdir}/*.so
%{_libdir}/cmake/*/*.cmake
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/gwenhywfar.m4

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -ldl"
# help configure find qt5 lrelease/lupdate
export PATH=$PATH:%{_qt5_bindir}

%configure \
	--disable-static \
	--enable-system-certs \
	--disable-rpath \
	--with-guis="qt4 qt5 gtk2 gtk3" \
	--with-qt4-libs=%{qt4lib} \
	--with-qt5-moc=%{_qt5_bindir}/moc \
	--with-qt5-uic=%{_qt5_bindir}/uic \
	--with-openssl-libs=%{_libdir}

# dirty replace string not autorecognized in configure stage
# may be remove after update to new version
sed 's#$(qt5_moc)#%{_qt5_bindir}/moc#g' -i gui/qt5/Makefile
sed 's#$(qt5_uic)#%{_qt5_bindir}/uic#g' -i gui/qt5/Makefile
sed 's#DEFAULT_INCLUDES = -I.#DEFAULT_INCLUDES = -I. -I%{_qt5_includedir} -I%{_qt5_includedir}/QtCore -I%{_qt5_includedir}/QtWidgets -I%{_qt5_includedir}/QtGui#g' -i gui/qt5/Makefile
sed 's#$(LDFLAGS)#$(LDFLAGS) -lQt5Core -lQt5Widgets -lQt5Gui #g' -i gui/qt5/Makefile

%make

%install
%makeinstall_std

%find_lang %{name}

ln -snf %{_sysconfdir}/pki/tls/certs/ca-bundle.crt %{buildroot}%{_datadir}/%{name}/ca-bundle.crt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13186 |21mr|gwenview-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast and easy to use image viewer for KDE
Name:		gwenview
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
#Patch0:		kImageAnnotator-Qt5.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	jpeg-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5kdcraw-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kipi-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	wayland-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
BuildRequires:  kimageannotator-devel
Requires:	kimageformats
Requires:	qt5-imageformats-plugins

%description
Gwenview is a fast and easy to use image viewer/browser for KDE.
All common image formats are supported, such as PNG(including transparency),
JPEG(including EXIF tags and lossless transformations), GIF, XCF (Gimp
image format), BMP, XPM and others. Standard features include slideshow,
fullscreen view, image thumbnails, drag'n'drop, image zoom, full network
transparency using the KIO framework, including basic file operations and
browsing in compressed archives, non-blocking GUI with adjustable views.
Gwenview also provides image and directory KParts components for use e.g. in
Konqueror. Additional features, such as image renaming, comparing,
converting, and batch processing, HTML gallery and others are provided by the
KIPI image framework.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.gwenview.desktop
%{_kde5_applicationsdir}/org.kde.gwenview_importer.desktop
%{_kde5_bindir}/gwenview
%{_kde5_bindir}/gwenview_importer
%{_kde5_datadir}/gwenview/
%{_kde5_datadir}/kconf_update/gwenview-imageview-alphabackgroundmode-update.pl
%{_kde5_datadir}/kconf_update/gwenview.upd
%{_kde5_datadir}/solid/actions/gwenview_importer.desktop
%{_kde5_datadir}/solid/actions/gwenview_importer_camera.desktop
%{_kde5_iconsdir}/*/*/*/gwenview*
%{_kde5_iconsdir}/*/*/*/document-share*
%{_kde5_services}/gvpart.desktop
%{_appdatadir}/org.kde.gwenview.appdata.xml
%{_qt5_plugindir}/kf5/parts/gvpart.so
%{_qt5_plugindir}/kf5/kfileitemaction/slideshowfileitemaction.so
%{_kde5_datadir}/qlogging-categories5/gwenview.categories

#------------------------------------------------

%define gwenviewlib_major 5
%define libgwenviewlib %mklibname gwenviewlib %{gwenviewlib_major}

%package -n %{libgwenviewlib}
Summary:	Gwenview library
Group:		System/Libraries

%description -n %{libgwenviewlib}
Gwenview library.

%files -n %{libgwenviewlib}
%{_kde5_libdir}/libgwenviewlib.so.%{gwenviewlib_major}*
%{_kde5_libdir}/libgwenviewlib.so.4.97.0

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# We don't need this as we don't have any devel headers
rm -f %{buildroot}%{_kde5_libdir}/libgwenviewlib.so

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13187 |21mr|gyp-0.1-0.26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# from https://chromium.googlesource.com/external/gyp/
%define date		20190716
%define commit		fcd686f1880fa52a1ee78d3e98af1b88cb334528

Name:		gyp
Version:	0.1
Release:	0.26%{?revision:.%{revision}git}%{?dist}
Summary:	Generate Your Projects

Group:		Development/Tools
License:	BSD
URL:		http://code.google.com/p/gyp/

# No released tarball avaiable. so the tarball was generated
# from git as following:
#
# 1. git clone https://chromium.googlesource.com/external/gyp.git
# 2. cd gyp
# 3. version=$(grep version= setup.py|cut -d\' -f2)
# 4. revision=$(svn info|grep -E "^Revision:"|cut -d' ' -f2)
# 5. tar -a --exclude-vcs -cf /tmp/gyp-$version-svn$revision.tar.bz2 *
Source0:	https://chromium.googlesource.com/external/gyp/+archive/%{commit}.tar.gz
Patch0:         gyp-rpmoptflags.patch
Patch1:         gyp-ninja-build.patch
Patch2:         gyp-python3.patch
Patch3:         gyp-python38.patch
Patch4:         gyp-fix-cmake.patch

BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
Requires:	python3dist(setuptools)

%description
GYP is a tool to generates native Visual Studio, Xcode and SCons
and/or make build files from a platform-independent input format.

Its syntax is a universal cross-platform build representation
that still allows sufficient per-platform flexibility to accommodate
irreconcilable differences.


%prep
%autosetup -p1 -c -n %{commit}
for i in $(find pylib -name '*.py'); do
        sed -e '\,#![ \t]*/.*python,{d}' $i > $i.new && touch -r $i $i.new && mv $i.new $i
done

%build
%py3_build

%install
%py3_install

%files
%doc AUTHORS LICENSE
%{_bindir}/gyp
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13188 |21mr|gypsy-0.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A GPS multiplexing daemon
Name:		gypsy
Version:	0.9
Release:	10
# See LICENSE file for details
License:	LGPLv2 and GPLv2
Group:		System/Libraries
Url:		http://gypsy.freedesktop.org/
Source0:	http://gypsy.freedesktop.org/releases/%{name}-%{version}.tar.bz2
Patch0:		gypsy-0.8-no-werror.patch
BuildRequires:	gtk-doc
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gudev-1.0)
Requires:	dbus

%description
Gypsy is a GPS multiplexing daemon which allows multiple clients to
access GPS data from multiple GPS sources concurrently.

%files
%doc AUTHORS LICENSE
%config %{_sysconfdir}/dbus-1/system.d/Gypsy.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.Gypsy.service
%{_libexecdir}/gypsy-daemon
%{_sysconfdir}/gypsy.conf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for gypsys
Group:		System/Libraries

%description -n %{libname}
Gypsy is a GPS multiplexing daemon which allows multiple clients to 
access GPS data from multiple GPS sources concurrently. 

%files -n %{libname}
%{_libdir}/libgypsy.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for gypsy
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for development with gypsy.

%files -n %{devname}
%{_libdir}/pkgconfig/gypsy.pc
%dir %{_includedir}/gypsy
%{_includedir}/gypsy/*.h
%{_libdir}/libgypsy.so

#----------------------------------------------------------------------------

%package docs
Summary:	Documentation files for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
Requires:	gtk-doc
BuildArch:	noarch

%description docs
This package contains developer documentation for %{name}.

%files docs
%{_datadir}/gtk-doc/html/gypsy

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

find -name Makefile|xargs rm -f

%build
%global optflags %{optflags} -Wno-error=format-security
autoreconf -fi
%configure \
	--disable-static \
	--enable-shared
%make V=2

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13189 |21mr|gzip-1.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GNU data compression program
Name:		gzip
Version:	1.12
Release:	1
License:	GPLv3+
Group:		Archiving/Compression
Url:		http://www.gzip.org
Source0:	https://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.xz
Source1:	https://ftp.gnu.org/gnu/gzip/gzip-%{version}.tar.xz.sig
Patch1:		gzip-1.10-zforce.patch
Patch6:		gzip-1.3.3-window-size.patch
Patch12:	gzip-1.3.5-cve-2006-4335.patch
Patch14:	gzip-1.3.5-cve-2006-4338.patch
Patch15:	gzip-1.3.9-cve-2006-4337.patch
Patch16:	gzip-1.3.5-cve-2006-4337_len.patch
Patch17:	gzip-1.3.14-CVE-2009-2624-1.diff
BuildRequires:	texinfo
# make check
BuildRequires:	util-linux
BuildRequires:	less
Requires:	less
Requires:	mktemp

%description
The gzip package contains the popular GNU gzip data compression
program. Gzipped files have a .gz extension.

Gzip should be installed on your Mandriva Linux system, because it is a
very commonly used data compression program.

%files
%doc NEWS README AUTHORS ChangeLog
/bin/gzip
/bin/gunzip
%{_mandir}/man1/gunzip.1*
%{_mandir}/man1/gzexe.1*
%{_mandir}/man1/gzip.1*
%{_mandir}/man1/zforce.1*
%{_mandir}/man1/zless.1*
%{_mandir}/man1/zmore.1*
%{_mandir}/man1/znew.1*
%{_infodir}/*
%{_bindir}/gunzip
%{_bindir}/gzexe
%{_bindir}/gzip
%{_bindir}/zforce
%{_bindir}/zless
%{_bindir}/zmore
%{_bindir}/znew

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities dealing with gzip compressed files
Requires:	gzip = %{version}

%description utils
The gzip-utils package contains programs for manipulating gzip-compressed
archives: zcat, zcmp, zdiff, zgrep.

%files utils
/bin/zcat
%{_bindir}/zcat
%{_bindir}/zcmp
%{_bindir}/zdiff
%{_bindir}/zegrep
%{_bindir}/zfgrep
%{_bindir}/zgrep
%{_mandir}/man1/zcat.1*
%{_mandir}/man1/zcmp.1*
%{_mandir}/man1/zdiff.1*
%{_mandir}/man1/zgrep.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1 -b .zforce
%patch6 -p1 -b .window-size
%patch12 -p1 -b .4335
%patch14 -p1 -b .4338
%patch15 -p1 -b .4337
%patch16 -p1 -b .4337l
%patch17 -p0 -b .CVE-2009-2624-1

%build
export DEFS="-DNO_ASM"
export CPPFLAGS="-DHAVE_LSTAT"
%configure
%make_build

%install
%make_install

install -d %{buildroot}/bin

for i in gzip gunzip zcat; do
    mv -f %{buildroot}%{_bindir}/$i %{buildroot}/bin/$i
    ln -sf ../../bin/$i %{buildroot}%{_bindir}/$i
done

for i in zcmp zdiff zforce zgrep zmore znew ; do
	sed -e "s|%{buildroot}||g" < %{buildroot}%{_bindir}/$i > %{buildroot}%{_bindir}/.$i
	rm -f %{buildroot}%{_bindir}/$i
	mv %{buildroot}%{_bindir}/.$i %{buildroot}%{_bindir}/$i
	chmod 755 %{buildroot}%{_bindir}/$i
done

# uncompress is a part of ncompress package
rm -f %{buildroot}%{_bindir}/uncompress

cat > %{buildroot}%{_bindir}/zless <<EOF
#!/bin/sh
export LESSOPEN="|lesspipe.sh %s"
less "\$@"
EOF
chmod 755 %{buildroot}%{_bindir}/zless

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13190 |21mr|h2-1.4.196-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           h2
Version:        1.4.196
Release:        7
Summary:        Java SQL database

# Most classes are dual licensed as EPL/MPL
# One class is triple licensed EPL/MPL/LGPL: src/main/org/h2/jdbcx/JdbcConnectionPool.java
# Some tests are ASL licensed
License:        (EPL or MPLv2.0 or LGPLv3+) and ASL 2.0
URL:            http://www.h2database.com
Source0:        http://www.h2database.com/h2-2017-06-10.zip
Source1:        http://repo2.maven.org/maven2/com/h2database/h2/%{version}/h2-%{version}.pom

Patch0:         port-to-lucene-6.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  javapackages-local
BuildRequires:  lucene >= 6.1.0
BuildRequires:  lucene-analysis >= 6.1.0
BuildRequires:  lucene-queryparser >= 6.1.0
BuildRequires:  slf4j
BuildRequires:  felix-osgi-core
BuildRequires:  glassfish-servlet-api < 5.0.0
BuildRequires:  jts

%description
H2 is a the Java SQL database. The main features of H2 are: Very fast, open
source, JDBC API; Embedded and server modes; In-memory databases; Browser
based Console application; Small footprint: around 1 MB jar file size.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}
%patch0 -p2

# Because no Fedora package provides org.osgi.service.jdbc interfaces yet
rm src/main/org/h2/util/OsgiDataSourceFactory.java
sed -i -e '/OsgiDataSourceFactory/d' src/main/org/h2/util/DbDriverActivator.java
sed -i -e '/org.osgi.service.jdbc/d' src/main/META-INF/MANIFEST.MF

# Delete pre-built binaries
find -name '*.class' -delete
find -name '*.jar' -delete
find -name '*.exe' -delete
find -name '*.dll' -delete

# Fix jts package name
sed -i -e 's/com\.vividsolutions\.jts/org.locationtech.jts/' $(find -name *.java)
sed -i -e 's/vividsolutions/vividsolutions locationtech/' src/tools/org/h2/build/doc/dictionary.txt

# Don't attempt to download from Internet
sed -i -e '/downloadTest();/d' -e '/download();/d' \
  src/tools/org/h2/build/Build.java

# Tests that use the network
sed -i -e '/TestNetUtils/d' \
  src/test/org/h2/test/TestAll.java

# Use system libraries instead
mkdir ext
ln -s -T $(build-classpath jts) ext/jts-core-1.14.0.jar
ln -s -T $(build-classpath glassfish-servlet-api) ext/servlet-api-3.1.0.jar
ln -s -T $(build-classpath slf4j/api) ext/slf4j-api-1.6.0.jar
ln -s -T $(build-classpath slf4j/nop) ext/slf4j-nop-1.6.0.jar
ln -s -T $(build-classpath lucene/lucene-core) ext/lucene-core-6.1.0.jar
ln -s -T $(build-classpath lucene/lucene-analyzers-common) ext/lucene-analyzers-common-6.1.0.jar
ln -s -T $(build-classpath lucene/lucene-queryparser) ext/lucene-queryparser-6.1.0.jar
ln -s -T $(build-classpath felix/org.osgi.core) ext/org.osgi.core-4.2.0.jar

echo "classic queryparser" >> src/tools/org/h2/build/doc/dictionary.txt

rm -fr src/tools/org/h2/build/Build.java.orig

%build
export JAVA_HOME=%{_jvmdir}/java
sh build.sh jar docs

%install
%mvn_artifact %SOURCE1 bin/h2-%{version}.jar
%mvn_install -J docs/javadoc

%files -f .mfiles
%doc docs/index.html
%doc docs/html
%license src/docsrc/html/license.html

%files javadoc -f .mfiles-javadoc
%license src/docsrc/html/license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13191 |21mr|ha_cluster_exporter-1.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=off
# see Source0
%global goipath github.com/ClusterLabs/ha_cluster_exporter

Summary:	Prometheus exporter for Pacemaker HA clusters metrics
Name:		ha_cluster_exporter
Version:	1.3.3
Release:	2
License:	Apache-2.0
Group:		Development/Other
Url:		https://github.com/ClusterLabs/ha_cluster_exporter
Source0:	https://github.com/ClusterLabs/ha_cluster_exporter/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# go mod vendor, created with ./upd.sh
Source1:	ha_cluster_exporter-%{version}-go-mod-vendor.tar.xz
BuildRequires:	golang
# compat with OpenSUSE
Provides:	prometheus-ha_cluster_exporter = %{EVRD}
Provides:	ha-cluster-exporter = %{EVRD}
%gometa

%description
This is a bespoke Prometheus exporter used to enable the monitoring of Pacemaker based HA clusters.
The exporter is a stateless HTTP endpoint. On each HTTP request, it locally inspects the cluster
status by parsing pre-existing distributed data, provided by the tools of the various cluster components.

Exported data include:
- Pacemaker cluster summary, nodes and resources stats
- Corosync ring errors and quorum votes
- SBD devices health status
- DRBD resources and connections stats
A comprehensive list of all the metrics can be found in the metrics document.

%files
%license LICENSE
%doc *.md doc/*
# sample config
%doc ha_cluster_exporter.yaml
%{_bindir}/%{name}
%{_unitdir}/prometheus-%{name}.service
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/sysconfig/prometheus-%{name}

%post
%systemd_post prometheus-%{name}.service

%preun
%systemd_preun prometheus-%{name}.service

#----------------------------------------------------------------------------

%prep
%goprep
%autopatch -p1

tar -C .. -xf %{SOURCE1}

%build
%gobuild -o %{gobuilddir}/bin/%{name} %{goipath}

%install
install -d %{buildroot}%{_bindir}
install -Dm0755 %{gobuilddir}/bin/%{name} %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m644 ha_cluster_exporter.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/prometheus-%{name}

mkdir -p %{buildroot}%{_unitdir}
install -m644 %{name}.service %{buildroot}%{_unitdir}/prometheus-%{name}.service
ln -s prometheus-%{name}.service %{buildroot}%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13192 |21mr|hadoop-2.7.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _hardened_build 1

# w/a problems with GCC 10
# https://lists.altlinux.org/pipermail/devel/2020-December/212848.html
%global optflags %{optflags} -fcommon

%global hadoop_version %{version}
%global hdfs_services hadoop-zkfc.service hadoop-datanode.service hadoop-secondarynamenode.service hadoop-namenode.service hadoop-journalnode.service
%global mapreduce_services hadoop-historyserver.service
%global yarn_services hadoop-proxyserver.service hadoop-resourcemanager.service hadoop-nodemanager.service hadoop-timelineserver.service

# Filter out undesired provides and requires
%global __requires_exclude_from ^%{_libdir}/%{name}/libhadoop.so$
%global __provides_exclude_from ^%{_libdir}/%{name}/.*$

Name:   hadoop
Version: 2.7.6
Release: 7
Summary: A software platform for processing vast amounts of data
Group:   Development/Java
# The BSD license file is missing
# https://issues.apache.org/jira/browse/HADOOP-9849
License: ASL 2.0 and BSD
URL:     https://%{name}.apache.org
Source0: https://www.apache.org/dist/%{name}/core/%{name}-%{version}/%{name}-%{version}-src.tar.gz
Source1: %{name}-layout.sh
Source2: %{name}-hdfs.service.template
Source3: %{name}-mapreduce.service.template
Source4: %{name}-yarn.service.template
Source6: %{name}.logrotate
Source8: %{name}-core-site.xml
Source9: %{name}-hdfs-site.xml
Source10: %{name}-mapred-site.xml
Source11: %{name}-yarn-site.xml
Source12: %{name}-httpfs.sysconfig
Source13: hdfs-create-dirs
Source14: %{name}-tomcat-users.xml
# This patch includes the following upstream tickets:
# https://issues.apache.org/jira/browse/HADOOP-9613
# https://issues.apache.org/jira/browse/HDFS-5411
# https://issues.apache.org/jira/browse/HADOOP-10068
# https://issues.apache.org/jira/browse/HADOOP-10075
# https://issues.apache.org/jira/browse/HADOOP-10076
Patch0: %{name}-fedora-integration.patch
# Fedora packaging guidelines for JNI library loading
Patch2: %{name}-jni-library-loading.patch
# Don't download tomcat
Patch4: %{name}-no-download-tomcat.patch
# Use dlopen to find libjvm.so
Patch5: %{name}-dlopen-libjvm.patch
# Update to Guava 20
Patch7: %{name}-guava.patch
# Update to Netty 3.6.6-Final
Patch8: %{name}-netty-3-Final.patch
# Remove problematic issues with tools.jar
Patch9: %{name}-tools.jar.patch
# Workaround for bz1012059
Patch10: %{name}-build.patch
# Build with hard-float on ARMv7
Patch12: %{name}-armhfp.patch

# fix Jersey1 support
Patch13: hadoop-jersey1.patch
# fix java8 doclint
Patch14: hadoop-2.4.1-disable-doclint.patch
# Fix Protobuf compiler errors after updating to 3.1.0
Patch19: protobuf3.patch
# Patch openssl 1.0.2 to use 1.1.0
Patch21: %{name}-openssl.patch
# fix exception no longer thrown in aws
Patch22: %{name}-aws.patch
# fix classpath issues
Patch23: classpath.patch

# fix container-executor compilation rbhz#1597446
Patch24: fix-container-executor-cmake.patch

# fix rhbz#1593020
Patch25: backport-CVE-2018-8009.patch
# compilation for Linux
Patch26: Avoid-using-sys_errlist-on-Linux-whi.patch
# https://issues.apache.org/jira/browse/HADOOP-14597
Patch27: error-ld-openssl-libs.patch
# Java 'Could NOT find JNI (missing: JAVA_AWT_LIBRARY)' buildfix
Patch28: 0001-java_awt_library-NoNeed-set.patch

BuildRequires: ant
BuildRequires: antlr-tool
BuildRequires: aopalliance
BuildRequires: apache-commons-beanutils
BuildRequires: apache-commons-cli
BuildRequires: apache-commons-codec
BuildRequires: apache-commons-collections
BuildRequires: apache-commons-configuration
BuildRequires: mvn(commons-daemon:commons-daemon) >= 1.2.0 
BuildRequires: apache-commons-el
BuildRequires: apache-commons-io
BuildRequires: apache-commons-lang
BuildRequires: apache-commons-logging
BuildRequires: apache-commons-math
BuildRequires: apache-commons-net
BuildRequires: apache-rat-plugin
BuildRequires: apacheds-kerberos
BuildRequires: atinject
BuildRequires: avalon-framework
BuildRequires: avalon-logkit
BuildRequires: avro
BuildRequires: avro-maven-plugin
BuildRequires: aws-sdk-java
BuildRequires: bookkeeper-java
BuildRequires: cglib
BuildRequires: checkstyle
BuildRequires: chrpath
BuildRequires: cmake
BuildRequires: curator
BuildRequires: ecj >= 1:4.2.1-6
BuildRequires: fuse2-devel
BuildRequires: fusesource-pom
BuildRequires: gcc-c++
BuildRequires: geronimo-jms
BuildRequires: glassfish-jaxb
BuildRequires: glassfish-jsp
BuildRequires: glassfish-jsp-api
BuildRequires: google-guice
BuildRequires: grizzly
BuildRequires: guava20
BuildRequires: guice-servlet
BuildRequires: hamcrest
BuildRequires: hawtjni
BuildRequires: hsqldb
BuildRequires: htrace
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-core
BuildRequires: istack-commons
BuildRequires: jackson
BuildRequires: jakarta-commons-httpclient
BuildRequires: java-base64
BuildRequires: java-devel
BuildRequires: java-xmlbuilder
BuildRequires: javamail
BuildRequires: javapackages-tools
BuildRequires: jdiff
BuildRequires: jersey1
BuildRequires: jersey1-contribs
BuildRequires: jets3t
BuildRequires: jettison
BuildRequires: jetty8
BuildRequires: jetty-util-ajax
BuildRequires: jsch
BuildRequires: json_simple
BuildRequires: jspc
BuildRequires: jsr-305
BuildRequires: jsr-311
BuildRequires: jul-to-slf4j
BuildRequires: junit
BuildRequires: jzlib
BuildRequires: leveldbjni
BuildRequires: groovy18
BuildRequires: log4j12
BuildRequires: maven-antrun-plugin
BuildRequires: maven-assembly-plugin
BuildRequires: maven-clean-plugin
BuildRequires: maven-dependency-plugin
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-invoker-plugin
BuildRequires: maven-local
BuildRequires: maven-plugin-build-helper
BuildRequires: maven-plugin-exec
BuildRequires: maven-plugin-plugin
BuildRequires: maven-release-plugin
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: maven-shade-plugin
BuildRequires: maven-source-plugin
BuildRequires: maven-war-plugin
BuildRequires: metrics
BuildRequires: mockito1
BuildRequires: native-maven-plugin
BuildRequires: netty3
BuildRequires: netty
BuildRequires: objectweb-asm
BuildRequires: objenesis >= 1.2-16
BuildRequires: openssl-devel
BuildRequires: paranamer
BuildRequires: protobuf-compiler
BuildRequires: protobuf-java
BuildRequires: relaxngDatatype
BuildRequires: servlet3
BuildRequires: slf4j
BuildRequires: snappy-devel
BuildRequires: snappy-java
BuildRequires: systemd
BuildRequires: tomcat
BuildRequires: tomcat-el-3.0-api
BuildRequires: tomcat-log4j
BuildRequires: txw2
BuildRequires: xmlenc
BuildRequires: pkgconfig(zlib)
BuildRequires: zookeeper-java > 3.4.5-15
# For tests
BuildRequires: jersey1-test-framework

%description
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

%package client
Summary: Libraries for Apache Hadoop clients
BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}
Requires: %{name}-hdfs = %{version}-%{release}
Requires: %{name}-mapreduce = %{version}-%{release}
Requires: %{name}-yarn = %{version}-%{release}

%description client
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package provides libraries for Apache Hadoop clients.

%package common
Summary: Common files needed by Apache Hadoop daemons
BuildArch: noarch
Requires(pre): /usr/sbin/useradd
Obsoletes: %{name}-javadoc < 2.4.1-22%{?dist}

# These are required to meet the symlinks for the classpath
Requires: antlr-tool
Requires: apache-commons-beanutils
Requires: avalon-framework
Requires: avalon-logkit
Requires: checkstyle
Requires: coreutils
Requires: geronimo-jms
Requires: glassfish-jaxb
Requires: glassfish-jsp
Requires: glassfish-jsp-api
Requires: istack-commons
Requires: jakarta-commons-httpclient
Requires: java-base64
Requires: java-xmlbuilder
Requires: javamail
Requires: jettison
Requires: jetty8
Requires: jsr-311
Requires: mockito
Requires: objectweb-asm
Requires: objenesis
Requires: paranamer
Requires: relaxngDatatype
Requires: servlet3
Requires: snappy-java
Requires: txw2
Requires: which

%description common
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package contains common files and utilities needed by other Apache
Hadoop modules.

%package common-native
Summary: The native Apache Hadoop library file
Requires: %{name}-common = %{version}-%{release}

%description common-native
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package contains the native-hadoop library

%package devel
Summary: Headers for Apache Hadoop
Requires: libhdfs%{?_isa} = %{version}-%{release}

%description devel
Header files for Apache Hadoop's hdfs library and other utilities

%package hdfs
Summary: The Apache Hadoop Distributed File System
BuildArch: noarch
Requires: apache-commons-daemon-jsvc
Requires: %{name}-common = %{version}-%{release}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%description hdfs
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

The Hadoop Distributed File System (HDFS) is the primary storage system
used by Apache Hadoop applications.

%package hdfs-fuse
Summary: Allows mounting of Apache Hadoop HDFS
Requires: fuse
Requires: libhdfs%{?_isa} = %{version}-%{release}
Requires: %{name}-common = %{version}-%{release}
Requires: %{name}-hdfs = %{version}-%{release}
Requires: %{name}-mapreduce = %{version}-%{release}
Requires: %{name}-yarn = %{version}-%{release}

%description hdfs-fuse
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package provides tools that allow HDFS to be mounted as a standard
file system through fuse.

%package httpfs
Summary: Provides web access to HDFS
BuildArch: noarch
Requires: apache-commons-dbcp
Requires: ecj >= 1:4.2.1-6
Requires: json_simple
Requires: tomcat
Requires: tomcat-lib
Requires: tomcat-native
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%description httpfs
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package provides a server that provides HTTP REST API support for
the complete FileSystem/FileContext interface in HDFS.

%package -n libhdfs
Summary: The Apache Hadoop Filesystem Library
Requires: %{name}-hdfs = %{version}-%{release}
Requires: liblzo2.so.2%{_arch_tag_suffix}

%description -n libhdfs
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package provides the Apache Hadoop Filesystem Library.

%package mapreduce
Summary: Apache Hadoop MapReduce (MRv2)
BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%description mapreduce
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package provides Apache Hadoop MapReduce (MRv2).

%package mapreduce-examples
Summary: Apache Hadoop MapReduce (MRv2) examples
BuildArch: noarch
Requires: hsqldb

%description mapreduce-examples
This package contains mapreduce examples.

%package maven-plugin
Summary: Apache Hadoop maven plugin
BuildArch: noarch
Requires: maven

%description maven-plugin
The Apache Hadoop maven plugin

%package tests
Summary: Apache Hadoop test resources
BuildArch: noarch
Requires: %{name}-common = %{version}-%{release}
Requires: %{name}-hdfs = %{version}-%{release}
Requires: %{name}-mapreduce = %{version}-%{release}
Requires: %{name}-yarn = %{version}-%{release}

%description tests
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package contains test related resources for Apache Hadoop.

%package yarn
Summary: Apache Hadoop YARN
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Requires: %{name}-common = %{version}-%{release}
Requires: %{name}-mapreduce = %{version}-%{release}
Requires: aopalliance
Requires: atinject
Requires: hamcrest
Requires: hawtjni
Requires: leveldbjni
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%description yarn
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package contains Apache Hadoop YARN.

%package yarn-security
Summary: The ability to run Apache Hadoop YARN in secure mode
Requires: %{name}-yarn = %{version}-%{release}

%description yarn-security
Apache Hadoop is a framework that allows for the distributed processing of
large data sets across clusters of computers using simple programming models.
It is designed to scale up from single servers to thousands of machines, each
offering local computation and storage.

This package contains files needed to run Apache Hadoop YARN in secure mode.

%prep
%autosetup -p1 -n %{name}-%{version}-src

%pom_xpath_set "pom:properties/pom:protobuf.version" 3.12.3 hadoop-project

# These native libs won't build on s390x and armv7hl (possibly due to some cmake issue with provided compat functions)
%pom_remove_plugin :maven-antrun-plugin hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-nodemanager

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions/pom:execution[pom:phase='test-compile']" "<id>default-jar</id>"  hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-distributedshell


%pom_change_dep -r :commons-daemon :commons-daemon:1.2.0

# Remove the maven-site-plugin.  It's not needed
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-site-plugin hadoop-common-project/hadoop-auth
%pom_remove_plugin :maven-site-plugin hadoop-hdfs-project/hadoop-hdfs-httpfs

# Remove the findbugs-maven-plugin.  It's not needed and isn't available
%pom_remove_plugin :findbugs-maven-plugin hadoop-hdfs-project/hadoop-hdfs-httpfs
%pom_remove_plugin :findbugs-maven-plugin hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal
%pom_remove_plugin :findbugs-maven-plugin hadoop-mapreduce-project/hadoop-mapreduce-client
%pom_remove_plugin :findbugs-maven-plugin hadoop-mapreduce-project/hadoop-mapreduce-examples
%pom_remove_plugin :findbugs-maven-plugin hadoop-mapreduce-project
%pom_remove_plugin :findbugs-maven-plugin hadoop-project-dist
%pom_remove_plugin :findbugs-maven-plugin hadoop-project
%pom_remove_plugin :findbugs-maven-plugin hadoop-tools/hadoop-rumen
%pom_remove_plugin :findbugs-maven-plugin hadoop-tools/hadoop-streaming
%pom_remove_plugin :findbugs-maven-plugin hadoop-yarn-project/hadoop-yarn
%pom_remove_plugin :findbugs-maven-plugin hadoop-yarn-project

# Remove the maven-project-info-reports plugin.  It's not needed and isn't available
%pom_remove_plugin :maven-project-info-reports-plugin hadoop-common-project/hadoop-auth
%pom_remove_plugin :maven-project-info-reports-plugin hadoop-hdfs-project/hadoop-hdfs-httpfs
%pom_remove_plugin :maven-project-info-reports-plugin hadoop-project

# Remove the maven-checkstyle plugin.  It's not needed and isn't available
%pom_remove_plugin :maven-checkstyle-plugin hadoop-project-dist
%pom_remove_plugin :maven-checkstyle-plugin hadoop-project
%pom_remove_plugin :maven-checkstyle-plugin hadoop-tools/hadoop-distcp

# Disable the hadoop-minikdc module due to missing deps
%pom_disable_module hadoop-minikdc hadoop-common-project
%pom_remove_dep :hadoop-minikdc hadoop-common-project/hadoop-common
%pom_remove_dep :hadoop-minikdc hadoop-common-project/hadoop-auth
%pom_remove_dep :hadoop-minikdc hadoop-project
%pom_remove_dep :hadoop-minikdc hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests
%pom_remove_dep :hadoop-minikdc hadoop-common-project/hadoop-kms
%pom_remove_dep :hadoop-minikdc hadoop-hdfs-project/hadoop-hdfs
%pom_remove_dep :hadoop-minikdc hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry
%pom_remove_dep :hadoop-minikdc hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager
%pom_remove_dep :hadoop-minikdc hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/TestKerberosAuthenticator.java
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestKerberosAuthenticationHandler.java
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestAltKerberosAuthenticationHandler.java
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/server/TestKerberosAuthenticationHandler.java
rm -f hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests/src/test/java/org/apache/hadoop/yarn/server/TestContainerManagerSecurity.java
rm -f hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/protocol/datatransfer/sasl/SaslDataTransferTestCase.java
rm -f hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/TestEncryptionZonesWithKMS.java
rm -f hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/qjournal/TestSecureNNWithQJM.java

# Remove other deps only needed for testing
%pom_remove_dep :tomcat-embed-core hadoop-project
%pom_remove_dep :tomcat-embed-logging-juli hadoop-project
%pom_remove_dep :tomcat-embed-core hadoop-common-project/hadoop-auth
%pom_remove_dep :tomcat-embed-logging-juli hadoop-common-project/hadoop-auth
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/AuthenticatorTestCase.java
rm -f hadoop-common-project/hadoop-auth/src/test/java/org/apache/hadoop/security/authentication/client/TestPseudoAuthenticator.java
%pom_xpath_remove "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:artifactId='hadoop-auth' and pom:type='test-jar']" hadoop-project
%pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:artifactId='hadoop-auth' and pom:type='test-jar']" hadoop-hdfs-project/hadoop-hdfs-httpfs
%pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:artifactId='hadoop-auth' and pom:type='test-jar']" hadoop-common-project/hadoop-common
%pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:artifactId='hadoop-auth' and pom:type='test-jar']" hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager
%pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:artifactId='hadoop-auth' and pom:type='test-jar']" hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice

# Remove tests with errors - Tests are not needed for packaging so don't bother
rm -f hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpServer.java
rm -f hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/TestUGILoginFromKeytab.java
rm -f hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/token/delegation/web/TestWebDelegationToken.java
rm -f hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/util/curator/TestChildReaper.java
rm -f hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestSSLHttpServer.java
rm -f hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/security/token/delegation/TestZKDelegationTokenSecretManager.java
rm -f hadoop-common-project/hadoop-common/src/test/java/org/apache/hadoop/http/TestHttpCookieFlag.java
rm -f hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMSWithZK.java
rm -f hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/MiniKMS.java
rm -f hadoop-common-project/hadoop-kms/src/test/java/org/apache/hadoop/crypto/key/kms/server/TestKMS.java
rm -rf hadoop-hdfs-project/hadoop-hdfs/src/test
rm -rf hadoop-hdfs-project/hadoop-hdfs-httpfs/src/test
rm -rf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy/src/test
rm -rf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice/src/test
rm -rf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/yarn/server/resourcemanager
rm -f hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-resourcemanager/src/test/java/org/apache/hadoop/test/YarnTestDriver.java
rm -rf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-tests/src/test/java/org/apache/hadoop/yarn/server
rm -rf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-client/src/test/java/org/apache/hadoop/yarn/client
rm -rf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-distributedshell/src/test
rm -rf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-applications/hadoop-yarn-applications-unmanaged-am-launcher/src/test
rm -rf hadoop-yarn-project/hadoop-yarn/hadoop-yarn-registry/src/test
rm -f hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-shuffle/src/test/java/org/apache/hadoop/mapred/TestShuffleHandler.java
rm -rf hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-app/src/test
rm -rf hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-hs/src/test
rm -rf hadoop-mapreduce-project/hadoop-mapreduce-client/hadoop-mapreduce-client-jobclient/src/test
rm -rf hadoop-mapreduce-project/hadoop-mapreduce-examples/src/test
rm -rf hadoop-tools/hadoop-streaming/src/test
rm -rf hadoop-tools/hadoop-gridmix/src/test/java
rm -rf hadoop-tools/hadoop-extras/src/test
rm -rf hadoop-hdfs-project/hadoop-hdfs/src/contrib/bkjournal/src/test
rm -rf hadoop-hdfs-project/hadoop-hdfs-nfs/src/test
rm -rf hadoop-tools/hadoop-distcp/src/test
rm -rf hadoop-tools/hadoop-archives/src/test
rm -rf hadoop-tools/hadoop-datajoin/src/test

# Remove dist plugin. It's not needed and has issues
%pom_remove_plugin :maven-antrun-plugin hadoop-common-project/hadoop-kms
%pom_remove_plugin :maven-antrun-plugin hadoop-dist

# remove plugin causing to build the same jar twice
%pom_remove_plugin :maven-jar-plugin hadoop-common-project/hadoop-auth

# modify version of apacheds-kerberos-codec to 2.0.0-M15
%pom_xpath_set "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:artifactId='apacheds-kerberos-codec']/pom:version" 2.0.0-M21 hadoop-project

# Disable hadoop-pipes, because it needs upstream patching for Openssl 1.1.0
%pom_disable_module hadoop-pipes hadoop-tools
%pom_remove_dep :hadoop-pipes hadoop-tools/hadoop-tools-dist

# Add dependencies for timeline service
%pom_add_dep org.iq80.leveldb:leveldb hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice
%pom_add_dep org.fusesource.hawtjni:hawtjni-runtime hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-applicationhistoryservice

# Fix scope on hadoop-common:test-jar
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId='hadoop-common' and pom:type='test-jar']/pom:scope" test hadoop-tools/hadoop-openstack

# Modify asm version to version 5.0.2 and groupId to org.ow2.asm
%pom_xpath_set "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:artifactId='asm']/pom:version" 5.0.2 hadoop-project
%pom_xpath_set "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:artifactId='asm']/pom:groupId" org.ow2.asm hadoop-project

# Add missing deps
%pom_add_dep org.iq80.leveldb:leveldb hadoop-hdfs-project/hadoop-hdfs
%pom_add_dep org.iq80.leveldb:leveldb hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-common

# remove plugins that are not needed
%pom_remove_plugin :maven-jar-plugin hadoop-yarn-project/hadoop-yarn/hadoop-yarn-server/hadoop-yarn-server-web-proxy
%pom_remove_plugin :maven-antrun-plugin hadoop-tools/hadoop-streaming

# disable microsoft azure because the package is not available
%pom_disable_module hadoop-azure hadoop-tools
%pom_remove_dep :hadoop-azure hadoop-tools/hadoop-tools-dist

# disable kms war because it breaks bundling policy
%pom_disable_module hadoop-kms hadoop-common-project
%pom_remove_dep :hadoop-kms hadoop-hdfs-project/hadoop-hdfs

# War files we don't want
%mvn_package :%{name}-auth-examples __noinstall
%mvn_package :%{name}-hdfs-httpfs __noinstall

# Parts we don't want to distribute
%mvn_package :%{name}-assemblies __noinstall

# Workaround for bz1012059
%mvn_package :%{name}-project-dist __noinstall

# Create separate file lists for packaging
%mvn_package :::tests: %{name}-tests
%mvn_package :%{name}-*-tests::{}: %{name}-tests
%mvn_package :%{name}-client*::{}: %{name}-client
%mvn_package :%{name}-hdfs*::{}: %{name}-hdfs
%mvn_package :%{name}-mapreduce-examples*::{}: %{name}-mapreduce-examples
%mvn_package :%{name}-mapreduce*::{}: %{name}-mapreduce
%mvn_package :%{name}-archives::{}: %{name}-mapreduce
%mvn_package :%{name}-datajoin::{}: %{name}-mapreduce
%mvn_package :%{name}-distcp::{}: %{name}-mapreduce
%mvn_package :%{name}-extras::{}: %{name}-mapreduce
%mvn_package :%{name}-gridmix::{}: %{name}-mapreduce
%mvn_package :%{name}-openstack::{}: %{name}-mapreduce
%mvn_package :%{name}-rumen::{}: %{name}-mapreduce
%mvn_package :%{name}-sls::{}: %{name}-mapreduce
%mvn_package :%{name}-streaming::{}: %{name}-mapreduce
%if 0%{?fedora} <= 25
%mvn_package :%{name}-pipes::{}: %{name}-mapreduce
%endif
%mvn_package :%{name}-tools*::{}: %{name}-mapreduce
%mvn_package :%{name}-maven-plugins::{}: %{name}-maven-plugin
%mvn_package :%{name}-minicluster::{}: %{name}-tests
%mvn_package :%{name}-yarn*::{}: %{name}-yarn

# Jar files that need to be overridden due to installation location
%mvn_file :%{name}-common::tests: %{name}/%{name}-common

%pom_change_dep -r :mockito-all :mockito-all:1.10.19

%build
%set_build_flags
# increase JVM memory limits to avoid OOM during build
%ifarch s390x ppc64le
export MAVEN_OPTS="-Xms2048M -Xmx4096M"
%endif
%mvn_build -j -- -Drequire.snappy=true -Dcontainer-executor.conf.dir=%{_sysconfdir}/%{name} -Pdist,native -DskipTests -DskipTest -DskipIT -Dmaven.javadoc.skip=true

# This takes a long time to run, so comment out for now
#%%check
#mvn-rpmbuild -Pdist,native test -Dmaven.test.failure.ignore=true

%install
# Copy all jar files except those generated by the build
# $1 the src directory
# $2 the dest directory
copy_dep_jars()
{
  find $1 ! -name "hadoop-*.jar" -name "*.jar" | xargs install -m 0644 -t $2
  rm -f $2/tools-*.jar
}

# Create symlinks for jars from the build
# $1 the location to create the symlink
link_hadoop_jars()
{
  for f in `ls hadoop-* | grep -v tests | grep -v examples`
  do
    n=`echo $f | sed "s/-%{version}//"`
    if [ -L $1/$n ]
    then
      continue
    elif [ -e $1/$f ]
    then
      rm -f $1/$f $1/$n
    fi
    p=`find %{buildroot}/%{_jnidir} %{buildroot}/%{_javadir}/%{name} -name $n | sed "s#%{buildroot}##"`
    %{__ln_s} $p $1/$n
  done
}

%mvn_install

install -d -m 0755 %{buildroot}/%{_libdir}/%{name}
install -d -m 0755 %{buildroot}/%{_includedir}/%{name}
install -d -m 0755 %{buildroot}/%{_jnidir}/%{name}

install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/client/lib
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/common/lib
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/hdfs/lib
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/hdfs/webapps
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/mapreduce/lib
install -d -m 0755 %{buildroot}/%{_datadir}/%{name}/yarn/lib
install -d -m 0755 %{buildroot}/%{_sysconfdir}/%{name}/tomcat/Catalina/localhost
install -d -m 0755 %{buildroot}/%{_sysconfdir}/logrotate.d
install -d -m 0755 %{buildroot}/%{_sysconfdir}/sysconfig
install -d -m 0755 %{buildroot}/%{_tmpfilesdir}
install -d -m 0755 %{buildroot}/%{_sharedstatedir}/%{name}-hdfs
install -d -m 0755 %{buildroot}/%{_sharedstatedir}/tomcats/httpfs
install -d -m 0755 %{buildroot}/%{_var}/cache/%{name}-yarn
install -d -m 0755 %{buildroot}/%{_var}/cache/%{name}-httpfs/temp
install -d -m 0755 %{buildroot}/%{_var}/cache/%{name}-httpfs/work
install -d -m 0755 %{buildroot}/%{_var}/cache/%{name}-mapreduce
install -d -m 0755 %{buildroot}/%{_var}/log/%{name}-yarn
install -d -m 0755 %{buildroot}/%{_var}/log/%{name}-hdfs
install -d -m 0755 %{buildroot}/%{_var}/log/%{name}-httpfs
install -d -m 0755 %{buildroot}/%{_var}/log/%{name}-mapreduce
install -d -m 0755 %{buildroot}/%{_var}/run/%{name}-yarn
install -d -m 0755 %{buildroot}/%{_var}/run/%{name}-hdfs
install -d -m 0755 %{buildroot}/%{_var}/run/%{name}-mapreduce

basedir='%{name}-common-project/%{name}-common/target/%{name}-common-%{hadoop_version}'
hdfsdir='%{name}-hdfs-project/%{name}-hdfs/target/%{name}-hdfs-%{hadoop_version}'
httpfsdir='%{name}-hdfs-project/%{name}-hdfs-httpfs/target/%{name}-hdfs-httpfs-%{hadoop_version}'
mapreddir='%{name}-mapreduce-project/target/%{name}-mapreduce-%{hadoop_version}'
yarndir='%{name}-yarn-project/target/%{name}-yarn-project-%{hadoop_version}'

# copy script folders
for dir in bin libexec sbin
do
  cp -arf $basedir/$dir %{buildroot}/%{_prefix}
  cp -arf $hdfsdir/$dir %{buildroot}/%{_prefix}
  cp -arf $mapreddir/$dir %{buildroot}/%{_prefix}
  cp -arf $yarndir/$dir %{buildroot}/%{_prefix}
done

# This binary is obsoleted and causes a conflict with qt-devel
rm -rf %{buildroot}/%{_bindir}/rcc

# Duplicate files
rm -f %{buildroot}/%{_sbindir}/hdfs-config.sh

# copy config files
cp -arf $basedir/etc/* %{buildroot}/%{_sysconfdir}
cp -arf $httpfsdir/etc/* %{buildroot}/%{_sysconfdir}
cp -arf $mapreddir/etc/* %{buildroot}/%{_sysconfdir}
cp -arf $yarndir/etc/* %{buildroot}/%{_sysconfdir}

# copy binaries
cp -arf $basedir/lib/native/libhadoop.so* %{buildroot}/%{_libdir}/%{name}
chrpath --delete %{buildroot}/%{_libdir}/%{name}/*
cp -arf $hdfsdir/include/hdfs.h %{buildroot}/%{_includedir}/%{name}
cp -arf $hdfsdir/lib/native/libhdfs.so* %{buildroot}/%{_libdir}
chrpath --delete %{buildroot}/%{_libdir}/libhdfs*
cp -af hadoop-hdfs-project/hadoop-hdfs/target/native/main/native/fuse-dfs/fuse_dfs %{buildroot}/%{_bindir}
chrpath --delete %{buildroot}/%{_bindir}/fuse_dfs

# Not needed since httpfs is deployed with existing systemd setup
rm -f %{buildroot}/%{_sbindir}/httpfs.sh
rm -f %{buildroot}/%{_libexecdir}/httpfs-config.sh
rm -f %{buildroot}/%{_bindir}/httpfs-env.sh

# Remove files with .cmd extension
find %{buildroot} -name *.cmd | xargs rm -f 

# Modify hadoop-env.sh to point to correct locations for JAVA_HOME
# and JSVC_HOME.
sed -i "s|\${JAVA_HOME}|/usr/lib/jvm/jre|" %{buildroot}/%{_sysconfdir}/%{name}/%{name}-env.sh
sed -i "s|\${JSVC_HOME}|/usr/bin|" %{buildroot}/%{_sysconfdir}/%{name}/%{name}-env.sh

# Ensure the java provided DocumentBuilderFactory is used
sed -i "s|\(HADOOP_OPTS.*=.*\)\$HADOOP_CLIENT_OPTS|\1 -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl \$HADOOP_CLIENT_OPTS|" %{buildroot}/%{_sysconfdir}/%{name}/%{name}-env.sh
echo "export YARN_OPTS=\"\$YARN_OPTS -Djavax.xml.parsers.DocumentBuilderFactory=com.sun.org.apache.xerces.internal.jaxp.DocumentBuilderFactoryImpl\"" >> %{buildroot}/%{_sysconfdir}/%{name}/yarn-env.sh

# Workaround for bz1012059
install -pm 644 hadoop-project-dist/pom.xml %{buildroot}/%{_mavenpomdir}/JPP.%{name}-%{name}-project-dist.pom
%{__ln_s} %{_jnidir}/%{name}/hadoop-common.jar %{buildroot}/%{_datadir}/%{name}/common
%{__ln_s} %{_javadir}/%{name}/hadoop-hdfs.jar %{buildroot}/%{_datadir}/%{name}/hdfs
%{__ln_s} %{_javadir}/%{name}/hadoop-client.jar %{buildroot}/%{_datadir}/%{name}/client

# client jar depenencies
copy_dep_jars %{name}-client/target/%{name}-client-%{hadoop_version}/share/%{name}/client/lib %{buildroot}/%{_datadir}/%{name}/client/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/client/lib
pushd  %{name}-client/target/%{name}-client-%{hadoop_version}/share/%{name}/client/lib
  link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/client/lib
popd
pushd  %{name}-client/target/%{name}-client-%{hadoop_version}/share/%{name}/client
  link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/client
popd

# common jar depenencies
copy_dep_jars $basedir/share/%{name}/common/lib %{buildroot}/%{_datadir}/%{name}/common/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/common/lib
pushd $basedir/share/%{name}/common
  link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/common
popd
for f in `ls %{buildroot}/%{_datadir}/%{name}/common/*.jar`
do
  echo "$f" | sed "s|%{buildroot}||" >> .mfiles
done
pushd $basedir/share/%{name}/common/lib
  link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/common/lib
popd

# hdfs jar dependencies
copy_dep_jars $hdfsdir/share/%{name}/hdfs/lib %{buildroot}/%{_datadir}/%{name}/hdfs/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/hdfs/lib
%{__ln_s} %{_jnidir}/%{name}/%{name}-hdfs-bkjournal.jar %{buildroot}/%{_datadir}/%{name}/hdfs/lib
pushd $hdfsdir/share/%{name}/hdfs
  link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/hdfs
popd

# httpfs
# Create the webapp directory structure
pushd %{buildroot}/%{_sharedstatedir}/tomcats/httpfs
  %{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/conf conf
  %{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/lib lib
  %{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/logs logs
  %{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/temp temp
  %{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/webapps webapps
  %{__ln_s} %{_datadir}/%{name}/httpfs/tomcat/work work
popd

# Copy the tomcat configuration and overlay with specific configuration bits.
# This is needed so the httpfs instance won't collide with a system running
# tomcat
for cfgfile in catalina.policy catalina.properties context.xml \
  tomcat.conf web.xml server.xml logging.properties;
do
  cp -a %{_sysconfdir}/tomcat/$cfgfile %{buildroot}/%{_sysconfdir}/%{name}/tomcat
done

# Replace, in place, the Tomcat configuration files delivered with the current
# Fedora release. See BZ#1295968 for some reason.
sed -i -e 's/8005/${httpfs.admin.port}/g' -e 's/8080/${httpfs.http.port}/g' %{buildroot}/%{_sysconfdir}/%{name}/tomcat/server.xml
sed -i -e 's/catalina.base/httpfs.log.dir/g' %{buildroot}/%{_sysconfdir}/%{name}/tomcat/logging.properties
# Given the permission, only the root and tomcat users can access to that file,
# not the build user. So, the build would fail here.
install -m 660 %{SOURCE14} %{buildroot}/%{_sysconfdir}/%{name}/tomcat/tomcat-users.xml

# Copy the httpfs webapp
cp -arf %{name}-hdfs-project/%{name}-hdfs-httpfs/target/webhdfs %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps

# Tell tomcat to follow symlinks
cat > %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/META-INF/context.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<Context allowLinking="true">
</Context>
EOF

# Remove the jars included in the webapp and create symlinks
rm -f %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/tools*.jar
rm -f %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib/tomcat-*.jar
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib
pushd %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat/webapps/webhdfs/WEB-INF/lib
  link_hadoop_jars .
popd

pushd %{buildroot}/%{_datadir}/%{name}/httpfs/tomcat
  %{__ln_s} %{_datadir}/tomcat/bin bin
  %{__ln_s} %{_sysconfdir}/%{name}/tomcat conf
  %{__ln_s} %{_datadir}/tomcat/lib lib
  %{__ln_s} %{_var}/cache/%{name}-httpfs/temp temp
  %{__ln_s} %{_var}/cache/%{name}-httpfs/work work
  %{__ln_s} %{_var}/log/%{name}-httpfs logs
popd

# mapreduce jar dependencies
mrdir='%{name}-mapreduce-project/target/%{name}-mapreduce-%{hadoop_version}'
copy_dep_jars $mrdir/share/%{name}/mapreduce/lib %{buildroot}/%{_datadir}/%{name}/mapreduce/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/mapreduce/lib
%{__ln_s} %{_javadir}/%{name}/%{name}-annotations.jar %{buildroot}/%{_datadir}/%{name}/mapreduce/lib
pushd $mrdir/share/%{name}/mapreduce
  link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/mapreduce
popd

# yarn jar dependencies
yarndir='%{name}-yarn-project/target/%{name}-yarn-project-%{hadoop_version}'
copy_dep_jars $yarndir/share/%{name}/yarn/lib %{buildroot}/%{_datadir}/%{name}/yarn/lib
%{_bindir}/xmvn-subst %{buildroot}/%{_datadir}/%{name}/yarn/lib
%{__ln_s} %{_javadir}/%{name}/%{name}-annotations.jar %{buildroot}/%{_datadir}/%{name}/yarn/lib
pushd $yarndir/share/%{name}/yarn
  link_hadoop_jars %{buildroot}/%{_datadir}/%{name}/yarn
popd

# Install hdfs webapp bits
cp -arf $hdfsdir/share/hadoop/hdfs/webapps/* %{buildroot}/%{_datadir}/%{name}/hdfs/webapps

# hadoop layout. Convert to appropriate lib location for 32 and 64 bit archs
lib=$(echo %{?_libdir} | sed -e 's:/usr/\(.*\):\1:')
if [ "$lib" = "%_libdir" ]; then
  echo "_libdir is not located in /usr.  Lib location is wrong"
  exit 1
fi
sed -e "s|HADOOP_COMMON_LIB_NATIVE_DIR\s*=.*|HADOOP_COMMON_LIB_NATIVE_DIR=$lib/%{name}|" %{SOURCE1} > %{buildroot}/%{_libexecdir}/%{name}-layout.sh

# Default config
cp -f %{SOURCE8} %{buildroot}/%{_sysconfdir}/%{name}/core-site.xml
cp -f %{SOURCE9} %{buildroot}/%{_sysconfdir}/%{name}/hdfs-site.xml
cp -f %{SOURCE10} %{buildroot}/%{_sysconfdir}/%{name}/mapred-site.xml
cp -f %{SOURCE11} %{buildroot}/%{_sysconfdir}/%{name}/yarn-site.xml

# systemd configuration
install -d -m 0755 %{buildroot}/%{_unitdir}/
for service in %{hdfs_services} %{mapreduce_services} %{yarn_services}
do
  s=`echo $service | cut -d'-' -f 2 | cut -d'.' -f 1`
  daemon=$s
  if [[ "%{hdfs_services}" == *$service* ]]
  then
    src=%{SOURCE2}
  elif [[ "%{mapreduce_services}" == *$service* ]]
  then
    src=%{SOURCE3}
  elif [[ "%{yarn_services}" == *$service* ]]
  then
    if [[ "$s" == "timelineserver" ]]
    then
      daemon='historyserver'
    fi
    src=%{SOURCE4}
  else
    echo "Failed to determine type of service for %service"
    exit 1
  fi
  sed -e "s|DAEMON|$daemon|g" $src > %{buildroot}/%{_unitdir}/%{name}-$s.service
done

cp -f %{SOURCE12} %{buildroot}/%{_sysconfdir}/sysconfig/tomcat@httpfs

# Ensure /var/run directories are recreated on boot
echo "d %{_var}/run/%{name}-yarn 0775 yarn hadoop -" > %{buildroot}/%{_tmpfilesdir}/%{name}-yarn.conf
echo "d %{_var}/run/%{name}-hdfs 0775 hdfs hadoop -" > %{buildroot}/%{_tmpfilesdir}/%{name}-hdfs.conf
echo "d %{_var}/run/%{name}-mapreduce 0775 mapred hadoop -" > %{buildroot}/%{_tmpfilesdir}/%{name}-mapreduce.conf

# logrotate config
for type in hdfs httpfs yarn mapreduce
do
  sed -e "s|NAME|$type|" %{SOURCE6} > %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}-$type
done
sed -i "s|{|%{_var}/log/hadoop-hdfs/*.audit\n{|" %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}-hdfs

# hdfs init script
install -m 755 %{SOURCE13} %{buildroot}/%{_sbindir}

%pretrans -p <lua> hdfs
path = "%{_datadir}/%{name}/hdfs/webapps"
st = posix.stat(path)
if st and st.type == "link" then
  os.remove(path)
end

%pre common
getent group hadoop >/dev/null || groupadd -r hadoop

%pre hdfs
getent group hdfs >/dev/null || groupadd -r hdfs
getent passwd hdfs >/dev/null || /usr/sbin/useradd --comment "Apache Hadoop HDFS" --shell /sbin/nologin -M -r -g hdfs -G hadoop --home %{_sharedstatedir}/%{name}-hdfs hdfs

%pre mapreduce
getent group mapred >/dev/null || groupadd -r mapred
getent passwd mapred >/dev/null || /usr/sbin/useradd --comment "Apache Hadoop MapReduce" --shell /sbin/nologin -M -r -g mapred -G hadoop --home %{_var}/cache/%{name}-mapreduce mapred

%pre yarn
getent group yarn >/dev/null || groupadd -r yarn
getent passwd yarn >/dev/null || /usr/sbin/useradd --comment "Apache Hadoop Yarn" --shell /sbin/nologin -M -r -g yarn -G hadoop --home %{_var}/cache/%{name}-yarn yarn

%preun hdfs
%systemd_preun %{hdfs_services}

%preun mapreduce
%systemd_preun %{mapreduce_services}

%preun yarn
%systemd_preun %{yarn_services}

%post common-native -p /sbin/ldconfig

%post hdfs
# Change the home directory for the hdfs user
if [[ `getent passwd hdfs | cut -d: -f 6` != "%{_sharedstatedir}/%{name}-hdfs" ]]
then
  /usr/sbin/usermod -d %{_sharedstatedir}/%{name}-hdfs hdfs
fi

if [ $1 -gt 1 ]
then
  if [ -d %{_var}/cache/%{name}-hdfs ] && [ ! -L %{_var}/cache/%{name}-hdfs ]
  then
    # Move the existing hdfs data to the new location
    mv -f %{_var}/cache/%{name}-hdfs/* %{_sharedstatedir}/%{name}-hdfs/
  fi
fi
%systemd_post %{hdfs_services}

%post -n libhdfs -p /sbin/ldconfig

%post mapreduce
%systemd_post %{mapreduce_services}

%post yarn
%systemd_post %{yarn_services}

%postun common-native -p /sbin/ldconfig

%postun hdfs
%systemd_postun_with_restart %{hdfs_services}

if [ $1 -lt 1 ]
then
  # Remove the compatibility symlink
  rm -f %{_var}/cache/%{name}-hdfs
fi

%postun -n libhdfs -p /sbin/ldconfig

%postun mapreduce
%systemd_postun_with_restart %{mapreduce_services}

%postun yarn
%systemd_postun_with_restart %{yarn_services}

%posttrans hdfs
# Create a symlink to the new location for hdfs data in case the user changed
# the configuration file and the new one isn't in place to point to the
# correct location
if [ ! -e %{_var}/cache/%{name}-hdfs ]
then
  %{__ln_s} %{_sharedstatedir}/%{name}-hdfs %{_var}/cache
fi

%files -f .mfiles-%{name}-client client
%{_datadir}/%{name}/client

%files -f .mfiles common
%doc LICENSE.txt
%doc NOTICE.txt
%doc README.txt
%config(noreplace) %{_sysconfdir}/%{name}/core-site.xml
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-env.sh
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-metrics.properties
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-metrics2.properties
%config(noreplace) %{_sysconfdir}/%{name}/%{name}-policy.xml
%config(noreplace) %{_sysconfdir}/%{name}/log4j.properties
%config(noreplace) %{_sysconfdir}/%{name}/ssl-client.xml.example
%config(noreplace) %{_sysconfdir}/%{name}/ssl-server.xml.example
%config(noreplace) %{_sysconfdir}/%{name}/slaves
%config(noreplace) %{_sysconfdir}/%{name}/configuration.xsl

%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/common
%{_datadir}/%{name}/common/lib
%{_libexecdir}/%{name}-config.sh
%{_libexecdir}/%{name}-layout.sh

# Workaround for bz1012059
%{_mavenpomdir}/JPP.%{name}-%{name}-project-dist.pom

%{_bindir}/%{name}
%{_sbindir}/%{name}-daemon.sh
%{_sbindir}/%{name}-daemons.sh
%{_sbindir}/start-all.sh
%{_sbindir}/start-balancer.sh
%{_sbindir}/start-dfs.sh
%{_sbindir}/start-secure-dns.sh
%{_sbindir}/stop-all.sh
%{_sbindir}/stop-balancer.sh
%{_sbindir}/stop-dfs.sh
%{_sbindir}/stop-secure-dns.sh
%{_sbindir}/slaves.sh

%files common-native
%{_libdir}/%{name}/libhadoop.*

%files devel
%{_includedir}/%{name}
%{_libdir}/libhdfs.so

%files -f .mfiles-%{name}-hdfs hdfs
%config(noreplace) %{_sysconfdir}/%{name}/hdfs-site.xml
%{_datadir}/%{name}/hdfs
%{_unitdir}/%{name}-datanode.service
%{_unitdir}/%{name}-namenode.service
%{_unitdir}/%{name}-journalnode.service
%{_unitdir}/%{name}-secondarynamenode.service
%{_unitdir}/%{name}-zkfc.service
%{_libexecdir}/hdfs-config.sh
%{_bindir}/hdfs
%{_sbindir}/distribute-exclude.sh
%{_sbindir}/refresh-namenodes.sh
%{_sbindir}/hdfs-create-dirs
%{_tmpfilesdir}/%{name}-hdfs.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}-hdfs
%attr(0755,hdfs,hadoop) %dir %{_var}/run/%{name}-hdfs
%attr(0755,hdfs,hadoop) %dir %{_var}/log/%{name}-hdfs
%attr(0755,hdfs,hadoop) %dir %{_sharedstatedir}/%{name}-hdfs

%files hdfs-fuse
%attr(755,hdfs,hadoop) %{_bindir}/fuse_dfs

%files httpfs
%config(noreplace) %{_sysconfdir}/sysconfig/tomcat@httpfs
%config(noreplace) %{_sysconfdir}/%{name}/httpfs-env.sh
%config(noreplace) %{_sysconfdir}/%{name}/httpfs-log4j.properties
%config(noreplace) %{_sysconfdir}/%{name}/httpfs-signature.secret
%config(noreplace) %{_sysconfdir}/%{name}/httpfs-site.xml
%attr(-,tomcat,tomcat) %config(noreplace) %{_sysconfdir}/%{name}/tomcat/*.*
%attr(0775,root,tomcat) %dir %{_sysconfdir}/%{name}/tomcat
%attr(0775,root,tomcat) %dir %{_sysconfdir}/%{name}/tomcat/Catalina
%attr(0775,root,tomcat) %dir %{_sysconfdir}/%{name}/tomcat/Catalina/localhost
%{_datadir}/%{name}/httpfs
%{_sharedstatedir}/tomcats/httpfs
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}-httpfs
%attr(0775,root,tomcat) %dir %{_var}/log/%{name}-httpfs
%attr(0775,root,tomcat) %dir %{_var}/cache/%{name}-httpfs
%attr(0775,root,tomcat) %dir %{_var}/cache/%{name}-httpfs/temp
%attr(0775,root,tomcat) %dir %{_var}/cache/%{name}-httpfs/work

%files -n libhdfs
%{_libdir}/libhdfs.so.*

%files -f .mfiles-%{name}-mapreduce mapreduce
%config(noreplace) %{_sysconfdir}/%{name}/mapred-env.sh
%config(noreplace) %{_sysconfdir}/%{name}/mapred-queues.xml.template
%config(noreplace) %{_sysconfdir}/%{name}/mapred-site.xml
%config(noreplace) %{_sysconfdir}/%{name}/mapred-site.xml.template
%{_datadir}/%{name}/mapreduce
%{_libexecdir}/mapred-config.sh
%{_unitdir}/%{name}-historyserver.service
%{_bindir}/mapred
%{_sbindir}/mr-jobhistory-daemon.sh
%{_tmpfilesdir}/%{name}-mapreduce.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}-mapreduce
%attr(0755,mapred,hadoop) %dir %{_var}/run/%{name}-mapreduce
%attr(0755,mapred,hadoop) %dir %{_var}/log/%{name}-mapreduce
%attr(0755,mapred,hadoop) %dir %{_var}/cache/%{name}-mapreduce

%files -f .mfiles-%{name}-mapreduce-examples mapreduce-examples

%files -f .mfiles-%{name}-maven-plugin maven-plugin

%files -f .mfiles-%{name}-tests tests

%files -f .mfiles-%{name}-yarn yarn
%config(noreplace) %{_sysconfdir}/%{name}/capacity-scheduler.xml
%config(noreplace) %{_sysconfdir}/%{name}/yarn-env.sh
%config(noreplace) %{_sysconfdir}/%{name}/yarn-site.xml
%{_unitdir}/%{name}-nodemanager.service
%{_unitdir}/%{name}-proxyserver.service
%{_unitdir}/%{name}-resourcemanager.service
%{_unitdir}/%{name}-timelineserver.service
%{_libexecdir}/yarn-config.sh
%{_datadir}/%{name}/yarn
%{_bindir}/yarn
%{_sbindir}/yarn-daemon.sh
%{_sbindir}/yarn-daemons.sh
%{_sbindir}/start-yarn.sh
%{_sbindir}/stop-yarn.sh
%{_tmpfilesdir}/%{name}-yarn.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}-yarn
%attr(0755,yarn,hadoop) %dir %{_var}/run/%{name}-yarn
%attr(0755,yarn,hadoop) %dir %{_var}/log/%{name}-yarn
%attr(0755,yarn,hadoop) %dir %{_var}/cache/%{name}-yarn

%files yarn-security
%config(noreplace) %{_sysconfdir}/%{name}/container-executor.cfg
# Permissions set per upstream guidelines: https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/ClusterSetup.html#Configuration_in_Secure_Mode
# %%attr(6050,root,yarn) %%{_bindir}/container-executor


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13193 |21mr|hamcrest-1.3-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           hamcrest
Version:        1.3
Release:        26
Epoch:          0
Summary:        Library of matchers for building test expressions
License:        BSD
URL:            https://github.com/hamcrest/JavaHamcrest
Source0:        https://github.com/hamcrest/JavaHamcrest/archive/hamcrest-java-%{version}.tar.gz

Source8:        hamcrest-core-MANIFEST.MF
Source9:        hamcrest-library-MANIFEST.MF
Source11:       hamcrest-integration-MANIFEST.MF
Source12:       hamcrest-generator-MANIFEST.MF

Patch0:         %{name}-%{version}-build.patch
Patch1:         %{name}-%{version}-no-jarjar.patch
Patch3:         %{name}-%{version}-javadoc.patch
Patch4:         %{name}-%{version}-qdox-2.0.patch
Patch5:         %{name}-%{version}-fork-javac.patch

Requires:       qdox
Requires:       easymock >= 3.0
Requires:       %{name}-core = %{epoch}:%{version}-%{release}

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  easymock
BuildRequires:  junit
BuildRequires:  qdox
BuildRequires:  testng

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Provides a library of matcher objects (also known as constraints or predicates)
allowing 'match' rules to be defined declaratively, to be used in other
frameworks. Typical scenarios include testing frameworks, mocking libraries and
UI validation rules.

%package core
Summary:        Core API of hamcrest matcher framework
Obsoletes:      %{name} < 0:1.3-10

%description core
The core API of hamcrest matcher framework to be used by third-party framework providers. 
This includes the a foundation set of matcher implementations for common operations. 

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%package demo
Summary:        Demos for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:       junit
Requires:       testng

%description demo
Demonstrations and samples for %{name}.

%prep
%setup -q -n JavaHamcrest-%{name}-java-%{version}

find . -type f -name "*.jar" | xargs -t rm
rm -fr hamcrest-integration/src/main/java/org/hamcrest/integration/JMock1Adapter.java
rm -fr hamcrest-integration/src/main/java/org/hamcrest/JMock1Matchers.java
rm -fr hamcrest-unit-test/src/main/java/org/hamcrest/integration/JMock1AdapterTest.java
# BUILD/hamcrest-1.1/lib/generator/qdox-1.6.1.jar.no
ln -sf $(build-classpath qdox) lib/generator/
# BUILD/hamcrest-1.1/lib/integration/easymock-2.2.jar.no
ln -sf $(build-classpath easymock3) lib/integration/
# BUILD/hamcrest-1.1/lib/integration/jmock-1.10RC1.jar.no
ln -sf $(build-classpath jmock) lib/integration/
# BUILD/hamcrest-1.1/lib/integration/testng-4.6-jdk15.jar.no
ln -sf $(build-classpath testng-jdk15) lib/integration/

%patch0 -p1
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

sed -i 's/\r//' LICENSE.txt

%build
export CLASSPATH=$(build-classpath qdox)
export OPT_JAR_LIST="junit ant/ant-junit"
# The unit-test goal is switched off as some tests fail with JDK 7
# see https://github.com/hamcrest/JavaHamcrest/issues/30
ant -Dant.build.javac.source=1.5 -Dversion=%{version} -Dbuild.sysclasspath=last clean core generator library bigjar javadoc

# inject OSGi manifests
jar ufm build/%{name}-core-%{version}.jar %{SOURCE8}
jar ufm build/%{name}-library-%{version}.jar %{SOURCE9}
jar ufm build/%{name}-integration-%{version}.jar %{SOURCE11}
jar ufm build/%{name}-generator-%{version}.jar %{SOURCE12}

%install
sed -i 's/@VERSION@/%{version}/g' pom/*.pom

%mvn_artifact pom/hamcrest-parent.pom

for mod in all core generator library integration; do
    %mvn_artifact pom/hamcrest-$mod.pom build/%{name}-$mod-%{version}.jar
done

%mvn_package :hamcrest-parent core
%mvn_package :hamcrest-core core

%mvn_file ':hamcrest-{*}' %{name}/@1

# demo
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr %{name}-examples $RPM_BUILD_ROOT%{_datadir}/%{name}/

%mvn_install -J build/temp/hamcrest-all-1.3-javadoc.jar.contents/

%files -f .mfiles

%files core -f .mfiles-core
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files demo
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13194 |21mr|haproxy-2.6.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define haproxy_user    haproxy
%define haproxy_group   %{haproxy_user}
%define haproxy_homedir %{_localstatedir}/lib/haproxy
%define haproxy_confdir %{_sysconfdir}/haproxy
%define haproxy_datadir %{_datadir}/haproxy
%define short_ver %(echo %{version} |cut -d. -f1-2)

Name:           haproxy
Version:	2.6.15
Release:	2
Summary:        HAProxy reverse proxy for high availability environments
Group:		System/Servers
License:        GPLv2+

URL:            http://www.haproxy.org/
Source0:        %{url}/download/%{short_ver}/src/haproxy-%{version}.tar.gz
Source1:        %{name}.service
Source2:        %{name}.cfg
Source3:        %{name}.logrotate
Source4:        %{name}.sysconfig
Source5:        halog.1

BuildRequires:  lua-devel
BuildRequires:	pcre2-devel
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

Requires(pre):      shadow-utils
%{?systemd_requires}

%description
HAProxy is a TCP/HTTP reverse proxy which is particularly suited for high
availability environments. Indeed, it can:
 - route HTTP requests depending on statically assigned cookies
 - spread load among several servers while assuring server persistence
   through the use of HTTP cookies
 - switch to backup servers in the event a main one fails
 - accept connections to special ports dedicated to service monitoring
 - stop accepting connections without breaking existing ones
 - add, modify, and delete HTTP headers in both directions
 - block requests matching particular patterns
 - report detailed status to authenticated users from a URI
   intercepted from the application

%prep
%setup -q

%build
regparm_opts=
%ifarch %ix86 %{x86_64}
regparm_opts="USE_REGPARM=1"
%endif

%{__make} %{?_smp_mflags} CPU="generic" TARGET="linux-glibc" USE_OPENSSL=1 USE_PCRE2=1 USE_ZLIB=1 USE_LUA=1 USE_CRYPT_H=1 USE_SYSTEMD=1 USE_LINUX_TPROXY=1 USE_GETADDRINFO=1 USE_PROMEX=1  ${regparm_opts} ADDINC="%{optflags}" ADDLIB="%{ldflags}"

%{__make} admin/halog/halog OPTIMIZE="%{optflags} %{ldflags}"
%{__make} admin/iprange/iprange OPTIMIZE="%{optflags} %{ldflags}"
%{__make} admin/iprange/ip6range OPTIMIZE="%{optflags} %{ldflags}"

%install
%{__make} install-bin DESTDIR=%{buildroot} PREFIX=%{_prefix} TARGET="linux2628"
%{__make} install-man DESTDIR=%{buildroot} PREFIX=%{_prefix}

%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
%{__install} -p -D -m 0644 %{SOURCE2} %{buildroot}%{haproxy_confdir}/%{name}.cfg
%{__install} -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%{__install} -p -D -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
%{__install} -p -D -m 0644 %{SOURCE5} %{buildroot}%{_mandir}/man1/halog.1
%{__install} -d -m 0755 %{buildroot}%{haproxy_homedir}
%{__install} -d -m 0755 %{buildroot}%{haproxy_datadir}
%{__install} -d -m 0755 %{buildroot}%{_bindir}
%{__install} -p -m 0755 ./admin/halog/halog %{buildroot}%{_bindir}/halog
%{__install} -p -m 0755 ./admin/iprange/iprange %{buildroot}%{_bindir}/iprange
%{__install} -p -m 0755 ./admin/iprange/ip6range %{buildroot}%{_bindir}/ip6range
%{__install} -p -m 0644 ./examples/errorfiles/* %{buildroot}%{haproxy_datadir}

for httpfile in $(find ./examples/errorfiles/ -type f)
do
    %{__install} -p -m 0644 $httpfile %{buildroot}%{haproxy_datadir}
done

%{__rm} -rf ./examples/errorfiles/

find ./examples/* -type f ! -name "*.cfg" -exec %{__rm} -f "{}" \;

for textfile in $(find ./ -type f -name '*.txt')
do
    %{__mv} $textfile $textfile.old
    iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old
    %{__rm} -f $textfile.old
done

%pre
getent group %{haproxy_group} >/dev/null || \
    groupadd -r %{haproxy_group}
getent passwd %{haproxy_user} >/dev/null || \
    useradd -r -g %{haproxy_user} -d %{haproxy_homedir} \
    -s /sbin/nologin -c "haproxy" %{haproxy_user}
exit 0

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

%files
%doc doc/* examples/*
%doc CHANGELOG README VERSION
%license LICENSE
%dir %{haproxy_homedir}
%dir %{haproxy_confdir}
%dir %{haproxy_datadir}
%{haproxy_datadir}/*
%config(noreplace) %{haproxy_confdir}/%{name}.cfg
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/%{name}.service
%{_sbindir}/%{name}
%{_bindir}/halog
%{_bindir}/ip*range
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13195 |21mr|hardlink-1.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Create a tree of hardlinks
Name:		hardlink
Version:	1.0
Release:	18
Epoch:		1
License:	GPLv2+
Group:		System/Base
Url:		http://cvsweb.openwall.com/cgi/cvsweb.cgi/Owl/packages/hardlink/
Source0:	hardlink.c
Source1:	hardlink.1

%description
hardlink is used to create a tree of hard links.
It's used by kernel installation to dramatically reduce the
amount of diskspace used by each kernel package installed.

%files
%{_sbindir}/hardlink
%{_mandir}/man1/hardlink.1*

#----------------------------------------------------------------------------

%prep
%setup -q -c -T
install -pm 644 %{SOURCE0} hardlink.c

%build
gcc %{optflags} hardlink.c -o hardlink

%install
install -D -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man1/hardlink.1
install -D -m 755 hardlink %{buildroot}%{_sbindir}/hardlink

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13196 |21mr|harfbuzz-7.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_as_needed 1
%define _disable_ld_no_undefined 1

%define api 0.0
%define major 0
%define libname %mklibname %{name} %{major}
%define libicu %mklibname %{name}-icu %{major}
%define calibname %mklibname %{name}-cairo
%define slibname %mklibname %{name}-subset %{major}
%define devname %mklibname %{name} -d
%define girname %mklibname %{name}-gir %{api}
%define libgob %mklibname %{name}-gobject %{major}

%bcond_with bootstrap

Summary:	OpenType text shaping engine
Name:		harfbuzz
Version:	7.0.1
Release:	1
License:	MIT
Group:		Development/Other
Url:		https://github.com/harfbuzz/harfbuzz
Source0:	https://github.com/harfbuzz/harfbuzz/releases/download/%{version}/%{name}-%{version}.tar.xz
%if !%{with bootstrap}
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
%endif
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(graphite2)

%description
HarfBuzz is an OpenType text shaping engine.
There are two HarfBuzz code trees in existence today.

%files
%if !%{with bootstrap}
%{_bindir}/*
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for the %{name} package
Group:		System/Libraries

%description -n %{libname}
Shared library for the %{name} package.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{slibname}
Summary:	Shared library for the %{name} subset package
Group:		System/Libraries

%description -n %{slibname}
Shared library for the %{name} subset package.

%files -n %{slibname}
%{_libdir}/lib%{name}-subset.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libicu}
Summary:	Shared library for the %{name} package
Group:		System/Libraries

%description -n %{libicu}
Shared library for the %{name} package.

%files -n %{libicu}
%{_libdir}/lib%{name}-icu.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{calibname}
Summary:	Shared library for the %{name} cairo package
Group:		System/Libraries

%description -n %{calibname}
Shared library for the %{name} cairo package.

%files -n %{calibname}
%{_libdir}/libharfbuzz-cairo.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libicu} = %{EVRD}
Requires:	%{calibname} = %{EVRD}
Requires:	%{slibname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} development headers and libraries.

%files -n %{devname}
%doc AUTHORS README
%{_datadir}/gtk-doc/html/%{name}/
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/harfbuzz
%{_libdir}/*.so
%{_includedir}/*
%{_datadir}/gir-1.0/HarfBuzz-%{api}.gir

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for HarfBuzz
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for HarfBuzz

%files -n %{girname}
%{_libdir}/girepository-1.0/HarfBuzz-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{libgob}
Summary:	Shared GObject library for the %{name} package
Group:		System/Libraries

%description -n %{libgob}
Shared GObject library for the %{name} package.

%files -n %{libgob}
%{_libdir}/lib%{name}-gobject.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q
%build
%ifarch %{e2k}
export LDFLAGS="$LDFLAGS -lstdc++"
%endif
%configure	\
	--enable-introspection	\
	--with-cairo=yes	\
	--with-fontconfig=yes	\
	--with-freetype=yes	\
	--with-glib=yes		\
	--with-gobject=yes	\
	--with-graphite2=yes	\
	--with-icu=yes
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13197 |21mr|hawtbuf-1.11-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          hawtbuf
Version:       1.11
Release:       10
Summary:       A rich byte buffer library
License:       ASL 2.0
URL:           https://github.com/fusesource/hawtbuf/
Source0:       https://github.com/fusesource/hawtbuf/archive/%{name}-project-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This library implements a simple interface with working with
byte arrays. It is a shame that the Java SDK did not come with
a built in class that was just simply a byte[], int offset,
int length class which provided a rich interface similar to
what the String class does for char arrays. This library
fills in that void by providing a Buffer class which does provide
that rich interface.

%package proto
Summary:       A protobuf library

%description proto
HawtBuf Proto: A protobuf library.

%package protoc
Summary:       A protobuf compiler as a maven plugin

%description protoc
HawtBuf Protoc: A protobuf compiler as a maven plugin.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-project-%{version}

%pom_remove_plugin :maven-assembly-plugin

%pom_xpath_set "pom:properties/pom:log4j-version" 1.2.17
%pom_xpath_remove pom:Private-Package

%mvn_package ":%{name}-project" %{name}

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc readme.md
%license license.txt notice.md

%files proto -f .mfiles-%{name}-proto
%doc %{name}-proto/readme.md
%license license.txt notice.md

%files protoc -f .mfiles-%{name}-protoc
%doc %{name}-protoc/readme.md
%license license.txt notice.md

%files javadoc -f .mfiles-javadoc
%license license.txt notice.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13198 |21mr|hawtdb-1.6-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          hawtdb
Version:       1.6
Release:       15
Summary:       A Powerful Key/Value Store
# CDDL: hawtdb/src/main/java/org/fusesource/hawtdb/api/Callback.java
License:       ASL 2.0 and CDDL
URL:           http://hawtdb.fusesource.org/
Source0:       https://github.com/fusesource/hawtdb/archive/%{name}-project-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:)
BuildRequires: mvn(org.fusesource.hawtbuf:hawtbuf)
# test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:12)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HawtDB is an embedded MVCC Key/Value Database.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-project-%{version}

# Remove unavailable org.fusesource.mvnplugins:fuse-javadoc-skin
%pom_xpath_remove "pom:project/pom:build/pom:extensions"

# Use org.apache.maven.wagon:wagon-webdav-jackrabbit
%pom_remove_plugin :maven-site-plugin

# Unavailable deps
%pom_disable_module %{name}-website

# Unwanted javadoc jar
%pom_remove_plugin :maven-javadoc-plugin %{name}

%pom_xpath_set "pom:properties/pom:log4j-version" 12

# Fail to generate hawtdb jar
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions/pom:Private-Package" %{name}

# These tests fails
# org.fusesource.hawtdb.api.IOPagingException: Invalid extent read request.  The requested page was not an extent: 2
# org.junit.ComparisonFailure: expected:<[Change 1]> but was:<[page:2]>
# org.fusesource.hawtdb.api.IndexException: Page did not contain the expected btree headers
rm hawtdb/src/test/java/org/fusesource/hawtdb/internal/index/BTreeIndexTest.java \
  hawtdb/src/test/java/org/fusesource/hawtdb/internal/index/DeferredBTreeIndexTest.java \
  hawtdb/src/test/java/org/fusesource/hawtdb/internal/index/DeferredHashIndexTest.java \
  hawtdb/src/test/java/org/fusesource/hawtdb/internal/index/FixedCapacityHashIndexTest.java \
  hawtdb/src/test/java/org/fusesource/hawtdb/internal/index/HashIndexTest.java \
  hawtdb/src/test/java/org/fusesource/hawtdb/internal/page/TxPageFileTest.java \
  hawtdb/src/test/java/org/fusesource/hawtdb/internal/io/MemoryMappedFileTest.java

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc changelog.md readme.md
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13199 |21mr|hawtdispatch-1.22-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          hawtdispatch
Version:       1.22
Release:       8
Summary:       The libdispatch style API for Java
License:       ASL 2.0
URL:           http://hawtdispatch.fusesource.org/
Source0:       https://github.com/fusesource/hawtdispatch/archive/%{name}-project-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(asm:asm-tree)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.fusesource.hawtbuf:hawtbuf)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.osgi:org.osgi.core)
BuildRequires: mvn(org.scala-lang:scala-compiler)
BuildRequires: mvn(org.scala-lang:scala-library)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HawtDispatch is a small (less than 100k) thread pooling and
NIO event notification framework API modeled after the
libdispatch API that Apple created to power the Grand Central
Dispatch (GCD) technology in OS X. It allows you to easily develop
multi-threaded applications without having to deal with the
problems that traditionally plague multi-threaded application
development.

This package provides the libdispatch style API for Java.

%package scala
Summary:       The libdispatch style API for Scala

%description scala
HawtDispatch: The libdispatch style API for Scala.

%package transport
Summary:       Transport abstractions for HawtDispatch

%description transport
HawtDispatch Transport: Transport abstractions for HawtDispatch.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-project-%{version}

# remove unavailable org.fusesource.mvnplugins:fuse-javadoc-skin
%pom_xpath_remove "pom:resourcesArtifacts"
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:dependencies"

%pom_xpath_remove "pom:Private-Package"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration" \
 "<excludeDependencies>true</excludeDependencies>" %{name}-transport
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions"  \
'<Export-Package>
 org.fusesource.hawtdispatch.transport;version=${project.version},
 org.fusesource.hawtdispatch.util;version=${project.version},
</Export-Package>' %{name}-transport

%pom_xpath_remove "pom:Export-Package" %{name}-scala
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration" \
 "<excludeDependencies>true</excludeDependencies>" %{name}-scala
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" \
'<Export-Package>
 org.fusesource.hawtdispatch;version=${project.version},
</Export-Package>' %{name}-scala

%pom_disable_module %{name}-example
%pom_disable_module %{name}-website
%pom_disable_module %{name}-scala-2.11

%pom_remove_plugin net.alchim31.maven:scala-maven-plugin %{name}-scala
%pom_add_plugin org.apache.maven.plugins:maven-antrun-plugin:1.7 %{name}-scala '
<executions>
  <execution>
    <id>compile</id>
    <phase>process-sources</phase>
    <configuration>
      <tasks>
        <property name="build.compiler" value="extJavac"/>
        <taskdef resource="scala/tools/ant/antlib.xml" classpathref="maven.plugin.classpath"/>
        <mkdir dir="target/classes"/>
        <scalac srcdir="src/main" destdir="target/classes" classpathref="maven.compile.classpath" encoding="UTF-8">
          <include name="**/*.*"/>
        </scalac>
      </tasks>
    </configuration>
      <goals>
        <goal>run</goal>
      </goals>
  </execution>
</executions>
<dependencies>
  <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-compiler</artifactId>
      <version>${scala-version}</version>
  </dependency>
</dependencies>'

%pom_remove_dep org.scalatest: %{name}-scala

%pom_xpath_set "pom:properties/pom:asm-version" 3 %{name}
%pom_xpath_set "pom:properties/pom:asm-version" 3 %{name}-transport
%pom_xpath_set "pom:properties/pom:log4j-version" 1.2.17
%pom_xpath_set "pom:properties/pom:log4j-version" 1.2.17 %{name}
%pom_xpath_set "pom:properties/pom:log4j-version" 1.2.17 %{name}-transport

%mvn_file :%{name} %{name}
%mvn_file :%{name}-transport %{name}-transport
%mvn_file :%{name}-scala %{name}-scala
%mvn_alias :%{name}-scala :%{name}-scala-2.11
%mvn_package ":%{name}-project" %{name}

# This test @ random fails on koji AssertionFailedError: null
rm -r hawtdispatch/src/test/java/org/fusesource/hawtdispatch/DispatchSourceTest.java

%build

%mvn_build -s

%install
%mvn_install 

%files -f .mfiles-%{name}
%doc changelog.md readme.md
%license license.txt notice.md

%files scala -f .mfiles-%{name}-scala
%license license.txt notice.md

%files transport -f .mfiles-%{name}-transport
%license license.txt notice.md

%files javadoc -f .mfiles-javadoc
%license license.txt notice.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13200 |21mr|hawtjni-1.16-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             hawtjni
Version:          1.16
Release:          5
Summary:          Code generator that produces the JNI code
# Maven plugin is under ASL 2.0.
# stdint.h, shipped in JAR as resource, used only with M$ VC++, is under BSD.
# Everything else is under EPL-1.0
License:          ASL 2.0 and EPL-1.0 and BSD
URL:              http://hawtjni.fusesource.org/
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# That is the maven-release-plugin generated commit, but it's not tagged for some reason
# https://github.com/fusesource/hawtjni/issues/46
%global commit    fa1fd5dfdd0a1a5a67b61fa7d7ee7126b300c8f0
Source0:          https://github.com/fusesource/hawtjni/archive/%{commit}/hawtjni-%{commit}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(commons-cli:commons-cli)
BuildRequires:    mvn(org.apache.maven:maven-archiver)
BuildRequires:    mvn(org.apache.maven:maven-artifact)
BuildRequires:    mvn(org.apache.maven:maven-artifact-manager)
BuildRequires:    mvn(org.apache.maven:maven-plugin-api)
BuildRequires:    mvn(org.apache.maven:maven-project)
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:    mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:    mvn(org.apache.xbean:xbean-finder)
BuildRequires:    mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:    mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:    mvn(org.codehaus.plexus:plexus-io)
BuildRequires:    mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:    mvn(org.fusesource:fusesource-pom:pom:)
BuildRequires:    mvn(org.ow2.asm:asm)
BuildRequires:    mvn(org.ow2.asm:asm-commons)

Requires:         autoconf
Requires:         automake
Requires:         libtool
Requires:         make

%description
HawtJNI is a code generator that produces the JNI code needed to
implement java native methods. It is based on the jnigen code generator
that is part of the SWT Tools project which is used to generate all the
JNI code which powers the eclipse platform.

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%package runtime
Summary:          HawtJNI Runtime

%description runtime
This package provides API that projects using HawtJNI should build
against.

%package -n maven-hawtjni-plugin
Summary:          Use HawtJNI from a maven plugin

%description -n maven-%{name}-plugin
This package allows to use HawtJNI from a maven plugin.

%prep
%setup -q -n hawtjni-%{commit}

%pom_disable_module hawtjni-example
%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :maven-eclipse-plugin

%mvn_package ":hawtjni-runtime" runtime
%mvn_package ":hawtjni-maven-plugin" maven-plugin

%mvn_alias :hawtjni-maven-plugin :maven-hawtjni-plugin

# javadoc generation fails due to strict doclint in JDK 8
%pom_remove_plugin :maven-javadoc-plugin hawtjni-runtime

%build
%mvn_build

%install
%mvn_install

%files runtime -f .mfiles-runtime
%doc readme.md license.txt changelog.md

%files -f .mfiles

%files javadoc -f .mfiles-javadoc
%doc license.txt

%files -n maven-hawtjni-plugin -f .mfiles-maven-plugin


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13201 |21mr|hazelcast-3.2.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          hazelcast
Version:       3.2.2
Release:       12
Summary:       Hazelcast CE In-Memory DataGrid
License:       ASL 2.0
URL:           http://www.hazelcast.com/
Source0:       https://github.com/hazelcast/hazelcast/archive/v%{version}.tar.gz


BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sourceforge.findbugs:annotations)
BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires: mvn(org.codehaus.groovy:groovy)
BuildRequires: mvn(org.hibernate:hibernate-core:4)
BuildRequires: mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec)
BuildRequires: mvn(org.jruby:jruby-core)
BuildRequires: mvn(org.osgi:org.osgi.core)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: glassfish-jsp-api

%if 0
# hazelcast-spring
BuildRequires: hibernate3
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.mongodb:mongo-java-driver) >= 2.7.3
# Unavailable dep
BuildRequires: mvn(org.springframework.data:spring-data-mongodb) >= 1.0.1.RELEASE

# hazelcast-spring test deps
BuildRequires: mvn(org.springframework:spring-tx)
BuildRequires: mvn(org.springframework:spring-test)

# test deps
BuildRequires: mvn(javassist:javassist)
BuildRequires: mvn(org.hsqldb:hsqldb)
BuildRequires: mvn(org.eclipse.jetty:jetty-webapp)
BuildRequires: mvn(org.slf4j:slf4j-simple)
%endif

BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.mockito:mockito-core)

BuildRequires: maven-local
BuildRequires: maven-dependency-plugin
BuildRequires: maven-assembly-plugin
BuildRequires: maven-antrun-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Hazelcast CE is an open source highly scalable data distribution platform.
Hazelcast allows you to easily share and partition your data across your
cluster.

%package client
Summary:       Hazelcast Client

%description client
Hazelcast Client enables you to do all Hazelcast
operations without being a member of the cluster.

%package cloud
Summary:       Hazelcast EC2 Auto Discovery

%description cloud
Hazelcast EC2 Auto Discovery.

%package hibernate
Summary:       Integration of Hazelcast with Hibernate 3
Provides:      %{name}-hibernate3 = %{version}-%{release}
Obsoletes:     %{name}-hibernate3 < %{version}-%{release}

%description hibernate
Hazelcast second level cache provider for Hibernate 3.

%package ra
Summary:       Hazelcast Resource Adapter
Requires:      %{name} = %{version}-%{release}

%description ra
Hazelcast Resource Adapter.

%if 0
%package spring
Summary:       Integration of Hazelcast with Spring

%description spring
Hazelcast Spring cache provider.
%endif

%package wm
Summary:       Hazelcast WebFilter

%description wm
Hazelcast dynamic HTTP session clustering.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
find . -name "*.bat" -delete
find . -name "*.class" -delete
find . -name "*.jar" -delete
find . -name "*.rar" -delete
find . -name "*.war" -delete

%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :animal-sniffer-maven-plugin 
%pom_remove_plugin -r :jetty-maven-plugin

%pom_disable_module %{name}-documentation
%pom_disable_module hazelcast-hibernate3 %{name}-hibernate
%pom_disable_module hazelcast-jca-rar %{name}-ra
# requires org.springframework.data:spring-data-mongodb
%pom_disable_module %{name}-spring

%pom_xpath_remove "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions/pom:Import-Package" %{name}-all
%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions" "
<Import-Package>
    !junit.framework,
    !org.junit,
    !org.mockito,
    org.apache.log4j;resolution:=optional,
    org.apache.log4j.*;resolution:=optional,
    org.slf4j;resolution:=optional,
    org.hibernate;resolution:=optional,
    org.hibernate.*;resolution:=optional,
    *
</Import-Package>" %{name}-all

%pom_remove_plugin :maven-shade-plugin %{name}-all

%pom_change_dep :hazelcast-hibernate3 :hazelcast-hibernate4 %{name}-all

%pom_change_dep -r org.mockito: :mockito-core
%pom_change_dep org.jruby: :jruby-core %{name}
%pom_change_dep org.codehaus.groovy: :groovy %{name}

%pom_change_dep :geronimo-j2ee-connector_1.5_spec org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec %{name}-ra/%{name}-jca

%pom_remove_dep org.jboss.spec:jboss-javaee-6.0 %{name}-ra/%{name}-jca
%pom_remove_dep org.jboss.arquillian.extension:arquillian-transaction-bom %{name}-ra/%{name}-jca
%pom_remove_dep org.jboss.arquillian:arquillian-bom %{name}-ra/%{name}-jca

%pom_change_dep javax.servlet:javax.servlet-api org.apache.tomcat:tomcat-servlet-api %{name}-wm

cp -p src/main/resources/apache-v2-license.txt license.txt
cp -p src/main/resources/notice.txt .

sed -i 's|../lib/hazelcast-${project.version}.jar|%{_javadir}/%{name}/%{name}.jar|' \
 %{name}/src/main/resources/*.sh
sed -i 's|../lib/hazelcast-client-${project.version}.jar|%{_javadir}/%{name}/%{name}-client.jar|' \
%{name}/src/main/resources/client.sh

%pom_xpath_remove -r "pom:project/pom:dependencies/pom:dependency[pom:scope='test']"
rm -rf hazelcast*/src/test/java/*

%pom_xpath_set -r "pom:properties/pom:log4j.version" 1.2.17
%pom_xpath_set -r "pom:properties/pom:hibernate.core.version" 4

%mvn_package ":%{name}-root" %{name}
%mvn_package ":%{name}-hibernate*" %{name}-hibernate
%mvn_package ":%{name}-jca" %{name}-ra

%build

# takes too much time and @ random fails
# e.g.
# [INFO] hazelcast ......................................... SUCCESS [49:00.842s]
# Tests in error: 
#  putIfAbsentWithTtl(com.hazelcast.client.HazelcastClientMapTest): No cluster member available to connect
#  testNoClusterAfterStart(com.hazelcast.client.HazelcastClientClusterTest): Unexpected exception, expected<com.hazelcast.client.NoMemberAvailableException> but was<java.lang.RuntimeException>

%mvn_build -f -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license license.txt notice.txt

%files client -f .mfiles-%{name}-client
%license license.txt notice.txt

%files cloud -f .mfiles-%{name}-cloud
%license license.txt notice.txt

%files hibernate -f .mfiles-%{name}-hibernate
%license license.txt notice.txt

%files ra -f .mfiles-%{name}-ra
%license license.txt notice.txt

%if 0
%files spring -f .mfiles-%{name}-spring
%license license.txt notice.txt
%endif

%files wm -f .mfiles-%{name}-wm
%license license.txt notice.txt

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13202 |21mr|hddtemp-0.3-0.beta15.20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define betarel beta15

Summary:	Hard Drive Temperature Monitoring
Name:		hddtemp
Version:	0.3
Release:	0.%{betarel}.20
License:	GPLv2+
Group:		Monitoring
Url:		http://www.guzu.net/linux/hddtemp.php
Source0:	http://download.savannah.nongnu.org/releases/hddtemp/hddtemp-%{version}-%{betarel}.tar.bz2
Source1:	http://download.savannah.nongnu.org/releases/hddtemp/hddtemp-%{version}-%{betarel}.tar.bz2.sig
Source2:	http://download.savannah.nongnu.org/releases/hddtemp/hddtemp.db
Source3:	hddtemp.service
Source4:	hddtemp.sysconfig
Source5:	hddtemp.pam
Source6:	hddtemp.consoleapp
Patch0:		hddtemp_0.3-beta15-45.diff
Patch1:		hddtemp-0.3-beta15-reg-eip.patch
Patch2:		hddtemp-0.3-beta15-autodetect-717479.patch
Patch3:		hddtemp-user-context-type.patch
Requires:	usermode-consoleonly

%description
hddtemp is a tool that gives you the temperature of your IDE or SCSI hard drive
(that support this feature) by reading S.M.A.R.T. information. Only modern hard
drives have a temperature sensor.

%files -f %{name}.lang
%doc ChangeLog README TODO contribs debian/changelog
%{_bindir}/hddtemp
%{_unitdir}/hddtemp.service
%{_sbindir}/hddtemp
%config(noreplace) %{_sysconfdir}/hddtemp.db
%config(noreplace) %{_sysconfdir}/sysconfig/hddtemp
%config(noreplace) %{_sysconfdir}/pam.d/hddtemp
%config(noreplace) %{_sysconfdir}/security/console.apps/hddtemp
%{_mandir}/man8/hddtemp.8*

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{betarel}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

chmod 644 src/*.c src/*.h

%build
%configure \
	--with-db-path=%{_sysconfdir}/hddtemp.db

%make

%install
%makeinstall_std
install -m 0644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/hddtemp.db
install -m 0755 %{SOURCE3} -D %{buildroot}%{_unitdir}/hddtemp.service
install -m 0644 %{SOURCE4} -D %{buildroot}%{_sysconfdir}/sysconfig/hddtemp
mkdir -p %{buildroot}%{_bindir}
ln -s consolehelper %{buildroot}%{_bindir}/hddtemp
install -m 0644 %{SOURCE5} -D %{buildroot}%{_sysconfdir}/pam.d/hddtemp
install -m 0644 %{SOURCE6} -D %{buildroot}%{_sysconfdir}/security/console.apps/hddtemp

chmod +s %{buildroot}%{_sbindir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13203 |21mr|hdf5-1.10.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without tests
%define debug_package %{nil}

%define major		103
%define major_cpp	103
%define major_f		102

%define major_hl	100
%define major_hl_cpp	100
%define major_hl_f	100

%define libname		%mklibname %{name}_ %{major}
%define libname_cpp	%mklibname %{name}_cpp %{major_cpp}
%define libname_f	%mklibname %{name}_fortran %{major_f}

%define libname_hl	%mklibname %{name}_hl %{major_hl}
%define libname_hl_cpp	%mklibname %{name}_hl_cpp %{major_hl_cpp}
# Technically wrongly named, but be consistent with other lib names
%define libname_hl_f	%mklibname %{name}_hl_fortran %{major_hl_f}

%define develname	%mklibname %{name} -d

#define patchlevel	-patch1

Name:		hdf5
Version:	1.10.7
Release:	2
Summary:	HDF5 library
License:	Distributable (see included COPYING)
Group:		System/Libraries
URL:		http://www.hdfgroup.org/HDF5/
Source0:	https://support.hdfgroup.org/ftp/HDF5/releases/%{name}-1.10/%{name}-%{version}/src/%{name}-%{version}.tar.bz2
Patch0:		%{name}-1.8.1-lib64.patch
Patch1:		%{name}-1.8.5-fix-str-fmt.patch
Patch2:		e2k-fix.patch
BuildRequires:	jpeg-static-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	gcc-gfortran

%description
HDF5 is a library and file format for storing scientific data. It was
designed to address some of the limitations of the HDF 4.x library and to
address current and anticipated requirements of modern systems and
applications. HDF5 includes the following improvements.

   - A new file format designed to address some of the deficiencies of
     HDF4.x, particularly the need to store larger files and more
     objects per file.
   - A simpler, more comprehensive data model that includes only two
     basic structures: a multidimensional array of record structures,
     and a grouping structure.
   - A simpler, better-engineered library and API, with improved
     support for parallel i/o, threads, and other requirements imposed
     by modern systems and applications.

%package -n %{libname}
Summary:	HDF5 libraries
Group:		System/Libraries
Provides:	lib%{name} = %{version}-%{release}

%description -n %{libname}
This package contains the libraries needed to run programs
dynamically linked with hdf5 libraries.

%package -n %{libname_cpp}
Summary:	HDF5 libraries
Group:		System/Libraries
Conflicts:	%{_lib}hdf5_103 < 1.10.4-2

%description -n %{libname_cpp}
This package contains the libraries needed to run programs
dynamically linked with hdf5 libraries.

%package -n %{libname_f}
Summary:	HDF5 libraries
Group:		System/Libraries
Conflicts:	%{_lib}hdf5_103 < 1.10.4-2

%description -n %{libname_f}
This package contains the libraries needed to run programs
dynamically linked with hdf5 libraries.

%package -n %{libname_hl}
Summary:	HDF5 high level libraries
Group:		System/Libraries
Provides:	lib%{name}_hl = %{version}-%{release}

%description -n %{libname_hl}
This package contains the high level libraries needed to run
programs dynamically linked with hdf5 libraries.

%package -n %{libname_hl_cpp}
Summary:	HDF5 high level libraries
Group:		System/Libraries
Conflicts:	%{_lib}hdf5_hl100 < 1.10.4-2

%description -n %{libname_hl_cpp}
This package contains the high level libraries needed to run
programs dynamically linked with hdf5 libraries.

%package -n %{libname_hl_f}
Summary:	HDF5 high level libraries
Group:		System/Libraries
Conflicts:	%{_lib}hdf5_hl100 < 1.10.4-2

%description -n %{libname_hl_f}
This package contains the high level libraries needed to run
programs dynamically linked with hdf5 libraries.

%package -n %{develname}
Summary:	Development libraries and header files for hdf5 development
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Requires:	%{libname_cpp} = %{version}-%{release}
Requires:	%{libname_f} = %{version}-%{release}
Requires:	%{libname_hl} = %{version}-%{release}
Requires:	%{libname_hl_cpp} = %{version}-%{release}
Requires:	%{libname_hl_f} = %{version}-%{release}

%description -n %{develname}
This package provides development libraries and header files needed
for develop applications requiring the "hdf5" library.

%prep
%setup -qn %{name}-%{version}%{?patchlevel}
%patch2 -p1
find -name '*.[ch]' -o -name '*.f90' -exec chmod -x {} +

find . -type f -size 0 -name Dependencies -print0 |xargs -0 rm -f
find . -type f -size 0 -name .depend -print0 |xargs -0 rm -f

%build
# fix build on aarch64
autoreconf -vfi
sed -i 's!-Werror=incompatible-pointer-types!!g' config/gnu-warnings/error-5
sed -i 's!-Werror=implicit-function-declaration!!g' config/gnu-warnings/error-general

OPT_FLAGS="%{optflags} -O1 -Wno-long-long -Wfloat-equal -Wmissing-format-attribute -Wpadded"
%ifarch %{ix86} %{x86_64}
OPT_FLAGS="$OPT_FLAGS -mieee-fp"
%endif

# (gb) 1.4.2-2mdk: "2.96" still deficient wrt. C++ exception handling on ia32
%ifarch %{ix86}
OPT_FLAGS=`echo "$OPT_FLAGS -fno-omit-frame-pointer" | sed -e "s/-fomit-frame-pointer//g"`
%endif

# (gb) 1.4.2-2mdk: constants merging causes troubles with long doubles on ia64
%ifarch ia64
OPT_FLAGS="$OPT_FLAGS -fno-merge-constants"
%endif

%ifarch %{x86_64}
OPT_FLAGS="$OPT_FLAGS -fPIC"
%endif

#(tpg) disable all strange flags
#CFLAGS="$OPT_FLAGS" CXXFLAGS="$OPT_FLAGS" \
%configure --prefix=%{_prefix} \
	--disable-dependency-tracking \
	--enable-cxx \
	--enable-static \
	--enable-fortran \
	--with-pthread \
	%ifarch %{x86_64}
	--with-pic \
	%endif
	--enable-build-mode=production

%make_build

%if %{with tests}
%check
# all tests must pass on the following architectures
%ifarch %{ix86} x86_64
%make check || echo "make check failed"
%else
%make -k check || echo "make check failed"
%endif
%endif

%install
%make_install
rm -f %{buildroot}%{_libdir}/*.la

strip %{buildroot}%{_libdir}/libhdf*.so*

perl -pi -e \
	"s@^libdir=\'/usr/lib\'@libdir=\'%{_libdir}\'@g" %{buildroot}%{_libdir}/*.la


# rpm macro for version checking
mkdir -p %{buildroot}%{_sysconfdir}/rpm
cat > %{buildroot}%{_sysconfdir}/rpm/macros.hdf5 <<EOF
#
# RPM macros for R packaging
#

#
# Make R search index.txt
#
%_hdf5_version	%{version}
EOF

%files
%doc COPYING MANIFEST README.txt release_docs/RELEASE.txt
%{_bindir}/*

%files -n %{libname}
%{_libdir}/libhdf5.so.%{major}*

%files -n %{libname_cpp}
%{_libdir}/libhdf5_cpp.so.%{major_cpp}*

%files -n %{libname_f}
%{_libdir}/libhdf5_fortran.so.%{major_f}*

%files -n %{libname_hl}
%{_libdir}/libhdf5_hl.so.%{major_hl}*

%files -n %{libname_hl_cpp}
%{_libdir}/libhdf5_hl_cpp.so.%{major_hl_cpp}*

%files -n %{libname_hl_f}
%{_libdir}/libhdf5hl_fortran.so.%{major_hl_f}*

%files -n %{develname}
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/*.settings
%{_includedir}/*
%{_datadir}/hdf5_examples/
%config(noreplace) %{_sysconfdir}/rpm/macros.hdf5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13204 |21mr|hdparm-9.63-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility for displaying and/or setting hard disk parameters
Name:		hdparm
Version:	9.63
Release:	1
License:	BSD
Group:		System/Kernel and hardware
Url:		http://sourceforge.net/projects/hdparm/
Source0:	https://sourceforge.net/projects/hdparm/files/hdparm/%{name}-%{version}.tar.gz
Source1:	hdparm-sysconfig

%description
Hdparm is a useful system utility for setting (E)IDE hard drive parameters. For
example, hdparm can be used to tweak hard drive performance and to spin down
hard drives for power conservation.

%files
%doc hdparm.lsm Changelog README.acoustic
%config(noreplace) %{_sysconfdir}/sysconfig/harddisks
/sbin/hdparm
%{_mandir}/man8/hdparm.8*

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%serverbuild
%make_build \
	CFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}" \
	STRIP=/bin/true

%install
install -m0755 hdparm -D %{buildroot}/sbin/hdparm
install -m0644 hdparm.8 -D %{buildroot}%{_mandir}/man8/hdparm.8
install -m0644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/sysconfig/harddisks

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13205 |21mr|HdrHistogram-2.1.9-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          HdrHistogram
Version:       2.1.9
Release:       8
Summary:       A High Dynamic Range (HDR) Histogram
License:       BSD and CC0
URL:           http://hdrhistogram.github.io/%{name}/
Source0:       https://github.com/%{name}/%{name}/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
# fedora 25
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
# Explicit requires for javapackages-tools since HistogramLogProcessor script
# uses /usr/share/java-utils/java-functions
Requires:      javapackages-tools

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HdrHistogram supports the recording and analyzing sampled data value
counts across a configurable integer value range with configurable value
precision within the range. Value precision is expressed as the number of
significant digits in the value recording, and provides control over value
quantization behavior across the value range and the subsequent value
resolution at any given level.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
find  -name "*.class"  -print -delete
find  -name "*.jar"  -print -delete

%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-source-plugin

%pom_xpath_set "pom:plugin[pom:groupId = 'com.google.code.maven-replacer-plugin' ]/pom:artifactId" replacer

%mvn_file :%{name} %{name}

%build
%mvn_build

%install
%mvn_install

%jpackage_script org.%{name}.HistogramLogProcessor "" "" %{name} HistogramLogProcessor true

%files -f .mfiles
%{_bindir}/HistogramLogProcessor
%doc README.md
%license COPYING.txt LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license COPYING.txt LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13206 |21mr|HdrHistogram_c-0.9.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname hdr_histogram %{major}
%define devname %mklibname hdr_histogram -d

Summary:	C port of the HdrHistogram
Name:		HdrHistogram_c
Version:	0.9.13
Release:	2
License:	BSD and Public Domain
Group:		System/Libraries
Url:		https://github.com/HdrHistogram/%{name}
Source0:	https://github.com/HdrHistogram/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(zlib)

%description
C port of High Dynamic Range (HDR) Histogram.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C port of the HdrHistogram
Group:		System/Libraries

%description -n %{libname}
C port of High Dynamic Range (HDR) Histogram.

%files -n %{libname}
%{_libdir}/libhdr_histogram.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc README.md LICENSE.txt
%dir %{_includedir}/hdr
%{_includedir}/hdr/hdr_thread.h
%{_includedir}/hdr/hdr_interval_recorder.h
%{_includedir}/hdr/hdr_writer_reader_phaser.h
%{_includedir}/hdr/hdr_time.h
%{_includedir}/hdr/hdr_histogram_log.h
%{_includedir}/hdr/hdr_histogram.h
%{_libdir}/libhdr_histogram.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

# Useless
rm -f %{buildroot}%{_bindir}/hiccup
rm -f %{buildroot}%{_bindir}/hdr_decoder
rm -f %{buildroot}%{_bindir}/perftest
rm -f %{buildroot}%{_bindir}/hdr_histogram_log_test
rm -f %{buildroot}%{_bindir}/hdr_histogram_test
rm -f %{buildroot}%{_bindir}/hdr_histogram_atomic_test
rm -f %{buildroot}%{_libdir}/libhdr_histogram_static.a

%check
build/test/hdr_atomic_test
build/test/hdr_histogram_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13207 |21mr|heat-cfntools-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools required to be installed on Heat provisioned cloud instances
Name:		heat-cfntools
Version:	1.4.2
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://launchpad.net/heat-cfntools/
Source0:	https://pypi.python.org/packages/source/h/heat-cfntools/%{name}-%{version}.tar.gz
# All patches to current git master (d23083a8e93311def2fc78fe7ece2a76fe59287b)
# Fixes issues with requirements, code style, Python 3.6+ compat,
# updates links to openstack.org not launchpad.net
# patches 8 and 16 manually rediffed for differences between 1.4.2
# tarball and git tag
Patch0001:	0001-Changed-logger-init-and-added-verbose-arg-handling.patch
Patch0002:	0002-Replace-deprecated-LOG.warn-with-LOG.warning.patch
Patch0003:	0003-Fix-typo.patch
Patch0004:	0004-Drop-unused-directory-in-tox.patch
Patch0005:	0005-Replace-MagicMock-with-Mock.patch
Patch0006:	0006-Show-team-and-repo-badges-on-README.patch
Patch0007:	0007-Remove-white-space-between-print.patch
Patch0008:	0008-Add-OpenStack-doc-support-for-heat-cfntools.patch
Patch0009:	0009-Remove-discover-from-test-requirements.patch
Patch0010:	0010-Update-links-in-README.patch
Patch0011:	0011-Python3-Don-t-use-cmp-function.patch
Patch0012:	0012-Fix-pep8-errors-with-later-versions-of-hacking.patch
Patch0013:	0013-Move-Zuul-config-into-repo.patch
Patch0014:	0014-Modernise-requirements.patch
Patch0015:	0015-Add-tox-python3-overrides.patch
Patch0016:	0016-Switch-to-use-stestr-for-unit-test.patch
Patch0017:	0017-fix-bug-link-in-readme.patch
Patch0018:	0018-add-python-3.6-unit-test-job.patch
Patch0019:	0019-Migrate-the-link-of-bug-report-button-to-storyboard.patch
Patch0020:	0020-Use-template-for-lower-constraints.patch
Patch0021:	0021-Update-the-bugs-link-to-storyboard.patch
BuildRequires:	git
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-testrepository
BuildRequires:	python3-boto
BuildRequires:	python3-mock
BuildRequires:	python3-nose
BuildRequires:	python3-pbr >= 0.5.20
BuildRequires:	python3-six
# imported by cfn_helper
Requires:	python3-boto
Requires:	python3-psutil
Requires:	python3-six >= 1.9.0
# external commands
Requires:	bzip2
Requires:	coreutils
Requires:	curl
Requires:	gzip
Requires:	python3-setuptools
Requires:	shadow-utils
Requires:	tar
BuildArch:	noarch

%description
Tools required to be installed on Heat provisioned cloud instances.

%files
%doc README.rst CONTRIBUTING.rst AUTHORS ChangeLog
%license LICENSE
%{_bindir}/cfn-*
%{python3_sitelib}/heat_cfntools*
%dir %{_sharedstatedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -S git

%build
%__python3 setup.py build

%install
%__python3 setup.py install -O1 --skip-build --root=%{buildroot}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}

%check
nosetests-%{python3_version}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13208 |21mr|heimdal-7.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# Avoid provides as in MIT krb5
# Common provides of heimdal-devel and lib64krb5-devel are:
# devel(libkrb5(64bit))
# pkgconfig(kadm-client)
# pkgconfig(kadm-server)
# pkgconfig(krb5)
# pkgconfig(krb5-gssapi)
# We must exclude all of them here
# ...or rename something here.
# Note that Heimdal provides devel(libgssapi) but krb5 - devel(libgssapi_krb5)
%global __provides_exclude (pkgconfig\\((krb5.*|kadm-(client|server))\\)|devel\\(libkrb5.*\\))
# Stop heimdal-devel from pulling MIT krb5
%global __requires_exclude devel\\(libkrb5.*\\)

%bcond_with hdb
%bcond_with test

Summary:	Heimdal implementation of Kerberos V5 system
Name:		heimdal
Version:	7.8.0
Release:	2
License:	BSD-like
Group:		Networking/Other
Url:		http://www.h5l.org
Source0:	https://github.com/heimdal/heimdal/releases/download/heimdal-%{version}/heimdal-%{version}.tar.gz
Source3:	%{name}.sysconfig
Source10:	%{name}.logrotate
Source26:	%{name}-kdc.service
Source27:	%{name}-ipropd-master.service
Source28:	%{name}-ipropd-slave.service
Source29:	%{name}-kadmind.service
Source30:	%{name}-kpasswdd.service
Source31:	%{name}-ipropd-slave-wrapper

Patch0:		fix-missing-headers
Patch1:		heimdal-7.8.0-explicit-python2.patch
Patch1000:	CVE-2022-45142-gsskrb5-fix-accidental-logic-inversio.patch
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	libtool
BuildRequires:	texinfo
BuildRequires:	db-devel
BuildRequires:	openldap-devel >= 2.0
BuildRequires:	pam-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(com_err)
BuildRequires:	pkgconfig(ncurses) >= 5.3
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xt)
#Required for tests/ldap
BuildRequires:	openldap-servers

%description
Kerberos 5 is a network authentication and single sign-on system.
Heimdal is a free Kerberos 5 implementation without export restrictions
written from the spec (rfc1510 and successors) including advanced features
like thread safety, IPv6, master-slave replication of Kerberos Key
Distribution Center server and support for ticket delegation (S4U2Self,
S4U2Proxy).

%package workstation
Summary:	Kerberos programs for use on workstations
Group:		Networking/Other
Requires:	%{name}-libs = %{EVRD}
Conflicts:	krb5-workstation
Provides:	kerberos-workstation

%description workstation
This package contains Kerberos 5 programs for use on workstations.

%files workstation
%{_bindir}/afslog
%{_bindir}/bsearch
%{_bindir}/gsstool
%{_bindir}/heimtools
%{_bindir}/hxtool
%{_bindir}/idn-lookup
%{_bindir}/kdestroy
%{_bindir}/kf
%{_bindir}/kgetcred
%{_bindir}/kinit
%{_bindir}/klist
%{_bindir}/kpasswd
%attr(4755,root,root) %{_bindir}/ksu
%{_bindir}/kswitch
%attr(4755,root,root) %{_bindir}/otp
%{_bindir}/otpprint
%{_bindir}/pagsh
%{_bindir}/kadmin
%{_bindir}/ktutil
%{_mandir}/man1/afslog.1*
%{_mandir}/man1/bsearch.1*
%{_mandir}/man1/ksu.1*
%{_mandir}/man1/kdestroy.1*
%{_mandir}/man1/kgetcred.1*
%{_mandir}/man1/klist.1*
%{_mandir}/man1/kswitch.1*
%{_mandir}/man1/kinit.1*
%{_mandir}/man1/kpasswd.1*
%{_mandir}/man1/pagsh.1*
%{_mandir}/man1/otp.1*
%{_mandir}/man1/otpprint.1*
%{_mandir}/man1/kf.1*
%{_mandir}/man1/kadmin.1*
%{_mandir}/man1/ktutil.1*
%{_mandir}/man5/krb5.conf.5*

#----------------------------------------------------------------------------

%package server
Summary:	Kerberos Server
Group:		System/Servers
Requires:	%{name}-libs = %{EVRD}
Requires:	krb5
Requires(post,preun):	rpm-helper
Conflicts:	krb5-server

%description server
This package contains the master KDC.

%files server
%doc NEWS TODO
%{_unitdir}/heimdal-kdc.service
%{_unitdir}/heimdal-ipropd-master.service
%{_unitdir}/heimdal-ipropd-slave.service
%{_unitdir}/heimdal-kadmind.service
%{_unitdir}/heimdal-kpasswdd.service
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%dir %{_localstatedir}/lib/%{name}
%config(noreplace) %{_localstatedir}/lib/%{name}/kadmind.acl
# %{_mandir}/*1/kimpersonate.1*
%{_mandir}/man8/kimpersonate.8.*
%{_mandir}/man8/iprop.8*
%{_mandir}/man8/iprop-log.8*
%{_mandir}/man8/kstash.8*
%{_mandir}/man8/hprop.8*
%{_mandir}/man8/hpropd.8*
%{_mandir}/man8/kadmind.8*
%{_mandir}/man8/kdc.8*
%{_mandir}/man8/kfd.8*
%{_mandir}/man8/kpasswdd.8*
%{_mandir}/man8/kcm.8*
%{_mandir}/man8/ipropd-*.8*
%{_sbindir}/kstash
%{_sbindir}/iprop-log
%{_libexecdir}/hprop
%{_libexecdir}/hpropd
%{_libexecdir}/ipropd-master
%{_libexecdir}/ipropd-slave
%{_libexecdir}/kadmind
%{_libexecdir}/kdc
%{_libexecdir}/kfd
%{_libexecdir}/kpasswdd
%{_libexecdir}/kcm
%{_libexecdir}/kimpersonate
%{_libexecdir}/ipropd-slave-wrapper
%{_datadir}/%{name}
%doc doc/*.html

%post server
%_post_service %{name}-kdc

%preun server
%_preun_service %{name}-kdc

#----------------------------------------------------------------------------

# Not working right yet
%if %{with hdb}
%package hdb_ldap
Summary:	Kerberos Server LDAP Backend
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description hdb_ldap
This package contains the LDAP HDB backend plugin, which allows the use of
an LDAP server for storing the Heimdal database.

%files hdb_ldap
%{_libdir}/hdb_ldap*
%endif

#----------------------------------------------------------------------------

%package libs
Summary:	Heimdal shared libraries
Group:		System/Libraries
Conflicts:	%{_lib}gssapi2

%description libs
This package contains shared libraries required by several of the other heimdal
packages.

%files libs
%attr(400,root,root) %ghost %{_sysconfdir}/krb5.keytab
%{_bindir}/string2key
%{_bindir}/verify_krb5_conf
%{_libexecdir}/digest-service
%{_libexecdir}/kdigest
%{_libdir}/lib*.so.*
%{_libdir}/windc*.so.*
%{_infodir}/heimdal.info*
%{_infodir}/hx509.info.*
%{_mandir}/man5/qop.5*
%{_mandir}/man5/mech.5*
%{_mandir}/man8/kerberos.8*
%{_mandir}/man8/verify_krb5_conf.8*
%{_mandir}/man8/string2key.8*
%{_mandir}/man8/kdigest.8.*

#----------------------------------------------------------------------------

%package devel
Summary:	Header files for heimdal
Group:		Development/Other
Requires:	%{name}-libs = %{EVRD}
Requires:	pkgconfig(com_err)
Conflicts:	libxmlrpc-devel
Conflicts:	krb5-devel

%description devel
Contains files needed to compile and link software using the kerberos
libraries.

%files devel
%{_bindir}/heimdal-config
%{_libdir}/lib*.so
%{_libdir}/windc.so
%{_includedir}/*
%{_libdir}/pkgconfig/heimdal-gssapi.pc
%{_libdir}/pkgconfig/heimdal-kadm-client.pc
%{_libdir}/pkgconfig/heimdal-kadm-server.pc
%{_libdir}/pkgconfig/heimdal-krb5.pc
%{_libdir}/pkgconfig/kadm-client.pc
%{_libdir}/pkgconfig/kadm-server.pc
%{_libdir}/pkgconfig/kafs.pc
%{_libdir}/pkgconfig/krb5-gssapi.pc
%{_libdir}/pkgconfig/krb5.pc
%{_libexecdir}/%{name}/asn1_compile
%{_libexecdir}/%{name}/asn1_print
%{_libexecdir}/%{name}/slc

#----------------------------------------------------------------------------

%package devel-doc
Summary:	Developer documentation for heimdal
Group:		System/Libraries

%description devel-doc
Contains the documentation covering functions etc. in the heimdal libraries

%files devel-doc
%{_mandir}/man1/krb5-config.1*
%{_mandir}/man3/*
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%package -n openldap-schemas-%{name}
Summary:	OpenLDAP schema files from %{name}-%{EVRD} source tree
Group:		Databases
Requires(pre):	openldap-config
BuildArch:	noarch

%description -n openldap-schemas-%{name}
Scheme for OpenLDAP.

%files -n openldap-schemas-%{name}
%config(noreplace) %{_sysconfdir}/openldap/schema/*
%attr(750,ldap,ldap) %config(noreplace) %{_sysconfdir}/openldap/slapd.d/%{name}.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%serverbuild
%configure \
	--with-hdbdir=/var/lib/%{name} \
	--disable-static \
	--enable-shared \
	--with-readline \
	--with-readline-lib=%{_libdir} \
	--with-readline-include=%{_includedir}/readline \
	--with-openldap=%{_prefix} \
	--with-sqlite3=%{_prefix} \
	--with-libintl=%{_prefix} \
	--without-x \
	--with-ipv6 \
%if %{with hdb}
	--enable-hdb-openldap-module \
%endif
	--enable-kcm \
	--enable-pk-init
make

%install
install -d %{buildroot}%{_localstatedir}/lib/%{name}

%make_install

install -d -m 755 %{buildroot}%{_unitdir}
install -m 644 %{SOURCE26} %{buildroot}%{_unitdir}/heimdal-kdc.service
install -m 644 %{SOURCE27} %{buildroot}%{_unitdir}/heimdal-ipropd-master.service
install -m 644 %{SOURCE28} %{buildroot}%{_unitdir}/heimdal-ipropd-slave.service
install -m 644 %{SOURCE29} %{buildroot}%{_unitdir}/heimdal-kadmind.service
install -m 644 %{SOURCE30} %{buildroot}%{_unitdir}/heimdal-kpasswdd.service
install -m 755 %{SOURCE31} %{buildroot}%{_libexecdir}/ipropd-slave-wrapper

install -D -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -D -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

chmod +r %{buildroot}%{_bindir}/otp   # qrde dlaczego to ma chmod 0

#touch %{buildroot}%{_sysconfdir}/%{name}/krb5.keytab
touch %{buildroot}%{_sysconfdir}/krb5.keytab
touch %{buildroot}%{_localstatedir}/lib/%{name}/kadmind.acl

# prevent some conflicts
mv %{buildroot}%{_bindir}/su %{buildroot}%{_bindir}/ksu
mv %{buildroot}%{_mandir}/man1/su.1 %{buildroot}%{_mandir}/man1/ksu.1
rm -f %{buildroot}%{_mandir}/*5/ftpusers.5*

rm -f %{buildroot}%{_libdir}/lib{com_err,ss}.so
rm -f %{buildroot}%{_includedir}/{glob,fnmatch,ss/ss}.h
rm -f %{buildroot}%{_bindir}/mk_cmds

# see if we can avoid conflicting with krb5-devel
mv %{buildroot}%{_bindir}/krb5-config %{buildroot}%{_bindir}/heimdal-config

# utils
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 755 tools/kdc-log-analyze.pl %{buildroot}%{_datadir}/%{name}
install -m 755 lib/kadm5/check-cracklib.pl %{buildroot}%{_datadir}/%{name}
perl -pi -e 's|^#! ?/usr/pkg/bin/perl|#!%{_bindir}/perl|' \
    %{buildroot}%{_datadir}/%{name}/*.pl

# remove CAT files
rm -rf %{buildroot}%{_mandir}/cat*

# Prepare schema files to be included into OpenLDAP configuration
mkdir -p %{buildroot}%{_sysconfdir}/openldap/{schema,slapd.d}
install -m 0644 lib/hdb/hdb.schema %{buildroot}%{_sysconfdir}/openldap/schema/
cat > %{buildroot}%{_sysconfdir}/openldap/slapd.d/%{name}.conf <<EOF
# If you need heimdal support load this file or copy
# uncommented lines below to your slapd.conf.
include %{_sysconfdir}/openldap/schema/hdb.schema
EOF
chmod 0644 %{buildroot}%{_sysconfdir}/openldap/slapd.d/%{name}.conf

# Compat with '#include <krb5/krb5.h>' in OpenLDAP
# Maybe better move to /usr/include/heimdal/ as in Debian
( cd %{buildroot}%{_includedir}/krb5 ; ln -s ../krb5.h krb5.h )

%if %{with test}
%check
# For some reason this check fails partially just under rpm:
perl -pi -e 's/check-iprop //g' tests/kdc/Makefile
make -C tests check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13209 |21mr|help2man-1.49.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Create simple man pages from --help output
Name:		help2man
Version:	1.49.2
Release:	1
License:	GPLv3+
Group:		Development/Other
Url:		http://www.gnu.org/software/help2man/
Source0:	ftp://ftp.gnu.org:21/gnu/help2man/%{name}-%{version}.tar.xz
BuildRequires:	perl-Locale-gettext

%description
help2man is a script to create simple man pages from the --help and
--version output of programs.

Since most GNU documentation is now in info format, this provides a way
to generate a placeholder man page pointing to that resource while still
providing some useful information.

%files -f %{name}.lang
%doc debian/changelog COPYING INSTALL README NEWS THANKS
%{_bindir}/%{name}
%{_libdir}/%{name}/bindtextdomain.so
%{_infodir}/%{name}*.info*
%{_mandir}/man1/%{name}.1*
%{_mandir}/*/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-nls
%make_build

%install
%make_install
%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13210 |21mr|hessian-4.0.38-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          hessian
Summary:       Java implementation of a binary protocol for web services 
Version:       4.0.38
Release:       7
Epoch:         0
License:       ASL 1.1
URL:           http://hessian.caucho.com/
Source0:       http://caucho.com/download/%{name}-%{version}-src.jar
Source1:       http://repo1.maven.org/maven2/com/caucho/%{name}/%{version}/%{name}-%{version}.pom
Source2:       hessian-license.txt

BuildRequires: maven-local
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is the Java implementation of Caucho's Hession binary transport
protocol for web services.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -c

mkdir src
mv com src/
# Remove useless files
rm -r META-INF
# NO test suite
rm -r src/com/caucho/hessian/test

cp -p %{SOURCE1} pom.xml
cp -p %{SOURCE2} apache.license
%pom_change_dep :servlet-api javax.servlet:javax.servlet-api:3.1.0

# Useless tasks
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%pom_xpath_set pom:properties/pom:project.build.sourceEncoding UTF-8

%pom_xpath_set "pom:project/pom:packaging" bundle
%pom_add_plugin org.apache.felix:maven-bundle-plugin:3.0.1 . "
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Bundle-SymbolicName>\${project.groupId}.\${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Name>\${project.name}</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%mvn_config buildSettings/compilerSource 1.8

%mvn_file com.caucho:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license apache.license

%files javadoc -f .mfiles-javadoc
%license apache.license


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13211 |21mr|hexchat-2.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	A popular and easy to use graphical IRC (chat) client
Name:		hexchat
Version:	2.16.1
Release:	1
License:	GPLv2+
Group:		Networking/IRC
Url:		http://www.hexchat.org
Source0:	http://dl.hexchat.net/hexchat/%{name}-%{version}.tar.xz
BuildRequires:  bison
BuildRequires:  meson
BuildRequires:  cmake
BuildRequires:  ninja
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  gettext-devel
BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::Embed)
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(dbus-glib-1)
BuildRequires:  pkgconfig(libnotify)
BuildRequires:  pkgconfig(libpci)
BuildRequires:  pkgconfig(libcanberra)
BuildRequires:  pkgconfig(libproxy-1.0)
BuildRequires:  pkgconfig(lua)
BuildRequires:  pkgconfig(luajit)
BuildRequires:  pkgconfig(iso-codes)
BuildRequires:  python3egg(cffi)
BuildRequires:  gnome-common

# To get the balloon alerts working
Requires:       libnotify
Requires:       python3egg(cffi)

Obsoletes:	xchat < %{EVRD}
Obsoletes:	xchat-devel < %{EVRD}
Obsoletes:	xchat-drakcowsay < %{EVRD}
Obsoletes:	xchat-osd < %{EVRD}
Obsoletes:	xchat-perl < %{EVRD}
Obsoletes:	xchat-python < %{EVRD}
Obsoletes:	xchat-systray-integration < %{EVRD}
Obsoletes:	xchat-tcl < %{EVRD}
Obsoletes:	xchat-translator < %{EVRD}

%description
HexChat is an easy to use graphical IRC chat client for the X Window System.
It allows you to join multiple IRC channels (chat rooms) at the same time, 
talk publicly, private one-on-one conversations etc. Even file transfers
are possible.

%files -f %{name}.lang
%dir %{_libdir}/hexchat
%dir %{_libdir}/hexchat/plugins
%{_bindir}/hexchat
%{_libdir}/hexchat/plugins/checksum.so
%{_libdir}/hexchat/plugins/lua.so
%{_libdir}/hexchat/plugins/fishlim.so
%{_libdir}/hexchat/plugins/sysinfo.so
%{_libdir}/hexchat/plugins/perl.so
%{_libdir}/hexchat/plugins/python.so
%{_libdir}/hexchat/python
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*.*g
%{_datadir}/dbus-1/services/org.hexchat.service.service
%{_datadir}/metainfo/*.appdata.xml
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
# Remove COPYING
rm -f share/doc/COPYING

%meson_install

%find_lang %{name}

desktop-file-install \
  --add-category="GTK" \
  --add-category="IRCClient" \
  --dir %{buildroot}%{_datadir}/applications/ %{buildroot}%{_datadir}/applications/*

#(tpg) remove these files
rm -rf %{buildroot}%{_includedir}/hexchat-plugin.h
rm -rf %{buildroot}%{_libdir}/pkgconfig/hexchat-plugin.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13212 |21mr|hexedit-1.2.12-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	View and edit files in hexadecimal or in ASCII
Name:		hexedit
Version:	1.2.12
Release:	15
License:	GPLv2+
Group:		Editors
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(ncurses)
Url:		http://merd.net/pixel/hexedit.html
Source0:	http://merd.net/pixel/%{name}-%{version}.src.tar.bz2
Patch0:		hexedit-1.2.12-dont-strip-binary.patch

%description
hexedit shows a file both in ASCII and in hexadecimal. The file can be a device
as the file is read a piece at a time. You can modify the file and search
through it.

%prep
%setup -qn %{name}
%apply_patches

%build
%configure
%make

%install
%makeinstall

%files
%doc TODO %{name}-%{version}.lsm
%{_bindir}/hexedit
%{_mandir}/man1/hexedit.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13213 |21mr|hfsplus-tools-540.1.linux3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		hfsplus-tools
Version:	540.1.linux3
Release:	2
Summary:	Tools to create/check Apple HFS+ filesystems
Group:		System/Base
License:	APSL 2.0
URL:		http://en.gentoo-wiki.com/wiki/HOWTO_hfsplus
Source0:	http://cavan.codon.org.uk/~mjg59/diskdev_cmds/diskdev_cmds-%{version}.tar.gz
Source100:	http://www.opensource.org/licenses/apsl-2.0.txt
Patch0:		hfsplus-tools-no-blocks.patch
Patch1:		hfsplus-tools-learn-to-stdarg.patch
Patch2:		hfsplus-tools-sysctl.patch

BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(uuid)

# those tools are outdated, given the rebuilt mkfs/fsck.hfsplus in this
# package.  However, I don't want to Obsolete that package yet, as some people
# may have a valid use for it on their systems. 
Conflicts: hfsplusutils

# we want this to end up with the other mkfs.*'s, in /sbin
%define _exec_prefix /


%description
HFS+, HFS Plus, or Mac OS Extended are names for a file system developed by
Apple Computer to replace their Hierarchical File System (HFS). In addition to
being the default file system on modern Apple computers, HFS+ is one of two
formats, FAT being the other, that are supported by the iPod hard-disk based
music player. Unlike FAT, HFS+ supports UNIX style file permissions, which
makes it useful, for serving and sharing files in a secured manner. As Apple
Computer's devices and systems become increasingly ubiquitous, it becomes
important that Linux fully support this format.  This package provides tools
to create and check HFS+ filesystems under Linux.

The Linux kernel does not support writing to HFS+ journals, writing to a
hfsplus partition is recommended only after disabling journaling; however, the
kernel, as of version 2.6.16, supports case-sensitivity (also known as HFSX)
commit.

%files
%defattr(-,root,root,-)
%doc apsl-2.0.txt
%{_sbindir}/mkfs.hfsplus
%{_sbindir}/mkfs.hfs
%{_sbindir}/fsck.hfsplus
%{_sbindir}/fsck.hfs
%{_mandir}/man8/mkfs.hfsplus.8.xz
%{_mandir}/man8/mkfs.hfs.8.xz
%{_mandir}/man8/fsck.hfsplus.8.xz
%{_mandir}/man8/fsck.hfs.8.xz

#------------------------------------------------------------------------------
%prep
%autosetup -p1 -n diskdev_cmds-%{version}

# remove errant execute bits
find . -type f -name '*.[ch]' -exec chmod -c -x {} +

# make life easier on doc
cp %{SOURCE100} .


%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags} -f Makefile


%install
rm -rf %{buildroot}

# the actual install...
mkdir -p %{buildroot}/%{_sbindir}
cp newfs_hfs.tproj/newfs_hfs %{buildroot}/%{_sbindir}/mkfs.hfsplus
cp fsck_hfs.tproj/fsck_hfs %{buildroot}/%{_sbindir}/fsck.hfsplus

# man pages -- a mildly non-invasive name change is in order
mkdir -p %{buildroot}/%{_mandir}/man8
cat fsck_hfs.tproj/fsck_hfs.8 | sed -e 's/[F|f]sck_hfs/fsck.hfsplus/g' \
    > %{buildroot}/%{_mandir}/man8/fsck.hfsplus.8
cat newfs_hfs.tproj/newfs_hfs.8 | sed -e 's/[N|n]ewfs_hfs/mkfs.hfsplus/g' \
    > %{buildroot}/%{_mandir}/man8/mkfs.hfsplus.8

# and a utility symlink...
cd %{buildroot}/%{_sbindir}
ln -s mkfs.hfsplus mkfs.hfs
ln -s fsck.hfsplus fsck.hfs
cd %{buildroot}/%{_mandir}/man8
ln -s fsck.hfsplus.8 fsck.hfs.8
ln -s mkfs.hfsplus.8 mkfs.hfs.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13214 |21mr|hfst-ospell-0.5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hfstospell

%define major	11
%define libname	%mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Name:		hfst-ospell
Summary:	HFST spell checker library and command line tool
Version:	0.5.2
Release:	2
Group:		System/Libraries
License:	ASL 2.0
Url:		https://hfst.github.io/
Source0:	https://github.com/hfst/hfst-ospell/archive/v%{version}.tar.gz?/hfstospell-%{version}.tar.gz
Patch0:		hfst-ospell-0.5.0-compile.patch
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libxml++-2.6)
BuildRequires:	pkgconfig(icu-uc)

%description
This is a minimal HFST optimized lookup format based spell checker library and
a demonstrational implementation of command line based spell checker.

%files
%doc AUTHORS NEWS README
%doc COPYING
%{_bindir}/hfst-ospell
%{_bindir}/hfst-ospell-office
%{_mandir}/man1/hfst-ospell-office.1*
%{_mandir}/man1/hfst-ospell.1*

#------------------------------------------------------------------------------
%package -n %{libname}
Summary:	HFST spell checker library
Group:		System/Libraries
%description -n %{libname}
Minimal HFST optimized lookup format based spell checker library.

%files -n %{libname}
%doc AUTHORS NEWS README
%doc COPYING
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.%{major}.*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib%{oname}.so
%{_libdir}/pkgconfig/%{oname}.pc

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n hfst-ospell-%{version}

%build
./autogen.sh
%configure \
	--disable-static \
	--with-libxmlpp
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13215 |21mr|hfst-ospell-0.5.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname hfstospell

%define major	11
%define libname	%mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Name:		hfst-ospell
Summary:	HFST spell checker library and command line tool
Version:	0.5.2
Release:	5
Group:		System/Libraries
License:	ASL 2.0
Url:		https://hfst.github.io/
Source0:	https://github.com/hfst/hfst-ospell/archive/v%{version}.tar.gz?/hfstospell-%{version}.tar.gz
Patch0:		hfst-ospell-0.5.0-compile.patch
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libxml++-2.6)
BuildRequires:	pkgconfig(icu-uc)

%description
This is a minimal HFST optimized lookup format based spell checker library and
a demonstrational implementation of command line based spell checker.

%files
%doc AUTHORS NEWS README
%doc COPYING
%{_bindir}/hfst-ospell
%{_bindir}/hfst-ospell-office
%{_mandir}/man1/hfst-ospell-office.1*
%{_mandir}/man1/hfst-ospell.1*

#------------------------------------------------------------------------------
%package -n %{libname}
Summary:	HFST spell checker library
Group:		System/Libraries
%description -n %{libname}
Minimal HFST optimized lookup format based spell checker library.

%files -n %{libname}
%doc AUTHORS NEWS README
%doc COPYING
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.%{major}.*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib%{oname}.so
%{_libdir}/pkgconfig/%{oname}.pc

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n hfst-ospell-%{version}

%build
./autogen.sh
%configure \
	--disable-static \
	--with-libxmlpp
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13216 |21mr|hibernate3-3.6.10-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global majorversion 3
%global oname hibernate-orm

Name:    hibernate3
Version: 3.6.10
Release: 22
Summary: Relational persistence and query service
License: LGPLv2+
URL:     http://www.hibernate.org/
# git clone git://github.com/hibernate/hibernate-orm
# cd hibernate-orm/ && git archive --format=tar --prefix=hibernate-orm-3.6.10.Final/ 3.6.10.Final | xz > hibernate-3.6.10.Final.tar.xz
Source0: hibernate-orm-%{version}.Final.tar.xz
Source1: hibernate3-depmap
Patch0:  hibernate-orm-fix-cglib-gid.patch
Patch1:  hibernate-orm-fix-jacc-gid-aid.patch
Patch2:  hibernate-orm-fix-ant-gid.patch
Patch4:  hibernate-orm-cglib-3.1.patch
Patch5:  0001-Fix-invalid-HTML.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: jpackage-utils
BuildRequires: javapackages-tools >= 0.7.2
BuildRequires: maven-local
BuildRequires: maven-antrun-plugin
BuildRequires: maven-release-plugin
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-injection-plugin
BuildRequires: antlr-maven-plugin
BuildRequires: geronimo-validation
BuildRequires: geronimo-jta
BuildRequires: hibernate-validator
BuildRequires: cglib
BuildRequires: jboss-jacc-1.4-api
BuildRequires: c3p0
BuildRequires: proxool
BuildRequires: hibernate-commons-annotations
BuildRequires: jboss-servlet-3.0-api
BuildRequires: ehcache-core
# jbosscache was retired
# BuildRequires: jbosscache-core
# BuildRequires: jbosscache-common-parent
# H3 dont support infinispan > 5.3.0
# BuildRequires: infinispan
BuildRequires: rhq-plugin-annotations
BuildRequires: h2
BuildRequires: mvn(hsqldb:hsqldb:1)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: glassfish-jaxb
BuildRequires: shrinkwrap
BuildRequires: jboss-transaction-1.1-api

Obsoletes: %{name}-infinispan < %{version}-%{release}
Obsoletes: %{name}-jbosscache < %{version}-%{release}

%description
Hibernate is a powerful, ultra-high performance
object/relational persistence and query service
for Java.

%package javadoc
Summary: API docs for %{name}

%description javadoc
API documentation for %{name}.

%package entitymanager
Summary: Hibernate Entity Manager

%description entitymanager
%{summary}.

%package envers
Summary: Hibernate support for entity auditing

%description envers
%{summary}.

%package c3p0
Summary: C3P0-based implementation of Hibernate ConnectionProvider

%description c3p0
%{summary}.

%package proxool
Summary: Proxool-based implementation of Hibernate ConnectionProvder

%description proxool
%{summary}.

%package ehcache
Summary: Integration of Hibernate with Ehcache

%description ehcache
%{summary}.

%package testing
Summary: Hibernate JUnit test utilities

%description testing
%{summary}.

%prep
%setup -q -n %{oname}-%{namedversion}
%autopatch -p1

# Fix more invalid HTML
grep -Irl 'Hern&aacut' | xargs sed -i -e 's,Hern&aacut;n,Hern,g'

%pom_remove_plugin org.jboss.maven.plugins:maven-jdocbook-plugin hibernate-parent
%pom_remove_plugin org.jboss.maven.plugins:maven-jdocbook-style-plugin hibernate-parent
%pom_remove_plugin :gmaven-plugin hibernate-parent
%pom_disable_module hibernate-testsuite
%pom_disable_module hibernate-oscache
%pom_disable_module hibernate-swarmcache
%pom_disable_module hibernate-jdbc3-testing
%pom_disable_module hibernate-jdbc4-testing

%pom_disable_module hibernate-infinispan
%pom_disable_module hibernate-jbosscache

# Remove test deps infinispan jbosscache
for m in envers entitymanager ehcache; do
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:scope = 'test']" hibernate-${m}/pom.xml
done

# We don't need it
%pom_xpath_remove pom:build/pom:extensions hibernate-parent/pom.xml

# disable hibernate-tools support
%pom_remove_dep org.hibernate:hibernate-tools hibernate-envers
%pom_remove_dep ant:ant hibernate-envers
rm -r hibernate-envers/src/main/java/org/hibernate/tool/ant/*.java \
  hibernate-envers/src/main/java/org/hibernate/envers/ant/*.java

# Make hibernate-testing back a test dependency...
#sed -i "s|<!-- <scope>test</scope> TODO fix this -->|<scope>test</scope>|" hibernate-infinispan/pom.xml

# Fix the c3p0 gid
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId = 'c3p0' ]/pom:groupId" com.mchange  hibernate-c3p0

# Fix the hibernate-commons-annotations gid
for f in hibernate-core hibernate-envers;do
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId = 'hibernate-commons-annotations' ]/pom:groupId" org.hibernate.common  ${f}
done

for f in hibernate-core hibernate-entitymanager hibernate-parent;do
sed -i "s|<groupId>javax.validation|<groupId>org.apache.geronimo.specs|" ${f}/pom.xml
sed -i "s|<artifactId>validation-api|<artifactId>geronimo-validation_1.0_spec|" ${f}/pom.xml
done

sed -i "s|<groupId>javax.transaction|<groupId>org.jboss.spec.javax.transaction|" hibernate-core/pom.xml
sed -i "s|<artifactId>jta|<artifactId>jboss-transaction-api_1.1_spec|" hibernate-core/pom.xml
sed -i "s|<version>1.1</version>|<version>1.0.1.Final</version>|" hibernate-core/pom.xml

%pom_xpath_set "pom:project/pom:dependencyManagement/pom:dependencies/pom:dependency[pom:artifactId = 'hibernate-commons-annotations' ]/pom:groupId" org.hibernate.common  hibernate-parent

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," lgpl.txt

%mvn_compat_version : %{majorversion} %{namedversion}
%mvn_package ":hibernate-parent" %{name}
%mvn_package ":hibernate-core" %{name}
%mvn_package ":hibernate" __noinstall

%build

# Currently 4 tests fail with this error:
# "Unable to get the default Bean Validation factory"
export jdk16_home=/usr
export LANG=en_US.UTF-8
%mvn_build -s -f -- -DdisableDistribution=true

%install
%mvn_install

%files -f .mfiles-%{name}
%doc changelog.txt
%license lgpl.txt

%files javadoc -f .mfiles-javadoc
%license lgpl.txt

%files entitymanager -f .mfiles-hibernate-entitymanager
%license lgpl.txt

%files envers -f .mfiles-hibernate-envers
%license lgpl.txt

%files c3p0 -f .mfiles-hibernate-c3p0
%license lgpl.txt

%files ehcache -f .mfiles-hibernate-ehcache
%license lgpl.txt

%files proxool -f .mfiles-hibernate-proxool
%license lgpl.txt

%files testing -f .mfiles-hibernate-testing
%license lgpl.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13217 |21mr|hibernate4-4.3.11-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

%global pom_url http://repo1.maven.org/maven2/org/hibernate

Name:          hibernate4
Version:       4.3.11
Release:       8
Summary:       Relational persistence and query service
# Incorrect Free Software Foundation address https://hibernate.atlassian.net/browse/HHH-10961
License:       LGPLv2+ and ASL 2.0
URL:           http://www.hibernate.org/
Source0:       https://github.com/hibernate/hibernate-orm/archive/%{namedversion}/hibernate-%{namedversion}.tar.gz

Source1:       %{pom_url}/hibernate-c3p0/%{namedversion}/hibernate-c3p0-%{namedversion}.pom
Source2:       %{pom_url}/hibernate-core/%{namedversion}/hibernate-core-%{namedversion}.pom
Source3:       %{pom_url}/hibernate-ehcache/%{namedversion}/hibernate-ehcache-%{namedversion}.pom
Source4:       %{pom_url}/hibernate-entitymanager/%{namedversion}/hibernate-entitymanager-%{namedversion}.pom
Source5:       %{pom_url}/hibernate/hibernate-envers/%{namedversion}/hibernate-envers-%{namedversion}.pom
Source6:       %{pom_url}/hibernate-hikaricp/%{namedversion}/hibernate-hikaricp-%{namedversion}.pom
Source7:       %{pom_url}/hibernate-infinispan/%{namedversion}/hibernate-infinispan-%{namedversion}.pom
Source8:       %{pom_url}/hibernate-proxool/%{namedversion}/hibernate-proxool-%{namedversion}.pom
Source9:       %{pom_url}/hibernate-testing/%{namedversion}/hibernate-testing-%{namedversion}.pom
Source10:      %{pom_url}/hibernate-osgi/%{namedversion}/hibernate-osgi-%{namedversion}.pom

# Custom hibernate-parent POM
Source50:      hibernate-parent-%{namedversion}.pom

# hibernate package don't include ASL license file
Source60:      http://www.apache.org/licenses/LICENSE-2.0.txt
# Add missing method
Patch0:        hibernate-4.3.11.Final-hibernate-commons-annotations5.patch
# Infinispan 8 is not compatible with this release of Hibernate
# this is a only build fix
Patch1:        hibernate-4.3.11.Final-infinispan8.patch
Patch2:        adapt-type.patch

BuildRequires: maven-local
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(com.experlog:xapool)
BuildRequires: mvn(com.fasterxml:classmate)
BuildRequires: mvn(com.mchange:c3p0)
BuildRequires: mvn(com.zaxxer:HikariCP)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(java_cup:java_cup)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.ehcache:ehcache-core)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.bsc.maven:maven-processor-plugin)
BuildRequires: mvn(org.codehaus.mojo:antlr-maven-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.hibernate.common:hibernate-commons-annotations)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.infinispan:infinispan-core)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss.byteman:byteman)
BuildRequires: mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires: mvn(org.jboss.byteman:byteman-install)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.narayana.jta:jta)
BuildRequires: mvn(org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.jvnet.jaxb2.maven2:maven-jaxb22-plugin)
BuildRequires: mvn(org.jvnet.jaxb2_commons:jaxb2-basics)
BuildRequires: mvn(org.rhq.helpers:rhq-pluginAnnotations)
BuildRequires: mvn(proxool:proxool)
BuildRequires: xmvn

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Hibernate is a powerful, ultra-high performance
object/relational persistence and query service
for Java. Hibernate lets you develop persistent
objects following common Java idiom - including
association, inheritance, polymorphism, composition
and the Java collections framework. Extremely
fine-grained, richly typed object models are
possible. The Hibernate Query Language, designed
as a "minimal" object-oriented extension to SQL,
provides an elegant bridge between the object and
relational worlds. Hibernate is now the most
popular ORM solution for Java.

%package core
Summary:       Hibernate Core

%description core
Core Hibernate O/RM functionality

%package c3p0
Summary:       Hibernate C3P0 ConnectionProvider

%description c3p0
C3P0-based implementation of the Hibernate ConnectionProvder contract.

%package ehcache
Summary:       Hibernate Ehcache Integration

%description ehcache
Integration of Hibernate with Ehcache.

%package entitymanager
Summary:       Hibernate Entity Manager

%description entitymanager
Hibernate Entity Manager.

%package envers
Summary:       Hibernate Envers

%description envers
Support for entity auditing.

%package hikaricp
Summary:       Hibernate HikariCP Integration

%description hikaricp
Integration of Hibernate with HikariCP.

%package infinispan
Summary:       Hibernate Infinispan Integration

%description infinispan
Integration of Hibernate with Infinispan.

%package parent
Summary:       Hibernate Parent POM

%description parent
Hibernate Parent POM.

%package proxool
Summary:       Hibernate Proxool ConnectionProvider

%description proxool
Proxool-based implementation of the Hibernate ConnectionProvder contract.

%package osgi
Summary:       Hibernate OSGi Support

%description osgi
Support for running Hibernate O/RM in OSGi environments.

%package testing
Summary:       Hibernate Testing

%description testing
Hibernate JUnit test utilities.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n hibernate-orm-%{namedversion}
find .  -name "*.jar" -delete
find .  -name "*.class" -delete
rm -r documentation/*

%patch0 -p1
%patch1 -p1
%patch2 -p1

cp -p %{SOURCE1} hibernate-c3p0/pom.xml
cp -p %{SOURCE2} hibernate-core/pom.xml
cp -p %{SOURCE3} hibernate-ehcache/pom.xml
cp -p %{SOURCE4} hibernate-entitymanager/pom.xml
cp -p %{SOURCE5} hibernate-envers/pom.xml
cp -p %{SOURCE6} hibernate-hikaricp/pom.xml
cp -p %{SOURCE7} hibernate-infinispan/pom.xml
cp -p %{SOURCE8} hibernate-proxool/pom.xml
cp -p %{SOURCE9} hibernate-testing/pom.xml
cp -p %{SOURCE10} hibernate-osgi/pom.xml

cp -p %{SOURCE50} pom.xml

cp -p %{SOURCE60} .
sed -i 's/\r//' LICENSE-2.0.txt

for m in entitymanager envers core; do
%pom_add_plugin org.bsc.maven:maven-processor-plugin:2.2.4 hibernate-${m} "
<configuration>
    <defaultOutputDirectory>\${project.build.directory}/generated-sources/logging</defaultOutputDirectory>
    <processors>
        <processor>org.jboss.logging.processor.apt.LoggingToolsProcessor</processor>
    </processors>
</configuration>
<executions>
    <execution>
        <id>process</id>
        <phase>generate-sources</phase>
        <goals>
            <goal>process</goal>
        </goals>
    </execution>
</executions>
<dependencies>
    <dependency>
        <groupId>org.jboss.logging</groupId>
        <artifactId>jboss-logging-processor</artifactId>
        <version>1.2.0.Beta1</version>
    </dependency>
</dependencies>"
done

pushd hibernate-core

%pom_add_plugin "org.jvnet.jaxb2.maven2:maven-jaxb22-plugin:0.12.3" . "
<executions>
  <execution>
    <id>hibernate-configuration</id>
    <goals>
      <goal>generate</goal>
    </goals>
    <configuration>
      <schemaIncludes>
        <include>hibernate-configuration-4.0.xsd</include>
      </schemaIncludes>
      <bindingIncludes>
        <include>hbm-configuration-bindings.xjb</include>
      </bindingIncludes>
      <generatePackage>org.hibernate.internal.jaxb.cfg</generatePackage>
      <generateDirectory>\${project.build.directory}/generated-sources/hibernate-configuration</generateDirectory>
    </configuration>
  </execution>
  <execution>
    <id>hibernate-mapping</id>
    <goals>
      <goal>generate</goal>
    </goals>
    <configuration>
      <schemaIncludes>
        <include>hibernate-mapping-4.0.xsd</include>
      </schemaIncludes>
      <bindingIncludes>
        <include>hbm-mapping-bindings.xjb</include>
      </bindingIncludes>
      <generatePackage>org.hibernate.internal.jaxb.mapping.hbm</generatePackage>
      <generateDirectory>\${project.build.directory}/generated-sources/hibernate-mapping</generateDirectory>
    </configuration>
  </execution>
  <execution>
    <id>hibernate-orm</id>
    <goals>
      <goal>generate</goal>
    </goals>
    <configuration>
      <schemaIncludes>
        <include>jpa/orm_2_0.xsd</include>
      </schemaIncludes>
      <bindingIncludes>
        <include>orm-bindings.xjb</include>
      </bindingIncludes>
      <generatePackage>org.hibernate.internal.jaxb.mapping.orm</generatePackage>
      <generateDirectory>\${project.build.directory}/generated-sources/hibernate-orm</generateDirectory>
    </configuration>
  </execution>
</executions>
<configuration>
  <schemaDirectory>src/main/resources/org/hibernate</schemaDirectory>
  <bindingDirectory>src/main/xjb</bindingDirectory>
  <extension>true</extension>
  <plugins>
    <plugin>
      <groupId>org.jvnet.jaxb2_commons</groupId>
      <artifactId>jaxb2-basics</artifactId>
      <version>0.6.3</version>
    </plugin>
  </plugins>
  <args>
    <arg>-Xinheritance</arg>
  </args>
</configuration>"

%pom_add_plugin "org.codehaus.mojo:antlr-maven-plugin:2.2" . "
<configuration>
  <grammars>*</grammars>
</configuration>
<executions>
  <execution>
    <goals>
      <goal>generate</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin "org.apache.maven.plugins:maven-compiler-plugin:3.3" . "
<configuration>
  <source>1.6</source>
  <target>1.6</target>
</configuration>
<inherited>true</inherited>"

%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Description>hibernate core</Bundle-Description>
    <Bundle-SymbolicName>org.hibernate.core</Bundle-SymbolicName>
    <Bundle-Name>hibernate-core</Bundle-Name>
    <Bundle-Vendor>Hibernate.org</Bundle-Vendor>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 . "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <manifest>
      <addClasspath>false</addClasspath>
      <mainClass>org.hibernate.Version</mainClass>
    </manifest>
    <manifestEntries>
      <Implementation-Url>http://hibernate.org</Implementation-Url>
      <Implementation-Vendor>Hibernate.org</Implementation-Vendor>
      <Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
      <Implementation-Version>\${project.version}</Implementation-Version>
    </manifestEntries>
  </archive>
</configuration>"

# Add missing deps
%pom_add_dep "com.fasterxml:classmate:1.1.0"
%pom_add_dep "javax.validation:validation-api:1.1.0.Final"
%pom_add_dep "org.apache.ant:ant:1.9.4:provided"
%pom_add_dep "org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:1.0.2.Final"
%pom_add_dep "junit:junit:4.12:test"
%pom_add_dep "org.hibernate:hibernate-testing:%{namedversion}:test"

popd

%pom_add_dep "javax.enterprise:cdi-api:1.2" hibernate-entitymanager

# Fix HikariCP aId
%pom_change_dep com.zaxxer:HikariCP-java6 :HikariCP:2.4.0 hibernate-hikaricp

# Use eclipse apis only
%pom_change_dep org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200 hibernate-osgi
%pom_remove_dep org.osgi:org.osgi.compendium hibernate-osgi

# Use narayana instead of old jboss-jts
%pom_change_dep "org.jboss.jbossts:jbossjta" "org.jboss.narayana.jta:jta" hibernate-testing

for m in c3p0 ehcache entitymanager envers hikaricp infinispan osgi proxool testing; do
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 hibernate-${m} "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Description>hibernate ${m}</Bundle-Description>
    <Bundle-SymbolicName>org.hibernate.${m}</Bundle-SymbolicName>
    <Bundle-Name>hibernate-${m}</Bundle-Name>
    <Bundle-Vendor>Hibernate.org</Bundle-Vendor>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 hibernate-${m} "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <manifestEntries>
      <Implementation-Url>http://hibernate.org</Implementation-Url>
      <Implementation-Vendor>Hibernate.org</Implementation-Vendor>
      <Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
      <Implementation-Version>\${project.version}</Implementation-Version>
    </manifestEntries>
  </archive>
</configuration>"

done

# fix non ASCII chars
for f in $(grep -e 'Pedersen\|Lichtmaier\|Chanfreau\|Benke\|Carlos\|CREATE\ SCHEMA' --include *.java -r -l | sort | uniq); do
  native2ascii -encoding UTF8 ${f} ${f}
done

sed -i.jandex1.2.2 "s|classDotName, superName, access_flag, interfaces, map|classDotName, superName, access_flag, interfaces, map, true|" \
 hibernate-core/src/main/java/org/hibernate/metamodel/source/annotations/xml/mocker/IndexBuilder.java

%mvn_compat_version : %{namedversion} %{version} 4

%build

# Disabled beacuse of cyclic dep between core and testing modules
%mvn_build -s -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files core -f .mfiles-hibernate-core
%doc changelog.txt README.md
%license lgpl.txt LICENSE-2.0.txt

%files c3p0 -f .mfiles-hibernate-c3p0
%files ehcache -f .mfiles-hibernate-ehcache
%files entitymanager -f .mfiles-hibernate-entitymanager
%files envers -f .mfiles-hibernate-envers
%files hikaricp -f .mfiles-hibernate-hikaricp
%files infinispan -f .mfiles-hibernate-infinispan
%files osgi -f .mfiles-hibernate-osgi

%files parent -f .mfiles-hibernate-parent
%license lgpl.txt LICENSE-2.0.txt

%files proxool -f .mfiles-hibernate-proxool
%files testing -f .mfiles-hibernate-testing

%files javadoc -f .mfiles-javadoc
%license lgpl.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13218 |21mr|hibernate-5.0.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

# Conditionals to help breaking hibernate <-> infinispan dependency cycle
%bcond_with infinispan
# Use geolatte-geom 1.0.1 but 1.x series is no compatible with the 0.1x
%bcond_with spatial

%global pom_url http://repo1.maven.org/maven2/org/hibernate

Name:          hibernate
Version:       5.0.10
Release:       8
Summary:       Relational persistence and query service
License:       LGPLv2+ and ASL 2.0
URL:           http://www.hibernate.org/
Source0:       https://github.com/hibernate/hibernate-orm/archive/%{version}/%{name}-%{namedversion}.tar.gz

Source1:       %{pom_url}/hibernate-c3p0/%{namedversion}/hibernate-c3p0-%{namedversion}.pom
Source2:       %{pom_url}/hibernate-core/%{namedversion}/hibernate-core-%{namedversion}.pom
Source3:       %{pom_url}/hibernate-ehcache/%{namedversion}/hibernate-ehcache-%{namedversion}.pom
Source4:       %{pom_url}/hibernate-entitymanager/%{namedversion}/hibernate-entitymanager-%{namedversion}.pom
Source5:       %{pom_url}/hibernate-envers/%{namedversion}/hibernate-envers-%{namedversion}.pom
Source6:       %{pom_url}/hibernate-hikaricp/%{namedversion}/hibernate-hikaricp-%{namedversion}.pom
Source7:       %{pom_url}/hibernate-infinispan/%{namedversion}/hibernate-infinispan-%{namedversion}.pom
Source8:       %{pom_url}/hibernate-java8/%{namedversion}/hibernate-java8-%{namedversion}.pom
Source9:       %{pom_url}/hibernate-osgi/%{namedversion}/hibernate-osgi-%{namedversion}.pom
Source10:      %{pom_url}/hibernate-proxool/%{namedversion}/hibernate-proxool-%{namedversion}.pom
Source11:      %{pom_url}/hibernate-spatial/%{namedversion}/hibernate-spatial-%{namedversion}.pom
Source12:      %{pom_url}/hibernate-testing/%{namedversion}/hibernate-testing-%{namedversion}.pom

# http://repo1.maven.org/maven2/org/hibernate/hibernate-jpamodelgen/5.0.10.Final/hibernate-jpamodelgen-5.0.10.Final.pom

# Custom hibernate-parent POM
Source50:      hibernate-parent-%{namedversion}.pom

# hibernate package don't include ASL license file
Source60:      http://www.apache.org/licenses/LICENSE-2.0.txt
Source70:      hibernate-infinispan-component-metadata.dat

Patch1: 95ecd7c43a15f88c558377ac230a16a6f5f45fba.patch

BuildRequires: maven-local
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(com.experlog:xapool)
BuildRequires: mvn(com.fasterxml:classmate)
BuildRequires: mvn(com.mchange:c3p0)
BuildRequires: mvn(com.zaxxer:HikariCP)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(java_cup:java_cup)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.ehcache:ehcache-core)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs-parent:pom:)
BuildRequires: mvn(org.bsc.maven:maven-processor-plugin)
BuildRequires: mvn(org.codehaus.mojo:antlr-maven-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
%if %{with spatial}
BuildRequires: mvn(org.geolatte:geolatte-geom)
BuildRequires: mvn(postgresql:postgresql)
%endif
BuildRequires: mvn(org.hibernate.common:hibernate-commons-annotations)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
%if %{without infinispan}
BuildRequires: mvn(org.infinispan:infinispan-core) >= 7.2.1
%endif
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss.byteman:byteman)
BuildRequires: mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires: mvn(org.jboss.byteman:byteman-install)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.narayana.jta:jta)
BuildRequires: mvn(org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec)
BuildRequires: mvn(org.jvnet.jaxb2.maven2:maven-jaxb22-plugin)
BuildRequires: mvn(org.jvnet.jaxb2_commons:jaxb2-basics)
BuildRequires: mvn(org.rhq.helpers:rhq-pluginAnnotations)
BuildRequires: mvn(proxool:proxool)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Hibernate is a powerful, ultra-high performance
object/relational persistence and query service
for Java. Hibernate lets you develop persistent
objects following common Java idiom - including
association, inheritance, polymorphism, composition
and the Java collections framework. Extremely
fine-grained, richly typed object models are
possible. The Hibernate Query Language, designed
as a "minimal" object-oriented extension to SQL,
provides an elegant bridge between the object and
relational worlds. Hibernate is now the most
popular ORM solution for Java.

%package core
Summary:       Hibernate Core

%description core
Core Hibernate O/RM functionality

%package c3p0
Summary:       Hibernate C3P0 ConnectionProvider

%description c3p0
C3P0-based implementation of the Hibernate ConnectionProvder contract.

%package ehcache
Summary:       Hibernate Ehcache Integration

%description ehcache
Integration of Hibernate with Ehcache.

%package entitymanager
Summary:       Hibernate Entity Manager

%description entitymanager
Hibernate Entity Manager.

%package envers
Summary:       Hibernate Envers

%description envers
Support for entity auditing.

%package hikaricp
Summary:       Hibernate HikariCP Integration

%description hikaricp
Integration of Hibernate with HikariCP.

%package infinispan
Summary:       Hibernate Infinispan Integration

%description infinispan
Integration of Hibernate with Infinispan.

%package java8
Summary:       Hibernate Java8-specific functionality

%description java8
Support for Java8-specific features - mainly Java8 Date/Time (JSR 310).

%package osgi
Summary:       Hibernate OSGi Support

%description osgi
Support for running Hibernate O/RM in OSGi environments.

%package parent
Summary:       Hibernate Parent POM

%description parent
Hibernate Parent POM.

%package proxool
Summary:       Hibernate Proxool ConnectionProvider

%description proxool
Proxool-based implementation of the Hibernate ConnectionProvder contract.

%package spatial
Summary:       Hibernate Spatial/GIS Integration

%description spatial
Integrate support for Spatial/GIS data into Hibernate.

%package testing
Summary:       Hibernate Testing

%description testing
Hibernate JUnit test utilities.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-orm-%{version}
%autopatch -p1

find .  -name "*.jar" -delete
find .  -name "*.class" -delete
rm -r documentation/*

cp -p %{SOURCE1} hibernate-c3p0/pom.xml
cp -p %{SOURCE2} hibernate-core/pom.xml
cp -p %{SOURCE3} hibernate-ehcache/pom.xml
cp -p %{SOURCE4} hibernate-entitymanager/pom.xml
cp -p %{SOURCE5} hibernate-envers/pom.xml
cp -p %{SOURCE6} hibernate-hikaricp/pom.xml
cp -p %{SOURCE7} hibernate-infinispan/pom.xml
cp -p %{SOURCE8} hibernate-java8/pom.xml
cp -p %{SOURCE9} hibernate-osgi/pom.xml
cp -p %{SOURCE10} hibernate-proxool/pom.xml
cp -p %{SOURCE11} hibernate-spatial/pom.xml
cp -p %{SOURCE12} hibernate-testing/pom.xml

cp -p %{SOURCE50} pom.xml

cp -p %{SOURCE60} .
sed -i 's/\r//' LICENSE-2.0.txt

for m in entitymanager envers core; do
%pom_add_plugin org.bsc.maven:maven-processor-plugin:2.2.4 hibernate-${m} "
<configuration>
    <defaultOutputDirectory>\${project.build.directory}/generated-sources/logging</defaultOutputDirectory>
    <processors>
        <processor>org.jboss.logging.processor.apt.LoggingToolsProcessor</processor>
    </processors>
</configuration>
<executions>
    <execution>
        <id>process</id>
        <phase>generate-sources</phase>
        <goals>
            <goal>process</goal>
        </goals>
    </execution>
</executions>
<dependencies>
    <dependency>
        <groupId>org.jboss.logging</groupId>
        <artifactId>jboss-logging-processor</artifactId>
        <version>2.0.1.Final</version>
    </dependency>
</dependencies>"
done

pushd hibernate-core

%pom_add_plugin "org.jvnet.jaxb2.maven2:maven-jaxb22-plugin:0.12.3" . "
<executions>
  <execution>
    <id>hibernate-configuration</id>
    <goals>
      <goal>generate</goal>
    </goals>
    <configuration>
      <schemaIncludes>
        <include>cfg/legacy-configuration-4.0.xsd</include>
      </schemaIncludes>
      <bindingIncludes>
        <include>hbm-configuration-bindings.xjb</include>
      </bindingIncludes>
      <generatePackage>org.hibernate.boot.jaxb.cfg.spi</generatePackage>
      <generateDirectory>\${project.build.directory}/generated-sources/hibernate-configuration</generateDirectory>
    </configuration>
  </execution>
  <execution>
    <id>hibernate-mapping</id>
    <goals>
      <goal>generate</goal>
    </goals>
    <configuration>
      <schemaIncludes>
        <include>mapping/legacy-mapping-4.0.xsd</include>
      </schemaIncludes>
      <bindingIncludes>
        <include>hbm-mapping-bindings.xjb</include>
      </bindingIncludes>
      <generatePackage>org.hibernate.boot.jaxb.hbm.spi</generatePackage>
      <generateDirectory>\${project.build.directory}/generated-sources/hibernate-mapping</generateDirectory>
      <args>
        <arg>-Xinheritance</arg>
        <arg>-Xsimplify</arg>
      </args>
    </configuration>
  </execution>
</executions>
<configuration>
  <schemaDirectory>src/main/resources/org/hibernate/xsd</schemaDirectory>
  <bindingDirectory>src/main/xjb</bindingDirectory>
  <extension>true</extension>
  <plugins>
    <plugin>
      <groupId>org.jvnet.jaxb2_commons</groupId>
      <artifactId>jaxb2-basics</artifactId>
      <version>0.6.3</version>
    </plugin>
  </plugins>
</configuration>"

%pom_add_plugin "org.codehaus.mojo:antlr-maven-plugin:2.2" . "
<configuration>
  <grammars>*</grammars>
</configuration>
<executions>
  <execution>
    <goals>
      <goal>generate</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin "org.apache.maven.plugins:maven-compiler-plugin:3.3" . "
<configuration>
  <source>1.6</source>
  <target>1.6</target>
</configuration>
<inherited>true</inherited>"

%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Description>hibernate core</Bundle-Description>
    <Bundle-SymbolicName>org.hibernate.core</Bundle-SymbolicName>
    <Bundle-Name>hibernate-core</Bundle-Name>
    <Bundle-Vendor>Hibernate.org</Bundle-Vendor>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 . "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <manifest>
      <addClasspath>false</addClasspath>
      <mainClass>org.hibernate.Version</mainClass>
    </manifest>
    <manifestEntries>
      <Implementation-Url>http://hibernate.org</Implementation-Url>
      <Implementation-Vendor>Hibernate.org</Implementation-Vendor>
      <Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
      <Implementation-Version>\${project.version}</Implementation-Version>
    </manifestEntries>
  </archive>
</configuration>"

# Add missing deps
%pom_add_dep "com.fasterxml:classmate:1.1.0"
%pom_add_dep "javax.validation:validation-api:1.1.0.Final"
%pom_add_dep "org.apache.ant:ant:1.9.4:provided"
#%% pom_add_dep "org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.5_spec:1.0.0.Final"
%pom_add_dep "org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.4_spec:1.0.2.Final"

%pom_add_dep "junit:junit:4.12:test"
%pom_add_dep "org.hibernate:hibernate-testing:%{namedversion}:test"

popd

%pom_add_dep "javax.enterprise:cdi-api:1.2" hibernate-entitymanager

# Fix HikariCP aId
%pom_change_dep "com.zaxxer:HikariCP-java6" "com.zaxxer:HikariCP:2.4.0" hibernate-hikaricp

# Use eclipse apis only
%pom_change_dep "org.osgi:org.osgi.core" "org.eclipse.osgi:org.eclipse.osgi:3.10.102.v20160416-2200" hibernate-osgi
%pom_remove_dep "org.osgi:org.osgi.compendium" hibernate-osgi

# Use narayana instead of old jboss-jts
%pom_change_dep "org.jboss.jbossts:jbossjta" "org.jboss.narayana.jta:jta" hibernate-testing

for m in c3p0 ehcache entitymanager envers hikaricp infinispan java8 osgi proxool spatial testing; do
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 hibernate-${m} "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Description>hibernate ${m}</Bundle-Description>
    <Bundle-SymbolicName>org.hibernate.${m}</Bundle-SymbolicName>
    <Bundle-Name>hibernate-${m}</Bundle-Name>
    <Bundle-Vendor>Hibernate.org</Bundle-Vendor>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 hibernate-${m} "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <manifestEntries>
      <Implementation-Url>http://hibernate.org</Implementation-Url>
      <Implementation-Vendor>Hibernate.org</Implementation-Vendor>
      <Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
      <Implementation-Version>\${project.version}</Implementation-Version>
    </manifestEntries>
  </archive>
</configuration>"

done

# fix non ASCII chars
for f in $(grep -e 'Pedersen\|Lichtmaier\|Chanfreau\|Benke\|Carlos\|CREATE\ SCHEMA' --include *.java -r -l | sort | uniq); do
  native2ascii -encoding UTF8 ${f} ${f}
done

%if %{with infinispan}
%pom_disable_module hibernate-infinispan
%endif

%if %{without spatial}
%pom_disable_module hibernate-spatial
%endif

%build

# Disabled beacuse of cyclic dep between core and testing modules
%mvn_build -s -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

jar -uf %{buildroot}%{_javadir}/%{name}/%{name}-infinispan.jar -C %{_sourcedir} hibernate-infinispan-component-metadata.dat

%files core -f .mfiles-hibernate-core
%doc changelog.txt README.md migration-guide.adoc
%license lgpl.txt LICENSE-2.0.txt

%files c3p0 -f .mfiles-hibernate-c3p0
%files ehcache -f .mfiles-hibernate-ehcache
%files entitymanager -f .mfiles-hibernate-entitymanager
%files envers -f .mfiles-hibernate-envers
%files hikaricp -f .mfiles-hibernate-hikaricp
%if %{without infinispan}
%files infinispan -f .mfiles-hibernate-infinispan
%endif
%files java8 -f .mfiles-hibernate-java8
%files osgi -f .mfiles-hibernate-osgi
%doc hibernate-osgi/README.md

%files parent -f .mfiles-hibernate-parent
%license lgpl.txt LICENSE-2.0.txt

%files proxool -f .mfiles-hibernate-proxool

%if %{with spatial}
%files spatial -f .mfiles-hibernate-spatial
%license hibernate-spatial/COPYRIGHT
%endif

%files testing -f .mfiles-hibernate-testing

%files javadoc -f .mfiles-javadoc
%license lgpl.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13219 |21mr|hibernate-commons-annotations-5.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             hibernate-commons-annotations
Version:          5.0.1
Release:          6
Summary:          Hibernate Annotations

# For details see:
# - https://github.com/hibernate/hibernate-commons-annotations/commit/4a902b4f97f923f9044a4127357b44fe5dc39cdc
# - https://github.com/hibernate/hibernate-commons-annotations/commit/a11c44cd65dadcedaf8981379b94a2c4e31428d1
License:          LGPLv2
# Incorrect Free Software Foundation address https://hibernate.atlassian.net/browse/HCANN-78
URL:              http://www.hibernate.org/

Source0:          https://github.com/hibernate/hibernate-commons-annotations/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
Source1:          https://repository.jboss.org/nexus/service/local/repositories/central/content/org/hibernate/common/%{name}/%{namedversion}/%{name}-%{namedversion}.pom
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.bsc.maven:maven-processor-plugin)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)


%description
Following the DRY (Don't Repeat Yourself) principle, 
Hibernate Validator let's you express your domain 
constraints once (and only once) and ensure their 
compliance at various level of your system 
automatically.

Common reflection code used in support of annotation processing.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n hibernate-commons-annotations-%{namedversion}
# Cleanup
find . -name '*.class' -print -delete
find . -name '*.jar' -print -delete

cp %{SOURCE1} pom.xml

# Set encodig
%pom_xpath_inject pom:project "
<properties>
 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
</properties>"

# Generate logging source
%pom_add_plugin org.bsc.maven:maven-processor-plugin:2.2.4 . "
<configuration>
    <defaultOutputDirectory>\${project.build.directory}/generated-sources/logging</defaultOutputDirectory>
    <processors>
        <processor>org.jboss.logging.processor.apt.LoggingToolsProcessor</processor>
    </processors>
</configuration>
<executions>
    <execution>
        <id>process</id>
        <phase>generate-sources</phase>
        <goals>
            <goal>process</goal>
        </goals>
    </execution>
</executions>
<dependencies>
    <dependency>
        <groupId>org.jboss.logging</groupId>
        <artifactId>jboss-logging-processor</artifactId>
        <version>2.0.1.Final</version>
    </dependency>
</dependencies>"

# Inject and configure MANIFEST items
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 . "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <manifestEntries>
      <Implementation-Url>http://hibernate.org</Implementation-Url>
      <Implementation-Vendor>Hibernate.org</Implementation-Vendor>
      <Implementation-Vendor-Id>org.hibernate</Implementation-Vendor-Id>
      <Implementation-Version>\${project.version}</Implementation-Version>
      <Main-Class>org.hibernate.annotations.common.Version</Main-Class>
    </manifestEntries>
  </archive>
</configuration>"

# Add OSGi support
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>\${project.groupId}.\${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Name>\${project.artifactId}</Bundle-Name>
    <Bundle-Vendor>Hibernate.org</Bundle-Vendor>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"
# Add missing deps
%pom_add_dep org.jboss.logging:jboss-logging-annotations:2.0.1.Final:compile
%pom_add_dep junit:junit:4.12:test

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc changelog.txt readme.txt
%license lgpl.txt

%files javadoc -f .mfiles-javadoc
%license lgpl.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13220 |21mr|hibernate-jpa-2.0-api-1.0.1-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             hibernate-jpa-2.0-api
Version:          1.0.1
Release:          24
Summary:          Java Persistence 2.0 (JSR 317) API
License:          EPL and BSD
URL:              http://www.hibernate.org/
# svn export http://anonsvn.jboss.org/repos/hibernate/jpa-api/tags/hibernate-jpa-2.0-api-1.0.1.Final/ hibernate-jpa-2.0-api-1.0.1.Final
# tar -zcvf hibernate-jpa-2.0-api-1.0.1.Final.tar.gz hibernate-jpa-2.0-api-1.0.1.Final
Source0:          %{name}-%{namedversion}.tar.gz
Patch0:           %{name}-%{namedversion}-encoding.patch
Patch1:           %{name}-%{namedversion}-osgi-manifest.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    maven-release-plugin

%description
Hibernate definition of the Java Persistence 2.0 (JSR 317) API.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p1
%patch1 -p1

%pom_xpath_remove pom:build/pom:extensions

%pom_remove_plugin :maven-source-plugin

# Fixing wrong-file-end-of-line-encoding
sed -i 's/\r//' src/main/javadoc/jdstyle.css

%build
%mvn_build

%install
# Fixing wrong-file-end-of-line-encoding
sed -i 's/\r//' target/site/apidocs/jdstyle.css
%mvn_install

%files -f .mfiles
%doc readme.txt
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13221 |21mr|hibernate-jpa-2.1-api-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global oname hibernate-jpa-api
%global apiversion 2.1
%global minversion 0
%global pkgversion %{?apiversion}%{?minversion}%{?namedreltag}
%global namedversion %{version}%{?namedreltag}

Name:          hibernate-jpa-2.1-api
Version:       1.0.0
Release:       7
Summary:       Java Persistence 2.1 (JSR 338) API
License:       EPL and BSD
Group:         Development/Java
URL:           http://www.hibernate.org/
Source0:       https://github.com/hibernate/hibernate-jpa-api/archive/%{pkgversion}.tar.gz
Source1:       http://repo1.maven.org/maven2/org/hibernate/javax/persistence/%{name}/%{namedversion}/%{name}-%{namedversion}.pom
# fix mvn build, this project uses the default Gradle to build
# sets various mvn plugins properties
Patch0:        hibernate-jpa-api-2.10.Final-pom.patch

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Hibernate definition of the Java Persistence 2.1 (JSR 338) API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{pkgversion}
find . -name "*.jar" -delete

cp -p %{SOURCE1} pom.xml
%patch0 -p1

# Fixing wrong-file-end-of-line-encoding
sed -i 's/\r//' src/main/javadoc/jdstyle.css

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13222 |21mr|hibernate-jpamodelgen-1.3.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

%bcond_with test

Name:          hibernate-jpamodelgen
Version:       1.3.0
Release:       8
Summary:       Hibernate JPA 2 Metamodel Generator
License:       ASL 2.0
Url:           http://www.hibernate.org/subprojects/jpamodelgen.html
# https://github.com/hibernate/hibernate-metamodelgen
Source0:       http://downloads.sourceforge.net/hibernate/%{name}-%{namedversion}-dist.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:jaxb2-maven-plugin)
BuildRequires: mvn(org.jboss.maven.plugins:maven-injection-plugin)

# Test deps
%if %{without test}
# Compatibility problem with hibernate-core: use 4.2.3.Final available 4.3.5.Final
BuildRequires: mvn(org.hibernate:hibernate-core)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-report-plugin)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Annotation Processor to generate JPA 2 static meta-model classes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
find . -name "*.jar" -delete
find . -name "*.class" -delete
rm -rf docs/api

%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-jdocbook-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-source-plugin
%if %{with test}
%pom_remove_plugin :maven-surefire-plugin
%pom_remove_plugin :maven-surefire-report-plugin
%endif

%mvn_file :%{name} %{name}

%build

# test skip unavailable deps
%if %{with test}
opts="-f"
%endif
%mvn_build $opts -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md changelog.txt
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13223 |21mr|hibernate-search-5.5.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          hibernate-search
Version:       5.5.4
Release:       3
Summary:       Hibernate Search
License:       LGPLv2+
URL:           http://hibernate.org/search/
Source0:       https://github.com/hibernate/hibernate-search/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
# checkstyle 8 -> checkstyle 7
BuildRequires: mvn(com.puppycrawl.tools:checkstyle:7)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(java_cup:java_cup)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:12)
BuildRequires: mvn(org.apache.avro:avro)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
# lucene 7 -> lucene 5
BuildRequires: mvn(org.apache.lucene:lucene-analyzers-common:5)
BuildRequires: mvn(org.apache.lucene:lucene-analyzers-phonetic:5)
BuildRequires: mvn(org.apache.lucene:lucene-backward-codecs:5)
BuildRequires: mvn(org.apache.lucene:lucene-core:5) >= 5.3.1
BuildRequires: mvn(org.apache.lucene:lucene-facet:5)
BuildRequires: mvn(org.apache.lucene:lucene-misc:5)
BuildRequires: mvn(org.apache.lucene:lucene-queryparser:5)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.pdfbox:pdfbox)
BuildRequires: mvn(org.apache.tika:tika-core)
BuildRequires: mvn(org.bsc.maven:maven-processor-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.hibernate:hibernate-core) >= 5.0.7
BuildRequires: mvn(org.hibernate:hibernate-entitymanager)
BuildRequires: mvn(org.hibernate:hibernate-envers)
BuildRequires: mvn(org.hibernate:hibernate-testing)
BuildRequires: mvn(org.hibernate.common:hibernate-commons-annotations)  >= 5.0.1
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.jboss.byteman:byteman)
BuildRequires: mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires: mvn(org.jboss.byteman:byteman-install)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires: mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires: mvn(org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.jgroups:jgroups) >= 3.6.6
BuildRequires: mvn(simple-jndi:simple-jndi)
BuildRequires: xmvn

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Full text search engines like Apache Lucene are very powerful technologies to
add efficient free text search capabilities to applications. However, Lucene
suffers several mismatches when dealing with object domain models. Amongst
other things indexes have to be kept up to date and mismatches between index
structure and domain model as well as query mismatches have to be avoided.

Hibernate Search addresses these shortcomings - it indexes your domain model
with the help of a few annotations, takes care of database/index
synchronization and brings back regular managed objects from free text queries.

Hibernate Search is using Apache Lucene under the cover.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
rm -rf orm/src/test/resources/org/hibernate/search/test/bridge/tika/

%pom_disable_module integrationtest/jms
%pom_disable_module integrationtest/narayana
%pom_disable_module integrationtest/spring
%pom_disable_module integrationtest/wildfly
%pom_disable_module integrationtest/performance
%pom_disable_module integrationtest/osgi/karaf-features
%pom_disable_module integrationtest/osgi/karaf-it
%pom_disable_module integrationtest/sandbox
%pom_disable_module integrationtest/engine-performance
%pom_disable_module distribution
%pom_disable_module documentation
# This component is now owned and maintained by the Infinispan team:
# org.infinispan:infinispan-directory-provider:8.0.1.Final
%pom_disable_module infinispan
%pom_disable_module legacy

# hibernate-search-engine, hibernate-search-orm
%pom_xpath_remove "pom:dependency[pom:type = 'test-jar']" testing

%pom_remove_plugin ":maven-enforcer-plugin"
# de.thetaphi:forbiddenapis:1.8
%pom_remove_plugin -r :forbiddenapis

%pom_remove_dep org.apache.tika:tika-core
%pom_change_dep -r "org.apache.tika:tika-parsers" "org.apache.tika:tika-core"
%pom_change_dep -r :log4j ::12

# org.easytesting:fest-assert:1.4
%pom_remove_dep -r :fest-assert
# org.unitils:unitils-easymock:3.3
%pom_remove_dep -r :unitils-easymock

%pom_change_dep :checkstyle:5.7 :checkstyle:7.7 build-config/pom.xml

%mvn_alias :hibernate-search-orm :hibernate-search
sed -i 's,luceneVersion>5.3.1</luceneVersion,luceneVersion>5</luceneVersion,' pom.xml

%build
# NO test deps see above
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc changelog.txt README.md
%license lgpl.txt

%files javadoc -f .mfiles-javadoc
%license lgpl.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13224 |21mr|hibernate-validator-5.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global majorversion 5

Name:          hibernate-validator
Version:       5.4.3
Release:       1
Summary:       Bean Validation 1.1 (JSR 349) Reference Implementation
License:       ASL 2.0
Group:         Development/Java
URL:           http://www.hibernate.org/subprojects/validator.html
Source0:       https://github.com/hibernate/hibernate-validator/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
# JAXB2 and JDK7+ problems see https://hibernate.atlassian.net/browse/HV-528
# Patch0:        hibernate-validator-5.2.4.Final-jaxb.patch
Patch1:        0001-wildfly-plugin-disable.patch
Patch2:        hibernate-validator-revert-Money-and-Currency.patch
# Patch3:        hibernate-validator-validatorFactory.patch 
# Patch4:        0001-addContainerElementNode-override.patch
# Patch5:        0001-import-fix.patch
# Patch6:        0001-mass-overrides.patch

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml:classmate)
#BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(com.thoughtworks.paranamer:paranamer)
BuildRequires: mvn(javax.annotation:javax.annotation-api)
#BuildRequires: mvn(javax.el:javax.el-api)
#BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.validation:validation-api:1.1.0.Final)
#BuildRequires: mvn(javax.xml.bind:jaxb-api)
# BuildRequires: mvn(javax.money:money-api)
# BuildRequires: mvn(org.javamoney:moneta)
#BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
BuildRequires: mvn(joda-time:joda-time)
#BuildRequires: mvn(junit:junit)
#BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:jaxb2-maven-plugin)
BuildRequires: mvn(org.glassfish.web:javax.el)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.jboss.arquillian:arquillian-bom:pom:)
#BuildRequires: mvn(org.jboss.maven.plugins:maven-injection-plugin)
#BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.jboss.logging:jboss-logging) >= 3.1.1
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor:1)
#BuildRequires: mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)
# BuildRequires: mvn(org.jboss.as:patch-gen-maven-plugin:pom:)
BuildRequires: mvn(org.jsoup:jsoup)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
BuildRequires: mvn(org.openjdk.jmh:jmh-generator-annprocess)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.assertj:assertj-core)
#BuildRequires: mvn(org.assertj:assertj-core)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is the reference implementation of JSR-349 - Bean Validation 1.1.
Bean Validation defines a meta-data model and API for JavaBean as well
as method validation. The default meta-data source are annotations,
with the ability to override and extend the meta-data through the
use of XML validation descriptors.

%package annotation-processor
Summary:       Hibernate Validator Annotation Processor

%description annotation-processor
Hibernate Validator Annotation Processor.

%package cdi
Summary:       Hibernate Validator Portable Extension

%description cdi
Hibernate Validator CDI Portable Extension.

%package parent
Summary:       Hibernate Validator Parent POM

%description parent
Aggregator of the Hibernate Validator modules.

%package performance
Summary:       Hibernate Validator Performance Tests

%description performance
Hibernate Validator performance tests.

%package test-utils
Summary:       Hibernate Validator Test Utils

%description test-utils
Hibernate Validator Test Utils.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%autosetup -p1 -n %{name}-%{namedversion}
find . -name "*.jar" -delete
# tck-runner/src/as7config/modules/org/jboss/as/ee/main/jboss-as-ee-7.1.1.Final.jar

%pom_disable_module distribution
%pom_disable_module documentation
%pom_disable_module engine-jdk8-tests
%pom_disable_module integration
%pom_disable_module osgi
%pom_disable_module tck-runner

# https://hibernate.atlassian.net/browse/HV-1069
rm -r test-utils/src/main/java/org/hibernate/validator/testutil/ConstraintViolationAssert.java \
 test-utils/src/main/java/org/hibernate/validator/testutil/DescriptorAssert.java \
 test-utils/src/main/java/org/hibernate/validator/testutil/MessageLoggedAssertionLogger.java

#rm xsd
rm engine/src/main/xsd/validation-configuration-1.0.xsd
rm engine/src/main/xsd/validation-mapping-1.0.xsd


# documentation plugins
# %pom_remove_plugin :maven-jdocbook-plugin
# %pom_remove_plugin org.zanata:zanata-maven-plugin
# tck-runner and documentation plugins
# %pom_remove_plugin -r org.codehaus.gmaven:gmaven-plugin
# %pom_remove_plugin -r org.codehaus.mojo:clirr-maven-plugin
%pom_remove_plugin -r org.codehaus.mojo:chronos-jmeter-maven-plugin
# %pom_remove_plugin org.codehaus.mojo:chronos-report-maven-plugin performance
%pom_remove_plugin -r org.codehaus.mojo:exec-maven-plugin

%pom_xpath_remove "pom:build/pom:extensions"

%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-surefire-report-plugin
%pom_remove_plugin -r :animal-sniffer-maven-plugin

%pom_xpath_inject "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration" " <excludePackageNames>*.internal.*</excludePackageNames>"

%pom_xpath_set "pom:maven.javadoc.skip" false

# https://bugs.openjdk.java.net/browse/JDK-8067747
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" \
 "<useIncrementalCompilation>false</useIncrementalCompilation>"

%pom_xpath_set "pom:properties/pom:jboss.logging.processor.version" 1
%pom_change_dep :jboss-logging-processor ::'${jboss.logging.processor.version}' engine

# Unavailable deps JavaFX
rm engine/src/main/java/org/hibernate/validator/internal/engine/valuehandling/JavaFXPropertyValueUnwrapper.java

%pom_remove_dep org.testng:testng ./test-utils
%pom_remove_dep org.assertj:assertj-core ./test-utils

%pom_remove_dep org.codehaus.groovy:groovy-jsr223 ./engine 
#%%pom_remove_dep javax.money:money-api ./engine 
#%%pom_remove_dep org.javamoney:moneta ./engine 

%build

# Running tests requires hibernate proper (and require weld-core >= 2.0.0 groovy >= 2.1.0), so skip for now:
%mvn_build -f -s -- -Pdist

%install
%mvn_install

%files -f .mfiles-%{name}
%doc CONTRIBUTING.md README.md changelog.txt
%license copyright.txt license.txt
%{_datadir}/java/%{name}/hibernate-validator-build-config.jar
%{_datadir}/maven-metadata/hibernate-validator-hibernate-validator-build-config.xml
%{_datadir}/maven-metadata/hibernate-validator-hibernate-validator-modules.xml
%{_datadir}/maven-poms/hibernate-validator/hibernate-validator-build-config.pom
%{_datadir}/maven-poms/hibernate-validator/hibernate-validator-modules.pom

%files annotation-processor -f .mfiles-%{name}-annotation-processor
%license copyright.txt license.txt

%files cdi -f .mfiles-%{name}-cdi
%files parent -f .mfiles-%{name}-parent
%license copyright.txt license.txt

%files performance -f .mfiles-%{name}-performance
%license copyright.txt license.txt

%files test-utils -f .mfiles-%{name}-test-utils
%license copyright.txt license.txt

%files javadoc -f .mfiles-javadoc
%license copyright.txt license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13225 |21mr|hicolor-icon-theme-0.17-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Basic requirement for icon themes
Name:		hicolor-icon-theme
Version:	0.17
Release:	3
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://icon-theme.freedesktop.org/wiki/HicolorTheme
Source0:	https://icon-theme.freedesktop.org/releases/hicolor-icon-theme-%{version}.tar.xz
Patch0:		01_dont_scale_22x22_apps_icons_for_hicolor.patch
BuildArch:	noarch
OrderWithRequires: /usr/bin/gtk-update-icon-cache

%description
Contains the basic directories and files needed for icon theme support.

%files
%doc README
%dir %{_iconsdir}/hicolor
%{_iconsdir}/hicolor/*x*
%ghost %{_iconsdir}/hicolor/icon-theme.cache

%transfiletriggerin -- %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --force --quiet %{_datadir}/icons/hicolor || :
fi
 
%transfiletriggerpostun -- %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
  %{_bindir}/gtk-update-icon-cache --force --quiet %{_datadir}/icons/hicolor || :
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

touch %{buildroot}%{_datadir}/icons/hicolor/icon-theme.cache

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13226 |21mr|hidapi-0.10.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define libhidraw %mklibname %{name}-hidraw %{major}
%define libusb %mklibname %{name}-libusb %{major}
%define devname	%mklibname %{name} -d

Summary:	Library for communicating with USB and Bluetooth HID devices
Name:		hidapi
Version:	0.10.1
Release:	3
License:	GPLv3
Group:		Communications
Url:		https://github.com/libusb/hidapi
Source0:	https://github.com/libusb/hidapi/archive/%{name}-%{version}.tar.gz
Patch0:		autoconf-2.70.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	m4
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(udev)

%description
HIDAPI is a multi-platform library which allows an application to interface
with USB and Bluetooth HID-class devices on Windows, Linux, FreeBSD and Mac OS
X. On Linux, either the hidraw or the libusb back-end can be used. There are
trade-offs and the functionality supported is slightly different.

#------------------------------------------------------------------

%package -n %{libhidraw}
Summary:	Library files for hidapi
Group:		System/Libraries

%description -n %{libhidraw}
This package contains library files for hidapi which provides access to
USB and Bluetooth HID-class devices.

%files -n %{libhidraw}
%doc AUTHORS.txt README.md
%{_libdir}/libhidapi-hidraw.so.%{major}*

#------------------------------------------------------------------

%package -n %{libusb}
Summary:	Library files for hidapi
Group:		System/Libraries

%description -n %{libusb}
This package contains library files for hidapi which provides access to
USB and Bluetooth HID-class devices.

%files -n %{libusb}
%doc AUTHORS.txt README.md
%{_libdir}/libhidapi-libusb.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for hidapi
Group:		System/Libraries
Requires:	%{libhidraw} = %{EVRD}
Requires:	%{libusb} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for hidapi which provides access to
USB and Bluetooth HID-class devices.

%files -n %{devname}
%{_includedir}/hidapi
%{_libdir}/libhidapi-*.so
%{_libdir}/pkgconfig/hidapi-*.pc

#------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-testgui \
	--disable-static
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13227 |21mr|hiera-3.6.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           hiera
Version:        3.6.0
Release:        3
Summary:        A simple hierarchical database supporting plugin data sources
Group:          Monitoring
License:        ASL 2.0
URL:            http://projects.puppetlabs.com/projects/%{name}/
Source0:        http://downloads.puppetlabs.com/hiera/%{name}-%{version}.tar.gz
# Use /etc/puppet rather than /etc/puppetlabs/puppet
Patch0:         fix-puppetlab-paths.patch
BuildArch:      noarch
BuildRequires:  rubygem(rspec)
BuildRequires:  rubygem(mocha)
BuildRequires:  rubygem(json)
BuildRequires:  ruby-devel

%description
A simple hierarchical database supporting plugin data sources.

%prep
%autosetup -p1

%build
# Nothing to build

%install
mkdir -p %{buildroot}%{ruby_vendorlibdir}
mkdir -p %{buildroot}%{_sysconfdir}/puppet
mkdir -p %{buildroot}%{_bindir}
cp -pr lib/hiera %{buildroot}%{ruby_vendorlibdir}
cp -pr lib/hiera.rb %{buildroot}%{ruby_vendorlibdir}
install -p -m0755 bin/hiera %{buildroot}%{_bindir}
install -p -m0644 ext/hiera.yaml %{buildroot}%{_sysconfdir}/puppet
mkdir -p %{buildroot}%{_var}/lib/hiera

%check
rspec -Ilib spec

%files
%{_bindir}/hiera
%{ruby_vendorlibdir}/hiera.rb
%{ruby_vendorlibdir}/hiera
%dir %{_var}/lib/hiera
%dir %{_sysconfdir}/puppet
%config(noreplace) %{_sysconfdir}/puppet/hiera.yaml
%doc COPYING README.md LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13228 |21mr|hiera-3.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           hiera
Version:	3.7.0
Release:	1
Summary:        A simple hierarchical database supporting plugin data sources
Group:          Monitoring
License:        ASL 2.0
URL:            http://projects.puppetlabs.com/projects/%{name}/
Source0:        http://downloads.puppetlabs.com/hiera/%{name}-%{version}.tar.gz
# Use /etc/puppet rather than /etc/puppetlabs/puppet
Patch0:         fix-puppetlab-paths.patch
BuildArch:      noarch
BuildRequires:  rubygem(rspec)
BuildRequires:  rubygem(mocha)
BuildRequires:  rubygem(json)
BuildRequires:  ruby-devel

%description
A simple hierarchical database supporting plugin data sources.

%prep
%autosetup -p1

%build
# Nothing to build

%install
mkdir -p %{buildroot}%{ruby_vendorlibdir}
mkdir -p %{buildroot}%{_sysconfdir}/puppet
mkdir -p %{buildroot}%{_bindir}
cp -pr lib/hiera %{buildroot}%{ruby_vendorlibdir}
cp -pr lib/hiera.rb %{buildroot}%{ruby_vendorlibdir}
install -p -m0755 bin/hiera %{buildroot}%{_bindir}
install -p -m0644 ext/hiera.yaml %{buildroot}%{_sysconfdir}/puppet
mkdir -p %{buildroot}%{_var}/lib/hiera

%check
rspec -Ilib spec

%files
%{_bindir}/hiera
%{ruby_vendorlibdir}/hiera.rb
%{ruby_vendorlibdir}/hiera
%dir %{_var}/lib/hiera
%dir %{_sysconfdir}/puppet
%config(noreplace) %{_sysconfdir}/puppet/hiera.yaml
%doc COPYING README.md LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13229 |21mr|highlight-3.28-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		highlight
Summary:	Universal source code to formatted text converter
Version:	3.28
Release:	5
Group:		Development/Other
License:	GPLv3
URL:		http://www.andre-simon.de/
Source0:	http://www.andre-simon.de/zip/%{name}-%{version}.tar.bz2
Patch0:		highlight-3.24-l10n.patch

BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(lua)
BuildRequires:	boost-devel
BuildRequires:	desktop-file-utils

%description
A utility that converts sourcecode to HTML, XHTML, RTF, LaTeX, TeX,
XSL-FO, XML or ANSI escape sequences with syntax highlighting.
It supports several programming and markup languages.
Language descriptions are configurable and support regular expressions.
The utility offers indentation and reformatting capabilities.
It is easily possible to create new language definitions and colour themes.

%files
%doc examples/
%{_bindir}/highlight
%{_datadir}/highlight/
%{_mandir}/man1/highlight.1*
%config(noreplace) %{_sysconfdir}/highlight/
#----------------------------------------------------------

%package gui
Summary:	GUI for the hihghlight source code formatter
Requires:	%{name} = %{EVRD}

%description gui
A Qt-based GUI for the highlight source code formatter source.

%files gui
%doc ChangeLog AUTHORS README* TODO
%{_bindir}/highlight-gui
%{_datadir}/applications/highlight.desktop
%{_datadir}/pixmaps/highlight.xpm
#----------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make
rm -rf src/gui-qt/moc*
%make gui QMAKE="qmake-qt5"


%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps

%make install-gui DESTDIR=%{buildroot}

rm -rf %{buildroot}%{_docdir}/%{name}/

desktop-file-install \
    --dir %{buildroot}%{_datadir}/applications \
   highlight.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13230 |21mr|high-scale-lib-1.1.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          high-scale-lib
Version:       1.1.4
Release:       13
Summary:       A collection of Concurrent and Highly Scalable Utilities
# Might want to address with upstream to adjust because
# http://creativecommons.org/licenses/publicdomain/ 
# is considered "retired" in place for some other public domain license
# opened: https://github.com/stephenc/high-scale-lib/issues/4
# Thanks to Timothy St. Clair tstclair@redhat.com
License:       Public Domain
URL:           https://github.com/stephenc/high-scale-lib/
Source0:       https://github.com/stephenc/high-scale-lib/archive/%{name}-parent-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A collection of Concurrent and Highly Scalable Utilities. These
are intended as direct replacements for the java.util.* or
java.util.concurrent.* collections but with better performance
when many CPUs are using the collection concurrently.

This package contains a Mavenized fork of http://high-scale-lib.sourceforge.net/

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-parent-%{version}

find . -name "*.bat" -delete
%pom_remove_plugin :maven-shade-plugin
%pom_remove_plugin :maven-shade-plugin java_util_concurrent_chm
%pom_remove_plugin :maven-shade-plugin java_util_hashtable

sed -i 's/\r//' README

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13231 |21mr|highway-1.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname hwy %{major}
%define devname %mklibname hwy -d

Summary:	Portable SIMD/vector intrinsics
Name:		highway
Version:	1.0.7
Release:	1
License:	ASL 2.0
Group:		System/Libraries
Url:		https://github.com/google/highway
Source0:	https://github.com/google/highway/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
C++ library that provides portable SIMD/vector intrinsics.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library that provides portable SIMD/vector intrinsics
Group:		System/Libraries

%description -n %{libname}
C++ library that provides portable SIMD/vector intrinsics.

%files -n %{libname}
%{_libdir}/libhwy*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc README.md
%license LICENSE
%{_includedir}/hwy
%{_libdir}/cmake/hwy
%{_libdir}/libhwy*.so
%{_libdir}/pkgconfig/libhwy*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DBUILD_TESTING:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13232 |21mr|HikariCP-2.4.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          HikariCP
# Latest release use hibernate-core >= 5.0.9.Final and javassist >= 3.20.0-GA
Version:       2.4.3
Release:       3
Summary:       JDBC Connection Pool
# Source files without license headers https://github.com/brettwooldridge/HikariCP/issues/665
License:       ASL 2.0
URL:           http://brettwooldridge.github.io/HikariCP/
Source0:       https://github.com/brettwooldridge/HikariCP/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.sun:tools)
BuildRequires: mvn(io.dropwizard.metrics:metrics-core)
BuildRequires: mvn(io.dropwizard.metrics:metrics-healthchecks)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-csv)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.felix:org.apache.felix.framework)
BuildRequires: mvn(org.apache.logging.log4j:log4j-slf4j-impl)
BuildRequires: mvn(org.apache.logging.log4j:log4j-api)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.hibernate:hibernate-core)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(simple-jndi:simple-jndi)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Fast, simple, reliable. HikariCP is a "zero-overhead" production
ready JDBC connection pool.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

# org.ops4j.pax.exam:pax-exam-container-native:4.5.0
# org.ops4j.pax.exam:pax-exam-junit4:4.5.0
# org.ops4j.pax.exam:pax-exam-link-mvn:4.5.0
%pom_remove_dep org.ops4j.pax.exam:
# org.ops4j.pax.url:pax-url-aether:2.4.1
# org.ops4j.pax.url:pax-url-reference:2.4.1
%pom_remove_dep org.ops4j.pax.url:
rm -r src/test/java/com/zaxxer/hikari/osgi

# package org.junit does not exist
%pom_add_dep junit:junit:4.12:test

%mvn_file : %{name}
%mvn_alias : com.zaxxer:%{name}-java6

%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc CHANGES  README.md TODO.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13233 |21mr|hiredis-0.13.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname hiredis %{major}
%define devname %mklibname hiredis -d

Summary:	A minimalistic C client library for Redis
Name:		hiredis
Version:	0.13.3
Release:	2
License:	BSD
Group:		System/Libraries
Url:		https://github.com/antirez/hiredis
Source0:        https://github.com/redis/hiredis/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# https://github.com/redis/hiredis/pull/554
Patch0:         0001-build-do-not-assume-that-INSTALL-is-cp.patch
# Already upstream
# Fix for CVE-2020-7105.
Patch1:         https://github.com/lamby/hiredis/commit/78cec256efa5ca4705af85edbdf137060c9a4b0a.patch
Patch2:         CVE-2021-32765.patch

%description
Hiredis is a minimalistic C client library for the Redis database.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A minimalistic C client library for Redis
Group:		System/Libraries

%description -n %{libname}
Hiredis is a minimalistic C client library for the Redis database.

%files -n %{libname}
%doc COPYING
%{_libdir}/libhiredis.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for hiredis C development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries to develop applications
using a Redis database.

%files -n %{devname}
%doc README.md
%{_includedir}/%{name}
%{_libdir}/pkgconfig/hiredis.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make_build PREFIX="%{_prefix}" LIBRARY_PATH="%{_lib}" \
            DEBUG="%{optflags}" LDFLAGS="%{ldflags}"

%install
%make_install PREFIX="%{_prefix}" LIBRARY_PATH="%{_lib}"
find %{buildroot} -name '*.a' -delete -print
cd %{buildroot}%{_libdir} && ln -sf libhiredis.so.0.13 libhiredis.so.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13234 |21mr|hitori-3.38.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Logic puzzle game for GNOME
Name:		hitori
Version:	3.38.4
Release:	2
# The executable is licensed under GPLv3+, while the user manual is CC-BY-SA.
License:	GPLv3+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/hitori
Source0:	https://download.gnome.org/sources/hitori/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	appstream-util
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
A small application written to allow one to play the Hitori puzzle game,
which is similar in theme to more popular puzzles such as Sudoku.

It has full support for playing the game (i.e. it checks all three rules are
satisfied). It has undo/redo support, can give hints, and allows for cells
to be tagged with one of two different tags, to aid in solving the puzzle.
It has support for anything from 5×5 to 10×10 grids.

%files -f %{name}.lang
%doc AUTHORS MAINTAINERS NEWS README.md COPYING COPYING-DOCS
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Hitori.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.hitori.gschema.xml
%{_datadir}/icons/*/*/*/*
%{_datadir}/metainfo/org.gnome.Hitori.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13235 |21mr|hivex-1.3.23-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# TODO Fix underlinking issue
%define _disable_ld_no_undefined 1

Name:		hivex
Version:	1.3.23
Release:	4
Summary:	Read and write Windows Registry binary hive files
Group:		File tools
License:	LGPLv2
URL:		http://libguestfs.org/
Source0:	http://libguestfs.org/download/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl-IO-stringy
BuildRequires:	perl-libintl-perl
BuildRequires:	perl-Pod-Html
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	pkgconfig(ruby)
BuildRequires:	rubygem-rake
# see also RHBZ#1325022
BuildRequires:	rubygem(json)
BuildRequires:	rubygem(minitest)
BuildRequires:	rubygem(rdoc)
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)

%description
Hive files are the undocumented binary blobs that Windows uses to
store the Windows Registry on disk.  Hivex is a library that can read
and write to these files.

'hivexsh' is a shell you can use to interactively navigate a hive
binary file.

'hivexregedit' lets you export and merge to the textual regedit
format.

'hivexml' can be used to convert a hive file to a more useful XML
format.

In order to get access to the hive files themselves, you can copy them
from a Windows machine.  They are usually found in
systemroot\system32\config.  For virtual machines we recommend
using libguestfs or guestfish to copy out these files.  libguestfs
also provides a useful high-level tool called 'virt-win-reg' (based on
hivex technology) which can be used to query specific registry keys in
an existing Windows VM.

For Perl bindings, see 'perl-hivex'.

For OCaml bindings, see 'ocaml-hivex-devel'.

For Ruby bindings, see 'ruby-hivex'.

%files -f %{name}.lang
%doc README.md LICENSE
%{_bindir}/hivexget
%{_bindir}/hivexml
%{_bindir}/hivexregedit
%{_bindir}/hivexsh
%{_mandir}/man1/hivexget.1*
%{_mandir}/man1/hivexml.1*
%{_mandir}/man1/hivexregedit.1*
%{_mandir}/man1/hivexsh.1*

#----------------------------------------------------------------------
%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared libraries for %{name}.

%files -n %{libname}
%{_libdir}/libhivex.so.%{major}
%{_libdir}/libhivex.so.%{major}.*

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains development tools and libraries
for %{name}.

%files -n %{devname}
%doc LICENSE
%{_libdir}/libhivex.so
%{_mandir}/man3/hivex.3*
%{_includedir}/hivex.h
%{_libdir}/pkgconfig/hivex.pc

#----------------------------------------------------------------------

%package -n ocaml-%{name}
Summary:	OCaml bindings for %{name}
Group:		Development/OCaml

%description -n ocaml-%{name}
ocaml-%{name} contains OCaml bindings for %{name}.

This is for toplevel and scripting access only.  To compile OCaml
programs which use %{name} you will also need ocaml-%{name}-devel.

%files -n ocaml-%{name}
%doc README.md
%{_libdir}/ocaml/hivex
%exclude %{_libdir}/ocaml/hivex/*.a
%exclude %{_libdir}/ocaml/hivex/*.cmxa
%exclude %{_libdir}/ocaml/hivex/*.cmx
%exclude %{_libdir}/ocaml/hivex/*.mli
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner

#----------------------------------------------------------------------

%package -n ocaml-%{name}-devel
Summary:	OCaml bindings for %{name}
Group:		Development/OCaml
Requires:	ocaml-%{name} = %{EVRD}
Requires:	%{devname} = %{EVRD}


%description -n ocaml-%{name}-devel
ocaml-%{name}-devel contains development libraries
required to use the OCaml bindings for %{name}.

%files -n ocaml-%{name}-devel
%{_libdir}/ocaml/hivex/*.a
%{_libdir}/ocaml/hivex/*.cmxa
%{_libdir}/ocaml/hivex/*.cmx
%{_libdir}/ocaml/hivex/*.mli

#----------------------------------------------------------------------

%package -n perl-%{name}
Summary:	Perl bindings for %{name}
Group:		Development/Perl


%description -n perl-%{name}
perl-%{name} contains Perl bindings for %{name}.

%files -n perl-%{name}
%{_mandir}/man3/*
%{perl_vendorarch}/*

#----------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 bindings for %{name}
Group:		Development/Python

%description -n python3-%{name}
python3-%{name} contains Python 3 bindings for %{name}.

%files -n python3-%{name}
%{python3_sitearch}/hivex/
%{python3_sitearch}/*.so

#----------------------------------------------------------------------

%package -n ruby-%{name}
Summary:	Ruby bindings for %{name}
Group:		Development/Ruby
Provides:	ruby(hivex) = %{version}

%description -n ruby-%{name}
ruby-%{name} contains Ruby bindings for %{name}.

%files -n ruby-%{name}
%doc ruby/doc/site/*
%{ruby_vendorlibdir}/hivex.rb
%{ruby_vendorarchdir}/_hivex.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static \
               PYTHON=%{_bindir}/python3
%make_build

%check
%__make check

%install
%make_install INSTALLSITEMAN3DIR=%{_mandir}/man3 INSTALLDIRS=vendor

# we don't want these
find %{buildroot} -name "*.la" -delete

# fix rights
chmod +w %{buildroot}%{perl_vendorarch}/auto/Win/Hivex/Hivex.so

# Remove unwanted Perl files:
find %{buildroot} -name perllocal.pod -delete
find %{buildroot} -name .packlist -delete
find %{buildroot} -name '*.bs' -delete


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13236 |21mr|hornetq-2.4.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty debuginfo
%global debug_package %nil

%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global customnamedversion 2_4_7_Final

# Use this switch to rebuild without narayana
# This is useful to break the hornetq circular dependency
%bcond_with narayana

Name:          hornetq
Version:       2.4.7
Release:       7
Summary:       High performance messaging system
Group:         Development/Java
License:       ASL 2.0
URL:           http://hornetq.jboss.org/
Source0:       https://github.com/hornetq/hornetq/archive/HornetQ_%{customnamedversion}.tar.gz
# https://issues.jboss.org/browse/HORNETQ-1534
# Replace json.org with javax.json
Patch0:        hornetq-2.4.7-javax.json.patch
Patch1:        0001-Fix-building-with-netty-4.1.patch
Patch2:        0002-Don-t-build-hornetq-spring-integration.patch

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: graphviz
BuildRequires: libaio-devel
BuildRequires: libtool
BuildRequires: maven-local
BuildRequires: mvn(com.github.maven-nar:nar-maven-plugin)
BuildRequires: mvn(io.netty:netty-all)
BuildRequires: mvn(java_cup:java_cup)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.json:javax.json-api)
BuildRequires: mvn(javax.servlet:servlet-api)
BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.saxon:saxon)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-install-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:xml-maven-plugin)
BuildRequires: mvn(org.jboss:jboss-transaction-spi)
BuildRequires: mvn(org.jboss.apiviz:apiviz)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.naming:jnpserver)
%if %{without narayana}
BuildRequires: mvn(org.jboss.narayana.jta:jta)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-jms)
%endif
BuildRequires: mvn(org.jboss.resteasy:resteasy-atom-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jackson-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxb-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs)
BuildRequires: mvn(org.jboss.resteasy:tjws)
BuildRequires: mvn(org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec)
BuildRequires: mvn(org.jgroups:jgroups)
BuildRequires: mvn(io.netty:netty-buffer)

%description
HornetQ is an open source project to build a multi-protocol, embeddable,
very high performance, clustered, asynchronous messaging system.

%package commons
Summary:       HornetQ Commons
# Public Domain: ./hornetq-commons/src/main/java/org/hornetq/utils/Base64.java
License:       ASL 2.0 and Public Domain
Provides:      bundled(java-base64) = 2.2.2
Obsoletes:     %{name} < 2.4.2
BuildArch:     noarch

%description commons
HornetQ Commons Classes.

%package core-client
Summary:       HornetQ Core Client
License:       ASL 2.0 and LGPLv2+
# LGPLv2: 
#./hornetq-core-client/src/main/java/org/hornetq/core/filter/impl/Operator.java
#./hornetq-core-client/src/main/java/org/hornetq/core/filter/impl/RegExp.java
#./hornetq-core-client/src/main/java/org/hornetq/core/filter/impl/Identifier.java
BuildArch:     noarch

%description core-client
HornetQ Core Client.

%package jms-client
Summary:       HornetQ JMS Client
BuildArch:     noarch

%description jms-client
HornetQ JMS Client Implementation.

%package jms-server
Summary:       HornetQ JMS Server
BuildArch:     noarch

%description jms-server
HornetQ JMS Server Implementation.

%package journal
Summary:       HornetQ Journal
BuildArch:     noarch

%description journal
HornetQ Journal.

%package native
Summary:       HornetQ Journal

%description native
HornetQ Journal.

%package pom
Summary:       HornetQ Parent POM
BuildArch:     noarch

%description pom
HornetQ Parent POM.

%package protocols
Summary:       HornetQ Protocols Parent POM
BuildArch:     noarch

%description protocols
HornetQ Protocols Parent POM.

%package ra
Summary:       HornetQ RAR
BuildArch:     noarch

%description ra
HornetQ RAR Implementation.

%package rest
Summary:       HornetQ REST
BuildArch:     noarch

%description rest
HornetQ REST Interface Implementation.

%package server
Summary:       HornetQ Server
License:       ASL 2.0 and LGPLv2+
# LGPLv2: ./hornetq-server/src/main/java/org/hornetq/core/messagecounter/MessageCounter.java
BuildArch:     noarch

%description server
HornetQ Server Implementation.

#%package spring-integration
#Summary:       HornetQ Spring Integration
#BuildArch:     noarch

#%description spring-integration
#HornetQ Spring Integration.

%package stomp-protocol
Summary:       HornetQ STOMP Protocol
BuildArch:     noarch

%description stomp-protocol
HornetQ STOMP Protocol Implementation.

%package tools
Summary:       HornetQ Tools
BuildArch:     noarch

%description tools
HornetQ Tools.

%package javadoc
Summary:       Javadoc for %{name}
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n hornetq-HornetQ_%{customnamedversion}
# Remove bundled .so files
find -name "*.so" -print -delete
find -name "*.jar" -print -delete

%autopatch -p1

rm -rf hornetq-core-client/src/main/java/org/hornetq/utils/json

%pom_change_dep -r :geronimo-json_1.0_spec javax.json:javax.json-api:1.0 hornetq-core-client hornetq-jms-server tests/integration-tests

%pom_disable_module examples
%pom_disable_module hornetq-bootstrap
%pom_disable_module hornetq-service-sar
%pom_disable_module integration/hornetq-aerogear-integration
%pom_disable_module integration/hornetq-jboss-as-integration
%pom_disable_module integration/hornetq-twitter-integration
%pom_disable_module tests

# Incompatible version of qpid-proton-java
%pom_disable_module hornetq-amqp-protocol hornetq-protocols

%pom_remove_dep -r "org.jboss.microcontainer:jboss-kernel"

%if %{with narayana}
%pom_disable_module hornetq-jms-server
%pom_disable_module hornetq-ra
%pom_disable_module hornetq-rest
%pom_disable_module hornetq-tools
%pom_disable_module integration/hornetq-spring-integration
%endif

%pom_change_dep -r org.jboss.jbossts.jts:jbossjts-jacorb org.jboss.narayana.jta:jta
%pom_change_dep -r org.jboss.jbossts.jts:jbossjts-jacorb org.jboss.narayana.jta:jta hornetq-jms-server

%pom_remove_dep -r org.jboss.javaee:jboss-ejb-api
%pom_remove_dep -r org.jboss.javaee:jboss-jaspi-api
%pom_change_dep -r org.jboss.javaee:jboss-jca-api org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec
%pom_change_dep -r org.jboss.javaee:jboss-jca-api org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec hornetq-ra

%pom_remove_plugin -r :license-maven-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-help-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :findbugs-maven-plugin

cp -p distribution/hornetq/src/main/resources/licenses/LICENSE.txt .

# Workaround for building native bits
# Currently the build script uses the .so in the hornetq-nativebin/ directory
# but we need to rebuild them. The issue is that the mvn build process does not
# use the new .so files we've built. Here is a simple workaround.
%pom_xpath_inject "pom:project/pom:profiles" "
<profile>
  <id>native</id>
  <modules>
    <module>hornetq-commons</module>
    <module>hornetq-native</module>
  </modules>
</profile>"

rm -r **/src/test/* tests/*/src/test/*

# [ERROR] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique duplicate declaration of version
%pom_remove_dep org.jboss.logmanager:jboss-logmanager hornetq-server
%pom_add_dep org.jboss.logmanager:jboss-logmanager:1.2.2.GA:test hornetq-server

%build

# Let's build the .so files
%mvn_build -i -f -- -Pnative,native-build
pushd hornetq-native
# Copy them to hornetq-native/bin/ dir
find -name "*.so" -exec cp {} bin/libHornetQAIO.so \;
find -name "*.so" -exec cp {} bin/libHornetQAIO%{__isa_bits}.so \;
popd

# Tests are skipped because required modules are disabled
%mvn_build -sf -- -Pmaven-release

%install
%mvn_install

# Install native stuff
install -d -m 755 %{buildroot}/%{_libdir}
cp -L hornetq-native/bin/libHornetQAIO.so %{buildroot}/%{_libdir}/libHornetQAIO.so

%files commons -f .mfiles-hornetq-commons
%doc README.md
%license LICENSE.txt NOTICE

%files core-client -f .mfiles-hornetq-core-client
%files jms-client -f .mfiles-hornetq-jms-client
%files journal -f .mfiles-hornetq-journal

%post -n hornetq-native -p /sbin/ldconfig
%postun -n hornetq-native -p /sbin/ldconfig

%files native -f .mfiles-hornetq-native
%{_libdir}/libHornetQAIO.so
%doc hornetq-native/README

%files pom -f .mfiles-hornetq-pom
%license LICENSE.txt NOTICE

%files protocols -f .mfiles-hornetq-protocols
%license LICENSE.txt NOTICE

%files server -f .mfiles-hornetq-server
%files stomp-protocol -f .mfiles-hornetq-stomp-protocol

%if %{without narayana}
%files jms-server -f .mfiles-hornetq-jms-server
%files ra -f .mfiles-hornetq-ra
%files rest -f .mfiles-hornetq-rest
#%files spring-integration -f .mfiles-hornetq-spring-integration
%files tools -f .mfiles-hornetq-tools
%endif

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13237 |21mr|hostapd-2.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Optional user space component for Host AP driver
Name:		hostapd
Version:	2.9
Release:	3
License:	GPLv2
Group:		System/Servers
Url:		http://hostap.epitest.fi/hostapd/
Source0:	https://w1.fi/releases/%{name}-%{version}.tar.gz
Source3:	%{name}.service
Patch0:		%{name}-config.patch
Patch1:		hostapd-2.5-mga-defconfig.patch
# CVE-2019-16275
Patch2:		0001-AP-Silently-ignore-management-frame-from-unexpected-.patch
# upstream security patches 2022-1 (CVE-2022-23303 CVE-2022-23304 ...)
Patch3:		0001-crypto-Add-more-bignum-EC-helper-functions.patch
Patch4:		0002-dragonfly-Add-sqrt-helper-function.patch
Patch5:		0003-SAE-Derive-the-y-coordinate-for-PWE-with-own-impleme.patch
Patch6:		0004-EAP-pwd-Derive-the-y-coordinate-for-PWE-with-own-imp.patch
Patch7:		CVE-2021-30004.patch

BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(openssl)
Requires(post,preun):	rpm-helper
Requires(post,preun,postun):	systemd

%description
Hostapd is an optional user space component for Host AP driver. It adds
more features to the basic IEEE 802.11 management included in the kernel
driver: using external RADIUS authentication server for MAC address
based access control, IEEE 802.1X Authenticator and dynamic WEP keying,
RADIUS accounting.

%files
%doc %{name}/ChangeLog %{name}/README
%{_sbindir}/%{name}
%{_sbindir}/%{name}_cli
%config(noreplace) %{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.accept
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.deny

#-------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
pushd %{name}
cat defconfig | sed \
	-e '/^#CONFIG_DRIVER_NONE=y/s/^#//' \
	-e '/^#CONFIG_IEEE80211R=y/s/^#//' \
	-e '/^#CONFIG_IEEE80211AC=y/s/^#//' \
	-e '/^#CONFIG_FULL_DYNAMIC_VLAN=y/s/^#//' \
	-e '/^#CONFIG_LIBNL32=y/s/^#//' \
	> .config
echo "CFLAGS += -I%{_includedir}/libnl3" >> .config
echo "LIBS += -L%{_libdir}" >> .config
echo "CC = %{__cc}" >> .config
sed -i -e 's/CFLAGS =.*/CFLAGS = -MMD %{optflags}/' Makefile
%make CC="%{__cc}" #CFLAGS="-MMD %{optflags}"
popd

%install
pushd %{name}
install -d -m 755 %{buildroot}%{_sbindir}
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -d -m 755 %{buildroot}/%{_unitdir}
install -m 755 %{name}        %{buildroot}%{_sbindir}
install -m 755 %{name}_cli    %{buildroot}%{_sbindir}
install -m 600 %{name}.conf   %{buildroot}%{_sysconfdir}/%{name}
install -m 644 %{name}.accept %{buildroot}%{_sysconfdir}/%{name}
install -m 644 %{name}.deny   %{buildroot}%{_sysconfdir}/%{name}
install -pm 644 %{SOURCE3}   %{buildroot}/%{_unitdir}/%{name}.service
popd

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13238 |21mr|hostap-utils-0.4.7-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility programs for Host AP driver for Intersil Prism2/2.5/3
Name:		hostap-utils
Version:	0.4.7
Release:	16
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://hostap.epitest.fi/
Source0:	http://hostap.epitest.fi/releases/hostap-utils-%{version}.tar.gz
Source1:	hostap_cs.conf
Requires:	wireless-tools
Provides:	hostap = %{EVRD}

%description
This is a Linux driver for wireless LAN cards based on Intersil's Prism2/2.5/3
chipset. The driver supports a so called Host AP mode, i.e., it takes care of
IEEE 802.11 management functions in the host computer and acts as an access
point. This does not require any special firmware for the wireless LAN card.
In addition to this, it has support for normal station operations in BSS and
possible also in IBSS.

This packages contains binary utilities for use with hostap.

%files
%doc COPYING ChangeLog README
%config(noreplace) %{_sysconfdir}/pcmcia/hostap_cs.conf
%{_sbindir}/hostap_crypt_conf
%{_sbindir}/hostap_diag
%{_sbindir}/hostap_fw_load
%{_sbindir}/hostap_io_debug
%{_sbindir}/hostap_rid
%{_sbindir}/prism2_param
%{_sbindir}/prism2_srec
%{_sbindir}/split_combined_hex

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make CC="%{__cc}" CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d -m 755 %{buildroot}%{_sbindir}
install -d -m 755 %{buildroot}%{_sysconfdir}/pcmcia
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pcmcia
install -m 755 hostap_crypt_conf %{buildroot}%{_sbindir}
install -m 755 hostap_diag %{buildroot}%{_sbindir}
install -m 755 hostap_fw_load %{buildroot}%{_sbindir}
install -m 755 hostap_io_debug %{buildroot}%{_sbindir}
install -m 755 hostap_rid %{buildroot}%{_sbindir}
install -m 755 prism2_param %{buildroot}%{_sbindir}
install -m 755 prism2_srec %{buildroot}%{_sbindir}
install -m 755 split_combined_hex %{buildroot}%{_sbindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13239 |21mr|hostname-3.23-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to set/show the host name or domain name
Name:		hostname
Version:	3.23
Release:	5
License:	GPLv2+
Group:		System/Configuration/Networking
URL:		http://packages.qa.debian.org/h/hostname.html
Source0:	http://ftp.de.debian.org/debian/pool/main/h/hostname/hostname_%{version}.tar.gz
Source1:    nis-domainname.service
Source2:    nis-domainname
# Initial changes
Patch0:		hostname-rh.patch
Patch1:		fix_install.patch
BuildRequires:	pkgconfig(libtirpc)
# net-tools 1.60 provided its own hostname
Conflicts:	net-tools < 2.0

%description
This package provides commands which can be used to display the system's
DNS name, and to display or set its hostname or NIS domain name.

%prep
%autosetup -p1 -n %{name}

%build
%serverbuild_hardened
%set_build_flags
%make_build

%install
%make_install
mkdir -p %{buildroot}%{_bindir}
for i in dnsdomainname domainname hostname nisdomainname ypdomainname; do
    ln -sf /bin/$i %{buildroot}%{_bindir}/$i
done

mkdir -p %{buildroot}%{_sbindir}
install -m0755 %{SOURCE2} %{buildroot}%{_sbindir}/nis-domainname
mkdir -p %{buildroot}%{_unitdir}
install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/nis-domainname.service
sed -i -e 's,@SBINDIR@,%{_sbindir},g' %{buildroot}%{_unitdir}/nis-domainname.service

%files
%license COPYRIGHT
/bin/*
%{_bindir}/*
%{_sbindir}/nis-domainname
%{_unitdir}/nis-domainname.service
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13240 |21mr|howl-logger-1.0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          howl-logger
Version:       1.0.2
Release:       12
Summary:       High-speed ObjectWeb Logger
License:       BSD
Group:         Development/Java
URL:           http://forge.ow2.org/projects/howl/
# svn export svn://svn.forge.objectweb.org/svnroot/howl/tags/HOWL_1_0_2/howl/logger/ howl-logger-1.0.2
# tar czf howl-logger-1.0.2-src-svn.tar.gz howl-logger-1.0.2
Source0:       %{name}-%{version}-src-svn.tar.gz

# test deps
BuildRequires: mvn(junit:junit)

BuildRequires: maven-local

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HOWL is a logger implementation providing features
required by the ObjectWeb JOTM project, with a public
API that is generally usable by any Transaction Manager.
HOWL uses unformatted binary logs to maximize performance
and specifies a journalization API with methods necessary
to support JOTM recovery operations.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
rm -r .externalToolBuilders .settings
%pom_xpath_set "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" 1.5
%pom_xpath_set "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" 1.5
%pom_xpath_set "pom:project/pom:version" %{version}

# these test fails
# java.lang.OutOfMemoryError: unable to create new native thread: 785 threads created
rm -r src/test/org/objectweb/howl/log/BigLogTest.java \
 src/test/org/objectweb/howl/log/ThroughputTest.java \
 src/test/org/objectweb/howl/log/LogTest.java
sed -i "s|junit.textui.TestRunner.run(LogTest.class);|//junit.textui.TestRunner.run(LogTest.class);|" \
  src/test/org/objectweb/howl/log/allTest.java \
  src/test/org/objectweb/howl/log/ExceptionTest.java

%mvn_file :howl %{name} howl
%mvn_alias :howl "howl:%{name}"

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13241 |21mr|how-to-use-pvs-studio-free-2.0-0.git20687.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 20687aa5a3e3ab7e48e796f25cbb25ade52633cc
%define commit_short %(echo %{commit} | head -c 5)

Name: how-to-use-pvs-studio-free
Summary: Tool to insert ads of PVS Studio into source code
License: Apache 2.0
Group: Development/C
Version: 2.0
Release: 0.git%{commit_short}.1
Url: https://github.com/viva64/how-to-use-pvs-studio-free
Source0: https://github.com/viva64/how-to-use-pvs-studio-free/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires: cmake
%if %{mdvver} < 201910
BuildRequires: stdc++-gcc10-devel
BuildRequires: clang
%endif

%description
%{summary}

%files
%{_bindir}/%{name}
#-----------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# https://github.com/viva64/how-to-use-pvs-studio-free/issues/24
# Avoid static linkage
# But on gcc < 9:
# main.cpp:166: undefined reference to `std::filesystem::__cxx11::recursive_directory_iterator::operator++()'
sed -i -e \
	's, -static,,g' \
%if %{mdvver} >= 201910
	-e '/stdc++fs/d' \
%else
	-e 's,stdc++fs,stdc++-gcc10,g' \
%endif
	CMakeLists.txt

%build
%setup_compile_flags
%if %{mdvver} < 201910
export CXXFLAGS="$CXXFLAGS -nostdinc++ -Wno-unused-command-line-argument -I%{_includedir}/libstdc++-gcc10 -I%{_includedir}/libstdc++-gcc10/%{_host}"
export CC=clang
export CXX=clang++
export CPP=clang-cpp
%endif
%cmake
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m0755 build/%{name} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13242 |21mr|hpack-1.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          hpack
Version:       1.0.2
Release:       7
Summary:       Header Compression for HTTP/2
License:       ASL 2.0
URL:           https://github.com/twitter/hpack
Source0:       https://github.com/twitter/hpack/archive/%{name}-parent-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.gson:gson)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.mockito:mockito-core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This library provides support for compression of header lists
into header blocks.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package parent
Summary:       HPACK Parent POM

%description parent
HPACK Parent POM.

%prep
%setup -q -n %{name}-%{name}-parent-%{version}
# Cleanup
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

%pom_remove_plugin -r :cobertura-maven-plugin
%pom_remove_plugin -r :coveralls-maven-plugin

%pom_disable_module "microbench"

%mvn_file :%{name} %{name}

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

%files parent -f .mfiles-%{name}-parent
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13243 |21mr|hplip-3.23.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Define if you want to build the sane backend (default)
%define sane_backend 1
%{?_with_sane: %global sane_backend 1}
%{?_without_sane: %global sane_backend 0}

%define major 0
%define libhpip %mklibname hpip %{major}
%define libhpipp %mklibname hpipp %{major}
%define libhpmud %mklibname hpmud %{major}
%define libhpdiscovery %mklibname hpdiscovery %{major}
%define sanemaj 1
%define libsane %mklibname sane-hpaio %{sanemaj}
%define devname %mklibname hpip -d

# Suppress automatically generated Requires for devel packages
%global __requires_exclude devel\(.*\)

# help to find headers of python 3.8 (from ALT Linux by cas@)
%global optflags %optflags %(pkg-config --cflags-only-I python3)

Summary:	HP printer/all-in-one driver infrastructure
Name:		hplip
Version:	3.23.8
Release:	7
License:	GPLv2+ and MIT
Group:		System/Printing
Url:		https://developers.hp.com/hp-linux-imaging-and-printing
Source0:	http://downloads.sourceforge.net/sourceforge/hplip/hplip-%{version}.tar.gz
Source1:	hpcups-update-ppds.sh
Source2:	copy-deviceids.py
# http://www.iconfinder.com/icondetails/6393/128/fax_hardware_icon
Source3:	hp-sendfax.png
Source4:	hplip.rpmlintrc
# http://hplipopensource.com/node/367
Source5:	http://hplipopensource.com/hplip-web/smartinstall/SmartInstallDisable-Tool.run
Source6:	README.urpmi
Source7:	hplip-tmpfiles.conf
Source8:	%{name}.appdata.xml
Source9:	http://www.openprinting.org/download/printdriver/auxfiles/HP/plugins/hplip-%{version}-plugin.run

# Fedora patches
Patch1: hplip-pstotiff-is-rubbish.patch
Patch2: hplip-strstr-const.patch
Patch3: hplip-ui-optional.patch
Patch4: hplip-no-asm.patch
Patch5: hplip-deviceIDs-drv.patch
Patch7: hplip-retry-open.patch
Patch8: hplip-snmp-quirks.patch
Patch9: hplip-hpijs-marker-supply.patch
Patch10: hplip-clear-old-state-reasons.patch
Patch11: hplip-hpcups-sigpipe.patch
Patch12: hplip-logdir.patch
Patch13: hplip-bad-low-ink-warning.patch
Patch14: hplip-deviceIDs-ppd.patch
Patch15: hplip-ppd-ImageableArea.patch
Patch16: hplip-scan-tmp.patch
Patch17: hplip-log-stderr.patch
Patch18: hplip-avahi-parsing.patch
Patch20: hplip-dj990c-margin.patch
Patch21: hplip-strncpy.patch
Patch22: hplip-no-write-bytecode.patch
Patch23: hplip-silence-ioerror.patch
Patch24: hplip-3165-sourceoption.patch
Patch25: hplip-noernie.patch
Patch27: hplip-check-cups.patch
Patch30: hplip-typo.patch
# python3 - recent HP release removed encoding/decoding to utf-8 in fax/pmlfax.py -
# that results in text string going into translate function in base/utils.py, which
# expects binary string because of parameters. Remove this patch if base/utils.py
# code gets fixed.
Patch31: hplip-use-binary-str.patch
# m278-m281 doesn't work correctly again
Patch32: hplip-error-print.patch
Patch33: hplip-hpfax-importerror-print.patch
Patch34: hplip-wifisetup.patch
# pgp.mit.edu keyserver got bad connection, so we need to have pool of keyservers
# to choose (Bz#1641100, launchpad#1799212)
Patch35: hplip-keyserver.patch
# QMessagebox call was copy-pasted from Qt4 version, but Qt5 has different arguments,
# This patch solves most of them
Patch36: 0026-Call-QMessageBox-constructors-of-PyQT5-with-the-corr.patch
# HP upstream introduced new binary blob, which is not open-source, so it violates
# FPG by two ways - shipping binary blob and non open source code - so it needs to be removed.
# Patch is taken from Debian and rediffed
Patch37: hplip-force-disable-imageprocessor.patch 
# In hplip-3.18.10 some parts of UI code was commented out, which leaved hp-toolbox
# unusable (crashed on the start). The patch removes usages of variables, which were
# commented out.
# The patch is taken from Debian.
Patch38: 0027-Fixed-incomplete-removal-of-hp-toolbox-features-whic.patch
# hp-setup crashed when user wanted to define a path to PPD file. It was due
# byte + string variables incompatibility and it is fixed by decoding the 
# bytes-like variable
# part of https://bugzilla.redhat.com/show_bug.cgi?id=1666076
# reported upstream https://bugs.launchpad.net/hplip/+bug/1814272
Patch39: hplip-add-ppd-crash.patch
# external scripts, which are downloaded and run by hp-plugin, try to create links
# in non-existing dirs. These scripts ignore errors, so plugin is installed fine
# but then internal hp-plugin can check for plugin state, where links are checked too.
# It results in corrupted plugin state, which breaks printer installation by GUI hp-setup.
# Temporary workaround is to ignore these bad links and real fix should come from HP,
# because their external scripts try to create links in non-existing dirs.
# Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1671513
# Reported upstream: https://bugs.launchpad.net/hplip/+bug/1814574
Patch40: hplip-missing-links.patch
# change in 3.18.9 in scanext.c caused broken scanning for HP LaserJet 3052. Since I cannot figure
# it out what author wanted by the change (it sets option number 9 to true, but different handles
# have different options, so I'm not sure what author wanted to set).
# Remove the change for now, it works for user and me.
Patch41: hplip-hplj-3052.patch
# hpmud parses mdns txt record badly
# upstream tickets: https://bugs.launchpad.net/hplip/+bug/1797501
#                   https://bugs.launchpad.net/hplip/+bug/1817214
#                   https://bugs.launchpad.net/hplip/+bug/1821932
# with no response from upstream
# Patch taken from Debian https://lists.debian.org/debian-printing/2018/11/msg00049.html
Patch42: hplip-hpmud-string-parse.patch
# Part of https://bugzilla.redhat.com/show_bug.cgi?id=1694663
# It was found out that specific device needs plugin for scanning
# Reported upstream as https://bugs.launchpad.net/hplip/+bug/1822762
Patch43: hplip-m278-m281-needs-plugin.patch
# hpcups crashes when a printer needs a plugin and does not have one installed
# it crashes in destructor, because pointer is not initialized
# bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1695716
# reported upstream 
Patch44: hplip-hpcups-crash.patch
# Fixing the issues found by coverity scan
# reported upstream https://bugs.launchpad.net/hplip/+bug/1808145
Patch45: hplip-covscan.patch
# Segfault during logging to syslog because argument are switched
# bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1727162
# upstream https://bugs.launchpad.net/hplip/+bug/1837846
Patch46: hplip-logging-segfault.patch
# Traceback in hp-systray when there are no resource
# wanted to report upstream, but launchpad ends with timeout error
# bugzilla https://bugzilla.redhat.com/show_bug.cgi?id=1738321
Patch47: hplip-systray-blockerror.patch
# several printers were removed in 3.19.1, but actually someone still uses them
# reported upstream https://bugs.launchpad.net/hplip/+bug/1843592
# bugzillas 1742949, 1740132, 1739855
Patch48: hplip-missing-drivers.patch
# laserjet 2200 and other devices have different device id than HP expects...
# https://bugzilla.redhat.com/show_bug.cgi?id=1772698
# reported upstream https://bugs.launchpad.net/hplip/+bug/1853002
Patch49: hplip-model-mismatch.patch
# sixext has problems with python3 strings (bz#1573430)
# reported https://bugs.launchpad.net/bugs/1480152
Patch50: hplip-unicodeerror.patch
# error with new gcc, already reported in upstream as
# https://bugs.launchpad.net/hplip/+bug/1836735
Patch51: hplip-fix-Wreturn-type-warning.patch
# upstream check for python clears OS build system
# CFLAGS
# https://bugs.launchpad.net/hplip/+bug/1879445
Patch52: hplip-configure-python.patch
# taken from hplip upstream report - toolbox uses deprecated method
# setMargin(), which generates an exception, resulting in a infinite loop
# of request on cupsd
# https://bugs.launchpad.net/hplip/+bug/1880275
Patch53: hplip-dialog-infinite-loop.patch
# searching algorithm did not expect '-' in model name and thought it is a new PDL
# it resulted in incorrect PPD match, so e.g. hpijs driver was used instead of hpcups
# bug: https://bugzilla.redhat.com/show_bug.cgi?id=1590014
# reported upstream: https://bugs.launchpad.net/hplip/+bug/1881587
Patch54: hplip-find-driver.patch
# hp-clean didn't work for Photosmart C1410 because it was comparing
# string length with buffer size for string object, which is different,
# causing cleaning to fail - the fix is to make the object bytes-like,
# then buffer size is the same as the length.
# Thanks to Stefan Assmann we were able to fix level 1 cleaning
# for the device, but there can be similar issues with other devices
# bug https://bugzilla.redhat.com/show_bug.cgi?id=1833308
# reported upstream https://bugs.launchpad.net/hplip/+bug/1882193
Patch55: hplip-clean-ldl.patch
# 3.20.6 turned off requirement for most devices which needed it
# - it will cause malfunction of printing and scanning for them
# https://bugs.launchpad.net/hplip/+bug/1883898
Patch56: hplip-revert-plugins.patch
# force disable imageProcessor patch, its rediff of 

# Don't force hp-systray startup (drop -x option from Exec)
# Don't hardcode full path to icon (allow icon themes)
# Add Russian translation to main application desktop file
Patch101:	hplip-3.20.9-desktop-files-fixes.patch
# (Anssi) Apply udev rules even on ACTION=="change", otherwise the permissions
# do not get applied in %%post on a new installation:
# See https://bugs.mageia.org/show_bug.cgi?id=10072#c34 for discussion
# Move udev rules to /lib/udev/rules.d (bug #748208)
Patch102:	hplip-3.20.9-udev-rules.patch
Patch103:	hplip-3.16.11-python3-fixes.patch

# Debian/Ubuntu patches
# taken from http://patch-tracker.debian.org/package/hplip/3.11.7-1
Patch201:	01_rss.dpatch
Patch202:	14_charsign_fixes.dpatch
Patch203:	85_rebuild_python_ui.dpatch
#Patch204:	hplip-photosmart_b9100_support.patch
Patch205:	pjl-duplex-binding.dpatch
Patch206:	hp-check-groups.dpatch
Patch207:	add-lidil-two-cartridge-modes.dpatch
Patch210:	hp-systray-make-menu-title-visible-in-sni-qt-indicator.dpatch
Patch211:	hp-systray-make-menu-appear-in-sni-qt-indicator-with-kde.dpatch
Patch212:	hpaio-option-duplex.diff

Patch301:	hplip-3.16.8-cups-2.2.patch
Patch302:	hplip-CVE-2013-4325.patch
Patch303:	hplip-3.20.9-hpipp_linkage.patch
Patch304:	hpps-3.20.9-fix-syntax.patch
Patch305:	0005-hp_ipp.c-Add-printf-format-to-snprintf-calls.patch

BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	polkit
BuildRequires:	python3-sip
BuildRequires:	net-snmp-devel
BuildRequires:	cups-devel
BuildRequires:	cups-common
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-core)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libv4l1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(udev)
# Make sure we get postscriptdriver tags.
BuildRequires:	python3-cups
%if %{sane_backend}
BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	xsane
%endif
Requires(post):	systemd
Requires:	cups
# For dynamic ppd generation.
Requires:	foomatic-filters
Requires:	hplip-model-data
Requires:	hplip-hpijs
Requires:	hplip-hpijs-ppds
Requires:	python3-sip
# Needed for communicating with ethernet-connected printers
Requires:	net-snmp-mibs
# Needed to generate fax cover pages
Requires:	python3-reportlab
# Needed since 2.8.4 for IPC
Requires:	python3-dbus
Requires:	polkit-agent
Requires:	usermode-consoleonly
Requires:	python3-gobject3
# Required by hp-scan for command line scanning
Requires:	python3-pillow
Requires:	sane-backends-hpaio
# Needed to avoid misleading errors about network connectivity (RH bug #705843)
Requires:	wget
# (tpg) hp-check needs this
Requires:	acl
# hplip tools use internal symbols from libhplip that can change among versions
Requires:	%{libhpip} = %{version}
Requires:	%{libhpipp} = %{version}
# Some HP ppds are in foomatic-db and foomatic-db-hpijs (mdv bug #47415)
Recommends:	foomatic-db-hpijs
Requires:	gnupg
Recommends:	(hplip-gui if task-x11)

# foomatic-db-hpijs drivers are provided by hp and by this package now
# NOTE: remove the foomatic-db-hpijs deps sometime in 2010-10-?? ?
Provides:	foomatic-db-hpijs = %{version}-%{release}

%description
This is the HP driver package to supply Linux support for most
Hewlett-Packard DeskJet, LaserJet, PSC, OfficeJet, and PhotoSmart
printers and all-in-one peripherals (also known as Multi-Function
Peripherals or MFPs), which can print, scan, copy, fax, and/or access
flash memory cards.

It is work in progress, but printing, scanning, memory card access,
ink/toner/battery/consumable level checking, and inkjet printer
maintenance are supported on most models, when either connected to the
USB or LAN (built-in interfaces or selected HP JetDirect models) on a
Linux workstation with CUPS printing system.

For status and consumable checking and also for inkjet maintenance
there is the graphical tool "hp-toolbox" available (Menu:
"System"/"Monitoring"/"HP Printer Toolbox").

#-----------------------------------------------------------------------------------
%package -n %{libhpdiscovery}
Summary:	Dynamic hpdiscovery library
Group:		System/Printing

%description -n %{libhpdiscovery}
Dynamic hpdiscovery library

#-----------------------------------------------------------------------------------

%package -n %{libhpip}
Summary:	Dynamic library for the "hplip" HP printer/all-in-one drivers
Group:		System/Printing

%description -n %{libhpip}
Library needed for the "hplip" HP printer/all-in-one drivers

#-----------------------------------------------------------------------------------

%package -n %{libhpipp}
Summary:	Dynamic library for the "hplip" HP printer/all-in-one drivers
Group:		System/Printing

%description -n %{libhpipp}
Library needed for the "hplip" HP printer/all-in-one drivers

#-----------------------------------------------------------------------------------

%package -n %{libhpmud}
Summary:	Dynamic library for the "hplip" HP printer/all-in-one drivers
Group:		System/Printing
Conflicts:	%{_lib}hpip0 < 3.13.2-4

%description -n %{libhpmud}
Library needed for the "hplip" HP printer/all-in-one drivers

#-----------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and links to compile against the "%{libhpip}" ("hplip") library
Group:		Development/C
Requires:	%{libhpip} >= %{version}-%{release}
Requires:	%{libhpipp} >= %{version}-%{release}
Requires:	%{libhpmud} >= %{version}-%{release}
Requires:	%{libsane} >= %{version}-%{release}
Provides:	libhpip-devel = %{version}-%{release}
Obsoletes:	%{_lib}hpip0-devel < 3.13.2-4

%description -n %{devname}
This package contains all files which one needs to compile programs using
the "%{libhpip}" library.

#-----------------------------------------------------------------------------------

%if %{sane_backend}
%package -n %{libsane}
Summary:	SANE driver for scanners in HP's multi-function devices (from HPLIP)
Group:		System/Printing
Provides:	sane-backends-hpaio = %{version}-%{release}
# (cjw) for system-config-printer
Provides:	libsane-hpaio = %{version}-%{release}

%description -n %{libsane}
SANE driver for scanners in HP's multi-function devices (from HPLIP)
%endif

#-----------------------------------------------------------------------------------

%package model-data
Summary:	Data file listing the HP printer models supported by HPLIP
Group:		System/Printing
Requires(post):	udev

%description model-data
HPLIP supports most current HP printers and multifunction devices, but
there are some older models not supported. This package contains the
list of supported models. Printerdrake installs it automatically to
determine whether HPLIP has to be installed or not.

#-----------------------------------------------------------------------------------

%package gui
Summary:	HPLIP graphical tools
Group:		System/Printing
Requires:	%{name} = %{version}-%{release}
Requires:	python3-distro
Requires:	python3-qt5-core
Requires:	python3-qt5-dbus
Requires:	python3-qt5-gui
Requires:	python3-qt5-widgets
Requires:	usermode

%description gui
HPLIP graphical tools.

#-----------------------------------------------------------------------------------

%package hpijs
Summary:	HPs printer driver IJS plug-in for GhostScript
Group:		System/Printing
Requires:	ghostscript
Provides:	hpijs = %{EVRD}

%description hpijs
HPs printer driver IJS plug-in for GhostScript. This driver gives full
printing support for nearly all non-PostScript inkjet and laser
printers made by HP.

#-----------------------------------------------------------------------------------

%package hpijs-ppds
Summary:	PPD files for the HPIJS printer driver
Group:		System/Printing
Requires:	foomatic-filters
Requires:	hplip-hpijs

%description hpijs-ppds
PPD files to use the HPIJS printer driver with foomatic-rip and a
printer spooler like CUPS, LPRng, PDQ, ...

#-----------------------------------------------------------------------------------

%package doc
Summary:	Documentation for HPLIP
Group:		System/Printing

%description doc
This package contains documentation for the HPLIP driver.

This is the HP driver package to supply Linux support for most
Hewlett-Packard DeskJet, LaserJet, PSC, OfficeJet, and PhotoSmart
printers and all-in-one peripherals (also known as Multi-Function
Peripherals or MFPs), which can print, scan, copy, fax, and/or access
flash memory cards.

#-----------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

# The pstotiff filter is rubbish so replace it (launchpad #528394).
%patch1 -p1 -b .pstotiff-is-rubbish

# Fix compilation.
%patch2 -p1 -b .strstr-const

# Make utils.checkPyQtImport() look for the gui sub-package (bug #243273).
%patch3 -p1 -b .ui-optional

# Make sure to avoid handwritten asm.
%patch4 -p1 -b .no-asm

# Corrected several IEEE 1284 Device IDs using foomatic data.
# Color LaserJet 2500 series (bug #659040)
# LaserJet 4100 Series/2100 Series (bug #659039)
%patch5 -p1 -b .deviceIDs-drv
chmod +x %{SOURCE2}
mv prnt/drv/hpijs.drv.in{,.deviceIDs-drv-hpijs}
%{SOURCE2} prnt/drv/hpcups.drv.in \
           prnt/drv/hpijs.drv.in.deviceIDs-drv-hpijs \
           > prnt/drv/hpijs.drv.in

# Retry when connecting to device fails (bug #532112).
%patch7 -p1 -b .retry-open

# Mark SNMP quirks in PPD for HP OfficeJet Pro 8500 (bug #581825).
%patch8 -p1 -b .snmp-quirks

# Fixed bogus low ink warnings from hpijs driver (bug #643643).
%patch9 -p1 -b .hpijs-marker-supply

# Clear old printer-state-reasons we used to manage (bug #510926).
%patch10 -p1 -b .clear-old-state-reasons

# Avoid busy loop in hpcups when backend has exited (bug #525944).
%patch11 -p1 -b .hpcups-sigpipe

# CUPS filters should use TMPDIR when available (bug #865603).
%patch12 -p1 -b .logdir

# Fixed Device ID parsing code in hpijs's dj9xxvip.c (bug #510926).
%patch13 -p1 -b .bad-low-ink-warning

# Add Device ID for
# HP LaserJet Color M451dn (bug #1159380)
for ppd_file in $(grep '^diff' %{PATCH14} | cut -d " " -f 4);
do
  gunzip ${ppd_file#*/}.gz
done
%patch14 -p1 -b .deviceIDs-ppd
for ppd_file in $(grep '^diff' %{PATCH14} | cut -d " " -f 4);
do
  gzip -n ${ppd_file#*/}
done

# Fix ImageableArea for Laserjet 8150/9000 (bug #596298).
for ppd_file in $(grep '^diff' %{PATCH15} | cut -d " " -f 4);
do
  gunzip ${ppd_file#*/}.gz
done
%patch15 -p1 -b .ImageableArea
for ppd_file in $(grep '^diff' %{PATCH15} | cut -d " " -f 4);
do
  gzip -n ${ppd_file#*/}
done

# Scan to /var/tmp instead of /tmp (bug #1076954).
%patch16 -p1 -b .scan-tmp

# Treat logging before importing of logger module (bug #984699).
%patch17 -p1 -b .log-stderr

# Fix parsing of avahi-daemon output (bug #1096939).
%patch18 -p1 -b .parsing

# Fixed left/right margins for HP DeskJet 990C (LP #1405212).
%patch20 -p1 -b .dj990c-margin

# Fixed uses of strncpy throughout.
%patch21 -p1 -b .strncpy

# Don't try to write bytecode cache for hpfax backend (bug #1192761)
# or hp-config_usb_printer (bug #1266903)
# or hpps filter (bug #1241548).
%patch22 -p1 -b .no-write-bytecode

# Ignore IOError when logging output (bug #712537).
%patch23 -p1 -b .silence-ioerror

# [abrt] hplip: hp-scan:663:<module>:NameError: name 'source_option' is not defined (bug #1341304)
%patch24 -p1 -b .sourceoption

# hplip license problem (bug #1364711)
%patch25 -p1 -b .no-ernie

rm prnt/hpcups/ErnieFilter.{cpp,h} prnt/hpijs/ernieplatform.h

# hp-check shows 'CUPS incompatible or not running' even if CUPS is running (bug #1456467)
%patch27 -p1 -b .check-cups

# hp-firmware:NameError: name 'INTERACTIVE_MODE4' is not defined (bug #1533869)
%patch30 -p1 -b .typo

%patch31 -p1 -b .use-binary-str

# TypeError: 'Error' object does not support indexing (bug #1564770)
# upstream bug: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1718129
# in python2 it was possible to acces Exception message by index [0].
# in python3 this is no longer possible and it causes TypeError.
%patch32 -p1 -b .error-print-fix

# TypeError: not all arguments converted during string formatting (bug #1566938)
# upstream bug: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/616450
# bug caused by more arguments than argument specifiers in formatted string
%patch33 -p1 -b .hpfax-import-error-print

# 'WifiSetupDialog' object has no attribute 'wifiobj' (bug #1626877)
# upstream bug: https://bugs.launchpad.net/hplip/+bug/1752060
# bug caused by typo in wifisetupdialog wifiObj property call
%patch34 -p1 -b .wifisetup-bad-call-fix

# have pool of keyservers to choose
%patch35 -p1 -b .keyserver

# TypeError: argument 5 has unexpected type 'StandardButtons' (bug #1594602)
# upstream bug: https://bugs.launchpad.net/ubuntu/+source/hplip/+bug/1745383
# bug caused by typo in QMessageBox constructor call
# this patch fixes more of those typos - some fixed by tkorbar, some taken from ubuntu fix
%patch36 -p1 -b .qmsgbox-typos-fix

# removal of non open source code
%patch37 -p1 -b .libimageprocessor-removal

rm prnt/hpcups/libImageProcessor-x86*

%patch38 -p1 -b .toolbox-crash
# part of https://bugzilla.redhat.com/show_bug.cgi?id=1666076
%patch39 -p1 -b .add-ppd-crash
# 1671513 - after 'successful' plugin installation it is not installed
%patch40 -p1 -b .missing-links
# 1684434 - Scanning broken for HP LaserJet 3052
%patch41 -p1 -b .hp-laserjet-3052-broken-scanning
# 1694663 - Cannot scan with M281fdw LaserJet - failed: Error during device I/O (part 1)
%patch42 -p1 -b .hpmud-string-parse
# 1694663 - Cannot scan with M281fdw LaserJet - failed: Error during device I/O (part 2)
%patch43 -p1 -b .m278-m281-needs-plugin
# 1695716 - hpcups crashes in Compressor destructor
%patch44 -p1 -b .hpcups-crash
# fixing issues found by coverity scan
%patch45 -p1 -b .covscan
# segfault during logging (1727162)
%patch46 -p1 -b .logging-segfault
# 1738321 - [abrt] hp-systray:BlockingIOError: [Errno 11] Resource temporarily unavailable
%patch47 -p1 -b .systray-blockerror
# 1742949, 1740132, 1739855 - missing drivers
%patch48 -p1 -b .missing-drivers
# 1772698 - Can't setup printer (HP LJ 2200): no attributes found in model.dat
%patch49 -p1 -b .model-mismatch
# 1573430 - sixext.py:to_string_utf8:UnicodeDecodeError: 'utf-8' codec can't decode bytes
%patch50 -p1 -b .unicodeerror
%patch51 -p1 -b .Wreturn-fix
%patch52 -p1 -b .configure-python
%patch53 -p1 -b .dialog-infinite-loop
# 1590014 - hplip PPD search doesn't expect '-' in device name
%patch54 -p1 -b .find-driver
# 1833308 - hp-clean cannot clean HP PSC1410 - Device I/O error
%patch55 -p1 -b .clean-ldl
%patch56 -p1 -b .revert-plugins

%patch101 -p1
%patch102 -p1
%patch103 -p1

%patch201 -p1
%patch202 -p1
%patch203 -p1
%patch205 -p1
%patch206 -p1
%patch207 -p1
%patch210 -p1
%patch211 -p1
%patch212 -p1

%patch301 -p1
%patch302 -p1
%patch303 -p1
%patch304 -p1
%patch305 -p1

sed -i.duplex-constraints \
    -e 's,\(UIConstraints.* \*Duplex\),//\1,' \
    prnt/drv/hpcups.drv.in

sed -i Makefile* -e 's,/etc/udev/rules.d,%{_udevrulesdir},g'

rm locatedriver


# Don't run 'chgrp lp /var/log/hp' in makefile (removes all lines with "chgrp")
sed -i '/chgrp/d' Makefile.am


# Change shebang /usr/bin/env python -> /usr/bin/python (bug #618351).
find -name '*.py' -print0 | xargs -0 \
    sed -i.env-python -e 's,^#!/usr/bin/env python,#!%__python3,'

sed -i.env-python -e 's,^#!/usr/bin/env python,#!%__python3,' \
    fax/filters/pstotiff

find -name '*.py' -print0 | xargs -0 \
    sed -i.bin-python -e s,"^#\!/usr/bin/python\$","#\!%__python3",

# Make all files in the source user-writable
chmod -R u+w .

# create required files as placeholder, otherwise autoreconf fails
touch NEWS README AUTHORS ChangeLog
# Work-around Makefile.am imperfections.
sed -i 's|^AM_INIT_AUTOMAKE|AM_INIT_AUTOMAKE([foreign])|g' configure.in
# Upstream uses old libtool, which causes problems (due to libhpmud requiring
# libhpdiscovery) when we try to remove rpath from it.
# Regenerating all autotools files works-around these rpath issues.

# Make automatic driver detection work (e.g. in system-config-printer)
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14286
# Original PPD is for 2*3=6 models, make separate PPDs for each model
# Leave the original PPD, maybe it may be needed...
gunzip prnt/ps/hp-laserjet_mfp_m426_m427-ps.ppd.gz
for i in 426dw 426fdn 426fdw 427dw 427fdn 427fdw
do
	cp prnt/ps/hp-laserjet_mfp_m426_m427-ps.ppd prnt/ps/hp-laserjet_mfp_m$i-ps.ppd
	sed -i prnt/ps/hp-laserjet_mfp_m$i-ps.ppd \
		-e "s,M426-M427,M$i,g" \
		-e "s,M426 M427,M$i,g"
done
sed -i prnt/ps/hp-laserjet_mfp_m426*.ppd -e '/Product.*427/d'
sed -i prnt/ps/hp-laserjet_mfp_m427*.ppd -e '/Product.*426/d'
for i in prnt/ps/hp-laserjet_mfp_m4*.ppd; do gzip $i; done

# Most PDDs off duplex (two-sided) printing by default, but some (e.g. M426)
# turn it on by default. Turn it off everywhere by default.
find prnt -type f -name '*.ppd.gz' -print | while read -r line
do
	gunzip "$line"
	line2="$(echo "$line" | sed -e 's,.ppd.gz$,.ppd,')"
	sed -i "$line2" -e "s,DefaultDuplex: DuplexNoTumble,DefaultDuplex: None,g" \
	                -e "s,DefaultDuplex: DuplexTumble,DefaultDuplex: None,g"
	gzip "$line2"
done

%build
%serverbuild

autoreconf --verbose --force --install

%if !%{sane_backend}
WITHOUT_SANE="--without-sane"
%endif


%configure \
	$WITHOUT_SANE \
	--disable-foomatic-rip-hplip-install \
	--enable-scan-build \
	--enable-gui-build \
	--enable-fax-build \
	--enable-pp-build \
	--enable-qt5 --disable-qt4 \
	--enable-hpijs-install \
	--enable-hpcups-install \
	--enable-cups-drv-install \
	--enable-cups-ppd-install \
	--enable-new-hpcups \
	--enable-hpcups-install \
	--disable-policykit \
	--disable-imageProcessor-build \
	--with-mimedir=%{_datadir}/cups/mime \
	PYTHON=%__python3

%make_build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sysconfdir}/hp

#fix install error
#install erroneously 'will not overwrite' because of duplicate filenames
sed 's/\$(INSTALL_DATA) \$\$files \"\$(DESTDIR)\$(ppddir)\"/\/usr\/bin\/install -C -m 644 \$\$files \"\$(DESTDIR)\$(ppddir)\"/' -i Makefile

%make_install

# Install files which the "make install" missed to install
install -m 644 ip/hpip.h %{buildroot}%{_includedir}
install -m 644 ip/xform.h %{buildroot}%{_includedir}

# Move doc in sub-package
mv %{buildroot}%{_docdir}/%{name}-%{version} %{buildroot}%{_docdir}/%{name}-doc-%{version}

# Prefer sane.d/dll.d to sane.d/dll.conf
rm -f %{buildroot}%{_sysconfdir}/sane.d/dll.conf
mkdir -p %{buildroot}%{_sysconfdir}/sane.d/dll.d
echo 'hpaio' > %{buildroot}%{_sysconfdir}/sane.d/dll.d/hpaio

# Remove other unneeded/unwanted files
# Remove files we don't want to package.
rm -f %{buildroot}%{_datadir}/hplip/uninstall.*
rm -f %{buildroot}%{_bindir}/hp-uninstall
rm -f %{buildroot}%{_datadir}/hplip/upgrade.*
rm -f %{buildroot}%{_bindir}/hp-upgrade
rm -f %{buildroot}%{_datadir}/hplip/hpijs.drv.in.template
rm -f %{buildroot}%{_datadir}/cups/mime/pstotiff.types
rm -f %{buildroot}%{_datadir}/hplip/fax/pstotiff*
rm -f %{buildroot}%{_datadir}/hplip/locatedriver*
rm -f %{buildroot}%{_bindir}/hp-uiscan
rm -f %{buildroot}%{_datadir}/applications/hp-uiscan.desktop
rm -f %{buildroot}%{_datadir}/hplip/uiscan.py*
rm -f %{buildroot}%{_datadir}/hplip/dat2drv*


# Used in 56-hpmud_sysfs.rules which is obsolete
# Not a normal systemd unit, an instanced one
rm -f %{buildroot}%{_prefix}/lib/systemd/system/hplip-printer@.service

#We do not need hal
rm -f %{buildroot}%{_datadir}/hal/fdi/preprobe/10osvendor/20-hplip-devices.fdi

mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install --vendor='' \
	--dir=%{buildroot}%{_datadir}/applications \
	--remove-category='Application' \
	--remove-category='Utility' \
	--add-category='System' \
	--add-category='Settings' \
	--add-category='Printing' \
	--add-category='Qt' \
	--add-category='HardwareSettings' \
	--remove-key='Version' \
	%{buildroot}%{_datadir}/applications/hplip.desktop

# Create /run/hplip
mkdir -p %{buildroot}/run/hplip

# install /usr/lib/tmpfiles.d/hplip.conf (bug #1015831)
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# install menu icons
for N in 16 32 48 64 128 256;
do
    convert %{SOURCE3} -scale ${N}x${N} ${N}.png
    install -D -m 0644 ${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/hp-sendfax.png
done

for N in 16 32 64 128 256;
do
    install -D -m 0644 %{buildroot}%{_datadir}/hplip/data/images/${N}x${N}/hp_logo.png \
	%{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/hp_logo.png
done

# Regenerate hpcups PPDs on upgrade if necessary (bug #579355).
install -p -m755 %{SOURCE1} %{buildroot}%{_bindir}/hpcups-update-ppds

# A tool disable smart install feature in HP printer(s) from linux
# HP Smart Install is a service running on firmware which makes printer to appear
# as "Mass Storage Devices" when connected via USB cable. This is to install the
# minimal printer software from flash memory of printer. This service needs to be
# disabled on linux in order to have the device function as a printer.
install -p -m755 %{SOURCE5} %{buildroot}%{_bindir}/SmartInstallDisable-Tool.run
install -p -m755 %{SOURCE9} %{buildroot}%{_bindir}/hplip-%{version}-plugin.run
mkdir -p %{buildroot}%{_docdir}/%{name}
install -p -m755 %{SOURCE6} %{buildroot}%{_docdir}/%{name}

# Make sure pyc files are generated, otherwise we can get
# difficult to debug problems
pushd %{buildroot}%{_datadir}/%{name}
python3 -m compileall .
popd

# create empty /var/lib/hp/hplip.state to fix hp-plugin installation (mga#5395)
mkdir -p %{buildroot}%{_localstatedir}/lib/hp/
touch %{buildroot}%{_localstatedir}/lib/hp/hplip.state

# Create an empty plugins directory to make sure it gets the right
mkdir -p %{buildroot}%{_datadir}/hplip/prnt/plugins

# create empty log directory so that it can be owned
mkdir -p %{buildroot}%{_localstatedir}/log/hp/tmp

#Add rules for all hp printers
echo 'SUBSYSTEM=="usb", ATTRS{idVendor}=="03f0", GROUP="lp", MODE:="666"' >> %{buildroot}%{_udevrulesdir}/56-hpmud.rules

# consolehelper config
mkdir -p %{buildroot}%{_sbindir}
# - console user, no password
for pak in hp-setup hp-diagnose_plugin; do
		mv %{buildroot}%{_bindir}/$pak %{buildroot}%{_sbindir}/$pak
        ln -sf %{_bindir}/consolehelper %{buildroot}%{_bindir}/$pak
        mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps/
        cat > %{buildroot}%{_sysconfdir}/security/console.apps/$pak <<EOF
USER=root
PROGRAM=%{_sbindir}/$pak
FALLBACK=false
SESSION=true
EOF
        mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
		cat > %{buildroot}%{_sysconfdir}/pam.d/$pak  <<EOF
#%PAM-1.0
auth		include		config-util-user
account		include		config-util-user
session		include		config-util-user
EOF
done

%post
%tmpfiles_create %{name}.conf

%post -n hplip-hpijs
%{_bindir}/hpcups-update-ppds &>/dev/null ||:

%post model-data
udevadm trigger --subsystem-match=usb --attr-match=idVendor=03f0
# ensure permissions are ready when installation completes
udevadm settle --timeout=15
:

%files
%config(noreplace) %{_sysconfdir}/hp
%dir %{_localstatedir}/lib/hp/
%{_bindir}/hp-align
%{_bindir}/hp-clean
%{_bindir}/hp-colorcal
%{_bindir}/hp-config_usb_printer
%{_bindir}/hp-devicesettings
%{_bindir}/hp-diagnose_plugin
%{_bindir}/hp-diagnose_queues
%{_bindir}/hp-doctor
%{_datadir}/hplip/doctor.py*
%{_bindir}/hp-fab
%{_bindir}/hp-faxsetup
%{_bindir}/hp-firmware
%{_bindir}/hp-info
%{_bindir}/hp-levels
%{_bindir}/hp-linefeedcal
%{_bindir}/hp-logcapture
%{_bindir}/hp-makecopies
%{_bindir}/hp-makeuri
%{_bindir}/hp-pkservice
%{_bindir}/hp-plugin
%{_bindir}/hp-pqdiag
%{_bindir}/hp-printsettings
%{_bindir}/hp-probe
%{_bindir}/hp-query
%{_bindir}/hp-scan
%{_bindir}/hp-sendfax
%{_bindir}/hp-setup
%{_bindir}/hp-testpage
%{_bindir}/hp-timedate
%{_bindir}/hp-unload
%{_bindir}/hp-wificonfig

%{_sbindir}/hp-diagnose_plugin
%{_sbindir}/hp-setup

%{_sysconfdir}/pam.d/hp-diagnose_plugin
%{_sysconfdir}/pam.d/hp-setup
%{_sysconfdir}/security/console.apps/hp-diagnose_plugin
%{_sysconfdir}/security/console.apps/hp-setup

# A tool to disable Smart Install
%{_bindir}/SmartInstallDisable-Tool.run

# additional plugin for hplip, some printer not work without
%{_bindir}/hplip-%{version}-plugin.run

%exclude %{_datadir}/hplip/data/models
# C libraries for Python
%{_libdir}/python3*/*/*.so*
# CUPS backends (0755 permissions, so that CUPS 1.2 runs these backends
# as lp user)
# Note: this must be /usr/lib not _{_libdir}, since that's the
# CUPS serverbin directory.
%attr(0755,root,root) %{_prefix}/lib/cups/backend/hp*
%{_prefix}/lib/cups/filter/hpcups
%{_prefix}/lib/cups/filter/hpcupsfax
%{_prefix}/lib/cups/filter/hpps
%{_prefix}/lib/cups/filter/pstotiff
%{_prefix}/lib/cups/filter/hpcdmfax
%{_datadir}/ppd/HP/HP-Fax*.ppd*
%{_datadir}/cups/drv/hp/hpcups.drv
# Files
%dir %{_datadir}/hplip
%{_datadir}/hplip/__pycache__
%{_datadir}/hplip/align.py*
%{_datadir}/hplip/check-plugin.py*
%{_datadir}/hplip/clean.py*
%{_datadir}/hplip/colorcal.py*
%{_datadir}/hplip/config_usb_printer.py*
%{_datadir}/hplip/devicesettings.py*
%{_datadir}/hplip/diagnose_plugin.py*
%{_datadir}/hplip/diagnose_queues.py*
%{_datadir}/hplip/fab.py*
%{_datadir}/hplip/fax
%{_datadir}/hplip/faxsetup.py*
%{_datadir}/hplip/firmware.py*
%{_datadir}/hplip/hpdio.py*
%{_datadir}/hplip/hpssd*
%{_datadir}/hplip/info.py*
%{_datadir}/hplip/__init__.py*
%{_datadir}/hplip/levels.py*
%{_datadir}/hplip/linefeedcal.py*
%{_datadir}/hplip/logcapture.py*
%{_datadir}/hplip/makecopies.py*
%{_datadir}/hplip/makeuri.py*
%{_datadir}/hplip/pkservice.py*
%{_datadir}/hplip/plugin.py*
%{_datadir}/hplip/pqdiag.py*
%{_datadir}/hplip/printsettings.py*
%{_datadir}/hplip/probe.py*
%{_datadir}/hplip/query.py*
%{_datadir}/hplip/scan.py*
%{_datadir}/hplip/sendfax.py*
%{_datadir}/hplip/setup.py*
%{_datadir}/hplip/testpage.py*
%{_datadir}/hplip/timedate.py*
%{_datadir}/hplip/unload.py*
%{_datadir}/hplip/wificonfig.py*
# Directories
%{_datadir}/hplip/base
%{_datadir}/hplip/copier
%dir %{_datadir}/hplip/data
%{_datadir}/hplip/data/ldl
%{_datadir}/hplip/data/localization
%{_datadir}/hplip/data/models
%{_datadir}/hplip/data/pcl
%{_datadir}/hplip/data/ps
%{_datadir}/hplip/installer
%{_datadir}/hplip/pcard
%{_datadir}/hplip/prnt
%{_datadir}/hplip/scan
#{_datadir}/polkit-1/actions/com.hp.hplip.policy
#{_datadir}/dbus-1/system-services/com.hp.hplip.service
%{_localstatedir}/lib/hp/hplip.state
%{_docdir}/%{name}/README.urpmi
%dir %attr(0775,root,lp) /run/hplip
%{_tmpfilesdir}/hplip.conf
%{_datadir}/hplip/hplip_clean.sh
%{_datadir}/cups/mime/pstotiff.convs


%files doc
%doc %{_docdir}/%{name}-doc-%{version}

%files -n %{libhpdiscovery}
%{_libdir}/libhpdiscovery.so.%{major}*

%files -n %{libhpip}
%{_libdir}/libhpip.so.%{major}*

%files -n %{libhpipp}
%{_libdir}/libhpipp.so.%{major}*

%files -n %{libhpmud}
%{_libdir}/libhpmud.so.%{major}*

%files -n %{devname}
%{_includedir}/hpip.h
%{_includedir}/xform.h
%{_libdir}/libhpip.so
%{_libdir}/libhpipp.so
%{_libdir}/libhpmud.so
%{_libdir}/libhpdiscovery.so
%if %{sane_backend}
%{_libdir}/sane/libsane-hpaio.so
%endif

%if %{sane_backend}
%files -n %{libsane}
%{_libdir}/sane/libsane-hpaio.so.%{sanemaj}*
# Not really a shared library package so it's OK to have config here
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/hpaio
%endif

%files model-data
%{_udevrulesdir}/*.rules
%{_datadir}/hplip/data/models

%files gui
%{_bindir}/hp-check
%{_bindir}/hp-print
%{_bindir}/hp-systray
%{_bindir}/hp-toolbox
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/hp-sendfax.png
%{_iconsdir}/hicolor/*/apps/hp_logo.png
%{_sysconfdir}/xdg/autostart/hplip-systray.desktop
# Files
%{_datadir}/hplip/check.py*
%{_datadir}/hplip/print.py*
%{_datadir}/hplip/systray.py*
%{_datadir}/hplip/toolbox.py*
# Directories
%{_datadir}/hplip/data/images
%{_datadir}/hplip/ui5

%files hpijs
%{_bindir}/hpijs
# Needed for both printing and fax PPDs. They all need HPIJS, therefore
# the link is here
%dir %{_datadir}/ppd
%dir %{_datadir}/ppd/HP
#{_datadir}/cups/drv/hp/hpijs.drv
%{_bindir}/hpcups-update-ppds

%files hpijs-ppds
%{_datadir}/ppd/HP/*.ppd.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13244 |21mr|hppc-0.7.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          hppc
Version:       0.7.1
Release:       9
Summary:       High Performance Primitive Collections for Java
License:       ASL 2.0
Group:         Development/Java
URL:           http://labs.carrotsearch.com/hppc.html
Source0:       https://github.com/carrotsearch/hppc/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-junit)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.velocity:velocity)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.antlr:antlr4)
BuildRequires: mvn(org.antlr:antlr4-maven-plugin)

%if 0
# hppc-benchmarks deps
BuildRequires: mvn(it.unimi.dsi:fastutil)
BuildRequires: mvn(net.openhft:koloboke-impl-jdk6-7:0.6.6)
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
BuildRequires: mvn(org.openjdk.jmh:jmh-generator-annprocess)

# test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(com.carrotsearch.randomizedtesting:junit4-maven-plugin)
BuildRequires: mvn(com.carrotsearch.randomizedtesting:randomizedtesting-runner)
BuildRequires: mvn(org.assertj:assertj-core)
%endif

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Fundamental data structures (maps, sets, lists, stacks, queues) generated for
combinations of object and primitive types to conserve JVM memory and speed
up execution.

%package templateprocessor
Summary:       HPPC Template Processor

%description templateprocessor
Template Processor and Code Generation for HPPC.

%package javadoc
Summary:       Javadoc for HPPC

%description javadoc
This package contains javadoc for HPPC.

%prep
%setup -q
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

# Unavailable deps
%pom_disable_module %{name}-benchmarks
%pom_remove_plugin :junit4-maven-plugin
%pom_remove_plugin :forbiddenapis
%pom_remove_plugin :junit4-maven-plugin hppc
# Unneeded task
%pom_remove_plugin -r :maven-assembly-plugin

# Convert from dos to unix line ending
for file in CHANGES.txt; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

%mvn_file :%{name} %{name}
%mvn_package :%{name}::esoteric:
%mvn_file :%{name}-template-processor %{name}-templateprocessor
%mvn_package :%{name}-template-processor %{name}-templateprocessor

%build

# Disable test for now. Unavailable test deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.txt README.txt
%license LICENSE.txt NOTICE.txt

%files templateprocessor -f .mfiles-%{name}-templateprocessor
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13245 |21mr|hspell-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Free Hebrew linguistic project
Name:		hspell
Version:	1.4
Release:	2
License:	AGPLv3+
Group:		Text tools
Url:		http://www.ivrix.org.il/projects/spell-checker/
Source0:	http://hspell.ivrix.org.il/%{name}-%{version}.tar.gz
Patch0:		hspell-1.1-no-strip.patch
Patch1:         0001-require-local-module-explicitly.patch
BuildRequires:  pkgconfig(zlib)

%description
The Hspell project is a free Hebrew linguistic project.

Its primary goal is to create a free Hebrew spell-checker.

In addition to a spell-checker, the project also produced a Hebrew
morphological analyzer, which for every valid Hebrew word lists all
of its possible readings (valid combinations of prefix and inflected
base word).

The secondary goal of the project is to make the algorithms and
dictionaries, created initially for the spell-checker, freely
available. These could be used in more sophisticated research or
applications that require Hebrew word lists or a Hebrew morphology
engine.

Such potential application areas might include search engines, speech
synthesis, and much much more. The availability of a free basis will
hopefully encourage free development on top of it, to the benefit of
the general Hebrew-speaking population.

%files
%{_bindir}/*
%{_datadir}/hspell/*.wgz*
%{_mandir}/man1/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library files for hspell
Group:		System/Libraries

%description -n %{libname}
Shared library files for the hspell package.

%files -n %{libname}
%{_libdir}/libhspell.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for hspell
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}hspell0 < 1.2

%description -n %{devname}
Development headers, and files for development from the hspell package.

%files -n %{devname}
%{_libdir}/libhspell.so
%{_libdir}/libhspell.a
%{_includedir}/hspell.h
%{_includedir}/linginfo.h

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
CFLAGS="%{optflags} -fPIC" CPPFLAGS="%{optflags} -fPIC" FFLAGS="optflags -fPIC" \
%configure \
	--enable-fatverb \
	--enable-shared

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13246 |21mr|hsqldb1-1.8.1.3-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global cvs_version 1_8_1_3
%global majorversion 1
Name:          hsqldb1
Version:       1.8.1.3
Release:       17
Summary:       HyperSQL Database Engine
License:       BSD
URL:           http://hsqldb.sourceforge.net/
Source0:       http://downloads.sourceforge.net/hsqldb/hsqldb_%{cvs_version}.zip
Source1:       http://mirrors.ibiblio.org/pub/mirrors/maven2/hsqldb/hsqldb/1.8.0.10/hsqldb-1.8.0.10.pom
Patch0:        hsqldb-jdbc-4.1.patch

BuildRequires: ant
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: junit
BuildRequires: glassfish-servlet-api

Requires:      glassfish-servlet-api

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HSQLdb is a relational database engine written in JavaTM , with a JDBC
driver, supporting a subset of ANSI-92 SQL. It offers a small (about
100k), fast database engine which offers both in memory and disk based
tables. Embedded and server modes are available. Additionally, it
includes tools such as a minimal web server, in-memory query and
management tools (can be run as applets or servlets, too) and a number
of demonstration examples.
Downloaded code should be regarded as being of production quality. The
product is currently being used as a database and persistence engine in
many Open Source Software projects and even in commercial projects and
products! In it's current version it is extremely stable and reliable.
It is best known for its small size, ability to execute completely in
memory and its speed. Yet it is a completely functional relational
database management system that is completely free under the Modified
BSD License. Yes, that's right, completely free of cost or restrictions!

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n hsqldb

# set right permissions
find . -name "*.sh" -exec chmod 755 \{\} \;
# remove all _notes directories
for dir in `find . -name _notes`; do rm -rf $dir; done
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;
find . -name "*.war" -exec rm -f {} \;
# correct silly permissions
chmod -R go=u-w *

%patch0 -p1

cp %{SOURCE1} ./pom.xml

%mvn_file hsqldb:hsqldb %{name}

%mvn_compat_version : %{majorversion}

%build
export CLASSPATH=$(build-classpath glassfish-servlet-api junit)
pushd build
ant jar javadoc
popd

%install
%mvn_artifact pom.xml lib/hsqldb.jar
%mvn_install -J doc/src

%files -f .mfiles
%license doc/hsqldb_lic.txt

%files javadoc -f .mfiles-javadoc
%license doc/hsqldb_lic.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13247 |21mr|hsqldb-2.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           hsqldb
Version:        2.4.0
Release:        6
Epoch:          1
Summary:        HyperSQL Database Engine
License:        BSD
URL:            http://hsqldb.sourceforge.net/

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://downloads.sourceforge.net/hsqldb/%{name}-%{version}.zip
Source1:        %{name}.cfg
Source2:        %{name}-server.properties
Source3:        %{name}-webserver.properties
Source4:        %{name}-sqltool.rc
Source5:        http://www.hsqldb.org/repos/org/hsqldb/hsqldb/%{version}/hsqldb-%{version}.pom
# Custom systemd files - talking with upstream about incorporating them, see
# http://sourceforge.net/projects/hsqldb/forums/forum/73673/topic/5367103
Source6:        %{name}.systemd
Source7:        %{name}-wrapper
Source8:        %{name}-post
Source9:        %{name}-stop

# Javadoc fails to create since apidocs folder is deleted and not recreated
Patch0:         0001-Fix-javadoc-build.patch
# Package org.hsqldb.cmdline was only compiled with java 1.5
Patch1:         0002-Build-cmdline-classes.patch

BuildRequires:  ant
BuildRequires:  javapackages-local
BuildRequires:  systemd-units
BuildRequires:  glassfish-servlet-api

Requires:       %{name}-lib = %{epoch}:%{version}-%{release}
Requires:       glassfish-servlet-api
Requires(pre):  shadow-utils
Requires(post): systemd-units
Requires(preun):  systemd-units
Requires(postun): systemd-units


%description
HSQLdb is a relational database engine written in JavaTM , with a JDBC
driver, supporting a subset of ANSI-92 SQL. It offers a small (about
100k), fast database engine which offers both in memory and disk based
tables. Embedded and server modes are available. Additionally, it
includes tools such as a minimal web server, in-memory query and
management tools (can be run as applets or servlets, too) and a number
of demonstration examples.
Downloaded code should be regarded as being of production quality. The
product is currently being used as a database and persistence engine in
many Open Source Software projects and even in commercial projects and
products! In it's current version it is extremely stable and reliable.
It is best known for its small size, ability to execute completely in
memory and its speed. Yet it is a completely functional relational
database management system that is completely free under the Modified
BSD License. Yes, that's right, completely free of cost or restrictions!

%package lib
Summary:    HyperSQL Database Engine library

%description lib
Library part of %{name}.

%package manual
Summary:    Manual for %{name}

%description manual
Documentation for %{name}.

%package javadoc
Summary:    Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%package demo
Summary:    Demo for %{name}
Requires:   %{name} = %{epoch}:%{version}-%{release}

%description demo
Demonstrations and samples for %{name}.

%prep
%setup -q -n %{name}-%{version}/%{name}

%patch0 -p1
%patch1 -p1

# set right permissions
find . -name "*.sh" -exec chmod 755 \{\} \;

# remove all _notes directories
for dir in `find . -name _notes`; do rm -rf $dir; done

# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;
find . -name "*.war" -exec rm -f {} \;
find . -name "*.zip" -exec rm -f {} \;

# correct silly permissions
chmod -R go=u-w *

# Fix doc location
sed -i -e 's/doc-src/doc/g' build/build.xml
sed -i -e 's|doc/apidocs|%{_javadocdir}/%{name}|g' index.html

%build
pushd build
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
ant hsqldb javadoc -Dservletapi.lib=$(build-classpath glassfish-servlet-api)
popd

%install
%mvn_file :%{name} %{name}
%mvn_artifact %{SOURCE5} lib/%{name}.jar
%mvn_install -J doc/apidocs

# systemd
install -d -m 755 %{buildroot}%{_unitdir}
install -d -m 755 %{buildroot}%{_prefix}/lib/%{name}
install -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/%{name}.service
install -m 755 %{SOURCE7} %{buildroot}%{_prefix}/lib/%{name}/%{name}-wrapper
install -m 755 %{SOURCE8} %{buildroot}%{_prefix}/lib/%{name}/%{name}-post
install -m 755 %{SOURCE9} %{buildroot}%{_prefix}/lib/%{name}/%{name}-stop
# config
install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
# serverconfig
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
install -m 644 %{SOURCE2} %{buildroot}%{_localstatedir}/lib/%{name}/server.properties
install -m 644 %{SOURCE3} %{buildroot}%{_localstatedir}/lib/%{name}/webserver.properties
install -m 600 %{SOURCE4} %{buildroot}%{_localstatedir}/lib/%{name}/sqltool.rc
# lib
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/lib
# data
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}/data

pushd %{buildroot}%{_localstatedir}/lib/%{name}/lib
    # build-classpath can not be used as the jar is not
    # yet present during the build
    ln -s %{_javadir}/hsqldb.jar hsqldb.jar
    ln -s $(build-classpath glassfish-servlet-api) servlet.jar
popd

%preun
%systemd_preun hsqldb.service

%pre
# Add the "hsqldb" user and group
# we need a shell to be able to use su - later
%{_sbindir}/groupadd -g 96 -f -r %{name} 2> /dev/null || :
%{_sbindir}/useradd -u 96 -g %{name} -s /sbin/nologin \
    -d %{_localstatedir}/lib/%{name} -r %{name} 2> /dev/null || :

%post
%systemd_post hsqldb.service

%postun
%systemd_postun_with_restart hsqldb.service

%triggerun -- hsqldb < 1.8.1.3-9
# Save the current service runlevel info
# User must manually run systemd-sysv-convert --apply httpd
# to migrate them to systemd targets
/usr/bin/systemd-sysv-convert --save hsqldb >/dev/null 2>&1 ||:

# If the package is allowed to autostart:
/bin/systemctl --no-reload enable hsqldb.service >/dev/null 2>&1 ||:

# Run these because the SysV package being removed won't do them
/sbin/chkconfig --del hsqldb >/dev/null 2>&1 || :
/bin/systemctl try-restart hsqldb.service >/dev/null 2>&1 || :

%files
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/%{name}.service
%{_prefix}/lib/%{name}/%{name}-wrapper
%{_prefix}/lib/%{name}/%{name}-post
%{_prefix}/lib/%{name}/%{name}-stop
%attr(0700,hsqldb,hsqldb) %{_localstatedir}/lib/%{name}/data
%{_localstatedir}/lib/%{name}/lib
%{_localstatedir}/lib/%{name}/server.properties
%{_localstatedir}/lib/%{name}/webserver.properties
%attr(0600,hsqldb,hsqldb) %{_localstatedir}/lib/%{name}/sqltool.rc
%dir %{_localstatedir}/lib/%{name}
%dir %{_prefix}/lib/%{name}

%files lib -f .mfiles

%files manual
%doc doc/*

%files javadoc
%doc %{_javadocdir}/%{name}

%files demo

 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13248 |21mr|html2text-1.3.2a-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A command line utility to convert HTML document to plain text
Name:		html2text
Version:	1.3.2a
Release:	22
License:	GPLv2+
Group:		File tools
Url:		http://userpage.fu-berlin.de/~mbayer/tools/html2text.html
Source0:	http://userpage.fu-berlin.de/%7Embayer/tools/%{name}-%{version}.tar.bz2

%description
html2text is a command line utility, written in C++, that converts HTML
documents into plain text.

%files
%doc CHANGES COPYING CREDITS INSTALL KNOWN_BUGS RELEASE_NOTES README TODO
%{_bindir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make DEBUG="%{optflags}" LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}/{%{_bindir},%{_mandir}/{man1,man5}}

gunzip %{name}.1.gz %{name}rc.5.gz

install -m755 %{name} %{buildroot}%{_bindir}
install -m644 %{name}.1  %{buildroot}%{_mandir}/man1/
install -m644 %{name}rc.5 %{buildroot}%{_mandir}/man5/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13249 |21mr|htmldoc-1.9.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Convert HTML documents into PDF or PS format
Name:		htmldoc
Version:	1.9.16
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://www.msweet.org/projects.php?Z1
Source0:	https://github.com/michaelrsweet/htmldoc/archive/v%{version}.tar.gz
BuildRequires:	fltk-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(gnutls) pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xft)
Requires:	fltk

%description
HTMLDOC allow you to convert Html documents into PDF or PS format.
Links and somes specific things of PDF format can be used.

%files
%doc help.html htmldoc.pdf
%{_bindir}/htmldoc
%{_mandir}/man1/*
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/htmldoc.xml
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%package nogui
Summary:	Convert HTML documents into PDF or PS format
Group:		File tools

%description nogui
This package contains the non-GUI version of %{name}

%files nogui
%{_bindir}/htmldoc-nogui

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# first build the non gui version
%configure \
	--disable-rpath \
	--disable-localpng \
	--disable-localjpeg \
	--disable-localzlib \
	--without-gui

%make
mv htmldoc/htmldoc htmldoc-nogui
make clean

%configure \
	--disable-rpath \
	--disable-localpng \
	--disable-localjpeg \
	--disable-localzlib \
	--with-gui \
	--with-openssl-libs \
	--with-openssl-includes

%make

%install
install -d %{buildroot}%{_bindir}
install -m0755 htmldoc-nogui %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=HTMLDoc
Comment=Convert HTML files to PDF or PostScript
Comment[ru]=Преобразование HTML в PDF и PostScript
Exec=%{_bindir}/%{name}
Icon=publishing_section
Terminal=false
Type=Application
StartupNotify=true
MimeType=text/html;
Categories=FileTools;Utility;
EOF

make install \
  BUILDROOT=%{buildroot} \
  VERBOSE=1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13250 |21mr|htop-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# autogen.sh is run
%define _disable_rebuild_configure 1

Summary:	Interactive text-mode process viewer for Linux
Name:		htop
Version:	3.2.1
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		https://htop.dev
Source0:	https://github.com/htop-dev/htop/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(ncurses)

%description
htop is an interactive process viewer for Linux, similar to top.
It requires ncurses. Tested with Linux 2.4 and 2.6.

Some advantages over top:

* you can scroll the list vertically and horizontally to see
  all processes and complete command lines
* htop starts faster than top
* you don't need to type the process number to kill a process
* you don't need to type the process number or the priority value to
  renice a process
* htop supports mouse operation

%files
%doc README AUTHORS NEWS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/htop.png
%{_iconsdir}/hicolor/scalable/apps/htop.svg
%{_mandir}/man1/%{name}.*

#---------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -fno-strict-aliasing
./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13251 |21mr|htrace-3.1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: htrace
Version: 3.1.0
Release: 10
Summary: Tracing framework for java based distributed systems
Group:   Development/Java
License: ASL 2.0
URL:     https://%{name}.incubator.apache.org
Source0: https://archive.apache.org/dist/incubator/%{name}/%{name}-%{version}-incubating/%{name}-%{version}-incubating-src.tar.gz

#BuildRequires: golang
#BuildRequires: godep
BuildRequires: java-devel
BuildRequires: jackson-core
BuildRequires: jackson-databind
BuildRequires: jetty-util-ajax
#BuildRequires: leveldb-devel
BuildRequires: libthrift-java
BuildRequires: maven-local
BuildRequires: apache-parent
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HTrace is a tracing framework intended for use with distributed systems
written in java. 

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%autosetup -p1 -n %{name}-%{version}-incubating

# disable hbase module because hbase package was retired
%pom_disable_module htrace-hbase

# disable flume module because flume is currently not packaged
%pom_disable_module htrace-flume

# remove test jar plugin
%pom_remove_plugin :maven-jar-plugin

# Remove apache-rat-plugin because it causes build failure on xmvn generated
# files
%pom_remove_plugin org.apache.rat:apache-rat-plugin
%pom_remove_plugin org.apache.rat:apache-rat-plugin htrace-core
%pom_remove_plugin org.apache.rat:apache-rat-plugin htrace-zipkin

# Remove assembly plugins not needed
%pom_remove_plugin :maven-assembly-plugin htrace-zipkin

# remove go build 
%pom_remove_plugin :maven-antrun-plugin htrace-core

# remove problematic javadoc
%pom_remove_plugin :maven-javadoc-plugin htrace-core
%pom_remove_plugin :maven-javadoc-plugin htrace-zipkin

# remove source plugin
%pom_remove_plugin :maven-source-plugin htrace-core
%pom_remove_plugin :maven-source-plugin htrace-zipkin

# remove shaded plugin to prevent bundling 
%pom_remove_plugin :maven-shade-plugin htrace-core

# skip install for zipkin
%mvn_package ":%{name}-zipkin" __noinstall

%mvn_package ":%{name}-core"

%build
%mvn_build -j -- -DskipTests

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt
%doc NOTICE.txt
%doc README.md
%doc DISCLAIMER.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13252 |21mr|http-builder-0.7.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          http-builder
Version:       0.7.2
Release:       7
Summary:       HTTP client framework for Groovy
License:       ASL 2.0
URL:           https://github.com/jgritman/httpbuilder
Source0:       https://github.com/jgritman/httpbuilder/archive/%{name}-%{version}.tar.gz
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sf.json-lib:json-lib)
BuildRequires: mvn(net.sourceforge.nekohtml:nekohtml)
BuildRequires: mvn(oauth.signpost:signpost-commonshttp4)
BuildRequires: mvn(oauth.signpost:signpost-core)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
BuildRequires: mvn(org.codehaus.groovy:groovy)
BuildRequires: mvn(org.codehaus.groovy:groovy-json)
BuildRequires: mvn(org.codehaus.groovy:groovy-xml)
BuildRequires: mvn(xerces:xercesImpl)
BuildRequires: mvn(xml-resolver:xml-resolver)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A builder-style HTTP client API, including authentication, and extensible
handling of common content-types such as JSON and XML. It is built on top of
Apache's HttpClient.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n httpbuilder-%{name}-%{version}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :gmaven-plugin
%pom_add_plugin org.codehaus.gmavenplus:gmavenplus-plugin:1.5 . "
 <executions>
  <execution>
   <goals>
    <goal>testGenerateStubs</goal>
   </goals>
  </execution>
 </executions>"

# Useless tasks
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-surefire-report-plugin

# Use system setting to avoid doclint errors
%pom_remove_plugin :maven-javadoc-plugin

# org.apache.maven.wagon:wagon-webdav-jackrabbit:1.0-beta-7
%pom_xpath_remove pom:build/pom:extensions

%pom_change_dep log4j: ::1.2.17
# net.sf.json-lib:json-lib:2.3:jdk15:
%pom_xpath_remove "pom:dependency[pom:artifactId = 'json-lib']/pom:classifier"

# com.google.appengine:appengine-api-1.0-sdk:1.3.8
%pom_remove_dep :appengine-api-1.0-sdk
rm -r src/main/java/groovyx/net/http/thirdparty \
 src/test/groovy/groovyx/net/http/thirdparty

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

# package groovy....  does not exist
%pom_add_dep org.codehaus.groovy:groovy-xml
%pom_add_dep org.codehaus.groovy:groovy-json

%mvn_file org.codehaus.groovy.modules.%{name}:%{name} %{name}

# AssertionError: Expected exception: java.lang.IllegalArgumentException
rm src/test/groovy/groovyx/net/http/HTTPBuilderTest.groovy
# AssertionError: Expected exception: java.net.SocketTimeoutException
rm src/test/groovy/groovyx/net/http/HttpURLClientTest.groovy

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
# README file contains also project license
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13253 |21mr|httpcomponents-asyncclient-4.1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          httpcomponents-asyncclient
Version:       4.1.2
Release:       3
Summary:       Apache components to build asynchronous client side HTTP services
Group:         Development/Java
License:       ASL 2.0
URL:           http://hc.apache.org/
Source0:       http://www.apache.org/dist/httpcomponents/httpasyncclient/source/%{name}-%{version}-src.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpclient-cache)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.apache.httpcomponents:httpcore-nio)
BuildRequires: mvn(org.apache.httpcomponents:project:pom:)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.mockito:mockito-core)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Asynch HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on
HttpCore NIO and HttpClient components. It is a complementary module to
Apache HttpClient intended for special cases where ability to handle
a great number of concurrent connections is more important than performance
in terms of a raw data throughput.

%package cache
Summary:       Apache HttpAsyncClient Cache

%description cache
This package provides client side caching for %{name}.

%package parent
Summary:       Apache HttpAsyncClient Parent POM

%description parent
Apache HttpAsyncClient Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
# Cleanup
find . -name "*.class" -delete
find . -name "*.jar" -type f -delete

# Use unavalable org.apache.httpcomponents:hc-stylecheck:jar:1
%pom_remove_plugin :maven-checkstyle-plugin
# Unwanted
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
# Unavalable
%pom_remove_plugin :clirr-maven-plugin

%pom_disable_module httpasyncclient-osgi

# Prevent build failure
%pom_remove_plugin -r :apache-rat-plugin

# Unavalable test deps: org.easymock:easymockclassextension org.apache.httpcomponents:httpclient-cache:test-jar
%pom_xpath_remove "pom:dependency[pom:type = 'test-jar']" httpasyncclient-cache
%pom_xpath_remove "pom:dependency[pom:scope = 'test']" httpasyncclient-cache
rm -r httpasyncclient-cache/src/test/java

# Add OSGi support
for p in httpasyncclient httpasyncclient-cache; do
 %pom_xpath_set "pom:project/pom:packaging" bundle ${p}
 %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 ${p} "
 <extensions>true</extensions>
 <configuration>
  <instructions>
    <Export-Package>*</Export-Package>
  </instructions>
  <excludeDependencies>true</excludeDependencies>
 </configuration>"
done

%mvn_file org.apache.httpcomponents:httpasyncclient httpasyncclient
%mvn_file org.apache.httpcomponents:httpasyncclient-cache httpasyncclient-cache

%build

%mvn_build -f -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-httpasyncclient
%doc README.txt RELEASE_NOTES.txt
%license LICENSE.txt NOTICE.txt

%files cache -f .mfiles-httpasyncclient-cache
%license LICENSE.txt NOTICE.txt

%files parent -f .mfiles-%{name}
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13254 |21mr|httpcomponents-client-4.5.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with        memcached
%bcond_with        ehcache

Name:              httpcomponents-client
Summary:           HTTP agent implementation based on httpcomponents HttpCore
Version:           4.5.7
Release:           3
License:           ASL 2.0
URL:               http://hc.apache.org/
Source0:           http://www.apache.org/dist/httpcomponents/httpclient/source/%{name}-%{version}-src.tar.gz

Patch0:            0001-Use-system-copy-of-effective_tld_names.dat.patch
Patch1:            0002-Port-to-mockito-2.patch

Group:          Development/Java
BuildArch:         noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:     maven-local
BuildRequires:     mvn(commons-codec:commons-codec)
BuildRequires:     mvn(commons-logging:commons-logging)
BuildRequires:     mvn(junit:junit)
%if %{with ehcache}
BuildRequires:     mvn(net.sf.ehcache:ehcache-core)
%endif
%if %{with memcached}
BuildRequires:     mvn(net.spy:spymemcached)
%endif
BuildRequires:     mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:     mvn(org.apache.httpcomponents:httpcomponents-parent:pom:)
BuildRequires:     mvn(org.apache.httpcomponents:httpcore)
BuildRequires:     mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:     mvn(org.easymock:easymock)
BuildRequires:     mvn(org.mockito:mockito-core)

BuildRequires:     publicsuffix-list
Requires:          publicsuffix-list

Obsoletes:         %{name}-tests < 4.4

%description
HttpClient is a HTTP/1.1 compliant HTTP agent implementation based on
httpcomponents HttpCore. It also provides reusable components for
client-side authentication, HTTP state management, and HTTP connection
management. HttpComponents Client is a successor of and replacement
for Commons HttpClient 3.x. Users of Commons HttpClient are strongly
encouraged to upgrade.

%package        cache
Summary:        Cache module for %{name}

%description    cache
This package provides client side caching for %{name}.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1

%mvn_package :::tests: __noinstall
%mvn_package :httpclient-cache cache

# Remove optional build deps not available in Fedora
%pom_disable_module httpclient-osgi
%pom_disable_module httpclient-win
%pom_remove_plugin :docbkx-maven-plugin
%pom_remove_plugin :clirr-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin

# Fails due to strict crypto policy - uses DSA in test data
rm httpclient/src/test/java/org/apache/http/conn/ssl/TestSSLSocketFactory.java

# Don't compile/run httpclient-cache tests - they are incompatible with EasyMock 3.3
%pom_remove_dep org.easymock:easymockclassextension
for dep in org.easymock:easymockclassextension org.slf4j:slf4j-jcl; do
    %pom_remove_dep $dep httpclient-cache
done
rm -rf httpclient-cache/src/test

%pom_remove_plugin :download-maven-plugin httpclient

%pom_xpath_inject "pom:archive" "
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>"

%pom_xpath_inject pom:build/pom:plugins "
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <executions>
        <execution>
          <id>bundle-manifest</id>
          <phase>process-classes</phase>
          <goals>
            <goal>manifest</goal>
          </goals>
        </execution>
      </executions>
    </plugin>"

%pom_xpath_inject pom:build "
<pluginManagement>
  <plugins>
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <configuration>
        <instructions>
          <Export-Package>org.apache.http.*,!org.apache.http.param</Export-Package>
          <Private-Package></Private-Package>
          <_nouses>true</_nouses>
          <Import-Package>!org.apache.avalon.framework.logger,!org.apache.log,!org.apache.log4j,*</Import-Package>
        </instructions>
        <excludeDependencies>true</excludeDependencies>
      </configuration>
    </plugin>
  </plugins>
</pluginManagement>
" httpclient

%pom_xpath_inject pom:build "
<pluginManagement>
  <plugins>
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <extensions>true</extensions>
      <configuration>
        <instructions>
          <Export-Package>*</Export-Package>
          <Import-Package>net.sf.ehcache;resolution:=optional,net.spy.memcached;resolution:=optional,*</Import-Package>
          <Private-Package></Private-Package>
          <_nouses>true</_nouses>
        </instructions>
        <excludeDependencies>true</excludeDependencies>
      </configuration>
    </plugin>
  </plugins>
</pluginManagement>" httpclient-cache

# requires network
rm httpclient/src/test/java/org/apache/http/client/config/TestRequestConfig.java

%if %{without memcached}
rm -r httpclient-cache/src/*/java/org/apache/http/impl/client/cache/memcached
%pom_remove_dep :spymemcached httpclient-cache
%endif
%if %{without ehcache}
rm -r httpclient-cache/src/*/java/org/apache/http/impl/client/cache/ehcache
%pom_remove_dep :ehcache-core httpclient-cache
%endif

%build
%mvn_file ":{*}" httpcomponents/@1

%mvn_build

%install
%mvn_install


%files -f .mfiles
%doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt

%files cache -f .mfiles-cache

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13255 |21mr|httpcomponents-core-4.4.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           httpcomponents-core
Summary:        Set of low level Java HTTP transport components for HTTP services
Version:        4.4.10
Release:        6
License:        ASL 2.0
URL:            http://hc.apache.org/
Source0:        http://www.apache.org/dist/httpcomponents/httpcore/source/httpcomponents-core-%{version}-src.tar.gz
# Expired test certificates. Backported from upstream commit 8caeb927a.
Patch0:         0001-Re-generated-expired-test-certificates.patch
Patch1:         0002-Port-to-mockito-2.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.httpcomponents:httpcomponents-parent:pom:)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.mockito:mockito-core)


%description
HttpCore is a set of low level HTTP transport components that can be
used to build custom client and server side HTTP services with a
minimal footprint. HttpCore supports two I/O models: blocking I/O
model based on the classic Java I/O and non-blocking, event driven I/O
model based on Java NIO.

The blocking I/O model may be more appropriate for data intensive, low
latency scenarios, whereas the non-blocking model may be more
appropriate for high latency scenarios where raw data throughput is
less important than the ability to handle thousands of simultaneous
HTTP connections in a resource efficient manner.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.


%prep
%setup -q

%patch0 -p1
%patch1 -p1

# Random test failures on ARM -- 100 ms sleep is not eneough on this
# very performant arch, lets make it 2 s
sed -i '/Thread.sleep/s/100/2000/' httpcore-nio/src/test/java/org/apache/http/nio/integration/TestHttpAsyncHandlers.java

%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin

# we don't need these artifacts right now
%pom_disable_module httpcore-osgi
%pom_disable_module httpcore-ab

# OSGify modules
for module in httpcore httpcore-nio; do
    %pom_xpath_remove "pom:project/pom:packaging" $module
    %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" $module
    %pom_remove_plugin :maven-jar-plugin $module
    %pom_xpath_inject "pom:build/pom:plugins" "
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <extensions>true</extensions>
          <configuration>
            <instructions>
              <Export-Package>*</Export-Package>
              <Private-Package></Private-Package>
              <Automatic-Module-Name>org.apache.httpcomponents.$module</Automatic-Module-Name>
              <_nouses>true</_nouses>
            </instructions>
          </configuration>
        </plugin>" $module
done

# install JARs to httpcomponents/ for compatibility reasons
# several other packages expect to find the JARs there
%mvn_file ":{*}" httpcomponents/@1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt README.txt RELEASE_NOTES.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13256 |21mr|httpcomponents-project-11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           httpcomponents-project
Summary:        Common POM file for HttpComponents
Version:        11
Release:        2
License:        ASL 2.0
URL:            http://hc.apache.org/
Source0:        http://archive.apache.org/dist/httpcomponents/httpcomponents-parent/%{version}/httpcomponents-parent-%{version}.pom
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)


%description
Common Maven POM  file for HttpComponents. This project should be
required only for building dependant packages with Maven. Please don't
use it as runtime requirement.

%prep
%setup -q -T -c %{name}

cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} .

%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :clirr-maven-plugin
%pom_remove_plugin :docbkx-maven-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :apache-rat-plugin

# Version <= 8 had this AID
%mvn_alias : :project

%build
%mvn_file  : %{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13257 |21mr|http-parser-2.9-0.20201002gitec8b5e.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# we use the upstream version from http_parser.h as the SONAME
%global somajor 2
%global sominor 9

%global git_date 20201002
%global commit ec8b5ee63f0e51191ea43bb0c6eac7bfbff3141d
%global git_commit_hash ec8b5e
%global github_seq 7

%define libname %mklibname http_parser %{somajor}
%define devname http-parser-devel

%define strictlibname %mklibname http_parser_strict %{somajor}

Name:           http-parser
Version:        %{somajor}.%{sominor}
Release:        0.%{git_date}git%{git_commit_hash}.1
Summary:        HTTP request/response parser for C

Group:          System/Libraries
License:        MIT
URL:            http://github.com/nodejs/http-parser
# download from https://github.com/joyent/http-parser/tarball/%%{version}
Source0:        https://github.com/nodejs/http-parser/archive/%{commit}.zip?/%{name}-%{git_commit_hash}.zip

# Build shared library with SONAME using gyp and remove -O flags so optflags take over
# TODO: do this nicely upstream
Patch1:		http-parser-gyp-sharedlib.patch

BuildRequires:	gyp

%description
This is a parser for HTTP messages written in C. It parses both requests and
responses. The parser is designed to be used in performance HTTP applications.
It does not make any syscalls nor allocations, it does not buffer data, it can
be interrupted at anytime. Depending on your architecture, it only requires
about 40 bytes of data per message stream (in a web server that is per
connection).


%package -n %{devname}
Group:          Development/Other
Summary:        Development headers and libraries for http-parser
Requires:       %{libname} = %{EVRD}
Requires:       %{strictlibname} = %{EVRD}

%description -n %{devname}
Development headers and libraries for http-parser.

%package -n %{libname}
Summary:    %{summary}
Group:      System/Libraries

%description -n %{libname}
This is a parser for HTTP messages written in C. It parses both requests and
responses. The parser is designed to be used in performance HTTP applications.
It does not make any syscalls nor allocations, it does not buffer data, it can
be interrupted at anytime. Depending on your architecture, it only requires
about 40 bytes of data per message stream (in a web server that is per
connection).

%package -n %{strictlibname}
Summary:    %{summary}
Group:      System/Libraries

%description -n %{strictlibname}
Http-parser strict library.

%prep
%autosetup -p1 -n %{name}-%{commit}


%build
# TODO: fix -fPIC upstream
export CFLAGS='%{optflags} -fPIC'
gyp -f make --depth=`pwd` http_parser.gyp
%make BUILDTYPE=Release 


%install
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_libdir}

install -pm644 http_parser.h %{buildroot}%{_includedir}

#install regular variant
install out/Release/lib.target/libhttp_parser.so.%{somajor} %{buildroot}%{_libdir}/libhttp_parser.so.%{somajor}.%{sominor}
ln -sf libhttp_parser.so.%{somajor}.%{sominor} %{buildroot}%{_libdir}/libhttp_parser.so.%{somajor}
ln -sf libhttp_parser.so.%{somajor}.%{sominor} %{buildroot}%{_libdir}/libhttp_parser.so

#install strict variant
install out/Release/lib.target/libhttp_parser_strict.so.%{somajor} %{buildroot}%{_libdir}/libhttp_parser_strict.so.%{somajor}.%{sominor}
ln -sf libhttp_parser_strict.so.%{somajor}.%{sominor} %{buildroot}%{_libdir}/libhttp_parser_strict.so.%{somajor}
ln -sf libhttp_parser_strict.so.%{somajor}.%{sominor} %{buildroot}%{_libdir}/libhttp_parser_strict.so


%check
export LD_LIBRARY_PATH='./out/Release/lib.target' 
./out/Release/test-nonstrict
./out/Release/test-strict


%files
%doc AUTHORS LICENSE-MIT README.md

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libhttp_parser.so
%{_libdir}/libhttp_parser_strict.so

%files -n %{libname}
%{_libdir}/libhttp_parser.so.*

%files -n %{strictlibname}
%{_libdir}/libhttp_parser_strict.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13258 |21mr|httpunit-1.7-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           httpunit
Version:        1.7
Release:        29
Epoch:          0
Summary:        Automated web site testing toolkit
License:        MIT and ASL 2.0
# ./create-tarball.sh %%{version}
Source0:        httpunit-1.7-clean.tar.gz
Source1:        http://repo1.maven.org/maven2/httpunit/httpunit/1.7/httpunit-1.7.pom
# replacement for non-free XML DTD files
Source2:        https://raw.github.com/apache/tomcat/TOMCAT_7_0_42/java/javax/servlet/resources/web-app_2_2.dtd
Source3:        https://raw.github.com/apache/tomcat/TOMCAT_7_0_42/java/javax/servlet/resources/web-app_2_3.dtd
Source4:        https://raw.github.com/apache/tomcat/TOMCAT_7_0_42/java/javax/servlet/resources/web-app_2_4.xsd
# sources 2-4 are licensed under ASL 2.0
Source5:        http://www.apache.org/licenses/LICENSE-2.0.txt
Patch1:         %{name}-rhino-1.7.7.patch
Patch2:         %{name}-servlettest.patch
Patch3:         %{name}-servlet31.patch
Patch4:         junit4.patch
URL:            http://httpunit.sourceforge.net/

BuildRequires:  jpackage-utils >= 0:1.6
BuildRequires:  ant >= 0:1.6
BuildRequires:  nekohtml
BuildRequires:  jtidy
BuildRequires:  junit >= 0:3.8
BuildRequires:  mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires:  javamail >= 0:1.3
BuildRequires:  rhino
BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  javapackages-local

Requires:       junit >= 0:3.8
Requires:       glassfish-servlet-api
# As of 1.5, requires either nekohtml or jtidy, and prefers nekohtml.
Requires:       nekohtml
Requires:       rhino

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Obsoletes:      %{name}-demo < %{epoch}:%{version}

%description
HttpUnit emulates the relevant portions of browser behavior, including form
submission, JavaScript, basic http authentication, cookies and automatic page
redirection, and allows Java test code to examine returned pages either as
text, an XML DOM, or containers of forms, tables, and links.
A companion framework, ServletUnit is included in the package.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}

%package        doc
Summary:        Documentation for %{name}
Requires:       %{name}-javadoc

%description    doc
Documentation for %{name}

%prep
%setup -q
# patch to work with rhino 1.7.7
%patch1 -p1
# add META-INF
%patch2
%patch3 -p1
%patch4

sed -i -e 's|destdir|encoding="iso-8859-1" destdir|g' build.xml

sed -i -e 's|setCharEncoding( org.w3c.tidy.Configuration.UTF8 )|setInputEncoding("UTF-8")|g' src/com/meterware/httpunit/parsing/JTidyHTMLParser.java

# remove all binary libs and javadocs
find . -name "*.jar" -exec rm -f {} \;
rm -rf doc/api

ln -s \
  %{_javadir}/junit.jar \
  %{_javadir}/jtidy.jar \
  %{_javadir}/nekohtml.jar \
  %{_javadir}/glassfish-servlet-api.jar \
  %{_javadir}/js.jar \
  %{_javadir}/xerces-j2.jar \
  jars

mv %{SOURCE1} pom.xml
mv %{SOURCE2} META-INF/
mv %{SOURCE3} META-INF/
mv %{SOURCE4} META-INF/
mv %{SOURCE5} LICENSE-ASL


%build
export CLASSPATH=$(build-classpath javamail)
export ANT_OPTS="-Dfile.encoding=iso-8859-1"
ant -Dbuild.compiler=modern -Dbuild.sysclasspath=last \
  jar javadocs test servlettest

%install
%mvn_file : %{name}
%mvn_artifact pom.xml lib/%{name}.jar
%mvn_install -J doc/api/


# Avoid having api in doc
rm -rf doc/api

# Fix link between doc and javadoc
pushd doc
ln -sf %{_javadocdir}/%{name} api
popd

%files -f .mfiles
%doc LICENSE-ASL

%files javadoc -f .mfiles-javadoc
%doc LICENSE-ASL

%files doc
%doc doc/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13259 |21mr|hunspell-1.7.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 1.7
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Spell checker and morphological analyzer library
Name:		hunspell
Version:	1.7.2
Release:	3
License:	GPLv2+
Group:		System/Internationalization
Url:		http://hunspell.sourceforge.net/
Source0:	https://github.com/hunspell/hunspell/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# (tpg) Mdv's specific path to myspell dictionaries
Patch0:		hunspell-1.4.1-dict-path.patch
BuildRequires:	bison
BuildRequires:	libtool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(readline)

%description
Hunspell is a spell checker and morphological analyzer library and program
designed for languages with rich morphology and complex word compounding
or character encoding.

%files -f %{name}.lang
%{_bindir}/*
%lang(hu) %{_mandir}/hu/man1/*
%{_mandir}/man1/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc AUTHORS NEWS README.md
%license COPYING
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%package filesystem
Summary:	Provides directory for %{name} dictionaries
Group:		System/Internationalization

%description filesystem
Provides directory for hunspell dictionaries

%files filesystem
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure	\
	--disable-rpath		\
	--disable-static	\
	--with-experimental	\
	--with-readline		\
	--with-ui
%make

pushd po
make update-gmo
popd

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
%makeinstall_std

#add compat symlink libhuspell.so
ln -s lib%{name}-%{api}.so %{buildroot}%{_libdir}/lib%{name}.so

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13260 |21mr|hwdata-0.380-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hardware identification and configuration data
Name:		hwdata
Version:	0.380
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://github.com/vcrhonek/hwdata
Source0:	https://github.com/vcrhonek/hwdata/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	sdio.ids
BuildArch:	noarch

%description
hwdata contains various hardware identification and configuration data,
such as the pci.ids and usb.ids databases.

%files
%license LICENSE
%doc COPYING
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_datadir}/*.ids
%{_datadir}/misc/*.ids
%{_datadir}/pkgconfig/*.pc

#------------------------------------------------------------------

%prep
%autosetup -p1
%configure

%build
# nothing to build

%install
make install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_datadir}/misc
cp -f %{SOURCE1} %{buildroot}%{_datadir}/%{name}/

# kmod-compat provides the equivalent black lists of the drivers
# in /etc/modprobe.d already.
rm -f %{buildroot}%{_libdir}/modprobe.d/dist-blacklist.conf

###compatibilty symlink, remove when it is no longer needed
cd %{buildroot}%{_datadir}/
ln -s %{name}/usb.ids usb.ids
ln -s %{name}/pci.ids pci.ids
ln -s %{name}/pnp.ids pnp.ids
ln -s ../%{name}/pnp.ids misc/pnp.ids
###end of it

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13261 |21mr|hwinfo-21.80-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 21
%define libname %mklibname hd %{major}
%define devname %mklibname hd -d

Summary:	Hardware Library
Name:		hwinfo
License:	GPLv2+
Group:		System/Kernel and hardware
Version:	21.80
Release:	1
Url:		http://software.opensuse.org
Source0:	https://github.com/openSUSE/hwinfo/archive/%{version}.tar.gz?/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	flex
%ifarch %{ix86} x86_64
BuildRequires:	libx86emu-devel
%endif
BuildRequires:	perl-XML-Parser
BuildRequires:	perl-XML-Writer
BuildRequires:	udev
BuildRequires:	pkgconfig(uuid)
Patch100:	0000-add-e2k-architecture.patch

%description
A simple program that lists results from the hardware detection
library.

%files
%doc README*.md
%license COPYING
%{_datadir}/%{name}/*
%dir %{_localstatedir}/lib/hardware
%dir %{_localstatedir}/lib/hardware/udi
%{_mandir}/man1/getsysinfo.1*
%{_mandir}/man1/mk_isdnhwdb.1*
%{_mandir}/man8/*
%{_sbindir}/%{name}
%{_sbindir}/mk_isdnhwdb
%{_sbindir}/getsysinfo

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraies for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries for %{name}.

%files -n %{libname}
%license COPYING
%{_libdir}/libhd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Hardware Detection Library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libhd-devel = %{EVRD}

%description -n %{devname}
This library collects information about the hardware installed on a system.

%files -n %{devname}
%doc doc/libhd/html
%{_includedir}/hd.h
%{_libdir}/libhd.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man1/check_hd.1*
%{_mandir}/man1/convert_hd.1*
%{_sbindir}/check_hd
%{_sbindir}/convert_hd

#----------------------------------------------------------------------------

%prep
%setup -q
echo %{version} >VERSION

%ifarch %{e2k}
%patch100 -p1

# -MG is an unrecognized option for lcc
sed -i Makefile.common \
	-e 's, -MG , ,' \
	-e 's,.depend: $(CFILES),& version.h lex.yy.c isdn_cdb.h,'
%endif

%build
make	\
	HWINFO_VERSION=%{version}	\
	LDFLAGS="%{optflags} -Lsrc"	\
	LIBDIR=%{_libdir}
make doc

%install
%makeinstall_std	\
	HWINFO_VERSION=%{version}	\
	LIBDIR=%{_libdir}

install -d -m 755 %{buildroot}%{_mandir}/man8
install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 doc/check_hd.1 %{buildroot}%{_mandir}/man1/
install -m 644 doc/convert_hd.1 %{buildroot}%{_mandir}/man1/
install -m 644 doc/getsysinfo.1 %{buildroot}%{_mandir}/man1/
install -m 644 doc/mk_isdnhwdb.1 %{buildroot}%{_mandir}/man1/
install -m 644 doc/%{name}.8 %{buildroot}%{_mandir}/man8/
mkdir -p %{buildroot}%{_var}/lib/hardware/udi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13262 |21mr|hwloc-2.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define _disable_rebuild_configure %nil

%define major 15
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Displays the hardware topology in convenient formats
Name:		hwloc
Version:	2.7.1
Release:	2
License:	BSD
Group:		System/Base
Url:		http://www.open-mpi.org/
Source0:	http://www.open-mpi.org/software/hwloc/v%{url_ver}/downloads/hwloc-%{version}.tar.bz2
Patch0:		CVE-2022-47022.patch
BuildRequires:	bzip2-devel
%ifnarch %{arm}
BuildRequires:	numa-devel
%endif
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(zlib)

%description
The Portable Hardware Locality (hwloc) software package provides a portable
abstraction (across OS, versions, architectures, ...) of the hierarchical
topology of modern architectures, including NUMA memory nodes, sockets, shared
caches, cores and simultaneous multithreading. It also gathers various system
attributes such as cache and memory information. It primarily aims at helping
applications with gathering information about modern computing hardware so as
to exploit it accordingly and efficiently.

%files
%doc AUTHORS COPYING NEWS README
%{_mandir}/man1/hwloc*
%{_mandir}/man1/lstopo*
%{_mandir}/man7/hwloc*
%{_bindir}/hwloc*
%{_bindir}/lstopo
%{_bindir}/lstopo-no-graphics
%{_datadir}/hwloc
%{_datadir}/applications/*
%{_datadir}/bash-completion/completions/hwloc
%ifarch %{ix86} %{x86_64}
%{_sbindir}/hwloc*
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries
Conflicts:	%{name} < 1.5

%description -n %{libname}
This package contains shared %{name} library.

%files -n %{libname}
%{_libdir}/libhwloc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%files -n %{devname}
%doc %{_mandir}/man3/HWLOC_*.3*
%doc %{_mandir}/man3/hwloc_*.3*
%doc %{_mandir}/man3/hwlocality_*.3*
%{_includedir}/hwloc/
%{_includedir}/hwloc.h
%{_libdir}/libhwloc.so
%{_libdir}/pkgconfig/hwloc.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install
rm -rf %{buildroot}/%{_datadir}/doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13263 |21mr|hw-probe-1.6.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Hardware Probe Tool
Name:		hw-probe
Version:	1.6.5
Release:	2
Group:		Development/Other
License:	LGPLv2.1+ or BSD
Url:		https://linux-hardware.org
Source0:	https://github.com/linuxhw/hw-probe/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	perl-Digest-SHA
Requires:	perl-libwww-perl
Requires:	curl
Requires:	usermode-consoleonly
Requires:	hwinfo
Requires:	dmidecode
Requires:	pciutils
Requires:	usbutils
Requires:	smartmontools
Recommends:	hdparm
Recommends:	sysstat
Recommends:	acpica
Recommends:	memtester
Recommends:	cpuid
# Do not pull graphical stuff on servers without graphics
# task-x11 is a quite reliable indicator of a desktop system
Recommends:	(edid-decode if task-x11)
Recommends:	(mesa-demos if task-x11)
# rfkill lists wireless devices, they are usually used on desktop systems only
Recommends:	(rfkill if task-x11)
# i2c bus is normally used on tablets, IoT etc, where graphical desktop is ususlly used
# XXX I am not sure //mikhailnov, 26.08.2021
Recommends:	(i2c-tools if task-x11)
# the same for "plug'n'play" devices probably
Recommends:	(pnputils if task-x11)
# VA-API and VDPAU can make sense on servers, but very rarely
Recommends:	(%{_bindir}/vainfo if task-x11)
Recommends:	(%{_bindir}/vdpauinfo if task-x11)

BuildArch:	noarch

%description
A tool to probe for hardware, check operability and find drivers.
This tool collects data and can upload it into the database
https://linux-hardware.org

%prep
%autosetup -p1
chmod 0644 *.md

%build
# Nothing to build yet

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}%{_prefix}
make install prefix=%{_prefix} DESTDIR=%{buildroot}

# consolehelper config
mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}
ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
cat > %{buildroot}%{_sysconfdir}/pam.d/%{name}  <<EOF
#%PAM-1.0
auth		include		config-util-user
account		include		config-util-user
session		include		config-util-user
EOF

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<EOF
USER=<user>
PROGRAM=/usr/sbin/%{name}
FALLBACK=false
SESSION=true
EOF

%files
%defattr(-,root,root,-)
# newer files in git after v1.5, TODO: uncomment them on v1.6
#license LICENSE.md LICENSES/BSD-4-Clause LICENSES/LGPL-2.1-or-later
#doc NEWS.md
%doc README.md
%{_bindir}/%{name}
%{_sbindir}/%{name}
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13264 |21mr|hw-probe-gui-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI for ROSA HW Probe Tool
Name:		hw-probe-gui
Version:	1.4
Release:	1
Group:		Development/Other
License:	GPLv2+ or LGPLv2+
URL:		https://linux-hardware.org
Source0:	hw-probe.desktop
Source1:	dialog.sh
Requires:	hw-probe
Requires:	kdialog
BuildArch:	noarch

%description
Desktop file and simple graphical UI for ROSA HW Probe Tool.

%prep

%build
# Nothing to build yet

%install

# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications/

# dialog
mkdir -p %{buildroot}%{_bindir}
install -m0755 %{SOURCE1} %{buildroot}%{_bindir}/hw-probe-gui-kdialog

%files
%{_datadir}/applications/hw-probe.desktop
%{_bindir}/hw-probe-gui-kdialog

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13265 |21mr|hw-probe-pyqt5-gui-1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Next-gen GUI for Hardware Probe Tool
Name:		hw-probe-pyqt5-gui
Version:	1.1
Release:	5
License:	BSD-2-Clause 
Group:		Development/Other
Url:		https://github.com/linuxhw/hw-probe-pyqt5-gui
Source0:	https://github.com/linuxhw/%{name}/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	hw-probe-pyqt5-gui.desktop
Requires:	hw-probe >= 1.6.1
Requires:	python3-qt5-core
Requires:	python3-qt5-gui
Requires:	python3-qt5-widgets
Requires:	python3-translate
BuildArch:	noarch

%description
Next-gen PyQt5 based GUI for Hardware Probe Tool.

%files
%doc README.md
%license LICENSE
%{_bindir}/hardware-probe
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1
chmod 0644 *.md
mv Hardware\ Probe hardware-probe

%build

%install
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/applications/

mkdir -p %{buildroot}%{_datadir}/%{name}
cp -rf hardware-probe Resources %{buildroot}%{_datadir}/%{name}/

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/hardware-probe <<EOF
#!/bin/sh
env NO_SUDO=1 sh %{_datadir}/%{name}/hardware-probe "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/hardware-probe

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13266 |21mr|hxtools-20211204-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A collection of several multipurpose scripts and tools
Name:		hxtools
Version:	20211204
Release:	1
License:	GPLv2+
Group:		File tools
Url:			http://inai.de/projects/hxtools/
Source0:	http://inai.de/files/hxtools/%{name}-%{version}.tar.xz
BuildRequires:	libcap-devel
BuildRequires:	pkgconfig(libHX) >= 3.17
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(mount) >= 2.19
BuildRequires:	pkgconfig(xcb)
Recommends:	mc

%description
A collection of multipurpose scripts and tools by the developer Jan Engelhardt
(http://inai.de) used in other projects.

%files
%doc LICENSE.GPL2 LICENSE.GPL3 LICENSE.WTFPL LICENSES.txt
%config(noreplace) %{_sysconfdir}/hxloginpref.conf
%{_libexecdir}/%{name}/doxygen-kerneldoc-filter
%{_datadir}/%{name}/hx*
%{_mandir}/man7/%{name}.7*

#----------------------------------------------------------------------------

%package extract
Summary:	Hxtools scripts and binaries for game packaging
Group:		Games/Other

%description extract
Hxtools scripts and binaries for game packaging.

%files extract
%{_bindir}/extract_*
%{_mandir}/man1/extract*.1*

#----------------------------------------------------------------------------

%package fonts
Summary:	Hxtools fonts
Group:		System/Fonts/X11 bitmap

%description fonts
Hxtools fonts.

%files fonts
%doc kbd/README
%{_bindir}/vfontas
%{_datadir}/kbd
%{_datadir}/%{name}/rfc*
%{_mandir}/man1/vfontas.1*

#----------------------------------------------------------------------------

%package git
Summary:	Hxtools utilities dedicated to git
Group:		Development/Tools
Requires:	coreutils
Requires:	git
Requires:	less

%description git
Hxtools utilities dedicated to git.

%files git
%{_bindir}/git-*
%{_bindir}/pesubst
%{_datadir}/%{name}/gitconfig
%{_mandir}/man1/pesubst.1*
%{_mandir}/man1/git-author-stat.1*
%{_mandir}/man1/git-forest.1*
%{_mandir}/man1/git-revert-stats.1*
%{_mandir}/man1/git-track.1*

#----------------------------------------------------------------------------

%package sound
Summary:	Hxtools scripts and binaries for audio processing
Group:		Sound
Recommends:	ossp
Recommends:	fluidsynth

%description sound
Hxtools scripts and binaries for audio processing.

%files sound
%{_bindir}/aumeta
%{_bindir}/bsvplay
%{_bindir}/gpsh
%{_bindir}/hcdplay
%{_bindir}/mod2opus
%{_bindir}/pcmdiff
%{_bindir}/pcmmix
%{_bindir}/qplay
%{_mandir}/man1/bsvplay.1*
%{_mandir}/man1/aumeta.1*
%{_mandir}/man1/hcdplay.1*
%{_mandir}/man1/mod2opus.1*
%{_mandir}/man1/pcmdiff.1*
%{_mandir}/man1/pcmmix.1*
%{_mandir}/man1/qplay.1*

#----------------------------------------------------------------------------

%package system
Summary:	Hxtools scripts and binaries dedicated to system
Group:		System/Base
Requires:	sudo
Recommends:	wdiff

%description system
Hxtools scripts and binaries dedicated to system.

%files system
%{_bindir}/declone
%{_bindir}/ofl
%{_bindir}/pmap_dirty
%{_bindir}/proc_iomem_count
%{_bindir}/proc_stat_parse
%{_bindir}/su1
%{_bindir}/sysinfo
%{_bindir}/xcp
%{_libexecdir}/%{name}/clock_info
%{_libexecdir}/%{name}/cctypeinfo
%{_libexecdir}/%{name}/fd0ssh
%{_libexecdir}/%{name}/hxnetload
%{_libexecdir}/%{name}/logontime
%{_libexecdir}/%{name}/psthreads
%{_libexecdir}/%{name}/paddrspacesize
%{_libexecdir}/%{name}/proc*
%{_libexecdir}/%{name}/utmp_register
%{_mandir}/man1/cctypeinfo.1*
%{_mandir}/man1/clock_info.1*
%{_mandir}/man1/declone.1*
%{_mandir}/man1/fd0ssh.1*
%{_mandir}/man1/ofl.1*
%{_mandir}/man1/psthreads.1*
%{_mandir}/man1/sysinfo.1*
%{_mandir}/man1/xcp.1*
%{_mandir}/man8/hxnetload.8*
%{_mandir}/man8/logontime.8*
%{_mandir}/man8/utmp_register.8*

#----------------------------------------------------------------------------

%package utils
Summary:	The hxtools scripts and tools
Group:		File tools
Requires:	fontforge
Requires:	xterm

%description utils
The hxtools scripts and tools.

%files utils
%{_bindir}/bin2c
%{_bindir}/checkbrack
%{_bindir}/cwdiff
%{_bindir}/fxterm
%{_bindir}/gxxdm
%{_bindir}/pegrep
%{_bindir}/qpdecode
%{_bindir}/qtar
%{_bindir}/rot13
%{_bindir}/spec-beautifier
%{_bindir}/tailhex
%{_bindir}/wktimer
%{_libexecdir}/%{name}/diff2php
%{_libexecdir}/%{name}/ldif-duplicate-attrs
%{_libexecdir}/%{name}/ldif-leading-spaces
%{_libexecdir}/%{name}/mailsplit
%{_libexecdir}/%{name}/peicon
%{_libexecdir}/%{name}/recursive_lower
%{_libexecdir}/%{name}/rezip
%{_libexecdir}/%{name}/sourcefuncsize
%{_libexecdir}/%{name}/vcsaview
%{_mandir}/man1/bin2c.1*
%{_mandir}/man1/checkbrack.1*
%{_mandir}/man1/cwdiff.1*
%{_mandir}/man1/diff2php.1*
%{_mandir}/man1/fxterm.1*
%{_mandir}/man1/ldif-duplicate-attrs.1*
%{_mandir}/man1/mailsplit.1*
%{_mandir}/man1/pegrep.1*
%{_mandir}/man1/peicon.1*
%{_mandir}/man1/qtar.1*
%{_mandir}/man1/rezip.1*
%{_mandir}/man1/rot13.1*
%{_mandir}/man1/recursive_lower.1*
%{_mandir}/man1/spec-beautifier.1*
%{_mandir}/man1/sourcefuncsize.1*
%{_mandir}/man1/tailhex.1*
%{_mandir}/man8/vcsaview.8*
%{_mandir}/man1/wktimer.1*

#----------------------------------------------------------------------------

%package video
Summary:	Hxtools scripts and binaries for video processing
Group:		Video
Requires:	ffmpeg

%description video
Hxtools scripts and binaries for video processing.

%files video
%{_bindir}/mkvappend
%{_bindir}/ssa2srt
%{_mandir}/man1/ssa2srt.1*

#----------------------------------------------------------------------------


%prep
%setup -q


%build
%configure --disable-silent-rules
%make


%install
%makeinstall_std

# Already provided by man
rm %{buildroot}/%{_bindir}/man2html
rm %{buildroot}/%{_mandir}/man1/man2html.1*

# No corresponding binary
rm %{buildroot}/%{_mandir}/man8/xfs_irecover.8*

# Fix perms
chmod +x %{buildroot}%{_bindir}/extract_dfqshared.pm
chmod +x %{buildroot}%{_datadir}/%{name}/%{name}_bashrc.bash
chmod +x %{buildroot}%{_datadir}/%{name}/%{name}_profile.bash

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13267 |21mr|hyphen-2.8.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A text hyphenation library
Name:		hyphen
Version:	2.8.8
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://hunspell.sf.net
Source0:	http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
BuildRequires:	libtool
BuildRequires:	perl

%description
Hyphen is a library for high quality hyphenation and justification.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Files for developing with hyphen
Group:		System/Libraries
Recommends:	%{name}-en = %{EVRD}
Provides:	hyphen = %{EVRD}

%description -n %{libname}
Hyphen is a library for high quality hyphenation and justification.

%files -n %{libname}
%{_libdir}/libhyphen.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files for developing with hyphen
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Includes and definitions for developing with hyphen.

%files -n %{devname}
%doc AUTHORS ChangeLog README README.hyphen README.nonstandard TODO
%{_bindir}/substrings.pl
%{_includedir}/hyphen.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package en
Summary:	English hyphenation rules
Group:		Text tools
BuildArch:	noarch

%description en
English hyphenation rules.

%files en
%dir %{_datadir}/hyphen
%{_datadir}/hyphen/hyph_en*.dic

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%check
%make check

%install
%makeinstall_std

pushd %{buildroot}/%{_datadir}/hyphen/
en_US_aliases="en_AG en_AU en_BS en_BW en_BZ en_CA en_DK en_GB en_GH en_HK en_IE en_IN en_JM en_NA en_NZ en_PH en_SG en_TT en_ZA en_ZW"
for lang in $en_US_aliases; do
        ln -s hyph_en_US.dic hyph_$lang.dic
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13268 |21mr|i2c-tools-4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname i2c %{major}
%define devname %mklibname i2c -d

Summary:	Heterogeneous set of I2C tools for Linux
Name:		i2c-tools
Version:	4.3
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.lm-sensors.org/wiki/I2CTools
Source0:	https://mirrors.edge.kernel.org/pub/software/utils/i2c-tools/i2c-tools-%{version}.tar.xz
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
Requires:	udev kmod
Requires:	%{libname} = %{EVRD}
Conflicts:	lm_sensors < 3.0.0
Obsoletes:	i2c-tools-eepromer < 4.2-2

%description
This package contains a heterogeneous set of I2C tools for Linux: a bus
probing tool, a chip dumper, register-level access helpers, EEPROM
decoding scripts, and more.

%files
%defattr(0644,root,root,0755)
%doc CHANGES COPYING README
%config(noreplace) %{_prefix}/lib/modprobe.d/i2c-dev.conf
%config(noreplace) %{_sysconfdir}/udev/makedev.d/99-i2c-dev.nodes
%{_prefix}/lib/modules-load.d/%{name}.conf
%{_sbindir}/eeprog
%attr(0755,root,root) %{_bindir}/decode-dimms
%attr(0755,root,root) %{_bindir}/decode-vaio
%attr(0755,root,root) %{_sbindir}/i2ctransfer
%attr(0755,root,root) %{_sbindir}/i2cdetect
%attr(0755,root,root) %{_sbindir}/i2cdump
%attr(0755,root,root) %{_sbindir}/i2cget
%attr(0755,root,root) %{_sbindir}/i2cset
%attr(0755,root,root) %{_sbindir}/i2c-stub-from-dump
%{_mandir}/man8/i2cdetect.8*
%{_mandir}/man8/i2cdump.8*
%{_mandir}/man8/i2cget.8*
%{_mandir}/man8/i2cset.8*
%{_mandir}/man8/i2c-stub-from-dump.8*
%{_mandir}/man8/eeprog.8*
%{_mandir}/man8/i2ctransfer.8*
%{_mandir}/man1/decode-dimms.1*
%{_mandir}/man1/decode-vaio.1*

%post
# load i2c-dev after the first install
if [ "$1" = 1 ] ; then
  /usr/sbin/modprobe i2c-dev
fi
exit 0
#----------------------------------------------------------------------------

%package -n python3-smbus
Summary:	Python module for SMBus access via I2C
Group:		System/Kernel and hardware

%description -n python3-smbus
This Python module allows SMBus access through the I2C /dev interface
on Linux hosts. The host kernel must have I2C support, I2C device
interface support, and a bus adapter driver.

%files -n python3-smbus
%defattr(0644,root,root,0755)
%doc py-smbus/README
%{py3_platsitedir}/smbus*

#----------------------------------------------------------------------------
%package -n %{libname}
Summary:        I2C/SMBus bus access library
License:        LGPLv2+

%description -n %{libname}
libi2c offers a way for applications to interact with the devices
connected to the I2C or SMBus buses of the system.

%files -n %{libname}
%{_libdir}/libi2c.so.%{major}*
#----------------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for the I2C library
License:        LGPLv2+
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}
Provides:       libi2c-devel = %{EVRD}

%description -n %{devname}
%{summary}.

%files -n %{devname}
%dir %{_includedir}/i2c
%{_includedir}/i2c/smbus.h
%{_libdir}/libi2c.so
%{_mandir}/man3/libi2c.3.*
#----------------------------------------------------------------------------

%prep
%setup -q

# fix libdir
sed -i 's|$(PREFIX)/lib|$(PREFIX)/%{_lib}|' Makefile

%build
%make CFLAGS="%{optflags}" BUILD_STATIC_LIB=0 EXTRA=eeprog

pushd py-smbus
CFLAGS="%{optflags} -I../include" python3 setup.py build
popd

%install
%make_install PREFIX=%{_prefix} BUILD_STATIC_LIB=0 EXTRA=eeprog

pushd py-smbus
python3 setup.py install --root=%{buildroot} --compile --optimize=2
popd

# cleanup
rm -f $RPM_BUILD_ROOT%{_bindir}/decode-edid.pl
# Remove unpleasant DDC tools.  KMS already exposes the EDID block in sysfs,
# and edid-decode is a more complete tool than decode-edid.
rm -f $RPM_BUILD_ROOT%{_bindir}/{ddcmon,decode-edid}

# for i2c-dev ondemand loading through kmod
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d 
echo "alias char-major-89-* i2c-dev" > \
  $RPM_BUILD_ROOT%{_prefix}/lib/modprobe.d/i2c-dev.conf
# for /dev/i2c-# creation (which are needed for kmod i2c-dev autoloading)
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/udev/makedev.d
for (( i = 0 ; i < 8 ; i++ )) do
  echo "i2c-$i" >> $RPM_BUILD_ROOT%{_sysconfdir}/udev/makedev.d/99-i2c-dev.nodes
done

# auto-load i2c-dev after reboot
mkdir -p $RPM_BUILD_ROOT%{_prefix}/lib/modules-load.d
echo 'i2c-dev' > $RPM_BUILD_ROOT%{_prefix}/lib/modules-load.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13269 |21mr|iagno-3.38.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Reversi game
Name:		iagno
Version:	3.38.1
Release:	10
License:	GPLv2+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/iagno
Source0:	https://download.gnome.org/sources/iagno/%{url_ver}/iagno-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
# Drop it
Patch0:		iagno-3.38.1-drop-not-allowed.patch
BuildRequires:	gettext
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(gsound)

%description
The GNOME version of Reversi. The goal is to control the most disks
on the board.

%files -f %{name}.lang
%doc COPYING NEWS
%{_bindir}/iagno
%{_datadir}/applications/*.desktop
%{_datadir}/iagno/
%{_datadir}/icons/*/*/apps/*
%{_mandir}/man6/iagno.6*
%{_datadir}/metainfo/*.xml
%{_datadir}/dbus-1/services/*.service
%{_datadir}/glib-2.0/schemas/*.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13270 |21mr|ibus-1.5.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api	1.0
%define major	5
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	A next generation input framework
Name:		ibus
Version:	1.5.24
Release:	1
License:	GPLv2+
Group:		System/Internationalization
Url:		https://github.com/ibus/ibus
Source0:	https://github.com/ibus/ibus/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	ibus.macros
Patch0:		ibus-1.5.7-desktop.patch
BuildRequires:	dconf
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	vala
BuildRequires:	vala-devel
BuildRequires:	vala-tools
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dbus-python)
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(gdk-2.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gio-2.0) >= 2.32.0
BuildRequires:	pkgconfig(glib-2.0) >= 2.32.0
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(pygobject-3.0) >= 3.0.0
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	wayland-devel
BuildRequires:	cldr-emoji-annotation
BuildRequires:	unicode-emoji
BuildRequires:	unicode-ucd
Requires:	iso-codes
Requires:	librsvg
Requires:	python3-gobject
Requires:	python3-dbus
Requires:	python3-notify
Requires:	python3-pyxdg
Recommends:	%{name}-gtk = %{EVRD}

%description
IBus is a next generation input framework.

%files -f %{name}10.lang
%doc AUTHORS ChangeLog NEWS README
%{_sysconfdir}/dconf/profile/ibus
%{_sysconfdir}/dconf/db/ibus.d
%{_bindir}/*
%{_libexecdir}/ibus-dconf
%{_libexecdir}/ibus-extension-gtk3
%{_libexecdir}/ibus-x11
%{_libexecdir}/ibus-ui-emojier
%{_libexecdir}/ibus-wayland
%{_libexecdir}/ibus-portal
# %{_libexecdir}/ibus-ui-gtk*
%{_libexecdir}/ibus-engine-simple
%exclude %{_datadir}/ibus/component/gtkpanel.xml
%{_datadir}/applications/*.desktop
%{_datadir}/bash-completion/completions/ibus.bash
%{_datadir}/GConf/gsettings/ibus.convert
%{_datadir}/glib-2.0/schemas/org.freedesktop.ibus.gschema.xml
%{_datadir}/dbus-1/services/org.freedesktop.IBus.service
%{_datadir}/dbus-1/services/org.freedesktop.portal.IBus.service
%{_datadir}/ibus/*
%{_datadir}/gettext/its/*
%{_iconsdir}/*/*/*/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man7/*

%preun
%preun_uninstall_gconf_schemas ibus

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Internationalization
Obsoletes:	%{_lib}ibus5 < 1.5.2-1
Conflicts:	%{_lib}ibus5 < 1.5.2-1

%description -n %{libname}
IBus shared libraries.

%files -n %{libname}
%{_libdir}/libibus-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}ibus5 < 1.5.2-1

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/IBus-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of %{name} for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	ibus-devel < 1.5.2-1
Obsoletes:	ibus-devel < 1.5.2-1

%description -n %{devname}
IBus development package: development libraries, header files, and the like.

%files -n %{devname}
%{_includedir}/ibus-1.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/ibus
%{_datadir}/gir-1.0/*.gir
%{_datadir}/vala/vapi/*.vapi
%{_datadir}/vala/vapi/ibus-1.0.deps
%{_sysconfdir}/rpm/macros.d/%{name}.macros

#----------------------------------------------------------------------------

%package gtk
Summary:	IBus gtk module
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires(post):	gtk+2.0
Requires(postun): gtk+2.0

%description gtk
IBus gtk module.

%files gtk
%{_libdir}/gtk-2.0/*/immodules/*.so

#----------------------------------------------------------------------------

%package gtk3
Summary:	IBus gtk3 module
Group:		System/Internationalization
Requires:	%{name} = %{EVRD}
Requires(post):	gtk+3.0
Requires(postun): gtk+3.0

%description gtk3
IBus gtk module.

%files gtk3
%{_libdir}/gtk-3.0/*/immodules/*.so

#----------------------------------------------------------------------------

%package    ui-gtk3
Summary:    GTK+ 3.0 UI for IBus
Group:      System/Internationalization
Provides:   ibus-ui
Requires:   %{name} = %{version}
Recommends:   %{name}-gtk3 = %{version}
Conflicts:  ibus < 1.4.99.20121006-2

%description ui-gtk3
GTK+ 3.0 UI for IBus.

%files ui-gtk3
%{_libexecdir}/ibus-ui-gtk3
%{_datadir}/ibus/component/gtkpanel.xml

#----------------------------------------------------------------------------

%package -n python3-ibus
Summary:	Python bindings to ibus
Group:		System/Libraries

%description -n python3-ibus
Python bindings to ibus

%files -n python3-ibus
%{py3_platsitedir}/gi/overrides/IBus.*
%{py3_platsitedir}/gi/overrides/__pycache__

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%configure \
        --enable-vala=yes \
        --enable-gtk3 \
        --enable-dconf \
        --disable-gconf \
        --with-python=python3 \
        --enable-python-library \
        --disable-python2 \
        --disable-dbus-python-check \
        --enable-wayland

%make

%install
%makeinstall_std

# install rpm macro
mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d/
install -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/rpm/macros.d/%{name}.macros

rm -f %{buildroot}%{_sysconfdir}/xdg/autostart/ibus.desktop



%find_lang %{name}10

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13271 |21mr|iceauth-1.0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ICE authority file utility
Name:		iceauth
Version:	1.0.8
Release:	5
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(ice)

%description
The iceauth program is used to edit and display the authorization
information used in connecting with ICE.

%files
%{_bindir}/iceauth
%{_mandir}/man1/iceauth.1.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13272 |21mr|icewm-3.6.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 Window Manager
Name:		icewm
Version:	3.6.0
Release:	5
License:	LGPLv2.1+
Group:		Graphical desktop/Icewm
Epoch:		1
Url:		http://www.icewm.org/
Source0:	https://github.com/ice-wm/icewm/archive/%{version}.tar.gz?/icewm-%{version}.tar.gz
Source2:	themes.tar.gz
Source5:	icewm-16.png
Source6:	icewm-32.png
Source7:	icewm-48.png
Source8:	icewm-starticewm
Source9:	icewm-monochrome.tar.bz2
# Start menu file
Source10:	menu
# gdm session file
Source11:	gdm-default-session-icewm.conf
# icewm startup script
Source12:	rosa-startup
Source14:	rosa-preferences
# fix bindkey conflict xcin
Patch1:		icewm-3.3.1-xcin_bindy.patch
Patch2:		icewm-3.3.1-more_virtual_desktops.patch
Patch4:		icewm-2.0.0-winoptions.patch
Patch5:		icewm-desktop.patch
Patch6:		icewm-2.0.0-background.patch
BuildRequires:	cmake
BuildRequires:	asciidoc
BuildRequires:	perl(Pod::Html)
BuildRequires:	gettext-devel
BuildRequires:	linuxdoc-tools
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(fribidi)
Requires:	desktop-common-data
Requires:	xlockmore
Requires:	xdgmenumaker
Recommends:	%{name}-themes
Recommends:	xterm

%description
Window Manager for X Window System. Can emulate the look of Windows'95, OS/2
Warp 3,4, Motif or the Java Metal GUI. Tries to take the best features of the
above systems. Features multiple workspaces, opaque move/resize, task bar,
window list, mailbox status, digital clock. Fast and small.

%files
%doc README.md COPYING AUTHORS CHANGES TODO BUGS
%doc %{_docdir}/%{name}/*.html
%{_bindir}/icesh
%{_bindir}/icehelp
%{_bindir}/icewm
%{_bindir}/icewm-session
%{_bindir}/icewmbg
%{_bindir}/icewmhint
%{_mandir}/man1/icesh.1*
%{_mandir}/man1/icehelp.1*
%{_mandir}/man1/icewm-session.1*
%{_mandir}/man1/icewm.1*
%{_mandir}/man1/icewmbg.1*
%{_mandir}/man1/icewmhint.1*

%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/icons
%dir %{_datadir}/%{name}/ledclock
%dir %{_datadir}/%{name}/taskbar
%dir %{_datadir}/%{name}/mailbox
%config(noreplace) %{_sysconfdir}/X11/wmsession.d/*
%{_bindir}/starticewm
%{_bindir}/icewm-menu-fdo
%{_bindir}/icewm-menu-xrandr
%{_bindir}/icewm-set-gnomewm
%{_datadir}/%{name}/mailbox/*
%{_datadir}/%{name}/taskbar/*
%{_datadir}/%{name}/ledclock/*
%{_datadir}/%{name}/icons/*
%{_datadir}/%{name}/keys
%{_datadir}/%{name}/menu
%{_datadir}/%{name}/preferences
%{_datadir}/%{name}/toolbar
%{_datadir}/%{name}/winoptions
%{_datadir}/%{name}/IceWM.jpg
%{_datadir}/%{name}/programs
%{_datadir}/%{name}/themes/default
%{_datadir}/%{name}/themes/RosaTheme
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/xsessions/icewm-session.desktop
%exclude %{_datadir}/xsessions/icewm.desktop
%{_mandir}/man1/icewm-menu-fdo.1*
%{_mandir}/man1/icewm-menu-xrandr.1*
%{_mandir}/man1/icesound.1.xz
%{_mandir}/man5/icewm-env.5*
%{_mandir}/man5/icewm-focus_mode.5*
%{_mandir}/man5/icewm-keys.5*
%{_mandir}/man5/icewm-menu.5*
%{_mandir}/man5/icewm-preferences.5*
%{_mandir}/man5/icewm-prefoverride.5*
%{_mandir}/man5/icewm-programs.5*
%{_mandir}/man5/icewm-shutdown.5*
%{_mandir}/man5/icewm-startup.5*
%{_mandir}/man5/icewm-theme.5*
%{_mandir}/man5/icewm-toolbar.5*
%{_mandir}/man5/icewm-winoptions.5*
%exclude %{_mandir}/man1/icewm-set-gnomewm.1*

#----------------------------------------------------------------------------

%package themes
Summary:	Extra themes of Icewm
Group:		Graphical desktop/Icewm
Conflicts:	%{name} < 1:1.3.7-2
BuildArch:	noarch

%description themes
Window Manager for X Window System. Can emulate the look of Windows'95, OS/2
Warp 3,4, Motif or the Java Metal GUI. Tries to take the best features of the
above systems. Features multiple workspaces, opaque move/resize, task bar,
window list, mailbox status, digital clock. Fast and small.

This is themes collection for icewm window manager.

%files themes
%{_datadir}/%{name}/themes/*
%exclude %{_datadir}/%{name}/themes/default
%exclude %{_datadir}/%{name}/themes/RosaTheme

#----------------------------------------------------------------------------

%package i18n
Summary:	locale files of Icewm
Group:		Graphical desktop/Icewm
Conflicts:	%{name} < 1:1.3.7-2
BuildArch:	noarch

%description i18n
Window Manager for X Window System. Can emulate the look of Windows'95, OS/2
Warp 3,4, Motif or the Java Metal GUI. Tries to take the best features of the
above systems. Features multiple workspaces, opaque move/resize, task bar,
window list, mailbox status, digital clock. Fast and small.

This is translation files for icewm window manager.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package config-rosa
Summary:	Rosa configs for Icewm
Group:		Graphical desktop/Icewm
# see startup and menu file (Source10,11,12)
Requires:	%{_unitdir}/gdm.service.d
Requires:	%{_bindir}/nm-applet
Requires:	%{_bindir}/update_applet
Requires:	mc
Requires:	htop
Requires:	usermode

# in contrib
Recommends:	%{_bindir}/pnmixer
Recommends:	gxkb

%description config-rosa
Rosa specific configuration files.

%files config-rosa
%{_unitdir}/gdm.service.d/gdm-default-session-icewm.conf
%{_sysconfdir}/icewm
#----------------------------------------------------------------------------

%prep
%setup -q -a2 -a9
%apply_patches

chmod -R a+rX themes
find themes -type f | xargs chmod a-x

%build
%cmake \
	-DCFGDIR=%{_sysconfdir}/%{name} \
	-DCONFIG_LIBPNG=on \
	-DCONFIG_LIBRSVG=on \
	-DCONFIG_LIBJPEG=on \
	-DCONFIG_XPM=on \
	-DCONFIG_IMLIB2=on
	%{nil}

%make

%install
%makeinstall_std -C build

cp -a themes %{buildroot}%{_datadir}/%{name}

# icon
install -D -m644 %{SOURCE6} %{buildroot}%{_iconsdir}/%{name}.png
install -D -m644 %{SOURCE5} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m644 %{SOURCE7} %{buildroot}%{_liconsdir}/%{name}.png

# install Rosa configs
mkdir -p %{buildroot}%{_sysconfdir}/icewm
install -m0644  %{SOURCE10} %{buildroot}%{_sysconfdir}/%{name}/
# install default startup script and preferences
install -m0755 %{SOURCE12} %{buildroot}%{_sysconfdir}/icewm/startup
install -m0644 %{SOURCE14} %{buildroot}%{_sysconfdir}/icewm/preferences

mkdir -p %{buildroot}%{_sysconfdir}/xdg/templates

# wmsession support
mkdir -p %{buildroot}/etc/X11/wmsession.d/
cat << EOF > %{buildroot}/etc/X11/wmsession.d/07IceWM
NAME=IceWM
ICON=icewm-wmsession.xpm
EXEC=/usr/bin/starticewm
DESC=Lightweight desktop environment
SCRIPT:
exec /usr/bin/starticewm
EOF

install -m 755 %{SOURCE8} %{buildroot}%{_bindir}/starticewm

# Dadou - Change default background color for distro color
perl -pi -e "s!# DesktopBackgroundColor=.*!DesktopBackgroundColor=\"\"!" %{buildroot}%{_datadir}/icewm/preferences

# change default theme to RosaTheme
rm -r %{buildroot}%{_datadir}/%{name}/themes/default
ln -s RosaTheme %{buildroot}%{_datadir}/%{name}/themes/default

# install gdm session config
mkdir -p %{buildroot}%{_unitdir}/gdm.service.d/
cp %{SOURCE11} %{buildroot}%{_unitdir}/gdm.service.d/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13273 |21mr|icewm-menu-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Dynamic menus in icewm WM
Name:		icewm-menu
Version:	0.8.3
Release:	1
License:	GPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/mrbrainsample/icewm-menu
Source0:	https://github.com/mrbrainsample/icewm-menu/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		icewm-menu-bindir.patch
# from Arch linux
# Change the icons default resolution from 16x16 to 48x48.
Patch1:		utils.patch
Patch2:		with-svg.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libmenu-cache)
Requires:	icewm
Requires:	menu-cache

%description
An icewm pipe-menu to display entries in *.desktop files.

%files
%doc ChangeLog AUTHORS COPYING
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13274 |21mr|icewm-theme-oxygen-aya-0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		icewm-theme-oxygen-aya
Summary:	The icewm theme which simulates kde4 "Oxygen" and "Aya" look and feel
Version:	0.1
Release:	5
License:	GPL
Group:		Graphical desktop/Icewm
URL:		http://box-look.org/content/show.php/OxyAya?content=136242
Source0:	http://box-look.org/CONTENT/content-files/136242-oxygen-aya-azul.tar.gz
BuildArch:	noarch
BuildRequires:	desktop-common-data
BuildRequires:	mandriva-theme
Requires:	mandriva-theme

%description
The icewm theme which simulates kde4 "Oxygen" and "Aya" look and feel.

%prep
%setup -q -n oxygen-aya-azul
cp %{_iconsdir}/mini/mandriva.png taskbar/start.xpm
ln -s %{_datadir}/mdk/backgrounds/default.jpg default.jpg
sed -i 's/ThrowingStones.jpg/default.jpg/g' default.theme

%install
install -d %{buildroot}%{_datadir}/X11/icewm/themes/oxygen-aya-azul
cp -r * %{buildroot}%{_datadir}/X11/icewm/themes/oxygen-aya-azul/

# fix permissions
find %{buildroot}%{_datadir} -type f -exec chmod 644 {} \;
find %{buildroot}%{_datadir} -type d -exec chmod 755 {} \;

%files
%dir %{_datadir}/X11/icewm/themes/oxygen-aya-azul
%{_datadir}/X11/icewm/themes/oxygen-aya-azul/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13275 |21mr|icmake-7.16.00-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:        A hybrid between a 'make' utility and a 'shell script' language
Name:		icmake
Version:	7.16.00
Release:	5
License:	GPLv3
Group:		Development/Other
URL:		http://icmake.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}_%{version}.orig.tar.gz

%description
Icmake is a hybrid between a 'make' utility and a 'shell script' language. 
Originally, it was written to provide a useful tool for automatic program 
maintenance and system administrative tasks on old MS-DOS platforms.

%package	doc
Group:		Development/Other
Summary:	Documentation for icmake

%description	doc
This package contains the documentation for icmake.

%prep
%setup -q

# set the correct LIBDIR path
sed -i -e "s:usr/lib:usr/%{_lib}:g" INSTALL.im

# fix executable perms in examples
pushd examples
for i in am backup bup defines ds ftpxfer idir \
	initialization keep killprog nesteddirectives r tolower
do
	chmod -x $i
done
popd

%build
%setup_compile_flags
./icm_bootstrap /

%install
./icm_install strip progs %{buildroot}
./icm_install scripts %{buildroot}
./icm_install skel %{buildroot}
./icm_install man %{buildroot}
./icm_install doc %{buildroot}
./icm_install docdoc %{buildroot}
./icm_install etc %{buildroot}

%files
%{_bindir}/ic*
%{_libdir}/%{name}
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_datadir}/%{name}
%{_mandir}/man*/*
%{_docdir}/%{name}

%files doc
%{_docdir}/%{name}-doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13276 |21mr|ico-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: ico
Version: 1.0.5
Release: 1
Summary: Animate an icosahedron or other polyhedron
Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
Ico displays a wire-frame rotating polyhedron, with hidden lines removed,
or a solid-fill polyhedron with hidden faces removed.  There are a number of
different polyhedra available; adding a new polyhedron to the program is quite
simple.

%prep
%setup -q -n %{name}-%{version}

%build
%configure

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/ico
%{_mandir}/man1/ico.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13277 |21mr|icon-naming-utils-0.8.90-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Icon handling tools of the Tango Project
Name:		icon-naming-utils
Version:	0.8.90
Release:	15
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://tango.freedesktop.org/Standard_Icon_Naming_Specification
Source0:	http://tango.freedesktop.org/releases/%{name}-%{version}.tar.bz2
Patch0:		icon-naming-utils-0.8.7-paths.patch
Patch1:		icon-naming-utils-0.8.90-xfce.patch
Patch2:		03_gtk_apply_close_ok.patch
Patch3:		04_add_gtk_stock_directory.patch
Patch4:		icon-naming-utils-0.8.6-missinglink.patch
BuildRequires:	perl-XML-Simple
BuildArch:	noarch

%description
This utility maps the icon names used by the GNOME and KDE desktops to
the icon names proposed in the Icon Naming Specification linked above.

%files
%doc AUTHORS ChangeLog
%{_bindir}/icon-name-mapping
%{_datadir}/%{name}/
%{_datadir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .fix_dtd
%patch1 -p1 -b .xfce
%patch2 -p1 -b .gtkapply
%patch3 -p1 -b .gtkstock
%patch4 -p1 -b .missinglink
autoreconf

%build
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_prefix}/lib \
	--libexecdir=%{_prefix}/lib
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13278 |21mr|icoutils-0.32.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Extract and convert bitmaps from Windows icon and cursor files
Name:		icoutils
Version:	0.32.3
Release:	1
Group:		Graphics
License:	GPLv3+
URL:		http://www.nongnu.org/%{name}/
Source0:	http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
Requires:	perl
BuildRequires:	libpng-devel

%description
The icoutils are a set of program for extracting and converting bitmaps from
Microsoft Windows icon and cursor files. These files usually have the
extension .ico or .cur, but they can also be embedded in executables and
libraries (.dll-files). (Such embedded files are referred to as resources).


%prep
%setup -q


%build
%configure
%make_build

%install
%make_install
cp extresso/extresso extresso/genresscript %{buildroot}/%{_bindir}
cp extresso/extresso.1 extresso/genresscript.1 %{buildroot}/%{_mandir}/man1

%find_lang %{name}


%files -f %{name}.lang
%doc README AUTHORS ChangeLog NEWS TODO
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13279 |21mr|icu4j-64.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag %(v=%{version}; echo "release-$v" | sed 's/\\./-/')
%global srctgz %(v=%{version}; echo "icu4j-$v" | sed 's/\\./_/')

Name:           icu4j
Version:        64.2
Release:        2
Epoch:          1
Summary:        International Components for Unicode for Java
# ICU itself is now covered by Unicode license, but still has contributed
# components covered by MIT and BSD licenses
# Data from the Timezone Database is Public Domain
License:        Unicode and MIT and BSD and Public Domain
Group:          Development/Java
URL:            http://site.icu-project.org/

Source0:        https://github.com/unicode-org/icu/releases/download/%{gittag}/%{srctgz}.tgz

# Add better OSGi metadata to core jar
Patch0:         improve-osgi-manifest.patch

BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  java-javadoc
BuildRequires:  javapackages-local
BuildRequires:  ivy-local

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The International Components for Unicode (ICU) library provides robust and
full-featured Unicode services on a wide variety of platforms. ICU supports
the most current version of the Unicode standard, and provides support for
supplementary characters (needed for GB 18030 repertoire support).

Java provides a very strong foundation for global programs, and IBM and the
ICU team played a key role in providing globalization technology into Sun's
Java. But because of its long release schedule, Java cannot always keep
up-to-date with evolving standards. The ICU team continues to extend Java's
Unicode and internationalization support, focusing on improving
performance, keeping current with the Unicode standard, and providing
richer APIs, while remaining as compatible as possible with the original
Java text and internationalization API design.

%package charset
Summary: Charset converter library of %{name}

%description charset
Charset converter library of %{name}.

%package localespi
Summary: Locale SPI library of %{name}

%description localespi
Locale SPI library of %{name}.

%package javadoc
Summary: Javadoc for %{name}
Requires: java-javadoc

%description javadoc
API documentation for %{name}.

%prep
%setup -q -c
%patch0

# Ivy local does not name these libs as icu4j expects
sed -i -e 's/junit-4.12/junit-SYSTEM/' \
       -e 's/hamcrest-core-1.3/hamcrest-core-SYSTEM/' build.xml

# Missing dep on pl.pragmatists:JUnitParams for tests, so delete tests that
# requires it for now
sed -i -e '/pl.pragmatists/d' ivy.xml
rm main/tests/core/src/com/ibm/icu/dev/test/format/DataDrivenFormatTest.java
rm main/tests/core/src/com/ibm/icu/dev/test/calendar/DataDrivenCalendarTest.java
rm main/tests/core/src/com/ibm/icu/dev/test/serializable/CompatibilityTest.java
rm main/tests/core/src/com/ibm/icu/dev/test/serializable/CoverageTest.java
rm main/tests/core/src/com/ibm/icu/dev/test/util/XLocaleMatcherTest.java
rm main/tests/charset/src/com/ibm/icu/dev/test/charset/TestConversion.java
rm main/tests/translit/src/com/ibm/icu/dev/test/translit/TransliteratorDisorderedMarksTest.java

%build
export JAVA_HOME=%{_jvmdir}/java/
mkdir -p ~/.ant/lib
ant -Divy.mode=local -Doffline=true -Dicu4j.api.doc.jdk.link=%{_javadocdir}/java \
  all check

for jar in icu4j icu4j-charset icu4j-localespi ; do
  sed -i -e 's/@POMVERSION@/%{version}/' maven/$jar/pom.xml
  %mvn_artifact maven/$jar/pom.xml $jar.jar
  %mvn_package :$jar $jar
done

%install
%mvn_install -J doc

# No poms for these, so install manually
install -m 644 icu4j-charset.jar   %{buildroot}%{_javadir}/icu4j/
install -m 644 icu4j-localespi.jar %{buildroot}%{_javadir}/icu4j/

%files -f .mfiles-icu4j
%license main/shared/licenses/*
%doc readme.html APIChangeReport.html

%files charset -f .mfiles-icu4j-charset

%files localespi -f .mfiles-icu4j-localespi

%files javadoc -f .mfiles-javadoc
%license main/shared/licenses/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13280 |21mr|icu-71.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %{version} |cut -d. -f1)
%define libicudata %mklibname %{name}data %{major}
%define libicui18n %mklibname %{name}i18n %{major}
%define libicuio %mklibname %{name}io %{major}
%define libicutest %mklibname %{name}test %{major}
%define libicutu %mklibname %{name}tu %{major}
%define libicuuc %mklibname %{name}uc %{major}
%define devname %mklibname %{name} -d
%ifarch %arm
%define	_disable_lto %nil
%endif
%define arch %([ "%{_arch}" = "x86_64" ] && echo -n x86-64 || echo -n %{_arch})
%if "%_lib" == "lib64"
%define archmarker ()(64bit)
%else
%define archmarker %nil
%endif
# Previous versions that are ABI compatible enough for a symlink to work
%define compatible 60 61 62 63 64 65 66 67

%define tarballver %(echo %{version}|sed -e 's|\\.|_|g')
%define dashedver %(echo %{version}|sed -e 's|\\.|-|g')
%bcond_with	crosscompile

Summary:	International Components for Unicode
Name:		icu
Version:	71.1
Release:	1
Epoch:		1
License:	MIT
Group:		System/Libraries
Url:		http://www.icu-project.org/index.html
Source0:	https://github.com/unicode-org/icu/releases/download/release-%{dashedver}/icu4c-%{tarballver}-src.tgz
Source1:	https://github.com/unicode-org/icu/releases/download/release-%{dashedver}/icu4c-%{tarballver}-docs.zip
Patch0:		icu-71.1-DESTDIR.patch
Patch1:		icu-71.1-double-conversion-e2k.patch
BuildRequires:	doxygen

%description
The International Components for Unicode (ICU) libraries provide robust and
full-featured Unicode services on a wide variety of platforms. ICU supports
the most current version of the Unicode standard, and they provide support
for supplementary Unicode characters (needed for GB 18030 repertoire support).

As computing environments become more heterogeneous, software portability
becomes more important. ICU lets you produce the same results across all the
various platforms you support, without sacrificing performance. It offers
great flexibility to extend and customize the supplied services, which
include:

  * Text: Unicode text handling, full character properties and character set
    conversions (500+ codepages)
  * Analysis: Unicode regular expressions; full Unicode sets; character, word
    and line boundaries
  * Comparison: Language sensitive collation and searching
  * Transformations: normalization, upper/lowercase, script transliterations
    (50+ pairs)
  * Locales: Comprehensive locale data (230+) and resource bundle architecture
  * Complex Text Layout: Arabic, Hebrew, Indic and Thai
  * Time: Multi-calendar and time zone
  * Formatting and Parsing: dates, times, numbers, currencies, messages and
    rule based

%files
%{_bindir}/*
%exclude %{_bindir}/icu-config
%{_sbindir}/*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for the International Components for Unicode
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description doc
Documentation for the International Components for Unicode.

%files doc
%doc readme.html docs/*
%{_mandir}/man1/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%package data
Summary:	Data files needed for ICU
Group:		System/Libraries

%description data
Data files needed for ICU

%files data
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{version}
%{_datadir}/%{name}/%{version}/icudt%{major}l.dat

#----------------------------------------------------------------------------

%package -n %{libicudata}
Summary:	Library for the International Components for Unicode - icudata
Group:		System/Libraries
Obsoletes:	%{mklibname icu 44} <= 4.4.2
Requires:	%{name}-data = %{EVRD}
%(for i in %compatible; do echo Provides: %{_lib}icudata$i = %{EVRD}; echo Obsoletes: %{_lib}icudata$i "<" %{EVRD}; echo Provides: "libicudata.so.$i%{archmarker}"; echo Provides: "%{_lib}icudata$i(%{arch})" = %{EVRD}; done)

%description -n %{libicudata}
Library for the International Components for Unicode - icudata.

%files -n %{libicudata}
%{_libdir}/libicudata.so.*

#----------------------------------------------------------------------------

%package -n %{libicui18n}
Summary:	Library for the International Components for Unicode - icui18n
Group:		System/Libraries
%(for i in %compatible; do echo Provides: %{_lib}icui18n$i = %{EVRD}; echo Obsoletes: %{_lib}icui18n$i "<" %{EVRD}; echo Provides: "libicui18n.so.$i%{archmarker}"; echo Provides: "%{_lib}icui18n$i(%{arch})" = %{EVRD}; done)

%description -n %{libicui18n}
Library for the International Components for Unicode - icui18n.

%files -n %{libicui18n}
%{_libdir}/libicui18n.so.*

#----------------------------------------------------------------------------

%package -n %{libicuio}
Summary:	Library for the International Components for Unicode - icuio
Group:		System/Libraries
%(for i in %compatible; do echo Provides: %{_lib}icuio$i = %{EVRD}; echo Obsoletes: %{_lib}icuio$i "<" %{EVRD}; echo Provides: "libicuio.so.$i%{archmarker}"; echo Provides: "%{_lib}icuio$i(%{arch}) = %{EVRD}"; done)

%description -n %{libicuio}
Library for the International Components for Unicode - icuio.

%files -n %{libicuio}
%{_libdir}/libicuio.so.*

#----------------------------------------------------------------------------

%package -n %{libicutest}
Summary:	Library for the International Components for Unicode - icutest
Group:		System/Libraries
%(for i in %compatible; do echo Provides: %{_lib}icutest$i = %{EVRD}; echo Obsoletes: %{_lib}icutest$i "<" %{EVRD}; echo Provides: "libicutest.so.$i%{archmarker}"; echo Provides: "%{_lib}icutest$i(%{arch}) = %{EVRD}"; done)

%description -n %{libicutest}
Library for the International Components for Unicode - icutest.

%files -n %{libicutest}
%{_libdir}/libicutest.so.*

#----------------------------------------------------------------------------

%package -n %{libicutu}
Summary:	Library for the International Components for Unicode - icutu
Group:		System/Libraries
%(for i in %compatible; do echo Provides: %{_lib}icutu$i = %{EVRD}; echo Obsoletes: %{_lib}icutu$i "<" %{EVRD}; echo Provides: "libicutu.so.$i%{archmarker}"; echo Provides: "%{_lib}icutu$i(%{arch}) = %{EVRD}"; done)

%description -n %{libicutu}
Library for the International Components for Unicode - icutu.

%files -n %{libicutu}
%{_libdir}/libicutu.so.*

#----------------------------------------------------------------------------

%package -n %{libicuuc}
Summary:	Library for the International Components for Unicode - icuuc
Group:		System/Libraries
%(for i in %compatible; do echo Provides: %{_lib}icuuc$i = %{EVRD}; echo Obsoletes: %{_lib}icuuc$i "<" %{EVRD}; echo Provides: "libicuuc.so.$i%{archmarker}"; echo Provides: "%{_lib}icuuc$i(%{arch}) = %{EVRD}"; done)

%description -n %{libicuuc}
Library for the International Components for Unicode - icuuc.

%files -n %{libicuuc}
%{_libdir}/libicuuc.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the International Components for Unicode
Group:		Development/Other
Requires:	%{libicudata} >= %{EVRD}
Requires:	%{libicui18n} >= %{EVRD}
Requires:	%{libicuio} >= %{EVRD}
Requires:	%{libicutest} >= %{EVRD}
Requires:	%{libicutu} >= %{EVRD}
Requires:	%{libicuuc} >= %{EVRD}
Provides:	%{name}%{major}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
#define _requires_exceptions statically\\|linked

%description -n	%{devname}
Development files and headers for the International Components for Unicode.

%files -n %{devname}
%{_bindir}/icu-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/unicode
%{_includedir}/unicode/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%{_datadir}/%{name}/%{version}/LICENSE
%{_datadir}/%{name}/%{version}/config/mh-linux
%{_datadir}/%{name}/%{version}/install-sh
%{_datadir}/%{name}/%{version}/mkinstalldirs

%prep
%autosetup -p1 -n %{name}

mkdir -p docs
cd docs
unzip -q %{SOURCE1}
cd -

%build
pushd source
# (tpg) needed for patch 2
export CFLAGS='%{optflags} -fno-strict-aliasing'
export CXXFLAGS='%{optflags} -fno-strict-aliasing -std=c++14'
export LDFLAGS='%{ldflags} -fuse-ld=bfd'
# no bfd flag on elbrus
# and issues with lcc
%ifarch %{e2k}
export LDFLAGS='%{ldflags} -lstdc++'
%endif
# If we want crosscompile icu we need to built ICU package
# and add --with-cross-build=/path/to/icu
# disable bits and do unset TARGET twice, after configure
# and before makeinstall
%configure --disable-samples \
	--disable-renaming \
%if !%{with crosscompile}
	--with-library-bits=64else32 \
%endif
	--with-data-packaging=archive \
%if %{with crosscompile}
	--with-cross-build=/path/to/built/icu/source/ \
%endif
	--disable-samples

#rhbz#225896
sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
#rhbz#681941
# As of ICU 52.1 the -nostdlib in tools/toolutil/Makefile results in undefined reference to `__dso_handle'
sed -i 's|^LIBS =.*|LIBS = -L../../lib -licui18n -licuuc -lpthread|' tools/toolutil/Makefile
#rhbz#813484
sed -i 's| \$(docfilesdir)/installdox||' Makefile
# There is no source/doc/html/search/ directory
sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
# rhbz#856594 The configure --disable-renaming and possibly other options
# result in icu/source/uconfig.h.prepend being created, include that content in
# icu/source/common/unicode/uconfig.h to propagate to consumer packages.
test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' -i common/unicode/uconfig.h

mkdir -p data/out/tmp
touch -d "10 years ago" data/out/tmp/icudata.lst

%if %{with crosscompile}
unset TARGET
%endif
%make_build
%make_build doc
popd

#% check
#pushd source
#make check
#popd

%install
%if %{with crosscompile}
unset TARGET
%endif
%make_install -C source

cd %{buildroot}%{_libdir}
for c in %compatible; do
	for i in *.so.%{major}; do
		ln -s $i ${i/%{major}/$c}
	done
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13281 |21mr|icu-71.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarver %(echo %{version} |tr . _)
%define urlver %(echo %{version} |tr . -)

%define major %(echo %{version} |cut -d. -f1)
%define libicudata %mklibname %{name}data %{major}
%define libicui18n %mklibname %{name}i18n %{major}
%define libicuio %mklibname %{name}io %{major}
%define libicutest %mklibname %{name}test %{major}
%define libicutu %mklibname %{name}tu %{major}
%define libicuuc %mklibname %{name}uc %{major}
%define devname %mklibname %{name} -d

%ifarch %arm
%define	_disable_lto %nil
%endif

%define arch %([ "%{_arch}" = "x86_64" ] && echo -n x86-64 || echo -n %{_arch})

%bcond_with	crosscompile

Summary:	International Components for Unicode
Name:		icu
Version:	71.1
Release:	2
Epoch:		1
License:	MIT
Group:		System/Libraries
Url:		https://icu.unicode.org/
Source0:	https://github.com/unicode-org/icu/releases/download/release-%{urlver}/icu4c-%{tarver}-src.tgz
Source1:	https://github.com/unicode-org/icu/releases/download/release-%{urlver}/icu4c-%{tarver}-docs.zip
Patch0:		icu-71.1-DESTDIR.patch
Patch1:		icu-71.1-double-conversion-e2k.patch
BuildRequires:	doxygen

%description
The International Components for Unicode (ICU) libraries provide robust and
full-featured Unicode services on a wide variety of platforms. ICU supports
the most current version of the Unicode standard, and they provide support
for supplementary Unicode characters (needed for GB 18030 repertoire support).

As computing environments become more heterogeneous, software portability
becomes more important. ICU lets you produce the same results across all the
various platforms you support, without sacrificing performance. It offers
great flexibility to extend and customize the supplied services, which
include:

  * Text: Unicode text handling, full character properties and character set
    conversions (500+ codepages)
  * Analysis: Unicode regular expressions; full Unicode sets; character, word
    and line boundaries
  * Comparison: Language sensitive collation and searching
  * Transformations: normalization, upper/lowercase, script transliterations
    (50+ pairs)
  * Locales: Comprehensive locale data (230+) and resource bundle architecture
  * Complex Text Layout: Arabic, Hebrew, Indic and Thai
  * Time: Multi-calendar and time zone
  * Formatting and Parsing: dates, times, numbers, currencies, messages and
    rule based

%files
%{_bindir}/*
%exclude %{_bindir}/icu-config
%{_sbindir}/*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for the International Components for Unicode
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description doc
Documentation for the International Components for Unicode.

%files doc
%doc readme.html docs/*
%{_mandir}/man1/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%package -n %{name}%{major}-data
Summary:	Data files needed for ICU
Group:		System/Libraries
Provides:	%{name}-data = %{EVRD}

%description -n %{name}%{major}-data
Data files needed for ICU

%files -n %{name}%{major}-data
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/%{version}
%{_datadir}/%{name}/%{version}/icudt%{major}l.dat

#----------------------------------------------------------------------------

%package -n %{libicudata}
Summary:	Library for the International Components for Unicode - icudata
Group:		System/Libraries
Requires:	%{name}%{major}-data = %{EVRD}

%description -n %{libicudata}
Library for the International Components for Unicode - icudata.

%files -n %{libicudata}
%{_libdir}/libicudata.so.*

#----------------------------------------------------------------------------

%package -n %{libicui18n}
Summary:	Library for the International Components for Unicode - icui18n
Group:		System/Libraries

%description -n %{libicui18n}
Library for the International Components for Unicode - icui18n.

%files -n %{libicui18n}
%{_libdir}/libicui18n.so.*

#----------------------------------------------------------------------------

%package -n %{libicuio}
Summary:	Library for the International Components for Unicode - icuio
Group:		System/Libraries

%description -n %{libicuio}
Library for the International Components for Unicode - icuio.

%files -n %{libicuio}
%{_libdir}/libicuio.so.*

#----------------------------------------------------------------------------

%package -n %{libicutest}
Summary:	Library for the International Components for Unicode - icutest
Group:		System/Libraries

%description -n %{libicutest}
Library for the International Components for Unicode - icutest.

%files -n %{libicutest}
%{_libdir}/libicutest.so.*

#----------------------------------------------------------------------------

%package -n %{libicutu}
Summary:	Library for the International Components for Unicode - icutu
Group:		System/Libraries

%description -n %{libicutu}
Library for the International Components for Unicode - icutu.

%files -n %{libicutu}
%{_libdir}/libicutu.so.*

#----------------------------------------------------------------------------

%package -n %{libicuuc}
Summary:	Library for the International Components for Unicode - icuuc
Group:		System/Libraries

%description -n %{libicuuc}
Library for the International Components for Unicode - icuuc.

%files -n %{libicuuc}
%{_libdir}/libicuuc.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the International Components for Unicode
Group:		Development/Other
Requires:	%{libicudata} = %{EVRD}
Requires:	%{libicui18n} = %{EVRD}
Requires:	%{libicuio} = %{EVRD}
Requires:	%{libicutest} = %{EVRD}
Requires:	%{libicutu} = %{EVRD}
Requires:	%{libicuuc} = %{EVRD}
Provides:	%{name}%{major}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
Development files and headers for the International Components for Unicode.

%files -n %{devname}
%{_bindir}/icu-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/unicode
%{_includedir}/unicode/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*
%{_datadir}/%{name}/%{version}/LICENSE
%{_datadir}/%{name}/%{version}/config/mh-linux
%{_datadir}/%{name}/%{version}/install-sh
%{_datadir}/%{name}/%{version}/mkinstalldirs

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

mkdir -p docs
cd docs
unzip -q %{SOURCE1}
cd -

%build
pushd source
# (tpg) needed for patch 2
export CFLAGS='%{optflags} -fno-strict-aliasing'
export CXXFLAGS='%{optflags} -fno-strict-aliasing -std=c++14'
export LDFLAGS='%{ldflags} -fuse-ld=bfd'
# no bfd flag on elbrus
# and issues with lcc
%ifarch %{e2k}
export LDFLAGS='%{ldflags} -lstdc++'
%endif
# If we want crosscompile icu we need to built ICU package
# and add --with-cross-build=/path/to/icu
# disable bits and do unset TARGET twice, after configure
# and before makeinstall
%configure --disable-samples \
	--disable-renaming \
%if !%{with crosscompile}
	--with-library-bits=64else32 \
%endif
	--with-data-packaging=archive \
%if %{with crosscompile}
	--with-cross-build=/path/to/built/icu/source/ \
%endif
	--disable-samples

#rhbz#225896
sed -i 's|-nodefaultlibs -nostdlib||' config/mh-linux
#rhbz#681941
# As of ICU 52.1 the -nostdlib in tools/toolutil/Makefile results in undefined reference to `__dso_handle'
sed -i 's|^LIBS =.*|LIBS = -L../../lib -licui18n -licuuc -lpthread|' tools/toolutil/Makefile
#rhbz#813484
sed -i 's| \$(docfilesdir)/installdox||' Makefile
# There is no source/doc/html/search/ directory
sed -i '/^\s\+\$(INSTALL_DATA) \$(docsrchfiles) \$(DESTDIR)\$(docdir)\/\$(docsubsrchdir)\s*$/d' Makefile
# rhbz#856594 The configure --disable-renaming and possibly other options
# result in icu/source/uconfig.h.prepend being created, include that content in
# icu/source/common/unicode/uconfig.h to propagate to consumer packages.
test -f uconfig.h.prepend && sed -e '/^#define __UCONFIG_H__/ r uconfig.h.prepend' -i common/unicode/uconfig.h

mkdir -p data/out/tmp
touch -d "10 years ago" data/out/tmp/icudata.lst

%if %{with crosscompile}
unset TARGET
%endif
%make_build
%make_build doc
popd

%install
%if %{with crosscompile}
unset TARGET
%endif
%make_install -C source

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13282 |21mr|id3lib-3.8.3-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 3.8
%define major 3
%define libname %mklibname id3_ %{api} %{major}
%define devname %mklibname id3 -d
%define staticname %mklibname id3 -d -s

Summary:	A software library for manipulating ID3v1 and ID3v2 tags
Name:		id3lib
Version:	3.8.3
Release:	30
Epoch:		1
License:	LGPL
Group:		Sound
Url:		http://id3lib.sourceforge.net
Source0:	http://download.sourceforge.net/id3lib/%{name}-%{version}.tar.bz2
Patch0:		id3lib-3.8.2-doxygen.patch
Patch1:		patch_id3lib_3.8.3_UTF16_writing_bug.diff
Patch2:		id3lib-3.8.3-CVE-2007-4460.patch
Patch3:		id3lib-3.8.3-includes.patch
Patch4:		id3lib-3.8.3-vbr_buffer_overflow.diff
Patch5:		id3lib-3.8.3-libtool-autofoo.patch
Provides:	id3lib-examples
BuildRequires:	doxygen
BuildRequires:	pkgconfig(zlib)

%description
This package provides a software library for manipulating ID3v1 and ID3v2 tags.
It provides a convenient interface for software developers to include
standards-compliant ID3v1/2 tagging capabilities in their applications.
Features include identification of valid tags, automatic size conversions,
(re)synchronisation of tag frames, seamless tag (de)compression, and optional
padding facilities.
Included are some simple command line example applications.

%files
%doc AUTHORS HISTORY NEWS README THANKS TODO
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Id3lib libraries
Group:		System/Libraries

%description -n %{libname}
This package provides a software library for manipulating ID3v1 and ID3v2 tags.

%files -n %{libname}
%doc README COPYING
%{_libdir}/libid3-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use id3lib
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(zlib)
Provides:	libid3-devel = %{EVRD}
Provides:	libid3lib-devel = %{EVRD}
Provides:	id3lib-devel = %{EVRD}
Provides:	id3lib-doc = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use id3lib, the software library for ID3v1 and ID3v2
tag manipulation.

%files -n %{devname}
%doc ChangeLog doc/*.html doc/*gif doc/*.txt doc/*.jpg doc/*.ico doc/*.css
%doc doc/api doc/examples
%{_includedir}/id3*.h
%{_includedir}/id3
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package -n %{staticname}
Summary:	Id3lib static libraries
Group:		Development/C++
Requires:	%{devname} = %{EVRD}

%description -n %{staticname}
This package provides a software library for manipulating ID3v1 and
ID3v2 tags. It contains the static library of id3lib.

%files -n %{staticname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
(mkdir -p doc/examples
cd examples
cp *.cpp *.c *.h *.tag *.jpg *.mp3 ../doc/examples
)

%build
%configure --enable-static
%make_build
%make_build docs

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13283 |21mr|idlj-maven-plugin-1.2.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             idlj-maven-plugin
Version:          1.2.1
Release:          9
Summary:          The CORBA IDL Compiler Maven Plugin 
License:          ASL 2.0
# http://www.mojohaus.org/plugins.html
URL:              http://mojo.codehaus.org/idlj-maven-plugin

# svn export http://svn.codehaus.org/mojo/tags/idlj-maven-plugin-1.2.1 idlj-maven-plugin-1.2.1
# tar cafJ idlj-maven-plugin-1.2.1.tar.xz idlj-maven-plugin-1.2.1
Source0:          idlj-maven-plugin-%{version}.tar.xz
Source1:          LICENSE-2.0.txt

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(avalon-logkit:avalon-logkit)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.maven:maven-project)
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:    mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:    mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:    mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:    mvn(org.jacorb:jacorb-idl-compiler)

%description
The CORBA IDL Compiler Maven Plugin is used for processing IDL files into java sources.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

%pom_change_dep :plexus-compiler-api org.codehaus.plexus:
%pom_change_dep org.jacorb: :jacorb-idl-compiler
#%% pom_xpath_set "pom:dependency[pom:artifactId = 'jacorb-idl-compiler']/pom:optional" false

cp %{SOURCE1} .

%build
# Failed tests because of DEBUG: java.lang.NoClassDefFoundError: org/apache/maven/artifact/DependencyResolutionRequiredException
# Mabye related to http://jira.codehaus.org/browse/MNG-5449 ?
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13284 |21mr|idm-console-framework-1.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
################################################################################
Name:             idm-console-framework
################################################################################

Summary:          Identity Management Console Framework
URL:              http://www.dogtagpki.org/
License:          LGPLv2
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Version:          1.2.0
Release:          3%{?_timestamp}%{?_commit_id}
# global           _phase -a1

# To create a tarball from a version tag:
# $ git archive \
#     --format=tar.gz \
#     --prefix idm-console-framework-<version>/ \
#     -o idm-console-framework-<version>.tar.gz \
#     <version tag>
Source: https://github.com/dogtagpki/idm-console-framework/archive/v%{version}%{?_phase}/idm-console-framework-%{version}%{?_phase}.tar.gz

# To create a patch for all changes since a version tag:
# $ git format-patch \
#     --stdout \
#     <version tag> \
#     > idm-console-framework-VERSION-RELEASE.patch
# Patch: idm-console-framework-VERSION-RELEASE.patch

################################################################################
# Build Dependencies
################################################################################

# autosetup
BuildRequires:    git

BuildRequires:    java-devel >= 1.8.0
BuildRequires:    ant >= 1.6.2
BuildRequires:    jss >= 4.5.0-1
BuildRequires:    ldapjdk >= 4.20.0

################################################################################
# Runtime Dependencies
################################################################################

# Urge use of OpenJDK for runtime
Requires:         java >= 1.8.0
Requires:         jss >= 4.5.0-1
Requires:         ldapjdk >= 4.20.0

%description
A Java Management Console framework used for remote server management.

################################################################################
%prep
################################################################################

%autosetup -n idm-console-framework-%{version}%{?_phase} -p 1 -S git

################################################################################
%build
################################################################################

%{ant} \
    -Dlib.dir=%{_libdir} \
    -Dbuilt.dir=`pwd`/built \
    -Dclassdest=%{_javadir}

################################################################################
%install
################################################################################

install -d $RPM_BUILD_ROOT%{_javadir}
install -m644 built/release/jars/idm-console-* $RPM_BUILD_ROOT%{_javadir}

################################################################################
%files
################################################################################

%doc LICENSE
%{_javadir}/idm-console-base.jar
%{_javadir}/idm-console-mcc.jar
%{_javadir}/idm-console-mcc_en.jar
%{_javadir}/idm-console-nmclf.jar
%{_javadir}/idm-console-nmclf_en.jar

################################################################################


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13285 |21mr|ifd-gempc-1.0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# See also:
# https://salsa.debian.org/debian/ifd-gempc
# (the upstream author maintains the Debian package)

%define _disable_ld_no_undefined 1
%define usbdropdir %(pkg-config libpcsclite --variable="usbdropdir" 2>/dev/null)

Summary:	Gemplus 410 and 430 Smartcard reader driver
Name:		ifd-gempc
Version:	1.0.8
Release:	2
License:	GPL/BSD
Group:		System/Libraries
Url:		http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/index.html
Source0:	http://ludovic.rousseau.free.fr/softwares/ifd-GemPC/ifd-gempc-%{version}.tar.gz
Source1:	ifd-gempc.rpmlintrc
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(libusb)

%description
This package provides a PCSC-lite driver for Gemplus 410 and 430
smartcard readers.

#----------------------------------------------------------------------------

%package -n ifd-gempc410
Summary:	Gemplus 410 smartcard reader driver
Group:		System/Libraries
Requires:	pcsc-lite

%description -n ifd-gempc410
This package provides a PCSC-lite driver for the following
serial Gemplus smartcard readers:
 * GemPC410
 * GemPC412
 * GemPC413-SL
 * GemPC415

%files -n ifd-gempc410
%doc README README.410
%config(noreplace) %{_sysconfdir}/reader.conf.d/gempc410.conf
%{usbdropdir}/serial/libGemPC410.so.%{version}

#----------------------------------------------------------------------------

%package -n ifd-gempc430
Summary:	Gemplus 430 smartcard reader driver
Group:		System/Libraries
Requires:	pcsc-lite

%description -n ifd-gempc430
This package provides a PCSC-lite driver for the following usb
Gemplus smartcard readers:
 * GemPC430
 * GemPC432
 * GemPC435

%files -n ifd-gempc430
%doc README README.430
%{usbdropdir}/ifd-GemPC430.bundle

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_sysconfdir}/reader.conf.d
cat > %{buildroot}%{_sysconfdir}/reader.conf.d/gempc410.conf <<_EOF
FRIENDLYNAME      "GemPC410"
DEVICENAME        /dev/ttyS0
LIBPATH           %{usbdropdir}/serial/libGemPC410.so.%{version}
CHANNELID         1
_EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13286 |21mr|ifmetric-0.3-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to change the priority of IPv4 routes
Name:		ifmetric
Version:	0.3
Release:	17
License:	GPL
Group: 		System/Configuration/Networking
Url: 		http://0pointer.de/lennart/projects/ifmetric/
Source0:	http://0pointer.de/lennart/projects/ifmetric/%{name}-%{version}.tar.gz
Patch0:		10_netlink_fix.patch
BuildRequires:	lynx

%description
ifmetric is a Linux tool for setting the metrics of all IPv4 routes
attached to a given network interface at once. This may be used to
change the priority of routing IPv4 traffic over the interface.
Lower metrics correlate with higher priorities.

%prep
%autosetup -p1

%build
%configure --disable-xmltoman
%make

%install
%makeinstall

%clean

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/%{name}
%{_mandir}/man8/%{name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13287 |21mr|ifplugd-0.28-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	Detect and perform actions when an ethernet cable is (un)plugged
Name:		ifplugd
Version:	0.28
Release:	27
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://0pointer.de/lennart/projects/ifplugd/
Source0:	http://0pointer.de/lennart/projects/ifplugd/%{name}-%{version}.tar.gz
Patch0:		ifplugd-0.28-exit-status.patch
Patch1:		ifplugd-0.28-event.patch
Patch2:		ifplugd-0.28-include.patch
Patch3:		ifplugd-0.28-onlink.patch
BuildRequires:	doxygen
BuildRequires:	lynx
BuildRequires:	libdaemon-devel

%description
ifplugd is a Linux daemon which will automatically configure your
ethernet device when a cable is plugged in and automatically
unconfigure it if the cable is pulled. This is useful on laptops with
onboard network adapters, since it will only configure the interface
when a cable is really connected.

%files
%doc doc/README doc/NEWS doc/README.html doc/style.css LICENSE
/sbin/ifplugd
/sbin/ifplugstatus
%{_mandir}/man?/ifplugd*
%{_mandir}/man?/ifplugstatus*
%dir %{_sysconfdir}/ifplugd
%config(noreplace) %{_sysconfdir}/ifplugd/ifplugd.conf
%{_sysconfdir}/ifplugd/ifplugd.action

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .exit-status
%patch1 -p1 -b .event
%patch2 -p1 -b .include
%patch3 -p1 -b .onlink

%build
%configure \
	--sbindir=/sbin
%make

%install
%makeinstall_std
rm -f %{buildroot}%{_sysconfdir}/init.d/ifplugd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13288 |21mr|iguanair-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# python module
%define _disable_ld_no_undefined 1
%define debug_package %{nil}

%define Name	iguanaIR
%define major	0
%define libname	%mklibname iguanair %{major}
%define devname	%mklibname iguanair -d

Summary:	IguanaWorks USB IR Transceiver driver
Name:		iguanair
Version:	1.1.0
Release:	1
License:	GPLv2 and LGPLv2.1
Group:		System/Kernel and hardware
Url:		http://iguanaworks.net/projects/IguanaIR/
Source0:	http://iguanaworks.net/downloads/%{Name}-%{version}.tar.bz2
Source1:        iguanaIR.service
Source2:        iguanaIR-rescan
Source3:	README.omv
Patch1:         changeset_2710.patch
Patch2:         python3-switch.patch
Patch3:         default-libdir-arch-64.patch 
BuildRequires:	swig
BuildRequires:	cmake
BuildRequires:	libusb
BuildRequires:	libusb1-devel, libusbx-devel
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(popt)
BuildRequires:  /usr/bin/pathfix.py
Requires(post,preun):	rpm-helper

%description
This package contains the driver daemon required for the operation
of the IguanaWorks USB IR Transceiver and the igclient test tool.

The IguanaWorks USB IR Transceiver is a simple USB device that can
communicate with most home electronics and remote controls via
infrared (IR). The transceiver can both send and receive IR codes,
and is fully compatible with LIRC under Linux. Unlike serial
devices, the USB transceiver does not require a kernel module, and
multiple transceivers can be in use at the same time. Each
transceiver can transmit on up to 4 independent channels.

%files
%doc AUTHORS LICENSE LICENSE-LGPL WHY
%doc README.txt ChangeLog
%doc README.omv
%{_bindir}/igdaemon
%{_bindir}/igclient
%{_bindir}/iguanaIR-rescan
%{_libexecdir}/%{Name}/
%{_unitdir}/%{Name}.service
/lib/udev/rules.d/80-%{Name}.rules
%config(noreplace) %{_sysconfdir}/sysconfig/%{Name}
%config(noreplace) %{_sysconfdir}/tmpfiles.d/%{name}.conf
%attr(755, iguanair, iguanair) /run/%{name}
%attr(775, iguanair, iguanair) %{_localstatedir}/log/%{Name}

#=======================================================================

%package -n python-iguanair
Summary:	Python bindings for iguanaIR
Group:		Development/Python
BuildRequires:	python3-devel

%description -n python-iguanair
Python bindings for IguanaWorks USB IR Transceiver.

%files -n python-iguanair
%{python3_sitearch}/*

#=======================================================================

%package reflasher
Summary:	Reflasher for iguanaIR devices
Group:		System/Kernel and hardware
Requires:	python-iguanair

%description reflasher
Firmware reflasher for IguanaWorks USB IR Transceiver.

%files reflasher
%{_datadir}/%{Name}-reflasher/
%{_bindir}/%{Name}-reflasher

#=======================================================================

%package -n %{libname}
Summary:	Shared library for iguanaIR devices
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libiguanair.

%files -n %{libname}
%{_libdir}/*.so*
%{_libdir}/%{Name}/*.so*

#=======================================================================

%package -n %{devname}
Summary:	Headers for iguanaIR development
Group:		Development/C
Requires:	%{libname} = %version
Provides:	%{name}-devel = %version-%release

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libiguanair.

%files -n %{devname}
%doc README.txt
%{_libdir}/*.so
%{_includedir}/%{Name}.h

#=======================================================================

%prep
%setup -qn %{Name}-%{version}
%apply_patches
cp %{SOURCE3} README.omv

%build
%cmake
%make_build

%install
%makeinstall_std -C build INLIBDIR=%{buildroot}%{_libdir}

install -m755 -d %{buildroot}%{_localstatedir}/run/%{name}

# Use /etc/sysconfig instead of /etc/default
mkdir %{buildroot}%{_sysconfdir}/sysconfig || :
mv  %{buildroot}/etc/default/iguanaIR \
    %{buildroot}%{_sysconfdir}/sysconfig

# Remove the installed initfile and install the systemd support instead.
rm -rf %{buildroot}%{_sysconfdir}/init.d/
install -m644 -D %{SOURCE1} %{buildroot}%{_unitdir}/%{Name}.service
install -m755 -D %{SOURCE2} %{buildroot}%{_libexecdir}/iguanaIR/rescan

# Install private log dir, tmpfiles.d setup.
install -m755 -d %{buildroot}%{_localstatedir}/log/iguanaIR
install -m755 -d %{buildroot}/etc/tmpfiles.d

cat > %{buildroot}/etc/tmpfiles.d/%{name}.conf <<EOF
d   /run/%{name}    0755    iguanair   iguanair
EOF
install -m755 -d %{buildroot}/run/%{name}

pathfix.py -pni "%{__python3} %{py3_shbang_opts}" ./

%pre
%_pre_useradd iguanair / /sbin/nologin

%post
%_post_service %{name}
if [ "$1" = "1" ]; then
	 # apply new permissions from the added udev file
	/sbin/udevadm trigger --attr-match=manufacturer=IguanaWorks
fi

%preun
%_preun_service %{name}

%postun
%_postun_userdel iguanair

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13289 |21mr|iio-sensor-proxy-3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		iio-sensor-proxy
Version:	3.3
Release:	3
Summary:	IIO sensors to D-Bus proxy
Group:		System/Kernel and hardware
License:	GPLv2+
URL:		https://gitlab.freedesktop.org/hadess/iio-sensor-proxy
Source0:	https://gitlab.freedesktop.org/hadess/iio-sensor-proxy/-/archive/%{version}/iio-sensor-proxy-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	systemd

%description
IIO sensors to D-Bus proxy.

%files
%license COPYING
%doc README.md
%{_bindir}/monitor-sensor
%{_libexecdir}/%{name}
%{_unitdir}/%{name}.service
%{_udevrulesdir}/*-%{name}.rules
%{_sysconfdir}/dbus-1/system.d/net.hadess.SensorProxy.conf
%{_datadir}/gtk-doc/html

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#--------------------------------------------------------------------
%prep
%autosetup -p1

%build
%meson -Dgtk_doc=true -Dgtk-tests=false
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13290 |21mr|ilmbase-2.5.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname IlmBase

%define	api 2_5
%define	major 25
%define	libhalf %mklibname Half %{api} %{major}
%define	oldhalf %mklibname Half %{major}
%define	libiex %mklibname Iex %{api} %{major}
%define	libiexmath %mklibname IexMath %{api} %{major}
%define	libilmthread %mklibname IlmThread %{api} %{major}
%define	libimath %mklibname Imath %{api} %{major}
%define	devname %mklibname %{name} -d

Summary:	Abraction/convenience libraries for OpenEXR
Name:		ilmbase
Version:	2.5.8
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://www.openexr.com
# The tarball now contains all the OpenEXR parts
Source0:	https://github.com/AcademySoftwareFoundation/openexr/archive/refs/tags/v%{version}?/openexr-%{version}.tar.gz
BuildRequires:	cmake >= 3.12.0

%description
This package contains various abstraction/convenience libraries for OpenEXR:
* Half is a class that encapsulates the ilm 16-bit floating-point format.
* Iex is an exception-handling library.
* IexMath is an exception-handling library for math functions.
* IlmThread is a thread abstraction library for use with OpenEXR and other
  software packages.
* Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions and
  other useful 2D and 3D math functions.

#----------------------------------------------------------------------------

%package -n %{libhalf}
Summary:	Abraction/convenience library for OpenEXR
Group:		System/Libraries
%rename		%{oldhalf}

%description -n %{libhalf}
Half is a class that encapsulates the ilm 16-bit floating-point format.

%files -n %{libhalf}
%doc LICENSE.md
%{_libdir}/libHalf-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libiex}
Summary:	Abraction/convenience library for OpenEXR
Group:		System/Libraries

%description -n %{libiex}
Iex is an exception-handling library.

%files -n %{libiex}
%doc LICENSE.md
%{_libdir}/libIex-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libiexmath}
Summary:	Abraction/convenience library for OpenEXR
Group:		System/Libraries

%description -n %{libiexmath}
IexMath is an exception-handling library for math functions.

%files -n %{libiexmath}
%doc LICENSE.md
%{_libdir}/libIexMath-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libilmthread}
Summary:	Abraction/convenience library for OpenEXR
Group:		System/Libraries

%description -n %{libilmthread}
IlmThread is a thread abstraction library for use with OpenEXR
and other software packages.

%files -n %{libilmthread}
%doc LICENSE.md
%{_libdir}/libIlmThread-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libimath}
Summary:	Abraction/convenience library for OpenEXR
Group:		System/Libraries

%description -n %{libimath}
Imath implements 2D and 3D vectors, 3x3 and 4x4 matrices, quaternions
and other useful 2D and 3D math functions.

%files -n %{libimath}
%doc LICENSE.md
%{_libdir}/libImath-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libhalf} = %{EVRD}
Requires:	%{libiex} = %{EVRD}
Requires:	%{libiexmath} = %{EVRD}
Requires:	%{libilmthread} = %{EVRD}
Requires:	%{libimath} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc CHANGES.md %{oname}/README.md SECURITY.md
%{_includedir}/OpenEXR/
%{_libdir}/lib*.so
%{_libdir}/cmake/%{oname}/*.cmake
%{_libdir}/pkgconfig/%{oname}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n openexr-%{version}


%build
# The tarball contains all the OpenEXR parts: we here need only %%{oname}
pushd %{oname}
	%cmake
	%make
popd


%install
pushd %{oname}
	%makeinstall_std -C build
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13291 |21mr|ima-evm-utils-1.3.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname imaevm %{major}
%define devname %mklibname imaevm -d

# Do not pull openssl-devel, libressl-devel must be pulled
%global __requires_exclude ^devel\\(libcrypto

# autoreconf is done
%define _disable_rebuild_configure 1

Summary:		IMA/EVM support utilities
Name:			ima-evm-utils
Version:		1.3.2
Release:		15
License:		GPLv2
Group:			System/Base
Url:			http://linux-ima.sourceforge.net/
Source0:		http://sourceforge.net/projects/linux-ima/files/ima-evm-utils/%{name}-%{version}.tar.gz
Patch0:			0001-ima-evm-utils-Fix-compatibility-with-LibreSSL.patch
Patch1:			0002-ima-evm-utils-Fix-sign_hash-init-hash_algo.patch
Patch2:			0003-ima-evm-utils-Fix-hash-algo-names.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	m4
BuildRequires:	asciidoc
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
# Not OpenSSL because LibreSSL supports GOST
# without additional "engines"
BuildRequires:	libressl-devel
BuildRequires:	keyutils-devel
BuildRequires:	kernel-headers
# Important! Otherwise it segfaults
BuildRequires:	kernel-devel
# sorts stdin by rpm vercmp
%ifnarch %{e2k}
BuildRequires:	%{_sbindir}/grub2-rpm-sort
%endif
#Requires:		tss2

%description
The Trusted Computing Group(TCG) run-time Integrity Measurement Architecture
(IMA) maintains a list of hash values of executables and other sensitive
system files, as they are read or executed. These are stored in the file
systems extended attributes. The Extended Verification Module (EVM) prevents
unauthorized changes to these extended attributes on the file system.
ima-evm-utils is used to prepare the file system for these extended attributes.

%files
%doc README AUTHORS COPYING
%{_bindir}/evmctl
%{_mandir}/man1/evmctl.1*
# RPM 5 reports duplicates here
%if %rpm4
%{_defaultdocdir}/ima-evm-utils/ima-gen-local-ca.sh
%{_defaultdocdir}/ima-evm-utils/ima-genkey-self.sh
%{_defaultdocdir}/ima-evm-utils/ima-genkey.sh
%endif
#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# emulate devel(), but not openssl
Requires:	libressl-devel
Provides:	%{name}-devel = %{EVRD}
Provides:	libimaevm-devel = %{EVRD}	

%description -n %{devname}
This package provides header files and development libraries for %{name}

%files -n %{devname}
%{_includedir}/imaevm.h
%{_libdir}/libimaevm.so
#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:		IMA EVM library
Group:			System/Libraries

%description -n %{libname}
IMA EVM library

%files -n %{libname}
%{_libdir}/libimaevm.so.%{major}*
#-----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1
sed -i -e 's,\[libcrypto,\[libressl-libcrypto,g' configure.ac

%build
export LIBCRYPTO_CFLAGS="$(pkg-config --cflags-only-I --libs-only-L libressl-libcrypto)"
autoreconf -if

# Build needs not only kernel-headers, but also /lib/modules/$(uname -r)/source
# Use headers from the latest available kernel
# Using "sort" instead of "grub2-rpm-sort" to select the latest kernel-devel package 
# when building for e2k. Elbrus does not use grub2 
SORT="/bin/sort -u"
[ -f %{_sbindir}/grub2-rpm-sort ] && SORT=%{_sbindir}/grub2-rpm-sort
latest_devel_kernel="$(rpm -q --whatprovides kernel-devel | $SORT | tail -n1)"
kernel_headers_path="$(rpm -ql "$latest_devel_kernel" | grep /lib/modules | grep /source | head -n1)"
if [ ! -f "$kernel_headers_path"/Kconfig ]; then exit 1; fi

%configure \
	--disable-static \
	--with-kernel-headers="$kernel_headers_path"
%make

%install
%makeinstall_std

%check
# Check that GOST R 34.11-12 is supported
# This also checks that libs and bins were linked against LibreSSL.
# Tmpfs does not support user xattrs, evmctl gives and error,
# but hash is still calculated.
set +e
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
%{buildroot}%{_bindir}/evmctl -v ima_hash --xattr-user -a streebog256 %{SOURCE0} | grep -q '^hash(streebog256)'
c=$?
if [ $? != 0 ]; then exit 1; fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13292 |21mr|imagemagick-7.1.1.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
%undefine _find_debuginfo_dwz_opts

%global	_disable_ld_no_undefined 1
# ImageMagick actually uses libtool to load its modules
%global	dont_remove_libtool_files 1
#gw the format-string patch is incomplete:
%global Werror_cflags %{nil}


%define	build_test 0
%define	bootstrap 0
%define	oname ImageMagick

# Some other funny version

# (aw) from the docs: Versions with Q8 in the name are 8 bits-per-pixel
# component (e.g. 8-bit red, 8-bit green, etc.), whereas, Q16 in the
# filename are 16 bits-per-pixel component. A Q16 version permits you
# to read or write 16-bit images without losing precision but requires
# twice as much resources as the Q8 version.
%define	qlev Q16HDRI
# their "official" version
#define	rversion 7.0.4
# their "minor" version
#define	minor_rev 6
# the full file version
# Their "official" version
%define	rversion %(echo %{version} |cut -d. -f1-3)
# Their "minor" version
%define	minor_rev %(echo %{version} |cut -d. -f4)
# Full file version
%define	dversion %{rversion}-%{minor_rev}

%define	api 7
%define	major 1
%define	coremajor 10
%define	cppmajor 5
%define	wandmajor 10
%define	libMagickpp %mklibname Magick++ %{api}.%{qlev} %{cppmajor}
%define	libMagickCore %mklibname MagickCore %{api}.%{qlev} %{coremajor}
%define	libMagickWand %mklibname MagickWand %{api}.%{qlev} %{wandmajor}
%define	devname %mklibname magick -d

Summary:	An X application for displaying and manipulating images
Name:		imagemagick
Version:	7.1.1.21
Release:	2
License:	BSD-like
Group:		Graphics
Url:		https://www.imagemagick.org/
Source0:	https://github.com/ImageMagick/ImageMagick/archive/%{dversion}/ImageMagick-%{dversion}.tar.gz
Source3:	ImageMagick.pdf.bz2
# Re-scaled from ftp://ftp.imagemagick.org/pub/ImageMagick/images/magick-icon.png
Source10:	magick-icon_16x16.png
Source11:	magick-icon_32x32.png
Source12:	magick-icon_48x48.png
Source13:	magick-icon_64x64.png
Source100:	%{name}.rpmlintrc
Patch0:		imagemagick-urw.diff
Patch1:		imagemagick-fpx.diff
Patch2:		ImageMagick-libpath.diff
# Fix build hplip to 1686
Patch3:		new-default-time-to-live.patch
Patch4:		unlimited-is-INT_MAX.patch
BuildRequires:	chrpath
BuildRequires:	ghostscript
BuildRequires:	subversion
BuildRequires:	bzip2-devel
# Contrib
#BuildRequires:	flif-devel
BuildRequires:	jbig-devel
BuildRequires:	libtool-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(cairo)
%if !%{bootstrap}
BuildRequires:	pkgconfig(ddjvuapi) >= 3.5.0
%endif
BuildRequires:	pkgconfig(fontconfig) >= 2.1.0
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libgvc) >= 2.9.0
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(liblzma) >= 2.9.0
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libraw_r)
%ifnarch %{e2k}
BuildRequires:	pkgconfig(librsvg-2.0)
%endif
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libwmf)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lqr-1) >= 0.1.0
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(pangocairo) >= 1.2.8.1
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)

%description
ImageMagick is a powerful image display, conversion and manipulation tool. It
runs in an X session. With this tool, you can view, edit and display a variety
of image formats.
It can make use of the following delegate programs, available as packages in
Rosa Linux Fresh: curl, enscript, ffmpeg, ghostscript, ghostscript-X, gimp,
gnuplot, graphviz, html2ps, mplayer, ncompress, netpbm, sane-backends,
tetex-dvips, transfig, ufraw, xdg-utils zip, autotrace, povray.

%files
%doc README.md README.txt
%doc %{_docdir}/%{oname}-%{api}
%{_sysconfdir}/%{oname}-%{api}
%{_bindir}/animate
%{_bindir}/compare
%{_bindir}/composite
%{_bindir}/convert
%{_bindir}/conjure
%{_bindir}/display
%{_bindir}/identify
%{_bindir}/import
%{_bindir}/magick
%{_bindir}/magick-script
%{_bindir}/mogrify
%{_bindir}/montage
%{_bindir}/stream
%dir %{_libdir}/%{oname}-%{rversion}
%dir %{_libdir}/%{oname}-%{rversion}/modules-%{qlev}
%dir %{_libdir}/%{oname}-%{rversion}/modules-%{qlev}/coders
%{_libdir}/%{oname}-%{rversion}/modules-%{qlev}/coders/*
%dir %{_libdir}/%{oname}-%{rversion}/modules-%{qlev}/filters
%{_libdir}/%{oname}-%{rversion}/modules-%{qlev}/filters/*
%{_libdir}/%{oname}-%{rversion}/config-%{qlev}
%{_datadir}/%{oname}-%{api}
%{_mandir}/man1/*
%{_mandir}/man3/*
%exclude %{_mandir}/man3/*::*.3pm*

#----------------------------------------------------------------------------

%package desktop
Summary:	ImageMagick menus
Group:		Graphics
Requires:	xterm

%description desktop
This package contains the menu and .desktop entries to run the "display"
command from the menu.

%files desktop
%doc LICENSE
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_iconsdir}/hicolor/64x64/apps/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png

#----------------------------------------------------------------------------

%package -n %{libMagickpp}
Summary:	ImageMagick libraries
Group:		System/Libraries
Obsoletes:	%{_lib}magick6 < 6.8.5.6-1

%description -n %{libMagickpp}
This package contains a library for %{name}.

%files -n %{libMagickpp}
%doc LICENSE
%{_libdir}/libMagick++-%{api}.%{qlev}.so.%{cppmajor}*

#----------------------------------------------------------------------------

%package -n %{libMagickCore}
Summary:	ImageMagick libraries
Group:		System/Libraries
Conflicts:	%{_lib}magick6 < 6.8.5.6-1

%description -n %{libMagickCore}
This package contains a library for %{name}.

%files -n %{libMagickCore}
%doc LICENSE
%{_libdir}/libMagickCore-%{api}.%{qlev}.so.%{coremajor}*

#----------------------------------------------------------------------------

%package -n %{libMagickWand}
Summary:	ImageMagick libraries
Group:		System/Libraries
Conflicts:	%{_lib}magick6 < 6.8.5.6-1

%description -n %{libMagickWand}
This package contains a library for %{name}.

%files -n %{libMagickWand}
%doc LICENSE
%{_libdir}/libMagickWand-%{api}.%{qlev}.so.%{wandmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files for ImageMagick app development
Group:		Development/C
Requires:	%{libMagickpp} = %{EVRD}
Requires:	%{libMagickCore} = %{EVRD}
Requires:	%{libMagickWand} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
If you want to create applications that will use ImageMagick code or APIs,
you'll need to install these packages as well as ImageMagick. These additional
packages aren't necessary if you simply want to use ImageMagick, however.
This package is an addition to ImageMagick which includes development
libraries and header files necessary to develop applications.

%files -n %{devname}
%doc LICENSE
%{_includedir}/%{oname}-%{api}
%{_bindir}/Magick++-config
%{_bindir}/MagickCore-config
%{_bindir}/MagickWand-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n perl-Image-Magick
Summary:	Libraries and modules for access to ImageMagick from perl
Group:		Development/Perl
Requires:	%{name} = %{EVRD}
Requires:	graphviz
Requires:	libwmf

%description -n perl-Image-Magick
This is the ImageMagick perl support package. It includes perl modules and
support files for access to ImageMagick library from perl.

%files -n perl-Image-Magick
%doc LICENSE
%{perl_vendorarch}/Image
%{perl_vendorarch}/auto/Image
%{_mandir}/man3*/*::*.3pm*

#----------------------------------------------------------------------------

%package doc
Summary:	%{oname} Documentation
Group:		Books/Other
BuildArch:	noarch

%description doc
This package contains HTML/PDF documentation of %{name}.

%files doc
%doc ImageMagick.pdf LICENSE NEWS* NOTICE
%doc QuickStart.txt installed_docs/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{rversion}-%{minor_rev}

bzcat %{SOURCE3} > %{oname}.pdf
install -m 644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{SOURCE13} .
libtoolize --copy --force; aclocal -I m4; autoconf; automake -a


%build
export CFLAGS="%{optflags} -fno-strict-aliasing -fPIC"
export CXXFLAGS="%{optflags} -fno-strict-aliasing -fPIC"

# Don't use icecream
export PATH=/bin:/usr/bin

%configure \
	--disable-static \
	--docdir=%{_defaultdocdir}/%{name} \
	--with-pic \
	--enable-shared \
	--enable-fast-install \
	--with-magick_plus_plus \
	--with-gslib \
	--with-wmf \
	--with-lcms \
%ifarch %{e2k}
	--disable-openmp \
%else
	--with-rsvg \
	--with-threads \
%endif
	--with-xml \
	--without-dps \
	--without-windows-font-dir \
	--with-modules \
	--with-perl \
	--with-perl-options="INSTALLDIRS=vendor CC='%{__cc} -L$PWD/magick/.libs' LDDLFLAGS='-shared -L$PWD/magick/.libs'" \
	--with-gvc \
	--with-lqr

# Disable rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make


%install
# (Abel) set LD_RUN_PATH to null, to avoid adding rpath to perlmagick module
%makeinstall_std LD_RUN_PATH="" pkgdocdir=/installed_docs

# Fix docs inclusion (fix an unknown new rpm bug)
rm -rf installed_docs; mv %{buildroot}/installed_docs .

# Remove unpackaged files
rm -f %{buildroot}%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/libltdl*

# Ccreate compatible symlinks
ln -s libMagick++-%{api}.%{qlev}.so %{buildroot}%{_libdir}/libMagick++.so
ln -s libMagickCore-%{api}.%{qlev}.so %{buildroot}%{_libdir}/libMagickCore.so
ln -s libMagickWand-%{api}.%{qlev}.so %{buildroot}%{_libdir}/libMagickWand.so

# Nuke rpath
# chrpath -d %%{buildroot}%%{perl_vendorarch}/auto/Image/Magick/Magick.so

# Install icons
install -m 755 -d \
	%{buildroot}%{_liconsdir} \
	%{buildroot}%{_iconsdir} \
	%{buildroot}%{_iconsdir}/hicolor/64x64/apps \
	%{buildroot}%{_miconsdir}

install -m 644 magick-icon_16x16.png %{buildroot}%{_miconsdir}/%{name}.png
install -m 644 magick-icon_32x32.png %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 magick-icon_48x48.png %{buildroot}%{_liconsdir}/%{name}.png
install -m 644 magick-icon_64x64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png

# Provde .desktop file
install -m 755 -d %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=ImageMagick
Name[ru]=ImageMagick
Comment=Views Graphics files
Comment[ru]=Просмотр графических файлов
Exec=xterm -geometry 40x15 -title ImageMagick +sb -iconic -e %{_bindir}/display
Icon=%{name}
Terminal=false
Type=Application
Categories=Graphics;Viewer;
EOF

# Drop useless empty file
rm -f %{buildroot}%{_docdir}/imagemagick-doc/www/magick-cache.html


%if %{build_test}
%check
#  These tests require X
if [ -f PerlMagick/t/x11/read.t ]; then
	mv PerlMagick/t/x11/read.t PerlMagick/t/x11/read.t.disabled
fi
if [ -f PerlMagick/t/x11/write.t ]; then
	mv PerlMagick/t/x11/write.t PerlMagick/t/x11/write.t.disabled
fi
#dlname=`grep "^dlname" Magick++/lib/.libs/libMagick++.la | cut -d\' -f2`
#LD_PRELOAD="$PWD/Magick++/lib/.libs/$dlname" VERBOSE="1" make check
make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13293 |21mr|ima-inspect-0.13-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Build with libressl as ima-evm-utils
%global optflags %{optflags} %(pkg-config --cflags-only-I libressl || :)
%global ldflags %{ldflags} %(pkg-config --libs-only-L libressl || :)

Summary:        Output IMA/EVM extended attributes in a human readable format
Name:           ima-inspect
Version:        0.13
Release:        5
License:        LGPL-2.1-or-later
Group:          System/Base
Url:            https://github.com/mgerstner/ima-inspect
Source0:        https://github.com/mgerstner/ima-inspect/releases/download/v%{version}/ima-inspect-dist-%{version}.tar.gz
# https://github.com/mgerstner/ima-inspect/pull/2
Patch0:         0001-digest-hash-algorithm-list-extend.patch
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  gcc-c++
BuildRequires:  glibc-devel
BuildRequires:  ima-evm-utils-devel
BuildRequires:  libressl-devel
# For Patch0, Streebog was added in kernel 5.x
BuildRequires:  kernel-headers
BuildRequires:  tclap

%description
This is a small utility that supplements ima-evm-utils with a way to inspect
the security.ima and security.evm extended attributes in human readable
format.

%files
%doc README.md
%license LICENSE
%{_bindir}/ima_inspect
%{_bindir}/ima-inspect
#--------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std
# match name of the package
( cd %{buildroot}%{_bindir}
  ln -s ima_inspect ima-inspect
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13294 |21mr|imake-1.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	C preprocessor interface to the make utility
Name:		imake
Version:	1.0.8
Release:	1
License:	Free
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/util/%{name}-%{version}.tar.bz2
Patch100:	Fix-script-generation-on-e2k.patch
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-util-cf-files

%description
Imake is used to generate Makefiles from a template, a set of cpp macro
functions,  and  a  per-directory input file called an Imakefile.  This allows
machine dependencies (such as compiler options,  alternate com- mand  names,
and  special  make  rules)  to  be kept separate from the descriptions of
the various items to be built.

%files
%{_bindir}/ccmakedep
%{_bindir}/cleanlinks
%{_bindir}/imake
%{_bindir}/makeg
%{_bindir}/mergelib
%{_bindir}/mkdirhier
%{_bindir}/mkhtmlindex
%{_bindir}/revpath
%{_bindir}/xmkmf
%{_mandir}/man1/ccmakedep.*
%{_mandir}/man1/cleanlinks.*
%{_mandir}/man1/imake.*
%{_mandir}/man1/makeg.*
%{_mandir}/man1/mergelib.*
%{_mandir}/man1/mkdirhier.*
%{_mandir}/man1/mkhtmlindex.*
%{_mandir}/man1/revpath.*
%{_mandir}/man1/xmkmf.*

#----------------------------------------------------------------------------

%prep
%setup -q
%ifarch %{e2k}
%patch100 -p1
%endif

%build
%configure \
	--with-config-dir=%{_datadir}/X11/config \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13295 |21mr|imath-3.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname Imath

%define	major 29
%define	api 3_1
%define	libPyImath %mklibname PyImath_Python3_8 %{api} %{major}
%define	libname %mklibname %{oname} %{api} %{major}
%define	devname %mklibname %{oname} -d

Summary:	Basic, light-weight, and efficient C++ representation of 2D and 3D vectors
Name:		imath
Version:	3.1.4
Release:	1
License:	BSD
Group:		Graphics
Url:		https://www.openexr.com
Source0:	https://github.com/AcademySoftwareFoundation/Imath/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		e2k-disable-F16C.patch
BuildRequires:	boost-python
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	python3egg(numpy)
BuildRequires:	pkgconfig(python3)

%description
Imath is a basic, light-weight, and efficient C++ representation of 2D and 3D 
vectors and matrices and other simple but useful mathematical objects, 
functions, and data types common in computer graphics applications, 
including the “half” 16-bit floating-point type.
Imath also includes optional python bindings for all types and functions, 
including optimized implementations of vector and matrix arrays.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Basic, light-weight, and efficient C++ representation of 2D and 3D vectors
Group:		System/Libraries

%description -n %{libname}
Imath is a basic, light-weight, and efficient C++ representation of 2D and 3D 
vectors and matrices and other simple but useful mathematical objects, 
functions, and data types common in computer graphics applications, 
including the “half” 16-bit floating-point type.
Imath also includes optional python bindings for all types and functions, 
including optimized implementations of vector and matrix arrays.


%files -n %{libname}
%{_libdir}/lib%{oname}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libPyImath}
Summary:	Python3 library for Imath-python
Group:		System/Libraries

%description -n %{libPyImath}
Imath is a basic, light-weight, and efficient C++ representation of 2D and 3D 
vectors and matrices and other simple but useful mathematical objects, 
functions, and data types common in computer graphics applications, 
including the “half” 16-bit floating-point type.
Imath also includes optional python bindings for all types and functions, 
including optimized implementations of vector and matrix arrays.


%files -n %{libPyImath}
%{_libdir}/libPyImath_Python3_8-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n python3-imath
Summary:	Python 3 bindings for Imath
Group:		Development/Python
Provides:	%{oname}-python = %{EVRD}
Requires:	%{libPyImath} = %{EVRD}

%description -n python3-imath
Imath is a basic, light-weight, and efficient C++ representation of 2D and 3D 
vectors and matrices and other simple but useful mathematical objects, 
functions, and data types common in computer graphics applications, 
including the “half” 16-bit floating-point type.
Imath also includes optional python bindings for all types and functions, 
including optimized implementations of vector and matrix arrays.

%files -n python3-imath
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{oname}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libPyImath} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and header files for developing programs based on %{oname}.

%files -n %{devname}
%doc CHANGES.md README.md
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/%{oname}/*.cmake
%{_libdir}/pkgconfig/%{oname}.pc
%{_libdir}/pkgconfig/Py%{oname}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake -DPYTHON=ON
%make

%install
%makeinstall_std -C build

# Drop for install with ilmbase-devel
rm -rf %{buildroot}%{_libdir}/libImath.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13296 |21mr|imlib2-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	Powerful image loading and rendering library
Name:		imlib2
Version:	1.7.1
Release:	1
License:	Imlib2
Group:		System/Libraries
Url:		http://enlightenment.org/Libraries/Imlib2/
Source0:	http://sourceforge.net/projects/enlightenment/files/imlib2-src/%{version}/%{name}-%{version}.tar.bz2
Patch0:		imlib2-1.4.2-fontclean.patch
BuildRequires:	bzip2-devel
BuildRequires:	jpeg-devel
BuildRequires:	tiff-devel
BuildRequires:	ungif-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
Imlib2 is an advanced replacement library for libraries like libXpm that
provides many more features with much greater flexibility and speed than
standard libraries, including font rasterization, rotation, RGBA space
rendering and blending, dynamic binary filters, scripting, and more.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Powerful image loading and rendering library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Requires:	%{libname}-filters = %{EVRD}
Requires:	%{libname}-loaders = %{EVRD}

%description -n %{libname}
Imlib2 is an advanced replacement library for libraries like libXpm that
provides many more features with much greater flexibility and speed than
standard libraries, including font rasterization, rotation, RGBA space
rendering and blending, dynamic binary filters, scripting, and more.

%files -n %{libname}
%doc AUTHORS README COPYING
%{_libdir}/libImlib2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Imlib2 headers, development libraries and documentation
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
# taken from fedora where the demos and data are simply removed
Obsoletes:	%{name}-data < 1.4.5-3

%description -n %{devname}
Imlib2 is an advanced replacement library for libraries like libXpm that
provides many more features with much greater flexibility and speed than
standard libraries, including font rasterization, rotation, RGBA space
rendering and blending, dynamic binary filters, scripting, and more.

This package contains various headers and development libraries for %{name}.
You need this package if you want to compile or develop any applications
that need %{name}.

%files -n %{devname}
%doc ChangeLog doc/index.html doc/imlib2.gif doc/blank.gif
%{_bindir}/imlib2-config
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

#----------------------------------------------------------------------------

%package -n %{libname}-filters
Summary:	Imlib2 basic plugin filters set
Group:		System/Libraries

%description -n %{libname}-filters
This package contains Imlib2 basic set of plugin filters.

%files -n %{libname}-filters
%{_libdir}/%{name}/filters

#----------------------------------------------------------------------------

%package -n %{libname}-loaders
Summary:	Imlib2 loader for various graphic formats
Group:		System/Libraries

%description -n %{libname}-loaders
This package contains Imlib2 image loader/saver for various graphic formats,
such as jpeg, gif, tiff, xpm etc.

%files -n %{libname}-loaders
%{_libdir}/%{name}/loaders

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
autoreconf -fi

%build
%configure \
	--disable-static \
%ifarch x86_64
	--enable-amd64 \
	--disable-mmx \
%endif
%ifarch ix86
	--disable-amd64 \
	--enable-mmx \
%endif
	--enable-visibility-hiding
%make

%install
%makeinstall_std

# remove demos and their dependencies
rm -f %{buildroot}%{_bindir}/imlib2_*
rm -rf %{buildroot}%{_datadir}/imlib2/data/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13297 |21mr|incidenceeditor-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 incidence editor module
Name:		incidenceeditor
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarsupport-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5eventviews-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kgantt-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 incidence editor module.

%files
%{_kde5_bindir}/kincidenceeditor
%{_kde5_datadir}/qlogging-categories5/incidenceeditor.categories
%{_kde5_datadir}/qlogging-categories5/incidenceeditor.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 incidence editor library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 incidence editor library translations.

%files i18n -f libincidenceeditors.lang

#----------------------------------------------------------------------------

%define kf5incidenceeditor_major 5
%define libkf5incidenceeditor %mklibname kf5incidenceeditor %{kf5incidenceeditor_major}

%package -n %{libkf5incidenceeditor}
Summary:	KDE Frameworks 5 incidence editor shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5incidenceeditor}
KDE Frameworks 5 incidence editor shared library.

%files -n %{libkf5incidenceeditor}
%{_kde5_libdir}/libKPim5IncidenceEditor.so.%{kf5incidenceeditor_major}*

#----------------------------------------------------------------------------

%define devkf5incidenceeditor %mklibname kf5incidenceeditor -d

%package -n %{devkf5incidenceeditor}
Summary:	Development files for KDE Frameworks 5 incidence editor module
Group:		Development/KDE and Qt
Requires:	%{libkf5incidenceeditor} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5incidenceeditor-devel = %{version}

%description -n %{devkf5incidenceeditor}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5incidenceeditor}
%{_kde5_includedir}/KPim5/IncidenceEditor
%{_kde5_libdir}/cmake/KPim5IncidenceEditor
%{_kde5_libdir}/libKPim5IncidenceEditor.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libincidenceeditors --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13298 |21mr|indent-2.2.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GNU program for formatting C code
Name:		indent
Version:	2.2.11
Release:	4
License:	GPL
Group:		Development/C
URL:		http://www.gnu.org/software/indent/indent.html
Source:		ftp://ftp.gnu.org/pub/gnu/indent/%{name}-%{version}.tar.gz
BuildRequires:	texinfo
Patch5:		indent-2.2.9-lcall.patch
Patch7:		indent-2.2.9-man.patch
# Bug 733051, submitted to upstream
# <https://lists.gnu.org/archive/html/bug-indent/2011-08/msg00000.html>
Patch8:		indent-2.2.11-Do-not-split-decimal-float-suffix-from-constant.patch
# Submitted to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2012-02/msg00000.html>
Patch9:		indent-2.2.11-Return-non-zero-exit-code-on-tests-failure.patch
# Submitted to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2013-02/msg00000.html>
Patch10:	indent-2.2.11-Fix-compiler-warnings.patch
# Submitted to upstream, bug #912635
# <http://lists.gnu.org/archive/html/bug-indent/2013-02/msg00001.html>
Patch11:	indent-2.2.11-Allow-64-bit-stat.patch
# Submitted to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2013-03/msg00002.html>
Patch12:	indent-2.2.11-Fix-copying-overlapping-comment.patch
# Submitted to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2015-03/msg00002.html>
Patch13:	indent-2.2.11-Support-hexadecimal-floats.patch
# Submitted to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2015-03/msg00003.html>
Patch14:	indent-2.2.11-Modernize-texi2html-arguments.patch
# Submitted to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2015-04/msg00001.html>
Patch15:	indent-2.2.11-doc-Correct-a-typo-about-enabling-control-comment.patch
# Submitted to upstream
# <http://lists.gnu.org/archive/html/bug-indent/2015-11/msg00000.html>
Patch16:	indent-2.2.11-Fix-nbdfa-and-nbdfe-typo.patch

BuildRequires:	gettext
BuildRequires:	gperf
BuildRequires:	texi2html

%description
Indent is a GNU program for beautifying C code, so that it is easier to read.
Indent can also convert from one C writing style to a different one. Indent
understands correct C syntax and tries to handle incorrect C syntax.

Install the indent package if you are developing applications in C and you'd
like to format your code automatically.

%prep

%autosetup -p1

%build
%configure
%make_build

%install
%make_install

# html file handled in percent-doc
rm -rf %{buildroot}%{_prefix}/doc

# fix message catalog name
[ -d %{buildroot}%{_datadir}/locale/zh_TW.Big5 ] && \
  mv %{buildroot}%{_datadir}/locale/zh_TW{.Big5,}

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS ChangeLog README doc/indent.html
%{_bindir}/indent
%{_bindir}/texinfo2man
%{_mandir}/man?/*
%{_infodir}/*.info*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13299 |21mr|indent-2.2.12-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GNU program for formatting C code
Name:		indent
Version:	2.2.12
Release:	4
License:	GPL
Group:		Development/C
URL:		http://www.gnu.org/software/indent/indent.html
Source:		ftp://ftp.gnu.org/pub/gnu/indent/%{name}-%{version}.tar.gz
BuildRequires:	texinfo
Patch0:		indent-2.2.12-Recognize-binary-integer-literals.patch

BuildRequires:	gettext
BuildRequires:	gperf
BuildRequires:	texinfo
BuildRequires:	texi2html

%description
Indent is a GNU program for beautifying C code, so that it is easier to read.
Indent can also convert from one C writing style to a different one. Indent
understands correct C syntax and tries to handle incorrect C syntax.

Install the indent package if you are developing applications in C and you'd
like to format your code automatically.

%prep

%autosetup -p1

%build
export CC_FOR_BUILD=%{__cc}
%configure
%make_build

%install
%make_install

# html file handled in percent-doc
rm -rf %{buildroot}%{_prefix}/doc

# fix message catalog name
[ -d %{buildroot}%{_datadir}/locale/zh_TW.Big5 ] && \
  mv %{buildroot}%{_datadir}/locale/zh_TW{.Big5,}

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS ChangeLog doc/indent.html
%{_bindir}/indent
%{_mandir}/man?/*
%{_infodir}/*.info*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13300 |21mr|index-fm-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# index-fm's build system seems to miss various library headers for some reason
%global optflags %{optflags} -isystem %{_includedir}/KF5/KIOFileWidgets -isystem %{_includedir}/KF5/KBookmarks -isystem %{_includedir}/qt5/QtXml -isystem %{_includedir}/KF5/Solid

Summary:	File manager for Plasma Mobile
Name:		index-fm
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
URL:    	https://mauikit.org
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		index-fm-russian_locale.patch
Patch1:		index-fm-i18n_locale.patch
Patch2:		index-fm-cmake_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	mauikit-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	mauikit-devel
BuildRequires:	mauikit-filebrowsing-devel

%description
File manager for Plasma Mobile

%files -f %{name}.lang
%{_kde5_bindir}/index
%{_kde5_applicationsdir}/org.kde.index.desktop
%{_kde5_datadir}/icons/hicolor/*/*/*
%{_appdatadir}/org.kde.index.appdata.xml
%{_kde5_notificationsdir}/org.kde.index.notifyrc

#--------------------------------------------

%prep
%autosetup -p1

find . -name "index-fm.po" -exec rename -- -fm.po .po '{}' +

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13301 |21mr|indi-apogee-1.8.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	INDI driver for Apgoee Alta (U & E) line of CCDs
Name:		indi-apogee
Version:	1.8.6
Release:	1
License:	LGPLv2+
Group:		Development/Other
Url:		http://indi.sourceforge.net/
# Upstream provides one big tar including nonfree BLOBs for other drivers.
# Thus we have to generate a clean tar by ourself containing only
# the free driver to be packaged using
# ./indi-apogee-generate-tarball.sh 1.3.1
Source0:	%{name}-%{version}.tar.gz
Source1:	%{name}-generate-tarball.sh
BuildRequires:	cmake
BuildRequires:	libapogee-devel
BuildRequires:	libnova-devel
BuildRequires:	pkgconfig(libindi)
BuildRequires:	indi-devel-static
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(libindi)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	libapogee-devel
BuildRequires:	pkgconfig(zlib)

%description
This package provides the INDI driver for Apgoee Alta (U & E) line of CCDs.

%files
%doc ChangeLog README
%{_bindir}/indi_apogee_ccd
%{_bindir}/indi_apogee_wheel
%{_datadir}/indi/indi_apogee.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DINDI_DATA_DIR=%{_datadir}/indi
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13302 |21mr|indilib-1.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 1
%define libindidriver %mklibname indidriver %{major}
%define libindimain %mklibname indimain %{major}
%define libindilx200 %mklibname indilx200 %{major}
%define libindiAD %mklibname indiAlignmentDriver %{major}
%define devname %mklibname indi -d
%define sdevname %mklibname indi -d -s

Summary:	Library to control astronomical devices
Name:		indilib
Version:	1.9.2
Release:	1
License:	LGPLv2+
Group:		Development/C
Url:		https://github.com/indilib/indi
Source0:	https://github.com/indilib/indi/archive/v%{version}.tar.gz?/indi-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	systemd-units
BuildRequires:	boost-devel
BuildRequires:	jpeg-devel
BuildRequires:	libfli-devel
BuildRequires:	libnova-devel
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(zlib)
Provides:	indi = %{EVRD}

%description
INDI is an instrument neutral distributed interface control protocol
that aims to provide backend driver support and automation for a wide
range of Astronomical devices (telescopes, focusers, CCDs..etc).

%files
%{_bindir}/*
%{_datadir}/indi
%{_libdir}/indi
%{_udevrulesdir}/80-dbk21-camera.rules
%{_udevrulesdir}/99-indi_auxiliary.rules
%{_udevrulesdir}/99-vantage.rules

#----------------------------------------------------------------------------

%package -n %{libindidriver}
Summary:	Library files for INDI
Group:		Development/C

%description -n %{libindidriver}
This package contains library files of indilib.

%files -n %{libindidriver}
%{_libdir}/libindidriver.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libindilx200}
Summary:	Library files for INDI
Group:		Development/C

%description -n %{libindilx200}
This package contains library files of indilib.

%files -n %{libindilx200}
%{_libdir}/libindilx200.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libindiAD}
Summary:	Library files for INDI
Group:		Development/C

%description -n %{libindiAD}
This package contains library files of indilib.

%files -n %{libindiAD}
%{_libdir}/libindiAlignmentDriver.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	INDI devellopment files
Group:		Development/C
Requires:	%{libindidriver} = %{EVRD}
Requires:	%{libindilx200} = %{EVRD}
Requires:	%{libindiAD} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	indi-devel = %{EVRD}

%description -n %{devname}
INDI is an instrument neutral distributed interface control protocol
that aims to provide backend driver support and automation for a wide
range of Astronomical devices (telescopes, focusers, CCDs..etc).

This package contains files need to build applications using indilib.

%files -n %{devname}
%doc ChangeLog README NEWS
%{_libdir}/libindidriver.so
%{_libdir}/libindiAlignmentDriver.so
%{_libdir}/libindilx200.so
%{_libdir}/pkgconfig/libindi.pc
%{_includedir}/libindi/*.h
%{_includedir}/libindi/alignment/*.h
%{_includedir}/libindi/connectionplugins/*.h
%{_includedir}/libindi/dsp/*.h
%{_includedir}/libindi/mounts/*.h
%{_includedir}/libindi/stream/*.h
%{_includedir}/libindi/stream/encoder/*.h
%{_includedir}/libindi/stream/recorder/*.h

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	INDI devellopment files
Group:		Development/C
Requires:	%{name}-devel = %{EVRD}
Provides:	indi-devel-static = %{EVRD}
Provides:	%{name}-devel-static = %{EVRD}

%description -n %{sdevname}
INDI is an instrument neutral distributed interface control protocol
that aims to provide backend driver support and automation for a wide
range of Astronomical devices (telescopes, focusers, CCDs..etc).

This package contains files need to build applications using indilib.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n indi-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

# fix error install math plugin
mkdir -p %{buildroot}%{_libdir}/indi/MathPlugins/
mv %{buildroot}/usr/%{_libdir}/indi/MathPlugins/*.so %{buildroot}%{_libdir}/indi/MathPlugins/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13303 |21mr|infinispan-8.2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

# Use this switch to rebuild without infinispan
# This is useful to break the infinispan circular dependency
%if 0%{?fedora}
%bcond_with infinispan
# https://bugzilla.redhat.com/show_bug.cgi?id=1363923
%bcond_with spring4
%endif

Name:          infinispan
Version:       8.2.9
Release:       1
Summary:       Data grid platform
License:       ASL 2.0 and LGPLv2+ and Public Domain
URL:           http://infinispan.org/
Source0:       https://github.com/infinispan/infinispan/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

# Port to lucene 6.x
Patch0: lucene-6.patch
Patch1: 0001-Fix-building-with-jboss-marshalling-1.4.patch
Patch2: 0002-Fix-building-with-Lucene-7.patch

BuildRequires: maven-local
BuildRequires: mvn(com.clearspring.analytics:stream)
BuildRequires: mvn(com.mchange:c3p0)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(commons-pool:commons-pool)
BuildRequires: mvn(gnu-getopt:getopt)
BuildRequires: mvn(io.netty:netty-all)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(net.jcip:jcip-annotations)
BuildRequires: mvn(org.antlr:antlr-runtime)
BuildRequires: mvn(org.antlr:antlr3-maven-plugin)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jcache_1.0_spec)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.apache.logging.log4j:log4j-jcl)
BuildRequires: mvn(org.apache.logging.log4j:log4j-slf4j-impl)
BuildRequires: mvn(org.apache.lucene:lucene-core) >= 5.3.1
BuildRequires: mvn(org.apache.lucene:lucene-analyzers-common) >= 5.3.1
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi.services)
BuildRequires: mvn(org.fusesource.leveldbjni:leveldbjni)
BuildRequires: mvn(org.hibernate:hibernate-core)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
%if %{with infinispan}
BuildRequires: mvn(org.hibernate.hql:hibernate-hql-lucene) >= 1.3.0
BuildRequires: mvn(org.hibernate.hql:hibernate-hql-parser) >= 1.3.0
BuildRequires: mvn(org.hibernate:hibernate-search-engine) >= 5.5.1
BuildRequires: mvn(org.hibernate:hibernate-search-serialization-avro) >= 5.5.1
BuildRequires: mvn(org.infinispan:infinispan-core)
BuildRequires: mvn(org.infinispan:infinispan-lucene-directory)
BuildRequires: mvn(org.infinispan:infinispan-query-dsl)
%endif
BuildRequires: mvn(org.infinispan.protostream:protostream) >= 3.0.4
BuildRequires: mvn(org.iq80.leveldb:leveldb)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.aesh:aesh)
BuildRequires: mvn(org.jboss.arquillian:arquillian-bom:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor:1)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling-osgi)
BuildRequires: mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires: mvn(org.jboss.remotingjmx:remoting-jmx)
BuildRequires: mvn(org.jboss.sasl:jboss-sasl)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec)
BuildRequires: mvn(org.jboss.xnio:xnio-nio)
BuildRequires: mvn(org.jgroups:jgroups) >= 3.6.4
BuildRequires: mvn(org.kohsuke.metainf-services:metainf-services)
BuildRequires: mvn(org.scala-lang:scala-compiler)
BuildRequires: mvn(org.springframework:spring-context)
%if %{with spring4}
BuildRequires: mvn(org.springframework:spring-context:4)
%endif
BuildRequires: mvn(org.wildfly.core:wildfly-controller)
BuildRequires: mvn(org.wildfly.core:wildfly-core-parent:pom:)

# Public Domain: ./commons/src/main/java/org/infinispan/commons/util/Base64.java
Provides:      bundled(java-base64) = 4.2

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Infinispan is an extremely scalable, highly available data grid
platform - 100% open source, and written in Java. The purpose of
Infinispan is to expose a data structure that is highly concurrent,
designed ground-up to make the most of modern multi-processor/multi-core
architectures while at the same time providing distributed cache
capabilities.  At its core Infinispan exposes a Cache interface which
extends java.util.Map. It is also optionally is backed by a peer-to-peer
network architecture to distribute state efficiently around a data grid.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# May be useful in the future:
# https://github.com/infinispan/infinispan/commit/63d45095f3b39fe488
%patch0
%patch1 -p1
%patch2 -p1

find .  -name "*.jar" -print -delete
find .  -name "*.class" -print -delete

# Rename the license file
cp -pr license/src/main/resources/META-INF/LICENSE.txt.vm LICENSE.txt

# Checkstyle is unnecessary for RPM builds
%pom_disable_module checkstyle
%pom_remove_plugin -r org.apache.maven.plugins:maven-checkstyle-plugin

%pom_disable_module all
%pom_disable_module all/cli
%pom_disable_module all/embedded
%pom_disable_module all/embedded-query
%pom_disable_module all/remote
%pom_disable_module as-modules/embedded
%pom_disable_module as-modules/client
%pom_disable_module demos/gui
%pom_disable_module demos/distexec
%pom_disable_module demos/lucene-directory-demo
%pom_disable_module demos/gridfs-webdav
%pom_disable_module demos/nearcache
%pom_disable_module demos/nearcache-client
%pom_disable_module integrationtests
%pom_disable_module integrationtests/as-integration-embedded
%pom_disable_module integrationtests/as-integration-client
%pom_disable_module integrationtests/as-lucene-directory
%pom_disable_module integrationtests/compatibility-mode-it
%pom_disable_module integrationtests/cdi-jcache-it
%pom_disable_module integrationtests/security-it
%pom_disable_module integrationtests/security-manager-it
%pom_disable_module integrationtests/osgi
%pom_disable_module integrationtests/cdi-weld-se-it
%pom_disable_module integrationtests/all-embedded-it
%pom_disable_module integrationtests/all-embedded-query-it
%pom_disable_module integrationtests/all-remote-it
%pom_disable_module javadoc
%pom_disable_module persistence/rest
%pom_disable_module rhq-plugin
%pom_disable_module server/integration
%pom_disable_module server/rest
%pom_disable_module tck-runner jcache

%if %{without spring4}
%pom_disable_module spring/spring4
%pom_disable_module spring/spring4/spring4-common
%pom_disable_module spring/spring4/spring4-embedded
%pom_disable_module spring/spring4/spring4-remote
%else
%pom_xpath_set pom:properties/pom:version.spring4 4 parent
%pom_change_dep -r org.springframework: ::'${version.spring4}' spring/spring4/spring4-common spring/spring4/spring4-embedded spring/spring4/spring4-remote
%endif

%pom_xpath_set pom:properties/pom:version.jboss.logging.processor 1 parent

%pom_remove_plugin ":maven-remote-resources-plugin" parent
# org.scala-tools:maven-scala-plugin:2.15.2 used for generate-blueprint task
%pom_remove_plugin -r ":maven-scala-plugin" parent jcache/embedded

%pom_remove_plugin :jetty-maven-plugin persistence/rest

%pom_remove_plugin :maven-invoker-plugin jcache/embedded
%pom_remove_plugin :maven-failsafe-plugin parent

# Use eclipse apis: type ServiceTracker does not take parameters
%pom_change_dep -r org.osgi:org.osgi.core org.eclipse.osgi:org.eclipse.osgi commons persistence/jpa osgi bom
%pom_remove_dep -r org.osgi:org.osgi.compendium commons persistence/jpa
%pom_change_dep -r org.osgi:org.osgi.compendium org.eclipse.osgi:org.eclipse.osgi.services osgi bom

%pom_change_dep -r javax.cache:cache-api org.apache.geronimo.specs:geronimo-jcache_1.0_spec:1.0-alpha-1 jcache/commons jcache/embedded jcache/remote bom core cdi/remote

%pom_change_dep :leveldbjni-all :leveldbjni persistence/leveldb

# https://bugs.openjdk.java.net/browse/JDK-8067747
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration" '
<useIncrementalCompilation>false</useIncrementalCompilation>
<source>${version.java}</source>
<target>${version.java}</target>' commons
for p in core server/core persistence/jdbc lucene/lucene-directory \
 query server/hotrod \
 tree client/hotrod-client persistence/remote persistence/leveldb server/memcached \
 server/websocket cli/cli-interpreter cdi/embedded cdi/remote jcache/embedded;do
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 ${p} '
<configuration>
 <useIncrementalCompilation>false</useIncrementalCompilation>
 <source>${version.java}</source>
 <target>${version.java}</target>
 <encoding>UTF-8</encoding>
</configuration>'
done

# Compile scala stuff
for p in core \
 hotrod \
 memcached;do
%pom_remove_plugin ":maven-scala-plugin" server/${p}
%pom_add_plugin org.apache.maven.plugins:maven-antrun-plugin:1.7 server/${p} '
<executions>
  <execution>
    <id>compile</id>
    <phase>process-sources</phase>
    <configuration>
      <tasks>
        <property name="build.compiler" value="extJavac"/>
        <taskdef resource="scala/tools/ant/antlib.xml" classpathref="maven.compile.classpath"/>
        <mkdir dir="target/classes"/>
        <scalac srcdir="src/main" destdir="target/classes" classpathref="maven.compile.classpath" encoding="UTF-8">
          <include name="**/*.*"/>
        </scalac>
      </tasks>
    </configuration>
      <goals>
        <goal>run</goal>
      </goals>
  </execution>
</executions>
<dependencies>
  <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-compiler</artifactId>
      <version>${version.scala}</version>
  </dependency>
</dependencies>'
done

%if %{without infinispan}
%pom_disable_module lucene/directory-provider
%pom_disable_module object-filter
%pom_disable_module query
%pom_disable_module remote-query/remote-query-server
%pom_disable_module scripting
%pom_disable_module server/hotrod
%pom_disable_module tasks
%pom_disable_module tools
%endif

%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools']/pom:scope" tools
%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools']/pom:systemPath" tools

# org.hibernate:hibernate-search-engine:tests:5.5.1.Final
%pom_xpath_remove "pom:dependency[pom:groupId = 'org.hibernate']/pom:classifier" lucene/directory-provider

# This component is now owned and maintained by the Infinispan team
%mvn_alias :infinispan-directory-provider org.hibernate:hibernate-search-infinispan

%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md README-i18n.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13304 |21mr|inih-52-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define major 0
%define libpackage %mklibname inih %{major}
%define devpackage %mklibname -d inih

Name:     inih
Version:  52
Release:  2
Summary:  Simple INI file parser library
Group:	  System/Libraries
License:  BSD
URL:      https://github.com/benhoyt/inih
Source0:  https://github.com/benhoyt/inih/archive/r%{version}/%{name}-r%{version}.tar.gz

BuildRequires: meson

%description
The inih package provides simple INI file parser which is only a couple of
pages of code, and it was designed to be small and simple, so it's good for
embedded systems.

%package -n %{libpackage}
Summary:	This is a library for inih package provides simple INI file parser
Group:		System/Libraries

%description -n %{libpackage}
This is a library for inih package provides simple INI file parser which is only a couple of
pages of code, and it was designed to be small and simple, so it's good for


%package -n %{devpackage}
Summary:  Development package for %{name}
Requires:	%{libpackage} = %{EVRD}


%description -n %{devpackage}
This package contains development files for %{name}.

The inih package provides simple INI file parser which is only a couple of
pages of code, and it was designed to be small and simple, so it's good for
embedded systems.


%prep
%autosetup -n %{name}-r%{version}

%build
%meson -Ddefault_library=shared -Ddistro_install=true
%meson_build


%install
%meson_install


%files -n %{libpackage}
%license LICENSE.txt
%doc README.md
%{_libdir}/libinih.so.%{major}

%files -n %{devpackage}
%{_includedir}/ini.h
%{_libdir}/pkgconfig/inih.pc
%{_libdir}/libinih.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13305 |21mr|initial-setup-0.3.97-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define anacondaver 34.25
%define l10n 6eb42ea

Name:		initial-setup
Summary:	Initial system configuration utility
Group:		System/Configuration/Other
Version:	0.3.97
Release:	4
URL:		https://github.com/rhinstaller/initial-setup
License:	GPLv2+
Buildarch:	noarch
Source0:	%{URL}/archive/refs/tags/r%{version}-1.tar.gz
Source1:	https://github.com/rhinstaller/%{name}-l10n/archive/%{l10n}.tar.gz?/%{name}-l10n-%{l10n}.tar.gz
Patch0:		0001-fixed-setup.py-for-rosa-systemd-path.patch
Patch1:		0002-fixes-for-rosa.patch
Patch3:		0003-Self-removal.patch
Patch4:		0004-Consistent-look-and-feel.patch
BuildRequires:	gettext
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	intltool
BuildRequires:	make

Requires:	python3
Requires:	anaconda-tui >= %{anacondaver}
Requires:	python3-simpleline >= 1.4
Requires:	systemd >= 235
Requires: 	util-linux
Recommends:	(%{name}-gui if anaconda-gui)

%description
The initial-setup utility runs after installation.  It guides the user through
a series of steps that allows for easier configuration of the machine.

%files -f %{name}.lang
%doc README.rst
%license COPYING
%{python3_sitelib}/initial_setup*
%exclude %{python3_sitelib}/initial_setup/gui
%{_libexecdir}/%{name}/run-initial-setup
%{_libexecdir}/%{name}/firstboot-windowmanager
%{_libexecdir}/%{name}/initial-setup-text
%{_libexecdir}/%{name}/reconfiguration-mode-enabled
%{_unitdir}/initial-setup.service
%{_unitdir}/initial-setup-reconfiguration.service
%dir %{_libexecdir}/%{name}
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/conf.d
%config %{_sysconfdir}/%{name}/conf.d/*

#----------------------------------------------------------------------------

%package gui
Summary: Graphical user interface for the initial-setup utility
Requires: gtk3
Requires: anaconda-gui >= %{anacondaver}
##############################################################################
# scripts/firstboot-windowmanager:4:WMS=("gnome-kiosk" "metacity" "kwin_x11" "kwin" "xfwm4" "openbox" "marco")
Requires: (%{_bindir}/openbox or %{_bindir}/xfwm4 or %{_bindir}/macro or %{_bindir}/kwin or %{_bindir}/kwin_x11 or %{_bindir}/metacity or %{_bindir}/gnome-kiosk)
Suggests: %{_bindir}/openbox
##############################################################################
Requires: xinit
Requires: x11-server-xorg
Requires: %{name} = %{EVRD}

%description gui
The initial-setup-gui package contains a graphical user interface for the
initial-setup utility.
%files gui
%{_libexecdir}/%{name}/initial-setup-graphical
%{python3_sitelib}/initial_setup/gui/

#------------------------------------------------------------------------------

%prep
%autosetup -p 1 -n %{name}-r%{version}-1
tar -xf %{SOURCE1}
cp -f %{name}-l10n-*/master/* po/

%build
%make 

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13306 |21mr|initscripts-10.03-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#this is required since latest glibc (new atomic OPs?)
%global __requires_exclude GLIBC_PRIVATE

%define _systemdrootdir /lib/systemd

Summary:	Scripts to bring up network interfaces and legacy utilities
Name:		initscripts
Version:	10.03
Release:	6
Epoch:		3
License:	GPLv2
Group:		System/Base
Url:		https://github.com/fedora-sysv/initscripts
Source0:	https://github.com/fedora-sysv/initscripts/archive/%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		initscripts-10.01-fix-paths.patch
# Copy some simple functions from ALT Linux, which are used e.g. by cert-sh-functions
Patch1:		ALT-functions.patch
Patch2:		0001-service-avoid-absolute-paths.patch
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	popt-devel
BuildRequires:	gettext-devel

Requires(posttrans):	rpm-helper >= 0.24.17
Requires(posttrans):	systemd >= 235
Requires:	chkconfig
Requires:	bash
Requires:	filesystem
Requires:	coreutils
Requires:	gawk
Requires:	findutils
Requires:	grep
Requires:	procps-ng
Requires:	setup
Requires:	systemd
Requires:	util-linux > 2.31
Requires:	shadow
Requires:	cpio
Requires:	hostname >= 3.16
Requires:	iproute2
Requires:	ipcalc
Requires:	iputils
Requires:	kmod
Requires:	sed
Requires:	glibc
Requires:	bc
Requires:	dbus
Requires:	net-tools >= 2.0
Requires:	ethtool
Provides:	/sbin/service
%rename %{name}-debugmode

%description
The initscripts package contains the basic system scripts used to boot
your %{distribution} system, change run levels, and shut the system
down cleanly.  Initscripts also contains the scripts that activate and
deactivate most network interfaces.

%prep
%autosetup -p1

%build
%setup_compile_flags
%make_build CC="%{__cc}" RPM_OPT_FLAGS="%{optflags}" RPM_LD_FLAGS="%{ldflags}" udevdir="/lib/udev/"

%install
mkdir -p %{buildroot}/lib/udev
%make_install CC="%{__cc}" RPM_OPT_FLAGS="%{optflags}" RPM_LD_FLAGS="%{ldflags}" prefix="%{_prefix}" libdir="/%{_lib}" libexecdir="%{_libexecdir}" datadir="%{_datadir}" mandir="%{_mandir}" sysconfdir="%{_sysconfdir}" udevdir="/lib/udev/" bindir="/bin" sbindir="/sbin"

# (tpg) remove as its not needed
for i in 0 1 2 3 4 5 6; do
rm -rf %{buildroot}%{_sysconfdir}/rc$i.d ;
done

%find_lang %{name}

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-initscripts.preset << EOF
disable import-state.service
enable loadmodules.service
disable readonly.service
disable network
disable netconsole
disable dm
disable network-up
disable partmon
EOF

# add networking file
cat > %{buildroot}%{_sysconfdir}/sysconfig/network << EOF
NETWORKING=yes
NETWORKING_IPV6=no
EOF

printf '%s\n' "#!/bin/sh" >> %{buildroot}%{_sysconfdir}/rc.d/rc.local

touch %{buildroot}%{_sysconfdir}/rc.modules
chmod 755 %{buildroot}%{_sysconfdir}/rc.modules
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/modules

# (tpg) this is in chkconfig already
rm -rf %{buildroot}%{_sysconfdir}/init.d

%posttrans
%systemd_post loadmodules.service

##Fixme
touch /etc/sysconfig/i18n
##
touch /var/log/wtmp /var/log/btmp
chown root:utmp /var/log/wtmp /var/log/btmp
chmod 664 /var/log/wtmp
chmod 600 /var/log/btmp

%preun
%systemd_preun import-state.service loadmodules.service readonly.service

%transfiletriggerpostun -- %{_initrddir}/
find -L /etc/rc.d/rc{0,1,2,3,4,5,6}.d -type l -delete

%files -f %{name}.lang
%dir %{_sysconfdir}/sysconfig/network-scripts
%dir %{_sysconfdir}/sysconfig/console
%dir %{_sysconfdir}/sysconfig/modules
%dir %{_sysconfdir}/rc.d/init.d
%config(noreplace) %{_sysconfdir}/sysconfig/netconsole
%config(noreplace) %{_sysconfdir}/sysconfig/readonly-root
%{_sysconfdir}/sysconfig/network-scripts/*
%config(noreplace, missingok) %verify(not md5 size mtime) %{_sysconfdir}/rc.d/rc.local
%{_sysconfdir}/rwtab
%{_sysconfdir}/statetab
%{_sysconfdir}/sysconfig/network
%{_sysconfdir}/rc.d/init.d/*
%{_sysconfdir}/rc.modules
%{_presetdir}/86-initscripts.preset
/bin/usleep
/sbin/service
/sbin/consoletype
/sbin/genhostid
%attr(4755,root,root) /sbin/usernetctl
/lib/udev/rules.d/*
/lib/udev/rename_device
%ifarch s390 s390x
/lib/udev/ccw_init
%endif
%{_libexecdir}/import-state
%{_libexecdir}/loadmodules
%{_libexecdir}/netconsole
%{_libexecdir}/readonly-root
%{_unitdir}/import-state.service
%{_unitdir}/loadmodules.service
%{_unitdir}/netconsole.service
%{_unitdir}/readonly-root.service
%{_mandir}/man*/*
/var/lib/stateless
%ghost %attr(0664,root,utmp) /var/log/btmp
%ghost %attr(0664,root,utmp) /var/log/wtmp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13307 |21mr|inkscape-1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# There is no devel package here, but a symlink /usr/lib64/libinkscape_base.so
# makes devel-rpm-generators pull a lot of odd requires, so off this generator.
%global	__develgen_provides %{nil}
%global	__develgen_requires %{nil}

%define	tar_ver %(echo %{version} |tr . _)
%define extensions_commit bc21747298b73c2c82e4de03015fa1a71340db30
%define themes_commit b4c6d3bb1a6c450dc23e3137d7d519ba56438c44
%define croco_commit b9e4b47fc7c63abc880bad35d61048294afdea38

Summary:	A vector-based drawing program using SVG
Name:		inkscape
Version:	1.4
Release:	5
License:	GPLv2+
Group:		Graphics
Url:		https://inkscape.org/
Source0:	https://gitlab.com/inkscape/inkscape/-/archive/INKSCAPE_%{tar_ver}/inkscape-INKSCAPE_%{tar_ver}.tar.gz
# Extensions and Themes are git submodules and are not included in standard tarball...
Source1:	https://gitlab.com/inkscape/extensions/-/archive/%{extensions_commit}/extensions-%{extensions_commit}.tar.gz
Source2:	https://gitlab.com/inkscape/themes/-/archive/%{themes_commit}/themes-%{themes_commit}.tar.gz
Source4:	https://gitlab.com/inkscape/libcroco/-/archive/%{croco_commit}/libcroco-%{croco_commit}.tar.gz
Source5:	ru.po
Source100:	inkscape.rpmlintrc
Patch0:		inkscape-rpath.patch
Patch1:		e2k-turn-off-unknown-opt.patch
Patch2:		e2k-openmp-fix.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	dos2unix
BuildRequires:	gdk-pixbuf2.0
BuildRequires:	intltool
BuildRequires:	ninja
BuildRequires:	perl-XML-Parser
BuildRequires:	boost-devel
BuildRequires:	gettext-devel
BuildRequires:	perl-devel
BuildRequires:	potrace-devel
BuildRequires:	cmake(double-conversion)
BuildRequires:	pkgconfig(2geom)
BuildRequires:	pkgconfig(bdw-gc)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-pdf)
BuildRequires:	pkgconfig(cairo-svg)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gdl-3.0)
BuildRequires:	pkgconfig(gdkmm-3.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gmock)
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(GraphicsMagick++)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(gspell-1)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(gtkspell3-3.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.24.0
BuildRequires:	pkgconfig(harfbuzz)
# Need release == 6: we have 7
#BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcdr-0.1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(librevenge-stream-0.0)
BuildRequires:	pkgconfig(libsoup-2.4) >= 2.42
BuildRequires:	pkgconfig(libvisio-0.1)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(loudmouth-1.0)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(python3) >= 3.6
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	gdk-pixbuf2.0
Requires:	gnome-vfs2
Requires:	pstoedit
Requires:	python3dist(cssselect)
Requires:	python3dist(lxml)
Requires:	python3dist(numpy)
# for saving optimized SVGs
Requires:	python3dist(scour)
Obsoletes:	inkscape < 1.3.2

%description
Inkscape is a generic SVG-based vector-drawing program. It uses the W3C SVG
(= "Scalable Vector Graphics") standard as its native file format. Therefore,
it is a very useful tool for web designers and can be used as an interchange
format for desktop publishing.

%files -f %{name}.lang
%doc AUTHORS NEWS.md README.md
%license COPYING
%{_bindir}/inkscape
%{_bindir}/inkview
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/metainfo/org.%{name}.Inkscape.appdata.xml
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/*
%{_mandir}/*/man1/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-INKSCAPE_%{tar_ver} -a1 -a2 -a4
%autopatch -p1
%ifnarch %{e2k}
%patch1 -p1 -R
%patch2 -p1 -R
%endif

# update ru translation
cp -f %{SOURCE5} po/

mv -f extensions-* extensions
mv -f themes-%{themes_commit} themes
mv -f extensions themes share/
cp -r ./libcroco*/* ./src/3rdparty/libcroco/

find share/extensions -name *py -exec sed -i 's@/usr/bin/env python@/usr/bin/python3@' {} \;
find share/extensions -name *py -exec sed -i 's@/usr/bin/python33@/usr/bin/python3@' {} \;
sed -i 's@/bin/env python3@/usr/bin/python3@' share/extensions/scribus_export_pdf.py


%build
%cmake \
	-DBUILD_STATIC_LIBS:BOOL=ON	\
	-DBUILD_SHARED_LIBS:BOOL=OFF	\
	-DENABLE_POPPLER=ON		\
	-DWITH_DBUS:BOOL=ON		\
	-DWITH_GRAPHICS_MAGICK:BOOL=ON	\
	-DWITH_OPENMP:BOOL=ON		\
	-DWITH_MANPAGE_COMPRESSION=OFF	\
	-DWITH_INTERNAL_2GEOM=OFF	\
	-G Ninja

%ninja_build


%install
%ninja_install -C build

desktop-file-edit --add-category="Graphics;2DGraphics"	%{buildroot}%{_datadir}/applications/*.desktop

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/extensions/*.py
chmod -x %{buildroot}%{_datadir}/%{name}/extensions/{hershey,hpgl_encoder,path_envelope,render_alphabetsoup_config}.py
chmod +x %{buildroot}%{_datadir}/%{name}/extensions/inkex/tester/inx.py

# Drop zero-lenght and hidden files
rm -f %{buildroot}%{_datadir}/%{name}/fonts/README
rm -f %{buildroot}%{_datadir}/%{name}/extensions/.coveragerc
rm -f %{buildroot}%{_datadir}/%{name}/extensions/.pylintrc
rm -f %{buildroot}%{_datadir}/%{name}/extensions/.darglint
rm -f %{buildroot}%{_datadir}/%{name}/extensions/.pre-commit-config.yaml

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13308 |21mr|inotify-tools-4.23.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lname	inotifytools
%define major	0

%define libname	%mklibname %lname %major
%define devname	%mklibname %lname -d

Summary:	Simple interface to inotify
Name:		inotify-tools
Version:	4.23.9.0
Release:	1
URL:		http://inotify-tools.sourceforge.net/
Source:		https://github.com/inotify-tools/inotify-tools/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
License:	LGPLv2.1+
Group:		File tools
BuildRequires:	doxygen

%description
This is a package of some commandline utilities relating to inotify.

The general purpose of this package is to allow inotify's features
to be used from within shell scripts.  Read the man pages for
further details.

%files
%license COPYING
%doc README*
%{_bindir}/inotifywait
%{_bindir}/inotifywatch
%ifnarch %{e2k}
%{_bindir}/fsnotifywait
%{_bindir}/fsnotifywatch
%endif
%{_mandir}/man1/inotifywait.1*
%{_mandir}/man1/inotifywatch.1*
%{_mandir}/man1/fsnotifywait.1*
%{_mandir}/man1/fsnotifywatch.1*

#---------------------------------------------------------------------

%package -n	%{libname}
Summary:	Inotify interface library
Group:		System/Libraries

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with libinotifytools.

%files -n %{libname}
%license COPYING
%{_libdir}/libinotifytools.so.%{major}*

#---------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for inotifytools
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{lname}-devel = %{EVRD}

%description -n	%{devname}
Development files for inotifytools.

%files -n %{devname}
%license COPYING
%doc AUTHORS ChangeLog NEWS api
%{_includedir}/inotifytools
%{_libdir}/libinotifytools.so

#---------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std
mv %{buildroot}%{_docdir}/%{name} api

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13309 |21mr|intel-gmmlib-22.3.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 12
%define libname %mklibname igdgmm %{major}
%define devname %mklibname igdgmm -d

Name:           intel-gmmlib
Version:	22.3.7
Release:	1
Summary:        Intel Graphics Memory Management Library
Group:          System/Libraries
License:        MIT and BSD
URL:            https://github.com/intel/gmmlib
Source0:        %{url}/archive/%{name}-%{version}.tar.gz

# This package relies on intel asm
ExclusiveArch:  %{x86_64}

BuildRequires:  cmake
BuildRequires:  gcc
BuildRequires:  gcc-c++

%description
The Intel Graphics Memory Management Library provides device specific
and buffer management for the Intel Graphics Compute Runtime for OpenCL
and the Intel Media Driver for VAAPI.

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	Intel Graphics Memory Management Library
Group:		System/Libraries

%description -n %{libname}
The Intel Graphics Memory Management Library provides device specific
and buffer management for the Intel Graphics Compute Runtime for OpenCL
and the Intel Media Driver for VAAPI.

%files -n %{libname}
%{_libdir}/libigdgmm.so.%{major}*

#----------------------------------------------------------------------
%package -n %{devname}
Summary:        Development files for %{name}
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
Provides:       igdgmm-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%license LICENSE.md
%doc README.rst
%{_includedir}/igdgmm
%{_libdir}/libigdgmm.so
# We don't use the static library
%exclude %{_libdir}/libgmm_umd.a
%{_libdir}/pkgconfig/igdgmm.pc

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n gmmlib-intel-gmmlib-%{version}
# Fix license perm
chmod -x LICENSE.md README.rst
# Fix source code perm
find Source -name "*.cpp" -exec chmod -x {} ';'
find Source -name "*.h" -exec chmod -x {} ';'

%build
%cmake \
  -DRUN_TEST_SUITE:BOOL=False

%make

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13310 |21mr|intel-media-driver-23.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       intel-media-driver
Version:    23.2.3
Release:    1
Summary:    The Intel Media Driver for VAAPI
Group:      Video
License:    MIT and BSD
URL:        https://github.com/intel/media-driver
Source0:    %{url}/archive/intel-media-%{version}%{?pre}.tar.gz
Source1:    intel-media-driver.metainfo.xml

# This is an Intel only vaapi backend
ExclusiveArch:  %{x86_64}

BuildRequires:  cmake
BuildRequires:  gcc
BuildRequires:  gcc-c++
# AppStream metadata generation
BuildRequires:  appstream-util
BuildRequires:  pkgconfig(igdgmm)
BuildRequires:  pkgconfig(libva)
BuildRequires:  pkgconfig(pciaccess)
BuildRequires:  pkgconfig(x11)

# There is a modified version of libdrm
Provides: bundled(libdrm)

%description
The Intel Media Driver for VAAPI is a new VA-API (Video Acceleration API)
user mode driver supporting hardware accelerated decoding, encoding,
and video post processing for GEN based graphics hardware.
https://01.org/intel-media-for-linux

%files
%doc README.md
%license LICENSE.md
%{_libdir}/dri/iHD_drv_video.so
%{_metainfodir}/intel-media-driver.metainfo.xml

#----------------------------------------------------------------------------
%prep
%autosetup -p1 -n media-driver-intel-media-%{version}%{?pre}
# Fix license perm
chmod -x LICENSE.md README.md CMakeLists.txt

# Remove pre-built (but unused) files
rm -f Tools/MediaDriverTools/UMDPerfProfiler/MediaPerfParser

# Remove all -Werror compile flags
sed -e "/-Werror/d" -i media_driver/cmake/linux/media_compile_flags_linux.cmake
sed -e "/-Werror/d" -i media_driver/media_top_cmake.cmake


%build
%ifarch %{ix86}
export CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64"
%endif
%cmake \
%ifarch %{ix86}
  -DARCH:STRING=32 \
%endif
  -DBUILD_CMRTLIB:BOOL=False \
  -DMEDIA_RUN_TEST_SUITE:BOOL=False \
  -DRUN_TEST_SUITE:BOOL=False

%make_build


%install
%make_install -C build

# Fix perm on library to be stripped
chmod +x %{buildroot}%{_libdir}/dri/iHD_drv_video.so

# install AppData and add modalias provides
mkdir -p %{buildroot}%{_metainfodir}
install -pm 0644 %{SOURCE1} %{buildroot}%{_metainfodir}

# TODO - have pci based hw detection
%if 0
fn=%{buildroot}%{_metainfodir}/intel-media-driver.metainfo.xml
%{SOURCE9} src/i965_pciids.h | xargs appstream-util add-provide ${fn} modalias
%endif

# Don't provide the headers - Used by anyone else ?
rm -rf %{buildroot}%{_includedir}/igfxcmrt
rm -rf %{buildroot}%{_libdir}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13311 |21mr|intltool-0.51.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scripts and assorted auto* magic for i18nalizing various kinds of data files
Name:		intltool
Version:	0.51.0
Release:	6
License:	GPLv2+
Group:		Development/Tools
Url: 		https://launchpad.net/intltool
Source0:	https://launchpad.net/intltool/trunk/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	diffutils
BuildRequires:	perl-XML-Parser
Requires:	patch
Requires:	perl-XML-Parser
Requires:	gettext-devel
BuildArch:	noarch
%rename		xml-i18n-tools

%description
The intltool collection can be used to:
 - Extract translatable strings from various source files, including .xml.in,
   .glade, .desktop.in, .server.in, .oaf.in.
 - Collect the extracted strings together with messages from traditional source
   files (such as .c, .h) into pot files.
 - Merge back the translations from .po files into .xml, .desktop and .oaf
   files during software build time.

%files
%doc AUTHORS COPYING README
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/aclocal/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13312 |21mr|invokebinder-1.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           invokebinder
Version:        1.2
Release:        11
Summary:        A Java DSL for binding method handles forward, rather than backward
License:        ASL 2.0
URL:            http://github.com/headius/%{name}/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/headius/%{name}/archive/%{name}-%{version}.zip

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
This library hopes to provide a more friendly DSL for binding method handles.
Unlike the normal MethodHandle API, handles are bound forward from a source
MethodType and eventually adapted to a final target MethodHandle. Along the
way the transformations are pushed onto a stack and eventually applied in
reverse order, as the standard API demands.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
find ./ -name '*.jar' -exec rm -f '{}' \; 
find ./ -name '*.class' -exec rm -f '{}' \; 

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13313 |21mr|ioping-0.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	simple disk I/O latency measuring tool
Name:		ioping
Version:	0.6
Release:	6
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		http://code.google.com/p/ioping/
Source0:	http://ioping.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		ioping-0.6-fix-build-with-glibc-2.27.patch

%description
This tool lets you monitor I/O latency in real time, in a way similar to how
ping(1) does for network latency.

%files
%{_bindir}/*
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make

%install
%makeinstall_std PREFIX="%{_prefix}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13314 |21mr|iotop-0.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Display I/O usage of processes in a top like UI
Name:		iotop
Version:	0.6
Release:	6
License:	GPLv2+
Group:		Monitoring
Url:		http://guichaz.free.fr/iotop/
Source0:	http://guichaz.free.fr/iotop/files/%{name}-%{version}.tar.bz2
# Patches from Fedora
# rhbz#1035503
Patch0:		iotop-0.6-noendcurses.patch
Patch1:		iotop-0.6-python3.patch
# Fix build error with Python 3 caused by itervalues() in setup.py
# http://repo.or.cz/iotop.git/commit/99c8d7cedce81f17b851954d94bfa73787300599
Patch2:		iotop-python3build.patch
# sent upstream, iotop <= 0.6, rhbz#1285088
Patch3:		iotop-0.3.2-batchprintutf8.patch
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
iotop is a Python program with a top like UI used to show of behalf of
which process is the I/O going on. It requires a Linux kernel 2.6.20+
with TASK_IO_ACCOUNTING enabled.

%files
%license COPYING
%doc NEWS THANKS README ChangeLog
%{_bindir}/%{name}
%{_mandir}/man8/iotop.8*
%{python3_sitelib}/iotop
%{python3_sitelib}/iotop*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install
# Let's move executable from sbin to bin
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{_sbindir}/iotop %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13315 |21mr|ipa-4.8.10-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#--------------------------------------------------------
# Distro-specific default value is defined in branding-configs package
#%%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

#temporary disable selinux for test builds
%bcond_with selinux
%if %{with selinux}
%define selinuxtype targeted
%define modulename ipa
%endif
#--------------------------------------------------------

# conflicts with pki-base
%define __requires_exclude python3egg\\(dogtag-pki\\)

# We may want to package and use a newer client than server as we did in ipa-client47
# sclient means "server client"
%define _sclientbindir %{_libexecdir}/ipa-sclient

#--------------------------------------------------------
#no longer supports i686 platform, build only client
%ifarch %{ix86}
%bcond_with server
%else
%bcond_without server
%endif

%if %{with server}
	%define enable_server_option --enable-server
%else
	%define enable_server_option --disable-server
%endif

#---------------------------------------------------------

Summary:	The Identity, Policy and Audit system
Name:		ipa
Version:	4.8.10
Release:	12
Group:		System/Base
License:	GPLv3+
Url:		http://www.freeipa.org/
Source0:	https://releases.pagure.org/freeipa/freeipa-%{version}.tar.gz
Source1:	kdcproxy.sysusers.conf
Source2:	ipaapi.sysusers.conf

Patch0100:	ipa-sslserver-token.patch
Patch0102:	allow-client-force-reinstall.patch
#for use old pki-10.8 revert this patch https://pagure.io/freeipa/c/9ded9e2573a00c388533f2a09365c499a4e2961e
Patch0103:	ipa-4.8.9-pki10_8.patch
# pkispawn not provided --debug option
Patch0105:	ipa-4.9.7-pkispawn.patch
# https://pagure.io/freeipa/c/ed6fa6029d863aed1522b449d3360e6c4028e066
Patch0106:	ed6fa6029d863aed1522b449d3360e6c4028e066.patch
# RHEL
Patch1002:	1002-4.8.0-Remove-csrgen.patch

# ROSA patches
Patch2001:	0001-Custom-autofs-dir-on-ROSA.patch
Patch2002:	0001-Initial-ROSA-platform-support.patch
Patch2004:	0001-ROSA-password-policy.patch
Patch2005:	0001-Adapt-NAME_REGEX-for-Dynamic-Directory-and-ALD.patch

BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(xmlrpc)
BuildRequires:	pkgconfig(popt)
BuildRequires:	libtool
BuildRequires:	gettext
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	systemd
BuildRequires:	pkgconfig(libsystemd)
# systemd-tmpfiles which is executed from make install requires apache user
BuildRequires:	apache-base
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(pwquality)
BuildRequires:	pkgconfig(ini_config)
#cyrus-sasl-devel
BuildRequires:	pkgconfig(libsasl2)
# RHEL spec file only: START
BuildRequires:	diffstat
# RHEL spec file only: END
%if %{with server}
BuildRequires:	java-1.8.0-openjdk-devel

# 1.3.3.9: DS_Sleep (https://fedorahosted.org/389/ticket/48005)
# 389-ds-base-devel 1.4.1.1 conflicts with svrcore-devel
BuildRequires:	pkgconfig(dirsrv)
#BuildRequires:	svrcore-devel
BuildRequires:	samba-devel >= 4.7.0
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(tevent)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(sss_idmap)
BuildRequires:	pkgconfig(sss_certmap)
# 1.15.3: sss_nss_getlistbycert (https://pagure.io/SSSD/sssd/issue/3050)
# 1.16.0-3: sss_nss_getpwnam_timeout (https://pagure.io/SSSD/sssd/issue/2478)
# provided in both RHEL 7.5 and Fedora 27+ as of 1.16.0-3
BuildRequires:	pkgconfig(sss_nss_idmap)
BuildRequires:	nodejs
BuildRequires:	rhino
BuildRequires:	jsl
BuildRequires:	pkgconfig(libverto)
BuildRequires:	libunistring-devel
BuildRequires:	python3egg(lesscpy)
BuildRequires:	python3egg(pylint)
BuildRequires:	python3egg(rjsmin)
%endif
# without server

#
# Build dependencies for makeapi/makeaci
# makeapi/makeaci is using Python 3
#
BuildRequires:	python3egg(python-ldap)
BuildRequires:	python3egg(python-nss)
BuildRequires:	python3egg(netaddr)
BuildRequires:	python3egg(pyasn1)
BuildRequires:	python3egg(pyasn1-modules)
BuildRequires:	python3egg(dnspython)
BuildRequires:	python3egg(six)
# python-libsss_nss_idmap
BuildRequires:	python3egg(sssdconfig)
BuildRequires:	python3egg(cffi)

#
# Build dependencies for unit tests
#
%if %{with server}
BuildRequires:	pkgconfig(cmocka)
# Required by ipa_kdb_tests
#{_libdir}/krb5/plugins/kdb/db2.so
BuildRequires:	krb5
%endif 
# with server

#
# Build dependencies for SELinux policy
# 3.14.6-9 includes fix for https://github.com/fedora-selinux/selinux-policy/pull/333
%if %{with selinux}
BuildRequires:  selinux-policy-devel >= 3.14.6-9
%endif

%description
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).

#----------------------------------------------------------------------------

%if %{with server}

%package server
Summary:	The IPA authentication server
Group:		System/Base
Requires:	%{name}-client = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3-ipaserver = %{EVRD}
Requires:	python3egg(python-ldap)
#1.3.7.9-1: https://bugzilla.redhat.com/show_bug.cgi?id=1459946
#	https://bugzilla.redhat.com/show_bug.cgi?id=1511462
#	https://bugzilla.redhat.com/show_bug.cgi?id=1514033
Requires:	389-ds-base
#Requires:	389-ds-base-legacy-tools
Requires:	openldap-clients
Requires:	%{_lib}nspr4
Requires:	%{_lib}nss3
Requires(post): krb5-server
Requires:	krb5-pkinit-openssl
# cyrus-sasl-gssapi
Requires:	sasl-plug-gssapi
Requires:	apache-base
Requires:	python3egg(gssapi)
Requires:	python3-systemd
Requires:	python3-cparser
# for "import pyhbac", /usr/lib64/python3.*/site-packages/pyhbac.so
Requires:	python3-libipa_hbac
Requires:	apache-mod_proxy
Requires:	apache-mod_wsgi
Requires:	apache-mod_auth_gssapi
Requires:	apache-mod_authn_core
Requires:	apache-mod_access_compat
Requires:	apache-mod_proxy_ajp
Requires:	apache-mod_slotmem_shm
Requires:	apache-mod_userdir
Requires:	apache-mod_dav
# 1.0.14-7: https://pagure.io/mod_nss/issue/45
Requires:	apache-mod_ssl
Requires:	apache-mod_session
# 0.9.9: https://github.com/adelton/mod_lookup_identity/pull/3
Requires:	apache-mod_lookup_identity
Requires:	apache-mod_session_cookie

Requires:	acl
Requires:	systemd-units
Requires(pre):	shadow-utils
Requires(pre):	systemd-units
Requires(pre):	user(apache)
Requires(pre):	%{name}-server-common = %{EVRD}
Requires(post):	systemd-units
###Requires:	selinux-policy >= 3.13.1-224 rhel
###Requires(post):	selinux-policy-base >= 3.13.1-224 rhel
Requires:	slapi-nis
# Required because of: https://bugzilla.redhat.com/show_bug.cgi?id=1475238
# related pki-core update: https://bugzilla.redhat.com/show_bug.cgi?id=1305993
Requires:	pki-ca
Requires:	pki-kra
Requires(preun): python3
Requires(preun): systemd-units
Requires(postun): python3
Requires(postun): systemd-units
Requires:	policycoreutils
Requires:	tar
Requires(pre):	certmonger
# 1.3.7.9-1: https://bugzilla.redhat.com/show_bug.cgi?id=1459946
#	https://bugzilla.redhat.com/show_bug.cgi?id=1511462
#	https://bugzilla.redhat.com/show_bug.cgi?id=1514033
Requires(pre):	389-ds-base
Requires:	fonts-ttf-fontawesome < 5.0
Requires:	bind-dyndb-ldap
Requires:	ipa-server-dns
# open-sans-fonts
Requires:	fonts-ttf-opensans
Requires:	openssl
Requires:	softhsm
Requires:	p11-kit
Requires:	gzip
Requires:	oddjob
# 0.7.0-2: https://pagure.io/gssproxy/pull-request/172
Requires:	gssproxy
# 1.15.2: FindByNameAndCertificate (https://pagure.io/SSSD/sssd/issue/3050)
#sssd-dbus with libexec
Requires:	sssd

# Requires from CentOS
Requires:	bind-pkcs11
Requires:	bind-pkcs11-utils
Requires:	cal10n
# version 4.8 not use ntpd, use chrony
Requires:	chrony
## javamail
Requires:	classpathx-mail
Requires:	dom4j
Requires:	geronimo-jms
Requires:	geronimo-jta
Requires:	glassfish-jaxb 
Requires:	httpcomponents-client
Requires:	httpcomponents-core
Requires:	jackson
#Requires:	jboss-annotations-1.2-api
Requires:	joda-convert
Requires:	joda-time
Requires:	jsr-311
Requires:	objectweb-asm
Requires:	opendnssec
Requires:	perl-DB_File
Requires:	perl-Package-Constants
Requires:	scannotation

# Requires from path
Requires:	apache-commons-daemon
#Requires:	jboss-web
#Requires:	jboss-jaxrs-2.0-api
Requires:	pki-symkey

Provides:	freeipa-server = %{EVRD}

%description server
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are installing an IPA server, you need to install this package.

%files server
%doc COPYING README.md Contributors.txt
%{_sbindir}/ipa-backup
%{_sbindir}/ipa-restore
%{_sbindir}/ipa-ca-install
%{_sbindir}/ipa-kra-install
%{_sbindir}/ipa-server-install
%{_sbindir}/ipa-replica-conncheck
%{_sbindir}/ipa-replica-install
%{_sbindir}/ipa-replica-manage
%{_sbindir}/ipa-csreplica-manage
%{_sbindir}/ipa-server-certinstall
%{_sbindir}/ipa-server-upgrade
%{_sbindir}/ipa-ldap-updater
%{_sbindir}/ipa-otptoken-import
%{_sbindir}/ipa-compat-manage
%{_sbindir}/ipa-nis-manage
%{_sbindir}/ipa-managed-entries
%{_sbindir}/ipactl
%{_sbindir}/ipa-advise
%{_sbindir}/ipa-cacert-manage
%{_sbindir}/ipa-winsync-migrate
%{_sbindir}/ipa-pkinit-manage
%{_sbindir}/ipa-crlgen-manage
%{_sbindir}/ipa-cert-fix
%{_libexecdir}/certmonger/dogtag-ipa-ca-renew-agent-submit
%{_libexecdir}/certmonger/ipa-server-guard
%dir %{_libexecdir}/ipa
%{_libexecdir}/ipa/ipa-custodia
%{_libexecdir}/ipa/ipa-custodia-check
%{_libexecdir}/ipa/ipa-httpd-kdcproxy
%{_libexecdir}/ipa/ipa-httpd-pwdreader
%{_libexecdir}/ipa/ipa-pki-retrieve-key
%{_libexecdir}/ipa/ipa-pki-wait-running
%{_libexecdir}/ipa/ipa-otpd
%{_libexecdir}/ipa/ipa-print-pac
%dir %{_libexecdir}/ipa/custodia
%attr(0755,root,root) %{_libexecdir}/ipa/custodia/ipa-custodia-dmldap
%attr(0755,root,root) %{_libexecdir}/ipa/custodia/ipa-custodia-pki-tomcat
%attr(0755,root,root) %{_libexecdir}/ipa/custodia/ipa-custodia-pki-tomcat-wrapped
%attr(0755,root,root) %{_libexecdir}/ipa/custodia/ipa-custodia-ra-agent
%dir %{_libexecdir}/ipa/oddjob
%attr(0755,root,root) %{_libexecdir}/ipa/oddjob/org.freeipa.server.conncheck
%attr(0755,root,root) %{_libexecdir}/ipa/oddjob/org.freeipa.server.trust-enable-agent
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freeipa.server.conf
%config(noreplace) %{_sysconfdir}/oddjobd.conf.d/ipa-server.conf
%dir %{_libexecdir}/ipa/certmonger
%attr(755,root,root) %{_libexecdir}/ipa/certmonger/*

# NOTE: systemd specific section
%attr(644,root,root) %{_unitdir}/ipa.service
%attr(644,root,root) %{_unitdir}/ipa-otpd.socket
%attr(644,root,root) %{_unitdir}/ipa-otpd@.service
%{_tmpfilesdir}/ipa.conf
%attr(644,root,root) %{_unitdir}/ipa-custodia.service
# END
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_pwd_extop.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_enrollment_extop.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_winsync.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_repl_version.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_uuid.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_modrdn.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_lockout.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_cldap.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_dns.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_range_check.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_otp_counter.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_otp_lasttoken.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libtopology.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_sidgen.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_sidgen_task.so
%attr(755,root,root) %{_libdir}/dirsrv/plugins/libipa_extdom_extop.so
%attr(755,root,root) %{_libdir}/krb5/plugins/kdb/ipadb.so
%{_sysusersdir}/kdcproxy.conf
%{_sysusersdir}/ipaapi.conf
%{_mandir}/man1/ipa-replica-conncheck.1*
%{_mandir}/man1/ipa-replica-install.1*
%{_mandir}/man1/ipa-replica-manage.1*
%{_mandir}/man1/ipa-csreplica-manage.1*
%{_mandir}/man1/ipa-server-certinstall.1*
%{_mandir}/man1/ipa-server-install.1*
%{_mandir}/man1/ipa-server-upgrade.1*
%{_mandir}/man1/ipa-ca-install.1*
%{_mandir}/man1/ipa-kra-install.1*
%{_mandir}/man1/ipa-compat-manage.1*
%{_mandir}/man1/ipa-nis-manage.1*
%{_mandir}/man1/ipa-managed-entries.1*
%{_mandir}/man1/ipa-ldap-updater.1*
%{_mandir}/man8/ipactl.8*
%{_mandir}/man1/ipa-backup.1*
%{_mandir}/man1/ipa-restore.1*
%{_mandir}/man1/ipa-advise.1*
%{_mandir}/man1/ipa-otptoken-import.1*
%{_mandir}/man1/ipa-cacert-manage.1*
%{_mandir}/man1/ipa-winsync-migrate.1*
%{_mandir}/man1/ipa-pkinit-manage.1*
%{_mandir}/man1/ipa-cert-fix.1*
%{_mandir}/man1/ipa-crlgen-manage.1*

%pre server
# Stop ipa_kpasswd if it exists before upgrading so we don't have a
# zombie process when we're done.
if [ -e /usr/sbin/ipa_kpasswd ]; then
# NOTE: systemd specific section
	/bin/systemctl stop ipa_kpasswd.service >/dev/null 2>&1 || :
# END
fi

# create users and groups
%sysusers_create_package kdcproxy %{SOURCE1}
%sysusers_create_package ipaapi %{SOURCE2}


%post server
# NOTE: systemd specific section
	/bin/systemctl --system daemon-reload 2>&1 || :
# END
if [ $1 -gt 1 ] ; then
	/bin/systemctl condrestart certmonger.service 2>&1 || :
fi
/bin/systemctl reload-or-try-restart dbus
/bin/systemctl reload-or-try-restart oddjobd

#sysusers_create mockbuild.conf
%tmpfiles_create ipa.conf

%posttrans server
# don't execute upgrade and restart of IPA when server is not installed
%__python3 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1

if [ $? -eq 0 ]; then
	# Restart IPA processes. This must be also run in postrans so that plugins
	# and software is in consistent state
	# NOTE: systemd specific section

	/bin/systemctl is-enabled ipa.service >/dev/null 2>&1
	if [ $? -eq 0 ]; then
		/bin/systemctl restart ipa.service >/dev/null
	fi
fi
# END

%preun server
if [ $1 = 0 ]; then
# NOTE: systemd specific section
	/bin/systemctl --quiet stop ipa.service || :
	/bin/systemctl --quiet disable ipa.service || :
	/bin/systemctl reload-or-try-restart dbus
	/bin/systemctl reload-or-try-restart oddjobd
# END
fi

#----------------------------------------------------------------------------

%package -n python3-ipaserver
Summary:	Python libraries used by IPA server
Group:		Development/Python
BuildArch:	noarch
Requires:	%{name}-server-common = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3-ipaclient = %{EVRD}
Requires:	python3egg(custodia)
Requires:	python3egg(python-ldap)
Requires:	python3egg(lxml)
Requires:	python3egg(lib389)
# Bump because of #1457942 certauth: use canonical principal for lookups
Requires:	python3egg(gssapi)
Requires:	python3egg(sssdconfig)
Requires:	python3egg(pyasn1)
Requires:	python3egg(dbus-python)
Requires:	python3egg(dnspython)
Requires:	python3egg(kdcproxy)
# rpm-libs (2)
Requires:	python3egg(rpm-vercmp)

# pki-base-python3 (alias for pki-base)
Requires:	pki-base
# python3-augeas >= 0.5 supports replace method
Requires:	python3egg(python-augeas)
Provides:	python3-ipaserver = %{EVRD}

%description -n python3-ipaserver
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are installing an IPA server, you need to install this package.

%files -n python3-ipaserver
%doc COPYING README.md Contributors.txt
%{python3_sitelib}/ipaserver
%{python3_sitelib}/ipaserver-*.egg-info

#----------------------------------------------------------------------------

%package server-common
Summary:	Common files used by IPA server
Group:		System/Base
BuildArch:	noarch
Requires:	%{name}-client-common = %{EVRD}
Requires:	apache-base
Requires:	systemd-units
Requires:	custodia
Provides:	freeipa-server-common = %{EVRD}

%description server-common
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are installing an IPA server, you need to install this package.

%files server-common
%doc COPYING README.md Contributors.txt
%ghost %dir %{_sharedstatedir}/kdcproxy
%dir %attr(0755,root,root) %{_sysconfdir}/ipa/kdcproxy
%config(noreplace) %{_sysconfdir}/ipa/kdcproxy/kdcproxy.conf
# NOTE: systemd specific section
%ghost %attr(644,root,root) %{_sysconfdir}/systemd/system/httpd.d/ipa.conf
# END
%dir %{_datadir}/ipa
%{_datadir}/ipa/wsgi.py*
%{_datadir}/ipa/kdcproxy.wsgi
%{_datadir}/ipa/ipaca*.ini
# RHEL spec file only: START: Package copy-schema-to-ca.py
%{_datadir}/ipa/copy-schema-to-ca.py*
# RHEL spec file only: END: Package copy-schema-to-ca.py
%{_datadir}/ipa/*.ldif
%{_datadir}/ipa/*.uldif
%{_datadir}/ipa/*.template
%dir %{_datadir}/ipa/__pycache__
%{_datadir}/ipa/__pycache__/*
%dir %{_datadir}/ipa/advise
%dir %{_datadir}/ipa/advise/legacy
%{_datadir}/ipa/advise/legacy/*.template
%dir %{_datadir}/ipa/profiles
%{_datadir}/ipa/profiles/README
%{_datadir}/ipa/profiles/*.cfg
%dir %{_datadir}/ipa/html
%{_datadir}/ipa/html/ssbrowser.html
%{_datadir}/ipa/html/unauthorized.html
%dir %{_datadir}/ipa/migration
%{_datadir}/ipa/migration/index.html
%{_datadir}/ipa/migration/migration.py*
%dir %{_datadir}/ipa/migration/__pycache__
%{_datadir}/ipa/migration/__pycache__/*
%dir %{_datadir}/ipa/ui
%{_datadir}/ipa/ui/index.html
%{_datadir}/ipa/ui/reset_password.html
%{_datadir}/ipa/ui/sync_otp.html
%{_datadir}/ipa/ui/*.ico
%{_datadir}/ipa/ui/*.css
%dir %{_datadir}/ipa/ui/css
%{_datadir}/ipa/ui/css/*.css
%dir %{_datadir}/ipa/ui/js
%dir %{_datadir}/ipa/ui/js/dojo
%{_datadir}/ipa/ui/js/dojo/dojo.js
%dir %{_datadir}/ipa/ui/js/libs
%{_datadir}/ipa/ui/js/libs/*.js
%dir %{_datadir}/ipa/ui/js/freeipa
%{_datadir}/ipa/ui/js/freeipa/app.js
%{_datadir}/ipa/ui/js/freeipa/core.js
%dir %{_datadir}/ipa/ui/js/plugins
%dir %{_datadir}/ipa/ui/images
%{_datadir}/ipa/ui/images/*.jpg
%{_datadir}/ipa/ui/images/*.png
%dir %{_datadir}/ipa/wsgi
%{_datadir}/ipa/wsgi/plugins.py*
%dir %{_datadir}/ipa/wsgi/__pycache__
 %{_datadir}/ipa/wsgi/__pycache__/*
%dir %{_sysconfdir}/ipa
%dir %{_sysconfdir}/ipa/html
%config(noreplace) %{_sysconfdir}/ipa/html/ssbrowser.html
%config(noreplace) %{_sysconfdir}/ipa/html/unauthorized.html
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa-kdc-proxy.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/httpd/conf.d/ipa-pki-proxy.conf
%ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/kdcproxy/ipa-kdc-proxy.conf
%ghost %attr(0644,root,apache) %{_datadir}/ipa/html/ca.crt
%ghost %attr(0644,root,apache) %{_datadir}/ipa/html/krb.con
%ghost %attr(0644,root,apache) %{_datadir}/ipa/html/krb5.ini
%ghost %attr(0644,root,apache) %{_datadir}/ipa/html/krbrealm.con
%dir %{_datadir}/ipa/updates/
%{_datadir}/ipa/updates/*
%dir %{_localstatedir}/lib/ipa
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/backup
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/gssproxy
%attr(711,root,root) %dir %{_localstatedir}/lib/ipa/sysrestore
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/sysupgrade
%attr(755,root,root) %dir %{_localstatedir}/lib/ipa/pki-ca
%attr(755,root,root) %dir %{_localstatedir}/lib/ipa/certs
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/private
%attr(700,root,root) %dir %{_localstatedir}/lib/ipa/passwds
%ghost %attr(755,root,pkiuser) %{_localstatedir}/lib/ipa/pki-ca/publish
%ghost %attr(770,named,named) %{_localstatedir}/named/dyndb-ldap/ipa
%dir %attr(0700,root,root) %{_sysconfdir}/ipa/custodia
%dir %{_datadir}/ipa/schema.d
%attr(0644,root,root) %{_datadir}/ipa/schema.d/README
%attr(0644,root,root) %{_datadir}/ipa/gssapi.login
%{_datadir}/ipa/ipakrb5.aug

#----------------------------------------------------------------------------

%package server-dns
Summary:	IPA integrated DNS server with support for automatic DNSSEC signing
Group:		System/Base
BuildArch:	noarch
Requires:	%{name}-server = %{EVRD}
# bumped because of https://bugzilla.redhat.com/show_bug.cgi?id=1469480
###Requires:	bind-dyndb-ldap >= 11.1-4
Requires:	bind
Requires:	bind-utils
Requires:	opendnssec

Provides:	freeipa-server-dns = %{EVRD}

# upgrade path from monolithic -server to -server + -server-dns
Obsoletes:	%{name}-server <= 4.2.0-2

%description server-dns
IPA integrated DNS server with support for automatic DNSSEC signing.
Integrated DNS server is BIND 9. OpenDNSSEC provides key management.

%files server-dns
%doc COPYING README.md Contributors.txt
%config(noreplace) %{_sysconfdir}/sysconfig/ipa-dnskeysyncd
%config(noreplace) %{_sysconfdir}/sysconfig/ipa-ods-exporter
%dir %attr(0755,root,root) %{_sysconfdir}/ipa/dnssec
%{_libexecdir}/ipa/ipa-dnskeysyncd
%{_libexecdir}/ipa/ipa-dnskeysync-replica
%{_libexecdir}/ipa/ipa-ods-exporter
%{_sbindir}/ipa-dns-install
%{_mandir}/man1/ipa-dns-install.1*
%attr(644,root,root) %{_unitdir}/ipa-dnskeysyncd.service
%attr(644,root,root) %{_unitdir}/ipa-ods-exporter.socket
%attr(644,root,root) %{_unitdir}/ipa-ods-exporter.service

#----------------------------------------------------------------------------

%package server-trust-ad
Summary:	Virtual package to install packages required for Active Directory trusts
Group:		System/Base
Requires:	%{name}-server = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	samba-python3
Requires:	samba
Requires:	samba-winbind
Requires(post): python3
Requires:	%{_lib}sss_idmap0
# python3-libsss_nss_idmap
Requires:	python3egg(sssdconfig)
# We use alternatives to divert winbind_krb5_locator.so plugin to libkrb5
# on the installes where server-trust-ad subpackage is installed because
# IPA AD trusts cannot be used at the same time with the locator plugin
# since Winbindd will be configured in a different mode
Requires(post):	update-alternatives
Requires(postun): update-alternatives
Requires(preun): update-alternatives

Provides:	freeipa-server-trust-ad = %{EVRD}

%description server-trust-ad
Cross-realm trusts with Active Directory in IPA require working Samba 4
installation. This package is provided for convenience to install all required
dependencies at once.

%files server-trust-ad
%doc COPYING README.md Contributors.txt
%{_sbindir}/ipa-adtrust-install
%{_datadir}/ipa/smb.conf.empty
%attr(755,root,root) %{_libdir}/samba/pdb/ipasam.so
%{_mandir}/man1/ipa-adtrust-install.1*
%ghost %{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
%{_sysconfdir}/dbus-1/system.d/oddjob-ipa-trust.conf
%{_sysconfdir}/oddjobd.conf.d/oddjobd-ipa-trust.conf
%attr(755,root,root) %{_libexecdir}/ipa/oddjob/com.redhat.idm.trust-fetch-domains

%postun server-trust-ad
if [ "$1" -ge "1" ]; then
	if [ "`readlink %{_sysconfdir}/alternatives/winbind_krb5_locator.so`" == "/dev/null" ]; then
		%{_sbindir}/alternatives --set winbind_krb5_locator.so /dev/null
	fi
fi

%post server-trust-ad
%{_sbindir}/update-alternatives --install %{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so \
	winbind_krb5_locator.so /dev/null 90
/bin/systemctl reload-or-try-restart dbus
/bin/systemctl reload-or-try-restart oddjobd

%posttrans server-trust-ad
%__python3 -c "import sys; from ipaserver.install import installutils; sys.exit(0 if installutils.is_ipa_configured() else 1);" > /dev/null 2>&1
if [ $? -eq 0 ]; then
# NOTE: systemd specific section
	/bin/systemctl try-restart httpd.service >/dev/null 2>&1 || :
# END
fi

%preun server-trust-ad
if [ $1 -eq 0 ]; then
	%{_sbindir}/update-alternatives --remove winbind_krb5_locator.so /dev/null
	/bin/systemctl reload-or-try-restart dbus
	/bin/systemctl reload-or-try-restart oddjobd
fi

%endif
# with server

#----------------------------------------------------------------------------

%package client
Summary:	IPA authentication for use on clients
Group:		System/Base
Requires:	%{name}-client-common = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3egg(gssapi)
Requires:	python3-ipaclient = %{EVRD}
Requires:	python3egg(python-ldap)
Requires:	python3egg(python-augeas)
# cyrus-sasl-gssapi
Requires:	sasl-plug-gssapi
Requires:	chrony
Requires:	krb5-workstation
Requires:	authconfig
Requires:	curl
# NIS domain name config: /usr/lib/systemd/system/*-domainname.service
Requires:	initscripts
Requires:	xmlrpc-c
Requires:	sssd
Requires:	python3egg(sssdconfig)
Requires:	certmonger
Requires:	nss
Requires:	bind-utils
Requires:	oddjob-mkhomedir
# libsss_autofs
Requires:	sssd-client
Requires:	autofs
Requires:	libnfsidmap
# libnfsidmap (2)
Requires:	nfs-utils
Requires(post):	policycoreutils
Requires(post):	update-alternatives
Requires(postun): update-alternatives

Provides:	freeipa-client = %{EVRD}
Provides:	ipa-client = %{EVRD}

# renamed
Provides:	%{name}-sclient = %{EVRD}
Obsoletes:	%{name}-sclient < 4.8.9-12
Conflicts:	%{name}-sclient-common < 4.8.9-12

Provides:	freeipa-admintools = %{EVRD}

Obsoletes:	%{name}-admintools < 4.4.1
Provides:	%{name}-admintools = %{EVRD}

%description client
This package provides command-line tools to rule
FreeIPA server.
It can also be used for FreeIPA client, but we
recommend to user ipa-clientN (e.g. ipa-client47)
packages for FreeIPA clients.

%files client
%doc COPYING README.md Contributors.txt
%{_sclientbindir}/ipa-client-install
%{_sclientbindir}/ipa-client-automount
%{_sclientbindir}/ipa-certupdate
%{_sclientbindir}/ipa-getkeytab
%{_sclientbindir}/ipa-rmkeytab
%{_sclientbindir}/ipa-join
%{_sclientbindir}/ipa
%config %{_sysconfdir}/bash_completion.d
%config %{_sysconfdir}/sysconfig/certmonger
%{_mandir}/man1/ipa.1*
%{_mandir}/man1/ipa-getkeytab.1*
%{_mandir}/man1/ipa-rmkeytab.1*
%{_mandir}/man1/ipa-client-install.1*
%{_mandir}/man1/ipa-client-automount.1*
%{_mandir}/man1/ipa-certupdate.1*
%{_mandir}/man1/ipa-join.1*

%post client

### update-alternatives
# Alternatives between IPA client built from the same source as IPA server
# and a standalone ipa-clientN (e.g. ipa-client47).
# Keep this script the same in both specs.

%if %{with server}
priority=10
%else
# +maj to make a higher version have higher priority
priority="$(echo 12+%{maj} | bc)"
%endif

for i in \
	ipa-client-install ipa-client-automount ipa-certupdate \
	ipa-getkeytab ipa-rmkeytab ipa-join
do
	update-alternatives --install \
		"/usr/sbin/$i" \
		"$i" \
		"%{_sclientbindir}/$i" \
		"$priority"
done

update-alternatives --install \
	"/usr/bin/ipa" \
	"ipa" \
	"%{_sclientbindir}/ipa" \
	"$priority"

### /update-alternatives

if [ $1 -gt 1 ] ; then
	# Has the client been configured?
	restore=0
	test -f '/var/lib/ipa-client/sysrestore/sysrestore.index' && restore=$(wc -l '/var/lib/ipa-client/sysrestore/sysrestore.index' | awk '{print $1}')

	if [ -f '/etc/sssd/sssd.conf' -a $restore -ge 2 ]; then
		if ! grep -E -q '/var/lib/sss/pubconf/krb5.include.d/' /etc/krb5.conf 2>/dev/null ; then
		echo "includedir /var/lib/sss/pubconf/krb5.include.d/" > /etc/krb5.conf.ipanew
		cat /etc/krb5.conf >> /etc/krb5.conf.ipanew
			mv -Z /etc/krb5.conf.ipanew /etc/krb5.conf
		fi
	fi

	if [ $restore -ge 2 ]; then
		if grep -E -q '\s*pkinit_anchors = FILE:/etc/ipa/ca.crt$' /etc/krb5.conf 2>/dev/null; then
			sed -E 's|(\s*)pkinit_anchors = FILE:/etc/ipa/ca.crt$|\1pkinit_anchors = FILE:/var/lib/ipa-client/pki/kdc-ca-bundle.pem\n\1pkinit_pool = FILE:/var/lib/ipa-client/pki/ca-bundle.pem|' /etc/krb5.conf >/etc/krb5.conf.ipanew
			mv -Z /etc/krb5.conf.ipanew /etc/krb5.conf
			cp /etc/ipa/ca.crt /var/lib/ipa-client/pki/kdc-ca-bundle.pem
			cp /etc/ipa/ca.crt /var/lib/ipa-client/pki/ca-bundle.pem
		fi
	fi

	if [ $restore -ge 2 ]; then
		%__python3 -c 'from ipaclient.install.client import update_ipa_nssdb; update_ipa_nssdb()' >/var/log/ipaupgrade.log 2>&1
	fi
fi

%postun client
[ $1 = 0 ] || exit 0
for i in \
	ipa-client-install ipa-client-automount ipa-certupdate \
	ipa-getkeytab ipa-rmkeytab ipa-join ipa
do
	update-alternatives --remove \
		"$i" \
		"%{_sclientbindir}/$i"
done

%triggerin client -- openssh-server
# Has the client been configured?
restore=0
test -f '/var/lib/ipa-client/sysrestore/sysrestore.index' && restore=$(wc -l '/var/lib/ipa-client/sysrestore/sysrestore.index' | awk '{print $1}')

if [ -f '/etc/ssh/sshd_config' -a $restore -ge 2 ]; then
	if grep -E -q '^(AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys|PubKeyAgent /usr/bin/sss_ssh_authorizedkeys %u)$' /etc/ssh/sshd_config 2>/dev/null; then
		sed -r '
			/^(AuthorizedKeysCommand(User|RunAs)|PubKeyAgentRunAs)[ \t]/ d
		' /etc/ssh/sshd_config >/etc/ssh/sshd_config.ipanew

		if /usr/sbin/sshd -t -f /dev/null -o 'AuthorizedKeysCommand=/usr/bin/sss_ssh_authorizedkeys' -o 'AuthorizedKeysCommandUser=nobody' 2>/dev/null; then
			sed -ri '
				s/^PubKeyAgent (.+) %u$/AuthorizedKeysCommand \1/
				s/^AuthorizedKeysCommand .*$/\0\nAuthorizedKeysCommandUser nobody/
			' /etc/ssh/sshd_config.ipanew
		elif /usr/sbin/sshd -t -f /dev/null -o 'AuthorizedKeysCommand=/usr/bin/sss_ssh_authorizedkeys' -o 'AuthorizedKeysCommandRunAs=nobody' 2>/dev/null; then
			sed -ri '
				s/^PubKeyAgent (.+) %u$/AuthorizedKeysCommand \1/
				s/^AuthorizedKeysCommand .*$/\0\nAuthorizedKeysCommandRunAs nobody/
			' /etc/ssh/sshd_config.ipanew
		elif /usr/sbin/sshd -t -f /dev/null -o 'PubKeyAgent=/usr/bin/sss_ssh_authorizedkeys %u' -o 'PubKeyAgentRunAs=nobody' 2>/dev/null; then
			sed -ri '
				s/^AuthorizedKeysCommand (.+)$/PubKeyAgent \1 %u/
				s/^PubKeyAgent .*$/\0\nPubKeyAgentRunAs nobody/
			' /etc/ssh/sshd_config.ipanew
		fi

		mv -Z /etc/ssh/sshd_config.ipanew /etc/ssh/sshd_config
		chmod 600 /etc/ssh/sshd_config

		/bin/systemctl condrestart sshd.service 2>&1 || :
	fi
fi

#----------------------------------------------------------------------------

%package -n python3-ipaclient
Summary:	Python libraries used by IPA client
Group:		Development/Python
BuildArch:	noarch
Requires:	%{name}-client-common = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3-ipalib = %{EVRD}
Requires:	python3egg(dnspython)
Requires:	python3egg(rpm-vercmp)
Provides:	python3-ipaclient = %{EVRD}
# RHEL spec file only: DELETED: Remove csrgen

%description -n python3-ipaclient
Python module for FreeIPA server admin tools.

%files -n python3-ipaclient
%doc COPYING README.md Contributors.txt
%dir %{python3_sitelib}/ipaclient
%{python3_sitelib}/ipaclient/*.py*
%dir %{python3_sitelib}/ipaclient/install
%{python3_sitelib}/ipaclient/install/*.py*
%dir %{python3_sitelib}/ipaclient/plugins
%{python3_sitelib}/ipaclient/plugins/*.py*
%dir %{python3_sitelib}/ipaclient/remote_plugins
%{python3_sitelib}/ipaclient/remote_plugins/*.py*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_*
%{python3_sitelib}/ipaclient/remote_plugins/2_*/*.py*
%dir %{python3_sitelib}/ipaclient/__pycache__
%{python3_sitelib}/ipaclient/__pycache__/*
%dir %{python3_sitelib}/ipaclient/install/__pycache__
%{python3_sitelib}/ipaclient/install/__pycache__/*
%dir %{python3_sitelib}/ipaclient/plugins/__pycache__
%{python3_sitelib}/ipaclient/plugins/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_114/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/2_114/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_156/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/2_156/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_164/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/2_164/__pycache__/*
%dir %{python3_sitelib}/ipaclient/remote_plugins/2_49/__pycache__
%{python3_sitelib}/ipaclient/remote_plugins/2_49/__pycache__/*

# RHEL spec file only: DELETED: Remove csrgen
#%%{python3_sitelib}/ipaclient/csrgen
%{python3_sitelib}/ipaclient-*.egg-info

#----------------------------------------------------------------------------

%package client-common
Summary:	Common files used by IPA client
Group:		System/Base
BuildArch:	noarch

Provides:	freeipa-client-common = %{EVRD}

# renamed
Provides:	%{name}-sclient-common = %{EVRD}
Obsoletes:	%{name}-sclient-common < 4.8.9-12
Conflicts:	%{name}-sclient-common < 4.8.9-12

%description client-common
Common files for FreeIPA server admin tools.

%files client-common
%doc COPYING README.md Contributors.txt
%dir %attr(0755,root,root) %{_sysconfdir}/ipa/
%ghost %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipa/default.conf
%ghost %attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipa/ca.crt
%dir %attr(0755,root,root) %{_sysconfdir}/ipa/nssdb
# old dbm format
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/cert8.db
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/key3.db
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/secmod.db
# new sql format
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/cert9.db
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/key4.db
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/pkcs11.txt
%ghost %config(noreplace) %{_sysconfdir}/ipa/nssdb/pwdfile.txt
%ghost %config(noreplace) %{_sysconfdir}/pki/ca-trust/source/ipa.p11-kit
%dir %{_localstatedir}/lib/ipa-client
%dir %{_localstatedir}/lib/ipa-client/pki
%dir %{_localstatedir}/lib/ipa-client/sysrestore
%{_mandir}/man5/default.conf.5*
%{_datadir}/ipa/client/freeipa.template
%{_datadir}/ipa/client/sshd_ipa.conf.template

#----------------------------------------------------------------------------

%package python3-compat
Summary:	Compatiblity package for Python libraries used by IPA
Group:		Development/Python
BuildArch:	noarch
Obsoletes:	%{name}-python < 4.2.91
Provides:	%{name}-python = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	python3-ipalib = %{EVRD}

Provides:	freeipa-python3-compat = %{EVRD}

Obsoletes:	freeipa-python < 4.2.91
Provides:	freeipa-python3 = %{EVRD}

%description python3-compat
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
This is a compatibility package to accommodate %{name}-python split into
python3-ipalib and %{name}-common. Packages still depending on
%{name}-python should be fixed to depend on python3-ipaclient or
%{name}-common instead.

%files python3-compat
%doc COPYING README.md Contributors.txt

#----------------------------------------------------------------------------

%package -n python3-ipalib
Summary:	Python libraries used by IPA
Group:		Development/Python
BuildArch:	noarch
Conflicts:	%{name}-python < 4.2.91
Requires:	%{name}-common = %{EVRD}
# Bump because of #1457942 certauth: use canonical principal for lookups
Requires:	python3egg(gssapi)
Requires:	gnupg
Requires:	keyutils
Requires:	python3
Requires:	python3egg(python-nss)
Requires:	python3egg(cryptography)
Requires:	python3egg(netaddr)
# python3-libipa_hbac
Requires:	python3egg(sssdconfig)
Requires:	python3egg(qrcode)
Requires:	python3egg(pyasn1)
Requires:	python3egg(pyasn1-modules)
Requires:	python3egg(python-dateutil)
Requires:	python3egg(python-yubico)
# python-sss-murmur
Requires:	python3egg(sssdconfig)
Requires:	python3egg(dbus-python)
Requires:	python3egg(setuptools)
Requires:	python3egg(six)
Requires:	python3egg(jwcrypto)
Requires:	python3egg(cffi)
Requires:	python3egg(python-ldap)
Requires:	python3egg(requests)
Requires:	python3egg(dnspython)
Requires:	python3egg(netifaces)
Requires:	python3egg(pyusb)

Provides:	python3-ipalib = %{EVRD}
Provides:	python3-ipapython = %{EVRD}
Provides:	python3-ipaplatform = %{EVRD}

%description -n python3-ipalib
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are using IPA, you need to install this package.

%files -n python3-ipalib
%doc COPYING README.md Contributors.txt
%dir %{python3_sitelib}/ipapython
%{python3_sitelib}/ipapython/*.py*
%dir %{python3_sitelib}/ipapython/install
%{python3_sitelib}/ipapython/install/*.py*
%dir %{python3_sitelib}/ipalib
%{python3_sitelib}/ipalib/*.py*
%dir %{python3_sitelib}/ipalib/install
%{python3_sitelib}/ipalib/install/*.py*
%dir %{python3_sitelib}/ipaplatform
%{python3_sitelib}/ipaplatform/*
%{python3_sitelib}/ipapython-*.egg-info
%{python3_sitelib}/ipalib-*.egg-info
%{python3_sitelib}/ipaplatform-*.egg-info
#%%{python3_sitelib}/ipaplatform-*-nspkg.pth
%dir %{python3_sitelib}/ipalib/__pycache__
%{python3_sitelib}/ipalib/__pycache__/*
%dir %{python3_sitelib}/ipalib/install/__pycache__
%{python3_sitelib}/ipalib/install/__pycache__/*
%dir %{python3_sitelib}/ipapython/__pycache__
%{python3_sitelib}/ipapython/__pycache__/*
%dir %{python3_sitelib}/ipapython/install/__pycache__
%{python3_sitelib}/ipapython/install/__pycache__/*

#----------------------------------------------------------------------------

%package common
Summary:	Common files used by IPA
Group:		Development/Python
BuildArch:	noarch
Conflicts:	%{name}-python < 4.2.91

Provides:	freeipa-common = %{EVRD}

%if %{with selinux}
# This ensures that the *-selinux package and all it’s dependencies are not
# pulled into containers and other systems that do not use SELinux. The
# policy defines types and file contexts for client and server.
Requires:       (%{name}-selinux if selinux-policy-%{selinuxtype})
%endif

%description common
IPA is an integrated solution to provide centrally managed Identity (users,
hosts, services), Authentication (SSO, 2FA), and Authorization
(host access control, SELinux user roles, services). The solution provides
features for further integration with Linux based clients (SUDO, automount)
and integration with Active Directory based infrastructures (Trusts).
If you are using IPA, you need to install this package.

%files common -f %{name}.lang
%doc COPYING README.md Contributors.txt

#----------------------------------------------------------------------------
%if %{with selinux}
# SELinux subpackage
%package selinux
Summary:	FreeIPA SELinux policy
Group:		Development/Python
BuildArch:	noarch
Requires:	selinux-policy-%{selinuxtype}
Requires(post):	selinux-policy-%{selinuxtype}

%description selinux
Custom SELinux policy module for FreeIPA

%files selinux
%{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.*
%ghost %{_sharedstatedir}/selinux/%{selinuxtype}/active/modules/200/%{modulename}

# SELinux contexts are saved so that only affected files can be
# relabeled after the policy module installation
%pre selinux
%selinux_relabel_pre -s %{selinuxtype}

%post selinux
semodule -d ipa_custodia &> /dev/null || true;
%selinux_modules_install -s %{selinuxtype} %{_datadir}/selinux/packages/%{selinuxtype}/%{modulename}.pp.bz2

%postun selinux
if [ $1 -eq 0 ]; then
    %selinux_modules_uninstall -s %{selinuxtype} %{modulename}
    semodule -e ipa_custodia &> /dev/null || true;
fi

%posttrans selinux
%selinux_relabel_post -s %{selinuxtype}

# with selinux
%endif

#----------------------------------------------------------------------------
%if %{with server}
%package client-epn
Summary:	Tool to configure Expiring Passworld Notification in IPA
Group:		System/Base
Requires:	%{name}-client = %{EVRD}

%description client-epn
EPN provides command-line options to display the list of affected users.
This provides data introspection and helps understand how many emails
would be sent for a given day, or a given date range.
The command-line options can also be used by a monitoring system to alert
whenever a number of emails over the SMTP quota would be sent.

%files client-epn
%doc COPYING README.md Contributors.txt
%dir %{_sysconfdir}/ipa/epn
%{_sysconfdir}/ipa/epn.conf
%{_sysconfdir}/ipa/epn/expire_msg.template
%{_unitdir}/ipa-epn.service
%{_unitdir}/ipa-epn.timer
%{_sbindir}/ipa-epn
%{_mandir}/man1/ipa-epn.1*
%{_mandir}/man5/epn.conf.5*
%endif
#----------------------------------------------------------------------------
%package client-samba
Summary: Tools to configure Samba on IPA client
Group: System/Base
Requires: %{name}-client = %{EVRD}
Requires: samba-python3
Requires: samba-client
Requires: samba-winbind
Requires: samba-common
Requires: samba
Requires: sssd-winbind-idmap
Requires: tdb-utils
Requires: cifs-utils

%description client-samba
This package provides command-line tools to deploy Samba domain member
on the machine enrolled into a FreeIPA environment

%files client-samba
%doc README.md Contributors.txt
%license COPYING
%{_sbindir}/ipa-client-samba
%{_mandir}/man1/ipa-client-samba.1*

#------------------------------------------------------------------------------
%prep
%setup -qn freeipa-%{version}

# RHEL spec file only: START
# Update timestamps on the files touched by a patch, to avoid non-equal
# .pyc/.pyo files across the multilib peers within a build, where "Level"
# is the patch prefix option (e.g. -p1)
# Taken from specfile for sssd and python3-simplejson
UpdateTimestamps() {
Level=$1
PatchFile=$2

# Locate the affected files:
for f in $(diffstat $Level -l $PatchFile); do
	# Set the files to have the same timestamp as that of the patch:
	touch -c -r $PatchFile $f
done
}
for p in %patches ; do
	%__patch -p1 -i $p
	UpdateTimestamps -p1 $p
done
# RHEL spec file only: END

# ROSA's autofs is historically patched to use /etc/autofs/ directory
# Patch 0001-Custom-autofs-dir-on-ROSA.patch changes it in other places,
# here in po/ let's use sed because manual verification of the result after sed is
# not as important as in the code, and it easifies maintainance of this patch.
find ./po -type f | xargs sed -i 's,/etc/auto,/etc/autofs/auto,g'

cp -v /etc/os-release ipatests/test_ipaplatform/data/os-release-rosa

#Rosa old distrib not have nis-domainname.service
#change it to fedora-domainname.service
%if %{mdvver} < 201910
sed -i 's|nis-domainname|fedora-domainname|' ipaplatform/redhat/services.py
%endif


%build
%serverbuild
# RHEL spec file only: START
autoreconf -i -f
# RHEL spec file only: END
# UI compilation segfaulted on some arches when the stack was lower (#1040576)
export JAVA_STACK_SIZE="8m"

export CFLAGS="%{optflags} $CFLAGS"
export LDFLAGS="%{ldflags} $LDFLAGS"

#may be not needed, see configure params
export IPA_VENDOR_VERSION_SUFFIX=-%{release}
export SUPPORTED_PLATFORM=rosa

# PATH is workaround for https://bugzilla.redhat.com/show_bug.cgi?id=1005235
export PATH="/usr/bin:/usr/sbin:$PATH"

export PYTHON=%{__python3}
# Workaround: make sure all shebangs are pointing to Python 3
# This should be solved properly using setuptools
# and this hack should be removed.
find \
	! -name '*.pyc' -a \
	! -name '*.pyo' -a \
	-type f -exec grep -qsm1 '^#!.*\bpython' {} \; \
	-exec sed -i -e '1 s|^#!.*\bpython[^ ]*|#!%__python3|' {} \;

%configure \
	--with-vendor-suffix=-%{release} \
	%{enable_server_option} \
	--without-ipatests \
	--with-ipaplatform=rosa

%if %{with server}
%make LIBS="$LIBS -L%{_libdir}/dirsrv -lslapd -lpthread -lkrb5 -lnspr4 -lplc4 -lnss3 -lldap"
%else
%make
%endif

%check
%make check VERBOSE=yes LIBDIR=%{_libdir}

%install
# Please put as much logic as possible into make install. It allows:
# - easier porting to other distributions
# - rapid devel & install cycle using make install
# (instead of full RPM build and installation each time)
#
# All files and directories created by spec install should be marked as ghost.
# (These are typically configuration files created by IPA installer.)
# All other artifacts should be created by make install.
#
# Exception to this rule are test programs which where want to install
# Python2/3 versions at the same time so we need to rename them. Yuck.
%__make python_install DESTDIR=%{buildroot} INSTALL="%{__install} -p"

%makeinstall_std

# remove files which are useful only for make uninstall
find %{buildroot} -wholename '*/site-packages/*/install_files.txt' -exec rm {} \;

%find_lang %{name}

%if %{with server}
# So we can own our Apache configuration
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa.conf
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-kdc-proxy.conf
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-pki-proxy.conf
/bin/touch %{buildroot}%{_sysconfdir}/httpd/conf.d/ipa-rewrite.conf
/bin/touch %{buildroot}%{_datadir}/ipa/html/ca.crt
/bin/touch %{buildroot}%{_datadir}/ipa/html/krb.con
/bin/touch %{buildroot}%{_datadir}/ipa/html/krb5.ini
/bin/touch %{buildroot}%{_datadir}/ipa/html/krbrealm.con

mkdir -p %{buildroot}%{_libdir}/krb5/plugins/libkrb5
touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so

# RHEL spec file only: START: Package copy-schema-to-ca.py
cp contrib/copy-schema-to-ca-RHEL6.py %{buildroot}%{_datadir}/ipa/copy-schema-to-ca.py
# RHEL spec file only: END: Package copy-schema-to-ca.py

mkdir -p %{buildroot}%{_sysconfdir}/cron.d

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/kdcproxy.conf
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/ipaapi.conf

chmod +x %{buildroot}%{python3_sitelib}/ipaserver/dnssec/localhsm.py
chmod +x %{buildroot}%{python3_sitelib}/ipaserver/dnssec/odsmgr.py
chmod +x %{buildroot}%{python3_sitelib}/ipaserver/install/ipa_kra_install.py

mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/httpd.d
touch %{buildroot}%{_sysconfdir}/systemd/system/httpd.d/ipa.conf

mkdir -p %{buildroot}%{_sysconfdir}/ipa/kdcproxy
touch %{buildroot}%{_sysconfdir}/ipa/kdcproxy/ipa-kdc-proxy.conf

mkdir -p %{buildroot}%{_localstatedir}/named/dyndb-ldap
touch %{buildroot}%{_localstatedir}/named/dyndb-ldap/ipa

mkdir -p %{buildroot}%{_localstatedir}/lib/ipa/pki-ca
touch %{buildroot}%{_localstatedir}/lib/ipa/pki-ca/publish

%endif
# with server

touch %{buildroot}%{_sysconfdir}/ipa/default.conf
touch %{buildroot}%{_sysconfdir}/ipa/ca.crt

%if %{without server}
# Remove ipa-epn parts as we don't have ipa-epn systemd integration generated
# for client-only build
rm %{buildroot}/%{_unitdir}/ipa-epn.service
rm %{buildroot}/%{_unitdir}/ipa-epn.timer
rm %{buildroot}/%{_sbindir}/ipa-epn
rm %{buildroot}/%{_mandir}/man1/ipa-epn.1*
rm %{buildroot}/%{_mandir}/man5/epn.conf.5*
rm %{buildroot}/%{_sysconfdir}/ipa/epn/expire_msg.template
rm %{buildroot}/%{_sysconfdir}/ipa/epn.conf
%endif

mkdir -p %{buildroot}%{_sharedstatedir}/kdcproxy
mkdir -p %{buildroot}%{_sysconfdir}/ipa/nssdb
mkdir -p %{buildroot}%{_sysconfdir}/pki/ca-trust/source
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/cert8.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/key3.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/secmod.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/cert9.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/key4.db
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/pkcs11.txt
touch %{buildroot}%{_sysconfdir}/ipa/nssdb/pwdfile.txt
touch %{buildroot}%{_sysconfdir}/pki/ca-trust/source/ipa.p11-kit

#mkdir -p %%{buildroot}%%{_sysconfdir}/profile.d/
#echo "# Force usage of IPA server's IPA client if a standalone ipa-clientN is installed" >> \
#	%{buildroot}%{_sysconfdir}/profile.d/90_0_ipa-server.sh
#echo "export IPA_SERVER_CLIENT_PRIORITY=1" >> %{buildroot}%{_sysconfdir}/profile.d/90_0_ipa-server.sh

mkdir -p %{buildroot}%{_sclientbindir}
for i in \
	ipa-client-install ipa-client-automount ipa-certupdate \
	ipa-getkeytab ipa-rmkeytab ipa-join
do
	mv %{buildroot}%{_sbindir}/$i %{buildroot}%{_sclientbindir}/
done
mv -v %{buildroot}%{_bindir}/ipa %{buildroot}%{_sclientbindir}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13316 |21mr|ipcalc-0.2.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	IP network address calculator
Name:		ipcalc
Version:	0.2.5
Release:	3
Group:		System/Base
License:	GPLv2+
URL:		https://gitlab.com/ipcalc/ipcalc
Source0:	https://gitlab.com/ipcalc/ipcalc/-/archive/%{version}//%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(popt)
Conflicts:	initscripts < 9.64

%description
ipcalc provides a simple way to calculate IP information for a host
or network. Depending on the options specified, it may be used to provide
IP network information in human readable format, in a format suitable for
parsing in scripts, generate random private addresses, resolve an IP address,
or check the validity of an address.

%prep
%autosetup -p1

%build
%serverbuild_hardened
%setup_compile_flags
%make_build LIBS="$LDFLAGS" LIBPATH=%{_libdir} USE_GEOIP="yes"

%install
mkdir -p %{buildroot}/bin
install -p -m 755 ipcalc %{buildroot}/bin/
mkdir -p -m 755 %{buildroot}%{_mandir}/man1
install -p -m 644 ipcalc.1 %{buildroot}%{_mandir}/man1

%files
%doc README.md
/bin/ipcalc
%{_mandir}/man1/ipcalc.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13317 |21mr|IPMI-1.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name	IPMI
%define	version	1.0 
%define release	16

Summary:	A simple initscript to load IPMI drivers
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	ipmi
License:	GPL
Group:		System/Kernel and hardware 
Requires(post,preun):	rpm-helper, openipmi-lanserv
buildarch:	noarch

%description
A simple initscript to load IPMI drivers
IPMI stands for Intelligent Platform Management Interface
and is an open standard for machine health, and control
(including remote control), and is implemented by many
hardware vendors - Intel is one of the originators
and early adopters of the standard.

%prep

%build

%install
rm -rf $RPM_BUILD_ROOT
install -m744 %{SOURCE0} -D $RPM_BUILD_ROOT%{_initrddir}/ipmi

%clean
rm -rf $RPM_BUILD_ROOT

%post
%_post_service ipmi

%preun
%_preun_service ipmi

%files
%defattr(-,root,root)
%config(noreplace) %{_initrddir}/ipmi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13318 |21mr|ipmitool-1.8.18-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global       gitname     IPMITOOL
%define       gitversion  %(echo %{version} | tr '.' '_' )

Name:         ipmitool
Summary:      Utility for IPMI control
Version:	1.8.18
Release:	22
License:      BSD
Group:        System/Kernel and hardware
URL:          http://ipmitool.sourceforge.net/
Source0:      https://github.com/%{name}/%{name}/archive/%{gitname}_%{gitversion}/%{name}-%{gitversion}.tar.gz
Source1:      openipmi-ipmievd.sysconf
Source2:      ipmievd.service
Source3:      exchange-bmc-os-info.service
Source4:      exchange-bmc-os-info.sysconf
Source5:      set-bmc-url.sh
Source6:      exchange-bmc-os-info

Patch1:       0001-CVE-2011-4339-OpenIPMI.patch
# WARNING:  THIS PATCH MUST BE USED FOR RAWHIDE (f26+) BRANCH
Patch2:       0002-openssl.patch
Patch3:       0003-ipmitool-1.8.11-set-kg-key.patch
Patch4:       0004-slowswid.patch
Patch5:       0005-sensor-id-length.patch
Patch6:       0006-enable-usb.patch
Patch7:       0007-check-input.patch
Patch8:       0008-add-extern.patch
Patch9:       0009-best-cipher.patch
Patch10:      0010-pef-missing-newline.patch
Patch11:      0011-expand-sensor-name-column.patch
# CVE-2020-5208
Patch12:      0012-CVE-2020-5208.patch

BuildRequires: openssl-devel readline-devel ncurses-devel
%{?systemd_requires}
BuildRequires: systemd
# bootstrap
BuildRequires: automake autoconf libtool
Obsoletes: OpenIPMI-tools < 2.0.14-3
Provides: OpenIPMI-tools = 2.0.14-3


%description
This package contains a utility for interfacing with devices that support
the Intelligent Platform Management Interface specification.  IPMI is
an open standard for machine health, inventory, and remote power control.

This utility can communicate with IPMI-enabled devices through either a
kernel driver such as OpenIPMI or over the RMCP LAN protocol defined in
the IPMI specification.  IPMIv2 adds support for encrypted LAN
communications and remote Serial-over-LAN functionality.

It provides commands for reading the Sensor Data Repository (SDR) and
displaying sensor values, displaying the contents of the System Event
Log (SEL), printing Field Replaceable Unit (FRU) information, reading and
setting LAN configuration, and chassis power control.


%package -n ipmievd
Requires: ipmitool
%{?systemd_requires}
BuildRequires: systemd
Summary: IPMI event daemon for sending events to syslog
%description -n ipmievd
ipmievd is a daemon which will listen for events from the BMC that are
being  sent to the SEL and also log those messages to syslog.


%package -n bmc-snmp-proxy
Requires: net-snmp
Requires: exchange-bmc-os-info
BuildArch: noarch
Summary: Reconfigure SNMP to include host SNMP agent within BMC
%description -n bmc-snmp-proxy
Given a host with BMC, this package would extend system configuration
of net-snmp to include redirections to BMC based SNMP.


%package -n exchange-bmc-os-info
Requires: hostname
Requires: ipmitool
BuildArch: noarch
%{?systemd_requires}
BuildRequires: systemd

Summary: Let OS and BMC exchange info

%description -n exchange-bmc-os-info
Given a host with BMC, this package would pass the hostname &
OS information to the BMC and also capture the BMC ip info
for the host OS to use.


%prep
%autosetup -n %{name}-%{gitname}_%{gitversion} -p1

for f in AUTHORS ChangeLog; do
    iconv -f iso-8859-1 -t utf8 < ${f} > ${f}.utf8
    mv ${f}.utf8 ${f}
done

%build
# --disable-dependency-tracking speeds up the build
# --enable-file-security adds some security checks
# --disable-intf-free disables FreeIPMI support - we don't want to depend on
#   FreeIPMI libraries, FreeIPMI has its own ipmitoool-like utility.

# begin: release auto-tools
# Used to be needed by aarch64 support, now only cxoem patch makefiles are left.
aclocal
libtoolize --automake --copy
autoheader
automake --foreign --add-missing --copy
aclocal
autoconf
automake --foreign
# end: release auto-tools

%configure --disable-dependency-tracking --enable-file-security --disable-intf-free
make %{?_smp_mflags}

%install
make DESTDIR=%{buildroot} install

install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/ipmievd.service
install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/ipmievd
install -Dm 644 %{SOURCE3} %{buildroot}%{_unitdir}/exchange-bmc-os-info.service
install -Dm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/exchange-bmc-os-info
install -Dm 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d/set-bmc-url.sh
install -Dm 755 %{SOURCE6} %{buildroot}%{_libexecdir}/exchange-bmc-os-info


install -Dm 644 contrib/bmc-snmp-proxy.sysconf %{buildroot}%{_sysconfdir}/sysconfig/bmc-snmp-proxy
install -Dm 644 contrib/bmc-snmp-proxy.service %{buildroot}%{_unitdir}/bmc-snmp-proxy.service
install -Dm 755 contrib/bmc-snmp-proxy         %{buildroot}%{_libexecdir}/bmc-snmp-proxy

%post -n ipmievd
%systemd_post ipmievd.service

%preun -n ipmievd
%systemd_preun ipmievd.service

%postun -n ipmievd
%systemd_postun_with_restart ipmievd.service

%post -n exchange-bmc-os-info
%systemd_post exchange-bmc-os-info.service

%preun -n exchange-bmc-os-info
%systemd_preun exchange-bmc-os-info.service

%postun -n exchange-bmc-os-info
%systemd_postun_with_restart exchange-bmc-os-info.service

%files
%{_bindir}/ipmitool
%{_mandir}/man1/ipmitool.1*
%doc %{_datadir}/doc/ipmitool
%{_datadir}/ipmitool

%files -n ipmievd
%config(noreplace) %{_sysconfdir}/sysconfig/ipmievd
%{_unitdir}/ipmievd.service
%{_sbindir}/ipmievd
%{_mandir}/man8/ipmievd.8*

%files -n exchange-bmc-os-info
%config(noreplace) %{_sysconfdir}/sysconfig/exchange-bmc-os-info
%{_sysconfdir}/profile.d/set-bmc-url.sh
%{_unitdir}/exchange-bmc-os-info.service
%{_libexecdir}/exchange-bmc-os-info

%files -n bmc-snmp-proxy
%config(noreplace) %{_sysconfdir}/sysconfig/bmc-snmp-proxy
%{_unitdir}/bmc-snmp-proxy.service
%{_libexecdir}/bmc-snmp-proxy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13319 |21mr|ipmiutil-3.1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 0

Name:      ipmiutil
Version:   3.1.7
Release:   1
Summary:   Easy-to-use IPMI server management utilities

License:   BSD
Group:     System/Kernel and hardware
Source:    http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source100: %{name}.rpmlintrc
URL:       http://ipmiutil.sourceforge.net
Requires:  systemd-units
BuildRequires: openssl-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: autoconf

%define unit_dir  %{_unitdir}
%define systemd_fls %{_datadir}/%{name}
%define init_dir  %{_initrddir}

%description
The ipmiutil package provides easy-to-use utilities to view the SEL,
perform an IPMI chassis reset, set up the IPMI LAN and Platform Event Filter
entries to allow SNMP alerts, Serial-Over-LAN console, event daemon, and 
other IPMI tasks.
These can be invoked with the metacommand ipmiutil, or via subcommand
shortcuts as well.  IPMIUTIL can also write sensor thresholds, FRU asset tags, 
and has a full IPMI configuration save/restore.
An IPMI driver can be provided by either the OpenIPMI driver (/dev/ipmi0)
or the Intel IPMI driver (/dev/imb), etc.  If used locally and no driver is
detected, ipmiutil will use user-space direct I/Os instead.

%package devel
Group:    Development/C
Summary:  Includes libraries and headers for the ipmiutil package

Provides: ipmiutil-static = %{version}-%{release}

%description devel
The ipmiutil-devel package contains headers and libraries which are
useful for building custom IPMI applications.

%prep
%setup -q

%build
export CC=gcc
export CXX=g++
autoreconf -fiv
%configure
make

%install
%makeinstall_std

%files
%dir %{_datadir}/%{name}
%dir %{_var}/lib/%{name}
%{_bindir}/ipmiutil
%{_bindir}/idiscover
%{_bindir}/ievents
%{_sbindir}/ipmi_port
%{_sbindir}/ialarms 
%{_sbindir}/iconfig
%{_sbindir}/icmd 
%{_sbindir}/ifru 
%{_sbindir}/igetevent 
%{_sbindir}/ihealth 
%{_sbindir}/ilan 
%{_sbindir}/ireset 
%{_sbindir}/isel 
%{_sbindir}/iseltime
%{_sbindir}/isensor 
%{_sbindir}/iserial 
%{_sbindir}/isol 
%{_sbindir}/iwdt 
%{_sbindir}/ipicmg 
%{_sbindir}/ifirewall 
%{_sbindir}/ifwum 
%{_sbindir}/ihpm
%{_sbindir}/iuser 
%{_datadir}/%{name}/ipmiutil_evt
%{_datadir}/%{name}/ipmiutil_asy
%{_datadir}/%{name}/ipmiutil_wdt
%{_datadir}/%{name}/ipmi_port
%{_datadir}/%{name}/ipmi_info
%{_datadir}/%{name}/checksel
%{systemd_fls}/ipmiutil_evt.service
%{systemd_fls}/ipmiutil_asy.service
%{systemd_fls}/ipmiutil_wdt.service
%{systemd_fls}/ipmi_port.service
%{_datadir}/%{name}/ipmiutil.env*
%{_datadir}/%{name}/ipmiutil.pre
%{_datadir}/%{name}/ipmiutil.setup
%{_datadir}/%{name}/ipmi_if.sh
%{_datadir}/%{name}/evt.sh
%{_datadir}/%{name}/ipmi.init.basic
%{_datadir}/%{name}/bmclanpet.mib
%{_mandir}/man?/*
%doc AUTHORS ChangeLog COPYING NEWS README TODO 
%doc doc/UserGuide

%files devel
# %{_datadir}/%{name} is used by both ipmiutil and ipmituil-devel
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/ipmi_sample.c
%{_datadir}/%{name}/ipmi_sample_evt.c
%{_datadir}/%{name}/isensor.c
%{_datadir}/%{name}/ievents.c
%{_datadir}/%{name}/isensor.h
%{_datadir}/%{name}/ievents.h
%{_datadir}/%{name}/Makefile
%{_includedir}/ipmicmd.h
%{_libdir}/libipmiutil.*


%post
# POST_INSTALL, $1 = 1 if rpm -i, $1 = 2 if rpm -U

if [ "$1" = "1" ]
then
   # doing rpm -i, first time
   vardir=%{_var}/lib/%{name}
   scr_dir=%{_datadir}/%{name}

   if [ -x /bin/systemctl ]; then
      echo "IINITDIR=%{init_dir}" >>%{_datadir}/%{name}/ipmiutil.env
      cp -f ${scr_dir}/ipmiutil_evt.service %{unit_dir}
      cp -f ${scr_dir}/ipmiutil_asy.service %{unit_dir}
      cp -f ${scr_dir}/ipmiutil_wdt.service %{unit_dir}
      cp -f ${scr_dir}/ipmi_port.service    %{unit_dir}
      # systemctl enable ipmi_port.service >/dev/null 2>&1 || :
   else 
      cp -f ${scr_dir}/ipmiutil_wdt %{init_dir}
      cp -f ${scr_dir}/ipmiutil_asy %{init_dir}
      cp -f ${scr_dir}/ipmiutil_evt %{init_dir}
      cp -f ${scr_dir}/ipmi_port    %{init_dir}
      cp -f ${scr_dir}/ipmi_info    %{init_dir}
   fi

   # Run some ipmiutil command to see if any IPMI interface works.
   %{_bindir}/ipmiutil sel -v >/dev/null 2>&1
   IPMIret=$?

   # If IPMIret==0, the IPMI cmd was successful, and IPMI is enabled locally.
   if [ $IPMIret -eq 0 ]; then
      # If IPMI is enabled, automate managing the IPMI SEL
      if [ -d %{_sysconfdir}/cron.daily ]; then
         cp -f %{_datadir}/%{name}/checksel %{_sysconfdir}/cron.daily
      fi
      # IPMI_IS_ENABLED, so enable services, but only if Red Hat
      if [ -f /etc/redhat-release ]; then
         if [ -x /bin/systemctl ]; then
            touch ${scr_dir}/ipmi_port.service
         elif [ -x /sbin/chkconfig ]; then
            /sbin/chkconfig --add ipmi_port
            /sbin/chkconfig --add ipmiutil_wdt
            /sbin/chkconfig --add ipmiutil_evt 
            /sbin/chkconfig --add ipmi_info
         fi
      fi
   
      # Capture a snapshot of IPMI sensor data once now for later reuse.
      sensorout=$vardir/sensor_out.txt
      if [ ! -f $sensorout ]; then
         %{_bindir}/ipmiutil sensor -q >$sensorout
      fi
   fi
else
   # postinstall, doing rpm update
   %{_bindir}/ipmiutil sel -v >/dev/null 2>&1
   if [ $? -eq 0 ]; then
      if [ -d %{_sysconfdir}/cron.daily ]; then
         cp -f %{_datadir}/%{name}/checksel %{_sysconfdir}/cron.daily
      fi
   fi
fi
%systemd_post  ipmiutil_evt.service
%systemd_post  ipmiutil_asy.service
%systemd_post  ipmiutil_wdt.service
%systemd_post  ipmi_port.service

%preun
# before uninstall,  $1 = 1 if rpm -U, $1 = 0 if rpm -e
if [ "$1" = "0" ]
then
   if [ -x /bin/systemctl ]; then
     if [ -f %{unit_dir}/ipmiutil_evt.service ]; then
%systemd_preun  ipmiutil_evt.service
%systemd_preun  ipmiutil_asy.service
%systemd_preun  ipmiutil_wdt.service
%systemd_preun  ipmi_port.service
     fi
   else 
     if [ -x /sbin/service ]; then
        /sbin/service ipmi_port stop       >/dev/null 2>&1
        /sbin/service ipmiutil_wdt stop    >/dev/null 2>&1
        /sbin/service ipmiutil_asy stop    >/dev/null 2>&1
        /sbin/service ipmiutil_evt stop    >/dev/null 2>&1
     fi
     if [ -x /sbin/chkconfig ]; then
        /sbin/chkconfig --del ipmi_port    >/dev/null 2>&1
        /sbin/chkconfig --del ipmiutil_wdt >/dev/null 2>&1
        /sbin/chkconfig --del ipmiutil_asy >/dev/null 2>&1
        /sbin/chkconfig --del ipmiutil_evt >/dev/null 2>&1
     fi
   fi
   if [ -f %{_sysconfdir}/cron.daily/checksel ]; then
        rm -f %{_sysconfdir}/cron.daily/checksel
   fi
fi

%postun
if [ -x /bin/systemctl ]; then
%systemd_postun_with_restart  ipmi_port.service
   if [ -f %{unit_dir}/ipmiutil_evt.service ]; then
      rm -f %{unit_dir}/ipmiutil_evt.service 
      rm -f %{unit_dir}/ipmiutil_asy.service 
      rm -f %{unit_dir}/ipmiutil_wdt.service 
      rm -f %{unit_dir}/ipmi_port.service    
   fi
else
   if [ -f %{init_dir}/ipmiutil_evt.service ]; then
      rm -f %{init_dir}/ipmiutil_wdt 2>/dev/null
      rm -f %{init_dir}/ipmiutil_asy 2>/dev/null
      rm -f %{init_dir}/ipmiutil_evt 2>/dev/null
      rm -f %{init_dir}/ipmi_port    2>/dev/null
   fi
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13320 |21mr|iproute2-6.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (oe) note: building the docs pulls in thousands of texlive packages.
%define	build_doc 0
%define	staticdevelname %mklibname %{name} -d -s
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Advanced IP routing and network device configuration tools
Name:		iproute2
Version:	6.1.0
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.linuxfoundation.org/en/Net:Iproute2
Source0:	http://www.kernel.org/pub/linux/utils/net/iproute2/%{name}-%{version}.tar.xz
Source1:	cbq-0000.example
Source2:	avpkt
Patch0:		iproute2-3.2.0-q_atm-ld-uneeded.patch
# Reverting upstream commits which removed some shell scripts
# only because these scripts were packaged in rosa2021.1,
# they are not needed in newer platforms, drop patches there!
Patch1:		0001-Revert-ip-remove-ifcfg-script.patch
Patch2:		0002-Revert-ip-remove-routef-script.patch
Patch3:		0003-Revert-ip-remove-old-rtpr-script.patch

BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	kernel-headers
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
%if %{build_doc}
BuildRequires:	linuxdoc-tools
BuildRequires:	texlive
BuildRequires:	texlive-fonts
BuildRequires:	texlive-ec
BuildRequires:	texlive-url
%endif
BuildRequires:	pkgconfig(xtables)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(libbpf)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libmnl)
BuildRequires:	pkgconfig(libtirpc)
Requires:	iputils
Provides:	iproute = %{EVRD}

%description
The iproute package contains networking utilities (ip, tc and rtmon, for
example) which are designed to use the advanced networking capabilities of the
Linux 2.2.x kernels and later,  such as policy routing, fast NAT and packet
scheduling.

%files
%dir %{_sysconfdir}/iproute2
%dir %{_sysconfdir}/setns
%config(noreplace) %{_sysconfdir}/iproute2/*
/sbin/bridge
/sbin/ctstat
/sbin/dcb
/sbin/devlink
/sbin/genl
/sbin/ifcfg
/sbin/ifstat
/sbin/ip
/sbin/lnstat
/sbin/nstat
/sbin/rdma
/sbin/routef
/sbin/routel
/sbin/rtacct
/sbin/rtmon
/sbin/rtpr
/sbin/rtstat
/sbin/ss
/sbin/tipc
/sbin/vdpa
%{_bindir}/ip
%{_bindir}/lnstat
%{_bindir}/nstat
%{_bindir}/routel
%{_bindir}/rtmon
%{_bindir}/ss
%{_mandir}/man3/*
%{_mandir}/man7/*
%{_mandir}/man8/*
%exclude %{_mandir}/man7/tc-*
%exclude %{_mandir}/man8/tc*

#-----------------------------------------------------------------------------

%package -n %{staticdevelname}
Summary:	Development files for iproute2
Group:		Development/C
Provides:	iproute2-devel = %{version}-%{release}

%description -n	%{staticdevelname}
The iproute package contains networking utilities (ip, tc and rtmon, for
example) which are designed to use the advanced networking capabilities of the
Linux 2.2.x kernels and later,  such as policy routing, fast NAT and packet
scheduling.
This package contains development files for iproute2.

%files -n %{staticdevelname}
%{_includedir}/*.h
%{_includedir}/%{name}
%{_libdir}/*.a

#-----------------------------------------------------------------------------

%package tc
Summary:	Linux Traffic Control utility
Group:		Networking/Other
License:	GPLv2+
Provides:	iproute-tc = %{EVRD}
Requires:	%{name} = %{EVRD}

%description tc
The Traffic Control utility manages queueing disciplines, their classes and
attached filters and actions. It is the standard tool to configure QoS in
Linux.

%files tc
%dir %{_sysconfdir}/sysconfig/cbq
%config(noreplace) %{_sysconfdir}/sysconfig/cbq/*
%{_datadir}/bash-completion/completions/tc
%{_datadir}/bash-completion/completions/devlink
%{_mandir}/man7/tc-*
%{_mandir}/man8/tc*
%{_libdir}/tc
/sbin/tc
%{_bindir}/tc

#-----------------------------------------------------------------------------

%if %{build_doc}
%package doc
Summary:	Documentation for IP routing and network configuration tools
Group:		Networking/Other

%description doc
Documentation for iproute2.

%files doc
%doc README README.iproute2+tc README.decnet README.lnstat
%if %{build_doc}
%doc doc/*.dvi doc/*.ps
%endif
%doc doc/Plan
%doc %{_docdir}/%{name}-%{version}/*.sgml
%doc %{_docdir}/%{name}-%{version}/*.tex
%doc %{_docdir}/%{name}-%{version}/examples
%endif

#-----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i "s/_VERSION_/%{version}/" man/man8/ss.8

%build
%serverbuild
%configure
%make_build

# Doc generation fails with -j24 (ecrm1000 used before generation)
%if %{build_doc}
make -C doc
%endif

%install
export SBINDIR=/sbin
export LIBDIR=%{_libdir}
%make_install

# development files
install -d %{buildroot}%{_includedir}
install -m0644 lib/libnetlink.a %{buildroot}/%{_libdir}/
install -m0644 include/libnetlink.h %{buildroot}%{_includedir}/

# Config files
#install -m644 etc/iproute2/* %{buildroot}%{_sysconfdir}/iproute2
mkdir -p %{buildroot}%{_sysconfdir}/setns

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/cbq
install -m644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/cbq

# (From ALT) symlinks for unprivileged users
mkdir -p %{buildroot}%{_bindir}
for prg in ip rtmon tc lnstat nstat routel ss
do
	[ -f %{buildroot}/sbin/$prg ]
	ln -rs %{buildroot}/sbin/$prg %{buildroot}%{_bindir}/
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13321 |21mr|ipset-7.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 13
%define libname %mklibname ipset %{major}
%define devname %mklibname ipset -d

Summary:	Tools for managing sets of IP or ports with iptables
Name:		ipset
Version:	7.11
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://ipset.netfilter.org/
Source0:	http://ipset.netfilter.org/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libmnl)
BuildRequires:	kernel-devel

%description
IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which can be
administered by the ipset utility. Depending on the type, currently an IP set
may store IP addresses, (TCP/UDP) port numbers or IP addresses with MAC
addresses in a way, which ensures lightning speed when matching an entry
against a set.

ipset may be the proper tool for you, if you want to

 o store multiple IP addresses or port numbers and match against the collection
   by iptables at one swoop;

 o dynamically update iptables rules against IP addresses or ports without
   performance penalty;

 o express complex IP address and ports based rulesets with one single iptables
   rule and benefit from the speed of IP sets

%files
%doc ChangeLog ChangeLog.ippool
%{_sbindir}/ipset
%{_mandir}/man8/ipset.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for managing sets of IP or ports with iptables
Group:		System/Libraries

%description -n %{libname}
IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which can be
administered by the ipset utility. Depending on the type, currently an IP set
may store IP addresses, (TCP/UDP) port numbers or IP addresses with MAC
addresses in a way, which ensures lightning speed when matching an entry
against a set.

This package provides the shared library for managing sets of IP or ports with
iptables.

%files -n %{libname}
%dir %{_libdir}/ipset
%{_libdir}/libipset.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and static lib for ipset development
Group:		Development/C
%rename		ipset-devel

%description -n %{devname}
IP sets are a framework inside the Linux 2.4.x and 2.6.x kernel, which can be
administered by the ipset utility. Depending on the type, currently an IP set
may store IP addresses, (TCP/UDP) port numbers or IP addresses with MAC
addresses in a way, which ensures lightning speed when matching an entry
against a set.

Install this package if you want do compile applications using the ipset
library.

%files -n %{devname}
%dir %{_includedir}/libipset
%{_includedir}/libipset/*
%{_libdir}/libipset.so
%{_libdir}/pkgconfig/libipset.pc
%{_mandir}/man3/libipset.3*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
KERNEL=$(ls -1d --sort=time %{_usrsrc}/linux-*-*-* |head -n1)

%configure \
    --with-kbuild=$KERNEL \
    --disable-static \
    --enable-shared \
    --disable-ltdl-install \
    --enable-settype-modules \
    --with-kmod=yes

%make

%install
%makeinstall_std

install -d %{buildroot}%{_libdir}/ipset

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13322 |21mr|iptables-1.8.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# install init scripts to /usr/libexec with systemd
%global script_path %{_libexecdir}/iptables

# service legacy actions (RHBZ#748134)
%global legacy_actions %{_libexecdir}/initscripts/legacy-actions

%define major 12
%define libname %mklibname xtables %{major}
%define iptlibname %mklibname iptables %{major}
%define develname %mklibname -d iptables
%define iptdevelname %mklibname -d iptables

%define iptc_develname %mklibname -d iptc

%define ipq_major 0
%define ipq_libname %mklibname ipq %{ipq_major}
%define ipq_develname %mklibname -d ipq

%define ip4tc_major 2
%define ip4tc_libname %mklibname ip4tc %{ip4tc_major}
%define ip4tc_develname %mklibname -d ip4tc

%define ip6tc_major 2
%define ip6tc_libname %mklibname ip6tc %{ip6tc_major}
%define ip6tc_develname %mklibname -d ip6tc

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Tools for managing Linux kernel packet filtering capabilities
Name:		iptables
Version:	1.8.7
Release:	4
# pf.os: ISC license
# iptables-apply: Artistic Licence 2.0
License:	GPLv2 and Artistic Licence 2.0 and ISC
Group:		System/Kernel and hardware
Url:		http://www.netfilter.org/projects/iptables
Source0:	%{url}/files/%{name}-%{version}.tar.bz2
Source1:	iptables.init
Source2:	iptables-config
Source3:	iptables.service
Source4:	sysconfig_iptables
Source5:	sysconfig_ip6tables
Source6:	arptables-nft-helper

# libnetfilter_conntrack is needed for xt_connlabel
BuildRequires:	pkgconfig(libnetfilter_conntrack)
# libnfnetlink-devel is requires for nfnl_osf
BuildRequires:	pkgconfig(libnfnetlink)
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	kernel-headers
BuildRequires:	systemd
# libmnl, libnftnl, bison, flex for nftables
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gcc
BuildRequires:	pkgconfig(libmnl) >= 1.0
BuildRequires:	pkgconfig(libnftnl) >= 1.1.5
# libpcap-devel for nfbpf_compile
BuildRequires:	pcap-devel
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool

%description
The iptables utility controls the network packet filtering code in the
Linux kernel. If you need to set up firewalls and/or IP masquerading,
you should install this package.

#-------------------------------------------------------------------------------

%package legacy
Summary:	iptables firewall utils using legacy kernel APIs
Requires(post):	%{_sbindir}/update-alternatives
Requires(postun):	%{_sbindir}/update-alternatives
Provides:	userspace-ipfilter = %{version}
Requires:	%{name}-services
Requires:	xtables-plugins = %{EVRD}
# renamed, but obsoleting if done by -nft subpackage
Conflicts:	iptables < 1.8.7-3

%description legacy
The iptables utility controls the network packet filtering code in the
Linux kernel, using legacy API.

%package -n %{libname}
Summary:	Shared iptables library
Group:		System/Libraries
Conflicts:	%mklibname %{name} 1
# Some other distros name the libxtables package libiptables.
# Let's remain compatible...
# (rename = Obsoletes + Provides)
%rename %{iptlibname}

%description -n %{libname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the shared iptables library.

%package -n %{develname}
Summary:	Static library and header files for the iptables library
Group:		Development/C
Requires:	kernel-headers
Requires:	%{libname} = %{EVRD}
Provides:	iptables-devel = %{version}
Obsoletes:	iptables-devel < 1.4.2
# Some other distros name the libxtables package libiptables.
# Let's remain compatible...
# (rename = Obsoletes + Provides)
%rename %{iptdevelname}

%description -n %{develname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the static iptables library.

# ipq
%package -n %{ipq_libname}
Summary:	Shared iptables library
Group:		System/Libraries
Obsoletes:	%{mklibname iptables 1} < 1.4.3.2

%description -n	%{ipq_libname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the ipq library.

%package -n %{ipq_develname}
Summary:	Static library and header files for the iptables library
Group:		Development/C
Requires:	kernel-headers
Requires:	%{ipq_libname} = %{EVRD}
Requires:	%{ipq_develname} = %{EVRD}
Provides:	iptables-ipq-devel = %{version}

%description -n %{ipq_develname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the ipq library.

#iptc
%package -n %{iptc_develname}
Summary:	Static library and header files for the iptables library
Group:		Development/C
Requires:	kernel-headers
Provides:	iptables-iptc-devel = %{version}

%description -n	%{iptc_develname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the IPTC library.

# ip4tc
%package -n %{ip4tc_libname}
Summary:	Shared iptables library
Group:		System/Libraries
Obsoletes:	%{mklibname iptables 1} < 1.4.3.2

%description -n %{ip4tc_libname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the IP4TC library.

%package -n %{ip4tc_develname}
Summary:	Static library and header files for the iptables library
Group:		Development/C
Requires:	kernel-headers
Requires:	%{ip4tc_libname} = %{EVRD}
Requires:	%{iptc_develname} = %{EVRD}
Provides:	iptables-ip6tc-devel = %{version}

%description -n %{ip4tc_develname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the development files for IPTC library.

# ip6tc
%package -n %{ip6tc_libname}
Summary:	Shared iptables library
Group:		System/Libraries
Obsoletes:	%{mklibname iptables 1} < 1.4.3.2

%description -n %{ip6tc_libname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the IP6TC library.

%package -n %{ip6tc_develname}
Summary:	Static library and header files for the iptables library
Group:		Development/C
Requires:	kernel-headers
Requires:	%{ip6tc_libname} = %{EVRD}
Provides:	iptables-ip6tc-devel = %{version}

%description -n %{ip6tc_develname}
iptables controls the Linux kernel network packet filtering code. It allows you
to set up firewalls and IP masquerading, etc.

This package contains the development files for IP6TC library.

%package services
Summary:	iptables and ip6tables services for iptables
Requires:	%{name} = %{EVRD}
%{?systemd_ordering}
# obsolete old main package
Obsoletes:	%{name} < 1.8.4-1
# obsolete ipv6 sub package
Obsoletes:	%{name}-ipv6 < 1.4.11.1
Provides:	%{name}-ipv6 = %{EVRD}

%description services
iptables services for IPv4 and IPv6

This package provides the services iptables and ip6tables that have been split
out of the base package since they are not active by default anymore.

%package utils
Summary:	iptables and ip6tables services for iptables
Requires:	%{name} = %{EVRD}

%description utils
Utils for iptables

This package provides nfnl_osf with the pf.os database and nfbpf_compile,
a bytecode generator for use with xt_bpf.

%package nft
Summary:	nftables compatibility for iptables, arptables and ebtables
Requires(post):	%{_sbindir}/update-alternatives
Requires(postun):	%{_sbindir}/update-alternatives
Requires:	%{name}-services
Requires:	xtables-plugins = %{EVRD}
Provides:	arptables-helper = %{EVRD}
Provides:	ebtables = %{EVRD}
# replacy iptables which was renamed to iptables-legacy
# to make nft variant be the default one in rosa2021.1+
Obsoletes:	iptables < 1.8.7-3
Provides:	iptables = %{EVRD}

%description nft
nftables compatibility for iptables, arptables and ebtables.

%package -n xtables-plugins
Summary:	xtables plugins
# files were in iptables, then in iptables-legacy, then were moved here
Conflicts:	iptables-legacy < 1.8.7-4
Conflicts:	iptables < 1.8.7-3

%description -n xtables-plugins
xtables plugins used by iptables

%prep
%autosetup -p1

%build
./autogen.sh
CFLAGS="%{optflags} -fno-strict-aliasing " \
%configure \
	--enable-devel \
	--enable-bpf-compiler \
	--with-xtlibdir=%{_libdir}/xtables \
	--with-ksource=%{_prefix}/src/linux \
	--enable-libipq

# do not use rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

rm -f include/linux/types.h

%make_build

%install
%make_install
# remove la file(s)
rm -f %{buildroot}/%{_libdir}/*.la

# install ip*tables.h header files
install -m 644 include/ip*tables.h %{buildroot}%{_includedir}/
install -d -m 755 %{buildroot}%{_includedir}/iptables
install -m 644 include/iptables/internal.h %{buildroot}%{_includedir}/iptables/

# header development files
install -d %{buildroot}%{_includedir}/{libipq,libiptc,libipulog}
install -m0644 include/libipq/*.h %{buildroot}%{_includedir}/libipq/
install -m0644 include/libiptc/*.h %{buildroot}%{_includedir}/libiptc/
install -m0644 include/libipulog/*.h %{buildroot}%{_includedir}/libipulog/

# install ipulog header file
install -d -m 755 %{buildroot}%{_includedir}/libipulog/
install -m 644 include/libipulog/*.h %{buildroot}%{_includedir}/libipulog/

# install init scripts and configuration files
install -d -m 755 %{buildroot}%{script_path}
install -c -m 755 %{SOURCE1} %{buildroot}%{script_path}/iptables.init
sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE1} > ip6tables.init
install -c -m 755 ip6tables.init %{buildroot}%{script_path}/ip6tables.init
install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
install -c -m 600 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/iptables-config
sed -e 's;iptables;ip6tables;g' -e 's;IPTABLES;IP6TABLES;g' < %{SOURCE2} > ip6tables-config
install -c -m 600 ip6tables-config %{buildroot}%{_sysconfdir}/sysconfig/ip6tables-config
install -c -m 600 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/iptables
install -c -m 600 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/ip6tables

# install systemd service files
install -d -m 755 %{buildroot}/%{_unitdir}
install -c -m 644 %{SOURCE3} %{buildroot}/%{_unitdir}
sed -e 's;iptables;ip6tables;g' -e 's;IPv4;IPv6;g' -e 's;/usr/libexec/ip6tables;/usr/libexec/iptables;g' < %{SOURCE3} > ip6tables.service
install -c -m 644 ip6tables.service %{buildroot}/%{_unitdir}

# install legacy actions for service command
install -d %{buildroot}/%{legacy_actions}/iptables
install -d %{buildroot}/%{legacy_actions}/ip6tables

cat << EOF > %{buildroot}/%{legacy_actions}/iptables/save
#!/bin/bash
exec %{script_path}/iptables.init save
EOF
chmod 755 %{buildroot}/%{legacy_actions}/iptables/save
sed -e 's;iptables.init;ip6tables.init;g' -e 's;IPTABLES;IP6TABLES;g' < %{buildroot}/%{legacy_actions}/iptables/save > ip6tabes.save-legacy
install -c -m 755 ip6tabes.save-legacy %{buildroot}/%{legacy_actions}/ip6tables/save

cat << EOF > %{buildroot}/%{legacy_actions}/iptables/panic
#!/bin/bash
exec %{script_path}/iptables.init panic
EOF
chmod 755 %{buildroot}/%{legacy_actions}/iptables/panic
sed -e 's;iptables.init;ip6tables.init;g' -e 's;IPTABLES;IP6TABLES;g' < %{buildroot}/%{legacy_actions}/iptables/panic > ip6tabes.panic-legacy
install -c -m 755 ip6tabes.panic-legacy %{buildroot}/%{legacy_actions}/ip6tables/panic

# install iptables-apply with man page
install -m 755 iptables/iptables-apply %{buildroot}%{_sbindir}/
install -m 644 iptables/iptables-apply.8 %{buildroot}%{_mandir}/man8/

rm -f %{buildroot}%{_sysconfdir}/ethertypes

install -p -D -m 755 %{SOURCE6} %{buildroot}%{_libexecdir}/
touch %{buildroot}%{_libexecdir}/arptables-helper

# prepare for alternatives
touch %{buildroot}%{_mandir}/man8/arptables.8
touch %{buildroot}%{_mandir}/man8/arptables-save.8
touch %{buildroot}%{_mandir}/man8/arptables-restore.8
touch %{buildroot}%{_mandir}/man8/ebtables.8

%post legacy
pfx=%{_sbindir}/iptables
pfx6=%{_sbindir}/ip6tables
%{_sbindir}/update-alternatives --install \
	$pfx iptables $pfx-legacy 10 \
	--slave $pfx6 ip6tables $pfx6-legacy \
	--slave $pfx-restore iptables-restore $pfx-legacy-restore \
	--slave $pfx-save iptables-save $pfx-legacy-save \
	--slave $pfx6-restore ip6tables-restore $pfx6-legacy-restore \
	--slave $pfx6-save ip6tables-save $pfx6-legacy-save

%postun legacy
if [ $1 -eq 0 ]; then
	%{_sbindir}/update-alternatives --remove \
		iptables %{_sbindir}/iptables-legacy
fi

%post services
%systemd_post iptables.service ip6tables.service

%preun services
%systemd_preun iptables.service ip6tables.service

%post nft
pfx=%{_sbindir}/iptables
pfx6=%{_sbindir}/ip6tables
%{_sbindir}/update-alternatives --install \
	$pfx iptables $pfx-nft 20 \
	--slave $pfx6 ip6tables $pfx6-nft \
	--slave $pfx-restore iptables-restore $pfx-nft-restore \
	--slave $pfx-save iptables-save $pfx-nft-save \
	--slave $pfx6-restore ip6tables-restore $pfx6-nft-restore \
	--slave $pfx6-save ip6tables-save $pfx6-nft-save

pfx=%{_sbindir}/ebtables
manpfx=%{_mandir}/man8/ebtables
for sfx in "" "-restore" "-save"; do
	if [ "$(readlink -e $pfx$sfx)" == $pfx$sfx ]; then
		rm -f $pfx$sfx
	fi
done
if [ "$(readlink -e $manpfx.8%{_extension})" == $manpfx.8%{_extension} ]; then
	rm -f $manpfx.8%{_extension}
fi
%{_sbindir}/update-alternatives --install \
	$pfx ebtables $pfx-nft 20 \
	--slave $pfx-save ebtables-save $pfx-nft-save \
	--slave $pfx-restore ebtables-restore $pfx-nft-restore \
	--slave $manpfx.8%{_extension} ebtables-man $manpfx-nft.8%{_extension}

pfx=%{_sbindir}/arptables
manpfx=%{_mandir}/man8/arptables
lepfx=%{_libexecdir}/arptables
for sfx in "" "-restore" "-save"; do
	if [ "$(readlink -e $pfx$sfx)" == $pfx$sfx ]; then
		rm -f $pfx$sfx
	fi
	if [ "$(readlink -e $manpfx$sfx.8%{_extension})" == $manpfx$sfx.8%{_extension} ]; then
		rm -f $manpfx$sfx.8%{_extension}
	fi
done
if [ "$(readlink -e $lepfx-helper)" == $lepfx-helper ]; then
	rm -f $lepfx-helper
fi
%{_sbindir}/update-alternatives --install \
	$pfx arptables $pfx-nft 20 \
	--slave $pfx-save arptables-save $pfx-nft-save \
	--slave $pfx-restore arptables-restore $pfx-nft-restore \
	--slave $manpfx.8%{_extension} arptables-man $manpfx-nft.8%{_extension} \
	--slave $manpfx-save.8%{_extension} arptables-save-man $manpfx-nft-save.8%{_extension} \
	--slave $manpfx-restore.8%{_extension} arptables-restore-man $manpfx-nft-restore.8%{_extension} \
	--slave $lepfx-helper arptables-helper $lepfx-nft-helper

%postun nft
if [ $1 -eq 0 ]; then
	for cmd in iptables ebtables arptables; do
		%{_sbindir}/update-alternatives --remove \
			$cmd %{_sbindir}/$cmd-nft
	done
fi

%files legacy
%license COPYING
%doc INCOMPATIBILITIES
%{_sbindir}/iptables-apply
%{_sbindir}/ip6tables-apply
%{_sbindir}/iptables-legacy*
%{_sbindir}/ip6tables-legacy*
%{_sbindir}/xtables-legacy-multi
%{_bindir}/iptables-xml
%{_mandir}/man1/iptables-xml*
%{_mandir}/man8/iptables*
%{_mandir}/man8/ip6tables*
%{_mandir}/man8/xtables-legacy*
%ghost %{_sbindir}/iptables
%ghost %{_sbindir}/iptables-restore
%ghost %{_sbindir}/iptables-save
%ghost %{_sbindir}/ip6tables
%ghost %{_sbindir}/ip6tables-restore
%ghost %{_sbindir}/ip6tables-save

%files -n %{ipq_libname}
%license COPYING
%{_libdir}/libipq.so.*

%files -n %{ip4tc_libname}
%license COPYING
%{_libdir}/libip4tc.so.*

%files -n %{ip6tc_libname}
%license COPYING
%{_libdir}/libip6tc.so.*

%files -n %{libname}
%license COPYING
%{_libdir}/libxtables.so.%{major}*

%files -n %{develname}
%license COPYING
%{_includedir}/*.h
%dir %{_includedir}/libipq
%dir %{_includedir}/libipulog
%{_includedir}/libipq/*.h
%{_includedir}/libipulog/*.h
%{_includedir}/iptables/*.h
%{_libdir}/libxtables.so
%{_libdir}/pkgconfig/xtables.pc

%files -n %{ipq_develname}
%license COPYING
%{_includedir}/libipq/*.h
%{_libdir}/pkgconfig/libipq.pc
%dir %{_includedir}/libipq
%{_libdir}/libipq.so
%{_mandir}/man3/*ipq*

%files -n %{iptc_develname}
%license COPYING
%{_includedir}/libiptc/*.h
%dir %{_includedir}/libiptc
%{_libdir}/pkgconfig/libiptc.pc

%files -n %{ip4tc_develname}
%license COPYING
%{_libdir}/libip4tc.so
%{_libdir}/pkgconfig/libip4tc.pc

%files -n %{ip6tc_develname}
%license COPYING
%{_libdir}/libip6tc.so
%{_libdir}/pkgconfig/libip6tc.pc

%files services
%license COPYING
%dir %{script_path}
%{script_path}/iptables.init
%{script_path}/ip6tables.init
%config(noreplace) %{_sysconfdir}/sysconfig/iptables
%config(noreplace) %{_sysconfdir}/sysconfig/ip6tables
%config(noreplace) %{_sysconfdir}/sysconfig/iptables-config
%config(noreplace) %{_sysconfdir}/sysconfig/ip6tables-config
%{_unitdir}/iptables.service
%{_unitdir}/ip6tables.service
%dir %{legacy_actions}/iptables
%{legacy_actions}/iptables/save
%{legacy_actions}/iptables/panic
%dir %{legacy_actions}/ip6tables
%{legacy_actions}/ip6tables/save
%{legacy_actions}/ip6tables/panic

%files utils
%license COPYING
%{_sbindir}/nfnl_osf
%{_sbindir}/nfbpf_compile
%dir %{_datadir}/xtables
%{_datadir}/xtables/pf.os
%{_mandir}/man8/nfnl_osf*
%{_mandir}/man8/nfbpf_compile*

%files nft
%license COPYING
%doc INCOMPATIBILITIES
%{_sbindir}/iptables-nft*
%{_sbindir}/iptables-restore-translate
%{_sbindir}/iptables-translate
%{_sbindir}/ip6tables-nft*
%{_sbindir}/ip6tables-restore-translate
%{_sbindir}/ip6tables-translate
%{_sbindir}/ebtables-nft*
%{_sbindir}/arptables-nft*
%{_sbindir}/xtables-nft-multi
%{_sbindir}/xtables-monitor
%{_libexecdir}/arptables-nft-helper
%{_mandir}/man8/xtables-monitor*
%{_mandir}/man8/xtables-translate*
%{_mandir}/man8/*-nft*
%ghost %{_sbindir}/iptables
%ghost %{_sbindir}/iptables-restore
%ghost %{_sbindir}/iptables-save
%ghost %{_sbindir}/ip6tables
%ghost %{_sbindir}/ip6tables-restore
%ghost %{_sbindir}/ip6tables-save
%ghost %{_sbindir}/ebtables
%ghost %{_sbindir}/ebtables-save
%ghost %{_sbindir}/ebtables-restore
%ghost %{_sbindir}/arptables
%ghost %{_sbindir}/arptables-save
%ghost %{_sbindir}/arptables-restore
%ghost %{_libexecdir}/arptables-helper
%ghost %{_mandir}/man8/arptables.8.*
%ghost %{_mandir}/man8/arptables-save.8.*
%ghost %{_mandir}/man8/arptables-restore.8.*
%ghost %{_mandir}/man8/ebtables.8.*

%files -n xtables-plugins
%license COPYING
%dir %{_libdir}/xtables
%{_libdir}/xtables/libarpt*
%{_libdir}/xtables/libebt*
%{_libdir}/xtables/libipt*
%{_libdir}/xtables/libip6t*
%{_libdir}/xtables/libxt*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13323 |21mr|iptraf-ng-1.1.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

Summary:	TCP/IP Network Monitor
Name:		iptraf-ng
Version:	1.1.4
Release:	3
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		https://fedorahosted.org/iptraf-ng
# From SUSE 1.1.4 SRPM, in fact
Source0:	https://fedorahosted.org/releases/i/p/iptraf-ng/%{name}-%{version}.tar.xz
BuildRequires:	kernel-headers
BuildRequires:	pkgconfig(ncurses)
Patch0:		build-use-wide-version-of-lpanel-when-needed.patch
Patch1:		iptraf-ng-1.1.4-fix-Floating-point-exception-in-tcplog_flowra.patch
Obsoletes:	iptraf < 3.0.1-10

%description
IPTraf-ng is a console-based network statistics utility. It gathers a
variety of information such as TCP connection packet and byte counts,
interface statistics and activity indicators, TCP/UDP traffic
breakdowns, and LAN station packet and byte counts.

%files
%{_sbindir}/*
%{_mandir}/man*/*
%{_var}/lib/iptraf-ng

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure
%make

%install
%makeinstall_std
install -d -m 0755 %{buildroot}/var/lib/iptraf-ng

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13324 |21mr|ipt-so-1.0-0.gitcb31b1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit cb31b16987e4f160d65806ddeb2726febd6c547d
%define commit_short %(echo %{commit} | head -c 6)

Summary:		Iptables match for Security Options (IPSO) labels from Astra Linux
Name:			ipt-so
License:		GPLv2
Group:			System/Kernel and hardware
Version:		1.0
Release:		0.git%{commit_short}.1
Url:			https://github.com/vt-alt/ipt-so
Source0:		https://github.com/vt-alt/ipt-so/archive/%{commit}.tar.gz?/%{name}-%{commit}.tag.gz
BuildRequires:	pkgconfig(xtables)
# macro %%_modulesloaddir
BuildRequires:	pkgconfig(systemd)

%description
%{summary}
Userspace part, xtables module and config to autoload kernel module.

%files
%doc README.md
%{_libdir}/xtables/libxt_so.so
%{_modulesloaddir}/ipt-so.conf
#-----------------------------------------------------------------

%package -n kernel-source-ipt-so
Summary:		Source code of ipt-so kernel module
Group:			System/Kernel and hardware
BuildArch:		noarch
# #include <xtables.h>
Requires:		pkgconfig(xtables)

%description -n kernel-source-ipt-so
%{summary}
Source code of ipt-so kernel module.

%files -n kernel-source-ipt-so
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*.c
%{_usr}/src/%{name}-%{version}-%{release}/*.h
%{_usr}/src/%{name}-%{version}-%{release}/Makefile
#-----------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}
%apply_patches

%build
make libxt_so.so VERSION=%{version} CFLAGS="%{optflags}"

%install
make install-lib DESTDIR=%{buildroot}

mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
( cd %{buildroot}%{_usr}/src/
  tar -xf %{SOURCE0}
  mkdir -p %{name}-%{version}-%{release}
  mv -v %{name}-%{commit}/* %{name}-%{version}-%{release}/
  rm -fvr %{name}-%{version}-%{release}/{.gear-rules,tests.sh,libxt_so.t,README.md}
)
rm -fvr %{buildroot}%{_usr}/src/%{name}-%{commit}

mkdir -p %{buildroot}%{_modulesloaddir}
echo xt_so > %{buildroot}%{_modulesloaddir}/ipt-so.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13325 |21mr|iputils-20221126-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global sysctl_conf_file %{_sysctldir}/70-iputils.conf
%global ping_real_dir %{_libexecdir}/ping

Summary:	Network monitoring tools including ping
Name:		iputils
Version:	20221126
Release:	1
License:	BSD
Group:		System/Base
URL:		https://github.com/iputils/iputils
Source0:	https://github.com/iputils/iputils/archive/%{version}.tar.gz?/iputils-%{version}.tar.gz
# ifenslave.c seems to come from linux-2.6.25/Documentation/networking/ifenslave.c
Source1:	ifenslave.c
# bonding.txt seems to come from linux-2.6.25/Documentation/networking/bonding.txt
Source2:	bonding.txt
Source3:	ifenslave.8
Source4:	bin.ping.apparmor
%ifarch riscv64
BuildRequires:	atomic-devel
%endif
BuildRequires:	docbook-style-xsl-ns
BuildRequires:	docbook-dtd31-sgml
BuildRequires:	perl-SGMLSpm >= 1.1-2
BuildRequires:	cap-devel
BuildRequires:	libcap-utils
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	xsltproc
BuildRequires:	docbook-style-xsl
BuildRequires:	meson
BuildRequires:	cmake
OrderWithRequires:	libcap-utils
Obsoletes:	iputils-ninfod <= 20210202

%description
The iputils package contains ping, a basic networking tool. The ping command
sends a series of ICMP protocol ECHO_REQUEST packets to a specified network
host and can tell you if that machine is alive and receiving network traffic.

%package ninfod
Summary:	Node Information Query Daemon
Group:		System/Base
Requires:	%{name} = %{EVRD}

%description ninfod
Node Information Query (RFC4620) daemon. Responds to IPv6 Node Information
Queries.

%prep
%setup -q

cp %{SOURCE1} .
cp %{SOURCE2} .
cp %{SOURCE3} .

%autopatch -p1

%build
%serverbuild_hardened

%meson -Dsystemdunitdir="%{_unitdir}" -DINSTALL_SYSTEMD_UNITS=TRUE
%meson_build

%make_build ifenslave CFLAGS="%{optflags} -fPIC"

%install
%meson_install
mkdir -p %{buildroot}{%{_sbindir},/sbin,%{_mandir}/man8,%{ping_real_dir}}
mv %{buildroot}%{_bindir}/ping %{buildroot}%{ping_real_dir}
ln -sf %{ping_real_dir}/ping %{buildroot}%{_bindir}/ping
ln -sf %{ping_real_dir}/ping %{buildroot}%{_sbindir}/ping
ln -sf %{ping_real_dir}/ping %{buildroot}%{_sbindir}/ping6
ln -sf %{_bindir}/tracepath %{buildroot}%{_sbindir}/tracepath

# (tpg) compat symlink
ln -sf %{_bindir}/arping %{buildroot}/sbin/arping
ln -sf %{_bindir}/arping %{buildroot}%{_sbindir}/arping
ln -sf %{_bindir}/clockdiff %{buildroot}%{_sbindir}/clockdiff

mkdir -p %{buildroot}%{_sysctldir}
touch %{buildroot}%{sysctl_conf_file}

install -cp ifenslave %{buildroot}%{_sbindir}/
install -cp ifenslave.8 %{buildroot}%{_mandir}/man8/

# apparmor profile
mkdir -p %{buildroot}%{_sysconfdir}/apparmor.d/
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/apparmor.d/bin.ping

%find_lang %{name}

%pre
groupadd -r -f iputils
useradd -r -g iputils -d /dev/null -s /dev/null -N iputils >/dev/null 2>&1 ||:
groupadd -r -f netadmin

if [ -x %{_sbindir}/control-dump ]; then
	control-dump ping ||:
fi

%post
if [ -x /usr/sbin/setcap ]; then
    setcap cap_net_raw+ep %{ping_real_dir}/ping ||:
fi

# net.ipv4.ping_group_range controls both IPv4 and IPv6 sockets
if [ ! -e %{sysctl_conf_file} ]; then
	ALLOW_GID="$(getent group iputils | cut -f3 -d:)" ||:
	if [ -n "$ALLOW_GID" ]; then
		cat >%{sysctl_conf_file} <<EOF
# Allow ping socket creation for group iputils
net.ipv4.ping_group_range = $ALLOW_GID $ALLOW_GID
EOF
		sysctl -p %{sysctl_conf_file} ||:
	fi
fi

if [ -x %{_sbindir}/control-restore ]; then
	control-restore ping ||:
fi

%files -f %{name}.lang
%doc README.md bonding.txt
%config(noreplace) %{_sysconfdir}/apparmor.d/bin.ping
%attr(0755,root,root) %{_bindir}/clockdiff
%attr(0755,root,root) %{_bindir}/arping
%dir %attr(0755,root,netadmin) %verify(not mode) %{ping_real_dir}
%attr(2755,root,iputils) %{ping_real_dir}/ping
%ghost %{sysctl_conf_file}
%{_bindir}/ping
%{_bindir}/tracepath
/sbin/arping
%{_sbindir}/arping
%{_sbindir}/clockdiff
%{_sbindir}/ifenslave
%{_sbindir}/ping
%{_sbindir}/ping6
%{_sbindir}/tracepath
%attr(644,root,root) %{_mandir}/man8/clockdiff.8.*
%attr(644,root,root) %{_mandir}/man8/arping.8.*
%attr(644,root,root) %{_mandir}/man8/ping.8.*
%attr(644,root,root) %{_mandir}/man8/tracepath.8.*
%attr(644,root,root) %{_mandir}/man8/ifenslave.8.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13326 |21mr|ipv6calc-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to manipulate IPv6 addresses
Name:		ipv6calc
Version:	3.0.0
Release:	1
License:	GPLv2+
Group:		System/Base
Url:		http://www.deepspace6.net/projects/ipv6calc.html
Source0:	https://github.com/pbiering/ipv6calc/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		ipv6calc-3.0.0-dont-update-anything.patch
BuildRequires:	perl-XML-Simple
BuildRequires:	wget
BuildRequires:	pkgconfig(geoip)
Requires:	geoip

%description
ipv6calc is a small but powerful utility written in the C programming language
to manipulate (not only) IPv6 addresses. ipv6calc allows the users to convert a
given IPv6 address to the compressed format or to the format used by
/proc/net/if_inet6. ipv6calc is also the replacement of the old ip6_int Perl
program.

%files
%doc CREDITS README TODO USAGE doc/ipv6calc.html installed-docs/*
%{_bindir}/ipv6*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_mandir}/man8/*.8*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS=-Wl,--allow-multiple-definition
export CFLAGS=-Wno-error
%configure \
	--enable-geoip \
	--with-geoip-ipv4-default-file=%{_datadir}/GeoIP/GeoIP.dat

# update databases (for now disabled by patch)
%make update

%make

%install
%makeinstall_std

## Install examples and helper files to temporary dir
## to be tagged as docs
mkdir -p installed-docs

# ipv6logconv
mkdir -p installed-docs/ipv6logconv
cp -r examples/analog/* installed-docs/ipv6logconv

# ipv6loganon
mkdir -p installed-docs/ipv6loganon
cp ipv6loganon/README installed-docs/ipv6loganon/

# ipv6logstats
mkdir -p installed-docs/ipv6logstats
cp ipv6logstats/example_* ipv6logstats/collect_ipv6logstats.pl README installed-docs/ipv6logstats/
cp -r ipv6logstats/examples-data ipv6logstats/examples-gri installed-docs/ipv6logstats/

# ipv6calcweb
mkdir -p installed-docs/ipv6calcweb
cp ipv6calcweb/USAGE ipv6calcweb/ipv6calcweb.cgi installed-docs/ipv6calcweb

%check
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13327 |21mr|ipvsadm-1.24-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Administration tool for Linux Virtual Server
Name:		ipvsadm
Version:	1.24
Release:	19
License:	GPL
Group:		System/Kernel and hardware
URL:		http://www.linuxvirtualserver.org
Source:		http://www.linuxvirtualserver.org/software/%{name}-%{version}.tar.bz2
Source1:	ip_vs.h
Source2:	ipvsadm.sysconfig
Source3:	rc.firewall.iptables
Patch0:		ipvsadm-1.24-mdk.patch
Patch1:		ipvsadm-1.24-usage.patch
Patch2:		ipvsadm-1.24-LDFLAGS.diff
Patch3:		ipvsadm-1.24-no-strip.patch
BuildRequires:	popt-devel
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description 
ipvsadm is a utility to administer the IP virtual server services offered by
the Linux kernel with virtual server patch. Virtual Server in Linux kernel can
be used to build a high-performance and highly available server.

%prep
%setup -q
%patch0 -p0 -b .mdk
%patch1 -p1 -b .usage
%patch2 -p0 -b .LDFLAGS
%patch3 -p1 -b .nostrip

cp %{SOURCE1} libipvs/ip_vs.h
cp %{SOURCE2} %{name}.sysconfig
cp %{SOURCE3} rc.firewall.iptables

%build

# parallel make doesn't work [FL Tue Jan 20 09:14:18 2004]
make CFLAGS="%{optflags}" LDFLAGS="%build_ldflags"

%install
mkdir -p %{buildroot}/{sbin,%{_mandir}/man8,etc/rc.d/init.d,etc/sysconfig}

make BUILD_ROOT=%{buildroot} MANDIR=%{_mandir} install

# 345 default runlevels in the initscript
perl -p -i -e 's@\# chkconfig\: \- 08 92+@\# chkconfig\: 345 08 92@' %{buildroot}%{_initrddir}/%{name};

install -m0644 %{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}

%post
%_post_service %{name}

%preun
%_preun_service %{name}

%files
%doc README rc.firewall.iptables
%attr(0755,root,root) %config(noreplace) %{_initrddir}/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0755,root,root) /sbin/*
%attr(0644,root,root) %{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13328 |21mr|ipxe-20200823-1.git4bd064de
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Resulting binary formats we want from iPXE
%global formats rom

# ROMS we want for QEMU with format PCIID:QEMUNAME
%global qemuroms \\\
  8086100e:e1000 \\\
  10ec8139:rtl8139 \\\
  1af41000:virtio \\\
  808610d3:e1000e \\\
  10222000:pcnet \\\
  10ec8029:ne2k_pci \\\
  80861209:eepro100 \\\
  15ad07b0:vmxnet3

# debugging firmwares does not go the same way as a normal program.
# moreover, all architectures providing debuginfo for a single noarch
# package is currently clashing in koji, so don't bother.
%global debug_package %{nil}

# Upstream don't do "releases" :-( So we're going to use the date
# as the version, and a GIT hash as the release. Generate new GIT
# snapshots using the folowing commands:
#
# $ hash=`git log -1 --format='%h'`
# $ date=`git log -1 --format='%cd' --date=short | tr -d -`
# $ git archive --prefix ipxe-${date}-git${hash}/ ${hash} | xz -7e > ipxe-${date}-git${hash}.tar.xz
#
# And then change these two:

%global hash 4bd064de
%global date 20200823

Summary:	A network boot loader
Name:		ipxe
Version:	%{date}
Release:	1.git%{hash}
Group:		System/Configuration/Boot and Init
License:	GPLv2+ and BSD
Url:		http://ipxe.org/
Source0:	%{name}-%{version}-git%{hash}.tar.xz
# Enable IPv6 for qemu's config
# Sent upstream: http://lists.ipxe.org/pipermail/ipxe-devel/2015-November/004494.html
Patch0001: 0001-build-customize-configuration.patch
Patch0002: 0002-Use-spec-compliant-timeouts.patch
BuildRequires:	edk2-tools
BuildRequires:	mkisofs
BuildRequires:	mtools
BuildRequires:	perl
BuildRequires:	perl(Getopt::Long)
BuildRequires:	syslinux
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(liblzma)
Obsoletes:	gpxe <= 1.0.1
ExcludeArch:	%{armx}

%description
iPXE is an open source network bootloader. It provides a direct
replacement for proprietary PXE ROMs, with many extra features such as
DNS, HTTP, iSCSI, etc.

#----------------------------------------------------------------------------

%package bootimgs
Summary:	Network boot loader images in bootable USB, CD, floppy and GRUB formats
Group:		Emulators
Obsoletes:	gpxe-bootimgs <= 1.0.1
BuildArch:	noarch

%description bootimgs
iPXE is an open source network bootloader. It provides a direct
replacement for proprietary PXE ROMs, with many extra features such as
DNS, HTTP, iSCSI, etc.

This package contains the iPXE boot images in USB, CD, floppy, and PXE
UNDI formats.

%files bootimgs
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/ipxe.iso
%{_datadir}/%{name}/ipxe.usb
%{_datadir}/%{name}/ipxe.dsk
%{_datadir}/%{name}/ipxe.lkrn
%{_datadir}/%{name}/ipxe-i386.efi
%ifarch x86_64
%{_datadir}/%{name}/ipxe-x86_64.efi
%{_datadir}/%{name}/ipxe-snponly-x86_64.efi
%endif
%{_datadir}/%{name}/undionly.kpxe
%doc COPYING COPYING.GPLv2 COPYING.UBDL

#----------------------------------------------------------------------------

%package roms
Summary:	Network boot loader roms in .rom format
Group:		Emulators
%ifarch x86_64
Requires:	%{name}-roms-qemu = %{EVRD}
%endif
Obsoletes:	gpxe-roms <= 1.0.1
BuildArch:	noarch

%description roms
iPXE is an open source network bootloader. It provides a direct
replacement for proprietary PXE ROMs, with many extra features such as
DNS, HTTP, iSCSI, etc.

This package contains the iPXE roms in .rom format.

%files roms -f rom.list
%dir %{_datadir}/%{name}
%doc COPYING COPYING.GPLv2 COPYING.UBDL

#----------------------------------------------------------------------------
%ifarch x86_64

%package roms-qemu
Summary:	Network boot loader roms supported by QEMU, .rom format
Group:		Emulators
Obsoletes:	gpxe-roms-qemu <= 1.0.1
BuildArch:	noarch

%description roms-qemu
iPXE is an open source network bootloader. It provides a direct
replacement for proprietary PXE ROMs, with many extra features such as
DNS, HTTP, iSCSI, etc.

This package contains the iPXE ROMs for devices emulated by QEMU, in
.rom format.

%files roms-qemu -f qemu.rom.list
%{_datadir}/%{name}/qemu
%doc COPYING COPYING.GPLv2 COPYING.UBDL
%endif
#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-git%{hash}
%apply_patches

%build
cd src

# ath9k drivers are too big for an Option ROM, and ipxe devs say it doesn't
# make sense anyways
# http://lists.ipxe.org/pipermail/ipxe-devel/2012-March/001290.html
rm -rf drivers/net/ath/ath9k

make_ipxe() {
    %make \
        NO_WERROR=1 V=1 \
        GITVERSION=%{hash} \
        "$@"
}

%ifarch %{ix86}
make_ipxe bin-i386-efi/ipxe.efi
%else
make_ipxe bin-i386-efi/ipxe.efi bin-x86_64-efi/ipxe.efi \
	    bin-x86_64-efi/snponly.efi
%endif

make_ipxe ISOLINUX_BIN=/usr/share/syslinux/isolinux.bin \
    bin/undionly.kpxe bin/ipxe.{dsk,iso,usb,lkrn} \
    allroms

%ifarch x86_64
# build roms with efi support for qemu
mkdir bin-combined
for romstr in %{qemuroms}; do
  rom=$(echo "$romstr" | cut -d ":" -f 1)

  make_ipxe CONFIG=qemu bin/${rom}.rom
  make_ipxe CONFIG=qemu bin-x86_64-efi/${rom}.efidrv
  vid="0x${rom%%????}"
  did="0x${rom#????}"
  EfiRom -f "$vid" -i "$did" --pci23 \
         -ec bin-x86_64-efi/${rom}.efidrv \
         -o  bin-combined/${rom}.eficrom
  util/catrom.pl \
      bin/${rom}.rom \
      bin-combined/${rom}.eficrom \
      > bin-combined/${rom}.rom
  EfiRom -d  bin-combined/${rom}.rom
  # truncate to at least 256KiB
  truncate -s \>256K bin-combined/${rom}.rom
  # verify rom fits in 256KiB
  test $(stat -c '%s' bin-combined/${rom}.rom) -le $((256 * 1024))
done
%endif

%install
mkdir -p %{buildroot}/%{_datadir}/%{name}/
mkdir -p %{buildroot}/%{_datadir}/%{name}.efi/
pushd src/bin/

cp -a undionly.kpxe ipxe.{iso,usb,dsk,lkrn} %{buildroot}/%{_datadir}/%{name}/

for img in *.rom; do
  if [ -e $img ]; then
    cp -a $img %{buildroot}/%{_datadir}/%{name}/
    echo %{_datadir}/%{name}/$img >> ../../rom.list
  fi
done
popd

cp -a src/bin-i386-efi/ipxe.efi %{buildroot}/%{_datadir}/%{name}/ipxe-i386.efi
%ifarch x86_64
cp -a src/bin-x86_64-efi/ipxe.efi %{buildroot}/%{_datadir}/%{name}/ipxe-x86_64.efi
cp -a src/bin-x86_64-efi/ipxe.efi %{buildroot}/%{_datadir}/%{name}/ipxe-snponly-x86_64.efi
%endif

%ifarch x86_64
#--- qemu roms ------
mkdir -p %{buildroot}/%{_datadir}/%{name}/qemu
for romstr in %{qemuroms}; do
  # the roms supported by qemu will be packaged separatedly
  # remove from the main rom list and add them to qemu.list
  rom=$(echo "$romstr" | cut -d ":" -f 1)
  qemuname=$(echo "$romstr" | cut -d ":" -f 2)
  sed -i -e "/\/${rom}.rom/d" rom.list
  echo %{_datadir}/%{name}/${rom}.rom >> qemu.rom.list

  cp src/bin-combined/${rom}.rom %{buildroot}/%{_datadir}/%{name}.efi/
  echo %{_datadir}/%{name}.efi/${rom}.rom >> qemu.rom.list

  # Set up symlinks with expected qemu firmware names
  ln -s ../../ipxe/${rom}.rom %{buildroot}%{_datadir}/%{name}/qemu/pxe-${qemuname}.rom
  ln -s ../../ipxe.efi/${rom}.rom %{buildroot}%{_datadir}/%{name}/qemu/efi-${qemuname}.rom
done
%endif
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13329 |21mr|ipython-7.34.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# with fixed CVE-2022-21699

Summary:	An interactive computing environment for Python
Name:		ipython
Version:	7.34.0
Release:	2
License:	BSD
Group:		Development/Python
Url:		http://ipython.org
Source0:	https://github.com/ipython/ipython/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		CVE-2023-24816.patch
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-simplegeneric
BuildRequires:	python3-pygments
BuildRequires:	python3-sphinx
BuildRequires:	python3-jinja2
BuildRequires:	python3-pexpect
BuildRequires:	python3-pyzmq
BuildRequires:	python3-tornado
Requires:	python3-pexpect
Requires:	python3-mglob
Requires:	python3-simplegeneric
Requires:	python3-traitlets
Requires:	python3-backcall
Requires:	python3-prompt_toolkit
Requires:	python3-decorator
Requires:	python3-ipython_genutils
Requires:	python3-backports.shutil_get_terminal_size
Requires:	python3-pickleshare
Requires:	python3-prompt_toolkit
Recommends:	python3-pygments
Recommends:	python3-sip
Recommends:	python3-mpi4py
Recommends:	python3-tornado
Recommends:	python3-jinja2
Recommends:	python3-matplotlib
Recommends:	python3-pyzmq

%rename 	python3-ipython

%description
IPython provides a replacement for the interactive Python interpreter with
extra functionality.

Main features:
 * Comprehensive object introspection.
 * Input history, persistent across sessions.
 * Caching of output results during a session with automatically generated\
   references.
 * Readline based name completion.
 * Extensible system of 'magic' commands for controlling the environment and
   performing many tasks related either to IPython or the operating system.
 * Configuration system with easy switching between different setups (simpler
   than changing $PYTHONSTARTUP environment variables every time).
 * Session logging and reloading.
 * Extensible syntax processing for special purpose situations.
 * Access to the system shell with user-extensible alias system.
 * Easily embeddable in other Python programs.
 * Integrated access to the pdb debugger and the Python profiler.

%files
%{_bindir}/ipython
%{_bindir}/iptest
%{_bindir}/ipython3
%{_bindir}/iptest3
%{_mandir}/man1/*
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n ipython-%{version}

# delete bundling libs
pushd IPython/external

# use decorators of numpy
rm decorators/_decorators.py

popd

# Get rid of library shebangs
find . -type f -name "*.py" -exec sed -i '/#!\/usr\/bin\/env/d' {} \;

%build
%__python3 setup.py build

%install
%__python3 setup.py install -O1 --skip-build --root %{buildroot}
for f in %{buildroot}%{_mandir}/man1/*.1; do mv ${f} ${f%.1}3.1; done

chmod 644 %{buildroot}%{_mandir}/man1/*.1*
find %{buildroot} -name .buildinfo -exec rm -f {} \;
find %{buildroot} -name .git_commit_info.ini -exec rm -rf {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13330 |21mr|irclib-1.10-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          irclib
Version:       1.10
Release:       10
Summary:       Java implementation of the IRC protocol
License:       ASL 2.0 and EPL and LGPLv2+
Group:         Development/Java
URL:           http://moepii.sourceforge.net/
Source0:       http://prdownloads.sourceforge.net/moepii/%{name}-%{version}.tar.gz
Source1:       http://repo2.maven.org/maven2/org/schwering/%{name}/%{version}/%{name}-%{version}.pom

BuildRequires: java-devel
BuildRequires: javapackages-local
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
IRClib is pure Java 1.2 IRC implementation. The
IRClib library is designed very cleanly, supports
RFC1459 and supports SSL connections.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# cleanup
find -name "*.jar" -delete
find -name "*.class" -delete
rm -r $(find -name ".svn")
rm -r javadoc

# fix spurious-executable-perm
chmod 644 CHANGELOG COPYING_AL COPYING_EPL COPYING_LGPL README
# fix incorrect-fsf-address
sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," COPYING_LGPL
# fix wrong-script-end-of-line-encoding
sed -i 's/\r//' CHANGELOG COPYING_AL COPYING_EPL COPYING_LGPL README

%mvn_file org.schwering:%{name} %{name}

%build

mkdir -p classes docs
%javac -d classes -source 1.6 -target 1.6 $(find src -name "*.java")

(
cd classes
%jar -cf ../%{name}.jar *
)

%javadoc -source 1.6 -classpath classes -d docs -Xdoclint:none $(find src -name "*.java")

%install
%mvn_artifact %{SOURCE1} %{name}.jar
%mvn_install -J docs

%files -f .mfiles
%doc CHANGELOG README
%license COPYING_AL COPYING_EPL COPYING_LGPL

%files javadoc -f .mfiles-javadoc
%license COPYING_AL COPYING_EPL COPYING_LGPL


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13331 |21mr|ironjacamar-1.3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          ironjacamar
Version:       1.3.8
Release:       1
Summary:       Java Connector Architecture 1.7 implementation
License:       LGPLv2+
URL:           http://www.ironjacamar.org/
Source0:       https://github.com/ironjacamar/ironjacamar/archive/%{name}-%{namedversion}.tar.gz

# Commented out trying to download Ivy from the Internet
Patch0:        ironjacamar-1.3.4.Final-Use-Fedora-provided-IVY.patch
Patch1:        0002-Adjust-IVY-paths.patch
Patch2:        ironjacamar-1.3.8-remove-ambiguous-reference-to-tracef.patch
Patch3:        ironjacamar-1.3.8-validatorFactory.patch 

BuildRequires: ant
BuildRequires: apache-ivy
BuildRequires: graphviz
BuildRequires: ivy-local
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss:jboss-transaction-spi)
BuildRequires: mvn(org.jboss.apiviz:apiviz)
BuildRequires: mvn(org.jboss.jdeparser:jdeparser)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.logmanager:log4j-jboss-logmanager)
BuildRequires: mvn(org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.jboss.threads:jboss-threads)
BuildRequires: mvn(org.jgroups:jgroups)
BuildRequires: mvn(org.picketbox:picketbox)

# Runtime dependecies
Requires:      java-headless
Requires:      javapackages-tools
Requires:      mvn(javax.validation:validation-api)
Requires:      mvn(org.jboss:jandex)
Requires:      mvn(org.jboss:jboss-transaction-spi)
Requires:      mvn(org.jboss.logging:jboss-logging)
Requires:      mvn(org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.0_spec)
Requires:      mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
Requires:      mvn(org.jboss.threads:jboss-threads)
Requires:      mvn(org.jboss.logmanager:log4j-jboss-logmanager)
Requires:      mvn(org.picketbox:picketbox)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The IronJacamar project implements the Java Connector Architecture 1.7
specification.

The Java Connector Architecture (JCA) defines a standard architecture for
connecting the Java EE platform to heterogeneous Enterprise Information
Systems (EIS). Examples of EISs include Enterprise Resource Planning (ERP),
mainframe transaction processing (TP), database and messaging systems.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -qn %{name}-%{name}-%{namedversion}
# Cleanup
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

# Fixing JDK7 ASCII issues
files='
api/src/main/java/javax/resource/spi/BootstrapContext.java
api/src/main/java/javax/resource/spi/work/SecurityContext.java
'

for f in ${files}; do
  native2ascii -encoding UTF8 ${f} ${f}
done

# Rename the license file
cp -r doc/licenses/lgpl-2.1.txt LICENSE.txt

mkdir lib

sed -i '/IronJacamar requires JDK7/d' build.xml
sed -i '/Nexus requires JDK7/d' build.xml
sed -i '/<deploy-file/d' build.xml
sed -i '/<install-file/d' build.xml

%build

ant -Divy.mode=local -Das jars-base clean docs nexus-base

# Fix malformed pom entries
%pom_change_dep org.jboss.spec.javax.transaction: :jboss-transaction-api_1.2_spec target/%{name}-core-api.xml
%pom_change_dep javax.validation: :validation-api target/%{name}-core-impl.xml
%pom_change_dep org.jboss.spec.javax.security.auth.message: :jboss-jaspi-api_1.0_spec target/%{name}-core-impl.xml
%pom_change_dep org.jboss.spec.javax.transaction: :jboss-transaction-api_1.2_spec target/%{name}-core-impl.xml
%pom_change_dep org.jboss.spec.javax.transaction: :jboss-transaction-api_1.2_spec target/%{name}-jdbc.xml
%pom_change_dep org.jboss.spec.javax.transaction: :jboss-transaction-api_1.2_spec target/%{name}-spec-api.xml

%install
mkdir -p $RPM_BUILD_ROOT%{_javadir}/%{name} \
         $RPM_BUILD_ROOT%{_mavenpomdir} \
         $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# common-impl-papaki validator-cli validator-maven validator-ant - not built in when nexus/brew target is selected
# deployers-fungal - no fungal package available
for m in common-api common-impl common-spi core-api core-impl deployers-common jdbc spec-api validator; do
# JAR
  install -pm 644 target/%{name}-${m}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-${m}.jar
# POM
  install -pm 644 target/%{name}-${m}.xml $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-${m}.pom
# DEPMAP
  %add_maven_depmap JPP.%{name}-%{name}-${m}.pom %{name}/%{name}-${m}.jar
done
# APIDOCS
cp -rp target/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc
%{_javadocdir}/%{name}
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13332 |21mr|irqbalance-1.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Daemon to balance irq's across multiple CPUs
Name:		irqbalance
Version:	1.9.2
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://irqbalance.org/
Source0:	https://github.com/Irqbalance/irqbalance/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	%{name}.sysconfig
BuildRequires:	numa-devel
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcap-ng)

%description
irqbalance is a daemon that evenly distributes IRQ load across
multiple CPUs for enhanced performance.

%files
%{_sbindir}/irqbalance
%{_mandir}/man1/irqbalance.1*
%config(noreplace) %{_sysconfdir}/sysconfig/*
%{_unitdir}/irqbalance.service

%post
%systemd_post irqbalance.service

%preun
%systemd_preun irqbalance.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1
touch NEWS README AUTHORS ChangeLog

# (tpg) fix path
#sed -i 's|EnvironmentFile=.*|EnvironmentFile=-/etc/sysconfig/irqbalance|' misc/irqbalance.service

%build
./autogen.sh

%configure
%make_build

%install
mkdir -p %{buildroot}%{_sbindir}
install irqbalance %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man1
install irqbalance.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/irqbalance
mkdir -p %{buildroot}%{_unitdir}
install -c -m 644  misc/irqbalance.service %{buildroot}%{_unitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13333 |21mr|irrlicht-1.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
%undefine _find_debuginfo_dwz_opts

%define	major %(echo %{version} |cut -d. -f1)
%define	minor %(echo %{version} |cut -d. -f2)

%define	libname %mklibname %{name} %{major}
%define	develname %mklibname %{name} -d
%define	staticname %mklibname %{name} -d -s

%define	irrxmlmajor 1
%define	irrxml %mklibname IrrXML %{major}
%define	devirrxml %mklibname IrrXML -d

# (dm) donno wtf it hangs
%global	dont_check_elf_files 1

%bcond_with static

Summary:	The Irrlicht Engine SDK
Name:		irrlicht
Version:	1.8.5
Release:	1
License:	zlib/libpng License
Group:		Graphics
Url:		https://irrlicht.sourceforge.io/
Source0:	https://downloads.sourceforge.net/irrlicht/%{name}-%{version}.zip
Source100:	%{name}.rpmlintrc
# Various fixes, optflags, system libraries/headers
# http://irrlicht.sourceforge.net/phpBB2/viewtopic.php?t=24076&highlight=
Patch0:		irrlicht-1.8-optflags.patch
# Get the code compiling
Patch1:		irrlicht-1.8-glext.patch
# Use system libaesgm
Patch2:		irrlicht18-libaesgm.patch
# Make libIrrXML.so
Patch4:		irrlicht-1.8-irrXML-shared-library.patch
# Fix issue with definition of LOCALE_DECIMAL_POINTS
Patch5:		irrlicht-1.8-fix-locale-decimal-points.patch
# Fix build with Mesa 10
Patch6:		irrlicht-1.8.1-mesa10.patch
# Use RPM_LD_FLAGS
Patch7:		irrlicht-1.8.4-ldflags.patch
Patch9:		irrlicht-1.7.1-GUIEditor-makefile.patch
Patch10:		irrlicht-1.8-debian-link-against-needed-libs.patch
Patch11:		irrlicht-tool-link.patch
BuildRequires:	dos2unix
BuildRequires:	imagemagick
BuildRequires:	bzip2-devel
BuildRequires:	glibc-devel
BuildRequires:	libaesgm-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)

Recommends:		%{name}-media = %{version}

%description
The Irrlicht Engine is an open source high performance realtime 3D engine
written and usable in C++ and also available for .NET languages. It is
completely cross-platform, using D3D, OpenGL and its own software renderer,
and has all of the state-of-the-art features which can be found in commercial
3d engines.

We've got a huge active community, and there are lots of projects in
development that use the engine. You can find enhancements for Irrlicht all
over the web, like alternative terrain renderers, portal renderers, exporters,
world layers, tutorials, editors, language bindings for java, perl, ruby,
basic, python, lua, and so on. And best of all: It's completely free.

%files
%doc changes.txt
%doc examples/09.Meshviewer/tutorial.html
%{_bindir}/irrlicht-GUIEditor
%{_bindir}/irrlicht-FontTool
%{_bindir}/irrlicht-Meshviewer
%{_datadir}/applications/irrlicht-*.desktop
%{_iconsdir}/hicolor/*/apps/irrlicht*.png

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for Irrlicht 3D engine
Group:		System/Libraries

%description -n %{libname}
Shared libraries for Irrlicht 3D engine.

%files -n %{libname}
%doc changes.txt
%{_libdir}/libIrrlicht.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for Irrlicht 3D engine
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{develname}
Development files for Irrlicht 3D engine.

%files -n %{develname}
%doc changes.txt
%dir %{_includedir}/irrlicht
%{_includedir}/irrlicht/*.h
%exclude %{_includedir}/%{name}/fast_atof.h
%exclude %{_includedir}/%{name}/heapsort.h
%exclude %{_includedir}/%{name}/irrArray.h
%exclude %{_includedir}/%{name}/irrString.h
%exclude %{_includedir}/%{name}/irrTypes.h
%exclude %{_includedir}/%{name}/irrXML.h
%{_libdir}/libIrrlicht.so

#-----------------------------------------------------------------------------

%package -n %{irrxml}
Summary:	Simple and fast XML parser for C++
Group:		System/Libraries
Provides:	irrXML18 = %{EVRD}

%description -n %{irrxml}
IrrXML is a simple and fast open source xml parser for C++.

%files -n %{irrxml}
%doc readme.txt
%{_libdir}/libIrrXML.so.%{irrxmlmajor}*

#-----------------------------------------------------------------------------

%package -n %{devirrxml}
Summary:	Development headers and libraries for irrXML
Group:		Development/C++
Requires:	%{irrxml} = %{EVRD}
Provides:		irrXML18-devel = %{EVRD}
Provides:		irrXML-devel = %{EVRD}

%description -n %{devirrxml}
Development headers and libraries for irrXML.

%files -n %{devirrxml}
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/fast_atof.h
%{_includedir}/%{name}/heapsort.h
%{_includedir}/%{name}/irrArray.h
%{_includedir}/%{name}/irrString.h
%{_includedir}/%{name}/irrTypes.h
%{_includedir}/%{name}/irrXML.h
%{_libdir}/libIrrXML.so

#-----------------------------------------------------------------------------

%if %{with static}
%package -n %{staticname}
Summary:	Static files for Irrlicht 3D engine
Group:		Development/C++
Requires:	%{develname}  = %{EVRD}

%description -n %{staticname}
Static files for Irrlicht 3D engine.

%files -n %{staticname}
%doc changes.txt
%{_libdir}/lib*.a
%endif

#-----------------------------------------------------------------------------

%package examples
Summary:	Demos and examples for the Irrlicht 3D engine
Group:		Graphics
Requires:	%{libname} = %{version}

%description examples
Demos and examples for the Irrlicht 3D engine.

%files examples
%dir %{_docdir}/Irrlicht-examples
%{_docdir}/Irrlicht-examples/*
%exclude %{_bindir}/irrlicht-GUIEditor
%exclude %{_bindir}/irrlicht-FontTool
%exclude %{_bindir}/irrlicht-Meshviewer
%{_bindir}/irrlicht-*

#-----------------------------------------------------------------------------

%package media
Summary:	Media files for Irrlicht 3D engine
Group:		Graphics
Requires:	%{name} = %{version}

%description media
Media files needed by Irrlicht tools and demos.

%files media
%doc changes.txt
%dir %{_datadir}/irrlicht
%{_datadir}/irrlicht/*

#-----------------------------------------------------------------------------

%package doc
Summary:	User documentation for the Irrlicht 3D engine
Group:		Graphics
Requires:	%{libname} = %{version}

%description doc
User documentation for the Irrlicht 3D engine.

%files doc
%doc changes.txt
%doc doc/html doc/aesGladman.txt doc/irrlicht-license.txt doc/readme.txt
%doc doc/upgrade-guide.txt

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# Really not needed :)
rm -r examples/14.Win32Window
rm -r source/Irrlicht/MacOSX

# (tpg) Use system wide libs, see patch2
rm -rf source/Irrlicht/jpeglib source/Irrlicht/zlib source/Irrlicht/libpng source/Irrlicht/bzip2 
#source/Irrlicht/lzma source/Irrlicht/aesGladman
#find source/Irrlicht -name '*.cpp' | xargs sed -i -e 's|zlib/zlib.h|zlib.h|g' -e 's|libpng/png.h|png.h|g' -e 's|jpeglib/jerror.h|jerror.h|g' -e 's|jpeglib/jpeglib.h|jpeglib.h|g'
#find source/Irrlicht -name '*.h'   | xargs sed -i -e 's|jpeglib/jpeglib.h|jpeglib.h|g' -e 's|libpng/png.h|png.h|g' -e 's|jpeglib/jerror.h|jerror.h|g'

# Needs irrKlang
rm -r examples/Demo
sed -i -e 's|Demo||g' examples/buildAllExamples.sh

# Fix media path
sed -i -e 's|../../media/|%{_datadir}/irrlicht/|g' tools/GUIEditor/main.cpp
find ./examples -name *.cpp | xargs sed -i -e 's|../../media/|%{_datadir}/irrlicht/|g'

# (tpg) Clean this mess
for i in include/*.h doc/upgrade-guide.txt source/Irrlicht/*.cpp source/Irrlicht/*.h source/Irrlicht/Makefile; do
	sed -i 's/\r//' $i
	chmod -x $i
	touch -r changes.txt $i
done

# Upstream forgot to increment VERSION_RELEASE to 1 in 1.8.1
#sed -i 's|VERSION_RELEASE = 0|VERSION_RELEASE = 1|g' source/Irrlicht/Makefile

sed -i 's/\r//' readme.txt
iconv -o readme.txt.iso88591 -f iso88591 -t utf8 readme.txt
mv readme.txt.iso88591 readme.txt

# https://bugzilla.redhat.com/show_bug.cgi?id=1035757
sed -i -e '/_IRR_MATERIAL_MAX_TEXTURES_/s/4/8/' include/IrrCompileConfig.h

# Fix EOL
dos2unix changes.txt doc/*.txt


%build
%setup_compile_flags
export LIBDIR="%{_libdir}"
export PREFIX="%{_prefix}"
export INCLUDEDIR="%{_includedir}"

%if %{with static}
# Build static library
%make -C source/Irrlicht \
    CFLAGS="%{optflags}" \
    CXXFLAGS="%{optflags}" \
    LDFLAGS="%{ldflags}"

# Clean it
%make -C source/Irrlicht clean
%endif

# Build shared library
%make -C source/Irrlicht sharedlib NDEBUG=1 \
%ifnarch ix86
    CFLAGS="%{optflags} -fPIC" \
    CXXFLAGS="%{optflags} -fPIC"
%else
    CFLAGS="%{optflags}" \
    CXXFLAGS="%{optflags}"
%endif

# Create necessary links to avoid linker-error for tools/examples
pushd lib/Linux
	ln -s libIrrlicht.so.%{version} libIrrlicht.so.%{major}.%{minor}
	ln -s libIrrlicht.so.%{major}.%{minor} libIrrlicht.so
	ln -s libIrrXML.so.%{version} libIrrXML.so.1
	ln -s libIrrlicht.so.%{version} libIrrlicht.so.1
popd

# Build tools
pushd tools
	cd GUIEditor
	%make CFLAGS="%{optflags}" CXXFLAGS="%{optflags} -ffast-math"
	cd ../IrrFontTool/newFontTool
	%make CFLAGS="%{optflags}" CXXFLAGS="%{optflags}"
popd

# Build examples
pushd examples
	sh buildAllExamples.sh
popd


%install
mkdir -p %{buildroot}%{_libdir}

%if %{with static}
install -m 644 lib/Linux/libIrrlicht.a %{buildroot}%{_libdir}
%endif

make -C source/Irrlicht INSTALL_DIR=%{buildroot}%{_libdir} install

pushd %{buildroot}%{_libdir}
	ln -s libIrrlicht.so.%{irrlicht_version} libIrrlicht.so.1
	ln -s libIrrXML.so.%{irrlicht_version} libIrrXML.so.1
popd

# Install includes
mkdir -p %{buildroot}%{_includedir}/irrlicht
cp -f include/*.h %{buildroot}%{_includedir}/irrlicht

# Install tools
install -dm 755 %{buildroot}%{_bindir}
install -m 755 bin/Linux/GUIEditor %{buildroot}%{_bindir}/irrlicht-GUIEditor
install -m 755 bin/Linux/FontTool %{buildroot}%{_bindir}/irrlicht-FontTool

# Install examples
ex_list=`ls -1 bin/Linux/??.*`
for i in $ex_list; do
	FE=`echo $i | awk 'BEGIN { FS="." }{ print $2 }'`
	    install -m 755 $i %{buildroot}%{_bindir}/irrlicht-$FE
done

# Install examples-docs
pushd examples
	install -dm 755 %{buildroot}%{_docdir}/Irrlicht-examples

	ex_dir=`find . -name tutorial.html`
	for i in $ex_dir; do
		dir_name=`dirname $i`
		install -dm 755 %{buildroot}%{_docdir}/Irrlicht-examples/$dir_name
		install -m 644 $i %{buildroot}%{_docdir}/Irrlicht-examples/$dir_name
	done
	rm -r %{buildroot}%{_docdir}/Irrlicht-examples/09.Meshviewer
popd

# Install media
mkdir -p %{buildroot}%{_datadir}/irrlicht
install -m 644 media/* %{buildroot}%{_datadir}/irrlicht

# Install icons
install -dm 755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert examples/09.Meshviewer/icon.ico -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/irrlicht-Meshviewer.png
convert bin/Win32-VisualStudio/irrlicht.ico -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/irrlicht.png

convert examples/09.Meshviewer/icon.ico -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/irrlicht-Meshviewer.png
convert bin/Win32-VisualStudio/irrlicht.ico -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/irrlicht.png

convert examples/09.Meshviewer/icon.ico -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/irrlicht-Meshviewer.png
convert bin/Win32-VisualStudio/irrlicht.ico -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/irrlicht.png

# Provide menu entries
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/irrlicht-GUIEditor.desktop << EOF
[Desktop Entry]
Name=Irrlicht GUI Editor
Comment=Irrlicht GUI Editor
Exec=irrlicht-GUIEditor
Icon=irrlicht
Terminal=false
Type=Application
StartupNotify=true
Categories=3DGraphics;GTK;
EOF

cat > %{buildroot}%{_datadir}/applications/irrlicht-FontTool.desktop << EOF
[Desktop Entry]
Name=Irrlicht Font Tool
Comment=Irrlicht Font Tool
Exec=irrlicht-FontTool
Icon=irrlicht
Terminal=false
Type=Application
StartupNotify=true
Categories=3DGraphics;GTK;
EOF

cat > %{buildroot}%{_datadir}/applications/irrlicht-Meshviewer.desktop << EOF
[Desktop Entry]
Name=Irrlicht Mesh Viewer
Comment=Irrlicht Mesh Viewer
Exec=irrlicht-Meshviewer
Icon=irrlicht-Meshviewer
Terminal=true
Type=Application
StartupNotify=true
Categories=3DGraphics;GTK;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13334 |21mr|irssi-1.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude TextUI.so|UI.so|Irssi.so|Irc.so|libperl_core.so|libfe_perl.so

Summary:	IRC client
Name:		irssi
Version:	1.4.2
Release:	2
License:	GPLv2+
Group:		Networking/IRC
Url:		http://irssi.org/
Source0:	https://github.com/irssi/irssi/releases/download/%{version}/%{name}-%{version}.tar.xz
# CVE-2023-29132
Patch0:		https://github.com/irssi/irssi/commit/c554a45738712219c066897b09a44d99afeb4240.patch
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libutf8proc)
Recommends:	irssi-perl

%description
Irssi is a modular and flexible IRC client for UNIX that has only a text mode
user interface (but as 80-90% of the code isn't text mode specific, other UIs
could be created pretty easily). Also, Irssi isn't really even IRC specific
anymore, there are already working SILC and ICB modules available. Support for
other protocols like ICQ and Jabber could be created some day too.

Irssi is one of the most popular IRC clients at the moment.

%files
%doc AUTHORS TODO NEWS docs/*
%attr(755,root,root) %{_bindir}/*
%{_datadir}/%{name}
%exclude %{_datadir}/%{name}/scripts
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/modules
%exclude %{_libdir}/%{name}/modules/libfe_perl.*
%exclude %{_libdir}/%{name}/modules/libperl_core.*
%{_libdir}/%{name}/modules/*.so
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_mandir}/man1/%{name}.1*

#--------------------------------------------------------------------------

%package devel
Summary:	Static libraries for the development of irssi applications
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
Static libraries for the development of irssi applications.

%files devel
%doc AUTHORS TODO NEWS docs/*
%{_includedir}/%{name}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/%{name}/modules/*.a

#--------------------------------------------------------------------------

%package perl
Summary:	Perl plugin for irssi
Group:		Networking/IRC
Requires:	%{name} = %{EVRD}
Conflicts:	perl-silc

%description perl
Perl plugin for irssi.

%files perl
%doc AUTHORS TODO NEWS docs/*
%{_libdir}/%{name}/modules/libfe_perl.so
%{_libdir}/%{name}/modules/libperl_core.so
%{perl_vendorarch}/Irssi*
%{perl_vendorarch}/auto/*
%{_datadir}/%{name}/scripts

#--------------------------------------------------------------------------

%prep
%setup -q

%patch0 -p1

%build
%configure \
	--with-modules \
	--enable-ipv6 \
	--with-proxy \
	--with-socks \
	--with-bot \
	--with-perl=module \
	--enable-static \
	--with-perl-lib=vendor
%make

%install
%makeinstall_std

# Files that should not be installed:
rm -f %{buildroot}%{perl_vendorarch}/perllocal.pod
rm -rf %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13335 |21mr|isl-0.24-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 23
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define staticname %mklibname %{name} -s -d
%define debug_package %nil

Summary:	Integer Set Library
Name:		isl
# BIG FAT WARNING: gcc requires isl. That includes the parts of gcc used by
# clang. When updating to a version that changes the soname, you MUST build
# a compat package for the old version FIRST (see isl13, isl15 packages).
Version:	0.24
Release:	3
License:	MIT
Group:		System/Libraries
Url:		git://repo.or.cz/isl.git
Source0:	http://isl.gforge.inria.fr/isl-%{version}.tar.xz
Patch0:		disable-broken-lcc-test.patch
BuildRequires:	gmp-devel

%description
isl is a library for manipulating sets and relations of integer points
bounded by linear constraints. Supported operations on sets include
intersection, union, set difference, emptiness check, convex hull,
(integer) affine hull, integer projection, computing the lexicographic
minimum using parametric integer programming, coalescing and parametric
vertex enumeration.

It also includes an ILP solver based on generalized basis reduction,
transitive closures on maps (which may encode infinite graphs),
dependence analysis and bounds on piecewise step-polynomials.

%package -n %{libname}
Summary:	Integer Set Library
Group:		System/Libraries

%description -n %{libname}
isl is a library for manipulating sets and relations of integer points
bounded by linear constraints. Supported operations on sets include
intersection, union, set difference, emptiness check, convex hull,
(integer) affine hull, integer projection, computing the lexicographic
minimum using parametric integer programming, coalescing and parametric
vertex enumeration.

It also includes an ILP solver based on generalized basis reduction,
transitive closures on maps (which may encode infinite graphs),
dependence analysis and bounds on piecewise step-polynomials.

%package -n %{devname}
Summary:	Development files for the isl Integer Set Library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
Header files for the isl Integer Set Library.

%package -n %{staticname}
Summary:	Static library for the isl Integer Set Library
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{staticname}
Static library for the isl Integer Set Library

%prep
%setup -q
%ifarch %{e2k}
#test fail on e2k
%patch0 -p1
%endif

autoreconf -fi

%build
%set_build_flags
%configure --enable-static
%make_build

%check
# All tests must pass
make check

%install
%make_install

mkdir -p %{buildroot}/%{_datadir}/gdb/auto-load/%{_libdir}
mv %{buildroot}/%{_libdir}/*.py %{buildroot}/%{_datadir}/gdb/auto-load/%{_libdir}

%files -n %{libname}
%{_libdir}/libisl.so.%{major}
%{_libdir}/libisl.so.%{major}.[0-9].[0-9]

%files -n %{devname}
%{_libdir}/libisl.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gdb/auto-load/%{_libdir}/*%{name}*-gdb.py*
%{_datadir}/gdb/auto-load/%{_libdir}/__pycache__/*

%files -n %{staticname}
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13336 |21mr|iso-codes-4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mapping between ISO country codes and full names
Name:		iso-codes
Version:	4.4
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://pkg-isocodes.alioth.debian.org/
Source0:	https://salsa.debian.org/iso-codes-team/iso-codes/-/archive/%{name}-%{version}/%{name}-%{name}-%{version}.tar.bz2
BuildRequires:	python3
BuildArch:	noarch

%description
This package aims to provide the list of the country and language (and
currency) names in one place, rather than repeated in many programs.

%files -f %{name}.lang
%dir %{_datadir}/xml/iso-codes/
%{_datadir}/xml/iso-codes/*.xml
%{_datadir}/iso-codes/json/*.json

#----------------------------------------------------------------------------

%package devel
Summary:	Files for development using %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
This package contains the pkg-config files for development
when building programs that use %{name}.

%files devel
%{_datadir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
%configure
%make_build

%install
%make_install

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13337 |21mr|isomd5sum-1.2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities for working with md5sum implanted in ISO images
Name:		isomd5sum
Version:	1.2.3
Release:	2
License:	GPLv2+
Group:		Archiving/Cd burning
Url:		https://github.com/rhinstaller/isomd5sum
Source0:	https://github.com/rhinstaller/isomd5sum/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Should be in libdir as it's includes libdir definition inside
Patch0:		isomd5sum-1.2.3-pc-path.patch
BuildRequires:	popt-devel

%description
The isomd5sum package contains utilities for implanting and verifying
an md5sum implanted into an ISO9660 image.

%files
%doc COPYING
%{_bindir}/implantisomd5
%{_bindir}/checkisomd5
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%package devel
Summary:	Development headers and library for using isomd5sum 
Group:		Development/C
Requires: %{name} = %{EVRD}

%description devel
This contains header files and a library for working with the isomd5sum
implanting and checking.

%files devel
%{_includedir}/*.h
%{_libdir}/*.a
%{_libdir}/pkgconfig/isomd5sum.pc

#----------------------------------------------------------------------------

%package -n python-isomd5sum
Summary:	Python bindings for isomd5sum
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

%description -n python-isomd5sum
Python bindings for isomd5sum.

%files -n python-isomd5sum
%{py3_platsitedir}/pyisomd5sum.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
sed -i 's/x86_64/x86_64 e2k e2kv4 e2kv6/' Makefile
export CFLAGS="%{optflags} -Wno-strict-aliasing"
make checkisomd5 implantisomd5 pyisomd5sum.so

%install
make DESTDIR=%{buildroot} install-bin install-devel install-python

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13338 |21mr|isorelax-0-0.26.release20050331
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global cvstag  release-20050331

Name:           isorelax
Summary:        Public interfaces for RELAX Core
URL:            http://iso-relax.sourceforge.net/
Epoch:          1
Version:        0
# I can't use %%{cvstag} as dashes aren't allowed in Release tags
Release:        0.26.release20050331
# Parts of VerifierFactory.java were copied from Apache Batik and are
# under ASL 1.1, everything else is under MIT.
License:        MIT and ASL 1.1
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# mkdir isorelax-release-20050331-src
# cd isorelax-release-20050331-src
# cvs -d:pserver:anonymous@iso-relax.cvs.sourceforge.net:/cvsroot/iso-relax \
#   export -r release-20050331 src lib
# cvs -d:pserver:anonymous@iso-relax.cvs.sourceforge.net:/cvsroot/iso-relax \
#   co -r release-20050331 build.xml
# rm -rf CVS
# cd ..
# tar cjf isorelax-release-20050331-src.tar.bz2 isorelax-release-20050331-src
Source0:        %{name}-%{cvstag}-src.tar.bz2
# There's no license in the upstream tarball so include it here
Source1:        license.txt
Source2:        http://repo2.maven.org/maven2/%{name}/%{name}/20030108/%{name}-20030108.pom
Patch0:         %{name}-apidocsandcompressedjar.patch

BuildRequires:  javapackages-local
BuildRequires:  ant

%description
The ISO RELAX project was started to host public interfaces 
useful for applications to support RELAX Core. Now, however,
some of the hosted material is schema language-neutral.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{cvstag}-src
find -name "*.jar" -delete
ln -s %{_javadir}/ant.jar lib/
%patch0 -p0
cp %{SOURCE1} .

%build
ant release

%install
%mvn_file : %{name}
%mvn_artifact %{SOURCE2} %{name}.jar

%mvn_install -J apidocs

%files -f .mfiles
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13339 |21mr|ispc-1.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_snapshot 0
%global commit 34da2d23bbf32abf44da11d2cdca595dc7318cec
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:		ispc
Version:	1.16.0
%if %{with_snapshot}
Release:	20190309.%{shortcommit}%{?dist}
%else
Release:	1
%endif
Summary:	C-based SPMD programming language compiler
Group:		Development/C++
License:	BSD
URL:		https://ispc.github.io/
%if %{with_snapshot}
Source0:	https://github.com/%{name}/%{name}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
%else
Source0:	https://github.com/%{name}/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
%endif
# https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package
Patch0:	0001-Link-against-libclang-cpp.so.patch
Patch2:		ispc-tinfo.patch
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	clang-devel
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	gcc-c++
BuildRequires:	llvm-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(python3)
# Hardcoded path from 32-bit glibc-devel needed to build
# See https://github.com/ispc/ispc/wiki/Building-ispc:-Linux-and-Mac-OS-X
%ifarch x86_64
BuildRequires:	/usr/lib/crt1.o
%endif
BuildRequires:	pkgconfig(zlib)

# Exlcude architectures failing to build
ExclusiveArch:	x86_64 aarch64


%description
A compiler for a variant of the C programming language, with extensions for
"single program, multiple data" (SPMD) programming.

%files
%license LICENSE.txt
%{_bindir}/%{name}
%{_bindir}/check_isa

#-------------------------------------------------------------------------------
%prep
%if %{with_snapshot}
%autosetup -n %{name}-%{commit} -p1
%else
%autosetup -n %{name}-%{version} -p1
%endif

# Use gcc rather clang by default
sed -i 's|set(CMAKE_C_COMPILER "clang")|set(CMAKE_C_COMPILER "gcc")|g' CMakeLists.txt
sed -i 's|set(CMAKE_CXX_COMPILER "clang++")|set(CMAKE_CXX_COMPILER "g++")|g' CMakeLists.txt

# Delete unrecognized command options from gcc-c++
sed -i 's|-Wno-c99-extensions -Wno-deprecated-register||g' CMakeLists.txt

# Suppress warning message as error
sed -i 's| -Werror ||g' CMakeLists.txt 

# Fix all Python shebangs recursively in .
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" .

%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DCMAKE_EXE_LINKER_FLAGS="%{optflags} -fPIE" \
	-DISPC_INCLUDE_EXAMPLES=OFF \
	-DISPC_INCLUDE_TESTS=OFF \
	-DISPC_NO_DUMPS=ON
%make_build

%install
%make_install -C build



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13340 |21mr|istack-commons-2.21-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           istack-commons
Version:        2.21
Release:        11
Summary:        Common code for some Glassfish projects
License:        CDDL-1.1 and GPLv2 with exceptions
URL:            http://istack-commons.java.net
# svn export https://svn.java.net/svn/istack-commons~svn/tags/istack-commons-2.21/ istack-commons-2.21
# find istack-commons-2.21/ -name '*.class' -delete
# find istack-commons-2.21/ -name '*.jar' -delete
# rm -rf istack-commons-2.21/test/lib/*.zip istack-commons-2.21/runtime/lib/*.zip
# tar -zcvf istack-commons-2.21.tar.gz istack-commons-2.21
Source0:        %{name}-%{version}.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(args4j:args4j)
BuildRequires:  mvn(com.sun.codemodel:codemodel)
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-aether-provider)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:file-management)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-http-lightweight)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-io)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-connector-basic)
BuildRequires:  mvn(org.eclipse.aether:aether-impl)
BuildRequires:  mvn(org.eclipse.aether:aether-spi)
BuildRequires:  mvn(org.eclipse.aether:aether-transport-file)
BuildRequires:  mvn(org.eclipse.aether:aether-transport-wagon)
BuildRequires:  mvn(org.eclipse.aether:aether-util)
BuildRequires:  mvn(org.testng:testng)

%description
Code shared between JAXP, JAXB, SAAJ, and JAX-WS projects.

%package maven-plugin
Summary:        istack-commons Maven Mojo
Obsoletes:      maven-istack-commons-plugin < %{version}-%{release}
Provides:       maven-istack-commons-plugin = %{version}-%{release}

%description maven-plugin
This package contains the istack-commons Maven Mojo.

%package -n import-properties-plugin
Summary:        istack-commons import properties plugin

%description -n import-properties-plugin
This package contains the istack-commons import properties Maven Mojo.

%package buildtools
Summary:        istack-commons buildtools
Obsoletes:      %{name} < %{version}-%{release}

%description buildtools
This package contains istack-commons buildtools.

%package runtime
Summary:        istack-commons runtime
Obsoletes:      %{name} < %{version}-%{release}

%description runtime
This package contains istack-commons runtime.

%package soimp
Summary:        istack-commons soimp
Obsoletes:      %{name} < %{version}-%{release}

%description soimp
This package contains istack-commons soimp.

%package test
Summary:        istack-commons test
Obsoletes:      %{name} < %{version}-%{release}

%description test
This package contains istack-commons test.

%package tools
Summary:        istack-commons tools
Obsoletes:      %{name} < %{version}-%{release}

%description tools
This package contains istack-commons tools.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin

# backward compatibility symlinks
%mvn_file com.sun.istack:%{name}-buildtools %{name}-buildtools %{name}/%{name}-buildtools
%mvn_file com.sun.istack:%{name}-runtime %{name}-runtime %{name}/%{name}-runtime
%mvn_file com.sun.istack:%{name}-soimp %{name}-soimp %{name}/%{name}-soimp
%mvn_file com.sun.istack:%{name}-test %{name}-test %{name}/%{name}-test
%mvn_file com.sun.istack:%{name}-tools %{name}-tools %{name}/%{name}-tools

# Unused & unavailable dep
%pom_remove_dep org.sonatype.sisu:sisu-inject-plexus import-properties-plugin

# get rid of scope "import", our tools don't know how to handle such deps
%pom_remove_dep com.sun:tools tools
%pom_add_dep com.sun:tools tools

%build

%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-istack-commons
%dir %{_javadir}/%{name}
%doc Licence.txt

%files -n %{name}-maven-plugin -f .mfiles-%{name}-maven-plugin
%doc Licence.txt

%files -n import-properties-plugin -f .mfiles-import-properties-plugin
%doc Licence.txt

%files buildtools -f .mfiles-istack-commons-buildtools
%doc Licence.txt

%files runtime -f .mfiles-istack-commons-runtime
%doc Licence.txt

%files soimp -f .mfiles-istack-commons-soimp
%doc Licence.txt

%files test -f .mfiles-istack-commons-test
%doc Licence.txt

%files tools -f .mfiles-istack-commons-tools
%doc Licence.txt

%files javadoc -f .mfiles-javadoc
%doc Licence.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13341 |21mr|itext-2.1.7-44
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global alternate_name iText

Summary:          A Free Java-PDF library
Name:             itext
Version:          2.1.7
Release:          44
#src/toolbox/com/lowagie/toolbox/Versions.java is MPLv1.1 or MIT
#src/toolbox/com/lowagie/toolbox/plugins/XML2Bookmarks.java is MPLv1.1 or LGPLv2+
#src/rups/com/lowagie/rups/Rups.java is LGPLv2+
#src/rups/com/lowagie/rups/view/icons/ are under CC-BY
#src/core/com/lowagie/text/xml/XmlDomWriter.java is under ASL 2.0
#src/core/com/lowagie/text/pdf/LZWDecoder.java is under BSD
#src/core/com/lowagie/text/pdf/fonts/cmaps/CodespaceRange.java is under BSD
#src/core/com/lowagie/text/pdf/fonts are under APAFML
#src/core/com/lowagie/text/pdf/codec/TIFFConstants.java is under libtiff
License:          (LGPLv2+ or MPLv1.1) and ASL 2.0 and BSD and LGPLv2+ and (MPLv1.1 or MIT) and CC-BY and APAFML and libtiff
URL:              http://www.lowagie.com/iText/
# sh itext-create-tarball.sh 2.1.7
Source0:          %{name}-%{version}.tar.xz
Source2:          http://repo2.maven.org/maven2/com/lowagie/itext/%{version}/itext-%{version}.pom
Source3:          itext-rups.sh
Source4:          itext-rups.desktop
Source6:          itext-toolbox.desktop
# cvs -d :pserver:anonymous@dev.eclipse.org:/cvsroot/tools checkout -r v2_1_7 org.eclipse.orbit/com.lowagie.text/META-INF/MANIFEST.MF
# tar cf export-manifest.tar org.eclipse.orbit/com.lowagie.text/META-INF/MANIFEST.MF
Source7:          export-manifest.tar
Source8:          http://repo2.maven.org/maven2/com/lowagie/itext-rtf/%{version}/itext-rtf-%{version}.pom
Source9:          http://repo2.maven.org/maven2/com/lowagie/itext-rups/%{version}/itext-rups-%{version}.pom
Source10:         itext-create-tarball.sh
Patch1:           itext-2.1.5-pdftk.patch

# The iText POM specifies that it requires bouncycastle's "jdk14" JARs
# but we have "jdk16".
#Patch2:           itext-2.1.7-fixpomforbc.patch
# Maven's Doxia plugin explicitly requires these XML output interfaces
# of iText.  They were removed in iText 1.4.4 [1].  iText versions prior
# to 1.5.x had questionable licensing [2] so rather than try to create
# an itext1 package, I have forward-ported these classes.  The doxia
# developers have told me on IRC on 2009-08-27 that the iText dependency
# will likely be deprecated meaning we won't have to keep these forever.
#
# I've opened a bug with iText:
#
# https://sourceforge.net/tracker/?func=detail&aid=2846427&group_id=15255&atid=365255
#
# and commented on the Doxia but related to this:
#
# http://jira.codehaus.org/browse/DOXIA-53
#
# -- Andrew Overholt, 2009-08-28
#
# [1]
# http://www.1t3xt.com/about/history.php?branch=history.10&node=14
# [2]
# https://bugzilla.redhat.com/show_bug.cgi?id=236309
Patch3:           itext-xmloutput.patch
# Use orbit manifest so the manifest exports packages properly.
Patch4:           itext-manifest.patch
Patch5:           itext-remove-unmappable.patch
# Port to bouncycastle 1.50 Thanks to Michal Srb
Patch6:           0001-Port-to-bouncycastle-1.50.patch
Patch7:           itext-2.1.7-bouncycastle1.52.patch

#1 Fix for transparency issue with setClip method in PdfGraphics2D
#2 Fix for transparency bleeding for Batik gradients
#3 Fix for stroke opacity state in the create() method of PdfGraphics2D
#4 Method to directly write AWT GlyphVectors to PDF for Indic scripts support
#5 No character spacing in justified lines with a single word
# Origin: other, http://jaspersoft.artifactoryonline.com/jaspersoft/third-party-ce-artifacts/com/lowagie/itext/2.1.7.js5/itext-2.1.7.js5-sources.jar
Patch8:           itext-2.1.7-tibco-changes.patch
# fix CVE-2017-9096
Patch9:           itext-Prevent-XXE-vulnerability.patch
BuildRequires:    ant
BuildRequires:    bouncycastle-mail >= 1.52
BuildRequires:    bouncycastle-pkix >= 1.52
BuildRequires:    desktop-file-utils
BuildRequires:    dom4j
BuildRequires:    imagemagick
BuildRequires:    pdf-renderer
BuildRequires:    java-devel >= 1.7
BuildRequires:    jpackage-utils
# pom_* macros are now located in javapackages-local
BuildRequires:    javapackages-local


Group:          Development/Java
BuildArch:        noarch

Provides:         %{alternate_name} = %{version}-%{release}
Requires:         %{name}-core = %{version}-%{release}

%description
iText is a library that allows you to generate PDF files on the fly. The iText
classes are very useful for people who need to generate read-only, platform
independent documents containing text, lists, tables and images. The library is
especially useful in combination with Java(TM) technology-based Servlets: The
look and feel of HTML is browser dependent; with iText and PDF you can control
exactly how your servlet's output will look.

%package core
Summary:          The core iText Java-PDF library
Group:          Development/Java
BuildArch:        noarch
Requires:         bouncycastle-mail >= 1.52
Requires:         bouncycastle-pkix >= 1.52
Requires:         javapackages-filesystem

%description core
The core package contains the main iText library and the related maven POM
files.

%package rtf
Summary:        Library to output Rich Text Files
Group:          Development/Java
BuildArch:      noarch
License:        MPLv1.1 or LGPLv2+
Requires:       %{name}-core = %{version}-%{release}

%description rtf
The RTF package is an extension of the iText library and allows iText to output
Rich Text Files in addition to PDF files. These files can then be viewed and
edited with RTF viewers such as OpenOffice.org Writer.

%package rups
Summary:        Reading/Updating PDF Syntax
Group:          Development/Java
BuildArch:      noarch
License:        LGPLv2+ and CC-BY
Requires:       %{name}-core = %{version}-%{release}
Requires:       dom4j
Requires:       pdf-renderer

%description rups
iText RUPS is a tool that combines SUN's PDF Renderer (to view PDF documents),
iText's PdfReader (to inspect the internal structure of a PDF file), and
iText's PdfStamper to manipulate a PDF file.

%package toolbox
Summary:        Some %{alternate_name} tools
Group:          Development/Java
BuildArch:      noarch
License:        MPLv1.1 or MIT
Requires:       %{name} = %{version}-%{release}

%description toolbox
iText is a free open source Java-PDF library released on SF under the MPL/LGPL;
iText comes with a simple GUI: the iText toolbox. The original developers of
iText want to publish this toolbox as a separate project under the more
permissive MIT license. This is a utility that allows you to use a number of
iText tools.

%package javadoc
Summary:        Javadoc for %{alternate_name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Requires:       %{name}-core = %{version}-%{release}
Requires:       javapackages-filesystem

%description javadoc
API documentation for the %{alternate_name} package.


%prep
%setup -q -c -T -a 0
%patch1 -p1 -b .pdftk
%patch3 -p0 -b .xmloutput
%patch4 -p0
%patch5 -p0
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1

sed -i.bcprov1.54 "s|algorithmidentifier.getObjectId().getId|algorithmidentifier.getAlgorithm().getId|" \
 src/core/com/lowagie/text/pdf/PdfPublicKeySecurityHandler.java

cp -pr %{SOURCE2} JPP-itext.pom
%pom_remove_dep bouncycastle:bcmail-jdk14 JPP-itext.pom
%pom_add_dep org.bouncycastle:bcmail-jdk15on JPP-itext.pom
%pom_remove_dep bouncycastle:bcprov-jdk14 JPP-itext.pom
%pom_add_dep org.bouncycastle:bcprov-jdk15on JPP-itext.pom
%pom_remove_dep bouncycastle:bctsp-jdk14 JPP-itext.pom
%pom_add_dep org.bouncycastle:bcpkix-jdk15on JPP-itext.pom

cp -pr %{SOURCE8} JPP-%{name}-rtf.pom
cp -pr %{SOURCE9} JPP-%{name}-rups.pom

for p in rtf rups ; do
%pom_remove_dep bouncycastle:bcmail-jdk14 JPP-%{name}-${p}.pom
%pom_add_dep org.bouncycastle:bcmail-jdk15on JPP-%{name}-${p}.pom
%pom_remove_dep bouncycastle:bcprov-jdk14 JPP-%{name}-${p}.pom
%pom_add_dep org.bouncycastle:bcprov-jdk15on JPP-%{name}-${p}.pom
%pom_remove_dep bouncycastle:bctsp-jdk14 JPP-%{name}-${p}.pom
%pom_add_dep org.bouncycastle:bcpkix-jdk15on JPP-%{name}-${p}.pom
done

# move manifest to build area
tar -xf %{SOURCE7}
mv org.eclipse.orbit/com.lowagie.text/META-INF/MANIFEST.MF src/ant

# Remove preshipped binaries
find . -name "*.jar" -exec rm {} \;

# Fix encoding issues
sed 's/\r//' src/rups/com/lowagie/rups/view/icons/copyright_notice.txt > tmpfile
touch -r src/rups/com/lowagie/rups/view/icons/copyright_notice.txt tmpfile
mv -f tmpfile src/rups/com/lowagie/rups/view/icons/copyright_notice.txt

mkdir lib
build-jar-repository -s -p lib bcprov bcmail bcpkix pdf-renderer dom4j

# Remove jdk & version numbers from classpath entries
for file in src/ant/{*,.ant*}; do
 for jarname in bcmail bcprov dom4j; do
  sed -i "s|$jarname-.*\.jar|$jarname.jar|" $file
 done
done
for file in src/ant/{*,.ant*}; do
 sed -i "s|bctsp-.*\.jar|bcpkix.jar|" $file
done

# Setting debug="on" on javac part of the build script.
sed -i 's|destdir|debug="on" destdir|g' src/ant/compile.xml
sed -i 's|debug="true"||g' src/ant/compile.xml

# Specify encoding, otherwise javadoc blows
sed -i 's|author|Encoding="ISO-8859-1" author|' src/ant/site.xml
# and set max memory higher or we run out
sed -i 's|maxmemory="128m"|maxmemory="512m"|' src/ant/site.xml

sed -i '/Class-Path/d' src/ant/compile.xml
sed -i 's,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301,' src/core/com/lowagie/text/lgpl.txt

%build
export CLASSPATH=$(build-classpath bcprov bcmail bcpkix pdf-renderer dom4j)
pushd src
 ant -Ditext.jdk.core=1.6 \
     -Ditext.jdk.rups=1.6 \
     -Ditext.jdk.toolbox=1.6 \
     jar jar.rups jar.rtf jar.toolbox javadoc
popd

%install
# jars
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p lib/iText.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
cp -p lib/iText-rtf.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}-rtf.jar
cp -p lib/iText-rups.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}-rups.jar
cp -p lib/iText-toolbox.jar \
      $RPM_BUILD_ROOT%{_javadir}/%{name}-toolbox.jar


mkdir -p $RPM_BUILD_ROOT%{_datadir}/applications

# toolbox stuff
desktop-file-install \
      --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
      %{SOURCE6}
%jpackage_script com.lowagie.toolbox.Toolbox "" "" %{name}:%{name}-toolbox:bcmail:bcprov:bctsp %{name}-toolbox true

# rups stuff
install -pm 755 %{SOURCE3} $RPM_BUILD_ROOT%{_bindir}/%{name}-rups
desktop-file-install \
      --dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
      %{SOURCE4}

# icon for rups and toolbox
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps
convert -resize 128x128 src/toolbox/com/lowagie/toolbox/1t3xt.gif %{name}.png
cp -a %{name}.png \
      $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}-rups.png
cp -a %{name}.png \
      $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/128x128/apps/%{name}-toolbox.png

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr build/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# Install the pom
install -dm 755 $RPM_BUILD_ROOT%{_mavenpomdir}
cp -pr JPP-itext.pom $RPM_BUILD_ROOT%{_mavenpomdir}
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "itext:itext"

cp -pr JPP-%{name}-rtf.pom $RPM_BUILD_ROOT%{_mavenpomdir}
%add_maven_depmap JPP-%{name}-rtf.pom %{name}-rtf.jar -f rtf
cp -pr JPP-%{name}-rups.pom $RPM_BUILD_ROOT%{_mavenpomdir}
%add_maven_depmap JPP-%{name}-rups.pom %{name}-rups.jar  -f rups

%files
%license build/bin/com/lowagie/text/{apache_license,lgpl,misc_licenses,MPL-1.1}.txt

%files core -f .mfiles
%license build/bin/com/lowagie/text/{apache_license,lgpl,misc_licenses,MPL-1.1}.txt

%files rtf -f .mfiles-rtf
%license build/bin/com/lowagie/text/{lgpl,misc_licenses,MPL-1.1}.txt

%files rups -f .mfiles-rups
%license src/rups/com/lowagie/rups/view/icons/copyright_notice.txt
%{_bindir}/%{name}-rups
%{_datadir}/applications/%{name}-rups.desktop
%{_datadir}/icons/hicolor/128x128/apps/%{name}-rups.png

%files toolbox 
%license build/bin/com/lowagie/text/{misc_licenses,MPL-1.1}.txt
%doc src/toolbox/com/lowagie/toolbox/tools.txt
%{_javadir}/%{name}-toolbox.jar
%{_bindir}/%{name}-toolbox
%{_datadir}/applications/%{name}-toolbox.desktop
%{_datadir}/icons/hicolor/128x128/apps/%{name}-toolbox.png

%files javadoc
%{_javadocdir}/%{name}
%license build/bin/com/lowagie/text/{apache_license,lgpl,misc_licenses,MPL-1.1}.txt

# -----------------------------------------------------------------------------


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13342 |21mr|itinerary-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Itinerary display application
Name:		itinerary
Version:	23.08.4
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv2+
Url:		http://kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	itinerary.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadisearch-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5gravatar-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdepim-runtime-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5libksieve-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5messagecomposer-devel
BuildRequires:	kf5messagecore-devel
BuildRequires:	kf5messagelist-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5prison-devel
BuildRequires:	kpimpkpass-devel
BuildRequires:	kpimitinerary-devel
BuildRequires:	kpublictransport-devel
BuildRequires:	kosmindoormap-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5templateparser-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5tnef-devel
BuildRequires:	kf5webengineviewer-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	openldap-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Location)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(openssl)
Requires:	%{_lib}qt5location5
Requires:	kirigami-addons


%description
Itinerary display application

%files -f kde-itinerary.lang
%{_kde5_bindir}/itinerary
%{_kde5_libdir}/libSolidExtras.so
%{_kde5_qmldir}/org/kde/solidextras/libsolidextrasqmlplugin.so
%{_kde5_qmldir}/org/kde/solidextras/qmldir
%{_kde5_applicationsdir}/org.kde.itinerary.desktop
%{_kde5_notificationsdir}/itinerary.notifyrc
%{_appdatadir}/org.kde.itinerary.appdata.xml
%{_kde5_datadir}/qlogging-categories5/org_kde_itinerary.categories
%{_kde5_datadir}/icons/hicolor/*/*/org.kde.itinerary.*
%{_kde5_plugindir}/thumbcreator/itinerarythumbnail.so

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang kde-itinerary kde-itinerary-android._static_ kde-itinerary-android kde-itinerary.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13343 |21mr|itstool-2.0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ITS-based XML translation tool
Name:		itstool
Version:	2.0.6
Release:	3
License:	GPLv3+
Group:		System/Internationalization
Url:		http://itstool.org
Source0:	http://files.itstool.org/itstool/%{name}-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	python3-libxml2
Requires:	python3-libxml2

%description
ITS Tool allows you to translate XML documents with PO files, using rules from
the W3C Internationalization Tag Set (ITS) to determine what to translate and
how to separate it into PO file messages.

%files
%doc NEWS
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13344 |21mr|iw-5.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Configuration utility for wireless devices
Name:		iw
Version:	5.9
Release:	2
License:	BSD
Group:		System/Base
Url:		http://linuxwireless.org/en/users/Documentation/iw/
Source0:	http://kernel.org/pub/software/network/iw/iw-%{version}.tar.xz
BuildRequires:	pkgconfig(libnl-3.0)

%description
iw is a new nl80211 based CLI configuration utility for wireless devices.
Currently you can only use this utility to configure devices which use a
mac80211 driver as these are the new drivers being written.

%prep
%setup -q

%build
%setup_compile_flags
%make

%install
%makeinstall \
	PREFIX=%{buildroot} \
	BINDIR=%{buildroot}/sbin \
	MANDIR=%{buildroot}/%{_mandir}

%files
%doc COPYING README
/sbin/iw
%{_mandir}/man8/iw.8.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13345 |21mr|jabrt-1.0-10.git0a3b423
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 0a3b42373f38883cc1f68388eba33967baac8980
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           jabrt
Version:        1.0
Release:        10.git%{shortcommit}
Summary:        ABRT Java bindings

License:        GPLv2+
URL:            https://github.com/mozeq/%{name}
Source0:        http://jmoskovc.fedorapeople.org/jabrt-1.0-git%{shortcommit}.tar.gz
Source1:        http://www.gnu.org/licenses/gpl-2.0.txt
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.github.jnr:jnr-unixsocket)
BuildRequires:  mvn(junit:junit)


%description
ABRT Java bindings providing a convenient way to report problems

%package javadoc
Summary: API documentation for %{name}

%description javadoc
This package contains %{summary}.

%prep
%setup -q -n %{name}-%{version}-%{commit}

cp %{SOURCE1} LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE

%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13346 |21mr|jack-1.9.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# D-Bus support enabled by default, set "--with nodbus" to disable
%bcond_without dbus
# Build classic jackd executable as well
%bcond_without classic
# Disable if you need to avoid a circular dependency:
# doxygen requires Qt, which in turn requires PulseAudio,
# which requires jackit...
%bcond_with doxygen

%define	major 0
%define	libname %mklibname %{name} %{major}
%define	libnet %mklibname jacknet %{major}
%define	libserver %mklibname jackserver %{major}
%define	devname %mklibname %{name} -d

Summary:	The Jack Audio Connection Kit 2
Name:		jack
Version:	1.9.16
Release:	2
Epoch:		1
# Lib is LGPL, apps are GPL
License:	LGPLv2+ and GPLv2+
Group:		System/Servers
Url:		http://jackaudio.org/
Source0:	http://jackaudio.org/downloads/%{name}2-%{version}.tar.gz
Patch0:		jack-1.9.16-fix-pkgconfig-file.patch
%if %{with doxygen}
Patch1:		jack-1.9.16-fix-doxygen-config.patch
BuildRequires:	doxygen
%endif
BuildRequires:	eigen3 >= 3.1.2
BuildRequires:	python >= 3.5
BuildRequires:	fltk-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(celt)
%if %{with dbus}
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
%endif
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libavc1394)
BuildRequires:	pkgconfig(libiec61883)
BuildRequires:	pkgconfig(libraw1394)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(systemd)
%rename	jackit


%description
This package provides the C++ multiprocessor implementation of the Jack
Audio Connection Kit (JACK), also known as JACK2. This package comes with
enabled D-Bus support for JACK2, which is required by the LADI
session handler.
JACK is a low-latency audio server, written primarily for the Linux
operating system. It can connect a number of different applications to
an audio device, as well as allowing them to share audio between
themselves. Its clients can run in their own processes (ie. as a
normal application), or can they can run within a JACK server (ie. a
"plugin").

JACK is different from other audio server efforts in that it has been
designed from the ground up to be suitable for professional audio
work. This means that it focuses on two key areas:	synchronous
execution of all clients, and low latency operation.

%files
%doc README_NETJACK2
%config(noreplace) %{_sysconfdir}/%{name}/example.conf
%{_userunitdir}/%{name}@.service
%{_bindir}/%{name}_zombie
%{_bindir}/%{name}_bufsize
%{_bindir}/%{name}_rec
%{_bindir}/%{name}_test
%{_bindir}/%{name}_cpu
%{_bindir}/%{name}_server_control
%{_bindir}/%{name}_thru
%{_bindir}/%{name}_cpu_load
%{_bindir}/%{name}_load
%{_bindir}/%{name}_unload
%{_bindir}/%{name}_monitor_client
%{_bindir}/%{name}_connect
%{_bindir}/%{name}_disconnect
%{_bindir}/%{name}_lsp
%{_bindir}/%{name}_freewheel
%{_bindir}/%{name}_evmon
%{_bindir}/%{name}_alias
%{_bindir}/%{name}_property
%{_bindir}/alsa_in
%{_bindir}/alsa_out
%{_bindir}/%{name}_netsource
%{_bindir}/%{name}_iodelay
%{_bindir}/%{name}_latent_client
%{_bindir}/%{name}_midi_dump
%{_bindir}/%{name}_session_notify
%{_bindir}/%{name}_midi_latency_test
%{_bindir}/%{name}_net_master
%{_bindir}/%{name}_net_slave
%if %{with dbus}
%{_bindir}/jackdbus
%{_datadir}/dbus-1/services/org.jackaudio.service
%{_bindir}/%{name}_control
%endif
%{_bindir}/jackd
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*.so
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library associated with jack
Group:		System/Libraries

%description -n %{libname}
This package contains a shared library for the Jack Audio Connection Kit.

%files -n %{libname}
%{_libdir}/libjack.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnet}
Summary:	Library associated with jack
Group:		System/Libraries
Conflicts:	%{_lib}jack0 < 1.9.8-11

%description -n %{libnet}
This package contains a shared library for the Jack Audio Connection Kit.

%files -n %{libnet}
%{_libdir}/libjacknet.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libserver}
Summary:	Library associated with jack server, needed for jackd/jackdbus
Group:		System/Libraries
Conflicts:	%{libname} < 1.9.8-1

%description -n %{libserver}
This package contains a shared library for the Jack Audio Connection Kit 
Server.

%files -n %{libserver}
%{_libdir}/libjackserver.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for Jack
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnet} = %{EVRD}
Requires:	%{libserver} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for the Jack Audio Connection Kit.

%files -n %{devname}
%if %{with doxygen}
%doc %{_datadir}/%{name}-audio-connection-kit/reference/html
%endif
%{_includedir}/%{name}
%{_libdir}/lib*.so
%dir %{_libdir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package example-clients
Summary:	Example clients that use Jack
Group:		Sound
Requires:	%{name}
%rename		jackit-example-clients

%description example-clients
Small example clients that use the Jack Audio Connection Kit.

%files example-clients
%{_bindir}/%{name}_metro
%{_bindir}/%{name}_midiseq
%{_bindir}/%{name}_midisine
%{_bindir}/%{name}_multiple_metro
%{_bindir}/%{name}_samplerate
%{_bindir}/%{name}_showtime
%{_bindir}/%{name}_simple_client
%{_bindir}/%{name}_transport
%{_bindir}/%{name}_wait
%{_bindir}/%{name}_simple_session_client
%{_bindir}/%{name}_simdtests

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n jack2-%{version}


%build
sed -i -e 's|html_docs_source_dir = "build/default/html"|html_docs_source_dir = "html"|' wscript

%setup_compile_flags
export CC=%{__cc}
export CXX=%{__cxx}
export cc=%{__cc}
export AR=%{__ar}
export RANLIB=%{__ranlib}

# still disable ffado firewire
./waf configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--alsa \
%if %{with dbus}
	--dbus \
%if %{with classic}
	--classic \
%endif
%endif
%if %{with doxygen}
	--doxygen=yes \
%endif
	--systemd-unit \
	--firewire=no \
	-j4

./waf


%install
./waf install --destdir=%{buildroot}

# Fix permissions
chmod 0755 %{buildroot}%{_libdir}/*.so*
chmod 0755 %{buildroot}%{_libdir}/%{name}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13347 |21mr|jackcess-2.1.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackcess
Version:       2.1.3
Release:       9
Summary:       Java library for reading from and writing to MS Access databases
License:       ASL 2.0
URL:           http://jackcess.sourceforge.net/
# svn checkout http://svn.code.sf.net/p/jackcess/code/jackcess/tags/jackcess-2.1.3
# tar cJf jackcess-2.1.3.tar.xz jackcess-2.1.3
Source0:       %{name}-%{version}.tar.xz

Patch0:        jackcess-2.1.3-Remove-unreliable-test-for-ancient-dates.patch

BuildRequires: maven-local
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:12)
BuildRequires: mvn(org.apache.poi:poi)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jackcess is a pure Java library for reading from and
writing to MS Access databases (currently supporting
versions 2000-2013).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%patch0 -p1

# com.healthmarketscience:openhms-parent:1.1.1
%pom_remove_parent
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-changes-plugin

%pom_change_dep :log4j ::12

%mvn_file :%{name} %{name}
%mvn_file :%{name}-tests::tests: %{name}-tests
%mvn_package :::tests:

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc TODO.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13348 |21mr|jackcess-encrypt-2.1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackcess-encrypt
Version:       2.1.1
Release:       8
Summary:       Java implementation of the encryption service for MS Access
License:       ASL 2.0
URL:           http://jackcessencrypt.sourceforge.net/
# svn checkout http://svn.code.sf.net/p/jackcessencrypt/code/tags/jackcess-encrypt-2.1.1
# tar cJf jackcess-encrypt-2.1.1.tar.xz jackcess-encrypt-2.1.1
Source0:       %{name}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(com.healthmarketscience.jackcess:jackcess)
BuildRequires: mvn(com.healthmarketscience.jackcess:jackcess::tests:)
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(com.sun.xml.bind:jaxb-xjc)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.codehaus.mojo:jaxb2-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jackcess Encrypt is an extension library for the Jackcess project
which implements support for some forms of Microsoft Access and
Microsoft Money encryption.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

# com.healthmarketscience:openhms-parent:1.1.1
%pom_remove_parent
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-changes-plugin

# Switch to jaxb2-maven-plugin
# com.sun.tools.xjc.maven2:maven-jaxb-plugin:1.0
%pom_remove_plugin com.sun.tools.xjc.maven2:maven-jaxb-plugin
%pom_add_plugin org.codehaus.mojo:jaxb2-maven-plugin:1.6 . '
<executions>
    <execution>
        <id>jaxb1</id>
        <goals>
            <goal>xjc</goal>
        </goals>
        <configuration>
            <schemaDirectory>${project.basedir}/src/main/resources/com/healthmarketscience/jackcess/cryptmodel</schemaDirectory>
            <packageName>com.healthmarketscience.jackcess.cryptmodel</packageName>
            <schemaFiles>encryptionInfo.xsd</schemaFiles>
            <strict>false</strict>
        </configuration>  
    </execution>
    <execution>
        <id>jaxb2</id>
        <goals>
            <goal>xjc</goal>
        </goals>
        <configuration>
            <schemaDirectory>${project.basedir}/src/main/resources/com/healthmarketscience/jackcess/cryptmodel</schemaDirectory>
            <packageName>com.healthmarketscience.jackcess.cryptmodel.password</packageName>
            <schemaFiles>encryptionInfo.xsd,passwordEncryptor.xsd</schemaFiles>
            <clearOutputDir>false</clearOutputDir>
            <strict>false</strict>
        </configuration>  
    </execution>
    <execution>
        <id>jaxb3</id>
        <goals>
            <goal>xjc</goal>
        </goals>
        <configuration>
            <schemaDirectory>${project.basedir}/src/main/resources/com/healthmarketscience/jackcess/cryptmodel</schemaDirectory>
            <packageName>com.healthmarketscience.jackcess.cryptmodel.cert</packageName>
            <schemaFiles>certificateEncryptor.xsd</schemaFiles>
            <clearOutputDir>false</clearOutputDir>
            <strict>false</strict>
        </configuration>  
    </execution>
</executions>
<dependencies>
    <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-xjc</artifactId>
        <version>2.1.9</version>
    </dependency>
    <dependency>
        <groupId>com.sun.xml.bind</groupId>
        <artifactId>jaxb-impl</artifactId>
        <version>2.1.9</version>
    </dependency>          
</dependencies>'

# Use old com.healthmarketscience.jackcess:jackcess
rm -r src/test/java/com/healthmarketscience/jackcess/CryptCodecProviderTest.java

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13349 |21mr|jackson-1.9.11-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    jackson
Version: 1.9.11
Release: 17
Summary: Jackson Java JSON-processor
License: ASL 2.0 or LGPLv2
URL:     http://jackson.codehaus.org
Source0: http://jackson.codehaus.org/1.9.11/jackson-src-1.9.11.tar.gz
# Build plain jar files instead of OSGi bundles in order to avoid depending on
# BND:
Patch0:  %{name}-build-plain-jars-instead-of-osgi-bundles.patch
# Don't require a repackaged version of ASM:
Patch1:  %{name}-dont-require-repackaged-asm.patch
# Don't bundle the ASM classes:
Patch2:  %{name}-dont-bundle-asm.patch
# fix for JACKSON-875
Patch3:  %{name}-1.9.11-to-1.9.13.patch
# Fix javadoc build
Patch4:  %{name}-1.9.11-javadoc.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Requires: joda-time >= 1.6.2
Requires: stax2-api >= 3.1.1
Requires: jsr-311 >= 1.1.1
Requires: objectweb-asm3 >= 3.3

BuildRequires: javapackages-local
BuildRequires: ant >= 1.8.2
BuildRequires: joda-time >= 1.6.2
BuildRequires: stax2-api >= 3.1.1
BuildRequires: jsr-311 >= 1.1.1
BuildRequires: junit
BuildRequires: objectweb-asm3 >= 3.3
BuildRequires: cglib >= 2.2

%description
JSON processor (JSON parser + JSON generator) written in Java. Beyond basic
JSON reading/writing (parsing, generating), it also offers full node-based Tree
Model, as well as full OJM (Object/Json Mapper) data binding functionality.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-src-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p0

# Remove all the binary jar files, as the packaging policies
# forbids using them:
find . -type f -name '*.jar' -exec rm {} \;

# Remove some tests to avoid additional dependencies:
rm src/test/org/codehaus/jackson/map/interop/TestHibernate.java
rm src/perf/perf/TestJsonPerf.java
rm src/test/org/codehaus/jackson/map/interop/TestGoogleCollections.java
rm src/test/org/codehaus/jackson/map/interop/TestGroovyBeans.java

# Make symbolic links to the jar files expected by the ant build
# scripts:
ln -s $(build-classpath joda-time) lib/ext/joda-time.jar
ln -s $(build-classpath stax2-api) lib/xml/sta2-api.jar
ln -s $(build-classpath jsr-311) lib/jaxrs/jsr-311.jar
ln -s $(build-classpath objectweb-asm3/asm) lib/ext/asm/asm.jar
ln -s $(build-classpath objectweb-asm3/asm) lib/repackaged/jackson-asm.jar
ln -s $(build-classpath cglib/cglib) lib/ext/cglib/cglib-nodep.jar
ln -s $(build-classpath junit) lib/junit/junit.jar

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," \
 release-notes/lgpl/LGPL2.1

native2ascii -encoding UTF8 src/test/org/codehaus/jackson/jaxrs/TestUntouchables.java \
 src/test/org/codehaus/jackson/jaxrs/TestUntouchables.java

%build

ant dist

%install

# For each jar file install it and its pom:
jars='
jackson-core-asl
jackson-mapper-asl
jackson-xc
jackson-smile
jackson-mrbean
jackson-jaxrs
'
for jar in ${jars}
do
  %mvn_artifact dist/${jar}-%{version}.pom dist/${jar}-%{version}.jar
done

%mvn_install -J dist/javadoc/

%files -f .mfiles
%doc README.txt
%doc release-notes

%files javadoc -f .mfiles-javadoc
%doc README.txt
%doc release-notes


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13350 |21mr|jackson-annotations-2.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-annotations
Version:       2.9.9
Release:       1
Summary:       Core annotations for Jackson data processor
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-annotations/
Source0:       https://github.com/FasterXML/jackson-annotations/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson:jackson-parent:pom:)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Core annotations used for value types,
used by Jackson data-binding package.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p src/main/resources/META-INF/LICENSE .
sed -i 's/\r//' LICENSE

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md release-notes/*
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13351 |21mr|jackson-bom-2.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-bom
Version:       2.9.9
Release:       1
Summary:       Bill of materials POM for Jackson projects
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-bom
Source0:       https://github.com/FasterXML/jackson-bom/archive/%{name}-%{version}.tar.gz
# Upstream chooses not to include licenses with their pom only projects:
# https://github.com/FasterXML/jackson-parent/issues/1
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson:jackson-parent:pom:) >= 2.7.1

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A "bill of materials" POM for Jackson dependencies.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

# Disable plugins not needed during RPM builds
%pom_remove_plugin ":maven-enforcer-plugin" base

# New EE coords
%pom_change_dep "javax.activation:javax.activation-api" "jakarta.activation:jakarta.activation-api" base

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13352 |21mr|jackson-core-2.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-core
Version:       2.9.9
Release:       1
Summary:       Core part of Jackson
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-core/
Source0:       https://github.com/FasterXML/jackson-core/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%ifarch %{arm}
# Speed up builds on 32bit arm in case we get such a builder
BuildRequires: java-1.8.0-openjdk-aarch32-devel
%endif

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Core part of Jackson that defines Streaming API as well
as basic shared abstractions.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# Remove plugins unnecessary for RPM builds
%pom_remove_plugin ":maven-enforcer-plugin"

cp -p src/main/resources/META-INF/LICENSE .
cp -p src/main/resources/META-INF/NOTICE .
sed -i 's/\r//' LICENSE NOTICE

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md release-notes/*
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13353 |21mr|jackson-databind-2.9.10.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-databind
Version:       2.9.10.8
Release:       1
Summary:       General data-binding package for Jackson (2.x)
License:       ASL 2.0 and LGPLv2+
URL:           https://github.com/FasterXML/jackson-databind/
Source0:       https://github.com/FasterXML/jackson-databind/archive/%{name}-%{version}.tar.gz
Patch0: CVE-2020-36518.patch
Patch1: CVE-2022-42003.patch
Patch2: CVE-2022-42004.patch
BuildRequires:  maven-local

# TODO: Revert back to version macro when versions align again.
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= 2.9.9
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= 2.9.9
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= 2.9.9
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.powermock:powermock-api-mockito)
BuildRequires:  mvn(org.powermock:powermock-module-junit4)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The general-purpose data-binding functionality and tree-model for Jackson Data
Processor. It builds on core streaming parser/generator package, and uses
Jackson Annotations for configuration.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%autopatch -p1

# Remove plugins unnecessary for RPM builds
%pom_remove_plugin ":maven-enforcer-plugin"

cp -p src/main/resources/META-INF/LICENSE .
cp -p src/main/resources/META-INF/NOTICE .
sed -i 's/\r//' LICENSE NOTICE

# unavailable test deps
%pom_remove_dep javax.measure:jsr-275
rm src/test/java/com/fasterxml/jackson/databind/introspect/NoClassDefFoundWorkaroundTest.java
%pom_xpath_remove pom:classpathDependencyExcludes

# org.powermock.reflect.exceptions.FieldNotFoundException: Field 'fTestClass' was not found in class org.junit.internal.runners.MethodValidator.
rm src/test/java/com/fasterxml/jackson/databind/type/TestTypeFactoryWithClassLoader.java

# Off test that require connection with the web
rm src/test/java/com/fasterxml/jackson/databind/ser/jdk/JDKTypeSerializationTest.java \
 src/test/java/com/fasterxml/jackson/databind/deser/jdk/JDKStringLikeTypesTest.java \
 src/test/java/com/fasterxml/jackson/databind/TestJDKSerialization.java

%mvn_file : %{name}

%build
%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%doc README.md release-notes/*
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13354 |21mr|jackson-dataformats-binary-2.9.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Allow conditionally building extra data format modules
# that require additional external dependencies
%bcond_with extra_dataformats
# Extra formats are disabled for now because deps in
# Fedora are not uptodate enough

Name:          jackson-dataformats-binary
Version:       2.9.8
Release:       2
Summary:       Jackson standard binary data format backends
# One file is BSD licensed: protobuf/src/main/resources/descriptor.proto
License:       ASL 2.0 and BSD
URL:           https://github.com/FasterXML/jackson-dataformats-binary
Source0:       https://github.com/FasterXML/jackson-dataformats-binary/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
%if %{with extra_dataformats}
BuildRequires:  mvn(ch.qos.logback:logback-classic)
BuildRequires:  mvn(com.squareup:protoparser)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.apache.avro:avro)
%endif

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Parent pom for Jackson binary dataformats.

%if %{with extra_dataformats}
%package -n jackson-dataformat-avro
Summary: Support for reading and writing AVRO-encoded data via Jackson abstractions

%description -n jackson-dataformat-avro
Jackson extension component for reading and writing data encoded using Apache
Avro data format. Project adds necessary abstractions on top to make things
work with other Jackson functionality. It relies on standard Avro library for
Avro Schema handling, and some parts of deserialization/serialization.

%package -n jackson-dataformat-protobuf
Summary: Support for reading and writing protobuf-encoded data via Jackson abstractions

%description -n jackson-dataformat-protobuf
Jackson extension component for reading and writing Protobuf encoded data
(see protobuf encoding spec). This project adds necessary abstractions on top
to make things work with other Jackson functionality; mostly just low-level
Streaming components (JsonFactory, JsonParser, JsonGenerator).
%endif

%package -n jackson-dataformat-cbor
Summary: Support for reading and writing Concise Binary Object Representation

%description -n jackson-dataformat-cbor
Jackson data format module that supports reading and writing CBOR ("Concise
Binary Object Representation") encoded data. Module extends standard Jackson
streaming API (JsonFactory, JsonParser, JsonGenerator), and as such works
seamlessly with all the higher level data abstractions (data binding, tree
model, and pluggable extensions).

%package -n jackson-dataformat-smile
Summary: Support for reading and writing Smile encoded data using Jackson abstractions

%description -n jackson-dataformat-smile
This Jackson extension handles reading and writing of data encoded in Smile
data format ("binary JSON"). It extends standard Jackson streaming API
(JsonFactory, JsonParser, JsonGenerator), and as such works seamlessly with
all the higher level data abstractions (data binding, tree model, and
pluggable extensions).

%package javadoc
Summary: Javadoc for %{name}
# Obsoletes standalone jackson-dataformat-* packages since F28
Obsoletes: jackson-dataformat-cbor-javadoc < %{version}-%{release}
Provides:  jackson-dataformat-cbor-javadoc = %{version}-%{release}
Obsoletes: jackson-dataformat-smile-javadoc < %{version}-%{release}
Provides:  jackson-dataformat-smile-javadoc = %{version}-%{release}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p ion/LICENSE .
cp -p ion/NOTICE .
sed -i 's/\r//' LICENSE NOTICE

%if %{without extra_dataformats}
%pom_disable_module avro
%pom_disable_module protobuf
%endif

# Test dep lombok is not in Fedora
%pom_remove_dep org.projectlombok:lombok avro

# Deps are not available in Fedora for this module
%pom_disable_module ion

%mvn_file ":{*}" jackson-dataformats/@1

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-jackson-dataformats-binary
%doc README.md release-notes/*
%license LICENSE NOTICE

%if %{with extra_dataformats}
%files -n jackson-dataformat-avro -f .mfiles-jackson-dataformat-avro
%doc avro/README.md avro/release-notes/*
%license LICENSE NOTICE

%files -n jackson-dataformat-protobuf -f .mfiles-jackson-dataformat-protobuf
%doc protobuf/README.md protobuf/release-notes/*
%license LICENSE NOTICE
%endif

%files -n jackson-dataformat-cbor -f .mfiles-jackson-dataformat-cbor
%doc cbor/README.md cbor/release-notes/*
%license LICENSE NOTICE

%files -n jackson-dataformat-smile -f .mfiles-jackson-dataformat-smile
%doc smile/README.md smile/release-notes/*
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13355 |21mr|jackson-dataformats-text-2.9.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-dataformats-text
Version:       2.9.8
Release:       2
Summary:       Jackson standard text-format data format backends
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-dataformats-text
Source0:       https://github.com/FasterXML/jackson-dataformats-text/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.yaml:snakeyaml)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Parent pom for Jackson text-format dataformats.

%package -n jackson-dataformat-csv
Summary: Support for reading and writing CSV-encoded data via Jackson abstractions

%description -n jackson-dataformat-csv
Jackson data format module for reading and writing CSV encoded data, either
as "raw" data (sequence of String arrays), or via data binding to/from Java
Objects (POJOs).

%package -n jackson-dataformat-properties
Summary: Support for reading and writing content of "Java Properties" files

%description -n jackson-dataformat-properties
Jackson data format module that supports reading and writing Java Properties
files, using naming convention to determine implied structure (by default
assuming dotted notation, but configurable from non-nested to other
separators).

%package -n jackson-dataformat-yaml
Summary: Support for reading and writing YAML-encoded data via Jackson abstractions

%description -n jackson-dataformat-yaml
Jackson extension component for reading and writing YAML encoded data.
SnakeYAML library is used for low-level YAML parsing. This project adds
necessary abstractions on top to make things work with other Jackson
functionality.

%package javadoc
Summary: Javadoc for %{name}
# Obsoletes standalone jackson-dataformat-* packages since F28
Obsoletes: jackson-dataformat-csv-javadoc < %{version}-%{release}
Provides:  jackson-dataformat-csv-javadoc = %{version}-%{release}
Obsoletes: jackson-dataformat-properties-javadoc < %{version}-%{release}
Provides:  jackson-dataformat-properties-javadoc = %{version}-%{release}
Obsoletes: jackson-dataformat-yaml-javadoc < %{version}-%{release}
Provides:  jackson-dataformat-yaml-javadoc = %{version}-%{release}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p yaml/src/main/resources/META-INF/{NOTICE,LICENSE} .
sed -i 's/\r//' LICENSE NOTICE

%mvn_file ":{*}" jackson-dataformats/@1

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-jackson-dataformats-text
%doc README.md release-notes/*
%license LICENSE NOTICE

%files -n jackson-dataformat-csv -f .mfiles-jackson-dataformat-csv
%doc csv/README.md csv/release-notes/*
%license LICENSE NOTICE

%files -n jackson-dataformat-properties -f .mfiles-jackson-dataformat-properties
%doc properties/README.md properties/release-notes/*
%license LICENSE NOTICE

%files -n jackson-dataformat-yaml -f .mfiles-jackson-dataformat-yaml
%doc yaml/README.md yaml/release-notes/*
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13356 |21mr|jackson-dataformat-xml-2.9.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-dataformat-xml
Version:       2.9.8
Release:       2
Summary:       Jackson extension component for reading and writing XML encoded data
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-dataformat-xml
Source0:       https://github.com/FasterXML/jackson-dataformat-xml/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.module:jackson-module-jaxb-annotations)
BuildRequires:  mvn(com.fasterxml.woodstox:woodstox-core)
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.woodstox:stax2-api)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Data format extension for Jackson (http://jackson.codehaus.org)
to offer alternative support for serializing POJOs as XML and
deserializing XML as POJOs. Support implemented on top of Stax API
(javax.xml.stream), by implementing core Jackson Streaming API types
like JsonGenerator, JsonParser and JsonFactory. Some data-binding types
overridden as well (ObjectMapper sub-classed as XmlMapper).

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p src/main/resources/META-INF/LICENSE .
cp -p src/main/resources/META-INF/NOTICE .
sed -i 's/\r//' LICENSE NOTICE

# Modern JREs supply this API
%pom_remove_dep "javax.xml.stream:stax-api"

%mvn_file ":{*}" jackson-dataformats/@1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md release-notes/*
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13357 |21mr|jackson-datatype-jdk8-2.9.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NB: This package can be retired after Jackson 3 is released bringing
# the minimum supported JDK to 8

Name:          jackson-datatype-jdk8
Version:       2.9.8
Release:       2
Summary:       Jackson module that adds supports for JDK 8 data types
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-modules-java8
Source0:       https://github.com/FasterXML/jackson-modules-java8/archive/jackson-modules-java8-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.mockito:mockito-core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java 8 Datatypes: support for other new Java 8 data types outside of
date/time: most notably Optional, OptionalLong, OptionalDouble.

%package -n jackson-modules-java8
Summary: Add-on modules for Jackson to support JDK 8 data types

%description -n jackson-modules-java8
This is a multi-module umbrella project for Jackson modules needed to
support Java 8 features, especially with Jackson 2.x that only requires
Java 7 for running (and until 2.7 only Java 6).

%package -n jackson-module-parameter-names
Summary: Jackson module that adds support for accessing parameter names

%description -n jackson-module-parameter-names
Parameter names: support for detecting constructor and factory method
("creator") parameters without having to use @JsonProperty annotation.

%package -n jackson-datatype-jsr310
Summary: Datatype module to make Jackson recognize Java 8 Date & Time API data types

%description -n jackson-datatype-jsr310
Java 8 Date/time: support for Java 8 date/time types (specified in JSR-310
specification.)

%package javadoc
Summary: Javadoc for %{name}
Obsoletes: jackson-datatype-jsr310-javadoc < %{version}-%{release}
Provides:  jackson-datatype-jsr310-javadoc = %{version}-%{release}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n jackson-modules-java8-jackson-modules-java8-%{version}

# Plugins not needed for RPM builds
%pom_remove_plugin ":maven-enforcer-plugin" datetime parameter-names

# Allow deprecation warnings, due to newer mockito
sed -i -e '/Werror/d' parameter-names/pom.xml

%build
%mvn_build -s

%install
%mvn_install

%files -n jackson-modules-java8 -f .mfiles-jackson-modules-java8
%doc README.md release-notes/*
%license LICENSE

%files -n jackson-module-parameter-names -f .mfiles-jackson-module-parameter-names
%doc parameter-names/README.md
%license LICENSE

%files -n jackson-datatype-jdk8 -f .mfiles-jackson-datatype-jdk8
%doc datatypes/README.md
%license LICENSE

%files -n jackson-datatype-jsr310 -f .mfiles-jackson-datatype-jsr310
%doc datetime/README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13358 |21mr|jackson-datatype-joda-2.9.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-datatype-joda
Version:       2.9.8
Release:       2
Summary:       Add-on module for Jackson to support Joda data-types
License:       ASL 2.0
URL:           http://wiki.fasterxml.com/JacksonModuleJoda
Source0:       https://github.com/FasterXML/jackson-datatype-joda/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(joda-time:joda-time)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a Jackson module that aims to provide
full support for data types of Joda date-time
library.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

sed -i 's/\r//' src/main/resources/META-INF/LICENSE
cp -p src/main/resources/META-INF/LICENSE .

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md release-notes/*
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13359 |21mr|jackson-datatypes-collections-2.9.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with jp_minimal

Name:          jackson-datatypes-collections
Version:       2.9.8
Release:       2
Summary:       Jackson datatypes: collections
# Source files without license headers https://github.com/FasterXML/jackson-datatypes-collections/issues/10
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-datatypes-collections
Source0:       https://github.com/FasterXML/jackson-datatypes-collections/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
%if %{without jp_minimal}
BuildRequires:  mvn(com.carrotsearch:hppc)
%endif

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a multi-module umbrella project for various Jackson
Data-type modules to support 3rd party Collection libraries.

Currently included are:
* Guava data-type
* HPPC data-type
* PCollections data-type

%package -n jackson-datatype-guava
Summary:       Add-on module for Jackson which handles Guava data-types

%description -n jackson-datatype-guava
Add-on datatype-support module for Jackson that handles
Guava types (currently mostly just collection ones).

%if %{without jp_minimal}
%package -n jackson-datatype-hppc
Summary:       Add-on module for Jackson to support HPPC data-types

%description -n jackson-datatype-hppc
Jackson data-type module to support JSON serialization and
deserialization of High-Performance Primitive Collections
data-types.
%endif

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

sed -i 's/\r//' hppc/src/main/resources/META-INF/LICENSE
cp -p hppc/src/main/resources/META-INF/LICENSE .

%if %{with jp_minimal}
# Disable modules with additional deps
%pom_disable_module hppc
%endif

# Deps are missing from Fedora for these modules:
%pom_disable_module eclipse-collections
%pom_disable_module pcollections

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-jackson-datatypes-collections
%doc README.md release-notes
%license LICENSE

%files -n jackson-datatype-guava -f .mfiles-jackson-datatype-guava
%doc guava/README.md guava/release-notes
%license LICENSE

%if %{without jp_minimal}
%files -n jackson-datatype-hppc -f .mfiles-jackson-datatype-hppc
%doc hppc/README.md hppc/release-notes
%license LICENSE
%endif

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13360 |21mr|jackson-jaxrs-providers-2.9.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without jp_minimal

Name:          jackson-jaxrs-providers
Version:       2.9.8
Release:       1
Summary:       Jackson JAX-RS providers
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-jaxrs-providers
Source0:       https://github.com/FasterXML/jackson-jaxrs-providers/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.module:jackson-module-jaxb-annotations)
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(javax.ws.rs:javax.ws.rs-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.woodstox:stax2-api)
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:  mvn(org.ow2.asm:asm)
%if %{without jp_minimal}
BuildRequires:  mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-cbor)
BuildRequires:  mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-smile)
BuildRequires:  mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-xml)
BuildRequires:  mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-yaml)
BuildRequires:  mvn(org.glassfish.jersey.containers:jersey-container-servlet)
BuildRequires:  mvn(org.glassfish.jersey.core:jersey-server)
BuildRequires:  mvn(org.jboss.resteasy:resteasy-jaxrs)
%endif

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a multi-module project that contains Jackson-based JAX-RS providers for
following data formats: JSON, Smile (binary JSON), XML, CBOR (another kind of
binary JSON), YAML.

%package -n jackson-jaxrs-json-provider
Summary:       Jackson-JAXRS-JSON

%description -n jackson-jaxrs-json-provider
Functionality to handle JSON input/output for JAX-RS implementations
(like Jersey and RESTeasy) using standard Jackson data binding.

%if %{without jp_minimal}
%package -n jackson-jaxrs-cbor-provider
Summary:       Jackson-JAXRS-CBOR

%description -n jackson-jaxrs-cbor-provider
Functionality to handle CBOR encoded input/output for JAX-RS implementations
(like Jersey and RESTeasy) using standard Jackson data binding.

%package -n jackson-jaxrs-smile-provider
Summary:       Jackson-JAXRS-Smile

%description -n jackson-jaxrs-smile-provider
Functionality to handle Smile (binary JSON) input/output for
JAX-RS implementations (like Jersey and RESTeasy) using standard
Jackson data binding.

%package -n jackson-jaxrs-xml-provider
Summary:       Jackson-JAXRS-XML

%description -n jackson-jaxrs-xml-provider
Functionality to handle Smile XML input/output for JAX-RS implementations
(like Jersey and RESTeasy) using standard Jackson data binding.

%package -n jackson-jaxrs-yaml-provider
Summary:       Jackson-JAXRS-YAML

%description -n jackson-jaxrs-yaml-provider
Functionality to handle YAML input/output for JAX-RS implementations
(like Jersey and RESTeasy) using standard Jackson data binding.
%endif

%package datatypes
Summary: Functionality for reading/writing core JAX-RS helper types

%description datatypes
Functionality for reading/writing core JAX-RS helper types.

%package parent
Summary: Parent for Jackson JAX-RS providers

%description parent
Parent POM for Jackson JAX-RS providers.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p xml/src/main/resources/META-INF/LICENSE .
cp -p xml/src/main/resources/META-INF/NOTICE .
sed -i 's/\r//' LICENSE NOTICE

# Disable jar with no-meta-inf-services classifier, breaks build
%pom_remove_plugin :maven-jar-plugin cbor
%pom_remove_plugin :maven-jar-plugin json
%pom_remove_plugin :maven-jar-plugin smile
%pom_remove_plugin :maven-jar-plugin xml
%pom_remove_plugin :maven-jar-plugin yaml
%pom_remove_plugin :maven-jar-plugin datatypes

# Add missing deps to fix java.lang.ClassNotFoundException during tests
%pom_add_dep com.google.guava:guava:18.0:test datatypes cbor json smile xml yaml
%pom_add_dep org.ow2.asm:asm:5.1:test cbor json smile xml yaml

# Circular dep?
%pom_remove_dep org.jboss.resteasy:resteasy-jackson2-provider json
rm json/src/test/java/com/fasterxml/jackson/jaxrs/json/resteasy/RestEasyProviderLoadingTest.java

%if %{with jp_minimal}
# Disable extra test deps
%pom_remove_dep org.glassfish.jersey.core:
%pom_remove_dep org.glassfish.jersey.containers:
# Disable extra providers
%pom_disable_module cbor
%pom_disable_module smile
%pom_disable_module xml
%pom_disable_module yaml
%endif

%build
%if %{with jp_minimal}
%mvn_build -s -f
%else
%mvn_build -s
%endif

%install
%mvn_install

%files -f .mfiles-jackson-jaxrs-base
%doc README.md release-notes/*
%license LICENSE NOTICE

%files -n jackson-jaxrs-json-provider -f .mfiles-jackson-jaxrs-json-provider
%if %{without jp_minimal}
%files -n jackson-jaxrs-cbor-provider -f .mfiles-jackson-jaxrs-cbor-provider
%files -n jackson-jaxrs-smile-provider -f .mfiles-jackson-jaxrs-smile-provider
%files -n jackson-jaxrs-xml-provider -f .mfiles-jackson-jaxrs-xml-provider
%files -n jackson-jaxrs-yaml-provider -f .mfiles-jackson-jaxrs-yaml-provider
%endif

%files datatypes -f .mfiles-jackson-datatype-jaxrs
%license LICENSE NOTICE

%files parent -f .mfiles-jackson-jaxrs-providers
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13361 |21mr|jackson-module-jsonSchema-2.9.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-module-jsonSchema
Version:       2.9.8
Release:       2
Summary:       Jackson JSON Schema Module
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-module-jsonSchema
Source0:       https://github.com/FasterXML/jackson-module-jsonSchema/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(javax.validation:validation-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Add-on module for to support JSON Schema version 3 generation.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

sed -i 's/\r//' src/main/resources/META-INF/LICENSE
cp -p src/main/resources/META-INF/LICENSE .

%mvn_file ":{*}" jackson-modules/@1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md release-notes/*
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13362 |21mr|jackson-modules-base-2.9.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with    jp_minimal

Name:          jackson-modules-base
Version:       2.9.8
Release:       3
Summary:       Jackson modules: Base
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-modules-base
Source0:       https://github.com/FasterXML/jackson-modules-base/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(cglib:cglib)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind) >= %{version}
BuildRequires:  mvn(com.fasterxml.jackson:jackson-base:pom:) >= %{version}
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(com.google.inject:guice)
%if %{without jp_minimal}
BuildRequires:  mvn(com.thoughtworks.paranamer:paranamer)
%endif
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.mockito:mockito-all)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.ow2.asm:asm)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jackson "base" modules: modules that build directly on databind,
and are not data-type, data format, or JAX-RS provider modules.

%package -n jackson-module-afterburner
Summary: Jackson module that uses byte-code generation to further speed up data binding

%description -n jackson-module-afterburner
Module that will add dynamic bytecode generation for standard Jackson POJO
serializers and deserializers, eliminating majority of remaining data binding
overhead.

%package -n jackson-module-guice
Summary: Jackson module to make integration with Guice a bit easier

%description -n jackson-module-guice
This extension allows Jackson to delegate ObjectMapper creation and value
injection to Guice when handling data bindings.

%package -n jackson-module-jaxb-annotations
Summary: Support for using JAXB annotations as an alternative to "native" Jackson annotations

%description -n jackson-module-jaxb-annotations
This Jackson extension module provides support for using JAXB (javax.xml.bind)
annotations as an alternative to native Jackson annotations. It is most often
used to make it easier to reuse existing data beans that used with JAXB
framework to read and write XML.

%if %{without jp_minimal}
%package -n jackson-module-mrbean
Summary: Functionality for implementing interfaces and abstract types dynamically

%description -n jackson-module-mrbean
Mr Bean is an extension that implements support for "POJO type materialization"
ability for databinder to construct implementation classes for Java interfaces
and abstract classes, as part of deserialization.
%endif

%package -n jackson-module-osgi
Summary: Jackson module to inject OSGI services in deserialized beans

%description -n jackson-module-osgi
This module provides a way to inject OSGI services into deserialized objects.
Thanks to the JacksonInject annotations, the OsgiJacksonModule will search for
the required service in the OSGI service registry and injects it in the object
while deserializing.

%if %{without jp_minimal}
%package -n jackson-module-paranamer
Summary: Jackson module that uses Paranamer to introspect names of constructor params

%description -n jackson-module-paranamer
Module that uses Paranamer library to auto-detect names of Creator
(constructor, static factory method, annotated with @JsonCreator) methods.
%endif

%package javadoc
Summary: Javadoc for %{name}
# Obsoletes standalone jackson-module-jaxb-annotations since F28
Obsoletes: jackson-module-jaxb-annotations-javadoc < %{version}-%{release}
Provides:  jackson-module-jaxb-annotations-javadoc = %{version}-%{release}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# Disable bundling of asm
%pom_remove_plugin ":maven-shade-plugin" afterburner mrbean paranamer
%pom_xpath_remove "pom:properties/pom:osgi.private" mrbean paranamer

sed -i 's/\r//' mrbean/src/main/resources/META-INF/{LICENSE,NOTICE}
cp -p mrbean/src/main/resources/META-INF/{LICENSE,NOTICE} .

# Fix OSGi dependency
%pom_change_dep org.osgi:org.osgi.core org.osgi:osgi.core osgi

# NoClassDefFoundError: net/sf/cglib/core/CodeGenerationException
%pom_add_dep cglib:cglib:3.2.4:test guice

%if %{with jp_minimal}
# Disable modules with additional deps
%pom_disable_module paranamer
%pom_disable_module mrbean
%endif

# Allow javax,activation to be optional
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" jaxb "
<configuration>
  <instructions>
    <Import-Package>javax.activation;resolution:=optional,*</Import-Package>
  </instructions>
</configuration>"

# This test fails since mockito was upgraded to 2.x
rm osgi/src/test/java/com/fasterxml/jackson/module/osgi/InjectOsgiServiceTest.java

%mvn_file ":{*}" jackson-modules/@1

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-jackson-modules-base
%doc README.md release-notes
%license LICENSE NOTICE

%files -n jackson-module-afterburner -f .mfiles-jackson-module-afterburner
%doc afterburner/README.md afterburner/release-notes
%license LICENSE NOTICE

%files -n jackson-module-guice -f .mfiles-jackson-module-guice
%doc guice/README.md
%license LICENSE NOTICE

%files -n jackson-module-jaxb-annotations -f .mfiles-jackson-module-jaxb-annotations
%doc jaxb/README.md jaxb/release-notes
%license LICENSE NOTICE

%if %{without jp_minimal}
%files -n jackson-module-mrbean -f .mfiles-jackson-module-mrbean
%doc mrbean/README.md mrbean/release-notes
%license LICENSE NOTICE
%endif

%files -n jackson-module-osgi -f .mfiles-jackson-module-osgi
%doc osgi/README.md osgi/release-notes
%license LICENSE NOTICE

%if %{without jp_minimal}
%files -n jackson-module-paranamer -f .mfiles-jackson-module-paranamer
%doc paranamer/README.md paranamer/release-notes
%license LICENSE NOTICE
%endif

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13363 |21mr|jackson-parent-2.9.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jackson-parent
Version:       2.9.1.2
Release:       2
Summary:       Parent pom for all Jackson components
License:       ASL 2.0
URL:           https://github.com/FasterXML/jackson-parent
Source0:       https://github.com/FasterXML/jackson-parent/archive/%{name}-%{version}.tar.gz
# jackson-parent package don't include the license file
# reported @ https://github.com/FasterXML/jackson-parent/issues/1
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Project for parent pom for all Jackson components.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13364 |21mr|jacoco-0.7.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

Name:      jacoco
Version:   0.7.8
Release:   8
Summary:   Java Code Coverage for Eclipse 
License:   EPL
Group:     Development/Java
URL:       http://www.eclemma.org/jacoco/
Source0:   https://github.com/jacoco/jacoco/archive/v%{version}.tar.gz
Source1:   EnchancedManifest.mf

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-tools-javadoc)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.apache.maven.shared:file-management)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
%if %{without bootstrap}
BuildRequires:  mvn(org.jacoco:org.jacoco.build:pom:)
%endif
BuildRequires:  mvn(org.ow2.asm:asm-debug-all)
BuildRequires:  dos2unix


%description
JaCoCo is a free code coverage library for Java, 
which has been created by the EclEmma team based on the lessons learned 
from using and integration existing libraries over the last five years. 


%package    javadoc
Summary:    Java-docs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%package    maven-plugin
Summary:    A Jacoco plugin for maven

%description maven-plugin
A Jacoco plugin for maven.

%prep
%setup -q 

# Make it work with ASM 6.0
# TODO: forward upstream
sed -i '/org.objectweb.asm/s/version="[^"]*"/bundle-version="[5.1.0,7.0.0)"/' $(find -name \*.MF)

%pom_disable_module ../org.jacoco.examples org.jacoco.build
%pom_disable_module ../org.jacoco.doc org.jacoco.build
%pom_disable_module ../org.jacoco.tests org.jacoco.build
%pom_disable_module ../jacoco org.jacoco.build

%mvn_package ":jacoco-maven-plugin:{jar,pom}:{}:" maven-plugin
%mvn_package ":{org.}*:{jar,pom}:runtime:"

sed -i -e "s|nb-configuration.xml|nb-configuration.xml,build.xml, pom.xml|g" org.jacoco.build/pom.xml

# Remove problematic plugin, which old patch tried to correct, completely
%pom_remove_plugin org.codehaus.groovy.maven:gmaven-plugin ./org.jacoco.build/pom.xml

# Remove enforcer plugin that causes build failure of 'Jacoco :: Maven Plugin'
%pom_remove_plugin -f -r org.apache.maven.plugins:maven-enforcer-plugin

# Add execution config for maven.antrun.plugin
%pom_xpath_inject pom:plugin[pom:artifactId=\'maven-antrun-plugin\']/pom:executions '<execution>
             <id>parse-version</id>
             <phase>validate</phase>
             <goals>
               <goal>run</goal>
             </goals>
             <configuration>
                <target>
                     <property name="jacoco.runtime.package.name" value="org.jacoco.agent.rt.internal_${randomNumber}" />
               </target>
               <exportAntProperties>true</exportAntProperties>
             </configuration>
           </execution>' org.jacoco.build/pom.xml


%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

# workaround missing premain in agent.rt RH1151442. Not sure where to fix this in build.
# TODO, fix in build itself
# 'all' have already premain, 'sources' don't need.
a=`find org.jacoco.agent.rt/target/ | grep jar | grep -v -e sources -e all`
for x in $a ; do
jar -umf %{SOURCE1}  $x
done;

%install
%mvn_install

# ant config
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
echo %{name} %{name}/org.jacoco.ant objectweb-asm/asm-debug-all > %{buildroot}%{_sysconfdir}/ant.d/%{name}

%files -f .mfiles
%config(noreplace) %{_sysconfdir}/ant.d/%{name}
%doc org.jacoco.doc/docroot/*
%doc org.jacoco.doc/about.html

%files maven-plugin -f .mfiles-maven-plugin

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13365 |21mr|jacorb-2.3.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             jacorb
Version:          2.3.1
Release:          20
Summary:          The Java implementation of the OMG's CORBA standard
Group:            Development/Java
License:          LGPLv2
URL:              http://www.jacorb.org/index.html

Source0:          http://www.jacorb.org/releases/%{version}/jacorb-%{version}-src.zip
Source1:          http://central.maven.org/maven2/org/jacorb/jacorb-parent/%{version}/jacorb-parent-%{version}.pom
Source2:          http://central.maven.org/maven2/org/jacorb/jacorb/%{version}/jacorb-%{version}.pom
Source3:          http://central.maven.org/maven2/org/jacorb/jacorb-idl-compiler/%{version}/jacorb-idl-compiler-%{version}.pom

# These methods are not implemented in the current 
Patch0:           jacorb-2.3.1-Implement-a-few-methods-in-GSSUPContextSpi-to-make-i.patch

# Set proper versions
Patch1:           jacorb-2.3.1-version.patch

# Fix "error: unmappable character for encoding ASCII" JDK issues
Patch2:           jacorb-2.3.1-Set-encoding-to-UTF-8-when-generating-javadoc.patch

# Remove the Class-Path entry to fix class-path-in-manifest issue
Patch3:           jacorb-2.3.1-Removed-Class-Path-entry-from-MANIFEST.MF.patch

# This patch resets the port of the primary address to zero when an
# IORInterceptor adds a TAG_CSI_SEC_MECH_LIST component with transport
# protection requirements (SSL), as it should be per the CSI v2 specification.
Patch4:           jacorb-2.3.1-primaddress_port.patch

# read_boolean() now only adjusts positions if the chunk_end_pos == pos,
# no longer calling handle_chunking(). The problem with handle_chunking()
# is that it aligns the current position and this can cause CDRInputStream
# to "skip" valid boolean values, as those are not padded.
Patch5:           jacorb-2.3.1-read_boolean.patch

# Support for JDK 8
Patch6:           JDK8-support.patch

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    javapackages-local
BuildRequires:    java-devel
BuildRequires:    ant
BuildRequires:    antlr-tool
BuildRequires:    avalon-logkit
BuildRequires:    bsh
BuildRequires:    slf4j

%description
This package contains the Java implementation of the OMG's CORBA standard

%package javadoc
Summary:          Javadocs for %{name}
Group:            Documentation
Requires:         jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jacorb-%{version}

cp %{SOURCE1} jacorb-parent.pom
cp %{SOURCE2} jacorb.pom
cp %{SOURCE3} jacorb-idl-compiler.pom

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;
find -name '*.zip' -exec rm -f '{}' \;

%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p0
%patch4 -p0
%patch5 -p0
%patch6 -p1

# No xdoclet available
sed -i 's|,notification||' src/org/jacorb/build.xml

ln -s $(build-classpath antlr) lib/antlr-2.7.2.jar
ln -s $(build-classpath slf4j/api) lib/slf4j-api-1.5.6.jar

%mvn_alias "org.jacorb:" "jacorb:"

%build
export CLASSPATH=$(build-classpath avalon-logkit slf4j/api)

sed -i "s|>avalon<|>avalon-logkit<|g" jacorb-idl-compiler.pom

%pom_remove_dep "tanukisoft:wrapper" jacorb.pom
%pom_remove_dep "picocontainer:picocontainer" jacorb.pom
%pom_remove_dep "nanocontainer:nanocontainer" jacorb.pom
%pom_remove_dep "nanocontainer:nanocontainer-remoting" jacorb.pom

ant all doc

%install
%mvn_artifact jacorb-parent.pom
%mvn_artifact jacorb.pom lib/jacorb.jar
%mvn_artifact jacorb-idl-compiler.pom lib/idl.jar

%mvn_install -J doc/api

%files -f .mfiles
%doc doc/LICENSE

%files javadoc -f .mfiles-javadoc
%doc doc/LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13366 |21mr|jaf-1.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		jaf
Version:	1.2.1
Release:	4
Summary:	JavaBeans Activation Framework

License:	BSD
URL:		https://github.com/eclipse-ee4j/jaf

Source0:	https://github.com/eclipse-ee4j/jaf/archive/%{version}.tar.gz

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	maven-local
BuildRequires:	mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:	mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:	mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:	mvn(org.glassfish.hk2:osgiversion-maven-plugin)

%description
The JavaBeans Activation Framework (JAF) is a standard extension to the
Java platform that lets you take advantage of standard services to:
determine the type of an arbitrary piece of data; encapsulate access to it;
discover the operations available on it; and instantiate the appropriate
bean to perform the operation(s).

%package javadoc
Summary:	Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q

%pom_disable_module demo

# maven-dependency-plugin doesn't work correctly without access to remote repos
%pom_remove_plugin :maven-dependency-plugin activationapi
mkdir -p %{_builddir}/%{name}-%{version}/activationapi/target/sources/
cp -r %{_builddir}/%{name}-%{version}/activation/src/main/java/javax/ %{_builddir}/%{name}-%{version}/activationapi/target/sources/
%pom_xpath_inject "/pom:project"  "<dependencies>
<dependency>
  <groupId>com.sun.activation</groupId>
  <artifactId>jakarta.activation</artifactId>
  <version>1.2.1</version>
</dependency>
</dependencies>" "activationapi/pom.xml"

%pom_remove_parent
%pom_remove_plugin org.commonjava.maven.plugins:directory-maven-plugin
%pom_remove_plugin org.codehaus.mojo:build-helper-maven-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.md
%license NOTICE.md
%doc README.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.md
%license NOTICE.md
%doc README.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13367 |21mr|jakarta-commons-httpclient-3.1-32
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name httpclient

Name:           jakarta-commons-httpclient
Version:        3.1
Release:        32
Summary: Jakarta Commons HTTPClient implements the client side of HTTP standards
License:        ASL 2.0 and (ASL 2.0 or LGPLv2+)
URL:            http://jakarta.apache.org/commons/httpclient/
Epoch:          1
Source0:        http://archive.apache.org/dist/httpcomponents/commons-httpclient/source/commons-httpclient-3.1-src.tar.gz
Source1:        http://repo.maven.apache.org/maven2/commons-httpclient/commons-httpclient/%{version}/commons-httpclient-%{version}.pom
Patch0:         %{name}-disablecryptotests.patch
# Add OSGi MANIFEST.MF bits
Patch1:         %{name}-addosgimanifest.patch
Patch2:         %{name}-encoding.patch
# CVE-2012-5783: missing connection hostname check against X.509 certificate name
# https://fisheye6.atlassian.com/changelog/httpcomponents?cs=1422573
Patch3:         %{name}-CVE-2012-5783.patch
Patch4:         %{name}-CVE-2014-3577.patch
Patch5:         %{name}-CVE-2015-5262.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# FIXME: we need BR maven-local, because we're using macros like mvn_install
# this should be changed to "javapackages-local" when javapackages-tools 4.0.0 is out
BuildRequires:  maven-local
BuildRequires:  ant
BuildRequires:  apache-commons-codec
BuildRequires:  apache-commons-logging >= 0:1.0.3
BuildRequires:  apache-commons-logging-javadoc
BuildRequires:  java-javadoc
BuildRequires:  junit

Requires:       java-headless
Requires:       apache-commons-logging >= 0:1.0.3
Requires:       apache-commons-codec
Provides:       deprecated()

%description
The Hyper-Text Transfer Protocol (HTTP) is perhaps the most significant
protocol used on the Internet today. Web services, network-enabled
appliances and the growth of network computing continue to expand the
role of the HTTP protocol beyond user-driven web browsers, and increase
the number of applications that may require HTTP support.
Although the java.net package provides basic support for accessing
resources via HTTP, it doesn't provide the full flexibility or
functionality needed by many applications. The Jakarta Commons HTTP
Client component seeks to fill this void by providing an efficient,
up-to-date, and feature-rich package implementing the client side of the
most recent HTTP standards and recommendations.
Designed for extension while providing robust support for the base HTTP
protocol, the HTTP Client component may be of interest to anyone
building HTTP-aware client applications such as web browsers, web
service clients, or systems that leverage or extend the HTTP protocol
for distributed communication.

%package        javadoc
Summary:        Javadoc for %{name}
Provides:       deprecated()

%description    javadoc
%{summary}.

%package        demo
Summary:        Demos for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}
Provides:       deprecated()

%description    demo
%{summary}.

%package        manual
Summary:        Manual for %{name}
Requires:       %{name}-javadoc = %{epoch}:%{version}-%{release}
Provides:       deprecated()

%description    manual
%{summary}.


%prep
%setup -q -n commons-httpclient-%{version}
mkdir lib # duh
build-jar-repository -p lib commons-codec commons-logging junit
rm -rf docs/apidocs docs/*.patch docs/*.orig docs/*.rej

%patch0

pushd src/conf
%{__sed} -i 's/\r//' MANIFEST.MF
%patch1
popd

%patch2
%patch3 -p2
%patch4 -p1
%patch5 -p1

# Use javax classes, not com.sun ones
# assume no filename contains spaces
pushd src
    for j in $(find . -name "*.java" -exec grep -l 'com\.sun\.net\.ssl' {} \;); do
        sed -e 's|com\.sun\.net\.ssl|javax.net.ssl|' $j > tempf
        cp tempf $j
    done
    rm tempf
popd

%mvn_alias : apache:commons-httpclient
%mvn_file ":{*}" jakarta-@1 "@1" commons-%{short_name}3

%build
ant \
  -Dbuild.sysclasspath=first \
  -Djavadoc.j2sdk.link=%{_javadocdir}/java \
  -Djavadoc.logging.link=%{_javadocdir}/jakarta-commons-logging \
  -Dtest.failonerror=false \
  -Djavac.encoding=UTF-8 \
  dist test

%install
%mvn_artifact %{SOURCE1} dist/commons-httpclient.jar
%mvn_install -J dist/docs/api

# demo
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr src/examples src/contrib $RPM_BUILD_ROOT%{_datadir}/%{name}

# manual and docs
rm -Rf dist/docs/{api,BUILDING.txt,TESTING.txt}
ln -s %{_javadocdir}/%{name} dist/docs/apidocs


%files -f .mfiles
%doc LICENSE NOTICE
%doc README RELEASE_NOTES

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE

%files demo
%{_datadir}/%{name}

%files manual
%doc dist/docs/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13368 |21mr|jakarta-oro-2.0.8-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global base_name oro

Name:           jakarta-oro
Version:        2.0.8
Release:        27
Epoch:          0
Summary:        Full regular expressions API
License:        ASL 1.1
Group:          Development/Java
Source0:        http://archive.apache.org/dist/jakarta/oro/%{name}-%{version}.tar.gz
Source1:        MANIFEST.MF
Source2:        http://repo1.maven.org/maven2/%{base_name}/%{base_name}/%{version}/%{base_name}-%{version}.pom
Patch1:         %{name}-build-xml.patch
URL:            http://jakarta.apache.org/oro

BuildRequires:  javapackages-local
BuildRequires:  ant

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Provides:       deprecated()

%description
The Jakarta-ORO Java classes are a set of text-processing Java classes
that provide Perl5 compatible regular expressions, AWK-like regular
expressions, glob expressions, and utility classes for performing
substitutions, splits, filtering filenames, etc. This library is the
successor to the OROMatcher, AwkTools, PerlTools, and TextTools
libraries from ORO, Inc. (www.oroinc.com). 

%package javadoc
Summary:        Javadoc for %{name}
Provides:       deprecated()

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
# remove all CVS files
for dir in `find . -type d -name CVS`; do rm -rf $dir; done
for file in `find . -type f -name .cvsignore`; do rm -rf $file; done

%patch1
cp %{SOURCE1} .

%build
ant -Dfinal.name=%{base_name} jar javadocs

%install
%mvn_file : %{name} %{base_name}
%mvn_artifact %{SOURCE2} %{base_name}.jar

%mvn_install -J docs/api

%files -f .mfiles
%doc COMPILE ISSUES README TODO CHANGES CONTRIBUTORS STYLE
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13369 |21mr|jakarta-servlet-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

Name:           jakarta-servlet
Version:        5.0.0
Release:        1
Summary:        Server-side API for handling HTTP requests and responses
Group:          Development/Java
# most of the project is EPL-2.0 or GPLv2 w/exceptions,
# but some files still have Apache-2.0 license headers:
# https://github.com/eclipse-ee4j/servlet-api/issues/347
License:        (EPL-2.0 or GPLv2 with exceptions) and ASL 2.0
URL:            https://github.com/eclipse-ee4j/servlet-api
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch:    %{ix86}

Source0:        https://github.com/eclipse-ee4j/servlet-api/archive/%{version}-RELEASE/servlet-api-%{version}.tar.gz

BuildRequires:  maven-local
%if %{with bootstrap}
BuildRequires:  javapackages-bootstrap
%else
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
%endif

Provides:       glassfish-servlet-api = %{version}-%{release}

%description
Jakarta Servlet defines a server-side API for handling HTTP requests
and responses.

%{?javadoc_package}

%prep
%setup -q -n servlet-api-%{version}-RELEASE

# remove unnecessary dependency on parent POM
%pom_remove_parent . api

# do not build specification documentation
%pom_disable_module spec

# Copy to old package name
# TODO: Remove when all dependencies are migrated from javax.servlet to jakarta.servlet
cp -pr api/src/main/java/jakarta api/src/main/java/javax
sed -i -e 's/jakarta\./javax./g' $(find api/src/main/java/javax -name *.java)
%pom_xpath_replace pom:instructions/pom:Export-Package \
  '<Export-Package>jakarta.servlet.*,javax.servlet.*;version="4.0.0"</Export-Package>' api

# do not install useless parent POM
%mvn_package jakarta.servlet:servlet-parent __noinstall

# remove unnecessary maven plugins
%pom_remove_plugin -r :formatter-maven-plugin
%pom_remove_plugin -r :impsort-maven-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-source-plugin

# add maven artifact coordinate aliases for backwards compatibility
%mvn_alias jakarta.servlet:jakarta.servlet-api \
    javax.servlet:javax.servlet-api \
    javax.servlet:servlet-api

# add compat symlink for packages constructing the classpath manually
%mvn_file :{*} %{name}/@1 glassfish-servlet-api

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.md NOTICE.md
%doc README.md

%changelog
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild

* Wed May 26 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.0-7
- Re-add provides on glassfish-servlet-api

* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 5.0.0-6
- Bootstrap build
- Non-bootstrap build

* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 5.0.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild

* Thu Aug 20 2020 Mat Booth <mat.booth@redhat.com> - 5.0.0-4
- Correct mvn_file macro invokation

* Wed Aug 19 2020 Fabio Valentini <decathorpe@gmail.com> - 5.0.0-3
- Add compat symlink for packages constructing the classpath manually.

* Wed Aug 19 2020 Mat Booth <mat.booth@redhat.com> - 5.0.0-2
- Also ship the API in the old javax namespace to aid transition

* Thu Aug 13 2020 Fabio Valentini <decathorpe@gmail.com> - 5.0.0-1
- Initial package renamed from glassfish-servlet-api.


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13370 |21mr|jamm-0.3.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 1708ca44f7eb3addb66551a15b6b74672e87286a
Name:          jamm
Version:       0.3.1
Release:       9
Summary:       Java Agent for Memory Measurements
License:       ASL 2.0
#Url:           https://github.com/stephenc/jamm/
Url:           https://github.com/jbellis/jamm/
#Source0:       https://github.com/stephenc/jamm/archive/%%{name}-%%{version}.tar.gz
Source0:       https://github.com/jbellis/jamm/archive/%{githash}/%{name}-%{githash}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jamm provides MemoryMeter, a java agent to
measure actual object memory use including
JVM overhead.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}

%pom_xpath_inject pom:manifestEntries "<Agent-Class>org.github.jamm.MemoryMeter</Agent-Class>"

# These tests fail on koji only https://github.com/jbellis/jamm/issues/21
# Shallow size of empty String expected:<32> but was:<24>
sed -i 's|assertEquals("Shallow size of empty String"|//assertEquals("Shallow size of empty String"|' \
 test/org/github/jamm/MemoryMeterTest.java
# Deep size of empty String expected:<48> but was:<40>
sed -i 's|assertEquals("Deep size of empty String"|//assertEquals("Deep size of empty String"|' \
 test/org/github/jamm/MemoryMeterTest.java
# Shallow size of one-character String expected:<32> but was:<24>
sed -i 's|assertEquals("Shallow size of one-character String"|//assertEquals("Shallow size of one-character String"|' \
 test/org/github/jamm/MemoryMeterTest.java
# Deep size of one-character String expected:<56> but was:<48>
sed -i 's|assertEquals("Deep size of one-character String"|//assertEquals("Deep size of one-character String"|' \
 test/org/github/jamm/MemoryMeterTest.java

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
<execution>
 <id>default-jar</id>
 <phase>skip</phase>
</execution>"

%mvn_file : %{name}
%mvn_alias com.github.jbellis: com.github.stephenc:

%build
# OutOfMemoryError: unable to create new native thread
# FileNotFoundException: /tmp/testclasses/Test44.class (No such file or directory)
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13371 |21mr|jamon-api-2.3.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global parent_version 2.4.1

Name:          jamon-api
Version:       2.3.1
Release:       11
Summary:       Jamon processor API
License:       MPLv2.0
URL:           http://www.jamon.org/
# svn export svn://svn.code.sf.net/p/jamon/code/releases/jamon-api/jamon-api-2.3.1
# tar cJf jamon-api-2.3.1.tar.xz jamon-api-2.3.1
Source0:       %{name}-%{version}.tar.xz
BuildRequires: maven-local
BuildRequires: jamon-parent = %{parent_version}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jamon processor API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# Replace org.jamon:jamon-project:1.0.1
%pom_remove_parent
%pom_add_parent org.jamon:jamon-parent:%{parent_version}

sed -i 's|${artifactId}|${project.artifactId}|' pom.xml
sed -i 's|${version}|${project.version}|' pom.xml

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13372 |21mr|jamonapi-2.74-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname jamon

Name:          jamonapi
Version:       2.74
Release:       16
Summary:       A Java monitoring API
License:       BSD
Group:         Development/Java
URL:           http://jamonapi.sourceforge.net/
# Newer release available @ https://github.com/stevensouza/jamonapi/
# cvs -d:pserver:anonymous@jamonapi.cvs.sourceforge.net:/cvsroot/jamonapi login
# cvs -z3 -d:pserver:anonymous@jamonapi.cvs.sourceforge.net:/cvsroot/jamonapi co -P -r v2_74 jamonapi/src
# Remove pregenerated javadoc files in the source tree
# rm -rf jamonapi/src/JAMonUsersGuide/javadoc/*
# Remove zip file which contains a proprietary binary
# rm -rf jamonapi/src/JAMonUsersGuide/JAMon_PB.zip
# rm -rf $(find -name "CVS")
# tar cJf jamonapi-2.74.tar.xz jamonapi
Source0:       %{name}-%{version}.tar.xz
# This POM is completely Fedora-specific
Source1:       %{name}-%{version}.pom

Patch0:        %{name}-buildxml.patch
Patch1:        %{name}-jetty8.patch
Patch2:        %{name}-log4j12.patch
Patch3:        %{name}-jetty93.patch

BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: tomcat-lib
BuildRequires: tomcat-servlet-4.0-api
BuildRequires: tomcat-el-3.0-api
BuildRequires: jetty
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
BuildRequires: geronimo-interceptor
BuildRequires: log4j12
BuildRequires: dos2unix

Requires:      geronimo-interceptor
Requires:      log4j12

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JAMon API is a free, simple, high performance, thread safe,
Java API that allows developers to easily monitor the
performance and scalability of production applications. JAMon
tracks hits, execution times (total, avg, min, max, std dev),
and more.

%package javadoc
Summary:         API documentation for %{name}

%description javadoc
This package contains API documentation for Java monitoring API.

%prep
%setup -q -n %{name}
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p1

sed -i "s|tomcat-el-2.2-api.jar|tomcat-el-api.jar|" src/ant/build.xml
sed -i "s|tomcat-servlet-3.0-api.jar|tomcat-servlet-api.jar|" src/ant/build.xml

sed -i 's|target="1.5" source="1.5"|target="1.6" source="1.6"|' src/ant/build.xml
sed -i 's|"source" value="1.5"|"source" value="1.6"|' src/ant/build.xml
sed -i 's|"vm" value="1.5"|"vm" value="1.6"|' src/ant/build.xml

sed -i 's|packagenames="${package}"|packagenames="${package}" additionalparam="-Xdoclint:none"|' src/ant/build.xml

mkdir dist
mkdir lib

%build
pushd src/ant
ant JAR
ant javadoc
popd

# Remove spurious executable permissions
find src/JAMonUsersGuide -type f | xargs chmod -x
find src/JAMonUsersGuide -regex '.*\(xml\|css\|js\)' -o -name package-list | xargs dos2unix

# There should be a shorter way to do an iconv task, but I do not know of one
pushd src/JAMonUsersGuide/presentation/jamon_files/
mv master04_stylesheet.css master04_stylesheet.css.iso8859-1
iconv -f ISO-8859-1 -t UTF-8 master04_stylesheet.css.iso8859-1 > master04_stylesheet.css
rm master04_stylesheet.css.iso8859-1
popd

cp -p src/JAMonUsersGuide/JAMonLicense.html .

%install
%mvn_artifact %{SOURCE1} dist/%{oname}-%{version}.jar
%mvn_file com.jamonapi:jamon %{oname} %{name}
%mvn_install -J src/doc/javadoc

%files -f .mfiles
%doc src/JAMonUsersGuide
%license JAMonLicense.html

%files javadoc -f .mfiles-javadoc
%license JAMonLicense.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13373 |21mr|jamon-java-parent-2.4.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jamon-java-parent
Version:       2.4.1
Release:       12
Summary:       Jamon Java Parent
License:       MPLv2.0
URL:           http://www.jamon.org/
# svn export svn://svn.code.sf.net/p/jamon/code/releases/jamon-java-parent/jamon-java-parent-2.4.1
# tar cJf jamon-java-parent-2.4.1.tar.xz jamon-java-parent-2.4.1
Source0:       %{name}-%{version}.tar.xz
BuildRequires: maven-local
BuildRequires: mvn(org.jamon:jamon-parent:pom:)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jamon base pom for Java projects.

%prep
%setup -q
# Require unavailable org.jamon:jamon-checkstyle:2.3
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :taglist-maven-plugin
# Unwanted
%pom_remove_plugin :maven-source-plugin

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13374 |21mr|jamon-maven-plugin-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jamon-maven-plugin
Version:       2.4.2
Release:       12
Summary:       Jamon Maven plugin
License:       MPLv2.0
URL:           http://www.jamon.org/
# svn export svn://svn.code.sf.net/p/jamon/code/releases/jamon-maven-plugin/jamon-maven-plugin-2.4.2
# tar cJf jamon-maven-plugin-2.4.2.tar.xz jamon-maven-plugin-2.4.2
Source0:       %{name}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: maven-invoker-plugin
BuildRequires: maven-plugin-plugin
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires: mvn(org.jamon:jamon-java-parent:pom:)
BuildRequires: mvn(org.jamon:jamon-processor)
# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.codehaus.groovy:groovy)
BuildRequires: mvn(org.jamon:jamon-runtime)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jamon Maven plugin.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

# Require unavailable org.codehaus.plexus:plexus-javadoc
%pom_remove_plugin :maven-javadoc-plugin

sed -i 's|${artifactId}/${version}|${project.artifactId}/${project.version}|' pom.xml

# Use maven 3 apis only
%pom_remove_dep org.apache.maven:maven-project
%pom_add_dep org.apache.maven:maven-core

# Disable integration tests
%pom_remove_plugin :maven-invoker-plugin

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13375 |21mr|jamon-nodegen-plugin-2.4.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jamon-nodegen-plugin
Version:       2.4.1
Release:       12
Summary:       Jamon Nodegen Maven Plugin
License:       MPLv2.0
URL:           http://www.jamon.org/
# svn export svn://svn.code.sf.net/p/jamon/code/releases/jamon-nodegen-plugin/jamon-nodegen-plugin-2.4.1
# tar cJf jamon-nodegen-plugin-2.4.1.tar.xz jamon-nodegen-plugin-2.4.1
Source0:       %{name}-%{version}.tar.xz
BuildRequires: maven-local
BuildRequires: maven-plugin-plugin
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.jamon:jamon-java-parent:pom:)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jamon compiler AST node generation tool.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

sed -i 's|${artifactId}/${version}|${project.artifactId}/${project.version}|' pom.xml
# Use maven 3 apis only
%pom_remove_dep org.apache.maven:maven-project
%pom_add_dep org.apache.maven:maven-core

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13376 |21mr|jamon-parent-2.4.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jamon-parent
Version:       2.4.1
Release:       13
Summary:       Jamon base pom
License:       MPLv2.0
Group:         Development/Java
URL:           http://www.jamon.org/
# svn export svn://svn.code.sf.net/p/jamon/code/releases/jamon-parent/jamon-parent-2.4.1
# tar cJf jamon-parent-2.4.1.tar.xz jamon-parent-2.4.1
Source0:       %{name}-%{version}.tar.xz
BuildRequires: maven-local
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jamon is a text template engine for Java,
useful for generating dynamic HTML, XML,
or any text-based content. In a typical
Model-View-Controller architecture, Jamon
clearly is aimed at the View (or presentation)
layer.

This package provides Jamon parent pom.

%prep
%setup -q
%pom_remove_plugin :versions-maven-plugin
%pom_xpath_remove "pom:build/pom:extensions"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13377 |21mr|jamon-processor-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jamon-processor
Version:       2.4.2
Release:       12
Summary:       Jamon Template Processor
License:       MPLv2.0
URL:           http://www.jamon.org/
# svn export svn://svn.code.sf.net/p/jamon/code/releases/jamon-processor/jamon-processor-2.4.2
# tar cJf jamon-processor-2.4.2.tar.xz jamon-processor-2.4.2
Source0:       %{name}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(org.jamon:jamon-api)
BuildRequires: mvn(org.jamon:jamon-java-parent:pom:)
BuildRequires: mvn(org.jamon:jamon-runtime)
BuildRequires: mvn(org.jamon:jamon-nodegen-plugin)
# Test deps
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(junit:junit)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jamon template to java processor.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

sed -i 's|${artifactId}/${version}|${project.artifactId}/${project.version}|' pom.xml

# deprecated method in com.google.common.io.Files & com.google.common.io.Resources
rm -r src/test/java/org/jamon/util/JavaCompilerFactoryTest.java

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13378 |21mr|jamon-runtime-2.4.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jamon-runtime
Version:       2.4.1
Release:       12
Summary:       Jamon runtime support classes
License:       MPLv2.0
URL:           http://www.jamon.org/
# svn export svn://svn.code.sf.net/p/jamon/code/releases/jamon-runtime/jamon-runtime-2.4.1
# tar cJf jamon-runtime-2.4.1.tar.xz jamon-runtime-2.4.1
Source0:       %{name}-%{version}.tar.xz
BuildRequires: maven-local
BuildRequires: mvn(org.jamon:jamon-java-parent:pom:)
BuildRequires: mvn(junit:junit)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jamon runtime support classes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

sed -i 's|${artifactId}/${version}|${project.artifactId}/${project.version}|' pom.xml

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13379 |21mr|jandex-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:           jandex
Version:        2.1.1
Release:        1
Summary:        Java Annotation Indexer
License:        ASL 2.0
Group:          Development/Java
URL:            https://github.com/wildfly/jandex
Source0:        %{url}/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.jboss:jboss-parent:pom:)
# xmvn-builddep misses these (needed for maven-javadoc-plugin):
BuildRequires:  mvn(jdepend:jdepend)
BuildRequires:  mvn(org.jboss.apiviz:apiviz)

%description
This package contains Java Annotation Indexer


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-%{namedversion}

# unpackaged dependency: org.jboss.jandex:typeannotation-test:1.0
%pom_remove_dep :typeannotation-test
rm src/test/java/org/jboss/jandex/test/TypeAnnotationTestCase.java


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13380 |21mr|jandex-maven-plugin-1.0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jandex-maven-plugin
Version:       1.0.4
Release:       8
Summary:       Jandex wrapper for Maven
License:       GPLv3+
URL:           https://github.com/wildfly/jandex-maven-plugin
Source0:       https://github.com/wildfly/jandex-maven-plugin/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven:maven:pom:)
BuildRequires: mvn(org.apache.maven:maven-parent:pom:)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a Maven plugin used to generate Jandex index files.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13381 |21mr|janino-2.7.8-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2007, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
Name:          janino
Version:       2.7.8
Release:       12
Summary:       An embedded Java compiler
License:       BSD
URL:           http://unkrig.de/w/Janino
Source0:       http://janino.net/download/%{name}-%{version}.zip
Source1:       http://repo1.maven.org/maven2/org/codehaus/%{name}/%{name}-parent/%{version}/%{name}-parent-%{version}.pom
Source2:       http://repo1.maven.org/maven2/org/codehaus/%{name}/commons-compiler/%{version}/commons-compiler-%{version}.pom
Source3:       http://repo1.maven.org/maven2/org/codehaus/%{name}/commons-compiler-jdk/%{version}/commons-compiler-jdk-%{version}.pom
Source4:       http://repo1.maven.org/maven2/org/codehaus/%{name}/%{name}/%{version}/%{name}-%{version}.pom
# removes the de.unkrig.commons.nullanalysis annotations
# http://unkrig.de/w/Unkrig.de
# https://svn.code.sf.net/p/loggifier/code/tags/loggifier_0.9.9.v20140430-1829/de.unkrig.commons.nullanalysis/
Patch0:        %{name}-2.7.8-remove-nullanalysis-annotations.patch

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus:codehaus-parent:pom:)
BuildRequires: /usr/bin/perl

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Janino is a super-small, super-fast Java compiler. Not only can it compile
a set of source files to a set of class files like the JAVAC tool, but also
can it compile a Java expression, block, class body or source file in
memory, load the byte-code and execute it directly in the same JVM. Janino
is not intended to be a development tool, but an embedded compiler for
run-time compilation purposes, e.g. expression evaluators or "server pages"
engines like JSP.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

find . -name "*.jar" -delete
find . -name "*.class" -delete

for m in commons-compiler \
  commons-compiler-jdk \
  %{name};do
  mkdir -p ${m}/src
  (
    cd ${m}/src/
    unzip -qq  ../../${m}-src.zip
    if [ -f org.codehaus.commons.compiler.properties ]; then
      mkdir -p main/resources
      mv org.codehaus.commons.compiler.properties main/resources
    fi
  )
done

%patch0 -p1

install -m 644 %{SOURCE1} pom.xml
install -m 644 %{SOURCE2} commons-compiler/pom.xml
install -m 644 %{SOURCE3} commons-compiler-jdk/pom.xml
install -m 644 %{SOURCE4} %{name}/pom.xml

%pom_change_dep -r :ant-nodeps :ant

# RHBZ#842604
%pom_xpath_set "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:source" 1.6
%pom_xpath_set "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:target" 1.6

perl -pi -e 's/\r$//g' new_bsd_license.txt README.txt

# Cannot run program "svn"
%pom_remove_plugin :buildnumber-maven-plugin

%pom_remove_plugin :maven-clean-plugin
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license new_bsd_license.txt

%files javadoc -f .mfiles-javadoc
%license new_bsd_license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13382 |21mr|jansi-1.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             jansi
Version:          1.18
Release:          2
Summary:          Jansi is a java library for generating and interpreting ANSI escape sequences
License:          ASL 2.0
URL:              http://fusesource.github.io/jansi/

Source0:          https://github.com/fusesource/jansi/archive/jansi-project-%{version}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.fusesource:fusesource-pom:pom:)
BuildRequires:    mvn(org.fusesource.hawtjni:hawtjni-runtime)
BuildRequires:    mvn(org.fusesource.jansi:jansi-native)

%description
Jansi is a small java library that allows you to use ANSI escape sequences
in your Java console applications. It implements ANSI support on platforms
which don't support it like Windows and provides graceful degradation for
when output is being sent to output devices which cannot support ANSI sequences.

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jansi-jansi-project-%{version}

%pom_disable_module example
%pom_xpath_remove "pom:build/pom:extensions"

%pom_remove_plugin -r :maven-site-plugin

# No maven-uberize-plugin
%pom_remove_plugin -r :maven-uberize-plugin

# Remove unnecessary deps for jansi-native builds
pushd jansi
%pom_remove_dep :jansi-windows32
%pom_remove_dep :jansi-windows64
%pom_remove_dep :jansi-osx
%pom_remove_dep :jansi-freebsd32
%pom_remove_dep :jansi-freebsd64
# it's there only to be bundled in uberjar and we disable uberjar generation
%pom_remove_dep :jansi-linux32
%pom_remove_dep :jansi-linux64
popd

# javadoc generation fails due to strict doclint in JDK 8
%pom_remove_plugin -r :maven-javadoc-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license license.txt
%doc readme.md changelog.md

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13383 |21mr|jansi-native-1.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bits %{__isa_bits}
%global debug_package %{nil}

Name:           jansi-native
Version:        1.7
Release:        9
Summary:        Jansi Native implements the JNI Libraries used by the Jansi project
License:        ASL 2.0
Group:          Development/Java
URL:            http://jansi.fusesource.org/
Source0:        https://github.com/fusesource/jansi-native/archive/jansi-native-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.fusesource:fusesource-pom:pom:)
BuildRequires:  mvn(org.fusesource.hawtjni:hawtjni-runtime) >= 1.9-2
BuildRequires:  mvn(org.fusesource.hawtjni:maven-hawtjni-plugin) >= 1.9-2

%description
Jansi is a small java library that allows you to use ANSI escape sequences
in your Java console applications. It implements ANSI support on platforms
which don't support it like Windows and provides graceful degradation for
when output is being sent to output devices which cannot support ANSI sequences.

%package javadoc
Summary:          Javadocs for %{name}
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jansi-native-jansi-native-%{version}

%mvn_alias :jansi-linux%{bits} :jansi-linux
%mvn_file :jansi-linux%{bits} %{name}/jansi-linux%{bits} %{name}/jansi-linux

%build
%mvn_build
%mvn_build -- -Dplatform=linux%{bits}

%install
%mvn_install

%files -f .mfiles
%doc readme.md changelog.md
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13384 |21mr|jansson-2.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C library for encoding, decoding and manipulating JSON data
Name:		jansson
Version:	2.14
Release:	2
License:	MIT
Group:		System/Libraries
Url:		http://www.digip.org/jansson/
Source0:	https://github.com/akheron/jansson/archive/refs/tags/v%{version}.tar.gz
Patch0:		0001-Fix-the-check-exports-tests-for-versioned-symbols.patch
BuildRequires:	python3-sphinx

%description
Small library for parsing and writing JSON documents.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C library for encoding, decoding and manipulating JSON data
Group:		System/Libraries
Conflicts:	%{name} < 2.7
Obsoletes:	%{name} < 2.7

%description -n %{libname}
Small library for parsing and writing JSON documents.

%files -n %{libname}
%doc LICENSE CHANGES
%{_libdir}/libjansson.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for jansson
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 2.7
Obsoletes:	%{name}-devel < 2.7

%description -n %{devname}
Header files for developing applications making use of jansson.

%files -n %{devname}
%{_libdir}/libjansson.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%make_install

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13385 |21mr|jarjar-1.4-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           jarjar
Version:        1.4
Release:        24
Summary:        Jar Jar Links
License:        ASL 2.0
URL:            http://code.google.com/p/jarjar/
Source0:        https://storage.googleapis.com/google-code-archive-downloads/v2/code.google.com/jarjar/jarjar-src-1.4.zip
Source1:        jarjar.pom
Source2:        jarjar-util.pom
Patch0:         fix-maven-plugin.patch
Patch1:         do-not-embed-asm.patch
Patch2:         port-to-asm6.patch

BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  objectweb-asm
BuildRequires:  javapackages-local
BuildRequires:  maven
Requires:       objectweb-asm
# Explicit javapackages-tools requires since jarjar script uses
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jar Jar Links is a utility that makes it easy to repackage Java 
libraries and embed them into your own distribution. This is 
useful for two reasons:
You can easily ship a single jar file with no external dependencies. 
You can avoid problems where your library depends on a specific 
version of a library, which may conflict with the dependencies of 
another library.

%package maven-plugin
Summary:        Maven plugin for %{name}
Requires:       maven
Requires:       %{name} = %{version}-%{release}

%description maven-plugin
%{summary}.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{version}
%patch0
%patch1
%patch2 -p1

# remove all binary libs
rm -f lib/*.jar

%mvn_package :jarjar-plugin %{name}-maven-plugin

# create ant config
echo "jarjar/jarjar objectweb-asm/asm objectweb-asm/asm-commons" > jarjar.ant

%build
pushd lib
ln -sf $(build-classpath objectweb-asm/asm) asm-4.0.jar
ln -sf $(build-classpath objectweb-asm/asm-commons) asm-commons-4.0.jar
ln -sf $(build-classpath maven/maven-plugin-api) maven-plugin-api.jar
popd
export CLASSPATH=$(build-classpath ant)
ant jar jar-util javadoc mojo test

sed -i -e s/@VERSION@/%{version}/g maven/pom.xml

# request maven artifact installation
%mvn_artifact %{SOURCE1} dist/jarjar-%{version}.jar
%mvn_artifact %{SOURCE2} dist/jarjar-util-%{version}.jar
%mvn_artifact maven/pom.xml dist/jarjar-plugin-%{version}.jar
%mvn_alias tonic:jarjar jarjar:jarjar com.tonicsystems:jarjar com.googlecode.jarjar:jarjar org.gradle.jarjar:jarjar
%mvn_alias tonic:jarjar-util jarjar:jarjar-util com.tonicsystems:jarjar-util
%mvn_alias com.tonicsystems.jarjar:jarjar-plugin jarjar:jarjar-plugin tonic:jarjar-plugin com.tonicsystems:jarjar-plugin

%install
%mvn_install -J dist/javadoc

%jpackage_script com.tonicsystems.jarjar.Main "" "" jarjar/jarjar:objectweb-asm/asm:objectweb-asm/asm-commons %{name} true

# install ant config
install -m 644 -D jarjar.ant %{buildroot}%{_sysconfdir}/ant.d/jarjar

%files -f .mfiles
%doc COPYING
%{_bindir}/%{name}
%{_sysconfdir}/ant.d/jarjar

%files maven-plugin -f .mfiles-%{name}-maven-plugin
%doc COPYING

%files javadoc -f .mfiles-javadoc
%doc COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13386 |21mr|jasper-2.0.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 4
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

%bcond_with	bootstrap

Summary:	JPEG-2000 utilities
Name:		jasper
Version:	2.0.33
Release:	1
License:	BSD-like
Group:		Graphics
Url:		http://www.ece.uvic.ca/~mdadams/jasper/
Source0:	https://github.com/mdadams/jasper/archive/version-%{version}.tar.gz
Patch0:		jasper-2.0.28-fix-filename-buffer-overflow.patch
Patch1:		CVE-2023-51257.patch
%if %{without bootstrap}
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xmu)
%endif
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	cmake
BuildRequires:	ninja

%description
JasPer is a software-based implementation of the codec specified in the
emerging JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1).  This package
contains tools for working with JPEG-2000 images.

%files
%doc README LICENSE
%{_bindir}/imgcmp
%{_bindir}/imginfo
%{_bindir}/jasper
%if %{without bootstrap}
%{_bindir}/jiv
%endif
%{_mandir}/man1/imgcmp.1*
%{_mandir}/man1/imginfo.1*
%{_mandir}/man1/jasper.1*
%{_mandir}/man1/jiv.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for JasPer
Group:		System/Libraries

%description -n %{libname}
JasPer is a software-based implementation of the codec specified in the
emerging JPEG-2000 Part-1 standard (i.e., ISO/IEC 15444-1). This package
contains shared library for working with JPEG-2000 images.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libjasper.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the libjasper library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package includes the header files necessary for developing programs which
will manipulate JPEG-2000 files using the libjasper library.

%files -n %{devname}
%doc doc/README.pdf doc/jasper.pdf doc/jpeg2000.pdf 
%doc LICENSE README
%doc %{_docdir}/JasPer
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/jasper.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-version-%{version}

mv doc/README doc/README.pdf

find -type d |xargs chmod 755
find -type f |xargs chmod 644
sed -r 's|(CMAKE_SKIP_BUILD_RPATH) FALSE|\1 TRUE|g' -i CMakeLists.txt

%build
%cmake -DJAS_ENABLE_DOC=false \
	-G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13387 |21mr|jasperreports-6.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jasperreports
Version:       6.2.5
Release:       1
Summary:       Report-generating tool
License:       LGPLv3+
URL:           http://jasperforge.org/projects/jasperreports/
Group:         Development/Java
# wget http://sourceforge.net/projects/jasperreports/files/jasperreports/JasperReports%%206.2.2/jasperreports-6.2.2-project.tar.gz
# tar xf jasperreports-6.2.2-project.tar.gz
# find jasperreports-6.2.2 -name '*.class' -print -delete
# find jasperreports-6.2.2 -name '*.jar' -print -delete
# find jasperreports-6.2.2 -name 'PieChartReport.bak' -print -delete
# rm -rf jasperreports-6.2.2/lib/* jasperreports-6.2.2/dist/docs/api
# tar czf jasperreports-6.2.2-clean.tar.gz jasperreports-6.2.2
Source0:       %{name}-%{version}-clean.tar.gz

# Exclude Mondrian modules
Patch0:        %{name}-6.2.2-remove-mondrian-support.patch
# Exclude OLAP4j modules
Patch1:        %{name}-6.2.2-remove-olap4j-support.patch
# Exclude Barcode4J and Barbecue modules
Patch2:        %{name}-6.2.2-remove-barbecue-barcode4j-support.patch
# Use commons-codec instead of non-free W3C Base64 implementation
Patch3:        %{name}-6.2.2-use-commons-codec.patch

Patch4:        %{name}-6.2.2-port-to-lucene-5.5.0.patch

BuildRequires: maven-local
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(bsh:bsh)
BuildRequires: mvn(com.adobe.xmp:xmpcore)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.google.zxing:core)
BuildRequires: mvn(com.ibm.icu:icu4j)
BuildRequires: mvn(com.lowagie:itext)
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-digester:commons-digester)
BuildRequires: mvn(javax.persistence:persistence-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.xml.soap:saaj-api)
BuildRequires: mvn(jaxen:jaxen)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sourceforge.jexcelapi:jxl)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.commons:commons-javaflow)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.lucene:lucene-analyzers-common:5)
BuildRequires: mvn(org.apache.lucene:lucene-core:5)
BuildRequires: mvn(org.apache.lucene:lucene-queryparser:5)
BuildRequires: mvn(org.apache.lucene:lucene-misc:5)
BuildRequires: mvn(org.apache.poi:poi)
BuildRequires: mvn(org.apache.poi:poi-ooxml)
BuildRequires: mvn(org.apache.velocity:velocity)
BuildRequires: mvn(org.apache.xmlgraphics:batik-bridge)
BuildRequires: mvn(org.apache.xmlgraphics:batik-svggen)
BuildRequires: mvn(org.codehaus.castor:castor-xml)
BuildRequires: mvn(org.codehaus.groovy:groovy-all)
BuildRequires: mvn(org.eclipse.jdt.core.compiler:ecj)
BuildRequires: mvn(org.hibernate:hibernate-core:3)
BuildRequires: mvn(org.jfree:jcommon)
BuildRequires: mvn(org.jfree:jfreechart)
BuildRequires: mvn(org.mozilla:rhino)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(xalan:xalan)
BuildRequires: mvn(stax:stax-api)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JasperReports is a powerful open source
report-generating tool that has the ability
to deliver rich content onto the screen, to
the printer or into PDF, HTML, XLS, CSV and
XML files. It is entirely written in Java
and can be used in a variety of Java enabled
applications, including J2EE or Web
Its main purpose is to help creating page
oriented, ready to print documents in a
simple and flexible manner.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package manual
Summary:       Manual for %{name}

%description manual
Documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

%patch0 -p1
%pom_remove_dep :mondrian
rm -r src/net/sf/jasperreports/olap/mondrian \
 src/net/sf/jasperreports/data/mondrian

%patch1 -p1
%pom_remove_dep :olap4j
rm -r src/net/sf/jasperreports/olap

%patch2 -p1
%pom_remove_dep :barbecue
rm -r src/net/sf/jasperreports/components/barbecue
%pom_remove_dep :barcode4j
rm -r src/net/sf/jasperreports/components/barcode4j

%patch3 -p1
rm -r src/org
%pom_add_dep commons-codec:commons-codec:1.10:compile

%patch4 -p1

%pom_remove_plugin :clirr-maven-plugin

%pom_change_dep :hibernate-core ::3
%pom_change_dep javax.servlet:servlet-api javax.servlet:javax.servlet-api:3.1.0
%pom_change_dep :bsh bsh::1.3.0
%pom_change_dep :log4j ::1.2.17

%pom_change_dep :commons-javaflow org.apache.commons:


# Disable circular dependecy cycle
%pom_remove_dep org.springframework:
rm -r src/net/sf/jasperreports/extensions/Spring*
 
# Test dep (NOT available)
%pom_remove_dep :jasperreports-fonts

# Remove packaged manifest files
rm -r src/META-INF
%pom_remove_plugin :maven-jar-plugin
# Add OSGi support
%pom_xpath_set "pom:project/pom:packaging" bundle
%pom_add_plugin org.apache.felix:maven-bundle-plugin:3.0.1 . "
<extensions>true</extensions>
<configuration>
   <excludeDependencies>true</excludeDependencies>
   <instructions>
     <Bundle-Name>JasperReports Library</Bundle-Name>
     <Bundle-SymbolicName>net.sf.jasperreports.engine</Bundle-SymbolicName>
     <Bundle-Vendor>TIBCO Software Inc.</Bundle-Vendor>
     <Bundle-Version>\${project.version}</Bundle-Version>
     <DynamicImport-Package>*</DynamicImport-Package>
     <Implementation-Title>net.sf.jasperreports.engine</Implementation-Title>
     <Implementation-Vendor>TIBCO Software Inc.</Implementation-Vendor>
     <Implementation-Version>\${project.version}</Implementation-Version>
     <Specification-Title>JasperReports Library</Specification-Title>
     <Specification-Vendor>TIBCO Software Inc.</Specification-Vendor>
     <Specification-Version>\${project.version}</Specification-Version>
   </instructions>
</configuration>
<executions>
   <execution>
     <id>bundle-manifest</id>
     <phase>process-classes</phase>
     <goals>
       <goal>manifest</goal>
     </goals>
   </execution>
</executions>"

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration" "<additionalparam>-Xdoclint:none</additionalparam>"

# Convert from dos to unix line ending
sed -i.orig 's|\r||g' changes.txt
touch -r changes.txt.orig changes.txt
rm changes.txt.orig

%mvn_alias :%{name} %{name}:%{name}

%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc changes.txt readme.txt
%license license.txt TIBCO_JasperReportsLibraryCE_LicenseAndNotices.txt

%files javadoc -f .mfiles-javadoc
%license license.txt TIBCO_JasperReportsLibraryCE_LicenseAndNotices.txt

%files manual
%doc dist/docs/*
%license license.txt TIBCO_JasperReportsLibraryCE_LicenseAndNotices.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13388 |21mr|jastow-2.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jastow
Version:          2.0.1
Release:          6
Summary:          Jasper fork
License:          ASL 2.0
Url:              https://github.com/undertow-io/jastow
Source0:          https://github.com/undertow-io/jastow/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(io.undertow:undertow-servlet)
BuildRequires:    mvn(org.eclipse.jdt.core.compiler:ecj)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Jasper fork for Undertow.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_dep "org.glassfish:javax.el"

%build
# we don't want to have cyclic dep
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13389 |21mr|jasypt-1.9.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jasypt
Version:       1.9.2
Release:       11
Summary:       Java Simplified Encryption
License:       ASL 2.0
Url:           http://www.jasypt.org/
# svn export https://jasypt.svn.sourceforge.net/svnroot/jasypt/tags/jasypt/jasypt-1.9.2 jasypt-1.9.2
# tar cJf jasypt-1.9.2.tar.xz jasypt-1.9.2
Source0:       %{name}-%{version}.tar.xz
# remove internal commons-codec 1.3
Patch0:        %{name}-1.9.0-use-system-commons-codec.patch
# tks to jhernand
# system commons-codec 1.4 support
Patch1:        %{name}-1.9.0-StandardStringDigester.patch
Patch2:        %{name}-1.9.0-StandardPBEStringEncryptor.patch

BuildRequires: maven-local
BuildRequires: mvn(com.ibm.icu:icu4j)
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk16)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java library which enables encryption
in java apps with minimum effort.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p0

%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-assembly-plugin

%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-resources-plugin']/pom:configuration"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-resources-plugin']" "
<configuration>
  <encoding>UTF-8</encoding>
</configuration>"

%pom_xpath_remove "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-compiler-plugin']" "
<configuration>
  <source>1.6</source>
  <target>1.6</target>
  <encoding>UTF-8</encoding>
</configuration>"

%pom_change_dep bouncycastle:bcprov-jdk12 org.bouncycastle:bcprov-jdk16:1.46:test

%pom_add_dep commons-logging:commons-logging::test

# force servlet-3.1 api
%pom_change_dep javax.servlet: :javax.servlet-api:3.1.0


%mvn_file :%{name} %{name}

%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc ChangeLog.txt README.txt RELEASING.txt USAGE.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13390 |21mr|jatl-0.2.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jatl
Version:       0.2.2
Release:       16
Summary:       Java Anti-Template Language
License:       ASL 2.0
# https://github.com/agentgt
URL:           https://github.com/chris-martin/jatl
Source0:       https://github.com/chris-martin/jatl/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
Requires:      mvn(commons-lang:commons-lang)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Is an extremely lightweight efficient Java library to
generate XHTML or XML in a micro DSL builder/fluent style.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# Unwanted
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin :maven-license-plugin
# Unwanted build source jar
%pom_remove_plugin :maven-source-plugin
# Unwanted build javadoc jar
%pom_remove_plugin :maven-javadoc-plugin
# Unavailable
%pom_remove_plugin com.googlecode.maven-gcu-plugin:maven-gcu-plugin

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license COPYING

%files javadoc -f .mfiles-javadoc
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13391 |21mr|java-11-openjdk-11.0.20.0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# RPM conditionals so as to be able to dynamically produce
# slowdebug/release builds. See:
# http://rpm.org/user_doc/conditional_builds.html
#
# Examples:
#
# Produce release, fastdebug *and* slowdebug builds on x86_64 (default):
# $ rpmbuild -ba java-11-openjdk.spec
#
# Produce only release builds (no slowdebug builds) on x86_64:
# $ rpmbuild -ba java-11-openjdk.spec --without slowdebug --without fastdebug
#
# Only produce a release build on x86_64:
# $ fedpkg mockbuild --without slowdebug --without fastdebug
#
# Only produce a debug build on x86_64:
# $ fedpkg local --without release
#

%bcond_with disable_check

# Enable fastdebug builds by default on relevant arches.
%ifarch %{ix86}
%bcond_with fastdebug
%else
%bcond_without fastdebug
%endif

# Enable slowdebug builds by default on relevant arches.
%ifarch %{ix86}
%bcond_with slowdebug
%else
%bcond_without slowdebug
%endif

# Enable release builds by default on relevant arches.
%bcond_without release

# Enable static library builds by default.
%bcond_with staticlibs

# Workaround for stripping of debug symbols from static libraries
%if %{with staticlibs}
%define __brp_strip_static_archive %{nil}
%global include_staticlibs 1
%else
%global include_staticlibs 0
%endif

#in rosa linux there is no tzdb.dat file
#in the timezone package we will 
#use the standard one from java (temporarily)
%bcond_with timezonejava

%bcond_with clang
%bcond_with bootstrap

# avoid odd diff with spec from Fedora
%define fedora 36

# The -g flag says to use strip -g instead of full strip on DSOs or EXEs.
# This fixes detailed NMT and other tools which need minimal debug info.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879
%global _find_debuginfo_opts -g

# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
# see the difference between global and define:
# See https://github.com/rpm-software-management/rpm/issues/127 to comments at  "pmatilai commented on Aug 18, 2017"
# (initiated in https://bugzilla.redhat.com/show_bug.cgi?id=1482192)
%global debug_suffix_unquoted -slowdebug
%global fastdebug_suffix_unquoted -fastdebug
%global main_suffix_unquoted -main
%global staticlibs_suffix_unquoted -staticlibs
# quoted one for shell operations
%global debug_suffix "%{debug_suffix_unquoted}"
%global fastdebug_suffix "%{fastdebug_suffix_unquoted}"
%global normal_suffix ""
%global main_suffix "%{main_suffix_unquoted}"
%global staticlibs_suffix "%{staticlibs_suffix_unquoted}"

%global debug_warning This package is unoptimised with full debugging. Install only as needed and remove ASAP.
%global fastdebug_warning This package is optimised with full debugging. Install only as needed and remove ASAP.
%global debug_on unoptimised with full debugging on
%global fastdebug_on optimised with full debugging on
%global for_fastdebug for packages with debugging on and optimisation
%global for_debug for packages with debugging on and no optimisation

%if %{with release}
%global include_normal_build 1
%else
%global include_normal_build 0
%endif

%if %{include_normal_build}
%global normal_build %{normal_suffix}
%else
%global normal_build %{nil}
%endif

# We have hardcoded list of files, which  is appearing in alternatives, and in files
# in alternatives those are slaves and master, very often triplicated by man pages
# in files all masters and slaves are ghosted
# the ghosts are here to allow installation via query like `dnf install /usr/bin/java`
# you can list those files, with appropriate sections: cat *.spec | grep -e --install -e --slave -e post_ -e alternatives
# TODO - fix those hardcoded lists via single list
# Those files must *NOT* be ghosted for *slowdebug* packages
# FIXME - if you are moving jshell or jlink or similar, always modify all three sections
# you can check via headless and devels:
#    rpm -ql --noghost java-11-openjdk-headless-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
# == rpm -ql           java-11-openjdk-headless-slowdebug-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
# != rpm -ql           java-11-openjdk-headless-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
# similarly for other %%{_jvmdir}/{jre,java} and %%{_javadocdir}/{java,java-zip}
%define is_release_build() %( if [ "%{?1}" == "%{debug_suffix_unquoted}" -o "%{?1}" == "%{fastdebug_suffix_unquoted}" ]; then echo "0" ; else echo "1"; fi )

# while JDK is a techpreview(is_system_jdk=0), some provides are turned off. Once jdk stops to be an techpreview, move it to 1
# as sytem JDK, we mean any JDK which can run whole system java stack without issues (like bytecode issues, module issues, dependencies...)
%global is_system_jdk 1
# XXX ROSA-specific: commit 6dab1797 accidently put is_system_jdk=1 instead of 0,
# now leaving java 11 with this, but exclude devel provides to restore java 1.8 as default JDK and leave java 11 as default JRE
%global devel_provides 0

%global aarch64         aarch64 arm64 armv8
# we need to distinguish between big and little endian PPC64
%global ppc64le         ppc64le
%global ppc64be         ppc64 ppc64p7
# Set of architectures which support multiple ABIs
%global multilib_arches %{power64} sparc64 x86_64
# Set of architectures for which we build slowdebug builds
%global debug_arches    %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} s390x
# Set of architectures for which we build fastdebug builds
%global fastdebug_arches x86_64 ppc64le aarch64
# Set of architectures with a Just-In-Time (JIT) compiler
%global jit_arches      %{debug_arches} %{arm}
# Set of architectures which run a full bootstrap cycle
%global bootstrap_arches %{jit_arches}
# Set of architectures which support SystemTap tapsets
%global systemtap_arches %{jit_arches}
# Set of architectures with a Ahead-Of-Time (AOT) compiler
%global aot_arches      x86_64 %{aarch64}
# Set of architectures which support the serviceability agent
%global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm}
# Set of architectures which support class data sharing
# As of JDK-8005165 in OpenJDK 10, class sharing is not arch-specific
# However, it does segfault on the Zero assembler port, so currently JIT only
%global share_arches    %{jit_arches}
# Set of architectures for which we build the Shenandoah garbage collector
%global shenandoah_arches x86_64 %{aarch64}
# Set of architectures for which we build the Z garbage collector
%global zgc_arches x86_64

# By default, we build a slowdebug build during main build on JIT architectures
%if %{with slowdebug}
%ifarch %{debug_arches}
%global include_debug_build 1
%else
%global include_debug_build 0
%endif
%else
%global include_debug_build 0
%endif

# On certain architectures, we compile the Shenandoah GC
%ifarch %{shenandoah_arches}
%global use_shenandoah_hotspot 1
%global shenandoah_feature shenandoahgc
%else
%global use_shenandoah_hotspot 0
%global shenandoah_feature -shenandoahgc
%endif

# On certain architectures, we compile the ZGC
%ifarch %{zgc_arches}
%global use_zgc_hotspot 1
%global zgc_feature zgc
%else
%global use_zgc_hotspot 0
%global zgc_feature -zgc
%endif

# By default, we build a fastdebug build during main build only on fastdebug architectures
%if %{with fastdebug}
%ifarch %{fastdebug_arches}
%global include_fastdebug_build 1
%else
%global include_fastdebug_build 0
%endif
%else
%global include_fastdebug_build 0
%endif

%if %{include_debug_build}
%global slowdebug_build %{debug_suffix}
%else
%global slowdebug_build %{nil}
%endif

%if %{include_fastdebug_build}
%global fastdebug_build %{fastdebug_suffix}
%else
%global fastdebug_build %{nil}
%endif

# If you disable both builds, then the build fails
# Build and test slowdebug first as it provides the best diagnostics
%global build_loop %{slowdebug_build} %{fastdebug_build} %{normal_build}

%if %{include_staticlibs}
%global staticlibs_loop %{staticlibs_suffix}
%else
%global staticlibs_loop %{nil}
%endif

%if %{include_staticlibs}
# Extra target for producing the static-libraries. Separate from
# other targets since this target is configured to use in-tree
# AWT dependencies: lcms, libjpeg, libpng, libharfbuzz, giflib
# and possibly others
%global static_libs_target static-libs-image
%else
%global static_libs_target %{nil}
%endif

# http://openjdk.java.net/groups/build/doc/building.html
# unlike portables,the rpms have to use static_libs_target very dynamically
#if %{without bootstrap}
#global release_targets bootcycle-images docs-zip
#else
# XXX there are problems with building bootcycle-images, turn them off for now, not really needed
%global release_targets images docs-zip
#endif
# No docs nor bootcycle for debug builds
%global debug_targets images

# Disable LTO as this causes build failures at the moment.
# See RHBZ#1861401
%define _lto_cflags %{nil}

# Filter out flags from the macro that cause problems with the OpenJDK build
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
%ifarch %{ix86}
%global optflags %optflags -fno-PIC -mstackrealign
%endif
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')

# As discussed with bero@, optflags are duplicated in ldflags for e.g. LTO, but it consuses OpenJDK build scripts
#%%global ourldflags %{__global_ldflags}
%global ourldflags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now

# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
# the initialization must be here. Later the pkg-config have buggy behavior
# looks like openjdk RPM specific bug
# Always set this so the nss.cfg file is not broken
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)

# In some cases, the arch used by the JDK does
# not match _arch.
# Also, in some cases, the machine name used by SystemTap
# does not match that given by _target_cpu
%ifarch x86_64
%global archinstall amd64
%global stapinstall x86_64
%endif
%ifarch ppc
%global archinstall ppc
%global stapinstall powerpc
%endif
%ifarch %{ppc64be}
%global archinstall ppc64
%global stapinstall powerpc
%endif
%ifarch %{ppc64le}
%global archinstall ppc64le
%global stapinstall powerpc
%endif
%ifarch %{ix86}
%global archinstall i686
%global stapinstall i386
%endif
%ifarch ia64
%global archinstall ia64
%global stapinstall ia64
%endif
%ifarch s390
%global archinstall s390
%global stapinstall s390
%endif
%ifarch s390x
%global archinstall s390x
%global stapinstall s390
%endif
%ifarch %{arm}
%global archinstall arm
%global stapinstall arm
%endif
%ifarch %{aarch64}
%global archinstall aarch64
%global stapinstall arm64
%endif
# 32 bit sparc, optimized for v9
%ifarch sparcv9
%global archinstall sparc
%global stapinstall %{_target_cpu}
%endif
# 64 bit sparc
%ifarch sparc64
%global archinstall sparcv9
%global stapinstall %{_target_cpu}
%endif
# Need to support noarch for srpm build
%ifarch noarch
%global archinstall %{nil}
%global stapinstall %{nil}
%endif

%ifarch %{systemtap_arches}
%global with_systemtap 1
%else
%global with_systemtap 0
%endif

# New Version-String scheme-style defines
%global featurever 11
%global interimver 0
%global updatever 20
%global patchver 0
# If you bump featurBever, you must bump also vendor_version_string
# Used via new version scheme. JDK 11 was
# GA'ed in September 2018 => 18.9
%global vendor_version_string 18.9
# buildjdkver is usually same as %%{featurever},
# but in time of bootstrap of next jdk, it is featurever-1,
# and this it is better to change it here, on single place
%global buildjdkver %{featurever}
# Add LTS designator for RHEL builds
%if 0%{?rhel}
  %global lts_designator "LTS"
  %global lts_designator_zip -%{lts_designator}
%else
  %global lts_designator ""
  %global lts_designator_zip ""
%endif

# Define vendor information used by OpenJDK
%global oj_vendor ROSA Linux
%global oj_vendor_url https://www.rosalinux.ru/
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi

# Define IcedTea version used for SystemTap tapsets and desktop file
%global icedteaver      6.0.0pre00-c848b93a8598

# Standard JPackage naming and versioning defines
%global origin          openjdk
%global origin_nice     OpenJDK
%global top_level_dir_name   %{origin}
%global top_level_dir_name_backup %{top_level_dir_name}-backup
%global buildver        5
%global rpmrelease      3
#%%global tagsuffix     %%{nil}
# Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit
%if %is_system_jdk
# Using 10 digits may overflow the int used for priority, so we combine the patch and build versions
# It is very unlikely we will ever have a patch version > 4 or a build version > 20, so we combine as (patch * 20) + build.
# This means 11.0.9.0+11 would have had a priority of 11000911 as before
# A 11.0.9.1+1 would have had a priority of 11000921 (20 * 1 + 1), thus ensuring it is bigger than 11.0.9.0+11
%global combiver $( expr 20 '*' %{patchver} + %{buildver} )
%global priority %( printf '%02d%02d%02d%02d' %{featurever} %{interimver} %{updatever} %{combiver} )
%else
# for techpreview, using 1, so slowdebugs can have 0
%global priority %( printf '%08d' 1 )
%endif
%global newjavaver %{featurever}.%{interimver}.%{updatever}.%{patchver}

# Omit trailing 0 in filenames when the patch version is 0
%if 0%{?patchver} > 0
%global filever %{newjavaver}
%else
%global filever %{featurever}.%{interimver}.%{updatever}
%endif

%global javaver         %{featurever}

# Define milestone (EA for pre-releases, GA for releases)
# Release will be (where N is usually a number starting at 1):
# - 0.N%%{?extraver}%%{?dist} for EA releases,
# - N%%{?extraver}{?dist} for GA releases
%global is_ga           1
%if %{is_ga}
%global ea_designator ""
%global ea_designator_zip ""
%global extraver %{nil}
%global eaprefix %{nil}
%else
%global ea_designator ea
%global ea_designator_zip -%{ea_designator}
%global extraver .%{ea_designator}
%global eaprefix 0.
%endif

# parametrized macros are order-sensitive
%global compatiblename  java-%{featurever}-%{origin}
%global fullversion     %{compatiblename}-%{version}-%{release}
# images directories from upstream build
%global jdkimage                jdk
%global static_libs_image       static-libs
# output dir stub
%define buildoutputdir() %{expand:build/jdk11.build%{?1}}
# we can copy the javadoc to not arched dir, or make it not noarch
%define uniquejavadocdir()    %{expand:%{fullversion}.%{_arch}%{?1}}
# main id and dir of this jdk
%define uniquesuffix()        %{expand:%{fullversion}.%{_arch}%{?1}}

#################################################################
# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349
#         https://bugzilla.redhat.com/show_bug.cgi?id=1590796#c14
#         https://bugzilla.redhat.com/show_bug.cgi?id=1655938
%global _privatelibs libsplashscreen[.]so.*|libawt_xawt[.]so.*|libjli[.]so.*|libattach[.]so.*|libawt[.]so.*|libextnet[.]so.*|libawt_headless[.]so.*|libdt_socket[.]so.*|libfontmanager[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas[.]so.*|libjavajpeg[.]so.*|libjdwp[.]so.*|libjimage[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmanagement_agent[.]so.*|libmanagement_ext[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libprefs[.]so.*|librmi[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsunec[.]so.*|libsystemconf[.]so.*|libunpack[.]so.*|libzip[.]so.*
%global _publiclibs libjawt[.]so.*|libjava[.]so.*|libjvm[.]so.*|libverify[.]so.*|libjsig[.]so.*
%if %is_system_jdk
%global __provides_exclude ^(%{_privatelibs})$
%global __requires_exclude ^(%{_privatelibs})$
# Never generate lib-style provides/requires for slowdebug packages
%global __provides_exclude_from ^.*/%{uniquesuffix -- %{debug_suffix_unquoted}}/.*$
%global __requires_exclude_from ^.*/%{uniquesuffix -- %{debug_suffix_unquoted}}/.*$
%global __provides_exclude_from ^.*/%{uniquesuffix -- %{fastdebug_suffix_unquoted}}/.*$
%global __requires_exclude_from ^.*/%{uniquesuffix -- %{fastdebug_suffix_unquoted}}/.*$
%else
# Don't generate provides/requires for JDK provided shared libraries at all.
%global __provides_exclude ^(%{_privatelibs}|%{_publiclibs})$
%global __requires_exclude ^(%{_privatelibs}|%{_publiclibs})$
%endif


%global etcjavasubdir     %{_sysconfdir}/java/java-%{javaver}-%{origin}
%define etcjavadir()      %{expand:%{etcjavasubdir}/%{uniquesuffix -- %{?1}}}
# Standard JPackage directories and symbolic links.
%define sdkdir()        %{expand:%{uniquesuffix -- %{?1}}}
%define jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}}

%define sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
%define jrebindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}

%global rpm_state_dir %{_localstatedir}/lib/rpm-state/

# For flatpack builds hard-code /usr/sbin/alternatives,
# otherwise use %%{_sbindir} relative path.
%if 0%{?flatpak}
%global alternatives_requires /usr/sbin/alternatives
%else
%global alternatives_requires %{_sbindir}/alternatives
%endif

%if %{with_systemtap}
# Where to install systemtap tapset (links)
# We would like these to be in a package specific sub-dir,
# but currently systemtap doesn't support that, so we have to
# use the root tapset dir for now. To distinguish between 64
# and 32 bit architectures we place the tapsets under the arch
# specific dir (note that systemtap will only pickup the tapset
# for the primary arch for now). Systemtap uses the machine name
# aka target_cpu as architecture specific directory name.
%global tapsetroot /usr/share/systemtap
%global tapsetdirttapset %{tapsetroot}/tapset/
%global tapsetdir %{tapsetdirttapset}/%{stapinstall}
%endif

# not-duplicated scriptlets for normal/debug packages
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%define post_script() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
exit 0
}

%define alternatives_java_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

ext=%{_extension}
alternatives \\
  --install %{_bindir}/java java %{jrebindir -- %{?1}}/java $PRIORITY  --family %{name}.%{_arch} \\
  --slave %{_jvmdir}/jre jre %{_jvmdir}/%{sdkdir -- %{?1}} \\
  --slave %{_bindir}/jjs jjs %{jrebindir -- %{?1}}/jjs \\
  --slave %{_bindir}/keytool keytool %{jrebindir -- %{?1}}/keytool \\
  --slave %{_bindir}/pack200 pack200 %{jrebindir -- %{?1}}/pack200 \\
  --slave %{_bindir}/rmid rmid %{jrebindir -- %{?1}}/rmid \\
  --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir -- %{?1}}/rmiregistry \\
  --slave %{_bindir}/unpack200 unpack200 %{jrebindir -- %{?1}}/unpack200 \\
  --slave %{_mandir}/man1/java.1$ext java.1$ext \\
  %{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jjs.1$ext jjs.1$ext \\
  %{_mandir}/man1/jjs-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext \\
  %{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/pack200.1$ext pack200.1$ext \\
  %{_mandir}/man1/pack200-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmid.1$ext rmid.1$ext \\
  %{_mandir}/man1/rmid-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext \\
  %{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/unpack200.1$ext unpack200.1$ext \\
  %{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1$ext

for X in %{origin} %{javaver} ; do
  alternatives --install %{_jvmdir}/jre-"$X" jre_"$X" %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY --family %{name}.%{_arch}
done

alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
}

%define post_headless() %{expand:
%ifarch %{share_arches}
%{jrebindir -- %{?1}}/java -Xshare:dump >/dev/null 2>/dev/null
%endif

update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

# see pretrans where this file is declared
# also see that pretrans is only for non-debug
if [ ! "%{?1}" == %{debug_suffix} ]; then
  if [ -f %{_libexecdir}/copy_jdk_configs_fixFiles.sh ] ; then
    sh  %{_libexecdir}/copy_jdk_configs_fixFiles.sh %{rpm_state_dir}/%{name}.%{_arch}  %{_jvmdir}/%{sdkdir -- %{?1}}
  fi
fi

exit 0
}

%define postun_script() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    %{update_desktop_icons}
fi
exit 0
}


%define postun_headless() %{expand:
  alternatives --remove java %{jrebindir -- %{?1}}/java
  alternatives --remove jre_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
  alternatives --remove jre_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}}
  alternatives --remove jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}}
}

%define posttrans_script() %{expand:
%{update_desktop_icons}
}


%define alternatives_javac_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

ext=.xz
alternatives \\
  --install %{_bindir}/javac javac %{sdkbindir -- %{?1}}/javac $PRIORITY  --family %{name}.%{_arch} \\
  --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir -- %{?1}} \\
%ifarch %{aot_arches}
  --slave %{_bindir}/jaotc jaotc %{sdkbindir -- %{?1}}/jaotc \\
%endif
  --slave %{_bindir}/jlink jlink %{sdkbindir -- %{?1}}/jlink \\
  --slave %{_bindir}/jmod jmod %{sdkbindir -- %{?1}}/jmod \\
%ifarch %{sa_arches}
  --slave %{_bindir}/jhsdb jhsdb %{sdkbindir -- %{?1}}/jhsdb \\
%endif
  --slave %{_bindir}/jar jar %{sdkbindir -- %{?1}}/jar \\
  --slave %{_bindir}/jarsigner jarsigner %{sdkbindir -- %{?1}}/jarsigner \\
  --slave %{_bindir}/javadoc javadoc %{sdkbindir -- %{?1}}/javadoc \\
  --slave %{_bindir}/javap javap %{sdkbindir -- %{?1}}/javap \\
  --slave %{_bindir}/jcmd jcmd %{sdkbindir -- %{?1}}/jcmd \\
  --slave %{_bindir}/jconsole jconsole %{sdkbindir -- %{?1}}/jconsole \\
  --slave %{_bindir}/jdb jdb %{sdkbindir -- %{?1}}/jdb \\
  --slave %{_bindir}/jdeps jdeps %{sdkbindir -- %{?1}}/jdeps \\
  --slave %{_bindir}/jdeprscan jdeprscan %{sdkbindir -- %{?1}}/jdeprscan \\
  --slave %{_bindir}/jfr jfr %{sdkbindir -- %{?1}}/jfr \\
  --slave %{_bindir}/jimage jimage %{sdkbindir -- %{?1}}/jimage \\
  --slave %{_bindir}/jinfo jinfo %{sdkbindir -- %{?1}}/jinfo \\
  --slave %{_bindir}/jmap jmap %{sdkbindir -- %{?1}}/jmap \\
  --slave %{_bindir}/jps jps %{sdkbindir -- %{?1}}/jps \\
  --slave %{_bindir}/jrunscript jrunscript %{sdkbindir -- %{?1}}/jrunscript \\
  --slave %{_bindir}/jshell jshell %{sdkbindir -- %{?1}}/jshell \\
  --slave %{_bindir}/jstack jstack %{sdkbindir -- %{?1}}/jstack \\
  --slave %{_bindir}/jstat jstat %{sdkbindir -- %{?1}}/jstat \\
  --slave %{_bindir}/jstatd jstatd %{sdkbindir -- %{?1}}/jstatd \\
  --slave %{_bindir}/rmic rmic %{sdkbindir -- %{?1}}/rmic \\
  --slave %{_bindir}/serialver serialver %{sdkbindir -- %{?1}}/serialver \\
  --slave %{_mandir}/man1/jar.1$ext jar.1$ext \\
  %{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext \\
  %{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javac.1$ext javac.1$ext \\
  %{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext \\
  %{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javap.1$ext javap.1$ext \\
  %{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jcmd.1$ext jcmd.1$ext \\
  %{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext \\
  %{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext \\
  %{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jdeps.1$ext jdeps.1$ext \\
  %{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext \\
  %{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext \\
  %{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jps.1$ext jps.1$ext \\
  %{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jrunscript.1$ext jrunscript.1$ext \\
  %{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext \\
  %{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext \\
  %{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext \\
  %{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmic.1$ext rmic.1$ext \\
  %{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
  %{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1$ext \\

for X in %{origin} %{javaver} ; do
  alternatives \\
    --install %{_jvmdir}/java-"$X" java_sdk_"$X" %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
done

update-alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
}

%define post_devel() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

exit 0
}

%define postun_devel() %{expand:
  alternatives --remove javac %{sdkbindir -- %{?1}}/javac
  alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
  alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}}
  alternatives --remove java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}

update-desktop-database %{_datadir}/applications &> /dev/null || :

if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    %{update_desktop_icons}
fi
exit 0
}

%define posttrans_devel() %{expand:
%{alternatives_javac_install --  %{?1}}
%{update_desktop_icons}
}

%define alternatives_javadoc_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

alternatives \\
  --install %{_javadocdir}/java javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api \\
  $PRIORITY  --family %{name}
exit 0
}

%define postun_javadoc() %{expand:
  alternatives --remove javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api
exit 0
}

%define alternatives_javadoczip_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

alternatives \\
  --install %{_javadocdir}/java-zip javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip \\
  $PRIORITY  --family %{name}
exit 0
}

%define postun_javadoc_zip() %{expand:
  alternatives --remove javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
exit 0
}

%define files_jre() %{expand:
%{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}-%{origin}.png
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsplashscreen.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt_xawt.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjawt.so
}


%define files_jre_headless() %{expand:
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%doc %{_defaultdocdir}/%{uniquejavadocdir -- %{?1}}/NEWS
%dir %{_sysconfdir}/.java/.systemPrefs
%dir %{_sysconfdir}/.java
%dir %{_jvmdir}/%{sdkdir -- %{?1}}
%{_jvmdir}/%{sdkdir -- %{?1}}/release
%{_jvmdir}/%{jrelnk -- %{?1}}
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jjs
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/keytool
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/pack200
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmid
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmiregistry
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/unpack200
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib
%ifarch %{jit_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/classlist
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jexec
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jspawnhelper
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jrt-fs.jar
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/modules
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/psfont.properties.ja
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/psfontj2d.properties
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/tzdb.dat
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/jli
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jli/libjli.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jvm.cfg
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libattach.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libextnet.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjsig.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt_headless.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libdt_socket.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libfontmanager.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libinstrument.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2gss.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2pcsc.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2pkcs11.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjaas.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjava.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjavajpeg.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjdwp.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjimage.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjsound.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/liblcms.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement_agent.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement_ext.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmlib_image.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libnet.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libnio.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libprefs.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/librmi.so
# Some architectures don't have the serviceability agent
%ifarch %{sa_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsaproc.so
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsctp.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsunec.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libunpack.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libverify.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libzip.so
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr/default.jfc
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr/profile.jfc
%{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jjs-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/pack200-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmid-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1*
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/
%ifarch %{share_arches}
%attr(444, root, root) %ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/classes.jsa
%endif
%dir %{etcjavasubdir}
%dir %{etcjavadir -- %{?1}}
%dir %{etcjavadir -- %{?1}}/lib
%dir %{etcjavadir -- %{?1}}/lib/security
%{etcjavadir -- %{?1}}/lib/security/cacerts
%dir %{etcjavadir -- %{?1}}/conf
%dir %{etcjavadir -- %{?1}}/conf/management
%dir %{etcjavadir -- %{?1}}/conf/security
%dir %{etcjavadir -- %{?1}}/conf/security/policy
%dir %{etcjavadir -- %{?1}}/conf/security/policy/limited
%dir %{etcjavadir -- %{?1}}/conf/security/policy/unlimited
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/default.policy
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/blocked.certs
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/public_suffix_list.dat
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/exempt_local.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/default_local.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/default_US_export.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/unlimited/default_local.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/unlimited/default_US_export.policy
 %{etcjavadir -- %{?1}}/conf/security/policy/README.txt
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.security
%config(noreplace) %{etcjavadir -- %{?1}}/conf/logging.properties
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.cfg
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/jmxremote.access
# this is conifg template, thus not config-noreplace
%config  %{etcjavadir -- %{?1}}/conf/management/jmxremote.password.template
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/management.properties
%config(noreplace) %{etcjavadir -- %{?1}}/conf/net.properties
%config(noreplace) %{etcjavadir -- %{?1}}/conf/sound.properties
%{_jvmdir}/%{sdkdir -- %{?1}}/conf
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/security
%if %is_system_jdk
%if %{is_release_build -- %{?1}}
%ghost %{_bindir}/java
%ghost %{_jvmdir}/jre
# https://bugzilla.redhat.com/show_bug.cgi?id=1312019
%ghost %{_bindir}/jjs
%ghost %{_bindir}/keytool
%ghost %{_bindir}/pack200
%ghost %{_bindir}/rmid
%ghost %{_bindir}/rmiregistry
%ghost %{_bindir}/unpack200
%ghost %{_jvmdir}/jre-%{origin}
%ghost %{_jvmdir}/jre-%{javaver}
%ghost %{_jvmdir}/jre-%{javaver}-%{origin}
%endif
%endif
# https://bugzilla.redhat.com/show_bug.cgi?id=1820172
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
%ghost %{_jvmdir}/%{sdkdir -- %{?1}}/conf.rpmmoved
%ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/security.rpmmoved
}

%define files_devel() %{expand:
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jar
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jarsigner
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javac
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javadoc
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jconsole
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jcmd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeprscan
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jfr
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jimage
# Some architectures don't have the serviceability agent
%ifarch %{sa_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jhsdb
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jinfo
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jlink
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmod
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jps
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jrunscript
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jshell
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstack
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstat
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstatd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmic
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/serialver
%ifarch %{aot_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jaotc
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/include
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
%if %{with_systemtap}
%{_jvmdir}/%{sdkdir -- %{?1}}/tapset
%endif
%{_datadir}/applications/*jconsole%{?1}.desktop
%{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1*
%if %{with_systemtap}
# /usr/share/systemtap belongs to systemtap
#dir %{tapsetroot}
#dir %{tapsetdirttapset}
#dir %{tapsetdir}
%{tapsetdir}/*%{_arch}%{?1}.stp
%endif
%if %is_system_jdk
%if %{is_release_build -- %{?1}}
%ghost %{_bindir}/javac
%ghost %{_jvmdir}/java
%ghost %{_bindir}/jaotc
%ghost %{_bindir}/jlink
%ghost %{_bindir}/jmod
%ghost %{_bindir}/jhsdb
%ghost %{_bindir}/jar
%ghost %{_bindir}/jarsigner
%ghost %{_bindir}/javadoc
%ghost %{_bindir}/javap
%ghost %{_bindir}/jcmd
%ghost %{_bindir}/jconsole
%ghost %{_bindir}/jdb
%ghost %{_bindir}/jdeps
%ghost %{_bindir}/jdeprscan
%ghost %{_bindir}/jimage
%ghost %{_bindir}/jinfo
%ghost %{_bindir}/jmap
%ghost %{_bindir}/jps
%ghost %{_bindir}/jrunscript
%ghost %{_bindir}/jshell
%ghost %{_bindir}/jstack
%ghost %{_bindir}/jstat
%ghost %{_bindir}/jstatd
%ghost %{_bindir}/rmic
%ghost %{_bindir}/serialver
%ghost %{_jvmdir}/java-%{origin}
%ghost %{_jvmdir}/java-%{javaver}
%ghost %{_jvmdir}/java-%{javaver}-%{origin}
%endif
%endif
}

%define files_jmods() %{expand:
%{_jvmdir}/%{sdkdir -- %{?1}}/jmods
}

%define files_demo() %{expand:
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%{_jvmdir}/%{sdkdir -- %{?1}}/demo
%{_jvmdir}/%{sdkdir -- %{?1}}/sample
}

%define files_src() %{expand:
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/src.zip
}

%define files_static_libs() %{expand:
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/static
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/static/linux-%{archinstall}
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/static/linux-%{archinstall}/glibc
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/static/linux-%{archinstall}/glibc/lib*.a
}

%define files_javadoc() %{expand:
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%if %is_system_jdk
%if %{is_release_build -- %{?1}}
%ghost %{_javadocdir}/java
%endif
%endif
}

%define files_javadoc_zip() %{expand:
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%if %is_system_jdk
%if %{is_release_build -- %{?1}}
%ghost %{_javadocdir}/java-zip
%endif
%endif
}

# not-duplicated requires/provides/obsoletes for normal/debug packages
%define java_rpo() %{expand:
Requires: fontconfig%{?_isa}
Requires: xorg-x11-fonts-Type1
# Require libXcomposite explicitly since it's only dynamically loaded
# at runtime. Fixes screenshot issues. See JDK-8150954.
Requires: libXcomposite%{?_isa}
# Requires rest of java
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# for java-X-openjdk package's desktop binding
%if 0%{?rhel} >= 8
Recommends: gtk3%{?_isa}
%endif

Provides: java-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}

# Standard JPackage base provides
Provides: jre-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java%{?1} = %{epoch}:%{version}-%{release}
Provides: jre%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_headless_rpo() %{expand:
# Require /etc/pki/java/cacerts
Requires: ca-certificates
# Require javapackages-filesystem for ownership of /usr/lib/jvm/ and macros
Requires: javapackages-filesystem
%if %{with timezonejava}
# Require zone-info data provided by tzdata-java sub-package
# 2020a required as of JDK-8243541 in 11.0.8+4
Requires: tzdata-java >= 2020a
%endif
# for support of kernel stream control
# libsctp.so.1 is being `dlopen`ed on demand
Requires: lksctp-tools%{?_isa}
# tool to copy jdk's configs - should be Recommends only, but then only dnf/yum enforce it,
# not rpm transaction and so no configs are persisted when pure rpm -u is run. It may be
# considered as regression
Requires: copy-jdk-configs >= 4.0
OrderWithRequires: copy-jdk-configs
# for printing support
Requires: cups-libs
# Post requires alternatives to install tool alternatives
Requires(post):   %{_sbindir}/alternatives
# Postun requires alternatives to uninstall tool alternatives
Requires(postun): %{_sbindir}/alternatives
# for optional support of kernel stream control, card reader and printing bindings
Suggests: lksctp-tools%{?_isa}, pcsc-lite-devel%{?_isa}

# Standard JPackage base provides
Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-headless%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_devel_rpo() %{expand:
# Requires base package
Requires:         %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# Post requires alternatives to install tool alternatives
Requires(post):   %{alternatives_requires}
# Postun requires alternatives to uninstall tool alternatives
Requires(postun): %{alternatives_requires}

# Standard JPackage devel provides
Provides: java-sdk-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
%if %{is_system_jdk} && %{devel_provides}
Provides: java-devel-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_static_libs_rpo() %{expand:
Requires:         %{name}-devel%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
}

%define java_jmods_rpo() %{expand:
# Requires devel package
# as jmods are bytecode, they should be OK without any _isa
Requires:         %{name}-devel%{?1} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1} = %{epoch}:%{version}-%{release}

Provides: java-%{javaver}-jmods%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-jmods%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-jmods%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_demo_rpo() %{expand:
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

Provides: java-%{javaver}-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_javadoc_rpo() %{expand:
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# Post requires alternatives to install javadoc alternative
Requires(post):   %{alternatives_requires}
# Postun requires alternatives to uninstall javadoc alternative
Requires(postun): %{alternatives_requires}

# Standard JPackage javadoc provides
Provides: java-%{javaver}-javadoc%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-javadoc%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-javadoc%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_src_rpo() %{expand:
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

# Standard JPackage sources provides
Provides: java-%{javaver}-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
%endif
}

# Prevent brp-java-repack-jars from being run
%global __jar_repack 0

Name:    java-%{javaver}-%{origin}
Version: %{newjavaver}.%{buildver}
Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist}
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
# also included the epoch in their virtual provides. This created a
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
# 1:1.5.0". In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
# interpreted as 0:1.6.0. So the "java >= 1.6.0" requirement would be
# satisfied by the 1:1.5.0 packages. Thus we need to set the epoch in
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".

Epoch:   1
Summary: %{origin_nice} %{featurever} Runtime Environment
Group: Development/Java

# HotSpot code is licensed under GPLv2
# JDK library code is licensed under GPLv2 with the Classpath exception
# The Apache license is used in code taken from Apache projects (primarily xalan & xerces)
# DOM levels 2 & 3 and the XML digital signature schemas are licensed under the W3C Software License
# The JSR166 concurrency code is in the public domain
# The BSD and MIT licenses are used for a number of third-party libraries (see ADDITIONAL_LICENSE_INFO)
# The OpenJDK source tree includes:
# - JPEG library (IJG), zlib & libpng (zlib), giflib (MIT), harfbuzz (ISC),
# - freetype (FTL), jline (BSD) and LCMS (MIT)
# - jquery (MIT), jdk.crypto.cryptoki PKCS 11 wrapper (RSA)
# - public_suffix_list.dat from publicsuffix.org (MPLv2.0)
# The test code includes copies of NSS under the Mozilla Public License v2.0
# The PCSClite headers are under a BSD with advertising license
# The elliptic curve cryptography (ECC) source code is licensed under the LGPLv2.1 or any later version
License:  ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib and ISC and FTL and RSA
URL:      http://openjdk.java.net/


# to regenerate source0 (jdk) run update_package.sh
# update_package.sh contains hard-coded repos, revisions, tags, and projects to regenerate the source archives
Source0: openjdk-jdk%{featurever}u-jdk-%{filever}+%{buildver}%{?tagsuffix:-%{tagsuffix}}.tar.xz

# Use 'icedtea_sync.sh' to update the following
# They are based on code contained in the IcedTea project (6.x).
# Systemtap tapsets. Zipped up to keep it small.
Source8: tapsets-icedtea-%{icedteaver}.tar.xz

# Desktop files. Adapted from IcedTea
Source9: jconsole.desktop.in

# Release notes
Source10: NEWS

# nss configuration file
Source11: nss.cfg.in

# Removed libraries that we link instead
Source12: remove-intree-libraries.sh

# Ensure we aren't using the limited crypto policy
Source13: TestCryptoLevel.java

# Ensure ECDSA is working
Source14: TestECDSA.java

# Verify system crypto (policy) can be disabled via a property
Source15: TestSecurityProperties.java

# ROSA-specific
Source300: %{name}.rpmlintrc

# Binary JDK for buolding with_bootstrap
# Only Liberica JDK provides binaries for x86_32
# Gentoo uses https://github.com/AdoptOpenJDK/openjdk11-upstream-binaries/releases, there is no x86_32 there
# Using https://libericajdk.ru/pages/downloads/#/java-11-lts -> "Standard JDK"
# x86_32
Source301: https://download.bell-sw.com/java/11.0.10+9/bellsoft-jdk11.0.10+9-linux-i586.tar.gz
# x86_64
Source302: https://download.bell-sw.com/java/11.0.10+9/bellsoft-jdk11.0.10+9-linux-amd64.tar.gz
# aarch64
Source303: https://download.bell-sw.com/java/11.0.10+9/bellsoft-jdk11.0.10+9-linux-aarch64.tar.gz

%ifarch %{ix86}
%define bootstrap_jdk_source_num 301
%endif
%ifarch %{x86_64}
%define bootstrap_jdk_source_num 302
%endif
%ifarch aarch64
%define bootstrap_jdk_source_num 303
%endif


# Ensure vendor settings are correct
Source16: CheckVendor.java

############################################
#
# RPM/distribution specific patches
#
############################################

# Ignore AWTError when assistive technologies are loaded
Patch1:    rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
# Restrict access to java-atk-wrapper classes
Patch2:    rh1648644-java_access_bridge_privileged_security.patch
# NSS via SunPKCS11 Provider (disabled due to memory leak).
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch

#############################################
#
# Shenandoah specific patches
#
#############################################

# Currently empty

#############################################
#
# Upstreamable patches
#
# This section includes patches which need to
# be reviewed & pushed to the current development
# tree of OpenJDK.
#############################################

Patch3:    rh649512-remove_uses_of_far_in_jpeg_libjpeg_turbo_1_4_compat_for_jdk10_and_up.patch
# PR3694, RH1340845: Add security.useSystemPropertiesFile option to java.security to use system crypto policy
Patch4: pr3694-rh1340845-support_fedora_rhel_system_crypto_policy.patch

#############################################
#
# Patches appearing in 11.0.13
#
# This section includes patches which are present
# in the listed OpenJDK 11u release and should be
# able to be removed once that release is out
# and used by this RPM.
#############################################

# ROSA patch
Patch10: clang_stack.patch
Patch11: JDK-8186780.patch
Patch12: svace-fixes.patch

%if %{with clang}
BuildRequires: clang
%endif
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: binutils
BuildRequires: cups-devel
BuildRequires: elfutils
BuildRequires: elfutils-devel
BuildRequires: fontconfig
BuildRequires: freetype2-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gdb
BuildRequires: harfbuzz-devel
BuildRequires: giflib-devel
BuildRequires: jpeg-devel
BuildRequires: libxslt-devel
BuildRequires: nss-devel
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
BuildRequires: unzip
BuildRequires: xsltproc
BuildRequires: zip
BuildRequires: nss-softokn-freebl-devel
BuildRequires: javapackages-filesystem
%if ! %{with bootstrap}
BuildRequires: java-%{buildjdkver}-openjdk-devel
%endif
# Zero-assembler build requirement
%ifnarch %{jit_arches}
BuildRequires: pkgconfig(libffi)
%endif
%if %{with timezonejava}
# 2021a required as of JDK-8260356 in April 2021 CPU
BuildRequires: tzdata-java >= 2021a
%endif
BuildRequires: gcc
BuildRequires: make

%if %{with_systemtap}
BuildRequires: systemtap-devel
%endif

ExcludeArch: i686

# this is always built, also during debug-only build
# when it is built in debug-only this package is just placeholder
%{java_rpo %{nil}}

%description
The %{origin_nice} %{featurever} runtime environment.

%if %{include_debug_build}
%package slowdebug
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
Group: Development/Java

%{java_rpo -- %{debug_suffix_unquoted}}
%description slowdebug
The %{origin_nice} runtime environment.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package fastdebug
Summary: %{origin_nice} %{featurever} Runtime Environment %{fastdebug_on}
Group:   Development/Java
%{java_rpo -- %{fastdebug_suffix_unquoted}}

%description fastdebug
The %{origin_nice} %{featurever} runtime environment.
%{fastdebug_warning}
%endif

%if %{include_normal_build}
%package headless
Summary: %{origin_nice} %{featurever} Headless Runtime Environment
Group: Development/Java

%{java_headless_rpo %{nil}}

%description headless
The %{origin_nice} %{featurever} runtime environment without audio and video support.
%endif

%if %{include_debug_build}
%package headless-slowdebug
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}

%{java_headless_rpo -- %{debug_suffix_unquoted}}

%description headless-slowdebug
The %{origin_nice} %{featurever} runtime environment without audio and video support.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package headless-fastdebug
Summary: %{origin_nice} %{featurever} Runtime Environment %{fastdebug_on}
Group:   Development/Java

%{java_headless_rpo -- %{fastdebug_suffix_unquoted}}

%description headless-fastdebug
The %{origin_nice} %{featurever} runtime environment without audio and video support.
%{fastdebug_warning}
%endif

%if %{include_normal_build}
%package devel
Summary: %{origin_nice} %{featurever} Development Environment
Group: Development/Java

%{java_devel_rpo %{nil}}

%description devel
The %{origin_nice} %{featurever} development tools.
%endif

%if %{include_debug_build}
%package devel-slowdebug
Summary: %{origin_nice} %{featurever} Development Environment %{debug_on}
Group: Development/Java

%{java_devel_rpo -- %{debug_suffix_unquoted}}

%description devel-slowdebug
The %{origin_nice} %{featurever} development tools.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package devel-fastdebug
Summary: %{origin_nice} %{featurever} Development Environment %{fastdebug_on}
Group:   Development/Java

%{java_devel_rpo -- %{fastdebug_suffix_unquoted}}

%description devel-fastdebug
The %{origin_nice} %{featurever} development tools.
%{fastdebug_warning}
%endif

%if %{include_staticlibs}

%if %{include_normal_build}
%package static-libs
Summary: %{origin_nice} %{featurever} libraries for static linking
Group: Development/Java

%{java_static_libs_rpo %{nil}}

%description static-libs
The %{origin_nice} %{featurever} libraries for static linking
%endif

%if %{include_debug_build}
%package static-libs-slowdebug
Summary: %{origin_nice} %{featurever} libraries for static linking %{debug_on}
Group: Development/Java

%{java_static_libs_rpo -- %{debug_suffix_unquoted}}

%description static-libs-slowdebug
The %{origin_nice} %{featurever} libraries for static linking
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package static-libs-fastdebug
Summary: %{origin_nice} %{featurever} libraries for static linking %{fastdebug_on}
Group:   Development/Java

%{java_static_libs_rpo -- %{fastdebug_suffix_unquoted}}

%description static-libs-fastdebug
The %{origin_nice} %{featurever} libraries for static linking.
%{fastdebug_warning}
%endif

# staticlibs
%endif

%if %{include_normal_build}
%package jmods
Summary: JMods for %{origin_nice} %{featurever}
Group: Development/Java

%{java_jmods_rpo %{nil}}

%description jmods
The JMods for %{origin_nice} %{featurever}.
%endif

%if %{include_fastdebug_build}
%package jmods-fastdebug
Summary: JMods for %{origin_nice} %{featurever} %{fastdebug_on}
Group:   Development/Java

%{java_jmods_rpo -- %{fastdebug_suffix_unquoted}}

%description jmods-fastdebug
The JMods for %{origin_nice} %{featurever}.
%{fastdebug_warning}
%endif

%if %{include_debug_build}
%package jmods-slowdebug
Summary: JMods for %{origin_nice} %{debug_on}
Group: Development/Java

%{java_jmods_rpo -- %{debug_suffix_unquoted}}

%description jmods-slowdebug
The JMods for %{origin_nice} %{featurever}.
%{debug_warning}
%endif

%if %{include_normal_build}
%package demo
Summary: %{origin_nice} %{featurever} Demos\
Group: Development/Java

%{java_demo_rpo %{nil}}

%description demo
The %{origin_nice} %{featurever} demos.
%endif

%if %{include_debug_build}
%package demo-slowdebug
Summary: %{origin_nice} %{featurever} Demos %{debug_on}
Group: Development/Java

%{java_demo_rpo -- %{debug_suffix_unquoted}}

%description demo-slowdebug
The %{origin_nice} %{featurever} demos.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package demo-fastdebug
Summary: %{origin_nice} %{featurever} Demos %{fastdebug_on}
Group:   Development/Java

%{java_demo_rpo -- %{fastdebug_suffix_unquoted}}

%description demo-fastdebug
The %{origin_nice} %{featurever} demos.
%{fastdebug_warning}
%endif

%if %{include_normal_build}
%package src
Summary: %{origin_nice} %{featurever} Source Bundle
Group: Development/Java

%{java_src_rpo %{nil}}

%description src
The %{compatiblename}-src sub-package contains the complete %{origin_nice} %{featurever}
class library source code for use by IDE indexers and debuggers.
%endif

%if %{include_debug_build}
%package src-slowdebug
Summary: %{origin_nice} %{featurever} Source Bundle %{for_debug}
Group: Development/Java

%{java_src_rpo -- %{debug_suffix_unquoted}}

%description src-slowdebug
The %{compatiblename}-src-slowdebug sub-package contains the complete %{origin_nice} %{featurever}
 class library source code for use by IDE indexers and debuggers, %{for_debug}.
%endif

%if %{include_fastdebug_build}
%package src-fastdebug
Summary: %{origin_nice} %{featurever} Source Bundle %{for_fastdebug}
Group:   Development/Java

%{java_src_rpo -- %{fastdebug_suffix_unquoted}}

%description src-fastdebug
The %{compatiblename}-src-fastdebug sub-package contains the complete %{origin_nice} %{featurever}
 class library source code for use by IDE indexers and debuggers, %{for_fastdebug}.
%endif

%if %{include_normal_build}
%package javadoc
Summary: %{origin_nice} %{featurever} API documentation
Group: Development/Java
Requires: javapackages-filesystem
Obsoletes: javadoc-slowdebug < 1:11.0.3.7-4

%{java_javadoc_rpo %{nil}}

%description javadoc
The %{origin_nice} %{featurever} API documentation.

%package javadoc-zip
Summary: %{origin_nice} %{featurever} API documentation compressed in a single archive
Group: Development/Java
Requires: javapackages-filesystem
Obsoletes: javadoc-zip-slowdebug < 1:11.0.3.7-4

%{java_javadoc_rpo %{nil}}

%description javadoc-zip
The %{origin_nice} %{featurever} API documentation compressed in a single archive.
%endif

%prep

# Using the echo macro breaks rpmdev-bumpspec, as it parses the first line of stdout :-(
%if 0%{?stapinstall:1}
  echo "CPU: %{_target_cpu}, arch install directory: %{archinstall}, SystemTap install directory: %{stapinstall}"
%else
  %{error:Unrecognised architecture %{_target_cpu}}
%endif

if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
  echo "include_normal_build is %{include_normal_build}"
else
  echo "include_normal_build is %{include_normal_build}, that is invalid. Use 1 for yes or 0 for no"
  exit 11
fi
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
  echo "include_debug_build is %{include_debug_build}"
else
  echo "include_debug_build is %{include_debug_build}, that is invalid. Use 1 for yes or 0 for no"
  exit 12
fi
if [ %{include_fastdebug_build} -eq 0 -o  %{include_fastdebug_build} -eq 1 ] ; then
  echo "include_fastdebug_build is %{include_fastdebug_build}"
else
  echo "include_fastdebug_build is %{include_fastdebug_build}, that is invalid. Use 1 for yes or 0 for no"
  exit 13
fi
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 -a  %{include_fastdebug_build} -eq 0 ] ; then
  echo "You have disabled all builds (normal,fastdebug,slowdebug). That is a no go."
  exit 14
fi
%setup -q -c -n %{uniquesuffix ""} -T -a 0 %{?with_bootstrap:-b %{bootstrap_jdk_source_num}}
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
prioritylength=`expr length %{priority}`
if [ $prioritylength -ne 8 ] ; then
 echo "priority must be 8 digits in total, violated"
 exit 14
fi

# OpenJDK patches

# Remove libraries that are linked by both static and dynamic builds
sh %{SOURCE12} %{top_level_dir_name}

# Patch the JDK
pushd %{top_level_dir_name}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%if %{with clang}
%patch10 -p1
%patch11 -p1
%endif
%patch12 -p1
popd # openjdk

%patch1000

# Extract systemtap tapsets
%if %{with_systemtap}
tar --strip-components=1 -x -I xz -f %{SOURCE8}
%if %{include_debug_build}
cp -r tapset tapset%{debug_suffix}
%endif
%if %{include_fastdebug_build}
cp -r tapset tapset%{fastdebug_suffix}
%endif

for suffix in %{build_loop} ; do
  for file in "tapset"$suffix/*.in; do
    OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
    sed -e "s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/server/libjvm.so:g" $file > $file.1
    sed -e "s:@JAVA_SPEC_VER@:%{javaver}:g" $file.1 > $file.2
# TODO find out which architectures other than i686 have a client vm
%ifarch %{ix86}
    sed -e "s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/client/libjvm.so:g" $file.2 > $OUTPUT_FILE
%else
    sed -e "/@ABS_CLIENT_LIBJVM_SO@/d" $file.2 > $OUTPUT_FILE
%endif
    sed -i -e "s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g" $OUTPUT_FILE
    sed -i -e "s:@INSTALL_ARCH_DIR@:%{archinstall}:g" $OUTPUT_FILE
    sed -i -e "s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g" $OUTPUT_FILE
  done
done
# systemtap tapsets ends
%endif

# Prepare desktop files
# The _X_ syntax indicates variables that are replaced by make upstream
# The @X@ syntax indicates variables that are replaced by configure upstream
for suffix in %{build_loop} ; do
for file in %{SOURCE9}; do
    FILE=`basename $file | sed -e s:\.in$::g`
    EXT="${FILE##*.}"
    NAME="${FILE%.*}"
    OUTPUT_FILE=$NAME$suffix.$EXT
    sed    -e  "s:_SDKBINDIR_:%{sdkbindir -- $suffix}:g" $file > $OUTPUT_FILE
    sed -i -e  "s:@target_cpu@:%{_arch}:g" $OUTPUT_FILE
    sed -i -e  "s:@OPENJDK_VER@:%{version}-%{release}.%{_arch}$suffix:g" $OUTPUT_FILE
    sed -i -e  "s:@JAVA_VER@:%{javaver}:g" $OUTPUT_FILE
    sed -i -e  "s:@JAVA_VENDOR@:%{origin}:g" $OUTPUT_FILE
done
done

# Setup nss.cfg
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE11} > nss.cfg

%build
%if %{with clang}
export CC="clang"
export CXX="clang++"
%endif
# How many CPU's do we have?
export NUM_PROC=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :)
export NUM_PROC=${NUM_PROC:-1}
%if 0%{?_smp_ncpus_max}
# Honor %%_smp_ncpus_max
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
%endif

%ifarch s390x sparc64 alpha %{power64} %{aarch64}
export ARCH_DATA_MODEL=64
%endif
%ifarch alpha
export CFLAGS="$CFLAGS -mieee"
%endif

# We use ourcppflags because the OpenJDK build seems to
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
EXTRA_CFLAGS="%ourcppflags -Wno-error"
EXTRA_CPP_FLAGS="%ourcppflags"

%ifarch %{power64} ppc
# fix rpmlint warnings
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
%endif
%if %{without clang}
# Fixes annocheck warnings in assembler files due to missing build notes
EXTRA_ASFLAGS="${EXTRA_CFLAGS} -Wa,--generate-missing-build-notes=yes"
%else
EXTRA_ASFLAGS="${EXTRA_CFLAGS}"
%endif
export EXTRA_CFLAGS EXTRA_ASFLAGS

for suffix in %{build_loop} ; do
if [ "x$suffix" = "x" ] ; then
  debugbuild=release
  debug_symbols=internal
else
  # change --something to something
  debugbuild=`echo $suffix  | sed "s/-//g"`
  debug_symbols=internal
fi

for loop in %{main_suffix} %{staticlibs_loop} ; do

if test "x${loop}" = "x%{main_suffix}" ; then
    # Copy the source tree so we can remove all in-tree libraries
    cp -a %{top_level_dir_name} %{top_level_dir_name_backup}
    # Remove all libraries that are linked
    sh %{SOURCE12} %{top_level_dir_name} full
    # Variable used by configure and hs_err hook on build failures
    link_opt="system"
    # Debug builds don't need same targets as release for
    # build speed-up
    maketargets="%{release_targets}"
    if echo $debugbuild | grep -q "debug" ; then
	maketargets="%{debug_targets}"
    fi
else
    # Variable used by configure and hs_err hook on build failures
    link_opt="bundled"
    # Static library cycle only builds the static libraries
    maketargets="%{static_libs_target}"
fi

top_dir_abs_src_path=$(pwd)/%{top_level_dir_name}
top_dir_abs_build_path=$(pwd)/%{buildoutputdir -- ${suffix}${loop}}
mkdir -p ${top_dir_abs_build_path}
pushd ${top_dir_abs_build_path}

bash ${top_dir_abs_src_path}/configure \
%ifnarch %{jit_arches}
    --with-jvm-variants=zero \
%endif
%ifarch %{ppc64le}
    --with-jobs=1 \
%endif
    --with-version-build=%{buildver} \
    --with-version-pre="%{ea_designator}" \
    --with-version-opt=%{lts_designator} \
    --with-vendor-version-string="%{vendor_version_string}" \
    --with-vendor-name="%{oj_vendor}" \
    --with-vendor-url="%{oj_vendor_url}" \
    --with-vendor-bug-url="%{oj_vendor_bug_url}" \
    --with-vendor-vm-bug-url="%{oj_vendor_bug_url}" \
%if ! %{with bootstrap}
    --with-boot-jdk=/usr/lib/jvm/java-%{buildjdkver}-openjdk \
%else
    --with-boot-jdk="%{_builddir}/jdk-11.0.10" \
%endif
    --with-debug-level=$debugbuild \
    --with-native-debug-symbols=$debug_symbols \
    --enable-unlimited-crypto \
    --with-zlib=${link_opt} \
    --with-libjpeg=${link_opt} \
    --with-giflib=${link_opt} \
    --with-libpng=${link_opt} \
    --with-lcms=${link_opt} \
    --with-harfbuzz=${link_opt} \
    --with-stdc++lib=dynamic \
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
    --with-extra-cflags="$EXTRA_CFLAGS" \
    --with-extra-asflags="$EXTRA_ASFLAGS" \
    --with-extra-ldflags="%{ourldflags}" \
    --with-num-cores="$NUM_PROC" \
    --disable-javac-server \
   --with-jvm-features="%{shenandoah_feature},%{zgc_feature}" \
    --disable-warnings-as-errors \
%if %{with clang}
    --with-toolchain-type="clang" \
%endif
    %{nil}

make \
    JAVAC_FLAGS=-g \
    LOG=trace \
    WARNINGS_ARE_ERRORS="-Wno-error" \
    CFLAGS_WARNINGS_ARE_ERRORS="-Wno-error" \
    $maketargets || ( pwd; find ${top_dir_abs_src_path} ${top_dir_abs_build_path} -name "hs_err_pid*.log" | xargs cat && false )

popd

# Restore original source tree if we modified it by removing full in-tree sources
if [ -d %{top_level_dir_name_backup} ] ; then
    rm -rf %{top_level_dir_name}
    mv %{top_level_dir_name_backup} %{top_level_dir_name}
fi

done # end of main / staticlibs loop

top_dir_abs_main_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{main_suffix}}

# the build (erroneously) removes read permissions from some jars
# this is a regression in OpenJDK 7 (our compiler):
# http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
find ${top_dir_abs_main_build_path}/images/%{jdkimage} -iname '*.jar' -exec chmod ugo+r {} \;

# Build screws up permissions on binaries
# https://bugs.openjdk.java.net/browse/JDK-8173610
find ${top_dir_abs_main_build_path}/images/%{jdkimage} -iname '*.so' -exec chmod +x {} \;
find ${top_dir_abs_main_build_path}/images/%{jdkimage}/bin/ -exec chmod +x {} \;

# Install nss.cfg right away as we will be using the JRE above
export JAVA_HOME=${top_dir_abs_main_build_path}/images/%{jdkimage}

# Install nss.cfg right away as we will be using the JRE above
install -m 644 nss.cfg $JAVA_HOME/conf/security/

%if %{with timezonejava}
# Use system-wide tzdata
rm $JAVA_HOME/lib/tzdb.dat
ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/lib/tzdb.dat
%endif

# build cycles
done # end of release / debug cycle loop

%if %{with disable_check}
%check

# We test debug first as it will give better diagnostics on a crash
for suffix in %{build_loop} ; do

top_dir_abs_main_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{main_suffix}}

%if %{include_staticlibs}
top_dir_abs_staticlibs_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{staticlibs_loop}}
%endif

export JAVA_HOME=${top_dir_abs_main_build_path}/images/%{jdkimage}

#check Shenandoah is enabled
%if %{use_shenandoah_hotspot}
$JAVA_HOME//bin/java -XX:+UseShenandoahGC -version
%endif

# Check unlimited policy has been used
$JAVA_HOME/bin/javac -d . %{SOURCE13}
$JAVA_HOME/bin/java --add-opens java.base/javax.crypto=ALL-UNNAMED TestCryptoLevel

# Check ECC is working
$JAVA_HOME/bin/javac -d . %{SOURCE14}
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")

# Check system crypto (policy) can be disabled
$JAVA_HOME/bin/javac -d . %{SOURCE15}
$JAVA_HOME/bin/java -Djava.security.disableSystemPropertiesFile=true $(echo $(basename %{SOURCE15})|sed "s|\.java||")

# Check correct vendor values have been set
$JAVA_HOME/bin/javac -d . %{SOURCE16}
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE16})|sed "s|\.java||") "%{oj_vendor}" "%{oj_vendor_url}" "%{oj_vendor_bug_url}"

# Check java launcher has no SSB mitigation
if ! nm $JAVA_HOME/bin/java | grep set_speculation ; then true ; else false; fi

%if %{include_staticlibs}
# Check debug symbols in static libraries (smoke test)
export STATIC_LIBS_HOME=${top_dir_abs_staticlibs_build_path}/images/%{static_libs_image}
readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep w_remainder.c
readelf --debug-dump $STATIC_LIBS_HOME/lib/libfdlibm.a | grep e_remainder.c
%endif

so_suffix="so"
# Check debug symbols are present and can identify code
find "$JAVA_HOME" -iname "*.$so_suffix" -print0 | while read -d $'\0' lib
do
  if [ -f "$lib" ] ; then
    echo "Testing $lib for debug symbols"
    # All these tests rely on RPM failing the build if the exit code of any set
    # of piped commands is non-zero.

    # Test for .debug_* sections in the shared object. This is the main test
    # Stripped objects will not contain these
    eu-readelf -S "$lib" | grep "] .debug_"
    test $(eu-readelf -S "$lib" | grep -E "\]\ .debug_(info|abbrev)" | wc --lines) == 2

    # Test FILE symbols. These will most likely be removed by anything that
    # manipulates symbol tables because it's generally useless. So a nice test
    # that nothing has messed with symbols
    old_IFS="$IFS"
    IFS=$'\n'
    for line in $(eu-readelf -s "$lib" | grep "00000000      0 FILE    LOCAL  DEFAULT")
    do
     # We expect to see .cpp files, except for architectures like aarch64 and
     # s390 where we expect .o and .oS files
      echo "$line" | grep -E "ABS ((.*/)?[-_a-zA-Z0-9]+\.(c|cc|cpp|cxx|o|oS))?$"
    done
    IFS="$old_IFS"

    # If this is the JVM, look for javaCalls.(cpp|o) in FILEs, for extra sanity checking
    if [ "`basename $lib`" = "libjvm.so" ]; then
      eu-readelf -s "$lib" | \
        grep -E "00000000      0 FILE    LOCAL  DEFAULT      ABS javaCalls.(cpp|o)$"
    fi

    # Test that there are no .gnu_debuglink sections pointing to another
    # debuginfo file. There shouldn't be any debuginfo files, so the link makes
    # no sense either
    eu-readelf -S "$lib" | grep 'gnu'
    if eu-readelf -S "$lib" | grep '] .gnu_debuglink' | grep PROGBITS; then
      echo "bad .gnu_debuglink section."
      eu-readelf -x .gnu_debuglink "$lib"
      false
    fi
  fi
done

# Make sure gdb can do a backtrace based on line numbers on libjvm.so
# javaCalls.cpp:58 should map to:
# http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/ff3b27e6bcc2/src/share/vm/runtime/javaCalls.cpp#l58 
# Using line number 1 might cause build problems. See:
# https://bugzilla.redhat.com/show_bug.cgi?id=1539664
# https://bugzilla.redhat.com/show_bug.cgi?id=1538767
gdb -q "$JAVA_HOME/bin/java" <<EOF | tee gdb.out
handle SIGSEGV pass nostop noprint
handle SIGILL pass nostop noprint
set breakpoint pending on
break javaCalls.cpp:58
commands 1
backtrace
quit
end
run -version
EOF
%if 0%{?fedora} > 0
# This fails on s390x for some reason. Disable for now. See:
# https://koji.fedoraproject.org/koji/taskinfo?taskID=41499227
%ifnarch s390x
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out
%endif
%endif

# Check src.zip has all sources. See RHBZ#1130490
$JAVA_HOME/bin/jar -tf $JAVA_HOME/lib/src.zip | grep 'sun.misc.Unsafe'

# Check class files include useful debugging information
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable

# Check generated class files include useful debugging information
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable

# build cycles check
done
%endif

%install
STRIP_KEEP_SYMTAB=libjvm*

for suffix in %{build_loop} ; do

top_dir_abs_main_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{main_suffix}}
%if %{include_staticlibs}
top_dir_abs_staticlibs_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{staticlibs_loop}}
%endif
jdk_image=${top_dir_abs_main_build_path}/images/%{jdkimage}

# Install the jdk
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}
cp -a ${jdk_image} $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}

pushd ${jdk_image}

%if %{with_systemtap}
  # Install systemtap support files
  install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset
  # note, that uniquesuffix  is in BUILD dir in this case
  cp -a $RPM_BUILD_DIR/%{uniquesuffix ""}/tapset$suffix/*.stp $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
  pushd  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
   tapsetFiles=`ls *.stp`
  popd
  install -d -m 755 $RPM_BUILD_ROOT%{tapsetdir}
  for name in $tapsetFiles ; do
    targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
    ln -sf %{_jvmdir}/%{sdkdir -- $suffix}/tapset/$name $RPM_BUILD_ROOT%{tapsetdir}/$targetName
  done
%endif

  # Remove empty cacerts database
  rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/security/cacerts
  # Install cacerts symlink needed by some apps which hard-code the path
  pushd $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/security
      ln -sf /etc/pki/java/cacerts .
  popd

  # Install version-ed symlinks
  pushd $RPM_BUILD_ROOT%{_jvmdir}
    ln -sf %{sdkdir -- $suffix} %{jrelnk -- $suffix}
  popd

  # Install man pages
  install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
  for manpage in man/man1/*
  do
    # Convert man pages to UTF8 encoding
    iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
    mv -f $manpage.tmp $manpage
    install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/$(basename \
      $manpage .1)-%{uniquesuffix -- $suffix}.1
  done
  # Remove man pages from jdk image
  rm -rf $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/man

popd
# Install static libs artefacts
%if %{include_staticlibs}
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/static/linux-%{archinstall}/glibc
cp -a ${top_dir_abs_staticlibs_build_path}/images/%{static_libs_image}/lib/*.a \
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/lib/static/linux-%{archinstall}/glibc
%endif

if ! echo $suffix | grep -q "debug" ; then
  # Install Javadoc documentation
  install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
  cp -a ${top_dir_abs_main_build_path}/images/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}
  built_doc_archive=jdk-%{filever}%{ea_designator_zip}+%{buildver}%{lts_designator_zip}-docs.zip
  cp -a ${top_dir_abs_main_build_path}/bundles/${built_doc_archive} \
     $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip || ls -l ${top_dir_abs_main_build_path}/bundles/
fi

# Install release notes
commondocdir=${RPM_BUILD_ROOT}%{_defaultdocdir}/%{uniquejavadocdir -- $suffix}
install -d -m 755 ${commondocdir}
cp -a %{SOURCE10} ${commondocdir}

# Install icons and menu entries
for s in 16 24 32 48 ; do
  install -D -p -m 644 \
    %{top_level_dir_name}/src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}-%{origin}.png
done

# Install desktop files
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
for e in jconsole$suffix ; do
    desktop-file-install --vendor=%{uniquesuffix -- $suffix} --mode=644 \
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications $e.desktop
done

# Install /etc/.java/.systemPrefs/ directory
# See https://bugzilla.redhat.com/show_bug.cgi?id=741821
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs

# copy samples next to demos; samples are mostly js files
cp -r %{top_level_dir_name}/src/sample  $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/


# moving config files to /etc
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib
mv $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/conf/  $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}
mv $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/lib/security  $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib
pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}
  ln -s %{etcjavadir -- $suffix}/conf  ./conf
popd
pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/lib
  ln -s %{etcjavadir -- $suffix}/lib/security  ./security
popd
# end moving files to /etc

# stabilize permissions
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "*.so" -exec chmod 755 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -type d -exec chmod 755 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/legal -type f -exec chmod 644 {} \; ; 

# end, dual install
done

%if %{include_normal_build}
# intentionally only for non-debug
%pretrans headless -p <lua>
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1290388 for pretrans over pre
-- if copy-jdk-configs is in transaction, it installs in pretrans to temp
-- if copy_jdk_configs is in temp, then it means that copy-jdk-configs is in transaction  and so is
-- preferred over one in %%{_libexecdir}. If it is not in transaction, then depends
-- whether copy-jdk-configs is installed or not. If so, then configs are copied
-- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all
local posix = require "posix"

if (os.getenv("debug") == "true") then
  debug = true;
  print("cjc: in spec debug is on")
else 
  debug = false;
end

SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua"
SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua"

local stat1 = posix.stat(SOURCE1, "type");
local stat2 = posix.stat(SOURCE2, "type");

  if (stat1 ~= nil) then
  if (debug) then
    print(SOURCE1 .." exists - copy-jdk-configs in transaction, using this one.")
  end;
  package.path = package.path .. ";" .. SOURCE1
else
  if (stat2 ~= nil) then
  if (debug) then
    print(SOURCE2 .." exists - copy-jdk-configs already installed and NOT in transaction. Using.")
  end;
  package.path = package.path .. ";" .. SOURCE2
  else
    if (debug) then
      print(SOURCE1 .." does NOT exists")
      print(SOURCE2 .." does NOT exists")
      print("No config files will be copied")
    end
  return
  end
end
arg = nil ;  -- it is better to null the arg up, no meter if they exists or not, and use cjc as module in unified way, instead of relaying on "main" method during require "copy_jdk_configs.lua"
cjc = require "copy_jdk_configs.lua"
args = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"}
cjc.mainProgram(args)
-- the returns from copy_jdk_configs.lua should not affect this 'main', so it shodl run under all circumstances, except fatal error
-- https://bugzilla.redhat.com/show_bug.cgi?id=1820172
-- https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
-- Define the path to directory being replaced below.
-- DO NOT add a trailing slash at the end.
path1 = "%{_jvmdir}/%{sdkdir -- %{nil}}/conf"
path2 = "%{_jvmdir}/%{sdkdir -- %{nil}}/lib/security"
array = {path1, path2}
for index, path in pairs(array) do
  st = posix.stat(path)
  if st and st.type == "directory" then
    status = os.rename(path, path .. ".rpmmoved")
    if not status then
      suffix = 0
      while not status do
        suffix = suffix + 1
        status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
      end
      os.rename(path, path .. ".rpmmoved")
    end
  end
end

%post
%{post_script %{nil}}

%post headless
%{post_headless %{nil}}

%postun
%{postun_script %{nil}}

%postun headless
%{postun_headless %{nil}}

%posttrans
%{posttrans_script %{nil}}

%posttrans headless
%{alternatives_java_install %{nil}}

%post devel
%{post_devel %{nil}}

%postun devel
%{postun_devel %{nil}}

%posttrans  devel
%{posttrans_devel %{nil}}

%posttrans javadoc
%{alternatives_javadoc_install %{nil}}

%postun javadoc
%{postun_javadoc %{nil}}

%posttrans javadoc-zip
%{alternatives_javadoczip_install %{nil}}

%postun javadoc-zip
%{postun_javadoc_zip %{nil}}
%endif

%if %{include_debug_build}
%post slowdebug
%{post_script -- %{debug_suffix_unquoted}}

%post headless-slowdebug
%{post_headless -- %{debug_suffix_unquoted}}

%posttrans headless-slowdebug
%{alternatives_java_install -- %{debug_suffix_unquoted}}

%postun slowdebug
%{postun_script -- %{debug_suffix_unquoted}}

%postun headless-slowdebug
%{postun_headless -- %{debug_suffix_unquoted}}

%posttrans slowdebug
%{posttrans_script -- %{debug_suffix_unquoted}}

%post devel-slowdebug
%{post_devel -- %{debug_suffix_unquoted}}

%postun devel-slowdebug
%{postun_devel -- %{debug_suffix_unquoted}}

%posttrans  devel-slowdebug
%{posttrans_devel -- %{debug_suffix_unquoted}}
%endif

%if %{include_fastdebug_build}
%post fastdebug
%{post_script -- %{fastdebug_suffix_unquoted}}

%post headless-fastdebug
%{post_headless -- %{fastdebug_suffix_unquoted}}

%postun fastdebug
%{postun_script -- %{fastdebug_suffix_unquoted}}

%postun headless-fastdebug
%{postun_headless -- %{fastdebug_suffix_unquoted}}

%posttrans fastdebug
%{posttrans_script -- %{fastdebug_suffix_unquoted}}

%posttrans headless-fastdebug
%{alternatives_java_install -- %{fastdebug_suffix_unquoted}}

%post devel-fastdebug
%{post_devel -- %{fastdebug_suffix_unquoted}}

%postun devel-fastdebug
%{postun_devel -- %{fastdebug_suffix_unquoted}}

%posttrans  devel-fastdebug
%{posttrans_devel -- %{fastdebug_suffix_unquoted}}

%endif

%if %{include_normal_build}
%files
# main package builds always
%{files_jre %{nil}}
%else
%files
# placeholder
%endif


%if %{include_normal_build}
%files headless
# important note, see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
# all config/noreplace files (and more) have to be declared in pretrans. See pretrans
%{files_jre_headless %{nil}}

%files devel
%{files_devel %{nil}}

%if %{include_staticlibs}
%files static-libs
%{files_static_libs %{nil}}
%endif

%files jmods
%{files_jmods %{nil}}

%files demo
%{files_demo %{nil}}

%files src
%{files_src %{nil}}

%files javadoc
%{files_javadoc %{nil}}

# This puts a huge documentation file in /usr/share
# It is now architecture-dependent, as eg. AOT and Graal are now x86_64 only
# same for debug variant
%files javadoc-zip
%{files_javadoc_zip %{nil}}
%endif

%if %{include_debug_build}
%files slowdebug
%{files_jre -- %{debug_suffix_unquoted}}

%files headless-slowdebug
%{files_jre_headless -- %{debug_suffix_unquoted}}

%files devel-slowdebug
%{files_devel -- %{debug_suffix_unquoted}}

%if %{include_staticlibs}
%files static-libs-slowdebug
%{files_static_libs -- %{debug_suffix_unquoted}}
%endif

%files jmods-slowdebug
%{files_jmods -- %{debug_suffix_unquoted}}

%files demo-slowdebug
%{files_demo -- %{debug_suffix_unquoted}}

%files src-slowdebug
%{files_src -- %{debug_suffix_unquoted}}
%endif

%if %{include_fastdebug_build}
%files fastdebug
%{files_jre -- %{fastdebug_suffix_unquoted}}

%files headless-fastdebug
%{files_jre_headless -- %{fastdebug_suffix_unquoted}}

%files devel-fastdebug
%{files_devel -- %{fastdebug_suffix_unquoted}}

%if %{include_staticlibs}
%files static-libs-fastdebug
%{files_static_libs -- %{fastdebug_suffix_unquoted}}
%endif

%files jmods-fastdebug
%{files_jmods -- %{fastdebug_suffix_unquoted}}

%files demo-fastdebug
%{files_demo -- %{fastdebug_suffix_unquoted}}

%files src-fastdebug
%{files_src -- %{fastdebug_suffix_unquoted}}

%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13392 |21mr|java-17-openjdk-17.0.8.0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# RPM conditionals so as to be able to dynamically produce
# slowdebug/release builds. See:
# http://rpm.org/user_doc/conditional_builds.html
#
# Examples:
#
# Produce release, fastdebug *and* slowdebug builds on x86_64 (default):
# $ rpmbuild -ba java-17-openjdk.spec
#
# Produce only release builds (no debug builds) on x86_64:
# $ rpmbuild -ba java-17-openjdk.spec --without slowdebug --without fastdebug
#
# Only produce a release build on x86_64:
# $ fedpkg mockbuild --without slowdebug --without fastdebug

# Enable fastdebug builds by default on relevant arches.
%bcond_without fastdebug
# Enable slowdebug builds by default on relevant arches.
%bcond_without slowdebug
# Enable release builds by default on relevant arches.
%bcond_without release
# Enable static library builds by default.
%bcond_without staticlibs
# Build a fresh libjvm.so for use in a copy of the bootstrap JDK
%bcond_without fresh_libjvm
# Build with system libraries
%bcond_with system_libs

%bcond_with bootstrap
%define _duplicate_files_terminate_build 0

# enable libjsvml on x86_64 if not rosa2021.15
%global libjsvml 0
%ifarch %{x86_64}
%if %{mdvver} != 202115
%global libjsvml 1
%endif
%endif

# Workaround for stripping of debug symbols from static libraries
%if %{with staticlibs}
%define __brp_strip_static_archive %{nil}
%global include_staticlibs 1
%else
%global include_staticlibs 0
%endif

# Define whether to use the bootstrap JDK directly or with a fresh libjvm.so
%if %{with fresh_libjvm}
%global build_hotspot_first 1
%else
%global build_hotspot_first 0
%endif

%if %{with system_libs}
%global system_libs 1
%global link_type system
%global freetype_lib %{nil}
%else
%global system_libs 0
%global link_type bundled
%global freetype_lib |libfreetype[.]so.*
%endif

# The -g flag says to use strip -g instead of full strip on DSOs or EXEs.
# This fixes detailed NMT and other tools which need minimal debug info.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879
%global _find_debuginfo_opts -g

# With LTO flags enabled, debuginfo checks fail for some reason. Disable
# LTO for a passing build. This really needs to be looked at.
%define _lto_cflags %{nil}

# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
# see the difference between global and define:
# See https://github.com/rpm-software-management/rpm/issues/127 to comments at  "pmatilai commented on Aug 18, 2017"
# (initiated in https://bugzilla.redhat.com/show_bug.cgi?id=1482192)
%global debug_suffix_unquoted -slowdebug
%global fastdebug_suffix_unquoted -fastdebug
%global main_suffix_unquoted -main
%global staticlibs_suffix_unquoted -staticlibs
# quoted one for shell operations
%global debug_suffix "%{debug_suffix_unquoted}"
%global fastdebug_suffix "%{fastdebug_suffix_unquoted}"
%global normal_suffix ""
%global main_suffix "%{main_suffix_unquoted}"
%global staticlibs_suffix "%{staticlibs_suffix_unquoted}"

%global debug_warning This package is unoptimised with full debugging. Install only as needed and remove ASAP.
%global fastdebug_warning This package is optimised with full debugging. Install only as needed and remove ASAP.
%global debug_on unoptimised with full debugging on
%global fastdebug_on optimised with full debugging on
%global for_fastdebug for packages with debugging on and optimisation
%global for_debug for packages with debugging on and no optimisation

%if %{with release}
%global include_normal_build 1
%else
%global include_normal_build 0
%endif

%if %{include_normal_build}
%global normal_build %{normal_suffix}
%else
%global normal_build %{nil}
%endif

# We have hardcoded list of files, which  is appearing in alternatives, and in files
# in alternatives those are slaves and master, very often triplicated by man pages
# in files all masters and slaves are ghosted
# the ghosts are here to allow installation via query like `dnf install /usr/bin/java`
# you can list those files, with appropriate sections: cat *.spec | grep -e --install -e --slave -e post_ -e alternatives
# TODO - fix those hardcoded lists via single list
# Those files must *NOT* be ghosted for *slowdebug* packages
# FIXME - if you are moving jshell or jlink or similar, always modify all three sections
# you can check via headless and devels:
#    rpm -ql --noghost java-11-openjdk-headless-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
# == rpm -ql           java-11-openjdk-headless-slowdebug-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
# != rpm -ql           java-11-openjdk-headless-11.0.1.13-8.fc29.x86_64.rpm  | grep bin
# similarly for other %%{_jvmdir}/{jre,java} and %%{_javadocdir}/{java,java-zip}
%define is_release_build() %( if [ "%{?1}" == "%{debug_suffix_unquoted}" -o "%{?1}" == "%{fastdebug_suffix_unquoted}" ]; then echo "0" ; else echo "1"; fi )

# while JDK is a techpreview(is_system_jdk=0), some provides are turned off. Once jdk stops to be an techpreview, move it to 1
# as sytem JDK, we mean any JDK which can run whole system java stack without issues (like bytecode issues, module issues, dependencies...)
%global is_system_jdk 1

# XXX ROSA-specific: commit 6dab1797 accidently put is_system_jdk=1 instead of 0,
# now leaving java 11 with this, but exclude devel provides to restore java 1.8 as default JDK and leave java 11 as default JRE
%global devel_provides 0

%global aarch64         aarch64 arm64 armv8
# we need to distinguish between big and little endian PPC64
%global ppc64le         ppc64le
%global ppc64be         ppc64 ppc64p7
# Set of architectures which support multiple ABIs
%global multilib_arches %{power64} sparc64 x86_64
# Set of architectures for which we build slowdebug builds
%global debug_arches    %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} s390x
# Set of architectures for which we build fastdebug builds
%global fastdebug_arches x86_64 ppc64le aarch64
# Set of architectures with a Just-In-Time (JIT) compiler
%global jit_arches      %{arm} %{aarch64} %{ix86} %{power64} s390x sparcv9 sparc64 x86_64
# Set of architectures which use the Zero assembler port (!jit_arches)
%global zero_arches ppc s390
# Set of architectures which run a full bootstrap cycle
%global bootstrap_arches %{jit_arches}
# Set of architectures which support SystemTap tapsets
%global systemtap_arches %{jit_arches}
# Set of architectures with a Ahead-Of-Time (AOT) compiler
%global aot_arches      x86_64 %{aarch64}
# Set of architectures which support the serviceability agent
%global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64} %{arm}
# Set of architectures which support class data sharing
# See https://bugzilla.redhat.com/show_bug.cgi?id=513605
# MetaspaceShared::generate_vtable_methods is not implemented for the PPC JIT
%global share_arches    %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{arm} s390x
# Set of architectures for which we build the Shenandoah garbage collector
%global shenandoah_arches x86_64 %{aarch64}
# Set of architectures for which we build the Z garbage collector
%global zgc_arches x86_64
# Set of architectures for which alt-java has SSB mitigation
%global ssbd_arches x86_64
# Set of architectures for which java has short vector math library (libsvml.so)
%global svml_arches x86_64
# Set of architectures where we verify backtraces with gdb
%global gdb_arches %{jit_arches} %{zero_arches}

# By default, we build a debug build during main build on JIT architectures
%if %{with slowdebug}
%ifarch %{debug_arches}
%global include_debug_build 1
%else
%global include_debug_build 0
%endif
%else
%global include_debug_build 0
%endif

# On certain architectures, we compile the Shenandoah GC
%ifarch %{shenandoah_arches}
%global use_shenandoah_hotspot 1
%else
%global use_shenandoah_hotspot 0
%endif

# By default, we build a fastdebug build during main build only on fastdebug architectures
%if %{with fastdebug}
%ifarch %{fastdebug_arches}
%global include_fastdebug_build 1
%else
%global include_fastdebug_build 0
%endif
%else
%global include_fastdebug_build 0
%endif

%if %{include_debug_build}
%global slowdebug_build %{debug_suffix}
%else
%global slowdebug_build %{nil}
%endif

%if %{include_fastdebug_build}
%global fastdebug_build %{fastdebug_suffix}
%else
%global fastdebug_build %{nil}
%endif

# If you disable all builds, then the build fails
# Build and test slowdebug first as it provides the best diagnostics
%global build_loop %{slowdebug_build} %{fastdebug_build} %{normal_build}

%if %{include_staticlibs}
%global staticlibs_loop %{staticlibs_suffix}
%else
%global staticlibs_loop %{nil}
%endif

%if 0%{?flatpak}
%global bootstrap_build false
%else
%ifarch %{bootstrap_arches}
%global bootstrap_build true
%else
%global bootstrap_build false
%endif
%endif

%if %{include_staticlibs}
# Extra target for producing the static-libraries. Separate from
# other targets since this target is configured to use in-tree
# AWT dependencies: lcms, libjpeg, libpng, libharfbuzz, giflib
# and possibly others
%global static_libs_target static-libs-image
%else
%global static_libs_target %{nil}
%endif

# RPM JDK builds keep the debug symbols internal, to be later stripped by RPM
%global debug_symbols internal

# unlike portables,the rpms have to use static_libs_target very dynamically
%global bootstrap_targets images
%global release_targets images docs-zip
# No docs nor bootcycle for debug builds
%global debug_targets images
# Target to use to just build HotSpot
%global hotspot_target hotspot

# JDK to use for bootstrapping
%if ! %{with bootstrap}
%global bootjdk /usr/lib/jvm/java-%{buildjdkver}-openjdk
%else
%global bootjdk  %{_builddir}/jdk-*
%endif

# Filter out flags from the optflags macro that cause problems with the OpenJDK build
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||') -g
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')
%global ourldflags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now -g

# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
# the initialization must be here. Later the pkg-config have buggy behavior
# looks like openjdk RPM specific bug
# Always set this so the nss.cfg file is not broken
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)

# In some cases, the arch used by the JDK does
# not match _arch.
# Also, in some cases, the machine name used by SystemTap
# does not match that given by _target_cpu
%ifarch x86_64
%global archinstall amd64
%global stapinstall x86_64
%endif
%ifarch ppc
%global archinstall ppc
%global stapinstall powerpc
%endif
%ifarch %{ppc64be}
%global archinstall ppc64
%global stapinstall powerpc
%endif
%ifarch %{ppc64le}
%global archinstall ppc64le
%global stapinstall powerpc
%endif
%ifarch %{ix86}
%global archinstall i686
%global stapinstall i386
%endif
%ifarch ia64
%global archinstall ia64
%global stapinstall ia64
%endif
%ifarch s390
%global archinstall s390
%global stapinstall s390
%endif
%ifarch s390x
%global archinstall s390x
%global stapinstall s390
%endif
%ifarch %{arm}
%global archinstall arm
%global stapinstall arm
%endif
%ifarch %{aarch64}
%global archinstall aarch64
%global stapinstall arm64
%endif
# 32 bit sparc, optimized for v9
%ifarch sparcv9
%global archinstall sparc
%global stapinstall %{_target_cpu}
%endif
# 64 bit sparc
%ifarch sparc64
%global archinstall sparcv9
%global stapinstall %{_target_cpu}
%endif
# Need to support noarch for srpm build
%ifarch noarch
%global archinstall %{nil}
%global stapinstall %{nil}
%endif

%ifarch %{systemtap_arches}
%global with_systemtap 1
%else
%global with_systemtap 0
%endif

# New Version-String scheme-style defines
%global featurever 17
%global interimver 0
%global updatever 8
%global patchver 0
# buildjdkver is usually same as %%{featurever},
# but in time of bootstrap of next jdk, it is featurever-1,
# and this it is better to change it here, on single place
%global buildjdkver %{featurever}
 %global lts_designator ""
 %global lts_designator_zip ""

# Define vendor information used by OpenJDK
%global oj_vendor ROSA Linux
%global oj_vendor_url https://www.rosalinux.ru/
%global oj_vendor_bug_url  https://bugzilla.redhat.com/enter_bug.cgi
%global oj_vendor_version (ROSA_Linux-%{version}-%{release})
# Define IcedTea version used for SystemTap tapsets and desktop file
%global icedteaver      6.0.0pre00-c848b93a8598

# Standard JPackage naming and versioning defines
%global origin          openjdk
%global origin_nice     OpenJDK
%global top_level_dir_name   %{origin}
%global top_level_dir_name_backup %{top_level_dir_name}-backup
%global buildver        7
%global rpmrelease      6
# Priority must be 8 digits in total; up to openjdk 1.8, we were using 18..... so when we moved to 11, we had to add another digit
%if %is_system_jdk
# Using 10 digits may overflow the int used for priority, so we combine the patch and build versions
# It is very unlikely we will ever have a patch version > 4 or a build version > 20, so we combine as (patch * 20) + build.
# This means 11.0.9.0+11 would have had a priority of 11000911 as before
# A 11.0.9.1+1 would have had a priority of 11000921 (20 * 1 + 1), thus ensuring it is bigger than 11.0.9.0+11
%global combiver $( expr 20 '*' %{patchver} + %{buildver} )
%global priority %( printf '%02d%02d%02d%02d' %{featurever} %{interimver} %{updatever} %{combiver} )
%else
# for techpreview, using 1, so slowdebugs can have 0
%global priority %( printf '%08d' 1 )
%endif
%global newjavaver %{featurever}.%{interimver}.%{updatever}.%{patchver}
%global javaver         %{featurever}

# Strip up to 6 trailing zeros in newjavaver, as the JDK does, to get the correct version used in filenames
%global filever %(svn=%{newjavaver}; for i in 1 2 3 4 5 6 ; do svn=${svn%%.0} ; done; echo ${svn})

# The tag used to create the OpenJDK tarball
%global vcstag jdk-%{filever}+%{buildver}%{?tagsuffix:-%{tagsuffix}}

# Define milestone (EA for pre-releases, GA for releases)
# Release will be (where N is usually a number starting at 1):
# - 0.N%%{?extraver}%%{?dist} for EA releases,
# - N%%{?extraver}{?dist} for GA releases
%global is_ga           1
%if %{is_ga}
%global build_type GA
%global ea_designator ""
%global ea_designator_zip ""
%global extraver %{nil}
%global eaprefix %{nil}
%else
%global build_type EA
%global ea_designator ea
%global ea_designator_zip -%{ea_designator}
%global extraver .%{ea_designator}
%global eaprefix 0.
%endif

# parametrized macros are order-sensitive
%global compatiblename  java-%{featurever}-%{origin}
%global fullversion     %{compatiblename}-%{version}-%{release}
# images directories from upstream build
%global jdkimage                jdk
%global static_libs_image       static-libs
# installation directory for static libraries
%global static_libs_root        lib/static
%global static_libs_arch_dir    %{static_libs_root}/linux-%{archinstall}
%global static_libs_install_dir %{static_libs_arch_dir}/glibc
# output dir stub
%define buildoutputdir() %{expand:build/jdk%{featurever}.build%{?1}}
# we can copy the javadoc to not arched dir, or make it not noarch
%define uniquejavadocdir()    %{expand:%{fullversion}.%{_arch}%{?1}}
# main id and dir of this jdk
%define uniquesuffix()        %{expand:%{fullversion}.%{_arch}%{?1}}

#################################################################
# fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349
#         https://bugzilla.redhat.com/show_bug.cgi?id=1590796#c14
#         https://bugzilla.redhat.com/show_bug.cgi?id=1655938
%global _privatelibs libsplashscreen[.]so.*|libawt_xawt[.]so.*|libjli[.]so.*|libattach[.]so.*|libawt[.]so.*|libextnet[.]so.*|libawt_headless[.]so.*|libdt_socket[.]so.*|libfontmanager[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas[.]so.*|libjavajpeg[.]so.*|libjdwp[.]so.*|libjimage[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmanagement_agent[.]so.*|libmanagement_ext[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libprefs[.]so.*|librmi[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsystemconf[.]so.*|libzip[.]so.*%{freetype_lib}
%global _publiclibs libjawt[.]so.*|libjava[.]so.*|libjvm[.]so.*|libverify[.]so.*|libjsig[.]so.*
%if %is_system_jdk
%global __provides_exclude ^(%{_privatelibs})$
%global __requires_exclude ^(%{_privatelibs})$
# Never generate lib-style provides/requires for any debug packages
%global __provides_exclude_from ^.*/%{uniquesuffix -- %{debug_suffix_unquoted}}/.*$
%global __requires_exclude_from ^.*/%{uniquesuffix -- %{debug_suffix_unquoted}}/.*$
%global __provides_exclude_from ^.*/%{uniquesuffix -- %{fastdebug_suffix_unquoted}}/.*$
%global __requires_exclude_from ^.*/%{uniquesuffix -- %{fastdebug_suffix_unquoted}}/.*$
%else
# Don't generate provides/requires for JDK provided shared libraries at all.
%global __provides_exclude ^(%{_privatelibs}|%{_publiclibs})$
%global __requires_exclude ^(%{_privatelibs}|%{_publiclibs})$
%endif


%global etcjavasubdir     %{_sysconfdir}/java/java-%{javaver}-%{origin}
%define etcjavadir()      %{expand:%{etcjavasubdir}/%{uniquesuffix -- %{?1}}}
# Standard JPackage directories and symbolic links.
%define sdkdir()        %{expand:%{uniquesuffix -- %{?1}}}
%define jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}}

%define sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
%define jrebindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}

%global alt_java_name     alt-java

%global rpm_state_dir %{_localstatedir}/lib/rpm-state/

# For flatpack builds hard-code /usr/sbin/alternatives,
# otherwise use %%{_sbindir} relative path.
%if 0%{?flatpak}
%global alternatives_requires /usr/sbin/alternatives
%else
%global alternatives_requires %{_sbindir}/alternatives
%endif

%global family %{name}.%{_arch}
%global family_noarch  %{name}

%if %{with_systemtap}
# Where to install systemtap tapset (links)
# We would like these to be in a package specific sub-dir,
# but currently systemtap doesn't support that, so we have to
# use the root tapset dir for now. To distinguish between 64
# and 32 bit architectures we place the tapsets under the arch
# specific dir (note that systemtap will only pickup the tapset
# for the primary arch for now). Systemtap uses the machine name
# aka target_cpu as architecture specific directory name.
%global tapsetroot /usr/share/systemtap
%global tapsetdirttapset %{tapsetroot}/tapset/
%global tapsetdir %{tapsetdirttapset}/%{stapinstall}
%endif

# x86 is no longer supported
%if 0%{?java_arches:1}
ExclusiveArch:  %{java_arches}
%else
ExcludeArch: %{ix86}
%endif

# not-duplicated scriptlets for normal/debug packages
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :

%define save_alternatives() %{expand:
  # warning! alternatives are localised!
  # LANG=cs_CZ.UTF-8  alternatives --display java | head
  # LANG=en_US.UTF-8  alternatives --display java | head
  function nonLocalisedAlternativesDisplayOfMaster() {
    LANG=en_US.UTF-8 alternatives --display "$MASTER"
  }
  function headOfAbove() {
    nonLocalisedAlternativesDisplayOfMaster | head -n $1
  }
  MASTER="%{?1}"
  LOCAL_LINK="%{?2}"
  FAMILY="%{?3}"
  rm -f %{_localstatedir}/lib/rpm-state/"$MASTER"_$FAMILY > /dev/null
  if nonLocalisedAlternativesDisplayOfMaster > /dev/null ; then
      if headOfAbove 1 | grep -q manual ; then
        if headOfAbove 2 | tail -n 1 | grep -q %{compatiblename} ; then
           headOfAbove 2  > %{_localstatedir}/lib/rpm-state/"$MASTER"_"$FAMILY"
        fi
      fi
  fi
}

%define save_and_remove_alternatives() %{expand:
  if [ "x$debug"  == "xtrue" ] ; then
    set -x
  fi
  upgrade1_uninstal0=%{?3}
  if [ "0$upgrade1_uninstal0" -gt 0 ] ; then # removal of this condition will cause persistence between uninstall
    %{save_alternatives %{?1} %{?2} %{?4}}
  fi
  alternatives --remove  "%{?1}" "%{?2}"
}

%define set_if_needed_alternatives() %{expand:
  MASTER="%{?1}"
  FAMILY="%{?2}"
  ALTERNATIVES_FILE="%{_localstatedir}/lib/rpm-state/$MASTER"_"$FAMILY"
  if [ -e  "$ALTERNATIVES_FILE" ] ; then
    rm "$ALTERNATIVES_FILE"
    alternatives --set $MASTER $FAMILY
  fi
}


%define post_script() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
exit 0
}

%define alternatives_java_install() %{expand:
if [ "x$debug"  == "xtrue" ] ; then
  set -x
fi
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

ext=.gz
key=java
alternatives \\
  --install %{_bindir}/java $key %{jrebindir -- %{?1}}/java $PRIORITY  --family %{family} \\
  --slave %{_jvmdir}/jre jre %{_jvmdir}/%{sdkdir -- %{?1}} \\
  --slave %{_bindir}/%{alt_java_name} %{alt_java_name} %{jrebindir -- %{?1}}/%{alt_java_name} \\
  --slave %{_bindir}/keytool keytool %{jrebindir -- %{?1}}/keytool \\
  --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir -- %{?1}}/rmiregistry \\
  --slave %{_mandir}/man1/java.1$ext java.1$ext \\
  %{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/%{alt_java_name}.1$ext %{alt_java_name}.1$ext \\
  %{_mandir}/man1/%{alt_java_name}-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext \\
  %{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext \\
  %{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1$ext

%{set_if_needed_alternatives $key %{family}}

for X in %{origin} %{javaver} ; do
  key=jre_"$X"
  alternatives --install %{_jvmdir}/jre-"$X" $key %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY --family %{family}
  %{set_if_needed_alternatives $key %{family}}
done

key=jre_%{javaver}_%{origin}
alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} $key %{_jvmdir}/%{jrelnk -- %{?1}} $PRIORITY  --family %{family}
%{set_if_needed_alternatives $key %{family}}
}

%define post_headless() %{expand:
%ifarch %{share_arches}
%{jrebindir -- %{?1}}/java -Xshare:dump >/dev/null 2>/dev/null
%endif

update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

# see pretrans where this file is declared
# also see that pretrans is only for non-debug
if [ ! "%{?1}" == %{debug_suffix} ]; then
  if [ -f %{_libexecdir}/copy_jdk_configs_fixFiles.sh ] ; then
    sh  %{_libexecdir}/copy_jdk_configs_fixFiles.sh %{rpm_state_dir}/%{name}.%{_arch}  %{_jvmdir}/%{sdkdir -- %{?1}}
  fi
fi

exit 0
}

%define postun_script() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    %{update_desktop_icons}
fi
exit 0
}


%define postun_headless() %{expand:
  if [ "x$debug"  == "xtrue" ] ; then
    set -x
  fi
  post_state=$1 # from postun, https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax
  %{save_and_remove_alternatives  java  %{jrebindir -- %{?1}}/java $post_state %{family}}
  %{save_and_remove_alternatives  jre_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} $post_state %{family}}
  %{save_and_remove_alternatives  jre_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}} $post_state %{family}}
  %{save_and_remove_alternatives  jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}} $post_state %{family}}
}

%define posttrans_script() %{expand:
%{update_desktop_icons}
}


%define alternatives_javac_install() %{expand:
if [ "x$debug"  == "xtrue" ] ; then
  set -x
fi
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

ext=.gz
key=javac
alternatives \\
  --install %{_bindir}/javac $key %{sdkbindir -- %{?1}}/javac $PRIORITY  --family %{family} \\
  --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir -- %{?1}} \\
  --slave %{_bindir}/jlink jlink %{sdkbindir -- %{?1}}/jlink \\
  --slave %{_bindir}/jmod jmod %{sdkbindir -- %{?1}}/jmod \\
%ifarch %{sa_arches}
%ifnarch %{zero_arches}
  --slave %{_bindir}/jhsdb jhsdb %{sdkbindir -- %{?1}}/jhsdb \\
%endif
%endif
  --slave %{_bindir}/jar jar %{sdkbindir -- %{?1}}/jar \\
  --slave %{_bindir}/jarsigner jarsigner %{sdkbindir -- %{?1}}/jarsigner \\
  --slave %{_bindir}/javadoc javadoc %{sdkbindir -- %{?1}}/javadoc \\
  --slave %{_bindir}/javap javap %{sdkbindir -- %{?1}}/javap \\
  --slave %{_bindir}/jcmd jcmd %{sdkbindir -- %{?1}}/jcmd \\
  --slave %{_bindir}/jconsole jconsole %{sdkbindir -- %{?1}}/jconsole \\
  --slave %{_bindir}/jdb jdb %{sdkbindir -- %{?1}}/jdb \\
  --slave %{_bindir}/jdeps jdeps %{sdkbindir -- %{?1}}/jdeps \\
  --slave %{_bindir}/jdeprscan jdeprscan %{sdkbindir -- %{?1}}/jdeprscan \\
  --slave %{_bindir}/jfr jfr %{sdkbindir -- %{?1}}/jfr \\
  --slave %{_bindir}/jimage jimage %{sdkbindir -- %{?1}}/jimage \\
  --slave %{_bindir}/jinfo jinfo %{sdkbindir -- %{?1}}/jinfo \\
  --slave %{_bindir}/jmap jmap %{sdkbindir -- %{?1}}/jmap \\
  --slave %{_bindir}/jps jps %{sdkbindir -- %{?1}}/jps \\
  --slave %{_bindir}/jpackage jpackage %{sdkbindir -- %{?1}}/jpackage \\
  --slave %{_bindir}/jrunscript jrunscript %{sdkbindir -- %{?1}}/jrunscript \\
  --slave %{_bindir}/jshell jshell %{sdkbindir -- %{?1}}/jshell \\
  --slave %{_bindir}/jstack jstack %{sdkbindir -- %{?1}}/jstack \\
  --slave %{_bindir}/jstat jstat %{sdkbindir -- %{?1}}/jstat \\
  --slave %{_bindir}/jstatd jstatd %{sdkbindir -- %{?1}}/jstatd \\
  --slave %{_bindir}/serialver serialver %{sdkbindir -- %{?1}}/serialver \\
  --slave %{_mandir}/man1/jar.1$ext jar.1$ext \\
  %{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext \\
  %{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javac.1$ext javac.1$ext \\
  %{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext \\
  %{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javap.1$ext javap.1$ext \\
  %{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jcmd.1$ext jcmd.1$ext \\
  %{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext \\
  %{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext \\
  %{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jdeps.1$ext jdeps.1$ext \\
  %{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext \\
  %{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext \\
  %{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jps.1$ext jps.1$ext \\
  %{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jpackage.1$ext jpackage.1$ext \\
  %{_mandir}/man1/jpackage-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jrunscript.1$ext jrunscript.1$ext \\
  %{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext \\
  %{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext \\
  %{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext \\
  %{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
  %{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1$ext

%{set_if_needed_alternatives  $key %{family}}

for X in %{origin} %{javaver} ; do
  key=java_sdk_"$X"
  alternatives --install %{_jvmdir}/java-"$X" $key %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{family}
  %{set_if_needed_alternatives  $key %{family}}
done

key=java_sdk_%{javaver}_%{origin}
alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} $key %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{family}
%{set_if_needed_alternatives  $key %{family}}
}

%define post_devel() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

exit 0
}

%define postun_devel() %{expand:
  if [ "x$debug"  == "xtrue" ] ; then
    set -x
  fi
  post_state=$1 # from postun, https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax
  %{save_and_remove_alternatives  javac %{sdkbindir -- %{?1}}/javac $post_state %{family}}
  %{save_and_remove_alternatives  java_sdk_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} $post_state %{family}}
  %{save_and_remove_alternatives  java_sdk_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}} $post_state %{family}}
  %{save_and_remove_alternatives  java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} $post_state %{family}}

update-desktop-database %{_datadir}/applications &> /dev/null || :

if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    %{update_desktop_icons}
fi
exit 0
}

%define posttrans_devel() %{expand:
%{alternatives_javac_install --  %{?1}}
%{update_desktop_icons}
}

%define alternatives_javadoc_install() %{expand:
if [ "x$debug"  == "xtrue" ] ; then
  set -x
fi
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi
  for X in %{origin} %{javaver} ; do
    key=javadocdir_"$X"
    alternatives --install %{_javadocdir}/java-"$X" $key %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api $PRIORITY --family %{family_noarch}
    %{set_if_needed_alternatives $key %{family_noarch}}
  done

  key=javadocdir_%{javaver}_%{origin}
  alternatives --install %{_javadocdir}/java-%{javaver}-%{origin} $key %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api $PRIORITY --family %{family_noarch}
  %{set_if_needed_alternatives  $key %{family_noarch}}

  key=javadocdir
  alternatives --install %{_javadocdir}/java $key %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api $PRIORITY --family %{family_noarch}
  %{set_if_needed_alternatives  $key %{family_noarch}}
exit 0
}

%define postun_javadoc() %{expand:
if [ "x$debug"  == "xtrue" ] ; then
  set -x
fi
  post_state=$1 # from postun, https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax
  %{save_and_remove_alternatives  javadocdir  %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api $post_state %{family_noarch}}
  %{save_and_remove_alternatives  javadocdir_%{origin} %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api $post_state %{family_noarch}}
  %{save_and_remove_alternatives  javadocdir_%{javaver} %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api $post_state %{family_noarch}}
  %{save_and_remove_alternatives  javadocdir_%{javaver}_%{origin} %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api $post_state %{family_noarch}}
exit 0
}

%define alternatives_javadoczip_install() %{expand:
if [ "x$debug"  == "xtrue" ] ; then
  set -x
fi
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi
  for X in %{origin} %{javaver} ; do
    key=javadoczip_"$X"
    alternatives --install %{_javadocdir}/java-"$X".zip $key %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip $PRIORITY --family %{family_noarch}
    %{set_if_needed_alternatives $key %{family_noarch}}
  done

  key=javadoczip_%{javaver}_%{origin}
  alternatives --install %{_javadocdir}/java-%{javaver}-%{origin}.zip $key %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip $PRIORITY --family %{family_noarch}
  %{set_if_needed_alternatives  $key %{family_noarch}}

  # Weird legacy filename for backwards-compatibility
  key=javadoczip
  alternatives --install %{_javadocdir}/java-zip $key %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip $PRIORITY  --family %{family_noarch}
  %{set_if_needed_alternatives  $key %{family_noarch}}
exit 0
}

%define postun_javadoc_zip() %{expand:
  if [ "x$debug"  == "xtrue" ] ; then
    set -x
  fi
  post_state=$1 # from postun, https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#_syntax
  %{save_and_remove_alternatives  javadoczip  %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip $post_state %{family_noarch}}
  %{save_and_remove_alternatives  javadoczip_%{origin}  %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip $post_state %{family_noarch}}
  %{save_and_remove_alternatives  javadoczip_%{javaver}  %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip $post_state %{family_noarch}}
  %{save_and_remove_alternatives  javadoczip_%{javaver}_%{origin}  %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip $post_state %{family_noarch}}
exit 0
}

%define files_jre() %{expand:
%{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}-%{origin}.png
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsplashscreen.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt_xawt.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjawt.so
}


%define files_jre_headless() %{expand:
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%doc %{_defaultdocdir}/%{uniquejavadocdir -- %{?1}}/NEWS
%dir %{_sysconfdir}/.java/.systemPrefs
%dir %{_sysconfdir}/.java
%dir %{_jvmdir}/%{sdkdir -- %{?1}}
%{_jvmdir}/%{sdkdir -- %{?1}}/release
%{_jvmdir}/%{jrelnk -- %{?1}}
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/%{alt_java_name}
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/keytool
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmiregistry
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib
%ifarch %{jit_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/classlist
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jexec
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jspawnhelper
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jrt-fs.jar
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/modules
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/psfont.properties.ja
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/psfontj2d.properties
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/tzdb.dat
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjli.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jvm.cfg
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libattach.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libextnet.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjsig.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libawt_headless.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libdt_socket.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libfontmanager.so
%if ! %{system_libs}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libfreetype.so
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libinstrument.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2gss.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2pcsc.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libj2pkcs11.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjaas.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjava.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjavajpeg.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjdwp.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjimage.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjsound.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/liblcms.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement_agent.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmanagement_ext.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libmlib_image.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libnet.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libnio.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libprefs.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/librmi.so
# Some architectures don't have the serviceability agent
%ifarch %{sa_arches}
%ifnarch %{zero_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsaproc.so
%endif
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsctp.so
%if %{libjsvml} == 1
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libjsvml.so
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libsyslookup.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libverify.so
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/libzip.so
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr/default.jfc
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jfr/profile.jfc
%{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/%{alt_java_name}-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1*
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib/server
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/{*.so,*.jsa}
%ifarch %{share_arches}
%attr(444, root, root) %ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/server/classes.jsa
%endif
%dir %{etcjavasubdir}
%dir %{etcjavadir -- %{?1}}
%dir %{etcjavadir -- %{?1}}/lib
%dir %{etcjavadir -- %{?1}}/lib/security
%{etcjavadir -- %{?1}}/lib/security/cacerts
%{etcjavadir -- %{?1}}/lib/security/cacerts.upstream
%dir %{etcjavadir -- %{?1}}/conf
%dir %{etcjavadir -- %{?1}}/conf/sdp
%dir %{etcjavadir -- %{?1}}/conf/management
%dir %{etcjavadir -- %{?1}}/conf/security
%dir %{etcjavadir -- %{?1}}/conf/security/policy
%dir %{etcjavadir -- %{?1}}/conf/security/policy/limited
%dir %{etcjavadir -- %{?1}}/conf/security/policy/unlimited
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/default.policy
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/blocked.certs
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/public_suffix_list.dat
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/exempt_local.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/default_local.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/limited/default_US_export.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/unlimited/default_local.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/policy/unlimited/default_US_export.policy
 %{etcjavadir -- %{?1}}/conf/security/policy/README.txt
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.policy
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/java.security
%config(noreplace) %{etcjavadir -- %{?1}}/conf/logging.properties
%config(noreplace) %{etcjavadir -- %{?1}}/conf/security/nss.cfg
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/jmxremote.access
# This is a config template, thus not config-noreplace
%config  %{etcjavadir -- %{?1}}/conf/management/jmxremote.password.template
%config  %{etcjavadir -- %{?1}}/conf/sdp/sdp.conf.template
%config(noreplace) %{etcjavadir -- %{?1}}/conf/management/management.properties
%config(noreplace) %{etcjavadir -- %{?1}}/conf/net.properties
%config(noreplace) %{etcjavadir -- %{?1}}/conf/sound.properties
%{_jvmdir}/%{sdkdir -- %{?1}}/conf
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/security
%if %is_system_jdk
%if %{is_release_build -- %{?1}}
%ghost %{_bindir}/java
%ghost %{_bindir}/%{alt_java_name}
%ghost %{_jvmdir}/jre
%ghost %{_bindir}/keytool
%ghost %{_bindir}/pack200
%ghost %{_bindir}/rmid
%ghost %{_bindir}/rmiregistry
%ghost %{_bindir}/unpack200
%ghost %{_jvmdir}/jre-%{origin}
%ghost %{_jvmdir}/jre-%{javaver}
%ghost %{_jvmdir}/jre-%{javaver}-%{origin}
%endif
%endif
# https://bugzilla.redhat.com/show_bug.cgi?id=1820172
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
%ghost %{_jvmdir}/%{sdkdir -- %{?1}}/conf.rpmmoved
%ghost %{_jvmdir}/%{sdkdir -- %{?1}}/lib/security.rpmmoved
}

%define files_devel() %{expand:
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jar
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jarsigner
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javac
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javadoc
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jconsole
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jcmd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeprscan
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jfr
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jimage
# Some architectures don't have the serviceability agent
%ifarch %{sa_arches}
%ifnarch %{zero_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jhsdb
%{_mandir}/man1/jhsdb-%{uniquesuffix -- %{?1}}.1*
%endif
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jinfo
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jlink
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmod
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jps
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jpackage
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jrunscript
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jshell
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstack
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstat
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstatd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/serialver
%{_jvmdir}/%{sdkdir -- %{?1}}/include
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
%if %{with_systemtap}
%{_jvmdir}/%{sdkdir -- %{?1}}/tapset
%endif
%{_datadir}/applications/*jconsole%{?1}.desktop
%{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jpackage-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdeprscan-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jlink-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jmod-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jshell-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jfr-%{uniquesuffix -- %{?1}}.1*

%if %{with_systemtap}
# /usr/share/systemtap belongs to systemtap
#dir %{tapsetroot}
#dir %{tapsetdirttapset}
#dir %{tapsetdir}
%{tapsetdir}/*%{_arch}%{?1}.stp
%endif
%if %is_system_jdk
%if %{is_release_build -- %{?1}}
%ghost %{_bindir}/javac
%ghost %{_jvmdir}/java
%ghost %{_jvmdir}/%{alt_java_name}
%ghost %{_bindir}/jlink
%ghost %{_bindir}/jmod
%ghost %{_bindir}/jhsdb
%ghost %{_bindir}/jar
%ghost %{_bindir}/jarsigner
%ghost %{_bindir}/javadoc
%ghost %{_bindir}/javap
%ghost %{_bindir}/jcmd
%ghost %{_bindir}/jconsole
%ghost %{_bindir}/jdb
%ghost %{_bindir}/jdeps
%ghost %{_bindir}/jdeprscan
%ghost %{_bindir}/jimage
%ghost %{_bindir}/jinfo
%ghost %{_bindir}/jmap
%ghost %{_bindir}/jps
%ghost %{_bindir}/jrunscript
%ghost %{_bindir}/jshell
%ghost %{_bindir}/jstack
%ghost %{_bindir}/jstat
%ghost %{_bindir}/jstatd
%ghost %{_bindir}/serialver
%ghost %{_jvmdir}/java-%{origin}
%ghost %{_jvmdir}/java-%{javaver}
%ghost %{_jvmdir}/java-%{javaver}-%{origin}
%endif
%endif
}

%define files_jmods() %{expand:
%{_jvmdir}/%{sdkdir -- %{?1}}/jmods
}

%define files_demo() %{expand:
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%{_jvmdir}/%{sdkdir -- %{?1}}/demo
%{_jvmdir}/%{sdkdir -- %{?1}}/sample
}

%define files_src() %{expand:
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/src.zip
}

%define files_static_libs() %{expand:
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/%{static_libs_root}
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/%{static_libs_arch_dir}
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/%{static_libs_install_dir}
%{_jvmdir}/%{sdkdir -- %{?1}}/%{static_libs_install_dir}/lib*.a
}

%define files_javadoc() %{expand:
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%if %is_system_jdk
%if %{is_release_build -- %{?1}}
%ghost %{_javadocdir}/java
%ghost %{_javadocdir}/java-%{origin}
%ghost %{_javadocdir}/java-%{javaver}
%ghost %{_javadocdir}/java-%{javaver}-%{origin}
%endif
%endif
}

%define files_javadoc_zip() %{expand:
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
%license %{_jvmdir}/%{sdkdir -- %{?1}}/legal
%if %is_system_jdk
%if %{is_release_build -- %{?1}}
%ghost %{_javadocdir}/java-zip
%ghost %{_javadocdir}/java-%{origin}.zip
%ghost %{_javadocdir}/java-%{javaver}.zip
%ghost %{_javadocdir}/java-%{javaver}-%{origin}.zip
%endif
%endif
}

# not-duplicated requires/provides/obsoletes for normal/debug packages
%define java_rpo() %{expand:
Requires: fontconfig%{?_isa}
Requires: xorg-x11-fonts-Type1
# Require libXcomposite explicitly since it's only dynamically loaded
# at runtime. Fixes screenshot issues. See JDK-8150954.
Requires: libXcomposite%{?_isa}
# Requires rest of java
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# for java-X-openjdk package's desktop binding
# Where recommendations are available, recommend Gtk+ for the Swing look and feel
Recommends: gtk3%{?_isa}

Provides: java-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}

# Standard JPackage base provides
Provides: jre-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java%{?1} = %{epoch}:%{version}-%{release}
Provides: jre%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_headless_rpo() %{expand:
# Require /etc/pki/java/cacerts
Requires: ca-certificates
# Require javapackages-filesystem for ownership of /usr/lib/jvm/ and macros
Requires: javapackages-filesystem
# Require zone-info data provided by tzdata-java sub-package
# 2022e required as of JDK-8295173
Requires: timezone-java >= 2022e
Requires: rootcerts-java
# for support of kernel stream control
# libsctp.so.1 is being `dlopen`ed on demand
Requires: lksctp-tools%{?_isa}
%if ! 0%{?flatpak}
# tool to copy jdk's configs - should be Recommends only, but then only dnf/yum enforce it,
# not rpm transaction and so no configs are persisted when pure rpm -u is run. It may be
# considered as regression
Requires: copy-jdk-configs >= 4.0
OrderWithRequires: copy-jdk-configs
%endif
# for printing support
Requires: cups-libs
# for FIPS PKCS11 provider
Requires: nss
# Post requires alternatives to install tool alternatives
Requires(post):   %{alternatives_requires}
# Postun requires alternatives to uninstall tool alternatives
Requires(postun): %{alternatives_requires}
# Where suggestions are available, recommend the sctp and pcsc libraries
# for optional support of kernel stream control and card reader
Suggests: lksctp-tools%{?_isa}, pcsc-lite%{?_isa}

# Standard JPackage base provides
Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-headless%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_devel_rpo() %{expand:
# Requires base package
Requires:         %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# Post requires alternatives to install tool alternatives
Requires(post):   %{alternatives_requires}
# Postun requires alternatives to uninstall tool alternatives
Requires(postun): %{alternatives_requires}

# Standard JPackage devel provides
Provides: java-sdk-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk && %{devel_provides}
Provides: java-devel-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_static_libs_rpo() %{expand:
Requires:         %{name}-devel%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
}

%define java_jmods_rpo() %{expand:
# Requires devel package
# as jmods are bytecode, they should be OK without any _isa
Requires:         %{name}-devel%{?1} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1} = %{epoch}:%{version}-%{release}

Provides: java-%{javaver}-jmods%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-jmods%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-jmods%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_demo_rpo() %{expand:
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

Provides: java-%{javaver}-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}
%endif
}

%define java_javadoc_rpo() %{expand:
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# Post requires alternatives to install javadoc alternative
Requires(post):   %{alternatives_requires}
# Postun requires alternatives to uninstall javadoc alternative
Requires(postun): %{alternatives_requires}

# Standard JPackage javadoc provides
Provides: java-%{javaver}-javadoc%{?1}%{?2} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-javadoc%{?1}%{?2} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-javadoc%{?1}%{?2} = %{epoch}:%{version}-%{release}
%endif
}

%define java_src_rpo() %{expand:
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

# Standard JPackage sources provides
Provides: java-%{javaver}-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
%if %is_system_jdk
Provides: java-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
%endif
}

# Prevent brp-java-repack-jars from being run
%global __jar_repack 0

Name:    java-17-%{origin}
Version: %{newjavaver}.%{buildver}
Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist}
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
# also included the epoch in their virtual provides. This created a
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
# 1:1.5.0". In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
# interpreted as 0:1.6.0. So the "java >= 1.6.0" requirement would be
# satisfied by the 1:1.5.0 packages. Thus we need to set the epoch in
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".

Epoch:   1
Summary: %{origin_nice} %{featurever} Runtime Environment
# Groups are only used up to RHEL 8 and on Fedora versions prior to F30
Group:   Development/Java

# HotSpot code is licensed under GPLv2
# JDK library code is licensed under GPLv2 with the Classpath exception
# The Apache license is used in code taken from Apache projects (primarily xalan & xerces)
# DOM levels 2 & 3 and the XML digital signature schemas are licensed under the W3C Software License
# The JSR166 concurrency code is in the public domain
# The BSD and MIT licenses are used for a number of third-party libraries (see ADDITIONAL_LICENSE_INFO)
# The OpenJDK source tree includes:
# - JPEG library (IJG), zlib & libpng (zlib), giflib (MIT), harfbuzz (ISC),
# - freetype (FTL), jline (BSD) and LCMS (MIT)
# - jquery (MIT), jdk.crypto.cryptoki PKCS 11 wrapper (RSA)
# - public_suffix_list.dat from publicsuffix.org (MPLv2.0)
# The test code includes copies of NSS under the Mozilla Public License v2.0
# The PCSClite headers are under a BSD with advertising license
# The elliptic curve cryptography (ECC) source code is licensed under the LGPLv2.1 or any later version
License:  ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib and ISC and FTL and RSA
URL:      http://openjdk.java.net/


# The source tarball, generated using generate_source_tarball.sh
Source0: openjdk-jdk%{featurever}u-%{vcstag}.tar.xz
%if %{with bootstrap}
Source1: OpenJDK-17.0.2+8-i686-bin.tar.xz
Source2: jdk-17.0.4.1_linux-aarch64_bin.tar.gz
Source3: jdk-17.0.4.1_linux-x64_bin.tar.gz
%endif

Source5: java-17-openjdk.rpmlintrc

# Use 'icedtea_sync.sh' to update the following
# They are based on code contained in the IcedTea project (6.x).
# Systemtap tapsets. Zipped up to keep it small.
Source8: tapsets-icedtea-%{icedteaver}.tar.xz

# Desktop files. Adapted from IcedTea
Source9: jconsole.desktop.in

# Release notes
Source10: NEWS

# nss configuration file
Source11: nss.cfg.in

# Removed libraries that we link instead
Source12: remove-intree-libraries.sh

# Ensure ECDSA is working
Source14: TestECDSA.java

# Ensure vendor settings are correct
Source16: CheckVendor.java

# Ensure translations are available for new timezones
Source18: TestTranslations.java

ExcludeArch: i686

############################################
#
# RPM/distribution specific patches
#
############################################

# NSS via SunPKCS11 Provider (disabled comment
# due to memory leak).
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch
# RH1750419: enable build of speculative store bypass hardened alt-java (CVE-2018-3639)
Patch600: rh1750419-redhat_alt_java.patch

# Ignore AWTError when assistive technologies are loaded
Patch1:    rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
# Restrict access to java-atk-wrapper classes
Patch2:    rh1648644-java_access_bridge_privileged_security.patch
Patch3:    rh649512-remove_uses_of_far_in_jpeg_libjpeg_turbo_1_4_compat_for_jdk10_and_up.patch
# Depend on pcsc-lite-libs instead of pcsc-lite-devel as this is only in optional repo
Patch6: rh1684077-openjdk_should_depend_on_pcsc-lite-libs_instead_of_pcsc-lite-devel.patch

# Fixes of defects found by static analysis by Svace
# Svace report: https://file-store.rosalinux.ru/download/dacdcae0189446b83ad068f6b46cbc45c44225d2
Patch301: NAA.001.X509CertImpl.patch
Patch302: NAA.002.jvmtiClassFileReconstituter.patch
Patch303: NAA.003.jfrThreadSampler.patch

#############################################
#
# OpenJDK patches in need of upstreaming
#
#############################################

BuildRequires: autoconf
BuildRequires: automake
BuildRequires: binutils
BuildRequires: cups-devel
BuildRequires: elfutils
BuildRequires: elfutils-devel
BuildRequires: fontconfig
BuildRequires: freetype2-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gdb
BuildRequires: harfbuzz-devel
BuildRequires: giflib-devel
BuildRequires: jpeg-devel
BuildRequires: libxslt-devel
BuildRequires: nss-devel
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
BuildRequires: unzip
BuildRequires: xsltproc
BuildRequires: zip
BuildRequires: nss-softokn-freebl-devel
BuildRequires: javapackages-filesystem
%if ! %{with bootstrap}
BuildRequires: java-%{buildjdkver}-openjdk-devel
%endif
# Zero-assembler build requirement
%ifarch %{zero_arches}
BuildRequires: pkgconfig(libffi)
%endif
# 2022e required as of JDK-8295173
BuildRequires: timezone-java
BuildRequires: rootcerts-java
%if %{with_systemtap}
BuildRequires: systemtap-devel
%endif
BuildRequires: make

%if %{system_libs}
BuildRequires: freetype-devel
BuildRequires: giflib-devel
BuildRequires: harfbuzz-devel
BuildRequires: lcms2-devel
BuildRequires: libjpeg-devel
BuildRequires: libpng-devel
%else
# Version in src/java.desktop/share/native/libfreetype/include/freetype/freetype.h
Provides: bundled(freetype) = 2.12.1
# Version in src/java.desktop/share/native/libsplashscreen/giflib/gif_lib.h
Provides: bundled(giflib) = 5.2.1
# Version in src/java.desktop/share/native/libharfbuzz/hb-version.h
Provides: bundled(harfbuzz) = 4.4.1
# Version in src/java.desktop/share/native/liblcms/lcms2.h
Provides: bundled(lcms2) = 2.12.0
# Version in src/java.desktop/share/native/libjavajpeg/jpeglib.h
Provides: bundled(libjpeg) = 6b
# Version in src/java.desktop/share/native/libsplashscreen/libpng/png.h
Provides: bundled(libpng) = 1.6.37
# We link statically against libstdc++ to increase portability
BuildRequires: libstdc++-static-devel
%endif

# this is always built, also during debug-only build
# when it is built in debug-only this package is just placeholder
%{java_rpo %{nil}}

%description
The %{origin_nice} %{featurever} runtime environment.

%if %{include_debug_build}
%package slowdebug
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
Group:   Development/Java

%{java_rpo -- %{debug_suffix_unquoted}}
%description slowdebug
The %{origin_nice} %{featurever} runtime environment.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package fastdebug
Summary: %{origin_nice} %{featurever} Runtime Environment %{fastdebug_on}
Group:   Development/Java

%{java_rpo -- %{fastdebug_suffix_unquoted}}
%description fastdebug
The %{origin_nice} %{featurever} runtime environment.
%{fastdebug_warning}
%endif

%if %{include_normal_build}
%package headless
Summary: %{origin_nice} %{featurever} Headless Runtime Environment
Group:   Development/Java

%{java_headless_rpo %{nil}}

%description headless
The %{origin_nice} %{featurever} runtime environment without audio and video support.
%endif

%if %{include_debug_build}
%package headless-slowdebug
Summary: %{origin_nice} %{featurever} Runtime Environment %{debug_on}
Group:   Development/Java

%{java_headless_rpo -- %{debug_suffix_unquoted}}

%description headless-slowdebug
The %{origin_nice} %{featurever} runtime environment without audio and video support.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package headless-fastdebug
Summary: %{origin_nice} %{featurever} Runtime Environment %{fastdebug_on}
Group:   Development/Java

%{java_headless_rpo -- %{fastdebug_suffix_unquoted}}

%description headless-fastdebug
The %{origin_nice} %{featurever} runtime environment without audio and video support.
%{fastdebug_warning}
%endif

%if %{include_normal_build}
%package devel
Summary: %{origin_nice} %{featurever} Development Environment
Group:   Development/Java

%{java_devel_rpo %{nil}}

%description devel
The %{origin_nice} %{featurever} development tools.
%endif

%if %{include_debug_build}
%package devel-slowdebug
Summary: %{origin_nice} %{featurever} Development Environment %{debug_on}
Group:   Development/Java

%{java_devel_rpo -- %{debug_suffix_unquoted}}

%description devel-slowdebug
The %{origin_nice} %{featurever} development tools.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package devel-fastdebug
Summary: %{origin_nice} %{featurever} Development Environment %{fastdebug_on}
Group:   Development/Java

%{java_devel_rpo -- %{fastdebug_suffix_unquoted}}

%description devel-fastdebug
The %{origin_nice} %{featurever} development tools              .
%{fastdebug_warning}
%endif

%if %{include_staticlibs}

%if %{include_normal_build}
%package static-libs
Summary: %{origin_nice} %{featurever} libraries for static linking

%{java_static_libs_rpo %{nil}}

%description static-libs
The %{origin_nice} %{featurever} libraries for static linking.
%endif

%if %{include_debug_build}
%package static-libs-slowdebug
Summary: %{origin_nice} %{featurever} libraries for static linking %{debug_on}

%{java_static_libs_rpo -- %{debug_suffix_unquoted}}

%description static-libs-slowdebug
The %{origin_nice} %{featurever} libraries for static linking.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package static-libs-fastdebug
Summary: %{origin_nice} %{featurever} libraries for static linking %{fastdebug_on}

%{java_static_libs_rpo -- %{fastdebug_suffix_unquoted}}

%description static-libs-fastdebug
The %{origin_nice} %{featurever} libraries for static linking.
%{fastdebug_warning}
%endif

# staticlibs
%endif

%if %{include_normal_build}
%package jmods
Summary: JMods for %{origin_nice} %{featurever}
Group:   Development/Java

%{java_jmods_rpo %{nil}}

%description jmods
The JMods for %{origin_nice} %{featurever}.
%endif

%if %{include_debug_build}
%package jmods-slowdebug
Summary: JMods for %{origin_nice} %{featurever} %{debug_on}
Group:   Development/Java

%{java_jmods_rpo -- %{debug_suffix_unquoted}}

%description jmods-slowdebug
The JMods for %{origin_nice} %{featurever}.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package jmods-fastdebug
Summary: JMods for %{origin_nice} %{featurever} %{fastdebug_on}
Group:   Development/Java

%{java_jmods_rpo -- %{fastdebug_suffix_unquoted}}

%description jmods-fastdebug
The JMods for %{origin_nice} %{featurever}.
%{fastdebug_warning}
%endif

%if %{include_normal_build}
%package demo
Summary: %{origin_nice} %{featurever} Demos
Group:   Development/Java

%{java_demo_rpo %{nil}}

%description demo
The %{origin_nice} %{featurever} demos.
%endif

%if %{include_debug_build}
%package demo-slowdebug
Summary: %{origin_nice} %{featurever} Demos %{debug_on}
Group:   Development/Java

%{java_demo_rpo -- %{debug_suffix_unquoted}}

%description demo-slowdebug
The %{origin_nice} %{featurever} demos.
%{debug_warning}
%endif

%if %{include_fastdebug_build}
%package demo-fastdebug
Summary: %{origin_nice} %{featurever} Demos %{fastdebug_on}
Group:   Development/Java

%{java_demo_rpo -- %{fastdebug_suffix_unquoted}}

%description demo-fastdebug
The %{origin_nice} %{featurever} demos.
%{fastdebug_warning}
%endif

%if %{include_normal_build}
%package src
Summary: %{origin_nice} %{featurever} Source Bundle
Group:   Development/Java

%{java_src_rpo %{nil}}

%description src
The %{compatiblename}-src sub-package contains the complete %{origin_nice} %{featurever}
class library source code for use by IDE indexers and debuggers.
%endif

%if %{include_debug_build}
%package src-slowdebug
Summary: %{origin_nice} %{featurever} Source Bundle %{for_debug}
Group:   Development/Java

%{java_src_rpo -- %{debug_suffix_unquoted}}

%description src-slowdebug
The %{compatiblename}-src-slowdebug sub-package contains the complete %{origin_nice} %{featurever}
 class library source code for use by IDE indexers and debuggers, %{for_debug}.
%endif

%if %{include_fastdebug_build}
%package src-fastdebug
Summary: %{origin_nice} %{featurever} Source Bundle %{for_fastdebug}
Group:   Development/Java

%{java_src_rpo -- %{fastdebug_suffix_unquoted}}

%description src-fastdebug
The %{compatiblename}-src-fastdebug sub-package contains the complete %{origin_nice} %{featurever}
 class library source code for use by IDE indexers and debuggers, %{for_fastdebug}.
%endif

%if %{include_normal_build}
%package javadoc
Summary: %{origin_nice} %{featurever} API documentation
Group:   Documentation
Requires: javapackages-filesystem
Obsoletes: javadoc-slowdebug < 1:13.0.0.33-1.rolling

%{java_javadoc_rpo -- %{nil} %{nil}}

%description javadoc
The %{origin_nice} %{featurever} API documentation.
%endif

%if %{include_normal_build}
%package javadoc-zip
Summary: %{origin_nice} %{featurever} API documentation compressed in a single archive
Group:   Documentation
Requires: javapackages-filesystem
Obsoletes: javadoc-zip-slowdebug < 1:13.0.0.33-1.rolling

%{java_javadoc_rpo -- %{nil} -zip}
%{java_javadoc_rpo -- %{nil} %{nil}}

%description javadoc-zip
The %{origin_nice} %{featurever} API documentation compressed in a single archive.
%endif

%prep

echo "Preparing %{oj_vendor_version}"

# Using the echo macro breaks rpmdev-bumpspec, as it parses the first line of stdout :-(
%if 0%{?stapinstall:1}
  echo "CPU: %{_target_cpu}, arch install directory: %{archinstall}, SystemTap install directory: %{stapinstall}"
%else
  %{error:Unrecognised architecture %{_target_cpu}}
%endif

if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
  echo "include_normal_build is %{include_normal_build}"
else
  echo "include_normal_build is %{include_normal_build}, that is invalid. Use 1 for yes or 0 for no"
  exit 11
fi
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
  echo "include_debug_build is %{include_debug_build}"
else
  echo "include_debug_build is %{include_debug_build}, that is invalid. Use 1 for yes or 0 for no"
  exit 12
fi
if [ %{include_fastdebug_build} -eq 0 -o  %{include_fastdebug_build} -eq 1 ] ; then
  echo "include_fastdebug_build is %{include_fastdebug_build}"
else
  echo "include_fastdebug_build is %{include_fastdebug_build}, that is invalid. Use 1 for yes or 0 for no"
  exit 13
fi
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 -a  %{include_fastdebug_build} -eq 0 ] ; then
  echo "You have disabled all builds (normal,fastdebug,slowdebug). That is a no go."
  exit 14
fi
%setup -q -c -n %{uniquesuffix ""} -T -a 0
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
prioritylength=`expr length %{priority}`
if [ $prioritylength -ne 8 ] ; then
 echo "priority must be 8 digits in total, violated"
 exit 14
fi

%if %{with bootstrap}
%ifarch %{ix86}
tar xf %{S:1} -C %{_builddir}
%endif
%ifarch aarch64
tar xf %{S:2} -C %{_builddir}
%endif
%ifarch %{x86_64}
tar xf %{S:3} -C %{_builddir}
%endif
%endif

# OpenJDK patches

%if %{system_libs}
# Remove libraries that are linked by both static and dynamic builds
sh %{SOURCE12} %{top_level_dir_name}
%endif

# Patch the JDK
pushd %{top_level_dir_name}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch6 -p1
%patch301 -p1
%patch302 -p1
%patch303 -p1
# nss.cfg PKCS11 support; must come last as it also alters java.security
%patch1000 -p1
popd # openjdk

%patch600

# The OpenJDK version file includes the current
# upstream version information. For some reason,
# configure does not automatically use the
# default pre-version supplied there (despite
# what the file claims), so we pass it manually
# to configure
VERSION_FILE=$(pwd)/%{top_level_dir_name}/make/conf/version-numbers.conf
if [ -f ${VERSION_FILE} ] ; then
    UPSTREAM_EA_DESIGNATOR=$(grep '^DEFAULT_PROMOTED_VERSION_PRE' ${VERSION_FILE} | cut -d '=' -f 2)
else
    echo "Could not find OpenJDK version file.";
    exit 16
fi
if [ "x${UPSTREAM_EA_DESIGNATOR}" != "x%{ea_designator}" ] ; then
    echo "WARNING: Designator mismatch";
    echo "Spec file is configured for a %{build_type} build with designator '%{ea_designator}'"
    echo "Upstream version-pre setting is '${UPSTREAM_EA_DESIGNATOR}'";
    exit 17
fi

# Extract systemtap tapsets
%if %{with_systemtap}
tar --strip-components=1 -x -I xz -f %{SOURCE8}
%if %{include_debug_build}
cp -r tapset tapset%{debug_suffix}
%endif
%if %{include_fastdebug_build}
cp -r tapset tapset%{fastdebug_suffix}
%endif

for suffix in %{build_loop} ; do
  for file in "tapset"$suffix/*.in; do
    OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
    sed -e "s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/server/libjvm.so:g" $file > $file.1
    sed -e "s:@JAVA_SPEC_VER@:%{javaver}:g" $file.1 > $file.2
# TODO find out which architectures other than i686 have a client vm
%ifarch %{ix86}
    sed -e "s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/lib/client/libjvm.so:g" $file.2 > $OUTPUT_FILE
%else
    sed -e "/@ABS_CLIENT_LIBJVM_SO@/d" $file.2 > $OUTPUT_FILE
%endif
    sed -i -e "s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g" $OUTPUT_FILE
    sed -i -e "s:@INSTALL_ARCH_DIR@:%{archinstall}:g" $OUTPUT_FILE
    sed -i -e "s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g" $OUTPUT_FILE
  done
done
# systemtap tapsets ends
%endif

# Prepare desktop files
# The _X_ syntax indicates variables that are replaced by make upstream
# The @X@ syntax indicates variables that are replaced by configure upstream
for suffix in %{build_loop} ; do
for file in %{SOURCE9}; do
    FILE=`basename $file | sed -e s:\.in$::g`
    EXT="${FILE##*.}"
    NAME="${FILE%.*}"
    OUTPUT_FILE=$NAME$suffix.$EXT
    sed    -e  "s:_SDKBINDIR_:%{sdkbindir -- $suffix}:g" $file > $OUTPUT_FILE
    sed -i -e  "s:@target_cpu@:%{_arch}:g" $OUTPUT_FILE
    sed -i -e  "s:@OPENJDK_VER@:%{version}-%{release}.%{_arch}$suffix:g" $OUTPUT_FILE
    sed -i -e  "s:@JAVA_VER@:%{javaver}:g" $OUTPUT_FILE
    sed -i -e  "s:@JAVA_VENDOR@:%{origin}:g" $OUTPUT_FILE
done
done

# Setup nss.cfg
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE11} > nss.cfg

# Remove not used code, including assembler code,
# so that it does not get counted as code written in assembler
# during analysis in laboratory (FSTEK)
rm -fvr \
openjdk/src/hotspot/os_cpu/aix* \
openjdk/src/hotspot/os_cpu/bsd* \
%ifnarch aarch64
openjdk/src/hotspot/os_cpu/linux_aarch64 \
%endif
openjdk/src/hotspot/os_cpu/linux_ppc \
openjdk/src/hotspot/os_cpu/linux_sparc \
openjdk/src/hotspot/os_cpu/solaris* \
openjdk/src/hotspot/os_cpu/windows* \
openjdk/src/jdk.incubator.vector/windows
%if %{libjsvml} == 0
# remove ~200000 lines of assembler code
echo > openjdk/make/modules/jdk.incubator.vector/Lib.gmk
rm -fvr openjdk/src/jdk.incubator.vector/linux/native/libjsvml
%endif

%build

# How many CPU's do we have?
NUM_PROC="$(getconf _NPROCESSORS_ONLN)"
[ -z "$NUM_PROC" ] && NUM_PROC=8

%ifarch s390x sparc64 alpha %{power64} %{aarch64}
export ARCH_DATA_MODEL=64
%endif
%ifarch alpha
export CFLAGS="$CFLAGS -mieee"
%endif

# We use ourcppflags because the OpenJDK build seems to
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
# Explicitly set the C++ standard as the default has changed on GCC >= 6
EXTRA_CFLAGS="%ourcppflags"
EXTRA_CPP_FLAGS="%ourcppflags"

%ifarch %{power64} ppc
# fix rpmlint warnings
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
%endif
%ifarch %{ix86}
# Align stack boundary on x86_32
EXTRA_CFLAGS="$(echo ${EXTRA_CFLAGS} | sed -e 's|-mstackrealign|-mincoming-stack-boundary=2 -mpreferred-stack-boundary=4|')"
EXTRA_CPP_FLAGS="$(echo ${EXTRA_CPP_FLAGS} | sed -e 's|-mstackrealign|-mincoming-stack-boundary=2 -mpreferred-stack-boundary=4|')"
%endif
export EXTRA_CFLAGS EXTRA_CPP_FLAGS

function buildjdk() {
    local outputdir=${1}
    local buildjdk=${2}
    local maketargets="${3}"
    local debuglevel=${4}
    local link_opt=${5}

    local top_dir_abs_src_path=$(pwd)/%{top_level_dir_name}
    local top_dir_abs_build_path=$(pwd)/${outputdir}

    # This must be set using the global, so that the
    # static libraries still use a dynamic stdc++lib
    if [ "x%{link_type}" = "xbundled" ] ; then
        libc_link_opt="static";
    else
        libc_link_opt="dynamic";
    fi

    echo "Using output directory: ${outputdir}";
    echo "Checking build JDK ${buildjdk} is operational..."
    ${buildjdk}/bin/java -version
    echo "Using make targets: ${maketargets}"
    echo "Using debuglevel: ${debuglevel}"
    echo "Using link_opt: ${link_opt}"
    echo "Building %{newjavaver}-%{buildver}, pre=%{ea_designator}, opt=%{lts_designator}"

    mkdir -p ${outputdir}
    pushd ${outputdir}

    # Note: zlib and freetype use %{link_type}
    # rather than ${link_opt} as the system versions
    # are always used in a system_libs build, even
    # for the static library build
    bash ${top_dir_abs_src_path}/configure \
%ifarch %{zero_arches}
    --with-jvm-variants=zero \
%endif
%ifarch %{ppc64le}
    --with-jobs=1 \
%endif
    --with-version-build=%{buildver} \
    --with-version-pre="%{ea_designator}" \
    --with-version-opt=%{lts_designator} \
    --with-vendor-version-string="%{oj_vendor_version}" \
    --with-vendor-name="%{oj_vendor}" \
    --with-vendor-url="%{oj_vendor_url}" \
    --with-vendor-bug-url="%{oj_vendor_bug_url}" \
    --with-vendor-vm-bug-url="%{oj_vendor_bug_url}" \
    --with-boot-jdk=${buildjdk} \
    --with-debug-level=${debuglevel} \
    --with-native-debug-symbols="%{debug_symbols}" \
    --enable-unlimited-crypto \
    --with-zlib=%{link_type} \
    --with-freetype=%{link_type} \
    --with-libjpeg=${link_opt} \
    --with-giflib=${link_opt} \
    --with-libpng=${link_opt} \
    --with-lcms=${link_opt} \
    --with-harfbuzz=${link_opt} \
    --with-stdc++lib=${libc_link_opt} \
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
    --with-extra-cflags="$EXTRA_CFLAGS" \
    --with-extra-ldflags="%{ourldflags}" \
    --with-num-cores="$NUM_PROC" \
    --with-source-date="${SOURCE_DATE_EPOCH}" \
    --disable-javac-server \
%ifarch %{zgc_arches}
    --with-jvm-features=zgc \
%endif
    --disable-warnings-as-errors

    cat spec.gmk

    make \
      LOG=trace \
      WARNINGS_ARE_ERRORS="-Wno-error" \
      CFLAGS_WARNINGS_ARE_ERRORS="-Wno-error" \
      $maketargets || ( pwd; find ${top_dir_abs_src_path} ${top_dir_abs_build_path} -name "hs_err_pid*.log" | xargs cat && false )

    popd
}

function installjdk() {
    local imagepath=${1}

    if [ -d ${imagepath} ] ; then
        # the build (erroneously) removes read permissions from some jars
        # this is a regression in OpenJDK 7 (our compiler):
        # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
        find ${imagepath} -iname '*.jar' -exec chmod ugo+r {} \;

        # Build screws up permissions on binaries
        # https://bugs.openjdk.java.net/browse/JDK-8173610
        find ${imagepath} -iname '*.so' -exec chmod +x {} \;
        find ${imagepath}/bin/ -exec chmod +x {} \;

        # Install nss.cfg right away as we will be using the JRE above
        install -m 644 nss.cfg ${imagepath}/conf/security/

        # Turn on system security properties
        sed -i -e "s:^security.useSystemPropertiesFile=.*:security.useSystemPropertiesFile=true:" \
            ${imagepath}/conf/security/java.security
%if 0
        # Use system-wide tzdata
        mv ${imagepath}/lib/tzdb.dat{,.upstream}
        ln -sv %{_datadir}/javazi-1.8/tzdb.dat ${imagepath}/lib/tzdb.dat
%endif
        # Rename OpenJDK cacerts database
        mv ${imagepath}/lib/security/cacerts{,.upstream}
        # Install cacerts symlink needed by some apps which hard-code the path
        ln -sv /etc/pki/java/cacerts ${imagepath}/lib/security

        # Create fake alt-java as a placeholder for future alt-java
        pushd ${imagepath}
        # add alt-java man page
        echo "Hardened java binary recommended for launching untrusted code from the Web e.g. javaws" > man/man1/%{alt_java_name}.1
        cat man/man1/java.1 >> man/man1/%{alt_java_name}.1
        popd
    fi
}

# Checks on debuginfo must be performed before the files are stripped
# by the RPM installation stage
function debugcheckjdk() {
    local imagepath=${1}

    if [ -d ${imagepath} ] ; then

        so_suffix="so"
        # Check debug symbols are present and can identify code
        find "${imagepath}" -iname "*.$so_suffix" -print0 | while read -d $'\0' lib
        do
            if [ -f "$lib" ] ; then
                echo "Testing $lib for debug symbols"
                # All these tests rely on RPM failing the build if the exit code of any set
                # of piped commands is non-zero.

                # Test for .debug_* sections in the shared object. This is the main test
                # Stripped objects will not contain these
                eu-readelf -S "$lib" | grep "] .debug_"
                test $(eu-readelf -S "$lib" | grep -E "\]\ .debug_(info|abbrev)" | wc --lines) == 2

                # Test FILE symbols. These will most likely be removed by anything that
                # manipulates symbol tables because it's generally useless. So a nice test
                # that nothing has messed with symbols
                old_IFS="$IFS"
                IFS=$'\n'
                for line in $(eu-readelf -s "$lib" | grep "00000000      0 FILE    LOCAL  DEFAULT")
                do
                    # We expect to see .cpp and .S files, except for architectures like aarch64 and
                    # s390 where we expect .o and .oS files
                    echo "$line" | grep -E "ABS ((.*/)?[-_a-zA-Z0-9]+\.(c|cc|cpp|cxx|o|S|oS))?$"
                done
                IFS="$old_IFS"

                # If this is the JVM, look for javaCalls.(cpp|o) in FILEs, for extra sanity checking
                if [ "`basename $lib`" = "libjvm.so" ]; then
                    eu-readelf -s "$lib" | \
                        grep -E "00000000      0 FILE    LOCAL  DEFAULT      ABS javaCalls.(cpp|o)$"
                fi

                # Test that there are no .gnu_debuglink sections pointing to another
                # debuginfo file. There shouldn't be any debuginfo files, so the link makes
                # no sense either
                eu-readelf -S "$lib" | grep 'gnu'
                if eu-readelf -S "$lib" | grep "\] .gnu_debuglink" | grep PROGBITS; then
                   echo "bad .gnu_debuglink section."
                   eu-readelf -x .gnu_debuglink "$lib"
                   false
                fi
            fi
        done

        # Make sure gdb can do a backtrace based on line numbers on libjvm.so
        # javaCalls.cpp:58 should map to:
        # http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/ff3b27e6bcc2/src/share/vm/runtime/javaCalls.cpp#l58
        # Using line number 1 might cause build problems. See:
        # https://bugzilla.redhat.com/show_bug.cgi?id=1539664
        # https://bugzilla.redhat.com/show_bug.cgi?id=1538767
        gdb -q "${imagepath}/bin/java" <<EOF | tee gdb.out
handle SIGSEGV pass nostop noprint
handle SIGILL pass nostop noprint
set breakpoint pending on
break javaCalls.cpp:58
commands 1
backtrace
quit
end
run -version
EOF
%ifarch %{gdb_arches}
        grep -irnH 'JavaCallWrapper::JavaCallWrapper' gdb.out || :
%endif

    fi
}

%if %{build_hotspot_first}
  # Build a fresh libjvm.so first and use it to bootstrap
  cp -LR --preserve=mode,timestamps %{bootjdk} newboot
  systemjdk=$(pwd)/newboot
  buildjdk build/newboot ${systemjdk} %{hotspot_target} "release" "bundled"
  mv build/newboot/jdk/lib/server/libjvm.so newboot/lib/server
%else
  systemjdk=%{bootjdk}
%endif

for suffix in %{build_loop} ; do

  if [ "x$suffix" = "x" ] ; then
      debugbuild=release
  else
      # change --something to something
      debugbuild=`echo $suffix  | sed "s/-//g"`
  fi


  for loop in %{main_suffix} %{staticlibs_loop} ; do

    builddir=%{buildoutputdir -- ${suffix}${loop}}
    bootbuilddir=boot${builddir}

    if test "x${loop}" = "x%{main_suffix}" ; then
      link_opt="%{link_type}"
%if %{system_libs}
      # Copy the source tree so we can remove all in-tree libraries
      cp -a %{top_level_dir_name} %{top_level_dir_name_backup}
      # Remove all libraries that are linked
      sh %{SOURCE12} %{top_level_dir_name} full
%endif
      # Debug builds don't need same targets as release for
      # build speed-up. We also avoid bootstrapping these
      # slower builds.
      if echo $debugbuild | grep -q "debug" ; then
        maketargets="%{debug_targets}"
        run_bootstrap=false
      else
        maketargets="%{release_targets}"
        run_bootstrap=%{bootstrap_build}
      fi
      if ${run_bootstrap} ; then
        buildjdk ${bootbuilddir} ${systemjdk} "%{bootstrap_targets}" ${debugbuild} ${link_opt}
        buildjdk ${builddir} $(pwd)/${bootbuilddir}/images/%{jdkimage} "${maketargets}" ${debugbuild} ${link_opt}
        rm -rf ${bootbuilddir}
      else
        buildjdk ${builddir} ${systemjdk} "${maketargets}" ${debugbuild} ${link_opt}
      fi
%if %{system_libs}
      # Restore original source tree we modified by removing full in-tree sources
      rm -rf %{top_level_dir_name}
      mv %{top_level_dir_name_backup} %{top_level_dir_name}
%endif
    else
      # Use bundled libraries for building statically
      link_opt="bundled"
      # Static library cycle only builds the static libraries
      maketargets="%{static_libs_target}"
      # Always just do the one build for the static libraries
      buildjdk ${builddir} ${systemjdk} "${maketargets}" ${debugbuild} ${link_opt}
    fi

  done # end of main / staticlibs loop

  # Final setup on the main image
  top_dir_abs_main_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{main_suffix}}
  installjdk ${top_dir_abs_main_build_path}/images/%{jdkimage}
  # Check debug symbols were built into the dynamic libraries
  debugcheckjdk ${top_dir_abs_main_build_path}/images/%{jdkimage}

  # Print release information
  cat ${top_dir_abs_main_build_path}/images/%{jdkimage}/release

# build cycles
done # end of release / debug cycle loop

%install
STRIP_KEEP_SYMTAB=libjvm*

for suffix in %{build_loop} ; do

top_dir_abs_main_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{main_suffix}}
%if %{include_staticlibs}
top_dir_abs_staticlibs_build_path=$(pwd)/%{buildoutputdir -- ${suffix}%{staticlibs_loop}}
%endif
jdk_image=${top_dir_abs_main_build_path}/images/%{jdkimage}

# Install the jdk
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}
cp -a ${jdk_image} $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}

pushd ${jdk_image}

%if %{with_systemtap}
  # Install systemtap support files
  install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset
  # note, that uniquesuffix  is in BUILD dir in this case
  cp -a $RPM_BUILD_DIR/%{uniquesuffix ""}/tapset$suffix/*.stp $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
  pushd  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
   tapsetFiles=`ls *.stp`
  popd
  install -d -m 755 $RPM_BUILD_ROOT%{tapsetdir}
  for name in $tapsetFiles ; do
    targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
    ln -srvf $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/$name $RPM_BUILD_ROOT%{tapsetdir}/$targetName
  done
%endif

  # Install version-ed symlinks
  pushd $RPM_BUILD_ROOT%{_jvmdir}
    ln -sf %{sdkdir -- $suffix} %{jrelnk -- $suffix}
  popd

  # Install man pages
  install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
  for manpage in man/man1/*
  do
    # Convert man pages to UTF8 encoding
    iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
    mv -f $manpage.tmp $manpage
    install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/$(basename \
      $manpage .1)-%{uniquesuffix -- $suffix}.1
  done
  # Remove man pages from jdk image
  rm -rf $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/man

popd

# Install static libs artefacts
%if %{include_staticlibs}
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/%{static_libs_install_dir}
cp -a ${top_dir_abs_staticlibs_build_path}/images/%{static_libs_image}/lib/*.a \
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/%{static_libs_install_dir}
%endif

if ! echo $suffix | grep -q "debug" ; then
  # Install Javadoc documentation
  install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
  cp -a ${top_dir_abs_main_build_path}/images/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}
  built_doc_archive=jdk-%{filever}%{ea_designator_zip}+%{buildver}%{lts_designator_zip}-docs.zip
  cp -a ${top_dir_abs_main_build_path}/bundles/${built_doc_archive} \
     $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip || ls -l ${top_dir_abs_main_build_path}/bundles/
fi

# Install release notes
commondocdir=${RPM_BUILD_ROOT}%{_defaultdocdir}/%{uniquejavadocdir -- $suffix}
install -d -m 755 ${commondocdir}
cp -a %{SOURCE10} ${commondocdir}

# Install icons and menu entries
for s in 16 24 32 48 ; do
  install -D -p -m 644 \
    %{top_level_dir_name}/src/java.desktop/unix/classes/sun/awt/X11/java-icon${s}.png \
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}-%{origin}.png
done

# Install desktop files
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
for e in jconsole$suffix ; do
    desktop-file-install --vendor=%{uniquesuffix -- $suffix} --mode=644 \
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications $e.desktop
done

# Install /etc/.java/.systemPrefs/ directory
# See https://bugzilla.redhat.com/show_bug.cgi?id=741821
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs

# copy samples next to demos; samples are mostly js files
cp -r %{top_level_dir_name}/src/sample  $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/


# moving config files to /etc
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib
mv $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/conf/  $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}
mv $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/lib/security  $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib
pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}
  ln -srv $RPM_BUILD_ROOT%{etcjavadir -- $suffix}/conf  ./conf
popd
pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/lib
  ln -srv $RPM_BUILD_ROOT%{etcjavadir -- $suffix}/lib/security  ./security
popd
# end moving files to /etc

# stabilize permissions
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "*.so" -exec chmod 755 {} \; ;
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -type d -exec chmod 755 {} \; ;
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/legal -type f -exec chmod 644 {} \; ;

# end, dual install
done

%check

# We test debug first as it will give better diagnostics on a crash
for suffix in %{build_loop} ; do

# Tests in the check stage are performed on the installed image
# rpmbuild operates as follows: build -> install -> test
export JAVA_HOME=${RPM_BUILD_ROOT}%{_jvmdir}/%{sdkdir -- $suffix}

#check Shenandoah is enabled
%if %{use_shenandoah_hotspot}
$JAVA_HOME/bin/java -XX:+UnlockExperimentalVMOptions -XX:+UseShenandoahGC -version
%endif

# Check ECC is working
$JAVA_HOME/bin/javac -d . %{SOURCE14}
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")

# Check java launcher has no SSB mitigation
if ! nm $JAVA_HOME/bin/java | grep set_speculation ; then true ; else false; fi

# Check alt-java launcher has SSB mitigation on supported architectures
%ifarch %{ssbd_arches}
nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation
%else
if ! nm $JAVA_HOME/bin/%{alt_java_name} | grep set_speculation ; then true ; else false; fi
%endif

# Check correct vendor values have been set
$JAVA_HOME/bin/javac -d . %{SOURCE16}
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE16})|sed "s|\.java||") "%{oj_vendor}" "%{oj_vendor_url}" "%{oj_vendor_bug_url}" "%{oj_vendor_version}"

# Check translations are available for new timezones
$JAVA_HOME/bin/javac -d . %{SOURCE18}
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE18})|sed "s|\.java||") JRE
$JAVA_HOME/bin/java -Djava.locale.providers=CLDR $(echo $(basename %{SOURCE18})|sed "s|\.java||") CLDR

%if %{include_staticlibs}
# Check debug symbols in static libraries (smoke test)
export STATIC_LIBS_HOME=${JAVA_HOME}/%{static_libs_install_dir}
readelf --debug-dump $STATIC_LIBS_HOME/libfdlibm.a | grep w_remainder.c
readelf --debug-dump $STATIC_LIBS_HOME/libfdlibm.a | grep e_remainder.c
%endif

# Check src.zip has all sources. See RHBZ#1130490
$JAVA_HOME/bin/jar -tf $JAVA_HOME/lib/src.zip | grep 'sun.misc.Unsafe'

# Check class files include useful debugging information
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable

# Check generated class files include useful debugging information
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable

# build cycles check
done

%if %{include_normal_build}
# intentionally only for non-debug
%pretrans headless -p <lua>
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1290388 for pretrans over pre
-- if copy-jdk-configs is in transaction, it installs in pretrans to temp
-- if copy_jdk_configs is in temp, then it means that copy-jdk-configs is in transaction  and so is
-- preferred over one in %%{_libexecdir}. If it is not in transaction, then depends
-- whether copy-jdk-configs is installed or not. If so, then configs are copied
-- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all
local posix = require "posix"

if (os.getenv("debug") == "true") then
  debug = true;
  print("cjc: in spec debug is on")
else
  debug = false;
end

SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua"
SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua"

local stat1 = posix.stat(SOURCE1, "type");
local stat2 = posix.stat(SOURCE2, "type");

  if (stat1 ~= nil) then
  if (debug) then
    print(SOURCE1 .." exists - copy-jdk-configs in transaction, using this one.")
  end;
  package.path = package.path .. ";" .. SOURCE1
else
  if (stat2 ~= nil) then
  if (debug) then
    print(SOURCE2 .." exists - copy-jdk-configs already installed and NOT in transaction. Using.")
  end;
  package.path = package.path .. ";" .. SOURCE2
  else
    if (debug) then
      print(SOURCE1 .." does NOT exists")
      print(SOURCE2 .." does NOT exists")
      print("No config files will be copied")
    end
  return
  end
end
arg = nil ;  -- it is better to null the arg up, no meter if they exists or not, and use cjc as module in unified way, instead of relaying on "main" method during require "copy_jdk_configs.lua"
cjc = require "copy_jdk_configs.lua"
args = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"}
cjc.mainProgram(args)

%post
%{post_script %{nil}}

%post headless
%{post_headless %{nil}}

%postun
%{postun_script %{nil}}

%postun headless
%{postun_headless %{nil}}

%posttrans
%{posttrans_script %{nil}}

%posttrans headless
%{alternatives_java_install %{nil}}

%post devel
%{post_devel %{nil}}

%postun devel
%{postun_devel %{nil}}

%posttrans  devel
%{posttrans_devel %{nil}}

%posttrans javadoc
%{alternatives_javadoc_install %{nil}}

%postun javadoc
%{postun_javadoc %{nil}}

%posttrans javadoc-zip
%{alternatives_javadoczip_install %{nil}}

%postun javadoc-zip
%{postun_javadoc_zip %{nil}}
%endif

%if %{include_debug_build}
%post slowdebug
%{post_script -- %{debug_suffix_unquoted}}

%post headless-slowdebug
%{post_headless -- %{debug_suffix_unquoted}}

%posttrans headless-slowdebug
%{alternatives_java_install -- %{debug_suffix_unquoted}}

%postun slowdebug
%{postun_script -- %{debug_suffix_unquoted}}

%postun headless-slowdebug
%{postun_headless -- %{debug_suffix_unquoted}}

%posttrans slowdebug
%{posttrans_script -- %{debug_suffix_unquoted}}

%post devel-slowdebug
%{post_devel -- %{debug_suffix_unquoted}}

%postun devel-slowdebug
%{postun_devel -- %{debug_suffix_unquoted}}

%posttrans  devel-slowdebug
%{posttrans_devel -- %{debug_suffix_unquoted}}
%endif

%if %{include_fastdebug_build}
%post fastdebug
%{post_script -- %{fastdebug_suffix_unquoted}}

%post headless-fastdebug
%{post_headless -- %{fastdebug_suffix_unquoted}}

%postun fastdebug
%{postun_script -- %{fastdebug_suffix_unquoted}}

%postun headless-fastdebug
%{postun_headless -- %{fastdebug_suffix_unquoted}}

%posttrans fastdebug
%{posttrans_script -- %{fastdebug_suffix_unquoted}}

%posttrans headless-fastdebug
%{alternatives_java_install -- %{fastdebug_suffix_unquoted}}

%post devel-fastdebug
%{post_devel -- %{fastdebug_suffix_unquoted}}

%postun devel-fastdebug
%{postun_devel -- %{fastdebug_suffix_unquoted}}

%posttrans  devel-fastdebug
%{posttrans_devel -- %{fastdebug_suffix_unquoted}}

%endif

%if %{include_normal_build}
%files
# main package builds always
%{files_jre %{nil}}
%else
%files
# placeholder
%endif


%if %{include_normal_build}
%files headless
# important note, see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
# all config/noreplace files (and more) have to be declared in pretrans. See pretrans
%{files_jre_headless %{nil}}

%files devel
%{files_devel %{nil}}

%if %{include_staticlibs}
%files static-libs
%{files_static_libs %{nil}}
%endif

%files jmods
%{files_jmods %{nil}}

%files demo
%{files_demo %{nil}}

%files src
%{files_src %{nil}}

%files javadoc
%{files_javadoc %{nil}}

# This puts a huge documentation file in /usr/share
# It is now architecture-dependent, as eg. AOT and Graal are now x86_64 only
# same for debug variant
%files javadoc-zip
%{files_javadoc_zip %{nil}}
%endif

%if %{include_debug_build}
%files slowdebug
%{files_jre -- %{debug_suffix_unquoted}}

%files headless-slowdebug
%{files_jre_headless -- %{debug_suffix_unquoted}}

%files devel-slowdebug
%{files_devel -- %{debug_suffix_unquoted}}

%if %{include_staticlibs}
%files static-libs-slowdebug
%{files_static_libs -- %{debug_suffix_unquoted}}
%endif

%files jmods-slowdebug
%{files_jmods -- %{debug_suffix_unquoted}}

%files demo-slowdebug
%{files_demo -- %{debug_suffix_unquoted}}

%files src-slowdebug
%{files_src -- %{debug_suffix_unquoted}}
%endif

%if %{include_fastdebug_build}
%files fastdebug
%{files_jre -- %{fastdebug_suffix_unquoted}}

%files headless-fastdebug
%{files_jre_headless -- %{fastdebug_suffix_unquoted}}

%files devel-fastdebug
%{files_devel -- %{fastdebug_suffix_unquoted}}

%if %{include_staticlibs}
%files static-libs-fastdebug
%{files_static_libs -- %{fastdebug_suffix_unquoted}}
%endif

%files jmods-fastdebug
%{files_jmods -- %{fastdebug_suffix_unquoted}}

%files demo-fastdebug
%{files_demo -- %{fastdebug_suffix_unquoted}}

%files src-fastdebug
%{files_src -- %{fastdebug_suffix_unquoted}}

%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13393 |21mr|java-1.8.0-openjdk-1.8.0.252.b02-0.3.ea
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# RPM conditionals so as to be able to dynamically produce
# slowdebug/release builds. See:
# http://rpm.org/user_doc/conditional_builds.html
#
# Examples:
#
# Produce release *and* slowdebug builds on x86_64 (default):
# $ rpmbuild -ba java-1.8.0-openjdk.spec
#
# Produce only release builds (no slowdebug builds) on x86_64:
# $ rpmbuild -ba java-1.8.0-openjdk.spec --without slowdebug
#
# Only produce a release build on x86_64:
# $ fedpkg mockbuild --without slowdebug
#
# Only produce a debug build on x86_64:
# $ fedpkg local --without release
#
# Enable slowdebug builds by default on relevant arches.
%bcond_without slowdebug
# Enable release builds by default on relevant arches.
%bcond_without release

#in rosa linux there is no tzdb.dat file
#in the timezone package we will 
#use the standard one from java (temporarily)
%bcond_with timezonejava

# The -g flag says to use strip -g instead of full strip on DSOs or EXEs.
# This fixes detailed NMT and other tools which need minimal debug info.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879
%global _find_debuginfo_opts -g

# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
# see the difference between global and define:
# See https://github.com/rpm-software-management/rpm/issues/127 to comments at  "pmatilai commented on Aug 18, 2017"
# (initiated in https://bugzilla.redhat.com/show_bug.cgi?id=1482192)
%global debug_suffix_unquoted -slowdebug
# quoted one for shell operations
%global debug_suffix "%{debug_suffix_unquoted}"
%global normal_suffix ""

# if you want only debug build but providing java build only normal build but set normalbuild_parameter
%global debug_warning This package has full debug on. Install only in need and remove asap.
%global debug_on with full debug on
%global for_debug for packages with debug on

%if %{with release}
%global include_normal_build 1
%else
%global include_normal_build 0
%endif

%if %{include_normal_build}
%global build_loop1 %{normal_suffix}
%else
%global build_loop1 %{nil}
%endif

%global aarch64         aarch64 arm64 armv8
# we need to distinguish between big and little endian PPC64
%global ppc64le         ppc64le
%global ppc64be         ppc64 ppc64p7
%global multilib_arches %{power64} sparc64 x86_64
%global jit_arches      %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64}
%global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64}

# By default, we build a debug build during main build on JIT architectures
%if %{with slowdebug}
%ifarch %{jit_arches}
%ifnarch %{arm}
%global include_debug_build 1
%else
%global include_debug_build 0
%endif
%else
%global include_debug_build 0
%endif
%else
%global include_debug_build 0
%endif

%if %{include_debug_build}
%global build_loop2 %{debug_suffix}
%else
%global build_loop2 %{nil}
%endif

# if you disable both builds, then the build fails
%global build_loop  %{build_loop1} %{build_loop2}
# note: that order: normal_suffix debug_suffix, in case of both enabled
# is expected in one single case at the end of the build
%global rev_build_loop  %{build_loop2} %{build_loop1}

%ifarch %{jit_arches}
# TODO: reenable it
%global bootstrap_build 0
%else
%global bootstrap_build 0
%endif

%global bootstrap_targets images
%global release_targets images zip-docs
# No docs nor bootcycle for debug builds
%global debug_targets images

# Filter out flags from the optflags macro that cause problems with the OpenJDK build
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')

# From Fedora
#%%global ourldflags %{__global_ldflags}
%global ourldflags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now

# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
# the initialization must be here. Later the pkg-config have buggy behavior
# looks like openjdk RPM specific bug
# Always set this so the nss.cfg file is not broken
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)
%global NSS_LIBS %(pkg-config --libs nss)
%global NSS_CFLAGS %(pkg-config --cflags nss-softokn)
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332456
%global NSSSOFTOKN_BUILDTIME_NUMBER %(pkg-config --modversion nss-softokn || : )
%global NSS_BUILDTIME_NUMBER %(pkg-config --modversion nss || : )
# this is workaround for processing of requires during srpm creation
%global NSSSOFTOKN_BUILDTIME_VERSION %(if [ "x%{NSSSOFTOKN_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSSSOFTOKN_BUILDTIME_NUMBER}" ;fi)
%global NSS_BUILDTIME_VERSION %(if [ "x%{NSS_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSS_BUILDTIME_NUMBER}" ;fi)


# Fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349.
# See also https://bugzilla.redhat.com/show_bug.cgi?id=1590796
# as to why some libraries *cannot* be excluded. In particular,
# these are:
# libjsig.so, libjava.so, libjawt.so, libjvm.so and libverify.so
%global _privatelibs libatk-wrapper[.]so.*|libattach[.]so.*|libawt_headless[.]so.*|libawt[.]so.*|libawt_xawt[.]so.*|libdt_socket[.]so.*|libfontmanager[.]so.*|libhprof[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas_unix[.]so.*|libjava_crw_demo[.]so.*|libjavajpeg[.]so.*|libjdwp[.]so.*|libjli[.]so.*|libjsdt[.]so.*|libjsoundalsa[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libnpt[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsplashscreen[.]so.*|libsunec[.]so.*|libunpack[.]so.*|libzip[.]so.*|lib[.]so\\(SUNWprivate_.*

%global __provides_exclude ^(%{_privatelibs})$
%global __requires_exclude ^(%{_privatelibs})$

# In some cases, the arch used by the JDK does
# not match _arch.
# Also, in some cases, the machine name used by SystemTap
# does not match that given by _target_cpu
%ifarch x86_64
%global archinstall amd64
%global stapinstall x86_64
%endif
%ifarch ppc
%global archinstall ppc
%global stapinstall powerpc
%endif
%ifarch %{ppc64be}
%global archinstall ppc64
%global stapinstall powerpc
%endif
%ifarch %{ppc64le}
%global archinstall ppc64le
%global stapinstall powerpc
%endif
%ifarch %{ix86}
%global archinstall i386
%global stapinstall i386
%endif
%ifarch ia64
%global archinstall ia64
%global stapinstall ia64
%endif
%ifarch s390
%global archinstall s390
%global stapinstall s390
%endif
%ifarch s390x
%global archinstall s390x
%global stapinstall s390
%endif
%ifarch %{arm}
%global archinstall arm
%global stapinstall arm
%endif
%ifarch %{aarch64}
%global archinstall aarch64
%global stapinstall arm64
%endif
%ifarch %{riscv64}
%global archinstall riscv64
%global stapinstall riscv64
%endif
# 32 bit sparc, optimized for v9
%ifarch sparcv9
%global archinstall sparc
%global stapinstall %{_target_cpu}
%endif
# 64 bit sparc
%ifarch sparc64
%global archinstall sparcv9
%global stapinstall %{_target_cpu}
%endif
# Need to support noarch for srpm build
%ifarch noarch
%global archinstall %{nil}
%global stapinstall %{nil}
%endif

%ifarch %{jit_arches}
%global with_systemtap 1
%else
%global with_systemtap 0
%endif

# New Version-String scheme-style defines
%global majorver 8

%ifarch %{x86_64} %{arm64}
%global with_openjfx_binding 1
%global openjfx_path %{_jvmdir}/openjfx8
# links src directories
%global jfx_jre_libs_dir %{openjfx_path}/rt/lib
%global jfx_jre_native_dir %{jfx_jre_libs_dir}/%{archinstall}
%global jfx_sdk_libs_dir %{openjfx_path}/lib
%global jfx_sdk_bins_dir %{openjfx_path}/bin
%global jfx_jre_exts_dir %{jfx_jre_libs_dir}/ext
# links src files
# maybe depend on jfx and generate the lists in build time? Yes, bad idea to inlcude cyclic depndenci, but this list is aweful
%global jfx_jre_libs jfxswt.jar javafx.properties
%global jfx_jre_native libprism_es2.so libprism_common.so libjavafx_font.so libdecora_sse.so libjavafx_font_freetype.so libprism_sw.so libjavafx_font_pango.so libglass.so libjavafx_iio.so libglassgtk2.so libglassgtk3.so
%global jfx_sdk_libs javafx-mx.jar packager.jar ant-javafx.jar
%global jfx_sdk_bins javafxpackager javapackager
%global jfx_jre_exts jfxrt.jar
%else
%global with_openjfx_binding 0
%endif

# Standard JPackage naming and versioning defines.
%global origin          openjdk
%global origin_nice     OpenJDK
%global top_level_dir_name   %{origin}
# note, following three variables are sedded from update_sources if used correctly. Hardcode them rather there.
%global shenandoah_project	aarch64-port
%global shenandoah_repo		jdk8u-shenandoah
%global shenandoah_revision    	aarch64-shenandoah-jdk8u252-b02
# Define old aarch64/jdk8u tree variables for compatibility
%global project         %{shenandoah_project}
%global repo            %{shenandoah_repo}
%global revision        %{shenandoah_revision}
# Define IcedTea version used for SystemTap tapsets and desktop files
%global icedteaver      3.15.0

# e.g. aarch64-shenandoah-jdk8u212-b04-shenandoah-merge-2019-04-30 -> aarch64-shenandoah-jdk8u212-b04
%global version_tag     %(VERSION=%{revision}; echo ${VERSION%%-shenandoah-merge*})
# eg # jdk8u60-b27 -> jdk8u60 or # aarch64-jdk8u60-b27 -> aarch64-jdk8u60  (dont forget spec escape % by %%)
%global whole_update    %(VERSION=%{version_tag}; echo ${VERSION%%-*})
# eg  jdk8u60 -> 60 or aarch64-jdk8u60 -> 60
%global updatever       %(VERSION=%{whole_update}; echo ${VERSION##*u})
# eg jdk8u60-b27 -> b27
%global buildver        %(VERSION=%{version_tag}; echo ${VERSION##*-})
%global rpmrelease      3
# Define milestone (EA for pre-releases, GA ("fcs") for releases)
# Release will be (where N is usually a number starting at 1):
# - 0.N%%{?extraver}%%{?dist} for EA releases,
# - N%%{?extraver}{?dist} for GA releases
%global is_ga           0
%if %{is_ga}
%global milestone          fcs
%global milestone_version  %{nil}
%global extraver %{nil}
%global eaprefix %{nil}
%else
%global milestone          ea
%global milestone_version  "-ea"
%global extraver .%{milestone}
%global eaprefix 0.
%endif
# priority must be 7 digits in total. The expression is workarounding tip
%global priority        %(TIP=1800%{updatever};  echo ${TIP/tip/999})

%global javaver         1.%{majorver}.0

# parametrized macros are order-sensitive
%global compatiblename  %{name}
%global fullversion     %{compatiblename}-%{version}-%{release}
# images stub
%global jdkimage       j2sdk-image
# output dir stub
%define buildoutputdir() %{expand:build/jdk8.build%{?1}}
# we can copy the javadoc to not arched dir, or make it not noarch
%define uniquejavadocdir()    %{expand:%{fullversion}%{?1}}
# main id and dir of this jdk
%define uniquesuffix()        %{expand:%{fullversion}.%{_arch}%{?1}}

%global etcjavasubdir     %{_sysconfdir}/java/java-%{javaver}-%{origin}
%define etcjavadir()      %{expand:%{etcjavasubdir}/%{uniquesuffix -- %{?1}}}
# Standard JPackage directories and symbolic links.
%define sdkdir()        %{expand:%{uniquesuffix -- %{?1}}}
%define jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}}

%define jredir()        %{expand:%{sdkdir -- %{?1}}/jre}
%define sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
%define jrebindir()     %{expand:%{_jvmdir}/%{jredir -- %{?1}}/bin}

%global rpm_state_dir %{_localstatedir}/lib/rpm-state/

%if %{with_systemtap}
# Where to install systemtap tapset (links)
# We would like these to be in a package specific sub-dir,
# but currently systemtap doesn't support that, so we have to
# use the root tapset dir for now. To distinguish between 64
# and 32 bit architectures we place the tapsets under the arch
# specific dir (note that systemtap will only pickup the tapset
# for the primary arch for now). Systemtap uses the machine name
# aka target_cpu as architecture specific directory name.
%global tapsetroot /usr/share/systemtap
%global tapsetdirttapset %{tapsetroot}/tapset/
%global tapsetdir %{tapsetdirttapset}/%{stapinstall}
%endif

# not-duplicated scriptlets for normal/debug packages
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%define post_script() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
exit 0
}


%define alternatives_java_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

ext=.gz
alternatives \\
  --install %{_bindir}/java java %{jrebindir -- %{?1}}/java $PRIORITY  --family %{name}.%{_arch} \\
  --slave %{_jvmdir}/jre jre %{_jvmdir}/%{jredir -- %{?1}} \\
  --slave %{_bindir}/jjs jjs %{jrebindir -- %{?1}}/jjs \\
  --slave %{_bindir}/keytool keytool %{jrebindir -- %{?1}}/keytool \\
  --slave %{_bindir}/orbd orbd %{jrebindir -- %{?1}}/orbd \\
  --slave %{_bindir}/pack200 pack200 %{jrebindir -- %{?1}}/pack200 \\
  --slave %{_bindir}/rmid rmid %{jrebindir -- %{?1}}/rmid \\
  --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir -- %{?1}}/rmiregistry \\
  --slave %{_bindir}/servertool servertool %{jrebindir -- %{?1}}/servertool \\
  --slave %{_bindir}/tnameserv tnameserv %{jrebindir -- %{?1}}/tnameserv \\
  --slave %{_bindir}/policytool policytool %{jrebindir -- %{?1}}/policytool \\
  --slave %{_bindir}/unpack200 unpack200 %{jrebindir -- %{?1}}/unpack200 \\
  --slave %{_mandir}/man1/java.1$ext java.1$ext \\
  %{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jjs.1$ext jjs.1$ext \\
  %{_mandir}/man1/jjs-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext \\
  %{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/orbd.1$ext orbd.1$ext \\
  %{_mandir}/man1/orbd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/pack200.1$ext pack200.1$ext \\
  %{_mandir}/man1/pack200-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmid.1$ext rmid.1$ext \\
  %{_mandir}/man1/rmid-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext \\
  %{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/servertool.1$ext servertool.1$ext \\
  %{_mandir}/man1/servertool-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/tnameserv.1$ext tnameserv.1$ext \\
  %{_mandir}/man1/tnameserv-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/policytool.1$ext policytool.1$ext \\
  %{_mandir}/man1/policytool-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/unpack200.1$ext unpack200.1$ext \\
  %{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1$ext

for X in %{origin} %{javaver} ; do
  alternatives --install %{_jvmdir}/jre-"$X" jre_"$X" %{_jvmdir}/%{jredir -- %{?1}} $PRIORITY --family %{name}.%{_arch}
done

alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
}

%define post_headless() %{expand:
%ifarch %{jit_arches}
# MetaspaceShared::generate_vtable_methods not implemented for PPC JIT
%ifnarch %{power64}
# see https://bugzilla.redhat.com/show_bug.cgi?id=513605
%{jrebindir -- %{?1}}/java -Xshare:dump >/dev/null 2>/dev/null
%endif
%endif

update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

# see pretrans where this file is declared
# also see that pretrans is only for non-debug
if [ ! "%{?1}" == %{debug_suffix} ]; then
  if [ -f %{_libexecdir}/copy_jdk_configs_fixFiles.sh ] ; then
    sh  %{_libexecdir}/copy_jdk_configs_fixFiles.sh %{rpm_state_dir}/%{name}.%{_arch}  %{_jvmdir}/%{sdkdir -- %{?1}}
  fi
fi

exit 0
}

%define postun_script() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    %{update_desktop_icons}
fi
exit 0
}


%define postun_headless() %{expand:
  alternatives --remove java %{jrebindir -- %{?1}}/java
  alternatives --remove jre_%{origin} %{_jvmdir}/%{jredir -- %{?1}}
  alternatives --remove jre_%{javaver} %{_jvmdir}/%{jredir -- %{?1}}
  alternatives --remove jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}}
}

%define posttrans_script() %{expand:
%{update_desktop_icons}
}


%define alternatives_javac_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

ext=%{_extension}
alternatives \\
  --install %{_bindir}/javac javac %{sdkbindir -- %{?1}}/javac $PRIORITY  --family %{name}.%{_arch} \\
  --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir -- %{?1}} \\
  --slave %{_bindir}/appletviewer appletviewer %{sdkbindir -- %{?1}}/appletviewer \\
  --slave %{_bindir}/clhsdb clhsdb %{sdkbindir -- %{?1}}/clhsdb \\
  --slave %{_bindir}/extcheck extcheck %{sdkbindir -- %{?1}}/extcheck \\
  --slave %{_bindir}/hsdb hsdb %{sdkbindir -- %{?1}}/hsdb \\
  --slave %{_bindir}/idlj idlj %{sdkbindir -- %{?1}}/idlj \\
  --slave %{_bindir}/jar jar %{sdkbindir -- %{?1}}/jar \\
  --slave %{_bindir}/jarsigner jarsigner %{sdkbindir -- %{?1}}/jarsigner \\
  --slave %{_bindir}/javadoc javadoc %{sdkbindir -- %{?1}}/javadoc \\
  --slave %{_bindir}/javah javah %{sdkbindir -- %{?1}}/javah \\
  --slave %{_bindir}/javap javap %{sdkbindir -- %{?1}}/javap \\
  --slave %{_bindir}/jcmd jcmd %{sdkbindir -- %{?1}}/jcmd \\
  --slave %{_bindir}/jconsole jconsole %{sdkbindir -- %{?1}}/jconsole \\
  --slave %{_bindir}/jdb jdb %{sdkbindir -- %{?1}}/jdb \\
  --slave %{_bindir}/jdeps jdeps %{sdkbindir -- %{?1}}/jdeps \\
  --slave %{_bindir}/jhat jhat %{sdkbindir -- %{?1}}/jhat \\
  --slave %{_bindir}/jinfo jinfo %{sdkbindir -- %{?1}}/jinfo \\
  --slave %{_bindir}/jmap jmap %{sdkbindir -- %{?1}}/jmap \\
  --slave %{_bindir}/jps jps %{sdkbindir -- %{?1}}/jps \\
  --slave %{_bindir}/jrunscript jrunscript %{sdkbindir -- %{?1}}/jrunscript \\
  --slave %{_bindir}/jsadebugd jsadebugd %{sdkbindir -- %{?1}}/jsadebugd \\
  --slave %{_bindir}/jstack jstack %{sdkbindir -- %{?1}}/jstack \\
  --slave %{_bindir}/jstat jstat %{sdkbindir -- %{?1}}/jstat \\
  --slave %{_bindir}/jstatd jstatd %{sdkbindir -- %{?1}}/jstatd \\
  --slave %{_bindir}/native2ascii native2ascii %{sdkbindir -- %{?1}}/native2ascii \\
  --slave %{_bindir}/rmic rmic %{sdkbindir -- %{?1}}/rmic \\
  --slave %{_bindir}/schemagen schemagen %{sdkbindir -- %{?1}}/schemagen \\
  --slave %{_bindir}/serialver serialver %{sdkbindir -- %{?1}}/serialver \\
  --slave %{_bindir}/wsgen wsgen %{sdkbindir -- %{?1}}/wsgen \\
  --slave %{_bindir}/wsimport wsimport %{sdkbindir -- %{?1}}/wsimport \\
  --slave %{_bindir}/xjc xjc %{sdkbindir -- %{?1}}/xjc \\
  --slave %{_mandir}/man1/appletviewer.1$ext appletviewer.1$ext \\
  %{_mandir}/man1/appletviewer-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/extcheck.1$ext extcheck.1$ext \\
  %{_mandir}/man1/extcheck-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/idlj.1$ext idlj.1$ext \\
  %{_mandir}/man1/idlj-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jar.1$ext jar.1$ext \\
  %{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext \\
  %{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javac.1$ext javac.1$ext \\
  %{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext \\
  %{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javah.1$ext javah.1$ext \\
  %{_mandir}/man1/javah-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javap.1$ext javap.1$ext \\
  %{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jcmd.1$ext jcmd.1$ext \\
  %{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext \\
  %{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext \\
  %{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jdeps.1$ext jdeps.1$ext \\
  %{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jhat.1$ext jhat.1$ext \\
  %{_mandir}/man1/jhat-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext \\
  %{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext \\
  %{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jps.1$ext jps.1$ext \\
  %{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jrunscript.1$ext jrunscript.1$ext \\
  %{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jsadebugd.1$ext jsadebugd.1$ext \\
  %{_mandir}/man1/jsadebugd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext \\
  %{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext \\
  %{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext \\
  %{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/native2ascii.1$ext native2ascii.1$ext \\
  %{_mandir}/man1/native2ascii-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmic.1$ext rmic.1$ext \\
  %{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/schemagen.1$ext schemagen.1$ext \\
  %{_mandir}/man1/schemagen-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
  %{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/wsgen.1$ext wsgen.1$ext \\
  %{_mandir}/man1/wsgen-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/wsimport.1$ext wsimport.1$ext \\
  %{_mandir}/man1/wsimport-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/xjc.1$ext xjc.1$ext \\
  %{_mandir}/man1/xjc-%{uniquesuffix -- %{?1}}.1$ext

for X in %{origin} %{javaver} ; do
  alternatives \\
    --install %{_jvmdir}/java-"$X" java_sdk_"$X" %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
done

update-alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
}

%define post_devel() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

exit 0
}

%define postun_devel() %{expand:
  alternatives --remove javac %{sdkbindir -- %{?1}}/javac
  alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
  alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}}
  alternatives --remove java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}

update-desktop-database %{_datadir}/applications &> /dev/null || :

if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    %{update_desktop_icons}
fi
exit 0
}

%define posttrans_devel() %{expand:
%{alternatives_javac_install --  %{?1}}
%{update_desktop_icons}
}

%define alternatives_javadoc_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

alternatives \\
  --install %{_javadocdir}/java javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api \\
  $PRIORITY  --family %{name}
exit 0
}

%define postun_javadoc() %{expand:
  alternatives --remove javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api
exit 0
}

%define alternatives_javadoczip_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

alternatives \\
  --install %{_javadocdir}/java-zip javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip \\
  $PRIORITY  --family %{name}
exit 0
}

%define postun_javadoc_zip() %{expand:
  alternatives --remove javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
exit 0
}

%define files_jre() %{expand:
%{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}-%{origin}.png
%{_datadir}/applications/*policytool%{?1}.desktop
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libjsoundalsa.so
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libsplashscreen.so
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libawt_xawt.so
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libjawt.so
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/bin/policytool
}


%define files_jre_headless() %{expand:
%defattr(-,root,root,-)
%dir %{_sysconfdir}/.java/.systemPrefs
%dir %{_sysconfdir}/.java
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/ASSEMBLY_EXCEPTION
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/LICENSE
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/THIRD_PARTY_README
%dir %{_jvmdir}/%{sdkdir -- %{?1}}
%{_jvmdir}/%{jrelnk -- %{?1}}
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/cacerts
%dir %{_jvmdir}/%{jredir -- %{?1}}
%dir %{_jvmdir}/%{jredir -- %{?1}}/bin
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib
%{_jvmdir}/%{jredir -- %{?1}}/bin/java
%{_jvmdir}/%{jredir -- %{?1}}/bin/jjs
%{_jvmdir}/%{jredir -- %{?1}}/bin/keytool
%{_jvmdir}/%{jredir -- %{?1}}/bin/orbd
%{_jvmdir}/%{jredir -- %{?1}}/bin/pack200
%{_jvmdir}/%{jredir -- %{?1}}/bin/rmid
%{_jvmdir}/%{jredir -- %{?1}}/bin/rmiregistry
%{_jvmdir}/%{jredir -- %{?1}}/bin/servertool
%{_jvmdir}/%{jredir -- %{?1}}/bin/tnameserv
%{_jvmdir}/%{jredir -- %{?1}}/bin/unpack200
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/unlimited/
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/limited/
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/policy/unlimited/US_export_policy.jar
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/policy/unlimited/local_policy.jar
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/policy/limited/US_export_policy.jar
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/policy/limited/local_policy.jar
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/java.policy
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/java.security
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/blacklisted.certs
%config(noreplace) %{etcjavadir -- %{?1}}/lib/logging.properties
%config(noreplace) %{etcjavadir -- %{?1}}/lib/calendars.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/unlimited/US_export_policy.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/unlimited/local_policy.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/limited/US_export_policy.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/limited/local_policy.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/java.policy
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/java.security
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/blacklisted.certs
%{_jvmdir}/%{jredir -- %{?1}}/lib/logging.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/calendars.properties
%{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jjs-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/orbd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/pack200-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmid-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/servertool-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/tnameserv-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/policytool-%{uniquesuffix -- %{?1}}.1*
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/nss.cfg
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/nss.cfg
%ifarch %{jit_arches}
%ifnarch %{power64}
%attr(444, root, root) %ghost %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/server/classes.jsa
%attr(444, root, root) %ghost %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/client/classes.jsa
%endif
%endif
%dir %{etcjavasubdir}
%dir %{etcjavadir -- %{?1}}
%dir %{etcjavadir -- %{?1}}/lib
%dir %{etcjavadir -- %{?1}}/lib/security
%{etcjavadir -- %{?1}}/lib/security/cacerts
%dir %{etcjavadir -- %{?1}}/lib/security/policy
%dir %{etcjavadir -- %{?1}}/lib/security/policy/limited
%dir %{etcjavadir -- %{?1}}/lib/security/policy/unlimited
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/server/
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/client/
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jli
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jli/libjli.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jvm.cfg
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libattach.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libawt.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libawt_headless.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libdt_socket.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libfontmanager.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libhprof.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libinstrument.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2gss.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2pcsc.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2pkcs11.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjaas_unix.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjava.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjava_crw_demo.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjavajpeg.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjdwp.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsdt.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsig.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsound.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/liblcms.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libmanagement.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libmlib_image.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnet.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnio.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnpt.so
%ifarch x86_64  %{ix86} %{aarch64}
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsaproc.so
%endif
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsctp.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsunec.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libunpack.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libverify.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libzip.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/charsets.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/classlist
%{_jvmdir}/%{jredir -- %{?1}}/lib/content-types.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/currency.data
%{_jvmdir}/%{jredir -- %{?1}}/lib/flavormap.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/hijrah-config-umalqura.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/images/cursors/*
%{_jvmdir}/%{jredir -- %{?1}}/lib/jce.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/jexec
%{_jvmdir}/%{jredir -- %{?1}}/lib/jsse.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/jvm.hprof.txt
%{_jvmdir}/%{jredir -- %{?1}}/lib/meta-index
%{_jvmdir}/%{jredir -- %{?1}}/lib/net.properties
%config(noreplace) %{etcjavadir -- %{?1}}/lib/net.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/psfont.properties.ja
%{_jvmdir}/%{jredir -- %{?1}}/lib/psfontj2d.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/resources.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/rt.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/sound.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/tzdb.dat
%{_jvmdir}/%{jredir -- %{?1}}/lib/management-agent.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/management/*
%{_jvmdir}/%{jredir -- %{?1}}/lib/cmm/*
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/cldrdata.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/dnsns.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/jaccess.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/localedata.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/meta-index
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/nashorn.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/sunec.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/sunjce_provider.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/sunpkcs11.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/zipfs.jar

%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/images
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/images/cursors
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/management
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/cmm
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/ext
}

%define files_devel() %{expand:
%defattr(-,root,root,-)
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/ASSEMBLY_EXCEPTION
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/LICENSE
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/THIRD_PARTY_README
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/include
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/appletviewer
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/clhsdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/extcheck
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/hsdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/idlj
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jar
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jarsigner
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javac
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javadoc
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javah
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java-rmi.cgi
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jcmd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jconsole
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jhat
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jinfo
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jjs
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jps
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jrunscript
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jsadebugd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstack
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstat
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstatd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/keytool
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/native2ascii
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/orbd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/pack200
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/policytool
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmic
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmid
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmiregistry
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/schemagen
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/serialver
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/servertool
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/tnameserv
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/unpack200
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/wsgen
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/wsimport
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/xjc
%{_jvmdir}/%{sdkdir -- %{?1}}/include/*
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
%if %{with_systemtap}
%{_jvmdir}/%{sdkdir -- %{?1}}/tapset
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ir.idl
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jconsole.jar
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/orb.idl
%ifarch %{sa_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/sa-jdi.jar
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/dt.jar
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jexec
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/tools.jar
%{_datadir}/applications/*jconsole%{?1}.desktop
%{_mandir}/man1/appletviewer-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/extcheck-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/idlj-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javah-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jhat-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jsadebugd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/native2ascii-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/schemagen-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/wsgen-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/wsimport-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/xjc-%{uniquesuffix -- %{?1}}.1*
%if %{with_systemtap}
# /usr/share/systemtap belongs to systemtap
#dir %{tapsetroot}
#dir %{tapsetdirttapset}
#dir %{tapsetdir}
%{tapsetdir}/*%{_arch}%{?1}.stp
%endif
}

%define files_demo() %{expand:
%defattr(-,root,root,-)
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/LICENSE
}

%define files_src() %{expand:
%defattr(-,root,root,-)
%doc README.md
%{_jvmdir}/%{sdkdir -- %{?1}}/src.zip
}

%define files_javadoc() %{expand:
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/LICENSE
}

%define files_javadoc_zip() %{expand:
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/LICENSE
}

%define files_accessibility() %{expand:
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libatk-wrapper.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/java-atk-wrapper.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/accessibility.properties
}

# not-duplicated requires/provides/obsoletes for normal/debug packages
%define java_rpo() %{expand:
Requires: fontconfig%{?_isa}
Requires: xorg-x11-fonts-Type1
# Require libXcomposite explicitly since it's only dynamically loaded
# at runtime. Fixes screenshot issues. See JDK-8150954.
Requires: libXcomposite%{?_isa}
# Requires rest of java
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# for java-X-openjdk package's desktop binding
%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends: gtk2%{?_isa}
%endif

Provides: java-%{javaver}-%{origin} = %{epoch}:%{version}-%{release}

# Standard JPackage base provides
Provides: jre%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java%{?1} = %{epoch}:%{version}-%{release}
}

%define java_headless_rpo() %{expand:
# Require /etc/pki/java/cacerts
Requires: ca-certificates
# Require javapackages-filesystem for ownership of /usr/lib/jvm/
Requires: javapackages-filesystem
%if %{with timezonejava}
# Require zone-info data provided by tzdata-java sub-package
Requires: tzdata-java >= 2015d
%endif
# libsctp.so.1 is being `dlopen`ed on demand
Requires: lksctp-tools%{?_isa}
# tool to copy jdk's configs - should be Recommends only, but then only dnf/yum enforce it,
# not rpm transaction and so no configs are persisted when pure rpm -u is run. It may be
# considered as regression
Requires: copy-jdk-configs >= 4.0
OrderWithRequires: copy-jdk-configs
# for printing support
Requires: cups-libs
# Post requires alternatives to install tool alternatives
Requires(post):   %{_sbindir}/alternatives
# Postun requires alternatives to uninstall tool alternatives
Requires(postun): %{_sbindir}/alternatives
# for optional support of kernel stream control, card reader and printing bindings
%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: lksctp-tools%{?_isa}, pcsc-lite-devel%{?_isa}
%endif

# Standard JPackage base provides
Provides: jre-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-headless%{?1} = %{epoch}:%{version}-%{release}

# https://bugzilla.redhat.com/show_bug.cgi?id=1312019
Provides: /usr/bin/jjs

}

%define java_devel_rpo() %{expand:
# Requires base package
Requires:         %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# Post requires alternatives to install tool alternatives
Requires(post):   %{_sbindir}/alternatives
# Postun requires alternatives to uninstall tool alternatives
Requires(postun): %{_sbindir}/alternatives

# Standard JPackage devel provides
Provides: java-sdk-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-devel%{?1} = %{epoch}:%{version}-%{release}

}


%define java_demo_rpo() %{expand:
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

Provides: java-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}

}

%define java_javadoc_rpo() %{expand:
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# Post requires alternatives to install javadoc alternative
Requires(post):   %{_sbindir}/alternatives
# Postun requires alternatives to uninstall javadoc alternative
Requires(postun): %{_sbindir}/alternatives

# Standard JPackage javadoc provides
Provides: java-javadoc%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-javadoc%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-javadoc%{?1} = %{epoch}:%{version}-%{release}
}

%define java_src_rpo() %{expand:
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

# Standard JPackage sources provides
Provides: java-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
}

%define java_accessibility_rpo() %{expand:
Requires: java-atk-wrapper%{?_isa}
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

Provides: java-accessibility%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-accessibility%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{release}

}

# Prevent brp-java-repack-jars from being run
%global __jar_repack 0

Name:    java-%{javaver}-%{origin}
Version: %{javaver}.%{updatever}.%{buildver}
Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist}
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
# also included the epoch in their virtual provides. This created a
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
# 1:1.5.0". In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
# interpreted as 0:1.6.0. So the "java >= 1.6.0" requirement would be
# satisfied by the 1:1.5.0 packages. Thus we need to set the epoch in
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".

Epoch:   1
Summary: %{origin_nice} Runtime Environment %{majorver}
Group: Development/Java

# HotSpot code is licensed under GPLv2
# JDK library code is licensed under GPLv2 with the Classpath exception
# The Apache license is used in code taken from Apache projects (primarily JAXP & JAXWS)
# DOM levels 2 & 3 and the XML digital signature schemas are licensed under the W3C Software License
# The JSR166 concurrency code is in the public domain
# The BSD and MIT licenses are used for a number of third-party libraries (see THIRD_PARTY_README)
# The OpenJDK source tree includes the JPEG library (IJG), zlib & libpng (zlib), giflib and LCMS (MIT)
# The test code includes copies of NSS under the Mozilla Public License v2.0
# The PCSClite headers are under a BSD with advertising license
# The elliptic curve cryptography (ECC) source code is licensed under the LGPLv2.1 or any later version
License:  ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib
URL:      http://openjdk.java.net/

# Shenandoah HotSpot
# aarch64-port/jdk8u-shenandoah contains an integration forest of
# OpenJDK 8u, the aarch64 port and Shenandoah
# To regenerate, use:
# VERSION=%%{shenandoah_revision}
# FILE_NAME_ROOT=%%{shenandoah_project}-%%{shenandoah_repo}-${VERSION}
# REPO_ROOT=<path to checked-out repository> generate_source_tarball.sh
# where the source is obtained from http://hg.openjdk.java.net/%%{project}/%%{repo}
Source0: %{shenandoah_project}-%{shenandoah_repo}-%{shenandoah_revision}-4curve.tar.xz

# Custom README for -src subpackage
Source2:  README.md

# ROSA-specific
Source3:  %{name}.rpmlintrc

# Use 'icedtea_sync.sh' to update the following
# They are based on code contained in the IcedTea project (3.x).
# Systemtap tapsets. Zipped up to keep it small.
Source8: tapsets-icedtea-%{icedteaver}.tar.xz

# Desktop files. Adapted from IcedTea
Source9: jconsole.desktop.in
Source10: policytool.desktop.in

# nss configuration file
Source11: nss.cfg.in

# Removed libraries that we link instead
Source12: %{name}-remove-intree-libraries.sh

# Ensure we aren't using the limited crypto policy
Source13: TestCryptoLevel.java

# Ensure ECDSA is working
Source14: TestECDSA.java

# Verify system crypto (policy) can be disabled via a property
Source15: TestSecurityProperties.java

Source20: repackReproduciblePolycies.sh

# New versions of config files with aarch64 support. This is not upstream yet.
Source100: config.guess
Source101: config.sub

############################################
#
# RPM/distribution specific patches
#
# This section includes patches specific to
# Fedora/RHEL which can not be upstreamed
# either in their current form or at all.
############################################

# Accessibility patches
# Ignore AWTError when assistive technologies are loaded 
Patch1:   rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
# Restrict access to java-atk-wrapper classes
Patch3:   rh1648644-java_access_bridge_privileged_security.patch
# Turn on AssumeMP by default on RHEL systems
Patch534: rh1648246-always_instruct_vm_to_assume_multiple_processors_are_available.patch

#############################################
#
# Upstreamable patches
#
# This section includes patches which need to
# be reviewed & pushed to the current development
# tree of OpenJDK.
#############################################
# PR2737: Allow multiple initialization of PKCS11 libraries
Patch5: pr2737-allow_multiple_pkcs11_library_initialisation_to_be_a_non_critical_error.patch
# PR2095, RH1163501: 2048-bit DH upper bound too small for Fedora infrastructure (sync with IcedTea 2.x)
Patch504: rh1163501-increase_2048_bit_dh_upper_bound_fedora_infrastructure_in_dhparametergenerator.patch
# Turn off strict overflow on IndicRearrangementProcessor{,2}.cpp following 8140543: Arrange font actions
Patch512: rh1649664-awt2dlibraries_compiled_with_no_strict_overflow.patch
# RH1337583, PR2974: PKCS#10 certificate requests now use CRLF line endings rather than system line endings
Patch523: pr2974-rh1337583-add_systemlineendings_option_to_keytool_and_use_line_separator_instead_of_crlf_in_pkcs10.patch
# PR3083, RH1346460: Regression in SSL debug output without an ECC provider
Patch528: pr3083-rh1346460-for_ssl_debug_return_null_instead_of_exception_when_theres_no_ecc_provider.patch
# RH1566890: CVE-2018-3639
Patch529: rh1566890-CVE_2018_3639-speculative_store_bypass.patch
Patch531: rh1566890-CVE_2018_3639-speculative_store_bypass_toggle.patch
# PR3601: Fix additional -Wreturn-type issues introduced by 8061651
Patch530: pr3601-fix_additional_Wreturn_type_issues_introduced_by_8061651_for_prims_jvm_cpp.patch
# PR2888: OpenJDK should check for system cacerts database (e.g. /etc/pki/java/cacerts)
# PR3575, RH1567204: System cacerts database handling should not affect jssecacerts
Patch539: pr2888-openjdk_should_check_for_system_cacerts_database_eg_etc_pki_java_cacerts.patch
# PR3183, RH1340845: Support Fedora/RHEL8 system crypto policy
Patch400: pr3183-rh1340845-support_fedora_rhel_system_crypto_policy.patch
# PR3655: Allow use of system crypto policy to be disabled by the user
Patch401: pr3655-toggle_system_crypto_policy.patch
# JDK-8218811: replace open by os::open in hotspot coding
# This fixes a GCC 10 build issue
Patch111: jdk8218811-perfMemory_linux.patch
# JDK-8241296: Segfault in JNIHandleBlock::oops_do()
Patch112: jdk8241296-jnihandleblock_segfault.patch
# JDK-8244461: [JDK 8u] Build fails with glibc 2.32
Patch113: jdk8244461-remove_unused_sysctl.h.patch
# fix build with gcc 11 Fedora(Rawhide) patch
Patch114: java-1.8.0-openjdk-gcc11.patch

#############################################
#
# Arch-specific upstreamable patches
#
# This section includes patches which need to
# be reviewed & pushed upstream and are specific
# to certain architectures. This usually means the
# current OpenJDK development branch, but may also
# include other trees e.g. for the AArch64 port for
# OpenJDK 8u.
#############################################
# s390: PR3593: Use "%z" for size_t on s390 as size_t != intptr_t
Patch103: pr3593-s390_use_z_format_specifier_for_size_t_arguments_as_size_t_not_equals_to_int.patch
# x86: S8199936, PR3533: HotSpot generates code with unaligned stack, crashes on SSE operations (-mstackrealign workaround)
Patch105: jdk8199936-pr3533-enable_mstackrealign_on_x86_linux_as_well_as_x86_mac_os_x.patch
# AArch64: PR3519: Fix further functions with a missing return value (AArch64)
Patch106: pr3519-fix_further_functions_with_a_missing_return_value.patch
# S390 ambiguous log2_intptr calls
Patch107: s390-8214206_fix.patch
# JDK-8224851: AArch64: fix warnings and errors with Clang and GCC 8.3
# GCC 10 fix for redeclaration
Patch120: jdk8224851-aarch64_fix_warnings_and_errors_GCC_8_3.patch

#############################################
#
# Patches which need backporting to 8u
#
# This section includes patches which have
# been pushed upstream to the latest OpenJDK
# development tree, but need to be backported
# to OpenJDK 8u.
#############################################
# S8074839, PR2462: Resolve disabled warnings for libunpack and the unpack200 binary
# This fixes printf warnings that lead to build failure with -Werror=format-security from optflags
Patch502: pr2462-resolve_disabled_warnings_for_libunpack_and_the_unpack200_binary.patch
# S8154313: Generated javadoc scattered all over the place
Patch578: jdk8154313-generated_javadoc_scattered_all_over_the_place.patch
# PR3591: Fix for bug 3533 doesn't add -mstackrealign to JDK code
Patch571: jdk8199936-pr3591-enable_mstackrealign_on_x86_linux_as_well_as_x86_mac_os_x_jdk.patch
# 8143245, PR3548: Zero build requires disabled warnings
Patch574: jdk8143245-pr3548-zero_build_requires_disabled_warnings.patch
# 8197981, PR3548: Missing return statement in __sync_val_compare_and_swap_8
Patch575: jdk8197981-pr3548-missing_return_statement_in_sync_val_compare_and_swap_8.patch
# 8062808, PR3548: Turn on the -Wreturn-type warning
Patch577: jdk8062808-pr3548-turn_on_the_wreturn_type_warning.patch
# s390: JDK-8203030, Type fixing for s390
Patch102: jdk8203030-zero_s390_31_bit_size_t_type_conflicts_in_shared_code.patch
# 8035341: Allow using a system installed libpng
Patch202: jdk8035341-allow_using_system_installed_libpng.patch
# 8042159: Allow using a system-installed lcms2
Patch203: jdk8042159-allow_using_system_installed_lcms2.patch

#############################################
#
# Patches appearing in 8u262
#
# This section includes patches which are present
# in the listed OpenJDK 8u release and should be
# able to be removed once that release is out
# and used by this RPM.
#############################################
# JDK-8233880: Support compilers with multi-digit major version numbers
Patch579: jdk8233880-compiler_versioning.patch

#############################################
#
# Patches ineligible for 8u
#
# This section includes patches which are present
# upstream, but ineligible for upstream 8u backport.
#############################################
# 8043805: Allow using a system-installed libjpeg
Patch201: jdk8043805-allow_using_system_installed_libjpeg.patch

#############################################
#
# Shenandoah fixes
#
# This section includes patches which are
# specific to the Shenandoah garbage collector
# and should be upstreamed to the appropriate
# trees.
#############################################

#############################################
#
# Non-OpenJDK fixes
#
# This section includes patches to code other
# that from OpenJDK.
#############################################
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch

# architecture riscv64

Patch2000: java-1.8-architecture-RISCV.patch


#############################################
#
# Dependencies
#
#############################################
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: binutils
BuildRequires: cups-devel
BuildRequires: elfutils
BuildRequires: elfutils-devel
BuildRequires: fontconfig
BuildRequires: freetype2-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gdb
BuildRequires: giflib-devel
BuildRequires: jpeg-devel
BuildRequires: libxslt-devel
BuildRequires: nss-devel
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
BuildRequires: unzip
BuildRequires: xsltproc
BuildRequires: zip
BuildRequires: nss-softokn-freebl-devel
BuildRequires: javapackages-filesystem

# Use OpenJDK 7 where available (on RHEL) to avoid
# having to use the rhel-7.x-java-unsafe-candidate hack
#if ! 0%{?fedora} && 0%{?rhel} <= 7
%if 0
# Require a boot JDK which doesn't fail due to RH1482244
BuildRequires: java-1.7.0-openjdk-devel >= 1.7.0.151-2.6.11.3
%else
BuildRequires: java-1.8.0-openjdk-devel
%endif
# Zero-assembler build requirement
%ifnarch %{jit_arches}
BuildRequires: pkgconfig(libffi)
%endif
%if %{with timezonejava}
BuildRequires: tzdata-java >= 2015d
%endif
%if %{with_systemtap}
BuildRequires: systemtap-devel
%endif

# this is always built, also during debug-only build
# when it is built in debug-only this package is just placeholder
%{java_rpo %{nil}}

%description
The %{origin_nice} runtime environment %{majorver}.

%if %{include_debug_build}
%package slowdebug
Summary: %{origin_nice} Runtime Environment %{majorver} %{debug_on}
Group: Development/Java

%{java_rpo -- %{debug_suffix_unquoted}}
%description slowdebug
The %{origin_nice} runtime environment %{majorver}.
%{debug_warning}
%endif

%if %{include_normal_build}
%package headless
Summary: %{origin_nice} Headless Runtime Environment %{majorver}
Group: Development/Java

%{java_headless_rpo %{nil}}

%description headless
The %{origin_nice} runtime environment %{majorver} without audio and video support.
%endif

%if %{include_debug_build}
%package headless-slowdebug
Summary: %{origin_nice} Runtime Environment %{majorver} %{debug_on}
Group: Development/Java

%{java_headless_rpo -- %{debug_suffix_unquoted}}

%description headless-slowdebug
The %{origin_nice} runtime environment %{majorver} without audio and video support.
%{debug_warning}
%endif

%if %{include_normal_build}
%package devel
Summary: %{origin_nice} Development Environment %{majorver}
Group: Development/Java
Provides: java-devel-openjdk = %{EVRD}

%{java_devel_rpo %{nil}}

%description devel
The %{origin_nice} development tools %{majorver}.
%endif

%if %{include_debug_build}
%package devel-slowdebug
Summary: %{origin_nice} Development Environment %{majorver} %{debug_on}
Group: Development/Java

%{java_devel_rpo -- %{debug_suffix_unquoted}}

%description devel-slowdebug
The %{origin_nice} development tools %{majorver}.
%{debug_warning}
%endif

%if %{include_normal_build}
%package demo
Summary: %{origin_nice} Demos %{majorver}
Group: Development/Java

%{java_demo_rpo %{nil}}

%description demo
The %{origin_nice} demos %{majorver}.
%endif

%if %{include_debug_build}
%package demo-slowdebug
Summary: %{origin_nice} Demos %{majorver} %{debug_on}
Group: Development/Java

%{java_demo_rpo -- %{debug_suffix_unquoted}}

%description demo-slowdebug
The %{origin_nice} demos %{majorver}.
%{debug_warning}
%endif

%if %{include_normal_build}
%package src
Summary: %{origin_nice} Source Bundle %{majorver}
Group: Development/Java

%{java_src_rpo %{nil}}

%description src
The java-%{origin}-src sub-package contains the complete %{origin_nice} %{majorver}
class library source code for use by IDE indexers and debuggers.
%endif

%if %{include_debug_build}
%package src-slowdebug
Summary: %{origin_nice} Source Bundle %{majorver} %{for_debug}
Group: Development/Java

%{java_src_rpo -- %{debug_suffix_unquoted}}

%description src-slowdebug
The java-%{origin}-src-slowdebug sub-package contains the complete %{origin_nice} %{majorver}
 class library source code for use by IDE indexers and debuggers. Debugging %{for_debug}.
%endif

%if %{include_normal_build}
%package javadoc
Summary: %{origin_nice} %{majorver} API documentation
Group: Development/Java
Requires: javapackages-filesystem
Obsoletes: javadoc-slowdebug < 1:1.8.0.222.b10-1
BuildArch: noarch

%{java_javadoc_rpo %{nil}}

%description javadoc
The %{origin_nice} %{majorver} API documentation.
%endif

%if %{include_normal_build}
%package javadoc-zip
Summary: %{origin_nice} %{majorver} API documentation compressed in a single archive
Group: Development/Java
Requires: javapackages-filesystem
Obsoletes: javadoc-zip-slowdebug < 1:1.8.0.222.b10-1
BuildArch: noarch

%{java_javadoc_rpo %{nil}}

%description javadoc-zip
The %{origin_nice} %{majorver} API documentation compressed in a single archive.
%endif

%if %{include_normal_build}
%package accessibility
Summary: %{origin_nice} %{majorver} accessibility connector
Group: Development/Java

%{java_accessibility_rpo %{nil}}

%description accessibility
Enables accessibility support in %{origin_nice} %{majorver} by using java-atk-wrapper. This allows
compatible at-spi2 based accessibility programs to work for AWT and Swing-based
programs.

Please note, the java-atk-wrapper is still in beta, and %{origin_nice} %{majorver} itself is still
being tuned to be working with accessibility features. There are known issues
with accessibility on, so please do not install this package unless you really
need to.
%endif

%if %{include_debug_build}
%package accessibility-slowdebug
Summary: %{origin_nice} %{majorver} accessibility connector %{for_debug}
Group: Development/Java

%{java_accessibility_rpo -- %{debug_suffix_unquoted}}

%description accessibility-slowdebug
See normal java-%{version}-openjdk-accessibility description.
%endif


%if %{with_openjfx_binding}
%package openjfx
Summary: OpenJDK x OpenJFX connector
Group: Development/Java
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openjfx8%{?_isa}
Provides: javafx  = %{epoch}:%{version}-%{release}
%description openjfx
Set of links from OpenJDK (jre) to OpenJFX.
This package adds symliks finishing Java FX integration to %{name}.

%package openjfx-devel
Summary: OpenJDK x OpenJFX connector for FX developers
Group: Development/Java
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openjfx8-devel%{?_isa}
Provides: javafx-devel = %{epoch}:%{version}-%{release}
%description openjfx-devel
Set of links from OpenJDK (sdk) to OpenJFX.
This package adds symliks finishing Java FX integration to %{name}-devel.

%if %{include_debug_build}
%package openjfx-slowdebug
Summary: OpenJDK x OpenJFX connector %{for_debug}
Group: Development/Java
Requires: %{name}-slowdebug%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openjfx8%{?_isa}
Provides: javafx-slowdebug = %{epoch}:%{version}-%{release}
%description openjfx-slowdebug
Set of links from OpenJDK-slowdebug (jre) to normal OpenJFX. OpenJFX does not support debug builds of itself.
This package adds symliks finishing Java FX integration to %{name}-slowdebug.

%package openjfx-devel-slowdebug
Summary: OpenJDK x OpenJFX connector for FX developers %{for_debug}
Group: Development/Java
Requires: %{name}-devel-slowdebug%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openjfx8-devel%{?_isa}
Provides: javafx-devel-slowdebug = %{epoch}:%{version}-%{release}
%description openjfx-devel-slowdebug
Set of links from OpenJDK-slowdebug (sdk) to normal OpenJFX. OpenJFX does not support debug builds of itself.
This package adds symliks finishing Java FX integration to %{name}-devel-slowdebug.
%endif
%endif

%prep

# Using the echo macro breaks rpmdev-bumpspec, as it parses the first line of stdout :-(
%if 0%{?stapinstall:1}
  echo "CPU: %{_target_cpu}, arch install directory: %{archinstall}, SystemTap install directory: %{stapinstall}"
%else
  %{error:Unrecognised architecture %{_target_cpu}}
%endif

if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
  echo "include_normal_build is %{include_normal_build}"
else
  echo "include_normal_build is %{include_normal_build}, thats invalid. Use 1 for yes or 0 for no"
  exit 11
fi
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
  echo "include_debug_build is %{include_debug_build}"
else
  echo "include_debug_build is %{include_debug_build}, thats invalid. Use 1 for yes or 0 for no"
  exit 12
fi
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 ] ; then
  echo "You have disabled both include_debug_build and include_normal_build. That is a no go."
  exit 13
fi

echo "Update version: %{updatever}"
echo "Build number: %{buildver}"
echo "Milestone: %{milestone}"
%setup -q -c -n %{uniquesuffix ""} -T -a 0
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
prioritylength=`expr length %{priority}`
if [ $prioritylength -ne 7 ] ; then
 echo "priority must be 7 digits in total, violated"
 exit 14
fi
# For old patches
ln -s %{top_level_dir_name} jdk8

cp %{SOURCE2} .

# replace outdated configure guess script
#
# the configure macro will do this too, but it also passes a few flags not
# supported by openjdk configure script
cp %{SOURCE100} %{top_level_dir_name}/common/autoconf/build-aux/
cp %{SOURCE101} %{top_level_dir_name}/common/autoconf/build-aux/

# OpenJDK patches

# Remove libraries that are linked
sh %{SOURCE12}

# System library fixes
%patch201
%patch202
%patch203

# System security policy fixes
%patch400
%patch401

%patch1
%patch3
%patch5

# s390 build fixes
%patch102
%patch103
%patch107

# AArch64 fixes
%patch106
%patch120

# x86 fixes
%patch105

# Upstreamable fixes
%patch502
%patch504
%patch512
%patch578
%patch523
%patch528
%patch529
%patch531
%patch530
%patch571
%patch574
%patch575
%patch577
%patch111
%patch112
%patch113
%patch114
%patch579

# RPM-only fixes
%patch539
%patch1000

# RISCV
%patch2000

# RHEL-only patches
%if ! 0%{?fedora} && 0%{?rhel} <= 7
%patch534
%endif

# Shenandoah patches

# Extract systemtap tapsets
%if %{with_systemtap}
tar --strip-components=1 -x -I xz -f %{SOURCE8}
%if %{include_debug_build}
cp -r tapset tapset%{debug_suffix}
%endif


for suffix in %{build_loop} ; do
  for file in "tapset"$suffix/*.in; do
    OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
    sed -e "s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/jre/lib/%{archinstall}/server/libjvm.so:g" $file > $file.1
# TODO find out which architectures other than i686 have a client vm
%ifarch %{ix86}
    sed -e "s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/jre/lib/%{archinstall}/client/libjvm.so:g" $file.1 > $OUTPUT_FILE
%else
    sed -e "/@ABS_CLIENT_LIBJVM_SO@/d" $file.1 > $OUTPUT_FILE
%endif
    sed -i -e "s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g" $OUTPUT_FILE
    sed -i -e "s:@INSTALL_ARCH_DIR@:%{archinstall}:g" $OUTPUT_FILE
    sed -i -e "s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g" $OUTPUT_FILE
  done
done
# systemtap tapsets ends
%endif

# Prepare desktop files
# The _X_ syntax indicates variables that are replaced by make upstream
# The @X@ syntax indicates variables that are replaced by configure upstream
for suffix in %{build_loop} ; do
for file in %{SOURCE9} %{SOURCE10} ; do
    FILE=`basename $file | sed -e s:\.in$::g`
    EXT="${FILE##*.}"
    NAME="${FILE%.*}"
    OUTPUT_FILE=$NAME$suffix.$EXT
    sed    -e  "s:_SDKBINDIR_:%{sdkbindir -- $suffix}:g" $file > $OUTPUT_FILE
    sed -i -e  "s:_JREBINDIR_:%{jrebindir -- $suffix}:g" $OUTPUT_FILE
    sed -i -e  "s:@target_cpu@:%{_arch}:g" $OUTPUT_FILE
    sed -i -e  "s:@OPENJDK_VER@:%{version}-%{release}.%{_arch}$suffix:g" $OUTPUT_FILE
    sed -i -e  "s:@JAVA_VER@:%{javaver}:g" $OUTPUT_FILE
    sed -i -e  "s:@JAVA_VENDOR@:%{origin}:g" $OUTPUT_FILE
done
done

# Setup nss.cfg
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE11} > nss.cfg


%build
# How many CPU's do we have?
export NUM_PROC=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :)
export NUM_PROC=${NUM_PROC:-1}
%if 0%{?_smp_ncpus_max}
# Honor %%_smp_ncpus_max
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
%endif

%ifarch s390x sparc64 alpha %{power64} %{aarch64} %{riscv64}
export ARCH_DATA_MODEL=64
%endif
%ifarch alpha
export CFLAGS="$CFLAGS -mieee"
%endif

# We use ourcppflags because the OpenJDK build seems to
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
EXTRA_CFLAGS="%ourcppflags -Wno-error -fcommon"
EXTRA_CPP_FLAGS="%ourcppflags"

%ifarch %{power64} ppc
# fix rpmlint warnings
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
%endif

EXTRA_ASFLAGS="${EXTRA_CFLAGS} -Wa,--generate-missing-build-notes=yes"
export EXTRA_CFLAGS EXTRA_ASFLAGS

(cd %{top_level_dir_name}/common/autoconf
 bash ./autogen.sh
)

function buildjdk() {
    local outputdir=${1}
    local buildjdk=${2}
    local maketargets=${3}
    local debuglevel=${4}

    local top_srcdir_abs_path=$(pwd)/%{top_level_dir_name}
    # Variable used in hs_err hook on build failures
    local top_builddir_abs_path=$(pwd)/${outputdir}

    mkdir -p ${outputdir}
    pushd ${outputdir}

    bash ${top_srcdir_abs_path}/configure \
%ifnarch %{jit_arches}
    --with-jvm-variants=zero \
%endif
%ifarch %{riscv64}
    --disable-precompiled-headers \
%endif
    --with-native-debug-symbols=internal \
    --with-milestone=%{milestone} \
    --with-update-version=%{updatever} \
    --with-build-number=%{buildver} \
    --with-boot-jdk=${buildjdk} \
    --with-debug-level=${debuglevel} \
    --enable-unlimited-crypto \
    --with-zlib=system \
    --with-libjpeg=system \
    --with-giflib=system \
    --with-libpng=system \
    --with-lcms=system \
    --with-stdc++lib=dynamic \
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
    --with-extra-cflags="$EXTRA_CFLAGS" \
    --with-extra-asflags="$EXTRA_ASFLAGS" \
    --with-extra-ldflags="%{ourldflags}" \
    --with-num-cores="$NUM_PROC"

    cat spec.gmk
    cat hotspot-spec.gmk

    make \
	JAVAC_FLAGS=-g \
	LOG=trace \
	SCTP_WERROR= \
	${maketargets} || ( pwd; find ${top_srcdir_abs_path} ${top_builddir_abs_path} -name "hs_err_pid*.log" | xargs cat && false )

    # the build (erroneously) removes read permissions from some jars
    # this is a regression in OpenJDK 7 (our compiler):
    # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
    find images/%{jdkimage} -iname '*.jar' -exec chmod ugo+r {} \;
    chmod ugo+r images/%{jdkimage}/lib/ct.sym

    # remove redundant *diz and *debuginfo files
    find images/%{jdkimage} -iname '*.diz' -exec rm -v {} \;
    find images/%{jdkimage} -iname '*.debuginfo' -exec rm -v {} \;

    # Build screws up permissions on binaries
    # https://bugs.openjdk.java.net/browse/JDK-8173610
    find images/%{jdkimage} -iname '*.so' -exec chmod +x {} \;
    find images/%{jdkimage}/bin/ -exec chmod +x {} \;

    popd >& /dev/null
}

for suffix in %{build_loop} ; do
if [ "x$suffix" = "x" ] ; then
  debugbuild=release
else
  # change --something to something
  debugbuild=`echo $suffix  | sed "s/-//g"`
fi

systemjdk=/usr/lib/jvm/java-openjdk
builddir=%{buildoutputdir -- $suffix}
bootbuilddir=boot${builddir}

# Debug builds don't need same targets as release for
# build speed-up
maketargets="%{release_targets}"
if echo $debugbuild | grep -q "debug" ; then
  maketargets="%{debug_targets}"
fi

%if %{bootstrap_build}
buildjdk ${bootbuilddir} ${systemjdk} "%{bootstrap_targets}" ${debugbuild}
buildjdk ${builddir} $(pwd)/${bootbuilddir}/images/%{jdkimage} "${maketargets}" ${debugbuild}
rm -rf ${bootbuilddir}
%else
buildjdk ${builddir} ${systemjdk} "${maketargets}" ${debugbuild}
%endif

# Install nss.cfg right away as we will be using the JRE above
export JAVA_HOME=$(pwd)/%{buildoutputdir -- $suffix}/images/%{jdkimage}

# Install nss.cfg right away as we will be using the JRE above
install -m 644 nss.cfg $JAVA_HOME/jre/lib/security/
%if %{with timezonejava}
# Use system-wide tzdata
rm $JAVA_HOME/jre/lib/tzdb.dat
ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/jre/lib/tzdb.dat
%endif
# build cycles
done

%check

# !!! TODO: remove it
exit 0

# We test debug first as it will give better diagnostics on a crash
for suffix in %{rev_build_loop} ; do

export JAVA_HOME=$(pwd)/%{buildoutputdir -- $suffix}/images/%{jdkimage}

# Check unlimited policy has been used
$JAVA_HOME/bin/javac -d . %{SOURCE13}
$JAVA_HOME/bin/java TestCryptoLevel

# Check ECC is working
$JAVA_HOME/bin/javac -d . %{SOURCE14}
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")

# Verify system crypto (policy) can be disabled
$JAVA_HOME/bin/javac -d . %{SOURCE15}
$JAVA_HOME/bin/java -Djava.security.disableSystemPropertiesFile=true $(echo $(basename %{SOURCE15})|sed "s|\.java||")

# Check debug symbols are present and can identify code
find "$JAVA_HOME" -iname '*.so' -print0 | while read -d $'\0' lib
do
  if [ -f "$lib" ] ; then
    echo "Testing $lib for debug symbols"
    # All these tests rely on RPM failing the build if the exit code of any set
    # of piped commands is non-zero.

    # Test for .debug_* sections in the shared object. This is the main test
    # Stripped objects will not contain these
    eu-readelf -S "$lib" | grep "] .debug_"
    test $(eu-readelf -S "$lib" | grep -E "\]\ .debug_(info|abbrev)" | wc --lines) == 2

    # Test FILE symbols. These will most likely be removed by anything that
    # manipulates symbol tables because it's generally useless. So a nice test
    # that nothing has messed with symbols
    old_IFS="$IFS"
    IFS=$'\n'
    for line in $(eu-readelf -s "$lib" | grep "00000000      0 FILE    LOCAL  DEFAULT")
    do
     # We expect to see .cpp files, except for architectures like aarch64 and
     # s390 where we expect .o and .oS files
      echo "$line" | grep -E "ABS ((.*/)?[-_a-zA-Z0-9]+\.(c|cc|cpp|cxx|o|oS))?$"
    done
    IFS="$old_IFS"

    # If this is the JVM, look for javaCalls.(cpp|o) in FILEs, for extra sanity checking
    if [ "`basename $lib`" = "libjvm.so" ]; then
      eu-readelf -s "$lib" | \
        grep -E "00000000      0 FILE    LOCAL  DEFAULT      ABS javaCalls.(cpp|o)$"
    fi

    # Test that there are no .gnu_debuglink sections pointing to another
    # debuginfo file. There shouldn't be any debuginfo files, so the link makes
    # no sense either
    eu-readelf -S "$lib" | grep 'gnu'
    if eu-readelf -S "$lib" | grep '] .gnu_debuglink' | grep PROGBITS; then
      echo "bad .gnu_debuglink section."
      eu-readelf -x .gnu_debuglink "$lib"
      false
    fi
  fi
done

# Make sure gdb can do a backtrace based on line numbers on libjvm.so
# javaCalls.cpp:58 should map to:
# http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/ff3b27e6bcc2/src/share/vm/runtime/javaCalls.cpp#l58 
# Using line number 1 might cause build problems. See:
# https://bugzilla.redhat.com/show_bug.cgi?id=1539664
# https://bugzilla.redhat.com/show_bug.cgi?id=1538767
gdb -q "$JAVA_HOME/bin/java" <<EOF | tee gdb.out
handle SIGSEGV pass nostop noprint
handle SIGILL pass nostop noprint
set breakpoint pending on
break javaCalls.cpp:58
commands 1
backtrace
quit
end
run -version
EOF
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out

# Check src.zip has all sources. See RHBZ#1130490
jar -tf $JAVA_HOME/src.zip | grep 'sun.misc.Unsafe'

# Check class files include useful debugging information
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable

# Check generated class files include useful debugging information
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable

# build cycles check
done

%install
STRIP_KEEP_SYMTAB=libjvm*

for suffix in %{build_loop} ; do

# Install the jdk
pushd %{buildoutputdir -- $suffix}/images/%{jdkimage}

# Install jsa directories so we can owe them
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/server/
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/client/

  # Install main files.
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
  cp -a bin include lib src.zip $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}
  cp -a jre/bin jre/lib $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}

%if %{with_systemtap}
  # Install systemtap support files
  install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset
  # note, that uniquesuffix  is in BUILD dir in this case
  cp -a $RPM_BUILD_DIR/%{uniquesuffix ""}/tapset$suffix/*.stp $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
  pushd  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
   tapsetFiles=`ls *.stp`
  popd
  install -d -m 755 $RPM_BUILD_ROOT%{tapsetdir}
  for name in $tapsetFiles ; do
    targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
    ln -sf %{_jvmdir}/%{sdkdir -- $suffix}/tapset/$name $RPM_BUILD_ROOT%{tapsetdir}/$targetName
  done
%endif

  # Remove empty cacerts database
  rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/security/cacerts
  # Install cacerts symlink needed by some apps which hardcode the path
  pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/security
      ln -sf /etc/pki/java/cacerts .
  popd

  # Install versioned symlinks
  pushd $RPM_BUILD_ROOT%{_jvmdir}
    ln -sf %{jredir -- $suffix} %{jrelnk -- $suffix}
  popd

  # Remove javaws man page
  rm -f man/man1/javaws*

  # Install man pages
  install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
  for manpage in man/man1/*
  do
    # Convert man pages to UTF8 encoding
    iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
    mv -f $manpage.tmp $manpage
    install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/$(basename \
      $manpage .1)-%{uniquesuffix -- $suffix}.1
  done

  # Install demos and samples.
  cp -a demo $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
  mkdir -p sample/rmi
  if [ ! -e sample/rmi/java-rmi.cgi ] ; then 
    # hack to allow --short-circuit on install
    mv bin/java-rmi.cgi sample/rmi
  fi
  cp -a sample $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}

popd

if ! echo $suffix | grep -q "debug" ; then
  # Install Javadoc documentation
  install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
  cp -a %{buildoutputdir -- $suffix}/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}
  built_doc_archive=`echo "jdk-%{javaver}_%{updatever}%{milestone_version}$suffix-%{buildver}-docs.zip" | sed  s/slowdebug/debug/`
  cp -a %{buildoutputdir -- $suffix}/bundles/$built_doc_archive  $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip
fi

# Install icons and menu entries
for s in 16 24 32 48 ; do
  install -D -p -m 644 \
    %{top_level_dir_name}/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}-%{origin}.png
done

# Install desktop files
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
for e in jconsole$suffix policytool$suffix ; do
    desktop-file-install --vendor=%{uniquesuffix -- $suffix} --mode=644 \
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications $e.desktop
done

# Install /etc/.java/.systemPrefs/ directory
# See https://bugzilla.redhat.com/show_bug.cgi?id=741821
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs

# FIXME: remove SONAME entries from demo DSOs. See
# https://bugzilla.redhat.com/show_bug.cgi?id=436497

# Find non-documentation demo files.
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/demo \
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/sample \
  -type f -o -type l | sort \
  | grep -v README \
  | sed 's|'$RPM_BUILD_ROOT'||' \
  >> %{name}-demo.files"$suffix"
# Find documentation demo files.
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/demo \
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/sample \
  -type f -o -type l | sort \
  | grep README \
  | sed 's|'$RPM_BUILD_ROOT'||' \
  | sed 's|^|%doc |' \
  >> %{name}-demo.files"$suffix"

# Create links which leads to separately installed java-atk-bridge and allow configuration
# links points to java-atk-wrapper - an dependence
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}
    ln -s %{_libdir}/java-atk-wrapper/libatk-wrapper.so.0 libatk-wrapper.so
  popd
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/ext
     ln -s %{_libdir}/java-atk-wrapper/java-atk-wrapper.jar  java-atk-wrapper.jar
  popd
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/
    echo "#Config file to  enable java-atk-wrapper" > accessibility.properties
    echo "" >> accessibility.properties
    echo "assistive_technologies=org.GNOME.Accessibility.AtkWrapper" >> accessibility.properties
    echo "" >> accessibility.properties
  popd

# intentionally after all else, fx links  with redirections on its own
%if %{with_openjfx_binding}
  FXSDK_FILES=%{name}-openjfx-devel.files"$suffix"
  FXJRE_FILES=%{name}-openjfx.files"$suffix"
  echo -n "" > $FXJRE_FILES
  echo -n "" > $FXSDK_FILES
  for file in  %{jfx_jre_libs} ; do
    srcfile=%{jfx_jre_libs_dir}/$file
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXJRE_FILES
  done
  for file in  %{jfx_jre_native} ; do
    srcfile=%{jfx_jre_native_dir}/$file
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXJRE_FILES
  done
  for file in  %{jfx_jre_exts} ; do
    srcfile=%{jfx_jre_exts_dir}/$file
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/ext/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXJRE_FILES
  done
  for file in  %{jfx_sdk_libs} ; do
    srcfile=%{jfx_sdk_libs_dir}/$file
    targetfile=%{_jvmdir}/%{sdkdir -- $suffix}/lib/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXSDK_FILES
  done
  for file in  %{jfx_sdk_bins} ; do
    srcfile=%{jfx_sdk_bins_dir}/$file
    targetfile=%{_jvmdir}/%{sdkdir -- $suffix}/bin/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXSDK_FILES
  done
%endif

bash %{SOURCE20} $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix} %{javaver}
# https://bugzilla.redhat.com/show_bug.cgi?id=1183793
touch -t 201401010000 $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/security/java.security

# moving config files to /etc
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib/security/policy/unlimited/
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib/security/policy/limited/
for file in lib/security/cacerts lib/security/policy/unlimited/US_export_policy.jar lib/security/policy/unlimited/local_policy.jar lib/security/policy/limited/US_export_policy.jar lib/security/policy/limited/local_policy.jar lib/security/java.policy lib/security/java.security lib/security/blacklisted.certs lib/logging.properties lib/calendars.properties lib/security/nss.cfg lib/net.properties ; do
  mv      $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/$file   $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/$file
  ln -sf  %{etcjavadir -- $suffix}/$file                          $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/$file
done

# stabilize permissions
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "*.so" -exec chmod 755 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -type d -exec chmod 755 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "ASSEMBLY_EXCEPTION" -exec chmod 644 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "LICENSE" -exec chmod 644 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "THIRD_PARTY_README" -exec chmod 644 {} \; ; 

# end, dual install
done

%if %{include_normal_build}
# intentionally only for non-debug
%pretrans headless -p <lua>
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1290388 for pretrans over pre
-- if copy-jdk-configs is in transaction, it installs in pretrans to temp
-- if copy_jdk_configs is in temp, then it means that copy-jdk-configs is in transaction  and so is
-- preferred over one in %%{_libexecdir}. If it is not in transaction, then depends
-- whether copy-jdk-configs is installed or not. If so, then configs are copied
-- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all
local posix = require "posix"

if (os.getenv("debug") == "true") then
  debug = true;
  print("cjc: in spec debug is on")
else 
  debug = false;
end

SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua"
SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua"

local stat1 = posix.stat(SOURCE1, "type");
local stat2 = posix.stat(SOURCE2, "type");

  if (stat1 ~= nil) then
  if (debug) then
    print(SOURCE1 .." exists - copy-jdk-configs in transaction, using this one.")
  end;
  package.path = package.path .. ";" .. SOURCE1
else
  if (stat2 ~= nil) then
  if (debug) then
    print(SOURCE2 .." exists - copy-jdk-configs already installed and NOT in transaction. Using.")
  end;
  package.path = package.path .. ";" .. SOURCE2
  else
    if (debug) then
      print(SOURCE1 .." does NOT exists")
      print(SOURCE2 .." does NOT exists")
      print("No config files will be copied")
    end
  return
  end
end
arg = nil ;  -- it is better to null the arg up, no meter if they exists or not, and use cjc as module in unified way, instead of relaying on "main" method during require "copy_jdk_configs.lua"
cjc = require "copy_jdk_configs.lua"
args = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"}
cjc.mainProgram(args)

%post
%{post_script %{nil}}

%post headless
%{post_headless %{nil}}

%postun
%{postun_script %{nil}}

%postun headless
%{postun_headless %{nil}}

%posttrans
%{posttrans_script %{nil}}

%posttrans headless
%{alternatives_java_install %{nil}}

%post devel
%{post_devel %{nil}}

%postun devel
%{postun_devel %{nil}}

%posttrans  devel
%{posttrans_devel %{nil}}

%posttrans javadoc
%{alternatives_javadoc_install %{nil}}

%postun javadoc
%{postun_javadoc %{nil}}

%posttrans javadoc-zip
%{alternatives_javadoczip_install %{nil}}

%postun javadoc-zip
%{postun_javadoc_zip %{nil}}
%endif

%if %{include_debug_build}
%post slowdebug
%{post_script -- %{debug_suffix_unquoted}}

%post headless-slowdebug
%{post_headless -- %{debug_suffix_unquoted}}

%posttrans headless-slowdebug
%{alternatives_java_install -- %{debug_suffix_unquoted}}

%postun slowdebug
%{postun_script -- %{debug_suffix_unquoted}}

%postun headless-slowdebug
%{postun_headless -- %{debug_suffix_unquoted}}

%posttrans slowdebug
%{posttrans_script -- %{debug_suffix_unquoted}}

%post devel-slowdebug
%{post_devel -- %{debug_suffix_unquoted}}

%postun devel-slowdebug
%{postun_devel -- %{debug_suffix_unquoted}}

%posttrans  devel-slowdebug
%{posttrans_devel -- %{debug_suffix_unquoted}}

%endif

%if %{include_normal_build}
%files
# main package builds always
%{files_jre %{nil}}
%else
%files
# placeholder
%endif


%if %{include_normal_build}
%files headless
# important note, see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
# all config/noreplace files (and more) have to be declared in pretrans. See pretrans
%{files_jre_headless %{nil}}

%files devel
%{files_devel %{nil}}

%files demo -f %{name}-demo.files
%{files_demo %{nil}}

%files src
%{files_src %{nil}}

%files javadoc
%{files_javadoc %{nil}}

# this puts huge file to /usr/share
# unluckily ti is really a documentation file
# and unluckily it really is architecture-dependent, as eg. aot and grail are now x86_64 only
# same for debug variant
%files javadoc-zip
%{files_javadoc_zip %{nil}}

%files accessibility
%{files_accessibility %{nil}}

%if %{with_openjfx_binding}
%files openjfx -f %{name}-openjfx.files

%files openjfx-devel -f %{name}-openjfx-devel.files
%endif
%endif

%if %{include_debug_build}
%files slowdebug
%{files_jre -- %{debug_suffix_unquoted}}

%files headless-slowdebug
%{files_jre_headless -- %{debug_suffix_unquoted}}

%files devel-slowdebug
%{files_devel -- %{debug_suffix_unquoted}}

%files demo-slowdebug -f %{name}-demo.files-slowdebug
%{files_demo -- %{debug_suffix_unquoted}}

%files src-slowdebug
%{files_src -- %{debug_suffix_unquoted}}

%files accessibility-slowdebug
%{files_accessibility -- %{debug_suffix_unquoted}}

%if %{with_openjfx_binding}
%files openjfx-slowdebug -f %{name}-openjfx.files-slowdebug

%files openjfx-devel-slowdebug -f %{name}-openjfx-devel.files-slowdebug
%endif
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13394 |21mr|java-1.8.0-openjdk-1.8.0.252.b02-0.5.ea
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# RPM conditionals so as to be able to dynamically produce
# slowdebug/release builds. See:
# http://rpm.org/user_doc/conditional_builds.html
#
# Examples:
#
# Produce release *and* slowdebug builds on x86_64 (default):
# $ rpmbuild -ba java-1.8.0-openjdk.spec
#
# Produce only release builds (no slowdebug builds) on x86_64:
# $ rpmbuild -ba java-1.8.0-openjdk.spec --without slowdebug
#
# Only produce a release build on x86_64:
# $ fedpkg mockbuild --without slowdebug
#
# Only produce a debug build on x86_64:
# $ fedpkg local --without release
#
# Enable slowdebug builds by default on relevant arches.
%bcond_without slowdebug
# Enable release builds by default on relevant arches.
%bcond_without release

#in rosa linux there is no tzdb.dat file
#in the timezone package we will 
#use the standard one from java (temporarily)
%bcond_with timezonejava

# The -g flag says to use strip -g instead of full strip on DSOs or EXEs.
# This fixes detailed NMT and other tools which need minimal debug info.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=1520879
%global _find_debuginfo_opts -g

# note: parametrized macros are order-sensitive (unlike not-parametrized) even with normal macros
# also necessary when passing it as parameter to other macros. If not macro, then it is considered a switch
# see the difference between global and define:
# See https://github.com/rpm-software-management/rpm/issues/127 to comments at  "pmatilai commented on Aug 18, 2017"
# (initiated in https://bugzilla.redhat.com/show_bug.cgi?id=1482192)
%global debug_suffix_unquoted -slowdebug
# quoted one for shell operations
%global debug_suffix "%{debug_suffix_unquoted}"
%global normal_suffix ""

# if you want only debug build but providing java build only normal build but set normalbuild_parameter
%global debug_warning This package has full debug on. Install only in need and remove asap.
%global debug_on with full debug on
%global for_debug for packages with debug on

%if %{with release}
%global include_normal_build 1
%else
%global include_normal_build 0
%endif

%if %{include_normal_build}
%global build_loop1 %{normal_suffix}
%else
%global build_loop1 %{nil}
%endif

%global aarch64         aarch64 arm64 armv8
# we need to distinguish between big and little endian PPC64
%global ppc64le         ppc64le
%global ppc64be         ppc64 ppc64p7
%global multilib_arches %{power64} sparc64 x86_64
%global jit_arches      %{ix86} x86_64 sparcv9 sparc64 %{aarch64} %{power64}
%global sa_arches       %{ix86} x86_64 sparcv9 sparc64 %{aarch64}

# By default, we build a debug build during main build on JIT architectures
%if %{with slowdebug}
%ifarch %{jit_arches}
%ifnarch %{arm}
%global include_debug_build 1
%else
%global include_debug_build 0
%endif
%else
%global include_debug_build 0
%endif
%else
%global include_debug_build 0
%endif

%if %{include_debug_build}
%global build_loop2 %{debug_suffix}
%else
%global build_loop2 %{nil}
%endif

# if you disable both builds, then the build fails
%global build_loop  %{build_loop1} %{build_loop2}
# note: that order: normal_suffix debug_suffix, in case of both enabled
# is expected in one single case at the end of the build
%global rev_build_loop  %{build_loop2} %{build_loop1}

%ifarch %{jit_arches}
# TODO: reenable it
%global bootstrap_build 0
%else
%global bootstrap_build 0
%endif

%global bootstrap_targets images
%global release_targets images zip-docs
# No docs nor bootcycle for debug builds
%global debug_targets images

# Filter out flags from the optflags macro that cause problems with the OpenJDK build
# We filter out -Wall which will otherwise cause HotSpot to produce hundreds of thousands of warnings (100+mb logs)
# We filter out -O flags so that the optimization of HotSpot is not lowered from O3 to O2
# We replace it with -Wformat (required by -Werror=format-security) and -Wno-cpp to avoid FORTIFY_SOURCE warnings
# We filter out -fexceptions as the HotSpot build explicitly does -fno-exceptions and it's otherwise the default for C++
%global ourflags %(echo %optflags | sed -e 's|-Wall|-Wformat -Wno-cpp|' | sed -r -e 's|-O[0-9]*||')
%global ourcppflags %(echo %ourflags | sed -e 's|-fexceptions||')

# From Fedora
#%%global ourldflags %{__global_ldflags}
%global ourldflags -Wl,-z,relro -Wl,--as-needed -Wl,-z,now

# With disabled nss is NSS deactivated, so NSS_LIBDIR can contain the wrong path
# the initialization must be here. Later the pkg-config have buggy behavior
# looks like openjdk RPM specific bug
# Always set this so the nss.cfg file is not broken
%global NSS_LIBDIR %(pkg-config --variable=libdir nss)
%global NSS_LIBS %(pkg-config --libs nss)
%global NSS_CFLAGS %(pkg-config --cflags nss-softokn)
# see https://bugzilla.redhat.com/show_bug.cgi?id=1332456
%global NSSSOFTOKN_BUILDTIME_NUMBER %(pkg-config --modversion nss-softokn || : )
%global NSS_BUILDTIME_NUMBER %(pkg-config --modversion nss || : )
# this is workaround for processing of requires during srpm creation
%global NSSSOFTOKN_BUILDTIME_VERSION %(if [ "x%{NSSSOFTOKN_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSSSOFTOKN_BUILDTIME_NUMBER}" ;fi)
%global NSS_BUILDTIME_VERSION %(if [ "x%{NSS_BUILDTIME_NUMBER}" == "x" ] ; then echo "" ;else echo ">= %{NSS_BUILDTIME_NUMBER}" ;fi)


# Fix for https://bugzilla.redhat.com/show_bug.cgi?id=1111349.
# See also https://bugzilla.redhat.com/show_bug.cgi?id=1590796
# as to why some libraries *cannot* be excluded. In particular,
# these are:
# libjsig.so, libjava.so, libjawt.so, libjvm.so and libverify.so
%global _privatelibs libatk-wrapper[.]so.*|libattach[.]so.*|libawt_headless[.]so.*|libawt[.]so.*|libawt_xawt[.]so.*|libdt_socket[.]so.*|libfontmanager[.]so.*|libhprof[.]so.*|libinstrument[.]so.*|libj2gss[.]so.*|libj2pcsc[.]so.*|libj2pkcs11[.]so.*|libjaas_unix[.]so.*|libjava_crw_demo[.]so.*|libjavajpeg[.]so.*|libjdwp[.]so.*|libjli[.]so.*|libjsdt[.]so.*|libjsoundalsa[.]so.*|libjsound[.]so.*|liblcms[.]so.*|libmanagement[.]so.*|libmlib_image[.]so.*|libnet[.]so.*|libnio[.]so.*|libnpt[.]so.*|libsaproc[.]so.*|libsctp[.]so.*|libsplashscreen[.]so.*|libsunec[.]so.*|libunpack[.]so.*|libzip[.]so.*|lib[.]so\\(SUNWprivate_.*

%global __provides_exclude ^(%{_privatelibs})$
%global __requires_exclude ^(%{_privatelibs})$

# In some cases, the arch used by the JDK does
# not match _arch.
# Also, in some cases, the machine name used by SystemTap
# does not match that given by _target_cpu
%ifarch x86_64
%global archinstall amd64
%global stapinstall x86_64
%endif
%ifarch ppc
%global archinstall ppc
%global stapinstall powerpc
%endif
%ifarch %{ppc64be}
%global archinstall ppc64
%global stapinstall powerpc
%endif
%ifarch %{ppc64le}
%global archinstall ppc64le
%global stapinstall powerpc
%endif
%ifarch %{ix86}
%global archinstall i386
%global stapinstall i386
%endif
%ifarch ia64
%global archinstall ia64
%global stapinstall ia64
%endif
%ifarch s390
%global archinstall s390
%global stapinstall s390
%endif
%ifarch s390x
%global archinstall s390x
%global stapinstall s390
%endif
%ifarch %{arm}
%global archinstall arm
%global stapinstall arm
%endif
%ifarch %{aarch64}
%global archinstall aarch64
%global stapinstall arm64
%endif
%ifarch %{riscv64}
%global archinstall riscv64
%global stapinstall riscv64
%endif
# 32 bit sparc, optimized for v9
%ifarch sparcv9
%global archinstall sparc
%global stapinstall %{_target_cpu}
%endif
# 64 bit sparc
%ifarch sparc64
%global archinstall sparcv9
%global stapinstall %{_target_cpu}
%endif
# Need to support noarch for srpm build
%ifarch noarch
%global archinstall %{nil}
%global stapinstall %{nil}
%endif

%ifarch %{jit_arches}
%global with_systemtap 1
%else
%global with_systemtap 0
%endif

# New Version-String scheme-style defines
%global majorver 8

%ifarch %{x86_64} %{arm64}
%global with_openjfx_binding 1
%global openjfx_path %{_jvmdir}/openjfx8
# links src directories
%global jfx_jre_libs_dir %{openjfx_path}/rt/lib
%global jfx_jre_native_dir %{jfx_jre_libs_dir}/%{archinstall}
%global jfx_sdk_libs_dir %{openjfx_path}/lib
%global jfx_sdk_bins_dir %{openjfx_path}/bin
%global jfx_jre_exts_dir %{jfx_jre_libs_dir}/ext
# links src files
# maybe depend on jfx and generate the lists in build time? Yes, bad idea to inlcude cyclic depndenci, but this list is aweful
%global jfx_jre_libs jfxswt.jar javafx.properties
%global jfx_jre_native libprism_es2.so libprism_common.so libjavafx_font.so libdecora_sse.so libjavafx_font_freetype.so libprism_sw.so libjavafx_font_pango.so libglass.so libjavafx_iio.so libglassgtk2.so libglassgtk3.so
%global jfx_sdk_libs javafx-mx.jar packager.jar ant-javafx.jar
%global jfx_sdk_bins javafxpackager javapackager
%global jfx_jre_exts jfxrt.jar
%else
%global with_openjfx_binding 0
%endif

# Standard JPackage naming and versioning defines.
%global origin          openjdk
%global origin_nice     OpenJDK
%global top_level_dir_name   %{origin}
# note, following three variables are sedded from update_sources if used correctly. Hardcode them rather there.
%global shenandoah_project	aarch64-port
%global shenandoah_repo		jdk8u-shenandoah
%global shenandoah_revision    	aarch64-shenandoah-jdk8u252-b02
# Define old aarch64/jdk8u tree variables for compatibility
%global project         %{shenandoah_project}
%global repo            %{shenandoah_repo}
%global revision        %{shenandoah_revision}
# Define IcedTea version used for SystemTap tapsets and desktop files
%global icedteaver      3.15.0

# e.g. aarch64-shenandoah-jdk8u212-b04-shenandoah-merge-2019-04-30 -> aarch64-shenandoah-jdk8u212-b04
%global version_tag     %(VERSION=%{revision}; echo ${VERSION%%-shenandoah-merge*})
# eg # jdk8u60-b27 -> jdk8u60 or # aarch64-jdk8u60-b27 -> aarch64-jdk8u60  (dont forget spec escape % by %%)
%global whole_update    %(VERSION=%{version_tag}; echo ${VERSION%%-*})
# eg  jdk8u60 -> 60 or aarch64-jdk8u60 -> 60
%global updatever       %(VERSION=%{whole_update}; echo ${VERSION##*u})
# eg jdk8u60-b27 -> b27
%global buildver        %(VERSION=%{version_tag}; echo ${VERSION##*-})
%global rpmrelease      5
# Define milestone (EA for pre-releases, GA ("fcs") for releases)
# Release will be (where N is usually a number starting at 1):
# - 0.N%%{?extraver}%%{?dist} for EA releases,
# - N%%{?extraver}{?dist} for GA releases
%global is_ga           0
%if %{is_ga}
%global milestone          fcs
%global milestone_version  %{nil}
%global extraver %{nil}
%global eaprefix %{nil}
%else
%global milestone          ea
%global milestone_version  "-ea"
%global extraver .%{milestone}
%global eaprefix 0.
%endif
# priority must be 7 digits in total. The expression is workarounding tip
%global priority        %(TIP=1800%{updatever};  echo ${TIP/tip/999})

%global javaver         1.%{majorver}.0

# parametrized macros are order-sensitive
%global compatiblename  %{name}
%global fullversion     %{compatiblename}-%{version}-%{release}
# images stub
%global jdkimage       j2sdk-image
# output dir stub
%define buildoutputdir() %{expand:build/jdk8.build%{?1}}
# we can copy the javadoc to not arched dir, or make it not noarch
%define uniquejavadocdir()    %{expand:%{fullversion}%{?1}}
# main id and dir of this jdk
%define uniquesuffix()        %{expand:%{fullversion}.%{_arch}%{?1}}

%global etcjavasubdir     %{_sysconfdir}/java/java-%{javaver}-%{origin}
%define etcjavadir()      %{expand:%{etcjavasubdir}/%{uniquesuffix -- %{?1}}}
# Standard JPackage directories and symbolic links.
%define sdkdir()        %{expand:%{uniquesuffix -- %{?1}}}
%define jrelnk()        %{expand:jre-%{javaver}-%{origin}-%{version}-%{release}.%{_arch}%{?1}}

%define jredir()        %{expand:%{sdkdir -- %{?1}}/jre}
%define sdkbindir()     %{expand:%{_jvmdir}/%{sdkdir -- %{?1}}/bin}
%define jrebindir()     %{expand:%{_jvmdir}/%{jredir -- %{?1}}/bin}

%global rpm_state_dir %{_localstatedir}/lib/rpm-state/

%if %{with_systemtap}
# Where to install systemtap tapset (links)
# We would like these to be in a package specific sub-dir,
# but currently systemtap doesn't support that, so we have to
# use the root tapset dir for now. To distinguish between 64
# and 32 bit architectures we place the tapsets under the arch
# specific dir (note that systemtap will only pickup the tapset
# for the primary arch for now). Systemtap uses the machine name
# aka target_cpu as architecture specific directory name.
%global tapsetroot /usr/share/systemtap
%global tapsetdirttapset %{tapsetroot}/tapset/
%global tapsetdir %{tapsetdirttapset}/%{stapinstall}
%endif

# not-duplicated scriptlets for normal/debug packages
%global update_desktop_icons /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :


%define post_script() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
exit 0
}


%define alternatives_java_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

ext=.gz
alternatives \\
  --install %{_bindir}/java java %{jrebindir -- %{?1}}/java $PRIORITY  --family %{name}.%{_arch} \\
  --slave %{_jvmdir}/jre jre %{_jvmdir}/%{jredir -- %{?1}} \\
  --slave %{_bindir}/jjs jjs %{jrebindir -- %{?1}}/jjs \\
  --slave %{_bindir}/keytool keytool %{jrebindir -- %{?1}}/keytool \\
  --slave %{_bindir}/orbd orbd %{jrebindir -- %{?1}}/orbd \\
  --slave %{_bindir}/pack200 pack200 %{jrebindir -- %{?1}}/pack200 \\
  --slave %{_bindir}/rmid rmid %{jrebindir -- %{?1}}/rmid \\
  --slave %{_bindir}/rmiregistry rmiregistry %{jrebindir -- %{?1}}/rmiregistry \\
  --slave %{_bindir}/servertool servertool %{jrebindir -- %{?1}}/servertool \\
  --slave %{_bindir}/tnameserv tnameserv %{jrebindir -- %{?1}}/tnameserv \\
  --slave %{_bindir}/policytool policytool %{jrebindir -- %{?1}}/policytool \\
  --slave %{_bindir}/unpack200 unpack200 %{jrebindir -- %{?1}}/unpack200 \\
  --slave %{_mandir}/man1/java.1$ext java.1$ext \\
  %{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jjs.1$ext jjs.1$ext \\
  %{_mandir}/man1/jjs-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/keytool.1$ext keytool.1$ext \\
  %{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/orbd.1$ext orbd.1$ext \\
  %{_mandir}/man1/orbd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/pack200.1$ext pack200.1$ext \\
  %{_mandir}/man1/pack200-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmid.1$ext rmid.1$ext \\
  %{_mandir}/man1/rmid-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmiregistry.1$ext rmiregistry.1$ext \\
  %{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/servertool.1$ext servertool.1$ext \\
  %{_mandir}/man1/servertool-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/tnameserv.1$ext tnameserv.1$ext \\
  %{_mandir}/man1/tnameserv-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/policytool.1$ext policytool.1$ext \\
  %{_mandir}/man1/policytool-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/unpack200.1$ext unpack200.1$ext \\
  %{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1$ext

for X in %{origin} %{javaver} ; do
  alternatives --install %{_jvmdir}/jre-"$X" jre_"$X" %{_jvmdir}/%{jredir -- %{?1}} $PRIORITY --family %{name}.%{_arch}
done

alternatives --install %{_jvmdir}/jre-%{javaver}-%{origin} jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
}

%define post_headless() %{expand:
%ifarch %{jit_arches}
# MetaspaceShared::generate_vtable_methods not implemented for PPC JIT
%ifnarch %{power64}
# see https://bugzilla.redhat.com/show_bug.cgi?id=513605
%{jrebindir -- %{?1}}/java -Xshare:dump >/dev/null 2>/dev/null
%endif
%endif

update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

# see pretrans where this file is declared
# also see that pretrans is only for non-debug
if [ ! "%{?1}" == %{debug_suffix} ]; then
  if [ -f %{_libexecdir}/copy_jdk_configs_fixFiles.sh ] ; then
    sh  %{_libexecdir}/copy_jdk_configs_fixFiles.sh %{rpm_state_dir}/%{name}.%{_arch}  %{_jvmdir}/%{sdkdir -- %{?1}}
  fi
fi

exit 0
}

%define postun_script() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    %{update_desktop_icons}
fi
exit 0
}


%define postun_headless() %{expand:
  alternatives --remove java %{jrebindir -- %{?1}}/java
  alternatives --remove jre_%{origin} %{_jvmdir}/%{jredir -- %{?1}}
  alternatives --remove jre_%{javaver} %{_jvmdir}/%{jredir -- %{?1}}
  alternatives --remove jre_%{javaver}_%{origin} %{_jvmdir}/%{jrelnk -- %{?1}}
}

%define posttrans_script() %{expand:
%{update_desktop_icons}
}


%define alternatives_javac_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

ext=%{_extension}
alternatives \\
  --install %{_bindir}/javac javac %{sdkbindir -- %{?1}}/javac $PRIORITY  --family %{name}.%{_arch} \\
  --slave %{_jvmdir}/java java_sdk %{_jvmdir}/%{sdkdir -- %{?1}} \\
  --slave %{_bindir}/appletviewer appletviewer %{sdkbindir -- %{?1}}/appletviewer \\
  --slave %{_bindir}/clhsdb clhsdb %{sdkbindir -- %{?1}}/clhsdb \\
  --slave %{_bindir}/extcheck extcheck %{sdkbindir -- %{?1}}/extcheck \\
  --slave %{_bindir}/hsdb hsdb %{sdkbindir -- %{?1}}/hsdb \\
  --slave %{_bindir}/idlj idlj %{sdkbindir -- %{?1}}/idlj \\
  --slave %{_bindir}/jar jar %{sdkbindir -- %{?1}}/jar \\
  --slave %{_bindir}/jarsigner jarsigner %{sdkbindir -- %{?1}}/jarsigner \\
  --slave %{_bindir}/javadoc javadoc %{sdkbindir -- %{?1}}/javadoc \\
  --slave %{_bindir}/javah javah %{sdkbindir -- %{?1}}/javah \\
  --slave %{_bindir}/javap javap %{sdkbindir -- %{?1}}/javap \\
  --slave %{_bindir}/jcmd jcmd %{sdkbindir -- %{?1}}/jcmd \\
  --slave %{_bindir}/jconsole jconsole %{sdkbindir -- %{?1}}/jconsole \\
  --slave %{_bindir}/jdb jdb %{sdkbindir -- %{?1}}/jdb \\
  --slave %{_bindir}/jdeps jdeps %{sdkbindir -- %{?1}}/jdeps \\
  --slave %{_bindir}/jhat jhat %{sdkbindir -- %{?1}}/jhat \\
  --slave %{_bindir}/jinfo jinfo %{sdkbindir -- %{?1}}/jinfo \\
  --slave %{_bindir}/jmap jmap %{sdkbindir -- %{?1}}/jmap \\
  --slave %{_bindir}/jps jps %{sdkbindir -- %{?1}}/jps \\
  --slave %{_bindir}/jrunscript jrunscript %{sdkbindir -- %{?1}}/jrunscript \\
  --slave %{_bindir}/jsadebugd jsadebugd %{sdkbindir -- %{?1}}/jsadebugd \\
  --slave %{_bindir}/jstack jstack %{sdkbindir -- %{?1}}/jstack \\
  --slave %{_bindir}/jstat jstat %{sdkbindir -- %{?1}}/jstat \\
  --slave %{_bindir}/jstatd jstatd %{sdkbindir -- %{?1}}/jstatd \\
  --slave %{_bindir}/native2ascii native2ascii %{sdkbindir -- %{?1}}/native2ascii \\
  --slave %{_bindir}/rmic rmic %{sdkbindir -- %{?1}}/rmic \\
  --slave %{_bindir}/schemagen schemagen %{sdkbindir -- %{?1}}/schemagen \\
  --slave %{_bindir}/serialver serialver %{sdkbindir -- %{?1}}/serialver \\
  --slave %{_bindir}/wsgen wsgen %{sdkbindir -- %{?1}}/wsgen \\
  --slave %{_bindir}/wsimport wsimport %{sdkbindir -- %{?1}}/wsimport \\
  --slave %{_bindir}/xjc xjc %{sdkbindir -- %{?1}}/xjc \\
  --slave %{_mandir}/man1/appletviewer.1$ext appletviewer.1$ext \\
  %{_mandir}/man1/appletviewer-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/extcheck.1$ext extcheck.1$ext \\
  %{_mandir}/man1/extcheck-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/idlj.1$ext idlj.1$ext \\
  %{_mandir}/man1/idlj-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jar.1$ext jar.1$ext \\
  %{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jarsigner.1$ext jarsigner.1$ext \\
  %{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javac.1$ext javac.1$ext \\
  %{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javadoc.1$ext javadoc.1$ext \\
  %{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javah.1$ext javah.1$ext \\
  %{_mandir}/man1/javah-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/javap.1$ext javap.1$ext \\
  %{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jcmd.1$ext jcmd.1$ext \\
  %{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jconsole.1$ext jconsole.1$ext \\
  %{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jdb.1$ext jdb.1$ext \\
  %{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jdeps.1$ext jdeps.1$ext \\
  %{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jhat.1$ext jhat.1$ext \\
  %{_mandir}/man1/jhat-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jinfo.1$ext jinfo.1$ext \\
  %{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jmap.1$ext jmap.1$ext \\
  %{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jps.1$ext jps.1$ext \\
  %{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jrunscript.1$ext jrunscript.1$ext \\
  %{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jsadebugd.1$ext jsadebugd.1$ext \\
  %{_mandir}/man1/jsadebugd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstack.1$ext jstack.1$ext \\
  %{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstat.1$ext jstat.1$ext \\
  %{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/jstatd.1$ext jstatd.1$ext \\
  %{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/native2ascii.1$ext native2ascii.1$ext \\
  %{_mandir}/man1/native2ascii-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/rmic.1$ext rmic.1$ext \\
  %{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/schemagen.1$ext schemagen.1$ext \\
  %{_mandir}/man1/schemagen-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/serialver.1$ext serialver.1$ext \\
  %{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/wsgen.1$ext wsgen.1$ext \\
  %{_mandir}/man1/wsgen-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/wsimport.1$ext wsimport.1$ext \\
  %{_mandir}/man1/wsimport-%{uniquesuffix -- %{?1}}.1$ext \\
  --slave %{_mandir}/man1/xjc.1$ext xjc.1$ext \\
  %{_mandir}/man1/xjc-%{uniquesuffix -- %{?1}}.1$ext

for X in %{origin} %{javaver} ; do
  alternatives \\
    --install %{_jvmdir}/java-"$X" java_sdk_"$X" %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
done

update-alternatives --install %{_jvmdir}/java-%{javaver}-%{origin} java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}} $PRIORITY  --family %{name}.%{_arch}
}

%define post_devel() %{expand:
update-desktop-database %{_datadir}/applications &> /dev/null || :
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :

exit 0
}

%define postun_devel() %{expand:
  alternatives --remove javac %{sdkbindir -- %{?1}}/javac
  alternatives --remove java_sdk_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}
  alternatives --remove java_sdk_%{javaver} %{_jvmdir}/%{sdkdir -- %{?1}}
  alternatives --remove java_sdk_%{javaver}_%{origin} %{_jvmdir}/%{sdkdir -- %{?1}}

update-desktop-database %{_datadir}/applications &> /dev/null || :

if [ $1 -eq 0 ] ; then
    /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
    %{update_desktop_icons}
fi
exit 0
}

%define posttrans_devel() %{expand:
%{alternatives_javac_install --  %{?1}}
%{update_desktop_icons}
}

%define alternatives_javadoc_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

alternatives \\
  --install %{_javadocdir}/java javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api \\
  $PRIORITY  --family %{name}
exit 0
}

%define postun_javadoc() %{expand:
  alternatives --remove javadocdir %{_javadocdir}/%{uniquejavadocdir -- %{?1}}/api
exit 0
}

%define alternatives_javadoczip_install() %{expand:
PRIORITY=%{priority}
if [ "%{?1}" == %{debug_suffix} ]; then
  let PRIORITY=PRIORITY-1
fi

alternatives \\
  --install %{_javadocdir}/java-zip javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip \\
  $PRIORITY  --family %{name}
exit 0
}

%define postun_javadoc_zip() %{expand:
  alternatives --remove javadoczip %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
exit 0
}

%define files_jre() %{expand:
%{_datadir}/icons/hicolor/*x*/apps/java-%{javaver}-%{origin}.png
%{_datadir}/applications/*policytool%{?1}.desktop
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libjsoundalsa.so
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libsplashscreen.so
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libawt_xawt.so
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/lib/%{archinstall}/libjawt.so
%{_jvmdir}/%{sdkdir -- %{?1}}/jre/bin/policytool
}


%define files_jre_headless() %{expand:
%defattr(-,root,root,-)
%dir %{_sysconfdir}/.java/.systemPrefs
%dir %{_sysconfdir}/.java
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/ASSEMBLY_EXCEPTION
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/LICENSE
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/THIRD_PARTY_README
%dir %{_jvmdir}/%{sdkdir -- %{?1}}
%{_jvmdir}/%{jrelnk -- %{?1}}
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/cacerts
%dir %{_jvmdir}/%{jredir -- %{?1}}
%dir %{_jvmdir}/%{jredir -- %{?1}}/bin
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib
%{_jvmdir}/%{jredir -- %{?1}}/bin/java
%{_jvmdir}/%{jredir -- %{?1}}/bin/jjs
%{_jvmdir}/%{jredir -- %{?1}}/bin/keytool
%{_jvmdir}/%{jredir -- %{?1}}/bin/orbd
%{_jvmdir}/%{jredir -- %{?1}}/bin/pack200
%{_jvmdir}/%{jredir -- %{?1}}/bin/rmid
%{_jvmdir}/%{jredir -- %{?1}}/bin/rmiregistry
%{_jvmdir}/%{jredir -- %{?1}}/bin/servertool
%{_jvmdir}/%{jredir -- %{?1}}/bin/tnameserv
%{_jvmdir}/%{jredir -- %{?1}}/bin/unpack200
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/unlimited/
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/limited/
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/policy/unlimited/US_export_policy.jar
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/policy/unlimited/local_policy.jar
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/policy/limited/US_export_policy.jar
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/policy/limited/local_policy.jar
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/java.policy
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/java.security
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/blacklisted.certs
%config(noreplace) %{etcjavadir -- %{?1}}/lib/logging.properties
%config(noreplace) %{etcjavadir -- %{?1}}/lib/calendars.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/unlimited/US_export_policy.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/unlimited/local_policy.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/limited/US_export_policy.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/policy/limited/local_policy.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/java.policy
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/java.security
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/blacklisted.certs
%{_jvmdir}/%{jredir -- %{?1}}/lib/logging.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/calendars.properties
%{_mandir}/man1/java-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jjs-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/keytool-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/orbd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/pack200-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmid-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmiregistry-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/servertool-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/tnameserv-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/unpack200-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/policytool-%{uniquesuffix -- %{?1}}.1*
%{_jvmdir}/%{jredir -- %{?1}}/lib/security/nss.cfg
%config(noreplace) %{etcjavadir -- %{?1}}/lib/security/nss.cfg
%ifarch %{jit_arches}
%ifnarch %{power64}
%attr(444, root, root) %ghost %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/server/classes.jsa
%attr(444, root, root) %ghost %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/client/classes.jsa
%endif
%endif
%dir %{etcjavasubdir}
%dir %{etcjavadir -- %{?1}}
%dir %{etcjavadir -- %{?1}}/lib
%dir %{etcjavadir -- %{?1}}/lib/security
%{etcjavadir -- %{?1}}/lib/security/cacerts
%dir %{etcjavadir -- %{?1}}/lib/security/policy
%dir %{etcjavadir -- %{?1}}/lib/security/policy/limited
%dir %{etcjavadir -- %{?1}}/lib/security/policy/unlimited
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/server/
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/client/
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jli
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jli/libjli.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/jvm.cfg
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libattach.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libawt.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libawt_headless.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libdt_socket.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libfontmanager.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libhprof.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libinstrument.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2gss.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2pcsc.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libj2pkcs11.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjaas_unix.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjava.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjava_crw_demo.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjavajpeg.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjdwp.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsdt.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsig.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libjsound.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/liblcms.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libmanagement.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libmlib_image.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnet.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnio.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libnpt.so
%ifarch x86_64  %{ix86} %{aarch64}
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsaproc.so
%endif
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsctp.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libsunec.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libunpack.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libverify.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libzip.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/charsets.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/classlist
%{_jvmdir}/%{jredir -- %{?1}}/lib/content-types.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/currency.data
%{_jvmdir}/%{jredir -- %{?1}}/lib/flavormap.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/hijrah-config-umalqura.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/images/cursors/*
%{_jvmdir}/%{jredir -- %{?1}}/lib/jce.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/jexec
%{_jvmdir}/%{jredir -- %{?1}}/lib/jsse.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/jvm.hprof.txt
%{_jvmdir}/%{jredir -- %{?1}}/lib/meta-index
%{_jvmdir}/%{jredir -- %{?1}}/lib/net.properties
%config(noreplace) %{etcjavadir -- %{?1}}/lib/net.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/psfont.properties.ja
%{_jvmdir}/%{jredir -- %{?1}}/lib/psfontj2d.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/resources.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/rt.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/sound.properties
%{_jvmdir}/%{jredir -- %{?1}}/lib/tzdb.dat
%{_jvmdir}/%{jredir -- %{?1}}/lib/management-agent.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/management/*
%{_jvmdir}/%{jredir -- %{?1}}/lib/cmm/*
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/cldrdata.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/dnsns.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/jaccess.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/localedata.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/meta-index
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/nashorn.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/sunec.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/sunjce_provider.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/sunpkcs11.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/zipfs.jar

%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/images
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/images/cursors
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/management
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/cmm
%dir %{_jvmdir}/%{jredir -- %{?1}}/lib/ext
}

%define files_devel() %{expand:
%defattr(-,root,root,-)
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/ASSEMBLY_EXCEPTION
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/LICENSE
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/THIRD_PARTY_README
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/bin
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/include
%dir %{_jvmdir}/%{sdkdir -- %{?1}}/lib
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/appletviewer
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/clhsdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/extcheck
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/hsdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/idlj
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jar
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jarsigner
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javac
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javadoc
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javah
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/javap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/java-rmi.cgi
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jcmd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jconsole
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdb
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jdeps
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jhat
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jinfo
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jjs
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jmap
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jps
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jrunscript
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jsadebugd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstack
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstat
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/jstatd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/keytool
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/native2ascii
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/orbd
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/pack200
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/policytool
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmic
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmid
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/rmiregistry
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/schemagen
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/serialver
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/servertool
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/tnameserv
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/unpack200
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/wsgen
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/wsimport
%{_jvmdir}/%{sdkdir -- %{?1}}/bin/xjc
%{_jvmdir}/%{sdkdir -- %{?1}}/include/*
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/%{archinstall}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ct.sym
%if %{with_systemtap}
%{_jvmdir}/%{sdkdir -- %{?1}}/tapset
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/ir.idl
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jconsole.jar
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/orb.idl
%ifarch %{sa_arches}
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/sa-jdi.jar
%endif
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/dt.jar
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/jexec
%{_jvmdir}/%{sdkdir -- %{?1}}/lib/tools.jar
%{_datadir}/applications/*jconsole%{?1}.desktop
%{_mandir}/man1/appletviewer-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/extcheck-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/idlj-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jar-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jarsigner-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javac-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javadoc-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javah-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/javap-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jconsole-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jcmd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdb-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jdeps-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jhat-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jinfo-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jmap-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jps-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jrunscript-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jsadebugd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstack-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstat-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/jstatd-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/native2ascii-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/rmic-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/schemagen-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/serialver-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/wsgen-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/wsimport-%{uniquesuffix -- %{?1}}.1*
%{_mandir}/man1/xjc-%{uniquesuffix -- %{?1}}.1*
%if %{with_systemtap}
# /usr/share/systemtap belongs to systemtap
#dir %{tapsetroot}
#dir %{tapsetdirttapset}
#dir %{tapsetdir}
%{tapsetdir}/*%{_arch}%{?1}.stp
%endif
}

%define files_demo() %{expand:
%defattr(-,root,root,-)
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/LICENSE
}

%define files_src() %{expand:
%defattr(-,root,root,-)
%doc README.md
%{_jvmdir}/%{sdkdir -- %{?1}}/src.zip
}

%define files_javadoc() %{expand:
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/LICENSE
}

%define files_javadoc_zip() %{expand:
%defattr(-,root,root,-)
%doc %{_javadocdir}/%{uniquejavadocdir -- %{?1}}.zip
%license %{buildoutputdir -- %{?1}}/images/%{jdkimage}/jre/LICENSE
}

%define files_accessibility() %{expand:
%{_jvmdir}/%{jredir -- %{?1}}/lib/%{archinstall}/libatk-wrapper.so
%{_jvmdir}/%{jredir -- %{?1}}/lib/ext/java-atk-wrapper.jar
%{_jvmdir}/%{jredir -- %{?1}}/lib/accessibility.properties
}

# not-duplicated requires/provides/obsoletes for normal/debug packages
%define java_rpo() %{expand:
Requires: fontconfig%{?_isa}
Requires: xorg-x11-fonts-Type1
# Require libXcomposite explicitly since it's only dynamically loaded
# at runtime. Fixes screenshot issues. See JDK-8150954.
Requires: libXcomposite%{?_isa}
# Requires rest of java
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# for java-X-openjdk package's desktop binding
%if 0%{?fedora} || 0%{?rhel} >= 8
Recommends: gtk2%{?_isa}
%endif

Provides: java-%{javaver}-%{origin} = %{epoch}:%{version}-%{release}

# Standard JPackage base provides
Provides: jre%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java%{?1} = %{epoch}:%{version}-%{release}
}

%define java_headless_rpo() %{expand:
# Require /etc/pki/java/cacerts
Requires: ca-certificates
# Require javapackages-filesystem for ownership of /usr/lib/jvm/
Requires: javapackages-filesystem
%if %{with timezonejava}
# Require zone-info data provided by tzdata-java sub-package
Requires: tzdata-java >= 2015d
%endif
# libsctp.so.1 is being `dlopen`ed on demand
Requires: lksctp-tools%{?_isa}
# tool to copy jdk's configs - should be Recommends only, but then only dnf/yum enforce it,
# not rpm transaction and so no configs are persisted when pure rpm -u is run. It may be
# considered as regression
Requires: copy-jdk-configs >= 4.0
OrderWithRequires: copy-jdk-configs
# for printing support
Requires: cups-libs
# Post requires alternatives to install tool alternatives
Requires(post):   %{_sbindir}/alternatives
# Postun requires alternatives to uninstall tool alternatives
Requires(postun): %{_sbindir}/alternatives
# for optional support of kernel stream control, card reader and printing bindings
%if 0%{?fedora} || 0%{?rhel} >= 8
Suggests: lksctp-tools%{?_isa}, pcsc-lite-devel%{?_isa}
%endif

# Standard JPackage base provides
Provides: jre-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: jre-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-headless%{?1} = %{epoch}:%{version}-%{release}
Provides: java-headless%{?1} = %{epoch}:%{version}-%{release}

# https://bugzilla.redhat.com/show_bug.cgi?id=1312019
Provides: /usr/bin/jjs

}

%define java_devel_rpo() %{expand:
# Requires base package
Requires:         %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# Post requires alternatives to install tool alternatives
Requires(post):   %{_sbindir}/alternatives
# Postun requires alternatives to uninstall tool alternatives
Requires(postun): %{_sbindir}/alternatives

# Standard JPackage devel provides
Provides: java-sdk-%{javaver}-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk-%{javaver}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk-%{origin}%{?1} = %{epoch}:%{version}-%{release}
Provides: java-sdk%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-devel%{?1} = %{epoch}:%{version}-%{release}
Provides: java-devel%{?1} = %{epoch}:%{version}-%{release}

}


%define java_demo_rpo() %{expand:
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

Provides: java-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-demo%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-demo%{?1} = %{epoch}:%{version}-%{release}

}

%define java_javadoc_rpo() %{expand:
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
# Post requires alternatives to install javadoc alternative
Requires(post):   %{_sbindir}/alternatives
# Postun requires alternatives to uninstall javadoc alternative
Requires(postun): %{_sbindir}/alternatives

# Standard JPackage javadoc provides
Provides: java-javadoc%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-javadoc%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-javadoc%{?1} = %{epoch}:%{version}-%{release}
}

%define java_src_rpo() %{expand:
Requires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

# Standard JPackage sources provides
Provides: java-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-src%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-src%{?1} = %{epoch}:%{version}-%{release}
}

%define java_accessibility_rpo() %{expand:
Requires: java-atk-wrapper%{?_isa}
Requires: %{name}%{?1}%{?_isa} = %{epoch}:%{version}-%{release}
OrderWithRequires: %{name}-headless%{?1}%{?_isa} = %{epoch}:%{version}-%{release}

Provides: java-accessibility%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-accessibility%{?1} = %{epoch}:%{version}-%{release}
Provides: java-%{javaver}-%{origin}-accessibility%{?1} = %{epoch}:%{version}-%{release}

}

# Prevent brp-java-repack-jars from being run
%global __jar_repack 0

Name:    java-%{javaver}-%{origin}
Version: %{javaver}.%{updatever}.%{buildver}
Release: %{?eaprefix}%{rpmrelease}%{?extraver}%{?dist}
# java-1.5.0-ibm from jpackage.org set Epoch to 1 for unknown reasons
# and this change was brought into RHEL-4. java-1.5.0-ibm packages
# also included the epoch in their virtual provides. This created a
# situation where in-the-wild java-1.5.0-ibm packages provided "java =
# 1:1.5.0". In RPM terms, "1.6.0 < 1:1.5.0" since 1.6.0 is
# interpreted as 0:1.6.0. So the "java >= 1.6.0" requirement would be
# satisfied by the 1:1.5.0 packages. Thus we need to set the epoch in
# JDK package >= 1.6.0 to 1, and packages referring to JDK virtual
# provides >= 1.6.0 must specify the epoch, "java >= 1:1.6.0".

Epoch:   1
Summary: %{origin_nice} Runtime Environment %{majorver}
Group: Development/Java

# HotSpot code is licensed under GPLv2
# JDK library code is licensed under GPLv2 with the Classpath exception
# The Apache license is used in code taken from Apache projects (primarily JAXP & JAXWS)
# DOM levels 2 & 3 and the XML digital signature schemas are licensed under the W3C Software License
# The JSR166 concurrency code is in the public domain
# The BSD and MIT licenses are used for a number of third-party libraries (see THIRD_PARTY_README)
# The OpenJDK source tree includes the JPEG library (IJG), zlib & libpng (zlib), giflib and LCMS (MIT)
# The test code includes copies of NSS under the Mozilla Public License v2.0
# The PCSClite headers are under a BSD with advertising license
# The elliptic curve cryptography (ECC) source code is licensed under the LGPLv2.1 or any later version
License:  ASL 1.1 and ASL 2.0 and BSD and BSD with advertising and GPL+ and GPLv2 and GPLv2 with exceptions and IJG and LGPLv2+ and MIT and MPLv2.0 and Public Domain and W3C and zlib
URL:      http://openjdk.java.net/

# Shenandoah HotSpot
# aarch64-port/jdk8u-shenandoah contains an integration forest of
# OpenJDK 8u, the aarch64 port and Shenandoah
# To regenerate, use:
# VERSION=%%{shenandoah_revision}
# FILE_NAME_ROOT=%%{shenandoah_project}-%%{shenandoah_repo}-${VERSION}
# REPO_ROOT=<path to checked-out repository> generate_source_tarball.sh
# where the source is obtained from http://hg.openjdk.java.net/%%{project}/%%{repo}
Source0: %{shenandoah_project}-%{shenandoah_repo}-%{shenandoah_revision}-4curve.tar.xz

# Custom README for -src subpackage
Source2:  README.md

# ROSA-specific
Source3:  %{name}.rpmlintrc

# Use 'icedtea_sync.sh' to update the following
# They are based on code contained in the IcedTea project (3.x).
# Systemtap tapsets. Zipped up to keep it small.
Source8: tapsets-icedtea-%{icedteaver}.tar.xz

# Desktop files. Adapted from IcedTea
Source9: jconsole.desktop.in
Source10: policytool.desktop.in

# nss configuration file
Source11: nss.cfg.in

# Removed libraries that we link instead
Source12: %{name}-remove-intree-libraries.sh

# Ensure we aren't using the limited crypto policy
Source13: TestCryptoLevel.java

# Ensure ECDSA is working
Source14: TestECDSA.java

# Verify system crypto (policy) can be disabled via a property
Source15: TestSecurityProperties.java

Source20: repackReproduciblePolycies.sh

# New versions of config files with aarch64 support. This is not upstream yet.
Source100: config.guess
Source101: config.sub

############################################
#
# RPM/distribution specific patches
#
# This section includes patches specific to
# Fedora/RHEL which can not be upstreamed
# either in their current form or at all.
############################################

# Accessibility patches
# Ignore AWTError when assistive technologies are loaded 
Patch1:   rh1648242-accessible_toolkit_crash_do_not_break_jvm.patch
# Restrict access to java-atk-wrapper classes
Patch3:   rh1648644-java_access_bridge_privileged_security.patch
# Turn on AssumeMP by default on RHEL systems
Patch534: rh1648246-always_instruct_vm_to_assume_multiple_processors_are_available.patch

#############################################
#
# Upstreamable patches
#
# This section includes patches which need to
# be reviewed & pushed to the current development
# tree of OpenJDK.
#############################################
# PR2737: Allow multiple initialization of PKCS11 libraries
Patch5: pr2737-allow_multiple_pkcs11_library_initialisation_to_be_a_non_critical_error.patch
# PR2095, RH1163501: 2048-bit DH upper bound too small for Fedora infrastructure (sync with IcedTea 2.x)
Patch504: rh1163501-increase_2048_bit_dh_upper_bound_fedora_infrastructure_in_dhparametergenerator.patch
# Turn off strict overflow on IndicRearrangementProcessor{,2}.cpp following 8140543: Arrange font actions
Patch512: rh1649664-awt2dlibraries_compiled_with_no_strict_overflow.patch
# RH1337583, PR2974: PKCS#10 certificate requests now use CRLF line endings rather than system line endings
Patch523: pr2974-rh1337583-add_systemlineendings_option_to_keytool_and_use_line_separator_instead_of_crlf_in_pkcs10.patch
# PR3083, RH1346460: Regression in SSL debug output without an ECC provider
Patch528: pr3083-rh1346460-for_ssl_debug_return_null_instead_of_exception_when_theres_no_ecc_provider.patch
# RH1566890: CVE-2018-3639
Patch529: rh1566890-CVE_2018_3639-speculative_store_bypass.patch
Patch531: rh1566890-CVE_2018_3639-speculative_store_bypass_toggle.patch
# PR3601: Fix additional -Wreturn-type issues introduced by 8061651
Patch530: pr3601-fix_additional_Wreturn_type_issues_introduced_by_8061651_for_prims_jvm_cpp.patch
# PR2888: OpenJDK should check for system cacerts database (e.g. /etc/pki/java/cacerts)
# PR3575, RH1567204: System cacerts database handling should not affect jssecacerts
Patch539: pr2888-openjdk_should_check_for_system_cacerts_database_eg_etc_pki_java_cacerts.patch
# PR3183, RH1340845: Support Fedora/RHEL8 system crypto policy
Patch400: pr3183-rh1340845-support_fedora_rhel_system_crypto_policy.patch
# PR3655: Allow use of system crypto policy to be disabled by the user
Patch401: pr3655-toggle_system_crypto_policy.patch
# JDK-8218811: replace open by os::open in hotspot coding
# This fixes a GCC 10 build issue
Patch111: jdk8218811-perfMemory_linux.patch
# JDK-8241296: Segfault in JNIHandleBlock::oops_do()
Patch112: jdk8241296-jnihandleblock_segfault.patch
# JDK-8244461: [JDK 8u] Build fails with glibc 2.32
Patch113: jdk8244461-remove_unused_sysctl.h.patch
# fix build with gcc 11 Fedora(Rawhide) patch
Patch114: java-1.8.0-openjdk-gcc11.patch

#############################################
#
# Arch-specific upstreamable patches
#
# This section includes patches which need to
# be reviewed & pushed upstream and are specific
# to certain architectures. This usually means the
# current OpenJDK development branch, but may also
# include other trees e.g. for the AArch64 port for
# OpenJDK 8u.
#############################################
# s390: PR3593: Use "%z" for size_t on s390 as size_t != intptr_t
Patch103: pr3593-s390_use_z_format_specifier_for_size_t_arguments_as_size_t_not_equals_to_int.patch
# x86: S8199936, PR3533: HotSpot generates code with unaligned stack, crashes on SSE operations (-mstackrealign workaround)
Patch105: jdk8199936-pr3533-enable_mstackrealign_on_x86_linux_as_well_as_x86_mac_os_x.patch
# AArch64: PR3519: Fix further functions with a missing return value (AArch64)
Patch106: pr3519-fix_further_functions_with_a_missing_return_value.patch
# S390 ambiguous log2_intptr calls
Patch107: s390-8214206_fix.patch
# JDK-8224851: AArch64: fix warnings and errors with Clang and GCC 8.3
# GCC 10 fix for redeclaration
Patch120: jdk8224851-aarch64_fix_warnings_and_errors_GCC_8_3.patch

#############################################
#
# Patches which need backporting to 8u
#
# This section includes patches which have
# been pushed upstream to the latest OpenJDK
# development tree, but need to be backported
# to OpenJDK 8u.
#############################################
# S8074839, PR2462: Resolve disabled warnings for libunpack and the unpack200 binary
# This fixes printf warnings that lead to build failure with -Werror=format-security from optflags
Patch502: pr2462-resolve_disabled_warnings_for_libunpack_and_the_unpack200_binary.patch
# S8154313: Generated javadoc scattered all over the place
Patch578: jdk8154313-generated_javadoc_scattered_all_over_the_place.patch
# PR3591: Fix for bug 3533 doesn't add -mstackrealign to JDK code
Patch571: jdk8199936-pr3591-enable_mstackrealign_on_x86_linux_as_well_as_x86_mac_os_x_jdk.patch
# 8143245, PR3548: Zero build requires disabled warnings
Patch574: jdk8143245-pr3548-zero_build_requires_disabled_warnings.patch
# 8197981, PR3548: Missing return statement in __sync_val_compare_and_swap_8
Patch575: jdk8197981-pr3548-missing_return_statement_in_sync_val_compare_and_swap_8.patch
# 8062808, PR3548: Turn on the -Wreturn-type warning
Patch577: jdk8062808-pr3548-turn_on_the_wreturn_type_warning.patch
# s390: JDK-8203030, Type fixing for s390
Patch102: jdk8203030-zero_s390_31_bit_size_t_type_conflicts_in_shared_code.patch
# 8035341: Allow using a system installed libpng
Patch202: jdk8035341-allow_using_system_installed_libpng.patch
# 8042159: Allow using a system-installed lcms2
Patch203: jdk8042159-allow_using_system_installed_lcms2.patch

#############################################
#
# Patches fixing defects found by statical analysis by Svace
# Svace report: https://file-store.rosalinux.ru/download/c93c8bc8b1dddd3a5efc10c06fda65a8451a1261
#
Patch301: NAA.001.codeBuffer.patch
Patch302: NAA.002.unpack.patch
Patch303: NAA.003.util.c.patch
Patch304: NAA.004.shenandoahHeap.patch
Patch305: NAA.005.zip_util.patch
Patch306: NAA.006.allocation.patch
Patch307: NAA.007.addnode.patch
Patch308: NAA.008.DynAnyCollectionImpl.patch
Patch309: NAA.009.UIRegion.patch
Patch310: NAA.010.hprof_check.patch
Patch311: NAA.011.DerefAfterNull_linkResolver.patch

#############################################
#
# Patches appearing in 8u262
#
# This section includes patches which are present
# in the listed OpenJDK 8u release and should be
# able to be removed once that release is out
# and used by this RPM.
#############################################
# JDK-8233880: Support compilers with multi-digit major version numbers
Patch579: jdk8233880-compiler_versioning.patch

#############################################
#
# Patches ineligible for 8u
#
# This section includes patches which are present
# upstream, but ineligible for upstream 8u backport.
#############################################
# 8043805: Allow using a system-installed libjpeg
Patch201: jdk8043805-allow_using_system_installed_libjpeg.patch

#############################################
#
# Shenandoah fixes
#
# This section includes patches which are
# specific to the Shenandoah garbage collector
# and should be upstreamed to the appropriate
# trees.
#############################################

#############################################
#
# Non-OpenJDK fixes
#
# This section includes patches to code other
# that from OpenJDK.
#############################################
Patch1000: rh1648249-add_commented_out_nss_cfg_provider_to_java_security.patch

# architecture riscv64

Patch2000: java-1.8-architecture-RISCV.patch


#############################################
#
# Dependencies
#
#############################################
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: binutils
BuildRequires: cups-devel
BuildRequires: elfutils
BuildRequires: elfutils-devel
BuildRequires: fontconfig
BuildRequires: freetype2-devel
BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: gdb
BuildRequires: giflib-devel
BuildRequires: jpeg-devel
BuildRequires: libxslt-devel
BuildRequires: nss-devel
BuildRequires: openssl
BuildRequires: pkgconfig
BuildRequires: pkgconfig(alsa)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(lcms2)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(x11)
BuildRequires: pkgconfig(xi)
BuildRequires: pkgconfig(xinerama)
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xtst)
BuildRequires: unzip
BuildRequires: xsltproc
BuildRequires: zip
BuildRequires: nss-softokn-freebl-devel
BuildRequires: javapackages-filesystem

# Use OpenJDK 7 where available (on RHEL) to avoid
# having to use the rhel-7.x-java-unsafe-candidate hack
#if ! 0%{?fedora} && 0%{?rhel} <= 7
%if 0
# Require a boot JDK which doesn't fail due to RH1482244
BuildRequires: java-1.7.0-openjdk-devel >= 1.7.0.151-2.6.11.3
%else
BuildRequires: java-1.8.0-openjdk-devel
%endif
# Zero-assembler build requirement
%ifnarch %{jit_arches}
BuildRequires: pkgconfig(libffi)
%endif
%if %{with timezonejava}
BuildRequires: tzdata-java >= 2015d
%endif
%if %{with_systemtap}
BuildRequires: systemtap-devel
%endif

# this is always built, also during debug-only build
# when it is built in debug-only this package is just placeholder
%{java_rpo %{nil}}

%description
The %{origin_nice} runtime environment %{majorver}.

%if %{include_debug_build}
%package slowdebug
Summary: %{origin_nice} Runtime Environment %{majorver} %{debug_on}
Group: Development/Java

%{java_rpo -- %{debug_suffix_unquoted}}
%description slowdebug
The %{origin_nice} runtime environment %{majorver}.
%{debug_warning}
%endif

%if %{include_normal_build}
%package headless
Summary: %{origin_nice} Headless Runtime Environment %{majorver}
Group: Development/Java

%{java_headless_rpo %{nil}}

%description headless
The %{origin_nice} runtime environment %{majorver} without audio and video support.
%endif

%if %{include_debug_build}
%package headless-slowdebug
Summary: %{origin_nice} Runtime Environment %{majorver} %{debug_on}
Group: Development/Java

%{java_headless_rpo -- %{debug_suffix_unquoted}}

%description headless-slowdebug
The %{origin_nice} runtime environment %{majorver} without audio and video support.
%{debug_warning}
%endif

%if %{include_normal_build}
%package devel
Summary: %{origin_nice} Development Environment %{majorver}
Group: Development/Java
Provides: java-devel-openjdk = %{EVRD}

%{java_devel_rpo %{nil}}

%description devel
The %{origin_nice} development tools %{majorver}.
%endif

%if %{include_debug_build}
%package devel-slowdebug
Summary: %{origin_nice} Development Environment %{majorver} %{debug_on}
Group: Development/Java

%{java_devel_rpo -- %{debug_suffix_unquoted}}

%description devel-slowdebug
The %{origin_nice} development tools %{majorver}.
%{debug_warning}
%endif

%if %{include_normal_build}
%package demo
Summary: %{origin_nice} Demos %{majorver}
Group: Development/Java

%{java_demo_rpo %{nil}}

%description demo
The %{origin_nice} demos %{majorver}.
%endif

%if %{include_debug_build}
%package demo-slowdebug
Summary: %{origin_nice} Demos %{majorver} %{debug_on}
Group: Development/Java

%{java_demo_rpo -- %{debug_suffix_unquoted}}

%description demo-slowdebug
The %{origin_nice} demos %{majorver}.
%{debug_warning}
%endif

%if %{include_normal_build}
%package src
Summary: %{origin_nice} Source Bundle %{majorver}
Group: Development/Java

%{java_src_rpo %{nil}}

%description src
The java-%{origin}-src sub-package contains the complete %{origin_nice} %{majorver}
class library source code for use by IDE indexers and debuggers.
%endif

%if %{include_debug_build}
%package src-slowdebug
Summary: %{origin_nice} Source Bundle %{majorver} %{for_debug}
Group: Development/Java

%{java_src_rpo -- %{debug_suffix_unquoted}}

%description src-slowdebug
The java-%{origin}-src-slowdebug sub-package contains the complete %{origin_nice} %{majorver}
 class library source code for use by IDE indexers and debuggers. Debugging %{for_debug}.
%endif

%if %{include_normal_build}
%package javadoc
Summary: %{origin_nice} %{majorver} API documentation
Group: Development/Java
Requires: javapackages-filesystem
Obsoletes: javadoc-slowdebug < 1:1.8.0.222.b10-1
BuildArch: noarch

%{java_javadoc_rpo %{nil}}

%description javadoc
The %{origin_nice} %{majorver} API documentation.
%endif

%if %{include_normal_build}
%package javadoc-zip
Summary: %{origin_nice} %{majorver} API documentation compressed in a single archive
Group: Development/Java
Requires: javapackages-filesystem
Obsoletes: javadoc-zip-slowdebug < 1:1.8.0.222.b10-1
BuildArch: noarch

%{java_javadoc_rpo %{nil}}

%description javadoc-zip
The %{origin_nice} %{majorver} API documentation compressed in a single archive.
%endif

%if %{include_normal_build}
%package accessibility
Summary: %{origin_nice} %{majorver} accessibility connector
Group: Development/Java

%{java_accessibility_rpo %{nil}}

%description accessibility
Enables accessibility support in %{origin_nice} %{majorver} by using java-atk-wrapper. This allows
compatible at-spi2 based accessibility programs to work for AWT and Swing-based
programs.

Please note, the java-atk-wrapper is still in beta, and %{origin_nice} %{majorver} itself is still
being tuned to be working with accessibility features. There are known issues
with accessibility on, so please do not install this package unless you really
need to.
%endif

%if %{include_debug_build}
%package accessibility-slowdebug
Summary: %{origin_nice} %{majorver} accessibility connector %{for_debug}
Group: Development/Java

%{java_accessibility_rpo -- %{debug_suffix_unquoted}}

%description accessibility-slowdebug
See normal java-%{version}-openjdk-accessibility description.
%endif


%if %{with_openjfx_binding}
%package openjfx
Summary: OpenJDK x OpenJFX connector
Group: Development/Java
Requires: %{name}%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openjfx8%{?_isa}
Provides: javafx  = %{epoch}:%{version}-%{release}
%description openjfx
Set of links from OpenJDK (jre) to OpenJFX.
This package adds symliks finishing Java FX integration to %{name}.

%package openjfx-devel
Summary: OpenJDK x OpenJFX connector for FX developers
Group: Development/Java
Requires: %{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openjfx8-devel%{?_isa}
Provides: javafx-devel = %{epoch}:%{version}-%{release}
%description openjfx-devel
Set of links from OpenJDK (sdk) to OpenJFX.
This package adds symliks finishing Java FX integration to %{name}-devel.

%if %{include_debug_build}
%package openjfx-slowdebug
Summary: OpenJDK x OpenJFX connector %{for_debug}
Group: Development/Java
Requires: %{name}-slowdebug%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openjfx8%{?_isa}
Provides: javafx-slowdebug = %{epoch}:%{version}-%{release}
%description openjfx-slowdebug
Set of links from OpenJDK-slowdebug (jre) to normal OpenJFX. OpenJFX does not support debug builds of itself.
This package adds symliks finishing Java FX integration to %{name}-slowdebug.

%package openjfx-devel-slowdebug
Summary: OpenJDK x OpenJFX connector for FX developers %{for_debug}
Group: Development/Java
Requires: %{name}-devel-slowdebug%{?_isa} = %{epoch}:%{version}-%{release}
Requires: openjfx8-devel%{?_isa}
Provides: javafx-devel-slowdebug = %{epoch}:%{version}-%{release}
%description openjfx-devel-slowdebug
Set of links from OpenJDK-slowdebug (sdk) to normal OpenJFX. OpenJFX does not support debug builds of itself.
This package adds symliks finishing Java FX integration to %{name}-devel-slowdebug.
%endif
%endif

%prep

# Using the echo macro breaks rpmdev-bumpspec, as it parses the first line of stdout :-(
%if 0%{?stapinstall:1}
  echo "CPU: %{_target_cpu}, arch install directory: %{archinstall}, SystemTap install directory: %{stapinstall}"
%else
  %{error:Unrecognised architecture %{_target_cpu}}
%endif

if [ %{include_normal_build} -eq 0 -o  %{include_normal_build} -eq 1 ] ; then
  echo "include_normal_build is %{include_normal_build}"
else
  echo "include_normal_build is %{include_normal_build}, thats invalid. Use 1 for yes or 0 for no"
  exit 11
fi
if [ %{include_debug_build} -eq 0 -o  %{include_debug_build} -eq 1 ] ; then
  echo "include_debug_build is %{include_debug_build}"
else
  echo "include_debug_build is %{include_debug_build}, thats invalid. Use 1 for yes or 0 for no"
  exit 12
fi
if [ %{include_debug_build} -eq 0 -a  %{include_normal_build} -eq 0 ] ; then
  echo "You have disabled both include_debug_build and include_normal_build. That is a no go."
  exit 13
fi

echo "Update version: %{updatever}"
echo "Build number: %{buildver}"
echo "Milestone: %{milestone}"
%setup -q -c -n %{uniquesuffix ""} -T -a 0
# https://bugzilla.redhat.com/show_bug.cgi?id=1189084
prioritylength=`expr length %{priority}`
if [ $prioritylength -ne 7 ] ; then
 echo "priority must be 7 digits in total, violated"
 exit 14
fi
# For old patches
ln -s %{top_level_dir_name} jdk8

cp %{SOURCE2} .

# replace outdated configure guess script
#
# the configure macro will do this too, but it also passes a few flags not
# supported by openjdk configure script
cp %{SOURCE100} %{top_level_dir_name}/common/autoconf/build-aux/
cp %{SOURCE101} %{top_level_dir_name}/common/autoconf/build-aux/

# OpenJDK patches

# Remove libraries that are linked
sh %{SOURCE12}

# System library fixes
%patch201
%patch202
%patch203

# System security policy fixes
%patch400
%patch401

%patch1
%patch3
%patch5

# s390 build fixes
%patch102
%patch103
%patch107

# AArch64 fixes
%patch106
%patch120

# x86 fixes
%patch105

# Upstreamable fixes
%patch502
%patch504
%patch512
%patch578
%patch523
%patch528
%patch529
%patch531
%patch530
%patch571
%patch574
%patch575
%patch577
%patch111
%patch112
%patch113
%patch114
%patch579

%patch301 -p1
%patch302 -p1
%patch303 -p1
%patch304 -p1
%patch305 -p1
%patch306 -p1
%patch307 -p1
%patch308 -p1
%patch309 -p1
%patch310 -p1
%patch311 -p1

# RPM-only fixes
%patch539
%patch1000

# RISCV
%patch2000

# RHEL-only patches
%if ! 0%{?fedora} && 0%{?rhel} <= 7
%patch534
%endif

# Shenandoah patches

# Extract systemtap tapsets
%if %{with_systemtap}
tar --strip-components=1 -x -I xz -f %{SOURCE8}
%if %{include_debug_build}
cp -r tapset tapset%{debug_suffix}
%endif


for suffix in %{build_loop} ; do
  for file in "tapset"$suffix/*.in; do
    OUTPUT_FILE=`echo $file | sed -e "s:\.stp\.in$:-%{version}-%{release}.%{_arch}.stp:g"`
    sed -e "s:@ABS_SERVER_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/jre/lib/%{archinstall}/server/libjvm.so:g" $file > $file.1
# TODO find out which architectures other than i686 have a client vm
%ifarch %{ix86}
    sed -e "s:@ABS_CLIENT_LIBJVM_SO@:%{_jvmdir}/%{sdkdir -- $suffix}/jre/lib/%{archinstall}/client/libjvm.so:g" $file.1 > $OUTPUT_FILE
%else
    sed -e "/@ABS_CLIENT_LIBJVM_SO@/d" $file.1 > $OUTPUT_FILE
%endif
    sed -i -e "s:@ABS_JAVA_HOME_DIR@:%{_jvmdir}/%{sdkdir -- $suffix}:g" $OUTPUT_FILE
    sed -i -e "s:@INSTALL_ARCH_DIR@:%{archinstall}:g" $OUTPUT_FILE
    sed -i -e "s:@prefix@:%{_jvmdir}/%{sdkdir -- $suffix}/:g" $OUTPUT_FILE
  done
done
# systemtap tapsets ends
%endif

# Prepare desktop files
# The _X_ syntax indicates variables that are replaced by make upstream
# The @X@ syntax indicates variables that are replaced by configure upstream
for suffix in %{build_loop} ; do
for file in %{SOURCE9} %{SOURCE10} ; do
    FILE=`basename $file | sed -e s:\.in$::g`
    EXT="${FILE##*.}"
    NAME="${FILE%.*}"
    OUTPUT_FILE=$NAME$suffix.$EXT
    sed    -e  "s:_SDKBINDIR_:%{sdkbindir -- $suffix}:g" $file > $OUTPUT_FILE
    sed -i -e  "s:_JREBINDIR_:%{jrebindir -- $suffix}:g" $OUTPUT_FILE
    sed -i -e  "s:@target_cpu@:%{_arch}:g" $OUTPUT_FILE
    sed -i -e  "s:@OPENJDK_VER@:%{version}-%{release}.%{_arch}$suffix:g" $OUTPUT_FILE
    sed -i -e  "s:@JAVA_VER@:%{javaver}:g" $OUTPUT_FILE
    sed -i -e  "s:@JAVA_VENDOR@:%{origin}:g" $OUTPUT_FILE
done
done

# Setup nss.cfg
sed -e "s:@NSS_LIBDIR@:%{NSS_LIBDIR}:g" %{SOURCE11} > nss.cfg

# Remove not used code, including assembler code,
# so that it does not get counted as code written in assembler
# during analysis in laboratory (FSTEK)
rm -fvr \
openjdk/hotspot/src/os_cpu/aix* \
openjdk/hotspot/src/os_cpu/bsd* \
%ifnarch aarch64
openjdk/hotspot/src/os_cpu/linux_aarch64 \
%endif
openjdk/hotspot/src/os_cpu/linux_ppc \
openjdk/hotspot/src/os_cpu/linux_sparc \
openjdk/hotspot/src/os_cpu/solaris* \
openjdk/hotspot/src/os_cpu/windows* \
openjdk/nashorn/samples/*.asm

%build
# How many CPU's do we have?
export NUM_PROC=%(/usr/bin/getconf _NPROCESSORS_ONLN 2> /dev/null || :)
export NUM_PROC=${NUM_PROC:-1}
%if 0%{?_smp_ncpus_max}
# Honor %%_smp_ncpus_max
[ ${NUM_PROC} -gt %{?_smp_ncpus_max} ] && export NUM_PROC=%{?_smp_ncpus_max}
%endif

%ifarch s390x sparc64 alpha %{power64} %{aarch64} %{riscv64}
export ARCH_DATA_MODEL=64
%endif
%ifarch alpha
export CFLAGS="$CFLAGS -mieee"
%endif

# We use ourcppflags because the OpenJDK build seems to
# pass EXTRA_CFLAGS to the HotSpot C++ compiler...
EXTRA_CFLAGS="%ourcppflags -Wno-error -fcommon"
EXTRA_CPP_FLAGS="%ourcppflags"

%ifarch %{power64} ppc
# fix rpmlint warnings
EXTRA_CFLAGS="$EXTRA_CFLAGS -fno-strict-aliasing"
%endif

EXTRA_ASFLAGS="${EXTRA_CFLAGS} -Wa,--generate-missing-build-notes=yes"
export EXTRA_CFLAGS EXTRA_ASFLAGS

(cd %{top_level_dir_name}/common/autoconf
 bash ./autogen.sh
)

function buildjdk() {
    local outputdir=${1}
    local buildjdk=${2}
    local maketargets=${3}
    local debuglevel=${4}

    local top_srcdir_abs_path=$(pwd)/%{top_level_dir_name}
    # Variable used in hs_err hook on build failures
    local top_builddir_abs_path=$(pwd)/${outputdir}

    mkdir -p ${outputdir}
    pushd ${outputdir}

    bash ${top_srcdir_abs_path}/configure \
%ifnarch %{jit_arches}
    --with-jvm-variants=zero \
%endif
%ifarch %{riscv64}
    --disable-precompiled-headers \
%endif
    --with-native-debug-symbols=internal \
    --with-milestone=%{milestone} \
    --with-update-version=%{updatever} \
    --with-build-number=%{buildver} \
    --with-boot-jdk=${buildjdk} \
    --with-debug-level=${debuglevel} \
    --enable-unlimited-crypto \
    --with-zlib=system \
    --with-libjpeg=system \
    --with-giflib=system \
    --with-libpng=system \
    --with-lcms=system \
    --with-stdc++lib=dynamic \
    --with-extra-cxxflags="$EXTRA_CPP_FLAGS" \
    --with-extra-cflags="$EXTRA_CFLAGS" \
    --with-extra-asflags="$EXTRA_ASFLAGS" \
    --with-extra-ldflags="%{ourldflags}" \
    --with-num-cores="$NUM_PROC"

    cat spec.gmk
    cat hotspot-spec.gmk

    make \
	JAVAC_FLAGS=-g \
	LOG=trace \
	SCTP_WERROR= \
	${maketargets} || ( pwd; find ${top_srcdir_abs_path} ${top_builddir_abs_path} -name "hs_err_pid*.log" | xargs cat && false )

    # the build (erroneously) removes read permissions from some jars
    # this is a regression in OpenJDK 7 (our compiler):
    # http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1437
    find images/%{jdkimage} -iname '*.jar' -exec chmod ugo+r {} \;
    chmod ugo+r images/%{jdkimage}/lib/ct.sym

    # remove redundant *diz and *debuginfo files
    find images/%{jdkimage} -iname '*.diz' -exec rm -v {} \;
    find images/%{jdkimage} -iname '*.debuginfo' -exec rm -v {} \;

    # Build screws up permissions on binaries
    # https://bugs.openjdk.java.net/browse/JDK-8173610
    find images/%{jdkimage} -iname '*.so' -exec chmod +x {} \;
    find images/%{jdkimage}/bin/ -exec chmod +x {} \;

    popd >& /dev/null
}

for suffix in %{build_loop} ; do
if [ "x$suffix" = "x" ] ; then
  debugbuild=release
else
  # change --something to something
  debugbuild=`echo $suffix  | sed "s/-//g"`
fi

systemjdk=/usr/lib/jvm/java-openjdk
builddir=%{buildoutputdir -- $suffix}
bootbuilddir=boot${builddir}

# Debug builds don't need same targets as release for
# build speed-up
maketargets="%{release_targets}"
if echo $debugbuild | grep -q "debug" ; then
  maketargets="%{debug_targets}"
fi

%if %{bootstrap_build}
buildjdk ${bootbuilddir} ${systemjdk} "%{bootstrap_targets}" ${debugbuild}
buildjdk ${builddir} $(pwd)/${bootbuilddir}/images/%{jdkimage} "${maketargets}" ${debugbuild}
rm -rf ${bootbuilddir}
%else
buildjdk ${builddir} ${systemjdk} "${maketargets}" ${debugbuild}
%endif

# Install nss.cfg right away as we will be using the JRE above
export JAVA_HOME=$(pwd)/%{buildoutputdir -- $suffix}/images/%{jdkimage}

# Install nss.cfg right away as we will be using the JRE above
install -m 644 nss.cfg $JAVA_HOME/jre/lib/security/
%if %{with timezonejava}
# Use system-wide tzdata
rm $JAVA_HOME/jre/lib/tzdb.dat
ln -s %{_datadir}/javazi-1.8/tzdb.dat $JAVA_HOME/jre/lib/tzdb.dat
%endif
# build cycles
done

%check

# !!! TODO: remove it
exit 0

# We test debug first as it will give better diagnostics on a crash
for suffix in %{rev_build_loop} ; do

export JAVA_HOME=$(pwd)/%{buildoutputdir -- $suffix}/images/%{jdkimage}

# Check unlimited policy has been used
$JAVA_HOME/bin/javac -d . %{SOURCE13}
$JAVA_HOME/bin/java TestCryptoLevel

# Check ECC is working
$JAVA_HOME/bin/javac -d . %{SOURCE14}
$JAVA_HOME/bin/java $(echo $(basename %{SOURCE14})|sed "s|\.java||")

# Verify system crypto (policy) can be disabled
$JAVA_HOME/bin/javac -d . %{SOURCE15}
$JAVA_HOME/bin/java -Djava.security.disableSystemPropertiesFile=true $(echo $(basename %{SOURCE15})|sed "s|\.java||")

# Check debug symbols are present and can identify code
find "$JAVA_HOME" -iname '*.so' -print0 | while read -d $'\0' lib
do
  if [ -f "$lib" ] ; then
    echo "Testing $lib for debug symbols"
    # All these tests rely on RPM failing the build if the exit code of any set
    # of piped commands is non-zero.

    # Test for .debug_* sections in the shared object. This is the main test
    # Stripped objects will not contain these
    eu-readelf -S "$lib" | grep "] .debug_"
    test $(eu-readelf -S "$lib" | grep -E "\]\ .debug_(info|abbrev)" | wc --lines) == 2

    # Test FILE symbols. These will most likely be removed by anything that
    # manipulates symbol tables because it's generally useless. So a nice test
    # that nothing has messed with symbols
    old_IFS="$IFS"
    IFS=$'\n'
    for line in $(eu-readelf -s "$lib" | grep "00000000      0 FILE    LOCAL  DEFAULT")
    do
     # We expect to see .cpp files, except for architectures like aarch64 and
     # s390 where we expect .o and .oS files
      echo "$line" | grep -E "ABS ((.*/)?[-_a-zA-Z0-9]+\.(c|cc|cpp|cxx|o|oS))?$"
    done
    IFS="$old_IFS"

    # If this is the JVM, look for javaCalls.(cpp|o) in FILEs, for extra sanity checking
    if [ "`basename $lib`" = "libjvm.so" ]; then
      eu-readelf -s "$lib" | \
        grep -E "00000000      0 FILE    LOCAL  DEFAULT      ABS javaCalls.(cpp|o)$"
    fi

    # Test that there are no .gnu_debuglink sections pointing to another
    # debuginfo file. There shouldn't be any debuginfo files, so the link makes
    # no sense either
    eu-readelf -S "$lib" | grep 'gnu'
    if eu-readelf -S "$lib" | grep '] .gnu_debuglink' | grep PROGBITS; then
      echo "bad .gnu_debuglink section."
      eu-readelf -x .gnu_debuglink "$lib"
      false
    fi
  fi
done

# Make sure gdb can do a backtrace based on line numbers on libjvm.so
# javaCalls.cpp:58 should map to:
# http://hg.openjdk.java.net/jdk8u/jdk8u/hotspot/file/ff3b27e6bcc2/src/share/vm/runtime/javaCalls.cpp#l58 
# Using line number 1 might cause build problems. See:
# https://bugzilla.redhat.com/show_bug.cgi?id=1539664
# https://bugzilla.redhat.com/show_bug.cgi?id=1538767
gdb -q "$JAVA_HOME/bin/java" <<EOF | tee gdb.out
handle SIGSEGV pass nostop noprint
handle SIGILL pass nostop noprint
set breakpoint pending on
break javaCalls.cpp:58
commands 1
backtrace
quit
end
run -version
EOF
grep 'JavaCallWrapper::JavaCallWrapper' gdb.out

# Check src.zip has all sources. See RHBZ#1130490
jar -tf $JAVA_HOME/src.zip | grep 'sun.misc.Unsafe'

# Check class files include useful debugging information
$JAVA_HOME/bin/javap -l java.lang.Object | grep "Compiled from"
$JAVA_HOME/bin/javap -l java.lang.Object | grep LineNumberTable
$JAVA_HOME/bin/javap -l java.lang.Object | grep LocalVariableTable

# Check generated class files include useful debugging information
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep "Compiled from"
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LineNumberTable
$JAVA_HOME/bin/javap -l java.nio.ByteBuffer | grep LocalVariableTable

# build cycles check
done

%install
STRIP_KEEP_SYMTAB=libjvm*

for suffix in %{build_loop} ; do

# Install the jdk
pushd %{buildoutputdir -- $suffix}/images/%{jdkimage}

# Install jsa directories so we can owe them
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/server/
mkdir -p $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/client/

  # Install main files.
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
  cp -a bin include lib src.zip $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
  install -d -m 755 $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}
  cp -a jre/bin jre/lib $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}

%if %{with_systemtap}
  # Install systemtap support files
  install -dm 755 $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset
  # note, that uniquesuffix  is in BUILD dir in this case
  cp -a $RPM_BUILD_DIR/%{uniquesuffix ""}/tapset$suffix/*.stp $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
  pushd  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/tapset/
   tapsetFiles=`ls *.stp`
  popd
  install -d -m 755 $RPM_BUILD_ROOT%{tapsetdir}
  for name in $tapsetFiles ; do
    targetName=`echo $name | sed "s/.stp/$suffix.stp/"`
    ln -sf %{_jvmdir}/%{sdkdir -- $suffix}/tapset/$name $RPM_BUILD_ROOT%{tapsetdir}/$targetName
  done
%endif

  # Remove empty cacerts database
  rm -f $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/security/cacerts
  # Install cacerts symlink needed by some apps which hardcode the path
  pushd $RPM_BUILD_ROOT%{_jvmdir}/%{jredir -- $suffix}/lib/security
      ln -sf /etc/pki/java/cacerts .
  popd

  # Install versioned symlinks
  pushd $RPM_BUILD_ROOT%{_jvmdir}
    ln -sf %{jredir -- $suffix} %{jrelnk -- $suffix}
  popd

  # Remove javaws man page
  rm -f man/man1/javaws*

  # Install man pages
  install -d -m 755 $RPM_BUILD_ROOT%{_mandir}/man1
  for manpage in man/man1/*
  do
    # Convert man pages to UTF8 encoding
    iconv -f ISO_8859-1 -t UTF8 $manpage -o $manpage.tmp
    mv -f $manpage.tmp $manpage
    install -m 644 -p $manpage $RPM_BUILD_ROOT%{_mandir}/man1/$(basename \
      $manpage .1)-%{uniquesuffix -- $suffix}.1
  done

  # Install demos and samples.
  cp -a demo $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}
  mkdir -p sample/rmi
  if [ ! -e sample/rmi/java-rmi.cgi ] ; then 
    # hack to allow --short-circuit on install
    mv bin/java-rmi.cgi sample/rmi
  fi
  cp -a sample $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}

popd

if ! echo $suffix | grep -q "debug" ; then
  # Install Javadoc documentation
  install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}
  cp -a %{buildoutputdir -- $suffix}/docs $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}
  built_doc_archive=`echo "jdk-%{javaver}_%{updatever}%{milestone_version}$suffix-%{buildver}-docs.zip" | sed  s/slowdebug/debug/`
  cp -a %{buildoutputdir -- $suffix}/bundles/$built_doc_archive  $RPM_BUILD_ROOT%{_javadocdir}/%{uniquejavadocdir -- $suffix}.zip
fi

# Install icons and menu entries
for s in 16 24 32 48 ; do
  install -D -p -m 644 \
    %{top_level_dir_name}/jdk/src/solaris/classes/sun/awt/X11/java-icon${s}.png \
    $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/${s}x${s}/apps/java-%{javaver}-%{origin}.png
done

# Install desktop files
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/{applications,pixmaps}
for e in jconsole$suffix policytool$suffix ; do
    desktop-file-install --vendor=%{uniquesuffix -- $suffix} --mode=644 \
        --dir=$RPM_BUILD_ROOT%{_datadir}/applications $e.desktop
done

# Install /etc/.java/.systemPrefs/ directory
# See https://bugzilla.redhat.com/show_bug.cgi?id=741821
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/.java/.systemPrefs

# FIXME: remove SONAME entries from demo DSOs. See
# https://bugzilla.redhat.com/show_bug.cgi?id=436497

# Find non-documentation demo files.
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/demo \
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/sample \
  -type f -o -type l | sort \
  | grep -v README \
  | sed 's|'$RPM_BUILD_ROOT'||' \
  >> %{name}-demo.files"$suffix"
# Find documentation demo files.
find $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/demo \
  $RPM_BUILD_ROOT%{_jvmdir}/%{sdkdir -- $suffix}/sample \
  -type f -o -type l | sort \
  | grep README \
  | sed 's|'$RPM_BUILD_ROOT'||' \
  | sed 's|^|%doc |' \
  >> %{name}-demo.files"$suffix"

# Create links which leads to separately installed java-atk-bridge and allow configuration
# links points to java-atk-wrapper - an dependence
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}
    ln -s %{_libdir}/java-atk-wrapper/libatk-wrapper.so.0 libatk-wrapper.so
  popd
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/ext
     ln -s %{_libdir}/java-atk-wrapper/java-atk-wrapper.jar  java-atk-wrapper.jar
  popd
  pushd $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/
    echo "#Config file to  enable java-atk-wrapper" > accessibility.properties
    echo "" >> accessibility.properties
    echo "assistive_technologies=org.GNOME.Accessibility.AtkWrapper" >> accessibility.properties
    echo "" >> accessibility.properties
  popd

# intentionally after all else, fx links  with redirections on its own
%if %{with_openjfx_binding}
  FXSDK_FILES=%{name}-openjfx-devel.files"$suffix"
  FXJRE_FILES=%{name}-openjfx.files"$suffix"
  echo -n "" > $FXJRE_FILES
  echo -n "" > $FXSDK_FILES
  for file in  %{jfx_jre_libs} ; do
    srcfile=%{jfx_jre_libs_dir}/$file
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXJRE_FILES
  done
  for file in  %{jfx_jre_native} ; do
    srcfile=%{jfx_jre_native_dir}/$file
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/%{archinstall}/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXJRE_FILES
  done
  for file in  %{jfx_jre_exts} ; do
    srcfile=%{jfx_jre_exts_dir}/$file
    targetfile=%{_jvmdir}/%{jredir -- $suffix}/lib/ext/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXJRE_FILES
  done
  for file in  %{jfx_sdk_libs} ; do
    srcfile=%{jfx_sdk_libs_dir}/$file
    targetfile=%{_jvmdir}/%{sdkdir -- $suffix}/lib/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXSDK_FILES
  done
  for file in  %{jfx_sdk_bins} ; do
    srcfile=%{jfx_sdk_bins_dir}/$file
    targetfile=%{_jvmdir}/%{sdkdir -- $suffix}/bin/$file
    ln -s $srcfile $RPM_BUILD_ROOT/$targetfile
    echo $targetfile >> $FXSDK_FILES
  done
%endif

bash %{SOURCE20} $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix} %{javaver}
# https://bugzilla.redhat.com/show_bug.cgi?id=1183793
touch -t 201401010000 $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/lib/security/java.security

# moving config files to /etc
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib/security/policy/unlimited/
mkdir -p $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/lib/security/policy/limited/
for file in lib/security/cacerts lib/security/policy/unlimited/US_export_policy.jar lib/security/policy/unlimited/local_policy.jar lib/security/policy/limited/US_export_policy.jar lib/security/policy/limited/local_policy.jar lib/security/java.policy lib/security/java.security lib/security/blacklisted.certs lib/logging.properties lib/calendars.properties lib/security/nss.cfg lib/net.properties ; do
  mv      $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/$file   $RPM_BUILD_ROOT/%{etcjavadir -- $suffix}/$file
  ln -sf  %{etcjavadir -- $suffix}/$file                          $RPM_BUILD_ROOT/%{_jvmdir}/%{jredir -- $suffix}/$file
done

# stabilize permissions
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "*.so" -exec chmod 755 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -type d -exec chmod 755 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "ASSEMBLY_EXCEPTION" -exec chmod 644 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "LICENSE" -exec chmod 644 {} \; ; 
find $RPM_BUILD_ROOT/%{_jvmdir}/%{sdkdir -- $suffix}/ -name "THIRD_PARTY_README" -exec chmod 644 {} \; ; 

# end, dual install
done

%if %{include_normal_build}
# intentionally only for non-debug
%pretrans headless -p <lua>
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
-- see https://bugzilla.redhat.com/show_bug.cgi?id=1290388 for pretrans over pre
-- if copy-jdk-configs is in transaction, it installs in pretrans to temp
-- if copy_jdk_configs is in temp, then it means that copy-jdk-configs is in transaction  and so is
-- preferred over one in %%{_libexecdir}. If it is not in transaction, then depends
-- whether copy-jdk-configs is installed or not. If so, then configs are copied
-- (copy_jdk_configs from %%{_libexecdir} used) or not copied at all
local posix = require "posix"

if (os.getenv("debug") == "true") then
  debug = true;
  print("cjc: in spec debug is on")
else 
  debug = false;
end

SOURCE1 = "%{rpm_state_dir}/copy_jdk_configs.lua"
SOURCE2 = "%{_libexecdir}/copy_jdk_configs.lua"

local stat1 = posix.stat(SOURCE1, "type");
local stat2 = posix.stat(SOURCE2, "type");

  if (stat1 ~= nil) then
  if (debug) then
    print(SOURCE1 .." exists - copy-jdk-configs in transaction, using this one.")
  end;
  package.path = package.path .. ";" .. SOURCE1
else
  if (stat2 ~= nil) then
  if (debug) then
    print(SOURCE2 .." exists - copy-jdk-configs already installed and NOT in transaction. Using.")
  end;
  package.path = package.path .. ";" .. SOURCE2
  else
    if (debug) then
      print(SOURCE1 .." does NOT exists")
      print(SOURCE2 .." does NOT exists")
      print("No config files will be copied")
    end
  return
  end
end
arg = nil ;  -- it is better to null the arg up, no meter if they exists or not, and use cjc as module in unified way, instead of relaying on "main" method during require "copy_jdk_configs.lua"
cjc = require "copy_jdk_configs.lua"
args = {"--currentjvm", "%{uniquesuffix %{nil}}", "--jvmdir", "%{_jvmdir %{nil}}", "--origname", "%{name}", "--origjavaver", "%{javaver}", "--arch", "%{_arch}", "--temp", "%{rpm_state_dir}/%{name}.%{_arch}"}
cjc.mainProgram(args)

%post
%{post_script %{nil}}

%post headless
%{post_headless %{nil}}

%postun
%{postun_script %{nil}}

%postun headless
%{postun_headless %{nil}}

%posttrans
%{posttrans_script %{nil}}

%posttrans headless
%{alternatives_java_install %{nil}}

%post devel
%{post_devel %{nil}}

%postun devel
%{postun_devel %{nil}}

%posttrans  devel
%{posttrans_devel %{nil}}

%posttrans javadoc
%{alternatives_javadoc_install %{nil}}

%postun javadoc
%{postun_javadoc %{nil}}

%posttrans javadoc-zip
%{alternatives_javadoczip_install %{nil}}

%postun javadoc-zip
%{postun_javadoc_zip %{nil}}
%endif

%if %{include_debug_build}
%post slowdebug
%{post_script -- %{debug_suffix_unquoted}}

%post headless-slowdebug
%{post_headless -- %{debug_suffix_unquoted}}

%posttrans headless-slowdebug
%{alternatives_java_install -- %{debug_suffix_unquoted}}

%postun slowdebug
%{postun_script -- %{debug_suffix_unquoted}}

%postun headless-slowdebug
%{postun_headless -- %{debug_suffix_unquoted}}

%posttrans slowdebug
%{posttrans_script -- %{debug_suffix_unquoted}}

%post devel-slowdebug
%{post_devel -- %{debug_suffix_unquoted}}

%postun devel-slowdebug
%{postun_devel -- %{debug_suffix_unquoted}}

%posttrans  devel-slowdebug
%{posttrans_devel -- %{debug_suffix_unquoted}}

%endif

%if %{include_normal_build}
%files
# main package builds always
%{files_jre %{nil}}
%else
%files
# placeholder
%endif


%if %{include_normal_build}
%files headless
# important note, see https://bugzilla.redhat.com/show_bug.cgi?id=1038092 for whole issue
# all config/noreplace files (and more) have to be declared in pretrans. See pretrans
%{files_jre_headless %{nil}}

%files devel
%{files_devel %{nil}}

%files demo -f %{name}-demo.files
%{files_demo %{nil}}

%files src
%{files_src %{nil}}

%files javadoc
%{files_javadoc %{nil}}

# this puts huge file to /usr/share
# unluckily ti is really a documentation file
# and unluckily it really is architecture-dependent, as eg. aot and grail are now x86_64 only
# same for debug variant
%files javadoc-zip
%{files_javadoc_zip %{nil}}

%files accessibility
%{files_accessibility %{nil}}

%if %{with_openjfx_binding}
%files openjfx -f %{name}-openjfx.files

%files openjfx-devel -f %{name}-openjfx-devel.files
%endif
%endif

%if %{include_debug_build}
%files slowdebug
%{files_jre -- %{debug_suffix_unquoted}}

%files headless-slowdebug
%{files_jre_headless -- %{debug_suffix_unquoted}}

%files devel-slowdebug
%{files_devel -- %{debug_suffix_unquoted}}

%files demo-slowdebug -f %{name}-demo.files-slowdebug
%{files_demo -- %{debug_suffix_unquoted}}

%files src-slowdebug
%{files_src -- %{debug_suffix_unquoted}}

%files accessibility-slowdebug
%{files_accessibility -- %{debug_suffix_unquoted}}

%if %{with_openjfx_binding}
%files openjfx-slowdebug -f %{name}-openjfx.files-slowdebug

%files openjfx-devel-slowdebug -f %{name}-openjfx-devel.files-slowdebug
%endif
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13395 |21mr|java-atk-wrapper-0.40.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Java ATK Wrapper
Name:		java-atk-wrapper
Version:	0.40.0
Release:	2
License:	LGPLv2+
Group:		Development/Java
Url:		https://gitlab.gnome.org/GNOME/java-atk-wrapper
Source0:	https://download.gnome.org/sources/java-atk-wrapper/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	x11-tools
BuildRequires:	java-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
Requires:	java
Requires:	x11-tools
Obsoletes:	%{mklibname %{name} 1} <= 0.32.90
Obsoletes:	%{mklibname %{name} -d} <= 0.32.90

%description
Java ATK Wrapper is a implementation of ATK by using JNI technic. It
converts Java Swing events into ATK events, and send these events to
ATK-Bridge.

JAW is part of the Bonobo deprecation project. It will replaces the
former java-access-bridge.
By talking to ATK-Bridge, it keeps itself from being affected by the
change of underlying communication mechanism.

%files
%doc AUTHORS NEWS README
%license COPYING.LESSER
%{_libdir}/%{name}
%{_libdir}/jvm/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
sed -i "/dash-version/d" configure.ac
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_libdir}/%{name}
mv wrapper/java-atk-wrapper.jar %{buildroot}%{_libdir}/%{name}/
mv %{buildroot}%{_libdir}/libatk-wrapper.so %{buildroot}%{_libdir}/%{name}/
ln -s %{_libdir}/%{name}/libatk-wrapper.so %{buildroot}%{_libdir}/%{name}/libatk-wrapper.so.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13396 |21mr|java-base64-2.3.8-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname base64
Name:          java-base64
Version:       2.3.8
Release:       16
Summary:       Java class for encoding and decoding Base64 notation
# pom file license comment
# I have released this software into the Public Domain. That
# means you can do whatever you want with it. Really. You don't
# have to match it up with any other open source license -
# just use it. You can rename the files, move the Java packages,
# whatever you want. If your lawyers say you have to have a
# license, contact me, and I'll make a special release to you
# under whatever reasonable license you desire: MIT, BSD, GPL,
# whatever.
License:       Public Domain
URL:           http://iharder.net/base64/
Source0:       https://github.com/omalley/base64/archive/release-%{version}.tar.gz
Patch0:        %{name}-2.3.8-elasticsearch.patch

# test deps
BuildRequires: junit
BuildRequires: maven-local
Provides:      %{oname} = %{version}-%{release}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Base64 is a Public Domain Java class for encoding and
decoding Base64 notation. There are one-liner convenience
methods as well as Input and Output Streams.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-release-%{version}
%patch0 -p0

sed -i "s|<version>2.3.9-SNAPSHOT</version>|<version>%{version}</version>|" pom.xml

# Unwanted
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-scm-plugin
# Unwanted - disable javadoc source jar
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin

%mvn_file :%{oname} %{name}
%mvn_file :%{oname} %{oname}

%build

%mvn_build

%install
%mvn_install

(
 cd %{buildroot}%{_javadocdir}
 ln -sf %{name} %{oname}
)

%files -f .mfiles

%files javadoc -f .mfiles-javadoc
%{_javadocdir}/%{oname}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13397 |21mr|javacc-7.0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           javacc
Version:        7.0.4
Release:        3
Epoch:          0
Summary:        A parser/scanner generator for java
License:        BSD
Group:          Development/Java
URL:            http://javacc.org
Source0:        https://github.com/javacc/javacc/archive/%{version}.tar.gz

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  javacc
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java Compiler Compiler (JavaCC) is the most popular parser generator for use
with Java applications. A parser generator is a tool that reads a grammar
specification and converts it to a Java program that can recognize matches to
the grammar. In addition to the parser generator itself, JavaCC provides other
standard capabilities related to parser generation such as tree building (via
a tool called JJTree included with JavaCC), actions, debugging, etc.

%package manual
Summary:        Manual for %{name}

%description manual
Manual for %{name}.

%package demo
Summary:        Examples for %{name}
Requires:       %{name} = %{version}-%{release}

%description demo
Examples for %{name}.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

# Remove binary information in the source tar
find . -name "*.jar" -delete
find . -name "*.class" -delete

find ./examples -type f -exec sed -i 's/\r//' {} \;

%build
build-jar-repository -p bootstrap javacc

# There is maven pom which doesn't really work for building. The tests don't
# work either (even when using bundled jars).
ant jar javadoc

# The pom dependencies are also wrong
%mvn_artifact --skip-dependencies pom.xml target/javacc-%{version}.jar

%install
%mvn_file : %{name}

%mvn_install -J target/javadoc

%jpackage_script javacc '' '' javacc javacc true
ln -s %{_bindir}/javacc %{buildroot}%{_bindir}/javacc.sh
%jpackage_script jjdoc '' '' javacc jjdoc true
%jpackage_script jjtree '' '' javacc jjtree true

%files -f .mfiles
%license LICENSE
%doc README
%{_bindir}/javacc
%{_bindir}/javacc.sh
%{_bindir}/jjdoc
%{_bindir}/jjtree

%files manual
%doc www/*

%files demo
%doc examples

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13398 |21mr|javacc-maven-plugin-2.6-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           javacc-maven-plugin
Version:        2.6
Release:        28
Summary:        JavaCC Maven Plugin
License:        ASL 2.0
URL:            http://mojo.codehaus.org/javacc-maven-plugin/ 
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

#svn export http://svn.codehaus.org/mojo/tags/javacc-maven-plugin-2.6
#tar cjf javacc-maven-plugin-2.6.tar.bz2 javacc-maven-plugin-2.6
Source0:        javacc-maven-plugin-2.6.tar.bz2
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Patch0:         javacc-maven-plugin-pom.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java.dev.javacc:javacc)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)

%description
Maven Plugin for processing JavaCC grammar files.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q 
%patch0 -b .sav
cp -p %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt src/main/resources/NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE-2.0.txt src/main/resources/NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13399 |21mr|java-comment-preprocessor-6.1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if 0%{?fedora}
%bcond_with tests
%else
%bcond_with tests
%endif

%global section		devel

Summary:	The Most Powerful Multi-Pass Java Preprocessor
Name:		java-comment-preprocessor
Version:	6.1.4
Release:	5
License:	ASL 2.0

URL:		https://github.com/raydac/java-comment-preprocessor
Source0:	https://github.com/raydac/%name/archive/%version/%name-%version.tar.gz

Patch0:		java-comment-preprocessor-6.1.4-revert-junit5.patch

Group:          Development/Java
BuildArch:		noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:file-management)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
%if %{with tests}
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant-testutil)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-jar)
BuildRequires:  mvn(org.apache.maven.shared:maven-verifier)
BuildRequires:  mvn(org.mockito:mockito-all)
BuildRequires:  mvn(org.powermock:powermock-api-mockito)
BuildRequires:  mvn(org.powermock:powermock-module-junit4)
%endif

%description
It is the most powerful multi-pass preprocessor for Java
but also it can be used everywhere for text processing
if the destination technology supports Java like comment definitions.

%package javadoc
Summary:	API docs for %{name}

%description javadoc
This package contains the API Documentation for %{name}.

%prep
%autosetup -p1

# remove unpackaged and dangerous deps
%pom_remove_plugin :animal-sniffer-maven-plugin pom.xml
%pom_remove_plugin :maven-shade-plugin pom.xml

# remove any binary libs
find -name "*.jar" -or -name "*.class" | xargs rm -f

%build
%if %{with tests}
%mvn_build    -- -P'!metacheck'
%else
%mvn_build -f -- -P'!metacheck'
%endif

%install
%mvn_install

%files -f .mfiles
%license texts/LICENSE-2.0.txt
%doc texts/readme.txt

%files javadoc -f .mfiles-javadoc
%license texts/LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13400 |21mr|java_cup-0.11b-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkg_version     11b
%global with_bootstrap  0

Name:           java_cup
Version:        0.11b
Release:        11
Epoch:          2
Summary:        LALR parser generator for Java
License:        MIT
URL:            http://www2.cs.tum.edu/projects/cup/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export -r 65 https://www2.in.tum.de/repos/cup/develop/ java_cup-0.11b
# tar cjf java_cup-0.11b.tar.bz2 java_cup-0.11b/
Source0:        java_cup-%{version}.tar.bz2
# Add OSGi manifests
Source2:        %{name}-MANIFEST.MF
Source4:        %{name}-runtime-MANIFEST.MF

Patch0:         %{name}-build.patch

BuildRequires:  ant
BuildRequires:  javapackages-local
BuildRequires:  jflex
%if ! %{with_bootstrap}
BuildRequires:  java_cup >= 1:0.11a
%endif


%description
java_cup is a LALR Parser Generator for Java

%package javadoc
Summary:       Javadoc for java_cup

%description javadoc
Javadoc for java_cup

%package manual
Summary:        Documentation for java_cup

%description manual
Documentation for java_cup.

%prep
%setup -q
%patch0 -b .build

# remove all binary files
find -name "*.class" -delete

%mvn_file ':{*}' @1

%if ! %{with_bootstrap}
# remove prebuilt JFlex
rm -rf java_cup-%{version}/bin/JFlex.jar

# remove prebuilt java_cup, if not bootstrapping
rm -rf java_cup-%{version}/bin/java-cup-11.jar
%endif

%build
%if ! %{with_bootstrap}
export CLASSPATH=$(build-classpath java_cup java_cup-runtime jflex)
%endif

ant -Dcupversion=20150326 -Dsvnversion=65
find -name parser.cup -delete
ant javadoc

# inject OSGi manifests
jar ufm dist/java-cup-%{pkg_version}.jar %{SOURCE2}
jar ufm dist/java-cup-%{pkg_version}-runtime.jar %{SOURCE4}

%install
%mvn_artifact %{name}:%{name}:%{version} dist/java-cup-%{pkg_version}.jar
%mvn_artifact %{name}:%{name}-runtime:%{version} dist/java-cup-%{pkg_version}-runtime.jar

%mvn_install -J dist/javadoc

%files -f .mfiles
%doc changelog.txt
%license licence.txt

%files manual
%doc manual.html
%license licence.txt

%files javadoc -f .mfiles-javadoc
%license licence.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13401 |21mr|java-dirq-1.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname dirq
Name:		java-dirq
Version:	1.8
Release:	6
Summary:	Directory based queue
License:	ASL 2.0
URL:		https://github.com/cern-mig/%{name}
Source0:	https://github.com/cern-mig/%{name}/archive/%{srcname}-%{version}.tar.gz
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:	maven-local
BuildRequires:	mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires:	mvn(org.apache.maven.plugins:maven-source-plugin)

%description
The goal of this module is to offer a simple queue system using the underlying
file system for storage, security and to prevent race conditions via atomic
operations. It focuses on simplicity, robustness and scalability.

This module allows multiple concurrent readers and writers to interact with
the same queue.

A Perl implementation (Directory::Queue) and a Python implementation (dirq)
of the same algorithm are available so readers and writers can be written in
different programming languages.

%package javadoc
Summary:	Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{srcname}-%{version}
%pom_remove_parent
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE

%files javadoc -f .mfiles-javadoc
%doc CHANGES readme.md todo.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13402 |21mr|javaewah-1.1.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           javaewah
Version:        1.1.6
Release:        6
Summary:        A word-aligned compressed variant of the Java bitset class

License:        ASL 2.0
Group:          Development/Java
URL:            https://github.com/lemire/javaewah
Source0:        https://github.com/lemire/javaewah/archive/JavaEWAH-%{version}.tar.gz

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)


%description
JavaEWAH is a word-aligned compressed variant of the Java bitset class.
It uses a 64-bit run-length encoding (RLE) compression scheme.

The goal of word-aligned compression is not to achieve the best
compression, but rather to improve query processing time. Hence, we try
to save CPU cycles, maybe at the expense of storage. However, the EWAH
scheme we implemented is always more efficient storage-wise than an
uncompressed bitmap (implemented in Java as the BitSet class). Unlike
some alternatives, javaewah does not rely on a patented scheme.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -qn javaewah-JavaEWAH-%{version}

# Plugins that are unnecessary for RPM build
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :jacoco-maven-plugin

# Avoids JVM startup error when jacoco-maven-plugin is not in use
%pom_xpath_inject "pom:project/pom:properties" "<argLine/>"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG README.md
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13403 |21mr|java-hll-1.6.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname hll
Name:          java-hll
Version:       1.6.0
Release:       9
Summary:       Java library for the HyperLogLog algorithm
License:       ASL 2.0
URL:           https://github.com/aggregateknowledge/java-hll
Source0:       https://github.com/aggregateknowledge/java-hll/archive/v%{version}.tar.gz
# https://issues.apache.org/jira/browse/SOLR-7954
# https://github.com/aggregateknowledge/java-hll/issues/17
Patch0:        java-hll-SOLR-7954.patch

BuildRequires: maven-local
BuildRequires: mvn(it.unimi.dsi:fastutil)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.powermock:powermock-api-easymock)
BuildRequires: mvn(org.powermock:powermock-module-junit4)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HyperLogLog: approximate distinct value counting algorithm.
This library is a HyperLogLog data structure. HyperLogLog
is a fixed-size, set-like structure used for distinct value
counting with tunable precision.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%mvn_file :%{oname} %{oname}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.markdown RELEASE_NOTES.markdown
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13404 |21mr|java-libpst-0.8.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          java-libpst
Version:       0.8.1
Release:       12
Summary:       A pure Java library for the reading of Outlook PST and OST files
# see https://github.com/rjohnsondev/java-libpst/issues/23
License:       ASL 2.0 and LGPLv3
URL:           https://github.com/rjohnsondev/java-libpst/
Source0:       https://github.com/rjohnsondev/java-libpst/archive/%{version}.tar.gz
Source1:       https://www.gnu.org/licenses/lgpl.txt
BuildRequires: mvn(junit:junit)
BuildRequires: maven-local
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A library to read PST files with java,
without need for external libraries.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find -name '*.class' -print -delete
find -name '*.jar' -print -delete

%pom_xpath_set "pom:project/pom:version" %{version}
cp -p %{SOURCE1} LICENSE.LGPL.txt
sed -i 's/\r//' LICENSE.*.txt README.txt

%mvn_file com.pff:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md README.txt
%license LICENSE.APACHE-2.0.txt LICENSE.LGPL.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.APACHE-2.0.txt LICENSE.LGPL.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13405 |21mr|javamail-1.5.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           javamail
Version:        1.5.2
Release:        10
Summary:        Java Mail API
License:        CDDL-1.0 or GPLv2 with exceptions
URL:            http://www.oracle.com/technetwork/java/javamail
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source:        https://java.net/projects/javamail/downloads/download/source/javamail-%{version}-src.zip

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)

# Adapted from the classpathx-mail (and JPackage glassfish-javamail) Provides.
Provides:       javamail-monolithic = %{version}-%{release}

Provides:       javax.mail

%description
The JavaMail API provides a platform-independent and protocol-independent
framework to build mail and messaging applications.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
%{summary}.


%prep
%setup -q -c

add_dep() {
    %pom_xpath_inject pom:project "<dependencies/>" ${2}
    %pom_add_dep com.sun.mail:${1}:%{version}:provided ${2}
}

add_dep smtp mailapi
add_dep javax.mail smtp
add_dep javax.mail pop3
add_dep javax.mail imap
add_dep javax.mail mailapijar

# Remove profiles containing demos and other stuff that is not
# supposed to be deployable.
%pom_xpath_remove /pom:project/pom:profiles

# osgiversion-maven-plugin is used to set ${mail.osgiversion} property
# based on ${project.version}. We don't have osgiversion plugin in
# Fedora so we'll set ${mail.osgiversion} explicitly.
%pom_remove_plugin org.glassfish.hk2:osgiversion-maven-plugin
%pom_remove_dep javax.activation:activation
%pom_xpath_inject /pom:project/pom:properties "<mail.osgiversion>%{version}</mail.osgiversion>"
%pom_xpath_inject /pom:project/pom:build/pom:plugins/pom:plugin/pom:configuration/pom:instructions "<_nouses>true</_nouses>"

# Alternative names for super JAR containing API and implementation.
%mvn_alias com.sun.mail:mailapi javax.mail:mailapi
%mvn_alias com.sun.mail:javax.mail javax.mail:mail \
           org.eclipse.jetty.orbit:javax.mail.glassfish
%mvn_file "com.sun.mail:{javax.mail}" %{name}/@1 %{name}/mail

%build
# Some tests fail on Koji due to networking limitations
%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

install -d -m 755 %{buildroot}%{_javadir}/javax.mail/
ln -sf ../%{name}/javax.mail.jar %{buildroot}%{_javadir}/javax.mail/

%files -f .mfiles
%doc mail/src/main/java/overview.html
%doc mail/src/main/resources/META-INF/LICENSE.txt
%{_javadir}/javax.mail/

%files javadoc -f .mfiles-javadoc
%doc mail/src/main/resources/META-INF/LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13406 |21mr|java-oauth-20100601-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname oauth
Name:          java-oauth
Version:       20100601
Release:       18
Summary:       An open protocol to allow API authentication
License:       ASL 2.0
Group:          Development/Java
Url:           http://code.google.com/p/oauth/
# svn export http://oauth.googlecode.com/svn/code/java oauth-20100601
# find oauth-20100601 -name "*.bat" -delete
# find oauth-20100601 -name "*.class" -delete
# find oauth-20100601 -name "*.jar" -delete
# tar czf oauth-20100601-clean-src-svn.tar.gz oauth-20100601
Source0:       oauth-20100601-clean-src-svn.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-httpclient:commons-httpclient)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
An open protocol to allow API authentication
in a simple and standard method from desktop and
web applications.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{version}

%pom_remove_plugin :maven-source-plugin

%pom_disable_module core-old
%pom_disable_module example
%pom_disable_module test core
# jetty-embedded:6.1.11
%pom_remove_dep org.mortbay.jetty: core/httpclient4
%pom_remove_dep org.mortbay.jetty: core/test

%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet']/pom:version" 3.1.0 core/provider
%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet']/pom:artifactId" javax.servlet-api core/provider

%mvn_file :%{oname} %{oname}/%{oname}
%mvn_file :%{oname}-consumer %{oname}/%{oname}-consumer
%mvn_file :%{oname}-httpclient3 %{oname}/%{oname}-httpclient3
%mvn_file :%{oname}-httpclient4 %{oname}/%{oname}-httpclient4
%mvn_file :%{oname}-provider %{oname}/%{oname}-provider

%build

# unavailable test deps
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13407 |21mr|javapackages-tools-5.3.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%define debug_package %{nil}

# Don't generate requires on jpackage-utils and java-headless for
# provided pseudo-artifacts: com.sun:tools and sun.jdk:jconsole.
%global __requires_exclude_from %{?__requires_exclude_from:%__requires_exclude_from|}/maven-metadata/javapackages-metadata.xml$

# Disable automatic bytecode compilation for files in java-utils
# https://fedoraproject.org/wiki/Packaging:Python_Appendix#Manual_byte_compilation
%global _python_bytecompile_extra 0

%bcond_without asciidoc
# Gradle is depreceated in Fedora, but we in ROSA still build it, because too many packages depend on it
# https://src.fedoraproject.org/rpms/javapackages-tools/c/08b8c55fda13cafeca49fe7837f6435ea89af51d
# https://src.fedoraproject.org/rpms/gradle/c/4a126e8e3380eda7ceda22b18a9d9633bcd8cda8
%bcond_without gradle
%bcond_with xmvn_javadoc

# Java stack is not supported on x86_32
# Building only minimal set of packages which do not depend from Java packages
%ifarch %{ix86}
%bcond_with full
%bcond_with tests
%else
%bcond_without full
%bcond_without tests
%endif

%global python_prefix python3
%global python_interpreter %{__python3}

%global default_jdk %{?_root_prefix}%{!?_root_prefix:%{_prefix}}/lib/jvm/java-1.8.0-openjdk
%global default_jre %{?_root_prefix}%{!?_root_prefix:%{_prefix}}/lib/jvm/jre-1.8.0-openjdk

Name:           javapackages-tools
Version:        5.3.0
Release:        8
Summary:        Macros and scripts for Java packaging support
Group:          Development/Java
License:        BSD
URL:            https://github.com/fedora-java/javapackages
Source0:        https://github.com/fedora-java/javapackages/archive/%{version}.tar.gz
Patch0:         fix-path-to-objectweb-asm3-processor.patch

# XXX if-else stop working in case of noarch
#BuildArch:      noarch

BuildRequires:  coreutils
BuildRequires:  which
BuildRequires:  make
%if %{with asciidoc}
BuildRequires:  asciidoc
BuildRequires:  xmlto
%endif
BuildRequires:  %{python_prefix}-devel
BuildRequires:  %{python_prefix}-lxml
BuildRequires:  %{python_prefix}-setuptools
%if !0%{?_module_build}
# XXX python-nose is not part of any module yet, but it should get
# modularized one day, right?  mizdebsk, Sep 2017
BuildRequires:  %{python_prefix}-nose
%endif
BuildRequires:  %{python_prefix}-six

Requires:       javapackages-filesystem = %{EVRD}
Requires:       coreutils
Requires:       findutils
Requires:       which
# default JRE
Requires:       java-1.8.0-openjdk-headless

# javapackages-tools replaced jpackage-utils
Provides:       jpackage-utils = %{EVRD}
Obsoletes:      jpackage-utils < 5.3.0
Conflicts:      jpackage-utils < 5.3.0
# XXX jpackage-utils had a subpackage java-rpmbuild:
# "Contains links that set up the default java SDK which is used for
# building Mandriva rpm packages of java software."
# It is useless, but is still a BR in many packages, so provide it
Provides:       java-rpmbuild = %{EVRD}
# These could be generated automatically, but then we would need to
# depend on javapackages-local for dependency generator.
Provides:       mvn(com.sun:tools) = SYSTEM
Provides:       mvn(sun.jdk:jconsole) = SYSTEM

%description
This package provides macros and scripts to support Java packaging.

%package -n javapackages-filesystem
Summary:        Java packages filesystem layout
Group:          Development/Java
Obsoletes:      eclipse-filesystem < 2
Provides:       eclipse-filesystem = %{EVRD}

%description -n javapackages-filesystem
This package provides some basic directories into which Java packages
install their content.

%if %{with full}
%package -n maven-local
Summary:        Macros and scripts for Maven packaging support
Group:          Development/Java
Requires:       %{name} = %{EVRD}
Requires:       javapackages-local = %{EVRD}
Requires:       xmvn-minimal
Requires:       xmvn-mojo
Requires:       xmvn-connector-aether
# Common Maven plugins required by almost every build. It wouldn't make
# sense to explicitly require them in every package built with Maven.
Requires:       mvn(org.apache.maven.plugins:maven-compiler-plugin)
Requires:       mvn(org.apache.maven.plugins:maven-jar-plugin)
%if %{without xmvn_javadoc}
Requires:       mvn(org.apache.maven.plugins:maven-javadoc-plugin)
%endif
Requires:       mvn(org.apache.maven.plugins:maven-resources-plugin)
Requires:       mvn(org.apache.maven.plugins:maven-surefire-plugin)
# Tests based on JUnit are very common and JUnit itself is small.
# Include JUnit and JUnit provider for Surefire just for convenience.
Requires:       mvn(junit:junit)
Requires:       mvn(org.apache.maven.surefire:surefire-junit4)
# testng is quite common as well
Requires:       mvn(org.apache.maven.surefire:surefire-testng)

%description -n maven-local
This package provides macros and scripts to support packaging Maven artifacts.

%if %{with gradle}
%package -n gradle-local
Summary:        Local mode for Gradle
Group:          Development/Java
Requires:       %{name} = %{EVRD}
Requires:       javapackages-local = %{EVRD}
Requires:       gradle >= 2.2.1-2
Requires:       xmvn-connector-gradle

%description -n gradle-local
This package implements local mode for Gradle, which allows artifact
resolution using XMvn resolver.
%endif

%package -n ivy-local
Summary:        Local mode for Apache Ivy
Group:          Development/Java
Requires:       %{name} = %{EVRD}
Requires:       javapackages-local = %{EVRD}
Requires:       apache-ivy >= 2.3.0-8
Requires:       xmvn-connector-ivy

%description -n ivy-local
This package implements local mode for Apache Ivy, which allows
artifact resolution using XMvn resolver.

%package -n javapackages-local
Summary:        Non-essential macros and scripts for Java packaging support
Group:          Development/Java
Requires:       %{name} = %{EVRD}
Requires:       xmvn-install
Requires:       xmvn-subst
Requires:       xmvn-resolve
# Java build systems don't have hard requirement on java-devel, so it should be there
Requires:       java-1.8.0-openjdk-devel
Requires:       %{python_prefix}-javapackages = %{EVRD}
Requires:       %{python_interpreter}

%description -n javapackages-local
This package provides non-essential macros and scripts to support Java packaging.
%endif #with_full

%package -n %{python_prefix}-javapackages
Summary:        Module for handling various files for Java packaging
Group:          Development/Java
Requires:       %{python_prefix}-lxml
Requires:       %{python_prefix}-six
Obsoletes:      python-javapackages < %{EVRD}

%description -n %{python_prefix}-javapackages
Module for handling, querying and manipulating of various files for Java
packaging in Linux distributions

%prep
%setup -q -n javapackages-%{version}

%if %{without asciidoc}
sed -i '/^manpage /d' build
sed -i '/${mandir}/d' install
%endif

%patch0 -p1

%build
%configure --pyinterpreter=%{python_interpreter} \
    --default_jdk=%{default_jdk} --default_jre=%{default_jre} \
    --rpmmacrodir=%{_rpmmacrodir}
./build

%install
./install

%if %{with xmvn_javadoc}
sed -i 's|mvn_build.py|& --xmvn-javadoc|' $(find %{buildroot} -name 'macros*.fjava')
%endif
sed -e 's/.[17]$/&*/' -i files-*

%if %{without gradle}
rm -rf %{buildroot}%{_bindir}/gradle-local
rm -rf %{buildroot}%{_datadir}/gradle-local
rm -rf %{buildroot}%{_mandir}/man7/gradle_build.7
%endif

%if %{without full}
cat files-local files-gradle files-ivy | awk '{print $NF}' | while read -r line ; do rm -frv "%{buildroot}/${line}" ; done
find %{buildroot}%{_mandir} -print | sed -e 's,^%{buildroot},,g' | while read -r line
do
  if ! grep -q "$line" files-tools files-filesystem files-python ; then
    rm -fvr %{buildroot}"$line"
  fi
done
%endif

%if %{with tests}
%if !0%{?_module_build}
%check
./check
%endif
%endif

%files -f files-tools

%files -n javapackages-filesystem -f files-filesystem

%files -n %{python_prefix}-javapackages -f files-python
%license LICENSE

%if %{with full}
%files -n javapackages-local -f files-local

%files -n maven-local

%if %{with gradle}
%files -n gradle-local -f files-gradle
%endif

%files -n ivy-local -f files-ivy
%endif #with_full

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13408 |21mr|javaparser1-1.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname javaparser
%define _docdir /usr/share/doc
Group: Development/Java
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: javaparser1
Version: 1.0.11
Release: 1
Summary: Java 1.7 Parser and AST
License: GPLv3+ and LGPLv3+
# https://github.com/before/javaparser/
URL: http://javaparser.github.io/javaparser/
Source0: https://github.com/javaparser/javaparser/archive/%{oldname}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

BuildArch: noarch
Source44: import.info

Provides:      %{oldname}-core = %{EVRD}

%description
A Java 1.7 Parser with AST generation and visitor support.
The AST records the source code structure, java doc and
comments. It is also possible to change the AST nodes or
create new ones to modify the source code.

%package javadoc
Group: Development/Java
Summary: Javadoc for %{oldname}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{oldname}.

%prep
%setup -q -n %{oldname}-%{oldname}-%{version}

sed -i 's/\r//' readme.md

%mvn_file :%{oldname} %{oldname}
%mvn_compat_version : 1 %{version}

%build

# test skip http://code.google.com/p/javaparser/issues/detail?id=43
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc readme.md
%doc COPYING COPYING.LESSER

%files javadoc -f .mfiles-javadoc
%doc COPYING COPYING.LESSER

%changelog
* Mon Jun 17 2019 Igor Vlasenko <viy at altlinux.ru> 1.0.11-alt2_6jpp8
- compat build

* Tue Feb 05 2019 Igor Vlasenko <viy at altlinux.ru> 1.0.11-alt1_6jpp8
- fc29 update

* Thu Apr 19 2018 Igor Vlasenko <viy at altlinux.ru> 1.0.11-alt1_5jpp8
- java update

* Thu Nov 09 2017 Igor Vlasenko <viy at altlinux.ru> 1.0.11-alt1_4jpp8
- fc27 update

* Sun Oct 22 2017 Igor Vlasenko <viy at altlinux.ru> 1.0.11-alt1_3jpp8
- new jpp release

* Fri Nov 25 2016 Igor Vlasenko <viy at altlinux.ru> 1.0.11-alt1_2jpp8
- new version

* Tue Feb 02 2016 Igor Vlasenko <viy at altlinux.ru> 1.0.8-alt2_10jpp8
- new version

* Mon Sep 08 2014 Igor Vlasenko <viy at altlinux.ru> 1.0.8-alt2_5jpp7
- new release

* Mon Jul 28 2014 Igor Vlasenko <viy at altlinux.ru> 1.0.8-alt2_3jpp7
- new release

* Mon Jul 14 2014 Igor Vlasenko <viy at altlinux.ru> 1.0.8-alt2_1jpp7
- NMU rebuild to move poms and fragments

* Mon Sep 17 2012 Igor Vlasenko <viy at altlinux.ru> 1.0.8-alt1_1jpp7
- new version

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13409 |21mr|javaparser-3.3.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          javaparser
Version:       3.3.5
Release:       2
Summary:       Java 1 to 9 Parser and Abstract Syntax Tree for Java
License:       LGPLv3+ or ASL 2.0
Group:          Development/Java
URL:           http://javaparser.org
Source0:       https://github.com/javaparser/javaparser/archive/%{name}-parent-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(biz.aQute.bnd:bnd-maven-plugin)
BuildRequires:  mvn(net.java.dev.javacc:javacc)
BuildRequires:  mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This package contains a Java 1 to 9 Parser with AST generation and
visitor support. The AST records the source code structure, javadoc
and comments. It is also possible to change the AST nodes or create new
ones to modify the source code.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-parent-%{version}

sed -i 's/\r//' readme.md

# Remove plugins unnecessary for RPM builds
%pom_remove_plugin :animal-sniffer-maven-plugin javaparser-core
%pom_remove_plugin :maven-enforcer-plugin javaparser-core
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :coveralls-maven-plugin
%pom_remove_plugin :jacoco-maven-plugin . javaparser-testing

# Compatibility alias
%mvn_alias :javaparser-core com.google.code.javaparser:javaparser

# Fix javacc plugin name
sed -i \
  -e 's/ph-javacc-maven-plugin/javacc-maven-plugin/' \
  -e 's/com.helger.maven/org.codehaus.mojo/' \
  javaparser-core/pom.xml

# Missing plugin
%pom_remove_plugin :templating-maven-plugin javaparser-core

# Missing dep on jbehave for testing
%pom_disable_module javaparser-testing

# Only need to ship the core module
%mvn_package ":javaparser-core-generators" __noinstall
%mvn_package ":javaparser-metamodel-generator" __noinstall
%mvn_package ":javaparser-testing" __noinstall

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc readme.md changelog.md
%license LICENSE LICENSE.APACHE LICENSE.GPL LICENSE.LGPL

%files javadoc -f .mfiles-javadoc
%license LICENSE LICENSE.APACHE LICENSE.GPL LICENSE.LGPL


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13410 |21mr|javapoet-1.7.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          javapoet
Version:       1.7.0
Release:       7
Summary:       A Java API for generating .java source files
License:       ASL 2.0
URL:           https://github.com/square/javapoet
Source0:       https://github.com/square/%{name}/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

%if 0
# test dependencies
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.eclipse.jdt.core.compiler:ecj:4.4.2)
BuildRequires: mvn(org.mockito:mockito-core:1.10.16)
# missing test dependencies
BuildRequires: mvn(com.google.jimfs:jimfs:1.0)
BuildRequires: mvn(com.google.testing.compile:compile-testing:0.6)
BuildRequires: mvn(com.google.truth:truth:0.25)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A utility class which aids in generating Java source files.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin :maven-checkstyle-plugin

%mvn_file : %{name}

%build
# skip tests due to missing test dependencies
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.md README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13411 |21mr|java-service-wrapper-3.2.5-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global javaver 1.7
%global hgrev   3290d306074a
%global pname yaja-wrapper

# rpmbuild < 4.6 support
%if ! 0%{?__isa_bits}
%ifarch x86_64 ia64 ppc64 sparc64 s390x alpha ppc64le aarch64
%global __isa_bits 64
%else
%global __isa_bits 32
%endif
%endif

%global __provides_exclude_from ^%{_libdir}/%{name}/.*\.so$

# Whether to build docs too - by default this is not done as Cocoon is not
# available in Fedora.  Instead we ship a prebuilt archive of the docs
# (the doc/english dir).
%bcond_with     docs
%global cocoon  cocoon-2.0.4

Name:           java-service-wrapper
Version:        3.2.5
Release:        33
Summary:        Java service wrapper
Group:          Development/Java
License:        MIT
URL:            https://bitbucket.org/ivertex/yaja-wrapper
# DO NOT TRY TO RELEASE NEW VERSION, see http://lists.fedoraproject.org/pipermail/legal/2011-August/001706.html
Source0:        https://bitbucket.org/ivertex/yaja-wrapper/get/release-3_2_5.tar.bz2
Source1:        %{name}.template.init
# this tar has been generated using --with-docs
Source2:        %{name}-%{version}-docs.tar.bz2
%if %{with docs}
Source3:        http://archive.apache.org/dist/cocoon/BINARIES/%{cocoon}-bin.tar.gz
%endif
# POM for version 3.2.5 is not available on central, so use version 3.2.3 instead.
Source4:        http://repo1.maven.org/maven2/tanukisoft/wrapper/3.2.3/wrapper-3.2.3.pom
Patch0:         %{name}-3.2.4-cflags.patch
Patch1:         %{name}-3.2.4-jnilibpath.patch
Patch2:         %{name}-3.2.4-docbuild.patch
# Use strcpy instead sprintf to copy C string
# Forwarded upstream: https://bitbucket.org/ivertex/yaja-wrapper/issue/6
Patch3:         %{name}-3.2.5-rhbz1037144.patch
Patch98:        Use-RPM_OPT_FLAGS-on-s390x.patch
Patch99:        ppc64le-support.patch
BuildRequires:  ant
BuildRequires:  javapackages-local
BuildRequires:  gcc
BuildRequires:  make

%description
The Java Service Wrapper enables a Java application to be run as a
Unix daemon.  It also monitors the health of your application and JVM.

%package        javadoc
Summary:        API documentation for %{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description    javadoc
API documentation for %{name}.

%prep
%setup -q -n ivertex-%{pname}-%{hgrev}  -a 2
sed '/<version>/s/>.*</>%{version}</' %{SOURCE4} >pom.xml
install -pm 644 %{SOURCE1} doc/template.init
%patch0 -p1
sed -e 's|@LIBPATH@|%{_libdir}/%{name}|' %{PATCH1} | %{__patch} -p1 -F 0
%patch2 -p0
%patch3
%patch98 -p1
%patch99 -p1
%if %{with docs}
mkdir tools ; cd tools
tar xf %{SOURCE3}
unzip -q %{cocoon}/cocoon.war ; mv WEB-INF/lib %{cocoon}/
cd ..
%endif
(cd src/c; cp Makefile-linux-ppc64le-64.make Makefile-linux-aarch64-64.make)
(cd src/c; cp Makefile-linux-arm-32.make Makefile-linux-aarch32-32.make)

%build
%ant -Dbits=%{__isa_bits} -Djavac.target.version=%{javaver}
%javadoc -sourcepath src/java -Xdoclint:none -d javadoc -link %{_javadocdir}/java -author \
    -windowtitle "Java Service Wrapper API" -doctitle "Java Service Wrapper" \
    -version $(find src/java -name "*.java" -not -path "*/test/*")
%if %{with docs}
rm -r doc/english
%ant -Dbits=%{__isa_bits} doc
%endif


%install
install -Dpm 755 bin/wrapper $RPM_BUILD_ROOT%{_sbindir}/java-service-wrapper

install -dm 755 $RPM_BUILD_ROOT%{_libdir}/%{name}
install -pm 755 lib/libwrapper.so $RPM_BUILD_ROOT%{_libdir}/%{name}

%mvn_file : %{name} %{_libdir}/%{name}/wrapper
%mvn_artifact pom.xml lib/wrapper.jar

%mvn_install -J javadoc

%files -f .mfiles
%doc AboutThisRepository.txt doc/
%{_sbindir}/java-service-wrapper
%{_libdir}/java-service-wrapper/libwrapper.so
%license doc/license.txt

%files javadoc -f .mfiles-javadoc
%license doc/license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13412 |21mr|javasqlite-20150419-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# javaver nil: build for 1.5.0 and 1.6.0
# javaver something else: build only for that

# Java >= 1.7.0 stuff can't coexist in jar with older versions
%global javaver 1.8.0
%global headless -headless

%global __provides_exclude_from ^%{_libdir}/%{name}/.*\.so$

Name:           javasqlite
Version:        20150419
Release:        10
Summary:        SQLite Java Wrapper/JDBC Driver
Group:          Development/Java
License:        BSD
URL:            http://www.ch-werner.de/javasqlite/
Source0:        http://www.ch-werner.de/javasqlite/%{name}-%{version}.tar.gz
# Fedora specific, no need to send upstream.
Patch0:         %{name}-20090430-jnipath.patch

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# >= 3.4 for zeroblob stuff in %%check's test3
BuildRequires:  gcc
BuildRequires:  sqlite-devel >= 3.4
BuildRequires:  java-%{javaver}-devel
BuildRequires:  java-%{javaver}-javadoc
Requires:       jre-%{javaver}%{?headless}

%description
javasqlite is a Java wrapper including a basic JDBC driver for the
SQLite database engine. It is designed using JNI to interface to the
SQLite API.

%package        javadoc
Summary:        API documentation for %{name}
Group:          Development/Java
BuildArch:      noarch
Requires:       java-javadoc

%description    javadoc
API documentation for %{name}.


%prep
%setup -q
sed -e 's|@JNIPATH@|%{_libdir}/%{name}|' %{PATCH0} | patch -p1 --fuzz=0

sed -i -e 's/\r//g' doc/ajhowto.txt
f=ChangeLog ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f
rm doc/stylesheet.css # overrides javadoc's defaults


%build

origpath="$PATH"
# Note that --enable-load-extension has security concerns, see configure --help
common_flags="
    --with-jardir=%{_libdir}/%{name}
    --libdir=%{_libdir}/%{name}
    --without-sqlite
"


export PATH="%{_jvmdir}/java-%{javaver}/bin:$origpath" # bug 460761
%configure $common_flags --with-jdk=%{_jvmdir}/java-%{javaver}
make sqlite.jar # Java build not parallel clean
make %{?_smp_mflags}

make javadoc JAVADOCLINK=%{_javadocdir}/java


%install

make install DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/%{name}/libsqlite_jni.la
install -dm 755 %{buildroot}%{_javadocdir}/%{name}
cp -pR doc/* %{buildroot}%{_javadocdir}/%{name}


%check
origpath="$PATH"
for javaver in %{?javaver} ; do
    jdir=%{_jvmdir}/java-$javaver/bin
    export PATH="$jdir:$origpath" # bug 460761
    # test2 is for SQLite 2.x, which we don't support
    make JAVA_RUN="$jdir/java" JAVAC="$jdir/javac" test test3 testg
done


%files
%doc ChangeLog
%license license.terms
%dir %{_libdir}/%{name}/
%{_libdir}/%{name}/sqlite.jar
%{_libdir}/%{name}/libsqlite_jni.so

%files javadoc
%license license.terms
%{_javadocdir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13413 |21mr|javassist-3.18.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstream_version rel_%(sed s/\\\\./_/g <<<"%{version}")_ga

Name:           javassist
Version:        3.18.1
Release:        11
Summary:        The Java Programming Assistant provides simple Java bytecode manipulation
License:        MPLv1.1 or LGPLv2+ or ASL 2.0
URL:            http://www.csg.is.titech.ac.jp/~chiba/%{name}/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://github.com/jboss-%{name}/%{name}/archive/%{upstream_version}.tar.gz

Patch0:         0001-Remove-usage-of-junit.awtui-and-junit.swingui.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)

%description
Javassist enables Java programs to define a new class at runtime and to
modify a class file when the JVM loads it. Unlike other similar
bytecode editors, Javassist provides two levels of API: source level
and bytecode level. If the users use the source-level API, they can
edit a class file without knowledge of the specifications of the Java
bytecode. The whole API is designed with only the vocabulary of the
Java language. You can even specify inserted bytecode in the form of
source text; Javassist compiles it on the fly. On the other hand, the
bytecode-level API allows the users to directly edit a class file as
other editors.

%package javadoc
Summary:           Javadocs for javassist
Requires:          jpackage-utils

%description javadoc
javassist development documentation.

%prep
%setup -q -n %{name}-%{upstream_version}
find . -name \*.jar -type f -delete
mkdir runtest
%patch0 -p1
%pom_xpath_remove "pom:profile[pom:id='default-tools']"
%pom_add_dep com.sun:tools

%mvn_file : %{name}
%mvn_alias : %{name}:%{name}

%build
# TODO: enable tests
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc License.html Readme.html

%files javadoc -f .mfiles-javadoc
%doc License.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13414 |21mr|java-uuid-generator-3.1.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           java-uuid-generator
Version:        3.1.4
Release:        6
Epoch:          0
Summary:        A pure Java UUID Generator
License:        ASL 2.0 
Url:            http://wiki.fasterxml.com/JugHome
Source0:        https://github.com/cowtowncoder/java-uuid-generator/archive/java-uuid-generator-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml:oss-parent:pom:)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:1.2.13)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JUG is a pure java UUID generator, that can be used either
as a component in a bigger application, or as a standalone
command line tool (a la 'uuidgen'). 

JUG generates UUIDs according to the IETF UUID draft 
specification (and further clarified in UUID URN name space
IETF draft ) 8211; all 3 'official' types defined by the 
draft 8211 are supported. 

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the %{summary}.

%prep
%setup -q -n java-uuid-generator-java-uuid-generator-%{version}

# Unnecessary plugins for RPM build
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

# Fix CREDITS
pushd release-notes
iconv -f latin1 -t utf8 CREDITS > CREDITS.utf8
mv -f CREDITS.utf8 CREDITS
popd

%files -f .mfiles
%license release-notes/asl/{ASL2.0,LICENSE}
%doc release-notes/{CREDITS,FAQ,USAGE,VERSION} README.md

%files javadoc -f .mfiles-javadoc
%license release-notes/asl/{ASL2.0,LICENSE}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13415 |21mr|Java-WebSocket-1.3.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: Java-WebSocket
Version: 1.3.8
Release: 4
Summary: A barebones WebSocket client and server implementation written in 100% Java

License: MIT
URL: http://java-websocket.org/
Source0: https://github.com/TooTallNate/%{name}/archive/v%{version}.tar.gz
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(net.iharder:base64)
BuildRequires: mvn(org.json:json)

%description
A barebones WebSocket server and client implementation written in 100% Java.
The underlying classes are implemented java.nio, which allows for a non-blocking
event-driven model (similar to the WebSocket API for web browsers).

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

rm -f src/main/java/org/java_websocket/util/Base64.java
find -name '*.java' -exec sed -i 's/org.java_websocket.util.Base64/net.iharder.Base64/g' {} +
%pom_add_dep net.iharder:base64:2.3.8

%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin

%build
#unknown compile errors in tests
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.markdown
%license LICENSE

%files javadoc -f .mfiles-javadoc
%doc README.markdown
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13416 |21mr|javawriter-2.5.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          javawriter
Version:       2.5.1
Release:       9
Summary:       A Java API for generating .java source files
Group:         Development/Java
License:       ASL 2.0
URL:           https://github.com/square/javapoet
Source0:       https://github.com/square/javapoet/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

%if 0
# Test deps
BuildRequires: mvn(junit:junit)
# Unavailable test deps
BuildRequires: mvn(org.easytesting:fest-assert-core:2.0M8)
%endif

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A utility class which aids in generating Java source files.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n javapoet-%{name}-%{version}

%pom_xpath_remove "pom:dependency[pom:scope = 'test']" 

%pom_remove_plugin :maven-checkstyle-plugin

%mvn_file : %{name}

%build

# Unavailable test deps: org.easytesting:fest-assert-core:2.0M8
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.md CONTRIBUTING.md README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13417 |21mr|java-xmlbuilder-1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          java-xmlbuilder
Version:       1.1
Release:       9
Summary:       XML Builder Java library for creating XML documents
License:       ASL 2.0
Group:         Development/Java
Url:           https://github.com/jmurty/java-xmlbuilder
Source0:       https://github.com/jmurty/java-xmlbuilder/archive/v%{version}.tar.gz
BuildRequires: sonatype-oss-parent
BuildRequires: base64
# test deps
BuildRequires: junit

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
XML Builder is a utility that creates simple XML documents using relatively
sparse Java code.

It is intended to allow for quick and painless creation of XML documents 
where you might otherwise be tempted to use concatenated strings, and 
where you would rather not face the tedium and verbosity of coding with JAXP.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

# Unwanted
%pom_remove_plugin :maven-gpg-plugin
# Unwanted - disable source jar
%pom_remove_plugin :maven-source-plugin
# Unwanted - disable javadoc jar
%pom_remove_plugin :maven-javadoc-plugin

# Fix CRLF
sed -i 's/\r//' LICENSE-2.0.txt

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.md README.md
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13418 |21mr|javolution-5.5.1-0.15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedversion %{version}
Name:          javolution
Version:       5.5.1
Release:       0.15
Summary:       Java Solution for Real-Time and Embedded Systems
License:       BSD
URL:           http://javolution.org/
# svn export https://svn.kenai.com/svn/javolution~source-code-repository/Javolution/ javolution-5.5.1
# rm -r javolution-5.5.1/colapi.jar javolution-5.5.1/banner.png javolution-5.5.1/index.html javolution-5.5.1/css
# rm -r javolution-5.5.1/src/main/java/org
# tar czf javolution-5.5.1-src-svn.tar.gz javolution-5.5.1
Source0:       %{name}-%{namedversion}-src-svn.tar.gz
# http://bugs.sun.com/view_bug.do?bug_id=6904536
Patch0:        %{name}-oj7-template.patch

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: java-devel
BuildRequires: junit
BuildRequires: maven-local
BuildRequires: maven-resources-plugin
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)

%description
Javolution - Java Solution for Real-Time and Embedded Systems.
This project provides a Java library for real-time 
applications. It is maven-based and can be used to 
build multi-platform real-time applications. It uses template 
classes to generates java code for various versions of the 
Java run-time (e.g. J2ME, 1.4, GCJ, 1.5).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -qn %{name}-%{namedversion}
%patch0 -p1

# disable wagon-svn, colapi
%pom_remove_plugin javolution:colapi
%pom_xpath_remove "pom:project/pom:build/pom:extensions"

sed -i 's/\r//' LICENSE.txt

%mvn_file  "%{name}:%{name}" %{name}

%build
# random test failure in Struct for UNSIGNED32
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13419 |21mr|jaxb2-common-basics-0.9.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jaxb2-common-basics
Version:       0.9.5
Release:       10
Summary:       JAXB2 Basics
License:       BSD
Url:           https://github.com/highsource/jaxb2-basics
Source0:       https://github.com/highsource/jaxb2-basics/archive/%{version}.tar.gz

Patch0: 0001-Port-to-latest-version-of-javaparser.patch

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.javaparser:javaparser)
BuildRequires: mvn(com.vividsolutions:jts)
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-launcher)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-runtime)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-xjc)
BuildRequires: mvn(org.jvnet.jaxb2.maven2:maven-jaxb22-plugin)
BuildRequires: mvn(org.jvnet.jaxb2.maven2:maven-jaxb2-plugin-testing)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.springframework:spring-context-support)
BuildRequires: mvn(xmlunit:xmlunit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JAXB2 Basics is a part of JAXB2 Commons project which
implements plugins and tools for JAXB 2.x reference
implementation.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n jaxb2-basics-%{version}
%patch0 -p1

# Cleanup
find -name "*.bat" -print -delete
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-deploy-plugin plugins
%pom_remove_plugin :maven-shade-plugin plugins
%pom_disable_module dist
%pom_disable_module samples
%pom_disable_module tests

%pom_change_dep :ant-optional org.apache.ant:ant
%pom_change_dep -r org.springframework:spring org.springframework:spring-context-support
# rm -rf tools/src/main/java/org/jvnet/jaxb2_commons/plugin/spring
%pom_change_dep :maven-jaxb2-plugin :maven-jaxb22-plugin

%pom_xpath_set "pom:dependency[pom:artifactId = 'tools' ]/pom:groupId" com.sun
%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools' ]/pom:scope"
%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools' ]/pom:systemPath"

%pom_xpath_set "pom:plugin[pom:groupId = 'org.jvnet.jaxb2.maven2' ]/pom:artifactId" maven-jaxb22-plugin

# Fix jts package name
sed -i -e 's/com\.vividsolutions\.jts/org.locationtech.jts/' $(find -name *.java)

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md TODO.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13420 |21mr|jaxb2-fluent-api-3.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jaxb2-fluent-api
Version:       3.0
Release:       9
Summary:       JAXB2 Commons - Fluent API Plugin
License:       ASL 2.0
Group:         Development/Java
URL:           http://java.net/projects/jaxb2-commons/pages/Fluent-api
# svn export https://svn.java.net/svn/jaxb2-commons~svn/fluent-api/tags/3.0 jaxb2-fluent-api-3.0
# tar cJf jaxb2-fluent-api-3.0.tar.xz jaxb2-fluent-api-3.0
Source0:       %{name}-%{version}.tar.xz
BuildRequires: mvn(com.sun.xml.bind:jaxb-xjc)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Causes JAXB RI 2 XJC to generate additional methods that
allows method chaining. Method chaining is useful
when building object tree in memory, allowing the code
to be done in a concise way. The code that uses this plugin
can still run with any JAXB2 implementation.
  
%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find -name "*.class" -delete
find -name "*.jar" -delete

%pom_remove_plugin :maven-source-plugin

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13421 |21mr|jaxb2-maven-plugin-1.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jaxb2-maven-plugin
Version:       1.6
Release:       10
Summary:       JAXB-2 Maven Plugin
License:       ASL 2.0
Group:         Development/Java
Url:           http://www.mojohaus.org/jaxb2-maven-plugin/
# Source code avialable @ https://github.com/mojohaus/jaxb2-maven-plugin
Source0:       http://repo2.maven.org/maven2/org/codehaus/mojo/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires: mojo-parent
BuildRequires: glassfish-jaxb
BuildRequires: mvn(org.apache.maven:maven-artifact)
BuildRequires: mvn(org.apache.maven:maven-compat)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)

# test deps
BuildRequires: aopalliance
BuildRequires: cglib
BuildRequires: junit
BuildRequires: maven-plugin-testing-harness
BuildRequires: xmlunit
BuildRequires: mvn(org.xmlunit:xmlunit-legacy)
BuildRequires: maven-local
BuildRequires: maven-invoker-plugin
BuildRequires: maven-plugin-plugin

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Mojo's JAXB-2 Maven plugin is used to create an object graph from
XSDs based on the JAXB 2.1 implementation and to generate XSDs from
JAXB-annotated Java classes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

sed -i 's/\r//' LICENSE.txt

## fix dependency xmlunit
%pom_change_dep xmlunit:xmlunit org.xmlunit:xmlunit-legacy:2.6.3

# used only mvn3 apis
%pom_remove_dep org.apache.maven:maven-project
%pom_add_dep org.apache.maven:maven-compat

# missing build deps
# om_add_dep org.glassfish.jaxb:jaxb-runtime
%pom_xpath_set "pom:dependencies/pom:dependency[pom:artifactId ='jaxb-jxc']/pom:groupId" org.glassfish.jaxb
%pom_xpath_set "pom:dependencies/pom:dependency[pom:artifactId ='jaxb-xjc']/pom:groupId" org.glassfish.jaxb

# missing test deps
%pom_add_dep aopalliance:aopalliance::test
%pom_add_dep net.sf.cglib:cglib::test

# Disable integration tests
%pom_xpath_remove "pom:profiles"

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13422 |21mr|jaxen-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without dom4j

Name:           jaxen
Summary:        An XPath engine written in Java
Epoch:          0
Version:        1.2.0
Release:        2
License:        BSD

URL:            https://github.com/jaxen-xpath/jaxen
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(jdom:jdom)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(xerces:xercesImpl)
BuildRequires:  mvn(xml-apis:xml-apis)
%if %{with dom4j}
BuildRequires:  mvn(dom4j:dom4j)
%endif

%description
Jaxen is an open source XPath library written in Java. It is adaptable
to many different object models, including DOM, XOM, dom4j, and JDOM.
Is it also possible to write adapters that treat non-XML trees such as compiled
Java byte code or Java beans as XML, thus enabling you to query these trees
with XPath too.


%package        demo
Summary:        Samples for %{name}
Requires:       %{name} = 0:%{version}-%{release}

%description    demo
%{summary}.


%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
%{summary}.


%prep
%setup -q

%pom_remove_plugin :maven-source-plugin

%if %{without dom4j}
rm -rf src/java/main/org/jaxen/dom4j
%pom_remove_dep dom4j:dom4j
%endif

rm -rf src/java/main/org/jaxen/xom
%pom_remove_dep xom:xom

%mvn_file : %{name}


%build
%mvn_build -f


%install
%mvn_install

# demo
install -d -m 755 %{buildroot}%{_datadir}/%{name}/samples
cp -pr src/java/samples/* %{buildroot}%{_datadir}/%{name}/samples


%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt

%files demo
%{_datadir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13423 |21mr|jaxws-undertow-httpspi-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jaxws-undertow-httpspi
Version:       1.0.1
Release:       7
Summary:       Undertow to JAXWS 2.2 HTTP SPI bridge
Group:         Development/Java
# Missing license file: 
# https://github.com/jbossws/jaxws-undertow-httpspi/issues/1
# https://issues.jboss.org/browse/JBWS-4023
License:       LGPLv2+
URL:           http://jbossws.jboss.org/
Source0:       https://github.com/jbossws/jaxws-undertow-httpspi/archive/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(io.undertow:undertow-core)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.xml.ws:jboss-jaxws-api_2.2_spec)
BuildRequires: mvn(org.jboss.ws:jbossws-parent:pom:)
# test deps
# BuildRequires: mvn(org.apache.cxf:cxf-rt-frontend-jaxws:2.7.13)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This package contains the JBoss httpserver to JAXWS 2.2 HTTP SPI bridge.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}

%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13424 |21mr|jberet-1.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jberet
Version:       1.2.1
Release:       6
Summary:       Batch Applications Implementation
Group:         Development/Java
License:       EPL and ASL 2.0
URL:           https://github.com/jberet
Source0:       https://github.com/jberet/jsr352/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: graphviz
BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.h2database:h2)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.infinispan:infinispan-commons)
BuildRequires: mvn(org.infinispan:infinispan-core)
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.apiviz:apiviz)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires: mvn(org.jboss.spec.javax.batch:jboss-batch-api_1.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.jboss.weld:weld-core)
BuildRequires: mvn(org.jboss.weld.se:weld-se)
BuildRequires: mvn(org.jgroups:jgroups)
BuildRequires: mvn(org.mongodb:mongo-java-driver)
BuildRequires: mvn(org.wildfly.security:wildfly-security-manager)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR 352: Batch Applications for the Java Platform implementation classes

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jsr352-%{namedversion}

%pom_disable_module jberet-distribution
%pom_disable_module tck-porting-impl
%pom_disable_module test-apps
# These BRs still are not available:
# org.mongojack:mongojack:2.3.0
# org.beanio:beanio:2.1.0
# com.fasterxml:aalto-xml:0.9.11
%pom_disable_module jberet-support

cp -p jberet-distribution/src/main/resources/LICENSE.txt .

%build
# Tests run: 8, Failures: 0, Errors: 3, Skipped: 1
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md images
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13425 |21mr|jbig2dec-0.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname jbig2dec %{major}
%define devname %mklibname jbig2dec -d

Summary:	A decoder implementation of the JBIG2 image compression format
Name:		jbig2dec
Version:	0.19
Release:	2
License:	GPLv2+
Group:		Graphics
Url:		http://jbig2dec.sourceforge.net/
Source0:	https://github.com/ArtifexSoftware/jbig2dec/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch6:		1001_ignore_python_test.patch
Patch8:		2001_disable_memento.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool

%description
jbig2dec is a decoder implementation of the JBIG2 image compression format.
JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit
monochrome) images at moderately high resolution, and in particular scanned
paper documents. In this domain it is very efficient, offering compression
ratios on the order of 100:1.

%files
%{_bindir}/jbig2dec
%{_mandir}/man1/jbig2dec.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A decoder implementation of the JBIG2 image compression format
Group:		System/Libraries

%description -n %{libname}
jbig2dec is a decoder implementation of the JBIG2 image compression format.
JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit
monochrome) images at moderately high resolution, and in particular scanned
paper documents. In this domain it is very efficient, offering compression
ratios on the order of 100:1.

This package provides the shared jbig2dec library.

%files -n %{libname}
%doc CHANGES COPYING LICENSE README
%{_libdir}/libjbig2dec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library and header files for development with jbig2dec
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
jbig2dec is a decoder implementation of the JBIG2 image compression format.
JBIG2 is designed for lossy or lossless encoding of 'bilevel' (1-bit
monochrome) images at moderately high resolution, and in particular scanned
paper documents. In this domain it is very efficient, offering compression
ratios on the order of 100:1.

This package is only needed if you plan to develop or compile applications
which requires the jbig2dec library.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/jbig2dec.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix strange perms
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

%build
#libtoolize --copy --force; aclocal; autoheader; autoconf; automake --foreign --copy --add-missing
./autogen.sh
%configure --disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13426 |21mr|jbigkit-2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname jbig %{major}
%define devname %mklibname jbig -d

Summary:	The JBIG-KIT
Name:		jbigkit
Version:	2.1
Release:	2
License:	GPLv2+
Group:		Graphics
URL:		http://www.cl.cam.ac.uk/~mgk25/jbigkit/
Source0:	http://www.cl.cam.ac.uk/~mgk25/download/%{name}-%{version}.tar.gz
Patch0:         jbigkit-2.1-shlib.patch
Patch1:         jbigkit-2.0-warnings.patch
Patch2:         jbigkit-ldflags.patch
# patch for coverity issues - backported from upstream
Patch3:         jbigkit-covscan.patch
BuildRequires:	libtool

%description
JBIG-KIT implements a highly effective data compression algorithm for bi-level
high-resolution images such as fax pages or scanned documents.

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Shared library for The JBIG-KIT
Group:		System/Libraries

%description -n %{libname}
JBIG-KIT implements a highly effective data compression algorithm for bi-level
high-resolution images such as fax pages or scanned documents.

This package provides the shared JBIG-KIT library.

%files -n %{libname}
%doc ANNOUNCE CHANGES COPYING
%{_libdir}/libjbig.so.%{major}*
%{_libdir}/libjbig85.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library and header files for development with JBIG-KIT
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	jbig-devel = %{EVRD}

%description -n %{devname}
JBIG-KIT implements a highly effective data compression algorithm for bi-level
high-resolution images such as fax pages or scanned documents.

This package is only needed if you plan to develop or compile applications
which requires the libjbig library.

%files -n %{devname}
%doc INSTALL TODO pbmtools/*.txt libjbig/*.txt
%{_includedir}/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix strange perms
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

%build
make \
	CFLAGS="%{optflags} -fPIC -DPIC" \
	LDFLAGS="%{ldflags}" \
	prefix=%{_prefix} \
	libdir=%{_libdir}

%install
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

install -p -m0755 libjbig/libjbig.so.%{version} %{buildroot}/%{_libdir}
install -p -m0755 libjbig/libjbig85.so.%{version} %{buildroot}/%{_libdir}
ln -sf libjbig.so.%{version} %{buildroot}/%{_libdir}/libjbig.so
ln -sf libjbig85.so.%{version} %{buildroot}/%{_libdir}/libjbig85.so

install -p -m0644 libjbig/jbig.h %{buildroot}%{_includedir}
install -p -m0644 libjbig/jbig85.h %{buildroot}%{_includedir}
install -p -m0644 libjbig/jbig_ar.h %{buildroot}%{_includedir}

install -p -m0755 pbmtools/???to??? %{buildroot}%{_bindir}
install -p -m0755 pbmtools/???to???85 %{buildroot}%{_bindir}
install -p -m0644 pbmtools/*.1 %{buildroot}%{_mandir}/man1
# cleanup
rm -f %{buildroot}%{_libdir}/*.a

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13427 |21mr|jbosh-0.8.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%if 0%{?fedora}
# Unavailable test deps
# xLightweb depend on xSocket, but the
# active development of xSocket has been stopped.
# Currently xSocket supports bug-fixes only.
%bcond_with xlightweb
%endif

Name:          jbosh
Version:       0.8.0
Release:       9
Summary:       XEP-0124: Bidirectional-streams Over Synchronous HTTP (BOSH)
License:       ASL 2.0
URL:           https://github.com/igniterealtime/jbosh
Source0:       https://github.com/igniterealtime/jbosh/archive/%{version}.tar.gz
Source1:       http://repo1.maven.org/maven2/org/igniterealtime/jbosh/jbosh/%{version}/jbosh-%{version}.pom
# LICENSE file was added @ https://github.com/igniterealtime/jbosh/commit/6b09a889942abe289f6c89f642add142e57bd88e
Source2:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(xpp3:xpp3)

%if %{with xlightweb}
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.xlightweb:xlightweb)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A maintained fork of com.kenai.jbosh for XEP-0124:
Bidirectional-streams Over Synchronous HTTP (BOSH).
This library is used by Smack to support XEP-206:
XMPP over BOSH. In contrast to org.kenai.jbosh,
this jBOSH library uses the Apache Commons HttpClient 4.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# cleanup
find . -name "*.class" -print -delete
find . -name "*.dll" -print -delete
find . -name "*.jar" -print  -delete

cp -p %{SOURCE1} pom.xml
cp -p %{SOURCE2} LICENSE
sed -i 's/\r//' LICENSE

%pom_add_plugin org.apache.felix:maven-bundle-plugin . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>\${project.groupId}</Bundle-SymbolicName>
    <Bundle-Name>\${project.artifactId}</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <addMavenDescriptor>false</addMavenDescriptor>
  </archive>
</configuration>"

mkdir -p target/classes/{META-INF/services,org.jivesoftware.jbosh}

%if %{with xlightweb}
# ComparisonFailure: expected:<gzip> but was:<null>
rm -r src/test/java/org/igniterealtime/jbosh/XEP0124Section07Test.java
# Exception: test timed out after 5000 milliseconds
rm -r src/test/java/org/igniterealtime/jbosh/XEP0124Section09Test.java \
 src/test/java/org/igniterealtime/jbosh/XEP0124Section17Test.java
# Exception: test timed out after 3000 milliseconds
rm -r src/test/java/org/igniterealtime/jbosh/XEP0124Section11Test.java
%else
%pom_remove_dep org.xlightweb:xlightweb
%endif

%mvn_file : %{name}

%build

%if %{without xlightweb}
opts="-f"
%endif
%mvn_build $opts -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13428 |21mr|jboss-annotations-1.2-api-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-annotations-1.2-api
Version:       1.0.2
Release:       1
Summary:       Common Annotations 1.2 API
License:       CDDL or GPLv2 with exceptions
URL:           https://github.com/jboss/jboss-annotations-api_spec
Source0:       https://github.com/jboss/jboss-annotations-api_spec/archive/jboss-annotations-api_1.2_spec-%{namedversion}.tar.gz
Source1:       cddl.txt

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This package contains Common Annotations 1.2 API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-annotations-api_spec-jboss-annotations-api_1.2_spec-%{namedversion}

cp %{SOURCE1} .

%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license cddl.txt LICENSE

%files javadoc -f .mfiles-javadoc
%license cddl.txt LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13429 |21mr|jboss-batch-1.0-api-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-batch-1.0-api
Version:          1.0.0
Release:          11
Summary:          Batch Applications 1.0 API
License:          ASL 2.0
URL:              http://www.jboss.org
Source0:          https://github.com/jboss/jboss-batch-api_spec/archive/jboss-batch-api_1.0_spec-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(javax.enterprise:cdi-api)
BuildRequires:    mvn(javax.inject:javax.inject)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
#BuildRequires:    maven-enforcer-plugin
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR 352: Batch Applications for the Java Platform API classes

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-batch-api_spec-jboss-batch-api_1.0_spec-%{namedversion}

%pom_remove_plugin :maven-source-plugin

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README*
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13430 |21mr|jboss-classfilewriter-1.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-classfilewriter
Version:          1.1.2
Release:          6
Summary:          JBoss Class File Writer
License:          ASL 2.0
URL:              https://github.com/jbossas/jboss-classfilewriter
Source0:          https://github.com/jbossas/jboss-classfilewriter/archive/%{namedversion}.tar.gz
# https://github.com/jbossas/jboss-classfilewriter/issues/11
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

%description
This package contains JBoss Class File Writer

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13431 |21mr|jboss-common-beans-2.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-common-beans
Version:       2.0.0
Release:       7
Summary:       JBoss Common Beans
License:       LGPLv2 and ASL 2.0
URL:           http://www.jboss.org
Source0:       https://github.com/jboss/jboss-common-beans/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JBoss Property Editors library. Contains set of Property Editors for commonly
used java types, as well as alternative version of Property Editors provided by
JDK. It also contains simple utility classes which ease tasks related to
property edition.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# Build fails
%pom_remove_plugin :maven-failsafe-plugin
%pom_remove_plugin :maven-checkstyle-plugin

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13432 |21mr|jboss-common-core-2.5.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-common-core
Version:          2.5.0
Release:          7
Summary:          JBoss Common Classes
# Under Public Domain license src/main/java/org/jboss/util/Base64.java
License:          ASL 2.0 and Public Domain
URL:              http://www.jboss.org
Source0:          https://github.com/jboss/jboss-common-core/archive/%{name}-%{namedversion}.tar.gz
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
Provides:         bundled(java-base64) = 2.1

%description
JBoss Common Core Utility classes

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}

# The URLLister* family of classes was removed because the
# apache-slide:webdavlib is a dead project and
# the classes aren't used in JBoss AS 7 at all
rm src/main/java/org/jboss/net/protocol/URLLister.java \
 src/main/java/org/jboss/net/protocol/URLListerBase.java \
 src/main/java/org/jboss/net/protocol/URLListerFactory.java \
 src/main/java/org/jboss/net/protocol/file/FileURLLister.java

%pom_change_dep org.jboss.logging:jboss-logging-spi org.jboss.logging:jboss-logging

# javascript not allowed in javadoc. this is a bit weird
find ./ -name "package.html" -exec sed -i "s/javascript/java script/g" {} +

# AssertionFailedError: expected:<333> but was:<324>
rm src/test/java/org/jboss/test/util/test/xml/resolver/JBossEntityResolverUnitTestCase.java

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13433 |21mr|jboss-concurrency-1.0-api-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-concurrency-1.0-api
Version:          1.0.0
Release:          7
Summary:          Concurrency Utilities for JavaEE
License:          CDDL or GPLv2 with exceptions
Url:              http://www.jboss.org
Source0:          https://github.com/jboss/jboss-javaee-concurrency-api_spec/archive/jboss-concurrency-api_1.0_spec-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR-000236 Concurrency Utilities API Classe

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-javaee-concurrency-api_spec-jboss-concurrency-api_1.0_spec-%{namedversion}

# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13434 |21mr|jboss-connector-1.6-api-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-connector-1.6-api
Version:          1.0.1
Release:          10
Summary:          Connector Architecture 1.6 API
License:          CDDL or GPLv2 with exceptions
URL:              http://www.jboss.org

Source0:          https://github.com/jboss/jboss-connector-api_spec/archive/jboss-connector-api_1.6_spec-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec)
BuildRequires:    xmvn

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java EE Connector Architecture 1.6 API classes

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-connector-api_spec-jboss-connector-api_1.6_spec-%{namedversion}

%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13435 |21mr|jboss-connector-1.7-api-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-connector-1.7-api
Version:          1.0.1
Release:          1
Summary:          Connector Architecture 1.7 API
License:          CDDL or GPLv2 with exceptions
URL:              https://github.com/jboss/jboss-connector-api_spec
Source0:          https://github.com/jboss/jboss-connector-api_spec/archive/jboss-connector-api_1.7_spec-%{namedversion}.tar.gz
Source1:          cddl.txt

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java EE Connector Architecture 1.7 API classes

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-connector-api_spec-jboss-connector-api_1.7_spec-%{namedversion}

%pom_remove_plugin :maven-source-plugin

cp %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license cddl.txt LICENSE

%files javadoc -f .mfiles-javadoc
%license cddl.txt LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13436 |21mr|jboss-dmr-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-dmr
Version:          1.5.0
Release:          1
Summary:          JBoss DMR
License:          LGPLv2+
URL:              https://github.com/jbossas/jboss-dmr
Source0:          https://github.com/jbossas/jboss-dmr/archive/%{namedversion}.tar.gz
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(com.google.code.cookcc:cookcc)
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss.apiviz:apiviz:pom:)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
%description
This package contains the Dynamic Model Representation.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin :maven-checkstyle-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13437 |21mr|jboss-ejb-3.1-api-1.0.2-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-ejb-3.1-api
Version:          1.0.2
Release:          20
Summary:          EJB 3.1 API
License:          CDDL or GPLv2 with exceptions
Url:              http://www.jboss.org
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          https://github.com/jboss/jboss-ejb-api_spec/archive/jboss-ejb-api_3.1_spec-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.xml.rpc:jboss-jaxrpc-api_1.1_spec)


%description
The Java EJB 3.1 API classes.

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-ejb-api_spec-jboss-ejb-api_3.1_spec-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13438 |21mr|jboss-ejb-3.2-api-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global apiversion 3.2
%global oname jboss-ejb-api_%{apiversion}_spec
%global pname jboss-ejb-api_spec
Name:          jboss-ejb-3.2-api
Version:       1.0.0
Release:       7
Summary:       Enterprise JavaBeans 3.2 API
License:       CDDL or GPLv2 with exceptions
URL:           https://github.com/jboss/jboss-ejb-api_spec
Source0:       https://github.com/jboss/jboss-ejb-api_spec/archive/%{oname}-%{namedversion}.tar.gz
Source1:       http://jcp.org/aboutJava/communityprocess/cddl.txt

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.spec.javax.xml.rpc:jboss-jaxrpc-api_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR 345: Enterprise JavaBeans 3.2 API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{pname}-%{oname}-%{namedversion}
# Unwanted build source jar
%pom_remove_plugin :maven-source-plugin

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," LICENSE
cp -p %{SOURCE1} .

%mvn_file :%{oname} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license cddl.txt LICENSE

%files javadoc -f .mfiles-javadoc
%doc README
%license cddl.txt LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13439 |21mr|jboss-ejb3-ext-api-2.2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-ejb3-ext-api
Version:          2.2.0
Release:          8
Summary:          JBoss EJB 3 Extension API
License:          LGPLv3+
URL:              http://www.jboss.org/ejb3
Source0:          https://github.com/wildfly/jboss-ejb3-ext-api/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

%description
JBoss EJB 3 API for Bean Providers

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13440 |21mr|jboss-ejb-client-2.1.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-ejb-client
Version:       2.1.4
Release:       6
Summary:       JBoss EJB client
# https://issues.jboss.org/browse/EJBCLIENT-160
License:       LGPLv2+
URL:           http://www.jboss.org/
Source0:       https://github.com/jbossas/jboss-ejb-client/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

Patch0:        jboss-ejb-client-2.1.4-remove-ambiguous-reference-to-debugf.patch

BuildRequires: maven-local
BuildRequires: mvn(java_cup:java_cup)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.byteman:byteman)
BuildRequires: mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires: mvn(org.jboss.byteman:byteman-install)
BuildRequires: mvn(org.jboss.byteman:byteman-submit)
BuildRequires: mvn(org.jboss.logging:jboss-logging) >= 3.1.4.GA
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor:1)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling-river)
BuildRequires: mvn(org.jboss.remoting:jboss-remoting)
BuildRequires: mvn(org.jboss.sasl:jboss-sasl)
BuildRequires: mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec)
BuildRequires: mvn(org.jboss.xnio:xnio-api)
BuildRequires: mvn(org.jboss.xnio:xnio-nio)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Client library for EJB applications working against Wildfly.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p1

%pom_xpath_set pom:properties/pom:version.org.jboss.logging.jboss-logging-processor 1

# Dont work properly
%pom_remove_plugin :maven-checkstyle-plugin

%build

# NoClassDefFoundError: Could not initialize class org.jboss.remoting3.remote.RemoteLogger
%mvn_build -f

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13441 |21mr|jboss-el-2.2-api-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:         jboss-el-2.2-api
Version:      1.0.5
Release:      1
Summary:      Expression Language 2.2 API
License:      CDDL or GPLv2 with exceptions

URL:          https://github.com/jboss/jboss-el-api_spec
Source0:      %{url}/archive/jboss-el-api_2.2_spec-%{namedversion}.tar.gz
Source1:      cddl.txt

Group:          Development/Java
BuildArch:    noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

%description
Expression Language 2.2 API classes.

%package javadoc
Summary: Javadocs for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-el-api_spec-jboss-el-api_2.2_spec-%{namedversion}

%pom_remove_plugin :maven-source-plugin

cp %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license cddl.txt LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license cddl.txt LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13442 |21mr|jboss-el-3.0-api-1.0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-el-3.0-api
Version:          1.0.5
Release:          7
Summary:          JSR-341 Expression Language 3.0 API
License:          (CDDL or GPLv2 with exceptions) and ASL 2.0
Url:              https://github.com/jboss/jboss-el-api_spec
Source0:          https://github.com/jboss/jboss-el-api_spec/archive/jboss-el-api_3.0_spec-%{namedversion}.tar.gz
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:          cddl.txt

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JSR-341 Expression Language 3.0 API classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-el-api_spec-jboss-el-api_3.0_spec-%{namedversion}

cp %{SOURCE1} .
cp %{SOURCE2} .

%pom_remove_plugin :maven-source-plugin

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE cddl.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE cddl.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13443 |21mr|jboss-iiop-client-1.0.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-iiop-client
Version:          1.0.0
Release:          18
Summary:          JBoss IIOP Client
License:          LGPLv2+
URL:              http://www.jboss.org/jbossiiop
Source0:          https://github.com/jbossas/jboss-iiop-client/archive/1.0.0.Final.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)


%description
Client library for EJB applications working against JBoss AS using
the IIOP protocol

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-iiop-client-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13444 |21mr|jboss-integration-6.0.0-0.11.CR1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .CR1
%global namedversion %{version}%{?namedreltag}

Name:             jboss-integration
Version:          6.0.0
Release:          0.11%{namedreltag}
Summary:          JBoss Integration
License:          LGPLv2+
URL:              http://www.jboss.org

# svn export http://anonsvn.jboss.org/repos/jbossas/projects/integration/tags/6.0.0.CR1/ jboss-integration-6.0.0.CR1
# tar -zcvf jboss-integration-6.0.0.CR1.tar.gz jboss-integration-6.0.0.CR1
Source0:          jboss-integration-%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    jacorb
BuildRequires:    maven-local
BuildRequires:    maven-compiler-plugin
BuildRequires:    maven-enforcer-plugin
BuildRequires:    maven-install-plugin
BuildRequires:    maven-jar-plugin
BuildRequires:    maven-javadoc-plugin
BuildRequires:    jboss-parent
BuildRequires:    jboss-transaction-1.1-api

%description
The JBoss integration classes

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-integration-%{namedversion}

# Not needed
%pom_disable_module jboss-classloading-spi
%pom_disable_module jboss-deployment-spi
%pom_disable_module jboss-transaction-spi
%pom_disable_module jboss-scanning-spi
%pom_disable_module jboss-annotations-spi
%pom_disable_module jboss-jca-spi
%pom_disable_module build

%pom_remove_dep "org.jboss.javaee:jboss-transaction-api" jboss-corba-ots-spi/pom.xml
%pom_add_dep "org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec" jboss-corba-ots-spi/pom.xml

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," build/lgpl.txt

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc build/lgpl.txt

%files javadoc -f .mfiles-javadoc
%doc build/lgpl.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13445 |21mr|jboss-interceptors-1.1-api-1.0.2-0.19.20120319git49a904
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .20120319git49a904
%global namedversion %{version}%{?namedreltag}

Name:             jboss-interceptors-1.1-api
Version:          1.0.2
Release:          0.19%{namedreltag}
Summary:          Interceptors 1.1 API
License:          CDDL or GPLv2 with exceptions
URL:              http://www.jboss.org
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# git clone git://github.com/jboss/jboss-interceptors-api_spec.git jboss-interceptors-1.1-api
# cd jboss-interceptors-1.1-api/ && git archive --format=tar --prefix=jboss-interceptors-1.1-api/ 49a90471d8108b5b2a2da6063b5591a9f41ed24a | xz > jboss-interceptors-1.1-api-1.0.2.20120319git49a904.tar.xz
Source0:          jboss-interceptors-1.1-api-%{namedversion}.tar.xz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)


%description
This package contains The JavaEE Interceptors 1.1 API classes from JSR 318.

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-interceptors-1.1-api

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13446 |21mr|jboss-interceptors-1.2-api-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global oname jboss-interceptors-api_1.2_spec

Name:          jboss-interceptors-1.2-api
Version:       1.0.0
Release:       11
Summary:       Java EE Interceptors 1.2 API
License:       CDDL or GPLv2 with exceptions
URL:           https://github.com/jboss/jboss-interceptors-api_spec
Source0:       https://github.com/jboss/jboss-interceptors-api_spec/archive/jboss-interceptors-api_1.2_spec-%{namedversion}.tar.gz

BuildRequires: jboss-parent

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin

Group:          Development/Java
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java EE  Interceptors 1.2 API classes from JSR 318.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n jboss-interceptors-api_spec-jboss-interceptors-api_1.2_spec-%{namedversion}

# Fix incorrect-fsf-address
sed -i "s,59,51,;s,Temple Place,Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," LICENSE

%mvn_file :%{oname} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13447 |21mr|jboss-invocation-1.4.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-invocation
Version:          1.4.1
Release:          6
Summary:          JBoss Invocation API 
License:          LGPLv2+
URL:              https://github.com/jbossas/jboss-invocation
Source0:          https://github.com/jbossas/jboss-invocation/archive/%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.classfilewriter:jboss-classfilewriter)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires:    mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires:    mvn(org.wildfly.security:wildfly-security-manager)

%description
This package contains JBoss Invocation API

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-invocation-%{namedversion}

%pom_remove_plugin "org.jboss.bridger:bridger"
%pom_remove_plugin "org.jboss.seven2six:seven2six"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13448 |21mr|jboss-j2eemgmt-1.1-api-1.0.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global oname jboss-j2eemgmt-api_1.1_spec
Name:          jboss-j2eemgmt-1.1-api
Version:       1.0.1
Release:       16
Summary:       Java EE Management 1.1 API
License:       LGPLv2+
URL:           http://www.jboss.org/
# git clone git://github.com/jboss/jboss-j2eemgmt-api_spec.git jboss-j2eemgmt-1.1-api
# cd jboss-j2eemgmt-1.1-api/ && git archive --format=tar --prefix=jboss-j2eemgmt-1.1-api/ jboss-j2eemgmt-api_1.1_spec-1.0.1.Final | xz > jboss-j2eemgmt-1.1-api-1.0.1.Final.tar.xz
Source0:       %{name}-%{namedversion}.tar.xz

BuildRequires: java-devel
BuildRequires: jboss-specs-parent

BuildRequires: jboss-ejb-3.1-api

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR-77: Java EE Management 1.1 API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}

%build

%mvn_file :%{oname} %{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13449 |21mr|jboss-jacc-1.4-api-1.0.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:           jboss-jacc-1.4-api
Version:        1.0.2
Release:        17
Summary:        JBoss JACC 1.4 API
License:        CDDL or GPLv2 with exceptions
URL:            http://www.jboss.org

# git clone git://github.com/jboss/jboss-jacc-api_spec.git jboss-jacc-1.4-api
# cd jboss-jacc-1.4-api/ && git archive --format=tar --prefix=jboss-jacc-1.4-api/ jboss-jacc-api_1.4_spec-1.0.2.Final | xz > jboss-jacc-1.4-api-1.0.2.Final.tar.xz

Source0:        %{name}-%{namedversion}.tar.xz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.jboss:jboss-parent:pom:)
BuildRequires:  mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JBoss Java Authorization Contract for Containers 1.4 API.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}

%mvn_file : %{name}/%{name} %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README LICENSE

%files javadoc -f .mfiles-javadoc
%doc LICENSE README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13450 |21mr|jboss-jacc-1.5-api-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jacc-1.5-api
Version:          1.0.0
Release:          11
Summary:          JACC 1.5 API (JSR-115)
Group:            Development/Java
License:          (CDDL or GPLv2 with exceptions) or LGPLv2+
URL:              https://github.com/jboss/jboss-jacc-api_spec
Source0:          https://github.com/jboss/jboss-jacc-api_spec/archive/jboss-jacc-api_1.5_spec-%{namedversion}.tar.gz

BuildRequires:    jboss-parent
BuildRequires:    jboss-servlet-3.1-api
BuildRequires:    junit
BuildRequires:    maven-local
BuildRequires:    maven-enforcer-plugin
BuildRequires:    maven-plugin-bundle
BuildRequires:    maven-surefire-provider-junit

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Provides:         javax.security.jacc

%description
JSR-000115 Java Authorization Contract for Containers 1.5 API

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jacc-api_spec-jboss-jacc-api_1.5_spec-%{namedversion}

%mvn_file :{jboss-jacc-api_1.5_spec} %{name} %{name}/%{name} javax.security.jacc/%{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README LICENSE

%files javadoc -f .mfiles-javadoc
%doc README LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13451 |21mr|jboss-jad-1.2-api-1.0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-jad-1.2-api
Version:       1.0.1
Release:       19
Summary:       JavaEE Application Deployment 1.2 API
License:       CDDL or GPLv2 with exceptions
URL:           http://www.jboss.org

# git clone git://github.com/jboss/jboss-jad-api_spec.git
# cd jboss-jad-api_spec/ && git archive --format=tar --prefix=jboss-jad-1.2-api/ jboss-jad-api_1.2_spec-1.0.1.Final | xz > jboss-jad-1.2-api-1.0.1.Final.tar.xz
Source0:       jboss-jad-1.2-api-%{namedversion}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-common-core)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JavaEE Application Deployment 1.2 API classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jad-1.2-api

# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%doc README
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13452 |21mr|jboss-jaspi-1.0-api-1.0.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jaspi-1.0-api
Version:          1.0.1
Release:          18
Summary:          JBoss Java Authentication SPI for Containers 1.0 API
License:          CDDL or GPLv2 with exceptions
URL:              http://www.jboss.org

# git clone git://github.com/jboss/jboss-jaspi-api_spec.git
# cd jboss-jaspi-api_spec/ && git archive --format=tar --prefix=jboss-jaspi-1.0-api/ jboss-jaspi-api_1.0_spec-1.0.1.Final | xz > jboss-jaspi-1.0-api-1.0.1.Final.tar.xz
Source0:          %{name}-%{namedversion}.tar.xz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    xmvn

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Authentication SPI for Containers 1.0 API classes

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jaspi-1.0-api

%pom_remove_plugin :maven-source-plugin

# Fixing JDK7 ASCII issues
files='
src/main/java/javax/security/auth/message/callback/PasswordValidationCallback.java
src/main/java/javax/security/auth/message/config/AuthConfigFactory.java
src/main/java/javax/security/auth/message/config/AuthConfigProvider.java
src/main/java/javax/security/auth/message/config/ClientAuthConfig.java
src/main/java/javax/security/auth/message/config/ServerAuthConfig.java
src/main/java/javax/security/auth/message/module/ClientAuthModule.java
src/main/java/javax/security/auth/message/module/ServerAuthModule.java
'

for f in ${files}; do
  native2ascii -encoding UTF8 ${f} ${f}
done

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13453 |21mr|jboss-jaspi-1.1-api-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jaspi-1.1-api
Version:          1.0.0
Release:          7
Summary:          JBoss Java Authentication SPI for Containers 1.1 API
License:          CDDL or GPLv2 with exceptions
URL:              https://github.com/jboss/jboss-jaspi-api_spec
Source0:          https://github.com/jboss/jboss-jaspi-api_spec/archive/jboss-jaspi-api_1.1_spec-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:	  noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Authentication SPI for Containers 1.1 API classes

%package javadoc
Summary:	Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jaspi-api_spec-jboss-jaspi-api_1.1_spec-%{namedversion}

# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13454 |21mr|jboss-jaxb-2.2-api-1.0.4-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-jaxb-2.2-api
Version:       1.0.4
Release:       19
Summary:       Java Architecture for XML Binding 2.2
License:       CDDL or GPLv2 with exceptions
URL:           http://www.jboss.org

# git clone git://github.com/jboss/jboss-jaxb-api_spec.git jboss-jaxb-2.2-api
# cd jboss-jaxb-2.2-api/ && git archive --format=tar --prefix=jboss-jaxb-2.2-api-1.0.4.Final/ jboss-jaxb-api_2.2_spec-1.0.4.Final | xz > jboss-jaxb-2.2-api-1.0.4.Final.tar.xz
Source0:       %{name}-%{namedversion}.tar.xz

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

%description
Java Architecture for XML Binding Version 2.2 classes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE
%doc README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13455 |21mr|jboss-jaxb-intros-1.0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .GA
%global namedversion %{version}%{?namedreltag}
%bcond_without test

Name:             jboss-jaxb-intros
Version:          1.0.2
Release:          10
Summary:          JBoss JAXB Intros
License:          LGPLv2+
URL:              http://www.jboss.org/jbossws
Group:            Development/Java
# svn export http://anonsvn.jboss.org/repos/jbossws/projects/jaxbintros/tags/1.0.2.GA/ jboss-jaxb-intros-1.0.2.GA
# tar cafJ jboss-jaxb-intros-1.0.2.GA.tar.xz jboss-jaxb-intros-1.0.2.GA
Source0:          %{name}-%{namedversion}.tar.xz

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    java-devel
BuildRequires:    maven-local
BuildRequires:    maven-compiler-plugin
BuildRequires:    maven-install-plugin
BuildRequires:    maven-jar-plugin
BuildRequires:    maven-javadoc-plugin
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:    apache-commons-beanutils
BuildRequires:    apache-commons-logging
BuildRequires:    glassfish-jaxb-api
BuildRequires:    glassfish-jaxb
BuildRequires:    jvnet-parent

%description
JBoss JAXB Introductions.

%package javadoc
Summary:          Javadocs for %{name}
Group:            Documentation

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build
%mvn_build %{?with_test: -f}

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13456 |21mr|jboss-jaxr-1.0-api-1.0.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global oname jboss-jaxr-api_1.0_spec
Name:          jboss-jaxr-1.0-api
Version:       1.0.2
Release:       16
Summary:       Java API for XML Registries 1.0 (JAXR)
License:       CDDL or GPLv2 with exceptions
URL:           http://www.jboss.org/
# git clone git://github.com/jboss/jboss-jaxr-api_spec.git jboss-jaxr-1.0-api
# cd jboss-jaxr-1.0-api/ && git archive --format=tar --prefix=jboss-jaxr-1.0-api/ jboss-jaxr-api_1.0_spec-1.0.2.Final  | xz > jboss-jaxr-1.0-api-1.0.2.Final.tar.xz
Source0:       %{name}-%{namedversion}.tar.xz

BuildRequires: jboss-specs-parent

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR 93: Java API for XML Registries 1.0 (JAXR).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}
%pom_remove_dep javax.activation:activation

%mvn_file :%{oname} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13457 |21mr|jboss-jaxrpc-1.1-api-1.0.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jaxrpc-1.1-api
Version:          1.0.1
Release:          18
Summary:          Java API for XML-Based RPC (JAX-RPC) 1.1
License:          CDDL or GPLv2 with exceptions
Url:              http://www.jboss.org

# git clone git://github.com/jboss/jboss-jaxrpc-api_spec.git jboss-jaxrpc-1.1-api
# cd jboss-jaxrpc-1.1-api/ && git archive --format=tar --prefix=jboss-jaxrpc-1.1-api/ jboss-jaxrpc-api_1.1_spec-1.0.1.Final | xz > jboss-jaxrpc-1.1-api-1.0.1.Final.tar.xz
Source0:          %{name}-%{namedversion}.tar.xz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JAX-RPC 1.1 API classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jaxrpc-1.1-api

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13458 |21mr|jboss-jaxrs-1.1-api-1.0.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-jaxrs-1.1-api
Version:       1.0.1
Release:       18
Summary:       Java API for RESTful Web Services (JAX-RS) 1.1
License:       CDDL
URL:           http://www.jboss.org

# git clone git://github.com/jboss/jboss-jaxrs-api_spec.git
# cd jboss-jaxrs-api_spec/ && git archive --format=tar --prefix=jboss-jaxrs-1.1-api/ jboss-jaxrs-api_1.1_spec-1.0.1.Final | xz > jboss-jaxrs-1.1-api-1.0.1.Final.tar.xz
Source0:       %{name}-%{namedversion}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR 311: The Javai API for RESTful Web Services (JAX-RS) 1.1

%package javadoc
Summary:          Javadoc for %{name}


%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13459 |21mr|jboss-jaxrs-2.0-api-1.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global oname jboss-jaxrs-api_2.0_spec

Name:          jboss-jaxrs-2.0-api
Version:       1.0.0
Release:       9
Summary:       JAX-RS 2.0: The Java API for RESTful Web Services
# ASL 2.0 src/main/java/javax/ws/rs/core/GenericEntity.java
License:       (CDDL or GPLv2 with exceptions) and ASL 2.0
URL:           https://github.com/jboss/jboss-jaxrs-api_spec
Source0:       https://github.com/jboss/jboss-jaxrs-api_spec/archive/%{oname}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR 339: JAX-RS 2.0: The Java API for RESTful Web Services.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n jboss-jaxrs-api_spec-%{oname}-%{namedversion}

# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

%mvn_file :%{oname} %{name}

# remove after upgrading narayana
%mvn_alias ":jboss-jaxrs-api_2.0_spec" "org.jboss.resteasy:jaxrs-api"

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13460 |21mr|jboss-jaxws-2.2-api-2.0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jaxws-2.2-api
Version:          2.0.3
Release:          7
Summary:          Java API for XML-Based Web Services 2.2
License:          CDDL or GPLv2 with exceptions
URL:              http://www.jboss.org/

# git clone git://github.com/jboss/jboss-jaxws-api_spec.git jboss-jaxws-api
# cd jboss-jaxws-api && git archive --format=tar --prefix=jboss-jaxws-2.2-api/ d6937fd2ebf76bfa8ea4706d6b50a172dbda9f9e | xz > jboss-jaxws-2.2-api-2.0.2.20120507gitd6937f.tar.xz
Source0:          https://github.com/jboss/jboss-jaxws-api_spec/archive/jboss-jaxws-api_2.2_spec-%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

%description
Java API for XML-Based Web Services 2.2 classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jaxws-api_spec-jboss-jaxws-api_2.2_spec-%{namedversion}

# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license src/main/resources/LICENSE.txt
%doc src/main/resources/NOTE.txt

%files javadoc -f .mfiles-javadoc
%license src/main/resources/LICENSE.txt
%doc src/main/resources/NOTE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13461 |21mr|jboss-jms-1.1-api-1.0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-jms-1.1-api
Version:       1.0.1
Release:       19
Summary:       JBoss JMS API 1.1 Spec
License:       CDDL or GPLv2 with exceptions
URL:           http://www.jboss.org

# git clone git://github.com/jboss/jboss-jms-api_spec.git jboss-jms-1.1-api
# cd jboss-jms-1.1-api/ && git archive --format=tar --prefix=jboss-jms-1.1-api/ jboss-jms-api_1.1_spec-1.0.1.Final | xz > jboss-jms-1.1-api-1.0.1.Final.tar.xz
Source0:       %{name}-%{namedversion}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Messaging Service 1.1 API classes

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jms-1.1-api
# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%doc README
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13462 |21mr|jboss-jms-2.0-api-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jms-2.0-api
Version:          1.0.0
Release:          7
Summary:          JBoss JMS API 2.0 Spec
License:          CDDL or GPLv2 with exceptions
Url:              http://www.jboss.org
Source0:          https://github.com/jboss/jboss-jms-api_spec/archive/jboss-jms-api_2.0_spec-%{namedversion}.tar.gz
Source1:          cddl.txt

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Messaging Service 2.0 API classes

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jms-api_spec-jboss-jms-api_2.0_spec-%{namedversion}

# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

cp %{SOURCE1} .

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE cddl.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE cddl.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13463 |21mr|jboss-jsf-2.1-api-2.0.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:    jboss-jsf-2.1-api
Version: 2.0.2
Release: 18
Summary: JavaServer Faces 2.1 API
License: CDDL or GPLv2 with exceptions
URL:     http://www.jboss.org

# git clone git://github.com/jboss/jboss-jsf-api_spec.git jboss-jsf-2.1-api
# cd jboss-jsf-2.1-api/ && git archive --format=tar --prefix=jboss-jsf-2.1-api-2.0.2.Final/ jboss-jsf-api_2.1_spec-2.0.2.Final | xz > jboss-jsf-2.1-api-2.0.2.Final.tar.xz
Source0: %{name}-%{namedversion}.tar.xz

# Fix the FSF address in the license file:
Patch0:  %{name}-fix-fsf-address.patch

BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jstl:jboss-jstl-api_1.2_spec)
BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: objenesis

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}


%description
JavaServer Faces API classes based on Version 2.1 of Specification.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep

# Unpack the sources:
%setup -q -n %{name}-%{namedversion}
# Apply the patches:
%patch0 -p1

%mvn_file :jboss-jsf-api_2.1_spec %{name}
%mvn_alias :jboss-jsf-api_2.1_spec javax.faces:jsf-api

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE
%doc README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13464 |21mr|jboss-jsf-2.2-api-2.2.13-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-jsf-2.2-api
Version:       2.2.13
Release:       7
Summary:       JavaServer Faces 2.2 API
License:       (CDDL or GPLv2 with exceptions) and ASL 2.0
URL:           http://www.jboss.org
Source0:       https://github.com/jboss/jboss-jsf-api_spec/archive/jboss-jsf-api_2.2_spec-%{namedversion}.tar.gz
Source1:       cddl.txt
Source2:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(com.sun.faces:jsf-impl)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jstl:jboss-jstl-api_1.2_spec)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This package contains JSR-344: JavaServer Faces 2.2 API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jsf-api_spec-jboss-jsf-api_2.2_spec-%{namedversion}

# We don't have this
%pom_remove_dep "org.jboss.spec:jboss-javaee-all-7.0"
# But we have this
%pom_add_dep "javax.inject:javax.inject"
%pom_add_dep "javax.enterprise:cdi-api"

cp %{SOURCE1} .
cp %{SOURCE2} .

sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license cddl.txt LICENSE LICENSE-2.0.txt
%doc README

%files javadoc -f .mfiles-javadoc
%license cddl.txt LICENSE LICENSE-2.0.txt
%doc README



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13465 |21mr|jboss-jsp-2.2-api-1.0.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jsp-2.2-api
Version:          1.0.1
Release:          20
Summary:          JavaServer(TM) Pages 2.2 API
License:          CDDL or GPLv2 with exceptions
URL:              http://www.jboss.org/

# git clone git://github.com/jboss/jboss-jsp-api_spec.git jboss-jsp-2.2-api
# cd jboss-jsp-2.2-api/ && git archive --format=tar --prefix=jboss-jsp-2.2-api-1.0.1.Final/ jboss-jsp-api_2.2_spec-1.0.1.Final | xz > jboss-jsp-2.2-api-1.0.1.Final.tar.xz
Source0:          %{name}-%{namedversion}.tar.xz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.spec.javax.el:jboss-el-api_2.2_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR-000245: JavaServer(TM) Pages 2.2

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin :maven-source-plugin

%mvn_file : %{name}
%mvn_alias : javax.servlet.jsp:jsp-api

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13466 |21mr|jboss-jsp-2.3-api-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-jsp-2.3-api
Version:          1.0.1
Release:          7
Summary:          JavaServer Pages 2.3 API (JSP)
License:          (CDDL or GPLv2 with exceptions) or ASL 2.0
URL:              https://github.com/jboss/jboss-jsp-api_spec
Source0:          https://github.com/jboss/jboss-jsp-api_spec/archive/jboss-jsp-api_2.3_spec-%{namedversion}.tar.gz
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR-000245: JavaServer Pages 2.3

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-jsp-api_spec-jboss-jsp-api_2.3_spec-%{namedversion}

cp %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13467 |21mr|jboss-jstl-1.2-api-1.1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global pname jboss-jstl-api_spec
%global oname jboss-jstl-api_1.2_spec

Name:          jboss-jstl-1.2-api
Version:       1.1.2
Release:       8
Summary:       JSP Standard Template Library 1.2 API
License:       ASL 2.0 and (CDDL or GPLv2 with exceptions)
URL:           https://github.com/jboss/jboss-jstl-api_spec
Source0:       https://github.com/jboss/jboss-jstl-api_spec/archive/%{oname}-%{namedversion}.tar.gz
# Fix the FSF address in the license file:
Patch0:        %{name}-fix-fsf-address.patch
Patch1:        %{name}-endorse_xalan.patch

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec)
BuildRequires: mvn(xalan:xalan)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java Server Pages Standard Template Library 1.2 API.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep
# Unpack the sources:
%setup -q -n %{pname}-%{oname}-%{namedversion}
# Apply the patches:
%patch0 -p1
# only for EL, in fedora ibm jdk is not available
%if 0%{?el7}
%patch1 -p1
%endif

%pom_remove_plugin :maven-source-plugin

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE README
%doc CHANGES.txt README.md

%files javadoc -f .mfiles-javadoc
%license LICENSE README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13468 |21mr|jboss-logging-3.3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-logging
Version:          3.3.0
Release:          7
Summary:          The JBoss Logging Framework
License:          ASL 2.0
URL:              https://github.com/jboss-logging/jboss-logging
Source0:          https://github.com/jboss-logging/jboss-logging/archive/%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    git-core
BuildRequires:    graphviz
BuildRequires:    maven-local
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(log4j:log4j:12)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.logging.log4j:log4j-api)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.apiviz:apiviz)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.slf4j:slf4j-api)

%description
This package contains the JBoss Logging Framework.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-logging-%{namedversion}

%pom_xpath_set pom:properties/pom:version.org.apache.log4j 12

# SLF4j 1.7 upgrade
sed -i "s|map = MDC.getCopyOfContextMap();|map = (Map) MDC.getCopyOfContextMap();|" \
 src/main/java/org/jboss/logging/Slf4jLoggerProvider.java

# Unneeded task
%pom_remove_plugin :maven-source-plugin

cp -p src/main/resources/META-INF/LICENSE.txt .
sed -i 's/\r//' LICENSE.txt

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13469 |21mr|jboss-logging-tools1-1.2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-logging-tools1
Version:          1.2.1
Release:          7
Summary:          JBoss Logging I18n Annotation Processor
# ASL 2.0: ./annotations/src/main/java/org/jboss/logging/annotations/*.java
# Source files without license headers https://issues.jboss.org/browse/LOGTOOL-113
License:          ASL 2.0 and LGPLv2+
URL:              https://github.com/jboss-logging/jboss-logging-tools
Source0:          https://github.com/jboss-logging/jboss-logging-tools/archive/%{namedversion}.tar.gz
# Not available license file https://issues.jboss.org/browse/LOGTOOL-107 thanks to jamezp
Patch0:           https://github.com/jboss-logging/jboss-logging-tools/commit/9a07a05d8437948c353fd13ce3311d0c5c4c0a79.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.jdeparser:jdeparser:1)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.testng:testng)

%description
This package contains JBoss Logging I18n Annotation Processor

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-logging-tools-%{namedversion}
%patch0 -p1

cp -p annotations/src/main/resources/META-INF/LICENSE.txt LICENSE-ASL.txt
cp -p processor/src/main/resources/META-INF/LICENSE.txt LICENSE-LGPL.txt

%pom_disable_module processor-tests

%pom_xpath_set pom:properties/pom:version.org.jboss.jdeparser 1
%pom_xpath_inject pom:project "<version>%{namedversion}</version>" annotations
%pom_xpath_inject pom:project "<version>%{namedversion}</version>" processor
%pom_change_dep :jdeparser ::1 processor
%pom_change_dep :jboss-logging-annotations ::'%{namedversion}' processor

%mvn_compat_version : %{namedversion} %{version} 1

%build
# @ random java.lang.ArrayIndexOutOfBoundsException: 1
%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%license LICENSE-ASL.txt LICENSE-LGPL.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-ASL.txt LICENSE-LGPL.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13470 |21mr|jboss-logging-tools-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-logging-tools
Version:          2.2.0
Release:          1
Summary:          JBoss Logging I18n Annotation Processor
# Not available license file https://issues.jboss.org/browse/LOGTOOL-107
# ./annotations/src/main/java/org/jboss/logging/annotations/*.java: Apache (v2.0)
License:          ASL 2.0 and LGPLv2+
URL:              https://github.com/jboss-logging/jboss-logging-tools
Source0:          %{url}/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.jdeparser:jdeparser)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)

%description
This pacakge contains JBoss Logging I18n Annotation Processor

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

cp %{SOURCE1} .

# roaster is not packaged for Fedora, so:
# - Remove the dependency
# - Remove the test that requires it
%pom_remove_dep -r org.jboss.forge.roaster:
rm processor/src/test/java/org/jboss/logging/processor/generated/GeneratedSourceAnalysisTest.java

# Skip docs module
%pom_disable_module docs

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt
%doc README.adoc

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt
%doc README.adoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13471 |21mr|jboss-logmanager-2.0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-logmanager
Version:          2.0.4
Release:          7
Summary:          JBoss Log Manager
License:          ASL 2.0
URL:              https://github.com/jboss-logging/jboss-logmanager
Source0:          https://github.com/jboss-logging/jboss-logmanager/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.modules:jboss-modules)

%description
This package contains the JBoss Log Manager

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# Unneeded task
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13472 |21mr|jboss-marshalling-1.4.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-marshalling
Version:          1.4.11
Release:          7
Summary:          JBoss Marshalling
# LGPLv2 ./serial/src/main/java/org/jboss/marshalling/serial/UnknownDescriptor.java
License:          ASL 2.0 and LGPLv2+
URL:              http://jbossmarshalling.jboss.org/
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          https://github.com/jboss-remoting/jboss-marshalling/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires:    mvn(org.jboss.modules:jboss-modules)
BuildRequires:    mvn(org.testng:testng)
%if 0%{?fedora}
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(org.jboss.apiviz:apiviz)
%endif

%description
JBoss Marshalling is an alternative serialization API that fixes many
of the problems found in the JDK serialization API while remaining
fully compatible with java.io.Serializable and its relatives, and adds
several new tunable parameters and additional features, all of which
are pluggable via factory configuration (externalizers, class/instance
lookup tables, class resolution, and object replacement, to name a
few).

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains %{summary}.

%package osgi
Summary:          JBoss Marshalling OSGi Bundle

%description osgi
JBoss Marshalling OSGi Bundle.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin -r :maven-shade-plugin
%pom_disable_module tests

# Conditionally remove dependency on apiviz
if [ %{?rhel} ]; then
    %pom_remove_plugin :maven-javadoc-plugin
fi

%mvn_package :jboss-marshalling-osgi osgi

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files osgi -f .mfiles-osgi


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13473 |21mr|jboss-metadata-10.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:           jboss-metadata
Version:        10.0.0
Release:        6
Summary:        JBoss Metadata
License:        LGPLv2+
URL:            https://github.com/jboss/metadata
Source0:        https://github.com/jboss/metadata/archive/%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  dos2unix
BuildRequires:  maven-local
BuildRequires:  mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires:  mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires:  mvn(org.jboss:jboss-parent:pom:)
BuildRequires:  mvn(org.jboss.ejb3:jboss-ejb3-ext-api)
BuildRequires:  mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires:  mvn(org.jboss.logging:jboss-logging)
BuildRequires:  mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec)
BuildRequires:  mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires:  mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)

%description
This package contains JBoss Metadata for WildFly.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n metadata-%{namedversion}

# Fix the line ending in the license file:
dos2unix common/LICENSE.txt

%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-dependency-plugin

%build
# Skip tests - no test deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README
%license common/LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license common/LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13474 |21mr|jboss-modules-1.5.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-modules
Version:          1.5.2
Release:          7
Summary:          A Modular Classloading System
# XPP3 License: src/main/java/org/jboss/modules/xml/MXParser.java
#  src/main/java/org/jboss/modules/xml/XmlPullParser.java
#  src/main/java/org/jboss/modules/xml/XmlPullParserException.java
License:          ASL 2.0 and xpp
URL:              https://github.com/jbossas/jboss-modules
Source0:          https://github.com/jbossas/jboss-modules/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
BuildRequires:    graphviz
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(org.jboss.apiviz:apiviz)

%description
Ths package contains A Modular Classloading System.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# Conditionally remove dependency on apiviz
if [ %{?rhel} ]; then
    %pom_remove_plugin :maven-javadoc-plugin
fi

# Unneeded task
%pom_remove_plugin :maven-source-plugin

# Use not available org.wildfly.checkstyle:wildfly-checkstyle-config:1.0.4.Final
%pom_remove_plugin :maven-checkstyle-plugin

# Tries to connect to remote host
rm src/test/java/org/jboss/modules/MavenResourceTest.java \
 src/test/java/org/jboss/modules/maven/MavenSettingsTest.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt XPP3-LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt XPP3-LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13475 |21mr|jboss-msc-1.2.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-msc
Version:          1.2.6
Release:          6
Summary:          JBoss Modular Service Container
# Not available license file https://issues.jboss.org/browse/MSC-153
License:          LGPLv2+
URL:              https://github.com/jbossas/jboss-msc
Source0:          https://github.com/jbossas/jboss-msc/archive/%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.javassist:javassist)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss:jboss-vfs)
BuildRequires:    mvn(org.jboss.apiviz:apiviz)
BuildRequires:    mvn(org.jboss.byteman:byteman)
BuildRequires:    mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires:    mvn(org.jboss.byteman:byteman-install)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires:    mvn(org.jboss.modules:jboss-modules)
BuildRequires:    mvn(org.jboss.threads:jboss-threads)

%description
This package contains the JBoss Modular Service Container.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-msc-%{namedversion}

%build
# Some failed tests, most probably because network limitations on Koji
%mvn_build -f

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13476 |21mr|jboss-naming-5.0.6-0.18.CR1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .CR1
%global namedversion %{version}%{?namedreltag}

Name:             jboss-naming
Version:          5.0.6
Release:          0.18%{namedreltag}
Summary:          JBoss Naming
License:          LGPLv2+
URL:              http://www.jboss.org

# svn export http://anonsvn.jboss.org/repos/jbossas/projects/naming/tags/5.0.6.CR1/ jboss-naming-5.0.6.CR1
# tar cafJ jboss-naming-5.0.6.CR1.tar.xz jboss-naming-5.0.6.CR1
Source0:          %{name}-%{namedversion}.tar.xz

Patch0:           %{name}-%{namedversion}-pom.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    java-devel
BuildRequires:    jboss-common-core
BuildRequires:    jboss-logging
BuildRequires:    jboss-parent
BuildRequires:    jpackage-utils
BuildRequires:    maven-local
BuildRequires:    maven-antrun-plugin
BuildRequires:    maven-enforcer-plugin
BuildRequires:    rmic-maven-plugin

%description
The JBoss JNDI name server implementation

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p1

%mvn_file ':jnp-{client,server}' %{name}-@1

%build
# No jboss-test and jboss-kernel packages
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc JBossORG-EULA.txt

%files javadoc -f .mfiles-javadoc
%doc JBossORG-EULA.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13477 |21mr|jboss-negotiation-3.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-negotiation
Version:       3.0.2
Release:       6
Summary:       JBoss Negotiation
# NOT available license file https://github.com/wildfly-security/jboss-negotiation/issues/32
License:       LGPLv2+
URL:           http://www.jboss.org/picketlink/Negotiation
Source0:       https://github.com/wildfly-security/jboss-negotiation/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(io.undertow:undertow-core)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires: mvn(org.picketbox:picketbox)
BuildRequires: mvn(org.picketbox:picketbox-commons)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Negotiation project provides SPNEGO/Kerberos support in JBoss.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_disable_module jboss-negotiation-toolkit

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13478 |21mr|jboss-parent-20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jboss-parent
Version:        20
Release:        7
Summary:        JBoss Parent POM
License:        CC0
URL:            http://www.jboss.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/jboss/jboss-parent-pom/archive/%{name}-%{version}.tar.gz
Source1:        http://repository.jboss.org/licenses/cc0-1.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)

%description
The Project Object Model files for JBoss packages.

%prep
%setup -q -n %{name}-pom-%{name}-%{version}

# NOT available plugins
%pom_remove_plugin :maven-clover2-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :javancss-maven-plugin
%pom_remove_plugin :jdepend-maven-plugin
%pom_remove_plugin :license-maven-plugin
%pom_remove_plugin :sonar-maven-plugin

%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :buildnumber-maven-plugin

cp -p %SOURCE1 LICENSE
sed -i 's/\r//' LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13479 |21mr|jboss-remote-naming-2.0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-remote-naming
Version:       2.0.4
Release:       6
Summary:       JBoss Remote Naming
# https://github.com/jbossas/jboss-remote-naming/issues/28
License:       LGPLv2+
URL:           http://www.jboss.org/
Source0:       https://github.com/jbossas/jboss-remote-naming/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.jboss:jboss-ejb-client)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires: mvn(org.jboss.remoting:jboss-remoting)
BuildRequires: mvn(org.jboss.sasl:jboss-sasl)
BuildRequires: mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.1_spec)
BuildRequires: mvn(org.jboss.xnio:xnio-api)
BuildRequires: mvn(org.jboss.xnio:xnio-nio)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Library for remote naming (JNDI) with JBoss AS.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build

# Temporarily disable the test suite
# NoClassDefFoundError: Could not initialize class org.jboss.remoting3.remote.RemoteLogger
%mvn_build -f

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13480 |21mr|jboss-remoting-4.0.21-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-remoting
Version:          4.0.21
Release:          6
Summary:          JBoss Remoting
License:          LGPLv2+
URL:              http://www.jboss.org/jbossremoting

# git clone git://github.com/jboss-remoting/jboss-remoting.git
# cd jboss-remoting && git checkout 4.0.21.Final && git checkout-index -f -a --prefix=jboss-remoting-4.0.21.Final/
# rm jboss-remoting-4.0.21.Final/src/test/resources/test-content.bin
# tar -cJf jboss-remoting-4.0.21.Final-CLEAN.tar.xz jboss-remoting-4.0.21.Final
Source0:          jboss-remoting-%{namedversion}-CLEAN.tar.xz
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.apiviz:apiviz)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.xnio:xnio-api)
BuildRequires:    mvn(org.jboss.xnio:xnio-nio)

%description
The purpose of JBoss Remoting is to provide a general purpose framework
for symmetric and asymmetric communication over a network. It supports
various modes of interaction, including invocations, one way messaging,
and asynchronous callbacks.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-remoting-%{namedversion}

%build
# Skipped test because of removing binary content from test dir which is required to run them
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license COPYING.txt

%files javadoc -f .mfiles-javadoc
%license COPYING.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13481 |21mr|jboss-remoting-jmx-2.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-remoting-jmx
Version:       2.0.1
Release:       6
Summary:       JMX via JBoss Remoting
Group:         Development/Java
License:       LGPLv2+
URL:           http://www.jboss.org/
Source0:       https://github.com/jbossas/remoting-jmx/archive/%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling-river)
BuildRequires: mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires: mvn(org.jboss.remoting:jboss-remoting) >= 3.2.2-1
BuildRequires: mvn(org.jboss.sasl:jboss-sasl)
BuildRequires: mvn(org.jboss.xnio:xnio-api)
BuildRequires: mvn(org.jboss.xnio:xnio-nio)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Library for making JMX accessible using Remoting.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n remoting-jmx-%{namedversion}

%build
# Disable temporarily the test suite. Build fails: Timeout(86400)
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README
%license COPYING.txt

%files javadoc -f .mfiles-javadoc
%license COPYING.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13482 |21mr|jboss-rmi-1.0-api-1.0.4-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define namedreltag .Final
%define namedversion %{version}%{?namedreltag}

Name:          jboss-rmi-1.0-api
Version:       1.0.4
Release:       20
Summary:       Java Remote Method Invocation 1.0 API
Group:         Development/Java
License:       GPLv2 with exceptions
URL:           http://www.jboss.org

# git clone https://github.com/jboss/jboss-rmi-api_spec
# cd jboss-rmi-api_spec/ && git archive --format=tar --prefix=jboss-rmi-1.0-api-1.0.4.Final/ jboss-rmi-api_1.0_spec-1.0.4.Final | xz > jboss-rmi-1.0-api-1.0.4.Final.tar.xz
Source0:       %{name}-%{namedversion}.tar.xz

# Fix the address of the FSF in the license file:
Patch0:        %{name}-fix-fsf-address.patch

BuildRequires: maven-local
BuildRequires: mvn(jacorb:jacorb) >= 2.3.1-3.20120215git
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java Remote Method Invocation 1.0 API classes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc	
This package contains the API documentation for %{name}.

%prep

# Unpack the sources:
%setup -q -n %{name}-%{namedversion}

# Apply the patches:
%patch0 -p1

# Force as Requires dep
%pom_xpath_remove "pom:dependency[pom:groupId = 'jacorb']/pom:scope"

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license src/main/resources/LICENSE

%files javadoc -f .mfiles-javadoc
%license src/main/resources/LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13483 |21mr|jboss-saaj-1.3-api-1.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-saaj-1.3-api
Version:       1.0.3
Release:       6
Summary:       SOAP with Attachments API for Java 1.3
Group:         Development/Java
License:       CDDL or GPLv2 with exceptions
URL:           http://www.jboss.org

Source0:       https://github.com/jboss/jboss-saaj-api_spec/archive/jboss-saaj-api_1.3_spec-%{namedversion}.tar.gz

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)

%description
The SOAP with Attachments API for Java Version 1.3 classes.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-saaj-api_spec-jboss-saaj-api_1.3_spec-%{namedversion}

# Unneeded plugin
%pom_remove_plugin :maven-source-plugin

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE
%doc README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13484 |21mr|jboss-sasl-1.0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-sasl
Version:          1.0.5
Release:          6
Summary:          SASL Provider for J2SE
Group:            Development/Java
License:          LGPLv2+
URL:              https://github.com/wildfly-security/jboss-sasl
Source0:          https://github.com/wildfly-security/jboss-sasl/archive/%{namedversion}.tar.gz

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.maven.plugins:maven-injection-plugin)

%description
This package contains SASL Provider for J2SE

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13485 |21mr|jboss-servlet-2.5-api-1.0.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-servlet-2.5-api
Version:          1.0.1
Release:          18
Summary:          Java Servlet 2.5 API
License:          ASL 2.0 and W3C
Url:              http://www.jboss.org

# git clone git://github.com/jboss/jboss-servlet-api_spec.git
# cd jboss-servlet-api_spec/ && git archive --format=tar --prefix=jboss-servlet-2.5-api/ jboss-servlet-api_2.5_spec-1.0.1.Final | xz > jboss-servlet-2.5-api-1.0.1.Final.tar.xz
Source0:          jboss-servlet-2.5-api-%{namedversion}.tar.xz

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss.spec:jboss-specs-parent:pom:)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Servlet 2.5 API classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-servlet-2.5-api

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13486 |21mr|jboss-servlet-3.0-api-1.0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-servlet-3.0-api
Version:          1.0.2
Release:          12
Summary:          Java Servlet 3.0 API
License:          CDDL
Url:              http://www.jboss.org
Source0:          https://github.com/jboss/jboss-servlet-api_spec/archive/jboss-servlet-api_3.0_spec-1.0.2.Final.tar.gz
Source1:          cddl.txt

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Servlet 3.0 API classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-servlet-api_spec-jboss-servlet-api_3.0_spec-%{namedversion}

cp %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE README cddl.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE README cddl.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13487 |21mr|jboss-servlet-3.1-api-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-servlet-3.1-api
Version:          1.0.0
Release:          7
Summary:          Java Servlet 3.1 API
License:          (CDDL or GPLv2 with exceptions) and ASL 2.0
Url:              http://www.jboss.org
Source0:          https://github.com/jboss/jboss-servlet-api_spec/archive/jboss-servlet-api_3.1_spec-%{namedversion}.tar.gz
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:          http://repository.jboss.org/licenses/cddl.txt

BuildRequires:    maven-local
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Servlet 3.1 API classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-servlet-api_spec-jboss-servlet-api_3.1_spec-%{namedversion}

cp %{SOURCE1} .
cp %{SOURCE2} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE cddl.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE cddl.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13488 |21mr|jboss-specs-parent-1.0.0-0.20.Beta2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Beta2
%global namedversion %{version}%{?namedreltag}

Name:             jboss-specs-parent
Version:          1.0.0
Release:          0.20%{namedreltag}
Summary:          JBoss Specification API Parent POM
# The license is not included because it's not a part of this tag. License file
# was pushed to trunk and no new tag will be created for this change.
# http://anonsvn.jboss.org/repos/jbossas/projects/specs/trunk/jboss-specs-parent/LICENSE-2.0.txt
License:          ASL 2.0
Url:              http://www.jboss.org/

# svn export http://anonsvn.jboss.org/repos/jbossas/projects/specs/tags/jboss-specs-parent-1.0.0.Beta2/
# tar czf jboss-specs-parent-1.0.0.Beta2-src-svn.tar.gz jboss-specs-parent-1.0.0.Beta2
Source0:          %{name}-%{namedversion}-src-svn.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

%description
Parent POM that allows building all specification projects at once.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_xpath_remove //pom:modules
%pom_remove_plugin :maven-release-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13489 |21mr|jboss-stdio-1.0.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .GA
%global namedversion %{version}%{?namedreltag}

Name:             jboss-stdio
Version:          1.0.2
Release:          9
Summary:          JBoss STDIO 
License:          LGPLv2+
URL:              https://github.com/jboss-logging/jboss-stdio/
Source0:          https://github.com/jboss-logging/jboss-stdio/archive/%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.apiviz:apiviz)

%description
This package contains JBoss STDIO / Logging interface

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13490 |21mr|jboss-threads-2.2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-threads
Version:          2.2.1
Release:          7
Summary:          JBoss Threads
# Not available license file https://issues.jboss.org/browse/JBTHR-36
License:          LGPLv2+
URL:              https://github.com/jbossas/jboss-threads
Source0:          https://github.com/jbossas/jboss-threads/archive/%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.apiviz:apiviz)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)

%description
This package contains JBoss Threads

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin :maven-source-plugin

%build

# Disable test failure @ random fails:
# junit.framework.AssertionFailedError at org.jboss.threads.DeferredInterruptTestCase.testDeferral(DeferredInterruptTestCase.java:63)
%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13491 |21mr|jboss-transaction-1.1-api-1.0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global oname jboss-transaction-api_1.1_spec

Name:           jboss-transaction-1.1-api
Summary:        JBoss Transaction 1.1 API
Version:        1.0.1
Release:        19
License:        CDDL-1.0 or GPLv2 with exceptions
Group:          Development/Java
URL:            https://github.com/jboss/jboss-transaction-api_spec
Source0:        %{url}/archive/%{oname}-%{namedversion}.tar.gz

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.jboss:jboss-parent:pom:)

%description
The Java Transaction 1.1 API classes.


%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n jboss-transaction-api_spec-%{oname}-%{namedversion}


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%doc README
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13492 |21mr|jboss-transaction-1.2-api-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-transaction-1.2-api
Version:          1.0.1
Release:          7
Summary:          Transaction 1.2 API
License:          CDDL or GPLv2 with exceptions
Url:              https://github.com/jboss/jboss-transaction-api_spec
Source0:          https://github.com/jboss/jboss-transaction-api_spec/archive/jboss-transaction-api_1.2_spec-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(javax.enterprise:cdi-api)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Transaction 1.2 API classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-transaction-api_spec-jboss-transaction-api_1.2_spec-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13493 |21mr|jboss-transaction-spi-7.3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jboss-transaction-spi
Version:       7.3.0
Release:       7
Summary:       JBoss Transaction SPI
License:       LGPLv2+
URL:           https://github.com/jbosstm/jboss-transaction-spi
Source0:       https://github.com/jbosstm/jboss-transaction-spi/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
# https://issues.jboss.org/browse/JBTM-2698
Patch0:        https://github.com/jbosstm/jboss-transaction-spi/commit/7aa203f7fd6b182f9b7b47118af91f126e4e11fe.patch

BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Transaction SPI classes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p1

# Replace jboss-connector-api_1.5_spec https://issues.jboss.org/browse/JBTM-2663
%pom_change_dep org.jboss.spec.javax.resource: :jboss-connector-api_1.7_spec

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13494 |21mr|jboss-vfs-3.2.12-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-vfs
Version:          3.2.12
Release:          6
Summary:          JBoss Virtual File System
Group:            Development/Java
License:          ASL 2.0
URL:              https://github.com/jbossas/jboss-vfs/
Source0:          https://github.com/jbossas/jboss-vfs/archive/jboss-vfs-%{namedversion}.tar.gz

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
#BuildRequires:    mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)

%description
This package contains the JBoss Virtual File System.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-vfs-jboss-vfs-%{namedversion}

find . -name "*.ear" -type f -print -delete
find . -name "*.jar" -type f -print -delete
find . -name "*.war" -type f -print -delete
find . -name "*.zip" -type f -print -delete

# break build see for e.g. jboss-metadata.spec
%pom_remove_plugin :maven-checkstyle-plugin

%build
# Skipped because jboss-test is not packaged yet
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13495 |21mr|jboss-websocket-1.0-api-1.0.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-websocket-1.0-api
Version:          1.0.0
Release:          11
Summary:          JSR-356: Java WebSocket 1.0 API
License:          CDDL or GPLv2 with exceptions
Url:              https://github.com/jboss/jboss-websocket-api_spec
Source0:          https://github.com/jboss/jboss-websocket-api_spec/archive/jboss-websocket-api_1.0_spec-%{namedversion}.tar.gz

BuildRequires:    jboss-parent
BuildRequires:    maven-local
BuildRequires:    maven-plugin-bundle
BuildRequires:    felix-osgi-foundation
BuildRequires:    felix-parent

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JSR-356: Java WebSocket 1.0 API classes.

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-websocket-api_spec-jboss-websocket-api_1.0_spec-%{namedversion}

%build
%mvn_alias "org.jboss.spec.javax.websocket:jboss-websocket-api_1.0_spec" "javax.websocket:javax.websocket-api" "javax.websocket:javax.websocket-client-api"
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE README

%files javadoc -f .mfiles-javadoc
%doc LICENSE README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13496 |21mr|jboss-websocket-1.1-api-1.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jboss-websocket-1.1-api
Version:          1.1.1
Release:          6
Summary:          JSR-356: Java WebSocket 1.1 API
License:          CDDL or GPLv2 with exceptions
Url:              https://github.com/jboss/jboss-websocket-api_spec
Source0:          https://github.com/jboss/jboss-websocket-api_spec/archive/%{namedversion}.tar.gz
Group:            Development/Java
BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JSR-356: Java WebSocket 1.1 API classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jboss-websocket-api_spec-%{namedversion}

%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE README

%files javadoc -f .mfiles-javadoc
%license LICENSE README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13497 |21mr|jbossws-api-1.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jbossws-api
Version:          1.0.3
Release:          6
Summary:          JBossWS API
# https://issues.jboss.org/browse/JBWS-4001
License:          LGPLv2+
URL:              http://www.jboss.org/jbossws
Source0:          https://github.com/jbossws/jbossws-api/archive/%{name}-%{namedversion}.tar.gz
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations:1)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor:1)
BuildRequires:    mvn(org.jboss.ws:jbossws-parent:pom:)

%description
JBoss WS public API.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}

# Disable java8doc doclint, using own javadoc setting
%pom_remove_plugin :maven-javadoc-plugin

%pom_xpath_set pom:properties/pom:jboss-logging-annotations.version 1
%pom_xpath_set pom:properties/pom:jboss-logging-processor.version 1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13498 |21mr|jbossws-common-3.1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jbossws-common
Version:          3.1.3
Release:          6
Summary:          JBossWS Common
License:          LGPLv2+
URL:              http://jbossws.jboss.org

Source0:          https://github.com/jbossws/jbossws-common/archive/%{name}-%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(jboss.jaxbintros:jboss-jaxb-intros)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor:1)
BuildRequires:    mvn(org.jboss.ws:jbossws-parent:pom:)
BuildRequires:    mvn(org.jboss.ws:jbossws-spi)
BuildRequires:    mvn(org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires:    mvn(org.jboss.spec.javax.xml.rpc:jboss-jaxrpc-api_1.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.xml.ws:jboss-jaxws-api_2.2_spec)
BuildRequires:    mvn(wsdl4j:wsdl4j)

%description
JBoss Web Services - Common.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}

# Remove test where network connectivity is required
rm src/test/java/org/jboss/test/ws/common/management/AbstractServerConfigTestCase.java

%pom_xpath_set pom:properties/pom:jboss-logging-processor.version 1

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13499 |21mr|jbossws-common-tools-1.2.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jbossws-common-tools
Version:          1.2.2
Release:          6
Summary:          JBossWS Common Tools
License:          LGPLv2+ and ASL 2.0
URL:              http://jbossws.jboss.org

Source0:          https://github.com/jbossws/jbossws-common-tools/archive/%{name}-%{namedversion}.tar.gz
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(gnu.getopt:java-getopt)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(log4j:log4j:12)
BuildRequires:    mvn(org.apache.ant:ant)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.jboss.ws:jbossws-api)
BuildRequires:    mvn(org.jboss.ws:jbossws-parent:pom:)

%description
JBoss Web Services - Common Tools.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}

cp %{SOURCE1} .

%pom_xpath_set pom:properties/pom:log4j.version 12

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13500 |21mr|jbossws-cxf-5.1.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jbossws-cxf
Version:          5.1.5
Release:          6
Summary:          JBoss Web Services CXF stack
License:          LGPLv2+
URL:              http://jbossws.jboss.org/

Source0:          http://download.jboss.org/jbossws/%{name}-%{namedversion}.zip

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(asm:asm)
BuildRequires:    mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires:    mvn(commons-collections:commons-collections)
BuildRequires:    mvn(commons-lang:commons-lang)
BuildRequires:    mvn(javax.xml.stream:stax-api)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(log4j:log4j)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-bindings-coloc)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-bindings-object)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-bindings-soap)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-frontend-jaxws)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-management)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-transports-http)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-transports-http-hc)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-transports-jms)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-transports-local)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-ws-mex)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-ws-policy)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-ws-rm)
BuildRequires:    mvn(org.apache.cxf:cxf-rt-ws-security)
BuildRequires:    mvn(org.apache.cxf:cxf-tools-java2ws)
BuildRequires:    mvn(org.apache.cxf:cxf-tools-wsdlto-core)
BuildRequires:    mvn(org.apache.cxf:cxf-tools-wsdlto-databinding-jaxb)
BuildRequires:    mvn(org.apache.cxf:cxf-tools-wsdlto-frontend-jaxws)
BuildRequires:    mvn(org.apache.cxf.services.sts:cxf-services-sts-core)
BuildRequires:    mvn(org.apache.cxf.services.ws-discovery:cxf-services-ws-discovery-api)
BuildRequires:    mvn(org.apache.cxf.xjcplugins:cxf-xjc-boolean)
BuildRequires:    mvn(org.apache.cxf.xjcplugins:cxf-xjc-bug986)
BuildRequires:    mvn(org.apache.cxf.xjcplugins:cxf-xjc-dv)
BuildRequires:    mvn(org.apache.cxf.xjcplugins:cxf-xjc-ts)
BuildRequires:    mvn(org.apache.cxf.xjc-utils:cxf-xjc-runtime)
BuildRequires:    mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:    mvn(org.apache.santuario:xmlsec)
BuildRequires:    mvn(org.apache.velocity:velocity)
BuildRequires:    mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:    mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires:    mvn(org.glassfish.jaxb:jaxb-core)
BuildRequires:    mvn(org.glassfish.jaxb:jaxb-runtime)
BuildRequires:    mvn(org.glassfish.jaxb:jaxb-xjc)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.5_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec)
BuildRequires:    mvn(org.jboss.spec.javax.xml.soap:jboss-saaj-api_1.3_spec)
BuildRequires:    mvn(org.jboss.spec.javax.xml.ws:jboss-jaxws-api_2.2_spec)
BuildRequires:    mvn(org.jboss.ws:jbossws-api) 
BuildRequires:    mvn(org.jboss.ws:jbossws-common) 
BuildRequires:    mvn(org.jboss.ws:jbossws-common-tools) 
BuildRequires:    mvn(org.jboss.ws:jbossws-parent:pom:)
BuildRequires:    mvn(org.jboss.ws:jbossws-spi) 
BuildRequires:    mvn(org.jboss.ws.projects:jaxws-undertow-httpspi)
BuildRequires:    mvn(org.jboss.shrinkwrap:shrinkwrap-depchain:pom:)
BuildRequires:    mvn(org.opensaml:opensaml-saml-impl)
BuildRequires:    mvn(org.opensaml:opensaml-xacml-impl)
BuildRequires:    mvn(org.opensaml:opensaml-xacml-saml-impl)
BuildRequires:    mvn(org.picketbox:picketbox)
BuildRequires:    mvn(org.slf4j:slf4j-log4j12)
BuildRequires:    mvn(xerces:xercesImpl)

%description
JBoss Web Services CXF integration stack

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}

%pom_remove_plugin -r :maven-deploy-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-jdocbook-plugin

# Available in JDK
%pom_remove_dep -r "javax.jws:jsr181-api"

#%% pom_disable_module modules/dist
%pom_disable_module modules/testsuite

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
<execution>
  <id>default-jar</id>
  <phase>skip</phase>
</execution>" modules/resources

%mvn_package :::wildfly*: __default

%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README*

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13501 |21mr|jbossws-parent-1.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jbossws-parent
Version:          1.3.0
Release:          6
Summary:          JBossWS Parent
License:          LGPLv2+
URL:              http://www.jboss.org/jbossws
Source0:          https://github.com/jbossws/jbossws-parent/archive/%{name}-%{namedversion}.tar.gz
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)

%description
This package contains the JBossWS Parent.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}

%build
%mvn_build -j

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13502 |21mr|jbossws-spi-3.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jbossws-spi
Version:          3.1.2
Release:          6
Summary:          JBossWS SPI
# https://issues.jboss.org/browse/JBWS-4002
License:          LGPLv2+
URL:              http://www.jboss.org/jbossws

Source0:          https://github.com/jbossws/jbossws-spi/archive/%{name}-%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires:    mvn(org.jboss.ws:jbossws-api) >= 1.0.1 
BuildRequires:    mvn(org.jboss.ws:jbossws-parent:pom:)

%description
JBoss WS SPI classes.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}
# Disable java8doc doclint, using own javadoc setting
%pom_remove_plugin :maven-javadoc-plugin

%pom_xpath_set pom:properties/pom:jboss-logging-annotations.version 1
%pom_xpath_set pom:properties/pom:jboss-logging-processor.version 1

# java.lang.ExceptionInInitializerError
#Caused by: java.lang.IllegalArgumentException: Invalid logger interface org.jboss.wsf.spi.Loggers (implementation not found in sun.misc.Launcher$AppClassLoader@75b84c92)
#	at org.jboss.logging.Logger$1.run(Logger.java:2556)
#	at java.security.AccessController.doPrivileged(Native Method)
#	at org.jboss.logging.Logger.getMessageLogger(Logger.java:2529)
#	at org.jboss.logging.Logger.getMessageLogger(Logger.java:2516)
#	at org.jboss.wsf.spi.Loggers.<clinit>(Loggers.java:47)
#	... 29 more
rm src/test/java/org/jboss/test/wsf/spi/metadata/config/ConfigMDParserTestCase.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13503 |21mr|jchardet-1.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jchardet
Version:        1.1
Release:        19
Summary:        Java port of Mozilla's automatic character set detection algorithm

License:        MPLv1.1 or GPLv2+ or LGPLv2+
URL:            http://jchardet.sourceforge.net/
Source0:        http://download.sourceforge.net/jchardet/%{version}/jchardet-%{version}.zip
Source1:        http://repo1.maven.org/maven2/net/sourceforge/%{name}/%{name}/1.0/%{name}-1.0.pom
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local

%description
jchardet is a java port of the source from Mozilla's automatic charset
detection algorithm. The original author is Frank Tang. What is available
here is the java port of that code. The original source in C++ can be found
from http://lxr.mozilla.org/mozilla/source/intl/chardet/. More information can
be found at http://www.mozilla.org/projects/intl/chardet.html.

%package javadoc
Summary:    API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

cp %{SOURCE1} pom.xml

# fix up the provided version
%pom_xpath_set /pom:project/pom:version %{version}

# remove distributionManagement.status from pom (maven stops build
# when it's there)
%pom_xpath_remove pom:distributionManagement

# create proper dir structure
mkdir -p src/main/java/org/mozilla/intl/chardet
mv src/*java src/main/java/org/mozilla/intl/chardet

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13504 |21mr|jcifs-1.3.18-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jcifs
Version:       1.3.18
Release:       10
Summary:       Common Internet File System Client in 100% Java
# Licenses:
#   src/jcifs/util/DES.java: BSD and MIT
#   src/jcifs/util/MD4.java: BSD
#   all the rest:            LGPLv2+
License:       LGPLv2+ and BSD and MIT
URL:           http://jcifs.samba.org/
Source0:       http://jcifs.samba.org/src/%{name}-%{version}.tgz
Source1:       http://mirrors.ibiblio.org/pub/mirrors/maven2/jcifs/jcifs/1.3.17/jcifs-1.3.17.pom 
# fix javac executable
Patch0:        %{name}-1.3.17-build.patch
BuildRequires: ant
BuildRequires: javapackages-local
BuildRequires: mvn(javax.servlet:javax.servlet-api)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The jCIFS SMB client library enables any Java application to remotely
access shared files and directories on SMB file servers (i.e. a
Microsoft Windows "share") in addition to domain, workgroup, and
server enumeration of NetBIOS over TCP/IP networks. It is an advanced
implementation of the CIFS protocol supporting Unicode, batching,
multiplexing of threaded callers, encrypted authentication,
transactions, the Remote Access Protocol (RAP), and much more. It is
licensed under LGPL which means commercial organizations can
legitimately use it with their proprietary code(you just can't sell or
give away a modified binary only version of the library itself without
reciprocation).

%package javadoc
Summary:       Javadoc for %{name}
# Neither DES.java nor MD4.java (see License comment) are documented here
License:       LGPLv2+

%description javadoc
This package contains the API documentation for %{name}.

%package demo
Summary:       Demo for %{name}
# Files from the directory 'examples' are here, some are under GPLv2+
License:       LGPLv2+ and GPLv2+
Requires:      %{name} = %{version}-%{release}

%description demo
Demonstrations and samples for %{name}.

%prep
%setup -q -n %{name}_%{version}
find -name '*.class' -delete
find -name '*.jar' -delete
%patch0 -p0
sed -i "s|1.5|1.6|" build.xml
cp -p %{SOURCE1} pom.xml
sed -i "s|<version>1.3.17|<version>%{version}|" pom.xml
%pom_remove_plugin :maven-gpg-plugin

%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet']/pom:version" 3.1.0
%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet']/pom:artifactId" javax.servlet-api

%mvn_file %{name}:%{name} %{name}
%mvn_alias %{name}:%{name} org.samba.jcifs:jcifs

%build

export CLASSPATH=$(build-classpath glassfish-servlet-api)
export OPT_JAR_LIST=:
%ant jar javadoc docs

%mvn_artifact pom.xml %{name}-%{version}.jar

%install
%mvn_install -J docs/api

mkdir -p %{buildroot}%{_datadir}/%{name}/examples
cp -pr examples/*.java  %{buildroot}%{_datadir}/%{name}/examples

%files -f .mfiles
%doc README.txt docs/*.{html,txt,gif}
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files demo
%{_datadir}/%{name}/*
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13505 |21mr|jcip-annotations-1-26.20060626
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jcip-annotations
Version:        1
Release:        26.20060626
Summary:        Java annotations for multithreaded software
Group:          Development/Java
License:        CC-BY
URL:            http://www.jcip.net/
Source0:        http://jcip.net.s3-website-us-east-1.amazonaws.com/%{name}-src.jar
Source1:        http://mirrors.ibiblio.org/pub/mirrors/maven2/net/jcip/%{name}/1.0/%{name}-1.0.pom

# Add temporary dependency on javapackages-local, for %%add_maven_depmap macro
# See https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject.org/thread/R3KZ7VI5DPCMCELFIVJQ4AXB2WQED35C/
BuildRequires:  javapackages-local

# There is no point in building native libraries, as the sources contain only
# annotation definitions, so no code would be generated.
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  java-devel >= 1.5.0, jpackage-utils

Requires:       java-headless >= 1.5.0, jpackage-utils


%description
This package provides class, field, and method level annotations for
describing thread-safety policies.  These annotations are relatively
unintrusive and are beneficial to both users and maintainers.  Users can see
immediately whether a class is thread-safe, and maintainers can see
immediately whether thread-safety guarantees must be preserved.  Annotations
are also useful to a third constituency: tools.  Static code-analysis tools
may be able to verify that the code complies with the contract indicated by
the annotation, such as verifying that a class annotated with @Immutable
actually is immutable.

%package javadoc
Summary:        Javadoc for jcip-annotations

%description javadoc
Javadoc documentation for the jcip-annotations package.
On systems where javadoc is sinjdoc, this package contains nothing useful
since sinjdoc does not understand annotations.

%prep
%setup -q -c

# Get rid of the manifest created upstream with ant
rm -fr META-INF

# Fix DOS line endings
sed -i 's/\r//' net/jcip/annotations/package.html

%build
mkdir classes
find . -name '*.java' | xargs %javac -g -source 1.5 -target 1.5 -d classes
cd classes
%jar cf ../%{name}.jar net
cd ..
%javadoc -Xdoclint:none -d docs -source 1.5 net.jcip.annotations

%install
mkdir -p %{buildroot}%{_javadir}
mv %{name}.jar %{buildroot}%{_javadir}/%{name}.jar

# install maven metadata
mkdir -p %{buildroot}/%{_mavenpomdir}
cp %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap -a com.github.stephenc.jcip:jcip-annotations

# install javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles

%files javadoc
%{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13506 |21mr|jcodings-1.0.36-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Prevent brp-java-repack-jars from being run.
%define __jar_repack %{nil}
%bcond_with doc

Name:           jcodings
Version:        1.0.36
Release:        1
Summary:        Java-based codings helper classes for Joni and JRuby
Group:			Development/Java
License:        MIT
URL:            https://github.com/jruby/%{name}
Source0:        https://github.com/jruby/%{name}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java-based codings helper classes for Joni and JRuby.

%if %{with doc}
%package javadoc
Summary: API documentation for %{name}

%description javadoc
%{summary}.
%endif

%prep
%setup -q -n %{name}-%{name}-%{version}

find -name '*.class' -delete
find -name '*.jar' -delete

%mvn_file : %{name}

# Remove pointless parent pom
%pom_remove_parent

# Remove wagon extension
%pom_xpath_remove "pom:build/pom:extensions"

# Remove plugins not relevant for downstream RPM builds
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

# Generate OSGi metadata by using bundle packaging
%pom_xpath_inject pom:project "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin "<extensions>true</extensions>"

%build
%mvn_build %{!?_with_doc:-j}

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt
%doc README.md

%if %{with doc}
%files javadoc -f .mfiles-javadoc
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13507 |21mr|jcommon-1.0.23-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: jcommon
Version: 1.0.23
Release: 10
Summary: JFree Java utility classes
License: LGPLv2+
# Github: https://github.com/jfree/jcommon
# There are no tags which we can use to get sources. See:
#   https://github.com/jfree/jcommon/issues/1
# Source retrieved via:
#  bash getsources.sh 1ea10aa82e30e0d60f57e1c562281a3ac7dd5cdd 1.0.23
Source: %{name}-%{version}.tar.gz
URL: http://www.jfree.org/jcommon
BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: sonatype-oss-parent
Requires: java-headless, jpackage-utils
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JCommon is a collection of useful classes used by 
JFreeChart, JFreeReport and other projects.

%package javadoc
Summary: Javadoc for %{name}
Requires: %{name} = %{version}-%{release}
Requires: jpackage-utils

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
find . -name "*.jar" -exec rm -f {} \;
MVN_BUNDLE_PLUGIN_EXTRA_XML="<extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>org.jfree.jcommon</Bundle-SymbolicName>
            <Bundle-Vendor>Fedora Project</Bundle-Vendor>
            <Bundle-Version>%{version}</Bundle-Version>
            <!-- Do not autogenerate uses clauses in Manifests -->
            <_nouses>true</_nouses>
          </instructions>
        </configuration>"
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-site-plugin
%pom_add_plugin org.apache.felix:maven-bundle-plugin . "$MVN_BUNDLE_PLUGIN_EXTRA_XML"
# Change to packaging type bundle so as to be able to use it
# as an OSGi bundle.
%pom_xpath_set "pom:packaging" "bundle"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE README.md

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13508 |21mr|jcsp-1.1-0.12.rc5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -rc5
%global namedversion %{version}%{?namedreltag}
Name:          jcsp
Version:       1.1
Release:       0.12.rc5
Summary:       Communicating Sequential Processes for Java (JCSP)
License:       LGPLv2+
URL:           https://github.com/codehaus/jcsp
# sh jcsp-create-tarball.sh < VERSION-TAG >
Source0:       %{name}-%{namedversion}-clean.tar.xz
Source1:       %{name}-create-tarball.sh

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.osgi:osgi.core)
Group:         Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JCSP (Communication Sequential Processes for Java) is a
library providing a concurrency model that is a combination
of ideas from Hoare's CSP and Milner's pi-calculus.

Communicating Sequential Processes (CSP) is a mathematical
theory for specifying and verifying complex patterns of
behavior arising from interactions between concurrent
objects.

JCSP provides a base range of CSP primitives plus a rich set of
extensions. Also included is a package providing CSP process
wrappers giving a channel interface to all Java AWT widgets
and graphics operations.  It is extensively (java/documented)
and includes much teaching.

JCSP is an alternative concurrency model to the threads and
mechanisms built into Java. It is also compatible with
it since it is implemented on top of it.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :jdepend-maven-plugin
%pom_remove_plugin :rat-maven-plugin
%pom_remove_plugin :taglist-maven-plugin

# Use modern osgi implementation
%pom_change_dep :org.osgi.core org.osgi:osgi.core

# remove wagon-webdav
%pom_xpath_remove "pom:project/pom:build/pom:extensions"
# fix resouce directory and filter these ones
%pom_xpath_inject "pom:project/pom:build" "
<resources>
  <resource>
    <directory>src</directory>
    <excludes>
      <exclude>**/*.java</exclude>
      <exclude>**/doc-files/**</exclude>
      <exclude>**/win32/*Services.txt</exclude>
      <exclude>**/package.html</exclude>
    </excludes>
  </resource>
</resources>"

%pom_xpath_remove "pom:project/pom:reporting/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration/pom:excludePackageNames"

%pom_xpath_remove "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions/pom:Export-Package"
%pom_xpath_inject "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" '
<Export-Package>org.jcsp.*;version="${project.version}"</Export-Package>'

sed -i 's|${name}|${project.name}|' pom.xml

sed -i "s|59 Temple Place, Suite 330, Boston, MA 02111-1307 USA|51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA|" pom.xml

for d in LICENCE README ; do
  iconv -f iso8859-1 -t utf-8 $d.txt > $d.txt.conv && mv -f $d.txt.conv $d.txt
  sed -i 's/\r//' $d.txt
done

rm -r src/org/jcsp/win32 \
 src/org/jcsp/net/remote/SpawnerServiceNT.java \
 src/org/jcsp/net/tcpip/TCPIPCNSServerNT.java

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENCE.txt

%files javadoc -f .mfiles-javadoc
%license LICENCE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13509 |21mr|jctools-2.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %nil
%global namedversion %{version}%{?namedreltag}

Name:          jctools
Version:       2.1.2
Release:       4
Summary:       Java Concurrency Tools for the JVM
License:       ASL 2.0
Group:         Development/Java
URL:           http://jctools.github.io/JCTools/
Source0:       https://github.com/JCTools/JCTools/archive/v%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.github.javaparser:javaparser-core)
BuildRequires:  mvn(com.google.guava:guava-testlib)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.hamcrest:hamcrest-all)
BuildRequires:  mvn(org.ow2.asm:asm-util)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This project aims to offer some concurrent data structures
currently missing from the JDK:

° SPSC/MPSC/SPMC/MPMC Bounded lock free queues
° SPSC/MPSC Unbounded lock free queues
° Alternative interfaces for queues
° Offheap concurrent ring buffer for ITC/IPC purposes
° Single Writer Map/Set implementations
° Low contention stats counters
° Executor

%package channels
Summary:       JCTools Channel implementations

%description channels
Channel implementations for the
Java Concurrency Tools Library.

%package experimental
Summary:       JCTools Experimental implementations

%description experimental
Experimental implementations for the
Java Concurrency Tools Library.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package parent
Summary:       JCTools Parent POM

%description parent
JCTools Parent POM.

%prep
%setup -q -n JCTools-%{namedversion}
# Cleanup
find . -name '*.class' -print -delete
find . -name '*.jar' -print -delete

# Remove failure-prone tests (race condition?)
rm jctools-core/src/test/java/org/jctools/queues/MpqSanityTestMpscCompound.java
rm jctools-core/src/test/java/org/jctools/queues/atomic/AtomicMpqSanityTestMpscCompound.java

%pom_xpath_set pom:project/pom:version %{namedversion}
%pom_xpath_set -r pom:parent/pom:version %{namedversion} %{name}-{build,core,channels,experimental}

# Remove plugins unnecessary for RPM builds
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :coveralls-maven-plugin
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_plugin :maven-source-plugin %{name}-core
%pom_remove_plugin :maven-javadoc-plugin %{name}-core

# Unavailable deps
%pom_disable_module %{name}-benchmarks
%pom_disable_module %{name}-concurrency-test

# Modern asm deps
%pom_change_dep ":asm-all" ":asm-util" jctools-{channels,experimental}

# Add OSGi support
for mod in core experimental; do
 %pom_xpath_set "pom:project/pom:packaging" bundle %{name}-${mod}
 %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 %{name}-${mod} '
 <extensions>true</extensions>
 <executions>
   <execution>
     <id>bundle-manifest</id>
     <phase>process-classes</phase>
     <goals>
       <goal>manifest</goal>
     </goals>
   </execution>
 </executions>
 <configuration>
  <excludeDependencies>true</excludeDependencies>
 </configuration>'
done

# No need to package internal build tools
%mvn_package :jctools-build __noinstall

%build

#tests freeze
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-%{name}-core
%doc README.md
%license LICENSE

%files channels -f .mfiles-%{name}-channels

%files experimental -f .mfiles-%{name}-experimental

%files javadoc -f .mfiles-javadoc
%license LICENSE

%files parent -f .mfiles-%{name}-parent
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13510 |21mr|jdbi-2.63.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jdbi
Version:       2.63.1
Release:       8
Summary:       A SQL convenience library for Java
License:       ASL 2.0
URL:           http://jdbi.org/
Source0:       https://github.com/brianm/jdbi/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.fasterxml:classmate)
BuildRequires: mvn(com.google.code.findbugs:annotations)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.antlr:antlr-runtime)
BuildRequires: mvn(org.antlr:stringtemplate)
BuildRequires: mvn(org.antlr:antlr3-maven-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-jdbc)
BuildRequires: mvn(org.springframework:spring-tx)

%if 0
# test deps
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.h2database:h2)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-jexl)
BuildRequires: mvn(org.apache.derby:derby)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.springframework:spring-mock)
BuildRequires: mvn(postgresql:postgresql)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
jDBI is designed to provide convenient tabular data access in
Java. It uses the Java collections framework for query
results, provides a convenient means of externalizing SQL
statements, and provides named parameter support for any database
being used.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -type f -delete

# https://github.com/basepom/basepom org.basepom:basepom-standard-oss:11
%pom_remove_parent

# disable embedded antlr3-runtime, cglib, and classmate copy
%pom_remove_plugin :maven-shade-plugin

%pom_xpath_remove "pom:profiles"

%pom_change_dep log4j: ::1.2.17

# org.springframework spring 2.0.1
%pom_change_dep org.springframework:spring org.springframework:spring-beans
%pom_add_dep org.springframework:spring-core:'${dep.spring.version}'
%pom_add_dep org.springframework:spring-jdbc:'${dep.spring.version}'
%pom_add_dep org.springframework:spring-tx:'${dep.spring.version}'

%pom_xpath_remove "pom:dependency[pom:scope = 'test']"

%mvn_file : %{name}

%build

# unavailable test deps
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc CHANGES_PLANNED_FOR_3_0 CONTRIBUTORS README.md RELEASE_NOTES
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13511 |21mr|jdeparser1-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jdeparser1
Version:          1.0.0
Release:          8
Summary:          Source generator library for Java
# MIT: src/main/java/org/jboss/jdeparser/JSynchronized.java
License:          (CDDL or GPLv2 with exceptions) and MIT
URL:              https://github.com/jdeparser/jdeparser
Source0:          https://github.com/jdeparser/jdeparser/archive/%{namedversion}.tar.gz
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

%description
This project is a fork of Sun's (now Oracle's) com.sun.codemodel project. We
decided to fork the project because by all evidence, the upstream project is
dead and not actively accepting outside contribution. All JBoss projects are
urged to use this project instead for source code generation.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jdeparser-%{namedversion}

%mvn_compat_version : 1

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE-original.html

%files javadoc -f .mfiles-javadoc
%license LICENSE-original.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13512 |21mr|jdeparser-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jdeparser
Version:          2.0.3
Release:          1
Summary:          Source generator library for Java
License:          ASL 2.0
URL:              https://github.com/jdeparser/jdeparser2
# old repos https://github.com/jdeparser/jdeparser
Source0:          %{url}/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:            Development/Java
BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

%description
This project is a fork of Sun's (now Oracle's) com.sun.codemodel project. We
decided to fork the project because by all evidence, the upstream project is
dead and not actively accepting outside contribution. All JBoss projects are
urged to use this project instead for source code generation.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jdeparser2-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13513 |21mr|jdepend-2.9.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           jdepend
Version:        2.9.1
Release:        21
Epoch:          0
Summary:        Java Design Quality Metrics
License:        BSD
Group:          Development/Java
URL:            http://www.clarkware.com/
#Downloaded from http://github.com/clarkware/jdepend/tarball/2.9.1
Source0:        clarkware-jdepend-5798059.tar.gz
Source1:        %{name}-%{version}.pom
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  ant
BuildRequires:  java-devel
BuildRequires:  javapackages-local

%description
JDepend traverses a set of Java class and source file directories and
generates design quality metrics for each Java package. JDepend allows
you to automatically measure the quality of a design in terms of its
extensibility, reusability, and maintainability to effectively manage
and control package dependencies.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%package demo
Summary:        Demos for %{name}
Requires:       %{name} = %{version}-%{release}

%description demo
Demonstrations and samples for %{name}.

%prep
%setup -q -n clarkware-jdepend-5798059
# remove all binary libs
find . -name "*.jar" -delete
# fix strange permissions
find . -type d -exec chmod 755 {} \;

%mvn_file %{name}:%{name} %{name}

%build
ant jar javadoc

%install
%mvn_artifact %{SOURCE1} dist/%{name}-%{version}.jar
%mvn_install -J build/docs/api
rm -rf build/docs/api
# demo
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr sample $RPM_BUILD_ROOT%{_datadir}/%{name}

%files -f .mfiles
%doc README docs
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

%files demo
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13514 |21mr|jdependency-1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jdependency
Version:        1.2
Release:        5
Summary:        This project provides an API to analyse class dependencies
License:        ASL 2.0
URL:            http://github.com/tcurdt/%{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://github.com/tcurdt/%{name}/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-analysis)
BuildRequires:  mvn(org.ow2.asm:asm-commons)
BuildRequires:  mvn(org.ow2.asm:asm-tree)
BuildRequires:  mvn(org.ow2.asm:asm-util)

%description
%{name} is small library that helps you analyze class level
dependencies, clashes and missing classes.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13515 |21mr|jdiff-1.1.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:          jdiff
Version:       1.1.1
Release:       18
Summary:       An HTML Report of API Differences
License:       GPL+ and LGPLv2+
Group:         Development/Java
URL:           http://javadiff.sourceforge.net/
# cvs -d:pserver:anonymous@javadiff.cvs.sourceforge.net:/cvsroot/javadiff login
# cvs -z3 -d:pserver:anonymous@javadiff.cvs.sourceforge.net:/cvsroot/javadiff export -rHEAD jdiff
# removing unneeded files
# find jdiff -name .cvsignore -delete
# find jdiff -name "*.jar" -delete
# find jdiff -name "*.class" -delete
# tar czf jdiff-1.1.1-clean-src-cvs.tar.gz jdiff
Source0:       jdiff-1.1.1-clean-src-cvs.tar.gz
Source1:       jdiff-pom-template.xml
Source2:       jdiff-script

Patch0:        jdiff-java8.patch

BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: jpackage-utils

BuildRequires: ant
BuildRequires: junit
BuildRequires: xerces-j2
BuildRequires: /usr/bin/perl

Requires:      ant
Requires:      xerces-j2

Requires:      java-headless
Requires:      jpackage-utils
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JDiff is a Javadoc doclet which generates an HTML 
report of all the packages, classes, constructors, 
methods, and fields which have been removed, added 
or changed in any way, including their documentation, 
when two APIs are compared. This is very useful for 
describing exactly what has changed between two 
releases of a product. Only the API (Application 
Programming Interface) of each version is compared. 
It does not compare what the source code does when 
executed. 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n jdiff

%patch0 -p0

perl -pi -e 's/\r$//g' doc/CHANGES.txt doc/KNOWN_LIMITATIONS.txt doc/TODO doc/dev_notes.txt

perl -pi -e 's/\r$//g' LICENSE.txt README.txt

ln -sf $(build-classpath xerces-j2) lib/xerces.jar

# fix non ASCII chars
native2ascii -encoding UTF8 test/old/ChangedPackageDoc2/ChangedMethod.java test/old/ChangedPackageDoc2/ChangedMethod.java
native2ascii -encoding UTF8 test/new/ChangedPackageDoc2/ChangedMethod.java test/new/ChangedPackageDoc2/ChangedMethod.java


%build
export CLASSPATH=$(build-classpath junit):`pwd`/build/lib/jdiff.jar:`pwd`/build/lib/antjdiff.jar
%{ant} -Dbuild.sysclasspath=only dist unittest check.compile
# release

%javadoc -classpath `pwd`/build/lib/jdiff.jar:`pwd`/build/lib/antjdiff.jar:$(build-classpath xerces-j2 ant.jar ../jvm/java/lib/tools) \
-d apidocs -Xdoclint:none -sourcepath src -subpackages jdiff

%install

mkdir -p %{buildroot}%{_javadir}
install -pm 644 build/lib/ant%{name}.jar %{buildroot}%{_javadir}/ant%{name}.jar
install -pm 644 build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
sed -i "s|@version@|%{version}|" %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr apidocs/* %{buildroot}%{_javadocdir}/%{name}

mkdir -p %{buildroot}%{_bindir}
install -pm 755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}

%files -f .mfiles
%{_bindir}/%{name}
%{_javadir}/ant%{name}.jar
%doc README.txt doc/jdiff.html doc/CHANGES.txt doc/KNOWN_LIMITATIONS.txt doc/TODO doc/dev_notes.txt
%license LICENSE.txt

%files javadoc
%{_javadocdir}/%{name}
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13516 |21mr|jdo2-api-2.2-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jdo2-api
Version:       2.2
Release:       19
Summary:       Implementation of JSR 243: Java Data Objects 2.0
License:       ASL 2.0
Group:         Development/Java
Url:           http://db.apache.org/jdo/
Source0:       http://svn.apache.org/repos/asf/db/jdo/tags/2.2/dist/db/jdo/2.2/jdo2-api-2.2-src.tar.gz
Source1:       jdo2-api-2.2-build.xml
# changed javax.transaction transaction-api 1.1 with geronimo-jta_1.1_spec
# fix pom version
Source2:       http://repo1.maven.org/maven2/javax/jdo/jdo2-api/2.2/jdo2-api-2.2.pom

Patch0:        jdo2-api-2.2-pom.patch
BuildRequires: jpackage-utils
BuildRequires: java-devel
BuildRequires: javapackages-local

BuildRequires: ant
BuildRequires: geronimo-jpa
BuildRequires: geronimo-jta
BuildRequires: junit

Requires:      ant
Requires:      geronimo-jpa
Requires:      geronimo-jta
Requires:      junit

Requires:      jpackage-utils
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Data Objects 2 (JDO) API is a standard interface-based 
Java model abstraction of persistence, developed as Java Specification 
Request 243 under the auspices of the Java Community Process.

%package javadoc
Summary:       API documentation for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -c
cd %{name}-%{version}
cp -p %{SOURCE1} build.xml
cp -p %{SOURCE2} pom.xml
%patch0 -p0

%build
cd %{name}-%{version}
%ant jar javadoc

%install
cd %{name}-%{version}
mkdir -p %{buildroot}%{_javadir}
install -pm 644 %{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr  dist/docs/api/* %{buildroot}%{_javadocdir}/%{name}

%files -f %{name}-%{version}/.mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc
%{_javadocdir}/%{name}
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13517 |21mr|jdo-api-3.1-0.13.rc1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -rc1
%global namedversion %{version}%{?namedreltag}
Name:          jdo-api
Version:       3.1
Release:       0.13.rc1
Summary:       JDO 3.1 API
License:       ASL 2.0
URL:           http://db.apache.org/jdo/
# svn export http://svn.apache.org/repos/asf/db/jdo/tags/3.1-rc1/ jdo-api-3.1-rc1
# find jdo-api-3.1-rc1/ -name "*.jar" -delete
# find jdo-api-3.1-rc1/ -name "*.class" -delete
# tar cJf jdo-api-3.1-rc1.tar.xz jdo-api-3.1-rc1
Source0:       %{name}-%{namedversion}.tar.xz


BuildRequires: mvn(javax.transaction:jta)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)

%if 0
# copy-jdori-jars module deps
BuildRequires: mvn(com.mchange:c3p0)
BuildRequires: mvn(log4j:log4j)
# Circular deps
BuildRequires: mvn(org.datanucleus:datanucleus-api-jdo)
BuildRequires: mvn(org.datanucleus:datanucleus-api-jpa)
BuildRequires: mvn(org.datanucleus:datanucleus-core)
BuildRequires: mvn(org.datanucleus:datanucleus-rdbms)
# jdo-exectck module deps
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.derby:derby)
BuildRequires: mvn(org.apache.derby:derbytools)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-beans)
# jdo-tck module deps
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
%endif

# Test deps
BuildRequires: mvn(junit:junit)

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: maven-remote-resources-plugin
BuildRequires: maven-site-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Data Objects (JDO) API is a standard interface
based Java model abstraction of persistence, developed as
Java Specification Requests (JSR 12 and 243) under the
auspices of the Java Community Process.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_xpath_set "pom:dependencies/pom:dependency[pom:groupId = 'javax.transaction' ]/pom:artifactId" jta parent-pom
%pom_xpath_set "pom:dependencies/pom:dependency[pom:groupId = 'javax.transaction' ]/pom:artifactId" jta api
%pom_remove_plugin :maven-source-plugin api

%if 0
%pom_xpath_set "pom:dependencies/pom:dependency[pom:groupId = 'javax.transaction' ]/pom:artifactId" jta tck
%pom_xpath_set "pom:dependencies/pom:dependency[pom:artifactId = 'c3p0' ]/pom:groupId" com.mchange copyjdorijars
%pom_change_dep org.apache.geronimo.specs:geronimo-jpa_2.0_spec org.hibernate.javax.persistence:hibernate-jpa-2.0-api tck
%pom_change_dep org.apache.geronimo.specs:geronimo-jpa_2.0_spec org.hibernate.javax.persistence:hibernate-jpa-2.0-api exectck
%endif

%pom_disable_module copyjdorijars
%pom_disable_module exectck
%pom_disable_module tck

# unavailable test resources
rm -r api/test/java/javax/jdo/EnhancerTest.java \
 api/test/java/javax/jdo/PMFMapMapTest.java

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.html
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13518 |21mr|jdom-1.1.3-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2012, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           jdom
Version:        1.1.3
Release:        19
Epoch:          0
Summary:        Java alternative to DOM and SAX
License:        Saxpath
URL:            http://www.jdom.org/
Source0:        http://jdom.org/dist/binary/archive/jdom-%{version}.tar.gz
Source1:        http://repo1.maven.org/maven2/org/jdom/jdom/%{version}/jdom-%{version}.pom
Patch0:         %{name}-crosslink.patch
Patch1:         %{name}-1.1-OSGiManifest.patch

BuildRequires:  ant
BuildRequires:  javapackages-local

BuildRequires:  mvn(jaxen:jaxen)
BuildRequires:  mvn(xerces:xercesImpl)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JDOM is, quite simply, a Java representation of an XML document. JDOM
provides a way to represent that document for easy and efficient
reading, manipulation, and writing. It has a straightforward API, is a
lightweight and fast, and is optimized for the Java programmer. It's an
alternative to DOM and SAX, although it integrates well with both DOM
and SAX.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%package demo
Summary:        Demos for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description demo
Demonstrations and samples for %{name}.


%prep
%setup -q -n %{name}
%patch0 -p0
%patch1 -p0
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;

%build
export CLASSPATH=$(build-classpath xerces-j2 jaxen)
ant -Dj2se.apidoc=%{_javadocdir}/java package javadoc-link

%install
%mvn_file : %{name}
%mvn_alias : jdom:jdom
%mvn_artifact %{SOURCE1} build/%{name}-*-snap.jar
%mvn_install -J build/apidocs

# demo
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}

%files -f .mfiles
%license LICENSE.txt
%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files demo
%{_datadir}/%{name}
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13519 |21mr|jdom2-2.0.6-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jdom2
Version:       2.0.6
Release:       14
Summary:       Java manipulation of XML made easy
License:       Saxpath
URL:           http://www.jdom.org/
# ./generate-tarball.sh
Source0:       %{name}-%{version}.tar.gz
# originally taken from http://repo1.maven.org/maven2/org/jdom/jdom-contrib/1.1.3/jdom-contrib-1.1.3.pom
Source1:       jdom-contrib-template.pom
Source2:       jdom-junit-template.pom
# Bnd tool configuration
Source3:       bnd.properties
# Remove bundled jars that might not have clear licensing
Source4:       generate-tarball.sh
# Use system libraries
# Disable gpg signatures
# Process contrib and junit pom files
Patch0:        0001-Adapt-build.patch

BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: isorelax
BuildRequires: jaxen
BuildRequires: xalan-j2
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
BuildRequires: log4j12
BuildRequires: aqute-bnd

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JDOM is a Java-oriented object model which models XML documents.
It provides a Java-centric means of generating and manipulating
XML documents. While JDOM inter-operates well with existing
standards such as the Simple API for XML (SAX) and the Document
Object Model (DOM), it is not an abstraction layer or
enhancement to those APIs. Rather, it seeks to provide a robust,
light-weight means of reading and writing XML data without the
complex and memory-consumptive options that current API
offerings provide.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n jdom-JDOM-%{version}

%patch0 -p1

cp -p %{SOURCE1} maven/contrib.pom
cp -p %{SOURCE2} maven/junit.pom

sed -i 's/\r//' LICENSE.txt README.txt

# Unable to run coverage: use log4j12 but switch to log4j 2.x
sed -i.coverage "s|coverage, jars|jars|" build.xml

mkdir lib
build-jar-repository lib xerces-j2 xml-commons-apis jaxen junit isorelax xalan-j2 xalan-j2-serializer

%build
ant -Dversion=%{version} -Dj2se.apidoc=%{_javadocdir}/java maven

# Make jar into an OSGi bundle
bnd wrap --output build/package/jdom-%{version}.bar --properties %{SOURCE3} \
         --version %{version} build/package/jdom-%{version}.jar
mv build/package/jdom-%{version}.bar build/package/jdom-%{version}.jar

%install
%mvn_artifact build/maven/core/%{name}-%{version}.pom build/package/jdom-%{version}.jar
%mvn_artifact build/maven/core/%{name}-%{version}-contrib.pom build/package/jdom-%{version}-contrib.jar
%mvn_artifact build/maven/core/%{name}-%{version}-junit.pom build/package/jdom-%{version}-junit.jar
%mvn_install -J build/apidocs

%files -f .mfiles
%doc CHANGES.txt COMMITTERS.txt README.txt TODO.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13520 |21mr|je-6.3.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          je
Version:       6.3.8
Release:       8
Summary:       Berkeley DB Java Edition
License:       AGPLv3 and BSD
Group:         Development/Java
URL:           http://www.oracle.com/us/products/database/berkeley-db/je/overview/index.html
# use SOURCE2: sh je-create-tarball.sh < VERSION >
Source0:       %{name}-%{version}-clean.tar.xz
Source1:       http://download.oracle.com/maven/com/sleepycat/%{name}/%{version}/%{name}-%{version}.pom
Source2:       %{name}-create-tarball.sh
# fix build
Patch0:        %{name}-6.3.8-build.patch
Patch1:        %{name}-6.3.8-use-system-asm.patch

BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: hamcrest-core
BuildRequires: hostname
BuildRequires: java-javadoc
BuildRequires: javapackages-local
BuildRequires: jboss-connector-1.6-api
BuildRequires: jboss-ejb-3.1-api
BuildRequires: junit
BuildRequires: mvn(org.ow2.asm:asm)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Berkeley DB Java Edition is a high performance, transactional storage
engine written entirely in Java. Like the highly successful Berkeley DB
product, Berkeley DB Java Edition executes in the address space of the
application, without the overhead of client/server communication. It
stores data in the application's native format, so no run-time data
translation is required. Berkeley DB Java Edition supports full ACID
transactions and recovery. It provides an easy-to-use, programmatic
interface, allowing developers to store and retrieve information
quickly, simply and reliably.

%package examples
Summary:       Examples for %{name}
Requires:      %{name} = %{version}-%{release}

%description examples
This package contains examples for %{name}.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package examples-javadoc
Summary:       Javadoc for %{name}-examples
Requires:      %{name}-javadoc = %{version}-%{release}

%description examples-javadoc
This package contains javadoc for %{name}-examples.

%prep
%setup -q
%patch0 -p1
cp -p %{SOURCE1} pom.xml
%patch1 -p1
rm -rf src/com/sleepycat/asm

%mvn_file com.sleepycat:%{name} %{name}

%build

ant \
 -Dj2ee.jarfile="$(build-classpath jboss-connector-1.6-api):$(build-classpath jboss-ejb-3.1-api)" \
 -Djdk6.home=%{_jvmdir}/java \
 -Dant.library.dir=%{_javadir} \
 jar javadoc compile-examples

cd build/classes
%jar -cf ../../%{name}-examples.jar collections je jmx persist

%install
%mvn_artifact pom.xml build/lib/%{name}.jar
%mvn_install -J docs/java

install -pm 644 %{name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar
cp -a docs/examples %{buildroot}%{_javadocdir}/%{name}-examples

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

%files examples
%{_javadir}/%{name}-examples.jar
%license LICENSE

%files examples-javadoc
%{_javadocdir}/%{name}-examples
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13521 |21mr|jedis-2.7.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jedis
Version:       2.7.2
Release:       10
Summary:       A redis Java client
License:       MIT
URL:           https://github.com/xetorthio/jedis
Source0:       https://github.com/xetorthio/jedis/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-pool2)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jedis is a blazingly small and sane Redis java client.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
find . -name "*.bat" -delete
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-source-plugin
# Use default javadoc setting to override doclint issues
%pom_remove_plugin :maven-javadoc-plugin

# These tests fails. Caused by: java.net.ConnectException: Connection refused
rm -r src/test/java/redis/clients/jedis/tests/ConnectionCloseTest.java \
 src/test/java/redis/clients/jedis/tests/ConnectionTest.java \
 src/test/java/redis/clients/jedis/tests/JedisClusterTest.java \
 src/test/java/redis/clients/jedis/tests/JedisSentinelPoolTest.java \
 src/test/java/redis/clients/jedis/tests/JedisSentinelTest.java \
 src/test/java/redis/clients/jedis/tests/JedisPoolTest.java \
 src/test/java/redis/clients/jedis/tests/JedisTest.java \
 src/test/java/redis/clients/jedis/tests/PipeliningTest.java \
 src/test/java/redis/clients/jedis/tests/ShardedJedisPipelineTest.java \
 src/test/java/redis/clients/jedis/tests/ShardedJedisPoolTest.java \
 src/test/java/redis/clients/jedis/tests/ShardedJedisTest.java \
 src/test/java/redis/clients/jedis/tests/commands/AllKindOfValuesCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/BinaryValuesCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/BitCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/ClusterCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/ConnectionHandlingCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/ControlCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/HashesCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/HyperLogLogCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/ListCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/ObjectCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/PublishSubscribeCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/ScriptingCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/SetCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/SlowlogCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/SortedSetCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/SortingCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/StringValuesCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/TransactionCommandsTest.java \
 src/test/java/redis/clients/jedis/tests/commands/VariadicCommandsTest.java

%mvn_file : %{name}

%build

%mvn_build 

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13522 |21mr|jemalloc-5.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	General-purpose scalable concurrent malloc implementation
Name:		jemalloc
Version:	5.2.1
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://www.canonware.com/jemalloc/
Source0:	https://github.com/jemalloc/jemalloc/releases/download/%{version}/%{name}-%{version}.tar.bz2
Patch0:		0000-define-minimum-alignment-for-e2k.patch
BuildRequires:	xsltproc
%ifnarch %{e2k} %{riscv}
BuildRequires:	clang
%endif

%description
General-purpose scalable concurrent malloc(3) implementation.
This distribution is the stand-alone "portable" implementation of %{name}.

%files
%{_bindir}/jemalloc
%{_bindir}/jeprof
%{_mandir}/man3/jemalloc.3*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	General-purpose scalable concurrent malloc implementation
Group:		System/Libraries

%description -n %{libname}
General-purpose scalable concurrent malloc(3) implementation.
This distribution is the stand-alone "portable" implementation of %{name}.

%files -n %{libname}
%doc COPYING README VERSION
%doc doc/jemalloc.html
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_bindir}/jemalloc-config
%{_includedir}/jemalloc
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LC_ALL=C
# telegram-desktop sometimes crashes when jemalloc is build with gcc
# Building it with clang is reported to fix the problem
# An example backtrace: https://pastebin.com/raw/cUwrrXsv
# It is reported that code of jemmalloc uses #if's for gcc
# and uses some libc's functions when building with clang but uses gcc's builtin
# ones when building using gcc.
%ifnarch %{e2k} %{riscv}
export CC=clang
%endif
%configure
%make_build

%install
%make_install

# Install this with doc macro instead
rm %{buildroot}%{_datadir}/doc/%{name}/jemalloc.html

# None of these in fedora
find %{buildroot}%{_libdir}/ -name '*.a' -exec rm -vf {} ';'
mv %{buildroot}%{_bindir}/jemalloc.sh %{buildroot}%{_bindir}/jemalloc

# (tpg) fix it
# BUILDSTDERR: error: Invalid version (double separator '-'): 5.0.1-0-g896ed3a8b3f41998d4fb4d625d30ac63ef2d51fb: pkgconfig(jemalloc) = 5.0.1-0-g896ed3a8b3f41998d4fb4d625d30ac63ef2d51fb
sed -i -e "s/^Version:.*/Version: %{version}/g" %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13523 |21mr|jenkins-winstone-2.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global shortname winstone

Name:           jenkins-winstone
Version:        2.8
Release:        11
Summary:        Jenkins Winstone servlet container

License:        LGPLv2+ or CDDL
URL:            https://github.com/jenkinsci/winstone
Source0:        https://github.com/jenkinsci/%{shortname}/archive/%{shortname}-%{version}.tar.gz

# remove AJP support
Patch0:         0001-Remove-AJP-support.patch
# make it work with Java 8
Patch1:         0002-Fix-Java-8-compatibility.patch
# port to Jetty 9
#Patch1:         0001-Port-to-Jetty-9.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet:8.1.14.v20131031)
BuildRequires:  mvn(org.eclipse.jetty:jetty-webapp:8.1.14.v20131031)

%description
Winstone is a servlet container that was written out of a desire to
provide servlet functionality without the bloat that full J2EE
compliance introduces.

%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{shortname}-%{shortname}-%{version}

%patch0 -p1
%patch1 -p1
rm src/java/winstone/Ajp13ConnectorFactory.java

%pom_remove_plugin :maven-antrun-plugin
%pom_remove_plugin :maven-shade-plugin

%pom_change_dep org.eclipse.jetty: ::8.1.14.v20131031

%pom_remove_dep :jetty-ajp
%pom_remove_dep :spdy-jetty-http

# utf8 ftw
for file in LICENSE-CDDL.txt LICENSE-LGPL.txt; do
    iconv --from-code=ISO-8859-1 --to-code=UTF-8 ${file} > ${file}.utf8
    mv ${file}.utf8 ${file}
done

%build
# missing test dep org.kohsuke:ajp-client
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-CDDL.txt LICENSE-LGPL.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE-CDDL.txt LICENSE-LGPL.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13524 |21mr|jenkins-xstream-1.4.7-15.jenkins1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global patchlvl 1
%bcond_without doc

Name:           jenkins-xstream
Version:        1.4.7
Release:        15.jenkins%{patchlvl}
Summary:        Jenkins XStream library

License:        BSD
URL:            https://github.com/jenkinsci/xstream
Source0:        https://github.com/jenkinsci/xstream/archive/%{version}-jenkins-%{patchlvl}.tar.gz

# Fixes deserialization of void
# https://bugzilla.redhat.com/show_bug.cgi?id=1441541
# backport of https://github.com/x-stream/xstream/commit/b3570be2f39234e61f99f9a20640756ea71b1b40
Patch0:         0001-Prevent-deserialization-of-void.patch

BuildRequires:  maven-local
BuildRequires:  mvn(cglib:cglib)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(com.thoughtworks.xstream:xstream-parent:pom:)
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(joda-time:joda-time)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.sf.kxml:kxml2)
BuildRequires:  mvn(org.apache.maven.plugins:maven-eclipse-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus:codehaus-parent:pom:)
BuildRequires:  mvn(org.codehaus.jettison:jettison)
BuildRequires:  mvn(org.codehaus.woodstox:wstx-asl)
BuildRequires:  mvn(org.jdom:jdom)
BuildRequires:  mvn(org.jdom:jdom2)
BuildRequires:  mvn(org.json:json)
BuildRequires:  mvn(oro:oro)
BuildRequires:  mvn(stax:stax)
BuildRequires:  mvn(stax:stax-api)
BuildRequires:  mvn(xom:xom)
BuildRequires:  mvn(xpp3:xpp3_min)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
XStream is a simple library to serialize objects to XML
and back again. A high level facade is supplied that
simplifies common use cases. Custom objects can be serialized
without need for specifying mappings. Speed and low memory
footprint are a crucial part of the design, making it suitable
for large object graphs or systems with high message throughput.
No information is duplicated that can be obtained via reflection.
This results in XML that is easier to read for humans and more
compact than native Java serialization. XStream serializes internal
fields, including private and final. Supports non-public and inner
classes. Classes are not required to have default constructor.
Duplicate references encountered in the object-model will be
maintained. Supports circular references. By implementing an
interface, XStream can serialize directly to/from any tree
structure (not just XML). Strategies can be registered allowing
customization of how particular types are represented as XML.
When an exception occurs due to malformed XML, detailed diagnostics
are provided to help isolate and fix the problem.

This package contains XStream fork used in Jenkins.


%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n xstream-%{version}-jenkins-%{patchlvl}

%patch0 -p1

# no need for uber artifact
%pom_disable_module xstream-distribution
# and Jenkins doesn't use hibernate and benchmark artifact
%pom_disable_module xstream-hibernate
%pom_disable_module xstream-benchmark

# fix gIds for parent POM, Jenkins upstream uses "org.jvnet.hudson"
%pom_xpath_set "pom:project/pom:groupId" "org.jvnet.hudson"

# unavailable deps
%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-webdav']]"
%pom_remove_dep :xml-writer xstream
%pom_remove_dep :kxml2-min xstream

# Replace old xmlpull dependency with xpp3
%pom_change_dep :xmlpull xpp3:xpp3:1.1.4c xstream

# missing dep proxytoys:proxytoys
%pom_remove_plugin :maven-dependency-plugin xstream

# use cglib 3.x
%pom_remove_dep :cglib-nodep xstream
%pom_add_dep cglib:cglib xstream "<optional>true</optional>"

# remove OSGi metadata - it would duplicate vanilla xstream
%pom_remove_plugin -r :maven-jar-plugin
%pom_remove_plugin -r :maven-bundle-plugin

%build
# tests require old JMock library (version 1.x)
%mvn_build -f %{?with_doc:-- -Dmaven.javadoc.skip}

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%if %{without doc}
%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13525 |21mr|jeromq-0.3.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jeromq
Version:        0.3.6
Release:        7
Summary:        Pure Java implementation of libzmq
License:        MPLv2.0
URL:            https://github.com/zeromq/jeromq
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/zeromq/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Pure Java implementation of libzmq.

%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-javadoc-plugin

%build
# Tests require network access and fail on Koji.
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md CHANGELOG.md AUTHORS
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13526 |21mr|jersey1-1.19-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jersey1
Version:       1.19
Release:       13
Summary:       JAX-RS (JSR 311) production quality Reference Implementation
# One file in jersey-core/ is under ASL 2.0 license
# License file with incorrect fsf address https://java.net/jira/browse/JERSEY-2870
License:       (CDDL or GPLv2 with exceptions) and ASL 2.0
URL:           http://jersey.java.net/
Source0:       https://github.com/jersey/jersey-1.x/archive/%{version}.tar.gz
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt
# remove org.aspectj aspectjrt
# remove testng classifier jdk15
# change javax.servlet servlet-api 2.5 with org.jboss.spec.javax.servlet jboss-servlet-api_3.0_spec
# change spring25-release-version [2.5.2,3) to 3
Patch0:        jersey-1.19-contribs-spring-pom.patch
# Fix for rhbz#1019234
Patch1:        jersey-1.19-remove-tools-scope-system.patch
Patch2:        jersey-1.18.3-grizzly23.patch
Patch3:        jersey-1.19-system-asm.patch
# Disable the EclipseLink MOXy support
Patch4:        jersey-1.19-disable-eclipselink-support.patch

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.google.inject:guice)
BuildRequires: mvn(com.google.inject.extensions:extensions-parent:pom:)
BuildRequires: mvn(com.google.inject.extensions:guice-servlet)
BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires: mvn(com.sun.istack:istack-commons-maven-plugin)
BuildRequires: mvn(com.sun:tools)
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-httpclient:commons-httpclient)
# geronimo-annotation
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.mail:mail)
# geronimo-jpa
BuildRequires: mvn(javax.persistence:persistence-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.ws.rs:jsr311-api)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-launcher)
BuildRequires: mvn(org.apache.ant:ant-testutil)
BuildRequires: mvn(org.apache.commons:commons-io)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-interceptor_3.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jcdi_1.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs-parent:pom:)
BuildRequires: mvn(org.apache.tomcat:tomcat-jasper-el)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.aspectj:aspectjweaver)
BuildRequires: mvn(org.codehaus.jackson:jackson-core-asl)
BuildRequires: mvn(org.codehaus.jackson:jackson-jaxrs)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires: mvn(org.codehaus.jackson:jackson-xc)
BuildRequires: mvn(org.codehaus.jettison:jettison)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.freemarker:freemarker)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-http)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-http-server)
BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires: mvn(org.jvnet.jaxb2.maven2:maven-jaxb22-plugin)
BuildRequires: mvn(org.jvnet.mimepull:mimepull)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.osgi:org.osgi.core)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.springframework:spring-aop)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-web)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(xerces:xercesImpl)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jersey is the open source JAX-RS (JSR 311)
production quality Reference Implementation
for building RESTful Web services.

%package test-framework
Summary:       Jersey Test Framework

%description test-framework
%{summary}.

%package contribs
Summary:       Contributions to Jersey

%description contribs
Projects that provide additional functionality to jersey,
like integration with other projects/frameworks.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n jersey-1.x-%{version}
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p1
rm -rf jersey-server/src/main/java/jersey/repackaged
%patch4 -p1
rm -rf jersey-json/src/main/java/com/sun/jersey/json/impl/MoxyXmlStructure.java
%pom_remove_dep org.eclipse.persistence: jersey-json
rm jersey-json/src/test/java/com/sun/jersey/json/impl/ExceptionFromWriterTest.java \
 jersey-json/src/test/java/com/sun/jersey/json/impl/writer/DefaultXmlStreamWriterTest.java
%pom_disable_module jersey-moxy contribs
%pom_remove_dep org.eclipse.persistence:

cp -p %{SOURCE1} .
sed -i 's/\r//' LICENSE-2.0.txt

# unavailable deps
%pom_disable_module archetypes
%pom_disable_module archive
%pom_disable_module experimental
%pom_disable_module glassfish
%pom_disable_module jersey-bundle
%pom_disable_module jersey-documentation
%pom_disable_module jersey-grizzly
%pom_disable_module jersey-tests
%pom_disable_module osgi
%pom_disable_module ri
%pom_disable_module samples
%pom_disable_module tests
%pom_disable_module jersey-test-framework-grizzly jersey-test-framework
%pom_disable_module jersey-test-framework-embedded-glassfish jersey-test-framework
%pom_disable_module bill-burke-book contribs
%pom_disable_module jersey-atom-abdera contribs
%pom_disable_module jersey-non-blocking-client contribs
%pom_disable_module oauth-tests contribs/jersey-oauth
%pom_disable_module scala contribs
%pom_disable_module jersey-simple-server contribs
%pom_disable_module maven-wadl-plugin contribs
# Conflicts with jdom and jdom2 packages
%pom_disable_module jersey-atom

%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :cobertura-maven-plugin jersey-json
%pom_remove_plugin :cobertura-maven-plugin samples

# unavailable test deps
%pom_remove_dep com.sun.net.httpserver:http jersey-client

%pom_remove_plugin :maven-surefire-plugin jersey-core
%pom_remove_plugin :maven-surefire-plugin jersey-server

# Prepare offline setting for generate java source code
cat > jersey-server/etc/bindings.cat << EOF
PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "XMLSchema.dtd"
PUBLIC "XMLSchema.dtd" "XMLSchema.dtd"
SYSTEM "XMLSchema.dtd" "XMLSchema.dtd"

PUBLIC "datatypes" "datatypes.dtd"
SYSTEM "datatypes.dtd" "datatypes.dtd"

SYSTEM "xml.xsd" "xml.xsd"
EOF

rm -r jersey-server/etc/catalog.xml
sed -i 's|schemaLocation="http://www.w3.org/2001/xml.xsd"|schemaLocation="./xml.xsd"|' jersey-server/etc/wadl.xsd
# update plugin references
%pom_remove_plugin com.sun.tools.xjc.maven2: jersey-server
%pom_add_plugin "org.jvnet.jaxb2.maven2:maven-jaxb22-plugin:0.12.3" jersey-server '
<executions>
  <execution>
    <id>bindings</id>
    <phase>generate-sources</phase>
    <goals>
      <goal>generate</goal>
    </goals>
    <configuration>
      <generatePackage>com.sun.research.ws.wadl</generatePackage>
      <catalog>${basedir}/etc/bindings.cat</catalog>
      <schemaDirectory>${basedir}/etc</schemaDirectory>
      <bindingDirectory>${basedir}</bindingDirectory>
      <bindingIncludes>
        <bindingInclude>wadl.xsd</bindingInclude>
      </bindingIncludes>
      <forceRegenerate>false</forceRegenerate>
      <episode>true</episode>
      <specVersion>2.1</specVersion>
      <extension>true</extension>
      <strict>false</strict>
    </configuration>
  </execution>
</executions>'

# fix aId for new istack-commons maven plugin
for p in atom core bundle json; do
%pom_xpath_set "pom:plugin[pom:groupId = 'com.sun.istack' ]/pom:artifactId" istack-commons-maven-plugin jersey-${p}
done

%pom_change_dep org.osgi: :org.osgi.core jersey-client
%pom_change_dep org.osgi: :org.osgi.core jersey-server
%pom_change_dep org.osgi: :org.osgi.core jersey-servlet

%pom_change_dep :ant org.apache.ant: jersey-servlet

# Replace the weld-osgi-bundle dependency with the required JEE APIs
%pom_change_dep org.jboss.weld:weld-osgi-bundle org.apache.geronimo.specs:geronimo-jcdi_1.0_spec:1.0 jersey-servlet
%pom_add_dep javax.annotation:jsr250-api:1.0:provided jersey-servlet
%pom_add_dep org.apache.geronimo.specs:geronimo-interceptor_3.0_spec:1.0.1:provided jersey-servlet
%pom_add_dep javax.inject:javax.inject:1:provided jersey-servlet

%pom_change_dep org.glassfish:javax.ejb org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec jersey-servlet
%pom_change_dep javax.servlet:javax.servlet-api org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec jersey-servlet
%pom_change_dep javax.servlet:jsp-api org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.2_spec jersey-servlet
%pom_change_dep org.glassfish.web:el-impl org.apache.tomcat:tomcat-jasper-el jersey-server-linking
%pom_change_dep javax.servlet:servlet-api org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec contribs/jersey-guice

%pom_add_dep commons-codec:commons-codec::test contribs/jersey-apache-client
%pom_add_dep commons-codec:commons-codec::test contribs/jersey-multipart

# disable spring contribs tests. fails for various reasons
sed -i 's,<skip>${maven.test.skip}</skip>,<skip>true</skip>,' contribs/spring/pom.xml

# disable embedded jsr-311 copy
sed -i "s|<Export-Package>javax.ws.rs.*;-split-package:=merge-first,com.sun.jersey|<Export-Package>com.sun.jersey|" \
 jersey-core/pom.xml
sed -i "s|<Import-Package>!javax.ws.rs.*,javax.mail|<Import-Package>javax.ws.rs.*,javax.mail|" \
 jersey-core/pom.xml
#  contribs/jersey-moxy
for p in jersey-atom jersey-client jersey-core jersey-fastinfoset \
 jersey-grizzly2 jersey-grizzly2-servlet jersey-json jersey-server \
 jersey-servlet; do
%pom_xpath_set "pom:plugin[pom:artifactId = 'maven-bundle-plugin' ]/pom:configuration/pom:unpackBundle" false ${p}
done
#  contribs/jersey-moxy
for p in jersey-atom jersey-client jersey-fastinfoset jersey-json jersey-server ;do
%pom_add_dep javax.ws.rs:jsr311-api ${p}
done
for p in contribs/jersey-oauth/oauth-signature ;do
%pom_add_dep javax.ws.rs:jsr311-api::test ${p}
done

sed -i "s|<finalName>jersey-test-framework</finalName>||" \
jersey-test-framework/jersey-test-framework-core/pom.xml

# Cannot run program "svn"
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin

%pom_xpath_remove "pom:profiles" contribs/wadl-resourcedoc-doclet
%pom_add_dep com.sun:tools contribs/wadl-resourcedoc-doclet
%pom_add_dep com.sun.jersey:jersey-server:'${project.version}' contribs/wadl-resourcedoc-doclet

%pom_change_dep javax.el:el-api org.jboss.spec.javax.el:jboss-el-api_2.2_spec jersey-server-linking

# these test fails ( NOTE grizzly use servlet 3.1 apis, instead, jersey use servlet 3.0.1 apis )
rm -r contribs/jersey-apache-client/src/test/java/com/sun/jersey/client/apache/impl \
 jersey-test-framework/jersey-test-framework-grizzly2/src/test/java/com/sun/jersey/test/framework/impl/container/grizzlyweb2 \
 contribs/jersey-guice/src/test/java/com/sun/jersey/guice

# these tests fail
rm -r jersey-json/src/test/java/com/sun/jersey/json/impl/NamespaceElementTest.java \
 jersey-json/src/test/java/com/sun/jersey/json/impl/NamespaceSupportIssue272Test.java \
 jersey-json/src/test/java/com/sun/jersey/json/impl/NamespaceAttributeTest.java

rm -r jersey-server/src/test/java/com/sun/jersey/server/impl/BuildIdTest.java

rm -r jersey-server-linking/src/test/java/com/sun/jersey/server/linking/el/LinkELContextTest.java
# java.lang.NoSuchMethodError: javax.el.ELContext.notifyBeforeEvaluation(Ljava/lang/String;)V
rm -r jersey-server-linking/src/test/java/com/sun/jersey/server/linking/impl/LinkProcessorTest.java \
 jersey-server-linking/src/test/java/com/sun/jersey/server/linking/impl/RefProcessorTest.java

# IllegalStateException: Unsupported cookie spec: default
rm -r contribs/jersey-apache-client4/src/test/java/com

rm -r jersey-core/src/test/java/com/sun/jersey/core/SecurityTest.java

rm contribs/jersey-oauth/oauth-server/src/test/java/com/sun/jersey/oauth/server/NonceManagerTest.java

%mvn_compat_version : %{version} 1

# Do not install source jars
#%%mvn_package ":::?*:" __noinstall
# Fix conflict with jersey-test-framework-core thanks to Mikolaj Izdebski
%mvn_file :jersey-test-framework %{name}/jersey-test-framework-pom
%mvn_file :jersey-test-framework-core %{name}/jersey-test-framework
%mvn_file :jersey-test-framework-core %{name}/jersey-test-framework-core
%mvn_package ":jersey-test-framework" test-framework
%mvn_package ":jersey-test-framework-core" test-framework 
%mvn_package ":jersey-test-framework-external" test-framework
%mvn_package ":jersey-test-framework-grizzly2" test-framework
%mvn_package ":jersey-test-framework-http" test-framework
%mvn_package ":jersey-test-framework-inmemory" test-framework
# contribs   jersey-simple-server
%mvn_package ":jersey-contribs" contribs
%mvn_package ":ant-wadl-task" contribs
%mvn_package ":jersey-apache-client" contribs
%mvn_package ":jersey-apache-client4" contribs
%mvn_package ":jersey-freemarker" contribs
%mvn_package ":jersey-guice" contribs
#%% mvn_package ":jersey-moxy" contribs
%mvn_package ":jersey-multipart" contribs
%mvn_package ":jersey-oauth" contribs
%mvn_package ":jersey-spring" contribs
%mvn_package ":jersey-wadl-json-schema" contribs
%mvn_package ":oauth-client" contribs
%mvn_package ":oauth-server" contribs
%mvn_package ":oauth-signature" contribs
%mvn_package ":wadl-resourcedoc-doclet" contribs

%build

%mvn_build -f

%install
%mvn_install

mkdir -p %{buildroot}%{_sysconfdir}/ant.d
echo "ant %{name}/jersey-server-%{version} jaxb-api" > ant-wadl-task
install -p -m 644 ant-wadl-task %{buildroot}%{_sysconfdir}/ant.d/ant-wadl-task

%files -f .mfiles
%doc dependencies.html getting-started.html 
%license license.html legal/LICENSE.txt legal/maintenance/copyright.txt LICENSE-2.0.txt

%files test-framework -f .mfiles-test-framework
%license license.html legal/LICENSE.txt legal/maintenance/copyright.txt

%files contribs -f .mfiles-contribs
%config(noreplace) %{_sysconfdir}/ant.d/ant-wadl-task
%license license.html legal/LICENSE.txt legal/maintenance/copyright.txt

%files javadoc -f .mfiles-javadoc
%license license.html legal/LICENSE.txt legal/maintenance/copyright.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13527 |21mr|jersey-2.28-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Set this flag to build with reduced dependency set
%bcond_with jp_minimal

Name:          jersey
Version:       2.28
Release:       5
Summary:       JAX-RS (JSR 311) production quality Reference Implementation
# Some files in core-server are under ASL 2.0 license
License:       (EPL-2.0 or GPLv2 with exceptions) and ASL 2.0
Group:         Development/Java
URL:           https://github.com/eclipse-ee4j/jersey
Source0:       https://github.com/eclipse-ee4j/jersey/archive/%{version}/%{name}-%{version}.tar.gz
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

# Support fo servlet 3.1 apis
Patch0:        jersey-2.17-mvc-jsp-servlet31.patch
# Unavailable test dep
Patch1:        0001-Patch-out-dependency-on-JMockit.patch
# Keep working with old deps in Fedora
Patch2:        0002-Port-to-glassfish-jsonp-1.0.patch
Patch3:        0003-Port-to-hibernate-validation-5.x.patch
# Fix building with Jetty 9, from v2.30+
# https://github.com/eclipse-ee4j/jersey/commit/1504174
Patch4:        1504174ace92ff8cbeb13f5b588edd598466e18b.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.fasterxml.jackson.module:jackson-module-jaxb-annotations)
BuildRequires:  mvn(com.google.guava:guava:18.0)
BuildRequires:  mvn(com.sun.istack:istack-commons-maven-plugin)
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(jakarta.ws.rs:jakarta.ws.rs-api)
BuildRequires:  mvn(javax.annotation:javax.annotation-api)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
BuildRequires:  mvn(javax.validation:validation-api)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.jetty:jetty-client)
BuildRequires:  mvn(org.glassfish.hk2:hk2-bom:pom:)
BuildRequires:  mvn(org.glassfish.hk2:hk2-locator)
BuildRequires:  mvn(org.glassfish.hk2:osgi-resource-locator)
BuildRequires:  mvn(org.osgi:org.osgi.core)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(xerces:xercesImpl)
%if %{without jp_minimal}
BuildRequires:  mvn(com.github.spullara.mustache.java:compiler)
BuildRequires:  mvn(io.reactivex:rxjava)
BuildRequires:  mvn(javax.el:javax.el-api)
BuildRequires:  mvn(javax.enterprise:cdi-api)
BuildRequires:  mvn(javax.json:javax.json-api)
BuildRequires:  mvn(javax.persistence:persistence-api)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(javax.servlet.jsp:jsp-api)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.codehaus.jettison:jettison)
BuildRequires:  mvn(org.eclipse.jetty:jetty-continuation)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.eclipse.jetty:jetty-util)
BuildRequires:  mvn(org.eclipse.jetty:jetty-webapp)
BuildRequires:  mvn(org.freemarker:freemarker)
BuildRequires:  mvn(org.glassfish.grizzly:grizzly-http-server)
BuildRequires:  mvn(org.glassfish.grizzly:grizzly-http-servlet)
BuildRequires:  mvn(org.glassfish:javax.el)
BuildRequires:  mvn(org.glassfish:javax.json)
BuildRequires:  mvn(org.glassfish:jsonp-jaxrs)
BuildRequires:  mvn(org.hamcrest:hamcrest-library)
BuildRequires:  mvn(org.hibernate:hibernate-validator)
BuildRequires:  mvn(org.hibernate:hibernate-validator-cdi)
BuildRequires:  mvn(org.jboss:jboss-vfs)
BuildRequires:  mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires:  mvn(org.jboss.weld.se:weld-se-core)
BuildRequires:  mvn(org.jvnet.mimepull:mimepull)
BuildRequires:  mvn(org.mockito:mockito-all)
BuildRequires:  mvn(org.simpleframework:simple-common)
BuildRequires:  mvn(org.simpleframework:simple-http)
BuildRequires:  mvn(org.simpleframework:simple-transport)
BuildRequires:  mvn(org.testng:testng)
%endif

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jersey is the open source JAX-RS (JSR 311)
production quality Reference Implementation
for building RESTful Web services.

%if %{without jp_minimal}
%package test-framework
Summary:       Jersey Test Framework

%description test-framework
%{summary}.
%endif

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
%autosetup -p1

find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

# Additional license file
cp -p %{SOURCE1} .
sed -i 's/\r//' LICENSE-2.0.txt

# Remove repackaged bundled deps: guava, objectweb-asm
rm -r core-server/src/main/java/jersey
find core-server -name "*.java" -exec sed -i "s|jersey.repackaged.||" {} +
rm -r core-common/src/main/java/org/glassfish/jersey/internal/guava
grep -rl --include=*.java org.glassfish.jersey.internal.guava | xargs sed -i "s|org\.glassfish\.jersey\.internal\.guava|com.google.common.base|"
find core-* containers/{grizzly2,jdk,jetty}-http media/sse ext/{entity-filtering,bean-validation,rx} -name "*.java" -exec sed -i \
  -e "/base\.Cache/s/common\.base/common.cache/" \
  -e "/base\.LoadingCache/s/common\.base/common.cache/" \
  -e "/base\.Multimap/s/common\.base/common.collect/" \
  -e "/base\.....Multimap/s/common\.base/common.collect/" \
  -e "/base\.HashBasedTable/s/common\.base/common.collect/" \
  -e "/base\.Table/s/common\.base/common.collect/" \
  -e "/base\.ThreadFactoryBuilder/s/common\.base/common.util.concurrent/" \
  -e "/base\.InetAddresses/s/common\.base/common.net/" \
  -e "/base\.Primitives/s/common\.base/common.primitives/" {} +
%pom_add_dep 'com.google.guava:guava:${guava.version}' core-common inject/hk2
%pom_xpath_set "pom:dependency[pom:artifactId = 'guava']/pom:scope" provided containers/jdk-http
%pom_add_dep 'org.ow2.asm:asm:${asm.version}' core-server

# EE4j parent pom contains only release/nexus related stuff, we won't miss it
%pom_remove_parent bom .

# Some Glassfish APIs that moved to the EE4j project are not yet updated in Fedora to
# provide the new Jakarta maven coords, so continue to use the old javax coords for now
%pom_change_dep -r jakarta.servlet:jakarta.servlet-api javax.servlet:javax.servlet-api . test-framework
%pom_change_dep -r jakarta.servlet.jsp:jakarta.servlet.jsp-api javax.servlet.jsp:jsp-api
%pom_change_dep -r jakarta.xml.bind:jakarta.xml.bind-api javax.xml.bind:jaxb-api
%pom_change_dep -r jakarta.annotation:jakarta.annotation-api javax.annotation:javax.annotation-api
%pom_change_dep -r jakarta.persistence:jakarta.persistence-api javax.persistence:persistence-api
%pom_change_dep -r org.glassfish.hk2.external:jakarta.inject javax.inject:javax.inject
%pom_change_dep -r jakarta.el:jakarta.el-api javax.el:javax.el-api
%pom_change_dep -r org.glassfish:jakarta.el org.glassfish:javax.el
%pom_change_dep -r org.glassfish:jakarta.json org.glassfish:javax.json

# Fix NoClassDefFound in tests
%pom_add_dep javax.json:javax.json-api:1.0 media/json-processing

# Fix misc EE API references
%pom_change_dep javax:javaee-api javax.enterprise:cdi-api:'${cdi.api.version}':provided ext/cdi/jersey-cdi1x-transaction
%pom_add_dep org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec:1.0.0.Alpha3:provided ext/cdi/jersey-cdi1x-transaction
%pom_add_dep org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec:1.0.0.Alpha3:provided ext/cdi/jersey-cdi1x-validation

# Fix reference to JDK tools jar
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId = 'tools']/pom:scope" ext/wadl-doclet
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:artifactId = 'tools']/pom:systemPath" ext/wadl-doclet

# Don't use obsolete servlet API version
%pom_remove_dep -r org.mortbay.jetty:servlet-api-2.5

# JMockit is unavailable in Fedora
%pom_remove_dep -r org.jmockit:jmockit

# Disable plugins/extensions not needed for RPM builds
%pom_xpath_remove pom:build/pom:extensions
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :buildnumber-maven-plugin core-common
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-jflex-plugin media/moxy
%pom_remove_plugin :maven-jflex-plugin media/jaxb

# Prevent duplicate javadoc invokation
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin' ]/pom:executions"

# No need to ship archetypes (these are pulled from maven central
# when a user invokes the archetype generator command line tool)
%pom_disable_module archetypes

# Disable incubating projects (not generally production ready)
%pom_disable_module incubator

# Don't ship support for netty that doesn't build
%pom_disable_module netty-http containers
%pom_remove_dep :jersey-container-netty-http bom
%pom_disable_module netty-connector connectors
%pom_remove_dep :jersey-netty-connector bom
%pom_disable_module netty test-framework/providers
%pom_remove_dep :jersey-test-framework-provider-netty test-framework/providers/bundle

# Don't ship support for obsolete Jersey 1.x
%pom_disable_module servlet-portability ext
%pom_remove_dep :jersey-servlet-portability bom

# Don't ship support for obsolete jackson 1.x
%pom_disable_module json-jackson1 media
%pom_remove_dep :jersey-media-json-jackson1 bom

# Requires unavailable dep on eclipse yasson
%pom_disable_module json-binding media
%pom_remove_dep :jersey-media-json-binding bom

# Requires unavailable dep eclipselink moxy
%pom_disable_module moxy media
%pom_remove_dep :jersey-media-moxy bom

# Requires unavailable dep on Spring Framework 4.x
%pom_disable_module spring4 ext
%pom_remove_dep :jersey-spring4 bom

# Requires unavailable dep grizzly-http-client
%pom_disable_module grizzly-connector connectors
%pom_remove_dep :jersey-grizzly-connector bom
%pom_remove_dep org.glassfish.jersey.connectors:jersey-grizzly-connector media/multipart
rm media/multipart/src/test/java/org/glassfish/jersey/media/multipart/internal/MultiPartHeaderModificationTest.java

# Requires unavailable dep ejb-container
%pom_disable_module glassfish containers
%pom_remove_dep :jersey-gf-ejb bom

# Requires unavailable dep on cdi-api 2
%pom_disable_module cdi2-se inject
%pom_remove_dep :jersey-cdi2-se bom

# Requires unavailable dep on rxjava2
%pom_disable_module rx-client-rxjava2 ext/rx
%pom_remove_dep :jersey-rx-client-rxjava2 bom

# Requires unavailable groovy-eclipse-compiler plugin
%pom_disable_module maven test-framework

# Don't bother regenerating wadl sources, we don't have the plugin
%pom_remove_plugin com.sun.tools.xjc.maven2: core-server

# Additional modules to disable when jp_minimal is activated
%if %{with jp_minimal}
%pom_disable_module bom
%pom_disable_module containers
%pom_disable_module security
%pom_disable_module json-jettison media
%pom_disable_module json-processing media
%pom_disable_module multipart media
%pom_disable_module sse media
%pom_disable_module bean-validation ext
%pom_disable_module cdi ext
%pom_disable_module metainf-services ext
%pom_disable_module mvc ext
%pom_disable_module mvc-bean-validation ext
%pom_disable_module mvc-freemarker ext
%pom_disable_module mvc-jsp ext
%pom_disable_module mvc-mustache ext
%pom_disable_module proxy-client ext
%pom_disable_module rx ext
%endif

# Ensure HK2-based InjectionManagerFactory implementation can be discovered under OSGi
%pom_xpath_inject "pom:plugin/pom:configuration/pom:instructions" \
  '<Require-Bundle>org.glassfish.jersey.inject.jersey-hk2;bundle-version="%{version}"</Require-Bundle>' core-common
cp -p inject/hk2/src/main/resources/META-INF/services/org.glassfish.jersey.internal.inject.InjectionManagerFactory \
  core-common/src/main/resources/META-INF/services

# Allow versioned dep on javax.annotation
sed -i -e 's/javax\.annotation\.\*;version="!"/javax.annotation.*/' $(find -name pom.xml)
# Make optional dep on javax.activation
sed -i -e 's/javax\.activation\.\*;/javax.activation.*;resolution:=optional;/' core-common/pom.xml

# All aggregation poms conflict because they have the same aId
%mvn_file "org.glassfish.jersey.connectors:project" %{name}/connectors-project
%mvn_file "org.glassfish.jersey.containers:project" %{name}/containers-project
%mvn_file "org.glassfish.jersey.ext:project" %{name}/ext-project
%mvn_file "org.glassfish.jersey.ext.cdi:project" %{name}/ext-cdi-project
%mvn_file "org.glassfish.jersey.ext.rx:project" %{name}/ext-rx-project
%mvn_file "org.glassfish.jersey.inject:project" %{name}/inject-project
%mvn_file "org.glassfish.jersey.media:project" %{name}/media-project
%mvn_file "org.glassfish.jersey.security:project" %{name}/security-project
%mvn_file "org.glassfish.jersey.test-framework:project" %{name}/test-framework-project
%mvn_file "org.glassfish.jersey.test-framework.providers:project" %{name}/test-framework-providers-project

# Package test framework separately
%mvn_package "org.glassfish.jersey.test-framework*:" test-framework

%build
%if %{without jp_minimal}
# Build everything except examples, integration tests and distribution bundles
%mvn_build -- -PsecurityOff -Dasm.version=6.2.1 -Dmaven.test.failure.ignore=true \
  -Dexamples.excluded -Dtests.excluded -Dbundles.excluded
%else
# Additionally omit tests and testing framework for minimal builds
%mvn_build -f -- -PsecurityOff -Dasm.version=6.2.1 -Dmaven.test.failure.ignore=true \
  -Dexamples.excluded -Dtests.excluded -Dbundles.excluded -Dtest-framework.excluded
%endif

%install
%mvn_install

%files -f .mfiles
%doc README.md CONTRIBUTING.md
%license LICENSE.md NOTICE.md LICENSE-2.0.txt

%if %{without jp_minimal}
%files test-framework -f .mfiles-test-framework
%license LICENSE.md NOTICE.md LICENSE-2.0.txt
%endif

%files javadoc -f .mfiles-javadoc
%license LICENSE.md NOTICE.md LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13528 |21mr|jetbrains-annotations-15.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname annotations
Name:          jetbrains-annotations
Version:       15.0
Release:       9
Summary:       IntelliJ IDEA Annotations
License:       ASL 2.0
URL:           http://www.jetbrains.org
Source0:       http://central.maven.org/maven2/org/jetbrains/annotations/%{version}/annotations-%{version}-sources.jar
Source1:       http://central.maven.org/maven2/org/jetbrains/annotations/%{version}/annotations-%{version}.pom
Source2:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A set of annotations used for code inspection support and code documentation.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -T -q -c

mkdir -p src/main/{java,resources}

(
  cd src/main/java
  %jar -xf %{SOURCE0}
  rm -rf META-INF
)

cp -p %{SOURCE1} pom.xml

%pom_remove_plugin :maven-antrun-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%pom_xpath_inject pom:properties "<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>"

cp -p %{SOURCE2} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%mvn_file org.jetbrains:%{oname} %{name}
%mvn_alias org.jetbrains:%{oname} com.intellij:

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13529 |21mr|jets3t-0.9.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jets3t
Version:       0.9.3
Release:       11
Summary:       Java interface to Amazon S3 and CloudFront services
# nuvola theme is under LGPL 2.1
# src/org/jets3t/gui/TableSorter.java BSD
License:       ASL 2.0 and BSD and LGPLv2+
Group:         Development/Java
Url:           http://jets3t.s3.amazonaws.com/index.html
# hg clone https://bitbucket.org/jmurty/jets3t -r Release-0.9.3 jets3t-0.9.3
# find jets3t-0.9.3/ -name "*.class" -delete
# find jets3t-0.9.3/ -name "*.jar" -delete
# find jets3t-0.9.3/ -name "*.bat" -delete
# tar cJf jets3t-0.9.3.tar.xz jets3t-0.9.3
Source0:       %{name}-%{version}.tar.xz
# from Debian
Source5:       %{name}-cockpit.pod
Source6:       %{name}-cockpitlite.pod
Source7:       %{name}-synchronize.pod
Source8:       %{name}-uploader.pod

# fix java.home, jets3t.home, add system libraries refs
Patch0:        %{name}-0.9.3-scripts.patch
# fix license fsf-address
Patch1:        %{name}-0.9.0-nuvola-fsf-address.patch

Patch2:        %{name}-0.9.3-dist-build.patch

BuildRequires: ant
BuildRequires: apache-commons-codec
BuildRequires: apache-commons-logging
BuildRequires: BareBonesBrowserLaunch
BuildRequires: bouncycastle
BuildRequires: dos2unix
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-core
BuildRequires: jackson
BuildRequires: java-base64
BuildRequires: java-xmlbuilder
BuildRequires: javamail
BuildRequires: junit
BuildRequires: log4j12
BuildRequires: maven-local
BuildRequires: mx4j
# pod2man
BuildRequires: %{_bindir}/pod2man
BuildRequires: sonatype-oss-parent
BuildRequires: glassfish-servlet-api

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JetS3t toolkit provides Java programmers with an API for interacting and
managing data stored in Amazon Simple Storage Service and Amazon CloudFront
content delivery network.

%package app
Summary:       Graphical and command-line tools for Amazon S3 and CloudFront
Requires:      %{name} = %{version}-%{release}
Requires:      apache-commons-codec
Requires:      apache-commons-logging
Requires:      avalon-framework
Requires:      avalon-logkit
Requires:      BareBonesBrowserLaunch
Requires:      base64
Requires:      bouncycastle
Requires:      geronimo-jms
Requires:      glassfish-servlet-api
Requires:      httpcomponents-client
Requires:      httpcomponents-core
Requires:      java
Requires:      java-xmlbuilder
Requires:      jpackage-utils
Requires:      log4j12

%description app
The JetS3t toolkit provides Java programmers with an API for interacting and
managing data stored in Amazon Simple Storage Service and Amazon CloudFront
content delivery network.

Features:
- jets3t-cockpitlite: A graphical application that Service Providers with S3
  accounts may provide to clients or customers without S3 accounts.
  jets3t-cockpitlite allows users to manage the content of an S3 account to
  upload files, download files, delete S3 objects and make objects publicly
  accessible. All these operations are mediated by a Gatekeeper service.
- jets3t-cockpit: graphical application for transferring files, viewing and
  managing the contents of an Amazon S3 account.
- jets3t-synchronize: A command-line application for synchronizing
  directories on your computer with an Amazon S3 account. Ideal for
  performing back-ups or synchronizing files between different computers.
- jets3t-uploader: A graphical application that Service Providers with S3
  accounts may provide to clients or customers without S3 accounts.
  jets3t-uploader allows users to upload files to S3 using a simple
  wizard-based work-flow, but all uploads must first be authorized by a
  Gatekeeper service
- gatekeeper: A servlet that acts as an authorization service running on a
  Service Provider's server to mediate access to S3 accounts.
  It processes requests from client applications such as JetS3t Uploader &
  CockpitLite, and authorizes the client application to perform operations
  such as uploads, downloads and deletes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
dos2unix dist-build.xml
%patch0 -p1
sed -i "s|log4j.jar|log4j12-1.2.17.jar|" dist-build.xml
%patch1 -p0
%patch2 -p0



rm -rf src/contribs/com/centerkey/utils/BareBonesBrowserLaunch.java
sed -i "s|contribs.com.centerkey.utils.BareBonesBrowserLaunch|com.centerkey.utils.BareBonesBrowserLaunch|" \
 src/org/jets3t/apps/cockpit/Cockpit.java \
 src/org/jets3t/apps/cockpit/gui/StartupDialog.java \
 src/org/jets3t/apps/cockpitlite/CockpitLite.java \
 src/org/jets3t/apps/uploader/Uploader.java \
 src/org/jets3t/apps/cockpit/Cockpit.java \
 src/org/jets3t/apps/cockpit/gui/StartupDialog.java \
 src/org/jets3t/apps/cockpitlite/CockpitLite.java \
 src/org/jets3t/apps/uploader/Uploader.java

find . -name "*.war" -delete

# fix non ASCII chars
for s in test/org/jets3t/service/BaseStorageServiceTests.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

sed -i 's/\r//' LICENSE-2.0.txt NOTICE.txt resources/images/nuvola/license.txt

cp -p %{SOURCE5} .
cp -p %{SOURCE6} .
cp -p %{SOURCE7} .
cp -p %{SOURCE8} .

%pom_remove_plugin org.apache.maven.plugins:maven-jarsigner-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin
# https://gil.fedorapeople.org/appassembler-1.9-1.fc20.src.rpm
%pom_remove_plugin org.codehaus.mojo:appassembler-maven-plugin
%pom_remove_plugin org.codehaus.mojo:sonar-maven-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin

%pom_remove_dep javax.activation:activation
%pom_add_dep com.centerkey.utils:BareBonesBrowserLaunch:3.1

#%% pom_remove_dep javax.servlet:javax.servlet-api
#%% pom_add_dep org.apache.tomcat:tomcat-servlet-api::provided

%mvn_alias net.java.dev.%{name}:%{name} ":cockpit"
%mvn_alias net.java.dev.%{name}:%{name} ":cockpitlite"
%mvn_alias net.java.dev.%{name}:%{name} ":%{name}-gui"
%mvn_alias net.java.dev.%{name}:%{name} ":synchronize"
%mvn_alias net.java.dev.%{name}:%{name} ":uploader"

%build

# test use web access
%mvn_build -f

ant -f dist-build.xml -Ddir.servlets=$PWD/servlet rebuild-gatekeeper

for m in cockpitlite cockpit synchronize uploader; do
  %{_bindir}/pod2man -c '' -r '' %{name}-${m}.pod > %{name}-${m}.1 ;
done

%install
%mvn_install

mkdir -p %{buildroot}%{_datadir}/%{name}/jars
(
  cd %{buildroot}%{_javadir}
  ln -sf ../../java/%{name}/%{name}.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-%{version}.jar
  ln -sf ../../java/%{name}/%{name}.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-gui-%{version}.jar
)

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}/bin
for TOOL in cockpit cockpitlite synchronize uploader
do
  install -pm 755 scripts/$TOOL.sh %{buildroot}%{_bindir}/%{name}-$TOOL
  ln -sf ../../../bin/%{name}-$TOOL %{buildroot}%{_datadir}/%{name}/bin/$TOOL.sh

(
  cd %{buildroot}%{_javadir}
  ln -sf ../../java/%{name}/%{name}.jar %{buildroot}%{_datadir}/%{name}/jars/%{name}-$TOOL-%{version}.jar
)

done

chmod 0755  %{buildroot}%{_datadir}/%{name}/bin/*

mkdir -p %{buildroot}%{_mandir}/man1
install -pm 644 %{name}-*.1 %{buildroot}%{_mandir}/man1/

mkdir -p %{buildroot}%{_sysconfdir}/%{name} %{buildroot}%{_datadir}/%{name}/configs
sed -i "s|{jets3t-version}|%{version}|" configs/cockpitlite.properties
cp -pr configs/* %{buildroot}%{_sysconfdir}/%{name}/
ln  -sf ../../../../etc/%{name}/cockpitlite.properties %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/commons-logging.properties %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/devpay_products.properties %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/%{name}.properties %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/log4j.properties %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/mime.types %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/simplelog.properties %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/synchronize.properties %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/test.properties %{buildroot}%{_datadir}/%{name}/configs/
ln  -sf ../../../../etc/%{name}/uploader.properties %{buildroot}%{_datadir}/%{name}/configs/

mkdir -p %{buildroot}%{_datadir}/%{name}/resources
cp -pr resources/* %{buildroot}%{_datadir}/%{name}/resources/
cp -pr servlets %{buildroot}%{_datadir}/%{name}/

%files -f .mfiles
%doc README.markdown RELEASE_NOTES.markdown
%license LICENSE-2.0.txt NOTICE.txt

%files app
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_bindir}/%{name}-*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/bin
%dir %{_datadir}/%{name}/configs
%dir %{_datadir}/%{name}/jars
%dir %{_datadir}/%{name}/resources
%dir %{_datadir}/%{name}/servlets
%{_datadir}/%{name}/jars/*
%{_datadir}/%{name}/bin/*
%{_datadir}/%{name}/configs/*
%{_datadir}/%{name}/resources/*
%{_datadir}/%{name}/servlets/*
%{_mandir}/man1/*
%license LICENSE-2.0.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13530 |21mr|jettison-1.3.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jettison
Version:        1.3.7
Release:        9
Summary:        A JSON StAX implementation
License:        ASL 2.0
URL:            http://jettison.codehaus.org/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        https://github.com/codehaus/jettison/archive/%{name}-%{version}.tar.gz

# Change the POM to use the version of woodstox that we have available:
Patch0: %{name}-update-woodstox-version.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus:codehaus-parent:pom:)
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires:  mvn(stax:stax-api)

%description
Jettison is a collection of Java APIs (like STaX and DOM) which read
and write JSON. This allows nearly transparent enablement of JSON based
web services in services frameworks like CXF or XML serialization
frameworks like XStream.

%package javadoc
Summary:           Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0 -p1
# We don't need wagon-webdav
%pom_xpath_remove pom:build/pom:extensions

%pom_remove_plugin :maven-release-plugin

# Confuses maven-bundle-plugin
%pom_xpath_remove pom:Private-Package

%build
# Disable the tests until BZ#796739 is fixed:
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc src/main/resources/META-INF/LICENSE

%files javadoc -f .mfiles-javadoc
%doc src/main/resources/META-INF/LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13531 |21mr|jetty8-8.1.17-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# jetty8 is a compat package and as such it shouldn't have any OSGi provides
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^osgi\\(

%global addver v20150415

Name:           jetty8
Version:        8.1.17
Release:        12
Summary:        Java Webserver and Servlet Container
# Jetty is dual licensed under both ASL 2.0 and EPL 1.0, see NOTICE.txt
# some MIT-licensed code (from Utf8Appendable) is used too
License:        (ASL 2.0 or EPL) and MIT
URL:            http://www.eclipse.org/jetty
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.project.git/snapshot/jetty-%{version}.%{addver}.tar.bz2

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.jetty:jetty-parent:pom:)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-artifact-remote-resources)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-assembly-descriptors)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-build-support)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-version-maven-plugin)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-test-policy)
BuildRequires:  mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-jdk14)

Requires:       %{name}-rewrite = %{version}-%{release}
Requires:       %{name}-client = %{version}-%{release}
Requires:       %{name}-xml = %{version}-%{release}
Requires:       %{name}-websocket = %{version}-%{release}
Requires:       %{name}-webapp = %{version}-%{release}
Requires:       %{name}-util = %{version}-%{release}
Requires:       %{name}-servlet = %{version}-%{release}
Requires:       %{name}-server = %{version}-%{release}
Requires:       %{name}-security = %{version}-%{release}
Requires:       %{name}-jmx = %{version}-%{release}
Requires:       %{name}-io = %{version}-%{release}
Requires:       %{name}-http = %{version}-%{release}
Requires:       %{name}-continuation = %{version}-%{release}

%description
Jetty is a 100% Java HTTP Server and Servlet Container. This means that you
do not need to configure and run a separate web server (like Apache) in order
to use Java, servlets and JSPs to generate dynamic content. Jetty is a fully
featured web server for static and dynamic content. Unlike separate
server/container solutions, this means that your web server and web
application run in the same process, without interconnection overheads
and complications. Furthermore, as a pure java component, Jetty can be simply
included in your application for demonstration, distribution or deployment.
Jetty is available on all Java supported platforms.

%package        rewrite
Summary:        Jetty rewrite handler
%description    rewrite
This package contains %{summary}.

%package        client
Summary:        Jetty asynchronous HTTP client
%description    client
This package contains %{summary}.

%package        xml
Summary:        Jetty XML utilities
%description    xml
This package contains %{summary}.

%package        websocket
Summary:        Jetty websocket
%description    websocket
This package contains %{summary}.

%package        webapp
Summary:        Jetty web application support
%description    webapp
This package contains %{summary}.

%package        util
Summary:        Jetty utility classes
%description    util
This package contains %{summary}.

%package        servlet
Summary:        Jetty servlet container
%description    servlet
This package contains %{summary}.

%package        server
Summary:        Jetty server artifact
%description    server
This package contains %{summary}.

%package        security
Summary:        Jetty security infrastructure
%description    security
This package contains %{summary}.

%package        jmx
Summary:        Jetty JMX management artifact
%description    jmx
This package contains %{summary}.

%package        io
Summary:        Jetty IO utility
%description    io
This package contains %{summary}.

%package        http
Summary:        Jetty HTTP utility
%description    http
This package contains %{summary}.

%package        continuation
Summary:        Jetty asynchronous API
%description    continuation
This package contains %{summary}.

%package        deploy
Summary:        Jetty deployers
%description    deploy
This package contains %{summary}.

%package        servlets
Summary:        Jetty utility servlets and filters
%description    servlets
This package contains %{summary}.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.

%prep
%setup -q -n jetty-%{version}.%{addver}
find -name "*.jar" -delete
find -name "*.war" -delete
find -name "*.class" -delete

%mvn_compat_version : 8.1 %{version}.%{addver} 8.1.14.v20131031

# aggregating POM belongs to main package
%mvn_package :jetty-project::pom

%pom_change_dep -r org.eclipse.jetty.orbit:javax.servlet org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec

# Disable unneeded modules. This is a compat package and only a
# minimal set of modules are being built.
%pom_xpath_remove "pom:modules"
%pom_xpath_inject "pom:project" "<modules/>"
for mod in continuation deploy http io jmx security server servlet servlets util webapp websocket xml client rewrite; do
  %pom_xpath_inject pom:modules "<module>jetty-$mod</module>"
  %pom_xpath_inject 'pom:plugin[pom:artifactId="maven-bundle-plugin"]/pom:executions/pom:execution' '
     <phase>process-classes</phase>' jetty-$mod
done

# PMD plugin is not useful in Fedora.
%pom_remove_plugin -r :maven-pmd-plugin

%pom_remove_plugin -r :maven-license-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-site-plugin

# Remove google analytics from javadoc
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-javadoc-plugin"]/pom:configuration/pom:header'

# this needs jetty6 things, so just remove it
# shouldn't cause any trouble since it handled only in loadClass elsewhere
%pom_remove_dep org.mortbay.jetty:jetty-util jetty-continuation
rm jetty-continuation/src/main/java/org/eclipse/jetty/continuation/Jetty6Continuation.java

# Disable default-jar executions of maven-jar-plugin in certain Jetty
# modules, which define their own executions of the plugin.  This
# avoids problems with version 3.0.0 of the plugin.
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
      <execution>
        <id>default-jar</id>
        <phase>skip</phase>
      </execution>" \
    jetty-continuation \
    jetty-http \
    jetty-io \
    jetty-server \
    jetty-websocket \

# CCLAs and CLAs, we don't want to install these
rm -Rf LICENSE-CONTRIBUTOR/

%build
# Tests disabled because of missing dependencies
%mvn_build -f -s

%install
%mvn_install

%files -f .mfiles-jetty-project
%{!?_licensedir:%global license %%doc}
%license NOTICE.txt README.txt VERSION.txt LICENSE*

%files rewrite -f .mfiles-jetty-rewrite
%files client -f .mfiles-jetty-client
%files deploy -f .mfiles-jetty-deploy
%files xml -f .mfiles-jetty-xml
%files websocket -f .mfiles-jetty-websocket
%files webapp -f .mfiles-jetty-webapp
%files util -f .mfiles-jetty-util
%license NOTICE.txt LICENSE*
%files servlet -f .mfiles-jetty-servlet
%files servlets -f .mfiles-jetty-servlets
%files server -f .mfiles-jetty-server
%files security -f .mfiles-jetty-security
%files jmx -f .mfiles-jetty-jmx
%files io -f .mfiles-jetty-io
%files http -f .mfiles-jetty-http
%files continuation -f .mfiles-jetty-continuation

%files javadoc -f .mfiles-javadoc
%license NOTICE.txt LICENSE*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13532 |21mr|jetty-9.4.19-3.v20190610
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2007, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global jtuid       110
%global username    %{name}
%global confdir     %{_sysconfdir}/%{name}
%global logdir      %{_localstatedir}/log/%{name}
%global homedir     %{_datadir}/%{name}
%global jettycachedir %{_localstatedir}/cache/%{name}
%global tempdir     %{jettycachedir}/temp
%global rundir      %{_localstatedir}/run/%{name}
%global jettylibdir %{_localstatedir}/lib/%{name}
%global appdir      %{jettylibdir}/webapps


%global addver  .v20190610

# minimal version required to build eclipse and thermostat
# eclipse needs: util, server, http, continuation, io, security, servlet
# thermostat needs: server, jaas, webapp
# above modules need: jmx, xml
%bcond_with     jp_minimal

Name:           jetty
Version:        9.4.19
Release:        3%{addver}
Summary:        Java Webserver and Servlet Container
Group:          Development/Java
# Jetty is dual licensed under both ASL 2.0 and EPL 1.0, see NOTICE.txt
License:        ASL 2.0 or EPL-1.0
URL:            http://www.eclipse.org/jetty/
Source0:        https://github.com/eclipse/%{name}.project/archive/%{name}-%{version}%{addver}.tar.gz
Source1:        jetty.sh
Source3:        jetty.logrotate
Source5:        %{name}.service
# MIT license text taken from Utf8Appendable.java
Source6:        LICENSE-MIT

Patch1:         0001-Fedora-jetty.home.patch

BuildRequires:  maven-local
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.slf4j:slf4j-api)

%if %{without jp_minimal}
BuildRequires:  maven-local
BuildRequires:  mvn(com.github.jnr:jnr-unixsocket)
BuildRequires:  mvn(javax.annotation:javax.annotation-api)
BuildRequires:  mvn(javax.enterprise:cdi-api)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(javax.servlet.jsp:javax.servlet.jsp-api)
BuildRequires:  mvn(javax.servlet:jstl)
BuildRequires:  mvn(javax.transaction:javax.transaction-api)
BuildRequires:  mvn(javax.websocket:javax.websocket-api)
BuildRequires:  mvn(javax.websocket:javax.websocket-client-api)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-launcher)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-war-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-tools-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-artifact-transfer)
BuildRequires:  mvn(org.apache.taglibs:taglibs-standard-impl)
BuildRequires:  mvn(org.apache.taglibs:taglibs-standard-spec)
BuildRequires:  mvn(org.apache.tomcat:tomcat-jasper)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.eclipse.jetty.alpn:alpn-api)
BuildRequires:  mvn(org.eclipse.jetty.orbit:javax.mail.glassfish)
BuildRequires:  mvn(org.eclipse.jetty.orbit:javax.security.auth.message)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-assembly-descriptors)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-schemas)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-test-helper)
BuildRequires:  mvn(org.jboss.weld.servlet:weld-servlet-core)
BuildRequires:  mvn(org.mongodb:mongo-java-driver)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-commons)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.springframework:spring-beans)
BuildRequires:  mvn(org.eclipse.jdt:ecj)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.framework)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jcdi_2.0_spec)

BuildRequires:  mvn(org.mortbay.jetty.alpn:alpn-boot)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-artifact-remote-resources)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-distribution-remote-resources)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-test-policy)
#BuildRequires:  mvn(org.eclipse.jetty.toolchain.setuid:jetty-setuid-java)
BuildRequires:  maven-javadoc-plugin
BuildRequires:	mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires:  glassfish-el
BuildRequires:  systemd
BuildRequires:  junit5

# duplicate providers, choose one
BuildRequires:  jboss-websocket-1.0-api
Requires:       jboss-websocket-1.0-api
%endif # without jp_minimal

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# jp_minimal doesn't have main package
%if %{without jp_minimal}
# Explicit requires for javapackages-tools since jetty.sh script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools
Requires:       %{name}-annotations = %{version}-%{release}
Requires:       %{name}-ant = %{version}-%{release}
Requires:       %{name}-client = %{version}-%{release}
Requires:       %{name}-continuation = %{version}-%{release}
Requires:       %{name}-deploy = %{version}-%{release}
Requires:       %{name}-fcgi-client = %{version}-%{release}
Requires:       %{name}-fcgi-server = %{version}-%{release}
Requires:       %{name}-http = %{version}-%{release}
Requires:       %{name}-http-spi = %{version}-%{release}
Requires:       %{name}-io = %{version}-%{release}
Requires:       %{name}-jaas = %{version}-%{release}
Requires:       %{name}-jaspi = %{version}-%{release}
Requires:       %{name}-jmx = %{version}-%{release}
Requires:       %{name}-jndi = %{version}-%{release}
Requires:       %{name}-jsp = %{version}-%{release}
Requires:       %{name}-jspc-maven-plugin = %{version}-%{release}
Requires:       %{name}-maven-plugin = %{version}-%{release}
Requires:       %{name}-plus = %{version}-%{release}
Requires:       %{name}-proxy = %{version}-%{release}
Requires:       %{name}-rewrite = %{version}-%{release}
Requires:       %{name}-security = %{version}-%{release}
Requires:       %{name}-server = %{version}-%{release}
Requires:       %{name}-servlet = %{version}-%{release}
Requires:       %{name}-servlets = %{version}-%{release}
Requires:       %{name}-spring = %{version}-%{release}
Requires:       %{name}-start = %{version}-%{release}
Requires:       %{name}-unixsocket = %{version}-%{release}
Requires:       %{name}-util = %{version}-%{release}
Requires:       %{name}-util-ajax = %{version}-%{release}
Requires:       %{name}-webapp = %{version}-%{release}
Requires:       %{name}-xml = %{version}-%{release}
Requires:       %{name}-cdi = %{version}-%{release}
Requires:       %{name}-websocket-api = %{version}-%{release}
Requires:       %{name}-websocket-client = %{version}-%{release}
Requires:       %{name}-websocket-common = %{version}-%{release}
Requires:       %{name}-websocket-server = %{version}-%{release}
Requires:       %{name}-websocket-servlet = %{version}-%{release}
Requires:       %{name}-javax-websocket-client-impl = %{version}-%{release}
Requires:       %{name}-javax-websocket-server-impl = %{version}-%{release}
Requires:       %{name}-nosql = %{version}-%{release}
Requires:       %{name}-quickstart = %{version}-%{release}
Requires:       %{name}-jstl = %{version}-%{release}
Requires:       %{name}-alpn-client = %{version}-%{release}
Requires:       %{name}-alpn-server = %{version}-%{release}
Requires:       %{name}-http2-client = %{version}-%{release}
Requires:       %{name}-http2-common = %{version}-%{release}
Requires:       %{name}-http2-hpack = %{version}-%{release}
Requires:       %{name}-http2-http-client-transport = %{version}-%{release}
Requires:       %{name}-http2-server = %{version}-%{release}

Requires(pre):    shadow-utils
%{?systemd_ordering}


Provides:       group(%username) = %jtuid
Provides:       user(%username)  = %jtuid
%endif # without jp_minimal

# (Added in F25)
Obsoletes:      %{name}-monitor < 9.4.0-0.4
# Hazelcast in Fedora is too old for jetty to build against (Added in F29)
Obsoletes:      %{name}-hazelcast < 9.4.18-1
# Infinispan in Fedora is too old for jetty to build against (Added in F31)
Obsoletes:      %{name}-infinispan < 9.4.18-1
# Eclipse no longer available (Added in F31)
Obsoletes:      %{name}-osgi-alpn < 9.4.18-1
Obsoletes:      %{name}-osgi-boot < 9.4.18-1
Obsoletes:      %{name}-osgi-boot-jsp < 9.4.18-1
Obsoletes:      %{name}-osgi-boot-warurl < 9.4.18-1

%description
%global desc \
Jetty is a 100% Java HTTP Server and Servlet Container. This means that you\
do not need to configure and run a separate web server (like Apache) in order\
to use Java, servlets and JSPs to generate dynamic content. Jetty is a fully\
featured web server for static and dynamic content. Unlike separate\
server/container solutions, this means that your web server and web\
application run in the same process, without interconnection overheads\
and complications. Furthermore, as a pure java component, Jetty can be simply\
included in your application for demonstration, distribution or deployment.\
Jetty is available on all Java supported platforms.
%{desc}
%global extdesc %{desc}\
\
This package contains

# packages in jp_minimal set
%package        client
Summary:        client module for Jetty

%description    client
%{extdesc} %{summary}.

%package        continuation
Summary:        continuation module for Jetty

%description    continuation
%{extdesc} %{summary}.

%package        http
Summary:        http module for Jetty

%description    http
%{extdesc} %{summary}.

%package        http-spi
Summary:        http-spi module for Jetty

%description    http-spi
%{extdesc} %{summary}.

%package        io
Summary:        io module for Jetty

%description    io
%{extdesc} %{summary}.

%package        jaas
Summary:        jaas module for Jetty

%description    jaas
%{extdesc} %{summary}.

%package        jsp
Summary:        jsp module for Jetty
Requires:       glassfish-el

%description    jsp
%{extdesc} %{summary}.

%package        security
Summary:        security module for Jetty

%description    security
%{extdesc} %{summary}.

%package        server
Summary:        server module for Jetty

%description    server
%{extdesc} %{summary}.

%package        servlet
Summary:        servlet module for Jetty
# Eclipse no longer available (Added in F31)
Obsoletes:      %{name}-httpservice < 9.4.18-1

%description    servlet
%{extdesc} %{summary}.

%package        util
Summary:        util module for Jetty
# Utf8Appendable.java is additionally under MIT license
License:        (ASL 2.0 or EPL-1.0) and MIT

%description    util
%{extdesc} %{summary}.

%package        webapp
Summary:        webapp module for Jetty

%description    webapp
%{extdesc} %{summary}.

%package        jmx
Summary:        jmx module for Jetty

%description    jmx
%{extdesc} %{summary}.

%package        xml
Summary:        xml module for Jetty

%description    xml
%{extdesc} %{summary}.



%if %{without jp_minimal}
%package        project
Summary:        POM files for Jetty
Obsoletes:      %{name}-websocket-parent < 9.4.0-0.4
Provides:       %{name}-websocket-parent = %{version}-%{release}
Obsoletes:      %{name}-osgi-project < 9.4.0-0.4
Provides:       %{name}-osgi-project = %{version}-%{release}

%description    project
%{extdesc} %{summary}.

%package        deploy
Summary:        deploy module for Jetty

%description    deploy
%{extdesc} %{summary}.

%package        annotations
Summary:        annotations module for Jetty

%description    annotations
%{extdesc} %{summary}.

%package        ant
Summary:        ant module for Jetty

%description    ant
%{extdesc} %{summary}.

%package cdi
Summary:        Jetty CDI Configuration

%description cdi
%{extdesc} %{summary}.

%package        fcgi-client
Summary:        FastCGI client module for Jetty

%description    fcgi-client
%{extdesc} %{summary}.

%package        fcgi-server
Summary:        FastCGI client module for Jetty

%description    fcgi-server
%{extdesc} %{summary}.

%package        jaspi
Summary:        jaspi module for Jetty

%description    jaspi
%{extdesc} %{summary}.

%package        jndi
Summary:        jndi module for Jetty

%description    jndi
%{extdesc} %{summary}.

%package        jspc-maven-plugin
Summary:        jspc-maven-plugin module for Jetty

%description    jspc-maven-plugin
%{extdesc} %{summary}.

%package        maven-plugin
Summary:        maven-plugin module for Jetty

%description    maven-plugin
%{extdesc} %{summary}.

%package        plus
Summary:        plus module for Jetty

%description    plus
%{extdesc} %{summary}.

%package        proxy
Summary:        proxy module for Jetty

%description    proxy
%{extdesc} %{summary}.

%package        rewrite
Summary:        rewrite module for Jetty

%description    rewrite
%{extdesc} %{summary}.

%package        servlets
Summary:        servlets module for Jetty

%description    servlets
%{extdesc} %{summary}.

%package        spring
Summary:        spring module for Jetty

%description    spring
%{extdesc} %{summary}.

%package        start
Summary:        start module for Jetty

%description    start
%{extdesc} %{summary}.

%package        unixsocket
Summary:        unixsocket module for Jetty

%description    unixsocket
%{extdesc} %{summary}.

%package        util-ajax
Summary:        util-ajax module for Jetty

%description    util-ajax
%{extdesc} %{summary}.

%package        websocket-api
Summary:        websocket-api module for Jetty

%description    websocket-api
%{extdesc} %{summary}.

%package        websocket-client
Summary:        websocket-client module for Jetty

%description    websocket-client
%{extdesc} %{summary}.

%package        websocket-common
Summary:        websocket-common module for Jetty

%description    websocket-common
%{extdesc} %{summary}.

%package        websocket-server
Summary:        websocket-server module for Jetty

%description    websocket-server
%{extdesc} %{summary}.

%package        websocket-servlet
Summary:        websocket-servlet module for Jetty

%description    websocket-servlet
%{extdesc} %{summary}.

%package        javax-websocket-client-impl
Summary:        javax-websocket-client-impl module for Jetty

%description    javax-websocket-client-impl
%{extdesc} %{summary}.

%package        javax-websocket-server-impl
Summary:        javax-websocket-server-impl module for Jetty

%description    javax-websocket-server-impl
%{extdesc} %{summary}.

%package        nosql
Summary:        nosql module for Jetty

%description    nosql
%{extdesc} %{summary}.

%package        quickstart
Summary:        quickstart module for Jetty

%description    quickstart
%{extdesc} %{summary}.

%package        alpn-client
Summary:        alpn-client module for Jetty

%description    alpn-client
%{extdesc} %{summary}.

%package        alpn-server
Summary:        alpn-server module for Jetty

%description    alpn-server
%{extdesc} %{summary}.

%package        http2-client
Summary:        http2-client module for Jetty

%description    http2-client
%{extdesc} %{summary}.

%package        http2-common
Summary:        http2-common module for Jetty

%description    http2-common
%{extdesc} %{summary}.

%package        http2-hpack
Summary:        http2-hpack module for Jetty

%description    http2-hpack
%{extdesc} %{summary}.

%package        http2-http-client-transport
Summary:        http2-http-client-transport module for Jetty

%description    http2-http-client-transport
%{extdesc} %{summary}.

%package        http2-server
Summary:        http2-server module for Jetty

%description    http2-server
%{extdesc} %{summary}.

%package        jstl
Summary:        jstl module for Jetty

%description    jstl
%{extdesc} %{summary}.

%endif # without jp_minimal

%package        javadoc
Summary:        Javadoc for %{name}
# some MIT-licensed code (from Utf8Appendable) is used to generate javadoc
License:        (ASL 2.0 or EPL-1.0) and MIT

%description    javadoc
%{summary}.

%prep
%setup -q -n %{name}.project-%{name}-%{version}%{addver}

%patch1 -p1

find . -name "*.?ar" -exec rm {} \;
find . -name "*.class" -exec rm {} \;

# Plugins irrelevant or harmful to building the package
%pom_remove_plugin -r :findbugs-maven-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :clirr-maven-plugin
%pom_remove_plugin -r :maven-eclipse-plugin
%pom_remove_plugin -r :maven-pmd-plugin
%pom_remove_plugin -r :license-maven-plugin
%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-deploy-plugin
%pom_remove_plugin -r :jacoco-maven-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :buildnumber-maven-plugin
%pom_remove_plugin -r :h2spec-maven-plugin

# Unnecessary pom flattening can be skipped
%pom_remove_plugin -r :flatten-maven-plugin jetty-bom

%pom_disable_module aggregates/jetty-all

# Use proper groupId for apache ant
%pom_xpath_replace "pom:groupId[text()='ant']" "<groupId>org.apache.ant</groupId>" jetty-ant/pom.xml

%pom_remove_dep "com.sun.net.httpserver:http" jetty-http-spi

%pom_change_dep -r org.mortbay.jasper:apache-jsp org.apache.tomcat:tomcat-jasper

%pom_add_dep 'org.junit.jupiter:junit-jupiter-engine:${junit.version}' tests/test-sessions/test-sessions-common

# Old version of jetty not available for tests, so use this version
%pom_change_dep 'org.eclipse.jetty:jetty-util' 'org.eclipse.jetty:jetty-util:${project.version}' tests/test-webapps/test-servlet-spec/test-spec-webapp

# provided by glassfish-jsp-api that has newer version
%pom_change_dep -r javax.servlet.jsp:jsp-api javax.servlet.jsp:javax.servlet.jsp-api

# txt artifact - not installable
%pom_remove_plugin ":jetty-version-maven-plugin"
%pom_xpath_remove "pom:artifactItem[pom:classifier='version']" jetty-home

# Disable building source release
%pom_xpath_remove 'pom:execution[pom:id="sources"]' jetty-home

# Unwanted JS in javadoc
sed -i '/^\s*\*.*<script>/d' jetty-util/src/main/java/org/eclipse/jetty/util/resource/Resource.java

# only used for integration tests
%pom_remove_plugin :maven-invoker-plugin jetty-jspc-maven-plugin

# These bundles have a dep on Eclipse that is not available on every arch
%pom_disable_module jetty-osgi

# We don't have asciidoctor-maven-plugin
%pom_disable_module jetty-documentation
%pom_remove_dep -r :jetty-documentation
%pom_xpath_remove 'pom:execution[pom:id="unpack-documentation"]' jetty-distribution

%pom_xpath_remove 'pom:artifactItem[pom:artifactId="libsetuid-osx"]' jetty-home/pom.xml

# TODO remove when jetty-setuid is packaged
%pom_xpath_remove "pom:execution[pom:id[text()='copy-setuid-deps']]" jetty-home/pom.xml

# We don't have gcloud-java-datastore in Fedora
%pom_disable_module jetty-gcloud
%pom_disable_module test-gcloud-sessions tests/test-sessions
%pom_remove_dep :jetty-gcloud-session-manager jetty-home

# we don't have com.googlecode.xmemcached:xmemcached yet
%pom_disable_module jetty-memcached
%pom_disable_module test-memcached-sessions tests/test-sessions
%pom_remove_dep :jetty-memcached-sessions jetty-home

# Hazelcast in Fedora is too old to build against
%pom_disable_module jetty-hazelcast
%pom_disable_module test-hazelcast-sessions tests/test-sessions
%pom_remove_dep :jetty-hazelcast jetty-home

# Infinispan in Fedora is too old to build against
%pom_disable_module jetty-infinispan
%pom_disable_module test-infinispan-sessions tests/test-sessions
%pom_remove_dep :infinispan-embedded jetty-home
%pom_remove_dep :infinispan-embedded-query jetty-home
%pom_remove_dep :infinispan-remote jetty-home
%pom_remove_dep :infinispan-remote-query jetty-home
%pom_xpath_remove "pom:execution[pom:id='unpack-infinispan-config']" jetty-home

# Not currently able to build tests, so can't build benchmarks
%pom_disable_module jetty-jmh

# Distribution tests require internet access, so disable
%pom_disable_module test-distribution tests

# missing conscrypt
%pom_disable_module jetty-alpn-conscrypt-server jetty-alpn
%pom_disable_module jetty-alpn-conscrypt-client jetty-alpn
%pom_remove_dep -r :jetty-alpn-conscrypt-server
%pom_remove_dep -r :jetty-alpn-conscrypt-client
rm -fr examples/embedded/src/main/java/org/eclipse/jetty/embedded/ManyConnectors.java

cp %{SOURCE6} .

# the default location is not allowed by SELinux
sed -i '/<SystemProperty name="jetty.state"/d' \
    jetty-home/src/main/resources/etc/jetty-started.xml

%if %{with jp_minimal}
# remote-resources only copies about.html
%pom_remove_plugin :maven-remote-resources-plugin
# packages module configs, we don't need those in minimal
%pom_remove_plugin :maven-assembly-plugin
# only useful when tests are enabled (copies test deps)
%pom_remove_plugin :maven-dependency-plugin jetty-client

%pom_disable_module jetty-ant
%pom_disable_module jetty-http2
%pom_disable_module jetty-fcgi
%pom_disable_module jetty-websocket
%pom_disable_module jetty-servlets
%pom_disable_module jetty-util-ajax
%pom_disable_module apache-jsp
%pom_disable_module apache-jstl
%pom_disable_module jetty-maven-plugin
%pom_disable_module jetty-jspc-maven-plugin
%pom_disable_module jetty-deploy
%pom_disable_module jetty-start
%pom_disable_module jetty-plus
%pom_disable_module jetty-annotations
%pom_disable_module jetty-jndi
%pom_disable_module jetty-cdi
%pom_disable_module jetty-spring
%pom_disable_module jetty-proxy
%pom_disable_module jetty-jaspi
%pom_disable_module jetty-rewrite
%pom_disable_module jetty-nosql
%pom_disable_module jetty-unixsocket
%pom_disable_module tests
%pom_disable_module examples
%pom_disable_module jetty-quickstart
%pom_disable_module jetty-distribution
%pom_disable_module jetty-runner
%pom_disable_module jetty-http-spi
%pom_disable_module jetty-alpn
%pom_disable_module jetty-home

%endif # with jp_minimal

%build
%mvn_package :jetty-home __noinstall
%mvn_package :jetty-distribution __noinstall

# Separate package for POMs
%if %{without jp_minimal}
%mvn_package ':*-project' project
%mvn_package ':*-parent' project
%mvn_package ':*-bom' project
%else
%mvn_package ':*-project' __noinstall
%mvn_package ':*-parent' __noinstall
%mvn_package ':*-bom' __noinstall
%endif

# artifact used by demo
%mvn_package :test-mock-resources

%mvn_package ':test-*' __noinstall
%mvn_package ':*-tests' __noinstall
%mvn_package ':*-it' __noinstall
%mvn_package ':example-*' __noinstall
%mvn_package org.eclipse.jetty.tests: __noinstall
%mvn_package ::war: __noinstall
%mvn_package :jetty-runner __noinstall

%mvn_package org.eclipse.jetty.cdi: jetty-cdi

%mvn_package ':jetty-alpn*-client' jetty-alpn-client
%mvn_package ':jetty-alpn*-server' jetty-alpn-server


%mvn_package :apache-jsp jetty-jsp
%mvn_alias :apache-jsp :jetty-jsp

# we don't have all necessary dependencies to run tests
# missing test dep: org.eclipse.jetty.toolchain:jetty-perf-helper
%mvn_build -f -s


%install
%mvn_install

# jp_minimal version doesn't contain main package
%if %{without jp_minimal}
# Install jetty home
cp -pr jetty-distribution/target/distribution %{buildroot}%{homedir}

# dirs
install -dm 755 %{buildroot}%{_bindir}
install -dm 755 %{buildroot}%{_sysconfdir}/logrotate.d
install -dm 755 %{buildroot}%{confdir}
install -dm 755 %{buildroot}%{homedir}/start.d
install -dm 755 %{buildroot}%{logdir}
install -dm 755 %{buildroot}%{rundir}
install -dm 755 %{buildroot}%{tempdir}
install -dm 755 %{buildroot}%{jettylibdir}
install -dm 755 %{buildroot}%{_unitdir}

# systemd unit file
cp %{SOURCE5} %{buildroot}%{_unitdir}/

install -pm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
echo '# Placeholder configuration file.  No default is provided.' > \
     %{buildroot}%{confdir}/jetty.conf

# add dependencies that are missing due to artifact coordinates changes
build-jar-repository %{buildroot}%{homedir}/lib/apache-jsp \
           tomcat/jasper tomcat/tomcat-juli \
           tomcat/tomcat-jsp-2.3-api tomcat/tomcat-api tomcat/tomcat-util \
           tomcat-taglibs-standard/taglibs-standard-compat \
           tomcat-taglibs-standard/taglibs-standard-impl \
           tomcat/tomcat-util-scan glassfish-el-api glassfish-el

# ecj doesn't have javapackages metadata in manifest, remove when fixed
ecj=`echo %{buildroot}%{homedir}/lib/apache-jsp/org.eclipse.jdt.ecj-*.jar`
rm $ecj

# substitute dependency jars (keep start.jar with shaded jetty util)
xmvn-subst -s -L -R %{buildroot} %{buildroot}%{homedir}/lib

# ecj doesn't have javapackages metadata in manifest, remove when fixed
ln -sf %{_javadir}/ecj.jar $ecj

# TODO uncomment when jetty-setuid is packaged
# test -e %{_jnidir}/jetty-setuid/libsetuid-linux.so
# ln -sf %{_jnidir}/jetty-setuid/libsetuid-linux.so %{buildroot}%{homedir}/lib/setuid/

( cat << EO_RC
JAVA_HOME=/usr/lib/jvm/java
JAVA_OPTIONS=
JETTY_HOME=%{homedir}
JETTY_CONSOLE=%{logdir}/jetty-console.log
JETTY_PORT=8080
JETTY_RUN=%{_localstatedir}/run/%{name}
JETTY_PID=\$JETTY_RUN/jetty.pid
EO_RC
) > %{buildroot}%{homedir}/.jettyrc

mkdir -p %{buildroot}%{_tmpfilesdir}
( cat << EOF
D %{rundir} 0755 %username %{username} -
EOF
) > %{buildroot}%{_tmpfilesdir}/%{name}.conf

rm -r %{buildroot}%{homedir}/logs
ln -s %{logdir} %{buildroot}%{homedir}/logs

mv %{buildroot}%{homedir}/etc/* %{buildroot}/%{confdir}/
rm -r %{buildroot}%{homedir}/etc
ln -s %{confdir} %{buildroot}%{homedir}/etc

mv %{buildroot}%{homedir}/webapps %{buildroot}%{appdir}
ln -s %{appdir} %{buildroot}%{homedir}/webapps

rm %{buildroot}%{homedir}/*.txt  %{buildroot}%{homedir}/*.html

# Here jetty is going to put its runtime data.
# See: https://bugzilla.redhat.com/show_bug.cgi?id=845993
ln -sf %{rundir} %{buildroot}%{homedir}/work

# replace the startup script with ours
cp -p %{SOURCE1} %{buildroot}%{homedir}/bin/jetty.sh

# NOTE: %if %{without jp_minimal} still in effect

%pre
# Add the "jetty" user and group
getent group %username >/dev/null || groupadd -f -g %jtuid -r %username
if ! getent passwd %username >/dev/null ; then
    if ! getent passwd %jtuid >/dev/null ; then
      useradd -r -u %jtuid -g %username -d %homedir -s /sbin/nologin \
      -c "Jetty web server" %username
    else
      useradd -r -g %username -d %homedir -s /sbin/nologin \
      -c "Jetty web server" %username
    fi
fi
exit 0

%post
%systemd_post jetty.service

%preun
%systemd_preun jetty.service

%postun
%systemd_postun_with_restart jetty.service


%endif # without jp_minimal

%files client -f .mfiles-jetty-client
%files continuation -f .mfiles-jetty-continuation
%files jaas -f .mfiles-jetty-jaas
%files io -f .mfiles-jetty-io
%files server -f .mfiles-jetty-server
%files servlet -f .mfiles-jetty-servlet
%files util -f .mfiles-jetty-util
%license LICENSE NOTICE.txt LICENSE-MIT
%files webapp -f .mfiles-jetty-webapp
%files jmx -f .mfiles-jetty-jmx
%files xml -f .mfiles-jetty-xml
%files http -f .mfiles-jetty-http
%files security -f .mfiles-jetty-security

%if %{without jp_minimal}
%files -f .mfiles
%{_tmpfilesdir}/%{name}.conf
%config(noreplace) %attr(644, root, root) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{confdir}
%dir %{jettylibdir}
%dir %{jettycachedir}
%dir %{homedir}
%{homedir}/.jettyrc
%{homedir}/README.TXT
%{homedir}/demo-base
%{homedir}/etc
%{homedir}/lib
%{homedir}/logs
%{homedir}/modules
%{homedir}/start.ini
%{homedir}/start.jar
%{homedir}/webapps
%{homedir}/work
%attr(744, jetty, jetty) %{homedir}/bin/jetty.sh
%attr(755, jetty, jetty) %{logdir}
%attr(755, jetty, jetty) %{tempdir}
%ghost %dir %attr(755, jetty, jetty) %{rundir}
%{appdir}
%{_unitdir}/%{name}.service

%files project -f .mfiles-project
%doc README.md VERSION.txt
%license LICENSE NOTICE.txt LICENSE-MIT

%files annotations -f .mfiles-jetty-annotations
%files ant -f .mfiles-jetty-ant
%files cdi -f .mfiles-jetty-cdi
%files deploy -f .mfiles-jetty-deploy
%files fcgi-client -f .mfiles-fcgi-client
%files fcgi-server -f .mfiles-fcgi-server
%files http-spi -f .mfiles-jetty-http-spi
%files jaspi -f .mfiles-jetty-jaspi
%files jndi -f .mfiles-jetty-jndi
%files jsp -f .mfiles-jetty-jsp
%files jstl -f .mfiles-apache-jstl
%files jspc-maven-plugin -f .mfiles-jetty-jspc-maven-plugin
%files maven-plugin -f .mfiles-jetty-maven-plugin
%files plus -f .mfiles-jetty-plus
%files proxy -f .mfiles-jetty-proxy
%files quickstart -f .mfiles-jetty-quickstart
%files rewrite -f .mfiles-jetty-rewrite
%files servlets -f .mfiles-jetty-servlets
%files start -f .mfiles-jetty-start
%files unixsocket -f .mfiles-jetty-unixsocket
%files util-ajax -f .mfiles-jetty-util-ajax
%files websocket-api -f .mfiles-websocket-api
%files websocket-client -f .mfiles-websocket-client
%files websocket-common -f .mfiles-websocket-common
%files websocket-server -f .mfiles-websocket-server
%files websocket-servlet -f .mfiles-websocket-servlet
%files javax-websocket-client-impl -f .mfiles-javax-websocket-client-impl
%files javax-websocket-server-impl -f .mfiles-javax-websocket-server-impl
%files alpn-client -f .mfiles-jetty-alpn-client
%files alpn-server -f .mfiles-jetty-alpn-server
%files http2-client -f .mfiles-http2-client
%files http2-common -f .mfiles-http2-common
%files http2-hpack -f .mfiles-http2-hpack
%files http2-http-client-transport -f .mfiles-http2-http-client-transport
%files http2-server -f .mfiles-http2-server
%files nosql -f .mfiles-jetty-nosql
%files spring -f .mfiles-jetty-spring
%endif # without jp_minimal

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE.txt LICENSE-MIT


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13533 |21mr|jetty-alpn-8.1.13-2.v20181017
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global reltag .v20181017

Name:           jetty-alpn
Version:        8.1.13
Release:        2%{reltag}
# alpn-tests also contains EPL and ASL, but is not installed
License:        GPLv2+ with exceptions
Summary:        Jetty implementation of ALPN API
URL:            https://github.com/jetty-project/jetty-alpn
Source0:        https://github.com/jetty-project/%{name}/archive/alpn-project-%{version}%{reltag}.tar.gz
Patch0:         0001-Unshade-alpn-api.patch
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  java-1.8.0-openjdk-headless
Requires:       java-1.8.0-openjdk-headless

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.jetty.alpn:alpn-api)
BuildRequires:  mvn(org.eclipse.jetty:jetty-parent:pom:)

%description
A pure Java(TM) implementation of the Application Layer Protocol
Negotiation TLS Extension


%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-alpn-project-%{version}%{reltag}

# unshade jetty-alpn-api
%patch0 -p1
%pom_remove_plugin -r :maven-shade-plugin

%pom_remove_plugin -r :maven-enforcer-plugin

%pom_disable_module alpn-tests

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%doc README.md

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13534 |21mr|jetty-alpn-api-1.1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global addver v20160715

Name:           jetty-alpn-api
Version:        1.1.3
Release:        7
Summary:        Jetty ALPN API
License:        ASL 2.0 and EPL
URL:            http://www.eclipse.org/jetty
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.alpn.git/snapshot/alpn-api-%{version}.%{addver}.tar.bz2
Source1:        http://www.eclipse.org/legal/epl-v10.html
Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.jetty:jetty-parent:pom:)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-build-support)

%description
Jetty API for Application-Layer Protocol Negotiation.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.


%prep
%setup -q -n alpn-api-%{version}.%{addver}

# Use packaging=bundle to get the manifest into jar
%pom_remove_plugin :maven-jar-plugin
%pom_xpath_inject pom:project '<packaging>bundle</packaging>'

cp %{SOURCE1} %{SOURCE2} .

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%license epl-v10.html LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license epl-v10.html LICENSE-2.0.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13535 |21mr|jetty-artifact-remote-resources-1.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-artifact-remote-resources
Version:        1.0
Release:        20
Summary:        Jetty toolchain artifact remote resources
Group:          Development/Java
License:        ASL 2.0 or EPL
URL:            http://www.eclipse.org/jetty/
Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/snapshot/%{name}-%{version}.tar.bz2
# rpmlint config file (fedpkg lint will use this)
Source1:        .rpmlint
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt
Source3:        http://www.eclipse.org/legal/epl-v10.html

BuildRequires:  maven-local
BuildRequires:  maven-remote-resources-plugin >= 1.2.1-3
BuildRequires:  jetty-toolchain

%description
Jetty toolchain artifact remote resources

%prep
%setup -q
cp -p %{SOURCE2} %{SOURCE3} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt epl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13536 |21mr|jetty-assembly-descriptors-1.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-assembly-descriptors
Version:        1.0
Release:        19
Summary:        Jetty assembly descriptors used for building
Group:          Development/Java
License:        ASL 2.0 or EPL
URL:            http://www.eclipse.org/jetty/
Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/snapshot/%{name}-%{version}.tar.bz2
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:        http://www.eclipse.org/legal/epl-v10.html

BuildRequires:  maven-local
BuildRequires:  jetty-toolchain
BuildRequires:  maven-surefire-provider-junit

%description
Jetty assembly descriptors used for building

%prep
%setup -q
cp -p %{SOURCE1} %{SOURCE2} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt epl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13537 |21mr|jetty-build-support-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-build-support
Version:        1.4
Release:        7
Summary:        Jetty build support files
# licensing bug upstream
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=362646
# - commit stating the license is already there
License:        ASL 2.0 or EPL
URL:            http://www.eclipse.org/jetty/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/snapshot/%{name}-%{version}.tar.bz2

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.enforcer:enforcer-api)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-toolchain:pom:)

%description
Build Support for Jetty. Contains enforcer rules, PMD rulesets, etc.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.

%prep
%setup -q

%build
%mvn_build -- -f %{name}

%install
%mvn_install

%files -f .mfiles
%doc jetty-distribution-remote-resources/src/main/resources/*

%files javadoc -f .mfiles-javadoc
%doc jetty-distribution-remote-resources/src/main/resources/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13538 |21mr|jetty-distribution-remote-resources-1.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-distribution-remote-resources
Version:        1.1
Release:        17
Summary:        Jetty toolchain artifact for distribution remote resources

License:        ASL 2.0 or EPL
URL:            http://www.eclipse.org/jetty/
Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/snapshot/%{name}-%{version}.tar.bz2
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  jpackage-utils
BuildRequires:  maven-local
BuildRequires:  maven-remote-resources-plugin
BuildRequires:  jetty-toolchain

Requires:       jpackage-utils
Requires:       maven
Requires:       maven-remote-resources-plugin
Requires:       jetty-toolchain

%description
Jetty toolchain artifact for distribution remote distribution resources

%prep
%setup -q

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc src/main/resources/LICENSE*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13539 |21mr|jetty-parent-19-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-parent
Version:        19
Release:        20
Summary:        Jetty parent POM file
License:        ASL 2.0 or EPL
URL:            http://www.eclipse.org/jetty/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        http://repo1.maven.org/maven2/org/eclipse/jetty/%{name}/%{version}/%{name}-%{version}.pom
# rpmlint config file (fedpkg lint will use this)
Source1:        .rpmlint
Source2:        http://www.eclipse.org/legal/epl-v10.html
Source3:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local

%description
Jetty parent POM file

%prep
%setup -q -c -T
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE2} %{SOURCE3} .

%pom_remove_plugin :maven-release-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc epl-v10.html LICENSE-2.0.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13540 |21mr|jetty-schemas-4.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       jetty-schemas
Version:    4.0.1
Release:    5
Summary:    XML Schemas for Jetty
License:    CDDL-1.1 or GPLv2 with exceptions
URL:        http://www.eclipse.org/jetty/
Group:          Development/Java
BuildArch:  noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:    https://github.com/eclipse/jetty.toolchain/archive/%{name}-%{version}.tar.gz
Source1:    https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-toolchain:pom:)

%description
%{summary}.

%prep
%setup -q -n jetty.toolchain-%{name}-%{version}/%{name}
cp %SOURCE1 .

%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license CDDL+GPL_1_1.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13541 |21mr|jetty-test-helper-3.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-test-helper
Version:        3.1
Release:        8
# header-template.txt documents dual licensing
License:        ASL 2.0 or EPL
Summary:        Jetty toolchain test helper
URL:            https://github.com/eclipse/jetty.toolchain
Source0:        https://github.com/eclipse/jetty.toolchain/archive/%{name}-%{version}.tar.gz
# https://github.com/eclipse/jetty.toolchain/issues/5
Source1:        https://github.com/eclipse/jetty.project/blob/jetty-9.3.x/LICENSE-eplv10-aslv20.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-toolchain:pom:)
BuildRequires:  mvn(org.hamcrest:hamcrest-library)

%description
Unit Testing Support for Jetty (common classes for some unit tests).

%package        javadoc
Summary:        Javadoc %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n jetty.toolchain-%{name}-%{version}/%{name}

find -name '*.?ar' -delete
find -name '*.class' -delete

cp %{SOURCE1} .

%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :maven-license-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%license LICENSE-eplv10-aslv20.html

%files javadoc -f .mfiles-javadoc
%license LICENSE-eplv10-aslv20.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13542 |21mr|jetty-test-policy-1.2-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-test-policy
Version:        1.2
Release:        22
Summary:        Jetty test policy files
License:        ASL 2.0 or EPL
URL:            http://www.eclipse.org/jetty/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/snapshot/%{name}-%{version}.tar.bz2
Source2:        http://www.eclipse.org/legal/epl-v10.html
Source3:        http://www.apache.org/licenses/LICENSE-2.0.txt

Patch0:         0001-Sign-JAR-with-maven-jarsigner-plugin.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-jarsigner-plugin)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-toolchain:pom:)

%description
Jetty test policy files

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.

%prep
%setup -q
%patch0 -p1
cp -p %{SOURCE2} %{SOURCE3} .

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
    <execution>
      <id>default-jar</id>
      <phase>skip</phase>
    </execution>"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license epl-v10.html LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license epl-v10.html LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13543 |21mr|jetty-toolchain-1.4-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-toolchain
Version:        1.4
Release:        19
Summary:        Jetty Toolchain main POM file
Group:          Development/Java
License:        ASL 2.0 or EPL
URL:            http://www.eclipse.org/jetty/
Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/snapshot/%{name}-%{version}.tar.bz2
# rpmlint config file (fedpkg lint will use this)
Source1:        .rpmlint
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.eclipse.jetty:jetty-parent:pom:)

%description
Jetty Toolchain main POM file

%prep
%setup -q
cp -p jetty-distribution-remote-resources/src/main/resources/* .

pushd %{name}
%pom_remove_plugin :maven-release-plugin

%build
pushd %{name}
%mvn_build

%install
pushd %{name}
%mvn_install

%files -f %{name}/.mfiles
%doc LICENSE-APACHE-2.0.txt LICENSE-ECLIPSE-1.0.html notice.html



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13544 |21mr|jetty-version-maven-plugin-1.0.7-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jetty-version-maven-plugin
Version:        1.0.7
Release:        21
Summary:        Jetty version management Maven plugin

License:        ASL 2.0 or EPL
URL:            http://www.eclipse.org/jetty/
Source0:        http://git.eclipse.org/c/jetty/org.eclipse.jetty.toolchain.git/snapshot/%{name}-%{version}.tar.bz2
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.eclipse.jetty.toolchain:jetty-toolchain:pom:)


%description
Jetty version management Maven plugin

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.


%prep
%setup -q
# copy license files
cp -p jetty-distribution-remote-resources/src/main/resources/* .

# we have java.util stuff in JVM directly now
# https://bugs.eclipse.org/bugs/show_bug.cgi?id=401163
sed -i 's|edu.emory.mathcs.backport.||' \
    jetty-version-maven-plugin/src/main/java/org/eclipse/jetty/toolchain/version/Release.java

%build
pushd %{name}
# skip tests because we don't have jetty-test-helper (yet)
%mvn_build -f

%install
pushd %{name}
%mvn_install


%files -f %{name}/.mfiles
%doc LICENSE-APACHE-2.0.txt LICENSE-ECLIPSE-1.0.html notice.html

%files javadoc -f %{name}/.mfiles-javadoc
%doc LICENSE-APACHE-2.0.txt LICENSE-ECLIPSE-1.0.html notice.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13545 |21mr|jexcelapi-2.6.12-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname jxl

Name:           jexcelapi
Version:        2.6.12
Release:        18
Summary:        A Java API to read, write and modify Excel spreadsheets
License:        LGPLv3
Group:          Development/Java
URL:            http://www.andykhan.com/jexcelapi
Source0:        http://www.andykhan.com/jexcelapi/jexcelapi_2_6_12.tar.gz
Source1:        http://repo1.maven.org/maven2/net/sourceforge/jexcelapi/jxl/2.6.12/jxl-2.6.12.pom
Patch0:         jexcelapi-build.patch
Requires:       log4j12
Requires:       jpackage-utils

BuildRequires:  jpackage-utils >= 0:1.7.3
BuildRequires:  java-devel >= 0:1.5.0
BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  jflex
BuildRequires:  findutils
BuildRequires:  sed
BuildRequires:  log4j12
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jexcelapi allows Java developers to read Excel spreadsheets and generate Excel
spreadsheets dynamically. In addition, it contains a mechanism which allows
Java applications to read a spreadsheet, modify some cells and write the
modified spreadsheet.

Thanks to jexcelapi non Windows operating systems can run pure Java applications
which process and deliver Excel spreadsheets. Because it is Java, this API may
be invoked from within a servlet, thus giving access to Excel functionality
over internet and intranet web applications.

Features:
- Reads data from Excel 95, 97, 2000 workbooks
- Reads and writes formulas (Excel 97 and later only)
- Generates spreadsheets in Excel 97 format
- Supports font, number and date formatting
- Supports shading and coloring of cells
- Modifies existing worksheets


%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
API documentation for %{name}.

%prep
%setup -n %{name} -q

# Clean up binary leftovers
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;

# Clean up temp files (confuses javadoc 1.3.1)
find . -name ".#*" -exec rm -f {} \;

%patch0 -p1 -b .build
sed -i "s|%{_javadir}/jflex.jar|%{_javadir}/jflex/jflex.jar|" build/build.xml

%build
pushd build
cat > build.properties <<EOBP
logger=Log4jLogger
loggerClasspath=$(build-classpath log4j12-1.2.17)
EOBP

[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
export CLASSPATH=$(build-classpath jflex)

mkdir out
ant jxlall
popd

# html doc files should not be executable
chmod -x index.html tutorial.html

%install
# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -m 0644 jxl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
ln -s %{name}.jar $RPM_BUILD_ROOT%{_javadir}/jxl.jar

# pom
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar

# javadoc
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -r docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%files -f .mfiles
%{_javadir}/jxl.jar
%doc *.html

%files javadoc
%doc index.html
%{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13546 |21mr|jffi-1.2.12-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global cluster jnr
%global sover 1.2

Name:           jffi
Version:        1.2.12
Release:        12
Summary:        Java Foreign Function Interface
Group:          Development/Java
License:        LGPLv3+ or ASL 2.0
URL:            http://github.com/jnr/jffi
Source0:        https://github.com/%{cluster}/%{name}/archive/%{name}-%{version}.tar.gz
Source3:        p2.inf
Patch0:         jffi-fix-dependencies-in-build-xml.patch
Patch1:         jffi-add-built-jar-to-test-classpath.patch
Patch2:         jffi-fix-compilation-flags.patch

BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  ffi-devel
BuildRequires:  ant
BuildRequires:  ant-junit

%description
An optimized Java interface to libffi.

%package native
Summary:        %{name} JAR with native bits

%description native
This package contains %{name} JAR with native bits.

%package javadoc
Summary:        Javadoc for %{name}
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0
%patch1
%patch2

### fix pkg-config libffi
sed -i -e "44s|libs|cflags|" jni/GNUmakefile

# ppc{,64} fix
# https://bugzilla.redhat.com/show_bug.cgi?id=561448#c9
sed -i.cpu -e '/m\$(MODEL)/d' jni/GNUmakefile libtest/GNUmakefile

# remove uneccessary directories
rm -rf archive/* jni/libffi/ jni/win32/ lib/CopyLibs/ lib/junit*

find ./ -name '*.jar' -exec rm -f '{}' \; 
find ./ -name '*.class' -exec rm -f '{}' \; 

build-jar-repository -s -p lib/ junit hamcrest/core

%mvn_package 'com.github.jnr:jffi::native:' native
%mvn_file ':{*}' %{name}/@1 @1

%build
# ant will produce JAR with native bits
%{ant} jar build-native -Duse.system.libffi=1

# maven will look for JAR with native bits in archive/
cp -p dist/jffi-*-Linux.jar archive/

%mvn_build

%install
%mvn_install

mkdir -p META-INF/
cp %{SOURCE3} META-INF/
jar uf %{buildroot}%{_jnidir}/%{name}/%{name}.jar META-INF/p2.inf

# install *.so
install -dm 755 %{buildroot}%{_libdir}/%{name}
unzip dist/jffi-*-Linux.jar
mv jni/*-Linux %{buildroot}%{_libdir}/%{name}/
# create version-less symlink for .so file
pushd %{buildroot}%{_libdir}/%{name}/*
chmod +x lib%{name}-%{sover}.so
ln -s lib%{name}-%{sover}.so lib%{name}.so
popd

%check
# don't fail on unused parameters... (TODO: send patch upstream)
sed -i 's|-Werror||' libtest/GNUmakefile
ant -Duse.system.libffi=1 test

%files -f .mfiles
%doc COPYING.GPL COPYING.LESSER LICENSE

%files native -f .mfiles-native
%{_libdir}/%{name}
%doc COPYING.GPL COPYING.LESSER LICENSE

%files javadoc -f .mfiles-javadoc
%doc COPYING.GPL COPYING.LESSER LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13547 |21mr|jflex-1.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without desktop
%bcond_without emacs
%define emacs_ver 28.1
%define _emacs_bytecompile %{_bindir}/emacs-%{emacs_ver} -batch --no-init-file --no-site-file --eval '(progn (setq load-path (cons "." load-path)))' -f batch-byte-compile
%define _emacs_sitelispdir %{_datadir}/emacs/site-lisp

Summary:        Fast Scanner Generator
Name:           jflex
Version:        1.7.0
Release:        2
License:        BSD
URL:            http://jflex.de/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./create-tarball.sh %%{version}
Source0:        %{name}-%{version}-clean.tar.gz
Source2:        %{name}.desktop
Source3:        %{name}.png
Source4:        %{name}.1
Source5:        create-tarball.sh

BuildRequires:  jflex
BuildRequires:  maven-local
BuildRequires:  mvn(java_cup:java_cup)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)

%if %{with desktop}
BuildRequires:  desktop-file-utils
%endif

%if %{with emacs}
BuildRequires:  emacs
Requires:       emacs-filesystem >= %{emacs_ver}
%endif

# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description
JFlex is a lexical analyzer generator (also known as scanner
generator) for Java, written in Java.  It is also a rewrite of the
very useful tool JLex which was developed by Elliot Berk at Princeton
University.  As Vern Paxson states for his C/C++ tool flex: They do
not share any code though.  JFlex is designed to work together with
the LALR parser generator CUP by Scott Hudson, and the Java
modification of Berkeley Yacc BYacc/J by Bob Jamison.  It can also be
used together with other parser generators like ANTLR or as a
standalone tool.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q
%mvn_file : %{name}
%pom_add_dep java_cup:java_cup

%pom_remove_plugin :jflex-maven-plugin
%pom_remove_plugin :cup-maven-plugin
%pom_remove_plugin :maven-shade-plugin
%pom_remove_dep :cup_runtime

# Tests fail with 320k stacks (default on i686), so lets increase
# stack to 16M to avoid stack overflows.  See rhbz#1119308
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-surefire-plugin']/pom:configuration" "<argLine>-Xss16384k</argLine>"

%pom_xpath_remove "pom:plugin[pom:artifactId='maven-site-plugin']" parent.xml
%pom_xpath_remove "pom:plugin[pom:artifactId='fmt-maven-plugin']" parent.xml
%pom_xpath_remove "pom:plugin[pom:artifactId='cup-maven-plugin']" parent.xml
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-shade-plugin']" parent.xml

%pom_xpath_remove "pom:dependency[pom:artifactId='plexus-compiler-javac-errorprone']" parent.xml
%pom_xpath_remove "pom:dependency[pom:artifactId='error_prone_core']" parent.xml
%pom_xpath_remove "pom:compilerId" parent.xml
%pom_xpath_remove "pom:compilerArgs" parent.xml

sed -i /%%inputstreamctor/d src/main/jflex/LexScan.flex

%build
java -jar $(find-jar java_cup) -parser LexParse -interface -destdir src/main/java src/main/cup/LexParse.cup
jflex -d src/main/java/jflex --skel src/main/jflex/skeleton.nested src/main/jflex/LexScan.flex
%mvn_build

%if %{with emacs}
# Compile Emacs jflex-mode source
%{_emacs_bytecompile} lib/jflex-mode.el
%endif

%install
%mvn_install

# wrapper script for direct execution
%jpackage_script jflex.Main "" "" jflex:java_cup jflex true

# manpage
install -d -m 755 %{buildroot}%{_mandir}/man1
install -p -m 644 %{SOURCE4} %{buildroot}%{_mandir}/man1

# .desktop + icons
%if %{with desktop}
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE2}
install -d -m 755 %{buildroot}%{_datadir}/pixmaps
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
%endif

# Emacs files
%if %{with emacs}
install -d -m 755 %{buildroot}%{_emacs_sitelispdir}/%{name}
install -p -m 644 lib/jflex-mode.el %{buildroot}%{_emacs_sitelispdir}/%{name}
install -p -m 644 lib/jflex-mode.elc %{buildroot}%{_emacs_sitelispdir}/%{name}
%endif

%files -f .mfiles
%doc doc
%doc COPYRIGHT
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.xz
%if %{with desktop}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png
%endif
%if %{with emacs}
%{_emacs_sitelispdir}/%{name}
%endif

%files javadoc
%doc COPYRIGHT
%doc %{_javadocdir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13548 |21mr|jFormatString-0-0.32.20131227gitf159b88
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit f159b88a16be4d103c7e7beb90e07a92617980b9
%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global zipcommit %(c=%{commit}; echo ${c:0:12})

Name:           jFormatString
Version:        0
Release:        0.32.20131227git%{shortcommit}
Summary:        Java format string compile-time checker
Group:          Development/Java
License:        GPLv2 with exceptions
URL:            http://code.google.com/p/j-format-string/

Source0:        http://j-format-string.googlecode.com/archive/%{commit}.zip
Source1:        http://search.maven.org/remotecontent?filepath=com/google/code/findbugs/jFormatString/2.0.2/jFormatString-2.0.2.pom

# This patch has not been sent upstream, since it is Fedora specific.
Patch0:         %{name}-build.patch

# Add temporary dependency on javapackages-local, for %%add_maven_depmap macro
# See https://lists.fedoraproject.org/archives/list/java-devel@lists.fedoraproject.org/thread/R3KZ7VI5DPCMCELFIVJQ4AXB2WQED35C/
BuildRequires:  javapackages-local

BuildRequires:  ant, java-devel, java-1.8.0-javadoc, jpackage-utils, junit
Requires:       java-headless, jpackage-utils

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This project is derived from Sun's implementation of java.util.Formatter.  It
is designed to allow compile time checks as to whether or not a use of a
format string will be erroneous when executed at runtime.

%package javadoc
Summary:        Javadoc documentation for %{name}
Requires:       java-1.8.0-javadoc

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n j-format-string-%{zipcommit}
%patch0 -p1

cp %{SOURCE1} pom.xml

# delete test code - it requires FindBugs to compile
rm -rfv src/junit

# delete JARs
rm -v lib/*

%build
# Build the JAR
ant jarFile

# Create the javadocs
mkdir docs
javadoc -d docs -source 1.5 -sourcepath src/java \
  -classpath build/classes \
  -link file://%{_javadocdir}/java edu.umd.cs.findbugs.formatStringChecker

%install

# JAR files
mkdir -p %{buildroot}%{_javadir}
install -d -m 755 %{buildroot}%{_mavenpomdir}
cp -p build/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
install -pm 644 pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom

%add_maven_depmap JPP-%{name}.pom %{name}.jar

# Javadocs
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp docs/* %{buildroot}%{_javadocdir}/%{name}

%pretrans javadoc -p <lua>
path = "%{_javadocdir}/%{name}"
st = posix.stat(path)
if st and st.type == "link" then
  os.remove(path)
end

%files -f .mfiles

%files javadoc
%{_javadocdir}/%{name}*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13549 |21mr|jfreechart-1.0.19-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jfreechart
Version:        1.0.19
Release:        12
Summary:        Java chart library

License:        LGPLv2+
URL:            http://www.jfree.org/jfreechart/
Source0:        http://download.sourceforge.net/sourceforge/jfreechart/%{name}-%{version}.zip
Patch0:         build_swt_encoding_fix.patch

BuildRequires:  maven-local
BuildRequires:  maven-plugin-bundle
BuildRequires:  mvn(org.jfree:jcommon) >= 1.0.23
BuildRequires:  mvn(javax.servlet:javax.servlet-api) >= 2.5
BuildRequires:  eclipse-swt
BuildRequires:  sonatype-oss-parent
BuildRequires:  ant

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JFreeChart is a free 100% Java chart library that makes it easy for
developers to display professional quality charts in their applications.

%package swt
Summary:        Swt extension for jfreechart
Requires:       %{name} = %{version}-%{release}
Requires:       eclipse-swt jpackage-utils

%description swt
Experimental swt extension for jfreechart.

%package javadoc
Summary:        Javadocs for %{name}
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q
# Erase prebuilt files
find \( -name '*.jar' -o -name '*.class' \) -exec rm -f '{}' \;
%patch0 -p2

MVN_BUNDLE_PLUGIN_EXTRA_XML="<extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-SymbolicName>org.jfree.jfreechart</Bundle-SymbolicName>
            <Bundle-Vendor>Fedora Project</Bundle-Vendor>
            <Bundle-Version>%{version}</Bundle-Version>
            <!-- Do not autogenerate uses clauses in Manifests -->
            <Import-Package>
              !javax.servlet,
              !javax.servlet.http,
              *
            </Import-Package>
            <_nouses>true</_nouses>
          </instructions>
        </configuration>"
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-jxr-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_change_dep javax.servlet:servlet-api: javax.servlet:javax.servlet-api:

%pom_add_plugin org.apache.felix:maven-bundle-plugin . "$MVN_BUNDLE_PLUGIN_EXTRA_XML"
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . "<configuration><excludePackageNames>org.jfree.chart.fx*</excludePackageNames></configuration>"
# Change to packaging type bundle so as to be able to use it
# as an OSGi bundle.
%pom_xpath_set "pom:packaging" "bundle"

%build
# Ignore failing test: SegmentedTimelineTest
%mvn_build -- -Dmaven.test.failure.ignore=true

# /usr/lib/java/swt.jar is an arch independent path to swt
ant -f ant/build-swt.xml \
        -Dswt.jar=/usr/lib/java/swt.jar \
        -Djcommon.jar=$(build-classpath jcommon) \
        -Djfreechart.jar=target/jfreechart-%{version}.jar

%install
%mvn_install

install -m 644 lib/swtgraphics2d.jar  $RPM_BUILD_ROOT%{_javadir}/%{name}/swtgraphics2d.jar
install -m 644 lib/jfreechart-%{version}-swt.jar  $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-swt.jar


%files -f .mfiles
%doc ChangeLog NEWS README.txt

%files swt
%{_javadir}/%{name}/swtgraphics2d*.jar
%{_javadir}/%{name}/%{name}-swt*.jar


%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13550 |21mr|jfsutils-1.1.15-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	IBM JFS utility programs
Name:		jfsutils
Version:	1.1.15
Release:	7
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://jfs.sourceforge.net/
Source0:	http://www10.software.ibm.com/developer/opensource/jfs/project/pub/%{name}-%{version}.tar.gz
Patch0:		jfsutils-1.1.12-uuid.patch
Patch1:		jfsutils-1.1.15-sysmacros.patch
Patch2:		jfsutils-1.1.15-string-literal.diff
Patch3:		jfsutils-1.1.15-add-stdint-for-c99-types.patch
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(uuid)
%rename		jfsprogs

%description
The jfsutils package contains a number of utilities for creating,
checking, modifying, and correcting any inconsistencies in JFS
filesystems.
The following utilities are available:
* fsck.jfs - initiate replay of the JFS transaction log, and check and
  repair a JFS formatted device
* logdump  - dump a JFS formatted device's journal log
* logredo  - "replay" a JFS formatted device's journal log
* mkfs.jfs - create a JFS formatted partition
* xchkdmp  - dump the contents of a JFS fsck log file created with xchklog
* xchklog  - extract a log from the JFS fsck workspace into a file
* xpeek    - shell-type JFS file system editor

%files
/sbin/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
CONFIGURE_TOP="$PWD"
%configure \
	--sbindir=/sbin
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13551 |21mr|jgettext-0.14-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jgettext
Version:        0.14
Release:        10
Summary:        An ANTLR-based parser and generator for GNU Gettext PO/POT 

License:        LGPLv2
URL:            https://github.com/zanata/%{name}
Source0:        https://github.com/zanata/%{name}/archive/%{name}-%{version}.zip
Source1:        http://www.gnu.org/licenses/lgpl-2.1.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(antlr:antlr)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.codehaus.mojo:antlr-maven-plugin)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  gettext

%description
JGettext includes an ANTLR-based parser for GNU Gettext PO/POT files and a 
PO/POT generator as well.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license lgpl-2.1.txt
%doc README.txt

%files javadoc -f .mfiles-javadoc
%license lgpl-2.1.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13552 |21mr|jgit-5.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag 5.6.0.201912101111-r

# Allow building without tests
# (can build with much smaller dep-tree in that case)
%bcond_without tests

Name:           jgit
Version:        5.6.0
Release:        1
Summary:        A pure java implementation of git
Group:          Development/Java
# We don't ship the EPL-licensed Eclipse features in this package
License:        BSD
URL:            https://www.eclipse.org/jgit/
Source0:        https://git.eclipse.org/c/jgit/jgit.git/snapshot/jgit-%{gittag}.tar.xz

# Set the correct classpath for the command line tools
Patch0: 0001-Ensure-the-correct-classpath-is-set-for-the-jgit-com.patch

BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(args4j:args4j)
BuildRequires:  mvn(com.google.code.gson:gson)
BuildRequires:  mvn(com.googlecode.javaewah:JavaEWAH)
BuildRequires:  mvn(com.jcraft:jsch)
BuildRequires:  mvn(com.jcraft:jzlib)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.i2p.crypto:eddsa)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.sshd:sshd-osgi) >= 2.2.0
BuildRequires:  mvn(org.apache.sshd:sshd-sftp) >= 2.2.0
BuildRequires:  mvn(org.bouncycastle:bcpg-jdk15on) >= 1.63
BuildRequires:  mvn(org.bouncycastle:bcpkix-jdk15on) >= 1.63
BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15on) >= 1.63
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  mvn(org.tukaani:xz)
%if %{with tests}
# Needed for test suites
BuildRequires:  git
BuildRequires:  mvn(org.hamcrest:hamcrest-library)
BuildRequires:  mvn(org.mockito:mockito-core)
%endif

# Runtime requirements
Requires:       bouncycastle >= 1.63
Requires:       apache-sshd >= 1:2.2.0

%description
A pure Java implementation of the Git version control system and command
line interface.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -n jgit-%{gittag} -q
%patch0 -p1

# Disable multithreaded build
rm .mvn/maven.config

# Disable "errorprone" compiler that is not available in distro
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:executions/pom:execution[pom:id='compile-with-errorprone']" pom.xml
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:executions/pom:execution[pom:id='default-compile']/pom:configuration" pom.xml
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:dependencies" pom.xml

# Use newer Felix dep
%pom_change_dep -r org.osgi:org.osgi.core org.osgi:osgi.core:provided

# Remove unnecessary plugins for RPM builds
%pom_disable_module org.eclipse.jgit.coverage
%pom_disable_module org.eclipse.jgit.benchmarks
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin -r :japicmp-maven-plugin

# Avoid failures due to lack of jacoco
sed -i -e 's/@{argLine}//' $(find -name pom.xml)

# Don't attach shell script artifact
%pom_remove_plugin org.codehaus.mojo:build-helper-maven-plugin org.eclipse.jgit.pgm

# Don't have spring-boot
%pom_remove_plugin :spring-boot-maven-plugin org.eclipse.jgit.pgm
%pom_xpath_remove "pom:plugins/pom:plugin/pom:executions/pom:execution[pom:id='create_jgit']" org.eclipse.jgit.pgm
sed -i -e 's/org\.springframework\.boot\.loader\.JarLauncher/org.eclipse.jgit.pgm.Main/' \
  org.eclipse.jgit.pgm/jgit.sh

# Remove unnecessary dep on org.apache.log4j
%pom_remove_dep log4j:log4j . org.eclipse.jgit.pgm
%pom_change_dep org.slf4j:slf4j-log4j12 org.slf4j:slf4j-simple . org.eclipse.jgit.pgm

%if %{without tests}
# No need to build test modules if we aren't running tests
sed -i -e '/\.test<\/module>/d' pom.xml
%endif

# Never install test jars
%mvn_package ":*.test" __noinstall

%build
%if %{without tests}
%mvn_build -f -- -Pjavac
%else
# Ignore failures due to 'Mount point not found' errors when building in koji
%mvn_build -- -Pjavac  -Dmaven.test.failure.ignore=true
%endif

%install
%mvn_install

# Install CLI invoker script
install -dm 755 %{buildroot}%{_bindir}
install -m 755 org.eclipse.jgit.pgm/jgit.sh %{buildroot}%{_bindir}/jgit

# Ant task configuration
install -dm 755 %{buildroot}%{_sysconfdir}/ant.d
cat > %{buildroot}%{_sysconfdir}/ant.d/jgit <<EOF
jgit/org.eclipse.jgit jgit/org.eclipse.jgit.ant slf4j/slf4j-api slf4j/slf4j-simple jzlib jsch commons-compress xz-java javaewah httpcomponents/httpcore httpcomponents/httpclient commons-logging commons-codec eddsa apache-sshd/sshd-osgi apache-sshd/sshd-sftp
EOF

%files -f .mfiles
%license LICENSE
%doc README.md
%{_bindir}/jgit
%config(noreplace) %{_sysconfdir}/ant.d/jgit

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13553 |21mr|jgoodies-common-1.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global shortname common

Name:           jgoodies-common
Version:        1.8.1
Release:        4
Summary:        Common library shared by JGoodies libraries and applications
Group:          Development/Java
License:        BSD
URL:            http://www.jgoodies.com/
Source0:        http://www.jgoodies.com/download/libraries/%{shortname}/%{name}-%(tr "." "_" <<<%{version}).zip

# fontconfig and DejaVu fonts needed for tests
BuildRequires:  dejavu-sans-fonts
BuildRequires:  fontconfig
BuildRequires:  maven-local
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JGoodies Common library provides convenience code for other JGoodies
libraries and applications.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%autosetup

# Unzip source and test files from provided JARs
mkdir -p src/main/java/ src/test/java/
pushd src/main/java/
jar -xf ../../../%{name}-%{version}-sources.jar
popd
pushd src/test/java/
jar -xf ../../../%{name}-%{version}-tests.jar
popd

# Delete prebuild JARs
find -name "*.jar" -exec rm {} \;

# Remove DOS line endings
for file in LICENSE.txt RELEASE-NOTES.txt; do
  sed 's|\r||g' $file > $file.new && \
  touch -r $file $file.new && \
  mv $file.new $file
done

%mvn_file :%{name} %{name} %{name}


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%doc README.html RELEASE-NOTES.txt
%license LICENSE.txt


%files javadoc -f .mfiles-javadoc




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13554 |21mr|jgoodies-forms-1.8.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname forms

Name:           jgoodies-forms
Version:        1.8.0
Release:        10
Summary:        Framework to lay out and implement elegant Swing panels in Java

License:        BSD
URL:            http://www.jgoodies.com/freeware/forms/
Source0:        http://www.jgoodies.com/download/libraries/%{shortname}/%{name}-%(tr "." "_" <<<%{version}).zip

# Fontconfig and DejaVu fonts needed for tests
BuildRequires:  dejavu-sans-fonts
BuildRequires:  fontconfig
BuildRequires:  maven-local
BuildRequires:  mvn(com.jgoodies:jgoodies-common) >= 1.8.0
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JGoodies Forms framework helps you lay out and implement elegant Swing
panels quickly and consistently. It makes simple things easy and the hard stuff
possible, the good design easy and the bad difficult.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%autosetup

# Unzip source and test files from provided JARs
mkdir -p src/main/java/ src/test/java/
pushd src/main/java/
jar -xf ../../../%{name}-%{version}-sources.jar
popd
pushd src/test/java/
jar -xf ../../../%{name}-%{version}-tests.jar
popd

# Delete prebuild JARs
find -name "*.jar" -exec rm {} \;

# Drop tests that require a running X11 server
rm src/test/java/com/jgoodies/forms/layout/SerializationTest.java
sed -i "/SerializationTest.class,/d" src/test/java/com/jgoodies/forms/layout/AllFormsTests.java

# Delete ClassLoader test
# TODO: fix it to make it work
rm src/test/java/com/jgoodies/forms/layout/ClassLoaderTest.java
sed -i "/ClassLoaderTest.class,/d" src/test/java/com/jgoodies/forms/layout/AllFormsTests.java

# Fix wrong end-of-line encoding
for file in LICENSE.txt RELEASE-NOTES.txt; do
  sed -i.orig "s/\r//" $file && \
  touch -r $file.orig $file && \
  rm $file.orig
done

%mvn_file :%{name} %{name} %{name}


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%doc README.html RELEASE-NOTES.txt
%license LICENSE.txt


%files javadoc -f .mfiles-javadoc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13555 |21mr|jgoodies-looks-2.6.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global shortname looks

Name:           jgoodies-looks
Version:        2.6.0
Release:        10
Summary:        Free high-fidelity Windows and multi-platform appearance

License:        BSD
URL:            http://www.jgoodies.com/freeware/looks/
Source0:        http://www.jgoodies.com/download/libraries/%{shortname}/%{name}-%(tr "." "_" <<<%{version}).zip

# Fontconfig and DejaVu fonts needed for tests
BuildRequires:  dejavu-sans-fonts
BuildRequires:  fontconfig
BuildRequires:  maven-local
BuildRequires:  mvn(com.jgoodies:jgoodies-common) >= 1.8.0
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
# JGoodies Looks >= 2.4.2 doesn't provide demo jars anymore
Provides:       %{name}-demo = %{version}-%{release}
Obsoletes:      %{name}-demo < 2.4.2
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JGoodies look&feels make your Swing applications and applets look better.
They have been optimized for readability, precise micro-design and usability.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q

# Unzip source and test files from provided JARs
mkdir -p src/main/java/ src/test/java/
pushd src/main/java/
jar -xf ../../../%{name}-%{version}-sources.jar
popd
pushd src/test/java/
jar -xf ../../../%{name}-%{version}-tests.jar
popd

# Move the resources into a "resources" directory so they end up packaged
# properly
mkdir -p src/main/resources/com/jgoodies/looks/plastic/
mv src/main/java/com/jgoodies/looks/plastic/icons/ src/main/resources/com/jgoodies/looks/plastic/
mkdir -p src/main/resources/com/jgoodies/looks/common
mv src/main/java/com/jgoodies/looks/common/*.png src/main/resources/com/jgoodies/looks/common/

# Delete prebuild JARs
find -name "*.jar" -exec rm {} \;

# Fix wrong end-of-line encoding
for file in LICENSE.txt RELEASE-NOTES.txt; do
  sed -i.orig "s/\r//" $file && \
  touch -r $file.orig $file && \
  rm $file.orig
done

%mvn_file :%{name} %{name} %{name}


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%doc README.html RELEASE-NOTES.txt
%license LICENSE.txt


%files javadoc -f .mfiles-javadoc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13556 |21mr|jgroups212-2.12.3-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:         jgroups212
Version:      2.12.3
Release:      18
Summary:      A toolkit for reliable multicast communication
License:      LGPLv2
URL:          http://www.jgroups.org
# git clone git://github.com/belaban/JGroups.git
# cd JGroups && git checkout Branch_JGroups_2_12 && git checkout-index -f -a --prefix=jgroups212-2.12.3.Final
# find jgroups212-2.12.3.Final/ -name '*.jar' -type f -delete
# tar -cJf jgroups212-2.12.3.Final.tar.xz jgroups212-2.12.3.Final
Source0:       %{name}-%{version}.Final.tar.xz
Patch0:        %{name}-groupid.patch
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(bsh:bsh)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(xalan:xalan)
BuildRequires: mvn(xalan:serializer)

%description
A toolkit for reliable multicast communication.
It allows developers to create reliable multipoint (multicast) applications
where reliability is a deployment issue, and does not have to be implemented
by the application developer. This saves application developers significant
amounts of time, and allows for the application to be deployed in different
environments, without having to change code.

%package javadoc
Summary:    Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{version}.Final
# Cleanup
find . -name '*.jar' -delete
find . -name '*.class' -delete

%patch0 -p1

%pom_remove_plugin :maven-source-plugin
%pom_xpath_set "pom:dependency[pom:groupId='log4j']/pom:version" 1.2.17

# Fix incorrect permissions on documentation
chmod 644 README

%mvn_file org.%{name}:jgroups %{name}

%build
# Tests to not current run under maven for this project
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README INSTALL.html
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13557 |21mr|jgroups-3.6.10-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          jgroups
Version:       3.6.10
Release:       7
Summary:       Toolkit for reliable multicast communication
License:       ASL 2.0 and LGPLv2+
URL:           http://www.jgroups.org
Source0:       https://github.com/belaban/JGroups/archive/JGroups-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JGroups is a toolkit for reliable multicast communication. (Note that
this doesn't necessarily mean IP Multicast, JGroups can also use
transports such as TCP). It can be used to create groups of processes
whose members can send messages to each other.

%package  javadoc
Summary:       API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n JGroups-JGroups-%{namedversion}

find . -name '*.class' -delete
find . -name '*.jar' -delete

%pom_remove_plugin :nexus-staging-maven-plugin
# Useless tasks
%pom_remove_plugin :maven-jar-plugin
%pom_remove_plugin :maven-source-plugin

# Set encoding
%pom_xpath_inject pom:project/pom:properties '
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
  <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>'

%pom_change_dep "bouncycastle:bcprov-jdk15" "org.bouncycastle:bcprov-jdk15on:1.52"

chmod 644 README

%build
# A few failed tests:
# DEBUG: Failed tests: 
# DEBUG:   PrioTest.init:40 null
# DEBUG:   BecomeServerTest>BMNGRunner.bmngAfterTest:65->BMNGAbstractRunner.bmngAfterTest:193 ? FileNotFound
# DEBUG:   ForwardToCoordFailoverTest>BMNGRunner.bmngAfterTest:65->BMNGAbstractRunner.bmngAfterTest:193 ? FileNotFound
# DEBUG:   MessageBeforeConnectedTest>BMNGRunner.bmngAfterTest:65->BMNGAbstractRunner.bmngAfterTest:193 ? FileNotFound
# DEBUG:   SequencerFailoverTest>BMNGRunner.bmngAfterTest:65->BMNGAbstractRunner.bmngAfterTest:193 ? FileNotFound
# DEBUG:   TCPGOSSIP_Test.stopRouter:56 NullPointer
# DEBUG:   TUNNELDeadLockTest.tearDown:73 NullPointer
# DEBUG:   TUNNEL_Test.stopRouter:56 NullPointer
# DEBUG: Tests run: 1795, Failures: 8, Errors: 0, Skipped: 1
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc INSTALL.html README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13558 |21mr|jhighlight-1.0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jhighlight
Version:        1.0.1
Release:        11
Summary:        An embeddable pure Java syntax highlighting library

License:        LGPLv2+ or CDDL
URL:            http://svn.rifers.org/jhighlight

Source0:        https://github.com/codelibs/jhighlight/archive/jhighlight-%{version}.tar.gz
Patch0:         servlet31.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
JHighlight is an embeddable pure Java syntax highlighting library that supports
Java, Groovy, C++, HTML, XHTML, XML and LZX languages and outputs to XHTML. It
also supports RIFE (http://rifers.org) templates tags and highlights them
clearly so that you can easily identify the difference between your RIFE markup
and the actual marked up source.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0
%mvn_alias : com.uwyn:

%build
%mvn_build 

%install
%mvn_install

%files -f .mfiles
%doc README.md
%doc COPYING
%doc LICENSE_LGPL.txt LICENSE_CDDL.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE_LGPL.txt LICENSE_CDDL.txt
%doc COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13559 |21mr|jibx-1.2.6-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global _version 1_2_6
Name:          jibx
Version:       1.2.6
Release:       14
Summary:       Framework for binding XML data to Java objects
Group:         Development/Java
License:       BSD and ASL 1.1
URL:           http://sourceforge.net/projects/jibx/
Source0:       http://sourceforge.net/projects/jibx/files/jibx/jibx-%{version}/%{name}_%{_version}.zip
Patch0:        %{name}-classpath.patch
Patch1:        %{name}-1.2.6-poms.patch
Patch2:        %{name}-port-to-qdox-2.patch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: junit
BuildRequires: objectweb-asm3
BuildRequires: bcel
BuildRequires: bea-stax-api
BuildRequires: eclipse-equinox-osgi >= 1:4.6.0
BuildRequires: eclipse-jdt >= 1:4.6.0
BuildRequires: eclipse-platform >= 1:4.6.0
BuildRequires: joda-time
BuildRequires: qdox
BuildRequires: dom4j
BuildRequires: jdom
BuildRequires: xpp3
BuildRequires: log4j12
BuildRequires: javapackages-local

%description
JiBX is a framework for binding XML data to Java objects. It lets you
work with data from XML documents using your own class structures. 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}
#Patch to add the bundled jar dependencies in the classpath
%patch0 -p1
#Patch to add maven poms
%patch1 -p1
%patch2 -p0

find -name '*.class' -delete
find -name '*.jar' -delete

rm -rf %{_builddir}/%{name}/build/docs/src/*


# Eclipse is arch-specific, but multilib agnostic
%global _eclipsedir %{_prefix}/lib/eclipse

#Symlink the eclipse dependencies
# platform
# new location in eclipse 4.7.0
plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.core.contenttype_*.jar`
ln -s "$plugin_file" lib/org.eclipse.core.contenttype.jar

plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.core.jobs_*.jar`
ln -s "$plugin_file" lib/org.eclipse.core.jobs.jar

plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.core.runtime_*.jar`
ln -s "$plugin_file" lib/org.eclipse.core.runtime.jar

plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.core.resources_*.jar`
ln -s "$plugin_file" lib/org.eclipse.core.resources.jar

plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.equinox.common_*.jar`
ln -s "$plugin_file" lib/org.eclipse.equinox.common.jar

plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.equinox.preferences_*.jar`
ln -s "$plugin_file" lib/org.eclipse.equinox.preferences.jar

plugin_file=`ls %{_eclipsedir}/plugins/org.eclipse.text_*.jar`
ln -s "$plugin_file" lib/org.eclipse.text.jar

# new location in eclipse 4.6.0-0.5.git201604261105
plugin_file=`ls %{_datadir}/eclipse/droplets/eclipse-jdt/plugins/org.eclipse.jdt.core_*jar`
ln -s "$plugin_file" lib/org.eclipse.jdt.core.jar

# equinox-osgi
#plugin_file=`ls %%{_libdir}/eclipse/plugins/org.eclipse.osgi_*.jar`
#ln -s "$plugin_file" lib/org.eclipse.osgi.jar
ln -s $(build-classpath eclipse/osgi) lib/org.eclipse.osgi.jar

# jdt
plugin_file=`ls %{_datadir}/eclipse/droplets/eclipse-jdt/plugins/org.eclipse.jdt.core.manipulation_*.jar`
ln -s "$plugin_file" lib/org.eclipse.jdt.core.manipulation.jar


build-jar-repository -p lib \
bcel \
bea-stax-api \
dom4j \
jdom \
joda-time \
qdox \
xpp3 

ln -s $(build-classpath objectweb-asm3/asm) lib/
ln -s $(build-classpath objectweb-asm3/asm-commons) lib/
ln -s $(build-classpath log4j12-1.2.17) lib/

sed -i '/Class-Path/I d' %{_builddir}/%{name}/build/build.xml

%pom_change_dep :log4j ::1.2.17 build/maven/jibx-bind/pom.xml

%build

for sub_component in bind extras run schema tools; do
%mvn_file org.%{name}:%{name}-${sub_component} %{name}/${sub_component}
done

pushd build/
sed -i -e s:stax-api.jar:bea-stax-api.jar:g build.xml
# thanks to msrb@redhat.com
sed -i 's|version}" arg2="1.5"|version}" arg2="1.8"|g' build.xml
javac jenable/JEnable.java

export CLASSPATH=$(build-classpath junit)
ant current -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 devdoc #test-multiples test-singles test-extras basic-blackbox blackbox devdoc javadoc

%install
%mvn_artifact build/maven/pom.xml
for sub_component in bind extras run schema tools; do
%mvn_artifact build/maven/jibx-${sub_component}/pom.xml lib/%{name}-${sub_component}.jar
done

%mvn_install -J %{_builddir}/%{name}/build/api


%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13560 |21mr|jitterentropy-3.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# -D_FORTIFY_SOURCE=2 requires -O1+, but -O0 is used here
%global _fortify_cflags %{nil}

Summary:	Library implementing the jitter entropy source
Name:		jitterentropy
Version:	3.0.2
Release:	1
License:	BSD or GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/smuellerDD/jitterentropy-library
Source0:	https://github.com/smuellerDD/jitterentropy-library/archive/v%{version}.tar.gz?/%{name}-library-%{version}.tar.gz
# https://github.com/smuellerDD/jitterentropy-library/pull/35
Patch1:		0001-Link-libpthread.patch

BuildRequires:	gcc
BuildRequires:	awk
BuildRequires:	grep

%description
Library implementing the CPU jitter entropy source.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library implementing the jitter entropy source
Group:		System/Libraries

%description -n %{libname}
Library implementing the CPU jitter entropy source.

%files -n %{libname}
%license COPYING*
%doc CHANGES.md README.md
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for jitterentropy library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}-library-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for jitterentropy.

%files -n %{devname}
%license COPYING*
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}*.h
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-library-%{version}

%build
%setup_compile_flags
%make

%install
%makeinstall_std \
	PREFIX=%{_prefix} \
	LIBDIR=%{_lib} \
	INSTALL_STRIP=install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13561 |21mr|jline1-1.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           jline1
Version:        1.0
Release:        20
Summary:        Java library for reading and editing user input in console applications
License:        BSD
URL:            http://jline.sourceforge.net/
Source0:        http://download.sourceforge.net/sourceforge/jline/jline-%{version}.zip
Source1:        CatalogManager.properties
Patch1:         jline-0.9.94-crosslink.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

Requires:       bash
# for /bin/stty
Requires:       coreutils

# https://bugzilla.redhat.com/show_bug.cgi?id=1022939
Requires:       java-headless

%description
JLine is a java library for reading and editing user input in console
applications. It features tab-completion, command history, password
masking, configurable key-bindings, and pass-through handlers to use to
chain to other console applications.

%package        demo
Summary:        Demos for %{name}
Requires:       %{name} = %{version}-%{release}

%description    demo
Demonstrations and samples for %{name}.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q -n jline-%{version}
%patch1 -p1

# Make sure upstream hasn't sneaked in any jars we don't know about
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

# Remove pre-built Windows-only binary artifacts
rm src/src/main/resources/jline/jline*.dll

# Use locally installed DTDs
mkdir build
cp -p %{SOURCE1} build/

%build
# Use locally installed DTDs
export CLASSPATH=%{_builddir}/%{name}-%{version}/build

mv src tmp
mv tmp/* .

%mvn_compat_version : %{version} 1
%mvn_build

%install
%mvn_install

%files -f .mfiles
# there is native code in sources but only for Windows
%doc LICENSE.txt src/main/resources/jline/keybindings.properties

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13562 |21mr|jline-2.14.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             jline
Version:          2.14.6
Release:          6
Summary:          JLine is a Java library for handling console input
License:          BSD
URL:              https://github.com/jline/jline2
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          https://github.com/jline/jline2/archive/jline-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.fusesource.jansi:jansi)
BuildRequires:  mvn(org.powermock:powermock-api-easymock)
BuildRequires:  mvn(org.powermock:powermock-module-junit4)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

Obsoletes: jline2 < %{version}-%{release}
Provides: jline2 = %{version}-%{release}

%description
JLine is a Java library for handling console input. It is similar
in functionality to BSD editline and GNU readline. People familiar
with the readline/editline capabilities for modern shells (such as
bash and tcsh) will find most of the command editing features of
JLine to be familiar.

%package javadoc
Summary:          Javadocs for %{name}
Obsoletes: jline2-javadoc < %{version}-%{release}
Provides: jline2-javadoc = %{version}-%{release}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jline2-jline-%{version}

# Remove maven-shade-plugin usage
%pom_remove_plugin "org.apache.maven.plugins:maven-shade-plugin"
# Remove animal sniffer plugin in order to reduce deps
%pom_remove_plugin "org.codehaus.mojo:animal-sniffer-maven-plugin"

# Remove unavailable and unneeded deps
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-javadoc-plugin

# Makes the build fail on deprecation warnings from jansi
%pom_xpath_remove 'pom:arg[text()="-Werror"]'

# Do not import non-existing internal package
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions/pom:Import-Package"
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions" "<Import-Package>javax.swing;resolution:=optional,org.fusesource.jansi,!org.fusesource.jansi.internal</Import-Package>"

# Be sure to export jline.internal, but not org.fusesource.jansi.
# See https://bugzilla.redhat.com/show_bug.cgi?id=1317551
%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution/pom:configuration/pom:instructions/pom:Export-Package" "jline.*;-noimport:=true"

# For some reason these directories do not exist, failing compilation due to -Werror
mkdir -p target/generated-sources/annotations
mkdir -p target/generated-test-sources/test-annotations

# nondeterministic
find -name TerminalFactoryTest.java -delete

%mvn_file :jline jline/jline jline2

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13563 |21mr|jline3-3.1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without test

Name:             jline3
Version:          3.1.3
Release:          6
Summary:          JLine is a Java library for handling console input
License:          BSD
URL:              https://github.com/jline/jline3
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          https://github.com/jline/jline3/archive/jline-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.googlecode.juniversalchardet:juniversalchardet)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java.dev.jna:jna)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.fusesource.jansi:jansi)
BuildRequires:  mvn(org.powermock:powermock-api-easymock)
BuildRequires:  mvn(org.powermock:powermock-module-junit4)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
JLine is a Java library for handling console input. It is similar
in functionality to BSD editline and GNU readline. People familiar
with the readline/editline capabilities for modern shells (such as
bash and tcsh) will find most of the command editing features of
JLine to be familiar.

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jline3-jline-%{version}

# Disable -Werror
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:compilerArgs/pom:arg[child::text() = '-Werror']"

%build
%mvn_build %{?with_test: -f}

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc

%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13564 |21mr|jmatio-1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 9329195b310dd861e97b9655173b4aa564de05dc

Name:          jmatio
Version:       1.1
Release:       11
Summary:       Java Matlab IO library
Group:         Development/Java
License:       BSD
URL:           https://sourceforge.net/projects/jmatio/
Source0:       https://github.com/gradusnikov/jmatio/archive/%{githash}.zip
BuildRequires: mvn(junit:junit)
BuildRequires: maven-local
BuildRequires: /usr/bin/perl
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Matlab's MAT-file I/O API in Java.
Supports Matlab 5 MAT-file format
reading and writing.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}

# fix non ASCII chars
for s in src/main/java/com/jmatio/types/MLSparse.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

# fix eol
%{__perl} -pi -e 's/\r$//g' LICENSE.txt README_old.txt

%build

%mvn_file :%{name} %{name}
%mvn_alias com.imaginglaboratory:%{name} net.sourceforge.%{name}:%{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md README_old.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13565 |21mr|jmdns-3.4.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jmdns
Version:        3.4.1
Release:        17
Summary:        Java implementation of multi-cast DNS

# The project was originally developed under the GNU
# Lesser General Public License. It was later moved to Sourceforge
# and re-released under the Apache License, Version 2.0.
# See NOTICE.txt for more details
License:        ASL 2.0 and LGPLv2+
URL:            http://jmdns.sourceforge.net/
# sh create-tarball.sh
Source0:        %{name}-%{version}.tar.gz
Source1:        create-tarball.sh
# faster (unclean) shutdown, used by Jenkins
# https://github.com/jenkinsci/jmdns/commit/4d56e6f0f0c230b14f1353252ae3d42ff7a5b27c
Patch0:         0001-added-an-unclean-shut-down-that-s-a-whole-lot-faster.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JmDNS is a Java implementation of multi-cast DNS
and can be used for service registration and discovery
in local area networks. JmDNS is fully compatible
with Apple's Bonjour.

%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-%{version}

%patch0 -p1

# Fix FSF address
sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," \
  src/sample/java/samples/DiscoverServiceTypes.java LICENSE-LGPL.txt

chmod -x README.txt LICENSE-LGPL.txt
sed -i 's/\r//' LICENSE-LGPL.txt

# Remove duplicate jar execution
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions"

%mvn_alias : "org.jenkins-ci:jmdns"

%build
# Tests are disabled because they try to use network
%mvn_build -f

%install
%mvn_install


%files -f .mfiles
%license LICENSE LICENSE-LGPL.txt NOTICE.txt
%doc README.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE LICENSE-LGPL.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13566 |21mr|jmh-1.13-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global hghash 7ff584954008
Name:          jmh
Version:       1.13
Release:       8
Summary:       Java Microbenchmark Harness
License:       GPLv2 with exceptions
URL:           http://openjdk.java.net/projects/code-tools/jmh/
Source0:       http://hg.openjdk.java.net/code-tools/jmh/archive/%{hghash}.tar.bz2

# Patch for jopt-simple >= 5
Patch0: jopt-simple.patch

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.jopt-simple:jopt-simple) >= 5
BuildRequires: mvn(org.apache.commons:commons-math3)
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin)
BuildRequires: mvn(org.ow2.asm:asm)
Requires: mvn(net.sf.jopt-simple:jopt-simple) >= 5

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The JMH is a Java harness for building, running, and analysing
nano/micro/macro benchmarks written in Java and other languages
targeting the JVM.

%package core-benchmarks
Summary:       JMH Core Benchmarks

%description core-benchmarks
JMH Core Benchmarks.

%package generator-annprocess
Summary:       JMH Generators: Annotation Processors

%description generator-annprocess
JMH benchmark generator, based on annotation processors.

%package generator-asm
Summary:       JMH Generators: ASM

%description generator-asm
JMH benchmark generator, based on ASM bytecode manipulation.

%package generator-bytecode
Summary:       JMH Generators: Bytecode

%description generator-bytecode
JMH benchmark generator, based on byte-code inspection.

%package generator-reflection
Summary:       JMH Generators: Reflection

%description generator-reflection
JMH benchmark generator, based on reflection.

%package parent
Summary:       Java Microbenchmark Harness Parent POM

%description parent
Java Microbenchmark Harness Parent POM.

%package samples
Summary:       JMH Samples
# BSD jmh-samples/src/main/java/*
License:       BSD

%description samples
JMH Samples.

%package javadoc
Summary:       Javadoc for %{name}
License:       BSD and GPLv2 with exceptions

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{hghash}
%patch0 -p1

%pom_disable_module %{name}-archetypes
%pom_disable_module %{name}-core-ct
%pom_disable_module %{name}-core-it

# Plugins unnecessary for RPM builds
%pom_remove_plugin -r :maven-eclipse-plugin
%pom_remove_plugin -r :maven-license-plugin
%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-javadoc-plugin

# wagon-ssh
%pom_xpath_remove "pom:build/pom:extensions" %{name}-core

# textTest_ROOT:218->test:134->compare:115 Mismatch expected:<...thrpt ...
rm -r %{name}-core/src/test/java/org/openjdk/jmh/results/format/ResultFormatTest.java

# Fix non ASCII chars
for s in $(find %{name}-samples -name "*.java") \
 %{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/tests/BlackholeConsumeCPUTest.java \
 %{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/tests/BlackholeConsecutiveTest.java \
 %{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/tests/BlackholeSingleTest.java \
 %{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/tests/BlackholePipelinedTest.java \
 %{name}-core-benchmarks/src/main/java/org/openjdk/jmh/validation/IterationScoresFormatter.java ;do
  native2ascii -encoding UTF8 ${s} ${s}
done

# http://mail.openjdk.java.net/pipermail/jmh-dev/2015-August/001997.html
sed -i "s,59,51,;s,Temple Place,Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," src/license/gpl_cpe/license.txt

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}-core
%license %{name}-core/LICENSE

%files core-benchmarks -f .mfiles-%{name}-core-benchmarks
%license %{name}-core-benchmarks/LICENSE

%files generator-annprocess -f .mfiles-%{name}-generator-annprocess
%license %{name}-generator-annprocess/LICENSE

%files generator-asm -f .mfiles-%{name}-generator-asm
%license %{name}-generator-asm/LICENSE

%files generator-bytecode -f .mfiles-%{name}-generator-bytecode
%license %{name}-generator-bytecode/LICENSE

%files generator-reflection -f .mfiles-%{name}-generator-reflection
%license %{name}-generator-reflection/LICENSE

%files parent -f .mfiles-%{name}-parent
%license LICENSE src/license/*

%files samples -f .mfiles-%{name}-samples
%license %{name}-samples/LICENSE src/license/bsd/*

%files javadoc -f .mfiles-javadoc
%license LICENSE src/license/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13567 |21mr|jmock-2.8.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}

Name:          jmock
Version:       2.8.2
Release:       8
Summary:       Java library for testing code with mock objects
License:       BSD
Group:         Development/Java
Url:           http://www.jmock.org/
Source0:       https://github.com/jmock-developers/jmock-library/archive/%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.beanshell:bsh)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.objenesis:objenesis)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Mock objects help you design and test the interactions between the objects in
your programs.
The jMock library:
  * makes it quick and easy to define mock objects, so you don't break the
    rhythm of programming.
  * lets you precisely specify the interactions between your objects, reducing
    the brittleness of your tests.
  * works well with the auto-completion and re-factoring features of your IDE
  * plugs into your favorite test framework
  * is easy to extend.

%package example
Summary:       jMock Examples

%description example
jMock Examples.

%package junit3
Summary:       jMock JUnit 3 Integration

%description junit3
jMock JUnit 3 Integration.

%package junit4
Summary:       jMock JUnit 4 Integration

%description junit4
jMock JUnit 4 Integration.

%package legacy
Summary:       jMock Legacy Plugins

%description legacy
Plugins that make it easier to use jMock with legacy code.

%package parent
Summary:       jMock Parent POM

%description parent
jMock Parent POM.

%package testjar
Summary:       jMock Test Jar

%description testjar
Source for JAR files used in jMock Core tests.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-library-%{namedversion}

%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%pom_remove_plugin :maven-gpg-plugin testjar

%pom_change_dep cglib: :cglib
%pom_change_dep cglib: :cglib %{name}

sed -i "s|%classpath|$(build-classpath objectweb-asm/asm)|" %{name}/pom.xml

%pom_xpath_remove pom:build %{name}-example
%pom_xpath_inject "pom:project" "
<build>
  <sourceDirectory>src/main</sourceDirectory>
</build>" %{name}-example
# package org.jmock.integration.junit{3,4} do not exist
%pom_add_dep org.%{name}:%{name}-junit3:'${project.version}' %{name}-example
%pom_add_dep org.%{name}:%{name}-junit4:'${project.version}' %{name}-example

%mvn_alias org.%{name}:%{name} :%{name}-script
%mvn_package org.%{name}:%{name}::tests: %{name}
%mvn_package org.%{name}:%{name}-junit3::tests: %{name}-junit3
# AssertionError: Expected: (null or an empty string) but: was "the Mockery is not thread-safe: use a Synchroniser to ensure thread safety"
rm jmock-legacy/src/test/java/org/jmock/test/acceptance/MockeryFinalizationAcceptanceTests.java

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README*
%license LICENSE.txt

%files example -f .mfiles-%{name}-example
%files junit3 -f .mfiles-%{name}-junit3
%files junit4 -f .mfiles-%{name}-junit4
%files legacy -f .mfiles-%{name}-legacy

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt

%files testjar -f .mfiles-%{name}-testjar
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13568 |21mr|jmxutils-1.19-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jmxutils
Version:       1.19
Release:       7
Summary:       JMX MBean Utilities
# https://github.com/martint/jmxutils/issues/35
License:       ASL 2.0
URL:           https://github.com/martint/jmxutils/
Source0:       https://github.com/martint/jmxutils/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.google.inject:guice)
BuildRequires: mvn(com.google.inject.extensions:extensions-parent:pom:)
BuildRequires: mvn(com.google.inject.extensions:guice-multibindings)
BuildRequires: mvn(com.thoughtworks.paranamer:paranamer)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Collection of generic utility methods to support JMX MBean.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.class" -delete
find . -name "*.jar" -type f -delete

# Unneeded task
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-source-plugin
# Disable guava, and paranamer copy
%pom_remove_plugin :maven-shade-plugin

# java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter
%pom_add_dep cglib:cglib:3.1:test

%mvn_file org.weakref:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGES README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13569 |21mr|jna-5.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Allow conditionally building without the reflections library
%bcond_without reflections
%define _disable_ld_no_undefined 1

Name:           jna
Version:        5.4.0
Release:        1
Summary:        Pure Java access to native libraries
# Most of code is dual-licensed under either LGPL 2.1+ only or Apache
# License 2.0.  WeakIdentityHashMap.java was taken from Apache CXF,
# which is pure Apache License 2.0.
License:        (LGPLv2+ or ASL 2.0) and ASL 2.0
Group:          Development/Java
URL:            https://github.com/java-native-access/jna/
# ./generate-tarball.sh
Source0:        %{name}-%{version}-clean.tar.xz
Source1:        package-list
Source2:        generate-tarball.sh

Patch0:         0001-Adapt-build.patch
# This patch is Fedora-specific for now until we get the huge
# JNI library location mess sorted upstream
Patch1:         0002-Load-system-library.patch
# The X11 tests currently segfault; overall I think the X11 JNA stuff is just a
# Really Bad Idea, for relying on AWT internals, using the X11 API at all,
# and using a complex API like X11 through JNA just increases the potential
# for problems.
Patch2:         0003-Tests-headless.patch
# Adds --allow-script-in-comments arg to javadoc to avoid error
Patch3:         0004-Fix-javadoc-build.patch
# Avoid generating duplicate manifest entry
# See https://bugzilla.redhat.com/show_bug.cgi?id=1469022
Patch4:         0005-Fix-duplicate-manifest-entry.patch
# We don't want newly added warnings to break our build
Patch5:         0006-Remove-Werror.patch

# We manually require libffi because find-requires doesn't work
# inside jars.
Requires:       libffi
BuildRequires:  gcc
BuildRequires:  make
BuildRequires:  javapackages-local
BuildRequires:  pkgconfig(libffi)
BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  junit
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xt)
%if %{with reflections}
BuildRequires:  reflections
%endif

%ifarch %{arm}
# Speed up builds on 32bit arm
BuildRequires: java-1.8.0-openjdk-aarch32-devel
%endif

%description
JNA provides Java programs easy access to native shared libraries
(DLLs on Windows) without writing anything but Java code. JNA's
design aims to provide native access in a natural way with a
minimum of effort. No boilerplate or generated code is required.
While some attention is paid to performance, correctness and ease
of use take priority.

%package        javadoc
Summary:        Javadocs for %{name}
BuildArch:      noarch

%description    javadoc
This package contains the javadocs for %{name}.

%package        contrib
Summary:        Contrib for %{name}
License:        LGPLv2+ or ASL 2.0
Requires:       %{name} = %{version}-%{release}
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description    contrib
This package contains the contributed examples for %{name}.


%prep
%setup -q
cp %{SOURCE1} .
%patch0 -p1 -b .build
%patch1 -p1 -b .loadlib
%patch2 -p1 -b .tests-headless
%patch3 -p1
%patch4 -p1
%patch5 -p1

chmod -Rf a+rX,u+w,g-w,o-w .
sed -i 's|@LIBDIR@|%{_libdir}/%{name}|' src/com/sun/jna/Native.java

# clean LICENSE.txt
sed -i 's/\r//' LICENSE

chmod -c 0644 LICENSE OTHERS CHANGES.md

%if %{with reflections}
sed s,'<include name="junit.jar"/>,&<include name="reflections.jar"/>,' -i build.xml
build-jar-repository -s -p lib junit reflections
%else
build-jar-repository -s -p lib junit
rm test/com/sun/jna/StructureFieldOrderInspector.java
rm test/com/sun/jna/StructureFieldOrderInspectorTest.java
rm contrib/platform/test/com/sun/jna/platform/StructureFieldOrderTest.java
%endif
ln -s $(xmvn-resolve ant:ant:1.10.5) lib/ant.jar

cp lib/native/aix-ppc64.jar lib/clover.jar


%build
# Ensure we get the jit on arm
%ifarch %{arm}
export JAVA_HOME=$(ls -d %{_jvmdir}/java-1.8.0-openjdk-aarch32*)
%else
export JAVA_HOME=%{_jvmdir}/java
%endif

# We pass -Ddynlink.native which comes from our patch because
# upstream doesn't want to default to dynamic linking.
# -Drelease removes the .SNAPSHOT suffix from maven artifact names
#ant -Dcflags_extra.native="%{optflags}" -Ddynlink.native=true native compile javadoc jar contrib-jars
ant -Drelease -Dcompatibility=1.6 -Dplatform.compatibility=1.6\
 -Dcflags_extra.native="%{optflags}" -Ddynlink.native=true native dist
# remove compiled contribs
find contrib -name build -exec rm -rf {} \; || :


%install
# NOTE: JNA has highly custom code to look for native jars in this
# directory.  Since this roughly matches the jpackage guidelines,
# we'll leave it unchanged.
install -d -m 755 %{buildroot}%{_libdir}/%{name}
install -m 755 build/native*/libjnidispatch*.so %{buildroot}%{_libdir}/%{name}/

%mvn_file :jna jna jna/jna %{_javadir}/jna

%mvn_package :jna-platform contrib
%mvn_alias :jna-platform :platform

%mvn_artifact pom-jna.xml build/jna-min.jar
%mvn_artifact pom-jna-platform.xml contrib/platform/dist/jna-platform.jar

%mvn_install -J doc/javadoc


%files -f .mfiles
%doc OTHERS README.md CHANGES.md TODO
%license LICENSE LGPL2.1 AL2.0
%{_libdir}/%{name}

%files javadoc -f .mfiles-javadoc
%license LICENSE LGPL2.1 AL2.0

%files contrib -f .mfiles-contrib



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13570 |21mr|jnr-constants-0.9.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jnr-constants
Version:        0.9.12
Release:        3
Summary:        Java Native Runtime constants 
License:        ASL 2.0
URL:            https://github.com/jnr/%{name}/
Source0:        https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Provides java values for common platform C constants (e.g. errno).

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
find ./ -name '*.jar' -delete
find ./ -name '*.class' -delete
%mvn_file : %{name}/%{name} %{name} constantine

# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE

%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13571 |21mr|jnr-enxio-0.19-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jnr-enxio
Version:        0.19
Release:        3
Summary:        Unix sockets for Java
# src/main/java/jnr/enxio/channels/PollSelectionKey.java is LGPLv3
# rest of the source code is ASL 2.0
License:        ASL 2.0 and LGPLv3
URL:            https://github.com/jnr/%{name}/
Source0:        https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz

# Avoid split-package situation, this patch submitted upstream here: https://github.com/jnr/jnr-enxio/pull/26
Patch0: 0001-Add-enxio-classes-from-jnr-unixsocket.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.github.jnr:jnr-constants)
BuildRequires:  mvn(com.github.jnr:jnr-ffi)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Unix sockets for Java.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0 -p1

find ./ -name '*.jar' -delete
find ./ -name '*.class' -delete

# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13572 |21mr|jnr-ffi-2.1.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:     jnr-ffi
Version:  2.1.8
Release:  4
Summary:  Java Abstracted Foreign Function Layer
License:  ASL 2.0
URL:      http://github.com/jnr/%{name}/
Source0:  https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz

BuildRequires:  gcc
BuildRequires:  make

BuildRequires:  maven-local
BuildRequires:  mvn(com.github.jnr:jffi)
BuildRequires:  mvn(com.github.jnr:jffi::native:)
BuildRequires:  mvn(com.github.jnr:jnr-x86asm)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-analysis)
BuildRequires:  mvn(org.ow2.asm:asm-commons)
BuildRequires:  mvn(org.ow2.asm:asm-tree)
BuildRequires:  mvn(org.ow2.asm:asm-util)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# don't obsolete/provide jaffl, gradle is using both jaffl and jnr-ffi...

%description
An abstracted interface to invoking native functions from java

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# remove all builtin jars
find -name '*.jar' -o -name '*.class' -exec rm -f '{}' \;

# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"

# don't fail on unused parameters... (TODO: send patch upstream)
sed -i 's|-Werror||' libtest/GNUmakefile

%build
%mvn_build -f -- -Dasm.version=7.0

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13573 |21mr|jnr-netdb-1.1.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    jnr-netdb
Version: 1.1.6
Release: 6
Summary: Network services database access for java
License: ASL 2.0
URL:     https://github.com/jnr/%{name}/
Source0: https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.github.jnr:jnr-ffi)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
jnr-netdb is a java interface to getservbyname(3), getservbyport(3)

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

find ./ -name '*.jar' -exec rm -f '{}' \; 
find ./ -name '*.class' -exec rm -f '{}' \; 

%build
%mvn_build -f

%install
%mvn_install

%files  -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13574 |21mr|jnr-posix-3.0.47-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jnr-posix
Version:        3.0.47
Release:        3
Summary:        Java Posix layer
License:        CPL or GPLv2+ or LGPLv2+
URL:            http://github.com/jnr/jnr-posix
Source0:        https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.github.jnr:jnr-constants)
BuildRequires:  mvn(com.github.jnr:jnr-ffi)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
jnr-posix is a lightweight cross-platform POSIX emulation layer for Java, 
written in Java and is part of the JNR project 

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# fix test which assumes that there is a group named "nogroup"
sed -i 's|"nogroup"|"root"|' src/test/java/jnr/posix/GroupTest.java

# Remove useless wagon extension.
%pom_xpath_remove "pom:build/pom:extensions"

# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13575 |21mr|jnr-unixsocket-0.21-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jnr-unixsocket
Version:        0.21
Release:        3
Summary:        Unix sockets for Java
License:        ASL 2.0
URL:            https://github.com/jnr/%{name}/
Source0:        https://github.com/jnr/%{name}/archive/%{name}-%{version}.tar.gz
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
BuildRequires:  maven-local
BuildRequires:  mvn(com.github.jnr:jnr-constants)
BuildRequires:  mvn(com.github.jnr:jnr-enxio)
BuildRequires:  mvn(com.github.jnr:jnr-ffi)
BuildRequires:  mvn(com.github.jnr:jnr-posix)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Unix sockets for Java.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

find ./ -name '*.jar' -delete
find ./ -name '*.class' -delete

# remove unnecessary wagon extension
%pom_xpath_remove pom:build/pom:extensions

# Unnecessary for RPM builds
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :maven-javadoc-plugin

# Can't run integration tests
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :exec-maven-plugin

# Remove enxio classes to avoid OSGi split-package problems,
# see https://github.com/jnr/jnr-unixsocket/pull/41
rm -r src/main/java/jnr/enxio

# Fix jar plugin usage
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions"

%build
# Tests fails on some arches
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README.md

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13576 |21mr|jnr-x86asm-1.0.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit_hash 1dead92
%global tag_hash 2a7fb9b

Name:           jnr-x86asm
Version:        1.0.2
Release:        17
Summary:        Pure-java port of asmjit

License:        MIT
URL:            https://github.com/jnr/%{name}/
Source0:        https://github.com/jnr/%{name}/tarball/%{version}/jnr-%{name}-%{version}-0-g%{commit_hash}.tar.gz
Source1:        MANIFEST.MF
Patch0:         add-manifest.patch
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Pure-java port of asmjit (http://code.google.com/p/asmjit/)

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q -n jnr-%{name}-%{tag_hash}
%patch0
cp %{SOURCE1} .
find ./ -name '*.jar' -delete
find ./ -name '*.class' -delete

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13577 |21mr|joda-convert-1.9.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           joda-convert
Version:        1.9.2
Release:        5
Summary:        Java library for conversion to and from standard string formats
License:        ASL 2.0
Group:          Development/Java
URL:            https://github.com/JodaOrg/joda-convert/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/JodaOrg/joda-convert/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)

%description
Java library to enable conversion to and from standard string formats.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the %{summary}.

%prep
%setup -q
%mvn_file : %{name}
sed -i s/\r// *.txt

%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt RELEASE-NOTES.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13578 |21mr|joda-time-2.9.9-5.tzdata2017b
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tzversion tzdata2017b

Name:             joda-time
Version:          2.9.9
Release:          5.%{tzversion}
Summary:          Java date and time API

License:          ASL 2.0
URL:              http://www.joda.org/joda-time/
Source0:          https://github.com/JodaOrg/%{name}/archive/v%{version}.tar.gz
Source1:          ftp://ftp.iana.org/tz/releases/%{tzversion}.tar.gz
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.velocity:velocity)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.joda:joda-convert)


%description
Joda-Time provides a quality replacement for the Java date and time classes. The
design allows for multiple calendar systems, while still providing a simple API.
The 'default' calendar is the ISO8601 standard which is used by XML. The
Gregorian, Julian, Buddhist, Coptic, Ethiopic and Islamic systems are also
included, and we welcome further additions. Supporting classes include time
zone, duration, format and parsing.


%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q

sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' NOTICE.txt
sed -i 's/\r//' RELEASE-NOTES.txt

# all java binaries must be removed from the sources
find . -name '*.jar' -exec rm -f '{}' \;

# replace internal tzdata
rm -f src/main/java/org/joda/time/tz/src/*
tar -xzf %{SOURCE1} -C src/main/java/org/joda/time/tz/src/

# compat filename
%mvn_file : %{name}

# javadoc generation fails due to strict doclint in JDK 8
%pom_remove_plugin :maven-javadoc-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt RELEASE-NOTES.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13579 |21mr|jogl-1.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Java bindings for the OpenGL API
Name:		jogl
Version:	1.1.1
Release:	6
Group:		Development/Java
License:	BSD
URL:		http://jogl.dev.java.net/
# svn co https://svn.java.net/svn/jogl~svn/branches/1.x-maint jogl-1.1.1
Source0:	%{name}-%{version}.tar.bz2
# match gluegen package
# svn co https://svn.java.net/svn/gluegen~svn/branches/1.0b06-maint gluegen-1.0b06
Source1:	gluegen-1.0b06.tar.bz2
Source2:	jogl.properties
Patch0:		%{name}-1.1.1-src-no-link-against-sun-java.patch
# http://pkgs.fedoraproject.org/gitweb/?p=gluegen.git;a=blob;f=fix-antlr-classpath.patch
Patch1:		fix-antlr-classpath.patch
BuildRequires:	ant
BuildRequires:	ant-antlr
BuildRequires:	antlr
BuildRequires:	jpackage-utils
BuildRequires:	mesa-common-devel
BuildRequires:	java-rpmbuild
BuildRequires:	unzip
BuildRequires:	update-alternatives
BuildRequires:	xml-commons-apis
BuildRequires:	cpptasks
BuildRequires:	pkgconfig(xt)
Requires:	java >= 1.5

# Java stack is not supported on x86_32
ExcludeArch: %{ix86} %arm64

%description 
The JOGL Project hosts a reference implementation of the Java bindings for
OpenGL API, and is designed to provide hardware-supported 3D graphics to
applications written in the Java programming language.

It is part of a suite of open-source technologies initiated bu the Game
Technology Group at Sun Microsystems.

JOGL provides full access to the APIs in the OpenGL 1.5 specification as
well as nearly all vendor extensions, and integrated with the AWT and Swing
widget sets.

%package javadoc
Summary:	Javadoc for jogl
Group:		Development/Java

%description javadoc
Javadoc for jogl.

%package manual
Summary:	User documetation for jogl
Group:		Development/Java

%description manual
Usermanual for jogl.


%prep
%setup -q -b 1
ln -sf gluegen-1.0b06 ../gluegen
pushd make
%patch0 -p0
popd
pushd ../gluegen-1.0b06
%patch1 -p1
popd

cp %{SOURCE2} make

%build
export OPT_JAR_LIST="antlr ant/antlr"
export CLASSPATH=$(build-classpath antlr ant/ant-antlr)

pushd make
perl -pi -e 's@/usr/X11R6/%{_lib}@%{_libdir}@g' build.xml

%ant \
    -Duser.home=%{_topdir}/SOURCES \
    -Dantlr.jar=$(build-classpath antlr) \
    all \
    javadoc.dev.x11

popd

%install

# jars
install -dm 755 %{buildroot}%{_javadir}
install -m 644 build/%{name}.jar \
	%{buildroot}%{_javadir}/%{name}-%{version}.jar
pushd %{buildroot}%{_javadir}
	for jar in *-%{version}*; do
		ln -sf ${jar} `echo $jar| sed "s|-%{version}||g"`
	done
popd

# native lib
install -dm 755 %{buildroot}%{_libdir}
install -m 644 build/obj/lib*.so \
	%{buildroot}%{_libdir}

# javadoc
install -dm 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr javadoc_jogl_dev/* \
	%{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name} # ghost symlink

%post javadoc
rm -f %{_javadocdir}/%{name}
ln -s %{name}-%{version} %{_javadocdir}/%{name}

%files
%defattr(644,root,root,755)
%{_javadir}/*.jar
%attr(755,root,root) %{_libdir}/libjogl.so
%attr(755,root,root) %{_libdir}/libjogl_awt.so

%files javadoc
%doc %{_javadocdir}/%{name}-%{version}
%ghost %doc %{_javadocdir}/%{name}

%files manual
%doc doc/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13580 |21mr|johnzon-0.9.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with doc

Name:          johnzon
Version:       0.9.4
Release:       7
Summary:       Implementation of JSR-353
License:       ASL 2.0
URL:           http://johnzon.apache.org/
Source0:       http://www.apache.org/dist/johnzon/%{name}-%{version}/apache-%{name}-%{version}-src.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.h2database:h2)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.json:javax.json-api)
BuildRequires: mvn(javax.websocket:javax.websocket-api)
BuildRequires: mvn(javax.ws.rs:javax.ws.rs-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-interceptor_3.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs-parent:pom:)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.openjpa:openjpa-jdbc)
BuildRequires: mvn(org.apache.openjpa:openjpa-lib)
BuildRequires: mvn(org.apache.openjpa:openjpa-persistence)
BuildRequires: mvn(org.apache.openjpa:openjpa-persistence-jdbc)
BuildRequires: mvn(org.apache.openwebbeans:openwebbeans-impl)
BuildRequires: mvn(org.apache.rat:apache-rat-plugin)
BuildRequires: mvn(org.apache.tomcat:tomcat-api)
BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires: mvn(org.jboss.arquillian.junit:arquillian-junit-container)
%if %{with doc}
BuildRequires: /usr/bin/asciidoctor
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Johnzon is a project providing an implementation of JsonProcessing and
a set of useful extension for this specification like an Object mapper,
some JAX-RS providers and a WebSocket module provides a basic integration with
Java WebSocket API (JSR 356).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package jaxrs
Summary:       Johnzon :: JAX-RS

%description jaxrs
Johnzon :: JAX-RS Implementation.

%package jsonb
Summary:       Johnzon :: JSON-B

%description jsonb
Johnzon :: JSON-B Implementation.

%package jsonb-api
Summary:       Johnzon :: JSON-B API

%description jsonb-api
Johnzon :: JSON-B API.

%package mapper
Summary:       Johnzon :: Mapper

%description mapper
Johnzon :: Mapper.

%package maven-plugin
Summary:       Johnzon :: Maven Plugin

%description maven-plugin
Johnzon :: Maven Plugin.

%package parent
Summary:       Johnzon :: Parent POM

%description parent
Johnzon :: Parent POM.

%package websocket
Summary:       Johnzon :: WebSocket

%description websocket
Johnzon :: WebSocket Implementation.

%prep
%setup -q -n apache-%{name}-%{version}-src

%pom_disable_module johnzon-distribution

# Unavailable plugin
%pom_remove_plugin -r :cobertura-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin johnzon-websocket
%pom_remove_plugin -r :coveralls-maven-plugin

# Unneeded tasks
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-scm-publish-plugin
%pom_remove_plugin -r :maven-site-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

# Use glassfish apis
%pom_change_dep -r :geronimo-json_1.0_spec javax.json:javax.json-api:1.0
%pom_change_dep org.apache.tomcat:tomcat-websocket-api javax.websocket:javax.websocket-api:1.1 johnzon-websocket

# Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed:
# The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
sed -i "s|-Xms1024m -Xmx2048m|-Xms512m -Xmx512m|" pom.xml

%pom_change_dep org.apache.openjpa:openjpa org.apache.openjpa:openjpa-persistence johnzon-mapper
%pom_add_dep org.apache.openjpa:openjpa-lib:2.4.0:test johnzon-mapper
%pom_add_dep org.apache.openjpa:openjpa-jdbc:2.4.0:test johnzon-mapper
%pom_add_dep org.apache.openjpa:openjpa-persistence-jdbc:2.4.0:test johnzon-mapper

# Unavailable test deps
# com.github.stefanbirkner:system-rules:1.8.0
%pom_remove_dep com.github.stefanbirkner:system-rules johnzon-mapper
rm johnzon-mapper/src/test/java/org/apache/johnzon/mapper/NoWarningTest.java
# org.apache.tomee:arquillian-tomee-remote:7.0.1
%pom_remove_dep org.apache.tomee:arquillian-tomee-remote johnzon-websocket
rm johnzon-websocket/src/test/java/org/apache/johnzon/websocket/MapperCodecTest.java
# org.apache.tomee:apache-tomee:zip:7.0.1
%pom_remove_dep org.apache.tomee:apache-tomee johnzon-websocket
rm johnzon-websocket/src/test/java/org/apache/johnzon/websocket/JsrCodecTest.java
# org.apache.cxf:3.0.0
%pom_remove_dep -r org.apache.cxf:cxf-rt-rs-client johnzon-jaxrs johnzon-jsonb
%pom_remove_dep -r org.apache.cxf:cxf-rt-frontend-jaxrs johnzon-jaxrs johnzon-jsonb
%pom_remove_dep -r org.apache.cxf:cxf-rt-transports-local johnzon-jaxrs johnzon-jsonb
rm -r johnzon-jaxrs/src/test/java johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/jaxrs/JsonbJaxRsTest.java
# org.apache.tomcat:8.5.3
%pom_remove_dep org.apache.tomcat:tomcat-websocket johnzon-websocket

# Fix test deps
# package javax.ws.rs does not exist
%pom_add_dep javax.ws.rs:javax.ws.rs-api:2.0.1:test johnzon-websocket
%pom_change_dep :geronimo-jcdi_1.1_spec javax.enterprise:cdi-api johnzon-jsonb
%pom_change_dep :geronimo-atinject_1.0_spec javax.inject:javax.inject johnzon-jsonb
%pom_change_dep :geronimo-interceptor_1.2_spec :geronimo-interceptor_3.0_spec johnzon-jsonb

# openwebbeans:1.6.2
# javax.json.stream.JsonGenerationException: Invalid json
rm johnzon-jsonb/src/test/java/org/apache/johnzon/jsonb/CdiAdapterTest.java

# There were errors initializing your configuration:
# <openjpa-2.4.1-runknown fatal user error> org.apache.openjpa.util.UserException:
# A connection could not be obtained for driver class "org.h2.Driver" and
# URL "jdbc:h2:target/h2-3".  You may have specified an invalid URL.
rm johnzon-mapper/src/test/java/org/apache/johnzon/mapper/JPATest.java

%build

%mvn_build -s

%if %{with doc}
# Re-generate documentation
rm MATURITY.html
asciidoctor MATURITY.adoc
%endif

%install
%mvn_install

%files -f .mfiles-johnzon-core
%doc MATURITY.html
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%files jaxrs -f .mfiles-johnzon-jaxrs
%files jsonb -f .mfiles-johnzon-jsonb
%files jsonb-api -f .mfiles-jsonb-api
%license LICENSE NOTICE

%files mapper -f .mfiles-johnzon-mapper
%files maven-plugin -f .mfiles-johnzon-maven-plugin
%files parent -f .mfiles-johnzon
%license LICENSE NOTICE

%files websocket -f .mfiles-johnzon-websocket


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13581 |21mr|joni-2.1.20-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             joni
Version:          2.1.20
Release:          12
Summary:          Java port of Oniguruma regexp library
Group:            Development/Java
License:          MIT
URL:              https://github.com/jruby/%{name}
Source0:          https://github.com/jruby/%{name}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.jruby.jcodings:jcodings)
BuildRequires:  mvn(org.ow2.asm:asm)

BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
joni is a port of Oniguruma, a regular expressions library,
to java. It is used by jruby.

%package javadoc
Summary: API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{name}-%{version}

find -name '*.class' -delete
find -name '*.jar' -delete

%mvn_file : %{name}

# Remove pointless parent pom
%pom_remove_parent

# Remove wagon extension
%pom_xpath_remove "pom:build/pom:extensions"

# Remove plugins not relevant for downstream RPM builds
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

# fixes rpmlint warning about wrong-file-end-of-line-encoding
sed -i -e 's|\r||' test/org/joni/test/TestC.java
sed -i -e 's|\r||' test/org/joni/test/TestU.java
sed -i -e 's|\r||' test/org/joni/test/TestA.java

# Generate OSGi metadata by using bundle packaging
%pom_xpath_set pom:packaging "bundle"
%pom_add_plugin org.apache.felix:maven-bundle-plugin "<extensions>true</extensions>"

%build
# Work around xmvn bug with generating javadoc from modular projects: https://github.com/fedora-java/xmvn/issues/58
# Disable default javadoc generation with -j then generate separately with
# explicit invokation of javadoc mojo without the module definition present
%mvn_build -fj
find -name module-info.java -delete
xmvn --batch-mode --offline org.fedoraproject.xmvn:xmvn-mojo:javadoc

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README.md

%files javadoc -f .mfiles-javadoc

%changelog
* Wed Sep 02 2020 Mat Booth <mat.booth@redhat.com> - 2.1.20-1
- Update to a version that properly supports JDK 9+
- Modernise specfile
- Add OSGi metadata

* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-14
- Second attempt - Rebuilt for
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-13
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 2.1.3-12
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11

* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-11
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Sat Sep 24 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.1.3-4
- Update requires on objectweb-asm

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.3-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1.3-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Mon Jan 05 2015 Mo Morsi <mmorsi@redhat.com> - 2.1.3-1
- Update to 2.1.3

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Fri Mar 28 2014 Michael Simacek <msimacek@redhat.com> - 1.1.9-4
- Use Requires: java-headless rebuild (#1067528)

* Mon Aug 12 2013 Alexander Kurtakov <akurtako@redhat.com> 1.1.9-3
- Start using xmvn.

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.9-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Tue Feb 26 2013 Bohuslav Kabrda <bkabrda@redhat.com> - 1.1.9-1
- Updated to version 1.1.9.
- Switched from ant to maven.

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Tue Oct 09 2012 gil cattaneo <puntogil@libero.it> - 1.1.3-8
- add maven pom
- adapt to current guideline

* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild

* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild

* Mon Feb 22 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.1.3-4
- fixed end of line encoding rpmlint warning
- removed uneccessary deps

* Wed Feb 17 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.1.3-3
- removed gcj bits
- updated package to conform to guidelines based on feedback
- corrected source url

* Fri Jan 22 2010 Mohammed Morsi <mmorsi@redhat.com> - 1.1.3-2
- Unorphaned / updated package

* Fri Mar 6 2009 Conrad Meyer <konrad@tylerc.org> - 1.1.3-1
- Bump to 1.1.3.

* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild

* Fri Dec 12 2008 Conrad Meyer <konrad@tylerc.org> - 1.1.2-1
- Bump to 1.1.2.

* Fri Nov 28 2008 Conrad Meyer <konrad@tylerc.org> - 1.1.1-1
- Bump to 1.1.1.

* Sun Aug 31 2008 Conrad Meyer <konrad@tylerc.org> - 1.0.3-1
- Official 1.0.3 release.

* Sat Jul 19 2008 Conrad Meyer <konrad@tylerc.org> - 1.0.3-0.3.svn7235
- Build AOT bits.

* Sat Jul 19 2008 Conrad Meyer <konrad@tylerc.org> - 1.0.3-0.2.svn7235
- Bump revision because of stupid packager's mistake.

* Sat Jul 19 2008 Conrad Meyer <konrad@tylerc.org> - 1.0.3-0.1.svn7235
- Bump to trunk version of joni for JRuby 1.1.3.
- Switch to noarch for fc10 and up.

* Sat Apr 5 2008 Conrad Meyer <konrad@tylerc.org> - 1.0.2-4
- Compile AOT bits.

* Sun Mar 16 2008 Conrad Meyer <konrad@tylerc.org> - 1.0.2-3
- Bump to 1.0.2.
- Add pom.xml to doc.
- Install unversioned jar.

* Sun Mar 2 2008 Conrad Meyer <konrad@tylerc.org> - 1.0.1-2
- joni is MIT, not BSD.
- Require java and BuildRequire java-devel, not icedtea.

* Sun Mar 2 2008 Conrad Meyer <konrad@tylerc.org> - 1.0.1-1
- Initial package.
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13582 |21mr|jopt-simple-5.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jopt-simple
Version:        5.0.4
Release:        5
Summary:        A Java command line parser
License:        MIT
Group:          Development/Java
URL:            http://jopt-simple.github.io/jopt-simple
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/jopt-simple/jopt-simple/archive/jopt-simple-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
JOpt Simple is a Java library for parsing command line options, such as those
you might pass to an invocation of javac.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jopt-simple-jopt-simple-%{version}

%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_dep org.infinitest:continuous-testing-toolkit
%pom_remove_plugin org.pitest:pitest-maven
%pom_remove_plugin org.codehaus.mojo:cobertura-maven-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-pmd-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin

%build
# Unit testing is disabled due to a missing dependency in Fedora of continuous-testing-toolkit
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13583 |21mr|jose-11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# a2x pulls tones of latex stuff
%bcond_without docs

Summary:	Tools for JSON Object Signing and Encryption (JOSE)
Name:		jose
Version:	11
Release:	1
License:	Apache 2.0
Group:		Networking/Other
Url:		https://github.com/latchset/jose
Source0:	https://github.com/latchset/jose/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	jansson-devel
BuildRequires:	openssl-devel
BuildRequires:	zlib-devel
BuildRequires:	meson
BuildRequires:	asciidoc
BuildRequires:	doxygen
%if %{with docs}
BuildRequires:	%{_bindir}/a2x
%endif
# BRs from fedora spec
BuildRequires:  gcc
BuildRequires:  pkgconfig
BuildRequires:  git-core
BuildRequires:  ninja

Requires:		%{libname}%{_isa} = %{EVRD}

%description
Tools for JSON Object Signing and Encryption (JOSE).
Jose is a command line utility for performing various tasks on JSON
Object Signing and Encryption (JOSE) objects. Jose provides a full
crypto stack including key generation, signing and encryption.

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%if %{with docs}
%{_mandir}/man1/jose*.1*
%endif

#------------------------------------------------------------------

%package -n %{libname}
Summary:	C library for performing JOSE operations
Group:		System/Libraries

%description -n %{libname}
This package contains a C library for performing JOSE operations.

%files -n %{libname}
%license COPYING
%doc README.md
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	libjose development files
Group:		Development/C
Requires:	%{libname}%{_isa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libjose (C library for performing JOSE operations) development files.

%files -n %{devname}
%license COPYING
%doc README.md
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/jose*.3*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13584 |21mr|jq-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Command-line JSON processor
Name:		jq
Version:	1.6
Release:	1
License:	MIT
Group:		Development/Tools
Url:		https://github.com/stedolan/jq
Source0:	https://github.com/stedolan/jq/archive/jq-%{version}.tar.gz
BuildRequires: onig-devel

%description
Command-line JSON processor.

%files
%{_bindir}/%{name}
%dir %{_docdir}/jq
%{_docdir}/jq/*
%{_mandir}/man1/jq.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libjq.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libjq.so
%{_includedir}/jq.h
%{_includedir}/jv.h

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

%build
%config_update
%configure \
	--disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13585 |21mr|jredis-2.0.0-0.8.a.0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 0eed7931ea0aa827fe74dfa808467c16e12d6e96

Name:          jredis
# This release is compatible with newer Redis release
Version:       2.0.0
Release:       0.8.a.0
Summary:       Java Client and Connectors for Redis
License:       ASL 2.0
# https://code.google.com/p/jredis/
URL:           https://github.com/alphazero/jredis
Source0:       https://github.com/alphazero/jredis/archive/%{githash}/%{name}-%{githash}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JRedis is a high-performance Java client and connector framework and
reference implementation for Redis distributed hash key-value
database. It will provide both synchronous clients and asynchronous
connections for Redis. The connectors will be both passive
(non-threaded) and active, to address deployment scenarios and
usage requirements.

This package contains JRedis Parent POM.

%package core
Summary:       JRedis Core Parent POM

%description core
The Core module is composed of all the core elements that
are used to create JRedis clients and connectors for the
Redis server.  

This includes: 

- the specification (API),
- the reference implementation (RI),
- the benchmark module (BENCH)

This package contains JRedis Core Parent POM.

%package core-api
Summary:       JRedis Core API

%description core-api
JRedis Core Specification API.

%package core-bench
Summary:       JRedis Benchmark Module

%description core-bench
JRedis Benchmark Module.

%package core-ri
Summary:       JRedis Core RI

%description core-ri
JRedis Core Reference Implementation.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
find . -name "*.class" -delete
find . -name "*.jar" -delete

%pom_disable_module examples
%pom_disable_module all core
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin -r :maven-assembly-plugin

%pom_xpath_set -r "pom:dependency[pom:artifactId = 'log4j']/pom:version" 1.2.17

%build

# Test suite disabled, because use web connection
%mvn_build -s -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}
%doc documentation/design/*
%license LICENSE NOTICE

%files core -f .mfiles-%{name}-core
%doc core/README
%license core/LICENSE core/NOTICE

%files core-api -f .mfiles-%{name}-core-api
%doc README RELEASE-NOTES.txt
%license core/api/LICENSE core/api/NOTICE

%files core-bench -f .mfiles-%{name}-core-bench
%license core/bench/LICENSE core/bench/NOTICE

%files core-ri -f .mfiles-%{name}-core-ri
%license core/ri/LICENSE core/ri/NOTICE
 
%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13586 |21mr|jruby-1.7.22-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%global jruby_vendordir %{_datadir}/%{name}/lib
%global jruby_sitedir %{_prefix}/local/share/%{name}/lib
%global rubygems_dir %{_datadir}/rubygems

Name:           jruby
Version:        1.7.22
Release:        11
Summary:        Pure Java implementation of the Ruby interpreter
# (CPL or GPLv2+ or LGPLv2+) - JRuby itself
# BSD - some files under lib/ruby/shared
# (GPLv2 or Ruby) - Ruby 1.8 stdlib
# (BSD or Ruby) - Ruby 1.9 stdlib
License:        (CPL or GPLv2+ or LGPLv2+) and BSD and (GPLv2 or Ruby) and (BSD or Ruby)
URL:            http://jruby.org
Source0:        http://jruby.org.s3.amazonaws.com/downloads/%{version}/%{name}-src-%{version}.tar.gz

# Adds all the required jars to boot classpath
Patch0:         jruby-add-classpath-to-start-script.patch
# Adds $FEDORA_JAVA_OPTS, that is dynamically replaced by Fedora specific paths from the specfile
# This way we can use macros for the actual locations and not hardcode them in the patch
Patch1:         jruby-executable-add-fedora-java-opts-stub.patch
# upstream jline JAR bundles jansi, we need to include it explicitly in Fedora
Patch2:         jruby-include-unbundled-jansi.patch
# We don't want any directories defined by JRuby, everything is taken from Fedora's rubygems
Patch3:         jruby-remove-rubygems-dirs-definition.patch
# Port to latest snakeyaml
# TODO: rebase for JRuby 9000 master and send upstream
Patch4:         jruby-snakeyaml-1.16.patch
Patch5:         jruby-snakeyaml-1.20.patch

# BRs generated automatically using xmvn-builddep, sanitized manually
BuildRequires:  maven-local
BuildRequires:  mvn(bsf:bsf)
BuildRequires:  mvn(com.github.jnr:jffi)
BuildRequires:  mvn(com.github.jnr:jffi::native:)
BuildRequires:  mvn(com.github.jnr:jnr-constants)
BuildRequires:  mvn(com.github.jnr:jnr-enxio)
BuildRequires:  mvn(com.github.jnr:jnr-ffi)
BuildRequires:  mvn(com.github.jnr:jnr-netdb)
BuildRequires:  mvn(com.github.jnr:jnr-posix)
BuildRequires:  mvn(com.github.jnr:jnr-unixsocket)
BuildRequires:  mvn(com.github.jnr:jnr-x86asm)
BuildRequires:  mvn(com.headius:coro-mock)
BuildRequires:  mvn(com.headius:invokebinder)
BuildRequires:  mvn(com.headius:options)
BuildRequires:  mvn(com.jcraft:jzlib)
BuildRequires:  mvn(com.martiansoftware:nailgun-server)
BuildRequires:  mvn(jline:jline)
BuildRequires:  mvn(joda-time:joda-time)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.framework)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:properties-maven-plugin)
BuildRequires:  mvn(org.jruby.extras:bytelist)
BuildRequires:  mvn(org.jruby.jcodings:jcodings)
BuildRequires:  mvn(org.jruby.joni:joni)
BuildRequires:  mvn(org.jruby:yecht)
BuildRequires:  mvn(org.osgi:org.osgi.core)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-analysis)
BuildRequires:  mvn(org.ow2.asm:asm-commons)
BuildRequires:  mvn(org.ow2.asm:asm-util)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  mvn(org.yaml:snakeyaml)
BuildRequires:  git-core
# unavailable now, see: https://bugzilla.redhat.com/show_bug.cgi?id=1152246
#BuildRequires: joda-timezones

Provides:       ruby(release) = 1.9.3
Provides:       ruby(release) = 1.8.7
# For rubypick
Provides:       ruby(runtime_executable)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
# yecht is in a separate package now
Obsoletes:      %{name}-yecht < %{version}-%{release}

%description
JRuby is a 100% Java implementation of the Ruby programming language.
It is Ruby for the JVM. JRuby provides a complete set of core "builtin"
classes and syntax for the Ruby language, as well as most of the Ruby
Standard Libraries.

%package        devel
Summary:        JRuby development environment
Requires:       %{name} = %{version}-%{release}

%description    devel
Macros for building JRuby-specific libraries.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

# delete windows specific files
find -name "*.exe" -delete
find -name "*.dll" -delete

# delete all vcs files
find -name ".gitignore" -delete
find -name ".cvsignore" -delete

# remove hidden .document files
find lib/ruby/ -name "*.document" -delete

# lib/ruby scripts shouldn't contain shebangs as they are not executable on their own
find lib/ruby/ -name "*.rb" -exec sed --in-place "s|^#!/usr/local/bin/ruby||" '{}' \;
find lib/ruby/ -name "*.rb" -exec sed --in-place "s|^#!/usr/bin/env ruby||" '{}' \;

# FIXME: remove when joda-timezones pkg is available in Fedora
%pom_remove_dep org.jruby:joda-timezones core

# work around "error: package org.osgi.framework.wiring does not exist"
%pom_add_dep org.apache.felix:org.apache.felix.framework core

# JDK8 should provide these
%pom_remove_dep com.headius:unsafe-mock core
%pom_remove_dep com.headius:jsr292-mock core

# do not bundle jffi-native
%pom_remove_plugin :maven-dependency-plugin core

# we don't have this plugin in fedora
%pom_remove_plugin :tesla-polyglot-maven-plugin lib

# a lot of missing "gem" artifacts, skip them for now
%pom_xpath_remove 'pom:dependencies' lib

# do not bundle other JARs inside jruby.jar
%pom_remove_plugin :maven-shade-plugin core

# generate Requires on jline dependency
%pom_xpath_replace 'pom:dependency[pom:artifactId[text()="jline"]]/pom:scope' '<scope>compile</scope>' ext/readline

# install JARs to %%{_javadir}/%%{name} and symlink them to %%{jruby_vendordir}
%mvn_file :{jruby-core}:jar:: %{name}/@1 %{jruby_vendordir}/%{name}
%mvn_file :{ripper}:jar:: %{name}/@1 %{jruby_vendordir}/ruby/shared/@1
%mvn_file :{readline}:jar:: %{name}/@1 %{jruby_vendordir}/ruby/shared/readline/@1

# TODO: build proper org.jruby:jruby artifact
%mvn_alias org.jruby:jruby-core org.jruby:jruby

%build
%mvn_build

%install
%mvn_install

install -d -m 755 %{buildroot}%{_datadir}
install -p -d -m 755 %{buildroot}%{_datadir}/%{name}/bin

# stdlib
cp -ar lib/* %{buildroot}%{jruby_vendordir}/

# symlink jffi .so files (this is pretty ugly :/)
install -d -m 755 %{buildroot}%{jruby_vendordir}/jni/{arm-Linux,i386-Linux,x86_64-Linux}
ln -s %{_prefix}/lib/jffi/arm-Linux/libjffi.so %{buildroot}%{jruby_vendordir}/jni/arm-Linux/
ln -s %{_prefix}/lib/jffi/i386-Linux/libjffi.so %{buildroot}%{jruby_vendordir}/jni/i386-Linux/
ln -s %{_prefix}/lib64/jffi/x86_64-Linux/libjffi.so %{buildroot}%{jruby_vendordir}/jni/x86_64-Linux/

# jline in Fedora doesn't bundle jansi, we need to symlink it manually
ln -s `build-classpath jansi/jansi` %{buildroot}%{jruby_vendordir}/ruby/shared/readline/
xmvn-subst %{buildroot}%{jruby_vendordir}/ruby/shared/readline/

# remove what shouldn't be in lib/ dir
rm %{buildroot}%{jruby_vendordir}/pom*

# startup scripts
cp -a bin/{{j,}gem,{j,}irb,jruby} %{buildroot}%{_datadir}/%{name}/bin/

# /usr prefix startup scripts
install -d -m 755 %{buildroot}%{_bindir}
ln -s %{_datadir}/%{name}/bin/jgem  %{buildroot}%{_bindir}/gem-jruby
ln -s %{_datadir}/%{name}/bin/jirb  %{buildroot}%{_bindir}/irb-jruby
ln -s %{_datadir}/%{name}/bin/jruby %{buildroot}%{_bindir}/jruby

# Fedora integration stuff
# modify the JRuby executable to contain Fedora specific paths redefinitons
# we need to modify jruby{,sh,bash} to be sure everything is ok
sed -i 's|$FEDORA_JAVA_OPTS|-Dvendor.dir.general=%{jruby_vendordir}\
                            -Dsite.dir.general=%{jruby_sitedir}\
                            -Dvendor.dir.rubygems=%{rubygems_dir}|' \
    %{buildroot}%{_datadir}/%{name}/bin/jruby*

# install JRuby specific bits into system RubyGems
mkdir -p %{buildroot}%{rubygems_dir}/rubygems/defaults
cp -a lib/ruby/shared/rubygems/defaults/jruby.rb %{buildroot}%{rubygems_dir}/rubygems/defaults/

# Dump the macros into macros.jruby to use them to build other JRuby libraries.
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
cat >> %{buildroot}%{_rpmconfigdir}/macros.d/macros.jruby << \EOF
%%jruby_libdir %%{_datadir}/%{name}/lib/ruby/2.0

# This is the general location for libs/archs compatible with all
# or most of the Ruby versions available in the Fedora repositories.
%%jruby_vendordir vendor_ruby
%%jruby_vendorlibdir %%{jruby_libdir}/%%{jruby_vendordir}
%%jruby_vendorarchdir %%{jruby_vendorlibdir}
EOF

%files  -f .mfiles
%doc COPYING LICENSE.RUBY LEGAL
%{_bindir}/%{name}
%{_bindir}/gem-jruby
%{_bindir}/irb-jruby
%{_datadir}/%{name}
# own the JRuby specific files under RubyGems dir
%{rubygems_dir}/rubygems/defaults/jruby.rb
# exclude bundled gems
%exclude %{jruby_vendordir}/ruby/1.9/json*
%exclude %{jruby_vendordir}/ruby/1.9/rdoc*
%exclude %{jruby_vendordir}/ruby/1.9/rake*
%exclude %{jruby_vendordir}/ruby/gems
# exclude all of the rubygems stuff
%exclude %{jruby_vendordir}/ruby/shared/*ubygems*
%exclude %{jruby_vendordir}/ruby/shared/rbconfig

%files devel
%{_rpmconfigdir}/macros.d/macros.jruby

%files javadoc -f .mfiles-javadoc
%doc COPYING LICENSE.RUBY LEGAL


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13587 |21mr|jruby-maven-plugins-1.1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jruby-maven-plugins
Version:        1.1.0
Release:        8
Summary:        JRuby Maven plugins

License:        MIT
URL:            https://github.com/torquebox/jruby-maven-plugins
Source0:        https://github.com/torquebox/%{name}/archive/%{name}-%{version}.tar.gz
Patch0:         snakeyaml-1.16.patch
Patch1:         fedora-integration.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-velocity)
BuildRequires:  mvn(org.jruby:jruby-core)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)
BuildRequires:  mvn(org.yaml:snakeyaml)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This package contains set of utilities to handle RubyGems in a Maven way.
It also includes support for rspec, rails, cucumber, rake, etc.

%package javadoc
Summary:        API documentation

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n jruby-maven-plugins-jruby-maven-plugins-%{version}

find . -name "*.jar" -delete
find . -name "*.class" -delete

%patch0 -p1
%patch1 -p1

sed -i 's|"1.7.19"|"1.7.20"|g' jruby-maven-plugin/src/main/java/de/saumya/mojo/jruby/AbstractJRubyMojo.java

# TODO: not very nice, how to improve it?
sed -i 's|@FEDORA_VENDOR_DIR_GENERAL@|%{_datadir}/jruby/lib|' ruby-tools/src/main/java/de/saumya/mojo/ruby/script/AntLauncher.java
sed -i 's|@FEDORA_SITE_DIR_GENERAL@|%{_prefix}/local/share/jruby/lib|' ruby-tools/src/main/java/de/saumya/mojo/ruby/script/AntLauncher.java
sed -i 's|@FEDORA_VENDOR_DIR_RUBYGEMS@|%{_datadir}/rubygems|' ruby-tools/src/main/java/de/saumya/mojo/ruby/script/AntLauncher.java

%pom_remove_dep :maven-tools ruby-tools

%pom_remove_plugin :maven-dependency-plugin ruby-tools
%pom_remove_plugin :exec-maven-plugin ruby-tools

%pom_change_dep -r :jruby-complete :jruby-core

%build
# tests fail: "loading resource from classloader failed: META-INF/jruby.home/bin/gem"
# that's because we don't have jruby-complete uber JAR in Fedora
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license license.txt
%doc README.md
%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13588 |21mr|jsch-0.1.54-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jsch
Version:        0.1.54
Release:        10
Summary:        Pure Java implementation of SSH2
License:        BSD
URL:            http://www.jcraft.com/jsch/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://download.sourceforge.net/sourceforge/jsch/jsch-%{version}.zip
# wget \
# http://download.eclipse.org/tools/orbit/downloads/drops/R20090825191606/bundles/com.jcraft.jsch_0.1.41.v200903070017.jar
# unzip com.jcraft.jsch_*.jar META-INF/MANIFEST.MF
# mv META-INF/MANIFEST.MF .
# sed -i "/^Name/d" MANIFEST.MF
# sed -i "/^SHA1/d" MANIFEST.MF
# dos2unix MANIFEST.MF
# sed -i "/^$/d" MANIFEST.MF
# unix2dos MANIFEST.MF
Source1:        MANIFEST.MF
Source2:        plugin.properties

BuildRequires:  maven-local
BuildRequires:  mvn(com.jcraft:jzlib)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  zip

Requires:       jzlib >= 0:1.0.5
Obsoletes: %{name}-demo < %{version}

%description
JSch allows you to connect to an sshd server and use port forwarding, 
X11 forwarding, file transfer, etc., and you can integrate its 
functionality into your own Java programs.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
%{summary}.

%prep
%setup -q
%mvn_file : jsch

%pom_remove_plugin :maven-javadoc-plugin

%pom_xpath_remove pom:project/pom:build/pom:extensions
%pom_xpath_set pom:project/pom:version %{version}

# Java 5 is too old
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]//pom:target'

%build
%mvn_build

# inject the OSGi Manifest
mkdir META-INF
cp %{SOURCE1} META-INF
cp %{SOURCE2} plugin.properties
touch META-INF/MANIFEST.MF
touch plugin.properties
zip target/%{name}-%{version}.jar META-INF/MANIFEST.MF
zip target/%{name}-%{version}.jar plugin.properties

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13589 |21mr|jsch-agent-proxy-0.0.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     jp_minimal

Name:           jsch-agent-proxy
Version:        0.0.8
Release:        11
Summary:        Proxy to ssh-agent and Pageant in Java
License:        BSD
URL:            http://www.jcraft.com/jsch-agent-proxy/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/ymnk/jsch-agent-proxy/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.jcraft:jsch)
BuildRequires:  mvn(com.trilead:trilead-ssh2)
BuildRequires:  mvn(net.java.dev.jna:jna)
BuildRequires:  mvn(net.java.dev.jna:platform)
%if %{without jp_minimal}
BuildRequires:  mvn(net.schmizz:sshj)
%endif
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
jsch-agent-proxy is a proxy program to OpenSSH ssh-agent and Pageant
included Putty.  It will be easily integrated into JSch, and users
will be allowed to use those programs in authentications.  This
software has been developed for JSch, but it will be easily applicable
to other ssh2 implementations in Java.  This software is licensed
under BSD style license.

%package connector-factory
Summary:        Connector factory for jsch-agent-proxy

%description connector-factory
%{summary}.

%package core
Summary:        jsch-agent-proxy core module

%description core
%{summary}.

%package jsch
Summary:        JSch connector for jsch-agent-proxy

%description jsch
%{summary}.

%package pageant
Summary:        Pageant connector for jsch-agent-proxy

%description pageant
%{summary}.

%package sshagent
Summary:        ssh-agent connector for jsch-agent-proxy

%description sshagent
%{summary}.

%if %{without jp_minimal}
%package sshj
Summary:        sshj connector for jsch-agent-proxy

%description sshj
%{summary}.
%endif

%package trilead-ssh2
Summary:        trilead-ssh2 connector for jsch-agent-proxy

%description trilead-ssh2
%{summary}.

%package usocket-jna
Summary:        USocketFactory implementation using JNA

%description usocket-jna
%{summary}.

%package usocket-nc
Summary:        USocketFactory implementation using Netcat

%description usocket-nc
%{summary}.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.

%prep
%setup -q

# Put parent POM together with core module
%mvn_package :jsch.agentproxy jsch.agentproxy.core

# Unnecessary for RPM builds
%pom_remove_plugin ":maven-javadoc-plugin"
%pom_remove_plugin ":maven-source-plugin"
%pom_xpath_remove pom:build/pom:extensions

%if %{with jp_minimal}
%pom_disable_module jsch-agent-proxy-sshj
%endif

%build
%mvn_build -s

%install
%mvn_install

%files core -f .mfiles-jsch.agentproxy.core
%doc README README.md
%license LICENSE.txt

%files connector-factory -f .mfiles-jsch.agentproxy.connector-factory
%files jsch -f .mfiles-jsch.agentproxy.jsch
%files pageant -f .mfiles-jsch.agentproxy.pageant
%files sshagent -f .mfiles-jsch.agentproxy.sshagent
%if %{without jp_minimal}
%files sshj -f .mfiles-jsch.agentproxy.sshj
%endif
%files trilead-ssh2 -f .mfiles-jsch.agentproxy.svnkit-trilead-ssh2
%files usocket-jna -f .mfiles-jsch.agentproxy.usocket-jna
%files usocket-nc -f .mfiles-jsch.agentproxy.usocket-nc

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13590 |21mr|jsemver-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jsemver
Version:        0.9.0
Release:        1
Summary:        A Java implementation of the Semantic Versioning Specification
Group:          Development/Java

License:        MIT
URL:            https://github.com/zafarkhaja/jsemver
Source0:        https://github.com/zafarkhaja/jsemver/archive/%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  maven-local
BuildRequires:  maven-compiler-plugin >= 3.2
BuildRequires:  maven-javadoc-plugin >= 2.10.2
BuildRequires:  junit >= 4.12

%description
JSemVer (formerly Java SemVer) is a Java implementation of
version 2.0.0 of the Semantic Versioning Specification

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}

%prep
%setup -q
find -name \*.jar -delete
find -name \*.class -delete

# remove unnecessary dependency on parent POM
%pom_remove_parent

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.md
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13591 |21mr|jsendnsca-2.1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jsendnsca
Version:       2.1.1
Release:       7
Summary:       Java API for sending passive checks to the Nagios NSCA add-on
# Source files without license headers https://github.com/jsendnsca/jsendnsca/issues/24
License:       ASL 2.0
URL:           https://github.com/jsendnsca/jsendnsca
Source0:       https://github.com/jsendnsca/jsendnsca/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/jsendnsca/jsendnsca/issues/25
Patch0:        jsendnsca-2.1.1-fixtest-patch

#BuildRequires: hostname
BuildRequires: maven-local
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSendNSCA is Java API for sending passive checks to the
Nagios NSCA add-on.

By using JSendNSCA, you can easily integrate your
Java applications into a Nagios monitored environment
thereby notifying Nagios/Icinga/Opsview of problems and
issues during the running of your application.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

# Unavailable plugin
%pom_remove_plugin :coveralls-maven-plugin

# Unwanted tasks
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%pom_xpath_set "pom:project/pom:packaging" bundle
# Fix bundle plugin configuration
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . "
<extensions>true</extensions>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"
# Required by apache camel
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.5 . "
<extensions>true</extensions>
<executions>
  <execution>
    <phase>package</phase>
    <goals>
      <goal>test-jar</goal>
    </goals>
  </execution>
</executions>"

%mvn_package :%{name}::tests:
%mvn_alias :%{name}::tests: com.googlecode:%{name}::tests:

%mvn_file :%{name} %{name}
%mvn_alias :%{name} com.googlecode:%{name}-core

%build

# Test use web connection: java.io.IOException: Cannot run program "hostname": error=2, No such file or directory
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13592 |21mr|jsilver-1.0.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jsilver
Version:        1.0.0
Release:        18
Summary:        A pure-Java implementation of Clearsilver

License:        ASL 2.0 

URL:            http://code.google.com/p/jsilver/
# svn export http://jsilver.googlecode.com/svn/tags/jsilver-1.0.0 jsilver-1.0.0
# tar caf jsilver-1.0.0.tar.xz jsilver-1.0.0
Source0:        jsilver-1.0.0.tar.xz
# javascript not allowed in javadoc.
Patch0:         jsilver-1.0.0-javascript.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  sablecc

%description
A pure-Java implementation of Clearsilver, an HTML template system.

%package javadoc
Summary:        API docs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%patch0 -p1

find . -name *.jar -exec rm -f {} \;
ln -s $(build-classpath sablecc) sablecc/

%pom_change_dep :guava "com.google.guava:guava:15.0"

%mvn_file : jsilver

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13593 |21mr|js-jquery-3.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname js-jquery

Name:           js-jquery
Version:        3.5.1
Release:        2
Summary:        JavaScript DOM manipulation, event handling, and AJAX library
BuildArch:      noarch

%global ver_x %(echo %{version} | cut -d. -f1)
%global ver_y %(echo %{version} | cut -d. -f2)
%global ver_z %(echo %{version} | cut -d. -f3)

Group:          Development/Other

License:        MIT
URL:            https://jquery.com/
Source0:        https://github.com/jquery/jquery/archive/%{version}/jquery-%{version}.tar.gz
# Created by ./update_sources.sh <version>
Source1:        jquery_%{version}_node_modules.tar.gz
Source2:        update-sources.sh

# disable gzip-js during build
Patch1:         %{name}-disable-gzip-js.patch

BuildRequires:  web-assets-devel
BuildRequires:  nodejs-packaging

Provides:       jquery = %{version}-%{release}
Provides:       %{oname}-static = %{version}-%{release}
Provides:       %{oname}%{ver_x} = %{version}-%{release}
Provides:       %{oname}%{ver_x}-static = %{version}-%{release}
Obsoletes:      jquery < %{version}-%{release}

Requires:       web-assets-filesystem

%description
jQuery is a fast, small, and feature-rich JavaScript library. It makes things
like HTML document traversal and manipulation, event handling, animation, and
Ajax much simpler with an easy-to-use API that works across a multitude of
browsers. With a combination of versatility and extensibility, jQuery has
changed the way that millions of people write JavaScript.

%prep
%setup -qn jquery-%{version}
%patch1 -p1

#remove precompiled stuff
rm -rf dist/*

# Install the cached node modules
tar xf %{SOURCE1}

%build
./node_modules/grunt-cli/bin/grunt -v 'build:*:*' uglify

%check
./node_modules/grunt-cli/bin/grunt -v 'build:*:*' test:prepare test:fast


%install
%global installdir %{buildroot}%{_jsdir}/jquery

mkdir -p %{installdir}/%{version}
cp -p dist/* %{installdir}/%{version}

mkdir -p %{buildroot}%{_webassetdir}
ln -s ../javascript/jquery %{buildroot}%{_webassetdir}/jquery

ln -s %{version} %{installdir}/%{ver_x}
ln -s %{version} %{installdir}/%{ver_x}.%{ver_y}


%files
%{_jsdir}/jquery
%{_webassetdir}/jquery
%doc AUTHORS.txt CONTRIBUTING.md LICENSE.txt README.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13594 |21mr|jsl-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Check JavaScript code for common mistakes
Name:		jsl	
Version:	0.3.0
Release:	1
License:	MPLv1.1
Group:		Development/Tools
Url:		http://javascriptlint.com
Source0:	http://javascriptlint.com/download/%{name}-%{version}-src.tar.gz
Patch0:		jsl-0.3.0-smash.patch
Patch1:		jsl-0.3.0-tests.patch
Patch2:		jsl-0.3.0-cflags.patch
Patch3:		0001-Disable-support-for-READLINE-and-EDITLINE.patch
BuildRequires:	perl-devel
BuildRequires:	perl(base)

%description
With JavaScript Lint, you can check all your JavaScript source code for
common mistakes without actually running the script or opening the web page.

JavaScript Lint holds an advantage over competing lints because it is based
on the JavaScript engine for the Firefox browser. This provides a robust
framework that can not only check JavaScript syntax but also examine the
coding techniques used in the script and warn against questionable
practices.

%files
%doc src/README.html
%attr(0755,root,root) %{_bindir}/jsl

#------------------------------------------------------------------

%prep
%autosetup -p1

chmod -x src/README.html
find ./ -type f -exec chmod -x {} \;

%build

#no use _smp_mflags, no %%make
make -C src -f Makefile.ref OBJDIR=../BUILD \
%ifarch %{ix86}
	XCFLAGS="%{optflags} -fno-stack-protector" \
%else
	XCFLAGS="%{optflags}" \
%endif
	OS_CFLAGS="-DXP_UNIX -DHAVE_VA_COPY -DVA_COPY=va_copy"

%install
install -d %{buildroot}%{_bindir}
install BUILD/jsl %{buildroot}%{_bindir}

%check
cd tests
perl run_tests.pl ../BUILD/jsl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13595 |21mr|jsmpp-2.1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jsmpp
Version:       2.1.0
Release:       13
Summary:       Java SMPP (Short Message Peer-to-peer) API
License:       ASL 2.0
# No stable release yet
URL:           https://github.com/uudashr/jsmpp/
Source0:       http://jsmpp.googlecode.com/files/%{name}-%{version}-src.zip
Source1:       http://repo1.maven.org/maven2/com/googlecode/jsmpp/%{name}/%{version}-RELEASE/%{name}-%{version}-RELEASE.pom
Source2:       %{name}-osgi.bnd
# add beust-jcommander
Patch0:        %{name}-2.0.1-test-classpath.patch

BuildRequires: ant
BuildRequires: aqute-bnd
BuildRequires: java-javadoc
BuildRequires: javapackages-local
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(com.beust:jcommander)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java implementation of SMPP protocol (currently supports SMPP v 3.4).

%package examples
Summary:       JSMPP examples
Requires:      %{name} = %{version}-%{release}

%description examples
This package contains %{name} examples.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
# cleanup
find -name "*.jar" -delete
find -name "*.class" -delete
find -name "*.bat" -delete
rm -r javadoc

%patch0 -p0

cp -p %{SOURCE1} pom.xml
cp -p %{SOURCE2} bnd.properties
sed -i "s|@VERSION@|%{version}|" bnd.properties

sed -i "s|http://java.sun.com/j2se/1.5.0/docs/api|%{_javadocdir}/java|" build.xml

%pom_xpath_set "pom:dependency[pom:groupId ='log4j']/pom:version" 1.2.17

ln -sf $(build-classpath log4j-1.2.17) lib/log4j-1.2.14.jar
ln -sf $(build-classpath slf4j/api) lib/slf4j-api-1.4.3.jar
ln -sf $(build-classpath slf4j/log4j12) lib/slf4j-log4j12-1.4.3.jar
ln -sf $(build-classpath testng) lib/testng-5.7-jdk15.jar
ln -sf $(build-classpath beust-jcommander) lib/

%mvn_file : %{name}
%mvn_alias :%{name} org.apache.servicemix.bundles:org.apache.servicemix.bundles.%{name}

%build

ant jar javadoc
# required by Apache Camel
bnd wrap -p bnd.properties -o %{name}.jar %{name}-%{version}.jar

%install
%mvn_artifact pom.xml %{name}.jar
%mvn_install -J javadoc

install -m 644 %{name}-examples.jar %{buildroot}%{_javadir}/

%files -f .mfiles
%doc CHANGES.txt
%license LICENSE.txt

%files examples
%{_javadir}/%{name}-examples.jar
%doc stress/*
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13596 |21mr|json11-1.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname	%mklibname json11 %{major}
%define devname	%mklibname -d json11

Name:		json11
Version: 	1.0.0
Release:	3
Group:		Development/C
Summary:	A tiny JSON library for C++11
License:	MIT
URL:		https://github.com/dropbox/%{name}
Source0:	%{url}/archive/v%{version}.tar.gz

BuildRequires:	ninja
BuildRequires:	cmake

%description
Json11 is a tiny JSON library for C++11, providing JSON parsing
and serialization.

%package -n %{libname}
Summary: Lib files for %{name}

%description -n %{libname}
%{summary}.

%package -n %{devname}
Summary: Development files for %{name}
Requires: %{libname} = %{EVRD}

%description -n %{devname}
%{summary}.

%prep
%setup -q
mkdir -p %{_target_platform}
sed -i 's@lib/@%{_lib}/@g' CMakeLists.txt
sed -i 's`/${CMAKE_LIBRARY_ARCHITECTURE}``'  CMakeLists.txt
sed -i 's@lib/@%{_lib}/@g' json11.pc.in
sed -i 's`/@CMAKE_LIBRARY_ARCHITECTURE@``'  json11.pc.in
echo "set_property(TARGET json11 PROPERTY SOVERSION 0)" >> CMakeLists.txt

%build
%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DJSON11_BUILD_TESTS=ON \

%ninja_build

%check
pushd %{_target_platform}
    ctest --output-on-failure
popd

%install
%ninja_install -C build

%files -n %{libname}
%{_libdir}/lib%{name}.so.0

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}.hpp
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13597 |21mr|jsonassert-1.4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jsonassert
Version:       1.4.0
Release:       7
Summary:       JUnit extension to write JSON unit tests
# Source files are without license headers https://github.com/skyscreamer/JSONassert/issues/70
License:       ASL 2.0
URL:           http://jsonassert.skyscreamer.org/
Source0:       https://github.com/skyscreamer/JSONassert/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
# android-json-org-java
BuildRequires: mvn(org.json:json)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSONassert extends JUnit to write powerful JSON unit tests
in very little code. Code JSON tests as if you are comparing
a string. Under the covers, JSONassert converts your string
into a JSON object and compares the logical structure and
data with the actual JSON.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n JSONassert-%{name}-%{version}

# com.vaadin.external.google:android-json:0.0.20131108.vaadin1
%pom_change_dep com.vaadin.external.google:android-json org.json:json

%pom_remove_plugin :maven-site-plugin
%pom_xpath_remove pom:build/pom:extensions

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.md README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13598 |21mr|json-c-0.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	JSON implementation in C
Name:		json-c
Version:	0.16
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://github.com/json-c/json-c/wiki
Source0:	https://s3.amazonaws.com/json-c_releases/releases/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
JSON-C implements a reference counting object model that allows you to
easily construct JSON objects in C, output them as JSON formatted
strings and parse JSON formatted strings back into the C
representation of JSON objects.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	JSON implementation in C
Group:		System/Libraries

%description -n %{libname}
JSON-C implements a reference counting object model that allows you to
easily construct JSON objects in C, output them as JSON formatted
strings and parse JSON formatted strings back into the C
representation of JSON objects.

%files -n %{libname}
%{_libdir}/libjson-c.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}json-devel < 0.11-2

%description -n %{devname}
JSON-C implements a reference counting object model that allows you to
easily construct JSON objects in C, output them as JSON formatted
strings and parse JSON formatted strings back into the C
representation of JSON objects.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/%{name}
%{_libdir}/cmake/json-c/*.cmake
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i -e "s:-Werror::" CMakeLists.txt

%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13599 |21mr|jsoncpp-1.9.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 24
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# prevent circular dependencies with cmake
%global __requires_exclude ^cmake-filesystem.*$

Summary:	C++ JSON Library
Name:		jsoncpp
Version:	1.9.4
Release:	4
License:	Public Domain
Group:		System/Libraries
Url:		http://jsoncpp.sourceforge.net/
Source0:	https://github.com/open-source-parsers/jsoncpp/archive/%{version}.tar.gz
BuildRequires:	ninja
BuildRequires:	cmake
BuildRequires:	python3-devel

%description
JsonCpp is a simple API to manipulate JSON value, handle serialization
and unserialization to string.

It can also preserve existing comment in unserialization/serialization steps,
making it a convenient format to store user input files.

Unserialization parsing is user friendly and provides precise error reports.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	JsonCpp library
Group:		System/Libraries

%description -n %{libname}
JsonCpp is a simple API to manipulate JSON value, handle serialization
and unserialization to string.

It can also preserve existing comment in unserialization/serialization steps,
making it a convenient format to store user input files.

Unserialization parsing is user friendly and provides precise error reports.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for building applications with %{name} support.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%dir %{_includedir}/json
%{_includedir}/json/*.h
%{_libdir}/pkgconfig/jsoncpp.pc
%{_libdir}/cmake/jsoncpp/*.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake                                         \
  -DBUILD_STATIC_LIBS:BOOL=OFF                 \
  -DBUILD_OBJECT_LIBS:BOOL=OFF                 \
  -DJSONCPP_WITH_CMAKE_PACKAGE:BOOL=ON         \
  -DJSONCPP_WITH_EXAMPLE:BOOL=OFF              \
  -DJSONCPP_WITH_PKGCONFIG_SUPPORT:BOOL=ON     \
  -DJSONCPP_WITH_POST_BUILD_UNITTEST:BOOL=OFF  \
  -DJSONCPP_WITH_STRICT_ISO:BOOL=ON            \
  -DJSONCPP_WITH_TESTS:BOOL=OFF                \
  -DJSONCPP_WITH_WARNING_AS_ERROR:BOOL=OFF     \
  -DPYTHON_EXECUTABLE:STRING="%{__python3}"    \
  -G Ninja
%ninja_build

%install
%ninja_install -C build

#fix include path in .pc file
sed -i 's|/include|/include/json|' %{buildroot}%{_libdir}/pkgconfig/jsoncpp.pc
sed -i 's|Version: |Version: %{version}|' %{buildroot}%{_libdir}/pkgconfig/jsoncpp.pc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13600 |21mr|json-fortran-9.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 9
%define libname %mklibname jsonfortran %{major}
%define devname %mklibname jsonfortran -d

Name:           json-fortran
Version:        9.0.2
Release:        1
Summary:        A Modern Fortran JSON API
Group:          System/Libraries
License:        MIT and BSD
URL:            https://github.com/jacobwilliams/json-fortran
Source0:        https://github.com/jacobwilliams/json-fortran/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  gcc-gfortran

%description
JSON-Fortran is a user-friendly, thread-safe, and object-oriented API
for reading and writing JSON files, written in modern Fortran.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	A Modern Fortran JSON API
Group:		System/Libraries

%description -n %{libname}
JSON-Fortran is a user-friendly, thread-safe, and object-oriented API
for reading and writing JSON files, written in modern Fortran.

%files -n %{libname}
%{_libdir}/libjsonfortran.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:        %{name} development files
Group:          Development/Other
Requires:       %{libname}%{?_isa} = %{EVRD}
# For module dir ownership
Requires:       gcc-gfortran
Provides:       %{name}-devel = %{EVRD}
Provides:       jsonfortran-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_libdir}/cmake/jsonfortran-gnu-%{version}/
%{_libdir}/pkgconfig/json-fortran.pc
%{_libdir}/libjsonfortran.so
%{_fmoddir}/json_*.mod
#------------------------------------------------------------------
%prep
%setup -q

%build
%cmake -DUSE_GNU_INSTALL_CONVENTION=TRUE
%make_build

%install
%make_install -C build
# Move modules to correct directory
mkdir -p %{buildroot}%{_fmoddir}
mv %{buildroot}%{_includedir}/*.mod %{buildroot}%{_fmoddir}/
# Remove static libraries
rm -f %{buildroot}%{_libdir}/*.a




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13601 |21mr|json-glib-1.6.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Library for JavaScript Object Notation format
Name:		json-glib
Version:	1.6.6
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/json-glib
Source0:	https://download.gnome.org/sources/json-glib/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
%{name} is a library providing serialization and deserialization support
for the JavaScript Object Notation (JSON) format.

%files -f %{name}-%{api}.lang
%{_bindir}/json-glib-format
%{_bindir}/json-glib-validate

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
%{name} is a library providing serialization and deserialization support
for the JavaScript Object Notation (JSON) format.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Json-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc NEWS
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_includedir}/%{name}-%{api}/
#dir %%{_datadir}/gtk-doc/html
#{_datadir}/gtk-doc/html/%%{name}/
%{_datadir}/gir-1.0/Json-%{api}.gir
%{_datadir}/installed-tests/
%{_libexecdir}/installed-tests/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13602 |21mr|jsonic-1.3.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jsonic
Version:       1.3.0
Release:       13
Summary:       Simple JSON encoder/decoder for Java
License:       ASL 2.0
Group:         Development/Java
URL:           http://jsonic.sourceforge.jp/
Source0:       http://jaist.dl.sourceforge.jp/%{name}/56583/%{name}-%{version}.zip
# fix maven compiler-plugin configuration
# fix encoding
# fix build deps
# disable unavailable org.seasar.container:s2-framework support
# https://www.seasar.org/svn/s2container/
Patch0:        %{name}-%{version}-pom.patch
# Use servlet 3.1 api
Patch1:        %{name}-%{version}-servlet.patch

BuildRequires: maven-local
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(org.apache.commons:commons-logging)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-web)
BuildRequires: mvn(org.sonatype.sisu:sisu-guice)
BuildRequires: mvn(org.sonatype.sisu.inject:guice-servlet)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jsonic is a JSON encoding/decoding library for Java implementing RFC 4627
(The application/JSON Media Type for JavaScript Object Notation).
Encoding/decoding of primitive types and full Java objects is supported.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# cleanup
find -name "*.class" -print -delete
find -name "*.jar" -print -delete
rm -r docs/*

%patch0 -p0
%patch1 -p1

sed -i 's/\r//' LICENSE.txt

# Remove javadoc warning
# rm -r src/java/net/arnx/jsonic/web/extension/S2Container.java

%mvn_file : %{name}

%build

# No tests to run
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13603 |21mr|jsonld-java-0.8.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash d161da06704a55bac069f2948acd5110dc410506

Name:          jsonld-java
Version:       0.8.0
Release:       7
Summary:       A JSON-based format to serialize Linked Data for Java
License:       BSD
URL:           https://github.com/jsonld-java/jsonld-java/
Source0:       https://github.com/jsonld-java/jsonld-java/archive/%{githash}/%{name}-%{githash}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpclient-cache)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a Java implementation of the JSON-LD specification and
the JSON-LD-API specification.

%package parent
Summary:       JSONLD Java :: Parent POM

%description parent
This package contains Json-LD Java Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}

find . -name '*.class' -delete
# Do not delete test resources
find . -name '*.jar' -print ! -name "nested.jar" -delete

%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin :appassembler-maven-plugin
%pom_remove_plugin -r :jacoco-maven-plugin

%pom_remove_dep :httpclient-osgi
%pom_remove_dep :httpcore-osgi
%pom_change_dep -r :httpclient-osgi :httpclient:'${httpclient.version}'
%pom_change_dep -r :httpcore-osgi :httpcore:'${httpcore.version}'
%pom_add_dep org.apache.httpcomponents:httpclient-cache:'${httpclient.version}' core

# UnknownHostException: purl.org: unknown error
rm -r core/src/test/java/com/github/jsonldjava/core/DocumentLoaderTest.java
# JsonLdError: invalid remote context: http://schema.org/
rm -r core/src/test/java/com/github/jsonldjava/core/ContextCompactionTest.java

%mvn_file :%{name} %{name}
%mvn_package :::tests: %{name}

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-jsonld-java
%doc README.md
%license LICENCE

%files parent -f .mfiles-jsonld-java-parent
%license LICENCE

%files javadoc -f .mfiles-javadoc
%license LICENCE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13604 |21mr|json-lib-2.4-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           json-lib
Version:        2.4
Release:        17
Summary:        JSON library for Java
License:        ASL 2.0
URL:            http://json-lib.sourceforge.net/
# NOTE: newer release (> 2.4) is available here https://github.com/aalmiray/Json-lib/
# A plain jarball with the source is provided by upstream.  We could use
# it, but we choose to build with maven for the sake of consistency.
# Therefore we pull the tree with maven metadata from git.
# sh create-tarball.sh
Source0:        %{name}-%{version}.tar.xz
Source1:        create-tarball.sh
Patch0:         %{name}-%{version}-antrun-plugin.patch

# Jenkins sources/patches
# tarball comming from not yet released upstream git repo
# it contains changes from Jenkins upstream
Source100:      jenkins-%{name}-%{version}.tar.xz
Source101:      http://repo.jenkins-ci.org/releases/org/kohsuke/stapler/json-lib/%{version}-jenkins-3/json-lib-%{version}-jenkins-3.pom
Patch100:       %{name}-%{version}-Use-Jenkins-default-values.patch

BuildRequires:  java-devel
BuildRequires:  maven-local
BuildRequires:  maven-shared
BuildRequires:  maven-surefire-provider-junit
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j)
BuildRequires:  mvn(net.sf.ezmorph:ezmorph)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-site-plugin)
BuildRequires:  mvn(org.codehaus.groovy:groovy18:1.8)
BuildRequires:  mvn(org.codehaus.groovy:groovy18-all:1.8)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(oro:oro)
BuildRequires:  mvn(xom:xom)
BuildRequires:  mvn(xmlunit:xmlunit)

# antrun-plugin deps for groovy ant task
BuildRequires:  mvn(antlr:antlr)
BuildRequires:  mvn(asm:asm-all)
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(org.slf4j:slf4j-nop)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSON-lib is a java library for transforming beans, maps, collections, java
arrays and XML to JSON and back again to beans and DynaBeans.

%package -n jenkins-json-lib
Summary:        Jenkins JSON library

%description -n jenkins-json-lib
JSON-lib is a java library for transforming beans, maps, collections, java
arrays and XML to JSON and back again to beans and DynaBeans.

This package contains JSON library used in Jenkins.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

tar xf %{SOURCE100}

# compile: src/main/groovy/net/sf/json/groovy/GJson.groovy
#          src/main/jdk15/net/sf/json/util/EnumMorpher.java
%patch0 -p1

# Not strictly needed, but it makes no harm to be on the safe side
find -name '*.jar' -delete 
find -name '*.class' -delete

%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:artifactId" groovy

%pom_remove_plugin :maven-compiler-plugin
%pom_remove_plugin :gmaven-plugin

%pom_xpath_remove "pom:project/pom:prerequisites"
%pom_xpath_remove "pom:project/pom:reporting"

# error: duplicate class
rm -r src/main/jdk15/net/sf/json/JSON*.java
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin . '
<configuration>
  <charset>UTF-8</charset>
  <docencoding>UTF-8</docencoding>
  <sourcepath>${basedir}/src/main</sourcepath>
</configuration>'

# should be removed from distribution
%pom_remove_dep :commons-httpclient

%pom_change_dep org.codehaus.groovy:groovy org.codehaus.groovy:groovy18:1.8

cp %{SOURCE101} jenkins-%{name}-%{version}/pom.xml

pushd jenkins-%{name}-%{version}
%patch100 -p1

%pom_change_dep org.codehaus.groovy:groovy-all org.codehaus.groovy:groovy18-all:1.8

%mvn_file org.kohsuke.stapler:json-lib jenkins-%{name}
%mvn_package org.kohsuke.stapler:json-lib jenkins-json-lib

popd

%build
%mvn_file : %{name}
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

# build Jenkins JSON lib
pushd jenkins-%{name}-%{version}
%mvn_build -f
popd

%install
%mvn_install

# install Jenkins JSON lib
pushd jenkins-%{name}-%{version}
%mvn_install
popd

%files -f .mfiles
%license LICENSE.txt
%files -n jenkins-json-lib -f jenkins-%{name}-%{version}/.mfiles-jenkins-json-lib
%license LICENSE.txt
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13605 |21mr|jsonp-1.0.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}
Name:          jsonp
Version:       1.0.4
Release:       10
Summary:       JSR 353 (JSON Processing) RI
License:       CDDL or GPLv2 with exceptions
URL:           http://java.net/projects/jsonp/
# git clone git://java.net/jsonp~git jsonp
# (cd jsonp/ && git archive --format=tar --prefix=jsonp-1.0.4/ jsonp-1.0.4 | xz > ../jsonp-1.0.4.tar.xz)
Source0:       %{name}-%{namedversion}.tar.xz
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# jsonp package don't include the license file
Source1:       glassfish-LICENSE.txt

BuildRequires: jvnet-parent
BuildRequires: glassfish-jax-rs-api >= 2.0-2
# test deps
BuildRequires: junit

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: spec-version-maven-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JSR 353: Java API for Processing JSON RI.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
find . -name '*.jar' -delete
find . -name '*.class' -delete
# Unwanted old apis
%pom_disable_module bundles
%pom_disable_module demos
%pom_disable_module gf
%pom_disable_module tests

%pom_remove_dep javax:javaee-web-api

%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
%pom_remove_plugin org.codehaus.mojo:wagon-maven-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-dependency-plugin impl

# disabled source and javadoc jars
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin
%pom_remove_plugin :maven-source-plugin api
%pom_remove_plugin :maven-javadoc-plugin api
%pom_remove_plugin :maven-jar-plugin impl
%pom_remove_plugin :maven-javadoc-plugin impl
%pom_remove_plugin :maven-source-plugin impl
%pom_remove_plugin :maven-javadoc-plugin jaxrs

sed -i '/check-module/d' api/pom.xml impl/pom.xml

# disable apis copy
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-bundle-plugin']/pom:configuration/pom:instructions/pom:Export-Package"  impl

cp -p %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%pom_xpath_set "pom:parent/pom:version" %{namedversion} api
%pom_xpath_set "pom:parent/pom:version" %{namedversion} jaxrs

%mvn_file :javax.json-api %{name}/%{name}-api
%mvn_file :javax.json %{name}/%{name}
%mvn_file :%{name}-jaxrs %{name}/%{name}-jaxrs

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13606 |21mr|json-path-2.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          json-path
Version:       2.1.0
Release:       7
Summary:       Java JsonPath implementation
# Some files in src/main/java/com/jayway/jsonassert/impl/matcher/ are licensed under BSD
License:       ASL 2.0 and BSD
URL:           https://github.com/jayway/JsonPath
Source0:       https://github.com/jayway/JsonPath/archive/%{name}-%{version}.tar.gz
# Too many unavailable plugins for use gradle
Source1:       http://central.maven.org/maven2/com/jayway/jsonpath/json-path/%{version}/json-path-%{version}.pom
Source2:       http://central.maven.org/maven2/com/jayway/jsonpath/json-path-assert/%{version}/json-path-assert-%{version}.pom
# Remove json.org support
Patch0:        %{name}-2.1.0-JsonOrg.patch

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.google.code.gson:gson)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.minidev:json-smart)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.assertj:assertj-core)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java DSL for reading and testing JSON documents.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n JsonPath-%{name}-%{version}
find -type f -name *.jar -print -delete
find -type f -name *.class -print -delete

cp -p %{SOURCE1} %{name}/pom.xml
cp -p %{SOURCE2} %{name}-assert/pom.xml

%patch0 -p1
rm -rf %{name}/src/main/java/com/jayway/jsonpath/spi/json/JsonOrg*.java \
 %{name}/src/main/java/com/jayway/jsonpath/spi/mapper/JsonOrg*.java \
 %{name}/src/test/java/com/jayway/jsonpath/JsonOrg*.java
%pom_remove_dep org.json:json %{name}

# This is a dummy POM added just to ease building in the RPM platforms
cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <modelVersion>4.0.0</modelVersion>
  <groupId>com.jayway.jsonpath</groupId>
  <artifactId>%{name}-parent</artifactId>
  <version>%{version}</version>
  <packaging>pom</packaging>
  <name>Java JsonPath implementation</name>
  <modules>
    <module>%{name}</module>
    <module>%{name}-assert</module>
  </modules>
</project>
EOF
# Add OSGi support
for p in %{name} %{name}-assert ;do
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" ${p}
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin:2.4" ${p} "
<configuration>
  <archive>
    <manifest>
      <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
    </manifest>
  </archive>
</configuration>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 ${p} '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'
done

# Fix test deps
%pom_add_dep junit:junit:4.12:test %{name}
%pom_add_dep org.assertj:assertj-core:2.1.0:test %{name}
%pom_add_dep org.hamcrest:hamcrest-library:1.3:test %{name}
%pom_add_dep junit:junit:4.12:test %{name}-assert

# fix non ASCII chars
for s in %{name}/src/test/java/com/jayway/jsonpath/old/internal/ScanPathTokenTest.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

%mvn_file :%{name} %{name}
%mvn_file :%{name}-assert %{name}-assert
%mvn_package :%{name}-parent __noinstall

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13607 |21mr|jsonrpc-glib-3.42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global api 1.0
%global major 1
%define libname %mklibname jsonrpc_glib %{api} %{major}
%define girname %mklibname jsonrpc-gir %{api}
%define devname %mklibname jsonrpc_glib %{api} -d

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	A JSON-RPC library for GLib
Name:		jsonrpc-glib
Version:	3.42.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/jsonrpc-glib
Source0:	https://download.gnome.org/sources/jsonrpc-glib/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	python3dist(gi-docgen)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(vapigen)

%description
Jsonrpc-GLib is a JSON-RPC library for GLib. It includes support for
communicating as both a JSON-RPC client and server. Additionally,
supports upgrading connections to use GVariant for less runtime overhead.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Jsonrpc-GLib is a JSON-RPC library for GLib. It includes support for
communicating as both a JSON-RPC client and server. Additionally,
supports upgrading connections to use GVariant for less runtime overhead.

%files -n %{libname}
%doc AUTHORS
%license COPYING
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for Jsonrpc
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for Jsonrpc.

%files -n %{girname}
%{_libdir}/girepository-1.0/Jsonrpc-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc CONTRIBUTING.md
%{_datadir}/gir-1.0/Jsonrpc-%{api}.gir
%{_datadir}/vala/vapi/%{name}-%{api}.*
%{_defaultdocdir}/%{name}/{J,R,S,c,e,f,g,i,j,m,p,s,t,u,v}*
%{_includedir}/%{name}-%{api}/
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson -Denable_gtk_doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13608 |21mr|json_simple-1.1.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           json_simple
Version:        1.1.1
Release:        19
Summary:        Simple Java toolkit for JSON
License:        ASL 2.0
URL:            http://code.google.com/p/json-simple/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export http://json-simple.googlecode.com/svn/tags/tag_release_1_1_1/ json-simple-1.1.1
# tar czf json-simple-1.1.1-src-svn.tar.gz json-simple-1.1.1
Source0:        json-simple-1.1.1-src-svn.tar.gz

#https://code.google.com/p/json-simple/issues/detail?id=97
Patch0:         json-simple-hash-java-1.8.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%description
JSON.simple is a simple Java toolkit for JSON. You can use JSON.simple 
to encode or decode JSON text. 
  * Full compliance with JSON specification (RFC4627) and reliable 
  * Provides multiple functionalities such as encode, decode/parse 
    and escape JSON text while keeping the library lightweight 
  * Flexible, simple and easy to use by reusing Map and List interfaces 
  * Supports streaming output of JSON text 
  * Stoppable SAX-like interface for streaming input of JSON text 
  * Heap based parser 
  * High performance (see performance testing) 
  * No dependency on external libraries 
  * Both of the source code and the binary are JDK1.2 compatible 

%package javadoc
Summary:       API documentation for %{name}

%description javadoc
This package contains %{summary}.

%prep
%setup -q -n json-simple-%{version}
find . -name '*.jar' -exec rm -f '{}' \;
# All the files have dos line endings, remove them.
find . -type f -exec %{__sed} -i 's/\r//' {} \;

%patch0 -p1

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc AUTHORS.txt ChangeLog.txt LICENSE.txt README.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13609 |21mr|json-smart-2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          json-smart
Version:       2.2
Release:       7
Summary:       A small and very fast json parser/generator for java
License:       ASL 2.0
URL:           https://github.com/netplex/json-smart-v2
Source0:       https://github.com/netplex/json-smart-v2/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Json-smart is a performance focused, JSON processor lib.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-v2-%{version}

%pom_remove_dep :json-smart-mini parent
%pom_remove_plugin :maven-javadoc-plugin parent
%pom_remove_plugin :maven-source-plugin parent
%pom_xpath_set "pom:dependency[pom:artifactId='accessors-smart']/pom:version" '${project.version}' parent

%pom_xpath_set "pom:Bundle-Version" "1.1" accessors-smart
%pom_xpath_remove "pom:Embed-Dependency" accessors-smart
%pom_xpath_remove "pom:Embed-Dependency" %{name}

%pom_xpath_inject "pom:dependency[pom:artifactId='accessors-smart']" "<version>%{version}</version>" %{name}
%pom_xpath_remove "pom:project/pom:version" accessors-smart
%pom_xpath_inject "pom:project" "<version>%{version}</version>" accessors-smart

cp -p %{name}/*.txt .

%mvn_file :%{name} %{name}
%mvn_file :accessors-smart accessors-smart

rm accessors-smart/src/test/java/net/minidev/asm/TestDateConvert.java

%build

%mvn_build -- -f parent/pom.xml

%install
%mvn_install

%files -f .mfiles
%doc ChangeLog.txt readme.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13610 |21mr|jsoup-1.11.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jsoup
Version:        1.11.3
Release:        5
Summary:        Java library for working with real-world HTML
License:        MIT
URL:            http://jsoup.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
# The sources contain non-free scraped web pages as test data
Source1:        generate-tarball.sh

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%description
jsoup is a Java library for working with real-world HTML.
It provides a very convenient API for extracting and manipulating data,
using the best of DOM, CSS, and jquery-like methods.

jsoup implements the WHATWG HTML5 specification,
and parses HTML to the same DOM as modern browsers do.

 - scrape and parse HTML from a URL, file, or string
 - find and extract data, using DOM traversal or CSS selectors
 - manipulate the HTML elements, attributes, and text
 - clean user-submitted content against a safe white-list,
   to prevent XSS attacks
 - output tidy HTML

jsoup is designed to deal with all varieties of HTML found in the wild;
from pristine and validating, to invalid tag-soup;
jsoup will create a sensible parse tree.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-javadoc-plugin

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md CHANGES
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13611 |21mr|jspc-2.0-0.25.alpha.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag  -alpha-3
%global namedversion %{version}%{?namedreltag}
%global dotreltag    %(echo %{namedreltag} | tr - .)

Name:          jspc
Version:       2.0
Release:       0.25%{dotreltag}
Summary:       Compile JSPs under Maven
License:       ASL 2.0
Url:           http://mojo.codehaus.org/jspc/
# svn export https://svn.codehaus.org/mojo/tags/jspc-2.0-alpha-3 jspc
# tar czf jspc-2.0-alpha-3-src-svn.tar.gz jspc
Source0:       %{name}-%{namedversion}-src-svn.tar.gz
Source1:       %{name}-mp-plugin.xml
Patch0:        %{name}-ant-groovyc.patch

BuildRequires: java-devel
BuildRequires: maven-local 

BuildRequires: apache-resource-bundles
BuildRequires: ant
BuildRequires: antlr3-tool
BuildRequires: fusesource-pom
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(org.apache.maven.shared:file-management)
BuildRequires: plexus-containers-container-default
BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires: mvn(org.glassfish.web:javax.servlet.jsp)

BuildRequires: maven-antrun-plugin
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-invoker-plugin
BuildRequires: maven-plugin-plugin
BuildRequires: maven-remote-resources-plugin
BuildRequires: maven-install-plugin

BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)

BuildRequires: groovy18
Requires: groovy18

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Codehaus is a collaborative environment for building open source
projects with a strong emphasis on modern languages, focused on
quality components that meet real world needs.

Provides support to precompile your JSPs and have them included into
your WAR file. Version 2 of the JSP compilation support includes a
pluggable JSP compiler implementation, which currently allows different
versions of the Tomcat Jasper compiler to be used as needed.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}

%pom_remove_parent

for d in LICENSE ; do
  iconv -f iso8859-1 -t utf-8 $d.txt > $d.txt.conv && mv -f $d.txt.conv $d.txt
  sed -i 's/\r//' $d.txt
done

# fix up gmaven removal in src
sed -i 's|import org.codehaus.groovy.maven.mojo.GroovyMojo|import org.apache.maven.plugin.AbstractMojo|' \
  jspc-maven-plugin/src/main/groovy/org/codehaus/mojo/jspc/CompilationMojoSupport.groovy
sed -i 's|extends GroovyMojo|extends AbstractMojo|' \
  jspc-maven-plugin/src/main/groovy/org/codehaus/mojo/jspc/CompilationMojoSupport.groovy

# plexus-maven-plugin superceded by plexus-containers-component-metadata
sed -i 's|<artifactId>plexus-maven-plugin</artifactId>|<artifactId>plexus-component-metadata</artifactId>|' pom.xml

# no tomcat5
%pom_disable_module jspc-compiler-tomcat5 jspc-compilers/pom.xml

# switch tomcat-jasper for glassfish-jsp
%pom_remove_dep org.apache.tomcat:juli jspc-compilers/jspc-compiler-tomcat6/pom.xml
%pom_remove_dep org.apache.tomcat:servlet-api jspc-compilers/jspc-compiler-tomcat6/pom.xml
%pom_remove_dep org.apache.tomcat:jsp-api jspc-compilers/jspc-compiler-tomcat6/pom.xml
%pom_remove_dep org.apache.tomcat:el-api jspc-compilers/jspc-compiler-tomcat6/pom.xml
%pom_remove_dep org.apache.tomcat:jasper-jdt jspc-compilers/jspc-compiler-tomcat6/pom.xml
%pom_remove_dep org.apache.tomcat:annotations-api jspc-compilers/jspc-compiler-tomcat6/pom.xml
%pom_remove_dep org.apache.tomcat:jasper jspc-compilers/jspc-compiler-tomcat6/pom.xml
%pom_remove_dep org.apache.tomcat:jasper-el jspc-compilers/jspc-compiler-tomcat6/pom.xml

# we need servlet 3.0 and jsp 2.2+ in this order
%pom_add_dep org.apache.tomcat:tomcat-servlet-api jspc-compilers/jspc-compiler-tomcat6/pom.xml
%pom_add_dep org.glassfish.web:javax.servlet.jsp jspc-compilers/jspc-compiler-tomcat6/pom.xml

# drop plexus-maven-plugin and add plexus-component-metadata and appropriate config
%pom_remove_plugin org.codehaus.plexus:plexus-maven-plugin jspc-compilers/pom.xml
%pom_add_plugin org.codehaus.plexus:plexus-component-metadata jspc-compilers/pom.xml "
                <configuration>
                  <descriptors>
                    <descriptor>target/classes/META-INF/plexus/components.xml</descriptor>
                  </descriptors>
                </configuration>
                <executions>
                    <execution>
                        <id>create-component-descriptor</id>
                        <phase>generate-resources</phase>
                        <goals>
                            <goal>generate-metadata</goal>
                        </goals>
                    </execution>
                </executions>
"

# fix up source, target config in compiler plugin
%pom_remove_plugin org.apache.maven.plugins:maven-compiler-plugin pom.xml
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin pom.xml "
                <configuration>
                    <source>1.7</source>
                    <target>1.7</target>
                </configuration>
"

# fix up source config in javadoc plugin
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin pom.xml
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin pom.xml "
                <configuration>
                    <source>1.7</source>
                </configuration>
"

# remove wagon-webdav
%pom_xpath_remove "pom:build/pom:extensions"

# get rid of gmaven...
%pom_remove_dep org.codehaus.groovy.maven:gmaven-mojo pom.xml
%pom_remove_plugin org.codehaus.groovy.maven:gmaven-plugin pom.xml
%pom_add_dep org.apache.ant:ant jspc-compilers/jspc-compiler-tomcat6/pom.xml

#...replace with ant groovyc task
# have to patch due to some $ substitution problems
%patch0 -p2

# ant property now needs AntBuilder()
sed -i '/Make directories if needed/a def ant = new AntBuilder()' jspc-maven-plugin/src/main/groovy/org/codehaus/mojo/jspc/CompilationMojoSupport.groovy

%build
%mvn_build

# http://jira.codehaus.org/browse/GMAVEN-68
# gmaven-runtime 1.8 doesn't generate plugin descriptor
# files from javadoc, so we have to load in an existing
# one derived from mvn and g-r 1.6
mkdir -p META-INF/maven/
cp %{SOURCE1} META-INF/maven/plugin.xml
jar uf  %{name}-maven-plugin/target/%{name}-maven-plugin-2.0-alpha-3.jar META-INF/maven/plugin.xml

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13612 |21mr|jsr-305-0-0.25.20130910svn
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jsr-305
Version:        0
Release:        0.25.20130910svn
Summary:        Correctness annotations for Java code

# The majority of code is BSD-licensed, but some Java sources
# are licensed under CC-BY license, see: $ grep -r Creative .
License:        BSD and CC-BY
URL:            http://jsr-305.googlecode.com/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# There has been no official release yet.  This is a snapshot of the Subversion
# repository as of 10 Sep 2013.  Use the following commands to generate the
# tarball:
#   svn export -r 51 http://jsr-305.googlecode.com/svn/trunk jsr-305
#   tar -czvf jsr-305-20130910svn.tgz jsr-305
Source0:        jsr-305-20130910svn.tgz
# File containing URL to CC-BY license text
Source1:        NOTICE-CC-BY.txt

BuildRequires:  maven-local

%package javadoc
Summary:        Javadoc documentation for %{name}

%description
This package contains reference implementations, test cases, and other
documents for Java Specification Request 305: Annotations for Software Defect
Detection.

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}
cp %{SOURCE1} NOTICE-CC-BY

%mvn_file :ri %{name}
%mvn_alias :ri com.google.code.findbugs:jsr305
%mvn_package ":{proposedAnnotations,tcl}" __noinstall

# do not build sampleUses module - it causes Javadoc generation to fail
%pom_disable_module sampleUses

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc ri/LICENSE NOTICE-CC-BY sampleUses

%files javadoc -f .mfiles-javadoc
%doc ri/LICENSE NOTICE-CC-BY


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13613 |21mr|jsr-311-1.1.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jsr-311
Version:       1.1.1
Release:       19
Summary:       JAX-RS: Java API for RESTful Web Services
License:       CDDL-1.0
URL:           http://jsr311.java.net
# svn export https://svn.java.net/svn/jsr311~svn/tags/jsr311-api-1.1.1 jsr-311-1.1.1
# tar cvzf jsr-311-1.1.1.tgz jsr-311-1.1.1
Source0:       %{name}-%{version}.tgz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

Provides:      javax.ws.rs
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JAX-RS: Java API for RESTful Web Services

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "///pom:extensions/pom:extension[pom:artifactId='wagon-svn']"

%build

%mvn_file :jsr311-api %{name} javax.ws.rs/%{name}
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13614 |21mr|jss-4.6.4-0.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%define _commit_id 0d63308
################################################################################
Name:           jss
################################################################################

Summary:        Java Security Services (JSS)
URL:            http://www.dogtagpki.org/wiki/JSS
License:        MPLv1.1 or GPLv2+ or LGPLv2+
Group:          Development/Java
Epoch:		1
Version:        4.6.4
Release:        0.2%{?_timestamp}%{?_commit_id}
#%%global         _phase -b2

# To generate the source tarball:
# $ git clone https://github.com/dogtagpki/jss.git
# $ cd jss
# $ git tag v4.5.<z>
# $ git push origin v4.5.<z>
# Then go to https://github.com/dogtagpki/jss/releases and download the source
# tarball.
Source:         https://github.com/dogtagpki/%{name}/archive/v%{version}%{?_phase}/%{name}-%{version}%{?_phase}.tar.gz

# To create a patch for all changes since a version tag:
# $ git format-patch \
#     --stdout \
#     <version tag> \
#     > jss-VERSION-RELEASE.patch
# Patch: jss-VERSION-RELEASE.patch
Patch0: 0001-Remove-FIPS-test.patch
#Patch1: jss-4.7.2git-0d63308.patch
Patch2: jss-nss-constants.patch
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=975212
Patch3: Disable-use-of-MD4-MD5-and-SHA-1-algorithms.patch

################################################################################
# Build Dependencies
################################################################################

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
# autosetup
BuildRequires:  git
BuildRequires:  make
BuildRequires:  cmake
BuildRequires:  zip
BuildRequires:  unzip

BuildRequires:  gcc-c++
BuildRequires:  nspr-devel >= 4.13.1
BuildRequires:  nss >= 3.44
BuildRequires:  nss-devel >= 3.44
BuildRequires:  java-devel
BuildRequires:  jpackage-utils
BuildRequires:  slf4j
BuildRequires:  glassfish-jaxb-api
%if 0%{?rhel} && 0%{?rhel} <= 7
# no slf4j-jdk14
%else
BuildRequires:  slf4j-jdk14
%endif
BuildRequires:  apache-commons-lang

BuildRequires:  junit

Requires:       nss >= 3.44
Requires:       java-headless
Requires:       jpackage-utils
Requires:       slf4j
Requires:       glassfish-jaxb-api
%if 0%{?rhel} && 0%{?rhel} <= 7
# no slf4j-jdk14
%else
Requires:       slf4j-jdk14
%endif
Requires:       apache-commons-lang

Conflicts:      ldapjdk < 4.20
Conflicts:      idm-console-framework < 1.2
Conflicts:      tomcatjss < 7.3.4
Conflicts:      pki-base < 10.6.5

%description
Java Security Services (JSS) is a java native interface which provides a bridge
for java-based applications to use native Network Security Services (NSS).
This only works with gcj. Other JREs require that JCE providers be signed.

################################################################################
%package javadoc
################################################################################

Summary:        Java Security Services (JSS) Javadocs
Requires:       jss = %{EVRD}

%description javadoc
This package contains the API documentation for JSS.

################################################################################
%prep

%autosetup -n %{name}-%{version}%{?_phase} -p 1 -S git

################################################################################
%build

%set_build_flags

[ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java

# Enable compiler optimizations
export BUILD_OPT=1

# Generate symbolic info for debuggers
CFLAGS="-g $RPM_OPT_FLAGS"
export CFLAGS

# Check if we're in FIPS mode
modutil -dbdir /etc/pki/nssdb -chkfips true | grep -q enabled && export FIPS_ENABLED=1

%cmake \
    -DJAVA_HOME=%{java_home} \
    -DJAVA_LIB_INSTALL_DIR=%{_jnidir} \
    -DJAVA_AWT_LIBRARY=%{_jvmdir}/java \
    -DJAVA_JVM_LIBRARY=%{_jvmdir}/java \
    ..

%{__make} all
%{__make} javadoc
ctest --output-on-failure

################################################################################
%install

# There is no install target so we'll do it by hand

# jars
install -d -m 0755 $RPM_BUILD_ROOT%{_jnidir}
install -m 644 build/jss4.jar ${RPM_BUILD_ROOT}%{_jnidir}/jss4.jar

# We have to use the name libjss4.so because this is dynamically
# loaded by the jar file.
install -d -m 0755 $RPM_BUILD_ROOT%{_libdir}/jss
install -m 0755 build/libjss4.so ${RPM_BUILD_ROOT}%{_libdir}/jss/
pushd  ${RPM_BUILD_ROOT}%{_libdir}/jss
    ln -fs %{_jnidir}/jss4.jar jss4.jar
popd

# javadoc
install -d -m 0755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -rp build/docs/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -p jss.html $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}
cp -p *.txt $RPM_BUILD_ROOT%{_javadocdir}/%{name}-%{version}

# No ldconfig is required since this library is loaded by Java itself.
################################################################################
%files

%defattr(-,root,root,-)
%doc jss.html
%license MPL-1.1.txt gpl.txt lgpl.txt
%{_libdir}/*
%{_jnidir}/*

################################################################################
%files javadoc

%defattr(-,root,root,-)
%{_javadocdir}/%{name}-%{version}/

################################################################################



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13615 |21mr|jssc-2.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Java Simple Serial Connector
Name:		jssc
Version:	2.8.0
Release:	1
License:	GPLv3+
Group:          Development/Java

URL:		http://jssc.scream3r.org
Source:		https://github.com/scream3r/java-simple-serial-connector/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# lack of license file, reported upstream:
# https://github.com/scream3r/java-simple-serial-connector/issues/79
Source1:	http://www.gnu.org/licenses/gpl-3.0.txt
# jni load library patch
Patch0:		%{name}-loadlibrary.patch
# fixes jni header mismatch, reported upstream:
# https://github.com/scream3r/java-simple-serial-connector/issues/80
Patch1:		%{name}-jni-fix.patch

BuildRequires:	gcc-c++
BuildRequires:	java-devel
BuildRequires:	javapackages-local

Requires:	java-headless
Requires:	jpackage-utils

%global jni		%{_libdir}/%{name}
%global jniFullSoName	libjSSC-%{version}.so
%global jniSoName	libjSSC.so


%description
jSSC (Java Simple Serial Connector) - library for working with serial ports
from Java.


%package javadoc
Summary:        Javadoc for %{name} package
BuildArch:      noarch
Requires:       %{name} = %{version}


%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n java-simple-serial-connector-%{version}
%patch0 -p1 -b .loadlibrary
%patch1 -p1 -b .jni-fix
cp -a %{SOURCE1} COPYING
# remove prebuild binaries and jni headers
rm -rf src/java/libs
rm -rf src/cpp/*.h


%build
# compile classes
mkdir -p classes/
(cd src/java; javac -h ../cpp -d ../../classes/ -encoding UTF-8 jssc/*.java)
(cd classes; jar -cf ../jssc.jar jssc/*.class)
# generate javadoc
mkdir -p javadoc/
(cd src/java; javadoc -Xdoclint:none -d ../../javadoc/ -encoding UTF-8 jssc/*.java)
# compile native library
g++ %{optflags} %{?__global_ldflags} -fPIC -shared \
    -D jSSC_NATIVE_LIB_VERSION=\"$(echo %{version} | sed 's/\([1-9]\.[0-9]\).*/\1/')\" \
    -I %{java_home}/include \
    -I %{java_home}/include/linux \
    -o %{jniFullSoName} src/cpp/_nix_based/jssc.cpp


%install
# create necessary directories
install -d %{buildroot}%{jni} \
           %{buildroot}%{_javadocdir}/%{name}
# install jni library and symlink
install -m 0755 -p %{jniFullSoName} %{buildroot}%{jni}
ln -srf %{buildroot}%{jni}/%{jniFullSoName} %{buildroot}%{jni}/%{jniSoName}
# install jar, pom files and java docs
%mvn_artifact org.scream3r:%{name}:%{version} %{name}.jar
%mvn_file org.scream3r:%{name}:%{version} %{name}
%mvn_install -J javadoc


%files -f .mfiles
%license COPYING
%doc README.txt
%{jni}/


%files javadoc
%doc %{_javadocdir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13616 |21mr|jtidy-8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             jtidy
Version:	8.0
Release:	1
Epoch:            2
Summary:          HTML syntax checker and pretty printer
License:          zlib
URL:              http://jtidy.sourceforge.net/
# svn export -r1125 https://jtidy.svn.sourceforge.net/svnroot/jtidy/trunk/jtidy/ jtidy
# tar caf jtidy.tar.xz jtidy
Source0:          %{name}.tar.xz
Source1:          %{name}.jtidy.script
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    javapackages-local
BuildRequires:    ant
BuildRequires:    mvn(xerces:dom3-xml-apis)
# Explicit javapackages-tools requires since jtidy script uses
# /usr/share/java-utils/java-functions
Requires:         javapackages-tools

%description
JTidy is a Java port of HTML Tidy, a HTML syntax checker and pretty
printer.  Like its non-Java cousin, JTidy can be used as a tool for
cleaning up malformed and faulty HTML.  In addition, JTidy provides a
DOM interface to the document that is being processed, which
effectively makes you able to use JTidy as a DOM parser for real-world
HTML.

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains %{summary}.

%prep
%setup -q -n %{name}

%build
ant -Dant.build.javac.source=1.4

%install
%mvn_file : %{name}
%mvn_alias : net.sf.jtidy:%{name}
%mvn_artifact pom.xml target/%{name}-*.jar

%mvn_install -J target/javadoc

# shell script
mkdir -p %{buildroot}%{_bindir}
cp -ap %{SOURCE1} %{buildroot}%{_bindir}/%{name}

# ant.d
mkdir -p %{buildroot}%{_sysconfdir}/ant.d
cat > %{buildroot}%{_sysconfdir}/ant.d/%{name} << EOF
jtidy
EOF


%files -f .mfiles
%license LICENSE.txt
%attr(755, root, root) %{_bindir}/*
%config(noreplace) %{_sysconfdir}/ant.d/%{name}

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13617 |21mr|jtoaster-1.0.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jtoaster
Version:       1.0.5
Release:       13
Summary:       Java utility class for swing applications
License:       ASL 2.0
Group:         Development/Java
URL:           http://jtoaster.sourceforge.net/
Source0:       http://downloads.sourceforge.net/project/jtoaster/%{name}/1.0/%{name}-%{version}.jar
Source1:       %{name}-template.pom
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: jpackage-utils

Requires:      java
Requires:      jpackage-utils
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java Toaster is a java utility class for your swing applications
that show an animate box coming from the bottom of your screen
with a notification message and/or an associated image (like MSN
online/offline notifications).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -c
find . -name "*.class" -delete

cp -p %{SOURCE1} %{name}.pom
sed -i "s|@version@|%{version}|" %{name}.pom

mkdir -p src/com/nitido/utils/toaster docs
mv ./\ com/nitido/utils/toaster/Toaster.java src/com/nitido/utils/toaster/

%build

%javac -encoding UTF-8 $(find src -type f -name "*.java")
(
  cd src
  %jar cvf ../%{name}.jar $(find . -name "*.class")
)
%javadoc -d docs -encoding UTF-8 $(find src -type f -name "*.java")

%install

mkdir -p %{buildroot}%{_javadir}
install -m 644 %{name}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 %{name}.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr docs/* %{buildroot}%{_javadocdir}/%{name}/

%files -f .mfiles
%doc README com
%license apache2.0_license.txt

%files javadoc
%{_javadocdir}/%{name}
%license apache2.0_license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13618 |21mr|jts1.14-1.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname jts
Group: Development/Java
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:          jts1.14
Version:       1.14
Release:       1
Summary:       Java Topology Suite
License:       LGPLv2+
URL:           http://sourceforge.net/projects/jts-topo-suite
# sh jts-create-tarball.sh < VERSION >
Source0:       %{oldname}-%{version}.tar.xz
Source1:       %{oldname}-create-tarball.sh

Patch0:        jts-1.14-jdom1.1.+.patch

BuildRequires: maven-local
BuildRequires: mvn(com.googlecode.json-simple:json-simple)
BuildRequires: mvn(jdom:jdom)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

BuildArch:     noarch
Source44: import.info

%description
The JTS Topology Suite is an API for modelling and
manipulating 2-dimensional linear geometry. It provides
numerous geometric predicates and functions. JTS
conforms to the Simple Features Specification for
SQL published by the Open GIS Consortium.

%package app
Group: Development/Java
Summary:       JTS - Applications & tools

%description app
Applications & tools for working with JTS.

%package example
Group: Development/Java
Summary:       JTS - Examples

%description example
Examples of working JTS code.

%package io
Group: Development/Java
Summary:       JTS - IO

%description io
JTS Extension for to assist in read / write operations.

%package parent
Group: Development/Java
Summary:       JTS - Parent POM

%description parent
JTS - Parent POM.

%package javadoc
Group: Development/Java
Summary:       Javadoc for %{oldname}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{oldname}.

%prep
%setup -n %{oldname}-%{version} -q
%patch0 -p1

# Unavailable plugin
%pom_remove_plugin :nexus-staging-maven-plugin

# Uneeded tasks
%pom_remove_plugin :maven-gpg-plugin
for p in app core example io; do

%pom_remove_plugin :maven-source-plugin %{oldname}-${p}
%pom_remove_plugin :maven-javadoc-plugin %{oldname}-${p}
%pom_remove_plugin :maven-eclipse-plugin %{oldname}-${p}
%pom_remove_plugin :exec-maven-plugin %{oldname}-${p}

# Add OSGi support
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" %{oldname}-${p}
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 %{oldname}-${p} "
 <extensions>true</extensions>
  <configuration>
    <instructions>
      <Bundle-SymbolicName>\${project.groupId}.${p}</Bundle-SymbolicName>
      <Bundle-Name>\${project.artifactId}</Bundle-Name>
      <Bundle-Version>\${project.version}</Bundle-Version>
    </instructions>
  </configuration>
  <executions>
    <execution>
      <id>bundle-manifest</id>
      <phase>process-classes</phase>
      <goals>
        <goal>manifest</goal>
      </goals>
    </execution>
 </executions>"
done

# Uneeded module
%pom_disable_module %{oldname}-assembly-distribution
# Unavailable deps: com.esri:sde-sdk:9.1 com.esri:jpe-sdk:9.1 com.oracle:ojdbc5:11.1.0.7.0
%pom_disable_module %{oldname}-ora
%pom_disable_module %{oldname}-sde

%pom_remove_dep com.esri:sde-sdk %{oldname}-app
%pom_remove_dep -r :ojdbc5 %{oldname}-core %{oldname}-io
%pom_remove_dep com.vividsolutions:%{oldname}-ora %{oldname}-io

# Set Re-Sources location
for p in app core; do
%pom_xpath_inject pom:project/pom:build '
 <resources>
   <resource>
     <directory>src/main/java</directory>
     <excludes>
       <exclude>**/*.java</exclude>
       <exclude>**/package.html</exclude>
     </excludes>
   </resource>
 </resources>' %{oldname}-${p}
done

# https://sourceforge.net/p/jts-topo-suite/bugs/52/
sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," \
 doc/LICENSE.txt $(find . -type f -name "*.java")

# Convert from dos to unix line ending
for file in doc/LICENSE.txt README.txt; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

# Backward compatibility
%mvn_alias com.vividsolutions:%{oldname}-core com.vividsolutions:%{oldname}
%mvn_file :%{oldname}-core %{oldname}/%{oldname}-core %{oldname}
%mvn_compat_version : 1.8 1.13 1.14.0 %{version}

%build

# package junit.swingui does not exist
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-%{oldname}-core
%doc README.txt doc/JTS_Version_History.html
%doc doc/LICENSE.txt

%files app -f .mfiles-%{oldname}-app
%files example -f .mfiles-%{oldname}-example
%files io -f .mfiles-%{oldname}-io

%files parent -f .mfiles-%{oldname}-parent
%doc doc/LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc doc/LICENSE.txt

%changelog
* Tue Jun 18 2019 Igor Vlasenko <viy@altlinux.ru> 1.14-alt2_4jpp8
- compat build

* Thu Apr 19 2018 Igor Vlasenko <viy@altlinux.ru> 1.14-alt1_4jpp8
- java update

* Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 1.14-alt1_3jpp8
- fc27 update

* Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 1.14-alt1_2jpp8
- new jpp release

* Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 1.14-alt1_1jpp8
- new version

* Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 1.13-alt1_6jpp8
- new fc release

* Thu Feb 04 2016 Igor Vlasenko <viy@altlinux.ru> 1.13-alt1_4jpp8
- java 8 mass update


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13619 |21mr|jts-1.15.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          jts
Version:       1.15.0
Release:       4
Summary:       Java Topology Suite
License:       EPL-1.0 or BSD
URL:           https://projects.eclipse.org/projects/locationtech.jts
Source0:       https://github.com/locationtech/jts/archive/jts-%{version}/jts-jts-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.googlecode.json-simple:json-simple)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.jdom:jdom2)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The LocationTech JTS Topology Suite (JTS) is an open source Java software
library that provides an object model for planar geometry together with a
set of fundamental geometric functions. JTS conforms to the Simple Features
Specification for SQL published by the Open GIS Consortium.  JTS is designed
to be used as a core component of vector-based geomatics software such as
geographical information systems. It can also be used as a general-purpose
library providing algorithms in computational geometry.

%package app
Summary: JTS - Applications & tools

%description app
Applications & tools for working with JTS.

%package example
Summary: JTS - Examples

%description example
Examples of working JTS code.

%package io
Summary: JTS - IO

%description io
JTS Extension for to assist in read / write operations.

%package parent
Summary: JTS - Parent POMs

%description parent
JTS - Parent POMs.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n jts-jts-%{version}

# Uneeded plugins for RPM builds
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin

# Remove this test because junit.swingui is unavailable
rm modules/core/src/test/java/test/jts/junit/SimpleTest.java
sed -i -e '/SimpleTest\.class/d' modules/core/src/test/java/test/jts/junit/MasterTester.java

# Don't bundle deps
%pom_remove_plugin :maven-assembly-plugin modules/tests modules/app

# Backward compatibility aliases
%mvn_alias org.locationtech.jts:jts-core com.vividsolutions:jts-core com.vividsolutions:jts
%mvn_alias org.locationtech.jts.io:jts-io-common com.vividsolutions:jts-io

%mvn_package ":jts-io*" jts-io
%mvn_package ":jts{,-modules}" jts-parent
%mvn_package ":jts-tests" jts-app

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}-core
%doc README.md USING.md MIGRATION.md
%license LICENSE*

%files app -f .mfiles-%{name}-app
%files example -f .mfiles-%{name}-example
%files io -f .mfiles-%{name}-io

%files parent -f .mfiles-%{name}-parent
%license LICENSE*

%files javadoc -f .mfiles-javadoc
%license LICENSE*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13620 |21mr|judy-1.0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define libname	%mklibname %{name} %{major}
%define develname %mklibname -d %{name}

Summary:	A general purpose dynamic array implemented as a C callable library
Name:		judy
Version:	1.0.5
Release:	8
Group:		System/Libraries
License:	LGPL
URL:		http://sourceforge.net/projects/judy/
Source0:	http://downloads.sourceforge.net/project/judy/judy/Judy-%{version}/Judy-%{version}.tar.gz

%description
Judy is a general purpose dynamic array implemented as a C callable library.
Judy's speed and memory usage are typically better than other data storage
models and improves with very large data sets.

%package -n	%{libname}
Summary:	The shared libjudy library
Group:          System/Libraries

%description -n	%{libname}
Judy is a general purpose dynamic array implemented as a C callable library.
Judy's speed and memory usage are typically better than other data storage
models and improves with very large data sets.

%package -n	%{develname}
Summary:	Static library and header files for the libjudy library
Group:		Development/C
Provides:	%{name}-devel = %{version}
Requires:	%{libname} = %{version}

%description -n	%{develname}
Judy is a general purpose dynamic array implemented as a C callable library.
Judy's speed and memory usage are typically better than other data storage
models and improves with very large data sets.

%prep

%setup -q

%build
rm -rf autom4te.cache
rm -f configure
autoreconf -fi

%configure --enable-static

make

%install
rm -rf %{buildroot}

%makeinstall_std

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files -n %{libname}
%defattr(-,root,root)
%doc AUTHORS ChangeLog README
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.*a
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13621 |21mr|juel-2.2.7-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          juel
Version:       2.2.7
Release:       12
Summary:       Java Unified Expression Language Implementation
License:       ASL 2.0
URL:           http://juel.sourceforge.net/
# use SOURCE1 for generate source archive
# sh  juel-create-tarball.sh < VERSION >
Source0:       %{name}-%{version}-clean.tar.gz
Source1:       %{name}-create-tarball.sh

BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_2.2_spec)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
# test deps
BuildRequires: mvn(junit:junit)

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Implementation of the Java Unified Expression Language as specified
by the Expression Language Specification, Version 2.1 (JEE5, part of
the JSP 2.1 standard [JSR-245]), plus maintenance release 2.2 (JEE6).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# Use jboss EL apis
%pom_remove_dep :juel-api modules/impl
%pom_add_dep org.jboss.spec.javax.el:jboss-el-api_2.2_spec modules/impl
%pom_disable_module modules/api
# Disable for now contains only services refs
%pom_disable_module modules/spi
# modules/spi/src/main/resources/META-INF/services/javax.el.ExpressionFactory

# Fix CRLF
sed 's/\r//' -i LICENSE.txt README.md

# this test fail on arm builder
rm -r modules/impl/src/test/java/de/odysseus/el/tree/impl/CacheTest.java
sed -i '/CacheTest.class/d' modules/impl/src/test/java/de/odysseus/el/tree/impl/AllTests.java

%mvn_file :%{name}-impl %{name}-impl
%mvn_file :%{name}-impl %{name}
%mvn_alias :%{name}-impl "de.odysseus.%{name}:%{name}" "de.odysseus.%{name}:%{name}-spi"

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13622 |21mr|juk-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A music player and manager for KDE
Name:		juk
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/multimedia/juk/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(taglib)
# Breaks KF5 build
BuildConflicts:	libtunepimp-devel

%description
JuK is an audio jukebox application, supporting collections of MP3, Ogg
Vorbis, and FLAC audio files. It allows you to edit the "tags" of your
audio files, and manage your collection and playlists. It's main focus,
in fact, is on music management.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.juk.desktop
%{_kde5_datadir}/juk
%{_kde5_datadir}/knotifications5/juk.notifyrc
%{_kde5_bindir}/juk
%{_kde5_iconsdir}/*/*/apps/juk.*
%{_kde5_xmlguidir}/juk/*
%{_appdatadir}/org.kde.juk.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.juk.collection.xml
%{_datadir}/dbus-1/interfaces/org.kde.juk.player.xml
%{_datadir}/dbus-1/interfaces/org.kde.juk.search.xml
%{_datadir}/kio/servicemenus/jukservicemenu.desktop

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13623 |21mr|jul-to-slf4j-stub-1.0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             jul-to-slf4j-stub
Version:          1.0.1
Release:          8
Summary:          JUL log records SLF4J bridge
Group:            Development/Java
License:          LGPLv2+ and MIT
URL:              http://www.jboss.org/
Source0:          https://github.com/jboss-logging/jul-to-slf4j-stub/archive/%{namedversion}.tar.gz

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    maven-compiler-plugin
BuildRequires:    maven-install-plugin
BuildRequires:    maven-jar-plugin
BuildRequires:    maven-javadoc-plugin
BuildRequires:    maven-enforcer-plugin
BuildRequires:    jboss-parent
BuildRequires:    slf4j

%description
Helper to Bridge/route all JUL log records to the SLF4J API

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13624 |21mr|junit-4.12-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           junit
Epoch:          1
Version:        4.12
Release:        12
Summary:        Java regression test package
License:        EPL-1.0
URL:            http://www.junit.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./clean-tarball.sh %{version}
Source0:        %{name}-%{version}-clean.tar.gz
Source3:        create-tarball.sh

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)

Obsoletes:      %{name}-demo < 4.12
Provides:		junit4 = %{EVRD}

%description
JUnit is a regression testing framework written by Erich Gamma and Kent Beck. 
It is used by the developer who implements unit tests in Java. JUnit is Open
Source Software, released under the Common Public License Version 1.0 and 
hosted on GitHub.

%package manual
Summary:        Manual for %{name}

%description manual
Documentation for %{name}.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-r%{version}

# InaccessibleBaseClassTest fails with Java 8
sed -i /InaccessibleBaseClassTest/d src/test/java/org/junit/tests/AllTests.java

%pom_remove_plugin :replacer
sed s/@version@/%{version}/ src/main/java/junit/runner/Version.java.template >src/main/java/junit/runner/Version.java

%pom_remove_plugin :animal-sniffer-maven-plugin

# Removing hamcrest source jar references (not available and/or necessary)
%pom_remove_plugin :maven-javadoc-plugin

# Add proper Apache Felix Bundle Plugin instructions
# so that we get a reasonable OSGi manifest.
%pom_xpath_inject pom:project "<packaging>bundle</packaging>"
%pom_xpath_inject pom:build/pom:plugins "
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <extensions>true</extensions>
      <configuration>
        <instructions>
          <Bundle-SymbolicName>org.junit</Bundle-SymbolicName>
          <Export-Package>{local-packages},!org.hamcrest*,*;x-internal:=true</Export-Package>
          <_nouses>true</_nouses>
        </instructions>
      </configuration>
    </plugin>"

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-junit.txt README.md

%files javadoc -f .mfiles-javadoc
%doc LICENSE-junit.txt

%files manual
%doc LICENSE-junit.txt
%doc doc/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13625 |21mr|junit5-5.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Component versions, taken from gradle.properties
%global platform_version 1.%(v=%{version}; echo ${v:2})
%global jupiter_version %{version}
%global vintage_version %{version}

# Build with or without the console modules
# Disabled by default due to missing dep: info.picocli:picocli
%bcond_with console

Name:           junit5
Version:        5.4.2
Release:        2
Summary:        Java regression testing framework
License:        EPL-2.0
URL:            http://junit.org/junit5/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/junit-team/junit5/archive/r%{version}/junit5-%{version}.tar.gz

# Aggregator POM (used for packaging only)
Source100:      aggregator.pom
# Platform POMs
Source200:      https://repo1.maven.org/maven2/org/junit/platform/junit-platform-commons/%{platform_version}/junit-platform-commons-%{platform_version}.pom
Source201:      https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console/%{platform_version}/junit-platform-console-%{platform_version}.pom
Source202:      https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/%{platform_version}/junit-platform-console-standalone-%{platform_version}.pom
Source203:      https://repo1.maven.org/maven2/org/junit/platform/junit-platform-engine/%{platform_version}/junit-platform-engine-%{platform_version}.pom
Source205:      https://repo1.maven.org/maven2/org/junit/platform/junit-platform-launcher/%{platform_version}/junit-platform-launcher-%{platform_version}.pom
Source206:      https://repo1.maven.org/maven2/org/junit/platform/junit-platform-runner/%{platform_version}/junit-platform-runner-%{platform_version}.pom
Source207:      https://repo1.maven.org/maven2/org/junit/platform/junit-platform-suite-api/%{platform_version}/junit-platform-suite-api-%{platform_version}.pom
Source208:      https://repo1.maven.org/maven2/org/junit/platform/junit-platform-reporting/%{platform_version}/junit-platform-reporting-%{platform_version}.pom
# Jupiter POMs
Source301:      https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/%{jupiter_version}/junit-jupiter-api-%{jupiter_version}.pom
Source302:      https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-engine/%{jupiter_version}/junit-jupiter-engine-%{jupiter_version}.pom
Source303:      https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-migrationsupport/%{jupiter_version}/junit-jupiter-migrationsupport-%{jupiter_version}.pom
Source304:      https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-params/%{jupiter_version}/junit-jupiter-params-%{jupiter_version}.pom
# Vintage POM
Source400:      https://repo1.maven.org/maven2/org/junit/vintage/junit-vintage-engine/%{vintage_version}/junit-vintage-engine-%{vintage_version}.pom

BuildRequires:  maven-local
BuildRequires:  mvn(com.univocity:univocity-parsers)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apiguardian:apiguardian-api)
BuildRequires:  mvn(org.opentest4j:opentest4j)

%if %{with console}
BuildRequires:  mvn(info.picocli:picocli)
%endif

BuildRequires:  asciidoc

%if %{with console}
# Explicit requires for javapackages-tools since junit5 script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools
%endif

%description
JUnit is a popular regression testing framework for Java platform.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Junit5 API documentation.

%package guide
Summary:        Documentation for %{name}
Requires:       %{name}-javadoc = %{version}-%{release}

%description guide
JUnit 5 User Guide.

%prep
%setup -q -n %{name}-r%{version}
find -name \*.jar -delete

cp -p %{SOURCE100} pom.xml
cp -p %{SOURCE200} junit-platform-commons/pom.xml
cp -p %{SOURCE201} junit-platform-console/pom.xml
cp -p %{SOURCE202} junit-platform-console-standalone/pom.xml
cp -p %{SOURCE203} junit-platform-engine/pom.xml
cp -p %{SOURCE205} junit-platform-launcher/pom.xml
cp -p %{SOURCE206} junit-platform-runner/pom.xml
cp -p %{SOURCE207} junit-platform-suite-api/pom.xml
cp -p %{SOURCE208} junit-platform-reporting/pom.xml
cp -p %{SOURCE301} junit-jupiter-api/pom.xml
cp -p %{SOURCE302} junit-jupiter-engine/pom.xml
cp -p %{SOURCE303} junit-jupiter-migrationsupport/pom.xml
cp -p %{SOURCE304} junit-jupiter-params/pom.xml
cp -p %{SOURCE400} junit-vintage-engine/pom.xml

for pom in $(find -mindepth 2 -name pom.xml); do
    # Set parent to aggregator
    %pom_xpath_inject pom:project "<parent><groupId>org.fedoraproject.xmvn.junit5</groupId><artifactId>aggregator</artifactId><version>1.0.0</version></parent>" $pom
    # OSGi BSN
    bsn=$(sed 's|/pom.xml$||;s|.*/|org.|;s|-|.|g' <<<"$pom")
    %pom_xpath_inject pom:project "<properties><osgi.bsn>${bsn}</osgi.bsn></properties>" $pom
    # Incorrect scope - API guardian is just annotation, needed only during compilation
    %pom_xpath_set -f "pom:dependency[pom:artifactId='apiguardian-api']/pom:scope" provided $pom
done

# Add deps which are shaded by upstream and therefore not present in POMs.
%pom_add_dep net.sf.jopt-simple:jopt-simple:5.0.4 junit-platform-console
%pom_add_dep com.univocity:univocity-parsers:2.5.4 junit-jupiter-params

# Incorrect scope - Junit4 is needed for compilation too, not only runtime.
%pom_xpath_set "pom:dependency[pom:artifactId='junit']/pom:scope" compile junit-vintage-engine

%if %{without console}
# Disable the console modules
%pom_disable_module junit-platform-console
%pom_disable_module junit-platform-console-standalone
%endif

%mvn_package :aggregator __noinstall

%build
%mvn_build -f -- -Dfile.encoding=UTF8

# Build docs.  Ignore exit asciidoc -- it fails for some reason, but
# still produces readable docs.
asciidoc documentation/src/docs/asciidoc/index.adoc || :
ln -s ../../javadoc/junit5 documentation/src/docs/api

%install
%mvn_install

%if %{with console}
%jpackage_script org/junit/platform/console/ConsoleLauncher "" "" junit5:junit:opentest4j:jopt-simple %{name} true
%endif

%files -f .mfiles
%if %{with console}
%{_bindir}/%{name}
%endif
%license LICENSE.md LICENSE-notice.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.md LICENSE-notice.md

%files guide
%doc documentation/src/docs/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13626 |21mr|junit-addons-1.4-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          junit-addons
Version:       1.4
Release:       19
Summary:       JUnitX helper classes for JUnit
License:       ASL 1.1
Url:           http://sourceforge.net/projects/junit-addons/
Source0:       http://sourceforge.net/projects/%{name}/files/JUnit-addons/JUnit-addons%20%{version}/%{name}-%{version}.zip
# from http://junit-addons.cvs.sourceforge.net/viewvc/junit-addons/junit-addons/build.xml?view=markup&pathrev=release_1_4
Source1:       %{name}-build.xml
Source2:       http://mirrors.ibiblio.org/pub/mirrors/maven2/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Patch0:        junit-addons-1.4-enum.patch

BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: apache-commons-logging
BuildRequires: jaxen
BuildRequires: jdom
BuildRequires: junit
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis

Requires:      ant
Requires:      jaxen
Requires:      jdom
Requires:      junit
Requires:      xerces-j2

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JUnit-addons is a collection of helper classes for JUnit. 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

%jar xf src.jar
find . -name "*.class" -delete
find . -type f -name "*.jar" -delete
find . -type f -name "*.zip" -delete

%patch0 -p0

rm -r api
cp -p %{SOURCE1} build.xml

# fix non ASCII chars
for s in src/main/junitx/framework/TestSuite.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

# disable test
# some tests fails with the regenerate test resource
# tests.jar
# tests.zip
sed -i "s| test, ||" build.xml

%build
# regenerate test resource
#(
#  cd src/example
#  mkdir test
#  javac -d test -source 1.4 -target 1.4 $(find . -name "*.java") -cp $(build-classpath junit4)
#  rm test/junitx/example/*.class
#  cp -p junitx/example/packageA/SampleA.txt test/junitx/example/packageA/
#  cp -p junitx/example/packageA/packageB/SampleB.txt test/junitx/example/packageA/packageB/
#  (
#    cd test
#    jar -cf ../tests.jar *
##    zip -r ../tests.zip *
#  )
#  cp -p tests.jar tests.zip
#  rm -r test
#)

export CLASSPATH=
export OPT_JAR_LIST=:
%ant \
  -Dant.build.javac.source=1.6 \
  -Djdom.jar=$(build-classpath jdom) \
  -Djaxen.jar=$(build-classpath jaxen) \
  -Dsaxpath.jar=$(build-classpath jaxen) \
  -Dant.jar=$(build-classpath ant.jar) \
  -Djunit.jar=$(build-classpath junit) \
  -Dxerces.jar=$(build-classpath xerces-j2) \
  -Dxml-apis.jar=$(build-classpath xml-commons-apis) \
  -Dcommons-logging.jar=$(build-classpath commons-logging) \
  -Dproject.name=%{name} \
  -Dproject.version=%{version} \
  release

%install
%mvn_file : %{name}
%mvn_artifact %{SOURCE2} dist/%{name}-%{version}.jar

%mvn_install -J build/api

%files -f .mfiles
%doc README WHATSNEW
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13627 |21mr|junitperf-1.9.1-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2007, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           junitperf
Version:        1.9.1
Release:        23
Summary:        JUnit extension for performance and scalability testing
License:        BSD
Source0:        http://www.clarkware.com/software/junitperf-1.9.1.zip
Source1:        https://repository.jboss.org/nexus/content/repositories/thirdparty-uploads/junitperf/junitperf/%{version}/junitperf-%{version}.pom
URL:            http://www.clarkware.com/software/JUnitPerf.html
BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  java-devel
BuildRequires:  javapackages-local
BuildRequires:  junit >= 3.2
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Requires:       junit >= 3.2

%description
JUnitPerf is a collection of JUnit test decorators used to measure the
performance and scalability of functionality contained within existing
JUnit tests.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%package demo
Summary:        Demos and samples for %{name}
Requires:       %{name} = %{version}-%{release}

%description demo
%{summary}.

%prep
%setup -q -n %{name}-%{version}

# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;

%build
CLASSPATH=$(build-classpath junit) ant -Dbuild.sysclasspath=first jar test javadoc

# request maven artifact installation
%mvn_artifact %{SOURCE1} dist/junitperf-%{version}.jar

%install
%mvn_install

# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name}

# demo
install -d -m 0755 %{buildroot}%{_datadir}/%{name}
cp -pr samples %{buildroot}%{_datadir}/%{name}

%files -f .mfiles
%doc LICENSE README docs/JUnitPerf.html

%files javadoc
%doc LICENSE
%{_javadocdir}/%{name}

%files demo
%doc LICENSE
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13628 |21mr|juniversalchardet-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 3fd330c443272699cd8ba5d7da7e56c27a567ec1
Name:          juniversalchardet
Version:       1.0.3
Release:       13
Summary:       A Java port of Mozilla's universalchardet
# ALL files are under MPL (v1.1) GPL license
# build.xml and c/* under MPL 1.1/GPL 2.0/LGPL 2.1 license
License:       MPLv1.1 or GPLv2+ or LGPLv2+
URL:           https://github.com/thkoch2001/juniversalchardet
Source0:       https://github.com/thkoch2001/juniversalchardet/archive/%{githash}/%{name}-%{githash}.tar.gz
Source1:       http://repo1.maven.org/maven2/com/googlecode/%{name}/%{name}/%{version}/%{name}-%{version}.pom
# added javadoc task
# fix example build
Patch0:        %{name}-1.0.3-build.patch

BuildRequires: ant
BuildRequires: java-devel
BuildRequires: javapackages-local

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
juniversalchardet is a Java port of 'universalchardet',
that is the encoding detector library of Mozilla.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
find . -name "*.class" -delete
find . -name "*.jar" -delete

%patch0 -p0

sed -i 's/1.5/1.6/' build.xml

sed -i 's/\r//' readme.txt

%build

%ant dist javadoc example

%install
%mvn_artifact %{SOURCE1} dist/%{name}-%{version}.jar
%mvn_file com.googlecode.%{name}:%{name} %{name}
%mvn_install -J dist/docs

install -pm 644 dist/%{name}-example-%{version}.jar \
 %{buildroot}%{_javadir}/%{name}-example.jar

%files -f .mfiles
%{_javadir}/%{name}-example.jar
%doc readme.txt
%license MPL-1.1.txt

%files javadoc -f .mfiles-javadoc
%license MPL-1.1.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13629 |21mr|jvnet-parent-4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jvnet-parent
Version:        4
Release:        13
Summary:        Java.net parent POM file

License:        ASL 2.0
URL:            http://www.java.net
Source0:        http://repo1.maven.org/maven2/net/java/%{name}/%{version}/%{name}-%{version}.pom
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  jpackage-utils
BuildRequires:  maven-local
BuildRequires:  maven-enforcer-plugin


%description
Java.net parent POM file used by most Java.net subprojects such as
Glassfish

%prep
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} LICENSE
# we provide correct version of maven, no need to enforce and pull in dependencies
%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13630 |21mr|jwnl-1.4-0.8.rc3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -rc3
%global namedversion %{version}%{?namedreltag}
Name:          jwnl
Version:       1.4
Release:       0.8.rc3
Summary:       Java API for accessing the WordNet relational dictionary
License:       BSD
URL:           https://sourceforge.net/projects/jwordnet/
# Source0:       http://downloads.sourceforge.net/jwordnet/jwnl14-rc2.zip
# svn checkout svn://svn.code.sf.net/p/jwordnet/code/trunk/jwnl/  jwnl-1.4-rc3
# tar cJf jwnl-1.4-rc3.tar.xz jwnl-1.4-rc3
Source0:       %{name}-%{namedversion}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(junit:junit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JWNL is a Java API for accessing the WordNet relational dictionary.
WordNet is widely used for developing NLP applications, and a Java
API such as JWNL will allow developers to more easily use Java for
building NLP applications.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

sed -i 's/\r//' changes.txt doc/*

%mvn_file :%{name} %{name}
%mvn_alias %{name}: net.sf.jwordnet:

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc changes.txt doc/*
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13631 |21mr|jxmpp-0.4.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash ffd7bd4f3bece632c3bb0e8e30a2a1195946e0df

%global namedreltag %nil
%global namedversion %{version}%{?namedreltag}

Name:          jxmpp
Version:       0.4.2
Release:       9
Summary:       An Open Source XMPP Java base-library
License:       ASL 2.0
URL:           https://github.com/igniterealtime/jxmpp
Source0:       https://github.com/igniterealtime/jxmpp/archive/%{githash}/%{name}-%{githash}.tar.gz

Source1:       http://repo1.maven.org/maven2/org/jxmpp/jxmpp-core/%{namedversion}/jxmpp-core-%{namedversion}.pom
Source2:       http://repo1.maven.org/maven2/org/jxmpp/jxmpp-jid/%{namedversion}/jxmpp-jid-%{namedversion}.pom
Source4:       http://repo1.maven.org/maven2/org/jxmpp/jxmpp-stringprep-libidn/%{namedversion}/jxmpp-stringprep-libidn-%{namedversion}.pom
Source5:       http://repo1.maven.org/maven2/org/jxmpp/jxmpp-util-cache/%{namedversion}/jxmpp-util-cache-%{namedversion}.pom

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.gnu.inet:libidn)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JXMPP is an Open Source Java base library for XMPP. It
provides often used functionality needed to build a XMPP stack.

%package core
Summary:       JXMPP Core

%description core
JXMPP core components.

%package jid
Summary:       JXMPP JID

%description jid
JID classes from JXMPP.

%package stringprep-libidn
Summary:       JXMPP Stringprep Libidn

%description stringprep-libidn
JXMPP Stringprep with libidn.

%package util-cache
Summary:       JXMPP Util Cache

%description util-cache
A minimalistic and efficient bounded LRU Cache
with optional expiration.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
# cleanup
find . -name "*.class" -print -delete
find . -name "*.dll" -print -delete
find . -name "*.jar" -print  -delete

cp -p %{SOURCE1} %{name}-core/pom.xml
cp -p %{SOURCE2} %{name}-jid/pom.xml
cp -p %{SOURCE4} %{name}-stringprep-libidn/pom.xml
cp -p %{SOURCE5} %{name}-util-cache/pom.xml

# This is a dummy POM added just to ease building in the RPM platforms
cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.jxmpp</groupId>
  <artifactId>jxmpp-parent</artifactId>
  <version>%{namedversion}</version>
  <packaging>pom</packaging>
  <name>jxmpp parent</name>
  <modules>
    <module>jxmpp-core</module>
    <module>jxmpp-stringprep-libidn</module>
    <module>jxmpp-jid</module>
    <module>jxmpp-util-cache</module>
  </modules>
</project>
EOF

for p in core jid stringprep-libidn util-cache;do

%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" %{name}-${p}
%pom_xpath_set "pom:name" "JXMPP ${p}" %{name}-${p}
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 %{name}-${p} "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Name>\${project.artifactId}</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.3 %{name}-${p} "
<configuration>
 <source>1.7</source>
 <target>1.7</target>
 <encoding>UTF-8</encoding>
</configuration>"

done

%mvn_package :%{name}-parent __noinstall

%mvn_alias org.jxmpp: org.igniterealtime.jxmpp:

%build

%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files core -f .mfiles-%{name}-core
%license LICENSE

%files jid -f .mfiles-%{name}-jid
%license LICENSE

%files stringprep-libidn -f .mfiles-%{name}-stringprep-libidn
%license LICENSE

%files util-cache -f .mfiles-%{name}-util-cache
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13632 |21mr|jxrlib-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libjpegxr %mklibname jpegxr %{major}
%define libjxrglue %mklibname jxrglue %{major}
%define devname %mklibname %{name} -d

%define oversion %(echo %{version} | tr . _)

Summary:	Open source implementation of jpegxr
Name:		jxrlib
Version:	1.1
Release:	3
Group:		System/Libraries
# See JPEGXR_DPK_Spec_1.0.doc. Upstream request for plain text license file at
# https://jxrlib.codeplex.com/workitem/13
License:	BSD
Url:		https://jxrlib.codeplex.com/
Source0:	http://jxrlib.codeplex.com/downloads/get/685249/jxrlib_%{oversion}.tar.gz
# Use CMake to build to facilitate creation of shared libraries
# See https://jxrlib.codeplex.com/workitem/13
Source1:	CMakeLists.txt
# Converted from shipped doc/JPEGXR_DPK_Spec_1.doc
# libreoffice --headless --convert-to pdf doc/JPEGXR_DPK_Spec_1.0.doc
Source2:	JPEGXR_DPK_Spec_1.0.pdf

# Fix various warnings, upstreamable
# See https://jxrlib.codeplex.com/workitem/13
Patch0:		jxrlib_warnings.patch
BuildRequires:	cmake

%description
This is an open source implementation of the jpegxr image format standard.

#----------------------------------------------------------------------------

%package -n %{libjpegxr}
Summary:	Open source implementation of jpegxr
Group:		System/Libraries

%description -n %{libjpegxr}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{libjpegxr}
%{_libdir}/libjpegxr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libjxrglue}
Summary:	Open source implementation of jpegxr
Group:		System/Libraries

%description -n %{libjxrglue}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{libjxrglue}
%{_libdir}/libjxrglue.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libjpegxr} = %{EVRD}
Requires:	%{libjxrglue} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc doc/readme.txt doc/JPEGXR_DPK_Spec_1.0.pdf
%{_bindir}/JxrEncApp
%{_bindir}/JxrDecApp
%{_includedir}/%{name}/
%{_libdir}/libjpegxr.so
%{_libdir}/libjxrglue.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

# Sanitize charset and line endings
for file in `find . -type f -name '*.c' -or -name '*.h' -or -name '*.txt'`; do
  iconv --from=ISO-8859-15 --to=UTF-8 $file > $file.new && \
  sed -i 's|\r||g' $file.new && \
  touch -r $file $file.new && mv $file.new $file
done

%patch0 -p1

# Remove shipped binaries
rm -rf bin

cp -a %{SOURCE1} .
cp -a %{SOURCE2} doc

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13633 |21mr|jython-2.7.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global scm_tag            v2.7.1

# Turn off the brp-python-bytecompile script
# We generate JVM bytecode instead
%global __os_install_post %(echo '%{__os_install_post}' | sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g')

Name:                      jython
Version:                   2.7.1
Release:                   9
Summary:                   A Java implementation of the Python language
License:                   ASL 1.1 and BSD and CNRI and JPython and Python
URL:                       http://www.jython.org/

# Whether to use RPM build wheels from the python-{pip,setuptools}-wheel package
# Those wheels are used for the ensurepip module and are bundled with upstream
# source tarball. We remove them and depend on packages that bring wheels built
# in Fedora. When turned off (set to "with"), bundled wheels are used.
%bcond_without rpmwheels

# Use the included fetch-jython.sh script to generate the source drop
# Usage: sh fetch-jython.sh %%{scm_tag}
Source0:                   jython-%{scm_tag}.tar.xz
Source1:                   fetch-jython.sh

# Make the cache dir be in the user's home
Patch0:                    jython-cachedir.patch
# Avoid rebuilding and validating poms when installing maven stuff and don't gpg sign
Patch1:                    jython-dont-validate-pom.patch
# Dep for this feature is not yet in Fedora
Patch2:                    jython-no-carrotsearch-sizeof.patch
# Tweak launcher script
Patch3:                    jython-launcher.patch
# Fix failure with "import multiprocessing"
Patch4:                    jython-fix-multiprocessing.patch
# Fix tty detection
Patch5:                    jython-fix-tty-detection.patch
# Instead of bundled wheels, use our RPM packaged wheels from
# /usr/share/python-wheels
# This patch chnages the location where Jython searches the wheels for enserepip
Patch189:                  jython-use-rpm-wheels.patch

Requires:                  antlr32-java
Requires:                  apache-commons-compress
Requires:                  bouncycastle
Requires:                  bouncycastle-pkix
Requires:                  guava
Requires:                  objectweb-asm
Requires:                  jctools >= 2.0.2
Requires:                  jnr-constants
Requires:                  jnr-ffi
Requires:                  jnr-netdb
Requires:                  jnr-posix
Requires:                  jffi
Requires:                  jffi-native
Requires:                  jline
Requires:                  jansi
Requires:                  icu4j
Requires:                  netty >= 4.1.13
Requires:                  xerces-j2
# We build with ant, but install with maven
BuildRequires:             javapackages-local
BuildRequires:             ant
BuildRequires:             ant-junit
BuildRequires:             glassfish-servlet-api
BuildRequires:             antlr32-tool
BuildRequires:             apache-commons-compress
BuildRequires:             bouncycastle
BuildRequires:             bouncycastle-pkix
BuildRequires:             guava
BuildRequires:             objectweb-asm
BuildRequires:             jctools >= 2.0.2
BuildRequires:             jnr-constants
BuildRequires:             jnr-ffi
BuildRequires:             jnr-netdb
BuildRequires:             jnr-posix
BuildRequires:             jffi
BuildRequires:             jffi-native
BuildRequires:             jline
BuildRequires:             jansi
BuildRequires:             icu4j
BuildRequires:             netty >= 4.1.13
BuildRequires:             xerces-j2

%if %{with rpmwheels}
BuildRequires: pythonegg(setuptools)
BuildRequires: pythonegg(pip)
Requires: pythonegg(setuptools)
Requires: pythonegg(pip)
%else
Provides: bundled(python2-pip) = 9.0.1
Provides: bundled(python2-setuptools) = 28.8.0
%endif

Group:          Development/Java
BuildArch:                 noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Jython is an implementation of the high-level, dynamic, object-oriented
language Python seamlessly integrated with the Java platform. The
predecessor to Jython, JPython, is certified as 100% Pure Java. Jython is
freely available for both commercial and non-commercial use and is
distributed with source code. Jython is complementary to Java and is
especially suited for the following tasks: Embedded scripting - Java
programmers can add the Jython libraries to their system to allow end
users to write simple or complicated scripts that add functionality to the
application. Interactive experimentation - Jython provides an interactive
interpreter that can be used to interact with Java packages or with
running Java applications. This allows programmers to experiment and debug
any Java system using Jython. Rapid application development - Python
programs are typically 2-10X shorter than the equivalent Java program.
This translates directly to increased programmer productivity. The
seamless interaction between Python and Java allows developers to freely
mix the two languages both during development and in shipping products.

%package javadoc
Summary:           Javadoc for %{name}
# Obsoletes/Provides added in F25
Obsoletes:         %{name}-manual = %{version}-%{release}
Provides:          %{name}-manual < %{version}-%{release}

%description javadoc
API documentation for %{name}.

%package demo
Summary:           Demo for %{name}
Requires:          %{name} = %{version}-%{release}

%description demo
Demonstrations and samples for %{name}.

%prep
%setup -q -n jython-%{scm_tag}
%patch2 -R -p1
%patch0
%patch1
%patch3
%patch4 -p1
%patch5

%if %{with rpmwheels}
%patch189 -p1
rm Lib/ensurepip/_bundled/*.whl
rmdir Lib/ensurepip/_bundled
%endif

rm -rf extlibs/*

# Disable doclint to fix javadoc generation
sed -i -e '/<javadoc/a additionalparam="-Xdoclint:none"' build.xml

# Broader guava compatibility
sed -i -e 's/CharMatcher\.ascii()/CharMatcher.ASCII/' \
  src/org/python/core/PyUnicode.java \
  src/org/python/core/PyBaseCode.java \
  src/org/python/core/Py.java

%build
# Symlink build-time libs
build-jar-repository -p -s extlibs \
  antlr32/antlr antlr32/antlr-runtime stringtemplate antlr \
  jffi jffi-native jnr-constants jnr-ffi jnr-netdb jnr-posix jline/jline jansi/jansi icu4j/icu4j \
  glassfish-servlet-api guava objectweb-asm/asm objectweb-asm/asm-commons objectweb-asm/asm-util \
  commons-compress junit hamcrest/core

ant \
  -Djython.dev.jar=jython.jar \
  -Dhas.repositories.connection=false \
  javatest javadoc

# remove shebangs from python files
find dist -type f -name '*.py' | xargs sed -i "s:#!\s*/usr.*::"

pushd maven
# generate maven pom
ant -Dproject.version=%{version} install
popd

# Symlink run-time libs
rm dist/javalib/*.jar
build-jar-repository -p -s dist/javalib antlr32/antlr-runtime-3.2 \
  objectweb-asm/asm objectweb-asm/asm-commons objectweb-asm/asm-util guava icu4j/icu4j \
  jffi jffi-native jnr-constants jnr-ffi jnr-netdb jnr-posix jline/jline jansi/jansi \
  netty/netty-buffer netty/netty-codec netty/netty-common netty/netty-handler netty/netty-resolver netty/netty-transport \
  jctools/jctools-core apache-commons-compress bcprov bcpkix xerces-j2

# request maven artifact installation
%mvn_artifact build/maven/jython-%{version}.pom dist/jython.jar
%mvn_alias org.python:jython org.python:jython-standalone

%install
# install maven artifacts
%mvn_install -J dist/Doc/javadoc

# jython home dir
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
ln -s %{_javadir}/%{name}/jython.jar $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr dist/javalib $RPM_BUILD_ROOT%{_datadir}/%{name}
rm dist/bin/jython_regrtest.bat
cp -pr dist/bin $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 dist/registry $RPM_BUILD_ROOT%{_datadir}/%{name}
# libs without tests
rm -rf dist/Lib/{distutils/tests,email/test,json/tests,test,unittest/test}
cp -pr dist/Lib $RPM_BUILD_ROOT%{_datadir}/%{name}
# demo
cp -pr Demo $RPM_BUILD_ROOT%{_datadir}/%{name}
# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}/Doc
ln -s %{_javadocdir}/%{name} $RPM_BUILD_ROOT%{_datadir}/%{name}/Doc/javadoc

# scripts
install -d $RPM_BUILD_ROOT%{_bindir}
ln -s %{_datadir}/%{name}/bin/jython $RPM_BUILD_ROOT%{_bindir}

%files -f .mfiles
%doc ACKNOWLEDGMENTS NEWS README.txt
%license LICENSE.txt
%attr(0755,root,root) %{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/bin
%{_datadir}/%{name}/javalib
%{_datadir}/%{name}/jython.jar
%{_datadir}/%{name}/Lib
%{_datadir}/%{name}/registry

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt
%{_datadir}/%{name}/Doc

%files demo
%license LICENSE.txt
%{_datadir}/%{name}/Demo


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13634 |21mr|jzlib-1.1.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           jzlib
Version:        1.1.3
Release:        11
Epoch:          0
Summary:        Re-implementation of zlib in pure Java
License:        BSD
URL:            http://www.jcraft.com/jzlib/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Source0:        https://github.com/ymnk/jzlib/archive/%{version}.tar.gz

# This patch is sent upstream: https://github.com/ymnk/jzlib/pull/15
Patch0:         jzlib-javadoc-fixes.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%description
The zlib is designed to be a free, general-purpose, legally unencumbered 
-- that is, not covered by any patents -- loss-less data-compression 
library for use on virtually any computer hardware and operating system. 
The zlib was written by Jean-loup Gailly (compression) and Mark Adler 
(decompression). 

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.

%package        demo
Summary:        Examples for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description    demo
%{summary}.

%prep
%setup -q
%patch0

# Make into OSGi bundle
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin "org.apache.felix:maven-bundle-plugin" . "<extensions>true</extensions>"

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

# examples
install -dm 755 %{buildroot}%{_datadir}/%{name}
cp -pr example/* %{buildroot}%{_datadir}/%{name}

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt

%files demo
%doc %{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13635 |21mr|k3b-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CD-Burner for KDE
Name:		k3b
Version:	23.08.4
Release:	1
Epoch:		4
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/blinken/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	k3b-docbook-ru.tar.bz2
Patch0:		k3b-2.0.3-always-use-growisofs-for-dvd.patch
Patch1:		k3b-17.12.3-comment_ru.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	ffmpeg-devel
BuildRequires:	lame-devel
BuildRequires:	libmpcdec-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5cddb-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kcmutils-devel
# For docbook-ru only
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(flac++)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(vorbis)
Recommends:	cdrdao
Requires:	cdrskin
Requires:	dvd+rw-tools
Requires:	mkisofs
Requires:	normalize
Requires:	sox
Requires:	vcdimager
Recommends:	transсode

%description
K3b is CD-writing software which intends to be feature-rich and
provide an easily usable interface. Features include burning
audio CDs from .WAV and .MP3 audio files, configuring external
programs and configuring devices.

%files -f %{name}.lang
%doc README.txt
%{_kde5_applicationsdir}/org.kde.k3b.desktop
%{_kde5_bindir}/k3b
%{_kde5_datadir}/k3b
%{_kde5_datadir}/konqsidebartng/virtual_folders/services/videodvd.desktop
%{_kde5_datadir}/solid/actions/k3b_audiocd_rip.desktop
%{_kde5_datadir}/solid/actions/k3b_copy_disc.desktop
%{_kde5_datadir}/solid/actions/k3b_create_audio_cd_from_blank_medium.desktop
%{_kde5_datadir}/solid/actions/k3b_create_data_project_from_blank_medium.desktop
%{_kde5_datadir}/solid/actions/k3b_videodvd_rip.desktop
%{_kde5_datadir}/dbus-1/system-services/org.kde.k3b.service
%{_kde5_datadir}/dbus-1/system.d/org.kde.k3b.conf
%{_kde5_datadir}/polkit-1/actions/org.kde.k3b.policy
%{_kde5_datadir}/knsrcfiles/k3btheme.knsrc
%{_kde5_datadir}/qlogging-categories5/k3b.categories
%{_kde5_iconsdir}/*/*/apps/k3b.*
%{_kde5_iconsdir}/*/*/mimetypes/application-x-k3b.*
%{_kde5_notificationsdir}/k3b.notifyrc
%{_kde5_libexecdir}/kauth/k3bhelper
%{_kde5_services}/ServiceMenus/k3b_create_audio_cd.desktop
%{_kde5_services}/ServiceMenus/k3b_create_data_project.desktop
%{_kde5_services}/ServiceMenus/k3b_create_video_cd.desktop
%{_kde5_services}/ServiceMenus/k3b_write_bin_image.desktop
%{_kde5_services}/ServiceMenus/k3b_write_iso_image.desktop
%{_kde5_servicetypes}/k3bplugin.desktop
%{_kde5_xmlguidir}/k3b/
%{_appdatadir}/org.kde.k3b.appdata.xml
%{_datadir}/mime/packages/x-k3b.xml
%{_qt5_plugindir}/k3b_plugins/k3baudiometainforenamerplugin.so
%{_qt5_plugindir}/k3b_plugins/k3baudioprojectcddbplugin.so
%{_qt5_plugindir}/k3b_plugins/k3bexternalencoder.so
%{_qt5_plugindir}/k3b_plugins/k3bffmpegdecoder.so
%{_qt5_plugindir}/k3b_plugins/k3bflacdecoder.so
%{_qt5_plugindir}/k3b_plugins/k3blameencoder.so
%{_qt5_plugindir}/k3b_plugins/k3blibsndfiledecoder.so
%{_qt5_plugindir}/k3b_plugins/k3bmaddecoder.so
%{_qt5_plugindir}/k3b_plugins/k3bmpcdecoder.so
%{_qt5_plugindir}/k3b_plugins/k3boggvorbisdecoder.so
%{_qt5_plugindir}/k3b_plugins/k3boggvorbisencoder.so
%{_qt5_plugindir}/k3b_plugins/k3bsoxencoder.so
%{_qt5_plugindir}/k3b_plugins/k3bwavedecoder.so
%{_qt5_plugindir}/k3b_plugins/kcms/kcm_k3bexternalencoder.so
%{_qt5_plugindir}/k3b_plugins/kcms/kcm_k3blameencoder.so
%{_qt5_plugindir}/k3b_plugins/kcms/kcm_k3boggvorbisencoder.so
%{_qt5_plugindir}/k3b_plugins/kcms/kcm_k3bsoxencoder.so
%{_qt5_plugindir}/kf5/kio/videodvd.so

#------------------------------------------------

%define k3b_major 8
%define libk3b %mklibname k3blib %{k3b_major}

%package -n %{libk3b}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libk3b}
Shared library for %{name}.

%files -n %{libk3b}
%{_kde5_libdir}/libk3blib.so.%{k3b_major}*

#----------------------------------------------------------------------

%define k3bdevice_major 8
%define libk3bdevice %mklibname k3bdevice %{k3bdevice_major}

%package -n %{libk3bdevice}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libk3bdevice}
Shared library for %{name}.

%files -n %{libk3bdevice}
%{_kde5_libdir}/libk3bdevice.so.%{k3bdevice_major}*

#----------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libk3bdevice} = %{EVRD}
Requires:	%{libk3b} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 4:17.04
Obsoletes:	%{name}-devel < 4:17.04

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_kde5_includedir}/*.h
%{_kde5_libdir}/libk3blib.so
%{_kde5_libdir}/libk3bdevice.so

#----------------------------------------------------------------------

%prep
%setup -q -a1
%patch0 -p1
%patch1 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} kio_videodvd libk3b libk3bdevice %{name}.lang --with-kde --with-html



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13636 |21mr|kaccounts-integration-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Plasma 5 Internet accounts integration module
Name:		kaccounts-integration
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	qcoro-qt5-devel
BuildRequires:	pkgconfig(accounts-qt5)
BuildRequires:	pkgconfig(libaccounts-glib)
BuildRequires:	pkgconfig(libsignon-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	signon
Requires:	signon-ui
Requires:	signon-plugin-oauth2

%description
Plasma 5 Internet accounts integration module.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kcm_kaccounts.desktop
%{_kde5_plugindir}/kded/kded_accounts.so
%{_qt5_plugindir}/kaccounts/daemonplugins/kaccounts_kio_webdav_plugin.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kaccounts.so
%{_kde5_datadir}/kpackage/kcms/kcm_kaccounts/contents/ui/AccountDetails.qml
%{_kde5_datadir}/kpackage/kcms/kcm_kaccounts/contents/ui/AvailableAccounts.qml
%{_kde5_datadir}/kpackage/kcms/kcm_kaccounts/contents/ui/MessageBoxSheet.qml
%{_kde5_datadir}/kpackage/kcms/kcm_kaccounts/contents/ui/RemoveAccountDialog.qml
%{_kde5_datadir}/kpackage/kcms/kcm_kaccounts/contents/ui/RenameAccountDialog.qml
%{_kde5_datadir}/kpackage/kcms/kcm_kaccounts/contents/ui/main.qml

#--------------------------------------------------------------------

%define qmlkaccounts %mklibname kaccounts-qml

%package -n %{qmlkaccounts}
Summary:	QML plugin for Plasma 5 Internet accounts integration module
Group:		System/Libraries
Provides:	kaccounts-qml = %{EVRD}

%description -n %{qmlkaccounts}
QML plugin for Plasma 5 Internet accounts integration module.

%files -n %{qmlkaccounts}
%dir %{_kde5_qmldir}/org/kde/kaccounts/
%{_kde5_qmldir}/org/kde/kaccounts/*

#----------------------------------------------------------------------------

%define kaccounts_major 2
%define libkaccounts %mklibname kaccounts %{kaccounts_major}

%package -n %{libkaccounts}
Summary:	Plasma 5 Internet accounts integration shared library
Group:		System/Libraries
Requires:	%{qmlkaccounts}

%description -n %{libkaccounts}
Plasma 5 Internet accounts integration shared library.

%files -n %{libkaccounts}
%{_kde5_libdir}/libkaccounts.so.%{kaccounts_major}
%{_kde5_libdir}/libkaccounts.so.%{version}

#----------------------------------------------------------------------------

%define devkaccounts %mklibname kaccounts -d

%package -n %{devkaccounts}
Summary:	Development files for Plasma 5 Internet accounts integration module
Group:		Development/KDE and Qt
Requires:	%{libkaccounts} = %{EVRD}
Requires:	intltool
Provides:	%{name}-devel = %{EVRD}
Provides:	kaccounts-devel = %{version}

%description -n %{devkaccounts}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkaccounts}
%{_kde5_includedir}/KAccounts
%{_kde5_libdir}/cmake/KAccounts
%{_kde5_libdir}/libkaccounts.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13637 |21mr|kaccounts-providers-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Plasma 5 Internet accounts providers module
Name:		kaccounts-providers
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	intltool
BuildRequires:	kaccounts-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5package-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Plasma 5 Internet accounts providers module.

%files -f %{name}.lang
%{_kde5_datadir}/accounts/providers/kde/google.provider
%{_kde5_datadir}/accounts/providers/kde/owncloud.provider
%{_kde5_datadir}/accounts/providers/kde/nextcloud.provider
%dir %{_kde5_datadir}/kpackage/genericqml/org.kde.kaccounts.owncloud/
%dir %{_kde5_datadir}/kpackage/genericqml/org.kde.kaccounts.nextcloud/
%{_kde5_datadir}/kpackage/genericqml/org.kde.kaccounts.owncloud/*
%{_kde5_datadir}/kpackage/genericqml/org.kde.kaccounts.nextcloud/*
%{_kde5_sysconfdir}/signon-ui/webkit-options.d/accounts.google.com.conf
%{_kde5_sysconfdir}/signon-ui/webkit-options.d/api.twitter.com.conf
%{_kde5_sysconfdir}/signon-ui/webkit-options.d/identi.ca.conf
%{_kde5_sysconfdir}/signon-ui/webkit-options.d/www.facebook.com.conf
%{_qt5_plugindir}/kaccounts/ui/owncloud_plugin_kaccounts.so
%{_qt5_plugindir}/kaccounts/ui/nextcloud_plugin_kaccounts.so
%{_datadir}/icons/hicolor/256x256/apps/kaccounts-owncloud.png
%{_datadir}/icons/hicolor/scalable/apps/kaccounts-nextcloud.svg
%{_datadir}/accounts/services/kde/nextcloud-contacts.service
%{_datadir}/accounts/services/kde/nextcloud-storage.service
%{_datadir}/accounts/services/kde/owncloud-storage.service
%if %{mdvver} >= 201610
%{_appdatadir}/org.kde.kaccounts.owncloud.appdata.xml
%{_appdatadir}/org.kde.kaccounts.nextcloud.appdata.xml
%endif


#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13638 |21mr|kactivities-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 user work in separate activities organization module
Name:		kactivities
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5windowsystem-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 user work in separate activities organization module.

KActivities provides the infrastructure needed to manage a user's activites,
allowing them to switch between tasks, and for applications to update their
state to match the user's current activity. This includes a daemon, a library
for interacting with that daemon, and plugins for integration with other
frameworks.

%files
%{_kde5_bindir}/kactivities-cli
%{_kde5_datadir}/qlogging-categories5/kactivities.categories
%{_kde5_datadir}/qlogging-categories5/kactivities.renamecategories

#----------------------------------------------------------------------------

%define qmlkf5activities %mklibname kf5activities-qml

%package -n %{qmlkf5activities}
Summary:	QML plugin for KDE Frameworks 5 KActivities
Group:		System/Libraries
Provides:	kf5activities-qml = %{EVRD}

%description -n %{qmlkf5activities}
QML plugin for KDE Frameworks 5 KActivities.

%files -n %{qmlkf5activities}
%dir %{_kde5_qmldir}/org/kde/activities/
%{_kde5_qmldir}/org/kde/activities/*

#----------------------------------------------------------------------------

%define kf5activities_major 5
%define libkf5activities %mklibname kf5activities %{kf5activities_major}

%package -n %{libkf5activities}
Summary:	KDE Frameworks 5 separate activities shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{qmlkf5activities} = %{EVRD}
Obsoletes:	kactivities-i18n < 5.20.0

%description -n %{libkf5activities}
KDE Frameworks 5 separate activities shared library.

%files -n %{libkf5activities}
%{_kde5_libdir}/libKF5Activities.so.%{kf5activities_major}*

#----------------------------------------------------------------------------

%define devkf5activities %mklibname kf5activities -d

%package -n %{devkf5activities}
Summary:	Development files for KDE Frameworks 5 separate activities module
Group:		Development/KDE and Qt
Requires:	%{libkf5activities} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5activities-devel = %{version}

%description -n %{devkf5activities}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5activities}
%{_kde5_includedir}/KF5/KActivities
%{_kde5_libdir}/cmake/KF5Activities
%{_kde5_libdir}/pkgconfig/libKActivities.pc
%{_kde5_libdir}/libKF5Activities.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13639 |21mr|kactivities-stats-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 activities usage statistics module
Name:		kactivities-stats
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5activities-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 activities usage statistics module.

%files
%{_datadir}/qlogging-categories5/kactivities-stats.categories
%{_datadir}/qlogging-categories5/kactivities-stats.renamecategories

#----------------------------------------------------------------------------

%define kf5activitiesstats_major 1
%define libkf5activitiesstats %mklibname kf5activitiesstats %{kf5activitiesstats_major}

%package -n %{libkf5activitiesstats}
Summary:	KDE Frameworks 5 activities usage statistics shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5activitiesstats}
KDE Frameworks 5 activities usage statistocs shared library.

%files -n %{libkf5activitiesstats}
%{_kde5_libdir}/libKF5ActivitiesStats.so.%{kf5activitiesstats_major}
%{_kde5_libdir}/libKF5ActivitiesStats.so.%{version}

#----------------------------------------------------------------------------

%define devkf5activitiesstats %mklibname kf5activitiesstats -d

%package -n %{devkf5activitiesstats}
Summary:	Development files for KDE Frameworks 5 activities usage statistics module
Group:		Development/KDE and Qt
Requires:	%{libkf5activitiesstats} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5activitiesstats-devel = %{version}

%description -n %{devkf5activitiesstats}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5activitiesstats}
%{_kde5_includedir}/KF5/KActivitiesStats
%{_kde5_libdir}/cmake/KF5ActivitiesStats
%{_kde5_libdir}/pkgconfig/libKActivitiesStats.pc
%{_kde5_libdir}/libKF5ActivitiesStats.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13640 |21mr|kactivitymanagerd-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 user work in separate activities organization module
Name:		kactivitymanagerd
Version:	5.27.11
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Patch0:		kactivitymanagerd-5.14.4-soname.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
# There are file conflicts with KDE4 package
Conflicts:	libkactivities
# This package was split from KF kactivities since KF 5.20
Conflicts:	kactivities < 5.20
Obsoletes:	kactivities < 5.20
Conflicts:	kactivities-i18n < 5.20

%description
Plasma 5 user work in separate activities organization module.

KActivities provides the infrastructure needed to manage a user's activites,
allowing them to switch between tasks, and for applications to update their
state to match the user's current activity. This includes a daemon, a library
for interacting with that daemon, and plugins for integration with other
frameworks.

%files -f kactivities5.lang
%{_kde5_datadir}/qlogging-categories5/kactivitymanagerd.categories
%{_kde5_libexecdir}/kactivitymanagerd
%{_datadir}/dbus-1/services/org.kde.ActivityManager.service
%{_datadir}/krunner/dbusplugins/plasma-runnners-activities.desktop
%{_kde5_services}/kactivitymanagerd.desktop
%{_qt5_plugindir}/kactivitymanagerd/*/*.so
%{_userunitdir}/plasma-kactivitymanagerd.service

#----------------------------------------------------------------------------

%define plugin_major 5
%define libkactivitymanagerd_plugin %mklibname kactivitymanagerd_plugin %{plugin_major}

%package -n %{libkactivitymanagerd_plugin}
Summary:	KDE Frameworks 5 separate activities shared library (private)
Group:		System/Libraries

%description -n %{libkactivitymanagerd_plugin}
KDE Frameworks 5 separate activities shared library (private).

%files -n %{libkactivitymanagerd_plugin}
%{_kde5_libdir}/libkactivitymanagerd_plugin.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kactivities5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13641 |21mr|kaddressbook-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE addressbook application
Name:		kaddressbook
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	gpgmepp-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadisearch-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5grantleetheme-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5prison-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	grantlee-editor
Requires:	plasma5-kdepim-runtime
Recommends:	plasma5-kdepim-addons

%description
KDE addressbook application.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kaddressbook-importer.desktop
%{_kde5_applicationsdir}/org.kde.kaddressbook.desktop
%{_kde5_applicationsdir}/kaddressbook-view.desktop
%{_kde5_bindir}/kaddressbook
%{_kde5_datadir}/qlogging-categories5/kaddressbook.categories
%{_kde5_datadir}/qlogging-categories5/kaddressbook.renamecategories
%dir %{_kde5_datadir}/kaddressbook/
%{_kde5_datadir}/kaddressbook/*
%{_kde5_iconsdir}/hicolor/*/apps/kaddressbook.*
%{_appdatadir}/org.kde.kaddressbook.appdata.xml
%{_qt5_plugindir}/kaddressbookpart.so
%{_qt5_plugindir}/pim5/kcms/kaddressbook/kaddressbook_config_plugins.so
%{_qt5_plugindir}/pim5/kontact/kontact_kaddressbookplugin.so

#----------------------------------------------------------------------------

%define kaddressbookprivate_major 5
%define libkaddressbookprivate %mklibname kaddressbookprivate %{kaddressbookprivate_major}

%package -n %{libkaddressbookprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkaddressbookprivate}
KDE PIM shared library.

%files -n %{libkaddressbookprivate}
%{_kde5_libdir}/libkaddressbookprivate.so.%{kaddressbookprivate_major}*

#----------------------------------------------------------------------

%define KPimAddressbookImportExport_major 5
%define libKPimAddressbookImportExport %mklibname kpimaddressbookimportexport %{KPimAddressbookImportExport_major}

%package -n %{libKPimAddressbookImportExport}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libKPimAddressbookImportExport}
KDE PIM shared library.

%files -n %{libKPimAddressbookImportExport}
%{_kde5_libdir}/libKPim5AddressbookImportExport.so.%{kaddressbookprivate_major}*

#----------------------------------------------------------------------

%define devKPimAddressbookImportExport %mklibname kpimaddressbookimportexport -d

%package -n %{devKPimAddressbookImportExport}
Summary:	Development files KDE PIM shared library
Group:		Development/KDE and Qt
Requires:	%{libKPimAddressbookImportExport} = %{EVRD}
Provides:	KPimAddressbookImportExport-devel = %{version}

%description -n %{devKPimAddressbookImportExport}
This package contains header files needed if you wish to build applications
based on KPimAddressbookImportExport.

%files -n %{devKPimAddressbookImportExport}
%{_kde5_includedir}/KPim5/KAddressBookImportExport
%{_kde5_libdir}/cmake/KPimAddressbookImportExport
%{_kde5_libdir}/cmake/KPim5AddressbookImportExport
%{_kde5_libdir}/libKPim5AddressbookImportExport.so
%{_kde5_mkspecsdir}/qt_KAddressbookImportExport.pri

#----------------------------------------------------------------------
%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13642 |21mr|kaidan-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	XMPP based messenger for Plasma Mobile
Name:		kaidan
Version:	0.8.0
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		https://www.kaidan.im
Source0:	https://invent.kde.org/network/kaidan/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5Location)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	perl-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	qxmpp-devel
BuildRequires:  pkgconfig(zxing)

%description
XMPP based messenger for Plasma Mobile.

%files
%{_kde5_bindir}/kaidan
%{_kde5_applicationsdir}/im.kaidan.kaidan.desktop
%{_kde5_datadir}/icons/hicolor/*/*/*
%{_kde5_datadir}/kaidan
%{_kde5_notificationsdir}/kaidan.notifyrc
%{_appdatadir}/im.kaidan.kaidan.appdata.xml

#--------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%cmake_kde5 -DI18N=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13643 |21mr|kajongg-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Majongg game for KDE
Name:		kajongg
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+ and LGPLv2+ and GFDL
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kajongg/
Source0:	ftp://ftp.kde.org/pub/kde/stable/applications/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kmahjongglib-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	python3-twisted
BuildRequires:	python3-qt5-gui
Requires:	kmahjongglib
Requires:	qt5-database-plugin-sqlite
Requires:	python3-twisted
# kajongg needed ogg123 @ runtime
Requires:	vorbis-tools
BuildArch:	noarch

%description
Kajongg is the ancient Chinese board game for 4 players.

Kajongg can be used in two different ways: Scoring a manual game where you play
as always and use Kajongg for the computation of scores and for bookkeeping. Or
you can use Kajongg to play against any combination of other human players or
computer players.

%files -f %{name}.lang
%{_kde5_bindir}/kajongg
%{_kde5_bindir}/kajonggserver
%{_kde5_applicationsdir}/org.kde.kajongg.desktop
%{_kde5_datadir}/kajongg
%{_kde5_iconsdir}/hicolor/*/*/*kajongg*
%{_appdatadir}/org.kde.kajongg.appdata.xml

#------------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-kde


# FIXME Something in make install is broken...
rm -rf %{buildroot}%{_prefix}%{_prefix}
mkdir -p %{buildroot}%{_bindir}
pushd    %{buildroot}%{_bindir}
ln -s ../share/kajongg/kajongg.py kajongg
ln -s ../share/kajongg/kajonggserver.py kajonggserver
chmod a+rx kajongg kajonggserver
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13644 |21mr|kalarm-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE personal alarm message, command and email scheduler
Name:		kalarm
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	xsltproc
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)

%description
KAlarm is a personal alarm message, command and email scheduler. It lets you
set up personal alarm messages which pop up on the screen at the chosen time,
or you can schedule commands to be executed or emails to be sent.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kalarm.desktop
%{_kde5_autostart}/kalarm.autostart.desktop
%{_kde5_bindir}/kalarm
%{_kde5_bindir}/kalarmautostart
%{_kde5_datadir}/config.kcfg/kalarmconfig.kcfg
%dir %{_kde5_datadir}/kalarm/
%{_kde5_datadir}/kalarm/*
%{_kde5_datadir}/knotifications5/kalarm.notifyrc
%{_kde5_iconsdir}/breeze/actions/*/show-today.svg
%{_kde5_iconsdir}/breeze-dark/actions/*/show-today.svg
%{_kde5_iconsdir}/hicolor/*/apps/kalarm.*
%{_kde5_libexecdir}/kauth/kalarm_helper
%{_kde5_datadir}/qlogging-categories5/kalarm.categories
%{_kde5_datadir}/qlogging-categories5/kalarm.renamecategories
%{_kde5_xmlguidir}/kalarm/kalarmui.rc
%{_qt5_plugindir}/pim5/kalarm/akonadiplugin.so
%{_appdatadir}/org.kde.kalarm.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.kalarm.kalarm.xml
%{_datadir}/dbus-1/system-services/org.kde.kalarm.rtcwake.service
%{_datadir}/dbus-1/system.d/org.kde.kalarm.rtcwake.conf
%{_datadir}/polkit-1/actions/org.kde.kalarm.rtcwake.policy

#----------------------------------------------------------------------------

%define kalarmcalendar_major 5
%define libkalarmcalendar %mklibname kalarmcalendar %{kalarmcalendar_major}

%package -n %{libkalarmcalendar}
Summary:	KAlarm client shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkalarmcalendar}
KAlarm client shared library.

%files -n %{libkalarmcalendar}
%{_kde5_libdir}/libkalarmcalendar.so.%{kalarmcalendar_major}*

#----------------------------------------------------------------------------


%define kalarmplugin_major 5
%define libkalarmplugin %mklibname kalarmplugin %{kalarmplugin_major}

%package -n %{libkalarmplugin}
Summary:	KAlarm client shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkalarmplugin}
KAlarm client shared library.

%files -n %{libkalarmplugin}
%{_kde5_libdir}/libkalarmplugin.so.%{kalarmplugin_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13645 |21mr|kalgebra-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MathML-based graph calculator
Name:		kalgebra
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://userbase.kde.org/KAlgebra
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	analitza-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KAlgebra is a mathematical calculator based content markup MathML
language. Nowadays it is capable to make simple MathML operations
(arithmetic and logical) and representate 2D and 3D graphs. It is
actually not necessary to know MathML to use KAlgebra.

%files -f %{name}.lang
%doc COPYING COPYING.LIB COPYING.DOC
%{_kde5_applicationsdir}/org.kde.kalgebramobile.desktop
%{_kde5_bindir}/kalgebramobile
%{_kde5_iconsdir}/*/*/apps/kalgebra.*
%{_appdatadir}/org.kde.kalgebramobile.appdata.xml

#----------------------------------------------------------------------------

%package -n calgebra
Summary:	Console mathematical calculator
Group:		Graphical desktop/KDE

%description -n calgebra
Console interface for a mathematical calculator based content markup MathML
language.

%files -n calgebra
%{_kde5_bindir}/calgebra

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} kalgebramobile %{name}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13646 |21mr|kalk-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Calculator for Plasma Mobile
Name:		kalk
Version:	23.08.4
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Feedback)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(mpfr)
BuildRequires:	pkgconfig(gmp)
Requires:	qt5-qtfeedback

%description
Calculator for Plasma Mobile.

%files -f kalk.lang
%{_kde5_bindir}/kalk
%{_kde5_applicationsdir}/org.kde.kalk.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.kalk.svg
%{_appdatadir}/org.kde.kalk.appdata.xml

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13647 |21mr|kalzium-23.08.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Shows the periodic system of the elements
Name:		kalzium
Version:	23.08.4
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kalzium
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	avogadro2-devel
BuildRequires:	extra-cmake-modules
BuildRequires:	facile
BuildRequires:	ocaml
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5plotting-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	openbabel-devel
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	chemical-mime-data
Requires:	openbabel
Requires:	chemical-mime-data
Requires:	ocaml

%description
Kalzium is an application which will show you some information about the
periodic system of the elements. Therefore you could use it as an
information database.

%files -f %{name}.lang
%doc
%{_kde5_applicationsdir}/org.kde.kalzium.desktop
%{_kde5_applicationsdir}/org.kde.kalzium_cml.desktop
%{_kde5_bindir}/kalzium
%{_kde5_datadir}/config.kcfg/kalzium.kcfg
%{_kde5_datadir}/knsrcfiles/kalzium.knsrc
%{_kde5_datadir}/kalzium
%{_kde5_datadir}/qlogging-categories5/kalzium.categories
%{_kde5_datadir}/libkdeedu/data/elements.xml
%{_kde5_datadir}/libkdeedu/data/isotopes.xml
%{_kde5_datadir}/libkdeedu/data/spectra.xml
%{_kde5_datadir}/libkdeedu/data/symbols.csv
%{_kde5_datadir}/libkdeedu/data/symbols2.csv
%{_kde5_iconsdir}/hicolor/*/apps/kalzium.*
%{_kde5_mandir}/man1/kalzium.1*
%{_appdatadir}/org.kde.kalzium.appdata.xml

#----------------------------------------------------------------------------

%define science_major 5
%define libscience %mklibname science %{science_major}

%package -n %{libscience}
Summary:	Runtime library for KDE Education Application
Group:		System/Libraries

%description -n %{libscience}
libscience is a library that provides classes for chemical data.This library is
mainly used by kalzium.

%files -n %{libscience}
%{_kde5_libdir}/libscience.so.%{science_major}*

#-----------------------------------------------------------------------------

%define compoundviewer_major 5
%define libcompoundviewer %mklibname compoundviewer %{compoundviewer_major}

%package -n %{libcompoundviewer}
Summary:	Runtime library for KDE Education Application
Group:		System/Libraries

%description -n %{libcompoundviewer}
libcompoundviewer is a library that provides classes for chemical data. This library is
mainly used by kalzium.

%files -n %{libcompoundviewer}
%{_kde5_libdir}/libcompoundviewer.so.%{compoundviewer_major}*

#-----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	pkgconfig(eigen3)
Requires:	pkgconfig(openbabel-3)
Requires:	%{libscience} = %{EVRD}
Requires:	%{libcompoundviewer} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 16.12
Obsoletes:	%{name}-devel < 16.12

%description -n %{devname}
Files needed to build applications based on %{name}.

%files -n %{devname}
%{_kde5_includedir}/libkdeedu/*.h
%{_kde5_libdir}/libscience.so
%{_kde5_libdir}/libcompoundviewer.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Not ported yet
rm -f %{buildroot}%{_localedir}/*/LC_MESSAGES/plasma_applet*
rm -f %{buildroot}%{_localedir}/*/LC_MESSAGES/plasma_engine*

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13648 |21mr|kamoso-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Application to take pictures and videos out of your webcam
Name:		kamoso
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org
Source0:	http://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	boost-devel
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(udev)
BuildRequires:	qt5-qtgraphicaleffects-qml
BuildRequires:	qt5-qtquickcontrols-qml
Requires:	kf5purpose-qml
Requires:	kirigami2
Requires:	qt5-qtquickcontrols-qml

%description
Kamoso is an application to take pictures and videos out of your webcam.

%files -f %{name}.lang
%doc
%{_kde5_bindir}/kamoso
%{_kde5_applicationsdir}/org.kde.kamoso.desktop
%{_kde5_datadir}/sounds/kamoso-shutter.wav
%{_kde5_iconsdir}/hicolor/*/actions/burst.*
%{_kde5_iconsdir}/hicolor/*/apps/kamoso.*
%{_kde5_notificationsdir}/kamoso.notifyrc
%{_datadir}/metainfo/org.kde.kamoso.appdata.xml
%{_libdir}/gstreamer-1.0/gstkamosoqt5videosink.so

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make -s

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13649 |21mr|kanagram-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Word learning program
Name:		kanagram
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kanagram
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	libkeduvocdocument-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kdeedu-data

%description
Kanagram is a replacement for KMessedWords. Kanagram mixes up the letters
of a word (creating an anagram), and you have to guess what the mixed up
word is. Kanagram features several built-in word lists, hints, and a cheat
feature which reveals the original word. Kanagram also has a vocabulary
editor, so you can make your own vocabularies, and distribute them through
Kanagram's KNewStuff download service.

%files -f %{name}.lang
%doc ChangeLog TODO COPYING COPYING.DOC
%{_kde5_applicationsdir}/org.kde.kanagram.desktop
%{_kde5_bindir}/kanagram
%{_kde5_datadir}/kanagram
%{_kde5_datadir}/config.kcfg/kanagram.kcfg
%{_kde5_datadir}/knsrcfiles/kanagram.knsrc
%{_kde5_iconsdir}/*/*/apps/kanagram*
%{_appdatadir}/org.kde.kanagram.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13650 |21mr|kanboard-1.2.38-0.git6bce77.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6bce773fa4084f6a7ff0a9e2d174436d0c83dd10
%define commit_short %(echo %{commit} | head -c6)

%define kanboard_root /var/www/kanboard
%define kanboard_sharedstatedir /var/lib/kanboard

Summary:	Simple kanban project management software with web interface
Name:		kanboard
Version:	1.2.38
Release:	0.git%{commit_short}.1
License:	MIT
Group:		Office
Url:		https://kanboard.org
Source0:	https://github.com/kanboard/kanboard/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	kanboard.rpmlintrc
Patch0:		config.diff
Patch1:		0001-Default-to-Russian-format-of-dates.patch
Patch2:		0002-Add-link-to-ROSA-manual.patch
Patch3:		0003-Show-ROSA-RPM-version.patch
BuildRequires:	rsync
BuildArch:	noarch
# no sense in RPM generators
AutoProv:	no
Autoreq:	no

Requires:	user(apache)
Requires:	group(apache)
Requires:	apache
# https://docs.kanboard.org/v1/admin/requirements/
Requires:	apache-mod_php
Requires:	apache-mod_version
# defaults to sqlite, but can also work with mysql, postgresql and mssql
Recommends:	php-pdo_sqlite
#Recommends:	php-pdo_mysql
#Recommends:	php-pdo_pgsql
Requires:	php-gd
Requires:	php-mbstring
Requires:	php-openssl
Requires:	php-json
Requires:	php-ctype
Requires:	php-session
Requires:	php-filter
Requires:	php-xml
Requires:	php-dom
# for "cli" script
Requires:	php-cli
Recommends:	php-zip
Recommends:	php-ldap
Recommends:	php-curl

%description
Simple kanban project management software with web interface.
Install this package, start Apache HTTPD webserver (systemctl start httpd)
and goto http://localhost/kanboard

%files
%license LICENSE
#doc README.md ChangeLog
%doc config.default.php
%dir %attr(755,root,root) %{kanboard_root}
%{kanboard_root}/app
%{kanboard_root}/assets
%{kanboard_root}/custom-hooks
%{kanboard_root}/libs
%{kanboard_root}/plugins
%{kanboard_root}/vendor
%config(noreplace) %{kanboard_root}/.htaccess
%{kanboard_root}/cli
%config(noreplace) %{kanboard_root}/config.php
%config(noreplace) %{kanboard_root}/favicon.ico
%{kanboard_root}/index.php
%{kanboard_root}/jsonrpc.php
# license text is displayed in http://localhost/kanboard/?controller=ConfigController&action=index
%{kanboard_root}/LICENSE
%config(noreplace) %{kanboard_root}/robots.txt
# writable, because sqlite DB is stored here,
# but outside of webserver to ensure that it cannot be accessed via http
%dir %attr(755,apache,apache) %{kanboard_sharedstatedir}
%config(noreplace) %attr(644,root,root) %{kanboard_sharedstatedir}/.htaccess
%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf

#------------------------------------------------------------------

%package rpm-macros
Summary:	RPM macros defining directories used by Kanboard
Group:		Development/PHP

%description rpm-macros
RPM macros defining directories used by Kanboard.
Useful for packaging Kanboard plugins.

%files rpm-macros
%{_rpmmacrodir}/macros.%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# ensure correct permissions
find . -type f -exec chmod 644 '{}' ';'
find . -type d -exec chmod 755 '{}' ';'
chmod 755 cli
cp config.default.php config.php

# adapt a bit for regions where most users live
grep -Irl en_US app/Schema | xargs sed -i'' -e 's,en_US,ru_RU,g'
grep -Irl UTC app/Schema | xargs sed -i'' -e 's,UTC,Europe/Moscow,g'

sed -i app/Template/config/about.php -e 's,@RPM_PACKAGE@,%{name} %{EVRD} %{disttag},'

# ensure that there is no mismatch between macro and patch0
grep -q %{kanboard_sharedstatedir} config.default.php

%install
mkdir -p %{buildroot}%{kanboard_root}
rsync -av ./ %{buildroot}%{kanboard_root}
cd %{buildroot}%{kanboard_root}
# ISS (Windows) configs
find . -name web.config -print -delete
# insecure to make these files public
# (but most of them are export-ignore in .gitattributes)
rm -fvr .git* .dockerengine .devcontainer Dockerfile ChangeLog Makefile Vagrantfile composer* *.md
rm -fr tests
# saved as %%doc and renamed to config.php
unlink config.default.php
cd -

mkdir -p %{buildroot}/var/lib
mv -v %{buildroot}%{kanboard_root}/data %{buildroot}%{kanboard_sharedstatedir}

mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
cat > %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf << EOF
Alias /%{name} %{kanboard_root}
<Directory %{kanboard_root}>
	AllowOverride None
	Require all granted
</Directory>
EOF

cat > macros << 'EOF'
# For using when packaging kanboard plugins
%%kanboard_root %{kanboard_root}
%%kanboard_plugins_dir %{kanboard_root}/plugins
%%kanboard_sharedstatedir %{kanboard_sharedstatedir}
EOF
%install_macro %{name} macros

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13651 |21mr|kapidox-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 module for API documentation generation
Name:		kapidox
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5doctools-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3egg(jinja2)
Requires:	python3egg(pyyaml)
BuildArch:	noarch

%description
KDE Frameworks 5 module for API documentation generation.

%files
%{_kde5_bindir}/*
%dir %{python3_sitelib}/kapidox/
%{python3_sitelib}/kapidox/*
%{python3_sitelib}/kapidox-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

%build
python setup.py build

%install
python setup.py install --prefix=%{_prefix} --root=%{buildroot}

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_kde5_bindir}/kapidox-generate
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_kde5_bindir}/kapidox-depdiagram-prepare
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_kde5_bindir}/kapidox-depdiagram-generate


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13652 |21mr|kapman-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A Pac-Man clone
Name:		kapman
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kapman/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Kapman is a clone of the well known game Pac-Man.

You must run through the maze to eat all pills without being captured by a
ghost. By eating an energizer, Kapman gets the ability to eat ghosts for a few
seconds. When a stage is cleared of pills and energizer the player is taken to
the next stage with slightly increased game speed.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kapman.desktop
%{_kde5_bindir}/kapman
%{_kde5_datadir}/kapman
%{_kde5_datadir}/sounds/kapman
%{_kde5_iconsdir}/hicolor/*/apps/kapman.*
%{_appdatadir}/org.kde.kapman.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13653 |21mr|kapptemplate-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Templates for KDE Application Development
Name:		kapptemplate
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)

%description
KAppTemplate is a set of modular shell scripts that will create a framework for
any number of KDE application types. At its base level, it handles creation of
things like the automake/autoconf framework, lsm files, RPM spec files, and po
files. Then, there are individual modules that allow you to create a skeleton
KDE application, a KPart application, a KPart plugin, or even convert existing
source code to the KDE framework.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kapptemplate.desktop
%{_kde5_bindir}/kapptemplate
%{_kde5_datadir}/config.kcfg/kapptemplate.kcfg
%{_kde5_datadir}/qlogging-categories5/kapptemplate.categories
%{_kde5_datadir}/kdevappwizard
%{_kde5_iconsdir}/hicolor/*/apps/kapptemplate.*
%{_appdatadir}/org.kde.kapptemplate.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13654 |21mr|karchive-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 module with various classes for compression and decompression
Name:		karchive
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	bzip2-devel
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(zlib)

%description
KDE Frameworks 5 module with various classes for compression and decompression.

KArchive provides classes for easy reading, creation and manipulation of
"archive" formats like ZIP and TAR.

It also provides transparent compression and decompression of data, like the
GZip format, via a subclass of QIODevice.

%files -f %{name}.lang
%{_kde5_datadir}/qlogging-categories5/karchive.categories
%{_kde5_datadir}/qlogging-categories5/karchive.renamecategories

#----------------------------------------------------------------------------

%define kf5archive_major 5
%define libkf5archive %mklibname kf5archive %{kf5archive_major}

%package -n %{libkf5archive}
Summary:	KDE Frameworks 5 KArchive shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5archive}
KDE Frameworks 5 KArchive shared library.
/home/victor/kf-5.116.0/kcalcore-5.91.0-1.src.rpm
%files -n %{libkf5archive}
%{_kde5_libdir}/libKF5Archive.so.%{kf5archive_major}*

#----------------------------------------------------------------------------

%define devkf5archive %mklibname kf5archive -d

%package -n %{devkf5archive}
Summary:	Development files for KDE Frameworks 5 KArchive
Group:		Development/KDE and Qt
Requires:	%{libkf5archive} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5archive-devel = %{version}

%description -n %{devkf5archive}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5archive}
%{_kde5_includedir}/KF5/KArchive
%{_kde5_libdir}/cmake/KF5Archive
%{_kde5_libdir}/libKF5Archive.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13655 |21mr|kasync-0.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname KAsync %{major}
%define devname %mklibname KAsync -d

Summary:	KDE library for writing asynchronous code
Name:		kasync
Version:	0.3.0
Release:	3
Group:      System/Libraries
License:    GPL
URL:        http://kde.org/
Source0:	http://download.kde.org/%{stable}/kasync/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)

%description
KAsync helps writing composable asynchronous code using a continuation
based approach.

%files

#------------------------------------------------

%package -n %{libname}
Summary: KDE library for writing asynchronous code
Group: System/Libraries
Requires: %{name} = %{EVRD}

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#------------------------------------------------

%description -n %{libname}
KAsync helps writing composable asynchronous code using a continuation
based approach.

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_libdir}/qt5/mkspecs/modules/*.pri

#------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13656 |21mr|katello-agent-1.5.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		katello-agent
Version:	1.5.3
Release:	2
Summary:	The Katello Agent
Group:		Development/Python
License:	LGPLv2
URL:		https://github.com/bbuckingham/katello-agent
Source0:	https://github.com/bbuckingham/katello-agent/archive/refs/tags/katello-agent-%{version}-1.tar.gz?/%{name}-%{version}-1.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch
Requires:	gofer >= 0.60
#not provided in gofer project
#Requires:	gofer-package >= 0.60
#removed from repo
#Requires:	subscription-manager

%description
Provides plugin for gofer, which allows communicating with Katello server
and execute scheduled actions.

%files
%config(noreplace) %{_sysconfdir}/gofer/plugins/katelloplugin.conf
%{_prefix}/lib/gofer/plugins/katelloplugin.*
%doc LICENSE

#------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{name}-%{version}-1

%build
pushd src
%py2_build
popd

%install
mkdir -p %{buildroot}/%{_sysconfdir}/gofer/plugins
mkdir -p %{buildroot}/%{_prefix}/lib/gofer/plugins

cp etc/gofer/plugins/katelloplugin.conf %{buildroot}/%{_sysconfdir}/gofer/plugins
cp src/katello/agent/katelloplugin.py %{buildroot}/%{_prefix}/lib/gofer/plugins


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13657 |21mr|katomic-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Build complex atoms with a minimal amount of moves
Name:		katomic
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=katomic
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KAtomic is a fun educational game built around molecular geometry.
It employs simplistic two-dimensional looks at different chemical elements.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.katomic.desktop
%{_kde5_bindir}/katomic
%{_kde5_iconsdir}/hicolor/*/apps/katomic.png
%{_kde5_datadir}/katomic
%{_kde5_datadir}/kconf_update/katomic-levelset-upd.pl
%{_kde5_datadir}/kconf_update/katomic-levelset.upd
%{_kde5_datadir}/knsrcfiles/katomic.knsrc
%{_kde5_datadir}/qlogging-categories5/katomic.categories
%{_appdatadir}/org.kde.katomic.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13658 |21mr|kauth-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

%global __requires_exclude cmake.*PolkitQt

Summary:	KDE Frameworks 5 policy and authentication module
Name:		kauth
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kcoreaddons-devel = %{version}
BuildRequires:	pkgconfig(polkit-qt5-1)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 policy and authentication module.

KAuth provides a convenient, system-integrated way to offload actions that need
to be performed as a privileged user (root, for example) to small (hopefully
secure) helper utilities.

%files
%{_kde5_datadir}/kf5/kauth/*.stub
%{_kde5_datadir}/qlogging-categories5/kauth.categories
%{_kde5_datadir}/qlogging-categories5/kauth.renamecategories
%{_kde5_libexecdir}/kauth/kauth-policy-gen
%{_qt5_plugindir}/kauth/backend/kauth_backend_plugin.so
%{_qt5_plugindir}/kauth/helper/kauth_helper_plugin.so
%{_datadir}/dbus-1/system.d/org.kde.kf5auth.conf

#----------------------------------------------------------------------------

%package i18n
Summary:	KAuth translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KAuth translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5auth_major 5
%define libkf5auth %mklibname kf5auth %{kf5auth_major}

%package -n %{libkf5auth}
Summary:	KDE Frameworks 5 policy and authentication shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5auth}
KDE Frameworks 5 policy and authentication shared library.

%files -n %{libkf5auth}
%{_kde5_libdir}/libKF5Auth.so.%{kf5auth_major}*

#----------------------------------------------------------------------------

%define kf5authcore_major 5
%define libkf5authcore %mklibname kf5authcore %{kf5authcore_major}

%package -n %{libkf5authcore}
Summary:	KDE Frameworks 5 policy and authentication shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5authcore}
KDE Frameworks 5 policy and authentication shared library.

%files -n %{libkf5authcore}
%{_kde5_libdir}/libKF5AuthCore.so.%{kf5authcore_major}*

#----------------------------------------------------------------------------

%define devkf5auth %mklibname kf5auth -d

%package -n %{devkf5auth}
Summary:	Development files for KDE Frameworks 5 policy and authentication module
Group:		Development/KDE and Qt
Requires:	%{libkf5auth} = %{EVRD}
Requires:	%{libkf5authcore} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5auth-devel = %{version}
Provides:	kf5authcore-devel = %{version}

%description -n %{devkf5auth}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5auth}
%{_kde5_includedir}/KF5/KAuth
%{_kde5_includedir}/KF5/KAuthCore
%{_kde5_includedir}/KF5/KAuthWidgets
%{_kde5_libdir}/cmake/KF5Auth
%{_kde5_libdir}/libKF5Auth.so
%{_kde5_libdir}/libKF5AuthCore.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 -DKAUTH_BACKEND_NAME=PolkitQt5-1
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13659 |21mr|kbackup-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple and easy to use program to backup directories or files
Name:		kbackup
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Archiving/Backup
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(shared-mime-info)

%description
KBackup is a program that lets you back up any directories or files,
whereby it uses an easy to use directory tree to select the things to
back up. The program was designed to be very simple in its use so that it
can be used by non-computer experts. The storage format is the well known
TAR format, whereby the data is still stored in compressed format (bzip2
or gzip).

%files -f %{name}.lang
%{_kde5_bindir}/kbackup
%{_kde5_applicationsdir}/org.kde.kbackup.desktop
%{_kde5_datadir}/mime/packages/kbackup.xml
%{_kde5_iconsdir}/hicolor/*/apps/kbackup.png
%{_kde5_iconsdir}/hicolor/*/mimetypes/text-x-kbp.png
%{_kde5_iconsdir}/hicolor/22x22/actions/kbackup_cancel.png
%{_kde5_iconsdir}/hicolor/22x22/actions/kbackup_start.png
%{_kde5_iconsdir}/hicolor/22x22/actions/kbackup_runs.png
%{_kde5_xmlguidir}/kbackup/kbackupui.rc
%{_appdatadir}/org.kde.kbackup.appdata.xml
%{_mandir}/man1/kbackup.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13660 |21mr|kbd-2.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# {_exec_prefix}/lib/kbd is correct even on x86_64.
# It is traditionally used for kdb data (console fonts, keymaps, ...).
# It is not used for any shared objects/executables.
%global kbd_datadir %{_exec_prefix}/lib/kbd

Name:           kbd
Version:        2.2.0
Release:        2
Summary:        Tools for configuring the console (keyboard, virtual terminals, etc.)
License:        GPLv2+
URL:            http://www.kbd-project.org/
Group:		Terminals
Source0:        ftp://ftp.altlinux.org/pub/people/legion/kbd/kbd-%{version}.tar.xz
Source1:        kbd-latsun-fonts.tar.bz2
Source2:        kbd-latarcyrheb-32.tar.bz2
Source3:        xml2lst.pl
Source4:        vlock.pamd
Source5:        kbdinfo.1
# Patch0: puts additional information into man pages
Patch0:         kbd-1.15-keycodes-man.patch
# Patch1: sparc modifications
Patch1:         kbd-1.15-sparc.patch
# Patch2: adds default unicode font to unicode_start script
Patch2:         kbd-1.15-unicode_start.patch
# Patch3: add missing dumpkeys option to man page
Patch3:         kbd-1.15.3-dumpkeys-man.patch
# Patch4: fixes decimal separator in Swiss German keyboard layout, bz 882529
Patch4:         kbd-1.15.5-sg-decimal-separator.patch
# Patch5: adds xkb and legacy keymaps subdirs to loadkyes search path, bz 1028207 
Patch5:         kbd-1.15.5-loadkeys-search-path.patch
# Patch6: don't hardcode font used in unicode_start, take it from vconsole.conf,
#   bz 1101007
Patch6:         kbd-2.0.2-unicode-start-font.patch
# Patch7: fixes issues found by static analysis
Patch7:         kbd-2.0.4-covscan-fixes.patch
# Patch8: fix flags
Patch8:         kbd-2.2.0-fix-flags.patch
# Patch9: workaround -Werror=format-security build error
Patch9:         kbd-2.2.0-format-security.patch
BuildRequires:	bison
BuildRequires:	console-setup
BuildRequires:	flex
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(xkeyboard-config)
BuildRequires:	pkgconfig(check)
BuildRequires:	pigz
Requires(pre):	filesystem
Requires:       %{name}-misc = %{version}-%{release}
# Temporarily require -legacy
Requires:       %{name}-legacy = %{version}-%{release}
# Be sure that system is after UsrMove
Provides:       vlock = %{version}
Conflicts:      vlock <= 1.3
Obsoletes:      vlock

%description
The %{name} package contains tools for managing a Linux
system's console's behavior, including the keyboard, the screen
fonts, the virtual terminals and font files.

%package misc
Summary:        Data for kbd package
BuildArch:      noarch
 
%description misc
The %{name}-misc package contains data for kbd package - console fonts,
keymaps etc. Please note that %{name}-misc is not helpful without kbd.

%package legacy
Summary:        Legacy data for kbd package
BuildArch:      noarch
 
%description legacy
The %{name}-legacy package contains original keymaps for kbd package.
Please note that %{name}-legacy is not helpful without kbd.

%prep
%setup -q -a 1 -a 2
cp -fp %{SOURCE3} .
%patch0 -p1 -b .keycodes-man
%patch1 -p1 -b .sparc
%patch2 -p1 -b .unicode_start
%patch3 -p1 -b .dumpkeys-man
%patch4 -p1 -b .sg-decimal-separator
%patch5 -p1 -b .loadkeys-search-path
%patch6 -p1 -b .unicode-start-font
%patch7 -p1 -b .covscan-fixes
%patch8 -p1 -b .fix-flags
%patch9 -p1 -b .format-security
autoconf

# 7-bit maps are obsolete; so are non-euro maps
pushd data/keymaps/i386
cp qwerty/pt-latin9.map qwerty/pt.map
cp qwerty/sv-latin1.map qwerty/se-latin1.map

mv azerty/fr.map azerty/fr-old.map
cp azerty/fr-latin9.map azerty/fr.map

cp azerty/fr-latin9.map azerty/fr-latin0.map # legacy alias

# Rename conflicting keymaps
mv fgGIod/trf.map fgGIod/trf-fgGIod.map
mv olpc/es.map olpc/es-olpc.map
mv olpc/pt.map olpc/pt-olpc.map
mv qwerty/cz.map qwerty/cz-qwerty.map
popd

# remove obsolete "gr" translation
pushd po
rm -f gr.po gr.gmo
popd

# Convert to utf-8
iconv -f iso-8859-1 -t utf-8 < "ChangeLog" > "ChangeLog_"
mv "ChangeLog_" "ChangeLog"

%build
%configure --prefix=%{_prefix} --datadir=%{kbd_datadir} --mandir=%{_mandir} --localedir=%{_datadir}/locale --enable-nls
make %{?_smp_mflags} V=1

%install
make install DESTDIR=%{buildroot}

# ro_win.map.gz is useless
rm -f %{buildroot}%{kbd_datadir}/keymaps/i386/qwerty/ro_win.map.gz

# Create additional name for Serbian latin keyboard
ln -s sr-cy.map.gz %{buildroot}%{kbd_datadir}/keymaps/i386/qwerty/sr-latin.map.gz

# The rhpl keyboard layout table is indexed by kbd layout names, so we need a
# Korean keyboard
ln -s us.map.gz %{buildroot}%{kbd_datadir}/keymaps/i386/qwerty/ko.map.gz

# Define default console font
ln -s LatGrkCyr-8x16.psfu.gz \
	%{buildroot}%{kbd_datadir}/consolefonts/default.psfu.gz

# Some microoptimization
sed -i -e 's,\<kbd_mode\>,%{_bindir}/kbd_mode,g;s,\<setfont\>,%{_bindir}/setfont,g' \
        %{buildroot}%{_bindir}/unicode_start

# install kbdinfo manpage
gzip -c %SOURCE5 > %{buildroot}/%{_mandir}/man1/kbdinfo.1.gz

# Move locale files to correct place
cp -r %{buildroot}%{kbd_datadir}/locale/ %{buildroot}%{_datadir}/locale
rm -rf %{buildroot}%{kbd_datadir}/locale

# Install PAM configuration for vlock
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/vlock

# Move original keymaps to legacy directory
mkdir -p %{buildroot}%{kbd_datadir}/keymaps/legacy
mv %{buildroot}%{kbd_datadir}/keymaps/{amiga,atari,i386,include,mac,ppc,sun} %{buildroot}%{kbd_datadir}/keymaps/legacy

# Convert X keyboard layouts to console keymaps
mkdir -p %{buildroot}%{kbd_datadir}/keymaps/xkb
perl xml2lst.pl < /usr/share/X11/xkb/rules/base.xml > layouts-variants.lst
while read line; do
  XKBLAYOUT=`echo "$line" | cut -d " " -f 1`
  echo "$XKBLAYOUT" >> layouts-list.lst
  XKBVARIANT=`echo "$line" | cut -d " " -f 2`
  ckbcomp "$XKBLAYOUT" "$XKBVARIANT" | gzip > %{buildroot}%{kbd_datadir}/keymaps/xkb/"$XKBLAYOUT"-"$XKBVARIANT".map.gz
done < layouts-variants.lst

# Convert X keyboard layouts (plain, no variant)
cat layouts-list.lst | sort -u >> layouts-list-uniq.lst
while read line; do
  ckbcomp "$line" | gzip > %{buildroot}%{kbd_datadir}/keymaps/xkb/"$line".map.gz
done < layouts-list-uniq.lst

# wipe converted layouts which cannot input ASCII (#1031848)
zgrep -L "U+0041" %{buildroot}%{kbd_datadir}/keymaps/xkb/* | xargs rm -f

%find_lang %{name}

%check
%ifnarch s390x
make check
%endif

%files -f %{name}.lang
%license COPYING
%doc ChangeLog AUTHORS README docs/doc/kbd.FAQ*.html docs/doc/font-formats/*.html docs/doc/utf/utf* docs/doc/dvorak/*
%{_bindir}/*
%{_mandir}/*/*
%config(noreplace) %{_sysconfdir}/pam.d/vlock

%files misc
%{kbd_datadir}
%exclude %{kbd_datadir}/keymaps/legacy

%files legacy
%{kbd_datadir}/keymaps/legacy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13661 |21mr|kbd-2.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# {_exec_prefix}/lib/kbd is correct even on x86_64.
# It is traditionally used for kdb data (console fonts, keymaps, ...).
# It is not used for any shared objects/executables.
%global kbd_datadir %{_exec_prefix}/lib/kbd

Name:           kbd
Version:        2.2.0
Release:        3
Summary:        Tools for configuring the console (keyboard, virtual terminals, etc.)
License:        GPLv2+
URL:            http://www.kbd-project.org/
Group:		Terminals
Source0:        ftp://ftp.altlinux.org/pub/people/legion/kbd/kbd-%{version}.tar.xz
Source1:        kbd-latsun-fonts.tar.bz2
Source2:        kbd-latarcyrheb-32.tar.bz2
Source3:        xml2lst.pl
Source4:        vlock.pamd
Source5:        kbdinfo.1
# Patch0: puts additional information into man pages
Patch0:         kbd-1.15-keycodes-man.patch
# Patch1: sparc modifications
Patch1:         kbd-1.15-sparc.patch
# Patch2: adds default unicode font to unicode_start script
Patch2:         kbd-1.15-unicode_start.patch
# Patch3: add missing dumpkeys option to man page
Patch3:         kbd-1.15.3-dumpkeys-man.patch
# Patch4: fixes decimal separator in Swiss German keyboard layout, bz 882529
Patch4:         kbd-1.15.5-sg-decimal-separator.patch
# Patch5: adds xkb and legacy keymaps subdirs to loadkyes search path, bz 1028207 
Patch5:         kbd-1.15.5-loadkeys-search-path.patch
# Patch6: don't hardcode font used in unicode_start, take it from vconsole.conf,
#   bz 1101007
Patch6:         kbd-2.0.2-unicode-start-font.patch
# Patch7: fixes issues found by static analysis
Patch7:         kbd-2.0.4-covscan-fixes.patch
# Patch8: fix flags
Patch8:         kbd-2.2.0-fix-flags.patch
# Patch9: workaround -Werror=format-security build error
Patch9:         kbd-2.2.0-format-security.patch
BuildRequires:	bison
BuildRequires:	console-setup
BuildRequires:	flex
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(xkeyboard-config)
BuildRequires:	pkgconfig(check)
BuildRequires:	pigz
Requires(pre):	filesystem
Requires:       %{name}-misc = %{version}-%{release}
# Temporarily require -legacy
Requires:       %{name}-legacy = %{version}-%{release}
# Be sure that system is after UsrMove
Provides:       vlock = %{version}
Conflicts:      vlock <= 1.3
Obsoletes:      vlock < 2.2.0

%description
The %{name} package contains tools for managing a Linux
system's console's behavior, including the keyboard, the screen
fonts, the virtual terminals and font files.

%package misc
Summary:        Data for kbd package
BuildArch:      noarch
 
%description misc
The %{name}-misc package contains data for kbd package - console fonts,
keymaps etc. Please note that %{name}-misc is not helpful without kbd.

%package legacy
Summary:        Legacy data for kbd package
BuildArch:      noarch
 
%description legacy
The %{name}-legacy package contains original keymaps for kbd package.
Please note that %{name}-legacy is not helpful without kbd.

%prep
%setup -q -a 1 -a 2
cp -fp %{SOURCE3} .
%patch0 -p1 -b .keycodes-man
%patch1 -p1 -b .sparc
%patch2 -p1 -b .unicode_start
%patch3 -p1 -b .dumpkeys-man
%patch4 -p1 -b .sg-decimal-separator
%patch5 -p1 -b .loadkeys-search-path
%patch6 -p1 -b .unicode-start-font
%patch7 -p1 -b .covscan-fixes
%patch8 -p1 -b .fix-flags
%patch9 -p1 -b .format-security
autoconf

# 7-bit maps are obsolete; so are non-euro maps
pushd data/keymaps/i386
cp qwerty/pt-latin9.map qwerty/pt.map
cp qwerty/sv-latin1.map qwerty/se-latin1.map

mv azerty/fr.map azerty/fr-old.map
cp azerty/fr-latin9.map azerty/fr.map

cp azerty/fr-latin9.map azerty/fr-latin0.map # legacy alias

# Rename conflicting keymaps
mv fgGIod/trf.map fgGIod/trf-fgGIod.map
mv olpc/es.map olpc/es-olpc.map
mv olpc/pt.map olpc/pt-olpc.map
mv qwerty/cz.map qwerty/cz-qwerty.map
popd

# remove obsolete "gr" translation
pushd po
rm -f gr.po gr.gmo
popd

# Convert to utf-8
iconv -f iso-8859-1 -t utf-8 < "ChangeLog" > "ChangeLog_"
mv "ChangeLog_" "ChangeLog"

%build
%configure --prefix=%{_prefix} --datadir=%{kbd_datadir} --mandir=%{_mandir} --localedir=%{_datadir}/locale --enable-nls
make %{?_smp_mflags} V=1

%install
make install DESTDIR=%{buildroot}

# ro_win.map.gz is useless
rm -f %{buildroot}%{kbd_datadir}/keymaps/i386/qwerty/ro_win.map.gz

# Create additional name for Serbian latin keyboard
ln -s sr-cy.map.gz %{buildroot}%{kbd_datadir}/keymaps/i386/qwerty/sr-latin.map.gz

# The rhpl keyboard layout table is indexed by kbd layout names, so we need a
# Korean keyboard
ln -s us.map.gz %{buildroot}%{kbd_datadir}/keymaps/i386/qwerty/ko.map.gz

# Define default console font
ln -s LatGrkCyr-8x16.psfu.gz \
	%{buildroot}%{kbd_datadir}/consolefonts/default.psfu.gz

# Some microoptimization
sed -i -e 's,\<kbd_mode\>,%{_bindir}/kbd_mode,g;s,\<setfont\>,%{_bindir}/setfont,g' \
        %{buildroot}%{_bindir}/unicode_start

# install kbdinfo manpage
gzip -c %SOURCE5 > %{buildroot}/%{_mandir}/man1/kbdinfo.1.gz

# Move locale files to correct place
cp -r %{buildroot}%{kbd_datadir}/locale/ %{buildroot}%{_datadir}/locale
rm -rf %{buildroot}%{kbd_datadir}/locale

# Install PAM configuration for vlock
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/vlock

# Move original keymaps to legacy directory
mkdir -p %{buildroot}%{kbd_datadir}/keymaps/legacy
mv %{buildroot}%{kbd_datadir}/keymaps/{amiga,atari,i386,include,mac,ppc,sun} %{buildroot}%{kbd_datadir}/keymaps/legacy

# Convert X keyboard layouts to console keymaps
mkdir -p %{buildroot}%{kbd_datadir}/keymaps/xkb
perl xml2lst.pl < /usr/share/X11/xkb/rules/base.xml > layouts-variants.lst
while read line; do
  XKBLAYOUT=`echo "$line" | cut -d " " -f 1`
  echo "$XKBLAYOUT" >> layouts-list.lst
  XKBVARIANT=`echo "$line" | cut -d " " -f 2`
  ckbcomp "$XKBLAYOUT" "$XKBVARIANT" | gzip > %{buildroot}%{kbd_datadir}/keymaps/xkb/"$XKBLAYOUT"-"$XKBVARIANT".map.gz
done < layouts-variants.lst

# Convert X keyboard layouts (plain, no variant)
cat layouts-list.lst | sort -u >> layouts-list-uniq.lst
while read line; do
  ckbcomp "$line" | gzip > %{buildroot}%{kbd_datadir}/keymaps/xkb/"$line".map.gz
done < layouts-list-uniq.lst

# wipe converted layouts which cannot input ASCII (#1031848)
zgrep -L "U+0041" %{buildroot}%{kbd_datadir}/keymaps/xkb/* | xargs rm -f

%find_lang %{name}

%check
%ifnarch s390x
make check
%endif

%files -f %{name}.lang
%license COPYING
%doc ChangeLog AUTHORS README docs/doc/kbd.FAQ*.html docs/doc/font-formats/*.html docs/doc/utf/utf* docs/doc/dvorak/*
%{_bindir}/*
%{_mandir}/*/*
%config(noreplace) %{_sysconfdir}/pam.d/vlock

%files misc
%{kbd_datadir}
%exclude %{kbd_datadir}/keymaps/legacy

%files legacy
%{kbd_datadir}/keymaps/legacy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13662 |21mr|kblackbox-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Find atoms in a grid by shooting electrons
Name:		kblackbox
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kblackbox
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KBlackbox is a game of hide and seek played on a grid of boxes where the
computer has hidden several balls. The position of the hidden balls can be
deduced by shooting beams into the box.

%files -f %{name}.lang
%{_kde5_bindir}/kblackbox
%{_kde5_applicationsdir}/org.kde.kblackbox.desktop
%{_kde5_datadir}/kblackbox
%{_kde5_iconsdir}/hicolor/*/apps/kblackbox.*
%{_appdatadir}/org.kde.kblackbox.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13663 |21mr|kblocks-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Single player falling blocks puzzle game
Name:		kblocks
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.kde.org/applications/games/kblocks/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KBlocks is the classic falling blocks game.

The idea is to stack the falling blocks to create horizontal lines
without any gaps. When a line is completed it is removed, and more
space is available in the play area. When there is not enough space
for blocks to fall, the game is over.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kblocks.desktop
%{_kde5_bindir}/kblocks
%{_kde5_datadir}/kblocks
%{_kde5_datadir}/config.kcfg/kblocks.kcfg
%{_kde5_datadir}/knsrcfiles/kblocks.knsrc
%{_kde5_datadir}/qlogging-categories5/kblocks.categories
%{_kde5_iconsdir}/hicolor/*/apps/kblocks.*
%{_appdatadir}/org.kde.kblocks.appdata.xml
#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13664 |21mr|kbookmarks-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 bookmarks and the XBEL format support module
Name:		kbookmarks
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	kf5xmlgui-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 bookmarks and the XBEL format support module.

KBookmarks lets you access and manipulate bookmarks stored using the
XBEL format.

%files
%{_kde5_datadir}/qlogging-categories5/kbookmarks.categories
%{_kde5_datadir}/qlogging-categories5/kbookmarks.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KBookmarks translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KBookmarks translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5bookmarks_major 5
%define libkf5bookmarks %mklibname kf5bookmarks %{kf5bookmarks_major}

%package -n %{libkf5bookmarks}
Summary:	KDE Frameworks 5 bookmarks and the XBEL format support shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5bookmarks}
KDE Frameworks 5 bookmarks and the XBEL format support shared library.

%files -n %{libkf5bookmarks}
%{_kde5_libdir}/libKF5Bookmarks.so.%{kf5bookmarks_major}*

#----------------------------------------------------------------------------

%define devkf5bookmarks %mklibname kf5bookmarks -d

%package -n %{devkf5bookmarks}
Summary:	Development files for KDE Frameworks 5 bookmarks support module
Group:		Development/KDE and Qt
Requires:	%{libkf5bookmarks} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5bookmarks-devel = %{version}

%description -n %{devkf5bookmarks}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5bookmarks}
%{_kde5_includedir}/KF5/KBookmarks
%{_kde5_libdir}/cmake/KF5Bookmarks
%{_kde5_libdir}/libKF5Bookmarks.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13665 |21mr|kbounce-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Claim areas and don't get disturbed
Name:		kbounce
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kbounce
Source0:	ftp://ftp.kde.org/pub/kde/stable/applications/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KBounce is a single player arcade game with the elements of puzzle.

It is played on a field, surrounded by wall, with two or more balls
bouncing around within the walls. The object of the game is to build
new walls to decrease the size of the active field.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kbounce.desktop
%{_kde5_bindir}/kbounce
%{_kde5_datadir}/kbounce
%{_kde5_datadir}/qlogging-categories5/kbounce.categories
%{_kde5_iconsdir}/*/*/apps/kbounce*
%{_appdatadir}/org.kde.kbounce.appdata.xml

#-------------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13666 |21mr|kbreakout-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Breakout like game
Name:		kbreakout
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kbreakout/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KBreakout is a Breakout-like game.

Its object is to destroy as many bricks as possible without losing the ball.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kbreakout.desktop
%{_kde5_bindir}/kbreakout
%{_kde5_datadir}/kbreakout
%{_kde5_datadir}/qlogging-categories5/kbreakout.categories
%{_kde5_iconsdir}/hicolor/*/apps/kbreakout.*
%{_appdatadir}/org.kde.kbreakout.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13667 |21mr|kbruch-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Practice calculating with fractions
Name:		kbruch
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kbruch
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KBruch is a small program to practice calculating with fractions.

%files -f %{name}.lang
%doc README NEWS AUTHORS ChangeLog TODO
%{_kde5_applicationsdir}/org.kde.kbruch.desktop
%{_kde5_bindir}/kbruch
%{_kde5_datadir}/kbruch
%{_kde5_datadir}/config.kcfg/kbruch.kcfg
%{_kde5_iconsdir}/*/*/apps/kbruch.*
%{_kde5_mandir}/man1/kbruch.1.*
%{_kde5_xmlguidir}/kbruch/*.rc
%{_appdatadir}/org.kde.kbruch.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13668 |21mr|kBuild-0.1.9998.r3296-1.20190122
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# By Fedora https://src.fedoraproject.org/rpms/kBuild/

%global svn_revision 3296
%global svn_date 20190122

Summary:	A cross-platform build environment
Name:		kBuild
Version:	0.1.9998%{?svn_revision:.r%{svn_revision}}
Release:	1%{?svn_date:.%{svn_date}}%{?dist}
License:	BSD and GPLv2+
Group:		Development/Other
# most tools are from NetBSD, some are from FreeBSD,
# and make and sed are from GNU
Url:		http://svn.netlabs.org/kbuild
#Generated with kBuild-snapshot.sh
Source0:	kBuild-r%{svn_revision}.%{svn_date}.tar.gz
Source10:	kBuild-snapshot.sh
Patch0:		kBuild-0.1.3-escape.patch
Patch1:		kBuild-pthread.patch
Patch6:		kbuild-dummy_noreturn.diff
Patch9:		kBuild-strsignal.patch

BuildRequires:	gcc
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	gettext-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libacl)
BuildRequires:	texinfo

%description
This is a GNU make fork with a set of scripts to simplify
complex tasks and portable versions of various UNIX tools to
ensure cross-platform portability.

It is used mainly to build VirtualBox packages for RPM Fusion
repository.

%files
%doc ChangeLog kBuild/doc/QuickReference*
%if %{mdvver} >= 201910
%license COPYING kBuild/doc/COPYING-FDL-1.3
%endif
%{_bindir}/*
%{_datadir}/kBuild
%{_mandir}/man1/*

#-------------------------------------------------------------

%prep
#%setup -q -n %{name}-%{version}%{?patchlevel:-%{patchlevel}}
%setup -q -n %{name}
%patch0 -p1 -b .escape
%patch1 -p1 -b .pthreads
%patch6 -p1 -b .dummy_noreturn
%patch9 -p1 -b .strsignal

%build
echo KBUILD_SVN_URL := http://svn.netlabs.org/repos/kbuild/trunk  >  SvnInfo.kmk
echo KBUILD_SVN_REV := %{svn_revision} >>  SvnInfo.kmk

%define bootstrap_mflags %{_smp_mflags} \\\
        CFLAGS="%{optflags}"            \\\
        KBUILD_VERBOSE=2                \\\
        KBUILD_VERSION_PATCH=9998

%define mflags %{bootstrap_mflags}      \\\
        NIX_INSTALL_DIR=%{_prefix}      \\\
        BUILD_TYPE=release              \\\
        MY_INST_MODE=0644               \\\
        MY_INST_BIN_MODE=0755

# The bootstrap would probably not be needed if we depended on ourselves,
# yet it is not guarranteed that new versions are compilable with older
# kmk versions, so with this we are on a safer side
find -name config.log -delete
kBuild/env.sh --full make -f bootstrap.gmk %{bootstrap_mflags}
kBuild/env.sh kmk %{mflags} rebuild

%install
export KBUILD_VERBOSE=2
kBuild/env.sh kmk %{mflags} PATH_INS=%{buildroot} install
# These are included later in files section
rm -r %{buildroot}%{_docdir}
mkdir -p %{buildroot}/%{_mandir}/man1
pod2man -c 'kBuild for Fedora/EPEL GNU/Linux' \
	-r kBuild-%{version} ./dist/debian/kmk.pod > %{buildroot}/%{_mandir}/man1/kmk.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13669 |21mr|kcachegrind-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Visualisation tool for profiling data generated by Cachegrind and Calltree
Name:		kcachegrind
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	valgrind

%description
KCachegrind is a visualisation tool for the profiling data generated by
Cachegrind and Calltree (they profile data file format is upwards compatible).
Calltree extends Cachegrind, which is part of Valgrind.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kcachegrind.desktop
%{_kde5_bindir}/kcachegrind
%{_kde5_bindir}/dprof2calltree
%{_kde5_bindir}/hotshot2calltree
%{_kde5_bindir}/memprof2calltree
%{_kde5_bindir}/op2calltree
%{_kde5_bindir}/pprof2calltree
%{_kde5_datadir}/kcachegrind
%{_kde5_iconsdir}/*/*/*/kcachegrind*
%{_appdatadir}/org.kde.kcachegrind.appdata.xml
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html --with-qt


#fix python shebang (hotshot2calltree not work on python3)
sed '1 s,^.*$,#!/usr/bin/python2,' -i %{buildroot}%{_bindir}/hotshot2calltree


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13670 |21mr|kcalc-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE calculator which offers many mathematical functions
Name:		kcalc
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/kcalc/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KCalc is a calculator which offers many more mathematical functions
than meet the eye on a first glance. Please study the section on
keyboard accelerators and modes in the handbook to learn more about
the many functions available.

%files -f %{name}.lang
%{_kde5_bindir}/kcalc
%{_kde5_applicationsdir}/org.kde.kcalc.desktop
%{_kde5_datadir}/config.kcfg/kcalc.kcfg
%{_kde5_datadir}/kconf_update/kcalcrc.upd
%{_kde5_datadir}/kglobalaccel/org.kde.kcalc.desktop
%{_appdatadir}/org.kde.kcalc.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13671 |21mr|kcalcore-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kcalendarcore

%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 calendar access module
Name:		kcalcore
Version:	5.116.0
Release:	3
Epoch:		1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{oname}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	extra-cmake-modules
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 calendar access module.

%files
%{_kde5_datadir}/qlogging-categories5/kcalendarcore.categories
%{_kde5_datadir}/qlogging-categories5/kcalendarcore.renamecategories

#----------------------------------------------------------------------------

%define kf5calendarcore_major 5
%define libkf5calendarcore %mklibname kf5calendarcore %{kf5calendarcore_major}

%package -n %{libkf5calendarcore}
Summary:	KDE Frameworks 5 calendar access shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5calendarcore}
KDE Frameworks 5 calendar access shared library.

%files -n %{libkf5calendarcore}
%{_kde5_libdir}/libKF5CalendarCore.so.%{kf5calendarcore_major}*

#----------------------------------------------------------------------------

%define devkf5calendarcore %mklibname kf5calendarcore -d

%package -n %{devkf5calendarcore}
Summary:	Development files for KDE Frameworks 5 calendar access module
Group:		Development/KDE and Qt
Requires:	%{libkf5calendarcore} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}
Provides:	kf5calendarcore-devel = %{version}

%description -n %{devkf5calendarcore}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5calendarcore}
%{_kde5_includedir}/KF5/KCalendarCore
%{_kde5_includedir}/KF5/kcalcore_version.h
%{_kde5_libdir}/cmake/KF5CalendarCore
%{_kde5_libdir}/libKF5CalendarCore.so
%{_kde5_libdir}/pkgconfig/KF5CalendarCore.pc
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13672 |21mr|kcalutils-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Frameworks 5 calendar utility module
Name:		kcalutils
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 calendar utility module.

%files
%{_kde5_datadir}/qlogging-categories5/kcalutils.categories
%{_kde5_datadir}/qlogging-categories5/kcalutils.renamecategories
%{_kde5_libdir}/grantlee/5.*/kcalendar_grantlee_plugin.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 calendar utility library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 calendar utility library translations.

%files i18n -f libkcalutils5.lang

#----------------------------------------------------------------------------

%define kf5calendarutils_major 5
%define libkf5calendarutils %mklibname kf5calendarutils %{kf5calendarutils_major}

%package -n %{libkf5calendarutils}
Summary:	KDE Frameworks 5 calendar utility shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5calendarutils}
KDE Frameworks 5 calendar utility shared library.

%files -n %{libkf5calendarutils}
%{_kde5_libdir}/libKPim5CalendarUtils.so.%{kf5calendarutils_major}*

#----------------------------------------------------------------------------

%define devkf5calendarutils %mklibname kf5calendarutils -d

%package -n %{devkf5calendarutils}
Summary:	Development files for KDE Frameworks 5 calendar utility module
Group:		Development/KDE and Qt
Requires:	%{libkf5calendarutils} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5calendarutils-devel = %{version}

%description -n %{devkf5calendarutils}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5calendarutils}
%{_kde5_includedir}/KPim5/KCalUtils
%{_kde5_libdir}/cmake/KPim5CalendarUtils
%{_kde5_libdir}/libKPim5CalendarUtils.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkcalutils5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13673 |21mr|kcharselect-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Select special characters from any font
Name:		kcharselect
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/kcharselect
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KCharSelect is a tool to select special characters from all installed
fonts and copy them into the clipboard.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kcharselect.desktop
%{_kde5_bindir}/kcharselect
%{_appdatadir}/org.kde.kcharselect.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13674 |21mr|kclock-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clock applet for Plasma Mobile
Name:		kclock
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	plasma-framework
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:  %{_lib}sodium-devel
Requires:	kirigami-addons

%description
Clock applet for Plasma Mobile.

%files -f kclock.lang
%{_kde5_bindir}/kclock
%{_kde5_bindir}/kclockd
%{_kde5_applicationsdir}/org.kde.kclock.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.kclock.svg
%{_kde5_notificationsdir}/kclockd.notifyrc
%{_datadir}/dbus-1/interfaces/org.kde.kclockd.*.xml
%{_datadir}/dbus-1/services/org.kde.kclockd.service
%{_sysconfdir}/xdg/autostart/org.kde.kclockd-autostart.desktop
%{_appdatadir}/org.kde.kclock.appdata.xml

# --------------------------------------------------------

%package plasma-applet
Summary: Plasma5 applet for kclock
Requires: %{name}%{?_isa} = %{version}-%{release}

%description plasma-applet
%{summary}.

%files plasma-applet
%{_qt5_plugindir}/plasma/applets/plasma_applet_kclock_1x2.so
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kclock_1x2
%{_kde5_datadir}/icons/*/scalable/apps/kclock_plasmoid_1x2.svg
%{_appdatadir}/org.kde.plasma.kclock_1x2.appdata.xml

# --------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}  --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13675 |21mr|kcm-drakclock-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A KDE Control Module for launching drakclock
Name:		kcm-drakclock
Version:	1.0
Release:	8
License:	GPLv3+
Group:		Graphical desktop/KDE
Source0:	kcm_drakclock.desktop
BuildRequires:	kde4-macros
BuildArch:	noarch

%description
drakclock launcher for KDE Control Center.

%files
%{_kde_services}/kcm_drakclock.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13676 |21mr|kcm-drakxservices-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A KDE Control Module for launching drakxservices
Name:		kcm-drakxservices
Version:	1.0
Release:	8
License:	GPLv3+
Group:		Graphical desktop/KDE
Source0:	kcm_drakxservices.desktop
Source1:	kcm-drakxservices.png
BuildRequires:	kde4-macros
BuildArch:	noarch

%description
drakxservices launcher for KDE Control Center.

%files
%{_kde_services}/kcm_drakxservices.desktop
%{_iconsdir}/hicolor/48x48/apps/kcm-drakxservices.png

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde_services}
mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps/
install -m 644 %{SOURCE0} %{buildroot}%{_kde_services}/
install -m 644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13677 |21mr|kcm-logdrake-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A KDE Control Module for launching logdrake
Name:		kcm-logdrake
Version:	1.0
Release:	4
License:	GPLv3+
Group:		Graphical desktop/KDE
Source0:	kcm_logdrake.desktop
BuildRequires:  kde4-macros
BuildArch:	noarch

%description
Logdrake launcher for KDE Control Center.

%files
%{_kde_services}/kcm_logdrake.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13678 |21mr|kcm-printer-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           kcm-printer
Version:        1.0
Release:        13
License:        GPLv3+
Group:          Graphical desktop/KDE
Summary:        A KDE Control Module for launching system-config-printer
BuildArch:      noarch
BuildRequires:	kde4-macros
Source0:        kcm_printer.desktop
%rename      kde-print-manager

%description
system-config-printer launcher for KDE Control Center

%prep

%build

%install
mkdir -p %{buildroot}%{_kde_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde_services}/

%files
%{_kde_services}/kcm_printer.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13679 |21mr|kcmsystemd-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Systemd control module for KDE
Name:		kcmsystemd
Version:	1.1.0
Release:	2
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://github.com/rthomsen/kcmsystemd
Source0:	https://github.com/rthomsen/kcmsystemd/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		kcmsystemd-1.1.0-kdesu-path.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Systemd control module for KDE.
- Provides a graphical frontend for modifying the systemd
  configuration files: system.conf, journald.conf and login.conf.
- Integrates in the KDE System Settings.
- The module looks for the files in /etc/systemd and /usr/etc/systemd.

%files -f %{name}.lang
%doc LICENSE NEWS README.md
%{_qt5_plugindir}/kcm_systemd.so
%{_kde5_libexecdir}/kauth/kcmsystemdhelper
%{_kde5_datadir}/kservices5/kcm_systemd.desktop
%{_kde5_datadir}/kservices5/settings-system-administration.desktop
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmsystemd.service
%{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmsystemd.conf
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmsystemd.policy

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13680 |21mr|kcm-userdrake-1.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           kcm-userdrake
License:        GPLv3+
Group:          Graphical desktop/KDE
Summary:        A KDE Control Module for launching userdrake
Version:        1.0
Release:        9
BuildArch:      noarch
BuildRequires:  kde4-macros
Source0:        kcm_userdrake.desktop
Requires:       userdrake

%description
Userdrake launcher for KDE Control Center

%prep

%build

%install
mkdir -p %{buildroot}%{_kde_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde_services}/

%files
%doc
%{_datadir}/kde4/services/kcm_userdrake.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13681 |21mr|kcmutils-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 module with various classes to work with KCModules
Name:		kcmutils
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5declarative-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5itemviews-devel = %{version}
BuildRequires:	kf5package-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5xmlgui-devel = %{version}
BuildRequires:	kf5guiaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 module with various classes to work with KCModules.

KCMUtils provides various classes to work with KCModules. KCModules can
be created with the KConfigWidgets framework.

%files
%{_kde5_datadir}/qlogging-categories5/kcmutils.categories
%{_kde5_servicetypes}/kcmodule.desktop
%{_kde5_servicetypes}/kcmoduleinit.desktop
%{_kde5_qmldir}/org/kde/kcmutils
%{_kde5_libdir}/libexec/kf5/kcmdesktopfilegenerator

#----------------------------------------------------------------------------

%package i18n
Summary:	KCMUtils translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KCMUtils translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5kcmutils_major 5
%define libkf5kcmutils %mklibname kf5kcmutils %{kf5kcmutils_major}

%package -n %{libkf5kcmutils}
Summary:	KDE Frameworks 5 KCMUtils shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5kcmutils}
KDE Frameworks 5 KCMUtils shared library.

%files -n %{libkf5kcmutils}
%{_kde5_libdir}/libKF5KCMUtils.so.%{kf5kcmutils_major}*

#----------------------------------------------------------------------------

%define kf5kcmutilscore_major 5
%define libkf5kcmutilscore %mklibname kf5kcmutilscore %{kf5kcmutilscore_major}

%package -n %{libkf5kcmutilscore}
Summary:	KDE Frameworks 5 KCMUtils shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5kcmutilscore}
KDE Frameworks 5 KCMUtils shared library.

%files -n %{libkf5kcmutilscore}
%{_kde5_libdir}/libKF5KCMUtilsCore.so.%{kf5kcmutilscore_major}*

#----------------------------------------------------------------------------

%define devkf5kcmutils %mklibname kf5kcmutils -d

%package -n %{devkf5kcmutils}
Summary:	Development files for KDE Frameworks 5 KCMUtils
Group:		Development/KDE and Qt
Requires:	%{libkf5kcmutils} = %{EVRD}
Requires:	%{libkf5kcmutilscore} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kcmutils-devel = %{EVRD}

%description -n %{devkf5kcmutils}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5kcmutils}
%{_kde5_includedir}/KF5/KCMUtils
%{_kde5_includedir}/KF5/KCMUtilsCore
%{_kde5_libdir}/cmake/KF5KCMUtils
%{_kde5_libdir}/libKF5KCMUtils.so
%{_kde5_libdir}/libKF5KCMUtilsCore.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13682 |21mr|kcm-XFdrake-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A KDE Control Module for launching XFdrake
Name:		kcm-XFdrake
Version:	1.0
Release:	14
License:	GPLv3+
Group:		Graphical desktop/KDE
Source0:	kcm_XFdrake.desktop
BuildRequires:	kde4-macros
Requires:	drakx-kbd-mouse-x11
BuildArch:	noarch

%description
XFdrake launcher for KDE Control Center.

%files
%{_kde_services}/kcm_XFdrake.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13683 |21mr|kcodecs-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CMake files check for Qt 6.x already, but it's not used yet,
# so let's not make it a hard dependency
%global __requires_exclude ^.*qt6.*$

%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 module with various classes for text encoding
Name:		kcodecs
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	gperf
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 module with various classes for text encoding.

KCodecs provides a collection of methods to manipulate strings using various
encodings. It supports:

 * base64
 * quoted-printable
 * uu

%files
%{_kde5_datadir}/qlogging-categories5/kcodecs.categories
%{_kde5_datadir}/qlogging-categories5/kcodecs.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KCodecs translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KCodecs translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5codecs_major 5
%define libkf5codecs %mklibname kf5codecs %{kf5codecs_major}

%package -n %{libkf5codecs}
Summary:	KDE Frameworks 5 text encoding shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5codecs}
KDE Frameworks 5 text encoding shared library.

%files -n %{libkf5codecs}
%{_kde5_libdir}/libKF5Codecs.so.%{kf5codecs_major}*

#----------------------------------------------------------------------------

%define devkf5codecs %mklibname kf5codecs -d

%package -n %{devkf5codecs}
Summary:	Development files for KDE Frameworks 5 text encoding module
Group:		Development/KDE and Qt
Requires:	%{libkf5codecs} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5codecs-devel = %{version}

%description -n %{devkf5codecs}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5codecs}
%{_kde5_includedir}/KF5/KCodecs
%{_kde5_libdir}/cmake/KF5Codecs
%{_kde5_libdir}/libKF5Codecs.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13684 |21mr|kcolorchooser-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Color Chooser
Name:		kcolorchooser
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KColorChooser is a simple application to select the color from the screen or
from a pallete.
Features :
   - Select colors from any location on the screen.
   - Select colors from a range of standard palletes available.
   - Color values shown in Hue-Saturation-Value (HSV), Red-Green-Blue (RGB) and
     HTML formats.

%files -f %{name}.lang
%{_kde5_bindir}/kcolorchooser
%{_kde5_applicationsdir}/org.kde.kcolorchooser.desktop
%{_kde5_iconsdir}/*/*/*/kcolorchooser*
%{_appdatadir}/org.kde.kcolorchooser.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13685 |21mr|kcolorpicker-0.1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		kColorPicker
%define	major		%{version}
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		kcolorpicker
Version:	0.1.6
Release:	2
Summary:	Qt based Color Picker with popup menu
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		https://github.com/ksnip/kColorPicker
Source:		https://github.com/ksnip/kColorPicker/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: cmake
BuildRequires: qmake5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)

%description
QToolButton with color popup menu with lets you select a color. The
popup featues a color dialog button which can be used to add custom
colors to the popup menu.

#------------------------------------------------

%package -n	%{libname}
Summary:	Qt based Color Picker with popup menu
Group:		System/Libraries
Conflicts:	%{_lib}kcolorpicker0.1.4
Obsoletes:	%{_lib}kcolorpicker0.1.4 < 0.1.6

%description -n %{libname}
QToolButton with color popup menu with lets you select a color. The
popup featues a color dialog button which can be used to add custom
colors to the popup menu.

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
Header files for development with %{name}.

#------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
	-DBUILD_EXAMPLE=ON
%make_build

%install
%make_install -C build

%files -n %{libname}
%license LICENSE
%doc README.md
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.0

%files -n %{develname}
%doc README.md
%{_includedir}/%{oname}/
%{_libdir}/lib%{oname}.so
%{_libdir}/cmake/%{oname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13686 |21mr|kcolorpicker-0.1.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		kColorPicker
%define	major		%{version}
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		kcolorpicker
Version:	0.1.6
Release:	3
Summary:	Qt based Color Picker with popup menu
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		https://github.com/ksnip/kColorPicker
Source:		https://github.com/ksnip/kColorPicker/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: cmake
BuildRequires: qmake5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)

%description
QToolButton with color popup menu with lets you select a color. The
popup featues a color dialog button which can be used to add custom
colors to the popup menu.

#------------------------------------------------

%package -n	%{libname}
Summary:	Qt based Color Picker with popup menu
Group:		System/Libraries
Conflicts:	%{_lib}kcolorpicker0.1.4
Obsoletes:	%{_lib}kcolorpicker0.1.4 < 0.1.6

%description -n %{libname}
QToolButton with color popup menu with lets you select a color. The
popup featues a color dialog button which can be used to add custom
colors to the popup menu.

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
Header files for development with %{name}.

#------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
	-DBUILD_EXAMPLE=ON
%make_build

%install
%make_install -C build

%files -n %{libname}
%license LICENSE
%doc README.md
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.0

%files -n %{develname}
%doc README.md
%{_includedir}/%{oname}/
%{_libdir}/lib%{oname}.so
%{_libdir}/cmake/%{oname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13687 |21mr|kcompletion-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 module with text completion helpers and widgets
Name:		kcompletion
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kconfig-devel = %{version}
BuildRequires:	kwidgetsaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 module with text completion helpers and widgets.

When typing filenames, email addresses and other text where the user often
wants to select from existing data (including what they previously typed)
rather than enter anything wholly original, users often find it helpful if
they only need to type the first few characters, and then have the application
offer them a set of choices or attempt to finish off what they were typing.
Email clients, shells and "open file" dialogs often provide this functionality.

This framework helps implement this in Qt-based applications. You can use one
of the completion-ready widgets provided by this framework, or integrate it
into your application's other widgets directly.

%files
%{_kde5_datadir}/qlogging-categories5/kcompletion.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KCompletion translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KCompletion translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kcompletion5widgets.so

#----------------------------------------------------------------------------

%define kf5completion_major 5
%define libkf5completion %mklibname kf5completion %{kf5completion_major}

%package -n %{libkf5completion}
Summary:	KDE Frameworks 5 text completion shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5completion}
KDE Frameworks 5 text completion shared library.

%files -n %{libkf5completion}
%{_kde5_libdir}/libKF5Completion.so.%{kf5completion_major}*

#----------------------------------------------------------------------------

%define devkf5completion %mklibname kf5completion -d

%package -n %{devkf5completion}
Summary:	Development files for KDE Frameworks 5 text completion module
Group:		Development/KDE and Qt
Requires:	%{libkf5completion} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5completion-devel = %{version}

%description -n %{devkf5completion}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5completion}
%{_kde5_includedir}/KF5/KCompletion
%{_kde5_libdir}/cmake/KF5Completion
%{_kde5_libdir}/libKF5Completion.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13688 |21mr|kconfig-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 advanced configuration system module
Name:		kconfig
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5DBus)
# Just to make KF5 applications use distro theme instead of the upstream one
Recommends:	plasma5-config
Recommends:	frameworkintegration

%description
KDE Frameworks 5 advanced configuration system module.

KConfig provides an advanced configuration system. It is made of two parts:
KConfigCore and KConfigGui.

KConfigCore provides access to the configuration files themselves.

KConfigGui provides a way to hook widgets to the configuration so that they are
automatically initialized from the configuration and automatically propagate
their changes to their respective configuration files.

%files
%{_kde5_bindir}/kreadconfig5
%{_kde5_bindir}/kwriteconfig5
%{_kde5_datadir}/qlogging-categories5/kconfig.categories
%{_kde5_datadir}/qlogging-categories5/kconfig.renamecategories
%{_kde5_libexecdir}/kf5/kconf_update
%{_kde5_libexecdir}/kf5/kconfig_compiler_kf5

#----------------------------------------------------------------------------

%package i18n
Summary:	KConfig translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KConfig translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5configcore_major 5
%define libkf5configcore %mklibname kf5configcore %{kf5configcore_major}

%package -n %{libkf5configcore}
Summary:	KDE Frameworks 5 advanced configuration system shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5configcore}
KDE Frameworks 5 advanced configuration system shared library.

%files -n %{libkf5configcore}
%{_kde5_libdir}/libKF5ConfigCore.so.%{kf5configcore_major}*

#----------------------------------------------------------------------------

%define kf5configgui_major 5
%define libkf5configgui %mklibname kf5configgui %{kf5configgui_major}

%package -n %{libkf5configgui}
Summary:	KDE Frameworks 5 advanced configuration system shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5configgui}
KDE Frameworks 5 advanced configuration system shared library.

%files -n %{libkf5configgui}
%{_kde5_libdir}/libKF5ConfigGui.so.%{kf5configgui_major}*

#----------------------------------------------------------------------------

%define kf5configqml_major 5
%define libkf5configqml %mklibname kf5configqml %{kf5configqml_major}

%package -n %{libkf5configqml}
Summary:	KDE Frameworks 5 advanced configuration system shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5configqml}
KDE Frameworks 5 advanced configuration system shared library.

%files -n %{libkf5configqml}
%{_kde5_libdir}/libKF5ConfigQml.so.%{kf5configqml_major}*

#----------------------------------------------------------------------------

%define devkf5config %mklibname kf5config -d

%package -n %{devkf5config}
Summary:	Development files for KDE Frameworks 5 advanced configuration system
Group:		Development/KDE and Qt
Requires:	%{libkf5configcore} = %{EVRD}
Requires:	%{libkf5configgui} = %{EVRD}
Requires:	%{libkf5configqml} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5config-devel = %{version}

%description -n %{devkf5config}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5config}
%{_kde5_includedir}/KF5/KConfigCore
%{_kde5_includedir}/KF5/KConfigGui
%{_kde5_includedir}/KF5/KConfigQml
%{_kde5_includedir}/KF5/KConfig/kconfig_version.h
%{_kde5_libdir}/cmake/KF5Config
%{_kde5_libdir}/libKF5ConfigCore.so
%{_kde5_libdir}/libKF5ConfigGui.so
%{_kde5_libdir}/libKF5ConfigQml.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13689 |21mr|kconfigwidgets-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CMake files check for Qt 6.x already, but it's not used yet,
# so let's not make it a hard dependency
%global __requires_exclude ^.*qt6.*$

# Used to revert patches
%global _default_patch_fuzz 2

%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 configuration dialogs widgets module
Name:		kconfigwidgets
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5auth-devel = %{version}
BuildRequires:	kf5codecs-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5doctools-devel = %{version}
BuildRequires:	kf5guiaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 configuration dialogs widgets module.

KConfigWidgets provides easy-to-use classes to create configuration dialogs,
as well as a set of widgets which uses KConfig to store their settings.

%files
%{_kde5_bindir}/preparetips5
%{_kde5_datadir}/qlogging-categories5/kconfigwidgets.categories
%{_kde5_datadir}/qlogging-categories5/kconfigwidgets.renamecategories
%{_kde5_mandir}/man1/preparetips5.1*

#----------------------------------------------------------------------------

%package i18n
Summary:	KConfigWidgets translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KConfigWidgets translations.

%files i18n -f %{name}.lang
%{_localedir}/*/kf5_entry.desktop

#----------------------------------------------------------------------------

%define kf5configwidgets_major 5
%define libkf5configwidgets %mklibname kf5configwidgets %{kf5configwidgets_major}

%package -n %{libkf5configwidgets}
Summary:	KDE Frameworks 5 configuration dialogs widgets shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5configwidgets}
KDE Frameworks 5 configuration dialogs widgets shared library.

%files -n %{libkf5configwidgets}
%{_kde5_libdir}/libKF5ConfigWidgets.so.%{kf5configwidgets_major}*

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kconfigwidgets5widgets.so

#----------------------------------------------------------------------------

%define devkf5configwidgets %mklibname kf5configwidgets -d

%package -n %{devkf5configwidgets}
Summary:	Development files for KDE Frameworks 5 configuration dialogs widgets module
Group:		Development/KDE and Qt
Requires:	%{libkf5configwidgets} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5configwidgets-devel = %{version}

%description -n %{devkf5configwidgets}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5configwidgets}
%{_kde5_includedir}/KF5/KConfigWidgets
%{_kde5_libdir}/cmake/KF5ConfigWidgets
%{_kde5_libdir}/libKF5ConfigWidgets.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13690 |21mr|kcontacts-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 address book module
Name:		kcontacts
Version:	5.116.0
Release:	2
Epoch:		1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5codecs-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
Requires:	iso-codes

%description
KDE Frameworks 5 address book module.

KContacts provides an API for address book data. This can be used by all
application using data of this type, e.g. KAddressBook, KMail, KOrganizer,
etc.

%files
%{_kde5_datadir}/qlogging-categories5/kcontacts.categories
%{_kde5_datadir}/qlogging-categories5/kcontacts.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 address book module translations
Group:		System/Internationalization
Conflicts:	kde5-l10n < 17.04
BuildArch:	noarch

%description i18n
KDE Frameworks 5 address book module translations.

%files i18n -f kcontacts5.lang

#----------------------------------------------------------------------------

%define kf5contacts_major 5
%define libkf5contacts %mklibname kf5contacts %{kf5contacts_major}

%package -n %{libkf5contacts}
Summary:	KDE Frameworks 5 address book shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5contacts}
KDE Frameworks 5 address book shared library.

%files -n %{libkf5contacts}
%{_kde5_libdir}/libKF5Contacts.so.%{kf5contacts_major}*

#----------------------------------------------------------------------------

%define devkf5contacts %mklibname kf5contacts -d

%package -n %{devkf5contacts}
Summary:	Development files for KDE Frameworks 5 address book module
Group:		Development/KDE and Qt
Requires:	%{libkf5contacts} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5contacts-devel = %{version}

%description -n %{devkf5contacts}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5contacts}
%{_kde5_includedir}/KF5/KContacts
%{_kde5_libdir}/cmake/KF5Contacts
%{_kde5_libdir}/libKF5Contacts.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcontacts5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13691 |21mr|kcoreaddons-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# This is only required in a BSD context, but rpm's
# cmake dependency generator doesn't understand
# conditionals well enough
%global __requires_exclude ^.*procstat.*

Summary:	KDE Frameworks 5 module with classes for various routines
Name:		kcoreaddons
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
# Backport: https://invent.kde.org/frameworks/kcoreaddons/-/merge_requests/421
Patch1:		non-block-fuse-as-nfs.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	shared-mime-info
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	shared-mime-info

%description
KDE Frameworks 5 module with classes for various routines.

KCoreAddons provides classes built on top of QtCore to perform various tasks
such as manipulating mime types, autosaving files, creating backup files,
generating random sequences, performing text manipulations such as macro
replacement, accessing user information and many more.

%files
%{_kde5_bindir}/desktoptojson
%dir %{_kde5_datadir}/kf5/licenses/
%{_kde5_datadir}/kf5/licenses/*
%{_kde5_datadir}/mime/packages/kde5.xml
%{_kde5_datadir}/qlogging-categories5/kcoreaddons.categories
%{_kde5_datadir}/qlogging-categories5/kcoreaddons.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KCoreAddons translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KCoreAddons translations.

%files i18n -f %{name}.lang
#{_datadir}/locale/*/LC_MESSAGES/kde5_xml_mimetypes.qm

#----------------------------------------------------------------------------

%define kf5coreaddons_major 5
%define libkf5coreaddons %mklibname kf5coreaddons %{kf5coreaddons_major}

%package -n %{libkf5coreaddons}
Summary:	KDE Frameworks 5 KCoreAddons shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5coreaddons}
KDE Frameworks 5 KCoreAddons shared library.

%files -n %{libkf5coreaddons}
%{_kde5_libdir}/libKF5CoreAddons.so.%{kf5coreaddons_major}*

#----------------------------------------------------------------------------

%define devkf5coreaddons %mklibname kf5coreaddons -d

%package -n %{devkf5coreaddons}
Summary:	Development files for KDE Frameworks 5 KCoreAddons
Group:		Development/KDE and Qt
Requires:	%{libkf5coreaddons} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5coreaddons-devel = %{version}

%description -n %{devkf5coreaddons}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5coreaddons}
%{_kde5_includedir}/KF5/KCoreAddons
%{_kde5_libdir}/cmake/KF5CoreAddons
%{_kde5_libdir}/libKF5CoreAddons.so
%{_kde5_mkspecsdir}/*.pri
%{_libdir}/pkgconfig/KF5CoreAddons.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

# simple .pc file for generate Provides: pkgconfig(KF5CoreAddons)
# needed for some apps ex. kdb
install -d %{buildroot}%{_libdir}/pkgconfig
cat << EOF > %{buildroot}%{_libdir}/pkgconfig/KF5CoreAddons.pc
prefix=%{_prefix}
exec_prefix=\${prefix}
libdir=\${exec_prefix}/%{_lib}
includedir=\${prefix}/include


Name: %{oname}
Description: %{description}
Version:	%{version}
Libs: -L\${libdir} -lKF5CoreAddons
EOF


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13692 |21mr|kcrash-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 crash analysis and bug report module
Name:		kcrash
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kcoreaddons-devel = %{version}
BuildRequires:	kwindowsystem-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)

%description
KDE Frameworks 5 crash analysis and bug report module.

KCrash provides support for intercepting and handling application crashes.

%files
%{_kde5_datadir}/qlogging-categories5/kcrash.categories
%{_kde5_datadir}/qlogging-categories5/kcrash.renamecategories

#----------------------------------------------------------------------------

%define kf5crash_major 5
%define libkf5crash %mklibname kf5crash %{kf5crash_major}

%package -n %{libkf5crash}
Summary:	KDE Frameworks 5 crash analysis and bug report shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5crash}
KDE Frameworks 5 crash analysis and bug report shared library.

%files -n %{libkf5crash}
%{_kde5_libdir}/libKF5Crash.so.%{kf5crash_major}*

#----------------------------------------------------------------------------

%define devkf5crash %mklibname kf5crash -d

%package -n %{devkf5crash}
Summary:	Development files for KDE Frameworks 5 crash analysis and bug report module
Group:		Development/KDE and Qt
Requires:	%{libkf5crash} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5crash-devel = %{version}

%description -n %{devkf5crash}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5crash}
%{_kde5_includedir}/KF5/KCrash
%{_kde5_libdir}/cmake/KF5Crash
%{_kde5_libdir}/libKF5Crash.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13693 |21mr|kcron-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical editor for the cron command scheduler
Name:		kcron
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Kcron is a graphical frontend to the cron system, used to schedule regular
tasks on a Unix system.

%files -f %{name}.lang
%{_kde5_datadir}/qlogging-categories5/kcron.categories
%{_kde5_applicationsdir}/kcm_cron.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_cron.so
%{_kde5_libexecdir}/kauth/kcron_helper
%{_kde5_datadir}/dbus-1/system-services/local.kcron.crontab.service
%{_kde5_datadir}/dbus-1/system.d/local.kcron.crontab.conf
%{_kde5_datadir}/polkit-1/actions/local.kcron.crontab.policy
%{_appdatadir}/org.kde.kcron.metainfo.xml

#------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13694 |21mr|kdav2-0.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^.*devel(libkdav2_webdavlib*
%global __requires_exclude ^.*libkdav2_webdavlib*

Summary:	KDE Frameworks 5 DAV protocol implemention module
Name:		kdav2
Version:	0.4.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://invent.kde.org/pim/kdav2/-/archive/master/kdav2-v%{version}.tar.bz2
Patch0:		kdav2-v0.4.0-qwebdavlib-static.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE library for handling the IMAP protocol.

%files
%{_sysconfdir}/xdg/kdav2.categories

#----------------------------------------------------------------------------

%define kpimkdav2_major 5
%define libkpimkdav2 %mklibname kpimkdav2 %{kpimkdav2_major}

%package -n %{libkpimkdav2}
Summary:	KDE Frameworks 5 DAV protocol implemention shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkpimkdav2}
KDE Frameworks 5 DAV protocol implemention shared library.

%files -n %{libkpimkdav2}
%{_kde5_libdir}/libKPimKDAV2.so.%{kpimkdav2_major}*
%{_kde5_libdir}/libKPimKDAV2.so.%{version}

#----------------------------------------------------------------------------

%define libkpimkdav2_webdavlib %mklibname kpimkdav2_webdavlib

%package -n %{libkpimkdav2_webdavlib}
Summary:	KDE Frameworks 5 DAV protocol implemention shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkpimkdav2_webdavlib}
KDE Frameworks 5 DAV protocol implemention shared library.

%files -n %{libkpimkdav2_webdavlib}
%{_kde5_libdir}/libkdav2_webdavlib.so

#----------------------------------------------------------------------------

%define devkpimkdav2 %mklibname kpimkdav2 -d

%package -n %{devkpimkdav2}
Summary:	Development files for KDE Frameworks 5 DAV protocol implemention module
Group:		Development/KDE and Qt
Requires:	%{libkpimkdav2} = %{EVRD}
Requires:	%{libkpimkdav2_webdavlib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5pimkdav2-devel = %{EVRD}

%description -n %{devkpimkdav2}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkpimkdav2}
%{_kde5_includedir}/*
%{_kde5_libdir}/libKPimKDAV2.so
%{_kde5_libdir}/cmake/*
%{_kde5_libdir}/qt5/mkspecs/modules/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n kdav2-v%{version}

%build
%cmake_kde5
%make_build

%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13695 |21mr|kdav-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 DAV protocol implemention module
Name:		kdav
Version:	5.116.0
Release:	2
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5XmlPatterns)

%description
KDE Frameworks 5 DAV protocol implemention module.

%files
%{_kde5_datadir}/qlogging-categories5/kdav.categories
%{_kde5_datadir}/qlogging-categories5/kdav.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 DAV protocol implemention module translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 address book module translations.

%files i18n -f libkdav.lang

#----------------------------------------------------------------------------

%define kf5dav_major 5
%define libkf5dav %mklibname kf5dav %{kf5dav_major}

%package -n %{libkf5dav}
Summary:	KDE Frameworks 5 DAV protocol implemention shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5dav}
KDE Frameworks 5 DAV protocol implemention shared library.

%files -n %{libkf5dav}
%{_kde5_libdir}/libKF5DAV.so.%{kf5dav_major}*

#----------------------------------------------------------------------------

%define devkf5dav %mklibname kf5dav -d

%package -n %{devkf5dav}
Summary:	Development files for KDE Frameworks 5 DAV protocol implemention module
Group:		Development/KDE and Qt
Requires:	%{libkf5dav} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5dav-devel = %{version}

%description -n %{devkf5dav}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5dav}
%{_kde5_includedir}/KF5/KDAV/
%{_kde5_libdir}/cmake/KF5DAV
%{_kde5_libdir}/libKF5DAV.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkdav

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13696 |21mr|kdbusaddons-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CMake files check for Qt 6.x already, but it's not used yet,
# so let's not make it a hard dependency
%global __requires_exclude ^.*qt6.*$

%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 DBus addons module with various classes on top of QtDBus
Name:		kdbusaddons
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5X11Extras)

%description
KDE Frameworks 5 DBus addons module with various classes on top of QtDBus.

KDBusAddons provides convenience classes on top of QtDBus, as well as an API to
create KDED modules.

%files
%{_kde5_bindir}/kquitapp5
%{_kde5_datadir}/qlogging-categories5/kdbusaddons.categories
%{_kde5_datadir}/qlogging-categories5/kdbusaddons.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDBusAddons translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDBusAddons translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5dbusaddons_major 5
%define libkf5dbusaddons %mklibname kf5dbusaddons %{kf5dbusaddons_major}

%package -n %{libkf5dbusaddons}
Summary:	KDE Frameworks 5 DBus addons shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5dbusaddons}
KDE Frameworks 5 DBus addons shared library.

%files -n %{libkf5dbusaddons}
%{_kde5_libdir}/libKF5DBusAddons.so.%{kf5dbusaddons_major}*

#----------------------------------------------------------------------------

%define devkf5dbusaddons %mklibname kf5dbusaddons -d

%package -n %{devkf5dbusaddons}
Summary:	Development files for KDE Frameworks 5 DBus addons
Group:		Development/KDE and Qt
Requires:	%{libkf5dbusaddons} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5dbusaddons-devel = %{version}

%description -n %{devkf5dbusaddons}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5dbusaddons}
%{_kde5_includedir}/KF5/KDBusAddons
%{_kde5_libdir}/cmake/KF5DBusAddons
%{_kde5_libdir}/libKF5DBusAddons.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13697 |21mr|kde4-macros-4.13-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Base install macros for KDE4
Name:		kde4-macros
Version:	4.13
Release:	7
License:	GPLv2+
Group:		Development/KDE and Qt
Url:		http://www.rosalinux.com
Source0:	kde4.macros
Requires:	cmake
Requires:	rosa-release-common
BuildArch:	noarch

%description
Base install macros for KDE4.

%files
%{_rpmmacrodir}/*kde4*

#----------------------------------------------------------------------------

%prep

%build

%install
%install_macro kde4 %{SOURCE0}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13698 |21mr|kde5-macros-5.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Base install macros for KDE Frameworks 5
Name:		kde5-macros
Version:	5.10
Release:	3
License:	GPLv2+
Group:		Development/KDE and Qt
Url:		http://www.rosalinux.com
Source0:	kde5.macros
Requires:	cmake
Requires:	qt5-macros
Requires:	rosa-release-common
BuildArch:	noarch

%description
Base install macros for KDE Frameworks 5.

%files
%{_rpmmacrodir}/*kde5*

#----------------------------------------------------------------------------

%prep

%build

%install
%install_macro kde5 %{SOURCE0}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13699 |21mr|kdebugsettings-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Debug settings configuration tool for Plasma 5
Name:		kdebugsettings
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Debug settings configuration tool for Plasma 5.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kdebugsettings.desktop
%{_kde5_bindir}/kdebugsettings
%{_appdatadir}/org.kde.kdebugsettings.appdata.xml
%{_kde5_datadir}/qlogging-categories5/kde.renamecategories
%{_kde5_datadir}/qlogging-categories5/kdebugsettings.categories
%{_kde5_datadir}/kdebugsettings

#----------------------------------------------------------------------------

%define major 5
%define libkdebugsettings %mklibname kdebugsettings %{major}

%package -n %{libkdebugsettings}
Summary:	Runtime library for kdebugsettings
Group:		System/Libraries

%description -n %{libkdebugsettings}
Runtime library for kdebugsettings.

%files -n %{libkdebugsettings}
%{_kde5_libdir}/libkdebugsettings.so.%{version}
%{_kde5_libdir}/libkdebugsettings.so.%{major}

#----------------------------------------------------------------------------

%define major 5
%define libkdebugsettingscore %mklibname kdebugsettingscore %{major}

%package -n %{libkdebugsettingscore}
Summary:	Runtime library for kdebugsettings
Group:		System/Libraries

%description -n %{libkdebugsettingscore}
Runtime library for kdebugsettingscore.

%files -n %{libkdebugsettingscore}
%{_kde5_libdir}/libkdebugsettingscore.so.%{version}
%{_kde5_libdir}/libkdebugsettingscore.so.%{major}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13700 |21mr|kdeclarative-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 QML integration module
Name:		kdeclarative
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5config-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 QML integration module.

KDeclarative provides integration of QML and KDE workspaces. It's comprises
two parts: a library used by the C++ part of your application to intergrate
QML with KDE Frameworks specific features, and a series of QML imports that
offer bindings to some of the Frameworks.

%files
%{_kde5_bindir}/kpackagelauncherqml

#----------------------------------------------------------------------------

%package i18n
Summary:	KDeclarative translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDeclarative translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define qmlkf5declarative %mklibname kf5declarative-qml

%package -n %{qmlkf5declarative}
Summary:	QML plugins for KDE Frameworks 5 KDeclarative
Group:		System/Libraries
Provides:	kf5declarative-qml = %{EVRD}

%description -n %{qmlkf5declarative}
QML plugins for KDE Frameworks 5 KDeclarative:
 * draganddrop
 * kcm
 * kconfig
 * kcoreaddons
 * kio
 * kquickcontrols
 * kquickcontrolsaddons

%files -n %{qmlkf5declarative}
%dir %{_kde5_qmldir}/org/kde/draganddrop/
%{_kde5_qmldir}/org/kde/draganddrop/*
%dir %{_kde5_qmldir}/org/kde/graphicaleffects/
%{_kde5_qmldir}/org/kde/graphicaleffects/*
%dir %{_kde5_qmldir}/org/kde/kcm/
%{_kde5_qmldir}/org/kde/kcm/*
%dir %{_kde5_qmldir}/org/kde/kconfig/
%{_kde5_qmldir}/org/kde/kconfig/*
%dir %{_kde5_qmldir}/org/kde/kcoreaddons/
%{_kde5_qmldir}/org/kde/kcoreaddons/*
%dir %{_kde5_qmldir}/org/kde/kio/
%{_kde5_qmldir}/org/kde/kio/*
%dir %{_kde5_qmldir}/org/kde/kquickcontrols/
%{_kde5_qmldir}/org/kde/kquickcontrols/*
%dir %{_kde5_qmldir}/org/kde/kquickcontrolsaddons/
%{_kde5_qmldir}/org/kde/kquickcontrolsaddons/*
%dir %{_kde5_qmldir}/org/kde/private/kquickcontrols/
%{_kde5_qmldir}/org/kde/private/kquickcontrols/*
%dir %{_kde5_qmldir}/org/kde/kwindowsystem/
%{_kde5_qmldir}/org/kde/kwindowsystem/*

#----------------------------------------------------------------------------

%define kf5calendarevents_major 5
%define libkf5calendarevents %mklibname kf5calendarevents %{kf5calendarevents_major}

%package -n %{libkf5calendarevents}
Summary:	KDE Frameworks 5 QML integration shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5declarative} = %{EVRD}

%description -n %{libkf5calendarevents}
KDE Frameworks 5 QML integration shared library.

%files -n %{libkf5calendarevents}
%{_kde5_libdir}/libKF5CalendarEvents.so.%{kf5calendarevents_major}*

#----------------------------------------------------------------------------

%define kf5declarative_major 5
%define libkf5declarative %mklibname kf5declarative %{kf5declarative_major}

%package -n %{libkf5declarative}
Summary:	KDE Frameworks 5 QML integration shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5declarative} = %{EVRD}

%description -n %{libkf5declarative}
KDE Frameworks 5 QML integration shared library.

%files -n %{libkf5declarative}
%{_kde5_libdir}/libKF5Declarative.so.%{kf5declarative_major}*

#----------------------------------------------------------------------------

%define kf5quickaddons_major 5
%define libkf5quickaddons %mklibname kf5quickaddons %{kf5quickaddons_major}

%package -n %{libkf5quickaddons}
Summary:	KDE Frameworks 5 QML integration shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5declarative} = %{EVRD}

%description -n %{libkf5quickaddons}
KDE Frameworks 5 QML integration shared library.

%files -n %{libkf5quickaddons}
%{_kde5_libdir}/libKF5QuickAddons.so.%{kf5quickaddons_major}*

#----------------------------------------------------------------------------

%define devkf5declarative %mklibname kf5declarative -d

%package -n %{devkf5declarative}
Summary:	Development files for KDE Frameworks 5 QML integration module
Group:		Development/KDE and Qt
Requires:	%{libkf5calendarevents} = %{EVRD}
Requires:	%{libkf5declarative} = %{EVRD}
Requires:	%{libkf5quickaddons} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5declarative-devel = %{version}

%description -n %{devkf5declarative}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5declarative}
%{_kde5_includedir}/KF5/KDeclarative
%{_kde5_libdir}/cmake/KF5Declarative
%{_kde5_libdir}/libKF5CalendarEvents.so
%{_kde5_libdir}/libKF5Declarative.so
%{_kde5_libdir}/libKF5QuickAddons.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13701 |21mr|kde-cli-tools-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 CLI (command line interface) tools
Name:		kde-cli-tools
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Source10:	%{name}.rpmlintrc
Patch1:		kde-cli-tools-no-docs.patch
# Likely other applocations need this too
Patch2:		kde-cli-tools-5.2.1-translate-kdesu.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5su-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	plasma5-workspace-devel >= %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xext)
Requires:	kinit
Conflicts:	kdebase4-runtime

%description
Plasma 5 CLI (command line interface) tools (kcmshell, kdesu etc).

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.keditfiletype.desktop
%{_kde5_applicationsdir}/org.kde.plasma.settings.open.desktop
%{_kde5_applicationsdir}/kcm_filetypes.desktop
%{_kde5_bindir}/kbroadcastnotification
%{_kde5_bindir}/kcmshell5
%{_kde5_bindir}/kde-inhibit
%{_kde5_bindir}/kde-open
%{_kde5_bindir}/kde-open5
%{_kde5_bindir}/kdecp
%{_kde5_bindir}/kdecp5
%{_kde5_bindir}/kdemv
%{_kde5_bindir}/kdemv5
%{_kde5_bindir}/kdesu
%{_kde5_bindir}/kdesu5
%{_kde5_bindir}/keditfiletype
%{_kde5_bindir}/keditfiletype5
%{_kde5_bindir}/kioclient
%{_kde5_bindir}/kioclient5
%{_kde5_bindir}/kinfo
%{_kde5_bindir}/kmimetypefinder
%{_kde5_bindir}/kmimetypefinder5
%{_kde5_bindir}/kstart
%{_kde5_bindir}/kstart5
%{_kde5_bindir}/ksvgtopng
%{_kde5_bindir}/ksvgtopng5
%{_kde5_bindir}/ktraderclient5
%{_kde5_bindir}/plasma-open-settings
%{_kde5_libexecdir}/kf5/kdeeject
%{_kde5_libexecdir}/kf5/kdesu
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_filetypes.so
%{_kde5_mandir}/man1/kdesu.1.*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
#patch1 -p1
%patch2 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

pushd %{buildroot}%{_kde5_bindir}
ln -s %{_kde5_libexecdir}/kf5/kdesu kdesu5
popd

pushd %{buildroot}%{_kde5_bindir}
ln -s %{_kde5_libexecdir}/kf5/kdesu kdesu
popd

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_mandir}/*/man1/kdesu.1*

%find_lang filetypes kbroadcastnotification kcm5_filetypes plasma-open-settings kcmshell5 kdesu kdesu5 \
           kioclient kmimetypefinder5 kstart5 ktraderclient5 %{name}.lang --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13702 |21mr|kdecoration-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 plugin based library to create window decorations
Name:		kdecoration
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)

%description
Plasma 5 plugin based library to create window decorations.

KDecoration2 is a library to create window decorations. These window
decorations can be used by for example an X11 based window manager which
re-parents a Client window to a window decoration frame.

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 window decorations library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 KDE System Guard library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kdecorations2_major 5
%define libkdecorations2 %mklibname kdecorations2_ %{kdecorations2_major}

%package -n %{libkdecorations2}
Summary:	Plasma 5 window decorations shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkdecorations2}
Plasma 5 window decorations shared library.

%files -n %{libkdecorations2}
%{_kde5_libdir}/libkdecorations2.so.%{kdecorations2_major}*

#----------------------------------------------------------------------------

%define kdecorations2private_major 10
%define libkdecorations2private %mklibname kdecorations2private %{kdecorations2private_major}

%package -n %{libkdecorations2private}
Summary:	Plasma 5 window decorations shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Conflicts:	%{_lib}kdecorations2private8 < 5.23.0
Obsoletes:	%{_lib}kdecorations2private8 < 5.23.0
Conflicts:	%{_lib}kdecorations2private9 < 5.27.0
Obsoletes:	%{_lib}kdecorations2private9 < 5.27.0

%description -n %{libkdecorations2private}
Plasma 5 window decorations shared library.

%files -n %{libkdecorations2private}
%{_kde5_libdir}/libkdecorations2private.so.%{kdecorations2private_major}
%{_kde5_libdir}/libkdecorations2private.so.%{version}

#----------------------------------------------------------------------------

%define devkf5decoration %mklibname kf5decoration -d

%package -n %{devkf5decoration}
Summary:	Development files for Plasma 5 window decorations library
Group:		Development/KDE and Qt
Requires:	%{libkdecorations2} = %{EVRD}
Requires:	%{libkdecorations2private} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kdecoration2-devel = %{version}

%description -n %{devkf5decoration}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5decoration}
%{_kde5_includedir}/KDecoration2
%{_kde5_includedir}/KF5/kdecoration2_version.h
%{_kde5_libdir}/cmake/KDecoration2
%{_kde5_libdir}/libkdecorations2.so
%{_kde5_libdir}/libkdecorations2private.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13703 |21mr|kded-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 system level services daemon
Name:		kded
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Source10:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5crash-devel = %{version}
BuildRequires:	kf5dbusaddons-devel = %{version}
BuildRequires:	kf5doctools-devel = %{version}
BuildRequires:	kf5init-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	%{name}-i18n = %{EVRD}

%description
KDE Frameworks 5 system level services daemon.

KDED stands for KDE Daemon which isn't very descriptive. It runs in the
background and performs a number of small tasks. Some of these tasks are
built in, others are started on demand.

%files
%{_kde5_applicationsdir}/org.kde.kded5.desktop
%{_kde5_bindir}/*
%{_kde5_datadir}/qlogging-categories5/kded.categories
%{_kde5_datadir}/qlogging-categories5/kded.renamecategories
%{_kde5_mandir}/man8/kded5.8*
%{_kde5_servicetypes}/kdedmodule.desktop
%{_datadir}/dbus-1/services/org.kde.kded5.service
%{_userunitdir}/plasma-kded.service

#----------------------------------------------------------------------------

%package i18n
Summary:	KDED translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDED translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define devkf5kded %mklibname kf5kded -d

%package -n %{devkf5kded}
Summary:	Development files for KDE Frameworks 5 system level services daemon
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kded-devel = %{version}

%description -n %{devkf5kded}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5kded}
%{_kde5_libdir}/cmake/KDED
%{_datadir}/dbus-1/interfaces/org.kde.kded5.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13704 |21mr|kde-dev-scripts-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Various scripts for KDE development
Name:		kde-dev-scripts
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kdelibs4support-devel
Requires:	colorsvn
Recommends:	uncrustify-kf5
BuildArch:	noarch

%description
This package contains various scripts for KDE development.

%files
%{_kde5_bindir}/adddebug
%{_kde5_bindir}/build-progress.sh
%{_kde5_bindir}/cheatmake
%{_kde5_bindir}/c++-copy-class-and-file
%{_kde5_bindir}/c++-rename-class-and-file
%{_kde5_bindir}/clean-forward-declaration.sh
%{_kde5_bindir}/clean-includes.sh
%{_kde5_bindir}/create_cvsignore
%{_kde5_bindir}/create_makefile
%{_kde5_bindir}/create_makefiles
%{_kde5_bindir}/create_svnignore
%{_kde5_bindir}/cvs-clean
%{_kde5_bindir}/cvsaddcurrentdir
%{_kde5_bindir}/cvsbackport
%{_kde5_bindir}/cvsblame
%{_kde5_bindir}/cvscheck
%{_kde5_bindir}/cvsforwardport
%{_kde5_bindir}/cvslastchange
%{_kde5_bindir}/cvslastlog
%{_kde5_bindir}/cvsrevertlast
%{_kde5_bindir}/cvsversion
%{_kde5_bindir}/cxxmetric
%{_kde5_bindir}/draw_lib_dependencies
%{_kde5_bindir}/extend_dmalloc
%{_kde5_bindir}/extractattr
%{_kde5_bindir}/extractrc
%{_kde5_bindir}/findmissingcrystal
%{_kde5_bindir}/fix-include.sh
%{_kde5_bindir}/fixkdeincludes
%{_kde5_bindir}/fixuifiles
%{_kde5_bindir}/grantlee_strings_extractor.py
%{_kde5_bindir}/includemocs
%{_kde5_bindir}/kde_generate_export_header
%{_kde5_bindir}/kdedoc
%{_kde5_bindir}/kdekillall
%{_kde5_bindir}/kdelnk2desktop.py
%{_kde5_bindir}/kdemangen.pl
%{_kde5_bindir}/krazy-licensecheck
%{_kde5_bindir}/makeobj
%{_kde5_bindir}/noncvslist
%{_kde5_bindir}/nonsvnlist
%{_kde5_bindir}/package_crystalsvg
%{_kde5_bindir}/png2mng.pl
%{_kde5_bindir}/pruneemptydirs
%{_kde5_bindir}/qtdoc
%{_kde5_bindir}/reviewboard-am
%{_kde5_bindir}/svn-clean
%{_kde5_bindir}/svnbackport
%{_kde5_bindir}/svnchangesince
%{_kde5_bindir}/svngettags
%{_kde5_bindir}/svnintegrate
%{_kde5_bindir}/svnforwardport
%{_kde5_bindir}/svnlastchange
%{_kde5_bindir}/svnlastlog
%{_kde5_bindir}/svnrevertlast
%{_kde5_bindir}/svnversions
%{_kde5_bindir}/zonetab2pot.py
%{_kde5_bindir}/optimizegraphics
%{_kde5_bindir}/wcgrep
%{_kde5_bindir}/kde-systemsettings-tree.py
%{_kde5_mandir}/man1/adddebug.1.*
%{_kde5_mandir}/man1/cheatmake.1.*
%{_kde5_mandir}/man1/create_cvsignore.1.*
%{_kde5_mandir}/man1/create_makefile.1.*
%{_kde5_mandir}/man1/create_makefiles.1.*
%{_kde5_mandir}/man1/cvscheck.1.*
%{_kde5_mandir}/man1/cvslastchange.1.*
%{_kde5_mandir}/man1/cvslastlog.1.*
%{_kde5_mandir}/man1/cvsrevertlast.1.*
%{_kde5_mandir}/man1/cxxmetric.1.*
%{_kde5_mandir}/man1/extend_dmalloc.1.*
%{_kde5_mandir}/man1/extractrc.1.*
%{_kde5_mandir}/man1/fixincludes.1.*
%{_kde5_mandir}/man1/pruneemptydirs.1.*
%{_kde5_mandir}/man1/qtdoc.1.*
%{_kde5_mandir}/man1/zonetab2pot.py.1.*

#----------------------------------------------------------------------------

%package -n uncrustify-kf5
Summary:	KF5 support files for Uncrustify
Group:		Graphical desktop/KDE
Requires:	uncrustify

%description -n uncrustify-kf5
KF5 support files for Uncrustify. Apply KF5 coding style to all C, C++ and
header files in and below the current directory

%files -n uncrustify-kf5
%{_kde5_bindir}/uncrustify-kf5
%{_kde5_datadir}/uncrustify/uncrustify-kf5.cfg
%{_kde5_datadir}/uncrustify/uncrustify-qt.cfg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_kde5_bindir}/kde_generate_export_header
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_kde5_bindir}/kdelnk2desktop.py
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_kde5_bindir}/kde-systemsettings-tree.py
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_kde5_bindir}/reviewboard-am
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_kde5_bindir}/zonetab2pot.py
sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_kde5_bindir}/grantlee_strings_extractor.py

# (nl) Prefer the file from colorsvn as it is more up to date
# and this fix a conflict between kde-dev-scripts and colorsvn
rm -f %{buildroot}%{_kde5_bindir}/colorsvn

# Delete localized man pages to avoid conflicts with kde-l10n packages
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13705 |21mr|kde-dev-utils-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utilities for KDE application development
Name:		kde-dev-utils
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5UiTools)
Recommends:	kpartloader = %{EVRD}
Recommends:	kuiviewer = %{EVRD}
Obsoletes:	kmtrace < 1:17.04
Obsoletes:	kprofilemethod < 1:17.04
Obsoletes:	kstartperf < 1:17.04

%description
Utilities for KDE application development:
 - kpartloader: test application for KParts
 - kuiviewer: UI files viewer for KDE

%files

#----------------------------------------------------------------------------

%package -n kpartloader
Summary:	Test application for KParts
Group:		Graphical desktop/KDE

%description -n kpartloader
Test application for KParts.

%files -n kpartloader -f kpartloader.lang
%{_kde5_bindir}/kpartloader

#----------------------------------------------------------------------------

%package -n kuiviewer
Summary:	UI files viewer for KDE
Group:		Graphical desktop/KDE

%description -n kuiviewer
Displays Qt Designer UI files.

%files -n kuiviewer -f kuiviewer.lang
%{_kde5_applicationsdir}/org.kde.kuiviewer.desktop
%{_kde5_bindir}/kuiviewer
%{_kde5_iconsdir}/hicolor/*/apps/kuiviewer.*
%{_kde5_services}/kuiviewer_part.desktop
%{_kde5_services}/designerthumbnail.desktop
%{_qt5_plugindir}/quithumbnail.so
%{_qt5_plugindir}/kf5/parts/kuiviewerpart.so
%{_appdatadir}/org.kde.kuiviewer.metainfo.xml
%{_appdatadir}/org.kde.kuiviewerpart.metainfo.xml
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kpartloader --with-kde

%find_lang kuiviewer --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13706 |21mr|kdeedu-data-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Data files for KDE educational applications
Name:		kdeedu-data
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
Provides:	libkdeedu = %{EVRD}
Conflicts:	libkdeedu < 16.08.2
Obsoletes:	libkdeedu < 16.08.2
Conflicts:	kde-l10n < 17.04
BuildArch:	noarch

%description
Data files for KDE educational applications.

%files
%{_kde5_datadir}/apps/kvtml/en/*
%{_kde5_iconsdir}/*/*/actions/*
%{_kde5_datadir}/apps/kvtml/bg/*
%{_kde5_datadir}/apps/kvtml/ca/*
%{_kde5_datadir}/apps/kvtml/cs/*
%{_kde5_datadir}/apps/kvtml/da/*
%{_kde5_datadir}/apps/kvtml/de/*
%{_kde5_datadir}/apps/kvtml/el/*
%{_kde5_datadir}/apps/kvtml/en_GB/*
%{_kde5_datadir}/apps/kvtml/es/*
%{_kde5_datadir}/apps/kvtml/et/*
%{_kde5_datadir}/apps/kvtml/fi/*
%{_kde5_datadir}/apps/kvtml/fr/*
%{_kde5_datadir}/apps/kvtml/ga/*
%{_kde5_datadir}/apps/kvtml/gl/*
%{_kde5_datadir}/apps/kvtml/hu/*
%{_kde5_datadir}/apps/kvtml/it/*
%{_kde5_datadir}/apps/kvtml/nb/*
%{_kde5_datadir}/apps/kvtml/nds/*
%{_kde5_datadir}/apps/kvtml/nl/*
%{_kde5_datadir}/apps/kvtml/nn/*
%{_kde5_datadir}/apps/kvtml/pa/*
%{_kde5_datadir}/apps/kvtml/pl/*
%{_kde5_datadir}/apps/kvtml/pt*/*
%{_kde5_datadir}/apps/kvtml/ro/*
%{_kde5_datadir}/apps/kvtml/ru/*
%{_kde5_datadir}/apps/kvtml/sl/*
%{_kde5_datadir}/apps/kvtml/sr*/*
%{_kde5_datadir}/apps/kvtml/sv/*
%{_kde5_datadir}/apps/kvtml/sk/*
%{_kde5_datadir}/apps/kvtml/tg/*
%{_kde5_datadir}/apps/kvtml/tr/*
%{_kde5_datadir}/apps/kvtml/uk/*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13707 |21mr|kdegraphics-mobipocket-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A collection of plugins to handle mobipocket files
Name:		kdegraphics-mobipocket
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)

%description
A collection of plugins to handle mobipocket files.

%files
%doc COPYING

#----------------------------------------------------------------------

%define major 2
%define libqmobipocket %mklibname qmobipocket %{major}

%package -n %{libqmobipocket}
Summary:	QMobipocket library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libqmobipocket}
QMobipocket library.

%files -n %{libqmobipocket}
%{_kde5_libdir}/libqmobipocket.so.%{major}*

#----------------------------------------------------------------------

%define devqmobipocket %mklibname qmobipocket -d

%package -n %{devqmobipocket}
Summary:	Development files for QMobipocket
Group:		System/Libraries
Requires:	%{libqmobipocket} = %{EVRD}
Provides:	qmobipocket-devel = %{EVRD}

%description -n %{devqmobipocket}
Development files for QMobipocket.

%files -n %{devqmobipocket}
%{_kde5_includedir}/QMobipocket/
%{_kde5_libdir}/libqmobipocket.so
%{_kde5_libdir}/cmake/QMobipocket/

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13708 |21mr|kdegraphics-thumbnailers-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Postscript, PDF, DVI and RAW ThumbCreator
Name:		kdegraphics-thumbnailers
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5kdcraw-devel
BuildRequires:	kf5kexiv2-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	qmobipocket-devel

%description
PostScript, PDF, DVI and RAW files ThumbCreator.

%files
%doc COPYING COPYING.LIB
%{_kde5_plugindir}/thumbcreator/blenderthumbnail.so
%{_kde5_plugindir}/thumbcreator/gsthumbnail.so
%{_kde5_plugindir}/thumbcreator/mobithumbnail.so
%{_kde5_plugindir}/thumbcreator/rawthumbnail.so
%{_appdatadir}/org.kde.kdegraphics-thumbnailers.metainfo.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13709 |21mr|kdelibs4support-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# TODO: make propper provides
%global __requires_exclude cmake\\((KDEWin|KF5DocTools)\\)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 porting aid from KDELibs4 module
Name:		kdelibs4support
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
Source1:	kdelibs4support-5.85+ru.tar.gz
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-designer
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5completion-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5crash-devel = %{version}
BuildRequires:	kf5designerplugin-devel = %{version}
BuildRequires:	kf5doctools-devel = %{version}
BuildRequires:	kf5emoticons-devel = %{version}
BuildRequires:	kf5globalaccel-devel = %{version}
BuildRequires:	kf5guiaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5kded-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5notifications-devel = %{version}
BuildRequires:	kf5parts-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5textwidgets-devel = %{version}
BuildRequires:	kf5unitconversion-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	kf5windowsystem-devel = %{version}
BuildRequires:	kf5xmlgui-devel = %{version}
BuildRequires:	kf5dbusaddons-devel = %{version}
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	perl(URI::Escape)
Requires:	docbook-dtd45-xml
Requires:	docbook-style-xsl

%description
KDE Frameworks 5 porting aid from KDELibs4 module.

This framework provides code and utilities to ease the transition from
kdelibs 4 to KDE Frameworks 5. This includes CMake macros and C++
classes whose functionality has been replaced by code in CMake, Qt and
other frameworks.

%files
%{_kde5_bindir}/kdebugdialog5
%{_kde5_bindir}/kf5-config
%{_kde5_datadir}/kf5/kdoctools/customization/*
%{_kde5_datadir}/kf5/kssl/ca-bundle.crt
%{_kde5_datadir}/kf5/locale/*
%{_kde5_datadir}/kf5/widgets/*
# Likely requires config in /etc, TODO
%{_kde5_libexecdir}/kf5/fileshareset
%{_kde5_libexecdir}/kf5/filesharelist
%{_kde5_mandir}/man1/kf5-config.1*
%{_kde5_plugindir}/kded/networkstatus.so
%{_kde5_plugindir}/kio/metainfo.so
%{_kde5_services}/kcm_ssl.desktop
%{_kde5_services}/qimageioplugins/*.desktop
%{_kde5_servicetypes}/*.desktop
%{_kde5_sysconfdir}/xdg/colors/*
%{_kde5_sysconfdir}/xdg/kdebug.areas
%{_kde5_sysconfdir}/xdg/kdebugrc
%{_kde5_sysconfdir}/xdg/ksslcalist
%{_localedir}/kf5_all_languages
%{_qt5_plugindir}/kcm_ssl.so

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for KDELibs4Support
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for KDELibs4Support.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kf5deprecatedwidgets.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KDELibs4Support translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDELibs4Support translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5kdelibs4support_major 5
%define libkf5kdelibs4support %mklibname kf5kdelibs4support %{kf5kdelibs4support_major}

%package -n %{libkf5kdelibs4support}
Summary:	KDE Frameworks 5 porting aid from KDELibs4 shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5kdelibs4support}
KDE Frameworks 5 porting aid from KDELibs4 shared library.

%files -n %{libkf5kdelibs4support}
%{_kde5_libdir}/libKF5KDELibs4Support.so.%{kf5kdelibs4support_major}*

#----------------------------------------------------------------------------

%define devkf5kdelibs4support %mklibname kf5kdelibs4support -d

%package -n %{devkf5kdelibs4support}
Summary:	Development files for KDE Frameworks 5 porting aid from KDELibs4 module
Group:		Development/KDE and Qt
Requires:	%{libkf5kdelibs4support} = %{EVRD}
Requires:	kf5designerplugin-devel = %{version}
Requires:	kf5doctools-devel = %{version}
Requires:	kf5emoticons-devel = %{version}
Requires:	kf5globalaccel-devel = %{version}
Requires:	kf5guiaddons-devel = %{version}
Requires:	kf5i18n-devel = %{version}
Requires:	kf5init-devel = %{version}
Requires:	kf5itemmodels-devel = %{version}
Requires:	kf5itemviews-devel = %{version}
Requires:	kf5jobwidgets-devel = %{version}
Requires:	kf5kcmutils-devel = %{version}
Requires:	kf5kio-devel = %{version}
Requires:	kf5notifications-devel = %{version}
Requires:	kf5parts-devel = %{version}
Requires:	kf5pty-devel = %{version}
Requires:	kf5service-devel = %{version}
Requires:	kf5solid-devel = %{version}
Requires:	kf5sonnet-devel = %{version}
Requires:	kf5su-devel = %{version}
Requires:	kf5textwidgets-devel = %{version}
Requires:	kf5unitconversion-devel = %{version}
Requires:	kf5widgetsaddons-devel = %{version}
Requires:	kf5windowsystem-devel = %{version}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kdelibs4support-devel = %{version}

%description -n %{devkf5kdelibs4support}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5kdelibs4support}
%{_kde5_includedir}/KF5/KDELibs4Support
%{_kde5_libdir}/cmake/KDELibs4
%{_kde5_libdir}/cmake/KF5KDE4Support
%{_kde5_libdir}/cmake/KF5KDELibs4Support
%{_kde5_libdir}/libKF5KDELibs4Support.so
%{_datadir}/dbus-1/interfaces/kf5_org.*.xml

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-html --with-kde --with-man


## use ca-certificates' ca-bundle.crt, symlink as what most other
## distros do these days (http://bugzilla.redhat.com/521902)
if [  -f %{buildroot}%{_kde5_datadir}/kf5/kssl/ca-bundle.crt -a -f /etc/pki/tls/certs/ca-bundle.crt ]; then
    ln -sf /etc/pki/tls/certs/ca-bundle.crt %{buildroot}%{_kde5_datadir}/kf5/kssl/ca-bundle.crt
fi


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13710 |21mr|kdenlive-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A non-linear video editing application for Plasma 5
Name:		kdenlive
Version:	23.08.4
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kdenlive.org/
# https://github.com/KDE/kdenlive/tags
Source0:	http://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5plotting-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	mlt-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5NetworkAuth)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiPlugin)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(sm)
BuildRequires:	rttr-devel
Requires:	breeze-icon-theme
Requires:	ffmpeg
Requires:	frei0r-plugins
Requires:	ladspa
Requires:	mediainfo
Recommends:	phonon4qt5-backend
Requires:	qt5-qtquickcontrols-qml
Requires:	x11-font-misc-misc
Requires:	mlt-cli
Requires:	mlt-kdenlive
Requires:	mlt-multimedia
# change to mlt-glaxnimate-qt6 and mlt-qt6 when Kdenlive is on Qt6
Requires:	mlt-glaxnimate
Recommends:	mlt-qt
# If they are installed, light and dark themes may be switched via GUI
# Kdenlive defaults to the dark theme if it exists (a dark UI is considered
# to be better for working with videos, especailly hours long)
Recommends:	plasma5-color-scheme-breeze-light
Recommends:	plasma5-color-scheme-breeze-dark
Recommends:	breeze-icon-theme-dark

%description
Kdenlive is a non-linear video editor for Plasma 5. It relies on a separate
renderer, piave, to handle it's rendering. Kdenlive supports multitrack
editing.

%files -f %{name}.lang
%license COPYING
%doc AUTHORS README.md ChangeLog
%{_datadir}/applications/org.kde.kdenlive.desktop
%{_kde5_bindir}/kdenlive
%{_kde5_bindir}/kdenlive_render
%{_kde5_datadir}/kdenlive
%{_kde5_datadir}/config.kcfg/kdenlivesettings.kcfg
%{_kde5_iconsdir}/hicolor/*/actions/add-subtitle.svg
%{_kde5_iconsdir}/hicolor/*/actions/keyframe*.*
%{_kde5_iconsdir}/hicolor/*/apps/kdenlive.*
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-kdenlive.*
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-kdenlivetitle.*
%{_kde5_iconsdir}/hicolor/*/mimetypes/video-mlt-playlist.*
%{_kde5_mandir}/man1/kdenlive.1*
%{_kde5_mandir}/man1/kdenlive_render.1*
%{_kde5_notificationsdir}/kdenlive.notifyrc
%{_appdatadir}/org.kde.kdenlive.appdata.xml
%{_datadir}/mime/packages/*.xml
%{_kde5_plugindir}/thumbcreator/mltpreview.so
%{_kde5_datadir}/knsrcfiles/kdenlive_effects.knsrc
%{_kde5_datadir}/knsrcfiles/kdenlive_luts.knsrc
%{_kde5_datadir}/knsrcfiles/kdenlive_keyboardschemes.knsrc
%{_kde5_datadir}/knsrcfiles/kdenlive_renderprofiles.knsrc
%{_kde5_datadir}/knsrcfiles/kdenlive_titles.knsrc
%{_kde5_datadir}/knsrcfiles/kdenlive_wipes.knsrc
%{_kde5_datadir}/qlogging-categories5/kdenlive.categories

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make -s

%install
%makeinstall_std -C build

# make desktop file easily available on other DEs
mkdir -p %{buildroot}%{_datadir}/applications
mv -v %{buildroot}%{_kde5_applicationsdir}/*.desktop %{buildroot}%{_datadir}/applications
rmdir %{buildroot}%{_kde5_applicationsdir}

%find_lang %{name} --with-html --with-kde

# remove unwanted doc folder
rm -fr %{buildroot}%{_docdir}/Kdenlive

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13711 |21mr|kde-print-manager-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname print-manager

Summary:	Printer management for Plasma
Name:		kde-print-manager
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/base/print-manager
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Source1:	kde-print-manager.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	cups-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Printer management for Plasma.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kde-add-printer.desktop
%{_kde5_applicationsdir}/org.kde.ConfigurePrinter.desktop
%{_kde5_applicationsdir}/org.kde.PrintQueue.desktop
%{_kde5_applicationsdir}/kcm_printer_manager.desktop
%{_kde5_bindir}/configure-printer
%{_kde5_bindir}/kde-add-printer
%{_kde5_bindir}/kde-print-queue
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.printmanager/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.printmanager/*
%{_kde5_libdir}/libkcupslib.so
%{_kde5_notificationsdir}/printmanager.notifyrc
%dir %{_kde5_qmldir}/org/kde/plasma/printmanager/
%{_kde5_qmldir}/org/kde/plasma/printmanager/*
%{_appdatadir}/org.kde.plasma.printmanager.appdata.xml
%{_appdatadir}/org.kde.print-manager.metainfo.xml
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_printer_manager.so
%{_qt5_plugindir}/kf5/kded/printmanager.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang print-manager plasma_applet_org.kde.plasma.printmanager %{name}.lang --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13712 |21mr|kdesdk-kio-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE SDK KIO slaves
Name:		kdesdk-kio
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
Recommends:	plasma5-kio-perldoc
Conflicts:	kdesdk-kioslaves < 23.08.4
Obsoletes:	kdesdk-kioslaves < 23.08.4

%description
KIO slaves for:
 - Perl documentation

%files

#----------------------------------------------------------------------------

%package -n plasma5-kio-perldoc
Summary:	Plasma 5 KIO slave interface for Perl documentation
Group:		Graphical desktop/KDE
Requires:	perl(Pod::Perldoc)

%description -n plasma5-kio-perldoc
Plasm 5 KIO slave interface for Perl documentation.

%files -n plasma5-kio-perldoc -f kio5_perldoc.lang
%{_kde5_datadir}/kio_perldoc/pod2html.pl
%{_qt5_plugindir}/kf5/kio/perldoc.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kio5_perldoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13713 |21mr|kdesdk-kioslaves-21.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE SDK KIO slaves
Name:		kdesdk-kioslaves
Version:	21.12.3
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
Recommends:	plasma5-kio-perldoc

%description
KIO slaves for:
 - Perl documentation

%files

#----------------------------------------------------------------------------

%package -n plasma5-kio-perldoc
Summary:	Plasma 5 KIO slave interface for Perl documentation
Group:		Graphical desktop/KDE
Requires:	perl(Pod::Perldoc)

%description -n plasma5-kio-perldoc
Plasm 5 KIO slave interface for Perl documentation.

%files -n plasma5-kio-perldoc -f kio5_perldoc.lang
%{_kde5_datadir}/kio_perldoc/pod2html.pl
%{_qt5_plugindir}/kf5/kio/perldoc.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kio5_perldoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13714 |21mr|kdesdk-thumbnailers-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A preview image generator plugin for gettext translations and templates
Name:		kdesdk-thumbnailers
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	gettext-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	gettext

%description
A preview image generator plugin for gettext translations and templates.

%files -f pothumbnail.lang
%{_kde5_datadir}/config.kcfg/pocreatorsettings.kcfg
%{_kde5_plugindir}/thumbcreator/pothumbnail.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang pothumbnail --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13715 |21mr|kdesignerplugin-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 Qt Designer/Creator integration module
Name:		kdesignerplugin
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-designer
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5completion-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5dbusaddons-devel = %{version}
BuildRequires:	kf5doctools-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5itemviews-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5plotting-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5sonnet-devel = %{version}
BuildRequires:	kf5textwidgets-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	kf5xmlgui-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	%{name}-i18n = %{EVRD}

%description
KDE Frameworks 5 Qt Designer/Creator integration module.

This framework provides plugins for Qt Designer that allow it to display
the widgets provided by various KDE frameworks, as well as a utility
(kgendesignerplugin) that can be used to generate other such plugins
from ini-style description files.

%files
%{_kde5_bindir}/kgendesignerplugin
%{_kde5_mandir}/man1/kgendesignerplugin.1*

#----------------------------------------------------------------------------

%package i18n
Summary:	KDesignerPlugin translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDesignerPlugin translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define devkf5designerplugin %mklibname kf5designerplugin -d

%package -n %{devkf5designerplugin}
Summary:	Development files for KDE Frameworks 5 Qt Designer/Creator integration module
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5designerplugin-devel = %{version}

%description -n %{devkf5designerplugin}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5designerplugin}
%{_kde5_libdir}/cmake/KF5DesignerPlugin

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13716 |21mr|kdesu-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 integration with su for elevated privileges module
Name:		kdesu
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5pty-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	ki18n-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(x11)

%description
KDE Frameworks 5 integration with su for elevated privileges module.

KDESu provides functionality for building GUI front ends for (password asking)
console mode programs. For example, kdesu and kdessh use it to interface with
su and ssh respectively.

%files
%{_kde5_datadir}/qlogging-categories5/ksu.categories
%attr(2755,root,nogroup) %{_kde5_libexecdir}/kf5/kdesud
%{_kde5_libexecdir}/kf5/kdesu_stub

#----------------------------------------------------------------------------

%package i18n
Summary:	KDESu translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDESu translations.

%files i18n -f kdesud5.lang

#----------------------------------------------------------------------------

%define kf5su_major 5
%define libkf5su %mklibname kf5su %{kf5su_major}

%package -n %{libkf5su}
Summary:	KDE Frameworks 5 KDESu shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5su}
KDE Frameworks 5 KDESu shared library.

%files -n %{libkf5su}
%{_kde5_libdir}/libKF5Su.so.%{kf5su_major}*

#----------------------------------------------------------------------------

%define devkf5su %mklibname kf5su -d

%package -n %{devkf5su}
Summary:	Development files for KDE Frameworks 5 KDESu module
Group:		Development/KDE and Qt
Requires:	%{libkf5su} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5su-devel = %{version}

%description -n %{devkf5su}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5su}
%{_kde5_includedir}/KF5/KDESu
%{_kde5_libdir}/cmake/KF5Su
%{_kde5_libdir}/libKF5Su.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kdesud5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13717 |21mr|kdesvn-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE client for subversion
Name:		kdesvn
Version:	2.1.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kdesvn.alwins-world.de/
Source0:	http://download.kde.org/stable/kdesvn/%{version}/%{name}-%{version}-1.tar.xz
Source1:	kdesvn_ru.po
Patch0:		kdesvn-desktop-l10n.patch
BuildRequires:  extra-cmake-modules
BuildRequires:  subversion-devel
BuildRequires:  kf5bookmarks-devel
BuildRequires:  kf5config-devel
BuildRequires:  kf5configwidgets-devel
BuildRequires:  kf5coreaddons-devel
BuildRequires:  kf5dbusaddons-devel
BuildRequires:  kf5doctools-devel
BuildRequires:  kf5i18n-devel
BuildRequires:  kf5iconthemes-devel
BuildRequires:  kf5itemviews-devel
BuildRequires:  kf5jobwidgets-devel
BuildRequires:  kf5kio-devel
BuildRequires:  kf5notifications-devel
BuildRequires:  kf5service-devel
BuildRequires:  kf5texteditor-devel
BuildRequires:  kf5wallet-devel
BuildRequires:  kf5widgetsaddons-devel
BuildRequires:  pkgconfig(Qt5Sql)
Requires:	cervisia
Requires:	graphviz

%description
kdesvn is yet another client for subversion. But it uses native 
KDE API instead of a extra lib like GAMBAS and it is using the 
native subversion delevelopment API instead of just parsing the 
output of the commandline tool like most other clients do. It tries 
to setup a look and feel like the standard filemanager of KDE and is 
integrated into it via KPart.
The base C++ interface to subversion I took from the (real great) tool 
Rapidsvn (see http://rapidsvn.tigris.org/) with some modifcations and fixes.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog
%{_kde5_bindir}/*
%{_kde5_applicationsdir}/org.kde.kdesvn.desktop
%{_kde5_iconsdir}/hicolor/*/*/*
%{_kde5_datadir}/config.kcfg/*
%{_kde5_services}/ServiceMenus/kdesvn_subversion.desktop
%{_kde5_services}/ServiceMenus/kdesvn_subversion_toplevel.desktop
%{_kde5_services}/kdesvnpart.desktop
%{_kde5_services}/ksvn*.protocol
%{_qt5_plugindir}/kdesvnpart.so
%{_qt5_plugindir}/kf5/kded/kdesvnd.so
%{_qt5_plugindir}/kio_ksvn.so
%{_kde5_xmlguidir}/kdesvn/kdesvn_part.rc
%{_kde5_xmlguidir}/kdesvn/kdesvnui.rc
%{_kde5_datadir}/dbus-1/interfaces/kf5_org.kde.kdesvnd.xml
%{_kde5_datadir}/dbus-1/services/org.kde.kdesvnd.service
%{_kde5_datadir}/kconf_update/kdesvn-use-external-update.sh
%{_kde5_datadir}/kconf_update/kdesvnpartrc-use-external.upd
%{_kde5_datadir}/kdesvn/kdesvn.notifyrc
%{_kde5_docdir}/HTML/*/kdesvn/*
%{_mandir}/man1/*
%{_appdatadir}/org.kde.kdesvn.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

cp %{SOURCE1} po/ru/kdesvn.po

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} kdesvnaskpass %{name}.lang --with-html --with-man

rm -f %{buildroot}%{_kde5_libdir}/libsvnqt.a
rm -f %{buildroot}%{_datadir}/dbus-1/interfaces/org.kde.kdesvnd.xml

# fwang: conflicts with cervisia
rm -f %{buildroot}%{_kde5_services}/svn*.protocol

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13718 |21mr|kdevelop-22.12.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion 5.10.221203
%global __requires_exclude ^.*/bin/zsh*

Summary:	KDE Integrated Development Environment
Name:		kdevelop
Version:	22.12.3
Release:	3
Epoch:		4
License:	GPLv2+
Group:		Development/C++
Url:		http://www.kdevelop.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source10:	kdevelop.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	qt5-tools
BuildRequires:	clang-devel
BuildRequires:	llvm-devel
BuildRequires:	llvm-plugins
BuildRequires:	cppcheck
BuildRequires:	kdevelop-pg-qt-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5sysguard-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(shared-mime-info)
Requires:	kdevplatform = %{EVRD}
Requires:	kdevplatform-devel = %{EVRD}
Requires:	kdevelop-pg-qt
Requires:	plasma-framework
# used by plugins, but are not required to run kdevelop
Recommends:	cmake
Recommends:	extra-cmake-modules
Recommends:	gdb
Recommends:	git-core
Recommends:	ninja
# make sense only inside KDE, no sense in other DEs
Recommends:	(plasma5-applet-kdevelopsessions if plasma5-workspace)
Recommends:	(plasma5-runner-kdevelopsessions if plasma5-workspace)

%description
The KDevelop Integrated Development Environment provides many features that
developers need as well as providing a unified interface to programs like gdb,
the C/C++ compiler, and make.

KDevelop manages or provides:
   * All development tools needed for C++ programming like Compiler, Linker,
     automake and autoconf
   * KAppWizard, which generates complete, ready-to-go sample applications
   * Classgenerator, for creating new classes and integrating them into the
     current project
   * File management for sources, headers, documentation etc. to be included in
     the project
   * The creation of User-Handbooks written with SGML and the automatic
     generation of HTML-output with the KDE look and feel
   * Automatic HTML-based API-documentation for your project's classes with
     cross-references to the used libraries; Internationalization support for
     your application, allowing translators to easily add their target language
     to a project
   * WYSIWYG (What you see is what you get) creation of user interfaces with a
     built-in dialog editor
   * Debugging your application by integrating KDbg
   * Editing of project-specific pixmaps with KIconEdit
   * The inclusion of any other program you need for development by adding it
     to the "Tools" menu according to your individual needs.

%files -f %{name}.lang
%{_kde5_applicationsdir}/*.desktop
%{_kde5_bindir}/*
%exclude %{_kde5_bindir}/kdev_dbus_socket_transformer
%exclude %{_kde5_bindir}/kdev_format_source
%exclude %{_kde5_bindir}/kdevplatform_shell_environment.sh
%{_kde5_datadir}/kdevappwizard
%{_kde5_datadir}/kdevclangsupport
%{_kde5_datadir}/kdevelop
%{_kde5_datadir}/kdevfiletemplates
%{_kde5_datadir}/kdevgdb
%{_kde5_datadir}/kdevmanpage
%{_kde5_datadir}/kdevqmljssupport
%{_kde5_datadir}/knsrcfiles
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.png
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.svg
%{_kde5_iconsdir}/hicolor/*/apps/qtlogo.svg
%{_kde5_iconsdir}/hicolor/*/apps/kdevgh.png
%{_kde5_iconsdir}/hicolor/*/apps/cmake.png
%{_kde5_iconsdir}/hicolor/*/apps/cppcheck.png
%{_kde5_iconsdir}/hicolor/*/apps/github-*.png
%{_kde5_iconsdir}/hicolor/*/apps/clazy.png
%{_kde5_notificationsdir}/kdevelop.notifyrc
%{_appdatadir}/org.kde.kdevelop.appdata.xml
%{_datadir}/mime/packages/kdevelop.xml
%{_datadir}/mime/packages/kdevclang.xml
%{_datadir}/mime/packages/kdevgit.xml
%{_datadir}/qlogging-categories5/kdevelop.categories

#----------------------------------------------------------------------------

%package -n plasma5-applet-kdevelopsessions
Summary:	Plasma 5 show KDevelop sessions applet
Group:		Graphical desktop/KDE

%description -n plasma5-applet-kdevelopsessions
Plasma 5 show KDevelop sessions applet.

%files -n plasma5-applet-kdevelopsessions
%{_kde5_services}/plasma-applet-kdevelopsessions.desktop
%{_kde5_datadir}/plasma/plasmoids/kdevelopsessions

#----------------------------------------------------------------------------

%package -n plasma5-runner-kdevelopsessions
Summary:	Plasma 5 KDevelop sessions runner
Group:		Graphical desktop/KDE
Requires:	%{name}

%description -n plasma5-runner-kdevelopsessions
Plasma 5 KDevelop sessions runner.

%files -n plasma5-runner-kdevelopsessions
%{_qt5_plugindir}/kf5/krunner/krunner_kdevelopsessions.so

#----------------------------------------------------------------------------

%define libkdevelopsessionswatch %mklibname kdevelopsessionswatch

%package -n %{libkdevelopsessionswatch}
Summary:	KDE Integrated Development Environment shared library
Group:		System/Libraries

%description -n %{libkdevelopsessionswatch}
KDE Integrated Development Environment shared library.

%files -n %{libkdevelopsessionswatch}
%{_kde5_libdir}/libKDevelopSessionsWatch.so

#----------------------------------------------------------------------------

%define kdevclangprivate_major 51
%define libkdevclangprivate %mklibname kdevclangprivate %{kdevclangprivate_major}

%package -n %{libkdevclangprivate}
Summary:	KDE Integrated Development Environment shared library
Group:		System/Libraries

%description -n %{libkdevclangprivate}
KDE Integrated Development Environment shared library.

%files -n %{libkdevclangprivate}
%{_kde5_libdir}/libKDevClangPrivate.so.%{kdevclangprivate_major}*

#----------------------------------------------------------------------------

%define kdevcmakecommon_major 51
%define libkdevcmakecommon %mklibname kdevcmakecommon %{kdevcmakecommon_major}

%package -n %{libkdevcmakecommon}
Summary:	KDE Integrated Development Environment shared library
Group:		System/Libraries

%description -n %{libkdevcmakecommon}
KDE Integrated Development Environment shared library.

%files -n %{libkdevcmakecommon}
%{_kde5_libdir}/libKDevCMakeCommon.so.%{kdevcmakecommon_major}*

#----------------------------------------------------------------------------

%define kdevcompileanalyzercommon_major 51
%define libkdevcompileanalyzercommon %mklibname kdevcompileanalyzercommon %{kdevcompileanalyzercommon_major}

%package -n %{libkdevcompileanalyzercommon}
Summary:	KDE Integrated Development Environment shared library
Group:		System/Libraries

%description -n %{libkdevcompileanalyzercommon}
KDE Integrated Development Environment shared library.

%files -n %{libkdevcompileanalyzercommon}
%{_kde5_libdir}/libKDevCompileAnalyzerCommon.so.%{kdevcompileanalyzercommon_major}*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for KDevelop
Group:		Development/KDE and Qt

%description devel
Development files for KDevelop.

%files devel
%{_kde5_libdir}/cmake/KDevelop/
%{_kde5_includedir}/kdevelop

#----------------------------------------------------------------------------

%package -n kdevlldb
Summary:	LLDB support for KDevelop
Group:		Graphical desktop/KDE
Requires:	%{name}

%description -n kdevlldb
LLDB support for KDevelop.

%files -n kdevlldb
%{_kde5_datadir}/kdevlldb

#---------------------------------------------------------------------------
### KdevPlatform ###
#---------------------------------------------------------------------------
%define kdmajor 51
%define kdname kdevplatform

%package -n %{kdname}
Summary:	KDE Integrated Development Environment platform
Group:		Graphical desktop/KDE
BuildRequires:	boost-devel
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	libkomparediff2-devel
BuildRequires:	subversion-devel
BuildRequires:	pkgconfig(apr-1)
BuildRequires:	pkgconfig(apr-util-1)
BuildRequires:	pkgconfig(Qt5DBus)
Requires:	kdevelop = %{EVRD}

%description -n %{kdname}
KDE Integrated Development Environment platform.

%files -n %{kdname}
%{_kde5_bindir}/kdev_dbus_socket_transformer
%{_kde5_bindir}/kdev_format_source
%{_kde5_bindir}/kdevplatform_shell_environment.sh
%dir %{_kde5_datadir}/kdevcodegen/
%{_kde5_datadir}/kdevcodegen/*
%dir %{_kde5_datadir}/kdevcodeutils/
%{_kde5_datadir}/kdevcodeutils/*
%dir %{_kde5_datadir}/%{kdname}/
%dir %{_kde5_datadir}/%{kdname}/shellutils/
%{_kde5_datadir}/%{kdname}/shellutils/.zshrc
%{_kde5_iconsdir}/hicolor/*/actions/breakpoint.png
%{_kde5_iconsdir}/hicolor/*/apps/bazaar.png
%{_kde5_iconsdir}/hicolor/*/apps/subversion.png
%{_kde5_iconsdir}/hicolor/scalable/actions/breakpoint.svg
%{_kde5_iconsdir}/hicolor/scalable/apps/git.svg
%{_kde5_iconsdir}/hicolor/scalable/apps/subversion.svg
%{_kde5_servicetypes}/kdevelopplugin.desktop
%{_qt5_plugindir}/grantlee/*/kdev_filters.so
%{_qt5_plugindir}/kdevplatform/*/*.so
%{_kde5_qmldir}/org/kde/plasma/private/kdevelopsessions/libkdevelopsessionsplugin.so
%{_kde5_qmldir}/org/kde/plasma/private/kdevelopsessions/qmldir
%{_datadir}/qlogging-categories5/kdevplatform.categories

#----------------------------------------------------------------------------

%define qmlkdevplatform %mklibname kdevplatform-qml

%package -n %{qmlkdevplatform}
Summary:	QML plugin for KDE Integrated Development Environment platform
Group:		System/Libraries
Provides:	kdevplatform-qml = %{EVRD}

%description -n %{qmlkdevplatform}
QML plugin for KDE Integrated Development Environment platform.

%files -n %{qmlkdevplatform}
%dir %{_kde5_qmldir}/org/kde/kdevplatform/
%{_kde5_qmldir}/org/kde/kdevplatform/*

#----------------------------------------------------------------------------

%define libkdevplatformdebugger %mklibname kdevplatformdebugger %{kdmajor}

%package -n %{libkdevplatformdebugger}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformdebugger}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformdebugger}
%{_kde5_libdir}/libKDevPlatformDebugger.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformDebugger.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatformdocumentation %mklibname kdevplatformdocumentation %{kdmajor}

%package -n %{libkdevplatformdocumentation}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformdocumentation}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformdocumentation}
%{_kde5_libdir}/libKDevPlatformDocumentation.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformDocumentation.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatforminterfaces %mklibname kdevplatforminterfaces %{kdmajor}

%package -n %{libkdevplatforminterfaces}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries
Requires:	kdevplatform-qml

%description -n %{libkdevplatforminterfaces}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatforminterfaces}
%{_kde5_libdir}/libKDevPlatformInterfaces.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformInterfaces.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatformlanguage %mklibname kdevplatformlanguage %{kdmajor}

%package -n %{libkdevplatformlanguage}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformlanguage}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformlanguage}
%{_kde5_libdir}/libKDevPlatformLanguage.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformLanguage.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatformoutputview %mklibname kdevplatformoutputview %{kdmajor}

%package -n %{libkdevplatformoutputview}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformoutputview}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformoutputview}
%{_kde5_libdir}/libKDevPlatformOutputView.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformOutputView.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatformproject %mklibname kdevplatformproject %{kdmajor}

%package -n %{libkdevplatformproject}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformproject}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformproject}
%{_kde5_libdir}/libKDevPlatformProject.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformProject.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatformserialization %mklibname kdevplatformserialization %{kdmajor}

%package -n %{libkdevplatformserialization}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformserialization}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformserialization}
%{_kde5_libdir}/libKDevPlatformSerialization.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformSerialization.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatformshell %mklibname kdevplatformshell %{kdmajor}

%package -n %{libkdevplatformshell}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformshell}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformshell}
%{_kde5_libdir}/libKDevPlatformShell.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformShell.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatformsublime %mklibname kdevplatformsublime %{kdmajor}

%package -n %{libkdevplatformsublime}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformsublime}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformsublime}
%{_kde5_libdir}/libKDevPlatformSublime.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformSublime.so.%{oversion}

#----------------------------------------------------------------------------
# 
# %%define libkdevplatformtests %%mklibname kdevplatformtests %%{kdmajor}
# 
# %%package -n %%{libkdevplatformtests}
# Summary:	KDE Integrated Development Environment platform shared library
# Group:		System/Libraries
# 
# %%description -n %%{libkdevplatformtests}
# KDE Integrated Development Environment platform shared library.
# 
# %%files -n %%{libkdevplatformtests}
# %%{_kde5_libdir}/libKDevPlatformTests.so.%%{kdmajor}*
# %%{_kde5_libdir}/libKDevPlatformTests.so.%%{version}
#
#----------------------------------------------------------------------------

%define libkdevplatformutil %mklibname kdevplatformutil %{kdmajor}

%package -n %{libkdevplatformutil}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformutil}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformutil}
%{_kde5_libdir}/libKDevPlatformUtil.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformUtil.so.%{oversion}

#----------------------------------------------------------------------------

%define libkdevplatformvcs %mklibname kdevplatformvcs %{kdmajor}

%package -n %{libkdevplatformvcs}
Summary:	KDE Integrated Development Environment platform shared library
Group:		System/Libraries

%description -n %{libkdevplatformvcs}
KDE Integrated Development Environment platform shared library.

%files -n %{libkdevplatformvcs}
%{_kde5_libdir}/libKDevPlatformVcs.so.%{kdmajor}*
%{_kde5_libdir}/libKDevPlatformVcs.so.%{oversion}

#----------------------------------------------------------------------------

%define devkdevplatform %mklibname kdevplatform -d

%package -n %{devkdevplatform}
Summary:	Development files for KDE Integrated Development Environment platform
Group:		Development/KDE and Qt
Requires:	%{libkdevplatformdebugger} = %{EVRD}
Requires:	%{libkdevplatformdocumentation} = %{EVRD}
Requires:	%{libkdevplatforminterfaces} = %{EVRD}
Requires:	%{libkdevplatformlanguage} = %{EVRD}
Requires:	%{libkdevplatformoutputview} = %{EVRD}
Requires:	%{libkdevplatformproject} = %{EVRD}
Requires:	%{libkdevplatformserialization} = %{EVRD}
Requires:	%{libkdevplatformshell} = %{EVRD}
Requires:	%{libkdevplatformsublime} = %{EVRD}
#Requires:	%%{libkdevplatformtests} = %%{EVRD}
Requires:	%{libkdevplatformutil} = %{EVRD}
Requires:	%{libkdevplatformvcs} = %{EVRD}
Provides:	%{kdname}-devel = %{EVRD}

%description -n %{devkdevplatform}
This package contains header files needed if you wish to build applications
based on %{kdname}.

%files -n %{devkdevplatform}
%{_kde5_includedir}/kdevplatform
%{_kde5_libdir}/cmake/KDevPlatform
%{_kde5_libdir}/libKDevPlatformDebugger.so
%{_kde5_libdir}/libKDevPlatformDocumentation.so
%{_kde5_libdir}/libKDevPlatformInterfaces.so
%{_kde5_libdir}/libKDevPlatformLanguage.so
%{_kde5_libdir}/libKDevPlatformOutputView.so
%{_kde5_libdir}/libKDevPlatformProject.so
%{_kde5_libdir}/libKDevPlatformSerialization.so
%{_kde5_libdir}/libKDevPlatformShell.so
%{_kde5_libdir}/libKDevPlatformSublime.so
#%%{_kde5_libdir}/libKDevPlatformTests.so
%{_kde5_libdir}/libKDevPlatformUtil.so
%{_kde5_libdir}/libKDevPlatformVcs.so

#---------------------------------------------------------------------------
### End of KdevPlatform ###
#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 -DBUILD_TESTING=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13719 |21mr|kdevelop-pg-qt-2.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDevelop-PG-Qt is a parser generator
Name:		kdevelop-pg-qt
Version:	2.2.1
Release:	2
License:	GPLv2+
Group:		Development/Other
Url:		http://techbase.kde.org/Development/KDevelop-PG-Qt_Introduction
Source0:	http://fr2.rpmfind.net/linux/KDE/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	extra-cmake-modules
BuildRequires:	flex
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDevelop-PG-Qt is a parser generator written in readable source-code and
generating readable source-code. Its syntax was inspirated by AntLR. It
implements the visitor-pattern and uses the Qt library. That is why it
is ideal to be used in Qt-/KDE-based applications like KDevelop.

%files
%{_kde5_bindir}/kdev-pg-qt

#----------------------------------------------------------------------------

%package devel
Summary:	KDevelop-PG-Qt development files
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
This package contains development files of %{name}.

%files devel
%{_kde5_includedir}/%{name}
%{_kde5_libdir}/cmake/KDevelop-PG-Qt/KDevelop-PG-QtConfig.cmake
%{_kde5_libdir}/cmake/KDevelop-PG-Qt/KDevelop-PG-QtConfigVersion.cmake

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13720 |21mr|kdevelop-php-22.12.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kdev-php
# There would be no sense to split unversioned libraries into subpackages,
# but "umbrello" depends from libkdevphpparser.so,
# there is no sense to pull kdevelop and devel packages because of it.
%define libname_completion %mklibname kdevphpcompletion
%define libname_duchain %mklibname kdevphpduchain
%define libname_parser %mklibname kdevphpparser

Summary:	PHP plugin for KDevelop
Name:		kdevelop-php
Version:	22.12.3
Release:	5
License:	GPLv2+
Group:		Development/Other
Url:		http://www.kdevelop.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Source1:	kdevelop-php.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kdevelop-pg-qt-devel
BuildRequires:	kdevplatform-devel >= %{version}
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
Requires:	kdevelop
Requires:	%{libname_completion} = %{EVRD}
Requires:	%{libname_duchain} = %{EVRD}
Requires:	%{libname_parser} = %{EVRD}
Provides:	%{oname} = %{EVRD}

%description
This plugin adds PHP language support (including classview and code-completion)
to KDevelop.

%files -f kdevphp.lang
%{_datadir}/kdevappwizard/
%{_datadir}/kdevphpsupport/
%{_datadir}/kservices5/*.desktop
%{_includedir}/kdev-php
%{_libdir}/cmake/KDevPHP/*.cmake
%{_qt5_plugindir}/kdevplatform/
%{_datadir}/qlogging-categories5/kdevphpsupport.categories
%{_datadir}/metainfo/org.kde.kdev-php.metainfo.xml

#--------------------------------------------------------------------

%package -n %{libname_completion}
Summary:	Library libkdevphpcompletion from kdevelop-php
Group:	System/Libraries
# splitted into subpackage
Conflicts:	kdevelop-php < 22.12.3

%description -n %{libname_completion}
Library libkdevphpcompletion from kdevelop-php

%files -n %{libname_completion}
%{_libdir}/libkdevphpcompletion.so

#--------------------------------------------------------------------

%package -n %{libname_duchain}
Summary:	Library libkdevphpduchain from kdevelop-php
Group:	System/Libraries
# splitted into subpackage
Conflicts:	kdevelop-php < 22.12.3

%description -n %{libname_duchain}
Library libkdevphpduchain from kdevelop-php

%files -n %{libname_duchain}
%{_libdir}/libkdevphpduchain.so

#--------------------------------------------------------------------

%package -n %{libname_parser}
Summary:	Library libkdevphpparser from kdevelop-php
Group:	System/Libraries
# splitted into subpackage
Conflicts:	kdevelop-php < 22.12.3

%description -n %{libname_parser}
Library libkdevphpparser from kdevelop-php

%files -n %{libname_parser}
%{_libdir}/libkdevphpparser.so

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5 \
	-DBUILD_TESTING=OFF
%make

%install
%makeinstall_std -C build

%find_lang kdevphp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13721 |21mr|kdevelop-python-22.08.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kdev-python

Summary:	Python plugin for KDevelop
Name:		kdevelop-python
Version:	22.08.3
Release:	4
License:	GPLv2+
Group:		Development/Python
Url:		http://www.kdevelop.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Source1:	kdevelop-python.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kdevplatform-devel
BuildRequires:	kdevelop-devel
BuildRequires:	kdevelop-pg-qt-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kdevelop
Provides:	%{oname} = %{EVRD}

%description
This plugin adds Python language support (including classview and
code-completion) to KDevelop.

%files -f kdevpython.lang
%{_kde5_datadir}/qlogging-categories5/kdevpythonsupport.categories
%{_kde5_datadir}/kdevappwizard/templates/*
%{_kde5_datadir}/kdevpythonsupport
%{_kde5_datadir}/metainfo/org.kde.kdev-python.metainfo.xml
%{_kde5_libdir}/libkdevpythoncompletion.so
%{_kde5_libdir}/libkdevpythonduchain.so
%{_kde5_libdir}/libkdevpythonparser.so
%{_qt5_plugindir}/kdevplatform/*/kdevpdb.so
%{_qt5_plugindir}/kdevplatform/*/kdevpythonlanguagesupport.so

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5 \
			 -DBSDTAR=1 \
			 -DBUILD_TESTING=OFF
%make

%install
%makeinstall_std -C build

%find_lang kdevpython

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13722 |21mr|kdewebkit-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 QtWebKit integration module
Name:		kdewebkit
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
Patch0:		fix.build.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kconfig-devel = %{version}
BuildRequires:	kcoreaddons-devel = %{version}
BuildRequires:	kio-devel = %{version}
BuildRequires:	kjobwidgets-devel = %{version}
BuildRequires:	kparts-devel = %{version}
BuildRequires:	kservice-devel = %{version}
BuildRequires:	kwallet-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 QtWebKit integration module.

This library provides KDE integration of the QtWebKit library. If you are
using QtWebKit in your KDE application, you are encouraged to use this layer
instead of using the QtWebKit classes directly.

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt
Conflicts:	kdesignerplugin < 5.69

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kdewebkit5widgets.so

#----------------------------------------------------------------------------

%define kf5webkit_major 5
%define libkf5webkit %mklibname kf5webkit %{kf5webkit_major}

%package -n %{libkf5webkit}
Summary:	KDE Frameworks 5 QtWebKit integration shared library
Group:		System/Libraries

%description -n %{libkf5webkit}
KDE Frameworks 5 QtWebKit integration shared library.

%files -n %{libkf5webkit}
%{_kde5_libdir}/libKF5WebKit.so.%{kf5webkit_major}*

#----------------------------------------------------------------------------

%define devkf5webkit %mklibname kf5webkit -d

%package -n %{devkf5webkit}
Summary:	Development files for KDE Frameworks 5 QtWebKit integration module
Group:		Development/KDE and Qt
Requires:	%{libkf5webkit} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5webkit-devel = %{version}

%description -n %{devkf5webkit}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5webkit}
%{_kde5_includedir}/KF5/KDEWebKit
%{_kde5_libdir}/cmake/KF5WebKit
%{_kde5_libdir}/libKF5WebKit.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13723 |21mr|kdf-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	View free disk space
Name:		kdf
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/kdf
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel

%description
KDiskFree displays the available file devices (hard drive partitions,
floppy and CD/DVD drives, etc.) along with information on their capacity,
free space, type and mount point. It also allows you to mount and unmount
drives and view them in a file manager.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kcm_kdf.desktop
%{_kde5_bindir}/kdf
%{_kde5_bindir}/kwikdisk
%{_kde5_iconsdir}/*/*/apps/kcmdf.*
%{_kde5_iconsdir}/*/*/apps/kdf.*
%{_kde5_iconsdir}/*/*/apps/kwikdisk.*
%{_kde5_applicationsdir}/org.kde.kdf.desktop
%{_kde5_applicationsdir}/org.kde.kwikdisk.desktop
%{_kde5_xmlguidir}/kdf/kdfui.rc
%{_appdatadir}/org.kde.kdf.appdata.xml
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kdf.so
%{_kde5_datadir}/qlogging-categories5/kdf.categories

#----------------------------------------------------------------------------

%define kdfprivate_major 23
%define libkdfprivate %mklibname kdfprivate %{kdfprivate_major}

%package -n %{libkdfprivate}
Summary:	KDF shared library
Group:		System/Libraries

%description -n %{libkdfprivate}
KDF shared library.

%files -n %{libkdfprivate}
%{_kde5_libdir}/libkdfprivate.so.%{kdfprivate_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} blockdevices %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13724 |21mr|kdiagram-2.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE libraries (KChart, KGantt) for creating business diagrams
Name:		kdiagram
Version:	2.8.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/kdiagram/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE libraries (KChart, KGantt) for creating business diagrams.

#----------------------------------------------------------------------------

%package -n kchart-i18n
Summary:	KChart translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n kchart-i18n
KProperty translations.

%files -n kchart-i18n -f kchart.lang

#----------------------------------------------------------------------------

%define kchart_major 2
%define libkchart %mklibname kchart %{kchart_major}

%package -n %{libkchart}
Summary:	KDE business diagrams shared library (KChart)
Group:		System/Libraries
Requires:	kchart-i18n

%description -n %{libkchart}
KDE business diagrams shared library (KChart).

%files -n %{libkchart}
%{_kde5_libdir}/libKChart.so.%{kchart_major}*

#----------------------------------------------------------------------------

%define devkchart %mklibname kchart -d

%package -n %{devkchart}
Summary:	Development files for KDE business diagrams library (KChart)
Group:		Development/KDE and Qt
Requires:	%{libkchart} = %{EVRD}
Provides:	kchart-devel = %{EVRD}

%description -n %{devkchart}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkchart}
%{_kde5_includedir}/KChart/
%{_kde5_includedir}/kchart_version.h
%{_kde5_libdir}/cmake/KChart/
%{_kde5_libdir}/libKChart.so
%{_kde5_mkspecsdir}/qt_KChart.pri

#----------------------------------------------------------------------------

%package -n kgantt-i18n
Summary:	KGantt translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n kgantt-i18n
KProperty translations.

%files -n kgantt-i18n -f kgantt.lang

#----------------------------------------------------------------------------

%define kgantt_major 2
%define libkgantt %mklibname kgantt %{kgantt_major}

%package -n %{libkgantt}
Summary:	KDE business diagrams shared library (KGantt)
Group:		System/Libraries
Requires:	kgantt-i18n

%description -n %{libkgantt}
KDE business diagrams shared library (KGantt).

%files -n %{libkgantt}
%{_kde5_libdir}/libKGantt.so.%{kgantt_major}*

#----------------------------------------------------------------------------

%define devkgantt %mklibname kgantt -d

%package -n %{devkgantt}
Summary:	Development files for KDE business diagrams library (KGantt)
Group:		Development/KDE and Qt
Requires:	%{libkgantt} = %{EVRD}
Provides:	kgantt-devel = %{EVRD}

%description -n %{devkgantt}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkgantt}
%{_kde5_includedir}/KGantt/
%{_kde5_includedir}/kgantt_version.h
%{_kde5_libdir}/cmake/KGantt/
%{_kde5_libdir}/libKGantt.so
%{_kde5_mkspecsdir}/qt_KGantt.pri

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5 \
	-DBUILD_TESTING:BOOL=OFF
%make

%install
%makeinstall_std -C build

%find_lang kchart --with-qt
%find_lang kgantt --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13725 |21mr|kdialog-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to display KDE dialog boxes from shell scripts
Name:		kdialog
Version:	23.08.4
Release:	1
Epoch:		1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/filelight/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Utility to display KDE dialog boxes from shell scripts.
The syntax is very much inspired from the "dialog" command
(which shows text mode dialogs).

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kdialog.desktop
%{_kde5_bindir}/kdialog
%{_kde5_bindir}/kdialog_progress_helper
%{_datadir}/dbus-1/interfaces/org.kde.kdialog.ProgressDialog.xml
%{_appdatadir}/org.kde.kdialog.metainfo.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13726 |21mr|kdiamond-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Three-in-a-row game
Name:		kdiamond
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kdiamond/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDiamond is a three-in-a-row game (much like Bejeweled) for the KDE desktop.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kdiamond.desktop
%{_kde5_bindir}/kdiamond
%{_kde5_datadir}/kdiamond
%{_kde5_datadir}/sounds/KDiamond*
%{_kde5_datadir}/knsrcfiles/kdiamond.knsrc
%{_kde5_iconsdir}/*/*/*/kdiamond.*
%{_kde5_notificationsdir}/kdiamond.notifyrc
%{_appdatadir}/org.kde.kdiamond.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13727 |21mr|kdnssd-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 DNSSD module
Name:		kdnssd
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(avahi-core)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 DNSSD module.

#----------------------------------------------------------------------------

%package i18n
Summary:	KDNSSD translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDNSSD translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5dnssd_major 5
%define libkf5dnssd %mklibname kf5dnssd %{kf5dnssd_major}

%package -n %{libkf5dnssd}
Summary:	KDE Frameworks 5 DNSSD shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	nss_mdns

%description -n %{libkf5dnssd}
KDE Frameworks 5 DNSSD shared library.

%files -n %{libkf5dnssd}
%{_kde5_libdir}/libKF5DNSSD.so.%{kf5dnssd_major}*

#----------------------------------------------------------------------------

%define devkf5dnssd %mklibname kf5dnssd -d

%package -n %{devkf5dnssd}
Summary:	Development files for KDE Frameworks 5 DNSSD module
Group:		Development/KDE and Qt
Requires:	%{libkf5dnssd} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5dnssd-devel = %{version}

%description -n %{devkf5dnssd}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5dnssd}
%{_kde5_includedir}/KF5/KDNSSD/
%{_kde5_libdir}/libKF5DNSSD.so
%{_kde5_libdir}/cmake/KF5DNSSD
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make_build

%install
%make_install -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13728 |21mr|kdoctools-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CMake files check for Qt 6.x already, but it's not used yet,
# so let's not make it a hard dependency
%global __requires_exclude ^.*qt6.*$

%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 documentation generation module
Name:		kdoctools
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Patch0:		kdoctools-5.38.0-doc5.patch
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5archive-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	perl(URI::Escape)
Requires:	docbook-dtd45-xml
Requires:	docbook-style-xsl

%description
KDE Frameworks 5 documentation generation module.

KDocTools provides tools to generate documentation in various format from
DocBook files.

%files
%{_kde5_bindir}/checkXML5
%{_kde5_bindir}/meinproc5
%{_kde5_datadir}/kf5/kdoctools/
%{_kde5_mandir}/man1/checkXML5.1*
%{_kde5_mandir}/man1/meinproc5.1*
%{_kde5_mandir}/man7/kf5options.7*
%{_kde5_mandir}/man7/qt5options.7*

#----------------------------------------------------------------------------

%package i18n
Summary:	KDocTools translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDocTools translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5doctools_major 5
%define libkf5doctools %mklibname kf5doctools %{kf5doctools_major}

%package -n %{libkf5doctools}
Summary:	KDE Frameworks 5 documentation generation shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5doctools}
KDE Frameworks 5 documentation generation shared library.

%files -n %{libkf5doctools}
%{_kde5_libdir}/libKF5DocTools.so.%{kf5doctools_major}*

#----------------------------------------------------------------------------

%define devkf5doctools %mklibname kf5doctools -d

%package -n %{devkf5doctools}
Summary:	Development files for KDE Frameworks 5 documentation generation module
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Requires:	%{libkf5doctools} = %{EVRD}
Requires:	kf5archive-devel = %{version}
Provides:	%{name}-devel = %{EVRD}
Provides:	xsltkde-devel = %{EVRD}
Provides:	kf5doctools-devel = %{version}

%description -n %{devkf5doctools}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5doctools}
%{_kde5_includedir}/KF5/KDocTools
%{_kde5_libdir}/cmake/KF5DocTools
%{_kde5_libdir}/libKF5DocTools.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-kde --with-man --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13729 |21mr|kdsoap-1.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname kdsoap 1
%define devname %mklibname -d kdsoap

Name:		kdsoap
Version:	1.9.0
Release:	3
Group:		System/Libraries
Summary:	Qt based client-side and server-side SOAP component
License:	GPL/AGPL/LGPL
Url:		https://www.kdab.com/products/kd-soap
Source0:	https://github.com/KDAB/KDSoap/archive/kdsoap-%{version}.tar.gz
Source1:	kdsoap.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Qt based client-side and server-side SOAP component

%package -n %{libname}
Summary:	Qt based client-side and server-side SOAP component
Group:		System/Libraries
Provides:	%{mklibname kdsoap-server 1} = %{EVRD}

%description -n %{libname}
Qt based client-side and server-side SOAP component

%package -n %{devname}
Summary:	Development files for the Qt based client-side and server-side SOAP component
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the Qt based client-side and server-side SOAP component

%prep
%setup -qn KDSoap-kdsoap-1.9.0

%build
%cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DKDSoap_EXAMPLES=false \
    -DCMAKE_SKIP_RPATH=true
%make


%install
%makeinstall_std -C build
rm -rf $RPM_BUILD_ROOT/%{_datarootdir}/doc/KDSoap
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'


%check
ctest -V %{?_smp_mflags}

%files -n %{libname}
%{_libdir}/*.so.*

%files -n %{devname}
%{_bindir}/kdwsdl2cpp
%{_libdir}/*.so
%{_includedir}/KDSoapClient
%{_includedir}/KDSoapServer
%{_libdir}/cmake/KDSoap
%{_datadir}/mkspecs/features/kdsoap.prf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13730 |21mr|keditbookmarks-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE bookmarks editor
Name:		keditbookmarks
Version:	23.08.4
Release:	1
Epoch:		1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE bookmarks editor.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.keditbookmarks.desktop
%{_kde5_bindir}/kbookmarkmerger
%{_kde5_bindir}/keditbookmarks
%{_kde5_datadir}/config.kcfg/keditbookmarks.kcfg
%{_kde5_mandir}/man1/kbookmarkmerger.1*

#----------------------------------------------------------------------------

%define kbookmarkmodel_private_major 6
%define libkbookmarkmodel_private %mklibname kbookmarkmodel_private %{kbookmarkmodel_private_major}

%package -n %{libkbookmarkmodel_private}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libkbookmarkmodel_private}
Shared library for %{name}.

%files -n %{libkbookmarkmodel_private}
%{_kde5_libdir}/libkbookmarkmodel_private.so.%{kbookmarkmodel_private_major}*
%{_kde5_libdir}/libkbookmarkmodel_private.so.5.97.0
%{_kde5_datadir}/qlogging-categories5/keditbookmarks.categories

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_kde5_libdir}/libkbookmarkmodel_private.so

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13731 |21mr|keepalived-2.1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without snmp
%bcond_without vrrp
%bcond_without sha1
%bcond_without nftables
%bcond_with profile
%bcond_with debug

Name: keepalived
Summary: High Availability monitor built upon LVS, VRRP and service pollers
Version: 2.1.5
Release: 2
Group: System/Cluster
License: GPLv2+
URL: http://www.keepalived.org/

Source0: http://www.keepalived.org/software/keepalived-%{version}.tar.gz
Source1: keepalived.service

Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%if %{with snmp}
BuildRequires: net-snmp-devel
%endif
%if %{with nftables}
BuildRequires: pkgconfig(libmnl)
BuildRequires: pkgconfig(libnftnl)
%else
BuildRequires: ipset-devel
BuildRequires: iptables-devel
%endif
BuildRequires: systemd-units
BuildRequires: openssl-devel
BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(libnfnetlink)

%description
Keepalived provides simple and robust facilities for load balancing
and high availability to Linux system and Linux based infrastructures.
The load balancing framework relies on well-known and widely used
Linux Virtual Server (IPVS) kernel module providing Layer4 load
balancing. Keepalived implements a set of checkers to dynamically and
adaptively maintain and manage load-balanced server pool according
their health. High availability is achieved by VRRP protocol. VRRP is
a fundamental brick for router failover. In addition, keepalived
implements a set of hooks to the VRRP finite state machine providing
low-level and high-speed protocol interactions. Keepalived frameworks
can be used independently or all together to provide resilient
infrastructures.

%prep
%setup -q

%build
%configure \
    %{?with_debug:--enable-debug} \
    %{?with_profile:--enable-profile} \
    %{!?with_vrrp:--disable-vrrp} \
    %{?with_snmp:--enable-snmp --enable-snmp-rfc} \
    %{?with_nftables:--enable-nftables --disable-iptables --disable-ipset} \
    %{?with_sha1:--enable-sha1} \
    --with-init=systemd

%make_build STRIP=/bin/true

%install
%make_install
rm -rf %{buildroot}%{_initrddir}/
rm -rf %{buildroot}%{_sysconfdir}/keepalived/samples/
%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/keepalived.service
mkdir -p %{buildroot}%{_libexecdir}/keepalived

%post
%systemd_post keepalived.service

%preun
%systemd_preun keepalived.service

%postun
%systemd_postun_with_restart keepalived.service

%files
%attr(0755,root,root) %{_sbindir}/keepalived
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/keepalived
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/keepalived/keepalived.conf
%doc AUTHOR ChangeLog CONTRIBUTORS COPYING README TODO
%doc doc/keepalived.conf.SYNOPSIS doc/samples/keepalived.conf.*
%dir %{_sysconfdir}/keepalived/
%dir %{_libexecdir}/keepalived/
%if %{with snmp}
%{_datadir}/snmp/mibs/KEEPALIVED-MIB.txt
%{_datadir}/snmp/mibs/VRRP-MIB.txt
%{_datadir}/snmp/mibs/VRRPv3-MIB.txt
%endif
%{_bindir}/genhash
%{_unitdir}/keepalived.service
%{_mandir}/man1/genhash.1*
%{_mandir}/man5/keepalived.conf.5*
%{_mandir}/man8/keepalived.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13732 |21mr|keepalived-2.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without snmp
%bcond_without vrrp
%bcond_without sha1
%bcond_without nftables
%bcond_with profile
%bcond_with debug

Name: keepalived
Summary: High Availability monitor built upon LVS, VRRP and service pollers
Version:	2.2.4
Release:	1
Group: System/Cluster
License: GPLv2+
URL: http://www.keepalived.org/

Source0: http://www.keepalived.org/software/keepalived-%{version}.tar.gz
Source1: keepalived.service

Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%if %{with snmp}
BuildRequires: net-snmp-devel
%endif
%if %{with nftables}
BuildRequires: pkgconfig(libmnl)
BuildRequires: pkgconfig(libnftnl)
%else
BuildRequires: ipset-devel
BuildRequires: iptables-devel
%endif
BuildRequires: systemd-units
BuildRequires: openssl-devel
BuildRequires: pkgconfig(libnl-3.0)
BuildRequires: pkgconfig(libnfnetlink)

%description
Keepalived provides simple and robust facilities for load balancing
and high availability to Linux system and Linux based infrastructures.
The load balancing framework relies on well-known and widely used
Linux Virtual Server (IPVS) kernel module providing Layer4 load
balancing. Keepalived implements a set of checkers to dynamically and
adaptively maintain and manage load-balanced server pool according
their health. High availability is achieved by VRRP protocol. VRRP is
a fundamental brick for router failover. In addition, keepalived
implements a set of hooks to the VRRP finite state machine providing
low-level and high-speed protocol interactions. Keepalived frameworks
can be used independently or all together to provide resilient
infrastructures.

%prep
%setup -q

%build
%configure \
    %{?with_debug:--enable-debug} \
    %{?with_profile:--enable-profile} \
    %{!?with_vrrp:--disable-vrrp} \
    %{?with_snmp:--enable-snmp --enable-snmp-rfc} \
    %{?with_nftables:--enable-nftables --disable-iptables --disable-ipset} \
    %{?with_sha1:--enable-sha1} \
    --with-init=systemd

%make_build STRIP=/bin/true

%install
%make_install
rm -rf %{buildroot}%{_initrddir}/
rm -rf %{buildroot}%{_sysconfdir}/keepalived/samples/
%{__install} -p -D -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/keepalived.service
mkdir -p %{buildroot}%{_libexecdir}/keepalived

%post
%systemd_post keepalived.service

%preun
%systemd_preun keepalived.service

%postun
%systemd_postun_with_restart keepalived.service

%files
%attr(0755,root,root) %{_sbindir}/keepalived
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/keepalived
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/keepalived/keepalived.conf
%doc AUTHOR ChangeLog CONTRIBUTORS COPYING README TODO
%doc doc/keepalived.conf.SYNOPSIS doc/samples/keepalived.conf.*
%dir %{_sysconfdir}/keepalived/
%dir %{_libexecdir}/keepalived/
%if %{with snmp}
%{_datadir}/snmp/mibs/KEEPALIVED-MIB.txt
%{_datadir}/snmp/mibs/VRRP-MIB.txt
%{_datadir}/snmp/mibs/VRRPv3-MIB.txt
%endif
%{_bindir}/genhash
%{_unitdir}/keepalived.service
%{_mandir}/man1/genhash.1*
%{_mandir}/man5/keepalived.conf.5*
%{_mandir}/man8/keepalived.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13733 |21mr|keepassx2-2.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname keepassx

%bcond_with tests

Summary:	Cross Platform Password Manager
Name:		keepassx2
Version:	2.0.3
Release:	5
License:	GPLv2+
Group:		File tools
Url:		http://www.keepassx.org/
Source0:	https://www.keepassx.org/releases/%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
Conflicts:	%{oname} < 2.0

%description
KeePassX is a free/open-source password manager or safe which helps
you to manage your passwords in a secure way. You can put all your
passwords in one database, which is locked with one master key or a
key-disk. So you only have to remember one single master password or
insert the key-disk to unlock the whole database. The databases are
encrypted using the best and most secure encryption algorithms
currently known (AES and Twofish).

%files
%doc CHANGELOG LICENSE* COPYING
%{_bindir}/%{oname}
%{_libdir}/%{oname}/
%{_datadir}/%{oname}/
%{_datadir}/applications/%{oname}.desktop
%{_datadir}/mime/packages/%{oname}.xml
%{_iconsdir}/hicolor/*/apps/%{oname}.*
%{_iconsdir}/hicolor/*/mimetypes/*.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_qt4 \
	-DWITH_CXX11:BOOL=TRUE \
	-DCMAKE_VERBOSE_MAKEFILE:BOOL=TRUE \
%if %{with tests}
	-DWITH_TESTS=ON
%else
	-DWITH_TESTS=OFF
%endif
%make

%install
%makeinstall_std -C build

%if %{with tests}
%check
pushd build
make test
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13734 |21mr|kemoticons-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 emoticons and emoticons themes support module
Name:		kemoticons
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5service-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(Qt5DBus)

%description
KDE Frameworks 5 emoticons and emoticons themes support module.

KEmoticons converts emoticons from text to a graphical representation with
images in HTML. It supports setting different themes for emoticons coming
from different providers.

%files
%{_kde5_datadir}/emoticons/Breeze/
%{_kde5_datadir}/emoticons/EmojiOne/
%{_kde5_datadir}/emoticons/Konqi/
%{_kde5_datadir}/qlogging-categories5/kemoticons.categories
%{_kde5_datadir}/qlogging-categories5/kemoticons.renamecategories
%{_kde5_plugindir}/KEmoticonsIntegrationPlugin.so
%{_kde5_plugindir}/emoticonsthemes/*.so
%{_kde5_services}/emoticonstheme_*.desktop
%{_kde5_servicetypes}/kemoticonsTheme.desktop

#----------------------------------------------------------------------------

%define kf5emoticons_major 5
%define libkf5emoticons %mklibname kf5emoticons %{kf5emoticons_major}

%package -n %{libkf5emoticons}
Summary:	KDE Frameworks 5 emoticons support shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5emoticons}
KDE Frameworks 5 KEmoticons emoticons support library.

%files -n %{libkf5emoticons}
%{_kde5_libdir}/libKF5Emoticons.so.%{kf5emoticons_major}*

#----------------------------------------------------------------------------

%define devkf5emoticons %mklibname kf5emoticons -d

%package -n %{devkf5emoticons}
Summary:	Development files for KDE Frameworks 5 emoticons support module
Group:		Development/KDE and Qt
Requires:	%{libkf5emoticons} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5emoticons-devel = %{version}

%description -n %{devkf5emoticons}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5emoticons}
%{_kde5_includedir}/KF5/KEmoticons
%{_kde5_libdir}/cmake/KF5Emoticons
%{_kde5_libdir}/libKF5Emoticons.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13735 |21mr|kencfs-2.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  oname kencfs-plasma

# #include <KDE/KWallet/Wallet>
%global optflags %{optflags} -I%{_includedir}/KF5/KDELibs4Support

Summary:	GUI frontend for encfs
Name:		kencfs
Version:	2.0.2
Release:	5
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.linux-apps.com/p/1170068/
Source0:	https://dl.opendesktop.org/api/files/download/id/1486310914/%{oname}-%{version}a.tar.gz
Source1:    kencfs_ru_RU.qm.tar.gz
Patch0:     kencfs-desktop.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:  kf5kdelibs4support-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5wallet-devel
Requires:	encfs
# fsDialog.cpp:35:QString fusermount="fusermount";
# fsDialog.cpp:56:    w=which(fusermount);
Requires:	%{_bindir}/fusermount

%description
KEncFS is a GUI frontend for encfs. With KEncFS you can easily create, mount,
umount and delete your encrypted filesystem.

Use of KEncFS is very simple: to create a new encrypted filesystem you must
create new or select two existent dirs, one directory to archive encrypted
files and another directory to mount on the encrypted filesystem with encfs
(a mountpoint). After this, you can select a conventional ID for your encrypted
filesystem and then a password.

With KEncFS you can also manage your encrypted filesystem. You can browse,
mount, umount, remove from list (not from disk) your encrypted filesystem,
in easy way.

%files
%{_bindir}/kencfs-plasma
%{_datadir}/applications/kencfs-plasma.desktop
%{_datadir}/doc/kencfs-plasma/README
%{_datadir}/doc/kencfs-plasma/preview2.png
%{_datadir}/doc/kencfs-plasma/preview3.png
%{_datadir}/icons/kencfs-plasma/kencfs-icon.png
%{_datadir}/icons/kencfs-plasma/kencfs-icon2.png
%{_datadir}/icons/kencfs-plasma/kencfs-icon3.png
%{_datadir}/kencfs-plasma/translations/kencfs_cs_CZ.qm
%{_datadir}/kencfs-plasma/translations/kencfs_it_IT.qm
%{_datadir}/kencfs-plasma/translations/kencfs_ro_RO.qm
%{_datadir}/kencfs-plasma/translations/kencfs_ru_RU.qm

#--------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}a
%patch0 -p1

# Russian locale
tar -xvzf %{SOURCE1}

%build
%qmake_qt5
%make

%install
%makeinstall_qt INSTALL_ROOT=%{buildroot}

sed 's|Name=KEncFS-Plasma|Name=KEncFS|' -i %{buildroot}%{_datadir}/applications/kencfs-plasma.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13736 |21mr|kernel-5.10-generic-5.10.228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# _get_email() in %%build contains bashisms for regexping
%define	_buildshell /bin/bash

# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define	_python_bytecompile_build 0

# Probably dwz bug, on i686 only file is not packaged:
# /usr/lib/debug/usr/bin/trace-5.4.40-3.i386.debug.#dwz#.b5xuKG
# dwz compresses only debuginfo from perf, cpupower, uml,
# not the kernel itself (because it is stripped not by RPM),
# so we do not loose much by disabling it.
%global	_find_debuginfo_dwz_opts %{nil}

# Put everything into one non-standard debuginfo subpackage
# TODO: make multiple debuginfo packages coinstallable as installonlypkg,
# to achive this, there must be no conflicting files.
# Probably signing and compressing of kernel modules
# has to be moved to %%_spec_install_post.
%global	_debuginfo_subpackages %{nil}
%global	_debuginfo_template %{nil}
%undefine	_debugsource_packages

# Avoid rediffing patches like AUFS when possible
%define _default_patch_fuzz 10

# Hack: flavour and major version are variable, make %%_build_pkgcheck_* always detect and use this config
%global	_build_pkgcheck_set %(echo "%{_build_pkgcheck_set}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')
%global	_build_pkgcheck_srpm %(echo "%{_build_pkgcheck_srpm}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')

%define kernelversion 5
%define patchlevel 10
%define sublevel 228

# Release number. Increase this before a rebuild.
%define rpmrel 2
%define fullrpmrel %{rpmrel}

%define rpmtag %{disttag}

# Version defines
%define kversion %{kernelversion}.%{patchlevel}.%{sublevel}
%define kverrel %{kversion}-%{fullrpmrel}
%define tar_ver %{kernelversion}.%{patchlevel}

%ifarch %{ix86}
%define	arch_suffix	i586
%endif

%ifarch %{x86_64}
%define	arch_suffix	x86_64
%endif

%ifarch aarch64
%define	arch_suffix	arm64
%endif

%ifarch %{riscv}
%define	arch_suffix	riscv64
%endif

%define	buildrpmrel	%{fullrpmrel}%{rpmtag}-%{arch_suffix}
%define	buildrel	%{kversion}-%{buildrpmrel}

# Add not only the build time generated key to the trusted keyring,
# but also add public keys of private ROSA's keys
%bcond_without	additional_keys

# Fail the build after "make oldconfig" to edit kernel configs
%bcond_with	fail

# User Mode Linux, https://habr.com/ru/company/itsumma/blog/459558/
# Not buildable on aarch64
%ifarch %{x86_64}
%bcond_without	uml
%else
%bcond_with	uml
%endif

# "Nickel" is a special brand for certified distros
%if %{mdvver} == 201900 || %{mdvver} == 201905
%bcond_without	nickel
# Require kernel modules to be signed
%bcond_without	oblig_signed_modules
%else
%bcond_with nickel
%bcond_with oblig_signed_modules
%endif

%if %{mdvver} >= 201905
# Build binary out-of-tree kernel modules (experimental)
%bcond_without binary_extra_modules
# Sign kernel modules with GOST key (experimental)
%bcond_without gost_sign
%else
%bcond_with binary_extra_modules
%bcond_with gost_sign
%endif

%bcond_with ccache
%bcond_without flow_abi
%bcond_without aufs

# 1. VirtualBox is for x86_32 and x86_64 only
# 2. I do not know how to solve the problem that userspace part of VirtualBox
# will be updated ahead of these binary modules. So just off building them.
%bcond_with binary_virtualbox_host

# Shredder-kernel works only on x86_64, makes manipulations with syscalls tables,
# loading/unloading of the module failed sometimes on kernel 5.4
# and it has not been adapted for kernel 5.10 (is not buildable)
%bcond_with binary_shredder

# Compress modules with zstd (zstd is good compression and fast decompression)
%bcond_without compress_modules
# Spend more resources on compression, but make resulting size less;
# decompression speed will not be affected, but more memory will be required
# which should not a problem here (performance penalty from allocating more
# memory should not be big, I think, but I did not benchmark).
%define	zstd_cmd zstd -q --format=zstd --ultra -22
# Optionally keep using xz as compressor
#bcond_without	modxz

# Kernel flavour
%if %{with nickel}
%define	flavour	nickel
%else
%define	flavour	generic
%endif

# The full kernel version
%define	kver_full	%{kversion}-%{flavour}-%{buildrpmrel}

############################################################################

%define	top_dir_name	kernel-%{_arch}
%define	build_dir	${RPM_BUILD_DIR}/%{top_dir_name}
%define	src_dir	%{build_dir}/linux-%{tar_ver}

# Common target directories
%define	_bootdir	/boot
%define	_modulesdir	/lib/modules
%define	devel_root	/usr/src/linux-%{kver_full}
%define	initrd_path %{_bootdir}/initrd-%{kver_full}.img

# Directories needed for building
%define	temp_root	%{build_dir}/temp-root
%define	temp_boot	%{temp_root}%{_bootdir}
%define	temp_modules	%{temp_root}%{_modulesdir}
%define	temp_devel_root	%{temp_root}%{devel_root}

# Directories definition needed for installing
%define	target_boot	%{buildroot}%{_bootdir}
%define	target_modules	%{buildroot}%{_modulesdir}

# Manual control of creating and deleting keys
# "rnd" is "random" and means that a key pair is generated at build time
# and is not saved anywhere.
%define	certs_dir_rnd certs
%define	certs_signing_key_priv_rnd %{certs_dir_rnd}/signing_key_priv.key
%define	certs_signing_der %{certs_dir_rnd}/signing_key.x509
%define	certs_key_config_rnd %{certs_dir_rnd}/x509.genkey
%define	certs_public_keys %{certs_dir_rnd}/public.pem
%define	certs_verify_tmp %{certs_dir_rnd}/verify.tmp

%define	kernel_files %{_builddir}/kernel_files.list
%define	debuginfo_files %{_builddir}/debuginfo_files.list

# Append list of files generate by find-debuginfo.sh to our custom list
%global	__debug_install_post \
%{__debug_install_post} \
cat %{_builddir}/debugfiles.list >> %{debuginfo_files}

############################################################################

%if %{with binary_extra_modules}
# global instead of define to speed up things
%global nvidia_340_j %{kroko_j -p kernel-source-nvidia340 -r 340}
%global nvidia_340_n %{kroko_n -p kernel-source-nvidia340 -r 340}
%global nvidia_390_j %{kroko_j -p kernel-source-nvidia390 -r 390}
%global nvidia_390_n %{kroko_n -p kernel-source-nvidia390 -r 390}
%global nvidia_470_j %{kroko_j -p kernel-source-nvidia470 -r 470}
%global nvidia_470_n %{kroko_n -p kernel-source-nvidia470 -r 470}
%global nvidia_510_j %{kroko_j -p kernel-source-nvidia510 -r 510}
%global nvidia_510_n %{kroko_n -p kernel-source-nvidia510 -r 510}
%global nvidia_515_j %{kroko_j -p kernel-source-nvidia515 -r 515}
%global nvidia_515_n %{kroko_n -p kernel-source-nvidia515 -r 515}
%global nvidia_520_j %{kroko_j -p kernel-source-nvidia520 -r 520}
%global nvidia_520_n %{kroko_n -p kernel-source-nvidia520 -r 520}
%global nvidia_525_j %{kroko_j -p kernel-source-nvidia525 -r 525}
%global nvidia_525_n %{kroko_n -p kernel-source-nvidia525 -r 525}

# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
%{?!kroko_req_modules_in_kernel:%global kroko_req_modules_in_kernel(j:n:p:) %{nil}}

# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n kernel-%{kernelversion}.%{patchlevel}-%{flavour}

%endif
#/binary_extra_modules

############################################################################

# Buildtime flags
%{?_without_doc: %global build_doc 0}
%{?_without_devel: %global build_devel 0}
%{?_without_debug: %global build_debug 0}
%{?_without_perf: %global build_perf 0}
%{?_without_cpupower: %global build_cpupower 0}

%{?_with_doc: %global build_doc 1}
%{?_with_devel: %global build_devel 1}
%{?_with_debug: %global build_debug 1}
%{?_with_perf: %global build_perf 1}
%{?_with_cpupower: %global build_cpupower 1}
%{?_with_modxz: %global build_modxz 0}

# Build defines
%define	build_doc	1
%define	build_devel	1
%define	build_debug	1

# Build kernel-headers package
%define	build_headers	0

# Build perf and cpupower tools
%define	build_perf	0
%define	build_cpupower	0

%if %{with compress_modules}
%if %{with modxz}
%define	kmod_suffix .xz
%else
%define	kmod_suffix .zst
%endif
%else
%define	kmod_suffix %{nil}
%endif

%if !%{build_debug}
# Disable debug rpms.
%define	_enable_debug_packages	%{nil}
%define	debug_package		%{nil}
%endif

# End of user definitions

# http://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/
%if %{with ccache}
%define	kmake KBUILD_BUILD_TIMESTAMP='' %make CC='ccache gcc' ARCH="%{arch_type}"
%else
%define	kmake %make CC='gcc' ARCH="%{arch_type}"
%endif

# There are places where parallel make don't work
%define	smake make
%ifarch %{ix86} %{x86_64}
%define	arch_type x86
%endif
%ifarch	aarch64
%define	arch_type arm64
%endif
%ifarch	%{riscv}
%define	arch_type riscv
%endif

# Parallelize xargs invocations on smp machines
%define	kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")

#
# SRC RPM description
#
Summary:	The Linux kernel
Name:		kernel-%{kernelversion}.%{patchlevel}-%{flavour}
Version:	%{kversion}
Release:	%{fullrpmrel}
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://www.kernel.org

####################################################################
#
# Sources
#
Source0:	https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.xz

# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
# Needed, because otherwise the -devel won't build correctly.
Source2:	0001-disable-mrproper-prepare-scripts-configs-in-devel-rp.patch

# TODO: Make a separate package "ksobirator" and BR it
# after testing these macros properly
Source3:	macros.ksobirator
%{load:%{SOURCE3}}

# Kernel configuration files.
Source111:	kernel-x86_64.config
Source112:	kernel-i586.config
Source113:	kernel-arm64.config
Source114:  kernel-riscv64.config

# Cpupower: the service, the config, etc.
Source50:	cpupower.service
Source51:	cpupower.config
Source52:	cpupower-start.sh
Source53:	cpupower.path

Source80:	kernel.rpmlintrc

# Additional keys that can be used to sign kernel modules
# Generated by https://abf.io/soft/kernel-keys
# Source201..206: public_key_GOST_*.pem
%{expand:%(for i in `seq 1 6`; do echo "Source$((200+${i})): public_key_GOST_${i}.pem"; done)}
# Source207..212: public_key_RSA_*.pem
%{expand:%(for i in `seq 7 12`; do echo "Source$((200+${i})): public_key_RSA_${i}.pem"; done)}

####################################################################

# Patches

# The patch to make kernel x.y.z from x.y.0.
Patch1:		https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.xz

# Patches from mainline
# none
Patch2:		kernel-5.10.93-fix-perf-build.patch

# ROSA-specific patches

# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid
# this.
Patch101:	0001-perf-skip-xmlto-validation.patch

# http://bugs.rosalinux.ru/show_bug.cgi?id=6235
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102:	0001-audit-make-it-less-verbose.patch
# atempt fix GPL-incompatible module nvidia.ko uses GPL-only symbol 'rcu_read_unlock_strict'
Patch103:	kernel-5.10-export-gpl.patch

%if %{with aufs}
# AUFS 5 from http://aufs.sourceforge.net/
Patch109:	0001-Apply-AUFS-5.patch
%endif

# For kmod() generator of RPM Provides
# Changes version of aacraid.ko
Patch111:	0001-Remove-RPM-illegal-chars-from-module-version.patch

# AltHa LSM Module
# https://www.altlinux.org/AltHa
# http://git.altlinux.org/gears/k/kernel-image-un-def.git
# TODO: known problem: https://bugzilla.altlinux.org/show_bug.cgi?id=38225
Patch201:	0001-AltHa-LSM-module.patch
Patch202:	0002-Documentation-for-AltHa-LSM.patch
Patch203:	0003-security-altha-altha_lsm.c-build-fixed-with-kernel-5.patch
Patch204:	0004-altha-use-path-strings-instead-of-path-structs.patch

# sent to upstream, https://patchwork.kernel.org/patch/11446123/
Patch302:	0001-sign-file-full-functionality-with-modern-LibreSSL.patch
# Support loading GOST-signed modules
Patch305:	0001-crypto-support-loading-GOST-signed-kernel-modules.patch
# Allow to off modules signature check dynamically
Patch306:	0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch
# Experimental patch to reduce freezes in low memory conditions
# Config values are the following:
# CONFIG_UNEVICTABLE_ACTIVEFILE=y
# CONFIG_UNEVICTABLE_ACTIVEFILE_KBYTES_LOW=102400 (100 MB)
# CONFIG_UNEVICTABLE_ACTIVEFILE_KBYTES_MIN=51200 (50 MB)
# + zswap is enabled by default
# 50 MB is default value of min_filelist_kbytes in Chromium OS
# https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/545e2917dbd863760a51379de8c26631e667c563%5E!/
# 256 and 512 MB values are too big as a distro default because many systems have 512MB-2GB RAM
# TODO: tune 50 and 100 MB to some not random and mathemetically explainable values
# https://www.linux.org.ru/news/kernel/16052362?cid=16075323
Patch307:	le9pf.diff
Patch308:	0001-Revert-kallsyms-unexport-kallsyms_lookup_name-and-ka.patch

# Support SoC with Baikal-M (ARMv8) CPU
# From http://git.altlinux.org/gears/k/kernel-image-std-def.git (many thanks!)
# They are based on sources from official SDK with patched kernel from Baikal Electronics
Patch0601:	0601-Baikal-M-Kconfig-defconfig.patch
Patch0602:	0602-Baikal-M-clock-driver.patch
Patch0603:	0603-efi-rtc-avoid-calling-efi.get_time-on-Baikal-M-board.patch
Patch0604:	0604-efi-arm-runtime-print-EFI-mapping.patch
#Patch0605:	0605-ethernet-stmmac-made-dwmac1000_-DMA-functions-availa.patch
Patch0606:	0606-stmmac-Baikal-M-dwmac-driver.patch
Patch0607:	0607-Fixed-secondary-CPUs-boot-on-BE-M1000-SoC.patch
Patch0608:	0608-Baikal-M-USB-driver.patch
# https://bugzilla.altlinux.org/show_bug.cgi?id=40269
Patch0609:	0609-Baikal-M-video-unit-driver.patch
Patch0610:	0610-Added-Baikal-T1-M-BMC-driver.patch
#Patch0611:	0611-dw-hdmi-ahb-audio-support-BE-M1000-SoC.patch
Patch0612:	0612-bt1-pvt.c-access-registers-via-pvt_-readl-writel-hel.patch
Patch0613:	0613-bt1-pvt-define-pvt_readl-pvt_writel-for-BE-M1000-SoC.patch
Patch0614:	0614-bt1-pvt-adjust-probing-for-BE-M1000-SoC.patch
Patch0615:	0615-bt1-pvt-added-compatible-baikal-pvt.patch
Patch0616:	0616-Baikal-M-PCIe-driver-from-SDK-M-4.3.patch
Patch0617:	0617-Baikal-M-PCIe-driver-from-SDK-M-4.4.patch
Patch0618:	0618-baikal_vdu-avoid-using-SMC-calls-for-updating-frameb.patch
Patch0619:	0619-panfrost-compatibility-with-Baikal-M-firmware-from-S.patch
Patch0620:	0620-cpufreq-dt-don-t-load-on-BE-M1000-SoC.patch
Patch0621:	0621-baikal_clk-compatibility-with-SDK-M-5.1-firmware.patch
#Patch0622:	0622-stmmac_mdio-implemented-reset-via-MAC-GP-out-pin.patch
#Patch0623:	0623-dwmac_baikal-clear-PHY-reset-before-calling-generic-.patch
Patch0624:	0624-BROKEN-dwc-i2s-support-BE-M1000-SoC.patch
Patch0625:	0625-baikal_vdu_drm-LVDS-panel-support.patch
Patch0626:	0626-Serial-82550_dw-Fix-clock-rate-setting-in-dw8250_set.patch
Patch0627:	0627-drm-panfrost-Fix-memory-attributes-for-Mali-T620.patch
Patch0628:	0628-drm-panfrost-Trim-affinity-for-Mali-T620.patch
Patch0629:	0629-baikal_vdu_drm-_plane_atomic_check-actually-re-enabl.patch
Patch0630:	0630-baikal_vdu-figure-out-LVDS-endpoint-count.patch
Patch0631:	0631-panfrost-disable-devfreq-on-BE-M1000-SoC.patch
Patch0632:	0632-pm-disable-all-sleep-states-on-BE-M1000-based-boards.patch
Patch0633:	0633-BE-M1000-secondary-CPUs-boot-fix.patch

# Disable AutoReq
AutoReq:	0
# but keep autoprov for kmod(xxx)
AutoProv:	1

BuildRequires:	bash
BuildRequires:	bc
BuildRequires:	binutils
BuildRequires:	bison
BuildRequires:	bzip2
%if %{with ccache}
BuildRequires:	ccache
%endif
BuildRequires:	flex
BuildRequires:	gcc
# ./scripts/mkcompile_h
BuildRequires:	hostname
BuildRequires:	kmod-compat
BuildRequires:	rsync
%if %{with compress_modules}
%if %{with modxz}
BuildRequires:	xz
%else
BuildRequires:	zstd
%endif
%endif
%ifarch aarch64
BuildRequires:	uboot-tools
%endif
BuildRequires:	kmod-devel
%ifarch x86_64 aarch64
BuildRequires:	numa-devel
%endif
%if %{with uml}
BuildRequires:	vde-devel
%endif
# For power tools
BuildRequires:	pkgconfig(ncurses)
# for CONFIG_STACK_VALIDATION=y
BuildRequires:	pkgconfig(libelf)
# For perf, cpufreq and all other tools
# For cpupower
%if %{build_cpupower}
BuildRequires:	pciutils-devel
%endif
# For perf
%if %{build_perf}
BuildRequires:	asciidoc
BuildRequires:	perl-ExtUtils-Embed
BuildRequires:	python3
BuildRequires:	xmlto
BuildRequires:	audit-devel
BuildRequires:	binutils-devel
BuildRequires:	elfutils-devel
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	libunwind-devel
BuildRequires:	newt-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(babeltrace)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(zlib)
%endif

# (To generate keys)
# LibreSSL has GOST support without editing openssl.cnf
# or dlopen()-ing external library
BuildRequires:	libressl
BuildRequires:	libressl-devel
# To verify signatures (find, xargs, hexdump)
BuildRequires:	findutils
BuildRequires:	util-linux

%if %{with binary_extra_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-source-rtl8821ce
BuildRequires:	kernel-source-rtl8821cu
BuildRequires:	kernel-source-rtl88x2bu
BuildRequires:	kernel-source-rtl8812au
BuildRequires:	kernel-source-rtl8821au
BuildRequires:	kernel-source-rtl8814au
BuildRequires:	kernel-source-rtk_btusb
BuildRequires:	kernel-source-rtw88
BuildRequires:	kernel-source-rtw89
# Broadcom-wl and nvidia contain a proprietary blob which is only for x86
%ifarch %{ix86} %{x86_64}
BuildRequires:	kernel-source-broadcom-wl
BuildRequires:	kernel-source-nvidia340
BuildRequires:	kernel-source-nvidia390
%endif
# Nvidia470+ are x86_64 only (maybe aarch64 will be also packaged later)
%ifarch %{x86_64}
BuildRequires:	kernel-source-nvidia470
BuildRequires:	kernel-source-nvidia510
BuildRequires:	kernel-source-nvidia515
BuildRequires:	kernel-source-nvidia520
BuildRequires:	kernel-source-nvidia525
%endif
BuildRequires:	kernel-source-tripso
BuildRequires:	kernel-source-ipt-so
%if %{with binary_virtualbox_host}
BuildRequires:	kernel-source-virtualbox
%endif
BuildRequires:	kernel-source-v4l2loopback
%if %{with binary_shredder}
BuildRequires: kernel-source-shredder-kernel
%endif
# Rosa-test-suite is maintained in certified branches only nlkm, memfreetest, pcietest
%if %{with nickel}
BuildRequires:	kernel-source-rosa-test-suite
%endif
%endif
# End of with binary_extra_modules

Provides:	kernel = %{EVRD}
Provides:	kernel-%{flavour} = %{EVRD}
Provides:	kernel-abi(%{kver_full}) = %{EVRD}
# Dnf config-manager --dump | grep installonly
Provides:	installonlypkg(kernel) = %{EVRD}.image
Provides:	installonlypkg(kernel) = %{EVRD}.modules

# >= because of added support of zstd-compressed modules
Requires(posttrans):	dracut >= 053-0.git5eb736.5
Requires(posttrans):	kmod >= 28-3

# Need for rebuild dkms drivers
Recommends:	(%{name}-devel%{_isa} = %{EVRD} if dkms)

# Usually necessary, but sometimes user may want to not install them
Recommends:	crda
Recommends:	linux-firmware
Recommends:	microcode
# Set BFQ as default scheduler for HDDs
# https://www.phoronix.com/scan.php?page=article&item=linux-50hdd-io
Recommends:	udev-rules-ioschedulers
Recommends:	wireless-regdb

%if %{with flow_abi}
Requires:	kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

# XXX temporary hack to upgrade from kernel-headers 1:5.4
%if %{build_headers}
Recommends:	kernel-headers = %{EVRD}
%endif

%if %{with binary_extra_modules}
%ifarch %{ix86} %{x86_64}
%kroko_req_modules_in_kernel -j %{nvidia_340_j} -n %{nvidia_340_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_390_j} -n %{nvidia_390_n} -p %{kver_full}
%endif
%ifarch %{x86_64}
%kroko_req_modules_in_kernel -j %{nvidia_470_j} -n %{nvidia_470_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_510_j} -n %{nvidia_510_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_515_j} -n %{nvidia_515_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_520_j} -n %{nvidia_520_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_525_j} -n %{nvidia_525_n} -p %{kver_full}
%endif
%endif

%description
The kernel package contains the Linux kernel (vmlinuz), the core of your
operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.

%posttrans
# update information about modules, useful if kernel-module* packages were
# installed in one transaction with this kernel (%%transfiletrigger* will run later)
depmod -a %{kver_full}
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd
# that is created then will be non-functional. But when the user installs
# kernel-<...> package, that defunct initrd will be replaced with a working
# one here.
dracut -f %{initrd_path} %{kver_full}

# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2

%transfiletriggerin -- %{_modulesdir}/%{kver_full}
# Detect all modules, including ones inside kernel-module* packages
if grep -qE '/.*\.ko(|\..*)' ; then
	depmod -a %{kver_full}
fi

%transfiletriggerpostun -- %{_modulesdir}/%{kver_full}
# Handle e.g. removal of kernel-module* packages
# List of files is not available here (?)
depmod -a %{kver_full}

%files -f %{kernel_files}
%{_bootdir}/System.map-%{kver_full}
%{_bootdir}/symvers-%{kver_full}.*
%{_bootdir}/config-%{kver_full}
%{_bootdir}/vmlinuz-%{kver_full}
%ghost %{initrd_path}
%ifarch %{armx}
%{_bootdir}/dtb-%{kver_full}
%endif
%{_modulesdir}/%{kver_full}/modules.*
%if %{with flow_abi}
%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
%if %{with binary_extra_modules}
# 8821ce.ko.debug will not be excluded and will be in the main debug subpackage
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821ce.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821cu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/88x2bu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8812au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8814au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/bluetooth/rtk_btusb.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/realtek/rtw88p
%ifarch %{ix86} %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/wl.ko%{kmod_suffix}
%endif
%if %{with binary_shredder}
%exclude %{_modulesdir}/%{kver_full}/kernel/extra/shredder-kernel.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/media/v4l2loopback.ko%{kmod_suffix}
%if %{with binary_virtualbox_host}
# vbox host modules may be built here (vboxnetflt vboxnetadp vboxdrv vboxpci)
# vbox guest modules are in the mainline kernel now (vboxvideo vboxguest vboxsf)
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/vbox*.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_TRIPSO.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_so.ko%{kmod_suffix}
%if %{with nickel}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/nlkm.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/memfreetest.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/pcietest.ko%{kmod_suffix}
%endif
%endif
# End of with binary_extra_modules

############################################################################

%if %{build_devel}
%package devel
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	glibc-devel
Requires:	ncurses-devel
Requires:	gcc
Requires:	make
Requires:	perl
Requires:	%{name} = %{EVRD}
Provides:	kernel-devel = %{kverrel}
Provides:	kernel-%{flavour}-devel = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.devel

# Have dkms updated/installed before the kernel, scriptlet here checks if dkms exists
OrderWithRequires(post):	dkms
# Try to remove the main kernel package after removing this devel package
# because there may be dkms-built kernel modules inside directories owned
# by the main package, try to get rid of such files before RPM starts to
# deal with directories owned in the main package
# (note that the devel package does not explicitly require the main package,
# there is no need to do so, a kernel module may be built using just the devel part).
OrderWithRequires(postun): %{name} = %{EVRD}

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

%description devel
This package contains the kernel files (headers and build tools) that should
be enough to build additional drivers for use with %{name}.


%post devel
if command -v dkms_autoinstaller >/dev/null 2>&1; then
	dkms_autoinstaller start %{kver_full}
fi


%preun devel
# If any DKMS modules with REMAKE_INITRD=yes in their configs have been
# uninstalled, initrd has been regenerated for the given kernel. However,
# the kernel itself might have been uninstalled before, so that (defunct)
# initrd image files would be left behind. Remove them if the kernel itself
# is no longer installed. Should work if they are uninstalled in parallel
# too.
if ! test -f /boot/vmlinuz-%{kver_full}; then
	rm -f /boot/initrd-%{kver_full}.img
	rm -f /boot/initrd-%{kver_full}_old.img
fi

if ! command -v dkms >/dev/null 2>&1; then exit 0; fi

for ii in $(/usr/sbin/dkms status -k %{kver_full} | awk '{ print $1 $2; }'); do
	mod=$(echo $ii | awk -v FS=',' '{ print $1; }')
	ver=$(echo $ii | awk -v FS=',' '{ print $2; }')
	/usr/sbin/dkms --rpm_safe_upgrade uninstall -m $mod -v $ver -k %{kver_full} || :
done


%files devel
%{devel_root}/Documentation
%dir %{devel_root}
%dir %{devel_root}/arch
%dir %{devel_root}/include
%{devel_root}/arch/um
%{devel_root}/arch/x86
%{devel_root}/arch/arm
%{devel_root}/arch/arm64
%{devel_root}/arch/riscv
%{devel_root}/block
%{devel_root}/certs
%{devel_root}/crypto
%{devel_root}/drivers
%{devel_root}/fs
%{devel_root}/include/soc
%{devel_root}/include/acpi
%{devel_root}/include/asm-generic
%{devel_root}/include/clocksource
%{devel_root}/include/config
%{devel_root}/include/crypto
%{devel_root}/include/drm
%{devel_root}/include/dt-bindings
%{devel_root}/include/generated
%{devel_root}/include/keys
%{devel_root}/include/kvm
%{devel_root}/include/kunit
%{devel_root}/include/linux
%{devel_root}/include/math-emu
%{devel_root}/include/media
%{devel_root}/include/memory
%{devel_root}/include/misc
%{devel_root}/include/net
%{devel_root}/include/pcmcia
%{devel_root}/include/ras
%{devel_root}/include/rdma
%{devel_root}/include/scsi
%{devel_root}/include/sound
%{devel_root}/include/target
%{devel_root}/include/trace
%{devel_root}/include/uapi
%{devel_root}/include/vdso
%{devel_root}/include/video
%{devel_root}/include/xen
%{devel_root}/init
%{devel_root}/ipc
%{devel_root}/io_uring
%{devel_root}/kernel
%{devel_root}/lib
%{devel_root}/mm
%{devel_root}/net
%{devel_root}/samples
%{devel_root}/scripts
%{devel_root}/security
%{devel_root}/sound
%{devel_root}/tools
%{devel_root}/usr
%{devel_root}/virt
%{devel_root}/.config
%{devel_root}/Kbuild
%{devel_root}/Kconfig
%{devel_root}/Makefile
%{devel_root}/Module.symvers
%{devel_root}/arch/Kconfig
%{_modulesdir}/%{kver_full}/build
%{_modulesdir}/%{kver_full}/source
%endif
# End of build_devel

############################################################################

%if %{build_debug}
%package debuginfo
Summary:	Debuginfo for %{name}
Group:		Development/Debug
Provides:	kernel-debug = %{kverrel}
AutoReq:	0
AutoProv:	0

%description debuginfo
This package contains the files with debuginfo for %{name}.

%files debuginfo -f %{debuginfo_files}
%{_bootdir}/vmlinux-%{kver_full}
%endif
# End of build_debug

############################################################################

%if %{build_doc}
%package doc
Summary:	Various documentation bits found in the kernel source
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files from the kernel source.

%files doc
%doc linux-%{tar_ver}/Documentation/*
%endif

############################################################################

%if %{build_perf}
%package -n perf
Summary:	perf tool and the supporting documentation
Group:		System/Kernel and hardware

%description -n perf
The package contains perf tool and the supporting documentation.

%files -n perf
%{_bindir}/perf
%ifarch x86_64
%{_bindir}/perf-read-vdso32
%endif
%{_bindir}/trace
%dir %{_prefix}/libexec/perf-core
%dir %{_libdir}/traceevent
%dir %{_libdir}/traceevent/plugins
%{_libdir}/libperf-jvmti.so
%{_libdir}/traceevent/plugins/*
%{_prefix}/libexec/perf-core/*
%{_mandir}/man[1-8]/perf*
%{_sysconfdir}/bash_completion.d/perf
%{_datadir}/perf-core/strace/groups/*
%{_datadir}/doc/perf-tip/*.txt
/usr/lib/perf/examples/bpf/*
/usr/lib/perf/include/bpf/*
%endif

############################################################################

%if %{build_cpupower}
%package -n cpupower

Summary:	The cpupower tools
Group:		System/Kernel and hardware

%description -n cpupower
The cpupower tools.

%post -n cpupower
if [ $1 -ge 0 ]; then
# Do not enable/disable cpupower.service directly, because it should start
# when cpupower.path triggers it.
	/bin/systemctl enable cpupower.path >/dev/null 2>&1 || :
	/bin/systemctl start cpupower.path >/dev/null 2>&1 || :
fi

%preun -n cpupower
if [ $1 -eq 0 ]; then
	/bin/systemctl --no-reload disable cpupower.path > /dev/null 2>&1 || :
	/bin/systemctl stop cpupower.path > /dev/null 2>&1 || :
fi

%files -n cpupower -f cpupower.lang
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
%{_bindir}/cpupower
%{_bindir}/cpupower-start.sh
%{_libdir}/libcpupower.so.0
%{_libdir}/libcpupower.so.0.0.1
%{_unitdir}/cpupower.service
%{_unitdir}/cpupower.path
%{_datadir}/bash-completion/completions/cpupower
%{_mandir}/man[1-8]/cpupower*

############################################################################

%package -n cpupower-devel
Summary:	Development files for cpupower
Group:		Development/Kernel
Requires:	cpupower = %{EVRD}
Conflicts:	%{_lib}cpufreq-devel

%description -n cpupower-devel
This package contains the development files for cpupower.

%files -n cpupower-devel
%{_libdir}/libcpupower.so
%{_includedir}/cpufreq.h
%{_includedir}/cpuidle.h
%endif

############################################################################

%if %{build_headers}
%package -n kernel-headers
Summary:	Linux kernel header files mostly used by your C library
Group:		System/Kernel and hardware
Provides:	linux-userspace-headers = %{EVRD}
Provides:	kernel-release-headers = %{EVRD}

%description -n kernel-headers
C header files from the Linux kernel. The header files define
structures and constants that are needed for building most
standard programs, notably the C library.

This package is not suitable for building kernel modules, you
should use the 'kernel-devel' package instead.

%files -n kernel-headers
%{_includedir}/*
# Don't conflict with cpupower-devel
%if %{build_cpupower}
%exclude %{_includedir}/cpufreq.h
%exclude %{_includedir}/cpuidle.h
%endif
%endif

############################################################################

%if %{with uml}
%package uml
Summary:	User Mode Linux binary
Group:		System/Kernel and hardware
Provides:	kernel-uml = %{kverrel}
Provides:	kernel-uml-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.uml

%description uml
User Mode Linux binary.
Stripped, debug is in %{name}-debuginfo.

%files uml
%{_bindir}/linux-uml-%{kver_full}

#-----------------------------------------------------------------------------

%package uml-modules
Summary:	User Mode Linux (UML) kernel modules
Group:		System/Kernel and hardware
Provides:	kernel-uml-modules = %{kverrel}
Provides:	kernel-uml-modules-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel-module) = %{EVRD}.uml

%description uml-modules
User Mode Linux (UML) kernel modules:
- not compressed;
- not stripped;
- signed.

%files uml-modules
/lib/modules-uml/%{kver_full}

%endif
# End of uml

#-----------------------------------------------------------------------------

###############################
# Extra modules package definitions

%if %{with binary_extra_modules}
%ksob_mk_module_pkg -n 8821ce -s net/wireless -r rtl8821ce-blacklist
%ksob_mk_module_pkg -n 8821cu -s net/wireless
# add "-r rtl88x2bu-blacklist" in 5.18+!!!
%ksob_mk_module_pkg -n 88x2bu -s net/wireless
# "-r xxx-blacklist" was not added for modules bellow because
# blacklisted modules have not appeared in upstream yet
%ksob_mk_module_pkg -n 8812au -s net/wireless
# for RTL8811AU and RTL8821AU
%ksob_mk_module_pkg -n 8821au -s net/wireless
%ksob_mk_module_pkg -n 8814au -s net/wireless
%ksob_mk_module_pkg -n rtk_btusb -s drivers/bluetooth -r rtk_btusb-firmware
%ksob_mk_modules_pkg -n rtw88 -s net/wireless/realtek/rtw88p -r rtw88-firmware
%ksob_mk_modules_pkg -n rtw89 -s net/wireless/realtek/rtw89p
%ifarch %{ix86} %{x86_64}
%ksob_mk_module_pkg -n wl -s net/wireless -r broadcom-wl-aliases
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_340_j} -n %{nvidia_340_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_390_j} -n %{nvidia_390_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%endif
%ifarch %{x86_64}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_470_j} -n %{nvidia_470_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_510_j} -n %{nvidia_510_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_515_j} -n %{nvidia_515_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_520_j} -n %{nvidia_520_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_525_j} -n %{nvidia_525_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%endif
%ksob_mk_module_pkg -n xt_TRIPSO -s net -r tripso
%ksob_mk_module_pkg -n xt_so -s net -r ipt-so
%ksob_mk_module_pkg -n v4l2loopback -s drivers/media -r v4l2loopback

%if %{with binary_shredder}
%ksob_mk_module_pkg -n shredder-kernel -s extra -r rosa-shredder-user
%endif

#-----------------------------------------------------------------------------

###############
# Virtualbox host

%if %{with binary_virtualbox_host}
%ksob_mk_module_pkg -n vboxnetflt -s misc
%ksob_mk_module_pkg -n vboxnetadp -s misc
%ksob_mk_module_pkg -n vboxdrv -s misc
%ksob_mk_module_pkg -n vboxpci -s misc

# A package which will pull all those modules
%package -n kernel-modules-virtualbox-host-%{ksob_kernel}
Summary:	Meta package to pull VirtualBox host kernel modules for kernel-%{flavour}-%{kernelversion}.%{patchlevel}
Group:		System/Kernel and hardware
Requires:	kernel-module-vboxnetflt-%{ksob_kernel}
Requires:	kernel-module-vboxnetadp-%{ksob_kernel}
Requires:	kernel-module-vboxdrv-%{ksob_kernel}
Requires:	kernel-module-vboxpci-%{ksob_kernel}

%description -n kernel-modules-virtualbox-host-%{ksob_kernel}
Meta package to pull VirtualBox host kernel modules for %{name}.

%files -n kernel-modules-virtualbox-host-%{ksob_kernel}
# empty
%endif
#End of ifarch x86

#-----------------------------------------------------------------------------

%if %{with nickel}
%ksob_mk_module_pkg -n nlkm -s misc
%ksob_mk_module_pkg -n memfreetest -s misc
%ksob_mk_module_pkg -n pcietest -s misc
%endif

%endif
# End of binary_extra_modules

#################################################################

%if %{with flow_abi}
%package -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
Summary:	Directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x
Group:		System/Kernel and hardware

%description -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
This package contains a directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x.
Some vendors provide binary-only kernel modules. They can put them into /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi.
kmod tools will find them for kernels 5.4.x of "generic" and "nickel" flavours
but there is no guarantee that these modules will load and work correctly on
newer or older kernels then the ones they were build against.

We call this "flow ABI" because most ABIs are not changed between %{kernelversion}.%{patchlevel}.x releases,
but there are no specific guarantees. ABI may evolve and change.
We highly recommend to use DKMS and build third-party kernel modules from source for every kernel!
This package does nothing, just owns a directory for third-party binary kernel modules.

%files -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
# End of flow_abi

################################################

%prep
# Avoid accidental merge
%if 0%{?rpm5}
%{error:Package structure is for dnf, not for urpmi!}
%endif

%setup -q -n %{top_dir_name} -c
%if %{with uml}
cp -r %{src_dir} %{src_dir}.uml
%endif
cd %{src_dir}

%autopatch -p1

#
# Setup Begin
#

##################################
# Kernel configuration

echo "Creating the kernel configuration file."

# Configs
cp %{SOURCE111} .
cp %{SOURCE112} .
cp %{SOURCE113} .
cp %{SOURCE114} .
cp kernel-%{arch_suffix}.config .config

touch %{build_dir}/.config.append

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
# Wipe all .gitignore/.get_maintainer.ignore files
find . -name "*.g*ignore" -delete

# Disable debug info if requested (enabled by default)
%if ! %build_debug
sed -i -e '/CONFIG_DEBUG_INFO/d' -e '/CONFIG_GDB_SCRIPTS/d' .config
echo '# CONFIG_DEBUG_INFO is not set' >> %{build_dir}/.config.append
echo '# CONFIG_GDB_SCRIPTS is not set' >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_FORCE/d' .config
%if %{with oblig_signed_modules}
# Disallow loading not signed modules
# But 0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch allows to override this in cmdline
echo CONFIG_MODULE_SIG_FORCE=y >> %{build_dir}/.config.append
%else
echo CONFIG_MODULE_SIG_FORCE=n >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_KEY/d' .config
# Set path to the key that will be generated later by openssl/libressl
echo CONFIG_MODULE_SIG_KEY=\"%{certs_signing_key_priv_rnd}\" >> %{build_dir}/.config.append

# Set path to one PEM file with all keys that the kernel must trust
sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/d' .config
echo CONFIG_SYSTEM_TRUSTED_KEYS=\"%{certs_public_keys}\" >> %{build_dir}/.config.append

# Memory wiping
# Introduced in kernel 5.3 by commit 6471384af2a6530696fc0203bafe4de41a23c9ef
# Estimated performance impact is described in the commit
# "Fill newly allocated pages and heap objects with zeroes."
# To enable, add to cmdline: init_on_alloc=1
sed -i '/CONFIG_INIT_ON_ALLOC_DEFAULT_ON/d' .config
echo CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n >> %{build_dir}/.config.append
# "Fill freed pages and heap objects with zeroes"
# To disable, add to cmdline: init_on_free=0
sed -i '/CONFIG_INIT_ON_FREE_DEFAULT_ON/d' .config
%if %{with nickel}
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=y >> %{build_dir}/.config.append
%else
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=n >> %{build_dir}/.config.append
%endif
# Here enabling only either only init_on_free or only init_on_alloc
# makes sense; init_on_alloc is not about protecting information.

# To load kernel keyring in UML
for i in STREEBOG SHA1 SHA256 SHA512 ECRDSA RSA ; do
	if ! grep -q "^CONFIG_CRYPTO_${i}=y$" .config; then
		sed -i "/CONFIG_CRYPTO_${i}/d" .config
		echo "CONFIG_CRYPTO_${i}=y" >> %{build_dir}/.config.append
	fi
done

cat %{build_dir}/.config.append >> .config

##################
# End of kernel config


# Store the config file in the appropriate directory.
CONFIG_DIR=arch/%{arch_type}/configs
mkdir -p "${CONFIG_DIR}"

cfg_file=arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour}

make ARCH=%{arch_type} oldconfig
# When it is needed to edit kernel configs, run:
# abf fetch
# rpmbuild --define "_sourcedir $PWD" --with=fail -bb kernel.spec
# and then work with the config in the buildroot with applied patches etc.
%{?_with_fail:exit 1}
mv .config ${cfg_file}
echo "Created ${cfg_file}."

# Make sure the kernel has the sublevel we know it has...
LC_ALL=C sed -ri "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
find . -name '.get_maintainer.ignore' | %kxargs rm -f

# Versionize python shebang (#!/usr/bin/env python -> #!/usr/bin/python3) in scripts
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/bloat-o-meter
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/bpf_helpers_doc.py
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/checkkconfigsymbols.py
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/diffconfig
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/jobserver-exec
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/show_delta
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/spdxcheck.py
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/clang-tools/gen_compile_commands.py
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/clang-tools/run-clang-tools.py
	sed -i -e '1 s,^.*$,#!%{__python3},' scripts/tracing/draw_functrace.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/hv/vmbus_testing
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/kvm/kvm_stat/kvm_stat
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/perf/python/tracepoint.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/perf/python/twatch.py
#tools/perf/scripts/python/exported-sql-viewer.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/power/pm-graph/bootgraph.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/power/pm-graph/sleepgraph.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/kunit/kunit.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/kunit/kunit_tool_test.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/bpf/tcp_client.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/bpf/tcp_server.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/bpf/test_offload.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/drivers/net/mlxsw/sharedbuffer_configuration.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/exec/binfmt_script
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/net/devlink_port_split.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/tc-testing/tdc.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/tc-testing/tdc_batch.py
	sed -i -e '1 s,^.*$,#!%{__python3},' tools/testing/selftests/tc-testing/tdc_multibatch.py
	sed -i -e '1 s,^.*$,#!%{__python3},' Documentation/sphinx/kernel_include.py
	sed -i -e '1 s,^.*$,#!%{__python3},' Documentation/sphinx/maintainers_include.py
	sed -i -e '1 s,^.*$,#!%{__python3},' Documentation/sphinx/rstFlatTable.py
	sed -i -e '1 s,^.*$,#!%{__python3},' Documentation/target/tcm_mod_builder.py

# Drop env from bash scripts
	sed -i -e '1 s,^.*$,#!%{_bindir}/bash,' scripts/config

# Drop env from perl scripts
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/bootgraph.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/checkincludes.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/checkkconfigsymbols.py
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/checkpatch.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/checkstack.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/checkversion.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/cleanfile
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/cleanpatch
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/documentation-file-ref-check
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/export_report.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/extract-module-sig.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/extract-sys-certs.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/extract_xc3028.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/get_abi.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/get_dvb_firmware
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/get_maintainer.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/headerdep.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/headers_check.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/kernel-doc
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/leaking_addresses.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/markup_oops.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/profile2linkerlist.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/recordmcount.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/split-man.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/stackdelta
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/dtc/dt_to_config
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' scripts/kconfig/streamline_config.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' tools/testing/ktest/compare-ktest-sample.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' tools/testing/selftests/kselftest/prefix.pl
	sed -i -e '1 s,^.*$,#!%{_bindir}/perl,' Documentation/sphinx/parse-headers.pl

############################################################################

%build
# Ensure that build time generated private keys don't get published
# as e.g. "RPM build root" on ABF!
# Note that ABF sends SIGKILL to rpm-build.sh when the build is terminated;
# in this case trap will not work, but RPM build root also will not be
# saved because rpm-build.sh saves it, but it is SIGKILLed.
# For best security we could store private keys in RAM (not reachable from
# filesystem, so not in /tmp!) and override sth like fopen() by LD_PRELOAD
# to give the content of keys from RAM when a virtual address of a key file
# is accessed, but currently I don't know how to implement this (TODO: ).
_cleanup(){
# Show resulting kernel public keys for debugging
	cat "%{src_dir}/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}/%{certs_dir_rnd}"
%if %{with uml}
	cat "%{src_dir}.uml/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}.uml/%{certs_dir_rnd}"
%endif
}
# Make a trap to delete keys even if %%build fails in the middle
trap "_cleanup" EXIT

rm -rf %{temp_root}
install -d %{temp_root}

cd %{src_dir}

### Keys for signing kernel modules
# Keys can be generated both manually and automatically,
# let's generate them by ourselves to take full control of the process
# https://www.ibm.com/support/knowledgecenter/en/SSB23S_1.1.0.13/gtps7/cfgcert.html
# See also certs/Makefile in kernel source
mkdir -p "%{certs_dir_rnd}"

# On ABF, %%packager == $username <$email>
# Try to extract email from %%packager if it is set
_get_email(){
	# Check that macro %%packager was set and is not empty
	if echo '%{packager}' | grep -q 'packager}$' || [ -z "%{packager}" ]
		# If was not set or is empty, use default email
		then echo 'rpmbuild@rosa.unknown' && return
		# Otherwise try to extract email from 'name <email>' or sth else
		else temp="$(echo '%{packager}' | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | tr -d '<>' | grep -E '@.*\..*' | head -n 1)"
	fi
	# Validate that what we have now is a valid email
	# https://stackoverflow.com/a/2138832, https://stackoverflow.com/a/41192733
	# Note that we set %%_buildshell to /bin/bash to guarantee the work of this bashism
	regex_email="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
	if [[ "$temp" =~ ${regex_email} ]]
		# If it is, use it
		then echo "$temp" && return
		# Otherwise use default email
		else echo 'rpmbuild@rosa.unknown' && return
	fi
	# If script above has not return'ed for any reason,
	# e.g. because of non-bash shell being not able to
	# process regexp, use default email
	echo 'rpmbuild@rosa.unknown'
}
email="$(_get_email)"

cat <<EOF > "%{certs_key_config_rnd}"
[ req ]
prompt = no
string_mask = utf8only
#default_keyfile = %%{certs_signing_key_priv_rnd}
distinguished_name = req_distinguished_name
x509_extensions = myexts
[ req_distinguished_name ]
organizationName = %{vendor} rpmbuild
commonName = Build time autogenerated @ALGO@ kernel key
emailAddress = ${email}
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
cat "%{certs_key_config_rnd}"
sed -e 's,@ALGO@,RSA,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.RSA"
sed -e 's,@ALGO@,GOST R 34.10-2012,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.GOST"
# Avoid using the template
rm -f "%{certs_key_config_rnd}"

_libressl_gen_key(){
	if [ "$GOST_KEY" = 1 ]
	then
		lssl_req_gost_args="\
			-newkey gost2001 \
			-pkeyopt dgst:streebog512 -pkeyopt paramset:A \
			-streebog512"
		OUT="%{certs_signing_key_priv_rnd}.GOST"
		CONFIG="%{certs_key_config_rnd}.GOST"
	else
		lssl_req_gost_args=""
		OUT="%{certs_signing_key_priv_rnd}.RSA"
		CONFIG="%{certs_key_config_rnd}.RSA"
	fi
		libressl req -new -nodes -utf8 -batch \
			$lssl_req_gost_args \
			-days 109500 \
			-x509 -config "$CONFIG" \
			-out "$OUT" \
			-keyout "$OUT"

	# Verify
	if [ "$GOST_KEY" = 1 ]; then
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
	fi
}

GOST_KEY=0 _libressl_gen_key
GOST_KEY=1 _libressl_gen_key
# Fake CONFIG_MODULE_SIG_KEY to make build scripts happy
cp -v "%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}"

# Strip public parts from the generated PEMs
sed -n \
	'/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' \
	"%{certs_signing_key_priv_rnd}.GOST" \
	"%{certs_signing_key_priv_rnd}.RSA" \
	> "%{certs_public_keys}"

# Link sign-file and extract-cert with LibreSSL instead of OpenSSL
if [ $? != 0 ] ; then exit $? ; fi
sed -i %{src_dir}/scripts/Makefile \
%if %{with uml}
	%{src_dir}.uml/scripts/Makefile \
%endif
	-e "s, libcrypto , libressl-libcrypto ,g"

%if %{with additional_keys}
# Add additional public RSA keys to the list of trusted keys for kernel modules
# Build kernel --without additional_keys if you do not want to trust them
cat %{expand:%(for i in `seq 1 12`; do echo "%%SOURCE$((200+${i}))" | tr "\n" " "; done)} \
	>> "%{certs_public_keys}"
%endif
# End of additional_keys
cat %{certs_public_keys}

# .config
%smake -s mrproper
cp arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour} .config

# Make sure EXTRAVERSION says what we want it to say
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{flavour}-%{buildrpmrel}/" Makefile

# Build the kernel
echo "Building kernel %{kver_full}"

TARGETS="all"
# need to install dtbs to proper boot arm64 devices
%ifarch %{armx}
	TARGETS="$TARGETS dtbs"
%endif

%kmake V=1 -s $TARGETS

# Install modules
mkdir -p %{temp_modules}/%{kver_full}
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=%{kver_full} modules_install

%if %{with binary_extra_modules}
# Build and install procedure is specific to each Makefile from kernmel-source-* packages
# See also: https://www.kernel.org/doc/html/latest/kbuild/modules.html
# Copy directory because write permissions are required
# `make modules_install` must be done before this, otherwise these copied files will be deleted

cp -r "$(rpm -q --qf '/usr/src/rtl8821ce-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821ce)" kernel-source-rtl8821ce
pushd kernel-source-rtl8821ce
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821ce.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821ce.ko
popd
rm -fr kernel-source-rtl8821ce

cp -r "$(rpm -q --qf '/usr/src/rtl8821cu-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821cu)" kernel-source-rtl8821cu
pushd kernel-source-rtl8821cu
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821cu.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821cu.ko
popd
rm -fr kernel-source-rtl8821cu

cp -r "$(rpm -q --qf '/usr/src/rtl88x2bu-%%{VERSION}-%%{RELEASE}' kernel-source-rtl88x2bu)" kernel-source-rtl88x2bu
pushd kernel-source-rtl88x2bu
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 88x2bu.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/88x2bu.ko
popd
rm -fr kernel-source-rtl88x2bu

cp -r "$(rpm -q --qf '/usr/src/rtl8812au-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8812au)" kernel-source-rtl8812au
pushd kernel-source-rtl8812au
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8812au.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8812au.ko
popd
rm -fr kernel-source-rtl8812au

cp -r "$(rpm -q --qf '/usr/src/rtl8821au-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821au)" kernel-source-rtl8821au
pushd kernel-source-rtl8821au
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821au.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821au.ko
popd
rm -fr kernel-source-rtl8821au

cp -r "$(rpm -q --qf '/usr/src/rtl8814au-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8814au)" kernel-source-rtl8814au
pushd kernel-source-rtl8814au
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8814au.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8814au.ko
popd
rm -fr kernel-source-rtl8814au

cp -r "$(rpm -q --qf '/usr/src/rtk_btusb-%%{VERSION}-%%{RELEASE}' kernel-source-rtk_btusb)" kernel-source-rtk_btusb
pushd kernel-source-rtk_btusb
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/bluetooth/
cp rtk_btusb.ko %{temp_modules}/%{kver_full}/kernel/drivers/bluetooth/rtk_btusb.ko
popd
rm -fr kernel-source-rtk_btusb

cp -r "$(rpm -q --qf '/usr/src/rtw88-%%{VERSION}-%%{RELEASE}' kernel-source-rtw88)" kernel-source-rtw88
pushd kernel-source-rtw88
%kmake KSRC=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw88p
cp *.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw88p
popd
rm -fr kernel-source-rtw88

cp -r "$(rpm -q --qf '/usr/src/rtw89-%%{VERSION}-%%{RELEASE}' kernel-source-rtw89)" kernel-source-rtw89
pushd kernel-source-rtw89
%kmake KSRC=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
cp *.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
popd
rm -fr kernel-source-rtw89

_build_nvidia(){
	cp -r "$(rpm -q --qf "/usr/src/nvidia${1}-%%{VERSION}-%%{RELEASE}" kernel-source-nvidia${1})" kernel-source-nvidia${1}
	pushd kernel-source-nvidia${1}
	%make SYSSRC=%{src_dir}
	mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}.%{kroko_release}
	for i in *.ko
	do
		# put them here to extract debug and compress, will be moved later
		install -m0644 "$i" %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}.%{kroko_release}/"$i"
	done
	popd
	rm -fr kernel-source-nvidia${1}
	# for rosa-kernel-tools
	mkdir -p %{temp_root}/var/spool/initramfs-regen
	touch %{temp_root}/var/spool/initramfs-regen/nvidia${1}.%{kroko_release}
}

%ifarch %{ix86} %{x86_64}
cp -r "$(rpm -q --qf '/usr/src/broadcom-wl-%%{VERSION}-%%{RELEASE}' kernel-source-broadcom-wl)" kernel-source-broadcom-wl
pushd kernel-source-broadcom-wl
%kmake -C %{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp wl.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/wl.ko
popd
rm -fr kernel-source-broadcom-wl

_build_nvidia 340
_build_nvidia 390
%endif

%ifarch %{x86_64}
_build_nvidia 470
_build_nvidia 510
_build_nvidia 515
_build_nvidia 520
_build_nvidia 525
%endif

cp -r "$(rpm -q --qf '/usr/src/tripso-%%{VERSION}-%%{RELEASE}' kernel-source-tripso)" kernel-source-tripso
pushd kernel-source-tripso
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_TRIPSO.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-tripso

cp -r "$(rpm -q --qf '/usr/src/ipt-so-%%{VERSION}-%%{RELEASE}' kernel-source-ipt-so)" kernel-source-ipt-so
pushd kernel-source-ipt-so
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_so.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-ipt-so

%if %{with binary_shredder}
cp -r "$(rpm -q --qf '/usr/src/shredder-kernel-%%{VERSION}-%%{RELEASE}' kernel-source-shredder-kernel)" kernel-source-shredder-kernel
pushd kernel-source-shredder-kernel
%kmake KERNEL_PATH=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/extra/
cp shredder-kernel.ko %{temp_modules}/%{kver_full}/kernel/extra/
popd
rm -fr kernel-source-shredder-kernel
%endif

%if %{with binary_virtualbox_host}
# build commands for virtualbox are based on the ones from the virtualbox package
cp -r "$(rpm -q --qf '/usr/src/virtualbox-%%{VERSION}-%%{RELEASE}' kernel-source-virtualbox)" kernel-source-virtualbox
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
pushd kernel-source-virtualbox
make -C vboxdrv KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxdrv/Module.symvers vboxnetflt
cp -fv vboxdrv/Module.symvers vboxnetadp
make -C vboxnetflt KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
make -C vboxnetadp KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxnetadp/Module.symvers vboxpci/
make -C vboxpci KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
for i in vboxnetflt vboxnetadp vboxdrv vboxpci
do
	cp -v "${i}/${i}.ko" %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif

cp -r "$(rpm -q --qf '/usr/src/v4l2loopback-%%{VERSION}-%%{RELEASE}' kernel-source-v4l2loopback)" kernel-source-v4l2loopback
pushd kernel-source-v4l2loopback
cat Kbuild > Makefile
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/media
make -C %{src_dir} M="$PWD" modules
cp v4l2loopback.ko %{temp_modules}/%{kver_full}/kernel/drivers/media
pushd
rm -fr kernel-source-v4l2loopback

%if %{with nickel}
# rosa-test-suite uses /sr/src/xxx-version, not /usr/src/xxx-version-release
cp -r "$(rpm -q --qf '/usr/src/rosa-test-suite-%%{VERSION}' kernel-source-rosa-test-suite)" kernel-source-rosa-test-suite
pushd kernel-source-rosa-test-suite
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
for i in nlkm memfreetest pcietest
do
cat << EOF > Makefile
obj-m := ${i}.o
all:
	make -C %{src_dir} M=\$(PWD) modules
EOF
%kmake
cp -fv ${i}.ko %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif
# End with nickel <- with binary_extra_modules

%endif
# End with binary_extra_modules

%if %{with uml}
cp -rv %{certs_dir_rnd} %{src_dir}.uml/
pushd %{src_dir}.uml
%kmake ARCH=um defconfig
%kmake ARCH=um linux
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
#rm -fv linux
%kmake V=1 ARCH=um modules
mkdir -p %{temp_root}/lib/modules-uml/%{kver_full}/
%kmake ARCH=um INSTALL_MOD_PATH=%{temp_root}/lib/modules-uml/%{kver_full}/ modules_install
popd
%endif

install -d %{temp_boot}
install -m 644 System.map %{temp_boot}/System.map-%{kver_full}
install -m 644 .config %{temp_boot}/config-%{kver_full}
%if %{with modxz}
xz -c Module.symvers > %{temp_boot}/symvers-%{kver_full}.xz
%else
%{zstd_cmd} Module.symvers
install -m 644 Module.symvers.zst %{temp_boot}/symvers-%{kver_full}.zst
%endif

%ifarch %{armx}
%make_build ARCH=%{arch_type} V=1 INSTALL_DTBS_PATH=%{temp_boot}/dtb-%{kver_full} dtbs_install
%endif

%ifarch aarch64 %{riscv}
	cp -f arch/%{arch_type}/boot/Image.gz %{temp_boot}/vmlinuz-%{kver_full}
%else
	cp -f arch/%{arch_type}/boot/bzImage %{temp_boot}/vmlinuz-%{kver_full}
%endif

# Headers
%if %{build_headers}
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=%{kver_full} headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
%endif

# Remove /lib/firmware, we use a separate linux-firmware package
rm -rf %{temp_root}/lib/firmware

# Prepare the files for kernel*-devel
%if %{build_devel}

mkdir -p %{temp_devel_root}
for i in $(find . -name 'Makefile*'); do cp -R --parents $i %{temp_devel_root}; done
for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i %{temp_devel_root}; done

cp -fR include %{temp_devel_root}

cp -fR scripts %{temp_devel_root}
cp -fR kernel/bounds.c %{temp_devel_root}/kernel
cp -fR kernel/time/timeconst.bc %{temp_devel_root}/kernel/time
cp -fR tools %{temp_devel_root}/
cp -fR arch/%{arch_type}/kernel/asm-offsets.{c,s} %{temp_devel_root}/arch/%{arch_type}/kernel/
%ifarch %{ix86} %{x86_64}
cp -fR arch/%{arch_type}/kernel/asm-offsets_{32,64}.c %{temp_devel_root}/arch/%{arch_type}/kernel/
cp -fR arch/%{arch_type}/purgatory/* %{temp_devel_root}/arch/%{arch_type}/purgatory/
# Needed for arch/x86/purgatory
cp -fR lib/*.h lib/*.c %{temp_devel_root}/lib/
cp -fR arch/%{arch_type}/entry/syscalls/syscall* %{temp_devel_root}/arch/%{arch_type}/entry/syscalls/
cp -fR arch/%{arch_type}/tools %{temp_devel_root}/arch/%{arch_type}/
# needed for kexec
cp -fR arch/%{arch_type}/boot/*.h %{temp_devel_root}/arch/%{arch_type}/boot/
cp -fR arch/%{arch_type}/boot/*.c %{temp_devel_root}/arch/%{arch_type}/boot/
%endif
cp -fR arch/%{arch_type}/include %{temp_devel_root}/arch/%{arch_type}/
cp -fR .config Module.symvers %{temp_devel_root}

# Needed for truecrypt build (Danny)
cp -fR drivers/md/dm.h %{temp_devel_root}/drivers/md/

# Needed for lirc_gpio (#39004)
cp -fR drivers/media/pci/bt8xx/bttv{,p}.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/pci/bt8xx/bt848.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/common/btcx-risc.h %{temp_devel_root}/drivers/media/common/

# Add acpica header files, needed for fglrx build
cp -fR drivers/acpi/acpica/*.h %{temp_devel_root}/drivers/acpi/acpica/

%if %{with aufs}
# aufs2 has a special file needed
cp -fR fs/aufs/magic.mk %{temp_devel_root}/fs/aufs
%endif

# SELinux needs security/selinux/include
cp -fR security/selinux/include %{temp_devel_root}/security/selinux

for i in alpha arc avr32 blackfin c6x cris csky frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
	mips mn10300 nds32 nios2 openrisc parisc powerpc s390 score sh sparc tile unicore32 xtensa; do
	rm -rf %{temp_devel_root}/arch/$i
done

# Clean the scripts tree, and make sure everything is ok (sanity check)
# running prepare+scripts (tree was already "prepared" in build)
pushd %{temp_devel_root}
	%smake V=1 -s clean ARCH=%{arch_type}
popd

rm -f %{temp_devel_root}/.config.old

# Fix permissions
chmod -R a+rX %{temp_devel_root}

# Disable mrproper in -devel rpms
patch -p1 --fuzz=0 -d %{temp_devel_root} -i %{SOURCE2}
%endif
# End of build_devel


# TODO: maybe move to /usr/lib/debug?
%if %{build_debug}
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | \
	%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | %kxargs -I '{}' \
	sh -c 'cd `dirname {}`; \
		objcopy --add-gnu-debuglink=`basename {}`.debug \
		--strip-debug `basename {}`'
%endif
# End of build_debug

# https://patchwork.kernel.org/patch/11446123/
_libressl_sign(){
	if [ ! -f "$1" ]; then
		echo "No file $1"
		return 0
	fi
	f="$1"
%if %{with gost_sign}
	%{src_dir}/scripts/sign-file streebog512 \
		"%{certs_signing_key_priv_rnd}.GOST" "%{certs_signing_key_priv_rnd}.GOST" "$f"
%else
	%{src_dir}/scripts/sign-file sha512 \
		"%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}.RSA" "$f"
%endif
	unset f
}
export -f _libressl_sign
find %{temp_modules}/%{kver_full}/kernel \
%if %{with uml}
	%{temp_root}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -e -x -c 'if ! _libressl_sign "{}"; \
		then echo Failed _libressl_sign on "{}" && exit 1; fi'

# Set extraversion to match srpm to get nice version reported by the tools
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
%smake -C tools/perf -s PYTHON=%{__python3} HAVE_CPLUS_DEMANGLE=1 WERROR=0 prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 man
%endif

%if %{build_cpupower}
# Make sure version-gen.sh is executable.
chmod +x tools/power/cpupower/utils/version-gen.sh
%make -C tools/power/cpupower CPUFREQ_BENCH=false
%endif

_cleanup

############################################################################

%install
cd %{src_dir}

# We want to be able to test several times the install part
rm -rf %{buildroot}
cp -a %{temp_root} %{buildroot}

#if %%{with oblig_signed_modules}
# Multithreaded verification that every kernel module has a signature attached to it
mkdir -p "%{certs_dir_rnd}"
touch %{certs_verify_tmp}
_verify_signature(){
	if [ -z "$1" ] || [ ! -f "$1" ]; then return; fi
	if hexdump -C "$1" | rev | cut -f 2 -d '|' | rev | tr -d '\n' | grep -q '~Module signature appended~'; then
		if [ -f %{certs_verify_tmp} ]; then
			rm -f %{certs_verify_tmp}
		fi
	else
		echo "ERROR: Module $1 has no signature attached to it!"
		exit 1
	fi
}
export -f _verify_signature
find %{target_modules} \
%if %{with uml}
	%{buildroot}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -c '_verify_signature "{}"'
if [ -f %{certs_verify_tmp} ]; then
	echo "ERROR: seems that signatures of none modules were verified!"
	exit 1
fi
rm -f %{certs_verify_tmp}
#endif

# Compressing modules
%if %{with compress_modules}
# Tested on /lib/modules/5.10.34-generic-2rosa2019.1-x86_64, the results are the following:
# * decompressed: 266.3 MiB
# * xz -9 --extreme: 67.8 MiB
# * zstd --ultra -22 without training: 73.5 MiB
# * zstd -6 without training: 79.6 MiB
# * zstd --ultra -22 with training: 66.3 MiB (the winner!)
# Training takes only a few minutes, make it here in place with current zstd and kernel modules.
# But! Decompressing also requires a dictionary for zstd, that will be too complex, so not using training :(
# We already use zstd in dracut to compress initrds quickly and with good compression ration.
# Testing speed of loading modules:
# `time modinfo bcache.ko.xz` took 0,048s, `time modinfo bcache.ko.zstd` took 0,014s (for multiple times)
# find /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 -type f -name '*.ko.zst' > /tmp/zst.list
# time { for i in `cat /tmp/zst.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took ~31-40s, with disk cache (2+ runs) ~33s
# find /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 -type f -name '*.ko.xz' > /tmp/xz.list
# time { for i in `cat /tmp/xz.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took 43-47s, with disk cache (2+ runs) ~42s, +21%%
# zstd-compressed initramfs image initrd-5.10.34-generic-1rosa2019.1-x86_64.img with *.ko.xz is 56,3 MiB
# zstd-compressed initramfs image initrd-5.10.34-generic-2rosa2019.1-x86_64.img with *.ko.zst is 58,4 MiB (+3.6%%)
# /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 (*.ko.xz) is 78,1 MiB
# /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 (*.ko.zst) is 83,9 MiB (+7%%)
# When zstd is compressing cpio (initrd image) with zstd-compressed kernel modules inside it, does it recompress data?
# It is not easy to make a choice between zstd and xz for kernel modules... Disk space (and so speed of installing
# RPM packages) is not much bigger, we do not try to support super low end devices, operation speed is a bit better.
# I have not seen measurable difference in startup time according to systemd-analyze.
# Note that decompression after zstd --ultra -22 will consume more memory than after zstd -6, see commit message in
# https://github.com/torvalds/linux/commit/73f3d1b48f5069d46b. I did not benchmark -6 vs -22 in runtime.
# Let's use zstd for now.
# zstd may also be used to compress linux-firmware to save a lot of space on disk,
# but upstream kernels still cannot decompress it.
#{zstd_cmd} -T0 --train $(find . -type f -name '*.ko')
#[ -f dictionary ]
# -T1 (one thread) because we run multiple zstd processes by xargs
%if %{with modxz}
find %{target_modules} -name "*.ko" | %kxargs xz -6e
%else
find %{target_modules} -name "*.ko" | %kxargs %{zstd_cmd} --rm -T1 #-D dictionary
rm -f dictionary
%endif
%endif

%if %{with binary_extra_modules}
# Move nvidia modules to manage them via alternatives(8), leave *.debug
# TODO: better handle debug here and in the package in general
find %{target_modules}/%{kver_full}/kernel/drivers/video -name 'nvidia???.*' -type d -maxdepth 1 |
while read -r line
do
	nv="$(basename "$line")"
	mkdir -p %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
	mv -v "$line"/*.ko%{kmod_suffix} %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
	dir_no_buildroot="$(echo "$line" | sed -e 's,^%{buildroot},,')"
	echo "%exclude $dir_no_buildroot" >> %{kernel_files}
	%if %{build_debug}
	echo "%dir $dir_no_buildroot" >> %{debuginfo_files}
	%endif
done
%endif
#/with binary_extra_modules

find %{buildroot}%{_modulesdir}/%{kver_full} -type f -name '*.ko%{kmod_suffix}' | sed -e 's,^%{buildroot},,' | sort -u >> %{kernel_files}
find %{buildroot}%{_modulesdir}/%{kver_full} -type d | sed -e 's,^%{buildroot},%dir ,' | sort -u >> %{kernel_files}

# We estimate the size of the initramfs because rpm needs to take this size
# into consideration when performing disk space calculations (See rhbz#530778)
# 65 MiB is a bit more than needed, but let's be more sure that there is enought space.
# On my PC, zstd-compressed initrds take 58,5 MiB.
# Real size of the RPM package should not increase because RPM compresses the payload.
# This file is %%ghost, so the real initrd will be deleted when uninstalling this package.
dd if=/dev/zero of=%{buildroot}%{initrd_path} bs=1M count=65

%if %{build_debug}
install -m 644 vmlinux %{buildroot}%{_bootdir}/vmlinux-%{kver_full}
find %{buildroot}%{_modulesdir} -type f -name '*.debug' | sed -e 's,^%{buildroot},,' | sort -u >> %{debuginfo_files}
%endif
# End of build_debug

pushd %{target_modules}
for i in *; do
	rm -f $i/build $i/source
	ln -sf /usr/src/linux-$i $i/build
	ln -sf /usr/src/linux-$i $i/source
done

# Sniff, if we compressed all the modules, we change the stamp :(
# we really need the depmod -ae here
for i in *; do
	/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
	echo $?
done

# We used to create modules.description files which contained the
# description strings for the modules as shown by modinfo. These files
# are unlikely to be used right now, so create them (in case some old tool
# checks for their existence) but keep them empty.
for i in *; do
	touch $i/modules.description
done
popd

# Need to set extraversion to match srpm again to avoid rebuild
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
# Perf tool binary and supporting scripts/binaries
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} lib=%{_lib} install

# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
sed -i -e '1 s,^.*$,#!%{__python3},' %{buildroot}%{_prefix}/libexec/perf-core/scripts/python/exported-sql-viewer.py

# Perf man pages (note: implicit rpm magic compresses them later)
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
%endif

%if %{build_cpupower}
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
rm -f %{buildroot}%{_libdir}/*.{a,la}

%find_lang cpupower

mv cpupower.lang ../
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE50} %{buildroot}%{_unitdir}/cpupower.service
install -m644 %{SOURCE53} %{buildroot}%{_unitdir}/cpupower.path
install -m644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
install -m755 %{SOURCE52} %{buildroot}%{_bindir}/cpupower-start.sh
%endif

# Delete junk
rm -fr %{buildroot}%{_usr}/src/*/kernel-source-*

%if %{with flow_abi}
# Prefix with "zzz" to put this directory into the end of search list
# and avoid tricks with depmod configs
mkdir -p %{buildroot}/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
ln -s /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi %{buildroot}%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

# Drop hidden files
rm -f %{buildroot}%{_docdir}/kernel-5.10-generic-doc/devicetree/bindings/.yamllint

# Fix perms
%if %{build_perf}
chmod -x %{buildroot}%{_sysconfdir}/bash_completion.d/perf
chmod -x %{buildroot}%{_prefix}/lib/perf/examples/bpf/*.c
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/*.h
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/linux/*.h
chmod -x %{buildroot}%{_datadir}/doc/perf-tip/*.txt
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13737 |21mr|kernel-5.15-generic-5.15.170-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# _get_email() in %%build contains bashisms for regexping
%define	_buildshell /bin/bash

# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define	_python_bytecompile_build 0

# Probably dwz bug, on i686 only file is not packaged:
# /usr/lib/debug/usr/bin/trace-5.4.40-3.i386.debug.#dwz#.b5xuKG
# dwz compresses only debuginfo from perf, cpupower, uml,
# not the kernel itself (because it is stripped not by RPM),
# so we do not loose much by disabling it.
%global	_find_debuginfo_dwz_opts %{nil}

# Put everything into one non-standard debuginfo subpackage
# TODO: make multiple debuginfo packages coinstallable as installonlypkg,
# to achive this, there must be no conflicting files.
# Probably signing and compressing of kernel modules
# has to be moved to %%_spec_install_post.
%global	_debuginfo_subpackages %{nil}
%global	_debuginfo_template %{nil}
%undefine	_debugsource_packages

# Avoid rediffing patches like AUFS when possible
%define _default_patch_fuzz 10

# Hack: flavour and major version are variable, make %%_build_pkgcheck_* always detect and use this config
%global	_build_pkgcheck_set %(echo "%{_build_pkgcheck_set}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')
%global	_build_pkgcheck_srpm %(echo "%{_build_pkgcheck_srpm}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')

%define kernelversion 5
%define patchlevel 15
%define sublevel 170

# Release number. Increase this before a rebuild.
%define rpmrel 1
%define fullrpmrel %{rpmrel}

%define rpmtag %{disttag}

# Version defines
%define kversion %{kernelversion}.%{patchlevel}.%{sublevel}
%define kverrel %{kversion}-%{fullrpmrel}
%define tar_ver %{kernelversion}.%{patchlevel}

%ifarch %{ix86}
%define	arch_suffix	i686
%endif

%ifarch %{x86_64}
%define	arch_suffix	x86_64
%endif

%ifarch aarch64
%define	arch_suffix	arm64
%endif

%define	buildrpmrel	%{fullrpmrel}%{rpmtag}-%{arch_suffix}
%define	buildrel	%{kversion}-%{buildrpmrel}

# Add not only the build time generated key to the trusted keyring,
# but also add public keys of private ROSA's keys
%bcond_without	additional_keys

# Fail the build after "make oldconfig" to edit kernel configs
%bcond_with	fail

# User Mode Linux, https://habr.com/ru/company/itsumma/blog/459558/
# Not buildable on aarch64, rarely needed in general
%bcond_with	uml

# "Nickel" is a special brand for certified distros
%if %{mdvver} == 201905
%bcond_without	nickel
# Require kernel modules to be signed
%bcond_without	oblig_signed_modules
%else
%bcond_with nickel
%bcond_with oblig_signed_modules
%endif

%if %{mdvver} >= 201905
# Build binary out-of-tree kernel modules (experimental)
%bcond_without binary_extra_modules
# Sign kernel modules with GOST key (experimental)
%bcond_without gost_sign
%else
%bcond_with binary_extra_modules
%bcond_with gost_sign
%endif

%bcond_with ccache
%bcond_without flow_abi
%bcond_without aufs

# 1. VirtualBox is for x86_32 and x86_64 only
# 2. I do not know how to solve the problem that userspace part of VirtualBox
# will be updated ahead of these binary modules. So just off building them.
%bcond_with binary_virtualbox_host

# Shredder-kernel works only on x86_64, makes manipulations with syscalls tables,
# loading/unloading of the module failed sometimes on kernel 5.4
# and it has not been adapted for kernel 5.10 (is not buildable)
%bcond_with binary_shredder

# Compress modules with zstd (zstd is good compression and fast decompression)
%bcond_without compress_modules
# Spend more resources on compression, but make resulting size less;
# decompression speed will not be affected, but more memory will be required
# which should not a problem here (performance penalty from allocating more
# memory should not be big, I think, but I did not benchmark).
%define	zstd_cmd zstd -q --format=zstd --ultra -22
# Optionally keep using xz as compressor
#bcond_without	modxz

# Kernel flavour
%if %{with nickel}
%define	flavour	nickel
%else
%define	flavour	generic
%endif

# The full kernel version
%define	kver_full	%{kversion}-%{flavour}-%{buildrpmrel}

############################################################################

%define	top_dir_name	kernel-%{_arch}
%define	build_dir	${RPM_BUILD_DIR}/%{top_dir_name}
%define	src_dir	%{build_dir}/linux-%{tar_ver}

# Common target directories
%define	_bootdir	/boot
%define	_modulesdir	/lib/modules
%define	devel_root	/usr/src/linux-%{kver_full}
%define	initrd_path %{_bootdir}/initrd-%{kver_full}.img

# Directories needed for building
%define	temp_root	%{build_dir}/temp-root
%define	temp_boot	%{temp_root}%{_bootdir}
%define	temp_modules	%{temp_root}%{_modulesdir}
%define	temp_devel_root	%{temp_root}%{devel_root}

# Directories definition needed for installing
%define	target_boot	%{buildroot}%{_bootdir}
%define	target_modules	%{buildroot}%{_modulesdir}

# Manual control of creating and deleting keys
# "rnd" is "random" and means that a key pair is generated at build time
# and is not saved anywhere.
%define	certs_dir_rnd certs
%define	certs_signing_key_priv_rnd %{certs_dir_rnd}/signing_key_priv.key
%define	certs_signing_der %{certs_dir_rnd}/signing_key.x509
%define	certs_key_config_rnd %{certs_dir_rnd}/x509.genkey
%define	certs_public_keys %{certs_dir_rnd}/public.pem
%define	certs_verify_tmp %{certs_dir_rnd}/verify.tmp

%define	kernel_files %{_builddir}/kernel_files.list
%define	debuginfo_files %{_builddir}/debuginfo_files.list

# Append list of files generate by find-debuginfo.sh to our custom list
%global	__debug_install_post \
%{__debug_install_post} \
cat %{_builddir}/debugfiles.list >> %{debuginfo_files}

############################################################################

%if %{with binary_extra_modules}
# global instead of define to speed up things
%global nvidia_340_j %{kroko_j -p kernel-source-nvidia340 -r 340}
%global nvidia_340_n %{kroko_n -p kernel-source-nvidia340 -r 340}
%global nvidia_390_j %{kroko_j -p kernel-source-nvidia390 -r 390}
%global nvidia_390_n %{kroko_n -p kernel-source-nvidia390 -r 390}
%global nvidia_470_j %{kroko_j -p kernel-source-nvidia470 -r 470}
%global nvidia_470_n %{kroko_n -p kernel-source-nvidia470 -r 470}
%global nvidia_550_j %{kroko_j -p kernel-source-nvidia550 -r 550}
%global nvidia_550_n %{kroko_n -p kernel-source-nvidia550 -r 550}

# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
%{?!kroko_req_modules_in_kernel:%global kroko_req_modules_in_kernel(j:n:p:) %{nil}}

# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n kernel-%{kernelversion}.%{patchlevel}-%{flavour}

%endif #/binary_extra_modules

############################################################################

# Buildtime flags
%{?_without_doc: %global build_doc 0}
%{?_without_devel: %global build_devel 0}
%{?_without_debug: %global build_debug 0}
%{?_without_perf: %global build_perf 0}
%{?_without_cpupower: %global build_cpupower 0}

%{?_with_doc: %global build_doc 1}
%{?_with_devel: %global build_devel 1}
%{?_with_debug: %global build_debug 1}
%{?_with_perf: %global build_perf 1}
%{?_with_cpupower: %global build_cpupower 1}
%{?_with_modxz: %global build_modxz 0}

# Build defines
%define	build_doc	1
%define	build_devel	1
%define	build_debug	1

# Build kernel-headers package
%if %{mdvver} >= 202115
%define	build_headers	0
%else
%define	build_headers	1
%endif

# Build perf and cpupower tools
%define	build_perf	0
%define	build_cpupower	0

%if %{with compress_modules}
%if %{with modxz}
%define	kmod_suffix .xz
%else
%define	kmod_suffix .zst
%endif
%else
%define	kmod_suffix %{nil}
%endif

%if !%{build_debug}
# Disable debug rpms.
%define	_enable_debug_packages	%{nil}
%define	debug_package		%{nil}
%endif

# End of user definitions

# http://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/
%if %{with ccache}
%define	kmake KBUILD_BUILD_TIMESTAMP='' %make CC='ccache gcc' ARCH="%{arch_type}"
%else
%define	kmake %make CC='gcc' ARCH="%{arch_type}"
%endif

# There are places where parallel make don't work
%define	smake make
%ifarch %{ix86} %{x86_64}
%define	arch_type x86
%endif
%ifarch	aarch64
%define	arch_type arm64
%endif

# Parallelize xargs invocations on smp machines
%define	kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")

#
# SRC RPM description
#
Summary:	The Linux kernel
Name:		kernel-%{kernelversion}.%{patchlevel}-%{flavour}
Version:	%{kversion}
Release:	%{fullrpmrel}
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://www.kernel.org

####################################################################
#
# Sources
#
Source0:	https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.xz

# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
# Needed, because otherwise the -devel won't build correctly.
Source2:	0001-disable-mrproper-prepare-scripts-configs-in-devel-rp.patch

# TODO: Make a separate package "ksobirator" and BR it
# after testing these macros properly
Source3:	macros.ksobirator
%{load:%{SOURCE3}}

# Kernel configuration files.
Source111:	kernel-x86_64.config
Source112:	kernel-i686.config
Source113:	kernel-arm64.config

# Cpupower: the service, the config, etc.
Source50:	cpupower.service
Source51:	cpupower.config
Source52:	cpupower-start.sh
Source53:	cpupower.path

Source80:	kernel.rpmlintrc

# Additional keys that can be used to sign kernel modules
# Generated by https://abf.io/soft/kernel-keys
# Source201..206: public_key_GOST_*.pem
%{expand:%(for i in `seq 1 6`; do echo "Source$((200+${i})): public_key_GOST_${i}.pem"; done)}
# Source207..212: public_key_RSA_*.pem
%{expand:%(for i in `seq 7 12`; do echo "Source$((200+${i})): public_key_RSA_${i}.pem"; done)}

####################################################################

# Patches

# The patch to make kernel x.y.z from x.y.0.
Patch1:		https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.xz

# Patches from mainline
# none
Patch2:		kernel-5.10.93-fix-perf-build.patch

# ROSA-specific patches

# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid
# this.
Patch101:	0001-perf-skip-xmlto-validation.patch

# http://bugs.rosalinux.ru/show_bug.cgi?id=6235
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102:	0001-audit-make-it-less-verbose.patch
# atempt fix GPL-incompatible module nvidia.ko uses GPL-only symbol 'rcu_read_unlock_strict'
Patch103:	kernel-5.15-export-gpl.patch

%if %{with aufs}
# AUFS 5 from http://aufs.sourceforge.net/
Patch109:	0001-Apply-AUFS-5.patch
%endif

# For kmod() generator of RPM Provides
# Changes version of aacraid.ko
Patch111:	0001-Remove-RPM-illegal-chars-from-module-version.patch

# AltHa LSM Module
# https://www.altlinux.org/AltHa
# http://git.altlinux.org/gears/k/kernel-image-un-def.git
# TODO: known problem: https://bugzilla.altlinux.org/show_bug.cgi?id=38225
Patch201:	0001-altha.patch

# sent to upstream, https://patchwork.kernel.org/patch/11446123/
Patch302:	0001-sign-file-full-functionality-with-modern-LibreSSL.patch
# Support loading GOST-signed modules
Patch305:	0001-crypto-support-loading-GOST-signed-kernel-modules.patch
# Allow to off modules signature check dynamically
Patch306:	0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch
# Experimental patch to reduce freezes in low memory conditions
# Config values are the following:
# CONFIG_UNEVICTABLE_ACTIVEFILE=y
# CONFIG_UNEVICTABLE_ACTIVEFILE_KBYTES_LOW=102400 (100 MB)
# CONFIG_UNEVICTABLE_ACTIVEFILE_KBYTES_MIN=51200 (50 MB)
# + zswap is enabled by default
# 50 MB is default value of min_filelist_kbytes in Chromium OS
# https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/545e2917dbd863760a51379de8c26631e667c563%5E!/
# 256 and 512 MB values are too big as a distro default because many systems have 512MB-2GB RAM
# TODO: tune 50 and 100 MB to some not random and mathemetically explainable values
# https://www.linux.org.ru/news/kernel/16052362?cid=16075323
Patch307:	le9pf.diff
Patch308:	0001-Revert-kallsyms-unexport-kallsyms_lookup_name-and-ka.patch

# Support sound on notebook Aquarius NS685U R11 (https://linux-hardware.org/?probe=339dc3db60)
# First 2 patches are from Aquarius.
# The next ones are cherry-picked commits from v5.16+, all commits except 19aed2d6cd from:
# https://github.com/torvalds/linux/commits/0066f1b0e/sound/soc/intel/boards/sof_es8336.c
# Also needed to make sound work:
# 1) alsa-ucm-conf (SRPM alsa-lib) (ucm2/Intel/sof-essx8336/HiFi.conf) also has to be patched
# https://abf.io/import/alsa-lib/commit/0cc7a15f10ef20dbedba94c14ef614a8c64c1882
# 2) firmware sof-cml-es8336.tplg is added into alsa-sof-firmware
# https://abf.io/import/alsa-sof-firmware/commit/6fa57e82492d3ddede7af7b78aeeb5a0c230db4b
Patch0400: 0400-ASoC-es8316-Add-power-management.patch
Patch0401: 0401-ASoC-es8316-Use-increased-GPIO-debounce-time.patch
Patch0402: 0402-ASoC-Intel-add-machine-driver-for-SOF-ES8336.patch
Patch0403: 0403-ASoC-Intel-sof_es8336-add-quirk-for-Huawei-D15-2021.patch
Patch0404: 0404-ASoC-Intel-sof_es8336-make-gpio-optional.patch
Patch0405: 0405-ASoC-Intel-sof_es8336-get-codec-device-with-ACPI-ins.patch
Patch0406: 0406-ASoC-Intel-Revert-ASoC-Intel-sof_es8336-add-quirk-fo.patch
Patch0407: 0407-ASoC-Intel-sof_es8336-use-NHLT-information-to-set-dm.patch
Patch0408: 0408-ASoC-Intel-sof_es8336-log-all-quirks.patch
Patch0409: 0409-ASoC-Intel-sof_es8336-move-comment-to-the-right-plac.patch
Patch0410: 0410-ASoC-Intel-sof_es8336-add-support-for-JD-inverted-qu.patch
Patch0411: 0411-ASoC-Intel-sof_es8336-extend-machine-driver-to-suppo.patch
Patch0412: 0412-ASoC-Intel-sof_es8336-add-cfg-dmics-component-for-UC.patch
Patch0413: 0413-ASoC-Intel-sof_es8336-simplify-speaker-gpio-naming.patch
Patch0414: 0414-ASoC-Intel-sof_es8336-support-a-separate-gpio-to-con.patch
Patch0415: 0415-ASoC-Intel-sof_es8336-add-a-quirk-for-headset-at-mic.patch
Patch0416: 0416-ASoC-Intel-sof_es8336-Add-a-quirk-for-Huawei-Mateboo.patch
Patch0417: 0417-ASoC-Intel-sof_es8336-Fix-GPIO-quirks-set-via-module.patch
Patch0418: 0418-ASoC-Intel-sof_es8336-ignore-GpioInt-when-looking-fo.patch
Patch0419: 0419-ASoC-Intel-sof_es8336-add-support-for-HDMI_In-captur.patch
Patch0420: 0420-ASoC-Intel-sof_es8336-reset-the-num_links-during-pro.patch
Patch0421: 0421-ASoC-Intel-sof_es8336-remove-hard-coded-SSP-selectio.patch
Patch0422: 0422-ASoC-Intel-fix-sof_es8336-probe.patch
Patch0423: 0423-sound-backport-firmware-matches.patch
# TODO: upstreamize quirks and fixes in alsa ucm2
Patch0424: 0424-ASoC-Intel-sof_es8336-Add-more-quirks-for-Russian-ha.patch
Patch0425: 0425-ASoC-Intel-sof_es8336-Add-a-quirk-for-Aquarius-NS685.patch
# Additional backports to make previous patches work/compile
Patch0426: 0426-ASoC-SOF-Intel-hda-report-SSP-link-mask-to-machine-d.patch
Patch0427: 0427-ASoC-Intel-soc-acpi-quirk-topology-filename-dynamica.patch
Patch0428: 0428-ASoC-soc-acpi-fix-kernel-doc-descriptor.patch
Patch0429: 0429-ASoC-soc-acpi-add-information-on-I2S-TDM-link-mask.patch
Patch0430: 0430-ALSA-hda-Fill-gaps-in-NHLT-endpoint-interface.patch
Patch0431: 0431-ASoC-SOF-avoid-casting-const-attribute-away.patch
Patch0432: 0432-ALSA-intel-dsp-config-add-more-ACPI-HIDs-for-ES83x6-.patch
Patch0433: 0433-ASoC-soc-acpi-add-comp_ids-field-for-machine-driver-.patch
Patch0434: 0434-ALSA-hda-intel-dsp-config-update-AlderLake-PCI-IDs.patch
Patch0435: 0435-ASoC-Intel-soc-acpi-Add-entry-for-sof_es8336-in-ADL-.patch
Patch0436: 0436-ALSA-intel-nhlt-add-helper-to-detect-SSP-link-mask.patch

# Support SoC with Baikal-M (ARMv8) CPU
# http://git.altlinux.org/gears/k/kernel-image-std-def.git
# https://github.com/asheplyakov/linux/commits/baikalm-5.15.y-next (many thanks!)
Patch0600: 0600-drm-panfrost-initial-dual-core-group-GPUs-support.patch
Patch0601: 0601-net-stmmac-inital-support-of-Baikal-T1-M-SoCs-GMAC.patch
Patch0602: 0602-dt-bindings-dwmac-Add-bindings-for-Baikal-T1-M-SoCs.patch
Patch0603: 0603-net-stmmac-custom-mdio-reset-for-some-Baikal-M-board.patch
Patch0604: 0604-net-dwmac-baikal-added-compatible-strings.patch
Patch0605: 0605-hwmon-bt1-pvt-access-registers-via-pvt_-readl-writel.patch
Patch0606: 0606-hwmon-bt1-pvt-define-pvt_readl-pvt_writel-for-Baikal.patch
Patch0607: 0607-hwmon-bt1-pvt-adjusted-probing-for-Baikal-M-SoC.patch
Patch0608: 0608-hwmon-bt1-pvt-added-compatible-baikal-pvt.patch
Patch0609: 0609-clk-added-Baikal-M-clock-management-unit-driver.patch
Patch0610: 0610-cpufreq-dt-don-t-load-on-Baikal-M-SoC.patch
Patch0611: 0611-usb-dwc3-of-simple-added-compatible-string-for-Baika.patch
Patch0612: 0612-arm64-Enable-armv8-based-Baikal-M-SoC-support.patch
Patch0613: 0613-drm-bridge-New-bridge-driver-stdp4028.patch
Patch0614: 0614-drm-added-Baikal-M-SoC-video-display-unit-driver.patch
Patch0615: 0615-baikal_vdu-et101-display-port-support.patch
Patch0616: 0616-dw-hdmi-ahb-audio-support-Baikal-M-SoC.patch
Patch0617: 0617-ALSA-hda-Baikal-M-SoC-support.patch
Patch0618: 0618-Added-TF307-TF306-board-management-controller-driver.patch
Patch0619: 0619-rejected-serial-8250_dw-verify-clock-rate-in-dw8250_.patch
Patch0620: 0620-drm-panfrost-forcibly-set-dma-coherent-on-Baikal-M.patch
Patch0621: 0621-drm-panfrost-disable-devfreq-on-Baikal-M.patch
Patch0622: 0622-pm-disable-all-sleep-states-on-Baikal-M-based-boards.patch
Patch0623: 0623-arm64-stub-fixed-secondary-cores-boot-on-Baikal-M-So.patch
Patch0624: 0624-efi-rtc-avoid-calling-efi.get_time-on-Baikal-M-SoC.patch
Patch0625: 0625-net-fwnode_get_phy_id-consider-all-compatible-string.patch
Patch0626: 0626-BROKEN-dwc-i2s-support-Baikal-M-SoC.patch
Patch0627: 0627-input-added-TF307-serio-PS-2-emulator-driver.patch
Patch0628: 0628-arm64-added-Baikal-M-SoC-and-TF307-board-device-tree.patch
Patch0629: 0629-arm64-device-tree-baikal-mark-GPU-as-dma-coherent.patch
Patch0630: 0630-arm64-device-tree-Baikal-M-fixed-PHY-binding-descrip.patch
Patch0631: 0631-arm64-device-tree-Baikal-M-fixed-gpio-alias.patch
Patch0632: 0632-arm64-device-tree-Baikal-M-fixed-GPU-opp_table.patch
Patch0633: 0633-arm64-device-tree-Baikal-M-fixed-CPUs-opp_table.patch
Patch0634: 0634-arm64-defconfig-for-Baikal-M-support-testing.patch

# Disable AutoReq
AutoReq:	0
# but keep autoprov for kmod(xxx)
AutoProv:	1

BuildRequires:	bash
BuildRequires:	bc
BuildRequires:	binutils
BuildRequires:	bison
BuildRequires:	bzip2
%if %{with ccache}
BuildRequires:	ccache
%endif
BuildRequires:	flex
BuildRequires:	elfutils-devel
BuildRequires:	gcc
# ./scripts/mkcompile_h
BuildRequires:	hostname
BuildRequires:	kmod-compat
BuildRequires:	rsync
%if %{with compress_modules}
%if %{with modxz}
BuildRequires:	xz
%else
BuildRequires:	zstd
%endif
%endif
%ifarch aarch64
BuildRequires:	uboot-tools
%endif
BuildRequires:	kmod-devel
%ifarch x86_64 aarch64
BuildRequires:	numa-devel
%endif
%if %{with uml}
BuildRequires:	vde-devel
%endif
# For power tools
BuildRequires:	pkgconfig(ncurses)

# For perf, cpufreq and all other tools
# For cpupower
%if %{build_cpupower}
BuildRequires:	pciutils-devel
%endif
# For perf
%if %{build_perf}
BuildRequires:	asciidoc
BuildRequires:	perl-ExtUtils-Embed
BuildRequires:	python3
BuildRequires:	xmlto
BuildRequires:	audit-devel
BuildRequires:	binutils-devel
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	libunwind-devel
BuildRequires:	newt-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(babeltrace)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(zlib)
%endif

# (To generate keys)
# LibreSSL has GOST support without editing openssl.cnf
# or dlopen()-ing external library
BuildRequires:	libressl
BuildRequires:	libressl-devel
# To verify signatures (find, xargs, hexdump)
BuildRequires:	findutils
BuildRequires:	util-linux

%if %{with binary_extra_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-source-rtl8821ce
BuildRequires:	kernel-source-rtl8821cu
BuildRequires:	kernel-source-rtl88x2bu
BuildRequires:	kernel-source-rtl8812au
BuildRequires:	kernel-source-rtl8821au
BuildRequires:	kernel-source-rtl8814au
BuildRequires:	kernel-source-rtk_btusb
BuildRequires:	kernel-source-rtl8723au
BuildRequires:	kernel-source-rtl8188gu
BuildRequires:	kernel-source-rtl8723bu
BuildRequires:	kernel-source-rtl8723ds
BuildRequires:	kernel-source-rtl8723du
BuildRequires:	kernel-source-rtl8852au
BuildRequires:	kernel-source-rtl8192du
BuildRequires:	kernel-source-rtw89
BuildRequires:	kernel-source-rtw88
# Broadcom-wl and nvidia contain a proprietary blob which is only for x86
%ifarch %{ix86} %{x86_64}
BuildRequires:	kernel-source-broadcom-wl
BuildRequires:	kernel-source-nvidia340
%endif
# Nvidia470+ are x86_64 only (maybe aarch64 will be also packaged later)
%ifarch %{x86_64}
BuildRequires:	kernel-source-nvidia390
BuildRequires:	kernel-source-nvidia470
BuildRequires:	kernel-source-nvidia550
%endif
BuildRequires:	kernel-source-tripso
BuildRequires:	kernel-source-ipt-so
%if %{with binary_virtualbox_host}
BuildRequires:	kernel-source-virtualbox
%endif
BuildRequires:	kernel-source-v4l2loopback
%if %{with binary_shredder}
BuildRequires: kernel-source-shredder-kernel
%endif
# Rosa-test-suite is maintained in certified branches only nlkm, memfreetest, pcietest
%if %{with nickel}
BuildRequires:	kernel-source-rosa-test-suite
%endif
%endif
# End of with binary_extra_modules

Provides:	kernel = %{EVRD}
Provides:	kernel-%{flavour} = %{EVRD}
Provides:	kernel-abi(%{kver_full}) = %{EVRD}
# Dnf config-manager --dump | grep installonly
Provides:	installonlypkg(kernel) = %{EVRD}.image
Provides:	installonlypkg(kernel) = %{EVRD}.modules

# >= because of added support of zstd-compressed modules
Requires(posttrans):	dracut >= 053-0.git5eb736.5
Requires(posttrans):	kmod >= 28-3

# Need for rebuild dkms drivers
Recommends:	(%{name}-devel%{_isa} = %{EVRD} if dkms)

# Usually necessary, but sometimes user may want to not install them
Recommends:	crda
Recommends:	linux-firmware
Recommends:	microcode
# Set BFQ as default scheduler for HDDs
# https://www.phoronix.com/scan.php?page=article&item=linux-50hdd-io
Recommends:	udev-rules-ioschedulers
Recommends:	wireless-regdb

%if %{with flow_abi}
Requires:	kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

# XXX temporary hack to upgrade from kernel-headers 1:5.4
%if %{build_headers}
Recommends:	kernel-headers = %{EVRD}
%endif

%if %{with binary_extra_modules}
%ifarch %{ix86} %{x86_64}
%kroko_req_modules_in_kernel -j %{nvidia_340_j} -n %{nvidia_340_n} -p %{kver_full}
%endif
%ifarch %{x86_64}
%kroko_req_modules_in_kernel -j %{nvidia_390_j} -n %{nvidia_390_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_470_j} -n %{nvidia_470_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_550_j} -n %{nvidia_550_n} -p %{kver_full}
%endif
%endif

%description
The kernel package contains the Linux kernel (vmlinuz), the core of your
operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.

%posttrans
# update information about modules, useful if kernel-module* packages were
# installed in one transaction with this kernel (%%transfiletrigger* will run later)
depmod -a %{kver_full}
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd
# that is created then will be non-functional. But when the user installs
# kernel-<...> package, that defunct initrd will be replaced with a working
# one here.
dracut -f %{initrd_path} %{kver_full}

# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2

%transfiletriggerin -- %{_modulesdir}/%{kver_full}
# Detect all modules, including ones inside kernel-module* packages
if grep -qE '/.*\.ko(|\..*)' ; then
	depmod -a %{kver_full}
fi

%transfiletriggerpostun -- %{_modulesdir}/%{kver_full}
# Handle e.g. removal of kernel-module* packages
# List of files is not available here (?)
depmod -a %{kver_full}

%files -f %{kernel_files}
%{_bootdir}/System.map-%{kver_full}
%{_bootdir}/symvers-%{kver_full}.*
%{_bootdir}/config-%{kver_full}
%{_bootdir}/vmlinuz-%{kver_full}
%ghost %{initrd_path}
%ifarch %{armx}
%{_bootdir}/dtb-%{kver_full}
%endif
%{_modulesdir}/%{kver_full}/modules.*
%if %{with flow_abi}
%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
%if %{with binary_extra_modules}
# 8821ce.ko.debug will not be excluded and will be in the main debug subpackage
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821ce.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821cu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/88x2bu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8812au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8814au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/bluetooth/rtk_btusb.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8723au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8188gu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8723bu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8723ds.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8723du.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8852au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8192du.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/realtek/rtw88p
%ifarch %{ix86} %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/wl.ko%{kmod_suffix}
%endif
%if %{with binary_shredder}
%exclude %{_modulesdir}/%{kver_full}/kernel/extra/shredder-kernel.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/media/v4l2loopback.ko%{kmod_suffix}
%if %{with binary_virtualbox_host}
# vbox host modules may be built here (vboxnetflt vboxnetadp vboxdrv vboxpci)
# vbox guest modules are in the mainline kernel now (vboxvideo vboxguest vboxsf)
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/vbox*.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_TRIPSO.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_so.ko%{kmod_suffix}
%if %{with nickel}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/nlkm.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/memfreetest.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/pcietest.ko%{kmod_suffix}
%endif
%endif
# End of with binary_extra_modules

############################################################################

%if %{build_devel}
%package devel
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	glibc-devel
Requires:	ncurses-devel
Requires:	gcc
Requires:	make
Requires:	perl
Requires:	%{name} = %{EVRD}
Provides:	kernel-devel = %{kverrel}
Provides:	kernel-%{flavour}-devel = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.devel

# Have dkms updated/installed before the kernel, scriptlet here checks if dkms exists
OrderWithRequires(post):	dkms
# Try to remove the main kernel package after removing this devel package
# because there may be dkms-built kernel modules inside directories owned
# by the main package, try to get rid of such files before RPM starts to
# deal with directories owned in the main package
# (note that the devel package does not explicitly require the main package,
# there is no need to do so, a kernel module may be built using just the devel part).
OrderWithRequires(postun): %{name} = %{EVRD}

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

%description devel
This package contains the kernel files (headers and build tools) that should
be enough to build additional drivers for use with %{name}.


%post devel
if command -v dkms_autoinstaller >/dev/null 2>&1; then
	dkms_autoinstaller start %{kver_full}
fi


%preun devel
# If any DKMS modules with REMAKE_INITRD=yes in their configs have been
# uninstalled, initrd has been regenerated for the given kernel. However,
# the kernel itself might have been uninstalled before, so that (defunct)
# initrd image files would be left behind. Remove them if the kernel itself
# is no longer installed. Should work if they are uninstalled in parallel
# too.
if ! test -f /boot/vmlinuz-%{kver_full}; then
	rm -f /boot/initrd-%{kver_full}.img
	rm -f /boot/initrd-%{kver_full}_old.img
fi

if ! command -v dkms >/dev/null 2>&1; then exit 0; fi

for ii in $(/usr/sbin/dkms status -k %{kver_full} | awk '{ print $1 $2; }'); do
	mod=$(echo $ii | awk -v FS=',' '{ print $1; }')
	ver=$(echo $ii | awk -v FS=',' '{ print $2; }')
	/usr/sbin/dkms --rpm_safe_upgrade uninstall -m $mod -v $ver -k %{kver_full} || :
done


%files devel
%{devel_root}/Documentation
%dir %{devel_root}
%dir %{devel_root}/arch
%dir %{devel_root}/include
%{devel_root}/arch/um
%{devel_root}/arch/x86
%{devel_root}/arch/arm
%{devel_root}/arch/arm64
%{devel_root}/block
%{devel_root}/certs
%{devel_root}/crypto
%{devel_root}/drivers
%{devel_root}/fs
%{devel_root}/include/soc
%{devel_root}/include/acpi
%{devel_root}/include/asm-generic
%{devel_root}/include/clocksource
%{devel_root}/include/config
%{devel_root}/include/crypto
%{devel_root}/include/drm
%{devel_root}/include/dt-bindings
%{devel_root}/include/generated
%{devel_root}/include/keys
%{devel_root}/include/kvm
%{devel_root}/include/kunit
%{devel_root}/include/linux
%{devel_root}/include/math-emu
%{devel_root}/include/media
%{devel_root}/include/memory
%{devel_root}/include/misc
%{devel_root}/include/net
%{devel_root}/include/pcmcia
%{devel_root}/include/ras
%{devel_root}/include/rdma
%{devel_root}/include/scsi
%{devel_root}/include/sound
%{devel_root}/include/target
%{devel_root}/include/trace
%{devel_root}/include/uapi
%{devel_root}/include/vdso
%{devel_root}/include/video
%{devel_root}/include/xen
%{devel_root}/init
%{devel_root}/ipc
%{devel_root}/io_uring
%{devel_root}/kernel
%{devel_root}/lib
%{devel_root}/mm
%{devel_root}/net
%{devel_root}/samples
%{devel_root}/scripts
%{devel_root}/security
%{devel_root}/sound
%{devel_root}/tools
%{devel_root}/usr
%{devel_root}/virt
%{devel_root}/.config
%{devel_root}/Kbuild
%{devel_root}/Kconfig
%{devel_root}/Makefile
%{devel_root}/Module.symvers
%{devel_root}/arch/Kconfig
%{_modulesdir}/%{kver_full}/build
%{_modulesdir}/%{kver_full}/source
%endif
# End of build_devel

############################################################################

%if %{build_debug}
%package debuginfo
Summary:	Debuginfo for %{name}
Group:		Development/Debug
Provides:	kernel-debug = %{kverrel}
AutoReq:	0
AutoProv:	0

%description debuginfo
This package contains the files with debuginfo for %{name}.

%files debuginfo -f %{debuginfo_files}
%{_bootdir}/vmlinux-%{kver_full}
%endif
# End of build_debug

############################################################################

%if %{build_doc}
%package doc
Summary:	Various documentation bits found in the kernel source
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files from the kernel source.

%files doc
%doc linux-%{tar_ver}/Documentation/*
%endif

############################################################################

%if %{build_perf}
%package -n perf
Summary:	perf tool and the supporting documentation
Group:		System/Kernel and hardware

%description -n perf
The package contains perf tool and the supporting documentation.

%files -n perf
%{_bindir}/perf
%ifarch x86_64
%{_bindir}/perf-read-vdso32
%endif
%{_bindir}/trace
%{_includedir}/perf/perf_dlfilter.h
%dir %{_prefix}/libexec/perf-core
%dir %{_libdir}/traceevent
%dir %{_libdir}/traceevent/plugins
%{_libdir}/libperf-jvmti.so
%{_libdir}/traceevent/plugins/*
%{_prefix}/libexec/perf-core/*
%{_mandir}/man[1-8]/perf*
%{_sysconfdir}/bash_completion.d/perf
%{_datadir}/perf-core/strace/groups/*
%{_datadir}/doc/perf-tip/*.txt
/usr/lib/perf/examples/bpf/*
/usr/lib/perf/include/bpf/*
%endif

############################################################################

%if %{build_cpupower}
%package -n cpupower

Summary:	The cpupower tools
Group:		System/Kernel and hardware

%description -n cpupower
The cpupower tools.

%post -n cpupower
if [ $1 -ge 0 ]; then
# Do not enable/disable cpupower.service directly, because it should start
# when cpupower.path triggers it.
	/bin/systemctl enable cpupower.path >/dev/null 2>&1 || :
	/bin/systemctl start cpupower.path >/dev/null 2>&1 || :
fi

%preun -n cpupower
if [ $1 -eq 0 ]; then
	/bin/systemctl --no-reload disable cpupower.path > /dev/null 2>&1 || :
	/bin/systemctl stop cpupower.path > /dev/null 2>&1 || :
fi

%files -n cpupower -f cpupower.lang
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
%{_bindir}/cpupower
%{_bindir}/cpupower-start.sh
%{_libdir}/libcpupower.so.0
%{_libdir}/libcpupower.so.0.0.1
%{_unitdir}/cpupower.service
%{_unitdir}/cpupower.path
%{_datadir}/bash-completion/completions/cpupower
%{_mandir}/man[1-8]/cpupower*

############################################################################

%package -n cpupower-devel
Summary:	Development files for cpupower
Group:		Development/Kernel
Requires:	cpupower = %{EVRD}
Conflicts:	%{_lib}cpufreq-devel

%description -n cpupower-devel
This package contains the development files for cpupower.

%files -n cpupower-devel
%{_libdir}/libcpupower.so
%{_includedir}/cpufreq.h
%{_includedir}/cpuidle.h
%endif

############################################################################

%if %{build_headers}
%package -n kernel-headers
Summary:	Linux kernel header files mostly used by your C library
Group:		System/Kernel and hardware
Provides:	linux-userspace-headers = %{EVRD}
Provides:	kernel-release-headers = %{EVRD}

%description -n kernel-headers
C header files from the Linux kernel. The header files define
structures and constants that are needed for building most
standard programs, notably the C library.

This package is not suitable for building kernel modules, you
should use the 'kernel-devel' package instead.

%files -n kernel-headers
%{_includedir}/*
# Don't conflict with cpupower-devel
%if %{build_cpupower}
%exclude %{_includedir}/cpufreq.h
%exclude %{_includedir}/cpuidle.h
%endif
%if %{build_perf}
%exclude %{_includedir}/perf/perf_dlfilter.h
%endif
%endif

############################################################################

%if %{with uml}
%package uml
Summary:	User Mode Linux binary
Group:		System/Kernel and hardware
Provides:	kernel-uml = %{kverrel}
Provides:	kernel-uml-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.uml

%description uml
User Mode Linux binary.
Stripped, debug is in %{name}-debuginfo.

%files uml
%{_bindir}/linux-uml-%{kver_full}

#-----------------------------------------------------------------------------

%package uml-modules
Summary:	User Mode Linux (UML) kernel modules
Group:		System/Kernel and hardware
Provides:	kernel-uml-modules = %{kverrel}
Provides:	kernel-uml-modules-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel-module) = %{EVRD}.uml

%description uml-modules
User Mode Linux (UML) kernel modules:
- not compressed;
- not stripped;
- signed.

%files uml-modules
/lib/modules-uml/%{kver_full}

%endif
# End of uml

#-----------------------------------------------------------------------------

###############################
# Extra modules package definitions

%if %{with binary_extra_modules}
%ksob_mk_module_pkg -n 8821ce -s net/wireless -r rtl8821ce-blacklist
%ksob_mk_module_pkg -n 8821cu -s net/wireless
# add "-r rtl88x2bu-blacklist" in 5.18+!!!
%ksob_mk_module_pkg -n 88x2bu -s net/wireless
# "-r xxx-blacklist" was not added for modules bellow because
# blacklisted modules have not appeared in upstream yet
%ksob_mk_module_pkg -n 8812au -s net/wireless
# for RTL8811AU and RTL8821AU
%ksob_mk_module_pkg -n 8821au -s net/wireless
%ksob_mk_module_pkg -n 8814au -s net/wireless
%ksob_mk_module_pkg -n rtk_btusb -s drivers/bluetooth -r rtk_btusb-firmware
%ksob_mk_module_pkg -n 8723au -s net/wireless
%ksob_mk_module_pkg -n 8188gu -s net/wireless
%ksob_mk_module_pkg -n 8723bu -s net/wireless
%ksob_mk_module_pkg -n 8723ds -s net/wireless
%ksob_mk_module_pkg -n 8723du -s net/wireless
%ksob_mk_module_pkg -n 8852au -s net/wireless
%ksob_mk_module_pkg -n 8192du -s net/wireless
%ksob_mk_modules_pkg -n rtw89 -s net/wireless/realtek/rtw89p
%ksob_mk_modules_pkg -n rtw88 -s net/wireless/realtek/rtw88p -r rtw88-firmware

%ifarch %{ix86} %{x86_64}
%ksob_mk_module_pkg -n wl -s net/wireless -r broadcom-wl-aliases
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_340_j} -n %{nvidia_340_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%endif
%ifarch %{x86_64}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_390_j} -n %{nvidia_390_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_470_j} -n %{nvidia_470_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_550_j} -n %{nvidia_550_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix} -o %{quote:510 515 520 525}
%endif
%ksob_mk_module_pkg -n xt_TRIPSO -s net -r tripso
%ksob_mk_module_pkg -n xt_so -s net -r ipt-so
%ksob_mk_module_pkg -n v4l2loopback -s drivers/media -r v4l2loopback

%if %{with binary_shredder}
%ksob_mk_module_pkg -n shredder-kernel -s extra -r rosa-shredder-user
%endif

#-----------------------------------------------------------------------------

###############
# Virtualbox host

%if %{with binary_virtualbox_host}
%ksob_mk_module_pkg -n vboxnetflt -s misc
%ksob_mk_module_pkg -n vboxnetadp -s misc
%ksob_mk_module_pkg -n vboxdrv -s misc
%ksob_mk_module_pkg -n vboxpci -s misc

# A package which will pull all those modules
%package -n kernel-modules-virtualbox-host-%{ksob_kernel}
Summary:	Meta package to pull VirtualBox host kernel modules for kernel-%{flavour}-%{kernelversion}.%{patchlevel}
Group:		System/Kernel and hardware
Requires:	kernel-module-vboxnetflt-%{ksob_kernel}
Requires:	kernel-module-vboxnetadp-%{ksob_kernel}
Requires:	kernel-module-vboxdrv-%{ksob_kernel}
Requires:	kernel-module-vboxpci-%{ksob_kernel}

%description -n kernel-modules-virtualbox-host-%{ksob_kernel}
Meta package to pull VirtualBox host kernel modules for %{name}.

%files -n kernel-modules-virtualbox-host-%{ksob_kernel}
# empty
%endif
#End of ifarch x86

#-----------------------------------------------------------------------------

%if %{with nickel}
%ksob_mk_module_pkg -n nlkm -s misc
%ksob_mk_module_pkg -n memfreetest -s misc
%ksob_mk_module_pkg -n pcietest -s misc
%endif

%endif
# End of binary_extra_modules

#################################################################

%if %{with flow_abi}
%package -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
Summary:	Directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x
Group:		System/Kernel and hardware

%description -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
This package contains a directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x.
Some vendors provide binary-only kernel modules. They can put them into /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi.
kmod tools will find them for kernels 5.4.x of "generic" and "nickel" flavours
but there is no guarantee that these modules will load and work correctly on
newer or older kernels then the ones they were build against.

We call this "flow ABI" because most ABIs are not changed between %{kernelversion}.%{patchlevel}.x releases,
but there are no specific guarantees. ABI may evolve and change.
We highly recommend to use DKMS and build third-party kernel modules from source for every kernel!
This package does nothing, just owns a directory for third-party binary kernel modules.

%files -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
# End of flow_abi

################################################

%prep
# Avoid accidental merge
%if 0%{?rpm5}
%{error:Package structure is for dnf, not for urpmi!}
%endif

%setup -q -n %{top_dir_name} -c
%if %{with uml}
cp -r %{src_dir} %{src_dir}.uml
%endif
cd %{src_dir}

%autopatch -p1

#
# Setup Begin
#

##################################
# Kernel configuration

echo "Creating the kernel configuration file."

# Configs
cp %{SOURCE111} .
cp %{SOURCE112} .
cp %{SOURCE113} .
cp kernel-%{arch_suffix}.config .config

touch %{build_dir}/.config.append

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
# Wipe all .gitignore/.get_maintainer.ignore files
find . -name "*.g*ignore" -delete

# Disable debug info if requested (enabled by default)
%if ! %build_debug
sed -i -e '/CONFIG_DEBUG_INFO/d' -e '/CONFIG_GDB_SCRIPTS/d' .config
echo '# CONFIG_DEBUG_INFO is not set' >> %{build_dir}/.config.append
echo '# CONFIG_GDB_SCRIPTS is not set' >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_FORCE/d' .config
%if %{with oblig_signed_modules}
# Disallow loading not signed modules
# But 0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch allows to override this in cmdline
echo CONFIG_MODULE_SIG_FORCE=y >> %{build_dir}/.config.append
%else
echo CONFIG_MODULE_SIG_FORCE=n >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_KEY/d' .config
# Set path to the key that will be generated later by openssl/libressl
echo CONFIG_MODULE_SIG_KEY=\"%{certs_signing_key_priv_rnd}\" >> %{build_dir}/.config.append

# Set path to one PEM file with all keys that the kernel must trust
sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/d' .config
echo CONFIG_SYSTEM_TRUSTED_KEYS=\"%{certs_public_keys}\" >> %{build_dir}/.config.append

# Memory wiping
# Introduced in kernel 5.3 by commit 6471384af2a6530696fc0203bafe4de41a23c9ef
# Estimated performance impact is described in the commit
# "Fill newly allocated pages and heap objects with zeroes."
# To enable, add to cmdline: init_on_alloc=1
sed -i '/CONFIG_INIT_ON_ALLOC_DEFAULT_ON/d' .config
echo CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n >> %{build_dir}/.config.append
# "Fill freed pages and heap objects with zeroes"
# To disable, add to cmdline: init_on_free=0
sed -i '/CONFIG_INIT_ON_FREE_DEFAULT_ON/d' .config
%if %{with nickel}
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=y >> %{build_dir}/.config.append
%else
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=n >> %{build_dir}/.config.append
%endif
# Here enabling only either only init_on_free or only init_on_alloc
# makes sense; init_on_alloc is not about protecting information.

# To load kernel keyring in UML
for i in STREEBOG SHA1 SHA256 SHA512 ECRDSA RSA ; do
	if ! grep -q "^CONFIG_CRYPTO_${i}=y$" .config; then
		sed -i "/CONFIG_CRYPTO_${i}/d" .config
		echo "CONFIG_CRYPTO_${i}=y" >> %{build_dir}/.config.append
	fi
done

cat %{build_dir}/.config.append >> .config

##################
# End of kernel config


# Store the config file in the appropriate directory.
CONFIG_DIR=arch/%{arch_type}/configs
mkdir -p "${CONFIG_DIR}"

cfg_file=arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour}

make ARCH=%{arch_type} oldconfig
# When it is needed to edit kernel configs, run:
# abf fetch
# rpmbuild --define "_sourcedir $PWD" --with=fail -bb kernel.spec
# and then work with the config in the buildroot with applied patches etc.
%{?_with_fail:exit 1}
mv .config ${cfg_file}
echo "Created ${cfg_file}."

# Make sure the kernel has the sublevel we know it has...
LC_ALL=C sed -ri "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
find . -name '.get_maintainer.ignore' | %kxargs rm -f

# Versionize python shebang (#!/usr/bin/env python -> #!/usr/bin/python3) in scripts
sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},' \
	scripts/bloat-o-meter \
	scripts/checkkconfigsymbols.py \
	scripts/diffconfig \
	scripts/jobserver-exec \
	scripts/show_delta \
	scripts/spdxcheck.py \
	scripts/clang-tools/gen_compile_commands.py \
	scripts/clang-tools/run-clang-tools.py \
	scripts/tracing/draw_functrace.py \
	tools/hv/vmbus_testing \
	tools/kvm/kvm_stat/kvm_stat \
	tools/perf/python/tracepoint.py \
	tools/perf/python/twatch.py \
	tools/power/pm-graph/bootgraph.py \
	tools/power/pm-graph/sleepgraph.py \
	tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py \
	tools/testing/kunit/kunit.py \
	tools/testing/kunit/kunit_tool_test.py \
	tools/testing/selftests/bpf/test_offload.py \
	tools/testing/selftests/drivers/net/mlxsw/sharedbuffer_configuration.py \
	tools/testing/selftests/exec/binfmt_script \
	tools/testing/selftests/net/devlink_port_split.py \
	tools/testing/selftests/tc-testing/tdc.py \
	tools/testing/selftests/tc-testing/tdc_batch.py \
	tools/testing/selftests/tc-testing/tdc_multibatch.py \
	Documentation/sphinx/kernel_include.py \
	Documentation/sphinx/maintainers_include.py \
	Documentation/sphinx/rstFlatTable.py \
	Documentation/target/tcm_mod_builder.py

# Drop env from bash scripts
sed -i '1 s,^#!.*env .*,#!%{_bindir}/bash,' scripts/config

# Drop env from perl scripts
sed -i '1 s,^#!.*env .*,#!%{_bindir}/perl,' \
	scripts/bootgraph.pl \
	scripts/checkincludes.pl \
	scripts/checkkconfigsymbols.py \
	scripts/checkpatch.pl \
	scripts/checkstack.pl \
	scripts/checkversion.pl \
	scripts/cleanfile \
	scripts/cleanpatch \
	scripts/documentation-file-ref-check \
	scripts/export_report.pl \
	scripts/extract-module-sig.pl \
	scripts/extract-sys-certs.pl \
	scripts/extract_xc3028.pl \
	scripts/get_abi.pl \
	scripts/get_dvb_firmware \
	scripts/get_maintainer.pl \
	scripts/headerdep.pl \
	scripts/headers_check.pl \
	scripts/kernel-doc \
	scripts/leaking_addresses.pl \
	scripts/markup_oops.pl \
	scripts/profile2linkerlist.pl \
	scripts/recordmcount.pl \
	scripts/split-man.pl \
	scripts/stackdelta \
	scripts/dtc/dt_to_config \
	scripts/kconfig/streamline_config.pl \
	tools/testing/ktest/compare-ktest-sample.pl \
	tools/testing/selftests/kselftest/prefix.pl \
	Documentation/sphinx/parse-headers.pl

############################################################################

%build
# Ensure that build time generated private keys don't get published
# as e.g. "RPM build root" on ABF!
# Note that ABF sends SIGKILL to rpm-build.sh when the build is terminated;
# in this case trap will not work, but RPM build root also will not be
# saved because rpm-build.sh saves it, but it is SIGKILLed.
# For best security we could store private keys in RAM (not reachable from
# filesystem, so not in /tmp!) and override sth like fopen() by LD_PRELOAD
# to give the content of keys from RAM when a virtual address of a key file
# is accessed, but currently I don't know how to implement this (TODO: ).
_cleanup(){
# Show resulting kernel public keys for debugging
	cat "%{src_dir}/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}/%{certs_dir_rnd}"
%if %{with uml}
	cat "%{src_dir}.uml/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}.uml/%{certs_dir_rnd}"
%endif
}
# Make a trap to delete keys even if %%build fails in the middle
trap "_cleanup" EXIT

rm -rf %{temp_root}
install -d %{temp_root}

cd %{src_dir}

### Keys for signing kernel modules
# Keys can be generated both manually and automatically,
# let's generate them by ourselves to take full control of the process
# https://www.ibm.com/support/knowledgecenter/en/SSB23S_1.1.0.13/gtps7/cfgcert.html
# See also certs/Makefile in kernel source
mkdir -p "%{certs_dir_rnd}"

# On ABF, %%packager == $username <$email>
# Try to extract email from %%packager if it is set
_get_email(){
	# Check that macro %%packager was set and is not empty
	if echo '%{packager}' | grep -q 'packager}$' || [ -z "%{packager}" ]
		# If was not set or is empty, use default email
		then echo 'rpmbuild@rosa.unknown' && return
		# Otherwise try to extract email from 'name <email>' or sth else
		else temp="$(echo '%{packager}' | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | tr -d '<>' | grep -E '@.*\..*' | head -n 1)"
	fi
	# Validate that what we have now is a valid email
	# https://stackoverflow.com/a/2138832, https://stackoverflow.com/a/41192733
	# Note that we set %%_buildshell to /bin/bash to guarantee the work of this bashism
	regex_email="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
	if [[ "$temp" =~ ${regex_email} ]]
		# If it is, use it
		then echo "$temp" && return
		# Otherwise use default email
		else echo 'rpmbuild@rosa.unknown' && return
	fi
	# If script above has not return'ed for any reason,
	# e.g. because of non-bash shell being not able to
	# process regexp, use default email
	echo 'rpmbuild@rosa.unknown'
}
email="$(_get_email)"

cat <<EOF > "%{certs_key_config_rnd}"
[ req ]
prompt = no
string_mask = utf8only
#default_keyfile = %%{certs_signing_key_priv_rnd}
distinguished_name = req_distinguished_name
x509_extensions = myexts
[ req_distinguished_name ]
organizationName = %{vendor} rpmbuild
commonName = Build time autogenerated @ALGO@ kernel key
emailAddress = ${email}
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
cat "%{certs_key_config_rnd}"
sed -e 's,@ALGO@,RSA,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.RSA"
sed -e 's,@ALGO@,GOST R 34.10-2012,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.GOST"
# Avoid using the template
rm -f "%{certs_key_config_rnd}"

_libressl_gen_key(){
	if [ "$GOST_KEY" = 1 ]
	then
		lssl_req_gost_args="\
			-newkey gost2001 \
			-pkeyopt dgst:streebog512 -pkeyopt paramset:A \
			-streebog512"
		OUT="%{certs_signing_key_priv_rnd}.GOST"
		CONFIG="%{certs_key_config_rnd}.GOST"
	else
		lssl_req_gost_args=""
		OUT="%{certs_signing_key_priv_rnd}.RSA"
		CONFIG="%{certs_key_config_rnd}.RSA"
	fi
		libressl req -new -nodes -utf8 -batch \
			$lssl_req_gost_args \
			-days 109500 \
			-x509 -config "$CONFIG" \
			-out "$OUT" \
			-keyout "$OUT"

	# Verify
	if [ "$GOST_KEY" = 1 ]; then
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
	fi
}

GOST_KEY=0 _libressl_gen_key
GOST_KEY=1 _libressl_gen_key
# Fake CONFIG_MODULE_SIG_KEY to make build scripts happy
cp -v "%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}"

# Strip public parts from the generated PEMs
sed -n \
	'/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' \
	"%{certs_signing_key_priv_rnd}.GOST" \
	"%{certs_signing_key_priv_rnd}.RSA" \
	> "%{certs_public_keys}"

# Link sign-file and extract-cert with LibreSSL instead of OpenSSL
if [ $? != 0 ] ; then exit $? ; fi
sed -i %{src_dir}/scripts/Makefile \
%if %{with uml}
	%{src_dir}.uml/scripts/Makefile \
%endif
	-e "s, libcrypto , libressl-libcrypto ,g"

%if %{with additional_keys}
# Add additional public RSA keys to the list of trusted keys for kernel modules
# Build kernel --without additional_keys if you do not want to trust them
cat %{expand:%(for i in `seq 1 12`; do echo "%%SOURCE$((200+${i}))" | tr "\n" " "; done)} \
	>> "%{certs_public_keys}"
%endif
# End of additional_keys
cat %{certs_public_keys}

# .config
%smake -s mrproper
cp arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour} .config

# Make sure EXTRAVERSION says what we want it to say
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{flavour}-%{buildrpmrel}/" Makefile

# Build the kernel
echo "Building kernel %{kver_full}"

TARGETS="all"
# need to install dtbs to proper boot arm64 devices
%ifarch %{armx}
	TARGETS="$TARGETS dtbs"
%endif

%kmake V=1 -s $TARGETS

# Install modules
mkdir -p %{temp_modules}/%{kver_full}
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=%{kver_full} modules_install

%if %{with binary_extra_modules}
# Build and install procedure is specific to each Makefile from kernmel-source-* packages
# See also: https://www.kernel.org/doc/html/latest/kbuild/modules.html
# Copy directory because write permissions are required
# `make modules_install` must be done before this, otherwise these copied files will be deleted

# $1: name of kernel module
# $2: directory (e.g.: kernel/net/wireless)
_build_rtl(){
	cp -r "$(rpm -q --qf "/usr/src/rtl${1}-%%{VERSION}-%%{RELEASE}" kernel-source-rtl${1})" kernel-source-rtl${1}
	pushd kernel-source-rtl${1}
	%kmake KSRC=%{src_dir} M="$PWD"
	mkdir -p %{temp_modules}/%{kver_full}/${2}
	cp ${1}.ko %{temp_modules}/%{kver_full}/${2}
	popd
	rm -fr kernel-source-rtl${1}
}

_build_rtl 8821ce kernel/net/wireless
_build_rtl 8821cu kernel/net/wireless
_build_rtl 88x2bu kernel/net/wireless
_build_rtl 8812au kernel/net/wireless
_build_rtl 8821au kernel/net/wireless
_build_rtl 8821au kernel/net/wireless
_build_rtl 8814au kernel/net/wireless
_build_rtl 8723au kernel/net/wireless
_build_rtl 8188gu kernel/net/wireless
_build_rtl 8723bu kernel/net/wireless
_build_rtl 8723ds kernel/net/wireless
_build_rtl 8723du kernel/net/wireless
_build_rtl 8852au kernel/net/wireless
_build_rtl 8192du kernel/net/wireless

cp -r "$(rpm -q --qf '/usr/src/rtk_btusb-%%{VERSION}-%%{RELEASE}' kernel-source-rtk_btusb)" kernel-source-rtk_btusb
pushd kernel-source-rtk_btusb
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/bluetooth/
cp rtk_btusb.ko %{temp_modules}/%{kver_full}/kernel/drivers/bluetooth/rtk_btusb.ko
popd
rm -fr kernel-source-rtk_btusb

cp -r "$(rpm -q --qf '/usr/src/rtw89-%%{VERSION}-%%{RELEASE}' kernel-source-rtw89)" kernel-source-rtw89
pushd kernel-source-rtw89
%kmake KSRC=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
cp *.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
popd
rm -fr kernel-source-rtw89

cp -r "$(rpm -q --qf '/usr/src/rtw88-%%{VERSION}-%%{RELEASE}' kernel-source-rtw88)" kernel-source-rtw88
pushd kernel-source-rtw88
%kmake KSRC=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw88p
cp *.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw88p
popd
rm -fr kernel-source-rtw88

_build_nvidia(){
	cp -r "$(rpm -q --qf "/usr/src/nvidia${1}-%%{VERSION}-%%{RELEASE}" kernel-source-nvidia${1})" kernel-source-nvidia${1}
	pushd kernel-source-nvidia${1}
	%make SYSSRC=%{src_dir}
	mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}.%{kroko_release}
	for i in *.ko
	do
		# put them here to extract debug and compress, will be moved later
		install -m0644 "$i" %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}.%{kroko_release}/"$i"
	done
	popd
	rm -fr kernel-source-nvidia${1}
	# for rosa-kernel-tools
	mkdir -p %{temp_root}/var/spool/initramfs-regen
	touch %{temp_root}/var/spool/initramfs-regen/nvidia${1}.%{kroko_release}
}

%ifarch %{ix86} %{x86_64}
cp -r "$(rpm -q --qf '/usr/src/broadcom-wl-%%{VERSION}-%%{RELEASE}' kernel-source-broadcom-wl)" kernel-source-broadcom-wl
pushd kernel-source-broadcom-wl
%kmake -C %{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp wl.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/wl.ko
popd
rm -fr kernel-source-broadcom-wl

_build_nvidia 340
%endif

%ifarch %{x86_64}
_build_nvidia 390
_build_nvidia 470
_build_nvidia 550
%endif

cp -r "$(rpm -q --qf '/usr/src/tripso-%%{VERSION}-%%{RELEASE}' kernel-source-tripso)" kernel-source-tripso
pushd kernel-source-tripso
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_TRIPSO.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-tripso

cp -r "$(rpm -q --qf '/usr/src/ipt-so-%%{VERSION}-%%{RELEASE}' kernel-source-ipt-so)" kernel-source-ipt-so
pushd kernel-source-ipt-so
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_so.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-ipt-so

%if %{with binary_shredder}
cp -r "$(rpm -q --qf '/usr/src/shredder-kernel-%%{VERSION}-%%{RELEASE}' kernel-source-shredder-kernel)" kernel-source-shredder-kernel
pushd kernel-source-shredder-kernel
%kmake KERNEL_PATH=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/extra/
cp shredder-kernel.ko %{temp_modules}/%{kver_full}/kernel/extra/
popd
rm -fr kernel-source-shredder-kernel
%endif

%if %{with binary_virtualbox_host}
# build commands for virtualbox are based on the ones from the virtualbox package
cp -r "$(rpm -q --qf '/usr/src/virtualbox-%%{VERSION}-%%{RELEASE}' kernel-source-virtualbox)" kernel-source-virtualbox
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
pushd kernel-source-virtualbox
make -C vboxdrv KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxdrv/Module.symvers vboxnetflt
cp -fv vboxdrv/Module.symvers vboxnetadp
make -C vboxnetflt KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
make -C vboxnetadp KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxnetadp/Module.symvers vboxpci/
make -C vboxpci KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
for i in vboxnetflt vboxnetadp vboxdrv vboxpci
do
	cp -v "${i}/${i}.ko" %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif

cp -r "$(rpm -q --qf '/usr/src/v4l2loopback-%%{VERSION}-%%{RELEASE}' kernel-source-v4l2loopback)" kernel-source-v4l2loopback
pushd kernel-source-v4l2loopback
cat Kbuild > Makefile
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/media
make -C %{src_dir} M="$PWD" modules
cp v4l2loopback.ko %{temp_modules}/%{kver_full}/kernel/drivers/media
pushd
rm -fr kernel-source-v4l2loopback

%if %{with nickel}
# rosa-test-suite uses /sr/src/xxx-version, not /usr/src/xxx-version-release
cp -r "$(rpm -q --qf '/usr/src/rosa-test-suite-%%{VERSION}' kernel-source-rosa-test-suite)" kernel-source-rosa-test-suite
pushd kernel-source-rosa-test-suite
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
for i in nlkm memfreetest pcietest
do
cat << EOF > Makefile
obj-m := ${i}.o
all:
	make -C %{src_dir} M=\$(PWD) modules
EOF
%kmake
cp -fv ${i}.ko %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif
# End with nickel <- with binary_extra_modules

%endif
# End with binary_extra_modules

%if %{with uml}
cp -rv %{certs_dir_rnd} %{src_dir}.uml/
pushd %{src_dir}.uml
%kmake ARCH=um defconfig
%kmake ARCH=um linux
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
#rm -fv linux
%kmake V=1 ARCH=um modules
mkdir -p %{temp_root}/lib/modules-uml/%{kver_full}/
%kmake ARCH=um INSTALL_MOD_PATH=%{temp_root}/lib/modules-uml/%{kver_full}/ modules_install
popd
%endif

install -d %{temp_boot}
install -m 644 System.map %{temp_boot}/System.map-%{kver_full}
install -m 644 .config %{temp_boot}/config-%{kver_full}
%if %{with modxz}
xz -c Module.symvers > %{temp_boot}/symvers-%{kver_full}.xz
%else
%{zstd_cmd} Module.symvers
install -m 644 Module.symvers.zst %{temp_boot}/symvers-%{kver_full}.zst
%endif

%ifarch %{armx}
%make_build ARCH=%{arch_type} V=1 INSTALL_DTBS_PATH=%{temp_boot}/dtb-%{kver_full} dtbs_install
%endif

%ifarch aarch64
	cp -f arch/arm64/boot/Image.gz %{temp_boot}/vmlinuz-%{kver_full}
%else
	cp -f arch/%{arch_type}/boot/bzImage %{temp_boot}/vmlinuz-%{kver_full}
%endif

# Headers
%if %{build_headers}
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=%{kver_full} headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
%endif

# Remove /lib/firmware, we use a separate linux-firmware package
rm -rf %{temp_root}/lib/firmware

# Prepare the files for kernel*-devel
%if %{build_devel}

mkdir -p %{temp_devel_root}
for i in $(find . -name 'Makefile*'); do cp -R --parents $i %{temp_devel_root}; done
for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i %{temp_devel_root}; done

cp -fR include %{temp_devel_root}

cp -fR scripts %{temp_devel_root}
cp -fR kernel/bounds.c %{temp_devel_root}/kernel
cp -fR kernel/time/timeconst.bc %{temp_devel_root}/kernel/time
cp -fR tools %{temp_devel_root}/
cp -fR arch/%{arch_type}/kernel/asm-offsets.{c,s} %{temp_devel_root}/arch/%{arch_type}/kernel/
%ifarch %{ix86} %{x86_64}
cp -fR arch/%{arch_type}/kernel/asm-offsets_{32,64}.c %{temp_devel_root}/arch/%{arch_type}/kernel/
cp -fR arch/%{arch_type}/purgatory/* %{temp_devel_root}/arch/%{arch_type}/purgatory/
# Needed for arch/x86/purgatory
cp -fR lib/*.h lib/*.c %{temp_devel_root}/lib/
cp -fR arch/%{arch_type}/entry/syscalls/syscall* %{temp_devel_root}/arch/%{arch_type}/entry/syscalls/
cp -fR arch/%{arch_type}/tools %{temp_devel_root}/arch/%{arch_type}/
# needed for kexec
cp -fR arch/%{arch_type}/boot/*.h %{temp_devel_root}/arch/%{arch_type}/boot/
cp -fR arch/%{arch_type}/boot/*.c %{temp_devel_root}/arch/%{arch_type}/boot/
%endif
cp -fR arch/%{arch_type}/include %{temp_devel_root}/arch/%{arch_type}/
cp -fR .config Module.symvers %{temp_devel_root}

# Needed for truecrypt build (Danny)
cp -fR drivers/md/dm.h %{temp_devel_root}/drivers/md/

# Needed for lirc_gpio (#39004)
cp -fR drivers/media/pci/bt8xx/bttv{,p}.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/pci/bt8xx/bt848.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/common/btcx-risc.h %{temp_devel_root}/drivers/media/common/

# Add acpica header files, needed for fglrx build
cp -fR drivers/acpi/acpica/*.h %{temp_devel_root}/drivers/acpi/acpica/

%if %{with aufs}
# aufs2 has a special file needed
cp -fR fs/aufs/magic.mk %{temp_devel_root}/fs/aufs
%endif

# SELinux needs security/selinux/include
cp -fR security/selinux/include %{temp_devel_root}/security/selinux

for i in alpha arc avr32 blackfin c6x cris csky frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
	mips mn10300 nds32 nios2 openrisc parisc powerpc riscv s390 score sh sparc tile unicore32 xtensa; do
	rm -rf %{temp_devel_root}/arch/$i
done

# Clean the scripts tree, and make sure everything is ok (sanity check)
# running prepare+scripts (tree was already "prepared" in build)
pushd %{temp_devel_root}
	%smake V=1 -s clean ARCH=%{arch_type}
popd

rm -f %{temp_devel_root}/.config.old

# Fix permissions
chmod -R a+rX %{temp_devel_root}

# Disable mrproper in -devel rpms
patch -p1 --fuzz=0 -d %{temp_devel_root} -i %{SOURCE2}
%endif
# End of build_devel


# TODO: maybe move to /usr/lib/debug?
%if %{build_debug}
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | \
	%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | %kxargs -I '{}' \
	sh -c 'cd `dirname {}`; \
		objcopy --add-gnu-debuglink=`basename {}`.debug \
		--strip-debug `basename {}`'
%endif
# End of build_debug

# https://patchwork.kernel.org/patch/11446123/
_libressl_sign(){
	if [ ! -f "$1" ]; then
		echo "No file $1"
		return 0
	fi
	f="$1"
%if %{with gost_sign}
	%{src_dir}/scripts/sign-file streebog512 \
		"%{certs_signing_key_priv_rnd}.GOST" "%{certs_signing_key_priv_rnd}.GOST" "$f"
%else
	%{src_dir}/scripts/sign-file sha512 \
		"%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}.RSA" "$f"
%endif
	unset f
}
export -f _libressl_sign
find %{temp_modules}/%{kver_full}/kernel \
%if %{with uml}
	%{temp_root}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -e -x -c 'if ! _libressl_sign "{}"; \
		then echo Failed _libressl_sign on "{}" && exit 1; fi'

# Set extraversion to match srpm to get nice version reported by the tools
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
%smake -C tools/perf -s PYTHON=%{__python3} HAVE_CPLUS_DEMANGLE=1 WERROR=0 prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 man
%endif

%if %{build_cpupower}
# Make sure version-gen.sh is executable.
chmod +x tools/power/cpupower/utils/version-gen.sh
%make -C tools/power/cpupower CPUFREQ_BENCH=false
%endif

_cleanup

############################################################################

%install
cd %{src_dir}

# TODO: get rid of temporary directory, install to buildroot directly?
# We want to be able to test several times the install part
rm -rf %{buildroot}
cp -a %{temp_root} %{buildroot}

#if %%{with oblig_signed_modules}
# Multithreaded verification that every kernel module has a signature attached to it
mkdir -p "%{certs_dir_rnd}"
touch %{certs_verify_tmp}
_verify_signature(){
	if [ -z "$1" ] || [ ! -f "$1" ]; then return; fi
	if hexdump -C "$1" | rev | cut -f 2 -d '|' | rev | tr -d '\n' | grep -q '~Module signature appended~'; then
		if [ -f %{certs_verify_tmp} ]; then
			rm -f %{certs_verify_tmp}
		fi
	else
		echo "ERROR: Module $1 has no signature attached to it!"
		exit 1
	fi
}
export -f _verify_signature
find %{target_modules} \
%if %{with uml}
	%{buildroot}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -c '_verify_signature "{}"'
if [ -f %{certs_verify_tmp} ]; then
	echo "ERROR: seems that signatures of none modules were verified!"
	exit 1
fi
rm -f %{certs_verify_tmp}
#endif

# Compressing modules
%if %{with compress_modules}
# Tested on /lib/modules/5.10.34-generic-2rosa2019.1-x86_64, the results are the following:
# * decompressed: 266.3 MiB
# * xz -9 --extreme: 67.8 MiB
# * zstd --ultra -22 without training: 73.5 MiB
# * zstd -6 without training: 79.6 MiB
# * zstd --ultra -22 with training: 66.3 MiB (the winner!)
# Training takes only a few minutes, make it here in place with current zstd and kernel modules.
# But! Decompressing also requires a dictionary for zstd, that will be too complex, so not using training :(
# We already use zstd in dracut to compress initrds quickly and with good compression ration.
# Testing speed of loading modules:
# `time modinfo bcache.ko.xz` took 0,048s, `time modinfo bcache.ko.zstd` took 0,014s (for multiple times)
# find /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 -type f -name '*.ko.zst' > /tmp/zst.list
# time { for i in `cat /tmp/zst.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took ~31-40s, with disk cache (2+ runs) ~33s
# find /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 -type f -name '*.ko.xz' > /tmp/xz.list
# time { for i in `cat /tmp/xz.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took 43-47s, with disk cache (2+ runs) ~42s, +21%%
# zstd-compressed initramfs image initrd-5.10.34-generic-1rosa2019.1-x86_64.img with *.ko.xz is 56,3 MiB
# zstd-compressed initramfs image initrd-5.10.34-generic-2rosa2019.1-x86_64.img with *.ko.zst is 58,4 MiB (+3.6%%)
# /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 (*.ko.xz) is 78,1 MiB
# /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 (*.ko.zst) is 83,9 MiB (+7%%)
# When zstd is compressing cpio (initrd image) with zstd-compressed kernel modules inside it, does it recompress data?
# It is not easy to make a choice between zstd and xz for kernel modules... Disk space (and so speed of installing
# RPM packages) is not much bigger, we do not try to support super low end devices, operation speed is a bit better.
# I have not seen measurable difference in startup time according to systemd-analyze.
# Note that decompression after zstd --ultra -22 will consume more memory than after zstd -6, see commit message in
# https://github.com/torvalds/linux/commit/73f3d1b48f5069d46b. I did not benchmark -6 vs -22 in runtime.
# Let's use zstd for now.
# zstd may also be used to compress linux-firmware to save a lot of space on disk,
# but upstream kernels still cannot decompress it.
#{zstd_cmd} -T0 --train $(find . -type f -name '*.ko')
#[ -f dictionary ]
# -T1 (one thread) because we run multiple zstd processes by xargs
%if %{with modxz}
find %{target_modules} -name "*.ko" | %kxargs xz -6e
%else
find %{target_modules} -name "*.ko" | %kxargs %{zstd_cmd} --rm -T1 #-D dictionary
rm -f dictionary
%endif
%endif

%if %{with binary_extra_modules}
# Move nvidia modules to manage them via alternatives(8), leave *.debug
# TODO: better handle debug here and in the package in general
find %{target_modules}/%{kver_full}/kernel/drivers/video -name 'nvidia???.*' -type d -maxdepth 1 |
while read -r line
do
	nv="$(basename "$line")"
	mkdir -p %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
	mv -v "$line"/*.ko%{kmod_suffix} %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
	dir_no_buildroot="$(echo "$line" | sed -e 's,^%{buildroot},,')"
	echo "%exclude $dir_no_buildroot" >> %{kernel_files}
	%if %{build_debug}
	echo "%dir $dir_no_buildroot" >> %{debuginfo_files}
	%endif
done
%endif #/with binary_extra_modules

find %{buildroot}%{_modulesdir}/%{kver_full} -type f -name '*.ko%{kmod_suffix}' | sed -e 's,^%{buildroot},,' | sort -u >> %{kernel_files}
find %{buildroot}%{_modulesdir}/%{kver_full} -type d | sed -e 's,^%{buildroot},%dir ,' | sort -u >> %{kernel_files}

# We estimate the size of the initramfs because rpm needs to take this size
# into consideration when performing disk space calculations (See rhbz#530778)
# 65 MiB is a bit more than needed, but let's be more sure that there is enought space.
# On my PC, zstd-compressed initrds take 58,5 MiB.
# Real size of the RPM package should not increase because RPM compresses the payload.
# This file is %%ghost, so the real initrd will be deleted when uninstalling this package.
dd if=/dev/zero of=%{buildroot}%{initrd_path} bs=1M count=65

%if %{build_debug}
install -m 644 vmlinux %{buildroot}%{_bootdir}/vmlinux-%{kver_full}
find %{buildroot}%{_modulesdir} -type f -name '*.debug' | sed -e 's,^%{buildroot},,' | sort -u >> %{debuginfo_files}
%endif
# End of build_debug

pushd %{target_modules}
for i in *; do
	rm -f $i/build $i/source
	ln -sf /usr/src/linux-$i $i/build
	ln -sf /usr/src/linux-$i $i/source
done

# Sniff, if we compressed all the modules, we change the stamp :(
# we really need the depmod -ae here
for i in *; do
	/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
	echo $?
done

# We used to create modules.description files which contained the
# description strings for the modules as shown by modinfo. These files
# are unlikely to be used right now, so create them (in case some old tool
# checks for their existence) but keep them empty.
for i in *; do
	touch $i/modules.description
done
popd

# Need to set extraversion to match srpm again to avoid rebuild
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
# Perf tool binary and supporting scripts/binaries
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} lib=%{_lib} install

# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},' \
	%{buildroot}%{_prefix}/libexec/perf-core/scripts/python/exported-sql-viewer.py \
	%{buildroot}%{_prefix}/libexec/perf-core/scripts/python/libxed.py

# Perf man pages (note: implicit rpm magic compresses them later)
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
%endif

%if %{build_cpupower}
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
rm -f %{buildroot}%{_libdir}/*.{a,la}

%find_lang cpupower

mv cpupower.lang ../
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE50} %{buildroot}%{_unitdir}/cpupower.service
install -m644 %{SOURCE53} %{buildroot}%{_unitdir}/cpupower.path
install -m644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
install -m755 %{SOURCE52} %{buildroot}%{_bindir}/cpupower-start.sh
%endif

# Delete junk
rm -fr %{buildroot}%{_usr}/src/*/kernel-source-*

%if %{with flow_abi}
# Prefix with "zzz" to put this directory into the end of search list
# and avoid tricks with depmod configs
mkdir -p %{buildroot}/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
ln -s /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi %{buildroot}%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

# Drop hidden files
rm -f %{buildroot}%{_docdir}/kernel-5.10-generic-doc/devicetree/bindings/.yamllint

# Fix perms
%if %{build_perf}
chmod -x %{buildroot}%{_sysconfdir}/bash_completion.d/perf
chmod -x %{buildroot}%{_prefix}/lib/perf/examples/bpf/*.c
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/*.h
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/linux/*.h
chmod -x %{buildroot}%{_datadir}/doc/perf-tip/*.txt
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13738 |21mr|kernel-5.16-generic-5.16.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# _get_email() in %%build contains bashisms for regexping
%define	_buildshell /bin/bash

# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define	_python_bytecompile_build 0

# Probably dwz bug, on i686 only file is not packaged:
# /usr/lib/debug/usr/bin/trace-5.4.40-3.i386.debug.#dwz#.b5xuKG
# dwz compresses only debuginfo from perf, cpupower, uml,
# not the kernel itself (because it is stripped not by RPM),
# so we do not loose much by disabling it.
%global	_find_debuginfo_dwz_opts %{nil}

# Put everything into one non-standard debuginfo subpackage
# TODO: make multiple debuginfo packages coinstallable as installonlypkg,
# to achive this, there must be no conflicting files.
# Probably signing and compressing of kernel modules
# has to be moved to %%_spec_install_post.
%global	_debuginfo_subpackages %{nil}
%global	_debuginfo_template %{nil}
%undefine	_debugsource_packages

# Hack: flavour and major version are variable, make %%_build_pkgcheck_* always detect and use this config
%global	_build_pkgcheck_set %(echo "%{_build_pkgcheck_set}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')
%global	_build_pkgcheck_srpm %(echo "%{_build_pkgcheck_srpm}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')

%define	kernelversion 5
%define	patchlevel 16
%define	sublevel 19

# Release number. Increase this before a rebuild.
%define	rpmrel 2
%define	fullrpmrel	%{rpmrel}

%define	rpmtag	%{disttag}

# Version defines
%define	kversion	%{kernelversion}.%{patchlevel}.%{sublevel}
%define	kverrel	%{kversion}-%{fullrpmrel}
%define	tar_ver	%{kernelversion}.%{patchlevel}

%ifarch %{ix86}
%define	arch_suffix	i686
%endif

%ifarch %{x86_64}
%define	arch_suffix	x86_64
%endif

%ifarch aarch64
%define	arch_suffix	arm64
%endif

%define	buildrpmrel	%{fullrpmrel}%{rpmtag}-%{arch_suffix}
%define	buildrel	%{kversion}-%{buildrpmrel}

# Add not only the build time generated key to the trusted keyring,
# but also add public keys of private ROSA's keys
%bcond_without	additional_keys

# Fail the build after "make oldconfig" to edit kernel configs
%bcond_with	fail

# User Mode Linux, https://habr.com/ru/company/itsumma/blog/459558/
# Not buildable on aarch64
%ifarch %{x86_64}
%bcond_without	uml
%else
%bcond_with	uml
%endif

# "Nickel" is a special brand for certified distros
%if %{mdvver} == 201905
%bcond_without	nickel
# Require kernel modules to be signed
%bcond_without	oblig_signed_modules
%else
%bcond_with nickel
%bcond_with oblig_signed_modules
%endif

%if %{mdvver} >= 201905
# Build binary out-of-tree kernel modules (experimental)
%bcond_without binary_extra_modules
# Sign kernel modules with GOST key (experimental)
%bcond_without gost_sign
%else
%bcond_with binary_extra_modules
%bcond_with gost_sign
%endif

%bcond_with ccache
%bcond_without flow_abi
%bcond_without aufs

# 1. VirtualBox is for x86_32 and x86_64 only
# 2. I do not know how to solve the problem that userspace part of VirtualBox
# will be updated ahead of these binary modules. So just off building them.
%bcond_with binary_virtualbox_host

# Shredder-kernel works only on x86_64, makes manipulations with syscalls tables,
# loading/unloading of the module failed sometimes on kernel 5.4
# and it has not been adapted for kernel 5.10 (is not buildable)
%bcond_with binary_shredder

# Compress modules with zstd (zstd is good compression and fast decompression)
%bcond_without compress_modules
# Spend more resources on compression, but make resulting size less;
# decompression speed will not be affected, but more memory will be required
# which should not a problem here (performance penalty from allocating more
# memory should not be big, I think, but I did not benchmark).
%define	zstd_cmd zstd -q --format=zstd --ultra -22
# Optionally keep using xz as compressor
#bcond_without	modxz

# Kernel flavour
%if %{with nickel}
%define	flavour	nickel
%else
%define	flavour	generic
%endif

# The full kernel version
%define	kver_full	%{kversion}-%{flavour}-%{buildrpmrel}

############################################################################

%define	top_dir_name	kernel-%{_arch}
%define	build_dir	${RPM_BUILD_DIR}/%{top_dir_name}
%define	src_dir	%{build_dir}/linux-%{tar_ver}

# Common target directories
%define	_bootdir	/boot
%define	_modulesdir	/lib/modules
%define	devel_root	/usr/src/linux-%{kver_full}
%define	initrd_path %{_bootdir}/initrd-%{kver_full}.img

# Directories needed for building
%define	temp_root	%{build_dir}/temp-root
%define	temp_boot	%{temp_root}%{_bootdir}
%define	temp_modules	%{temp_root}%{_modulesdir}
%define	temp_devel_root	%{temp_root}%{devel_root}

# Directories definition needed for installing
%define	target_boot	%{buildroot}%{_bootdir}
%define	target_modules	%{buildroot}%{_modulesdir}

# Manual control of creating and deleting keys
# "rnd" is "random" and means that a key pair is generated at build time
# and is not saved anywhere.
%define	certs_dir_rnd certs
%define	certs_signing_key_priv_rnd %{certs_dir_rnd}/signing_key_priv.key
%define	certs_signing_der %{certs_dir_rnd}/signing_key.x509
%define	certs_key_config_rnd %{certs_dir_rnd}/x509.genkey
%define	certs_public_keys %{certs_dir_rnd}/public.pem
%define	certs_verify_tmp %{certs_dir_rnd}/verify.tmp

%define	kernel_files %{_builddir}/kernel_files.list
%define	debuginfo_files %{_builddir}/debuginfo_files.list

# Append list of files generate by find-debuginfo.sh to our custom list
%global	__debug_install_post \
%{__debug_install_post} \
cat %{_builddir}/debugfiles.list >> %{debuginfo_files}

############################################################################

#if %%{with binary_extra_modules}
# https://github.com/rpm-software-management/rpm/pull/1794
#define	nvidia_390_j %%(if rpm -q kernel-source-nvidia390 >/dev/null 2>&1; then rpm -q --qf '%%{version}' kernel-source-nvidia390 | awk -F '.' '{print $1}'; else echo 0; fi)
#define	nvidia_390_n %%(if rpm -q kernel-source-nvidia390 >/dev/null 2>&1; then rpm -q --qf '%%{version}' kernel-source-nvidia390 | awk -F '.' '{print $2}'; else echo 0; fi)
#define	nvidia_470_j %%(if rpm -q kernel-source-nvidia470 >/dev/null 2>&1; then rpm -q --qf '%%{version}' kernel-source-nvidia470 | awk -F '.' '{print $1}'; else echo 0; fi)
#define	nvidia_470_n %%(if rpm -q kernel-source-nvidia470 >/dev/null 2>&1; then rpm -q --qf '%%{version}' kernel-source-nvidia470 | awk -F '.' '{print $2}'; else echo 0; fi)

# For SRPM stage when auto-krokodil-rpm-macros is not installed
#{?!kroko_req_modules_in_kernel:%%define kroko_req_modules_in_kernel(j:n:p:) %%{nil}}
#endif

############################################################################

# Buildtime flags
%{?_without_doc: %global build_doc 0}
%{?_without_devel: %global build_devel 0}
%{?_without_debug: %global build_debug 0}
%{?_without_perf: %global build_perf 0}
%{?_without_cpupower: %global build_cpupower 0}

%{?_with_doc: %global build_doc 1}
%{?_with_devel: %global build_devel 1}
%{?_with_debug: %global build_debug 1}
%{?_with_perf: %global build_perf 1}
%{?_with_cpupower: %global build_cpupower 1}
%{?_with_modxz: %global build_modxz 0}

# Build defines
%define	build_doc	1
%define	build_devel	1
%define	build_debug	1

# Build kernel-headers package
%define	build_headers	0

# Build perf and cpupower tools
%define	build_perf	1
%define	build_cpupower	1

%if %{with compress_modules}
%if %{with modxz}
%define	kmod_suffix .xz
%else
%define	kmod_suffix .zst
%endif
%else
%define	kmod_suffix %{nil}
%endif

%if !%{build_debug}
# Disable debug rpms.
%define	_enable_debug_packages	%{nil}
%define	debug_package		%{nil}
%endif

# End of user definitions

# http://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/
%if %{with ccache}
%define	kmake KBUILD_BUILD_TIMESTAMP='' %make CC='ccache gcc' ARCH="%{arch_type}"
%else
%define	kmake %make CC='gcc' ARCH="%{arch_type}"
%endif

# There are places where parallel make don't work
%define	smake make
%ifarch %{ix86} %{x86_64}
%define	arch_type x86
%endif
%ifarch	aarch64
%define	arch_type arm64
%endif

# Parallelize xargs invocations on smp machines
%define	kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")

#
# SRC RPM description
#
Summary:	The Linux kernel
Name:		kernel-%{kernelversion}.%{patchlevel}-%{flavour}
Version:	%{kversion}
Release:	%{fullrpmrel}
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://www.kernel.org

####################################################################
#
# Sources
#
Source0:	https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.xz

# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
# Needed, because otherwise the -devel won't build correctly.
Source2:	0001-disable-mrproper-prepare-scripts-configs-in-devel-rp.patch

# TODO: Make a separate package "ksobirator" and BR it
# after testing these macros properly
Source3:	macros.ksobirator
%{load:%{SOURCE3}}
Source4:	macros.nvidia
%{load:%{SOURCE4}}

# Kernel configuration files.
Source111:	kernel-x86_64.config
Source112:	kernel-i686.config
Source113:	kernel-arm64.config

# Cpupower: the service, the config, etc.
Source50:	cpupower.service
Source51:	cpupower.config
Source52:	cpupower-start.sh
Source53:	cpupower.path

Source80:	kernel.rpmlintrc

# Additional keys that can be used to sign kernel modules
# Generated by https://abf.io/soft/kernel-keys
# Source201..206: public_key_GOST_*.pem
%{expand:%(for i in `seq 1 6`; do echo "Source$((200+${i})): public_key_GOST_${i}.pem"; done)}
# Source207..212: public_key_RSA_*.pem
%{expand:%(for i in `seq 7 12`; do echo "Source$((200+${i})): public_key_RSA_${i}.pem"; done)}

####################################################################

# Patches

# The patch to make kernel x.y.z from x.y.0.
Patch1:		https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.xz

# Patches from mainline
# none
Patch2:		kernel-5.10.93-fix-perf-build.patch

# ROSA-specific patches

# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid
# this.
Patch101:	0001-perf-skip-xmlto-validation.patch

# http://bugs.rosalinux.ru/show_bug.cgi?id=6235
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102:	0001-audit-make-it-less-verbose.patch

%if %{with aufs}
# AUFS 5 from http://aufs.sourceforge.net/
Patch109:	0001-Apply-AUFS-5.patch
%endif

# For kmod() generator of RPM Provides
# Changes version of aacraid.ko
Patch111:	0001-Remove-RPM-illegal-chars-from-module-version.patch

# AltHa LSM Module
# https://www.altlinux.org/AltHa
# http://git.altlinux.org/gears/k/kernel-image-un-def.git
# TODO: known problem: https://bugzilla.altlinux.org/show_bug.cgi?id=38225
Patch201:	0001-altha.patch

# sent to upstream, https://patchwork.kernel.org/patch/11446123/
Patch302:	0001-sign-file-full-functionality-with-modern-LibreSSL.patch
# Support loading GOST-signed modules
Patch305:	0001-crypto-support-loading-GOST-signed-kernel-modules.patch
# Allow to off modules signature check dynamically
Patch306:	0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch
# Experimental patch to reduce freezes in low memory conditions
# Config values are the following:
# CONFIG_UNEVICTABLE_ACTIVEFILE=y
# CONFIG_UNEVICTABLE_ACTIVEFILE_KBYTES_LOW=102400 (100 MB)
# CONFIG_UNEVICTABLE_ACTIVEFILE_KBYTES_MIN=51200 (50 MB)
# + zswap is enabled by default
# 50 MB is default value of min_filelist_kbytes in Chromium OS
# https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/545e2917dbd863760a51379de8c26631e667c563%5E!/
# 256 and 512 MB values are too big as a distro default because many systems have 512MB-2GB RAM
# TODO: tune 50 and 100 MB to some not random and mathemetically explainable values
# https://www.linux.org.ru/news/kernel/16052362?cid=16075323
Patch307:	le9pf.diff
Patch308:	0001-Revert-kallsyms-unexport-kallsyms_lookup_name-and-ka.patch

# Support SoC with Baikal-M (ARMv8) CPU
# From http://git.altlinux.org/gears/k/kernel-image-std-def.git (many thanks!)
# They are based on sources from official SDK with patched kernel from Baikal Electronics
Patch0601:	0601-baikalm.patch
Patch0604:	0604-efi-arm-runtime-print-EFI-mapping.patch
Patch0608:	0608-Baikal-M-USB-driver.patch
# https://bugzilla.altlinux.org/show_bug.cgi?id=40269
Patch0609:	0609-Baikal-M-video-unit-driver.patch
Patch0616:	0616-Baikal-M-PCIe-driver-from-SDK-M-4.3.patch
Patch0617:	0617-Baikal-M-PCIe-driver-from-SDK-M-4.4.patch
Patch0619:	0619-panfrost-compatibility-with-Baikal-M-firmware-from-S.patch

# Disable AutoReq
AutoReq:	0
# but keep autoprov for kmod(xxx)
AutoProv:	1

BuildRequires:	bash
BuildRequires:	bc
BuildRequires:	binutils
BuildRequires:	bison
BuildRequires:	bzip2
%if %{with ccache}
BuildRequires:	ccache
%endif
BuildRequires:	flex
BuildRequires:	gcc
# ./scripts/mkcompile_h
BuildRequires:	hostname
BuildRequires:	kmod-compat
BuildRequires:	rsync
%if %{with compress_modules}
%if %{with modxz}
BuildRequires:	xz
%else
BuildRequires:	zstd
%endif
%endif
%ifarch aarch64
BuildRequires:	uboot-tools
%endif
BuildRequires:	kmod-devel
%ifarch x86_64 aarch64
BuildRequires:	numa-devel
%endif
%if %{with uml}
BuildRequires:	vde-devel
%endif
# For power tools
BuildRequires:	pkgconfig(ncurses)

# For perf, cpufreq and all other tools
# For cpupower
%if %{build_cpupower}
BuildRequires:	pciutils-devel
%endif
# For perf
%if %{build_perf}
BuildRequires:	asciidoc
BuildRequires:	perl-ExtUtils-Embed
BuildRequires:	python3
BuildRequires:	xmlto
BuildRequires:	audit-devel
BuildRequires:	binutils-devel
BuildRequires:	elfutils-devel
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	libunwind-devel
BuildRequires:	newt-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(babeltrace)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(zlib)
%endif

# (To generate keys)
# LibreSSL has GOST support without editing openssl.cnf
# or dlopen()-ing external library
BuildRequires:	libressl
BuildRequires:	libressl-devel
# To verify signatures (find, xargs, hexdump)
BuildRequires:	findutils
BuildRequires:	util-linux

%if %{with binary_extra_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-source-rtl8821ce
BuildRequires:	kernel-source-rtl8821cu
# Broadcom-wl and nvidia390 contain a proprietary blob which is only for x86
%ifarch %{ix86} %{x86_64}
BuildRequires:	kernel-source-broadcom-wl
BuildRequires:	kernel-source-nvidia390
%endif
# Nvidia470+ are x86_64 only (maybe aarch64 will be also packaged later)
%ifarch %{x86_64}
BuildRequires:	kernel-source-nvidia470
BuildRequires:	kernel-source-nvidia510
BuildRequires:	kernel-source-nvidia515
%endif
BuildRequires:	kernel-source-tripso
BuildRequires:	kernel-source-ipt-so
%if %{with binary_virtualbox_host}
BuildRequires:	kernel-source-virtualbox
%endif
BuildRequires:	kernel-source-v4l2loopback
%if %{with binary_shredder}
BuildRequires: kernel-source-shredder-kernel
%endif
# Rosa-test-suite is maintained in certified branches only nlkm, memfreetest, pcietest
%if %{with nickel}
BuildRequires:	kernel-source-rosa-test-suite
%endif
%endif
# End of with binary_extra_modules

Provides:	kernel = %{EVRD}
Provides:	kernel-%{flavour} = %{EVRD}
Provides:	kernel-abi(%{kver_full}) = %{EVRD}
# Dnf config-manager --dump | grep installonly
Provides:	installonlypkg(kernel) = %{EVRD}.image
Provides:	installonlypkg(kernel) = %{EVRD}.modules

# >= because of added support of zstd-compressed modules
Requires(posttrans):	dracut >= 053-0.git5eb736.5
Requires(posttrans):	kmod >= 28-3

# Need for rebuild dkms drivers
Requires:	(kernel-%{tar_ver}-generic-devel if dkms)

# Usually necessary, but sometimes user may want to not install them
Recommends:	crda
Recommends:	linux-firmware
Recommends:	microcode
# Set BFQ as default scheduler for HDDs
# https://www.phoronix.com/scan.php?page=article&item=linux-50hdd-io
Recommends:	udev-rules-ioschedulers
Recommends:	wireless-regdb

%if %{with flow_abi}
Requires:	kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

# XXX temporary hack to upgrade from kernel-headers 1:5.4
%if %{build_headers}
Recommends:	kernel-headers = %{EVRD}
%endif

%if %{with binary_extra_modules}
%ifarch %{ix86} %{x86_64}
#kroko_req_modules_in_kernel -j %%{nvidia_390_j} -n %%{nvidia_390_n} -p %%{kver_full}
Requires:	((kernel-modules-nvidia390-%{version}-%{release}-%{flavour} = %{EVRD}) if nvidia390-core)
%endif
%ifarch %{x86_64}
#kroko_req_modules_in_kernel -j %%{nvidia_470_j} -n %%{nvidia_470_n} -p %%{kver_full}
Requires:	((kernel-modules-nvidia470-%{version}-%{release}-%{flavour} = %{EVRD}) if nvidia470-core)
Requires:	((kernel-modules-nvidia510-%{version}-%{release}-%{flavour} = %{EVRD}) if nvidia510-core)
Requires:	((kernel-modules-nvidia515-%{version}-%{release}-%{flavour} = %{EVRD}) if nvidia515-core)
%endif
%endif

Obsoletes:	kernel-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description
The kernel package contains the Linux kernel (vmlinuz), the core of your
operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.

%posttrans
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd
# that is created then will be non-functional. But when the user installs
# kernel-<...> package, that defunct initrd will be replaced with a working
# one here.
dracut -f %{initrd_path} %{kver_full}

# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2

%transfiletriggerin -- %{_modulesdir}/%{kver_full}
# Detect all modules, including ones inside kernel-module* packages
if grep -qE '/.*\.ko(|\..*)' ; then
	depmod -a %{kver_full}
fi

%transfiletriggerpostun -- %{_modulesdir}/%{kver_full}
# Handle e.g. removal of kernel-module* packages
# List of files is not available here (?)
depmod -a %{kver_full}

%files -f %{kernel_files}
%{_bootdir}/System.map-%{kver_full}
%{_bootdir}/symvers-%{kver_full}.*
%{_bootdir}/config-%{kver_full}
%{_bootdir}/vmlinuz-%{kver_full}
%ghost %{initrd_path}
%ifarch %{armx}
%{_bootdir}/dtb-%{kver_full}
%endif
%{_modulesdir}/%{kver_full}/modules.*
%if %{with flow_abi}
%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
%if %{with binary_extra_modules}
# 8821ce.ko.debug will not be excluded and will be in the main debug subpackage
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821ce.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821cu.ko%{kmod_suffix}
%ifarch %{ix86} %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/wl.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/video/nvidia390
%endif
%ifarch %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/video/nvidia470
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/video/nvidia510
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/video/nvidia515
%endif
%if %{with binary_shredder}
%exclude %{_modulesdir}/%{kver_full}/kernel/extra/shredder-kernel.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/media/v4l2loopback.ko%{kmod_suffix}
%if %{with binary_virtualbox_host}
# vbox host modules may be built here (vboxnetflt vboxnetadp vboxdrv vboxpci)
# vbox guest modules are in the mainline kernel now (vboxvideo vboxguest vboxsf)
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/vbox*.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_TRIPSO.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_so.ko%{kmod_suffix}
%if %{with nickel}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/nlkm.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/memfreetest.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/pcietest.ko%{kmod_suffix}
%endif
%endif
# End of with binary_extra_modules

############################################################################

%if %{build_devel}
%package devel
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	glibc-devel
Requires:	ncurses-devel
Requires:	gcc
Requires:	make
Requires:	perl
Requires:	%{name} = %{EVRD}
Provides:	kernel-devel = %{kverrel}
Provides:	kernel-%{flavour}-devel = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.devel
Obsoletes:	kernel-%{flavour}-%{kernelversion}.%{patchlevel}-devel-latest < 5.10.34-2

# Have dkms updated/installed before the kernel, scriptlet here checks if dkms exists
OrderWithRequires(post):	dkms
# Try to remove the main kernel package after removing this devel package
# because there may be dkms-built kernel modules inside directories owned
# by the main package, try to get rid of such files before RPM starts to
# deal with directories owned in the main package
# (note that the devel package does not explicitly require the main package,
# there is no need to do so, a kernel module may be built using just the devel part).
OrderWithRequires(postun): %{name} = %{EVRD}

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

%description devel
This package contains the kernel files (headers and build tools) that should
be enough to build additional drivers for use with %{name}.


%post devel
if command -v dkms_autoinstaller >/dev/null 2>&1; then
	dkms_autoinstaller start %{kver_full}
fi


%preun devel
# If any DKMS modules with REMAKE_INITRD=yes in their configs have been
# uninstalled, initrd has been regenerated for the given kernel. However,
# the kernel itself might have been uninstalled before, so that (defunct)
# initrd image files would be left behind. Remove them if the kernel itself
# is no longer installed. Should work if they are uninstalled in parallel
# too.
if ! test -f /boot/vmlinuz-%{kver_full}; then
	rm -f /boot/initrd-%{kver_full}.img
	rm -f /boot/initrd-%{kver_full}_old.img
fi

if ! command -v dkms >/dev/null 2>&1; then exit 0; fi

for ii in $(/usr/sbin/dkms status -k %{kver_full} | awk '{ print $1 $2; }'); do
	mod=$(echo $ii | awk -v FS=',' '{ print $1; }')
	ver=$(echo $ii | awk -v FS=',' '{ print $2; }')
	/usr/sbin/dkms --rpm_safe_upgrade uninstall -m $mod -v $ver -k %{kver_full} || :
done


%files devel
%{devel_root}/Documentation
%dir %{devel_root}
%dir %{devel_root}/arch
%dir %{devel_root}/include
%{devel_root}/arch/um
%{devel_root}/arch/x86
%{devel_root}/arch/arm
%{devel_root}/arch/arm64
%{devel_root}/block
%{devel_root}/certs
%{devel_root}/crypto
%{devel_root}/drivers
%{devel_root}/fs
%{devel_root}/include/soc
%{devel_root}/include/acpi
%{devel_root}/include/asm-generic
%{devel_root}/include/clocksource
%{devel_root}/include/config
%{devel_root}/include/crypto
%{devel_root}/include/drm
%{devel_root}/include/dt-bindings
%{devel_root}/include/generated
%{devel_root}/include/keys
%{devel_root}/include/kvm
%{devel_root}/include/kunit
%{devel_root}/include/linux
%{devel_root}/include/math-emu
%{devel_root}/include/media
%{devel_root}/include/memory
%{devel_root}/include/misc
%{devel_root}/include/net
%{devel_root}/include/pcmcia
%{devel_root}/include/ras
%{devel_root}/include/rdma
%{devel_root}/include/scsi
%{devel_root}/include/sound
%{devel_root}/include/target
%{devel_root}/include/trace
%{devel_root}/include/uapi
%{devel_root}/include/vdso
%{devel_root}/include/video
%{devel_root}/include/xen
%{devel_root}/init
%{devel_root}/ipc
%{devel_root}/kernel
%{devel_root}/lib
%{devel_root}/mm
%{devel_root}/net
%{devel_root}/samples
%{devel_root}/scripts
%{devel_root}/security
%{devel_root}/sound
%{devel_root}/tools
%{devel_root}/usr
%{devel_root}/virt
%{devel_root}/.config
%{devel_root}/Kbuild
%{devel_root}/Kconfig
%{devel_root}/Makefile
%{devel_root}/Module.symvers
%{devel_root}/arch/Kconfig
%{_modulesdir}/%{kver_full}/build
%{_modulesdir}/%{kver_full}/source
%endif
# End of build_devel

############################################################################

%if %{build_debug}
%package debuginfo
Summary:	Debuginfo for %{name}
Group:		Development/Debug
Provides:	kernel-debug = %{kverrel}
AutoReq:	0
AutoProv:	0

%description debuginfo
This package contains the files with debuginfo for %{name}.

%files debuginfo -f %{debuginfo_files}
%{_bootdir}/vmlinux-%{kver_full}
%endif
# End of build_debug

############################################################################

%if %{build_doc}
%package doc
Summary:	Various documentation bits found in the kernel source
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files from the kernel source.

%files doc
%doc linux-%{tar_ver}/Documentation/*
%endif

############################################################################

%if %{build_perf}
%package -n perf
Summary:	perf tool and the supporting documentation
Group:		System/Kernel and hardware

%description -n perf
The package contains perf tool and the supporting documentation.

%files -n perf
%{_bindir}/perf
%ifarch x86_64
%{_bindir}/perf-read-vdso32
%endif
%{_bindir}/trace
%{_includedir}/perf/perf_dlfilter.h
%dir %{_prefix}/libexec/perf-core
%dir %{_libdir}/traceevent
%dir %{_libdir}/traceevent/plugins
%{_libdir}/libperf-jvmti.so
%{_libdir}/traceevent/plugins/*
%{_prefix}/libexec/perf-core/*
%{_mandir}/man[1-8]/perf*
%{_sysconfdir}/bash_completion.d/perf
%{_datadir}/perf-core/strace/groups/*
%{_datadir}/doc/perf-tip/*.txt
/usr/lib/perf/examples/bpf/*
/usr/lib/perf/include/bpf/*
%endif

############################################################################

%if %{build_cpupower}
%package -n cpupower

Summary:	The cpupower tools
Group:		System/Kernel and hardware

%description -n cpupower
The cpupower tools.

%post -n cpupower
if [ $1 -ge 0 ]; then
# Do not enable/disable cpupower.service directly, because it should start
# when cpupower.path triggers it.
	/bin/systemctl enable cpupower.path >/dev/null 2>&1 || :
	/bin/systemctl start cpupower.path >/dev/null 2>&1 || :
fi

%preun -n cpupower
if [ $1 -eq 0 ]; then
	/bin/systemctl --no-reload disable cpupower.path > /dev/null 2>&1 || :
	/bin/systemctl stop cpupower.path > /dev/null 2>&1 || :
fi

%files -n cpupower -f cpupower.lang
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
%{_bindir}/cpupower
%{_bindir}/cpupower-start.sh
%{_libdir}/libcpupower.so.0
%{_libdir}/libcpupower.so.0.0.1
%{_unitdir}/cpupower.service
%{_unitdir}/cpupower.path
%{_datadir}/bash-completion/completions/cpupower
%{_mandir}/man[1-8]/cpupower*

############################################################################

%package -n cpupower-devel
Summary:	Development files for cpupower
Group:		Development/Kernel
Requires:	cpupower = %{EVRD}
Conflicts:	%{_lib}cpufreq-devel

%description -n cpupower-devel
This package contains the development files for cpupower.

%files -n cpupower-devel
%{_libdir}/libcpupower.so
%{_includedir}/cpufreq.h
%{_includedir}/cpuidle.h
%endif

############################################################################

%if %{build_headers}
%package -n kernel-headers
Summary:	Linux kernel header files mostly used by your C library
Group:		System/Kernel and hardware
Provides:	linux-userspace-headers = %{EVRD}
Provides:	kernel-release-headers = %{EVRD}

%description -n kernel-headers
C header files from the Linux kernel. The header files define
structures and constants that are needed for building most
standard programs, notably the C library.

This package is not suitable for building kernel modules, you
should use the 'kernel-devel' package instead.

%files -n kernel-headers
%{_includedir}/*
# Don't conflict with cpupower-devel
%if %{build_cpupower}
%exclude %{_includedir}/cpufreq.h
%exclude %{_includedir}/cpuidle.h
%endif
%if %{build_perf}
%exclude %{_includedir}/perf/perf_dlfilter.h
%endif
%endif

############################################################################

%if %{with uml}
%package uml
Summary:	User Mode Linux binary
Group:		System/Kernel and hardware
Provides:	kernel-uml = %{kverrel}
Provides:	kernel-uml-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.uml
Obsoletes:	kernel-uml-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description uml
User Mode Linux binary.
Stripped, debug is in %{name}-debuginfo.

%files uml
%{_bindir}/linux-uml-%{kver_full}

#-----------------------------------------------------------------------------

%package uml-modules
Summary:	User Mode Linux (UML) kernel modules
Group:		System/Kernel and hardware
Provides:	kernel-uml-modules = %{kverrel}
Provides:	kernel-uml-modules-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel-module) = %{EVRD}.uml
Obsoletes:	kernel-uml-modules-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description uml-modules
User Mode Linux (UML) kernel modules:
- not compressed;
- not stripped;
- signed.

%files uml-modules
/lib/modules-uml/%{kver_full}

%endif
# End of uml

#-----------------------------------------------------------------------------

###############################
# Extra modules package definitions

%if %{with binary_extra_modules}
%ksob_mk_module_pkg -n 8821ce -s net/wireless -r rtl8821ce-blacklist
%ksob_mk_module_pkg -n 8821cu -s net/wireless
%ifarch %{ix86} %{x86_64}
%ksob_mk_module_pkg -n wl -s net/wireless -r broadcom-wl-aliases
#kroko_kmod_pkg -j %%{nvidia_390_j} -n %%{nvidia_390_n} -f %%{flavour} -k %%{kernelversion}.%%{patchlevel} -m %%{sublevel} -p %%{kver_full} -s %%{NAME} -r %%{kroko_mk_release}
%endif
%ifarch %{ix86}
%nvidia_modules_pkg -e %{EVRD} -m 390 -p %{kver_full}
%endif
%ifarch %{x86_64}
#kroko_kmod_pkg -j %%{nvidia_470_j} -n %%{nvidia_470_n} -f %%{flavour} -k %%{kernelversion}.%%{patchlevel} -m %%{sublevel} -p %%{kver_full} -s %%{NAME} -r %%{kroko_mk_release}
%nvidia_modules_pkg -e %{EVRD} -m 390,470,510,515 -p %{kver_full}
%endif
%ksob_mk_module_pkg -n xt_TRIPSO -s net -r tripso
%ksob_mk_module_pkg -n xt_so -s net -r ipt-so
%ksob_mk_module_pkg -n v4l2loopback -s drivers/media -r v4l2loopback

%if %{with binary_shredder}
%ksob_mk_module_pkg -n shredder-kernel -s extra -r rosa-shredder-user
%endif

#-----------------------------------------------------------------------------

###############
# Virtualbox host

%if %{with binary_virtualbox_host}
%ksob_mk_module_pkg -n vboxnetflt -s misc
%ksob_mk_module_pkg -n vboxnetadp -s misc
%ksob_mk_module_pkg -n vboxdrv -s misc
%ksob_mk_module_pkg -n vboxpci -s misc

# A package which will pull all those modules
%package -n kernel-modules-virtualbox-host-%{ksob_kernel}
Summary:	Meta package to pull VirtualBox host kernel modules for kernel-%{flavour}-%{kernelversion}.%{patchlevel}
Group:		System/Kernel and hardware
Requires:	kernel-module-vboxnetflt-%{ksob_kernel}
Requires:	kernel-module-vboxnetadp-%{ksob_kernel}
Requires:	kernel-module-vboxdrv-%{ksob_kernel}
Requires:	kernel-module-vboxpci-%{ksob_kernel}
Obsoletes:	kernel-modules-virtualbox-host-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description -n kernel-modules-virtualbox-host-%{ksob_kernel}
Meta package to pull VirtualBox host kernel modules for %{name}.

%files -n kernel-modules-virtualbox-host-%{ksob_kernel}
# empty
%endif
#End of ifarch x86

#-----------------------------------------------------------------------------

%if %{with nickel}
%ksob_mk_module_pkg -n nlkm -s misc
%ksob_mk_module_pkg -n memfreetest -s misc
%ksob_mk_module_pkg -n pcietest -s misc
%endif

%endif
# End of binary_extra_modules

#################################################################

%if %{with flow_abi}
%package -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
Summary:	Directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x
Group:		System/Kernel and hardware

%description -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
This package contains a directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x.
Some vendors provide binary-only kernel modules. They can put them into /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi.
kmod tools will find them for kernels 5.4.x of "generic" and "nickel" flavours
but there is no guarantee that these modules will load and work correctly on
newer or older kernels then the ones they were build against.

We call this "flow ABI" because most ABIs are not changed between %{kernelversion}.%{patchlevel}.x releases,
but there are no specific guarantees. ABI may evolve and change.
We highly recommend to use DKMS and build third-party kernel modules from source for every kernel!
This package does nothing, just owns a directory for third-party binary kernel modules.

%files -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
# End of flow_abi

################################################

%prep
# Avoid accidental merge
%if 0%{?rpm5}
%{error:Package structure is for dnf, not for urpmi!}
%endif

%setup -q -n %{top_dir_name} -c
%if %{with uml}
cp -r %{src_dir} %{src_dir}.uml
%endif
cd %{src_dir}

%autopatch -p1

#
# Setup Begin
#

##################################
# Kernel configuration

echo "Creating the kernel configuration file."

# Configs
cp %{SOURCE111} .
cp %{SOURCE112} .
cp %{SOURCE113} .
cp kernel-%{arch_suffix}.config .config

touch %{build_dir}/.config.append

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
# Wipe all .gitignore/.get_maintainer.ignore files
find . -name "*.g*ignore" -delete

# Enable debug info if requested.
sed -i '/CONFIG_DEBUG_INFO/d' .config
%if %build_debug
echo 'CONFIG_DEBUG_INFO=y' >> %{build_dir}/.config.append
echo 'CONFIG_DEBUG_INFO_DWARF4=y' >> %{build_dir}/.config.append
echo 'CONFIG_GDB_SCRIPTS=y' >> %{build_dir}/.config.append
%else
echo 'CONFIG_DEBUG_INFO=n' >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_FORCE/d' .config
%if %{with oblig_signed_modules}
# Disallow loading not signed modules
# But 0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch allows to override this in cmdline
echo CONFIG_MODULE_SIG_FORCE=y >> %{build_dir}/.config.append
%else
echo CONFIG_MODULE_SIG_FORCE=n >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_KEY/d' .config
# Set path to the key that will be generated later by openssl/libressl
echo CONFIG_MODULE_SIG_KEY=\"%{certs_signing_key_priv_rnd}\" >> %{build_dir}/.config.append

# Set path to one PEM file with all keys that the kernel must trust
sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/d' .config
echo CONFIG_SYSTEM_TRUSTED_KEYS=\"%{certs_public_keys}\" >> %{build_dir}/.config.append

# Memory wiping
# Introduced in kernel 5.3 by commit 6471384af2a6530696fc0203bafe4de41a23c9ef
# Estimated performance impact is described in the commit
# "Fill newly allocated pages and heap objects with zeroes."
# To enable, add to cmdline: init_on_alloc=1
sed -i '/CONFIG_INIT_ON_ALLOC_DEFAULT_ON/d' .config
echo CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n >> %{build_dir}/.config.append
# "Fill freed pages and heap objects with zeroes"
# To disable, add to cmdline: init_on_free=0
sed -i '/CONFIG_INIT_ON_FREE_DEFAULT_ON/d' .config
%if %{with nickel}
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=y >> %{build_dir}/.config.append
%else
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=n >> %{build_dir}/.config.append
%endif
# Here enabling only either only init_on_free or only init_on_alloc
# makes sense; init_on_alloc is not about protecting information.

# To load kernel keyring in UML
for i in STREEBOG SHA1 SHA256 SHA512 ECRDSA RSA ; do
	if ! grep -q "^CONFIG_CRYPTO_${i}=y$" .config; then
		sed -i "/CONFIG_CRYPTO_${i}/d" .config
		echo "CONFIG_CRYPTO_${i}=y" >> %{build_dir}/.config.append
	fi
done

cat %{build_dir}/.config.append >> .config

##################
# End of kernel config


# Store the config file in the appropriate directory.
CONFIG_DIR=arch/%{arch_type}/configs
mkdir -p "${CONFIG_DIR}"

cfg_file=arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour}

make ARCH=%{arch_type} oldconfig
# When it is needed to edit kernel configs, run:
# abf fetch
# rpmbuild --define "_sourcedir $PWD" --with=fail -bb kernel.spec
# and then work with the config in the buildroot with applied patches etc.
%{?_with_fail:exit 1}
mv .config ${cfg_file}
echo "Created ${cfg_file}."

# Make sure the kernel has the sublevel we know it has...
LC_ALL=C sed -ri "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
find . -name '.get_maintainer.ignore' | %kxargs rm -f

# Versionize python shebang (#!/usr/bin/env python -> #!/usr/bin/python3) in scripts
sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},' \
	scripts/bloat-o-meter \
	scripts/checkkconfigsymbols.py \
	scripts/diffconfig \
	scripts/jobserver-exec \
	scripts/show_delta \
	scripts/spdxcheck.py \
	scripts/clang-tools/gen_compile_commands.py \
	scripts/clang-tools/run-clang-tools.py \
	scripts/tracing/draw_functrace.py \
	tools/hv/vmbus_testing \
	tools/kvm/kvm_stat/kvm_stat \
	tools/perf/python/tracepoint.py \
	tools/perf/python/twatch.py \
	tools/power/pm-graph/bootgraph.py \
	tools/power/pm-graph/sleepgraph.py \
	tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py \
	tools/testing/kunit/kunit.py \
	tools/testing/kunit/kunit_tool_test.py \
	tools/testing/selftests/bpf/test_offload.py \
	tools/testing/selftests/drivers/net/mlxsw/sharedbuffer_configuration.py \
	tools/testing/selftests/exec/binfmt_script \
	tools/testing/selftests/net/devlink_port_split.py \
	tools/testing/selftests/tc-testing/tdc.py \
	tools/testing/selftests/tc-testing/tdc_batch.py \
	tools/testing/selftests/tc-testing/tdc_multibatch.py \
	Documentation/sphinx/kernel_include.py \
	Documentation/sphinx/maintainers_include.py \
	Documentation/sphinx/rstFlatTable.py \
	Documentation/target/tcm_mod_builder.py

# Drop env from bash scripts
sed -i '1 s,^#!.*env .*,#!%{_bindir}/bash,' scripts/config

# Drop env from perl scripts
sed -i '1 s,^#!.*env .*,#!%{_bindir}/perl,' \
	scripts/bootgraph.pl \
	scripts/checkincludes.pl \
	scripts/checkkconfigsymbols.py \
	scripts/checkpatch.pl \
	scripts/checkstack.pl \
	scripts/checkversion.pl \
	scripts/cleanfile \
	scripts/cleanpatch \
	scripts/documentation-file-ref-check \
	scripts/export_report.pl \
	scripts/extract-module-sig.pl \
	scripts/extract-sys-certs.pl \
	scripts/extract_xc3028.pl \
	scripts/get_abi.pl \
	scripts/get_dvb_firmware \
	scripts/get_maintainer.pl \
	scripts/headerdep.pl \
	scripts/headers_check.pl \
	scripts/kernel-doc \
	scripts/leaking_addresses.pl \
	scripts/markup_oops.pl \
	scripts/profile2linkerlist.pl \
	scripts/recordmcount.pl \
	scripts/split-man.pl \
	scripts/stackdelta \
	scripts/dtc/dt_to_config \
	scripts/kconfig/streamline_config.pl \
	tools/testing/ktest/compare-ktest-sample.pl \
	tools/testing/selftests/kselftest/prefix.pl \
	Documentation/sphinx/parse-headers.pl

############################################################################

%build
# Ensure that build time generated private keys don't get published
# as e.g. "RPM build root" on ABF!
# Note that ABF sends SIGKILL to rpm-build.sh when the build is terminated;
# in this case trap will not work, but RPM build root also will not be
# saved because rpm-build.sh saves it, but it is SIGKILLed.
# For best security we could store private keys in RAM (not reachable from
# filesystem, so not in /tmp!) and override sth like fopen() by LD_PRELOAD
# to give the content of keys from RAM when a virtual address of a key file
# is accessed, but currently I don't know how to implement this (TODO: ).
_cleanup(){
# Show resulting kernel public keys for debugging
	cat "%{src_dir}/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}/%{certs_dir_rnd}"
%if %{with uml}
	cat "%{src_dir}.uml/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}.uml/%{certs_dir_rnd}"
%endif
}
# Make a trap to delete keys even if %%build fails in the middle
trap "_cleanup" EXIT

rm -rf %{temp_root}
install -d %{temp_root}

cd %{src_dir}

### Keys for signing kernel modules
# Keys can be generated both manually and automatically,
# let's generate them by ourselves to take full control of the process
# https://www.ibm.com/support/knowledgecenter/en/SSB23S_1.1.0.13/gtps7/cfgcert.html
# See also certs/Makefile in kernel source
mkdir -p "%{certs_dir_rnd}"

# On ABF, %%packager == $username <$email>
# Try to extract email from %%packager if it is set
_get_email(){
	# Check that macro %%packager was set and is not empty
	if echo '%{packager}' | grep -q 'packager}$' || [ -z "%{packager}" ]
		# If was not set or is empty, use default email
		then echo 'rpmbuild@rosa.unknown' && return
		# Otherwise try to extract email from 'name <email>' or sth else
		else temp="$(echo '%{packager}' | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | tr -d '<>' | grep -E '@.*\..*' | head -n 1)"
	fi
	# Validate that what we have now is a valid email
	# https://stackoverflow.com/a/2138832, https://stackoverflow.com/a/41192733
	# Note that we set %%_buildshell to /bin/bash to guarantee the work of this bashism
	regex_email="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
	if [[ "$temp" =~ ${regex_email} ]]
		# If it is, use it
		then echo "$temp" && return
		# Otherwise use default email
		else echo 'rpmbuild@rosa.unknown' && return
	fi
	# If script above has not return'ed for any reason,
	# e.g. because of non-bash shell being not able to
	# process regexp, use default email
	echo 'rpmbuild@rosa.unknown'
}
email="$(_get_email)"

cat <<EOF > "%{certs_key_config_rnd}"
[ req ]
prompt = no
string_mask = utf8only
#default_keyfile = %%{certs_signing_key_priv_rnd}
distinguished_name = req_distinguished_name
x509_extensions = myexts
[ req_distinguished_name ]
organizationName = %{vendor} rpmbuild
commonName = Build time autogenerated @ALGO@ kernel key
emailAddress = ${email}
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
cat "%{certs_key_config_rnd}"
sed -e 's,@ALGO@,RSA,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.RSA"
sed -e 's,@ALGO@,GOST R 34.10-2012,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.GOST"
# Avoid using the template
rm -f "%{certs_key_config_rnd}"

_libressl_gen_key(){
	if [ "$GOST_KEY" = 1 ]
	then
		lssl_req_gost_args="\
			-newkey gost2001 \
			-pkeyopt dgst:streebog512 -pkeyopt paramset:A \
			-streebog512"
		OUT="%{certs_signing_key_priv_rnd}.GOST"
		CONFIG="%{certs_key_config_rnd}.GOST"
	else
		lssl_req_gost_args=""
		OUT="%{certs_signing_key_priv_rnd}.RSA"
		CONFIG="%{certs_key_config_rnd}.RSA"
	fi
		libressl req -new -nodes -utf8 -batch \
			$lssl_req_gost_args \
			-days 109500 \
			-x509 -config "$CONFIG" \
			-out "$OUT" \
			-keyout "$OUT"

	# Verify
	if [ "$GOST_KEY" = 1 ]; then
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
	fi
}

GOST_KEY=0 _libressl_gen_key
GOST_KEY=1 _libressl_gen_key
# Fake CONFIG_MODULE_SIG_KEY to make build scripts happy
cp -v "%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}"

# Strip public parts from the generated PEMs
sed -n \
	'/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' \
	"%{certs_signing_key_priv_rnd}.GOST" \
	"%{certs_signing_key_priv_rnd}.RSA" \
	> "%{certs_public_keys}"

# Link sign-file and extract-cert with LibreSSL instead of OpenSSL
if [ $? != 0 ] ; then exit $? ; fi
sed -i %{src_dir}/scripts/Makefile \
%if %{with uml}
	%{src_dir}.uml/scripts/Makefile \
%endif
	-e "s, libcrypto , libressl-libcrypto ,g"

%if %{with additional_keys}
# Add additional public RSA keys to the list of trusted keys for kernel modules
# Build kernel --without additional_keys if you do not want to trust them
cat %{expand:%(for i in `seq 1 12`; do echo "%%SOURCE$((200+${i}))" | tr "\n" " "; done)} \
	>> "%{certs_public_keys}"
%endif
# End of additional_keys
cat %{certs_public_keys}

# .config
%smake -s mrproper
cp arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour} .config

# Make sure EXTRAVERSION says what we want it to say
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{flavour}-%{buildrpmrel}/" Makefile

# Build the kernel
echo "Building kernel %{kver_full}"

TARGETS="all"
# need to install dtbs to proper boot arm64 devices
%ifarch %{armx}
	TARGETS="$TARGETS dtbs"
%endif

%kmake V=1 -s $TARGETS

# Install modules
mkdir -p %{temp_modules}/%{kver_full}
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=%{kver_full} modules_install

%if %{with binary_extra_modules}
# Build and install procedure is specific to each Makefile from kernmel-source-* packages
# See also: https://www.kernel.org/doc/html/latest/kbuild/modules.html
# Copy directory because write permissions are required
# `make modules_install` must be done before this, otherwise these copied files will be deleted

cp -r "$(rpm -q --qf '/usr/src/rtl8821ce-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821ce)" kernel-source-rtl8821ce
pushd kernel-source-rtl8821ce
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821ce.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821ce.ko
popd
rm -fr kernel-source-rtl8821ce

cp -r "$(rpm -q --qf '/usr/src/rtl8821cu-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821cu)" kernel-source-rtl8821cu
pushd kernel-source-rtl8821cu
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821cu.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821cu.ko
popd
rm -fr kernel-source-rtl8821cu

_build_nvidia(){
	cp -r "$(rpm -q --qf "/usr/src/nvidia${1}-%%{VERSION}-%%{RELEASE}" kernel-source-nvidia${1})" kernel-source-nvidia${1}
	pushd kernel-source-nvidia${1}
	%make SYSSRC=%{src_dir}
	mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}
	cp *.ko %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}
	popd
	rm -fr kernel-source-nvidia${1}
}

%ifarch %{ix86} %{x86_64}
cp -r "$(rpm -q --qf '/usr/src/broadcom-wl-%%{VERSION}-%%{RELEASE}' kernel-source-broadcom-wl)" kernel-source-broadcom-wl
pushd kernel-source-broadcom-wl
%kmake -C %{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp wl.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/wl.ko
popd
rm -fr kernel-source-broadcom-wl

_build_nvidia 390
%endif

%ifarch %{x86_64}
_build_nvidia 470
_build_nvidia 510
_build_nvidia 515
%endif

cp -r "$(rpm -q --qf '/usr/src/tripso-%%{VERSION}-%%{RELEASE}' kernel-source-tripso)" kernel-source-tripso
pushd kernel-source-tripso
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_TRIPSO.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-tripso

cp -r "$(rpm -q --qf '/usr/src/ipt-so-%%{VERSION}-%%{RELEASE}' kernel-source-ipt-so)" kernel-source-ipt-so
pushd kernel-source-ipt-so
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_so.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-ipt-so

%if %{with binary_shredder}
cp -r "$(rpm -q --qf '/usr/src/shredder-kernel-%%{VERSION}-%%{RELEASE}' kernel-source-shredder-kernel)" kernel-source-shredder-kernel
pushd kernel-source-shredder-kernel
%kmake KERNEL_PATH=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/extra/
cp shredder-kernel.ko %{temp_modules}/%{kver_full}/kernel/extra/
popd
rm -fr kernel-source-shredder-kernel
%endif

%if %{with binary_virtualbox_host}
# build commands for virtualbox are based on the ones from the virtualbox package
cp -r "$(rpm -q --qf '/usr/src/virtualbox-%%{VERSION}-%%{RELEASE}' kernel-source-virtualbox)" kernel-source-virtualbox
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
pushd kernel-source-virtualbox
make -C vboxdrv KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxdrv/Module.symvers vboxnetflt
cp -fv vboxdrv/Module.symvers vboxnetadp
make -C vboxnetflt KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
make -C vboxnetadp KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxnetadp/Module.symvers vboxpci/
make -C vboxpci KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
for i in vboxnetflt vboxnetadp vboxdrv vboxpci
do
	cp -v "${i}/${i}.ko" %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif

cp -r "$(rpm -q --qf '/usr/src/v4l2loopback-%%{VERSION}-%%{RELEASE}' kernel-source-v4l2loopback)" kernel-source-v4l2loopback
pushd kernel-source-v4l2loopback
cat Kbuild > Makefile
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/media
make -C %{src_dir} M="$PWD" modules
cp v4l2loopback.ko %{temp_modules}/%{kver_full}/kernel/drivers/media
pushd
rm -fr kernel-source-v4l2loopback

%if %{with nickel}
# rosa-test-suite uses /sr/src/xxx-version, not /usr/src/xxx-version-release
cp -r "$(rpm -q --qf '/usr/src/rosa-test-suite-%%{VERSION}' kernel-source-rosa-test-suite)" kernel-source-rosa-test-suite
pushd kernel-source-rosa-test-suite
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
for i in nlkm memfreetest pcietest
do
cat << EOF > Makefile
obj-m := ${i}.o
all:
	make -C %{src_dir} M=\$(PWD) modules
EOF
%kmake
cp -fv ${i}.ko %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif
# End with nickel <- with binary_extra_modules

%endif
# End with binary_extra_modules

%if %{with uml}
cp -rv %{certs_dir_rnd} %{src_dir}.uml/
pushd %{src_dir}.uml
%kmake ARCH=um defconfig
%kmake ARCH=um linux
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
#rm -fv linux
%kmake V=1 ARCH=um modules
mkdir -p %{temp_root}/lib/modules-uml/%{kver_full}/
%kmake ARCH=um INSTALL_MOD_PATH=%{temp_root}/lib/modules-uml/%{kver_full}/ modules_install
popd
%endif

install -d %{temp_boot}
install -m 644 System.map %{temp_boot}/System.map-%{kver_full}
install -m 644 .config %{temp_boot}/config-%{kver_full}
%if %{with modxz}
xz -c Module.symvers > %{temp_boot}/symvers-%{kver_full}.xz
%else
%{zstd_cmd} Module.symvers
install -m 644 Module.symvers.zst %{temp_boot}/symvers-%{kver_full}.zst
%endif

%ifarch %{armx}
%make_build ARCH=%{arch_type} V=1 INSTALL_DTBS_PATH=%{temp_boot}/dtb-%{kver_full} dtbs_install
%endif

%ifarch aarch64
	cp -f arch/arm64/boot/Image.gz %{temp_boot}/vmlinuz-%{kver_full}
%else
	cp -f arch/%{arch_type}/boot/bzImage %{temp_boot}/vmlinuz-%{kver_full}
%endif

# Headers
%if %{build_headers}
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=%{kver_full} headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
%endif

# Remove /lib/firmware, we use a separate linux-firmware package
rm -rf %{temp_root}/lib/firmware

# Prepare the files for kernel*-devel
%if %{build_devel}

mkdir -p %{temp_devel_root}
for i in $(find . -name 'Makefile*'); do cp -R --parents $i %{temp_devel_root}; done
for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i %{temp_devel_root}; done

cp -fR include %{temp_devel_root}

cp -fR scripts %{temp_devel_root}
cp -fR kernel/bounds.c %{temp_devel_root}/kernel
cp -fR kernel/time/timeconst.bc %{temp_devel_root}/kernel/time
cp -fR tools %{temp_devel_root}/
cp -fR arch/%{arch_type}/kernel/asm-offsets.{c,s} %{temp_devel_root}/arch/%{arch_type}/kernel/
%ifarch %{ix86} %{x86_64}
cp -fR arch/%{arch_type}/kernel/asm-offsets_{32,64}.c %{temp_devel_root}/arch/%{arch_type}/kernel/
cp -fR arch/%{arch_type}/purgatory/* %{temp_devel_root}/arch/%{arch_type}/purgatory/
# Needed for arch/x86/purgatory
cp -fR lib/*.h lib/*.c %{temp_devel_root}/lib/
cp -fR arch/%{arch_type}/entry/syscalls/syscall* %{temp_devel_root}/arch/%{arch_type}/entry/syscalls/
cp -fR arch/%{arch_type}/tools %{temp_devel_root}/arch/%{arch_type}/
# needed for kexec
cp -fR arch/%{arch_type}/boot/*.h %{temp_devel_root}/arch/%{arch_type}/boot/
cp -fR arch/%{arch_type}/boot/*.c %{temp_devel_root}/arch/%{arch_type}/boot/
%endif
cp -fR arch/%{arch_type}/include %{temp_devel_root}/arch/%{arch_type}/
cp -fR .config Module.symvers %{temp_devel_root}

# Needed for truecrypt build (Danny)
cp -fR drivers/md/dm.h %{temp_devel_root}/drivers/md/

# Needed for lirc_gpio (#39004)
cp -fR drivers/media/pci/bt8xx/bttv{,p}.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/pci/bt8xx/bt848.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/common/btcx-risc.h %{temp_devel_root}/drivers/media/common/

# Add acpica header files, needed for fglrx build
cp -fR drivers/acpi/acpica/*.h %{temp_devel_root}/drivers/acpi/acpica/

%if %{with aufs}
# aufs2 has a special file needed
cp -fR fs/aufs/magic.mk %{temp_devel_root}/fs/aufs
%endif

# SELinux needs security/selinux/include
cp -fR security/selinux/include %{temp_devel_root}/security/selinux

for i in alpha arc avr32 blackfin c6x cris csky frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
	mips mn10300 nds32 nios2 openrisc parisc powerpc riscv s390 score sh sparc tile unicore32 xtensa; do
	rm -rf %{temp_devel_root}/arch/$i
done

# Clean the scripts tree, and make sure everything is ok (sanity check)
# running prepare+scripts (tree was already "prepared" in build)
pushd %{temp_devel_root}
	%smake V=1 -s clean ARCH=%{arch_type}
popd

rm -f %{temp_devel_root}/.config.old

# Fix permissions
chmod -R a+rX %{temp_devel_root}

# Disable mrproper in -devel rpms
patch -p1 --fuzz=0 -d %{temp_devel_root} -i %{SOURCE2}
%endif
# End of build_devel


# TODO: maybe move to /usr/lib/debug?
%if %{build_debug}
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | \
	%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | %kxargs -I '{}' \
	sh -c 'cd `dirname {}`; \
		objcopy --add-gnu-debuglink=`basename {}`.debug \
		--strip-debug `basename {}`'
%endif
# End of build_debug

# https://patchwork.kernel.org/patch/11446123/
_libressl_sign(){
	if [ ! -f "$1" ]; then
		echo "No file $1"
		return 0
	fi
	f="$1"
%if %{with gost_sign}
	%{src_dir}/scripts/sign-file streebog512 \
		"%{certs_signing_key_priv_rnd}.GOST" "%{certs_signing_key_priv_rnd}.GOST" "$f"
%else
	%{src_dir}/scripts/sign-file sha512 \
		"%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}.RSA" "$f"
%endif
	unset f
}
export -f _libressl_sign
find %{temp_modules}/%{kver_full}/kernel \
%if %{with uml}
	%{temp_root}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -e -x -c 'if ! _libressl_sign "{}"; \
		then echo Failed _libressl_sign on "{}" && exit 1; fi'

# Set extraversion to match srpm to get nice version reported by the tools
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
%smake -C tools/perf -s PYTHON=%{__python3} HAVE_CPLUS_DEMANGLE=1 WERROR=0 prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 man
%endif

%if %{build_cpupower}
# Make sure version-gen.sh is executable.
chmod +x tools/power/cpupower/utils/version-gen.sh
%make -C tools/power/cpupower CPUFREQ_BENCH=false
%endif

_cleanup

############################################################################

%install
cd %{src_dir}

# We want to be able to test several times the install part
rm -rf %{buildroot}
cp -a %{temp_root} %{buildroot}

#if %%{with oblig_signed_modules}
# Multithreaded verification that every kernel module has a signature attached to it
mkdir -p "%{certs_dir_rnd}"
touch %{certs_verify_tmp}
_verify_signature(){
	if [ -z "$1" ] || [ ! -f "$1" ]; then return; fi
	if hexdump -C "$1" | rev | cut -f 2 -d '|' | rev | tr -d '\n' | grep -q '~Module signature appended~'; then
		if [ -f %{certs_verify_tmp} ]; then
			rm -f %{certs_verify_tmp}
		fi
	else
		echo "ERROR: Module $1 has no signature attached to it!"
		exit 1
	fi
}
export -f _verify_signature
find %{target_modules} \
%if %{with uml}
	%{buildroot}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -c '_verify_signature "{}"'
if [ -f %{certs_verify_tmp} ]; then
	echo "ERROR: seems that signatures of none modules were verified!"
	exit 1
fi
rm -f %{certs_verify_tmp}
#endif

# Compressing modules
%if %{with compress_modules}
# Tested on /lib/modules/5.10.34-generic-2rosa2019.1-x86_64, the results are the following:
# * decompressed: 266.3 MiB
# * xz -9 --extreme: 67.8 MiB
# * zstd --ultra -22 without training: 73.5 MiB
# * zstd -6 without training: 79.6 MiB
# * zstd --ultra -22 with training: 66.3 MiB (the winner!)
# Training takes only a few minutes, make it here in place with current zstd and kernel modules.
# But! Decompressing also requires a dictionary for zstd, that will be too complex, so not using training :(
# We already use zstd in dracut to compress initrds quickly and with good compression ration.
# Testing speed of loading modules:
# `time modinfo bcache.ko.xz` took 0,048s, `time modinfo bcache.ko.zstd` took 0,014s (for multiple times)
# find /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 -type f -name '*.ko.zst' > /tmp/zst.list
# time { for i in `cat /tmp/zst.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took ~31-40s, with disk cache (2+ runs) ~33s
# find /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 -type f -name '*.ko.xz' > /tmp/xz.list
# time { for i in `cat /tmp/xz.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took 43-47s, with disk cache (2+ runs) ~42s, +21%%
# zstd-compressed initramfs image initrd-5.10.34-generic-1rosa2019.1-x86_64.img with *.ko.xz is 56,3 MiB
# zstd-compressed initramfs image initrd-5.10.34-generic-2rosa2019.1-x86_64.img with *.ko.zst is 58,4 MiB (+3.6%%)
# /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 (*.ko.xz) is 78,1 MiB
# /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 (*.ko.zst) is 83,9 MiB (+7%%)
# When zstd is compressing cpio (initrd image) with zstd-compressed kernel modules inside it, does it recompress data?
# It is not easy to make a choice between zstd and xz for kernel modules... Disk space (and so speed of installing
# RPM packages) is not much bigger, we do not try to support super low end devices, operation speed is a bit better.
# I have not seen measurable difference in startup time according to systemd-analyze.
# Note that decompression after zstd --ultra -22 will consume more memory than after zstd -6, see commit message in
# https://github.com/torvalds/linux/commit/73f3d1b48f5069d46b. I did not benchmark -6 vs -22 in runtime.
# Let's use zstd for now.
# zstd may also be used to compress linux-firmware to save a lot of space on disk,
# but upstream kernels still cannot decompress it.
#{zstd_cmd} -T0 --train $(find . -type f -name '*.ko')
#[ -f dictionary ]
# -T1 (one thread) because we run multiple zstd processes by xargs
%if %{with modxz}
find %{target_modules} -name "*.ko" | %kxargs xz -6e
%else
find %{target_modules} -name "*.ko" | %kxargs %{zstd_cmd} --rm -T1 #-D dictionary
rm -f dictionary
%endif
%endif

find %{buildroot}%{_modulesdir}/%{kver_full} -type f -name '*.ko%{kmod_suffix}' | sed -e 's,^%{buildroot},,' | sort -u >> %{kernel_files}
find %{buildroot}%{_modulesdir}/%{kver_full} -type d | sed -e 's,^%{buildroot},%dir ,' | sort -u >> %{kernel_files}

# We estimate the size of the initramfs because rpm needs to take this size
# into consideration when performing disk space calculations (See rhbz#530778)
# 65 MiB is a bit more than needed, but let's be more sure that there is enought space.
# On my PC, zstd-compressed initrds take 58,5 MiB.
# Real size of the RPM package should not increase because RPM compresses the payload.
# This file is %%ghost, so the real initrd will be deleted when uninstalling this package.
dd if=/dev/zero of=%{buildroot}%{initrd_path} bs=1M count=65

%if %{build_debug}
install -m 644 vmlinux %{buildroot}%{_bootdir}/vmlinux-%{kver_full}
find %{buildroot}%{_modulesdir} -type f -name '*.debug' | sed -e 's,^%{buildroot},,' | sort -u >> %{debuginfo_files}
%endif
# End of build_debug

pushd %{target_modules}
for i in *; do
	rm -f $i/build $i/source
	ln -sf /usr/src/linux-$i $i/build
	ln -sf /usr/src/linux-$i $i/source
done

# Sniff, if we compressed all the modules, we change the stamp :(
# we really need the depmod -ae here
for i in *; do
	/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
	echo $?
done

# We used to create modules.description files which contained the
# description strings for the modules as shown by modinfo. These files
# are unlikely to be used right now, so create them (in case some old tool
# checks for their existence) but keep them empty.
for i in *; do
	touch $i/modules.description
done
popd

# Need to set extraversion to match srpm again to avoid rebuild
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
# Perf tool binary and supporting scripts/binaries
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} lib=%{_lib} install

# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},' \
	%{buildroot}%{_prefix}/libexec/perf-core/scripts/python/exported-sql-viewer.py \
	%{buildroot}%{_prefix}/libexec/perf-core/scripts/python/libxed.py

# Perf man pages (note: implicit rpm magic compresses them later)
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
%endif

%if %{build_cpupower}
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
rm -f %{buildroot}%{_libdir}/*.{a,la}

%find_lang cpupower

mv cpupower.lang ../
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE50} %{buildroot}%{_unitdir}/cpupower.service
install -m644 %{SOURCE53} %{buildroot}%{_unitdir}/cpupower.path
install -m644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
install -m755 %{SOURCE52} %{buildroot}%{_bindir}/cpupower-start.sh
%endif

# Delete junk
rm -fr %{buildroot}%{_usr}/src/*/kernel-source-*

%if %{with flow_abi}
# Prefix with "zzz" to put this directory into the end of search list
# and avoid tricks with depmod configs
mkdir -p %{buildroot}/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
ln -s /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi %{buildroot}%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

# Drop hidden files
rm -f %{buildroot}%{_docdir}/kernel-5.10-generic-doc/devicetree/bindings/.yamllint

# Fix perms
chmod -x %{buildroot}%{_sysconfdir}/bash_completion.d/perf
chmod -x %{buildroot}%{_prefix}/lib/perf/examples/bpf/*.c
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/*.h
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/linux/*.h
chmod -x %{buildroot}%{_datadir}/doc/perf-tip/*.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13739 |21mr|kernel-5.17-generic-5.17.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# _get_email() in %%build contains bashisms for regexping
%define	_buildshell /bin/bash

# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define	_python_bytecompile_build 0

# Probably dwz bug, on i686 only file is not packaged:
# /usr/lib/debug/usr/bin/trace-5.4.40-3.i386.debug.#dwz#.b5xuKG
# dwz compresses only debuginfo from perf, cpupower, uml,
# not the kernel itself (because it is stripped not by RPM),
# so we do not loose much by disabling it.
%global	_find_debuginfo_dwz_opts %{nil}

# Put everything into one non-standard debuginfo subpackage
# TODO: make multiple debuginfo packages coinstallable as installonlypkg,
# to achive this, there must be no conflicting files.
# Probably signing and compressing of kernel modules
# has to be moved to %%_spec_install_post.
%global	_debuginfo_subpackages %{nil}
%global	_debuginfo_template %{nil}
%undefine	_debugsource_packages

# Hack: flavour and major version are variable, make %%_build_pkgcheck_* always detect and use this config
%global	_build_pkgcheck_set %(echo "%{_build_pkgcheck_set}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')
%global	_build_pkgcheck_srpm %(echo "%{_build_pkgcheck_srpm}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')

%define	kernelversion 5
%define	patchlevel 17
%define	sublevel 11

# Release number. Increase this before a rebuild.
%define	rpmrel 2
%define	fullrpmrel	%{rpmrel}

%define	rpmtag	%{disttag}

# Version defines
%define	kversion	%{kernelversion}.%{patchlevel}.%{sublevel}
%define	kverrel	%{kversion}-%{fullrpmrel}
%define	tar_ver	%{kernelversion}.%{patchlevel}

%ifarch %{ix86}
%define	arch_suffix	i686
%endif

%ifarch %{x86_64}
%define	arch_suffix	x86_64
%endif

%ifarch aarch64
%define	arch_suffix	arm64
%endif

%define	buildrpmrel	%{fullrpmrel}%{rpmtag}-%{arch_suffix}
%define	buildrel	%{kversion}-%{buildrpmrel}

# Add not only the build time generated key to the trusted keyring,
# but also add public keys of private ROSA's keys
%bcond_without	additional_keys

# Fail the build after "make oldconfig" to edit kernel configs
%bcond_with	fail

# User Mode Linux, https://habr.com/ru/company/itsumma/blog/459558/
# Not buildable on aarch64
%ifarch %{x86_64}
%bcond_without	uml
%else
%bcond_with	uml
%endif

# "Nickel" is a special brand for certified distros
%if %{mdvver} == 201905
%bcond_without	nickel
# Require kernel modules to be signed
%bcond_without	oblig_signed_modules
%else
%bcond_with nickel
%bcond_with oblig_signed_modules
%endif

%if %{mdvver} >= 201905
# Build binary out-of-tree kernel modules (experimental)
%bcond_without binary_extra_modules
# Sign kernel modules with GOST key (experimental)
%bcond_without gost_sign
%else
%bcond_with binary_extra_modules
%bcond_with gost_sign
%endif

%bcond_with ccache
%bcond_without flow_abi
%bcond_without aufs

# 1. VirtualBox is for x86_32 and x86_64 only
# 2. I do not know how to solve the problem that userspace part of VirtualBox
# will be updated ahead of these binary modules. So just off building them.
%bcond_with binary_virtualbox_host

# Shredder-kernel works only on x86_64, makes manipulations with syscalls tables,
# loading/unloading of the module failed sometimes on kernel 5.4
# and it has not been adapted for kernel 5.10 (is not buildable)
%bcond_with binary_shredder

# Compress modules with zstd (zstd is good compression and fast decompression)
%bcond_without compress_modules
# Spend more resources on compression, but make resulting size less;
# decompression speed will not be affected, but more memory will be required
# which should not a problem here (performance penalty from allocating more
# memory should not be big, I think, but I did not benchmark).
%define	zstd_cmd zstd -q --format=zstd --ultra -22
# Optionally keep using xz as compressor
#bcond_without	modxz

# Kernel flavour
%if %{with nickel}
%define	flavour	nickel
%else
%define	flavour	generic
%endif

# The full kernel version
%define	kver_full	%{kversion}-%{flavour}-%{buildrpmrel}

############################################################################

%define	top_dir_name	kernel-%{_arch}
%define	build_dir	${RPM_BUILD_DIR}/%{top_dir_name}
%define	src_dir	%{build_dir}/linux-%{tar_ver}

# Common target directories
%define	_bootdir	/boot
%define	_modulesdir	/lib/modules
%define	devel_root	/usr/src/linux-%{kver_full}
%define	initrd_path %{_bootdir}/initrd-%{kver_full}.img

# Directories needed for building
%define	temp_root	%{build_dir}/temp-root
%define	temp_boot	%{temp_root}%{_bootdir}
%define	temp_modules	%{temp_root}%{_modulesdir}
%define	temp_devel_root	%{temp_root}%{devel_root}

# Directories definition needed for installing
%define	target_boot	%{buildroot}%{_bootdir}
%define	target_modules	%{buildroot}%{_modulesdir}

# Manual control of creating and deleting keys
# "rnd" is "random" and means that a key pair is generated at build time
# and is not saved anywhere.
%define	certs_dir_rnd certs
%define	certs_signing_key_priv_rnd %{certs_dir_rnd}/signing_key_priv.key
%define	certs_signing_der %{certs_dir_rnd}/signing_key.x509
%define	certs_key_config_rnd %{certs_dir_rnd}/x509.genkey
%define	certs_public_keys %{certs_dir_rnd}/public.pem
%define	certs_verify_tmp %{certs_dir_rnd}/verify.tmp

%define	kernel_files %{_builddir}/kernel_files.list
%define	debuginfo_files %{_builddir}/debuginfo_files.list

# Append list of files generate by find-debuginfo.sh to our custom list
%global	__debug_install_post \
%{__debug_install_post} \
cat %{_builddir}/debugfiles.list >> %{debuginfo_files}

############################################################################

#if %%{with binary_extra_modules}
# https://github.com/rpm-software-management/rpm/pull/1794
#define	nvidia_390_j %%(if rpm -q kernel-source-nvidia390 >/dev/null 2>&1; then rpm -q --qf '%%{version}' kernel-source-nvidia390 | awk -F '.' '{print $1}'; else echo 0; fi)
#define	nvidia_390_n %%(if rpm -q kernel-source-nvidia390 >/dev/null 2>&1; then rpm -q --qf '%%{version}' kernel-source-nvidia390 | awk -F '.' '{print $2}'; else echo 0; fi)
#define	nvidia_470_j %%(if rpm -q kernel-source-nvidia470 >/dev/null 2>&1; then rpm -q --qf '%%{version}' kernel-source-nvidia470 | awk -F '.' '{print $1}'; else echo 0; fi)
#define	nvidia_470_n %%(if rpm -q kernel-source-nvidia470 >/dev/null 2>&1; then rpm -q --qf '%%{version}' kernel-source-nvidia470 | awk -F '.' '{print $2}'; else echo 0; fi)

# For SRPM stage when auto-krokodil-rpm-macros is not installed
#{?!kroko_req_modules_in_kernel:%%define kroko_req_modules_in_kernel(j:n:p:) %%{nil}}
#endif

############################################################################

# Buildtime flags
%{?_without_doc: %global build_doc 0}
%{?_without_devel: %global build_devel 0}
%{?_without_debug: %global build_debug 0}
%{?_without_perf: %global build_perf 0}
%{?_without_cpupower: %global build_cpupower 0}

%{?_with_doc: %global build_doc 1}
%{?_with_devel: %global build_devel 1}
%{?_with_debug: %global build_debug 1}
%{?_with_perf: %global build_perf 1}
%{?_with_cpupower: %global build_cpupower 1}
%{?_with_modxz: %global build_modxz 0}

# Build defines
%define	build_doc	1
%define	build_devel	1
%define	build_debug	1

# Build kernel-headers package
%define	build_headers	0

# Build perf and cpupower tools
%define	build_perf	1
%define	build_cpupower	1

%if %{with compress_modules}
%if %{with modxz}
%define	kmod_suffix .xz
%else
%define	kmod_suffix .zst
%endif
%else
%define	kmod_suffix %{nil}
%endif

%if !%{build_debug}
# Disable debug rpms.
%define	_enable_debug_packages	%{nil}
%define	debug_package		%{nil}
%endif

# End of user definitions

# http://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/
%if %{with ccache}
%define	kmake KBUILD_BUILD_TIMESTAMP='' %make CC='ccache gcc' ARCH="%{arch_type}"
%else
%define	kmake %make CC='gcc' ARCH="%{arch_type}"
%endif

# There are places where parallel make don't work
%define	smake make
%ifarch %{ix86} %{x86_64}
%define	arch_type x86
%endif
%ifarch	aarch64
%define	arch_type arm64
%endif

# Parallelize xargs invocations on smp machines
%define	kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")

#
# SRC RPM description
#
Summary:	The Linux kernel
Name:		kernel-%{kernelversion}.%{patchlevel}-%{flavour}
Version:	%{kversion}
Release:	%{fullrpmrel}
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://www.kernel.org

####################################################################
#
# Sources
#
Source0:	https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.xz

# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
# Needed, because otherwise the -devel won't build correctly.
Source2:	0001-disable-mrproper-prepare-scripts-configs-in-devel-rp.patch

# TODO: Make a separate package "ksobirator" and BR it
# after testing these macros properly
Source3:	macros.ksobirator
%{load:%{SOURCE3}}
Source4:	macros.nvidia
%{load:%{SOURCE4}}

# Kernel configuration files.
Source111:	kernel-x86_64.config
Source112:	kernel-i686.config
Source113:	kernel-arm64.config

# Cpupower: the service, the config, etc.
Source50:	cpupower.service
Source51:	cpupower.config
Source52:	cpupower-start.sh
Source53:	cpupower.path

Source80:	kernel.rpmlintrc

# Additional keys that can be used to sign kernel modules
# Generated by https://abf.io/soft/kernel-keys
# Source201..206: public_key_GOST_*.pem
%{expand:%(for i in `seq 1 6`; do echo "Source$((200+${i})): public_key_GOST_${i}.pem"; done)}
# Source207..212: public_key_RSA_*.pem
%{expand:%(for i in `seq 7 12`; do echo "Source$((200+${i})): public_key_RSA_${i}.pem"; done)}

####################################################################

# Patches

# The patch to make kernel x.y.z from x.y.0.
Patch1:		https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.xz

# Patches from mainline
# none
Patch2:		kernel-5.10.93-fix-perf-build.patch

# ROSA-specific patches

# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid
# this.
Patch101:	0001-perf-skip-xmlto-validation.patch

# http://bugs.rosalinux.ru/show_bug.cgi?id=6235
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102:	0001-audit-make-it-less-verbose.patch

%if %{with aufs}
# AUFS 5 from http://aufs.sourceforge.net/
Patch109:	0001-Apply-AUFS-5.patch
%endif

# For kmod() generator of RPM Provides
# Changes version of aacraid.ko
Patch111:	0001-Remove-RPM-illegal-chars-from-module-version.patch

# AltHa LSM Module
# https://www.altlinux.org/AltHa
# http://git.altlinux.org/gears/k/kernel-image-un-def.git
# TODO: known problem: https://bugzilla.altlinux.org/show_bug.cgi?id=38225
Patch201:	0001-altha.patch

# sent to upstream, https://patchwork.kernel.org/patch/11446123/
Patch302:	0001-sign-file-full-functionality-with-modern-LibreSSL.patch
# Support loading GOST-signed modules
Patch305:	0001-crypto-support-loading-GOST-signed-kernel-modules.patch
# Allow to off modules signature check dynamically
Patch306:	0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch
# Experimental patch to reduce freezes in low memory conditions
# Config values are the following:
# CONFIG_UNEVICTABLE_ACTIVEFILE=y
# CONFIG_UNEVICTABLE_ACTIVEFILE_KBYTES_LOW=102400 (100 MB)
# CONFIG_UNEVICTABLE_ACTIVEFILE_KBYTES_MIN=51200 (50 MB)
# + zswap is enabled by default
# 50 MB is default value of min_filelist_kbytes in Chromium OS
# https://chromium.googlesource.com/chromiumos/third_party/kernel-next/+/545e2917dbd863760a51379de8c26631e667c563%5E!/
# 256 and 512 MB values are too big as a distro default because many systems have 512MB-2GB RAM
# TODO: tune 50 and 100 MB to some not random and mathemetically explainable values
# https://www.linux.org.ru/news/kernel/16052362?cid=16075323
Patch307:	le9pf.diff
Patch308:	0001-Revert-kallsyms-unexport-kallsyms_lookup_name-and-ka.patch

# Support SoC with Baikal-M (ARMv8) CPU
# From http://git.altlinux.org/gears/k/kernel-image-std-def.git (many thanks!)
# They are based on sources from official SDK with patched kernel from Baikal Electronics
Patch0601:	0601-baikalm.patch
Patch0604:	0604-efi-arm-runtime-print-EFI-mapping.patch
Patch0608:	0608-Baikal-M-USB-driver.patch
# https://bugzilla.altlinux.org/show_bug.cgi?id=40269
Patch0609:	0609-Baikal-M-video-unit-driver.patch
Patch0616:	0616-Baikal-M-PCIe-driver-from-SDK-M-4.3.patch
Patch0617:	0617-Baikal-M-PCIe-driver-from-SDK-M-4.4.patch
Patch0619:	0619-panfrost-compatibility-with-Baikal-M-firmware-from-S.patch

# Disable AutoReq
AutoReq:	0
# but keep autoprov for kmod(xxx)
AutoProv:	1

BuildRequires:	bash
BuildRequires:	bc
BuildRequires:	binutils
BuildRequires:	bison
BuildRequires:	bzip2
%if %{with ccache}
BuildRequires:	ccache
%endif
BuildRequires:	flex
BuildRequires:	gcc
# ./scripts/mkcompile_h
BuildRequires:	hostname
BuildRequires:	kmod-compat
BuildRequires:	rsync
%if %{with compress_modules}
%if %{with modxz}
BuildRequires:	xz
%else
BuildRequires:	zstd
%endif
%endif
%ifarch aarch64
BuildRequires:	uboot-tools
%endif
BuildRequires:	kmod-devel
%ifarch x86_64 aarch64
BuildRequires:	numa-devel
%endif
%if %{with uml}
BuildRequires:	vde-devel
%endif
# For power tools
BuildRequires:	pkgconfig(ncurses)

# For perf, cpufreq and all other tools
# For cpupower
%if %{build_cpupower}
BuildRequires:	pciutils-devel
%endif
# For perf
%if %{build_perf}
BuildRequires:	asciidoc
BuildRequires:	perl-ExtUtils-Embed
BuildRequires:	python3
BuildRequires:	xmlto
BuildRequires:	audit-devel
BuildRequires:	binutils-devel
BuildRequires:	elfutils-devel
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	libunwind-devel
BuildRequires:	newt-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(babeltrace)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(zlib)
%endif

# (To generate keys)
# LibreSSL has GOST support without editing openssl.cnf
# or dlopen()-ing external library
BuildRequires:	libressl
BuildRequires:	libressl-devel
# To verify signatures (find, xargs, hexdump)
BuildRequires:	findutils
BuildRequires:	util-linux

%if %{with binary_extra_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-source-rtl8821ce
BuildRequires:	kernel-source-rtl8821cu
# Broadcom-wl and nvidia390 contain a proprietary blob which is only for x86
%ifarch %{ix86} %{x86_64}
BuildRequires:	kernel-source-broadcom-wl
BuildRequires:	kernel-source-nvidia390
%endif
# Nvidia470+ are x86_64 only (maybe aarch64 will be also packaged later)
%ifarch %{x86_64}
BuildRequires:	kernel-source-nvidia470
BuildRequires:	kernel-source-nvidia510
BuildRequires:	kernel-source-nvidia515
%endif
BuildRequires:	kernel-source-tripso
BuildRequires:	kernel-source-ipt-so
%if %{with binary_virtualbox_host}
BuildRequires:	kernel-source-virtualbox
%endif
BuildRequires:	kernel-source-v4l2loopback
%if %{with binary_shredder}
BuildRequires: kernel-source-shredder-kernel
%endif
# Rosa-test-suite is maintained in certified branches only nlkm, memfreetest, pcietest
%if %{with nickel}
BuildRequires:	kernel-source-rosa-test-suite
%endif
%endif
# End of with binary_extra_modules

Provides:	kernel = %{EVRD}
Provides:	kernel-%{flavour} = %{EVRD}
Provides:	kernel-abi(%{kver_full}) = %{EVRD}
# Dnf config-manager --dump | grep installonly
Provides:	installonlypkg(kernel) = %{EVRD}.image
Provides:	installonlypkg(kernel) = %{EVRD}.modules

# >= because of added support of zstd-compressed modules
Requires(posttrans):	dracut >= 053-0.git5eb736.5
Requires(posttrans):	kmod >= 28-3

# Need for rebuild dkms drivers
Requires:	(kernel-%{tar_ver}-generic-devel if dkms)

# Usually necessary, but sometimes user may want to not install them
Recommends:	crda
Recommends:	linux-firmware
Recommends:	microcode
# Set BFQ as default scheduler for HDDs
# https://www.phoronix.com/scan.php?page=article&item=linux-50hdd-io
Recommends:	udev-rules-ioschedulers
Recommends:	wireless-regdb

%if %{with flow_abi}
Requires:	kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

# XXX temporary hack to upgrade from kernel-headers 1:5.4
%if %{build_headers}
Recommends:	kernel-headers = %{EVRD}
%endif

%if %{with binary_extra_modules}
%ifarch %{ix86} %{x86_64}
#kroko_req_modules_in_kernel -j %%{nvidia_390_j} -n %%{nvidia_390_n} -p %%{kver_full}
Requires:	((kernel-modules-nvidia390-%{version}-%{release}-%{flavour} = %{EVRD}) if nvidia390-core)
%endif
%ifarch %{x86_64}
#kroko_req_modules_in_kernel -j %%{nvidia_470_j} -n %%{nvidia_470_n} -p %%{kver_full}
Requires:	((kernel-modules-nvidia470-%{version}-%{release}-%{flavour} = %{EVRD}) if nvidia470-core)
Requires:	((kernel-modules-nvidia510-%{version}-%{release}-%{flavour} = %{EVRD}) if nvidia510-core)
Requires:	((kernel-modules-nvidia515-%{version}-%{release}-%{flavour} = %{EVRD}) if nvidia515-core)
%endif
%endif

Obsoletes:	kernel-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description
The kernel package contains the Linux kernel (vmlinuz), the core of your
operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.

%posttrans
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd
# that is created then will be non-functional. But when the user installs
# kernel-<...> package, that defunct initrd will be replaced with a working
# one here.
dracut -f %{initrd_path} %{kver_full}

# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2

%transfiletriggerin -- %{_modulesdir}/%{kver_full}
# Detect all modules, including ones inside kernel-module* packages
if grep -qE '/.*\.ko(|\..*)' ; then
	depmod -a %{kver_full}
fi

%transfiletriggerpostun -- %{_modulesdir}/%{kver_full}
# Handle e.g. removal of kernel-module* packages
# List of files is not available here (?)
depmod -a %{kver_full}

%files -f %{kernel_files}
%{_bootdir}/System.map-%{kver_full}
%{_bootdir}/symvers-%{kver_full}.*
%{_bootdir}/config-%{kver_full}
%{_bootdir}/vmlinuz-%{kver_full}
%ghost %{initrd_path}
%ifarch %{armx}
%{_bootdir}/dtb-%{kver_full}
%endif
%{_modulesdir}/%{kver_full}/modules.*
%if %{with flow_abi}
%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
%if %{with binary_extra_modules}
# 8821ce.ko.debug will not be excluded and will be in the main debug subpackage
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821ce.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821cu.ko%{kmod_suffix}
%ifarch %{ix86} %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/wl.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/video/nvidia390
%endif
%ifarch %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/video/nvidia470
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/video/nvidia510
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/video/nvidia515
%endif
%if %{with binary_shredder}
%exclude %{_modulesdir}/%{kver_full}/kernel/extra/shredder-kernel.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/media/v4l2loopback.ko%{kmod_suffix}
%if %{with binary_virtualbox_host}
# vbox host modules may be built here (vboxnetflt vboxnetadp vboxdrv vboxpci)
# vbox guest modules are in the mainline kernel now (vboxvideo vboxguest vboxsf)
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/vbox*.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_TRIPSO.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_so.ko%{kmod_suffix}
%if %{with nickel}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/nlkm.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/memfreetest.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/pcietest.ko%{kmod_suffix}
%endif
%endif
# End of with binary_extra_modules

############################################################################

%if %{build_devel}
%package devel
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	glibc-devel
Requires:	ncurses-devel
Requires:	gcc
Requires:	make
Requires:	perl
Requires:	%{name} = %{EVRD}
Provides:	kernel-devel = %{kverrel}
Provides:	kernel-%{flavour}-devel = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.devel
Obsoletes:	kernel-%{flavour}-%{kernelversion}.%{patchlevel}-devel-latest < 5.10.34-2

# Have dkms updated/installed before the kernel, scriptlet here checks if dkms exists
OrderWithRequires(post):	dkms
# Try to remove the main kernel package after removing this devel package
# because there may be dkms-built kernel modules inside directories owned
# by the main package, try to get rid of such files before RPM starts to
# deal with directories owned in the main package
# (note that the devel package does not explicitly require the main package,
# there is no need to do so, a kernel module may be built using just the devel part).
OrderWithRequires(postun): %{name} = %{EVRD}

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

%description devel
This package contains the kernel files (headers and build tools) that should
be enough to build additional drivers for use with %{name}.


%post devel
if command -v dkms_autoinstaller >/dev/null 2>&1; then
	dkms_autoinstaller start %{kver_full}
fi


%preun devel
# If any DKMS modules with REMAKE_INITRD=yes in their configs have been
# uninstalled, initrd has been regenerated for the given kernel. However,
# the kernel itself might have been uninstalled before, so that (defunct)
# initrd image files would be left behind. Remove them if the kernel itself
# is no longer installed. Should work if they are uninstalled in parallel
# too.
if ! test -f /boot/vmlinuz-%{kver_full}; then
	rm -f /boot/initrd-%{kver_full}.img
	rm -f /boot/initrd-%{kver_full}_old.img
fi

if ! command -v dkms >/dev/null 2>&1; then exit 0; fi

for ii in $(/usr/sbin/dkms status -k %{kver_full} | awk '{ print $1 $2; }'); do
	mod=$(echo $ii | awk -v FS=',' '{ print $1; }')
	ver=$(echo $ii | awk -v FS=',' '{ print $2; }')
	/usr/sbin/dkms --rpm_safe_upgrade uninstall -m $mod -v $ver -k %{kver_full} || :
done


%files devel
%{devel_root}/Documentation
%dir %{devel_root}
%dir %{devel_root}/arch
%dir %{devel_root}/include
%{devel_root}/arch/um
%{devel_root}/arch/x86
%{devel_root}/arch/arm
%{devel_root}/arch/arm64
%{devel_root}/block
%{devel_root}/certs
%{devel_root}/crypto
%{devel_root}/drivers
%{devel_root}/fs
%{devel_root}/include/soc
%{devel_root}/include/acpi
%{devel_root}/include/asm-generic
%{devel_root}/include/clocksource
%{devel_root}/include/config
%{devel_root}/include/crypto
%{devel_root}/include/drm
%{devel_root}/include/dt-bindings
%{devel_root}/include/generated
%{devel_root}/include/keys
%{devel_root}/include/kvm
%{devel_root}/include/kunit
%{devel_root}/include/linux
%{devel_root}/include/math-emu
%{devel_root}/include/media
%{devel_root}/include/memory
%{devel_root}/include/misc
%{devel_root}/include/net
%{devel_root}/include/pcmcia
%{devel_root}/include/ras
%{devel_root}/include/rdma
%{devel_root}/include/scsi
%{devel_root}/include/sound
%{devel_root}/include/target
%{devel_root}/include/trace
%{devel_root}/include/uapi
%{devel_root}/include/vdso
%{devel_root}/include/video
%{devel_root}/include/xen
%{devel_root}/init
%{devel_root}/ipc
%{devel_root}/kernel
%{devel_root}/lib
%{devel_root}/mm
%{devel_root}/net
%{devel_root}/samples
%{devel_root}/scripts
%{devel_root}/security
%{devel_root}/sound
%{devel_root}/tools
%{devel_root}/usr
%{devel_root}/virt
%{devel_root}/.config
%{devel_root}/Kbuild
%{devel_root}/Kconfig
%{devel_root}/Makefile
%{devel_root}/Module.symvers
%{devel_root}/arch/Kconfig
%{_modulesdir}/%{kver_full}/build
%{_modulesdir}/%{kver_full}/source
%endif
# End of build_devel

############################################################################

%if %{build_debug}
%package debuginfo
Summary:	Debuginfo for %{name}
Group:		Development/Debug
Provides:	kernel-debug = %{kverrel}
AutoReq:	0
AutoProv:	0

%description debuginfo
This package contains the files with debuginfo for %{name}.

%files debuginfo -f %{debuginfo_files}
%{_bootdir}/vmlinux-%{kver_full}
%endif
# End of build_debug

############################################################################

%if %{build_doc}
%package doc
Summary:	Various documentation bits found in the kernel source
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files from the kernel source.

%files doc
%doc linux-%{tar_ver}/Documentation/*
%endif

############################################################################

%if %{build_perf}
%package -n perf
Summary:	perf tool and the supporting documentation
Group:		System/Kernel and hardware

%description -n perf
The package contains perf tool and the supporting documentation.

%files -n perf
%{_bindir}/perf
%ifarch x86_64
%{_bindir}/perf-read-vdso32
%endif
%{_bindir}/trace
%{_includedir}/perf/perf_dlfilter.h
%dir %{_prefix}/libexec/perf-core
%dir %{_libdir}/traceevent
%dir %{_libdir}/traceevent/plugins
%{_libdir}/libperf-jvmti.so
%{_libdir}/traceevent/plugins/*
%{_prefix}/libexec/perf-core/*
%{_mandir}/man[1-8]/perf*
%{_sysconfdir}/bash_completion.d/perf
%{_datadir}/perf-core/strace/groups/*
%{_datadir}/doc/perf-tip/*.txt
/usr/lib/perf/examples/bpf/*
/usr/lib/perf/include/bpf/*
%endif

############################################################################

%if %{build_cpupower}
%package -n cpupower

Summary:	The cpupower tools
Group:		System/Kernel and hardware

%description -n cpupower
The cpupower tools.

%post -n cpupower
if [ $1 -ge 0 ]; then
# Do not enable/disable cpupower.service directly, because it should start
# when cpupower.path triggers it.
	/bin/systemctl enable cpupower.path >/dev/null 2>&1 || :
	/bin/systemctl start cpupower.path >/dev/null 2>&1 || :
fi

%preun -n cpupower
if [ $1 -eq 0 ]; then
	/bin/systemctl --no-reload disable cpupower.path > /dev/null 2>&1 || :
	/bin/systemctl stop cpupower.path > /dev/null 2>&1 || :
fi

%files -n cpupower -f cpupower.lang
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower
%{_bindir}/cpupower
%{_bindir}/cpupower-start.sh
%{_libdir}/libcpupower.so.0
%{_libdir}/libcpupower.so.0.0.1
%{_unitdir}/cpupower.service
%{_unitdir}/cpupower.path
%{_datadir}/bash-completion/completions/cpupower
%{_mandir}/man[1-8]/cpupower*

############################################################################

%package -n cpupower-devel
Summary:	Development files for cpupower
Group:		Development/Kernel
Requires:	cpupower = %{EVRD}
Conflicts:	%{_lib}cpufreq-devel

%description -n cpupower-devel
This package contains the development files for cpupower.

%files -n cpupower-devel
%{_libdir}/libcpupower.so
%{_includedir}/cpufreq.h
%{_includedir}/cpuidle.h
%endif

############################################################################

%if %{build_headers}
%package -n kernel-headers
Summary:	Linux kernel header files mostly used by your C library
Group:		System/Kernel and hardware
Provides:	linux-userspace-headers = %{EVRD}
Provides:	kernel-release-headers = %{EVRD}

%description -n kernel-headers
C header files from the Linux kernel. The header files define
structures and constants that are needed for building most
standard programs, notably the C library.

This package is not suitable for building kernel modules, you
should use the 'kernel-devel' package instead.

%files -n kernel-headers
%{_includedir}/*
# Don't conflict with cpupower-devel
%if %{build_cpupower}
%exclude %{_includedir}/cpufreq.h
%exclude %{_includedir}/cpuidle.h
%endif
%if %{build_perf}
%exclude %{_includedir}/perf/perf_dlfilter.h
%endif
%endif

############################################################################

%if %{with uml}
%package uml
Summary:	User Mode Linux binary
Group:		System/Kernel and hardware
Provides:	kernel-uml = %{kverrel}
Provides:	kernel-uml-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.uml
Obsoletes:	kernel-uml-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description uml
User Mode Linux binary.
Stripped, debug is in %{name}-debuginfo.

%files uml
%{_bindir}/linux-uml-%{kver_full}

#-----------------------------------------------------------------------------

%package uml-modules
Summary:	User Mode Linux (UML) kernel modules
Group:		System/Kernel and hardware
Provides:	kernel-uml-modules = %{kverrel}
Provides:	kernel-uml-modules-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel-module) = %{EVRD}.uml
Obsoletes:	kernel-uml-modules-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description uml-modules
User Mode Linux (UML) kernel modules:
- not compressed;
- not stripped;
- signed.

%files uml-modules
/lib/modules-uml/%{kver_full}

%endif
# End of uml

#-----------------------------------------------------------------------------

###############################
# Extra modules package definitions

%if %{with binary_extra_modules}
%ksob_mk_module_pkg -n 8821ce -s net/wireless -r rtl8821ce-blacklist
%ksob_mk_module_pkg -n 8821cu -s net/wireless
%ifarch %{ix86} %{x86_64}
%ksob_mk_module_pkg -n wl -s net/wireless -r broadcom-wl-aliases
#kroko_kmod_pkg -j %%{nvidia_390_j} -n %%{nvidia_390_n} -f %%{flavour} -k %%{kernelversion}.%%{patchlevel} -m %%{sublevel} -p %%{kver_full} -s %%{NAME} -r %%{kroko_mk_release}
%endif
%ifarch %{ix86}
%nvidia_modules_pkg -e %{EVRD} -m 390 -p %{kver_full}
%endif
%ifarch %{x86_64}
#kroko_kmod_pkg -j %%{nvidia_470_j} -n %%{nvidia_470_n} -f %%{flavour} -k %%{kernelversion}.%%{patchlevel} -m %%{sublevel} -p %%{kver_full} -s %%{NAME} -r %%{kroko_mk_release}
%nvidia_modules_pkg -e %{EVRD} -m 390,470,510,515 -p %{kver_full}
%endif
%ksob_mk_module_pkg -n xt_TRIPSO -s net -r tripso
%ksob_mk_module_pkg -n xt_so -s net -r ipt-so
%ksob_mk_module_pkg -n v4l2loopback -s drivers/media -r v4l2loopback

%if %{with binary_shredder}
%ksob_mk_module_pkg -n shredder-kernel -s extra -r rosa-shredder-user
%endif

#-----------------------------------------------------------------------------

###############
# Virtualbox host

%if %{with binary_virtualbox_host}
%ksob_mk_module_pkg -n vboxnetflt -s misc
%ksob_mk_module_pkg -n vboxnetadp -s misc
%ksob_mk_module_pkg -n vboxdrv -s misc
%ksob_mk_module_pkg -n vboxpci -s misc

# A package which will pull all those modules
%package -n kernel-modules-virtualbox-host-%{ksob_kernel}
Summary:	Meta package to pull VirtualBox host kernel modules for kernel-%{flavour}-%{kernelversion}.%{patchlevel}
Group:		System/Kernel and hardware
Requires:	kernel-module-vboxnetflt-%{ksob_kernel}
Requires:	kernel-module-vboxnetadp-%{ksob_kernel}
Requires:	kernel-module-vboxdrv-%{ksob_kernel}
Requires:	kernel-module-vboxpci-%{ksob_kernel}
Obsoletes:	kernel-modules-virtualbox-host-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description -n kernel-modules-virtualbox-host-%{ksob_kernel}
Meta package to pull VirtualBox host kernel modules for %{name}.

%files -n kernel-modules-virtualbox-host-%{ksob_kernel}
# empty
%endif
#End of ifarch x86

#-----------------------------------------------------------------------------

%if %{with nickel}
%ksob_mk_module_pkg -n nlkm -s misc
%ksob_mk_module_pkg -n memfreetest -s misc
%ksob_mk_module_pkg -n pcietest -s misc
%endif

%endif
# End of binary_extra_modules

#################################################################

%if %{with flow_abi}
%package -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
Summary:	Directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x
Group:		System/Kernel and hardware

%description -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
This package contains a directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x.
Some vendors provide binary-only kernel modules. They can put them into /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi.
kmod tools will find them for kernels 5.4.x of "generic" and "nickel" flavours
but there is no guarantee that these modules will load and work correctly on
newer or older kernels then the ones they were build against.

We call this "flow ABI" because most ABIs are not changed between %{kernelversion}.%{patchlevel}.x releases,
but there are no specific guarantees. ABI may evolve and change.
We highly recommend to use DKMS and build third-party kernel modules from source for every kernel!
This package does nothing, just owns a directory for third-party binary kernel modules.

%files -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
# End of flow_abi

################################################

%prep
# Avoid accidental merge
%if 0%{?rpm5}
%{error:Package structure is for dnf, not for urpmi!}
%endif

%setup -q -n %{top_dir_name} -c
%if %{with uml}
cp -r %{src_dir} %{src_dir}.uml
%endif
cd %{src_dir}

%autopatch -p1

#
# Setup Begin
#

##################################
# Kernel configuration

echo "Creating the kernel configuration file."

# Configs
cp %{SOURCE111} .
cp %{SOURCE112} .
cp %{SOURCE113} .
cp kernel-%{arch_suffix}.config .config

touch %{build_dir}/.config.append

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
# Wipe all .gitignore/.get_maintainer.ignore files
find . -name "*.g*ignore" -delete

# Enable debug info if requested.
sed -i '/CONFIG_DEBUG_INFO/d' .config
%if %build_debug
echo 'CONFIG_DEBUG_INFO=y' >> %{build_dir}/.config.append
echo 'CONFIG_DEBUG_INFO_DWARF4=y' >> %{build_dir}/.config.append
echo 'CONFIG_GDB_SCRIPTS=y' >> %{build_dir}/.config.append
%else
echo 'CONFIG_DEBUG_INFO=n' >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_FORCE/d' .config
%if %{with oblig_signed_modules}
# Disallow loading not signed modules
# But 0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch allows to override this in cmdline
echo CONFIG_MODULE_SIG_FORCE=y >> %{build_dir}/.config.append
%else
echo CONFIG_MODULE_SIG_FORCE=n >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_KEY/d' .config
# Set path to the key that will be generated later by openssl/libressl
echo CONFIG_MODULE_SIG_KEY=\"%{certs_signing_key_priv_rnd}\" >> %{build_dir}/.config.append

# Set path to one PEM file with all keys that the kernel must trust
sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/d' .config
echo CONFIG_SYSTEM_TRUSTED_KEYS=\"%{certs_public_keys}\" >> %{build_dir}/.config.append

# Memory wiping
# Introduced in kernel 5.3 by commit 6471384af2a6530696fc0203bafe4de41a23c9ef
# Estimated performance impact is described in the commit
# "Fill newly allocated pages and heap objects with zeroes."
# To enable, add to cmdline: init_on_alloc=1
sed -i '/CONFIG_INIT_ON_ALLOC_DEFAULT_ON/d' .config
echo CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n >> %{build_dir}/.config.append
# "Fill freed pages and heap objects with zeroes"
# To disable, add to cmdline: init_on_free=0
sed -i '/CONFIG_INIT_ON_FREE_DEFAULT_ON/d' .config
%if %{with nickel}
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=y >> %{build_dir}/.config.append
%else
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=n >> %{build_dir}/.config.append
%endif
# Here enabling only either only init_on_free or only init_on_alloc
# makes sense; init_on_alloc is not about protecting information.

# To load kernel keyring in UML
for i in STREEBOG SHA1 SHA256 SHA512 ECRDSA RSA ; do
	if ! grep -q "^CONFIG_CRYPTO_${i}=y$" .config; then
		sed -i "/CONFIG_CRYPTO_${i}/d" .config
		echo "CONFIG_CRYPTO_${i}=y" >> %{build_dir}/.config.append
	fi
done

cat %{build_dir}/.config.append >> .config

##################
# End of kernel config


# Store the config file in the appropriate directory.
CONFIG_DIR=arch/%{arch_type}/configs
mkdir -p "${CONFIG_DIR}"

cfg_file=arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour}

make ARCH=%{arch_type} oldconfig
# When it is needed to edit kernel configs, run:
# abf fetch
# rpmbuild --define "_sourcedir $PWD" --with=fail -bb kernel.spec
# and then work with the config in the buildroot with applied patches etc.
%{?_with_fail:exit 1}
mv .config ${cfg_file}
echo "Created ${cfg_file}."

# Make sure the kernel has the sublevel we know it has...
LC_ALL=C sed -ri "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
find . -name '.get_maintainer.ignore' | %kxargs rm -f

# Versionize python shebang (#!/usr/bin/env python -> #!/usr/bin/python3) in scripts
sed -i '1 s,^#!/usr/bin/env python\(\|3\)$,#!%{__python3},' \
	arch/ia64/scripts/unwcheck.py \
	Documentation/networking/device_drivers/atm/cxacru-cf.py \
	Documentation/sphinx/kernel_include.py \
	Documentation/sphinx/maintainers_include.py \
	Documentation/sphinx/rstFlatTable.py \
	Documentation/target/tcm_mod_builder.py \
	Documentation/trace/postprocess/decode_msr.py \
	drivers/comedi/drivers/ni_routing/tools/convert_csv_to_c.py \
	drivers/comedi/drivers/ni_routing/tools/convert_py_to_csv.py \
	drivers/comedi/drivers/ni_routing/tools/make_blank_csv.py \
	drivers/staging/greybus/tools/lbtest \
	scripts/bloat-o-meter \
	scripts/bpf_doc.py \
	scripts/checkkconfigsymbols.py \
	scripts/clang-tools/gen_compile_commands.py \
	scripts/clang-tools/run-clang-tools.py \
	scripts/diffconfig \
	scripts/jobserver-exec \
	scripts/show_delta \
	scripts/spdxcheck.py \
	scripts/tracing/draw_functrace.py \
	tools/cgroup/iocost_coef_gen.py \
	tools/hv/lsvmbus \
	tools/hv/vmbus_testing \
	tools/kvm/kvm_stat/kvm_stat \
	tools/perf/python/tracepoint.py \
	tools/perf/python/twatch.py \
	tools/perf/scripts/python/exported-sql-viewer.py \
	tools/perf/scripts/python/libxed.py \
	tools/power/pm-graph/bootgraph.py \
	tools/power/pm-graph/sleepgraph.py \
	tools/power/x86/intel_pstate_tracer/intel_pstate_tracer.py \
	tools/testing/kunit/kunit.py \
	tools/testing/kunit/kunit_tool_test.py \
	tools/testing/kunit/run_checks.py \
	tools/testing/selftests/bpf/test_bpftool_synctypes.py \
	tools/testing/selftests/bpf/test_offload.py \
	tools/testing/selftests/drivers/net/mlxsw/sharedbuffer_configuration.py \
	tools/testing/selftests/exec/binfmt_script \
	tools/testing/selftests/net/devlink_port_split.py \
	tools/testing/selftests/tc-testing/plugin-lib/scapyPlugin.py \
	tools/testing/selftests/tc-testing/tdc_batch.py \
	tools/testing/selftests/tc-testing/tdc_multibatch.py \
	tools/testing/selftests/tc-testing/TdcPlugin.py \
	tools/testing/selftests/tc-testing/tdc.py \
	tools/testing/selftests/tc-testing/TdcResults.py

# Drop env from bash scripts
sed -i '1 s,^#!.*env .*,#!%{_bindir}/bash,' scripts/config

# Drop env from perl scripts
sed -i '1 s,^#!.*env .*,#!%{_bindir}/perl,' \
	arch/arm64/crypto/poly1305-armv8.pl \
	arch/arm/crypto/poly1305-armv4.pl \
	arch/arm/crypto/sha256-armv4.pl \
	arch/arm/crypto/sha512-armv4.pl \
	arch/mips/crypto/poly1305-mips.pl \
	arch/x86/crypto/poly1305-x86_64-cryptogams.pl \
	Documentation/sphinx/parse-headers.pl \
	Documentation/sphinx/parse-headers.pl \
	Documentation/trace/postprocess/trace-pagealloc-postprocess.pl \
	Documentation/trace/postprocess/trace-vmscan-postprocess.pl \
	drivers/crypto/vmx/ghashp8-ppc.pl \
	drivers/crypto/vmx/ppc-xlate.pl \
	scripts/bootgraph.pl \
	scripts/checkdeclares.pl \
	scripts/checkincludes.pl \
	scripts/checkkconfigsymbols.py \
	scripts/checkpatch.pl \
	scripts/checkstack.pl \
	scripts/checkversion.pl \
	scripts/cleanfile \
	scripts/cleanpatch \
	scripts/documentation-file-ref-check \
	scripts/dtc/dt_to_config \
	scripts/export_report.pl \
	scripts/extract-module-sig.pl \
	scripts/extract-sys-certs.pl \
	scripts/extract_xc3028.pl \
	scripts/generate_initcall_order.pl \
	scripts/get_abi.pl \
	scripts/get_dvb_firmware \
	scripts/get_maintainer.pl \
	scripts/headerdep.pl \
	scripts/kconfig/streamline_config.pl \
	scripts/kernel-doc \
	scripts/leaking_addresses.pl \
	scripts/markup_oops.pl \
	scripts/profile2linkerlist.pl \
	scripts/recordmcount.pl \
	scripts/sphinx-pre-install \
	scripts/split-man.pl \
	scripts/stackdelta \
	tools/testing/ktest/compare-ktest-sample.pl \
	tools/testing/selftests/kselftest/prefix.pl \
	usr/include/headers_check.pl

############################################################################

%build
# Ensure that build time generated private keys don't get published
# as e.g. "RPM build root" on ABF!
# Note that ABF sends SIGKILL to rpm-build.sh when the build is terminated;
# in this case trap will not work, but RPM build root also will not be
# saved because rpm-build.sh saves it, but it is SIGKILLed.
# For best security we could store private keys in RAM (not reachable from
# filesystem, so not in /tmp!) and override sth like fopen() by LD_PRELOAD
# to give the content of keys from RAM when a virtual address of a key file
# is accessed, but currently I don't know how to implement this (TODO: ).
_cleanup(){
# Show resulting kernel public keys for debugging
	cat "%{src_dir}/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}/%{certs_dir_rnd}"
%if %{with uml}
	cat "%{src_dir}.uml/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}.uml/%{certs_dir_rnd}"
%endif
}
# Make a trap to delete keys even if %%build fails in the middle
trap "_cleanup" EXIT

rm -rf %{temp_root}
install -d %{temp_root}

cd %{src_dir}

### Keys for signing kernel modules
# Keys can be generated both manually and automatically,
# let's generate them by ourselves to take full control of the process
# https://www.ibm.com/support/knowledgecenter/en/SSB23S_1.1.0.13/gtps7/cfgcert.html
# See also certs/Makefile in kernel source
mkdir -p "%{certs_dir_rnd}"

# On ABF, %%packager == $username <$email>
# Try to extract email from %%packager if it is set
_get_email(){
	# Check that macro %%packager was set and is not empty
	if echo '%{packager}' | grep -q 'packager}$' || [ -z "%{packager}" ]
		# If was not set or is empty, use default email
		then echo 'rpmbuild@rosa.unknown' && return
		# Otherwise try to extract email from 'name <email>' or sth else
		else temp="$(echo '%{packager}' | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | tr -d '<>' | grep -E '@.*\..*' | head -n 1)"
	fi
	# Validate that what we have now is a valid email
	# https://stackoverflow.com/a/2138832, https://stackoverflow.com/a/41192733
	# Note that we set %%_buildshell to /bin/bash to guarantee the work of this bashism
	regex_email="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
	if [[ "$temp" =~ ${regex_email} ]]
		# If it is, use it
		then echo "$temp" && return
		# Otherwise use default email
		else echo 'rpmbuild@rosa.unknown' && return
	fi
	# If script above has not return'ed for any reason,
	# e.g. because of non-bash shell being not able to
	# process regexp, use default email
	echo 'rpmbuild@rosa.unknown'
}
email="$(_get_email)"

cat <<EOF > "%{certs_key_config_rnd}"
[ req ]
prompt = no
string_mask = utf8only
#default_keyfile = %%{certs_signing_key_priv_rnd}
distinguished_name = req_distinguished_name
x509_extensions = myexts
[ req_distinguished_name ]
organizationName = %{vendor} rpmbuild
commonName = Build time autogenerated @ALGO@ kernel key
emailAddress = ${email}
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
cat "%{certs_key_config_rnd}"
sed -e 's,@ALGO@,RSA,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.RSA"
sed -e 's,@ALGO@,GOST R 34.10-2012,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.GOST"
# Avoid using the template
rm -f "%{certs_key_config_rnd}"

_libressl_gen_key(){
	if [ "$GOST_KEY" = 1 ]
	then
		lssl_req_gost_args="\
			-newkey gost2001 \
			-pkeyopt dgst:streebog512 -pkeyopt paramset:A \
			-streebog512"
		OUT="%{certs_signing_key_priv_rnd}.GOST"
		CONFIG="%{certs_key_config_rnd}.GOST"
	else
		lssl_req_gost_args=""
		OUT="%{certs_signing_key_priv_rnd}.RSA"
		CONFIG="%{certs_key_config_rnd}.RSA"
	fi
		libressl req -new -nodes -utf8 -batch \
			$lssl_req_gost_args \
			-days 109500 \
			-x509 -config "$CONFIG" \
			-out "$OUT" \
			-keyout "$OUT"

	# Verify
	if [ "$GOST_KEY" = 1 ]; then
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
	fi
}

GOST_KEY=0 _libressl_gen_key
GOST_KEY=1 _libressl_gen_key
# Fake CONFIG_MODULE_SIG_KEY to make build scripts happy
cp -v "%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}"

# Strip public parts from the generated PEMs
sed -n \
	'/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' \
	"%{certs_signing_key_priv_rnd}.GOST" \
	"%{certs_signing_key_priv_rnd}.RSA" \
	> "%{certs_public_keys}"

# Link sign-file and extract-cert with LibreSSL instead of OpenSSL
if [ $? != 0 ] ; then exit $? ; fi
sed -i %{src_dir}/scripts/Makefile \
%if %{with uml}
	%{src_dir}.uml/scripts/Makefile \
%endif
	-e "s, libcrypto , libressl-libcrypto ,g"

%if %{with additional_keys}
# Add additional public RSA keys to the list of trusted keys for kernel modules
# Build kernel --without additional_keys if you do not want to trust them
cat %{expand:%(for i in `seq 1 12`; do echo "%%SOURCE$((200+${i}))" | tr "\n" " "; done)} \
	>> "%{certs_public_keys}"
%endif
# End of additional_keys
cat %{certs_public_keys}

# .config
%smake -s mrproper
cp arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour} .config

# Make sure EXTRAVERSION says what we want it to say
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{flavour}-%{buildrpmrel}/" Makefile

# Build the kernel
echo "Building kernel %{kver_full}"

TARGETS="all"
# need to install dtbs to proper boot arm64 devices
%ifarch %{armx}
	TARGETS="$TARGETS dtbs"
%endif

%kmake V=1 -s $TARGETS

# Install modules
mkdir -p %{temp_modules}/%{kver_full}
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=%{kver_full} modules_install

%if %{with binary_extra_modules}
# Build and install procedure is specific to each Makefile from kernmel-source-* packages
# See also: https://www.kernel.org/doc/html/latest/kbuild/modules.html
# Copy directory because write permissions are required
# `make modules_install` must be done before this, otherwise these copied files will be deleted

cp -r "$(rpm -q --qf '/usr/src/rtl8821ce-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821ce)" kernel-source-rtl8821ce
pushd kernel-source-rtl8821ce
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821ce.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821ce.ko
popd
rm -fr kernel-source-rtl8821ce

cp -r "$(rpm -q --qf '/usr/src/rtl8821cu-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821cu)" kernel-source-rtl8821cu
pushd kernel-source-rtl8821cu
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821cu.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821cu.ko
popd
rm -fr kernel-source-rtl8821cu

_build_nvidia(){
	cp -r "$(rpm -q --qf "/usr/src/nvidia${1}-%%{VERSION}-%%{RELEASE}" kernel-source-nvidia${1})" kernel-source-nvidia${1}
	pushd kernel-source-nvidia${1}
	%make SYSSRC=%{src_dir}
	mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}
	cp *.ko %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}
	popd
	rm -fr kernel-source-nvidia${1}
}

%ifarch %{ix86} %{x86_64}
cp -r "$(rpm -q --qf '/usr/src/broadcom-wl-%%{VERSION}-%%{RELEASE}' kernel-source-broadcom-wl)" kernel-source-broadcom-wl
pushd kernel-source-broadcom-wl
%kmake -C %{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp wl.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/wl.ko
popd
rm -fr kernel-source-broadcom-wl

_build_nvidia 390
%endif

%ifarch %{x86_64}
_build_nvidia 470
_build_nvidia 510
_build_nvidia 515
%endif

cp -r "$(rpm -q --qf '/usr/src/tripso-%%{VERSION}-%%{RELEASE}' kernel-source-tripso)" kernel-source-tripso
pushd kernel-source-tripso
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_TRIPSO.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-tripso

cp -r "$(rpm -q --qf '/usr/src/ipt-so-%%{VERSION}-%%{RELEASE}' kernel-source-ipt-so)" kernel-source-ipt-so
pushd kernel-source-ipt-so
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_so.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-ipt-so

%if %{with binary_shredder}
cp -r "$(rpm -q --qf '/usr/src/shredder-kernel-%%{VERSION}-%%{RELEASE}' kernel-source-shredder-kernel)" kernel-source-shredder-kernel
pushd kernel-source-shredder-kernel
%kmake KERNEL_PATH=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/extra/
cp shredder-kernel.ko %{temp_modules}/%{kver_full}/kernel/extra/
popd
rm -fr kernel-source-shredder-kernel
%endif

%if %{with binary_virtualbox_host}
# build commands for virtualbox are based on the ones from the virtualbox package
cp -r "$(rpm -q --qf '/usr/src/virtualbox-%%{VERSION}-%%{RELEASE}' kernel-source-virtualbox)" kernel-source-virtualbox
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
pushd kernel-source-virtualbox
make -C vboxdrv KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxdrv/Module.symvers vboxnetflt
cp -fv vboxdrv/Module.symvers vboxnetadp
make -C vboxnetflt KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
make -C vboxnetadp KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxnetadp/Module.symvers vboxpci/
make -C vboxpci KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
for i in vboxnetflt vboxnetadp vboxdrv vboxpci
do
	cp -v "${i}/${i}.ko" %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif

cp -r "$(rpm -q --qf '/usr/src/v4l2loopback-%%{VERSION}-%%{RELEASE}' kernel-source-v4l2loopback)" kernel-source-v4l2loopback
pushd kernel-source-v4l2loopback
cat Kbuild > Makefile
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/media
make -C %{src_dir} M="$PWD" modules
cp v4l2loopback.ko %{temp_modules}/%{kver_full}/kernel/drivers/media
pushd
rm -fr kernel-source-v4l2loopback

%if %{with nickel}
# rosa-test-suite uses /sr/src/xxx-version, not /usr/src/xxx-version-release
cp -r "$(rpm -q --qf '/usr/src/rosa-test-suite-%%{VERSION}' kernel-source-rosa-test-suite)" kernel-source-rosa-test-suite
pushd kernel-source-rosa-test-suite
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
for i in nlkm memfreetest pcietest
do
cat << EOF > Makefile
obj-m := ${i}.o
all:
	make -C %{src_dir} M=\$(PWD) modules
EOF
%kmake
cp -fv ${i}.ko %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif
# End with nickel <- with binary_extra_modules

%endif
# End with binary_extra_modules

%if %{with uml}
cp -rv %{certs_dir_rnd} %{src_dir}.uml/
pushd %{src_dir}.uml
%kmake ARCH=um defconfig
%kmake ARCH=um linux
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
#rm -fv linux
%kmake V=1 ARCH=um modules
mkdir -p %{temp_root}/lib/modules-uml/%{kver_full}/
%kmake ARCH=um INSTALL_MOD_PATH=%{temp_root}/lib/modules-uml/%{kver_full}/ modules_install
popd
%endif

install -d %{temp_boot}
install -m 644 System.map %{temp_boot}/System.map-%{kver_full}
install -m 644 .config %{temp_boot}/config-%{kver_full}
%if %{with modxz}
xz -c Module.symvers > %{temp_boot}/symvers-%{kver_full}.xz
%else
%{zstd_cmd} Module.symvers
install -m 644 Module.symvers.zst %{temp_boot}/symvers-%{kver_full}.zst
%endif

%ifarch %{armx}
%make_build ARCH=%{arch_type} V=1 INSTALL_DTBS_PATH=%{temp_boot}/dtb-%{kver_full} dtbs_install
%endif

%ifarch aarch64
	cp -f arch/arm64/boot/Image.gz %{temp_boot}/vmlinuz-%{kver_full}
%else
	cp -f arch/%{arch_type}/boot/bzImage %{temp_boot}/vmlinuz-%{kver_full}
%endif

# Headers
%if %{build_headers}
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=%{kver_full} headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
%endif

# Remove /lib/firmware, we use a separate linux-firmware package
rm -rf %{temp_root}/lib/firmware

# Prepare the files for kernel*-devel
%if %{build_devel}

mkdir -p %{temp_devel_root}
for i in $(find . -name 'Makefile*'); do cp -R --parents $i %{temp_devel_root}; done
for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i %{temp_devel_root}; done

cp -fR include %{temp_devel_root}

cp -fR scripts %{temp_devel_root}
cp -fR kernel/bounds.c %{temp_devel_root}/kernel
cp -fR kernel/time/timeconst.bc %{temp_devel_root}/kernel/time
cp -fR tools %{temp_devel_root}/
cp -fR arch/%{arch_type}/kernel/asm-offsets.{c,s} %{temp_devel_root}/arch/%{arch_type}/kernel/
%ifarch %{ix86} %{x86_64}
cp -fR arch/%{arch_type}/kernel/asm-offsets_{32,64}.c %{temp_devel_root}/arch/%{arch_type}/kernel/
cp -fR arch/%{arch_type}/purgatory/* %{temp_devel_root}/arch/%{arch_type}/purgatory/
# Needed for arch/x86/purgatory
cp -fR lib/*.h lib/*.c %{temp_devel_root}/lib/
cp -fR arch/%{arch_type}/entry/syscalls/syscall* %{temp_devel_root}/arch/%{arch_type}/entry/syscalls/
cp -fR arch/%{arch_type}/tools %{temp_devel_root}/arch/%{arch_type}/
# needed for kexec
cp -fR arch/%{arch_type}/boot/*.h %{temp_devel_root}/arch/%{arch_type}/boot/
cp -fR arch/%{arch_type}/boot/*.c %{temp_devel_root}/arch/%{arch_type}/boot/
%endif
cp -fR arch/%{arch_type}/include %{temp_devel_root}/arch/%{arch_type}/
cp -fR .config Module.symvers %{temp_devel_root}

# Needed for truecrypt build (Danny)
cp -fR drivers/md/dm.h %{temp_devel_root}/drivers/md/

# Needed for lirc_gpio (#39004)
cp -fR drivers/media/pci/bt8xx/bttv{,p}.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/pci/bt8xx/bt848.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/common/btcx-risc.h %{temp_devel_root}/drivers/media/common/

# Add acpica header files, needed for fglrx build
cp -fR drivers/acpi/acpica/*.h %{temp_devel_root}/drivers/acpi/acpica/

%if %{with aufs}
# aufs2 has a special file needed
cp -fR fs/aufs/magic.mk %{temp_devel_root}/fs/aufs
%endif

# SELinux needs security/selinux/include
cp -fR security/selinux/include %{temp_devel_root}/security/selinux

for i in alpha arc avr32 blackfin c6x cris csky frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
	mips mn10300 nds32 nios2 openrisc parisc powerpc riscv s390 score sh sparc tile unicore32 xtensa; do
	rm -rf %{temp_devel_root}/arch/$i
done

# Clean the scripts tree, and make sure everything is ok (sanity check)
# running prepare+scripts (tree was already "prepared" in build)
pushd %{temp_devel_root}
	%smake V=1 -s clean ARCH=%{arch_type}
popd

rm -f %{temp_devel_root}/.config.old

# Fix permissions
chmod -R a+rX %{temp_devel_root}

# Disable mrproper in -devel rpms
patch -p1 --fuzz=0 -d %{temp_devel_root} -i %{SOURCE2}
%endif
# End of build_devel


# TODO: maybe move to /usr/lib/debug?
%if %{build_debug}
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | \
	%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | %kxargs -I '{}' \
	sh -c 'cd `dirname {}`; \
		objcopy --add-gnu-debuglink=`basename {}`.debug \
		--strip-debug `basename {}`'
%endif
# End of build_debug

# https://patchwork.kernel.org/patch/11446123/
_libressl_sign(){
	if [ ! -f "$1" ]; then
		echo "No file $1"
		return 0
	fi
	f="$1"
%if %{with gost_sign}
	%{src_dir}/scripts/sign-file streebog512 \
		"%{certs_signing_key_priv_rnd}.GOST" "%{certs_signing_key_priv_rnd}.GOST" "$f"
%else
	%{src_dir}/scripts/sign-file sha512 \
		"%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}.RSA" "$f"
%endif
	unset f
}
export -f _libressl_sign
find %{temp_modules}/%{kver_full}/kernel \
%if %{with uml}
	%{temp_root}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -e -x -c 'if ! _libressl_sign "{}"; \
		then echo Failed _libressl_sign on "{}" && exit 1; fi'

# Set extraversion to match srpm to get nice version reported by the tools
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
%smake -C tools/perf -s PYTHON=%{__python3} HAVE_CPLUS_DEMANGLE=1 WERROR=0 prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 man
%endif

%if %{build_cpupower}
# Make sure version-gen.sh is executable.
chmod +x tools/power/cpupower/utils/version-gen.sh
%make -C tools/power/cpupower CPUFREQ_BENCH=false
%endif

_cleanup

############################################################################

%install
cd %{src_dir}

# We want to be able to test several times the install part
rm -rf %{buildroot}
cp -a %{temp_root} %{buildroot}

#if %%{with oblig_signed_modules}
# Multithreaded verification that every kernel module has a signature attached to it
mkdir -p "%{certs_dir_rnd}"
touch %{certs_verify_tmp}
_verify_signature(){
	if [ -z "$1" ] || [ ! -f "$1" ]; then return; fi
	if hexdump -C "$1" | rev | cut -f 2 -d '|' | rev | tr -d '\n' | grep -q '~Module signature appended~'; then
		if [ -f %{certs_verify_tmp} ]; then
			rm -f %{certs_verify_tmp}
		fi
	else
		echo "ERROR: Module $1 has no signature attached to it!"
		exit 1
	fi
}
export -f _verify_signature
find %{target_modules} \
%if %{with uml}
	%{buildroot}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -c '_verify_signature "{}"'
if [ -f %{certs_verify_tmp} ]; then
	echo "ERROR: seems that signatures of none modules were verified!"
	exit 1
fi
rm -f %{certs_verify_tmp}
#endif

# Compressing modules
%if %{with compress_modules}
# Tested on /lib/modules/5.10.34-generic-2rosa2019.1-x86_64, the results are the following:
# * decompressed: 266.3 MiB
# * xz -9 --extreme: 67.8 MiB
# * zstd --ultra -22 without training: 73.5 MiB
# * zstd -6 without training: 79.6 MiB
# * zstd --ultra -22 with training: 66.3 MiB (the winner!)
# Training takes only a few minutes, make it here in place with current zstd and kernel modules.
# But! Decompressing also requires a dictionary for zstd, that will be too complex, so not using training :(
# We already use zstd in dracut to compress initrds quickly and with good compression ration.
# Testing speed of loading modules:
# `time modinfo bcache.ko.xz` took 0,048s, `time modinfo bcache.ko.zstd` took 0,014s (for multiple times)
# find /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 -type f -name '*.ko.zst' > /tmp/zst.list
# time { for i in `cat /tmp/zst.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took ~31-40s, with disk cache (2+ runs) ~33s
# find /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 -type f -name '*.ko.xz' > /tmp/xz.list
# time { for i in `cat /tmp/xz.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took 43-47s, with disk cache (2+ runs) ~42s, +21%%
# zstd-compressed initramfs image initrd-5.10.34-generic-1rosa2019.1-x86_64.img with *.ko.xz is 56,3 MiB
# zstd-compressed initramfs image initrd-5.10.34-generic-2rosa2019.1-x86_64.img with *.ko.zst is 58,4 MiB (+3.6%%)
# /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 (*.ko.xz) is 78,1 MiB
# /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 (*.ko.zst) is 83,9 MiB (+7%%)
# When zstd is compressing cpio (initrd image) with zstd-compressed kernel modules inside it, does it recompress data?
# It is not easy to make a choice between zstd and xz for kernel modules... Disk space (and so speed of installing
# RPM packages) is not much bigger, we do not try to support super low end devices, operation speed is a bit better.
# I have not seen measurable difference in startup time according to systemd-analyze.
# Note that decompression after zstd --ultra -22 will consume more memory than after zstd -6, see commit message in
# https://github.com/torvalds/linux/commit/73f3d1b48f5069d46b. I did not benchmark -6 vs -22 in runtime.
# Let's use zstd for now.
# zstd may also be used to compress linux-firmware to save a lot of space on disk,
# but upstream kernels still cannot decompress it.
#{zstd_cmd} -T0 --train $(find . -type f -name '*.ko')
#[ -f dictionary ]
# -T1 (one thread) because we run multiple zstd processes by xargs
%if %{with modxz}
find %{target_modules} -name "*.ko" | %kxargs xz -6e
%else
find %{target_modules} -name "*.ko" | %kxargs %{zstd_cmd} --rm -T1 #-D dictionary
rm -f dictionary
%endif
%endif

find %{buildroot}%{_modulesdir}/%{kver_full} -type f -name '*.ko%{kmod_suffix}' | sed -e 's,^%{buildroot},,' | sort -u >> %{kernel_files}
find %{buildroot}%{_modulesdir}/%{kver_full} -type d | sed -e 's,^%{buildroot},%dir ,' | sort -u >> %{kernel_files}

# We estimate the size of the initramfs because rpm needs to take this size
# into consideration when performing disk space calculations (See rhbz#530778)
# 65 MiB is a bit more than needed, but let's be more sure that there is enought space.
# On my PC, zstd-compressed initrds take 58,5 MiB.
# Real size of the RPM package should not increase because RPM compresses the payload.
# This file is %%ghost, so the real initrd will be deleted when uninstalling this package.
dd if=/dev/zero of=%{buildroot}%{initrd_path} bs=1M count=65

%if %{build_debug}
install -m 644 vmlinux %{buildroot}%{_bootdir}/vmlinux-%{kver_full}
find %{buildroot}%{_modulesdir} -type f -name '*.debug' | sed -e 's,^%{buildroot},,' | sort -u >> %{debuginfo_files}
%endif
# End of build_debug

pushd %{target_modules}
for i in *; do
	rm -f $i/build $i/source
	ln -sf /usr/src/linux-$i $i/build
	ln -sf /usr/src/linux-$i $i/source
done

# Sniff, if we compressed all the modules, we change the stamp :(
# we really need the depmod -ae here
for i in *; do
	/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
	echo $?
done

# We used to create modules.description files which contained the
# description strings for the modules as shown by modinfo. These files
# are unlikely to be used right now, so create them (in case some old tool
# checks for their existence) but keep them empty.
for i in *; do
	touch $i/modules.description
done
popd

# Need to set extraversion to match srpm again to avoid rebuild
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
# Perf tool binary and supporting scripts/binaries
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} lib=%{_lib} install

# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},' \
	%{buildroot}%{_prefix}/libexec/perf-core/scripts/python/exported-sql-viewer.py \
	%{buildroot}%{_prefix}/libexec/perf-core/scripts/python/libxed.py

# Perf man pages (note: implicit rpm magic compresses them later)
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
%endif

%if %{build_cpupower}
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
rm -f %{buildroot}%{_libdir}/*.{a,la}

%find_lang cpupower

mv cpupower.lang ../
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE50} %{buildroot}%{_unitdir}/cpupower.service
install -m644 %{SOURCE53} %{buildroot}%{_unitdir}/cpupower.path
install -m644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
install -m755 %{SOURCE52} %{buildroot}%{_bindir}/cpupower-start.sh
%endif

# Delete junk
rm -fr %{buildroot}%{_usr}/src/*/kernel-source-*

%if %{with flow_abi}
# Prefix with "zzz" to put this directory into the end of search list
# and avoid tricks with depmod configs
mkdir -p %{buildroot}/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
ln -s /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi %{buildroot}%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

# Drop hidden files
rm -f %{buildroot}%{_docdir}/kernel-5.10-generic-doc/devicetree/bindings/.yamllint

# Fix perms
chmod -x %{buildroot}%{_sysconfdir}/bash_completion.d/perf
chmod -x %{buildroot}%{_prefix}/lib/perf/examples/bpf/*.c
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/*.h
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/linux/*.h
chmod -x %{buildroot}%{_datadir}/doc/perf-tip/*.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13740 |21mr|kernel-5.4-baikal-5.4.114-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# _get_email() in %%build contains bashisms for regexping
%define _buildshell /bin/bash

# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define _python_bytecompile_build 0

# Probably dwz bug, on i686 only file is not packaged:
# /usr/lib/debug/usr/bin/trace-5.4.40-3.i386.debug.#dwz#.b5xuKG
# dwz compresses only debuginfo from perf, cpupower, uml,
# not the kernel itself (because it is stripped not by RPM),
# so we do not loose much by disabling it.
%global _find_debuginfo_dwz_opts %{nil}

# Put everything into one non-standard debuginfo subpackage
# TODO: make multiple debuginfo packages coinstallable as installonlypkg,
# to achive this, there must be no conflicting files.
# Probably signing and compressing of kernel modules
# has to be moved to %%_spec_install_post.
%global _debuginfo_subpackages %{nil}
%global _debuginfo_template %{nil}
%undefine _debugsource_packages

# Hack: flavour and major version are variable, make %%_build_pkgcheck_* always detect and use this config
%global _build_pkgcheck_set %(echo "%{_build_pkgcheck_set}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')
%global _build_pkgcheck_srpm %(echo "%{_build_pkgcheck_srpm}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')

%define kernelversion 5
%define patchlevel 4
# sublevel is used for stable-based kernels
%define sublevel 114

# Release number. Increase this before a rebuild.
%define rpmrel 3
%define fullrpmrel	%{rpmrel}

%define rpmtag		%{disttag}

# version defines
%define kversion  	%{kernelversion}.%{patchlevel}.%{sublevel}
%define kverrel   	%{kversion}-%{fullrpmrel}
%define tar_ver   	%{kernelversion}.%{patchlevel}.%{sublevel}
%define arch_suffix	arm64

%define buildrpmrel     %{fullrpmrel}%{rpmtag}-%{arch_suffix}
%define buildrel     	%{kversion}-%{buildrpmrel}

# %%build_selinux may be defined in branding-configs
#%%{?build_selinux}%{?!build_selinux:%bcond_with selinux}
#%%if %{with selinux}
%global enhanced_security 1
#%%else
#%%global enhanced_security 0
#%%endif
# Allow "rpmbuild --without enhanced_security <...>"
%{?_without_enhanced_security:%global enhanced_security 0}

# Fail the build after "make oldconfig" to edit kernel configs
%bcond_with fail

%if %{enhanced_security}
%bcond_without additional_keys
%endif
# User Mode Linux, https://habr.com/ru/company/itsumma/blog/459558/
%bcond_with uml

# "Nickel" is a special brand for certified distros
%bcond_with nickel
# Require kernel modules to be signed
%bcond_with oblig_signed_modules

# Build binary out-of-tree kernel modules (experimental)
%bcond_without binary_extra_modules
# Sign kernel modules with GOST key (experimental)
%bcond_without gost_sign

%bcond_with ccache
%bcond_without flow_abi

# compress modules with zstd (zstd is good compression and fast decompression)
%bcond_without compress_modules
# Spend more resources on compression, but make resulting size less;
# decompression speed will not be affected, but more memory will be required
# which should not a problem here (performance penalty from allocating more
# memory should not be big, I think, but I did not benchmark).
%define zstd_cmd zstd -q --format=zstd --ultra -22

# Kernel flavour
%if %{with nickel}
%define flavour		baikal-nickel
%else
%define flavour		baikal
%endif

# The full kernel version
%define kver_full	%{kversion}-%{flavour}-%{buildrpmrel}
############################################################################

%define top_dir_name 	kernel-%{_arch}
%define build_dir 	${RPM_BUILD_DIR}/%{top_dir_name}
%define src_dir 	%{build_dir}/linux-%{tar_ver}

# Common target directories
%define _bootdir	/boot
%define _modulesdir	/lib/modules
%define devel_root	/usr/src/linux-%{kver_full}

%define initrd_path %{_bootdir}/initrd-%{kver_full}.img

# Directories needed for building
%define temp_root	%{build_dir}/temp-root
%define temp_boot	%{temp_root}%{_bootdir}
%define temp_modules	%{temp_root}%{_modulesdir}
%define temp_devel_root	%{temp_root}%{devel_root}

# Directories definition needed for installing
%define target_boot	%{buildroot}%{_bootdir}
%define target_modules	%{buildroot}%{_modulesdir}

# Manual control of creating and deleting keys
# "rnd" is "random" and means that a key pair is generated at build time
# and is not saved anywhere.
%define certs_dir_rnd certs
%define certs_signing_key_priv_rnd %{certs_dir_rnd}/signing_key_priv.key
%define certs_signing_der %{certs_dir_rnd}/signing_key.x509
%define certs_key_config_rnd %{certs_dir_rnd}/x509.genkey
%define certs_public_keys %{certs_dir_rnd}/public.pem
%define certs_verify_tmp %{certs_dir_rnd}/verify.tmp

%define kernel_files %{_builddir}/kernel_files.list
%define debuginfo_files %{_builddir}/debuginfo_files.list

# Append list of files generate by find-debuginfo.sh to our custom list
%global __debug_install_post \
%{__debug_install_post} \
cat %{_builddir}/debugfiles.list >> %{debuginfo_files}

############################################################################

# Build defines
%define build_doc 		0
%define build_devel 	1
%define build_debug		1

# Build kernel-headers package
# Kernel headers are built from the main kernel package
%define build_headers 0

# build perf and cpupower tools
# XXX perf from Baikal's SDK kernel is not buildable
%define build_perf		0
# Use cpupower from the main kernel, not from this Baikla-specific kernel
%define build_cpupower		0

# End of user definitions

# buildtime flags
%{?_without_doc: %global build_doc 0}
%{?_without_devel: %global build_devel 0}
%{?_without_debug: %global build_debug 0}
%{?_without_perf: %global build_perf 0}
%{?_without_cpupower: %global build_cpupower 0}

%{?_with_doc: %global build_doc 1}
%{?_with_devel: %global build_devel 1}
%{?_with_debug: %global build_debug 1}
%{?_with_perf: %global build_perf 1}
%{?_with_cpupower: %global build_cpupower 1}

%if %{with compress_modules}
%define kmod_suffix .zst
%else
%define kmod_suffix %{nil}
%endif

%if !%{build_debug}
# Disable debug rpms.
%define _enable_debug_packages 	%{nil}
%define debug_package 		%{nil}
%endif

# http://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/
%if %{with ccache}
%define kmake KBUILD_BUILD_TIMESTAMP='' %make CC='ccache gcc' ARCH="%{arch_type}"
%else
%define kmake %make CC='gcc' ARCH="%{arch_type}"
%endif

# there are places where parallel make don't work
%define smake make
%define arch_type arm64

# Parallelize xargs invocations on smp machines
%define kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")

#
# SRC RPM description
#
Summary: 	The Linux kernel
Name:		kernel-%{kernelversion}.%{patchlevel}-%{flavour}
Version: 	%{kversion}
Release: 	%{fullrpmrel}
License: 	GPLv2
Group: 	 	System/Kernel and hardware
URL:            http://www.kernel.org

# This kernel is only for Baikal ARMv8 CPUs
%if ! %{with fail}
ExclusiveArch:	aarch64
%endif

####################################################################
#
# Sources
#

# To create tarball for this package from Baikal SDK:
# unpack the SDK (./*.run)
# cd baikal/src/
# cp -r --reflink kernel linux-5.4.114
# XZ_OPT="-4 -T0 -v" tar cJf linux-baikal-arm64-5.4.114.tar.xz linux-5.4.114
Source0: 	linux-baikal-arm64-%{tar_ver}.tar.xz

# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
# Needed, because otherwise the -devel won't build correctly.
Source2: 	disable-mrproper-prepare-scripts-configs-in-devel-rpms.patch

# TODO: make a separate package "ksobirator" and BR it
# after testing these macros properly
Source3:	macros.ksobirator
%{load:%{SOURCE3}}

# Kernel configuration files.
Source110:	kernel-%{arch_suffix}.config

# Cpupower: the service, the config, etc.
Source50:	cpupower.service
Source51:	cpupower.config
Source52:	cpupower-start.sh
Source53:	cpupower.path

Source80:	kernel.rpmlintrc

# Additional keys that can be used to sign kernel modules
# Generated by https://abf.io/soft/kernel-keys
# Source201..206: public_key_GOST_*.pem
%{expand:%(for i in `seq 1 6`; do echo "Source$((200+${i})): public_key_GOST_${i}.pem"; done)}
# Source207..212: public_key_RSA_*.pem
%{expand:%(for i in `seq 7 12`; do echo "Source$((200+${i})): public_key_RSA_${i}.pem"; done)}

####################################################################

# Patches

# Patches from mainline
# dracut now defaults to zstd-compressed initrd, support it here, ported from kernel 5.9
Patch10:	0001-lib-Add-zstd-support-to-decompress.patch

# ROSA-specific patches

# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid
# this.
Patch101:	perf-xmlto-skip-validation.patch

# http://bugs.rosalinux.ru/show_bug.cgi?id=6235
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102:	audit-make-it-less-verbose.patch

# AUFS 5 from http://aufs.sourceforge.net/
Patch109:	fs-aufs.patch
Patch110:	fs-aufs-2.patch

# For kmod() generator of RPM Provides
# Changes version of aacraid.ko
Patch111:	0001-Remove-RPM-illegal-chars-from-module-version.patch

# AltHa LSM Module
# https://www.altlinux.org/AltHa
# http://git.altlinux.org/gears/k/kernel-image-un-def.git
# TODO: known problem: https://bugzilla.altlinux.org/show_bug.cgi?id=38225
Patch201:	0001-AltHa-LSM-module.patch
Patch202:	0002-Documentation-for-AltHa-LSM.patch

# Other patches
Patch301:	objtool-sync-check.sh-set-the-exit-code-explicitly.patch
# sent to upstream, https://patchwork.kernel.org/patch/11446123/
Patch302:	0001-sign-file-full-functionality-with-modern-LibreSSL.patch
# Add sysctl to disable disk-based swap
Patch304: 	0001-mm-add-sysctl-to-disable-disk-based-swap.patch
# Support loading GOST-signed modules
Patch305:	0001-crypto-support-loading-GOST-signed-kernel-modules.patch
# Allow to off modules signature check dynamically
Patch306:	0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch

# Disable AutoReq
AutoReq: 	0
# but keep autoprov for kmod(xxx)
AutoProv: 	1

BuildRequires: 	bash
BuildRequires: 	bc
BuildRequires: 	binutils
BuildRequires: 	gcc
# ./scripts/mkcompile_h
BuildRequires: 	hostname
# For power tools
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	kmod-devel kmod-compat
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	bzip2
BuildRequires:	rsync

%ifarch x86_64 aarch64
BuildRequires:  numa-devel
%endif

# for perf, cpufreq and all other tools
# for cpupower
%if %{build_cpupower}
BuildRequires:		pciutils-devel
%endif
# for perf
%if %{build_perf}
BuildRequires:		asciidoc
BuildRequires:		audit-devel
BuildRequires:		binutils-devel
BuildRequires:		elfutils-devel
BuildRequires:		libunwind-devel
BuildRequires:		newt-devel
BuildRequires:		perl-devel
BuildRequires:		pkgconfig(python)
BuildRequires:		xmlto
BuildRequires:		zlib-devel
BuildRequires:		pkgconfig(libcrypto)
%endif

%if %{enhanced_security}
# (To generate keys)
# LibreSSL has GOST support without editing openssl.cnf
# or dlopen()-ing external library
BuildRequires:		libressl libressl-devel
# To verify signatures (find, xargs, hexdump)
BuildRequires:		findutils util-linux
%endif

%if %{with binary_extra_modules}
BuildRequires: kernel-source-rtl8821ce
BuildRequires: kernel-source-tripso
BuildRequires: kernel-source-ipt-so
%ifarch %{x86_64}
# TODO: drop it for kernels >= 5.6
# because all guest modules have been upstreamized
# https://www.phoronix.com/scan.php?page=news_item&px=VirtualBox-Shared-Folder-5.6
BuildRequires: kernel-source-virtualbox-vboxadditions
%endif
%ifarch %{x86_64}
BuildRequires: kernel-source-shredder-kernel
%endif
# rosa-test-suite is maintained in certified branches only
# nlkm, memfreetest, pcietest
%if %{with nickel}
BuildRequires: kernel-source-rosa-test-suite
%endif
%endif #with binary_extra_modules

%if %{with ccache}
BuildRequires: ccache
%endif

%if %{with compress_modules}
BuildRequires: zstd
%endif

Provides:	kernel = %{EVRD}
Provides:	kernel-%{flavour} = %{EVRD}
# dnf config-manager --dump | grep installonly
Provides:	installonlypkg(kernel) = %{EVRD}.image
Provides:	installonlypkg(kernel) = %{EVRD}.modules

# >= because of added support of zstd-compressed modules
Requires(posttrans):	dracut >= 053-0.git5eb736.5
Requires(posttrans):	kmod >= 28-3

# Usually necessary, but sometimes user may want to not install them
Recommends:	linux-firmware
Recommends:	wireless-regdb
Recommends:	crda
Recommends:	microcode
# Set BFQ as default scheduler for HDDs
# https://www.phoronix.com/scan.php?page=article&item=linux-50hdd-io
Recommends:	udev-rules-ioschedulers

%if %{with flow_abi}
Requires:	kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

Obsoletes:	kernel-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description
The kernel package contains the Linux kernel (vmlinuz), the core of your
operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.

%posttrans
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd
# that is created then will be non-functional. But when the user installs
# kernel-<...> package, that defunct initrd will be replaced with a working
# one here.
#
# depmod is also needed, because some DKMS-modules might have been installed
# when the devel package was installed but that was before the main modules
# were installed.
# This is also the reason the devel package is in Requires(post) for this
# package now: it must be installed completely before we call depmod here.
/sbin/depmod -a %{kver_full}
/sbin/dracut -f %{initrd_path} %{kver_full}

# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2

%files -f %{kernel_files}
%{_bootdir}/System.map-%{kver_full}
%{_bootdir}/symvers-%{kver_full}.zst
%{_bootdir}/config-%{kver_full}
%{_bootdir}/vmlinuz-%{kver_full}
%ghost %{initrd_path}
%ifarch %{armx}
%{_bootdir}/dtb-%{kver_full}
%endif
%{_modulesdir}/%{kver_full}/modules.*
%if %{with flow_abi}
%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
%if %{with binary_extra_modules}
# 8821ce.ko.debug will not be excluded and will be in the main debug subpackage
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821ce.ko%{kmod_suffix}
%ifarch %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/extra/shredder-kernel.ko%{kmod_suffix}
%endif
%ifarch %{x86_64}
# vbox host: vboxnetflt vboxnetadp vboxdrv vboxpci
# vbox guest: vboxvideo vboxguest vboxsf
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/vbox*.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_TRIPSO.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_so.ko%{kmod_suffix}
%if %{with nickel}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/nlkm.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/memfreetest.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/pcietest.ko%{kmod_suffix}
%endif
%endif #with binary_extra_modules

############################################################################

%if %build_devel
%package devel
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	glibc-devel
Requires:	ncurses-devel
Requires:	make
Requires:	gcc
Requires:	perl
Provides:	kernel-devel = %{kverrel}
Provides:	kernel-%{flavour}-devel = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.devel
Obsoletes:	kernel-%{flavour}-%{kernelversion}.%{patchlevel}-devel-latest < 5.10.34-2

# Have dkms updated/installed before the kernel, scriptlet here checks if dkms exists
OrderWithRequires(post): dkms
# Try to remove the main kernel package after removing this devel package
# because there may be dkms-built kernel modules inside directories owned
# by the main package, try to get rid of such files before RPM starts to
# deal with directories owned in the main package
# (note that the devel package does not explicitly require the main package,
# there is no need to do so, a kernel module may be built using just the devel part).
OrderWithRequires(postun): %{name} = %{EVRD}

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

%description devel
This package contains the kernel files (headers and build tools)
that should be enough to build additional drivers for
use with %{name}.

%post devel
if command -v dkms_autoinstaller >/dev/null 2>&1; then
	dkms_autoinstaller start %{kver_full}
fi

%preun devel

# If any DKMS modules with REMAKE_INITRD=yes in their configs have been
# uninstalled, initrd has been regenerated for the given kernel. However,
# the kernel itself might have been uninstalled before, so that (defunct)
# initrd image files would be left behind. Remove them if the kernel itself
# is no longer installed. Should work if they are uninstalled in parallel
# too.
if ! test -f /boot/vmlinuz-%{kver_full}; then
	rm -f /boot/initrd-%{kver_full}.img
	rm -f /boot/initrd-%{kver_full}_old.img
fi

if ! command -v dkms >/dev/null 2>&1; then exit 0; fi

for ii in $(/usr/sbin/dkms status -k %{kver_full} | awk '{ print $1 $2; }'); do
	mod=$(echo $ii | awk -v FS=',' '{ print $1; }')
	ver=$(echo $ii | awk -v FS=',' '{ print $2; }')
	/usr/sbin/dkms --rpm_safe_upgrade uninstall -m $mod -v $ver -k %{kver_full} || :
done

%files devel
%{devel_root}/Documentation
%dir %{devel_root}
%dir %{devel_root}/arch
%dir %{devel_root}/include
%{devel_root}/arch/um
%{devel_root}/arch/x86
%{devel_root}/arch/arm
%{devel_root}/arch/arm64
%{devel_root}/block
%{devel_root}/certs
%{devel_root}/crypto
%{devel_root}/drivers
%{devel_root}/fs
%{devel_root}/include/soc
%{devel_root}/include/acpi
%{devel_root}/include/asm-generic
%{devel_root}/include/clocksource
%{devel_root}/include/config
%{devel_root}/include/crypto
%{devel_root}/include/drm
%{devel_root}/include/dt-bindings
%{devel_root}/include/generated
%{devel_root}/include/keys
%{devel_root}/include/kvm
%{devel_root}/include/linux
%{devel_root}/include/math-emu
%{devel_root}/include/media
%{devel_root}/include/misc
%{devel_root}/include/net
%{devel_root}/include/pcmcia
%{devel_root}/include/ras
%{devel_root}/include/rdma
%{devel_root}/include/scsi
%{devel_root}/include/sound
%{devel_root}/include/target
%{devel_root}/include/trace
%{devel_root}/include/uapi
%{devel_root}/include/vdso
%{devel_root}/include/video
%{devel_root}/include/xen
%{devel_root}/init
%{devel_root}/ipc
%{devel_root}/kernel
%{devel_root}/lib
%{devel_root}/mm
%{devel_root}/net
%{devel_root}/samples
%{devel_root}/scripts
%{devel_root}/security
%{devel_root}/sound
%{devel_root}/tools
%{devel_root}/usr
%{devel_root}/virt
%{devel_root}/.config
%{devel_root}/Kbuild
%{devel_root}/Kconfig
%{devel_root}/Makefile
%{devel_root}/Module.symvers
%{devel_root}/arch/Kconfig
%{_modulesdir}/%{kver_full}/build
%{_modulesdir}/%{kver_full}/source

%endif # /build_devel

############################################################################

%if %build_debug
%package debuginfo
Summary:	Debuginfo for %{name}
Group:		Development/Debug
Provides:	kernel-debug = %{kverrel}
AutoReq: 0
AutoProv: 0

%description debuginfo
This package contains the files with debuginfo for %{name}.

%files debuginfo -f %{debuginfo_files}
%{_bootdir}/vmlinux-%{kver_full}

%endif # /build_debug

############################################################################

%if %build_doc
%package doc
Summary: 	Various documentation bits found in the kernel source
Group: 		Documentation
Buildarch:	noarch

%description doc
This package contains documentation files from the kernel source.

%files doc
%doc linux-%{tar_ver}/Documentation/*

%endif

############################################################################

%if %{build_perf}
%package -n perf
Summary:	perf tool and the supporting documentation
Group:		System/Kernel and hardware

%description -n perf
The package contains perf tool and the supporting documentation.

%files -n perf
%{_bindir}/perf
%ifarch x86_64
%{_bindir}/perf-read-vdso32
%endif
%{_bindir}/trace
%dir %{_prefix}/libexec/perf-core
%dir %{_libdir}/traceevent
%dir %{_libdir}/traceevent/plugins
%{_libdir}/traceevent/plugins/*
%{_prefix}/libexec/perf-core/*
%{_mandir}/man[1-8]/perf*
%{_sysconfdir}/bash_completion.d/perf
%{_datadir}/perf-core/strace/groups/*
%{_datadir}/doc/perf-tip/*.txt
/usr/lib/perf/examples/bpf/*
/usr/lib/perf/include/bpf/*

%endif

############################################################################

%if %{build_cpupower}
%package -n cpupower

Summary:	The cpupower tools
Group:		System/Kernel and hardware

%description -n cpupower
The cpupower tools.

%post -n cpupower

if [ $1 -ge 0 ]; then
# Do not enable/disable cpupower.service directly, because it should start
# when cpupower.path triggers it.
	/bin/systemctl enable cpupower.path >/dev/null 2>&1 || :
	/bin/systemctl start cpupower.path >/dev/null 2>&1 || :
fi

%preun -n cpupower
if [ $1 -eq 0 ]; then
        /bin/systemctl --no-reload disable cpupower.path > /dev/null 2>&1 || :
        /bin/systemctl stop cpupower.path > /dev/null 2>&1 || :
fi

%files -n cpupower -f cpupower.lang
%{_bindir}/cpupower
%{_bindir}/cpupower-start.sh
%{_libdir}/libcpupower.so.0
%{_libdir}/libcpupower.so.0.0.1
%{_unitdir}/cpupower.service
%{_unitdir}/cpupower.path
%{_datadir}/bash-completion/completions/cpupower
%{_mandir}/man[1-8]/cpupower*
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower

############################################################################

%package -n cpupower-devel
Summary:	Development files for cpupower
Group:		Development/Kernel
Requires:	cpupower = %{EVRD}
Conflicts:	%{_lib}cpufreq-devel

%description -n cpupower-devel
This package contains the development files for cpupower.

%files -n cpupower-devel
%{_libdir}/libcpupower.so
%{_includedir}/cpufreq.h
%{_includedir}/cpuidle.h

%endif

############################################################################

%if %{build_headers}
%package -n kernel-headers
Summary:	Linux kernel header files mostly used by your C library
Group:		System/Kernel and hardware
Epoch:		1
Provides:	linux-userspace-headers = %{EVRD}
Provides:	kernel-release-headers = %{EVRD}

%description -n kernel-headers
C header files from the Linux kernel. The header files define
structures and constants that are needed for building most
standard programs, notably the C library.

This package is not suitable for building kernel modules, you
should use the 'kernel-devel' package instead.

%files -n kernel-headers
%{_includedir}/*
# Don't conflict with cpupower-devel
%if %{build_cpupower}
%exclude %{_includedir}/cpufreq.h
%exclude %{_includedir}/cpuidle.h
%endif
%endif

############################################################################

%if %{with uml}

%package uml
Summary:	User Mode Linux binary
Group:		System/Kernel and hardware
Provides:	kernel-uml = %{kverrel}
Provides:	kernel-uml-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.uml
Obsoletes:	kernel-uml-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description uml
User Mode Linux binary.
Stripped, debug is in %{name}-debuginfo.

%files uml
%{_bindir}/linux-uml-%{kver_full}
#------------------------------------------------

%package uml-modules
Summary:	User Mode Linux (UML) kernel modules
Group:		System/Kernel and hardware
Provides:	kernel-uml-modules = %{kverrel}
Provides:	kernel-uml-modules-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel-module) = %{EVRD}.uml
Obsoletes:	kernel-uml-modules-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description uml-modules
User Mode Linux (UML) kernel modules
- not compressed
- not stripped
- signed

%files uml-modules
/lib/modules-uml/%{kver_full}

%endif #endif uml

#------------------------------------------------

%if %{with binary_extra_modules}

%ksob_mk_module_pkg -n 8821ce -s net/wireless
%ksob_mk_module_pkg -n xt_TRIPSO -s net -r tripso
%ksob_mk_module_pkg -n xt_so -s net -r ipt-so

%ifarch %{x86_64}
%ksob_mk_module_pkg -n shredder-kernel -s extra -r rosa-shredder-user
%endif

#------------------------------------------------

%ifarch %{x86_64}
# virtualbox guest, to be dropped in kernels 5.6+ (upsreamized)
%ksob_mk_module_pkg -n vboxvideo -s misc
%ksob_mk_module_pkg -n vboxguest -s misc
%ksob_mk_module_pkg -n vboxsf -s misc

#------------------------------------------------
# a package which will pull all those modules
%package -n kernel-modules-virtualbox-guest-%{ksob_kernel}
Summary: Meta package to pull VirtualBox guest kernel modules for kernel-%{flavour}-%{kernelversion}.%{patchlevel}
Group: System/Kernel and hardware
Requires: kernel-module-vboxvideo-%{ksob_kernel}
Requires: kernel-module-vboxguest-%{ksob_kernel}
Requires: kernel-module-vboxsf-%{ksob_kernel}
Obsoletes: kernel-modules-virtualbox-guest-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description -n kernel-modules-virtualbox-guest-%{ksob_kernel}
Meta package to pull VirtualBox guest kernel modules for %{name}

%files -n kernel-modules-virtualbox-guest-%{ksob_kernel}
# end ifarch
%endif
# empty
#------------------------------------------------

%if %{with nickel}
%ksob_mk_module_pkg -n nlkm -s misc
%ksob_mk_module_pkg -n memfreetest -s misc
%ksob_mk_module_pkg -n pcietest -s misc
%endif

%endif #binary_extra_modules

############################

%if %{with flow_abi}
%package -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
Summary: Directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x
Group: System/Kernel and hardware

%description -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
This package contains a directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x.
Some vendors provide binary-only kernel modules. They can put them into /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi.
kmod tools will find them for kernels 5.4.x of "generic" and "nickel" flavours,
but there is no guarantee that these modules will load and work correctly on newer
or older kernels then the ones they were build against.

We call this "flow ABI" because most ABIs are not changed between %{kernelversion}.%{patchlevel}.x releases,
but there are no specific guarantees. ABI may evolve and change.
We highly recommend to use DKMS and build third-party kernel modules from source for every kernel!

This package does nothing, just owns a directory for third-party binary kernel modules.

%files -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif #with flow_abi

################################################

%prep

# avoid accidental merge
%if 0%{?rpm5}
%{error:Package structure is for dnf, not for urpmi!}
%endif

%setup -q -n %top_dir_name -c
%if %{with uml}
cp -r %{src_dir} %{src_dir}.uml
%endif
cd %src_dir

%autopatch -p1

#
# Setup Begin
#

# Kernel configuration

echo "Creating the kernel configuration file."

# Configs
cp %{SOURCE110} .config

# Disable ASLR for 32-bit systems because it does not play well with
# hibernate.
%ifarch %{ix86}
sed -i	's/CONFIG_RANDOMIZE_BASE=y/# CONFIG_RANDOMIZE_BASE is not set/' .config
%endif

# Disable checking for W+X memory mappings for 32-bit systems. The warnings
# may confuse the users and noone is eager to fix the underlying problem,
# it seems.
%ifarch %{ix86}
sed -i	's/CONFIG_DEBUG_WX=y/# CONFIG_DEBUG_WX is not set/' .config
%endif

touch %{build_dir}/.config.append

# get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
# wipe all .gitignore/.get_maintainer.ignore files
find . -name "*.g*ignore" -delete

# Enable debug info if requested.
sed -i '/CONFIG_DEBUG_INFO/d' .config
%if %build_debug
echo 'CONFIG_DEBUG_INFO=y' >> %{build_dir}/.config.append
echo 'CONFIG_DEBUG_INFO_DWARF4=y' >> %{build_dir}/.config.append
echo 'CONFIG_GDB_SCRIPTS=y' >> %{build_dir}/.config.append
%else
echo 'CONFIG_DEBUG_INFO=n' >> %{build_dir}/.config.append
%endif

%if %{enhanced_security}
### SELinux enablement
# seems to be needed to boot system in enforcing selinux mode
# note: cpio fpormat of initramfs does not support xattrs without patches
# see also: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1680315
sed -i '/CONFIG_SECURITY_SELINUX_DISABLE/d' .config
echo CONFIG_SECURITY_SELINUX_DISABLE=y >> %{build_dir}/.config.append
# enable selinux in kernel by default if not disabled explicitly
sed -i '/CONFIG_SECURITY_SELINUX_BOOTPARAM/d' .config
echo CONFIG_SECURITY_SELINUX_BOOTPARAM=y >> %{build_dir}/.config.append

### Signing kernel modules
# https://www.kernel.org/doc/html/v5.3/admin-guide/module-signing.html
sed -i '/CONFIG_MODULE_SIG/d' .config
echo CONFIG_MODULE_SIG=y >> %{build_dir}/.config.append
%if %{with oblig_signed_modules}
# Disallow loading not signed modules
echo CONFIG_MODULE_SIG_FORCE=y >> %{build_dir}/.config.append
%else
echo CONFIG_MODULE_SIG_FORCE=n >> %{build_dir}/.config.append
%endif
# If %%build_debig is true, signatures will be stripped
# We sign modules manually in a tricky way bellow
echo CONFIG_MODULE_SIG_ALL=n >> %{build_dir}/.config.append
# Set path to the key that will be generated later by openssl/libressl
echo CONFIG_MODULE_SIG_KEY=\"%{certs_signing_key_priv_rnd}\" >> %{build_dir}/.config.append
# Set path to one PEM file with all keys that the kernel must trust
sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/d' .config
echo CONFIG_SYSTEM_TRUSTED_KEYS=\"%{certs_public_keys}\" >> %{build_dir}/.config.append
# Reserve area for inserting a certificate without recompiling
sed -i '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' .config
echo CONFIG_SYSTEM_EXTRA_CERTIFICATE=y >> %{build_dir}/.config.append

# Memory wiping
# Introduced in kernel 5.3 by commit 6471384af2a6530696fc0203bafe4de41a23c9ef
# Estimated performance impact is described in the commit
# "Fill newly allocated pages and heap objects with zeroes."
# To enable, add to cmdline: init_on_alloc=1
sed -i '/CONFIG_INIT_ON_ALLOC_DEFAULT_ON/d' .config
echo CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n >> %{build_dir}/.config.append
# "Fill freed pages and heap objects with zeroes"
# To disable, add to cmdline: init_on_free=0
sed -i '/CONFIG_INIT_ON_FREE_DEFAULT_ON/d' .config
%if %{with nickel}
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=y >> %{build_dir}/.config.append
%else
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=n >> %{build_dir}/.config.append
%endif
# Here enabling only either only init_on_free or only init_on_alloc
# makes sense; init_on_alloc is not about protecting information.

# To load kernel keyring in UML
for i in STREEBOG SHA1 SHA256 SHA512 ECRDSA RSA ; do
	sed -i "/CONFIG_CRYPTO_${i}/d" .config
	echo "CONFIG_CRYPTO_${i}=y" >> %{build_dir}/.config.append
done

sed -i '/CONFIG_LSM/d' .config
echo 'CONFIG_LSM="yama,loadpin,integrity,selinux,apparmor,altha"' >> %{build_dir}/.config.append
sed -i '/CONFIG_SECURITY_ALTHA/d' .config
echo 'CONFIG_SECURITY_ALTHA=y' >> %{build_dir}/.config.append
%endif

# Disable disk-based swap (swap files and partitions) on certified systems by default
# because we cannot guarantee that data stored in swap is erased from disk securely.
# Our patch, based on Chromium OS kernel, allows to use only zram if CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y.
# sysctl vm.disk_based_swap = 1 to allow disk-based swap, = 0 to disable it.
# Note that CONFIG_ZRAM_WRITEBACK is still on.
#sed -i '/CONFIG_DISK_BASED_SWAP_DEFAULT_ON/d' .config
#%if %{with nickel}
#echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=n' >> %{build_dir}/.config.append
#%else
echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y' >> %{build_dir}/.config.append
#%endif

cat %{build_dir}/.config.append >> .config

# Store the config file in the appropriate directory.
CONFIG_DIR=arch/%{arch_type}/configs
mkdir -p "${CONFIG_DIR}"

cfg_file=arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour}

make ARCH=%{arch_type} oldconfig
# When it is needed to edit kernel configs, run:
# abf fetch
# rpmbuild --define "_sourcedir $PWD" --with=fail -bb kernel.spec
# and then work with the config in the buildroot with applied patches etc.
%{?_with_fail:exit 1}
mv .config ${cfg_file}

# Looks like 'make oldconfig' removes '# CONFIG_64BIT is not set' for some
# reason. For now, let us restore it.
%ifarch %{ix86}
sed -i 's/CONFIG_64BIT=y//' ${cfg_file}
echo '# CONFIG_64BIT is not set' >> ${cfg_file}
%endif

echo "Created ${cfg_file}."

# make sure the kernel has the sublevel we know it has...
LC_ALL=C sed -ri "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile

# get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
find . -name '.get_maintainer.ignore' | %kxargs rm -f

############################################################################

%build

# Ensure that build time generated private keys don't get published
# as e.g. "RPM build root" on ABF!
# Note that ABF sends SIGKILL to rpm-build.sh when the build is terminated;
# in this case trap will not work, but RPM build root also will not be
# saved because rpm-build.sh saves it, but it is SIGKILLed.
# For best security we could store private keys in RAM (not reachable from
# filesystem, so not in /tmp!) and override sth like fopen() by LD_PRELOAD
# to give the content of keys from RAM when a virtual address of a key file
# is accessed, but currently I don't know how to implement this (TODO: ).
_cleanup(){
	# Show resulting kernel public keys for debugging
	cat "%{src_dir}/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}/%{certs_dir_rnd}"
%if %{with uml}
	cat "%{src_dir}.uml/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}.uml/%{certs_dir_rnd}"
%endif
}
# Make a trap to delete keys even if %%build fails in the middle
trap "_cleanup" EXIT

rm -rf %{temp_root}
install -d %{temp_root}

cd %src_dir

### Keys for signing kernel modules
# Keys can be generated both manually and automatically,
# let's generate them by ourselves to take full control of the process
# https://www.ibm.com/support/knowledgecenter/en/SSB23S_1.1.0.13/gtps7/cfgcert.html
# See also certs/Makefile in kernel source
%if %{enhanced_security}
mkdir -p "%{certs_dir_rnd}"

# On ABF, %%packager == $username <$email>
# Try to extract email from %%packager if it is set
_get_email(){
	# Check that macro %%packager was set and is not empty
	if echo '%{packager}' | grep -q 'packager}$' || [ -z "%{packager}" ]
		# If was not set or is empty, use default email
		then echo 'rpmbuild@rosa.unknown' && return
		# Otherwise try to extract email from 'name <email>' or sth else
		else temp="$(echo '%{packager}' | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | tr -d '<>' | grep -E '@.*\..*' | head -n 1)"
	fi
	# Validate that what we have now is a valid email
	# https://stackoverflow.com/a/2138832, https://stackoverflow.com/a/41192733
	# Note that we set %%_buildshell to /bin/bash to guarantee the work of this bashism
	regex_email="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
	if [[ "$temp" =~ ${regex_email} ]]
		# If it is, use it
		then echo "$temp" && return
		# Otherwise use default email
		else echo 'rpmbuild@rosa.unknown' && return
	fi
	# If script above has not return'ed for any reason,
	# e.g. because of non-bash shell being not able to
	# process regexp, use default email
	echo 'rpmbuild@rosa.unknown'
}
email="$(_get_email)"

cat <<EOF > "%{certs_key_config_rnd}"
[ req ]
prompt = no
string_mask = utf8only
#default_keyfile = %{certs_signing_key_priv_rnd}
distinguished_name = req_distinguished_name
x509_extensions = myexts
[ req_distinguished_name ]
organizationName = %{vendor} rpmbuild
commonName = Build time autogenerated @ALGO@ kernel key
emailAddress = ${email}
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
cat "%{certs_key_config_rnd}"
sed -e 's,@ALGO@,RSA,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.RSA"
sed -e 's,@ALGO@,GOST R 34.10-2012,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.GOST"
# avoid using the template
rm -f "%{certs_key_config_rnd}"

_libressl_gen_key(){
	if [ "$GOST_KEY" = 1 ]
	then
		lssl_req_gost_args="\
			-newkey gost2001 \
			-pkeyopt dgst:streebog512 -pkeyopt paramset:A \
			-streebog512"
		OUT="%{certs_signing_key_priv_rnd}.GOST"
		CONFIG="%{certs_key_config_rnd}.GOST"
	else
		lssl_req_gost_args=""
		OUT="%{certs_signing_key_priv_rnd}.RSA"
		CONFIG="%{certs_key_config_rnd}.RSA"
	fi
		libressl req -new -nodes -utf8 -batch \
			$lssl_req_gost_args \
			-days 109500 \
			-x509 -config "$CONFIG" \
			-out "$OUT" \
			-keyout "$OUT"

	# Verify
	if [ "$GOST_KEY" = 1 ]; then
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
	fi
}

GOST_KEY=0 _libressl_gen_key
GOST_KEY=1 _libressl_gen_key
# Fake CONFIG_MODULE_SIG_KEY to make build scripts happy
cp -v "%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}"

# Strip public parts from the generated PEMs
sed -n \
	'/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' \
	"%{certs_signing_key_priv_rnd}.GOST" \
	"%{certs_signing_key_priv_rnd}.RSA" \
	> "%{certs_public_keys}"

# link sign-file and extract-cert with LibreSSL instead of OpenSSL
if [ $? != 0 ] ; then exit $? ; fi
sed -i %{src_dir}/scripts/Makefile \
%if %{with uml}
    %{src_dir}.uml/scripts/Makefile \
%endif
	-e "s, libcrypto , libressl-libcrypto ,g"

%if %{with additional_keys}
# Add additional public RSA keys to the list of trusted keys for kernel modules
# Build kernel --without additional_keys if you do not want to trust them
cat %{expand:%(for i in `seq 1 12`; do echo "%%SOURCE$((200+${i}))" | tr "\n" " "; done)} \
	>> "%{certs_public_keys}"
%endif #endif additional_keys
cat %{certs_public_keys}
%endif #endif enhanced_security

# .config
%smake -s mrproper
cp arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour} .config

# make sure EXTRAVERSION says what we want it to say
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{flavour}-%{buildrpmrel}/" Makefile

# Print debug messages when loglevel=7 in cmdline.
# Those messages can be caught by debugfs without -DDEBUG.
# but sometimes it is required to see them via a serial port when booting the kernel.
# '#ifdef DEBUG' is used in different places for different purposes,
# so change DEBUG to PRINTK_DEBUG in one specific place.
#%if %build_debug
#sed -i %{src_dir}/include/linux/printk.h \
#	-e 's,^#ifdef DEBUG$,#if defined(DEBUG) || defined(PRINTK_DEBUG),g'
#export KCPPFLAGS="-DPRINTK_DEBUG"
#%endif

# build the kernel
echo "Building kernel %{kver_full}"

TARGETS="all"
# need to install dtbs to proper boot arm devices
%ifarch %{armx}
	TARGETS="$TARGETS dtbs"
%endif

%kmake V=1 -s $TARGETS

# Install modules
mkdir -p %{temp_modules}/%{kver_full}
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=%{kver_full} modules_install

%if %{with binary_extra_modules}
# Build and install procedure is specific to each Makefile from kernmel-source-* packages
# See also: https://www.kernel.org/doc/html/latest/kbuild/modules.html
# Copy directory because write permissions are required
# `make modules_install` must be done before this, otherwise these copied files will be deleted

cp -r "$(rpm -q --qf '/usr/src/rtl8821ce-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821ce)" kernel-source-rtl8821ce
pushd kernel-source-rtl8821ce
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821ce.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821ce.ko
popd
rm -fr kernel-source-rtl8821ce

cp -r "$(rpm -q --qf '/usr/src/tripso-%%{VERSION}-%%{RELEASE}' kernel-source-tripso)" kernel-source-tripso
pushd kernel-source-tripso
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_TRIPSO.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-tripso

cp -r "$(rpm -q --qf '/usr/src/ipt-so-%%{VERSION}-%%{RELEASE}' kernel-source-ipt-so)" kernel-source-ipt-so
pushd kernel-source-ipt-so
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_so.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-ipt-so

%ifarch %{x86_64}
cp -r "$(rpm -q --qf '/usr/src/shredder-kernel-%%{VERSION}-%%{RELEASE}' kernel-source-shredder-kernel)" kernel-source-shredder-kernel
pushd kernel-source-shredder-kernel
%kmake KERNEL_PATH=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/extra/
cp shredder-kernel.ko %{temp_modules}/%{kver_full}/kernel/extra/
popd
rm -fr kernel-source-shredder-kernel
%endif

%ifarch %{x86_64}
# build commands for virtualbox are based on the ones from the virtualbox package
cp -r "$(rpm -q --qf '/usr/src/vboxadditions-%%{VERSION}-%%{RELEASE}' kernel-source-virtualbox-vboxadditions)" kernel-source-virtualbox-vboxadditions
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
pushd kernel-source-virtualbox-vboxadditions
%kmake KERN_DIR=%{src_dir} KERN_VER=%{kver_full} -C vboxguest
cp -fv vboxguest/Module.symvers vboxsf/
%kmake KERN_DIR=%{src_dir} KERN_VER=%{kver_full} -C vboxsf
# TODO: vboxvideo is also build inside the upstream kernel...
# vboxsf is not in kernel 5.4
# https://www.phoronix.com/scan.php?page=news_item&px=VirtualBox-Shared-Folder-5.6
cp -fv vboxsf/Module.symvers vboxvideo/
%kmake KERN_DIR=%{src_dir} KERN_VER=%{kver_full} -C vboxvideo
for i in vboxguest vboxsf vboxvideo
do
	cp -v "${i}/${i}.ko" %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
# end ifarch ix86
%endif

%if %{with nickel}
# rosa-test-suite uses /sr/src/xxx-version, not /usr/src/xxx-version-release
cp -r "$(rpm -q --qf '/usr/src/rosa-test-suite-%%{VERSION}' kernel-source-rosa-test-suite)" kernel-source-rosa-test-suite
pushd kernel-source-rosa-test-suite
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
for i in nlkm memfreetest pcietest
do
cat << EOF > Makefile
obj-m := ${i}.o
all:
	make -C %{src_dir} M=\$(PWD) modules
EOF
%kmake
cp -fv ${i}.ko %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif #with nickel <- with binary_extra_modules

%endif #with binary_extra_modules

%if %{with uml}
cp -rv %{certs_dir_rnd} %{src_dir}.uml/
pushd %{src_dir}.uml
%kmake ARCH=um defconfig
cp .config .config.default
cat %{build_dir}/.config.append >> .config
%kmake oldconfig ARCH=um
diff -u .config.default .config || :
# Looks like 'make oldconfig' removes '# CONFIG_64BIT is not set' for some
# reason. For now, let us restore it.
%ifarch %{ix86}
sed -i 's/CONFIG_64BIT=y//' .config
echo '# CONFIG_64BIT is not set' >> .config
%endif
%kmake ARCH=um linux
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
#rm -fv linux
%kmake V=1 ARCH=um modules
mkdir -p %{temp_root}/lib/modules-uml/%{kver_full}/
%kmake ARCH=um INSTALL_MOD_PATH=%{temp_root}/lib/modules-uml/%{kver_full}/ modules_install
popd
%endif

install -d %{temp_boot}
install -m 644 System.map %{temp_boot}/System.map-%{kver_full}
install -m 644 .config %{temp_boot}/config-%{kver_full}
%{zstd_cmd} Module.symvers
install -m 644 Module.symvers.zst %{temp_boot}/symvers-%{kver_full}.zst

%ifarch %{armx}
%make_build ARCH=%{arch_type} V=1 INSTALL_DTBS_PATH=%{temp_boot}/dtb-%{kver_full} dtbs_install
%endif

%ifarch aarch64
	cp -f arch/arm64/boot/Image.gz %{temp_boot}/vmlinuz-%{kver_full}
%else
	cp -f arch/%{arch_type}/boot/bzImage %{temp_boot}/vmlinuz-%{kver_full}
%endif

# headers
%if %{build_headers}
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=%{kver_full} headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
%endif

# remove /lib/firmware, we use a separate linux-firmware package
rm -rf %{temp_root}/lib/firmware

# Prepare the files for kernel*-devel
%if %build_devel

mkdir -p %{temp_devel_root}
for i in $(find . -name 'Makefile*'); do cp -R --parents $i %{temp_devel_root}; done
for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i %{temp_devel_root}; done

cp -fR include %{temp_devel_root}

cp -fR scripts %{temp_devel_root}
cp -fR kernel/bounds.c %{temp_devel_root}/kernel
cp -fR kernel/time/timeconst.bc %{temp_devel_root}/kernel/time
cp -fR tools %{temp_devel_root}/
cp -fR arch/%{arch_type}/kernel/asm-offsets.{c,s} %{temp_devel_root}/arch/%{arch_type}/kernel/
%ifarch %{ix86} %{x86_64}
cp -fR arch/%{arch_type}/kernel/asm-offsets_{32,64}.c %{temp_devel_root}/arch/%{arch_type}/kernel/
cp -fR arch/%{arch_type}/purgatory/* %{temp_devel_root}/arch/%{arch_type}/purgatory/
# needed for arch/x86/purgatory
cp -fR lib/*.h lib/*.c %{temp_devel_root}/lib/
cp -fR arch/%{arch_type}/entry/syscalls/syscall* %{temp_devel_root}/arch/%{arch_type}/entry/syscalls/
cp -fR arch/%{arch_type}/tools %{temp_devel_root}/arch/%{arch_type}/
# needed for kexec
cp -fR arch/%{arch_type}/boot/*.h %{temp_devel_root}/arch/%{arch_type}/boot/
cp -fR arch/%{arch_type}/boot/*.c %{temp_devel_root}/arch/%{arch_type}/boot/
%endif
cp -fR arch/%{arch_type}/include %{temp_devel_root}/arch/%{arch_type}/
cp -fR .config Module.symvers %{temp_devel_root}

# Needed for truecrypt build (Danny)
cp -fR drivers/md/dm.h %{temp_devel_root}/drivers/md/

# Needed for lirc_gpio (#39004)
cp -fR drivers/media/pci/bt8xx/bttv{,p}.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/pci/bt8xx/bt848.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/common/btcx-risc.h %{temp_devel_root}/drivers/media/common/

# add acpica header files, needed for fglrx build
cp -fR drivers/acpi/acpica/*.h %{temp_devel_root}/drivers/acpi/acpica/

# aufs2 has a special file needed
cp -fR fs/aufs/magic.mk %{temp_devel_root}/fs/aufs

# SELinux needs security/selinux/include
cp -fR security/selinux/include %{temp_devel_root}/security/selinux

for i in alpha arc avr32 blackfin c6x cris csky frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
	mips mn10300 nds32 nios2 openrisc parisc powerpc riscv s390 score sh sparc tile unicore32 xtensa; do
	rm -rf %{temp_devel_root}/arch/$i
done

# Clean the scripts tree, and make sure everything is ok (sanity check)
# running prepare+scripts (tree was already "prepared" in build)
pushd %{temp_devel_root}
	%smake V=1 -s clean ARCH=%{arch_type}
popd

rm -f %{temp_devel_root}/.config.old

# fix permissions
chmod -R a+rX %{temp_devel_root}

# disable mrproper in -devel rpms
patch -p1 --fuzz=0 -d %{temp_devel_root} -i %{SOURCE2}

# endif build_devel
%endif

# TODO: maybe move to /usr/lib/debug?
%if %build_debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | \
	%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | %kxargs -I '{}' \
	sh -c 'cd `dirname {}`; \
		objcopy --add-gnu-debuglink=`basename {}`.debug \
		--strip-debug `basename {}`'
%endif # /build_debug

%if %{enhanced_security}
# https://patchwork.kernel.org/patch/11446123/
_libressl_sign(){
	if [ ! -f "$1" ]; then
	  echo "No file $1"
	  return 0
	fi
	f="$1"
%if %{with gost_sign}
	%{src_dir}/scripts/sign-file streebog512 \
		"%{certs_signing_key_priv_rnd}.GOST" "%{certs_signing_key_priv_rnd}.GOST" "$f"
%else
	%{src_dir}/scripts/sign-file sha512 \
		"%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}.RSA" "$f"
%endif
	unset f
}
export -f _libressl_sign
find %{temp_modules}/%{kver_full}/kernel \
%if %{with uml}
     %{temp_root}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -e -x -c 'if ! _libressl_sign "{}"; \
		then echo Failed _libressl_sign on "{}" && exit 1; fi'
%endif

# set extraversion to match srpm to get nice version reported by the tools
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
%smake -C tools/perf -s HAVE_CPLUS_DEMANGLE=1 WERROR=0 prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 man
%endif

%if %{build_cpupower}
# make sure version-gen.sh is executable.
chmod +x tools/power/cpupower/utils/version-gen.sh
%make -C tools/power/cpupower CPUFREQ_BENCH=false
%endif

_cleanup
############################################################################

%install
cd %src_dir

# We want to be able to test several times the install part
rm -rf %{buildroot}
cp -a %{temp_root} %{buildroot}

%if %{enhanced_security}
# Multithreaded verification that every kernel module
# has a signature attached to it
mkdir -p "%{certs_dir_rnd}"
touch %{certs_verify_tmp}
_verify_signature(){
	if [ -z "$1" ] || [ ! -f "$1" ]; then return; fi
	if hexdump -C "$1" | rev | cut -f 2 -d '|' | rev | tr -d '\n' | \
	   grep -q '~Module signature appended~'
		then
			if [ -f %{certs_verify_tmp} ]; then
				rm -f %{certs_verify_tmp}
			fi
		else
			echo "ERROR: Module $1 has no signature attached to it!"
			exit 1
	fi
}
export -f _verify_signature
find %{target_modules} \
%if %{with uml}
     %{buildroot}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -c '_verify_signature "{}"'
if [ -f %{certs_verify_tmp} ]; then
	echo "ERROR: seems that signatures of none modules were verified!"
	exit 1
fi
rm -f %{certs_verify_tmp}
%endif

# compressing modules
%if %{with compress_modules}
# Tested on /lib/modules/5.10.34-generic-2rosa2019.1-x86_64, the results are the following:
# * decompressed: 266.3 MiB
# * xz -9 --extreme: 67.8 MiB
# * zstd --ultra -22 without training: 73.5 MiB
# * zstd -6 without training: 79.6 MiB
# * zstd --ultra -22 with training: 66.3 MiB (the winner!)
# Training takes only a few minutes, make it here in place with current zstd and kernel modules.
# But! Decompressing also requires a dictionary for zstd, that will be too complex, so not using training :(
# We already use zstd in dracut to compress initrds quickly and with good compression ration.
# Testing speed of loading modules:
# `time modinfo bcache.ko.xz` took 0,048s, `time modinfo bcache.ko.zstd` took 0,014s (for multiple times)
# find /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 -type f -name '*.ko.zst' > /tmp/zst.list
# time { for i in `cat /tmp/zst.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took ~31-40s, with disk cache (2+ runs) ~33s
# find /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 -type f -name '*.ko.xz' > /tmp/xz.list
# time { for i in `cat /tmp/xz.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took 43-47s, with disk cache (2+ runs) ~42s, +21%
# zstd-compressed initramfs image initrd-5.10.34-generic-1rosa2019.1-x86_64.img with *.ko.xz is 56,3 MiB
# zstd-compressed initramfs image initrd-5.10.34-generic-2rosa2019.1-x86_64.img with *.ko.zst is 58,4 MiB (+3.6%)
# /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 (*.ko.xz) is 78,1 MiB
# /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 (*.ko.zst) is 83,9 MiB (+7%)
# When zstd is compressing cpio (initrd image) with zstd-compressed kernel modules inside it, does it recompress data?
# It is not easy to make a choice between zstd and xz for kernel modules... Disk space (and so speed of installing
# RPM packages) is not much bigger, we do not try to support super low end devices, operation speed is a bit better.
# I have not seen measurable difference in startup time according to systemd-analyze.
# Note that decompression after zstd --ultra -22 will consume more memory than after zstd -6, see commit message in
# https://github.com/torvalds/linux/commit/73f3d1b48f5069d46b. I did not benchmark -6 vs -22 in runtime.
# Let's use zstd for now.
# zstd may also be used to compress linux-firmware to save a lot of space on disk,
# but upstream kernels still cannot decompress it.
#%%{zstd_cmd} -T0 --train $(find . -type f -name '*.ko')
#[ -f dictionary ]
# -T1 (one thread) because we run multiple zstd processes by xargs
find %{target_modules} -name "*.ko" | %kxargs %{zstd_cmd} --rm -T1 #-D dictionary
#rm -f dictionary
%endif

find %{buildroot}%{_modulesdir}/%{kver_full} -type f -name '*.ko%{kmod_suffix}' | sed -e 's,^%{buildroot},,' | sort -u >> %{kernel_files}
find %{buildroot}%{_modulesdir}/%{kver_full} -type d | sed -e 's,^%{buildroot},%dir ,' | sort -u >> %{kernel_files}

# We estimate the size of the initramfs because rpm needs to take this size
# into consideration when performing disk space calculations (See rhbz#530778)
# 65 MiB is a bit more than needed, but let's be more sure that there is enought space.
# On my PC, zstd-compressed initrds take 58,5 MiB.
# Real size of the RPM package should not increase because RPM compresses the payload.
# This file is %%ghost, so the real initrd will be deleted when uninstalling this package.
dd if=/dev/zero of=%{buildroot}%{initrd_path} bs=1M count=65

%if %build_debug
install -m 644 vmlinux %{buildroot}%{_bootdir}/vmlinux-%{kver_full}
find %{buildroot}%{_modulesdir} -type f -name '*.debug' | sed -e 's,^%{buildroot},,' | sort -u >> %{debuginfo_files}
%endif # /build_debug

pushd %{target_modules}
for i in *; do
	rm -f $i/build $i/source
	ln -sf /usr/src/linux-$i $i/build
	ln -sf /usr/src/linux-$i $i/source
done

# sniff, if we compressed all the modules, we change the stamp :(
# we really need the depmod -ae here
for i in *; do
	/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
	echo $?
done

# We used to create modules.description files which contained the
# description strings for the modules as shown by modinfo. These files
# are unlikely to be used right now, so create them (in case some old tool
# checks for their existence) but keep them empty.
for i in *; do
	touch $i/modules.description
done
popd

# need to set extraversion to match srpm again to avoid rebuild
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile
%if %{build_perf}

# perf tool binary and supporting scripts/binaries
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} lib=%{_lib} install

# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
sed -i -e '1 s,^.*$,#!%{__python3},' %{buildroot}%{_prefix}/libexec/perf-core/scripts/python/exported-sql-viewer.py

# perf man pages (note: implicit rpm magic compresses them later)
make -C tools/perf  -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
%endif

%if %{build_cpupower}
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
rm -f %{buildroot}%{_libdir}/*.{a,la}
%find_lang cpupower
mv cpupower.lang ../
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE50} %{buildroot}%{_unitdir}/cpupower.service
install -m644 %{SOURCE53} %{buildroot}%{_unitdir}/cpupower.path
install -m644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
install -m755 %{SOURCE52} %{buildroot}%{_bindir}/cpupower-start.sh
%endif

# delete junk
rm -fr %{buildroot}%{_usr}/src/*/kernel-source-*

%if %{with flow_abi}
# Prefix with "zzz" to put this directory into the end of search list
# and avoid tricks with depmod configs
mkdir -p %{buildroot}/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
ln -s /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi %{buildroot}%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13741 |21mr|kernel-5.4-generic-5.4.150-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# _get_email() in %%build contains bashisms for regexping
%define _buildshell /bin/bash

# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define _python_bytecompile_build 0

# Probably dwz bug, on i686 only file is not packaged:
# /usr/lib/debug/usr/bin/trace-5.4.40-3.i386.debug.#dwz#.b5xuKG
# dwz compresses only debuginfo from perf, cpupower, uml,
# not the kernel itself (because it is stripped not by RPM),
# so we do not loose much by disabling it.
%global _find_debuginfo_dwz_opts %{nil}

# Put everything into one non-standard debuginfo subpackage
# TODO: make multiple debuginfo packages coinstallable as installonlypkg,
# to achive this, there must be no conflicting files.
# Probably signing and compressing of kernel modules
# has to be moved to %%_spec_install_post.
%global _debuginfo_subpackages %{nil}
%global _debuginfo_template %{nil}
%undefine _debugsource_packages

# Hack: flavour and major version are variable, make %%_build_pkgcheck_* always detect and use this config
%global _build_pkgcheck_set %(echo "%{_build_pkgcheck_set}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')
%global _build_pkgcheck_srpm %(echo "%{_build_pkgcheck_srpm}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')

%define kernelversion 5
%define patchlevel 4
# sublevel is used for stable-based kernels
%define sublevel 150

# Release number. Increase this before a rebuild.
%define rpmrel 1
%define fullrpmrel	%{rpmrel}

%define rpmtag		%{disttag}

# version defines
%define kversion  	%{kernelversion}.%{patchlevel}.%{sublevel}
%define kverrel   	%{kversion}-%{fullrpmrel}
%define tar_ver   	%{kernelversion}.%{patchlevel}

%ifarch %{ix86}
%define arch_suffix	i586
%endif

%ifarch %{x86_64}
%define arch_suffix	x86_64
%endif

%ifarch aarch64
%define arch_suffix	arm64
%endif

%define buildrpmrel     %{fullrpmrel}%{rpmtag}-%{arch_suffix}
%define buildrel     	%{kversion}-%{buildrpmrel}

# %%build_selinux may be defined in branding-configs
#%%{?build_selinux}%{?!build_selinux:%bcond_with selinux}
#%%if %{with selinux}
%global enhanced_security 1
#%%else
#%%global enhanced_security 0
#%%endif
# Allow "rpmbuild --without enhanced_security <...>"
%{?_without_enhanced_security:%global enhanced_security 0}

# Fail the build after "make oldconfig" to edit kernel configs
%bcond_with fail

%if %{enhanced_security}
%bcond_without additional_keys
%endif
# User Mode Linux, https://habr.com/ru/company/itsumma/blog/459558/
# Only for x86 arches
# It fails to build regularly, and nobody uses it, so off it by default
%bcond_with uml

# "Nickel" is a special brand for certified distros
%if %{mdvver} == 201905
%bcond_without nickel
%bcond_without minimize
# Require kernel modules to be signed
%bcond_without oblig_signed_modules
%else
%bcond_with nickel
%bcond_with minimize
%bcond_with oblig_signed_modules
%endif

# Sign kernel modules with GOST algos
%bcond_without gost_sign

# Build binary out-of-tree kernel modules (experimental)
%bcond_without binary_extra_modules

%if %{with nickel}
%ifarch %{x86_64}
# rosa-test-suite is not available on i686
%bcond_without binary_modules_rosa_test_suite
%endif
%else
%bcond_with binary_modules_rosa_test_suite
%endif

%bcond_with ccache
%bcond_without flow_abi

# compress modules with zstd (zstd is good compression and fast decompression)
%bcond_without compress_modules
# Spend more resources on compression, but make resulting size less;
# decompression speed will not be affected, but more memory will be required
# which should not a problem here (performance penalty from allocating more
# memory should not be big, I think, but I did not benchmark).
%define zstd_cmd zstd -q --format=zstd --ultra -22

# Kernel flavour
%if %{with nickel}
%define flavour		nickel
%else
%define flavour		generic
%endif

# The full kernel version
%define kver_full	%{kversion}-%{flavour}-%{buildrpmrel}
############################################################################

%define top_dir_name 	kernel-%{_arch}
%define build_dir 	${RPM_BUILD_DIR}/%{top_dir_name}
%define src_dir 	%{build_dir}/linux-%{tar_ver}

# Common target directories
%define _bootdir	/boot
%define _modulesdir	/lib/modules
%define devel_root	/usr/src/linux-%{kver_full}

%define initrd_path %{_bootdir}/initrd-%{kver_full}.img

# Directories needed for building
%define temp_root	%{build_dir}/temp-root
%define temp_boot	%{temp_root}%{_bootdir}
%define temp_modules	%{temp_root}%{_modulesdir}
%define temp_devel_root	%{temp_root}%{devel_root}

# Directories definition needed for installing
%define target_boot	%{buildroot}%{_bootdir}
%define target_modules	%{buildroot}%{_modulesdir}

# Manual control of creating and deleting keys
# "rnd" is "random" and means that a key pair is generated at build time
# and is not saved anywhere.
%define certs_dir_rnd certs
%define certs_signing_key_priv_rnd %{certs_dir_rnd}/signing_key_priv.key
%define certs_signing_der %{certs_dir_rnd}/signing_key.x509
%define certs_key_config_rnd %{certs_dir_rnd}/x509.genkey
%define certs_public_keys %{certs_dir_rnd}/public.pem
%define certs_verify_tmp %{certs_dir_rnd}/verify.tmp

%define kernel_files %{_builddir}/kernel_files.list
%define debuginfo_files %{_builddir}/debuginfo_files.list

# Append list of files generate by find-debuginfo.sh to our custom list
%global __debug_install_post \
%{__debug_install_post} \
cat %{_builddir}/debugfiles.list >> %{debuginfo_files}

############################################################################

# Build defines
%define build_doc 		0
%define build_devel 	1
%define build_debug		1

# Build kernel-headers package
%if %{mdvver} < 202110
%define build_headers 1
%else
%define build_headers 0
%endif

# build perf and cpupower tools
%define build_perf 0
%define build_cpupower 0

# End of user definitions

# buildtime flags
%{?_without_doc: %global build_doc 0}
%{?_without_devel: %global build_devel 0}
%{?_without_debug: %global build_debug 0}
%{?_without_perf: %global build_perf 0}
%{?_without_cpupower: %global build_cpupower 0}

%{?_with_doc: %global build_doc 1}
%{?_with_devel: %global build_devel 1}
%{?_with_debug: %global build_debug 1}
%{?_with_perf: %global build_perf 1}
%{?_with_cpupower: %global build_cpupower 1}

%if %{with compress_modules}
%define kmod_suffix .zst
%else
%define kmod_suffix %{nil}
%endif

%if !%{build_debug}
# Disable debug rpms.
%define _enable_debug_packages 	%{nil}
%define debug_package 		%{nil}
%endif

# http://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/
%if %{with ccache}
%define kmake KBUILD_BUILD_TIMESTAMP='' %make CC='ccache gcc' ARCH="%{arch_type}"
%else
%define kmake %make CC='gcc' ARCH="%{arch_type}"
%endif

# there are places where parallel make don't work
%define smake make
%ifarch %{ix86} %{x86_64}
%define arch_type x86
%endif
%ifarch aarch64
%define arch_type arm64
%endif


# Parallelize xargs invocations on smp machines
%define kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")

#
# SRC RPM description
#
Summary: 	The Linux kernel
Name:		kernel-%{kernelversion}.%{patchlevel}-%{flavour}
Version: 	%{kversion}
Release: 	%{fullrpmrel}
License: 	GPLv2
Group: 	 	System/Kernel and hardware
URL:            http://www.kernel.org

####################################################################
#
# Sources
#
Source0: 	https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.xz

# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
# Needed, because otherwise the -devel won't build correctly.
Source2: 	disable-mrproper-prepare-scripts-configs-in-devel-rpms.patch

# TODO: make a separate package "ksobirator" and BR it
# after testing these macros properly
Source3:	macros.ksobirator
%{load:%{SOURCE3}}

# Kernel configuration files.
Source110:	kernel-%{arch_suffix}.config

# Cpupower: the service, the config, etc.
Source50:	cpupower.service
Source51:	cpupower.config
Source52:	cpupower-start.sh
Source53:	cpupower.path

Source80:	kernel.rpmlintrc
Source81:	minimize.txt
Source82:	minimize.sh

# Additional keys that can be used to sign kernel modules
# Generated by https://abf.io/soft/kernel-keys
# Source201..206: public_key_GOST_*.pem
%{expand:%(for i in `seq 1 6`; do echo "Source$((200+${i})): public_key_GOST_${i}.pem"; done)}
# Source207..212: public_key_RSA_*.pem
%{expand:%(for i in `seq 7 12`; do echo "Source$((200+${i})): public_key_RSA_${i}.pem"; done)}

####################################################################

# Patches

# The patch to make kernel x.y.z from x.y.0.
Patch1:   	https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.xz

# Patches from mainline
# dracut now defaults to zstd-compressed initrd, support it here, ported from kernel 5.9
Patch10:	0001-lib-Add-zstd-support-to-decompress.patch

# ROSA-specific patches

# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid
# this.
Patch101:	perf-xmlto-skip-validation.patch

# http://bugs.rosalinux.ru/show_bug.cgi?id=6235
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102:	audit-make-it-less-verbose.patch

# AUFS 5 from http://aufs.sourceforge.net/
Patch109:	fs-aufs.patch
Patch110:	fs-aufs-2.patch

# For kmod() generator of RPM Provides
# Changes version of aacraid.ko
Patch111:	0001-Remove-RPM-illegal-chars-from-module-version.patch

# AltHa LSM Module
# https://www.altlinux.org/AltHa
# http://git.altlinux.org/gears/k/kernel-image-un-def.git
# TODO: known problem: https://bugzilla.altlinux.org/show_bug.cgi?id=38225
Patch201:	0001-AltHa-LSM-module.patch
Patch202:	0002-Documentation-for-AltHa-LSM.patch

# Other patches
Patch301:	objtool-sync-check.sh-set-the-exit-code-explicitly.patch
# sent to upstream, https://patchwork.kernel.org/patch/11446123/
Patch302:	0001-sign-file-full-functionality-with-modern-LibreSSL.patch
# Add sysctl to disable disk-based swap
Patch304: 	0001-mm-add-sysctl-to-disable-disk-based-swap.patch
# Support loading GOST-signed modules
Patch305:	0001-crypto-support-loading-GOST-signed-kernel-modules.patch
# Allow to off modules signature check dynamically
Patch306:	0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch

# Disable AutoReq
AutoReq: 	0
# but keep autoprov for kmod(xxx)
AutoProv: 	1

BuildRequires: 	bash
BuildRequires: 	bc
BuildRequires: 	binutils
BuildRequires: 	gcc
# For CONFIG_STACK_VALIDATION=y
BuildRequires: 	pkgconfig(libelf)
# ./scripts/mkcompile_h
# in net-tools in rosa2016.1, already installed
%if %{mdvver} > 201610
BuildRequires: 	hostname
%endif
# For power tools
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	kmod-devel kmod-compat
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	bzip2
BuildRequires:	rsync

%ifarch x86_64 aarch64
BuildRequires:  numa-devel
%endif

# for perf, cpufreq and all other tools
# for cpupower
%if %{build_cpupower}
BuildRequires:		pciutils-devel
%endif
# for perf
%if %{build_perf}
BuildRequires:		asciidoc
BuildRequires:		audit-devel
BuildRequires:		binutils-devel
BuildRequires:		elfutils-devel
BuildRequires:		libunwind-devel
BuildRequires:		newt-devel
BuildRequires:		perl-devel
BuildRequires:		pkgconfig(python)
BuildRequires:		xmlto
BuildRequires:		zlib-devel
BuildRequires:		pkgconfig(libcrypto)
%endif
%if %{with uml}
BuildRequires:		openssl-devel
%endif

%if %{enhanced_security}
# (To generate keys)
# LibreSSL has GOST support without editing openssl.cnf
# or dlopen()-ing external library
BuildRequires:		libressl libressl-devel
# To verify signatures (find, xargs, hexdump)
BuildRequires:		findutils util-linux
%endif

%if %{with binary_extra_modules}
BuildRequires: kernel-source-rtl8821ce
BuildRequires: kernel-source-tripso
BuildRequires: kernel-source-ipt-so
%ifarch %{x86_64}
# TODO: drop it for kernels >= 5.6
# because all guest modules have been upstreamized
# https://www.phoronix.com/scan.php?page=news_item&px=VirtualBox-Shared-Folder-5.6
BuildRequires: kernel-source-virtualbox-vboxadditions
%endif
%ifarch %{x86_64}
BuildRequires: kernel-source-shredder-kernel
%endif
# rosa-test-suite is maintained in certified branches only
# nlkm, memfreetest, pcietest
%if %{with binary_modules_rosa_test_suite}
BuildRequires: kernel-source-rosa-test-suite
%endif
%endif #with binary_extra_modules

%if %{with ccache}
BuildRequires: ccache
%endif

%if %{with compress_modules}
BuildRequires: zstd
%endif

Provides:	kernel = %{EVRD}
Provides:	kernel-%{flavour} = %{EVRD}
# dnf config-manager --dump | grep installonly
Provides:	installonlypkg(kernel) = %{EVRD}.image
Provides:	installonlypkg(kernel) = %{EVRD}.modules

# >= because of added support of zstd-compressed modules
Requires(posttrans):	dracut >= 053-0.git5eb736.5
Requires(posttrans):	kmod >= 28-3

# Usually necessary, but sometimes user may want to not install them
Recommends:	linux-firmware
Recommends:	wireless-regdb
Recommends:	crda
Recommends:	microcode
# Set BFQ as default scheduler for HDDs
# https://www.phoronix.com/scan.php?page=article&item=linux-50hdd-io
Recommends:	udev-rules-ioschedulers

%if %{with flow_abi}
Requires:	kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

Obsoletes:	kernel-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description
The kernel package contains the Linux kernel (vmlinuz), the core of your
operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.

%posttrans
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd
# that is created then will be non-functional. But when the user installs
# kernel-<...> package, that defunct initrd will be replaced with a working
# one here.
#
# depmod is also needed, because some DKMS-modules might have been installed
# when the devel package was installed but that was before the main modules
# were installed.
# This is also the reason the devel package is in Requires(post) for this
# package now: it must be installed completely before we call depmod here.
/sbin/depmod -a %{kver_full}
/sbin/dracut -f %{initrd_path} %{kver_full}

# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2

%files -f %{kernel_files} %{?_with_minimize:-f %{_builddir}/extra-modules-excluded.list}
%{_bootdir}/System.map-%{kver_full}
%{_bootdir}/symvers-%{kver_full}.zst
%{_bootdir}/config-%{kver_full}
%{_bootdir}/vmlinuz-%{kver_full}
%ghost %{initrd_path}
%ifarch %{armx}
%{_bootdir}/dtb-%{kver_full}
%endif
%{_modulesdir}/%{kver_full}/modules.*
%if %{with flow_abi}
%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
%if %{with binary_extra_modules}
# 8821ce.ko.debug will not be excluded and will be in the main debug subpackage
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821ce.ko%{kmod_suffix}
%ifarch %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/extra/shredder-kernel.ko%{kmod_suffix}
%endif
%ifarch %{x86_64}
# vbox host: vboxnetflt vboxnetadp vboxdrv vboxpci
# vbox guest: vboxvideo vboxguest vboxsf
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/vbox*.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_TRIPSO.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_so.ko%{kmod_suffix}
%if %{with binary_modules_rosa_test_suite}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/nlkm.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/memfreetest.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/pcietest.ko%{kmod_suffix}
%endif
%endif #with binary_extra_modules

############################################################################
%if %{with minimize}

%package extra-modules
Summary: Extra kernel modules for %{name}
Group: System/Kernel and hardware
Requires: %{name} = %{EVRD}
Provides: installonlypkg(kernel) = %{EVRD}.modules

%description extra-modules
Extra kernel modules for %{name}.
They are in a separate, not certified package,
to reduce attack surface by default on certified distros
and because OS is not certified to be a hypervisor or a firewall.

%files extra-modules -f %{_builddir}/extra-modules.list

%posttrans extra-modules
/sbin/depmod -a %{kver_full}
/sbin/dracut -f %{initrd_path} %{kver_full}

%endif
############################################################################

%if %build_devel
%package devel
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	glibc-devel
Requires:	ncurses-devel
Requires:	make
Requires:	gcc
Requires:	perl
Provides:	kernel-devel = %{kverrel}
Provides:	kernel-%{flavour}-devel = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.devel
Obsoletes:	kernel-%{flavour}-%{kernelversion}.%{patchlevel}-devel-latest < 5.10.34-2

# Have dkms updated/installed before the kernel, scriptlet here checks if dkms exists
OrderWithRequires(post): dkms
# Try to remove the main kernel package after removing this devel package
# because there may be dkms-built kernel modules inside directories owned
# by the main package, try to get rid of such files before RPM starts to
# deal with directories owned in the main package
# (note that the devel package does not explicitly require the main package,
# there is no need to do so, a kernel module may be built using just the devel part).
OrderWithRequires(postun): %{name} = %{EVRD}

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

%description devel
This package contains the kernel files (headers and build tools)
that should be enough to build additional drivers for
use with %{name}.

%post devel
if command -v dkms_autoinstaller >/dev/null 2>&1; then
	dkms_autoinstaller start %{kver_full}
fi

%preun devel

# If any DKMS modules with REMAKE_INITRD=yes in their configs have been
# uninstalled, initrd has been regenerated for the given kernel. However,
# the kernel itself might have been uninstalled before, so that (defunct)
# initrd image files would be left behind. Remove them if the kernel itself
# is no longer installed. Should work if they are uninstalled in parallel
# too.
if ! test -f /boot/vmlinuz-%{kver_full}; then
	rm -f /boot/initrd-%{kver_full}.img
	rm -f /boot/initrd-%{kver_full}_old.img
fi

if ! command -v dkms >/dev/null 2>&1; then exit 0; fi

for ii in $(/usr/sbin/dkms status -k %{kver_full} | awk '{ print $1 $2; }'); do
	mod=$(echo $ii | awk -v FS=',' '{ print $1; }')
	ver=$(echo $ii | awk -v FS=',' '{ print $2; }')
	/usr/sbin/dkms --rpm_safe_upgrade uninstall -m $mod -v $ver -k %{kver_full} || :
done

%files devel
%{devel_root}/Documentation
%dir %{devel_root}
%dir %{devel_root}/arch
%dir %{devel_root}/include
%{devel_root}/arch/um
%{devel_root}/arch/x86
%{devel_root}/arch/arm
%{devel_root}/arch/arm64
%{devel_root}/block
%{devel_root}/certs
%{devel_root}/crypto
%{devel_root}/drivers
%{devel_root}/fs
%{devel_root}/include/soc
%{devel_root}/include/acpi
%{devel_root}/include/asm-generic
%{devel_root}/include/clocksource
%{devel_root}/include/config
%{devel_root}/include/crypto
%{devel_root}/include/drm
%{devel_root}/include/dt-bindings
%{devel_root}/include/generated
%{devel_root}/include/keys
%{devel_root}/include/kvm
%{devel_root}/include/linux
%{devel_root}/include/math-emu
%{devel_root}/include/media
%{devel_root}/include/misc
%{devel_root}/include/net
%{devel_root}/include/pcmcia
%{devel_root}/include/ras
%{devel_root}/include/rdma
%{devel_root}/include/scsi
%{devel_root}/include/sound
%{devel_root}/include/target
%{devel_root}/include/trace
%{devel_root}/include/uapi
%{devel_root}/include/vdso
%{devel_root}/include/video
%{devel_root}/include/xen
%{devel_root}/init
%{devel_root}/ipc
%{devel_root}/kernel
%{devel_root}/lib
%{devel_root}/mm
%{devel_root}/net
%{devel_root}/samples
%{devel_root}/scripts
%{devel_root}/security
%{devel_root}/sound
%{devel_root}/tools
%{devel_root}/usr
%{devel_root}/virt
%{devel_root}/.config
%{devel_root}/Kbuild
%{devel_root}/Kconfig
%{devel_root}/Makefile
%{devel_root}/Module.symvers
%{devel_root}/arch/Kconfig
%{_modulesdir}/%{kver_full}/build
%{_modulesdir}/%{kver_full}/source

%endif # /build_devel

############################################################################

%if %build_debug
%package debuginfo
Summary:	Debuginfo for %{name}
Group:		Development/Debug
Provides:	kernel-debug = %{kverrel}
AutoReq: 0
AutoProv: 0

%description debuginfo
This package contains the files with debuginfo for %{name}.

%files debuginfo -f %{debuginfo_files}
%{_bootdir}/vmlinux-%{kver_full}

%endif # /build_debug

############################################################################

%if %build_doc
%package doc
Summary: 	Various documentation bits found in the kernel source
Group: 		Documentation
Buildarch:	noarch

%description doc
This package contains documentation files from the kernel source.

%files doc
%doc linux-%{tar_ver}/Documentation/*

%endif

############################################################################

%if %{build_perf}
%package -n perf
Summary:	perf tool and the supporting documentation
Group:		System/Kernel and hardware

%description -n perf
The package contains perf tool and the supporting documentation.

%files -n perf
%{_bindir}/perf
%ifarch x86_64
%{_bindir}/perf-read-vdso32
%endif
%{_bindir}/trace
%dir %{_prefix}/libexec/perf-core
%dir %{_libdir}/traceevent
%dir %{_libdir}/traceevent/plugins
%{_libdir}/traceevent/plugins/*
%{_prefix}/libexec/perf-core/*
%{_mandir}/man[1-8]/perf*
%{_sysconfdir}/bash_completion.d/perf
%{_datadir}/perf-core/strace/groups/*
%{_datadir}/doc/perf-tip/*.txt
/usr/lib/perf/examples/bpf/*
/usr/lib/perf/include/bpf/*

%endif

############################################################################

%if %{build_cpupower}
%package -n cpupower

Summary:	The cpupower tools
Group:		System/Kernel and hardware

%description -n cpupower
The cpupower tools.

%post -n cpupower

if [ $1 -ge 0 ]; then
# Do not enable/disable cpupower.service directly, because it should start
# when cpupower.path triggers it.
	/bin/systemctl enable cpupower.path >/dev/null 2>&1 || :
	/bin/systemctl start cpupower.path >/dev/null 2>&1 || :
fi

%preun -n cpupower
if [ $1 -eq 0 ]; then
        /bin/systemctl --no-reload disable cpupower.path > /dev/null 2>&1 || :
        /bin/systemctl stop cpupower.path > /dev/null 2>&1 || :
fi

%files -n cpupower -f cpupower.lang
%{_bindir}/cpupower
%{_bindir}/cpupower-start.sh
%{_libdir}/libcpupower.so.0
%{_libdir}/libcpupower.so.0.0.1
%{_unitdir}/cpupower.service
%{_unitdir}/cpupower.path
%{_datadir}/bash-completion/completions/cpupower
%{_mandir}/man[1-8]/cpupower*
%config(noreplace) %{_sysconfdir}/sysconfig/cpupower

############################################################################

%package -n cpupower-devel
Summary:	Development files for cpupower
Group:		Development/Kernel
Requires:	cpupower = %{EVRD}
Conflicts:	%{_lib}cpufreq-devel

%description -n cpupower-devel
This package contains the development files for cpupower.

%files -n cpupower-devel
%{_libdir}/libcpupower.so
%{_includedir}/cpufreq.h
%{_includedir}/cpuidle.h

%endif

############################################################################

%if %{build_headers}
%package -n kernel-headers
Summary:	Linux kernel header files mostly used by your C library
Group:		System/Kernel and hardware
Epoch:		1
Provides:	linux-userspace-headers = %{EVRD}
Provides:	kernel-release-headers = %{EVRD}

%description -n kernel-headers
C header files from the Linux kernel. The header files define
structures and constants that are needed for building most
standard programs, notably the C library.

This package is not suitable for building kernel modules, you
should use the 'kernel-devel' package instead.

%files -n kernel-headers
%{_includedir}/*
# Don't conflict with cpupower-devel
%if %{build_cpupower}
%exclude %{_includedir}/cpufreq.h
%exclude %{_includedir}/cpuidle.h
%endif
%endif

############################################################################

%if %{with uml}

%package uml
Summary:	User Mode Linux binary
Group:		System/Kernel and hardware
Provides:	kernel-uml = %{kverrel}
Provides:	kernel-uml-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.uml
Obsoletes:	kernel-uml-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description uml
User Mode Linux binary.
Stripped, debug is in %{name}-debuginfo.

%files uml
%{_bindir}/linux-uml-%{kver_full}
#------------------------------------------------

%package uml-modules
Summary:	User Mode Linux (UML) kernel modules
Group:		System/Kernel and hardware
Provides:	kernel-uml-modules = %{kverrel}
Provides:	kernel-uml-modules-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel-module) = %{EVRD}.uml
Obsoletes:	kernel-uml-modules-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description uml-modules
User Mode Linux (UML) kernel modules
- not compressed
- not stripped
- signed

%files uml-modules
/lib/modules-uml/%{kver_full}

%endif #endif uml

#------------------------------------------------

%if %{with binary_extra_modules}

%ksob_mk_module_pkg -n 8821ce -s net/wireless
%ksob_mk_module_pkg -n xt_TRIPSO -s net -r tripso
%ksob_mk_module_pkg -n xt_so -s net -r ipt-so

%ifarch %{x86_64}
%ksob_mk_module_pkg -n shredder-kernel -s extra -r rosa-shredder-user
%endif

#------------------------------------------------

%ifarch %{x86_64}
# virtualbox guest, to be dropped in kernels 5.6+ (upsreamized)
%ksob_mk_module_pkg -n vboxvideo -s misc
%ksob_mk_module_pkg -n vboxguest -s misc
%ksob_mk_module_pkg -n vboxsf -s misc

#------------------------------------------------
# a package which will pull all those modules
%package -n kernel-modules-virtualbox-guest-%{ksob_kernel}
Summary: Meta package to pull VirtualBox guest kernel modules for kernel-%{flavour}-%{kernelversion}.%{patchlevel}
Group: System/Kernel and hardware
Requires: kernel-module-vboxvideo-%{ksob_kernel}
Requires: kernel-module-vboxguest-%{ksob_kernel}
Requires: kernel-module-vboxsf-%{ksob_kernel}
Obsoletes: kernel-modules-virtualbox-guest-%{flavour}-%{kernelversion}.%{patchlevel}-latest < 5.10.34-2

%description -n kernel-modules-virtualbox-guest-%{ksob_kernel}
Meta package to pull VirtualBox guest kernel modules for %{name}

%files -n kernel-modules-virtualbox-guest-%{ksob_kernel}
# end ifarch
%endif
# empty
#------------------------------------------------

%if %{with binary_modules_rosa_test_suite}
%ksob_mk_module_pkg -n nlkm -s misc
%ksob_mk_module_pkg -n memfreetest -s misc
%ksob_mk_module_pkg -n pcietest -s misc
%endif

%endif #binary_extra_modules

############################

%if %{with flow_abi}
%package -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
Summary: Directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x
Group: System/Kernel and hardware

%description -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
This package contains a directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x.
Some vendors provide binary-only kernel modules. They can put them into /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi.
kmod tools will find them for kernels 5.4.x of "generic" and "nickel" flavours,
but there is no guarantee that these modules will load and work correctly on newer
or older kernels then the ones they were build against.

We call this "flow ABI" because most ABIs are not changed between %{kernelversion}.%{patchlevel}.x releases,
but there are no specific guarantees. ABI may evolve and change.
We highly recommend to use DKMS and build third-party kernel modules from source for every kernel!

This package does nothing, just owns a directory for third-party binary kernel modules.

%files -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif #with flow_abi

################################################

%prep

# avoid accidental merge
%if 0%{?rpm5}
%{error:Package structure is for dnf, not for urpmi!}
%endif

%setup -q -n %top_dir_name -c
%if %{with uml}
cp -r %{src_dir} %{src_dir}.uml
%endif
cd %src_dir

%autopatch -p1

#
# Setup Begin
#

# Kernel configuration

echo "Creating the kernel configuration file."

# Configs
cp %{SOURCE110} .config

# Disable ASLR for 32-bit systems because it does not play well with
# hibernate.
%ifarch %{ix86}
sed -i	's/CONFIG_RANDOMIZE_BASE=y/# CONFIG_RANDOMIZE_BASE is not set/' .config
%endif

# Disable checking for W+X memory mappings for 32-bit systems. The warnings
# may confuse the users and noone is eager to fix the underlying problem,
# it seems.
%ifarch %{ix86}
sed -i	's/CONFIG_DEBUG_WX=y/# CONFIG_DEBUG_WX is not set/' .config
%endif

touch %{build_dir}/.config.append

# get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
# wipe all .gitignore/.get_maintainer.ignore files
find . -name "*.g*ignore" -delete

# Enable debug info if requested.
sed -i '/CONFIG_DEBUG_INFO/d' .config
%if %build_debug
echo 'CONFIG_DEBUG_INFO=y' >> %{build_dir}/.config.append
echo 'CONFIG_DEBUG_INFO_DWARF4=y' >> %{build_dir}/.config.append
echo 'CONFIG_GDB_SCRIPTS=y' >> %{build_dir}/.config.append
%else
echo 'CONFIG_DEBUG_INFO=n' >> %{build_dir}/.config.append
%endif

%if %{enhanced_security}
### SELinux enablement
# seems to be needed to boot system in enforcing selinux mode
# note: cpio fpormat of initramfs does not support xattrs without patches
# see also: https://bugs.launchpad.net/ubuntu/+source/linux/+bug/1680315
sed -i '/CONFIG_SECURITY_SELINUX_DISABLE/d' .config
echo CONFIG_SECURITY_SELINUX_DISABLE=y >> %{build_dir}/.config.append
# enable selinux in kernel by default if not disabled explicitly
sed -i '/CONFIG_SECURITY_SELINUX_BOOTPARAM/d' .config
echo CONFIG_SECURITY_SELINUX_BOOTPARAM=y >> %{build_dir}/.config.append

### Signing kernel modules
# https://www.kernel.org/doc/html/v5.3/admin-guide/module-signing.html
sed -i '/CONFIG_MODULE_SIG/d' .config
echo CONFIG_MODULE_SIG=y >> %{build_dir}/.config.append
%if %{with oblig_signed_modules}
# Disallow loading not signed modules
echo CONFIG_MODULE_SIG_FORCE=y >> %{build_dir}/.config.append
%else
echo CONFIG_MODULE_SIG_FORCE=n >> %{build_dir}/.config.append
%endif
# If %%build_debig is true, signatures will be stripped
# We sign modules manually in a tricky way bellow
echo CONFIG_MODULE_SIG_ALL=n >> %{build_dir}/.config.append
# Set path to the key that will be generated later by openssl/libressl
echo CONFIG_MODULE_SIG_KEY=\"%{certs_signing_key_priv_rnd}\" >> %{build_dir}/.config.append
# Set path to one PEM file with all keys that the kernel must trust
sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/d' .config
echo CONFIG_SYSTEM_TRUSTED_KEYS=\"%{certs_public_keys}\" >> %{build_dir}/.config.append
# Reserve area for inserting a certificate without recompiling
sed -i '/CONFIG_SYSTEM_EXTRA_CERTIFICATE/d' .config
echo CONFIG_SYSTEM_EXTRA_CERTIFICATE=y >> %{build_dir}/.config.append

# Memory wiping
# Introduced in kernel 5.3 by commit 6471384af2a6530696fc0203bafe4de41a23c9ef
# Estimated performance impact is described in the commit
# "Fill newly allocated pages and heap objects with zeroes."
# To enable, add to cmdline: init_on_alloc=1
sed -i '/CONFIG_INIT_ON_ALLOC_DEFAULT_ON/d' .config
echo CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n >> %{build_dir}/.config.append
# "Fill freed pages and heap objects with zeroes"
# To disable, add to cmdline: init_on_free=0
sed -i '/CONFIG_INIT_ON_FREE_DEFAULT_ON/d' .config
%if %{with nickel}
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=y >> %{build_dir}/.config.append
%else
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=n >> %{build_dir}/.config.append
%endif
# Here enabling only either only init_on_free or only init_on_alloc
# makes sense; init_on_alloc is not about protecting information.

# To load kernel keyring in UML
for i in STREEBOG SHA1 SHA256 SHA512 ECRDSA RSA ; do
	sed -i "/CONFIG_CRYPTO_${i}/d" .config
	echo "CONFIG_CRYPTO_${i}=y" >> %{build_dir}/.config.append
done

sed -i '/CONFIG_LSM/d' .config
echo 'CONFIG_LSM="yama,loadpin,integrity,selinux,apparmor,altha"' >> %{build_dir}/.config.append
sed -i '/CONFIG_SECURITY_ALTHA/d' .config
echo 'CONFIG_SECURITY_ALTHA=y' >> %{build_dir}/.config.append
%endif

# Disable disk-based swap (swap files and partitions) on certified systems by default
# because we cannot guarantee that data stored in swap is erased from disk securely.
# Our patch, based on Chromium OS kernel, allows to use only zram if CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y.
# sysctl vm.disk_based_swap = 1 to allow disk-based swap, = 0 to disable it.
# Note that CONFIG_ZRAM_WRITEBACK is still on.
#sed -i '/CONFIG_DISK_BASED_SWAP_DEFAULT_ON/d' .config
#%if %{with nickel}
#echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=n' >> %{build_dir}/.config.append
#%else
echo 'CONFIG_DISK_BASED_SWAP_DEFAULT_ON=y' >> %{build_dir}/.config.append
#%endif

cat %{build_dir}/.config.append >> .config

# Store the config file in the appropriate directory.
CONFIG_DIR=arch/%{arch_type}/configs
mkdir -p "${CONFIG_DIR}"

cfg_file=arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour}

make ARCH=%{arch_type} oldconfig
# When it is needed to edit kernel configs, run:
# rpmbuild --rebuild --with=fail kernel*.src.rpm
# and then work with the config in the buildroot with applied patches etc.
%{?_with_fail:exit 1}
mv .config ${cfg_file}

# Looks like 'make oldconfig' removes '# CONFIG_64BIT is not set' for some
# reason. For now, let us restore it.
%ifarch %{ix86}
sed -i 's/CONFIG_64BIT=y//' ${cfg_file}
echo '# CONFIG_64BIT is not set' >> ${cfg_file}
%endif

echo "Created ${cfg_file}."

# make sure the kernel has the sublevel we know it has...
LC_ALL=C sed -ri "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile

# get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
find . -name '.get_maintainer.ignore' | %kxargs rm -f

############################################################################

%build

# Ensure that build time generated private keys don't get published
# as e.g. "RPM build root" on ABF!
# Note that ABF sends SIGKILL to rpm-build.sh when the build is terminated;
# in this case trap will not work, but RPM build root also will not be
# saved because rpm-build.sh saves it, but it is SIGKILLed.
# For best security we could store private keys in RAM (not reachable from
# filesystem, so not in /tmp!) and override sth like fopen() by LD_PRELOAD
# to give the content of keys from RAM when a virtual address of a key file
# is accessed, but currently I don't know how to implement this (TODO: ).
_cleanup(){
	# Show resulting kernel public keys for debugging
	cat "%{src_dir}/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}/%{certs_dir_rnd}"
%if %{with uml}
	cat "%{src_dir}.uml/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}.uml/%{certs_dir_rnd}"
%endif
}
# Make a trap to delete keys even if %%build fails in the middle
trap "_cleanup" EXIT

rm -rf %{temp_root}
install -d %{temp_root}

cd %src_dir

### Keys for signing kernel modules
# Keys can be generated both manually and automatically,
# let's generate them by ourselves to take full control of the process
# https://www.ibm.com/support/knowledgecenter/en/SSB23S_1.1.0.13/gtps7/cfgcert.html
# See also certs/Makefile in kernel source
%if %{enhanced_security}
mkdir -p "%{certs_dir_rnd}"

# On ABF, %%packager == $username <$email>
# Try to extract email from %%packager if it is set
_get_email(){
	# Check that macro %%packager was set and is not empty
	if echo '%{packager}' | grep -q 'packager}$' || [ -z "%{packager}" ]
		# If was not set or is empty, use default email
		then echo 'rpmbuild@rosa.unknown' && return
		# Otherwise try to extract email from 'name <email>' or sth else
		else temp="$(echo '%{packager}' | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | tr -d '<>' | grep -E '@.*\..*' | head -n 1)"
	fi
	# Validate that what we have now is a valid email
	# https://stackoverflow.com/a/2138832, https://stackoverflow.com/a/41192733
	# Note that we set %%_buildshell to /bin/bash to guarantee the work of this bashism
	regex_email="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
	if [[ "$temp" =~ ${regex_email} ]]
		# If it is, use it
		then echo "$temp" && return
		# Otherwise use default email
		else echo 'rpmbuild@rosa.unknown' && return
	fi
	# If script above has not return'ed for any reason,
	# e.g. because of non-bash shell being not able to
	# process regexp, use default email
	echo 'rpmbuild@rosa.unknown'
}
email="$(_get_email)"

cat <<EOF > "%{certs_key_config_rnd}"
[ req ]
prompt = no
string_mask = utf8only
#default_keyfile = %{certs_signing_key_priv_rnd}
distinguished_name = req_distinguished_name
x509_extensions = myexts
[ req_distinguished_name ]
organizationName = %{vendor} rpmbuild
commonName = Build time autogenerated @ALGO@ kernel key
emailAddress = ${email}
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
cat "%{certs_key_config_rnd}"
sed -e 's,@ALGO@,RSA,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.RSA"
sed -e 's,@ALGO@,GOST R 34.10-2012,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.GOST"
# avoid using the template
rm -f "%{certs_key_config_rnd}"

_libressl_gen_key(){
	if [ "$GOST_KEY" = 1 ]
	then
		lssl_req_gost_args="\
			-newkey gost2001 \
			-pkeyopt dgst:streebog512 -pkeyopt paramset:A \
			-streebog512"
		OUT="%{certs_signing_key_priv_rnd}.GOST"
		CONFIG="%{certs_key_config_rnd}.GOST"
	else
		lssl_req_gost_args=""
		OUT="%{certs_signing_key_priv_rnd}.RSA"
		CONFIG="%{certs_key_config_rnd}.RSA"
	fi
		libressl req -new -nodes -utf8 -batch \
			$lssl_req_gost_args \
			-days 109500 \
			-x509 -config "$CONFIG" \
			-out "$OUT" \
			-keyout "$OUT"

	# Verify
	if [ "$GOST_KEY" = 1 ]; then
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
	fi
}

GOST_KEY=0 _libressl_gen_key
GOST_KEY=1 _libressl_gen_key
# Fake CONFIG_MODULE_SIG_KEY to make build scripts happy
cp -v "%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}"

# Strip public parts from the generated PEMs
sed -n \
	'/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' \
	"%{certs_signing_key_priv_rnd}.GOST" \
	"%{certs_signing_key_priv_rnd}.RSA" \
	> "%{certs_public_keys}"

# link sign-file and extract-cert with LibreSSL instead of OpenSSL
if [ $? != 0 ] ; then exit $? ; fi
sed -i %{src_dir}/scripts/Makefile \
%if %{with uml}
    %{src_dir}.uml/scripts/Makefile \
%endif
	-e "s, libcrypto , libressl-libcrypto ,g"

%if %{with additional_keys}
# Add additional public RSA keys to the list of trusted keys for kernel modules
# Build kernel --without additional_keys if you do not want to trust them
cat %{expand:%(for i in `seq 1 12`; do echo "%%SOURCE$((200+${i}))" | tr "\n" " "; done)} \
	>> "%{certs_public_keys}"
%endif #endif additional_keys
cat %{certs_public_keys}
%endif #endif enhanced_security

# .config
%smake -s mrproper
cp arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour} .config

# make sure EXTRAVERSION says what we want it to say
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{flavour}-%{buildrpmrel}/" Makefile

# Print debug messages when loglevel=7 in cmdline.
# Those messages can be caught by debugfs without -DDEBUG.
# but sometimes it is required to see them via a serial port when booting the kernel.
# '#ifdef DEBUG' is used in different places for different purposes,
# so change DEBUG to PRINTK_DEBUG in one specific place.
#%if %build_debug
#sed -i %{src_dir}/include/linux/printk.h \
#	-e 's,^#ifdef DEBUG$,#if defined(DEBUG) || defined(PRINTK_DEBUG),g'
#export KCPPFLAGS="-DPRINTK_DEBUG"
#%endif

# build the kernel
echo "Building kernel %{kver_full}"

TARGETS="all"
# need to install dtbs to proper boot arm devices
%ifarch %{armx}
	TARGETS="$TARGETS dtbs"
%endif

%kmake V=1 -s $TARGETS

# Install modules
mkdir -p %{temp_modules}/%{kver_full}
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=%{kver_full} modules_install

%if %{with binary_extra_modules}
# Build and install procedure is specific to each Makefile from kernmel-source-* packages
# See also: https://www.kernel.org/doc/html/latest/kbuild/modules.html
# Copy directory because write permissions are required
# `make modules_install` must be done before this, otherwise these copied files will be deleted

cp -r "$(rpm -q --qf '/usr/src/rtl8821ce-%%{VERSION}-%%{RELEASE}' kernel-source-rtl8821ce)" kernel-source-rtl8821ce
pushd kernel-source-rtl8821ce
%kmake KSRC=%{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp 8821ce.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/8821ce.ko
popd
rm -fr kernel-source-rtl8821ce

cp -r "$(rpm -q --qf '/usr/src/tripso-%%{VERSION}-%%{RELEASE}' kernel-source-tripso)" kernel-source-tripso
pushd kernel-source-tripso
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_TRIPSO.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-tripso

cp -r "$(rpm -q --qf '/usr/src/ipt-so-%%{VERSION}-%%{RELEASE}' kernel-source-ipt-so)" kernel-source-ipt-so
pushd kernel-source-ipt-so
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_so.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-ipt-so

%ifarch %{x86_64}
cp -r "$(rpm -q --qf '/usr/src/shredder-kernel-%%{VERSION}-%%{RELEASE}' kernel-source-shredder-kernel)" kernel-source-shredder-kernel
pushd kernel-source-shredder-kernel
%kmake KERNEL_PATH=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/extra/
cp shredder-kernel.ko %{temp_modules}/%{kver_full}/kernel/extra/
popd
rm -fr kernel-source-shredder-kernel
%endif

%ifarch %{x86_64}
# build commands for virtualbox are based on the ones from the virtualbox package
cp -r "$(rpm -q --qf '/usr/src/vboxadditions-%%{VERSION}-%%{RELEASE}' kernel-source-virtualbox-vboxadditions)" kernel-source-virtualbox-vboxadditions
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
pushd kernel-source-virtualbox-vboxadditions
%kmake KERN_DIR=%{src_dir} KERN_VER=%{kver_full} -C vboxguest
cp -fv vboxguest/Module.symvers vboxsf/
%kmake KERN_DIR=%{src_dir} KERN_VER=%{kver_full} -C vboxsf
# TODO: vboxvideo is also build inside the upstream kernel...
# vboxsf is not in kernel 5.4
# https://www.phoronix.com/scan.php?page=news_item&px=VirtualBox-Shared-Folder-5.6
cp -fv vboxsf/Module.symvers vboxvideo/
%kmake KERN_DIR=%{src_dir} KERN_VER=%{kver_full} -C vboxvideo
for i in vboxguest vboxsf vboxvideo
do
	cp -v "${i}/${i}.ko" %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
# end ifarch ix86
%endif

%if %{with binary_modules_rosa_test_suite}
# rosa-test-suite uses /sr/src/xxx-version, not /usr/src/xxx-version-release
cp -r "$(rpm -q --qf '/usr/src/rosa-test-suite-%%{VERSION}' kernel-source-rosa-test-suite)" kernel-source-rosa-test-suite
pushd kernel-source-rosa-test-suite
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
for i in nlkm memfreetest pcietest
do
cat << EOF > Makefile
obj-m := ${i}.o
all:
	make -C %{src_dir} M=\$(PWD) modules
EOF
%kmake
cp -fv ${i}.ko %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif #with nickel <- with binary_extra_modules

%endif #with binary_extra_modules

%if %{with uml}
cp -rv %{certs_dir_rnd} %{src_dir}.uml/
pushd %{src_dir}.uml
%kmake ARCH=um defconfig
cp .config .config.default
cat %{build_dir}/.config.append >> .config
%kmake oldconfig ARCH=um
diff -u .config.default .config || :
# Looks like 'make oldconfig' removes '# CONFIG_64BIT is not set' for some
# reason. For now, let us restore it.
%ifarch %{ix86}
sed -i 's/CONFIG_64BIT=y//' .config
echo '# CONFIG_64BIT is not set' >> .config
%endif
%kmake ARCH=um linux
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
#rm -fv linux
%kmake V=1 ARCH=um modules
mkdir -p %{temp_root}/lib/modules-uml/%{kver_full}/
%kmake ARCH=um INSTALL_MOD_PATH=%{temp_root}/lib/modules-uml/%{kver_full}/ modules_install
popd
%endif

install -d %{temp_boot}
install -m 644 System.map %{temp_boot}/System.map-%{kver_full}
install -m 644 .config %{temp_boot}/config-%{kver_full}
%{zstd_cmd} Module.symvers
install -m 644 Module.symvers.zst %{temp_boot}/symvers-%{kver_full}.zst

%ifarch %{armx}
%make_build ARCH=%{arch_type} V=1 INSTALL_DTBS_PATH=%{temp_boot}/dtb-%{kver_full} dtbs_install
%endif

%ifarch aarch64
	cp -f arch/arm64/boot/Image.gz %{temp_boot}/vmlinuz-%{kver_full}
%else
	cp -f arch/%{arch_type}/boot/bzImage %{temp_boot}/vmlinuz-%{kver_full}
%endif

# headers
%if %{build_headers}
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=%{kver_full} headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
%endif

# remove /lib/firmware, we use a separate linux-firmware package
rm -rf %{temp_root}/lib/firmware

# Prepare the files for kernel*-devel
%if %build_devel

mkdir -p %{temp_devel_root}
for i in $(find . -name 'Makefile*'); do cp -R --parents $i %{temp_devel_root}; done
for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i %{temp_devel_root}; done

cp -fR include %{temp_devel_root}

cp -fR scripts %{temp_devel_root}
cp -fR kernel/bounds.c %{temp_devel_root}/kernel
cp -fR kernel/time/timeconst.bc %{temp_devel_root}/kernel/time
cp -fR tools %{temp_devel_root}/
cp -fR arch/%{arch_type}/kernel/asm-offsets.{c,s} %{temp_devel_root}/arch/%{arch_type}/kernel/
%ifarch %{ix86} %{x86_64}
cp -fR arch/%{arch_type}/kernel/asm-offsets_{32,64}.c %{temp_devel_root}/arch/%{arch_type}/kernel/
cp -fR arch/%{arch_type}/purgatory/* %{temp_devel_root}/arch/%{arch_type}/purgatory/
# needed for arch/x86/purgatory
cp -fR lib/*.h lib/*.c %{temp_devel_root}/lib/
cp -fR arch/%{arch_type}/entry/syscalls/syscall* %{temp_devel_root}/arch/%{arch_type}/entry/syscalls/
cp -fR arch/%{arch_type}/tools %{temp_devel_root}/arch/%{arch_type}/
# needed for kexec
cp -fR arch/%{arch_type}/boot/*.h %{temp_devel_root}/arch/%{arch_type}/boot/
cp -fR arch/%{arch_type}/boot/*.c %{temp_devel_root}/arch/%{arch_type}/boot/
%endif
cp -fR arch/%{arch_type}/include %{temp_devel_root}/arch/%{arch_type}/
cp -fR .config Module.symvers %{temp_devel_root}

# Needed for truecrypt build (Danny)
cp -fR drivers/md/dm.h %{temp_devel_root}/drivers/md/

# Needed for lirc_gpio (#39004)
cp -fR drivers/media/pci/bt8xx/bttv{,p}.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/pci/bt8xx/bt848.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/common/btcx-risc.h %{temp_devel_root}/drivers/media/common/

# add acpica header files, needed for fglrx build
cp -fR drivers/acpi/acpica/*.h %{temp_devel_root}/drivers/acpi/acpica/

# aufs2 has a special file needed
cp -fR fs/aufs/magic.mk %{temp_devel_root}/fs/aufs

# SELinux needs security/selinux/include
cp -fR security/selinux/include %{temp_devel_root}/security/selinux

for i in alpha arc avr32 blackfin c6x cris csky frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
	mips mn10300 nds32 nios2 openrisc parisc powerpc riscv s390 score sh sparc tile unicore32 xtensa; do
	rm -rf %{temp_devel_root}/arch/$i
done

# Clean the scripts tree, and make sure everything is ok (sanity check)
# running prepare+scripts (tree was already "prepared" in build)
pushd %{temp_devel_root}
	%smake V=1 -s clean ARCH=%{arch_type}
popd

rm -f %{temp_devel_root}/.config.old

# fix permissions
chmod -R a+rX %{temp_devel_root}

# disable mrproper in -devel rpms
patch -p1 --fuzz=0 -d %{temp_devel_root} -i %{SOURCE2}

# endif build_devel
%endif

# TODO: maybe move to /usr/lib/debug?
%if %build_debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | \
	%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | %kxargs -I '{}' \
	sh -c 'cd `dirname {}`; \
		objcopy --add-gnu-debuglink=`basename {}`.debug \
		--strip-debug `basename {}`'
%endif # /build_debug

%if %{enhanced_security}
# https://patchwork.kernel.org/patch/11446123/
_libressl_sign(){
	if [ ! -f "$1" ]; then
	  echo "No file $1"
	  return 0
	fi
	f="$1"
%if %{with gost_sign}
	%{src_dir}/scripts/sign-file streebog512 \
		"%{certs_signing_key_priv_rnd}.GOST" "%{certs_signing_key_priv_rnd}.GOST" "$f"
%else
	%{src_dir}/scripts/sign-file sha512 \
		"%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}.RSA" "$f"
%endif
	unset f
}
export -f _libressl_sign
find %{temp_modules}/%{kver_full}/kernel \
%if %{with uml}
     %{temp_root}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -e -x -c 'if ! _libressl_sign "{}"; \
		then echo Failed _libressl_sign on "{}" && exit 1; fi'
%endif

# set extraversion to match srpm to get nice version reported by the tools
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
%smake -C tools/perf -s HAVE_CPLUS_DEMANGLE=1 WERROR=0 prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 man
%endif

%if %{build_cpupower}
# make sure version-gen.sh is executable.
chmod +x tools/power/cpupower/utils/version-gen.sh
%make -C tools/power/cpupower CPUFREQ_BENCH=false
%endif

_cleanup
############################################################################

%install
cd %src_dir

# We want to be able to test several times the install part
rm -rf %{buildroot}
cp -a %{temp_root} %{buildroot}

%if %{enhanced_security}
# Multithreaded verification that every kernel module
# has a signature attached to it
mkdir -p "%{certs_dir_rnd}"
touch %{certs_verify_tmp}
_verify_signature(){
	if [ -z "$1" ] || [ ! -f "$1" ]; then return; fi
	if hexdump -C "$1" | rev | cut -f 2 -d '|' | rev | tr -d '\n' | \
	   grep -q '~Module signature appended~'
		then
			if [ -f %{certs_verify_tmp} ]; then
				rm -f %{certs_verify_tmp}
			fi
		else
			echo "ERROR: Module $1 has no signature attached to it!"
			exit 1
	fi
}
export -f _verify_signature
find %{target_modules} \
%if %{with uml}
     %{buildroot}/lib/modules-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -c '_verify_signature "{}"'
if [ -f %{certs_verify_tmp} ]; then
	echo "ERROR: seems that signatures of none modules were verified!"
	exit 1
fi
rm -f %{certs_verify_tmp}
%endif

# compressing modules
%if %{with compress_modules}
# Tested on /lib/modules/5.10.34-generic-2rosa2019.1-x86_64, the results are the following:
# * decompressed: 266.3 MiB
# * xz -9 --extreme: 67.8 MiB
# * zstd --ultra -22 without training: 73.5 MiB
# * zstd -6 without training: 79.6 MiB
# * zstd --ultra -22 with training: 66.3 MiB (the winner!)
# Training takes only a few minutes, make it here in place with current zstd and kernel modules.
# But! Decompressing also requires a dictionary for zstd, that will be too complex, so not using training :(
# We already use zstd in dracut to compress initrds quickly and with good compression ration.
# Testing speed of loading modules:
# `time modinfo bcache.ko.xz` took 0,048s, `time modinfo bcache.ko.zstd` took 0,014s (for multiple times)
# find /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 -type f -name '*.ko.zst' > /tmp/zst.list
# time { for i in `cat /tmp/zst.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took ~31-40s, with disk cache (2+ runs) ~33s
# find /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 -type f -name '*.ko.xz' > /tmp/xz.list
# time { for i in `cat /tmp/xz.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took 43-47s, with disk cache (2+ runs) ~42s, +21%
# zstd-compressed initramfs image initrd-5.10.34-generic-1rosa2019.1-x86_64.img with *.ko.xz is 56,3 MiB
# zstd-compressed initramfs image initrd-5.10.34-generic-2rosa2019.1-x86_64.img with *.ko.zst is 58,4 MiB (+3.6%)
# /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 (*.ko.xz) is 78,1 MiB
# /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 (*.ko.zst) is 83,9 MiB (+7%)
# When zstd is compressing cpio (initrd image) with zstd-compressed kernel modules inside it, does it recompress data?
# It is not easy to make a choice between zstd and xz for kernel modules... Disk space (and so speed of installing
# RPM packages) is not much bigger, we do not try to support super low end devices, operation speed is a bit better.
# I have not seen measurable difference in startup time according to systemd-analyze.
# Note that decompression after zstd --ultra -22 will consume more memory than after zstd -6, see commit message in
# https://github.com/torvalds/linux/commit/73f3d1b48f5069d46b. I did not benchmark -6 vs -22 in runtime.
# Let's use zstd for now.
# zstd may also be used to compress linux-firmware to save a lot of space on disk,
# but upstream kernels still cannot decompress it.
#%%{zstd_cmd} -T0 --train $(find . -type f -name '*.ko')
#[ -f dictionary ]
# -T1 (one thread) because we run multiple zstd processes by xargs
find %{target_modules} -name "*.ko" | %kxargs %{zstd_cmd} --rm -T1 #-D dictionary
#rm -f dictionary
%endif

%if %{without minimize}
find %{buildroot}%{_modulesdir}/%{kver_full} -type f -name '*.ko%{kmod_suffix}' | sed -e 's,^%{buildroot},,' | sort -u >> %{kernel_files}
find %{buildroot}%{_modulesdir}/%{kver_full} -type d | sed -e 's,^%{buildroot},%dir ,' | sort -u >> %{kernel_files}
%endif

# We estimate the size of the initramfs because rpm needs to take this size
# into consideration when performing disk space calculations (See rhbz#530778)
# 65 MiB is a bit more than needed, but let's be more sure that there is enought space.
# On my PC, zstd-compressed initrds take 58,5 MiB.
# Real size of the RPM package should not increase because RPM compresses the payload.
# This file is %%ghost, so the real initrd will be deleted when uninstalling this package.
dd if=/dev/zero of=%{buildroot}%{initrd_path} bs=1M count=65

%if %build_debug
install -m 644 vmlinux %{buildroot}%{_bootdir}/vmlinux-%{kver_full}
find %{buildroot}%{_modulesdir} -type f -name '*.debug' | sed -e 's,^%{buildroot},,' | sort -u >> %{debuginfo_files}
%endif # /build_debug

pushd %{target_modules}
for i in *; do
	rm -f $i/build $i/source
%if %build_devel
	ln -sf /usr/src/linux-$i $i/build
	ln -sf /usr/src/linux-$i $i/source
%endif
done

# sniff, if we compressed all the modules, we change the stamp :(
# we really need the depmod -ae here
for i in *; do
	/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
	echo $?
done

# We used to create modules.description files which contained the
# description strings for the modules as shown by modinfo. These files
# are unlikely to be used right now, so create them (in case some old tool
# checks for their existence) but keep them empty.
for i in *; do
	touch $i/modules.description
done
popd

# need to set extraversion to match srpm again to avoid rebuild
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile
%if %{build_perf}

# perf tool binary and supporting scripts/binaries
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} lib=%{_lib} install

# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
sed -i -e '1 s,^.*$,#!%{__python3},' %{buildroot}%{_prefix}/libexec/perf-core/scripts/python/exported-sql-viewer.py

# perf man pages (note: implicit rpm magic compresses them later)
make -C tools/perf  -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
%endif

%if %{build_cpupower}
make -C tools/power/cpupower DESTDIR=%{buildroot} libdir=%{_libdir} mandir=%{_mandir} CPUFREQ_BENCH=false install
rm -f %{buildroot}%{_libdir}/*.{a,la}
%find_lang cpupower
mv cpupower.lang ../
chmod 0755 %{buildroot}%{_libdir}/libcpupower.so*
mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE50} %{buildroot}%{_unitdir}/cpupower.service
install -m644 %{SOURCE53} %{buildroot}%{_unitdir}/cpupower.path
install -m644 %{SOURCE51} %{buildroot}%{_sysconfdir}/sysconfig/cpupower
install -m755 %{SOURCE52} %{buildroot}%{_bindir}/cpupower-start.sh
%endif

# delete junk
rm -fr %{buildroot}%{_usr}/src/*/kernel-source-*

%if %{with flow_abi}
# Prefix with "zzz" to put this directory into the end of search list
# and avoid tricks with depmod configs
mkdir -p %{buildroot}/lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi
ln -s /lib/modules/%{kernelversion}.%{patchlevel}-rosa-flow-abi %{buildroot}%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%if %{with minimize}
# ensure that they are empty, not left from previous runs etc.
rm -fv \
	%{kernel_files} \
	%{_builddir}/extra-modules-excluded.list \
	%{_builddir}/extra-modules.list
SOURCE81="%{SOURCE81}" \
BUILDROOT="%{buildroot}" \
KDIR="lib/modules/%{kver_full}" \
KMOD_SUFFIX="%{kmod_suffix}" \
FILES_MAIN="%{kernel_files}" \
FILES_EXCLUDE="%{_builddir}/extra-modules-excluded.list" \
FILES_EXTRA_MODULES="%{_builddir}/extra-modules.list" \
bash %{SOURCE82}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13742 |21mr|kernel-6.1-generic-6.1.89-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# _get_email() in %%build contains bashisms for regexping
%define	_buildshell /bin/bash

# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define	_python_bytecompile_build 0

# Probably dwz bug, on i686 only file is not packaged:
# /usr/lib/debug/usr/bin/trace-5.4.40-3.i386.debug.#dwz#.b5xuKG
# dwz compresses only debuginfo from perf, cpupower, uml,
# not the kernel itself (because it is stripped not by RPM),
# so we do not loose much by disabling it.
%global	_find_debuginfo_dwz_opts %{nil}

# Put everything into one non-standard debuginfo subpackage
# TODO: make multiple debuginfo packages coinstallable as installonlypkg,
# to achive this, there must be no conflicting files.
# Probably signing and compressing of kernel modules
# has to be moved to %%_spec_install_post.
%global	_debuginfo_subpackages %{nil}
%global	_debuginfo_template %{nil}
%undefine	_debugsource_packages

# Avoid rediffing patches like AUFS when possible
%define _default_patch_fuzz 10

# Hack: flavour and major version are variable, make %%_build_pkgcheck_* always detect and use this config
%global	_build_pkgcheck_set %(echo "%{_build_pkgcheck_set}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')
%global	_build_pkgcheck_srpm %(echo "%{_build_pkgcheck_srpm}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')

%define kernelversion 6
%define patchlevel 1
%define sublevel 89

# Release number. Increase this before a rebuild.
%define rpmrel 2
%define fullrpmrel %{rpmrel}

%define rpmtag %{disttag}

# Version defines
%define kversion %{kernelversion}.%{patchlevel}.%{sublevel}
%define kverrel %{kversion}-%{fullrpmrel}
%define tar_ver %{kernelversion}.%{patchlevel}

%ifarch %{ix86}
%define	arch_suffix	i686
%endif

%ifarch %{x86_64}
%define	arch_suffix	x86_64
%endif

%ifarch aarch64
%define	arch_suffix	arm64
%endif
%ifarch riscv64
%define	arch_suffix	riscv64
%endif

%define	buildrpmrel	%{fullrpmrel}%{rpmtag}-%{arch_suffix}
%define	buildrel	%{kversion}-%{buildrpmrel}

# Add not only the build time generated key to the trusted keyring,
# but also add public keys of private ROSA's keys
%bcond_without	additional_keys

# Fail the build after "make oldconfig" to edit kernel configs
%bcond_with	fail

# User Mode Linux, https://habr.com/ru/company/itsumma/blog/459558/
# Not buildable on aarch64, rarely needed in general
%bcond_with	uml

# "Nickel" is a special brand for certified distros
%if %{mdvver} == 201905
%bcond_without	nickel
# Require kernel modules to be signed
%bcond_without	oblig_signed_modules
%else
%bcond_with nickel
%bcond_with oblig_signed_modules
%endif

# Build binary out-of-tree kernel modules (experimental)
%bcond_without binary_extra_modules
# Sign kernel modules with GOST key (experimental)
%bcond_without gost_sign

%bcond_with ccache
%bcond_without flow_abi
%bcond_without aufs

# 1. VirtualBox is for x86_32 and x86_64 only
# 2. I do not know how to solve the problem that userspace part of VirtualBox
# will be updated ahead of these binary modules. So just off building them.
%bcond_with binary_virtualbox_host

# Shredder-kernel works only on x86_64, makes manipulations with syscalls tables,
# loading/unloading of the module failed sometimes on kernel 5.4
# and it has not been adapted for kernel 5.10 (is not buildable)
%bcond_with binary_shredder

# Compress modules with zstd (zstd is good compression and fast decompression)
%bcond_without compress_modules
# Spend more resources on compression, but make resulting size less;
# decompression speed will not be affected, but more memory will be required
# which should not a problem here (performance penalty from allocating more
# memory should not be big, I think, but I did not benchmark).
%define	zstd_cmd zstd -q --format=zstd --ultra -22

# Kernel flavour
%if %{with nickel}
%define	flavour	nickel
%else
%define	flavour	generic
%endif

# The full kernel version
%define	kver_full	%{kversion}-%{flavour}-%{buildrpmrel}

############################################################################

%define	top_dir_name	kernel-%{_arch}
%define	build_dir	${RPM_BUILD_DIR}/%{top_dir_name}
%define	src_dir	%{build_dir}/linux-%{tar_ver}

# Common target directories
%define	_bootdir	/boot
%define	devel_root	/usr/src/linux-%{kver_full}
%define	initrd_path %{_bootdir}/initrd-%{kver_full}.img
%if %{mdvver} >= 202310
%define	_modulesdir	/usr/lib/modules
%else
%define	_modulesdir	/lib/modules
%endif

# Directories needed for building
%define	temp_root	%{build_dir}/temp-root
%define	temp_boot	%{temp_root}%{_bootdir}
%define	temp_modules	%{temp_root}%{_modulesdir}
%define	temp_devel_root	%{temp_root}%{devel_root}

# Directories definition needed for installing
%define	target_boot	%{buildroot}%{_bootdir}
%define	target_modules	%{buildroot}%{_modulesdir}

# Manual control of creating and deleting keys
# "rnd" is "random" and means that a key pair is generated at build time
# and is not saved anywhere.
%define	certs_dir_rnd certs
%define	certs_signing_key_priv_rnd %{certs_dir_rnd}/signing_key_priv.key
%define	certs_signing_der %{certs_dir_rnd}/signing_key.x509
%define	certs_key_config_rnd %{certs_dir_rnd}/x509.genkey
%define	certs_public_keys %{certs_dir_rnd}/public.pem
%define	certs_verify_tmp %{certs_dir_rnd}/verify.tmp

%define	kernel_files %{_builddir}/kernel_files.list
%define	debuginfo_files %{_builddir}/debuginfo_files.list

# Append list of files generate by find-debuginfo.sh to our custom list
%global	__debug_install_post \
%{__debug_install_post} \
cat %{_builddir}/debugfiles.list >> %{debuginfo_files}

############################################################################

%if %{with binary_extra_modules}
# global instead of define to speed up things
%global nvidia_340_j %{kroko_j -p kernel-source-nvidia340 -r 340}
%global nvidia_340_n %{kroko_n -p kernel-source-nvidia340 -r 340}
%global nvidia_390_j %{kroko_j -p kernel-source-nvidia390 -r 390}
%global nvidia_390_n %{kroko_n -p kernel-source-nvidia390 -r 390}
%global nvidia_470_j %{kroko_j -p kernel-source-nvidia470 -r 470}
%global nvidia_470_n %{kroko_n -p kernel-source-nvidia470 -r 470}
%global nvidia_550_j %{kroko_j -p kernel-source-nvidia550 -r 550}
%global nvidia_550_n %{kroko_n -p kernel-source-nvidia550 -r 550}

# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
%{?!kroko_req_modules_in_kernel:%global kroko_req_modules_in_kernel(j:n:p:) %{nil}}

# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n kernel-%{kernelversion}.%{patchlevel}-%{flavour}

%endif #/binary_extra_modules

############################################################################

# Buildtime flags
%{?_without_doc: %global build_doc 0}
%{?_without_devel: %global build_devel 0}
%{?_without_debug: %global build_debug 0}
%{?_without_perf: %global build_perf 0}

%{?_with_doc: %global build_doc 1}
%{?_with_devel: %global build_devel 1}
%{?_with_debug: %global build_debug 1}
%{?_with_perf: %global build_perf 1}
%{?_with_modxz: %global build_modxz 0}

# Build defines
%define	build_doc	1
%define	build_devel	1
%define	build_debug	1

# Build kernel-headers package
%if %{mdvver} >= 202115
%define	build_headers	1
%else
%define	build_headers	0
%endif

# Build perf and cpupower tools
%define	build_perf	1

%if %{with compress_modules}
%if %{with modxz}
%define	kmod_suffix .xz
%else
%define	kmod_suffix .zst
%endif
%else
%define	kmod_suffix %{nil}
%endif

%if !%{build_debug}
# Disable debug rpms.
%define	_enable_debug_packages	%{nil}
%define	debug_package		%{nil}
%endif

# End of user definitions

# http://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/
%if %{with ccache}
%define	kmake KBUILD_BUILD_TIMESTAMP='' %make CC='ccache gcc' ARCH="%{arch_type}"
%else
%define	kmake %make CC='gcc' ARCH="%{arch_type}"
%endif

# There are places where parallel make don't work
%define	smake make
%ifarch %{ix86} %{x86_64}
%define	arch_type x86
%endif
%ifarch	aarch64
%define	arch_type arm64
%endif
%ifarch	riscv64
%define	arch_type riscv
%endif

# Parallelize xargs invocations on smp machines
%define	kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")

#
# SRC RPM description
#
Summary:	The Linux kernel
Name:		kernel-%{kernelversion}.%{patchlevel}-%{flavour}
Version:	%{kversion}
Release:	%{fullrpmrel}
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://www.kernel.org

ExclusiveArch: %{x86_64} %{ix86} aarch64 riscv64

####################################################################
#
# Sources
#
#Source0:	https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.xz
Source0:	https://github.com/torvalds/linux/archive/refs/tags/v6.1.tar.gz?/linux-6.1.tar.gz

# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
# Needed, because otherwise the -devel won't build correctly.
#Source2:	0001-disable-mrproper-prepare-scripts-configs-in-devel-rp.patch

# TODO: Make a separate package "ksobirator" and BR it
# after testing these macros properly
Source3:	macros.ksobirator
%{load:%{SOURCE3}}

# Kernel configuration files.
Source111:	kernel-x86_64.config
Source112:	kernel-i686.config
Source113:	kernel-arm64.config
Source114:	kernel-riscv64.config

Source80:	kernel.rpmlintrc

# Additional keys that can be used to sign kernel modules
# Generated by https://abf.io/soft/kernel-keys
# Source201..206: public_key_GOST_*.pem
%{expand:%(for i in `seq 1 6`; do echo "Source$((200+${i})): public_key_GOST_${i}.pem"; done)}
# Source207..212: public_key_RSA_*.pem
%{expand:%(for i in `seq 7 12`; do echo "Source$((200+${i})): public_key_RSA_${i}.pem"; done)}

####################################################################

# Patches

# The patch to make kernel x.y.z from x.y.0.
Patch1:		https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.xz

# ROSA-specific patches
Patch2:		kernel-5.10.93-fix-perf-build.patch
# Keep in sync with patch in r8168
Patch3:		0001-r8169-remove-devices-supported-by-r8168.patch
# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid
# this.
Patch101:	0001-perf-skip-xmlto-validation.patch

# http://bugs.rosalinux.ru/show_bug.cgi?id=6235
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102:	0001-audit-make-it-less-verbose.patch

%if %{with aufs}
# https://github.com/sfjro/aufs-linux/compare/830b3c68c1fb1e9176028d02ef86f3cf76aa2476..834d19786ccd95485e397fc0f36ef7d6c3b04c95.diff
Patch103:	aufs-6.1.diff
%endif

# For kmod() generator of RPM Provides
# Changes version of aacraid.ko
Patch111:	0001-Remove-RPM-illegal-chars-from-module-version.patch

# AltHa LSM Module
# https://www.altlinux.org/AltHa
# http://git.altlinux.org/gears/k/kernel-image-un-def.git
# TODO: known problem: https://bugzilla.altlinux.org/show_bug.cgi?id=38225
Patch201:	0001-altha.patch

# sent to upstream, https://patchwork.kernel.org/patch/11446123/
Patch302:	0001-sign-file-full-functionality-with-modern-LibreSSL.patch
# Allow to off modules signature check dynamically
Patch306:	0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch

# Support sound on notebook Aquarius NS685U R11 (https://linux-hardware.org/?probe=339dc3db60)
Patch0401: 0401-ASoC-es8316-Use-increased-GPIO-debounce-time.patch
Patch0402: 0402-ASoC-Intel-sof_es8336-Add-more-quirks-for-Russian-ha.patch
Patch0403: 0403-ASoC-Intel-sof_es8336-Add-a-quirk-for-Aquarius-NS685.patch

# https://gitlab.freedesktop.org/drm/amd/-/issues/3347
Patch0501: 0501-Revert-bounds-support-non-power-of-two-CONFIG_NR_CPUS.patch

# Support Baikal-M (aarch64)
# From https://github.com/asheplyakov/linux/commits/baikalm-6.1.y
Patch0600: 0600-clk-added-Baikal-M-clock-management-unit-driver.patch
Patch0601: 0601-cpufreq-dt-don-t-load-on-Baikal-M-SoC.patch
Patch0602: 0602-serial-8250_dw-verify-clock-rate-in-dw8250_set_termi.patch
Patch0603: 0603-usb-dwc3-of-simple-added-compatible-string-for-Baika.patch
Patch0604: 0604-dw-pcie-refuse-to-load-on-Baikal-M-with-recent-firmw.patch
Patch0605: 0605-arm64-Enable-armv8-based-Baikal-M-SoC-support.patch
Patch0606: 0606-efi-rtc-avoid-calling-efi.get_time-on-Baikal-M-SoC.patch
Patch0607: 0607-arm64-stub-fixed-secondary-cores-boot-on-Baikal-M-So.patch
Patch0608: 0608-pm-disable-all-sleep-states-on-Baikal-M-based-boards.patch
Patch0609: 0609-net-fwnode_get_phy_id-consider-all-compatible-string.patch
Patch0610: 0610-net-stmmac-inital-support-of-Baikal-T1-M-SoCs-GMAC.patch
Patch0611: 0611-dt-bindings-dwmac-Add-bindings-for-Baikal-T1-M-SoCs.patch
Patch0612: 0612-net-dwmac-baikal-added-compatible-strings.patch
Patch0613: 0613-Added-TF307-TF306-board-management-controller-driver.patch
Patch0614: 0614-hwmon-bt1-pvt-access-registers-via-pvt_-readl-writel.patch
Patch0615: 0615-hwmon-bt1-pvt-define-pvt_readl-pvt_writel-for-Baikal.patch
Patch0616: 0616-hwmon-bt1-pvt-adjusted-probing-for-Baikal-M-SoC.patch
Patch0617: 0617-hwmon-bt1-pvt-added-compatible-baikal-pvt.patch
Patch0618: 0618-drm-new-bridge-driver-stdp4028.patch
Patch0619: 0619-drm-added-Baikal-M-SoC-video-display-unit-driver.patch
Patch0620: 0620-drm-bridge-dw-hdmi-support-ahb-audio-hw-revision-0x2.patch
Patch0621: 0621-dt-bindings-dw-hdmi-added-ahb-audio-regshift.patch
Patch0622: 0622-drm-bridge-dw-hdmi-force-ahb-audio-register-offset-f.patch
Patch0623: 0623-drm-panfrost-forcibly-set-dma-coherent-on-Baikal-M.patch
Patch0624: 0624-drm-panfrost-disable-devfreq-on-Baikal-M.patch
Patch0625: 0625-ALSA-hda-Baikal-M-support.patch
Patch0626: 0626-PCI-pcie-baikal-driver-for-Baikal-M-with-new-firmwar.patch
Patch0627: 0627-BROKEN-dwc-i2s-support-Baikal-M-SoC.patch
Patch0628: 0628-input-added-TF307-serio-PS-2-emulator-driver.patch
Patch0629: 0629-input-new-driver-serdev-serio.patch
Patch0630: 0630-phy-realtek-leds-configuration-for-RTL8211f.patch
Patch0631: 0631-arm64-defconfig-for-Baikal-M-testing.patch

# Disable AutoReq
AutoReq:	0
# but keep autoprov for kmod(xxx)
AutoProv:	1

BuildRequires:	bash
BuildRequires:	bc
BuildRequires:	binutils
BuildRequires:	bison
BuildRequires:	bzip2
%if %{with ccache}
BuildRequires:	ccache
%endif
BuildRequires:	flex
BuildRequires:	gcc
# ./scripts/mkcompile_h
BuildRequires:	hostname
BuildRequires:	kmod-compat
BuildRequires:	rsync
%if %{with compress_modules}
%if %{with modxz}
BuildRequires:	xz
%else
BuildRequires:	zstd
%endif
%endif
%ifarch aarch64
BuildRequires:	uboot-tools
%endif
BuildRequires:	kmod-devel
BuildRequires:	pkgconfig(libelf)
%ifarch x86_64 aarch64
BuildRequires:	numa-devel
%endif
%if %{with uml}
BuildRequires:	vde-devel
%endif
# For power tools
BuildRequires:	pkgconfig(ncurses)

# For perf
%if %{build_perf}
BuildRequires:	asciidoc
BuildRequires:	perl-ExtUtils-Embed
BuildRequires:	python3
BuildRequires:	xmlto
BuildRequires:	audit-devel
BuildRequires:	binutils-devel
BuildRequires:	elfutils-devel
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	libunwind-devel
BuildRequires:	newt-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(babeltrace)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3-setuptools
%endif

# (To generate keys)
# LibreSSL has GOST support without editing openssl.cnf
# or dlopen()-ing external library
BuildRequires:	libressl
BuildRequires:	libressl-devel
# To verify signatures (find, xargs, hexdump)
BuildRequires:	findutils
BuildRequires:	util-linux

%if %{with binary_extra_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-source-rtl8821cu
BuildRequires:	kernel-source-rtl88x2bu
BuildRequires:	kernel-source-rtl8812au
BuildRequires:	kernel-source-rtl8821au
BuildRequires:	kernel-source-rtl8814au
BuildRequires:	kernel-source-rtk_btusb
BuildRequires:	kernel-source-rtl8188gu
BuildRequires:	kernel-source-rtl8723du
BuildRequires:	kernel-source-rtl8852au
BuildRequires:	kernel-source-rtl8192du
BuildRequires:	kernel-source-rtw89
BuildRequires:	kernel-source-r8168
# Broadcom-wl and nvidia contain a proprietary blob which is only for x86
%ifarch %{ix86} %{x86_64}
BuildRequires:	kernel-source-broadcom-wl
BuildRequires:	kernel-source-nvidia340
BuildRequires:	kernel-source-nvidia390
%endif
# Nvidia470+ are x86_64 only (maybe aarch64 will be also packaged later)
%ifarch %{x86_64}
BuildRequires:	kernel-source-nvidia470
BuildRequires:	kernel-source-nvidia550
%endif
BuildRequires:	kernel-source-tripso
BuildRequires:	kernel-source-ipt-so
BuildRequires:	kernel-source-nwfermi
%if %{with binary_virtualbox_host}
BuildRequires:	kernel-source-virtualbox
%endif
BuildRequires:	kernel-source-v4l2loopback
%if %{with binary_shredder}
BuildRequires: kernel-source-shredder-kernel
%endif
# Rosa-test-suite is maintained in certified branches only nlkm, memfreetest, pcietest
%if %{with nickel}
BuildRequires:	kernel-source-rosa-test-suite
%endif
%endif
# End of with binary_extra_modules

Provides:	kernel = %{EVRD}
Provides:	kernel-%{flavour} = %{EVRD}
Provides:	kernel-abi(%{kver_full}) = %{EVRD}
# Dnf config-manager --dump | grep installonly
Provides:	installonlypkg(kernel) = %{EVRD}.image
Provides:	installonlypkg(kernel) = %{EVRD}.modules

# >= because of added support of zstd-compressed modules
Requires(posttrans):	dracut >= 053-0.git5eb736.5
Requires(posttrans):	kmod >= 28-3

# Need for rebuild dkms drivers
Recommends:	(%{name}-devel%{_isa} = %{EVRD} if dkms)
# not blob, support of devices supported by r8168 is removed from r8169
Recommends:	%{ksob_module_pkg_name r8168} = %{EVRD}

# Usually necessary, but sometimes user may want to not install them
Recommends:	linux-firmware
Recommends:	microcode
# Set BFQ as default scheduler for HDDs
# https://www.phoronix.com/scan.php?page=article&item=linux-50hdd-io
Recommends:	udev-rules-ioschedulers
Recommends:	wireless-regdb

%if %{with flow_abi}
Requires:	kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

# XXX temporary hack to upgrade from kernel-headers 1:5.4
%if %{build_headers}
Recommends:	kernel-headers = %{EVRD}
%endif

%if %{with binary_extra_modules}
%ifarch %{ix86} %{x86_64}
%kroko_req_modules_in_kernel -j %{nvidia_340_j} -n %{nvidia_340_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_390_j} -n %{nvidia_390_n} -p %{kver_full}
%endif
%ifarch %{x86_64}
%kroko_req_modules_in_kernel -j %{nvidia_470_j} -n %{nvidia_470_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_550_j} -n %{nvidia_550_n} -p %{kver_full}
%endif
%endif

%description
The kernel package contains the Linux kernel (vmlinuz), the core of your
operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.

%posttrans
# update information about modules, useful if kernel-module* packages were
# installed in one transaction with this kernel (%%transfiletrigger* will run later)
depmod -a %{kver_full}
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd
# that is created then will be non-functional. But when the user installs
# kernel-<...> package, that defunct initrd will be replaced with a working
# one here.
dracut -f %{initrd_path} %{kver_full}

# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2

%transfiletriggerin -- %{_modulesdir}/%{kver_full}
# Detect all modules, including ones inside kernel-module* packages
if grep -qE '/.*\.ko(|\..*)' ; then
	depmod -a %{kver_full}
fi

%transfiletriggerpostun -- %{_modulesdir}/%{kver_full}
# Handle e.g. removal of kernel-module* packages
# List of files is not available here (?)
depmod -a %{kver_full}

%files -f %{kernel_files}
%{_bootdir}/System.map-%{kver_full}
%{_bootdir}/symvers-%{kver_full}.*
%{_bootdir}/config-%{kver_full}
%{_bootdir}/vmlinuz-%{kver_full}
%ghost %{initrd_path}
%ifarch %{armx}
%{_bootdir}/dtb-%{kver_full}
%endif
%{_modulesdir}/%{kver_full}/modules.*
%if %{with flow_abi}
%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
%if %{with binary_extra_modules}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821cu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/88x2bu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8812au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8814au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/bluetooth/rtk_btusb.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8188gu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8723du.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8852au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8192du.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/net/ethernet/realtek/r8168.ko%{kmod_suffix}
%ifarch %{ix86} %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/wl.ko%{kmod_suffix}
%endif
%if %{with binary_shredder}
%exclude %{_modulesdir}/%{kver_full}/kernel/extra/shredder-kernel.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/media/v4l2loopback.ko%{kmod_suffix}
%if %{with binary_virtualbox_host}
# vbox host modules may be built here (vboxnetflt vboxnetadp vboxdrv vboxpci)
# vbox guest modules are in the mainline kernel now (vboxvideo vboxguest vboxsf)
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/vbox*.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_TRIPSO.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_so.ko%{kmod_suffix}
%if %{with nickel}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/nlkm.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/memfreetest.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/pcietest.ko%{kmod_suffix}
%endif
%endif
# End of with binary_extra_modules

############################################################################

%if %{build_devel}
%package devel
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	glibc-devel
Requires:	ncurses-devel
Requires:	gcc
Requires:	make
Requires:	perl
Requires:	%{name} = %{EVRD}
Provides:	kernel-devel = %{kverrel}
Provides:	kernel-%{flavour}-devel = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.devel

# Have dkms updated/installed before the kernel, scriptlet here checks if dkms exists
OrderWithRequires(post):	dkms
# Try to remove the main kernel package after removing this devel package
# because there may be dkms-built kernel modules inside directories owned
# by the main package, try to get rid of such files before RPM starts to
# deal with directories owned in the main package
# (note that the devel package does not explicitly require the main package,
# there is no need to do so, a kernel module may be built using just the devel part).
OrderWithRequires(postun): %{name} = %{EVRD}

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

%description devel
This package contains the kernel files (headers and build tools) that should
be enough to build additional drivers for use with %{name}.


%post devel
if command -v dkms_autoinstaller >/dev/null 2>&1; then
	dkms_autoinstaller start %{kver_full}
fi


%preun devel
# If any DKMS modules with REMAKE_INITRD=yes in their configs have been
# uninstalled, initrd has been regenerated for the given kernel. However,
# the kernel itself might have been uninstalled before, so that (defunct)
# initrd image files would be left behind. Remove them if the kernel itself
# is no longer installed. Should work if they are uninstalled in parallel
# too.
if ! test -f /boot/vmlinuz-%{kver_full}; then
	rm -f /boot/initrd-%{kver_full}.img
	rm -f /boot/initrd-%{kver_full}_old.img
fi

if ! command -v dkms >/dev/null 2>&1; then exit 0; fi

for ii in $(/usr/sbin/dkms status -k %{kver_full} | awk '{ print $1 $2; }'); do
	mod=$(echo $ii | awk -v FS=',' '{ print $1; }')
	ver=$(echo $ii | awk -v FS=',' '{ print $2; }')
	/usr/sbin/dkms --rpm_safe_upgrade uninstall -m $mod -v $ver -k %{kver_full} || :
done


%files devel
%{devel_root}
%{_modulesdir}/%{kver_full}/build
%{_modulesdir}/%{kver_full}/source
%endif
# End of build_devel

############################################################################

%if %{build_debug}
%package debuginfo
Summary:	Debuginfo for %{name}
Group:		Development/Debug
Provides:	kernel-debug = %{kverrel}
AutoReq:	0
AutoProv:	0

%description debuginfo
This package contains the files with debuginfo for %{name}.

%files debuginfo -f %{debuginfo_files}
%{_bootdir}/vmlinux-%{kver_full}
%endif
# End of build_debug

############################################################################

%if %{build_doc}
%package doc
Summary:	Various documentation bits found in the kernel source
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files from the kernel source.

%files doc
%doc linux-%{tar_ver}/Documentation/*
%endif

############################################################################

%if %{build_perf}
%package -n perf
Summary:	perf tool and the supporting documentation
Group:		System/Kernel and hardware

%description -n perf
The package contains perf tool and the supporting documentation.

%files -n perf
%{_bindir}/perf
%ifarch x86_64
%{_bindir}/perf-read-vdso32
%endif
%{_bindir}/trace
%{_includedir}/perf/perf_dlfilter.h
%dir %{_libexecdir}/perf-core
%dir %{_libdir}/traceevent
%dir %{_libdir}/traceevent/plugins
%{_libdir}/libperf-jvmti.so
%{_libdir}/traceevent/plugins/*
%{_libexecdir}/perf-core/*
%{_mandir}/man[1-8]/perf*
%{_sysconfdir}/bash_completion.d/perf
%{_datadir}/perf-core/strace/groups/*
%{_datadir}/doc/perf-tip/*.txt
/usr/lib/perf/examples/bpf/*
/usr/lib/perf/include/bpf/*
%endif

############################################################################

%if %{build_headers}
%package -n kernel-headers
Summary:	Linux kernel header files mostly used by your C library
Group:		System/Kernel and hardware
Provides:	linux-userspace-headers = %{EVRD}
Provides:	kernel-release-headers = %{EVRD}

%description -n kernel-headers
C header files from the Linux kernel. The header files define
structures and constants that are needed for building most
standard programs, notably the C library.

This package is not suitable for building kernel modules, you
should use the 'kernel-devel' package instead.

%files -n kernel-headers
%{_includedir}/*
%if %{build_perf}
%exclude %{_includedir}/perf/perf_dlfilter.h
%endif
%endif

############################################################################

%if %{with uml}
%package uml
Summary:	User Mode Linux binary
Group:		System/Kernel and hardware
Provides:	kernel-uml = %{kverrel}
Provides:	kernel-uml-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.uml

%description uml
User Mode Linux binary.
Stripped, debug is in %{name}-debuginfo.

%files uml
%{_bindir}/linux-uml-%{kver_full}

#-----------------------------------------------------------------------------

%package uml-modules
Summary:	User Mode Linux (UML) kernel modules
Group:		System/Kernel and hardware
Provides:	kernel-uml-modules = %{kverrel}
Provides:	kernel-uml-modules-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel-module) = %{EVRD}.uml

%description uml-modules
User Mode Linux (UML) kernel modules:
- not compressed;
- not stripped;
- signed.

%files uml-modules
%{_modulesdir}-uml/%{kver_full}

%endif
# End of uml

#-----------------------------------------------------------------------------

###############################
# Extra modules package definitions

%if %{with binary_extra_modules}
%ksob_mk_module_pkg -n 8821cu -s net/wireless
# add "-r rtl88x2bu-blacklist" in 5.18+!!!
%ksob_mk_module_pkg -n 88x2bu -s net/wireless
# "-r xxx-blacklist" was not added for modules bellow because
# blacklisted modules have not appeared in upstream yet
%ksob_mk_module_pkg -n 8812au -s net/wireless
# for RTL8811AU and RTL8821AU
%ksob_mk_module_pkg -n 8821au -s net/wireless
%ksob_mk_module_pkg -n 8814au -s net/wireless
%ksob_mk_module_pkg -n rtk_btusb -s drivers/bluetooth -r rtk_btusb-firmware
%ksob_mk_module_pkg -n 8188gu -s net/wireless
%ksob_mk_module_pkg -n 8723du -s net/wireless
%ksob_mk_module_pkg -n 8852au -s net/wireless
%ksob_mk_module_pkg -n 8192du -s net/wireless
%ksob_mk_modules_pkg -n rtw89 -s net/wireless/realtek/rtw89p
%ksob_mk_module_pkg -n r8168 -s drivers/net/ethernet/realtek

%ifarch %{ix86} %{x86_64}
%ksob_mk_module_pkg -n wl -s net/wireless -r broadcom-wl-aliases
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_340_j} -n %{nvidia_340_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_390_j} -n %{nvidia_390_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%endif
%ifarch %{x86_64}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_470_j} -n %{nvidia_470_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_550_j} -n %{nvidia_550_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%endif
%ksob_mk_module_pkg -n xt_TRIPSO -s net -r tripso
%ksob_mk_module_pkg -n xt_so -s net -r ipt-so
%ksob_mk_module_pkg -n nwfermi -s drivers/input
%ksob_mk_module_pkg -n v4l2loopback -s drivers/media -r v4l2loopback

%if %{with binary_shredder}
%ksob_mk_module_pkg -n shredder-kernel -s extra -r rosa-shredder-user
%endif

#-----------------------------------------------------------------------------

###############
# Virtualbox host

%if %{with binary_virtualbox_host}
%ksob_mk_module_pkg -n vboxnetflt -s misc
%ksob_mk_module_pkg -n vboxnetadp -s misc
%ksob_mk_module_pkg -n vboxdrv -s misc
%ksob_mk_module_pkg -n vboxpci -s misc

# A package which will pull all those modules
%package -n kernel-modules-virtualbox-host-%{ksob_kernel}
Summary:	Meta package to pull VirtualBox host kernel modules for kernel-%{flavour}-%{kernelversion}.%{patchlevel}
Group:		System/Kernel and hardware
Requires:	%ksob_module_pkg_name vboxnetflt
Requires:	%ksob_module_pkg_name vboxnetadp
Requires:	%ksob_module_pkg_name vboxdrv
Requires:	%ksob_module_pkg_name vboxpci

%description -n kernel-modules-virtualbox-host-%{ksob_kernel}
Meta package to pull VirtualBox host kernel modules for %{name}.

%files -n kernel-modules-virtualbox-host-%{ksob_kernel}
# empty
%endif
#End of ifarch x86

#-----------------------------------------------------------------------------

%if %{with nickel}
%ksob_mk_module_pkg -n nlkm -s misc
%ksob_mk_module_pkg -n memfreetest -s misc
%ksob_mk_module_pkg -n pcietest -s misc
%endif

%endif
# End of binary_extra_modules

#################################################################

%if %{with flow_abi}
%package -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
Summary:	Directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x
Group:		System/Kernel and hardware

%description -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
This package contains a directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x.
Some vendors provide binary-only kernel modules. They can put them into %{_modulesdir}/%{kernelversion}.%{patchlevel}-rosa-flow-abi.
kmod tools will find them for kernels 5.4.x of "generic" and "nickel" flavours
but there is no guarantee that these modules will load and work correctly on
newer or older kernels then the ones they were build against.

We call this "flow ABI" because most ABIs are not changed between %{kernelversion}.%{patchlevel}.x releases,
but there are no specific guarantees. ABI may evolve and change.
We highly recommend to use DKMS and build third-party kernel modules from source for every kernel!
This package does nothing, just owns a directory for third-party binary kernel modules.

%files -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%{_modulesdir}/%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
# End of flow_abi

################################################

%prep
# Avoid accidental merge
%if 0%{?rpm5}
%{error:Package structure is for dnf, not for urpmi!}
%endif

%setup -q -n %{top_dir_name} -c
grep -Irl /lib/modules | xargs sed -i -e 's,/lib/modules,%{_modulesdir},g' -e 's,/usr/usr/lib/modules,/usr/lib/modules,g'

%if %{with uml}
cp -r %{src_dir} %{src_dir}.uml
%endif
cd %{src_dir}

%autopatch -p1

#
# Setup Begin
#

##################################
# Kernel configuration

echo "Creating the kernel configuration file."

# Configs
cp %{SOURCE111} .
cp %{SOURCE112} .
cp %{SOURCE113} .
cp %{SOURCE114} .
cp kernel-%{arch_suffix}.config .config

touch %{build_dir}/.config.append

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
# Wipe all .gitignore/.get_maintainer.ignore files
find . -name "*.g*ignore" -delete

# adapt for non-usr-moved platforms
%if %{without fail}
%if %{mdvver} < 202310
sed -i -e 's,/usr/sbin/,/sbin/,g' .config
%endif
%endif

# Disable debug info if requested (enabled by default)
%if ! %build_debug
sed -i -e '/CONFIG_DEBUG_INFO/d' -e '/CONFIG_GDB_SCRIPTS/d' .config
echo '# CONFIG_DEBUG_INFO is not set' >> %{build_dir}/.config.append
echo '# CONFIG_GDB_SCRIPTS is not set' >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_FORCE/d' .config
%if %{with oblig_signed_modules}
# Disallow loading not signed modules
# But 0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch allows to override this in cmdline
echo CONFIG_MODULE_SIG_FORCE=y >> %{build_dir}/.config.append
%else
echo CONFIG_MODULE_SIG_FORCE=n >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_KEY/d' .config
# Set path to the key that will be generated later by openssl/libressl
echo CONFIG_MODULE_SIG_KEY=\"%{certs_signing_key_priv_rnd}\" >> %{build_dir}/.config.append

# Set path to one PEM file with all keys that the kernel must trust
sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/d' .config
echo CONFIG_SYSTEM_TRUSTED_KEYS=\"%{certs_public_keys}\" >> %{build_dir}/.config.append

# Memory wiping
# Introduced in kernel 5.3 by commit 6471384af2a6530696fc0203bafe4de41a23c9ef
# Estimated performance impact is described in the commit
# "Fill newly allocated pages and heap objects with zeroes."
# To enable, add to cmdline: init_on_alloc=1
sed -i '/CONFIG_INIT_ON_ALLOC_DEFAULT_ON/d' .config
echo CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n >> %{build_dir}/.config.append
# "Fill freed pages and heap objects with zeroes"
# To disable, add to cmdline: init_on_free=0
sed -i '/CONFIG_INIT_ON_FREE_DEFAULT_ON/d' .config
%if %{with nickel}
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=y >> %{build_dir}/.config.append
%else
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=n >> %{build_dir}/.config.append
%endif
# Here enabling only either only init_on_free or only init_on_alloc
# makes sense; init_on_alloc is not about protecting information.

# To load kernel keyring in UML
for i in STREEBOG SHA1 SHA256 SHA512 ECRDSA RSA ; do
	if ! grep -q "^CONFIG_CRYPTO_${i}=y$" .config; then
		sed -i "/CONFIG_CRYPTO_${i}/d" .config
		echo "CONFIG_CRYPTO_${i}=y" >> %{build_dir}/.config.append
	fi
done

cat %{build_dir}/.config.append >> .config

##################
# End of kernel config


# Store the config file in the appropriate directory.
CONFIG_DIR=arch/%{arch_type}/configs
mkdir -p "${CONFIG_DIR}"

cfg_file=arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour}

make ARCH=%{arch_type} oldconfig
# When it is needed to edit kernel configs, run:
# abf fetch
# rpmbuild --define "_sourcedir $PWD" --with=fail -bb kernel.spec
# and then work with the config in the buildroot with applied patches etc.
%{?_with_fail:exit 1}
mv .config ${cfg_file}
echo "Created ${cfg_file}."

# Make sure the kernel has the sublevel we know it has...
LC_ALL=C sed -ri "s/^SUBLEVEL.*/SUBLEVEL = %{sublevel}/" Makefile

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
find . -name '.get_maintainer.ignore' | %kxargs rm -f

# Versionize python shebang (#!/usr/bin/env python -> #!/usr/bin/python3) in scripts
grep -Irl '^#!/usr/bin/env python' | xargs sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},'

# Drop env from bash scripts
sed -i '1 s,^#!.*env .*,#!%{_bindir}/bash,' scripts/config

# Drop env from perl scripts
grep -IrlE '^#!.*env perl' | xargs sed -i -e '1 s,^#!/usr/bin/env perl$,#!{_bindir}/perl,'

############################################################################

%build
# Ensure that build time generated private keys don't get published
# as e.g. "RPM build root" on ABF!
# Note that ABF sends SIGKILL to rpm-build.sh when the build is terminated;
# in this case trap will not work, but RPM build root also will not be
# saved because rpm-build.sh saves it, but it is SIGKILLed.
# For best security we could store private keys in RAM (not reachable from
# filesystem, so not in /tmp!) and override sth like fopen() by LD_PRELOAD
# to give the content of keys from RAM when a virtual address of a key file
# is accessed, but currently I don't know how to implement this (TODO: ).
_cleanup(){
# Show resulting kernel public keys for debugging
	cat "%{src_dir}/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}/%{certs_dir_rnd}"
%if %{with uml}
	cat "%{src_dir}.uml/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}.uml/%{certs_dir_rnd}"
%endif
}
# Make a trap to delete keys even if %%build fails in the middle
trap "_cleanup" EXIT

rm -rf %{temp_root}
install -d %{temp_root}

cd %{src_dir}

### Keys for signing kernel modules
# Keys can be generated both manually and automatically,
# let's generate them by ourselves to take full control of the process
# https://www.ibm.com/support/knowledgecenter/en/SSB23S_1.1.0.13/gtps7/cfgcert.html
# See also certs/Makefile in kernel source
mkdir -p "%{certs_dir_rnd}"

# On ABF, %%packager == $username <$email>
# Try to extract email from %%packager if it is set
_get_email(){
	# Check that macro %%packager was set and is not empty
	if echo '%{packager}' | grep -q 'packager}$' || [ -z "%{packager}" ]
		# If was not set or is empty, use default email
		then echo 'rpmbuild@rosa.unknown' && return
		# Otherwise try to extract email from 'name <email>' or sth else
		else temp="$(echo '%{packager}' | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | tr -d '<>' | grep -E '@.*\..*' | head -n 1)"
	fi
	# Validate that what we have now is a valid email
	# https://stackoverflow.com/a/2138832, https://stackoverflow.com/a/41192733
	# Note that we set %%_buildshell to /bin/bash to guarantee the work of this bashism
	regex_email="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
	if [[ "$temp" =~ ${regex_email} ]]
		# If it is, use it
		then echo "$temp" && return
		# Otherwise use default email
		else echo 'rpmbuild@rosa.unknown' && return
	fi
	# If script above has not return'ed for any reason,
	# e.g. because of non-bash shell being not able to
	# process regexp, use default email
	echo 'rpmbuild@rosa.unknown'
}
email="$(_get_email)"

cat <<EOF > "%{certs_key_config_rnd}"
[ req ]
prompt = no
string_mask = utf8only
#default_keyfile = %%{certs_signing_key_priv_rnd}
distinguished_name = req_distinguished_name
x509_extensions = myexts
[ req_distinguished_name ]
organizationName = %{vendor} rpmbuild
commonName = Build time autogenerated @ALGO@ kernel key
emailAddress = ${email}
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
cat "%{certs_key_config_rnd}"
sed -e 's,@ALGO@,RSA,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.RSA"
sed -e 's,@ALGO@,GOST R 34.10-2012,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.GOST"
# Avoid using the template
rm -f "%{certs_key_config_rnd}"

_libressl_gen_key(){
	if [ "$GOST_KEY" = 1 ]
	then
		lssl_req_gost_args="\
			-newkey gost2001 \
			-pkeyopt dgst:streebog512 -pkeyopt paramset:A \
			-streebog512"
		OUT="%{certs_signing_key_priv_rnd}.GOST"
		CONFIG="%{certs_key_config_rnd}.GOST"
	else
		lssl_req_gost_args=""
		OUT="%{certs_signing_key_priv_rnd}.RSA"
		CONFIG="%{certs_key_config_rnd}.RSA"
	fi
		libressl req -new -nodes -utf8 -batch \
			$lssl_req_gost_args \
			-days 109500 \
			-x509 -config "$CONFIG" \
			-out "$OUT" \
			-keyout "$OUT"

	# Verify
	if [ "$GOST_KEY" = 1 ]; then
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
	fi
}

GOST_KEY=0 _libressl_gen_key
GOST_KEY=1 _libressl_gen_key
# Fake CONFIG_MODULE_SIG_KEY to make build scripts happy
cp -v "%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}"

# Strip public parts from the generated PEMs
sed -n \
	'/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' \
	"%{certs_signing_key_priv_rnd}.GOST" \
	"%{certs_signing_key_priv_rnd}.RSA" \
	> "%{certs_public_keys}"

# Link sign-file and extract-cert with LibreSSL instead of OpenSSL
if [ $? != 0 ] ; then exit $? ; fi
sed -i %{src_dir}/scripts/Makefile \
%if %{with uml}
	%{src_dir}.uml/scripts/Makefile \
%endif
	-e "s, libcrypto , libressl-libcrypto ,g"

%if %{with additional_keys}
# Add additional public RSA keys to the list of trusted keys for kernel modules
# Build kernel --without additional_keys if you do not want to trust them
cat %{expand:%(for i in `seq 1 12`; do echo "%%SOURCE$((200+${i}))" | tr "\n" " "; done)} \
	>> "%{certs_public_keys}"
%endif
# End of additional_keys
cat %{certs_public_keys}

# .config
%smake -s mrproper
cp arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour} .config

# Make sure EXTRAVERSION says what we want it to say
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{flavour}-%{buildrpmrel}/" Makefile

# Build the kernel
echo "Building kernel %{kver_full}"

TARGETS="all"
# need to install dtbs to proper boot arm64 devices
%ifarch %{armx}
	TARGETS="$TARGETS dtbs"
%endif

%kmake V=1 -s $TARGETS

# Install modules
mkdir -p %{temp_modules}/%{kver_full}
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=%{kver_full} modules_install

%if %{with binary_extra_modules}
# Build and install procedure is specific to each Makefile from kernmel-source-* packages
# See also: https://www.kernel.org/doc/html/latest/kbuild/modules.html
# Copy directory because write permissions are required
# `make modules_install` must be done before this, otherwise these copied files will be deleted

# $1: name of kernel module
# $2: directory (e.g.: kernel/net/wireless)
_build_rtl(){
	cp -r "$(rpm -q --qf "/usr/src/rtl${1}-%%{VERSION}-%%{RELEASE}" kernel-source-rtl${1})" kernel-source-rtl${1}
	pushd kernel-source-rtl${1}
	%kmake KSRC=%{src_dir} M="$PWD"
	mkdir -p %{temp_modules}/%{kver_full}/${2}
	cp ${1}.ko %{temp_modules}/%{kver_full}/${2}
	popd
	rm -fr kernel-source-rtl${1}
}

_build_rtl 8821cu kernel/net/wireless
_build_rtl 88x2bu kernel/net/wireless
_build_rtl 8812au kernel/net/wireless
_build_rtl 8821au kernel/net/wireless
_build_rtl 8821au kernel/net/wireless
_build_rtl 8814au kernel/net/wireless
_build_rtl 8188gu kernel/net/wireless
_build_rtl 8723du kernel/net/wireless
_build_rtl 8852au kernel/net/wireless
_build_rtl 8192du kernel/net/wireless

cp -r "$(rpm -q --qf "/usr/src/r8168-%%{VERSION}-%%{RELEASE}" kernel-source-r8168)" kernel-source-r8168
pushd kernel-source-r8168
%kmake -C %{src_dir} KERNELRELEASE=%{kver_full} KERNELDIR=%{src_dir} M="$PWD" modules
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/net/ethernet/realtek
cp r8168.ko %{temp_modules}/%{kver_full}/kernel/drivers/net/ethernet/realtek
popd
rm -fr kernel-source-r8168

cp -r "$(rpm -q --qf '/usr/src/rtk_btusb-%%{VERSION}-%%{RELEASE}' kernel-source-rtk_btusb)" kernel-source-rtk_btusb
pushd kernel-source-rtk_btusb
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/bluetooth/
cp rtk_btusb.ko %{temp_modules}/%{kver_full}/kernel/drivers/bluetooth/rtk_btusb.ko
popd
rm -fr kernel-source-rtk_btusb

cp -r "$(rpm -q --qf '/usr/src/rtw89-%%{VERSION}-%%{RELEASE}' kernel-source-rtw89)" kernel-source-rtw89
pushd kernel-source-rtw89
%kmake KSRC=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
cp *.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/realtek/rtw89p
popd
rm -fr kernel-source-rtw89

_build_nvidia(){
	cp -r "$(rpm -q --qf "/usr/src/nvidia${1}-%%{VERSION}-%%{RELEASE}" kernel-source-nvidia${1})" kernel-source-nvidia${1}
	pushd kernel-source-nvidia${1}
	%make SYSSRC=%{src_dir}
	mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}.%{kroko_release}
	for i in *.ko
	do
		# put them here to extract debug and compress, will be moved later
		install -m0644 "$i" %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}.%{kroko_release}/"$i"
	done
	popd
	rm -fr kernel-source-nvidia${1}
	# for rosa-kernel-tools
	mkdir -p %{temp_root}/var/spool/initramfs-regen
	touch %{temp_root}/var/spool/initramfs-regen/nvidia${1}.%{kroko_release}
}

%ifarch %{ix86} %{x86_64}
cp -r "$(rpm -q --qf '/usr/src/broadcom-wl-%%{VERSION}-%%{RELEASE}' kernel-source-broadcom-wl)" kernel-source-broadcom-wl
pushd kernel-source-broadcom-wl
%kmake -C %{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp wl.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/wl.ko
popd
rm -fr kernel-source-broadcom-wl

_build_nvidia 340
_build_nvidia 390
%endif

%ifarch %{x86_64}
_build_nvidia 470
_build_nvidia 550
%endif

cp -r "$(rpm -q --qf '/usr/src/tripso-%%{VERSION}-%%{RELEASE}' kernel-source-tripso)" kernel-source-tripso
pushd kernel-source-tripso
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_TRIPSO.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-tripso

cp -r "$(rpm -q --qf '/usr/src/ipt-so-%%{VERSION}-%%{RELEASE}' kernel-source-ipt-so)" kernel-source-ipt-so
pushd kernel-source-ipt-so
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_so.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-ipt-so

cp -r "$(rpm -q --qf '/usr/src/nwfermi-%%{VERSION}-%%{RELEASE}' kernel-source-nwfermi)" kernel-source-nwfermi
pushd kernel-source-nwfermi
#%%kmake KERNEL_SOURCE=%{src_dir}
make -C %{src_dir} M="$PWD" modules
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/input
cp nwfermi.ko %{temp_modules}/%{kver_full}/kernel/drivers/input/
popd
rm -fr kernel-source-nwfermi

%if %{with binary_shredder}
cp -r "$(rpm -q --qf '/usr/src/shredder-kernel-%%{VERSION}-%%{RELEASE}' kernel-source-shredder-kernel)" kernel-source-shredder-kernel
pushd kernel-source-shredder-kernel
%kmake KERNEL_PATH=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/extra/
cp shredder-kernel.ko %{temp_modules}/%{kver_full}/kernel/extra/
popd
rm -fr kernel-source-shredder-kernel
%endif

%if %{with binary_virtualbox_host}
# build commands for virtualbox are based on the ones from the virtualbox package
cp -r "$(rpm -q --qf '/usr/src/virtualbox-%%{VERSION}-%%{RELEASE}' kernel-source-virtualbox)" kernel-source-virtualbox
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
pushd kernel-source-virtualbox
make -C vboxdrv KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxdrv/Module.symvers vboxnetflt
cp -fv vboxdrv/Module.symvers vboxnetadp
make -C vboxnetflt KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
make -C vboxnetadp KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxnetadp/Module.symvers vboxpci/
make -C vboxpci KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
for i in vboxnetflt vboxnetadp vboxdrv vboxpci
do
	cp -v "${i}/${i}.ko" %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif

cp -r "$(rpm -q --qf '/usr/src/v4l2loopback-%%{VERSION}-%%{RELEASE}' kernel-source-v4l2loopback)" kernel-source-v4l2loopback
pushd kernel-source-v4l2loopback
cat Kbuild > Makefile
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/media
make -C %{src_dir} M="$PWD" modules
cp v4l2loopback.ko %{temp_modules}/%{kver_full}/kernel/drivers/media
pushd
rm -fr kernel-source-v4l2loopback

%if %{with nickel}
# rosa-test-suite uses /sr/src/xxx-version, not /usr/src/xxx-version-release
cp -r "$(rpm -q --qf '/usr/src/rosa-test-suite-%%{VERSION}' kernel-source-rosa-test-suite)" kernel-source-rosa-test-suite
pushd kernel-source-rosa-test-suite
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
for i in nlkm memfreetest pcietest
do
cat << EOF > Makefile
obj-m := ${i}.o
all:
	make -C %{src_dir} M=\$(PWD) modules
EOF
%kmake
cp -fv ${i}.ko %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif
# End with nickel <- with binary_extra_modules

%endif
# End with binary_extra_modules

%if %{with uml}
cp -rv %{certs_dir_rnd} %{src_dir}.uml/
pushd %{src_dir}.uml
%kmake ARCH=um defconfig
%kmake ARCH=um linux
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
#rm -fv linux
%kmake V=1 ARCH=um modules
mkdir -p %{temp_root}%{_modulesdir}-uml/%{kver_full}/
%kmake ARCH=um INSTALL_MOD_PATH=%{temp_root}%{_modulesdir}-uml/%{kver_full}/ modules_install
popd
%endif

install -d %{temp_boot}
install -m 644 System.map %{temp_boot}/System.map-%{kver_full}
install -m 644 .config %{temp_boot}/config-%{kver_full}
%if %{with modxz}
xz -c Module.symvers > %{temp_boot}/symvers-%{kver_full}.xz
%else
%{zstd_cmd} Module.symvers
install -m 644 Module.symvers.zst %{temp_boot}/symvers-%{kver_full}.zst
%endif

%ifarch %{armx}
%make_build ARCH=%{arch_type} V=1 INSTALL_DTBS_PATH=%{temp_boot}/dtb-%{kver_full} dtbs_install
%endif

%ifarch aarch64 riscv64
	cp -f arch/%{arch_type}/boot/Image* %{temp_boot}/vmlinuz-%{kver_full}
%else
	cp -f arch/%{arch_type}/boot/bzImage %{temp_boot}/vmlinuz-%{kver_full}
%endif

# Headers
%if %{build_headers}
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=%{kver_full} headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
%endif

# Remove /lib/firmware, we use a separate linux-firmware package
rm -rf %{temp_root}/lib/firmware

# Prepare the files for kernel*-devel
%if %{build_devel}

mkdir -p %{temp_devel_root}
for i in $(find . -name 'Makefile*'); do cp -R --parents $i %{temp_devel_root}; done
for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i %{temp_devel_root}; done

cp -fR include %{temp_devel_root}

cp -fR scripts %{temp_devel_root}
cp -fR kernel/bounds.c %{temp_devel_root}/kernel
cp -fR kernel/time/timeconst.bc %{temp_devel_root}/kernel/time
cp -fR tools %{temp_devel_root}/
cp -fR arch/%{arch_type}/kernel/asm-offsets.{c,s} %{temp_devel_root}/arch/%{arch_type}/kernel/
%ifarch %{ix86} %{x86_64}
cp -fR arch/%{arch_type}/kernel/asm-offsets_{32,64}.c %{temp_devel_root}/arch/%{arch_type}/kernel/
cp -fR arch/%{arch_type}/purgatory/* %{temp_devel_root}/arch/%{arch_type}/purgatory/
# Needed for arch/x86/purgatory
cp -fR lib/*.h lib/*.c %{temp_devel_root}/lib/
cp -fR arch/%{arch_type}/entry/syscalls/syscall* %{temp_devel_root}/arch/%{arch_type}/entry/syscalls/
cp -fR arch/%{arch_type}/tools %{temp_devel_root}/arch/%{arch_type}/
# needed for kexec
cp -fR arch/%{arch_type}/boot/*.h %{temp_devel_root}/arch/%{arch_type}/boot/
cp -fR arch/%{arch_type}/boot/*.c %{temp_devel_root}/arch/%{arch_type}/boot/
%endif
cp -fR arch/%{arch_type}/include %{temp_devel_root}/arch/%{arch_type}/
cp -fR .config Module.symvers %{temp_devel_root}

# Needed for truecrypt build (Danny)
cp -fR drivers/md/dm.h %{temp_devel_root}/drivers/md/

# Needed for lirc_gpio (#39004)
cp -fR drivers/media/pci/bt8xx/bttv{,p}.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/pci/bt8xx/bt848.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/common/btcx-risc.h %{temp_devel_root}/drivers/media/common/

# Add acpica header files, needed for fglrx build
cp -fR drivers/acpi/acpica/*.h %{temp_devel_root}/drivers/acpi/acpica/

%if %{with aufs}
# aufs2 has a special file needed
cp -fR fs/aufs/magic.mk %{temp_devel_root}/fs/aufs
%endif

# SELinux needs security/selinux/include
cp -fR security/selinux/include %{temp_devel_root}/security/selinux

for i in alpha arc avr32 blackfin c6x cris csky frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
	mips mn10300 nds32 nios2 openrisc parisc powerpc s390 score sh sparc tile unicore32 xtensa; do
	rm -rf %{temp_devel_root}/arch/$i
done

# Clean the scripts tree, and make sure everything is ok (sanity check)
# running prepare+scripts (tree was already "prepared" in build)
pushd %{temp_devel_root}
	%smake V=1 -s clean ARCH=%{arch_type}
popd

rm -f %{temp_devel_root}/.config.old

# Fix permissions
chmod -R a+rX %{temp_devel_root}

# Disable mrproper in -devel rpms
#patch -p1 --fuzz=0 -d %{temp_devel_root} -i %{SOURCE2}
%endif
# End of build_devel


# TODO: maybe move to /usr/lib/debug?
%if %{build_debug}
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | \
	%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | %kxargs -I '{}' \
	sh -c 'cd `dirname {}`; \
		objcopy --add-gnu-debuglink=`basename {}`.debug \
		--strip-debug `basename {}`'
%endif
# End of build_debug

# https://patchwork.kernel.org/patch/11446123/
_libressl_sign(){
	if [ ! -f "$1" ]; then
		echo "No file $1"
		return 0
	fi
	f="$1"
%if %{with gost_sign}
	%{src_dir}/scripts/sign-file streebog512 \
		"%{certs_signing_key_priv_rnd}.GOST" "%{certs_signing_key_priv_rnd}.GOST" "$f"
%else
	%{src_dir}/scripts/sign-file sha512 \
		"%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}.RSA" "$f"
%endif
	unset f
}
export -f _libressl_sign
find %{temp_modules}/%{kver_full}/kernel \
%if %{with uml}
	%{temp_root}%{_modulesdir}-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -e -x -c 'if ! _libressl_sign "{}"; \
		then echo Failed _libressl_sign on "{}" && exit 1; fi'

# Set extraversion to match srpm to get nice version reported by the tools
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
%smake -C tools/perf -s PYTHON=%{__python3} HAVE_CPLUS_DEMANGLE=1 WERROR=0 prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 man
%endif

_cleanup

############################################################################

%install
cd %{src_dir}

# TODO: get rid of temporary directory, install to buildroot directly?
# We want to be able to test several times the install part
rm -rf %{buildroot}
cp -a %{temp_root} %{buildroot}

#if %%{with oblig_signed_modules}
# Multithreaded verification that every kernel module has a signature attached to it
mkdir -p "%{certs_dir_rnd}"
touch %{certs_verify_tmp}
_verify_signature(){
	if [ -z "$1" ] || [ ! -f "$1" ]; then return; fi
	if hexdump -C "$1" | rev | cut -f 2 -d '|' | rev | tr -d '\n' | grep -q '~Module signature appended~'; then
		if [ -f %{certs_verify_tmp} ]; then
			rm -f %{certs_verify_tmp}
		fi
	else
		echo "ERROR: Module $1 has no signature attached to it!"
		exit 1
	fi
}
export -f _verify_signature
find %{target_modules} \
%if %{with uml}
	%{buildroot}%{_modulesdir}-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -c '_verify_signature "{}"'
if [ -f %{certs_verify_tmp} ]; then
	echo "ERROR: seems that signatures of none modules were verified!"
	exit 1
fi
rm -f %{certs_verify_tmp}
#endif

# Compressing modules
%if %{with compress_modules}
# Tested on /lib/modules/5.10.34-generic-2rosa2019.1-x86_64, the results are the following:
# * decompressed: 266.3 MiB
# * xz -9 --extreme: 67.8 MiB
# * zstd --ultra -22 without training: 73.5 MiB
# * zstd -6 without training: 79.6 MiB
# * zstd --ultra -22 with training: 66.3 MiB (the winner!)
# Training takes only a few minutes, make it here in place with current zstd and kernel modules.
# But! Decompressing also requires a dictionary for zstd, that will be too complex, so not using training :(
# We already use zstd in dracut to compress initrds quickly and with good compression ration.
# Testing speed of loading modules:
# `time modinfo bcache.ko.xz` took 0,048s, `time modinfo bcache.ko.zstd` took 0,014s (for multiple times)
# find /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 -type f -name '*.ko.zst' > /tmp/zst.list
# time { for i in `cat /tmp/zst.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took ~31-40s, with disk cache (2+ runs) ~33s
# find /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 -type f -name '*.ko.xz' > /tmp/xz.list
# time { for i in `cat /tmp/xz.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took 43-47s, with disk cache (2+ runs) ~42s, +21%%
# zstd-compressed initramfs image initrd-5.10.34-generic-1rosa2019.1-x86_64.img with *.ko.xz is 56,3 MiB
# zstd-compressed initramfs image initrd-5.10.34-generic-2rosa2019.1-x86_64.img with *.ko.zst is 58,4 MiB (+3.6%%)
# /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 (*.ko.xz) is 78,1 MiB
# /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 (*.ko.zst) is 83,9 MiB (+7%%)
# When zstd is compressing cpio (initrd image) with zstd-compressed kernel modules inside it, does it recompress data?
# It is not easy to make a choice between zstd and xz for kernel modules... Disk space (and so speed of installing
# RPM packages) is not much bigger, we do not try to support super low end devices, operation speed is a bit better.
# I have not seen measurable difference in startup time according to systemd-analyze.
# Note that decompression after zstd --ultra -22 will consume more memory than after zstd -6, see commit message in
# https://github.com/torvalds/linux/commit/73f3d1b48f5069d46b. I did not benchmark -6 vs -22 in runtime.
# Let's use zstd for now.
# zstd may also be used to compress linux-firmware to save a lot of space on disk,
# but upstream kernels still cannot decompress it.
#{zstd_cmd} -T0 --train $(find . -type f -name '*.ko')
#[ -f dictionary ]
# -T1 (one thread) because we run multiple zstd processes by xargs
%if %{with modxz}
find %{target_modules} -name "*.ko" | %kxargs xz -6e
%else
find %{target_modules} -name "*.ko" | %kxargs %{zstd_cmd} --rm -T1 #-D dictionary
rm -f dictionary
%endif
%endif

%if %{with binary_extra_modules}
# Move nvidia modules to manage them via alternatives(8), leave *.debug
# TODO: better handle debug here and in the package in general
find %{target_modules}/%{kver_full}/kernel/drivers/video -name 'nvidia???.*' -type d -maxdepth 1 |
while read -r line
do
	nv="$(basename "$line")"
	mkdir -p %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
	mv -v "$line"/*.ko%{kmod_suffix} %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
	dir_no_buildroot="$(echo "$line" | sed -e 's,^%{buildroot},,')"
	echo "%exclude $dir_no_buildroot" >> %{kernel_files}
	%if %{build_debug}
	echo "%dir $dir_no_buildroot" >> %{debuginfo_files}
	%endif
done
%endif #/with binary_extra_modules

find %{buildroot}%{_modulesdir}/%{kver_full} -type f -name '*.ko%{kmod_suffix}' | sed -e 's,^%{buildroot},,' | sort -u >> %{kernel_files}
find %{buildroot}%{_modulesdir}/%{kver_full} -type d | sed -e 's,^%{buildroot},%dir ,' | sort -u >> %{kernel_files}

# We estimate the size of the initramfs because rpm needs to take this size
# into consideration when performing disk space calculations (See rhbz#530778)
# 65 MiB is a bit more than needed, but let's be more sure that there is enought space.
# On my PC, zstd-compressed initrds take 58,5 MiB.
# Real size of the RPM package should not increase because RPM compresses the payload.
# This file is %%ghost, so the real initrd will be deleted when uninstalling this package.
dd if=/dev/zero of=%{buildroot}%{initrd_path} bs=1M count=65

%if %{build_debug}
install -m 644 vmlinux %{buildroot}%{_bootdir}/vmlinux-%{kver_full}
find %{buildroot}%{_modulesdir} -type f -name '*.debug' | sed -e 's,^%{buildroot},,' | sort -u >> %{debuginfo_files}
%endif
# End of build_debug

pushd %{target_modules}
for i in *; do
	rm -f $i/build $i/source
	ln -sf /usr/src/linux-$i $i/build
	ln -sf /usr/src/linux-$i $i/source
done

# Sniff, if we compressed all the modules, we change the stamp :(
# we really need the depmod -ae here
for i in *; do
	/usr/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
	echo $?
done

# We used to create modules.description files which contained the
# description strings for the modules as shown by modinfo. These files
# are unlikely to be used right now, so create them (in case some old tool
# checks for their existence) but keep them empty.
for i in *; do
	touch $i/modules.description
done
popd

# Need to set extraversion to match srpm again to avoid rebuild
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
# Perf tool binary and supporting scripts/binaries
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} lib=%{_lib} install

# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},' \
	%{buildroot}%{_libexecdir}/perf-core/scripts/python/exported-sql-viewer.py \
	%{buildroot}%{_libexecdir}/perf-core/scripts/python/libxed.py
sed -i -e '1s,^#!/usr/bin/python$,#!%{__python3},' \
	%{buildroot}%{_libexecdir}/perf-core/tests/shell/lib/perf_json_output_lint.py

# Perf man pages (note: implicit rpm magic compresses them later)
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
%endif

# Delete junk
rm -fr %{buildroot}%{_usr}/src/*/kernel-source-*

%if %{with flow_abi}
# Prefix with "zzz" to put this directory into the end of search list
# and avoid tricks with depmod configs
mkdir -p %{buildroot}%{_modulesdir}/%{kernelversion}.%{patchlevel}-rosa-flow-abi
ln -s %{_modulesdir}/%{kernelversion}.%{patchlevel}-rosa-flow-abi %{buildroot}%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

# Drop hidden files
rm -f %{buildroot}%{_docdir}/kernel-5.10-generic-doc/devicetree/bindings/.yamllint

# Fix perms
%if %{build_perf}
chmod -x %{buildroot}%{_sysconfdir}/bash_completion.d/perf
chmod -x %{buildroot}%{_prefix}/lib/perf/examples/bpf/*.c
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/*.h
chmod -x %{buildroot}%{_prefix}/lib/perf/include/bpf/linux/*.h
chmod -x %{buildroot}%{_datadir}/doc/perf-tip/*.txt
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13743 |21mr|kernel-6.6-generic-6.6.47-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# _get_email() in %%build contains bashisms for regexping
%define	_buildshell /bin/bash

# brp-python-bytecompile uses /usr/bin/python,
# but it is a different python version in different ROSA
# releases; there is no good way to tell brp-python-bytecompile
# which iterpreter to use; so just disable it to avoid problems
%define	_python_bytecompile_build 0

# Probably dwz bug, on i686 only file is not packaged:
# /usr/lib/debug/usr/bin/trace-5.4.40-3.i386.debug.#dwz#.b5xuKG
# dwz compresses only debuginfo from perf, cpupower, uml,
# not the kernel itself (because it is stripped not by RPM),
# so we do not loose much by disabling it.
%global	_find_debuginfo_dwz_opts %{nil}

# Put everything into one non-standard debuginfo subpackage
# TODO: make multiple debuginfo packages coinstallable as installonlypkg,
# to achive this, there must be no conflicting files.
# Probably signing and compressing of kernel modules
# has to be moved to %%_spec_install_post.
%global	_debuginfo_subpackages %{nil}
%global	_debuginfo_template %{nil}
%undefine	_debugsource_packages

# Avoid rediffing patches like AUFS when possible
%define _default_patch_fuzz 10

# Hack: flavour and major version are variable, make %%_build_pkgcheck_* always detect and use this config
%global	_build_pkgcheck_set %(echo "%{_build_pkgcheck_set}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')
%global	_build_pkgcheck_srpm %(echo "%{_build_pkgcheck_srpm}" | sed -e 's,/%{name}.rpmlintrc,/kernel.rpmlintrc,')

%define kernelversion 6
%define patchlevel 6
%define sublevel 47

# Release number. Increase this before a rebuild.
%define rpmrel 1
%define fullrpmrel %{rpmrel}

%define rpmtag %{disttag}

# Version defines
%define kversion %{kernelversion}.%{patchlevel}.%{sublevel}
%define kverrel %{kversion}-%{fullrpmrel}
%define tar_ver %{kernelversion}.%{patchlevel}

%ifarch %{ix86}
%define	arch_suffix	i686
%endif

%ifarch %{x86_64}
%define	arch_suffix	x86_64
%endif

%ifarch aarch64
%define	arch_suffix	arm64
%endif
%ifarch riscv64
%define	arch_suffix	riscv64
%endif

%define	buildrpmrel	%{fullrpmrel}%{rpmtag}-%{arch_suffix}
%define	buildrel	%{kversion}-%{buildrpmrel}

# Add not only the build time generated key to the trusted keyring,
# but also add public keys of private ROSA's keys
%bcond_without	additional_keys

# Fail the build after "make oldconfig" to edit kernel configs
%bcond_with	fail

# User Mode Linux, https://habr.com/ru/company/itsumma/blog/459558/
# Not buildable on aarch64, rarely needed in general
%bcond_with	uml

# "Nickel" is a special brand for certified distros
%if %{mdvver} == 201905
%bcond_without	nickel
# Require kernel modules to be signed
%bcond_without	oblig_signed_modules
%else
%bcond_with nickel
%bcond_with oblig_signed_modules
%endif

# Build binary out-of-tree kernel modules
%bcond_without binary_extra_modules
# Sign kernel modules with GOST key
%bcond_without gost_sign

%bcond_with ccache
%bcond_without flow_abi
%bcond_without aufs

# 1. VirtualBox is for x86_32 and x86_64 only
# 2. I do not know how to solve the problem that userspace part of VirtualBox
# will be updated ahead of these binary modules. So just off building them.
%bcond_with binary_virtualbox_host

# Shredder-kernel works only on x86_64, makes manipulations with syscalls tables,
# loading/unloading of the module failed sometimes on kernel 5.4
# and it has not been adapted for kernel 5.10 (is not buildable)
%bcond_with binary_shredder

# Compress modules with zstd (zstd is good compression and fast decompression)
%bcond_without compress_modules
# Spend more resources on compression, but make resulting size less;
# decompression speed will not be affected, but more memory will be required
# which should not a problem here (performance penalty from allocating more
# memory should not be big, I think, but I did not benchmark).
%define	zstd_cmd zstd -q --format=zstd --ultra -22

# Kernel flavour
%if %{with nickel}
%define	flavour	nickel
%else
%define	flavour	generic
%endif

# The full kernel version
%define	kver_full	%{kversion}-%{flavour}-%{buildrpmrel}

############################################################################

%define	top_dir_name	kernel-%{_arch}
%define	build_dir	${RPM_BUILD_DIR}/%{top_dir_name}
%define	src_dir	%{build_dir}/linux-%{tar_ver}

# Common target directories
%define	_bootdir	/boot
%define	devel_root	/usr/src/linux-%{kver_full}
%define	initrd_path %{_bootdir}/initrd-%{kver_full}.img
%if %{mdvver} >= 202310
%define	_modulesdir	/usr/lib/modules
%else
%define	_modulesdir	/lib/modules
%endif

# Directories needed for building
%define	temp_root	%{build_dir}/temp-root
%define	temp_boot	%{temp_root}%{_bootdir}
%define	temp_modules	%{temp_root}%{_modulesdir}
%define	temp_devel_root	%{temp_root}%{devel_root}

# Directories definition needed for installing
%define	target_boot	%{buildroot}%{_bootdir}
%define	target_modules	%{buildroot}%{_modulesdir}

# Manual control of creating and deleting keys
# "rnd" is "random" and means that a key pair is generated at build time
# and is not saved anywhere.
%define	certs_dir_rnd certs
%define	certs_signing_key_priv_rnd %{certs_dir_rnd}/signing_key_priv.key
%define	certs_signing_der %{certs_dir_rnd}/signing_key.x509
%define	certs_key_config_rnd %{certs_dir_rnd}/x509.genkey
%define	certs_public_keys %{certs_dir_rnd}/public.pem
%define	certs_verify_tmp %{certs_dir_rnd}/verify.tmp

%define	kernel_files %{_builddir}/kernel_files.list
%define	debuginfo_files %{_builddir}/debuginfo_files.list

# Append list of files generate by find-debuginfo.sh to our custom list
%global	__debug_install_post \
%{__debug_install_post} \
cat %{_builddir}/debugfiles.list >> %{debuginfo_files}

############################################################################

%if %{with binary_extra_modules}
# global instead of define to speed up things
%global nvidia_340_j %{kroko_j -p kernel-source-nvidia340 -r 340}
%global nvidia_340_n %{kroko_n -p kernel-source-nvidia340 -r 340}
%global nvidia_390_j %{kroko_j -p kernel-source-nvidia390 -r 390}
%global nvidia_390_n %{kroko_n -p kernel-source-nvidia390 -r 390}
%global nvidia_470_j %{kroko_j -p kernel-source-nvidia470 -r 470}
%global nvidia_470_n %{kroko_n -p kernel-source-nvidia470 -r 470}
%global nvidia_550_j %{kroko_j -p kernel-source-nvidia550 -r 550}
%global nvidia_550_n %{kroko_n -p kernel-source-nvidia550 -r 550}

# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
%{?!kroko_req_modules_in_kernel:%global kroko_req_modules_in_kernel(j:n:p:) %{nil}}

# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n kernel-%{kernelversion}.%{patchlevel}-%{flavour}

%endif #/binary_extra_modules

############################################################################

# Buildtime flags
%{?_without_doc: %global build_doc 0}
%{?_without_devel: %global build_devel 0}
%{?_without_debug: %global build_debug 0}
%{?_without_perf: %global build_perf 0}

%{?_with_doc: %global build_doc 1}
%{?_with_devel: %global build_devel 1}
%{?_with_debug: %global build_debug 1}
%{?_with_perf: %global build_perf 1}
%{?_with_modxz: %global build_modxz 0}

# Build defines
%define	build_doc	1
%define	build_devel	1
%define	build_debug	1

# Build kernel-headers package
%if %{mdvver} >= 202310
%define	build_headers	1
%else
%define	build_headers	0
%endif

# Build perf and cpupower tools
%define	build_perf	0

%if %{with compress_modules}
%if %{with modxz}
%define	kmod_suffix .xz
%else
%define	kmod_suffix .zst
%endif
%else
%define	kmod_suffix %{nil}
%endif

%if !%{build_debug}
# Disable debug rpms.
%define	_enable_debug_packages	%{nil}
%define	debug_package		%{nil}
%endif

# End of user definitions

# http://nickdesaulniers.github.io/blog/2018/06/02/speeding-up-linux-kernel-builds-with-ccache/
%if %{with ccache}
%define	kmake KBUILD_BUILD_TIMESTAMP='' %make CC='ccache gcc' ARCH="%{arch_type}"
%else
%define	kmake %make CC='gcc' ARCH="%{arch_type}"
%endif

# There are places where parallel make don't work
%define	smake make
%ifarch %{ix86} %{x86_64}
%define	arch_type x86
%endif
%ifarch	aarch64
%define	arch_type arm64
%endif
%ifarch	riscv64
%define	arch_type riscv
%endif

# Parallelize xargs invocations on smp machines
%define	kxargs xargs %([ -z "$RPM_BUILD_NCPUS" ] \\\
	&& RPM_BUILD_NCPUS="`/usr/bin/getconf _NPROCESSORS_ONLN`"; \\\
	[ "$RPM_BUILD_NCPUS" -gt 1 ] && echo "-P $RPM_BUILD_NCPUS")

#
# SRC RPM description
#
Summary:	The Linux kernel
Name:		kernel-%{kernelversion}.%{patchlevel}-%{flavour}
Version:	%{kversion}
Release:	%{fullrpmrel}
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://www.kernel.org

ExclusiveArch: %{x86_64} %{ix86} aarch64 riscv64

####################################################################
#
# Sources
#
Source0:	https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/linux-%{tar_ver}.tar.xz
#Source0:	https://github.com/torvalds/linux/archive/refs/tags/v6.1.tar.gz?/linux-6.1.tar.gz

# This is for disabling *config, mrproper, prepare, scripts on -devel rpms
# Needed, because otherwise the -devel won't build correctly.
#Source2:	0001-disable-mrproper-prepare-scripts-configs-in-devel-rp.patch

# TODO: Make a separate package "ksobirator" and BR it
# after testing these macros properly
Source3:	macros.ksobirator
%{load:%{SOURCE3}}

# Kernel configuration files.
Source111:	kernel-x86_64.config
Source112:	kernel-i686.config
Source113:	kernel-arm64.config
Source114:	kernel-riscv64.config

Source80:	kernel.rpmlintrc

# Additional keys that can be used to sign kernel modules
# Generated by https://abf.io/soft/kernel-keys
# Source201..206: public_key_GOST_*.pem
%{expand:%(for i in `seq 1 6`; do echo "Source$((200+${i})): public_key_GOST_${i}.pem"; done)}
# Source207..212: public_key_RSA_*.pem
%{expand:%(for i in `seq 7 12`; do echo "Source$((200+${i})): public_key_RSA_${i}.pem"; done)}

####################################################################

# Patches

# The patch to make kernel x.y.z from x.y.0.
Patch1:		https://cdn.kernel.org/pub/linux/kernel/v%{kernelversion}.x/patch-%{kversion}.xz

# ROSA-specific patches
Patch2:		kernel-5.10.93-fix-perf-build.patch
# Keep in sync with patch in r8168
Patch3:		0001-r8169-remove-devices-supported-by-r8168.patch
# Perf docs are built after all the kernels. To validate the xml files
# generated during that process, xmlto tries to get DTD files from the Net.
# If it fails, the whole build fails, which is unfortunate. Let us avoid this.
Patch101:	0001-perf-skip-xmlto-validation.patch

# http://bugs.rosalinux.ru/show_bug.cgi?id=6235
# http://bugs.rosalinux.ru/show_bug.cgi?id=6459
Patch102:	0001-audit-make-it-less-verbose.patch

%if %{with aufs}
# Patch is a diff between Source0 and  https://github.com/sfjro/aufs-linux/tree/aufs6.6.4
Patch103:	aufs-6.6.4.diff
%endif

# For kmod() generator of RPM Provides
# Changes version of aacraid.ko
Patch111:	0001-Remove-RPM-illegal-chars-from-module-version.patch

# AltHa LSM Module
# https://www.altlinux.org/AltHa
# http://git.altlinux.org/gears/k/kernel-image-un-def.git
Patch201:	0201-altha-AltHa-LSM-module.patch
Patch202:	0202-altha-Documentation-for-AltHa-LSM.patch
Patch203:	0203-altha-use-path-strings-instead-of-path-structs.patch
Patch204:	0204-altha-avoid-kernel-stack-overflow.patch
Patch205:	0205-AltHa-handle-setcap-binaries-in-the-same-way-as-setu.patch
Patch206:	0206-AltHa-add-tests.patch
Patch207:	0207-kiosk-Implement-kiosk-module.patch

# Allow to off modules signature check dynamically
Patch306:	0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch
# Off SMACK, TOMOYO and AppArmor LSM modules by default while having them enabled by CONFIG_*
Patch307:	0001-security-off-odd-LSM-by-default.patch

# Support sound on notebook Aquarius NS685U R11 (https://linux-hardware.org/?probe=339dc3db60)
Patch0401: 0401-ASoC-es8316-Use-increased-GPIO-debounce-time.patch
Patch0402: 0402-ASoC-Intel-sof_es8336-Add-more-quirks-for-Russian-ha.patch
Patch0403: 0403-ASoC-Intel-sof_es8336-Add-a-quirk-for-Aquarius-NS685.patch
# Sound-related backports from upstream
Patch0404: 0404-ASoC-es8316-Enable-support-for-S32-LE-format.patch
Patch0405: 0405-ASoC-es8316-Replace-NR_SUPPORTED_MCLK_LRCK_RATIOS-wi.patch
Patch0406: 0406-ASoC-es8316-Enable-support-for-MCLK-div-by-2.patch
Patch0407: 0407-ASoC-codecs-ES8326-Add-chip-version-flag.patch
Patch0408: 0408-ASoC-codecs-ES8326-Changing-initialisation-and-broad.patch
Patch0409: 0409-ASoC-codecs-ES8326-Changing-the-headset-detection-ti.patch
Patch0410: 0410-ASoC-codecs-ES8326-improving-crosstalk-performance.patch
Patch0411: 0411-ASoC-codecs-ES8326-Improving-the-THD-N-performance.patch
Patch0412: 0412-ASoC-codecs-ES8326-Minimize-the-pop-noise-on-headpho.patch
Patch0413: 0413-ASoC-codecs-ES8326-fix-the-capture-noise-issue.patch
Patch0414: 0414-ASoC-codecs-ES8326-Remove-executable-bit.patch
Patch0415: 0415-ASoC-es8328-Use-rounded-rate-for-es8328_set_sysclk.patch

# try to fix https://bugzilla.rosalinux.ru/show_bug.cgi?id=14371
Patch0301: 0301-IRQ-override-on-Lunnen-Ground-laptops.patch

# Support Baikal-M (aarch64)
# From https://git.altlinux.org/people/asheplyakov/packages/linux.git?p=linux.git;a=shortlog;h=refs/heads/baikalm-6.6.y
# for i in 06*; do n=$(echo $i | awk -F- '{print $1}'); echo Patch$n: $i; done
Patch0600: 0600-clk-added-Baikal-M-clock-management-unit-driver.patch
Patch0601: 0601-cpufreq-dt-don-t-load-on-Baikal-M-SoC.patch
Patch0602: 0602-serial-8250_dw-verify-clock-rate-in-dw8250_set_termi.patch
Patch0603: 0603-usb-dwc3-of-simple-added-compatible-string-for-Baika.patch
Patch0604: 0604-dw-pcie-refuse-to-load-on-Baikal-M-with-recent-firmw.patch
Patch0605: 0605-arm64-Enable-armv8-based-Baikal-M-SoC-support.patch
Patch0606: 0606-efi-rtc-avoid-calling-efi.get_time-on-Baikal-M-SoC.patch
Patch0607: 0607-pm-disable-all-sleep-states-on-Baikal-M-based-boards.patch
Patch0608: 0608-net-fwnode_get_phy_id-consider-all-compatible-string.patch
Patch0609: 0609-net-stmmac-inital-support-of-Baikal-T1-M-SoCs-GMAC.patch
Patch0610: 0610-dt-bindings-dwmac-Add-bindings-for-Baikal-T1-M-SoCs.patch
Patch0611: 0611-net-dwmac-baikal-added-compatible-strings.patch
Patch0612: 0612-Added-TF307-TF306-board-management-controller-driver.patch
Patch0613: 0613-hwmon-bt1-pvt-access-registers-via-pvt_-readl-writel.patch
Patch0614: 0614-hwmon-bt1-pvt-define-pvt_readl-pvt_writel-for-Baikal.patch
Patch0615: 0615-hwmon-bt1-pvt-adjusted-probing-for-Baikal-M-SoC.patch
Patch0616: 0616-hwmon-bt1-pvt-added-compatible-baikal-pvt.patch
Patch0617: 0617-drm-new-bridge-driver-stdp4028.patch
Patch0618: 0618-drm-added-Baikal-M-SoC-video-display-unit-driver.patch
Patch0619: 0619-drm-bridge-dw-hdmi-support-ahb-audio-hw-revision-0x2.patch
Patch0620: 0620-dt-bindings-dw-hdmi-added-ahb-audio-regshift.patch
Patch0621: 0621-drm-bridge-dw-hdmi-force-ahb-audio-register-offset-f.patch
Patch0622: 0622-drm-panfrost-forcibly-set-dma-coherent-on-Baikal-M.patch
Patch0623: 0623-drm-panfrost-disable-devfreq-on-Baikal-M.patch
Patch0624: 0624-ALSA-hda-Baikal-M-support.patch
Patch0625: 0625-PCI-pcie-baikal-driver-for-Baikal-M-with-new-firmwar.patch
Patch0626: 0626-sound-dwc-i2s-request-all-IRQs-specified-in-device-t.patch
Patch0627: 0627-sound-dwc-i2s-paper-over-RX-overrun-warnings-on-Baik.patch
Patch0628: 0628-input-added-TF307-serio-PS-2-emulator-driver.patch
Patch0629: 0629-input-new-driver-serdev-serio.patch
Patch0630: 0630-phy-realtek-leds-configuration-for-RTL8211f.patch
Patch0631: 0631-arm64-defconfig-for-Baikal-M-testing.patch
Patch0632: 0632-PCI-baikalm-switch-to-using-gpiod-API.patch
Patch0633: 0633-drm-stdp4028-switched-to-gpiod-API.patch
Patch0634: 0634-baikal_vdu-add-missing-include-linux-of.h.patch
Patch0635: 0635-snd-hda_baikal-snd_card_free-returns-void-since-Linu.patch
Patch0636: 0636-tp_bmc-catch-up-i2c-API-changes-in-Linux-6.3.patch
Patch0637: 0637-drm-stdp4028-catch-up-i2c-API-changes-in-Linux-6.3.patch
Patch0638: 0638-input-tp_serio-catch-up-i2c-API-changes-in-Linux-6.3.patch
Patch0639: 0639-drm-baikal_vdu-catch-up-drm-API-changes-in-Linux-6.5.patch
Patch0640: 0640-net-ethernet-dwmac-baikal-switched-to-remove_new.patch
Patch0641: 0641-dwmac-baikal-catch-up-Linux-6.6-dwmac-API-changes.patch
Patch0642: 0642-dwmac-baikal-switched-to-devm_stmmac_probe_config_dt.patch
Patch0643: 0643-arm64-stub-fixed-secondary-cores-boot-on-Baikal-M-So.patch

# Disable AutoReq
AutoReq:	0
# but keep autoprov for kmod(xxx)
AutoProv:	1

BuildRequires:	bash
BuildRequires:	bc
BuildRequires:	binutils
BuildRequires:	bison
BuildRequires:	bzip2
%if %{with ccache}
BuildRequires:	ccache
%endif
BuildRequires:	flex
BuildRequires:	gcc
# ./scripts/mkcompile_h
BuildRequires:	hostname
BuildRequires:	kmod-compat
BuildRequires:	sign-file
BuildRequires:	rsync
%if %{with compress_modules}
%if %{with modxz}
BuildRequires:	xz
%else
BuildRequires:	zstd
%endif
%endif
%ifarch aarch64
BuildRequires:	uboot-tools
%endif
BuildRequires:	kmod-devel
BuildRequires:	pkgconfig(libelf)
%ifarch x86_64 aarch64
BuildRequires:	numa-devel
%endif
%if %{with uml}
BuildRequires:	vde-devel
%endif
# For power tools
BuildRequires:	pkgconfig(ncurses)

# For perf
%if %{build_perf}
BuildRequires:	asciidoc
BuildRequires:	perl-ExtUtils-Embed
BuildRequires:	python3
BuildRequires:	xmlto
BuildRequires:	audit-devel
BuildRequires:	binutils-devel
BuildRequires:	elfutils-devel
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	libunwind-devel
BuildRequires:	newt-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(babeltrace)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libtraceevent)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3-setuptools
%endif

# (To generate keys)
# LibreSSL has GOST support without editing openssl.cnf
# or dlopen()-ing external library
BuildRequires:	libressl
# To verify signatures (find, xargs, hexdump)
BuildRequires:	findutils
BuildRequires:	util-linux

%if %{with binary_extra_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-source-rtl8821cu
BuildRequires:	kernel-source-rtl88x2bu
BuildRequires:	kernel-source-rtl8812au
BuildRequires:	kernel-source-rtl8821au
BuildRequires:	kernel-source-rtl8814au
BuildRequires:	kernel-source-rtk_btusb
BuildRequires:	kernel-source-rtl8188gu
BuildRequires:	kernel-source-rtl8852au
BuildRequires:	kernel-source-rtl8852bu
BuildRequires:	kernel-source-rtl8192du
BuildRequires:	kernel-source-r8168
# Broadcom-wl and nvidia contain a proprietary blob which is only for x86
%ifarch %{ix86} %{x86_64}
BuildRequires:	kernel-source-broadcom-wl
BuildRequires:	kernel-source-nvidia340
%endif
# Nvidia470+ are x86_64 only (maybe aarch64 will be also packaged later)
# nvidia390 is not buildable with kernel 6.6 on i686
%ifarch %{x86_64}
BuildRequires:	kernel-source-nvidia390
BuildRequires:	kernel-source-nvidia470
BuildRequires:	kernel-source-nvidia550
%endif
BuildRequires:	kernel-source-tripso
BuildRequires:	kernel-source-ipt-so
BuildRequires:	kernel-source-nwfermi
%if %{with binary_virtualbox_host}
BuildRequires:	kernel-source-virtualbox
%endif
BuildRequires:	kernel-source-v4l2loopback
%if %{with binary_shredder}
BuildRequires: kernel-source-shredder-kernel
%endif
# Rosa-test-suite is maintained in certified branches only nlkm, memfreetest, pcietest
%if %{with nickel}
BuildRequires:	kernel-source-rosa-test-suite
%endif
%endif
# End of with binary_extra_modules

Provides:	kernel = %{EVRD}
Provides:	kernel-%{flavour} = %{EVRD}
Provides:	kernel-abi(%{kver_full}) = %{EVRD}
# Dnf config-manager --dump | grep installonly
Provides:	installonlypkg(kernel) = %{EVRD}.image
Provides:	installonlypkg(kernel) = %{EVRD}.modules

# >= because of added support of zstd-compressed modules
Requires(posttrans):	dracut >= 053-0.git5eb736.5
Requires(posttrans):	kmod >= 28-3

# Need for rebuild dkms drivers
Recommends:	(%{name}-devel%{_isa} = %{EVRD} if dkms)
# not blob, support of devices supported by r8168 is removed from r8169
Recommends:	(%{ksob_module_pkg_name r8168} = %{EVRD} or %{ksob_module_pkg_name r8169orig} = %{EVRD})
Suggests:	%{ksob_module_pkg_name r8168} = %{EVRD}

# Usually necessary, but sometimes user may want to not install them
Recommends:	linux-firmware
Recommends:	microcode
# Set BFQ as default scheduler for HDDs
# https://www.phoronix.com/scan.php?page=article&item=linux-50hdd-io
Recommends:	udev-rules-ioschedulers
Recommends:	wireless-regdb

%if %{with flow_abi}
Requires:	kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

# XXX temporary hack to upgrade from kernel-headers 1:5.4
%if %{build_headers}
Recommends:	kernel-headers = %{EVRD}
%endif

%if %{with binary_extra_modules}
%ifarch %{ix86} %{x86_64}
%kroko_req_modules_in_kernel -j %{nvidia_340_j} -n %{nvidia_340_n} -p %{kver_full}
%endif
%ifarch %{x86_64}
%kroko_req_modules_in_kernel -j %{nvidia_390_j} -n %{nvidia_390_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_470_j} -n %{nvidia_470_n} -p %{kver_full}
%kroko_req_modules_in_kernel -j %{nvidia_550_j} -n %{nvidia_550_n} -p %{kver_full}
%endif
%endif

%description
The kernel package contains the Linux kernel (vmlinuz), the core of your
operating system. The kernel handles the basic functions
of the operating system: memory allocation, process allocation, device
input and output, etc. This is a general-purpose kernel.

%posttrans
# update information about modules, useful if kernel-module* packages were
# installed in one transaction with this kernel (%%transfiletrigger* will run later)
depmod -a %{kver_full}
# We always regenerate initrd here, even if it already exists. This may
# happen if kernel-<...>-devel is installed first, triggers rebuild of
# DKMS modules and some of these request remaking of initrd. The initrd
# that is created then will be non-functional. But when the user installs
# kernel-<...> package, that defunct initrd will be replaced with a working
# one here.
dracut -f %{initrd_path} %{kver_full}

# File triggers from grub packages will handle this.
#/usr/sbin/update-grub2

%transfiletriggerin -- %{_modulesdir}/%{kver_full}
# Detect all modules, including ones inside kernel-module* packages
if grep -qE '/.*\.ko(|\..*)' ; then
	depmod -a %{kver_full}
fi

%transfiletriggerpostun -- %{_modulesdir}/%{kver_full}
# Handle e.g. removal of kernel-module* packages
# List of files is not available here (?)
depmod -a %{kver_full}

%files -f %{kernel_files}
%{_bootdir}/System.map-%{kver_full}
%{_bootdir}/symvers-%{kver_full}.*
%{_bootdir}/config-%{kver_full}
%{_bootdir}/vmlinuz-%{kver_full}
%ghost %{initrd_path}
%ifarch %{armx}
%{_bootdir}/dtb-%{kver_full}
%endif
%{_modulesdir}/%{kver_full}/modules.*
%if %{with flow_abi}
%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
%if %{with binary_extra_modules}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821cu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/88x2bu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8812au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8821au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8814au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/bluetooth/rtk_btusb.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8188gu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8852au.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8852bu.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/8192du.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/net/ethernet/realtek/r8168.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/net/ethernet/realtek/r8169orig.ko%{kmod_suffix}
%ifarch %{ix86} %{x86_64}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/wireless/wl.ko%{kmod_suffix}
%endif
%if %{with binary_shredder}
%exclude %{_modulesdir}/%{kver_full}/kernel/extra/shredder-kernel.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/drivers/media/v4l2loopback.ko%{kmod_suffix}
%if %{with binary_virtualbox_host}
# vbox host modules may be built here (vboxnetflt vboxnetadp vboxdrv vboxpci)
# vbox guest modules are in the mainline kernel now (vboxvideo vboxguest vboxsf)
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/vbox*.ko%{kmod_suffix}
%endif
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_TRIPSO.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/net/xt_so.ko%{kmod_suffix}
%if %{with nickel}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/nlkm.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/memfreetest.ko%{kmod_suffix}
%exclude %{_modulesdir}/%{kver_full}/kernel/misc/pcietest.ko%{kmod_suffix}
%endif
%endif
# End of with binary_extra_modules

############################################################################

%if %{build_devel}
%package devel
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	glibc-devel
Requires:	ncurses-devel
Requires:	gcc
Requires:	make
Requires:	perl
Requires:	%{name} = %{EVRD}
Provides:	kernel-devel = %{kverrel}
Provides:	kernel-%{flavour}-devel = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.devel

# Have dkms updated/installed before the kernel, scriptlet here checks if dkms exists
OrderWithRequires(post):	dkms
# Try to remove the main kernel package after removing this devel package
# because there may be dkms-built kernel modules inside directories owned
# by the main package, try to get rid of such files before RPM starts to
# deal with directories owned in the main package
# (note that the devel package does not explicitly require the main package,
# there is no need to do so, a kernel module may be built using just the devel part).
OrderWithRequires(postun): %{name} = %{EVRD}

%ifarch %{ix86}
Conflicts:	arch(x86_64)
%endif

%description devel
This package contains the kernel files (headers and build tools) that should
be enough to build additional drivers for use with %{name}.


%post devel
if command -v dkms_autoinstaller >/dev/null 2>&1; then
	dkms_autoinstaller start %{kver_full}
fi


%preun devel
# If any DKMS modules with REMAKE_INITRD=yes in their configs have been
# uninstalled, initrd has been regenerated for the given kernel. However,
# the kernel itself might have been uninstalled before, so that (defunct)
# initrd image files would be left behind. Remove them if the kernel itself
# is no longer installed. Should work if they are uninstalled in parallel
# too.
if ! test -f /boot/vmlinuz-%{kver_full}; then
	rm -f /boot/initrd-%{kver_full}.img
	rm -f /boot/initrd-%{kver_full}_old.img
fi

if ! command -v dkms >/dev/null 2>&1; then exit 0; fi

for ii in $(/usr/sbin/dkms status -k %{kver_full} | awk '{ print $1 $2; }'); do
	mod=$(echo $ii | awk -v FS=',' '{ print $1; }')
	ver=$(echo $ii | awk -v FS=',' '{ print $2; }')
	/usr/sbin/dkms --rpm_safe_upgrade uninstall -m $mod -v $ver -k %{kver_full} || :
done


%files devel
%{devel_root}
%{_modulesdir}/%{kver_full}/build
%{_modulesdir}/%{kver_full}/source
%endif
# End of build_devel

############################################################################

%if %{build_debug}
%package debuginfo
Summary:	Debuginfo for %{name}
Group:		Development/Debug
Provides:	kernel-debug = %{kverrel}
AutoReq:	0
AutoProv:	0

%description debuginfo
This package contains the files with debuginfo for %{name}.

%files debuginfo -f %{debuginfo_files}
%{_bootdir}/vmlinux-%{kver_full}
%endif
# End of build_debug

############################################################################

%if %{build_doc}
%package doc
Summary:	Various documentation bits found in the kernel source
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files from the kernel source.

%files doc
%doc linux-%{tar_ver}/Documentation/*
%endif

############################################################################

%if %{build_perf}
%package -n perf
Summary:	perf tool and the supporting documentation
Group:		System/Kernel and hardware

%description -n perf
The package contains perf tool and the supporting documentation.

%files -n perf
%{_bindir}/perf
%ifarch %{x86_64}
%{_bindir}/perf-read-vdso32
%endif
%{_bindir}/trace
%{_includedir}/perf/perf_dlfilter.h
%dir %{_libexecdir}/perf-core
%{_libdir}/libperf-jvmti.so
%{_libexecdir}/perf-core/*
%{_mandir}/man[1-8]/perf*
%{_sysconfdir}/bash_completion.d/perf
%{_datadir}/perf-core/strace/groups/*
%{_datadir}/doc/perf-tip/*.txt
%endif

############################################################################

%if %{build_headers}
%package -n kernel-headers
Summary:	Linux kernel header files mostly used by your C library
Group:		System/Kernel and hardware
Provides:	linux-userspace-headers = %{EVRD}
Provides:	kernel-release-headers = %{EVRD}

%description -n kernel-headers
C header files from the Linux kernel. The header files define
structures and constants that are needed for building most
standard programs, notably the C library.

This package is not suitable for building kernel modules, you
should use the 'kernel-devel' package instead.

%files -n kernel-headers
%{_includedir}/*
%if %{build_perf}
%exclude %{_includedir}/perf/perf_dlfilter.h
%endif
%endif

############################################################################

%if %{with uml}
%package uml
Summary:	User Mode Linux binary
Group:		System/Kernel and hardware
Provides:	kernel-uml = %{kverrel}
Provides:	kernel-uml-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel) = %{EVRD}.uml

%description uml
User Mode Linux binary.
Stripped, debug is in %{name}-debuginfo.

%files uml
%{_bindir}/linux-uml-%{kver_full}

#-----------------------------------------------------------------------------

%package uml-modules
Summary:	User Mode Linux (UML) kernel modules
Group:		System/Kernel and hardware
Provides:	kernel-uml-modules = %{kverrel}
Provides:	kernel-uml-modules-%{flavour} = %{kverrel}
Provides:	installonlypkg(kernel-module) = %{EVRD}.uml

%description uml-modules
User Mode Linux (UML) kernel modules:
- not compressed;
- not stripped;
- signed.

%files uml-modules
%{_modulesdir}-uml/%{kver_full}

%endif
# End of uml

#-----------------------------------------------------------------------------

###############################
# Extra modules package definitions

%if %{with binary_extra_modules}
%ksob_mk_module_pkg -n 8821cu -s net/wireless
# add "-r rtl88x2bu-blacklist" in 5.18+!!!
%ksob_mk_module_pkg -n 88x2bu -s net/wireless
# "-r xxx-blacklist" was not added for modules bellow because
# blacklisted modules have not appeared in upstream yet
%ksob_mk_module_pkg -n 8812au -s net/wireless
# for RTL8811AU and RTL8821AU
%ksob_mk_module_pkg -n 8821au -s net/wireless
%ksob_mk_module_pkg -n 8814au -s net/wireless
%ksob_mk_module_pkg -n rtk_btusb -s drivers/bluetooth -r rtk_btusb-firmware
%ksob_mk_module_pkg -n 8188gu -s net/wireless
%ksob_mk_module_pkg -n 8852au -s net/wireless
%ksob_mk_module_pkg -n 8852bu -s net/wireless
%ksob_mk_module_pkg -n 8192du -s net/wireless
%ksob_mk_module_pkg -n r8168 -s drivers/net/ethernet/realtek
# r8169orig-blacklist backlists both r8168 and r8169 and is built from SRPM r8168
%ksob_mk_module_pkg -n r8169orig -s drivers/net/ethernet/realtek -r r8169orig-blacklist

%ifarch %{ix86} %{x86_64}
%ksob_mk_module_pkg -n wl -s net/wireless -r broadcom-wl-aliases
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_340_j} -n %{nvidia_340_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%endif
%ifarch %{x86_64}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_390_j} -n %{nvidia_390_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_470_j} -n %{nvidia_470_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix}
%kroko_kmod_pkg -r %{kroko_release} -j %{nvidia_550_j} -n %{nvidia_550_n} -f %{flavour} -k %{kernelversion}.%{patchlevel} -m %{sublevel} -p %{kver_full} -s %{NAME} -c %{kmod_suffix} -o %{quote:510 515 520 525}
%endif
%ksob_mk_module_pkg -n xt_TRIPSO -s net -r tripso
%ksob_mk_module_pkg -n xt_so -s net -r ipt-so
%ksob_mk_module_pkg -n nwfermi -s drivers/input
%ksob_mk_module_pkg -n v4l2loopback -s drivers/media -r v4l2loopback

%if %{with binary_shredder}
%ksob_mk_module_pkg -n shredder-kernel -s extra -r rosa-shredder-user
%endif

#-----------------------------------------------------------------------------

###############
# Virtualbox host

%if %{with binary_virtualbox_host}
%ksob_mk_module_pkg -n vboxnetflt -s misc
%ksob_mk_module_pkg -n vboxnetadp -s misc
%ksob_mk_module_pkg -n vboxdrv -s misc
%ksob_mk_module_pkg -n vboxpci -s misc

# A package which will pull all those modules
%package -n kernel-modules-virtualbox-host-%{ksob_kernel}
Summary:	Meta package to pull VirtualBox host kernel modules for kernel-%{flavour}-%{kernelversion}.%{patchlevel}
Group:		System/Kernel and hardware
Requires:	%ksob_module_pkg_name vboxnetflt
Requires:	%ksob_module_pkg_name vboxnetadp
Requires:	%ksob_module_pkg_name vboxdrv
Requires:	%ksob_module_pkg_name vboxpci

%description -n kernel-modules-virtualbox-host-%{ksob_kernel}
Meta package to pull VirtualBox host kernel modules for %{name}.

%files -n kernel-modules-virtualbox-host-%{ksob_kernel}
# empty
%endif
#End of ifarch x86

#-----------------------------------------------------------------------------

%if %{with nickel}
%ksob_mk_module_pkg -n nlkm -s misc
%ksob_mk_module_pkg -n memfreetest -s misc
%ksob_mk_module_pkg -n pcietest -s misc
%endif

%endif
# End of binary_extra_modules

#################################################################

%if %{with flow_abi}
%package -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
Summary:	Directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x
Group:		System/Kernel and hardware

%description -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
This package contains a directory to install third-party binary kernel modules for kernels %{kernelversion}.%{patchlevel}.x.
Some vendors provide binary-only kernel modules. They can put them into %{_modulesdir}/%{kernelversion}.%{patchlevel}-rosa-flow-abi.
kmod tools will find them for kernels 5.4.x of "generic" and "nickel" flavours
but there is no guarantee that these modules will load and work correctly on
newer or older kernels then the ones they were build against.

We call this "flow ABI" because most ABIs are not changed between %{kernelversion}.%{patchlevel}.x releases,
but there are no specific guarantees. ABI may evolve and change.
We highly recommend to use DKMS and build third-party kernel modules from source for every kernel!
This package does nothing, just owns a directory for third-party binary kernel modules.

%files -n kernel-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%{_modulesdir}/%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif
# End of flow_abi

################################################

%prep
# Avoid accidental merge
%if 0%{?rpm5}
%{error:Package structure is for dnf, not for urpmi!}
%endif

%setup -q -n %{top_dir_name} -c

%if %{with uml}
cp -r %{src_dir} %{src_dir}.uml
%endif
cd %{src_dir}

%autopatch -p1 
grep -Irl /lib/modules | xargs sed -i -e 's,/lib/modules,%{_modulesdir},g' -e 's,/usr/usr/lib/modules,/usr/lib/modules,g'

# ensure that not another patch got number 3
grep -q 8168 %{PATCH3}
grep -q r8169 %{PATCH3}
%if %{with binary_extra_modules}
cp -rv drivers/net/ethernet/realtek drivers/net/ethernet/realtek.bak
sed -e 's,drivers/net/ethernet/realtek,drivers/net/ethernet/realtek.bak,g' %{PATCH3} > new3.patch
patch -p1 -R < new3.patch
%else
%patch3 -p1 -R
%endif

#
# Setup Begin
#

##################################
# Kernel configuration

echo "Creating the kernel configuration file."

# Configs
cp %{SOURCE111} .
cp %{SOURCE112} .
cp %{SOURCE113} .
cp %{SOURCE114} .
cp kernel-%{arch_suffix}.config .config

touch %{build_dir}/.config.append

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' -delete
# Wipe all .gitignore/.get_maintainer.ignore files
find . -name "*.g*ignore" -delete

# adapt for non-usr-moved platforms
%if %{without fail}
%if %{mdvver} < 202310
sed -i -e 's,/usr/sbin/,/sbin/,g' .config
%endif
%endif

# Disable debug info if requested (enabled by default)
%if ! %build_debug
sed -i -e '/CONFIG_DEBUG_INFO/d' -e '/CONFIG_GDB_SCRIPTS/d' .config
echo '# CONFIG_DEBUG_INFO is not set' >> %{build_dir}/.config.append
echo '# CONFIG_GDB_SCRIPTS is not set' >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_FORCE/d' .config
%if %{with oblig_signed_modules}
# Disallow loading not signed modules
# But 0001-ROSA-ima-allow-to-off-modules-signature-check-dynami.patch allows to override this in cmdline
echo CONFIG_MODULE_SIG_FORCE=y >> %{build_dir}/.config.append
%else
echo CONFIG_MODULE_SIG_FORCE=n >> %{build_dir}/.config.append
%endif

sed -i '/CONFIG_MODULE_SIG_KEY/d' .config
# Set path to the key that will be generated later by openssl/libressl
echo CONFIG_MODULE_SIG_KEY=\"%{certs_signing_key_priv_rnd}\" >> %{build_dir}/.config.append

# Set path to one PEM file with all keys that the kernel must trust
sed -i '/CONFIG_SYSTEM_TRUSTED_KEYS/d' .config
echo CONFIG_SYSTEM_TRUSTED_KEYS=\"%{certs_public_keys}\" >> %{build_dir}/.config.append

# Memory wiping
# Introduced in kernel 5.3 by commit 6471384af2a6530696fc0203bafe4de41a23c9ef
# Estimated performance impact is described in the commit
# "Fill newly allocated pages and heap objects with zeroes."
# To enable, add to cmdline: init_on_alloc=1
sed -i '/CONFIG_INIT_ON_ALLOC_DEFAULT_ON/d' .config
echo CONFIG_INIT_ON_ALLOC_DEFAULT_ON=n >> %{build_dir}/.config.append
# "Fill freed pages and heap objects with zeroes"
# To disable, add to cmdline: init_on_free=0
sed -i '/CONFIG_INIT_ON_FREE_DEFAULT_ON/d' .config
%if %{with nickel}
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=y >> %{build_dir}/.config.append
%else
echo CONFIG_INIT_ON_FREE_DEFAULT_ON=n >> %{build_dir}/.config.append
%endif
# Here enabling only either only init_on_free or only init_on_alloc
# makes sense; init_on_alloc is not about protecting information.

# To load kernel keyring in UML
for i in STREEBOG SHA1 SHA256 SHA512 ECRDSA RSA ; do
	if ! grep -q "^CONFIG_CRYPTO_${i}=y$" .config; then
		sed -i "/CONFIG_CRYPTO_${i}/d" .config
		echo "CONFIG_CRYPTO_${i}=y" >> %{build_dir}/.config.append
	fi
done

cat %{build_dir}/.config.append >> .config

##################
# End of kernel config


# Store the config file in the appropriate directory.
CONFIG_DIR=arch/%{arch_type}/configs
mkdir -p "${CONFIG_DIR}"

cfg_file=arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour}

make ARCH=%{arch_type} oldconfig
# When it is needed to edit kernel configs, run:
# abf fetch
# rpmbuild --define "_sourcedir $PWD" --with=fail -bb kernel.spec
# and then work with the config in the buildroot with applied patches etc.
%{?_with_fail:exit 1}
mv .config ${cfg_file}
echo "Created ${cfg_file}."

# Make sure that package version matches the reality
test "$(grep '^VERSION =' Makefile | awk '{print $NF}')" = %{kernelversion}
test "$(grep '^PATCHLEVEL =' Makefile | awk '{print $NF}')" = %{patchlevel}
test "$(grep '^SUBLEVEL =' Makefile | awk '{print $NF}')" = %{sublevel}

# Get rid of unwanted files
find . -name '*~' -o -name '*.orig' -o -name '*.append' | %kxargs rm -f
find . -name '.get_maintainer.ignore' | %kxargs rm -f

# Versionize python shebang (#!/usr/bin/env python -> #!/usr/bin/python3) in scripts
grep -Irl '^#!/usr/bin/env python' | xargs sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},'

# Drop env from bash scripts
sed -i '1 s,^#!.*env .*,#!%{_bindir}/bash,' scripts/config

# Drop env from perl scripts
grep -IrlE '^#!.*env perl' | xargs sed -i -e '1 s,^#!/usr/bin/env perl$,#!{_bindir}/perl,'

############################################################################

%build
# Ensure that build time generated private keys don't get published
# as e.g. "RPM build root" on ABF!
# Note that ABF sends SIGKILL to rpm-build.sh when the build is terminated;
# in this case trap will not work, but RPM build root also will not be
# saved because rpm-build.sh saves it, but it is SIGKILLed.
# For best security we could store private keys in RAM (not reachable from
# filesystem, so not in /tmp!) and override sth like fopen() by LD_PRELOAD
# to give the content of keys from RAM when a virtual address of a key file
# is accessed, but currently I don't know how to implement this (TODO: ).
_cleanup(){
# Show resulting kernel public keys for debugging
	cat "%{src_dir}/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}/%{certs_dir_rnd}"
%if %{with uml}
	cat "%{src_dir}.uml/%{certs_dir_rnd}/x509_certificate_list" | base64 -d || :
	rm -fvr "%{src_dir}.uml/%{certs_dir_rnd}"
%endif
}
# Make a trap to delete keys even if %%build fails in the middle
trap "_cleanup" EXIT

rm -rf %{temp_root}
install -d %{temp_root}

cd %{src_dir}

### Keys for signing kernel modules
# Keys can be generated both manually and automatically,
# let's generate them by ourselves to take full control of the process
# https://www.ibm.com/support/knowledgecenter/en/SSB23S_1.1.0.13/gtps7/cfgcert.html
# See also certs/Makefile in kernel source
mkdir -p "%{certs_dir_rnd}"

# On ABF, %%packager == $username <$email>
# Try to extract email from %%packager if it is set
_get_email(){
	# Check that macro %%packager was set and is not empty
	if echo '%{packager}' | grep -q 'packager}$' || [ -z "%{packager}" ]
		# If was not set or is empty, use default email
		then echo 'rpmbuild@rosa.unknown' && return
		# Otherwise try to extract email from 'name <email>' or sth else
		else temp="$(echo '%{packager}' | tr '[:upper:]' '[:lower:]' | tr ' ' '\n' | tr -d '<>' | grep -E '@.*\..*' | head -n 1)"
	fi
	# Validate that what we have now is a valid email
	# https://stackoverflow.com/a/2138832, https://stackoverflow.com/a/41192733
	# Note that we set %%_buildshell to /bin/bash to guarantee the work of this bashism
	regex_email="^[a-z0-9!#\$%&'*+/=?^_\`{|}~-]+(\.[a-z0-9!#$%&'*+/=?^_\`{|}~-]+)*@([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z0-9]([a-z0-9-]*[a-z0-9])?\$"
	if [[ "$temp" =~ ${regex_email} ]]
		# If it is, use it
		then echo "$temp" && return
		# Otherwise use default email
		else echo 'rpmbuild@rosa.unknown' && return
	fi
	# If script above has not return'ed for any reason,
	# e.g. because of non-bash shell being not able to
	# process regexp, use default email
	echo 'rpmbuild@rosa.unknown'
}
email="$(_get_email)"

cat <<EOF > "%{certs_key_config_rnd}"
[ req ]
prompt = no
string_mask = utf8only
#default_keyfile = %%{certs_signing_key_priv_rnd}
distinguished_name = req_distinguished_name
x509_extensions = myexts
[ req_distinguished_name ]
organizationName = %{vendor} rpmbuild
commonName = Build time autogenerated @ALGO@ kernel key
emailAddress = ${email}
[ myexts ]
basicConstraints=critical,CA:FALSE
keyUsage=digitalSignature
subjectKeyIdentifier=hash
authorityKeyIdentifier=keyid
EOF
cat "%{certs_key_config_rnd}"
sed -e 's,@ALGO@,RSA,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.RSA"
sed -e 's,@ALGO@,GOST R 34.10-2012,g' "%{certs_key_config_rnd}" > "%{certs_key_config_rnd}.GOST"
# Avoid using the template
rm -f "%{certs_key_config_rnd}"

_libressl_gen_key(){
	if [ "$GOST_KEY" = 1 ]
	then
		lssl_req_gost_args="\
			-newkey gost2001 \
			-pkeyopt dgst:streebog512 -pkeyopt paramset:A \
			-streebog512"
		OUT="%{certs_signing_key_priv_rnd}.GOST"
		CONFIG="%{certs_key_config_rnd}.GOST"
	else
		lssl_req_gost_args=""
		OUT="%{certs_signing_key_priv_rnd}.RSA"
		CONFIG="%{certs_key_config_rnd}.RSA"
	fi
		libressl req -new -nodes -utf8 -batch \
			$lssl_req_gost_args \
			-days 109500 \
			-x509 -config "$CONFIG" \
			-out "$OUT" \
			-keyout "$OUT"

	# Verify
	if [ "$GOST_KEY" = 1 ]; then
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
		libressl x509 -in "%{certs_signing_key_priv_rnd}.GOST" -text -noout \
			| grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
	fi
}

GOST_KEY=0 _libressl_gen_key
GOST_KEY=1 _libressl_gen_key
# Fake CONFIG_MODULE_SIG_KEY to make build scripts happy
cp -v "%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}"

# Strip public parts from the generated PEMs
sed -n \
	'/^-----BEGIN CERTIFICATE-----$/,/^-----END CERTIFICATE-----$/p' \
	"%{certs_signing_key_priv_rnd}.GOST" \
	"%{certs_signing_key_priv_rnd}.RSA" \
	> "%{certs_public_keys}"

%if %{with additional_keys}
# Add additional public RSA keys to the list of trusted keys for kernel modules
# Build kernel --without additional_keys if you do not want to trust them
cat %{expand:%(for i in `seq 1 12`; do echo "%%SOURCE$((200+${i}))" | tr "\n" " "; done)} \
	>> "%{certs_public_keys}"
%endif
# End of additional_keys
cat %{certs_public_keys}

# .config
%smake -s mrproper
cp arch/%{arch_type}/configs/%{arch_suffix}_defconfig-%{flavour} .config

# Make sure EXTRAVERSION says what we want it to say
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{flavour}-%{buildrpmrel}/" Makefile

# Build the kernel
echo "Building kernel %{kver_full}"

TARGETS="all"
# need to install dtbs to proper boot arm64 devices
%ifarch %{armx}
	TARGETS="$TARGETS dtbs"
%endif

%kmake V=1 -s $TARGETS

# Install modules
mkdir -p %{temp_modules}/%{kver_full}
%smake INSTALL_MOD_PATH=%{temp_root} KERNELRELEASE=%{kver_full} modules_install

%if %{with binary_extra_modules}
# Build and install procedure is specific to each Makefile from kernel-source-* packages
# See also: https://www.kernel.org/doc/html/latest/kbuild/modules.html
# Copy directory because write permissions are required
# `make modules_install` must be done before this, otherwise these copied files will be deleted

# $1: name of kernel module
# $2: directory (e.g.: kernel/net/wireless)
_build_rtl(){
	cp -r "$(rpm -q --qf "/usr/src/rtl${1}-%%{VERSION}-%%{RELEASE}" kernel-source-rtl${1})" kernel-source-rtl${1}
	pushd kernel-source-rtl${1}
	%kmake KSRC=%{src_dir} M="$PWD"
	mkdir -p %{temp_modules}/%{kver_full}/${2}
	cp ${1}.ko %{temp_modules}/%{kver_full}/${2}
	popd
	rm -fr kernel-source-rtl${1}
}

_build_rtl 8821cu kernel/net/wireless
_build_rtl 88x2bu kernel/net/wireless
_build_rtl 8812au kernel/net/wireless
_build_rtl 8821au kernel/net/wireless
_build_rtl 8821au kernel/net/wireless
_build_rtl 8814au kernel/net/wireless
_build_rtl 8188gu kernel/net/wireless
_build_rtl 8852au kernel/net/wireless
_build_rtl 8852bu kernel/net/wireless
_build_rtl 8192du kernel/net/wireless

cp -r "$(rpm -q --qf "/usr/src/r8168-%%{VERSION}-%%{RELEASE}" kernel-source-r8168)" kernel-source-r8168
pushd kernel-source-r8168
%kmake -C %{src_dir} KERNELRELEASE=%{kver_full} KERNELDIR=%{src_dir} M="$PWD" modules
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/net/ethernet/realtek
cp r8168.ko %{temp_modules}/%{kver_full}/kernel/drivers/net/ethernet/realtek
popd
rm -fr kernel-source-r8168

pushd drivers/net/ethernet/realtek.bak
cat > Makefile << 'EOF'
r8169orig-objs += r8169_main.o r8169_firmware.o r8169_phy_config.o
obj-m += r8169orig.o
EOF
make -C %{src_dir} M="$PWD" modules
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/net/ethernet/realtek
cp r8169orig.ko %{temp_modules}/%{kver_full}/kernel/drivers/net/ethernet/realtek
popd

cp -r "$(rpm -q --qf '/usr/src/rtk_btusb-%%{VERSION}-%%{RELEASE}' kernel-source-rtk_btusb)" kernel-source-rtk_btusb
pushd kernel-source-rtk_btusb
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/bluetooth/
cp rtk_btusb.ko %{temp_modules}/%{kver_full}/kernel/drivers/bluetooth/rtk_btusb.ko
popd
rm -fr kernel-source-rtk_btusb

_build_nvidia(){
	cp -r "$(rpm -q --qf "/usr/src/nvidia${1}-%%{VERSION}-%%{RELEASE}" kernel-source-nvidia${1})" kernel-source-nvidia${1}
	pushd kernel-source-nvidia${1}
	%make SYSSRC=%{src_dir}
	mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}.%{kroko_release}
	for i in *.ko
	do
		# put them here to extract debug and compress, will be moved later
		install -m0644 "$i" %{temp_modules}/%{kver_full}/kernel/drivers/video/nvidia${1}.%{kroko_release}/"$i"
	done
	popd
	rm -fr kernel-source-nvidia${1}
	# for rosa-kernel-tools
	mkdir -p %{temp_root}/var/spool/initramfs-regen
	touch %{temp_root}/var/spool/initramfs-regen/nvidia${1}.%{kroko_release}
}

%ifarch %{ix86} %{x86_64}
cp -r "$(rpm -q --qf '/usr/src/broadcom-wl-%%{VERSION}-%%{RELEASE}' kernel-source-broadcom-wl)" kernel-source-broadcom-wl
pushd kernel-source-broadcom-wl
%kmake -C %{src_dir} M="$PWD"
mkdir -p %{temp_modules}/%{kver_full}/kernel/net/wireless/
cp wl.ko %{temp_modules}/%{kver_full}/kernel/net/wireless/wl.ko
popd
rm -fr kernel-source-broadcom-wl

_build_nvidia 340
%endif

%ifarch %{x86_64}
_build_nvidia 390
_build_nvidia 470
_build_nvidia 550
%endif

cp -r "$(rpm -q --qf '/usr/src/tripso-%%{VERSION}-%%{RELEASE}' kernel-source-tripso)" kernel-source-tripso
pushd kernel-source-tripso
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_TRIPSO.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-tripso

cp -r "$(rpm -q --qf '/usr/src/ipt-so-%%{VERSION}-%%{RELEASE}' kernel-source-ipt-so)" kernel-source-ipt-so
pushd kernel-source-ipt-so
%kmake KDIR=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/net
cp xt_so.ko %{temp_modules}/%{kver_full}/kernel/net/
popd
rm -fr kernel-source-ipt-so

cp -r "$(rpm -q --qf '/usr/src/nwfermi-%%{VERSION}-%%{RELEASE}' kernel-source-nwfermi)" kernel-source-nwfermi
pushd kernel-source-nwfermi
#%%kmake KERNEL_SOURCE=%{src_dir}
make -C %{src_dir} M="$PWD" modules
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/input
cp nwfermi.ko %{temp_modules}/%{kver_full}/kernel/drivers/input/
popd
rm -fr kernel-source-nwfermi

%if %{with binary_shredder}
cp -r "$(rpm -q --qf '/usr/src/shredder-kernel-%%{VERSION}-%%{RELEASE}' kernel-source-shredder-kernel)" kernel-source-shredder-kernel
pushd kernel-source-shredder-kernel
%kmake KERNEL_PATH=%{src_dir}
mkdir -p %{temp_modules}/%{kver_full}/kernel/extra/
cp shredder-kernel.ko %{temp_modules}/%{kver_full}/kernel/extra/
popd
rm -fr kernel-source-shredder-kernel
%endif

%if %{with binary_virtualbox_host}
# build commands for virtualbox are based on the ones from the virtualbox package
cp -r "$(rpm -q --qf '/usr/src/virtualbox-%%{VERSION}-%%{RELEASE}' kernel-source-virtualbox)" kernel-source-virtualbox
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
pushd kernel-source-virtualbox
make -C vboxdrv KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxdrv/Module.symvers vboxnetflt
cp -fv vboxdrv/Module.symvers vboxnetadp
make -C vboxnetflt KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
make -C vboxnetadp KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
cp -fv vboxnetadp/Module.symvers vboxpci/
make -C vboxpci KERN_DIR=%{src_dir} KERN_VER=%{kver_full}
for i in vboxnetflt vboxnetadp vboxdrv vboxpci
do
	cp -v "${i}/${i}.ko" %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif

cp -r "$(rpm -q --qf '/usr/src/v4l2loopback-%%{VERSION}-%%{RELEASE}' kernel-source-v4l2loopback)" kernel-source-v4l2loopback
pushd kernel-source-v4l2loopback
cat Kbuild > Makefile
mkdir -p %{temp_modules}/%{kver_full}/kernel/drivers/media
make -C %{src_dir} M="$PWD" modules
cp v4l2loopback.ko %{temp_modules}/%{kver_full}/kernel/drivers/media
pushd
rm -fr kernel-source-v4l2loopback

%if %{with nickel}
# rosa-test-suite uses /sr/src/xxx-version, not /usr/src/xxx-version-release
cp -r "$(rpm -q --qf '/usr/src/rosa-test-suite-%%{VERSION}' kernel-source-rosa-test-suite)" kernel-source-rosa-test-suite
pushd kernel-source-rosa-test-suite
mkdir -p %{temp_modules}/%{kver_full}/kernel/misc/
for i in nlkm memfreetest pcietest
do
cat << EOF > Makefile
obj-m := ${i}.o
all:
	make -C %{src_dir} M=\$(PWD) modules
EOF
%kmake
cp -fv ${i}.ko %{temp_modules}/%{kver_full}/kernel/misc/
done
popd
%endif
# End with nickel <- with binary_extra_modules

%endif
# End with binary_extra_modules

%if %{with uml}
cp -rv %{certs_dir_rnd} %{src_dir}.uml/
pushd %{src_dir}.uml
%kmake ARCH=um defconfig
%kmake ARCH=um linux
install -Dm0755 linux %{temp_root}%{_bindir}/linux-uml-%{kver_full}
#rm -fv linux
%kmake V=1 ARCH=um modules
mkdir -p %{temp_root}%{_modulesdir}-uml/%{kver_full}/
%kmake ARCH=um INSTALL_MOD_PATH=%{temp_root}%{_modulesdir}-uml/%{kver_full}/ modules_install
popd
%endif

install -d %{temp_boot}
install -m 644 System.map %{temp_boot}/System.map-%{kver_full}
install -m 644 .config %{temp_boot}/config-%{kver_full}
%if %{with modxz}
xz -c Module.symvers > %{temp_boot}/symvers-%{kver_full}.xz
%else
%{zstd_cmd} Module.symvers
install -m 644 Module.symvers.zst %{temp_boot}/symvers-%{kver_full}.zst
%endif

%ifarch %{armx}
%make_build ARCH=%{arch_type} V=1 INSTALL_DTBS_PATH=%{temp_boot}/dtb-%{kver_full} dtbs_install
%endif

%ifarch aarch64 riscv64
	cp -f arch/%{arch_type}/boot/Image* %{temp_boot}/vmlinuz-%{kver_full}
%else
	cp -f arch/%{arch_type}/boot/bzImage %{temp_boot}/vmlinuz-%{kver_full}
%endif

# Headers
%if %{build_headers}
%make INSTALL_HDR_PATH=%{temp_root}%{_prefix} KERNELRELEASE=%{kver_full} headers_install
find %{temp_root}%{_prefix} -name .install -or -name ..install.cmd | %kxargs rm -f
%endif

# Remove /lib/firmware, we use a separate linux-firmware package
rm -rf %{temp_root}/lib/firmware

# Prepare the files for kernel*-devel
%if %{build_devel}

mkdir -p %{temp_devel_root}
for i in $(find . -name 'Makefile*'); do cp -R --parents $i %{temp_devel_root}; done
for i in $(find . -name 'Kconfig*' -o -name 'Kbuild*'); do cp -R --parents $i %{temp_devel_root}; done

cp -fR include %{temp_devel_root}

cp -fR scripts %{temp_devel_root}
cp -fR kernel/bounds.c %{temp_devel_root}/kernel
cp -fR kernel/time/timeconst.bc %{temp_devel_root}/kernel/time
cp -fR tools %{temp_devel_root}/
cp -fR arch/%{arch_type}/kernel/asm-offsets.{c,s} %{temp_devel_root}/arch/%{arch_type}/kernel/
%ifarch %{ix86} %{x86_64}
cp -fR arch/%{arch_type}/kernel/asm-offsets_{32,64}.c %{temp_devel_root}/arch/%{arch_type}/kernel/
cp -fR arch/%{arch_type}/purgatory/* %{temp_devel_root}/arch/%{arch_type}/purgatory/
# Needed for arch/x86/purgatory
cp -fR lib/*.h lib/*.c %{temp_devel_root}/lib/
cp -fR arch/%{arch_type}/entry/syscalls/syscall* %{temp_devel_root}/arch/%{arch_type}/entry/syscalls/
cp -fR arch/%{arch_type}/tools %{temp_devel_root}/arch/%{arch_type}/
# needed for kexec
cp -fR arch/%{arch_type}/boot/*.h %{temp_devel_root}/arch/%{arch_type}/boot/
cp -fR arch/%{arch_type}/boot/*.c %{temp_devel_root}/arch/%{arch_type}/boot/
%endif
cp -fR arch/%{arch_type}/include %{temp_devel_root}/arch/%{arch_type}/
cp -fR .config Module.symvers %{temp_devel_root}

# Needed for truecrypt build (Danny)
cp -fR drivers/md/dm.h %{temp_devel_root}/drivers/md/

# Needed for lirc_gpio (#39004)
cp -fR drivers/media/pci/bt8xx/bttv{,p}.h %{temp_devel_root}/drivers/media/pci/bt8xx/
cp -fR drivers/media/pci/bt8xx/bt848.h %{temp_devel_root}/drivers/media/pci/bt8xx/

# Add acpica header files, needed for fglrx build
cp -fR drivers/acpi/acpica/*.h %{temp_devel_root}/drivers/acpi/acpica/

%if %{with aufs}
# aufs2 has a special file needed
cp -fR fs/aufs/magic.mk %{temp_devel_root}/fs/aufs
%endif

# SELinux needs security/selinux/include
cp -fR security/selinux/include %{temp_devel_root}/security/selinux

for i in alpha arc avr32 blackfin c6x cris csky frv h8300 hexagon ia64 m32r m68k m68knommu metag microblaze \
	mips mn10300 nds32 nios2 openrisc parisc powerpc s390 score sh sparc tile unicore32 xtensa; do
	rm -rf %{temp_devel_root}/arch/$i
done

# Clean the scripts tree, and make sure everything is ok (sanity check)
# running prepare+scripts (tree was already "prepared" in build)
pushd %{temp_devel_root}
	%smake V=1 -s clean ARCH=%{arch_type}
popd

rm -f %{temp_devel_root}/.config.old

# Fix permissions
chmod -R a+rX %{temp_devel_root}

# Disable mrproper in -devel rpms
#patch -p1 --fuzz=0 -d %{temp_devel_root} -i %{SOURCE2}
%endif
# End of build_devel


# TODO: maybe move to /usr/lib/debug?
%if %{build_debug}
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | \
	%kxargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find %{temp_modules}/%{kver_full}/kernel \
	-name "*.ko" | %kxargs -I '{}' \
	sh -c 'cd `dirname {}`; \
		objcopy --add-gnu-debuglink=`basename {}`.debug \
		--strip-debug `basename {}`'
%endif
# End of build_debug

# https://patchwork.kernel.org/patch/11446123/
_libressl_sign(){
	if [ ! -f "$1" ]; then
		echo "No file $1"
		return 0
	fi
	f="$1"
%if %{with gost_sign}
	sign-file streebog512 \
		"%{certs_signing_key_priv_rnd}.GOST" "%{certs_signing_key_priv_rnd}.GOST" "$f"
%else
	sign-file sha512 \
		"%{certs_signing_key_priv_rnd}.RSA" "%{certs_signing_key_priv_rnd}.RSA" "$f"
%endif
	unset f
}
export -f _libressl_sign
find %{temp_modules}/%{kver_full}/kernel \
%if %{with uml}
	%{temp_root}%{_modulesdir}-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -e -x -c 'if ! _libressl_sign "{}"; \
		then echo Failed _libressl_sign on "{}" && exit 1; fi'

# Set extraversion to match srpm to get nice version reported by the tools
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
%smake -C tools/perf -s PYTHON=%{__python3} HAVE_CPLUS_DEMANGLE=1 WERROR=0 prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 all
%smake -C tools/perf -s prefix=%{_prefix} lib=%{_lib} NO_GTK2=1 man
%endif

_cleanup

############################################################################

%install
cd %{src_dir}

# TODO: get rid of temporary directory, install to buildroot directly?
# We want to be able to test several times the install part
rm -rf %{buildroot}
cp -a %{temp_root} %{buildroot}

#if %%{with oblig_signed_modules}
# Multithreaded verification that every kernel module has a signature attached to it
mkdir -p "%{certs_dir_rnd}"
touch %{certs_verify_tmp}
_verify_signature(){
	if [ -z "$1" ] || [ ! -f "$1" ]; then return; fi
	if hexdump -C "$1" | rev | cut -f 2 -d '|' | rev | tr -d '\n' | grep -q '~Module signature appended~'; then
		if [ -f %{certs_verify_tmp} ]; then
			rm -f %{certs_verify_tmp}
		fi
	else
		echo "ERROR: Module $1 has no signature attached to it!"
		exit 1
	fi
}
export -f _verify_signature
find %{target_modules} \
%if %{with uml}
	%{buildroot}%{_modulesdir}-uml/%{kver_full} \
%endif
-name '*.ko' -print0 | sort -u | \
	xargs --null -P "$(nproc)" -I {} "$SHELL" -c '_verify_signature "{}"'
if [ -f %{certs_verify_tmp} ]; then
	echo "ERROR: seems that signatures of none modules were verified!"
	exit 1
fi
rm -f %{certs_verify_tmp}
#endif

# Compressing modules
%if %{with compress_modules}
# Tested on /lib/modules/5.10.34-generic-2rosa2019.1-x86_64, the results are the following:
# * decompressed: 266.3 MiB
# * xz -9 --extreme: 67.8 MiB
# * zstd --ultra -22 without training: 73.5 MiB
# * zstd -6 without training: 79.6 MiB
# * zstd --ultra -22 with training: 66.3 MiB (the winner!)
# Training takes only a few minutes, make it here in place with current zstd and kernel modules.
# But! Decompressing also requires a dictionary for zstd, that will be too complex, so not using training :(
# We already use zstd in dracut to compress initrds quickly and with good compression ration.
# Testing speed of loading modules:
# `time modinfo bcache.ko.xz` took 0,048s, `time modinfo bcache.ko.zstd` took 0,014s (for multiple times)
# find /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 -type f -name '*.ko.zst' > /tmp/zst.list
# time { for i in `cat /tmp/zst.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took ~31-40s, with disk cache (2+ runs) ~33s
# find /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 -type f -name '*.ko.xz' > /tmp/xz.list
# time { for i in `cat /tmp/xz.list`; do modinfo $i >/dev/null 2>&1; done ;}
# took 43-47s, with disk cache (2+ runs) ~42s, +21%%
# zstd-compressed initramfs image initrd-5.10.34-generic-1rosa2019.1-x86_64.img with *.ko.xz is 56,3 MiB
# zstd-compressed initramfs image initrd-5.10.34-generic-2rosa2019.1-x86_64.img with *.ko.zst is 58,4 MiB (+3.6%%)
# /lib/modules/5.10.34-generic-1rosa2019.1-x86_64 (*.ko.xz) is 78,1 MiB
# /lib/modules/5.10.34-generic-2rosa2019.1-x86_64 (*.ko.zst) is 83,9 MiB (+7%%)
# When zstd is compressing cpio (initrd image) with zstd-compressed kernel modules inside it, does it recompress data?
# It is not easy to make a choice between zstd and xz for kernel modules... Disk space (and so speed of installing
# RPM packages) is not much bigger, we do not try to support super low end devices, operation speed is a bit better.
# I have not seen measurable difference in startup time according to systemd-analyze.
# Note that decompression after zstd --ultra -22 will consume more memory than after zstd -6, see commit message in
# https://github.com/torvalds/linux/commit/73f3d1b48f5069d46b. I did not benchmark -6 vs -22 in runtime.
# Let's use zstd for now.
# zstd may also be used to compress linux-firmware to save a lot of space on disk,
# but upstream kernels still cannot decompress it.
#{zstd_cmd} -T0 --train $(find . -type f -name '*.ko')
#[ -f dictionary ]
# -T1 (one thread) because we run multiple zstd processes by xargs
%if %{with modxz}
find %{target_modules} -name "*.ko" | %kxargs xz -6e
%else
find %{target_modules} -name "*.ko" | %kxargs %{zstd_cmd} --rm -T1 #-D dictionary
rm -f dictionary
%endif
%endif

%if %{with binary_extra_modules}
# Move nvidia modules to manage them via alternatives(8), leave *.debug
# TODO: better handle debug here and in the package in general
find %{target_modules}/%{kver_full}/kernel/drivers/video -name 'nvidia???.*' -type d -maxdepth 1 |
while read -r line
do
	nv="$(basename "$line")"
	mkdir -p %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
	mv -v "$line"/*.ko%{kmod_suffix} %{buildroot}%{kroko_kmods_dir}/"$nv"-%{kver_full}
	dir_no_buildroot="$(echo "$line" | sed -e 's,^%{buildroot},,')"
	echo "%exclude $dir_no_buildroot" >> %{kernel_files}
	%if %{build_debug}
	echo "%dir $dir_no_buildroot" >> %{debuginfo_files}
	%endif
done
%endif #/with binary_extra_modules

find %{buildroot}%{_modulesdir}/%{kver_full} -type f -name '*.ko%{kmod_suffix}' | sed -e 's,^%{buildroot},,' | sort -u >> %{kernel_files}
find %{buildroot}%{_modulesdir}/%{kver_full} -type d | sed -e 's,^%{buildroot},%dir ,' | sort -u >> %{kernel_files}

# We estimate the size of the initramfs because rpm needs to take this size
# into consideration when performing disk space calculations (See rhbz#530778)
# 65 MiB is a bit more than needed, but let's be more sure that there is enought space.
# On my PC, zstd-compressed initrds take 58,5 MiB.
# Real size of the RPM package should not increase because RPM compresses the payload.
# This file is %%ghost, so the real initrd will be deleted when uninstalling this package.
dd if=/dev/zero of=%{buildroot}%{initrd_path} bs=1M count=65

%if %{build_debug}
install -m 644 vmlinux %{buildroot}%{_bootdir}/vmlinux-%{kver_full}
find %{buildroot}%{_modulesdir} -type f -name '*.debug' | sed -e 's,^%{buildroot},,' | sort -u >> %{debuginfo_files}
%endif
# End of build_debug

pushd %{target_modules}
for i in *; do
	rm -f $i/build $i/source
	ln -sf /usr/src/linux-$i $i/build
	ln -sf /usr/src/linux-$i $i/source
done

# Sniff, if we compressed all the modules, we change the stamp :(
# we really need the depmod -ae here
for i in *; do
	/usr/sbin/depmod -ae -b %{buildroot} -F %{target_boot}/System.map-$i $i
	echo $?
done

# We used to create modules.description files which contained the
# description strings for the modules as shown by modinfo. These files
# are unlikely to be used right now, so create them (in case some old tool
# checks for their existence) but keep them empty.
for i in *; do
	touch $i/modules.description
done
popd

# Need to set extraversion to match srpm again to avoid rebuild
LC_ALL=C sed -ri "s/^EXTRAVERSION.*/EXTRAVERSION = -%{fullrpmrel}/" Makefile

%if %{build_perf}
# Perf tool binary and supporting scripts/binaries
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} lib=%{_lib} install

# Versionize shebang (#!/usr/bin/env python -> #!/usr/bin/python3)
sed -i '1 s,^#!/usr/bin/env python$,#!%{__python3},' \
	%{buildroot}%{_libexecdir}/perf-core/scripts/python/exported-sql-viewer.py \
	%{buildroot}%{_libexecdir}/perf-core/scripts/python/libxed.py
sed -i -e '1s,^#!/usr/bin/python$,#!%{__python3},' \
	%{buildroot}%{_libexecdir}/perf-core/tests/shell/lib/perf_json_output_lint.py

# Perf man pages (note: implicit rpm magic compresses them later)
make -C tools/perf -s V=1 DESTDIR=%{buildroot} WERROR=0 HAVE_CPLUS_DEMANGLE=1 prefix=%{_prefix} install-man
%endif

# Delete junk
rm -fr %{buildroot}%{_usr}/src/*/kernel-source-*

%if %{with flow_abi}
# Prefix with "zzz" to put this directory into the end of search list
# and avoid tricks with depmod configs
mkdir -p %{buildroot}%{_modulesdir}/%{kernelversion}.%{patchlevel}-rosa-flow-abi
ln -s %{_modulesdir}/%{kernelversion}.%{patchlevel}-rosa-flow-abi %{buildroot}%{_modulesdir}/%{kver_full}/kernel/zzz-%{kernelversion}.%{patchlevel}-rosa-flow-abi
%endif

# Drop hidden files
rm -f %{buildroot}%{_docdir}/kernel-5.10-generic-doc/devicetree/bindings/.yamllint

# Fix perms
%if %{build_perf}
chmod -x %{buildroot}%{_sysconfdir}/bash_completion.d/perf
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13744 |21mr|kernel-rpi3-5.4.70-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define config_name bcmrpi3_defconfig
%define buildarch arm64
%define target_board rpi3
%define	debug_package %nil

Name: kernel-rpi3
Summary: The Linux Kernel for Raspberry Pi3
Version:	5.4.70
Group: 	 	System/Kernel and hardware
Release:	1
License: GPL-2.0
Vendor: The Linux Community
URL: https://www.kernel.org
#ExclusiveArch: aarch64
Source0: %{name}-%{version}.tar.xz
Source1: https://github.com/sakaki-/bcm2711-kernel-bis/raw/master/conform_config.sh
Source2: kernel-rpi3.rpmlintrc

# bootcode
Source100: https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin
Source101: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup.dat
Source102: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup_cd.dat
Source103: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup_db.dat
Source104: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup_x.dat
Source105: https://github.com/raspberrypi/firmware/raw/stable/boot/start.elf
Source106: https://github.com/raspberrypi/firmware/raw/stable/boot/start_cd.elf
Source107: https://github.com/raspberrypi/firmware/raw/stable/boot/start_db.elf

#Patch0:	bb3582314c9d19f7b06c47b5d484cd8905da654b.patch
# use bfd
#Patch1: 2a034bb1f7a1cb51d505ca2bb6860c8e57016a87.patch

BuildRequires:	bc
BuildRequires:	uboot-tools
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	kmod
BuildRequires:	kmod-compat
BuildRequires:	rsync
BuildRequires:	openssl-devel
Requires(pre):	kmod-compat

%description
The Linux Kernel, the operating system core itself

%package modules
Summary: Kernel modules for %{target_board}
Group:	System/Kernel and hardware
Provides: %{name}-modules = %{EVRD}

%description modules
Kernel-modules includes the loadable kernel modules(.ko files) for %{target_board}

%package	devel
License:	GPL-2.0
Summary:	Linux support kernel map and etc for other packages
Group:		System/Kernel and hardware
Conflicts:	kernel-release-headers
Provides:	%{name}-headers = %{EVRD}

%description	devel
This package provides kernel map and etc information.

%prep
%autosetup -p1
# https://lkml.org/lkml/2019/8/2/167
# fpie breaks build with latest binutils and gcc
sed -i 's!-fpie!!g' drivers/firmware/efi/libstub/Makefile

%build
%set_build_flags
# 1-1. Set config file
%make_build bcmrpi3_defconfig
sh %{SOURCE1} .config
sed -i 's!-v8!!g' .config
# 1-2. Build Image/Image.gz
%make_build CC=gcc CXX=g++ CFLAGS="%{optflags}" LD="%{_target_platform}-ld.bfd"
# 1-3. Build dtbs & modules
%make_build dtbs modules CC=gcc CXX=g++ CFLAGS="%{optflags}" LD="%{_target_platform}-ld.bfd"

%install
# 2-1. Destination directories
mkdir -p %{buildroot}/boot/broadcom
mkdir -p %{buildroot}/boot/overlays
mkdir -p %{buildroot}/lib/modules

# 2-2. Install kernel binary and DTB
install -m 644 arch/%{buildarch}/boot/Image %{buildroot}/boot/%{name}-%{version}-%{release}.img
install -m 644 arch/%{buildarch}/boot/dts/broadcom/bcm*.dtb %{buildroot}/boot/
install -m644  arch/arm/boot/dts/overlays/*.dtb* %{buildroot}/boot/overlays

# 2-3. Install modules
make INSTALL_MOD_PATH=%{buildroot} INSTALL_MOD_STRIP=1 modules_install
# 4. Move files for each package
%make_build INSTALL_HDR_PATH=%{buildroot}%{_prefix} KERNELRELEASE=%{version} headers_install

make mrproper

cat <<EOF > %{buildroot}/boot/cmdline.txt
dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
EOF

cat <<EOF > %{buildroot}/boot/config.txt
# See
# https://www.raspberrypi.org/documentation/configuration/config-txt
arm_64bit=1
kernel=%{name}-%{version}-%{release}.img
dtoverlay=vc4-kms-v3d
# enable serial
enable_uart=1
# Force the monitor to HDMI mode so that sound will be sent over HDMI cable
hdmi_drive=2
# Set monitor mode to DMT
hdmi_group=2
# Set monitor resolution to 1024x768 XGA 60Hz (HDMI_DMT_XGA_60)
# hdmi_mode=16
# have a properly sized image
disable_overscan=1
# Make display smaller to stop text spilling off the screen
# overscan_left=20
# overscan_right=12
# overscan_top=10
# overscan_bottom=10
# For i2c & spi
dtparam=i2c_arm=on
dtparam=spi=on
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
EOF

install -m0644 %{S:100} %{buildroot}/boot/
install -m0644 %{S:101} %{buildroot}/boot/
install -m0644 %{S:102} %{buildroot}/boot/
install -m0644 %{S:103} %{buildroot}/boot/
install -m0644 %{S:104} %{buildroot}/boot/
install -m0644 %{S:105} %{buildroot}/boot/
install -m0644 %{S:106} %{buildroot}/boot/
install -m0644 %{S:107} %{buildroot}/boot/

%post
#/sbin/dracut --gzip -o ifcfg -o lvm -o mdraid i\
#	-o aufs-mount -o network -o dm -o crypt \
#	-o dmraid -o multipath -o multipath-hostonly \
#	--fstab --add-fstab /etc/fstab -f /boot/initrd-%{version}-%{release}.img %{version}-%{release}
#chmod 0644 %{buildroot}/boot/initrd-%{version}-%{release}.img

/sbin/depmod -a %{version}

%postun
rm -fv /boot/initrd-%{version}-%{release}.img

%files
/boot/%{name}-%{version}-%{release}.img
/boot/bcm*.dtb
/boot/config.txt
/boot/cmdline.txt
/boot/bootcode.bin
/boot/start*.elf
/boot/fixup*.dat
/boot/overlays/*.dtb*

%files modules
/lib/modules/*

%files devel
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13745 |21mr|kernel-rpi4-5.10.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define config_name bcm2711_defconfig
%define buildarch arm64
%define target_board rpi4
%define	debug_package %nil

Name:		kernel-rpi4
Summary:	The Linux Kernel for Raspberry Pi3
Version:	5.10.27
Group: 	 	System/Kernel and hardware
Release:	1
License:	GPL-2.0
Vendor:		The Linux Community
URL:		https://www.kernel.org
ExclusiveArch:	aarch64
Source0:	%{name}-%{version}.tar.xz
Source1:	https://github.com/sakaki-/bcm2711-kernel-bis/raw/master/conform_config.sh
Source2:	kernel-rpi4.rpmlintrc

# bootcode
Source100: https://github.com/raspberrypi/firmware/raw/stable/boot/bootcode.bin
Source101: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup.dat
Source102: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup_cd.dat
Source103: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup_db.dat
Source104: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup_x.dat
Source105: https://github.com/raspberrypi/firmware/raw/stable/boot/start.elf
Source106: https://github.com/raspberrypi/firmware/raw/stable/boot/start_cd.elf
Source107: https://github.com/raspberrypi/firmware/raw/stable/boot/start_db.elf

Source110: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup4.dat
Source111: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup4cd.dat
Source112: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup4db.dat
Source113: https://github.com/raspberrypi/firmware/raw/stable/boot/fixup4x.dat
Source114: https://github.com/raspberrypi/firmware/raw/stable/boot/start4.elf
Source115: https://github.com/raspberrypi/firmware/raw/stable/boot/start4x.elf
Source116: https://github.com/raspberrypi/firmware/raw/stable/boot/start4cd.elf
Source117: https://github.com/raspberrypi/firmware/raw/stable/boot/start4db.elf

BuildRequires:	bc
BuildRequires:	uboot-tools
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	kmod
BuildRequires:	kmod-compat
BuildRequires:	rsync
BuildRequires:	openssl-devel
Requires(pre):	kmod-compat

%description
The Linux Kernel, the operating system core itself

%package modules
Summary: Kernel modules for %{target_board}
Group:	System/Kernel and hardware
Provides: %{name}-modules = %{EVRD}

%description modules
Kernel-modules includes the loadable kernel modules(.ko files) for %{target_board}

%package	devel
License:	GPL-2.0
Summary:	Linux support kernel map and etc for other packages
Group:		System/Kernel and hardware
Conflicts:	kernel-release-headers
Provides:	%{name}-headers = %{EVRD}

%description	devel
This package provides kernel map and etc information.

%prep
%autosetup -p1
# https://lkml.org/lkml/2019/8/2/167
# fpie breaks build with latest binutils and gcc
sed -i 's!-fpie!!g' drivers/firmware/efi/libstub/Makefile

%build
%set_build_flags
# 1-1. Set config file
%make_build bcm2711_defconfig
sh %{SOURCE1} .config
sed -i 's!-v8!!g' .config
# 1-2. Build Image/Image.gz
%make_build CC=gcc CXX=g++ CFLAGS="%{optflags}" LD="%{_target_platform}-ld.bfd"
# 1-3. Build dtbs & modules
%make_build dtbs modules CC=gcc CXX=g++ CFLAGS="%{optflags}" LD="%{_target_platform}-ld.bfd"

%install
# 2-1. Destination directories
mkdir -p %{buildroot}/boot/broadcom
mkdir -p %{buildroot}/boot/overlays
mkdir -p %{buildroot}/lib/modules

# 2-2. Install kernel binary and DTB
install -m 644 arch/%{buildarch}/boot/Image %{buildroot}/boot/%{name}-%{version}-%{release}.img
install -m 644 arch/%{buildarch}/boot/dts/broadcom/bcm*.dtb %{buildroot}/boot/
install -m644  arch/arm/boot/dts/overlays/*.dtb* %{buildroot}/boot/overlays

# 2-3. Install modules
make INSTALL_MOD_PATH=%{buildroot} INSTALL_MOD_STRIP=1 modules_install
# 4. Move files for each package
%make_build INSTALL_HDR_PATH=%{buildroot}%{_prefix} KERNELRELEASE=%{version} headers_install

make mrproper

cat <<EOF > %{buildroot}/boot/cmdline.txt
dwc_otg.lpm_enable=0 console=ttyS0,115200 console=tty1 root=/dev/mmcblk0p2 rootfstype=ext4 elevator=deadline fsck.repair=yes rootwait
EOF

cat <<EOF > %{buildroot}/boot/config.txt
# See
# https://www.raspberrypi.org/documentation/configuration/config-txt
arm_64bit=1
kernel=%{name}-%{version}-%{release}.img
dtoverlay=vc4-kms-v3d
# enable serial
enable_uart=1
# Force the monitor to HDMI mode so that sound will be sent over HDMI cable
hdmi_drive=2
# Set monitor mode to DMT
hdmi_group=2
# Set monitor resolution to 1024x768 XGA 60Hz (HDMI_DMT_XGA_60)
# hdmi_mode=16
# have a properly sized image
disable_overscan=1
# Make display smaller to stop text spilling off the screen
# overscan_left=20
# overscan_right=12
# overscan_top=10
# overscan_bottom=10
# For i2c & spi
dtparam=i2c_arm=on
dtparam=spi=on
# Enable audio (loads snd_bcm2835)
dtparam=audio=on
EOF

install -m0644 %{S:100} %{buildroot}/boot/
install -m0644 %{S:101} %{buildroot}/boot/
install -m0644 %{S:102} %{buildroot}/boot/
install -m0644 %{S:103} %{buildroot}/boot/
install -m0644 %{S:104} %{buildroot}/boot/
install -m0644 %{S:105} %{buildroot}/boot/
install -m0644 %{S:106} %{buildroot}/boot/
install -m0644 %{S:107} %{buildroot}/boot/

install -m0644 %{S:110} %{buildroot}/boot/
install -m0644 %{S:111} %{buildroot}/boot/
install -m0644 %{S:112} %{buildroot}/boot/
install -m0644 %{S:113} %{buildroot}/boot/
install -m0644 %{S:114} %{buildroot}/boot/
install -m0644 %{S:115} %{buildroot}/boot/
install -m0644 %{S:116} %{buildroot}/boot/
install -m0644 %{S:117} %{buildroot}/boot/

%post
#/sbin/dracut --gzip -o ifcfg -o lvm -o mdraid i\
#	-o aufs-mount -o network -o dm -o crypt \
#	-o dmraid -o multipath -o multipath-hostonly \
#	--fstab --add-fstab /etc/fstab -f /boot/initrd-%{version}-%{release}.img %{version}-%{release}
#chmod 0644 %{buildroot}/boot/initrd-%{version}-%{release}.img

/sbin/depmod -a %{version}

%postun
rm -fv /boot/initrd-%{version}-%{release}.img

%files
/boot/%{name}-%{version}-%{release}.img
/boot/bcm*.dtb
/boot/config.txt
/boot/cmdline.txt
/boot/bootcode.bin
/boot/start*.elf
/boot/fixup*.dat
/boot/overlays/*.dtb*

%files modules
/lib/modules/*

%files devel
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13746 |21mr|kernel-source-nwfermi-0-0.git8bbe39.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 8bbe39739b6c024ae4383e10da45498a6f05b75a
%define commit_short %(echo %{commit} | head -c6)

# probe with this thing installed and smartboard connected:
# https://linux-hardware.org/?probe=001109b89b

Summary:	Kernel driver for NextWindow touch screens (requires proprietary software in the userspace)
Name:		kernel-source-nwfermi
Version:	0
Release:	0.git%{commit_short}.6
# license for kernel modules only
License:	GPL
Group:		System/Kernel and hardware
Url:		https://github.com/glorang/nwfermi
Source0:	https://github.com/glorang/nwfermi/archive/%{commit}.tar.gz?/nwfermi-%{commit}.tar.gz
# keep in sync with nwfermi
Patch1:		more-devices.diff
BuildArch:	noarch

%description
Source code of the Linux kernel driver for NextWindow touch screens
(requires proprietary software in the userspace, that software uses this driver,
install the "nwfermi" package).

%files
%dir /usr/src/nwfermi-%{version}-%{release}
/usr/src/nwfermi-%{version}-%{release}/*.c
/usr/src/nwfermi-%{version}-%{release}/*.h
/usr/src/nwfermi-%{version}-%{release}/Makefile

#------------------------------------------------------------------

%package -n dkms-nwfermi
Summary:	Kernel driver for NextWindow touch screens as DKMS
Requires:	kernel-source-nwfermi = %{EVRD}
Requires(post,preun):	dkms
Requires(post):	kernel-source-nwfermi = %{EVRD}

%description -n dkms-nwfermi
Kernel driver for NextWindow touch screens as DKMS - build it from
source for every installed kernel.
kernel driver for NextWindow touch screens (requires proprietary software
in the userspace, that software uses this driver, install the "nwfermi" package).

%files -n dkms-nwfermi
/usr/src/nwfermi-%{version}-%{release}/dkms.conf

%post -n dkms-nwfermi
set -x
dkms --rpm_safe_upgrade add -m nwfermi -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m nwfermi -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m nwfermi -v %{version}-%{release} -k $kk || :
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-nwfermi
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
set -x
rmmod nwfermi >/dev/null 2>&1 || :
dkms --rpm_safe_upgrade remove -m nwfermi -v %{version}-%{release} --all || :


#------------------------------------------------------------------

%prep
%autosetup -p1 -n nwfermi-%{commit}

# remove all not needed stuff, including blobs (may be useful for certification)
rm -fvr etc usr/sbin

# Rename kernel module because "%%ksob_mk_module_pkg -n nw-fermi -s drivers/input"
# inside kernel.spec (when building a binary module) generates an invalid provide
# "installonlypkg(kernel-module) = 6.6.18-2.module.nw-fermi",
# which is invalid because of double "-"
grep -Irl nw-fermi | xargs sed -i -e 's,nw-fermi,nwfermi,g'
mv usr/src/nwfermi-0.7.0.1/nw-fermi.c usr/src/nwfermi-0.7.0.1/nwfermi.c

# tune dkms config
sed -i -e '/PACKAGE_VERSION/d' -e '/DEST_MODULE_LOCATION/d' usr/src/nwfermi-0.7.0.1/dkms.conf
echo 'PACKAGE_VERSION=%{version}-%{release}' >> usr/src/nwfermi-0.7.0.1/dkms.conf
echo 'DEST_MODULE_LOCATION[0]=/kernel/3rdparty/nwfermi' >> usr/src/nwfermi-0.7.0.1/dkms.conf

%install
mkdir -p %{buildroot}/usr/src/nwfermi-%{version}-%{release}
install -m644 usr/src/nwfermi-0.7.0.1/{*.c,*.h,Makefile,dkms.conf} %{buildroot}/usr/src/nwfermi-%{version}-%{release}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13747 |21mr|kexec-tools-2.0.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%bcond_with eppic

%define makedumpfile_ver 1.6.7

Summary:	The kexec/kdump userspace component
Name:		kexec-tools
Version:	2.0.25
Release:	1
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://kernel.org/pub/linux/utils/kernel/kexec
Source0:	http://kernel.org/pub/linux/utils/kernel/kexec/%{name}-%{version}.tar.xz
Source1:	kdumpctl
Source2:	kdump.sysconfig
Source3:	kdump.sysconfig.x86_64
Source4:	kdump.sysconfig.i386
Source5:	kdump.sysconfig.ppc64
Source6:	kdump.sysconfig.aarch64
Source7:	mkdumprd
Source8:	kdump.conf
Source9:	http://downloads.sourceforge.net/project/makedumpfile/makedumpfile/%{makedumpfile_ver}/makedumpfile-%{makedumpfile_ver}.tar.gz
Source10:	kexec-kdump-howto.txt
Source12:	mkdumprd.8
Source14:	98-kexec.rules
Source15:	kdump.conf.5
Source16:	kdump.service
%if %{with eppic}
Source19:	eppic_050615.tar.gz
%endif
Source20:	kdump-lib.sh
Source21:	kdump-in-cluster-environment.txt
Source22:	kdump-dep-generator.sh
Source24:	kdump-lib-initramfs.sh
Source26:	kdumpctl.8
Source27:	live-image-kdump-howto.txt

#######################################
# These are sources for mkdumpramfs
# Which is currently in development
#######################################
Source100:	dracut-kdump.sh
Source101:	dracut-module-setup.sh
Source102:	dracut-monitor_dd_progress
Source103:	dracut-kdump-error-handler.sh
Source104:	dracut-kdump-emergency.service
Source105:	dracut-kdump-error-handler.service
Source106:	dracut-kdump-capture.service
Source107:	dracut-kdump-emergency.target

BuildRequires:	intltool
BuildRequires:	gettext
BuildRequires:	systemd-units
BuildRequires:	bzip2-devel
BuildRequires:	elfutils-devel
BuildRequires:	elfutils-static-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	ncurses-devel
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	liblzo-devel
BuildRequires:	snappy-devel
BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	libtool

Requires:	dracut >= 044
Requires:	ethtool
Requires(pre):	coreutils
Requires(pre):	sed
Requires(post,preun,postun):	systemd-units

%description
kexec-tools provides /sbin/kexec binary that facilitates a new
kernel to boot using the kernel's kexec feature either on a
normal or a panic reboot. This package contains the /sbin/kexec
binary and ancillary utilities that together form the userspace
component of the kernel's kexec feature.

%prep
%autosetup -p1
sed -i 's!BUILD_KEXEC_TEST = yes!BUILD_KEXEC_TEST = no!g' kexec_test/Makefile

mkdir -p -m755 kcp
tar -z -x -v -f %{SOURCE9}
%if %{with eppic}
tar -z -x -v -f %{SOURCE19}
%endif

%build

export CFLAGS=`echo %{optflags} -Wno-error=format-security`

autoreconf -fvi
%configure \
    --sbindir=/sbin

rm -f kexec-tools.spec.in
# setup the docs
cp %{SOURCE10} .
cp %{SOURCE21} .
cp %{SOURCE27} .

make
%ifarch %{ix86} %{x86_64} ia64 ppc64 aarch64
%if %{with eppic}
make -C eppic/libeppic
%endif

make -C makedumpfile-%{makedumpfile_ver} LINKTYPE=dynamic USELZO=on USESNAPPY=on

%if %{with eppic}
make -C makedumpfile-%{makedumpfile_ver} LDFLAGS="-I../eppic/libeppic -L../eppic/libeppic" eppic_makedumpfile.so
%endif
%endif


%install
%makeinstall_std
mkdir -p -m755 %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p -m755 %{buildroot}%{_localstatedir}/crash
mkdir -p -m755 %{buildroot}%{_mandir}/man8/
mkdir -p -m755 %{buildroot}%{_mandir}/man5/
mkdir -p -m755 %{buildroot}%{_docdir}
mkdir -p -m755 %{buildroot}%{_datadir}/kdump
mkdir -p -m755 %{buildroot}%{_sysconfdir}/udev/rules.d
mkdir -p %{buildroot}%{_unitdir}
mkdir -p -m755 %{buildroot}%{_bindir}
mkdir -p -m755 %{buildroot}%{_libdir}
mkdir -p -m755 %{buildroot}%{_prefix}/lib/kdump
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/kdumpctl

%ifarch %{x86_64}
%define SYSCONFIG %{SOURCE3}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE3}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE2}
%else

%ifarch %{ix86}
%define SYSCONFIG %{SOURCE4}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE4}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE2}
%else

%ifarch aarch64
%define SYSCONFIG %{SOURCE4}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE6}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE2}
%else

%ifarch ppc64
%define SYSCONFIG %{SOURCE5}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE5}
[ -f $SYSCONFIG ] || SYSCONFIG=%{SOURCE2}
%else
%endif
%endif
%endif
%endif

install -m 644 %{SYSCONFIG} %{buildroot}%{_sysconfdir}/sysconfig/kdump


install -m 755 %{SOURCE7} %{buildroot}/sbin/mkdumprd
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/kdump.conf
install -m 644 kexec/kexec.8 %{buildroot}%{_mandir}/man8/kexec.8
install -m 644 %{SOURCE12} %{buildroot}%{_mandir}/man8/mkdumprd.8
install -m 644 %{SOURCE26} %{buildroot}%{_mandir}/man8/kdumpctl.8
install -m 755 %{SOURCE20} %{buildroot}%{_prefix}/lib/kdump/kdump-lib.sh
install -m 755 %{SOURCE24} %{buildroot}%{_prefix}/lib/kdump/kdump-lib-initramfs.sh
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/udev/rules.d/98-kexec.rules
install -m 644 %{SOURCE15} %{buildroot}%{_mandir}/man5/kdump.conf.5
install -m 644 %{SOURCE16} %{buildroot}%{_unitdir}/kdump.service
install -m 755 -D %{SOURCE22} %{buildroot}%{_prefix}/lib/systemd/system-generators/kdump-dep-generator.sh

%ifarch %{ix86} %{x86_64} ia64 ppc64 aarch64
install -m 755 makedumpfile-%{makedumpfile_ver}/makedumpfile %{buildroot}/sbin/makedumpfile
install -m 644 makedumpfile-%{makedumpfile_ver}/makedumpfile.8.gz %{buildroot}%{_mandir}/man8/makedumpfile.8.gz
install -m 644 makedumpfile-%{makedumpfile_ver}/makedumpfile.conf.5.gz %{buildroot}%{_mandir}/man5/makedumpfile.conf.5.gz
install -m 644 makedumpfile-%{makedumpfile_ver}/makedumpfile.conf %{buildroot}%{_sysconfdir}/makedumpfile.conf.sample

%if %{with eppic}
install -m 755 makedumpfile-%{makedumpfile_ver}/eppic_makedumpfile.so %{buildroot}%{_libdir}/eppic_makedumpfile.so
mkdir -p %{buildroot}/usr/share/makedumpfile/eppic_scripts/
install -m 644 makedumpfile-%{makedumpfile_ver}/eppic_scripts/* %{buildroot}/usr/share/makedumpfile/eppic_scripts/
%endif
%endif

%define remove_dracut_prefix() %(echo -n %1|sed 's/.*dracut-//g')

# deal with dracut modules
mkdir -p -m755 %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase
cp %{SOURCE100} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE100}}
cp %{SOURCE101} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE101}}
cp %{SOURCE102} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE102}}
cp %{SOURCE103} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE103}}
cp %{SOURCE104} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE104}}
cp %{SOURCE105} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE105}}
cp %{SOURCE106} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE106}}
cp %{SOURCE107} %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE107}}
chmod 755 %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE100}}
chmod 755 %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/99kdumpbase/%{remove_dracut_prefix %{SOURCE101}}


%define dracutlibdir %{_prefix}/lib/dracut
#and move the custom dracut modules to the dracut directory
mkdir -p %{buildroot}/%{dracutlibdir}/modules.d/
mv %{buildroot}/etc/kdump-adv-conf/kdump_dracut_modules/* %{buildroot}/%{dracutlibdir}/modules.d/


%post
%systemd_post kdump.service

touch /etc/kdump.conf

# This portion of the script is temporary.  Its only here
# to fix up broken boxes that require special settings
# in /etc/sysconfig/kdump.  It will be removed when
# These systems are fixed.

if [ -d /proc/bus/mckinley ]
then
	# This is for HP zx1 machines
	# They require machvec=dig on the kernel command line
	sed -e's/\(^KDUMP_COMMANDLINE_APPEND.*\)\("$\)/\1 machvec=dig"/' \
	/etc/sysconfig/kdump > /etc/sysconfig/kdump.new
	mv /etc/sysconfig/kdump.new /etc/sysconfig/kdump
elif [ -d /proc/sgi_sn ]
then
	# This is for SGI SN boxes
	# They require the --noio option to kexec
	# since they don't support legacy io
	sed -e's/\(^KEXEC_ARGS.*\)\("$\)/\1 --noio"/' \
	/etc/sysconfig/kdump > /etc/sysconfig/kdump.new
	mv /etc/sysconfig/kdump.new /etc/sysconfig/kdump
fi


%postun
%systemd_postun_with_restart kdump.service

%preun
%systemd_preun kdump.service


%files
/sbin/*
%{_bindir}/*
%{_datadir}/kdump
%{_prefix}/lib/kdump
%ifarch %{ix86} %{x86_64} ppc64 aarch64
%{_sysconfdir}/makedumpfile.conf.sample
%endif
%config(noreplace,missingok) %{_sysconfdir}/sysconfig/kdump
%config(noreplace,missingok) %{_sysconfdir}/kdump.conf
%config %{_sysconfdir}/udev/rules.d/*
%{dracutlibdir}/modules.d/*
%dir %{_localstatedir}/crash
%{_mandir}/man8/*
%{_mandir}/man5/*
%{_unitdir}/kdump.service
%{_prefix}/lib/systemd/system-generators/kdump-dep-generator.sh
%doc News
%doc COPYING
%doc TODO
%doc kexec-kdump-howto.txt
%doc kdump-in-cluster-environment.txt
%doc live-image-kdump-howto.txt
%ifarch %{ix86} %{x86_64} ppc64 aarch64
%if %{with eppic}
%{_libdir}/eppic_makedumpfile.so
/usr/share/makedumpfile/eppic_scripts/
%endif
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13748 |21mr|keybinder3-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname keybinder

%define api 3.0
%define major 0
%define girmajor 3.0
%define libname %mklibname %{oname} %{api} %{major}
%define girname %mklibname %{oname}-gir %{girmajor}
%define devname %mklibname %{oname} %{api} -d

Summary:	A library for registering global keyboard shortcuts
Name:		keybinder3
Version:	0.3.1
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://github.com/engla/keybinder/tree/keybinder-3.0
Source0:	https://github.com/engla/keybinder/archive/%{oname}-%{api}-v%{version}.tar.gz
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk-doc)

%description
Keybinder is a library for registering global keyboard shortcuts.
Keybinder works with GTK-based applications using the X Window System.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libkeybinder-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection files for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Keybinder-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/keybinder-%{api}/keybinder.h
%{_libdir}/libkeybinder-%{api}.so
%{_libdir}/pkgconfig/keybinder-%{api}.pc
%{_datadir}/gir-1.0/Keybinder-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{oname}-%{api}-v%{version}

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13749 |21mr|keychain-2.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Keychain manages ssh-agent to minimise passphrase entry for ssh
Name:		keychain
Version:	2.8.5
Release:	1
License:	GPLv2+
Group:		Networking/Remote access
Url:		https://www.funtoo.org/Funtoo:Keychain
Source0:	https://github.com/funtoo/keychain/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}.profile.sh
Source2:	%{name}.profile.csh
Requires:	gnupg2
Requires:	openssh-clients
BuildArch:	noarch

%description
Keychain is a manager for OpenSSH, ssh.com, Sun SSH and GnuPG agents.
It acts as a front-end to the agents, allowing you to easily have one
long-running agent process per system, rather than per login session.
This dramatically reduces the number of times you need to enter your
passphrase from once per new login session to once every time your
local machine is rebooted.

Run keychain once manually per user, after which keychain will run (quietly)
every time you log in (from a profile script).

Hint: If you get tired of keychain, delete ~/.keychain .

%files
%doc ChangeLog keychain.pod keychain.txt README.md
%license COPYING.txt
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_sysconfdir}/profile.d/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i -e "s,/usr/ucb:,," keychain

%build
%make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 %{name} %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/profile.d/99%{name}.sh
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/99%{name}.csh
install -d -m 755 %{buildroot}%{_mandir}/man1/
install -m 644 keychain.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13750 |21mr|keysmith-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	One-Time Password client for Plasma Mobile
Name:		keysmith
Version:	23.08.4
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		https://plasma-mobile.org/
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules >= 5.91.0
BuildRequires:	gettext
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	%{_lib}ZXing-devel
#BuildRequires:	qxmpp-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libsodium) >= 1.0.16
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Location)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
One-Time Password client for Plasma Mobile.

%files -f %{name}.lang
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_kde5_datadir}/icons/hicolor/*/*/*
%{_appdatadir}/org.kde.%{name}.appdata.xml

#----------------------------------------

%prep
%autosetup -p1


%build
%cmake_kde5
%make


%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13751 |21mr|keyutils-1.6.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	Linux Key Management Utilities
Name:		keyutils
Version:	1.6.3
Release:	5
License:	GPLv2+ and LGPLv2+
Group:		System/Base
Url:		http://people.redhat.com/~dhowells/keyutils/
Source0:	https://git.kernel.org/pub/scm/linux/kernel/git/dhowells/keyutils.git/snapshot/%{name}-%{version}.tar.gz
Patch0:		DEBIAN-cflags.patch

%description
Utilities to control the kernel key management facility and to provide
a mechanism by which the kernel call back to userspace to get a key
instantiated.

%files
%license README LICENCE.GPL LICENCE.LGPL
%doc README
%config(noreplace) %{_sysconfdir}/request-key.conf
%{_bindir}/keyctl
%{_sbindir}/request-key
%{_sbindir}/key.dns_resolver
/sbin/request-key
%{_mandir}/man1/keyctl.1.*
%{_mandir}/man5/request-key.conf.5.*
%{_mandir}/man8/request-key.8.*
%{_mandir}/man8/key.dns_resolver.8.*
%{_datadir}/%{name}/request-key-debug.sh

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Linux Key Management Utilities
Group:		System/Libraries

%description -n %{libname}
Library to control the kernel key management facility and to provide
a mechanism by which the kernel call back to userspace to get a key
instantiated.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Developement files for %{libname}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Developement files for %{libname}.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc
%{_mandir}/man3/*.3.*
%{_mandir}/man7/*.7.*
%{_mandir}/man5/*.5.*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Key utilities static library
Group:		Development/Other
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
This package provides %{name} static library.

%files -n %{sdevname}
%{_libdir}/lib%{name}.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix paths in man page and default config file
sed -i \
	-e 's,/sbin/key.dns_resolver,%{_sbindir}/key.dns_resolver,g' \
	-e 's,/sbin/request-key,%{_sbindir}/request-key,g' \
	-e 's,/bin/keyctl,%{_bindir}/keyctl,g' \
	man/* request-key.conf

%build
%make \
	ETCDIR=%{_sysconfdir} \
	BINDIR=%{_bindir} \
	SBINDIR=%{_sbindir} \
	LIBDIR=%{_libdir} \
	USRLIBDIR=%{_libdir} \
	SHAREDIR=%{_datadir}/%{name} \
	INCLUDEDIR=%{_includedir} \
	CFLAGS='%{optflags}'

%install
make ETCDIR=%{_sysconfdir} \
	BINDIR=%{_bindir} \
	SBINDIR=%{_sbindir} \
	LIBDIR=%{_libdir} \
	USRLIBDIR=%{_libdir} \
	SHAREDIR=%{_datadir}/%{name} \
	INCLUDEDIR=%{_includedir} \
	DESTDIR=%{buildroot} \
	install

pushd %{buildroot}%{_libdir}
    rm -f lib%{name}.so
    ln -s lib%{name}.so.%{major} lib%{name}.so
popd

# Linux kernel calls /sbin/request-key
# security/keys/request_key.c:117:static char const request_key[] = "/sbin/request-key"
mkdir -p  %{buildroot}/sbin
ln -s ../usr/sbin/request-key %{buildroot}/sbin/request-key
# check symlink validity
test -x %{buildroot}/sbin/request-key

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13752 |21mr|kfind-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE utility to find files
Name:		kfind
Version:	23.08.4
Release:	1
Epoch:		1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/filelight/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
The Find Files tool is a useful method of searching for specific files
on your computer, or for searching for files that match a pattern. An
example of this could include searching for files of a particular type or
with certain letters in the filename, or that contain a certain piece of
text in their contents.

KFind is a graphical tool, and not normally run from the command line.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kfind.desktop
%{_kde5_bindir}/kfind
%{_kde5_iconsdir}/hicolor/*/apps/kfind.*
%{_kde5_mandir}/man1/kfind.1*
%{_kde5_datadir}/qlogging-categories5/kfind.categories
%{_appdatadir}/org.kde.kfind.appdata.xml
#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13753 |21mr|kfloppy-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Format floppy disks
Name:		kfloppy
Version:	22.12.3
Release:	2
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/kfloppy
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	kfloppy.sh
Source2:	org.kde.pkexec.kfloppy.policy
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
# mkfs.minix, fdformat
Requires:		util-linux
# mkfs.vfat
Requires:		dosfstools
Recommends:		polkit

%description
KFloppy is a utility that provides a straightforward graphical means to
format 3.5" and 5.25" floppy disks.

%files -f %{name}.lang
%{_datadir}/applications/org.kde.kfloppy.desktop
%{_kde5_bindir}/kfloppy
%{_sbindir}/kfloppy
%{_kde5_iconsdir}/*/*/apps/kfloppy.*
%{_appdatadir}/org.kde.kfloppy.appdata.xml
%{_kde5_datadir}/qlogging-categories5/kfloppy.categories
%{_datadir}/polkit-1/actions/org.kde.pkexec.kfloppy.policy

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# make desktop file easily available on other DEs
mkdir -p %{buildroot}%{_datadir}/applications
mv -v %{buildroot}%{_kde5_applicationsdir}/*.desktop %{buildroot}%{_datadir}/applications
rmdir %{buildroot}%{_kde5_applicationsdir}

# polkit stuff, make it run from root to be able to format floppy disks
mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}%{_kde5_bindir}/kfloppy %{buildroot}%{_sbindir}/kfloppy
install -m0755 %{SOURCE1} %{buildroot}%{_kde5_bindir}/kfloppy
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/polkit-1/actions/org.kde.pkexec.kfloppy.policy

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13754 |21mr|kfourinline-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Place 4 pieces in a row
Name:		kfourinline
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kfourinline
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KFourInLine is a board game for two players based on the Connect-Four game.

The players try to build up a row of four pieces using different strategies.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kfourinline.desktop
%{_kde5_bindir}/kfourinline
%{_kde5_bindir}/kfourinlineproc
%{_kde5_datadir}/qlogging-categories5/kfourinline.categories
%{_kde5_datadir}/config.kcfg/kwin4.kcfg
%{_kde5_datadir}/kfourinline
%{_kde5_iconsdir}/hicolor/*/apps/kfourinline.png
%{_appdatadir}/org.kde.kfourinline.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13755 |21mr|kgeography-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary(ru_RU.UTF-8): Обучающая программа по географии
Summary:	A geography learning program
Name:		kgeography
Version:	23.08.4
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kgeography
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source2:	new-maps-preview.tar
Patch:		0001-fix-borders.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KGeography is a geography learning program.

%description -l ru_RU.UTF-8
KGeography - это обучающая программа по географии.

%files -f %{name}.lang
%doc README COPYING COPYING.DOC AUTHORS
%{_kde5_applicationsdir}/org.kde.kgeography.desktop
%{_kde5_bindir}/kgeography
%{_kde5_datadir}/config.kcfg/kgeography.kcfg
%{_kde5_datadir}/kgeography
%{_kde5_iconsdir}/*/*/apps/kgeography.*
%{_kde5_xmlguidir}/kgeography/kgeographyui.rc
%{_appdatadir}/org.kde.kgeography.appdata.xml
%lang(fi) %{_localedir}/fi/LC_SCRIPTS/kgeography
%lang(fr) %{_localedir}/fr/LC_SCRIPTS/kgeography
%lang(ja) %{_localedir}/ja/LC_SCRIPTS/kgeography
%lang(pl) %{_localedir}/pl/LC_SCRIPTS/kgeography
%lang(uk) %{_localedir}/uk/LC_SCRIPTS/kgeography
%lang(ml) %{_localedir}/ml/LC_SCRIPTS/kgeography

#----------------------------------------------------------------------

%prep
%autosetup -p1
tar -xvf %SOURCE2 data/
mv data/flags/{ukraine/Crimea,russia/crimea}.png
mv data/flags/{ukraine/Donetsk,russia/donetsk}.png
mv data/flags/{ukraine/Lugansk,russia/lugansk}.png
mv data/flags/{ukraine/Zaporizhya,russia/zaporozhye}.png
mv data/flags/{ukraine/Kherson,russia/kherson}.png
mv data/flags/{ukraine/Sevastopol-city,russia/sevastopol}.png

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13756 |21mr|kglobalaccel-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 global workspace shortcuts module
Name:		kglobalaccel
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5crash-devel = %{version}
BuildRequires:	kf5dbusaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5windowsystem-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-xtest)

%description
KDE Frameworks 5 global workspace shortcuts module.

KGlobalAccel allows you to have global accelerators that are independent of
the focused window. Unlike regular shortcuts, the application's window does
not need focus for them to be activated.

NOTE: Functional only with Plasma Workspaces.

%files
%{_kde5_bindir}/kglobalaccel5
%{_kde5_datadir}/qlogging-categories5/kglobalaccel.categories
%{_kde5_datadir}/qlogging-categories5/kglobalaccel.renamecategories
%{_kde5_services}/kglobalaccel5.desktop
%{_datadir}/dbus-1/services/org.kde.kglobalaccel.service
%{_qt5_plugindir}/org.kde.kglobalaccel5.platforms/KF5GlobalAccelPrivateXcb.so
%{_userunitdir}/plasma-kglobalaccel.service

#----------------------------------------------------------------------------

%package i18n
Summary:	KGlobalAccel translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KGlobalAccel translations.

%files i18n
#find_lang fails here
%{_localedir}/*/LC_MESSAGES/%{name}*.qm

#----------------------------------------------------------------------------

%define kf5globalaccel_major 5
%define libkf5globalaccel %mklibname kf5globalaccel %{kf5globalaccel_major}

%package -n %{libkf5globalaccel}
Summary:	KDE Frameworks 5 global workspace shortcuts shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5globalaccel}
KDE Frameworks 5 global workspace shortcuts shared library.

%files -n %{libkf5globalaccel}
%{_kde5_libdir}/libKF5GlobalAccel.so.%{kf5globalaccel_major}*

#----------------------------------------------------------------------------

%define kf5globalaccelprivate_major 5
%define libkf5globalaccelprivate %mklibname kf5globalaccelprivate %{kf5globalaccelprivate_major}

%package -n %{libkf5globalaccelprivate}
Summary:	KDE Frameworks 5 global workspace shortcuts shared library
Group:		System/Libraries

%description -n %{libkf5globalaccelprivate}
KDE Frameworks 5 global workspace shortcuts shared library.

%files -n %{libkf5globalaccelprivate}
%{_kde5_libdir}/libKF5GlobalAccelPrivate.so.%{kf5globalaccelprivate_major}*

#----------------------------------------------------------------------------

%define devkf5globalaccel %mklibname kf5globalaccel -d

%package -n %{devkf5globalaccel}
Summary:	Development files for KDE Frameworks 5 global workspace shortcuts
Group:		Development/KDE and Qt
Requires:	%{libkf5globalaccel} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5globalaccel-devel = %{version}
Conflicts:	%{name} < 5.7.0

%description -n %{devkf5globalaccel}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5globalaccel}
%{_kde5_includedir}/KF5/KGlobalAccel
%{_kde5_libdir}/cmake/KF5GlobalAccel
%{_kde5_libdir}/libKF5GlobalAccel.so
%{_kde5_mkspecsdir}/*.pri
%{_datadir}/dbus-1/interfaces/*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Internal library, shouldn't be used by other packages
rm -rf %{buildroot}%{_kde5_libdir}/libKF5GlobalAccelPrivate.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13757 |21mr|kgoldrunner-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A game of action and puzzle solving
Name:		kgoldrunner
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kgoldrunner
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KGoldrunner is an action game where the hero runs through a maze, climbs
stairs, dig holes and dodges enemies in order to collect all the gold nuggets
and escape to the next level. Your enemies are also after the gold. Worse
still, they are after you!.

%files -f %{name}.lang
%{_kde5_bindir}/kgoldrunner
%{_kde5_applicationsdir}/org.kde.kgoldrunner.desktop
%{_kde5_datadir}/kgoldrunner
%{_kde5_datadir}/knsrcfiles/kgoldrunner.knsrc
%{_kde5_datadir}/qlogging-categories5/kgoldrunner.categories
%{_kde5_iconsdir}/hicolor/*/apps/kgoldrunner.png
%{_appdatadir}/org.kde.kgoldrunner.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13758 |21mr|kgpg-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Control your GPG keys
Name:		kgpg
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/kgpg
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	gpgme-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5contacteditor-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KGpg is a simple interface for GnuPG, a powerful encryption utility.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kgpg.desktop
%{_kde5_autostart}/org.kde.kgpg.desktop
%{_kde5_bindir}/kgpg
%{_kde5_datadir}/config.kcfg/kgpg.kcfg
%{_kde5_datadir}/kgpg
%{_kde5_datadir}/qlogging-categories5/kgpg.categories
%{_kde5_iconsdir}/*/*/*/*
%{_kde5_datadir}/kio/servicemenus/kgpg_encryptfile.desktop
%{_kde5_datadir}/kio/servicemenus/kgpg_encryptfolder.desktop
%{_kde5_datadir}/kio/servicemenus/kgpg_viewdecrypted.desktop
%{_kde5_xmlguidir}/kgpg/*.rc
%{_appdatadir}/org.kde.kgpg.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.kgpg.Key.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13759 |21mr|kguiaddons-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 GUI addons with various classes on top of QtGui
Name:		kguiaddons
Version:	5.116.0
Release:	3
Group:		Graphical desktop/KDE
License:	GPLv2+
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	plasma-wayland-protocols-devel
Requires:	%{_lib}kf5guiaddons5 = %{EVRD}

%description
KDE Frameworks 5 GUI addons with various classes on top of QtGui.

%files
%{_kde5_applicationsdir}/google-maps-geo-handler.desktop
%{_kde5_applicationsdir}/openstreetmap-geo-handler.desktop
%{_kde5_applicationsdir}/qwant-maps-geo-handler.desktop
%{_kde5_applicationsdir}/wheelmap-geo-handler.desktop
%{_kde5_bindir}/kde-geo-uri-handler
%{_kde5_datadir}/qlogging-categories5/kguiaddons.categories

#--------------------------------------------------------------------

%define kf5guiaddons_major 5
%define libkf5guiaddons %mklibname kf5guiaddons %{kf5guiaddons_major}

%package -n %{libkf5guiaddons}
Summary:	KDE Frameworks 5 GUI addons shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5guiaddons}
KDE Frameworks 5 GUI addons shared library.

%files -n %{libkf5guiaddons}
%{_kde5_libdir}/libKF5GuiAddons.so.%{kf5guiaddons_major}*

#--------------------------------------------------------------------

%define devkf5guiaddons %mklibname kf5guiaddons -d

%package -n %{devkf5guiaddons}
Summary:	Development files for KDE Frameworks 5 GUI addons
Group:		Development/KDE and Qt
Requires:	%{libkf5guiaddons} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5guiaddons-devel = %{version}

%description -n %{devkf5guiaddons}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5guiaddons}
%{_kde5_includedir}/KF5/KGuiAddons
%{_kde5_libdir}/cmake/KF5GuiAddons
%{_kde5_libdir}/libKF5GuiAddons.so
%{_kde5_mkspecsdir}/*.pri

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13760 |21mr|khangman-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Classical hangman game
Name:		khangman
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/khangman
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libkeduvocdocument-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kdeedu-data
Obsoletes:	%{_lib}khangmanengine4 < 16.08.2
Obsoletes:	khangman-devel < 16.08.2

%description
KHangman is the classical hangman game. The child should guess a word
letter by letter. At each miss, the picture of a hangman appears. After
10 tries, if the word is not guessed, the game is over and the answer
is displayed.

%files -f %{name}.lang
%doc COPYING COPYING.DOC README
%{_kde5_applicationsdir}/org.kde.khangman.desktop
%{_kde5_bindir}/khangman
%{_kde5_datadir}/khangman
%{_kde5_datadir}/config.kcfg/khangman.kcfg
%{_kde5_iconsdir}/*/*/apps/khangman*
%{_kde5_mandir}/man6/khangman.6.*
%{_kde5_sysconfdir}/xdg/khangman.knsrc
%{_appdatadir}/org.kde.khangman.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man6/*

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13761 |21mr|kholidays-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 holidays module
Name:		kholidays
Version:	5.116.0
Release:	3
Epoch:		1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 holidays module.

%files
%{_kde5_datadir}/qlogging-categories5/kholidays.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 holidays library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 holidays library translations.

%files i18n -f libkholidays5.lang

#----------------------------------------------------------------------------

%define qmlkf5holidays %mklibname kf5holidays-qml

%package -n %{qmlkf5holidays}
Summary:	QML plugin for KDE Frameworks 5 holidays
Group:		System/Libraries
Provides:	kf5holidays-qml = %{EVRD}

%description -n %{qmlkf5holidays}
QML plugin for KDE Frameworks 5 holidays.

%files -n %{qmlkf5holidays}
%dir %{_kde5_qmldir}/org/kde/kholidays/
%{_kde5_qmldir}/org/kde/kholidays/*

#----------------------------------------------------------------------------

%define kf5holidays_major 5
%define libkf5holidays %mklibname kf5holidays %{kf5holidays_major}

%package -n %{libkf5holidays}
Summary:	KDE Frameworks 5 holidays shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	kf5holidays-qml = %{EVRD}

%description -n %{libkf5holidays}
KDE Frameworks 5 holidays shared library.

%files -n %{libkf5holidays}
%{_kde5_libdir}/libKF5Holidays.so.%{kf5holidays_major}*

#----------------------------------------------------------------------------

%define devkf5holidays %mklibname kf5holidays -d

%package -n %{devkf5holidays}
Summary:	Development files for KDE Frameworks 5 holidays module
Group:		Development/KDE and Qt
Requires:	%{libkf5holidays} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5holidays-devel = %{version}

%description -n %{devkf5holidays}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5holidays}
%{_kde5_includedir}/KF5/KHolidays
%{_kde5_libdir}/cmake/KF5Holidays
%{_kde5_libdir}/libKF5Holidays.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkholidays5 --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13762 |21mr|khtml-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 HTML rendering engine
Name:		khtml
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	gperf
BuildRequires:	qt5-linguist-tools
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	kf5archive-devel = %{version}
BuildRequires:	kf5codecs-devel = %{version}
BuildRequires:	kf5globalaccel-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5js-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5notifications-devel = %{version}
BuildRequires:	kf5parts-devel = %{version}
BuildRequires:	kf5textwidgets-devel = %{version}
BuildRequires:	kf5wallet-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	kf5windowsystem-devel = %{version}
BuildRequires:	kf5xmlgui-devel = %{version}
BuildRequires:	sonnet-devel = %{version}
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)

%description
KDE Frameworks 5 HTML rendering engine.

KHTML is a web rendering engine, based on the KParts technology and using KJS
for JavaScript support.

%files
%dir %{_kde5_datadir}/kf5/khtml/
%{_kde5_datadir}/kf5/khtml/*
%{_kde5_datadir}/qlogging-categories5/khtml.categories
%{_kde5_datadir}/qlogging-categories5/khtml.renamecategories
%{_kde5_plugindir}/parts/*.so
%{_kde5_services}/*.desktop
%{_kde5_sysconfdir}/xdg/khtmlrc

#----------------------------------------------------------------------------

%package i18n
Summary:	KHtml translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KHtml translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5khtml_major 5
%define libkf5khtml %mklibname kf5khtml %{kf5khtml_major}

%package -n %{libkf5khtml}
Summary:	KDE Frameworks 5 HTML rendering engine shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5khtml}
KDE Frameworks 5 HTML rendering engine shared library.

%files -n %{libkf5khtml}
%{_kde5_libdir}/libKF5KHtml.so.%{kf5khtml_major}*

#----------------------------------------------------------------------------

%define devkf5khtml %mklibname kf5khtml -d

%package -n %{devkf5khtml}
Summary:	Development files for KDE Frameworks 5 HTML rendering engine
Group:		Development/KDE and Qt
Requires:	%{libkf5khtml} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5khtml-devel = %{version}

%description -n %{devkf5khtml}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5khtml}
%{_kde5_includedir}/KF5/KHtml
%{_kde5_libdir}/cmake/KF5KHtml
%{_kde5_libdir}/libKF5KHtml.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# Workaround segfault caused by race condition
%global optflags %{optflags} -O0
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13763 |21mr|ki18n-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 advanced internationalization framework
Name:		ki18n
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
# Prefer locales from /usr/share/locale/kf5 if they exist
Patch0:		ki18n-localepath.patch
# Try translations from mandriva-kde-translation as fallback
Patch1:		ki18n-extra-catalog.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 advanced internationalization framework.

KI18n provides functionality for internationalizing user interface text
in applications, based on the GNU Gettext translation system.
It wraps the standard Gettext functionality, so that the programmers
and translators can use the familiar Gettext tools and workflows.

KI18n provides additional functionality as well, for both programmers
and translators, which can help to achieve a higher overall quality
of source and translated text. This includes argument capturing,
customizable markup, and translation scripting.

%files
%{_kde5_datadir}/qlogging-categories5/ki18n.categories
%{_kde5_datadir}/qlogging-categories5/ki18n.renamecategories
%{_kde5_plugindir}/ktranscript.so
%{_kde5_libdir}/qt5/qml/org/kde/i18n/localeData/libki18nlocaledataqmlplugin.so
%{_kde5_libdir}/qt5/qml/org/kde/i18n/localeData/qmldir

#----------------------------------------------------------------------------

%package i18n
Summary:	KI18n translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KI18n translations.

%files i18n -f %{name}.lang
%lang(ca) %{_datadir}/locale/ca/LC_SCRIPTS
%lang(ca) %{_datadir}/locale/ca@valencia/LC_SCRIPTS
%lang(fi) %{_datadir}/locale/fi/LC_SCRIPTS
%lang(gd) %{_datadir}/locale/gd/LC_SCRIPTS
%lang(ja) %{_datadir}/locale/ja/LC_SCRIPTS
%lang(ko) %{_datadir}/locale/ko/LC_SCRIPTS
%lang(nb) %{_datadir}/locale/nb/LC_SCRIPTS
%lang(nn) %{_datadir}/locale/nn/LC_SCRIPTS
%lang(ru) %{_datadir}/locale/ru/LC_SCRIPTS
%lang(sr) %{_datadir}/locale/sr/LC_SCRIPTS
%lang(sr) %{_datadir}/locale/sr@ijekavian/LC_SCRIPTS
%lang(sr) %{_datadir}/locale/sr@ijekavianlatin/LC_SCRIPTS
%lang(sr) %{_datadir}/locale/sr@latin/LC_SCRIPTS
%lang(uk) %{_datadir}/locale/uk/LC_SCRIPTS

#----------------------------------------------------------------------------

%define kf5i18n_major 5
%define libkf5i18n %mklibname kf5i18n %{kf5i18n_major}

%package -n %{libkf5i18n}
Summary:	KDE Frameworks 5 internationalization shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5i18n}
KDE Frameworks 5 internationalization shared library.

%files -n %{libkf5i18n}
%{_kde5_libdir}/libKF5I18n.so.%{kf5i18n_major}*

#----------------------------------------------------------------------------

%define kf5ld_major 5
%define libkf5localedata %mklibname kf5localedata %{kf5ld_major}

%package -n %{libkf5localedata}
Summary:	KDE Frameworks 5 internationalization shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:   %{libkf5i18n} = %{EVRD}

%description -n %{libkf5localedata}
KDE Frameworks 5 internationalization shared library.

%files -n %{libkf5localedata}
%{_kde5_libdir}/libKF5I18nLocaleData.so.%{kf5ld_major}*

#----------------------------------------------------------------------------

%define devkf5i18n %mklibname kf5i18n -d

%package -n %{devkf5i18n}
Summary:	Development files for KDE Frameworks 5 internationalization framework
Group:		Development/KDE and Qt
Requires:	%{libkf5i18n} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5i18n-devel = %{version}

%description -n %{devkf5i18n}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5i18n}
%{_kde5_includedir}/KF5/KI18n
%{_kde5_includedir}/KF5/KI18nLocaleData/*
%{_kde5_libdir}/cmake/KF5I18n
%{_kde5_libdir}/libKF5I18n.so
%{_kde5_libdir}/libKF5I18nLocaleData.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1

%build
%cmake_kde5
%make_build

%install
%make_install -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13764 |21mr|kiconthemes-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 icon themes support module
Name:		kiconthemes
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5archive-devel = %{version}
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5itemviews-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	%{_lib}kf5iconthemes5 = %{EVRD}

%description
KDE Frameworks 5 icon themes support module.

%files
%{_kde5_datadir}/qlogging-categories5/kiconthemes.categories
%{_kde5_datadir}/qlogging-categories5/kiconthemes.renamecategories
%{_kde5_bindir}/kiconfinder5
%{_qt5_plugindir}/iconengines/KIconEnginePlugin.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KIconThemes translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KIconThemes translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kiconthemes5widgets.so

#----------------------------------------------------------------------------

%define kf5iconthemes_major 5
%define libkf5iconthemes %mklibname kf5iconthemes %{kf5iconthemes_major}

%package -n %{libkf5iconthemes}
Summary:	KDE Frameworks 5 icon themes support shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5iconthemes}
KDE Frameworks 5 icon themes support shared library.

%files -n %{libkf5iconthemes}
%{_kde5_libdir}/libKF5IconThemes.so.%{kf5iconthemes_major}*

#----------------------------------------------------------------------------

%define devkf5iconthemes %mklibname kf5iconthemes -d

%package -n %{devkf5iconthemes}
Summary:	Development files for KDE Frameworks 5 icon themes support module
Group:		Development/KDE and Qt
Requires:	%{libkf5iconthemes} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5iconthemes-devel = %{version}

%description -n %{devkf5iconthemes}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5iconthemes}
%{_kde5_includedir}/KF5/KIconThemes
%{_kde5_libdir}/cmake/KF5IconThemes
%{_kde5_libdir}/libKF5IconThemes.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13765 |21mr|kid3-3.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround build failure
%global	debug_package %{nil}

%define	use_gstreamer	0
%define	with_cli	1

%define	major		%{version}
%define	libname	%mklibname %{name}

Summary:	ID3 Tagger
Name:		kid3
Version:	3.9.2
Release:	2
License:	GPLv2+
Group:		Sound
Url:			https://kid3.kde.org
Source0:	https://sourceforge.net/projects/kid3/files/%{name}/%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake >= 3.12.0
BuildRequires:	extra-cmake-modules
BuildRequires:	gettext
BuildRequires:	kde5-macros
BuildRequires:	python3
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
# For docs
BuildRequires:	docbook-style-xsl >= 1.72.0
BuildRequires:	xsltproc
%if %{use_gstreamer}
BuildRequires:	gstreamer1.0-devel >= 1.0
%else
BuildRequires:	ffmpeg-devel
%endif
BuildRequires:	id3lib-devel
BuildRequires:	kconfig-devel
BuildRequires:	kconfigwidgets-devel
BuildRequires:	kcoreaddons-devel
BuildRequires:	kdoctools-devel
BuildRequires:	kio-devel
BuildRequires:	kxmlgui-devel
BuildRequires:	libmp4v2-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(flac++)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(taglib) >= 1.8
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	xdg-utils
Requires:	%{libname} = %{EVRD}

%description
If you want to easily tag multiple MP3, Ogg/Vorbis, FLAC, MPC, MP4/AAC, MP2,
Speex, TrueAudio, WavPack, WMA, WAV and AIFF files (e.g. full albums) without
typing the same information again and again, and have control over both ID3v1
and ID3v2 tags, then Kid3 is the program you are looking for.
With Kid3 you can:
- Edit ID3v1.1 tags
- Edit all ID3v2.3 and ID3v2.4 frames
- Convert between ID3v1.1, ID3v2.3 and ID3v2.4 tags
- Edit tags of multiple files
- Generate tags from filenames
- Generate filenames from tags
- Generate play-list files
- Automatic case conversion and string translation
- Import and export album data
- Import from gnudb.org, TrackType.org, MusicBrainz, Discogs and Amazon.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING LICENSE README
#{_kde5_docdir}/HTML/*/%%{name}/*
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_kde5_xmlguidir}/%{name}/kid3ui.rc
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.png
%{_kde5_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_kde5_mandir}/man1/%{name}.1*
%{_kde5_mandir}/*/man1/%{name}.1*
%{_datadir}/metainfo/org.kde.%{name}.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.Kid3.xml

#--------------------------------------------------------------------

%package	qt
Summary:	Efficient ID3 tag editor - Qt version
Group:		Sound
Requires:	xdg-utils
Requires:	%{libname} = %{EVRD}

%description	qt
If you want to easily tag multiple MP3, Ogg/Vorbis, FLAC, MPC, MP4/AAC, MP2,
Speex, TrueAudio and WavPack files (e.g. full albums) without typing the same
information again and again and have control over both ID3v1 and ID3v2 tags,
then Kid3 is the program you are looking for.
This package provides Kid3 built without KDE dependencies.

%files qt
%doc %{_docdir}/%{name}-qt/
%{_docdir}/%{name}/*.html
%{_bindir}/%{name}-qt
%{_datadir}/applications/org.kde.%{name}-qt.desktop
%{_datadir}/metainfo/org.kde.%{name}-qt.appdata.xml
%{_datadir}/icons/hicolor/*/apps/%{name}-qt.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}-qt.svg
%{_mandir}/man1/%{name}-qt.1*
%{_mandir}/*/man1/%{name}-qt.1*

#--------------------------------------------------------------------

%if %{with_cli}
%package	cli
Summary:	Efficient ID3 tag editor - command line version
Group:		Sound
Requires:	xdg-utils
Requires:	%{libname} = %{EVRD}

%description	cli
If you want to easily tag multiple MP3, Ogg/Vorbis, FLAC, MPC, MP4/AAC, MP2,
Speex, TrueAudio and WavPack files (e.g. full albums) without typing the same
information again and again and have control over both ID3v1 and ID3v2 tags,
then Kid3 is the program you are looking for.
This package provides Kid3 built for command line use.

%files cli
%doc %{_docdir}/%{name}-cli/
%{_bindir}/%{name}-cli
%{_mandir}/man1/%{name}-cli.1*
%{_mandir}/*/man1/%{name}-cli.1*
%endif

#-----------------------------------------------------------------------------

%package	-n %{libname}
Summary:	Efficient ID3 tag editor
Group:		Sound

%description	-n %{libname}
If you want to easily tag multiple MP3, Ogg/Vorbis, FLAC, MPC, MP4/AAC, MP2,
Speex, TrueAudio and WavPack files (e.g. full albums) without typing the same
information again and again and have control over both ID3v1 and ID3v2 tags,
then Kid3 is the program you are looking for.
This package provides the shared libraries and the common files needed
by the Kid3 packages.

%files -n %{libname}
%doc COPYING
%dir %{_libdir}/%{name}/plugins/imports/
%dir %{_libdir}/%{name}/plugins/imports/Kid3/
%{_libdir}/%{name}/lib*.so
%{_libdir}/%{name}/plugins/lib*.so
%{_libdir}/%{name}/plugins/imports/Kid3/*
%{_datadir}/%{name}/qml/script/*.qml
%{_datadir}/%{name}/translations/*.qm

#--------------------------------------------------------------------

%prep
%setup -q


%build
# First build the KDE 5 and Qt5 versions
%cmake_kde5	.. \
		-DCMAKE_SKIP_RPATH=OFF -DWITH_APPS="KDE;Qt" \
		-DWITH_TAGLIB=ON -DWITH_MP4V2=ON \
		-DWITH_ID3LIB=ON -DWITH_VORBIS=ON \
		-DWITH_FLAC=ON -DWITH_CHROMAPRINT=ON \
		-DWITH_MULTIMEDIA=ON \
%if %{use_gstreamer}
		-DWITH_GSTREAMER=ON -DWITH_FFMPEG=OFF \
%else
		-DWITH_GSTREAMER=OFF -DWITH_FFMPEG=ON \
%endif
		-DWITH_DOCDIR=share/doc/%{name}
%make

cd ..

# Then build the "CLI" version
%if %{with_cli}
mkdir cli
cd cli
%cmake	../.. -DWITH_APPS="CLI" \
		-DWITH_TAGLIB=ON -DWITH_MP4V2=ON \
		-DWITH_ID3LIB=ON -DWITH_VORBIS=ON \
		-DWITH_FLAC=ON -DWITH_CHROMAPRINT=ON \
%if %{use_gstreamer}
		-DWITH_GSTREAMER=ON -DWITH_FFMPEG=OFF \
%else
		-DWITH_GSTREAMER=OFF -DWITH_FFMPEG=ON \
%endif
		-DWITH_DOCDIR=share/doc/%{name}-cli
%make
%endif


%install
%makeinstall_std -C build

%if %{with_cli}
%makeinstall_std -C cli/build
%endif

# Install docs for Qt5 and CLI flavors
mkdir -p %{buildroot}%{_docdir}/%{name}-qt
install -pm 644 AUTHORS ChangeLog COPYING LICENSE README %{buildroot}%{_docdir}/%{name}-qt
%if %{with_cli}
mkdir -p %{buildroot}%{_docdir}/%{name}-cli
install -pm 644 AUTHORS ChangeLog COPYING LICENSE README %{buildroot}%{_docdir}/%{name}-cli
%endif

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_kde5_iconsdir}/hicolor/scalable/apps/
zcat %{name}.svgz > %{name}.svg && rm -f %{name}.svgz
)

# This only finds the files for the KDE version
%find_lang %{name} --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13766 |21mr|kidentitymanagement-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 PIM identity management module
Name:		kidentitymanagement
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 PIM identity management module.

%files
%{_kde5_datadir}/qlogging-categories5/kidentitymanagement.categories
%{_kde5_datadir}/qlogging-categories5/kidentitymanagement.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 PIM identity management library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 PIM identity management library translations.

%files i18n -f libkpimidentities5.lang

#----------------------------------------------------------------------------

%define kf5identitymanagement_major 5
%define libkf5identitymanagement %mklibname kf5identitymanagement %{kf5identitymanagement_major}

%package -n %{libkf5identitymanagement}
Summary:	KDE Frameworks 5 PIM identity management shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5identitymanagement}
KDE Frameworks 5 PIM identity management shared library.

%files -n %{libkf5identitymanagement}
%{_kde5_libdir}/libKPim5IdentityManagement.so.%{kf5identitymanagement_major}*

#----------------------------------------------------------------------------

%define kf5identitymanagementwidgets_major 5
%define libkf5identitymanagementwidgets %mklibname kf5identitymanagementwidgets %{kf5identitymanagementwidgets_major}

%package -n %{libkf5identitymanagementwidgets}
Summary:	KDE Frameworks 5 PIM identity management shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5identitymanagementwidgets}
KDE Frameworks 5 PIM identity management shared library.

%files -n %{libkf5identitymanagementwidgets}
%{_kde5_libdir}/libKPim5IdentityManagementWidgets.so.%{kf5identitymanagementwidgets_major}*

#----------------------------------------------------------------------------

%define devkf5identitymanagement %mklibname kf5identitymanagement -d

%package -n %{devkf5identitymanagement}
Summary:	Development files for KDE Frameworks 5 PIM identity management module
Group:		Development/KDE and Qt
Requires:	%{libkf5identitymanagement} = %{EVRD}
Requires:	%{libkf5identitymanagementwidgets} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5identitymanagement-devel = %{version}

%description -n %{devkf5identitymanagement}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5identitymanagement}
%{_kde5_includedir}/KPim5/KIdentityManagement
%{_kde5_includedir}/KPim5/KIdentityManagementWidgets
%{_kde5_libdir}/cmake/KF5IdentityManagement
%{_kde5_libdir}/cmake/KPim5IdentityManagement
%{_kde5_libdir}/libKPim5IdentityManagement.so
%{_kde5_libdir}/libKPim5IdentityManagementWidgets.so
%{_kde5_mkspecsdir}/*.pri
%{_datadir}/dbus-1/interfaces/kf5_org.kde.pim.IdentityManager.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkpimidentities5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13767 |21mr|kidletime-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 user activity monitoring module
Name:		kidletime
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11-xcb)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-sync)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	plasma-wayland-protocols-devel

%description
KDE Frameworks 5 user activity monitoring module.

KIdleTime is a singleton reporting information on idle time. It is useful
not only for finding out about the current idle time of the PC, but also
for getting notified upon idle time events, such as custom timeouts, or
user activity.

%files
%{_kde5_datadir}/qlogging-categories5/kidletime.categories
%{_kde5_datadir}/qlogging-categories5/kidletime.renamecategories
%{_kde5_plugindir}/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin0.so
%{_kde5_plugindir}/org.kde.kidletime.platforms/KF5IdleTimeXcbPlugin1.so
%{_kde5_plugindir}/org.kde.kidletime.platforms/KF5IdleTimeWaylandPlugin.so

#----------------------------------------------------------------------------

%define kf5idletime_major 5
%define libkf5idletime %mklibname kf5idletime %{kf5idletime_major}

%package -n %{libkf5idletime}
Summary:	KDE Frameworks 5 user activity monitoring shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5idletime}
KDE Frameworks 5 user activity monitoring shared library.

%files -n %{libkf5idletime}
%{_kde5_libdir}/libKF5IdleTime.so.%{kf5idletime_major}*

#----------------------------------------------------------------------------

%define devkf5idletime %mklibname kf5idletime -d

%package -n %{devkf5idletime}
Summary:	Development files for KDE Frameworks 5 user activity monitoring module
Group:		Development/KDE and Qt
Requires:	%{libkf5idletime} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5idletime-devel = %{version}

%description -n %{devkf5idletime}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5idletime}
%{_kde5_includedir}/KF5/KIdleTime
%{_kde5_libdir}/cmake/KF5IdleTime
%{_kde5_libdir}/libKF5IdleTime.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13768 |21mr|kig-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Interactive Geometry
Name:		kig
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5XmlPatterns)

%description
Kig is a program for use in math classes in high school, to allow
students to interactively explore geometric concepts.

%files -f %{name}.lang
%doc AUTHORS ChangeLog
%{_kde5_applicationsdir}/org.kde.kig.desktop
%{_kde5_bindir}/kig
%{_kde5_bindir}/pykig.py
%{_kde5_datadir}/katepart5/syntax/python-kig.xml
%{_kde5_datadir}/kig/
%{_kde5_iconsdir}/*/*/apps/kig.*
%{_kde5_iconsdir}/*/*/mimetypes/application-x-kig.*
%{_kde5_mandir}/man1/kig.1.*
%{_kde5_xmlguidir}/kig/*.rc
%{_appdatadir}/org.kde.kig.appdata.xml
%{_kde5_plugindir}/parts/kigpart.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} kfile_drgeo kfile_kig %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13769 |21mr|kigo-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Go board game for KDE
Name:		kigo
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kigo/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	gnugo

%description
Kigo is an open-source implementation of the popular Go game.

Go is a strategic board game for two players. It is also known as igo
(Japanese), weiqi or wei ch'i (Chinese) or baduk (Korean).
Go is noted for being rich in strategic complexity despite its simple rules.
The game is played by two players who alternately place black and white stones
(playing pieces, now usually made of glass or plastic) on the vacant
intersections of a grid of 19x19 lines (9x9 or 13x13 for easier games).

%files -f %{name}.lang
%{_kde5_bindir}/kigo
%{_kde5_applicationsdir}/org.kde.kigo.desktop
%{_kde5_datadir}/kigo
%{_kde5_datadir}/config.kcfg/kigo.kcfg
%{_kde5_datadir}/knsrcfiles/kigo-games.knsrc
%{_kde5_datadir}/knsrcfiles/kigo.knsrc
%{_kde5_datadir}/qlogging-categories5/kigo.categories
%{_kde5_iconsdir}/*/*/apps/kigo.png
%{_appdatadir}/org.kde.kigo.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13770 |21mr|killbots-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE port of the classic BSD console game robots
Name:		killbots
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/killbots/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Killbots is a simple game of evading killer robots.

Who created the robots and why they have been programmed to destroy, no one
knows. All that is known is that the robots are numerous and their sole
objective is to destroy you. Fortunately for you, their creator has focused on
quantity rather than quality and as a result the robots are severely lacking
in intelligence. Your superior wit and a fancy teleportation device are your
only weapons against the never-ending stream of mindless automatons.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.killbots.desktop
%{_kde5_bindir}/killbots
%{_kde5_datadir}/config.kcfg/killbots.kcfg
%{_kde5_datadir}/killbots
%{_kde5_datadir}/qlogging-categories5/killbots.categories
%{_kde5_iconsdir}/hicolor/*/apps/killbots.*
%{_appdatadir}/org.kde.killbots.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13771 |21mr|kimageannotator-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		kImageAnnotator
%define	major		%{version}
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		kimageannotator
Version:	0.6.0
Release:	2
Summary:	Tool for annotating images
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		https://github.com/ksnip/kImageAnnotator
Source0:		https://github.com/ksnip/kImageAnnotator/archive/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: qmake5
BuildRequires:  qt5-linguist-tools
BuildRequires: kcolorpicker-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(x11)

%description
kImageAnnotator is a tool for annotating images.

#------------------------------------------------

%package -n	%{libname}
Summary:	Tool for annotating images
Group:		System/Libraries
Conflicts:	%{_lib}kimageannotator0.5.1
Obsoletes:	%{_lib}kimageannotator0.5.1 < 0.6.0

%description -n	%{libname}
kImageAnnotator is a tool for annotating images.

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
Header files for development with %{name}.

#------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
	-DBUILD_EXAMPLE=ON
%make_build

%install
%make_install -C build

%files -n %{libname}
%license LICENSE
%doc CHANGELOG.md README.md
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.0
%{_datadir}/kImageAnnotator/translations/kImageAnnotator_*.qm

%files -n %{develname}
%doc CHANGELOG.md README.md
%{_includedir}/%{oname}/
%{_libdir}/lib%{oname}.so
%{_libdir}/cmake/%{oname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13772 |21mr|kimageannotator-0.6.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		kImageAnnotator
%define	major		%{version}
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		kimageannotator
Version:	0.6.0
Release:	3
Summary:	Tool for annotating images
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		https://github.com/ksnip/kImageAnnotator
Source0:		https://github.com/ksnip/kImageAnnotator/archive/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires: cmake
BuildRequires: qmake5
BuildRequires:  qt5-linguist-tools
BuildRequires: kcolorpicker-devel
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Svg)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(x11)

%description
kImageAnnotator is a tool for annotating images.

#------------------------------------------------

%package -n	%{libname}
Summary:	Tool for annotating images
Group:		System/Libraries
Conflicts:	%{_lib}kimageannotator0.5.1
Obsoletes:	%{_lib}kimageannotator0.5.1 < 0.6.0

%description -n	%{libname}
kImageAnnotator is a tool for annotating images.

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
Header files for development with %{name}.

#------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
	-DBUILD_EXAMPLE=ON
%make_build

%install
%make_install -C build

%files -n %{libname}
%license LICENSE
%doc CHANGELOG.md README.md
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.0
%{_datadir}/kImageAnnotator/translations/kImageAnnotator_*.qm

%files -n %{develname}
%doc CHANGELOG.md README.md
%{_includedir}/%{oname}/
%{_libdir}/lib%{oname}.so
%{_libdir}/cmake/%{oname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13773 |21mr|kimageformats-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 image format plugins for Qt
Name:		kimageformats
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	openexr3-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libjxl)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libavif)
BuildRequires:	pkgconfig(zlib)

%description
KDE Frameworks 5 image format plugins for Qt.

This framework provides additional image format plugins for QtGui. As
such it is not required for the compilation of any other software, but
may be a runtime requirement for Qt-based software to support certain
image formats.

%files
%{_qt5_plugindir}/imageformats/*.so
%{_kde5_services}/qimageioplugins/*.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
    -DKIMAGEFORMATS_HEIF=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13774 |21mr|kimagemapeditor-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE HTML image map editor
Name:		kimagemapeditor
Version:	23.08.4
Release:	1
Epoch:		1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
Conflicts:	kfilereplace < 1:16.08.2-3

%description
KDE HTML image map editor.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kimagemapeditor.desktop
%{_kde5_bindir}/kimagemapeditor
%{_kde5_datadir}/kimagemapeditor/
%{_kde5_iconsdir}/hicolor/*/apps/kimagemapeditor.*
%{_kde5_iconsdir}/hicolor/22x22/actions/*
%{_kde5_services}/kimagemapeditorpart.desktop
%{_appdatadir}/org.kde.kimagemapeditor.appdata.xml
%{_qt5_plugindir}/kf5/parts/kimagemapeditorpart.so
%{_kde5_datadir}/qlogging-categories5/kimagemapeditor.categories

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13775 |21mr|kimap2-0.4.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Next Generation IMAP Library
Name:           kimap2
Version:        0.4.0
Release:        4
License:        GPLv2+
Group:          System/Base
URL:            https://www.kde.org/
Source0:        https://download.kde.org/unstable/%{name}/%{version}/src/%{name}-v%{version}.tar.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5mime-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(libsasl2)

%description
Next Generation IMAP Library.

#------------------------------------------------------------------------------

%define kf5imap2_major 0
%define libkf5imap2 %mklibname kf5imap2 %{kf5imap2_major}

%package -n %{libkf5imap2}
Summary:        Next Generation IMAP Library
Group:          System/Libraries

%description -n %{libkf5imap2}
Next Generation IMAP Library.

%files -n %{libkf5imap2}
%{_kde5_libdir}/libKIMAP2.so.%{kf5imap2_major}*

#------------------------------------------------------------------------------

%define devkf5imap2 %mklibname kf5imap2 -d

%package -n %{devkf5imap2}
Summary:        Devel stuff for %{name}
Group:          Development/KDE and Qt
Requires:       %{libkf5imap2} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}
Provides:       kf5imap2-devel = %{EVRD}

%description -n %{devkf5imap2}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5imap2}
%{_includedir}/KIMAP2/
%{_includedir}/kimap2test/
%{_includedir}/kimap2/
%{_includedir}/kimap2_version.h
%{_kde5_libdir}/libKIMAP2.so
%{_kde5_libdir}/cmake/KIMAP2/
%{_kde5_libdir}/qt5/mkspecs/modules/qt_KIMAP2.pri

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
rm -f %{buildroot}%{_libdir}/libkimap2test.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13776 |21mr|kimap-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Frameworks 5 IMAP module
Name:		kimap
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kdelibs4support-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	boost-devel

%description
KDE Frameworks 5 IMAP module.

%files
%{_kde5_datadir}/qlogging-categories5/kimap.categories
%{_kde5_datadir}/qlogging-categories5/kimap.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 IMAP library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 IMAP library translations.

%files i18n -f libkimap5.lang

#----------------------------------------------------------------------------

%define kf5imap_major 5
%define libkf5imap %mklibname kf5imap %{kf5imap_major}

%package -n %{libkf5imap}
Summary:	KDE Frameworks 5 IMAP shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5imap}
KDE Frameworks 5 IMAP shared library.

%files -n %{libkf5imap}
%{_kde5_libdir}/libKPim5IMAP.so.%{kf5imap_major}*

#----------------------------------------------------------------------------

%define devkf5imap %mklibname kf5imap -d

%package -n %{devkf5imap}
Summary:	Development files for KDE Frameworks 5 IMAP module
Group:		Development/KDE and Qt
Requires:	%{libkf5imap} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5imap-devel = %{version}
Conflicts:	kdepimlibs4-devel

%description -n %{devkf5imap}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5imap}
%{_kde5_includedir}/KPim5/KIMAP
%{_kde5_includedir}/KPim5/KIMAPTest
%{_kde5_libdir}/cmake/KF5IMAP
%{_kde5_libdir}/cmake/KPim5IMAP
%{_kde5_libdir}/libKPim5IMAP.so
%{_kde5_libdir}/libkimaptest.a
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkimap5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13777 |21mr|kinit-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 process launcher to speed up launching KDE applications
Name:		kinit
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5crash-devel = %{version}
BuildRequires:	kf5doctools-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5windowsystem-devel = %{version}
BuildRequires:	kf5dbusaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(x11)
# We could also use libcap-devel and libcap-utils but
# 4755 for start_kdeinit is enough, see CMakeLists.txt
Requires:	%{name}-i18n = %{EVRD}

%description
KDE Frameworks 5 process launcher to speed up launching KDE applications.

It launches processes by forking and then loading a dynamic library which
should contain a 'kdemain(...)' function.

Using kdeinit to launch KDE applications makes starting a typical KDE
applications 2.5 times faster (100ms instead of 250ms on a P-III 500) It
reduces memory consumption by approx. 350Kb per application.

%files
%{_kde5_bindir}/*
%{_kde5_datadir}/qlogging-categories5/kinit.categories
%{_kde5_datadir}/qlogging-categories5/kinit.renamecategories
%{_kde5_mandir}/man8/kdeinit5.8*
%{_kde5_libdir}/libkdeinit5_klauncher.so
%{_kde5_libexecdir}/kf5/klauncher
# 4755 is recommended by upstream but it breaks id command for user
# attr(4755,root,root) %%{_kde5_libexecdir}/kf5/start_kdeinit
%{_kde5_libexecdir}/kf5/start_kdeinit
%{_kde5_libexecdir}/kf5/start_kdeinit_wrapper

#----------------------------------------------------------------------------

%package i18n
Summary:	KInit translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KInit translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define devkf5init %mklibname kf5init -d

%package -n %{devkf5init}
Summary:	Development files for KDE Frameworks 5 process launcher
Group:		Development/KDE and Qt
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5init-devel = %{version}

%description -n %{devkf5init}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5init}
%{_kde5_libdir}/cmake/KF5Init
%{_datadir}/dbus-1/interfaces/kf5_org.kde.*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13778 |21mr|kio-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CMake files check for Qt 6.x already, but it's not used yet,
# so let's not make it a hard dependency
%global __requires_exclude ^.*qt6.*$

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 resource and network access abstraction module
Name:		kio
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
# Fix: https://invent.kde.org/frameworks/kio/-/commit/341a75c7e42ea8bcea07d0a0c0044a5a4f342e07
Patch0:		https://invent.kde.org/frameworks/kio/-/commit/341a75c7e42ea8bcea07d0a0c0044a5a4f342e07.patch
# Backport: https://invent.kde.org/frameworks/kio/-/merge_requests/1532
Patch1:		slow-items-mimetype-fix.patch
# Backport: https://invent.kde.org/frameworks/kio/-/merge_requests/1534
Patch2:		slow-files-as-remote.patch
# Backport: https://invent.kde.org/frameworks/kio/-/merge_requests/1533
Patch3:		remote-dirs-preview.patch
Patch4:		remove-ellipsis-from-file-templates-names.patch
# Backport: https://invent.kde.org/frameworks/kio/-/merge_requests/1653
Patch5:		kdirmodel-fix-first-item-was-hidden.patch
# Change display name for network places
# in format: `folder name (full path)` instead of `full path`
Patch6:		network-places-short-name.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	acl-devel
BuildRequires:	attr-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5kded-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5UiPlugin)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(com_err)
BuildRequires:	acl-devel

%description
KDE Frameworks 5 resource and network access abstraction module.

This framework implements almost all the file management functions you
will ever need. In fact, the KDE file manager (Dolphin) and the KDE
file dialog also uses this to provide its network-enabled file management.

It supports accessing files locally as well as via HTTP and FTP out of the
box and can be extended by plugins to support other protocols as well. There
is a variety of plugins available, e.g. to support access via SSH.

The framework can also be used to bridge a native protocol to a file-based
interface. This makes the data accessible in all applications using the KDE
file dialog or any other KIO enabled infrastructure.

%files
%{_kde5_applicationsdir}/*.desktop
%{_kde5_bindir}/*
%{_kde5_datadir}/kconf_update/filepicker.upd
%{_kde5_datadir}/kf5/kcookiejar/domain_info
%{_kde5_datadir}/qlogging-categories5/kio.categories
%{_kde5_datadir}/qlogging-categories5/kio.renamecategories
%{_kde5_libexecdir}/kf5/*
%{_kde5_mandir}/man8/*.8*
%{_kde5_notificationsdir}/*.notifyrc
%{_kde5_plugindir}/kded/*.so
%{_kde5_plugindir}/kio/*.so
%{_kde5_plugindir}/kiod/*.so
%{_kde5_plugindir}/urifilters/*.so
%{_kde5_services}/*.desktop
%{_kde5_services}/searchproviders/*.desktop
%{_kde5_servicetypes}/*.desktop
%{_kde5_sysconfdir}/xdg/accept-languages.codes
%{_kde5_sysconfdir}/xdg/kshorturifilterrc
%{_qt5_plugindir}/kcm_*.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_smb.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_*.so
%{_datadir}/dbus-1/services/org.kde.*.service

#----------------------------------------------------------------------------

%package i18n
Summary:	KIO translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KIO translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kio5widgets.so

#----------------------------------------------------------------------------

%define kf5kiocore_major 5
%define libkf5kiocore %mklibname kf5kiocore %{kf5kiocore_major}

%package -n %{libkf5kiocore}
Summary:	KDE Frameworks 5 resource and network access abstraction shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5kiocore}
KDE Frameworks 5 resource and network access abstraction shared library.

%files -n %{libkf5kiocore}
%{_kde5_libdir}/libKF5KIOCore.so.%{kf5kiocore_major}*

#----------------------------------------------------------------------------

%define kf5kiofilewidgets_major 5
%define libkf5kiofilewidgets %mklibname kf5kiofilewidgets %{kf5kiofilewidgets_major}

%package -n %{libkf5kiofilewidgets}
Summary:	KDE Frameworks 5 resource and network access abstraction shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5kiofilewidgets}
KDE Frameworks 5 resource and network access abstraction shared library.

%files -n %{libkf5kiofilewidgets}
%{_kde5_libdir}/libKF5KIOFileWidgets.so.%{kf5kiofilewidgets_major}*

#----------------------------------------------------------------------------

%define kf5kiogui_major 5
%define libkf5kiogui %mklibname kf5kiogui %{kf5kiogui_major}

%package -n %{libkf5kiogui}
Summary:	KDE Frameworks 5 resource and network access abstraction shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5kiogui}
KDE Frameworks 5 resource and network access abstraction shared library.

%files -n %{libkf5kiogui}
%{_kde5_libdir}/libKF5KIOGui.so.%{kf5kiogui_major}*

#----------------------------------------------------------------------------

%define kf5kiontlm_major 5
%define libkf5kiontlm %mklibname kf5kiontlm %{kf5kiontlm_major}

%package -n %{libkf5kiontlm}
Summary:	KDE Frameworks 5 resource and network access abstraction shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5kiontlm}
KDE Frameworks 5 resource and network access abstraction shared library.

%files -n %{libkf5kiontlm}
%{_kde5_libdir}/libKF5KIONTLM.so.%{kf5kiontlm_major}*

#----------------------------------------------------------------------------

%define kf5kiowidgets_major 5
%define libkf5kiowidgets %mklibname kf5kiowidgets %{kf5kiowidgets_major}

%package -n %{libkf5kiowidgets}
Summary:	KDE Frameworks 5 resource and network access abstraction shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5kiowidgets}
KDE Frameworks 5 resource and network access abstraction shared library.

%files -n %{libkf5kiowidgets}
%{_kde5_libdir}/libKF5KIOWidgets.so.%{kf5kiowidgets_major}*

#----------------------------------------------------------------------------

%define devkf5kio %mklibname kf5kio -d

%package -n %{devkf5kio}
Summary:	Development files for KDE Frameworks 5 KIO module
Group:		Development/KDE and Qt
Requires:	%{libkf5kiocore} = %{EVRD}
Requires:	%{libkf5kiofilewidgets} = %{EVRD}
Requires:	%{libkf5kiogui} = %{EVRD}
Requires:	%{libkf5kiontlm} = %{EVRD}
Requires:	%{libkf5kiowidgets} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Requires:	pkgconfig(Qt5Concurrent)
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kio-devel = %{version}

%description -n %{devkf5kio}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5kio}
%{_kde5_includedir}/KF5/KIOCore
%{_kde5_includedir}/KF5/KIOFileWidgets
%{_kde5_includedir}/KF5/KIOGui
%{_kde5_includedir}/KF5/KIOWidgets
%{_kde5_includedir}/KF5/kio
%{_kde5_includedir}/KF5/KIO/kio_version.h
%{_kde5_libdir}/cmake/KF5KIO
%{_kde5_libdir}/libKF5KIOCore.so
%{_kde5_libdir}/libKF5KIOFileWidgets.so
%{_kde5_libdir}/libKF5KIOGui.so
%{_kde5_libdir}/libKF5KIONTLM.so
%{_kde5_libdir}/libKF5KIOWidgets.so
%{_kde5_mkspecsdir}/*.pri
%{_datadir}/dbus-1/interfaces/kf5_org.kde.*.xml
%{_datadir}/kdevappwizard/templates/kioworker.tar.bz2

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-kde --with-man --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13779 |21mr|kio-admin-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Manage files as administrator using the admin:// KIO protocol
Name:		kio-admin
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
# Translate file org.kde.kio.admin.policy
Patch0:		fix.rus.patch
Patch1:		fix.cmake.version.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	polkit-qt5-1-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	zstd

%description
kio-admin implements a new protocol "admin:///"
which gives administrative access
to the entire system. This is achieved by talking,
over dbus, with a root-level
helper binary that in turn uses
existing KIO infrastructure to run file://
operations in root-scope.

%files -f %{name}.lang
%doc README.md
%license LICENSES/*
%{_appdatadir}/org.kde.kio.admin.metainfo.xml
%dir %{_kde5_plugindir}/kfileitemaction/
%{_kde5_plugindir}/kfileitemaction/kio-admin.so
%dir %{_kde5_plugindir}/kio/
%{_kde5_plugindir}/kio/admin.so
%{_kde5_libexecdir}/kf5/kio-admin-helper
%{_kde5_datadir}/dbus-1/system.d/org.kde.kio.admin.conf
%{_kde5_datadir}/dbus-1/system-services/org.kde.kio.admin.service
%{_kde5_datadir}/polkit-1/actions/org.kde.kio.admin.policy

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-html --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13780 |21mr|kio-fuse-5.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FUSE interface for KIO
Name:		kio-fuse
Version:	5.0.1
Release:	2
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://kde.org/
Source0:	https://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(fuse3)
Requires:	fuse

%description
FUSE interface for KIO.

%files
%{_kde5_libexecdir}/kio-fuse
%{_prefix}/lib/tmpfiles.d/kio-fuse-tmpfiles.conf
%{_prefix}/lib/systemd/user/kio-fuse.service
%{_kde5_datadir}/dbus-1/services/org.kde.KIOFuse.service

#------------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13781 |21mr|kio-gdrive-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 KIO Slave to access Google Drive
Name:		kio-gdrive
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://phabricator.kde.org/project/profile/72/
Source0:	http://download.kde.org/stable/kio-gdrive/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	intltool
BuildRequires:	kaccounts-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5gapi-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kaccounts-integration
Provides:	plasma5-kio-gdrive = %{EVRD}

%description
Plasma 5 KIO Slave to access Google Drive service.

%files -f %{name}.lang
%doc COPYING README.md HACKING
%{_kde5_datadir}/remoteview/gdrive-network.desktop
%{_kde5_datadir}/accounts/services/kde/google-drive.service
%{_kde5_datadir}/purpose/purpose_gdrive_config.qml
%{_kde5_notificationsdir}/gdrive.notifyrc
%{_kde5_plugindir}/kio/gdrive.so
%{_datadir}/metainfo/org.kde.kio_gdrive.metainfo.xml
%{_qt5_plugindir}/kaccounts/daemonplugins/gdrive.so
%{_qt5_plugindir}/kf5/kfileitemaction/gdrivecontextmenuaction.so
%{_qt5_plugindir}/kf5/propertiesdialog/gdrivepropertiesplugin.so
%{_qt5_plugindir}/kf5/purpose/purpose_gdrive.so

#--------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kio5_gdrive gdrive %{name}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13782 |21mr|kipi-plugins-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Disable for now, requires KF5MediaWiki
%bcond_with wikimedia

Summary:	KDE image Interface Plugins
Name:		kipi-plugins
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		System/Libraries
Url:		https://projects.kde.org/projects/extragear/graphics/kipi-plugins
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kipi-devel
BuildRequires:	kf5vkontakte-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
Recommends:	kipi-plugins-dropbox
Recommends:	kipi-plugins-facebook
Recommends:	kipi-plugins-flashexport
Recommends:	kipi-plugins-flickr
Recommends:	kipi-plugins-googleservices
Recommends:	kipi-plugins-imageshack
Recommends:	kipi-plugins-imgurexport
Recommends:	kipi-plugins-kmlexport
%if %{with wikimedia}
Recommends:	kipi-plugins-wikimedia
%else
Obsoletes:	kipi-plugins-wikimedia < %{EVRD}
%endif
Recommends:	kipi-plugins-piwigoexport
Recommends:	kipi-plugins-printimages
Recommends:	kipi-plugins-rajceexport
Recommends:	kipi-plugins-remotestorage
Recommends:	kipi-plugins-sendimages
Recommends:	kipi-plugins-smug
Recommends:	kipi-plugins-jalbum
Recommends:	kipi-plugins-vkontakte
Recommends:	kipi-plugins-yandexfotki
# Not ported to KF5 yet
Obsoletes:	kipi-plugins-acquireimages < %{EVRD}
Obsoletes:	kipi-plugins-advancedslideshow < %{EVRD}
Obsoletes:	kipi-plugins-batchprocess < %{EVRD}
Obsoletes:	kipi-plugins-calendar < %{EVRD}
Obsoletes:	kipi-plugins-debianscreenshot < %{EVRD}
Obsoletes:	kipi-plugins-dlna < %{EVRD}
Obsoletes:	kipi-plugins-dngconverter < %{EVRD}
Obsoletes:	kipi-plugins-expoblending < %{EVRD}
Obsoletes:	kipi-plugins-galleryexport < %{EVRD}
Obsoletes:	kipi-plugins-gpssync < %{EVRD}
Obsoletes:	kipi-plugins-htmlexport < %{EVRD}
Obsoletes:	kipi-plugins-imageviewer < %{EVRD}
Obsoletes:	kipi-plugins-ipodexport < %{EVRD}
Obsoletes:	kipi-plugins-jpeglossless < %{EVRD}
Obsoletes:	kipi-plugins-kioexportimport < %{EVRD}
Obsoletes:	kipi-plugins-kopete < %{EVRD}
Obsoletes:	kipi-plugins-metadataedit < %{EVRD}
Obsoletes:	kipi-plugins-panorama < %{EVRD}
Obsoletes:	kipiplugin-photolayouts-editor < %{EVRD}
Obsoletes:	kipi-plugins-rawconverter < %{EVRD}
Obsoletes:	kipi-plugins-removeredeyes < %{EVRD}
Obsoletes:	kipi-plugins-shwup < %{EVRD}
Obsoletes:	kipi-plugins-timeadjust < %{EVRD}
Obsoletes:	kipi-plugins-videoslideshow < %{EVRD}

%description
The library of the KDE Image Plugin Interface.

Libkipi allows image applications to use a plugin architecture
for additional functionality  such as: RawConverter, SlideShow,
ImagesGallery, HTMLExport, PrintAssistant...

%files -f kipi-plugins.lang
%doc AUTHORS COPYING ChangeLog README TODO NEWS
%{_kde5_applicationsdir}/kipiplugins.desktop
%{_appdatadir}/org.kde.kipi_plugins.metainfo.xml
#-----------------------------------------------------------------------

%define kf5kipiplugins_major 5
%define libkf5kipiplugins %mklibname kf5kipiplugins %{kf5kipiplugins_major}

%package -n %{libkf5kipiplugins}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libkf5kipiplugins}
Shared library for %{name}.

%files -n %{libkf5kipiplugins}
%{_kde5_libdir}/libKF5kipiplugins.so.%{kf5kipiplugins_major}*

#-----------------------------------------------------------------------

%package -n kipi-plugins-dropbox
Summary:	Dropbox export Kipi Plugin
Group:		System/Libraries

%description -n kipi-plugins-dropbox
A tool to export images to a remote Dropbox web service.

%files -n kipi-plugins-dropbox -f kipiplugin_dropbox.lang
%{_kde5_services}/kipiplugin_dropbox.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-dropbox.*
%{_kde5_xmlguidir}/kipi/kipiplugin_dropboxui.rc
%{_qt5_plugindir}/kipiplugin_dropbox.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-facebook
Summary:	Facebook Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-facebook
A tool to import/export images to/from a remote Facebook web service.

%files -n kipi-plugins-facebook -f kipiplugin_facebook.lang
%{_kde5_services}/kipiplugin_facebook.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-facebook.*
%{_kde5_xmlguidir}/kipi/kipiplugin_facebookui.rc
%{_qt5_plugindir}/kipiplugin_facebook.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-flickr
Summary:	Flick Export Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-flickr
A tool to export images to a remote Flickr, 23 and Zoomr web services.

%files -n kipi-plugins-flickr -f kipiplugin_flickr.lang
%{_kde5_services}/kipiplugin_flickr.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-flickr.*
%{_kde5_iconsdir}/hicolor/*/apps/kipi-hq.*
%{_kde5_xmlguidir}/kipi/kipiplugin_flickrui.rc
%{_qt5_plugindir}/kipiplugin_flickr.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-googleservices
Summary:	Google Services export Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins-googledrive < 2:4.12.0
Obsoletes:	kipi-plugins-googledrive < 2:4.12.0
Conflicts:	kipi-plugins-picasa < 2:4.12.0
Obsoletes:	kipi-plugins-picasa < 2:4.12.0

%description -n kipi-plugins-googleservices
A tool to export images to a remote Google Services (Picasa and Google Drive).

%files -n kipi-plugins-googleservices -f kipiplugin_googleservices.lang
%{_kde5_services}/kipiplugin_googleservices.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-googledrive.*
%{_kde5_iconsdir}/hicolor/*/apps/kipi-googlephoto.*
%{_kde5_xmlguidir}/kipi/kipiplugin_googleservicesui.rc
%{_qt5_plugindir}/kipiplugin_googleservices.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-imageshack
Summary:	Imageshack Export Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-imageshack
A tool to export images to ImageShack.

%files -n kipi-plugins-imageshack -f kipiplugin_imageshack.lang
%{_kde5_services}/kipiplugin_imageshack.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-imageshack.*
%{_kde5_xmlguidir}/kipi/kipiplugin_imageshackui.rc
%{_qt5_plugindir}/kipiplugin_imageshack.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-imgurexport
Summary:	Imgur Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-imgurexport
A tool to export pictures to Imgur.

%files -n kipi-plugins-imgurexport -f kipiplugin_imgur.lang
%{_kde5_services}/kipiplugin_imgur.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-imgur.*
%{_kde5_xmlguidir}/kipi/kipiplugin_imgurui.rc
%{_qt5_plugindir}/kipiplugin_imgur.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-jalbum
Summary:	jAlbum Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1
Obsoletes:	kipi-plugins-jalbumexport < 2:5.5.0

%description -n kipi-plugins-jalbum
A tool to import/export images to/from jAlbum web service.

%files -n kipi-plugins-jalbum -f kipiplugin_jalbum.lang
%{_kde5_iconsdir}/hicolor/*/apps/kipi-jalbum.*
%{_kde5_services}/kipiplugin_jalbum.desktop
%{_kde5_xmlguidir}/kipi/kipiplugin_jalbumui.rc
%{_qt5_plugindir}/kipiplugin_jalbum.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-kmlexport
Summary:	Create KML files to present images with coordinates
Group:		System/Libraries

%description -n kipi-plugins-kmlexport
A plugin to create KML files to present images with coordinates.

%files -n kipi-plugins-kmlexport -f kipiplugin_kmlexport.lang
%{_kde5_services}/kipiplugin_kmlexport.desktop
%{_kde5_xmlguidir}/kipi/kipiplugin_kmlexportui.rc
%{_qt5_plugindir}/kipiplugin_kmlexport.so

#-----------------------------------------------------------------------

%if %{with wikimedia}
%package -n kipi-plugins-wikimedia
Summary:	Wikimedia Export Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-wikimedia
A tool to export images to a remote MediaWiki site

%files -n kipi-plugins-wikimedia
%{_kde5_services}/kipiplugin_wikimedia.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-wikimedia.*
%{_kde5_xmlguidir}/kipi/kipiplugin_wikimediaui.rc
%{_qt5_plugindir}/kipiplugin_wikimedia.so
%endif

#-----------------------------------------------------------------------

%package -n kipi-plugins-piwigoexport
Summary:	Piwi Go Export
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-piwigoexport
A tool to export images to a remote Piwigo.

%files -n kipi-plugins-piwigoexport -f kipiplugin_piwigo.lang
%{_kde5_datadir}/kipiplugin_piwigo
%{_kde5_services}/kipiplugin_piwigo.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-piwigo.*
%{_kde5_xmlguidir}/kipi/kipiplugin_piwigoui.rc
%{_qt5_plugindir}/kipiplugin_piwigo.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-printimages
Summary:	Print Images Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-printimages
A tool to print images in various formats.

%files -n kipi-plugins-printimages -f kipiplugin_printimages.lang
%{_kde5_services}/kipiplugin_printimages.desktop
%{_kde5_datadir}/kipiplugin_printimages/
%{_kde5_xmlguidir}/kipi/kipiplugin_printimagesui.rc
%{_qt5_plugindir}/kipiplugin_printimages.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-rajceexport
Summary:	Rajce.net Exporter
Group:		System/Libraries

%description -n kipi-plugins-rajceexport
A tool to export images to a remote rajce.net service.

%files -n kipi-plugins-rajceexport -f kipiplugin_rajce.lang
%{_kde5_services}/kipiplugin_rajce.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kipi-rajce.*
%{_kde5_xmlguidir}/kipi/kipiplugin_rajceui.rc
%{_qt5_plugindir}/kipiplugin_rajce.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-remotestorage
Summary:	KIPI plugin to export images over network using KIO-Slave
Group:		System/Libraries

%description -n kipi-plugins-remotestorage
KIPI plugin to export images over network using KIO-Slave.

%files -n kipi-plugins-remotestorage -f kipiplugin_remotestorage.lang
%{_kde5_services}/kipiplugin_remotestorage.desktop
%{_kde5_xmlguidir}/kipi/kipiplugin_remotestorageui.rc
%{_qt5_plugindir}/kipiplugin_remotestorage.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-sendimages
Summary:	Send Images kipi plugins
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-sendimages
A tool to send images by e-mail.

%files -n kipi-plugins-sendimages -f kipiplugin_sendimages.lang
%{_kde5_services}/kipiplugin_sendimages.desktop
%{_kde5_xmlguidir}/kipi/kipiplugin_sendimagesui.rc
%{_qt5_plugindir}/kipiplugin_sendimages.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-smug
Summary:	Smug Kipi Plugin
Group:		System/Libraries
Conflicts:	kipi-plugins < 1:1.8.0-1

%description -n kipi-plugins-smug
A tool to import/export images to/from SmugMug web service.

%files -n kipi-plugins-smug -f kipiplugin_smug.lang
%{_kde5_iconsdir}/hicolor/*/apps/kipi-smugmug.*
%{_kde5_services}/kipiplugin_smug.desktop
%{_kde5_xmlguidir}/kipi/kipiplugin_smugui.rc
%{_qt5_plugindir}/kipiplugin_smug.so

#-----------------------------------------------------------------------

%package -n kipi-plugins-yandexfotki
Summary:	Yandex.Fotki Exporter
Group:		System/Libraries

%description -n kipi-plugins-yandexfotki
A tool to export images to a remote Yandex.Fotki web service.

%files -n kipi-plugins-yandexfotki -f kipiplugin_yandexfotki.lang
%{_kde5_services}/kipiplugin_yandexfotki.desktop
%{_kde5_xmlguidir}/kipi/kipiplugin_yandexfotkiui.rc
%{_qt5_plugindir}/kipiplugin_yandexfotki.so

#-----------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%if %{without wikimedia}
rm -f %{buildroot}%{_kde5_datadir}/locale/*/LC_MESSAGES/kipiplugin_mediawiki.mo
%endif

# Useless
rm -f %{buildroot}%{_kde5_libdir}/libKF5kipiplugins.so

%find_lang kipi-plugins kipiplugins kipi-plugins.lang --with-html --with-kde

%find_lang kipiplugin_dropbox
%find_lang kipiplugin_facebook
%find_lang kipiplugin_flickr
%find_lang kipiplugin_googleservices
%find_lang kipiplugin_imageshack
%find_lang kipiplugin_imgur
%find_lang kipiplugin_kmlexport
%find_lang kipiplugin_piwigo
%find_lang kipiplugin_printimages
%find_lang kipiplugin_rajce
%find_lang kipiplugin_remotestorage
%find_lang kipiplugin_sendimages
%find_lang kipiplugin_smug
%find_lang kipiplugin_jalbum
%find_lang kipiplugin_yandexfotki

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13783 |21mr|kirigami2-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE's lightweight user interface framework
Name:		kirigami2
Version:	5.116.0
Release:	3
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-qml-tools
BuildRequires:	qt5-qtgraphicaleffects-qml
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5DBus)
Requires:	qt5-qtgraphicaleffects-qml
Requires:	%{_lib}kf5kirigami2_5 = %{EVRD}

%description
Kirigami is KDE's lightweight user interface framework for mobile
and convergent applications. It allows Qt developers to easily create
applications that run on most major mobile and desktop platforms without
modification (though adapted user interfaces for different form-factors
are supported and recommended for optimal user experience). It extends
the touch-friendly Qt Quick Controls with larger application building
blocks, following the design philosophy laid out in the Kirigami Human
Interface Guidelines.

%files -f %{name}.lang
%dir %{_kde5_qmldir}/org/kde/kirigami.2/
%{_kde5_qmldir}/org/kde/kirigami.2/*

#----------------------------------------------------------------------------

%define kf5kirigami2_major 5
%define libkf5kirigami2 %mklibname kf5kirigami2_ %{kf5kirigami2_major}

%package -n %{libkf5kirigami2}
Summary:	KDE Frameworks 5 lightweight user interface framework shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5kirigami2}
KDE Frameworks 5 lightweight user interface framework shared library.

%files -n %{libkf5kirigami2}
%{_kde5_libdir}/libKF5Kirigami2.so.%{kf5kirigami2_major}*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for KDE's lightweight user interface framework
Group:		Development/KDE and Qt
Requires:	%{libkf5kirigami2} = %{EVRD}
Provides:	kf5kirigami2-devel = %{version}
Provides:	%{name}-devel = %{version}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_datadir}/kdevappwizard/templates/kirigami.tar.bz2
%{_kde5_includedir}/KF5/Kirigami2/
%{_kde5_libdir}/libKF5Kirigami2.so
%{_kde5_libdir}/cmake/KF5Kirigami2
%{_kde5_mkspecsdir}/qt_Kirigami2.pri

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13784 |21mr|kirigami-addons-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Add-on widgets for the Kirigami library
Name:		kirigami-addons
Version:	0.11.0
Release:	1
Group:		Graphical desktop/KDE
License:	LGPLv2+
Source0:	https://download.kde.org/stable/kirigami-addons/%{version}/kirigami-addons-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)

%description
Add-on widgets for the Kirigami library.

%files -f %{name}.lang
%{_kde5_libdir}/qt5/qml/org/kde/kirigamiaddons

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for for the Kirigami library
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{version}

%description -n %{devname}
Development files for for the Kirigami library.

%files -n %{devname}
%{_kde5_libdir}/cmake/KF5KirigamiAddons

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13785 |21mr|kirigami-gallery-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Gallery application built using Kirigami framework
Name:		kirigami-gallery
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	http://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kpackage
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	qt5-qtgraphicaleffects-qml
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kirigami2
Requires:	qt5-qtgraphicaleffects-qml
Requires:	qt5-qtquickcontrols2-qml

%description
Example application which uses all features from kirigami, including links
to the sourcecode, tips on how to use the components and links to the
corresponding HIG pages and code examples on cgit.

%files -f kirigamigallery.lang
%doc LICENSE.LGPL-2
%{_kde5_applicationsdir}/org.kde.kirigami2.gallery.desktop
%{_kde5_bindir}/kirigami2gallery
%{_appdatadir}/org.kde.kirigami2.gallery.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kirigamigallery --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13786 |21mr|kiriki-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Close of Yahtzee
Name:		kiriki
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kiriki
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Kiriki is an addictive and fun dice game, designed to be played by as
many as six players.

Participants have to collect points by rolling five dice for up to
three times per single turn.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kiriki.desktop
%{_kde5_bindir}/kiriki
%{_kde5_datadir}/kiriki
%{_kde5_iconsdir}/hicolor/*/apps/kiriki.*
%{_appdatadir}/org.kde.kiriki.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13787 |21mr|kitemmodels-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 addons module for Qt Model/View
Name:		kitemmodels
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 addons module for Qt Model/View.

KItemModels provides various models:
* KBreadcrumbSelectionModel - Selects the parents of selected items to create
  breadcrumbs
* KCheckableProxyModel - Adds a checkable capability to a source model
* KDescendantsProxyModel - Proxy Model for restructuring a Tree into a list
* KLinkItemSelectionModel - Share a selection in multiple views which do not
  have the same source model
* KModelIndexProxyMapper - Mapping of indexes and selections through proxy
  models
* KRecursiveFilterProxyModel - Recursive filtering of models
* KSelectionProxyModel - A Proxy Model which presents a subset of its source
  model to observers

%files
%{_kde5_datadir}/qlogging-categories5/kitemmodels.categories
%{_kde5_datadir}/qlogging-categories5/kitemmodels.renamecategories

#--------------------------------------------------------------------

%define qmlkf5itemmodels %mklibname kf5itemmodels-qml

%package -n %{qmlkf5itemmodels}
Summary:	QML plugin for KDE Frameworks 5 Qt Model/View module
Group:		System/Libraries
Provides:	kf5itemmodels-qml = %{EVRD}

%description -n %{qmlkf5itemmodels}
QML plugin for KDE Frameworks 5 Qt Model/View module.

%files -n %{qmlkf5itemmodels}
%dir %{_kde5_qmldir}/org/kde/kitemmodels/
%{_kde5_qmldir}/org/kde/kitemmodels/*

#----------------------------------------------------------------------------

%define kf5itemmodels_major 5
%define libkf5itemmodels %mklibname kf5itemmodels %{kf5itemmodels_major}

%package -n %{libkf5itemmodels}
Summary:	KDE Frameworks 5 KItemModels shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{qmlkf5itemmodels} = %{EVRD}

%description -n %{libkf5itemmodels}
KDE Frameworks 5 KItemModels shared library.

%files -n %{libkf5itemmodels}
%{_kde5_libdir}/libKF5ItemModels.so.%{kf5itemmodels_major}*

#----------------------------------------------------------------------------

%define devkf5itemmodels %mklibname kf5itemmodels -d

%package -n %{devkf5itemmodels}
Summary:	Development files for KDE Frameworks 5 KItemModels
Group:		Development/KDE and Qt
Requires:	%{libkf5itemmodels} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5itemmodels-devel = %{version}

%description -n %{devkf5itemmodels}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5itemmodels}
%{_kde5_includedir}/KF5/KItemModels
%{_kde5_libdir}/cmake/KF5ItemModels
%{_kde5_libdir}/libKF5ItemModels.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13788 |21mr|kitemviews-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 addons module for Qt Model/View
Name:		kitemviews
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 addons module for Qt Model/View.

KItemViews includes a set of views, which can be used with item models. It
includes views for categorizing lists and to add search filters to flat and
hierarchical lists.

%files
%{_kde5_datadir}/qlogging-categories5/kitemviews.categories

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kitemviews5widgets.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KItemViews translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KItemViews translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5itemviews_major 5
%define libkf5itemviews %mklibname kf5itemviews %{kf5itemviews_major}

%package -n %{libkf5itemviews}
Summary:	KDE Frameworks 5 KItemViews shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5itemviews}
KDE Frameworks 5 KItemViews shared library.

%files -n %{libkf5itemviews}
%{_kde5_libdir}/libKF5ItemViews.so.%{kf5itemviews_major}*

#----------------------------------------------------------------------------

%define devkf5itemviews %mklibname kf5itemviews -d

%package -n %{devkf5itemviews}
Summary:	Development files for KDE Frameworks 5 KItemViews
Group:		Development/KDE and Qt
Requires:	%{libkf5itemviews} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5itemviews-devel = %{version}

%description -n %{devkf5itemviews}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5itemviews}
%{_kde5_includedir}/KF5/KItemViews
%{_kde5_libdir}/cmake/KF5ItemViews
%{_kde5_libdir}/libKF5ItemViews.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13789 |21mr|kiten-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A Japanese reference/learning tool
Name:		kiten
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kiten
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Kiten is a Japanese reference/learning tool.

Kiten features:
* Search with english keyword, Japanese reading, or a Kanji string on a
  list of EDICT files.
* Search with english keyword, Japanese reading, number of strokes, grade
  number, or a Kanji on a list of KANJIDIC files.
* Comes with all necessary files.
* Very fast.
* Limit searches to only common entries.
* Nested searches of results possible.
* Compact, small, fast interface.
* Global KDE keybindings for searching highlighted strings.
* Learning dialog. (One can even open up multiple ones and have them sync
  between each other.)
* Browse Kanji by grade.
* Add Kanji to a list for later learning.
* Browse list, and get quizzed on them.

%files -f %{name}.lang
%doc COPYING.DOC AUTHORS README
%{_kde5_applicationsdir}/org.kde.kiten.desktop
%{_kde5_applicationsdir}/org.kde.kitenkanjibrowser.desktop
%{_kde5_applicationsdir}/org.kde.kitenradselect.desktop
%{_kde5_bindir}/kiten
%{_kde5_bindir}/kitengen
%{_kde5_bindir}/kitenradselect
%{_kde5_bindir}/kitenkanjibrowser
%{_kde5_datadir}/config.kcfg/kiten.kcfg
%{_kde5_datadir}/kiten
%{_kde5_iconsdir}/*/*/apps/kiten.*
%{_kde5_xmlguidir}/kiten/kitenui.rc
%{_kde5_xmlguidir}/kitenkanjibrowser/kanjibrowserui.rc
%{_kde5_xmlguidir}/kitenradselect/radselectui.rc
%{_appdatadir}/org.kde.kiten.appdata.xml
%{_datadir}/fonts/kanjistrokeorders

#----------------------------------------------------------------------------

%define kiten_major 5
%define libkiten %mklibname kiten %{kiten_major}

%package -n %{libkiten}
Summary:	Runtime library for Kiten
Group:		System/Libraries

%description -n %{libkiten}
libkiten is a library for managing a variety of japanese cross-language
dictionaries through a common interface. It provides a light abstraction layer
over various types of japanese dictionaries, with a simple facility for adding
more types.

%files -n %{libkiten}
%{_kde5_libdir}/libkiten.so.%{kiten_major}*

#----------------------------------------------------------------------------

%package devel
Summary:	Devel stuff for %{name}
Group:		Development/KDE and Qt
Requires:	%{libkiten} = %{EVRD}

%description devel
Files needed to build applications based on %{name}.

%files devel
%{_kde5_libdir}/libkiten.so
%{_kde5_includedir}/libkiten/

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13790 |21mr|kitinerary-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 PIM itinerary extraction and data model library
Name:		kitinerary
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kpkpass-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(zxing)

%description
Plasma 5 PIM itinerary extraction and data model library.

%files
%{_kde5_libexecdir}/kf5/kitinerary-extractor
%{_datadir}/mime/packages/application-vnd-kde-itinerary.xml
%{_kde5_datadir}/qlogging-categories5/org_kde_kitinerary.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 PIM itinerary extraction and data model library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 PIM itinerary extraction and data model library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kpimitinerary_major 5
%define libkpimitinerary %mklibname kpimitinerary %{kpimitinerary_major}

%package -n %{libkpimitinerary}
Summary:	Plasma 5 PIM itinerary extraction and data model shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkpimitinerary}
Plasma 5 PIM itinerary extraction and data model shared library.

%files -n %{libkpimitinerary}
%{_kde5_libdir}/libKPim5Itinerary.so.%{kpimitinerary_major}*

#----------------------------------------------------------------------------

%define devkpimitinerary %mklibname kpimitinerary -d

%package -n %{devkpimitinerary}
Summary:	Development files for Plasma 5 PIM itinerary extraction and data model library
Group:		Development/KDE and Qt
Requires:	%{libkpimitinerary} = %{EVRD}
Provides:	kitinerary-devel = %{version}
Provides:	kpimitinerary-devel = %{version}

%description -n %{devkpimitinerary}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkpimitinerary}
%dir %{_kde5_includedir}/KPim5/kitinerary/
%{_kde5_includedir}/KPim5/kitinerary/*
%{_kde5_includedir}/KPim5/kitinerary_version.h
%dir %{_kde5_includedir}/KPim5/KItinerary/
%{_kde5_includedir}/KPim5/KItinerary/*
%{_kde5_libdir}/cmake/KPimItinerary/
%{_kde5_libdir}/cmake/KPim5Itinerary/
%{_kde5_libdir}/libKPim5Itinerary.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13791 |21mr|kjobwidgets-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 module with widgets for tracking KJob instances
Name:		kjobwidgets
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)

%description
KDE Frameworks 5 module with widgets for tracking KJob instances.

KJobWIdgets provides widgets for showing progress of asynchronous jobs.

%files
%{_kde5_datadir}/qlogging-categories5/kjobwidgets.categories
%{_kde5_datadir}/qlogging-categories5/kjobwidgets.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KJobWidgets translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KJobWidgets translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5jobwidgets_major 5
%define libkf5jobwidgets %mklibname kf5jobwidgets %{kf5jobwidgets_major}

%package -n %{libkf5jobwidgets}
Summary:	KDE Frameworks 5 KJob instances tracking shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5jobwidgets}
KDE Frameworks 5 KJob instances tracking shared library.

%files -n %{libkf5jobwidgets}
%{_kde5_libdir}/libKF5JobWidgets.so.%{kf5jobwidgets_major}*

#----------------------------------------------------------------------------

%define devkf5jobwidgets %mklibname kf5jobwidgets -d

%package -n %{devkf5jobwidgets}
Summary:	Development files for KDE Frameworks 5 KJob instances tracking module
Group:		Development/KDE and Qt
Requires:	%{libkf5jobwidgets} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5jobwidgets-devel = %{version}

%description -n %{devkf5jobwidgets}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5jobwidgets}
%{_kde5_includedir}/KF5/KJobWidgets
%{_kde5_libdir}/cmake/KF5JobWidgets
%{_kde5_libdir}/libKF5JobWidgets.so
%{_kde5_mkspecsdir}/*.pri
%{_datadir}/dbus-1/interfaces/kf5_org.kde.*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13792 |21mr|kjournald-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Graphical frontend for viewing the system journal
Name:		kjournald
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://github.com/kjournald/kjournald
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(systemd)

%description
Graphical frontend for viewing the system journal.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kjournaldbrowser.desktop
%{_kde5_bindir}/kjournaldbrowser
%{_kde5_datadir}/qlogging-categories5/kjournald.categories
%{_appdatadir}/org.kde.kjournaldbrowser.appdata.xml

#------------------------------------------------------------------------------

%define kjournald_major 0
%define libkjournald %mklibname kjournald %{kjournald_major}

%package -n %{libkjournald}
Summary:	Plasma 5 kjournald shared library
Group:		System/Libraries

%description -n %{libkjournald}
Plasma 5 kjournald shared library.

%files -n %{libkjournald}
%{_kde5_libdir}/libkjournald.so.%{kjournald_major}*
%{_kde5_libdir}/libkjournald.so.%{version}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

rm -f -r %{buildroot}%{_libdir}/libkjournald.so

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13793 |21mr|kjs-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 JS scripting support module
Name:		kjs
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5doctools-devel = %{version}
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 JS scripting support module.

This library provides an ECMAScript compatible interpreter. The ECMA standard
is based on well known scripting languages such as Netscape's JavaScript and
Microsoft's JScript.

%files -f kjs5.lang
%{_kde5_bindir}/kjs5
%{_kde5_mandir}/man1/kjs5.1*

#----------------------------------------------------------------------------

%define kf5js_major 5
%define libkf5js %mklibname kf5js %{kf5js_major}

%package -n %{libkf5js}
Summary:	KDE Frameworks 5 JS scripting support shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5js}
KDE Frameworks 5 JS scripting support shared library.

%files -n %{libkf5js}
%{_kde5_libdir}/libKF5JS.so.%{kf5js_major}*

#----------------------------------------------------------------------------

%define kf5jsapi_major 5
%define libkf5jsapi %mklibname kf5jsapi %{kf5jsapi_major}

%package -n %{libkf5jsapi}
Summary:	KDE Frameworks 5 JS scripting support shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5jsapi}
KDE Frameworks 5 JS scripting support shared library.

%files -n %{libkf5jsapi}
%{_kde5_libdir}/libKF5JSApi.so.%{kf5jsapi_major}*

#----------------------------------------------------------------------------

%define devkf5js %mklibname kf5js -d

%package -n %{devkf5js}
Summary:	Development files for KDE Frameworks 5 JS scripting support module
Group:		Development/KDE and Qt
Requires:	%{libkf5js} = %{EVRD}
Requires:	%{libkf5jsapi} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5js-devel = %{version}

%description -n %{devkf5js}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5js}
%{_kde5_includedir}/KF5/kjs
%{_kde5_includedir}/KF5/wtf
%{_kde5_includedir}/KF5/kjs_version.h
%{_kde5_libdir}/cmake/KF5JS
%{_kde5_libdir}/libKF5JS.so
%{_kde5_libdir}/libKF5JSApi.so
%{_kde5_mkspecsdir}/*.pri
%{_kde5_datadir}/kf5/kjs/create_hash_table

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kjs5 --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13794 |21mr|kjsembed-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 embedded JS module
Name:		kjsembed
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kdoctools-devel = %{version}
BuildRequires:	ki18n-devel = %{version}
BuildRequires:	kjs-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 embedded JS module.

KSJEmbed provides a method of binding JavaScript objects to QObjects,
so you can script your applications.

%files
%{_kde5_bindir}/kjscmd5
%{_kde5_bindir}/kjsconsole
%{_kde5_mandir}/man1/kjscmd5.1*

#----------------------------------------------------------------------------

%package i18n
Summary:	KJsEmbed translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KJsEmbed translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5jsembed_major 5
%define libkf5jsembed %mklibname kf5jsembed %{kf5jsembed_major}

%package -n %{libkf5jsembed}
Summary:	KDE Frameworks 5 embedded JS shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5jsembed}
KDE Frameworks 5 embedded JS shared library.

%files -n %{libkf5jsembed}
%{_kde5_libdir}/libKF5JsEmbed.so.%{kf5jsembed_major}*

#----------------------------------------------------------------------------

%define devkf5jsembed %mklibname kf5jsembed -d

%package -n %{devkf5jsembed}
Summary:	Development files for KDE Frameworks 5 embedded JS module
Group:		Development/KDE and Qt
Requires:	%{libkf5jsembed} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5jsembed-devel = %{version}

%description -n %{devkf5jsembed}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5jsembed}
%{_kde5_includedir}/KF5/KJsEmbed
%{_kde5_libdir}/cmake/KF5JsEmbed
%{_kde5_libdir}/libKF5JsEmbed.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13795 |21mr|kjumpingcube-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A tactical game for number-crunchers
Name:		kjumpingcube
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kjumpingcube
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KJumpingCube is a tactical one or two-player game. The playing field
consists of squares that contains points which can be increased. By
this you can gain more fields and finally win the board over.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kjumpingcube.desktop
%{_kde5_bindir}/kjumpingcube
%{_kde5_datadir}/kjumpingcube
%{_kde5_datadir}/config.kcfg/kjumpingcube.kcfg
%{_kde5_datadir}/qlogging-categories5/kjumpingcube.categories
%{_kde5_iconsdir}/hicolor/*/apps/kjumpingcube.*
%{_appdatadir}/org.kde.kjumpingcube.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13796 |21mr|kldap-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 LDAP module
Name:		kldap
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5mbox-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	qtkeychain-qt5-devel
Conflicts:	plasma5-kio-kdepimlibs < 16.08.2
Obsoletes:	plasma5-kio-kdepimlibs < 16.08.2
Obsoletes:	plasma5-kdepimlibs < 16.08.2

%description
KDE Frameworks 5 LDAP module.

%files -f %{name}.lang
%{_kde5_datadir}/qlogging-categories5/kldap.categories
%{_kde5_datadir}/qlogging-categories5/kldap.renamecategories
%{_qt5_plugindir}/kf5/kio/ldap.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 LDAP library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 LDAP library translations.

%files i18n -f libkldap5.lang

#----------------------------------------------------------------------------

%define kf5ldap_major 5
%define libkf5ldap %mklibname kf5ldap %{kf5ldap_major}

%package -n %{libkf5ldap}
Summary:	KDE Frameworks 5 LDAP shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5ldap}
KDE Frameworks 5 LDAP shared library.

%files -n %{libkf5ldap}
%{_kde5_libdir}/libKPim5Ldap.so.%{kf5ldap_major}*

#----------------------------------------------------------------------------

%define devkf5ldap %mklibname kf5ldap -d

%package -n %{devkf5ldap}
Summary:	Development files for KDE Frameworks 5 LDAP module
Group:		Development/KDE and Qt
Requires:	%{libkf5ldap} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5ldap-devel = %{version}

%description -n %{devkf5ldap}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5ldap}
%{_kde5_includedir}/KPim5/KLDAP
%{_kde5_libdir}/cmake/KPim5Ldap
%{_kde5_libdir}/libKPim5Ldap.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang ldap kio_ldap %{name}.lang --with-kde --with-html

%find_lang libkldap5 libkldap5.lang --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13797 |21mr|kleopatra-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Certificate Manager
Name:		kleopatra
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libassuan-devel
BuildRequires:	qgpgme-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Recommends:	pinentry-qt5

%description
KDE Certificate Manager.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kleopatra_import.desktop
%{_kde5_applicationsdir}/org.kde.kleopatra.desktop
%{_kde5_bindir}/kleopatra
%{_kde5_bindir}/kwatchgnupg
%{_kde5_datadir}/kconf_update/kleopatra-15.08-kickoff.sh
%{_kde5_datadir}/kconf_update/kleopatra.upd
%{_kde5_datadir}/qlogging-categories5/kleopatra.categories
%{_kde5_datadir}/qlogging-categories5/kleopatra.renamecategories
%dir %{_kde5_datadir}/kleopatra/
%{_kde5_datadir}/kleopatra/*
%dir %{_kde5_datadir}/kwatchgnupg/
%{_kde5_datadir}/kwatchgnupg/*
%{_kde5_iconsdir}/hicolor/*/apps/kleopatra.*
%{_kde5_datadir}/kio/servicemenus/kleopatra_decryptverifyfiles.desktop
%{_kde5_datadir}/kio/servicemenus/kleopatra_decryptverifyfolders.desktop
%{_kde5_datadir}/kio/servicemenus/kleopatra_signencryptfiles.desktop
%{_kde5_datadir}/kio/servicemenus/kleopatra_signencryptfolders.desktop
%{_kde5_datadir}/mime/packages/application-vnd-kde-kleopatra.xml
%{_qt5_plugindir}/pim5/kcms/kleopatra/kleopatra_config_gnupgsystem.so
%{_appdatadir}/org.kde.kleopatra.appdata.xml

#----------------------------------------------------------------------------

%define kleopatraclientcore_major 1
%define libkleopatraclientcore %mklibname kleopatraclientcore %{kleopatraclientcore_major}

%package -n %{libkleopatraclientcore}
Summary:	Kleopatra shared library
Group:		System/Libraries

%description -n %{libkleopatraclientcore}
Kleopatra shared library.

%files -n %{libkleopatraclientcore}
%{_kde5_libdir}/libkleopatraclientcore.so.%{kleopatraclientcore_major}*

#----------------------------------------------------------------------------

%define kleopatraclientgui_major 1
%define libkleopatraclientgui %mklibname kleopatraclientgui %{kleopatraclientgui_major}

%package -n %{libkleopatraclientgui}
Summary:	Kleopatra shared library
Group:		System/Libraries

%description -n %{libkleopatraclientgui}
Kleopatra shared library.

%files -n %{libkleopatraclientgui}
%{_kde5_libdir}/libkleopatraclientgui.so.%{kleopatraclientgui_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# FIXME differences in interpreting C++20 changes result in
# an incompatibility between clang and libstdc++ parts used
# in kleopatra, resulting in a build failure.
export CC=gcc
export CXX=g++
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Useless without headers
rm -f %{buildroot}%{_kde5_libdir}/libkleopatraclientcore.so
rm -f %{buildroot}%{_kde5_libdir}/libkleopatraclientgui.so

%find_lang %{name} kwatchgnupg %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13798 |21mr|klettres-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Language learning program
Name:		klettres
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/klettres
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KLettres aims to help to learn the alphabet and then to read some syllables
in different languages. It is meant to help learning the very first sounds
of a new language, for children or for adults.

%files -f %{name}.lang
%doc COPYING.DOC AUTHORS TODO
%{_kde5_applicationsdir}/org.kde.klettres.desktop
%{_kde5_bindir}/klettres
%{_kde5_datadir}/config.kcfg/klettres.kcfg
%{_kde5_datadir}/klettres
%{_kde5_iconsdir}/*/*/apps/klettres.*
%{_kde5_xmlguidir}/klettres/klettresui.rc
%{_appdatadir}/org.kde.klettres.appdata.xml
%{_kde5_datadir}/knsrcfiles/klettres.knsrc
%{_kde5_datadir}/qlogging-categories5/klettres.categories

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13799 |21mr|klickety-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	An adaptation of the Clickomania game
Name:		klickety
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/ksame/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Klickety is an adaptation of the Clickomania game. The rules are similar
to those of the Same game: your goal is to clear the board by clicking on
groups to destroy them.

%files -f %{name}.lang
%{_kde5_bindir}/klickety
%{_kde5_applicationsdir}/org.kde.klickety.desktop
%{_kde5_applicationsdir}/org.kde.ksame.desktop
%{_kde5_datadir}/klickety
%{_kde5_datadir}/kconf_update/klickety.upd
%{_kde5_datadir}/kconf_update/klickety-2.0-inherit-ksame-highscore.pl
%{_kde5_datadir}/sounds/klickety/*.ogg
%{_kde5_iconsdir}/*/*/apps/klickety.*
%{_kde5_iconsdir}/*/*/apps/ksame.*
%{_appdatadir}/org.kde.klickety.appdata.xml
%{_appdatadir}/org.kde.ksame.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13800 |21mr|klines-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Place 5 equal pieces together, but wait, there are 3 new ones
Name:		klines
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=klines
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KLines is a simple but highly addictive one player game.

The player has to move the colored balls around the game board, gathering them
into the lines of the same color by five. Once the line is complete it is
removed from the board, therefore freeing precious space. In the same time the
new balls keep arriving by three after each move, filling up the game board.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.klines.desktop
%{_kde5_bindir}/klines
%{_kde5_datadir}/config.kcfg/klines.kcfg
%{_kde5_datadir}/klines
%{_kde5_datadir}/qlogging-categories5/klines.categories
%{_kde5_iconsdir}/hicolor/*/apps/klines.*
%{_appdatadir}/org.kde.klines.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13801 |21mr|kmag-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Screen magnifier for KDE4
Name:		kmag
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+ and GFDL
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/utilities/kmag/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	qaccessibilityclient-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KMag is a small utility for Linux to magnify a part of the screen. KMag is very
useful for people with visual disabilities and for those working in the fields
of image analysis, web development etc.

%files -f %{name}.lang
%doc AUTHORS ChangeLog COPYING COPYING.DOC README TODO
%{_kde5_applicationsdir}/org.kde.kmag.desktop
%{_kde5_bindir}/kmag
%{_kde5_datadir}/kmag
%{_kde5_iconsdir}/hicolor/*/*/kmag*
%{_kde5_mandir}/man1/kmag.1.*
%{_appdatadir}/org.kde.kmag.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Drop for now to avoid file conflicts with kde-l10n
rm -rf %{buildroot}%{_mandir}/*/man1/kmag.1

%find_lang %{name} --with-html --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13802 |21mr|kmahjongg-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A tile laying patience
Name:		kmahjongg
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kmahjongg
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kmahjongglib-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
In KMahjongg the tiles are scrambled and staked on top of each other to
resemble a certain shape. The player is then expected to remove all the
tiles off the game board by locating each tile's matching pair.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kmahjongg.desktop
%{_kde5_bindir}/kmahjongg
%{_kde5_datadir}/config.kcfg/kmahjongg.kcfg
%{_kde5_datadir}/kmahjongg
%{_kde5_datadir}/qlogging-categories5/kmahjongg.categories
%{_kde5_iconsdir}/hicolor/*/apps/kmahjongg.*
%{_appdatadir}/org.kde.kmahjongg.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13803 |21mr|kmail-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE email client
Name:		kmail
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		kmail-categories.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadisearch-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5gravatar-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdepim-runtime-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5libksieve-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5messagecomposer-devel
BuildRequires:	kf5messagecore-devel
BuildRequires:	kf5messagelist-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5templateparser-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5tnef-devel
BuildRequires:	kf5webengineviewer-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	openldap-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	qtkeychain-qt5-devel
Requires:	plasma5-kdepim-runtime
Recommends:	plasma5-kdepim-addons
Recommends:	ksshaskpass
Requires:	akonadi-archivemail-agent
Requires:	akonadi-followupreminder-agent
Requires:	akonadi-import-wizard
Requires:	akonadi-mailfilter-agent
Requires:	akonadi-sendlater-agent
Requires:	akonadi-unifiedmailbox-agent
Requires:	grantlee-editor
Requires:	kmail-account-wizard
Requires:	kmailtransport
Requires:	ktnef
Requires:	mbox-importer
Requires:	pim-data-exporter
Requires:	pim-sieve-editor
Requires:	plasma5-akonadi-client
Requires:	plasma5-akonadi-contacts
Requires:	plasma5-akonadi-mime
Requires:	plasma5-akonadi-search
Requires:	sasl-plug-login
Requires:	sasl-plug-ntlm
Requires:	sasl-plug-plain
Requires:	sasl-plug-digestmd5

%description
KMail is the email component of Kontact, the integrated personal
information manager of KDE.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kmail_view.desktop
%{_kde5_applicationsdir}/org.kde.kmail2.desktop
%{_kde5_bindir}/akonadi_mailmerge_agent
%{_kde5_bindir}/kmail
%{_kde5_bindir}/kmail-refresh-settings
%{_kde5_applicationsdir}/org.kde.kmail-refresh-settings.desktop
%{_kde5_datadir}/akonadi/agents/mailmergeagent.desktop
%{_kde5_datadir}/qlogging-categories5/kmail.categories
%{_kde5_datadir}/qlogging-categories5/kmail.renamecategories
%{_kde5_datadir}/config.kcfg/kmail.kcfg
%dir %{_kde5_datadir}/kmail2/
%{_kde5_datadir}/kmail2/*
%{_kde5_iconsdir}/breeze-dark/*/emblems/gpg-key-trust-level-*.*
%{_kde5_iconsdir}/hicolor/*/apps/kmail.*
%{_kde5_iconsdir}/hicolor/*/emblems/gpg-key-trust-level-*.*
%{_kde5_notificationsdir}/akonadi_mailmerge_agent.notifyrc
%{_kde5_notificationsdir}/kmail2.notifyrc
%{_kde5_xmlguidir}/kontactsummary/kontactsummary_part.rc
%{_appdatadir}/org.kde.kmail2.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.kmail.*.xml
%{_datadir}/dbus-1/services/org.kde.kmail.service
%{_qt5_plugindir}/kmailpart.so
%{_qt5_plugindir}/pim5/kcms/kmail/kcm_kmail_*.so
%{_qt5_plugindir}/pim5/kcms/summary/kcmkmailsummary.so
%{_qt5_plugindir}/pim5/kcms/summary/kcmkontactsummary.so
%{_qt5_plugindir}/pim5/kontact/kontact_kmailplugin.so
%{_qt5_plugindir}/pim5/kontact/kontact_summaryplugin.so

#-----------------------------------------------------------------------------

%package -n akonadi-archivemail-agent
Summary:	Akonadi archivemail agent
Group:		Graphical desktop/KDE

%description -n akonadi-archivemail-agent
Akonadi archivemail agent.

%files -n akonadi-archivemail-agent -f akonadi_archivemail_agent.lang
%{_kde5_bindir}/akonadi_archivemail_agent
%{_kde5_datadir}/akonadi/agents/archivemailagent.desktop
%{_kde5_datadir}/config.kcfg/archivemailagentsettings.kcfg
%{_kde5_notificationsdir}/akonadi_archivemail_agent.notifyrc
%{_qt5_plugindir}/pim5/akonadi/config/archivemailagentconfig.so

#-----------------------------------------------------------------------------

%package -n akonadi-followupreminder-agent
Summary:	Akonadi followupreminder agent
Group:		Graphical desktop/KDE

%description -n akonadi-followupreminder-agent
Akonadi followup reminder agent allows to remind you when an email was not
answered.

%files -n akonadi-followupreminder-agent -f akonadi_followupreminder_agent.lang
%{_kde5_bindir}/akonadi_followupreminder_agent
%{_kde5_datadir}/akonadi/agents/followupreminder.desktop
%{_kde5_notificationsdir}/akonadi_followupreminder_agent.notifyrc
%{_qt5_plugindir}/pim5/akonadi/config/followupreminderagentconfig.so

#-----------------------------------------------------------------------------

%package -n akonadi-mailfilter-agent
Summary:	Akonadi mailfilter agent
Group:		Graphical desktop/KDE

%description -n akonadi-mailfilter-agent
Akonadi mailfilter agent.

%files -n akonadi-mailfilter-agent -f akonadi_mailfilter_agent.lang
%{_kde5_bindir}/akonadi_mailfilter_agent
%{_kde5_datadir}/akonadi/agents/mailfilteragent.desktop
%{_kde5_notificationsdir}/akonadi_mailfilter_agent.notifyrc

#-----------------------------------------------------------------------------

%package -n akonadi-sendlater-agent
Summary:	Akonadi sendlater agent
Group:		Graphical desktop/KDE

%description -n akonadi-sendlater-agent
Akonadi sendlater agent.

%files -n akonadi-sendlater-agent -f akonadi_sendlater_agent.lang
%{_kde5_bindir}/akonadi_sendlater_agent
%{_kde5_datadir}/akonadi/agents/sendlateragent.desktop
%{_kde5_notificationsdir}/akonadi_sendlater_agent.notifyrc

#-----------------------------------------------------------------------------

%package -n akonadi-unifiedmailbox-agent
Summary:	Akonadi unified mailbox agent
Group:		Graphical desktop/KDE

%description -n akonadi-unifiedmailbox-agent
Akonadi unified mailbox agent.

%files -n akonadi-unifiedmailbox-agent -f akonadi_unifiedmailbox_agent.lang
%{_kde5_bindir}/akonadi_unifiedmailbox_agent
%{_kde5_datadir}/akonadi/agents/unifiedmailboxagent.desktop

#----------------------------------------------------------------------------

%package -n ktnef
Summary:	KDE TNEF file viewer
Group:		Graphical desktop/KDE

%description -n ktnef
The TNEF file viewer allows you to handle mail attachments using the TNEF
format. These attachments are usually found in mails coming from Microsoft
mail servers and embed the mail properties as well as the actual attachments.

%files -n ktnef -f ktnef.lang
%{_kde5_applicationsdir}/org.kde.ktnef.desktop
%{_kde5_bindir}/ktnef
%{_kde5_iconsdir}/*/*/actions/ktnef_extract_*.*
%{_kde5_iconsdir}/*/*/apps/ktnef.*

#----------------------------------------------------------------------------

%define kmailprivate_major 5
%define libkmailprivate %mklibname kmailprivate %{kmailprivate_major}

%package -n %{libkmailprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkmailprivate}
KDE PIM shared library.

%files -n %{libkmailprivate}
%{_kde5_libdir}/libkmailprivate.so.%{kmailprivate_major}*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
    -DBUILD_TESTING=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name} kmail2 akonadi_mailmerge_agent kmail-refresh-settings %{name}.lang --with-kde --with-html

%find_lang akonadi_archivemail_agent --with-kde --with-html

%find_lang akonadi_followupreminder_agent --with-kde --with-html

%find_lang akonadi_mailfilter_agent --with-kde --with-html

%find_lang akonadi_sendlater_agent --with-kde --with-html

%find_lang akonadi_unifiedmailbox_agent --with-kde

%find_lang ktnef --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13804 |21mr|kmail-account-wizard-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Account wizard for KMail
Name:		kmail-account-wizard
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	openldap-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(shared-mime-info)
Provides:	accountwizard = %{EVRD}

%description
Launch the account wizard to configure PIM accounts.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.accountwizard.desktop
%{_kde5_bindir}/accountwizard
%{_kde5_bindir}/ispdb
%dir %{_kde5_datadir}/akonadi/accountwizard/tine20/
%{_kde5_datadir}/akonadi/accountwizard/tine20/*
%{_kde5_datadir}/knsrcfiles/accountwizard.knsrc
%{_kde5_datadir}/qlogging-categories5/accountwizard.categories
%{_kde5_datadir}/qlogging-categories5/accountwizard.renamecategories
%{_datadir}/mime/packages/accountwizard-mime.xml
%{_qt5_plugindir}/accountwizard_plugin.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang accountwizard accountwizard_tine20 %{name}.lang --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13805 |21mr|kmailtransport-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 mail transport module
Name:		kmailtransport
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kpimgapi-devel
BuildRequires:	ksmtp-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	qtkeychain-qt5-devel

%description
KDE Frameworks 5 mail transport module.

%files
# mailtransport.kcfg conflicts with kdepimlibs4-core
%{_kde5_datadir}/config.kcfg/mailtransport.kcfg
%{_kde5_datadir}/qlogging-categories5/kmailtransport.categories
%{_kde5_datadir}/qlogging-categories5/kmailtransport.renamecategories
%{_qt5_plugindir}/pim5/mailtransport/mailtransport_smtpplugin.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 mail transport library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 mail transport library translations.

%files i18n -f libmailtransport5.lang

#----------------------------------------------------------------------------

%define kf5mailtransport_major 5
%define libkf5mailtransport %mklibname kf5mailtransport %{kf5mailtransport_major}

%package -n %{libkf5mailtransport}
Summary:	KDE Frameworks 5 mail transport shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libkf5mailtransport}
KDE Frameworks 5 mail transport shared library.

%files -n %{libkf5mailtransport}
%{_kde5_libdir}/libKPim5MailTransport.so.%{kf5mailtransport_major}*

#----------------------------------------------------------------------------

%define devkf5mailtransport %mklibname kf5mailtransport -d

%package -n %{devkf5mailtransport}
Summary:	Development files for KDE Frameworks 5 mail transport module
Group:		Development/KDE and Qt
Requires:	%{libkf5mailtransport} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5mailtransport-devel = %{version}
Provides:	kf5mailtransportakonadi-devel = %{version}

%description -n %{devkf5mailtransport}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5mailtransport}
%{_kde5_includedir}/KPim5/MailTransport
%{_kde5_libdir}/cmake/KF5MailTransport
%{_kde5_libdir}/cmake/KPim5MailTransport
%{_kde5_libdir}/libKPim5MailTransport.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libmailtransport5 --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13806 |21mr|kmbox-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 MBox module
Name:		kmbox
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5mime-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 module for accessing mail storages in MBox format.

%files
%{_kde5_datadir}/qlogging-categories5/kmbox.categories
%{_kde5_datadir}/qlogging-categories5/kmbox.renamecategories

#----------------------------------------------------------------------------

%define kf5mbox_major 5
%define libkf5mbox %mklibname kf5mbox %{kf5mbox_major}

%package -n %{libkf5mbox}
Summary:	KDE Frameworks 5 MBox shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkf5mbox}
KDE Frameworks 5 MBox shared library.

%files -n %{libkf5mbox}
%{_kde5_libdir}/libKPim5Mbox.so.%{kf5mbox_major}*

#----------------------------------------------------------------------------

%define devkf5mbox %mklibname kf5mbox -d

%package -n %{devkf5mbox}
Summary:	Development files for KDE Frameworks 5 MBox module
Group:		Development/KDE and Qt
Requires:	%{libkf5mbox} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5mbox-devel = %{version}

%description -n %{devkf5mbox}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5mbox}
%{_kde5_includedir}/KPim5/KMbox
%{_kde5_libdir}/cmake/KPim5Mbox
%{_kde5_libdir}/libKPim5Mbox.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13807 |21mr|kmediaplayer-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 media player features plugin interface
Name:		kmediaplayer
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kparts-devel = %{version}
BuildRequires:	kxmlgui-devel = %{version}
BuildRequires:	kcoreaddons-devel = %{version}
BuildRequires:	kconfig-devel = %{version}
BuildRequires:	kwidgetsaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 media player features plugin interface.

KMediaPlayer builds on the KParts framework to provide a common interface
for KParts that can play media files.

%files
%{_kde5_servicetypes}/kmediaplayer-player.desktop
%{_kde5_servicetypes}/kmediaplayer-engine.desktop

#----------------------------------------------------------------------------

%define kf5mediaplayer_major 5
%define libkf5mediaplayer %mklibname kf5mediaplayer %{kf5mediaplayer_major}

%package -n %{libkf5mediaplayer}
Summary:	KDE Frameworks 5 KMediaPlayer media player shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5mediaplayer}
KDE Frameworks 5 media player shared library.

%files -n %{libkf5mediaplayer}
%{_kde5_libdir}/libKF5MediaPlayer.so.%{kf5mediaplayer_major}*

#----------------------------------------------------------------------------

%define devkf5mediaplayer %mklibname kf5mediaplayer -d

%package -n %{devkf5mediaplayer}
Summary:	Development files for KDE Frameworks 5 media player interface
Group:		Development/KDE and Qt
Requires:	%{libkf5mediaplayer} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5mediaplayer-devel = %{version}

%description -n %{devkf5mediaplayer}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5mediaplayer}
%{_kde5_includedir}/KF5/KMediaPlayer
%{_kde5_libdir}/cmake/KF5MediaPlayer
%{_kde5_libdir}/libKF5MediaPlayer.so
%{_datadir}/dbus-1/interfaces/kf5_org.kde.KMediaPlayer.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13808 |21mr|kmflcomp-0.9.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Compiler for source Tavultesoft Keyman files
Name:		kmflcomp
Version:	0.9.10
Release:	1
License:	GPLv2+
Group:		System/Internationalization
Url:		http://kmfl.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/kmfl/%{name}-%{version}.tar.gz
Patch0:		kmflcomp-0.9.10-linkage.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xdmcp)

%description
KMFL is a keyboarding input method which aims to bring Tavultesoft
Keyman functionality to Linux.

kmflcomp is one of three parts of the KMFL project. It is a keyboard
compiler. The other two parts are libkmfl and libscim-kmfl-imengine.

%files
%doc AUTHORS ChangeLog
%{_bindir}/kmflcomp

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Kmflcomp shared library
Group:		System/Libraries

%description -n %{libname}
KMFL is a keyboarding input method which aims to bring Tavultesoft
Keyman functionality to Linux.

libkmflcomp is one of three parts of the KMFL project. It is a 
keyboard compiler library. The other two parts are libkmfl and 
libscim-kmfl-imengine.

%files -n %{libname}
%{_libdir}/libkmflcomp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Kmflcomp library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and static library of Kmflcomp.

%files -n %{devname}
%{_includedir}/kmfl
%{_libdir}/libkmflcomp.a
%{_libdir}/libkmflcomp.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
#static lib needed for final link!
%configure --enable-static
%make

%install
%makeinstall_std

# remove documents (AUTHORS, COPYING etc.)
# they should be installed by %doc
rm -rf %{buildroot}/%{_prefix}/doc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13809 |21mr|kmime-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Frameworks 5 MIME module
Name:		kmime
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 MIME module.

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 MIME library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 MIME library translations.

%files i18n -f libkmime5.lang

#----------------------------------------------------------------------------Updated to 5.3.1

%define kf5mime_major 5
%define libkf5mime %mklibname kf5mime %{kf5mime_major}

%package -n %{libkf5mime}
Summary:	KDE Frameworks 5 MIME shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libkf5mime}
KDE Frameworks 5 MIME shared library.

%files -n %{libkf5mime}
%{_kde5_libdir}/libKPim5Mime.so.%{kf5mime_major}*

#----------------------------------------------------------------------------

%define devkf5mime %mklibname kf5mime -d

%package -n %{devkf5mime}
Summary:	Development files for KDE Frameworks 5 MIME module
Group:		Development/KDE and Qt
Requires:	%{libkf5mime} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5mime-devel = %{version}

%description -n %{devkf5mime}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5mime}
%{_kde5_includedir}/KPim5/KMime
%{_kde5_libdir}/cmake/KPim5Mime
%{_kde5_libdir}/cmake/KF5Mime
%{_kde5_libdir}/libKPim5Mime.so
%{_kde5_mkspecsdir}/*.pri
%{_kde5_datadir}/qlogging-categories5/kmime.categories
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkmime5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13810 |21mr|kmines-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	The classic mine sweeper
Name:		kmines
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kmines
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KMines is a classic Minesweeper game. The idea is to uncover all the squares
without blowing up any mines. When a mine is blown up, the game is over.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kmines.desktop
%{_kde5_bindir}/kmines
%{_kde5_datadir}/kmines
%{_kde5_datadir}/qlogging-categories5/kmines.categories
%{_kde5_iconsdir}/hicolor/*/apps/kmines.*
%{_appdatadir}/org.kde.kmines.appdata.xml
#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13811 |21mr|kmod-30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	2
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

# (tpg) this is important
# keep this synchronized with module-init-tools-ver-rel+1
%define module_ver 3.17-1

Summary:	Utilities to load modules into the kernel
Name:		kmod
Version:	30
Release:	1
License:	LGPLv2.1+ and GPLv2+
Group:		System/Kernel and hardware
Url:		http://git.kernel.org/?p=utils/kernel/kmod/kmod.git;a=summary
# See also: http://packages.profusion.mobi/kmod/
Source0:	https://cdn.kernel.org/pub/linux/utils/kernel/kmod/%{name}-%{version}.tar.xz
# (tpg) provide config files from module-init-tools
Source2:	modprobe.default
Source3:	modprobe.preload
Source4:	blacklist-mdv.conf
Source5:	ipw-no-associate.conf
Source6:	blacklist-compat.conf
Source7:	usb.conf
# https://github.com/kmod-project/kmod/pull/19
Patch1:		0001-libkmod-do-not-crash-on-unknown-signature-algorithm.patch
# https://github.com/kmod-project/kmod/pull/20
Patch2:		0001-libkmod-support-GOST-signatures.patch
# cherry-picked from upstream after v30
Patch3:		c1fb98a30dae051ab69d23624d1e062d0527527e.patch
Patch4:		b4d281f962be74adfbae9d7bead6a7352033342c.patch

BuildRequires:	gtk-doc
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(zlib)

# to regenerate initrds
Requires:	rosa-kernel-tools

%description
kmod is a set of tools to handle common tasks with Linux kernel
modules like insert, remove, list, check properties, resolve
dependencies and aliases.

These tools are designed on top of libkmod, a library that is shipped
with kmod. The aim is to be compatible with tools, configurations and
indexes from module-init-tools project.

%files
/bin/kmod
%{_datadir}/bash-completion/completions/kmod
%{_mandir}/man5/*
%{_mandir}/man8/*
/var/spool/initramfs-regen/%{name}

#---------------------------------------------------------------------------

%package	compat
Summary:	Compat symlinks for kernel module utilities
License:	GPLv2+
Group:		System/Kernel and hardware
Obsoletes:	module-init-tools < %{module_ver}
Provides:	module-init-tools = %{module_ver}
Requires:	%{name} = %{EVRD}

%description	compat
kmod is a set of tools to handle common tasks with Linux kernel
modules like insert, remove, list, check properties, resolve
dependencies and aliases.

This package contains traditional name symlinks (lsmod, etc.)

%files compat
%dir %{_sysconfdir}/modprobe.d
%dir %{_sysconfdir}/depmod.d
%dir /lib/modprobe.d
%config(noreplace) %{_sysconfdir}/modprobe.preload
%config(noreplace) %{_sysconfdir}/modprobe.conf
%config(noreplace) %{_sysconfdir}/modprobe.d/*.conf
/bin/lsmod
/sbin/*
%{_sbindir}/*

#---------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Library to interact with Linux kernel modules
License:	LGPLv2.1+
Group:		System/Libraries
# (tpg) do not require this until initscripts are fixed
#Requires:	%{name}-compat = %{EVRD}
Conflicts:	%{mklibname modprobe 0} <= 3.6-18
Conflicts:	%{mklibname modprobe 1} < %{module_ver}

%description -n	%{libname}
libkmod was created to allow programs to easily insert, remove and
list modules, also checking its properties, dependencies and aliases.

%files -n %{libname}
/%{_lib}/libkmod.so.%{major}*

#---------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for libkmod
Group:		Development/C
License:	LGPLv2.1+
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-compat = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
libkmod was created to allow programs to easily insert, remove and
list modules, also checking its properties, dependencies and aliases.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libkmod.so
%{_docdir}/%{name}

#---------------------------------------------------------------------------

%prep
%autosetup -p1
# based on autogen.sh
gtkdocize --docdir libkmod/docs || touch libkmod/docs/gtk-doc.make
autoreconf -if

%build
# The extra --includedir gives us the possibility to detect dependent
# packages which fail to properly use pkgconfig.
%configure \
	--with-xz \
	--with-zlib \
	--with-zstd \
	--with-openssl \
	--includedir=%{_includedir}/%{name}-%{version} \
	--with-rootlibdir=/%{_lib} \
	--bindir=/bin \
	--enable-shared \
	--enable-gtk-doc \
	--enable-gtk-doc-html \
	--with-html-dir=%{_docdir}/%{name}/html

%make_build


%install
%make_install
# Remove standalone tools
rm -f %{buildroot}/bin/kmod-*
rm -f %{buildroot}%{_libdir}/libkmod.la

# (tpg) install config files
install -d -m755 %{buildroot}%{_sysconfdir}
install -d -m755 %{buildroot}%{_sysconfdir}/depmod.d
install -d -m755 %{buildroot}%{_sysconfdir}/modprobe.d
install -d -m755 %{buildroot}/lib/modprobe.d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/modprobe.d/00_modprobe.conf
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}
install -m 644 %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7} %{buildroot}%{_sysconfdir}/modprobe.d
touch %{buildroot}%{_sysconfdir}/modprobe.conf

# kmod-compat
mkdir -p %{buildroot}/{bin,sbin}
mkdir -p %{buildroot}%{_sbindir}
ln -s kmod %{buildroot}/bin/lsmod
for i in depmod insmod lsmod modinfo modprobe rmmod; do
	ln -s /bin/kmod %{buildroot}/sbin/$i
	ln -s /bin/kmod %{buildroot}%{_sbindir}/$i
done;

# keep kmod in initrd in sync with installed package
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13812 |21mr|kmousetool-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automatic Mouse Click
Name:		kmousetool
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/utilities/kmousetool/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xtst)

%description
KMouseTool is a Linux-based KDE program. It clicks the mouse for you,
so you don't have to. KMouseTool works with any mouse or pointing device.

%files -f %{name}.lang
%doc AUTHORS ChangeLog README TODO
%{_kde5_bindir}/kmousetool
%{_kde5_applicationsdir}/org.kde.kmousetool.desktop
%{_kde5_datadir}/kmousetool
%{_kde5_iconsdir}/hicolor/*/*/kmousetool*
%{_kde5_mandir}/man1/kmousetool.1.*
%{_appdatadir}/org.kde.kmousetool.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Drop for now to avoid file conflicts with kde-l10n
rm -rf %{buildroot}%{_mandir}/*/man1/kmousetool.1*

%find_lang %{name} --with-html --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13813 |21mr|kmouth-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A type-and-say front end for speech synthesizers
Name:		kmouth
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+ and GFDL
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/utilities/kmouth/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5TextToSpeech)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KMouth is a program which enables persons that cannot speak to let their
computer speak, e.g. mutal people or people who have lost their voice. It has a
text input field and speaks the sentences that you enter. It also has support
for user defined phrasebooks.

%files -f %{name}.lang
%doc AUTHORS COPYING COPYING.DOC
%{_kde5_applicationsdir}/org.kde.kmouth.desktop
%{_kde5_bindir}/kmouth
%{_kde5_configdir}/kmouthrc
%{_kde5_datadir}/kmouth
%{_kde5_iconsdir}/*/*/actions/phrase.*
%{_kde5_iconsdir}/*/*/actions/phrasebook.*
%{_kde5_iconsdir}/*/*/apps/kmouth.*
%{_kde5_mandir}/man1/kmouth.1.*
%{_kde5_xmlguidir}/kmouth/kmouthui.rc
%{_kde5_xmlguidir}/kmouth/phrasebookdialogui.rc
%{_appdatadir}/org.kde.kmouth.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13814 |21mr|kmplot-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A mathematical function plotter
Name:		kmplot
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kmplot
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KmPlot is a mathematical function plotter for the KDE-Desktop.

It has built in a powerfull parser. You can plot different functions
simultaneously and combine their function terms to build new functions.
KmPlot supports functions with parameters and functions in polar
coordinates. Several grid modes are possible. Plots may be printed with
high precision in correct scale.

%files -f %{name}.lang
%doc TODO
%{_kde5_applicationsdir}/org.kde.kmplot.desktop
%{_kde5_bindir}/kmplot
%{_kde5_datadir}/config.kcfg/kmplot.kcfg
%{_kde5_iconsdir}/*/*/apps/kmplot.*
%{_kde5_mandir}/man1/kmplot.1.*
%{_kde5_services}/kmplot_part.desktop
%{_kde5_xmlguidir}/kmplot/kmplot_*.rc
%{_appdatadir}/org.kde.kmplot.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.kmplot.KmPlot.xml
%{_datadir}/dbus-1/interfaces/org.kde.kmplot.MainDlg.xml
%{_datadir}/dbus-1/interfaces/org.kde.kmplot.Parser.xml
%{_datadir}/dbus-1/interfaces/org.kde.kmplot.View.xml
%{_kde5_plugindir}/parts/kmplotpart.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13815 |21mr|kmymoney-5.1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Personal Finances Manager
Name:		kmymoney
Version:	5.1.1
Release:	7
License:	GPLv2+
Group:		Office
Url:		http://techbase.kde.org/Projects/KMyMoney
Source0:	https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
Source1:	kmymoney-5.1.1_ru.tar.gz
Patch0:     kmymoney-5.1.2-akonadi-21.12.0.patch
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gmpxx-devel
BuildRequires:	qgpgme-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5webkit-devel
BuildRequires:	kchart-devel
BuildRequires:	pkgconfig(sqlcipher)
BuildRequires:	pkgconfig(aqbanking)
BuildRequires:	pkgconfig(libalkimia5)
BuildRequires:	pkgconfig(libofx)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KMyMoney Personal Finance Manager.

%files -f %{name}.lang
%{_kde5_applicationsdir}/*.desktop
%{_kde5_docdir}/*
%{_kde5_bindir}/*
%{_kde5_datadir}/config.kcfg/*.kcfg
%{_kde5_services}/*.desktop
%{_kde5_servicetypes}/*.desktop
%{_iconsdir}/hicolor/*/*/*.png
%{_datadir}/mime/packages/*.xml
%{_mandir}/ca/man1/kmymoney.1.xz
%{_mandir}/de/man1/kmymoney.1.xz
%{_mandir}/it/man1/kmymoney.1.xz
%{_mandir}/man1/kmymoney.1.xz
%{_mandir}/nl/man1/kmymoney.1.xz
%{_mandir}/pt/man1/kmymoney.1.xz
%{_mandir}/pt_BR/man1/kmymoney.1.xz
%{_mandir}/sv/man1/kmymoney.1.xz
%{_mandir}/uk/man1/kmymoney.1.xz
%{_datadir}/metainfo/org.kde.kmymoney.appdata.xml
%{_kde5_datadir}/kxmlgui5/checkprinting/checkprinting.rc
%{_kde5_datadir}/kxmlgui5/csvexporter/csvexporter.rc
%{_kde5_datadir}/kxmlgui5/csvimporter/csvimporter.rc
%{_kde5_datadir}/kxmlgui5/icalendarexporter/icalendarexporter.rc
%{_kde5_datadir}/kxmlgui5/kbanking/kbanking.rc
%{_kde5_datadir}/kxmlgui5/ofximporter/ofximporter.rc
%{_kde5_datadir}/kxmlgui5/qifexporter/qifexporter.rc
%{_kde5_datadir}/kxmlgui5/qifimporter/qifimporter.rc
%{_kde5_datadir}/kxmlgui5/sqlstorage/sqlstorage.rc
%{_kde5_datadir}/kmymoney/templates/*/*.kmt
%{_kde5_datadir}/kmymoney/html
%{_kde5_datadir}/kmymoney/tips
%{_kde5_datadir}/kmymoney/misc/financequote.pl
%{_kde5_datadir}/kmymoney/pics
%{_kde5_datadir}/kmymoney/icons/*/*/actions/*.svgz
%{_kde5_datadir}/kmymoney/icons/*/*/actions/*.png
%{_qt5_plugindir}/kmymoney/*.so
%{_qt5_plugindir}/sqldrivers/*.so
%{_kde5_datadir}/checkprinting/check_template.html
%{_kde5_datadir}/checkprinting/check_template_green_linen.html
%{_kde5_datadir}/kbanking/qml/chipTan/ChipTan.qml
%{_kde5_datadir}/kbanking/qml/chipTan/ChipTanFlickerField.qml
%{_kde5_datadir}/kbanking/qml/chipTan/chipTan.js
%{_kde5_datadir}/kbanking/qml/chipTan/positionmarker.svg
%{_kde5_datadir}/kconf_update/kmymoney.upd


#-----------------------------------------------------------------------------

%define kmm_csvimportercore_major 5
%define libkmm_csvimportercore %mklibname kmm_csvimportercore %{kmm_csvimportercore_major}

%package -n %{libkmm_csvimportercore}
Summary:	KMyMoney library
Group:		System/Libraries

%description -n %{libkmm_csvimportercore}
KMyMoney library.

%files -n %{libkmm_csvimportercore}
%{_kde5_libdir}/libkmm_csvimportercore.so.%{kmm_csvimportercore_major}*

#-----------------------------------------------------------------------------
%define kmm_icons_major 5
%define libkmm_icons %mklibname kmm_icons %{kmm_icons_major}

%package -n %{libkmm_icons}
Summary:	KMyMoney library
Group:		System/Libraries

%description -n %{libkmm_icons}
KMyMoney library.

%files -n %{libkmm_icons}
%{_kde5_libdir}/libkmm_icons.so.%{kmm_icons_major}*

#-----------------------------------------------------------------------------
%define kmm_menus_major 5
%define libkmm_menus %mklibname kmm_menus %{kmm_menus_major}

%package -n %{libkmm_menus}
Summary:	Kmenus library
Group:		System/Libraries

%description -n %{libkmm_menus}
Kmenus library.

%files -n %{libkmm_menus}
%{_kde5_libdir}/libkmm_menus.so.%{kmm_menus_major}*

#-----------------------------------------------------------------------------
%define kmm_models_major 5
%define libkmm_models %mklibname kmm_models %{kmm_models_major}

%package -n %{libkmm_models}
Summary:	Kmodels library
Group:		System/Libraries

%description -n %{libkmm_models}
Kmodels library.

%files -n %{libkmm_models}
%{_kde5_libdir}/libkmm_models.so.%{kmm_models_major}*

#-----------------------------------------------------------------------------

%define kmm_mymoney_major 5
%define libkmm_mymoney %mklibname kmm_mymoney %{kmm_mymoney_major}

%package -n %{libkmm_mymoney}
Summary:	KMyMoney library
Group:		System/Libraries

%description -n %{libkmm_mymoney}
KMyMoney library.

%files -n %{libkmm_mymoney}
%{_kde5_libdir}/libkmm_mymoney.so.%{kmm_mymoney_major}*

#-----------------------------------------------------------------------------

%define kmm_payeeidentifier_major 5
%define libkmm_payeeidentifier %mklibname kmm_payeeidentifier %{kmm_payeeidentifier_major}

%package -n %{libkmm_payeeidentifier}
Summary:	KMyMoney library
Group:		System/Libraries

%description -n %{libkmm_payeeidentifier}
KMyMoney library.

%files -n %{libkmm_payeeidentifier}
%{_kde5_libdir}/libkmm_payeeidentifier.so.%{kmm_payeeidentifier_major}*

#-----------------------------------------------------------------------------

%define kmm_plugin_major 5
%define libkmm_plugin %mklibname kmm_plugin %{kmm_plugin_major}

%package -n %{libkmm_plugin}
Summary:	KMyMoney library
Group:		System/Libraries

%description -n %{libkmm_plugin}
KMyMoney library.

%files -n %{libkmm_plugin}
%{_kde5_libdir}/libkmm_plugin.so.%{kmm_plugin_major}*

#-----------------------------------------------------------------------------
%define kmm_printer_major 5
%define libkmm_printer %mklibname kmm_printer %{kmm_printer_major}

%package -n %{libkmm_printer}
Summary:	KMyMoney library
Group:		System/Libraries

%description -n %{libkmm_printer}
KMyMoney library.

%files -n %{libkmm_printer}
%{_kde5_libdir}/libkmm_printer.so.%{kmm_printer_major}*

#-----------------------------------------------------------------------------
%define kmm_settings_major 5
%define libkmm_settings %mklibname kmm_settings %{kmm_settings_major}

%package -n %{libkmm_settings}
Summary:	KMyMoney library
Group:		System/Libraries

%description -n %{libkmm_settings}
KMyMoney library.

%files -n %{libkmm_settings}
%{_kde5_libdir}/libkmm_settings.so.%{kmm_settings_major}*

#-----------------------------------------------------------------------------

%define kmm_widgets_major 5
%define libkmm_widgets %mklibname kmm_widgets %{kmm_widgets_major}

%package -n %{libkmm_widgets}
Summary:	KMyMoney library
Group:		System/Libraries

%description -n %{libkmm_widgets}
KMyMoney library.

%files -n %{libkmm_widgets}
%{_kde5_libdir}/libkmm_widgets.so.%{kmm_widgets_major}*

#-----------------------------------------------------------------------------

%package devel
Summary:	KMyMoney Development library
Group:		Development/KDE and Qt
Requires:	%{libkmm_csvimportercore} = %{EVRD}
Requires:	%{libkmm_icons} = %{EVRD}
Requires:	%{libkmm_mymoney} = %{EVRD}
Requires:	%{libkmm_menus} = %{EVRD}
Requires:	%{libkmm_models} = %{EVRD}
Requires:	%{libkmm_payeeidentifier} = %{EVRD}
Requires:	%{libkmm_plugin} = %{EVRD}
Requires:	%{libkmm_printer} = %{EVRD}
Requires:	%{libkmm_settings} = %{EVRD}
Requires:	%{libkmm_widgets} = %{EVRD}

%description devel
KMyMoney development files.

%files devel
%{_kde5_libdir}/*.so
%{_kde5_includedir}/%{name}

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
export LIBICAL_BASE=%{_prefix}
%cmake_kde5
%make

%install
%makeinstall_std -C build

#mv %{buildroot}%{_kde5_appsdir}/appdata %{buildroot}%{_kde5_datadir}/

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13816 |21mr|knavalbattle-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Battleship game with built-in game server
Name:		knavalbattle
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/navalbattle/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	kbattleship = %{EVRD}

%description
Naval Battle (ex-KBattleship) is a Battle Ship game for KDE.

Ships are placed on a board which represents the sea. Players try to hit each
others ships in turns without knowing where they are placed. The first player
to destroy all ships wins the game.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.knavalbattle.desktop
%{_kde5_bindir}/knavalbattle
%{_kde5_datadir}/knavalbattle/
%{_kde5_datadir}/qlogging-categories5/knavalbattle.categories
%{_kde5_iconsdir}/hicolor/*/apps/knavalbattle.*
%{_appdatadir}/org.kde.knavalbattle.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13817 |21mr|knetwalk-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Turn the board pieces to get all computers connected
Name:		knetwalk
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+ and LGPLv2+ and GFDL
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/knetwalk/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KNetWalk is a small game where you have to build up a computer network by
rotating the wires to connect the terminals to the server. When the network is
build, a highscore-list comes up where competitions can be fought out.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.knetwalk.desktop
%{_kde5_bindir}/knetwalk
%{_kde5_datadir}/knetwalk
%{_kde5_iconsdir}/hicolor/*/apps/knetwalk.*
%{_appdatadir}/org.kde.knetwalk.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13818 |21mr|knewstuff-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 application assets downloading support module
Name:		knewstuff
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Patch0:		knewstuff-5.69.0-title.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5attica-devel = %{version}
BuildRequires:	kf5archive-devel = %{version}
BuildRequires:	kf5completion-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5itemviews-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5package-devel = %{version}
BuildRequires:	kf5textwidgets-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	kf5xmlgui-devel = %{version}
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5UiPlugin)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
# optional
BuildRequires:	kf5kirigami2-devel
Requires:	kirigami2

%description
KDE Frameworks 5 application assets downloading support module.

The KNewStuff library implements collaborative data sharing for applications.
It uses libattica to support the Open Collaboration Services specification.

%files
%{_kde5_applicationsdir}/org.kde.knewstuff-dialog.desktop
%{_kde5_bindir}/knewstuff-dialog
%dir %{_kde5_datadir}/kf5/kmoretools/presets-kmoretools/
%{_kde5_datadir}/kf5/kmoretools/presets-kmoretools/*
%{_kde5_datadir}/qlogging-categories5/knewstuff.categories
%{_kde5_datadir}/qlogging-categories5/knewstuff.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KNewStuff translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KNewStuff translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/knewstuffwidgets.so

#----------------------------------------------------------------------------

%define qmlkf5newstuff %mklibname kf5newstuff-qml

%package -n %{qmlkf5newstuff}
Summary:	QML plugin for KDE Frameworks 5 KNewStuff
Group:		System/Libraries
Provides:	kf5newstuff-qml = %{EVRD}

%description -n %{qmlkf5newstuff}
QML plugin for KDE Frameworks 5 KNewStuff.

%files -n %{qmlkf5newstuff}
%dir %{_kde5_qmldir}/org/kde/newstuff/
%{_kde5_qmldir}/org/kde/newstuff/*

#----------------------------------------------------------------------------

%define kf5newstuff_major 5
%define libkf5newstuff %mklibname kf5newstuff %{kf5newstuff_major}

%package -n %{libkf5newstuff}
Summary:	KDE Frameworks 5 KNewStuff application assets downloading support library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5newstuff} = %{EVRD}

%description -n %{libkf5newstuff}
KDE Frameworks 5 application assets downloading support shared library.

%files -n %{libkf5newstuff}
%{_kde5_libdir}/libKF5NewStuff.so.%{kf5newstuff_major}*

#----------------------------------------------------------------------------

%define kf5newstuffcore_major 5
%define libkf5newstuffcore %mklibname kf5newstuffcore %{kf5newstuffcore_major}

%package -n %{libkf5newstuffcore}
Summary:	KDE Frameworks 5 KNewStuff application assets downloading support library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5newstuff} = %{EVRD}

%description -n %{libkf5newstuffcore}
KDE Frameworks 5 application assets downloading support shared library.

%files -n %{libkf5newstuffcore}
%{_kde5_libdir}/libKF5NewStuffCore.so.%{kf5newstuffcore_major}*

#----------------------------------------------------------------------------

%define kf5newstuffwidgets_major 5
%define libkf5newstuffwidgets %mklibname kf5newstuffwidgets %{kf5newstuffwidgets_major}

%package -n %{libkf5newstuffwidgets}
Summary:	KDE Frameworks 5 KNewStuff application assets downloading support library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5newstuff} = %{EVRD}

%description -n %{libkf5newstuffwidgets}
KDE Frameworks 5 application assets downloading support shared library.

%files -n %{libkf5newstuffwidgets}
%{_kde5_libdir}/libKF5NewStuffWidgets.so.%{kf5newstuffwidgets_major}*

#----------------------------------------------------------------------------

%define devkf5newstuff %mklibname kf5newstuff -d

%package -n %{devkf5newstuff}
Summary:	Development files for KDE Frameworks assets downloading support module
Group:		Development/KDE and Qt
Requires:	%{libkf5newstuff} = %{EVRD}
Requires:	%{libkf5newstuffcore} = %{EVRD}
Requires:	%{libkf5newstuffwidgets} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5newstuff-devel = %{version}

%description -n %{devkf5newstuff}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5newstuff}
%{_kde5_includedir}/KF5/KNewStuff3
%{_kde5_includedir}/KF5/KMoreTools
%{_kde5_libdir}/cmake/KF5NewStuff
%{_kde5_libdir}/cmake/KF5NewStuffCore
%{_kde5_libdir}/cmake/KF5NewStuffQuick
%{_kde5_libdir}/libKF5NewStuff.so
%{_kde5_libdir}/libKF5NewStuffCore.so
%{_kde5_libdir}/libKF5NewStuffWidgets.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13819 |21mr|knights-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple chess board game for KDE
Name:		knights
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://kde-apps.org/content/show.php/Knights?content=122046
Source0:	http://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5plotting-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5TextToSpeech)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	gnuchess

%description
Knights is a simple chess board for KDE. It is a rewrite of the KDE3 Knights,
but it's not yet as feature-complete compared to the old one. Currently you can
play against computer engines that support the XBoard protocol (like GnuChess)
or against a player at the same computer. It has automatic rule checking and
some nice animations.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.knights.desktop
%{_kde5_bindir}/%{name}
%{_kde5_datadir}/%{name}
%{_kde5_datadir}/config.kcfg/%{name}.kcfg
%{_kde5_datadir}/knsrcfiles/knights.knsrc
%{_kde5_datadir}/qlogging-categories5/knights.categories
%{_kde5_iconsdir}/hicolor/*/apps/%{name}.png
%{_kde5_xmlguidir}/knights/knightsui.rc
%{_appdatadir}/org.kde.knights.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.Knights.xml
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13820 |21mr|knotes-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE notes application
Name:		knotes
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadinotes-devel
BuildRequires:	kf5akonadisearch-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimcommonakonadi-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
Requires:	akonadi-notes-agent
Requires:	plasma5-akonadi-mime
Requires:	plasma5-akonadi-search
Requires:	plasma5-kdepim-runtime

%description
KNotes aims to be a useful and full featured notes application for
the KDE project. It tries to be as fast and lightweight as possible
although including some advanced features.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.knotes.desktop
%{_kde5_bindir}/knotes
%{_kde5_datadir}/config.kcfg/knotesglobalconfig.kcfg
%{_kde5_datadir}/config.kcfg/notesagentsettings.kcfg
%{_kde5_datadir}/knotes
%{_kde5_datadir}/knsrcfiles/knotes_printing_theme.knsrc
%{_kde5_datadir}/qlogging-categories5/knotes.categories
%{_kde5_datadir}/qlogging-categories5/knotes.renamecategories
%{_kde5_iconsdir}/hicolor/*/actions/knotes_*.*
%{_kde5_iconsdir}/hicolor/*/apps/knotes.*
%{_kde5_xmlguidir}/knotes/*.rc
%{_appdatadir}/org.kde.knotes.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.KNotes.xml
%{_datadir}/dbus-1/interfaces/org.kde.kontact.KNotes.xml
%{_qt5_plugindir}/pim5/kcms/knotes/kcm_knote_*.so
%{_qt5_plugindir}/pim5/kcms/summary/kcmknotessummary.so
%{_qt5_plugindir}/pim5/kontact/kontact_knotesplugin.so

#-----------------------------------------------------------------------------

%package -n akonadi-notes-agent
Summary:	Akonadi notes agent
Group:		Graphical desktop/KDE
Requires:	knotes

%description -n akonadi-notes-agent
Akonadi notes agent. It adds notes received via network and handles note
alarm notifications.

%files -n akonadi-notes-agent -f akonadi_notes_agent.lang
%{_kde5_bindir}/akonadi_notes_agent
%{_kde5_datadir}/akonadi/agents/notesagent.desktop
%{_kde5_notificationsdir}/akonadi_notes_agent.notifyrc

#----------------------------------------------------------------------------

%define knotesprivate_major 5
%define libknotesprivate %mklibname knotesprivate %{knotesprivate_major}

%package -n %{libknotesprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libknotesprivate}
KDE PIM shared library.

%files -n %{libknotesprivate}
%{_kde5_libdir}/libknotesprivate.so.%{knotesprivate_major}*

#----------------------------------------------------------------------------

%define notesharedprivate_major 5
%define libnotesharedprivate %mklibname notesharedprivate %{notesharedprivate_major}

%package -n %{libnotesharedprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libnotesharedprivate}
KDE PIM shared library.

%files -n %{libnotesharedprivate}
%{_kde5_libdir}/libnotesharedprivate.so.%{notesharedprivate_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} libnoteshared %{name}.lang --with-kde --with-html

%find_lang akonadi_notes_agent --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13821 |21mr|knotifications-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 system notifications module
Name:		knotifications
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Patch0:     fix.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5codecs-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5windowsystem-devel = %{version}
BuildRequires:	pkgconfig(dbusmenu-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
# for text-to-speech and audio notifications
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(Qt5TextToSpeech)

%description
KDE Frameworks 5 system notifications module.

%files
%{_kde5_datadir}/qlogging-categories5/knotifications.categories
%{_kde5_datadir}/qlogging-categories5/knotifications.renamecategories
%{_kde5_qmldir}/org/kde/notification

#----------------------------------------------------------------------------

%package i18n
Summary:	KNotifications translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KNotifications translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5notifications_major 5
%define libkf5notifications %mklibname kf5notifications %{kf5notifications_major}

%package -n %{libkf5notifications}
Summary:	KDE Frameworks 5 system notifications shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5notifications}
KDE Frameworks 5 system notifications shared library.

%files -n %{libkf5notifications}
%{_kde5_libdir}/libKF5Notifications.so.%{kf5notifications_major}*

#----------------------------------------------------------------------------

%define devkf5notifications %mklibname kf5notifications -d

%package -n %{devkf5notifications}
Summary:	Development files for KDE Frameworks 5 system notifications module
Group:		Development/KDE and Qt
Requires:	%{libkf5notifications} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}fix.patch
Provides:	kf5notifications-devel = %{version}
Conflicts:	%{name} < 5.7.0-2

%description -n %{devkf5notifications}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5notifications}
%{_kde5_includedir}/KF5/KNotifications
%{_kde5_libdir}/cmake/KF5Notifications
%{_kde5_libdir}/libKF5Notifications.so
%{_kde5_mkspecsdir}/*.pri
%{_datadir}/dbus-1/interfaces/kf5_org.kde.*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13822 |21mr|knotifyconfig-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 KNotify configuration system module
Name:		knotifyconfig
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kcompletion-devel = %{version}
BuildRequires:	kconfig-devel = %{version}
BuildRequires:	kconfigwidgets-devel = %{version}
BuildRequires:	ki18n-devel = %{version}
BuildRequires:	kio-devel = %{version}
BuildRequires:	knotifications-devel = %{version}
BuildRequires:	kservice-devel = %{version}
BuildRequires:	kwidgetsaddons-devel = %{version}
BuildRequires:	kxmlgui-devel = %{version}
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 KNotify configuration system module.

KNotifyConfig provides a configuration dialog for desktop notifications which
can be embedded in your application.

%files
%{_kde5_datadir}/qlogging-categories5/knotifyconfig.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KNotifyConfig translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KNotifyConfig translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5notifyconfig_major 5
%define libkf5notifyconfig %mklibname kf5notifyconfig %{kf5notifyconfig_major}

%package -n %{libkf5notifyconfig}
Summary:	KDE Frameworks 5 KNotify configuration system shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5notifyconfig}
KDE Frameworks 5 KNotify configuration system shared library.

%files -n %{libkf5notifyconfig}
%{_kde5_libdir}/libKF5NotifyConfig.so.%{kf5notifyconfig_major}*

#----------------------------------------------------------------------------

%define devkf5notifyconfig %mklibname kf5notifyconfig -d

%package -n %{devkf5notifyconfig}
Summary:	Development files for KDE Frameworks 5 KNotify configuration system module
Group:		Development/KDE and Qt
Requires:	%{libkf5notifyconfig} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5notifyconfig-devel = %{version}

%description -n %{devkf5notifyconfig}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5notifyconfig}
%{_kde5_includedir}/KF5/KNotifyConfig
%{_kde5_libdir}/cmake/KF5NotifyConfig
%{_kde5_libdir}/libKF5NotifyConfig.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13823 |21mr|kodi-19.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# due to xbmc modules using symbols from xbmc binary
# and not using libtool
%global	_disable_ld_no_undefined 1

%define	oname xbmc
%define	codename Matrix

%define	firewalld_servicedir /usr/lib/firewalld/services/

Summary:	Kodi (ex-XBMC) Media Center - media player and home entertainment system
Name:		kodi
Version:	19.4
Release:	3
# Nosefart audio plugin and RSXS-0.9 based screensavers are GPLv2 only.
# Several eventclients are GPLv3+ (in subpackages).
# Libhdhomerun is LGPLv3+ with an exception (always ok to link against it)
# All the rest is GPLv2+
# Both GPLv2+ and GPLv2 are mentioned because plugins are not part of core
# xbmc and therefore e.g. /usr/bin/xbmc is GPLv2+ with LGPLv3+ part as allowed by a license exception
# FIXME: Add "LGPLv3+ with exceptions" to the valid licenses list in rpmlint
License:	GPLv2+ and GPLv2 and (LGPLv3+ with exceptions)
Group:		Video
Url:		http://kodi.tv/
Source0:	https://github.com/xbmc/xbmc/archive/%{version}-%{codename}.tar.gz?/%{oname}-%{version}-%{codename}.tar.gz
# Tell the to user about UPnP support being disabled by default
Source13:	README.urpmi
Source100:	%{name}.rpmlintrc
Patch0:		xbmc-19.1-cmake-dir.patch
Patch1:		xbmc-17.0-no-win32.patch
# Fix bug with UPnP playback for Playlists
Patch3:		xbmc-14.1-upnp-playlists.patch
Patch4:		xbmc-16.0-session.patch
# Seems to create dlopen call loop and crash, so disable it
Patch5:		xbmc-18.0-no-dlopen-wrapper.patch
Patch6:		xbmc-18.0-desktop.patch
# FIXME: Verify if the issue is solved without this patch
Patch9:		xbmc-18.0-texturepacker-no-static.patch
Patch10:	xbmc-19.1-remove-git-string.patch
Patch11:	xbmc-18.0-fix-lirc_client-detection.patch
Patch12:	kodi-use-system-lib.patch
# fix building with modern mesa, https://github.com/xbmc/xbmc/commit/5449652a
Patch13:	5449652abf0bb9dddd0d796de4120e60f19f89a5.patch
BuildRequires:	cmake >= 3.4
BuildRequires:	ninja
BuildRequires:	doxygen
BuildRequires:	flatbuffers
BuildRequires:	gawk
BuildRequires:	git
BuildRequires:	gperf
BuildRequires:	graphviz
BuildRequires:	java
BuildRequires:	libxml2-utils
%ifarch %{ix86}
BuildRequires:	nasm >= 2.14
%endif
BuildRequires:	swig
BuildRequires:	zip
BuildRequires:	avahi-common-devel
BuildRequires:	boost-devel
BuildRequires:	bzip2-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	flatbuffers-devel
BuildRequires:	gettext-devel
BuildRequires:	giflib-devel >= 5.0.5
BuildRequires:	libltdl-devel
BuildRequires:	java-devel
BuildRequires:	mysql-devel
BuildRequires:	readline-devel
BuildRequires:	shairplay-devel
BuildRequires:	sndio-devel
BuildRequires:	tinyxml-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(cwiid)
BuildRequires:	pkgconfig(crossguid)
BuildRequires:	pkgconfig(dav1d)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dcadec)
BuildRequires:	pkgconfig(dvdnav)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(enca)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(fstrcmp)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libass) >= 0.9.8
BuildRequires:	pkgconfig(libbluray) >= 0.9.3
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libcec) >= 4.0.0
BuildRequires:	pkgconfig(libdvdcss)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libmicrohttpd)
BuildRequires:	pkgconfig(libmms)
BuildRequires:	pkgconfig(libmpeg2)
BuildRequires:	pkgconfig(libnfs)
BuildRequires:	pkgconfig(libomxil-bellagio)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libplist-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse) >= 2.0.0
BuildRequires:	pkgconfig(librtmp)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libudfread)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(p8-platform)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(RapidJSON)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_image)
# Doesn't seem to use it for anything but configure checks
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(spdlog)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-client++)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(yajl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	mc
Requires:	lsb-release
# TODO: FEH.py is useless nowadays, drop it here and upstream.
# For FEH.py, to check current configuration is ok for xbmc:
#Requires:	glxinfo
#Requires:	xdpyinfo
# For FEH.py to allow it to give an error message (should be available already on most systems):
#Requires:	pygtk2
# For xbmc python scripts:
Requires:	python3-pillow
Requires:	%{_lib}lame0
# Packages not shipped in core:
Suggests:	%{_lib}dvdcss2

# dlopened (existence check required by rpm5 as it doesn't use stderr):
%define dlopenreq() %([ -e %{_libdir}/lib%{1}.so ] && rpm -qf --qf '%%{name}' $(readlink -f %{_libdir}/lib%{1}.so) 2>/dev/null || echo %{name})

Requires:	%dlopenreq asound
Requires:	%dlopenreq ass
Requires:	%dlopenreq bluray
Requires:	%dlopenreq cec
Requires:	%dlopenreq curl
Requires:	%dlopenreq FLAC
Requires:	%dlopenreq mad
Requires:	%dlopenreq mpeg2
Requires:	%dlopenreq nfs
Requires:	%dlopenreq ogg
Requires:	%dlopenreq plist
Requires:	%dlopenreq rtmp
Requires:	%dlopenreq sndio
Requires:	%dlopenreq vorbis
Requires:	%dlopenreq vorbisenc
Requires:	%dlopenreq vorbisfile
# Not nearly as common as all the above, so just suggest it for now:
Suggests:	%dlopenreq crystalhd

%rename	%{oname}

%description
Kodi (ex-XBMC) is an award-winning free and open source software media player
and entertainment hub for digital media.
While Kodi functions very well as a standard media player application for your
computer, it has been designed to be the perfect companion for your HTPC.
Supporting an almost endless range of remote controls, and combined with its
beautiful interface and powerful skinning engine, Kodi feels very natural to
use from the couch and is the ideal solution for your home theater.
Support for RAR files is not included due to license issues.

%files
%doc %{_docdir}/%{name}
%{_bindir}/%{name}
%{_bindir}/%{name}-standalone
%{_bindir}/TexturePacker
%{_bindir}/JsonSchemaBuilder
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/system
%dir %{_libdir}/%{name}/system/players
%dir %{_libdir}/%{name}/system/players/VideoPlayer
%{_libdir}/%{name}/%{name}-xrandr
%{_libdir}/%{name}/kodi.bin
%{firewalld_servicedir}/%{name}-*.xml
%optional %{_libdir}/%{name}/system/libsse4-*.so
%{_libdir}/%{name}/system/players/VideoPlayer/libdvdnav-*.so
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/addons
%{_datadir}/%{name}/media
%{_datadir}/%{name}/system
%{_datadir}/%{name}/userdata
%{_datadir}/%{name}/privacy-policy.txt
%{_datadir}/xsessions/%{name}.desktop
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/metainfo/org.xbmc.kodi.metainfo.xml

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Kodi (ex-XBMC)
License:	GPLv2+
Group:		Development/C
Provides:	%{oname}-devel = %{EVRD}
Conflicts:	%{oname}-devel < 0.17
Obsoletes:	%{oname}-devel < 0.17
%rename		%{oname}-eventclients-devel

%description devel
Kodi (ex-XBMC) is an award-winning free and open source software media player
and entertainment hub for digital media.
This package contains files needed to build addons and eventclients.

%files devel
%doc LICENSE.md
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/%{name}/cmake/*.cmake

#----------------------------------------------------------------------------

%package eventclients-common
Summary:	Common files for Kodi (ex-XBMC) eventclients
License:	GPLv2+
Group:		Video
Provides:	%{oname}-eventclients-common = %{EVRD}
Conflicts:	%{oname}-eventclients-common < 0.17
Obsoletes:	%{oname}-eventclients-common < 0.17
%rename		%{oname}-eventclient-j2me

%description eventclients-common
Kodi (ex-XBMC) is an award-winning free and open source software media player
and entertainment hub for digital media.
This package contains common files for eventclients.

%files eventclients-common
%{python3_sitelib}/%{name}
%dir %{_datadir}/pixmaps/%{name}
%{_datadir}/pixmaps/%{name}/*.png

#----------------------------------------------------------------------------

%package eventclient-wiiremote
Summary:	Wii Remote eventclient for Kodi (ex-XBMC)
License:	GPLv3+
Group:		Video
Requires:	%{name}-eventclients-common = %{EVRD}
Provides:	%{oname}-eventclient-wiiremote = %{EVRD}
Conflicts:	%{oname}-eventclient-wiiremote < 0.17
Obsoletes:	%{oname}-eventclient-wiiremote < 0.17

%description eventclient-wiiremote
Kodi (ex-XBMC) is an award-winning free and open source software media player
and entertainment hub for digital media.
This package contains the Wii Remote eventclient.

%files eventclient-wiiremote
%{_bindir}/%{name}-wiiremote

#----------------------------------------------------------------------------

%package eventclient-ps3
Summary:	PS3 eventclients for Kodi (ex-XBMC)
License:	GPLv2+
Group:		Video
Requires:	python3-pybluez
Requires:	%{name}-eventclients-common = %{EVRD}
# Required by zeroconf.py, only used by xbmc-ps3d:
Requires:	avahi-python3
Requires:	python3-dbus
Requires:	python3-gobject
Provides:	%{oname}-eventclient-ps3 = %{EVRD}
Conflicts:	%{oname}-eventclient-ps3 < 0.17
Obsoletes:	%{oname}-eventclient-ps3 < 0.17

%description eventclient-ps3
Kodi (ex-XBMC) is an award-winning free and open source software media player
and entertainment hub for digital media.
This package contains the PS3 remote and sixaxis eventclients.

%files eventclient-ps3
%{_bindir}/%{name}-ps3remote

#----------------------------------------------------------------------------

%package eventclient-xbmc-send
Summary:	PS3 eventclient for Kodi (ex-XBMC)
License:	GPLv2+
Group:		Video
Requires:	%{name}-eventclients-common = %{EVRD}
Provides:	%{oname}-eventclient-xbmc-send = %{EVRD}
Conflicts:	%{oname}-eventclient-xbmc-send < 0.17
Obsoletes:	%{oname}-eventclient-xbmc-send < 0.17

%description eventclient-xbmc-send
Kodi (ex-XBMC) is an award-winning free and open source software media player
and entertainment hub for digital media.
This package contains the xbmc-send eventclient.

%files eventclient-xbmc-send
%{_bindir}/%{name}-send

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}-%{codename}

# Otherwise backups end up in binary rpms
find -type f \( -name '*.00??' -o -name '*.00??~' \) -print -delete

# Remove all prebuilt libraries
find -type f \( -iname '*.so' -o -iname '*.dll' -o -iname '*.exe' \) -delete

# Fix source perms
find . -name "*.h" -o -name "*.cpp" | xargs chmod -x

# This stuff is win32 only
rm -rf system/players/dvdplayer/etc/fonts


%build
export GIT_DISCOVERY_ACROSS_FILESYSTEM=1
%cmake	.. \
		-DENABLE_DVDCSS=ON \
		-DENABLE_UPNP=ON \
		-DENABLE_OPTICAL=ON \
		-DENABLE_INTERNAL_CROSSGUID=OFF \
		-DCROSSGUID_INCLUDE_DIR=%{_includedir}/crossguid \
		-DENABLE_INTERNAL_FFMPEG=OFF \
		-DFFMPEG_PATH="%{_prefix}" \
		-DENABLE_INTERNAL_FLATBUFFERS=OFF \
		-DENABLE_INTERNAL_FSTRCMP=OFF \
		-DENABLE_INTERNAL_FMT=OFF \
		-DENABLE_INTERNAL_RapidJSON=OFF \
		-DENABLE_AIRTUNES=ON \
		-DENABLE_EVENTCLIENTS=ON \
		-DFREETYPE_INCLUDE_DIR=%{_includedir}/freetype2 \
		-DENABLE_LIRCCLIENT="/run/lirc/lircd" \
		-DAPP_RENDER_SYSTEM=gl \
		-DENABLE_TESTING=OFF \
		-GNinja

%ninja_build


%install
%ninja_install -C build

# Remove duplicate symlink
rm -f %{buildroot}%{_datadir}/xsessions/%{oname}.desktop

( # for IFS and +x
# Check for issues in ELF binaries
undefined=
fhserr=
echo Silencing output of undefined symbol and FHS conformance checks
set +x
IFS=$'\n'
for file in $(find %{buildroot} -type f); do
	type="$(file "$file")"
	echo "$type" | grep -q "ELF" || continue

	# Check that a binary file is not in datadir:
	echo "$file" | grep -q "%{_datadir}" && fhserr="${fhserr}$file\n"

	# check for undefined symbols in XBMC modules
	echo "$type" | grep -q "shared object" || continue
	for symbol in $(LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir} ldd -r "$file" 2>&1 | grep undefined | awk '{ print $3 }'); do
		# undefined symbols may also be provided by XBMC:
		nm -f posix -D --no-demangle --defined-only %{buildroot}%{_libdir}/kodi | grep -q "^$symbol " && continue
		# The symbol was not provided by XBMC.
		# Check if it is available through its dependencies:
		for filename in $(objdump -p %{buildroot}%{_libdir}/kodi | grep NEEDED | awk '{ print $2 }'); do
			depfile="/%{_lib}/$filename"
			[ -e "$depfile" ] || depfile="%{_libdir}/$filename"
			nm -f posix -D --no-demangle --defined-only $depfile | grep -q "^$symbol " && continue 2
		done
		# Euphoria references rsxs PNG class, but it is never used at runtime,
		# so it results in no errors due to RTLD_LAZY being used by XBMC module loader.
		#case $file:$symbol in */Euphoria.xbs:_ZN3PNG*) continue; esac
		# the symbol was not found
		#undefined="${undefined}$file: $symbol\n"
	done
done
ok=1
[ -n "$undefined" ] && echo -e "$undefined" && echo "Undefined symbols!" && ok=
[ -n "$fhserr" ] && echo -e "$fhserr" && echo "Binaries in datadir!" && ok=
[ -n "$ok" ]
)

# Fix .cmake files placement
mkdir -p %{buildroot}%{_libdir}/%{name}/cmake/
mv %{buildroot}%{_datadir}/%{name}/cmake/* %{buildroot}%{_libdir}/%{name}/cmake/
rmdir %{buildroot}%{_datadir}/%{name}/cmake/


# Fix perms: first generally...
find %{buildroot} -name "*.py" | xargs chmod +x
# ... next fix special cases
find %{buildroot} -name "__init__.py"| xargs chmod -x
chmod -x %{buildroot}%{python3_sitelib}/%{name}/defs.py
chmod -x %{buildroot}%{python3_sitelib}/%{name}/bt/{bt,hid}.py
chmod -x %{buildroot}%{python3_sitelib}/%{name}/ps3/keymaps.py

# Install our advice to the user
cp %{SOURCE13} .

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13824 |21mr|kohsuke-pom-14-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           kohsuke-pom
Version:        14
Release:        8
Summary:        Kohsuke parent POM

# License is specified in pom file
License:        MIT
URL:            https://github.com/kohsuke/pom
Source0:        https://github.com/kohsuke/pom/archive/pom-%{version}.tar.gz
Source1:        https://raw.github.com/kohsuke/youdebug/youdebug-1.5/LICENSE.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local

%description
This package contains Kohsuke parent POM file.

%prep
%setup -q -n pom-pom-%{version}

cp %{SOURCE1} LICENSE

# we don't have these plugins and extensions
%pom_xpath_remove pom:extensions
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :gmaven-plugin

# missing dep org.kohsuke:doxia-module-markdown
%pom_remove_plugin :maven-site-plugin

%pom_remove_plugin :maven-release-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13825 |21mr|koko-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Image viewer for desktop and touch devices
Name:		koko
Version:	23.08.4
Release:	2
License:	GPLv2
Group:		Graphical desktop/KDE
Url:		https://invent.kde.org/graphics/koko
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	http://download.geonames.org/export/dump/cities1000.zip
Source2:	http://download.geonames.org/export/dump/admin1CodesASCII.txt
Source3:	http://download.geonames.org/export/dump/admin2Codes.txt
Source100:	koko.rpmlintrc
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules >= 5.87
BuildRequires:	gettext
BuildRequires:	kf5auth-devel >= 5.112.0
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kquickimageeditor-devel
BuildRequires:	qt5-qtgraphicaleffects-qml
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-atom)
Requires:	kf5purpose-qml
Requires:	kirigami2
Requires:	kquickimageeditor
Requires:	qt5-qtquickcontrols2


%description
Koko is an image viewer for desktop and touch devices.

%files -f %{name}.lang
%doc README.md
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
# TODO: Consider putting this in a proper library package to avoid rpmlint errors
%{_kde5_libdir}/libkokocommon.so.0.0.1
%{_kde5_qmldir}/org/kde/%{name}
%{_kde5_datadir}/icons/hicolor/128x128/apps/%{name}.png
%{_kde5_notificationsdir}/%{name}.notifyrc
%{_kde5_datadir}/%{name}
%{_appdatadir}/org.kde.%{name}.appdata.xml

#--------------------------------------------

%define devkoko %mklibname %{name} -d

%package -n %{devkoko}
Summary:	Development files for koko
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkoko}
Development files for koko.

%files -n %{devkoko}
%doc README.md
%{_kde5_libdir}/libkokocommon.so

#--------------------------------------------

%prep
%autosetup -p1
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} src/


%build
%cmake_kde5
%make


%install
%makeinstall_std -C build

%find_lang %{name} --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13826 |21mr|kolf-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A golf game
Name:		kolf
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kolf/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Kolf is a miniature golf game. The game is played from an overhead view, with
a short bar representing the golf club. Kolf features many different types of
objects, such as water hazards, slopes, sand traps, and black holes (warps),
among others.

Features :
- Single and Multi-player (up to ten players) modes
- High scores table
- Dynamic courses
- Third-party courses
- Course editor

%files -f %{name}.lang
%{_kde5_bindir}/kolf
%{_kde5_applicationsdir}/org.kde.kolf.desktop
%{_kde5_datadir}/kolf
%{_kde5_iconsdir}/hicolor/*/apps/kolf.*
%{_kde5_xmlguidir}/kolf/kolfui.rc
%{_appdatadir}/org.kde.kolf.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13827 |21mr|kollision-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A simple ball dodging game
Name:		kollision
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kollision/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
A simple ball dodging game.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kollision.desktop
%{_kde5_bindir}/kollision
%{_kde5_datadir}/kollision
%{_kde5_iconsdir}/*/*/apps/kollision.*
%{_appdatadir}/org.kde.kollision.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13828 |21mr|kolourpaint-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A free, easy-to-use paint program for KDE
Name:		kolourpaint
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/graphics/kolourpaint/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
# Set InitialPreference lower than gwenview
Patch0:		kolourpaint-initial-pref.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kexiv2-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5sane-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KolourPaint is a free, easy-to-use paint program for KDE.

%files -f %{name}.lang
%doc COPYING COPYING.LIB COPYING.DOC
%{_kde5_applicationsdir}/org.kde.kolourpaint.desktop
%{_kde5_bindir}/kolourpaint
%{_kde5_datadir}/kolourpaint
%{_kde5_iconsdir}/hicolor/*/apps/kolourpaint.*
%{_kde5_xmlguidir}/kolourpaint/kolourpaintui.rc
%{_appdatadir}/org.kde.kolourpaint.appdata.xml

#----------------------------------------------------------------------------

%define kolourpaint_lgpl_major 5
%define libkolourpaint_lgpl %mklibname kolourpaint_lgpl %{kolourpaint_lgpl_major}

%package -n %{libkolourpaint_lgpl}
Summary:	Runtime library for Kolourpaint
Group:		System/Libraries

%description -n %{libkolourpaint_lgpl}
Runtime library for Kolourpaint.

%files -n %{libkolourpaint_lgpl}
%{_kde5_libdir}/libkolourpaint_lgpl.so.%{kolourpaint_lgpl_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Useless without headers
rm -f %{buildroot}%{_kde5_libdir}/libkolourpaint_lgpl.so

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13829 |21mr|kompare-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A diff graphic tool for KDE
Name:		kompare
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	libkomparediff2-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Kompare is a GUI front-end program that enables differences between source
files to be viewed and merged. It can be used to compare differences on files
or the contents of folders, and it supports a variety of diff formats and
provide many options to customize the information level displayed.

Features:
 - Comparing directories
 - Reading diff files
 - Creating and applying patches

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kompare.desktop
%{_kde5_bindir}/kompare
%{_kde5_docdir}/*/*/kompare
%{_kde5_iconsdir}/hicolor/*/apps/kompare.*
%{_qt5_plugindir}/kf5/parts/komparenavtreepart.so
%{_qt5_plugindir}/kf5/parts/komparepart.so
%{_kde5_datadir}/kio/servicemenus/kompare.desktop
%{_kde5_datadir}/qlogging-categories5/kompare.categories
%{_appdatadir}/org.kde.kompare.appdata.xml

#----------------------------------------------------------------------------

%define komparedialogpages_major 5
%define libkomparedialogpages %mklibname komparedialogpages %{komparedialogpages_major}

%package -n %{libkomparedialogpages}
Summary:	Kompare shared library
Group:		System/Libraries

%description -n %{libkomparedialogpages}
Kompare shared library.

%files -n %{libkomparedialogpages}
%{_kde5_libdir}/libkomparedialogpages.so.%{komparedialogpages_major}*

#----------------------------------------------------------------------------

%define kompareinterface_major 5
%define libkompareinterface %mklibname kompareinterface %{kompareinterface_major}

%package -n %{libkompareinterface}
Summary:	Kompare shared library
Group:		System/Libraries

%description -n %{libkompareinterface}
Kompare shared library.

%files -n %{libkompareinterface}
%{_kde5_libdir}/libkompareinterface.so.%{kompareinterface_major}*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Kompare
Group:		Development/KDE and Qt
Requires:	%{libkompareinterface} = %{EVRD}

%description devel
This package includes the header files you will need to compile applications
based on Kompare libraries.

%files devel
%{_kde5_includedir}/kompare
%{_kde5_libdir}/libkompareinterface.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make -s

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13830 |21mr|konqueror-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE file and web browser
Name:		konqueror
Version:	23.08.4
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	konqueror-23.08.4_ru.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	gpgme-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kded-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5su-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	tidy-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)
Recommends:	keditbookmarks
Recommends:	konq-plugins
Requires:	plasma5-webenginepart

%description
KDE file and web browser.

%files -f %{name}.lang
%{_kde5_applicationsdir}/bookmarks.desktop
%{_kde5_applicationsdir}/kfmclient.desktop
%{_kde5_applicationsdir}/kfmclient_dir.desktop
%{_kde5_applicationsdir}/kfmclient_html.desktop
%{_kde5_applicationsdir}/kfmclient_war.desktop
%{_kde5_applicationsdir}/konqbrowser.desktop
%{_kde5_applicationsdir}/org.kde.konqueror.desktop
%{_kde5_autostart}/konqy_preload.desktop
%{_kde5_bindir}/kfmclient
%{_kde5_bindir}/konqueror
%{_kde5_datadir}/config.kcfg/konqueror*
%{_kde5_datadir}/kcmcss/template.css
%{_kde5_datadir}/kcontrol/*
%{_kde5_datadir}/konqueror/about/*
%{_kde5_datadir}/konqueror/pics/indicator_*.png
%{_kde5_datadir}/konqueror/partsrcfiles/*.rc
%{_kde5_iconsdir}/*/*/*/konqueror.*
%{_kde5_libdir}/libkdeinit5_kfmclient.so
%{_kde5_libdir}/libkdeinit5_konqueror.so
%{_kde5_services}/org.kde.konqueror.desktop
%{_kde5_sysconfdir}/xdg/konqsidebartngrc
%{_kde5_sysconfdir}/xdg/useragenttemplatesrc
%{_appdatadir}/org.kde.konqueror.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.?onqueror.*.xml
%{_qt5_plugindir}/konqueror_kcms/kcm_bookmarks.so
%{_qt5_plugindir}/konqueror_kcms/khtml_cache.so
%{_qt5_plugindir}/konqueror_kcms/kcm_konq.so
%{_qt5_plugindir}/konqueror_kcms/kcm_performance.so
%{_qt5_plugindir}/konqueror_kcms/kcm_history.so
%{_qt5_plugindir}/konqueror_kcms/khtml_appearance.so
%{_qt5_plugindir}/konqueror_kcms/khtml_behavior.so
%{_qt5_plugindir}/konqueror_kcms/khtml_filter.so
%{_qt5_plugindir}/konqueror_kcms/khtml_general.so
%{_qt5_plugindir}/konqueror_kcms/khtml_java_js.so
%{_qt5_plugindir}/konqueror_kcms/khtml_useragent.so
#----------sidebar files--------------
%{_qt5_plugindir}/kf5/parts/konq_sidebar.so
%{_qt5_plugindir}/konqsidebar_bookmarks.so
%{_qt5_plugindir}/konqsidebar_history.so
%{_qt5_plugindir}/konqsidebar_places.so
%{_qt5_plugindir}/konqsidebar_tree.so
%{_kde5_datadir}/konqsidebartng/entries/bookmarks.desktop
%{_kde5_datadir}/konqsidebartng/entries/fonts.desktop
%{_kde5_datadir}/konqsidebartng/entries/history.desktop
%{_kde5_datadir}/konqsidebartng/entries/home.desktop
%{_kde5_datadir}/konqsidebartng/entries/places.desktop
%{_kde5_datadir}/konqsidebartng/entries/remote.desktop
%{_kde5_datadir}/konqsidebartng/entries/root.desktop
%{_kde5_datadir}/konqsidebartng/entries/services.desktop
%{_kde5_datadir}/konqsidebartng/plugins/konqsidebar_bookmarks.desktop
%{_kde5_datadir}/konqsidebartng/plugins/konqsidebar_history.desktop
%{_kde5_datadir}/konqsidebartng/plugins/konqsidebar_places.desktop
%{_kde5_datadir}/konqsidebartng/plugins/konqsidebar_tree.desktop
%{_kde5_services}/konq_sidebartng.desktop
#-------------------------------------
%{_kde5_datadir}/qlogging-categories5/konqueror.categories

#------------------------------------------------

%package -n konq-plugins
Summary:	Konqueror plugins
Group:		Graphical desktop/KDE
Requires:	konqueror

%description -n konq-plugins
This module contains plugins that interact with Konqueror.

%files -n konq-plugins -f konq-plugins.lang
%{_kde5_bindir}/fsview
%{_kde5_bindir}/kcreatewebarchive
%{_kde5_datadir}/akregator/pics/feed.png
%{_kde5_datadir}/config.kcfg/kcreatewebarchive.kcfg
%{_kde5_datadir}/konqueror/icons/hicolor/*/actions/google.*
%{_kde5_iconsdir}/hicolor/*/actions/babelfish.*
%{_kde5_iconsdir}/hicolor/*/actions/imagegallery.*
%{_kde5_iconsdir}/hicolor/*/actions/webarchiver.*
%{_kde5_iconsdir}/hicolor/*/apps/fsview.*
%{_kde5_plugindir}/kfileitemaction/akregatorplugin.so
%{_kde5_services}/fsview_part.desktop
%{_kde5_services}/webarchivethumbnail.desktop
%{_kde5_sysconfdir}/xdg/translaterc
%{_qt5_plugindir}/akregatorkonqfeedicon.so
%{_qt5_plugindir}/autorefresh.so
%{_qt5_plugindir}/babelfishplugin.so
%{_qt5_plugindir}/kwebkitpart/kpartplugins/*.so
%{_qt5_plugindir}/kf5/parts/fsviewpart.so
%{_qt5_plugindir}/khtmlsettingsplugin.so
%{_qt5_plugindir}/khtmlttsplugin.so
%{_qt5_plugindir}/uachangerplugin.so
%{_qt5_plugindir}/dolphinpart/kpartplugins/*.so
%{_qt5_plugindir}/khtml/kpartplugins/*.so
%{_qt5_plugindir}/konqueror/kpartplugins/searchbarplugin.so
%{_qt5_plugindir}/konqueror_kget_browser_integration.so
%{_qt5_plugindir}/webarchiverplugin.so
%{_qt5_plugindir}/webarchivethumbnail.so
%{_kde5_xmlguidir}/fsview/fsview_part.rc
%{_kde5_datadir}/qlogging-categories5/akregatorplugin.categories
%{_kde5_datadir}/qlogging-categories5/fsview.categories
#----------------------------------------------------------------------------

%package -n plasma5-libkonq
Summary:	KDE Frameworks 5 Konq library support files
Group:		Graphical desktop/KDE

%description -n plasma5-libkonq
KDE Frameworks 5 Konq library support files.

%files -n plasma5-libkonq -f libkonq.lang
%{_kde5_datadir}/kf5/kbookmark/directory_bookmarkbar.desktop

#----------------------------------------------------------------------------

%package -n plasma5-webenginepart
Summary:	Plasma 5 embeddable HTML component
Group:		Graphical desktop/KDE

%description -n plasma5-webenginepart
Plasma 5 embeddable HTML component.

%files -n plasma5-webenginepart -f webenginepart.lang
%{_kde5_datadir}/webenginepart/error.html
%{_kde5_iconsdir}/*/*/*/webengine.*
%{_kde5_libdir}/libkwebenginepart.so
%{_kde5_plugindir}/parts/webenginepart.so
%{_qt5_plugindir}/webenginepart/kpartplugins/*.so
%{_kde5_services}/webenginepart.desktop
%{_kde5_xmlguidir}/webenginepart/webenginepart.rc
%{_kde5_datadir}/kconf_update/webenginepart.upd

#----------------------------------------------------------------------------

%define konquerorprivate_major 5
%define libkonquerorprivate %mklibname konquerorprivate %{konquerorprivate_major}

%package -n %{libkonquerorprivate}
Summary:	Konqueror shared library
Group:		System/Libraries

%description -n %{libkonquerorprivate}
Konqueror shared library.

%files -n %{libkonquerorprivate}
%{_kde5_libdir}/libkonquerorprivate.so.%{konquerorprivate_major}*
%{_kde5_libdir}/libkonquerorprivate.so.%{version}

#----------------------------------------------------------------------------

%define kf5konq_major 6
%define libkf5konq %mklibname kf5konq %{kf5konq_major}

%package -n %{libkf5konq}
Summary:	KDE Frameworks 5 Konq shared library
Group:		System/Libraries
Requires:	plasma5-libkonq

%description -n %{libkf5konq}
KDE Frameworks 5 Konq shared library.

%files -n %{libkf5konq}
%{_kde5_libdir}/libKF5Konq.so.%{kf5konq_major}*
%{_kde5_libdir}/libKF5Konq.so.5.97.0

#----------------------------------------------------------------------------

%define konqsidebarplugin_major 5
%define libkonqsidebarplugin %mklibname konqsidebarplugin %{konqsidebarplugin_major}

%package -n %{libkonqsidebarplugin}
Summary:	KDE Frameworks 5 Konq shared library
Group:		System/Libraries

%description -n %{libkonqsidebarplugin}
KDE Frameworks 5 Konq shared library.

%files -n %{libkonqsidebarplugin}
%{_kde5_libdir}/libkonqsidebarplugin.so.%{konqsidebarplugin_major}*
%{_kde5_libdir}/libkonqsidebarplugin.so.%{version}

#----------------------------------------------------------------------------

%define devkf5konq %mklibname kf5konq -d

%package -n %{devkf5konq}
Summary:	Development files for KDE Frameworks 5 Konq library
Group:		Development/KDE and Qt
Requires:	%{libkf5konq} = %{EVRD}
Requires:	%{libkonqsidebarplugin} = %{EVRD}
Provides:	kf5konq-devel = %{version}

%description -n %{devkf5konq}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5konq}
%{_kde5_includedir}/KF5/asyncselectorinterface.h
%{_kde5_includedir}/KF5/konq_events.h
%{_kde5_includedir}/KF5/konq_historyentry.h
%{_kde5_includedir}/KF5/konq_historyprovider.h
%{_kde5_includedir}/KF5/konq_kpart_plugin.h
%{_kde5_includedir}/KF5/konq_popupmenu.h
%{_kde5_includedir}/KF5/konq_version.h
%{_kde5_includedir}/KF5/libkonq_export.h
%{_kde5_includedir}/konqsidebarplugin.h
%{_kde5_libdir}/cmake/KF5Konq
%{_kde5_libdir}/libKF5Konq.so
%{_kde5_libdir}/libkonqsidebarplugin.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} bookmarks filemanager history kcmbookmarks kcmcss kcmkonq \
	kcmkonqhtml kcmperformance kfmclient khtml-adblock khtml-behavior \
	khtml-general khtml-java-js performance %{name}.lang --with-kde --with-html

%find_lang adblock akregator_konqplugin autorefresh babelfish dirfilterplugin \
	domtreeviewer fsview imgalleryplugin khtmlsettingsplugin khtmltts \
	kgetplugin kshellcmdplugin mf_konqplugin minitoolsplugin rellinks searchbarplugin \
	uachangerplugin validatorsplugin webarchiver konq-plugins.lang --with-kde

%find_lang webenginepart --with-kde

%find_lang libkonq --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13831 |21mr|konquest-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Conquer the planets of your enemy
Name:		konquest
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/konquest/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Konquest is the KDE version of Gnu-Lactic Konquest. Players conquer other
planets by sending ships to them. The goal is to build an interstellar
empire and ultimately conquer all other player's planets.

%files -f %{name}.lang
%{_kde5_bindir}/konquest
%{_kde5_applicationsdir}/org.kde.konquest.desktop
%{_kde5_datadir}/konquest
%{_kde5_iconsdir}/hicolor/*/apps/konquest.*
%{_appdatadir}/org.kde.konquest.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13832 |21mr|kontact-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE kontact container
Name:		kontact
Version:	23.08.4
Release: 	2
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	http://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
# Translation for the external program zanshin has been added to the po file
Source1:	kontact.po
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5grantleetheme-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	plasma5-kdepim-runtime
Recommends:	plasma5-kdepim-addons
Recommends:	akonadi-import-wizard
Recommends:	akregator
Recommends:	kaddressbook
Recommends:	kmail
Recommends:	knotes
Recommends:	korganizer

%description
The KDE Kontact Personal Information Management suite unites mature and
proven KDE applications under one roof. Thanks to the powerful KParts
technology, existing applications are seamlessly integrated into one.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kontact.desktop
%{_kde5_bindir}/kontact
%{_kde5_datadir}/config.kcfg/kontact.kcfg
%{_kde5_datadir}/messageviewer/about/default/introduction_kontact.html
%{_kde5_datadir}/messageviewer/about/default/loading_kontact.html
%{_kde5_iconsdir}/hicolor/*/apps/kontact.*
%{_kde5_datadir}/qlogging-categories5/kontact.categories
%{_kde5_datadir}/qlogging-categories5/kontact.renamecategories
%{_appdatadir}/org.kde.kontact.appdata.xml
%{_qt5_plugindir}/pim5/kcms/kontact/kcm_kontact.so
%{_kde5_datadir}/dbus-1/services/org.kde.kontact.service

#----------------------------------------------------------------------------

%define kontactprivate_major 5
%define libkontactprivate %mklibname kontactprivate %{kontactprivate_major}

%package -n %{libkontactprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkontactprivate}
KDE PIM shared library.

%files -n %{libkontactprivate}
%{_kde5_libdir}/libkontactprivate.so.%{kontactprivate_major}*

#----------------------------------------------------------------------

%prep
%autosetup -p1

# update ru translation
cp -f %{SOURCE1} po/ru/

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13833 |21mr|kontactinterface-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Frameworks 5 Kontact plugin interface module
Name:		kontactinterface
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(x11)

%description
KDE Frameworks 5 Kontact plugin interface module.

%files
%{_kde5_datadir}/qlogging-categories5/kontactinterface.categories
%{_kde5_datadir}/qlogging-categories5/kontactinterface.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 Kontact plugin interface library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 Kontact plugin interface library translations.

%files i18n -f kontactinterfaces5.lang

#----------------------------------------------------------------------------

%define kf5kontactinterface_major 5
%define libkf5kontactinterface %mklibname kf5kontactinterface %{kf5kontactinterface_major}

%package -n %{libkf5kontactinterface}
Summary:	KDE Frameworks 5 Kontact plugin interface shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5kontactinterface}
KDE Frameworks 5 Kontact plugin interface shared library.

%files -n %{libkf5kontactinterface}
%{_kde5_libdir}/libKPim5KontactInterface.so.%{kf5kontactinterface_major}*

#----------------------------------------------------------------------------

%define devkf5kontactinterface %mklibname kf5kontactinterface -d

%package -n %{devkf5kontactinterface}
Summary:	Development files for KDE Frameworks 5 Kontact plugin interface module
Group:		Development/KDE and Qt
Requires:	%{libkf5kontactinterface} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kontactinterface-devel = %{version}

%description -n %{devkf5kontactinterface}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5kontactinterface}
%{_kde5_includedir}/KPim5/KontactInterface
%{_kde5_libdir}/cmake/KPim5KontactInterface
%{_kde5_libdir}/libKPim5KontactInterface.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kontactinterfaces5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13834 |21mr|konversation-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A user friendly IRC Client for KDE
Name:		konversation
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Networking/IRC
Url:		http://konversation.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:	qca2-qt5
Requires:	qca2-qt5-plugin-openssl
Requires:	qca2-qt5-plugin-gnupg

%description
Konversation is a graphical Internet Relay Chat client (IRC)
with KDE support.

Features:

* Standard IRC features
* SSL server support
* Bookmarking support
* Easy to use graphical user interface
* Multiple servers and channels in one single window
* DCC file transfer
* Multiple identities for different servers
* Text decorations and colors
* OnScreen Display for notifications
* Automatic UTF-8 detection
* Per channel encoding support
* Theme support for nick icons
* Highly configurable

%files -f %{name}.lang
%doc README
%{_kde5_bindir}/konversation
%{_kde5_applicationsdir}/org.kde.konversation.desktop
%{_kde5_datadir}/konversation/
%{_kde5_datadir}/kconf_update/konversation*
%{_kde5_iconsdir}/hicolor/*/actions/konv_message.*
%{_kde5_iconsdir}/hicolor/*/apps/konversation.*
%{_kde5_notificationsdir}/konversation.notifyrc
%{_appdatadir}/org.kde.konversation.appdata.xml
%{_kde5_datadir}/dbus-1/services/org.kde.konversation.service
%{_kde5_datadir}/knsrcfiles/konversation_nicklist_theme.knsrc
%{_kde5_datadir}/qlogging-categories5/konversation.categories

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13835 |21mr|kopeninghours-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Library for parsing and evaluating OSM opening hours expressions
Name:		kopeninghours
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	bison
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(python3)
BuildRequires:	flex
BuildRequires:	boost-devel

%description
Library for parsing and evaluating OSM opening hours expressions.

%files -f %{name}.lang
%{_kde5_qmldir}/org/kde/kopeninghours/
%{_kde5_datadir}/qlogging-categories5/org_kde_kopeninghours.categories

#----------------------------------------------------------------------------

%define kopeninghours_major 1
%define libkopeninghours %mklibname kopeninghours %{kopeninghours_major}

%package -n %{libkopeninghours}
Summary:	Library for parsing and evaluating OSM opening hours expressions
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkopeninghours}
Kopete shared library.

%files -n %{libkopeninghours}
%{_kde5_libdir}/libKOpeningHours.so.%{kopeninghours_major}*
%{_kde5_libdir}/libKOpeningHours.so.%(echo %{version}|cut -d. -f1).*

#----------------------------------------------------------------------------

%define devkopeninghours %mklibname kopeninghours -d

%package -n %{devkopeninghours}
Summary:	Development files for kopeninghours
Group:		Development/KDE and Qt
Requires:	%{libkopeninghours} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkopeninghours}
Library for parsing and evaluating OSM opening hours expressions.

%files -n %{devkopeninghours}
%{_kde5_includedir}/KOpeningHours/
%{_kde5_includedir}/kopeninghours/
%{_kde5_includedir}/kopeninghours_version.h
%{_kde5_libdir}/libKOpeningHours.so
%{_kde5_libdir}/cmake/KOpeningHours/

#----------------------------------------------------------------------------

%package python
Summary:	Python kopeninghours
Group:		Graphical desktop/KDE

%description python
Python kopeninghours.

%files python
%{py3_puresitedir}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13836 |21mr|kopete-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Internet Messenger
Name:		kopete
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/internet/kopete/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	kopete.rpmlintrc
Patch0:		kopete-18.12.1-drop-kleopatra-duplicate.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	gadu-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	idn-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5libkleo-devel >= %{version}
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	qgpgme-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(libotr)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
# Requires another meanwhile, not this one
# BuildRequires:	pkgconfig(meanwhile)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(zlib)

Requires:	qca2-qt5-plugin-openssl-%{_lib}
Requires:	plasma5-akonadi-client
Requires:	jasper
# Not ported to KF5
Obsoletes:	kopete-antispam < 0.6
Obsoletes:	kopete-mrim  < 0.3
Obsoletes:	kopete-protocol-facebook < 0.2
Obsoletes:	kopete-protocol-irc < 0.2

%description
Kopete is a flexible and extendable multiple protocol instant messaging
system designed as a plugin-based system.

All protocols are plugins and allow modular installment, configuration,
and usage without the main application knowing anything about the plugin
being loaded.

The goal of Kopete is to provide users with a standard and easy to use
interface between all of their instant messaging systems, but at the same
time also providing developers with the ease of writing plugins to support
a new protocol.

The core Kopete development team provides a handful of plugins that most
users can use, in addition to templates for new developers to base a
plugin off of.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kopete.desktop
%{_kde5_bindir}/kopete
%{_kde5_bindir}/winpopup-install
%{_kde5_bindir}/winpopup-send
%{_kde5_datadir}/kopete
%{_kde5_datadir}/kopete_history/
%{_kde5_datadir}/kconf_update/kopete-*
%{_kde5_libdir}/libqgroupwise.so
%{_kde5_configdir}/kopeterc
%{_kde5_datadir}/config.kcfg/historyconfig.kcfg
%{_kde5_datadir}/config.kcfg/kopete_otr.kcfg
%{_kde5_datadir}/config.kcfg/kopeteappearancesettings.kcfg
%{_kde5_datadir}/config.kcfg/kopetebehaviorsettings.kcfg
%{_kde5_datadir}/config.kcfg/kopetestatussettings.kcfg
%{_kde5_datadir}/config.kcfg/urlpicpreview.kcfg
%{_kde5_datadir}/config.kcfg/webpresenceconfig.kcfg
%{_kde5_datadir}/qlogging-categories5/kopete.categories
%{_kde5_notificationsdir}/kopete.notifyrc
%{_kde5_services}/aim.protocol
%{_kde5_services}/chatwindow.desktop
%{_kde5_services}/emailwindow.desktop
%{_kde5_services}/kconfiguredialog/kopete_*
%{_kde5_services}/kopete_*
%{_kde5_services}/xmpp.protocol
%{_kde5_servicetypes}/kopete*
%{_kde5_datadir}/sounds/Kopete_Event.ogg
%{_kde5_datadir}/sounds/Kopete_Received.ogg
%{_kde5_datadir}/sounds/Kopete_Sent.ogg
%{_kde5_datadir}/sounds/Kopete_User_is_Online.ogg
%{_kde5_iconsdir}/*/*/actions/account_offline_overlay.*
%{_kde5_iconsdir}/*/*/actions/contact_away_overlay.*
%{_kde5_iconsdir}/*/*/actions/contact_busy_overlay.*
%{_kde5_iconsdir}/*/*/actions/contact_food_overlay.*
%{_kde5_iconsdir}/*/*/actions/contact_freeforchat_overlay.*
%{_kde5_iconsdir}/*/*/actions/contact_invisible_overlay.*
%{_kde5_iconsdir}/*/*/actions/contact_phone_overlay.*
%{_kde5_iconsdir}/*/*/actions/contact_xa_overlay.*
%{_kde5_iconsdir}/*/*/actions/emoticon.*
%{_kde5_iconsdir}/*/*/actions/im-status-message-edit.*
%{_kde5_iconsdir}/*/*/actions/mail-encrypt.*
%{_kde5_iconsdir}/*/*/actions/metacontact_unknown.*
%{_kde5_iconsdir}/*/*/actions/status_unknown_overlay.*
%{_kde5_iconsdir}/*/*/actions/status_unknown.*
%{_kde5_iconsdir}/*/*/actions/view-user-offline-kopete.*
%{_kde5_iconsdir}/*/*/actions/voicecall.*
%{_kde5_iconsdir}/*/*/actions/webcamreceive.*
%{_kde5_iconsdir}/*/*/actions/webcamsend.*
%{_kde5_iconsdir}/*/*/apps/kopete_avdevice.*
%{_kde5_iconsdir}/*/*/apps/kopete-offline.*
%{_kde5_iconsdir}/*/*/apps/kopete.*
%{_kde5_iconsdir}/*/*/status/object-locked-finished.png
%{_kde5_iconsdir}/*/*/status/object-locked-unverified.png
%{_kde5_iconsdir}/*/*/status/object-locked-verified.png
%{_kde5_xmlguidir}/kopete/*.rc
%{_kde5_xmlguidir}/kopete_groupwise/*.rc
%{_kde5_xmlguidir}/kopete_otr/*rc
%{_appdatadir}/org.kde.kopete.appdata.xml
%{_qt5_plugindir}/accessible/chatwindowaccessiblewidgetfactory.so
%{_qt5_plugindir}/chattexteditpart.so
%{_qt5_plugindir}/kcm_kopete_*.so
%{_qt5_plugindir}/kopete_*.so

#----------------------------------------------------------------------------

%define kopetecontactlist_major 1
%define libkopetecontactlist %mklibname kopetecontactlist %{kopetecontactlist_major}

%package -n %{libkopetecontactlist}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopetecontactlist}
Kopete shared library.

%files -n %{libkopetecontactlist}
%{_kde5_libdir}/libkopetecontactlist.so.%{kopetecontactlist_major}*

#----------------------------------------------------------------------------

%define kopete_videodevice_major 1
%define libkopete_videodevice %mklibname kopete_videodevice %{kopete_videodevice_major}

%package -n %{libkopete_videodevice}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopete_videodevice}
Kopete shared library.

%files -n %{libkopete_videodevice}
%{_kde5_libdir}/libkopete_videodevice.so.%{kopete_videodevice_major}*

#----------------------------------------------------------------------------

%define kopeteaddaccountwizard_major 1
%define libkopeteaddaccountwizard %mklibname kopeteaddaccountwizard %{kopeteaddaccountwizard_major}

%package -n %{libkopeteaddaccountwizard}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopeteaddaccountwizard}
Kopete shared library.

%files -n %{libkopeteaddaccountwizard}
%{_kde5_libdir}/libkopeteaddaccountwizard.so.%{kopeteaddaccountwizard_major}*

#----------------------------------------------------------------------------

%define kopete_major 1
%define libkopete %mklibname kopete %{kopete_major}

%package -n %{libkopete}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopete}
Kopete shared library.

%files -n %{libkopete}
%{_kde5_libdir}/libkopete.so.%{kopete_major}*

#----------------------------------------------------------------------------

%define kopeteprivacy_major 1
%define libkopeteprivacy %mklibname kopeteprivacy %{kopeteprivacy_major}

%package -n %{libkopeteprivacy}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopeteprivacy}
Kopete shared library.

%files -n %{libkopeteprivacy}
%{_kde5_libdir}/libkopeteprivacy.so.%{kopeteprivacy_major}*

#----------------------------------------------------------------------------

%define kopetechatwindow_shared_major 1
%define libkopetechatwindow_shared %mklibname kopetechatwindow_shared %{kopetechatwindow_shared_major}

%package -n %{libkopetechatwindow_shared}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopetechatwindow_shared}
Kopete shared library.

%files -n %{libkopetechatwindow_shared}
%{_kde5_libdir}/libkopetechatwindow_shared.so.%{kopetechatwindow_shared_major}*

#----------------------------------------------------------------------------

%define kopete_otr_shared_major 1
%define libkopete_otr_shared %mklibname kopete_otr_shared %{kopete_otr_shared_major}

%package -n %{libkopete_otr_shared}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopete_otr_shared}

Kopete shared library.

%files -n %{libkopete_otr_shared}
%{_kde5_libdir}/libkopete_otr_shared.so.%{kopete_otr_shared_major}*

#----------------------------------------------------------------------------

%define kopetestatusmenu_major 1
%define libkopetestatusmenu %mklibname kopetestatusmenu %{kopetestatusmenu_major}

%package -n %{libkopetestatusmenu}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopetestatusmenu}
Kopete shared library.

%files -n %{libkopetestatusmenu}
%{_kde5_libdir}/libkopetestatusmenu.so.%{kopetestatusmenu_major}*

#----------------------------------------------------------------------------

%define kopete_oscar_major 1
%define libkopete_oscar %mklibname kopete_oscar %{kopete_oscar_major}

%package -n %{libkopete_oscar}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopete_oscar}
Kopete shared library.

%files -n %{libkopete_oscar}
%{_kde5_libdir}/libkopete_oscar.so.%{kopete_oscar_major}*

#----------------------------------------------------------------------------

%define oscar_major 1
%define liboscar %mklibname oscar %{oscar_major}

%package -n %{liboscar}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{liboscar}
Kopete shared library.

%files -n %{liboscar}
%{_kde5_libdir}/liboscar.so.%{oscar_major}*

#----------------------------------------------------------------------------

%define kopeteidentity_major 1
%define libkopeteidentity %mklibname kopeteidentity %{kopeteidentity_major}

%package -n %{libkopeteidentity}
Summary:	Kopete shared library
Group:		System/Libraries

%description -n %{libkopeteidentity}
Kopete shared library.

%files -n %{libkopeteidentity}
%{_kde5_libdir}/libkopeteidentity.so.%{kopeteidentity_major}*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Kopete
Group:		Development/KDE and Qt
Requires:	%{libkopetecontactlist} = %{EVRD}
Requires:	%{libkopete_videodevice} = %{EVRD}
Requires:	%{libkopeteaddaccountwizard} = %{EVRD}
Requires:	%{libkopete} = %{EVRD}
Requires:	%{libkopeteprivacy} = %{EVRD}
Requires:	%{libkopetechatwindow_shared} = %{EVRD}
Requires:	%{libkopete_oscar} = %{EVRD}
Requires:	%{libkopete_otr_shared} = %{EVRD}
Requires:	%{liboscar} = %{EVRD}
Requires:	%{libkopeteidentity} = %{EVRD}
Requires:	%{libkopetestatusmenu} = %{EVRD}

%description devel
This package contains header files needed if you want to build applications
based on Kopete.

%files devel
%{_kde5_libdir}/*.so
%exclude %{_kde5_libdir}/libqgroupwise.so
%{_kde5_includedir}/kopete
%{_datadir}/dbus-1/interfaces/*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed s," QUIET",,g -i CMakeLists.txt

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} kio_jabberdisco %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13837 |21mr|korganizer-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE calendar and scheduling component
Name:		korganizer
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadicalendar-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadinotes-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadisearch-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarsupport-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5eventviews-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5incidenceeditor-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5service-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	akonadi-calendar-tools
Requires:	plasma5-kdepim-runtime
Recommends:	plasma5-kdepim-addons

%description
KOrganizer provides management of events and tasks, alarm notification,
web export, network transparent handling of data, group scheduling,
import and export of calendar files and more. It is able to work together
with a wide variety of groupware servers, for example Kolab, Open-Xchange,
Citadel or OpenGroupware.org.

%files -f %{name}.lang
%{_kde5_applicationsdir}/korganizer-import.desktop
%{_kde5_applicationsdir}/org.kde.korganizer.desktop
%{_kde5_applicationsdir}/korganizer-view.desktop
%{_kde5_bindir}/korganizer
%{_kde5_datadir}/config.kcfg/korganizer.kcfg
%dir %{_kde5_datadir}/korganizer/
%{_kde5_datadir}/korganizer/*
%{_kde5_datadir}/knsrcfiles/korganizer.knsrc
%{_kde5_datadir}/qlogging-categories5/korganizer.categories
%{_kde5_datadir}/qlogging-categories5/korganizer.renamecategories
%{_kde5_iconsdir}/hicolor/*/apps/korganizer.*
%{_kde5_iconsdir}/hicolor/*/apps/korg-journal.*
%{_kde5_iconsdir}/hicolor/*/apps/korg-todo.*
%{_kde5_iconsdir}/hicolor/*/apps/quickview.*
%{_appdatadir}/org.kde.korganizer.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.korganizer.Korganizer.xml
%{_datadir}/dbus-1/interfaces/org.kde.Korganizer.Calendar.xml
%{_datadir}/dbus-1/services/org.kde.korganizer.service
%{_qt5_plugindir}/pim5/kcms/korganizer/korganizer_*.so
%{_qt5_plugindir}/pim5/kcms/summary/kcmapptsummary.so
%{_qt5_plugindir}/pim5/kcms/summary/kcmsdsummary.so
%{_qt5_plugindir}/pim5/kcms/summary/kcmtodosummary.so
%{_qt5_plugindir}/pim5/kontact/kontact_journalplugin.so
%{_qt5_plugindir}/pim5/kontact/kontact_korganizerplugin.so
%{_qt5_plugindir}/pim5/kontact/kontact_specialdatesplugin.so
%{_qt5_plugindir}/pim5/kontact/kontact_todoplugin.so
%{_qt5_plugindir}/korganizerpart.so

#----------------------------------------------------------------------------

%define korganizer_core_major 5
%define libkorganizer_core %mklibname korganizer_core %{korganizer_core_major}

%package -n %{libkorganizer_core}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkorganizer_core}
KDE PIM shared library.

%files -n %{libkorganizer_core}
%{_kde5_libdir}/libkorganizer_core.so.%{korganizer_core_major}*

#----------------------------------------------------------------------------

%define korganizer_interfaces_major 5
%define libkorganizer_interfaces %mklibname korganizer_interfaces %{korganizer_interfaces_major}

%package -n %{libkorganizer_interfaces}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkorganizer_interfaces}
KDE PIM shared library.

%files -n %{libkorganizer_interfaces}
%{_kde5_libdir}/libkorganizer_interfaces.so.%{korganizer_interfaces_major}*

#----------------------------------------------------------------------------

%define korganizerprivate_major 5
%define libkorganizerprivate %mklibname korganizerprivate %{korganizerprivate_major}

%package -n %{libkorganizerprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkorganizerprivate}
KDE PIM shared library.

%files -n %{libkorganizerprivate}
%{_kde5_libdir}/libkorganizerprivate.so.%{korganizerprivate_major}*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_kde5_libdir}/libkorganizer_core.so
rm -rf %{buildroot}%{_kde5_libdir}/libkorganizer_interfaces.so

%find_lang %{name} korgac %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13838 |21mr|kosmindoormap-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OSM multi-floor indoor map renderer
Name:		kosmindoormap
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv2+
Url:		https://kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	kf5i18n-devel
BuildRequires:	kpublictransport-devel
BuildRequires:	kopeninghours-devel
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(protobuf) = 3.12.3

#BuildRequires:	osmctools
#Requires:	osmctools

%description
Library and QML component for rendering multi-level OSM indoor maps.

%files -f %{name}.lang
%{_kde5_datadir}/qlogging-categories5/org_kde_kosmindoormap.*categories
%{_kde5_qmldir}/org/kde/kosmindoormap/

#-------------------------------------------------------------------------

%define kosm_major 1
%define libkosm %mklibname kosm %{kosm_major}

%package -n %{libkosm}
Summary:	Library and QML component for rendering multi-level OSM indoor maps
Group:		System/Libraries

%description -n %{libkosm}
Library and QML component for rendering multi-level OSM indoor maps.

%files -n %{libkosm}
%{_kde5_libdir}/libKOSM.so.%{kosm_major}*
%{_kde5_libdir}/libKOSM.so.%{version}

#-------------------------------------------------------------------------

%define kosmindoormap_major 1
%define libkosmindoormap %mklibname kosmindoormap %{kosmindoormap_major}

%package -n %{libkosmindoormap}
Summary:	Library and QML component for rendering multi-level OSM indoor maps
Group:		System/Libraries
Requires:	%{name} >= %{version}-%{release}

%description -n %{libkosmindoormap}
Library and QML component for rendering multi-level OSM indoor maps.

%files -n %{libkosmindoormap}
%{_kde5_libdir}/libKOSMIndoorMap.so.%{kosmindoormap_major}*
%{_kde5_libdir}/libKOSMIndoorMap.so.%{version}

#-------------------------------------------------------------------------

%define develname %mklibname %{name} -d

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libkosm} = %{version}-%{release}
Requires:	%{libkosmindoormap} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{develname}
%{_includedir}/KOSM/
%{_includedir}/KOSMIndoorMap/
%{_includedir}/kosm/
%{_includedir}/kosmindoormap/
%{_includedir}/kosmindoormap_version.h
%{_kde5_libdir}/libKOSM.so
%{_kde5_libdir}/libKOSMIndoorMap.so
%{_kde5_libdir}/cmake/KOSMIndoorMap/

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
	-DBUILD_TESTING:BOOL=OFF
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13839 |21mr|kpackage-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 module used to install and load non-binary packages
Name:		kpackage
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 module used to install and load non-binary packages.

The Package framework lets the user to install and load packages of non-binary
content such as scripted extensions or graphic assets, as they were traditional
plugins.

%files
%{_kde5_bindir}/kpackagetool5
%{_kde5_datadir}/qlogging-categories5/kpackage.categories
%{_kde5_datadir}/qlogging-categories5/kpackage.renamecategories
%{_kde5_mandir}/man1/kpackagetool5.1*
%{_kde5_servicetypes}/kpackage-generic.desktop
%{_kde5_servicetypes}/kpackage-genericqml.desktop
%{_kde5_servicetypes}/kpackage-packagestructure.desktop

#----------------------------------------------------------------------------

%package i18n
Summary:	KPackage translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KPackage translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5package_major 5
%define libkf5package %mklibname kf5package %{kf5package_major}

%package -n %{libkf5package}
Summary:	KDE Frameworks 5 package management shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5package}
KDE Frameworks 5 package management shared library.

%files -n %{libkf5package}
%{_kde5_libdir}/libKF5Package.so.%{kf5package_major}*

#----------------------------------------------------------------------------

%define devkf5package %mklibname kf5package -d

%package -n %{devkf5package}
Summary:	Development files for KDE Frameworks 5 package management module
Group:		Development/KDE and Qt
Requires:	%{libkf5package} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5package-devel = %{version}

%description -n %{devkf5package}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5package}
%{_kde5_includedir}/KF5/KPackage
%{_kde5_libdir}/cmake/KF5Package
%{_kde5_libdir}/libKF5Package.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13840 |21mr|kparts-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 document centric plugin system module
Name:		kparts
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5jobwidgets-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5notifications-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5textwidgets-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	kf5xmlgui-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 document centric plugin system module.

KParts implements the framework for KDE parts, which are elaborate widgets
with a user-interface defined in terms of actions (menu items, toolbar icons).

%files
%{_kde5_datadir}/qlogging-categories5/kparts.categories
%{_kde5_servicetypes}/*.desktop
%{_qt5_plugindir}/spellcheckplugin.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KParts translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KParts translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5parts_major 5
%define libkf5parts %mklibname kf5parts %{kf5parts_major}

%package -n %{libkf5parts}
Summary:	KDE Frameworks 5 document centric plugin system shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5parts}
KDE Frameworks 5 document centric plugin system shared library.

%files -n %{libkf5parts}
%{_kde5_libdir}/libKF5Parts.so.%{kf5parts_major}*

#----------------------------------------------------------------------------

%define devkf5parts %mklibname kf5parts -d

%package -n %{devkf5parts}
Summary:	Development files for KDE Frameworks 5 document centric plugin system module
Group:		Development/KDE and Qt
Requires:	%{libkf5parts} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5parts-devel = %{version}

%description -n %{devkf5parts}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5parts}
%{_kde5_datadir}/kdevappwizard/templates/kpartsapp.tar.bz2
%{_kde5_includedir}/KF5/KParts
%{_kde5_libdir}/cmake/KF5Parts
%{_kde5_libdir}/libKF5Parts.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13841 |21mr|kpat-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Several patience card games
Name:		kpat
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kpatience/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source1:	kpat.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libfreecell-solver)
BuildRequires:	pkgconfig(libblack-hole-solver)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(shared-mime-info)

%description
KPatience is a relaxing card sorting game. To win the game a player has to
arrange a single deck of cards in certain order amongst each other.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kpat.desktop
%{_kde5_bindir}/kpat
%{_kde5_datadir}/kpat
%{_kde5_datadir}/config.kcfg/kpat.kcfg
%{_kde5_datadir}/knsrcfiles/kcardtheme.knsrc
%{_kde5_datadir}/knsrcfiles/kpat.knsrc
%{_kde5_datadir}/qlogging-categories5/kpat.categories
%{_kde5_iconsdir}/hicolor/*/apps/kpat.png
%{_kde5_libdir}/libkcardgame.so
%{_kde5_mandir}/man6/kpat.6*
%{_appdatadir}/org.kde.kpat.appdata.xml
%{_datadir}/mime/packages/kpatience.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man6/*

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13842 |21mr|kpeople-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 people contacts module
Name:		kpeople
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5itemviews-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 people contacts module.

KPeople offers unified access to our contacts from different sources,
grouping them by person while still exposing all the data.

Furthermore, KPeople will also provide facilities to integrate the data
provided in user interfaces by providing QML and Qt Widgets components.

The sources are plugin-based, allowing to easily extend the contacts
collection.

%files
%{_kde5_datadir}/qlogging-categories5/kpeople.categories
%{_kde5_datadir}/qlogging-categories5/kpeople.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KPeople translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KPeople translations.

%files i18n -f kpeople5.lang

#----------------------------------------------------------------------------

%define qmlkf5people %mklibname kf5people-qml

%package -n %{qmlkf5people}
Summary:	QML plugin for KDE Frameworks 5 KPeople
Group:		System/Libraries
Provides:	kf5people-qml = %{EVRD}

%description -n %{qmlkf5people}
QML plugin for KDE Frameworks 5 KPeople.

%files -n %{qmlkf5people}
%dir %{_kde5_qmldir}/org/kde/people/
%{_kde5_qmldir}/org/kde/people/*

#----------------------------------------------------------------------------

%define kf5people_major 5
%define libkf5people %mklibname kf5people %{kf5people_major}

%package -n %{libkf5people}
Summary:	KDE Frameworks 5 people contacts shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5people} = %{EVRD}

%description -n %{libkf5people}
KDE Frameworks 5 people contacts shared library.

%files -n %{libkf5people}
%{_kde5_libdir}/libKF5People.so.%{kf5people_major}*

#----------------------------------------------------------------------------

%define kf5peoplebackend_major 5
%define libkf5peoplebackend %mklibname kf5peoplebackend %{kf5peoplebackend_major}

%package -n %{libkf5peoplebackend}
Summary:	KDE Frameworks 5 people contacts shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5people} = %{EVRD}

%description -n %{libkf5peoplebackend}
KDE Frameworks 5 people contacts shared library.

%files -n %{libkf5peoplebackend}
%{_kde5_libdir}/libKF5PeopleBackend.so.%{kf5peoplebackend_major}*

#----------------------------------------------------------------------------

%define kf5peoplewidgets_major 5
%define libkf5peoplewidgets %mklibname kf5peoplewidgets %{kf5peoplewidgets_major}

%package -n %{libkf5peoplewidgets}
Summary:	KDE Frameworks 5 people contacts shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5people} = %{EVRD}

%description -n %{libkf5peoplewidgets}
KDE Frameworks 5 people contacts shared library.

%files -n %{libkf5peoplewidgets}
%{_kde5_libdir}/libKF5PeopleWidgets.so.%{kf5peoplewidgets_major}*

#----------------------------------------------------------------------------

%define devkf5people %mklibname kf5people -d

%package -n %{devkf5people}
Summary:	Development files for KDE Frameworks 5 people contacts module
Group:		Development/KDE and Qt
Requires:	%{libkf5people} = %{EVRD}
Requires:	%{libkf5peoplebackend} = %{EVRD}
Requires:	%{libkf5peoplewidgets} = %{EVRD}
Provides:	kf5people-devel = %{version}

%description -n %{devkf5people}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5people}
%{_kde5_includedir}/KF5/KPeople
%{_kde5_libdir}/cmake/KF5People
%{_kde5_libdir}/libKF5People.so
%{_kde5_libdir}/libKF5PeopleBackend.so
%{_kde5_libdir}/libKF5PeopleWidgets.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kpeople5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13843 |21mr|kpeoplevcard-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define stable %([ "`echo %{version} |cut -d. -f3`" -ge 80 ] && echo -n un; echo -n stable)

Name:		kpeoplevcard
Version:	0.1
Release:	2
Source0:	http://download.kde.org/%{stable}/kpeoplevcard/%{version}/%{name}-%{version}.tar.xz
Summary:	VCard reading support for KPeople
URL:	    http://kde.org/
License:	GPL
Group:	    System/Libraries
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5people-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
VCard reading support for KPeople

%files
%{_kde5_libdir}/qt5/plugins/kpeople/datasource/KPeopleVCard.so

#---------------------------------------------------------------------

%package devel
Summary:	Development files for KPeopleVCard
Group:	    Development/KDE and Qt
Requires: %{name} = %{EVRD}

%description devel
Development files for KPeopleVCard

%files devel
%{_kde5_libdir}/cmake/KF5PeopleVCard

# ----------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13844 |21mr|kpimtextedit-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __requires_exclude .*cmake.*kf5textedittexttospeech.*
%define __requires_exclude .*cmake.*KF5TextEditTextToSpeech.*

Summary:	Advanced text editor with html features
Name:		kpimtextedit
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5designerplugin-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5TextToSpeech)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Advanced text editor with html features.

%files
%{_kde5_datadir}/qlogging-categories5/kpimtextedit.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	Advanced text editor with html features library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Advanced text editor with html features library translations.

%files i18n -f libkpimtextedit.lang

#----------------------------------------------------------------------------

%define kf5pimtextedit_major 5
%define libkf5pimtextedit %mklibname kf5pimtextedit %{kf5pimtextedit_major}

%package -n %{libkf5pimtextedit}
Summary:	Advanced text editor with html features shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5pimtextedit}
Advanced text editor with html features shared library.

%files -n %{libkf5pimtextedit}
%{_kde5_libdir}/libKPim5TextEdit.so.%{kf5pimtextedit_major}*

#----------------------------------------------------------------------------

%package designer-plugin
Summary:	KF5PimTextEdit Qt Designer plugin
Group:		Development/KDE and Qt

%description designer-plugin
Qt Designer plugin for KF5PimTextEdit.

%files designer-plugin
%{_qt5_plugindir}/designer/kpimtextedit5widgets.so

#----------------------------------------------------------------------------

%define devkf5pimtextedit %mklibname kf5pimtextedit -d

%package -n %{devkf5pimtextedit}
Summary:	Development files for advanced text editor with html features module
Group:		Development/KDE and Qt
Requires:	%{libkf5pimtextedit} = %{EVRD}
Recommends:	%{name}-designer-plugin = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5pimtextedit-devel = %{version}

%description -n %{devkf5pimtextedit}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5pimtextedit}
%{_kde5_includedir}/KPim5/KPIMTextEdit
%{_kde5_libdir}/cmake/KF5PimTextEdit
%{_kde5_libdir}/cmake/KPim5TextEdit
%{_kde5_libdir}/libKPim5TextEdit.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkpimtextedit --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13845 |21mr|kpipewire-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Components relating to Flatpak 'pipewire' use in Plasma
Name:		kpipewire
Version:	5.27.11
Release:	2
License:	LGPLv2+
Group:		Sound
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libglvnd)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	qt5-wayland-client
BuildRequires:	qt5-wayland-compositor
BuildRequires:	wayland-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	mesa-common-devel
BuildRequires:	%{_lib}GLESv2_2
Conflicts:	plasma6-kpipewire > %{EVRD}

%description
Components relating to Flatpak 'pipewire' use in Plasma.

%files -f %{name}.lang
%{_kde5_qmldir}/org/kde/pipewire/*
%{_kde5_datadir}/qlogging-categories5/kpipewire.categories
%{_kde5_datadir}/qlogging-categories5/kpipewirerecord.categories

#--------------------------------------------------------------------

%define pipewire_major 5
%define libkf5pipewire %mklibname kf5pipewire %{pipewire_major}

%package -n %{libkf5pipewire}
Group:		System/Libraries
Summary:	Libraries needed by %{name}
Requires:	%{name} = %{EVRD}

%description -n %{libkf5pipewire}
This package contains the libraries needed by %{name}.

%files -n %{libkf5pipewire}
%{_kde5_libdir}/libKPipeWire.so.%{pipewire_major}
%{_kde5_libdir}/libKPipeWire.so.%{version}

#--------------------------------------------------------------------

%define pipewiredmabuf_major 5
%define libkf5pipewiredmabuf %mklibname kf5pipewiredmabuf %{pipewiredmabuf_major}

%package -n %{libkf5pipewiredmabuf}
Group:		System/Libraries
Summary:	Libraries needed by %{name}
Requires:	%{name} = %{EVRD}

%description -n %{libkf5pipewiredmabuf}
This package contains the libraries needed by %{name}.

%files -n %{libkf5pipewiredmabuf}
%{_kde5_libdir}/libKPipeWireDmaBuf.so.%{pipewire_major}
%{_kde5_libdir}/libKPipeWireDmaBuf.so.%{version}

#--------------------------------------------------------------------

%define pipewirerecord_major 5
%define libkf5pipewirerecord %mklibname kf5pipewirerecord %{pipewirerecord_major}

%package -n %{libkf5pipewirerecord}
Group:		System/Libraries
Summary:	Libraries needed by %{name}
Requires:	%{name} = %{EVRD}

%description -n %{libkf5pipewirerecord}
This package contains the libraries needed by %{name}.

%files -n %{libkf5pipewirerecord}
%{_kde5_libdir}/libKPipeWireRecord.so.%{pipewire_major}
%{_kde5_libdir}/libKPipeWireRecord.so.%{version}

#--------------------------------------------------------------------

%define devkf5pipewire %mklibname kf5pipewire -d

%package -n %{devkf5pipewire}
Group:		Development/KDE and Qt
Summary:	Development files for %{name}
Requires:	%{libkf5pipewire} = %{EVRD}
Requires:	%{libkf5pipewiredmabuf} = %{EVRD}
Requires:	%{libkf5pipewirerecord} = %{EVRD}
Provides:	kf5pipewire-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkf5pipewire}
Development files for %{name}.

%files -n %{devkf5pipewire}
%{_kde5_includedir}/KPipeWire
%{_kde5_libdir}/cmake/KPipeWire
%{_kde5_libdir}/libKPipeWire.so
%{_kde5_libdir}/libKPipeWireDmaBuf.so
%{_kde5_libdir}/libKPipeWireRecord.so

#--------------------------------------------------------------------


%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13846 |21mr|kpkpass-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 PIM Apple Wallet (PkPass) files support library
Name:		kpkpass
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(shared-mime-info)
# mime file moved here
Conflicts:	plasma5-kdepim-addons < 18.12

%description
Plasma 5 PIM Apple Wallet (PkPass) files support library.

Apple Wallet files are essentially ZIP files containing a JSON description of
the pass, translated message catalogs and graphical assets to render the pass.

%files
%{_kde5_datadir}/qlogging-categories5/org_kde_kpkpass.categories

#----------------------------------------------------------------------------

%define kpimpkpass_major 5
%define libkpimpkpass %mklibname kpimpkpass %{kpimpkpass_major}

%package -n %{libkpimpkpass}
Summary:	Plasma 5 PIM Apple Wallet (PkPass) files support shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkpimpkpass}
Plasma 5 PIM Apple Wallet (PkPass) files support shared library.

%files -n %{libkpimpkpass}
%{_kde5_libdir}/libKPim5PkPass.so.%{kpimpkpass_major}*

#----------------------------------------------------------------------------

%define devkpimpkpass %mklibname kpimpkpass -d

%package -n %{devkpimpkpass}
Summary:	Development files for Plasma 5 PIM Apple Wallet (PkPass) files support library
Group:		Development/KDE and Qt
Requires:	%{libkpimpkpass} = %{EVRD}
Provides:	kpkpass-devel = %{version}
Provides:	kpimpkpass-devel = %{version}

%description -n %{devkpimpkpass}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkpimpkpass}
%dir %{_kde5_includedir}/KPim5/KPkPass/
%{_kde5_includedir}/KPim5/KPkPass/*
%{_kde5_libdir}/cmake/KPim5PkPass/
%{_kde5_libdir}/cmake/KPimPkPass/
%{_kde5_libdir}/libKPim5PkPass.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13847 |21mr|kplotting-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 module for data plotting
Name:		kplotting
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 module for data plotting.

KPlotWidget is a QWidget-derived class that provides a virtual base class
for easy data-plotting. The idea behind KPlotWidget is that you only have
to specify information in "data units"; i.e., the natural units of the
data being plotted. KPlotWidget automatically converts everything
to screen pixel units.

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kplotting5widgets.so

#----------------------------------------------------------------------------

%define kf5plotting_major 5
%define libkf5plotting %mklibname kf5plotting %{kf5plotting_major}

%package -n %{libkf5plotting}
Summary:	KDE Frameworks 5 data plotting shared library
Group:		System/Libraries

%description -n %{libkf5plotting}
KDE Frameworks 5 data plotting shared library.

%files -n %{libkf5plotting}
%{_kde5_libdir}/libKF5Plotting.so.%{kf5plotting_major}*

#----------------------------------------------------------------------------

%define devkf5plotting %mklibname kf5plotting -d

%package -n %{devkf5plotting}
Summary:	Development files for KDE Frameworks 5 data plotting module
Group:		Development/KDE and Qt
Requires:	%{libkf5plotting} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5plotting-devel = %{version}

%description -n %{devkf5plotting}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5plotting}
%{_kde5_includedir}/KF5/KPlotting
%{_kde5_libdir}/cmake/KF5Plotting
%{_kde5_libdir}/libKF5Plotting.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13848 |21mr|kpmcore-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 12
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	KDE partition management library
Name:		kpmcore
Version:	23.08.4
Release:	1
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
Source1:	kpmcore21.08_ru.tar.gz
#Patch1:     e2k-filesystem.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	gettext
BuildRequires:	qmake5
BuildRequires:	kf5auth-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(blkid) >= 2.33.2
BuildRequires:	pkgconfig(libatasmart)
BuildRequires:	pkgconfig(libparted)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	qt5-tools
BuildRequires:	polkit-qt5-1-devel
%ifarch %{e2k}
BuildRequires:  gulrak-filesystem-devel
%endif
Conflicts:	partitionmanager < 2.0.0

%description
KDE partition management library.

%files
%{_qt5_plugindir}/kpmcore/pmdummybackendplugin.so
%{_qt5_plugindir}/kpmcore/pmsfdiskbackendplugin.so
%{_kde5_libexecdir}/kpmcore_externalcommand
%{_kde5_datadir}/dbus-1/system-services/org.kde.kpmcore.helperinterface.service
%{_kde5_datadir}/polkit-1/actions/org.kde.kpmcore.externalcommand.policy
%{_kde5_datadir}/dbus-1/system.d/org.kde.kpmcore.helperinterface.conf

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE partition management library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE partition management library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	KDE partition management shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libname}
KDE partition management shared library.

%files -n %{libname}
%{_kde5_libdir}/libkpmcore.so.%{major}
%{_kde5_libdir}/libkpmcore.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for KDE partition management shared library
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_includedir}/kpmcore
%{_kde5_libdir}/cmake/KPMcore
%{_kde5_libdir}/libkpmcore.so

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13849 |21mr|kproperty-3.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE property editing framework with editor widget
Name:		kproperty
Version:	3.2.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/kproperty/src/%{name}-%{version}.tar.xz
Patch0:		kproperty-3.0.2-pkgconfig.patch
BuildRequires:	cmake(ECM)
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5Gui)
BuildRequires:	cmake(Qt5Widgets)
BuildRequires:	cmake(Qt5Xml)
BuildRequires:	cmake(Qt5Test)
BuildRequires:	cmake(Qt5Network)
BuildRequires:	cmake(KF5I18n)
BuildRequires:	cmake(KF5CoreAddons)
BuildRequires:	cmake(KF5GuiAddons)
BuildRequires:	cmake(KF5WidgetsAddons)
BuildRequires:	cmake(KF5Config)
BuildRequires:	cmake(KF5I18n)
BuildRequires:	doxygen graphviz qt5-assistant

%description
KProperty is a property editing framework with editor widget similar to what
is known from Qt Designer.

%files
%{_kde5_datadir}/kproperty3/icons/kproperty_breeze.rcc

#----------------------------------------------------------------------------

%package i18n
Summary:	KProperty translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KProperty translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kpropertycore3_major 4
%define libkpropertycore3 %mklibname kpropertycore3_ %{kpropertycore3_major}

%package -n %{libkpropertycore3}
Summary:	KDE property editing framework shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkpropertycore3}
KDE property editing framework shared library.

%files -n %{libkpropertycore3}
%{_kde5_libdir}/libKPropertyCore3.so.%{kpropertycore3_major}*

#----------------------------------------------------------------------------

%define kpropertywidgets3_major 4
%define libkpropertywidgets3 %mklibname kpropertywidgets3_ %{kpropertywidgets3_major}

%package -n %{libkpropertywidgets3}
Summary:	KDE property editing framework shared library
Group:		System/Libraries

%description -n %{libkpropertywidgets3}
KDE property editing framework shared library.

%files -n %{libkpropertywidgets3}
%{_kde5_libdir}/libKPropertyWidgets3.so.%{kpropertywidgets3_major}*

#----------------------------------------------------------------------------

%define devkproperty %mklibname kproperty -d

%package -n %{devkproperty}
Summary:	Development files for KDE property editing framework
Group:		Development/KDE and Qt
Requires:	%{libkpropertycore3} = %{EVRD}
Requires:	%{libkpropertywidgets3} = %{EVRD}
Requires:	cmake(KF5GuiAddons)
Requires:	cmake(KF5WidgetsAddons)
Requires:	cmake(KPropertyCore)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkproperty}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkproperty}
%{_kde5_includedir}/KPropertyCore3/
%{_kde5_includedir}/KPropertyWidgets3/
%{_kde5_libdir}/cmake/KPropertyCore3/
%{_kde5_libdir}/cmake/KPropertyWidgets3/
%{_kde5_libdir}/pkgconfig/KPropertyCore3.pc
%{_kde5_libdir}/pkgconfig/KPropertyWidgets3.pc
%{_kde5_libdir}/libKPropertyCore3.so
%{_kde5_libdir}/libKPropertyWidgets3.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make_build

%install
%make_install -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13850 |21mr|kpty-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 pseudo terminal devices module
Name:		kpty
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kcoreaddons-devel = %{version}
BuildRequires:	utempter
BuildRequires:	ki18n-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
# Allows non-privileged applications such as terminal emulators to 
# modify the utmp database without having to be setuid root
Requires:	utempter

%description
KDE Frameworks 5 pseudo terminal devices module.

KPty provides primitives to interface with pseudo terminal devices as well
as a KProcess derived class for running child processes and communicating
with them using a pty.

%files
%{_kde5_datadir}/qlogging-categories5/kpty.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KPty translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KPty translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5pty_major 5
%define libkf5pty %mklibname kf5pty %{kf5pty_major}

%package -n %{libkf5pty}
Summary:	KDE Frameworks 5 pseudo terminal devices shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5pty}
KDE Frameworks 5 pseudo terminal devices shared library.

%files -n %{libkf5pty}
%{_kde5_libdir}/libKF5Pty.so.%{kf5pty_major}*

#----------------------------------------------------------------------------

%define devkf5pty %mklibname kf5pty -d

%package -n %{devkf5pty}
Summary:	Development files for KDE Frameworks 5 pseudo terminal devices module
Group:		Development/KDE and Qt
Requires:	%{libkf5pty} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5pty-devel = %{version}

%description -n %{devkf5pty}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5pty}
%{_kde5_includedir}/KF5/KPty
%{_kde5_libdir}/cmake/KF5Pty
%{_kde5_libdir}/libKF5Pty.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13851 |21mr|kpublictransport-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %{version} |cut -d. -f1)
%define libname %mklibname KPublicTransport
%define devname %mklibname -d KPublicTransport

%define stable %([ "`echo %{version} |cut -d. -f3`" -ge 80 ] && echo -n un; echo -n stable)
Summary:	Library for reading public transport information
Name:		kpublictransport
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv2+
Url:		http://kde.org/
Source0:	http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(protobuf)

%description
Public transport application for Plasma

%package -n %{libname}
Summary:	Library for reading public transport information
Group:		System/Libraries
%rename %mklibname KPublicTransport 20
%rename %mklibname KPublicTransport 21

%description -n %{libname}
Library for reading public transport information

%files -n %{libname}
%{_libdir}/libKPublicTransport.so.*
%{_libdir}/libKPublicTransportOnboard.so.*
%{_libdir}/qt5/qml/org/kde/kpublictransport
%{_datadir}/qlogging-categories5/org_kde_kpublictransport.categories
%{_datadir}/qlogging-categories5/org_kde_kpublictransport_onboard.categories

#-----------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(zlib)
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{libname}

%files -n %{devname}
%{_includedir}/KPublicTransport
%{_libdir}/cmake/KPublicTransport
%{_libdir}/libKPublicTransport.so
%{_libdir}/libKPublicTransportOnboard.so

#-----------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13852 |21mr|kqtquickcharts-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	QML plugin to render beautiful and interactive charts
Name:		kqtquickcharts
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Development/KDE and Qt
Url:		http://edu.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
Requires:	kqtquickcharts-qml = %{EVRD}

%description
Qt Quick plugin to render beautiful and interactive charts.

%files

#----------------------------------------------------------------------------

%define qmlkqtquickcharts %mklibname kqtquickcharts-qml

%package -n %{qmlkqtquickcharts}
Summary:	QML plugin to render beautiful and interactive charts
Group:		System/Libraries
Provides:	kqtquickcharts-qml = %{EVRD}

%description -n %{qmlkqtquickcharts}
QML plugin to render beautiful and interactive charts

%files -n %{qmlkqtquickcharts}
%dir %{_kde5_qmldir}/org/kde/charts/
%{_kde5_qmldir}/org/kde/charts/*

#----------------------------------------------------------------------------

%define devkqtquickcharts %mklibname kqtquickcharts -d

%package -n %{devkqtquickcharts}
Summary:	Development files for QML charts plugin
Group:		Development/KDE and Qt
Requires:	%{qmlkqtquickcharts} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkqtquickcharts}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkqtquickcharts}
%{_kde5_includedir}/KF5/kqtquickcharts_version.h
%{_kde5_libdir}/cmake/KQtQuickCharts

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13853 |21mr|kquickcharts-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	QtQuick module providing high-performance charts
Name:		kquickcharts
Version:	5.116.0
Release:	3
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	qt5-qtquickcontrols2-qml

%description
The Quick Charts module provides a set of charts that can be used from QtQuick
applications. They are intended to be used for both simple display of data as
well as continuous display of high-volume data (often referred to as plotters).
The charts use a system called distance fields for their accelerated rendering,
which provides ways of using the GPU for rendering 2D shapes without loss of
quality.

%files
%dir %{_kde5_qmldir}/org/kde/quickcharts/
%{_kde5_qmldir}/org/kde/quickcharts/*
%{_kde5_datadir}/qlogging-categories5/kquickcharts.categories

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for KDE's QtQuick Charts module
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{version}
Provides:	kf5quickcharts-devel = %{version}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_libdir}/cmake/KF5QuickCharts/

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13854 |21mr|kquickimageeditor-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		kquickimageeditor
Version:	0.2.0
Release:	2
Summary:	Qt Image editing components
License:	LGPL2.1
Group:		System/Libraries
Url:		https://invent.kde.org/libraries/kquickimageeditor
Source0:	https://download.kde.org/stable/kquickimageeditor/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Quick)


%description
KQuickImageEditor is a set of QtQuick components providing basic image editing
capabilities.

%files
%{_kde5_libdir}/qt5/qml/org/kde/kquickimageeditor

#------------------------------------------------------

%package -n %{devname}
Summary:	Header files for KQuickImageEditor
Group:		Development/C
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files of for KQuickImageEditor.

%files -n %{devname}
%{_kde5_libdir}/cmake/KQuickImageEditor/KQuickImageEditorConfig.cmake
%{_kde5_libdir}/cmake/KQuickImageEditor/KQuickImageEditorConfigVersion.cmake
%{_kde5_libdir}/qt5/mkspecs/modules/qt_KQuickImageEditor.pri

#------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13855 |21mr|krb5-1.19.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with	bootstrap
%bcond_without docs
%define oname mit-krb5

%define	major 3
%define	libname	%mklibname %{name}_ %{major}
%define	libk5crypto	%mklibname k5crypto %{major}

%define	support_major 0
%define	libnamesupport	%mklibname %{name}support %{support_major}

%define rad_major 0
%define libnamerad %mklibname krad %{rad_major}

%define	mit_major 12
%define	libkadm5clnt_mit	%mklibname kadm5clnt_mit %{mit_major}
%define	libkadm5srv_mit	%mklibname kadm5srv_mit %{mit_major}

%define	gssapi_major 2
%define	libgssapi_krb5	%mklibname gssapi_%{name}_ %{gssapi_major}

%define	gssrpc_major 4
%define	libgssrpc	%mklibname gssrpc %{gssrpc_major}

%define	kdb5_major 10
%define	libkdb5	%mklibname kdb5_ %{kdb5_major}

%define	ldap_major 1
%define	libkdb_ldap	%mklibname kdb_ldap %{ldap_major}

%define devname	%mklibname -d %{name}
# enable checking after compile
%define enable_check 0
%{?_with_check: %global %enable_check 1}

%define kerberos_localstatedir %{_var}/kerberos

# Distro-specific default value is defined in branding-configs package
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%define url_ver %(echo %{version}|cut -d. -f1,2)

%global optflags %{optflags} -I%{_includedir}/et
# autoreconf is enough
%define _disable_rebuild_configure 1

Summary:	The Kerberos network authentication system
Name:		krb5
Version:	1.19.4
Release:	1
License:	MIT
URL:		https://web.mit.edu/kerberos/
Group:		System/Libraries
Source0:	https://kerberos.org/dist/krb5/%{url_ver}/krb5-%{version}.tar.gz
Source2:	kprop.service
Source4:	kadmin.service
Source5:	krb5kdc.service
Source6:	krb5.conf
Source10:	kdc.conf
Source11:	kadm5.acl
Source19:	krb5kdc.sysconfig
Source20:	kadmin.sysconfig
Source24:	krb5-tex-pdf.sh
Source29:	ksu.pamd
Source30:	kerberos-iv.portreserve
Source31:	kerberos-adm.portreserve
Source32:	krb5_prop.portreserve
Source33:	krb5kdc.logrotate
Source34:	kadmind.logrotate
Source40:	%{name}.rpmlintrc

### Patches are fully synced with Fedora, except commented-out ones
# https://src.fedoraproject.org/rpms/krb5/tree/f35

Patch0: downstream-ksu-pam-integration.patch
Patch1: downstream-SELinux-integration.patch
# not needed, automagic detection of netlib works OK
#Patch3: downstream-netlib-and-dns.patch
Patch4: downstream-fix-debuginfo-with-y.tab.c.patch
# not needed in ROSA
#Patch5: downstream-Remove-3des-support.patch
# ROSA does not backport such things into OpenSSL 1.1
#Patch6: downstream-Use-backported-version-of-OpenSSL-3-KDF-i.patch
# no FIPS in ROSA
#Patch7: downstream-FIPS-with-PRNG-and-RADIUS-and-MD4.patch
Patch8: Add-APIs-for-marshalling-credentials.patch
Patch9: Add-hostname-canonicalization-helper-to-k5test.py.patch
Patch10: Support-host-based-GSS-initiator-names.patch
Patch11: Add-KCM_OP_GET_CRED_LIST-for-faster-iteration.patch
Patch12: Fix-KCM-flag-transmission-for-remove_cred.patch
Patch13: Make-KCM-iteration-fallback-work-with-sssd-kcm.patch
Patch14: Use-KCM_OP_RETRIEVE-in-KCM-client.patch
Patch15: Fix-KCM-retrieval-support-for-sssd.patch
Patch17: Move-some-dejagnu-kadmin-tests-to-Python-tests.patch
Patch18: Fix-some-principal-realm-canonicalization-cases.patch
Patch19: Allow-kinit-with-keytab-to-defer-canonicalization.patch
Patch20: Fix-kadmin-k-with-fallback-or-referral-realm.patch
# OpenSSL is 1.1 in rosa2021.1
#Patch21: Fix-softpkcs11-build-issues-with-openssl-3.0.patch
#Patch22: Remove-deprecated-OpenSSL-calls-from-softpkcs11.patch
#Patch23: Fix-k5tls-module-for-OpenSSL-3.patch
Patch24: Fix-leaks-on-error-in-kadm5-init-functions.patch
Patch25: Clean-up-context-after-failed-open-in-libkdb5.patch
Patch26: Use-asan-in-one-of-the-CI-builds.patch
Patch29: Clean-up-gssapi_krb5-ccache-name-functions.patch

# (from Fedora) Carry this locally until it's available in a packaged form
# TODO: it's needed only for tests, but we don't have tests
Source100:	noport.c

BuildRequires:	bison
%if %{enable_check}
BuildRequires:	dejagnu
%endif
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	systemd-units
%if %{with docs}
BuildRequires:	python3-sphinx
#BuildRequires:	texlive-latex-bin
%endif
BuildRequires:	keyutils-devel
%if %{without bootstrap}
BuildRequires:	openldap-devel
%endif
BuildRequires:	pam-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(com_err)
BuildRequires:	pkgconfig(libverto)
BuildRequires:	pkgconfig(lmdb)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(ss)

%description
Kerberos V5 is a trusted-third-party network authentication system,
which can improve your network's security by eliminating the insecure
practice of cleartext passwords.

%files -f %{oname}.lang
%license LICENSE
%doc README
%config(noreplace) %{_sysconfdir}/krb5.conf
%dir %{kerberos_localstatedir}
%dir %{_sysconfdir}/krb5.conf.d
%dir %{_libdir}/krb5
%dir %{_libdir}/krb5/plugins
%dir %{_libdir}/krb5/plugins/authdata
%dir %{_libdir}/krb5/plugins/kdb
%dir %{_libdir}/krb5/plugins/preauth
%dir %{_libdir}/krb5/plugins/tls
%{_libdir}/krb5/plugins/preauth/otp.so
%{_libdir}/krb5/plugins/preauth/test.so
%{_libdir}/krb5/plugins/preauth/spake.so
%{_libdir}/krb5/plugins/kdb/db2.so
%{_libdir}/krb5/plugins/kdb/klmdb.so
%{_libdir}/krb5/plugins/tls/k5tls.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The shared library used by Kerberos 5
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}
Conflicts:	%{_lib}krb53 < 1.12.2-9
Obsoletes:	%{_lib}krb53 < 1.12.2-9
# compat with FEdora/RH
Provides:	krb5-libs = %{EVRD}
Provides:	krb5-libs%{_isa} = %{EVRD}

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libkrb5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgssapi_krb5}
Summary:	The shared library used by Kerberos 5 - gssapi_krb5
Group:		System/Libraries
Conflicts:	%{_lib}krb53 < 1.12.2-9

%description -n %{libgssapi_krb5}
This package contains the shared library gssrpc for %{name}.

%files -n %{libgssapi_krb5}
%{_libdir}/libgssapi_krb5.so.%{gssapi_major}*

#----------------------------------------------------------------------------

%package -n %{libgssrpc}
Summary:	The shared library used by Kerberos 5 - gssrpc
Group:		System/Libraries
Conflicts:	%{_lib}krb53 < 1.12.2-9

%description -n %{libgssrpc}
This package contains the shared library gssrpc for %{name}.

%files -n %{libgssrpc}
%{_libdir}/libgssrpc.so.%{gssrpc_major}*

#----------------------------------------------------------------------------

%package -n %{libk5crypto}
Summary:	The shared library used by Kerberos 5 - k5crypto
Group:		System/Libraries
Conflicts:	%{_lib}krb53 < 1.12.2-9

%description -n %{libk5crypto}
This package contains the shared library k5crypto for %{name}.

%files -n %{libk5crypto}
%{_libdir}/libk5crypto.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamesupport}
Summary:	The shared library used by Kerberos 5 - krb5support
Group:		System/Libraries
Conflicts:	%{_lib}krb53 < 1.12.2-9

%description -n %{libnamesupport}
This package contains the shared library krb5support for %{name}.

%files -n %{libnamesupport}
%{_libdir}/libkrb5support.so.%{support_major}*

#----------------------------------------------------------------------------

%package -n %{libnamerad}
Summary:	The shared library used by Kerberos 5 - krad
Group:		System/Libraries

%description -n %{libnamerad}
This package contains the shared library krad for %{name}.

%files -n %{libnamerad}
%{_libdir}/libkrad.so.%{rad_major}*

#----------------------------------------------------------------------------

%package -n %{libkadm5clnt_mit}
Summary:	The shared library used by Kerberos 5 - kadm5clnt_mit
Group:		System/Libraries
Conflicts:	%{_lib}krb53 < 1.12.2-9
Obsoletes:	%{_lib}kadm5clnt_mit8 < 1.12.1

%description -n %{libkadm5clnt_mit}
This package contains the shared library kadm5clnt_mit for %{name}.

%files -n %{libkadm5clnt_mit}
%{_libdir}/libkadm5clnt_mit.so.%{mit_major}*

#----------------------------------------------------------------------------

%package -n %{libkadm5srv_mit}
Summary:	The shared library used by Kerberos 5 - kadm5srv_mit
Group:		System/Libraries
Conflicts:	%{_lib}krb53 < 1.12.2-9
Obsoletes:	%{_lib}kadm5srv_mit8 < 1.12.1

%description -n %{libkadm5srv_mit}
This package contains the shared library kadm5srv_mit for %{name}.

%files -n %{libkadm5srv_mit}
%{_libdir}/libkadm5srv_mit.so.%{mit_major}*

#----------------------------------------------------------------------------

%package -n %{libkdb5}
Summary:	The shared library used by Kerberos 5 - kdb5
Group:		System/Libraries
Conflicts:	%{_lib}krb53 < 1.12.2-9
Obsoletes:	%{_lib}kdb5_6 < 1.12.1

%description -n %{libkdb5}
This package contains the shared library kdb5 for %{name}.

%files -n %{libkdb5}
%{_libdir}/libkdb5.so.%{kdb5_major}*

#----------------------------------------------------------------------------
%if %{without bootstrap}

%package -n %{libkdb_ldap}
Summary:	The shared library used by Kerberos 5 - kdb_ldap
Group:		System/Libraries

%description -n %{libkdb_ldap}
This package contains the shared library kdb_ldap for %{name}.

%files -n %{libkdb_ldap}
%{_libdir}/libkdb_ldap.so.%{ldap_major}*

%endif #/without_bootstrap

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files needed for compiling Kerberos 5 programs
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libgssapi_krb5} = %{EVRD}
Requires:	%{libgssrpc} = %{EVRD}
Requires:	%{libnamesupport} = %{EVRD}
Requires:	%{libkadm5clnt_mit} = %{EVRD}
Requires:	%{libkadm5srv_mit} = %{EVRD}
Requires:	%{libkdb5} = %{EVRD}
Requires:	%{libnamerad} = %{EVRD}
# krb5-config prints -lcom_err
Requires:	pkgconfig(com_err)
%if %{without bootstrap}
Requires:	%{libkdb_ldap} = %{EVRD}
%endif
Provides:	krb5-devel = %{EVRD}

%description -n %{devname}
Kerberos is a network authentication system.  The krb5-devel package
contains the header files and libraries needed for compiling Kerberos
5 programs. If you want to develop Kerberos-aware programs, you'll
need to install this package.

%files -n %{devname}
%{_includedir}/*.h
%{_includedir}/gssapi
%{_includedir}/gssrpc
%{_includedir}/kadm5
%{_includedir}/krb5
%{_bindir}/krb5-config
%{_libdir}/libgssapi_krb5.so
%{_libdir}/libgssrpc.so
%{_libdir}/libk5crypto.so
%{_libdir}/libkadm5clnt.so
%{_libdir}/libkadm5clnt_mit.so
%{_libdir}/libkadm5srv.so
%{_libdir}/libkadm5srv_mit.so
%{_libdir}/libkdb5.so
%{_libdir}/libkrb5.so
%{_libdir}/libkrb5support.so
%{_libdir}/libkrad.so
%if %{without bootstrap}
%{_libdir}/libkdb_ldap.so
%endif
%{_mandir}/man1/krb5-config.1*
%{_docdir}/%{devname}/examples
%{_libdir}/pkgconfig/*

# Protocol test clients
%{_bindir}/sim_client
%{_bindir}/gss-client
%{_bindir}/uuclient

# Protocol test servers
%{_sbindir}/gss-server
%{_sbindir}/uuserver

#----------------------------------------------------------------------------

%package server
Summary:	The server programs for Kerberos 5
Group:		System/Servers
# we drop files in its directory, but we don't want to own that directory
Requires:	logrotate
# mktemp is used by krb5-send-pr
Requires:	mktemp
# portreserve is used by init scripts for kadmind, kpropd, and krb5kdc
Requires:	portreserve

%description server
Kerberos is a network authentication system.  The krb5-server package
contains the programs that must be installed on a Kerberos 5 server.
If you're installing a Kerberos 5 server, you need to install this
package (in other words, most people should NOT install this
package).

%files server
%if %{with docs}
#doc build-pdf/admin.pdf build-pdf/build.pdf
%endif
%{_unitdir}/krb5kdc.service
%{_unitdir}/kadmin.service
%{_unitdir}/kprop.service
%config(noreplace) %{_sysconfdir}/sysconfig/krb5kdc
%config(noreplace) %{_sysconfdir}/sysconfig/kadmin
%config(noreplace) %{_sysconfdir}/portreserve/kerberos-iv
%config(noreplace) %{_sysconfdir}/portreserve/kerberos-adm
%config(noreplace) %{_sysconfdir}/portreserve/krb5_prop
%config(noreplace) %{_sysconfdir}/logrotate.d/krb5kdc
%config(noreplace) %{_sysconfdir}/logrotate.d/kadmind
%dir /var/log/kerberos
%dir %{kerberos_localstatedir}/krb5kdc
%config(noreplace) %{kerberos_localstatedir}/krb5kdc/kdc.conf
%config(noreplace) %{kerberos_localstatedir}/krb5kdc/kadm5.acl
%{_mandir}/man5/kadm5.acl.5*
%{_mandir}/man5/kdc.conf.5*
%{_sbindir}/kadmin.local
%{_mandir}/man8/kadmin.local.8*
%{_sbindir}/kadmind
%{_mandir}/man8/kadmind.8*
%{_sbindir}/kdb5_util
%{_mandir}/man8/kdb5_util.8*
%{_sbindir}/kprop
%{_mandir}/man8/kprop.8*
%{_sbindir}/kpropd
%{_mandir}/man8/kpropd.8*
%{_sbindir}/kproplog
%{_mandir}/man8/kproplog.8*
%{_sbindir}/krb5kdc
%{_mandir}/man8/krb5kdc.8*
%{_sbindir}/sim_server
%{_bindir}/sclient
%{_mandir}/man1/sclient.1*
%{_sbindir}/sserver
%{_mandir}/man8/sserver.8*

%post server
%systemd_post krb5kdc.service kadmin.service kprop.service

%preun server
%systemd_preun krb5kdc.service kadmin.service kprop.service

%postun server
%systemd_postun_with_restart krb5kdc.service kadmin.service kprop.service

#----------------------------------------------------------------------------

%package server-ldap
Summary:	The LDAP storage plugin for the Kerberos 5 KDC
Group:		System/Servers
Requires:	%{name}-server = %{EVRD}

%description server-ldap
Kerberos is a network authentication system. The krb5-server package
contains the programs that must be installed on a Kerberos 5 key
distribution center (KDC). If you are installing a Kerberos 5 KDC,
and you wish to use a directory server to store the data for your
realm, you need to install this package. 

%files server-ldap
%doc src/plugins/kdb/ldap/libkdb_ldap/kerberos.ldif
%doc src/plugins/kdb/ldap/libkdb_ldap/kerberos.schema
%if %{without bootstrap}
%{_libdir}/krb5/plugins/kdb/kldap.so
%{_sbindir}/kdb5_ldap_util
%{_mandir}/man8/kdb5_ldap_util.8*
%endif

#----------------------------------------------------------------------------

%package workstation
Summary:	Kerberos 5 programs for use on workstations
Group:		System/Base
Provides:	kerberos-workstation

%description workstation
Kerberos is a network authentication system.  The krb5-workstation
package contains the basic Kerberos programs (kinit, klist, kdestroy,
kpasswd). If your network uses Kerberos, this package should be installed
on every workstation.

%files workstation
%doc src/config-files/services.append
%if %{with docs}
%doc build-html/*
#doc build-pdf/user.pdf build-pdf/basic.pdf
%endif
%attr(0755,root,root) %doc src/config-files/convert-config-files
%{_mandir}/man5/krb5.conf.5*
%{_mandir}/man7/kerberos.7*
%{_bindir}/kdestroy
%{_bindir}/kswitch
%{_mandir}/man1/kdestroy.1*
%{_mandir}/man1/kswitch.1*
%{_bindir}/kinit
%{_mandir}/man5/.k5identity.5*
%{_mandir}/man5/.k5login.5*
%{_mandir}/man1/kinit.1*
%{_bindir}/klist
%{_mandir}/man1/klist.1*
%{_bindir}/kpasswd
%{_mandir}/man1/kpasswd.1*
%{_bindir}/kvno
%{_mandir}/man1/kvno.1*
%{_bindir}/kadmin
%{_mandir}/man1/kadmin.1*
%{_bindir}/k5srvutil
%{_mandir}/man1/k5srvutil.1*
%{_bindir}/ktutil
%{_mandir}/man1/ktutil.1*
%{_mandir}/man5/k5identity.5.*
%{_mandir}/man5/k5login.5.*
%attr(4755,root,root) %{_bindir}/ksu
%{_mandir}/man1/ksu.1*
%config(noreplace) /etc/pam.d/ksu
# Problem-reporting tool
%{_sbindir}/krb5-send-pr

#----------------------------------------------------------------------------

%package pkinit-openssl
Summary:	The PKINIT module for Kerberos 5
Group:		System/Libraries
Provides:	krb5-pkinit = %{version}

%description pkinit-openssl
Kerberos is a network authentication system. The krb5-pkinit-openssl
package contains the PKINIT plugin, which uses OpenSSL to allow clients
to obtain initial credentials from a KDC using a private key and a
certificate.

%files pkinit-openssl
%{_libdir}/krb5/plugins/preauth/pkinit.so

#----------------------------------------------------------------------------

%package -n	openldap-schemas-%{name}
Summary:	OpenLDAP schema files from MIT Kerberos 5 source tree
Group:		Databases
BuildArch:	noarch
Requires(pre):	openldap-config

%description -n	openldap-schemas-%{name}
OpenLDAP schema files from MIT Kerberos 5 source tree

%files -n	openldap-schemas-%{name}
%config(noreplace) %{_sysconfdir}/openldap/schema/*
%attr(750,ldap,ldap) %config(noreplace) %{_sysconfdir}/openldap/slapd.d/%{name}.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

ln -s NOTICE LICENSE

%build

pushd src
autoreconf -fiv
%configure \
	SS_LIB="-lss" \
	--enable-shared \
	--localstatedir=%{kerberos_localstatedir} \
	--enable-dns-for-realm \
	--enable-pkinit \
	--with-system-verto \
	--without-tcl \
	--with-system-et \
	--with-system-ss \
	--disable-static \
	--disable-rpath \
%if %{with selinux}
	--with-selinux \
%endif
%if %{without bootstrap}
	--with-ldap \
%endif
	--with-pam \
	--

# Ensure that DNS lookups of KDC have been enabled (they will be lost if
# add '--with-netlib=-lresolve' to configure params without downstream-netlib-and-dns.patch)
grep -E 'KRB5_DNS.*1' config.status

%make
popd

%if %{with docs}
# (From Fedora) Build the docs
make -C src/doc paths.py version.py
cp src/doc/paths.py doc/
mkdir -p build-man build-html
sphinx-build -a -b man   -t pathsubs doc build-man
sphinx-build -a -b html  -t pathsubs doc build-html
rm -fr build-html/_sources
%endif

# (from Fedora) We need to cut off any access to locally-running nameservers, too
%{__cc} -fPIC -shared -o noport.so -Wall -Wextra %{SOURCE100}

%check
# Run the test suite.  Won't run in the build system because /dev/pts is
# not available for telnet tests and so on.
# make check TMPDIR=%{_tmppath}

%install

# Sample KDC config files (bundled kdc.conf and kadm5.acl).
install -d %{buildroot}%{kerberos_localstatedir}/krb5kdc
install -m0644 %{SOURCE10} %{buildroot}%{kerberos_localstatedir}/krb5kdc/kdc.conf
install -m0600 %{SOURCE11} %{buildroot}%{kerberos_localstatedir}/krb5kdc/kadm5.acl

# Default configuration file for everything.
install -d %{buildroot}%{_sysconfdir}
install -m0644 %{SOURCE6} %{buildroot}%{_sysconfdir}/krb5.conf
install -d %{buildroot}%{_sysconfdir}/krb5.conf.d

# Server init scripts (krb5kdc,kadmind,kpropd) and their sysconfig files.
install -d %{buildroot}%{_unitdir}
for init in \
    %{SOURCE5} \
    %{SOURCE4} \
    %{SOURCE2} ; do
    install -m0644 ${init} %{buildroot}%{_unitdir}
done

install -d %{buildroot}%{_sysconfdir}/sysconfig
for sysconfig in \
    %{SOURCE19} \
    %{SOURCE20} ; do
    install -m0644 ${sysconfig} \
    %{buildroot}%{_sysconfdir}/sysconfig/`basename ${sysconfig} .sysconfig`
done

# portreserve configuration files.
install -d %{buildroot}%{_sysconfdir}/portreserve
for portreserve in \
    %{SOURCE30} \
    %{SOURCE31} \
    %{SOURCE32} ; do
    install -m0644 ${portreserve} \
    %{buildroot}/%{_sysconfdir}/portreserve/`basename ${portreserve} .portreserve`
done

# logrotate configuration files
install -d %{buildroot}%{_sysconfdir}/logrotate.d
for logrotate in \
    %{SOURCE33} \
    %{SOURCE34} ; do
    install -m0644 ${logrotate} \
    %{buildroot}%{_sysconfdir}/logrotate.d/`basename ${logrotate} .logrotate`
done

# PAM configuration files.
install -d %{buildroot}%{_sysconfdir}/pam.d/
for pam in \
    %{SOURCE29} ; do
    install -m0644 ${pam} \
    %{buildroot}/%{_sysconfdir}/pam.d/`basename ${pam} .pamd`
done

# Plug-in directories.
install -d %{buildroot}%{_libdir}/krb5/plugins/preauth
install -d %{buildroot}%{_libdir}/krb5/plugins/kdb
install -d %{buildroot}%{_libdir}/krb5/plugins/authdata

# The rest of the binaries, headers, libraries, and docs.
make -C src \
    DESTDIR=%{buildroot} \
    EXAMPLEDIR=%{_docdir}/%{devname}/examples\
    install

# logdir
install -d %{buildroot}/var/log/kerberos

# clear the LDFLAGS
perl -pi -e "s|^LDFLAGS.*|LDFLAGS=''|g" %{buildroot}%{_bindir}/krb5-config


%if %{with docs}
# Install processed man pages.
for section in 1 5 8; do
	install -m 644 build-man/*.$section %{buildroot}%{_mandir}/man$section/
done
%endif

%if %{with bootstrap}
rm -f %{buildroot}%{_mandir}/man8/kdb5_ldap_util.8*
%endif

# Prepare schema files to be included into OpenLDAP configuration
mkdir -p %{buildroot}%{_sysconfdir}/openldap/{schema,slapd.d}
install -m 0644 src/plugins/kdb/ldap/libkdb\_ldap/kerberos.{ldif,schema} %{buildroot}%{_sysconfdir}/openldap/schema/
cat > %{buildroot}%{_sysconfdir}/openldap/slapd.d/%{name}.conf <<EOF
# If you need krb5 support load this file or copy
# uncommented lines below to your slapd.conf.

include %{_sysconfdir}/openldap/schema/kerberos.schema

EOF

# find-debuginfo.sh does not find 4755, only 0755, %%attr will set 4755
# https://bugzilla.redhat.com/show_bug.cgi?id=2034101
chmod 0755 %{buildroot}%{_bindir}/ksu

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13856 |21mr|krb5-appl-1.0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# For consistency with regular login.
%global login_pam_service remote

Summary:	Kerberos-aware versions of telnet, ftp, rsh, and rlogin
Name:		krb5-appl
Version:	1.0.3
Release:	11
License:	MIT
Url:		http://web.mit.edu/kerberos/www/
Group:		System/Servers
# Maybe we should explode from the now-available-to-everybody tarball instead?
# http://web.mit.edu/kerberos/dist/krb5-appl/1.0/krb5-appl-1.0-signed.tar
Source0:	krb5-appl-%{version}.tar.gz
Source1:	krb5-appl-%{version}.tar.gz.asc
Source12:	krsh
Source13:	krlogin
Source14:	eklogin.xinetd
Source15:	klogin.xinetd
Source16:	kshell.xinetd
Source17:	krb5-telnet.xinetd
Source18:	gssftp.xinetd
Source22:	ekrb5-telnet.xinetd
Source125:	krb5-appl-1.0-manpaths.txt
Source26:	gssftp.pamd
Source27:	kshell.pamd
Source28:	ekshell.pamd
Patch0:		krb5-appl-1.0-fix-format-errors.patch
Patch3:		krb5-1.3-netkit-rsh.patch
Patch4:		krb5-appl-1.0-rlogind-environ.patch
Patch11:	krb5-1.2.1-passive.patch
Patch14:	krb5-1.3-ftp-glob.patch
Patch33:	krb5-appl-1.0-io.patch
Patch36:	krb5-1.7-rcp-markus.patch
Patch40:	krb5-1.4.1-telnet-environ.patch
Patch57:	krb5-appl-1.0-login_chdir.patch
Patch72:	krb5-1.6.3-ftp_fdleak.patch
Patch73:	krb5-1.6.3-ftp_glob_runique.patch
Patch79:	krb5-trunk-ftp_mget_case.patch
Patch88:	krb5-1.7-sizeof.patch
Patch89:	krb5-appl-1.0.2-largefile.patch
Patch160:	krb5-appl-1.0.2-pam.patch
Patch161:	krb5-appl-1.0.2-manpaths.patch
Patch162:	krb5-appl-1.0.3-fix-typedef.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	texinfo
BuildRequires:	krb5-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(ncurses)

%description
This package contains Kerberos-aware versions of the telnet, ftp, rcp, rsh,
and rlogin clients and servers.  While these have been replaced by tools
such as OpenSSH in most environments, they remain in use in others.

#----------------------------------------------------------------------------

%package clients
Summary:	Kerberos-aware telnet, ftp, rcp, rsh and rlogin clients
Group:		Networking/Remote access
# transition with previous package
%rename		telnet-client-krb5
%rename		ftp-client-krb5
# multiple alternatives
Provides:	telnet-client
Conflicts:	netkit-telnet
Conflicts:	heimdal-telnet

%description clients
This package contains Kerberos-aware versions of the telnet, ftp, rcp, rsh,
and rlogin clients.  While these have been replaced by tools such as OpenSSH
in most environments, they remain in use in others.

%files clients
%doc README NOTICE LICENSE
# Used by both clients and servers.
%{_bindir}/rcp
%{_mandir}/man1/rcp.1*
# Client network bits.
%{_bindir}/ftp
%{_mandir}/man1/ftp.1*
%{_bindir}/krlogin
%{_bindir}/rlogin
%{_mandir}/man1/rlogin.1*
%{_bindir}/krsh
%{_bindir}/rsh
%{_mandir}/man1/rsh.1*
%{_bindir}/telnet
%{_mandir}/man1/telnet.1*
%{_mandir}/man1/tmac.doc*

#----------------------------------------------------------------------------

%package servers
Summary:	Kerberos-aware telnet, ftp, rcp, rsh and rlogin servers
Group:		System/Servers
Requires:	xinetd
Requires(post):	/sbin/service
Requires(post):	xinetd
# transition with previous package
%rename		telnet-server-krb5
%rename		ftp-server-krb5
# multiple alternatives
Provides:	telnet-server
Conflicts:	netkit-telnet-server
Conflicts:	heimdal-telnetd

%description servers
This package contains Kerberos-aware versions of the telnet, ftp, rcp, rsh,
and rlogin servers.  While these have been replaced by tools such as OpenSSH
in most environments, they remain in use in others.

%files servers
%doc README NOTICE LICENSE
%docdir %{_mandir}
# Used by both clients and servers.
# %{_bindir}/rcp
# %{_mandir}/man1/rcp.1*
%config(noreplace) %{_sysconfdir}/xinetd.d/*
%config(noreplace) %{_sysconfdir}/pam.d/kshell
%config(noreplace) %{_sysconfdir}/pam.d/ekshell
%config(noreplace) %{_sysconfdir}/pam.d/gssftp
# Login is used by telnetd and klogind.
%{_sbindir}/login.krb5
%{_mandir}/man8/login.krb5.8*
# Application servers.
%{_sbindir}/ftpd
%{_mandir}/man8/ftpd.8*
%{_sbindir}/klogind
%{_mandir}/man8/klogind.8*
%{_sbindir}/kshd
%{_mandir}/man8/kshd.8*
%{_sbindir}/telnetd
%{_mandir}/man8/telnetd.8*

%post servers
/sbin/service xinetd reload > /dev/null 2>&1 || :
exit 0

%postun servers
/sbin/service xinetd reload > /dev/null 2>&1 || :
exit 0

#----------------------------------------------------------------------------

%prep
%setup -q
ln -s NOTICE LICENSE

%patch0 -p1 -b .format
%patch160 -p1 -b .pam
%patch161 -p1 -b .manpaths
%patch162 -p1 -b .typedef
%patch3  -p3 -b .netkit-rsh
%patch4  -p1 -b .rlogind-environ
%patch11 -p3 -b .passive
%patch14 -p3 -b .ftp-glob
%patch33 -p1 -b .io
%patch36 -p3 -b .rcp-markus
%patch40 -p3 -b .telnet-environ
%patch57 -p1 -b .login_chdir
%patch72 -p3 -b .ftp_fdleak
%patch73 -p3 -b .ftp_glob_runique
%patch79 -p2 -b .ftp_mget_case
%patch88 -p3 -b .sizeof
%patch89 -p1 -b .largefile

# Rename the man pages so that they'll get generated correctly.  Uses the
# "krb5-appl-1.0-manpaths.txt" source file.
cat %{SOURCE125} | while read manpage ; do
	mv "$manpage" "$manpage".in
done

# Rebuild the configure scripts.
autoheader
autoconf

%build
# Build everything position-independent.
INCLUDES=-I%{_includedir}/et
CFLAGS="`echo $RPM_OPT_FLAGS $DEFINES $INCLUDES -fPIE -fno-strict-aliasing`"
LDFLAGS="-pie"
%configure \
	CFLAGS="$CFLAGS" \
	LDFLAGS="$LDFLAGS" \
	--with-pam \
	--with-pam-login-service=%{login_pam_service}
%make

%install
# Shell scripts wrappers for Kerberized rsh and rlogin (source files).
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE12} %{buildroot}%{_bindir}
install -m 755 %{SOURCE13} %{buildroot}%{_bindir}

# Xinetd configuration files.
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d/
for xinetd in \
	%{SOURCE14} \
	%{SOURCE15} \
	%{SOURCE16} \
	%{SOURCE17} \
	%{SOURCE18} \
	%{SOURCE22} ; do
	install -pm 644 ${xinetd} \
	%{buildroot}%{_sysconfdir}/xinetd.d/`basename ${xinetd} .xinetd`
done

# PAM configuration files.
mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
for pam in \
	%{SOURCE26} \
	%{SOURCE27} \
	%{SOURCE28} ; do
	install -pm 644 ${pam} \
	%{buildroot}%{_sysconfdir}/pam.d/`basename ${pam} .pamd`
done

%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13857 |21mr|krb5-ticket-watcher-1.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _default_patch_fuzz 2

Summary:	A tray applet for watching, renewing, and reinitializing Kerberos tickets
Name:		krb5-ticket-watcher
Version:	1.0.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Other
# http://git.altlinux.org/gears/k/krb5-ticket-watcher.git
Url:		http://sourceforge.net/projects/krb5ticketwatch
Source0:	%{name}-%{version}.tar
Patch0:		krb5-ticket-watcher-1.0.3-sfmt.patch
Patch1:		0001-made-default-realm-the-first-one-in-list.patch
Patch2:		krb5-ticket-watcher-1.0-alt-date-fix.patch
Patch3:		krb5-ticket-watcher-1.0.3-alt-fix-includes.patch
Patch4:		krb5-ticket-watcher-1.0.3-alt-fix-desktop-category.patch
Patch5:		alt-qt5-1.patch
Patch6:		alt-tray-icon.patch
Patch7:		alt-wait-for-tray.patch
Patch9:		alt-password-dialog-ontop.patch
Patch10:	krb5-ticket-watcher-add-pw-exp-notif.patch
Patch11:	fix-deprecated-krb5-api-meth.patch
BuildRequires:	desktop-file-utils
BuildRequires:	cmake
BuildRequires:	krb5-devel
BuildRequires:	keyutils-devel
BuildRequires:	pkgconfig(com_err)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
A tray applet for watching, renewing, and reinitializing Kerberos tickets.

%files -f %{name}.lang
%doc COPYING Changes News TODO
%{_bindir}/krb5-ticket-watcher
%{_datadir}/pixmaps/krb5-ticket-watcher.png
%{_datadir}/applications/krb5-ticket-watcher.desktop
%{_sysconfdir}/xdg/autostart/krb5-ticket-watcher.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p2
%patch2 -p1
%patch3 -p2
%patch4 -p2
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1

%build
%cmake

%install
%makeinstall_std -C build
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/krb5-ticket-watcher.desktop
desktop-file-install --dir %{buildroot}/%{_sysconfdir}/xdg/autostart \
	%{buildroot}/%{_datadir}/applications/krb5-ticket-watcher.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13858 |21mr|krdc-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Remote Desktop Client
Name:		krdc
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		krdc-desktop.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	freerdp
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libvncserver)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(libssh2)
Requires:	freerdp

%description
KDE Remote Desktop Client is a client application that allows you to view
or even control the desktop session on another machine that is running a
compatible server. VNC and RDP are supported.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.krdc.desktop
%{_kde5_bindir}/krdc
%{_kde5_datadir}/config.kcfg/krdc.kcfg
%{_kde5_datadir}/kio/servicemenus/smb2rdc.desktop
%{_appdatadir}/org.kde.krdc.appdata.xml
%{_qt5_plugindir}/krdc/kcms/libkcm_krdc_rdpplugin.so
%{_qt5_plugindir}/krdc/kcms/libkcm_krdc_vncplugin.so
%{_qt5_plugindir}/krdc/libkrdc_rdpplugin.so
%{_qt5_plugindir}/krdc/libkrdc_testplugin.so
%{_qt5_plugindir}/krdc/libkrdc_vncplugin.so
%{_kde5_datadir}/qlogging-categories5/krdc.categories

#----------------------------------------------------------------------------

%define krdccore_major 5
%define libkrdccore %mklibname krdccore %{krdccore_major}

%package -n %{libkrdccore}
Summary:	Shared library for KRDC
Group:		System/Libraries

%description -n %{libkrdccore}
Shared library for KRDC.

%files -n %{libkrdccore}
%{_kde5_libdir}/libkrdccore.so.%{krdccore_major}
%{_kde5_libdir}/libkrdccore.so.%{version}

#----------------------------------------------------------------------------

%define devkrdccore %mklibname krdccore -d

%package -n %{devkrdccore}
Summary:	Development for KRDC
Group:		Development/KDE and Qt
Requires:	%{libkrdccore} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkrdccore}
This package contains header files needed if you want to build applications
based on KRDC.

%files -n %{devkrdccore}
%{_kde5_includedir}/krdc
%{_kde5_includedir}/krdccore_export.h
%{_kde5_libdir}/libkrdccore.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13859 |21mr|kreport-3.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# remove requres not provived in pkg, use cmake provides
%global __requires_exclude pkgconfig\\(KF5GuiAddons\\)|pkgconfig\\(KF5WidgetsAddons\\)|pkgconfig\\(KPropertyCore\\)|pkgconfig\\(KPropertyWidgets\\)


Summary:	KDE framework for the creation and generation of reports in multiple formats
Name:		kreport
Version:	3.2.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://mirror.yandex.ru/mirrors/ftp.kde.org/stable/kreport/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(KPropertyWidgets3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE framework for the creation and generation of reports in multiple formats.

%files -f %{name}.lang
%dir %{_kde5_datadir}/kreport3/
%{_kde5_datadir}/kreport3/*
%{_kde5_servicetypes}/kreport_elementplugin.desktop
%{_qt5_plugindir}/kreport3/org.kde.kreport.barcode.so
%{_qt5_plugindir}/kreport3/org.kde.kreport.web.so

#----------------------------------------------------------------------------

%define kreport3_major 4
%define libkreport3 %mklibname kreport3_ %{kreport3_major}

%package -n %{libkreport3}
Summary:	KDE reports shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkreport3}
KDE reports shared library.

%files -n %{libkreport3}
%{_kde5_libdir}/libKReport3.so.%{kreport3_major}*

#----------------------------------------------------------------------------

%define devkreport %mklibname kreport -d

%package -n %{devkreport}
Summary:	Development files for KDE reports module
Group:		Development/KDE and Qt
Requires:	%{libkreport3} = %{EVRD}
Requires:	cmake(KF5GuiAddons)
Requires:	cmake(KF5WidgetsAddons)
Requires:	cmake(KPropertyCore)
Requires:	cmake(KPropertyWidgets)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkreport}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkreport}
%{_kde5_includedir}/KReport3
%{_kde5_libdir}/cmake/KReport3
%{_kde5_libdir}/pkgconfig/KReport3.pc
%{_kde5_libdir}/libKReport3.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13860 |21mr|kreversi-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Old reversi board game, also known as othello
Name:		kreversi
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kreversi/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KReversi is a simple one player strategy game played against the computer.

If a player's piece is captured by an opposing player, that piece is turned
over to reveal the color of that player. A winner is declared when one player
has more pieces of his own color on the board and there are no more possible
moves.

%files -f %{name}.lang
%{_kde5_bindir}/kreversi
%{_kde5_applicationsdir}/org.kde.kreversi.desktop
%{_kde5_datadir}/kreversi
%{_kde5_iconsdir}/hicolor/*/apps/kreversi.*
%{_kde5_iconsdir}/hicolor/*/actions/lastmoves.*
%{_kde5_iconsdir}/hicolor/*/actions/legalmoves.*
%{_kde5_notificationsdir}/kreversi.notifyrc
%{_appdatadir}/org.kde.kreversi.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13861 |21mr|krfb-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Remote Desktop Server
Name:		krfb
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
#Patch0:		krfb-menuentry.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	jpeg-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5pipewire-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kwayland-server-devel
BuildRequires:	pkgconfig(libvncclient)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	qt5-wayland-client
BuildRequires:	qt5-wayland-compositor

%description
KDE Desktop Sharing is a server application that allows you to share your
current session with a user on another machine, who can use a VNC client
to view or even control the desktop.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.krfb.desktop
%{_kde5_applicationsdir}/org.kde.krfb.virtualmonitor.desktop
%{_kde5_bindir}/krfb
%{_kde5_bindir}/krfb-virtualmonitor
%{_kde5_datadir}/krfb
%{_kde5_iconsdir}/hicolor/*/apps/krfb.*
%{_qt5_plugindir}/krfb/events/x11.so
%{_qt5_plugindir}/krfb/events/xdp.so
%{_qt5_plugindir}/krfb/framebuffer/pw.so
%{_qt5_plugindir}/krfb/framebuffer/qt.so
%{_qt5_plugindir}/krfb/framebuffer/xcb.so
%{_appdatadir}/org.kde.krfb.appdata.xml
%{_kde5_datadir}/qlogging-categories5/krfb.categories

#----------------------------------------------------------------------------

%define krfbprivate_major 5
%define libkrfbprivate %mklibname krfbprivate %{krfbprivate_major}

%package -n %{libkrfbprivate}
Summary:	KRFB shared library
Group:		System/Libraries

%description -n %{libkrfbprivate}
KRFB shared library.

%files -n %{libkrfbprivate}
%{_kde5_libdir}/libkrfbprivate.so.%{krfbprivate_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13862 |21mr|krita-5.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _python_bytecompile_errors_terminate_build 0

%define __requires_exclude 'devel.*'

# sip plugin disabled, cmdline syntax in python-sip v.6 changed.
# enable sip support after fix this in krita source.
%bcond_without sip

%define major 18

Summary:	KDE Sketching and painting program
Name:		krita
Version:	5.1.3
Release:	2
Epoch:		17
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://krita.org
Source0:	https://download.kde.org/stable/krita/%{version}/%{name}-%{version}.tar.xz
# The krita plugin requires a patched version of gmic
Source1: https://files.kde.org/krita/build/dependencies/gmic-3.1.6.1-patched.tar.gz
Source1000:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	giflib-devel
BuildRequires:	gomp-devel
BuildRequires:	jpeg-static-devel
BuildRequires:	quazip1-qt5-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
%ifnarch %{armx}
BuildRequires:	vc-devel
%endif
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libopenjpeg1)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libraw_r)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(OpenColorIO)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(zlib)
%if %{with sip}
BuildRequires:	python3-sip
BuildRequires:	python3-sip-qt5
BuildRequires:	python3-qt5
%endif
Requires: python3-qt5-xml
# now build fail on x32
ExcludeArch:	%{ix86}

%description
Krita offers an end–to–end solution for creating digital painting files
from scratch by masters. It supports concept art, creation of comics
and textures for rendering.

%files -f %{name}.lang
%{_kde5_applicationsdir}/krita_*.desktop
%{_kde5_applicationsdir}/org.kde.krita.desktop
%{_kde5_bindir}/krita
%{_kde5_bindir}/krita_version
%dir %{_kde5_datadir}/color/icc/krita/
%{_kde5_datadir}/color/icc/krita/*
%{_kde5_datadir}/color-schemes/Krita*.colors
%{_kde5_datadir}/gmic
%dir %{_kde5_datadir}/krita/
%{_kde5_datadir}/krita/*
%dir %{_kde5_datadir}/kritaplugins/
%{_kde5_datadir}/kritaplugins/*
%{_kde5_iconsdir}/hicolor/*/apps/krita.*
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-krita.*
%dir %{_kde5_libdir}/kritaplugins/
%{_kde5_libdir}/kritaplugins/*.so
%{_kde5_sysconfdir}/xdg/kritarc
%{_appdatadir}/org.kde.krita.appdata.xml
%{_kde5_libdir}/qt5/qml/org/krita/*
%if %{with sip}
%{_kde5_bindir}/kritarunner
%{_kde5_libdir}/krita-python-libs/*
%endif
#--------------------------------------------------------------------

%define kritabasicflakes_major %{major}
%define libkritabasicflakes %mklibname kritabasicflakes %{kritabasicflakes_major}

%package -n %{libkritabasicflakes}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritabasicflakes}
Krita shared library.

%files -n %{libkritabasicflakes}
%{_kde5_libdir}/libkritabasicflakes.so.%{kritabasicflakes_major}*

#--------------------------------------------------------------------

%define kritacolor_major %{major}
%define libkritacolor %mklibname kritacolor %{kritacolor_major}

%package -n %{libkritacolor}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritacolor}
Krita shared library.

%files -n %{libkritacolor}
%{_kde5_libdir}/libkritacolor.so.%{kritacolor_major}*

#--------------------------------------------------------------------

%define kritacolord_major %{major}
%define libkritacolord %mklibname kritacolord %{kritacolord_major}

%package -n %{libkritacolord}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritacolord}
Krita shared library.

%files -n %{libkritacolord}
%{_kde5_libdir}/libkritacolord.so.%{kritacolord_major}*

#--------------------------------------------------------------------

%define kritaflake_major %{major}
%define libkritaflake %mklibname kritaflake %{kritaflake_major}

%package -n %{libkritaflake}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaflake}
Krita shared library.

%files -n %{libkritaflake}
%{_kde5_libdir}/libkritaflake.so.%{kritaflake_major}*

#--------------------------------------------------------------------

%define kritaglobal_major %{major}
%define libkritaglobal %mklibname kritaglobal %{kritaglobal_major}

%package -n %{libkritaglobal}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaglobal}
Krita shared library.

%files -n %{libkritaglobal}
%{_kde5_libdir}/libkritaglobal.so.%{kritaglobal_major}*

#--------------------------------------------------------------------

%define kritaimage_major %{major}
%define libkritaimage %mklibname kritaimage %{kritaimage_major}

%package -n %{libkritaimage}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaimage}
Krita shared library.

%files -n %{libkritaimage}
%{_kde5_libdir}/libkritaimage.so.%{kritaimage_major}*

#--------------------------------------------------------------------

%define kritalibbrush_major %{major}
%define libkritalibbrush %mklibname kritalibbrush %{kritalibbrush_major}

%package -n %{libkritalibbrush}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritalibbrush}
Krita shared library.

%files -n %{libkritalibbrush}
%{_kde5_libdir}/libkritalibbrush.so.%{kritalibbrush_major}*

#--------------------------------------------------------------------

%define kritalibpaintop_major %{major}
%define libkritalibpaintop %mklibname kritalibpaintop %{kritalibpaintop_major}

%package -n %{libkritalibpaintop}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritalibpaintop}
Krita shared library.

%files -n %{libkritalibpaintop}
%{_kde5_libdir}/libkritalibpaintop.so.%{kritalibpaintop_major}*

#--------------------------------------------------------------------

%define kritametadata_major %{major}
%define libkritametadata %mklibname kritametadata %{kritametadata_major}

%package -n %{libkritametadata}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritametadata}
Krita shared library.

%files -n %{libkritametadata}
%{_kde5_libdir}/libkritametadata.so.%{kritametadata_major}*

#--------------------------------------------------------------------

%define kritaqmicinterface_major %{major}
%define libkritaqmicinterface %mklibname kritaqmicinterface %{kritaqmicinterface_major}

%package -n %{libkritaqmicinterface}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaqmicinterface}
Krita shared library.

%files -n %{libkritaqmicinterface}
%{_kde5_libdir}/libkritaqmicinterface.so.%{kritaqmicinterface_major}*

#--------------------------------------------------------------------

%define kritapigment_major %{major}
%define libkritapigment %mklibname kritapigment %{kritapigment_major}

%package -n %{libkritapigment}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritapigment}
Krita shared library.

%files -n %{libkritapigment}
%{_kde5_libdir}/libkritapigment.so.%{kritapigment_major}*

#--------------------------------------------------------------------

%define kritaplugin_major %{major}
%define libkritaplugin %mklibname kritaplugin %{kritaplugin_major}

%package -n %{libkritaplugin}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaplugin}
Krita shared library.

%files -n %{libkritaplugin}
%{_kde5_libdir}/libkritaplugin.so.%{kritaplugin_major}*

#--------------------------------------------------------------------

%define kritapsd_major %{major}
%define libkritapsd %mklibname kritapsd %{kritapsd_major}

%package -n %{libkritapsd}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritapsd}
Krita shared library.

%files -n %{libkritapsd}
%{_kde5_libdir}/libkritapsd.so.%{kritapsd_major}*

#--------------------------------------------------------------------

%define kritaresources_major %{major}
%define libkritaresources %mklibname kritaresources %{kritaresources_major}

%package -n %{libkritaresources}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaresources}
Krita shared library.

%files -n %{libkritaresources}
%{_kde5_libdir}/libkritaresources.so.%{kritaresources_major}*

#--------------------------------------------------------------------

%define kritaresourcewidgets_major %{major}
%define libkritaresourcewidgets %mklibname kritaresourcewidgets %{kritaresourcewidgets_major}

%package -n %{libkritaresourcewidgets}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaresourcewidgets}
Krita shared library.

%files -n %{libkritaresourcewidgets}
%{_kde5_libdir}/libkritaresourcewidgets.so.%{kritaresourcewidgets_major}*

#--------------------------------------------------------------------

%define kritastore_major %{major}
%define libkritastore %mklibname kritastore %{kritastore_major}

%package -n %{libkritastore}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritastore}
Krita shared library.

%files -n %{libkritastore}
%{_kde5_libdir}/libkritastore.so.%{kritastore_major}*

#--------------------------------------------------------------------

%define kritaui_major %{major}
%define libkritaui %mklibname kritaui %{kritaui_major}

%package -n %{libkritaui}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaui}
Krita shared library.

%files -n %{libkritaui}
%{_kde5_libdir}/libkritaui.so.%{kritaui_major}*

#--------------------------------------------------------------------

%define kritaversion_major %{major}
%define libkritaversion %mklibname kritaversion %{kritaversion_major}

%package -n %{libkritaversion}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaversion}
Krita shared library.

%files -n %{libkritaversion}
%{_kde5_libdir}/libkritaversion.so.%{kritaversion_major}*

#--------------------------------------------------------------------

%define kritawidgets_major %{major}
%define libkritawidgets %mklibname kritawidgets %{kritawidgets_major}

%package -n %{libkritawidgets}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritawidgets}
Krita shared library.

%files -n %{libkritawidgets}
%{_kde5_libdir}/libkritawidgets.so.%{kritawidgets_major}*

#--------------------------------------------------------------------

%define kritawidgetutils_major %{major}
%define libkritawidgetutils %mklibname kritawidgetutils %{kritawidgetutils_major}

%package -n %{libkritawidgetutils}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritawidgetutils}
Krita shared library.

%files -n %{libkritawidgetutils}
%{_kde5_libdir}/libkritawidgetutils.so.%{kritawidgetutils_major}*

#----------------------------------------------------------------------------

%define kritacommand_major %{major}
%define libkritacommand %mklibname kritacommand %{kritacommand_major}

%package -n %{libkritacommand}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritacommand}
Krita shared library.

%files -n %{libkritacommand}
%{_kde5_libdir}/libkritacommand.so.%{kritacommand_major}*

#----------------------------------------------------------------------------

%define kritaimpex_major %{major}
%define libkritaimpex %mklibname kritaimpex %{kritaimpex_major}

%package -n %{libkritaimpex}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaimpex}
Krita shared library.

%files -n %{libkritaimpex}
%{_kde5_libdir}/libkritaimpex.so.%{kritaimpex_major}*

#----------------------------------------------------------------------------

%define kritalibkis_major %{major}
%define libkritalibkis %mklibname kritalibkis %{kritalibkis_major}

%package -n %{libkritalibkis}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritalibkis}
Krita shared library.

%files -n %{libkritalibkis}
%{_kde5_libdir}/libkritalibkis.so.%{kritalibkis_major}*

#----------------------------------------------------------------------------

%define kritalibkra_major %{major}
%define libkritalibkra %mklibname kritalibkra %{kritalibkra_major}

%package -n %{libkritalibkra}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritalibkra}
Krita shared library.

%files -n %{libkritalibkra}
%{_kde5_libdir}/libkritalibkra.so.%{kritalibkra_major}*

#----------------------------------------------------------------------------

%define kritaqml_major %{major}
%define libkritaqml %mklibname kritaqml %{kritaqml_major}

%package -n %{libkritaqml}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritaqml}
Krita shared library.

%files -n %{libkritaqml}
%{_kde5_libdir}/libkritaqml.so.%{kritaqml_major}*

#----------------------------------------------------------------------------

%define kritapsdutils_major %{major}
%define libkritapsdutils %mklibname kritapsdutils %{kritapsdutils_major}

%package -n %{libkritapsdutils}
Summary:	Krita shared library
Group:		System/Libraries

%description -n %{libkritapsdutils}
Krita shared library.

%files -n %{libkritapsdutils}
%{_kde5_libdir}/libkritapsdutils.so.%{kritapsdutils_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake_kde5 \
	-DUSE_QT_XCB:BOOL=TRUE \
	-DENABLE_BSYMBOLICFUNCTIONS:BOOL=TRUE
%ifarch %{arm} %{armx}
export CXXFLAGS="%{optflags} -DHAS_ONLY_OPENGL_ES"
%endif
%make

%install
%makeinstall_std -C build

# Not very nice to do additional builds here, but
# the gmic plugin requires a krita installation in
# a buildroot to locate headers etc.
mkdir build-plugins
cd build-plugins
cmake \
	-DCMAKE_INSTALL_PREFIX=%{_prefix} \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=TRUE \
	-DEXTERNALS_DOWNLOAD_DIR=%{_sourcedir} \
	-DINSTALL_ROOT=%{buildroot}%{_prefix} \
	../3rdparty_plugins
%make
cd -

# We get those from breeze...
rm -f %{buildroot}%{_datadir}/color-schemes/Breeze*.colors
# This isn't an AppImage, so we don't need the update dummy
rm -f %{buildroot}%{_bindir}/AppImageUpdateDummy
# Don't package development libraries as there are no headers
rm -rf %{buildroot}%{_kde5_libdir}/libkritabasicflakes.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritacolor.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritacolord.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaflake.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaglobal.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaimage.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritalibbrush.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritalibpaintop.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritametadata.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaqmicinterface.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritapigment.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaplugin.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritapsd.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritastore.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaresources.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaresourcewidgets.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaui.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaversion.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritawidgets.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritawidgetutils.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritacommand.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaimpex.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritalibkis.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritalibkra.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritaqml.so
rm -rf %{buildroot}%{_kde5_libdir}/libkritapsdutils.so
rm -rf %{buildroot}%{_kde5_includedir}/*.h

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13863 |21mr|kronosnet-1.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libnozzle %mklibname nozzle %{major}
%define devnozzle %mklibname nozzle -d
%define libknet %mklibname knet %{major}
%define devknet %mklibname knet -d

Summary:	Multipoint-to-Multipoint VPN daemon
Name:		kronosnet
Version:	1.25
Release:	1
License:	LGPLv2+
Group:		System/Servers
Url:		https://kronosnet.org
Source0:	https://kronosnet.org/releases/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	bzip2-devel
BuildRequires:	pam-devel
BuildRequires:	sctp-devel
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libqb)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
The kronosnet daemon is a bridge between kronosnet switching engine and kernel
network tap devices, to create and administer a distributed LAN over
multipoint-to-multipoint VPNs. The daemon does a poor attempt to provide
a configure UI similar to other known network devices/tools (Cisco, quagga).
Beside looking horrific, it allows runtime changes and reconfiguration of
the kronosnet(s) without daemon reload or service disruption.

#------------------------------------------------------------------

%package -n %{libknet}
Summary:	Kronosnet core switching implementation
Group:		System/Libraries

%description -n %{libknet}
The whole kronosnet core is implemented in this library.

Please refer to the not-yet-existing documentation for further information.

%files -n %{libknet}
%doc COPYING.* COPYRIGHT
%{_libdir}/libknet.so.%{major}*
%dir %{_libdir}/kronosnet

#------------------------------------------------------------------

%package -n %{devknet}
Summary:	Kronosnet core switching implementation (developer files)
Group:		Development/Other
Requires:	%{libknet} = %{EVRD}
Provides:	libknet1-devel = %{EVRD}

%description -n %{devknet}
The whole kronosnet core is implemented in this library.

Please refer to the not-yet-existing documentation for further information.

%files -n %{devknet}
%doc COPYING.* COPYRIGHT
%{_libdir}/libknet.so
%{_includedir}/libknet.h
%{_libdir}/pkgconfig/libknet.pc
%{_mandir}/man3/knet*.3.*

#------------------------------------------------------------------

%package -n %{libnozzle}
Summary:	Simple userland wrapper around kernel tap devices
Group:		System/Libraries

%description -n %{libnozzle}
This is an over-engineered commodity library to manage a pool of tap devices
and provides the basic pre-up.d/up.d/down.d/post-down.d infrastructure.

%files -n %{libnozzle}
%doc COPYING.* COPYRIGHT
%{_libdir}/libnozzle.so.%{major}*

#------------------------------------------------------------------

%package -n %{devnozzle}
Summary:	Simple userland wrapper around kernel tap devices
Group:		Development/Other
Requires:	%{libnozzle} = %{EVRD}
Provides:	libnozzle1-devel = %{EVRD}

%description -n %{devnozzle}
This is an over-engineered commodity library to manage a pool of tap devices
and provides the basic pre-up.d/up.d/down.d/post-down.d infrastructure.

%files -n %{devnozzle}
%doc COPYING.* COPYRIGHT
%{_libdir}/libnozzle.so
%{_includedir}/libnozzle.h
%{_libdir}/pkgconfig/libnozzle.pc
%{_mandir}/man3/nozzle*.3.*

#------------------------------------------------------------------

%package -n libknet1-compress-bzip2-plugin
Summary:	Provides libknet1 bzip2 support
Group:		System/Libraries
Requires:	%{libknet} = %{EVRD}

%description -n libknet1-compress-bzip2-plugin
Provides bzip2 compression support for libknet1.

%files -n libknet1-compress-bzip2-plugin
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/compress_bzip2.so


#------------------------------------------------------------------

%package -n libknet1-compress-lz4-plugin
Summary:	Provides libknet1 lz4 and lz4hc support
Group:		System/Libraries
Requires:	%{libknet} = %{EVRD}

%description -n libknet1-compress-lz4-plugin
Provides lz4 and lz4hc compression support for libknet1.

%files -n libknet1-compress-lz4-plugin
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/compress_lz4.so
%{_libdir}/kronosnet/compress_lz4hc.so

#------------------------------------------------------------------

%package -n libknet1-compress-lzma-plugin
Summary:	Provides libknet1 lzma support
Group:		System/Libraries
Requires:	%{libknet} = %{EVRD}

%description -n libknet1-compress-lzma-plugin
Provides lzma compression support for libknet1.

%files -n libknet1-compress-lzma-plugin
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/compress_lzma.so

#------------------------------------------------------------------

%package -n libknet1-compress-lzo2-plugin
Summary:	Provides libknet1 lzo2 support
Group:		System/Libraries
Requires:	%{libknet} = %{EVRD}

%description -n libknet1-compress-lzo2-plugin
Provides lzo2 compression support for libknet1.

%files -n libknet1-compress-lzo2-plugin
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/compress_lzo2.so

#------------------------------------------------------------------

%package -n libknet1-compress-zlib-plugin
Summary:	Provides libknet1 zlib support
Group:		System/Libraries
Requires:	%{libknet} = %{EVRD}

%description -n libknet1-compress-zlib-plugin
Provides zlib compression support for libknet1.

%files -n libknet1-compress-zlib-plugin
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/compress_zlib.so

#------------------------------------------------------------------

%package -n libknet1-compress-zstd-plugin
Summary:	Provides libknet1 zstd support
Group:		System/Libraries
Requires:	%{libknet} = %{EVRD}

%description -n libknet1-compress-zstd-plugin
Provides zstd compression support for libknet1.

%files -n libknet1-compress-zstd-plugin
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/compress_zstd.so

#------------------------------------------------------------------

%package -n libknet1-compress-plugins-all
Summary:	Provides libknet1 compress plugins meta package
Group:		System/Libraries
Requires:	libknet1-compress-bzip2-plugin = %{EVRD}
Requires:	libknet1-compress-lz4-plugin = %{EVRD}
Requires:	libknet1-compress-lzma-plugin = %{EVRD}
Requires:	libknet1-compress-lzo2-plugin = %{EVRD}
Requires:	libknet1-compress-zlib-plugin = %{EVRD}
Requires:	libknet1-compress-zstd-plugin = %{EVRD}

%description -n libknet1-compress-plugins-all
Meta package to install all of libknet1 compress plugins.

%files -n libknet1-compress-plugins-all
%doc ChangeLog COPYING.* COPYRIGHT README README.licence

#------------------------------------------------------------------

%package -n libknet1-crypto-nss-plugin
Summary:	Provides libknet1 nss support
Group:		System/Libraries
Requires:	%{libknet} = %{EVRD}

%description -n libknet1-crypto-nss-plugin
Provides NSS crypto support for libknet1.

%files -n libknet1-crypto-nss-plugin
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/crypto_nss.so

#------------------------------------------------------------------

%package -n libknet1-crypto-openssl-plugin
Summary:	Provides libknet1 openssl support
Group:		System/Libraries
Requires:	%{libknet} = %{EVRD}

%description -n libknet1-crypto-openssl-plugin
Provides OpenSSL crypto support for libknet1.

%files -n libknet1-crypto-openssl-plugin
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/crypto_openssl.so

#------------------------------------------------------------------

%package -n libknet1-crypto-plugins-all
Summary:	Provides libknet1 crypto plugins meta package
Group:		System/Libraries
Requires:	libknet1-crypto-nss-plugin = %{EVRD}
Requires:	libknet1-crypto-openssl-plugin = %{EVRD}

%description -n libknet1-crypto-plugins-all
Meta package to install all of libknet1 crypto plugins.

%files -n libknet1-crypto-plugins-all
%doc ChangeLog COPYING.* COPYRIGHT README README.licence

#------------------------------------------------------------------

%package -n libknet1-plugins-all
Summary:	Provides libknet1 plugins meta package
Group:		System/Libraries
Requires:	libknet1-compress-plugins-all = %{EVRD}
Requires:	libknet1-crypto-plugins-all = %{EVRD}

%description -n libknet1-plugins-all
Meta package to install all of libknet1 plugins.

%files -n libknet1-plugins-all
%doc ChangeLog COPYING.* COPYRIGHT README README.licence

#------------------------------------------------------------------

%package -n kronosnet-tests
Summary:	Provides kronosnet test suite
Group:		System/Servers
Requires:	%{libknet} = %{EVRD}

%description -n kronosnet-tests
This package contains all the libknet and libnozzle test suite.

%files -n kronosnet-tests
%doc COPYING.* COPYRIGHT
%{_libdir}/kronosnet/tests/*

#------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
# kronosnetd is broken
# https://github.com/kronosnet/kronosnet/issues/228
%configure \
	--enable-install-tests \
	--enable-man \
	--enable-libknet-sctp \
	--enable-crypto-nss \
	--enable-crypto-openssl \
	--enable-compress-zlib \
	--enable-compress-lz4 \
	--enable-compress-lzo2 \
	--enable-compress-lzma \
	--enable-compress-bzip2 \
	--enable-compress-zstd \
	--disable-kronosnetd \
	--enable-libnozzle \
	--with-initdefaultdir=%{_sysconfdir}/sysconfig/ \
	--with-systemddir=%{_unitdir}
%make

%install
%makeinstall_std

find %{buildroot} -name "*.a" -delete
rm -rf %{buildroot}%{_defaultdocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13864 |21mr|kross-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 multi-language application scripting module
Name:		kross
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kcompletion-devel = %{version}
BuildRequires:	kcoreaddons-devel = %{version}
BuildRequires:	kdoctools-devel = %{version}
BuildRequires:	ki18n-devel = %{version}
BuildRequires:	kiconthemes-devel = %{version}
BuildRequires:	kio-devel = %{version}
BuildRequires:	kparts-devel = %{version}
BuildRequires:	kservice-devel = %{version}
BuildRequires:	kwidgetsaddons-devel = %{version}
BuildRequires:	kxmlgui-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 multi-language application scripting module.

Kross is a scripting bridge to embed scripting functionality into an
application. It supports QtScript as a scripting interpreter backend.

%files
%{_kde5_bindir}/kf5kross
%{_kde5_mandir}/man1/kf5kross.1*
%{_qt5_plugindir}/*.so
%{_qt5_plugindir}/script/*.so

#----------------------------------------------------------------------------

%package i18n
Summary:	Kross translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Kross translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5krosscore_major 5
%define libkf5krosscore %mklibname kf5krosscore %{kf5krosscore_major}

%package -n %{libkf5krosscore}
Summary:	KDE Frameworks 5 multi-language application scripting shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5krosscore}
KDE Frameworks 5 multi-language application scripting shared library.

%files -n %{libkf5krosscore}
%{_kde5_libdir}/libKF5KrossCore.so.%{kf5krosscore_major}*

#----------------------------------------------------------------------------

%define kf5krossui_major 5
%define libkf5krossui %mklibname kf5krossui %{kf5krossui_major}

%package -n %{libkf5krossui}
Summary:	KDE Frameworks 5 multi-language application scripting shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5krossui}
KDE Frameworks 5 multi-language application scripting shared library.

%files -n %{libkf5krossui}
%{_kde5_libdir}/libKF5KrossUi.so.%{kf5krossui_major}*

#----------------------------------------------------------------------------

%define devkf5kross %mklibname kf5kross -d

%package -n %{devkf5kross}
Summary:	Development files for KDE Frameworks 5 application scripting module
Group:		Development/KDE and Qt
Requires:	%{libkf5krosscore} = %{EVRD}
Requires:	%{libkf5krossui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kross-devel = %{version}

%description -n %{devkf5kross}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5kross}
%{_kde5_includedir}/KF5/KrossCore
%{_kde5_includedir}/KF5/KrossUi
%{_kde5_includedir}/KF5/kross_version.h
%{_kde5_libdir}/cmake/KF5Kross
%{_kde5_libdir}/libKF5KrossCore.so
%{_kde5_libdir}/libKF5KrossUi.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13865 |21mr|kross-interpreters-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without ruby

Summary:	KDE bindings to non-C++ languages
Name:		kross-interpreters
Version:	23.08.4
Release:	2
Epoch:		1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/kde/kdebindings/kross-interpreters
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5kross-devel
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
%if %{with ruby}
BuildRequires:	pkgconfig(ruby)
%endif

%description
Language interpreters to enable in-process scripting with Kross.

#----------------------------------------------------------------------------

%package python
Summary:	Python Kross interpreter
Group:		Graphical desktop/KDE

%description python
Python Kross interpreter.

%files python
%{_qt5_plugindir}/krosspython.so

#----------------------------------------------------------------------------

%if %{with ruby}
%package ruby
Summary:	Ruby Kross interpreter
Group:		Graphical desktop/KDE

%description ruby
Ruby Kross interpreter.

%files ruby
%{_qt5_plugindir}/krossruby.so
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13866 |21mr|kruler-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Screen Ruler
Name:		kruler
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/graphics/kruler
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)

%description
KRuler displays on screen a ruler measuring pixels.
Features :
    - Integrated color picker
    - Change the length of the ruler
    - Change the orientation of the ruler
    - Change the color, transparency and font of the ruler

%files -f %{name}.lang
%{_datadir}/applications/org.kde.kruler.desktop
%{_kde5_bindir}/kruler
%{_kde5_datadir}/kruler
%{_kde5_iconsdir}/*/*/*/kruler*
%{_kde5_notificationsdir}/kruler.notifyrc
%{_appdatadir}/org.kde.kruler.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# make desktop file easily available on other DEs
mkdir -p %{buildroot}%{_datadir}/applications
mv -v %{buildroot}%{_kde5_applicationsdir}/*.desktop %{buildroot}%{_datadir}/applications
rmdir %{buildroot}%{_kde5_applicationsdir}

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13867 |21mr|krunner-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 parallelized query system module
Name:		krunner
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(libKActivities)

%description
KDE Frameworks 5 parallelized query system module.

The Plasma workspace provides an application called KRunner which, among other
things, allows one to type into a text area which causes various actions and
information that match the text appear as the text is being typed.

%files
%{_kde5_datadir}/qlogging-categories5/krunner.categories
%{_kde5_datadir}/qlogging-categories5/krunner.renamecategories
%{_kde5_servicetypes}/plasma-runner.desktop

#----------------------------------------------------------------------------

%define qmlkf5krunner %mklibname kf5krunner-qml

%package -n %{qmlkf5krunner}
Summary:	QML plugin for KDE Frameworks 5 KRunner
Group:		System/Libraries
Provides:	kf5krunner-qml = %{EVRD}

%description -n %{qmlkf5krunner}
QML plugin for KDE Frameworks 5 KRunner.

%files -n %{qmlkf5krunner}
%dir %{_kde5_qmldir}/org/kde/runnermodel/
%{_kde5_qmldir}/org/kde/runnermodel/*

#----------------------------------------------------------------------------

%define kf5runner_major 5
%define libkf5runner %mklibname kf5runner %{kf5runner_major}

%package -n %{libkf5runner}
Summary:	KDE Frameworks 5 parallelized query system shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{qmlkf5krunner} = %{EVRD}

%description -n %{libkf5runner}
KDE Frameworks 5 parallelized query system shared library.

%files -n %{libkf5runner}
%{_kde5_libdir}/libKF5Runner.so.%{kf5runner_major}*

#----------------------------------------------------------------------------

%define devkf5runner %mklibname kf5runner -d

%package -n %{devkf5runner}
Summary:	Development files for KDE Frameworks 5 parallelized query system module
Group:		Development/KDE and Qt
Requires:	%{libkf5runner} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5runner-devel = %{version}

%description -n %{devkf5runner}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5runner}
%{_kde5_datadir}/kdevappwizard/templates/runner.tar.*
%{_kde5_datadir}/kdevappwizard/templates/runnerpython.tar.*
%{_kde5_includedir}/KF5/KRunner
%{_kde5_libdir}/cmake/KF5Runner
%{_kde5_libdir}/libKF5Runner.so
%{_kde5_mkspecsdir}/*.pri
%{_datadir}/dbus-1/interfaces/kf5_org.kde.krunner1.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13868 |21mr|krusader-2.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced KDE twin-panel file-manager
Name:		krusader
Version:	2.8.0
Release:	1
Epoch:		3
License:	GPLv2+
Group:		File tools
URL:		http://krusader.sourceforge.net/
Source0:    http://download.kde.org/stable/krusader/%{version}/%{name}-%{version}.tar.xz
Source1:    krusader-2.8.0_ru.tar.gz
Patch0:     krusader-desktop_root_action.patch
BuildRequires:  extra-cmake-modules
BuildRequires:  kde5-macros
BuildRequires:  kf5archive-devel
BuildRequires:  kf5bookmarks-devel
BuildRequires:  kf5codecs-devel
BuildRequires:  kf5completion-devel
BuildRequires:  kf5coreaddons-devel
BuildRequires:  kf5config-devel
BuildRequires:  kf5doctools-devel
BuildRequires:  kf5guiaddons-devel
BuildRequires:  kf5i18n-devel
BuildRequires:  kf5iconthemes-devel
BuildRequires:  kf5itemviews-devel
BuildRequires:  kf5kio-devel
BuildRequires:  kf5notifications-devel
BuildRequires:  kf5parts-devel
BuildRequires:  kf5solid-devel
BuildRequires:  kf5textwidgets-devel
BuildRequires:  kf5wallet-devel
BuildRequires:  kf5widgetsaddons-devel
BuildRequires:  kf5windowsystem-devel
BuildRequires:  kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:  ktexteditor


%description
Krusader is an advanced twin panel (commander style) file manager
for KDE and other desktops in the *nix world, similar to Midnight or
Total Commander. It provides all the file management features you
could possibly want.

Plus: extensive archive handling, mounted filesystem support, FTP,
advanced search module, an internal viewer/editor, directory
synchronisation, file content comparisons, powerful batch renaming
and much much more. It supports a wide variety of archive formats
and can handle other KIO slaves such as smb or fish.

%files -f krusader.lang
%doc README AUTHORS ChangeLog TODO
%{_kde5_bindir}/krusader
%{_kde5_applicationsdir}/org.kde.krusader.desktop
%{_kde5_datadir}/krusader/icons/hicolor/*
%{_kde5_iconsdir}/hicolor/*/apps/krusader*.png
%{_qt5_plugindir}/kf5/kio/*.so
%{_kde5_datadir}/krusader/layout.xml
%{_kde5_datadir}/krusader/midnight_commander.color
%{_kde5_datadir}/krusader/splash.png
%{_kde5_datadir}/krusader/total_commander.color
%{_kde5_datadir}/krusader/total_commander.keymap
%{_kde5_datadir}/krusader/total_commander.keymap.info
%{_kde5_datadir}/krusader/useraction_examples.xml
%{_kde5_datadir}/kxmlgui5/krusader/*.rc
%{_kde5_docdir}/HTML/*/krusader/*
%{_sysconfdir}/xdg/kio_isorc
%{_kde5_mandir}/man1/krusader.1.xz
%{_appdatadir}/org.kde.krusader.appdata.xml

#--------------------------------------------------------------------

%package root
Summary:	Root mode for krusader
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description root
Root mode for krusader.

%files root
%{_kde5_applicationsdir}/org.kde.krusader.root-mode.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

pushd po/ru
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13869 |21mr|kryo-3.0.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          kryo
Version:       3.0.3
Release:       8
Summary:       Object graph serialization framework for Java
# ASL: src/com/esotericsoftware/kryo/util/IdentityMap.java src/com/esotericsoftware/kryo/util/IntMap.java
License:       ASL 2.0 and BSD
Url:           https://github.com/EsotericSoftware/kryo
Source0:       https://github.com/EsotericSoftware/kryo/archive/%{name}-parent-%{version}.tar.gz
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(com.esotericsoftware:minlog)
BuildRequires: mvn(com.esotericsoftware:reflectasm)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.objenesis:objenesis)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
Group:         Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Kryo is a fast and efficient object graph serialization framework for Java.
The goals of the project are speed, efficiency, and an easy to use API.
The project is useful any time objects need to be persisted, whether to a
file, database, or over the network.

Kryo can also perform automatic deep and shallow copying/cloning.
This is direct copying from object to object, not object->bytes->object.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-parent-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -delete

# Do not shaded reflectasm
%pom_disable_module pom-shaded.xml

%pom_remove_plugin :maven-assembly-plugin pom-main.xml
%pom_remove_plugin :clirr-maven-plugin pom-main.xml

%pom_remove_plugin :maven-bundle-plugin pom-main.xml
%pom_add_plugin org.apache.felix:maven-bundle-plugin pom-main.xml "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Import-Package>sun.reflect;resolution:=optional,*</Import-Package>
    <Export-Package>com.esotericsoftware.kryo.*</Export-Package>
  </instructions>
</configuration>"

# remove shaded deps
%pom_xpath_remove "pom:dependency[pom:classifier = 'shaded']"

cp -p %{SOURCE1} .
sed -i 's/\r//' license.txt LICENSE-2.0.txt

%mvn_file :%{name} %{name}
%mvn_alias :%{name} "com.esotericsoftware.%{name}:%{name}"

%build

# Test on arm builder fails, see RHBZ#991712
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.md README.md
%license license.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license license.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13870 |21mr|ksanecore-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define stable %([ "`echo %{version} |cut -d. -f3`" -ge 80 ] && echo -n un; echo -n stable)

Summary:	A library for dealing with scanners
Name:		ksanecore
Version:	23.08.4
Release:	1
Group:		System/Libraries
License:	GPLv2
Url:		http://www.kde.org
Source0:	http://download.kde.org/%{stable}/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	sane-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)

%description
LibKSane is a KDE interface for SANE library to control flat scanner.

#------------------------------------------------

%package -n %{libname}
Summary:	A library for dealing with scanners
Group:		System/Libraries

%description -n %{libname}
LibKSane is a KDE interface for SANE library to control flat scanners.

%files -n %{libname} -f ksanecore.lang
%{_libdir}/libKSaneCore.so.1*
%{_libdir}/libKSaneCore.so.%(echo %{version} |cut -d. -f1)*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel stuff for %{name}
Group:		Development/KDE and Qt
Requires:	sane-devel
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5sanecore-devel = %{EVRD}

%description  -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files  -n %{devname}
%{_includedir}/KSaneCore
%{_libdir}/libKSaneCore.so
%{_libdir}/cmake/KSaneCore

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang ksanecore

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13871 |21mr|kscreenlocker-5.27.11-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 screen locker
Name:		kscreenlocker
Version:	5.27.11
Release:	12
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Patch1:		pamauthenticator.c.patch
Patch2:		autoswitch-to-dm-feature.patch
# Upstream patches from KDE 6.
# https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/193
# https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/150
# https://invent.kde.org/plasma/kscreenlocker/-/merge_requests/228
Patch101:	0001-Handle-the-worst-case-scenario-the-fallback-greeter-.patch
Patch102:	0002-Prevent-finishing-greeter-by-unhandled-signals.patch
Patch103:	0003-ksldapp-don-t-wait-for-the-screen-locker-process-to-.patch
BuildRequires:	wayland-tools
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(kscreen2) >= %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	layershellqt-devel

%description
Plasma 5 screen locker.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kcm_screenlocker.desktop
%{_kde5_datadir}/kconf_update/kscreenlocker.upd
%{_kde5_datadir}/kconf_update/ksreenlocker_5_3_separate_autologin.pl
%{_kde5_datadir}/ksmserver/screenlocker/org.kde.passworddialog/
%{_kde5_datadir}/qlogging-categories5/kscreenlocker.categories
%{_kde5_libexecdir}/kscreenlocker_greet
%{_kde5_notificationsdir}/ksmserver.notifyrc
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_screenlocker.so
%{_kde5_datadir}/kpackage/kcms/kcm_screenlocker/contents/ui/Appearance.qml
%{_kde5_datadir}/kpackage/kcms/kcm_screenlocker/contents/ui/LnfConfig.qml
%{_kde5_datadir}/kpackage/kcms/kcm_screenlocker/contents/ui/WallpaperConfig.qml
%{_kde5_datadir}/kpackage/kcms/kcm_screenlocker/contents/ui/main.qml

#----------------------------------------------------------------------------

%define kscreenlocker_major 5
%define libkscreenlocker %mklibname kscreenlocker %{kscreenlocker_major}

%package -n %{libkscreenlocker}
Summary:	Plasma 5 screen locker shared library
Group:		System/Libraries

%description -n %{libkscreenlocker}
Plasma 5 screen locker shared library.

%files -n %{libkscreenlocker}
%{_kde5_libdir}/libKScreenLocker.so.%{kscreenlocker_major}*

#----------------------------------------------------------------------------

%define devkscreenlocker %mklibname kscreenlocker -d

%package -n %{devkscreenlocker}
Summary:	Development files for Plasma 5 screen locker library
Group:		Development/KDE and Qt
Requires:	%{libkscreenlocker} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}plasma5-workspace-devel < 5.5

%description -n %{devkscreenlocker}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkscreenlocker}
%{_kde5_includedir}/KScreenLocker
%{_kde5_libdir}/cmake/KScreenLocker
%{_kde5_libdir}/cmake/ScreenSaverDBusInterface
%{_kde5_libdir}/libKScreenLocker.so
%{_datadir}/dbus-1/interfaces/kf5_org.freedesktop.ScreenSaver.xml
%{_datadir}/dbus-1/interfaces/org.kde.screensaver.xml

#----------------------------------------------------------------------------

%package switch-to-dm
Summary:	Switch to display manager (greeter) when screen is locked

%description switch-to-dm
Switch to display manager (greeter) when screen is locked
to log in back via DM instead of kscreenlocker.
Useful when e.g. 2FA is used and only GDM works well with smartcards.

%files switch-to-dm
%{_environmentdir}/10-kscreenlocker-switch-to-dm.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# autoswitch-to-dm-feature.patch
mkdir -p %{buildroot}%{_environmentdir}
cat > %{buildroot}%{_environmentdir}/10-kscreenlocker-switch-to-dm.conf << 'EOF'
KSCREENLOCKER_SWITCHUSER=1
KSCREENLOCKER_FORCE_NEW_SESSION=1
EOF

%find_lang kscreenlocker kscreenlocker_greet kcm_screenlocker %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13872 |21mr|kservice-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 advanced plugin and service introspection module
Name:		kservice
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Patch0:		kservice-5.50.0-kde-menu.patch
BuildRequires:	bison
BuildRequires:	extra-cmake-modules
BuildRequires:	flex
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5crash-devel = %{version}
BuildRequires:	kf5dbusaddons-devel = %{version}
BuildRequires:	kf5doctools-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 advanced plugin and service introspection module.

%files
%{_kde5_bindir}/kbuildsycoca5
%{_kde5_datadir}/qlogging-categories5/kservice.categories
%{_kde5_datadir}/qlogging-categories5/kservice.renamecategories
%{_kde5_mandir}/man8/desktoptojson.8*
%{_kde5_mandir}/man8/kbuildsycoca5.8*
%{_kde5_servicetypes}/application.desktop
%{_kde5_servicetypes}/kplugininfo.desktop
# Never used (we use /etc/xdg/menus/kde-applications.menu) but let's keep it
%{_kde5_sysconfdir}/xdg/kde5/menus/kde-applications.menu

#----------------------------------------------------------------------------

%package i18n
Summary:	KService translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KService translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5service_major 5
%define libkf5service %mklibname kf5service %{kf5service_major}

%package -n %{libkf5service}
Summary:	KDE Frameworks 5 plugin and service introspection shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5service}
KDE Frameworks 5 plugin and service introspection shared library.

%files -n %{libkf5service}
%{_kde5_libdir}/libKF5Service.so.%{kf5service_major}*

#----------------------------------------------------------------------------

%define devkf5service %mklibname kf5service -d

%package -n %{devkf5service}
Summary:	Development files for KDE Frameworks 5 plugin and service introspection module
Group:		Development/KDE and Qt
Requires:	%{libkf5service} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5service-devel = %{version}

%description -n %{devkf5service}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5service}
%{_kde5_includedir}/KF5/KService
%{_kde5_libdir}/cmake/KF5Service
%{_kde5_libdir}/libKF5Service.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13873 |21mr|kshisen-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Patience game where you take away all pieces
Name:		kshisen
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=kshisen
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kmahjongglib-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KShisen is a solitaire-like game played using the standard set of Mahjong
tiles. Unlike Mahjong however, KShisen has only one layer of scrambled tiles.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kshisen.desktop
%{_kde5_bindir}/kshisen
%{_kde5_datadir}/qlogging-categories5/kshisen.categories
%{_kde5_datadir}/config.kcfg/kshisen.kcfg
%{_kde5_datadir}/sounds/kshisen
%{_kde5_iconsdir}/hicolor/*/apps/kshisen*
%{_appdatadir}/org.kde.kshisen.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13874 |21mr|kshutdown-5.91-0.beta1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#########################
%define build_git 1
##########################
%define	oname		KShutdown

Name:		kshutdown
Version:	5.91
%if %{build_git}
%define	prerel		beta
Release:	0.%{prerel}1
%else
Release:	1
%endif
Summary:	Advanced shut down utility for KDE
License:	GPLv2+
Group:		Graphical desktop/KDE
URL:		http://kshutdown.sourceforge.net/
%if %{build_git}
Source0:	http://sourceforge.net/projects/%{name}/files/%{oname}/3.0%20Beta%207/%{name}-source-%{version}-%{prerel}.zip
%else
Source0:	http://sourceforge.net/projects/%{name}/files/%{oname}/%{version}/%{name}-source-%{version}.zip
%endif
Source1:    kshutdown-5.91-ru.tar.gz
Patch0:     kshutdown-desktop.patch
BuildRequires:	desktop-file-utils
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets) 
BuildRequires:	pkgconfig(Qt5Xml)

%description
KShutDown is an advanced shut down utility for KDE.
Features:
- Shut Down (logout and halt the system)
- Reboot (logout and reboot the system)
- Lock Screen (lock the screen using a screen saver)
- Logout (end the session and logout the user)
- Extras (user commands)
- Wizard
- Time and delay options
- Command line support
- System tray
- Sounds
- Kiosk support
- And more...

%files -f %{name}.lang
%doc TODO ChangeLog README.html
%{_kde5_bindir}/%{name}
%{_kde5_notificationsdir}/%{name}.notifyrc
%{_kde5_applicationsdir}/%{name}.desktop
%{_kde5_iconsdir}/hicolor/*/*/%{name}.*

#------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-%{prerel}
%patch0 -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5 -DKS_KF5=true
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13875 |21mr|ksirk-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Computerized version of a well known strategy board game
Name:		ksirk
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/ksirk/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)

%description
KsirK is a computerized version of the well known strategic board game Risk.
The goal of the game is simply to conquer the world by attacking your neighbors
with your armies.

Features:
- Support for 1-6 human or computer (AI) players
- Multi-player gaming over a network
- You can easily create new skins with SVG graphics and the skin editor
- Hot New Stuff support. You can easily download and install new skins

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.ksirk.desktop
%{_kde5_applicationsdir}/org.kde.ksirkskineditor.desktop
%{_kde5_bindir}/ksirk
%{_kde5_bindir}/ksirkskineditor
%{_kde5_datadir}/config.kcfg/ksirk*settings.kcfg
%{_kde5_datadir}/ksirk*
%{_kde5_datadir}/knsrcfiles/ksirk.knsrc
%{_kde5_datadir}/qlogging-categories5/ksirk.categories
%{_kde5_iconsdir}/*/*/apps/ksirk.*
%{_kde5_xmlguidir}/ksirk/ksirkui.rc
%{_kde5_xmlguidir}/ksirkskineditor/ksirkskineditorui.rc
%{_appdatadir}/org.kde.ksirk.appdata.xml
#------------------------------------------------------------------------------

%define iris_ksirk_major 2
%define libiris_ksirk %mklibname iris_ksirk %{iris_ksirk_major}

%package -n %{libiris_ksirk}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libiris_ksirk}
Shared library for %{name}.

%files -n %{libiris_ksirk}
%{_kde5_libdir}/libiris_ksirk.so.%{iris_ksirk_major}*

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} ksirkskineditor %{name}.lang --with-kde --with-html


# We don't need it for now
rm -f %{buildroot}%{_kde5_libdir}/libiris_ksirk.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13876 |21mr|ksmtp-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Frameworks 5 SMTP module
Name:		ksmtp
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5mime-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 SMTP module.

%files
%{_kde5_datadir}/qlogging-categories5/ksmtp.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 SMTP library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 SMTP library translations.

%files i18n -f libksmtp5.lang

#----------------------------------------------------------------------------

%define kpimsmtp_major 5
%define libkpimsmtp %mklibname kpimsmtp %{kpimsmtp_major}

%package -n %{libkpimsmtp}
Summary:	KDE Frameworks 5 SMTP shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkpimsmtp}
KDE Frameworks 5 SMTP shared library.

%files -n %{libkpimsmtp}
%{_kde5_libdir}/libKPim5SMTP.so.%{kpimsmtp_major}*

#----------------------------------------------------------------------------

%define devkpimsmtp %mklibname kpimsmtp -d

%package -n %{devkpimsmtp}
Summary:	Development files for KDE Frameworks 5 SMTP module
Group:		Development/KDE and Qt
Requires:	%{libkpimsmtp} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kpimsmtp-devel = %{version}

%description -n %{devkpimsmtp}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkpimsmtp}
%{_kde5_includedir}/KPim5/KSMTP
%{_kde5_libdir}/cmake/KPim5SMTP
%{_kde5_libdir}/libKPim5SMTP.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libksmtp5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13877 |21mr|ksnakeduel-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Snake race played against the computer
Name:		ksnakeduel
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/ksnakeduel/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	kdesnake = %{EVRD}
Provides:	ksnake = %{EVRD}
Obsoletes:	ktron < 1:16.12

%description
KSnakeDuel is a fast action game where you steer a snake which has to eat
food. While eating the snake grows. But once a player collides with the
other snake or the wall the game is lost. This becomes of course more and
more difficult the longer the snakes grow.

%files -f %{name}.lang
%{_kde5_bindir}/ksnakeduel
%{_kde5_applicationsdir}/org.kde.ksnakeduel.desktop
%{_kde5_datadir}/config.kcfg/ksnakeduel.kcfg
%{_kde5_datadir}/ksnakeduel
%{_kde5_datadir}/knsrcfiles/ksnakeduel.knsrc
%{_kde5_datadir}/qlogging-categories5/ksnakeduel.categories
%{_kde5_iconsdir}/hicolor/*/*/ksnakeduel.*
%{_appdatadir}/org.kde.ksnakeduel.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13878 |21mr|kspaceduel-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Two player game with shooting spaceships flying around a sun
Name:		kspaceduel
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kspaceduel/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
In KSpaceDuel each of two possible players control a satellite spaceship
orbiting the sun. As the game progresses players have to eliminate the
opponent's spacecraft with bullets or mines.

%files -f %{name}.lang
%{_kde5_bindir}/kspaceduel
%{_kde5_applicationsdir}/org.kde.kspaceduel.desktop
%{_kde5_datadir}/config.kcfg/kspaceduel.kcfg
%{_kde5_datadir}/kspaceduel
%{_kde5_iconsdir}/hicolor/*/apps/kspaceduel.png
%{_appdatadir}/org.kde.kspaceduel.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13879 |21mr|ksquares-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An implementation of the popular paper based game squares
Name:		ksquares
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/ksquares/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KSquares is an implementation of the popular paper based game squares.
You must draw lines to complete squares, the player with the most
squares wins.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.ksquares.desktop
%{_kde5_bindir}/ksquares
%{_kde5_datadir}/config.kcfg/ksquares.kcfg
%{_kde5_iconsdir}/hicolor/*/apps/ksquares.png
%{_appdatadir}/org.kde.ksquares.appdata.xml

#------------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13880 |21mr|ksshaskpass-5.27.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 SSH-askpass
Name:		ksshaskpass
Version:	5.27.11
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Source1:	ksshaskpass_config
Source2:	ksshaskpass.sh
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
Requires(post):	update-alternatives
Requires(postun):	update-alternatives
Requires:	openssh-clients
# script in openssh-askpass-common does:
# export SSH_ASKPASS=/usr/libexec/ssh-askpass
Requires:	openssh-askpass-common
Provides:	openssh-askpass
Provides:	ssh-askpass

%description
Ksshaskpass is a front-end for ssh-add which stores the password of the sh key
in KWallet.

Ksshaskpass is not meant to be executed directly, you need to tell ssh-add
about it. ssh-add will then call it if it is not associated to a terminal.

%files -f %{name}.lang
%{_kde5_bindir}/ksshaskpass
%{_kde5_mandir}/man1/ksshaskpass.1*

%post
update-alternatives --install %{_libexecdir}/ssh-askpass ssh-askpass %{_kde5_bindir}/ksshaskpass 40

%postun
[ $1 = 0 ] || exit 0
update-alternatives --remove ssh-askpass %{_kde5_bindir}/ksshaskpass

#----------------------------------------------------------------------------

%package ssh-agent
# subpackage exists so that ksshaskpass can be used as an ssh ask password
# program, but something else, for example gcr, is used as an ssh agent
Summary:	Automatically run ssh-agent inside KDE session
Group:		Graphical desktop/KDE

%description ssh-agent
Automatically run ssh-agent inside KDE session

%files ssh-agent
%config(noreplace) %{_sysconfdir}/xdg/plasma-workspace/env/%{name}.sh
%config(noreplace) %{_sysconfdir}/ssh/ssh_config.d/%{name}.conf

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_sysconfdir}/ssh/ssh_config.d
install -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/ssh/ssh_config.d/%{name}.conf

# Setup environment variables
mkdir -p %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/env/
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/xdg/plasma-workspace/env/%{name}.sh

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13881 |21mr|kstars-3.5.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define indilib_version 1.4.1
%define xplanet_version 1.2.1

%bcond_with indilib

Summary:	A Desktop Planetarium
Name:		kstars
Version:	3.5.7
Release:	3
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kstars
Source0:	ftp://ftp.kde.org/pub/kde/stable/applications/%{version}/src/%{name}-%{version}.tar.xz
Source1:	kstars-3.5.7_ru.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	xplanet >= %{xplanet_version}
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5plotting-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libfli-devel
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libraw_r)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DataVisualization)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
%if %{with indilib}
BuildRequires:	pkgconfig(libindi) >= %{indilib_version}
BuildRequires:	indilib-devel-static >= %{indilib_version}
Requires:	indilib >= %{indilib_version}
%endif
Requires:	xplanet

%description
KStars is a Desktop Planetarium for KDE. It provides an accurate graphical
simulation of the night sky, from any location on Earth, at any date and
time. The display includes 130,000 stars, 13,000 deep-sky objects,all 8
planets, the Sun and Moon, and thousands of comets and asteroids.

%files -f %{name}.lang
%doc README.ephemerides README.customize README.images README.planetmath README.timekeeping AUTHORS
%{_kde5_applicationsdir}/org.kde.kstars.desktop
%{_kde5_bindir}/kstars
%{_kde5_datadir}/config.kcfg/kstars.kcfg
%{_kde5_datadir}/kstars
%{_kde5_datadir}/sounds/KDE-KStars-*.ogg
%{_kde5_iconsdir}/*/*/apps/kstars.*
%{_kde5_libdir}/libhtmesh.a
%{_kde5_notificationsdir}/kstars.notifyrc
%{_appdatadir}/org.kde.kstars.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13882 |21mr|ksudoku-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Play, create and solve sudoku grids
Name:		ksudoku
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/ksudoku/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
The word Sudoku means "single number in an alloted place" in Japanese. These
are the basic rules. Every sudoku Sudoku is a square of 81 cells divided into
9 columns and 9 rows and in 9 subsquares (3x3) of 9 cells each. Solving takes
usually from 10 to 30 minutes, depending on puzzle level, your skill and
experience.

Some cells are filled with a number at the beginnning: the remaining are to
be filled by the player using numbers from 1 to 9, without repeating a number
twice on each column, row or subsuquare (each of them must contain only
one 1, one 2, one 3, and so on). The game requires logic and patience.
The numerals in Sudoku puzzles are used for convenience (for example in 16x16
board we use letters): arithmetic relationships between numbers are irrelevant.

This program supports also 16x16 games with numbers from 1 to 16 and 256
cells with 16 cols, rows and subsquares! (if normal sudoku are not enough for
you).

More information at http://en.wikipedia.org/wiki/Sudoku

%files -f %{name}.lang
%{_kde5_bindir}/ksudoku
%{_kde5_applicationsdir}/org.kde.ksudoku.desktop
%{_kde5_datadir}/ksudoku
%{_kde5_configdir}/ksudokurc
%{_kde5_iconsdir}/hicolor/*/apps/ksudoku.png
%{_appdatadir}/org.kde.ksudoku.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13883 |21mr|ksystemlog-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	System log viewer tool for KDE
Name:		ksystemlog
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	pciutils

%description
This program is developed for being used by beginner users, which don't know
how to find information about their Linux system, and how the log files are
in their computer. But it is also designed for advanced users, who want to
quickly see problems occuring on their server.

KSystemLog has the following features :
- View all the main log of your system, by selecting them directly in a menu
- Auto display new lines logged in bold
- Tabbed view to allow displaying several logs at the same time
- Saving in a file and copying to clipboard the selected log lines are also
  implemented (and email to your friends)
- It can parse the following log files of your system:
  - X.org (or Xfree) logs
  - System logs (using the Syslog parser of KSystemLog)
  - Kernel logs
  - Daemons logs
  - Cron logs
  - Boot logs
  - Authentication logs
  - Cups logs
  - ACPID logs

%files -f %{name}.lang
%{_kde5_bindir}/ksystemlog
%{_kde5_applicationsdir}/org.kde.ksystemlog.desktop
%{_kde5_xmlguidir}/ksystemlog/ksystemlogui.rc
%{_appdatadir}/org.kde.ksystemlog.appdata.xml
%{_kde5_datadir}/qlogging-categories5/ksystemlog.categories

#------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13884 |21mr|ksystemstats-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KSystemStats is a daemon that collects statistics about the running system
Name:		ksystemstats
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5sysguard-devel >= %{version}
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(libnl-3.0)
Conflicts:	plasma5-ksysguard < 5.22.0

%description
KSystemStats is a daemon that collects
statistics about the running system.

%files -f ksystemstats_plugins.lang
%{_kde5_bindir}/kstatsviewer
%{_kde5_bindir}/ksystemstats
%{_datadir}/dbus-1/services/org.kde.ksystemstats.service
%{_qt5_plugindir}/ksystemstats/ksystemstats_*
%{_prefix}/lib/systemd/user/plasma-ksystemstats.service

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build

%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang ksystemstats_plugins --all-name --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13885 |21mr|kteatime-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	System tray applet that makes sure your tea doesn't get too strong
Name:		kteatime
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
System tray applet that makes sure your tea doesn't get too strong.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.kteatime.desktop
%{_kde5_bindir}/kteatime
%{_kde5_iconsdir}/hicolor/*/apps/kteatime.*
%{_kde5_notificationsdir}/kteatime.notifyrc
%{_appdatadir}/org.kde.kteatime.appdata.xml

#-------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13886 |21mr|ktextaddons-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{arm} %{ix86} aarch64
%bcond_with docs
%else
%bcond_without docs
%endif

Summary:    Various text handling addons
Name:  ktextaddons
Version:    1.5.2
Release:    1
Group:      Graphical desktop/KDE
License:    LGPLv3
Url:   https://invent.kde.org/libraries/ktextaddons
Source0:    https://download.kde.org/stable/ktextaddons/%{name}-%{version}.tar.xz
BuildRequires:  doxygen
BuildRequires:	kf5archive-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5TextToSpeech)
BuildRequires:	pkgconfig(Qt5UiPlugin)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Various text handling addons for the KDE dekstop.
WWW: https://invent.kde.org/libraries/ktextaddons

%files -f %{name}.lang
%doc README.md
%license LICENSES/
%{_kde5_plugindir}/translator/
%{_qt5_plugindir}/designer/texttranslatorwidgets5.so
%{_kde5_datadir}/qlogging-categories5/ktextaddons.categories
%{_kde5_datadir}/qlogging-categories5/ktextaddons.renamecategories

#--------------------------------------------------------------------

%define kf5textautocorrectioncore_major 1
%define libkf5textautocorrectioncore %mklibname kf5textautocorrectioncore %{kf5textautocorrectioncore_major}

%package -n %{libkf5textautocorrectioncore}
Summary:    Ktextaddons Text Auto Correction Core library
Group:      System/Libraries
Requires:    %{name} = %{EVRD}

%description -n %{libkf5textautocorrectioncore}
Ktextaddons Text Auto Correction component library.

%files -n %{libkf5textautocorrectioncore}
%{_kde5_libdir}/libKF5TextAutoCorrectionCore.so.%{kf5textautocorrectioncore_major}*

#--------------------------------------------------------------------

%define kf5textautocorrectionwidgets_major 1
%define libkf5textautocorrectionwidgets %mklibname kf5textautocorrectionwidgets %{kf5textautocorrectionwidgets_major}

%package -n %{libkf5textautocorrectionwidgets}
Summary:    Ktextaddons Text Auto Correction Widgets library
Group:      System/Libraries
Requires:    %{name} = %{EVRD}

%description -n %{libkf5textautocorrectionwidgets}
Ktextaddons Text Auto Correction component library.

%files -n %{libkf5textautocorrectionwidgets}
%{_kde5_libdir}/libKF5TextAutoCorrectionWidgets.so.%{kf5textautocorrectionwidgets_major}*

#--------------------------------------------------------------------

%define kf5textaddonswidgets_major 1
%define libkf5textaddonswidgets %mklibname kf5textaddonswidgets %{kf5textaddonswidgets_major}

%package -n %{libkf5textaddonswidgets}
Summary:    Ktextaddons Text Auto Correction Widgets library
Group:      System/Libraries
Requires:    %{name} = %{EVRD}

%description -n %{libkf5textaddonswidgets}
Ktextaddons Text Auto Correction component library.

%files -n %{libkf5textaddonswidgets}
%{_kde5_libdir}/libKF5TextAddonsWidgets.so.%{kf5textaddonswidgets_major}*

#--------------------------------------------------------------------

%define kf5textcustomeditor_major 1
%define libkf5textcustomeditor %mklibname kf5textcustomeditor %{kf5textcustomeditor_major}

%package -n %{libkf5textcustomeditor}
Summary:    Ktextaddons Text Custom Editor Core library
Group:      System/Libraries
Requires:    %{name} = %{EVRD}

%description -n %{libkf5textcustomeditor}
Ktextaddons Text Custom Editor component library.

%files -n %{libkf5textcustomeditor}
%{_kde5_libdir}/libKF5TextCustomEditor.so.%{kf5textcustomeditor_major}*

#--------------------------------------------------------------------

%define kf5textemoticonscore_major 1
%define libkf5textemoticonscore %mklibname kf5textemoticonscore %{kf5textemoticonscore_major}

%package -n %{libkf5textemoticonscore}
Summary:    Ktextaddons Text Emoticons Core library
Group:      System/Libraries
Requires:    %{name} = %{EVRD}

%description -n %{libkf5textemoticonscore}
Ktextaddons Text Auto Correction component library.

%files -n %{libkf5textemoticonscore}
%{_kde5_libdir}/libKF5TextEmoticonsCore.so.%{kf5textemoticonscore_major}*

#--------------------------------------------------------------------

%define kf5textemoticonswidgets_major 1
%define libkf5textemoticonswidgets %mklibname kf5textemoticonswidgets %{kf5textemoticonswidgets_major}

%package -n %{libkf5textemoticonswidgets}
Summary:    Ktextaddons Text Emoticons Widgets library
Group:      System/Libraries
Requires:    %{name} = %{EVRD}

%description -n %{libkf5textemoticonswidgets}
Ktextaddons Text Auto Correction component library.

%files -n %{libkf5textemoticonswidgets}
%{_kde5_libdir}/libKF5TextEmoticonsWidgets.so.%{kf5textemoticonswidgets_major}*

#--------------------------------------------------------------------

%define kf5textedittexttospeech_major 1
%define libkf5textedittexttospeech %mklibname kf5textedittexttospeech %{kf5textedittexttospeech_major}

%package -n %{libkf5textedittexttospeech}
Summary:  Ktextaddons Text Edit Text To Speech library
Group:    System/Libraries
Requires:  %{name} = %{EVRD}

%description -n %{libkf5textedittexttospeech}
Ktextaddons Text Edit Text To Speech component library.

%files -n %{libkf5textedittexttospeech}
%{_kde5_libdir}/libKF5TextEditTextToSpeech.so.%{kf5textedittexttospeech_major}*

#--------------------------------------------------------------------

%define kf5textgrammarcheck_major 1
%define libkf5textgrammarcheck %mklibname kf5textgrammarcheck %{kf5textgrammarcheck_major}

%package -n %{libkf5textgrammarcheck}
Summary:  Ktextaddons Text Grammar Check library
Group:    System/Libraries
Requires:  %{name} = %{EVRD}

%description -n %{libkf5textgrammarcheck}
Ktextaddons Text Grammar Check component library.

%files -n %{libkf5textgrammarcheck}
%{_kde5_libdir}/libKF5TextGrammarCheck.so.%{kf5textgrammarcheck_major}*

#--------------------------------------------------------------------

%define kf5texttranslator_major 1
%define libkf5texttranslator %mklibname kf5texttranslator %{kf5texttranslator_major}

%package -n %{libkf5texttranslator}
Summary:  Ktextaddons Text Translator library
Group:    System/Libraries
Requires:  %{name} = %{EVRD}

%description -n %{libkf5texttranslator}
Ktextaddons Text Translator component library.

%files -n %{libkf5texttranslator}
%{_kde5_libdir}/libKF5TextTranslator.so.%{kf5texttranslator_major}*

#--------------------------------------------------------------------

%define kf5textutils_major 1
%define libkf5textutils %mklibname kf5textutils %{kf5textutils_major}

%package -n %{libkf5textutils}
Summary:  Ktextaddons Text Utils library
Group:    System/Libraries
Requires:  %{name} = %{EVRD}

%description -n %{libkf5textutils}
Ktextaddons Text Utils component library.

%files -n %{libkf5textutils}
%{_kde5_libdir}/libKF5TextUtils.so.%{kf5textutils_major}*

#--------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/textcustomeditor.so

#----------------------------------------------------------------------------

%define libktextaddons_dev %mklibname kf5textaddons -d

%package -n     %{libktextaddons_dev}
Summary:  Development files for %{name}
Group:    Development/KDE and Qt
Requires:  %{libkf5textautocorrectioncore}  = %{EVRD}
Requires:  %{libkf5textautocorrectionwidgets}  = %{EVRD}
Requires:  %{libkf5textaddonswidgets}  = %{EVRD}
Requires:  %{libkf5textcustomeditor}  = %{EVRD}
Requires:  %{libkf5textemoticonscore}  = %{EVRD}
Requires:  %{libkf5textemoticonswidgets}  = %{EVRD}
Requires:  %{libkf5textedittexttospeech}  = %{EVRD}
Requires:  %{libkf5textgrammarcheck}  = %{EVRD}
Requires:  %{libkf5texttranslator}  = %{EVRD}
Requires:  %{libkf5textutils}  = %{EVRD}
Provides:  %{name}-devel  = %{EVRD}
Provides:  kf5textaddons-devel  = %{EVRD}

%description -n %{libktextaddons_dev}
This package contains header files needed if you wish to build
applications based on %{name}.

%files -n %{libktextaddons_dev}
%dir %{_kde5_includedir}/KF5/TextAutoCorrectionCore
%{_kde5_includedir}/KF5/TextAutoCorrectionCore/*
%dir %{_kde5_includedir}/KF5/TextAutoCorrectionWidgets
%{_kde5_includedir}/KF5/TextAutoCorrectionWidgets/*
%dir %{_kde5_includedir}/KF5/TextCustomEditor
%{_kde5_includedir}/KF5/TextCustomEditor/*
%dir %{_kde5_includedir}/KF5/TextEditTextToSpeech
%{_kde5_includedir}/KF5/TextEditTextToSpeech/*
%dir %{_kde5_includedir}/KF5/TextEmoticonsCore
%{_kde5_includedir}/KF5/TextEmoticonsCore/*
%dir %{_kde5_includedir}/KF5/TextEmoticonsWidgets
%{_kde5_includedir}/KF5/TextEmoticonsWidgets/*
%dir %{_kde5_includedir}/KF5/TextGrammarCheck
%{_kde5_includedir}/KF5/TextGrammarCheck/*
%dir %{_kde5_includedir}/KF5/TextTranslator
%{_kde5_includedir}/KF5/TextTranslator/*
%dir %{_kde5_includedir}/KF5/TextUtils
%{_kde5_includedir}/KF5/TextUtils/*
%dir %{_kde5_includedir}/KF5/TextAddonsWidgets
%{_kde5_includedir}/KF5/TextAddonsWidgets/*
%{_kde5_libdir}/libKF5TextAutoCorrectionCore.so
%{_kde5_libdir}/libKF5TextAutoCorrectionWidgets.so
%{_kde5_libdir}/libKF5TextAddonsWidgets.so
%{_kde5_libdir}/libKF5TextCustomEditor.so
%{_kde5_libdir}/libKF5TextEmoticonsCore.so
%{_kde5_libdir}/libKF5TextEmoticonsWidgets.so
%{_kde5_libdir}/libKF5TextEditTextToSpeech.so
%{_kde5_libdir}/libKF5TextGrammarCheck.so
%{_kde5_libdir}/libKF5TextTranslator.so
%{_kde5_libdir}/libKF5TextUtils.so
%{_kde5_libdir}/cmake/KF5TextAddonsWidgets/
%{_kde5_libdir}/cmake/KF5TextAutoCorrectionCore/
%{_kde5_libdir}/cmake/KF5TextAutoCorrectionWidgets/
%{_kde5_libdir}/cmake/KF5TextCustomEditor/
%{_kde5_libdir}/cmake/KF5TextEditTextToSpeech/
%{_kde5_libdir}/cmake/KF5TextEmoticonsCore/
%{_kde5_libdir}/cmake/KF5TextEmoticonsWidgets/
%{_kde5_libdir}/cmake/KF5TextGrammarCheck/
%{_kde5_libdir}/cmake/KF5TextTranslator/
%{_kde5_libdir}/cmake/KF5TextUtils/
%{_kde5_mkspecsdir}/qt_TextAutoCorrectionCore.pri
%{_kde5_mkspecsdir}/qt_TextAutoCorrectionWidgets.pri
%{_kde5_mkspecsdir}/qt_textaddonswidgets.pri
%{_kde5_mkspecsdir}/qt_textemoticonscore.pri
%{_kde5_mkspecsdir}/qt_textcustomeditor.pri
%{_kde5_mkspecsdir}/qt_textemoticonswidgets.pri
%{_kde5_mkspecsdir}/qt_TextEditTextToSpeech.pri
%{_kde5_mkspecsdir}/qt_TextGrammarCheck.pri
%{_kde5_mkspecsdir}/qt_TextTranslator.pri
%{_kde5_mkspecsdir}/qt_textutils.pri

#--------------------------------------------------------------------

%if %{with docs}
%package        doc
Summary:  Ktextaddons APIs and tools docs
Group:    Documentation
BuildRequires:  qt5-tools
BuildRequires:	pkgconfig(Qt5Help)
# This one is required to build QCH-format documentation
# for APIs and tools in this package set
BuildRequires:  qt5-assistant
Recommends:     qt5-assistant
BuildArch:      noarch

%description doc
Documentation for APIs and tools in Ktextaddons package for
use with Qt Assistant.

%files doc
%{_docdir}/qt5/KF5TextEditTextToSpeech.qch
%{_docdir}/qt5/KF5TextEditTextToSpeech.tags
%{_docdir}/qt5/KF5TextCustomEditor.qch
%{_docdir}/qt5/KF5TextCustomEditor.tags
%{_docdir}/qt5/KF5TextGrammarCheck.qch
%{_docdir}/qt5/KF5TextGrammarCheck.tags
%{_docdir}/qt5/KF5TextTranslator.qch
%{_docdir}/qt5/KF5TextTranslator.tags
%{_docdir}/qt5/KF5TextUtils.qch
%{_docdir}/qt5/KF5TextUtils.tags
%{_docdir}/qt5/KF5TextAddonsWidgets.qch
%{_docdir}/qt5/KF5TextAddonsWidgets.tags
%{_docdir}/qt5/KF5TextAutoCorrectionCore.qch
%{_docdir}/qt5/KF5TextAutoCorrectionCore.tags
%{_docdir}/qt5/KF5TextAutoCorrectionWidgets.qch
%{_docdir}/qt5/KF5TextAutoCorrectionWidgets.tags
%{_docdir}/qt5/KF5TextEmoticonsCore.qch
%{_docdir}/qt5/KF5TextEmoticonsCore.tags
%{_docdir}/qt5/KF5TextEmoticonsWidgets.qch
%{_docdir}/qt5/KF5TextEmoticonsWidgets.tags
%endif

#--------------------------------------------------------------------

%prep
%autosetup

%build
%cmake_kde5 %{?with_docs:-DBUILD_QCH:BOOL=ON}
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13887 |21mr|ktexteditor-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 advanced embeddable text editor module
Name:		ktexteditor
Version:	5.116.0
Release:	2
Epoch:		5
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5archive-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5guiaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5parts-devel = %{version}
BuildRequires:	kf5sonnet-devel = %{version}
BuildRequires:	kf5syntaxhighlighting-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(libgit2)

%description
KDE Frameworks 5 advanced embeddable text editor module.

KTextEditor provides a powerful text editor component that you can embed in
your application, either as a KPart or using the KF5::TextEditor library
(if you need more control).

%files
%{_kde5_datadir}/katepart5/*
%{_kde5_datadir}/qlogging-categories5/ktexteditor.categories
%{_kde5_datadir}/qlogging-categories5/ktexteditor.renamecategories
%{_kde5_libexecdir}/kauth/kauth_ktexteditor_helper
%{_kde5_plugindir}/parts/katepart.so
%{_kde5_services}/katepart.desktop
%{_kde5_servicetypes}/ktexteditor.desktop
%{_kde5_servicetypes}/ktexteditorplugin.desktop
%{_datadir}/dbus-1/system-services/org.kde.ktexteditor.katetextbuffer.service
%{_datadir}/dbus-1/system.d/org.kde.ktexteditor.katetextbuffer.conf
%{_datadir}/polkit-1/actions/org.kde.ktexteditor.katetextbuffer.policy

#----------------------------------------------------------------------------

%package i18n
Summary:	KTextEditor translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KTextEditor translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5texteditor_major 5
%define libkf5texteditor %mklibname kf5texteditor %{kf5texteditor_major}

%package -n %{libkf5texteditor}
Summary:	KDE Frameworks 5 advanced embeddable text editor shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5texteditor}
KDE Frameworks 5 advanced embeddable text editor shared library.

%files -n %{libkf5texteditor}
%{_kde5_libdir}/libKF5TextEditor.so.%{kf5texteditor_major}*

#----------------------------------------------------------------------------

%define devkf5texteditor %mklibname kf5texteditor -d

%package -n %{devkf5texteditor}
Summary:	Development files for KDE Frameworks 5 advanced embeddable text editor module
Group:		Development/KDE and Qt
Requires:	%{libkf5texteditor} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5texteditor-devel = %{version}

%description -n %{devkf5texteditor}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5texteditor}
%{_kde5_datadir}/kdevappwizard/templates/ktexteditor-plugin.tar.bz2
%{_kde5_includedir}/KF5/KTextEditor
%{_kde5_libdir}/cmake/KF5TextEditor
%{_kde5_libdir}/libKF5TextEditor.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13888 |21mr|ktextwidgets-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 advanced text editing widgets module
Name:		ktextwidgets
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5completion-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5sonnet-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	kf5windowsystem-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5TextToSpeech)

%description
KDE Frameworks 5 advanced text editing widgets module.

KTextWidgets provides widgets for displaying and editing text. It supports
rich text as well as plain text.

%files

#----------------------------------------------------------------------------

%package i18n
Summary:	KTextWidgets translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KTextWidgets translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/ktextwidgets5widgets.so

#----------------------------------------------------------------------------

%define kf5textwidgets_major 5
%define libkf5textwidgets %mklibname kf5textwidgets %{kf5textwidgets_major}

%package -n %{libkf5textwidgets}
Summary:	KDE Frameworks 5 text editing widgets shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5textwidgets}
KDE Frameworks 5 text editing widgets shared library.

%files -n %{libkf5textwidgets}
%{_kde5_libdir}/libKF5TextWidgets.so.%{kf5textwidgets_major}*

#----------------------------------------------------------------------------

%define devkf5textwidgets %mklibname kf5textwidgets -d

%package -n %{devkf5textwidgets}
Summary:	Development files for KDE Frameworks 5 text editing widgets module
Group:		Development/KDE and Qt
Requires:	%{libkf5textwidgets} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5textwidgets-devel = %{version}

%description -n %{devkf5textwidgets}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5textwidgets}
%{_kde5_includedir}/KF5/KTextWidgets
%{_kde5_libdir}/cmake/KF5TextWidgets
%{_kde5_libdir}/libKF5TextWidgets.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13889 |21mr|ktimer-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Execute programs after some time
Name:		ktimer
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://utils.kde.org/projects/ktimer
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KTimer is a little tool to execute programs after some time.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.ktimer.desktop
%{_kde5_bindir}/ktimer
%{_kde5_iconsdir}/*/*/apps/ktimer.*
%{_appdatadir}/org.kde.ktimer.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13890 |21mr|ktnef-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 TNEF data handling module
Name:		ktnef
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kde5-macros
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 TNEF data handling module.

%files
%{_kde5_datadir}/qlogging-categories5/ktnef.categories
%{_kde5_datadir}/qlogging-categories5/ktnef.renamecategories
#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 TNEF data handling library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 TNEF data handling library translations.

%files i18n -f libktnef5.lang

#----------------------------------------------------------------------------

%define kf5tnef_major 5
%define libkf5tnef %mklibname kf5tnef %{kf5tnef_major}

%package -n %{libkf5tnef}
Summary:	KDE Frameworks 5 TNEF data handling shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libkf5tnef}
KDE Frameworks 5 TNEF data handling shared library.

%files -n %{libkf5tnef}
%{_kde5_libdir}/libKPim5Tnef.so.%{kf5tnef_major}*

#----------------------------------------------------------------------------

%define devkf5tnef %mklibname kf5tnef -d

%package -n %{devkf5tnef}
Summary:	Development files for KDE Frameworks 5 TNEF data handling module
Group:		Development/KDE and Qt
Requires:	%{libkf5tnef} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5tnef-devel = %{version}

%description -n %{devkf5tnef}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5tnef}
%{_kde5_includedir}/KPim5/KTNEF
%{_kde5_libdir}/cmake/KPim5Tnef
%{_kde5_libdir}/libKPim5Tnef.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build


%find_lang libktnef5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13891 |21mr|ktoblzcheck-1.53-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define libname	%mklibname %{name} %major
%define devname	%mklibname -d %{name}

Summary:	A library to check account numbers and bank codes of German banks
Name:		ktoblzcheck
Version:	1.53
Release:	1
Group:		System/Libraries
License:	LGPLv2+
Url:		http://ktoblzcheck.sourceforge.net
Source0:	http://sourceforge.net/projects/ktoblzcheck/files/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	cmake

%description 
KtoBLZCheck is a library to check account numbers and bank codes of
German banks. Both a library for other programs as well as a short
command-line tool is available. It is possible to check pairs of
account numbers and bank codes (BLZ) of German banks, and to map bank
codes (BLZ) to the clear-text name and location of the bank.

%package -n python3-%{name}
Group:		Development/Python
Summary:	A library to check account numbers and bank codes of German banks
Requires:	%{name} = %{version}
%rename python-%{name}

%description -n python3-%{name}
KtoBLZCheck is a library to check account numbers and bank codes of
German banks. Both a library for other programs as well as a short
command-line tool is available. It is possible to check pairs of
account numbers and bank codes (BLZ) of German banks, and to map bank
codes (BLZ) to the clear-text name and location of the bank.

%package -n %{libname}
Group:		System/Libraries
Summary:	A library to check account numbers and bank codes of German banks
Recommends:	%{name} >= %{version}

%description -n %{libname}
KtoBLZCheck is a library to check account numbers and bank codes of
German banks. Both a library for other programs as well as a short
command-line tool is available. It is possible to check pairs of
account numbers and bank codes (BLZ) of German banks, and to map bank
codes (BLZ) to the clear-text name and location of the bank.

%package -n %{devname}
Group:		Development/C++
Summary:	A library to check account numbers and bank codes of German banks
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
KtoBLZCheck is a library to check account numbers and bank codes of
German banks. Both a library for other programs as well as a short
command-line tool is available. It is possible to check pairs of
account numbers and bank codes (BLZ) of German banks, and to map bank
codes (BLZ) to the clear-text name and location of the bank.

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

%files
%doc COPYING ChangeLog
%{_bindir}/*
%{_datadir}/ktoblzcheck/*
%{_mandir}/man1/*

%files -n %{libname}
%{_libdir}/libktoblzcheck.so.%{major}*

%files -n %{devname}
%{_libdir}/libktoblzcheck.so
%{_includedir}/iban.h
%{_includedir}/ktoblzcheck.h
%{_libdir}/pkgconfig/ktoblzcheck.pc
%{_libdir}/cmake/*

%files -n python3-%{name}
%{py3_platsitedir}/*.py*
%{py3_platsitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13892 |21mr|ktorrent-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	BitTorrent program for KDE
Name:		ktorrent
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://www.kde.org/applications/internet/ktorrent/
Source0:	https://download.kde.org/stable/ktorrent/%{version}/%{name}-%{version}.tar.xz
Source1:	index.docbook
Source2:	index.cache.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gmp-devel
BuildRequires:	libktorrent-devel = %{version}
BuildRequires:	kf5archive-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5plotting-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5webkit-devel
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(taglib)

%description
KTorrent is a BitTorrent program for KDE. Its main features are:
 o Downloads torrent files
 o Upload speed capping, seeing that most people can't upload
   infinite amounts of data.
 o Internet searching using  The Bittorrent web-site's search engine
 o UDP Trackers

%files -f %{name}.lang
%doc
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_kde5_bindir}/*
%{_kde5_notificationsdir}/%{name}.notifyrc
%{_kde5_iconsdir}/*/*/*/*
%{_kde5_xmlguidir}/%{name}/*.rc
%{_qt5_plugindir}/ktorrent_plugins/*.so
%{_appdatadir}/org.kde.%{name}.appdata.xml

#----------------------------------------------------------------------------

%define ktcore_major 16
%define libktcore %mklibname ktcore %{ktcore_major}

%package -n %{libktcore}
Summary:	Ktorrent library
Group:		System/Libraries

%description -n %{libktcore}
KTorrent library.

%files -n %{libktcore}
%doc
%{_kde5_libdir}/libktcore.so.%{ktcore_major}*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make -s

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_kde5_docdir}/HTML/ru/%{name}/
install -m644 %{SOURCE1} %{SOURCE2} %{buildroot}%{_kde5_docdir}/HTML/ru/%{name}/

%find_lang %{name} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13893 |21mr|ktouch-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A program for learning touch typing
Name:		ktouch
Version:	23.08.4
Release:	1
License:	GPLv2+ and GFDL
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/ktouch
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-xkb)
BuildRequires:	pkgconfig(xkbfile)
Requires:	kqtquickcharts
Requires:	qt5-qtgraphicaleffects-qml

%description
KTouch is a program for learning touch typing. KTouch is a way to learn
to type on a keyboard quickly and correctly. Every finger has its place
on the keyboard with associated keys to press.

KTouch helps you learn to touch typing by providing you with something
to write. KTouch can also help you to remember what fingers to use.

%files -f %{name}.lang
%doc AUTHORS
%{_kde5_applicationsdir}/org.kde.ktouch.desktop
%{_kde5_bindir}/ktouch
%{_kde5_datadir}/config.kcfg/ktouch.kcfg
%{_kde5_datadir}/ktouch
%{_kde5_iconsdir}/*/*/apps/ktouch.*
%{_kde5_mandir}/man1/ktouch.1.*
%{_appdatadir}/org.kde.ktouch.appdata.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13894 |21mr|ktuberling-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	"Potato editor" game
Name:		ktuberling
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/ktuberling/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KTuberling is a "potato editor" game intended for small children and adults
who remain young at heart. The game has no winner; the only purpose is to
make the funniest faces you can.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.ktuberling.desktop
%{_kde5_bindir}/ktuberling
%{_kde5_datadir}/ktuberling
%{_kde5_datadir}/qlogging-categories5/ktuberling.categories
%{_kde5_iconsdir}/hicolor/*/apps/ktuberling.png
%{_kde5_iconsdir}/hicolor/*/mimetypes/application-x-tuberling.png
%{_appdatadir}/org.kde.ktuberling.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13895 |21mr|kturtle-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	An educational programming environment
Name:		kturtle
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kturtle
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KTurtle is an educational programming environment for the KDE Desktop.
KTurtle aims to make programming as easy and touchable as possible, and
therefore can be used to teach kids the basics of math, geometry
and... programming.

%files -f %{name}.lang
%doc AUTHORS COPYING.DOC
%{_kde5_applicationsdir}/org.kde.kturtle.desktop
%{_kde5_bindir}/kturtle
%{_kde5_iconsdir}/hicolor/*/apps/kturtle.*
%{_kde5_sysconfdir}/xdg/kturtle.knsrc
%{_kde5_xmlguidir}/kturtle/kturtleui.rc
%{_appdatadir}/org.kde.kturtle.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13896 |21mr|kube-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Kube email client
Name:		kube
Version:	0.9.0
Release:	1
License:	GPL
Group:		Graphical desktop/KDE
Url:		https://www.kube-project.com/
Source0:	https://invent.kde.org/pim/kube/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	kasync-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5imap2-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5pimkdav2-devel
BuildRequires:	gpgme-devel
BuildRequires:	lmdb-devel
BuildRequires:	sink-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgit2)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(readline)

%description
The Kube email client.

%files
%{_kde5_applicationsdir}/org.kde.kube.desktop
%{_kde5_bindir}/kube
%{_kde5_datadir}/appdata/org.kde.kube.appdata.xml
%{_kde5_datadir}/icons/*/*/apps/kube*.*
%{_kde5_datadir}/kube
%{_kde5_qmldir}/org/kube
%{_libdir}/libkubeframework.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}
sed -e 's|CMAKE_CXX_STANDARD 20|CMAKE_CXX_STANDARD 17|' -i CMakeLists.txt # Fix build
find . -name CMakeLists.txt | xargs sed -e '/tests/d' -i # Don't build tests

%build
%cmake_kde5 \
	-DKUBE_DESKTOPFILE_CATEGORIES:STRING="Qt;KDE;Network;Email;"
%make_build

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13897 |21mr|kubernetes-1.30.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		debug_package %nil

Name:		kubernetes
Version:	1.30.3
Release:	1
Summary:	Production-Grade Container Scheduling and Management
Group:		Development/Other
License:	ASL 2.0
URL:		https://kubernetes.io
Source0:	https://github.com/kubernetes/kubernetes/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/kubernetes/release/master/packages/rpm/kubelet.service
Source2:	https://raw.githubusercontent.com/kubernetes/release/master/packages/rpm/10-kubeadm-post-1.11.conf
Source3:	https://raw.githubusercontent.com/kubernetes/release/master/packages/rpm/kubelet.env
Source10:	%{name}.rpmlintrc
BuildRequires:	go
BuildRequires:	git-core
BuildRequires:	coreutils

# meta package
Recommends:	kubectl
Recommends:	kubeadm
Recommends:	kubelet
Recommends:	%{name}-tools
Recommends:	%{name}-docs

%description
Kubernetes is an open source system for managing containerized
applications across multiple hosts; providing basic mechanisms
for deployment, maintenance, and scaling of applications.

%files
# meta package
%license LICENSE LICENSES
%doc README.md

#------------------------------------------------------------

%package -n kubectl
Summary:	Container Cluster Manager - Kubernetes client tools
Group:		Development/Other

%description -n kubectl
Command-line utility for interacting with a Kubernetes cluster

%files -n kubectl
%{_bindir}/kubectl

#------------------------------------------------------------

%package -n	kubeadm
Summary:	Command-line utility for administering a Kubernetes cluster
Group:		Development/Other
Requires:	kubelet >= 1.20.0
Requires:	kubectl >= 1.20.0
Requires:	cni-plugins >= 0.8.6
Requires:	cri-tools >= 1.20.0

%description -n	kubeadm
Command-line utility for deploying a Kubernetes cluster

%files -n	kubeadm
%{_bindir}/kubeadm

#------------------------------------------------------------

%package -n kubelet
Summary:	Container Cluster Manager - Kubernetes Node Agent
Group:		Development/Other
Requires:	conntrack-tools
Requires:	ebtables
Requires:	ethtool
Requires:	iproute
Requires:	iptables >= 1.4.21
Requires:	cni-plugins >= 0.8.6
Requires:	socat
Requires:	util-linux
Requires:	systemd

%description -n kubelet
The node agent of Kubernetes, the container cluster manager

%files -n kubelet
%{_bindir}/kubelet
%{_unitdir}/kubelet.service
%dir %{_unitdir}/kubelet.service.d
#{_sysconfdir}/kubernetes/manifests/
%{_unitdir}/kubelet.service.d/10-kubeadm.conf
%dir %{_sysconfdir}/kubernetes/manifests/
%config(noreplace) %{_sysconfdir}/sysconfig/kubelet

#------------------------------------------------------------

%package tools
Summary:	Kubernetes tools
Group:		Development/Other

%description tools
Kubernetes tools

%files tools
%{_bindir}/kube-*

#------------------------------------------------------------

%package docs
Summary:	Documentation for Kubernetes
Group:		Documentation

%description docs
Documentation for Kubernetes

%files docs
%doc docs/admin docs/user-guide docs/yaml README.md
%{_mandir}/man1/*

#------------------------------------------------------------

%prep
%autosetup -p1

%build

# be ok with current version of golang, not the latest possible one
rpm -q --qf '%%{version}\n' golang > .go-version
export FORCE_HOST_GO=y

# TODO: fix debuginfo
%make_build all GOLDFLAGS="-s -w"

# Gen docs
# avoid no space left in tmpfs /tmp
mkdir -p tmp
TMPDIR="$PWD/tmp" hack/update-generated-docs.sh

%install

#make install
install -dm0755 %{buildroot}%{_bindir}
install -dm0755 %{buildroot}%{_unitdir}/kubelet.service.d/
install -dm0755 %{buildroot}%{_sysconfdir}/sysconfig
install -dm0755 %{buildroot}%{_sysconfdir}/kubernetes/manifests
install -dm0755 %{buildroot}%{_sysconfdir}/sysconfig/kubelet
install -dm0755 %{buildroot}%{_sysconfdir}/cni/net.d
install -dm0755 %{buildroot}%{_libexecdir}/modules-load.d
install -dm0755 %{buildroot}%{_sysctldir}
install -dm0755 %{buildroot}%{_mandir}/man1

# kubeadm
install -Dm0755 _output/bin/kubeadm %{buildroot}%{_bindir}/kubeadm

# kubelet
install -Dm0755 _output/bin/kubelet %{buildroot}%{_bindir}/kubelet
install -Dm0644 %{SOURCE1} %{buildroot}%{_unitdir}/kubelet.service
install -Dm0644 %{SOURCE2} %{buildroot}%{_unitdir}/kubelet.service.d/10-kubeadm.conf
install -Dm0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/kubelet

# kubectl
install -Dm0755 _output/bin/kubectl %{buildroot}%{_bindir}/kubectl

# other bins
install -Dm0755 _output/bin/kube-* %{buildroot}%{_bindir}

# docs
install -Dm0644 docs/man/man1/* %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13898 |21mr|kubrick-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Game based on Rubik's Cube
Name:		kubrick
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kubrick/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Kubrick is a game based on the Rubik's Cube™ puzzle.

The cube sizes range from 2x2x2 up to 6x6x6, or you can play with irregular
"bricks" such as 5x3x2 or "mats" such as 6x4x1 or 2x2x1. The game has a
selection of puzzles at several levels of difficulty, as well as demos of
pretty patterns and solution moves, or you can make up your own puzzles.

%files -f %{name}.lang
%{_kde5_bindir}/kubrick
%{_kde5_applicationsdir}/org.kde.kubrick.desktop
%{_kde5_datadir}/kubrick
%{_kde5_datadir}/qlogging-categories5/kubrick.categories
%{_kde5_iconsdir}/hicolor/*/apps/kubrick.*
%{_appdatadir}/org.kde.kubrick.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13899 |21mr|kunitconversion-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 unit conversion module
Name:		kunitconversion
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	ki18n-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 unit conversion module.

KUnitConversion provides functions to convert values in different physical
units. It supports converting different prefixes (e.g. kilo, mega, giga) as
well as converting between different unit systems (e.g. liters, gallons).

%files
%{_kde5_datadir}/qlogging-categories5/kunitconversion.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KUnitConversion translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KUnitConversion translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5unitconversion_major 5
%define libkf5unitconversion %mklibname kf5unitconversion %{kf5unitconversion_major}

%package -n %{libkf5unitconversion}
Summary:	KDE Frameworks 5 unit conversion shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5unitconversion}
KDE Frameworks 5 unit conversion shared library.

%files -n %{libkf5unitconversion}
%{_kde5_libdir}/libKF5UnitConversion.so.%{kf5unitconversion_major}*

#----------------------------------------------------------------------------

%define devkf5unitconversion %mklibname kf5unitconversion -d

%package -n %{devkf5unitconversion}
Summary:	Development files for KDE Frameworks 5 unit conversion module
Group:		Development/KDE and Qt
Requires:	%{libkf5unitconversion} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5unitconversion-devel = %{version}

%description -n %{devkf5unitconversion}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5unitconversion}
%{_kde5_includedir}/KF5/KUnitConversion
%{_kde5_libdir}/cmake/KF5UnitConversion
%{_kde5_libdir}/libKF5UnitConversion.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13900 |21mr|kuserfeedback-1.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Framework for collecting user feedback for applications
Name:		kuserfeedback
Version:	1.0.0
Release:	4
License:	GPLv2+
Group:		Development/KDE and Qt
Url:		https://api.kde.org/frameworks/kuserfeedback/html/index.html
Source0:	https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
Source1:	kuserfeedback_ru.tar.gz
BuildRequires:	bison
BuildRequires:	extra-cmake-modules
BuildRequires:	flex
BuildRequires:	qdoc5
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Charts)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Framework for collecting user feedback for applications.

%files -f %{name}.lang
%{_kde5_applicationsdir}/UserFeedbackConsole.desktop
%{_kde5_bindir}/UserFeedbackConsole
%{_kde5_bindir}/userfeedbackctl
%{_kde5_datadir}/KDE/UserFeedbackConsole/
%{_kde5_qmldir}/org/kde/userfeedback/*
%{_sysconfdir}/xdg/org_kde_UserFeedback.categories

#----------------------------------------------------------------------------

%define kuserfeedbackcore_major 1
%define libkuserfeedbackcore %mklibname kuserfeedbackcore %{kuserfeedbackcore_major}

%package -n %{libkuserfeedbackcore}
Summary:	KUser Feedback Core library
Group:		System/Libraries

%description -n %{libkuserfeedbackcore}
KUser Feedback Core library.

%files -n %{libkuserfeedbackcore}
%{_kde5_libdir}/libKUserFeedbackCore.so.%{kuserfeedbackcore_major}*

#----------------------------------------------------------------------------

%define kuserfeedbackwidgets_major 1
%define libkuserfeedbackwidgets %mklibname kuserfeedbackwidgets %{kuserfeedbackwidgets_major}

%package -n %{libkuserfeedbackwidgets}
Summary:	KUser Feedback Widgets library
Group:		System/Libraries

%description -n %{libkuserfeedbackwidgets}
KUser Feedback Widgets library.

%files -n %{libkuserfeedbackwidgets}
%{_kde5_libdir}/libKUserFeedbackWidgets.so.%{kuserfeedbackwidgets_major}*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/KDE and Qt
Requires:	%{libkuserfeedbackcore} = %{EVRD}
Requires:	%{libkuserfeedbackwidgets} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for development with %{name}.

%files -n %{devname}
%{_kde5_includedir}/KUserFeedback/
%{_kde5_libdir}/libKUserFeedbackCore.so
%{_kde5_libdir}/libKUserFeedbackWidgets.so
%{_kde5_libdir}/cmake/KUserFeedback/
%{_kde5_mkspecsdir}/qt_KUserFeedbackCore.pri
%{_kde5_mkspecsdir}/qt_KUserFeedbackWidgets.pri

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang userfeedbackconsole5 userfeedbackprovider5 %{name}.lang --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13901 |21mr|kwallet-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 secure and unified container for user passwords module
Name:		kwallet
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	gpgme-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5configwidgets-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5dbusaddons-devel = %{version}
BuildRequires:	kf5doctools-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5iconthemes-devel = %{version}
BuildRequires:	kf5notifications-devel = %{version}
BuildRequires:	kf5service-devel = %{version}
BuildRequires:	kf5widgetsaddons-devel = %{version}
BuildRequires:	kf5windowsystem-devel = %{version}
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	qgpgme-devel
Requires:	qca2-qt5

%description
KDE Frameworks 5 secure and unified container for user passwords module.

This framework contains two main components:
* Interface to KWallet, the safe desktop-wide storage for passwords on KDE
  workspaces.
* The kwalletd used to safely store the passwords on KDE workspaces.

%files
%{_kde5_applicationsdir}/org.kde.kwalletd5.desktop
%{_kde5_bindir}/kwalletd5
%{_kde5_bindir}/kwallet-query
%{_kde5_datadir}/qlogging-categories5/kwallet.categories
%{_kde5_datadir}/qlogging-categories5/kwallet.renamecategories
%{_kde5_mandir}/man1/kwallet-query.1*
%{_kde5_notificationsdir}/kwalletd5.notifyrc
%{_kde5_services}/kwalletd5.desktop
%{_datadir}/dbus-1/services/org.kde.kwalletd5.service

#----------------------------------------------------------------------------

%package i18n
Summary:	KWallet translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KWallet translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5wallet_major 5
%define libkf5wallet %mklibname kf5wallet %{kf5wallet_major}

%package -n %{libkf5wallet}
Summary:	KDE Frameworks 5 user passwords container shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5wallet}
KDE Frameworks 5 user passwords container shared library.

%files -n %{libkf5wallet}
%{_kde5_libdir}/libKF5Wallet.so.%{kf5wallet_major}*

#----------------------------------------------------------------------------

%define kf5walletbackend_major 5
%define libkf5walletbackend %mklibname kf5walletbackend5_ %{kf5walletbackend_major}

%package -n %{libkf5walletbackend}
Summary:	KDE Frameworks 5 user passwords container shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5walletbackend}
KDE Frameworks 5 user passwords container shared library.

%files -n %{libkf5walletbackend}
%{_kde5_libdir}/libkwalletbackend5.so.%{kf5walletbackend_major}*

#----------------------------------------------------------------------------

%define devkf5wallet %mklibname kf5wallet -d

%package -n %{devkf5wallet}
Summary:	Development files for KDE Frameworks 5 user passwords container module
Group:		Development/KDE and Qt
Requires:	%{libkf5wallet} = %{EVRD}
Requires:	%{libkf5walletbackend} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5wallet-devel = %{version}

%description -n %{devkf5wallet}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5wallet}
%{_kde5_includedir}/KF5/KWallet/
%{_kde5_libdir}/libKF5Wallet.so
%{_kde5_libdir}/libkwalletbackend5.so
%{_kde5_libdir}/cmake/KF5Wallet
%{_kde5_mkspecsdir}/*.pri
%{_datadir}/dbus-1/interfaces/kf5_org.kde.*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13902 |21mr|kwallet-pam-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 KWallet PAM module
Name:		kwallet-pam
Version:	5.27.11
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	socat
BuildRequires:	kf5wallet-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(Qt5Core)
Requires:	socat

%description
Plasma 5 KWallet PAM module.

To enable it add these lines to /etc/pam.d/kde:

---------------------
auth            optional        pam_kwallet5.so
session         optional        pam_kwallet5.so
---------------------

%files
%{_kde5_autostart}/pam_kwallet_init.desktop
%{_kde5_libexecdir}/pam_kwallet_init
/%{_lib}/security/pam_kwallet5.so
%{_prefix}/lib/systemd/user/plasma-kwallet-pam.service

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}/%{_lib}/security/
mv %{buildroot}%{_kde5_libdir}/security/pam_kwallet5.so %{buildroot}/%{_lib}/security/pam_kwallet5.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13903 |21mr|kwave-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 23
%define libname %mklibname %{name} %{major}
%define libgui %mklibname %{name}gui %{major}

Summary:	A sound editor for KDE
Name:		kwave
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Sound
Url:		http://kwave.sourceforge.net/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules >= 1.7.0
BuildRequires:	doxygen
BuildRequires:	imagemagick
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libid3-devel >= 3.8.1
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(audiofile) >= 0.3.0
BuildRequires:	pkgconfig(fftw3) >= 3.0
BuildRequires:	pkgconfig(flac++) >= 1.2.0
BuildRequires:	pkgconfig(libpulse) >= 0.9.16
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(opus) >= 1.0.0
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.11.2
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(samplerate) >= 0.1.3
BuildRequires:	pkgconfig(vorbis) >= 1.1.0
BuildRequires:	pkgconfig(vorbisenc) >= 1.1.0

%description
Kwave is a sound editor designed for the K Desktop Environment. With Kwave
you can edit many sorts of wav-files including multi-channel files. You are
able to alter and play back each channel on its own. It also includes many
plugins (most are still under development) to transform the wave-file in
several ways and presents a graphical view with a complete zoom and scroll
capability.

%files -f %{name}.lang
%doc CHANGES README TODO
%{_kde5_bindir}/%{name}
%{_kde5_iconsdir}/*/*/apps/%{name}.*
%{_kde5_iconsdir}/*/*/actions/%{name}*
%{_kde5_applicationsdir}/org.kde.kwave.desktop
%{_kde5_datadir}/%{name}/menus.config
%{_kde5_datadir}/%{name}/pics/*
%{_appdatadir}/org.kde.kwave.appdata.xml
%{_qt5_plugindir}/%{name}/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries needed by %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries needed for %{name}.

%files -n %{libname}
%doc LICENSES
%{_kde5_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgui}
Summary:	Libraries needed by %{name}
Group:		System/Libraries
Conflicts:	%{_lib}kwave0 < 0.8.10

%description -n %{libgui}
Libraries needed for %{name}.

%files -n %{libgui}
%doc LICENSES
%{_kde5_libdir}/lib%{name}gui.so.%{major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
	-DWITH_MP3=ON \
	-DWITH_DOC=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13904 |21mr|kwayland-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 Wayland support library
Name:		kwayland
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	wayland-tools
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(wayland-server)

%description
KDE Frameworks 5 Wayland support library.

%files
%{_kde5_datadir}/qlogging-categories5/kwayland.categories
%{_kde5_datadir}/qlogging-categories5/kwayland.renamecategories
%{_kde5_libexecdir}/org-kde-kf5-kwayland-testserver

#----------------------------------------------------------------------------

%define kf5waylandclient_major 5
%define libkf5waylandclient %mklibname kf5waylandclient %{kf5waylandclient_major}

%package -n %{libkf5waylandclient}
Summary:	KDE Frameworks 5 Wayland support shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5waylandclient}
KDE Frameworks 5 Wayland support shared library.

%files -n %{libkf5waylandclient}
%{_kde5_libdir}/libKF5WaylandClient.so.%{kf5waylandclient_major}*

#----------------------------------------------------------------------------

%define kf5waylandserver_major 5
%define libkf5waylandserver %mklibname kf5waylandserver %{kf5waylandserver_major}

%package -n %{libkf5waylandserver}
Summary:	KDE Frameworks 5 Wayland support shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5waylandserver}
KDE Frameworks 5 Wayland support shared library.

%files -n %{libkf5waylandserver}
%{_kde5_libdir}/libKF5WaylandServer.so.%{kf5waylandserver_major}*

#----------------------------------------------------------------------------

%define devkf5wayland %mklibname kf5wayland -d

%package -n %{devkf5wayland}
Summary:	Development files for KDE Frameworks 5 Wayland support library
Group:		Development/KDE and Qt
Requires:	%{libkf5waylandclient} = %{EVRD}
Requires:	%{libkf5waylandserver} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5wayland-devel = %{version}

%description -n %{devkf5wayland}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5wayland}
%{_kde5_includedir}/KF5/KWayland
%{_kde5_libdir}/cmake/KF5Wayland
%{_kde5_libdir}/libKF5WaylandClient.so
%{_kde5_libdir}/libKF5WaylandServer.so
%{_kde5_libdir}/pkgconfig/KF5WaylandClient.pc
%{_kde5_mkspecsdir}/qt_KWaylandClient.pri
%{_kde5_mkspecsdir}/qt_KWaylandServer.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13905 |21mr|kwayland-integration-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Wayland integration plugins
Name:		kwayland-integration
Version:	5.27.11
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	wayland-protocols-devel

%description
Plasma 5 Wayland integration plugins for IdleTime and WindowSystem.

%files
%{_kde5_datadir}/qlogging-categories5/kwindowsystem.kwayland.categories
%{_kde5_plugindir}/kwindowsystem/KF5WindowSystemKWaylandPlugin.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13906 |21mr|kwayland-server-5.24.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	KDE Library for integration with the Wayland display server
Name: 		kwayland-server
Version:	5.24.6
Release: 	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url: 		http://kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	wayland-tools
BuildRequires:	kf5wayland-devel
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(wayland-server)

%description
KDE Library for integration with the Wayland display server.

%files
%{_datadir}/qlogging-categories5/kwaylandserver.categories

#----------------------------------------------------------------------------

%define major 5
%define libkwaylandserver %mklibname kwaylandserver %{major}

%package -n %{libkwaylandserver}
Summary:	KDE Library for working with the Wayland display server
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkwaylandserver}
KDE Library for working with the Wayland display server

%files -n %{libkwaylandserver}
%{_libdir}/libKWaylandServer.so.%{major}*

#----------------------------------------------------------------------------

%define devkwaylandserver %mklibname kwaylandserver -d

%package -n %{devkwaylandserver}
Summary:	Development files for KDE Wayland display server integration
Group:		Development/KDE and Qt
Requires:	%{libkwaylandserver} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkwaylandserver}
Development files for KDE Wayland display server integration

%files -n %{devkwaylandserver}
%{_includedir}/KWaylandServer
%{_includedir}/kwaylandserver_version.h
%{_libdir}/cmake/KWaylandServer
%{_libdir}/libKWaylandServer.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5 \
        -DBUILD_TESTING=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13907 |21mr|kweather-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Weather applet for Plasma Mobile
Name:		kweather
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Charts)
BuildRequires:	plasma-framework
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5quickcharts-devel
BuildRequires:	kf5weathercore-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	pkgconfig(openssl)

%description
Weather applet for Plasma Mobile.

%files -f %{name}.lang
%{_kde5_bindir}/kweather
%{_kde5_applicationsdir}/org.kde.kweather.desktop
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kweather_1x4
%{_kde5_datadir}/icons/*/scalable/apps/org.kde.kweather.svg
%{_qt5_plugindir}/plasma/applets/plasma_applet_kweather_1x4.so
%{_datadir}/dbus-1/services/org.kde.kweather.service
%{_appdatadir}/org.kde.kweather.appdata.xml
%{_appdatadir}/org.kde.plasma.kweather_1x4.appdata.xml

#----------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13908 |21mr|kweathercore-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname KF5WeatherCore %{major}
%define devname %mklibname KF5WeatherCore -d
%define stable %([ "`echo %{version} |cut -d. -f3`" -ge 80 ] && echo -n un; echo -n stable)

Summary:	KDE library for handling weather data
Name:	kweathercore
Version:	0.7
Release:	1
Group:	 System/Libraries
License:	GPL
URL:    https://invent.kde.org/libraries/kweathercore
Source0: https://mirrors.xtom.ee/kde/stable/kweathercore/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5i18n-devel

%description
KDE library for handling weather data

#-------------------------------------------------------

%package -n %{libname}
Summary: KDE library for handling weather data
Group: System/Libraries

%files -n %{libname}
%{_libdir}/*.so.%{major}*
%{_libdir}/*.so.5

#-------------------------------------------------------

%description -n %{libname}
KDE library for handling weather data

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}
Provides:   kf5weathercore-devel
Provides:   KF5WeatherCore-devel

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_libdir}/qt5/mkspecs/modules/*.pri

#-------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13909 |21mr|kwidgetsaddons-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 Widgets addons with various classes on top of QtWidgets
Name:		kwidgetsaddons
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 Widgets addons with various classes on top of QtWidgets.

%files
%{_kde5_datadir}/kf5/kcharselect/kcharselect-data
%{_kde5_datadir}/qlogging-categories5/kwidgetsaddons.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KWidgetsAddons translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KWidgetsAddons translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kwidgetsaddons5widgets.so

#----------------------------------------------------------------------------

%define kf5widgetsaddons_major 5
%define libkf5widgetsaddons %mklibname kf5widgetsaddons %{kf5widgetsaddons_major}

%package -n %{libkf5widgetsaddons}
Summary:	KDE Frameworks 5 Widgets addons shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5widgetsaddons}
KDE Frameworks 5 Widgets addons shared library.

%files -n %{libkf5widgetsaddons}
%{_kde5_libdir}/libKF5WidgetsAddons.so.%{kf5widgetsaddons_major}*

#----------------------------------------------------------------------------

%define devkf5widgetsaddons %mklibname kf5widgetsaddons -d

%package -n %{devkf5widgetsaddons}
Summary:	Development files for KDE Frameworks 5 Widgets addons
Group:		Development/KDE and Qt
Requires:	%{libkf5widgetsaddons} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5widgetsaddons-devel = %{version}

%description -n %{devkf5widgetsaddons}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5widgetsaddons}
%{_kde5_includedir}/KF5/KWidgetsAddons
%{_kde5_libdir}/cmake/KF5WidgetsAddons
%{_kde5_libdir}/libKF5WidgetsAddons.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13910 |21mr|kwindowsystem-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 module with various classes for window management
Name:		kwindowsystem
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
# Drop win32 support, needed to prevent the dependency generator
# from generating dependencies on Qt5WinExtras
Patch0: kwindowsystem-no-win32.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xfixes)

%description
KDE Frameworks 5 module with various classes for window management.

KWindowSystem provides access to certain properties and features of the
window manager.

KWindowSystem provides information about the state of the window
manager and allows asking the window manager to change them using a
more high-level interface than the NETWinInfo/NETRootInfo lowlevel
classes.

%files
%{_kde5_datadir}/qlogging-categories5/kwindowsystem.categories
%{_kde5_datadir}/qlogging-categories5/kwindowsystem.renamecategories
%{_kde5_plugindir}/kwindowsystem/KF5WindowSystemX11Plugin.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KWindowSystem translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KWindowSystem translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5windowsystem_major 5
%define libkf5windowsystem %mklibname kf5windowsystem %{kf5windowsystem_major}

%package -n %{libkf5windowsystem}
Summary:	KDE Frameworks 5 KWindowSystem shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5windowsystem}
KDE Frameworks 5 KWindowSystem shared library.

%files -n %{libkf5windowsystem}
%{_kde5_libdir}/libKF5WindowSystem.so.%{kf5windowsystem_major}*

#----------------------------------------------------------------------------

%define devkf5windowsystem %mklibname kf5windowsystem -d

%package -n %{devkf5windowsystem}
Summary:	Development files for KDE Frameworks 5 KWindowSystem
Group:		Development/KDE and Qt
Requires:	%{libkf5windowsystem} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5windowsystem-devel = %{version}

%description -n %{devkf5windowsystem}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5windowsystem}
%{_kde5_includedir}/KF5/KWindowSystem
%{_kde5_libdir}/cmake/KF5WindowSystem
%{_kde5_libdir}/libKF5WindowSystem.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13911 |21mr|kwordquiz-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A general purpose flash card program
Name:		kwordquiz
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/kwordquiz
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		fix.build.KirigamiAddons.version.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	libkeduvocdocument-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kdeedu-data

%description
KWordQuiz is a general purpose flash card program. It can be used for
vocabulary learning and many other subjects. If you need more advanced
language learning features, please try KVocTrain.

%files -f %{name}.lang
%doc AUTHORS
%{_kde5_applicationsdir}/org.kde.kwordquiz.desktop
%{_kde5_bindir}/kwordquiz
%{_kde5_datadir}/kwordquiz
%{_kde5_datadir}/config.kcfg/kwordquiz.kcfg
%{_kde5_datadir}/knsrcfiles/kwordquiz.knsrc
%{_kde5_iconsdir}/hicolor/scalable/apps/org.kde.kwordquiz.svg
%{_kde5_iconsdir}/*/*/apps/kwordquiz.*
%{_kde5_iconsdir}/*/*/mimetypes/application-x-kwordquiz.*
%{_kde5_notificationsdir}/kwordquiz.notifyrc
%{_appdatadir}/org.kde.kwordquiz.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13912 |21mr|kwrited-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 write daemon
Name:		kwrited
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5pty-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Plasma 5 write daemon. It's used to watch for messages from local users sent
with write(1) or wall(1).

%files
%{_kde5_notificationsdir}/kwrited.notifyrc
%{_qt5_plugindir}/kf5/kded/kwrited.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13913 |21mr|kxml-2.3.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           kxml
Version:        2.3.0
Release:        19
Summary:        Small XML pull parser
License:        MIT
URL:            http://kxml.sourceforge.net/
# ./create-tarball %%{version}
Source0:        %{name}-%{version}-clean.tar.gz
Source1:        http://repo1.maven.org/maven2/net/sf/kxml/kxml2/%{version}/kxml2-%{version}.pom
Source2:        http://repo1.maven.org/maven2/net/sf/kxml/kxml2-min/%{version}/kxml2-min-%{version}.pom
Source3:        %{name}-%{version}-OSGI-MANIFEST.MF

Patch0:         0001-Unbundle-xpp3-classes.patch

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  xpp3 >= 0:1.1.3.1
Requires:       xpp3 >= 0:1.1.3.1

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
kXML is a small XML pull parser, specially designed for constrained
environments such as Applets, Personal Java or MIDP devices.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
API documentation for %{name}.

%prep
%setup -q
%patch0 -p1

%build
export OPT_JAR_LIST=xpp3
ant

jar ufm dist/%{name}2-%{version}.jar %{SOURCE3}

%mvn_artifact %{SOURCE1} dist/%{name}2-%{version}.jar
%mvn_artifact %{SOURCE2} dist/%{name}2-min-%{version}.jar

# Compat symlinks
%mvn_file :kxml2 kxml/kxml2 kxml
%mvn_file :kxml2-min kxml/kxml2-min kxml-min

%install
%mvn_install -J www/kxml2/javadoc

%files -f .mfiles
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13914 |21mr|kxmlgui-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 user configurable main windows module
Name:		kxmlgui
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5attica-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 user configurable main windows module.

KXMLGUI provides a framework for managing menu and toolbar actions in an
abstract way. The actions are configured through a XML description and
hooks in the application code. The framework supports merging of multiple
description for example for integrating actions from plugins.

%files
%{_kde5_libexecdir}/kf5/ksendbugmail
%{_kde5_configdir}/ui/ui_standards.rc
%{_kde5_datadir}/qlogging-categories5/kxmlgui.categories
%{_kde5_datadir}/qlogging-categories5/kxmlgui.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KXmlGui translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KXmlGui translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/kxmlgui5widgets.so

#----------------------------------------------------------------------------

%define kf5xmlgui_major 5
%define libkf5xmlgui %mklibname kf5xmlgui %{kf5xmlgui_major}

%package -n %{libkf5xmlgui}
Summary:	KDE Frameworks 5 user configurable main windows shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5xmlgui}
KDE Frameworks 5 user configurable main windows shared library.

%files -n %{libkf5xmlgui}
%{_kde5_libdir}/libKF5XmlGui.so.%{kf5xmlgui_major}*

#----------------------------------------------------------------------------

%define devkf5xmlgui %mklibname kf5xmlgui -d

%package -n %{devkf5xmlgui}
Summary:	Development files for KDE Frameworks 5 user configurable main windows module
Group:		Development/KDE and Qt
Requires:	%{libkf5xmlgui} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5xmlgui-devel = %{version}

%description -n %{devkf5xmlgui}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5xmlgui}
%{_kde5_includedir}/KF5/KXmlGui
%{_kde5_libdir}/cmake/KF5XmlGui
%{_kde5_libdir}/libKF5XmlGui.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13915 |21mr|kxmlrpcclient-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 XMLRPC services interaction module
Name:		kxmlrpcclient
Version:	5.116.0
Release:	2
License:	BSD
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/portingAids/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 XMLRPC services interaction module.

KXmlRpcClient contains simple XML-RPC Client support. It is a complete
client and is quite easy to use. Only one interface is exposed to the
world, kxmlrpcclient/client.h and of that interface, you only need to
use 3 methods: setUrl, setUserAgent and call.

A small note on authentication. If you will be accessing an XML-RPC server
which uses HTTP-AUTH, simply set the user and pass in the URL. To use
Digest authentication, call setDigestAuthEnabled(true).

%files
%{_kde5_datadir}/qlogging-categories5/kxmlrpcclient.categories
%{_kde5_datadir}/qlogging-categories5/kxmlrpcclient.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KXmlRpcClient translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KXmlRpcClient translations.

%files i18n -f libkxmlrpcclient5.lang

#----------------------------------------------------------------------------

%define kf5xmlrpcclient_major 5
%define libkf5xmlrpcclient %mklibname kf5xmlrpcclient %{kf5xmlrpcclient_major}

%package -n %{libkf5xmlrpcclient}
Summary:	KDE Frameworks 5 XMLRPC services interaction shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5xmlrpcclient}
KDE Frameworks 5 XMLRPC services interaction shared library.

%files -n %{libkf5xmlrpcclient}
%{_kde5_libdir}/libKF5XmlRpcClient.so.%{kf5xmlrpcclient_major}*

#----------------------------------------------------------------------------

%define devkf5xmlrpcclient %mklibname kf5xmlrpcclient -d

%package -n %{devkf5xmlrpcclient}
Summary:	Development files for KDE Frameworks 5 XMLRPC services interaction module
Group:		Development/KDE and Qt
Requires:	%{libkf5xmlrpcclient} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5xmlrpcclient-devel = %{version}

%description -n %{devkf5xmlrpcclient}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5xmlrpcclient}
%{_kde5_includedir}/KF5/KXmlRpcClient
%{_kde5_libdir}/cmake/KF5XmlRpcClient
%{_kde5_libdir}/libKF5XmlRpcClient.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkxmlrpcclient5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13916 |21mr|kyua-0.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _testsdir %{_libexecdir}/%{name}/tests
%global _make_args pkgtestsdir=%{_testsdir} testsdir=%{_testsdir}

Name:           kyua
Version:        0.13
Release:        2
Summary:        Testing framework for infrastructure software
Group:          Development/C
License:        BSD
URL:            https://github.com/jmmv/kyua
Source0:        %{url}/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
BuildRequires:  make
BuildRequires:  gcc-c++
BuildRequires:  libatf-c++-devel
BuildRequires:  atf-sh-devel
BuildRequires:  pkgconfig(lutok)
BuildRequires:  pkgconfig(sqlite3)
Provides:       kyua-cli = %{EVRD}
Provides:       kyua-tests = %{EVRD}

%description
Kyua is a testing framework for infrastructure software, originally designed
to equip BSD-based operating systems with a test suite. This means that
Kyua is lightweight and simple, and that Kyua integrates well with various
build systems and continuous integration frameworks.

Kyua features an expressive test suite definition language, a safe runtime
engine for test suites and a powerful report generation engine.

Kyua is for both developers and users, from the developer applying a simple
fix to a library to the system administrator deploying a new release
on a production machine.

Kyua is able to execute test programs written with a plethora of
testing libraries and languages. The library of choice is ATF, for which
Kyua was originally designed, but simple, framework-less test programs and
TAP-compliant test programs can also be executed through Kyua.

%files
%doc AUTHORS CONTRIBUTORS NEWS.md README.md LICENSE
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man5/%{name}*.5*
#------------------------------------------------------------------------------

%package tests
Summary:        Runtime tests of the Kyua toolchain
Group:          Development/C
Requires:       %{name} = %{EVRD}

%description tests
Testing framework for infrastructure software

%files tests
%{_libexecdir}/%{name}/
#------------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
  --with-doxygen=no   \
  --with-with-atf=yes
%make_build %{_make_args}

%install
%make_install %{_make_args} doc_DATA=

%check
# Tests expect dumping core to file which is different from machine to machine
HOME=$(pwd)/check %make_build check %{_make_args} || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13917 |21mr|la-capitaine-icon-theme-0.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Icon theme inspired by macOS and Google's Material Design
Name:		la-capitaine-icon-theme
Version:	0.6.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://github.com/keeferrourke/la-capitaine-icon-theme
Source0:	https://github.com/keeferrourke/la-capitaine-icon-theme/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.xz
Requires:	%{name}-common = %{EVRD}
BuildArch:	noarch

%description
Icon theme inspired by macOS and Google's Material Design.

%files
%{_iconsdir}/la-capitaine

#----------------------------------------------------------------------------

%package common
Summary:	Icon theme inspired by macOS and Google's Material Design
Group:		Graphical desktop/Other

%description common
Icon theme inspired by macOS and Google's Material Design, common files.

%files common
%doc README.md
%license COPYING LICENSE
%{_iconsdir}/la-capitaine-common

#----------------------------------------------------------------------------

%package dark
Summary:	Dark icon theme inspired by macOS and Google's Material Design
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}

%description dark
Dark icon theme inspired by macOS and Google's Material Design.

%files dark
%{_iconsdir}/la-capitaine-dark

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# From configure
ln -sf distributor-logo-rosa.svg places/scalable/distributor-logo.svg
ln -sf ../../places/scalable/distributor-logo.svg apps/scalable/cs-desktop.svg
ln -sf ../../places/scalable/distributor-logo.svg apps/scalable/applications-system.svg
rm -f mimetypes/scalable/application-x-desktop.svg

# Delete broken icons
rm -f apps/scalable/net.lutris.Lutris
rm -f apps/scalable/*jdk?
rm -f places/scalable/folder-grive
unlink apps/scalable/archlinux.svg
unlink apps/scalable/configure-debian.svg
unlink apps/scalable/debian-logo.svg
unlink apps/scalable/debian-plymouth-manager.svg
unlink apps/scalable/debian.svg
unlink apps/scalable/gnome-debian.svg
unlink apps/scalable/kubuntu.svg
unlink mimetypes/scalable/gnome-mime-application-x-desktop.svg

chmod -x apps/scalable/org.gabmus.hydrapaper.svg

# Fix unknown icons
sed -i "s/Inherits=.*/&,hicolor/" index.theme

sed -i "/Directories=/ s@\(=\|,\)\([0-9a-z/-]\+\)\(,\|$\)@\1../../la-capitaine-common/\2\3@g" index.theme
sed -i "s@\[\(.*\)\]@[../../la-capitaine-common/\1]@" index.theme
for i in "Icon Theme" actions/22x22 devices/scalable panel/{16,24} places/16x16 status/scalable; do
	sed -i "s@\.\./\.\./la-capitaine-common/$i@$i@g" index.theme
done

%install
mkdir -p %{buildroot}%{_iconsdir}/la-capitaine{,-dark,-common}/{actions,devices,panel,places,status}
for i in actions/22x22 devices/scalable panel/{16,24} places/16x16 status/scalable; do
	unlink $i
	mv -f $i-dark %{buildroot}%{_iconsdir}/la-capitaine-dark/$i
	mv -f $i-light %{buildroot}%{_iconsdir}/la-capitaine/$i
done
cp -r actions animations apps devices emblems emotes mimetypes panel places status %{buildroot}%{_iconsdir}/la-capitaine-common/

cp index.theme %{buildroot}%{_iconsdir}/la-capitaine/
cat index.theme |sed "s/La Capitaine/& Dark/" >%{buildroot}%{_iconsdir}/la-capitaine-dark/index.theme

find %{buildroot} -type d -empty -delete
find %{buildroot} -xtype l |grep -q "" && Need to fix broken symlinks
find %{buildroot} -type l |grep -v "\.svg$" && Need to fix dirs or non svg symlinks

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13918 |21mr|ladish-1-12.git4be0b8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

%define commit 4be0b87b4cb353002ff96cbc3cef67245a9b7a1a
%define commit2 9be30b9ff4259e4a5b6896ba628065db4e65de0f
%define commit_short %(echo %{commit} | head -c6)

%bcond_with gui

Summary:	LADI Audio Session Handler
Name:		ladish
Version:	1
Release:	12.git%{commit_short}.1
License:	GPLv2+
Group:		Sound
# Original http://ladish.org is dead
Url:		https://github.com/LADI/ladish
Source0:	https://github.com/LADI/ladish/archive/%{commit}.zip?/%{name}-%{commit}.zip
Source1:	laditools-%{commit2}.tar.gz
Patch1:		ladish-locale-build.patch
Patch2:		laditools-remove-commit-version.patch
Patch3:		ladish-aarch64.patch
BuildRequires:	meson
BuildRequires:	git
BuildRequires:	intltool
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(jack) >= 1.9.0
%if %{with gui}
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libgnomecanvasmm-2.6)
%endif
BuildRequires:	pkgconfig(uuid)
# for laditools
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	python3egg(python-distutils-extra)
BuildRequires:	python3egg(setuptools)
BuildRequires:	librsvg
Requires:	laditools
Recommends:	a2jmidid

%description
Session management system for JACK applications on GNU/Linux. Its aim
is to have many different audio programs running at once, to save their
setup, close them down and then easily reload the setup at some other
time. ladish doesn't deal with any kind of audio or MIDI data itself;
it just runs programs, deals with saving/loading (arbitrary) data and
connects JACK ports together.
Ladish has a GUI frontend called gladish, based on lpatchage (LADI Patchage)
and the ladish_control command line app for headless operation.

%files
%doc %{_datadir}/%{name}/README
%doc %{_datadir}/%{name}/AUTHORS
%doc %{_datadir}/%{name}/NEWS
%{_bindir}/ladishd
%{_bindir}/jmcore
%{_bindir}/ladiconfd
%{_bindir}/ladish_control
%dir %{_datadir}/%{name}
%if %{with gui}
%{_bindir}/gladish
%{_datadir}/applications/gladish.desktop
%{_datadir}/%{name}/gladish.ui
%{_datadir}/%{name}/*.png
#%%{_datadir}/dbus-1/services/org.ladish.service
#%%{_datadir}/dbus-1/services/org.ladish.conf.service
#%%{_datadir}/dbus-1/services/org.ladish.jmcore.service
%{_iconsdir}/hicolor/*/apps/gladish.png
%endif
%lang(de) %{_localedir}/de/LC_MESSAGES/ladish.mo
%lang(fr) %{_localedir}/fr/LC_MESSAGES/ladish.mo
%lang(ru) %{_localedir}/ru/LC_MESSAGES/ladish.mo

#----------------------------------------------------------------------------
# compat library

%define	major	1
%define	libname	%mklibname lash %{major}

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%doc README
%{_libdir}/liblash.so*
#----------------------------------------------------------------------------
%package -n laditools
Summary:	Tools to configure Jack
Group:		Sound

%description -n laditools
A suite of tools to configure and control the Jack Audio Connection Kit.
Laditools contains laditray, a tray icon control tool for Jack D-Bus.
This package is mandatory for installing the LADI Audio Session Handler.

%files -n laditools
%{_bindir}/g15ladi
%{_bindir}/wmladi
%{_bindir}/ladi-control-center
%{_bindir}/ladi-player
%{_bindir}/ladi-system-log
%{_bindir}/ladi-system-tray
%{python3_sitelib}/laditools
%{python3_sitelib}/laditools-1.0*.egg-info
%{_datadir}/applications/ladi-control-center.desktop
%{_datadir}/applications/ladi-player.desktop
%{_datadir}/applications/ladi-system-log.desktop
%{_datadir}/applications/ladi-system-tray.desktop
%{_datadir}/laditools/*
%lang(es) %{_localedir}/es/LC_MESSAGES/laditools.mo
%lang(it) %{_localedir}/it/LC_MESSAGES/laditools.mo
%lang(pt) %{_localedir}/pt/LC_MESSAGES/laditools.mo

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description devel
Part of the LADI Audio Session Handler. This library is preloaded to the
ladish daemon for better interfacing ladish with ALSA

%files devel
%{_includedir}/lash-1.0/lash/*.h
%{_libdir}/pkgconfig/liblash.pc

#----------------------------------------------------------------------------

%prep
%setup -n %{name}-%{commit} -a1
mv laditools-%{commit2} laditools
%apply_patches

%build
%meson  -Dliblash=enabled \
%if %{with gui}
	-Dgladish=enabled \
%else
	-Dgladish=disabled \
%endif
	-Dpylash=disabled


%meson_build
pushd laditools
%py3_build
popd

%install
%meson_install

pushd laditools
%py3_install
mkdir -p %{buildroot}%{_datadir}/locale
mkdir -p %{buildroot}%{_datadir}/applications
cp -r build/mo/* %{buildroot}%{_datadir}/locale
cp build/share/applications/* %{buildroot}%{_datadir}/applications
popd

# add compat symlink
ln -s liblash.so %{buildroot}%{_libdir}/liblash.so.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13919 |21mr|ladspa-1.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

%define	oname ladspa_sdk

Summary:	LADSPA SDK example plugins
Name:		ladspa
Version:	1.17
Release:	1
License:	LGPLv2.1+
Group:		Sound
Url:		http://www.ladspa.org/
Source0:	http://www.ladspa.org/download/%{oname}_%{version}.tgz
Source1:	ladspa.sh
Source2:	ladspa.csh
#for mkdirhier
BuildRequires:	imake
BuildRequires:	pkgconfig(sndfile)

%description
There is a large number of synthesis packages in use or development on
the Linux platform at this time. The Linux Audio Developer's Simple
Plugin API (LADSPA) attempts to give programmers the ability to write
simple `plugin' audio processors in C/C++ and link them dynamically
against a range of host applications.

This package contains the example plugins from the LADSPA SDK.

%files
%doc doc/COPYING
%attr(644,root,root) %{_sysconfdir}/profile.d/ladspa*sh
%{_libdir}/ladspa
%{_bindir}/*

#----------------------------------------------------------------------------

%package devel
Summary:	Linux Audio Developer's Simple Plugin API
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
There is a large number of synthesis packages in use or development on
the Linux platform at this time. The Linux Audio Developer's Simple
Plugin API (LADSPA) attempts to give programmers the ability to write
simple `plugin' audio processors in C/C++ and link them dynamically
against a range of host applications.

Definitive technical documentation on LADSPA plugins for both the host
and plugin is contained within copious comments within the ladspa.h
header file.

%files devel
%doc doc/*.html doc/COPYING
%{_includedir}/ladspa.h

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}_%{version}
cd doc
#fix links to the header file in the docs
sed -i "s!HREF=\"ladspa.h.txt\"!href=\"file:///usr/include/ladspa.h\"!" *.html

%build
cd src
%ifarch %{e2k}
sed -i 's/-Werror/ /' Makefile
%endif
%make targets

%install
cd src
%makeinstall \
	INSTALL_PLUGINS_DIR=%{buildroot}%{_libdir}/ladspa	\
	INSTALL_INCLUDE_DIR=%{buildroot}%{_includedir}		\
	INSTALL_BINARY_DIR=%{buildroot}%{_bindir}

install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
install -m 644 %SOURCE1 %{buildroot}%{_sysconfdir}/profile.d/ladspa.sh
install -m 644 %SOURCE2 %{buildroot}%{_sysconfdir}/profile.d/ladspa.csh
#gw replace lib by lib64 if needed
sed -i "s!/usr/lib!%{_libdir}!" %{buildroot}%{_sysconfdir}/profile.d/ladspa*sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13920 |21mr|lame-3.100-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

%define expopt 1

Summary:	LAME Ain't an MP3 Encoder
Name:		lame
Version:	3.100
Release:	4
License:	LGPLv2+
Group:		Sound
Url:		http://lame.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/lame/%{name}-%{version}.tar.gz
# Port mp3x from GTK1 to GTK2
Patch0:		lame-3.100-mp3x-gtk2.patch
# From Fedora
Patch1:		lame-3.100-libmp3lame-symbols.patch
# (tpg) patches from debian
Patch3:		07-field-width-fix.patch
Patch6:		privacy-breach.patch
Patch7:		msse.patch
# Let's give it a performance boost...
Patch12:	http://tmkk.undo.jp/lame/lame-3.100-sse-20171014.diff
Patch13:	e2k-elbrus-fix-configure.patch
BuildRequires:	autoconf2.5
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
%ifarch %{ix86}
BuildRequires:	nasm
%endif

%description
Following the great history of GNU naming, LAME originally stood for LAME
Ain't an Mp3 Encoder. LAME started life as a GPL'd patch against the
dist10 ISO demonstration source, and thus was incapable of producing an
mp3 stream or even being compiled by itself. But in May 2000, the last
remnants of the ISO source code were replaced, and now LAME is the source
code for a fully GPL'd MP3 encoder, with speed and quality to rival all
commercial competitors.

LAME is an educational tool to be used for learning about MP3 encoding.
The goal of the LAME project is to use the open source model to improve
the psycho acoustics, noise shaping and speed of MP3.

%files
%doc README TODO USAGE html/
%{_bindir}/lame
%{_bindir}/mp3rtp
%{_mandir}/man1/lame.1*

#----------------------------------------------------------------------------

%package mp3x
Summary:	MP3x analyzer for LAME
Group:		Sound
Requires:	%{name}

%description mp3x
This is a graphical analyzer for lame.

%files mp3x
%doc README
%{_bindir}/mp3x

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for lame
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libmp3lame.

%files -n %{libname}
%doc README
%{_libdir}/libmp3lame.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use libmp3lame
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libmp3lame.

%files -n %{devname}
%doc STYLEGUIDE API ChangeLog
%{_includedir}/*
%{_libdir}/libmp3lame.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library for developing programs based on libmp3lame
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Provides:	lib%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains the static library programmers will need to develop
applications which will use libmp3lame.

%files -n %{sdevname}
%{_libdir}/libmp3lame.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1
ln -s acm ACM
cp -r doc/html .
#clean unneeded files in doc dir
rm -rf html/CVS html/Makefile*
find html -name .cvsignore|xargs rm -f

%build
autoreconf -fi
sed -i -e 's/^\(\s*hardcode_libdir_flag_spec\s*=\).*/\1/' configure
%configure \
%ifarch %{ix86}
	--enable-nasm \
%endif
%if %{expopt}
	--enable-expopt \
%endif
	--enable-dynamic-frontends \
	--enable-mp3rtp \
	--enable-mp3x \
	--enable-static

#gw parallel build does not work
#gw fix building with --no-undefined
%make LIBS=-lm
#make test

%install
mkdir -p %{buildroot}%{_bindir}
%makeinstall BINDIR=%{buildroot}%{_bindir}
#clean unpackaged files
rm -rf %{buildroot}%{_datadir}/doc/lame

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13921 |21mr|langdetect-1.1-0.14.20120112
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -20120112
%global namedversion %{version}%{?namedreltag}
Name:          langdetect
Version:       1.1
Release:       0.14.20120112
Summary:       Language Detection Library for Java
License:       ASL 2.0
URL:           https://github.com/shuyo/language-detection
Source0:       http://repo1.maven.org/maven2/com/cybozu/labs/%{name}/%{namedversion}/%{name}-%{namedversion}-sources.jar
Source1:       http://repo1.maven.org/maven2/com/cybozu/labs/%{name}/%{namedversion}/%{name}-%{namedversion}.pom
# langdetect package don't include the license file
# reported @ http://code.google.com/p/language-detection/issues/detail?id=57
Source2:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.arnx:jsonic)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Langdetect is a language detection library implemented in plain Java.
It uses Bayesian filters generated from language samples retrieved from
Wikipedia to guess the language of text, achieving accuracy above 99%.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -T -q -c

# fixing incomplete source directory structure
mkdir -p src/main/{java,resources}

unzip -qq %{SOURCE0}
rm -rf META-INF
mv com src/main/java/
mv profiles* src/main/resources/

# clone source directory structure
find src/main/java/ -type d | while read dirname ; do
  newdirname=`echo $dirname | sed "s:src/main/java:src/main/resources:g"`
  mkdir -p $newdirname
done

# copy everything except *.java sources
find src/main/java/ -type f | grep -v "\.java" | while read cpfrom ; do
  cpto=`echo $cpfrom | sed "s:src/main/java:src/main/resources:g"`
  cp $cpfrom $cpto
done

cp -p %{SOURCE1} pom.xml
cp -p %{SOURCE2} .
sed -i 's/\r//' LICENSE-2.0.txt

%mvn_file : %{name}

%build

# No tests to run
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13922 |21mr|langtable-0.0.54-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Guessing reasonable defaults for locale, keyboard layout, territory, and language
Name:           langtable
Version:        0.0.54
Release:        4
Group:          Development/Tools
# the translations in languages.xml and territories.xml are (mostly)
# imported from CLDR and are thus under the Unicode license, the
# short name for this license is "MIT", see:
# https://fedoraproject.org/wiki/Licensing:MIT?rd=Licensing/MIT#Modern_Style_without_sublicense_.28Unicode.29
License:        GPLv3+
URL:            https://github.com/mike-fabian/langtable
Source0:        https://github.com/mike-fabian/langtable/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  perl
BuildRequires:  libxml2-utils
BuildRequires:	python3egg(setuptools)

%description
langtable is used to guess reasonable defaults for locale, keyboard layout,
territory, and language, if part of that information is already known. For
example, guess the territory and the keyboard layout if the language
is known or guess the language and keyboard layout if the territory is
already known.

%files
%doc COPYING unicode-license.txt README ChangeLog test_cases.py langtable/schemas/*.rng

#----------------------------------------------------------------------------

%package -n python3-langtable
%{?python_provide:%python_provide python3-langtable}
Summary:        Python module to query the langtable-data
Group:          Development/Tools
License:        GPLv3+
BuildRequires:  python3-devel
Requires:       %{name} = %{version}-%{release}
%rename %{name}-data

%description -n python3-langtable
This package contains a Python module to query the data
from langtable-data.

%files -n python3-langtable
%{python3_sitelib}/langtable-*.egg-info
%{python3_sitelib}/langtable

#----------------------------------------------------------------------------

%prep
%setup -q

perl -pi -e "s,_DATADIR = '(.*)',_DATADIR = '%{_datadir}/langtable'," langtable.py

%build
%py3_build

%install
%py3_install

# WTF it is not installed by %%py3_install?!
mkdir -p %{buildroot}%{python3_sitelib}/langtable/data
cp -v langtable/data/* %{buildroot}%{python3_sitelib}/langtable/data/

%check
(cd $RPM_BUILD_DIR/%{name}-%{version}/langtable; %{__python3} langtable.py)
(cd $RPM_BUILD_DIR/%{name}-%{version}; %{__python3} test_cases.py)

xmllint --noout --relaxng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/schemas/keyboards.rng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/data/keyboards.xml.gz
xmllint --noout --relaxng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/schemas/languages.rng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/data/languages.xml.gz
xmllint --noout --relaxng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/schemas/territories.rng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/data/territories.xml.gz
xmllint --noout --relaxng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/schemas/timezoneidparts.rng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/data/timezoneidparts.xml.gz
xmllint --noout --relaxng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/schemas/timezones.rng \
        $RPM_BUILD_DIR/%{name}-%{version}/langtable/data/timezones.xml.gz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13923 |21mr|language-detector-0.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          language-detector
Version:       0.5
Release:       8
Summary:       Language Detection Library for Java
# Source files without license headers https://github.com/optimaize/language-detector/issues/67
License:       ASL 2.0
URL:           https://github.com/optimaize/language-detector
Source0:       https://github.com/optimaize/language-detector/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.intellij:annotations)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.arnx:jsonic)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.slf4j:slf4j-api)

# This is a fork from https://code.google.com/p/lang-guess/ (forked on 2014-02-27) which itself is a fork
# of the original project https://code.google.com/p/language-detection/ with improvements
# Modified version of com.cybozu.labs:langdetect
# ./src/main/java/be/frma/langguess/GenProfile.java
# ./src/main/java/com/cybozu/labs/langdetect
Provides:      bundled(langdetect) = 1.1-20120112

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A language detector / language guesser library in Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin

%pom_change_dep :junit-dep :junit

#rm src/test/java/com/cybozu/labs/langdetect/util/TagExtractorTest.java

%mvn_file com.optimaize.languagedetector:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13924 |21mr|lapack-3.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	3
%define	libname %mklibname %{name} %{major}
%define	libname64 %mklibname %{name}64 %{major}
%define	libname64_ %mklibname %{name}64s %{major}
%define	devname %mklibname %{name} -d
%define	sdevname %mklibname %{name} -d -s

%define	libblas %mklibname blas %{major}
%define	libblas64 %mklibname blas64 %{major}
%define	libblas64_ %mklibname blas64s %{major}
%define	devblas %mklibname blas -d
%define	sdevblas %mklibname blas -d -s

Summary:	LAPACK libraries for linear algebra
Name:		lapack
Version:	3.10.1
Release:	1
License:	BSD
Group:		Sciences/Mathematics
Url:		http://www.netlib.org/lapack/
Source0:	https://github.com/Reference-LAPACK/lapack/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	http://www.netlib.org/lapack/lapackqref.ps
Source2:	http://www.netlib.org/blas/blasqr.ps
Source3:	http://www.netlib.org/lapack/manpages.tgz
BuildRequires:	cmake
BuildRequires:	gcc-gfortran

%description
LAPACK (Linear Algebra PACKage) is a standard library for numerical
linear algebra. LAPACK provides routines for solving systems of
simultaneous linear equations, least-squares solutions of linear
systems of equations, eigenvalue problems, and singular value
problems. Associated matrix factorizations (LU, Cholesky, QR, SVD,
Schur, and generalized Schur) and related computations (i.e.,
reordering of Schur factorizations and estimating condition numbers)
are also included. LAPACK can handle dense and banded matrices, but
not general sparse matrices. Similar functionality is provided for
real and complex matrices in both single and double precision. LAPACK
is coded in Fortran77 and built with gcc.

The lapack package provides the dynamic libraries for LAPACK/BLAS.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LAPACK libraries for linear algebra
Group:		Sciences/Mathematics
Requires:	%{libblas}%{?_isa} = %{EVRD}
Provides:	lib%{name} = %{EVRD}

%description -n	%{libname}
LAPACK (Linear Algebra PACKage) is a standard library for numerical
linear algebra. LAPACK provides routines for solving systems of
simultaneous linear equations, least-squares solutions of linear
systems of equations, eigenvalue problems, and singular value
problems. Associated matrix factorizations (LU, Cholesky, QR, SVD,
Schur, and generalized Schur) and related computations (i.e.,
reordering of Schur factorizations and estimating condition numbers)
are also included. LAPACK can handle dense and banded matrices, but
not general sparse matrices. Similar functionality is provided for
real and complex matrices in both single and double precision. LAPACK
is coded in Fortran77 and built with gcc.

The lapack package provides the dynamic libraries for LAPACK/BLAS.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*
%ifnarch %{e2k}
%{_libdir}/lib%{name}e.so.%{major}*
%{_libdir}/libtmglib.so.%{major}*
%endif
#----------------------------------------------------------------------------

%package -n %{libname64}
Summary:	LAPACK libraries for linear algebra
Group:		Sciences/Mathematics
Requires:	%{libblas64}%{?_isa} = %{EVRD}
Provides:	lib%{name}64 = %{EVRD}

%description -n	%{libname64}
LAPACK (Linear Algebra PACKage) is a standard library for numerical
linear algebra. LAPACK provides routines for solving systems of
simultaneous linear equations, least-squares solutions of linear
systems of equations, eigenvalue problems, and singular value
problems. Associated matrix factorizations (LU, Cholesky, QR, SVD,
Schur, and generalized Schur) and related computations (i.e.,
reordering of Schur factorizations and estimating condition numbers)
are also included. LAPACK can handle dense and banded matrices, but
not general sparse matrices. Similar functionality is provided for
real and complex matrices in both single and double precision. LAPACK
is coded in Fortran77 and built with gcc.

The lapack package provides the dynamic libraries for LAPACK/BLAS
with 64bit INTEGER support.

%ifarch x86_64 aarch64
%files -n %{libname64}
%{_libdir}/lib%{name}64.so.%{major}*
%{_libdir}/lib%{name}e64.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{libname64_}
Summary:	LAPACK libraries for linear algebra
Group:		Sciences/Mathematics
Requires:	%{libblas64}%{?_isa} = %{EVRD}
Provides:	lib%{name}64_ = %{EVRD}

%description -n	%{libname64_}
LAPACK (Linear Algebra PACKage) is a standard library for numerical
linear algebra. LAPACK provides routines for solving systems of
simultaneous linear equations, least-squares solutions of linear
systems of equations, eigenvalue problems, and singular value
problems. Associated matrix factorizations (LU, Cholesky, QR, SVD,
Schur, and generalized Schur) and related computations (i.e.,
reordering of Schur factorizations and estimating condition numbers)
are also included. LAPACK can handle dense and banded matrices, but
not general sparse matrices. Similar functionality is provided for
real and complex matrices in both single and double precision. LAPACK
is coded in Fortran77 and built with gcc.

The lapack package provides the dynamic libraries for LAPACK/BLAS.
With 64bit INTEGER support and a symbol name suffix.

%ifarch x86_64 aarch64
%files -n %{libname64_}
%{_libdir}/lib%{name}64_.so.%{major}*
%{_libdir}/lib%{name}e64_.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	LAPACK library
Group:		Sciences/Mathematics
Requires:	%{libname}%{?_isa} = %{EVRD}
Requires:	%{devblas}%{?_isa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains the headers and development libraries
necessary to develop or compile applications using lapack.

%files -n %{devname}
%{_libdir}/cmake/%{name}-%{version}/%{name}-*.cmake
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%ifnarch %{e2k}
%{_libdir}/pkgconfig/%{name}e.pc
%{_includedir}/%{name}*.h
%{_libdir}/cmake/%{name}e-%{version}/%{name}e-*.cmake
%{_libdir}/libtmglib.so
%{_libdir}/lib%{name}e.so
%endif
%ifarch x86_64 aarch64
%{_libdir}/cmake/%{name}64-%{version}/%{name}64-*.cmake
%{_libdir}/cmake/%{name}64_-%{version}/%{name}64_-*.cmake
%{_libdir}/cmake/%{name}e64-%{version}/%{name}e64-*.cmake
%{_libdir}/cmake/%{name}e64_-%{version}/%{name}e64_-*.cmake
%{_libdir}/lib%{name}64.so
%{_libdir}/lib%{name}64_.so
%{_libdir}/lib%{name}e64.so
%{_libdir}/lib%{name}e64_.so
%{_libdir}/pkgconfig/%{name}64.pc
%{_libdir}/pkgconfig/%{name}64_.pc
%{_libdir}/pkgconfig/%{name}e64.pc
%{_libdir}/pkgconfig/%{name}e64_.pc
%endif

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	LAPACK static library
Group:		Sciences/Mathematics
Requires:	%{devname}%{?_isa} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n	%{sdevname}
This package contains development libraries
necessary to develop or compile applications using lapack.

%files -n %{sdevname}
%{_libdir}/lib%{name}.a
%{_libdir}/lib%{name}_pic.a
%ifnarch %{e2k}
%{_libdir}/lib%{name}e.a
%{_libdir}/libtmglib.a
%endif
%ifarch x86_64 aarch64
%{_libdir}/lib%{name}64.a
%{_libdir}/lib%{name}64_.a
%{_libdir}/lib%{name}e64.a
%{_libdir}/lib%{name}e64_.a
%{_libdir}/lib%{name}_pic64.a
%{_libdir}/lib%{name}_pic64_.a
%endif

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for LAPACK
Group:		Sciences/Mathematics

%description doc
Man pages / documentation for LAPACK.

%files doc -f %{name}mans
%doc README.md %{name}qref.ps
%license LICENSE

#----------------------------------------------------------------------------

%package -n %{libblas}
Summary:	The BLAS (Basic Linear Algebra Subprograms) library
Group:		Sciences/Mathematics
Provides:	libblas = %{EVRD}

%description -n	%{libblas}
BLAS (Basic Linear Algebra Subprograms) is a standard library which
provides a number of basic algorithms for numerical algebra. Man
pages for blas are available in the blas-man package.

%files -n %{libblas}
%{_libdir}/libblas.so.%{major}*
%ifnarch %{e2k}
%{_libdir}/libcblas.so.%{major}*
%endif
#----------------------------------------------------------------------------

%package -n %{libblas64}
Summary:	The Basic Linear Algebra Subprograms library (64bit INTEGER)
Group:		Sciences/Mathematics
Provides:	libblas64 = %{EVRD}

%description -n	%{libblas64}
BLAS (Basic Linear Algebra Subprograms) is a standard library which
provides a number of basic algorithms for numerical algebra. Man
pages for blas are available in the blas-man package.
With 64bit INTEGER support.

%ifarch x86_64 aarch64
%files -n %{libblas64}
%{_libdir}/libblas64.so.%{major}*
%{_libdir}/libcblas64.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{libblas64_}
Summary:	The Basic Linear Algebra Subprograms library (64bit INTEGER)
Group:		Sciences/Mathematics
Provides:	libblas64_ = %{EVRD}

%description -n	%{libblas64_}
BLAS (Basic Linear Algebra Subprograms) is a standard library which
provides a number of basic algorithms for numerical algebra. Man
pages for blas are available in the blas-man package.
With 64bit INTEGER support and a symbol name suffix.

%ifarch x86_64 aarch64
%files -n %{libblas64_}
%{_libdir}/libblas64_.so.%{major}*
%{_libdir}/libcblas64_.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devblas}
Summary:	BLAS development libraries
Group:		Sciences/Mathematics
Requires:	%{libblas}%{?_isa} = %{EVRD}
Provides:	blas-devel = %{EVRD}

%description -n	%{devblas}
BLAS development libraries for applications that link statically.

%files -n %{devblas}
%{_libdir}/libblas.so
%{_libdir}/pkgconfig/blas.pc
%ifnarch %{e2k}
%{_libdir}/pkgconfig/cblas.pc
%{_libdir}/libcblas.so
%{_includedir}/cblas*.h
%{_libdir}/cmake/cblas-%{version}/cblas-*.cmake
%endif
%ifarch x86_64 aarch64
%{_libdir}/cmake/cblas64-%{version}/cblas64-*.cmake
%{_libdir}/cmake/cblas64_-%{version}/cblas64_-*.cmake
%{_libdir}/libblas64.so
%{_libdir}/libblas64_.so
%{_libdir}/libcblas64.so
%{_libdir}/libcblas64_.so
%{_libdir}/pkgconfig/blas64.pc
%{_libdir}/pkgconfig/blas64_.pc
%{_libdir}/pkgconfig/cblas64.pc
%{_libdir}/pkgconfig/cblas64_.pc
%endif

#----------------------------------------------------------------------------

%package -n %{sdevblas}
Summary:	BLAS static development libraries
Group:		Sciences/Mathematics
Requires:	%{devblas}%{?_isa} = %{EVRD}
Provides:	blas-static-devel = %{EVRD}

%description -n	%{sdevblas}
BLAS static development libraries for applications that link statically.

%files -n %{sdevblas}
%{_libdir}/libblas.a
%ifnarch %{e2k}
%{_libdir}/libcblas.a
%endif
%ifarch x86_64 aarch64
%{_libdir}/libblas64.a
%{_libdir}/libblas64_.a
%{_libdir}/libcblas64.a
%{_libdir}/libcblas64_.a
%endif

#----------------------------------------------------------------------------

%package -n blas-doc
Summary:	Documentation for BLAS
Group:		Sciences/Mathematics

%description -n blas-doc
Man pages / documentation for BLAS.

%files -n blas-doc -f blasmans
%doc blasqr.ps
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a3
cp %{SOURCE1} %{name}qref.ps
cp %{SOURCE2} blasqr.ps
mkdir -p manpages
mv man manpages/

pushd ..
cp -rf %{name}-%{version}{,-SHARED}
cp -rf %{name}-%{version}{,-STATIC}
cp -rf %{name}-%{version}{,-STATICFPIC}
%ifarch x86_64 aarch64
cp -rf %{name}-%{version}{,-SHARED64}
cp -rf %{name}-%{version}{,-STATIC64}
cp -rf %{name}-%{version}{,-STATIC64FPIC}
cp -rf %{name}-%{version}{,-SHARED64_}
cp -rf %{name}-%{version}{,-STATIC64_}
cp -rf %{name}-%{version}{,-STATIC64_FPIC}
%endif
rm -rf %{name}-%{version}/*
mv -f %{name}-%{version}-* %{name}-%{version}/
popd

%build
%ifnarch %{e2k}
%define projflags %{optflags} -frecursive --no-optimize-sibling-calls
%else
%define projflags %{optflags} -frecursive
%endif
# SHARED
%global optflags %{projflags}
pushd %{name}-%{version}-SHARED
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_TESTING=OFF	\
%ifnarch %{e2k}
	-DCBLAS=ON		\
	-DLAPACKE=ON		\
	-DLAPACKE_WITH_TMG=ON
%endif

%make
popd

# STATIC
%global optflags %{projflags}
pushd %{name}-%{version}-STATIC
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_SHARED_LIBS=OFF	\
	-DBUILD_STATIC_LIBS=ON	\
	-DBUILD_TESTING=OFF	\
%ifnarch %{e2k}
	-DCBLAS=ON		\
	-DLAPACKE=ON		\
	-DLAPACKE_WITH_TMG=ON
%endif

%make
popd

# STATICFPIC
%global optflags %{projflags}  -fPIC
pushd %{name}-%{version}-STATICFPIC
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_SHARED_LIBS=OFF	\
	-DBUILD_STATIC_LIBS=ON	\
	-DBUILD_TESTING=OFF
%make
mv lib/lib%{name}{,_pic}.a
popd

%ifarch x86_64 aarch64

# SHARED64
%global optflags %{projflags}
pushd %{name}-%{version}-SHARED64
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_INDEX64=ON	\
	-DBUILD_TESTING=OFF	\
	-DCBLAS=ON		\
	-DLAPACKE=ON
%make
popd

# STATIC64
%global optflags %{projflags}
pushd %{name}-%{version}-STATIC64
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_INDEX64=ON	\
	-DBUILD_SHARED_LIBS=OFF	\
	-DBUILD_STATIC_LIBS=ON	\
	-DBUILD_TESTING=OFF	\
	-DCBLAS=ON		\
	-DLAPACKE=ON
%make
popd

# SHARED64_
%global optflags %{projflags}
pushd %{name}-%{version}-SHARED64_
sed -i 's|64"|64_"|g' CMakeLists.txt
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_INDEX64=ON	\
	-DBUILD_TESTING=OFF	\
	-DCBLAS=ON		\
	-DLAPACKE=ON
%make
popd

# STATIC64_
%global optflags %{projflags}
pushd %{name}-%{version}-STATIC64_
sed -i 's|64"|64_"|g' CMakeLists.txt
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_INDEX64=ON	\
	-DBUILD_SHARED_LIBS=OFF	\
	-DBUILD_STATIC_LIBS=ON	\
	-DBUILD_TESTING=OFF	\
	-DCBLAS=ON		\
	-DLAPACKE=ON
%make
popd

# STATIC64FPIC
%global optflags %{projflags} -fPIC
pushd %{name}-%{version}-STATIC64FPIC
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_INDEX64=ON	\
	-DBUILD_SHARED_LIBS=OFF	\
	-DBUILD_STATIC_LIBS=ON	\
	-DBUILD_TESTING=OFF
%make
mv lib/lib%{name}{,_pic}64.a
popd

# STATIC64_FPIC
%global optflags %{projflags} -fPIC
pushd %{name}-%{version}-STATIC64_FPIC
sed -i 's|64"|64_"|g' CMakeLists.txt
%cmake \
	-DBUILD_DEPRECATED=ON	\
	-DBUILD_INDEX64=ON	\
	-DBUILD_SHARED_LIBS=OFF	\
	-DBUILD_STATIC_LIBS=ON	\
	-DBUILD_TESTING=OFF
%make
mv lib/lib%{name}{,_pic}64_.a
popd

%endif

%install
%ifarch x86_64 aarch64
for t in SHARED STATIC SHARED64 STATIC64 SHARED64_ STATIC64_; do
%else
for t in SHARED STATIC; do
%endif
	pushd %{name}-%{version}-$t
		%make_install -C build
	popd
done

install -m0644 %{name}-%{version}-STATICFPIC/build/lib/lib%{name}_pic.a %{buildroot}%{_libdir}
%ifarch x86_64 aarch64
install -m0644 %{name}-%{version}-STATIC64FPIC/build/lib/lib%{name}_pic64.a %{buildroot}%{_libdir}
install -m0644 %{name}-%{version}-STATIC64_FPIC/build/lib/lib%{name}_pic64_.a %{buildroot}%{_libdir}

pushd %{buildroot}%{_libdir}
for name in blas cblas %{name}; do
	for i in `readelf -Ws lib${name}64_.so.%{version} | awk '{print $8}' | grep -v GLIBC |grep -v GFORTRAN |grep -v "Name" `; do echo "$i" "64_$i"; done > ${name}-prefix.def.dirty
	sort -n ${name}-prefix.def.dirty | uniq > ${name}-prefix.def
	objcopy --redefine-syms ${name}-prefix.def lib${name}64_.so.%{version} lib${name}64_.so.%{version}.fixed
	rm -rf lib${name}64_.so.%{version}
	mv lib${name}64_.so.%{version}.fixed lib${name}64_.so.%{version}
done

for name in blas cblas %{name} %{name}_pic; do
	for i in `nm lib${name}64_.a |grep " T " | awk '{print $3}'`; do echo "$i" "64_$i"; done > ${name}-static-prefix.def.dirty
	sort -n ${name}-static-prefix.def.dirty | uniq > ${name}-static-prefix.def
	objcopy --redefine-syms ${name}-static-prefix.def lib${name}64_.a lib${name}64_.a.fixed
	rm -rf lib${name}64_.a
	mv lib${name}64_.a.fixed lib${name}64_.a
done
popd

# cleanup defs
rm -rf %{buildroot}%{_libdir}/*.def*
%endif

mkdir -p %{buildroot}%{_mandir}/man3

# Blas manpages
mkdir -p %{name}-%{version}-SHARED/manpages/blas/man/man3
pushd %{name}-%{version}-SHARED/manpages/man/man3
mv caxpy.f.3 caxpy.3 ccopy.f.3 ccopy.3 cdotc.f.3 cdotc.3 cdotu.f.3 cdotu.3 cgbmv.f.3 cgbmv.3 \
cgemm.f.3 cgemm.3 cgemv.f.3 cgemv.3 cgerc.f.3 cgerc.3 cgeru.f.3 cgeru.3 chbmv.f.3 chbmv.3 \
chemm.f.3 chemm.3 chemv.f.3 chemv.3 cher.f.3 cher.3 cher2.f.3 cher2.3 cher2k.f.3 cher2k.3 \
cherk.f.3 cherk.3 chpmv.f.3 chpmv.3 chpr.f.3 chpr.3 chpr2.f.3 chpr2.3 \
cscal.f.3 cscal.3 csrot.f.3 csrot.3 csscal.f.3 csscal.3 cswap.f.3 cswap.3 csymm.f.3 \
csymm.3 csyr2k.f.3 csyr2k.3 csyrk.f.3 csyrk.3 ctbmv.f.3 ctbmv.3 ctbsv.f.3 ctbsv.3 ctpmv.f.3 \
ctpmv.3 ctpsv.f.3 ctpsv.3 ctrmm.f.3 ctrmm.3 ctrmv.f.3 ctrmv.3 ctrsm.f.3 ctrsm.3 ctrsv.f.3 \
ctrsv.3 dasum.f.3 dasum.3 daxpy.f.3 daxpy.3 dcabs1.f.3 dcabs1.3 dcopy.f.3 dcopy.3 ddot.f.3 \
ddot.3 dgbmv.f.3 dgbmv.3 dgemm.f.3 dgemm.3 dgemv.f.3 dgemv.3 dger.f.3 dger.3 \
drot.f.3 drot.3 drotm.f.3 drotm.3 drotmg.f.3 drotmg.3 dsbmv.f.3 \
dsbmv.3 dscal.f.3 dscal.3 dsdot.f.3 dsdot.3 dspmv.f.3 dspmv.3 dspr.f.3 dspr.3 dspr2.f.3 \
dspr2.3 dswap.f.3 dswap.3 dsymm.f.3 dsymm.3 dsymv.f.3 dsymv.3 dsyr.f.3 dsyr.3 dsyr2.f.3 \
dsyr2.3 dsyr2k.f.3 dsyr2k.3 dsyrk.f.3 dsyrk.3 dtbmv.f.3 dtbmv.3 dtbsv.f.3 dtbsv.3 dtpmv.f.3 \
dtpmv.3 dtpsv.f.3 dtpsv.3 dtrmm.f.3 dtrmm.3 dtrmv.f.3 dtrmv.3 dtrsm.f.3 dtrsm.3 dtrsv.f.3 \
dtrsv.3 dzasum.f.3 dzasum.3 icamax.f.3 icamax.3 idamax.f.3 idamax.3 \
isamax.f.3 isamax.3 izamax.f.3 izamax.3 lsame.3 sasum.f.3 sasum.3 saxpy.f.3 saxpy.3 \
scabs1.f.3 scabs1.3 scasum.f.3 scasum.3 scopy.f.3 scopy.3 sdot.f.3 sdot.3 \
sdsdot.f.3 sdsdot.3 sgbmv.f.3 sgbmv.3 sgemm.f.3 sgemm.3 sgemv.f.3 sgemv.3 sger.f.3 sger.3 \
srot.f.3 srot.3 srotm.f.3 srotm.3 srotmg.f.3 srotmg.3 \
ssbmv.f.3 ssbmv.3 sscal.f.3 sscal.3 sspmv.f.3 sspmv.3 sspr.f.3 sspr.3 sspr2.f.3 sspr2.3 \
sswap.f.3 sswap.3 ssymm.f.3 ssymm.3 ssymv.f.3 ssymv.3 ssyr.f.3 ssyr.3 ssyr2.f.3 ssyr2.3 \
ssyr2k.f.3 ssyr2k.3 ssyrk.f.3 ssyrk.3 stbmv.f.3 stbmv.3 stbsv.f.3 stbsv.3 stpmv.f.3 stpmv.3 \
stpsv.f.3 stpsv.3 strmm.f.3 strmm.3 strmv.f.3 strmv.3 strsm.f.3 strsm.3 strsv.f.3 strsv.3 \
xerbla.3 xerbla_array.3 zaxpy.f.3 zaxpy.3 zcopy.f.3 zcopy.3 \
zdotc.f.3 zdotc.3 zdotu.f.3 zdotu.3 zdrot.f.3 zdrot.3 zdscal.f.3 zdscal.3 zgbmv.f.3 zgbmv.3 \
zgemm.f.3 zgemm.3 zgemv.f.3 zgemv.3 zgerc.f.3 zgerc.3 zgeru.f.3 zgeru.3 zhbmv.f.3 zhbmv.3 \
zhemm.f.3 zhemm.3 zhemv.f.3 zhemv.3 zher.f.3 zher.3 zher2.f.3 zher2.3 zher2k.f.3 zher2k.3 \
zherk.f.3 zherk.3 zhpmv.f.3 zhpmv.3 zhpr.f.3 zhpr.3 zhpr2.f.3 zhpr2.3 \
zscal.f.3 zscal.3 zswap.f.3 zswap.3 zsymm.f.3 zsymm.3 zsyr2k.f.3 zsyr2k.3 zsyrk.f.3 zsyrk.3 \
ztbmv.f.3 ztbmv.3 ztbsv.f.3 ztbsv.3 ztpmv.f.3 ztpmv.3 ztpsv.f.3 ztpsv.3 ztrmm.f.3 ztrmm.3 \
ztrmv.f.3 ztrmv.3 ztrsm.f.3 ztrsm.3 ztrsv.f.3 ztrsv.3 ../../blas/man/man3
popd

find %{name}-%{version}-SHARED/manpages/blas/man/man3 -type f -printf "%{_mandir}/man3/%f*\n" > blasmans

# remove weird man pages
pushd %{name}-%{version}-SHARED/manpages/man/man3
rm -rf _Users_julie*
popd

# rename conflicting man pages
pushd %{name}-%{version}-SHARED/manpages/man/man3
mv MAX.3 %{name}-MAX.3
mv MIN.3 %{name}-MIN.3
popd

find %{name}-%{version}-SHARED/manpages/man/man3 -type f -printf "%{_mandir}/man3/%f*\n" > %{name}mans

cp -f %{name}-%{version}-SHARED/manpages/blas/man/man3/* %{buildroot}%{_mandir}/man3
cp -f %{name}-%{version}-SHARED/manpages/man/man3/* %{buildroot}%{_mandir}/man3

cp -f %{name}-%{version}-SHARED/{blasqr.ps,%{name}qref.ps,LICENSE,README.md} ./

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13925 |21mr|laptop-mode-tools-1.73.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Userland scripts to control "laptop mode"
Name:		laptop-mode-tools
Version:	1.73.1
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.samwel.tk/laptop_mode/laptop_mode
Source0:	https://github.com/rickysarraf/laptop-mode-tools/releases/download/%{version}/laptop-mode-tools_%{version}.tar.gz
Patch1:		no-exec-redirection.patch
Patch2:		brcmsmac-has-no-power-management-support.patch
BuildRequires:	sysvinit-tools
Requires:	hdparm
Requires:	sdparm
Requires(post,preun):	rpm-helper
Conflicts:	suspend-scripts < 1.9.2
BuildArch:	noarch

%description
Userland scripts to control "laptop mode". Laptop mode is a Linux
kernel feature that allows your laptop to save considerable power, by
allowing the hard drive to spin down for longer periods of time. This
package contains the userland scripts that are needed to enable laptop
mode.

%files
%doc README.md
%{_sbindir}/*
%{_prefix}/lib/pm-utils/sleep.d/01laptop-mode
%dir %{_sysconfdir}/laptop-mode
%{_sysconfdir}/laptop-mode/*-start
%{_sysconfdir}/laptop-mode/*-stop
%dir %{_sysconfdir}/laptop-mode/*.d
%config(noreplace) %{_sysconfdir}/laptop-mode/conf.d/*.conf
%config(noreplace) %{_sysconfdir}/laptop-mode/*.conf
%config(noreplace) %{_sysconfdir}/acpi/events/*
%attr(755,root,root) %{_sysconfdir}/acpi/actions/*
%{_sysconfdir}/power/event.d/laptop-mode
%{_sysconfdir}/power/scripts.d/laptop-mode
%{_sysconfdir}/apm
%{_sysconfdir}/pm
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/module-helpers
%dir %{_datadir}/%{name}/modules
%{_datadir}/%{name}/modules/*
%{_datadir}/%{name}/module-helpers/*
%{_mandir}/man8/*
%{_tmpfilesdir}/laptop-mode.conf
%{_udevrulesdir}/99-laptop-mode.rules
%{_unitdir}/laptop-mode.service
%{_unitdir}/laptop-mode.timer
%{_unitdir}/lmt-poll.service
%{_datadir}/%{name}/lmt.py
/lib/udev/lmt-udev

%post
%tmpfiles_create laptop-mode.conf
%systemd_post laptop-mode
%systemd_post lmt-poll

%preun
%systemd_preun laptop-mode
%systemd_preun lmt-poll

#----------------------------------------------------------------------------

%package gui
Summary:	GUI for laptop mode tools
Requires:	%{name} = %{EVRD}
Requires:	python3-qt5
Requires:	xdg-utils

%description gui
GUI for laptop mode tools.

%files gui
%{_bindir}/lmt-config-gui
%{_datadir}/%{name}/lmt.py
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/laptop-mode-tools.svg
%{_datadir}/applications/%{name}-kde.desktop
%{_datadir}/polkit-1/actions/org.linux.lmt.gui.policy
%{_datadir}/%{name}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}_%{version}

%build

%install
#not created during install
mkdir -p %{buildroot}%{_sysconfdir}/pm/sleep.d

DESTDIR=%{buildroot} \
INIT_D=%{buildroot}%{_initrddir} \
MAN_D=%{_mandir} \
INSTALL="install" \
  ./install.sh

# Prefer systemd files
rm -rf %{buildroot}%{_initrddir}

install -p -D -m 644 gui/lmt.py %{buildroot}%{_datadir}/%{name}/lmt.py
install -p -D -m 755 gui/lmt-config-gui %{buildroot}%{_bindir}/lmt-config-gui

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Laptop Mode Tools
Comment=Laptop Mode Tools graphical user interface
Comment[ru]=Графический интерфейс Laptop Mode Tools
Exec=xdg-su -c "%{_bindir}/lmt-config-gui"
Icon=computer-laptop
Terminal=false
Type=Application
Categories=System;Utility;
NotShowIn=KDE;
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}-kde.desktop << EOF
[Desktop Entry]
Name=Laptop Mode Tools
Comment=Laptop Mode Tools graphical user interface
Comment[ru]=Графический интерфейс Laptop Mode Tools
Exec=%{_bindir}/lmt-config-gui
Icon=computer-laptop
Terminal=false
Type=Application
Categories=System;Utility;
OnlyShowIn=KDE;
X-KDE-SubstituteUID=true
X-KDE-Username=root
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13926 |21mr|latex2html-2018-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define compactversion	2018
%define latex2htmldir %{_prefix}/lib/%{name}

Summary:	LaTeX to HTML converter
Name:		latex2html
Version:	2018
Release:	3
License:	GPLv2+
Group:		Publishing
Url:		http://www.latex2html.org
Source0:	http://mirrors.ctan.org/support/latex2html/%{name}-%{version}.tar.gz
Patch0:		%{name}-2002-gsfonts.patch
Patch1:		%{name}-%{compactversion}-path.patch
Patch2:		%{name}-perlversion.patch
Patch6:		%{name}-perlcall.patch
Patch7:		%{name}-htmladdimg.patch
BuildRequires:	ghostscript
BuildRequires:	ghostscript-dvipdf
BuildRequires:	netpbm
BuildRequires:	texlive
Requires:	ghostscript >= 6.50
Requires:	giftrans
Requires:	netpbm
Requires:	texlive
BuildArch:	noarch

%description
Elaborate perl program to convert latex documents to html, using LaTeX
to process images and equations.

%files
%{_bindir}/*
%dir %{latex2htmldir}
%{latex2htmldir}/*
%{_datadir}/texmf/tex/latex/html/
%{_docdir}/%{name}-%{version}

%post
[ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
exit 0

%postun
[ -x /usr/bin/texhash ] && /usr/bin/env - /usr/bin/texhash 2> /dev/null
exit 0

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
TMP=/var/tmp ./configure \
	--with-gs=%{_bindir}/gs \
	--with-texpath=%{_datadir}/texmf/tex/ \
	--without-mktexlsr \
	--with-perl=%{__perl} \
	--prefix=%{_prefix} \
	--shlibdir=%{latex2htmldir} \
	--with-initex="%{_bindir}/tex -ini" \
	--with-rgb=/usr/share/X11/rgb.txt
%make

%install
# custom "make install" so paths are proper in the perl programs
mkdir -p %{buildroot}%{_bindir} \
	%{buildroot}%{latex2htmldir}

install -m 755 latex2html %{buildroot}%{_bindir}
install -m 755 pstoimg %{buildroot}%{_bindir}
install -m 755 texexpand %{buildroot}%{_bindir}

rm -f L2hos/Win32.pm
rm -f L2hos/Dos.pm
rm -f L2hos/Mac.pm
rm -f L2hos/OS2.pm

cp -avRf IndicTeX-HTML %{buildroot}%{latex2htmldir}/
cp -avRf L2hos.pm %{buildroot}%{latex2htmldir}/
cp -avRf L2hos %{buildroot}%{latex2htmldir}/
cp -avRf XyMTeX-HTML %{buildroot}%{latex2htmldir}/
cp -avRf cweb2html %{buildroot}%{latex2htmldir}/
cp -avRf docs %{buildroot}%{latex2htmldir}/
cp -avRf example %{buildroot}%{latex2htmldir}/
cp -avRf foilhtml %{buildroot}%{latex2htmldir}/
cp -avRf icons %{buildroot}%{latex2htmldir}/
cp -avRf makeseg %{buildroot}%{latex2htmldir}/
cp -avRf styles %{buildroot}%{latex2htmldir}/
cp -avRf texinputs %{buildroot}%{latex2htmldir}/
cp -avRf versions %{buildroot}%{latex2htmldir}/

cp -avRf cfgcache.pm dot.latex2html-init l2hconf.pm makemap docs/hthtml/readme.hthtml \
        %{buildroot}%{latex2htmldir}/

mkdir -p %{buildroot}%{_datadir}/texmf/tex/latex/html
cp -avRf texinputs/* %{buildroot}%{_datadir}/texmf/tex/latex/html

mkdir -p %{buildroot}%{_defaultdocdir}/%{name}-%{version}
cp -avRf Changes FAQ MANIFEST TODO BUGS INSTALL \
	dot.latex2html-init example \
		%{buildroot}%{_defaultdocdir}/%{name}-%{version}

# fix perl path in a few places:
sed -i -e 's#/usr/local/bin/perl#%{__perl}#' %{buildroot}%{_prefix}/lib/latex2html/cweb2html/cweb2html
sed -i -e 's#/usr/local/bin/perl#%{__perl}#' %{buildroot}%{_prefix}/lib/latex2html/makeseg/makeseg


# fix some installation path
perl -pi -e "s#$RPM_BUILD_DIR/%{name}-%{compactversion}#%{latex2htmldir}#" \
   %{buildroot}%{latex2htmldir}/cfgcache.pm
perl -pi -e "s#%{_datadir}/lib/latex2html#%{latex2htmldir}#" \
   %{buildroot}%{latex2htmldir}/cfgcache.pm

# these files are already included in tetex
(cd %{buildroot}%{_datadir}/texmf/tex/latex/html
rm -f floatflt.ins latin9.def url.sty
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13927 |21mr|layer-shell-qt-5.27.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	KDE Library for integration with the Wayland display server
Name: 		layer-shell-qt
Version:	5.27.11
Release: 	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url: 		http://kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	wayland-tools
BuildRequires:	kf5wayland-devel
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(wayland-server)

%description
This component is meant for applications to be able
to easily use clients based on wlr-layer-shell

%files
%{_qt5_plugindir}/wayland-shell-integration/liblayer-shell.so

#----------------------------------------------------------------------------

%define major 5
%define liblayershellqt %mklibname layershellqt %{major}

%package -n %{liblayershellqt}
Summary:	KDE Library for working with the Wayland display server
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{liblayershellqt}
This component is meant for applications to be able
to easily use clients based on wlr-layer-shell

%files -n %{liblayershellqt}
%{_libdir}/libLayerShellQtInterface.so.%{major}*

#----------------------------------------------------------------------------

%define devlayershellqt %mklibname layershellqt -d

%package -n %{devlayershellqt}
Summary:	Development files for KDE Wayland display server integration
Group:		Development/KDE and Qt
Requires:	%{liblayershellqt} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	layershellqt-devel = %{EVRD}

%description -n %{devlayershellqt}
Development files for KDE Wayland display server integration

%files -n %{devlayershellqt}
%{_includedir}/LayerShellQt
%{_libdir}/cmake/LayerShellQt
%{_libdir}/libLayerShellQtInterface.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13928 |21mr|lazarus-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lazarus Component Library and IDE for Freepascal
Name:		lazarus
Version:	3.0
Release:	1
# GNU Classpath style exception, see COPYING.modifiedLGPL
License:	GPLv2+ and MPLv1.1 and LGPLv2+ with exceptions
Group:		Development/Pascal
Url:		http://www.lazarus-ide.org/
Source0:	https://downloads.sourceforge.net/project/lazarus/Lazarus%20Zip%20_%20GZip/Lazarus%20%{version}/%{name}-%{version}-0.tar.gz
Source1:	lazarus-miscellaneousoptions
Source10:	lazarus.rpmlintrc
Patch0:		lazarus-2.2.0-makefile.patch
BuildRequires:	desktop-file-utils
BuildRequires:	fpc >= 3.2.0
BuildRequires:	fpc-src >= 3.2.0
BuildRequires:	gdb
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	binutils
Requires:	fpc >= 3.2.0
Requires:	fpc-src >= 3.2.0
Requires:	gdb
Requires:	make
Requires:	pkgconfig(gdk-pixbuf-2.0)
Requires:	pkgconfig(glib-2.0)
Requires:	pkgconfig(gtk+-2.0)
Requires:	glibc-devel

%description
Lazarus is a free and opensource RAD tool for freepascal using the lazarus
component library - LCL, which is also included in this package.

%files
%doc lazarus/COPYING* lazarus/README.md
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/environmentoptions.xml
%{_bindir}/%{name}-ide
%{_bindir}/startlazarus
%{_bindir}/lazbuild
%{_bindir}/%{name}-miscellaneousoptions
%{_libdir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/*/*

%postun
if [ $1 = 0 ]
then
rm -rf %{_libdir}/%{name}
fi

#----------------------------------------------------------------------------

%prep
%setup -qc
%patch0 -p1

%build
cd lazarus
# Remove the files for building debian-repositories
rm -rf debian
pushd tools
	find install -depth -type d ! \( -path "install/linux/*" -o -path "install/linux" -o -path "install" \) -exec rm -rf '{}' \;
popd

export FPCDIR="%{_datadir}/fpcsrc/"
fpcmake -Tall

MAKEOPTS="-gl -gw -Fl/usr/%{_lib}"

make bigide OPT="$MAKEOPTS"
make tools OPT="$MAKEOPTS"
make lazbuild OPT="$MAKEOPTS"

# Defaulting to create a gtk2 IDE
# TODO: Consider switching to GKT3 (still in alpha) or QT5 when dropping gtk2
export LCL_PLATFORM=gtk2
make registration lcl bigidecomponents OPT='-gl -gw'
export LCL_PLATFORM=
strip %{name}
strip startlazarus
strip lazbuild

%install
# Not using automated install: do it manually

# Prepare needed dirs
LAZARUSDIR=%{_libdir}/%{name}
FPCDIR=%{_datadir}/fpcsrc/
mkdir -p %{buildroot}$LAZARUSDIR
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/mime/packages
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_sysconfdir}/%{name}

# Install binaries and units
cp -a %{name}/* %{buildroot}$LAZARUSDIR/

# Install our script
install -m 755 %{SOURCE1} %{buildroot}%{_bindir}/

# Install icon and desktop integration stuff
install -m 0644 lazarus/images/ide_icon48x48.png %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -m 0644 lazarus/install/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
install -m 0644 lazarus/install/%{name}-mime.xml $LazBuildDir%{buildroot}%{_datadir}/mime/packages/%{name}.xml

# Install symlinks for the binaries
ln -sf $LAZARUSDIR/%{name} %{buildroot}%{_bindir}/%{name}-ide
ln -sf $LAZARUSDIR/startlazarus %{buildroot}%{_bindir}/startlazarus
ln -sf $LAZARUSDIR/lazbuild %{buildroot}%{_bindir}/lazbuild

# Install man pages
install -m 0644 lazarus/install/man/man1/lazbuild.1 %{buildroot}%{_mandir}/man1/
install -m 0644 lazarus/install/man/man1/%{name}-ide.1 %{buildroot}%{_mandir}/man1/
install -m 0644 lazarus/install/man/man1/startlazarus.1 %{buildroot}%{_mandir}/man1/


# Install and fix default options file
install -m 0644 lazarus/tools/install/linux/environmentoptions.xml %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml
sed -i 's/\$(FPCVER)\///g' %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml
sed -i 's#__LAZARUSDIR__#'$LAZARUSDIR/'#g' %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml
sed -i 's#__FPCSRCDIR__#'$FPCDIR'#g' %{buildroot}%{_sysconfdir}/%{name}/environmentoptions.xml

# Fix perms
chmod 755 %{buildroot}%{_libdir}/%{name}/components/lazreport/tools/localize.sh
chmod 644 %{buildroot}%{_libdir}/%{name}/lcl/interfaces/cocoa/*.pas

# Drop useless stuff
pushd %{buildroot}%{_libdir}/%{name}
	rm -f *.txt
	rm -rf install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13929 |21mr|lcms-1.19-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

# Temporarily disable tests, due some failures,
# while pending update of the whole library
%define	run_tests 0

Summary:	Color management library
Name:		lcms
Version:	1.19
Release:	17
License:	MIT
Group:		Graphics
Url:		http://www.littlecms.com/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		lcms-1.19-fix-swab-implicit-def.patch
Patch1:		lcms-1.19-fix-python3.2.patch
BuildRequires:	swig
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)

%description
Little cms is a color management library. Implements fast transforms between
ICC profiles. It is focused on speed, and is portable across several platforms.

%files
%doc doc/* matlab/*.pdf
%{_bindir}/icc2ps
%{_bindir}/icclink
%{_bindir}/icctrans
%{_bindir}/jpegicc
%{_bindir}/tiffdiff
%{_bindir}/tifficc
%{_bindir}/wtpt
%{_mandir}/man1/icc2ps.1*
%{_mandir}/man1/icclink.1*
%{_mandir}/man1/jpegicc.1*
%{_mandir}/man1/tifficc.1*
%{_mandir}/man1/wtpt.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Shared library for "Little cms"
Group:		System/Libraries
Provides:	liblcms = %{EVRD}

%description -n %{libname}
Little cms is a color management library. Implements fast transforms between
ICC profiles. It is focused on speed, and is portable across several platforms.

This package provides the shared lcms library.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README.1ST
%{_libdir}/liblcms.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the "Little cms" library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Little cms is a color management library. Implements fast transforms between
ICC profiles. It is focused on speed, and is portable across several platforms.

This package contains the static lcms library and its header files.

%files -n %{devname}
%doc COPYING
%{_includedir}/*
%{_libdir}/liblcms.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n python3-lcms
Summary:	Python bindings for the lcms color management engine
Group:		Development/Python

%description -n python3-lcms
Python module that interfaces to the lcms color management engine.

%files -n python3-lcms
%doc python/testbed/*
%{py3_platsitedir}/%{name}.py*
%{py3_platsitedir}/_%{name}.so
%{py3_platsitedir}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix attribs
chmod 644 doc/* matlab/* AUTHORS COPYING NEWS README.1ST python/testbed/*

%build
autoreconf -vfi
%configure \
	--with-python \
	--disable-static

# regenerate the swig shit
pushd python
    ./swig_lcms
popd

%make

%install
%makeinstall_std

%if %{run_tests}
%check
make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13930 |21mr|lcms2-2.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	Color Management Engine
Name:		lcms2
Version:	2.13.1
Release:	1
License:	MIT
Group:		Graphics
Url:		https://www.littlecms.com/
Source0:	https://sourceforge.net/projects/lcms/files/lcms/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(zlib)

%description
LittleCMS intends to be a small-footprint, speed optimized color management
engine in open source form. LCMS2 is the current version of LCMS, and can be
parallel installed with the original (deprecated) lcms.

%files
%doc AUTHORS COPYING
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Requires:	%{name} >= %{version}

%description -n %{libname}
This package provides the shared lcms2 library.

%files -n %{libname}
%doc COPYING
%{_libdir}/liblcms2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for LittleCMS
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for LittleCMS2.

%files -n %{devname}
%doc doc/*.pdf
%{_includedir}/%{name}*.h
%{_libdir}/liblcms2.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure \
	--disable-static \
	--program-suffix=2
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13931 |21mr|ldapjdk-4.21.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
################################################################################
Name:             ldapjdk
################################################################################

Summary:          LDAP SDK
URL:              http://www.dogtagpki.org/
License:          MPLv1.1 or GPLv2+ or LGPLv2+

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Version:          4.21.0
Release:          2%{?_timestamp}%{?_commit_id}
# global           _phase -a1

%global spname		ldapsp
%global filtname	ldapfilt
%global beansname	ldapbeans

# To create a tarball from a version tag:
# $ git archive \
#     --format=tar.gz \
#     --prefix ldap-sdk-<version>/ \
#     -o ldap-sdk-<version>.tar.gz \
#     <version tag>
Source: https://github.com/dogtagpki/ldap-sdk/archive/v%{version}%{?_phase}/ldap-sdk-%{version}%{?_phase}.tar.gz

# To create a patch for all changes since a version tag:
# $ git format-patch \
#     --stdout \
#     <version tag> \
#     > ldap-sdk-VERSION-RELEASE.patch
# Patch: ldap-sdk-VERSION-RELEASE.patch

################################################################################
# Build Dependencies
################################################################################

# autosetup
BuildRequires:    git

BuildRequires:    ant
BuildRequires:    java-devel
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires:	  jpackage-utils >= 0:1.5
%else
BuildRequires:    javapackages-local
%endif
BuildRequires:    slf4j
BuildRequires:    jss >= 4.6.0

################################################################################
# Runtime Dependencies
################################################################################

Requires:         jpackage-utils >= 0:1.5
Requires:         slf4j
Requires:         jss >= 4.6.0


%description
The Mozilla LDAP SDKs enable you to write applications which access,
manage, and update the information stored in an LDAP directory.

################################################################################
%package javadoc
################################################################################

Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}

################################################################################
%prep
################################################################################

%autosetup -n ldap-sdk-%{version}%{?_phase} -p 1 -S git

# Remove all bundled jars, we must build against build-system jars
rm -f ./java-sdk/ldapjdk/lib/{jss32_stub,jsse,jnet,jaas,jndi}.jar

################################################################################
%build
################################################################################

# Link to build-system BRs
pwd
%if 0%{?rhel} && 0%{?rhel} <= 7
( cd  java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 jsse jaas jndi )
%else
( cd  java-sdk/ldapjdk/lib && build-jar-repository -s -p . jss4 )
ln -s /usr/lib/jvm-exports/java/{jsse,jaas,jndi}.jar java-sdk/ldapjdk/lib
%endif
cd java-sdk
if [ ! -e "$JAVA_HOME" ] ; then export JAVA_HOME="%{_jvmdir}/java" ; fi
sh -x ant dist

################################################################################
%install
################################################################################

install -d -m 755 $RPM_BUILD_ROOT%{_javadir}
install -m 644 java-sdk/dist/packages/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar
install -m 644 java-sdk/dist/packages/%{spname}.jar $RPM_BUILD_ROOT%{_javadir}/%{spname}.jar
install -m 644 java-sdk/dist/packages/%{filtname}.jar $RPM_BUILD_ROOT%{_javadir}/%{filtname}.jar
install -m 644 java-sdk/dist/packages/%{beansname}.jar $RPM_BUILD_ROOT%{_javadir}/%{beansname}.jar

install -d -m 755 $RPM_BUILD_ROOT%{_javadir}-1.3.0

pushd $RPM_BUILD_ROOT%{_javadir}-1.3.0
	ln -fs ../java/*%{spname}.jar jndi-ldap.jar
popd

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 %{name}.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar -a "ldapsdk:ldapsdk"

install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -r java-sdk/dist/doc/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

################################################################################
%files -f .mfiles
################################################################################

%{_javadir}/%{spname}*.jar
%{_javadir}/%{filtname}*.jar
%{_javadir}/%{beansname}*.jar
%{_javadir}-1.3.0/*.jar

################################################################################
%files javadoc
################################################################################

%dir %{_javadocdir}/%{name}
%{_javadocdir}/%{name}/*

################################################################################

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13932 |21mr|ldaptive-1.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          ldaptive
Version:       1.1.0
Release:       6
Summary:       LDAP library for Java
License:       ASL 2.0 or LGPLv3
URL:           http://www.ldaptive.org/
Source0:       https://github.com/vt-middleware/ldaptive/archive/v%{version}/%{name}-%{version}.tar.gz
# Remove migbase64 and use Java 8 base64 encoder and decoder
Patch0:        https://github.com/vt-middleware/ldaptive/commit/44a0d8222f27eef7b848316ef136dc539f53c51f.patch

BuildRequires: maven-local
BuildRequires: mvn(com.googlecode.json-simple:json-simple)
BuildRequires: mvn(com.sun.codemodel:codemodel)
BuildRequires: mvn(commons-cli:commons-cli)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(net.sf.ehcache:ehcache-core)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-expression)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Ldaptive is a simple, extensible Java API for interacting with LDAP servers.
It was designed to provide easy LDAP integration for application developers.

%package beans
Summary:       Ldaptive Beans

%description beans
Mapping, persistence, and code generation API for reading and
writing POJOs to an LDAP directory.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package json
Summary:       Ldaptive Json

%description json
Provides JSON reader and writer.

%package parent
Summary:       Ldaptive Parent POM

%description parent
Ldaptive Parent POM.

%package templates
Summary:       Ldaptive Templates

%description templates
Templating functionality for aggregating LDAP searches.

%prep
%setup -q -n %{name}-%{version}
# Cleanup
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%patch0 -p1
rm -f core/src/main/java/org/ldaptive/io/Base64.java

%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-source-plugin

%pom_disable_module webapp

cp -p distribution/LICENSE* .
cp -p distribution/NOTICE .

%pom_change_dep -r :ehcache :ehcache-core

%build

# Test suite (disable) use web connection:
# UnknownHostException: buildvm-25.phx2.fedoraproject.org: buildvm-25.phx2.fedoraproject.org: unknown error
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license LICENSE* NOTICE

%files beans -f .mfiles-%{name}-beans
%files javadoc -f .mfiles-javadoc
%license LICENSE* NOTICE

%files json -f .mfiles-%{name}-json
%files parent -f .mfiles-%{name}-parent
%license LICENSE* NOTICE

%files templates -f .mfiles-%{name}-templates


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13933 |21mr|ldb-2.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname ldb %{major}
%define devname %mklibname ldb -d
%define libpyldbutil %mklibname pyldb-util %{major}
%define libpy3ldbutil %mklibname py3ldb-util %{major}
%define devpyldbutil %mklibname pyldb-util -d
%define devpy3ldbutil %mklibname py3ldb-util -d

Summary:	Library implementing Samba's embedded database
Name:		ldb
Version:	2.8.0
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Libraries
Url:		http://ldb.samba.org/
Source0:	http://www.samba.org/ftp/ldb/%{name}-%{version}.tar.gz
Patch0:		HACK-python-tests.diff
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(tdb)
BuildRequires:	pkgconfig(tevent)
BuildRequires:	pkgconfig(cmocka)
BuildRequires:	python3-tdb
BuildRequires:	python3-tevent
# TODO: fix name of pytalloc-util.cpython-35m-x86_64-linux-gnu.pc
BuildRequires:	%{_lib}py3talloc-util-devel
# lmdb is required on 64 bit hosts only
# "Checking for a 64-bit host to support lmdb"
# but let's have the same BRs on all architectures
BuildRequires:	lmdb-devel

%description
Library implementing Samba's embedded database and utilities for backing up,
restoring and manipulating the database.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library implementing Samba's embedded database
Group:		System/Libraries
# sssd wants exactly that version of libldb against which it was built
Provides:	libldb = %{version}

%description -n %{libname}
Library implementing Samba's embedded database.

%files -n %{libname}
%{_libdir}/libldb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library implementing Samba's embedded database
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(tevent) >= 0.9.25
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Library implementing Samba's embedded database.

%files -n %{devname}
%{_libdir}/libldb.so
%{_libdir}/pkgconfig/ldb.pc
%{_includedir}/ldb*.h

#----------------------------------------------------------------------------

%package -n python3-ldb
Summary:	Python3 bindings to Samba's ldb embedded database
Group:		Development/Python

%description -n python3-ldb
Python3 bindings to Samba's ldb embedded database.

%files -n python3-ldb
%{python3_sitearch}/ldb.cpython-3*.so
%{python3_sitearch}/_ldb_text.py*
%{python3_sitearch}/__pycache__/*

#----------------------------------------------------------------------------

%package utils
Summary:	Tools for backing up, restoring, and manipulating Samba's embedded database
Group:		Databases

%description utils
Tools for backing up, restoring, and manipulating Samba's embedded database.

%files utils
%{_bindir}/ldb*
%{_libdir}/ldb
%{_mandir}/man1/ldb*.1*
%{_mandir}/man3/ldb*.3*

#----------------------------------------------------------------------------

%package -n %{libpy3ldbutil}
Summary:	Utility library for using tdb functions in Python3
Group:		System/Libraries

%description -n %{libpy3ldbutil}
Utility library for using tdb functions in Python3.

%files -n %{libpy3ldbutil}
%{_libdir}/libpyldb-util.cpython-3*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devpy3ldbutil}
Summary:	Development files for utility library for using tdb functions in Python3
Group:		Development/Python
Requires:	%{libpy3ldbutil} = %{EVRD}
Requires:	pkgconfig(talloc)
Provides:	py3ldb-util-devel = %{EVRD}

%description -n %{devpy3ldbutil}
Development files for utility library for using tdb functions in python.

%files -n %{devpy3ldbutil}
%{_libdir}/libpyldb-util.cpython-3*.so
%{py3_incdir}/pyldb.h
%{_includedir}/pyldb.h
%{_libdir}/pkgconfig/pyldb-util.cpython-3*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i -e 's,http://docbook.sourceforge.net/release/xsl/current,/usr/share/sgml/docbook/xsl-stylesheets,g' docs/builddocs.sh buildtools/wafsamba/wafsamba.py buildtools/wafsamba/samba_conftests.py

# Fix unreadable files
find . -perm 0640 -exec chmod 0644 '{}' \;

%build
%setup_compile_flags
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--with-modulesdir=%{_libdir} \
	--disable-rpath \
	--bundled-libraries=NONE \
	--builtin-libraries=replace 
%make all

%install
%make_install
mkdir -p %{buildroot}/%{py3_incdir}
cp %{buildroot}/%{_includedir}/pyldb.h %{buildroot}/%{py3_incdir}/pyldb.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13934 |21mr|ldetect-0.12.7-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.12
%define minor 7
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define Werror_cflags %nil

%global optflags %{optflags} %(pkg-config --cflags libkmod || :)

Summary:	Light hardware detection tool
Name:		ldetect
Version:	%{major}.%{minor}
Release:	17
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.rosalinux.com
Source0:	%{name}-%{version}.tar.xz
Patch1:		0001-Allow-to-use-system-CFLAGS.patch
BuildRequires:	usbutils
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(zlib)

%description
The hardware device lists provided by this package are used as a lookup
table to get hardware auto-detection.

%files
%doc AUTHORS
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Light hardware detection library
Group:		System/Libraries
Requires:	common-licenses
Requires:	ldetect-lst
Requires:	pciids

%description -n %{libname}
The hardware device lists provided by this package are used as a lookup
table to get hardware auto-detection.

%files -n %{libname}
%{_libdir}/libldetect.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for ldetect
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
The hardware device lists provided by this package are used as a lookup
table to get hardware auto-detection.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/*
%{_libdir}/*.a
%if %{with diet}
%{_prefix}/lib/dietlibc/lib-%{_arch}/libldetect.a
%endif
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make_build CC="%{__cc}" OPTFLAGS="%{optflags}"

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13935 |21mr|ldetect-lst-0.5.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%ifarch aarch64
%bcond_with bootstrap
%else
%bcond_with bootstrap
%endif

%ifarch %{ix86}
%define archname ia32
%else
%define archname x86_64
%endif

Summary:	Hardware list for the light detection library
Name:		ldetect-lst
Version:	0.5.1
Release:	5
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://abf.rosalinux.ru/soft/ldetect-lst/
Source0:	https://abf.io/soft/ldetect-lst/archive/%{name}-%{version}.tar.gz
BuildRequires:	perl-MDK-Common
%if %{without bootstrap}
# for testsuite:
BuildRequires:	drakx-kbd-mouse-x11
# for list_modules.pm
BuildRequires:	drakxtools-backend >= 10.30
%endif
Requires(post):	bash
Requires(post):	gzip
# libfreebl3.so
Requires(post):	nss
Requires(post,preun):	perl-base
Conflicts:	ldetect < 0.7.18
# for XFdrake using nvidia-current instead of nvidia-97xx
Conflicts:	drakx-kbd-mouse-x11 < 0.21
ExclusiveArch:	%{ix86} x86_64 aarch64

%description
The hardware device lists provided by this package are used as lookup 
table to get hardware autodetection.

%files
%{_sbindir}/update-ldetect-lst
%{_datadir}/%{name}/
%dir /lib/module-init-tools
/lib/module-init-tools/ldetect-lst-modules.alias

%post
# Update ldetect tables after install so that XFdrake will see them
%{_sbindir}/update-ldetect-lst

#----------------------------------------------------------------------------

%package devel
Summary:	Devel for ldetect-lst
Group:		Development/Perl
Requires:	%{name} = %{EVRD}

%description devel
Development files for ldetect-lst.

%files devel
%doc README.pcitable
%{_bindir}/merge2pcitable.pl

#----------------------------------------------------------------------------

%prep
%setup -q

%apply_patches

%build
pushd lst
rm -f hardcoded-modules.alias fallback-modules.alias preferred-modules.alias
touch hardcoded-modules.alias fallback-modules.alias preferred-modules.alias
popd

%make ARCH=%{archname}

%install
%makeinstall ARCH=%{archname} slibdir=%{buildroot}/lib

# Keep the file in case some old tool checks it, but leave it empty.
mkdir -p %{buildroot}/lib/module-init-tools/
echo "" > %{buildroot}/lib/module-init-tools/ldetect-lst-modules.alias

# Do not provide the IDs for now.
rm -f %{buildroot}%{_datadir}/usb.ids
rm -f %{buildroot}%{_datadir}/oui.txt
rm -f %{buildroot}%{_datadir}/pci.ids
rm -f %{buildroot}%{_datadir}/misc/pnp.ids


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13936 |21mr|ldns-1.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define develname %mklibname -d %{name}

%define build_python 1

Summary:	Lowlevel DNS(SEC) library with API
Name:		ldns
Version:	1.8.3
Release:	1
License:	BSD
Group:		System/Libraries
URL:		http://www.nlnetlabs.nl/ldns/
Source0:	http://www.nlnetlabs.nl/downloads/ldns/ldns-%{version}.tar.gz

BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	libtool
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	doxygen
%if %{build_python}
BuildRequires:	swig
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
%endif

%description
ldns is a library with the aim to simplify DNS programing in C. All
lowlevel DNS/DNSSEC operations are supported. We also define a higher
level API which allows a programmer to (for instance) create or sign
packets.

#---------------------------------------------------

%package -n	%{name}-utils
Summary:	DNS(SEC) utility
Group:		Networking/Other
Requires:	%{libname} = %{EVRD}

%description -n	%{name}-utils
This package contains various utilities used to manage
and validate DNSSEC zones using ldns library.

%files -n %{name}-utils
%doc README LICENSE
%{_bindir}/*
%exclude %{_bindir}/%{name}-config
%{_mandir}/man1/*

#---------------------------------------------------

%package -n	%{libname}
Summary:	Lowlevel DNS(SEC) library with API
Group:		System/Libraries

%description -n	%{libname}
ldns is a library with the aim to simplify DNS programing in C. All
lowlevel DNS/DNSSEC operations are supported. We also define a higher
level API which allows a programmer to (for instance) create or sign
packets.


%files -n %{libname}
%doc README LICENSE
%{_libdir}/lib*so.%{major}*
#---------------------------------------------------

%package -n	%{develname}
Summary:	Development package that includes the ldns header files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
The devel package contains the ldns library and the include files

%files -n %{develname}
%doc docs/* Changelog README
%dir %{_includedir}/ldns
%{_includedir}/ldns/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*
%{_bindir}/%{name}-config
#---------------------------------------------------

%if %{build_python}
%global __provides_exclude _ldns.so

%package -n 	python3-%{name}
Summary:	Python extensions for ldns
Group:		Development/Python
%rename python-%{name}

%description -n python3-%{name}
Python extensions for ldns

%files -n python3-%{name}
%doc README LICENSE
%{py3_platsitedir}/*
%endif
#---------------------------------------------------

%prep
%setup -q

%build
export PYTHON=%{__python3}
%configure \
	--disable-rpath \
%if %{build_python}
        --with-pyldns \
%endif
	--disable-static \
	--with-examples \
	--with-drill \
	--disable-dane-verify
# Enable dane-verify once we have openssl1.1.0


%make

%install
mkdir -p %{buildroot}%{_libdir}/pkgconfig
%makeinstall_std

# cleanup and fix --short-circuit
rm -rf docs; mkdir -p docs
cp -rp doc docs/
rm -rf docs/doc/man
rm -f docs/doc/doxyparse.pl
rm -f docs/doc/ldns_manpages
rm -rf docs/doc/.svn

#we don't want these
find %{buildroot} -name "*.la" -exec rm -rf {} \;

%if %{build_python}
#remove executable bit
chmod a-x %{buildroot}%{py3_platsitedir}/*py
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13937 |21mr|leafnode-1.11.8-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Leafsite NNTP server
Name:		leafnode
Version:	1.11.8
Release:	16
License:	Artistic
Group:		System/Servers
Url:		http://www.leafnode.org
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Source1:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2.asc
Source2:	%{name}.texpire
Source3:	%{name}.filters
Source4:	%{name}.xinetd
Source5:        %{name}-tmpfiles.conf
BuildRequires:	pkgconfig(libpcre)
Requires:	xinetd
Conflicts:	inn

%description
Leafnode is a small NNTP server for leaf sites without permanent
connection to the internet. It supports a subset of NNTP and is able to
automatically fetch the newsgroups the user reads regularly from the
newsserver of the ISP.

%prep
%setup -q

%build
%configure \
	--with-spooldir=/var/spool/news \
	--with-lockfile=/run/lock/news/%{name} \
	--sysconfdir=%{_sysconfdir}/%{name}
%make 

%install
%makeinstall_std
install -d %{buildroot}%{_sysconfdir}/{cron.daily,leafnode}
install -m 755 %SOURCE2 %{buildroot}%{_sysconfdir}/cron.daily/texpire
install -m 600 %{_builddir}/%{name}-%{version}/config.example %{buildroot}%{_sysconfdir}/leafnode/config
install -m 600 %SOURCE3 %{buildroot}%{_sysconfdir}/leafnode/filters
install -D -m644 %{SOURCE4} %{buildroot}/etc/xinetd.d/%{name}
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf

cp doc_german/README doc_german/README.de

# Install the man pages
install -d %{buildroot}%{_mandir}/{,de}/man{1,3,8}
install -m 644 doc_german/*.1 %{buildroot}%{_mandir}/de/man1
rm -rf doc_german/*.1
install -m 644 doc_german/*.8 %{buildroot}%{_mandir}/de/man8
rm -rf doc_german/*.8
install -m 644 `find . -name "*.1"` %{buildroot}%{_mandir}/man1
install -m 644 `find . -name "*.8"` %{buildroot}%{_mandir}/man8
rm -f %{buildroot}%{_mandir}/man?/pcre*
mkdir -p %{buildroot}/var/spool/news/message.id/{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}{0,1,2,3,4,5,6,7,8,9}

%pre
if [ -f %{_sysconfdir}/cron.daily/texpire.cron ] ; then
        rm -f %{_sysconfdir}/cron.daily/texpire.cron
fi

%post
systemd-tmpfiles --create %{name}.conf

%files
%doc COPYING CREDITS INSTALL README tools/archivefaq.pl update.sh
#%doc doc_german/README.de doc_german/txt/*
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/cron.daily/texpire
%attr (644,root,man) %{_mandir}/man1/*
%attr (644,root,man) %{_mandir}/de/man1/*
%attr (644,root,man) %{_mandir}/man8/*
%attr (644,root,man) %{_mandir}/de/man8/*
#%attr (644,root,man) %{_mandir}/de/man1/*
#%attr (644,root,man) %{_mandir}/de/man8/*
%defattr (644,news,news,755)
%dir %{_sysconfdir}/leafnode
%attr(600,news,news) %config(noreplace) %{_sysconfdir}/leafnode/*
%config(noreplace) %{_sysconfdir}/xinetd.d/%{name}
%attr(750,news,news) %{_sbindir}/*
%attr(755,news,news) %{_bindir}/*
%{_tmpfilesdir}/%{name}.conf
%dir /var/spool/news
%dir /var/spool/news/*
%dir /var/spool/news/message.id/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13938 |21mr|lemon-3.7.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Lemon Parser Generator
Name:		lemon
Version:	3.7.9
Release:	7
License:	Public Domain
Group:		Development/Tools
Url:		http://www.sqlite.org/
# taken from http://www.sqlite.org/sqlite-src-3070900.zip
Source0:	http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lemon.c
Source1:	http://www.sqlite.org/cvstrac/getfile/sqlite/tool/lempar.c
Patch0:		lemon-3.7.6.2-system-template.diff

%description
Lemon is an LALR(1) parser generator for C or C++. It does the same job as
bison and yacc. But lemon is not another bison or yacc clone. It uses a
different grammar syntax which is designed to reduce the number of coding
errors. Lemon also uses a more sophisticated parsing engine that is faster than
yacc and bison and which is both reentrant and thread-safe. Furthermore, Lemon
implements features that can be used to eliminate resource leaks, making is
suitable for use in long-running programs such as graphical user interfaces or
embedded controllers.

%files
%{_bindir}/lemon
%dir %{_datadir}/lemon
%{_datadir}/lemon/lempar.c

#----------------------------------------------------------------------------

%prep
%setup -q -c -T
cp %{SOURCE0} .
cp %{SOURCE1} .
%patch0 -p0

%build
gcc %{optflags} -o lemon lemon.c

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/lemon

install -m0755 lemon %{buildroot}%{_bindir}/
install -m0644 lempar.c %{buildroot}%{_datadir}/lemon/lempar.c

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13939 |21mr|lensfun-0.3.95-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major 2
%define lib_name %mklibname lensfun %{lib_major}
%define lib_dev %mklibname lensfun -d

# See https://github.com/darktable-org/darktable/issues/7380#issuecomment-768064808
# about why there are no newer versions in the upstream despite active git master

Name:		lensfun
Version:	0.3.95
Summary:	A library to rectifying the defects introduced by your photographic equipment
Release:	1
License:	GPLv3
Group:		System/Libraries
Url:		https://github.com/lensfun/lensfun
Source0:	https://github.com/lensfun/lensfun/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# https://github.com/lensfun/lensfun/pull/1351
Patch1:		0001-Match-library-file-name-with-soname.patch
# ROSA-specific
Patch2:		0001-ROSA-gksudo-xdg-su.patch
BuildRequires:	python3-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	zlib-devel
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	%{_bindir}/rst2man

%description
A library to rectifying the defects introduced by your photographic equipment.

%files
%{_datadir}/lensfun
%{_docdir}/*

#------------------------------------------------------------------

%package tools
Summary:	Tools for managing lensfun data
Group:		Graphics
Requires:	%{name} = %{EVRD}
# for g-lensfun-update-data
Requires:		/usr/bin/xdg-su

%description tools
This package contains tools to fetch lens database updates and manage lens
adapters in lensfun.

%files tools
%{_bindir}/lensfun-add-adapter
%{_bindir}/lensfun-update-data
%{_bindir}/lensfun-convert-lcp
%{_bindir}/g-lensfun-update-data
%{_mandir}/man1/lensfun-add-adapter.1*
%{_mandir}/man1/lensfun-update-data.1*
%{_mandir}/man1/g-lensfun-update-data.1*
%dir /var/lib/lensfun-updates

#------------------------------------------------------------------

%package -n python3-lensfun
Summary:	Python3 lensfun bindings
Group:		Development/Python
Requires:	%{name} = %{EVRD}

%description -n python3-lensfun
Python3 lensfun bindings

%files -n python3-lensfun
%{python3_sitelib}/lensfun/
%{python3_sitelib}/lensfun*.egg-info

#------------------------------------------------------------------

%package -n	%{lib_name}
Summary:	A library to rectifying the defects introduced by your photographic equipment
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n	%{lib_name}
A library to rectifying the defects introduced by your photographic equipment.

%files -n %{lib_name}
%{_libdir}/liblensfun.so.%{lib_major}*

#------------------------------------------------------------------

%package -n	%{lib_dev}
Summary: Development tools for programs which will use the %{name}
Group: Development/C
Requires: %{lib_name} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n	%{lib_dev}
This package contains the header files and .so
libraries for developing %{name}.

%files -n %{lib_dev}
%{_includedir}/%{name}
%{_libdir}/liblensfun.so
%{_libdir}/pkgconfig/lensfun.pc

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

sed -i -e "s|^#!/usr/bin/env python3$|#!%{__python3}|g" \
	apps/lensfun-add-adapter \
	apps/lensfun-update-data

%build
%cmake \
  -DCMAKE_BUILD_TYPE:STRING=Release \
  -DBUILD_DOC:BOOL=ON \
  -DBUILD_TESTS:BOOL=OFF \
  -DINSTALL_HELPER_SCRIPTS:BOOL=ON

# there are problems with make and make install
%{__cmake} --build . %{?_smp_mflags} --verbose

%install
DESTDIR="%{buildroot}" %{__cmake} --install build
# create/own /var/lib/lensfun-updates
mkdir -p %{buildroot}/var/lib/lensfun-updates

# create/own /var/lib/lensfun-updates
mkdir -p %{buildroot}/var/lib/lensfun-updates


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13940 |21mr|leptonica-1.82.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 5
%define	libname %mklibname lept %{major}
%define	devname %mklibname lept -d

Summary:	C library for image processing and image analysis operations
Name:		leptonica
Version:	1.82.0
Release:	1
License:	MIT
Group:		Graphics
Url:		http://www.leptonica.org
Source0:	http://www.leptonica.org/source/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	giflib-devel >= 5.1
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(zlib)

%description
Well-tested C code for some basic image processing operations, along with
a description of the functions and some design methods. A full set of affine
transformations (translation, shear, rotation, scaling) on images of all depths
is included, with the exception that some of the scaling methods do not work
at all depths. There are also implementations of binary morphology, grayscale
morphology, convolution and rank order filters, and applications such as jbig2
image processing and color quantization.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C library for image processing and image analysis operations
Group:		System/Libraries

%description -n %{libname}
Well-tested C code for some basic image processing operations, along with
a description of the functions and some design methods. A full set of affine
transformations (translation, shear, rotation, scaling) on images of all depths
is included, with the exception that some of the scaling methods do not work
at all depths. There are also implementations of binary morphology, grayscale
morphology, convolution and rank order filters, and applications such as jbig2
image processing and color quantization.

%files -n %{libname}
%doc README.md
%{_libdir}/liblept.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	C library for image processing and image analysis operations
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Well-tested C code for some basic image processing operations, along with
a description of the functions and some design methods. A full set of affine
transformations (translation, shear, rotation, scaling) on images of all depths
is included, with the exception that some of the scaling methods do not work
at all depths. There are also implementations of binary morphology, grayscale
morphology, convolution and rank order filters, and applications such as jbig2
image processing and color quantization.
This package contains development files only.

%files -n %{devname}
%doc %{name}-license.txt README.html
%doc doc/html/*
%{_libdir}/liblept.so
%{_libdir}/libleptonica.so
%{_libdir}/cmake/*.cmake
%{_libdir}/pkgconfig/lept.pc
%{_includedir}/%{name}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Fix perms
chmod 0644 src/*.c


%build
%configure \
	--disable-static \
	--disable-programs
%make

# Build library docs
doxygen Doxyfile


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13941 |21mr|less-608-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (tpg) get rid of that nasy perl or split packages
%global __requires_exclude perl\\(strict\\)|perl\\(warnings\\)
%global __requires_exclude_from ^(.%{_bindir}/tarcolor|%{_bindir}/code2color)$

%define	less_p_vers 1.83

Summary:	A text file browser similar to more, but better
Name:		less
Version:	608
Release:	2
License:	GPLv3+ or BSD-like
Group:		File tools
Url:		http://www.greenwoodsoftware.com/less
Source0:	http://www.greenwoodsoftware.com/less/%{name}-%{version}.tar.gz
Source1:	faq_less.html
Source2:	http://www-zeuthen.desy.de/~friebel/unix/less/lesspipe-%{less_p_vers}.tar.gz
Patch0:		less-374-manpages.patch
Patch1:		less-382-fixline.patch
Patch2:		lesspipe-1.72-posix.patch
# If o3read isn't installed, use the filter that comes with lesspipe
Patch3:		lesspipe-1.72-optional-o3read.patch
Patch4:		lesspipe-1.83-use-odt2txt-insted-of-sxw2txt.patch
Patch5:		CVE-2022-46663.patch
#BuildRequires:	termcap-devel
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(ncursesw)
# lesspipe.sh requires file
Requires:	file
Requires:	sed
# To open various file types
Recommends:	bsdtar
Recommends:	hdf5
Recommends:	html2text
Recommends:	netcdf
Recommends:	odt2txt

%description
The less utility is a text file browser that resembles more, but has more
capabilities. It allows you to move backwards in the file as well as forwards.
Since less doesn't have to read the entire input file before it starts, it
starts up more quickly than text editors (for example, vi).
You should install less because it is a basic utility for viewing text files,
and you'll use it frequently.

%files
%doc COPYING README NEWS README.lesspipe
%doc faq_less.html lesspipe-%{less_p_vers}/{ChangeLog,german.txt,TODO}
%doc README.urpmi
%{_sysconfdir}/profile.d/20less.*
%{_bindir}/*
%{_mandir}/man1/*


#----------------------------------------------------------------------------

%prep
%setup -q -a 2
%patch0 -p1 -b .manpages~
%patch1 -p1 -b .fixline
pushd lesspipe-%{less_p_vers}
%patch2 -p1 -b .posix~
%patch3 -p1 -b .o3read~
popd
%patch4 -p1 -b .odt2xt~
%patch5 -p1

chmod a+r lesspipe-%{less_p_vers}/*
cp lesspipe-%{less_p_vers}/README README.lesspipe

# Some source files have very odd permissions
# that happen to be passed on to the debug package
find . -name "*.[ch]" |xargs chmod 0644


%build
CFLAGS=$(echo "%{optflags} -DHAVE_LOCALE" | sed -e s/-fomit-frame-pointer//)
%configure --with-regex=auto
%make
cd lesspipe-%{less_p_vers}
./configure --yes
cd ..


%install
%makeinstall_std

# Install lesspipe
pushd lesspipe-%{less_p_vers}
%makeinstall PREFIX=%{buildroot}%{_prefix}
popd

# Install faq
install -m 644 %{SOURCE1} .


# Create profile.d scripts to set LESSOPEN for lesspipe use
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/20less.sh
CHARSET=\$(locale charmap 2> /dev/null)
if [ -z \$LESSCHARSET ]; then
	case "\$CHARSET" in
		ISO*|KOI*|CP*)
			export LESSCHARSET="\$CHARSET"
		;;
		* )
			export LESSCHARSET="UTF-8"
		;;
	esac
fi
# Make a lesspipe filter for less
export LESSOPEN="|/usr/bin/lesspipe.sh %s"
export LESS="-R"
EOF

cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/20less.csh
if ( \$?LESSCHARSET ) then
	if ( \$LESSCHARSET == "") then
		unsetenv LESSCHARSET
	endif
endif
if ! ( \$?LESSCHARSET ) then
	set CHARSET=\`locale charmap\`
	switch ("\$CHARSET")
		case ISO*
		case KOI*
		case CP*
			setenv LESSCHARSET \$CHARSET
			breaksw
		default
			setenv LESSCHARSET UTF-8
			breaksw
	endsw
endif
# Make a lesspipe filter for less
setenv LESSOPEN "|/usr/bin/lesspipe.sh %s"
setenv LESS "-R"
EOF

# Advice to users
cat << EOF > README.urpmi
This version of less includes lesspipe.sh from Wolfgang Friebel
( http://www-zeuthen.desy.de/~friebel//unix/less/ ).

This enables you to view gz, bz2, lzma, zip, rpm and html files
among others with less. It works by setting the LESSOPEN 
environment variable, see the man pages for details.

If you want to disable this behavior, either use 'unset LESSOPEN' or
use an alias ( alias less='less -l' ).

Less will open html files with lynx, then html2text, then cat if
none of the previous were found.
EOF



%check
# FIXME: Checks failing on ABF, but not locally...
cd lesspipe-%{less_p_vers}
# Make sure we're testing stuff with new less and not currently installed one
export PATH=$PWD/../:$PATH
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13942 |21mr|lesstif-0.95.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 2
%define libmrm %mklibname Mrm %{major}
%define libuil %mklibname Uil %{major}
%define libxm %mklibname Xm %{major}
%define devname %mklibname %{name} -d

%define lessdoxdir %{_docdir}/%{name}

Summary:	A free Motif clone
Name:		lesstif
Version:	0.95.2
Release:	16
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.lesstif.org/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
Source2:	mwm.png
Source3:	mwm32.png
Source4:	lesstif-mwm-menu-xdg
# Fedora patches
Patch0:		lesstif-0.95.2-motif-config.patch
Patch1:		lesstif-0.95.0-XxxxProperty-64bit.patch
# Fix PutPixel32 crashing on 64 bit (RH bug #437133)
Patch2:		lesstif-0.95.0-PutPixel32.patch
# Slightly ugly hack to disable libDtPrint build. It seems to be
# completely useless, I don't think any apps use it. Debian doesn't
# ship it. - AdamW 2007/07
Patch3:		lesstif-0.95.0-disable-dtprint.patch

BuildRequires:	flex
BuildRequires:	imake
BuildRequires:	x11-util-cf-files
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xt)

%description
Lesstif is an API compatible clone of the Motif toolkit. It implements
the Motif 2.1 API. Many Motif applications compile and run
out-of-the-box with LessTif, and we want to hear about those that
don't.

%files
%doc AUTHORS BUG-REPORTING COPYING COPYING.LIB CREDITS
%doc ChangeLog NEWS
%doc README ReleaseNotes.txt ReleaseNotes.html
%doc doc/www.lesstif.org/FAQ.html
%{_mandir}/man1/lesstif.1*

#----------------------------------------------------------------------------

%package -n %{libmrm}
Summary:	Lesstif libraries
Group:		System/Libraries

%description -n %{libmrm}
This package contains a shared library for %{name}.

%files -n %{libmrm}
%{_libdir}/libMrm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libuil}
Summary:	Lesstif libraries
Group:		System/Libraries

%description -n %{libuil}
This package contains a shared library for %{name}.

%files -n %{libuil}
%{_libdir}/libUil.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libxm}
Summary:	Lesstif libraries
Group:		System/Libraries

%description -n %{libxm}
This package contains a shared library for %{name}.

%files -n %{libxm}
%{_libdir}/libXm.so.%{major}*

#----------------------------------------------------------------------------

%package mwm
Summary:	Lesstif Motif window manager clone based on fvwm
Group:		Graphical desktop/Other
Requires:	desktop-common-data
Conflicts:	openmotif

%description mwm
MWM is a window manager that adheres largely to the Motif mwm specification.

%files mwm
%doc clients/Motif-2.1/mwm/{COPYING,README}
%{_prefix}/lib/menu/%{name}-mwm
%{_datadir}/X11/mwm
%{_datadir}/X11/app-defaults/Mwm
%{_mandir}/man1/mwm.1*
%{_mandir}/man5/mwmrc.5*
%{_bindir}/mwm
%{_iconsdir}/hicolor/16x16/apps/mwm.png
%{_iconsdir}/hicolor/32x32/apps/mwm.png

#----------------------------------------------------------------------------

%package clients
Summary:	Lesstif clients
Group:		Graphical desktop/Other
Requires:	lesstif = %{EVRD}
Conflicts:	openmotif
Conflicts:	libopenmotif-devel

%description clients
Uil and xmbind clients for Lesstif.

%files clients
%doc doc/UIL.txt
%{_bindir}/uil
%{_bindir}/xmbind
%{_mandir}/man1/xmbind.1*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for Lesstif/Motif development
Group:		Development/C
Requires:	%{libmrm} = %{EVRD}
Requires:	%{libuil} = %{EVRD}
Requires:	%{libxm} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}
Conflicts:	libopenmotif-devel

%description -n %{devname}
This package contains the lesstif development library and header files
required to develop motif-based applications.

This package also contains development documentation in html (Lessdox),
and mxmkmf for Lesstif.

%files -n %{devname}
%doc %{_docdir}/%{name}
%{_includedir}/*
%{_libdir}/*.so
%{_bindir}/motif-config
%{_bindir}/mxmkmf
%{_datadir}/X11/config/*
%{_datadir}/aclocal/ac_find_motif.m4
%{_mandir}/man1/ltversion.1.*
%{_mandir}/man1/uil.1.*
%{_mandir}/man3/*
%{_mandir}/man5/*
%exclude %{_mandir}/man5/mwmrc.5*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Fix autoconf with libtool 2.2
# http://trac.macports.org/ticket/18287
sed -i -e "s:LT_HAVE_FREETYPE:FINDXFT_HAVE_FREETYPE:g" -e "s:LT_HAVE_XRENDER:FINDXFT_HAVE_XRENDER:g" acinclude.m4
autoconf
#LESSTIFTOP=$PWD

%build
export CFLAGS="%{optflags} -DMWM_DDIR=\\\"%{_datadir}/X11/mwm\\\""
%configure \
	-enable-shared \
	-disable-maintainer-mode \
	-disable-debug \
	-enable-production

perl -pi -e '\
s@^(appdir = ).*(/X11/app-defaults)@$1/usr/share$2@;\
s@^(mwmddir = ).*(/X11/mwm)@$1/usr/share$2@'\
    clients/Motif-2.1/mwm/Makefile
perl -pi -e 's@^(configdir = ).*@$1%{_datadir}/X11/config@' lib/config/Makefile
perl -pi -e 's@^(rootdir = ).*@$1%{lessdoxdir}@' `find doc -name Makefile`
perl -pi -e 's@/X11R6/@/@g' `find . -name Makefile` scripts/motif-config.in

%make

perl -pi -e '\
s@-L/usr(/X11R6)?/%{_lib} @@g;\
s@-I/usr(/X11R6)?/include @@g'\
    scripts/motif-config

%install
%makeinstall_std

install -d %{buildroot}%{lessdoxdir}/Lessdox
install -c -m 644 doc/lessdox/*/*.html %{buildroot}%{lessdoxdir}/Lessdox || :

# generate config files 
mkdir -p %{buildroot}%{_datadir}/X11/config
cd %{buildroot}%{_datadir}/X11/config
#mv Imake.tmpl Imake-lesstif.tmpl.orig

perl -ne ' 
    if( /#include <Imake.rules>/ ){              
        print $_;
        print "#include <Motif-lesstif.tmpl>\n";
        print "#include <Motif-lesstif.rules>\n";
    }
    elsif ( /IMAKE_CMD = \$\(IMAKE\)/ ){
        print STDERR "found\n";
        s|\$\(IMAKE\)|\$(IMAKE) -T Imake-lesstif.tmpl|;
        print $_;
    }
    else {
        print $_;
    }
' < %{_datadir}/X11/config/Imake.tmpl > Imake-lesstif.tmpl


cd %{buildroot}%{_bindir}
sed -e 's/imake $args/imake -T Imake-lesstif.tmpl $args/' < `which xmkmf` > mxmkmf

# menu support
mkdir -p %{buildroot}/%{_prefix}/lib/menu
install -m 0755 %{SOURCE4} %{buildroot}%{_prefix}/lib/menu/lesstif-mwm

#icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32}/apps
cp %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/mwm.png
cp %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/mwm.png

rm -f %{buildroot}%{_datadir}/X11/config/host.def

# remove unpackaged files
rm -fr %{buildroot}/%{_prefix}/LessTif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13943 |21mr|lettuce-2.3.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          lettuce
Version:       2.3.3
Release:       8
Summary:       Scalable Java Redis client
License:       ASL 2.0
# Newer release available @ https://github.com/mp911de/lettuce
URL:           http://redis.paluch.biz/
Source0:       https://github.com/wg/lettuce/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(io.netty:netty:3)
BuildRequires: mvn(junit:junit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Lettuce is a scalable thread-safe Redis client providing both synchronous and
asynchronous connections. Multiple threads may share one connection provided
they avoid blocking and transactional operations such as BLPOP, and MULTI/EXEC.
Multiple connections are efficiently managed by the netty NIO framework.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%pom_remove_plugin :maven-gpg-plugin

%pom_xpath_set "pom:dependency[pom:artifactId = 'netty']/pom:version" 3

%mvn_file : %{name}

%build

# Tests disabled: use web connection Caused by: java.net.ConnectException: Connection refused: localhost/127.0.0.1:6379
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13944 |21mr|leveldb-1.22.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define url_ver %(echo %{version}|cut -d. -f1,2)

Name:		leveldb
Version:	1.22.0
Release:	1
Summary:	A fast and lightweight key/value database library by Google
Group:		Databases
License:	BSD
URL:		https://github.com/google/leveldb/
Source0:	https://github.com/google/leveldb/archive/%{url_ver}.tar.gz?/%{name}-%{version}.tar.gz

# available in https://github.com/fusesource/leveldbjni/blob/leveldb.patch
Patch0001:      0001-Allow-leveldbjni-build.patch
# https://github.com/fusesource/leveldbjni/issues/34
# https://code.google.com/p/leveldb/issues/detail?id=184
# Add DB::SuspendCompactions() and DB:: ResumeCompactions() methods
Patch0002:      0002-Added-a-DB-SuspendCompations-and-DB-ResumeCompaction.patch
# Cherry-picked from Basho's fork
Patch0003:      0003-allow-Get-calls-to-avoid-copies-into-std-string.patch
# https://groups.google.com/d/topic/leveldb/SbVPvl4j4vU/discussion
Patch0004:      0004-bloom_test-failure-on-big-endian-archs.patch

BuildRequires:	cmake
BuildRequires:	snappy-devel
BuildRequires:	libtool

%description
LevelDB is a fast key-value storage library written at Google that provides an
ordered mapping from string keys to string values.

#----------------------------------------------------------------------------

%package -n     %{libname}
Summary:	%{summary}
Group:		System/Libraries

%description -n %{libname}
LevelDB is a fast key-value storage library written at Google that provides an
ordered mapping from string keys to string values.

%files -n       %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n     %{devname}
Summary:	Development files for LevelDB
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
LevelDB is a fast key-value storage library written at Google that provides an
ordered mapping from string keys to string values.

This package contains additional header files for development with LevelDB.

%files -n       %{devname}
%doc doc/ AUTHORS LICENSE README.md
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{url_ver}

cat > %{name}.pc << EOF
prefix=%{_prefix}
exec_prefix=${prefix}
libdir=%{_libdir}
includedir=%{_includedir}

Name: %{name}
Description: %{summary}
Version: %{version}
Libs: -l%{name}
EOF

%build
%cmake
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp -a %{name}.pc %{buildroot}%{_libdir}/pkgconfig/


%check
ctest -V %{?_smp_mflags} -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13945 |21mr|leveldb-java-0.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname leveldb
%bcond_with test
%bcond_with javadoc

Name:          leveldb-java
Version:       0.7
Release:       10%{?dist}
Summary:       Port of LevelDB to Java
License:       ASL 2.0
Group:         Development/Java
URL:           https://github.com/dain/leveldb
Source0:       https://github.com/dain/leveldb/archive/%{version}.tar.gz
# remove org.iq80.snappy:snappy support
# use org.xerial.snappy:snappy-java
# Thanks to Robert Rati rrati@redhat.com
Patch0:        leveldb-java-xerial-snappy.patch

BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(org.xerial.snappy:snappy-java)
%if %{with test}
# test deps
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.testng:testng)
# circular deps https://bugzilla.redhat.com/show_bug.cgi?id=881590
BuildRequires: mvn(org.fusesource.leveldbjni:leveldbjni-all)
%endif
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-site-plugin
BuildRequires: maven-surefire-provider-testng

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a rewrite (port) of LevelDB in Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1

# unavailable plugins
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :proguard-maven-plugin %{oname}
# only needed for ProGuard
%pom_remove_dep com.google.code.findbugs:jsr305 %{oname}
# Unwanted
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-shade-plugin %{oname}

# remove unavailable com.google.doclava doclava 1.0.3
%pom_remove_plugin :maven-javadoc-plugin

# fix spurious-executable-perm
chmod 644 license.txt

%if %{with test}
# IndexOutOfBoundsException: end index (10000026) must not be greater than size (32)
rm -r %{oname}/src/test/java/org/iq80/leveldb/table/MMapTableTest.java \
 %{oname}/src/test/java/org/iq80/leveldb/table/FileChannelTableTest.java
# add missing test dep
%pom_add_dep junit:junit::test %{oname}
%endif

%pom_remove_dep org.fusesource.leveldbjni:leveldbjni-all %{oname}
rm -r %{oname}/src/test/java/org/iq80/leveldb/impl/NativeInteropTest.java

%build
%if %{without test}
args="-f"
%endif
%if %{with javadoc}
args=$args" -j"
%endif
# Tests are inconsistent and take a long time to run
%mvn_build $args

%install
%mvn_install

%files  -f .mfiles
%doc README.md
%license license.txt notice.md

%if %{without javadoc}
%files javadoc -f .mfiles-javadoc
%license license.txt notice.md
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13946 |21mr|leveldbjni-1.8-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

# rpmbuild < 4.6 support
%if ! 0%{?__isa_bits}
%ifarch x86_64 ia64 ppc64 sparc64 s390x alpha ppc64le aarch64
%global __isa_bits 64
%else
%global __isa_bits 32
%endif
%endif

Name:          leveldbjni
Version:       1.8
Release:       21
Summary:       A Java Native Interface to LevelDB
License:       BSD
Group:         Development/Java
URL:           https://github.com/fusesource/leveldbjni/
Source0:       https://github.com/fusesource/leveldbjni/archive/%{name}-%{version}.tar.gz

BuildRequires:  gcc-c++
BuildRequires: autoconf
BuildRequires: automake
BuildRequires: libtool
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-tools-javadoc)
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:)
BuildRequires: mvn(org.fusesource.hawtjni:hawtjni-runtime)
BuildRequires: mvn(org.fusesource.hawtjni:maven-hawtjni-plugin)
BuildRequires: mvn(org.iq80.leveldb:leveldb-api)
# see https://bugzilla.redhat.com/show_bug.cgi?id=881608
BuildRequires: pkgconfig(leveldb) >= 1.7.0-4
BuildRequires: snappy-devel
BuildRequires: xmvn

%description
LevelDB JNI gives you a Java interface to the
LevelDB C++ library which is a fast key-value
storage library written at Google that provides
an ordered mapping from string keys to string
values.

%package javadoc
Summary:       Javadoc for %{name}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin :jxr-maven-plugin
%pom_remove_plugin :surefire-report-maven-plugin
# disable non linux module
%pom_remove_dep org.fusesource.%{name}:%{name}-osx %{name}-all
%pom_remove_dep org.fusesource.leveldbjni:leveldbjni-win32 %{name}-all
%pom_remove_dep org.fusesource.leveldbjni:leveldbjni-win64 %{name}-all

%pom_xpath_remove "pom:Private-Package" %{name}-all
%pom_xpath_remove "pom:Export-Package" %{name}-all
%pom_xpath_remove "pom:Import-Package" %{name}-all

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" '
<Import-Package>
 org.fusesource.hawtjni.runtime,
 org.iq80.leveldb*;version=${leveldb-api-version}
</Import-Package>' %{name}-all

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" '
<Export-Package>
 org.fusesource.leveldbjni*;version=${project.version}
</Export-Package>' %{name}-all

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" '
<Private-Package>
 org.fusesource.leveldbjni.internal*
</Private-Package>' %{name}-all

%pom_xpath_remove "pom:Bundle-NativeCode"  %{name}-all

%if %{__isa_bits} == 64

%pom_remove_dep org.fusesource.%{name}:%{name}-linux32 %{name}-all

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" "
<Bundle-NativeCode>
  META-INF/native/linux64/libleveldbjni.so;osname=Linux;processor=x86-64
</Bundle-NativeCode>" %{name}-all

%else

%pom_remove_dep org.fusesource.%{name}:%{name}-linux64 %{name}-all

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" "
<Bundle-NativeCode>
  META-INF/native/linux32/libleveldbjni.so;osname=Linux;processor=x86
</Bundle-NativeCode>" %{name}-all

%endif

rm -r %{name}/src/test/java/org/fusesource/%{name}/test/DBTest.java
cp -f /usr/share/automake-*/{config.{sub,guess},compile} leveldbjni/src/main/native-package/autotools/

%pom_remove_plugin :maven-jar-plugin %{name}
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:3.0.2 %{name} '
<configuration>
  <archive>  
    <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  </archive> 
</configuration>'

%build

%ifarch ppc64
export MAVEN_OPTS='-Xms1024m -Xmx2048m -XX:MaxPermSize=384m'
%endif
%mvn_file :%{name}-all %{name}-all
%mvn_file :%{name}-linux%{__isa_bits} %{name}-linux
export JAVA_HOME=%{_jvmdir}/java LEVELDB_HOME=%{_prefix} SNAPPY_HOME=%{_prefix}
%mvn_build -- -Plinux%{__isa_bits},all -Dleveldb=%{_prefix} -Dsnappy=%{_prefix}

%install
%mvn_install

%files  -f .mfiles
%doc changelog.md readme.md releasing.md
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13947 |21mr|lexmark7000linux-990516-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Lexmark 7xxx and 57zzz printer driver for Linux
Name:		lexmark7000linux
Version:	990516
Release:	20
License:	GPLv2+
Group:		System/Printing
Url:		http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/olddrv.html
Source0:	http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/%{name}-%{version}.tar.bz2

%description
This is the printer driver for Lexmark 7000 "GDI" printers.

 * Known to work with Lexmark 7000, 7200 and 5700 printers
 * 600x600 dpi Black & White printing
 * Preliminary 600x600 CMY colour printing for 7000, 7200

%files
%doc README CHANGES lexmark*-filter lexmarkprotocol.txt *.prn *.pbm
%{_bindir}/pbm2l7k
%{_bindir}/pnmraw2cmyk
%{_bindir}/pbm2lex5700
%{_bindir}/pnm2lex7000
%{_bindir}/pnm2lex5700
%{_bindir}/dbman
%{_bindir}/psprint
%{_bindir}/pscprint

#----------------------------------------------------------------------------

%prep
%setup -q

# Fix Makefile
sed -i -e 's@-o root -g root@@' Makefile

%build
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}

%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13948 |21mr|lftp-4.9.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
# build options
%bcond_with dante

%define major 0
%define libjobs %mklibname %{name}-jobs %{major}
%define libtasks %mklibname %{name}-tasks %{major}
%define devname %mklibname %{name} -d

Summary:	Commandline ftp client
Name:		lftp
Version:	4.9.2
Release:	3
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://lftp.yar.ru/
Source0:	http://lftp.yar.ru/ftp/%{name}-%{version}.tar.xz
Patch0:		lftp-2.2.0-lftpgetmanpage.patch
Patch1:		lftp-3.7.7-mdkconf.patch
Patch2:		lftp-4.9.1-link.patch
Patch3:		lftp-4.9.1-desktop-ru-localization.patch
%if %{with dante}
BuildRequires:	dante-devel
%endif
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(zlib)
Requires:	less
Provides:	ftp = %{EVRD}

%description
LFTP is a shell-like command line ftp client. The main two advantages
over other ftp clients are reliability and ability to perform tasks
in background. It will reconnect and reget the file being transferred
if the connection broke. You can start a transfer in background and
continue browsing on the ftp site.  It does this all in one process.
When you have started background jobs and feel you are done, you can
just exit lftp and it automatically moves to nohup mode and completes
the transfers. It has also such nice features as reput and mirror.

%files -f %{name}.lang
%doc COPYING FAQ MIRRORS NEWS README.* THANKS TODO BUGS
%config(noreplace) %{_sysconfdir}/lftp.conf
%{_bindir}/*
%{_mandir}/man?/*
%{_datadir}/%{name}/
%{_libdir}/lftp/%{version}/*.so
%{_datadir}/applications/lftp.desktop
%{_datadir}/icons/hicolor/*/apps/*

#----------------------------------------------------------------------------

%package -n %{libjobs}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libjobs}
Dynamic libraries from %{name}.

%files -n %{libjobs}
%doc COPYING
%{_libdir}/liblftp-jobs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libtasks}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libtasks}
Dynamic libraries from %{name}.

%files -n %{libtasks}
%doc COPYING
%{_libdir}/liblftp-tasks.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libjobs} = %{EVRD}
Requires:	%{libtasks} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc COPYING
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--with-modules \
	--with-linux-crypto \
	--with-openssl \
	--with-pager="exec less" \
%if %{with dante}
	--with-socksdante=yes \
%endif
	--with-libidn2
%make 

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13949 |21mr|lha-1.14i-26.20210701.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20210701

Summary:	An archiving and compression utility for LHarc format archives
Name:		lha
Epoch:		1
Version:	1.14i
Release:	26.%{git}.1
License:	Freeware-like
Group:		Archiving/Compression
Url:		https://github.com/jca02266/lha
Source0:	https://github.com/jca02266/lha/archive/master.zip
Source1:	http://packages.debian.org/changelogs/pool/non-free/l/lha/current/copyright

%description
LhA is an archiving and compression utility for LHarc format archive.
LhA is mostly used in the Amiga and in the DOS world, but can be used 
under Linux to extract files from .lha and .lzh archives. 

Install the LhA package if you need to extract files from .lha or .lzh
Amiga or DOS archives, or if you have to build LhA archives to
be read on the Amiga or DOS.

%files
%doc copyright
%{_bindir}/lha
%{_mandir}/man1/lha.1*
%lang(ja) %{_mandir}/ja/mann/lha.n*

#------------------------------------------------------------------

%prep
%setup -qn %{name}-master
cp %{SOURCE1} .

%build
autoreconf -is
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/ja/mann
install -m 644 man/lha.n %{buildroot}%{_mandir}/ja/mann/lha.n

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13950 |21mr|lib2geom-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Easy to use 2D geometry library in C++
Name:		lib2geom
Version:	1.4
Release:	2
License:	LGPLv2+ and MPLv1.1
Group:		System/Libraries
Url:		http://lib2geom.sourceforge.net/
Source0:	https://gitlab.com/inkscape/lib2geom/-/archive/%{version}/%{name}-%{version}.tar.gz
Patch1:		lib2geom-1.3-pkgconfig.patch
Patch2:		lib2geom-1.3-abi-version.patch
Patch3:		lib2geom-1.3-no-rpath.patch
Patch100:	e2k-cmake-fix.patch
BuildRequires:	cmake
BuildRequires:	boost-devel
BuildRequires:	cmake(double-conversion)
BuildRequires:	python3dist(cython)
BuildRequires:	pkgconfig(cairomm-1.0)
BuildRequires:	pkgconfig(gmock)
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(gtest)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(py3cairo)

%description
2Geom is a C++ 2D geometry library geared towards robust processing of
computational geometry data associated with vector graphics. The primary
design consideration is ease of use and clarity.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Easy to use 2D geometry library in C++
Group:		System/Libraries

%description -n %{libname}
2Geom is a C++ 2D geometry library geared towards robust processing of
computational geometry data associated with vector graphics. The primary
design consideration is ease of use and clarity.

%files -n %{libname}
%license COPYING*
%{_libdir}/%{name}.so.%{major}*
%{_libdir}/%{name}.so.1.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for lib2geom
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	2geom-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and headers for lib2geom.

%files -n %{devname}
%doc *.md
%{_includedir}/2geom-*/
%{_libdir}/cmake/2Geom/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/2geom.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1 -M99
%ifarch %{e2k}
%patch100 -p1
%endif

%build
%cmake -D2GEOM_BUILD_SHARED:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13951 |21mr|libabw-0.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname abw %{api} %{major}
%define devname %mklibname abw -d

Summary:	A library for import of AbiWord files
Name:		libabw
Version:	0.1.1
Release:	5
License:	MPLv2.0
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libabw/
Source0:	http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.bz2
Patch0:		0001-coverity-1259904-dereference-before-null-check.patch
Patch1:		0001-coverity-1259905-do-not-let-AbiDocument-parse-throw.patch
BuildRequires:	doxygen
BuildRequires:	gperf
BuildRequires:	boost-devel
BuildRequires:	help2man
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)

%description
%{name} is a library for import of AbiWord files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for import of AbiWord files
Group:		System/Libraries

%description -n %{libname}
A library for import of AbiWord files.

%files -n %{libname}
%{_libdir}/libabw-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/libabw-%{api}.so

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files for %{name}.

%files doc
%doc COPYING.MPL
%doc docs/doxygen/html

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform AbiWord files into other formats
Group:		Publishing

%description tools
Tools to transform AbiWord files into other formats. Currently
supported: XHTML, raw, text.

%files tools
%{_bindir}/abw2raw
%{_bindir}/abw2text
%{_bindir}/abw2html
%{_mandir}/man1/abw2raw.1*
%{_mandir}/man1/abw2text.1*
%{_mandir}/man1/abw2html.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# rhbz#1258125 fix build with boost 1.59
export CPPFLAGS='-DBOOST_ERROR_CODE_HEADER_ONLY -DBOOST_SYSTEM_NO_DEPRECATED'
autoreconf -fi

%configure \
	--disable-silent-rules \
	--disable-static \
	--disable-werror
sed -i \
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    libtool
%make

export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
help2man -N -n 'debug the conversion library' -o abw2raw.1 ./src/conv/raw/.libs/abw2raw
help2man -N -n 'convert AbiWord document into HTML' -o abw2html.1 ./src/conv/html/.libs/abw2html
help2man -N -n 'convert AbiWord document into plain text' -o abw2text.1 ./src/conv/text/.libs/abw2text

%install
%makeinstall_std

# we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}

mkdir -p %{buildroot}/%{_mandir}/man1
install -m 0644 abw2*.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13952 |21mr|libaccounts-glib-1.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define major 1
%define libname %mklibname accounts-glib %{major}
%define girname %mklibname accounts-glib-gir 1.0
%define devname %mklibname accounts-glib -d

Summary:	Accounts and SSO (Single Sign-On) framework
Name:		libaccounts-glib
Version:	1.25
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://gitlab.com/accounts-sso/libaccounts-glib/
Source0:	https://gitlab.com/accounts-sso/libaccounts-glib/-/archive/VERSION_%{version}/libaccounts-glib-VERSION_%{version}.tar.bz2
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	python3-gi >= 2.90
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(check) >= 0.9.4
BuildRequires:	pkgconfig(gio-2.0) >= 2.30
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.26
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pygobject-3.0) >= 2.90
BuildRequires:	pkgconfig(sqlite3) >= 3.7.0

%description
Accounts and SSO (Single Sign-On) framework for Linux and POSIX based
platforms.

%files
%{_bindir}/*
%{_datadir}/xml
%{_datadir}/gettext/its/accounts-*
%{_datadir}/gtk-doc/html/libaccounts-*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Accounts and SSO (Single Sign-On) framework
Group:		System/Libraries

%description -n %{libname}
Accounts and SSO (Single Sign-On) framework for Linux and POSIX based
platforms.

%files -n %{libname}
%{_libdir}/%{name}.so.0
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Accounts-1.0.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name} < 1.16-2

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc COPYING NEWS README.md
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}
%{_datadir}/gir-1.0/Accounts-1.0.gir
%{_datadir}/vala/vapi/*
%{_datadir}/dbus-1/interfaces/com.google.code.AccountsSSO.Accounts.Manager.xml

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python binding for %{name}
Group:		Development/Python

%description -n python3-%{name}
Python binding for %{name}.

%files -n python3-%{name}
%{python3_sitearch}/gi/overrides/Accounts.*
%{python3_sitearch}/gi/overrides/__pycache__/

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-VERSION_%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13953 |21mr|libadwaita-1.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} |cut -d. -f-2)

%define api 1
%define major 0
%define libname %mklibname adwaita %{api} %{major}
%define girname %mklibname adwaita-gir %{api}
%define devname %mklibname adwaita %{api} -d

Summary:	Building blocks for GNOME applications
Name:		libadwaita
Version:	1.2.5
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/libadwaita
Source0:	https://download.gnome.org/sources/libadwaita/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	python3dist(gi-docgen)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)

%description
Building blocks for modern GNOME applications.

#----------------------------------------------------------------------------

%package common
Summary:	Common files for %{name}
Group:		System/Libraries
BuildArch:	noarch

%description common
Common files for %{name}.

%files common -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for building blocks of GNOME applications
Group:		System/Libraries
Requires:	%{name}-common = %{EVRD}

%description -n %{libname}
Library for building blocks of modern GNOME applications.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname}%{?_isa} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Adw-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{girname}%{?_isa} = %{EVRD}
Requires:	%{libname}%{?_isa} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc HACKING.md
%{_appdatadir}/*.metainfo.xml
%{_bindir}/adwaita-%{api}-demo
%{_datadir}/applications/*.desktop
%{_datadir}/gir-1.0/*-%{api}.gir
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/vala/vapi/%{name}-%{api}.*
%{_defaultdocdir}/%{name}-%{api}
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13954 |21mr|libaesgm-20090429-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		libaesgm
Version:	20090429
Release:	26%{?dist}
License:	BSD
Summary:	Library implementation of AES (Rijndael) cryptographic methods
Group:		System/Libraries
URL:		http://gladman.plushost.co.uk/oldsite/AES/index.php
Source0:	http://gladman.plushost.co.uk/oldsite/AES/aes-src-29-04-09.zip
Source1:	Makefile.aes
# Add fileencryption support
# http://www.gladman.me.uk/cryptography_technology/fileencrypt/
Patch0:		libaesgm-20090429-fileencrypt.patch
# Sync to latest code
# https://github.com/BrianGladman/AES
Patch1:		libaesgm-20090429-git8798ad829374cd5ff312f55ba3ccccfcf586fa11.patch

%description
Library implementation of AES (Rijndael) cryptographic methods.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Library implementation of AES (Rijndael) cryptographic methods
Group:		System/Libraries

%description -n %{libname}
Library implementation of AES (Rijndael) cryptographic methods.

%files -n %{libname}
%{_libdir}/libaesgm.so.*

#----------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for libaesgm
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for libaesgm.

%files -n %{devname}
%{_includedir}/aes/
%{_libdir}/libaesgm.so

#----------------------------------------------------------------

%prep
%setup -q -c -n %{name}-%{version}
cp %{SOURCE1} Makefile
%patch0 -p1 -b .fileencrypt
%patch1 -p1 -b .git8798ad82
sed -i 's/\r//' *.txt

%build
make CFLAGS="%{optflags} -fPIC -DUSE_SHA1" LDFLAGS="%{build_ldflags}"

%install
make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13955 |21mr|libaio-0.3.113-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname aio %{major}
%define devname %mklibname aio -d
%define sdevname %mklibname aio -d -s

Summary:	Linux-native asynchronous I/O access library
Name:		libaio
Version:	0.3.113
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
URL:		https://pagure.io/libaio
Source0:	https://releases.pagure.org/libaio/libaio-%{version}.tar.gz
Patch0:		libaio-install-to-slash.patch

%description
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
richer API and capability set than the simple POSIX async I/O facility.
This library, libaio, provides the Linux-native API for async I/O.
The POSIX async I/O facility requires this library in order to provide
kernel-accelerated async I/O capabilities, as do applications which
require the Linux-native async I/O API.
You may require this package if you want to install some DBMS.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries for libaio
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
richer API and capability set than the simple POSIX async I/O facility.
This library, libaio, provides the Linux-native API for async I/O.
The POSIX async I/O facility requires this library in order to provide
kernel-accelerated async I/O capabilities, as do applications which
require the Linux-native async I/O API.

%files -n %{libname}
%{_libdir}/libaio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development and include files for libaio
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{libname}-devel < 0.3.109-6

%description -n %{devname}
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
richer API and capability set than the simple POSIX async I/O facility.
This library, libaio, provides the Linux-native API for async I/O.
The POSIX async I/O facility requires this library in order to provide
kernel-accelerated async I/O capabilities, as do applications which
require the Linux-native async I/O API.

This archive contains the header-files for %{libname} development.

%files -n %{devname}
%doc COPYING TODO
%{_includedir}/*
%{_libdir}/libaio.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Development components for libaio
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Obsoletes:	%{libname}-static-devel < 0.3.109-6

%description -n %{sdevname}
The Linux-native asynchronous I/O facility ("async I/O", or "aio") has a
richer API and capability set than the simple POSIX async I/O facility.
This library, libaio, provides the Linux-native API for async I/O.
The POSIX async I/O facility requires this library in order to provide
kernel-accelerated async I/O capabilities, as do applications which
require the Linux-native async I/O API.

This archive contains the static libraries (.a).

%files -n %{sdevname}
%{_libdir}/libaio.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
make install prefix=%{buildroot}/usr \
	    libdir=%{buildroot}/%{_libdir} \
	    root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13956 |21mr|libalkimia-8.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname alkimia %{major}
%define devname %mklibname alkimia -d

%define oname alkimia5

Summary:	Financial library
Name:		libalkimia
Version:	8.1.0
Release:	2
License:	LGPLv2+
Group:		Office
Url:		http://kde-apps.org/content/show.php/libalkimia?content=137323
Source0:	https://download.kde.org/stable/alkimia/%{version}/alkimia-%{version}.tar.xz
BuildRequires:	gmpxx-devel
BuildRequires:	extra-cmake-modules
BuildRequires:	cmake
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)

%description
Financial library used by KMyMoney and Scrooge.

#---------------------------------------------------------------
%package	qt5
Summary:	Accounts framework Qt5 bindings
Group:		Graphical desktop/KDE

%description qt5
%{summary}.

%files qt5 -f %{name}.lang
%doc README.md
#%%{_kde5_datadir}/alkimia5/
%{_kde5_qmldir}/org/kde/alkimia/
%{_kde5_bindir}/onlinequoteseditor5
%{_kde5_datadir}/applications/kde5/org.kde.onlinequoteseditor5.desktop
%{_kde5_datadir}/icons/*/*/apps/onlinequoteseditor5.*
%{_kde5_datadir}/knsrcfiles/*.knsrc
%{_datadir}/metainfo/org.wincak.foreigncurrencies2.appdata.xml
%{_kde5_datadir}/plasma/plasmoids/org.wincak.foreigncurrencies2
%{_kde5_services}/plasma-applet-org.wincak.foreigncurrencies2.desktop

#---------------------------------------------------------------

%package -n %{libname}
Summary:	Financial Library
Group:		System/Libraries

%description -n %{libname}
Financial library used by KMyMoney and Scrooge.

%files -n %{libname}
%{_kde5_libdir}/lib%{oname}.so.%{major}*

#--------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_includedir}/alkimia
%{_kde5_libdir}/lib%{oname}.so
%{_kde5_libdir}/pkgconfig/%{name}5.pc
%{_libdir}/cmake/LibAlkimia5-8.1/*.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n alkimia-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13957 |21mr|libao-1.2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 4
%define libname %mklibname ao %{major}
%define devname %mklibname ao -d

Summary:	Cross Platform Audio Output Library
Name:		libao
Version:	1.2.0
Release:	10
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.xiph.org/ao/
Source0:	http://downloads.xiph.org/releases/ao/%{name}-%{version}.tar.gz
Patch0:		CVE-2017-11548.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpulse)

%description
Libao is a cross-platform audio library that allows programs 
to output audio using a simple API on a wide variety of platforms. 
It currently supports:

- ALSA
- pulseaudio
- OSS

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libao.so.%{major}*
%{_libdir}/ao/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc CHANGES doc/*.{html,c,css}
%{_includedir}/ao
%{_libdir}/libao.so
%{_libdir}/ckport/db/libao.ckport
%dir %{_libdir}/%{name}/
%{_datadir}/aclocal/ao.m4
%{_libdir}/pkgconfig/*
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# strip weird flags
sed -i 's!-O20!%{optflags}!g' configure*

%build
%configure \
	--disable-static \
	--disable-esound \
	--disable-arts \
	--enable-pulseaudio \
	--enable-alsa09-mmap

%make_build

%install
%make_install
rm -rf %{buildroot}%{_docdir}
install -d -m 755 %{buildroot}%{_libdir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13958 |21mr|libapogee-3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		libapogee
Summary:	Apogee Instruments Library
Version:	3.2
Release:	1
Url:		http://indi.sourceforge.net/index.php/Main_Page
License:	GPLv2+
Group:		Development/KDE and Qt
# Tar is generated from the huge all-in-one tar from INDI
# by using ./libapogee-generate-tarball.sh 1.3.1
Source0:	%{name}-%{version}.tar.gz
Source1:	%{name}-generate-tarball.sh
BuildRequires:	cmake
BuildRequires:	libusb-devel
BuildRequires:	curl-devel

%description
Apogee Instruments Library

%files
%{_sysconfdir}/Apogee
%{_udevrulesdir}/99-apogee.rules

#---------------------------------------------

%define apogee_major 3
%define libapogee %mklibname apogee %{apogee_major}

%package -n %libapogee
Summary: KDE 4 library
Group: System/Libraries

%description -n %libapogee
%name library

%files -n %libapogee
%{_libdir}/libapogee.so.%{apogee_major}*

#---------------------------------------------

%package devel
Summary: Devel stuff for %{name}
Group: Development/KDE and Qt
Requires: %{libapogee} = %{EVRD}
%description  devel
Files needed to build applications based on %{name}.

%files devel
%{_includedir}/libapogee
%{_libdir}/libapogee.so

#---------------------------------------------

%prep
%autosetup -p1  -n libapogee-%{version}

sed -i 's|/etc/udev/rules.d|%{_udevrulesdir}|g' CMakeLists.txt
sed -i 's|DESTINATION lib|DESTINATION lib${LIB_SUFFIX}|g' CMakeLists.txt


%build
%cmake
%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13959 |21mr|libappimage-1.0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname appimage %{major}
%define devname %mklibname appimage -d
# static lib used in cmake file, not delete!
%define sdevname %mklibname appimage -d -s

Summary:	Implements functionality for dealing with AppImage files
Name:		libappimage
Version:	1.0.3
Release:	4
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://github.com/AppImage/libappimage
Source0:	https://github.com/AppImage/libappimage/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libappimage-linking.patch
BuildRequires:	cmake
BuildRequires:	%{_bindir}/xxd
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(squashfuse)
BuildRequires:	xdg-utils-cxx
BuildRequires:	boost-devel

%description
This library is part of the AppImage project. It implements functionality for 
dealing with AppImage files. It is written in C++ and is using Boost.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Implements functionality for dealing with AppImage files
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This library is part of the AppImage project. It implements functionality for 
dealing with AppImage files. It is written in C++ and is using Boost.

%files -n %{libname}
%{_libdir}/libappimage.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Implements functionality for dealing with AppImage files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This library is part of the AppImage project. It implements functionality for 
dealing with AppImage files. It is written in C++ and is using Boost.

%files -n %{devname}
%{_libdir}/libappimage.so
%{_includedir}/appimage
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/
#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Libappimage development files (static library)
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
libappimage development files (static library).

%files -n %{sdevname}
%{_libdir}/*.a
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake  -DBUILD_TESTING=OFF \
	-DUSE_SYSTEM_BOOST=ON \
	-DUSE_SYSTEM_XZ=ON \
	-DUSE_SYSTEM_SQUASHFUSE=ON \
	-DUSE_SYSTEM_XDGUTILS=ON \
	-DUSE_SYSTEM_LIBARCHIVE=ON
%make

%install
%make_install -C build

# static lib used in cmake files, NOT delete!
#rm %{buildroot}/%{_libdir}/*.a ||:
sed -i 's,\/\/usr,\/,' %{buildroot}/%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13960 |21mr|libappindicator-12.10.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without gtk2
%ifnarch %{e2k}
%bcond_without mono
%endif

%define api 0.1
%define major 1
%define girmajor 0.1
%define girgtk3 %mklibname appindicator3-gir %{girmajor}
%define libgtk3 %mklibname appindicator3_ %{major}
%define devgtk3 %mklibname appindicator3 -d

%if %{with gtk2}
%define girgtk %mklibname appindicator-gir %{girmajor}
%define libgtk %mklibname appindicator %{major}
%define devgtk %mklibname appindicator -d
%endif

Summary:	Application indicators library
Name:		libappindicator
Version:	12.10.1
Release:	4
License:	LGPLv2+ and LGPLv3+
Group:		System/Libraries
Url:		https://launchpad.net/libappindicator
# https://bazaar.launchpad.net/~indicator-applet-developers/libappindicator/trunk/changes/
# r298
Source0:	%{name}-%{version}.tar.xz
# PATCH-FIX-OPENSUSE - libappindicator-header-fixes.patch nmarques@opensuse.org 
Patch1:		libappindicator-12.10.1-mcs.patch
Patch3:		0001_Fix_mono_dir.patch
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	perl-XML-SAX
BuildRequires:	vala-tools
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(dbus-glib-1)
%if %{with gtk2}
BuildRequires:	pkgconfig(dbusmenu-gtk-0.4)
BuildRequires:	pkgconfig(indicator-0.4)
%endif
BuildRequires:	pkgconfig(dbusmenu-gtk3-0.4)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(indicate-0.7)
BuildRequires:	pkgconfig(indicator3-0.4)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(pygobject-2.0)
%if  %{with mono} 
BuildRequires:	pkgconfig(gapi-2.0)
BuildRequires:	pkgconfig(gtk-sharp-2.0)
BuildRequires:	pkgconfig(mono)
%endif

%description
A library and indicator to take menus from applications and place them in
the panel.

#----------------------------------------------------------------------------
%if %{with mono}
%package -n appindicator-sharp
Summary:	Application indicator library - assembly CLI
Group:		Development/C#
Conflicts:	%{_lib}appindicator-devel < 12.10.0-4

%description -n appindicator-sharp
This package provides the appindicator-sharp assembly that allows CLI (.NET)
programs to take menus from applications and place them in the panel.

This package provides assemblies to be used by applications.

%files -n appindicator-sharp
%{_prefix}/lib/mono/appindicator-sharp/
%{_prefix}/lib/mono/gac/
%{_libdir}/appindicator-sharp*
%{_libdir}/pkgconfig/appindicator-sharp-%{api}.pc
%endif
#----------------------------------------------------------------------------

%package -n appindicator3-vala
Summary:	Application indicator library - Vala bindings
Group:		Development/Other

%description -n appindicator3-vala
This package provides Vala bindings for the application indicator library.

%files -n appindicator3-vala
%{_datadir}/vala/vapi/appindicator3-%{api}.deps
%{_datadir}/vala/vapi/appindicator3-%{api}.vapi

#----------------------------------------------------------------------------
%if %{with gtk2}

%package -n %{libgtk}
Summary:	Application indicator library - shared libraries
Group:		System/Libraries
Provides:	appindicator-gtk2 = %{EVRD}

%description -n %{libgtk}
A library and indicator to take menus from applications and place them in
the panel.

This package provides the shared libraries to be used by applications.

%files -n %{libgtk}
%doc gtk2/README gtk2/COPYING gtk2/COPYING.LGPL.2.1
%{_libdir}/libappindicator.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devgtk}
Summary:	Application indicator library - development files
Group:		Development/C
Requires:	%{libgtk} = %{EVRD}
Provides:	appindicator-gtk2-devel = %{EVRD}

%description -n %{devgtk}
A library and indicator to take menus from the applications and place them in
the panel.

This package provides the files that are needed to build applications.

%files -n %{devgtk}
%{_includedir}/libappindicator-%{api}/
%{_libdir}/libappindicator.so
%{_libdir}/pkgconfig/appindicator-%{api}.pc
%endif
#----------------------------------------------------------------------------

%package -n %{libgtk3}
Summary:	Application indicator library - shared libraries
Group:		System/Libraries
Provides:	appindicator-gtk3 = %{EVRD}

%description -n %{libgtk3}
A library and indicator to take menus from applications and place them in
the panel.

This package provides the shared libraries to be used by applications.

%files -n %{libgtk3}
%doc gtk3/README gtk3/COPYING gtk3/COPYING.LGPL.2.1
%{_libdir}/libappindicator3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girgtk3}
Summary:	GObject Introspection files for %{name}
Group:		System/Libraries
Requires:	%{libgtk3} = %{EVRD}
Conflicts:	%{_lib}appindicator1 < 12.10.0-4

%description -n %{girgtk3}
GObject Introspection files for %{name}.

%files -n %{girgtk3}
%{_libdir}/girepository-1.0/AppIndicator3-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devgtk3}
Summary:	Application indicator library - development files
Group:		Development/C
Requires:	%{libgtk3} = %{EVRD}
Requires:	%{girgtk3} = %{EVRD}
Provides:	appindicator-gtk3-devel = %{EVRD}
Conflicts:	%{_lib}appindicator-devel < 12.10.0-4

%description -n %{devgtk3}
A library and indicator to take menus from the applications and place them in
the panel.

This package provides the files that are needed to build applications.

%files -n %{devgtk3}
%{_includedir}/libappindicator3-%{api}/
%{_libdir}/libappindicator3.so
%{_libdir}/pkgconfig/appindicator3-%{api}.pc
%{_datadir}/gir-1.0/AppIndicator3-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%setup -qc
pushd %{name}-%{version}
%apply_patches
popd

mv %{name}-%{version} gtk2
cp -r gtk2 gtk3

%build
%if %{with gtk2}
pushd gtk2
# Warning, patch requires reconf
NOCONFIGURE=1 ./autogen.sh
export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations"
%configure \
	--disable-static \
	--with-gtk=2

make LIBS='-lgmodule-2.0'
popd
%endif

pushd gtk3
# Warning, patch requires reconf
NOCONFIGURE=1 ./autogen.sh
export CFLAGS="%{optflags} $CFLAGS -Wno-deprecated-declarations"
%configure \
	--disable-static \
	--with-gtk=3

make LIBS='-lgmodule-2.0'
popd

%install
%if %{with gtk2}
%makeinstall_std -C gtk2
%endif

%makeinstall_std -C gtk3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13961 |21mr|libarchive-3.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 19
%define	libname %mklibname archive %{major}
%define	devname %mklibname archive -d

Summary:	Library for reading and writing streaming archives
Name:		libarchive
Version:	3.6.2
Release:	3
License:	BSD
Group:		System/Libraries
Url:		http://www.libarchive.org
Source0:	http://www.libarchive.org/downloads/%{name}-%{version}.tar.gz
Patch0:		libarchive-2.6.1-headers.patch
Patch1:		libarchive-3.2.0-fix-install.patch
# For use with MCBC-mac-to-SELinux (mcbc2selinux),
# manual: https://abf.rosalinux.ru/import/MCBC-mac-to-SELinux/raw/master/README.html
Patch2:		0001-Write-MCBC-MAC-attributes.patch
# The same guy who backdoored xz also changed in Nov 2021 the error reporting
# in an unsafe and exploitable way (see https://boehs.org/node/everything-i-know-about-the-xz-backdoor
# and https://gist.github.com/thesamesam/223949d5a074ebc3dce9ee78baad9e27).
# Every release > 3.5.2 has the change: revert it as upstream does.
Patch3:		libarchive-3.7.2-make-error-reporting-more-robust.patch
Patch4:		CVE-2024-48957.patch
Patch5:		CVE-2024-48958.patch
BuildRequires:	attr-devel
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	libtool
BuildRequires:	ninja
BuildRequires:	sharutils
BuildRequires:	acl-devel
BuildRequires:	attr-devel
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(libacl)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
Libarchive is a programming library that can create and read several different
streaming archive formats, including most popular tar variants and several cpio
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
archives. The bsdtar program is an implementation of tar(1) that is built on
top of libarchive. It started as a test harness, but has grown and is now the
standard system tar for FreeBSD 5 and 6.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for reading and writing streaming archives
Group:		System/Libraries

%description -n %{libname}
Libarchive is a programming library that can create and read several different
streaming archive formats, including most popular tar variants and several cpio
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
archives. The bsdtar program is an implementation of tar(1) that is built on
top of libarchive. It started as a test harness, but has grown and is now the
standard system tar for FreeBSD 5 and 6.

%files -n %{libname}
%license COPYING
/%{_lib}/libarchive.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the libarchive library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{libname}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libarchive is a programming library that can create and read several different
streaming archive formats, including most popular tar variants and several cpio
formats. It can also write shar archives and read ISO9660 CDROM images and ZIP
archives. The bsdtar program is an implementation of tar(1) that is built on
top of libarchive. It started as a test harness, but has grown and is now the
standard system tar for FreeBSD 5 and 6.

This package contains header files for the libarchive library.

%files -n %{devname}
%license COPYING
%{_libdir}/libarchive.so
%{_libdir}/pkgconfig/libarchive.pc
%{_includedir}/*.h
%{_mandir}/man3/*
%{_mandir}/man5/*

#------------------------------------------------------------------

%package -n bsdtar
Summary:	Full-featured tar replacement built on libarchive
Group:		Archiving/Backup

%description -n bsdtar
The bsdtar program is a full-featured tar replacement built on libarchive.

%files -n bsdtar
%doc NEWS
%license COPYING
%{_bindir}/bsdtar
%{_mandir}/man1/bsdtar.1*

#------------------------------------------------------------------

%package -n bsdcpio
Summary:	Copy files to and from archives
Group:		Archiving/Backup

%description -n bsdcpio
bsdcpio copies files between archives and directories. This implementation can
extract from tar, pax, cpio, zip, jar, ar, and ISO 9660 cdrom images and can
create tar, pax, cpio, ar, and shar archives.

%files -n bsdcpio
%license COPYING
%{_bindir}/bsdcpio
%{_mandir}/man1/bsdcpio.1*

#------------------------------------------------------------------

%package -n bsdcat
Summary:	Expand files to standard output
Group:		Networking/Other

%description -n bsdcat
The bsdcat program typically takes a filename as an argument or reads standard
input when used in a pipe. In both cases decompressed data it written to
standard output.

%files -n bsdcat
%doc NEWS
%license COPYING
%{_bindir}/bsdcat
%{_mandir}/*/bsdcat*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake	\
	-DCMAKE_BUILD_TYPE=Release	\
	-DBIN_INSTALL_DIR="%{_bindir}"	\
	-DLIB_INSTALL_DIR="/%{_lib}"	\
	-DENABLE_LIBXML2=FALSE		\
	-DENABLE_EXPAT=FALSE		\
	-DENABLE_NETTLE=OFF		\
	-DENABLE_OPENSSL=ON		\
	-DENABLE_LZO=ON			\
	-DENABLE_CAT_SHARED=ON		\
	-DENABLE_CPIO_SHARED=ON		\
	-DENABLE_TAR_SHARED=ON		\
	-G Ninja

%ninja_build

%install
%ninja_install -C build

rm %{buildroot}/%{_lib}/libarchive.so
rm %{buildroot}/%{_libdir}/libarchive.a
ln -sr %{buildroot}/%{_lib}/libarchive.so.%{major} %{buildroot}%{_libdir}/libarchive.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13962 |21mr|libarcus-4.13.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname arcus %{major}
%define devname %mklibname arcus -d

Summary:	Communication library between internal components for Ultimaker software
Name:		libarcus
# Don't update version without updating CuraEngine package
Version:	4.13.2
Release:	2
License:	LGPLv3+
Group:		System/Libraries
Url:		https://github.com/Ultimaker/libArcus
Source0:	%{url}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ninja
BuildRequires:	cmake
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-protobuf
BuildRequires:	python3-sip4
BuildRequires:	python3-sip4-qt5

%description
Arcus library contains C++ code and Python 3 bindings for creating a socket in
a thread and using this socket to send and receive messages based on the
Protocol Buffers library. It is designed to facilitate the communication
between Cura and its backend and similar code.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for libarcus
Group:		System/Libraries

%description -n %{libname}
Arcus library contains C++ code and Python 3 bindings for creating a socket in
a thread and using this socket to send and receive messages based on the
Protocol Buffers library. It is designed to facilitate the communication
between Cura and its backend and similar code.

%files -n %{libname}
%{_libdir}/libArcus.so.%{major}
%{_libdir}/libArcus.so.1.1.0

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libarcus
# The cmake scripts are BSD
License:	AGPLv3+ and BSD
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Arcus library contains C++ code and Python 3 bindings for creating a socket in
a thread and using this socket to send and receive messages based on the
Protocol Buffers library. It is designed to facilitate the communication
between Cura and its backend and similar code.

%files -n %{devname}
%doc README.md TODO.md
%doc LICENSE cmake/COPYING-CMAKE-SCRIPTS
%doc examples/example.cpp examples/example.proto
%{_libdir}/libArcus.so
%{_includedir}/Arcus
%{_libdir}/cmake/Arcus

#----------------------------------------------------------------------------

%package -n python3-arcus
Summary:	Python 3 libArcus bindings
Group:		Development/Python
Requires:	python3-sip-api(%{sip_api_major}) = %{sip_api}

%description -n python3-arcus
Arcus Python 3 bindings for creating a socket in a thread and using this
socket to send and receive messages based on the Protocol Buffers library.
It is designed to facilitate the communication between Cura and its backend
and similar code.

%files -n python3-arcus
%doc README.md TODO.md
%doc examples/example.py
%{python3_sitearch}/Arcus.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n libArcus-%{version}

%build
%cmake \
	-DBUILD_EXAMPLES:BOOL=OFF \
	-G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13963 |21mr|libasr-1.0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname asr %{major}
%define devname %mklibname asr -d

Summary:	libasr is a free, simple and portable asynchronous resolver library
Name:		libasr
Version:	1.0.4
Release:	3
License:	ISC, BSD
Group:		System/Libraries
Url:		https://github.com/OpenSMTPD/libasr
Source0:	http://www.opensmtpd.org/archives/%{name}-%{version}.tar.gz
BuildRequires:  pkgconfig(libevent)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  make

%define _description %{expand:
Libasr allows to run DNS queries and perform hostname resolutions in a fully
asynchronous fashion. The implementation is thread-less, fork-less, and does not
make use of signals or other "tricks" that might get in the developer's way.
The API was initially developed for the OpenBSD operating system, where it is
natively supported.

This library is intended to bring this interface to other systems. It is
originally provided as a support library for the portable version of the
OpenSMTPD daemon, but it can be used in any other contexts.
}

%description
%{_description}

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:    %{SUMMARY}
Group:  System/Libraries

%description -n %{libname}
%{_description}

%files -n %{libname}
%license LICENCE
%{_libdir}/libasr.so.%{major}{,.*}

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:    %{SUMMARY}
Group:  Development/C
Requires:   %{libname} = %{EVRD}
Provides:   libasr-devel = %{EVRD}

%description -n %{devname}
Development package of libasr.
%{_description}

%files -n %{devname}
%license LICENCE
%{_includedir}/asr.h
%{_libdir}/libasr.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
    --enable-shared \
    --disable-static \
    --with-mantype=man
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13964 |21mr|libass-0.15.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 9
%define libname %mklibname ass %{major}
%define devname %mklibname ass -d

Summary:	Library for SSA/ASS subtitles rendering
Name:		libass
Version:	0.15.2
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://code.google.com/p/libass/
Source0:	https://github.com/libass/libass/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(enca)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(harfbuzz)

%description
Libass is a portable library for SSA/ASS subtitles rendering.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for SSA/ASS subtitles rendering
Group:		System/Libraries

%description -n %{libname}
Libass is a portable library for SSA/ASS subtitles rendering.

%files -n %{libname}
%{_libdir}/libass.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libass development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	ass-devel = %{EVRD}

%description -n %{devname}
Libass is a portable library for SSA/ASS subtitles rendering.

This package contains the files for developing applications which
will use libass.

%files -n %{devname}
%doc Changelog
%{_libdir}/libass.so
%{_includedir}/ass
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13965 |21mr|libassuan-2.5.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname assuan %{major}
%define devname %mklibname assuan -d

Summary:	Assuan - an IPC library for non-persistent servers
Name:		libassuan
Version:	2.5.5
Release:	3
License:	LGPLv3
Group:		System/Libraries
Url:		http://www.gnupg.org/
Source0:	ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(gpg-error) >= 1.17

%description
This is the IPC library used by GnuPG 1.9, gpgme and the old newpg
package. It used to be included with the latter packages but the
authors decided to separated it out to a standalone library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An IPC library for non-persistent servers
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This is the IPC library used by GnuPG 1.9, gpgme and the old newpg
package. It used to be included with the latter packages but the
authors decided to separated it out to a standalone library.

%files -n %{libname}
%{_libdir}/libassuan.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static library for assuan
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and static library for assuan.

%files -n %{devname}
%doc ChangeLog AUTHORS NEWS README
%{_bindir}/libassuan-config
%{_includedir}/*.h
%{_datadir}/aclocal/*.m4
%{_libdir}/libassuan.so
%{_libdir}/libassuan.a
%{_libdir}/pkgconfig/libassuan.pc
%{_infodir}/*.info*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--with-pic \
	--enable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13966 |21mr|libast-0.7-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname ast %{major}
%define devname %mklibname ast -d

Summary:	Library of Assorted Spiffy Things
Name:		libast
Version:	0.7
Release:	25
License:	BSD
Group:		System/Libraries
Url:		http://www.eterm.org/
Source0:	http://www.eterm.org/download/%{name}-%{version}.tar.gz
Patch0:		libast-0.7-linkage.patch
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)

%description
LibAST is the Library of Assorted Spiffy Things.  It contains various
handy routines and drop-in substitutes for some good-but-non-portable
functions.  It currently has a built-in memory tracking subsystem as
well as some debugging aids and other similar tools.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library of Assorted Spiffy Things
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
LibAST is the Library of Assorted Spiffy Things.  It contains various
handy routines and drop-in substitutes for some good-but-non-portable
functions.  It currently has a built-in memory tracking subsystem as
well as some debugging aids and other similar tools.

%files -n %{libname}
%doc README
%{_libdir}/libast.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files for LibAST
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Install this package if you need to compile applications that needs
%{name}.

%files -n %{devname}
%doc README
%{_libdir}/lib*.so
%{_includedir}/*
%{_datadir}/aclocal/*.m4
%{_bindir}/libast-config

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static
%make_build LIBS='-lX11 -lpcre'

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13967 |21mr|libasyncns-0.8-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname asyncns %{major}
%define devname %mklibname asyncns -d

Summary:	A library for executing name service queries asynchronously
Name:		libasyncns
Version:	0.8
Release:	13
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://0pointer.de/lennart/projects/libasyncns/
Source0:	http://0pointer.de/lennart/projects/libasyncns/%{name}-%{version}.tar.gz
BuildRequires:	doxygen

%description
A small and lightweight library that implements easy to use asynchronous
wrappers around the libc NSS functions getaddrinfo(), res_query() and related.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for executing name service queries asynchronously
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
A small and lightweight library that implements easy to use asynchronous
wrappers around the libc NSS functions getaddrinfo(), res_query() and related.

%files -n %{libname}
%{_libdir}/libasyncns.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}
%{_includedir}/asyncns.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13968 |21mr|libatasmart-0.19-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname atasmart %{major}
%define develname %mklibname -d atasmart

Summary:	ATA S.M.A.R.T. Disk Health Monitoring Library
Name:		libatasmart
Version:	0.19
Release:	8
License:	LGPLv2+
Group:		System/Libraries
URL:		http://git.0pointer.de/?p=libatasmart.git;a=summary
Source0:	http://0pointer.de/public/libatasmart-%{version}.tar.xz
BuildRequires:	pkgconfig(udev) >= 186
Conflicts:	%{_lib}atasmart0 < 0.14
Patch0:		libatasmart-0.17-initmem.patch

%description
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
health monitoring.

%package -n %{libname}
Summary:	ATA S.M.A.R.T. Disk Health Monitoring Library
Group:		System/Libraries

%description -n	%{libname}
A small and lightweight parser library for ATA S.M.A.R.T. hard disk
health monitoring.

%package -n %{develname}
Summary:	Development Files for libatasmart Client Development
Group:		Development/C
Provides:	libatasmart-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n	%{develname}
Development files for libatasmart Client Development

%prep
%setup -q
%patch0 -p1

%build
%configure \
    --disable-static

%make

%install
%makeinstall_std

%files
%doc README LGPL
%{_sbindir}/skdump
%{_sbindir}/sktest

%files -n %{libname}
%{_libdir}/libatasmart.so.%{major}*

%files -n %{develname}
%doc blob-examples/SAMSUNG* blob-examples/ST* blob-examples/Maxtor* blob-examples/WDC* blob-examples/README
%{_includedir}/atasmart.h
%{_libdir}/libatasmart.so
%{_libdir}/pkgconfig/libatasmart.pc
%{_datadir}/vala/vapi/atasmart.vapi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13969 |21mr|libatomic_ops-7.6.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define sname atomic_ops
%define major 1
%define libname %mklibname %{sname} %{major}
%define libgpl %mklibname %{sname}_gpl %{major}
%define devname %mklibname %{sname} -d

Summary:	Multiplatform atomic memory operation library
Name:		libatomic_ops
Version:	7.6.12
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.hpl.hp.com/research/linux/atomic_ops/
Source0:	https://github.com/ivmai/libatomic_ops/releases/download/v%{version}/%{name}-%{version}.tar.gz

%description
Multiplatform atomic memory operation library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libatomic_ops.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgpl}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libgpl}
This package contains the shared library for %{name}.

%files -n %{libgpl}
%{_libdir}/libatomic_ops_gpl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Multiplatform atomic memory operation library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	%{libgpl} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n  %{devname}
Provides implementations for atomic memory update operations on a number of
architectures. This allows direct use of these in reasonably portable code.
Unlike earlier similar packages, this one explicitly considers memory barrier
semantics, and allows the construction of code that involves minimum overhead
across a variety of architectures.

It should be useful both for high performance multi-threaded code which can't
afford to use the standard locking primitives, or for code that has to access
shared data structures from signal handlers. For details, see README.txt in
the distribution.

%files -n  %{devname}
%{_includedir}/*.h
%dir %{_includedir}/%{sname}
%{_includedir}/%{sname}/*.h
%dir %{_includedir}/%{sname}/sysdeps
%{_includedir}/%{sname}/sysdeps/*.h
%dir %{_includedir}/%{sname}/sysdeps/gcc
%{_includedir}/%{sname}/sysdeps/gcc/*.h
%dir %{_includedir}/%{sname}/sysdeps/hpc
%{_includedir}/%{sname}/sysdeps/hpc/*.h
%dir %{_includedir}/%{sname}/sysdeps/ibmc
%{_includedir}/%{sname}/sysdeps/ibmc/*.h
%dir %{_includedir}/%{sname}/sysdeps/icc
%{_includedir}/%{sname}/sysdeps/icc/*.h
%dir %{_includedir}/%{sname}/sysdeps/msftc
%{_includedir}/%{sname}/sysdeps/msftc/*.h
%dir %{_includedir}/%{sname}/sysdeps/sunc
%{_includedir}/%{sname}/sysdeps/sunc/*.h
%dir %{_includedir}/%{sname}/sysdeps/armcc
%{_includedir}/%{sname}/sysdeps/armcc/*.h
%dir %{_includedir}/%{sname}/sysdeps/loadstore
%{_includedir}/%{sname}/sysdeps/loadstore/*.h
%dir %{_datadir}/doc/%{name}
%{_datadir}/doc/%{name}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-shared
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13970 |21mr|libavc1394-0.5.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
# TODO: split library package
%define libname %mklibname avc1394_ %{major}
%define devname %mklibname avc1394 -d

Summary:	Control AV firewire devices
Name:		libavc1394
Version:	0.5.4
Release:	8
License:	LGPLv2.1+
Group:		System/Libraries
Source0:	http://downloads.sourceforge.net/project/libavc1394/%{name}/%{name}-%{version}.tar.gz
Url:		http://www.sourceforge.net/projects/libavc1394
Buildrequires:	pkgconfig(libraw1394)

%description
libavc1394 is a programming interface for the 1394 Trade Association AV/C
(Audio/Video Control) Digital Interface Command Set. It is intended for use
with GNU/Linux IEEE-1394.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	FireWire interface shared library
Group:		System/Libraries
Provides:	libavc1394 = %{EVRD}

%description -n %{libname}
libavc1394 is a programming interface for the 1394 Trade Association AV/C
(Audio/Video Control) Digital Interface Command Set. It is intended for use
with GNU/Linux IEEE-1394.

%files -n %{libname}
%doc README NEWS INSTALL COPYING AUTHORS
%{_libdir}/libavc1394.so.%{major}*
%{_libdir}/librom1394.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	FireWire interface development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libavc-devel = %{EVRD}

%description -n %{devname}
libavc1394 is a programming interface for the 1394 Trade Association AV/C
(Audio/Video Control) Digital Interface Command Set. It is intended for use
with GNU/Linux IEEE-1394.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package tools
Summary:	FireWire interface test tools
Group:		Development/C

%description tools
Test tools for the libavc1394 library.

%files tools
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

cp test/.libs/romtest %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13971 |21mr|libavif-0.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global Werror_cflags %nil

%define major 15
%define libname %mklibname avif %{major}
%define devname %mklibname avif -d

Summary:	Library for encoding and decoding .avif files
Name:		libavif
Version:	0.11.1
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://github.com/AOMediaCodec/libavif
Source0:	https://github.com/AOMediaCodec/libavif/archive/v%{version}/%{name}-%{version}.tar.gz
# Broke something... Drop it when update something?
Patch0:		libavif-0.11.1-drop-aom_codec_control_aomOptionDefs.patch
BuildRequires:	cmake
BuildRequires:	nasm
BuildRequires:	pkgconfig(aom)
BuildRequires:	pkgconfig(dav1d)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(libsharpyuv)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libyuv)
BuildRequires:	pkgconfig(SvtAv1Dec)
BuildRequires:	pkgconfig(SvtAv1Enc)
BuildRequires:	pkgconfig(zlib)
# ADD ME!
#BuildRequires:	pkgconfig(rav1e)

%description
This library aims to be a friendly, portable C implementation of the AV1 Image

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Libavif is shared library from libavif
Group:		System/Libraries

%description -n %{libname}
Libavif is shared library from libavif

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libavif
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package holds the development files for libavif.

%files -n %{devname}
%{_includedir}/avif
%{_libdir}/cmake/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------

%package tools
Summary:	Tools to encode and decode AVIF files
Group:		Video

%description tools
This library aims to be a friendly, portable C implementation of the AV1 Image
This package holds the commandline tools to encode and decode AVIF files.

%files tools
%doc CHANGELOG.md README.md
%{_bindir}/avifdec
%{_bindir}/avifenc

#------------------------------------------------------------------

%package -n avif-pixbuf-loader
Summary:	AVIF image loader for GTK+ applications
Group:		System/Libraries
Requires:	gdk-pixbuf2.0

%description -n avif-pixbuf-loader
Avif-pixbuf-loader contains a plugin to load AVIF images in GTK+ applications.

%files -n avif-pixbuf-loader
%{_datadir}/thumbnailers/avif.thumbnailer
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-avif.so

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
#-DAVIF_CODEC_RAV1E=1 \
%cmake	\
	-DAVIF_BUILD_APPS=1	\
	-DAVIF_BUILD_GDK_PIXBUF=1	\
	-DAVIF_CODEC_AOM=1	\
	-DAVIF_CODEC_DAV1D=1	\
	-DAVIF_CODEC_SVT=1	\
	-DAVIF_ENABLE_WERROR=OFF
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13972 |21mr|libbacktrace-1.0-1.gitcdb64b.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit cdb64b688dda93bbbacbc2b1ccf50ce9329d4748
%define commit_short %(echo %{commit} | head -c6)

%define major 0
%define libname %mklibname backtrace %{major}
%define devname %mklibname backtrace -d

Summary:	Library of Direct Hardware Access
Name:		libbacktrace
Version:	1.0
Release:	1.git%{commit_short}.3
License:	BSD
Group:		Development/C
Url:		https://github.com/ianlancetaylor/libbacktrace
Source0:	https://github.com/ianlancetaylor/libbacktrace/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	zlib-devel
BuildRequires:	liblzma-devel

%description
%name - A C library that may be linked into a C/C++ program to produce symbolic
backtraces.

The libbacktrace library may be linked into a program or library and used to
produce symbolic backtraces. Sample uses would be to print a detailed backtrace
when an error occurs or to gather detailed profiling information. In general
the functions provided by this library are async-signal-safe, meaning that they
may be safely called from a signal handler.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
foo shared library.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for library of %{name}
Group:		Development/Other
Provides:	%{name}-devel
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Headers for library of %{name}

%files -n %{devname}
%doc README.md
%license LICENSE
%{_includedir}/*.h
%{_libdir}/*.so

#--------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}

%build
autoreconf -vfi
%configure	\
	--disable-static	\
	--enable-shared		\
	--enable-silent-rules
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13973 |21mr|libbase-1.1.3-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: libbase
Version: 1.1.3
Release: 23
Summary: JFree Base Services
License: LGPLv2
Group:   Development/Java
#Original source: http://downloads.sourceforge.net/jfreereport/%%{name}-%%{version}.zip
#unzip, find . -name "*.jar" -exec rm {} \;
#to simplify the licensing
Source: %{name}-%{version}-jarsdeleted.zip
URL: http://reporting.pentaho.org/
BuildRequires: ant, ant-contrib, java-devel, jpackage-utils, apache-commons-logging
Requires: javapackages-filesystem
Requires: apache-commons-logging
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Patch0: libbase-1.1.2.build.patch

%description
LibBase is a library developed to provide base services like logging,
configuration and initialization to other libraries and applications. The
library is the root library for all Pentaho-Reporting projects.

%package javadoc
Summary: Javadoc for %{name}
Requires: %{name} = %{version}-%{release}
Requires: javapackages-filesystem

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
%patch0 -p1 -b .build
mkdir -p lib
find . -name "*.jar" -exec rm -f {} \;
build-jar-repository -s -p lib commons-logging-api
cd lib
ln -s /usr/share/java/ant ant-contrib 

%build
ant jar javadoc

%install
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p ./dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%files
%license licence-LGPL.txt
%doc ChangeLog.txt README.txt
%{_javadir}/%{name}.jar

%files javadoc
%{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13974 |21mr|libbinio-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	binio
%define	major	1
%define	libname	%mklibname %{oname} %{major}
%define	libdev	%mklibname -d %{oname}
%define libstat %mklibname -d -s %{oname}

Summary:	Binary I/O stream class library
Name:		libbinio
Version:	1.5
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/adplug/libbinio
Source0:		https://github.com/adplug/libbinio/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
Patch0:	libbinio-1.5-string-conversion.patch
Patch1:	libbinio-1.5-gcc4.4.patch
Requires(post,postun):	rpm-helper

%description
This binary I/O stream class library presents a platform-independent way to
access binary data streams in C++. It is hardware independent in the form that
it transparently converts between the different forms of machine-internal
binary data representation. It further employs no special I/O protocol and can
be used on arbitrary binary data sources.

#-----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n	%{libname}
This binary I/O stream class library presents a platform-independent way to
access binary data streams in C++. It is hardware independent in the form that
it transparently converts between the different forms of machine-internal
binary data representation. It further employs no special I/O protocol and can
be used on arbitrary binary data sources.
This package contains the shared library needed to run applications based on
%{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libdev}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{libdev}
This binary I/O stream class library presents a platform-independent way to
access binary data streams in C++. It is hardware independent in the form that
it transparently converts between the different forms of machine-internal
binary data representation. It further employs no special I/O protocol and can
be used on arbitrary binary data sources.
This package contains C++ header files, the shared library symlink and the
developer documentation for %{name}.

%files -n %{libdev}
%doc README AUTHORS ChangeLog COPYING NEWS
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_infodir}/%{name}.info.*

%post -n %{libdev}
if [[ -f %{_infodir}/libbinio.info.xz ]];
	then /sbin/install-info %{_infodir}/libbinio.info.xz --info-dir=%{_infodir};
fi

%postun -n %{libdev}
if [ "$1" = "0" ];
	then if [[ -f %{_infodir}/libbinio.info.xz ]];
		then /sbin/install-info %{_infodir}/libbinio.info.xz --info-dir=%{_infodir} --remove;
	fi;
fi

#-----------------------------------------------------------------------------

%package -n	%{libstat}
Summary:	Static library for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-static-devel = %{EVRD}

%description -n %{libstat}
This binary I/O stream class library presents a platform-independent way to
access binary data streams in C++. It is hardware independent in the form that
it transparently converts between the different forms of machine-internal
binary data representation. It further employs no special I/O protocol and can
be used on arbitrary binary data sources.
This package contains the static library of %{name}.

%files -n %{libstat}
%doc COPYING
%{_libdir}/%{name}.a

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
autoreconf -vfi
%configure --enable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13975 |21mr|libblockdev-2.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define with_gtk_doc 0
%define with_bcache 0
%define with_lvm_dbus 1
%define with_vdo 1
%define with_dmraid 1

%global somajor 2
%global girver %{somajor}.0
%global shortname blockdev

# Hold on, this is a doozy of libraries...
%global libname %mklibname %{shortname} %{somajor}
%global girname %mklibname %{shortname}-gir %{girver}
%global devname %mklibname %{shortname} -d

# libbd_utils
%global libutilsname %mklibname bd_utils %{somajor}
%global devutilsname %mklibname bd_utils -d

# libbd_btrfs
%global libbtrfsname %mklibname bd_btrfs %{somajor}
%global devbtrfsname %mklibname bd_btrfs -d

# libbd_crypto
%global libcryptoname %mklibname bd_crypto %{somajor}
%global devcryptoname %mklibname bd_crypto -d

# libbd_dm
%global libdmname %mklibname bd_dm %{somajor}
%global devdmname %mklibname bd_dm -d

# libbd_fs
%global libfsname %mklibname bd_fs %{somajor}
%global devfsname %mklibname bd_fs -d

# libbd_kbd
%global libkbdname %mklibname bd_kbd %{somajor}
%global devkbdname %mklibname bd_kbd -d

# libbd_loop
%global libloopname %mklibname bd_loop %{somajor}
%global devloopname %mklibname bd_loop -d

# libbd_lvm
%global liblvmname %mklibname bd_lvm %{somajor}
%global devlvmname %mklibname bd_lvm -d

# libbd_lvm-dbus
%global liblvm_dbusname %mklibname bd_lvm-dbus %{somajor}
%global devlvm_dbusname %mklibname bd_lvm-dbus -d

# libbd_mdraid
%global libmdraidname %mklibname bd_mdraid %{somajor}
%global devmdraidname %mklibname bd_mdraid -d

# libbd_mpath
%global libmpathname %mklibname bd_mpath %{somajor}
%global devmpathname %mklibname bd_mpath -d

# libbd_nvdimm
%global libnvdimmname %mklibname bd_nvdimm %{somajor}
%global devnvdimmname %mklibname bd_nvdimm -d

# libbd_part
%global libpartname %mklibname bd_part %{somajor}
%global devpartname %mklibname bd_part -d

# libbd_swap
%global libswapname %mklibname bd_swap %{somajor}
%global devswapname %mklibname bd_swap -d

# libbd_vdo
%global libvdoname %mklibname bd_vdo %{somajor}
%global devvdoname %mklibname bd_vdo -d

# libbd_s390
%global libs390name %mklibname bd_s390 %{somajor}
%global devs390name %mklibname bd_s390 -d

%global optflags %optflags %(pkg-config --cflags-only-I --libs-only-L libkmod)

Name:        libblockdev
Version:     2.26
Release:     1
Summary:     A library for low-level manipulation with block devices
Group:       System/Libraries
License:     LGPLv2+
URL:         https://github.com/storaged-project/libblockdev
Source0:     https://github.com/storaged-project/libblockdev/releases/download/%{version}-%{release}/%{name}-%{version}.tar.gz

BuildRequires: glib2-devel
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(python)
BuildRequires: pkgconfig(python3)
%if %{with_gtk_doc}
BuildRequires: gtk-doc
%endif

# Needed for the escrow tests in tests/crypto_test.py, but not used to build
BuildRequires: volume_key
# BuildRequires: nss-tools

%description
The libblockdev is a C library with GObject introspection support that can be
used for doing low-level operations with block devices like setting up LVM,
BTRFS, LUKS or MD RAID. The library uses plugins (LVM, BTRFS,...) and serves as
a thin wrapper around its plugins' functionality. All the plugins, however, can
be used as standalone libraries. One of the core principles of libblockdev is
that it is stateless from the storage configuration's perspective (e.g. it has
no information about VGs when creating an LV).

%package -n %{libname}
Summary:  A library for low-level manipulation with block devices
Group:    System/Libraries

%description -n %{libname}
libblockdev is a C library with GObject introspection support that can be
used for doing low-level operations with block devices like setting up LVM,
BTRFS, LUKS or MD RAID. The library uses plugins (LVM, BTRFS,...) and serves as
a thin wrapper around its plugins' functionality. All the plugins, however, can
be used as standalone libraries. One of the core principles of libblockdev is
that it is stateless from the storage configuration's perspective (e.g. it has
no information about VGs when creating an LV).

%package -n %{girname}
Summary:  A library for low-level manipulation with block devices (GI bindings)
Group:    System/Libraries
Requires: %{libname} = %{EVRD}

%description -n %{girname}
This package contains the gobject-introspection bindings for using the
libblockdev library.

%package -n %{devname}
Summary:  Development files for libblockdev
Group:    Development/C
Provides: %{name}-devel = %{EVRD}
Provides: %{name}-devel = %{EVRD}
Requires: %{libname} = %{EVRD}
Requires: %{girname} = %{EVRD}
Requires: %{libutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devname}
This package contains header files and pkg-config files needed for development
with the libblockdev library.

%package -n python3-blockdev
Summary:  Python3 gobject-introspection bindings for libblockdev
Group:    Development/Python
Requires: %{libname} = %{EVRD}
Requires: %{girname} = %{EVRD}
%{?python_provide:%python_provide python3-blockdev}

%description -n python3-blockdev
This package contains enhancements to the gobject-introspection bindings for
libblockdev in Python3.

%package -n python2-blockdev
%py2_migration_meta python2-blockdev
Summary:  Python2 gobject-introspection bindings for libblockdev
Group:    Development/Python
Requires: %{libname} = %{EVRD}
Requires: %{girname} = %{EVRD}
%{?python_provide:%python_provide python2-blockdev}

%description -n python2-blockdev
This package contains enhancements to the gobject-introspection bindings for
libblockdev in Python2.

%package -n %{libutilsname}
BuildRequires: kmod-devel
Summary:  A library with utility functions for the libblockdev library
Group:    System/Libraries

%description -n %{libutilsname}
The libblockdev-utils is a library providing utility functions used by the
libblockdev library and its plugins.

%package -n %{devutilsname}
Summary:  Development files for libblockdev-utils
Group:    Development/C
Provides: %{name}-utils-devel = %{EVRD}
Provides: %{name}-utils-devel = %{EVRD}
Provides: bd_utils-devel = %{EVRD}
Provides: %{devutilsname} = %{EVRD}
Requires: %{libutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devutilsname}
This package contains header files and pkg-config files needed for development
with the libblockdev-utils library.

%package -n %{libbtrfsname}
BuildRequires: libbytesize-devel
Summary:  The BTRFS plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Provides: %{name}-btrfs = %{EVRD}
Requires: btrfs-progs

%description -n %{libbtrfsname}
The libblockdev library plugin (and in the same time a standalone library)
providing the BTRFS-related functionality.

%package -n %{devbtrfsname}
Summary:  Development files for the libblockdev-btrfs plugin/library
Group:    Development/C
Provides: %{name}-btrfs-devel = %{EVRD}
Provides: %{name}-btrfs-devel = %{EVRD}
Provides: bd_btrfs-devel = %{EVRD}
Requires: %{libbtrfsname} = %{EVRD}
Requires: glib2-devel
Requires: %{devutilsname} = %{EVRD}

%description -n %{devbtrfsname}
This package contains header files and pkg-config files needed for development
with the libblockdev-btrfs plugin/library.

%package -n %{libcryptoname}
Summary:       The crypto plugin for the libblockdev library
Group:         System/Libraries
Provides:	%{name}-crypto = %{EVRD}
BuildRequires: pkgconfig(libcryptsetup)
BuildRequires: pkgconfig(blkid)
BuildRequires: volume_key-devel >= 0.3.9-7
BuildRequires: nss-devel

%description -n %{libcryptoname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to encrypted devices (LUKS).

%package -n %{devcryptoname}
Summary:  Development files for the libblockdev-crypto plugin/library
Group:    Development/C
Provides: bd_crypto-devel = %{EVRD}
Provides: %{name}-crypto-devel = %{EVRD}
Provides: %{name}-crypto-devel = %{EVRD}
Requires: %{libcryptoname} = %{EVRD}
Requires: glib2-devel

%description -n %{devcryptoname}
This package contains header files and pkg-config files needed for development
with the libblockdev-crypto plugin/library.

%package -n %{libdmname}
BuildRequires: pkgconfig(devmapper)
%if %{with_dmraid}
BuildRequires: dmraid-devel
%endif
BuildRequires: pkgconfig(systemd)
Summary:  The Device Mapper plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Requires: device-mapper
Provides: %{name}-dm = %{EVRD}
%if %{with_dmraid}
Requires: dmraid
%endif

%description -n %{libdmname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to Device Mapper.

%package -n %{devdmname}
Summary:  Development files for the libblockdev-dm plugin/library
Group:    Development/C
Provides: %{name}-dm-devel = %{EVRD}
Provides: %{name}-dm-devel = %{EVRD}
Provides: bd_dm-devel = %{EVRD}
Requires: %{libdmname} = %{EVRD}
Requires: glib2-devel
Requires: pkgconfig(devmapper)
Requires: pkgconfig(systemd)
%if %{with_dmraid}
Requires: dmraid-devel
%endif
Requires: %{devutilsname} = %{EVRD}

%description -n %{devdmname}
This package contains header files and pkg-config files needed for development
with the libblockdev-dm plugin/library.

%package -n %{libfsname}
BuildRequires: parted-devel
BuildRequires: pkgconfig(blkid)
BuildRequires: pkgconfig(mount)
Summary:  The FS plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Provides: %{name}-fs = %{EVRD}
#%%Requires: device-mapper-multipath

%description -n %{libfsname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to operations with file systems.

%package -n %{devfsname}
Summary:  Development files for the libblockdev-fs plugin/library
Group:    Development/C
Provides: %{name}-fs-devel = %{EVRD}
Provides: %{name}-fs-devel = %{EVRD}
Provides: bd_fs-devel = %{EVRD}
Requires: %{libfsname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel
Requires: xfsprogs
Requires: dosfstools

%description -n %{devfsname}
This package contains header files and pkg-config files needed for development
with the libblockdev-fs plugin/library.

%package -n %{libkbdname}
BuildRequires: libbytesize-devel
Summary:  The KBD plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Provides: %{name}-kbd = %{EVRD}
%if %{with_bcache}
Requires: bcache-tools >= 1.0.8
%endif

%description -n %{libkbdname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to kernel block devices (namely zRAM and
Bcache).

%package -n %{devkbdname}
Summary:  Development files for the libblockdev-kbd plugin/library
Group:    Development/C
Provides: %{name}-kbd-devel = %{EVRD}
Provides: %{name}-kbd-devel = %{EVRD}
Provides: bd_kbd-devel = %{EVRD}
Requires: %{libkbdname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devkbdname}
This package contains header files and pkg-config files needed for development
with the libblockdev-kbd plugin/library.

%package -n %{libloopname}
Summary:  The loop plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Provides: %{name}-loop = %{EVRD}

%description -n %{libloopname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to loop devices.

%package -n %{devloopname}
Summary:  Development files for the libblockdev-loop plugin/library
Group:    Development/C
Provides: %{name}-loop-devel = %{EVRD}
Provides: %{name}-loop-devel = %{EVRD}
Provides: bd_loop-devel = %{EVRD}
Requires: %{libloopname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devloopname}
This package contains header files and pkg-config files needed for development
with the libblockdev-loop plugin/library.


%package -n %{liblvmname}
BuildRequires: pkgconfig(devmapper)
Summary:  The LVM plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
# src/plugins/lvm.c checks for utitilities lvm and thin_metadata_size
Requires: lvm2
Requires: %{_sbindir}/thin_metadata_size
Provides: %{name}-lvm = %{EVRD}
# for thin_metadata_size
#%%Requires: device-mapper-persistent-data

%description -n %{liblvmname}
The libblockdev library plugin (and in the same time a standalone library)
providing the LVM-related functionality.

%package -n %{devlvmname}
Summary:  Development files for the libblockdev-lvm plugin/library
Group:    Development/C
Provides: %{name}-lvm-devel = %{EVRD}
Provides: %{name}-lvm-devel = %{EVRD}
Provides: bd_lvm-devel = %{EVRD}
Requires: %{liblvmname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devlvmname}
This package contains header files and pkg-config files needed for development
with the libblockdev-lvm plugin/library.

%if %{with_lvm_dbus}
%package -n %{liblvm_dbusname}
BuildRequires: pkgconfig(devmapper)
Summary:  The LVM plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Provides: %{name}-lvm-dbus = %{EVRD}
# for thin_metadata_size
#%%Requires: device-mapper-persistent-data

%description -n %{liblvm_dbusname}
The libblockdev library plugin (and in the same time a standalone library)
providing the LVM-related functionality utilizing the LVM DBus API.

%package -n %{devlvm_dbusname}
Summary:  Development files for the libblockdev-lvm-dbus plugin/library
Group:    Development/C
Provides: bd_lvm-dbus-devel = %{EVRD}
Provides: %{name}-lvm-dbus-devel = %{EVRD}
Provides: %{name}-lvm-dbus-devel = %{EVRD}
Requires: %{liblvm_dbusname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devlvm_dbusname}
This package contains header files and pkg-config files needed for development
with the libblockdev-lvm-dbus plugin/library.
%endif


%package -n %{libmdraidname}
BuildRequires: pkgconfig(bytesize)
Summary:  The MD RAID plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Requires: mdadm
Provides: %{name}-mdraid = %{EVRD}

%description -n %{libmdraidname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to MD RAID.

%package -n %{devmdraidname}
Summary:  Development files for the libblockdev-mdraid plugin/library
Group:    Development/C
Provides: bd_mdraid-devel = %{EVRD}
Provides: %{name}-mdraid-devel = %{EVRD}
Provides: %{name}-mdraid-devel = %{EVRD}
Requires: %{libmdraidname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devmdraidname}
This package contains header files and pkg-config files needed for development
with the libblockdev-mdraid plugin/library.


%package -n %{libmpathname}
BuildRequires: pkgconfig(devmapper)
Summary:  The multipath plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Provides: %{name}-mpath = %{EVRD}
#%%Requires: device-mapper-multipath

%description -n %{libmpathname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to multipath devices.

%package -n %{devmpathname}
Summary:  Development files for the libblockdev-mpath plugin/library
Group:    Development/C
Provides: bd_mpath-devel = %{EVRD}
Provides: %{name}-mpath-devel = %{EVRD}
Provides: %{name}-mpath-devel = %{EVRD}
Requires: %{libmpathname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devmpathname}
This package contains header files and pkg-config files needed for development
with the libblockdev-mpath plugin/library.

%package -n %{libnvdimmname}
BuildRequires: pkgconfig(libndctl)
BuildRequires: pkgconfig(uuid)
Summary:  The NVDIMM plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Requires: ndctl


%description -n %{libnvdimmname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to operations with NVDIMM devices.

%package -n %{devnvdimmname}
Summary:  Development files for the libblockdev-nvdimm plugin/library
Group:    Development/C

Provides: %{name}-nvdimm-devel = %{EVRD}
Provides: %{name}-nvdimm-devel = %{EVRD}
Requires: %{libnvdimmname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devnvdimmname}
This package contains header files and pkg-config files needed for development
with the libblockdev-nvdimm plugin/library.


%package -n %{libpartname}
BuildRequires: parted-devel
Summary:  The partitioning plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
#%%Requires: device-mapper-multipath
Requires: gdisk
Requires: util-linux

%description -n %{libpartname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to partitioning.

%package -n %{devpartname}
Summary:  Development files for the libblockdev-part plugin/library
Group:    Development/C
Provides: bd_part-devel = %{EVRD}
Provides: %{name}-part-devel = %{EVRD}
Provides: %{name}-part-devel = %{EVRD}
Requires: %{libpartname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devpartname}
This package contains header files and pkg-config files needed for development
with the libblockdev-part plugin/library.


%package -n %{libswapname}
Summary:  The swap plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Requires: util-linux

%description -n %{libswapname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to swap devices.

%package -n %{devswapname}
Summary:  Development files for the libblockdev-swap plugin/library
Group:    Development/C
Provides: bd_swap-devel = %{EVRD}
Provides: %{name}-swap-devel = %{EVRD}
Provides: %{name}-swap-devel = %{EVRD}
Requires: %{libswapname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devswapname}
This package contains header files and pkg-config files needed for development
with the libblockdev-swap plugin/library.


%if %{with_vdo}
%package -n %{libvdoname}
BuildRequires: pkgconfig(bytesize)
BuildRequires: pkgconfig(yaml-0.1)
Summary:  The vdo plugin for the libblockdev library
Group:    System/Libraries
Requires: %{libutilsname} = %{EVRD}
Provides: %{name}-vdo = %{EVRD}

%description -n %{libvdoname}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to VDO devices.

%package -n %{devvdoname}
Summary:  Development files for the libblockdev-vdo plugin/library
Group:    Development/C
Provides: %{name}-vdo-devel = %{EVRD}
Provides: %{name}-vdo-devel = %{EVRD}
Requires: %{libvdoname} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devvdoname}
This package contains header files and pkg-config files needed for development
with the libblockdev-vdo plugin/library.
%endif

%package tools
Summary:    Various nice tools based on libblockdev

%description tools
Various nice storage-related tools based on libblockdev.


%ifarch s390 s390x
%package -n %{libs390name}
Summary:  The s390 plugin for the libblockdev library
Group:    System/Libraries
Requires: s390utils

%description -n %{libs390name}
The libblockdev library plugin (and in the same time a standalone library)
providing the functionality related to s390 devices.

%package -n %{devs390name}
Summary:  Development files for the libblockdev-s390 plugin/library
Group:    Development/C
Provides: %{name}-s390-devel = %{EVRD}
Provides: %{name}-s390-devel = %{EVRD}
Requires: %{libs390name} = %{EVRD}
Requires: %{devutilsname} = %{EVRD}
Requires: glib2-devel

%description -n %{devs390name}
This package contains header files and pkg-config files needed for development
with the libblockdev-s390 plugin/library.
%endif

%package plugins-all
Summary:  Meta-package that pulls all the libblockdev plugins as dependencies
Group:    System/Libraries
Requires: %{libname} = %{EVRD}

# Main plugins to pull in with this metapackage
Requires: %{libbtrfsname} = %{EVRD}
Requires: %{libcryptoname} = %{EVRD}
Requires: %{libdmname} = %{EVRD}
Requires: %{libfsname} = %{EVRD}
Requires: %{libkbdname} = %{EVRD}
Requires: %{libloopname} = %{EVRD}
Requires: %{liblvmname} = %{EVRD}
Requires: %{libmdraidname} = %{EVRD}
Requires: %{libmpathname} = %{EVRD}
Requires: %{libnvdimmname} = %{EVRD}
Requires: %{libpartname} = %{EVRD}
Requires: %{libswapname} = %{EVRD}

%if %{with_vdo}
Requires: %{libvdoname} = %{EVRD}
%endif

%ifarch s390 s390x
Requires: %{libs390name} = %{EVRD}
%endif

%description plugins-all
A meta-package that pulls all the libblockdev plugins as dependencies.

%prep
%autosetup -p1

%build
autoreconf -ivf
%configure
%make_build

%install
%make_install
find %{buildroot} -type f -name "*.la" | xargs %{__rm}

%files -n %{libname}
%doc LICENSE
%{_libdir}/libblockdev.so.%{somajor}*
%dir %{_sysconfdir}/libblockdev
%dir %{_sysconfdir}/libblockdev/conf.d
%config %{_sysconfdir}/libblockdev/conf.d/00-default.cfg

%files -n %{girname}
%{_libdir}/girepository*/BlockDev-%{girver}.typelib

%files -n %{devname}
%doc features.rst specs.rst
%{_libdir}/libblockdev.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/blockdev.h
%{_includedir}/blockdev/plugins.h
%{_libdir}/pkgconfig/blockdev.pc
%{_datadir}/gir*/BlockDev*.gir
%if %{with_gtk_doc}
%{_datadir}/gtk-doc/html/libblockdev
%endif

%files -n python3-blockdev
%{python3_sitearch}/gi/overrides/BlockDev*
%{python3_sitearch}/gi/overrides/__pycache__/BlockDev*

%files -n python2-blockdev
%{python2_sitearch}/gi/overrides/BlockDev*

%files -n %{libutilsname}
%{_libdir}/libbd_utils.so.%{somajor}*
%{_libdir}/libbd_part_err.so.%{somajor}*

%files -n %{devutilsname}
%{_libdir}/libbd_utils.so
%{_libdir}/libbd_part_err.so
%{_libdir}/pkgconfig/blockdev-utils.pc
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/utils.h
%{_includedir}/blockdev/sizes.h
%{_includedir}/blockdev/exec.h
%{_includedir}/blockdev/extra_arg.h
%{_includedir}/blockdev/dev_utils.h
%{_includedir}/blockdev/module.h
%{_includedir}/blockdev/dbus.h


%files -n %{libbtrfsname}
%{_libdir}/libbd_btrfs.so.%{somajor}*

%files -n %{devbtrfsname}
%{_libdir}/libbd_btrfs.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/btrfs.h


%files -n %{libcryptoname}
%{_libdir}/libbd_crypto.so.%{somajor}*

%files -n %{devcryptoname}
%{_libdir}/libbd_crypto.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/crypto.h


%files -n %{libdmname}
%{_libdir}/libbd_dm.so.%{somajor}*

%files -n %{devdmname}
%{_libdir}/libbd_dm.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/dm.h


%files -n %{libfsname}
%{_libdir}/libbd_fs.so.%{somajor}*

%files -n %{devfsname}
%{_libdir}/libbd_fs.so
%dir %{_includedir}/blockdev
%dir %{_includedir}/blockdev/fs
%{_includedir}/blockdev/fs.h
%{_includedir}/blockdev/fs/*.h


%files -n %{libkbdname}
%{_libdir}/libbd_kbd.so.%{somajor}*

%files -n %{devkbdname}
%{_libdir}/libbd_kbd.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/kbd.h


%files -n %{libloopname}
%{_libdir}/libbd_loop.so.%{somajor}*

%files -n %{devloopname}
%{_libdir}/libbd_loop.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/loop.h


%files -n %{liblvmname}
%{_libdir}/libbd_lvm.so.%{somajor}*

%files -n %{devlvmname}
%{_libdir}/libbd_lvm.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/lvm.h


%if %{with_lvm_dbus}
%files -n %{liblvm_dbusname}
%{_libdir}/libbd_lvm-dbus.so.%{somajor}*
%config %{_sysconfdir}/libblockdev/conf.d/10-lvm-dbus.cfg

%files -n %{devlvm_dbusname}
%{_libdir}/libbd_lvm-dbus.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/lvm.h
%endif


%files -n %{libmdraidname}
%{_libdir}/libbd_mdraid.so.%{somajor}*

%files -n %{devmdraidname}
%{_libdir}/libbd_mdraid.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/mdraid.h


%files -n %{libmpathname}
%{_libdir}/libbd_mpath.so.%{somajor}*

%files -n %{devmpathname}
%{_libdir}/libbd_mpath.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/mpath.h


%files -n %{libnvdimmname}
%{_libdir}/libbd_nvdimm.so.%{somajor}*

%files -n %{devnvdimmname}
%{_libdir}/libbd_nvdimm.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/nvdimm.h


%files -n %{libpartname}
%{_libdir}/libbd_part.so.%{somajor}*

%files -n %{devpartname}
%{_libdir}/libbd_part.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/part.h


%files -n %{libswapname}
%{_libdir}/libbd_swap.so.%{somajor}*

%files -n %{devswapname}
%{_libdir}/libbd_swap.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/swap.h


%if %{with_vdo}
%files -n %{libvdoname}
%{_libdir}/libbd_vdo.so.%{somajor}*

%files -n %{devvdoname}
%{_libdir}/libbd_vdo.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/vdo.h
%endif

%files tools
%{_bindir}/lvm-cache-stats

%ifarch s390 s390x
%files -n %{libs390name}
%{_libdir}/libbd_s390.so.%{somajor}*

%files -n %{devs390name}
%{_libdir}/libbd_s390.so
%dir %{_includedir}/blockdev
%{_includedir}/blockdev/s390.h
%endif

%files plugins-all

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13976 |21mr|libbluedevil-2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname bluedevil %{major}
%define devname %mklibname bluedevil -d

Summary:	Qt-based library written in C++ to handle all Bluetooth functionality
Name:		libbluedevil
# Version 1.x supports bluez 4.x and version 2.x supports bluez 5.x
Version:	2.1
Release:	4
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/libs/libname
Source0:	ftp://ftp.kde.org/pub/kde/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		libbluedevil-2.0-fix.patch
BuildRequires:	cmake
BuildRequires:	kde4-macros
BuildRequires:	qt4-devel

%description
Qt-based library written in C++ to handle all Bluetooth functionality.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Bluedevil Runtime library
Group:		System/Libraries

%description -n %{libname}
Qt-based library written in C++ to handle all Bluetooth functionality.

%files -n %{libname}
%{_kde_libdir}/libbluedevil.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel stuff for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde_includedir}/bluedevil
%{_kde_libdir}/libbluedevil.so
%{_kde_libdir}/pkgconfig/bluedevil.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake_kde4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13977 |21mr|libbluray-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname bluray %{major}
%define devname %mklibname bluray -d

# Java stack is not supported on x86_32
%ifarch %{ix86} %{e2k} %{riscv}
%bcond_with java
%else
%bcond_without java
%endif

Summary:	Blu-Ray Disc playback library for media players
Name:		libbluray
Version:	1.3.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.videolan.org/developers/libbluray.html
Source0:	ftp://ftp.videolan.org/pub/videolan/libbluray/%{version}/%{name}-%{version}.tar.bz2
%if %{with java}
BuildRequires:	ant
BuildRequires:	java-rpmbuild
BuildRequires:	jaxp
BuildRequires:	xerces-j2
BuildRequires:	java-devel
%endif
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libxml-2.0)

%description
libbluray is an open-source library designed for Blu-Ray Discs playback for
media players, like VLC or MPlayer.

The library has support for navigation, playlist parsing, menus and BD-J.

For BD-J support, you need to install libbluray-java.

This package does not contain any DRM circumvention functionality, so you can
only play unprotected Blu-Ray discs with it as is.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Blu-Ray Disc playback library for media players
Group:		System/Libraries

%description -n %{libname}
libbluray is an open-source library designed for Blu-Ray Discs playback for
media players, like VLC or MPlayer.

For BD-J support, you need to install libbluray-java.

This package does not contain any DRM circumvention functionality, so you can
only play unprotected Blu-Ray discs with it as is.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	libbluray development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	bluray-devel = %{EVRD}

%description -n %{devname}
These are the files needed for building programs using libbluray.
This package does not contain any DRM circumvention functionality.

%files -n %{devname}
%doc README.txt
%{_includedir}/%{name}
%{_bindir}/bd_*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%if %{with java}
%package java
Summary:	BD-J support for libbluray
Group:		Development/Java

%description java
libbluray is an open-source library designed for Blu-Ray Discs playback for
media players, like VLC or MPlayer.

This package contains the BD-J support for libbluray.

This package does not contain any DRM circumvention functionality.

%files java
%{_javadir}/%{name}-awt-j2se-%{version}.jar
%{_javadir}/%{name}-j2se-%{version}.jar
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# for ant
export JAVA_HOME=%{java_home}
./bootstrap
%configure \
	--disable-static \
%if %{with java}
	--enable-bdjava \
%else
	--disable-bdjava-jar \
%endif
	--with-jdk=%{java_home}
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13978 |21mr|libbpf-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname bpf %{major}
%define devname %mklibname bpf -d
%define sdevname %mklibname bpf -d -s

Summary:	Libbpf library
Name:		libbpf
Version:	0.3
Release:	1
# This package supersedes libbpf from kernel-tools,
# which has default Epoch: 0. By having Epoch: > 0
# this libbpf will take over smoothly
Epoch:		2
License:	LGPLv2 or BSD
Group:		System/Libraries
Url:		https://github.com/libbpf/libbpf
Source:		https://github.com/libbpf/libbpf/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	elfutils-devel

%description
A mirror of bpf-next linux tree bpf-next/tools/lib/bpf directory plus its
supporting header files. The version of the package reflects the version of
ABI.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libbpf shared library
Group:		System/Libraries

%description -n %{libname}
A mirror of bpf-next linux tree bpf-next/tools/lib/bpf directory plus its
supporting header files. The version of the package reflects the version of
ABI.

%files -n %{libname}
%{_libdir}/libbpf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	kernel-headers

%description -n %{devname}
This package contains libraries header files for developing applications
that use %{name}

%files -n %{devname}
%{_libdir}/libbpf.so
%{_includedir}/bpf/
%{_libdir}/pkgconfig/libbpf.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraryfor %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Conflicts:	%{devname} < 2:0.0.8-2

%description -n %{sdevname}
This package contains static library from %{name}.

%files -n %{sdevname}
%{_libdir}/libbpf.a

#----------------------------------------------------------------------------

%global make_flags DESTDIR=%{buildroot} OBJDIR=%{_builddir} CFLAGS="%{optflags} -fPIC" LDFLAGS="%{ldflags} -Wl,--no-as-needed" LIBDIR=/%{_libdir} NO_PKG_CONFIG=1

%prep
%autosetup -p1

%build
%make_build -C ./src %{make_flags}

%install
%make_install -C ./src %{make_flags}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13979 |21mr|libbraille-0.19.0-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	14
%define	libname	%mklibname braille %{major}
%define devname	%mklibname braille -d

%define _disable_lto 1
%define _disable_rebuild_configure 1

Summary:	Easy access to Braille displays and terminals
Name:		libbraille
Version:	0.19.0
Release:	29
License:	LGPLv2
Group:		System/Libraries
Url:		http://libbraille.org/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		libbraille-libtool_fixes.diff
Patch1:		libbraille-0.19.0-ltdl_fixes.diff
Patch2:		libbraille-automake-1.13.patch

BuildRequires:	libtool
BuildRequires:	swig
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libusb)
Conflicts:	%{_lib}braille14 < 0.19.0-13

%description
This library makes it possible to easily access Braille displays and
terminals :	you can write text on the braille display, directly draw braille
dots, or get the value of pressed keys. It is compatible with a wide range
of braille displays.

The features contain:
* usable from C, C++, Python and Java
* supports over 10 braille displays (including some recent models)
* easy configuration of the braille table
* distributed under the LGPL Free Software Licence
* portable (currently linux and win32)
* packages available
* easy to incorporate in any application wanting to use braille displays
(simple shared library)
* uses autoconf, automake and libtool for easier installation and portability
* contains a virtual graphical terminal made with Gtk+ for developers testing

%package -n	%{libname}
Summary:	Shared libbraille library
Group:		System/Libraries

%description -n	%{libname}
This package contains a shared library for %{name}.

%package -n	%{devname}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%package -n	%python2-braille
%py2_migration_meta %python2-braille
Summary:	Python bindings for libbraille
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n	%python2-braille
This package contains Python bindings for libbraille.

%prep
%autosetup -p1

rm -rf libltdl

libtoolize --force --copy --install --ltdl
autoreconf -fi

%build
%serverbuild
export PYTHON=%__python2
automake -fc
%configure \
	--without-included-ltdl \
	--disable-dependency-tracking \
	--with-ltdl-include=%{_includedir} \
	--with-ltdl-lib=%{_libdir} \
	--with-pic \
	--enable-python \
	--enable-usb \
	--disable-static

%make LIBS="-lpython%{py2_ver}"

%install
%makeinstall_std

%files
%doc AUTHORS COPYING ChangeLog README TODO
%config(noreplace) %{_sysconfdir}/libbraille.conf
%{_bindir}/*
%dir %{_libdir}/libbraille
%{_libdir}/libbraille/*.so
%{_datadir}/libbraille

%files -n %{libname}
%{_libdir}/libbraille.so.%{major}*

%files -n %python2-braille
%{py2_puresitedir}/*.py*
%{py2_platsitedir}/*.so

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13980 |21mr|libbs2b-3.1.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname bs2b %{major}
%define devname %mklibname bs2b -d

Summary:	Bauer stereophonic-to-binaural DSP library
Name:		libbs2b
Version:	3.1.0
Release:	16
License:	MIT
Group:		Sound
Url:		http://bs2b.sourceforge.net/
Source0:	http://downloads.sourceforge.net/sourceforge/bs2b/%{name}-%{version}.tar.gz
Patch0:		libbs2b-3.1.0-fix-format-strings.patch
Patch1:		remove_lzma_from_autotools.patch
BuildRequires:	pkgconfig(sndfile)

%description
The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is designed
to improve headphone listening of stereo audio records. Recommended for
headphone prolonged listening to disable superstereo fatigue without essential
distortions.

#----------------------------------------------------------------------------

%package utils
Summary:	Bauer stereophonic-to-binaural DSP library - sample tools
Group:		Sound

%description utils
The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is designed
to improve headphone listening of stereo audio records. Recommended for
headphone prolonged listening to disable superstereo fatigue without essential
distortions.

This contains the command line example tools.

%files utils
%doc README AUTHORS
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Bauer stereophonic-to-binaural DSP shared library
Group:		System/Libraries

%description -n %{libname}
The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is designed
to improve headphone listening of stereo audio records. Recommended for
headphone prolonged listening to disable superstereo fatigue without essential
distortions.

%files -n %{libname}
%{_libdir}/libbs2b.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Bauer stereophonic-to-binaural DSP library development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The Bauer stereophonic-to-binaural DSP (bs2b) library and plugins is designed
to improve headphone listening of stereo audio records. Recommended for
headphone prolonged listening to disable superstereo fatigue without essential
distortions.

%files -n %{devname}
%doc ChangeLog doc/readme.txt
%{_libdir}/*.so
%{_includedir}/bs2b
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13981 |21mr|libbsd-0.10.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname bsd %{major}
%define devname %mklibname bsd -d

Summary:	Library providing BSD-compatible functions for portability
Name:		libbsd
Version:	0.10.0
Release:	2
License:	BSD and ISC and Copyright only and Public Domain
Group:		System/Libraries
Url:		http://libbsd.freedesktop.org/
Source0:	http://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz

%description
libbsd provides useful functions commonly found on BSD systems, and
lacking on others like GNU systems, thus making it easier to port
projects with strong BSD origins, without needing to embed the same
code over and over again on each project.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for libbsd
Group:		Development/C
Conflicts:	%{_lib}bsd < 0.4.1-3
Obsoletes:	%{_lib}bsd < 0.4.1-3

%description -n %{libname}
Development files for the libbsd library.

%files -n %{libname}
%doc COPYING README TODO ChangeLog
%{_libdir}/libbsd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libbsd
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the libbsd library.

%files -n %{devname}
%{_includedir}/bsd
%{_libdir}/libbsd.so
%{_libdir}/libbsd-ctor.a
%{_libdir}/pkgconfig/libbsd.pc
%{_libdir}/pkgconfig/libbsd-ctor.pc
%{_libdir}/pkgconfig/libbsd-overlay.pc
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

# These cause file conflicts
rm -rf %{buildroot}%{_mandir}/man3/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13982 |21mr|libbsd-0.11.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname bsd %{major}
%define devname %mklibname bsd -d

Summary:	Library providing BSD-compatible functions for portability
Name:		libbsd
Version:	0.11.7
Release:	2
License:	BSD and ISC and Copyright only and Public Domain
Group:		System/Libraries
Url:		http://libbsd.freedesktop.org/
Source0:	https://libbsd.freedesktop.org/releases/libbsd-%{version}.tar.xz
BuildRequires:  pkgconfig(libmd)

%description
libbsd provides useful functions commonly found on BSD systems, and
lacking on others like GNU systems, thus making it easier to port
projects with strong BSD origins, without needing to embed the same
code over and over again on each project.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for libbsd
Group:		Development/C
Conflicts:	%{_lib}bsd < 0.4.1-3
Obsoletes:	%{_lib}bsd < 0.4.1-3

%description -n %{libname}
Development files for the libbsd library.

%files -n %{libname}
%doc COPYING README TODO ChangeLog
%{_libdir}/libbsd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libbsd
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the libbsd library.

%files -n %{devname}
%{_includedir}/bsd
%{_libdir}/libbsd.so
%{_libdir}/libbsd-ctor.a
%{_libdir}/pkgconfig/libbsd.pc
%{_libdir}/pkgconfig/libbsd-ctor.pc
%{_libdir}/pkgconfig/libbsd-overlay.pc
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

# These cause file conflicts
rm -rf %{buildroot}%{_mandir}/man3/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13983 |21mr|libburn-1.5.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	4
%define libname %mklibname burn %{major}
%define devname %mklibname burn -d

Summary:	Library for reading, mastering and writing optical discs
Name:		libburn
Version:	1.5.4
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://libburnia-project.org/
Source0:	http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz
Source1:	http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz.sig
BuildRequires:	doxygen
BuildRequires:	graphviz

%description
Libburn is an open-source library for reading, mastering and writing
optical discs.

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	An open-source library for optical discs

%description -n %{libname}
An open-source library for reading, mastering and writing optical discs.

%files -n %{libname}
%{_libdir}/libburn.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for development with %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}burn6-devel < 1.2.4
Obsoletes:	%{_lib}burn-static-devel < 1.2.8-2

%description -n %{devname}
This package includes the header files for the %{name} package.

%files -n %{devname}
%doc README AUTHORS COPYRIGHT
%{_libdir}/libburn.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%package -n cdrskin
Summary:	Limited cdrecord compatibility wrapper for libburn
Group:		Archiving/Cd burning

%description -n cdrskin
A limited cdrecord compatibility wrapper which allows to use some
libburn features from the command line.

%files -n cdrskin
%doc cdrskin/README
%{_bindir}/cdrskin
%{_mandir}/man1/cdrskin.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make_build

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13984 |21mr|libbytesize-2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname bytesize
%define with_gtk_doc 1

%define maj 1
%define libname %mklibname bytesize %{maj}
%define libdev %mklibname bytesize -d

Name:        libbytesize
Version:     2.3
Release:     2
Summary:     A library for working with sizes in bytes
Group:       Development/C
License:     LGPLv2+
URL:         https://github.com/storaged-project/libbytesize
Source0:     https://github.com/storaged-project/libbytesize/releases/download/2.3/%{name}-%{version}.tar.gz
BuildRequires: gmp-devel
BuildRequires: mpfr-devel
BuildRequires: pkgconfig(libpcre2-8)
BuildRequires: gettext-devel
BuildRequires: pkgconfig(python3)
%if %{with_gtk_doc}
BuildRequires: gtk-doc
%endif

%global _description \
The libbytesize is a C library that facilitates work with sizes in \
bytes. Be it parsing the input from users or producing a nice human readable \
representation of a size in bytes this library takes localization into \
account. It also provides support for sizes bigger than MAXUINT64.

%description
%_description

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{summary}
Group:      Development/C
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libname}
%_description

%files  -n %{libname}
%doc README.md LICENSE
%{_libdir}/libbytesize.so.%{maj}*

#-------------------------------------------------------------------------

# This is a separate package because the library itself contains language
# strings but putting language files to its package will break coninstallability
# of %%libname of different architectures and versions

%package i18n
Summary:	Localization files for %{name}
BuildArch:	noarch
 
%description i18n
Localization files for %{name}
%_description

%files i18n -f %{name}.lang

#-------------------------------------------------------------------------

%package -n %{libdev}
Summary:  Development files for libbytesize
Group:    Development/C
Provides: %{name}-devel = %{EVRD}
Requires: %{libname} = %{EVRD}

%description -n %{libdev}
This package contains header files and pkg-config files needed for development
with the libbytesize library.
%_description

%files -n %{libdev}
%{_libdir}/libbytesize.so
%dir %{_includedir}/bytesize
%{_includedir}/bytesize/bs_size.h
%{_libdir}/pkgconfig/bytesize.pc
%if %{with_gtk_doc}
%{_datadir}/gtk-doc/html/libbytesize
%endif

#-------------------------------------------------------------------------

%package -n python3-%{realname}
Summary: Python 3 bindings for libbytesize
Group:   Development/Python
Requires: %{libname} = %{EVRD}
Requires: python3-six

%description -n python3-%{realname}
This package contains Python 3 bindings for libbytesize making the use of
the library from Python 3 easier and more convenient.
%_description

%files -n python3-%{realname}
%dir %{python3_sitearch}/bytesize
%{python3_sitearch}/bytesize/*

#-------------------------------------------------------------------------

%package tools
Summary: Various nice tools based on libbytesize
Group:   System/Base
Requires: python3-%{realname} = %{EVRD}
 
%description tools
Various nice tools based on libbytesize, in particular the calculator
for doing calculations with storage sizes.

%files tools
%{_bindir}/bscalc
%{_mandir}/man1/bscalc.1*

#-------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std
find %{buildroot} -type f -name "*.la" | xargs %{__rm}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13985 |21mr|libcaca-0.99-0.beta19.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prerel beta19
%define major 0
%define libname %mklibname caca %{major}
%define libnamexx %mklibname caca++ %{major}
%define libgl_plugin %mklibname gl_plugin %{major}
%define libx11_plugin %mklibname x11_plugin %{major}
%define devname %mklibname caca -d

%bcond_with docs
%bcond_without slang
%{?build_mono}%{?!build_mono:%bcond_without mono}
%ifarch %{e2k} %{riscv}
%bcond_with mono
%endif

Summary:	Text mode graphics library
Name:		libcaca
Version:	0.99
Release:	%{?prerel:0.%{prerel}.}7
License:	GPLv2+
Group:		System/Libraries
Url:		http://libcaca.zoy.org/
Source0:	http://caca.zoy.org/raw-attachment/wiki/libcaca/%{name}-%{version}%{?prerel:.%{prerel}}.tar.gz
Source1:	%{name}.rpmlintrc
Patch0:		libcaca-0.99.beta19-mcs.patch
Patch1:		CVE-2018-20544.patch
Patch2:		CVE-2018-20545+20548+20549.patch
Patch3:		CVE-2018-20546+20547.patch
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(ruby)
%if %{with slang}
BuildRequires:	pkgconfig(slang)
%endif
BuildRequires:	pkgconfig(x11)
%if %{with docs}
BuildRequires:	doxygen texlive
%endif
%if %{with mono}
BuildRequires:	mono
%endif

%description
libcaca is the Colour AsCii Art library. It provides high level functions
for colour text drawing, simple primitives for line, polygon and ellipse
drawing, as well as powerful image to text conversion routines.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Text mode graphics library
Group:		System/Libraries

%description -n %{libname}
libcaca is the Colour AsCii Art library. It provides high level functions
for colour text drawing, simple primitives for line, polygon and ellipse
drawing, as well as powerful image to text conversion routines.

This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libcaca.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamexx}
Summary:	Text mode graphics library
Group:		System/Libraries
Conflicts:	%{libname} < 0.99-0.beta17.4

%description -n %{libnamexx}
This package contains the shared library for %{name}++.

%files -n %{libnamexx}
%{_libdir}/libcaca++.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgl_plugin}
Summary:	Text mode graphics library
Group:		System/Libraries
Conflicts:	%{libname} < 0.99-0.beta17.4
Conflicts:	%{_lib}libgl_plugin0 < 0.99-0.beta19.7
Obsoletes:	%{_lib}libgl_plugin0 < 0.99-0.beta19.7

%description -n %{libgl_plugin}
This package contains the shared library libgl_plugin.

%files -n %{libgl_plugin}
%{_libdir}/caca/libgl_plugin.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libx11_plugin}
Summary:	Text mode graphics library
Group:		System/Libraries
Conflicts:	%{libname} < 0.99-0.beta17.4
Conflicts:	%{_lib}libx11_plugin0 < 0.99-0.beta19.7
Obsoletes:	%{_lib}libx11_plugin0 < 0.99-0.beta19.7

%description -n %{libx11_plugin}
This package contains the shared library libgl_plugin.

%files -n %{libx11_plugin}
%{_libdir}/caca/libx11_plugin.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libcaca
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Requires:	%{libnamexx} = %{version}-%{release}
Requires:	%{libgl_plugin} = %{version}-%{release}
Requires:	%{libx11_plugin} = %{version}-%{release}
Obsoletes:	%{mklibname -d caca 0} < 0.99-0.beta18

%description -n %{devname}
libcaca is the Colour AsCii Art library. It provides high level functions
for colour text drawing, simple primitives for line, polygon and ellipse
drawing, as well as powerful image to text conversion routines.

This package contains the header files and static libraries needed to
compile applications or shared objects that use libcaca.

%files -n %{devname}
%doc NEWS NOTES
%{_bindir}/caca-config
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib*.so
%{_libdir}/caca/lib*.so
%{_mandir}/man1/caca-config.1*
%if %{with docs}
%{_mandir}/man3/*
%doc installed-docs/pdf/* installed-docs/html 
%endif

#----------------------------------------------------------------------------

%package -n caca-utils
Summary:	Text mode graphics utilities
Group:		Graphics
Conflicts:	%{libname} < 0.99-0.beta17.4

%description -n caca-utils
This package contains utilities and demonstration programs for libcaca, the
Colour AsCii Art library.

cacaview is a simple image viewer for the terminal. It opens most image
formats such as JPEG, PNG, GIF etc. and renders them on the terminal using
ASCII art. The user can zoom and scroll the image, set the dithering method
or enable anti-aliasing.

cacaball is a tiny graphic program that renders animated ASCII metaballs on
the screen, cacafire is a port of AALib's aafire and displays burning ASCII
art flames, cacamoir animates colourful moire circles and cacaplas displays
an old school plasma effect.

cacademo is a simple application that shows the libcaca rendering features
such as line and ellipses drawing, triangle filling and sprite blitting.

%files -n caca-utils
%doc README THANKS AUTHORS
%{_bindir}/cacaclock
%{_bindir}/cacademo
%{_bindir}/cacafire
%{_bindir}/cacaplay
%{_bindir}/cacaserver
%{_bindir}/cacaview
%{_bindir}/img2txt
%{_datadir}/libcaca/
%{_mandir}/man1/cacademo.1*
%{_mandir}/man1/cacafire.1*
%{_mandir}/man1/cacaplay.1*
%{_mandir}/man1/cacaserver.1*
%{_mandir}/man1/cacaview.1*
%{_mandir}/man1/img2txt.1*

#----------------------------------------------------------------------------

%if %{with mono}
%package -n caca-sharp
Summary:	Mono binding for libcaca
Group:		Development/Other

%description -n caca-sharp
Mono binding for libcaca.

%files -n caca-sharp
%{_libdir}/mono/caca-sharp*
%{_libdir}/mono/gac/caca-sharp
%endif

#----------------------------------------------------------------------------

%package -n ruby-caca
Summary:	Ruby binding for libcaca
Group:		Development/Ruby

%description -n ruby-caca
Ruby binding for libcaca.

%files -n ruby-caca
%{ruby_sitelibdir}/caca.rb
%{ruby_sitearchdir}/*.so

#----------------------------------------------------------------------------

%package -n python3-caca
Summary:	Python binding for libcaca
Group:		Development/Python

%description -n python3-caca
Python binding for libcaca.

%files -n python3-caca
%{py3_puresitedir}/caca

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}%{?prerel:.%{prerel}}
%autopatch -p1

%build
autoreconf -fi
%configure \
	--disable-static \
%if %{with slang}
	--enable-slang \
%else
	--disable-slang \
%endif
	--enable-ncurses \
	--enable-x11 \
	--enable-imlib2 \
%if %{with docs}
	--enable-doc \
%else
	--disable-doc \
%endif
	--enable-plugins \
	--disable-java

%make

%install
%makeinstall_std

%if %{with docs}
rm -rf installed-docs
mv %{buildroot}%{_datadir}/doc/libcaca-dev installed-docs
rm %{buildroot}%{_datadir}/doc/libcucul-dev
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13986 |21mr|libcacard-2.5.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cacard %major
%define develname %mklibname -d cacard

Name: libcacard
Version: 2.5.2
Release: 6
Summary: Common Access Card (CAC) Emulation
Group: System/Libraries
License: LGPLv2+
URL: http://www.spice-space.org/download
Source0: http://www.spice-space.org/download/libcacard/libcacard-%{version}.tar.xz
Patch0:  CVE-2017-6414.patch
BuildRequires: pkgconfig(glib-2.0) >= 2.22.0
BuildRequires: pkgconfig(nss) >= 3.12.8

%description
Common Access Card (CAC) emulation library.

%package -n %libname
Summary: Common Access Card (CAC) Emulation
Group: System/Libraries
Recommends: %{name}-tools = %{version}-%{release}

%description -n %libname
Common Access Card (CAC) emulation library.

%package tools
Summary: CAC Emulation tools
Group: System/Libraries
Requires: %{libname} = %{version}-%{release}

%description tools
CAC emulation tools.

%package -n %develname
Summary: CAC Emulation devel
Group: Development/C
Requires: %{libname} = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %develname
CAC emulation development files.

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std
find %buildroot -name '*.la' | xargs rm -f

%files -n %libname
%doc COPYING README.md
%{_libdir}/libcacard.so.%{major}*

%files -n %develname
%{_includedir}/cacard
%{_libdir}/pkgconfig/libcacard.pc
%{_libdir}/libcacard.so

%files tools
%{_bindir}/vscclient

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13987 |21mr|libcamera-0.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname camera

%define major 0
%define	libname	%mklibname %{oname} %{major}
%define	docname %mklibname %{oname}-doc
%define	ipaname	%mklibname %{oname}-ipa
%define	gstname	%mklibname %{oname}-gstreamer
%define	v4l2name %mklibname %{oname}-v4l2
%define	devname	%mklibname %{oname} -d

Summary: A library to support complex camera ISPs
Name:    libcamera
Version: 0.0.4
Release: 1
Group:		System/Servers
# Library is LGPLv2.1+ and the cam tool is GPLv2
License: LGPLv2+ and GPLv2
URL:     http://libcamera.org/
Source0: %{name}-%{version}.tar.xz
Source1: qcam.desktop
Source2: qcam.metainfo.xml
BuildRequires: meson
BuildRequires: openssl
BuildRequires: boost-devel
#BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(gstreamer-1.0)
BuildRequires: pkgconfig(gstreamer-video-1.0)
BuildRequires: pkgconfig(gstreamer-allocators-1.0)
BuildRequires: pkgconfig(libevent_pthreads)
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(udev)
BuildRequires: pkgconfig(yaml-0.1)
BuildRequires: pkgconfig(libexif)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(libdrm)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(sdl2)
BuildRequires: python3-jinja2
BuildRequires: python3-ply
BuildRequires: python3-yaml

%description
libcamera is a library that deals with heavy hardware image processing
operations of complex camera devices that are shared between the linuxerror:
host all while allowing offload of certain aspects to the control of
complex camera hardware such as ISPs.

Hardware support includes USB UVC cameras, libv4l cameras as well as more
complex ISPs (Image Signal Processor).

#------------------------------------------------------------

%package -n %{libname}
Summary:	Library for create IDE-like applications using GTK 4 and libadwaita
Group:		System/Libraries

%description -n %{libname}
It is a library that deals with heavy hardware image processing
operations of complex camera devices that are shared between the linux
host all while allowing offload of certain aspects to the control of
complex camera hardware such as ISPs.

Hardware support includes USB UVC cameras, libv4l cameras as well as more
complex ISPs (Image Signal Processor).

%files -n %{libname}
%license COPYING.rst LICENSES/LGPL-2.1-or-later.txt
%{_libdir}/libcamera*.so.*

#------------------------------------------------------------

%package -n %{devname}
Summary:     Development package for %{name}
Requires:    %{libname} = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/libcamera*.so
%{_libdir}/pkgconfig/libcamera-base.pc
%{_libdir}/pkgconfig/libcamera.pc

#------------------------------------------------------------

%ifarch %ix86 x86_64 riscv64
%package -n %{ipaname}
Summary:     ISP Image Processing Algorithm Plugins for %{name}
Requires:    %{libname} = %{EVRD}

%description -n %{ipaname}
Image Processing Algorithms plugins for interfacing with device
ISPs for %{name}

%files -n %{ipaname}
%{_datadir}/libcamera/
%{_libdir}/libcamera/
%{_libexecdir}/libcamera/
%endif

#------------------------------------------------------------

%package     tools
Summary:     Tools for %{name}
Requires:    %{libname} = %{EVRD}

%description tools
Command line tools for %{name}

%files tools
%license LICENSES/GPL-2.0-only.txt
%{_bindir}/cam
%{_bindir}/libcamerify

#------------------------------------------------------------

%package     qcam
Summary:     Graphical QCam application for %{name}
Requires:    %{libname} = %{EVRD}

%description qcam
Graphical QCam application for %{name}

%files qcam
%{_bindir}/qcam
%{_datadir}/applications/qcam.desktop
%{_metainfodir}/qcam.metainfo.xml

#------------------------------------------------------------

%package -n %{gstname}
Summary:     GSTreamer plugin for %{name}
Requires:    %{libname} = %{EVRD}

%description -n %{gstname}
GSTreamer plugins for %{name}

%files -n %{gstname}
%{_libdir}/gstreamer-1.0/libgstlibcamera.so

#------------------------------------------------------------

%package -n %{v4l2name}
Summary:     V4L2 compatibility layer
Requires:    %{libname} = %{EVRD}

%description -n %{v4l2name}
V4L2 compatibility layer

%files -n %{v4l2name}
%{_libdir}/v4l2-compat.so

#------------------------------------------------------------

%prep
%autosetup -p1


%ifarch %e2k
sed -i "s|_symbol('QOpenGLWidget', |(|" src/apps/qcam/meson.build
# workaround for EDG frontend
sed -i "s|g_autofree gchar \*|g_autofree_edg(gchar) |" src/gstreamer/gstlibcamerasrc.cpp
sed -i "s|\"caps\", caps|\"caps\", (GstCaps*)caps|" src/gstreamer/gstlibcameraprovider.cpp
%endif

%ifarch aarch64
%define platdefs simple,raspberrypi,rkisp1,uvcvideo
%endif
%ifarch %ix86 x86_64 riscv64 aarch64
%define platdefs ipu3,uvcvideo
%endif
%ifnarch %ix86 x86_64 riscv64
%define platdefs uvcvideo
%endif

%build
export CFLAGS="%{optflags} -Wno-deprecated-declarations"
export CXXFLAGS="%{optflags} -Wno-deprecated-declarations"
%meson  \
        -Dpipelines=%platdefs \
        -Dv4l2=true \
        -Dwerror=false \
        -Dtest=false

%meson_build

%install
%meson_install

# Install Desktop Entry file
desktop-file-install --dir=%{buildroot}%{_datadir}/applications \
                     %SOURCE1
# Remove the Sphinx build leftovers
rm -rf %{buildroot}%{_docdir}/%{name}-*/html/.buildinfo
rm -rf %{buildroot}%{_docdir}/%{name}-*/html/.doctrees

# Install AppStream metainfo file
mkdir -p %{buildroot}/%{_metainfodir}/
cp -a %SOURCE2 %{buildroot}/%{_metainfodir}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13988 |21mr|libcanberra-0.30-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define shortname canberra
%define major 0
%define major_gtk 0

%define libname %mklibname %{shortname} %{major}
%define libgtk %mklibname %{shortname}-gtk %{major_gtk}
%define libgtk3 %mklibname %{shortname}-gtk3_ %{major_gtk}
%define devgtk %mklibname %{shortname}-gtk -d
%define devgtk3 %mklibname %{shortname}-gtk3 -d
%define devname %mklibname %{shortname} -d

%bcond_without systemd

Summary:	XDG compliant sound event library
Name:		libcanberra
Version:	0.30
Release:	11
License:	LGPLv2.1+
Group:		Sound
Url:		http://0pointer.de/lennart/projects/libcanberra/
Source0:	http://0pointer.de/lennart/projects/libcanberra/%{name}-%{version}.tar.xz
Source1:	%{name}-gtk-module.sh
Source2:	%{shortname}-profile-d.sh
Source3:	%{shortname}-alsa.conf
Source4:	%{shortname}-pulse.conf
#http://git.0pointer.net/libcanberra.git/patch/?id=c0620e432650e81062c1967cc669829dbd29b310
Patch0:		libcanberra-0.30-cheese-snapshot.patch
BuildRequires:	GConf2
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(tdb)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(x11)
%if %{with systemd}
BuildRequires:	pkgconfig(udev) >= 186
BuildRequires:	systemd-units
%endif

%description
A small and lightweight implementation of the XDG Sound Theme Specification
(http://0pointer.de/public/sound-theme-spec.html).

#----------------------------------------------------------------------------

%package -n %{shortname}-common
Summary:	Common files needed for libcanberra
Group:		Sound
# (cg) This is just temporary. This should really be a generic requires.
Requires:	sound-theme-freedesktop
Conflicts:	%{shortname}-gtk3 < 0.28-6

%description -n %{shortname}-common
Common files needed for libcanberra

%files -n %{shortname}-common
%{_sysconfdir}/X11/xinit.d/libcanberra-gtk-module.sh
%{_sysconfdir}/profile.d/40canberra.sh
%{_sysconfdir}/sound/profiles/alsa/canberra.conf
%{_sysconfdir}/sound/profiles/pulse/canberra.conf
%if %{with systemd}
%{_bindir}/canberra-boot
/lib/systemd/system/canberra-system-bootup.service
/lib/systemd/system/canberra-system-shutdown-reboot.service
/lib/systemd/system/canberra-system-shutdown.service
%endif

%post -n %{shortname}-common
if [ $1 -eq 1 ]; then
    /bin/systemctl daemon-reload
fi
systemctl enable canberra-system-bootup.service

%preun -n %{shortname}-common
if [ $1 -eq 0 ]; then
    /bin/systemctl --no-reload disable canberra-system-bootup.service canberra-system-shutdown.service canberra-system-shutdown-reboot.service
    /bin/systemctl stop canberra-system-bootup.service canberra-system-shutdown.service canberra-system-shutdown-reboot.service
fi

%postun -n %{shortname}-common
/bin/systemctl daemon-reload

#----------------------------------------------------------------------------

%package -n %{shortname}-gtk3
Summary:	GTK3 utilities for the %{name} XDG complient sound event library
Group:		System/Libraries
Requires:	gtk+3.0
Requires:	%{shortname}-common
Obsoletes:	%{name}-gtk2 < 0.30-4

%description -n %{shortname}-gtk3
GTK3 specific utilities & modules for %{name}, a small and lightweight 
implementation of the XDG Sound Theme Specification 
(http://0pointer.de/public/sound-theme-spec.html).

%files -n %{shortname}-gtk3
%{_bindir}/canberra-gtk-play
%{_datadir}/gdm/autostart/LoginWindow/libcanberra-ready-sound.desktop
%{_datadir}/gnome/autostart/libcanberra-login-sound.desktop
%{_datadir}/gnome/shutdown/libcanberra-logout-sound.sh

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	XDG complient sound event library
Group:		System/Libraries

%description -n %{libname}
A small and lightweight implementation of the XDG Sound Theme Specification
(http://0pointer.de/public/sound-theme-spec.html).

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*
%dir %{_libdir}/%{name}-%{version}
%{_libdir}/%{name}-%{version}/%{name}-alsa.so
%{_libdir}/%{name}-%{version}/%{name}-gstreamer.so
%{_libdir}/%{name}-%{version}/%{name}-pulse.so
%{_libdir}/%{name}-%{version}/%{name}-multi.so
%{_libdir}/%{name}-%{version}/%{name}-null.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and libraries for %{name} development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%docdir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/README
%{_includedir}/%{shortname}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/vala/vapi/libcanberra.vapi

#----------------------------------------------------------------------------

%package -n %{libgtk}
Summary:	GTK libraries for the %{name}
Group:		System/Libraries
Provides:	canberra-gtk-module
%rename		canberra-gtk

%description -n %{libgtk}
GTK specific libraries for %{name}

%files -n %{libgtk}
%{_libdir}/%{name}-gtk.so.%{major_gtk}*
%{_libdir}/gtk-2.0/modules/%{name}-gtk-module.so

#----------------------------------------------------------------------------

%package -n %{devgtk}
Summary:	GTK library for %{name} development
Group:		Development/C
Provides:	%{name}-gtk-devel = %{EVRD}
Requires:	%{libgtk} = %{EVRD}
# moved the gtk header file & vala to gtk3devel
Requires:	%{devgtk3} = %{EVRD}

%description -n %{devgtk}
GTK specific development library for %{name}.

%files -n %{devgtk}
%doc %{_datadir}/gtk-doc/html/%{name}
%{_libdir}/%{name}-gtk.so
%{_libdir}/pkgconfig/%{name}-gtk.pc

#----------------------------------------------------------------------------

%package -n %{libgtk3}
Summary:	GTK3 libraries for the %{name}
Group:		System/Libraries

%description -n %{libgtk3}
GTK3 specific libraries for %{name}.

%files -n %{libgtk3}
%{_libdir}/%{name}-gtk3.so.%{major_gtk}*
%{_libdir}/gtk-3.0/modules/%{name}-gtk-module.so
%{_libdir}/gtk-3.0/modules/%{name}-gtk3-module.so
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/canberra-gtk-module.desktop

#----------------------------------------------------------------------------

%package -n %{devgtk3}
Summary:	GTK3 header and library for %{name} development
Group:		Development/C
Provides:	%{name}-gtk3-devel = %{EVRD}
Requires:	%{libgtk3} = %{EVRD}

%description -n %{devgtk3}
GTK3 specific development library and header for %{name}.

%files -n %{devgtk3}
%{_libdir}/libcanberra-gtk3.so
%{_libdir}/pkgconfig/libcanberra-gtk3.pc
%{_includedir}/%{shortname}-gtk.h
%{_datadir}/vala/vapi/libcanberra-gtk.vapi

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--disable-oss \
	--disable-lynx \
%if %{with systemd}
	--with-systemdsystemunitdir=%{_unitdir}
%endif

%make

%install
%makeinstall_std

# Remove metalink libraries
find %{buildroot} -name '*.la' -exec rm -f {} ';'

install -D -m755  %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit.d/libcanberra-gtk-module.sh
install -D -m644  %{SOURCE2} %{buildroot}%{_sysconfdir}/profile.d/40canberra.sh
install -D -m644  %{SOURCE3} %{buildroot}%{_sysconfdir}/sound/profiles/alsa/canberra.conf
install -D -m644  %{SOURCE4} %{buildroot}%{_sysconfdir}/sound/profiles/pulse/canberra.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13989 |21mr|libcap-2.50-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname cap %{major}
%define libpsx %mklibname psx %{major}
%define devname %mklibname cap -d
%define static %mklibname cap -s

Summary:	Library for getting and setting POSIX.1e capabilities
Name:		libcap
Version:	2.50
Release:	4
License:	BSD
Group:		System/Kernel and hardware
Url:		http://www.kernel.org/pub/linux/libs/security/linux-privs/
Source0:	http://ftp.be.debian.org/pub/linux/libs/security/linux-privs/libcap2/%{name}-%{version}.tar.xz
BuildRequires:	attr-devel
BuildRequires:	pam-devel
Patch0:		CVE-2023-2603.patch

%description
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.

#----------------------------------------------------------------------------

%package utils
Summary:	Administration tools for POSIX.1e capabilities
Group:		System/Kernel and hardware

%description utils
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.

This package contains utilities to control these capabilities.

%files utils
%doc CHANGELOG License README contrib
%{_sbindir}/getcap
%{_sbindir}/getpcaps
%{_sbindir}/setcap
%{_mandir}/man8/getcap.8*
%{_mandir}/man8/setcap.8*
%{_mandir}/man8/getpcaps.8*

#----------------------------------------------------------------------------

%package -n pam_cap
Summary:	PAM module for getting and setting POSIX.1e capabilities
Group:		System/Libraries

%description -n pam_cap
The purpose of this module is to enforce inheritable capability sets for a
specified user.

%files -n pam_cap
%doc pam_cap/License
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/security/capability.conf
/%{_lib}/security/pam_cap.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for getting and setting POSIX.1e capabilities
Group:		System/Kernel and hardware
Provides:	%{name} = %{EVRD}

%description -n %{libname}
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.

%files -n %{libname}
/%{_lib}/libcap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpsx}
Summary:	Library for getting and setting POSIX.1e capabilities
Group:		System/Kernel and hardware
Requires:	%{libname} = %{EVRD}

%description -n %{libpsx}
%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.

%files -n %{libpsx}
/%{_lib}/libpsx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	%{libname} = %{EVRD}
Requires:	%{libpsx} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	cap-devel = %{EVRD}

%description -n %{devname}
Development files (Headers, libraries for static linking, etc) for %{name}.

%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.

Install %{name}-devel if you want to develop or compile applications supporting
Linux kernel capabilities.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libcap.so
%{_libdir}/libpsx.so
%{_libdir}/pkgconfig/libcap.pc
%{_libdir}/pkgconfig/libpsx.pc
%{_mandir}/man3/*.3*
%{_mandir}/man1/capsh.1.*

#----------------------------------------------------------------------------
%package -n %{static}
Summary:	Development files for %{name}
Group:		Development/Kernel
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{static}
Development files (Headers, libraries for static linking, etc) for %{name}.

%{name} is a library for getting and setting POSIX.1e (formerly POSIX 6)
draft 15 capabilities.

Install %{name}-devel if you want to develop or compile applications supporting
Linux kernel capabilities.

%files -n %{static}
%{_libdir}/*.a

%prep
%autosetup -p1
sed -i 's!--static!!g' tests/Makefile progs/Makefile

%build
%set_build_flags
%make_build BUILD_CC=%{__cc} CC=%{__cc} PREFIX=%{_prefix} CFLAGS="%{optflags} -fPIC" LDFLAGS="%{ldflags} -lpam"

%install
install -d %{buildroot}%{_sysconfdir}/security

make install \
       RAISE_SETFCAP=no \
       DESTDIR=%{buildroot} \
       LIBDIR=/%{_lib} \
       SBINDIR=%{_sbindir} \
       PAM_CAP=yes \
       INCDIR=%{_includedir} \
       MANDIR=%{_mandir}/ \
       PKGCONFIGDIR=%{_libdir}/pkgconfig/

rm -f %{buildroot}/%{_lib}/libcap.so
rm -f %{buildroot}/%{_lib}/libpsx.so
install -d %{buildroot}%{_libdir}
ln -srf %{buildroot}/%{_lib}/libcap.so.%{major}.* %{buildroot}%{_libdir}/libcap.so
ln -srf %{buildroot}/%{_lib}/libpsx.so.%{major}.* %{buildroot}%{_libdir}/libpsx.so
chmod 755 %{buildroot}/%{_lib}/libcap.so.%{major}.*
chmod 755 %{buildroot}/%{_lib}/libpsx.so.%{major}.*


# conflics with man-pages
rm -f %{buildroot}%{_mandir}/man2/*

install -m0640 pam_cap/capability.conf %{buildroot}%{_sysconfdir}/security/

# cleanup
mv %{buildroot}/%{_lib}/*.a %{buildroot}/%{_libdir}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13990 |21mr|libcap-ng-0.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname cap-ng %{major}
%define devname %mklibname cap-ng -d
%define libdrop %mklibname drop_ambient %{major}

Summary:	An alternate posix capabilities library
Name:		libcap-ng
Version:	0.8.3
Release:	1
License:	LGPLv2+
Group:		System/Libraries
URL:		http://people.redhat.com/sgrubb/libcap-ng
Source0:	http://people.redhat.com/sgrubb/libcap-ng/%{name}-%{version}.tar.gz
BuildRequires:	kernel-headers
BuildRequires:	swig
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(python3)
%if %{mdvver} < 201910
BuildRequires:	pkgconfig(python2)
%endif

%description
Libcap-ng is a library that makes using posix capabilities easier.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared %{name} library
Group:		System/Libraries
Requires:	%{libdrop} = %{EVRD}
Obsoletes:	%{_lib}libcap-ng0 < 0.7.1-5

%description -n %{libname}
Libcap-ng is a library that makes using posix capabilities easier.

This package contains the shared %{name} library.

%files -n %{libname}
%doc COPYING.LIB
/%{_lib}/libcap-ng.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdrop}
Summary:	Shared %{name} library
Requires:	%{libname} = %{EVRD}
Group:		System/Libraries

%description -n	%{libdrop}
This package contains the shared %{name} library.

%files -n %{libdrop}
/%{_lib}/libdrop_ambient.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libdrop} = %{EVRD}
Requires:	kernel-headers
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}libcap-ng-devel < 0.7.1-5

%description -n %{devname}
Libcap-ng is a library that makes using posix capabilities easier.

This package contains the development files for the %{name} library.

%files -n %{devname}
%{_includedir}/cap-ng.h
%{_libdir}/libcap-ng.so
%{_libdir}/libdrop_ambient.so
%{_datadir}/aclocal/cap-ng.m4
%{_libdir}/pkgconfig/libcap-ng.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------
%if %{mdvver} < 201910

%package -n %python2-%{name}
Summary:	Python bindings for %{name} library
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n %python2-%{name}
The libcap-ng-python package contains the bindings so that %{name} and
can be used by python applications.

%files -n %python2-%{name}
%{python2_sitearch}/_capng.so
%{python2_sitearch}/capng.py*

%endif
#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python bindings for %{name} library
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
The libcap-ng-python package contains the bindings so that %{name} and
can be used by python applications.

%files -n python3-%{name}
%{_libdir}/python3.?/site-packages/_capng.so
%{python3_sitearch}/capng.py*
%{python3_sitearch}/__pycache__/*

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities for analysing and setting file capabilities
Group:		System/Base

%description utils
The libcap-ng-utils package contains applications to analyse the posix
capabilities of all the program running on a system. It also lets you set the
file system based capabilities.

%files utils
%doc COPYING
%{_bindir}/*
%{_mandir}/man8/*
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--libdir=/%{_lib} \
%if %{mdvver} < 201910
	--with-python2 \
%endif
	--with-python3

%make_build

%install
%make_install

# Move the symlink
rm -f %{buildroot}/%{_lib}/%{name}.so
mkdir -p %{buildroot}%{_libdir}
VLIBNAME=$(ls %{buildroot}/%{_lib}/%{name}.so.*.*.*)
LIBNAME=$(basename $VLIBNAME)
ln -s ../../%{_lib}/$LIBNAME %{buildroot}%{_libdir}/%{name}.so

# drop_ambient
rm -f %{buildroot}/%{_lib}/libdrop_ambient.so
VLIBNAME=$(ls %{buildroot}/%{_lib}/libdrop_ambient.so.*.*.*)
LIBNAME=$(basename $VLIBNAME)
ln -s ../../%{_lib}/$LIBNAME %{buildroot}%{_libdir}/libdrop_ambient.so

# Move the pkgconfig file
mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}

# Remove a couple things so they don't get picked up
rm -f %{buildroot}/%{_libdir}/libcap-ng.la
rm -f %{buildroot}/%{_libdir}/libcap-ng.a
rm -f %{buildroot}/%{_libdir}/libdrop_ambient.la
rm -f %{buildroot}/%{_libdir}/libdrop_ambient.a
rm -f %{buildroot}/%{_libdir}/python?.?/site-packages/_capng.a
rm -f %{buildroot}/%{_libdir}/python?.?/site-packages/_capng.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13991 |21mr|libcbor-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.8
%define libname %mklibname cbor %{major}
%define devname %mklibname cbor -d

Summary:	A CBOR parsing library
Name:		libcbor
License:	MIT
Group:      System/Libraries
Version:	0.8.0
Release:	1
URL:		http://libcbor.org
Source0:	https://github.com/PJK/libcbor/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	python3-breathe
BuildRequires:	python3-sphinx
BuildRequires:	python3-sphinx_rtd_theme
BuildRequires: make

%description
libcbor is a C library for parsing and generating CBOR

#--------------------------------------------------------------------

%package -n %{libname}
Summary:    A CBOR parsing library
Group:      System/Libraries

%description -n %{libname}
libcbor is a C library for parsing and generating CBOR

%files -n %{libname}
%license LICENSE.md
%doc README.md
%{_libdir}/libcbor.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:      Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel contains libraries and header files for %{name}

%files -n %{devname}
%license LICENSE.md
%doc README.md
%{_includedir}/cbor.h
%{_includedir}/cbor
%{_libdir}/libcbor.so
%{_libdir}/pkgconfig/libcbor.pc
%{_mandir}/man3/libcbor.3*

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
dir0="$PWD"
%cmake
%make
%make -C "$dir0"/doc man

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_mandir}/man3
cp doc/build/man/* %{buildroot}%{_mandir}/man3

# /usr/usr/lib64/pkgconfig
mkdir -p %{buildroot}%{_libdir}/pkgconfig
mv -v %{buildroot}/usr/%{_libdir}/pkgconfig/*.pc %{buildroot}%{_libdir}/pkgconfig
rm -fvr %{buildroot}/usr/usr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13992 |21mr|libcdaudio-0.99.12-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname cdaudio %{major}
%define devname %mklibname cdaudio -d
%define _disable_rebuild_configure %nil

Summary:	A library for controlling CD-ROM devices
Name:		libcdaudio
Version:	0.99.12
Release:	23
Group:		Sound
License:	LGPLv2.1+
Url:		http://libcdaudio.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}-config
Patch0:		%{name}-0.99.10.config.patch
Patch1:		%{name}-0.99-CAN-2005-0706.patch
Patch2:		%{name}-0.99.12-buffovfl.patch
Patch3:		libcdaudio-0.99.12-bug245649.patch

%description
libcdaudio is a library for controlling CD-ROM devices.

#----------------------------------------------------------------------------

%package common
Summary:	Data files for %{name}
Group:		Sound
Conflicts:	%{_lib}cdaudio1 < 0.99.12-17

%description common
Data files for %{name}.

%files common
%{_sysconfdir}/cdserver

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for controlling CD-ROM devices
Group:		System/Libraries
Requires:	%{name}-common >= %{EVRD}

%description -n %{libname}
libcdaudio is a library for controlling CD-ROM devices.

%files -n %{libname}
%doc README NEWS AUTHORS ChangeLog
%{_libdir}/libcdaudio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	cdaudio-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_bindir}/libcdaudio-config
%{_includedir}/*
%{_libdir}/lib*.so
%{_datadir}/aclocal/*
%{_libdir}/pkgconfig/libcdaudio.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p0

cp %{SOURCE1} cdserver

sed -i 's!AM_C_PROTOTYPES!dnl AM_C_PROTOTYPES!g' configure.ac Makefile.am

%build
%configure --disable-static
%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 cdserver %{buildroot}%{_sysconfdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13993 |21mr|libcddb-1.3.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	docver 1.3.0

%define	major 2
%define	libname %mklibname cddb %{major}
%define	devname %mklibname cddb -d

%bcond_with bootstrap

Summary:	CDDB access library
Name:		libcddb
Version:	1.3.2
Release:	18
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libcddb.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/libcddb/%{name}-%{version}.tar.bz2
Source1:	http://prdownloads.sourceforge.net/libcddb/%{name}-doc-%{docver}.tar.bz2
BuildRequires:	gettext-devel
%if %{without bootstrap}
BuildRequires:	pkgconfig(libcdio)
%endif

%description
Libcddb is a library that implements the different protocols (CDDBP, HTTP,
SMTP) to access data on a CDDB server (http://freedb.org).  It tries to be as
cross-platform as possible.  The initial libary will have a C API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Libcddb is a library that implements the different protocols (CDDBP, HTTP,
SMTP) to access data on a CDDB server (http://freedb.org).  It tries to be as
cross-platform as possible.  The initial libary will have a C API.

%files -n %{libname}
%{_libdir}/libcddb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel files from libcddb
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}cddb-static-devel < 1.3.2-10

%description -n %{devname}
Libcddb is a library that implements the different protocols (CDDBP, HTTP,
SMTP) to access data on a CDDB server (http://freedb.org).  It tries to be as
cross-platform as possible.  The initial libary will have a C API.

This package contains the libraries, include files and other resources you
can use to incorporate %{name} into applications.

%files -n %{devname}
%doc ChangeLog README AUTHORS NEWS TODO html
%{_includedir}/cddb
%{_libdir}/libcddb.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package apps
Summary:	Example applications based on %{name}
Group:		Sound

%description apps
Libcddb is a library that implements the different protocols (CDDBP, HTTP,
SMTP) to access data on a CDDB server (http://freedb.org).  It tries to be as
cross-platform as possible.  The initial libary will have a C API.

This package contains a command line client based on %{name}.

%files apps
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -a 1
mv output html

%build
autoreconf -fiv
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13994 |21mr|libcdio-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Libcdio 2.x needs libvcdinfo 2.x and the reverse
%define bootstrap 0

%if %{bootstrap}
%bcond_with vcd
%else
%bcond_without vcd
%endif

%define major 19
%define libname %mklibname cdio %{major}

%define isomajor 11
%define libiso %mklibname iso9660_ %{isomajor}

%define ppmajor 1
%define isoppmajor 0
%define libnamepp %mklibname cdio++ %{ppmajor}
%define libisopp %mklibname iso++ %{isoppmajor}

%define udfmajor 0
%define libudf %mklibname udf %{udfmajor}

%define devname %mklibname cdio -d

Summary:	CD-ROM reading library
Name:		libcdio
Version:	2.1.0
Release:	2
License:	GPLv3+
Group:		System/Libraries
Url:		http://www.gnu.org/software/libcdio/
Source0:	https://ftp.gnu.org/pub/gnu/libcdio/%{name}-%{version}.tar.bz2
BuildRequires:	perl
BuildRequires:	pkgconfig(libcddb) >= 1.0.1
%if %{with vcd}
BuildRequires:	pkgconfig(libvcdinfo)
%endif
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(popt)

%description
This library is to encapsulate CD-ROM reading and control. Applications
wishing to be oblivious of the OS- and device-dependent properties of a
CD-ROM can use this library.
Some support for disk image types like BIN/CUE and NRG is available, so
applications that use this library also have the ability to read disc
images as though they were CD's.

#----------------------------------------------------------------------------

%package apps
Summary:	Example tools built from %{name}
Group:		Sound

%description apps
This library is to encapsulate CD-ROM reading and control. Applications
wishing to be oblivious of the OS- and device-dependent properties of a
CD-ROM can use this library.

This package contains the program cd-info (and others as well) as example
applications using %{name}.

%files apps
%doc README AUTHORS NEWS* TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library from %{name}
Group:		System/Libraries
Provides:	libcdio = %{EVRD}

%description -n %{libname}
This package contains the library for libcdio.

%files -n %{libname}
%doc COPYING
%{_libdir}/libcdio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libiso}
Summary:	Library from %{name}
Group:		System/Libraries

%description -n %{libiso}
This package contains the library for libiso.

%files -n %{libiso}
%doc COPYING
%{_libdir}/libiso9660.so.%{isomajor}*

#----------------------------------------------------------------------------

%package -n %{libnamepp}
Summary:	C++ library from %{name}
Group:		System/Libraries

%description -n %{libnamepp}
This package contains the C++ library for libcdio++.

%files -n %{libnamepp}
%doc COPYING
%{_libdir}/libcdio++.so.%{ppmajor}*

#----------------------------------------------------------------------------

%package -n %{libisopp}
Summary:	C++ library from %{name}
Group:		System/Libraries
Conflicts:	%{_lib}cdiopp0 < 0.90

%description -n %{libisopp}
This package contains the C++ library for libiso++.

%files -n %{libisopp}
%doc COPYING
%{_libdir}/libiso9660++.so.%{isoppmajor}*

#----------------------------------------------------------------------------

%package -n %{libudf}
Summary:	Libraries from %{name}
Group:		System/Libraries

%description -n %{libudf}
This package contains the library for libudf.

%files -n %{libudf}
%doc COPYING
%{_libdir}/libudf.so.%{udfmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel files from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libiso} = %{EVRD}
Requires:	%{libnamepp} = %{EVRD}
Requires:	%{libisopp} = %{EVRD}
Requires:	%{libudf} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename	%{_lib}cdio-static-devel

%description -n %{devname}
This is the package containing libraries, include files and other resources
you can use to incorporate %{name} into applications.

%files -n %{devname}
%doc ChangeLog README AUTHORS NEWS* TODO
%{_includedir}/cdio
%{_includedir}/cdio++/
%{_infodir}/libcdio.info*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libcdio.pc
%{_libdir}/pkgconfig/libcdio++.pc
%{_libdir}/pkgconfig/libiso9660.pc
%{_libdir}/pkgconfig/libiso9660++.pc
%{_libdir}/pkgconfig/libudf.pc

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure \
	--disable-static \
	--disable-rpath \
	--without-versioned-libs \
%if %{without vcd}
	--disable-vcd-info
%endif

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13995 |21mr|libcdio-paranoia-2.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define extver 10.2
%define major 2
%define libname %mklibname cdio_paranoia %{major}
%define libcdda %mklibname cdio_cdda %{major}
%define devname %mklibname cdio_paranoia -d

Summary:	CD-ROM reading library
Name:		libcdio-paranoia
Version:	2.0.1
Release:	2
License:	GPLv3+
Group:		System/Libraries
Url:		http://www.gnu.org/software/libcdio/
Source0:	https://github.com/rocky/libcdio-paranoia/archive/release-%{extver}+%{version}.tar.gz?/%{name}-release-%{extver}-%{version}.tar.gz
# Unused...
#Patch0:		libcdio-paranoia_includedir.patch
BuildRequires:	doxygen
BuildRequires:	help2man
BuildRequires:	pkgconfig(libcddb)
BuildRequires:	pkgconfig(libcdio) >= 0.83
# The two below should be unused now, according to the configure output...
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(popt)

%description
This CDDA reader distribution ('libcdio-cdparanoia') reads audio from the
CDROM directly as data, with no analog step between, and writes the
data to a file or pipe as .wav, .aifc or as raw 16 bit linear PCM.

#----------------------------------------------------------------------------

%package apps
Summary:	Example tools from %{name}
Group:		Sound

%description apps
This CDDA reader distribution ('libcdio-cdparanoia') reads audio from the
CDROM directly as data, with no analog step between, and writes the
data to a file or pipe as .wav, .aifc or as raw 16 bit linear PCM.

%files apps
%{_bindir}/cd-paranoia
%{_mandir}/man1/cd-paranoia.1*
%lang(jp) %{_mandir}/jp/man1/cd-paranoia.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library from %{name}
Group:		System/Libraries
Conflicts:	%{_lib}cdio_cdda1 < 0.90

%description -n %{libname}
This package contains the library for libcdio-paranoia.

%files -n %{libname}
%doc COPYING
%{_libdir}/libcdio_paranoia.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcdda}
Summary:	Libraries from %{name}
Group:		System/Libraries

%description -n %{libcdda}
This package contains the library for libcdio-cdda.

%files -n %{libcdda}
%doc COPYING
%{_libdir}/libcdio_cdda.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel files from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcdda} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}cdio-devel < 0.90

%description -n %{devname}
This is the libraries, include files and other resources you can use to
incorporate %{name} into applications.

%files -n %{devname}
%doc AUTHORS COPYING NEWS README.md
%doc doc/doxygen/html/*
%{_includedir}/cdio
%{_libdir}/libcdio_*.so
%{_libdir}/pkgconfig/libcdio_paranoia.pc
%{_libdir}/pkgconfig/libcdio_cdda.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{extver}-%{version}

# Make pkgconfig files point where libcdio resides
sed -i -e 's,-I${includedir},-I${includedir}/cdio,g' libcdio_paranoia.pc.in
sed -i -e 's,-I${includedir},-I${includedir}/cdio,g' libcdio_cdda.pc.in


%build
autoreconf -vfi
%configure \
	--disable-static \
	--without-versioned-libs

%make

# Build dev docs
%make doxygen


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13996 |21mr|libcdr-0.1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1

%define major 1
%define libname %mklibname cdr %{api} %{major}
%define devname %mklibname cdr %{api} -d

Summary:	A library providing ability to interpret and import Corel Draw drawings
Name:		libcdr
Version:	0.1.7
Release:	2
License:	GPLv2+ or LGPLv2.1+
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libcdr
Source0:	http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(zlib)

%description
Libcdr is library providing ability to interpret and import Corel Draw
drawings into various applications. You can find it being used in
libreoffice.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library providing ability to interpret and import Corel Draw drawings
Group:		System/Libraries
Conflicts:	%{_lib}cdr1 < 0.1.0-3
Obsoletes:	%{_lib}cdr1 < 0.1.0-3

%description -n %{libname}
Libcdr is library providing ability to interpret and import Corel Draw
drawings into various applications. You can find it being used in
libreoffice.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING.*
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}cdr-devel < 0.1.0-3
Obsoletes:	%{_lib}cdr-devel < 0.1.0-3

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains documentation files for %{name}.

%files doc
%doc COPYING.*
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Corel Draw drawings into other formats
Group:		Graphics

%description tools
Tools to transform Corel Draw drawings into other formats.
Currently supported: XHTML, raw.

%files tools
%{_bindir}/cdr2text
%{_bindir}/cdr2raw
%{_bindir}/cdr2xhtml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-static \
	--disable-werror

sed -i \
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    libtool
%make V=1


%install
%makeinstall_std

# these binaries do nothing currently
rm -f %{buildroot}/%{_bindir}/cmx2*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13997 |21mr|libcdr-0.1.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1

%define major 1
%define libname %mklibname cdr %{api} %{major}
%define devname %mklibname cdr %{api} -d

Summary:	A library providing ability to interpret and import Corel Draw drawings
Name:		libcdr
Version:	0.1.7
Release:	4
License:	GPLv2+ or LGPLv2.1+
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libcdr
Source0:	http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(zlib)

%description
Libcdr is library providing ability to interpret and import Corel Draw
drawings into various applications. You can find it being used in
libreoffice.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library providing ability to interpret and import Corel Draw drawings
Group:		System/Libraries
Conflicts:	%{_lib}cdr1 < 0.1.0-3
Obsoletes:	%{_lib}cdr1 < 0.1.0-3

%description -n %{libname}
Libcdr is library providing ability to interpret and import Corel Draw
drawings into various applications. You can find it being used in
libreoffice.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING.*
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}cdr-devel < 0.1.0-3
Obsoletes:	%{_lib}cdr-devel < 0.1.0-3

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains documentation files for %{name}.

%files doc
%doc COPYING.*
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Corel Draw drawings into other formats
Group:		Graphics

%description tools
Tools to transform Corel Draw drawings into other formats.
Currently supported: XHTML, raw.

%files tools
%{_bindir}/cdr2text
%{_bindir}/cdr2raw
%{_bindir}/cdr2xhtml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-static \
	--disable-werror

sed -i \
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    libtool
%make V=1


%install
%makeinstall_std

# these binaries do nothing currently
rm -f %{buildroot}/%{_bindir}/cmx2*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13998 |21mr|libcec-6.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname cec %{major}
%define devname %mklibname cec -d

Summary:	Pulse-Eight CEC adapter control library
Name:		libcec
Version:	6.0.2
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://libcec.pulse-eight.com/
Source0:	https://github.com/Pulse-Eight/libcec/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
Source1:	libcec.rpmlintrc
Patch0:		libcec-4.0.1-disable-python.patch
BuildRequires:	cmake
BuildRequires:	lockdev-devel
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(nettle)
BuildRequires:	pkgconfig(p8-platform)

%description
With libcec you can access your Pulse-Eight CEC adapter.

#----------------------------------------------------------------------------

%package -n cec-utils
Summary:	Utilities for Pulse-Eight CEC adapter control
Group:		System/Configuration/Hardware
# the binaries require the library, but automatic dependency generation doesn't
# catch that
Requires:	%{libname} = %{EVRD}

%description -n cec-utils
With libcec you can access your Pulse-Eight CEC adapter.

This package contains the command-line tools to configure and test your
Pulse-Eight CEC adapter.

%files -n cec-utils
%{_bindir}/cec-client
%{_bindir}/cec-client-%{version}
%{_bindir}/cecc-client
%{_bindir}/cecc-client-%{version}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for Pulse-Eight CEC adapter control
Group:		System/Libraries

%description -n %{libname}
With libcec you can access your Pulse-Eight CEC adapter.

This package contains the shared library which allows programs to access your
Pulse-Eight CEC adapter.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	cec-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
With libcec you can access your Pulse-Eight CEC adapter.

This package contains the files for developing applications which
will use libcec.

%files -n %{devname}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/*.h

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}
%patch0 -p1

%build
%cmake \
	-DSKIP_PYTHON_WRAPPER:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 13999 |21mr|libcerf-1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define libname	%mklibname cerf %{major}
%define devname	%mklibname cerf -d

Name:		libcerf
Summary:	Complex error functions, Dawson, Faddeeva, and Voigt function
Version:	1.3
Release:	4
Group:		System/Libraries
License:	MIT
Url:		http://sourceforge.net/projects/libcerf/
Source0:	http://downloads.sourceforge.net/libcerf/libcerf-%{version}.tgz
Patch0:		libcerf-1.3-fix-version.patch

%description
A self-contained C library providing complex error functions, based on
Faddeeva's plasma dispersion function w(z).

Also provides Dawson's integral and Voigt's convolution of a Gaussian
and a Lorentzian.

%package -n %{libname}
Summary:	Complex error functions, Dawson, Faddeeva, and Voigt function
Group:		System/Libraries

%description -n %{libname}
A self-contained C library providing complex error functions, based on
Faddeeva's plasma dispersion function w(z).

Also provides Dawson's integral and Voigt's convolution of a Gaussian
and a Lorentzian.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the development files for %{name}.

%prep
%setup -q
%apply_patches

%build
autoreconf -vfi
%configure
%make

%install
%makeinstall_std

#we don't want these
find %{buildroot} -name "*.la" -delete
rm -rf %{buildroot}%{_mandir}/html/

%files -n %{libname}
%doc CHANGELOG README
%doc COPYING
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{major}.*

%files -n %{devname}
%{_includedir}/cerf.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14000 |21mr|libcgroup-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major_libcgroup 1
%define	major_libcgset 0
%define	mname cgroup
%define	libname_cgroup %mklibname cgroup %{major_libcgroup}
%define	libname_cgset %mklibname cgset %{major_libcgset}
%define	devname	%mklibname %{mname} -d

# autoreconf is enough
%define _disable_rebuild_configure 1

# libcgset is underlinked
# https://github.com/libcgroup/libcgroup/issues/66
# We fix it with patchelf bellow
%define _disable_ld_no_undefined 1

Summary:	Tools and libraries to control and monitor control groups
Name:		libcgroup
Group:		System/Base
Version:	2.0
Release:	2
License:	LGPLv2+
URL:		http://libcg.sourceforge.net/
Source0:	https://github.com/libcgroup/libcgroup/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	cgred.service
Source3:	cgred.sysconfig
Patch0:		fedora-config.patch
# cherry-picks from upstream
Patch1:		https://github.com/libcgroup/libcgroup/commit/21adf4394faf81aa28238d0f01071aaf618637ba.patch
Patch2:		https://github.com/libcgroup/libcgroup/commit/b38b947a670850d0bd2816140676c32984ab9b31.patch
Patch3:		https://github.com/libcgroup/libcgroup/commit/85c61fcf261befcd0bd6737d3808a3f08b1a11c9.patch
BuildRequires:	pam-devel
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	coreutils
BuildRequires:	patchelf

%description
Control groups infrastructure. The tools and library to manipulate, control,
administrate and monitor control groups and the associated controllers.

#--------------------------------------------------------------------------

%package common
Summary:	Common parts for libcgroup tools, libraries and daemons
Group:		System/Base
# renamed package
Provides:	cgroup = %{EVRD}
Conflicts:	cgroup < 2.0

%description common
Control groups infrastructure. The tools and library to manipulate, control,
administrate and monitor control groups and the associated controllers.

%files common
%license COPYING
%doc README
%dir %{_sysconfdir}/cgrules.d
%dir %{_sysconfdir}/cgconfig.d
%config(noreplace) %{_sysconfdir}/cgrules.conf
%{_mandir}/man5/cgrules.conf.5*

#---------------------------------------------------------------------------

%package tools
Summary:	Tools for manipulations with cgroups
Group:		System/Base
Requires:	%{name}-common = %{EVRD}
Conflicts:	cgroup < 2.0
Obsoletes:	cgroup < 2.0

%description tools
Tools for manipulations with cgroups

%files tools
%license COPYING
%config(noreplace) %{_sysconfdir}/cgsnapshot_blacklist.conf
%{_bindir}/cgcreate
%{_bindir}/cgget
%{_bindir}/cgset
%{_bindir}/cgdelete
%{_bindir}/lscgroup
%{_bindir}/lssubsys
%{_sbindir}/cgconfigparser
%{_sbindir}/cgclear
%{_bindir}/cgsnapshot
%{_bindir}/cgclassify
%{_bindir}/cgexec
%{_mandir}/man1/cgclassify.1*
%{_mandir}/man1/cgclear.1*
%{_mandir}/man1/cgcreate.1*
%{_mandir}/man1/cgdelete.1*
%{_mandir}/man1/cgexec.1*
%{_mandir}/man1/cgget.1*
%{_mandir}/man1/cgset.1*
%{_mandir}/man1/cgsnapshot.1*
%{_mandir}/man1/lscgroup.1*
%{_mandir}/man1/lssubsys.1*
%{_mandir}/man5/cgred.conf.5*
%{_mandir}/man8/cgconfigparser.8*

#---------------------------------------------------------------------------

%package cgconfig
Summary:	CGroups configuration service
Group:		System/Base
Requires:	%{name}-common = %{EVRD}
Conflicts:	cgroup < 2.0

%description cgconfig
CGroups configuration service

%files cgconfig
%license COPYING
%doc README
%doc README_systemd
%config(noreplace) %{_sysconfdir}/cgconfig.conf
%config(noreplace) %{_sysconfdir}/sysconfig/cgconfig
%{_unitdir}/cgconfig.service
%{_mandir}/man5/cgconfig.conf.5*

%post cgconfig
%systemd_post cgconfig.service

%preun cgconfig
%systemd_preun cgconfig.service

%postun cgconfig
%systemd_postun_with_restart cgconfig.service

#---------------------------------------------------------------------------

%package cgred
Summary:	CGroups rules engine daemon
Group:		System/Base
Requires:	%{name}-common = %{EVRD}
Conflicts:	cgroup < 2.0

%description cgred
CGroups rules engine daemon

%files cgred
%license COPYING
%doc README
%doc README_systemd
%{_sbindir}/cgrulesengd
%config(noreplace) %{_sysconfdir}/sysconfig/cgred
%{_unitdir}/cgred.service
%{_mandir}/man8/cgrulesengd.8*

%post cgred
%systemd_post cgred.service

%preun cgred
%systemd_preun cgred.service

%postun cgred
%systemd_postun_with_restart cgred.service

#--------------------------------------------------------------------------

%package -n	pam_%{mname}
Summary:	A Pluggable Authentication Module for libcgroup
Group:		System/Libraries
# configs etc.
Requires:	%{mname} = %{EVRD}
# compat with Fedora/RH
Provides:	libcgroup-pam = %{EVRD}

%description -n	pam_%{mname}
Linux-PAM module, which allows administrators to classify the user's login
processes to pre-configured control group.

%files -n pam_%{mname}
%license COPYING
/%{_lib}/security/pam_cgroup.so

#--------------------------------------------------------------------------

%package -n	%{libname_cgroup}
Summary:	Libraries to control and monitor control groups
Group:		System/Libraries
Requires:	%{name}-common = %{EVRD}

%description -n	%{libname_cgroup}
Control groups infrastructure. The library to manipulate, control, administrate
and monitor control groups and the associated controllers.

%files -n %{libname_cgroup}
%license COPYING
%{_libdir}/libcgroup.so.%{major_libcgroup}*

#--------------------------------------------------------------------------

%package -n	%{libname_cgset}
Summary:	Libraries to control and monitor control groups
Group:		System/Libraries
Requires:	%{name}-common = %{EVRD}

%description -n	%{libname_cgset}
Control groups infrastructure. The library to manipulate, control, administrate
and monitor control groups and the associated controllers.

%files -n %{libname_cgset}
%license COPYING
%{_libdir}/libcgset.so.%{major_libcgset}*

#--------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development libraries to develop applications that utilize control groups
Group:		Development/C
Requires:	%{libname_cgroup} = %{EVRD}
Requires:	%{libname_cgset} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
It provides API to create/delete and modify cgroup nodes. It will also in the
future allow creation of persistent configuration for control groups and
provide scripts to manage that configuration.

%files -n %{devname}
%license COPYING
%{_includedir}/libcgroup.h
%{_includedir}/libcgroup
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libcgroup.so
%{_libdir}/libcgset.so

#--------------------------------------------------------------------------

%prep
%autosetup -p1

# Does not make sense on systemd
# https://github.com/libcgroup/libcgroup/commit/9643cd15b23888e158ac34927a5f12e243c19769
sed -i'' -e '/^ExecStop=\/sbin\/cgclear/d' dist/cgconfig.service

sed -i'' -e 's,=/sbin/,=%{_sbindir}/,g' dist/*.service

# tests are a git submodule, drop them
sed -i'' -e 's, tests,,' Makefile.am
sed -i'' -e '/tests/d' configure.ac
sed -i'' -e 's, libcgroupfortesting.la,,' src/Makefile.am

%build
autoreconf -if
%configure \
	--enable-opaque-hierarchy="name=systemd"
%make

%install
%makeinstall_std

# install config files
install -d %{buildroot}%{_sysconfdir}
install -m644 samples/cgconfig.conf %{buildroot}%{_sysconfdir}/cgconfig.conf
install -m644 samples/cgconfig.sysconfig -D %{buildroot}%{_sysconfdir}/sysconfig/cgconfig
install -m644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/sysconfig/cgred
install -m644 samples/cgrules.conf %{buildroot}%{_sysconfdir}/cgrules.conf
install -m644 samples/cgsnapshot_blacklist.conf %{buildroot}%{_sysconfdir}/cgsnapshot_blacklist.conf

# sanitize pam module, we need only pam_cgroup.so
# XXX Put PAM modules into /lib64/security as other PAM modules descpite libraries being in /usr/lib64,
# we will merge /usr later
mkdir -p %{buildroot}/%{_lib}/security
mv -f %{buildroot}%{_libdir}/security/pam_cgroup.so %{buildroot}/%{_lib}/security/pam_cgroup.so

# install unit and sysconfig files
install -d %{buildroot}%{_unitdir}
install -m 644 dist/cgconfig.service %{buildroot}%{_unitdir}/
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/

# this directory is also read according to docs
mkdir -p %{buildroot}%{_sysconfdir}/cgrules.d
# needed for /usr/sbin/cgrulesengd
mkdir -p %{buildroot}%{_sysconfdir}/cgconfig.d

# https://github.com/libcgroup/libcgroup/issues/66
patchelf --add-needed libcgroup.so.%{major_libcgroup} %{buildroot}%{_libdir}/libcgset.so.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14001 |21mr|libchamplain-0.12.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname		champlain

%define api		0.12
%define major		0
%define libname		%mklibname %{oname} %{api} %{major}
%define libgtk		%mklibname %{oname}-gtk %{api} %{major}
%define girname		%mklibname %{oname}-gir %{api}
%define girgtk		%mklibname %{oname}-gtk-gir %{api}
%define devname		%mklibname %{oname} %{api} -d

Summary:	Map view for Clutter
Name:		libchamplain
Version:	0.12.21
Release:	2
License:	LGPLv2+
Group:		Graphical desktop/GNOME 
Url:		https://download.gnome.org/sources/libchamplain
Source0:	https://download.gnome.org/sources/libchamplain/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	chrpath
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libsoup-gnome-2.4)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(memphis-0.2)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vapigen)

%description
Libchamplain is a C library aimed to provide a ClutterActor to display
rasterized maps.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Map view for Clutter
Group:		System/Libraries

%description -n %{libname}
Libchamplain is a C library aimed to provide a ClutterActor to display
rasterized maps.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgtk}
Summary:	Map view for Clutter
Group:		System/Libraries

%description -n %{libgtk}
Libchamplain is a C library aimed to provide a ClutterActor to display
rasterized maps.

This package contains the GTK+ view for %{name}

%files -n %{libgtk}
%{_libdir}/%{name}-gtk-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for GData
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for GData.

%files -n %{girname}
%{_libdir}/girepository-1.0/Champlain-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girgtk}
Summary:	GObject Introspection interface description for GData
Group:		System/Libraries
Requires:	%{libgtk} = %{EVRD}

%description -n %{girgtk}
GObject Introspection interface description for GData.

%files -n %{girgtk}
%{_libdir}/girepository-1.0/GtkChamplain-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libgtk} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girgtk} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc NEWS demos/launcher.c
%{_datadir}/gir-1.0/Champlain-%{api}.gir
%{_datadir}/gir-1.0/GtkChamplain-%{api}.gir
%{_datadir}/gtk-doc/html/%{oname}-%{api}
%{_datadir}/vala/vapi/champlain*-%{api}.deps
%{_datadir}/vala/vapi/champlain*-%{api}.vapi
%{_includedir}/%{oname}-%{api}/%{oname}/*.h
%{_includedir}/%{oname}-%{api}/%{oname}-gtk/*.h
%{_libdir}/%{name}-%{api}.so
%{_libdir}/%{name}-gtk-%{api}.so
%{_libdir}/pkgconfig/%{oname}-%{api}.pc
%{_libdir}/pkgconfig/%{oname}-gtk-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dgtk_doc=true \
	-Dmemphis=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14002 |21mr|libchewing-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname chewing %{major}
%define devname %mklibname chewing -d

Name:		libchewing
Summary:	The intelligent phonetic input method library
Epoch:		1
Version:	0.5.1
Release:	1
License:	LGPLv2+
Group:		System/Internationalization
Source0:	https://github.com/chewing/libchewing/releases/download/v%{version}/%{name}-%{version}.tar.bz2
Url:		http://chewing.csie.net/
BuildRequires:	pkgconfig(sqlite3)

%description
libchewing is an intelligent Chinese phonetic input method library
which is also know as Qooing. Based on Chewing input method.

#----------------------------------------------------------------------------

%package data
Summary:	Data for Libchewing
Group:		System/Internationalization

%description data
libchewing is an intelligent Chinese phonetic input method library
which is also know as Qooing. Based on Chewing input method.

This package contains data files from libchewing.

%files data
%doc COPYING
%{_datadir}/libchewing
%{_infodir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The intelligent phonetic input method library
Group:		System/Internationalization
Requires:	%{name}-data
Provides:	%{name} = %{EVRD}

%description -n %{libname}
libchewing is an intelligent Chinese phonetic input method library
which is also know as Qooing. Based on Chewing input method.

This package contains the basic libchewing library.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of libchewing for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel= %{EVRD}

%description -n %{devname}
libchewing is an intelligent Chinese phonetic input method library
which is also know as Qooing. Based on Chewing input method.

This package contains library and headers necessary for development
related to Chewing input method. You also need it if you want to
compile any input server that supports Chewing input method.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog NEWS 
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14003 |21mr|libchipcard-5.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname chipcard %{major}
%define devname %mklibname chipcard -d

Summary:	A library for easy access to smart cards (chipcards)
Name:		libchipcard
Version:	5.0.4
Release:	5
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.aquamaniac.de/sites/libchipcard/index.php
Source0:	https://github.com/aqbanking/libchipcard/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gwenhywfar)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(zlib)
Requires(post,preun):	rpm-helper

%description
Libchipcard allows easy access to smart cards. It provides basic access
to memory and processor cards and has special support for German medical
cards, German "Geldkarten" and HBCI (homebanking) cards (both type 0 and 
type 1).

It accesses the readers via CTAPI or PC/SC interfaces and has successfully
been tested with Towitoko, Kobil and Reiner-SCT readers.

This package contains the chipcard3-daemon needed to access card readers.

%files
%doc README COPYING ChangeLog
%{_sysconfdir}/chipcard
%{_bindir}/cardcommander
%{_bindir}/chipcard-tool
%{_bindir}/geldkarte
%{_bindir}/kvkcard
%{_bindir}/memcard
%{_datadir}/chipcard
%{_libdir}/gwenhywfar/plugins/*/ct

%post
%_post_service chipcardd

%preun
%_preun_service chipcardd

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for easy access to smart cards (chipcards)
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
Libchipcard allows easy access to smart cards. It provides basic access
to memory and processor cards and has special support for German medical
cards, German "Geldkarten" and HBCI (homebanking) cards (both type 0 and 
type 1).

It accesses the readers via CTAPI or PC/SC interfaces and has successfully
been tested with Towitoko, Kobil and Reiner-SCT readers.

This package contains the chipcard3-daemon needed to access card readers.

%files -n %{libname}
%{_libdir}/libchipcard.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	LibChipCard server development kit
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description  -n %{devname}
This package contains chipcard3-server-config and header files for writing 
drivers, services or even your own chipcard daemon for LibChipCard.

%files -n %{devname}
%doc README COPYING ChangeLog
%{_libdir}/*.so
%{_bindir}/chipcard-config
%{_includedir}/*
%{_datadir}/aclocal/chipcard.m4

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--with-pcsc-libs=%{_libdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14004 |21mr|libclc-0.2.0-0.20210820.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20210820
# create archive
# git clone https://git.llvm.org/git/libclc.git
# export PKG=libclc-$(date +%Y%m%d)
# git archive --prefix $PKG/ --format tar HEAD | xz > $PKG.tar.xz

Summary:	Implementation of the library of the OpenCL C programming language
Name:		libclc
Version:	0.2.0
%if 0%{git}
Release:	0.%{git}.1
Source0:	%{name}-%{git}.tar.xz
%else
Release:	1
Source0:	%{name}-%{version}.tar.xz
%endif
Source1:	%{name}.rpmlintrc
Group:		Development/Other
License:	MIT
Url:		http://libclc.llvm.org/
BuildArch:	noarch
BuildRequires:	clang >= 3.9
BuildRequires:	llvm >= 3.9
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	llvm-devel >= 3.9
BuildRequires:	spirv-llvm-tools

%description
libclc is an open source, BSD/MIT dual licensed implementation of the library
requirements of the OpenCL C programming language, as specified by the
OpenCL 1.1 Specification.
The following sections of the specification impose library requirements:

    6.1:	Supported Data Types
    6.2.3:	Explicit Conversions
    6.2.4.2:	Reinterpreting Types Using as_type() and as_typen()
    6.9:	Preprocessor Directives and Macros
    6.11:	Built-in Functions
    9.3:	Double Precision Floating-Point
    9.4:	64-bit Atomics
    9.5:	Writing to 3D image memory objects
    9.6:	Half Precision Floating-Point 

libclc is intended to be used with the Clang compiler's OpenCL frontend.

libclc is designed to be portable and extensible. To this end, it provides
generic implementations of most library requirements, allowing the target
to override the generic implementation at the granularity of individual
functions.

%files
%{_includedir}/clc
%{_datadir}/clc
%{_datadir}/pkgconfig/*

#----------------------------------------------------------------------------
%prep
%autosetup -n %{name}-%{git} -p1

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14005 |21mr|libcmis-0.5.2-3.f264a6.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.5
%define major 5
%define libname %mklibname cmis %{api} %{major}
%define libcmis_c %mklibname cmis-c %{api} %{major}
%define devname %mklibname -d cmis

%define commit f264a61b4cc0e6bb34a03172cc974b8b888fe71a
%define commit_short %(echo %{commit} | head -c6)

Summary:	A C++ client library for the CMIS interface
Name:		libcmis
Version:	0.5.2
Release:	3.%{commit_short}.1
License:	GPLv2+ or LGPLv2+ or MPLv1.1
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libcmis/
Source0:	https://github.com/tdf/libcmis/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	docbook2x
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
#BuildRequires:	xmlto

%description
LibCMIS is a C++ client library for the CMIS interface. This allows C++
applications to connect to any ECM behaving as a CMIS server like
Alfresco, Nuxeo for the open source ones.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Text categorization library
Group:		System/Libraries

%description -n %{libname}
LibCMIS is a C++ client library for the CMIS interface. This allows C++
applications to connect to any ECM behaving as a CMIS server like
Alfresco, Nuxeo for the open source ones.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcmis_c}
Summary:	Text categorization library
Group:		System/Libraries

%description -n %{libcmis_c}
This package contains a shared library for %{name}.

%files -n %{libcmis_c}
%{_libdir}/%{name}-c-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libcmis_c} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc AUTHORS COPYING.GPL COPYING.LGPL COPYING.MPL NEWS
%{_includedir}/%{name}-%{api}
%{_includedir}/%{name}-c-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/%{name}-c-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-c-%{api}.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Command line tool to access CMIS
Group:		Publishing

%description tools
The %{name}-tools package contains a tool for accessing CMIS from the
command line.

%files tools
%{_bindir}/cmis-client
#{_mandir}/manx/cmis-client.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}
./autogen.sh
sed -i -e 's/docbook-to-man/db2x_docbook2man/' configure

%build
%configure \
	--disable-static \
	--disable-tests \
	--disable-werror \
	--with-man=no

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14006 |21mr|libcomps-0.1.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with docs

%define major 0
%define libname %mklibname comps %{major}
%define devname %mklibname comps -d

Name:		libcomps
Version:	0.1.18
Release:	2
Summary:	Comps XML file manipulation library
Group:		System/Libraries
License:	GPLv2+
URL:		https://github.com/rpm-software-management/libcomps
Source0:	https://github.com/rpm-software-management/libcomps/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Filters out rpmlint warnings
Source1:	libcomps.rpmlintrc
Patch0:		e2k-fix-inline.patch
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	cmake
BuildRequires:	python3-setuptools
%if %{with docs}
BuildRequires:	doxygen
BuildRequires:	graphviz
%endif

# prevent provides from nonstandard paths:
%define __provides_exclude_from ^%{python3_sitearch}/.*\\.so$

%description
Libcomps is library for structure-like manipulation with content of
comps XML files. Supports read/write XML file, structure(s) modification.

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries for %{name}.

%package -n %{devname}
Summary:	Development files for libcomps library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%if %{with docs}
%package doc
Summary:	Documentation files for libcomps library
Group:		Documentation
Requires:	%{name}-devel = %{EVRD}
BuildArch:	noarch
BuildRequires:	doxygen

%description doc
Documentation files for libcomps library.

%package -n python-libcomps-doc
Summary:	Documentation files for python bindings libcomps library
Group:		Documentation
Requires:	python-%{name} = %{EVRD}
BuildArch:	noarch
BuildRequires:	python3-sphinx

%description -n python-libcomps-doc
Documentation files for python bindings libcomps library.
%endif

%package -n python3-libcomps
Summary:	Python 3 bindings for libcomps library
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
Requires:	%{libname} = %{EVRD}

%description -n python3-libcomps
Python3 bindings for libcomps library.

%prep
%setup -n %{name}-%{version}
%patch0 -p1

%build
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
%if %{without docs}
	-DENABLE_DOCS=OFF \
%endif
	-DENABLE_TESTS=OFF \
	../libcomps/

%make
%if %{with docs}
make docs
make pydocs
%endif

# (tpg) disable tests for now https://github.com/rpm-software-management/libcomps/issues/60
%if 0
%check
cd ./build
make test
cd -
%endif

%install
%makeinstall_std -C build

%files -n %{libname}
%{_libdir}/libcomps.so.%{major}*

%files -n %{devname}
%doc README.md COPYING
%{_libdir}/libcomps.so
%{_libdir}/pkgconfig/libcomps.pc
%{_includedir}/*

%if %{with docs}
%files doc
%doc build/docs/libcomps-doc/html

%files -n python-libcomps-doc
%doc build/src/python/docs/html
%endif

%files -n python3-libcomps
%{python3_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14007 |21mr|libcomps-0.1.18-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with docs

%define major 0
%define libname %mklibname comps %{major}
%define devname %mklibname comps -d

Name:		libcomps
Version:	0.1.18
Release:	4
Summary:	Comps XML file manipulation library
Group:		System/Libraries
License:	GPLv2+
URL:		https://github.com/rpm-software-management/libcomps
Source0:	https://github.com/rpm-software-management/libcomps/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Filters out rpmlint warnings
Source1:	libcomps.rpmlintrc
Patch0:		e2k-fix-inline.patch
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	cmake
BuildRequires:	python3-setuptools
%if %{with docs}
BuildRequires:	doxygen
BuildRequires:	graphviz
%endif

# prevent provides from nonstandard paths:
%define __provides_exclude_from ^%{python3_sitearch}/.*\\.so$

%description
Libcomps is library for structure-like manipulation with content of
comps XML files. Supports read/write XML file, structure(s) modification.

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries for %{name}.

%package -n %{devname}
Summary:	Development files for libcomps library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%if %{with docs}
%package doc
Summary:	Documentation files for libcomps library
Group:		Documentation
Requires:	%{name}-devel = %{EVRD}
BuildArch:	noarch
BuildRequires:	doxygen

%description doc
Documentation files for libcomps library.

%package -n python-libcomps-doc
Summary:	Documentation files for python bindings libcomps library
Group:		Documentation
Requires:	python-%{name} = %{EVRD}
BuildArch:	noarch
BuildRequires:	python3-sphinx

%description -n python-libcomps-doc
Documentation files for python bindings libcomps library.
%endif

%package -n python3-libcomps
Summary:	Python 3 bindings for libcomps library
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
Requires:	%{libname} = %{EVRD}

%description -n python3-libcomps
Python3 bindings for libcomps library.

%prep
%setup -n %{name}-%{version}
%patch0 -p1

%build
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
%if %{without docs}
	-DENABLE_DOCS=OFF \
%endif
	-DENABLE_TESTS=OFF \
	../libcomps/

%make
%if %{with docs}
make docs
make pydocs
%endif

# (tpg) disable tests for now https://github.com/rpm-software-management/libcomps/issues/60
%if 0
%check
cd ./build
make test
cd -
%endif

%install
%makeinstall_std -C build

%files -n %{libname}
%{_libdir}/libcomps.so.%{major}*

%files -n %{devname}
%doc README.md COPYING
%{_libdir}/libcomps.so
%{_libdir}/pkgconfig/libcomps.pc
%{_includedir}/*

%if %{with docs}
%files doc
%doc build/docs/libcomps-doc/html

%files -n python-libcomps-doc
%doc build/src/python/docs/html
%endif

%files -n python3-libcomps
%{python3_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14008 |21mr|libconfig-1.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname config %{major}
%define libxx %mklibname config++ %{major}
%define devname %mklibname config -d

Summary:	Configuration file parsing library
Name:		libconfig
Version:	1.7.3
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.hyperrealm.com/libconfig/
Source0:	https://github.com/hyperrealm/libconfig/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	texinfo

%description
Libconfig is a library to provide easy access to configuration
data in a consistent and logical manner. Variables (registered
through lc_register_var(3) or lc_register_callback(3)) are
processed with the lc_process(3) function. Errors can be examined
through lc_geterrno(3) and lc_geterrstr(3).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Configuration file parsing library
Group:		System/Libraries

%description -n %{libname}
Libconfig is a library to provide easy access to configuration
data in a consistent and logical manner. Variables (registered
through lc_register_var(3) or lc_register_callback(3)) are
processed with the lc_process(3) function. Errors can be examined
through lc_geterrno(3) and lc_geterrstr(3).

%files -n %{libname}
%{_libdir}/libconfig.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libxx}
Summary:	Configuration file parsing library
Group:		System/Libraries
Conflicts:	%{_lib}config9 < 1.4.8

%description -n %{libxx}
libconfig++ is a consistent configuration library.

%files -n %{libxx}
%{_libdir}/libconfig++.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libxx} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development %{name} libraries and its header
files.

%files -n %{devname}
%doc README
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_infodir}/*
%{_libdir}/cmake/libconfig++/libconfig++Config.cmake
%{_libdir}/cmake/libconfig/libconfigConfig.cmake


#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14009 |21mr|libconfuse-3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname confuse %{major}
%define devname %mklibname confuse -d

Summary:	A library for parsing configuration files in C
Name:		libconfuse
Version:	3.3
Release:	2
License:	ISC
Group:		System/Libraries
Url:		http://www.nongnu.org/confuse/
Source0:	https://github.com/martinh/libconfuse/releases/download/v%{version}/confuse-%{version}.tar.xz
Conflicts:	%{_lib}confuse0 < 2.7-4

%description
libConfuse is a configuration file parser library, licensed under the terms
of the ISC license, and written in C. It supports sections and (lists of)
values (strings, integers, floats, booleans or other sections), as well as
some other features (such as single/double-quoted strings, environment
variable expansion, functions and nested include statements). It makes it
very easy to add configuration file capability to a program using a simple
API.

The goal of libConfuse is not to be the configuration file parser library
with a gazillion of features. Instead, it aims to be easy to use and quick
to integrate with your code. libConfuse was called libcfg before, but was
changed to not confuse with other similar libraries. 

%files -f confuse.lang
%{_docdir}/confuse/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library of functions for parsing configuration files in C
Group:		System/Libraries
Recommends:	%{name}

%description -n %{libname}
libConfuse is a configuration file parser library, licensed under the terms
of the ISC license, and written in C. It supports sections and (lists of)
values (strings, integers, floats, booleans or other sections), as well as
some other features (such as single/double-quoted strings, environment
variable expansion, functions and nested include statements). It makes it
very easy to add configuration file capability to a program using a simple
API.

The goal of libConfuse is not to be the configuration file parser library
with a gazillion of features. Instead, it aims to be easy to use and quick
to integrate with your code. libConfuse was called libcfg before, but was
changed to not confuse with other similar libraries.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libconfuse.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the %{name} library
Group:		Development/C
Provides:	confuse-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}confuse0 < 2.7-4

%description -n %{devname}
Development library and header files for the %{name} library

%files -n %{devname}
%doc doc/html/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n confuse-%{version}

%build
%configure \
	--enable-shared \
	--disable-static \
	--disable-rpath

%make

%install
%makeinstall_std

install -d %{buildroot}%{_mandir}/man3
install -m0644 doc/man/man3/*.3 %{buildroot}%{_mandir}/man3/

%find_lang confuse

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14010 |21mr|libcroco0.6-0.6.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	libcroco
%define api	0.6
%define major	3
%define libname	%mklibname croco%{api}_ %{major}
%define devname	%mklibname croco%{api} -d

Name:		%{oname}%{api}
Summary:	CSS2 parser library
Version:	0.6.13
Release:	1
License:	LGPLv2
Group:		System/Libraries
URL:		http://savannah.nongnu.org/projects/libcroco
Source0:	https://github.com/GNOME/libcroco/archive/%{version}.tar.gz

BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	gtk-doc

%description
libcroco is a standalone css2 parsing library.
It provides a low level event driven SAC like api
and a css object model like api.

%package -n %{libname}
Summary:	CSS2 parser library
Group:		System/Libraries

%description -n %{libname}
libcroco is a standalone css2 parsing library.
It provides a low level event driven SAC like api
and a css object model like api.

%package -n %{devname}
Summary:	Libraries and include files for developing with libcroco
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname croco0.6_3 -d} < 0.6.5

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with libcroco?

%package utils
Summary:	Example apps based on libcroco for working with CSS files
Group:		Text tools

%description utils
This contains the example apps that come with libcroco. At the moment this is
csslint, a Cascading Style Sheets checker.

%prep
%setup -qn %{oname}-%{version}

%build
touch gtk-doc.make
autoreconf -fiv
%configure \
	--disable-gtk-doc \
	--disable-static

%make_build

%install
%makeinstall_std

%files utils
%doc README AUTHORS COPYING COPYING.LIB NEWS
%{_bindir}/csslint-%{api}

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%{_bindir}/croco-%{api}-config
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14011 |21mr|libcuckoo-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define devname %mklibname cuckoo -d

Name:		libcuckoo
Version:	0.3.1
Release:	2
Source0:	https://github.com/efficient/libcuckoo/archive/refs/tags/v%{version}.tar.gz
Summary:	Hash table that allows multiple concurrent reader and writer threads
URL:		https://github.com/efficient/libcuckoo
License:	Apache-2.0
Group:		System/Libraries
BuildRequires:	cmake ninja
# This is a headers-only library
BuildArch: noarch

%description
libcuckoo provides a high-performance, compact hash table that allows multiple
concurrent reader and writer threads.

#-----------------------------------------------------------------

%package -n %{devname}
Summary: Hash table that allows multiple concurrent reader and writer threads
Group: Development/C
Provides:	name-devel = %{EVRD}

%description -n %{devname}
libcuckoo provides a high-performance, compact hash table that allows multiple
concurrent reader and writer threads.

%files -n %{devname}
%{_includedir}/*
%{_datadir}/cmake/*

#-----------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14012 |21mr|libcue-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname cue %major
%define	develname %mklibname -d cue 

Summary:	Cuesheet parser library
Name:		libcue
Version:	2.3.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/lipnitsk/libcue
Source0:	https://github.com/lipnitsk/libcue/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	flex

%description
This is a library for parsing cue sheets which describe audio CD images. They
are useful for gapless music playback.

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Cuesheet parser library

%description -n %{libname}
This is a library for parsing cue sheets which describe audio CD images. They
are useful for gapless music playback.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{develname}
Group:		Development/C
Summary:	Cuesheet parser library
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
This is a library for parsing cue sheets which describe audio CD images.
This package contains the files needed to develop programs using %{name}.

%files -n %{develname}
%doc ChangeLog README.md
%license LICENSE
%{_includedir}/%{name}.h
%{_includedir}/%{name}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DBUILD_SHARED_LIBS=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14013 |21mr|libcupsfilters-2.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname cupsfilters %{major}
%define devname %mklibname cupsfilters -d

%if %{mdvver} >= 202310
%define gs_path %{_bindir}/gsc
%else
# abf.io/import/ghostscript10
# https://github.com/OpenPrinting/cups-filters/commit/531505b
%define gs_path %{_bindir}/gsc10
%endif

Summary:	Library for developing printer drivers, filters and applications
Name:		libcupsfilters
Version:	2.0.0
Release:	6
License:	Apache 2.0
Group:		System/Printing
Url:		https://github.com/OpenPrinting/libcupsfilters
Source0:	https://github.com/OpenPrinting/libcupsfilters/releases/download/%{version}/libcupsfilters-%{version}.tar.gz
# For generating configure and Makefile scripts in autogen.h
BuildRequires: autoconf
# For generating configure and Makefile scripts in autogen.h
BuildRequires: automake
# Most filter functions written in C
BuildRequires: gcc
# pdftopdf written in C++
BuildRequires: gcc-c++
# For generating configure and Makefile scripts in autogen.h
BuildRequires: gettext-devel
# Using in filter functions on runtime
BuildRequires: %{gs_path}
# CUPS and IPP API functions
# At git of cups-filter specifies the minimum version of cups:
# "This version of cups-filters is only for CUPS 2.2.2 or newer"
# At git of libcupsfilters specifies the minimum version of cups: 2.x
BuildRequires: pkgconfig(cups) >= 2.2.2
# Using for colord support
BuildRequires: pkgconfig(dbus-1)
# Fonts configuring and customizing (required from version 1.0)
BuildRequires: pkgconfig(fontconfig)
# Color management engine in rastering filter functions
# (based on the CHANGES-1.x.md, required from version 1.0b1)
BuildRequires: pkgconfig(lcms2)
# support for reading the resolution of an image from its EXIF data when loading it
# (required from version 1.28.16, details at https://github.com/OpenPrinting/cups-filters/issues/362)
BuildRequires: pkgconfig(libexif)
# JPEG file format support
BuildRequires: pkgconfig(libjpeg)
# PNG file format support
BuildRequires: pkgconfig(libpng)
# PDF filter functions
BuildRequires: pkgconfig(libqpdf)
# TIFF image support
BuildRequires: pkgconfig(libtiff-4)
# For pdftoraster filter
BuildRequires: pkgconfig(poppler-cpp)

%description
This package provides the libcupsfilters library, which in its 2.x version
contains all the code of the filters of the former cups-filters package as
library functions, the so-called filter functions.

The filter functions are principally intended to be used for the data
format conversion tasks needed in Printer Applications. In addition to
the filter functions libcupsfilters also contains several API functions
useful for developing printer drivers/Printer Applications, like image
and raster graphics handling, make/model/device ID matching etc.

#----------------------------------------------------------------------------

%package data
Summary:	Data files for libcupsfilters
BuildArch:	noarch
Requires:	%{libname} = %{EVRD}
Conflicts:	cups-filters < 2.0

%description data
Data files for libcupsfilters (%{libname})

%files data
%license COPYING LICENSE NOTICE
%doc AUTHORS CHANGES.md CHANGES-1.x.md README.md
%dir %{_datadir}/cups/banners
%{_datadir}/cups/banners/classified
%{_datadir}/cups/banners/confidential
%{_datadir}/cups/banners/form
%{_datadir}/cups/banners/secret
%{_datadir}/cups/banners/standard
%{_datadir}/cups/banners/topsecret
%{_datadir}/cups/banners/unclassified
%dir %{_datadir}/cups/charsets
%{_datadir}/cups/charsets/pdf.utf-8
%{_datadir}/cups/charsets/pdf.utf-8.heavy
%{_datadir}/cups/charsets/pdf.utf-8.simple
%{_datadir}/cups/data/classified.pdf
%{_datadir}/cups/data/confidential.pdf
%{_datadir}/cups/data/default-testpage.pdf
%{_datadir}/cups/data/default.pdf
%{_datadir}/cups/data/form_english.pdf
%{_datadir}/cups/data/form_russian.pdf
%{_datadir}/cups/data/*.odt
%{_datadir}/cups/data/secret.pdf
%{_datadir}/cups/data/standard.pdf
%{_datadir}/cups/data/testprint
%{_datadir}/cups/data/topsecret.pdf
%{_datadir}/cups/data/unclassified.pdf

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%license COPYING LICENSE NOTICE
%doc CONTRIBUTING.md DEVELOPING.md
%dir %{_includedir}/cupsfilters
%{_includedir}/cupsfilters/*
%{_libdir}/libcupsfilters.so
%{_libdir}/pkgconfig/libcupsfilters.pc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library files for %{name}
Group:		System/Libraries
Requires:	%{gs_path}
Requires:	libcupsfilters-data
# compat with Fedora/RH
Provides:	libcupsfilters = %{EVRD}
Provides:	libcupsfilters%{_isa} = %{EVRD}

%description -n %{libname}
Shared library files for %{name}

%files -n %{libname}
%license COPYING LICENSE NOTICE
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh

%configure \
	--disable-static \
	--disable-silent-rules \
	--disable-mutool \
	--with-gs-path=%{gs_path} \
	--disable-rpath \
	--enable-dbus

%make_build

%install
%make_install

# Removing unnecessary files
rm -rf %{buildroot}/usr/share/doc/libcupsfilters

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14014 |21mr|libcxx-12.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# If you need to bootstrap this, turn this on.
# Otherwise, you have a loop with libcxxabi
%bcond_with bootstrap

%define major 1
%define libname %mklibname c++ %{major}
%define devname %mklibname c++ -d
%define sdevname %mklibname c++ -d -s

%bcond_without git

Summary:	C++ standard library targeting C++11
Name:		libcxx
Version:	12.0.1
Release:	2
License:	MIT or NCSA
Group:		System/Libraries
Url:		http://libcxx.llvm.org
%if %{with git}
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxx-%{version}.src.tar.xz
%else
Source0:	http://releases.llvm.org/%{version}/libcxx-%{version}.src.tar.xz
%endif
Patch0:		0001-libcxx-Remove-monorepo-requirement.patch
BuildRequires:	cmake
BuildRequires:	llvm-devel
%if %{without bootstrap}
BuildRequires:	python3
BuildRequires:	libcxxabi-devel
%endif

%description
libc++ is a new implementation of the C++ standard library, targeting C++11.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ standard library targeting C++11
Group:		System/Libraries

%description -n %{libname}
libc++ is a new implementation of the C++ standard library, targeting C++11.

%files -n %{libname}
%doc CREDITS.TXT LICENSE.TXT TODO.TXT
%{_libdir}/libc++.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for libcxx development
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for a new implementation of the C++ standard library,
targeting C++11.

%files -n %{devname}
%doc CREDITS.TXT LICENSE.TXT TODO.TXT
%{_includedir}/libcxx-internal/
%{_includedir}/c++/
%{_libdir}/libc++*.so
#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for libcxx development
Group:		Development/C++
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static version of a new implementation of the C++ standard library,
targeting C++11.

%files -n %{sdevname}
%doc CREDITS.TXT LICENSE.TXT TODO.TXT
%{_libdir}/libc++*.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}.src
%patch0 -p1
%ifarch %{e2k}
sed -i 's/-Werror=return-type/-Wreturn-type/' CMakeLists.txt
%endif

%build
export LDFLAGS="-Wl,--build-id"
# Clang in older releases than f24 can't build this code without crashing.
# So, we use gcc there. But the really old version in RHEL 6 works. Huh.
%cmake \
	-DCMAKE_C_COMPILER=%{_bindir}/gcc \
	-DCMAKE_CXX_COMPILER=%{_bindir}/g++ \
	-DLIBCXX_STANDALONE_BUILD=ON \
%if %{without bootstrap}
	-DLIBCXX_CXX_ABI=libcxxabi \
	-DLIBCXX_CXX_ABI_INCLUDE_PATHS=%{_includedir} \
	-DPYTHONINTERP_FOUND=ON \
	-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
	-DLIBCXX_ENABLE_ABI_LINKER_SCRIPT=ON \
	-DLIBCXX_ENABLE_EXPERIMENTAL_LIBRARY=ON \
%endif
%if 0%{?__isa_bits} == 64
	-DLIBCXX_LIBDIR_SUFFIX:STRING=64 \
%endif
	-DCMAKE_BUILD_TYPE=RelWithDebInfo

%make -s

%install
%makeinstall_std -C build

# Install header files that libcxxabi needs
mkdir -p %{buildroot}%{_includedir}/libcxx-internal/
install -m 0644 src/include/* %{buildroot}%{_includedir}/libcxx-internal/





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14015 |21mr|libcxxabi-12.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname c++abi %{major}
%define devname %mklibname c++abi -d
%define sdevname %mklibname c++abi -d -s

%bcond_without git

Summary:	Low level support for a standard C++ library
Name:		libcxxabi
Version:	12.0.1
Release:	1
License:	MIT or NCSA
Group:		System/Libraries
Url:		http://libcxxabi.llvm.org
%if %{with git}
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/libcxxabi-%{version}.src.tar.xz
%else
Source0:	http://releases.llvm.org/%{version}/libcxxabi-%{version}.src.tar.xz
%endif
Patch0:		0001-libcxxabi-Remove-monorepo-requirement.patch
Patch1:		0001-PATCH-libcxxabi-Include-refstring.h-from-system-incl.patch
BuildRequires:	cmake
BuildRequires:	llvm-devel
BuildRequires:	libcxx-devel >= %{version}

%description
libcxxabi provides low level support for a standard C++ library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Low level support for a standard C++ library
Group:		System/Libraries

%description -n %{libname}
libcxxabi provides low level support for a standard C++ library.

%files -n %{libname}
%doc CREDITS.TXT LICENSE.TXT
%{_libdir}/libc++abi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for libcxxabi development
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for low level support for a standard C++ library.

%files -n %{devname}
%doc CREDITS.TXT LICENSE.TXT
%{_includedir}/*.h
%{_libdir}/libc++abi.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libcxxabi library
Group:		Development/C++
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static libcxxabi library

%files -n %{sdevname}
%doc CREDITS.TXT LICENSE.TXT
%{_libdir}/libc++abi.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}.src
%patch0 -p1
%patch1 -p2

sed -i 's|${LLVM_BINARY_DIR}/share/llvm/cmake|%{_libdir}/cmake/llvm|g' CMakeLists.txt

%build
export LDFLAGS="-Wl,--build-id"
%cmake \
	-DCMAKE_C_COMPILER=%{_bindir}/gcc \
	-DCMAKE_CXX_COMPILER=%{_bindir}/g++ \
	-DLLVM_CONFIG=%{_bindir}/llvm-config \
	-DLIBCXXABI_LIBCXX_INCLUDES=%{_includedir}/c++/v1/ \
%if 0%{?__isa_bits} == 64
	-DLIBCXXABI_LIBDIR_SUFFIX:STRING=64 \
%endif
	-DCMAKE_BUILD_TYPE=RelWithDebInfo

%make -s

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_includedir}
cp -a include/*.h %{buildroot}%{_includedir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14016 |21mr|libdaemon-0.14-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname daemon %{major}
%define devname %mklibname daemon -d

Summary:	Lightweight C library which eases the writing of UNIX daemons
Name:		libdaemon
Version:	0.14
Release:	13
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://0pointer.de/lennart/projects/libdaemon
Source0:	http://0pointer.de/lennart/projects/libdaemon/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	lynx

%description
libdaemon is a lightweight C library which eases the writing of UNIX daemons.
It consists of the following parts:
    * A wrapper around fork() which does the correct daemonization procedure
      of a process
    * A wrapper around syslog() for simpler and compatible log output to
      Syslog or STDERR
    * An API for writing PID files
    * An API for serializing UNIX signals into a pipe for usage with
      select() or poll()

Routines like these are included in most of the daemon software available. It
is not that simple to get it done right and code duplication cannot be a goal.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries
Provides:	daemon = %{EVRD}

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/libdaemon.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	daemon-devel = %{EVRD}
Obsoletes:	%{libname}-devel < 0.14-6

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc README
%{_includedir}/%{name}
%{_libdir}/libdaemon.so
%{_libdir}/pkgconfig/libdaemon.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

#(tpg) useless
rm -rf %{buildroot}%{_datadir}/doc/libdaemon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14017 |21mr|libdatrie-0.2.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname datrie %{major}
%define devname %mklibname datrie -d
%define _disable_rebuild_configure %nil

Summary:	Double-array structure for representing trie
Name:		libdatrie
Version:	0.2.13
Release:	1
License:	LGPLv2.1+ and GPLv2+
Group:		System/Libraries
Url:		http://linux.thai.net
Source0:	https://github.com/tlwg/libdatrie/releases/download/v%{version}/%{name}-%{version}.tar.xz

%description
This is an implementation of double-array structure for representing trie.

Trie is a kind of digital search tree, an efficient indexing method with
O(1) time complexity for searching. Comparably as efficient as hashing,
trie also provides flexibility on incremental matching and key spelling
manipulation. This makes it ideal for lexical analyzers, as well as spelling
dictionaries.

#----------------------------------------------------------------------------

%package -n trietool
Summary:	Trie manipulation tool
Group:		Databases

%description -n trietool
Trietool is a trie manipulation tool.

%files -n trietool
%{_bindir}/*
%{_mandir}/man1/trietool*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Double-array structure for representing trie
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This is an implementation of double-array structure for representing trie.

Trie is a kind of digital search tree, an efficient indexing method with
O(1) time complexity for searching. Comparably as efficient as hashing,
trie also provides flexibility on incremental matching and key spelling
manipulation. This makes it ideal for lexical analyzers, as well as spelling
dictionaries.

%files -n %{libname}
%{_libdir}/libdatrie.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Double-array structure for representing trie
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	datrie-devel = %{EVRD}

%description -n %{devname}
This package includes the header files and developer docs for the libdatrie
package.

Install libdatrie-devel if you want to develop programs which will use
libdatrie.

%files -n %{devname}
%doc README AUTHORS NEWS
%{_includedir}/datrie
%{_libdir}/lib*.so
%{_libdir}/lib*.a
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-doxygen-doc --enable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14018 |21mr|libdazzle-3.44.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

%define api 1.0
%define major 0
%define libname %mklibname dazzle %{api} %{major}
%define girname %mklibname dazzle-gir %{api}
%define devname %mklibname dazzle -d

Summary:	Experimental new features for GTK+ and GLib
Name:		libdazzle
Version:	3.44.0
Release:	1
License:	GPLv3+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libdazzle/
Source0:	https://download.gnome.org/sources/libdazzle/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
libdazzle is a collection of fancy features for GLib and Gtk+ that aren't quite
ready or generic enough for use inside those libraries. This is often a proving
ground for new widget prototypes. Applications such as Builder tend to drive
development of this project.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Experimental new features for GTK+ and GLib
Group:		System/Libraries

%description -n %{libname}
libdazzle is a collection of fancy features for GLib and Gtk+ that aren't quite
ready or generic enough for use inside those libraries. This is often a proving
ground for new widget prototypes. Applications such as Builder tend to drive
development of this project.

%files -n %{libname} -f %{name}-%{api}.lang
%doc AUTHORS COPYING NEWS README.md
%{_libdir}/libdazzle-%{api}.so.%{major}

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for Dazzle
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for Dazzle.

%files -n %{girname}
%{_libdir}/girepository-1.0/Dazzle-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc CONTRIBUTING.md examples
%{_bindir}/dazzle-list-counters
%{_datadir}/gir-1.0/Dazzle-%{api}.gir
%{_datadir}/vala/vapi/libdazzle-%{api}.*
%{_includedir}/libdazzle-%{api}/
%{_libdir}/libdazzle-%{api}.so
%{_libdir}/pkgconfig/libdazzle-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson
%meson_build

%install
%meson_install

%find_lang %{name}-%{api} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14019 |21mr|libdbi-0.9.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname dbi %{major}
%define devname %mklibname dbi -d

Summary:	Database Independent Abstraction Layer for C
Name:		libdbi
Version:	0.9.0
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libdbi.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/libdbi/%{name}-%{version}.tar.gz
BuildRequires:	docbook-dtd-sgml
BuildRequires:	docbook-style-dsssl
BuildRequires:	openjade

%description
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Database Independent Abstraction Layer for C
Group:		System/Libraries

%description -n %{libname}
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

%files -n %{libname}
%doc AUTHORS ChangeLog INSTALL README
%{_libdir}/libdbi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	dbi-devel = %{EVRD}
Conflicts:	%{_lib}dbi1 < 0.9.0-4

%description -n %{devname}
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

This package contains the static library and header files.

%files -n %{devname}
%doc README TODO doc/programmers-guide doc/driver-guide doc/*.pdf
%{_includedir}/dbi
%{_libdir}/*.so
%{_libdir}/pkgconfig/dbi.pc

#----------------------------------------------------------------------------

%prep
%setup -q

# fix dir perms
find -type d | xargs chmod 755

%build
%configure --disable-static

%make

%install
%makeinstall_std

# nuke installed docs
rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14020 |21mr|libdbi-drivers-0.9.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Database drivers for libdbi

Name:		libdbi-drivers
Version:	0.9.0
Release:	8
License:	LGPL
Group:		System/Libraries
URL:		http://libdbi-drivers.sourceforge.net/
Source0:	http://downloads.sourceforge.net/libdbi-drivers/%{name}-%{version}.tar.gz
Patch0:		freetds-1.0.patch
Patch1:		libdbi-drivers-sqlite3_libs.patch
Patch2:		libdbi-drivers-0.8.3-automake-1.13.patch
BuildRequires:	libtool
BuildRequires:	autoconf
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRequires:	sqlite3-devel
BuildRequires:	freetds-devel >= 0.62.4
BuildRequires:	dbi-devel >= 0.8.3
BuildRequires:	openjade
BuildRequires:	docbook-style-dsssl
BuildRequires:	docbook-dtd41-sgml
BuildRequires:	pkgconfig(zlib)

%description
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

%package	dbd-mysql
Summary:	MySQL driver for libdbi

Group:		System/Libraries

%description	dbd-mysql
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

This driver provides connectivity to MySQL database servers through the libdbi
database independent abstraction layer. Switching a program's driver does not
require recompilation or rewriting source code.

%package	dbd-pgsql
Summary:	PostgreSQL driver for libdbi

Group:		System/Libraries

%description	dbd-pgsql
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

This driver provides connectivity to PostgreSQL database servers through the
libdbi database independent abstraction layer. Switching a program's driver
does not require recompilation or rewriting source code.

%package	dbd-sqlite3
Summary:	SQLite3 driver for libdbi

Group:		System/Libraries

%description	dbd-sqlite3
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

This driver provides connectivity to SQLite3 database servers through the
libdbi database independent abstraction layer. Switching a program's driver
does not require recompilation or rewriting source code.

%package	dbd-freetds
Summary:	MSSQL (FreeTDS) driver for libdbi

Group:		System/Libraries

%description	dbd-freetds
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

This driver provides connectivity to MSSQL database servers through the libdbi
database independent abstraction layer. Switching a program's driver does not
require recompilation or rewriting source code.

%package	devel
Summary:	Static library and header files for the %{name} library drivers

Group:		Development/C
Provides:	%{name}-drivers-devel
Requires:	dbi-devel >= 0.8.2

%description	devel
libdbi implements a database-independent abstraction layer in C, similar to the
DBI/DBD layer in Perl. Writing one generic set of code, programmers can
leverage the power of multiple databases and multiple simultaneous database
connections by using this framework.

This package contains the static libraries and header files.

%prep
%setup -qn %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

# fix dir perms
find -type d | xargs chmod 755

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" acinclude.m4

%build
#need for freetds-1.0.patch
sh autogen.sh

%configure \
    --enable-shared \
    --enable-static \
    --with-mysql \
    --with-pgsql \
    --with-sqlite3 \
    --with-freetds \
    --with-freetds-incdir=%{_includedir} \
    --with-freetds-libdir=%{_libdir} \
    --with-dbi-incdir=%{_includedir}/dbi \
    --with-dbi-libdir=%{_libdir}

%make

%install
%makeinstall_std

# install development headers
install -d %{buildroot}%{_includedir}/dbi
install -m0644 drivers/mysql/dbd_mysql.h %{buildroot}%{_includedir}/dbi/
install -m0644 drivers/pgsql/dbd_pgsql.h %{buildroot}%{_includedir}/dbi/
install -m0644 drivers/sqlite3/dbd_sqlite3.h %{buildroot}%{_includedir}/dbi/
install -m0644 drivers/freetds/dbd_freetds.h %{buildroot}%{_includedir}/dbi/

# fix some docs
cp drivers/mysql/TODO TODO.mysql
cp drivers/pgsql/TODO TODO.pgsql
cp drivers/sqlite3/TODO TODO.sqlite3

# cleanup
rm -rf %{buildroot}%{_docdir}/%{name}*

%files dbd-mysql
%doc drivers/mysql/README
%doc drivers/mysql/AUTHORS
%doc drivers/mysql/dbd_mysql
%doc drivers/mysql/dbd_mysql.pdf
%{_libdir}/dbd/libdbdmysql.so

%files dbd-pgsql
%doc drivers/pgsql/README
%doc drivers/pgsql/AUTHORS
%doc drivers/pgsql/dbd_pgsql
%doc drivers/pgsql/dbd_pgsql.pdf
%{_libdir}/dbd/libdbdpgsql.so

%files dbd-sqlite3
%doc drivers/sqlite3/AUTHORS
%doc drivers/sqlite3/README
%doc drivers/sqlite3/dbd_sqlite3
%doc drivers/sqlite3/dbd_sqlite3.pdf
%{_libdir}/dbd/libdbdsqlite3.so

%files dbd-freetds
%doc drivers/freetds/README
%{_libdir}/dbd/libdbdfreetds.so

%files devel
%doc AUTHORS ChangeLog INSTALL README TODO*
%{_libdir}/dbd/*.a
%{_includedir}/dbi/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14021 |21mr|libdbusmenu-16.04.1-18.10.20180917
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.4
%define major 4
%define libname %mklibname dbusmenu-glib %{major}
%define girname %mklibname dbusmenu-gir %{api}
%define devname %mklibname dbusmenu-glib -d

%define libgtk %mklibname dbusmenu-gtk %{major}
%define girgtk %mklibname dbusmenu-gtk-gir %{api}
%define devgtk %mklibname dbusmenu-gtk -d

%define libgtk3 %mklibname dbusmenu-gtk3_ %{major}
%define girgtk3 %mklibname dbusmenu-gtk3-gir %{api}
%define devgtk3 %mklibname dbusmenu-gtk3 -d

%define libjson %mklibname dbusmenu-jsonloader %{major}
%define devjson %mklibname dbusmenu-jsonloader -d

Summary:	Library for applications to pass a menu scructure accross DBus
Name:		libdbusmenu
Version:	16.04.1
Release:	18.10.20180917
License:	LGPLv3+
Group:		System/Libraries
Url:		https://launchpad.net/dbusmenu
Source0:	https://launchpad.net/ubuntu/+archive/primary/+sourcefiles/libdbusmenu/%{version}+%{release}-0ubuntu6/libdbusmenu_%{version}+%{release}.orig.tar.gz
Patch0:		remove_Werror.patch
Patch1:		0002_fix-ftbfs-gtk-doc-1-32.patch
Patch2:		0003_port-tools-dbusmenu-bench-to-py3.patch
Patch3:		0001_no-deprecated-gnome-common-macros.patch
BuildRequires:	intltool
BuildRequires:	vala-tools
#remove gnome-common if build release version
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0) >= 0.13.4
BuildRequires:	pkgconfig(libxml-2.0)
#valgrind not needed for aarch64, see changelog
%ifnarch aarch64
BuildRequires:	pkgconfig(valgrind)
%endif

%description
A small little library that was created by pulling out some comon code
out of indicator-applet. It passes a menu structure across DBus so that
a program can create a menu simply without worrying about how it is
displayed on the other side of the bus.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for applications to pass a menu structure accross DBus
Group:		System/Libraries

%description -n %{libname}
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%files -n %{libname}
%{_libdir}/%{name}-glib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface description for DBus
Group:		System/Libraries

%description -n %{girname}
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%files -n %{girname}
%{_libdir}/girepository-1.0/Dbusmenu-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/libdbusmenu-glib
%dir %{_includedir}/libdbusmenu-glib-%{api}
%{_includedir}/libdbusmenu-glib-%{api}/libdbusmenu-glib
%{_libdir}/libdbusmenu-glib.so
%{_libdir}/pkgconfig/dbusmenu-glib-%{api}.pc
%{_datadir}/gir-1.0/Dbusmenu-%{api}.gir
%{_datadir}/vala/vapi/Dbusmenu-%{api}.vapi

#----------------------------------------------------------------------------

%package -n %{libjson}
Summary:	Library for applications to pass a menu structure accross DBus
Group:		System/Libraries

%description -n %{libjson}
A small little library that was created by pulling out some comon code
out of indicator-applet. It passes a menu structure across DBus so that
a program can create a menu simply without worrying about how it is
displayed on the other side of the bus.

%files -n %{libjson}
%{_libdir}/%{name}-jsonloader.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devjson}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{libjson} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-jsonloader-devel = %{EVRD}

%description -n %{devjson}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n %{devjson}
%{_includedir}/libdbusmenu-glib-%{api}/libdbusmenu-jsonloader
%{_libdir}/libdbusmenu-jsonloader.so
%{_libdir}/pkgconfig/dbusmenu-jsonloader-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{libgtk}
Summary:	Library for applications to pass a menu structure accross DBus
Group:		System/Libraries

%description -n %{libgtk}
A small little library that was created by pulling out some comon code
out of indicator-applet. It passes a menu structure across DBus so that
a program can create a menu simply without worrying about how it is
displayed on the other side of the bus.

%files -n %{libgtk}
%{_libdir}/%{name}-gtk.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girgtk}
Summary:	GObject introspection interface description for DBusGtk
Group:		System/Libraries

%description -n %{girgtk}
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%files -n %{girgtk}
%{_libdir}/girepository-1.0/DbusmenuGtk-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devgtk}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{libgtk} = %{EVRD}
Requires:	%{girgtk} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-gtk-devel = %{EVRD}

%description -n %{devgtk}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n %{devgtk}
%{_includedir}/libdbusmenu-gtk-%{api}/libdbusmenu-gtk
%{_libdir}/libdbusmenu-gtk.so
%{_libdir}/pkgconfig/dbusmenu-gtk-%{api}.pc
%{_datadir}/gir-1.0/DbusmenuGtk-%{api}.gir
%{_datadir}/vala/vapi/DbusmenuGtk-%{api}.vapi

#----------------------------------------------------------------------------

%package -n %{libgtk3}
Summary:	Library for applications to pass a menu structure accross DBus
Group:		System/Libraries

%description -n %{libgtk3}
A small little library that was created by pulling out some comon code
out of indicator-applet. It passes a menu structure across DBus so that
a program can create a menu simply without worrying about how it is
displayed on the other side of the bus.

%files -n %{libgtk3}
%{_libdir}/%{name}-gtk3.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girgtk3}
Summary:	GObject introspection interface description for DBusGtk
Group:		System/Libraries

%description -n %{girgtk3}
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%files -n %{girgtk3}
%{_libdir}/girepository-1.0/DbusmenuGtk3-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devgtk3}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{libgtk3} = %{EVRD}
Requires:	%{girgtk3} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-gtk3-devel = %{EVRD}
Conflicts:	%{_lib}dbusmenu-gtk-devel < 0.6.2-5

%description -n %{devgtk3}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n %{devgtk3}
%doc %{_datadir}/gtk-doc/html/libdbusmenu-gtk
%{_includedir}/libdbusmenu-gtk3-%{api}/libdbusmenu-gtk
%{_libdir}/libdbusmenu-gtk3.so
%{_libdir}/pkgconfig/dbusmenu-gtk3-%{api}.pc
%{_datadir}/gir-1.0/DbusmenuGtk3-%{api}.gir
%{_datadir}/vala/vapi/DbusmenuGtk3-%{api}.vapi


#----------------------------------------------------------------------------

%package tools
Summary:	Tools useful when building applications
Group:		Development/Tools

%description tools
This package contains tools that are useful when building applications. 

%files tools
%{_libexecdir}/dbusmenu-bench
%{_libexecdir}/dbusmenu-dumper
%{_libexecdir}/dbusmenu-testapp
%{_datadir}/%{name}/json/test-gtk-label.json
%{_defaultdocdir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -qc -n gtk2
%autopatch -p1
#mv %{name}-%{version} gtk2
cp -r ./ ../gtk3

%build
CFLAGS="%{optflags} -Wno-error=deprecated-declarations -Wno-error=strict-aliasing"

#pushd ../gtk2
#remove autoreconf if build release version
NOCONFIGURE=1 gnome-autogen.sh
%configure \
	--disable-static \
	--disable-gtk-doc \
	--with-gtk=2
%make_build
#popd

cd ../gtk3
#remove autoreconf if build release version
NOCONFIGURE=1 gnome-autogen.sh
%configure \
	--disable-static \
	--enable-gtk-doc \
	--with-gtk=3
%make_build
cd ../gtk2

%install
%make_install
%make_install -C ../gtk3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14022 |21mr|libdbusmenu-qt-0.9.3-12.16.04.20160218.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define devname %mklibname dbusmenu-qt -d
%define devname5 %mklibname dbusmenu-qt5 -d
%define snap	16.04.20160218

%bcond_without qt4

Summary:	Qt implementation of the DBusMenu spec
Name:		libdbusmenu-qt
Version:	0.9.3
Release:	12.%{snap}.5
License:	GPLv2
Group:		System/Libraries
Url:		https://launchpad.net/libdbusmenu-qt
Source0:	http://archive.ubuntu.com/ubuntu/pool/main/libd/%{name}/%{name}_%{version}+%{snap}.orig.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ninja
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gl)

%if %{with qt4}
%libpackage dbusmenu-qt %{major}
%endif

%libpackage dbusmenu-qt5 %{major}

%description
This library provides a Qt implementation of the DBusMenu spec.

%package -n %{devname5}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{mklibname dbusmenu-qt5 %{major}} = %{EVRD}
Provides:	%{name}-devel = %{version}-%{release}
BuildRequires:	qt5-devel
# To make qmake happy
BuildRequires:	qt5-platformtheme-gtk3
BuildRequires:	cmake(Qt5Test)

%description -n	%{devname5}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n %{devname5}
%doc %_docdir/dbusmenu-qt5
%{_libdir}/libdbusmenu-qt5.so
%{_includedir}/dbusmenu-qt5/
%{_libdir}/cmake/dbusmenu-qt5
%{_libdir}/pkgconfig/dbusmenu-qt5.pc

%if %{with qt4}
%package -n %{devname}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{mklibname dbusmenu-qt %{major}} = %{EVRD}
Provides:	%{name}-devel = %{version}-%{release}
BuildRequires:	qt4-devel

%description -n	%{devname}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n %{devname}
%doc %{_docdir}/dbusmenu-qt
%{_libdir}/libdbusmenu-qt.so
%{_includedir}/dbusmenu-qt/
%{_libdir}/cmake/dbusmenu-qt
%{_libdir}/pkgconfig/dbusmenu-qt.pc
%endif

%prep
%setup -q -n %{name}-%{version}+%{snap}

%build
%cmake -DUSE_QT5:BOOL=ON \
	-G Ninja
%ninja_build

%if %{with qt4}
cd ..
mkdir build-qt4
cd build-qt4
cmake .. \
	 -DUSE_QT4:BOOL=ON \
	 -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	 -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
	 -DLIB_INSTALL_DIR:PATH=%{_lib} \
	 -DCMAKE_SKIP_RPATH:BOOL=ON \
	 -DLIB_INSTALL_DIR=%{_libdir} \
	 -DINCLUDE_INSTALL_DIR=%{_includedir}
%make_build
%endif

%install
%if %{with qt4}
%makeinstall_std -C build-qt4
%endif

%ninja_install -C build
%if "%{_lib}" != "lib"
sed -i -e "s,/lib,/%{_lib},g" %{buildroot}%{_libdir}/pkgconfig/*.pc
%endif
# Fix ubuntu-ish redundant doc names (no need for -doc in /usr/share/doc...)
%if %{with qt4}
mv %{buildroot}%{_docdir}/libdbusmenu-qt-doc %{buildroot}%{_docdir}/dbusmenu-qt
%endif
mv %{buildroot}%{_docdir}/libdbusmenu-qt5-doc %{buildroot}%{_docdir}/dbusmenu-qt5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14023 |21mr|libdc1394_12-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libdc1394
%define major 12
%define libname %mklibname dc1394_ %{major}
%define develname %mklibname dc1394_ %major -d

Summary:	Library for 1394 Digital Camera Specification
Name:		libdc1394_12
Version:	1.2.2
Release:	1
License:	GPLv2+
Group:		System/Libraries
URL:		http://sourceforge.net/projects/libdc1394/
Source0:	https://sourceforge.net/projects/libdc1394/files/libdc1394/%{version}/libdc1394-%{version}.tar.gz
Patch0:		libdc1394-0.9.5-lib64.patch
Patch1:		libdc1394-1.2.1-videodev.h.patch
BuildRequires: 	pkgconfig(libraw1394) = 1.3.0
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(libv4l1)

%description
libdc1394 is a library that is intended to provide a high level programming
interface for application developers who wish to control IEEE 1394 based
cameras that conform to the 1394-based Digital Camera Specification (found at
http://www.1394ta.org/).

%if "%{_lib}" == "lib"
%files
%doc AUTHORS ChangeLog NEWS README 
%{_libdir}/libdc1394_control.so.%{major}*
%else
#------------------------------------------------------------------------------
%package -n 	%{libname}
Summary:	Dynamic library from libdc1394
Group:		System/Libraries

%description -n %{libname}
libdc1394 is a library that is intended to provide a high level programming
interface for application developers who wish to control IEEE 1394 based
cameras that conform to the 1394-based Digital Camera Specification (found at
http://www.1394ta.org/).

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README 
%{_libdir}/libdc1394_control.so.%{major}*
#------------------------------------------------------------------------------
%endif

#------------------------------------------------------------------------------

%package -n 	%{develname}
Summary: 	Development components for libdc1394
Group: 		Development/C
Requires: 	%{libname} = %{version}-%{release}
Provides: 	libdc1394_12-devel = %{version}-%{release}
Conflicts:	%mklibname -d dc1394

%description -n %{develname}
libdc1394 is a library that is intended to provide a high level programming
interface for application developers who wish to control IEEE 1394 based
cameras that conform to the 1394-based Digital Camera Specification (found at
http://www.1394ta.org/).

This archive contains the header-files for libdc1394 development

%files -n %{develname}
%{_bindir}/dc1394_vloopback
%{_includedir}/libdc1394
%{_libdir}/*.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14024 |21mr|libdc1394-2.2.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 25
%define libname %mklibname dc1394_ %{major}
%define devname %mklibname dc1394 -d

Summary:	Library for 1394 Digital Camera Specification
Name:		libdc1394
Version:	2.2.6
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libdc1394/
Source0:	http://downloads.sourceforge.net/libdc1394/%{name}-%{version}.tar.gz
Patch0:		libdc1394-2.2.0-fix-linking.patch
Patch1:     libdc1394-2.1.2-videodev.h.patch
Source100:	e2k-dummy-port.patch
BuildRequires:	pkgconfig(libraw1394)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libv4l2)

%description
libdc1394 is a library that is intended to provide a high level programming
interface for application developers who wish to control IEEE 1394 based
cameras that conform to the 1394-based Digital Camera Specification (found at
http://www.1394ta.org/).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic library from libdc1394
Group:		System/Libraries
Provides:	libdc1394 = %{EVRD}

%description -n %{libname}
libdc1394 is a library that is intended to provide a high level programming
interface for application developers who wish to control IEEE 1394 based
cameras that conform to the 1394-based Digital Camera Specification (found at
http://www.1394ta.org/).

%files -n %{libname}
%{_libdir}/libdc1394.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development components for libdc1394
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	dc1394-devel = %{EVRD}

%description -n %{devname}
This archive contains the header-files for libdc1394 development.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/dc1394_*
%{_includedir}/dc1394
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# dummy patch for package
%ifarch %{e2k}
patch -p1 < %{SOURCE100}
%endif

%build
%configure --disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14025 |21mr|libdca-0.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname dca %{major}
%define devname %mklibname -d dca

Summary:	DTS Coherent Acoustics decoder
Name:		libdca
Version:	0.0.7
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://www.videolan.org/developers/libdca.html
Source0:	http://download.videolan.org/pub/videolan/libdca/%{version}/%{name}-%{version}.tar.bz2

%description
This is a free decoder for the DTS Coherent Acoustics format. It
consists of a library and a command line decoder. DTS is a high
quality multi-channel (5.1) digital audio format used in DVDs and
DTS audio CDs.

This package is in restricted as it might violate some patents.

#----------------------------------------------------------------------------

%package tools
Summary:	DTS Coherent Acoustics decoder
Group:		Sound
Obsoletes:	dtsdec < %{EVRD}
Provides:	dtsdec = %{EVRD}

%description tools
This is a free decoder for the DTS Coherent Acoustics format. It
consists of a library and a command line decoder. DTS is a high
quality multi-channel (5.1) digital audio format used in DVDs and
DTS audio CDs.

This package is in restricted as it might violate some patents.

%files tools
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/dtsdec
%{_bindir}/dcadec
%{_bindir}/extract_dca
%{_bindir}/extract_dts
%{_mandir}/man1/dcadec.1*
%{_mandir}/man1/dtsdec.1*
%{_mandir}/man1/extract_dca.1*
%{_mandir}/man1/extract_dts.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	DTS Coherent Acoustics decoder shared library
Group:		System/Libraries

%description -n %{libname}
This is a free decoder for the DTS Coherent Acoustics format. It
consists of a library and a command line decoder. DTS is a high
quality multi-channel (5.1) digital audio format used in DVDs and
DTS audio CDs.

This package is in restricted as it might violate some patents.

%files -n %{libname}
%{_libdir}/libdca.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library for decoding DTS audio - C development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	dtsdec-devel = %{EVRD}

%description -n %{devname}
This is a free decoder for the DTS Coherent Acoustics format.DTS is a
high quality multi-channel (5.1) digital audio format used in DVDs and
DTS audio CDs.

This package contains a library and the required header files to
develop with libdts.

This is in restricted as it might violate some patents.

%files -n %{devname}
%doc TODO
%{_includedir}/dts.h
%{_includedir}/dca.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/libdca.pc
%{_libdir}/pkgconfig/libdts.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -vfi
%configure --disable-static
%make

%install
%makeinstall_std
# libdca installs broken libdts.a compatibility symlink;
# replace it with shared devel symlink:
rm -f %{buildroot}%{_libdir}/libdts.a
ln -s libdca.so %{buildroot}%{_libdir}/libdts.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14026 |21mr|libde265-1.0.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname de265_ %{major}
%define	devname %mklibname de265 -d

Summary:	Open h.265 video codec implementation
Name:		libde265
Version:	1.0.14
Release:	2
License:	LGPLv3+
Group:		Video
Url:		http://www.libde265.org
Source0:	https://github.com/strukturag/libde265/releases/download/v%{version}/%{name}-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1000:	CVE-2023-49465.patch
Patch1001:	CVE-2023-49467.patch
Patch1002:	CVE-2023-49468.patch

%description
Open h.265 video codec implementation.

%files
%doc AUTHORS COPYING
%{_bindir}/acceleration_speed
%{_bindir}/bjoentegaard
%{_bindir}/block-rate-estim
%{_bindir}/enc265
%{_bindir}/gen-enc-table
%{_bindir}/rd-curves
%{_bindir}/yuv-distortion

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library from %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library from %{name}.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libde265.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files from %{name}.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}/*.h
%{_libdir}/libde265.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%configure \
	--enable-encoder \
	--disable-dec265 \
	--disable-sherlock265 \
	--disable-static
%make


%install
%makeinstall_std

# Name is too common to keep the file
rm -f %{buildroot}%{_bindir}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14027 |21mr|libdecor-0.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname decor %{major}
%define devname %mklibname decor -d

Name:           libdecor
Version:        0.1.1
Release:        2
Summary:        Wayland client side decoration library
Group:          System/Libraries
License:        MIT
URL:            https://gitlab.freedesktop.org/libdecor/libdecor
Source:         https://gitlab.freedesktop.org/libdecor/libdecor/-/archive/%{version}/libdecor-%{version}.tar.bz2

BuildRequires:  meson
BuildRequires:  pkgconfig(cairo)
BuildRequires:  pkgconfig(dbus-1)
BuildRequires:  pkgconfig(pangocairo)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(wayland-cursor)
BuildRequires:  pkgconfig(xkbcommon)

%description
Libdecor provides a small helper library for providing client side decoration to Wayland clients.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for Libdecor provides a small helper library for providing client side decoration to Wayland clients
Group:		System/Libraries
Recommends:	libdecor-cairo%{_isa}

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with %{name} (Wayland client side decoration library).
Libdecor provides a small helper library for providing client side decoration to Wayland clients.

%files -n %{libname}
%license LICENSE
%doc README.md
%{_libdir}/libdecor-%{major}.so.%{major}*

#----------------------------------------------------------------------------

%package cairo
Summary:	Cairo plugin for libdecor
Group:		System/Libraries
Conflicts:	%{libname} < 0.1.1-2

%description cairo
Cairo plugin for libdecor

%files cairo
%license LICENSE
%doc README.md
# XXX in the future own directories in another package
%dir %{_libdir}/libdecor/
%dir %{_libdir}/libdecor/plugins-1
%{_libdir}/libdecor/plugins-1/libdecor-cairo.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for %{name}
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%license LICENSE
%doc README.md
%{_includedir}/libdecor-%{major}/
%{_libdir}/libdecor-%{major}.so
%{_libdir}/pkgconfig/libdecor-%{major}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Ddemo=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14028 |21mr|libdiscid-0.6.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname discid %{major}
%define devname %mklibname discid -d

Summary:	A Library for creating MusicBrainz DiscIDs
Name:		libdiscid
Version:	0.6.1
Release:	5
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://musicbrainz.org/doc/libdiscid
Source0:	http://users.musicbrainz.org/~matt/%{name}-%{version}.tar.gz

%description
libdiscid is a library for creating MusicBrainz DiscIDs from audio CDs.
It reads a CD's table of contents (TOC) and generates an identifier which
can be used to lookup the CD at MusicBrainz (http://musicbrainz.org).
Additionally, it provides a submission URL for adding the DiscID to the
database.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A Library for creating MusicBrainz DiscIDs
Group:		System/Libraries
# gw for python-musicbrainz2 to depend on
Provides:	%{name} = %{EVRD}

%description -n %{libname}
libdiscid is a library for creating MusicBrainz DiscIDs from audio CDs.
It reads a CD's table of contents (TOC) and generates an identifier which
can be used to lookup the CD at MusicBrainz (http://musicbrainz.org).
Additionally, it provides a submission URL for adding the DiscID to the
database.

%files -n %{libname}
%doc README AUTHORS
%{_libdir}/libdiscid.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libdiscid is a library for creating MusicBrainz DiscIDs from audio CDs.
It reads a CD's table of contents (TOC) and generates an identifier which
can be used to lookup the CD at MusicBrainz (http://musicbrainz.org).
Additionally, it provides a submission URL for adding the DiscID to the
database.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libdiscid.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14029 |21mr|libdispatch-5.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libdispatch %mklibname dispatch %{major}
%define libBlocksRuntime %mklibname BlocksRuntime %{major}
%define devname %mklibname dispatch -d

%global reltag 5.3.3-RELEASE


Name:		libdispatch
Version:	5.3.3
Release:	2
Summary:	Apple's Grand Central Dispatch library
Group:		System/Libraries
License:	ASL 2.0
URL:		https://github.com/apple/swift-corelibs-libdispatch
Source0:	https://github.com/apple/swift-corelibs-libdispatch/archive/swift-%{reltag}.tar.gz#/corelibs-libdispatch.tar.gz
Patch0:		asprintf.patch
Patch1:		libdispatch-versioning.patch
BuildRequires:	clang
BuildRequires:	libbsd-devel
BuildRequires:	ninja
BuildRequires:	cmake
BuildRequires:	chrpath
Provides:	libblocksruntime = %{EVRD}

%description
Grand Central Dispatch (GCD or libdispatch) provides 
comprehensive support for concurrent code execution on 
multicore hardware.

libdispatch is currently available on all Darwin platforms. 
This project aims to make a modern version of libdispatch 
available on all other Swift platforms. To do this, we will 
implement as much of the portable subset of the API as 
possible, using the existing open source C implementation.

libdispatch on Darwin is a combination of logic in the xnu 
kernel alongside the user-space Library. The kernel has the 
most information available to balance workload across the 
entire system. As a first step, however, we believe it is 
useful to bring up the basic functionality of the library 
using user-space pthread primitives on Linux. Eventually, a 
Linux kernel module could be developed to support more 
informed thread scheduling.

#------------------------------------------------------------------

%package -n %{libdispatch}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libdispatch}
%{name} shared library.

%files -n %{libdispatch}
%{_libdir}/libdispatch.so.%{major}*

#------------------------------------------------------------------

%package -n %{libBlocksRuntime}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libBlocksRuntime}
%{name} shared library.

%files -n %{libBlocksRuntime}
%{_libdir}/libBlocksRuntime.so.%{major}

#-------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for libdispatch
Group:		Development/Other
Requires:	%{libdispatch} =  %{EVRD}
Requires:	%{libdispatch} =  %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for libdispatch

%files -n %{devname}
%{_includedir}/Block.h
%{_includedir}/dispatch/*
%{_includedir}/os/*
%{_libdir}/*.so
%{_mandir}/man3/*

#-------------------------------------------------------------

%prep
%autosetup -p1 -n swift-corelibs-libdispatch-swift-%{reltag}

%build
export CC=/usr/bin/clang CXX=/usr/bin/clang++
%cmake -G Ninja
%ninja_build


%install
%ninja_install -C build
chrpath --delete %{buildroot}%{_libdir}/libdispatch.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14030 |21mr|libdmapsharing-3.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 4.0
%define major 3
%define libname %mklibname dmapsharing %{api} %{major}
%define girname %mklibname dmap-gir %{api}
%define develname %mklibname dmapsharing -d

Summary:	A DMAP client and server library
Name:		libdmapsharing
Version:	3.9.9
Release:	1
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.flyn.org/projects/libdmapsharing/index.html
Source0:	http://www.flyn.org/projects/libdmapsharing/%{name}-%{version}.tar.gz
Patch0:		libdmapsharing-3.9-link.patch
Patch1:		libdmapsharing-2.9.16-automake-1.13.patch
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	vala-tools
BuildRequires:	avahi-common-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gee-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
libdmapsharing implements the DMAP protocols. This includes support for
DAAP and DPAP.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A DMAP client and server library
Group:		System/Libraries

%description -n %{libname}
libdmapsharing implements the DMAP protocols. This includes support for
DAAP and DPAP.

%files -n %{libname}
%doc COPYING
%{_libdir}/libdmapsharing-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Files needed to develop applications using libdmapsharing
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
libdmapsharing implements the DMAP protocols. This includes support for
DAAP and DPAP.  This package provides the libraries, include files, and
other resources needed for developing applications using libdmapsharing.

%files -n %{develname}
%doc AUTHORS ChangeLog COPYING README
%{_datadir}/gir-1.0/Dmap-%{api}.gir
%{_datadir}/gtk-doc/html/libdmapsharing-%{api}
%{_datadir}/vala/vapi/libdmapsharing-%{api}.vapi
%{_includedir}/libdmapsharing-*
%{_libdir}/pkgconfig/libdmapsharing-*.pc
%{_libdir}/libdmapsharing-%{api}.so

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/*-%{api}.typelib

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--disable-tests
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14031 |21mr|libdmtx-0.7.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname dmtx %{major}
%define devname %mklibname dmtx -d

Summary:	A library for reading and writing Data Matrix 2D barcodes
Name:		libdmtx
Version:	0.7.5
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://github.com/dmtx/libdmtx
Source0:	https://github.com/dmtx/libdmtx/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.bz2
# https://github.com/dmtx/libdmtx/pull/13
Patch0:		libdmtx-0.7.5-c99.patch
# https://github.com/dmtx/libdmtx/pull/14
Patch1:		libdmtx-0.7.5-size_t.patch
# https://github.com/dmtx/libdmtx/pull/12
Patch2:		libdmtx-0.7.5-math.patch

%description
libdmtx is open source software for reading and writing Data Matrix 2D barcodes
on Linux and Unix. At its core libdmtx is a shared library, allowing C/C++
programs to use its capabilities without restrictions or overhead.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
A library for reading and writing Data Matrix 2D barcodes.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Developement files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed when building applications based on
%{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog KNOWNBUG README README.linux TODO
%license LICENSE
%{_includedir}/dmtx.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
autoreconf -fi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14032 |21mr|libdmx-1.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname dmx %{major}
%define devname %mklibname dmx -d

Name:		libdmx
Summary:	DMX library (part of X.org)
Version:	1.1.4
Release:	2
Group:		Development/X11
License:	MIT
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libdmx-%{version}.tar.bz2

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)

%description
The DMX extension provides support for communication with and control of
Xdmx server. Attributes of the Xdmx server and of the back-end screens
attached to the server can be queried and modified via this protocol.

%package -n %{libname}
Summary:	The dmx Library
Group:		Development/X11
Provides:	%{name} = %{version}

%description -n %{libname}
The DMX extension provides support for communication with and control of
Xdmx server. Attributes of the Xdmx server and of the back-end screens
attached to the server can be queried and modified via this protocol.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}dmx-static-devel < 1.1.2

%description -n %{devname}
Development files for %{name}.

%prep
%setup -q

%build
%configure	\
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libdmx.so.%{major}*

%files -n %{devname}
%{_libdir}/libdmx.so
%{_libdir}/pkgconfig/dmx.pc
%{_includedir}/X11/extensions/*.h
%{_mandir}/man3/DMX*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14033 |21mr|libdnet-1.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname dnet %{major}
%define develname %mklibname dnet -d

Summary:	Portable interface to several low-level networking routines
Name:		libdnet
Version:	1.14
Release:	1
License:	BSD
Group:		System/Libraries
URL:		http://code.google.com/p/libdnet/
Source0:	https://github.com/ofalk/libdnet/archive/%{name}-%{version}.tar.gz
BuildRequires:	autoconf automake libtool

%description
libdnet provides a simplified, portable interface to several
low-level networking routines, including network address
manipulation, kernel arp(4) cache and route(4) table lookup and
manipulation, network firewalling, network interface lookup and
manipulation, and raw IP packet and Ethernet frame transmission.

%package -n	%{libname}
Summary:	Portable interface to several low-level networking routines
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n	%{libname}
libdnet provides a simplified, portable interface to several
low-level networking routines, including network address
manipulation, kernel arp(4) cache and route(4) table lookup and
manipulation, network firewalling, network interface lookup and
manipulation, and raw IP packet and Ethernet frame transmission.

%package -n	%{libname}-utils
Summary:	A simple test program for the %{libname} library
Group:		System/Libraries
Provides:	%{name}-utils = %{EVRD}

%description -n	%{libname}-utils
Provides a simple test program for the %{libname} library.

%package -n	%{develname}
Summary:	Static library and header files for the %{libname} library
Group:		Development/C
Provides:	dnet-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n	%{develname}
libdnet provides a simplified, portable interface to several
low-level networking routines, including network address
manipulation, kernel arp(4) cache and route(4) table lookup and
manipulation, network firewalling, network interface lookup and
manipulation, and raw IP packet and Ethernet frame transmission.

%prep
%setup -qn %{name}-%{name}-%{version}

%build
%configure --disable-static --without-python
%make_build

%install
%make_install

%files -n %{libname}
%doc THANKS TODO
%{_libdir}/*.so.%{major}*

%files -n %{libname}-utils
%{_sbindir}/*
%{_mandir}/man8/*

%files -n %{develname}
%{_bindir}/dnet-config
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14034 |21mr|libdnf-0.64.0-0.git1c78bc.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME We should really run those tests -- but as of 0.22.0, they cause
# a SIGTRAP even though the library works
%bcond_with tests

%define libsolv_version 0.7.20
%define libmodulemd_version 2.13.0
%define dnf_conflict 4.3.0
%define swig_version 3.0.12

# Keep valgrind tests switched off for now
%bcond_with valgrind

# Using LibreSSL to support GOST TLS;
# librepo also uses LibreSSL and libcurl-libressl to avoid
# runtime mixture of OpenSSL and LibreSSL.
%global optflags %{optflags} -L%{libressl_prefix}/lib -I%{libressl_prefix}/include

%define major 2
%define libname %mklibname dnf %{major}
%define oldgirname %mklibname dnf-gir 1.0
%define devname %mklibname dnf -d

%define commit 1c78bc8d80f1dbc174b9639d8089351be21f558e
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Library providing simplified C and Python API to libsolv
Name:		libdnf
Version:	0.64.0
Release:	0.git%{commit_short}.5
Group:		System/Libraries
License:	LGPLv2+
URL:		https://github.com/rpm-software-management/libdnf
Source0:	https://github.com/rpm-software-management/libdnf/archive/%{commit}/%{name}-%{commit}.tar.gz
Patch1001:	0001-Decrease-timeout.patch
Patch1002:	libdnf-0.22.0-libdl-linkage.patch
# Teach libdnf about znver1 and e2k arches
# znver1 is x86_64 with -mtune=znver1, invented in OpenMandriva and not used in ROSA
# e2k is Russian VLIW-like architecture
Patch1004:	libdnf-arches.diff
BuildRequires:	cmake >= 3.0
BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	ninja
BuildRequires:	patchelf
BuildRequires:	pkgconfig(libressl)
# openssl-devel is for macros only
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libsolv) >= %{libsolv_version}
BuildRequires:	pkgconfig(librepo) >= 1.11.0
BuildRequires:	pkgconfig(check)
%if %{with valgrind}
BuildRequires:	valgrind
%endif
BuildRequires:	pkgconfig(gio-unix-2.0) >= 2.46.0
BuildRequires:	pkgconfig(modulemd-2.0) >= %{libmodulemd_version}
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	swig >= %{swig_version}
BuildRequires:	python3-sphinx
BuildRequires:	pkgconfig(rpm) >= 4.11.0
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(smartcols)
BuildRequires:	pkgconfig(gpgme)
BuildRequires:	pkgconfig(zck)
BuildConflicts:	pkgconfig(rpm) >= 5

# Bad Things(tm) happen if libdnf with armv8 detection is used
# in conjunction with a build of dnf that doesn't know about
# armv8
Conflicts:	dnf < 2.7.5-2

%description
A library providing simplified C and Python API to libsolv.

%package -n %{libname}
Summary:	Package library providing simplified interface to libsolv
Group:		System/Libraries
Requires:	%{mklibname solv 1}%{?_isa} >= %{libsolv_version}
Obsoletes:	%{oldgirname} < %{EVRD}

%description -n %{libname}
This library provides a simple interface to libsolv and is currently
used by PackageKit and rpm-ostree.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel%{?_isa} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname}%{?_isa} = %{version}-%{release}
Requires:	pkgconfig(libsolv)
Requires:	pkgconfig(libsolvext)

%description -n %{devname}
Development files for %{name}.

%package -n python3-hawkey
Summary:	Python 3 bindings for the hawkey interface
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-nose
Requires:	python3-libdnf%{?_isa} = %{version}-%{release}
Requires:	%{libname}%{?_isa} = %{version}-%{release}
# Fix problem with hawkey - dnf version incompatibility
# Can be deleted for distros where only python3-dnf >= 2.0.0
Conflicts:	python3-dnf < %{dnf_conflict}

%description -n python3-hawkey
Python 3 bindings for libdnf through the hawkey interface.

%package -n python3-libdnf
Summary:	Python 3 bindings for libdnf
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
Requires:	%{libname}%{?_isa} = %{version}-%{release}

%description -n python3-libdnf
Python 3 bindings for libdnf.

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%define _disable_lto 1

# ensure that librepo is linked with LibreSSL, not OpenSSL
patchelf --print-needed %{_libdir}/librepo.so | grep -q 'libcrypto.so.%{libressl_libcrypto_sover}$'

%cmake -DPYTHON_DESIRED:str=3 -DWITH_MAN=0 -DWITH_GTKDOC=0 %{!?with_valgrind:-DDISABLE_VALGRIND=1} -DWITH_ZCHUNK=ON -G Ninja
%ninja_build

%check
patchelf --print-needed %{buildroot}%{_libdir}/libdnf.so | grep -q '^libcrypto.so.%{libressl_libcrypto_sover}$'
# Ensure that OpenSLS and LibreSSL are not mixed in runtime
# XXX libcurl-libressl pulls libldap, which pulls OpenSSL, but it seems to work, at least when LDAP is not used
# (it will never be used in dnf->libdnf->librepo->libcurl, I think)
ldd="$(LD_LIBRARY_PATH="%{buildroot}%{_libdir}" ldd %{buildroot}%{_libdir}/libdnf.so)"
echo "$ldd"
#! echo "$ldd" | grep -q '^libcrypto.so.%{openssl_libcrypto_sover}'
#echo "$ldd" | grep -q '^libcrypto.so.%{libressl_libcrypto_sover}'

%if %{with tests}
# The test suite doesn't automatically know to look at the "built"
# library, so we force it by creating an LD_LIBRARY_PATH
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}

if [ "$(id -u)" = '0' ]; then
        cat <<ERROR 1>&2
Package tests cannot be run under superuser account.
Please build the package as non-root user.
ERROR
    exit 1
fi

ARGS="-V" %ninja_build test -C build
%endif

%install
%ninja_install -C build

%find_lang %{name}

# if python2 bindings exist, purge them
rm -rf %{buildroot}%{_libdir}/python2.7

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}

%files -n %{devname} -f %{name}.lang
%license COPYING
%doc README.md AUTHORS
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/
%doc %{_libdir}/libdnf/plugins/README

%files -n python3-hawkey
%{python3_sitearch}/hawkey/

%files -n python3-libdnf
%{python3_sitearch}/libdnf/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14035 |21mr|libdrm-2.4.114-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname drm %{major}
%define devname %mklibname drm -d

%define intel_major 1
%define libintel %mklibname drm_intel %{intel_major}
%define nouveau_major 2
%define libnouveau %mklibname drm_nouveau %{nouveau_major}
%define radeon_major 1
%define libradeon %mklibname drm_radeon %{radeon_major}
# amdgpu
%define amdgpu_major 1
%define libamdgpu %mklibname drm_amdgpu %{amdgpu_major}
# exynos
%define exynos_major 1
%define libexynos %mklibname drm_exynos %{exynos_major}
# adreno
%define freedreno_major 1
%define libfreedreno %mklibname drm_freedreno %{freedreno_major}
# omap
%define omap_major 1
%define libomap %mklibname drm_omap %{omap_major}
# tegra
%define tegra_major 0
%define libtegra %mklibname drm_tegra %{tegra_major}
# vc4
%define vc4_major 0
%define libvc4 %mklibname drm_vc4 %{vc4_major}
# etnaviv
%define etnaviv_major 1
%define libetnaviv %mklibname drm_etnaviv %{etnaviv_major}

Summary:	Userspace interface to kernel DRM services
Name:		libdrm
Version:	2.4.114
Release:	1
Group:		System/Libraries
License:	MIT/X11
Url:		http://dri.freedesktop.org
Source0:	http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.xz
Source1:	91-drm-modeset.rules
# hardcode the 666 instead of 660 for device nodes
Patch0:		0100-RH-libdrm-make-dri-perms-okay-v1.2.patch

# For building man pages
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd42-xml
BuildRequires:	xsltproc
BuildRequires:	kernel-headers
BuildRequires:	pkgconfig(pthread-stubs)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(atomic_ops)
BuildRequires:	meson

%description
Userspace interface to kernel DRM services.

#-----------------------------------------------------------------------------

%package common
Summary:	Common files for the userspace interface to kernel DRM services
Group:		System/Libraries

%description common
Common files for the userspace interface to kernel DRM services.

%files common
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.ids
/lib/udev/rules.d/91-drm-modeset.rules

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Userspace interface to kernel DRM services
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Requires:	%{name}-common

%description -n %{libname}
Userspace interface to kernel DRM services

%files -n %{libname}
%{_libdir}/libdrm.so.%{major}*

#-----------------------------------------------------------------------------

%ifarch %{ix86} x86_64
%package -n %{libintel}
Summary:	Shared library for Intel kernel DRM services
Group:		System/Libraries

%description -n %{libintel}
Shared library for Intel kernel Direct Rendering Manager services.

%files -n %{libintel}
%{_libdir}/libdrm_intel.so.%{intel_major}*
%endif

#-----------------------------------------------------------------------------

%package -n %{libnouveau}
Summary:	Shared library for Nouveau kernel DRM services
Group:		System/Libraries

%description -n %{libnouveau}
Shared library for Nouveau kernel Direct Rendering Manager services.

%files -n %{libnouveau}
%{_libdir}/libdrm_nouveau.so.%{nouveau_major}*

#-----------------------------------------------------------------------------

%package -n %{libradeon}
Summary:	Shared library for Radeon kernel DRM services
Group:		System/Libraries

%description -n %{libradeon}
Shared library for Radeon kernel Direct Rendering Manager services.

%files -n %{libradeon}
%{_libdir}/libdrm_radeon.so.%{radeon_major}*

#-----------------------------------------------------------------------------

%package -n	%{libamdgpu}
Summary:	Shared library for AMD GPU kernel DRM services
Group:		System/Libraries

%description -n %{libamdgpu}
Shared library for AMD GPU kernel Direct Rendering Manager services.

%files -n %{libamdgpu}
%{_libdir}/libdrm_amdgpu.so.%{amdgpu_major}*

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libexynos}
Summary:	Shared library for Exynos kernel DRM services
Group:		System/Libraries

%description -n %{libexynos}
Shared library for Radeon kernel Direct Rendering Manager services.

%files -n %{libexynos}
%{_libdir}/libdrm_exynos.so.%{exynos_major}*
%endif

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libfreedreno}
Summary:	Shared library for Adreno kernel DRM services
Group:		System/Libraries

%description -n %{libfreedreno}
Shared library for Adreno kernel Direct Rendering Manager services.

%files -n %{libfreedreno}
%{_libdir}/libdrm_freedreno.so.%{freedreno_major}*
%endif

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libomap}
Summary:	Shared library for OMAP kernel DRM services
Group:		System/Libraries

%description -n %{libomap}
Shared library for OMAP kernel Direct Rendering Manager services.

%files -n %{libomap}
%{_libdir}/libdrm_omap.so.%{omap_major}*
%endif

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libtegra}
Summary:	Shared library for Tegra kernel DRM services
Group:		System/Libraries

%description -n %{libtegra}
Shared library for Tegra kernel Direct Rendering Manager services.

%files -n %{libtegra}
%{_libdir}/libdrm_tegra.so.%{tegra_major}*
%endif

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libetnaviv}
Summary:	Shared library for Etnaviv kernel DRM services
Group:		System/Libraries

%description -n %{libetnaviv}
Shared library for Etnaviv kernel Direct Rendering Manager services.

%files -n %{libetnaviv}
%{_libdir}/libdrm_etnaviv.so.%{etnaviv_major}*
%endif

#-----------------------------------------------------------------------------

# No binary yet, but the headers are useful
%if 0
%package -n %{libvc4}
Summary:	Shared library for Broadcom VC4 kernel DRM services
Group:		System/Libraries

%description -n %{libvc4}
Shared library for Broadcom VC4 kernel Direct Rendering Manager services.

%files -n %{libvc4}
%{_libdir}/libdrm_vc4.so.%{vc4_major}*
%endif

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
%ifarch %{ix86} x86_64
Requires:	%{libintel} = %{EVRD}
%endif
Requires:	%{libnouveau} = %{EVRD}
Requires:	%{libradeon} = %{EVRD}
Requires:	%{libamdgpu} = %{EVRD}
%ifarch %{armx} %{riscv}
Requires:	%{libexynos} = %{EVRD}
Requires:	%{libfreedreno} = %{EVRD}
Requires:	%{libomap} = %{EVRD}
Requires:	%{libtegra} = %{EVRD}
Requires:	%{libetnaviv} = %{EVRD}
%if 0
Requires:	%{libvc4} = %{EVRD}
%endif
%endif
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/libdrm
%{_includedir}/*.h
%ifarch %{armx} %{riscv}
%{_includedir}/exynos/
%{_includedir}/freedreno/
%{_includedir}/omap/
%endif
%{_libdir}/libdrm*.so
%{_libdir}/pkgconfig/libdrm*.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
%ifarch %{ix86} x86_64
	-Dintel=enabled \
%else
	-Dintel=disabled \
%endif
%ifarch %{armx} %{riscv}
	-Domap=enabled \
	-Dexynos=enabled \
	-Dfreedreno=enabled \
	-Dtegra=enabled \
	-Detnaviv=enabled \
	-Dvc4=enabled \
%else
	-Domap=disabled \
	-Dexynos=disabled \
	-Dfreedreno=disabled \
	-Dtegra=disabled \
	-Detnaviv=disabled \
	-Dvc4=disabled \
%endif
	-Dradeon=enabled \
	-Damdgpu=enabled \
	-Dnouveau=enabled \
	-Dcairo-tests=disabled \
	-Dvalgrind=disabled \
	-Dtests=false \
	-Dudev=true \
	-Dman-pages=disabled

%meson_build

%install
%meson_install

install -m644 %{SOURCE1} -D %{buildroot}/lib/udev/rules.d/91-drm-modeset.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14036 |21mr|libdrm-2.4.115-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname drm %{major}
%define devname %mklibname drm -d

%define intel_major 1
%define libintel %mklibname drm_intel %{intel_major}
%define nouveau_major 2
%define libnouveau %mklibname drm_nouveau %{nouveau_major}
%define radeon_major 1
%define libradeon %mklibname drm_radeon %{radeon_major}
# amdgpu
%define amdgpu_major 1
%define libamdgpu %mklibname drm_amdgpu %{amdgpu_major}
# exynos
%define exynos_major 1
%define libexynos %mklibname drm_exynos %{exynos_major}
# adreno
%define freedreno_major 1
%define libfreedreno %mklibname drm_freedreno %{freedreno_major}
# omap
%define omap_major 1
%define libomap %mklibname drm_omap %{omap_major}
# tegra
%define tegra_major 0
%define libtegra %mklibname drm_tegra %{tegra_major}
# vc4
%define vc4_major 0
%define libvc4 %mklibname drm_vc4 %{vc4_major}
# etnaviv
%define etnaviv_major 1
%define libetnaviv %mklibname drm_etnaviv %{etnaviv_major}

Summary:	Userspace interface to kernel DRM services
Name:		libdrm
Version:	2.4.115
Release:	2
Group:		System/Libraries
License:	MIT/X11
Url:		http://dri.freedesktop.org
Source0:	http://dri.freedesktop.org/libdrm/%{name}-%{version}.tar.xz
Source1:	91-drm-modeset.rules
# hardcode the 666 instead of 660 for device nodes
Patch0:		0100-RH-libdrm-make-dri-perms-okay-v1.2.patch

# For building man pages
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd42-xml
BuildRequires:	xsltproc
BuildRequires:	kernel-headers
BuildRequires:	pkgconfig(pthread-stubs)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(atomic_ops)
BuildRequires:	meson

%description
Userspace interface to kernel DRM services.

#-----------------------------------------------------------------------------

%package common
Summary:	Common files for the userspace interface to kernel DRM services
Group:		System/Libraries

%description common
Common files for the userspace interface to kernel DRM services.

%files common
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.ids
/lib/udev/rules.d/91-drm-modeset.rules

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Userspace interface to kernel DRM services
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Requires:	%{name}-common

%description -n %{libname}
Userspace interface to kernel DRM services

%files -n %{libname}
%{_libdir}/libdrm.so.%{major}*

#-----------------------------------------------------------------------------

%ifarch %{ix86} x86_64
%package -n %{libintel}
Summary:	Shared library for Intel kernel DRM services
Group:		System/Libraries

%description -n %{libintel}
Shared library for Intel kernel Direct Rendering Manager services.

%files -n %{libintel}
%{_libdir}/libdrm_intel.so.%{intel_major}*
%endif

#-----------------------------------------------------------------------------

%package -n %{libnouveau}
Summary:	Shared library for Nouveau kernel DRM services
Group:		System/Libraries

%description -n %{libnouveau}
Shared library for Nouveau kernel Direct Rendering Manager services.

%files -n %{libnouveau}
%{_libdir}/libdrm_nouveau.so.%{nouveau_major}*

#-----------------------------------------------------------------------------

%package -n %{libradeon}
Summary:	Shared library for Radeon kernel DRM services
Group:		System/Libraries

%description -n %{libradeon}
Shared library for Radeon kernel Direct Rendering Manager services.

%files -n %{libradeon}
%{_libdir}/libdrm_radeon.so.%{radeon_major}*

#-----------------------------------------------------------------------------

%package -n	%{libamdgpu}
Summary:	Shared library for AMD GPU kernel DRM services
Group:		System/Libraries

%description -n %{libamdgpu}
Shared library for AMD GPU kernel Direct Rendering Manager services.

%files -n %{libamdgpu}
%{_libdir}/libdrm_amdgpu.so.%{amdgpu_major}*

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libexynos}
Summary:	Shared library for Exynos kernel DRM services
Group:		System/Libraries

%description -n %{libexynos}
Shared library for Radeon kernel Direct Rendering Manager services.

%files -n %{libexynos}
%{_libdir}/libdrm_exynos.so.%{exynos_major}*
%endif

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libfreedreno}
Summary:	Shared library for Adreno kernel DRM services
Group:		System/Libraries

%description -n %{libfreedreno}
Shared library for Adreno kernel Direct Rendering Manager services.

%files -n %{libfreedreno}
%{_libdir}/libdrm_freedreno.so.%{freedreno_major}*
%endif

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libomap}
Summary:	Shared library for OMAP kernel DRM services
Group:		System/Libraries

%description -n %{libomap}
Shared library for OMAP kernel Direct Rendering Manager services.

%files -n %{libomap}
%{_libdir}/libdrm_omap.so.%{omap_major}*
%endif

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libtegra}
Summary:	Shared library for Tegra kernel DRM services
Group:		System/Libraries

%description -n %{libtegra}
Shared library for Tegra kernel Direct Rendering Manager services.

%files -n %{libtegra}
%{_libdir}/libdrm_tegra.so.%{tegra_major}*
%endif

#-----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{libetnaviv}
Summary:	Shared library for Etnaviv kernel DRM services
Group:		System/Libraries

%description -n %{libetnaviv}
Shared library for Etnaviv kernel Direct Rendering Manager services.

%files -n %{libetnaviv}
%{_libdir}/libdrm_etnaviv.so.%{etnaviv_major}*
%endif

#-----------------------------------------------------------------------------

# No binary yet, but the headers are useful
%if 0
%package -n %{libvc4}
Summary:	Shared library for Broadcom VC4 kernel DRM services
Group:		System/Libraries

%description -n %{libvc4}
Shared library for Broadcom VC4 kernel Direct Rendering Manager services.

%files -n %{libvc4}
%{_libdir}/libdrm_vc4.so.%{vc4_major}*
%endif

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
%ifarch %{ix86} x86_64
Requires:	%{libintel} = %{EVRD}
%endif
Requires:	%{libnouveau} = %{EVRD}
Requires:	%{libradeon} = %{EVRD}
Requires:	%{libamdgpu} = %{EVRD}
%ifarch %{armx} %{riscv}
Requires:	%{libexynos} = %{EVRD}
Requires:	%{libfreedreno} = %{EVRD}
Requires:	%{libomap} = %{EVRD}
Requires:	%{libtegra} = %{EVRD}
Requires:	%{libetnaviv} = %{EVRD}
%if 0
Requires:	%{libvc4} = %{EVRD}
%endif
%endif
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/libdrm
%{_includedir}/*.h
%ifarch %{armx} %{riscv}
%{_includedir}/exynos/
%{_includedir}/freedreno/
%{_includedir}/omap/
%endif
%{_libdir}/libdrm*.so
%{_libdir}/pkgconfig/libdrm*.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
%ifarch %{ix86} x86_64
	-Dintel=enabled \
%else
	-Dintel=disabled \
%endif
%ifarch %{armx} %{riscv}
	-Domap=enabled \
	-Dexynos=enabled \
	-Dfreedreno=enabled \
	-Dtegra=enabled \
	-Detnaviv=enabled \
	-Dvc4=enabled \
%else
	-Domap=disabled \
	-Dexynos=disabled \
	-Dfreedreno=disabled \
	-Dtegra=disabled \
	-Detnaviv=disabled \
	-Dvc4=disabled \
%endif
	-Dradeon=enabled \
	-Damdgpu=enabled \
	-Dnouveau=enabled \
	-Dcairo-tests=disabled \
	-Dvalgrind=disabled \
	-Dtests=false \
	-Dudev=true \
	-Dman-pages=disabled

%meson_build

%install
%meson_install

install -m644 %{SOURCE1} -D %{buildroot}/lib/udev/rules.d/91-drm-modeset.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14037 |21mr|libdv-1.0.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname dv %{major}
%define devname %mklibname dv -d
%define sdevname %mklibname dv -d -s

Summary:	DV software video codec
Name:		libdv
Version:	1.0.0
Release:	20
License:	LGPLv2+
Group:		Video
Url:		http://libdv.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/libdv/%{name}-%{version}.tar.bz2
Patch0:		libdv-mmxdetect-athlon.patch
Patch4:		libdv-0.104-zap-config.h.patch
Patch5:		libdv-0.104-move-config.h-to-apps.patch
BuildRequires:	popt-devel
BuildRequires:	SDL-devel


%description
The Quasar DV codec (libdv) is a software codec for DV video. DV is
the encoding format used by most digital camcorders, typically those
that support the IEEE 1394 (aka FireWire or i.Link) interface. libdv
was developed according to the official standards for DV video, IEC
61834 and SMPTE 314M. See http://libdv.sourceforge.net/ for more.

#----------------------------------------------------------------------------

%package apps
Summary:	Binaries from libdv
Group:		Video
Provides:	%{_lib}dv2-apps = %{EVRD}

%description apps
The Quasar DV codec (libdv) is a software codec for DV video. DV is
the encoding format used by most digital camcorders, typically those
that support the IEEE 1394 (aka FireWire or i.Link) interface. libdv
was developed according to the official standards for DV video, IEC
61834 and SMPTE 314M. See http://libdv.sourceforge.net/ for more.

This is the libraries, include files and other resources you can use
to incorporate libdv into applications.

%files apps
%doc ChangeLog COPYING README AUTHORS NEWS INSTALL TODO COPYRIGHT
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for libdv
Group:		System/Libraries

%description -n %{libname}
The Quasar DV codec (libdv) is a software codec for DV video. DV is
the encoding format used by most digital camcorders, typically those
that support the IEEE 1394 (aka FireWire or i.Link) interface. libdv
was developed according to the official standards for DV video, IEC
61834 and SMPTE 314M. See http://libdv.sourceforge.net/ for more.

This is the libraries, include files and other resources you can use
to incorporate libdv into applications.

%files -n %{libname}
%{_libdir}/libdv.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libdv
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	popt-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The Quasar DV codec (libdv) is a software codec for DV video. DV is
the encoding format used by most digital camcorders, typically those
that support the IEEE 1394 (aka FireWire or i.Link) interface. libdv
was developed according to the official standards for DV video, IEC
61834 and SMPTE 314M. See http://libdv.sourceforge.net/ for more.

This is the libraries, include files and other resources you can use
to incorporate libdv into applications.

%files -n %{devname}
%doc ChangeLog COPYING README AUTHORS NEWS INSTALL TODO COPYRIGHT
%{_includedir}/libdv
%{_libdir}/libdv.so
%{_libdir}/pkgconfig/libdv.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library of %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
This package contains the static library required for statically
linking applications based on %{name}.

%files -n %{sdevname}
%{_libdir}/libdv.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .mmx_athlon
%patch4 -p1 -b .zap_config
%patch5 -p1 -b .move_config

%build
# Needed for snapshot releases.
if [ ! -f configure ]; then
  ./bootstrap
fi
%configure \
	--enable-shared \
    --enable-static \
    --disable-gtk

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14038 |21mr|libdvbpsi-1.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 10
%define libname %mklibname dvbpsi %{major}
%define devname %mklibname dvbpsi -d

Summary:	A library for decoding and generating MPEG 2 and DVB PSI sections
Name:		libdvbpsi
Version:	1.3.3
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.videolan.org/libdvbpsi/
Source0:	http://www.videolan.org/pub/videolan/libdvbpsi/%{version}/%{name}-%{version}.tar.bz2

%description
libdvbpsi is a simple library designed for decoding and generating
MPEG 2 TS and DVB PSI tables. The important features are:
 * PAT decoder and generator.
 * PMT decoder and generator.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for decoding and generating MPEG 2 and DVB PSI sections
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
libdvbpsi is a simple library designed for decoding and generating
MPEG 2 TS and DVB PSI tables. The important features are:
 * PAT decoder and generator.
 * PMT decoder and generator.

%files -n %{libname}
%doc AUTHORS README COPYING ChangeLog
%{_libdir}/libdvbpsi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for programs which will use the libdvbpsi library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package includes the header files and static libraries
necessary for developing programs which will manipulate MPEG 2 and DVB PSI
information using the %{name} library.

If you are going to develop programs which will manipulate MPEG 2 and DVB PSI
information you should install %{name}-devel. You'll also need to have
the %{name} package installed.

%files -n %{devname}
%doc COPYING
%{_includedir}/*
%{_libdir}/libdvbpsi.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-release \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14039 |21mr|libdvdcss-1.4.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname dvdcss %{major}
%define devname %mklibname dvdcss -d
%define sdevname %mklibname dvdcss -d -s

Summary:	Library for accessing DVDs like block device usind deCSS if needed
Name:		libdvdcss
Version:	1.4.3
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.videolan.org/libdvdcss
Source0:	http://download.videolan.org/pub/libdvdcss/%{version}/%{name}-%{version}.tar.bz2
Conflicts:	libdvdcss0.0.1
Conflicts:	libdvdcss0.0.2

%description
libdvdcss is a simple library designed for accessing DVDs like a block device
without having to bother about the decryption. The important features are:
 * Portability. Currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
   OpenBSD, BSD/OS, BeOS, Windows 95/98, Windows NT/2000, MacOS X, Solaris,
   and HP-UX.
 * Simplicity. There are currently 7 functions in the API, and we intend to
   keep this number low.
 * Freedom. libdvdcss is released under the General Public License, ensuring
   it will stay free, and used only for free software products.
 * Just better. Unlike most similar projects, libdvdcss doesn't require the
   region of your drive to be set.

This package is in restricted as it violates patents.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for accessing DVDs like block device usind deCSS if needed
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
libdvdcss is a simple library designed for accessing DVDs like a block device
without having to bother about the decryption. The important features are:
 * Portability. Currently supported platforms are GNU/Linux, FreeBSD, NetBSD,
   OpenBSD, BSD/OS, BeOS, Windows 95/98, Windows NT/2000, MacOS X, Solaris,
   and HP-UX.
 * Simplicity. There are currently 7 functions in the API, and we intend to
   keep this number low.
 * Freedom. libdvdcss is released under the General Public License, ensuring
   it will stay free, and used only for free software products.
 * Just better. Unlike most similar projects, libdvdcss doesn't require the
   region of your drive to be set.

%files -n %{libname}
%{_libdir}/libdvdcss.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the libdvdcss library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package includes the header files and static libraries
necessary for developing programs which will manipulate DVDs files using
the %{name} library.

If you are going to develop programs which will manipulate DVDs, you
should install %{name}-devel.  You'll also need to have the %{name}
package installed.

%files -n %{devname}
%doc ChangeLog COPYING
%doc %{_docdir}/%{name}
%{_libdir}/libdvdcss.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
#------------------------------------------------------------------

%package -n %{sdevname}
Summary:	%{name} development files (static library)
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
%{name} development files (static library).

%files -n %{sdevname}
%{_libdir}/*.a
#------------------------------------------------------------------

%prep
%setup -q

%build
# static lib needed for kodi build
%configure --enable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14040 |21mr|libdvdnav-6.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname dvdnav %{major}
%define devname %mklibname dvdnav -d

Summary:	DVD Navigation library
Name:		libdvdnav
Version:	6.1.1
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.mplayerhq.hu
Source0:	http://download.videolan.org/pub/videolan/libdvdnav/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(dvdread) >= 5.0.2

%description
libdvdnav provides support to applications wishing to make use of advanced
DVD features.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	DVD Navigation library
Group:		System/Libraries

%description -n %{libname}
libdvdnav provides support to applications wishing to make use of advanced
DVD features.

%files -n %{libname}
%doc COPYING README AUTHORS ChangeLog TODO
%{_libdir}/libdvdnav.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	DVD Navigation library headers and support files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libdvdnav provides support to applications wishing to make use of advanced
DVD features.

This package contains the C headers and support files for compiling 
applications with libdvdnav.

%files -n %{devname}
%doc COPYING TODO AUTHORS
%{_libdir}/libdvdnav.so
%{_includedir}/dvdnav/
%{_libdir}/pkgconfig/dvdnav.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%makeinstall_std docdir=%{_docdir}/%{libname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14041 |21mr|libdvdread-6.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname dvdread %{major}
%define devname %mklibname dvdread -d
%define sdevname %mklibname %{name} -d -s

Summary:	Library to read DVD images
Name:		libdvdread
Version:	6.1.3
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.mplayerhq.hu/
Source0:	http://download.videolan.org/pub/videolan/libdvdread/%{version}/%{name}-%{version}.tar.bz2

%description
libdvdread provides a simple foundation for reading DVD-Video images.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to read DVD images
Group:		System/Libraries

%description -n %{libname}
Libdvdread provides a simple foundation for reading DVD-Video images.
This package contains the shared library to run applications utilizing
libdvdread.

%files -n %{libname}
%{_libdir}/libdvdread.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libdvdread library headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the libraries, include files and other resources you can use
to incorporate libdvdread into applications.

%files -n %{devname}
%doc AUTHORS TODO
%{_docdir}/*dvdread*
%{_includedir}/dvdread
%{_libdir}/libdvdread.so
%{_libdir}/pkgconfig/dvdread.pc

#----------------------------------------------------------------------------
%package -n %{sdevname}
Summary:	%{name} development files (static library)
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
%{name} development files (static library).

%files -n %{sdevname}
%{_libdir}/*.a
#----------------------------------------------------------------------------
%prep
%autosetup -p1

%build
autoreconf -fi
# static lib need for build kodi
%configure --enable-static
%make_build

%install
%make_install docdir=%{_docdir}/%{libname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14042 |21mr|libdwarf-20201201-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname dwarf %{major}
%define devname %mklibname dwarf -d
%define sdevname %mklibname dwarf -d -s

Summary:	Library to access the DWARF Debugging file format
Name:		libdwarf
Version:	20201201
Release:	1
License:	LGPLv2
Group:		System/Libraries
Url:		http://reality.sgiweb.org/davea/dwarf.html
Source0:	http://www.prevanders.net/%{name}-%{version}.tar.gz
# This patch set up the proper soname
Patch0:		libdwarf-soname-fix.patch
Patch1:		dwarf-20111030-link-against-required-libelf.patch
BuildRequires:	binutils-devel
BuildRequires:	elfutils-devel

#----------------------------------------------------------------------------

%description
Library to access the DWARF debugging file format which supports
source level debugging of a number of procedural languages, such as C, C++,
and Fortran.  Please see http://www.dwarfstd.org for DWARF specification.

%package -n %{libname}
Summary:	Library to access the DWARF Debugging file format
Group:		System/Libraries

%description -n %{libname}
Library to access the DWARF debugging file format which supports
source level debugging of a number of procedural languages, such as C, C++,
and Fortran.  Please see http://www.dwarfstd.org for DWARF specification.

%files -n %{libname}
%doc libdwarf/ChangeLog libdwarf/README libdwarf/COPYING libdwarf/LIBDWARFCOPYRIGHT
%{_libdir}/libdwarf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library and header files of libdwarf
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	dwarf-devel = %{EVRD}

%description -n %{devname}
Development package containing library and header files of libdwarf.

%files -n %{devname}
%doc libdwarf/*.pdf
%dir %{_includedir}/libdwarf
%{_includedir}/libdwarf/dwarf.h
%{_includedir}/libdwarf/libdwarf.h
%{_libdir}/libdwarf.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libdwarf library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	dwarf-static-devel = %{EVRD}

%description -n %{sdevname}
Static libdwarf library.

%files -n %{sdevname}
%{_libdir}/libdwarf.a

#----------------------------------------------------------------------------

%package -n dwarf-tools
Summary:	Tools for accessing DWARF debugging information
License:	GPLv2
Group:		Development/Tools

%description -n dwarf-tools
C++ version of dwarfdump (dwarfdump2) command-line utilities
to access DWARF debug information.

%files -n dwarf-tools
%{_bindir}/dwarfdump

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%configure --enable-shared --enable-static
LD_LIBRARY_PATH="../libdwarf" %make SONAME="libdwarf.so.%{major}"

%install
install -pDm 0644 libdwarf/dwarf.h %{buildroot}%{_includedir}/libdwarf/dwarf.h
install -pDm 0644 libdwarf/.libs/libdwarf.a %{buildroot}%{_libdir}/libdwarf.a
install -pDm 0644 libdwarf/libdwarf.h %{buildroot}%{_includedir}/libdwarf/libdwarf.h
install -pDm 0755 libdwarf/.libs/libdwarf.so %{buildroot}%{_libdir}/%{name}.so.%{major}.%{version}.0
ln -s %{name}.so.%{major}.%{version}.0 %{buildroot}%{_libdir}/libdwarf.so.%{major}
ln -s %{name}.so.%{major}.%{version}.0 %{buildroot}%{_libdir}/libdwarf.so
install -pDm 0755 dwarfdump/dwarfdump %{buildroot}%{_bindir}/dwarfdump

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14043 |21mr|libdwarf-20210528-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname dwarf %{major}
%define devname %mklibname dwarf -d
%define sdevname %mklibname dwarf -d -s

Summary:	Library to access the DWARF Debugging file format
Name:		libdwarf
Version:	20210528
Release:	1
License:	LGPLv2
Group:		System/Libraries
Url:		http://reality.sgiweb.org/davea/dwarf.html
Source0:	http://www.prevanders.net/%{name}-%{version}.tar.gz
# This patch set up the proper soname
Patch0:		libdwarf-soname-fix.patch
Patch1:		dwarf-20111030-link-against-required-libelf.patch
BuildRequires:	binutils-devel
BuildRequires:	elfutils-devel

#----------------------------------------------------------------------------

%description
Library to access the DWARF debugging file format which supports
source level debugging of a number of procedural languages, such as C, C++,
and Fortran.  Please see http://www.dwarfstd.org for DWARF specification.

%package -n %{libname}
Summary:	Library to access the DWARF Debugging file format
Group:		System/Libraries

%description -n %{libname}
Library to access the DWARF debugging file format which supports
source level debugging of a number of procedural languages, such as C, C++,
and Fortran.  Please see http://www.dwarfstd.org for DWARF specification.

%files -n %{libname}
%doc libdwarf/ChangeLog libdwarf/README libdwarf/COPYING libdwarf/LIBDWARFCOPYRIGHT
%{_libdir}/libdwarf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library and header files of libdwarf
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	dwarf-devel = %{EVRD}

%description -n %{devname}
Development package containing library and header files of libdwarf.

%files -n %{devname}
%doc libdwarf/*.pdf
%dir %{_includedir}/libdwarf
%{_includedir}/libdwarf/dwarf.h
%{_includedir}/libdwarf/libdwarf.h
%{_libdir}/libdwarf.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libdwarf library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	dwarf-static-devel = %{EVRD}

%description -n %{sdevname}
Static libdwarf library.

%files -n %{sdevname}
%{_libdir}/libdwarf.a

#----------------------------------------------------------------------------

%package -n dwarf-tools
Summary:	Tools for accessing DWARF debugging information
License:	GPLv2
Group:		Development/Tools

%description -n dwarf-tools
C++ version of dwarfdump (dwarfdump2) command-line utilities
to access DWARF debug information.

%files -n dwarf-tools
%{_bindir}/dwarfdump

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%configure --enable-shared --enable-static
LD_LIBRARY_PATH="../libdwarf" %make SONAME="libdwarf.so.%{major}"

%install
install -pDm 0644 libdwarf/dwarf.h %{buildroot}%{_includedir}/libdwarf/dwarf.h
install -pDm 0644 libdwarf/.libs/libdwarf.a %{buildroot}%{_libdir}/libdwarf.a
install -pDm 0644 libdwarf/libdwarf.h %{buildroot}%{_includedir}/libdwarf/libdwarf.h
install -pDm 0755 libdwarf/.libs/libdwarf.so %{buildroot}%{_libdir}/%{name}.so.%{major}.%{version}.0
ln -s %{name}.so.%{major}.%{version}.0 %{buildroot}%{_libdir}/libdwarf.so.%{major}
ln -s %{name}.so.%{major}.%{version}.0 %{buildroot}%{_libdir}/libdwarf.so
install -pDm 0755 dwarfdump/dwarfdump %{buildroot}%{_bindir}/dwarfdump

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14044 |21mr|libebml-1.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname ebml %{major}
%define devname %mklibname ebml -d

Summary:	Extensible Binary Meta Language Library
Name:		libebml
Version:	1.4.4
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.matroska.org/
Source0:	http://dl.matroska.org/downloads/libebml/%{name}-%{version}.tar.xz
# CVE-2023-52339
Patch0:		https://github.com/Matroska-Org/libebml/commit/f3249a701df76185103c978f3693684bb0c84b74.patch
BuildRequires:	cmake

%description
This library is used for I/O operations in the Extensible Binary Meta
Language (EBML), which is a kind of binary version of XML.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Extensible Binary Meta Language shared Library
Group:		System/Libraries

%description -n %{libname}
This library is used for I/O operations in the Extensible Binary Meta
Language (EBML), which is a kind of binary version of XML.

%files -n %{libname}
%{_libdir}/libebml.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Extensible Binary Meta Language Library headers and static library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the C++ headers and the static library needed
for development with EBML.

%files -n %{devname}
%doc LICENSE*
%{_includedir}/ebml
%{_libdir}/libebml.so
%{_libdir}/pkgconfig/libebml.pc
%{_libdir}/cmake/EBML/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
    -DCMAKE_INSTALL_LIBDIR=%{_lib}
%make

%install
%makeinstall_std -C build

# fix lib permissions so that it gets properly stripped and -debug isn't empty
chmod a+x %{buildroot}%{_libdir}/*.so*

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14045 |21mr|libe-book-0.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname e-book %{api} %{major}
%define devname %mklibname e-book -d

%define Werror_cflags %{nil}

Summary:	Library for import of reflowable e-book formats
Name:		libe-book
Version:	0.1.3
Release:	2
License:	MPL 2.0
Group:		System/Libraries
Url:		http://libebook.sf.net/
Source0:	http://netcologne.dl.sourceforge.net/project/libebook/libe-book-%{version}/%{name}-%{version}.tar.xz
Patch0:		libe-book-0.1.3-not-declared.patch
BuildRequires:	doxygen
BuildRequires:	gperf
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-io)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblangtag)

%description
Library for import of reflowable e-book formats.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for import of reflowable e-book formats
Group:		System/Libraries

%description -n %{libname}
Library for import of reflowable e-book formats.

%files -n %{libname}
%{_libdir}/libe-book-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}
%{_includedir}/*
%{_libdir}/libe-book-%{api}.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh
%configure --disable-werror
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14046 |21mr|libe-book-0.1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname e-book %{api} %{major}
%define devname %mklibname e-book -d

%define Werror_cflags %{nil}

Summary:	Library for import of reflowable e-book formats
Name:		libe-book
Version:	0.1.3
Release:	4
License:	MPL 2.0
Group:		System/Libraries
Url:		http://libebook.sf.net/
Source0:	http://netcologne.dl.sourceforge.net/project/libebook/libe-book-%{version}/%{name}-%{version}.tar.xz
Patch0:		libe-book-0.1.3-not-declared.patch
BuildRequires:	doxygen
BuildRequires:	gperf
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-io)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblangtag)

%description
Library for import of reflowable e-book formats.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for import of reflowable e-book formats
Group:		System/Libraries

%description -n %{libname}
Library for import of reflowable e-book formats.

%files -n %{libname}
%{_libdir}/libe-book-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}
%{_includedir}/*
%{_libdir}/libe-book-%{api}.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh
%configure --disable-werror
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14047 |21mr|libedit-3.1-1.20150325.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap 20150325
%define major	0
%define libname %mklibname edit %{major}
%define devname %mklibname edit -d

Summary:	Provides generic line editing functions similar to those found in GNU Readline

Name:		libedit
Version:	3.1
Release:	1.%{snap}.2
License:	BSD-style
Group:		System/Libraries
Url:		http://www.thrysoee.dk/editline/
Source0:	http://www.thrysoee.dk/editline/%{name}-%{snap}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncursesw) >= 5.9

%description
This is an autotool- and libtoolized port of the NetBSD Editline library 
(libedit). This Berkeley-style licensed command line editor library 
provides generic line editing, history, and tokenization functions, 
similar to those found in GNU Readline.

%package -n	%{libname}
Summary:	Provides generic line editing functions similar to those found in GNU Readline
Group:		System/Libraries
Conflicts:	libedit < %{EVRD}

%description -n	%{libname}
This is an autotool- and libtoolized port of the NetBSD Editline library 
(libedit). This Berkeley-style licensed command line editor library 
provides generic line editing, history, and tokenization functions, 
similar to those found in GNU Readline.

%package -n	%{devname}
Summary:	Development files for %{name}

Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	libedit < %{EVRD}

%description -n	%{devname}
This package contains development files for %{name}.

%prep
%setup -qn %{name}-%{snap}-%{version}

%build
autoreconf -fiv
%configure --disable-static
%make

%install
%makeinstall_std

# Allows us to include the examples in separate %%doc directory
find examples -type f ! -name "*.c" | %{_bindir}/xargs rm
rm -r examples/.libs

%files -n %{libname}
%{_libdir}/libedit.so.%{major}*

%files -n %{devname}
%doc examples
%doc ChangeLog INSTALL THANKS
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libedit.pc
%{_mandir}/man3/*
%{_mandir}/man5/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14048 |21mr|libeot-0.01-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname eot %{major}
%define devname %mklibname eot -d
%define staticname %mklibname eot -d -s

Name: libeot
Version: 0.01
# Packaged from v0.01 tag in https://github.com/umanwizard/libeot.git
Release: 10
Source0: %{name}-%{version}.tar.xz
Summary: Library for parsing Embedded OpenType files
URL: https://github.com/umanwizard/libeot.git
License: MPL 2.0
Group: System/Libraries

%description
Library for parsing Embedded OpenType (Microsoft font format) files

%package -n %{libname}
Summary: Library for parsing Embedded OpenType files
Group: System/Libraries

%description -n %{libname}
Library for parsing Embedded OpenType (Microsoft font format) files

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%prep
%setup -q
libtoolize --force
aclocal
autoheader
automake -a
autoconf
%configure

%build
%make

%install
%makeinstall_std

%files
%{_bindir}/*

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14049 |21mr|libepc-0.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver %(echo %{version} | cut -d. -f1,2)
%define api 1.0
%define major 3
%define libname %mklibname epc %{api} %{major}
%define libnameui %mklibname epc-ui %{api} %{major}
%define develname %mklibname -d epc
%define develnameui %mklibname -d epc-ui

Summary:	Easy Publish and Consume library
Name:		libepc
Version:	0.4.6
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz


BuildRequires:	intltool
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(gnutls) >= 1.4
BuildRequires:	pkgconfig(avahi-ui-gtk3) >= 0.6
BuildRequires:	pkgconfig(uuid) >= 1.36
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	avahi-common-devel

%description
The Easy Publish and Consume library provides an easy method to:

* publish data per HTTPS
* announce that information via DNS-SD
* find that information
* and finally consume it

You can use this library as key/value store published to the network,
using encryption, authentication and service discovery.

%package i18n
Summary:	Easy Publish and Consume library
Group:		System/Libraries

%description i18n
The Easy Publish and Consume library provides an easy method to:

* publish data per HTTPS
* announce that information via DNS-SD
* find that information
* and finally consume it

You can use this library as key/value store published to the network,
using encryption, authentication and service discovery.

%package -n %{libname}
Group:		System/Libraries
Summary:	Easy Publish and Consume library

%description -n %{libname}
The Easy Publish and Consume library provides an easy method to:

* publish data per HTTPS
* announce that information via DNS-SD
* find that information
* and finally consume it

You can use this library as key/value store published to the network,
using encryption, authentication and service discovery.

%package -n %{libnameui}
Group:		System/Libraries
Summary:	Easy Publish and Consume library

%description -n %{libnameui}
Libraries for %{name}-ui

%package -n %{develname}
Group:		Development/C
Summary:	Easy Publish and Consume library
Requires:	%{libname} = %{version}-%{release}
Provides:	libepc-devel = %{version}-%{release}

%description -n %{develname}
%{name} development headers and libraries.

%package -n %{develnameui}
Group:		Development/C
Summary:	Easy Publish and Consume library
Requires:	%{libnameui} = %{version}-%{release}

%description -n %{develnameui}
%{name}-ui development headers and libraries.

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name}

%check
#gw make check needs a running avahi daemon
#make check

%files i18n -f %{name}.lang

%files -n %{libname}
%{_libdir}/libepc-%{api}.so.%{major}*

%files -n %libnameui
%{_libdir}/libepc-ui-%{api}.so.%{major}*

%files -n %{develname}
%doc NEWS ChangeLog AUTHORS README
%{_includedir}/libepc-%{api}
%{_libdir}/libepc-%{api}.so
%{_libdir}/pkgconfig/libepc-%{api}.pc
%{_datadir}/gtk-doc/html/libepc-%{api}

%files -n %{develnameui}
%{_includedir}/libepc-ui-%{api}
%{_libdir}/libepc-ui-%{api}.so
%{_libdir}/pkgconfig/libepc-ui-%{api}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14050 |21mr|libepoxy-1.5.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname epoxy %{major}
%define	devname %mklibname epoxy -d

Summary:	Direct Rendering Manager runtime library
Name:		libepoxy
Version:	1.5.8
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://github.com/anholt/libepoxy
Source0:	https://github.com/anholt/libepoxy/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	meson >= 0.50.0
BuildRequires:	ninja
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xorg-macros)

%description
A library for handling OpenGL function pointer management.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Direct Rendering Manager runtime library
Group:		System/Libraries

%description -n %{libname}
A library for handling OpenGL function pointer management.

%files -n %{libname}
%doc COPYING
%{_libdir}/libepoxy.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libepoxy
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc COPYING README.md
%{_datadir}/doc/epoxy/html/*
#dir {_includedir}/
%{_includedir}/epoxy/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/epoxy.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Ddocs="true"
%meson_build

%install
%meson_install

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14051 |21mr|libepubgen-0.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname epubgen %{api} %{major}
%define devname %mklibname epubgen %{api} -d

Summary:	An EPUB generator library
Name:		libepubgen
Version:	0.1.1
Release:	4
License:	MPLv2.0
Group:		System/Libraries
Url:		https://sourceforge.net/projects/libepubgen/
Source:		http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
%{name} is a library for generating EPUB documents. It is directly
pluggable into import filters based on librevenge.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	An EPUB generator library
Group:		System/Libraries

%description -n %{libname}
%{name} is a library for generating EPUB documents. It is directly
pluggable into import filters based on librevenge.

%files -n %{libname}
%doc AUTHORS COPYING README NEWS
%{_libdir}/%{name}-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/%{name}-%{api}/
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains documentation files for %{name}.

%files doc
%doc docs/doxygen/html

#------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-silent-rules \
	--disable-static \
	--disable-werror

sed -i \
	-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
	-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
	libtool
%make

%install
%makeinstall_std
# we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14052 |21mr|liberasurecode-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname erasurecode %{major}
%define libnamersvand %mklibname erasurecode_rs_vand %{major}
%define libnullcode %mklibname nullcode %{major}
%define libxorcode %mklibname xorcode %{major}
%define devname %mklibname erasurecode -d

Summary:	Erasure Code API library written in C with pluggable backends
Name:		liberasurecode
Version:	1.6.2
Release:	1
# Main license is a 2-clause BSD with clause numbers removed for some reason.
License:	BSD and CRC32
Group:		System/Libraries
Url:		https://bitbucket.org/tsg-/liberasurecode/
# FROM FEDORA PACKAGE:
# We pull the tag using git CLI. Save the current command for Source0 below.
#  tag=1.6.2 eval 'git archive -o ../liberasurecode-$tag.tar.gz --prefix=liberasurecode-$tag/ $tag'
# Note that as of 1.2.0, liberasurecode migrated to github.com/openstack
# and switched to tags without the 'v' prefix.
Source0:	%{name}-%{version}.tar.gz
Patch0:		liberasurecode-1.6.2-no-werror.patch
Patch1:		liberasurecode-1.6.2-linkage.patch
Patch2:		liberasurecode-1.0.5-docs.patch
Patch3:		liberasurecode-1.5.0-ldtest.patch
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	pkgconfig(zlib)

%description
An API library for Erasure Code, written in C. It provides a number
of pluggable backends, such as Intel ISA-L library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Erasure Code API library written in C with pluggable backends
Group:		System/Libraries

%description -n %{libname}
An API library for Erasure Code, written in C. It provides a number
of pluggable backends, such as Intel ISA-L library.

%files -n %{libname}
%license COPYING
%doc AUTHORS ChangeLog README.md
%{_libdir}/liberasurecode.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamersvand}
Summary:	Erasure Code API library written in C with pluggable backends
Group:		System/Libraries

%description -n %{libnamersvand}
An API library for Erasure Code, written in C. It provides a number
of pluggable backends, such as Intel ISA-L library.

%files -n %{libnamersvand}
%license COPYING
%doc AUTHORS ChangeLog README.md
%{_libdir}/liberasurecode_rs_vand.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnullcode}
Summary:	Erasure Code API library written in C with pluggable backends
Group:		System/Libraries

%description -n %{libnullcode}
An API library for Erasure Code, written in C. It provides a number
of pluggable backends, such as Intel ISA-L library.

%files -n %{libnullcode}
%license COPYING
%doc AUTHORS ChangeLog README.md
%{_libdir}/libnullcode.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libxorcode}
Summary:	Erasure Code API library written in C with pluggable backends
Group:		System/Libraries

%description -n %{libxorcode}
An API library for Erasure Code, written in C. It provides a number
of pluggable backends, such as Intel ISA-L library.

%files -n %{libxorcode}
%license COPYING
%doc AUTHORS ChangeLog README.md
%{_libdir}/libXorcode.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamersvand} = %{EVRD}
Requires:	%{libnullcode} = %{EVRD}
Requires:	%{libxorcode} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/liberasurecode.so
%{_libdir}/liberasurecode_rs_vand.so
%{_libdir}/libnullcode.so
%{_libdir}/libXorcode.so
%{_libdir}/pkgconfig/erasurecode-1.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation

%description doc
The documentation for %{name}.

%files doc
%{_datadir}/doc/%{name}/html/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -iv
%configure \
	--disable-static \
	--disable-werror \
	--disable-mmi
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14053 |21mr|libesmtp-1.0.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname esmtp %{major}
%define develname %mklibname esmtp -d

%define plugindir %{_libdir}/esmtp%{major}-plugins

Summary:	SMTP client library
Name:		libesmtp
Version:	1.0.6
Release:	11
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.stafford.uklinux.net/libesmtp/
Source0:	ttp://www.stafford.uklinux.net/libesmtp/%{name}-%{version}.tar.gz
Patch0:		libesmtp-build.patch
BuildRequires:	pkgconfig(openssl)
BuildRequires:	libltdl-devel
BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	libtool

%description
LibESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
Exim. It may be used as part of a Mail User Agent (MUA) or another
program that must be able to post electronic mail but where mail
functionality is not the program's primary purpose.

#================================================================================

%package -n	%{libname}
Summary:	%{summary}
Group:		%{group}
Provides:	%{name} = %{version}-%{release}

%description -n	%{libname}
LibESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
Exim. It may be used as part of a Mail User Agent (MUA) or another
program that must be able to post electronic mail but where mail
functionality is not the program's primary purpose.

%files -n %{libname}
%doc AUTHORS COPYING* ChangeLog NEWS Notes README TODO
%{_libdir}/libesmtp.so.%{major}*
%{plugindir}

#================================================================================

%package -n	%{develname}
Summary:	Headers and development libraries for libESMTP
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
LibESMTP is a library to manage posting (or submission of) electronic
mail using SMTP to a preconfigured Mail Transport Agent (MTA) such as
Exim.

The libesmtp-devel package contains headers and development libraries
necessary for building programs against libesmtp.

%files -n %{develname}
%{_bindir}/libesmtp-config
%{_includedir}/*
%{_libdir}/*.so

#================================================================================

%prep
%setup -q
%patch0 -p1 -b .build

%build
rm -f configure
libtoolize --copy --force; aclocal; autoconf; autoheader; automake --gnu --add-missing --copy

if pkg-config openssl ; then
    export CFLAGS="$CFLAGS %{optflags} `pkg-config --cflags openssl`"
    export CPPFLAGS="$CPPFLAGS `pkg-config --cflags-only-I openssl`"
    export LDFLAGS="$LDFLAGS `pkg-config --libs-only-L openssl`"
fi

%configure \
    --with-auth-plugin-dir=%{plugindir} \
    --enable-pthreads \
    --enable-require-all-recipients \
    --enable-etrn \
    --enable-ntlm \
    --disable-static

%make

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14054 |21mr|libestr-0.1.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname	%mklibname estr %{major}
%define devname %mklibname estr -d

Name:           libestr
Version:	0.1.11
Release:	1
Summary:        String handling essentials library
Group:		System/Libraries
License:        LGPLv2+
URL:            http://libestr.adiscon.com/
Source0:        http://libestr.adiscon.com/files/download/libestr-%{version}.tar.gz

%description
This package compiles the string handling essentials library
used by the Rsyslog daemon.

%package        -n %{libname}
Summary:        String handling essentials library
Group:		System/Libraries

%description    -n %{libname}
This package compiles the string handling essentials library
used by the Rsyslog daemon.

%package        -n %{devname}
Summary:        Development files for %{name}
Group:		Development/C
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description    -n %{devname}
The package contains libraries and header files for
developing applications that use libestr.

%prep
%setup -q

%build
%configure --disable-static --with-pic
%make

%install
%makeinstall_std

%files -n %{libname}
%doc README COPYING AUTHORS ChangeLog
%{_libdir}/lib*.so.%{major}*

%files -n %{devname}
%{_includedir}/libestr.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/libestr.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14055 |21mr|libetonyek-0.1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname etonyek %{api} %{major}
%define devname %mklibname etonyek -d

Summary:	Library for interpreting and importing Apple Keynote presentiations
Name:		libetonyek
Version:	0.1.1
Release:	8
License:	MPL 2.0
Group:		System/Libraries
Url:		http://freedesktop.org/wiki/Software/libetonyek
Source0:	http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	gperf
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)

%description
Library for interpreting and importing Apple Keynote presentiations.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for interpreting and importing Apple Keynote presentiations
Group:		System/Libraries

%description -n %{libname}
Library for interpreting and importing Apple Keynote presentiations.

%files -n %{libname}
%{_libdir}/libetonyek-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%doc %{_docdir}/libetonyek
%{_includedir}/*
%{_libdir}/libetonyek-%{api}.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14056 |21mr|libev-4.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname ev %{major}
%define devname %mklibname ev -d

Summary:	High-performance event loop/event model
Name:		libev
Epoch:		1
Version:	4.33
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://software.schmorp.de/pkg/libev.html
Source0:	http://dist.schmorp.de/libev/%{name}-%{version}.tar.gz
Source1:	%{name}.pc.in

%description
libev is a high-performance event loop/event model with lots of features.
(see benchmark at http://libev.schmorp.de/bench.html)

It is modelled (very losely) after libevent and the Event perl module,
but aims to be faster and more correct, and also more featureful.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	High-performance event loop/event model
Group:		System/Libraries

%description -n %{libname}
libev is a high-performance event loop/event model with lots of features.
(see benchmark at http://libev.schmorp.de/bench.html)

It is modelled (very losely) after libevent and the Event perl module,
but aims to be faster and more correct, and also more featureful.

%files -n %{libname}
%{_libdir}/libev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	High-performance event loop/event model
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the development files needed in order to develop applications using
libev.

%files -n %{devname}
%doc README
%{_includedir}/%{name}/ev*.h
%{_libdir}/libev*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/ev*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i -e "/^AM_INIT_AUTOMAKE/a\ " configure.ac

# Add pkgconfig support
cp -p %{SOURCE1} .
sed -i -e 's|Makefile|Makefile libev.pc|' configure.ac configure
sed -i -e 's|lib_LTLIBRARIES|pkgconfigdir = $(libdir)/pkgconfig\n\npkgconfig_DATA = libev.pc\n\nlib_LTLIBRARIES|' \
    Makefile.am Makefile.in

%build
autoreconf -fiv
%configure \
	--disable-static \
	--includedir=%{_includedir}/%{name}
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14057 |21mr|libevdev-1.11.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname evdev %{major}
%define devname %mklibname evdev -d
%define utilname libevdev-utils

Name:		libevdev
Version:	1.11.0
Release:	3
Summary:	Kernel Evdev Device Wrapper Library
Group:		System/Libraries
License:	MIT
URL:		http://www.freedesktop.org/wiki/Software/libevdev
Source0:	http://www.freedesktop.org/software/%{name}/%{name}-%{version}.tar.xz

BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	python

%description
%{name} is a library to wrap kernel evdev devices and provide a proper API
to interact with those devices.

%package -n %{libname}
Summary:	Kernel Evdev Device Wrapper Library
Group:		System/Libraries

%description -n %{libname}
%{name} is a library to wrap kernel evdev devices and provide a proper API
to interact with those devices.

%files -n %{libname}
%{_libdir}/libevdev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Kernel Evdev Device Wrapper Library - Development Package
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}: headers, etc.

%files -n %{devname}
%doc COPYING
%dir %{_includedir}/libevdev-1.0/
%dir %{_includedir}/libevdev-1.0/libevdev
%{_includedir}/libevdev-1.0/libevdev/libevdev.h
%{_includedir}/libevdev-1.0/libevdev/libevdev-uinput.h
%{_libdir}/libevdev.so
%{_libdir}/pkgconfig/libevdev.pc
%{_mandir}/man3/libevdev.3*
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%package -n %{utilname}
Summary:	Kernel Evdev Device Wrapper Library - Utilities Package
Group:		System/Kernel and hardware

%description -n %{utilname}
This package provides utilities for evdev devices.

%files -n %{utilname}
%{_bindir}/touchpad-edge-detector
%{_bindir}/mouse-dpi-tool
%{_bindir}/libevdev-tweak-device

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf --force -v --install
%configure --disable-static --disable-silent-rules
%make

%install
%makeinstall_std

# We intentionally don't ship *.la files
rm -f %{buildroot}%{_libdir}/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14058 |21mr|libevent-2.1.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.1
%define major 7
%define libname %mklibname event %{api} %{major}
%define libcore %mklibname event_core %{api} %{major}
%define libextra %mklibname event_extra %{api} %{major}
%define libopenssl %mklibname event_openssl %{api} %{major}
%define libpthreads %mklibname event_pthreads %{api} %{major}
%define devname %mklibname -d event

Summary:	Abstract asynchronous event notification library
Name:		libevent
Version:	2.1.12
Release:	1
Group:		System/Libraries
License:	BSD
Url:		https://libevent.org/
Source0:	https://github.com/libevent/libevent/archive/refs/tags/release-%{version}-stable.tar.gz?/%{name}-%{version}-stable.tar.gz
Patch0:		libevent-2.1.12-stable-fix-linking.patch
# From Fedora
Patch1:		libevent-nonettests.patch
# Upstream patch:
Patch2:		0001-build-do-not-try-install-doxygen-man-pages-if-they-w.patch
# Upstream patch:
Patch3:		0001-build-add-doxygen-to-all.patch
# https://github.com/transmission/transmission/issues/1437
Patch4:		0001-Revert-Fix-checking-return-value-of-the-evdns_base_r.patch
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)

%description
The libevent API provides a mechanism to execute a callback function when a
specific event occurs on a file descriptor or after a timeout has been reached.
libevent is meant to replace the asynchronous event loop found in event driven
network servers. An application just needs to call event_dispatch() and can
then add or remove events dynamically without having to change the event loop.

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Abstract asynchronous event notification library
Group:		System/Libraries

%description -n	%{libname}
The libevent API provides a mechanism to execute a callback function when a
specific event occurs on a file descriptor or after a timeout has been reached.
libevent is meant to replace the asynchronous event loop found in event driven
network servers. An application just needs to call event_dispatch() and can
then add or remove events dynamically without having to change the event loop.

%files -n %{libname}
%{_libdir}/libevent-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{libcore}
Summary:	Abstract asynchronous event notification library
Group:		System/Libraries

%description -n	%{libcore}
This package contains a shared library for %{name}.

%files -n %{libcore}
%{_libdir}/libevent_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{libextra}
Summary:	Abstract asynchronous event notification library
Group:		System/Libraries

%description -n	%{libextra}
This package contains a shared library for %{name}.

%files -n %{libextra}
%{_libdir}/libevent_extra-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{libopenssl}
Summary:	Abstract asynchronous event notification library
Group:		System/Libraries

%description -n	%{libopenssl}
This package contains a shared library for %{name}.

%files -n %{libopenssl}
%{_libdir}/libevent_openssl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{libpthreads}
Summary:	Abstract asynchronous event notification library
Group:		System/Libraries

%description -n	%{libpthreads}
This package contains a shared library for %{name}.

%files -n %{libpthreads}
%{_libdir}/libevent_pthreads-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development library and header files for the libevent library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcore} = %{EVRD}
Requires:	%{libextra} = %{EVRD}
Requires:	%{libopenssl} = %{EVRD}
Requires:	%{libpthreads} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_bindir}/event_rpcgen.py
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Development documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains the development documentation for %{name}.

%files doc
%{_defaultdocdir}/%{name}/html

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{version}-stable
%patch0 -p2
%patch1 -p1 -b .nonettests
%patch2 -p1 -b .fix-install
%patch3 -p1 -b .fix-install-2
%patch4 -p1 -b .revert-problematic-change

%build
autoreconf -fi
%configure --enable-doxygen-doc
%make

%install
%makeinstall_std

# Fix multilib install of devel (bug #477685)
mv %{buildroot}%{_includedir}/event2/event-config{,-%{__isa_bits}}.h
cat > %{buildroot}%{_includedir}/event2/event-config.h << EOF
#include <bits/wordsize.h>

#if __WORDSIZE == 32
#include <event2/event-config-32.h>
#elif __WORDSIZE == 64
#include <event2/event-config-64.h>
#else
#error "Unknown word size"
#endif
EOF

pathfix.py -i "%{__python3} -s" -p %{buildroot}/%{_bindir}/event_rpcgen.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14059 |21mr|libewf-20140608-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname ewf %{major}
%define devname %mklibname ewf -d

Summary:	Utils for use with the Expert Witness Compression Format (EWF)
Name:		libewf
Version:	20140608
Release:	6
License:	BSD
Group:		System/Libraries
Url:		http://libewf.sourceforge.net/
Source0:	https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/%{name}-%{version}.tar.gz
BuildRequires:	libtool
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
Libewf is a library for support of the Expert Witness Compression Format (EWF),
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
Libewf allows you to read and write media information within the EWF files.

This package contains utils for use with the Expert Witness Compression Format
(EWF).

%files
%{_bindir}/ewfacquire
%{_bindir}/ewfacquirestream
%{_bindir}/ewfexport
%{_bindir}/ewfinfo
%{_bindir}/ewfverify
%{_bindir}/ewfmount
%{_bindir}/ewfdebug
%{_bindir}/ewfrecover
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Expert Witness Compression Format (EWF) shared library
Group:		System/Libraries

%description -n %{libname}
Libewf is a library for support of the Expert Witness Compression Format (EWF),
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
Libewf allows you to read and write media information within the EWF files.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS
%{_libdir}/libewf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the libewf library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libewf is a library for support of the Expert Witness Compression Format (EWF),
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
Libewf allows you to read and write media information within the EWF files.

This package contains development files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libewf.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#export WANT_AUTOCONF_2_5=1
#rm -f configure
#libtoolize --copy --force; aclocal; autoconf --force; autoheader; automake

export CFLAGS="%{optflags} -std=gnu89"

%configure \
	--disable-static

%make_build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14060 |21mr|libexif-0.6.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 12
%define	libname %mklibname exif %{major}
%define	devname %mklibname exif -d
%define	langname libexif-%{major}

Summary:	Library to access EXIF files (extended JPEG files)
Name:		libexif
Version:	0.6.24
Release:	1
License:	LGPLv2+
Group:		Graphics
Url:		https://libexif.github.io
Source0:	https://github.com/libexif/libexif/releases/download/libexif-0_6_24-release/%{name}-%{version}.tar.bz2
Patch0:		libexif-0.6.13-pkgconfig-fix.patch
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	gettext-devel >= 0.14.1

%description
Most digital cameras produce EXIF files, which are JPEG files with extra tags
that contain information about the image. This library allows you to parse an
EXIF file and read the data from those tags.

#----------------------------------------------------------------------------

%package -n %{name}%{major}-common
Summary:	Library to access EXIF files - Translations
Group:		Graphics

%description -n %{name}%{major}-common
This package contains the translations for %{name}%{major}.

%files -n %{name}%{major}-common -f %{langname}.lang
%doc COPYING

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to access EXIF files (extended JPEG files)
Group:		System/Libraries
Requires:	%{name}%{major}-common = %{EVRD}
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Most digital cameras produce EXIF files, which are JPEG files with extra tags
that contain information about the image. This library allows you to parse an
EXIF file and read the data from those tags.
This package contains the library.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and links to compile against the "%{libname}" library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains all files which one needs to compile programs using
the %{libname} library.

%files -n %{devname}
%doc ChangeLog COPYING NEWS README SECURITY.md
%{_docdir}/%{name}
%{_libdir}/%{name}.so
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}.pc


#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p2 -b .includedir


%build
autoreconf -vfi
%configure --disable-static --disable-rpath
%make


%install
%makeinstall_std

%find_lang %{langname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14061 |21mr|libexif-gtk-0.3.5-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname exif-gtk %{major}
%define develname %mklibname exif-gtk -d

Summary:	Library to access EXIF files (extended JPEG files)
Name:		libexif-gtk
Version:	0.3.5
Release:	19
License:	LGPL
Group:		Graphics
Url:		http://sourceforge.net/projects/libexif/
Source:		http://belnet.dl.sourceforge.net/sourceforge/libexif/libexif-gtk-%{version}.tar.bz2
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(glib-2.0)

%description
Most digital cameras produce EXIF files, which are JPEG files with
extra tags that contain information about the image. The EXIF library
allows you to parse an EXIF file and read the data from those tags.

This library does not contain any documentation, but it seems to make
the connection between libexif, the core library for EXIF, and
GTK-based graphical frontends.

%package -n %{libname}
Summary:	Library to access EXIF files (extended JPEG files)
Group:		Graphics
Provides:	libexif-gtk

%description  -n %{libname}
Most digital cameras produce EXIF files, which are JPEG files with
extra tags that contain information about the image. The EXIF library
allows you to parse an EXIF file and read the data from those tags.

This library does not contain any documentation, but it seems to make
the connection between libexif, the core library for EXIF, and
GTK-based graphical frontends.

%package -n %{develname}
Summary:	Headers and links to compile against the "%{libname}" library
Group:		Development/C
Requires: 	%{libname} = %{version}-%{release}
Provides:	libexif-gtk-devel

%description -n %{develname}
This package contains all files which one needs to compile programs using
the "%{name}" library.

%prep
%setup -q

# Disable GTK_DISABLE_DEPRECATED macro
sed -i s/-DGTK_DISABLE_DEPRECATED// */Makefile.*

%build
# "autogen" is needed because we have a CVS snapshot.
#./autogen.sh
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

%files -n %{libname} -f %{name}.lang
%doc COPYING ChangeLog
%{_libdir}/*.so.*

%files  -n %{develname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14062 |21mr|libexttextcat-3.4.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 2.0
%define libname %mklibname exttextcat %{api} %{major}
%define devname %mklibname exttextcat -d

Summary:	Text categorization library
Name:		libexttextcat
Version:	3.4.5
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libexttextcat
Source0:	http://dev-www.libreoffice.org/src/libexttextcat/%{name}-%{version}.tar.xz

%description
N-Gram-Based Text Categorization library primarily intended for language
guessing.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Text categorization library
Group:		System/Libraries
Requires:	%{name}-data >= %{EVRD}
Conflicts:	%{_lib}exttextcat0 < 3.3.1-8
Obsoletes:	%{_lib}exttextcat0 < 3.3.1-8

%description -n %{libname}
N-Gram-Based Text Categorization library primarily intended for language
guessing.

%files -n %{libname}
%{_libdir}/libexttextcat-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	textcat-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%dir %{_includedir}/%{name}
%{_libdir}/libexttextcat-%{api}.so
%{_includedir}/%{name}/*
%{_libdir}/pkgconfig/*.pc
%{_datadir}/vala/vapi/libexttextcat.vapi

#----------------------------------------------------------------------------

%package tools
Summary:	Tool for creating custom document fingerprints
Group:		Publishing
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}textcat-devel < 3.3.1

%description tools
The %{name}-tools package contains the createfp program that allows
you to easily create your own document fingerprints.

%files tools
%{_bindir}/createfp

#----------------------------------------------------------------------------

%package data
Summary:	Data files for text categorization library
Group:		System/Libraries
Conflicts:	%{_lib}exttextcat0 < 3.3.1-4

%description data
Data files for %{name}.

%files data
%doc LICENSE README*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
mkdir -p m4
autoreconf -fi
%configure \
	--disable-static \

%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14063 |21mr|libfakekey-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname fakekey 0
%define devname %mklibname fakekey -d
%define _disable_rebuild_configure 1

Summary:	Converting characters to X key-presses
Name:		libfakekey
Version:	0.3
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://projects.o-hand.com/matchbox/
Source0:	http://git.yoctoproject.org/cgit.cgi/libfakekey/snapshot/libfakekey-%{version}.tar.gz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)

%description
libfakekey is a simple library for converting UTF-8 characters into
'fake' X key-presses.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Converting characters to X key-presses
Group:		System/Libraries

%description -n %{libname}
libfakekey is a simple library for converting UTF-8 characters into
'fake' X key-presses.

%files -n %{libname}
%doc COPYING
%{_libdir}/libfakekey.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/fakekey/
%{_libdir}/libfakekey.so
%{_libdir}/pkgconfig/libfakekey.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -vfi
export LDFLAGS="-lX11 -lXtst -lXi"
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14064 |21mr|libfastjson-0.99.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname fastjson %{major}
%define devname %mklibname fastjson -d

Summary:	Fast JSON parsing library, a fork of json-c
Name:		libfastjson
Version:	0.99.9
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://github.com/rsyslog/libfastjson
Source0:	http://download.rsyslog.com/libfastjson/%{name}-%{version}.tar.gz

%description
A fast JSON parsing library, a fork of json-c, developed by the rsyslog team
and used for rsyslog and liblognorm.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast JSON parsing shared library
Group:		System/Libraries

%description -n %{libname}
A fast JSON parsing library, a fork of json-c, developed by the rsyslog team
and used for rsyslog and liblognorm.

%files -n %{libname}
%{_libdir}/libfastjson.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libfastjson
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
A fast JSON parsing library, a fork of json-c, developed by the rsyslog team
and used for rsyslog and liblognorm.

%files -n %{devname}
%{_libdir}/libfastjson.so
%{_includedir}/libfastjson
%{_libdir}/pkgconfig/libfastjson.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14065 |21mr|libffado-2.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname ffado %{major}
%define	devname %mklibname ffado -d

Summary:	Firewire audio drivers for JACK
Name:		libffado
Version:	2.4.4
Release:	1
License:	GPLv2+ and GPLv3+
Group:		Sound
Url:		http://www.ffado.org/
Source0:	http://www.ffado.org/files/%{name}-%{version}.tgz
Patch0:		libffado-2.4.4-no-test-apps.patch
Patch1:		libffado-2.4.4-icon-name.patch
BuildRequires:	scons
BuildRequires:	subversion
BuildRequires:	python3-dbus
BuildRequires:	python3-qt5-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-c++-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(jack) >= 1.9.9
BuildRequires:	pkgconfig(libavc1394) >= 0.5.3
BuildRequires:	pkgconfig(libconfig)
BuildRequires:	pkgconfig(libiec61883) >= 1.1.0
BuildRequires:	pkgconfig(libraw1394) >= 2.0.5
BuildRequires:	pkgconfig(libxml++-2.6)

%description
The FFADO library provides a generic, open-source solution for the
support of FireWire based audio devices for the Linux platform. It is the
successor of the FreeBoB project. Currently this library is used by the
firewire backends of the jack audio connection kit sound server
(jackit package). This backend provides audio and midi support,
and is available in both jack1 and jack2.

#----------------------------------------------------------------------------

%package -n ffado
Summary:	Firewire audio driver applications and utilities
Group:		Sound
Requires:	%{libname} = %{EVRD}
Requires:	python3-dbus
Requires:	python3-qt5
#Requires:	qt4-qtdbus
Conflicts:	%{mklibname ffado 2} < 2.1.0-2

%description -n ffado
Configuration utilities for the FFADO firewire drivers.

%files -n ffado
%doc AUTHORS ChangeLog LICENSE.* README
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/configuration
%{_datadir}/%{name}/*.xml
%{_datadir}/applications/ffado-mixer.desktop
%{_datadir}/metainfo/ffado-mixer.appdata.xml
%dir %{_datadir}/%{name}/icons
%{_datadir}/%{name}/icons/hi64-apps-ffado.png
%{py3_puresitedir}/ffado/*.ui
%{py3_puresitedir}/ffado/*.py*
%{py3_puresitedir}/ffado/__pycache__
%{py3_puresitedir}/ffado/mixer/*.ui
%{py3_puresitedir}/ffado/mixer/*.py*
%{py3_puresitedir}/ffado/mixer/__pycache__
%{py3_puresitedir}/ffado/widgets/*.py*
%{py3_puresitedir}/ffado/widgets/__pycache__
%{_datadir}/dbus-1/services/org.ffado.Control.service
%doc %{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Firewire audio drivers for JACK
Group:		System/Libraries

%description -n %{libname}
The FFADO library provides a generic, open-source solution for the
support of FireWire based audio devices for the Linux platform. It is the
successor of the FreeBoB project. Currently this library is used by the
firewire backends of the jack audio connection kit sound server
(jackit package). This backend provides audio and midi support,
and is available in both jack1 and jack2.

%files -n %{libname}
%doc AUTHORS LICENSE.*
%{_libdir}/libffado.so.%{major}*
%{_udevrulesdir}/60-ffado.rules

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Firewire audio driver library development headers
Group:		Sound
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files needed to build applications against libffado.

%files -n %{devname}
%doc AUTHORS LICENSE.*
%{_libdir}/%{name}.so
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libffado/static_info.txt

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix Python shebangs
sed -i 's|/usr/bin/.*python$|/usr/bin/python3|' \
    admin/*.py doc/SConscript tests/python/*.py tests/*.py \
    support/mixer-qt4/ffado-mixer* support/mixer-qt4/SConscript \
    support/tools/*.py support/tools/SConscript

%build
%config_update
#%%define _disable_ld_no_undefined 1
%scons \
	PREFIX=%{_prefix} \
	LIBDIR=%{_libdir} \
	MANDIR=%{_mandir} \
	PYTHON_INTERPRETER=/usr/bin/python3 \
	CUSTOM_ENV=True \
	CFLAGS="%{optflags} -std=gnu++11 -ffast-math" \
	CXXFLAGS="%{optflags} -std=gnu++11 -ffast-math" \
	LDFLAGS="%{ldflags}" \
	UDEVDIR=%{_udevrulesdir} \
	ENABLE_OPTIMIZATIONS=True


%install
%scons_install \
	PREFIX=%{_prefix} \
	LIBDIR=%{_libdir} \
	DESTDIR=%{buildroot}

rm -rf %{buildroot}%{_bindir}/test-dice-eap

# Provide a .desktop file for mixer utility
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/ffado-mixer.desktop <<EOF
[Desktop Entry]
Name=Ffado Mixer
Name[ru]=Микшер Ffado
Comment=Mixer for Firewire Audio Devices
Comment[ru]=Микшер для аудио-устройств Firewire
Exec=ffado-mixer
Icon=hi64-apps-ffado.png
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Multimedia-Sound;AudioVideo;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14066 |21mr|libffi-3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %nil

%define major 7
%define libname %mklibname ffi %{major}
%define devname %mklibname ffi -d
%define staticname %mklibname ffi -d -s
# temporary fix, works incorrectly with -O2,-O3 flags
%ifarch %{e2k}
#% global optflags %{optflags} -O0
%endif

Summary:	A portable foreign function interface library
Name:		libffi
Version:	3.3
Release:	3
License:	BSD
Group:		System/Libraries
Url:		http://sourceware.org/%{name}
Source0:	ftp://sourceware.org/pub/%{name}/%{name}-%{version}.tar.gz
Patch0:		libffi-3.2.1-o-tmpfile-eacces.patch
Patch1:		libffi-3.4.2-e2k.patch

%description
Compilers for high level languages generate code that follow certain
conventions. These conventions are necessary, in part, for separate
compilation to work. One such convention is the "calling convention".
The calling convention is a set of assumptions made by the compiler
about where function arguments will be found on entry to a function. A
calling convention also specifies where the return value for a function
is found.

Some programs may not know at the time of compilation what arguments
are to be passed to a function.  For instance, an interpreter may be
told at run-time about the number and types of arguments used to call a
given function. `Libffi' can be used in such programs to provide a
bridge from the interpreter program to compiled code.

The `libffi' library provides a portable, high level programming
interface to various calling conventions. This allows a programmer to
call any function specified by a call interface description at run time.

FFI stands for Foreign Function Interface. A foreign function
interface is the popular name for the interface that allows code
written in one language to call code written in another language. The
`libffi' library really only provides the lowest, machine dependent
layer of a fully featured foreign function interface. A layer must
exist above `libffi' that handles type conversions for values passed
between the two languages.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A portable foreign function interface library
Group:		System/Libraries
# compat with RH/Fedora
Provides:   libffi = %{EVRD}

%description -n %{libname}
Compilers for high level languages generate code that follow certain
conventions. These conventions are necessary, in part, for separate
compilation to work. One such convention is the "calling convention".
The calling convention is a set of assumptions made by the compiler
about where function arguments will be found on entry to a function. A
calling convention also specifies where the return value for a function
is found.

Some programs may not know at the time of compilation what arguments
are to be passed to a function.  For instance, an interpreter may be
told at run-time about the number and types of arguments used to call a
given function. `Libffi' can be used in such programs to provide a
bridge from the interpreter program to compiled code.

The `libffi' library provides a portable, high level programming
interface to various calling conventions. This allows a programmer to
call any function specified by a call interface description at run time.

FFI stands for Foreign Function Interface. A foreign function
interface is the popular name for the interface that allows code
written in one language to call code written in another language. The
`libffi' library really only provides the lowest, machine dependent
layer of a fully featured foreign function interface. A layer must
exist above `libffi' that handles type conversions for values passed
between the two languages.

%files -n %{libname}
%{_libdir}/libffi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	ffi-devel = %{EVRD}
Conflicts:	%{_lib}ffi5-devel < 3.1-3
Obsoletes:	%{_lib}ffi5-devel < 3.1-3

%description -n %{devname}
This package contains libraries and header files for developing
applications that use %{name}.

%files -n %{devname}
%doc LICENSE
%{_libdir}/pkgconfig/libffi.pc
%{_includedir}/ffi*.h
%{_libdir}/libffi.so
%{_mandir}/man3/*
%{_infodir}/libffi.info.*

#----------------------------------------------------------------------------

# The static libffi is used to link Host Dalvik while building
# Android from source - please don't remove it.
%package -n %{staticname}
Summary:	Static libraries for %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	ffi-static-devel = %{EVRD}

%description -n %{staticname}
This package contains static libraries for developing
applications that use %{name}.

%files -n %{staticname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%config_update
%configure --enable-static
%make

%check
#[ -w /dev/ptmx -a -f /proc/self/maps ] || exit
#make -k check

%install
%makeinstall_std

sed -i s,"\$(libdir)","\${libdir}",g %{buildroot}%{_libdir}/pkgconfig/libffi.pc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14067 |21mr|libfido2-1.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname fido2 %{major}
%define devname %mklibname fido2 -d

# XXX not buildsble with -Wstrict-aliasing=2
%global debugcflags -g

Summary:        FIDO2 library
License:        BSD
Group:          System/Libraries
Name:           libfido2
Version:	1.12.0
Release:	1
URL:            https://github.com/Yubico/libfido2
Source0:        https://developers.yubico.com/libfido2/Releases/%{name}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig(hidapi-hidraw)
BuildRequires:  pkgconfig(libcbor)
BuildRequires:  pkgconfig(libudev)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(zlib)

%define _description \
%{name} is an open source library to support the FIDO2 protocol.  FIDO2 is\
an open authentication standard that consists of the W3C Web Authentication\
specification (WebAuthn API), and the Client to Authentication Protocol\
(CTAP).  CTAP is an application layer protocol used for communication\
between a client (browser) or a platform (operating system) with an external\
authentication device (for example the Yubico Security Key).

%description
%_description

#-------------------------------------------------------------------------------

%package -n %{libname}
Summary:        FIDO2 library
Group:          System/Libraries

%description -n %{libname}
%_description

%files -n %{libname}
%license LICENSE
%doc NEWS README.adoc
%{_libdir}/libfido2.so.%{major}{,.*}

#-------------------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for %{name}
Group:          Development/C
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
Development libraries and header files for %{name}

%_description

%files -n %{devname}
%license LICENSE
%doc NEWS README.adoc
%{_libdir}/pkgconfig/*
%{_libdir}/libfido2.so
%{_includedir}/*
%{_mandir}/man3/*

#-------------------------------------------------------------------------------

%package -n fido2-tools
Summary:        FIDO2 tools
Group:          System/Base
Provides:       %{name}-tools = %{EVRD}

%description -n fido2-tools
FIDO2 command line tools to access and configure a FIDO2 compliant
authentication device.

%_description

%files -n fido2-tools
%license LICENSE
%doc NEWS README.adoc
%{_bindir}/*
%{_mandir}/man1/*

#-------------------------------------------------------------------------------

%prep
%autosetup -p1

#sed -i'' man/CMakeLists.txt -e 's,COMMAND gzip,COMMAND true,g'

%build
%ifarch %{e2k}
CFLAGS="%{optflags} -Wno-error=conversion"
%endif
# examples/cred.c:153: undefined reference to `fido_dev_open_with_info'
%cmake -DBUILD_EXAMPLES:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14068 |21mr|libfilezilla-0.31.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 16
%define libname %mklibname filezilla %{major}
%define devname %mklibname filezilla -d

Summary:	Small and modern C++ library
Name:		libfilezilla
Version:	0.31.1
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://lib.filezilla-project.org/
#download link bad, its have checksum in URL
Source0:	libfilezilla-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(nettle)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gmp)

# needed for testsuite
BuildRequires:	locales-en
BuildRequires:	pkgconfig(cppunit)

%description
libfilezilla is a free, open source C++ library, offering some basic
functionality to build high-performing, platform-independent programs.
Some of the highlights include:

* A typesafe, multi-threaded event system that's very simple to use yet
  extremely efficient.
* Timers for periodic events.
* A datetime class that not only tracks timestamp but also their accuracy,
  which simplifies dealing with timestamps originating from different sources.
* Simple process handling for spawning child processes with redirected I/O.

#----------------------------------------------------------------------------

%package locales
Summary:	Locales for %{name}
Group:		System/Internationalization

%description locales
Provides translation messages for %{name}

%files locales -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Small and modern C++ library
Group:		System/Libraries
Recommends:	%{name}-locales >= %{version}

%description -n %{libname}
libfilezilla is a free, open source C++ library, offering some basic
functionality to build high-performing, platform-independent programs.
Some of the highlights include:

* A typesafe, multi-threaded event system that's very simple to use yet
  extremely efficient.
* Timers for periodic events.
* A datetime class that not only tracks timestamp but also their accuracy,
  which simplifies dealing with timestamps originating from different sources.
* Simple process handling for spawning child processes with redirected I/O.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for development with %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README
%doc doc/doxygen-doc/*
%{_includedir}/%{name}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

pushd doc
make html
popd

%install
%makeinstall_std

%find_lang %{name}

%check
LC_ALL=en_US.UTF-8 \
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14069 |21mr|libfixmath-2023.03.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# static-only library...
%define debug_package %{nil}
%define devname %mklibname fixmath -d

Name: libfixmath
Version: 2023.03.21
Release: 2
Source0: https://github.com/PetteriAimonen/libfixmath/archive/refs/heads/master.tar.gz
Patch0: https://salsa.debian.org/debian/libfixmath/-/raw/master/debian/patches/latomic.diff
Patch1: https://salsa.debian.org/debian/libfixmath/-/raw/master/debian/patches/tests-optional.diff
Summary: Fixed point math operations library
URL: https://github.com/PetteriAimonen/libfixmath
License: BSD
Group: System/Libraries
BuildRequires: cmake ninja
BuildRequires: atomic-devel
# ubsan not avail on e2k
%ifnarch %{e2k}
BuildRequires: ubsan-devel
%endif

%description
Libfixmath implements Q16.16 format fixed point operations in C.

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Provides: fixmath-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

Libfixmath implements Q16.16 format fixed point operations in C.

%prep
%autosetup -p1 -n %{name}-master

%build
%cmake -G Ninja \
%ifarch %{e2k}
    -DENABLE_TESTS=OFF
%else
    -DENABLE_TESTS=ON
%endif

%ninja_build

%install
mkdir -p %{buildroot}%{_libdir}
cp build/liblibfixmath.a %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}/libfixmath
cp libfixmath/*.h libfixmath/*.hpp %{buildroot}%{_includedir}/libfixmath

%files -n %{devname}
%{_includedir}/libfixmath
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14070 |21mr|libfli-1.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          libfli
Summary:       Finger Lakes Instrument Library
Version:       1.7
Release:       9
Url:           http://indi.sourceforge.net/index.php/Main_Page
License:       GPLv2+
Group:         Development/Other
Source0:       http://downloads.sourceforge.net/indi/libfli1_%version.tar.gz
Patch0:        libfli-1.7.190-fix-link.patch
Patch1:        libfli-1.7.190-fix-lib.patch
BuildRequires: cmake

%description
Finger Lakes Instrument Library

#---------------------------------------------

%define fli_major 1
%define libfli %mklibname fli %{fli_major}

%package -n %libfli
Summary: %name library
Group: System/Libraries

%description -n %libfli
%name library

%files -n %libfli
%defattr(-,root,root)
%_libdir/libfli.so.%{fli_major}*

#-----------------------------------------------------------------------------

%package devel
Summary: Devel stuff for %{name}
Group: Development/Other
Requires: %libfli = %version

%description  devel
Files needed to build applications based on %{name}.

%files devel
%defattr(-,root,root)
%_includedir/libfli.h
%_libdir/libfli.so

#---------------------------------------------

%prep
%setup -q -n libfli1-%version
%patch0 -p0
%patch1 -p0

%build
%cmake
%make

%install
rm -rf "%{buildroot}"
%makeinstall_std -C build

%clean
rm -rf "%{buildroot}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14071 |21mr|libfm-1.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 4
%define libname %mklibname fm %{major}
%define devname %mklibname fm -d
%bcond_with bootstrap

Summary:	GIO-based library for file manager-like programs
Name:		libfm
Version:	1.3.2
Release:	2
License:	GPLv2+
Group:		File tools
Url:		http://pcmanfm.sourceforge.net/
Source0:	https://github.com/lxde/libfm/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		libfm-0.1.5-set-cutomization.patch
Patch1:		libfm-1.2.3-use-common-desktop-menu.patch
Patch2:		libfm-1.3.2-drop-empty-filter.patch
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	vala
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libexif)
%if %{without bootstrap}
BuildRequires:	pkgconfig(libmenu-cache)
%endif
Conflicts:	lxshortcut < 1.2.0
Provides:	lxshortcut = %{EVRD}

%description
LibFM is a GIO-based library used to develop file manager-like programs. It is
developed as the core of next generation PCManFM and takes care of all file-
related operations such as copy & paste, drag & drop, file associations or
thumbnails support. By utilizing glib/gio and gvfs, libfm can access remote
filesystems supported by gvfs.

%if %{without bootstrap}
%files -f %{name}.lang
%config(noreplace) %{_sysconfdir}/xdg/libfm/libfm.conf
%{_bindir}/libfm-pref-apps
%{_bindir}/lxshortcut
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/ui
%dir %{_datadir}/%{name}/images
%{_datadir}/applications/lxshortcut.desktop
%{_datadir}/%{name}/archivers.list
%{_datadir}/%{name}/terminals.list
%{_datadir}/%{name}/ui/*
%{_datadir}/applications/libfm-pref-apps.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/%{name}/images/*.png
%{_mandir}/man1/libfm-pref-apps.1.*
%{_mandir}/man1/lxshortcut.1.*
%{_libdir}/%{name}/modules/*.so
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
%if %{without bootstrap}
Requires:	%{name}
%endif

%description -n %{libname}
GIO-based library for file manager-like programs.

%files -n %{libname}
%if %{without bootstrap}
%{_libdir}/libfm-gtk.so.%{major}*
%{_libdir}/libfm.so.%{major}*
%endif
%{_libdir}/libfm-extra.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Developement files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed when building applications based on
%{name}.

%files -n %{devname}
%dir %{_includedir}/%{name}
%dir %{_includedir}/%{name}-%{api}
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}-%{api}/*.h
%if %{without bootstrap}
%{_libdir}/libfm-gtk.so
%{_libdir}/libfm.so
%{_libdir}/pkgconfig/libfm-gtk.pc
%{_libdir}/pkgconfig/libfm.pc
%endif
%{_libdir}/libfm-extra.so
%{_libdir}/pkgconfig/libfm-extra.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

[ -e autogen.sh ] && ./autogen.sh

%build
sed -i "s:-Werror::" configure.ac || die
autoreconf -fi
%define Werror_cflags %nil
%configure \
	--enable-udisks \
%if %{with bootstrap}
    --with-extra-only \
%endif
	--disable-static \
	--with-gtk=2
# remove rpaths
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make_build

%install
%make_install

#some hack for avoid upgrade error
#copy all in libfm-1.0 in includedir to libfm instead symlink, rather early it is true
rm -f %{buildroot}%{_includedir}/%{name}
mkdir -p %{buildroot}%{_includedir}/%{name}
cp -f %{buildroot}%{_includedir}/%{name}-%{api}/* %{buildroot}%{_includedir}/%{name}/

%if %{without bootstrap}
%find_lang %{name}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14072 |21mr|libfm-qt-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 14
%define api_ver %{nil}
%define libname %mklibname fm-qt %{api_ver} %{major}
%define devname %mklibname fm-qt %{api_ver} -d

Summary:	PCManFM Qt backend library
Name:		libfm-qt
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/libfm-qt
Source0:	https://github.com/lxqt/libfm-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libfm-qt-1.4.0-ts-ru-translate.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	lxqt-menu-data-devel
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libfm)
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)

%description
PCManFM Qt backend library.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_datadir}/mime/packages/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PCManFM Qt backend library
Group:		System/Libraries
Requires:	%{name}
Obsoletes:	%{_lib}fm-qt_3 < 0.13.1
Obsoletes:	%{mklibname fm-qt 10} <= 1.0.0
Obsoletes:	%{mklibname fm-qt 12} <= 1.2.0

%description -n %{libname}
PCManFM Qt backend library.

%files -n %{libname}
%doc README.md
%{_libdir}/libfm-qt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for PCManFM
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for PCManFM.

%files -n %{devname}
%doc README.md
%{_datadir}/cmake/fm-qt
%{_includedir}/libfm-qt
%{_libdir}/libfm-qt.so
%{_libdir}/pkgconfig/libfm-qt.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14073 |21mr|libfontenc-1.1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname fontenc %{major}
%define develname %mklibname fontenc -d

Name:		libfontenc
Summary:	The fontenc Library
Version:	1.1.7
Release:	1
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz

BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	x11-font-util
# list of encodings
Requires:	x11-font-encodings

%description
libfontenc is a library which helps font libraries portably determine and
deal with different encodings of fonts.

%package -n %{libname}
Summary:	The fontenc Library
Group:		System/Libraries
Conflicts:	libxorg-x11 < 7.0
Provides:	%{name} = %{version}-%{release}

%description -n %{libname}
libfontenc is a library which helps font libraries portably determine and
deal with different encodings of fonts.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	libfontenc-devel = %{version}-%{release}
Obsoletes:	%{_lib}fontenc1-devel < 1.1.1
Obsoletes:	%{_lib}fontenc-static-devel < 1.1.1.
Conflicts:	libxorg-x11-devel < 7.0

%description -n %{develname}
Development files for %{name}.

%prep
%setup -qn libfontenc-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir} \
	--with-encodingsdir=%{_datadir}/fonts/encodings

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libfontenc.so.%{major}*

%files -n %{develname}
%{_libdir}/libfontenc.so
%{_libdir}/pkgconfig/fontenc.pc
%{_includedir}/X11/fonts/fontenc.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14074 |21mr|libfonts-1.1.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	TrueType Font Layouting
Name:		libfonts
Version:	1.1.6
Release:	10
License:	LGPLv2+
Group:		System/Libraries 
Url:		http://reporting.pentaho.org/
Source0:	http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.zip
Patch0:		libfonts-1.1.2-fix-build.patch
BuildArch:	noarch

BuildRequires:	ant
BuildRequires:	ant-contrib
BuildRequires:	java-devel >= 0:1.6.0
BuildRequires:	javapackages-tools
BuildRequires:	libloader >= 1.1.3
BuildRequires:	itext
BuildRequires:	java-rpmbuild
Requires:	javapackages-filesystem
Requires:	libloader >= 1.1.3
Requires:	itext
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
LibFonts is a library developed to support advanced layouting in JFreeReport.
This library allows to read TrueType-Font files to extract layouting specific
informations.

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java 
Requires:	%{name} = %{version}-%{release}
Requires:	javapackages-filesystem

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
%patch0 -p0
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib libbase commons-logging-api libloader itext
cd lib
ln -s %{_javadir}/ant ant-contrib

%build
ant jar javadoc
for file in README.txt licence-LGPL.txt ChangeLog.txt; do
    tr -d '\r' < $file > $file.new
    mv $file.new $file
done

%install
mkdir -p %{buildroot}%{_javadir}
cp -p ./dist/%{name}-%{version}.jar %{buildroot}%{_javadir}
pushd %{buildroot}%{_javadir}
ln -s %{name}-%{version}.jar %{name}.jar
popd

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp bin/javadoc/docs/api %{buildroot}%{_javadocdir}/%{name}

%files
%doc licence-LGPL.txt README.txt ChangeLog.txt
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar

%files javadoc
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14075 |21mr|libformula-1.1.3-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: libformula
Version: 1.1.3
Release: 24
Summary: Formula Parser
Group:   Development/Java
License: LGPLv2
#Original source: http://downloads.sourceforge.net/jfreereport/%%{name}-%%{version}.zip
#unzip, find . -name "*.jar" -exec rm {} \;
#to simplify the licensing
Source: %{name}-%{version}-jarsdeleted.zip
URL: http://reporting.pentaho.org/
BuildRequires: ant, ant-contrib, java-devel, jpackage-utils, libbase >= 1.1.3
Requires: apache-commons-logging
Requires: libbase
Requires: javapackages-filesystem
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Patch0: libformula-1.1.2.build.patch

%description
LibFormula provides Excel-Style-Expressions. The implementation provided
here is very generic and can be used in any application that needs to
compute formulas.

%package javadoc
Summary: Javadoc for %{name}
Requires: %{name} = %{version}-%{release}
Requires: javapackages-filesystem

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
%patch0 -p1 -b .build
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib commons-logging-api libbase
cd lib
ln -s /usr/share/java/ant ant-contrib

%build
ant jar javadoc

%install
mkdir -p $RPM_BUILD_ROOT%{_javadir}
cp -p ./dist/%{name}-%{version}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}.jar

mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -rp bin/javadoc/docs/api $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%files
%doc licence-LGPL.txt README.txt ChangeLog.txt
%{_javadir}/%{name}.jar

%files javadoc
%{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14076 |21mr|libfprint-1.94.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2
%define major 2
%define girmajor 2.0
%define libname %mklibname fprint %{api} %{major}
%define girname %mklibname fprint-gir %{girmajor}
%define devname %mklibname fprint -d

Summary:	Library for adding support for consumer fingerprint readers
Name:		libfprint
Version:	1.94.3
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/fprint/libfprint
Source0:	https://gitlab.freedesktop.org/libfprint/libfprint/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gusb)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:  pkgconfig(pixman-1)

%description
libfprint is an open source software library designed to make it easy for
application developers to add support for consumer fingerprint readers to their
software.

Features:
    * Written in C
    * Licensed as LGPL-2.1
    * Depends on libusb for USB communication and glib
    * Primarily developed for linux, but should be fairly portable
    * Offers a single API to application developers to access the entire range
      of supported devices
    * Supports imaging - downloading live fingerprint scans from the device
    * Includes image processing/matching code
    * Supports enrollment/verification - enrolling a print from a known user,
      and then later comparing a live scan to the enrolled print

#----------------------------------------------------------------------------

%package utils
Summary:	GTK+ example of fingerprint applications
Group:		System/Libraries

%description utils
GTK+ example of fingerprint applications.

%files utils
%license COPYING
%{_appdatadir}/org.freedesktop.%{name}.Demo.appdata.xml
%{_bindir}/gtk-%{name}-test
%{_datadir}/applications/org.freedesktop.%{name}.Demo.desktop
%{_iconsdir}/hicolor/192x192/apps/org.freedesktop.%{name}.Demo.png

#----------------------------------------------------------------------------

%package common
Summary:	Common files for consumer fingerprint readers support library
Group:		System/Libraries

%description common
Common files for consumer fingerprint readers support library.

%files common
%doc NEWS THANKS AUTHORS README.md
%license COPYING
%{_udevrulesdir}/70-%{name}-%{api}.rules

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for adding support for consumer fingerprint readers
Group:		System/Libraries
Requires:	%{name}-common
Provides:	%{name} = %{EVRD}

%description -n %{libname}
libfprint is an open source software library designed to make it easy for
application developers to add support for consumer fingerprint readers to their
software.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/FPrint-%{girmajor}.typelib

#--------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library for adding support for consumer fingerprint readers
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libfprint is an open source software library designed to make it easy for
application developers to add support for consumer fingerprint readers to their
software.

This package includes the headers and development library for building
applications that support finger print readers.

%files -n %{devname}
%doc HACKING.md
%{_datadir}/gir-1.0/FPrint-%{girmajor}.gir
%{_datadir}/gtk-doc/html/%{name}-%{api}
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson \
	-Ddrivers=all		\
	-Dudev_hwdb=disabled	\
	-Dgtk-examples=true
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_iconsdir}/hicolor/192x192/apps
mv -f %{buildroot}%{_iconsdir}/org.freedesktop.%{name}.Demo.png %{buildroot}%{_iconsdir}/hicolor/192x192/apps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14077 |21mr|libfreeaptx-0.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname freeaptx %{major}
%define devname %mklibname freeaptx -d

Name:		libfreeaptx
Version:	0.1.1
Release:	2
Summary:	Open Source implementation of Audio Processing Technology codec (aptX)
Group:		System/Libraries
License:	LGPLv2+
URL:		https://github.com/iamthehorker/%{name}
Source0:	%{url}/archive/%{version}.tar.gz

BuildRequires:	make

%description
This is Open Source implementation of Audio Processing Technology codec (aptX)
derived from ffmpeg 4.0 project and licensed under LGPLv2.1+. This codec is
mainly used in Bluetooth A2DP profile.

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	Open Source implementation of Audio Processing Technology codec (aptX)
Group:		System/Libraries

%description  -n %{libname}
This is Open Source implementation of Audio Processing Technology codec (aptX)
derived from ffmpeg 4.0 project and licensed under LGPLv2.1+. This codec is
mainly used in Bluetooth A2DP profile.

%files  -n %{libname}
%license COPYING
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{version}

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Provides:	%{libname}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_libdir}/%{name}.so
%{_includedir}/freeaptx.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------

%package tools
Summary:	%{name} encoder and decoder utilities
Group:		System/Libraries

%description tools
The %{name}-tools package contains openaptxenc encoder and openaptxdec decoder
command-line utilities.

%files tools
%{_bindir}/freeaptxenc
%{_bindir}/freeaptxdec

#----------------------------------------------------------------------

%prep
%autosetup

%build
# Skip building static binaries
# Environment variable CFLAGS are overridden in makefile so we override that
%make_build STATIC_UTILITIES= LDFLAGS="%{build_ldflags}" CFLAGS="%{optflags}"

%install
# Skip build in install phase
%make_install PREFIX= LIBDIR="%{_libdir}" INCDIR="%{_includedir}" BINDIR="%{_bindir}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14078 |21mr|libfreehand-0.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname freehand %{api} %{major}
%define devname %mklibname freehand -d

Summary:	Library providing ability to import Adobe/Macromedia drawings
Name:		libfreehand
Version:	0.1.2
Release:	2
License:	MPL 2.0
Group:		System/Libraries
Url:		http://wiki.documentfoundation.org/DLP/Libraries/libfreehand
Source0:	https://dev-www.libreoffice.org/src/libfreehand/libfreehand-%{version}.tar.xz
Patch0001:	0001-Add-missing-semicolon-to-fix-build-with-icu-65.1.patch
BuildRequires:	doxygen
BuildRequires:	help2man
BuildRequires:	gperf
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(librevenge-generators-0.0)
BuildRequires:	pkgconfig(librevenge-stream-0.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(zlib)

%description
Libfreehand is library providing ability to interpret and import
Adobe/Macromedia drawings into various applications.

You can find it being used in libreoffice.

%files
%{_bindir}/fh2raw
%{_bindir}/fh2svg
%{_bindir}/fh2text
%{_mandir}/man1/fh2raw.1*
%{_mandir}/man1/fh2svg.1*
%{_mandir}/man1/fh2text.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing ability to import Adobe/Macromedia drawings
Group:		System/Libraries

%description -n %{libname}
Libfreehand is library providing ability to interpret and import
Adobe/Macromedia drawings into various applications.

You can find it being used in libreoffice.

%files -n %{libname}
%{_libdir}/libfreehand-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-werror

# (From Fedora) Fix flags and RPATHs
sed -i libtool \
	-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
	-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'

%make

%install
%makeinstall_std

# (From Fedora) generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in fh2raw fh2svg fh2text; do
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
done
install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -m 0644 fh2*.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14079 |21mr|libfreehand-0.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname freehand %{api} %{major}
%define devname %mklibname freehand -d

Summary:	Library providing ability to import Adobe/Macromedia drawings
Name:		libfreehand
Version:	0.1.2
Release:	4
License:	MPL 2.0
Group:		System/Libraries
Url:		http://wiki.documentfoundation.org/DLP/Libraries/libfreehand
Source0:	https://dev-www.libreoffice.org/src/libfreehand/libfreehand-%{version}.tar.xz
Patch0001:	0001-Add-missing-semicolon-to-fix-build-with-icu-65.1.patch
BuildRequires:	doxygen
BuildRequires:	help2man
BuildRequires:	gperf
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(librevenge-generators-0.0)
BuildRequires:	pkgconfig(librevenge-stream-0.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(zlib)

%description
Libfreehand is library providing ability to interpret and import
Adobe/Macromedia drawings into various applications.

You can find it being used in libreoffice.

%files
%{_bindir}/fh2raw
%{_bindir}/fh2svg
%{_bindir}/fh2text
%{_mandir}/man1/fh2raw.1*
%{_mandir}/man1/fh2svg.1*
%{_mandir}/man1/fh2text.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing ability to import Adobe/Macromedia drawings
Group:		System/Libraries

%description -n %{libname}
Libfreehand is library providing ability to interpret and import
Adobe/Macromedia drawings into various applications.

You can find it being used in libreoffice.

%files -n %{libname}
%{_libdir}/libfreehand-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-werror

# (From Fedora) Fix flags and RPATHs
sed -i libtool \
	-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
	-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g'

%make

%install
%makeinstall_std

# (From Fedora) generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in fh2raw fh2svg fh2text; do
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
done
install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -m 0644 fh2*.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14080 |21mr|libfs-1.0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname fs %{major}
%define develname %mklibname fs -d

Summary:	Library Interface to the X Font Server
Name:		libfs
Version:	1.0.8
Release:	2
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libFS-%{version}.tar.bz2
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	x11-xtrans-devel >= 1.0.0

%description
Libfs is a library interface to the X Font Server.

%package -n %{libname}
Summary:	Library Interface to the X Font Server
Group:		Development/X11
Conflicts:	libxorg-x11 < 7.0
Provides:	%{name} = %{version}-%{release}

%description -n %{libname}
Libfs is a library interface to the X Font Server.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Conflicts:	libxorg-x11-devel < 7.0
Obsoletes:	%{_lib}fs-static-devel < 1.0.4

%description -n %{develname}
Development files for %{name}.

%pre -n %{develname}
if [ -h %{_includedir}/X11 ]; then
	rm -f %{_includedir}/X11
fi

%prep
%setup -qn libFS-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std
rm -f %{buildroot}%{_datadir}/doc/libFS/FSlib.txt

%files -n %{libname}
%doc doc/FSlib.txt
%{_libdir}/libFS.so.%{major}*

%files -n %{develname}
%{_libdir}/libFS.so
%{_libdir}/pkgconfig/libfs.pc
%{_includedir}/X11/fonts/FSlib.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14081 |21mr|libftdi-1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname ftdi %{major}
%define libcpp %mklibname ftdip %{major}
%define devname %mklibname ftdi -d

Summary:	Library to program and control the FTDI USB controller
Name:		libftdi
Version:	1.5
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.intra2net.com/en/developer/libftdi/
Source0:	http://www.intra2net.com/en/developer/libftdi/download/%{name}1-%{version}.tar.bz2
Patch0:		libftdi-pkgconfig.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	swig
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libconfuse)
Requires(pre):	shadow-utils
Conflicts:	%{_lib}ftdi1 < 0.20-2

%description
A library (using libusb) to talk to FTDI's FT2232C,
FT232BM and FT245BM type chips including the popular bitbang mode.

%files
%doc COPYING.LIB COPYING.GPL LICENSE
%config(noreplace) %{_sysconfdir}/udev/rules.d/99-libftdi.rules

%pre
getent group plugdev >/dev/null || groupadd -r plugdev
exit 0

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to program and control the FTDI USB controller
Group:		System/Libraries

%description -n %{libname}
A library (using libusb) to talk to FTDI's FT2232C,
FT232BM and FT245BM type chips including the popular bitbang mode.

%files -n %{libname}
%doc COPYING.LIB COPYING.GPL LICENSE
%{_libdir}/libftdi1.so.2*

#----------------------------------------------------------------------------

%package -n %{libcpp}
Summary:	Libftdi library C++ binding
Group:		Development/C++

%description -n %{libcpp}
Libftdi library C++ language binding.

%files -n %{libcpp}
%doc COPYING.LIB COPYING.GPL LICENSE
%{_libdir}/libftdipp1.so.2*
%{_libdir}/libftdipp1.so.3*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries for libftdi
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcpp} = %{EVRD}

%description -n %{devname}
Header files and static libraries for libftdi

%files -n %{devname}
%doc build/doc/html
%{_mandir}/man3/*
%{_bindir}/libftdi1-config
%{_bindir}/ftdi_eeprom
%{_includedir}/libftdi1/*.h
%{_includedir}/libftdipp1/ftdi.hpp
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/libftdi1/*
%{_libdir}/libftdi1.so
%{_libdir}/libftdipp1.so

#----------------------------------------------------------------------------
%global __provides_exclude _ftdi1.so
%package -n	python3-%{name}
Summary:	Libftdi library Python binding
Group:		Development/Python
%rename python-%{name}

%description -n	python3-%{name}
Libftdi Python Language bindings.

%files -n python3-%{name}
%doc COPYING.LIB COPYING.GPL LICENSE
%{py3_platsitedir}/ftdi1.py*
%{py3_platsitedir}/_ftdi1.so
%{py3_platsitedir}/__pycache__/*
%{_datadir}/libftdi/examples/*.py
%{_datadir}/libftdi/examples/__pycache__/*
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}1-%{version}

#kernel does not provide usb_device anymore
sed -e 's/usb_device/usb/g' -i packages/99-libftdi.rules
sed -e 's/GROUP="plugdev"/TAG+="uaccess"/g' -i packages/99-libftdi.rules


%build
#export CFLAGS="%{optflags} -fno-stack-protector"
#export CXXFLAGS="%{optflags} -fno-stack-protector"
%cmake \
	-DSTATICLIBS=off \
	-DDOCUMENTATION=ON \
	-DEXAMPLES=ON \
	-DFTDIPP=ON \
	-DPYTHON_BINDINGS=ON \
	-DPython_ADDITIONAL_VERSIONS=%{python3_version}
%make


%install
%makeinstall_std -C build
install -p -m644 packages/99-libftdi.rules -D %{buildroot}%{_sysconfdir}/udev/rules.d/99-libftdi.rules

#no man install
mkdir -p %{buildroot}%{_mandir}/man3
install -p -m 644 build/doc/man/man3/*.3 %{buildroot}%{_mandir}/man3

# clean
rm -f %{buildroot}%{_bindir}/{simple,bitbang,bitbang2,bitbang_ft2232,bitbang_cbus,find_all,find_all_pp,serial_test,aud_test}
find %{buildroot}%{_datadir}/libftdi/examples -name "*.pyc" -or -name "*.pyo" -exec rm -f \{\} \;

find %{buildroot} -type f -name "*.la" -delete
find %{buildroot} -type f -name "*.a" -delete
find %{buildroot} -type f -name "example.conf" -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14082 |21mr|libgadu-1.12.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname gadu %{major}
%define devname %mklibname gadu -d

Summary:	A Gadu-gadu protocol compatibile library
Name:		libgadu
Version:	1.12.2
Release:	11
License:	LGPLv2.1+
Group:		Networking/Instant messaging
Url:		http://toxygen.net/libgadu
Source0:	http://github.com/wojtekka/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(gnutls) >= 3.0

%description
The libgadu is intended to make it easy to add Gadu-Gadu communication
support to your software.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A Gadu-gadu protocol compatibile library
Group:		System/Libraries

%description -n %{libname}
The libgadu is intended to make it easy to add Gadu-Gadu communication
support to your software.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libgadu library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	gadu-devel = %{EVRD}

%description -n %{devname}
Development files for libgadu library.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--with-pthread \
	--without-bind \
	--without-openssl \
	--with-gnutls \
	--with-c99-vsnprintf

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14083 |21mr|libgcrypt-1.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 20
%define libname %mklibname gcrypt %{major}
%define devname %mklibname gcrypt -d

# disable tests by default, no /dev/random feed, no joy
%bcond_with	check

Summary:	GNU Cryptographic library
Name:		libgcrypt
Version:	1.9.4
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnupg.org/
# don't convert to bzip2, since we ship archive signature
Source0:	https://www.gnupg.org/ftp/gcrypt/libgcrypt/%{name}-%{version}.tar.bz2
Patch0:		libgcrypt-1.9.1-libdir.patch
# use poll instead of select when gathering randomness
Patch4:		libgcrypt-1.9.1-use-poll.patch
# slight optimalization of mpicoder.c to silence Valgrind (#968288)
Patch5:		libgcrypt-1.6.1-mpicoder-gccopt.patch
BuildRequires:	pkgconfig(gpg-error) >= 1.13

%description
Libgcrypt is a general purpose cryptographic library based on the code from
GNU Privacy Guard.

It provides functions for all cryptograhic building blocks:
- symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour),
- hash algorithms (MD5, RIPE-MD160, SHA-1, TIGER-192),
- MACs (HMAC for all hash algorithms),
- public key algorithms (RSA, ElGamal, DSA),
- large integer functions,
- random numbers and a lot of supporting functions.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNU Cryptographic library
Group:		System/Libraries

%description -n %{libname}
Libgcrypt is a general purpose cryptographic library based on the code from
GNU Privacy Guard.

It provides functions for all cryptograhic building blocks:
- symmetric ciphers (AES, DES, Blowfish, CAST5, Twofish, Arcfour),
- hash algorithms (MD5, RIPE-MD160, SHA-1, TIGER-192),
- MACs (HMAC for all hash algorithms),
- public key algorithms (RSA, ElGamal, DSA),
- large integer functions,
- random numbers and a lot of supporting functions.

%files -n %{libname}
%doc AUTHORS README NEWS THANKS TODO
%{_libdir}/libgcrypt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for GNU cryptographic library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libgcrypt is a general purpose cryptographic library based on the code from
GNU Privacy Guard.

This package contains files needed to develop applications using libgcrypt.

%files -n %{devname}
%doc ChangeLog README.*
%{_bindir}/*
%{_includedir}/*.h
%{_libdir}/lib*.a
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/libgcrypt.pc
%{_datadir}/aclocal/*
%{_infodir}/gcrypt.info*
%{_mandir}/man1/hmac256.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%serverbuild_hardened
autoreconf -fi
%configure \
	--enable-shared \
	--enable-static \
	--enable-m-guard
%make

%install
%makeinstall_std

%if %{with check}
%check
make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14084 |21mr|libgdata-0.18.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 22
%define gir_major 0.0
%define libname %mklibname gdata %{major}
%define girname %mklibname gdata-gir %{gir_major}
%define devname %mklibname gdata -d

Summary:	Library for the GData protocol
Name:		libgdata
Version:	0.18.1
Release:	7
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libgdata
Source0:	https://download.gnome.org/sources/libgdata/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	rootcerts
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gcr-base-3)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(goa-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libuhttpmock-0.0)
BuildRequires:	pkgconfig(oauth)
BuildRequires:	pkgconfig(vapigen)
Requires:	rootcerts

%description
libgdata is a GLib-based library for accessing online service APIs using the
GData protocol --- most notably, Google's services. It provides APIs to access
the common Google services, and has full asynchronous support.

#----------------------------------------------------------------------------

%package i18n
Summary:	Library for the GData protocol - translations
Group:		System/Internationalization

%description i18n
libgdata is a GLib-based library for accessing online service APIs using the
GData protocol --- most notably, Google's services. It provides APIs to access
the common Google services, and has full asynchronous support.

%files i18n -f gdata.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for the GData protocol
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
This package contains the dynamic libraries from %{name}.

%files -n %{libname}
%doc NEWS README AUTHORS
%{_libdir}/libgdata.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Group:		System/Libraries
Summary:	GObject Introspection interface library for %{name}

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GData-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for %{name}.

%files -n %{devname}
%{_datadir}/gir-1.0/GData-%{gir_major}.gir
%{_datadir}/vala/vapi/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang gdata

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14085 |21mr|libgdata0.6-0.6.6-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname gdata %{major}
%define develname %mklibname -d gdata %{major}
%define oname libgdata

Name:		libgdata0.6
Version:	0.6.6
Release:	14
Summary:	Library for the GData protocol
Group:		System/Libraries
License:	LGPLv2+
URL:		http://live.gnome.org/libgdata
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%oname/%{oname}-%{version}.tar.bz2
Patch0:		libgdata-gnome-macros.patch
Patch1:		libgdata-contacts.patch 
Patch2:		libgdata-missing-file.patch
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	perl-XML-Parser

%description
libgdata is a GLib-based library for accessing online service APIs using the
GData protocol --- most notably, Google's services. It provides APIs to access
the common Google services, and has full asynchronous support.

#--------------------------------------------------------------------------------------
%package i18n
Summary:	Library for the GData protocol - translations
Group:		System/Internationalization

%description i18n
libgdata is a GLib-based library for accessing online service APIs using the
GData protocol --- most notably, Google's services. It provides APIs to access
the common Google services, and has full asynchronous support.

%files i18n -f gdata.lang

#--------------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for the GData protocol
Group:		System/Libraries
Recommends:	%{oname}-i18n >= %{version}

%description -n %{libname}
libgdata is a GLib-based library for accessing online service APIs using the
GData protocol --- most notably, Google's services. It provides APIs to access
the common Google services, and has full asynchronous support.

%files -n %{libname}
%doc NEWS README AUTHORS
%{_libdir}/libgdata.so.%{major}*

#--------------------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %develname
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{oname}.pc
%{_datadir}/gtk-doc/html/gdata/

#--------------------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%configure \
    --disable-static \
    --enable-introspection=no
    
%make

%install
%makeinstall_std
%find_lang gdata

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14086 |21mr|libgdiplus-6.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define libname	%mklibname gdiplus %{major}
%define devname	%mklibname -d gdiplus
%define _disable_rebuild_configure 1

Summary:	An Open Source implementation of the GDI+ API
Name:		libgdiplus
Version:	6.0.5
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://go-mono.com
Source0:	http://download.mono-project.com/sources/libgdiplus/%{name}0-%{version}.tar.gz
Patch0:		libgdiplus-2.10.9-gold.patch
#Patch1:		libgdiplus-5.6-x11linkage.patch
BuildRequires:	jpeg-devel
BuildRequires:	ungif-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(x11)

%description
An Open Source implementation of the GDI+ API.
This is part of the Mono project.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An Open Source implementation of the GDI+ API
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n %{libname}
An Open Source implementation of the GDI+ API.
This is part of the Mono project.

%files -n %{libname}
%{_libdir}/libgdiplus.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries for developing with libgdiplus
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package provides the necessary development libraries to allow
you to develop with libgdiplus.

%files -n %{devname}
%doc AUTHORS COPYING
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

aclocal
libtoolize -fic
autoheader
automake -acf
autoconf

%build
export LIBS='-lm'
%configure \
	--disable-static
%make_build

%install
%make_install

# make sure pkgconfig(libgdiplus) is provided, fix this in 2.10.9:
sed -i -e 's|-L${libjpeg_prefix}/lib||g' %{buildroot}%{_libdir}/pkgconfig/libgdiplus.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14087 |21mr|libgee-0.20.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api	0.8
%define major	2

%define libname %mklibname gee %{api} %{major}
%define girname %mklibname gee-gir %{api}
%define devname %mklibname -d gee 

Summary:	GObject-based collection library
Name:		libgee
Version:	0.20.3
Release:	2
License: 	LGPLv2+
Group:		System/Libraries
URL: 		http://live.gnome.org/Libgee
Source0: 	ftp://ftp.gnome.org/pub/GNOME/sources/libgee/%{url_ver}/%{name}-%{version}.tar.xz

BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
Libgee is a collection library providing GObject-based interfaces and 
classes for commonly used data structures. 

%package -n	%{libname}
Summary:	Collection library providing GObject-based interfaces and classes 
Group:		%{group}

%description -n	%{libname}
Libgee is a collection library providing GObject-based interfaces and 
classes for commonly used data structures. 

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%package -n	%{devname}
Summary:	Libraries and include files for developing with libgee
Group:		Development/C
Requires:	%{libname} = %{version}
Requires:	%{girname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{devname}
This package provides the necessary development libraries and include
files to allow you to develop with libgee.

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std
find %{buildroot} -name '*.la' -exec rm -f {} ';'

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libgee-%{api}.so.%{major}*

%files -n %{girname}
%{_libdir}/girepository-1.0/Gee-%{api}.typelib

%files -n %{devname}
%doc ChangeLog
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_datadir}/vala/vapi/*.vapi
%{_datadir}/gir-1.0/Gee-%{api}.gir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14088 |21mr|libgee0.6-0.6.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	libgee
%define api	0.6
%define major	2
%define gimajor 1.0

%define libname %mklibname gee %{major}
%define girname %mklibname gee-gir %{gimajor}
%define devname %mklibname -d gee %{major}

Name:		%{oname}0.6
Summary:	GObject-based collection library
Version:	0.6.8
Release:	6
License: 	LGPLv2+
Group:		System/Libraries
URL: 		http://live.gnome.org/Libgee
Source0: 	ftp://ftp.gnome.org/pub/GNOME/sources/libgee/%{api}/%{oname}-%{version}.tar.xz

BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
Libgee is a collection library providing GObject-based interfaces and 
classes for commonly used data structures. 

%package -n	%{libname}
Summary:	Collection library providing GObject-based interfaces and classes 
Group:		%{group}

%description -n	%{libname}
Libgee is a collection library providing GObject-based interfaces and 
classes for commonly used data structures. 

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%package -n	%{devname}
Summary:	Libraries and include files for developing with libgee
Group:		Development/C
Requires:	%{libname} = %{version}
Requires:	%{girname} = %{version}

%description -n	%{devname}
This package provides the necessary development libraries and include
files to allow you to develop with libgee.

%prep
%setup -qn %{oname}-%{version}

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std
find %{buildroot} -name '*.la' -exec rm -f {} ';'

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libgee.so.%{major}*

%files -n %{girname}
%{_libdir}/girepository-1.0/Gee-%{gimajor}.typelib

%files -n %{devname}
%doc ChangeLog
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_datadir}/vala/vapi/*.vapi
%{_datadir}/gir-1.0/Gee-%{gimajor}.gir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14089 |21mr|libgepub-0.6.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 0.6
%define major 0

%define libname %mklibname gepub %{api} %{major}
%define girname %mklibname gepub-gir %{api}
%define devname %mklibname gepub -d

Summary:	Library for epub documents
Name:		libgepub
Version:	0.6.0
Release:	15
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libgepub
Source0:	https://download.gnome.org/sources/libgepub/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
%ifnarch aarch64
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
%endif
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(webkit2gtk-4.0)

%description
libgepub is a GObject based library for handling and rendering epub
documents.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for epub documents
Group:		System/Libraries

%description -n %{libname}
libgepub is a GObject based library for handling and rendering epub
documents.

%files -n %{libname}
%{_libdir}/libgepub-%{api}.so.%{major}*

#----------------------------------------------------------------------------
%ifnarch aarch64

%package -n %{girname}
Summary:	GObject Introspection interface library for epub documents
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface library for epub documents.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gepub-%{api}.typelib

%endif
#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
%ifnarch aarch64
Requires:	%{girname} = %{EVRD}
%endif
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/libgepub-%{api}/
%{_libdir}/libgepub-%{api}.so
%{_libdir}/pkgconfig/libgepub-%{api}.pc
%ifnarch aarch64
%{_datadir}/gir-1.0/Gepub-%{api}.gir
%endif

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
%ifarch aarch64
	-Dintrospection=false
%endif

%meson_build

%install
%meson_install

sed s,"\${prefix}//","\${prefix}/",g -i %{buildroot}%{_libdir}/pkgconfig/libgepub-%{api}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14090 |21mr|libgexiv2-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 2
%define gir_major 0.10
%define libname %mklibname gexiv2_ %{major}
%define devname %mklibname gexiv2 -d
%define gir_name %mklibname gexiv2-gir %{gir_major}

Summary:	A GObject-based wrapper around the Exiv2 library
Name:		libgexiv2
Version:	0.14.0
Release:	1
License:	GPLv2+
Group:		Graphics
Url:		https://download.gnome.org/sources/gexiv2
Source0:	https://download.gnome.org/sources/gexiv2/%{url_ver}/gexiv2-%{version}.tar.xz
BuildRequires:	libtool
BuildRequires:	meson
BuildRequires:	python3-gobject3
BuildRequires:	python3-gi
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(vapigen)

%description
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes
the basic features of Exiv2 available to GNOME applications.

#----------------------------------------------------------------------------

%package -n %{gir_name}
Summary:	GObject Introspection interface description for %{name}
Group:		Graphics
Requires:	%{libname} = %{EVRD}

%description -n %{gir_name}
GObject Introspection interface description for %{name}.

%files -n %{gir_name}
%{_libdir}/girepository-1.0/*-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A GObject-based wrapper around the Exiv2 library
Group:		Graphics

%description -n %{libname}
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes
the basic features of Exiv2 available to GNOME applications.

%files -n %{libname}
%{_libdir}/libgexiv2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A GObject-based wrapper around the Exiv2 library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
gexiv2 is a GObject-based wrapper around the Exiv2 library. It makes
the basic features of Exiv2 available to GNOME applications.

%files -n %{devname}
%{_includedir}/gexiv2
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/html/gexiv2/
%{_datadir}/gir-1.0/*-%{gir_major}.gir
%{_datadir}/vala/vapi/gexiv2.deps
%{_datadir}/vala/vapi/gexiv2.vapi

#----------------------------------------------------------------------------

%package -n python3-gexiv2
Summary:	Python3 bindings for %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	python3-gobject3
Requires:	python3-gi
Provides:	gexiv2-python3 = %{EVRD}

%description -n python3-gexiv2
This package contains the python3 bindings for %{name}.

%files -n python3-gexiv2
%{python3_sitearch}/gi/overrides/GExiv2.*
%{python3_sitearch}/gi/overrides/__pycache__/*

#----------------------------------------------------------------------------

%prep
%setup -qn gexiv2-%{version}

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14091 |21mr|libggi-2.2.2-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname ggi %{major}
%define devname %mklibname ggi -d

Summary:	A fast, simple, small and flexible user-space graphics library
Name:		libggi
Version:	2.2.2
Release:	26
License:	MIT
Group:		System/Libraries
Url:		http://www.ggi-project.org/
Source0:	http://www.ggi-project.org/ftp/ggi/v2.2/%{name}-%{version}.src.tar.bz2
Patch0:		libggi-2.0.1-no-lcd823-ppc.patch
Patch3:		libggi-2.0.3-xpath.patch
Patch4:		libggi_wformat.patch

Buildrequires:	aalib-devel
Buildrequires:	libgii-devel >= 1.0.2-2
BuildRequires:	pkgconfig(directfb)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(xext)

BuildConflicts:	svgalib-devel

%description
LibGGI is a fast, simple, small and flexible user-space graphics
library developed by the GGI Project <http://www.ggi-project.org/>.
It attempts to abstract the many different graphics output systems
existing under Unix (and in the future, other platforms). The support
for all of these different types of displays and hardware are provided
by dynamically-loaded mini-libraries.

LibGGI can transparently (to the LibGGI-using application) display
graphics on an X window, fbcon (Linux framebuffer driver), or the
glide library, through their respective graphics drivers, or targets.
There are also some other targets which display through another
target, such as multi to display simultaneously on multiple displays
at once, and tile to tile your display to different monitors.

LibGGI supports acceleration of graphics primitives where possible.

LibGGI is a very generic piece of software, that will run on about
every platform that has remotely heard of POSIX (ports to other systems
such as Win32 are underway) and on many display subsystems.

%files
%doc FAQ NEWS README doc/env.txt doc/targets.txt
%dir %{_sysconfdir}/ggi/
%dir %{_sysconfdir}/ggi/targets
%config(noreplace) %{_sysconfdir}/ggi/libggi.conf
%config(noreplace) %{_sysconfdir}/ggi/targets/fbdev.conf
%{_bindir}/*
%dir %{_libdir}/ggi/
%dir %{_libdir}/ggi/default/
%dir %{_libdir}/ggi/default/fbdev
%dir %{_libdir}/ggi/display
%dir %{_libdir}/ggi/helper
%{_libdir}/ggi/*/*.so
%{_libdir}/ggi/default/fbdev/*.so
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libggi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	libgii-devel
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}ggi2-devel < 2.2.2-19
Obsoletes:	%{_lib}ggi2-static-devel < 2.2.2-19
Obsoletes:	%{_lib}ggi-static-devel < 2.2.2-19

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc ChangeLog doc/*.txt
%{_includedir}/ggi/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

perl -pi -e "s|/lib\b|/%{_lib}|g" * m4/*

# regenerate configure script
#./autogen.sh < borked

%build
# workaround configure failure
export echo=echo
%configure \
	--disable-static \
	--with-gii=%{_prefix} \
	--disable-debug

%make 

%install
# workaround failure
export echo=echo
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14092 |21mr|libgii-1.0.2-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
# TODO: Split library package
%define libname %mklibname gii %{major}
%define devname %mklibname gii -d

Summary:	A flexible library for input handling
Name:		libgii
Version:	1.0.2
Release:	27
License:	MIT
Group:		System/Libraries
Url:		http://www.ggi-project.org/
Source0:	http://www.ggi-project.org/ftp/ggi/v2.1/%{name}-%{version}.src.tar.bz2
Patch0:		libgii-1.0.2-wformat.patch
BuildRequires:	chrpath
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xxf86dga)

%description
LibGII is an input library developed by the GGI Project
(http://www.ggi-project.org). Its design philosophy is similar to
LibGGI, which deals with graphics output.

LibGII is based on the concept of input streams, which virtualize
access to the underlying input drivers. Events from various input
devices are abstracted into easy-to-use structures. LibGII also allows
the application to join streams together, receiving input from an
arbitrary combination of devices.

LibGII is a separate component from LibGGI, although LibGGI depends on
LibGII for input purposes. (LibGGI's input functions are simply
wrappers for LibGII functions.)

%files
%doc ChangeLog ChangeLog.1999 FAQ INSTALL INSTALL.autoconf NEWS 
%doc README doc/README*
%config(noreplace) %{_sysconfdir}/ggi/filter/keytrans
%config(noreplace) %{_sysconfdir}/ggi/filter/mouse
%config(noreplace) %{_sysconfdir}/ggi/libgii.conf
%dir %{_sysconfdir}/ggi
%attr(755,root,root) %{_bindir}/*
%dir %{_sysconfdir}/ggi/filter
%dir %{_libdir}/ggi/input
%dir %{_libdir}/ggi/filter
%{_libdir}/ggi/*/*.so
%{_mandir}/man1/*
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libgg.so.%{major}*
%{_libdir}/libgii.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}gii1-devel < 1.0.2-19
Obsoletes:	%{_lib}gii1-static-devel < 1.0.2-19
Obsoletes:	%{_lib}gii-static-devel < 1.0.2-19

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%dir %{_includedir}/ggi
%dir %{_includedir}/ggi/input
%dir %{_includedir}/ggi/internal
%{_includedir}/ggi/*.h
%{_includedir}/ggi/input/*.h
%{_includedir}/ggi/internal/*.h
%{_libdir}/*.so
%{_mandir}/man3/*
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-debug \
	--disable-static

%make

%install
%makeinstall_std

chrpath -d %{buildroot}%{_bindir}/mhub
chrpath -d %{buildroot}%{_bindir}/xsendbut
chrpath -d %{buildroot}%{_libdir}/libgii.so.%{major}*
chrpath -d %{buildroot}%{_libdir}/ggi/input/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14093 |21mr|libgit2-1.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.4
%define libname %mklibname git2_ %{major}
%define devname %mklibname git2 -d

Summary:	A C implementation of the Git core methods as a library
Name:		libgit2
Version:	1.4.6
Release:	1
License:	GPLv2 with exceptions
Group:		System/Libraries
Url:		http://libgit2.github.com/
Source0:	https://github.com/libgit2/libgit2/archive/v%{version}/%{name}-%{version}.tar.gz
# CVE-2024-24575 fixed in 1.4.6
Patch1:		CVE-2024-24577.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
libgit2 is a portable, pure C implementation of the Git core methods
provided as a re-entrant linkable library with a solid API, allowing
you to write native speed custom Git applications in any language
with bindings.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C implementation of the Git core methods as a library
Group:		System/Libraries

%description -n %{libname}
libgit2 is a portable, pure C implementation of the Git core methods
provided as a re-entrant linkable library with a solid API, allowing
you to write native speed custom Git applications in any language
with bindings.

%files -n %{libname}
%doc README.md COPYING AUTHORS
%{_libdir}/libgit2.so.%{major}
%{_libdir}/libgit2.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc AUTHORS docs examples README.md SECURITY.md
%license COPYING
%{_libdir}/libgit2.so
%{_libdir}/pkgconfig/libgit2.pc
%{_includedir}/git2*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Remove VCS files from examples
find examples -name ".gitignore" -delete

# Remove some bundled libraries
rm -rf deps/{chromium-zlib,pcre,winhttp,zlib}
#rm -rf src/xdiff

%build
%cmake \
	-DBUILD_TESTS=OFF	\
	-DUSE_SSH=ON
%make

%install
%makeinstall_std -C build

%check
ctest -V

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14094 |21mr|libgit2-glib-1.0.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define girmajor 1.0
%define api 1.0
%define libname %mklibname git2-glib %{api} %{major}
%define girname %mklibname git2-glib-gir %{girmajor}
%define devname %mklibname git2-glib %{api} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Git library for GLib
Name:		libgit2-glib
Version:	1.0.0.1
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libgit2-glib
Source0:	https://download.gnome.org/sources/libgit2-glib/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
# (tv) for autoconf:
BuildRequires:	gnome-common
BuildRequires:	meson
BuildRequires:	python3-gobject3
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libgit2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(vapigen)

%description
libgit2-glib is a glib wrapper library around the libgit2 git access library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A glib wrapper library around the libgit2 git access library
Group:		System/Libraries

%description -n %{libname}
libgit2-glib is a glib wrapper library around the libgit2 git access library.

%files -n %{libname}
%doc AUTHORS NEWS
%{_libdir}/libgit2-glib-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}git2-glib1.0_0 < 0.24.4

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Ggit-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/libgit2-glib-%{api}/
%{_libdir}/libgit2-glib-%{api}.so
%{_libdir}/pkgconfig/libgit2-glib-%{api}.pc
%{_datadir}/gir-1.0/Ggit-%{girmajor}.gir
%{_datadir}/vala/

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings for %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	python3-gobject3
Requires:	python3-gi

%description -n python3-%{name}
This package contains the python3 bindings for %{name}.

%files -n python3-%{name}
%{py3_puresitedir}/gi/overrides/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14095 |21mr|libgksu-2.0.13-0.pre1.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with gtkdoc

%define oversion 2.0.12
%define pre pre1

%define major 0
%define api 2.0
%define libname %mklibname gksu %{api} %{major}
%define devname %mklibname gksu %{api} -d

Summary:	GKSu libraries
Name:		libgksu
Version:	2.0.13
Release:	0.%{pre}.4
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.nongnu.org/gksu/
Source0:	https://launchpad.net/ubuntu/+archive/primary/+files/libgksu_%{version}~%{pre}.orig.tar.gz
Patch0:		libgksu-2.0.12-fix-str-fmt.patch
Patch1:		libgksu-2.0.13-fix_lib64_detection.patch
Patch2:		libgksu-2.0.12-fix-build.patch
Patch3:		Makefile.am.patch
Patch4:		libgksu-2.0.12-l10n-ru.patch
# Apply translation to wrong password answer from sudo
Patch5:		libgksu-2.0.12-wrong-password-gettext.patch
Patch6:		libgksu-2.0.12-proper-line.patch
# From Debian package
Patch10:	06_unguarded_child_stderr.patch
Patch11:	18_g_markup_escape_text_for_command.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	perl-XML-Parser
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(pkg-config)

%description
GKSu is a library that provides a Gtk+ frontend to su and sudo. It
supports login shells and preserving environment when acting as a su
frontend. It is useful to menu items or other graphical programs
that need to ask a user's password to run another program as another user.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GKSu libraries
Group:		System/Libraries

%description -n %{libname}
GKSu is a library that provides a Gtk+ frontend to su and sudo. It
supports login shells and preserving environment when acting as a su
frontend. It is useful to menu items or other graphical programs
that need to ask a user's password to run another program as another user.

%files -n %{libname} -f %{name}.lang
%{_libdir}/libgksu2.so.%{major}*
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	libgksu2.0-devel = %{EVRD}
Provides:	libgksu2-devel = %{EVRD}
Provides:	libgksu-devel = %{EVRD}
Conflicts:	%{_lib}gksu2.0_0-devel < 2.0.12-10
Obsoletes:	%{_lib}gksu2.0_0-devel < 2.0.12-10

%description -n %{devname}
Development package for %{name}

GKSu is a library that provides a Gtk+ frontend to su and sudo. It
supports login shells and preserving environment when acting as a su
frontend. It is useful to menu items or other graphical programs
that need to ask a user's password to run another program as another user.

%files -n %{devname}
%doc INSTALL ChangeLog AUTHORS
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%if %{with gtkdoc}
%{_datadir}/gtk-doc/html/%{name}
%endif

#----------------------------------------------------------------------------

%package -n gksu-utils
Summary:	Utilities package for %{name}
Group:		System/Base
Requires:	%{libname} = %{EVRD}

%description -n gksu-utils
Utilities package for %{name}.

GKSu is a library that provides a Gtk+ frontend to su and sudo. It
supports login shells and preserving environment when acting as a su
frontend. It is useful to menu items or other graphical programs
that need to ask a user's password to run another program as another user.

%files -n gksu-utils
%{_sysconfdir}/gconf/schemas/gksu.schemas
%{_bindir}/gksu-properties
%{_datadir}/man/man1/gksu-properties.1*
%{_datadir}/applications/gksu-properties.desktop
%{_datadir}/libgksu/gksu-properties.ui
%{_datadir}/pixmaps/gksu.png

%preun -n gksu-utils
%preun_uninstall_gconf_schemas gksu

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oversion}
%patch0 -p1 -b .str
%patch1 -p1
%patch2 -p0
%patch3 -p0
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch10 -p1
%patch11 -p1
touch README NEWS
#sed -i 's:dist_pkglibexec_SCRIPTS:dist_pkgdata_SCRIPTS:g' \
#                $(grep -l dist_pkglibexec_SCRIPTS $(find . -name Makefile.am))

%build
autoreconf -fi
%configure LIBS="-lX11" \
%if %{with gtkdoc}
	--enable-gtk-doc
%else
	--disable-gtk-doc
%endif
echo "CATALOGS =  ca.gmo cs.gmo da.gmo de.gmo es.gmo eu.gmo fr.gmo hu.gmo it.gmo ko.gmo lt.gmo pl.gmo pt_BR.gmo ro.gmo ru.gmo sk.gmo sv.gmo nb.gmo nl.gmo th.gmo zh_CN.gmo" > po/Makefile1
cat po/Makefile >> po/Makefile1
mv -f po/Makefile1 po/Makefile
%make

%install
%makeinstall_std

desktop-file-install --vendor="" \
  --remove-category="Application" \
  --remove-category="AdvancedSettings" \
  --add-category="Settings" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14096 |21mr|libglade2.0-2.6.4-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without gtkdoc

%define pkgname libglade
%define api 2.0
%define major 0
%define libname %mklibname glade %{api} %{major}
%define devname %mklibname glade %{api} -d

Summary:	Library for dynamically loading GLADE interface files
Name:		%{pkgname}%{api}
Version:	2.6.4
Release:	17
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.gnome.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
# (fc) 2.5.1-3mdk fix some warnings (Fedora) (GNOME bug #121025)
Patch0:		libglade-2.0.1-nowarning.patch
Patch1:		libglade-2.6.4-linkage.patch
%if %{with gtkdoc}
BuildRequires:	gtk-doc
%endif
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
%{pkgname} allows you to load user interfaces in your program, which are
stored externally. This allows alteration of the interface without
recompilation of the program.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for dynamically loading GLADE interface files
Group:		System/Libraries
Provides:	%{pkgname}%{api} = %{EVRD}

%description -n %{libname}
%{pkgname} allows you to load user interfaces in your program, which are
stored externally. This allows alteration of the interface without
recompilation of the program.

%files -n %{libname}
%doc README ChangeLog
%{_libdir}/libglade-%{api}.so.%{major}*
%dir %{_libdir}/libglade
%dir %{_libdir}/libglade/%{api}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc to develop libglade applications
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
# $bindir/libglade-convert is python script
Requires:	python
Requires(post,postun):	sgml-common >= 0.6.3-2
Provides:	%{pkgname}%{api}-devel = %{EVRD}
Obsoletes:	%{mklibname glade 2.0 0}-devel < 2.6.4-9

%description -n %{devname}
This package contains libraries, include files, etc so that
you can use to develop %{pkgname} applications.

%files -n %{devname}
%doc AUTHORS examples
%doc %{_datadir}/gtk-doc/html/*
%{_bindir}/*
%{_datadir}/xml/libglade
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*

%post -n %{devname}
CATALOG=/etc/xml/catalog
%{_bindir}/xmlcatalog --noout --add "system" \
		"http://glade.gnome.org/glade-2.0.dtd" \
		%{_datadir}/xml/libglade/glade-2.0.dtd $CATALOG || true

%postun -n %{devname}
# Do not remove if upgrade
if [ "$1" = "0" ]; then
 CATALOG=/etc/xml/catalog
 if [ -f $CATALOG -a -x %{_bindir}/xmlcatalog ]; then 
  %{_bindir}/xmlcatalog --noout --del \
         	%{_datadir}/xml/libglade/glade-2.0.dtd $CATALOG || true
 fi
fi

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}
%apply_patches

%build
autoconf
%configure \
	--disable-static \
%if %{without gtkdoc}
	--enable-gtk-doc=no
%endif

%make

%install
%makeinstall_std

# install test program
sh ./libtool --mode=install %{_bindir}/install test-libglade %{buildroot}%{_bindir}/test-libglade

# Make libglade own %{_libdir}/libglade
mkdir -p %{buildroot}%{_libdir}/libglade/%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14097 |21mr|libglademm2.4-2.6.7-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define pkgname libglademm

%define major 1
%define api 2.4
%define libname %mklibname glademm %{api} %{major}
%define devname %mklibname glademm %{api} -d
%define libname_orig %mklibname glademm %{api}

Summary:	C++ interface of glade2 library
Name:		%{pkgname}%{api}
Version:	2.6.7
Release:	18
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gtkmm.sourceforge.net/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{pkgname}-%{version}.tar.bz2
Buildrequires:	doxygen
BuildRequires:	pkgconfig(gtkmm-2.4)
BuildRequires:	pkgconfig(libglade-2.0)

%description
This package provides a C++ interface for glade2.  It is a subpackage
of the gnomemm project.  The interface provides a convenient interface for C++
programmers to create glade2 objects.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface of glade2 library
Group:		System/Libraries
Provides:	%{libname_orig} = %{EVRD}
Provides:	%{pkgname} = %{EVRD}

%description -n %{libname}
This package provides a C++ interface for glade2.  It is a subpackage
of the gnomemm project.  The interface provides a convenient interface for C++
programmers to create glade2 objects.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog INSTALL
%{_libdir}/libglademm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files of %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(gtkmm-2.4)
Requires:	pkgconfig(libglade-2.0)
Provides:	%{name}-devel = %{EVRD}
Provides:	%{pkgname}-devel = %{EVRD}

%description -n %{devname}
This package provides headers and various development files needed for
compiling or developing applications that use Glade 2 C++ interface.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog INSTALL
%{_includedir}/*
%{_libdir}/%{pkgname}-%{api}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.a
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{pkgname} library
Group:		Documentation

%description doc
This package provides API documentation of %{pkgname} library, which
is part of gnomemm project that provides C++ interface for GNOME libraries.
The documents can be browsed via devhelp, an API documentation viewer.

%files doc
%{_docdir}/gnomemm-2.6/*
%{_datadir}/devhelp/books/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%configure \
	--enable-static
%make

### Build doc
pushd docs/reference
  perl -pi -e 's/^(HAVE_DOT.*=) YES/$1 NO/' Doxyfile
  make all
popd

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14098 |21mr|libglpng-1.45-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1
%define libname		%mklibname glpng %{major}
%define develname	%mklibname glpng -d

Summary:	A toolkit for loading PNG images as OpenGL textures
Name:		libglpng
Version:	1.45
Release:	14
License:	MIT
Group:		System/Libraries
# Upstream's dead
Source0:	http://ftp.de.debian.org/debian/pool/main/libg/%{name}/%{name}_%{version}.orig.tar.gz
# From Debian - a Makefile. Yay.
Source1:	libglpng-1.45-makefile
# Debian patch, couple of small fixes.
Patch0:		libglpng-1.45-debian.patch
Patch1:		libglpng-1.45-CVE-2010-1519.diff
Patch2:		glpng-1.45-libpng15.patch
URL:		http://packages.debian.org/libglpng
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(gl)

%description
glpng is a small toolkit to make loading PNG image files as an OpenGL
texture as easy as possible.

#---------------------------------------------------------------------
%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
glpng is a small toolkit to make loading PNG image files as an OpenGL
texture as easy as possible.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#---------------------------------------------------------------------

%package -n %{develname}
Summary:	Development headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
glpng is a small toolkit to make loading PNG image files as an OpenGL
texture as easy as possible.

%files -n %{develname}
%doc glpng.htm Example/
%{_includedir}/GL/glpng.h
%{_libdir}/%{name}.so
%{_libdir}/%{name}.*a

#---------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}.orig
%patch0 -p1 -b .debian
%patch1 -p0 -b .CVE-2010-1519
%patch2 -p1 -b .libpng15

install -m 0644 %{SOURCE1} ./Makefile

%build
%make CFLAGS="%{optflags} -fPIC -I ./include"

%install
make DESTDIR=%{buildroot}%{_prefix} install
rm -rf %{buildroot}%{_docdir}
%ifarch x86_64 aarch64 %{e2k} riscv64
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
%endif

chmod 0755 %{buildroot}%{_libdir}/libglpng.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14099 |21mr|libglvnd-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude_from %{_libdir}/%{name}
%global __requires_exclude_from %{_libdir}/%{name}

%global optflags %{optflags} -O3 
%ifnarch %{e2k}
%global optflags %{optflags} -Wstrict-aliasing=0
%endif

%define major 0
%define libgldispatch %mklibname gldispatch %{major}
%define libopengl %mklibname opengl %{major}
%define devname %mklibname glvnd -d

%define libEGL %mklibname EGL 1
%define libGLdispatch %mklibname GLdispatch 0
%define libGLESv1 %mklibname GLESv1_CM 1
%define libGLESv2 %mklibname GLESv2 2
%define libGL %mklibname GL 1
%define libGLX %mklibname GLX 0
%define libOpenGL %mklibname OpenGL 0

Summary:	The GL Vendor-Neutral Dispatch library
Name:		libglvnd
Version:	1.7.0
Release:	1
License:	MIT
Group:		System/Libraries
Url:            https://gitlab.freedesktop.org/glvnd/libglvnd
Source0:        https://gitlab.freedesktop.org/glvnd/libglvnd/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
Patch0:         libglvnd-python3.patch
Patch1:         0001-glx-Add-another-fallback-library-name.patch
BuildRequires:	cmake
BuildRequires:  libtool
BuildRequires:	python3-libxml2
BuildRequires:	pkgconfig(glproto)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:  x11-server-xvfb

%description
libglvnd is an implementation of the vendor-neutral dispatch layer for
arbitrating OpenGL API calls between multiple vendors on a per-screen basis.

%files
%doc README.md
%dir %{_sysconfdir}/glvnd
%dir %{_datadir}/glvnd
%dir %{_sysconfdir}/glvnd/egl_vendor.d
%dir %{_datadir}/glvnd/egl_vendor.d
%dir %{_sysconfdir}/egl/egl_external_platform.d/
%dir %{_datadir}/egl/egl_external_platform.d/

#----------------------------------------------------------------------------
%package -n %{libEGL}
Summary:	LibEGL wrapper from libglvnd
Requires:	mesa-libEGL%{?_isa} >= 18.2.1
Provides:	%{name}-egl  = %{EVRD}
Provides:	%{_lib}glvnd-egl = %{EVRD}
Provides:	glvnd-egl = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{libEGL}
LibEGL wrapper from libglvnd.

%files -n %{libEGL}
%{_libdir}/libEGL.so.1*


#----------------------------------------------------------------------------
%package -n %{libGLdispatch}
Summary:	LibGL dispatcher from libglvnd
Requires:	%{libGL} = %{EVRD}
Provides:	%{name}-GLdispatch = %{EVRD}
Provides:	%{_lib}gldispatch0 = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{libGLdispatch}
LibGL dispatcher from libglvnd.

%files -n %{libGLdispatch}
%{_libdir}/libGLdispatch.so.0*


#----------------------------------------------------------------------------
%package -n %{libGLESv1}
Summary:	LibGLESv1 wrapper from libglvnd
Requires:	mesa-libEGL%{?_isa} >= 18.2.1
%rename %{_lib}glesv1_1
Provides:	%{name}-GLESv1_CM = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{libGLESv1}
LibGLESv1 wrapper from libglvnd.

%files -n %{libGLESv1}
%{_libdir}/libGLESv1_CM.so.1*


#----------------------------------------------------------------------------
%package -n %{libGLESv2}
Summary:	LibGLESv2 wrapper from libglvnd
Requires:	mesa-libEGL%{?_isa} >= 18.2.1
%rename %{_lib}glesv2_2
Provides:	%{name}-GLESv2 = %{EVRD}
Provides:	glvnd-gles = %{EVRD}
Provides:	%{_lib}glvnd-gles = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{libGLESv2}
LibGLESv2 wrapper from libglvnd.

%files -n %{libGLESv2}
%{_libdir}/libGLESv2.so.2*


#----------------------------------------------------------------------------
%package -n %{libGL}
Summary:	LibGL wrapper from libglvnd
Requires:	mesa-libGL%{?_isa} >= 18.2.1
%define oldgl %mklibname gl 1
%rename %{oldgl}
Provides:	%{name}-GL = %{EVRD}
Provides:	%{_lib}glvnd-gl = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{libGL}
LibGL wrapper from libglvnd.

%files -n %{libGL}
%{_libdir}/libGL.so.1*


#----------------------------------------------------------------------------
%package -n %{libGLX}
Summary:	LibGLX wrapper from libglvnd
Requires:	mesa-libGL%{?_isa} >= 18.2.1
Provides:	%{name}-GLX = %{EVRD}
Provides:	glvnd-glx = %{EVRD}
Provides:	%{_lib}glvnd-glx = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{libGLX}
LibGLX wrapper from libglvnd.

%files -n %{libGLX}
%{_libdir}/libGLX.so.0*


#----------------------------------------------------------------------------
%package -n %{libOpenGL}
Summary:	OpenGL wrapper from libglvnd
Provides:	%{name}-OpenGL = %{EVRD}
Provides:	%{_lib}opengl0 = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{libOpenGL}
OpenGL wrapper from libglvnd.

%files -n %{libOpenGL}
%{_libdir}/libOpenGL.so.0*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libEGL} = %{EVRD}
Requires:	%{libGLdispatch} = %{EVRD}
Requires:	%{libGLESv1} = %{EVRD}
Requires:	%{libGLESv2} = %{EVRD}
Requires:	%{libGL} = %{EVRD}
Requires:	%{libGLX} = %{EVRD}
Requires:	%{libOpenGL} = %{EVRD}
# Pull in Mesa for OpenGL headers
Requires:	%{_includedir}/EGL/eglmesaext.h
Requires:	%{_includedir}/GL/gl.h
# EGL headers include <X11/xlib.h>
Requires:	pkgconfig(x11)

%description -n %{devname}
This package is a bootstrap trick for Mesa, which wants to build against
the libglvnd headers but does not link against any of its libraries (and,
initially, has file conflicts with them).

%files -n %{devname}
%dir %{_includedir}/glvnd
%{_includedir}/glvnd/*.h
%dir %{_includedir}/EGL
%{_includedir}/EGL/*.h
%dir %{_includedir}/GL
%{_includedir}/GL/*.h
%dir %{_includedir}/GLES
%{_includedir}/GLES/*.h
%dir %{_includedir}/GLES2
%{_includedir}/GLES2/*.h
%dir %{_includedir}/GLES3
%{_includedir}/GLES3/*.h
%dir %{_includedir}/KHR
%{_includedir}/KHR/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libEGL.so
%{_libdir}/libGLdispatch.so
%{_libdir}/libGLX.so
%{_libdir}/libGL.so
%{_libdir}/libGLESv1_CM.so
%{_libdir}/libGLESv2.so
%{_libdir}/libOpenGL.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
export PYTHON=%{__python3}
./autogen.sh
%configure \
  --disable-static \
  --enable-asm \
  --enable-tls

%make

%install
%make_install INSTALL="install -p"
find %{buildroot} -name '*.la' -delete

# Create directory layout
mkdir -p %{buildroot}%{_sysconfdir}/glvnd/egl_vendor.d
mkdir -p %{buildroot}%{_datadir}/glvnd/egl_vendor.d
mkdir -p %{buildroot}%{_sysconfdir}/egl/egl_external_platform.d
mkdir -p %{buildroot}%{_datadir}/egl/egl_external_platform.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14100 |21mr|libgnome-games-support-1.8.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 3
%define api 1
%define libname %mklibname gnome-games-support %{api} %{major}
%define devname %mklibname gnome-games-support -d

Summary:	Support library for GNOME games
Name:		libgnome-games-support
Version:	1.8.2
Release:	3
License:	LGPLv3+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libgnome-games-support
Source0:	https://download.gnome.org/sources/libgnome-games-support/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gee-0.8)

%description
A small library intended for internal use by GNOME Games, but it may be used
by others. The API will only break with the major version number.
The ABI is unstable.

#----------------------------------------------------------------------------

%package i18n
Summary:	Support library for GNOME games - translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
A small library intended for internal use by GNOME Games, but it may be used
by others. The API will only break with the major version number.
The ABI is unstable.

This package contains translations used by %{name}.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
A small library intended for internal use by GNOME Games, but it may be used
by others. The API will only break with the major version number.
The ABI is unstable.

%files -n %{libname}
%doc COPYING NEWS README
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_datadir}/vala/vapi/*.vapi
%{_includedir}/gnome-games-support-%{api}/
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14101 |21mr|libgnomekbd-3.26.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 8
%define girmajor 3.0
%define libname %mklibname gnomekbd %{major}
%define libnameui %mklibname gnomekbdui %{major}
%define girname %mklibname gnomekbd-gir  %{girmajor}
%define devname %mklibname gnomekbd -d

Summary:	GNOME keyboard libraries
Name:		libgnomekbd
Version:	3.26.1
Release:	10
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libgnomekbd
Source0:	https://download.gnome.org/sources/libgnomekbd/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	chrpath
BuildRequires:	intltool
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libxklavier)

%description
GNOME keyboard indicator plugin.

#----------------------------------------------------------------------------

%package common
Summary:	Files used by GNOME keyboard libraries
Group:		System/Libraries

%description common
Files used by GNOME keyboard library.

%files common -f %{name}.lang
%doc NEWS ChangeLog
%{_bindir}/gkbd-keyboard-display
%{_datadir}/applications/gkbd-keyboard-display.desktop
%{_datadir}/GConf/gsettings/libgnomekbd.convert
%{_datadir}/glib-2.0/schemas/org.gnome.libgnomekbd.*.xml
%{_datadir}/libgnomekbd/

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries for GNOME applications
Group:		System/Libraries

%description -n %{libname}
GNOME keyboard library.

%files -n %{libname}
%{_libdir}/libgnomekbd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameui}
Summary:	Dynamic libraries for GNOME applications
Group:		System/Libraries

%description -n %{libnameui}
GNOME keyboard library.

%files -n %{libnameui}
%{_libdir}/libgnomekbdui.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gkbd-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files for GNOME
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libnameui} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development library and headers file needed in order to develop
applications using the GNOME keyboard library

%files -n %{devname}
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so
%{_datadir}/gir-1.0/Gkbd-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--enable-introspection

%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14102 |21mr|libgnome-keyring-3.12.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

%define major		0
%define gir_major	1.0
%define libname %mklibname gnome-keyring %{major}
%define girname	%mklibname gnome-keyring-gir %{gir_major}
%define develname %mklibname -d gnome-keyring

Summary:	Keyring library for the GNOME desktop
Name:		libgnome-keyring
Version:	3.12.0
Release:	7
License:	LGPLv2+
Group:		Networking/Remote access
URL:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/libgnome-keyring/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		libgnome-keyring-vala-0.42+.patch

BuildRequires:	intltool
BuildRequires:	gtk-doc
BuildRequires:	libgcrypt-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
gnome-keyring is a program that keep password and other secrets for
users. It is run as a damon in the session, similar to ssh-agent, and
other applications can locate it by an environment variable.
 
The program can manage several keyrings, each with its own master
password, and there is also a session keyring which is never stored to
disk, but forgotten when the session ends.

%package i18n
Group:		System/Libraries
Summary:	Localization data files for %{name}

%description i18n
This package contains the translations for %{name}.

%package -n %{libname}
Group:		System/Libraries
Summary:	Library for integration with the gnome keyring system
Requires:	%{name}-i18n >= %{version}-%{release}

%description -n %{libname}
The library libgnome-keyring is used by applications to integrate with
the gnome keyring system. However, at this point the library hasn't been
tested and used enought to consider the API to be publically
exposed. Therefore use of libgnome-keyring is at the moment limited to
internal use in the gnome desktop. However, we hope that the
gnome-keyring API will turn out useful and good, so that later it
can be made public for any application to use.

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%package -n %{develname}
Group:		Development/C
Summary:	Library for integration with the gnome keyring system
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname -d libgnome-keyring 0} < 3.4.1

%description -n %{develname}
The library libgnome-keyring is used by applications to integrate with
the gnome keyring system. However, at this point the library hasn't been
tested and used enought to consider the API to be publically
exposed. Therefore use of libgnome-keyring is at the moment limited to
internal use in the gnome desktop. However, we hope that the
gnome-keyring API will turn out useful and good, so that later it
can be made public for any application to use.

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%find_lang %{name}

%files i18n -f %{name}.lang

%files -n %{libname}
%{_libdir}/libgnome-keyring.so.%{major}*

%files -n %{girname}
%{_libdir}/girepository-1.0/GnomeKeyring-%{gir_major}.typelib

%files -n %{develname}
%doc ChangeLog README NEWS
%dir %{_includedir}/gnome-keyring-1/
%{_includedir}/gnome-keyring-1/*.h
%{_libdir}/libgnome-keyring.so
%{_libdir}/pkgconfig/gnome-keyring-1.pc
%doc %{_datadir}/gtk-doc/html/gnome-keyring
%{_datadir}/gir-1.0/GnomeKeyring-%{gir_major}.gir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14103 |21mr|libgnt-2.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname gnt

%define	major 0
%define	libname %mklibname %{oname} %{major}
%define	devname %mklibname %{oname} -d

Summary:	An ncurses toolkit for creating text-mode graphical UI
Name:		libgnt
Version:	2.14.1
Release:	1
License:	GPLv2
Group:		System/Libraries
Url:		https://keep.imfreedom.org/libgnt/libgnt
Source0:	https://sourceforge.net/projects/pidgin/files/libgnt/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson >= 0.41.0
BuildRequires:	ninja
BuildRequires:	pkgconfig(glib-2.0) >= 2.16.0
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.6.0
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(python3)
Conflicts:	finch < 2.14

%description
The Glib Ncurses Toolkit (GNT) is a toolkit for creating text-mode graphical
user interfaces in a fast and easy way. It is based on GLib and ncurses.
It was born out of the console-based UI, Finch, for the libpurple project, but
has now been split into its own independent repository.

%files
%doc COPYING
%dir %{_libdir}/%{oname}/
%{_libdir}/%{oname}/*.so

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An ncurses toolkit for creating text-mode graphical UI
Group:		System/Libraries

%description -n %{libname}
GNT shared library.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	GNT (%{name}) development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}purple-devel < 2.14

%description -n %{devname}
GNT development files.

%files -n %{devname}
%doc ChangeLog README.md
%{_includedir}/%{oname}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{oname}.pc
%{_datadir}/gtk-doc/html/%{name}/

#------------------------------------------------------------------

%prep
%setup -q


%build
%meson
%meson_build


%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14104 |21mr|libgovirt-0.3.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major 2
%define girmajor 1.0

%define libname %mklibname govirt %{major}
%define girname %mklibname govirt-gir %{girmajor}
%define devname %mklibname govirt -d

Summary:	A GObject library for interacting with oVirt REST API
Name:		libgovirt
Version:	0.3.9
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://people.freedesktop.org/~teuf/govirt/
Source0:	https://download-fallback.gnome.org/sources/libgovirt/0.3/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(rest-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
libgovirt is a library that allows applications to use oVirt REST API
to list VMs managed by an oVirt instance, and to get the connection
parameters needed to make a SPICE/VNC connection to them.

%files -f govirt-1.0.lang
%doc AUTHORS MAINTAINERS README
%license COPYING

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A GObject library for interacting with oVirt REST API
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
libgovirt is a library that allows applications to use oVirt REST API
to list VMs managed by an oVirt instance, and to get the connection
parameters needed to make a SPICE/VNC connection to them.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for libgovirt
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for libgovirt.

%files -n %{girname}
%{_libdir}/girepository-1.0/GoVirt-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc. to compile with the libgovirt library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
libgovirt is a library that allows applications to use oVirt REST API
to list VMs managed by an oVirt instance, and to get the connection
parameters needed to make a SPICE/VNC connection to them.

Libraries, includes, etc. to compile with the libgovirt library

%files -n %devname
%{_datadir}/gir-1.0/GoVirt-1.0.gir
%dir %{_includedir}/govirt-1.0/
%dir %{_includedir}/govirt-1.0/govirt/
%{_includedir}/govirt-1.0/govirt/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/govirt-1.0.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang govirt-1.0 --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14105 |21mr|libgpg-error-1.45-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname gpg-error %{major}
%define devname %mklibname gpg-error -d
%define staticname %mklibname gpg-error -d -s

Summary:	Library containing common error values for GnuPG components
Name:		libgpg-error
Version:	1.45
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://www.gnupg.org/
Source0:	https://www.gnupg.org/ftp/gcrypt/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	gettext-devel

%description
This is a library that defines common error values for all GnuPG
components.  Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
pinentry, SmartCard Daemon and possibly more in the future.

#----------------------------------------------------------------------------

%package common
Summary:	Common files for libgpg-error
Group:		System/Libraries
BuildArch:	noarch

%description common
This package contains the common files that are used by the
libgpg-error library.

%files common -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library containing common error values for GnuPG components
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libname}
This is a library that defines common error values for all GnuPG
components.  Among these are GPG, GPGSM, GPGME, GPG-Agent, libgcrypt,
pinentry, SmartCard Daemon and possibly more in the future.

%files -n %{libname}
/%{_lib}/libgpg-error.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files of %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains headers and other necessary files to develop
or compile applications that use %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/gpg-error
%{_bindir}/gpg-error-config
%{_bindir}/gpgrt-config
%{_bindir}/yat2m
%{_datadir}/aclocal/gpg-error.m4
%{_datadir}/aclocal/gpgrt.m4
%{_datadir}/common-lisp/source/gpg-error
%{_datadir}/libgpg-error/errorref.txt
%{_includedir}/gpg-error.h
%{_includedir}/gpgrt.h
%{_infodir}/gpgrt.info*
%{_libdir}/libgpg-error.so
%{_libdir}/pkgconfig/gpg-error.pc
%{_mandir}/man1/gpgrt-config.1*

#----------------------------------------------------------------------------

%package -n %{staticname}
Summary:	Library files needed for linking statically to %{name}
Group:		Development/C
Provides:	gpg-error-static-devel = %{EVRD}
Provides:	libgpg-error-static-devel = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{staticname}
Library files needed for linking statically to %{name}

%files -n %{staticname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --enable-static
%make_build

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libgpg-error.so.%{major}* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libgpg-error.so.%{major}.*.* %{buildroot}%{_libdir}/libgpg-error.so

%find_lang %{name}

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14106 |21mr|libgphoto-2.5.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname	gphoto2
%define major	6
%define majport	12
%define libname	%mklibname %{sname}_ %{major}
%define libport	%mklibname %{sname}_port %{majport}
%define devname	%mklibname gphoto -d

%define url_ver %(echo %{version}|tr . _)

Summary:	Library to access digital cameras
Name:		libgphoto
Version:	2.5.27
Release:	1
License:	LGPL+ and GPLv2+ and (LGPL+ or BSD-like)
Group:		Graphics
Url:		http://sourceforge.net/projects/gphoto/
Source0:	https://github.com/gphoto/libgphoto2/archive/%{name}2-%{url_ver}-release/%{version}/%{name}2-%{version}.tar.gz
#Fedora patchset
Patch5:		libgphoto2-2.5.8-compile.patch
BuildRequires:	findutils
BuildRequires:	gd-devel
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(lockdev)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	systemd
Requires:	lockdev

%description
The gPhoto2 project is a universal, free application and library
framework that lets you download images from several different
digital camera models, including the newer models with USB
connections. Note that
a) for some older camera models you must use the old "gphoto" package.
b) for USB mass storage models you must use the driver in the kernel

This package contains the library that digital camera applications
can use.

Frontends (GUI and command line) are available separately.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to access to digital cameras
Group:		Graphics
Provides:	%{name} = %{EVRD}
Requires:	%{name}-common
Conflicts:	%{_lib}gphoto6 < 2.5.1.1-2
Obsoletes:	%{_lib}gphoto6 < 2.5.1.1-2

%description -n %{libname}
This library contains all the functionality to access to modern digital
cameras via USB or the serial port.

%files -n %{libname}
%{_libdir}/libgphoto2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libport}
Summary:	Library to access to digital cameras
Group:		Graphics
Recommends:	%{name}-common = %{EVRD}
Conflicts:	%{_lib}gphoto6 < 2.5.1.1-2

%description -n %{libport}
This library contains all the functionality to access to modern digital
cameras via USB or the serial port.

%files -n %{libport}
%{_libdir}/libgphoto2_port.so.%{majport}*

#----------------------------------------------------------------------------

%package common
Summary:	Non-library files for libgphoto
Group:		Graphics
Requires:	%{libname} = %{EVRD}
Requires:	%{libport} = %{EVRD}

%description common
Non-library files for libgphoto.

%files common -f %{name}.lang
%{_datadir}/libgphoto2
%{_datadir}/libgphoto2_port/*/vcamera/README.txt
%{_libdir}/libgphoto2
%{_libdir}/libgphoto2_port
%{_udevrulesdir}/40-libgphoto2.rules
/lib/udev/check-ptp-camera

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and links to compile against the "%{libname}" library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libport} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains all files which one needs to compile programs using
the "%{libname}" library.

%files -n %{devname}
%{_bindir}/*
%{_includedir}/gphoto2
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*
%docdir %{_docdir}/%{libname}
%{_docdir}/%{libname}
%doc ABOUT-NLS ChangeLog MAINTAINERS TESTERS

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}2-%{name}2-%{url_ver}-release
%apply_patches

%build
autoreconf -fi
export udevscriptdir=/lib/udev
%configure \
	--disable-static \
	--disable-rpath \
	--with-drivers=all \
	--with-doc-dir=%{_docdir}/%{libname}

# Don't use rpath!
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libgphoto2_port/libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libgphoto2_port/libtool

%make

%install
%makeinstall_std

# remove circular symlink in /usr/include/gphoto2 (#460807)
rm -f %{buildroot}%{_includedir}/gphoto2/gphoto2

# # Output udev rules for device identification; this is used by GVfs gphoto2
# backend and others.
#
# Btw, since it's /lib/udev, never e.g. /lib64/udev, we hardcode the path
#
mkdir -p %{buildroot}/lib/udev/rules.d
LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{buildroot}%{_libdir}/libgphoto2/print-camera-list udev-rules version 136 > %{buildroot}/lib/udev/rules.d/40-libgphoto2.rules

# remove unneeded print-camera-list from libdir (Fedora #745081)
rm -f %{buildroot}%{_libdir}/libgphoto2/print-camera-list

%find_lang libgphoto2-6
%find_lang libgphoto2_port-%{majport}
cat libgphoto2-6.lang libgphoto2_port-%{majport}.lang > %{name}.lang

# Don't need to package this
rm -f %{buildroot}%{_docdir}/%{libname}/COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14107 |21mr|libgpod-0.8.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_mono}%{?!build_mono:%bcond_without mono}

%define api 1.0

%define major 4
%define libname %mklibname gpod %{major}
%define devname %mklibname gpod -d

Summary:	Library to access an iPod audio player
Name:		libgpod
Version:	0.8.3
Release:	11
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gtkpod.org/
Source0:	http://prdownloads.sourceforge.net/gtkpod/%{name}-%{version}.tar.bz2
# upstreamable patch: reduce pkgconfig-related overlinking
Patch0:		libgpod-0.8.2-pkgconfig_overlinking.patch
Patch1:		libgpod-fixswig.patch
Patch2:		libgpod-0.8.3-mono4.patch
Patch3:		libgpod-playcounts.patch
Patch4:		libgpod-udev.patch
Patch5:		0001-configure.ac-Add-support-for-libplist-2.2.patch
BuildRequires:	gtk-doc
BuildRequires:	eject
BuildRequires:	intltool
BuildRequires:	sg3_utils-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libimobiledevice-1.0)
BuildRequires:	pkgconfig(libplist-2.0)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(udev)

%description
libgpod is a library meant to abstract access to an iPod content. It
provides an easy to use API to retrieve the list of files and playlist
stored on an iPod, to modify them and to save them back to the iPod.

%files -f %{name}.lang
%doc README* AUTHORS
%{_bindir}/ipod-read-sysinfo-extended
/lib/udev/iphone-set-info
/lib/udev/ipod-set-info
/lib/udev/rules.d/90-libgpod.rules

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Library to access an iPod audio player
Requires:	eject
#gw this is needed to have the udev script started after connecting an ipod
Requires:	%{name}

%description -n %{libname}
libgpod is a library meant to abstract access to an iPod content. It
provides an easy to use API to retrieve the list of files and playlist
stored on an iPod, to modify them and to save them back to the iPod.

%files -n %{libname}
%{_libdir}/libgpod.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library to access an iPod audio player
Group:		Development/C
Requires:	%{libname} = %{EVRD}
%if %{with mono}
Requires:	%{name}-sharp = %{EVRD}
%endif
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libgpod is a library meant to abstract access to an iPod content. It
provides an easy to use API to retrieve the list of files and playlist
stored on an iPod, to modify them and to save them back to the iPod.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/libgpod.so
%{_libdir}/libgpod.*a
%{_libdir}/pkgconfig/libgpod-%{api}.pc
%if %{with mono}
%{_libdir}/pkgconfig/libgpod-sharp.pc
%endif
%{_includedir}/gpod-%{api}/
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%if %{with mono}
%package sharp
Summary:	Mono binding to libgpod for iPod access
Group:		Development/Other
BuildRequires:	gtk-sharp2
BuildRequires:	pkgconfig(gapi-2.0)
BuildRequires:	pkgconfig(mono)
Requires:	%{libname} = %{EVRD}

%description sharp
libgpod is a library meant to abstract access to an iPod content. It
provides an easy to use API to retrieve the list of files and playlist
stored on an iPod, to modify them and to save them back to the iPod.

This is a Mono binding for libgpod.

%files sharp
%dir %{_libdir}/%{name}/
%{_libdir}/%{name}/libgpod-sharp*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .pkgconfig_overlinking
%patch1 -p1 -b .swig
%patch2 -p1 -b .mono4
%patch3 -p1 -b .playcounts
%patch4 -p0 -b .udev
%patch5 -p1 -b .libplist-2.2

%build
gtkdocize
autoreconf -fi
%configure \
	--enable-gtk-doc \
	--enable-udev \
	--enable-static \
	--with-python=no \
	--without-hal

%make

%install
%makeinstall_std

%if %{without mono}
rm -f %{buildroot}%{_libdir}/pkgconfig/libgpod-sharp.pc
%endif

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14108 |21mr|libgravatar-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 gravatar module
Name:		libgravatar
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 gravatar module.

%files
%{_kde5_datadir}/qlogging-categories5/libgravatar.categories
%{_kde5_datadir}/qlogging-categories5/libgravatar.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 gravatar library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 gravatar library translations.

%files i18n -f libgravatar.lang

#----------------------------------------------------------------------------

%define kf5gravatar_major 5
%define libkf5gravatar %mklibname kf5gravatar %{kf5gravatar_major}

%package -n %{libkf5gravatar}
Summary:	KDE Frameworks 5 gravatar shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5gravatar}
KDE Frameworks 5 gravatar shared library.

%files -n %{libkf5gravatar}
%{_kde5_libdir}/libKPim5Gravatar.so.%{kf5gravatar_major}*

#----------------------------------------------------------------------------

%define devkf5gravatar %mklibname kf5gravatar -d

%package -n %{devkf5gravatar}
Summary:	Development files for KDE Frameworks 5 gravatar module
Group:		Development/KDE and Qt
Requires:	%{libkf5gravatar} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5gravatar-devel = %{version}

%description -n %{devkf5gravatar}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5gravatar}
%{_kde5_includedir}/KPim5/Gravatar
%{_kde5_libdir}/cmake/KPim5Gravatar
%{_kde5_libdir}/libKPim5Gravatar.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libgravatar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14109 |21mr|libgrss-0.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d. -f1,2)

%define	api	1.0
%define major	0
%define libname	%mklibname grss %{major}
%define	devname	%mklibname grss	-d

Summary:	Library for easy management of RSS/Atom/Pie feeds
Name:		libgrss
Version:	0.7.0
Release:	2
License:	LGPLv3+
Group:		System/Libraries
Url:		http://live.gnome.org/Libgrss
Source0:	https://download.gnome.org/sources/libgrss/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)

%description
LibGRSS is a library for easy management of RSS/Atom/Pie feeds.

#-------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for easy management of RSS/Atom/Pie feeds
Group:		System/Libraries

%description -n %{libname}
LibGRSS is a library for easy management of RSS/Atom/Pie feeds.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#-------------------------------------------------------------------

%package -n %{devname}
Summary:	Library for easy management of RSS/Atom/Pie feeds -- Development Files
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
LibGRSS is a library for easy management of RSS/Atom/Pie feeds.

%files -n %{devname}
%doc COPYING NEWS README
%{_datadir}/gtk-doc/html/%{name}
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14110 |21mr|libgsasl-1.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	libgsasl
%define major 7
%define libname %mklibname gsasl %major
%define devname %mklibname -d gsasl
%define sdevname %mklibname -d -s gsasl

Name:		%{name}
Version:	1.8.1
Release:	1
Summary:	Implementation of the Simple Authentication and Security Layer framework
License:	LGPLv2+
Group:		System/Libraries
Source0:	ftp://ftp.gnu.org/gnu/gsasl/%{name}-%{version}.tar.gz
URL:		http://www.gnu.org/software/gsasl/
BuildRequires:	krb5-devel
#BuildRequires:	sasl-plug-gssapi
BuildRequires:	pkgconfig(libntlm)
BuildRequires:	pkgconfig(libidn)
BuildRequires:	pkgconfig(libgcrypt)


%description
GNU SASL is an implementation of the Simple Authentication and 
Security Layer framework and a few common SASL mechanisms. SASL 
is used by network servers (e.g., IMAP, SMTP) to request 
authentication from clients, and in clients to authenticate against 
servers.

%files -f %name.lang
#--------------------------------------------------------------------

%package -n %libname
Group: System/Libraries
Summary: Implementation of the Simple Authentication and Security Layer framework

%description -n %libname
GNU SASL is an implementation of the Simple Authentication and
Security Layer framework and a few common SASL mechanisms. SASL
is used by network servers (e.g., IMAP, SMTP) to request
authentication from clients, and in clients to authenticate against
servers.

%files -n %libname
%_libdir/libgsasl.so.%{major}
%_libdir/libgsasl.so.%{major}.*

#--------------------------------------------------------------------

%package -n %devname
Group: Development/C
Summary: Implementation of the Simple Authentication and Security Layer framework
Requires: %libname = %version
Provides: %name-devel = %version-%release

%description -n %devname
GNU SASL is an implementation of the Simple Authentication and
Security Layer framework and a few common SASL mechanisms. SASL
is used by network servers (e.g., IMAP, SMTP) to request
authentication from clients, and in clients to authenticate against
servers.

%files -n %devname
%_libdir/pkgconfig/libgsasl.pc
%_libdir/libgsasl.so
%_includedir/gsasl-compat.h
%_includedir/gsasl-mech.h
%_includedir/gsasl.h

#-------------------------------------------------------------------

%package -n %sdevname
Group: Development/C
Summary: Implementation of the Simple Authentication and Security Layer framework
Requires: %libname = %version
Provides: %name-devel-static = %version-%release
Requires: %name-devel = %version-%release

%description -n %sdevname
GNU SASL is an implementation of the Simple Authentication and
Security Layer framework and a few common SASL mechanisms. SASL
is used by network servers (e.g., IMAP, SMTP) to request
authentication from clients, and in clients to authenticate against
servers.

%files -n %sdevname
%_libdir/libgsasl.a

#--------------------------------------------------------------------

%prep
%setup -q 

%build
%configure --enable-static
%make

%install
%makeinstall_std
%find_lang %name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14111 |21mr|libgsf-1.14.53-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 114
%define libname %mklibname gsf- %{api} %{major}
%define girname %mklibname gsf-gir %{api}
%define devname %mklibname gsf- %{api} -d

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME Structured File library
Name:		libgsf
Version:	1.14.53
Release:	1
Epoch:		1
License:	LGPLv2
Group:		System/Libraries
Url:		http://www.gnumeric.org
Source0:	https://ftp.gnome.org/pub/GNOME/sources/libgsf/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	GConf2
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(popt)

%description
A library for reading and writing structured files (eg MS OLE and Zip).

%files -f %{name}.lang
%doc AUTHORS README
%license COPYING
%{_bindir}/gsf-vba-dump
%{_bindir}/gsf-office-thumbnailer
%{_datadir}/thumbnailers/gsf-office.thumbnailer
%{_mandir}/man1/*
%{_bindir}/gsf
%{_datadir}/gtk-doc/html/gsf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNOME Structured File library
Group:		System/Libraries

%description -n %{libname}
A library for reading and writing structured files (eg MS OLE and Zip).

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}libgsf-gir1 < 1:1.14.47
Obsoletes:	%{_lib}libgsf-gir1 < 1:1.14.47

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Gsf-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Support files necessary to compile applications with %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}-%{api}-devel = %{EVRD}

%description -n %{devname}
Libraries, headers, and support files necessary to compile
applications using %{name}.

%files -n %{devname}
%{_datadir}/gir-1.0/Gsf-%{api}.gir
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i "/implicit-function-declaration\| -Wnested-externs\| -Werror=nested-externs/d" configure*

%build
CFLAGS="%{optflags} -Wno-implicit-function-declaration -Wno-int-conversion"
%configure	\
	--disable-static	\
	--enable-gtk-doc	\
	--enable-introspection
%make

%install
%makeinstall_std

# remove unpackaged files
rm -rf %{buildroot}%{_datadir}/doc/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14112 |21mr|libgssglue-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname gssglue %{major}
%define devname %mklibname gssglue -d

Summary:	A mechanism-switch gssapi library
Name:		libgssglue
Version:	0.4
Release:	7
License:	BSD-like
Group:		System/Libraries
Url:		http://www.citi.umich.edu/projects/nfsv4/linux/
Source0:	http://www.citi.umich.edu/projects/nfsv4/linux/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(krb5)

%description
libgssglue provides a gssapi interface, but does not implement any
gssapi mechanisms itself; instead it calls other gssapi functions
(e.g., those provided by MIT Kerberos), depending on the requested
mechanism, to do the work.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A mechanism-switch gssapi library
Group:		System/Libraries

%description -n %{libname}
libgssapi provides a gssapi interface, but does not implement any
gssapi mechanisms itself; instead it calls other gssapi functions
(e.g., those provided by MIT Kerberos), depending on the requested
mechanism, to do the work.

%files -n %{libname}
%{_libdir}/libgssglue.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libgssapi library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	gssglue-devel = %{EVRD}

%description -n %{devname}
libgssapi provides a gssapi interface, but does not implement any
gssapi mechanisms itself; instead it calls other gssapi functions
(e.g., those provided by MIT Kerberos), depending on the requested
mechanism, to do the work.

This package contains the static libgssapi library and its
header files.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_includedir}/gssglue/gssapi/gssapi.h
%{_libdir}/libgssglue.so
%{_libdir}/pkgconfig/libgssglue.pc

#----------------------------------------------------------------------------

%prep
%setup -q
# lib64 fix
perl -pi -e "s|/usr/lib|%{_libdir}|g" doc/gssapi_mech.conf

%build
%configure \
	--disable-static
%make

%install
install -d %{buildroot}%{_sysconfdir}

%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14113 |21mr|libgtop2-2.40.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with examples

%define url_ver %(echo %{version} | cut -d. -f1,2)
%define pkgname libgtop
%define api 2.0
%define major 11
# TODO: Split typelib (gir) files
%define libname %mklibname gtop %{api} %{major}
%define girname %mklibname gtop-gir %{api}
%define devname %mklibname gtop %{api} -d

Summary:	The LibGTop library
Name:		%{pkgname}2
Version:	2.40.0
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{pkgname}/%{url_ver}/%{pkgname}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	texlive-tlpkg
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(xau)

%description
LibGTop is a library that fetches information about the running
system such as CPU and memory useage, active processes and more.

On Linux systems, this information is taken directly from the /proc
filesystem while on other systems a server is used to read that
information from other /dev/kmem, among others.

%files -f %{pkgname}.lang
%doc NEWS README
%{_bindir}/%{pkgname}_daemon2
%{_bindir}/%{pkgname}_server2
%if %{with examples}
%dir %{_libdir}/%{pkgname}
%{_libdir}/%{pkgname}/first*
%{_libdir}/%{pkgname}/mountlist*
%{_libdir}/%{pkgname}/netload*
%{_libdir}/%{pkgname}/procmap*
%{_libdir}/%{pkgname}/second*
%{_libdir}/%{pkgname}/smp*
%{_libdir}/%{pkgname}/sysdeps*
%{_libdir}/%{pkgname}/timings*
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The LibGTop library
Group:		System/Libraries
Provides:	%{pkgname}%{api} = %{EVRD}
Requires:	%{name} >= %{EVRD}
Recommends:	%{girname}

%description -n %{libname}
LibGTop is a library that fetches information about the running
system such as CPU and memory useage, active processes and more.

On Linux systems, this information is taken directly from the /proc
filesystem while on other systems a server is used to read that
information from other /dev/kmem, among others.

%files -n %{libname}
%doc NEWS README
%{_libdir}/libgtop-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}gtop2.0_7 < 2.28.3-14

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GTop-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{pkgname}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{pkgname}%{api}-devel = %{EVRD}

%description -n %{devname}
LibGTop is a library that fetches information about the running
system such as CPU and memory useage, active processes and more.

Install this package if you wish to develop applications that access
information on system statistics such as CPU and memory usage.

%files -n %{devname}
%doc AUTHORS ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/%{pkgname}-%{api}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_infodir}/*.info*
%{_datadir}/gir-1.0/GTop-%{api}.gir

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
%configure \
%if %{with examples}
	--with-libgtop-examples
%endif

%make

%install
%makeinstall_std

%find_lang %{pkgname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14114 |21mr|libgudev-237-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 0
%define libname %mklibname gudev %{api} %{major}
%define girname %mklibname gudev-gir %{api}
%define devname %mklibname gudev %{api} -d

Summary:	GObject-based wrapper library for libudev
Name:		libgudev
Version:	237
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libgudev
Source0:	https://download.gnome.org/sources/libgudev/%{version}/libgudev-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(umockdev-1.0)
BuildRequires:	pkgconfig(vapigen)

%description
This library makes it much simpler to use libudev from programs
already using GObject. It also makes it possible to easily use libudev
from other programming languages, such as Javascript, because of
GObject introspection support.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for adding libudev support to applications that use glib
Group:		System/Libraries
#gw please don't remove this again, it is needed by the noarch package
#gudev-sharp
Provides:	libgudev = %{EVRD}

%description -n %{libname}
This package contains the libraries that make it easier to use libudev
functionality from applications that use glib.

%files -n %{libname}
%{_libdir}/libgudev-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for GUdev
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for GUdev.

%files -n %{girname}
%{_libdir}/girepository-1.0/GUdev-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for adding libudev support to applications that use glib
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package provides the development files for the gudev shared library.

%files -n %{devname}
%{_datadir}/gir-1.0/GUdev-%{api}.gir
%{_datadir}/gtk-doc/html/gudev
%{_datadir}/vala/vapi/gudev-%{api}.*
%{_includedir}/gudev-%{api}
%{_libdir}/libgudev-%{api}.so
%{_libdir}/pkgconfig/gudev-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
	-Dintrospection=enabled	\
	-Dvapi=enabled		\
	-Dgtk_doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14115 |21mr|libguess-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname guess %{major}
%define devname %mklibname guess -d

Summary:	A high-speed character set detection library
Name:		libguess
Version:	1.2
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://www.atheme.org/project/guess
Source0:	http://rabbit.dereferenced.org/~nenolod/distfiles/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libmowgli)

%description
Libguess is a high-speed character set detection library. It employs
discrete-finite automata to deduce the character set of an imput buffer.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A high-speed character set detection library
Group:		System/Libraries

%description -n %{libname}
Libguess is a high-speed character set detection library. It employs
discrete-finite automata to deduce the character set of an imput buffer.

%files -n %{libname}
%{_libdir}/libguess.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A high-speed character set detection library development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libguess is a high-speed character set detection library. It employs
discrete-finite automata to deduce the character set of an imput buffer.

Install this if you want to build applications with %{name}.

%files -n %{devname}
%{_libdir}/libguess.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14116 |21mr|libguestfs-1.52.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global rosa_platform 2023.1

# Please keep this package in sync with FC
# REMINDER need to make libname here

# ceph arches
ExclusiveArch: %{x86_64} aarch64 riscv64

# (tv) temp build fix:
BuildRequires: fakeroot

%bcond_with php
%define _disable_ld_no_undefined 1

# Architectures on which golang works.
#% global golang_arches aarch64 % {arm} % {ix86} x86_64
# In theory the above, in practice golang is so often broken that
# I now disable it:
%global golang_arches NONE

# Architectures that we run the basic sanity-check test.
#
# The full test suite is done after the package has been built.  Here
# we only do a sanity check that kernel/qemu/libvirt/appliance is not
# broken.  To perform the full test suite, see instructions here:
# https://www.redhat.com/archives/libguestfs/2015-September/msg00078.html
#
# Currently the basic sanity check is *broken* on:
#
# arm:     times out when running the test
# aarch64: "MSI is not supported by interrupt controller" (RHBZ#1414081)
# ppc64:   qemu doesn't work with TCG (RHBZ#1614948)
# ppc64le: kernel doesn't boot on qemu (RHBZ#1435873)
# s390x:   qemu TCG cannot emulate enough to boot the kernel
#            (however KVM would work if it was available in Koji, so this
#            is not a bug)
%global test_arches x86_64

# Enable to run tests during check
# Default is enabled
#
%if %{defined libguestfs_runtests}
%global runtests %{libguestfs_runtests}
%else
%global runtests 0
%endif

# Note there needs to be some work done on this package.
# The problem is that the package using supermin to generate
# an image using the current cauldron build.  This can cause
# errors if the cauldron build is inconsistent, and this
# creates a problem in that the same build will produce
# different images.
#
# What really should happen is that we should rewrite this
# so that the boot image is created when rpm is installed.

# If there are patches which touch autotools files, set this to 1.
%global patches_touch_autotools %{nil}

# The source directory.
%global source_directory 1.52-stable

# Filter perl provides.
%{?perl_default_filter}

Summary:	Access and modify virtual machine disk images
Name:		libguestfs
Epoch:		1
Version:	1.52.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
URL:		http://libguestfs.org/
Source0:	http://libguestfs.org/download/%{source_directory}/%{name}-%{version}.tar.gz
# Replacement README file for ROSA users.
Source4:	README-replacement.in
# Guestfish colour prompts.
Source5:	guestfish.sh
# Used to build the supermin appliance in Koji.
Source6:	yum.conf.in
# Maintainer script which helps with handling patches.
Source8:	copy-patches.sh
Patch0:		libguestfs-1.52.0-force-rpm.patch
# END OF FEDORA PATCHES
Patch20:	libguestfs-1.37.18-mga-lua.patch
# Basic build requirements for the library and virt tools.
BuildRequires:	tirpc-devel
BuildRequires:	supermin-devel >= 5.1.18
BuildRequires:	hivex-devel >= 1.2.7-7
BuildRequires:	ocaml-hivex-devel
BuildRequires:	ocaml-augeas-devel
BuildRequires:	perl(Pod::Simple)
BuildRequires:	perl(Pod::Man)
BuildRequires:	po4a
BuildRequires:	augeas-devel >= 1.7.0
BuildRequires:	readline-devel
BuildRequires:	xorriso
BuildRequires:	libxml2-devel
BuildRequires:	createrepo
#BuildRequires: selinux-devel
BuildRequires: libselinux-utils
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pcre-devel
BuildRequires:	libvirt-devel
BuildRequires:	gperf
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	db5-utils
BuildRequires:	cpio
BuildRequires:	libconfig-devel
BuildRequires:	lzma-devel
BuildRequires:	zip
BuildRequires:	unzip
BuildRequires:	systemd-units
BuildRequires:	netpbm
BuildRequires:	icoutils
BuildRequires:	libvirt-utils
BuildRequires:	perl(Expect)
BuildRequires:	acl-devel
BuildRequires:	libcap-devel
BuildRequires:	pkgconfig(ldm-1.0)
BuildRequires:	jansson-devel
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	iputils
BuildRequires:	wget
BuildRequires:	curl
BuildRequires:	xz
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	dbus-devel
BuildRequires:	qemu-img qemu
BuildRequires:	perl(Win::Hivex)
BuildRequires:	perl(Win::Hivex::Regedit)
BuildRequires:	magic-devel
BuildRequires:	locales-fr, locales-ja, locales-zh

# For language bindings.
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib-devel
BuildRequires:	ocaml-gettext-devel
BuildRequires:	ocaml-ounit-devel
BuildRequires:	ocaml-libvirt-devel >= 0.6.1.4-5
BuildRequires:	lua5.3-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Sys::Virt)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod) >= 1.00
BuildRequires:	perl(Test::Pod::Coverage) >= 1.00
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Locale::TextDomain)

BuildRequires:	python3-devel
BuildRequires:	python3-libvirt
BuildRequires:	ruby-devel
BuildRequires:	rubygem(rake)
# json is not pulled in automatically, see RHBZ#1325022
BuildRequires:	rubygem(json)
BuildRequires:	rubygem(rdoc)
BuildRequires:	rubygem(test-unit)
BuildRequires:	ruby-irb
%if %with php
BuildRequires:	php-devel
BuildRequires:	php-cli
%endif
BuildRequires:	gobject-introspection-devel
BuildRequires:	gjs
BuildRequires:	vala
# (tv) for vapigen:
BuildRequires:	pkgconfig(vapigen)
%ifarch %{golang_arches}
BuildRequires:	golang
%endif

# Build requirements for the appliance.
#
# Get the initial list by doing:
#   for f in `cat appliance/packagelist`; do echo $f; done | sort -u
# However you have to edit the list down to packages which exist in
# current Fedora, since supermin ignores non-existent packages.
BuildRequires:	acl attr augeas bash binutils btrfs-progs bzip2 coreutils
BuildRequires:	cpio cryptsetup curl debootstrap dhcp-client diffutils dosfstools
BuildRequires:	e2fsprogs file findutils gawk gdisk gfs2-utils grep gzip hfsplus-tools hivex
BuildRequires:	iproute2 iputils kernel kmod kpartx less libldm
BuildRequires:	libxml2-utils lsof lsscsi lvm2 lzop mdadm
BuildRequires:	openssh-clients parted pciutils pcre procps psmisc qemu-img
BuildRequires:	rsync scrub sed sleuthkit squashfs-tools strace
BuildRequires:	systemd tar udev util-linux vim-minimal which xfsprogs xz yajl zerofree
%ifnarch %{arm} aarch64 s390 s390x riscv64
# http://zfs-fuse.net/issues/94
BuildRequires:	zfs-fuse
%endif
BuildRequires: ntfs-3g ntfsprogs ntfs-3g-system-compression
%ifarch %{ix86} %{x86_64}
BuildRequires:	syslinux
%endif
BuildRequires: zstd

# Main package requires the appliance.  This allows the appliance to
# be replaced if there exists a package called
# "libguestfs-noappliance".  This package is not provided anywhere,
# you have to provide the dependency or make the package yourself.  If
# you do then libguestfs won't install the appliance and you are free
# to replace it with (eg) a fixed appliance.
Requires:      (%{name}-appliance = %{EVRD} or %{name}-noappliance)

# The daemon dependencies are not included automatically, because it
# is buried inside the appliance, so list them here.
Requires:	hivex
Requires:	pcre
#Requires: libselinux-utils
Requires:	yajl

# For core mount-local (FUSE) API.
Requires:	fuse

# For core disk-create API.
Requires:	qemu-img

# For libvirt backend.
%ifarch %{ix86} x86_64 %{arm} aarch64
Requires:	qemu-kvm
%endif

%if %{runtests}
BuildRequires:	ruby-test-unit
%endif
Conflicts: %{name}-forensics < %{version}-%{release}
Obsoletes: %{name}-forensics < %{version}-%{release}
Conflicts: %{name}-gfs2 < %{version}-%{release}
Obsoletes: %{name}-gfs2 < %{version}-%{release}
Conflicts: %{name}-hfsplus < %{version}-%{release}
Obsoletes: %{name}-hfsplus < %{version}-%{release}
Conflicts: %{name}-rescue < %{version}-%{release}
Obsoletes: %{name}-rescue < %{version}-%{release}
Conflicts: %{name}-rsync < %{version}-%{release}
Obsoletes: %{name}-rsync < %{version}-%{release}
Conflicts: %{name}-ufs < %{version}-%{release}
Obsoletes: %{name}-ufs < %{version}-%{release}
Conflicts: %{name}-xfs < %{version}-%{release}
Obsoletes: %{name}-xfs < %{version}-%{release}
Conflicts: %{name}-zfs < %{version}-%{release}
Obsoletes: %{name}-zfs < %{version}-%{release}
Conflicts: %{name}-dib < %{version}-%{release}
Obsoletes: %{name}-dib < %{version}-%{release}

%description
Libguestfs is a library for accessing and modifying virtual machine
disk images.  http://libguestfs.org

It can be used to make batch configuration changes to guests, get disk
used/free statistics (virt-df), perform backups and guest clones,
change registry/UUID/hostname info, build guests from scratch.

Libguestfs uses Linux kernel and qemu code, and can access any type of
guest filesystem that Linux and qemu can, including but not limited
to: ext2/3/4, btrfs, FAT and NTFS, LVM, many different disk partition
schemes, qcow, qcow2, vmdk.

Libguestfs for Mageia is split into several subpackages.  The basic
subpackages are:

               libguestfs  C library
         libguestfs-tools  virt-* tools, guestfish and guestmount (FUSE)
       libguestfs-tools-c  only the subset of virt tools written in C
                             (for reduced dependencies)
                 virt-dib  safe and secure diskimage-builder replacement

For enhanced features, install:

     libguestfs-forensics  adds filesystem forensics support
          libguestfs-gfs2  adds Global Filesystem (GFS2) support
       libguestfs-hfsplus  adds HFS+ (Mac filesystem) support
 libguestfs-inspect-icons  adds support for inspecting guest icons
        libguestfs-rescue  enhances virt-rescue shell with more tools
         libguestfs-rsync  rsync to/from guest filesystems
           libguestfs-ufs  adds UFS (BSD) support
           libguestfs-xfs  adds XFS support
           libguestfs-zfs  adds ZFS support

For developers:

         libguestfs-devel  C/C++ header files and library

Language bindings:

 libguestfs-gobject-devel  GObject bindings and GObject Introspection
           golang-guestfs  Go language bindings
              lua-guestfs  Lua bindings
   ocaml-libguestfs-devel  OCaml bindings
         perl-Sys-Guestfs  Perl bindings
           php-libguestfs  PHP bindings
       python3-libguestfs  Python 3 bindings
          ruby-libguestfs  Ruby bindings
          libguestfs-vala  Vala language bindings

%files -f libguestfs.lang
%doc COPYING README
%{_bindir}/libguestfs-test-tool
%{_libdir}/libguestfs.so.*
%{_mandir}/man1/guestfs-faq.1*
%{_mandir}/man1/guestfs-performance.1*
%{_mandir}/man1/guestfs-recipes.1*
%{_mandir}/man1/guestfs-release-notes-1*.1*
%{_mandir}/man1/guestfs-release-notes.1.*
%{_mandir}/man1/guestfs-security.1*
%{_mandir}/man1/libguestfs-test-tool.1*

#-------------------------------------------------------------

%package appliance
Summary:	Appliance for %{name}
Requires:	supermin >= 5.1.18

%description appliance
%{name}-appliance provides the appliance used by libguestfs.

%files appliance
%{_libdir}/guestfs/
#-------------------------------------------------------------
%package devel
Summary:	Development tools and libraries for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	pkgconfig

# For libguestfs-make-fixed-appliance.
Requires:	xz
Requires:	%{name}-tools-c = %{EVRD}

%description devel
%{name}-devel contains development tools and libraries
for %{name}.

%files devel
%doc AUTHORS HACKING TODO README
%doc examples/*.c
%{_libdir}/libguestfs.so
%{_sbindir}/libguestfs-make-fixed-appliance
%{_mandir}/man1/guestfs-building.1*
%{_mandir}/man1/guestfs-hacking.1*
%{_mandir}/man1/guestfs-internals.1*
%{_mandir}/man1/guestfs-testing.1*
%{_mandir}/man1/libguestfs-make-fixed-appliance.1*
%{_mandir}/man3/guestfs.3*
%{_mandir}/man3/guestfs-examples.3*
%{_mandir}/man3/libguestfs.3*
%{_includedir}/guestfs.h
%{_libdir}/pkgconfig/libguestfs.pc

#-------------------------------------------------------------

%package inspect-icons
Summary:	Additional dependencies for inspecting guest icons
License:	LGPLv2+
BuildArch:	noarch
Requires:	%{name} = %{EVRD}
Requires:	netpbm
Requires:	icoutils


%description inspect-icons
%{name}-inspect-icons is a metapackage that pulls in additional
dependencies required by libguestfs to pull icons out of non-Linux
guests.  Install this package if you want libguestfs to be able to
inspect non-Linux guests and display icons from them.

The only reason this is a separate package is to avoid core libguestfs
having to depend on Perl.  See https://bugzilla.redhat.com/1194158

%files inspect-icons
# no files

#-------------------------------------------------------------

%package tools-c
Summary:	System administration tools for virtual machines
Requires:	%{name} = %{EVRD}

# For guestfish:
Requires:	hexedit
Requires:	less
Requires:	man
Requires:	vim-minimal

%description tools-c
This package contains miscellaneous system administrator command line
tools for virtual machines.

Note that you should install %{name}-tools (which pulls in
this package).  This package is only used directly when you want
to avoid dependencies on Perl.

%files tools-c
%doc README
%config(noreplace) %{_sysconfdir}/libguestfs-tools.conf
%config %{_sysconfdir}/profile.d/guestfish.sh
%{_mandir}/man5/libguestfs-tools.conf.5*
%{_bindir}/guestfish
%{_mandir}/man1/guestfish.1*
%{_bindir}/guestmount
%{_mandir}/man1/guestmount.1*
%{_bindir}/guestunmount
%{_mandir}/man1/guestunmount.1*
%{_bindir}/virt-copy-in
%{_mandir}/man1/virt-copy-in.1*
%{_bindir}/virt-copy-out
%{_mandir}/man1/virt-copy-out.1*
%{_bindir}/virt-rescue
%{_mandir}/man1/virt-rescue.1*
%{_bindir}/virt-tar-in
%{_mandir}/man1/virt-tar-in.1*
%{_bindir}/virt-tar-out
%{_mandir}/man1/virt-tar-out.1*

#-------------------------------------------------------------


%package bash-completion
Summary:	Bash tab-completion scripts for %{name} tools
BuildArch:	noarch
Requires:	bash-completion >= 2.0
Requires:	%{name}-tools-c = %{EVRD}

%description bash-completion
Install this package if you want intelligent bash tab-completion
for guestfish, guestmount and various virt-* tools.

%files bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/guestfish
%{_datadir}/bash-completion/completions/guestmount
%{_datadir}/bash-completion/completions/guestunmount
%{_datadir}/bash-completion/completions/libguestfs-test-tool
%{_datadir}/bash-completion/completions/virt-*

#-------------------------------------------------------------

%package -n ocaml-%{name}
Summary:	OCaml bindings for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description -n ocaml-%{name}
ocaml-%{name} contains OCaml bindings for %{name}.

This is for toplevel and scripting access only.  To compile OCaml
programs which use %{name} you will also need ocaml-%{name}-devel.

%files -n ocaml-%{name}
%{_libdir}/ocaml/guestfs
%exclude %{_libdir}/ocaml/guestfs/*.a
%exclude %{_libdir}/ocaml/guestfs/*.cmxa
%exclude %{_libdir}/ocaml/guestfs/*.cmx
%exclude %{_libdir}/ocaml/guestfs/*.mli
%{_libdir}/ocaml/stublibs/dllmlguestfs.so
%{_libdir}/ocaml/stublibs/dllmlguestfs.so.owner

#-------------------------------------------------------------

%package -n ocaml-%{name}-devel
Summary:	OCaml bindings for %{name}
Group:		Development/OCaml
Requires:	ocaml-%{name} = %{EVRD}

%description -n ocaml-%{name}-devel
ocaml-%{name}-devel contains development libraries
required to use the OCaml bindings for %{name}.

%files -n ocaml-%{name}-devel
%doc ocaml/examples/*.ml ocaml/html
%{_libdir}/ocaml/guestfs/*.a
%{_libdir}/ocaml/guestfs/*.cmxa
%{_libdir}/ocaml/guestfs/*.cmx
%{_libdir}/ocaml/guestfs/*.mli
%{_mandir}/man3/guestfs-ocaml.3*

#-------------------------------------------------------------

%package -n perl-Sys-Guestfs
Summary:	Perl bindings for %{name} (Sys::Guestfs)
Group:		Development/Perl
Requires:	%{name} = %{EVRD}
Requires:	perl


%description -n perl-Sys-Guestfs
perl-Sys-Guestfs contains Perl bindings for %{name} (Sys::Guestfs).

%files -n perl-Sys-Guestfs
%doc perl/examples/*.pl
%{perl_vendorarch}/*
%{_mandir}/man3/Sys::Guestfs.3pm*
%{_mandir}/man3/guestfs-perl.3*

#-------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 bindings for %{name}
Requires:	%{name} = %{EVRD}
%{?python_provide:%python_provide python3-%{name}}


%description -n python3-%{name}
python3-%{name} contains Python 3 bindings for %{name}.

%files -n python3-%{name}
%doc python/examples/*.py
%{python3_sitearch}/libguestfsmod*.so
%{python3_sitearch}/guestfs.py*
%{python3_sitearch}/__pycache__/guestfs*.py*
%{_mandir}/man3/guestfs-python.3*

#-------------------------------------------------------------

%package -n ruby-%{name}
Summary:	Ruby bindings for %{name}
Group:		Development/Ruby
Requires:	%{name} = %{EVRD}
Requires:	ruby(release)
Requires:	ruby
Provides:	ruby(guestfs) = %{version}

%description -n ruby-%{name}
ruby-%{name} contains Ruby bindings for %{name}.

%files -n ruby-%{name}
%doc ruby/examples/*.rb
%doc ruby/doc/site/*
%{ruby_vendorlibdir}/guestfs.rb
%{ruby_vendorarchdir}/_guestfs.so
%{_mandir}/man3/guestfs-ruby.3*

#-------------------------------------------------------------

%if %with php
%package -n php-%{name}
Summary:	PHP bindings for %{name}
Group:		Development/PHP
Requires:	%{name} = %{EVRD}
Requires:	php

%description -n php-%{name}
php-%{name} contains PHP bindings for %{name}.

%files -n php-%{name}
%doc php/README-PHP
%dir %{_sysconfdir}/php.d
%{_sysconfdir}/php.d/guestfs_php.ini
%{_libdir}/php/extensions/guestfs_php.so
%endif

#-------------------------------------------------------------

%package -n lua-guestfs
Summary:	Lua bindings for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	lua

%description -n lua-guestfs
lua-guestfs contains Lua bindings for %{name}.

%files -n lua-guestfs
%doc lua/examples/*.lua
%doc lua/examples/LICENSE
%{_libdir}/lua/*/guestfs.so
%{_mandir}/man3/guestfs-lua.3*

#-------------------------------------------------------------

%package gobject
Summary:	GObject bindings for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description gobject
%{name}-gobject contains GObject bindings for %{name}.

To develop software against these bindings, you need to install
%{name}-gobject-devel.

%files gobject
%{_libdir}/libguestfs-gobject-1.0.so.0*
%{_libdir}/girepository-1.0/Guestfs-1.0.typelib

#-------------------------------------------------------------

%package gobject-devel
Summary:	GObject bindings for %{name}
Group:		Development/C
Requires:	%{name}-gobject = %{EVRD}

%description gobject-devel
%{name}-gobject contains GObject bindings for %{name}.

This package is needed if you want to write software using the
GObject bindings.  It also contains GObject Introspection information.

%files gobject-devel
%{_libdir}/libguestfs-gobject-1.0.so
%{_includedir}/guestfs-gobject.h
%dir %{_includedir}/guestfs-gobject
%{_includedir}/guestfs-gobject/*.h
%{_datadir}/gir-1.0/Guestfs-1.0.gir
%{_libdir}/pkgconfig/libguestfs-gobject-1.0.pc
%{_mandir}/man3/guestfs-gobject.3*

#-------------------------------------------------------------

%package vala
Summary:	Vala for %{name}
Requires:	%{name}-devel = %{EVRD}
Requires:	vala

%description vala
%{name}-vala contains GObject bindings for %{name}.

%files vala
%{_datadir}/vala/vapi/libguestfs-gobject-1.0.deps
%{_datadir}/vala/vapi/libguestfs-gobject-1.0.vapi

#-------------------------------------------------------------

%ifarch %{golang_arches}
%package -n golang-guestfs
Summary:	Golang bindings for %{name}
Group:		Development/Other
BuildArch:	noarch
Requires:	%{name} = %{EVRD}
Requires:	golang
Provides:	golang(libguestfs.org) = %{EVRD}

%description -n golang-guestfs
golang-%{name} contains Go language bindings for %{name}.

%files -n golang-guestfs
%doc golang/examples/*.go
%doc golang/examples/LICENSE
%{_datadir}/gocode/src/libguestfs.org
%{_mandir}/man3/guestfs-golang.3*
%endif

#-------------------------------------------------------------

%package man-pages-ja
Summary:	Japanese (ja) man pages for %{name}
BuildArch:	noarch
Requires:	%{name} = %{EVRD}

%description man-pages-ja
%{name}-man-pages-ja contains Japanese (ja) man pages
for %{name}.

%files man-pages-ja
%lang(ja) %{_mandir}/ja/man1/*.1*
%lang(ja) %{_mandir}/ja/man3/*.3*
%lang(ja) %{_mandir}/ja/man5/*.5*

#-------------------------------------------------------------

%package man-pages-uk
Summary:	Ukrainian (uk) man pages for %{name}
BuildArch:	noarch
Requires:	%{name} = %{EVRD}

%description man-pages-uk
%{name}-man-pages-uk contains Ukrainian (uk) man pages
for %{name}.

%files man-pages-uk
%lang(uk) %{_mandir}/uk/man1/*.1*
%lang(uk) %{_mandir}/uk/man3/*.3*
%lang(uk) %{_mandir}/uk/man5/*.5*

#-------------------------------------------------------------

%prep
%autosetup -p1

%if 0%{patches_touch_autotools}
autoreconf -i
%endif

# For sVirt to work, the local temporary directory we use in the tests
# must be labelled the same way as /tmp.  This doesn't work if either
# the directory is on NFS (no SELinux labels) or if SELinux is
# disabled, hence the tests.
if [ "$(stat -f -L -c %T .)" != "nfs" ] && \
   [ "$(getenforce | tr '[A-Z]' '[a-z]')" != "disabled" ]; then
    chcon --reference=/tmp tmp
fi

# Replace developer-centric README that ships with libguestfs, with
# our replacement file.
mv README README.orig
sed 's/@VERSION@/%{version}/g' < %{SOURCE4} > README
sed -i 's!Fedora!RosaLinux!' README


%build
# on abf buils network non available, make local repo
mkdir cachedir repo
# -n 1 because of RHBZ#980502.
find /var/cache/{dnf,yum} -type f -name '*.rpm' -print0 | \
xargs -0 -n 1 cp -t repo
createrepo_c repo
sed -e "s|@PWD@|$(pwd)|" %{SOURCE6} > yum.conf
extra=--with-supermin-packager-config=$(pwd)/yum.conf

export vmchannel_test=no

%configure \
  PYTHON=%{__python3} \
  --with-default-backend=libvirt \
  --with-extra="rosa=%{rosa_platform},release=%{release},libvirt" \
%ifnarch %{golang_arches}
  --disable-golang \
%endif
%ifarch %{arm}
  --disable-haskell \
%endif
  --without-java \
  --disable-erlang \
  $extra || cat config.log
# 'INSTALLDIRS' ensures that Perl and Ruby libs are installed in the
# vendor dir not the site dir.
make V=1 INSTALLDIRS=vendor

%check
%if %{runtests}
%ifarch %{test_arches}
# Only run the tests with non-debug (ie. non-Rawhide) kernels.
# XXX This tests for any debug kernel installed.
if grep CONFIG_DEBUG_MUTEXES=y /lib/modules/*/config ; then
    echo "Skipping tests because debug kernel is installed"
    exit 0
fi

export LIBGUESTFS_DEBUG=1
export LIBGUESTFS_TRACE=1
export LIBVIRT_DEBUG=1

if ! make quickcheck QUICKCHECK_TEST_TOOL_ARGS="-t 1200"; then
    cat $HOME/.cache/libvirt/qemu/log/*
    exit 1
fi
%endif
%endif


%install
# 'INSTALLDIRS' ensures that Perl and Ruby libs are installed in the
# vendor dir not the site dir.
make DESTDIR=%{buildroot} INSTALLDIRS=vendor install

# Delete libtool files.
find %{buildroot} -name '*.la' -delete

# Delete some bogus Perl files.
find %{buildroot} -name perllocal.pod -delete
find %{buildroot} -name .packlist -delete
find %{buildroot} -name '*.bs' -delete
find %{buildroot} -name 'bindtests.pl' -delete

# golang: Ignore what libguestfs upstream installs, and just copy the
# source files to %%{_datadir}/gocode/src.
%ifarch %{golang_arches}
rm -r %{buildroot}/usr/lib/golang
mkdir -p %{buildroot}%{_datadir}/gocode/src
cp -a golang/src/libguestfs.org %{buildroot}%{_datadir}/gocode/src
%endif

# If there is a bogus dependency on kernel-*, rename it to 'kernel'
# instead.  This can happen for various reasons:
# - DNF picks kernel-debug instead of kernel.
# - Version of kernel-rt in brew > version of kernel.
# On all known architectures, depending on 'kernel' should
# mean "we need a kernel".
pushd %{buildroot}%{_libdir}/guestfs/supermin.d
sed 's/^kernel-.*/kernel/' < packages > packages-t
mv packages-t packages
popd

# Guestfish colour prompts.
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/profile.d


# Find locale files.
%find_lang libguestfs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14117 |21mr|libgusb-0.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 2
%define girname %mklibname gusb-gir %{api}
%define libname %mklibname gusb %{major}
%define devname %mklibname gusb -d

Summary:	GLib wrapper around libusb1
Name:		libgusb
Version:	0.4.2
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://gitorious.org/gusb/
Source0:	http://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	vala-devel
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)

%description
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GLib wrapper around libusb1
Group:		System/Libraries

%description -n %{libname}
GUsb is a GObject wrapper for libusb1 that makes it easy to do
asynchronous control, bulk and interrupt transfers with proper
cancellation and integration into a mainloop.

%files -n %{libname}
%{_libdir}/libgusb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/GUsb-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for gusb
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
GLib headers and libraries for gusb.

%files -n %{devname}
%doc AUTHORS NEWS COPYING
%{_includedir}/gusb-1
%{_libdir}/libgusb.so
%{_libdir}/pkgconfig/gusb.pc
%optional %{_datadir}/gtk-doc/html/gusb
%{_datadir}/gir-1.0/GUsb-*.gir
%{_datadir}/vala/vapi/gusb.*

#----------------------------------------------------------------------------

%package tools
Summary:	Tools from %{name} package
Group:		System/Libraries

%description tools
Tools from %{name} package.

%files tools
%{_bindir}/gusbcmd

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Ddocs=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14118 |21mr|libgweather-4.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f-2)

%define api		4
%define major		0
%define gir_major	4.0
%define libname		%mklibname gweather %{api} %{major}
%define girname		%mklibname gweather-gir %{gir_major}
%define devname		%mklibname gweather -d

Summary:	GNOME Weather applet library
Name:		libgweather
Version:	4.4.2
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libgweather
Source0:	https://download.gnome.org/sources/libgweather/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		libgweather-4.4.0-add-russian-locations.patch
BuildRequires:	clang
BuildRequires:	GConf2
BuildRequires:	intltool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	pylint
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(geocode-glib-2.0)
BuildRequires:	pkgconfig(gi-docgen)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(vapigen)

%description
This is a library to provide Weather data to the GNOME panel applet.

%files -f %{name}-3.0.lang
%doc NEWS README.md
%license COPYING
%{_datadir}/%{name}-%{api}/locations.dtd
%{_datadir}/%{name}-%{api}/Locations.xml
%{_libdir}/%{name}-%{api}/Locations.bin
%{_datadir}/glib-2.0/schemas/org.gnome.GWeather%{api}.enums.xml
%{_datadir}/glib-2.0/schemas/org.gnome.GWeather%{api}.gschema.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GNOME Weather applet library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This is a library to provide Weather data to the GNOME panel applet.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/GWeather-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	GNOME Weather applet library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is a library to provide Weather data to the GNOME panel applet.

%files -n %{devname}
%{_datadir}/gir-1.0/GWeather-%{gir_major}.gir
%{_datadir}/vala/vapi/gweather%{api}.deps
%{_datadir}/vala/vapi/gweather%{api}.vapi
%{_defaultdocdir}/%{name}-%{gir_major}
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{name}-3.0 --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14119 |21mr|libgxps-0.3.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 0.1
%define major 2
%define libname %mklibname gxps %{major}
%define girname %mklibname gxps-gir %{api}
%define devname %mklibname gxps -d

Summary:	GObject based library for handling and rendering XPS documents
Name:		libgxps
Version:	0.3.2
Release:	9
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libgxps
Source0:	https://download.gnome.org/sources/libgxps/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	jpeg-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-pdf)
BuildRequires:	pkgconfig(cairo-ps)
BuildRequires:	pkgconfig(cairo-svg)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libpng)

%description
libgxps is a GObject based library for handling and rendering XPS documents.
This package contains various tools used by libgxps.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for libgxps
Group:		System/Libraries

%description -n %{libname}
libgxps is a GObject based library for handling and rendering XPS documents.

%files -n %{libname}
%{_libdir}/libgxps.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for libgxps
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface library for libgxps.

%files -n %{girname}
%{_libdir}/girepository-1.0/GXPS-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, header files and utilities for libgxps
Group:		Development/GNOME and GTK+
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
libgxps is a GObject based library for handling and rendering XPS documents.

This package contains the files necessary to develop applications with libgxps.

%files -n %{devname}
%doc README COPYING AUTHORS NEWS
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/gir-1.0/*.gir
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%meson -Denable-gtk-doc=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14120 |21mr|libhandy0-0.0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname		libhandy

%define api		0.0
%define major		0
%define libname		%mklibname handy%{major} %{api} %{major}
%define girhandyname	%mklibname handy%{major}-gir %{api}
%define develname	%mklibname handy%{major} -d

Name:		libhandy0
Version:	0.0.13
Release:	1
Summary:	A GTK+ library to develop UI for mobile devices
License:	LGPLv2+
Group:		Development/GNOME and GTK+
URL:		https://source.puri.sm/Librem5/libhandy/
Source0:	https://source.puri.sm/Librem5/libhandy/-/archive/v%{version}/%{oname}-v%{version}.tar.bz2
Patch0:		libhandy-glade-3.36.patch
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
libhandy is a library to help with developing UI for mobile devices
using GTK+/GNOME.

#------------------------------------------------

%package -n	%{libname}
Summary:	A GTK+ library to develop UI for mobile devices
Group:		System/Libraries

%description -n	%{libname}
This package provides the shared library for libhandy, a library to
help with developing mobile UI using GTK+/GNOME.

%files -n %{libname}
%{_libdir}/libhandy-%{api}.so.%{major}*

#------------------------------------------------

%package -n	%{girhandyname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n	%{girhandyname}
GObject Introspection interface description for %{name}.

%files -n %{girhandyname}
%{_libdir}/girepository-1.0/Handy-%{api}.typelib

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girhandyname} = %{EVRD}
Provides:	handy%{major}-devel = %{EVRD}

%description -n	%{develname}
Header files for development with %{name}.

%files -n %{develname}
%doc COPYING AUTHORS README.md
%{_includedir}/libhandy-%{api}/
%{_libdir}/libhandy-%{api}.so
%{_datadir}/gir-1.0/Handy-%{api}.gir
%{_libdir}/pkgconfig/libhandy-%{api}.pc
%{_datadir}/vala/vapi/libhandy-%{api}.deps
%{_datadir}/vala/vapi/libhandy-%{api}.vapi
%{_datadir}/gtk-doc/html/libhandy/

#------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-v%{version}

%build
%meson \
	-Dprofiling=false \
	-Dstatic=false \
	-Dintrospection=enabled \
	-Dvapi=true \
	-Dgtk_doc=true \
	-Dtests=false \
	-Dexamples=false \
	-Dglade_catalog=disabled \
	%{nil}
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14121 |21mr|libhandy-1.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api		1
%define major		0
%define libname		%mklibname handy %{api} %{major}
%define girhandyname	%mklibname handy-gir %{api}
%define develname	%mklibname handy -d

Name:		libhandy
Version:	1.7.0
Release:	2
Summary:	Building blocks for modern adaptive GNOME apps
License:	LGPLv2+
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/libhandy
Source0:	https://download.gnome.org/sources/libhandy/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	ru.po
Patch0:		libhandy-1.7.0-add-ru-po.patch
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	python3dist(gi-docgen)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)

%description
libhandy is a library to help with developing UI for mobile devices
using GTK+/GNOME.

#------------------------------------------------

%package -n %{libname}
Summary:	A GTK+ library to develop UI for mobile devices
Group:		System/Libraries

%description -n	%{libname}
This package provides the shared library for libhandy, a library to
help with developing mobile UI using GTK+/GNOME.

%files -n %{libname} -f %{name}.lang
%{_libdir}/%{name}-%{api}.so.%{major}*

#------------------------------------------------

%package -n %{girhandyname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n	%{girhandyname}
GObject Introspection interface description for %{name}.

%files -n %{girhandyname}
%{_libdir}/girepository-1.0/Handy-%{api}.typelib

#------------------------------------------------

%package -n %{develname}
Summary:	Development package for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{version}-%{release}
Requires:	%{girhandyname} = %{version}-%{release}
Provides:	handy-devel = %{version}-%{release}

%description -n	%{develname}
Header files for development with %{name}.

%files -n %{develname}
%doc AUTHORS README.md
%license COPYING
%{_datadir}/gir-1.0/Handy-%{api}.gir
%{_datadir}/vala/vapi/%{name}-%{api}.deps
%{_datadir}/vala/vapi/%{name}-%{api}.vapi
%{_defaultdocdir}/%{name}-%{api}
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#------------------------------------------------

%package -n %{name}-glade
Summary:	Glade (GTK4) modules for %{name}
Group:		Graphical desktop/GNOME
Requires:	glade

%description -n	%{name}-glade
This package provides a catalog for Glade (GTK4) which allows the use
of the provided Handy widgets in Glade.

%files -n %{name}-glade
%{_libdir}/glade/modules/*.so
%{_datadir}/glade/catalogs/*.xml

#------------------------------------------------

%prep
%autosetup -p1
cp %{SOURCE1} po

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson \
	-Dintrospection=enabled	\
	-Dgtk_doc=true		\
	-Dtests=false		\
	-Dexamples=false
%meson_build

%install
%meson_install

%find_lang %{name} %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14122 |21mr|libharu-2.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 2
%define libname %mklibname haru %{major}
%define devname %mklibname haru -d

%define url_ver %(echo %{version} | tr . _ )

Summary:	Cross platform software library for generating PDF
Name:		libharu
Version:	2.3.0
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://www.libharu.org/
Source0:	https://github.com/libharu/libharu/archive/RELEASE_%{url_ver}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libharu-RELEASE_2_3_0_cmake.patch
Patch1:		libharu-2.3.0-triangleshading.patch
Patch2:		libharu-2.3.0-smallnumber.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(zlib)

%description
HARU is a free, cross platform, open-sourced software library for generating
PDF.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libharu library
Group:		System/Libraries

%description -n %{libname}
HARU is a free, cross platform, open-sourced software library for generating
PDF.

%files -n %{libname}
%doc README
%{_libdir}/libhpdf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libharu
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
HARU is a free, cross platform, open-sourced software library for generating
PDF.

This package contains development files for libharu.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libhpdf.so
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n libharu-RELEASE_%{url_ver}

%build
%cmake -DLIBHPDF_STATIC=NO
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14123 |21mr|libheif-1.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname heif %{major}
%define devname %mklibname heif -d

Summary:	libheif is a ISO/IEC 23008-12:2017 HEIF file format decoder and encoder
Name:		libheif
Version:	1.12.0
Release:	4
License:	LGPLv2 and GPLv2
Group:		System/Libraries
Url:		http://www.libheif.org
Source0:	https://github.com/strukturag/libheif/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(libde265)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x265)
Requires:	libde265

%description
libheif is an ISO/IEC 23008-12:2017 HEIF file format decoder and encoder.

HEIF is a new image file format employing HEVC (h.265) image coding for the
best compression ratios currently possible.

libheif makes use of libde265 for the actual image decoding and x265 for
encoding. Alternative codecs for, e.g., AVC and JPEG can be provided as
plugins.

%files
%doc README.md
%{_bindir}/*
%{_datadir}/mime/packages/avif.xml
%{_datadir}/mime/packages/heif.xml
%{_datadir}/thumbnailers/heif.thumbnailer
%{_libdir}/gdk-pixbuf-*/*/loaders/libpixbufloader-heif.so
%{_mandir}/man1/heif-*.1*

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
%{libname} contains the libraries for %{name}.

%files -n %{libname}
%doc README.md
%{_libdir}/%{name}.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc README.md
%{_includedir}/%{name}/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

#-------------------------------------------------------------------------

%prep
%setup -q

%build
%ifnarch %{e2k}
%global optflags %{optflags} -Wstrict-aliasing=0
%endif
%configure --disable-static
%make

%install
%makeinstall_std
find %{buildroot} -name '*.*a' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14124 |21mr|libHX-3.22-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 28
%define libname %mklibname HX %{major}
%define devname %mklibname HX -d

Summary:	A library for common data structures and low level operations
Name:		libHX
Version:	3.22
Release:	4
Group:		System/Libraries
License:	GPLv3+ and LGPLv2+
Url:		http://libhx.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/libhx/%{name}/%{version}/libHX-%{version}.tar.xz

%description
A library for:
- A+R/B trees to use for lists or maps (associative arrays)
- Deques (double-ended queues) (Stacks (LIFO) / Queues (FIFOs))
- platform independent opendir-style directory access
- platform independent dlopen-style shared library access
- auto-storage strings with direct access
- command line option (argv) parser
- shell-style config file parser
- platform independent random number generator with transparent
  /dev/urandom support
- various string, memory and zvec ops

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for common data structures and low level operations
Group:		System/Libraries

%description -n %{libname}
- A+R/B trees to use for lists or maps (associative arrays)
- Deques (double-ended queues) (Stacks (LIFO) / Queues (FIFOs))
- platform independent opendir-style directory access
- platform independent dlopen-style shared library access
- auto-storage strings with direct access
- command line option (argv) parser
- shell-style config file parser
- platform independent random number generator with transparent
  /dev/urandom support
- various string, memory and zvec ops

%files -n %{libname}
/%{_lib}/libHX.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc doc/*
%{_includedir}/*
/%{_lib}/*.so
%{_libdir}/pkgconfig/libHX.pc
%{_datadir}/doc/libhx/libHX_Documentation.pdf

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# /sbin/mount.crypt from pam_mount uses libHX
%configure \
	--disable-static \
	--libdir=/%{_lib} \
	--with-pkgconfigdir=%{_libdir}/pkgconfig
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14125 |21mr|libical-3.0.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define gir_major 3.0
%define libname %mklibname ical %{major}
%define libname_cxx %mklibname ical_cxx %{major}
%define libnamess %mklibname icalss %{major}
%define libnamess_cxx %mklibname icalss_cxx %{major}
%define libname_glib %mklibname ical_glib %{major}
%define libnamevcal %mklibname icalvcal %{major}
%define girname	%mklibname ical-gir %{gir_major}
%define girnameglib %mklibname icalglib-gir %{gir_major}
%define devname %mklibname ical -d

Summary:	An implementation of basic iCAL protocols
Name:		libical
Version:	3.0.16
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://libical.github.io/libical/
Source0:	https://github.com/libical/libical/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	bison
Buildrequires:	cmake
Buildrequires:	doxygen
BuildRequires:	flex
BuildRequires:	gtk-doc
BuildRequires:	perl(Getopt::Std)
BuildRequires:	perl(lib)
BuildRequires:	python3
BuildRequires:	python3-gobject
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	tzdata

%description
Libical is an Open Source implementation of the IETF's iCalendar
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
It parses iCal components and provides a C API for manipulating
the component properties, parameters, and subcomponents.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Files for developing applications that use libical
Group:		System/Libraries

%description -n %{libname}
Libical is an Open Source implementation of the IETF's iCalendar
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
It parses iCal components and provides a C API for manipulating
the component properties, parameters, and subcomponents.

%files -n %{libname}
%doc AUTHORS README.md
%license COPYING LICENSE
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/ICal-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{libname_cxx}
Summary:	Files for developing applications that use libical
Group:		System/Libraries

%description -n %{libname_cxx}
Libical is an Open Source implementation of the IETF's iCalendar
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
It parses iCal components and provides a C API for manipulating
the component properties, parameters, and subcomponents.

%files -n %{libname_cxx}
%license COPYING
%{_libdir}/%{name}_cxx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_glib}
Summary:	Files for developing applications that use libical
Group:		System/Libraries

%description -n %{libname_glib}
Libical is an Open Source implementation of the IETF's iCalendar
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
It parses iCal components and provides a C API for manipulating
the component properties, parameters, and subcomponents.

%files -n %{libname_glib}
%license COPYING
%{_libdir}/%{name}-glib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girnameglib}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname_glib} = %{EVRD}

%description -n %{girnameglib}
GObject Introspection interface description for %{name}.

%files -n %{girnameglib}
%license COPYING
%{_libdir}/girepository-1.0/ICalGLib-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{libnamess_cxx}
Summary:	Files for developing applications that use libical
Group:		System/Libraries

%description -n %{libnamess_cxx}
Libical is an Open Source implementation of the IETF's iCalendar
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
It parses iCal components and provides a C API for manipulating
the component properties, parameters, and subcomponents.

%files -n %{libnamess_cxx}
%license COPYING
%{_libdir}/%{name}ss_cxx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamess}
Summary:	Files for developing applications that use libical
Group:		System/Libraries

%description -n %{libnamess}
Libical is an Open Source implementation of the IETF's iCalendar
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
It parses iCal components and provides a C API for manipulating
the component properties, parameters, and subcomponents.

%files -n %{libnamess}
%license COPYING
%{_libdir}/%{name}ss.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamevcal}
Summary:	Files for developing applications that use libical
Group:		System/Libraries

%description -n %{libnamevcal}
Libical is an Open Source implementation of the IETF's iCalendar
Calendaring and Scheduling protocols (RFC 2445, 2446, and 2447).
It parses iCal components and provides a C API for manipulating
the component properties, parameters, and subcomponents.

%files -n %{libnamevcal}
%license COPYING
%{_libdir}/%{name}vcal.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files for developing applications that use libical
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{libname_cxx} = %{EVRD}
Requires:	%{libname_glib} = %{EVRD}
Requires:	%{girnameglib} = %{EVRD}
Requires:	%{libnamess} = %{EVRD}
Requires:	%{libnamess_cxx} = %{EVRD}
Requires:	%{libnamevcal} = %{EVRD}

%description -n %{devname}
The header files and libtool library for developing applications that
use libical.

%files -n %{devname}
%doc README.md THANKS doc/UsingLibical*
%license LICENSE
%{_datadir}/gir-1.0/ICal-3.0.gir
%{_datadir}/gir-1.0/ICalGLib-3.0.gir
%{_datadir}/gtk-doc/html/%{name}-glib
%{_datadir}/vala/vapi/%{name}-glib.vapi
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/LibIcal
%{_libexecdir}/%{name}/ical-glib-src-generator

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DUSE_INTEROPERABLE_VTIMEZONES:BOOL=true \
	-DICAL_ALLOW_EMPTY_PROPERTIES:BOOL=true \
	-DGOBJECT_INTROSPECTION:BOOL=true \
	-DICAL_GLIB:BOOL=true \
	-DICAL_GLIB_VAPI:BOOL=true \
	-DSHARED_ONLY:BOOL=true
%make -j1

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14126 |21mr|libice-1.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname ice %{major}
%define devname %mklibname ice -d

Summary:	X Inter Client Exchange Library
Name:		libice
Version:	1.1.1
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	ftp://xorg.freedesktop.org/pub/individual/lib/libICE-%{version}.tar.xz
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xtrans)
# need for risc and e2k
BuildRequires:	pkgconfig(libmd)

%description
libice provides an interface to ICE, the Inter-Client Exchange protocol.
Motivated by issues arising from the need for X Window System clients to
share data with each other, the ICE protocol provides a generic framework for
building protocols on top of reliable, byte-stream transport connections. It
provides basic mechanisms for setting up and shutting down connections, for
performing authentication, for negotiating versions, and for reporting
errors.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X Inter Client Exchange Library
Group:		Development/X11
Provides:	%{name} = %{version}
# Compat with Fedora/RH
Provides:	libICE = %{EVRD}

%description -n %{libname}
libice provides an interface to ICE, the Inter-Client Exchange protocol.
Motivated by issues arising from the need for X Window System clients to
share data with each other, the ICE protocol provides a generic framework for
building protocols on top of reliable, byte-stream transport connections. It
provides basic mechanisms for setting up and shutting down connections, for
performing authentication, for negotiating versions, and for reporting
errors.

%files -n %{libname}
%{_libdir}/libICE.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	libice-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%{_datadir}/doc/libice
%{_libdir}/libICE.so
%{_libdir}/pkgconfig/ice.pc
%{_includedir}/X11/ICE/ICEutil.h
%{_includedir}/X11/ICE/ICE.h
%{_includedir}/X11/ICE/ICEproto.h
%{_includedir}/X11/ICE/ICEconn.h
%{_includedir}/X11/ICE/ICElib.h
%{_includedir}/X11/ICE/ICEmsg.h

#----------------------------------------------------------------------------

%prep
%setup -qn libICE-%{version}

%build
%configure \
	--disable-static

%make_build || cat config.log

%install
%make_install
mv %{buildroot}/%{_datadir}/doc/lib{ICE,ice}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14127 |21mr|libicns-0.8.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname icns %{major}
%define devname %mklibname icns -d

Summary:	Library for manipulating MacOS X icns files
Name:		libicns
Version:	0.8.1
Release:	8
License:	GPL, LGPL
Group:		System/Libraries
Url:		http://icns.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/icns/icns/libicns-%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libpng)

%description
%{name} is a library providing functionality for easily reading and
writing MacOS X icns files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries

%description -n %{libname}
%{name} is a library providing functionality for easily reading and
writing MacOS X icns files.

%files -n %{libname}
%{_libdir}/libicns.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
%{name} is a library providing functionality for easily reading and
writing MacOS X icns files.

This package contains libraries and header files need for development.

%files -n %{devname}
%doc src/apidocs.*
%{_includedir}/icns.h
%{_libdir}/libicns.so
%{_libdir}/pkgconfig/libicns.pc

#----------------------------------------------------------------------------

%package -n libicns-utils
Summary:	Utilities for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n libicns-utils
Software for library for manipulating MacOS X .icns icon format.
Currently provides support for reading and writing icns files
in most sizes.

Also provides utilities for manipulating files in the .icns format:
* icns2png - convert Mac OS icns files to png images
* png2icns - convert png images to Mac OS icns files
* icontainer2icns - extract icns files from icontainers

%files -n libicns-utils
%doc README
%{_bindir}/icns2png
%{_bindir}/icontainer2icns
%{_bindir}/png2icns
%{_mandir}/man1/icns2png.1*
%{_mandir}/man1/icontainer2icns.1*
%{_mandir}/man1/png2icns.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14128 |21mr|libid3tag-0.15.1b-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname id3tag %{major}
%define devname %mklibname id3tag -d

Summary:	Library for reading and writing ID3v1 and ID3v2 tags
Name:		libid3tag
Version:	0.15.1b
Release:	24
License:	GPLv2+
Group:		Sound
Url:		http://www.underbit.com/products/mad/
Source0:	http://prdownloads.sourceforge.net/mad/%{name}-%{version}.tar.bz2
Source1:	id3tag.pc.bz2
# CVE-2017-11550 CVE-2017-11551
Patch0:         libid3tag-0.15.1b-fix_overflow.patch
Patch1:         libid3tag-0.15.1b-id3v1-zero-padding.patch
Patch2:         libid3tag-0.15.1b-handle-unknown-encoding.patch
Patch3:         libid3tag-0.15.1b-id3v2-endless-loop.patch
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=869598
Patch4:         libid3tag-0.15.1b-gperf-size_t.patch
Patch5:         libid3tag-0.15.1b-genre.patch
Patch6:         libid3tag-0.15.1b-utf16.patch
BuildRequires:	pkgconfig(zlib)
BuildRequires:	gperf

%description
A library for reading and (eventually) writing ID3 tags, both ID3v1 and the
various versions of ID3v2.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for reading and writing ID3v1 and ID3v2 tags
Group:		System/Libraries

%description -n %{libname}
A library for reading and (eventually) writing ID3 tags, both ID3v1 and the
various versions of ID3v2.

%files -n %{libname}
%doc COPYING
%{_libdir}/libid3tag.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(zlib)
Provides:	%{name}-devel = %{EVRD}
Provides:	id3tag-devel = %{EVRD}

%description -n %{devname}
This package includes the header files and static libraries
necessary for developing programs using the %{name} library.

If you are going to develop programs which will use the %{name} library
you should install this.

%files -n %{devname}
%doc COPY* README TODO CHANGES CREDITS
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .CVE-2008-2109
%patch1 -p1 -b .zero-padding
%patch2 -p1 -b .unknown-encoding
%patch3 -p0 -b .endless-loop
%patch4 -p1 -b .gperf
%patch5 -p1
%patch6 -p1

# Force these files to be regenerated from the .gperf sources.
rm compat.c frametype.c

%build
%configure --disable-static
%make

%install
%makeinstall_std
# this is an invalid locale dir
rm -rf %{buildroot}/%{_datadir}/locale/en

mkdir -p %{buildroot}%{_libdir}/pkgconfig
bzcat %{SOURCE1} | sed -e 's,/lib\>,/%{_lib},;s,0.14.2b,%{version},' >%{buildroot}%{_libdir}/pkgconfig/id3tag.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14129 |21mr|libIDL-0.8.14-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_version	2
%define lib_major	0
%define lib_name	%mklibname IDL %{api_version} %{lib_major}
%define develname	%mklibname -d  IDL %{api_version}

Summary:	IDL parsing library
Name:		libIDL
Version:	0.8.14
Release:	13
URL:		http://orbit-resource.sf.net/
License:	LGPLv2+
Group:		System/Libraries
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2

BuildConflicts:	ORBit-devel < 0.5.10
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	pkgconfig(glib-2.0)

%description
libIDL is a small library for creating parse trees of CORBA v2.2
compliant Interface Definition Language (IDL) files, which is a
specification for defining interfaces which can be used between
different CORBA implementations.

%package -n %{lib_name}
Summary:	%{summary}
Group:		%{group}
Provides:	%{name} = %{version}-%{release}
Provides:	%{name}%{api_version} = %{version}-%{release}

%description -n %{lib_name}
libIDL is a small library for creating parse trees of CORBA v2.2
compliant Interface Definition Language (IDL) files, which is a
specification for defining interfaces which can be used between
different CORBA implementations.

%package -n %{develname}
Summary:	Header files and libraries needed for libIDL development
Group:		Development/C
Conflicts:	ORBit-devel < 0.5.10
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{name}%{api_version}-devel = %{version}-%{release}
Requires:	%{lib_name} = %{version}
Requires:	pkgconfig(glib-2.0)
Obsoletes:	%{mklibname -d  IDL 2 0} < 0.8.14-7

%description -n %{develname}
This package includes the header files and libraries needed for
developing or compiling programs using libIDL.

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%files -n %{lib_name}
%doc AUTHORS README NEWS BUGS ChangeLog
%{_libdir}/libIDL-%{api_version}.so.%{lib_major}*

%files -n %{develname}
%doc tstidl.c
%{_bindir}/libIDL-config-2
%{_includedir}/*
%{_infodir}/*.info*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14130 |21mr|libidn-1.41-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 12
%define libname %mklibname idn %{major}
%define devname %mklibname idn -d

# Java stack is not supported on x86_32
%ifarch %{ix86} %{e2k} %{riscv}
%bcond_with java
%else
%bcond_without java
%endif
%bcond_with mono

Summary:	Internationalized string processing library
Name:		libidn
Version:	1.41
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.gnu.org/software/libidn/
Source0:	http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
Source1:	http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz.sig
BuildRequires:	gtk-doc
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	texinfo
BuildRequires:	gettext-devel
%if %{with mono}
BuildRequires:	mono
%endif

%description
GNU Libidn is an implementation of the Stringprep, Punycode and
IDNA specifications defined by the IETF Internationalized Domain
Names (IDN) working group, used for internationalized domain
names.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Internationalized string processing library
Group:		System/Libraries

%description -n	%{libname}
GNU Libidn is an implementation of the Stringprep, Punycode and
IDNA specifications defined by the IETF Internationalized Domain
Names (IDN) working group, used for internationalized domain
names.

%files -n %{libname}
%{_libdir}/libidn.so.%{major}*
%{_infodir}/%{libname}.info*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the %{libname} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	idn-devel = %{EVRD}
Obsoletes:	%{_lib}idn11-devel < 1.25

%description -n %{devname}
Development files for the %{libname} library.

%files -n %{devname}
%doc libc/example.c examples/README examples/Makefile.*
%{_libdir}/libidn.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n idn
Summary:	Commandline interface to the %{libname} library
Group:		System/Servers

%description -n idn
This package provides the commandline interface to the
%{libname} library.

%files -n idn -f %{name}.lang
%doc ChangeLog FAQ README THANKS contrib
%{_bindir}/idn
%{_mandir}/man1/idn.1*
%{_datadir}/*emacs/site-lisp/*.el

#----------------------------------------------------------------------------

%if %{with java}

%package -n %{libname}-java
Summary:	Java support for the %{name}
Group:		Development/Java
BuildRequires:	javapackages-local
BuildRequires:	mvn(com.google.code.findbugs:annotations)
BuildRequires:	mvn(com.google.guava:guava)
BuildRequires:	mvn(junit:junit)
Provides:	%{name}-java = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{libname}-java
Java support for the %{name}.

%files -n %{libname}-java -f .mfiles

#----------------------------------------------------------------------------

%package javadoc
Summary:       Javadoc for %{name}-java
BuildArch:     noarch

%description javadoc
This package contains javadoc for %{name}-java

%files javadoc -f .mfiles-javadoc
%license COPYING* java/LICENSE-2.0.txt

%endif #with java

#----------------------------------------------------------------------------

%if %{with mono}
%package -n %{libname}-mono
Summary:	Mono support for the %{name}
Group:		Development/Other
Provides:	%{name}-mono = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{libname}-mono
Mono support for the %{name}.

%files -n %{libname}-mono
%{_libdir}/*.dll
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# bundled
find . -name '*.jar' -print -delete
find . -name '*.class' -print -delete

%if %{with java}
# Not available test dep
%pom_remove_dep com.google.caliper:caliper java/pom.xml.in
%endif

# Name directory sections consistently in the info file, rhbz #209491
sed -i '/^INFO-DIR-SECTION/{s/GNU Libraries/Libraries/;s/GNU utilities/Utilities/;}' doc/libidn.info

iconv -f ISO-8859-1 -t UTF-8 doc/libidn.info > iconv.tmp
mv iconv.tmp doc/libidn.info

aclocal -I m4 -I gl/m4 -I lib/gl/m4 --dont-fix
automake -a
autoconf

%build
%define _disable_rebuild_configure 1
%configure \
%if %{with java}
	--enable-java \
	--enable-valgrind-tests \
%endif
%if %{with mono}
	--enable-csharp=mono \
%endif
	--disable-rpath \
	--disable-static

make

%install
%makeinstall_std \
%if %{with libidn_enables_java}
    libidn_jardir=%{_javadir} \
%endif
    ;

# fix "invalid-lc-messages-dir":
rm -rf %{buildroot}%{_datadir}/locale/en@*quot

# make a nice list for docs
find doc -type f | sed 's/^/%{doc} /' | \
    grep -v "Makefile*" | \
    grep -v "\.tex*" | \
    grep -v "\.info" | \
    grep -v "\.1" | \
    grep -v "\.3" | \
    grep -v "\.sgml" | \
    grep -v "\.xml" | \
    grep -v "gdoc" | \
    grep -v "mdate-sh" > %{libname}-devel.filelist

find examples -type f -name ".c" | sed 's/^/%{doc} /' >> %{devname}.filelist

#(tpg) really not needed... also got lzma'd :)

rm -rf %{buildroot}%{_infodir}/*.png*

# this fixes a file clash in a mixed arch env
mv %{buildroot}%{_infodir}/%{name}.info %{buildroot}%{_infodir}/%{libname}.info

%if %{with java}
# (From Fedora)
# regenerate java documentation
rm -rf doc/java/*
%javadoc -source 1.6 -d doc/java $(find java/src/main/java -name "*.java")
# generate maven depmap
rm -rf %{buildroot}%{_javadir}/libidn*.jar
%mvn_artifact java/pom.xml java/libidn-%{version}.jar
%mvn_file org.gnu.inet:libidn libidn
%mvn_install -J doc/java
%endif

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14131 |21mr|libidn2-2.3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname idn2_ %{major}
%define devname %mklibname idn2 -d

Summary:	Library to support IDNA2008 internationalized domain names
Name:		libidn2
Version:	2.3.3
Release:	3
License:	(GPLv2+ or LGPLv3+) and GPLv3+
Group:		System/Libraries
Url:		https://www.gnu.org/software/libidn/#libidn2
Source0:	https://ftp.gnu.org/gnu/libidn/libidn2-%{version}.tar.gz
# need for autoreconf
BuildRequires:	gtk-doc
BuildRequires:	lzip
BuildRequires:	gettext-devel
BuildRequires:	libunistring-devel

%description
Libidn2 is an implementation of the IDNA2008 specifications in RFC
5890, 5891, 5892, 5893 and TR46 for internationalized domain names
(IDN). It is a standalone library, without any dependency on libidn.

#----------------------------------------------------------------------------

%package -n idn2
Summary:	Command line interface to the Libidn2 implementation of IDNA2008
Group:		Development/Other

%description -n idn2
Internationalized Domain Name (IDNA2008) convert STRINGS, or standard input.

%files -n idn2
%doc AUTHORS NEWS README.md
%license COPYING COPYING.unicode
%{_bindir}/idn2
%{_infodir}/%{name}.info*
%{_mandir}/man1/idn2.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for libidn2
License:	LGPLv3+ or GPLv2+
Group:		System/Libraries
Requires:	%{name}-i18n >= %{EVRD}

%description -n %{libname}
Libidn2 is an implementation of the IDNA2008 specifications in RFC
5890, 5891, 5892, 5893 and TR46 for internationalized domain names
(IDN). It is a standalone library, without any dependency on libidn.

%files -n %{libname}
%doc COPYING.LESSERv3 COPYINGv2
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libidn2
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for
developing applications that use libidn2.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/%{name}/
%{_includedir}/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package i18n
Summary:	Internationalization and locale data for %{name}
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Internationalization and locale data for %{name}

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure \
	--disable-static
%make

%install
%makeinstall_std

# Some file cleanups
rm -f %{buildroot}%{_datadir}/info/dir

# Remove example-only binaries for now
rm -f %{buildroot}%{_bindir}/{lookup,register}

%find_lang %{name}

%check
%make -C tests check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14132 |21mr|libidn2-2.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname idn2_ %{major}
%define devname %mklibname idn2 -d

Summary:	Library to support IDNA2008 internationalized domain names
Name:		libidn2
Version:	2.3.4
Release:	1
License:	(GPLv2+ or LGPLv3+) and GPLv3+
Group:		System/Libraries
Url:		https://www.gnu.org/software/libidn/#libidn2
Source0:	https://ftp.gnu.org/gnu/libidn/libidn2-%{version}.tar.gz
# need for autoreconf
BuildRequires:	gtk-doc
BuildRequires:	lzip
BuildRequires:	gettext-devel
BuildRequires:	libunistring-devel

%description
Libidn2 is an implementation of the IDNA2008 specifications in RFC
5890, 5891, 5892, 5893 and TR46 for internationalized domain names
(IDN). It is a standalone library, without any dependency on libidn.

#----------------------------------------------------------------------------

%package -n idn2
Summary:	Command line interface to the Libidn2 implementation of IDNA2008
Group:		Development/Other

%description -n idn2
Internationalized Domain Name (IDNA2008) convert STRINGS, or standard input.

%files -n idn2
%doc AUTHORS NEWS README.md
%license COPYING COPYING.unicode
%{_bindir}/idn2
%{_infodir}/%{name}.info*
%{_mandir}/man1/idn2.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for libidn2
License:	LGPLv3+ or GPLv2+
Group:		System/Libraries
Requires:	%{name}-i18n >= %{EVRD}

%description -n %{libname}
Libidn2 is an implementation of the IDNA2008 specifications in RFC
5890, 5891, 5892, 5893 and TR46 for internationalized domain names
(IDN). It is a standalone library, without any dependency on libidn.

%files -n %{libname}
%doc COPYING.LESSERv3 COPYINGv2
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libidn2
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for
developing applications that use libidn2.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/%{name}/
%{_includedir}/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package i18n
Summary:	Internationalization and locale data for %{name}
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Internationalization and locale data for %{name}

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure \
	--disable-static
%make

%install
%makeinstall_std

# Some file cleanups
rm -f %{buildroot}%{_datadir}/info/dir

# Remove example-only binaries for now
rm -f %{buildroot}%{_bindir}/{lookup,register}

%find_lang %{name}

%check
%make -C tests check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14133 |21mr|libiec61883-1.2.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname iec61883_ %{major}
%define devname %mklibname iec61883 -d

Summary:	Streaming library for IEEE1394
Name:		libiec61883
Version:	1.2.0
Release:	16
License:	LGPLv2.1+
Group:		System/Libraries
Source0:	http://linux1394.org/dl/%{name}-%{version}.tar.gz
Url:		http://linux1394.org
BuildRequires:	pkgconfig(libraw1394) >= 1.2.0

%description
The libiec61883 library provides an higher level API for streaming DV,
MPEG-2 and audio over IEEE1394.  Based on the libraw1394 isochronous
functionality, this library acts as a filter that accepts DV-frames,
MPEG-2 frames or audio samples from the application and breaks these
down to isochronous packets, which are transmitted using libraw1394.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Streaming library for IEEE1394
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
The libiec61883 library provides an higher level API for streaming DV,
MPEG-2 and audio over IEEE1394.  Based on the libraw1394 isochronous
functionality, this library acts as a filter that accepts DV-frames,
MPEG-2 frames or audio samples from the application and breaks these
down to isochronous packets, which are transmitted using libraw1394.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libiec61883.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libiec61883
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}iec61883_0-devel < 1.2.0-12
Obsoletes:	%{_lib}iec61883_0-devel < 1.2.0-12

%description -n %{devname}
Development libraries needed to build applications against libiec61883.

%files -n %{devname}
%doc examples/*.c
%{_libdir}/libiec61883.so
%{_includedir}/*
%{_libdir}/pkgconfig/libiec61883.pc

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities for use with libiec61883
Group:		Communications
Requires:	%{name} = %{version}

%description utils
Utilities that make use of iec61883

%files utils
%{_bindir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
perl -pi -e's,noinst,bin,' examples/Makefile.am

%build
autoreconf -i
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14134 |21mr|libieee1284-0.2.11-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname ieee1284_ %{major}
%define develname %mklibname ieee1284 -d

Summary:	Cross-platform library for parallel port access
Name:		libieee1284
Version:	0.2.11
Release:	18
License:	LGPLv2+
Group:		System/Libraries
URL:		http://sourceforge.net/projects/libieee1284/
Source0:	http://ovh.dl.sourceforge.net/sourceforge/libieee1284/%{name}-%{version}.tar.bz2
Patch0:		libieee1284-0.2.11-linkage.patch
BuildRequires:	python2-devel

%description
libieee1284 is a cross-platform library for parallel port access

%package -n	%{libname}
Summary:	Cross-platform library for parallel port access
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n	%{libname}
libieee1284 is a cross-platform library for parallel port access

%package -n	%{develname}
Summary:	Development files for libieee1284
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	ieee1284-devel
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname ieee1284_ 3 -d} < 0.2.11-12

%description -n	%{develname}
The %{name}-devel package includes the header files and .so libraries
necessary for developing programs which will access parallel port devices 
using the %{name} library.

%package -n	python2-%{name}
Group:		Development/Python
Summary:	Python bindings for libieee2384
Conflicts:	%{name}-devel < %{version}-%{release}

%description -n python2-%{name}
This package contains python bindings for libieee2384.

%prep
%setup -q
%patch0 -p0

%build
export PYTHON=%__python2
%configure \
	--with-python \
	--disable-static

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%doc README AUTHORS ChangeLog INSTALL NEWS TODO
%{_bindir}/libieee1284_test
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/*

%files -n python2-%{name}
%{python2_sitearch}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14135 |21mr|libimobiledevice-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname imobiledevice %{major}
%define devname %mklibname imobiledevice -d

Summary:	Library for connecting to Apple iPhone and iPod touch
Name:		libimobiledevice
Version:	1.3.0
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://libimobiledevice.org/
Source0:	https://github.com/libimobiledevice/libimobiledevice/releases/download/%{version}/libimobiledevice-%{version}.tar.bz2

BuildRequires:	swig
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libplist-2.0) >= 2.2.0
BuildRequires:	pkgconfig(libplist++-2.0) >= 2.2.0
BuildRequires:	pkgconfig(libtasn1)
BuildRequires:	pkgconfig(libusbmuxd-2.0) >= 2.0.0
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cython)

%description
A library for connecting to Apple's iPhone or iPod touch devices.

%files
%doc AUTHORS COPYING.LESSER README.md
%{_bindir}/idevice*
%{_mandir}/man1/idevice*.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for connecting to Apple iPhone and iPod touch
Group:		System/Libraries

%description -n %{libname}
A library for connecting to Apple's iPhone or iPod touch devices.

%files -n %{libname}
%{_libdir}/libimobiledevice-1.0.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for libimobiledevice
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for development with libimobiledevice.

%files -n %{devname}
%{_libdir}/pkgconfig/libimobiledevice-1.0.pc
%{_libdir}/libimobiledevice-1.0.so
%{_includedir}/libimobiledevice

#----------------------------------------------------------------------------

%package -n python3-imobiledevice
Summary:	Python bindings for libimobiledevice
Group:		Development/Python

%description -n python3-imobiledevice
Python bindings for libimobiledevice.

%files -n python3-imobiledevice
%{python3_sitearch}/imobiledevice.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi # for CVE-2013-2142 patch
%configure --disable-static

# Remove rpath as per https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14136 |21mr|libindicate-12.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define major_gtk 3
%define api 0.7
%define libname %mklibname indicate %{major}
%define girname %mklibname indicate-gir %{api}
%define gtklibname %mklibname indicate-gtk3_ %{major_gtk}
%define gtkgirname %mklibname indicategtk3-gir %{api}
%define devname %mklibname indicate -d
%define gtkdevname %mklibname indicate-gtk -d

Summary:	Library for applications to raise flags on DBus
Name:		libindicate
Version:	12.10.1
Release:	1
License:	LGPLv3
Group:		System/Libraries
Url:		https://launchpad.net/libindicate
Source0:	http://launchpad.net/%{name}/0.3/%{version}/+download/%{name}-%{version}.tar.gz
Patch0:		libindicate-0.6.1-no-mono.patch
Patch1:		libindicate-12.10.1-werror.patch
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(dbus-glib-1) >= 0.76
BuildRequires:	pkgconfig(dbusmenu-glib-0.4) >= 0.3.97
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0) >= 2.18
BuildRequires:	pkgconfig(glib-2.0) >= 2.18
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.0

%description
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for applications to raise flags on DBus
Group:		System/Libraries

%description -n %{libname}
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%files -n %{libname}
%{_libdir}/libindicate.so.%{major}*

#-----------------------------------------------------------------------

%package -n %{gtklibname}
Summary:	Library for applications to raise flags on DBus
Group:		System/Libraries
Obsoletes:	%{_lib}indicate-gtk33 < 0.6.1-2

%description -n %{gtklibname}
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%files -n %{gtklibname}
%{_libdir}/libindicate-gtk3.so.%{major_gtk}* 

#-----------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for libindicate
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for libindicate-gtk.

%files -n       %{girname}
%{_libdir}/girepository-1.0/Indicate-%{api}.typelib

#-----------------------------------------------------------------------

%package -n %{gtkgirname}
Summary:	GObject Introspection interface description for libindicate-gtk
Group:		System/Libraries
Requires:	%{gtklibname} = %{EVRD}

%description -n %{gtkgirname}
GObject Introspection interface description for libindicate-gtk.

%files -n %{gtkgirname}
%{_libdir}/girepository-1.0/IndicateGtk3-%{api}.typelib

#-----------------------------------------------------------------------
%if 0
%package -n indicate-sharp
Summary:	Library for applications to raise flags on DBus
Group:		Development/Other
Provides:	mono-%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n indicate-sharp
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%files -n indicate-sharp
%{_libdir}/pkgconfig/indicate-sharp-0.1.pc
%{_libdir}/indicate-sharp-0.1
%{_prefix}/lib/mono/indicate/indicate-sharp.dll
%{_prefix}/lib/mono/gac/indicate-sharp

#-----------------------------------------------------------------------

%package -n indicate-gtk-sharp
Summary:	Library for applications to raise flags on DBus
Group:		Development/Other
Provides:	mono-%{name}-gtk = %{EVRD}
Requires:	%{gtklibname} = %{EVRD}

%description -n indicate-gtk-sharp
A small library for applications to raise "flags" on DBus for other
components of the desktop to pick up and visualize. Currently used by
the messaging indicator.

%files -n indicate-gtk-sharp
%{_libdir}/pkgconfig/indicate-gtk-sharp-0.1.pc
%{_libdir}/indicate-gtk-sharp-0.1
%{_prefix}/lib/mono/indicate-gtk/indicate-gtk-sharp.dll
%{_prefix}/lib/mono/gac/indicate-gtk-sharp
%endif

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n %{devname}
%{_includedir}/%{name}-%{api}/libindicate
%{_libdir}/libindicate.so
%{_libdir}/pkgconfig/indicate-%{api}.pc
%{_datadir}/gir-1.0/Indicate-%{api}.gir
%{_datadir}/vala/vapi/Indicate-%{api}.vapi

#------------------------------------------------------------------------

%package -n %{gtkdevname}
Summary:	Library headers for %{name}
Group:		Development/C
Requires:	%{gtklibname} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-gtk-devel = %{EVRD}

%description -n %{gtkdevname}
This is the libraries, include files and other resources you can use
to incorporate %{name} into applications.

%files -n %{gtkdevname}
%{_includedir}/%{name}-gtk3-%{api}/libindicate-gtk/
%{_libdir}/libindicate-gtk3.so
%{_libdir}/pkgconfig/indicate-gtk3-%{api}.pc
%{_datadir}/gir-1.0/IndicateGtk3-%{api}.gir
%{_datadir}/vala/vapi/IndicateGtk3-%{api}.vapi

#-----------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name} 
Group:		Development/C

%description doc
This package provides documentation files for %{name}

%files doc
%doc AUTHORS COPYING COPYING.LGPL.2.1
%{_defaultdocdir}/%{name}/
%{_datadir}/gtk-doc/html/%{name}

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build
NOCONFIGURE=yes gnome-autogen.sh
%configure \
	--with-gtk=3 \
	--disable-python \
	--disable-static

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14137 |21mr|libindicator-12.10.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 3
%define major 7
%define libname %mklibname indicator %{major}
%define devname %mklibname indicator -d

%define libname3 %mklibname indicator %{api} %{major}
%define devname3 %mklibname indicator %{api} -d

Summary:	Panel indicator applet libraries
Name:		libindicator
Version:	12.10.1
Release:	8
License:	GPLv3+
Group:		System/Libraries
Url:		https://launchpad.net/libindicator
Source0:	%{name}-%{version}.tar.gz
Patch0:		libindicator-12.10.1-libm.patch
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
Panel indicator applet library.

This library contains information to build indicators to go into the indicator
applet.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Panel indicator applet - shared library files - gtk+2
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library files - gtk+2.

%files -n %{libname}
%{_libexecdir}/indicator-loader
%{_libdir}/libindicator.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Panel indicator applet - library development files - gtk+2
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains files that are needed to build applications gtk+2.

%files -n %{devname}
%dir %{_datadir}/%{name}
%{_includedir}/libindicator-0.4/
%{_libdir}/pkgconfig/indicator-0.4.pc
%{_libdir}/libindicator.so

#----------------------------------------------------------------------------

%package -n %{libname3}
Summary:	Panel indicator applet - shared library files - gtk+3
Group:		System/Libraries
Conflicts:	%{name}-tools < 0.5.0-2

%description -n %{libname3}
This package contains the shared library files - gtk+3.

%files -n %{libname3}
%{_libexecdir}/indicator-loader%{api}
%{_libdir}/libindicator%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname3}
Summary:	Panel indicator applet - library development files - gtk+3
Group:		Development/C
Requires:	%{libname3} = %{EVRD}
Obsoletes:	%{name}-tools < 0.5.0-2

%description -n %{devname3}
This package contains files that are needed to build applications - gtk+3.

%files -n %{devname3}
%doc ChangeLog AUTHORS COPYING
%{_includedir}/libindicator%{api}-0.4/
%{_datadir}/%{name}/80indicator-debugging
%{_libdir}/pkgconfig/indicator%{api}-0.4.pc
%{_libdir}/libindicator%{api}.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

mkdir ../gtk3
cp -a . ../gtk3/
mv ../gtk3 .

%build
%global optflags %{optflags} -Wno-error=deprecated-declarations -fno-strict-aliasing

autoreconf -fi
%configure \
	--disable-static \
	--with-gtk=2 \
	--disable-tests

%make CFLAGS+="-DGLIB_DISABLE_DEPRECATION_WARNINGS"

pushd gtk3
autoreconf -fi
%configure \
	--disable-static \
	--with-gtk=3 \
	--disable-tests

%make CFLAGS+="-DGLIB_DISABLE_DEPRECATION_WARNINGS"
popd

%install
%makeinstall_std
%makeinstall_std -C gtk3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14138 |21mr|libinput-1.22.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 10
%define libname %mklibname input %{major}
%define devname %mklibname input -d

%define _udevdir /lib/udev/

Summary:	Handles input devices for display servers
Name:		libinput
Version:	1.22.1
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libinput/
Source0:	https://gitlab.freedesktop.org/libinput/libinput/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	doxygen
BuildRequires:	graphviz
%ifnarch %{e2k} %{riscv}
BuildRequires:	valgrind-devel
BuildRequires:	valgrind
BuildRequires:	pkgconfig(libunwind)
%endif
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(mtdev)
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libwacom)
BuildRequires:	pkgconfig(check)
BuildRequires:	cmark

%description
libinput is a library that handles input devices for display servers and other
applications that need to directly deal with input devices.

It provides device detection, device handling, input device event processing
and abstraction so minimize the amount of custom input code the user of
libinput need to provide the common set of functionality that users expect.

%files
%{_bindir}/libinput
%{_libexecdir}/libinput/libinput*
%{_datadir}/%{name}/*.quirks
%{_mandir}/man1/%{name}*.1*
%{_udevrulesdir}/*.rules
%{_udevdir}/libinput-device-group
%{_udevdir}/libinput-fuzz-extract
%{_udevdir}/libinput-fuzz-to-zero
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for libinput
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
libinput is a library that handles input devices for display servers and other
applications that need to directly deal with input devices.

It provides device detection, device handling, input device event processing
and abstraction so minimize the amount of custom input code the user of
libinput need to provide the common set of functionality that users expect.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and heders for %{name}
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files and heders for %{name}.

%files -n %{devname}
%doc COPYING
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
    -Dudev-dir=/lib/udev \
    -Ddocumentation=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14139 |21mr|libinstpatch-1.1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname instpatch
%define	api 1.0
%define	major 2
%define	libname %mklibname %{oname} %{api} %{major}
%define	devname %mklibname %{oname} -d

Summary:	Library for processing Music Instrument patch files
Name:		libinstpatch
Version:	1.1.6
Release:	2
License:	LGPLv2+
Group:		Sound
Url:		https://github.com/swami/libinstpatch
Source0:	https://github.com/swami/libinstpatch/archive/%{name}-%{version}.tar.gz
BuildRequires:	cmake >= 3.0.0
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(glib-2.0) >= 2.14
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(sndfile)

%description
Library for processing digital sample based MIDI instrument "patch" files.
The types of files libInstPatch supports are used for creating instrument
sounds for wavetable synthesis. It provides an object framework (based on
GObject) to load patch files into, which can then be edited, converted,
compressed and saved.

#----------------------------------------------------------------------------

%package -n %{oname}
Summary:	Utilities related to the libinstpatch library
Group:		Sound

%description -n %{oname}
Utilities related to the %{name} library. LibInstPatch contains
tools for processing digital sample based MIDI instrument "patch" files. The
types of files it supports are used for creating instrument sounds for
wavetable synthesis.

%files -n %{oname}
%doc COPYING
%{_bindir}/riff_dump

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for processing music instrument patch files
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
%rename		%{_lib}instpatch0

%description -n %{libname}
Library for processing digital sample based MIDI instrument "patch" files.
The types of files libInstPatch supports are used for creating instrument
sounds for wavetable synthesis. It provides an object framework (based on
GObject) to load patch files into, which can then be edited, converted,
compressed and saved.

%files -n %{libname}
%doc AUTHORS COPYING README.md
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libinstpatch development headers
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
Header files needed to build applications against %{name}.

%files -n %{devname}
%doc ChangeLog
%dir %{_includedir}/%{name}-2/%{name}
%{_includedir}/%{name}-2/%{name}/*.h
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%cmake	.. \
		-DGTKDOC_ENABLED=OFF \
		-DINTROSPECTION_ENABLED=OFF

%make


%install
%makeinstall_std -C build

# Install the utility
install -d %{buildroot}%{_bindir}
install -m 0755 build/utils/riff_dump %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14140 |21mr|libiodbc-3.52.12-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname iodbc %{major}
%define libnameinst %mklibname iodbcinst %{major}
%define libnamedrvproxy %mklibname drvproxy %{major}
%define libnameadm %mklibname iodbcadm %{major}
%define devname %mklibname iodbc -d

%bcond_with gtk

Summary:	The iODBC Driver Manager
Name:		libiodbc
Version:	3.52.12
Release:	11
License:	BSD
Group:		System/Libraries
Url:		http://www.iodbc.org/
Source0:	http://www.iodbc.org/downloads/iODBC/libiodbc-%{version}.tar.gz
%if %{with gtk}
BuildRequires:	pkgconfig(gtk+-2.0)
%endif

%description
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.

The iODBC Driver Manager was originally created by Ke Jin and is
currently maintained by OpenLink Software under a LGPL or BSD license
(see "LICENSE" file included in the distribution).

#---------------------------------------------------------------

%package -n %{libname}
Summary:	The iODBC Driver Manager main library
Group:		System/Libraries

%description -n %{libname}
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.

The iODBC Driver Manager was originally created by Ke Jin and is
currently maintained by OpenLink Software under a LGPL or BSD license
(see "LICENSE" file included in the distribution).

%files -n %{libname}
%{_libdir}/libiodbc.so.%{major}*

#---------------------------------------------------------------

%package -n %{libnameinst}
Summary:	The iODBC Driver Manager main library
Group:		System/Libraries

%description -n %{libnameinst}
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.

The iODBC Driver Manager was originally created by Ke Jin and is
currently maintained by OpenLink Software under a LGPL or BSD license
(see "LICENSE" file included in the distribution).

%files -n %{libnameinst}
%{_libdir}/libiodbcinst.so.%{major}*

#---------------------------------------------------------------

%package util
Summary:	The iODBC Driver Manager common binary files
Group:		System/Libraries

%description util
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.

The iODBC Driver Manager was originally created by Ke Jin and is
currently maintained by OpenLink Software under a LGPL or BSD license
(see "LICENSE" file included in the distribution).

%files util
%{_bindir}/iodbctest
%{_bindir}/iodbctestw
%{_mandir}/man1/iodbctest.1*
%{_mandir}/man1/iodbctestw.1*

#---------------------------------------------------------------

%if %{with gtk}
%package -n %{libnamedrvproxy}
Summary:	The iODBC Driver Manager main library
Group:		System/Libraries

%description -n %{libnamedrvproxy}
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.

The iODBC Driver Manager was originally created by Ke Jin and is
currently maintained by OpenLink Software under a LGPL or BSD license
(see "LICENSE" file included in the distribution).

%files -n %{libnamedrvproxy}
%{_libdir}/libiodbcdrvproxy.so.%{major}*
%endif

#---------------------------------------------------------------

%if %{with gtk}
%package -n %{libnameadm}
Summary:	The iODBC Driver Manager main library
Group:		System/Libraries

%description -n %{libnameadm}
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.

The iODBC Driver Manager was originally created by Ke Jin and is
currently maintained by OpenLink Software under a LGPL or BSD license
(see "LICENSE" file included in the distribution).

%files -n %{libnameadm}
%{_libdir}/libiodbcadm.so.%{major}*
%endif

#---------------------------------------------------------------

%if %{with gtk}
%package admin
Summary:	GTK based administrator for iODBC development
Group:		Development/Libraries

%description admin
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.

This package contains a GTK based administrator program for maintaining
DSN information in odbc.ini and odbcinst.ini files.

The iODBC Driver Manager was originally created by Ke Jin and is
currently maintained by OpenLink Software under a LGPL or BSD license
(see "LICENSE" file included in the distribution).

%files admin
%{_bindir}/iodbcadm-gtk
%{_mandir}/man1/iodbcadm-gtk.1*
%endif

#---------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for iODBC development
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Requires:	%{libnameinst} = %{EVRD}
Requires:	%{name}-util = %{EVRD}
%if %{with gtk}
Requires:	%{libnamedrvproxy} = %{EVRD}
Requires:	%{libnameadm} = %{EVRD}
%endif
Requires:	unixODBC-devel
Provides:	%{name}-devel = %{EVRD}
Provides:	iodbc-devel = %{EVRD}

%description -n %{devname}
The iODBC Driver Manager is a free implementation of the SAG CLI and
ODBC compliant driver manager which allows developers to write ODBC
compliant applications that can connect to various databases using
appropriate backend drivers.

This package contains the header files and libraries needed to develop
program that use the driver manager.

The iODBC Driver Manager was originally created by Ke Jin and is 
currently maintained by OpenLink Software under a LGPL or BSD license
(see "LICENSE" file included in the distribution).

%files -n %{devname}
%doc AUTHORS LICENSE LICENSE.LGPL LICENSE.BSD ChangeLog NEWS README 
%doc etc/odbc.ini.sample
%doc etc/odbcinst.ini.sample
%{_includedir}/*
%{_libdir}/*.so
%{_bindir}/iodbc-config
%{_libdir}/pkgconfig/libiodbc.pc
%{_mandir}/man1/iodbc-config.1*
%{_datadir}/libiodbc

#---------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-odbc3 \
	--disable-libodbc \
	--disable-static \
	%if %{with gtk}
	--enable-gui \
	%else
	--disable-gui \
	%endif
	--with-iodbc-inidir=%{_sysconfdir} \
	--includedir=%{_includedir}/iodbc \
	--enable-pthreads

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14141 |21mr|libiptcdata-1.0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname iptcdata %{major}
%define devname %mklibname iptcdata -d

Name:		libiptcdata
Summary:	IPTC tag library
Version:	1.0.5
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libiptcdata/
Source0:	https://github.com/ianw/libiptcdata/releases/download/release_1_0_5/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:  gettext-devel

%description
libiptcdata is a library for parsing, editing, and saving IPTC data.

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities from IPTC tag library
Group:		System/Libraries

%description utils
Utilities from IPTC tag library for parsing, editing, and saving IPTC data.

%files utils -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README INSTALL TODO
%{_bindir}/*

#----------------------------------------------------------------------------

%package i18n
Summary:	Translations of the IPTC tag library
Group:		System/Libraries

%description i18n
libiptcdata is a library for parsing, editing, and saving IPTC data.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	IPTC tag shared library
Group:		System/Libraries
Requires:	%{name}-i18n >= %{EVRD}

%description -n %{libname}
libiptcdata is a library for parsing, editing, and saving IPTC data.

%files -n %{libname}
%{_libdir}/libiptcdata.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The files needed for libiptcdata application development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the libraries and include files that you can use to
develop libiptcdata applications.

%files -n %{devname}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/libiptcdata
%{_datadir}/gtk-doc/html/libiptcdata

#----------------------------------------------------------------------------

%package -n %python2-iptcdata
%py2_migration_meta %python2-iptcdata
Summary:	IPTC tag library python2 bindings
Group:		Development/Python

%description -n %python2-iptcdata
python-iptcdata is a library for parsing, editing, and saving IPTC data.
Python2 bindings.

%files -n %python2-iptcdata
%{py2_platsitedir}/*
#----------------------------------------------------------------------------

%package -n python3-iptcdata
Summary:	IPTC tag library python3 bindings
Group:		Development/Python

%description -n python3-iptcdata
python-iptcdata is a library for parsing, editing, and saving IPTC data.
Python3 bindings.

%files -n python3-iptcdata
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
( cd .. ; cp -r %name-%version %name-%version-py2 )
( cd .. ; cp -r %name-%version %name-%version-py3 )

# (mikhailnov) First build without python because we need to add -lxxx flags
# to workaround linking issues;
# if we make the main build with those flags, some ELFs will be overlinked

%build
%configure --disable-python
%make_build

( cd ../%name-%version-py2
export PYTHON=%{__python2}
%setup_compile_flags
export CFLAGS="$CFLAGS $(pkg-config --cflags --libs python2)"
%configure --enable-python --with-python=%{__python2}
%make_build
)

( cd ../%name-%version-py3
export PYTHON=%{__python3}
%setup_compile_flags
export CFLAGS="$CFLAGS $(pkg-config --cflags --libs python3)"
%configure --enable-python --with-python=%{__python3}
%make_build
)

%install

( cd ../%name-%version-py3
%make_install
)

( cd ../%name-%version-py2
%make_install
)

%make_install

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14142 |21mr|libiscsi-1.19.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 9
%define libname %mklibname iscsi %{major}
%define devname %mklibname -d iscsi

Name:		libiscsi
Summary:	iSCSI client library
Version:	1.19.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
URL:		https://github.com/sahlberg/%{name}
Source0:	https://github.com/sahlberg/libiscsi/archive/%{version}.tar.gz
Patch0:		libiscsi-1.19.0-clang9.patch
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(gpg-error)

%description
libiscsi is a library for attaching to iSCSI resources across
a network.

%package -n	%{libname}
Summary:	iSCSI client library
Group:		System/Libraries

%description -n	%{libname}
libiscsi is a library for attaching to iSCSI resources across
a network.

%package -n	%{devname}
Summary:	iSCSI client development libraries
Group:		Development/C
Provides:	iscsi-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n	%{devname}
The libiscsi-devel package includes the header files for libiscsi.

%package	utils
Summary:	iSCSI Client Utilities
Group:		Networking/File transfer
License:	GPLv2+

%description	utils
The libiscsi-utils package provides a set of assorted utilities to connect
to iSCSI servers without having to set up the Linux iSCSI initiator.

%prep
%autosetup -p1
# disable examples
sed -i 's!examples!!g' Makefile.am
./autogen.sh

%build
%set_build_flags

%configure --disable-werror --disable-static CFLAGS="$CFLAGS -Wno-error"
%make_build LDFLAGS="%{ldflags}" CFLAGS="%{optflags}" CC=%{__cc}

%install
%make_install

%files -n %{libname}
%{_libdir}/libiscsi.so.%{major}*

%files -n %{devname}
%dir %{_includedir}/iscsi
%{_includedir}/iscsi/*.h
%{_libdir}/libiscsi.so
%{_libdir}/pkgconfig/libiscsi.pc

%files utils
%doc README TODO
%{_bindir}/iscsi-ls
%{_bindir}/iscsi-inq
%{_bindir}/iscsi-readcapacity16
%{_bindir}/iscsi-swp
%{_bindir}/iscsi-perf
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14143 |21mr|libisofs-1.5.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	6
%define libname	%mklibname isofs %{major}
%define devname	%mklibname isofs -d

Summary:	Library for creating ISO disc images
Name:		libisofs
Version:	1.5.4
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://libburnia-project.org/wiki/Libisofs
Source0:	http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz
Source1:	http://files.libburnia-project.org/releases/%{name}-%{version}.tar.gz.sig
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(libburn-1)

%description
Libisofs is a library that handles creating ISO disc image files. It
is intended to work together with libburn to write these images to
discs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for creating ISO disc images
Group:		System/Libraries

%description -n %{libname}
Libisofs is a library that handles creating ISO disc image files. It
is intended to work together with libburn to write these images to
discs.

%files -n %{libname}
%{_libdir}/libisofs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for development with %{name}
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
This package includes the header files for the %{name} package.

%files -n %{devname}
%doc README AUTHORS COPYRIGHT
%{_libdir}/libisofs.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

# build documentation
doxygen doc/doxygen.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14144 |21mr|libixion-0.19.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define api %%(echo %{version} |cut -d. -f1-2)
%define api 0.18
%define major 0
%define libname %mklibname ixion %{api} %{major}
%define devname %mklibname ixion -d
%define _disable_rebuild_configure 1
%define _disable_lto 1

Summary:	Threaded multi-target formula parser & interpreter
Name:		libixion
Version:	0.19.0
Release:	1
License:	MIT
Group:		Publishing
Url:		http://gitlab.com/ixion/ixion
Source0:	https://gitlab.com/ixion/ixion/-/archive/%{version}/ixion-%{version}.tar.bz2
Patch0:		libixion-gcc13.patch
BuildRequires:	libtool
BuildRequires:	boost-devel >= 1.72.0
BuildRequires:	libstdc++-devel
BuildRequires:	help2man
BuildRequires:	pkgconfig(mdds-2.1)
BuildRequires:	pkgconfig(spdlog)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(vulkan)

%description
Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells".

%package tools
Summary:	Spreadsheet file processing library
Group:		Publishing

%description tools
Tools to use ixion parser and interpreter from cli.

%package -n %{libname}
Summary:	Threaded multi-target formula parser & interpreter
Group:		System/Libraries
Obsoletes:	%{mklibname ixion 0.6 0} < 0.7.0

%description -n %{libname}
Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells".

%package -n %{devname}
Summary:	Threaded multi-target formula parser & interpreter
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
Ixion is a general purpose formula parser & interpreter that can calculate
multiple named targets, or "cells".

%prep
%autosetup -p1 -n ixion-%{version}

%build
./autogen.sh
%configure \
	--enable-python \
	--enable-vulkan

%make

export LD_LIBRARY_PATH=`pwd`/src/libixion/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
help2man -N -n 'parser' -o ixion-parser.1 ./src/ixion-parser
help2man -N -n 'sorter' -o ixion-sorter.1 ./src/ixion-sorter

%if 0
# FIXME restore checks -- ATM they fail in ABF but work locally
# Possibly vulkan/GPU related?
%check
export LD_LIBRARY_PATH=`pwd`/src/libixion/.libs:${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
make check
%endif

%install
%makeinstall_std

%files tools
%{_bindir}/*
%{py3_platsitedir}/*.so

%files -n %{libname}
%{_libdir}/libixion-%{api}.so.%{major}*
%{_libdir}/libixion/ixion-%{major}.*-vulkan.so

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14145 |21mr|libjpeg-turbo-2.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname jpeg %{major}
%define devname %mklibname jpeg -d
%define sdevname %mklibname jpeg -d -s

%define	majorturbo 0
%define	libturbo %mklibname turbojpeg %{majorturbo}

%define	major62 62
%define	libname62 %mklibname jpeg %{major62}

Summary:	A MMX/SSE2 accelerated library for manipulating JPEG image files
Name:		libjpeg-turbo
Epoch:		1
Version:	2.1.3
Release:	1
License:	wxWindows Library License
Group:		System/Libraries
Url:		http://www.libjpeg-turbo.org
Source0:	https://sourceforge.net/projects/libjpeg-turbo/files/%{version}/%{name}-%{version}.tar.gz
# These two allow automatic lossless rotation of JPEG images from a digital
# camera which have orientation markings in the EXIF data. After rotation
# the orientation markings are reset to avoid duplicate rotation when
# applying these programs again.
Source2:	http://jpegclub.org/jpegexiforient.c
Source3:	http://jpegclub.org/exifautotran.txt
Patch0:		jpeg-6b-c++fixes.patch
BuildRequires:	cmake
BuildRequires:	libtool >= 1.4
%ifarch %{ix86} x86_64
BuildRequires:	nasm
%endif

%description
This package contains a library of functions for manipulating JPEG images.
It is a high-speed, libjpeg-compatible version for x86 and x86-64
processors which uses SIMD instructions (MMX, SSE2, etc.) to accelerate
baseline JPEG compression and decompression. It is generally 2-4x as fast
as the unmodified version of libjpeg, all else being equal.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for manipulating JPEG image format files
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libjpeg.

%files -n %{libname}
%doc change.log
%{_libdir}/libjpeg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname62}
Summary:	A library for manipulating JPEG image format files
Group:		System/Libraries

%description -n %{libname62}
This package contains the library needed to run programs dynamically linked
with libjpeg.

%files -n %{libname62}
%doc LICENSE.md
%{_libdir}/libjpeg.so.%{major62}*

#----------------------------------------------------------------------------

%package -n %{libturbo}
Summary:	TurboJPEG library
Group:		System/Libraries

%description -n %{libturbo}
This package contains the library needed to run programs dynamically linked
with libturbojpeg.

%files -n %{libturbo}
%doc LICENSE.md
%{_libdir}/libturbojpeg.so.%{majorturbo}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the libjpeg library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libname62} = %{EVRD}
Requires:	%{libturbo} = %{EVRD}
Provides:	jpeg-devel = %{EVRD}
Conflicts:	jpeg6-devel
Conflicts:	%{_lib}turbojpeg < 1:1.3.0
Obsoletes:	%{_lib}turbojpeg < 1:1.3.0

%description -n %{devname}
The libjpeg-turbo devel package includes the header files necessary for
developing programs which will manipulate JPEG files using the libjpeg
library.

%files -n %{devname}
%doc coderules.txt jconfig.txt libjpeg.txt structure.txt
%{_libdir}/libjpeg.so
%{_libdir}/libturbojpeg.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/libjpeg.pc
%{_libdir}/pkgconfig/libturbojpeg.pc
%{_libdir}/cmake/%{name}/*.cmake

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for programs which will use the libjpeg library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	jpeg-static-devel = %{EVRD}
Conflicts:	jpeg6-static-devel
Obsoletes:	%{mklibname jpeg 62 -d -s} < 6b-45
Obsoletes:	%{mklibname jpeg 7 -d -s} < 7-3

%description -n %{sdevname}
The libjpeg static devel package includes the static libraries necessary
for developing programs which will manipulate JPEG files using the libjpeg
library.

%files -n %{sdevname}
%doc LICENSE.md
%{_libdir}/libjpeg.a
%{_libdir}/libturbojpeg.a

#----------------------------------------------------------------------------

%package -n jpeg-progs
Summary:	Programs for manipulating JPEG format image files
Group:		Graphics
%rename		libjpeg-progs
%rename		jpeg6-progs

%description -n jpeg-progs
This package contains simple client programs for accessing the
libjpeg functions.  The library client programs include cjpeg, djpeg,
jpegtran, rdjpgcom, wrjpgcom and jpegexiforient, coupled with the script
exifautotran. Cjpeg compresses an image file into JPEG format. Djpeg
decompresses a JPEG file into a regular image file. Jpegtran can perform
various useful transformations on JPEG files: it can make lossless
cropping of JPEG files and lossless pasting of one JPEG into another
(dropping). Rdjpgcom displays any text comments included in a JPEG file.
Wrjpgcom inserts text comments into a JPEG file. Jpegexiforient allow
automatic lossless rotation of JPEG images from a digital camera which
have orientation markings in the EXIF data.

%files -n jpeg-progs
%doc usage.txt wizard.txt
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

cp %{SOURCE2} jpegexiforient.c
cp %{SOURCE3} exifautotran


%build
# Prepare build dirs
mkdir -p jpeg8
mkdir -p jpeg62

# Build jpeg v8 API
pushd jpeg8
CFLAGS="%{optflags} -Ofast -funroll-loops" \
%cmake ../.. -DWITH_JPEG8="True"

%make -s
popd

# Build jpeg v6.2 API
pushd jpeg62
CFLAGS="%{optflags} -Ofast -funroll-loops" \
%cmake	../.. \
	-DWITH_ARITH_DEC="True" \
	-DWITH_ARITH_ENC="True"

%make -s
popd

# Build jpegexiforient binary
%__cc %{optflags} %{ldflags} -o jpegexiforient jpegexiforient.c


%install
%makeinstall_std -C jpeg8/build
%makeinstall_std -C jpeg62/build

install -m755 jpegexiforient -D %{buildroot}%{_bindir}/jpegexiforient
install -m755 exifautotran -D %{buildroot}%{_bindir}/exifautotran

#(neoclust) Provide jpegint.h because it is needed by certain software
install -m644 jpegint.h -D %{buildroot}%{_includedir}/jpegint.h

# cleanup
rm -rf %{buildroot}%{_docdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14146 |21mr|libjxl-0.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude pkgconfig\\(libjxl_cms\\)

%define major 0
%define libname %mklibname jxl %{major}
%define devname %mklibname jxl -d

Summary:	JPEG XL reference implementation
Name:		libjxl
Version:	0.9.0
Release:	2
License:	BSD
Group:		System/Libraries
Url:		https://github.com/libjxl/libjxl
Source0:	https://github.com/libjxl/libjxl/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libjxl-0.9.0-avoid-third-party.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	giflib-devel
BuildRequires:	python3dist(sphinx)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libavif)
BuildRequires:	pkgconfig(libbrotlicommon)
BuildRequires:	pkgconfig(libhwy)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(OpenEXR)

%description
Reference implementation of JPEG XL (encoder and decoder).
JPEG XL was standardized in 2022 as ISO/IEC 18181.
The core codestream is specified in 18181-1, the file format in 18181-2.
Decoder conformance is defined in 18181-3, and 18181-4 is the reference software.

#----------------------------------------------------------------------------

%package tools
Summary:	Command-line utilities to convert from/to JPEG XL
Group:		System/Libraries

%description tools
Command-line utilities to convert from/to JPEG XL.

%files tools
%doc README.md
%license LICENSE
%{_bindir}/cjpegli
%{_bindir}/djpegli
%{_bindir}/*xl*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for manipulating JPEG XL image format files
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/%{name}*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc README.md
%license LICENSE
%{_includedir}/jxl
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/%{name}*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake	\
	-DBUILD_TESTING=OFF		\
	-DJPEGXL_ENABLE_PLUGINS=OFF	\
	-DJPEGXL_ENABLE_SJPEG=OFF	\
	-DJPEGXL_ENABLE_SKCMS=OFF	\
	-DJPEGXL_FORCE_SYSTEM_BROTLI=ON	\
	-DJPEGXL_FORCE_SYSTEM_HWY=ON	\
	-DJPEGXL_FORCE_SYSTEM_LCMS2=ON
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14147 |21mr|libkarma-0.1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude libkarma

%define major 0
%define libname %mklibname karma %{major}
%define devname %mklibname karma -d

Summary:	Rio Karma tools
Name:		libkarma
Version:	0.1.2
Release:	8
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.freakysoft.de/libkarma/
Source0:	http://www.freakysoft.de/libkarma/libkarma-%{version}.tar.gz
Source2:	http://bobcopeland.com/karma/banshee/preferences.fdi
Source3:	http://bobcopeland.com/karma/banshee/multimedia-player-rio-karma.png
Source4:	karma-sharp.dll.config
Patch0:		libkarma-0.1.2-mcs.patch
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(mono)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(zlib)
Requires:	%{libname} >= %{EVRD}

%description
Rio Karma access library.

%files
%doc ChangeLog THANKS TODO README.urpmi
%config(noreplace) %{_sysconfdir}/hal/fdi/information/20-rio-karma.fdi
%config(noreplace) %{_sysconfdir}/hal/fdi/policy/preferences.fdi
%{_bindir}/riocp
%{_bindir}/chprop
%{_mandir}/man1/*.1*
%attr(4755,root,root) %{_bindir}/karma_helper
%{_datadir}/icons/hicolor/32x32/devices/multimedia-player-rio-karma.png

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Rio Karma access library
Group:		System/Libraries

%description -n %{libname}
Rio Karma access library.

%files -n %{libname}
%{_libdir}/libkarma.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Rio Karma development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}karma0-devel < 0.1.2-6
Obsoletes:	%{_lib}karma0-devel < 0.1.2-6

%description -n %{devname}
Rio Karma development files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libkarma.a
%{_libdir}/libkarma.so

#----------------------------------------------------------------------------

%package -n karma-sharp
Summary:	Rio Karma C# bindings
Group:		Development/Other
Requires:	%{name} = %{version}

%description -n karma-sharp
Rio Karma C# bindings.

%files -n karma-sharp
%{_libdir}/karma-sharp/*
%{_libdir}/pkgconfig/karma-sharp.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
CFLAGS="%{optflags}" make PREFIX=%{buildroot}/%{_prefix}

%install
mkdir -p %{buildroot}
make install PREFIX=%{buildroot}/%{_prefix} CHOWNPROG=/bin/true CHGRPPROG=/bin/true
perl -pi -e "s^%{buildroot}^^" %{buildroot}%{_prefix}/lib/pkgconfig/karma-sharp.pc
%if "%{_lib}" != "lib"
mv %{buildroot}%{_prefix}/lib %{buildroot}%{_libdir}
perl -pi -e "s^/lib^/%{_lib}^" %{buildroot}%{_libdir}/pkgconfig/karma-sharp.pc
%endif


install -m 644 -D libkarma.fdi %{buildroot}%{_sysconfdir}/hal/fdi/information/20-rio-karma.fdi
install -m 644 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/hal/fdi/policy/preferences.fdi
install -m 644 -D %{SOURCE3} %{buildroot}%{_datadir}/icons/hicolor/32x32/devices/multimedia-player-rio-karma.png

cat > README.urpmi << EOF
For automatic mounting, add the following line to your
/etc/fstab. Otherwise gnome-volume-manager will refuse to mount the
device, as it doesn't know about the Karma's proprietary filesystem.

/dev/disk/by-id/usb-Rio_Rio_Karma_0000000000000000-part2    /media/karma    omfs    user,noauto    0   0

EOF

install -m 644 %{SOURCE4} %{buildroot}%{_libdir}/karma-sharp/karma-sharp.dll.config

# Drop double slash
sed -i 's%//usr%/usr%' %{buildroot}%{_libdir}/pkgconfig/karma-sharp.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14148 |21mr|libkate-0.4.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname kate %{major}
%define devname %mklibname -d kate
%define sdevname %mklibname -s -d kate

%define _disable_rebuild_configure 1
%define _disable_lto 1

Summary:	Karaoke and text codec for embedding in ogg
Name:		libkate
Version:	0.4.1
Release:	12
License:	BSD
Group:		System/Libraries
#Url:		http://code.google.com/p/libkate/
Url:		https://github.com/Distrotech/libkate/
Source0:	http://libkate.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	liboggz-tools
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(python)

%description
Kate is an overlay codec, originally designed for karaoke and text,
that can be multiplixed in Ogg. Text and images can be carried by a
Kate stream, and animated. Most of the time, this would be multiplexed
with audio/video to carry subtitles, song lyrics (with or without
karaoke data), etc, but doesn't have to be.

Series of curves (splines, segments, etc) may be attached to various
properties (text position, font size, etc) to create animated
overlays. This allows scrolling or fading text to be defined. This can
even be used to draw arbitrary shapes, so hand drawing can also be
represented by a Kate stream.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Karaoke and text codec for embedding in ogg
Group:		System/Libraries

%description -n %{libname}
Kate is an overlay codec, originally designed for karaoke and text,
that can be multiplixed in Ogg. Text and images can be carried by a
Kate stream, and animated. Most of the time, this would be multiplexed
with audio/video to carry subtitles, song lyrics (with or without
karaoke data), etc, but doesn't have to be.

Series of curves (splines, segments, etc) may be attached to various
properties (text position, font size, etc) to create animated
overlays. This allows scrolling or fading text to be defined. This can
even be used to draw arbitrary shapes, so hand drawing can also be
represented by a Kate stream.

%files -n %{libname}
%doc README THANKS AUTHORS
%{_libdir}/libkate.so.%{major}*
%{_libdir}/liboggkate.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Karaoke and text codec for embedding in ogg
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Kate is an overlay codec, originally designed for karaoke and text,
that can be multiplixed in Ogg. Text and images can be carried by a
Kate stream, and animated. Most of the time, this would be multiplexed
with audio/video to carry subtitles, song lyrics (with or without
karaoke data), etc, but doesn't have to be.

Series of curves (splines, segments, etc) may be attached to various
properties (text position, font size, etc) to create animated
overlays. This allows scrolling or fading text to be defined. This can
even be used to draw arbitrary shapes, so hand drawing can also be
represented by a Kate stream.

%files -n %{devname}
%doc ChangeLog installed-docs/*
%{_libdir}/libkate.so
%{_libdir}/liboggkate.so
%{_libdir}/pkgconfig/kate.pc
%{_libdir}/pkgconfig/oggkate.pc
%{_includedir}/kate

#----------------------------------------------------------------------------

%package -n python-kdj
Summary:	Karaoke and text codec for embedding in ogg
Group:		Development/Python
Requires:	%{name}-tools = %{EVRD}
Requires:	liboggz-tools
Requires:	python3-wxpython4

%description -n python-kdj
Kate is an overlay codec, originally designed for karaoke and text,
that can be multiplixed in Ogg. Text and images can be carried by a
Kate stream, and animated. Most of the time, this would be multiplexed
with audio/video to carry subtitles, song lyrics (with or without
karaoke data), etc, but doesn't have to be.

Series of curves (splines, segments, etc) may be attached to various
properties (text position, font size, etc) to create animated
overlays. This allows scrolling or fading text to be defined. This can
even be used to draw arbitrary shapes, so hand drawing can also be
represented by a Kate stream.

%files -n python-kdj
%{_bindir}/KateDJ
%{py3_puresitedir}/kdj
%{_mandir}/man1/KateDJ.1*

#----------------------------------------------------------------------------

%package tools
Summary:	Karaoke and text codec for embedding in ogg
Group:		Video
Requires:	%{libname} = %{EVRD}

%description tools
Kate is an overlay codec, originally designed for karaoke and text,
that can be multiplixed in Ogg. Text and images can be carried by a
Kate stream, and animated. Most of the time, this would be multiplexed
with audio/video to carry subtitles, song lyrics (with or without
karaoke data), etc, but doesn't have to be.

Series of curves (splines, segments, etc) may be attached to various
properties (text position, font size, etc) to create animated
overlays. This allows scrolling or fading text to be defined. This can
even be used to draw arbitrary shapes, so hand drawing can also be
represented by a Kate stream.

%files tools
%{_bindir}/katalyzer
%{_bindir}/katedec
%{_bindir}/kateenc
%{_mandir}/man1/katalyzer.1*
%{_mandir}/man1/katedec.1*
%{_mandir}/man1/kateenc.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%config_update

# We regenerate theses files at built step
rm tools/kate_parser.{c,h}
rm tools/kate_lexer.c

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std
mkdir -p installed-docs
mv %{buildroot}%{_datadir}/doc/%{name}/html installed-docs
rm -rf %{buildroot}%{_datadir}/doc

sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/KateDJ

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14149 |21mr|libkdcraw-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 C++ interface around LibRaw module
Name:		libkdcraw
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)

%description
Libkdcraw is a C++ interface around LibRaw library used to decode RAW
picture files. More information about LibRaw can be found at
http://www.libraw.org.

%files
%{_kde5_datadir}/qlogging-categories5/libkdcraw.categories

#------------------------------------------------

%define kf5kdcraw_major 5
%define libkf5kdcraw %mklibname kf5kdcraw %{kf5kdcraw_major}

%package -n %{libkf5kdcraw}
Summary:	KDE Frameworks 5 C++ interface around LibRaw shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Provides:	%{name}-common = %{EVRD}
Obsoletes:	%{name} < 2:16.08.1
Obsoletes:	%{name}-common < 2:16.08.1

%description -n %{libkf5kdcraw}
KDE Frameworks 5 C++ interface around LibRaw shared library.

%files -n %{libkf5kdcraw}
%{_kde5_libdir}/libKF5KDcraw.so.%{kf5kdcraw_major}*

#-----------------------------------------------------------------------------

%define devkf5kdcraw %mklibname kf5kdcraw -d

%package -n %{devkf5kdcraw}
Summary:	Development files for KDE Frameworks 5 C++ interface around LibRaw module
Group:		Development/KDE and Qt
Requires:	%{libkf5kdcraw} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kdcraw-devel = %{EVRD}
Obsoletes:	%{name}-devel < 2:16.08.1

%description -n %{devkf5kdcraw}
Development files for KDE Frameworks 5 C++ interface around LibRaw module.

%files -n %{devkf5kdcraw}
%{_kde5_includedir}/KF5/KDCRAW/
%{_kde5_libdir}/cmake/KF5KDcraw
%{_kde5_libdir}/libKF5KDcraw.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14150 |21mr|libkdepim-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 PIM library
Name:		libkdepim
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	sasl-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5designerplugin-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Plasma 5 PIM library.

%files
%{_kde5_datadir}/qlogging-categories5/libkdepim.categories
%{_kde5_datadir}/qlogging-categories5/libkdepim.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 PIM library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 PIM library translations.

%files i18n -f libkdepim.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-kdepimwidgets
Summary:	Qt5 Designer plugin for KDE PIM Widgets
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-kdepimwidgets
Qt5 Designer plugin for KDE PIM Widgets.

%files -n qt5-designer-plugin-kdepimwidgets
%{_qt5_plugindir}/designer/kdepim5widgets.so

#----------------------------------------------------------------------------

%define kf5libkdepim_major 5
%define libkf5libkdepim %mklibname kf5libkdepim %{kf5libkdepim_major}

%package -n %{libkf5libkdepim}
Summary:	Plasma 5 PIM shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5libkdepim}
Plasma 5 PIM shared library.

%files -n %{libkf5libkdepim}
%{_kde5_libdir}/libKPim5Libkdepim.so.%{kf5libkdepim_major}*

#----------------------------------------------------------------------------

%define devkf5libkdepim %mklibname kf5libkdepim -d

%package -n %{devkf5libkdepim}
Summary:	Development files for Plasma 5 PIM library
Group:		Development/KDE and Qt
Requires:	%{libkf5libkdepim} = %{EVRD}
# Not auto-detected
Requires:	kf5calendarcore-devel
Provides:	kf5libkdepim-devel = %{version}
Recommends:	qt5-designer-plugin-kdepimwidgets

%description -n %{devkf5libkdepim}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5libkdepim}
%dir %{_kde5_includedir}/KPim5/Libkdepim
%{_kde5_includedir}/KPim5/Libkdepim/*
%{_kde5_libdir}/cmake/KF5Libkdepim
%{_kde5_libdir}/cmake/KPim5Libkdepim
%{_kde5_libdir}/cmake/MailTransportDBusService
%{_kde5_libdir}/cmake/KPim5MailTransportDBusService
%{_kde5_libdir}/libKPim5Libkdepim.so
%{_kde5_mkspecsdir}/qt_Libkdepim.pri
%{_datadir}/dbus-1/interfaces/org.kde.addressbook.service.xml
%{_datadir}/dbus-1/interfaces/org.kde.mailtransport.service.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkdepim --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14151 |21mr|libkeduvocdocument-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A library for reading from/writing to the KVTML format
Name:		libkeduvocdocument
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/blinken/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)

%description
A library for reading from/writing to the KVTML format.

#----------------------------------------------------------------------------

%package i18n
Summary:	KVTML format library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KVTML format library translations.

%files i18n -f libkeduvocdocument.lang

#----------------------------------------------------------------------------

%define keduvocdocument_major 5
%define libname %mklibname keduvocdocument %{keduvocdocument_major}

%package -n %{libname}
Summary:	A library for reading from/writing to the KVTML format
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
A library for reading from/writing to the KVTML format.

%files -n %{libname}
%{_kde5_libdir}/libKEduVocDocument.so.%{keduvocdocument_major}*

#----------------------------------------------------------------------------

%define devname %mklibname keduvocdocument -d

%package -n %{devname}
Summary:	Development files for KVTML format support library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for KVTML format support library.

%files -n %{devname}
%{_kde5_includedir}/libkeduvocdocument
%{_kde5_libdir}/cmake/libkeduvocdocument
%{_kde5_libdir}/libKEduVocDocument.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkeduvocdocument

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14152 |21mr|libkexiv2-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Frameworks 5 KExiv2 module
Name:		libkexiv2
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		libkexiv2-19.08.1-soname.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)

%description
KDE Frameworks 5 KExiv2 module.

%files
%{_kde5_datadir}/qlogging-categories5/libkexiv2.categories

#--------------------------------------------------------------------

%define kf5kexiv2_major 5
%define libkf5kexiv2 %mklibname kf5kexiv2_ %{kf5kexiv2_major}

%package -n %{libkf5kexiv2}
Summary:	KDE Frameworks 5 KExiv2 shared library
Group:		System/Libraries
Requires:	%{name}
Obsoletes:	%{name} < 2:16.08.1
# Just to make sure old library doesn't have broken dependencies
Provides:	%{name} = %{EVRD}

%description -n %{libkf5kexiv2}
KDE Frameworks 5 KExiv2 shared library.

%files -n %{libkf5kexiv2}
%{_kde5_libdir}/libKF5KExiv2.so.%{kf5kexiv2_major}*

#--------------------------------------------------------------------

%define devname %mklibname kf5kexiv2 -d

%package -n %{devname}
Summary:	Development files for KDE Frameworks 5 KExiv2 module
Group:		Development/KDE and Qt
Requires:	%{libkf5kexiv2} = %{EVRD}
Requires:	pkgconfig(exiv2)
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kexiv2-devel = %{EVRD}
Obsoletes:	%{_lib}kexiv2-devel < 2:16.08.1

%description -n %{devname}
Development files for KDE Frameworks 5 KExiv2 module.

%files -n %{devname}
%{_kde5_includedir}/KF5/KExiv2
%{_kde5_libdir}/cmake/KF5KExiv2
%{_kde5_libdir}/libKF5KExiv2.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14153 |21mr|libkgapi-23.08.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 Google services access module
Name:		libkgapi
Version:	23.08.4
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		libkgapi-soname.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
LibKGAPI (previously called LibKGoogle) is a C++ library that implements APIs
for various Google services.

Currently supported APIs:
  - Calendar API v3 (https://developers.google.com/google-apps/calendar)
  - Contacts API v3 (https://developers.google.com/google-apps/contacts/v3/)
  - Tasks API v1 (https://developers.google.com/google-apps/tasks)
  - Latitude API v1 (https://developers.google.com/latitude/v1/)
  - Static Google Maps API v2
    (https://developers.google.com/maps/documentation/staticmaps/)
  - Drive API v2 (https://developers.google.com/drive/v2/reference)
  - Blogger API v3 (https://developers.google.com/blogger/docs/3.0/reference/)

%files
%{_libdir}/sasl2/libkdexoauth2.so
%{_kde5_datadir}/qlogging-categories5/libkgapi.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 Google services access library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 Google services access library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kpimgapiblogger_major 5
%define libkpimgapiblogger %mklibname kpimgapiblogger %{kpimgapiblogger_major}

%package -n %{libkpimgapiblogger}
Summary:	KDE Frameworks 5 Google services access shared library
Group:		System/Libraries

%description -n %{libkpimgapiblogger}
KDE Frameworks 5 Google services access shared library.

%files -n %{libkpimgapiblogger}
%{_kde5_libdir}/libKPim5GAPIBlogger.so.%{kpimgapiblogger_major}*

#----------------------------------------------------------------------------

%define kpimgapicalendar_major 5
%define libkpimgapicalendar %mklibname kpimgapicalendar %{kpimgapicalendar_major}

%package -n %{libkpimgapicalendar}
Summary:	KDE Frameworks 5 Google services access shared library
Group:		System/Libraries

%description -n %{libkpimgapicalendar}
KDE Frameworks 5 Google services access shared library.

%files -n %{libkpimgapicalendar}
%{_kde5_libdir}/libKPim5GAPICalendar.so.%{kpimgapicalendar_major}*

#----------------------------------------------------------------------------

%define kpimgapipeople_major 5
%define libkpimgapipeople %mklibname kpimgapipeople %{kpimgapipeople_major}

%package -n %{libkpimgapipeople}
Summary:	KDE Frameworks 5 Google services access shared library
Group:		System/Libraries

%description -n %{libkpimgapipeople}
KDE Frameworks 5 Google services access shared library.

%files -n %{libkpimgapipeople}
%{_kde5_libdir}/libKPim5GAPIPeople.so.%{kpimgapipeople_major}*

#----------------------------------------------------------------------------

%define kpimgapicore_major 5
%define libkpimgapicore %mklibname kpimgapicore %{kpimgapicore_major}

%package -n %{libkpimgapicore}
Summary:	KDE Frameworks 5 Google services access shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkpimgapicore}
KDE Frameworks 5 Google services access shared library.

%files -n %{libkpimgapicore}
%{_kde5_libdir}/libKPim5GAPICore.so.%{kpimgapicore_major}*

#----------------------------------------------------------------------------

%define kpimgapidrive_major 5
%define libkpimgapidrive %mklibname kpimgapidrive %{kpimgapidrive_major}

%package -n %{libkpimgapidrive}
Summary:	KDE Frameworks 5 Google services access shared library
Group:		System/Libraries

%description -n %{libkpimgapidrive}
KDE Frameworks 5 Google services access shared library.

%files -n %{libkpimgapidrive}
%{_kde5_libdir}/libKPim5GAPIDrive.so.%{kpimgapidrive_major}*

#----------------------------------------------------------------------------

%define kpimgapilatitude_major 5
%define libkpimgapilatitude %mklibname kpimgapilatitude %{kpimgapilatitude_major}

%package -n %{libkpimgapilatitude}
Summary:	KDE Frameworks 5 Google services access shared library
Group:		System/Libraries

%description -n %{libkpimgapilatitude}
KDE Frameworks 5 Google services access shared library.

%files -n %{libkpimgapilatitude}
%{_kde5_libdir}/libKPim5GAPILatitude.so.%{kpimgapilatitude_major}*

#----------------------------------------------------------------------------

%define kpimgapimaps_major 5
%define libkpimgapimaps %mklibname kpimgapimaps %{kpimgapimaps_major}

%package -n %{libkpimgapimaps}
Summary:	KDE Frameworks 5 Google services access shared library
Group:		System/Libraries

%description -n %{libkpimgapimaps}
KDE Frameworks 5 Google services access shared library.

%files -n %{libkpimgapimaps}
%{_kde5_libdir}/libKPim5GAPIMaps.so.%{kpimgapimaps_major}*

#----------------------------------------------------------------------------

%define kpimgapitasks_major 5
%define libkpimgapitasks %mklibname kpimgapitasks %{kpimgapitasks_major}

%package -n %{libkpimgapitasks}
Summary:	KDE Frameworks 5 Google services access shared library
Group:		System/Libraries

%description -n %{libkpimgapitasks}
KDE Frameworks 5 Google services access shared library.

%files -n %{libkpimgapitasks}
%{_kde5_libdir}/libKPim5GAPITasks.so.%{kpimgapitasks_major}*

#----------------------------------------------------------------------------

%define devname %mklibname kgapi -d

%package -n %{devname}
Summary:	Development files KDE Frameworks 5 Google services access module
Group:		Development/KDE and Qt
Requires:	%{libkpimgapiblogger} = %{EVRD}
Requires:	%{libkpimgapicalendar} = %{EVRD}
Requires:	%{libkpimgapipeople} = %{EVRD}
Requires:	%{libkpimgapicore} = %{EVRD}
Requires:	%{libkpimgapidrive} = %{EVRD}
Requires:	%{libkpimgapilatitude} = %{EVRD}
Requires:	%{libkpimgapimaps} = %{EVRD}
Requires:	%{libkpimgapitasks} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5gapi-devel = %{EVRD}
Provides:	kpimgapi-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_includedir}/KPim5/KGAPI
%{_kde5_libdir}/cmake/KPimGAPI
%{_kde5_libdir}/cmake/KPim5GAPI
%{_kde5_libdir}/libKPim5GAPIBlogger.so
%{_kde5_libdir}/libKPim5GAPICalendar.so
%{_kde5_libdir}/libKPim5GAPIPeople.so
%{_kde5_libdir}/libKPim5GAPICore.so
%{_kde5_libdir}/libKPim5GAPIDrive.so
%{_kde5_libdir}/libKPim5GAPILatitude.so
%{_kde5_libdir}/libKPim5GAPIMaps.so
%{_kde5_libdir}/libKPim5GAPITasks.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14154 |21mr|libkipi-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 KIPI module
Name:		libkipi
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		libkipi-soname.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	jpeg-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5kexiv2-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)

%description
KDE Frameworks 5 KIPI module. It is an interface to use kipi-plugins from
a KDE image management program like digiKam (http://www.digikam.org).

#------------------------------------------------

%package -n kipi-common
Summary:	KDE Frameworks 5 common files for KIPI module
Group:		System/Libraries

%description -n kipi-common
KDE Frameworks 5 common files for KIPI module.

%files -n kipi-common
%doc README TODO AUTHORS
%{_kde5_iconsdir}/*/*/*/kipi.*
%{_kde5_services}/kipiplugin_kxmlhelloworld.desktop
%{_kde5_servicetypes}/kipiplugin.desktop
%{_kde5_xmlguidir}/kipi/kipiplugin_kxmlhelloworldui.rc
%{_qt5_plugindir}/kipiplugin_kxmlhelloworld.so
%{_kde5_datadir}/qlogging-categories5/kipi.categories

#------------------------------------------------

%define kf5kipi_major 32
%define libkf5kipi %mklibname kf5kipi %{kf5kipi_major}

%package -n %{libkf5kipi}
Summary:	KDE Frameworks 5 KIPI shared library
Group:		System/Libraries
Requires:	kipi-common

%description -n %{libkf5kipi}
KDE Frameworks 5 KIPI shared library.

%files -n %{libkf5kipi}
%{_kde5_libdir}/libKF5Kipi.so.%{kf5kipi_major}*

#-----------------------------------------------------------------------------

%define devname %mklibname kf5kipi -d

%package -n %{devname}
Summary:	Development files for KDE Frameworks 5 KIPI module
Group:		Development/KDE and Qt
Requires:	%{libkf5kipi} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kipi-devel = %{EVRD}
Obsoletes:	libkipi-devel < 2:16.08.1

%description -n %{devname}
Development files for KDE Frameworks 5 KIPI module.

%files -n %{devname}
%{_kde5_includedir}/KF5/KIPI
%{_kde5_libdir}/cmake/KF5Kipi
%{_kde5_libdir}/libKF5Kipi.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14155 |21mr|libkleo-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CMake files check for Qt 6.x already, but it's not used yet,
# so let's not make it a hard dependency
%global __requires_exclude ^.*qt6.*$

Summary:	KDE Frameworks 5 key management module
Name:		libkleo
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gpgme++-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	qgpgme-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 key management module.

%files
%dir %{_kde5_datadir}/libkleopatra/
%{_kde5_datadir}/libkleopatra/*
%{_kde5_datadir}/qlogging-categories5/libkleo.categories
%{_kde5_datadir}/qlogging-categories5/libkleo.renamecategories
%{_kde5_sysconfdir}/xdg/libkleopatrarc

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 key management library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 key management library translations.

%files i18n -f libkleopatra.lang

#----------------------------------------------------------------------------

%define kf5libkleo_major 5
%define libkf5libkleo %mklibname kf5libkleo %{kf5libkleo_major}

%package -n %{libkf5libkleo}
Summary:	KDE Frameworks 5 key management shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5libkleo}
KDE Frameworks 5 key management shared library.

%files -n %{libkf5libkleo}
%{_kde5_libdir}/libKPim5Libkleo.so.%{kf5libkleo_major}*

#----------------------------------------------------------------------------

%define devkf5libkleo %mklibname kf5libkleo -d

%package -n %{devkf5libkleo}
Summary:	Development files for KDE Frameworks 5 key management module
Group:		Development/KDE and Qt
Requires:	%{libkf5libkleo} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5libkleo-devel = %{version}

%description -n %{devkf5libkleo}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5libkleo}
%{_kde5_includedir}/KPim5/Libkleo
%{_kde5_libdir}/cmake/KF5Libkleo
%{_kde5_libdir}/cmake/KPim5Libkleo
%{_kde5_libdir}/libKPim5Libkleo.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkleopatra --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14156 |21mr|libkmahjongg-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Library used for loading and rendering of Mahjongg tilesets
Name:		libkmahjongg
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
This package provides the library for loading and rendering of Mahjongg
tilesets and associated backgrounds, used by KMahjongg, Kajongg and KShisen.

#------------------------------------------------------------------------------

%package -n kmahjongglib
Summary:	Common files needed by KMahjongg, Kajongg and KShisen
Group:		Games/Other
BuildArch:	noarch

%description -n kmahjongglib
Common files needed by KMahjongg, Kajongg and KShisen.

%files -n kmahjongglib
%{_kde5_datadir}/kmahjongglib
%{_datadir}/apps/kmahjongglib
%{_kde5_datadir}/qlogging-categories5/libkmahjongg.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KMahjongg library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KMahjongg library translations.

%files i18n -f libkmahjongg5.lang

#-------------------------------------------------------------------------------

%define kf5kmahjongglib_major 5
%define libkf5kmahjongglib %mklibname kf5kmahjongglib %{kf5kmahjongglib_major}

%package -n %{libkf5kmahjongglib}
Summary:	Runtime library for KMahjongg
Group:		System/Libraries
Requires:	%{name}-i18n
Requires:	kmahjongglib

%description -n %{libkf5kmahjongglib}
Runtime library for KMahjongg.

%files -n %{libkf5kmahjongglib}
%{_kde5_libdir}/libKF5KMahjongglib.so.%{kf5kmahjongglib_major}*

#-------------------------------------------------------------------------------

%define devkf5kmahjongglib %mklibname kf5kmahjongglib -d

%package -n %{devkf5kmahjongglib}
Summary:	Headers files for KMahjongg library
Group:		Development/KDE and Qt
Requires:	%{libkf5kmahjongglib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5kmahjongglib-devel = %{version}
Obsoletes:	%{name}-devel < 1:16.08.2

%description -n %{devkf5kmahjongglib}
Headers files needed to build applications based on KMahjongg library.

%files -n %{devkf5kmahjongglib}
%{_kde5_includedir}/KF5/KMahjongg
%{_kde5_libdir}/cmake/KF5KMahjongglib
%{_kde5_libdir}/libKF5KMahjongglib.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/apps/kmahjongglib
cp -r %{buildroot}%{_kde5_datadir}/kmahjongglib/* %{buildroot}%{_datadir}/apps/kmahjongglib/

%find_lang libkmahjongg5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14157 |21mr|libkomparediff2-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname komparediff2_ %{major}
%define devname %mklibname komparediff2 -d

Summary:	KDE library to compare files and strings
Name:		libkomparediff2
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE library to compare files and strings.

%files
%{_kde5_datadir}/qlogging-categories5/libkomparediff2.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE compare library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE compare library translations.

%files i18n -f libkomparediff2.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Kompare shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
Kompare shared library.

%files -n %{libname}
%doc COPYING
%{_kde5_libdir}/libkomparediff2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libkomparediff2
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package includes the header files you will need to compile applications
based on libkomparediff2 library.

%files -n %{devname}
%doc COPYING
%{_kde5_includedir}/KompareDiff2
%{_kde5_libdir}/cmake/LibKompareDiff2/
%{_kde5_libdir}/libkomparediff2.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkomparediff2 --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14158 |21mr|libkqoauth-0.98-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kqoauth

%define major 0
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	C++/Qt OAuth 1.0 RFC 5849 library
Name:		libkqoauth
Version:	0.98
Release:	5
License:	LGPLv3+
Group:		System/Libraries
Url:		https://github.com/kypeli/kQOAuth
# https://github.com/kypeli/kQOAuth/archive/%%{version}.tar.gz
Source0:	kQOAuth-%{version}.tar.gz
Patch0:		libdir.patch
BuildRequires:	pkgconfig(QtNetwork) >= 4.7

%description
kQOAuth is a OAuth 1.0 library written for Qt in C++. The goals for the library
have been to provide easy integration to existing Qt applications utilizing Qt
signals describing the OAuth process, and to provide a convenient approach to
OAuth authentication. kQOAuth has support for retrieving the user authorization
from the service provider's website. kQOAuth will open the user's web browser
to the authorization page, give a local URL as the callback URL and setup a
HTTP server on this address to listen for the reply from the service and then
process it.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++/Qt OAuth 1.0 RFC 5849 library
Group:		System/Libraries

%description -n %{libname}
kQOAuth is a OAuth 1.0 library written for Qt in C++. The goals for the library
have been to provide easy integration to existing Qt applications utilizing Qt
signals describing the OAuth process, and to provide a convenient approach to
OAuth authentication. kQOAuth has support for retrieving the user authorization
from the service provider's website. kQOAuth will open the user's web browser
to the authorization page, give a local URL as the callback URL and setup a
HTTP server on this address to listen for the reply from the service and then
process it.

%files -n %{libname}
%doc COPYING CHANGELOG README*
%{_libdir}/lib%{oname}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc COPYING CHANGELOG README*
%{_includedir}/QtKOAuth/
%{_libdir}/%{name}.so
%{_libdir}/%{name}.prl
%{_libdir}/pkgconfig/kqoauth.pc
%{_prefix}/lib/qt4/mkspecs/features/kqoauth.prf

#----------------------------------------------------------------------------

%prep
%setup -qn kQOAuth-%{version}
%patch0 -p1

%build
%ifarch %{e2k}
export QMAKESPEC=linux-g++-lcc-native
%endif

%qmake_qt4 \
	PREFIX=%{_prefix} \
	KQOAUTH_LIBDIR=%{_libdir} \
	QMAKE_STRIP="" \
	QMAKE_CXXFLAGS+="%{optflags}"
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14159 |21mr|libksane-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 SANE module
Name:		libksane
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5sanecore-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	sane-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 SANE module, a KDE interface for SANE library to control
flat scanner.

%files
%{_kde5_iconsdir}/hicolor/*/actions/black-white.png
%{_kde5_iconsdir}/hicolor/*/actions/color.png
%{_kde5_iconsdir}/hicolor/*/actions/gray-scale.png

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE SANE library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE SANE library translations

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5sane_major 5
%define libkf5sane %mklibname kf5sane %{kf5sane_major}

%package -n %{libkf5sane}
Summary:	KDE Frameworks 5 SANE shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5sane}
KDE Frameworks 5 SANE shared library.

%files -n %{libkf5sane}
%{_kde5_libdir}/libKF5Sane.so.%{kf5sane_major}*
%{_kde5_libdir}/libKF5Sane.so.%{version}

#-----------------------------------------------------------------------------

%define devkf5sane %mklibname kf5sane -d

%package -n %{devkf5sane}
Summary:	Development files for KDE Frameworks 5 SANE module
Group:		Development/KDE and Qt
Requires:	%{libkf5sane} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5sane-devel = %{EVRD}
Obsoletes:	%{name}-devel < 2:16.08.1

%description -n %{devkf5sane}
Development files for KDE Frameworks 5 SANE module.

%files -n %{devkf5sane}
%{_kde5_includedir}/KF5/KSane
%{_kde5_libdir}/cmake/KF5Sane
%{_kde5_libdir}/libKF5Sane.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14160 |21mr|libksba-1.3.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname ksba %{major}
%define devname %mklibname ksba -d

Summary:	Library handling X.509 certificates and CMS data
Name:		libksba
Version:	1.3.5
Release:	10
License:	GPLv3+
Group:		System/Libraries
Url:		http://www.gnupg.org/
Source0:	ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2
Source1:	https://github.com/gpg/libksba/blob/master/tests/extra/dsig-with-id-aa-encrypKeyPref-1.cms
# P0-6 are needed to apply P7 (upstream backports)
Patch0:		libksba-1.3.5-bison.patch
Patch1:		libksba-1.3.5-add-missing-fd-support-to-ksba_reader_t.patch
Patch2:		libksba-1.3.5-generate-coverage-information.patch
Patch3:		libksba-1.3.5-enable-cms-parser-test.patch
Patch4:		libksba-1.3.5-fix-memory-leaks.patch
Patch5:		libksba-1.3.5-fix-compile-warnings.patch
Patch6:		libksba-1.3.5-fix-non-maintainer-build.patch
# From ALT Linux package
# https://packages.altlinux.org/ru/sisyphus/srpms/libksba/patches
# Note that this patch is automatically generated by girar and may be not full,
# real source code is at http://git.altlinux.org/gears/l/libksba.git
Patch7:		libksba-1.3.6-gost-1.0.0.patch
Patch8:		CVE-2022-3515.patch
Patch9:		CVE-2022-47629.patch

BuildRequires:	pkgconfig(gpg-error) >= 1.8

%description
KSBA is a library designed to build software based on the X.509
and CMS protocols.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library handling X.509 certificates and CMS data
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
KSBA is a library designed to build software based on the X.509
and CMS protocols.

%files -n %{libname}
%{_libdir}/libksba.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name} package
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
KSBA is a library designed to build software based on the X.509
and CMS protocols.

This package contains files needed to develop applications using
%{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog README THANKS TODO
%{_bindir}/ksba-config
%{_datadir}/aclocal/*
%{_includedir}/*.h
%{_infodir}/*.info*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1

mkdir -p tests/extra
install %{SOURCE1} tests/extra/

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14161 |21mr|libkscreen-kf5-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libkscreen

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 display configuration library
Name:		%{oname}-kf5
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-randr)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	qt5-wayland-client
BuildRequires:	qt5-wayland-compositor
BuildRequires:	%{_lib}qt5waylandclient-devel
BuildRequires:	%{_lib}qt5waylandcompositor-devel
Requires:	%{_lib}kf5screen8 = %{EVRD}
Requires:	%{_lib}kf5screendpms8 = %{EVRD}
Conflicts:	plasma6-libkscreen > 5.27.11-7

%description
KDE Frameworks 5 display configuration library. It provides access to current
configuration of connected displays and ways to change the configuration.

%files -f %{name}.lang
%{_kde5_bindir}/kscreen-doctor
%{_kde5_datadir}/qlogging-categories5/libkscreen.categories
%{_kde5_datadir}/zsh/site-functions/_kscreen-doctor
%{_kde5_libexecdir}/kf5/kscreen_backend_launcher
%{_kde5_plugindir}/kscreen/*.so
%{_datadir}/dbus-1/services/org.kde.kscreen.service
%{_prefix}/lib/systemd/user/plasma-kscreen.service

#----------------------------------------------------------------------------

%define kf5screen_major 8
%define libkf5screen %mklibname kf5screen %{kf5screen_major}

%package -n %{libkf5screen}
Summary:	KDE Frameworks 5 display configuration shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{_lib}kf5screendpms8 = %{EVRD}

%description -n %{libkf5screen}
KDE Frameworks 5 display configuration shared library.

%files -n %{libkf5screen}
%{_kde5_libdir}/libKF5Screen.so.%{kf5screen_major}
%{_kde5_libdir}/libKF5Screen.so.%{version}

#----------------------------------------------------------------------------

%define kf5screendpms_major 8
%define libkf5screendpms %mklibname kf5screendpms %{kf5screendpms_major}

%package -n %{libkf5screendpms}
Summary:	KDE Frameworks 5 display configuration shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{_lib}kf5screen8 = %{EVRD}

%description -n %{libkf5screendpms}
KDE Frameworks 5 display configuration shared library.

%files -n %{libkf5screendpms}
%{_kde5_libdir}/libKF5ScreenDpms.so.%{kf5screen_major}
%{_kde5_libdir}/libKF5ScreenDpms.so.%{version}

#----------------------------------------------------------------------------

%define devkf5screen %mklibname kf5screen -d

%package -n %{devkf5screen}
Summary:	Development files for KDE Frameworks 5 display configuration library
Group:		Development/KDE and Qt
Requires:	%{libkf5screen} = %{EVRD}
Requires:	%{libkf5screendpms} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devkf5screen}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5screen}
%{_kde5_includedir}/KF5/KScreen
%{_kde5_includedir}/KF5/kscreen_version.h
%{_kde5_libdir}/cmake/KF5Screen
%{_kde5_libdir}/pkgconfig/kscreen2.pc
%{_kde5_libdir}/libKF5Screen.so
%{_kde5_libdir}/libKF5ScreenDpms.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14162 |21mr|libksieve-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 Sieve module
Name:		libksieve
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 Sieve module.

%files -f %{name}.lang
%{_kde5_datadir}/sieve/scripts/copy/template.*
%{_kde5_datadir}/knsrcfiles/ksieve_script.knsrc
%{_kde5_datadir}/qlogging-categories5/libksieve.categories
%{_kde5_datadir}/qlogging-categories5/libksieve.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 Sieve library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 Sieve library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5kmanagesieve_major 5
%define libkf5kmanagesieve %mklibname kf5kmanagesieve %{kf5kmanagesieve_major}

%package -n %{libkf5kmanagesieve}
Summary:	KDE Frameworks 5 Sieve shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5kmanagesieve}
KDE Frameworks 5 Sieve shared library.

%files -n %{libkf5kmanagesieve}
%{_kde5_libdir}/libKPim5KManageSieve.so.%{kf5kmanagesieve_major}*

#----------------------------------------------------------------------------

%define kf5ksieve_major 5
%define libkf5ksieve %mklibname kf5ksieve %{kf5ksieve_major}

%package -n %{libkf5ksieve}
Summary:	KDE Frameworks 5 Sieve shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5ksieve}
KDE Frameworks 5 Sieve shared library.

%files -n %{libkf5ksieve}
%{_kde5_libdir}/libKPim5KSieve.so.%{kf5ksieve_major}*

#----------------------------------------------------------------------------

%define kf5ksieveui_major 5
%define libkf5ksieveui %mklibname kf5ksieveui %{kf5ksieveui_major}

%package -n %{libkf5ksieveui}
Summary:	KDE Frameworks 5 Sieve shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5ksieveui}
KDE Frameworks 5 Sieve shared library.

%files -n %{libkf5ksieveui}
%{_kde5_libdir}/libKPim5KSieveUi.so.%{kf5ksieveui_major}*

#----------------------------------------------------------------------------

%define devkf5libksieve %mklibname kf5libksieve -d

%package -n %{devkf5libksieve}
Summary:	Development files for KDE Frameworks 5 Sieve module
Group:		Development/KDE and Qt
Requires:	%{libkf5kmanagesieve} = %{EVRD}
Requires:	%{libkf5ksieve} = %{EVRD}
Requires:	%{libkf5ksieveui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5libksieve-devel = %{version}

%description -n %{devkf5libksieve}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5libksieve}
%{_kde5_includedir}/KPim5/KManageSieve
%{_kde5_includedir}/KPim5/KSieveUi
%{_kde5_includedir}/KF5/KSieve/libksieve_version.h
%{_kde5_libdir}/cmake/KPim5LibKSieve
%{_kde5_libdir}/libKPim5KManageSieve.so
%{_kde5_libdir}/libKPim5KSieve.so
%{_kde5_libdir}/libKPim5KSieveUi.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14163 |21mr|libksysguard-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without webkit

Summary:	Plasma 5 KDE System Guard library
Name:		libksysguard
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Source1:	libksysguard-5.27_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5auth-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiPlugin)
%if %{with webkit}
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
%endif
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libpcap)
BuildRequires:	pkgconfig(libnl-3.0)

%description
Plasma 5 KDE System Guard library.

%files
%{_kde5_datadir}/knsrcfiles/systemmonitor-faces.knsrc
%{_kde5_datadir}/knsrcfiles/systemmonitor-presets.knsrc
%{_kde5_datadir}/ksysguard/scripts/
%{_kde5_datadir}/ksysguard/sensorfaces/
%{_kde5_datadir}/qlogging-categories5/libksysguard.categories
%{_kde5_libexecdir}/kauth/ksysguardprocesslist_helper
%{_kde5_libexecdir}/ksysguard/ksgrd_network_helper
%{_datadir}/dbus-1/system.d/org.kde.ksysguard.processlisthelper.conf
%{_datadir}/dbus-1/system-services/org.kde.ksysguard.processlisthelper.service
%{_datadir}/dbus-1/interfaces/org.kde.ksystemstats.xml
%{_datadir}/polkit-1/actions/org.kde.ksysguard.processlisthelper.policy
%{_qt5_plugindir}/kpackage/packagestructure/sensorface_packagestructure.so
%{_qt5_plugindir}/ksysguard/process/ksysguard_plugin_network.so
%{_qt5_plugindir}/ksysguard/process/ksysguard_plugin_nvidia.so

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 KDE System Guard library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 KDE System Guard library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define qmlksysguard %mklibname ksysguard-qml

%package -n %{qmlksysguard}
Summary:	QML plugins for KDE System Guard libraries
Group:		System/Libraries
Provides:	ksysguard-qml = %{EVRD}

%description -n %{qmlksysguard}
QML plugins for KDE System Guard libraries.

%files -n %{qmlksysguard}
%dir %{_kde5_qmldir}/org/kde/ksysguard/
%dir %{_kde5_qmldir}/org/kde/ksysguard/faces/
%{_kde5_qmldir}/org/kde/ksysguard/faces/*
%dir %{_kde5_qmldir}/org/kde/ksysguard/formatter/
%{_kde5_qmldir}/org/kde/ksysguard/formatter/*
%dir %{_kde5_qmldir}/org/kde/ksysguard/process/
%{_kde5_qmldir}/org/kde/ksysguard/process/*
%dir %{_kde5_qmldir}/org/kde/ksysguard/sensors/
%{_kde5_qmldir}/org/kde/ksysguard/sensors/*

#----------------------------------------------------------------------------

%define ksgrd5_major 9
%define libksgrd5 %mklibname ksgrd5_ %{ksgrd5_major}

%package -n %{libksgrd5}
Summary:	Plasma 5 KDE System Guard shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libksgrd5}
Plasma 5 KDE System Guard shared library.

%files -n %{libksgrd5}
%{_kde5_libdir}/libksgrd.so.%{ksgrd5_major}
%{_kde5_libdir}/libksgrd.so.%{version}

#----------------------------------------------------------------------------

%define ksignalplotter5_major 9
%define libksignalplotter5 %mklibname ksignalplotter5_ %{ksignalplotter5_major}

%package -n %{libksignalplotter5}
Summary:	Plasma 5 KDE System Guard shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libksignalplotter5}
Plasma 5 KDE System Guard shared library.

%files -n %{libksignalplotter5}
%{_kde5_libdir}/libksignalplotter.so.%{ksignalplotter5_major}
%{_kde5_libdir}/libksignalplotter.so.%{version}

#----------------------------------------------------------------------------

%define lsofui5_major 9
%define liblsofui5 %mklibname lsofui5_ %{lsofui5_major}

%package -n %{liblsofui5}
Summary:	Plasma 5 KDE System Guard shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{liblsofui5}
Plasma 5 KDE System Guard shared library.

%files -n %{liblsofui5}
%{_kde5_libdir}/liblsofui.so.%{lsofui5_major}
%{_kde5_libdir}/liblsofui.so.%{version}

#----------------------------------------------------------------------------

%define processcore5_major 9
%define libprocesscore5 %mklibname processcore5_ %{processcore5_major}

%package -n %{libprocesscore5}
Summary:	Plasma 5 KDE System Guard shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libprocesscore5}
Plasma 5 KDE System Guard shared library.

%files -n %{libprocesscore5}
%{_kde5_libdir}/libprocesscore.so.%{processcore5_major}
%{_kde5_libdir}/libprocesscore.so.%{version}

#----------------------------------------------------------------------------

%define processui5_major 9
%define libprocessui5 %mklibname processui5_ %{processui5_major}

%package -n %{libprocessui5}
Summary:	Plasma 5 KDE System Guard shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlksysguard} = %{EVRD}

%description -n %{libprocessui5}
Plasma 5 KDE System Guard shared library.

%files -n %{libprocessui5}
%{_kde5_libdir}/libprocessui.so.%{processui5_major}
%{_kde5_libdir}/libprocessui.so.%{version}

#----------------------------------------------------------------------------

%define ksysguardformatter_major 1
%define libksysguardformatter %mklibname ksysguardformatter %{ksysguardformatter_major}

%package -n %{libksysguardformatter}
Summary:	Plasma 5 KDE System Guard shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlksysguard} = %{EVRD}

%description -n %{libksysguardformatter}
Plasma 5 KDE System Guard shared library.

%files -n %{libksysguardformatter}
%{_kde5_libdir}/libKSysGuardFormatter.so.%{ksysguardformatter_major}
%{_kde5_libdir}/libKSysGuardFormatter.so.%{version}

#----------------------------------------------------------------------------

%define ksysguardsensorfaces_major 1
%define libksysguardsensorfaces %mklibname ksysguardsensorfaces %{ksysguardsensorfaces_major}

%package -n %{libksysguardsensorfaces}
Summary:	Plasma 5 KDE System Guard shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlksysguard} = %{EVRD}

%description -n %{libksysguardsensorfaces}
Plasma 5 KDE System Guard shared library.

%files -n %{libksysguardsensorfaces}
%{_kde5_libdir}/libKSysGuardSensorFaces.so.%{ksysguardsensorfaces_major}
%{_kde5_libdir}/libKSysGuardSensorFaces.so.%{version}

#----------------------------------------------------------------------------

%define ksysguardsensors_major 1
%define libksysguardsensors %mklibname ksysguardsensors %{ksysguardsensors_major}

%package -n %{libksysguardsensors}
Summary:	Plasma 5 KDE System Guard shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlksysguard} = %{EVRD}

%description -n %{libksysguardsensors}
Plasma 5 KDE System Guard shared library.

%files -n %{libksysguardsensors}
%{_kde5_libdir}/libKSysGuardSensors.so.%{ksysguardsensors_major}
%{_kde5_libdir}/libKSysGuardSensors.so.%{version}

#----------------------------------------------------------------------------

%define ksysguardsystemstats_major 1
%define libksysguardsystemstats %mklibname ksysguardsystemstats %{ksysguardsystemstats_major}

%package -n %{libksysguardsystemstats}
Summary:	Plasma 5 KDE System Stats shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlksysguard} = %{EVRD}

%description -n %{libksysguardsystemstats}
Plasma 5 KDE System Guard shared library.

%files -n %{libksysguardsystemstats}
%{_kde5_libdir}/libKSysGuardSystemStats.so.%{ksysguardsystemstats_major}
%{_kde5_libdir}/libKSysGuardSystemStats.so.%{version}

#----------------------------------------------------------------------------

%define devksysguard5 %mklibname ksysguard5 -d

%package -n %{devksysguard5}
Summary:	Development files for Plasma 5 KDE System Guard library
Group:		Development/KDE and Qt
Requires:	%{libksgrd5} = %{EVRD}
Requires:	%{libksignalplotter5} = %{EVRD}
Requires:	%{liblsofui5} = %{EVRD}
Requires:	%{libprocesscore5} = %{EVRD}
Requires:	%{libprocessui5} = %{EVRD}
Requires:	%{libksysguardformatter} = %{EVRD}
Requires:	%{libksysguardsensorfaces} = %{EVRD}
Requires:	%{libksysguardsensors} = %{EVRD}
Requires:	%{libksysguardsystemstats} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5sysguard-devel = %{version}

%description -n %{devksysguard5}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devksysguard5}
%{_includedir}/ksysguard
%{_kde5_libdir}/cmake/KF5SysGuard
%{_kde5_libdir}/cmake/KSysGuard
%{_kde5_libdir}/libksgrd.so
%{_kde5_libdir}/libksignalplotter.so
%{_kde5_libdir}/liblsofui.so
%{_kde5_libdir}/libprocesscore.so
%{_kde5_libdir}/libprocessui.so
%{_kde5_libdir}/libKSysGuardFormatter.so
%{_kde5_libdir}/libKSysGuardSensorFaces.so
%{_kde5_libdir}/libKSysGuardSensors.so
%{_kde5_libdir}/libKSysGuardSystemStats.so

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-ksignalplotter5widgets
Summary:	Qt5 Designer plugin for ksignalplotter
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-ksignalplotter5widgets
Qt5 Designer plugin for ksignalplotter

%files -n qt5-designer-plugin-ksignalplotter5widgets
%{_qt5_plugindir}/designer/ksignalplotter5widgets.so

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-ksysguard5widgets
Summary:	Qt5 Designer plugin for ksysguard
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-ksysguard5widgets
Qt5 Designer plugin for ksysguard

%files -n qt5-designer-plugin-ksysguard5widgets
%{_qt5_plugindir}/designer/ksysguard5widgets.so

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-ksysguardlsof5widget
Summary:	Qt5 Designer plugin for ksysguardlsof
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-ksysguardlsof5widget
Qt5 Designer plugin for ksysguardlsof

%files -n qt5-designer-plugin-ksysguardlsof5widget
%{_qt5_plugindir}/designer/ksysguardlsof5widgets.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make_build

%install
%make_install -C build

%find_lang %{name} --all-name --with-qt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14164 |21mr|libktorrent-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname ktorrent %{major}
%define devname %mklibname ktorrent -d

# temp solution untill boost is updated
%global __requires_exclude ^cmake\\(Boost\\).*$

Summary:	BitTorrent program for KDE
Name:		libktorrent
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		http://ktorrent.org/
Source0:	http://download.kde.org/stable/ktorrent/5.1/%{name}-%{version}.tar.xz
Patch0:		del_LibGMP_MIN_VERSION.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gmp-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KTorrent is a BitTorrent program for KDE. It's main features are:
 o Downloads torrent files
 o Upload speed capping, seeing that most people can't upload
   infinite amounts of data.
 o Internet searching using  The Bittorrent website's search engine
 o UDP Trackers

#----------------------------------------------------------------------------

%package common
Summary:	Common files of libktorrent
Group:		System/Libraries

%description common
Common files for libktorrent, used by KTorrent, a BitTorrent program for KDE.

%files common -f %{name}5.lang
%doc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Ktorrent libbrary
Group:		System/Libraries
Requires:	%{name}-common >= %{EVRD}

%description -n %{libname}
KTorrent is a BitTorrent program for KDE. It's main features are:
 o Downloads torrent files
 o Upload speed capping, seeing that most people can't upload
   infinite amounts of data.
 o Internet searching using  The Bittorrent website's search engine
 o UDP Trackers

%files -n %{libname}
%doc
%{_kde5_libdir}/libKF5Torrent.so.%{major}*
%{_kde5_libdir}/libKF5Torrent.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Ktorrent plugin devel headers
Group:		Networking/File transfer
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	libktorrent-devel < 1.3.1-2

%description -n %{devname}
Ktorrent plugin devel headers.

%files -n %{devname}
%doc
%{_kde5_includedir}/*
%{_kde5_libdir}/cmake/KF5Torrent/*.cmake
%{_kde5_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14165 |21mr|libkvkontakte-5.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20160305

%define major 2
%define libname %mklibname kf5vkontakte %{major}
%define devname %mklibname kf5vkontakte -d

Summary:	Library for asynchronous interaction with vkontakte social network
Name:		libkvkontakte
Version:	5.0.0
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://projects.kde.org/projects/extragear/libs/libkvkontakte
Source0:	%{name}-%{git}.tar.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5webkit-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE C++ library for asynchronous interaction with vkontakte.ru social
network via its open API.

#----------------------------------------------------------------------------

%package i18n
Summary:	%{name} translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
%{name} translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
KDE C++ library for asynchronous interaction with vkontakte.ru social
network via its open API.

%files -n %{libname}
%{_kde5_libdir}/libKF5Vkontakte.so.%{major}
%{_kde5_libdir}/libKF5Vkontakte.so.4.70.0

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} developpement files
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	libkvkontakte-devel = %{EVRD}
Provides:	kf5vkontakte-devel = %{EVRD}
Obsoletes:	%{_lib}kvkontakte-devel < 5

%description -n %{devname}
This package contains libraries and headers files needed to develop
progams that need libkvkontakte.

%files -n %{devname}
%{_kde5_includedir}/KF5/Vkontakte
%{_kde5_includedir}/KF5/kf5vkontakte_version.h
%{_kde5_libdir}/cmake/KF5Vkontakte
%{_kde5_libdir}/libKF5Vkontakte.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{git}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14166 |21mr|liblangtag-0.6.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 1
%define libname %mklibname langtag %{major}
%define devname %mklibname langtag -d

Summary:	An interface library to access tags for identifying languages
Name:		liblangtag
Version:	0.6.3
Release:	2
License:	LGPLv3+
Group:		System/Internationalization
Url:		https://github.com/tagoh/liblangtag/
Source0:	https://github.com/downloads/tagoh/%{name}/%{name}-%{version}.tar.bz2
Patch2:		fix-linking.diff
BuildRequires:	gtk-doc
BuildRequires:	libtool
BuildRequires:	pkgconfig(libxml-2.0)

%description
An interface library to access tags for identifying languages.

Features:
* several subtag registry database supports:
  - language
  - extlang
  - script
  - region
  - variant
  - extension
  - grandfathered
  - redundant
* handling of the language tags
  - parser
  - matching
  - canonicalizing

#----------------------------------------------------------------------------

%package common
Summary:	Data files for %{name}
Group:		System/Internationalization
Conflicts:	%{_lib}langtag1 < 0.4.0-4
BuildArch:	noarch

%description common
Data files for %{name}.

%files common
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package modules
Summary:	Modules for %{name}
Group:		System/Internationalization
Conflicts:	%{_lib}langtag1 < 0.4.0-4

%description modules
Modules for %{name}.

%files modules
%{_libdir}/%{name}/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An interface library to access tags for identifying languages
Group:		System/Libraries
Requires:	%{name}-common >= %{EVRD}
Requires:	%{name}-modules >= %{EVRD}

%description -n %{libname}
An interface library to access tags for identifying languages.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc COPYING
%doc %{_datadir}/gtk-doc/html/%{name}
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--enable-shared \
	--disable-introspection

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14167 |21mr|liblastfm-1.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname lastfm %{major}
%define libnamefinger %mklibname lastfm_fingerprint %{major}
%define devname %mklibname lastfm -d

%define libname5 %mklibname lastfm5_ %{major}
%define libnamefinger5 %mklibname lastfm_fingerprint5_ %{major}
%define devname5 %mklibname lastfm-qt5 -d

Summary:	Liblastfm is a collection of libraries to help you integrate Last.fm services
Name:		liblastfm
Version:	1.1.0
Release:	3
License:	GPLv3+
Group:		System/Libraries
Url:		https://github.com/lastfm/liblastfm/
Source0:	https://github.com/lastfm/liblastfm/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(samplerate)

%description
Liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It is officially supported software developed
by Last.fm staff.

#---------------------------------------------------------------------

%package -n %{libname}
Summary:	Liblastfm shared library (Qt4 version)
Group:		System/Libraries

%description -n %{libname}
Liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It is officially supported software developed
by Last.fm staff.

%files -n %{libname}
%{_libdir}/liblastfm.so.%{major}*

#---------------------------------------------------------------------

%package -n %{libnamefinger}
Summary:	Liblastfm shared library (Qt4 version)
Group:		System/Libraries

%description -n %{libnamefinger}
Liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It is officially supported software developed
by Last.fm staff.

%files -n %{libnamefinger}
%{_libdir}/liblastfm_fingerprint.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	Liblastfm development files (Qt4 version)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamefinger} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Install this package if you want do compile applications i
using the libtag library.

%files -n %{devname}
%doc Qt4/COPYING
%{_libdir}/liblastfm.so
%{_libdir}/liblastfm_fingerprint.so
%{_includedir}/lastfm/

#---------------------------------------------------------------------

%package -n %{libname5}
Summary:	Liblastfm shared library (Qt5 version)
Group:		System/Libraries

%description -n %{libname5}
Liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It is officially supported software developed
by Last.fm staff.

%files -n %{libname5}
%{_libdir}/liblastfm5.so.%{major}*

#---------------------------------------------------------------------

%package -n %{libnamefinger5}
Summary:	Liblastfm shared library (Qt5 version)
Group:		System/Libraries

%description -n %{libnamefinger5}
Liblastfm is a collection of libraries to help you integrate Last.fm services
into your rich desktop software. It is officially supported software developed
by Last.fm staff.

%files -n %{libnamefinger5}
%{_libdir}/liblastfm_fingerprint5.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname5}
Summary:	Liblastfm development files (Qt5 version)
Group:		Development/C
Requires:	%{libname5} = %{EVRD}
Requires:	%{libnamefinger5} = %{EVRD}
Provides:	%{name}-qt5-devel = %{EVRD}

%description -n %{devname5}
Install this package if you want do compile applications i
using the libtag library.

%files -n %{devname5}
%doc Qt5/COPYING
%{_libdir}/liblastfm5.so
%{_libdir}/liblastfm_fingerprint5.so
%{_includedir}/lastfm5/

#---------------------------------------------------------------------

%prep
%autosetup -p1

mkdir Qt4
mv `ls -1 |grep -v Qt4` Qt4
cp -a Qt4 Qt5

%build
export CXXFLAGS="-std=c++14 %{optflags}"
pushd Qt4
%cmake_qt4 \
	-DBUILD_FINGERPRINT=ON \
	-DBUILD_WITH_QT4=ON
%make
popd

pushd Qt5
%cmake_qt5 \
	-DBUILD_FINGERPRINT=ON \
	-DBUILD_WITH_QT4=OFF
%make
popd

%install
%makeinstall_std -C Qt4/build
%makeinstall_std -C Qt5/build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14168 |21mr|liblayout-0.2.10-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CSS based layouting framework
Name:		liblayout
Version:	0.2.10
Release:	10
License:	LGPLv2+
Group:		System/Libraries 
Url:		http://reporting.pentaho.org/
Source0:	http://downloads.sourceforge.net/jfreereport/liblayout-%{version}.zip
BuildArch:	noarch
BuildRequires:	ant
BuildRequires:	flute
BuildRequires:	java-devel >= 0:1.6.0 
BuildRequires:	java-rpmbuild
BuildRequires:	javapackages-tools
BuildRequires:	libbase >= 1.1.3
BuildRequires:	libfonts
BuildRequires:	libloader
BuildRequires:	librepository
BuildRequires:	pentaho-libxml
BuildRequires:	sac
BuildRequires:	xml-commons-apis
Requires:	flute
Requires:	javapackages-filesystem
Requires:	libbase >= 1.0.0
Requires:	libloader >= 1.1.3
Requires:	librepository >= 1.1.3
Requires:	libfonts >= 1.1.3
Requires:	pentaho-libxml
Requires:	sac
Requires:	xml-commons-apis
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
LibLayout is a layouting framework. It is based on the Cascading StyleSheets
standard. The layouting expects to receive its content as a DOM structure
(although it does not rely on the W3C-DOM API).

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java 
Requires:	%{name} = %{version}-%{release}
Requires:	javapackages-filesystem

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib flute libloader librepository libxml libfonts \
    sac jaxp libbase commons-logging-api

%build
ant jar javadoc
for file in README.txt licence-LGPL.txt ChangeLog.txt; do
    tr -d '\r' < $file > $file.new
    mv $file.new $file
done

%install
mkdir -p %{buildroot}%{_javadir}
cp -p build/lib/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp build/api %{buildroot}%{_javadocdir}/%{name}

%files
%doc licence-LGPL.txt README.txt ChangeLog.txt
%{_javadir}/*.jar

%files javadoc
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14169 |21mr|libldac-2.0.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global archivename ldacBT

%define major 2
%define libname %mklibname ldac %{major}
%define devname %mklibname ldac -d

Name:		libldac
Version:	2.0.2.3
Release:	1
Summary:	A lossy audio codec for Bluetooth connections
Group:		System/Libraries
License:	ASL 2.0
URL:		https://github.com/EHfive/ldacBT
Source0:	%{url}/releases/download/v%{version}/%{archivename}-%{version}.tar.gz

BuildRequires:	cmake

%description
LDAC is an audio coding technology developed by Sony.
It enables the transmission of High-Resolution Audio content,
even over a Bluetooth connection.

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	A lossy audio codec for Bluetooth connections
Group:		System/Libraries

%description -n %{libname}
LDAC is an audio coding technology developed by Sony.
It enables the transmission of High-Resolution Audio content,
even over a Bluetooth connection.

%files -n %{libname}
%license LICENSE
%{_libdir}/libldacBT_abr.so.%{major}
%{_libdir}/libldacBT_abr.so.%{major}.*
%{_libdir}/libldacBT_enc.so.%{major}
%{_libdir}/libldacBT_enc.so.%{major}.*

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%dir %{_includedir}/ldac
%{_includedir}/ldac/ldacBT_abr.h
%{_includedir}/ldac/ldacBT.h
%{_libdir}/pkgconfig/ldacBT-abr.pc
%{_libdir}/pkgconfig/ldacBT-enc.pc
%{_libdir}/libldacBT_abr.so
%{_libdir}/libldacBT_enc.so

#----------------------------------------------------------------------

%prep
%autosetup -n %{archivename}

%build
%cmake \
    -DLDAC_SOFT_FLOAT=OFF \
    -DINSTALL_LIBDIR=%{_libdir}

%make_build

%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14170 |21mr|libldm-0.2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global api 1.0
%global major 0
%define libname %mklibname ldm %{api} %{major}
%define devname %mklibname -d ldm %{api}

Name:           libldm
Version:        0.2.4
Release:        %mkrel 3
Summary:        A tool to manage Windows dynamic disks
Group:		System/Libraries
License:        LGPLv3+ and GPLv3+
URL:            https://github.com/mdbooth/libldm
Source0:        https://github.com/mdbooth/libldm/archive/%{name}-%{version}.tar.gz

BuildRequires:  glib2-devel >= 2.26.0
BuildRequires:  pkgconfig(json-glib-1.0) >= 0.14.0
BuildRequires:  pkgconfig(devmapper) >= 1.0
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(uuid)
BuildRequires:  readline-devel
BuildRequires:  gtk-doc

%description
libldm is a library for managing Microsoft Windows dynamic disks, which use
Microsoft's LDM metadata. It can inspect them, and also create and remove
device-mapper block devices which can be mounted. It includes ldmtool, which
exposes this functionality as a command-line tool.

libldm is released under LGPLv3+. ldmtool is released under GPLv3+.

%package        -n %libname
Summary:        A tool to manage Windows dynamic disks
Group:          System/Libraries
Obsoletes:      %{_lib}ldm0 < 0.2.3-6

%description    -n %libname
libldm is a library for managing Microsoft Windows dynamic disks, which use
Microsoft's LDM metadata. It can inspect them, and also create and remove
device-mapper block devices which can be mounted.

%package        -n %devname
Summary:        Development files for %{name}
Group:		Development/C
Requires:       %{libname}%{?_isa} = %{version}-%{release}
Provides:       libldm-devel = %{version}-%{release}
Provides:       libldm%{api}-devel = %{version}-%{release}
Obsoletes:      %{_lib}ldm-devel < 0.2.3-6

%description    -n %devname
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%autopatch -p1
sed -i -e 's/-Werror //' src/Makefile.*
gtkdocize
autoreconf -i

%build
# fix build on aarch64
autoreconf -vfi

%configure --disable-static --enable-gtk-doc
%make_build V=1

%install
%make_install

# we don't want these
find %{buildroot} -name "*.la" -delete

%files
%doc COPYING.lgpl COPYING.gpl
%{_bindir}/ldmtool
%{_mandir}/man1/ldmtool.1*

%files -n %libname
%doc COPYING.lgpl COPYING.gpl
%{_libdir}/libldm-%{api}.so.%{major}{,.*}

%files -n %devname
%doc %{_datadir}/gtk-doc/*
%{_includedir}/*
%{_libdir}/libldm-%{api}.so
%{_libdir}/pkgconfig/ldm-%{api}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14171 |21mr|liblinphone-5.1.57-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname linphone

%define linphone_major 10
%define liblinphone %mklibname %{oname} %{linphone_major}
%define liblinphonecxx %mklibname %{oname}++ %{linphone_major}
%define devname %mklibname -d %{oname}
%define devcxxname %mklibname -d %{oname}++

Summary:	Voice over IP Application
Name:		liblinphone
Version:	5.1.57
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://www.linphone.org/
Source0:	https://github.com/BelledonneCommunications/linphone/archive/%{version}.tar.gz
Patch10:	DEBIAN-desktop-file-keywords.patch
Patch11:	DEBIAN-install-pkgconfig.patch
Patch12:	MAGEIA-i18n-desktop.patch
Patch13:	cmake-config-location.patch
Patch14:	linphone-4.4.24-fix_xds_version.patch
Patch15:	liblinphone-fix-build.patch
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	python3egg(pystache)
BuildRequires:	python3egg(six)
BuildRequires:	lime-devel
BuildRequires:	soci-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(belcard)
BuildRequires:	pkgconfig(belle-sip)
BuildRequires:	lime-devel
BuildRequires:	pkgconfig(mediastreamer)
BuildRequires:	pkgconfig(xerces-c)

%description
Liblinphone is a high-level SIP library integrating all calling 
and instant messaging features into an unified easy-to-use API. 
It is the cross-platform VoIP library on which the Linphone[1] 
application is based on, and that anyone can use to add audio and 
video calls or instant messaging capabilities to an application.

%files
%{_datadir}/sounds/%{oname}/
%{_datadir}/linphone/
%{_datadir}/belr/grammars/cpim_grammar
%{_datadir}/belr/grammars/identity_grammar
%{_datadir}/belr/grammars/ics_grammar

#--------------------------------------------------------------------

%package -n %{liblinphone}
Summary:	Primary library for %{oname}
Group:		System/Libraries

%description -n %{liblinphone}
Primary library for %{oname}.

%files -n %{liblinphone}
%{_libdir}/liblinphone.so.%{linphone_major}*

#--------------------------------------------------------------------

%package -n %{liblinphonecxx}
Summary:	C++ wrapper library for %{oname}
Group:		System/Libraries

%description -n %{liblinphonecxx}
C++ wrapper library for %{oname}.

%files -n %{liblinphonecxx}
%{_libdir}/liblinphone++.so.%{linphone_major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries from %{name}
Group:		Development/C
Requires:	%{liblinphone} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc README.md CHANGELOG.md NEWS
%{_includedir}/linphone/
%{_libdir}/liblinphone.so
%{_libdir}/pkgconfig/linphone.pc
%{_libdir}/cmake/Linphone/

#--------------------------------------------------------------------

%package -n %{devcxxname}
Summary:	Header files and libraries from %{name}
Group:		Development/C
Requires:	%{liblinphone} = %{EVRD}
Requires:	%{liblinphonecxx} = %{EVRD}

%description -n %{devcxxname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devcxxname}
%doc README.md CHANGELOG.md NEWS
%{_includedir}/linphone++/
%{_libdir}/liblinphone++.so
%{_libdir}/cmake/LinphoneCxx/

#--------------------------------------------------------------------

%package tester
Summary:	Linphone Tester
Group:		Communications
Provides:	linphone_tester = %{EVRD}

%description tester
Linphone Tester

%files tester
%{_bindir}/linphone_tester
%{_bindir}/liblinphone_tester
%{_bindir}/liblinphone-tester
%{_bindir}/linphone-tester
%{_datadir}/liblinphone_tester/

#--------------------------------------------------------------------

%package tools
Summary:	Linphone CLI tools
Group:		Communications
Obsoletes:	linphone < 3.12

%description tools
Linphone CLI tools

%files tools
%{_bindir}/groupchat_benchmark
%{_bindir}/linphone-daemon
%{_bindir}/linphone-daemon-pipetest
%{_bindir}/linphonec
%{_bindir}/linphonecsh
%{_bindir}/lp-*
%{_bindir}/lpc2xml_test
%{_bindir}/xml2lpc_test

#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
find '(' -name '*.c' -o -name '*.h' ')' -print0 | xargs -0 sed -i -e 's,\r$,,'
%apply_patches

%build
%cmake \
	-DENABLE_VIDEO=ON \
	-DENABLE_STRICT:BOOL=OFF \
	-DENABLE_SHARED:BOOL=ON \
	-DENABLE_STATIC:BOOL=OFF \
	-DENABLE_ADVANCED_IM=ON \
	-DENABLE_DOC=OFF \
	-DENABLE_LDAP=OFF \
	-DENABLE_LIME=ON \
	-DENABLE_FLEXIAPI=OFF \
	-DENABLE_LIME_X3DH=ON \
	-DCMAKE_SKIP_RPATH=ON \
	-DENABLE_UPDATE_CHECK=OFF \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

# _ and lib are not common in binaries names
ln -sr %{buildroot}%{_bindir}/liblinphone_tester %{buildroot}%{_bindir}/liblinphone-tester
ln -sr %{buildroot}%{_bindir}/liblinphone_tester %{buildroot}%{_bindir}/linphone-tester
ln -sr %{buildroot}%{_bindir}/liblinphone_tester %{buildroot}%{_bindir}/linphone_tester


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14172 |21mr|liblo-0.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 7
%define	libname %mklibname lo %{major}
%define	devname %mklibname lo -d

Summary:	Open Sound Control protocol
Name:		liblo
Version:	0.31
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://liblo.sourceforge.net/
Source0:	http://downloads.sourceforge.net/liblo/%{name}-%{version}.tar.gz
BuildRequires:	doxygen

%description
LibLO is an implementation of the Open Sound Control protocol for POSIX
systems, started by Steve Harris.

%files
%doc COPYING
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc AUTHORS NEWS ChangeLog COPYING README
%{_includedir}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q


%build
./autogen.sh
%configure \
	--disable-static 
# do not use ipv6 atm since it causes slowness when calling dssi objects
#	--enable-ipv6

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14173 |21mr|libloader-1.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		libloader
Version:	1.1.3
Release:	2
Summary:	Resource Loading Framework
Group:		Development/Java 
License:	LGPLv2+
Url:		http://reporting.pentaho.org/
Source0:	http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.zip
Patch0:		libloader-1.1.2.build.patch
Patch1:		libloader-1.1.2.java11.patch
BuildArch:	noarch

BuildRequires:	ant
BuildRequires:	ant-contrib
BuildRequires:	java-devel
BuildRequires:	javapackages-tools
BuildRequires:	libbase >= 1.1.3
Requires:	javapackages-filesystem
Requires:	libbase >= 1.1.3

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
LibLoader is a general purpose resource loading framework. It has been
designed to allow to load resources from any physical location and to
allow the processing of that content data in a generic way 
totally transparent to the user of that library.

%files
%doc licence-LGPL.txt README.txt ChangeLog.txt
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar

#-----------------------------------------------------------------------
%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java
Requires:	%{name} = %{EVRD}
Requires:	javapackages-filesystem

%description javadoc
Javadoc for %{name}.

%files javadoc
%{_javadocdir}/%{name}

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -c
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib libbase commons-logging-api
cd lib
ln -s %{_javadir}/ant ant-contrib

%build
ant jar javadoc
for file in README.txt licence-LGPL.txt ChangeLog.txt; do
    tr -d '\r' < $file > $file.new
    mv $file.new $file
done

%install
mkdir -p %{buildroot}%{_javadir}
cp -p ./dist/%{name}-%{version}.jar %{buildroot}%{_javadir}
pushd %{buildroot}%{_javadir}
ln -s %{name}-%{version}.jar %{name}.jar
popd

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp bin/javadoc/docs/api %{buildroot}%{_javadocdir}/%{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14174 |21mr|liblogging-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define stdflog_major 0
%define rfc3195_major 0
%define stdflog_libname %mklibname logging-stdlog %{stdflog_major}
%define stdflog_devname %mklibname logging-stdlog -d
%define rfc3195_libname %mklibname logging-rfc3195 %{rfc3195_major}
%define rfc3195_devname %mklibname logging-rfc3195 -d

Summary:	An easy to use logging library
Name:		liblogging
Version:	1.0.6
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.liblogging.org/
Source0:	http://download.rsyslog.com/liblogging/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libsystemd)

%description
Liblogging is an easy to use logging library.

It contains the Libstdlog component used for standard logging
(syslog replacement) purposes via multiple channels.

#----------------------------------------------------------------------------

%package -n %{stdflog_libname}
Summary:	An easy to use logging library
Group:		System/Libraries

%description -n %{stdflog_libname}
Libstdlog component of Liblogging library used for standard logging
(syslog replacement) purposes via multiple channels.

%files -n %{stdflog_libname}
%doc COPYING
%{_libdir}/liblogging-stdlog.so.%{stdflog_major}*
%{_bindir}/stdlogctl
%{_mandir}/man1/stdlogctl*

#----------------------------------------------------------------------------

%package -n %{stdflog_devname}
Summary:	Development files for LibLogging stdlog library
Group:		Development/C
Requires:	%{stdflog_libname} = %{EVRD}

%description -n %{stdflog_devname}
Header files and libraries necessary for developing programs which
use liblogging-stdflog library.

%files -n %{stdflog_devname}
%doc ChangeLog COPYING README
%{_libdir}/liblogging-stdlog.so
%{_includedir}/%{name}
%{_libdir}/pkgconfig/liblogging-stdlog.pc
%{_mandir}/man3/stdlog*

#----------------------------------------------------------------------------

%package -n %{rfc3195_libname}
Summary:	An easy to use logging library - rfc3195 component
Group:		System/Libraries

%description -n %{rfc3195_libname}
Rfc3195 library from Liblogging.

%files -n %{rfc3195_libname}
%{_libdir}/liblogging-rfc3195.so.%{rfc3195_major}*

#----------------------------------------------------------------------------

%package -n %{rfc3195_devname}
Summary:	Development files for LibLogging stdlog library
Group:		Development/C
Requires:	%{rfc3195_libname} = %{EVRD}

%description -n %{rfc3195_devname}
Header files and libraries necessary for developing programs which
use liblogging-rfc3195 library.

%files -n %{rfc3195_devname}
%doc rfc3195/doc/html
%{_libdir}/liblogging-rfc3195.so
%{_libdir}/pkgconfig/liblogging-rfc3195.pc

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i 's/\r/\n/g' rfc3195/src/oscallsUnix.c

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-rfc3195 \
	--enable-journal

%make V=1

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14175 |21mr|liblqr-0.4.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 1
%define libname %mklibname lqr %{api} %{major}
%define devname %mklibname lqr %{api} -d

Summary:	LiquidRescale seam-carving library
Name:		liblqr
Version:	0.4.2
Release:	3
License:	LGPLv3+ and GPLv3+
Group:		System/Libraries
Url:		http://liblqr.wikidot.com/
Source0:	https://github.com/carlobaldassi/liblqr/archive/v%{version}.tar.gz?/liblqr-%{version}.tar.gz
Patch0:		liblqr-docbook_fixes.diff
Patch1:		fix_configure.ac_for_dh_autoreconf.patch
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd-xml
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(glib-2.0)

%description
The Liquid Rescale (lqr) library provides a C/C++ API for performing
non-uniform resizing of images by the seam-carving technique.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LiquidRescale seam-carving library
Group:		System/Libraries
Conflicts:	%{_lib}lqr0 < 0.4.1-11
Obsoletes:	%{_lib}lqr0 < 0.4.1-11

%description -n %{libname}
The Liquid Rescale (lqr) library provides a C/C++ API for performing
non-uniform resizing of images by the seam-carving technique.

%files -n %{libname}
%doc COPYING
%{_libdir}/liblqr-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the LiquidRescale library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lqr-devel = %{EVRD}
Conflicts:	%{_lib}lqr-devel < 0.4.1-11
Obsoletes:	%{_lib}lqr-devel < 0.4.1-11

%description -n %{devname}
The Liquid Rescale (lqr) library provides a C/C++ API for performing
non-uniform resizing of images by the seam-carving technique.

This package contains the static LiquidRescale library and its header files.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog README
%doc docs/html/* examples
%dir %{_includedir}/lqr-%{api}
%dir %{_includedir}/lqr-%{api}/lqr
%{_includedir}/lqr-%{api}/*.h
%{_includedir}/lqr-%{api}/lqr/*.h
%{_libdir}/liblqr-%{api}.so
%{_libdir}/pkgconfig/lqr-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
#autoreconf -if
%configure \
	--disable-static

%make

# make the html docs
pushd docs
make
popd

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14176 |21mr|liblrdf-0.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	LRDF
%define	real_name	lrdf
%define	major	2
%define	libname	%mklibname %{real_name} %{major}

Name:		liblrdf
Summary:	Library for handling RDF descriptions of audio plugins
Version:	0.6.1
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/swh/LRDF
Source0:	https://github.com/swh/LRDF/archive/%{oname}-%{version}.tar.gz
Patch0:		liblrdf-0.6.1-fix-library-version.patch
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(raptor2) >= 2.0.0

%description
This is a library for handling RDF (http://www.w3.org/RDF/) descriptions of
LADSPA (and potentially other format) plugins. It allows grouping of plugins
into trees for user slection and finer description of plugins and ports than
the .so format allows (for example to indicatate textual equivalents of
integer port values). It also provides named and described defaults and
presets, metadata and general semantic goodness.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This is a library for handling RDF (http://www.w3.org/RDF/) descriptions of
LADSPA (and potentially other format) plugins. It allows grouping of plugins
into trees for user slection and finer description of plugins and ports than
the .so format allows (for example to indicatate textual equivalents of
integer port values). It also provides named and described defaults and
presets, metadata and general semantic goodness.
This packages contains the main library.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{libname}-common
Summary:	File used by %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}-common
This is a library for handling RDF (http://www.w3.org/RDF/) descriptions of
LADSPA (and potentially other format) plugins.
This packages contains various files required by %{name}.

%files -n %{libname}-common
%doc COPYING
%{_datadir}/ladspa/rdf/ladspa.rdfs

#-----------------------------------------------------------------------------

%package -n %{libname}-devel
Summary:	Files for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{real_name}-devel = %{EVRD}

%description -n %{libname}-devel
This is a library for handling RDF (http://www.w3.org/RDF/) descriptions of
LADSPA (and potentially other format) plugins.
This package contains the headers and the library files that programmers will
need to develop applications which will use %{name}.

%files -n %{libname}-devel
%doc AUTHORS ChangeLog COPYING README
%{_includedir}/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{real_name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1


%build
libtoolize --copy --force --install --automake
aclocal
autoheader
automake --add-missing --copy
autoconf

%configure --disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14177 |21mr|libluv-1.42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         major 1
%define         devel %mklibname %{name} %{major} -d

%define         dlver %{version}-0
%define         ver %(echo %{dlver} | tr - .)

%define		libname %mklibname luv %{major}
%define		devname %mklibname -d luv
%define		lualibname %mklibname -d luv-lua

Name:           libluv
Version:        1.42.0
Release:        2
Summary:        Bare libuv bindings for lua
Group:          Development/Other
License:        ASL 2.0
URL:            https://github.com/luvit/luv
Source0:        https://github.com/luvit/luv/releases/download/%{dlver}/luv-%{dlver}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  ninja
BuildRequires:  pkgconfig(libuv)

BuildRequires:  pkgconfig(lua) >= 5.3
BuildRequires:  lua5.3
Requires:       lua5.3

BuildRequires:	pkgconfig(luajit)
BuildRequires:  luajit
Requires:	luajit

%description
libuv bindings for luajit and lua 5.1/5.2/5.3.

This library makes libuv available to lua scripts. It was made for the luvit
project but should usable from nearly any lua project.

%package -n %{libname}
Summary:	Version of libluv built for luajit
Provides:	luajit-luv = %{version}-%{release}
%rename %{name}

%description -n %{libname}
Version of libluv built for luajit

%package -n %{devname}
Summary:        Bare libuv bindings for lua
Group:          Development/Other
Requires:       luajit-luv = %{version}-%{release}
%rename %{name}-devel

%description -n %{devname}
Development package for LUV.

libuv bindings for luajit and lua 5.1/5.2/5.3.

This library makes libuv available to lua scripts. It was made for the luvit
project but should usable from nearly any lua project.

%prep
%autosetup -n luv-%{dlver}


%build
LDFLAGS="${LDFLAGS:- -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id -Wl,--enable-new-dtags}" ; export LDFLAGS
%cmake -GNinja \
    -DBUILD_MODULE=OFF \
    -DBUILD_SHARED_LIBS=ON \
    -DWITH_LUA_ENGINE=LuaJIT \
    -DWITH_SHARED_LIBUV=ON \
    -DLUA_BUILD_TYPE=System \
    -DINSTALL_LIB_DIR=%{_libdir} \
    -DSHAREDLIBS_INSTALL_LIB_DIR=%{_libdir} \
    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
    ${LDFLAGS} \
    ..
cd ..
%ninja_build -C build

%install
%ninja_install -C build

%files -n %{libname}
%{_libdir}/libluv.so.%{major}{,.*}

%files -n %{devname}
%license LICENSE.txt
%doc README.md docs.md
%{_includedir}/luv
%{_libdir}/libluv.so
%{_libdir}/pkgconfig/libluv.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14178 |21mr|liblxqt-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname lxqt %{major}
%define devname %mklibname lxqt -d

Summary:	Libraries for the LXQt desktop
Name:		liblxqt
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/lxqt/liblxqt
Source0:	https://github.com/lxqt/liblxqt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	lxqt.macros
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	kwindowsystem-devel
BuildRequires:	qt5-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(polkit-qt5-1)
BuildRequires:	pkgconfig(Qt5Xdg)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(xscrnsaver)
Obsoletes:	liblxqt <= 0.17.0

%description
Libraries for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license COPYING
%{_bindir}/lxqt-backlight_backend
%{_datadir}/lxqt/power.conf
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_datadir}/polkit-1/actions/org.lxqt.backlight.pkexec.policy

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for the LXQt desktop
Group:		System/Libraries
Requires:	%{name}%{_isa} = %{EVRD}
Obsoletes:	%{mklibname lxqt 0} <= 0.17.0

%description -n %{libname}
Libraries for the LXQt desktop

%files -n %{libname}
%doc README.md
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	lxqt-build-tools

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%doc README.md
%{_includedir}/*
%{_libdir}/liblxqt.so
%{_libdir}/pkgconfig/*
%{_datadir}/cmake/lxqt
%{_rpmmacrodir}/*lxqt*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_qt5 -DLXQT_ETC_XDG_DIR="%{_sysconfdir}/xdg"
%make_build

%install
%make_install -C build

# RPM macros
%install_macro lxqt %{SOURCE1}
sed -i -e "s|@@CMAKE_VERSION@@|%{version}|" %{buildroot}%{_rpmmacrodir}/macros.lxqt
touch -r %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.lxqt

# Drop double slash from pc file
sed -i 's!//usr!/usr!' %{buildroot}%{_libdir}/pkgconfig/*pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14179 |21mr|liblzo-2.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lzo
%define major 2
%define apiver 2
%define libname %mklibname lzo %{apiver} %{major}
%define devname %mklibname lzo -d

Summary:	Data compression library with very fast (de-)compression
Name:		liblzo
Version:	2.10
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.oberhumer.com/opensource/lzo/
Source0:	http://www.oberhumer.com/opensource/lzo/download/%{oname}-%{version}.tar.gz

%description
LZO is a portable lossless data compression library written in ANSI C.
It offers pretty fast compression and *very* fast decompression.
Decompression requires no memory. In addition there are slower
compression levels achieving a quite competitive compression ratio while
still decompressing at this very high speed.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Data compression library with very fast (de-)compression
Group:		System/Libraries

%description -n %{libname}
LZO is a portable lossless data compression library written in ANSI C.
It offers pretty fast compression and *very* fast decompression.
Decompression requires no memory. In addition there are slower
compression levels achieving a quite competitive compression ratio while
still decompressing at this very high speed.

%files -n %{libname}
%doc AUTHORS NEWS README THANKS doc/LZO.TXT doc/LZO.FAQ
%{_libdir}/liblzo%{apiver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers files of liblzo library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}2-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
LZO is a portable lossless data compression library written in ANSI C.
It offers pretty fast compression and *very* fast decompression.
Decompression requires no memory. In addition there are slower
compression levels achieving a quite competitive compression ratio while
still decompressing at this very high speed.

%files -n %{devname}
%doc doc/LZOAPI.TXT doc/LZOTEST.TXT
%{_bindir}/lzotest
%{_libdir}/*.a
%{_libdir}/pkgconfig/lzo2.pc
%{_libdir}/*.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%config_update
export CONFIGURE_TOP=`pwd`

mkdir -p shared
cd shared
%configure --enable-shared --enable-static
%make
cd ..

%install
%makeinstall_std -C shared
install -m755 shared/lzotest/lzotest -D %{buildroot}%{_bindir}/lzotest
rm -rf %{buildroot}%{_datadir}/doc/lzo

%check
cd shared
make check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14180 |21mr|libmanette-0.2.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api %(echo %{version}|cut -d. -f1,2)

%define major 0
%define libname %mklibname manette %{api} %{major}
%define girname %mklibname manette-gir %{api}
%define devname %mklibname manette %{api} -d

Summary:	Game controller library
Name:		libmanette
Version:	0.2.6
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libmanette
Source0:	https://download.gnome.org/sources/libmanette/%{api}/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libevdev)

%description
libmanette is a small GObject library giving you simple access to game
controllers.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Game controller library
Group:		System/Libraries

%description -n %{libname}
libmanette is a small GObject library giving you simple access to game
controllers.

%files -n %{libname}
%doc COPYING NEWS README.md
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc COPYING
%{_libdir}/girepository-1.0/Manette-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc COPYING
%{_bindir}/manette-test
%{_includedir}/%{name}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/manette-%{api}.pc
%{_datadir}/gir-1.0/Manette-%{api}.gir
%{_datadir}/vala/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14181 |21mr|libmateweather-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define oname mateweather

%define major 1
%define libname %mklibname mateweather %{major}
%define devname %mklibname mateweather -d

Summary:	MATE Weather applet library
Name:		libmateweather
Version:	1.26.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/MATE
Url:		http://www.mate.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	libxml2-utils
BuildRequires:	mate-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)

%description
This is a library to provide Weather data to the MATE panel applet.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/locations.dtd
%{_datadir}/%{name}/Locations.xml
%{_iconsdir}/hicolor/*/status/{weather*.png,weather*.svg}
%{_datadir}/glib-2.0/schemas/org.mate.weather.gschema.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MATE Weather applet library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This is a library to provide Weather data to the MATE panel applet.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libmateweather.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MATE Weather applet library
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is a library to provide Weather data to the MATE panel applet.

%files -n %{devname}
%doc AUTHORS COPYING README
%{_libdir}/libmateweather.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_datadir}/gtk-doc/html/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
NOCONFIGURE=1 ./autogen.sh

%build
%configure \
	--disable-static \
	--with-gnu-ld \
	--disable-python
%make

%install
%makeinstall_std

%find_lang %{name}

for xmlfile in %{buildroot}%{_datadir}/%{name}/Locations.*.xml; do
	echo "%lang($(basename $xmlfile|sed -e s/Locations.// -e s/.xml//)) $(echo $xmlfile | sed s!%{buildroot}!!)" >> %{name}.lang
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14182 |21mr|libmatroska-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# For some reasons library is unstripped and we don't have time for investigation
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define major 7
%define libname %mklibname matroska %{major}
%define devname %mklibname matroska -d

Summary:	Matroska Audio/Video file format library
Name:		libmatroska
Version:	1.7.1
Release:	1
License:	LGPLv2
Group:		System/Libraries
Url:		https://www.matroska.org/
Source0:	https://dl.matroska.org/downloads/libmatroska/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	pkgconfig(libebml)

%description
In short, matroska is a new Audio/Video file format. It is an advanced
and full featured format.

Advanced because it is based on EBML, a kind of XML equivalent, that
allow infinite extensibility of the format. And full featured because
it includes precise seeking, any audio/video/subtitle codec support
including VCM/ACM/DirectShow compatibility, timecode based format,
complex frame dependencies, chaptering, internationalisation, error
protection, tagging, file attachement, control track (to be defined),
menu (to be defined), etc. All these features are not yet implemented
but already defined in the format.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Matroska Audio/Video file format shared library
Group:		System/Libraries

%description -n %{libname}
In short, matroska is a new Audio/Video file format. It is an advanced
and full featured format.

Advanced because it is based on EBML, a kind of XML equivalent, that
allow infinite extensibility of the format. And full featured because
it includes precise seeking, any audio/video/subtitle codec support
including VCM/ACM/DirectShow compatibility, timecode based format,
complex frame dependencies, chaptering, internationalisation, error
protection, tagging, file attachement, control track (to be defined),
menu (to be defined), etc. All these features are not yet implemented
but already defined in the format.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Matroska Audio/Video file format headers and static library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
In short, matroska is a new Audio/Video file format. It is an advanced
and full featured format.

Advanced because it is based on EBML, a kind of XML equivalent, that
allow infinite extensibility of the format. And full featured because
it includes precise seeking, any audio/video/subtitle codec support
including VCM/ACM/DirectShow compatibility, timecode based format,
complex frame dependencies, chaptering, internationalisation, error
protection, tagging, file attachement, control track (to be defined),
menu (to be defined), etc. All these features are not yet implemented
but already defined in the format.

This package contains the C++ headers and the static library needed
for development with Matroska.

%files -n %{devname}
%doc LICENSE*
%{_includedir}/matroska
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/libmatroska.pc
%{_libdir}/cmake/*atroska/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
    -DCMAKE_INSTALL_PREFIX=%{_prefix} \
    -DCMAKE_INSTALL_LIBDIR=%{_lib}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14183 |21mr|libmatthew-java-0.8-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           libmatthew-java
Version:        0.8
Release:        22
Summary:        A few useful Java libraries
License:        MIT
Group:          Development/Java
# actual upstream:
URL: http://matthew.ath.cx/projects/java/
Source0: http://matthew.ath.cx/projects/java/%{name}-%{version}.tar.gz

# OSGi manifests
Source1:        %{name}-hexdump-osgi-MANIFEST.MF
Source2:        %{name}-unix-osgi-MANIFEST.MF

Patch0:         install_doc.patch
Patch1:         native-library-paths.patch
Patch2:         classpath_fix.patch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  javapackages-local
BuildRequires:  gcc

Requires:       java-headless
Requires:       javapackages-tools

%description
A colleciton of Java libraries:
- Unix Sockets Library
  This is a collection of classes and native code to allow you to read
  and write Unix sockets in Java.

- Debug Library
  This is a comprehensive logging and debugging solution.

- CGI Library
  This is a collection of classes and native code to allow you to write
  CGI applications in Java.

- I/O Library
  This provides a few much needed extensions to the Java I/O subsystem.

- Hexdump
  This class formats byte-arrays in hex and ascii for display.


%package javadoc
Summary:        Javadoc for %{name}


%description javadoc
Javadoc for %{name}


%prep
%setup -q
%patch0 -p1

# this patch adds a system dependent path, so we fix it before
# applying the patch
sed -e 's|@JNIPATH@|%{_libdir}/%{name}|' %{PATCH1} | patch -p1 

%patch2 -p1


%build
export JAVA_HOME=%{java_home}
make %{?_smp_mflags} \
    CFLAGS='%{optflags}'\
    GCJFLAGS='%{optflags}' \
    LDFLAGS='%{optflags}' \
    PPFLAGS='%{optflags}' \
    JAVADOC="javadoc -Xdoclint:none" \
    -j1

# Inject OSGi manifests
jar umf %{SOURCE1} hexdump-0.2.jar
jar umf %{SOURCE2} unix-0.5.jar

%install
make install \
    DESTDIR=$RPM_BUILD_ROOT \
    JARDIR=%{_jnidir} \
    LIBDIR=%{_libdir}/%{name} \
    DOCDIR=%{_javadocdir}/%{name} \
    JAVADOC="javadoc -Xdoclint:none"

%files
%{_jnidir}/*.jar
%{_libdir}/%{name}
%doc INSTALL README
%license COPYING

%files javadoc
%{_javadocdir}/%{name}
%license COPYING



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14184 |21mr|libmaxminddb-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname maxminddb %{major}
%define develname %mklibname maxminddb -d

Name:		libmaxminddb
Summary:	C library for the MaxMind DB file format
Version:	1.6.0
Release:	1
Group:		System/Libraries
# original libmaxminddb code is Apache Licence 2.0
# src/maxminddb-compat-util.h is BSD
License:        ASL 2.0 and BSD
URL:		https://maxmind.github.io/libmaxminddb
Source0:	https://github.com/maxmind/%{name}/releases/download/%{version}/%{name}-%{version}.tar.gz
# for tests
BuildRequires: perl(Test::More)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IPC::Run3)

%description
This package contains libmaxminddb library.

#-----------------------------------------------------------------
%package -n %{libname}
Group:      System/Libraries
Summary:    C library for the MaxMind DB file format
Obsoletes:  %{_lib}maxminddb1.0 < 1.3.2-3

%description -n %{libname}
This package contains libmaxminddb library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libmaxminddb.so.%{major}{,.*}

#-----------------------------------------------------------------

%package -n %{develname}
Group:      Development/C
Summary:    Libraries and header files for %{name}
Requires:   %{libname} = %{version}-%{release}
Provides:   %{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains libraries and header files needed for developing
applications that use %{name}.

%files -n %{develname}
%doc NOTICE Changes.md
%{_bindir}/mmdblookup
%{_includedir}/maxminddb.h
%{_includedir}/maxminddb_config.h
%{_libdir}/libmaxminddb.so
%{_libdir}/pkgconfig/libmaxminddb.pc
%{_mandir}/man1/*
%{_mandir}/man3/*

#-----------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static
%make_build

%check
# tests are linked dynamically, preload the library as we have removed RPATH
LD_PRELOAD=%{buildroot}%{_libdir}/libmaxminddb.so make check

%install
%make_install

find %{buildroot} -name '*.la' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14185 |21mr|libmbim-1.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname mbim-glib %{major}
%define devname %mklibname mbim-glib -d

Summary:	MBIM modem protocol helper library
Name:		libmbim
Version:	1.26.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://www.freedesktop.org/wiki/Software/libmbim/
Source0:	https://www.freedesktop.org/software/libmbim/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	autoconf-archive
BuildRequires:	help2man
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gudev-1.0)

%description
The Mobile Broadband Interface Model (MBIM) is a new standard
to communicate with mobile broadband modem devices developed
by the USB Implementors Forum.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
The Mobile Broadband Interface Model (MBIM) is a new standard
to communicate with mobile broadband modem devices developed
by the USB Implementors Forum.
This package contains MBIM shared libraries.

%files -n %{libname}
%doc AUTHORS COPYING NEWS
%{_libdir}/libmbim-glib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The Mobile Broadband Interface Model (MBIM) is a new standard
to communicate with mobile broadband modem devices developed
by the USB Implementors Forum.

This package contains MBIM header files and development libraries.

%files -n %{devname}
%dir %{_includedir}/libmbim-glib
%{_includedir}/libmbim-glib/*.h
%{_libdir}/libmbim-glib.so
%{_libdir}/pkgconfig/mbim-glib.pc
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%package utils
Summary:	MBIM command line utilities
Group:		System/Base

%description utils
The Mobile Broadband Interface Model (MBIM) is a new standard
to communicate with mobile broadband modem devices developed
by the USB Implementors Forum.

This package contains MBIM command line utilities.

%files utils
%{_bindir}/mbim-network
%{_bindir}/mbimcli
%{_libexecdir}/mbim-proxy
%{_mandir}/man1/mbim-network.1*
%{_mandir}/man1/mbimcli.1*
%{_datadir}/bash-completion/completions/mbimcli

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-more-warnings=no \
	--enable-gtk-doc
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14186 |21mr|libmd-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname md %{major}
%define devname %mklibname -d md

Summary:	Message digest functions from BSD systems
Name:		libmd
Version:	1.0.4
Release:	1
License:	BSD-2-Clause OR BSD-3-Clause OR ISC OR SUSE-Public-Domain
Group:		System/Libraries
Url:		https://www.hadrons.org/software/libmd/
Source0:	https://archive.hadrons.org/software/libmd/%{name}-%{version}.tar.xz

%description
The libmd library provides a few message digest ("hash") functions, as
found on various BSDs on a library with the same name and with a compatible
API.

%package -n %{libname}
Summary:	Provides message digest functions from BSD systems
Group:		System/Libraries

%description -n %{libname}
The libmd library provides a few message digest ("hash") functions, as
found on various BSDs on a library with the same name and with a compatible
API.

Digests supported: MD2/4/5, RIPEMD160, SHA1, SHA2-256/384/512.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the %{name} library.

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install

%files -n %{libname}
%{_libdir}/libmd.so.%{major}*

%files -n %{devname}
%{_includedir}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%doc %{_mandir}/man3/*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14187 |21mr|libmediaart-1.9.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.0
%define major 0
%define libname %mklibname mediaart %{api} %{major}
%define girname %mklibname mediaart-gir %{api}
%define devname %mklibname mediaart -d

%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Library for managing media art caches
Name:		libmediaart
Version:	1.9.4
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(vapigen)

%description
Library tasked with managing, extracting and handling media art caches.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Library tasked with managing, extracting and handling media art caches.

This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/MediaArt-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains files needed for development with %{name}.

%files -n %{devname}
%dir %{_includedir}/%{name}-%{api}
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*
%{_datadir}/gtk-doc/html/%{name}/*
%{_datadir}/gir-1.0/MediaArt-%{api}.gir
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_datadir}/vala/vapi/%{name}-%{api}.vapi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-gtk-doc
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14188 |21mr|libmediainfo-23.03-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname mediainfo

%define	major 0
%define	libname %mklibname %{oname} %{major}
%define	devname %mklibname %{oname} -d

Summary:	Supplies technical and tag information about a video or audio file
Name:		libmediainfo
Version:	23.03
Release:	2
License:	BSD
Group:		System/Libraries
Url:		https://mediaarea.net/
Source0:	https://mediaarea.net/download/source/%{name}/%{version}/%{name}_%{version}.tar.xz
Patch0:		libmediainfo_0.7.70-pkgconfig.patch
BuildRequires:	dos2unix
BuildRequires:	doxygen
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmms)
BuildRequires:	pkgconfig(libzen) >= 0.4.38
BuildRequires:	pkgconfig(tinyxml2) >= 3.0.0
BuildRequires:	pkgconfig(zlib)

%description
MediaInfo supplies technical and tag information about a video or audio file.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Supplies technical and tag information about a video or audio file
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
MediaInfo supplies technical and tag information about a video or audio file.
This package contains the shared library for MediaInfo.

%files -n %{libname}
%doc History.txt License.html ReadMe.txt
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Include files and mandatory libraries for development
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
Include files and mandatory libraries for development with MediaInfo.

%files -n %{devname}
%doc Changes.txt Doc Source/Example
%{_includedir}/MediaInfo
%{_includedir}/MediaInfoDLL
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn MediaInfoLib
%patch0 -p1

# Rename files
cp Release/ReadMe_DLL_Linux.txt ReadMe.txt
mv History_DLL.txt History.txt

# EOLs and rights
dos2unix *.txt *.html Source/Doc/*.html
dos2unix Source/Example/HowToUse_Dll.*
dos2unix Source/Example/HowToUse_Dll3.py
dos2unix Source/Example/HowToUse_Dll_CLI.cs
dos2unix Source/Example/HowToUse.cpp
chmod 644 *.txt *.html Source/Doc/*.html

# Don't force -O2 by default
sed -i -e "s|-O2||" Project/GNU/Library/configure.ac


%build
pushd Project/GNU/Library
	autoreconf -vfi
	export CPPFLAGS="-DMEDIAINFO_LIBMMS_DESCRIBE_SUPPORT=0"
	%configure \
		--enable-shared \
		--enable-visibility \
		--disable-static \
		--with-libcurl \
		--with-libmms \
		--with-libaes=no \
		--with-libmd5=no \
		--with-libtinyxml=no
	%make
popd

# generate docs
pushd Source/Doc
	doxygen -u 2> /dev/null
	doxygen Doxyfile
popd


%install
pushd Project/GNU/Library/
	%makeinstall_std
popd

# MediaInfoDLL for java and python stuff
install -m 644 Source/MediaInfoDLL/MediaInfoDLL.cs %{buildroot}%{_includedir}/MediaInfoDLL
install -m 644 Source/MediaInfoDLL/MediaInfoDLL.*.java %{buildroot}%{_includedir}/MediaInfoDLL
install -m 644 Source/MediaInfoDLL/MediaInfoDLL*.py %{buildroot}%{_includedir}/MediaInfoDLL

# Fix and install .pc file
sed -i -e 's|Version: |Version: %{version}|g' Project/GNU/Library/%{name}.pc
sed -i -e '/Libs_Static.*/d' Project/GNU/Library/%{name}.pc
sed -i -e '/la_name.*/d' Project/GNU/Library/%{name}.pc
install -Dm 644 Project/GNU/Library/%{name}.pc %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14189 |21mr|libmemcached-1.0.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 11
%define	util_major 2
%define	protocol_major 0
%define	hashkit_major 2
%define libname %mklibname memcached %{major}
%define util_libname %mklibname memcachedutil %{util_major}
%define protocol_libname %mklibname memcachedprotocol %{protocol_major}
%define hashkit_libname %mklibname memcachedhashkit %{hashkit_major}
%define develname %mklibname memcached -d

Summary:	A memcached C library and command line tools
Name:		libmemcached
Version:	1.0.18
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://libmemcached.org/
# Original sources:
# http://launchpad.net/libmemcached/1.0/%%{version}/+download/libmemcached-%%{version}.tar.gz
# The source tarball must be repackaged to remove the Hsieh hash
# code, since the license is non-free. When upgrading, download the new
# source tarball, and run "./strip-hsieh.sh <version>" to produce the
# "-exhsieh" tarball.
Source0:	%{name}-%{version}-exhsieh.tar.gz
Patch0:		libmemcached-fix-linking-with-libpthread.patch
# Fix: ISO C++ forbids comparison between pointer and integer [-fpermissive]
# https://bugs.launchpad.net/libmemcached/+bug/1663985
Patch1:		libmemcached-build.patch
BuildRequires:	memcached
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(uuid)

%description
libmemcached is a C client library to interface to a memcached server. It has
been designed to be light on memory usage, thread safe, and to provide full
access to server side methods. It also implements several command line tools:

memcat - Cat a set of key values to stdout
memcp - Copy a set of files to a memcached cluster
memdump - Dump all values from one or many servers
memerror - Translate a memcached errror code into a string
memexist - Erase a key or set of keys from a memcached cluster
memflush - Erase all data in a server of memcached servers
memping - Ping a server to see if it is alive
memrm - Erase a key or set of keys from a memcached cluster
memslap - Generates a load against a memcached custer of servers
memstat - Output the state of a memcached cluster
memtouch - Update the expiration value of an alreasy existing value in the 
server

%files
%{_bindir}/memcapable
%{_bindir}/memcat
%{_bindir}/memcp
%{_bindir}/memdump
%{_bindir}/memerror
%{_bindir}/memexist
%{_bindir}/memflush
%{_bindir}/memparse
%{_bindir}/memping
%{_bindir}/memrm
%{_bindir}/memslap
%{_bindir}/memstat
%{_bindir}/memtouch
%{_mandir}/man1/memcapable.1*
%{_mandir}/man1/memcat.1*
%{_mandir}/man1/memcp.1*
%{_mandir}/man1/memdump.1*
%{_mandir}/man1/memerror.1*
%{_mandir}/man1/memflush.1*
%{_mandir}/man1/memrm.1*
%{_mandir}/man1/memslap.1*
%{_mandir}/man1/memaslap.1*
%{_mandir}/man1/memstat.1*
%{_mandir}/man1/memexist.1*
%{_mandir}/man1/memparse.1*
%{_mandir}/man1/memping.1*
%{_mandir}/man1/memtouch.1*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	A memcached C library
Group:		System/Libraries

%description -n	%{libname}
libmemcached is a C client library to interface to a memcached server. It has
been designed to be light on memory usage, thread safe, and to provide
full access to server side methods.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%{_libdir}/*.so.%{major}*
%{_mandir}/man3/%{name}.3*

#------------------------------------------------------------------

%package -n %{util_libname}
Summary:	A memcached C library
Group:		System/Libraries

%description -n	%{util_libname}
libmemcached is a C client library to interface to a memcached server. It has
been designed to be light on memory usage, thread safe, and to provide
full access to server side methods.

%files -n %{util_libname}
%{_libdir}/%{name}util.so.%{util_major}*
%{_mandir}/man3/%{name}util.3*

#------------------------------------------------------------------

%package -n %{protocol_libname}
Summary:	A memcached C library
Group:		System/Libraries

%description -n	%{protocol_libname}
libmemcached is a C client library to interface to a memcached server. It has
been designed to be light on memory usage, thread safe, and to provide
full access to server side methods.

%files -n %{protocol_libname}
%{_libdir}/%{name}protocol.so.%{protocol_major}*

#------------------------------------------------------------------

%package -n %{hashkit_libname}
Summary:	A memcached C library
Group:		System/Libraries

%description -n	%{hashkit_libname}
libmemcached is a C client library to interface to a memcached server. It has
been designed to be light on memory usage, thread safe, and to provide
full access to server side methods.

%files -n %{hashkit_libname}
%{_libdir}/libhashkit.so.%{hashkit_major}*

#------------------------------------------------------------------

%package -n	%{develname}
Summary:	Static library and header files for the libmemcached library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{util_libname} = %{EVRD}
Requires:	%{protocol_libname} = %{EVRD}
Requires:	%{hashkit_libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
libmemcached is a C client library to interface to a memcached server. It has
been designed to be light on memory usage, thread safe, and to provide
full access to server side methods.

This package contains the static libmemcached library and its header files.

%files -n %{develname}
%{_datadir}/aclocal/ax_%{name}.m4
%{_includedir}/libhashkit
%{_includedir}/libhashkit-1.0
%{_includedir}/%{name}
%{_includedir}/%{name}-1.0
%{_includedir}/%{name}util-1.0
%{_includedir}/%{name}protocol-0.0
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%exclude %{_mandir}/man3/%{name}.3*
%exclude %{_mandir}/man3/%{name}util.3*
%{_mandir}/man3/*

#------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi

%configure \
		--disable-static \
		--enable-shared \
		--enable-libmemcachedprotocol \
		--with-memcached=%{_bindir}/memcached \
		--with-memcached_sasl=%{_bindir}/memcached

%make LIBSASL="-lsasl2" PTHREAD_LIBS="-lpthread"

%install
%makeinstall_std

# cleanup
rm -f %{buildroot}%{_libdir}/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14190 |21mr|libmicrohttpd-0.9.76-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 12
%define libname %mklibname microhttpd %{major}
%define devname %mklibname microhttpd -d

Summary:	Small C library to run an HTTP server
Name:		libmicrohttpd
Version:	0.9.76
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://gnunet.org/libmicrohttpd/
Source0:	http://ftp.gnu.org/gnu/libmicrohttpd/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	gettext-devel
BuildRequires:	texinfo

%description
libmicrohttpd is a small C library that is supposed to make it easy to
run an HTTP server as part of another application. Key features that
distinguish libmicrohttpd from other projects are:

* C library: fast and small
* API is simple, expressive and fully reentrant
* Implementation is (largely) http 1.1 compliant
* HTTP server can listen on multiple ports
* Support for IPv6
* Creates binary of only 22k (for now)
* Three different threading models

libmicrohttpd was started because the author needed an easy way to add
a concurrent HTTP server to other projects. Existing alternatives were
either non-free, not reentrant, standalone, of terrible code quality or
a combination thereof. Do not use libmicrohttpd if you are looking for
a standalone http server; there are many other projects out there that
provide that kind of functionality already. However, if you want to be
able to serve simple WWW pages from within your C or C++ application,
check it out.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Small C library to run an HTTP server
Group:		System/Libraries
Obsoletes:	%{_lib}microspdy0 < 0.9.51
Obsoletes:	microspdy2http < 0.9.51

%description -n %{libname}
libmicrohttpd is a small C library that is supposed to make it easy to
run an HTTP server as part of another application. Key features that
distinguish libmicrohttpd from other projects are:

* C library: fast and small
* API is simple, expressive and fully reentrant
* Implementation is (largely) http 1.1 compliant
* HTTP server can listen on multiple ports
* Support for IPv6
* Creates binary of only 22k (for now)
* Three different threading models

libmicrohttpd was started because the author needed an easy way to add
a concurrent HTTP server to other projects. Existing alternatives were
either non-free, not reentrant, standalone, of terrible code quality or
a combination thereof. Do not use libmicrohttpd if you are looking for
a standalone http server; there are many other projects out there that
provide that kind of functionality already. However, if you want to be
able to serve simple WWW pages from within your C or C++ application,
check it out.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/libmicrohttpd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}microhttpd10 < 0.9.34-2
Obsoletes:	%{_lib}microspdy-devel < 0.9.51

%description -n %{devname}
Development files for %{libname}.

%files -n %{devname}
%{_includedir}/microhttpd.h
%{_libdir}/libmicrohttpd.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/info/*
%{_mandir}/man3/%{name}.3*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure \
	--disable-static \
	--with-gnutls
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_bindir}/demo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14191 |21mr|libmikmod-3.3.12-1.20220525.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	3
%define	libname	%mklibname mikmod %{major}
%define	devname	%mklibname mikmod -d

%define	gitdate		20220525

Summary:	Sound library supporting multiple module formats and digital sound files
Name:		libmikmod
Version:	3.3.12
Release:	1.%{gitdate}.1
License:	LGPLv2+
Group:		Sound
Url:		http://mikmod.raphnet.net/
#Source0:	http://sourceforge.net/projects/mikmod/files/libmikmod/%%{version}/%%{name}-%%{version}.tar.gz
Source0:	%{name}-%{gitdate}.tar.xz
Patch0:		libmikmod-3.3.12-init-e2k-support.patch
BuildRequires:	texinfo
BuildRequires:	nas-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sndio)

%description
Libmikmod is a portable sound library, capable of playing samples as well as
module files, originally written by Jean-Paul Mikkers (MikMak) for DOS. It has
subsequently been hacked by many hands and now runs on many Unix flavours.
It uses the OSS /dev/dsp driver including in all recent kernels for output, as
well as ALSA and EsounD, and will also write wav files.
Supported file formats include 669, AMF, APUN, DSM, FAR, GDM, IT, IMF,MOD,
MED, MTM, OKT, S3M, STM, STX, ULT, UNI and XM.
Full source included, use of this library for music/sound effects in your own
programs is encouraged!

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Sound library supporting multiple module formats and digital sound files
Group:		System/Libraries

%description -n %{libname}
Libmikmod is a portable sound library, capable of playing samples as well as
module files, originally written by Jean-Paul Mikkers (MikMak) for DOS. It has
subsequently been hacked by many hands and now runs on many Unix flavours.
It uses the OSS /dev/dsp driver including in all recent kernels for output, as
well as ALSA and EsounD, and will also write wav files.
Supported file formats include 669, AMF, APUN, DSM, FAR, GDM, IT, IMF,MOD,
MED, MTM, OKT, S3M, STM, STX, ULT, UNI and XM.
This package contains the main library.

%files -n %{libname}
%doc AUTHORS
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains the files needed to develop applications that will use
the limikmod library.

%files -n %{devname}
%doc NEWS README TODO
%{_bindir}/%{name}-config
%{_includedir}/mikmod.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{name}.so
%{_datadir}/aclocal/%{name}.m4
%{_mandir}/man1/%{name}-config.1*
%{_infodir}/mikmod.info*

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{gitdate}


%build
autoreconf -vfi
%configure \
	--disable-static \
	--enable-alsa \
	--enable-oss \
	--enable-pulseaudio \
	--enable-sdl \
	--enable-sdl2 \
	--enable-nas \
	--enable-openal \
	--enable-sndio \
	--enable-aiff \
	--enable-raw \
	--enable-wav \
	--enable-pipe \
	--enable-stdout
%make_build


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14192 |21mr|libmimic-1.0.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname mimic %{major}
%define devname %mklibname mimic -d

Summary:	Audio/Video Conference software for Instant Messengers
Name:		libmimic
Version:	1.0.4
Release:	16
License:	LGPLv2.1+
Group:		Networking/Instant messaging
Url:		http://sourceforge.net/projects/farsight/
Source0:	http://ovh.dl.sourceforge.net/sourceforge/farsight/%{name}-%{version}.tar.gz
Patch0:		libmimic-1.0.4-fix-underlinking.patch
BuildRequires:	pkgconfig(glib-2.0)

%description
Audio/Video Conference software for Instant Messengers. It aims to provide
Audio/Video conferencing for as many Instant Messengers as possible through
a modular design.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Audio/Video Conference software for Instant Messengers
Group:		System/Libraries

%description -n %{libname}
Audio/Video Conference software for Instant Messengers. It aims to provide
Audio/Video conferencing for as many Instant Messengers as possible through
a modular design.

%files -n %{libname}
%{_libdir}/libmimic.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of %{name} for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
%{_includedir}/mimic.h
%{_libdir}/libmimic.so
%{_libdir}/pkgconfig/libmimic.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .undlink

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14193 |21mr|libmms-0.6.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname mms %{major}
%define devname %mklibname mms -d

Summary:	MMS stream protocol library
Name:		libmms
Version:	0.6.4
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.sf.net/projects/libmms
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)

%description
Libmms is a library implementing the MMS streaming protocol.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library implementing the MMS protocol
Group:		System/Libraries

%description -n %{libname}
Libmms is a library implementing the mms streaming protocol.

%files -n %{libname}
%doc AUTHORS ChangeLog README README.LICENSE
%{_libdir}/libmms.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for developing with libmms
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development headers and libraries
to allow you to build programs that use libmms.

%files -n %{devname}
%{_includedir}/libmms
%{_libdir}/libmms.so
%{_libdir}/pkgconfig/libmms.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14194 |21mr|libmng-2.0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname mng %{major}
%define devname %mklibname mng -d

Summary:	A library for handling MNG files
Name:		libmng
Version:	2.0.3
Release:	11
License:	Distributable (see LICENSE)
Group:		System/Libraries
Url:		http://www.libmng.com/
Source0:	http://prdownloads.sourceforge.net/libmng/%{name}-%{version}.tar.xz
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(zlib)

%description
The libmng library supports decoding, displaying, encoding, and various other
manipulations of the Multiple-image Network Graphics (MNG) format image files.
It uses the zlib compression library, and optionally the JPEG library by the
Independent JPEG Group (IJG) and/or lcms (little cms), a color-management
library by Marti Maria Saguar.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for handling MNG files
Group:		System/Libraries

%description -n %{libname}
The libmng library supports decoding, displaying, encoding, and various other
manipulations of the Multiple-image Network Graphics (MNG) format image files.
It uses the zlib compression library, and optionally the JPEG library by the
Independent JPEG Group (IJG) and/or lcms (little cms), a color-management
library by Marti Maria Saguar.

%files -n %{libname}
%{_libdir}/libmng.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libmng
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	mng-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed for development.

%files -n %{devname}
%doc CHANGES LICENSE README README.contrib README.examples
%doc doc/Plan1.png doc/Plan2.png doc/doc.readme doc/libmng.txt
%{_includedir}/*
%{_libdir}/pkgconfig/libmng.pc
%{_libdir}/*.so
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14195 |21mr|libmnl-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname %mklibname mnl %{major}
%define develname %mklibname mnl -d

Summary:	Minimalistic Netlink communication library
Name:		libmnl
Version:	1.0.5
Release:	1
License:	LGPLv2+
Group:		System/Kernel and hardware
URL:		http://netfilter.org/projects/libmnl/
Source0:	http://netfilter.org/projects/libmnl/files/%name-%version.tar.bz2
#BuildRequires:	linux-userspace-headers
BuildRequires:	libtool

%description
libmnl is a minimalistic user-space library oriented to Netlink developers.
There are a lot of common tasks in parsing, validating, constructing of both
the Netlink header and TLVs that are repetitive and easy to get wrong. This
library aims to provide simple helpers that allows you to re-use code and to
avoid re-inventing the wheel.

%package -n	%{libname}
Summary:	Minimalistic Netlink communication library
Group:		System/Libraries

%description -n	%{libname}
libmnl is a minimalistic user-space library oriented to Netlink developers.
There are a lot of common tasks in parsing, validating, constructing of both
the Netlink header and TLVs that are repetitive and easy to get wrong. This
library aims to provide simple helpers that allows you to re-use code and to
avoid re-inventing the wheel.

%package -n	%{develname}
Summary:	Development files for libmnl
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	mnl-devel = %{EVRD}

%description -n	%{develname}
libmnl is a minimalistic user-space library oriented to Netlink developers.
There are a lot of common tasks in parsing, validating, constructing of both
the Netlink header and TLVs that are repetitive and easy to get wrong. This
library aims to provide simple helpers that allows you to re-use code and to
avoid re-inventing the wheel.

%prep
%setup -q

%build
rm -Rf autom4te.cache
aclocal -I m4
autoreconf -fi
%configure
%make

%install
%makeinstall_std

# cleanup
rm -f %{buildroot}%{_libdir}/*.la

%files

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14196 |21mr|libmodplug-0.8.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname modplug %{major}
%define	devname %mklibname modplug -d

Summary:	Modplug music player
Name:		libmodplug
Version:	0.8.9.0
Release:	2
Epoch:		1
License:	Public Domain
Group:		Sound
Url:		http://www.modplug.com
Source0:	http://prdownloads.sourceforge.net/modplug-xmms/%{name}-%{version}.tar.gz

%description
Olivier Lapicque, author of Modplug, which is arguably the best quality
MOD-playing software available, has placed his sound rendering code in the
public domain. This library and plugin is based on that code.
It can play 22 different mod formats, including:
MOD, S3M, XM, IT, 669, AMF (both of them), AMS, DBM, DMF, DSM, FAR, MDL, MED,
MTM, OKT, PTM, STM, ULT, UMX, MT2, PSM

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Modplug shared library
Group:		System/Libraries

%description -n %{libname}
This is the shared library part of the Modplug music player.

%files -n %{libname}
%doc README COPYING
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for compiling against Modplug library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is the development package of libmodplug. Install it if you want to 
compile programs using this library.

%files -n %{devname}
%doc AUTHORS TODO ChangeLog
%{_libdir}/%{name}.so
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14197 |21mr|libmodulemd-2.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define girapi %{major}.0
%define libname %mklibname modulemd %{major}
%define girname %mklibname modulemd-gir %{girapi}
%define devname %mklibname modulemd -d

%bcond_without gir
%bcond_with gtk-doc

Summary:	Library for manipulating module metadata files
Name:		libmodulemd
Version:	2.13.0
Release:	1
Group:		System/Libraries
License:	LGPLv2+
URL:		https://github.com/fedora-modularity/%{name}
Source0:	https://github.com/fedora-modularity/libmodulemd/releases/download/%{version}/modulemd-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	python3-devel
#temporary fix for e2k
%ifnarch %e2k
BuildRequires:	python3-gobject3
%endif
BuildRequires:	pkgconfig(yaml-0.1)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	magic-devel
BuildRequires:	/bin/sh
BuildRequires:	sed
BuildRequires:	coreutils
BuildRequires:  help2man
%if %{with gtk-doc}
BuildRequires:	gtk-doc
%endif
#BuildRequires:	valgrind

%description
Library for manipulating module metadata files

%package -n %{libname}
Summary:	Library for manipulating module metadata files
Group:		System/Libraries

%description -n %{libname}
Library for manipulating module metadata files

%package -n %{girname}
Summary:	GObject Introspection interface description for libmodulemd
Group:		System/Libraries
Requires:	%{libname}%{?_isa} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface description for libmodulemd.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	lib%{name}-devel%{?_isa} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel%{?_isa} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{girname}%{?_isa} = %{version}-%{release}
Requires:	%{libname}%{?_isa} = %{version}-%{release}

%package -n python3-%{name}
Summary:        Python bindings for %{name}
Group:          Development/Python
Requires:       %{girname}%{?_isa} = %{version}-%{release}
Requires:       python3-gobject3

%description -n python3-%{name}
This package provides the Python 3 bindings for %{name}.

%description -n %{devname}
Development files for %{name}.

%prep
%autosetup -p1 -n modulemd-%{version}

# https://github.com/fedora-modularity/libmodulemd/issues/387
sed -i -e 's,/usr/bin/sh,/bin/sh,g' modulemd/clang_simple_version.sh

%build
%meson \
%if !%{with gir}
	-Dskip_introspection=true \
%endif
%if %{without gtk-doc}
	-Dwith_docs=false \
%endif
%ifarch %e2k
	-Dgobject_overrides_dir_py3=/usr/lib64/python3.8/site-packages/gi/overrides
%endif
# this meson.build pars are unknown
# remove it?
#	-Ddeveloper_build=false \
#	-Dwith_py2_overrides=false

%meson_build

%install
%meson_install

%files
%{_bindir}/modulemd-validator
%{_mandir}/man1/modulemd-validator.*

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

%files -n %{girname}
%{_libdir}/girepository-1.0/Modulemd-%{girapi}.typelib

%files -n %{devname}
%license COPYING
%{_libdir}/%{name}.so
%{_datadir}/gir-1.0/Modulemd-%{girapi}.gir
%{_includedir}/modulemd-%{major}.0
%{_libdir}/pkgconfig/modulemd-%{major}*.pc
%if %{with gtk-doc}
%doc %{_datadir}/gtk-doc/html/modulemd-%{girapi}
%endif

%files -n python3-%{name}
%{python3_sitearch}/gi/overrides/Modulemd.py*
%{python3_sitearch}/gi/overrides/__pycache__/Modulemd.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14198 |21mr|libmowgli-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname mowgli %{major}
%define libnamedev %mklibname -d mowgli

Summary:	Development framework with high performance algorithms
Name:		libmowgli
Version:	1.0.0
Release:	6
License:	BSD
Group:		System/Libraries
Url:		http://www.atheme.org/project/mowgli
Source0:	http://distfiles.atheme.org/libmowgli-%{version}.tar.bz2

%description
mowgli is a development framework for C (like GLib), which provides
high performance and highly flexible algorithms. It can be used as a
suppliment to GLib (to add additional functions (dictionaries,
hashes), or replace some of the slow GLib list manipulation
functions), or stand alone. It also provides a powerful hook system
and convenient logging for your code, as well as a high performance
block allocator.

%package -n %{libname}
Group:		System/Libraries
Summary:	Development framework library

%description -n %{libname}
mowgli is a development framework for C (like GLib), which provides
high performance and highly flexible algorithms. It can be used as a
suppliment to GLib (to add additional functions (dictionaries,
hashes), or replace some of the slow GLib list manipulation
functions), or stand alone. It also provides a powerful hook system
and convenient logging for your code, as well as a high performance
block allocator.

%package -n %{libnamedev}
Group:		Development/C
Summary:	Development framework header files
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{libnamedev}
mowgli is a development framework for C (like GLib), which provides
high performance and highly flexible algorithms. It can be used as a
suppliment to GLib (to add additional functions (dictionaries,
hashes), or replace some of the slow GLib list manipulation
functions), or stand alone. It also provides a powerful hook system
and convenient logging for your code, as well as a high performance
block allocator.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libmowgli.so.%{major}*

%files -n %{libnamedev}
%doc AUTHORS
%{_libdir}/libmowgli.so
%{_libdir}/pkgconfig/libmowgli.pc
%{_includedir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14199 |21mr|libmp4v2-5.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname mp4v2_ %{major}
%define devname %mklibname mp4v2 -d
%define oname Release-ThirdParty-MP4v2

Summary:	Library for working with files using the mp4 container format
Name:		libmp4v2
Version:	5.0.1
Release:	1
Epoch:		1
License:	MPLv1.1
Group:		Sound
Url:		https://github.com/TechSmith/mp4v2
Source0:	https://github.com/TechSmith/mp4v2/archive/refs/tags/%{oname}-%{version}.tar.gz?/mp4v2-%{oname}-%{version}.tar.gz

%description
The libmp4v2 library provides an abstraction layer for working with files
using the mp4 container format. This library is developed by mpeg4ip project
and is an exact copy of the library distributed in the mpeg4ip package.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for working with files using the mp4 container format
Group:		System/Libraries

%description -n %{libname}
The libmp4v2 library provides an abstraction layer for working with files
using the mp4 container format. This library is developed by mpeg4ip project
and is an exact copy of the library distributed in the mpeg4ip package.

%files -n %{libname}
%doc COPYING
%{_libdir}/libmp4v2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the mp4v2 library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and documentation needed to develop and compile programs
using the libmp4v2 library.

%files -n %{devname}
%{_includedir}/mp4v2/
%{_libdir}/*.so
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%package utils
Summary:	Command line utils to handle MP4 metadata
Group:		Sound

%description utils
The libmp4v2 library provides an abstraction layer for working with files
using the mp4 container format. This library is developed by mpeg4ip project
and is an exact copy of the library distributed in the mpeg4ip package.

This contains the command line example utilities.

%files utils
%doc COPYING
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn mp4v2-%{oname}-%{version}
%apply_patches

%build
autoreconf -fi
export CXXFLAGS="%{optflags} -Wno-narrowing"
%configure \
	--disable-static \
	--disable-dependency-tracking
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14200 |21mr|libmpc-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mpc
%define major 3
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	Complex numbers arithmetic with arbitrarily high precision and correct rounding
Name:		libmpc
Version:	1.3.1
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.multiprecision.org/%{oname}
Source0:	https://ftp.gnu.org/gnu/mpc/%{oname}-%{version}.tar.gz
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel

%description
Mpc is a C library for the arithmetic of complex numbers with arbitrarily
high precision and correct rounding of the result. It is built upon and
follows the same principles as Mpfr. The library is written by Andreas Enge,
Philippe Théveny and Paul Zimmermann and is distributed under the Gnu Lesser
General Public License, either version 2.1 of the licence, or (at your option)
any later version. The Mpc library has been registered in France by the
Agence pour la Protection des Programmes on 2003-02-05 under the number
IDDN FR 001 060029 000 R P 2003 000 10000.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Complex numbers arithmetic with arbitrarily high precision and correct rounding
Group:		System/Libraries

%description -n %{libname}
Mpc is a C library for the arithmetic of complex numbers with arbitrarily
high precision and correct rounding of the result. It is built upon and
follows the same principles as Mpfr. The library is written by Andreas Enge,
Philippe Théveny and Paul Zimmermann and is distributed under the Gnu Lesser
General Public License, either version 2.1 of the licence, or (at your option)
any later version. The Mpc library has been registered in France by the
Agence pour la Protection des Programmes on 2003-02-05 under the number
IDDN FR 001 060029 000 R P 2003 000 10000.

%files -n %{libname}
%{_libdir}/libmpc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for MPC
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for MPC.

%files -n %{devname}
%doc AUTHORS NEWS README TODO
%{_includedir}/mpc.h
%{_infodir}/mpc.info*
%{_libdir}/libmpc.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
autoreconf -ifs
%configure \
	--enable-shared \
	--disable-static

%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_docdir}/%{name}

# To avoid file conflicts with older library package
rm -rf %{buildroot}%{_docdir}/%{name}

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14201 |21mr|libmpcdec-1.2.6-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname mpcdec %{major}
%define devname %mklibname mpcdec -d

Summary:	Portable Musepack decoder library
Name:		libmpcdec
Version:	1.2.6
Release:	19
License:	BSD
Group:		System/Libraries
Url:		http://www.musepack.net/
Source0:	http://files.musepack.net/source/%{name}-%{version}.tar.bz2
Patch0:		libmpcdec-configure.patch

%description
Portable Musepack decoder library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/libmpcdec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc AUTHORS README ChangeLog
%{_includedir}/*
%{_libdir}/libmpcdec.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14202 |21mr|libmspack-0.10.1-0.alpha.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname mspack %{major}
%define devname %mklibname mspack -d

Summary:	Library for CAB and related files compression and decompression
Name:		libmspack
Version:	0.10.1
Release:	0.alpha.1
License:	LGPLv2
Group:		System/Libraries
Url:		http://www.cabextract.org.uk/libmspack/
Source0:	http://www.cabextract.org.uk/libmspack/%{name}-%{version}alpha.tar.gz
BuildRequires:	doxygen

%description
The purpose of libmspack is to provide both compression and decompression of
some loosely related file formats used by Microsoft.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for CAB and related files compression and decompression
Group:		System/Libraries

%description -n %{libname}
The purpose of libmspack is to provide both compression and decompression of
some loosely related file formats used by Microsoft.

%files -n %{libname}
%doc README TODO COPYING.LIB ChangeLog AUTHORS
%{_libdir}/libmspack.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The development libraries and header files for libmspack
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries, header files and documentation for developing
applications that use %{name}.

%files -n %{devname}
%doc doc/html
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}alpha

chmod a-x mspack/mspack.h

%build
%configure \
	--disable-static \
	--disable-silent-rules
%make

%install
%makeinstall_std INSTALL='install -p'

iconv -f ISO_8859-1 -t utf8 ChangeLog --output Changelog.utf8
touch -r ChangeLog Changelog.utf8
mv Changelog.utf8 ChangeLog

pushd doc
doxygen
find html -type f | xargs touch -r %{SOURCE0}
rm -f html/installdox
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14203 |21mr|libmspub-0.1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lname mspub
%define api 0.1
%define major 1
%define libname %mklibname %{lname} %{api} %{major}
%define devname %mklibname %{lname} -d

Summary:	A library providing ability to interpret and import Microsoft Publisher files
Name:		libmspub
Version:	0.1.2
Release:	7
License:	GPLv2+ or LGPLv2+ or MPLv1.1
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libmspub
Source0:	http://cgit.freedesktop.org/libreoffice/libmspub/snapshot/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	boost-devel
BuildRequires:	libwpd-devel
BuildRequires:	libwpg-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(zlib)

%description
Libmspub is library providing ability to interpret and import Microsoft
Publisher content into various applications. You can find it being used
in libreoffice.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Microsoft Publisher files into other formats
Group:		Publishing

%description tools
Tools to transform Microsoft Publisher files into other formats.
Currently supported: XHTML, raw.

%files tools
%{_bindir}/pub2raw
%{_bindir}/pub2xhtml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Text categorization library
Group:		System/Libraries
Obsoletes:	%{_lib}mspub0 < 0.0.4-1

%description -n %{libname}
Libmspub is library providing ability to interpret and import Microsoft
Publisher content into various applications. You can find it being used
in libreoffice.

%files -n %{libname}
%{_libdir}/libmspub-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{lname}-devel = %{EVRD}
Obsoletes:	%{name}-doc < 0.1.2

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc AUTHORS COPYING.*
%dir %{_includedir}/%{name}-%{api}
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
mkdir -p m4
autoreconf -fi

%build
%configure \
	--disable-static

sed -i \
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    libtool

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14204 |21mr|libmspub-0.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lname mspub
%define api 0.1
%define major 1
%define libname %mklibname %{lname} %{api} %{major}
%define devname %mklibname %{lname} -d

Summary:	A library providing ability to interpret and import Microsoft Publisher files
Name:		libmspub
Version:	0.1.4
Release:	2
License:	GPLv2+ or LGPLv2+ or MPLv1.1
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libmspub
Source0:	http://dev-www.libreoffice.org/src/libmspub/%{name}-%{version}.tar.xz
# From Fedora
Patch0:		gcc10.patch
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	boost-devel
BuildRequires:	libwpd-devel
BuildRequires:	libwpg-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(zlib)

%description
Libmspub is library providing ability to interpret and import Microsoft
Publisher content into various applications. You can find it being used
in libreoffice.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Microsoft Publisher files into other formats
Group:		Publishing

%description tools
Tools to transform Microsoft Publisher files into other formats.
Currently supported: XHTML, raw.

%files tools
%{_bindir}/pub2raw
%{_bindir}/pub2xhtml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Text categorization library
Group:		System/Libraries
Obsoletes:	%{_lib}mspub0 < 0.0.4-1

%description -n %{libname}
Libmspub is library providing ability to interpret and import Microsoft
Publisher content into various applications. You can find it being used
in libreoffice.

%files -n %{libname}
%{_libdir}/libmspub-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{lname}-devel = %{EVRD}
Obsoletes:	%{name}-doc < 0.1.2

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc AUTHORS
%license COPYING.*
%dir %{_includedir}/%{name}-%{api}
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/html

#----------------------------------------------------------------------------

%prep
%autosetup -p1
mkdir -p m4
autoreconf -fi

%build
%configure \
	--disable-static

sed -i \
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    libtool

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14205 |21mr|libmsym-0.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major     0.2
%define libname   %mklibname msym %{major}
%define develname %mklibname msym -d

Name:           libmsym
Version:        0.2.3
Release:        1
Summary:        Molecular point group symmetry lib
License:        MIT
Group:          System/Libraries
Url:            https://github.com/mcodev31/libmsym
Source0:        https://github.com/mcodev31/libmsym/archive/v%{version}-paper/%{name}-%{version}.tar.gz
Patch0:         libmsym-0.2.3-fix-version.patch

BuildRequires:  cmake
BuildRequires:  pkgconfig(python3)

%description
libmsym is a C library dealing with point group symmetry in molecules.

#----------------------------------------------------

%package -n     %{libname}
Summary:        Molecular point group symmetry lib
Group:          System/Libraries

%description -n %{libname}
libmsym is a C library dealing with point group symmetry in molecules.

#----------------------------------------------------

%package -n     %{develname}
Summary:        Development package for %{name}
Group:          Development/C++
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}
Provides:       msym-devel = %{version}-%{release}

%description -n %{develname}
Header files for development with %{name}.

#----------------------------------------------------

%package -n     python3-%{name}
Summary:        Python 3 bindings for %{name}
Group:          Development/Python
BuildArch:      noarch

%description -n python3-%{name}
Python 3 bindings for %{name}.

#----------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-paper
%autopatch -p1

%build
%cmake \
        -DINSTALL_LIB_DIR=%{_libdir} \
        -DINSTALL_CMAKE_DIR=%{_libdir}/cmake/%{name} \
        -DMSYM_BUILD_PYTHON=ON \
        -DPYTHON=%{__python3} \
        -DMSYM_PYTHON_INSTALL_OPTS=--root="%{buildroot}"

%make

%install
cd build
%makeinstall_std

%files -n %{libname}
%doc README.md
%{_libdir}/libmsym.so.0.2
%{_libdir}/libmsym.so.0.2.3

%files -n %{develname}
%doc README.md
%{_includedir}/%{name}/
%{_libdir}/libmsym.so
%{_libdir}/cmake/%{name}/

%files -n python3-%{name}
%doc bindings/python/README.md
%{py3_puresitedir}/%{name}/
%{py3_puresitedir}/%{name}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14206 |21mr|libmtp-1.1.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 9
%define libname %mklibname mtp %{major}
%define devname %mklibname mtp -d
%global _disable_rebuild_configure %nil

Summary:	Implementation of Microsoft's Media Transfer Protocol
Name:		libmtp
Version:	1.1.19
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libmtp.sourceforge.net/
Source0:	https://sourceforge.net/projects/libmtp/files/libmtp/%{version}/libmtp-%{version}.tar.gz
Patch0:		libmtp-1.1.6.xperia.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libusb-1.0)

%description
libmtp is an implementation of Microsoft's Media Transfer Protocol (MTP)
in the form of a library suitable primarily for POSIX compliant
operating systems. We implement MTP Basic, the stuff proposed for
standardization. MTP Enhanced is for Windows only, if we implement
it, well that depends...

It was initially based on (forked from) the great libptp2 library
by Mariusz Woloszyn but has since been moved over to follow Marcus
Meissners and Hubert Figuere's libgphoto2 fork of libptp2 (or is libptp2
a fork of libgphoto?). The core implementation is identical to
libgphoto2, there is just a different API adapted to portable media
players.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Requires:	%{name}-utils >= %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libmtp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%package doc
Summary:	Libmtp documentation
Group:		Documentation

%description doc
This package contains documentation of libmtp.

%files doc
%doc %{_datadir}/doc/%{name}/html

#----------------------------------------------------------------------------

%package utils
Summary:	Tools provided by libmtp
Group:		System/Libraries
Provides:	mtp-utils = %{EVRD}

%description utils
This package contains various tools provided by libmtp.

%files utils
%{_bindir}/*
%config(noreplace) %{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
/lib/udev/mtp-probe
/lib/udev/hwdb.d/69-libmtp.hwdb
/lib/udev/rules.d/*.rules

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--disable-static \
	--enable-doxygen \
	--with-udev=/lib/udev
%make

%install
%makeinstall_std

#-- FEDORA COPY
mkdir -p %{buildroot}%{_datadir}/hal/fdi/information/10freedesktop
install -p -m 644 libmtp.fdi %{buildroot}%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libmtp.fdi
#-- FEDORA COPY
# Replace links with relative links
rm -f %{buildroot}%{_bindir}/mtp-delfile
rm -f %{buildroot}%{_bindir}/mtp-getfile
rm -f %{buildroot}%{_bindir}/mtp-newfolder
rm -f %{buildroot}%{_bindir}/mtp-sendfile
rm -f %{buildroot}%{_bindir}/mtp-sendtr
pushd %{buildroot}%{_bindir}
ln -sf mtp-connect mtp-delfile
ln -sf mtp-connect mtp-getfile
ln -sf mtp-connect mtp-newfolder
ln -sf mtp-connect mtp-sendfile
ln -sf mtp-connect mtp-sendtr
popd

mkdir -p %{buildroot}%{_datadir}/doc/%{name}/html
mv -f %{buildroot}%{_datadir}/doc/%{name}-%{version}/html/* %{buildroot}/%{_datadir}/doc/%{name}/html/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14207 |21mr|libmusicbrainz5-5.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	package_name libmusicbrainz

%define	api 5
%define	major 1
%define	libname %mklibname musicbrainz %{api} %{major}
%define	devname %mklibname musicbrainz %{api} -d

Summary:	A software library for accesing MusicBrainz servers
Name:		libmusicbrainz5
Version:	5.1.0
Release:	6
License:	LGPLv2.1+
Group:		Sound
URL:		http://musicbrainz.org/doc/libmusicbrainz
Source0:	https://github.com/downloads/metabrainz/libmusicbrainz/%{package_name}-%{version}.tar.gz
#Patch0:	cmake_include_dir.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(libxml-2.0)

%description
The MusicBrainz client library allows applications to make metadata lookup to
a MusicBrainz server, generate signatures from WAV data and create CD Index
Disk ids from audio CD roms.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A software library for accesing MusicBrainz servers
Group:		System/Libraries

%description -n %{libname}
The MusicBrainz client library allows applications to make metadata lookup to
a MusicBrainz server, generate signatures from WAV data and create CD Index
Disk ids from audio CD roms.

%files -n %{libname}
%doc AUTHORS.txt COPYING.txt NEWS.txt
%{_libdir}/libmusicbrainz%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use libmusicbrainz
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libmusicbrainz.

%files -n %{devname}
%doc AUTHORS.txt COPYING.txt
%{_includedir}/musicbrainz%{api}
%{_libdir}/*.so
%{_libdir}/pkgconfig/libmusicbrainz%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{package_name}-%{version}
#apply_patches


%build
%global optflags %{optflags} -std=c++17
%setup_compile_flags

cmake . -DCMAKE_INSTALL_PREFIX=%{_prefix} \
%if "%{_lib}" != "lib"
	-DLIB_SUFFIX=64 \
%endif

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14208 |21mr|libmwaw-0.3.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname mwaw
%define api 0.3
%define major 3
%define libname %mklibname %{fname} %{api} %{major}
%define devname %mklibname %{fname} -d

Summary:	Import library for some old mac text documents
Name:		libmwaw
Version:	0.3.21
Release:	1
# The entire source code is LGPLv2+/MPLv2.0 except
# src/lib/MWAWOLEStream.[ch]xx which are BSD. There is also
# src/tools/zip/zip.cpp which is GPLv2+, but we do not build the binary
# it is used for.
License:	(LGPLv2+ or MPLv2.0) and BSD
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libmwaw/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(zlib)

%description
libmwaw contains some import filters for old mac text documents
(MacWrite, ClarisWorks, ... ) based on top of the libwpd (which is
already used in three word processors).

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform the supported formats into other formats
License:	LGPLv2+
Group:		Publishing

%description tools
Tools to transform the supported document formats into other formats.
Supported output formats are XHTML, text and raw.

%files tools
%{_bindir}/mwaw2csv
%{_bindir}/mwaw2html
%{_bindir}/mwaw2raw
%{_bindir}/mwaw2text
%{_bindir}/mwaw2svg

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Import library for some old mac text documents
Group:		System/Libraries

%description -n %{libname}
libmwaw contains some import filters for old mac text documents
(MacWrite, ClarisWorks, ... ) based on top of the libwpd (which is
already used in three word processors).

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc CHANGES COPYING.* README
%doc %{_docdir}/%{name}
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-werror \
	--disable-static \
	--disable-zip
%make

%install
%makeinstall_std
# it seems this tool is only useful on MacOS
rm -f %{buildroot}/%{_bindir}/mwawFile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14209 |21mr|libmygpo-qt-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           libmygpo-qt
Version:        1.1.0
Release:        2
Summary:        Qt/C++ Library wrapping the gPodder.net Webservice
Group:          Graphical desktop/KDE
License:        GPLv3
URL:            http://wiki.gpodder.org/wiki/Libmygpo-qt
Source0:        http://stefan.derkits.at/files/libmygpo-qt/%{name}.%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Network)

BuildRequires:  pkgconfig(QJson)
BuildRequires:  pkgconfig(QtCore)
BuildRequires:  pkgconfig(QtNetwork)

%description
libmygpo-qt is a Qt Library that wraps the gpodder.net Web API
(http://wiki.gpodder.org/wiki/Web_Services/API_2)

v1.0 wraps nearly every Request from the gpodder.net API except:
-) Simple API Calls Downloading subscription Lists & Uploading subscription
   Lists
-) Retrieving Subscription Changes (you should use "Retrieving Updates for a
   given Device" instead)

#-------------------------------------------------------------------------------

%define mygpoqt5_major 1
%define libmygpo_qt5 %mklibname mygpo-qt5_ %{mygpoqt5_major}

%package -n %{libmygpo_qt5}
Summary:        Qt5/C++ Library wrapping the gPodder.net Webservice
Group:          Graphical desktop/KDE

%description -n %{libmygpo_qt5}
Qt5/C++ Library wrapping the gPodder.net Webservice.

%files -n %{libmygpo_qt5}
%{_libdir}/libmygpo-qt5.so.%{mygpoqt5_major}*

#-------------------------------------------------------------------------------

%define mygpoqt5devel %mklibname mygpo-qt5 -d

%package -n %{mygpoqt5devel}
Summary:        Devel stuff for mygpo-qt5
Group:          Development/KDE and Qt
Requires:       %{libmygpo_qt5} = %{EVRD}
Provides:       mygpo-qt5-devel = %{EVRD}

%description -n %{mygpoqt5devel}
This package contains header files needed if you wish to build applications
based on mygpo-qt5.

%files -n %{mygpoqt5devel}
%{_qt5_includedir}/mygpo-qt/
%{_libdir}/pkgconfig/libmygpo-qt5.pc
%{_libdir}/libmygpo-qt5.so
%{_libdir}/cmake/mygpo-qt5/*.cmake
%dir %{_libdir}/cmake/mygpo-qt5

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{name}.%{version}

%build
%cmake \
        -DBUILD_WITH_QT4=OFF \
        -DINCLUDE_INSTALL_DIR=%{_qt5_includedir}/mygpo-qt
%make

%install
%makeinstall_std -C build



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14210 |21mr|libmypaint-1.6.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.6
%define major 0
%define girmajor 1.6
%define libname %mklibname mypaint %{api} %{major}
%define libname_gegl %mklibname mypaint-gegl %{major}
%define girname %mklibname mypaint-gir %{girmajor}
%define girname_gegl %mklibname mypaintgegl-gir %{girmajor}
%define devname %mklibname mypaint -d

Summary:	System libraries based on Mypaint
Name:		libmypaint
Version:	1.6.1
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		http://mypaint.org
Source0:	https://github.com/mypaint/libmypaint/releases/download/v%{version}/%{name}-%{version}.tar.xz
Patch0:		e2k-fix-omp-conditions.patch
BuildRequires:	doxygen
BuildRequires:	intltool
BuildRequires:	python3dist(breathe)
BuildRequires:	python3dist(sphinx)
BuildRequires:	pkgconfig(babl-0.1)
#not work, drop it BuildRequires:	pkgconfig(gegl-0.4)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(json-c)

%description
System libraries based on Mypaint.

#----------------------------------------------------------------------------

%package i18n
Summary:	Internationalization and locale data for libmypaint
Group:		System/Internationalization
Conflicts:	mypaint < 1.2.1

%description i18n
Internationalization and locale data for libmypaint.

%files i18n -f %{name}.lang
%license COPYING

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	System libraries based on Mypaint
Group:		System/Libraries

%description -n %{libname}
This is an independent release of libmypaint, the library associated
with Mypaint, as a separate module.

%files -n %{libname}
%doc CODE_OF_CONDUCT.md CONTRIBUTING.md README.md TODO
%license COPYING
%{_libdir}/libmypaint.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for MyPaint
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for MyPaint.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/MyPaint-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libmypaint
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{libname_gegl} < %{EVRD}
Requires:	%{girname} = %{EVRD}
Obsoletes:	%{girname_gegl} < %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	mypaint-devel < 1.2.1
Obsoletes:	mypaint-devel < 1.2.1

%description -n %{devname}
Development files for libmypaint.

%files -n %{devname}
%license COPYING
%{_datadir}/gir-1.0/MyPaint-%{girmajor}.gir
%{_includedir}/libmypaint/
%{_libdir}/libmypaint.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--enable-docs			\
	--enable-introspection=yes	\
	--enable-openmp
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14211 |21mr|libmysofa-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define major 1
%define libname %mklibname mysofa %{major}
%define devname %mklibname mysofa -d

Summary:    C library to read HRTFs if they are stored in the AES69-2015 SOFA format
Name:       libmysofa
Version:    1.3.1
Release:    1
Group:		System/Libraries
License:    BSD
URL:        https://hoene.github.io/libmysofa/
Source:     https://github.com/hoene/libmysofa/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake 
BuildRequires:	zlib-devel
BuildRequires:  gcc-c++
Requires:	%{libname} = %{EVRD}

%description
C library to read HRTFs if they are stored in the 
AES69-2015 SOFA format.

%files
%{_datadir}/%{name}/MIT_KEMAR_normal_pinna.sofa
%{_datadir}/%{name}/default.sofa

# -------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for libmysofa
Group:		System/Libraries

%description -n %{libname}
libmysofa library for ffmpeg.
This package contains the shared library file.

%files -n %{libname}
%{_libdir}/libmysofa.so.%{major}*

# -------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libmysofa
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
libmysofa library for ffmpeg.
This package contains the development files.

%files -n %{devname}
%{_includedir}/mysofa.h
%{_libdir}/libmysofa.so
%{_libdir}/pkgconfig/libmysofa.pc

# -------------------------------------------------------------------------

%prep
%setup -q

sed -i 's|/lib|/%{_lib}/pkgconfig|g' libmysofa.pc.cmake
sed -i 's|lib/pkgconfig|%{_lib}/pkgconfig|g' CMakeLists.txt

%build
%cmake -DBUILD_TESTS:BOOL='OFF' \
 -DCMAKE_BUILD_TYPE:STRING='Release' \
 -DCMAKE_COLOR_MAKEFILE:BOOL='ON' \
 -Wno-dev .

make

%install
%makeinstall_std -C build
rm -f %{buildroot}/%{_libdir}/libmysofa.a 
rm -f %{buildroot}/usr/lib/libmysofa.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14212 |21mr|libnatspec-0.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname natspec %{major}
%define devname %mklibname natspec -d

Summary:	Library for national and language-specific issues
Name:		libnatspec
Version:	0.3.0
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/natspec/
Source0:	https://netcologne.dl.sourceforge.net/project/natspec/natspec/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	pkgconfig(popt)

%description
Library for national and language-specific issues.

This library provides userful functions for mount, submount, mkisofs,
multimedia players. This library try to help resolve charset hell
(encoding problem) in a various programs depends on locale and messages.

%files
%doc AUTHORS README ChangeLog NEWS TODO README-ru.html
%{_bindir}/*
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for national and language-specific issues
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
Library for national and language-specific issues.

This library provides userful functions for mount, submount, mkisofs,
multimedia players. This library try to help resolve charset hell
(encoding problem) in a various programs depends on locale and messages.

%files -n %{libname}
/%{_lib}/libnatspec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package of library for national and language-specific issues
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the necessary include files for developing applications
with %{name}.

This library try to help resolve charset hell (encoding problem) in a various
programs depends on locale and messages.

%files -n %{devname}
%doc docs/html
%{_includedir}/*.h
/%{_lib}/*.so
%{_libdir}/pkgconfig/*
%{_datadir}/aclocal/*

#----------------------------------------------------------------------------

%package devel-examples
Summary:	Examples of %{name} using
Group:		Books/Howtos

%description devel-examples
The %{name}-devel package contains examples of patches for developing
applications with %{name}.

%files devel-examples
%doc examples profile

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fiv
%configure --with-i18n-file=/etc/locale.conf
%make

pushd docs
doxygen ./libnatspecDox.cfg
popd

%install
%makeinstall_std

# FIXME: I don't know how to install in /lib
# move to /lib
mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/%{name}.* %{buildroot}/%{_lib}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14213 |21mr|libndp-1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ndp %{major}
%define devname %mklibname ndp -d

Summary:	Library for Neighbor Discovery Protocol
Name:		libndp
Version:	1.8
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.libndp.org/
Source0:	http://www.libndp.org/files/%{name}-%{version}.tar.gz

%description
This package contains a library which provides a wrapper
for IPv6 Neighbor Discovery Protocol.  It also provides a tool
named ndptool for sending and receiving NDP messages.

#----------------------------------------------------------------------------

%package -n ndptool
Summary:	Tool for sending and receiving ndp messages
Group:		Networking/Other

%description -n ndptool
Tool for sending and receiving NDP messages.

%files -n ndptool
%{_bindir}/ndptool
%{_mandir}/man8/ndptool.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for Neighbor Discovery Protocol
Group:		System/Libraries

%description -n %{libname}
This package contains a library which provides a wrapper
for IPv6 Neighbor Discovery Protocol.  It also provides a tool
named ndptool for sending and receiving NDP messages.

%files -n %{libname}
%{_libdir}/libndp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for libndp development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	ndp-devel = %{EVRD}

%description -n %{devname}
The libndp-devel package contains the header files and libraries
necessary for developing programs using libndp.

%files -n %{devname}
%{_includedir}/ndp.h
%{_libdir}/libndp.so
%{_libdir}/pkgconfig/libndp.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14214 |21mr|libnest2d-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define devname %mklibname nest2d -d

Summary:	2D irregular bin packaging and nesting library written in modern C++
Name:		libnest2d
Version:	0.4
Release:	1
License:	LGPLv3+
Group:		Development/C++
Url:		https://github.com/tamasmeszaros/libnest2d
Source0:	https://github.com/tamasmeszaros/libnest2d/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# https://github.com/tamasmeszaros/libnest2d/pull/18
Patch0:		18.patch
BuildRequires:	cmake
BuildRequires:  boost-devel
BuildRequires:  pkgconfig(polyclipping)
BuildRequires:	pkgconfig(nlopt)

%description
A library and framework for the 2D bin packaging problem.

#------------------------------------------------------------------

%package -n %{devname}
Summary:        %{summary}
Requires:       boost-devel
Requires:       pkgconfig(polyclipping)
Requires:       pkgconfig(nlopt)
 
%description -n %{devname}
A library and framework for the 2D bin packaging problem.

%files -n %{devname}
%license LICENSE.txt
%doc README.md
%{_includedir}/libnest2d/
%{_libdir}/cmake/Libnest2D/

#------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# fix dir %%{_libdir}
sed -i -e "s/ lib\([^n]\)/ "%{_lib}"\1/" CMakeLists.txt

%build
%cmake \
     -DLIBNEST2D_HEADER_ONLY=ON
%make

%install
%makeinstall_std -C build



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14215 |21mr|libnet-1.1.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname net %{major}
%define devname %mklibname net -d

Summary:	A C library for portable packet creation
Name:		libnet
Version:	1.1.6
Release:	11
License:	BSD
Group:		System/Libraries
Url:		http://www.sourceforge.net/projects/libnet-dev/
Source0:	http://downloads.sourceforge.net/libnet-dev/%{name}-%{version}.tar.gz
BuildRequires:	pcap-devel

%description
Libnet is an API to help with the construction and handling of network packets.
It provides a portable framework for low-level network packet writing and
handling (use libnet in conjunction with libpcap and you can write some really
cool stuff). Libnet includes packet creation at the IP layer and at the link
layer as well as a host of supplementary and complementary functionality.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C library for portable packet creation
Group: 		System/Libraries

%description -n %{libname}
Libnet is an API to help with the construction and handling of network packets.
It provides a portable framework for low-level network packet writing and
handling (use libnet in conjunction with libpcap and you can write some really
cool stuff). Libnet includes packet creation at the IP layer and at the link
layer as well as a host of supplementary and complementary functionality.

%files -n %{libname}
%{_libdir}/libnet.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the libnet library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libnet-devel package includes header files and libraries necessary for
developing programs which use the libnet library. Libnet is very handy with
which to write network tools and network test code. See the manpage and sample
test code for more detailed information.

%files -n %{devname}
%doc README doc/CHANGELOG doc/COPYING
%doc doc/DESIGN_NOTES doc/MIGRATION doc/PACKET_BUILDING
%doc doc/RAWSOCKET_NON_SEQUITUR doc/TODO doc/html/ __dist_sample/sample/
%{_bindir}/libnet-config
%{_includedir}/libnet.h
%dir %{_includedir}/libnet
%{_includedir}/libnet/*.h
%{_libdir}/*.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
# Keep the sample directory untouched by make
rm -rf __dist_sample
mkdir __dist_sample
cp -a sample __dist_sample
#fix build with new automake
sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.*
libtoolize --copy --force
autoreconf -fi

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std INSTALL='install -p'

# Prepare samples directory and perform some fixes
rm -rf __dist_sample/sample/win32
rm -f __dist_sample/sample/Makefile.{am,in}
sed -e 's@#include "../include/libnet.h"@#include <libnet.h>@' \
	__dist_sample/sample/libnet_test.h > __dist_sample/sample/libnet_test.h.new
touch -c -r __dist_sample/sample/libnet_test.h{,.new}
mv -f __dist_sample/sample/libnet_test.h{.new,}

# Remove makefile relics from documentation
rm -f doc/html/Makefile*

# Correct wrong line endings at CHANGELOG and CONTRIB
for file in CHANGELOG CONTRIB; do
	sed -e 's/\r$//' doc/$file > doc/$file.new
	touch -c -r doc/$file doc/$file.new
	mv -f doc/$file.new doc/$file
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14216 |21mr|libnetfilter_acct-1.0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname netfilter_acct %{major}
%define libnamedevel %mklibname netfilter_acct -d

Summary:	Netfilter extended accounting infrastructure library
Name:		libnetfilter_acct
Version:	1.0.2
Release:	5
Group:		System/Libraries
License:	GPL
URL:		http://www.netfilter.org/projects/libnetfilter_acct/index.html
Source0:	http://www.netfilter.org/projects/libnetfilter_acct/files/libnetfilter_acct-%{version}.tar.bz2
Source1:	http://www.netfilter.org/projects/libnetfilter_acct/files/libnetfilter_acct-%{version}.tar.bz2.sig
BuildRequires:	pkgconfig(libmnl) >= 1.0.0

%description
libnetfilter_acct is the userspace library providing interface to extended
accounting infrastructure.

%package -n %{libname}
Summary:	Netfilter extended accounting infrastructure library
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Provides:	netfilter_acct = %{version}-%{release}

%description -n %{libname}
libnetfilter_acct is the userspace library providing interface to extended
accounting infrastructure.

%package -n %{libnamedevel}
Summary:        Development files for %{name}
Group:          System/Libraries
Provides:	netfilter_acct-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{libnamedevel}
This package contains the development files for %{name}.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.la

%files -n %{libname}
%doc COPYING README
%{_libdir}/*.so.%{major}*

%files -n %{libnamedevel}
%{_includedir}/libnetfilter_acct
%{_libdir}/*.so
%{_libdir}/pkgconfig/libnetfilter_acct.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14217 |21mr|libnetfilter_conntrack-1.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname netfilter_conntrack %{major}
%define devname %mklibname netfilter_conntrack -d

Summary:	Interface to the in-kernel connection tracking state table
Name:		libnetfilter_conntrack
Version:	1.0.8
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.netfilter.org/projects/%{name}/
Source0:	http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
Source1:	http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2.sig
BuildRequires:	pkgconfig(libmnl)
BuildRequires:	pkgconfig(libnfnetlink)

%description
A libnetfilter_conntrack is a userspace library providing a programming \
interface (API) to the in-kernel connection tracking state table.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libnetfilter_conntrack.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	netfilter_conntrack-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libnetfilter_conntrack.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14218 |21mr|libnetfilter_cthelper-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major                 0
%define libname               %mklibname netfilter_cthelper %{major}
%define libnamedevel          %mklibname netfilter_cthelper -d

Name:           libnetfilter_cthelper
Version:        1.0.0
Release:        7
Summary:        Interface to the user-space helper infrastructure
Group:          System/Libraries
License:        GPL
URL:            http://www.netfilter.org/projects/libnetfilter_cthelper/
Source0:        http://www.netfilter.org/projects/libnetfilter_cthelper/files/libnetfilter_cthelper-%{version}.tar.bz2
Source1:        http://www.netfilter.org/projects/libnetfilter_cthelper/files/libnetfilter_cthelper-%{version}.tar.bz2.sig
BuildRequires: pkgconfig(libmnl) >= 1.0.3

%description
libnetfilter_cthelper is the userspace library that provides the programming \
interface to the user-space helper infrastructure available since Linux \
kernel 3.6. With this library, you register, configure, enable and disable \
user-space helpers.

%package -n %{libname}
Summary:        Main library for %{name}
Group:          System/Libraries
Provides:       %{name} = %{version}-%{release}
Provides:       netfilter_cthelper = %{version}-%{release}

%description -n %{libname}
libnetfilter_cthelper is the userspace library that provides the programming \
interface to the user-space helper infrastructure available since Linux \
kernel 3.6. With this library, you register, configure, enable and disable \
user-space helpers.

%package -n %{libnamedevel}
Summary:        Development files for %{name}
Group:          System/Libraries
Provides:       netfilter_cthelper-devel = %{version}-%{release}
Requires:       %{libname} = %{version}-%{release}

%description -n %{libnamedevel}
This package contains the development files for %{name}.

%prep
%setup -q

%build
%{configure2_5x} --disable-static
%{make}

%install
%{makeinstall_std}
rm -f %{buildroot}%{_libdir}/*.la

%check
%{make} check

%files -n %{libname}
%doc COPYING
%{_libdir}/*.so.%{major}
%{_libdir}/*.so.%{major}.*

%files -n %{libnamedevel}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14219 |21mr|libnetfilter_cttimeout-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname netfilter_cttimeout %{major}
%define develname %mklibname netfilter_cttimeout -d

Summary:	Netfilter extended cttimeout infrastructure library
Name:		libnetfilter_cttimeout
Version:	1.0.0
Release:	7
License:	GPLv2+
Group:		System/Kernel and hardware
URL:		http://www.netfilter.org/projects/%{name}/
Source0:	http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2
Source1:	http://www.netfilter.org/projects/%{name}/files/%{name}-%{version}.tar.bz2.sig
BuildRequires:	pkgconfig(libmnl) >= 1.0.0

%description
libnetfilter_cttimeout is the userspace library that provides the programming
interface to the fine-grain connection tracking timeout infrastructure. With
this library, you can create, update and delete timeout policies that can be
attached to traffic flows. This library is used by conntrack-tools.

%package -n	%{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	netfilter_cttimeout-devel = %{version}-%{release}

%description -n	%{develname}
This package contains the development files for %{name}.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.la

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/%{name}*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14220 |21mr|libnetfilter_queue-1.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname netfilter_queue %{major}
%define devname %mklibname netfilter_queue -d

Summary:	Provides an API for packets that have been queued by the kernel packet filter
Name:		libnetfilter_queue
Version:	1.0.2
Release:	7
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.netfilter.org/projects/libnetfilter_queue/index.html
Source0:	http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-%{version}.tar.bz2
Source1:	http://www.netfilter.org/projects/libnetfilter_queue/files/libnetfilter_queue-%{version}.tar.bz2.sig
Patch0:		libnetfilter_queue-1.0.2-gcc4.9.patch
BuildRequires:	pkgconfig(libnfnetlink)
BuildRequires:	pkgconfig(libmnl) >= 1.0.3

%description
libnetfilter_queue is a userspace library providing an API to
packets that have been queued by the kernel packet filter. It is
part of a system that deprecates the old ip_queue/libipq mechanism.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Provides:	netfilter_queue = %{EVRD}

%description -n %{libname}
libnetfilter_queue is a userspace library providing an API for
packets that have been queued by the kernel packet filter. It is
part of a system that deprecates the old ip_queue/libipq mechanism.

%files -n %{libname}
%doc COPYING
%{_libdir}/libnetfilter_queue.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	netfilter_queue-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libnetfilter_queue.so
%{_libdir}/pkgconfig/libnetfilter_queue.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14221 |21mr|libnfnetlink-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major                 0
%define libname               %mklibname nfnetlink %{major}
%define libnamedevel          %mklibname nfnetlink -d
%define libnamedevelold       %mklibname nfnetlink 0-devel
%define libnamestaticdevel    %mklibname nfnetlink -d -s
%define libnamestaticdevelold %mklibname nfnetlink 0-static-devel

Name:           libnfnetlink
Version:	1.0.2
Release:	1
Epoch:          0
Summary:        Userspace library for handling of netfilter netlink messages
Group:          System/Libraries
License:        GPL
URL:            http://www.netfilter.org/projects/libnfnetlink/index.html
Source0:        http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-%{version}.tar.bz2
Source1:        http://www.netfilter.org/projects/libnfnetlink/files/libnfnetlink-%{version}.tar.bz2.sig

%description
nfnetlink is a netlink(7) based kernel/userspace transport layer. It
provides a unified kernel/userspace interface for the various netfilter
subsystems, such as connection tracking, logging and queueing.

%package -n %{libname}
Summary:        Main library for %{name}
Group:          System/Libraries
Provides:       %{name} = %{epoch}:%{version}-%{release}
Provides:       nfnetlink = %{epoch}:%{version}-%{release}

%description -n %{libname}
libnfnetlink is a userspace library that provides some low-level
nfnetlink handling functions. It is used as a foundation for other, netfilter
subsystem specific libraries such as libnfnetlink_conntrack, libnfnetlink_log
and libnfnetlink_queue.

%package -n %{libnamedevel}
Summary:        Development files for %{name}
Group:          System/Libraries
Obsoletes:      %{libnamedevelold} < %{epoch}:%{version}-%{release}
Obsoletes:	%{mklibname -d nfnetlink 1} < %{epoch}:%{version}-%{release}
Provides:       nfnetlink-devel = %{epoch}:%{version}-%{release}
Requires:       %{libname} = %{epoch}:%{version}-%{release}

%description -n %{libnamedevel}
This package contains the development files for %{name}.

%package -n %{libnamestaticdevel}
Summary:        Static development files for %{name}
Group:          System/Libraries
Obsoletes:      %{libnamestaticdevelold} < %{epoch}:%{version}-%{release}
Obsoletes:      %{mklibname -s -d nfnetlink 1} < %{epoch}:%{version}-%{release}
Provides:       nfnetlink-static-devel = %{epoch}:%{version}-%{release}
Requires:       %{libnamedevel} = %{epoch}:%{version}-%{release}

%description -n %{libnamestaticdevel}
This package contains the static development files for %{name}.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%check
%make check

rm -f %{buildroot}%{_libdir}/*.la

%files -n %{libname}
%doc README
%{_libdir}/*.so.%{major}*

%files -n %{libnamedevel}
%{_includedir}/libnfnetlink
%{_libdir}/*.so
%{_libdir}/pkgconfig/libnfnetlink.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14222 |21mr|libnfs-4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	13
%define	libname	%mklibname nfs %{major}
%define	devname	%mklibname nfs -d

Summary:	Client library for accessing NFS shares over a network
Name:		libnfs
Version:	4.0.0
Release:	1
# Examples and utils are GPL
License:	LGPLv2+ and GPLv3+
Group:		System/Libraries
Url:		https://github.com/sahlberg/libnfs
Source0:	https://github.com/downloads/sahlberg/libnfs/%{name}-%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(popt)

%description
LIBNFS is a client library for accessing NFS shares over a network.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of libnfs
License:	LGPLv2+
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
LIBNFS is a client library for accessing NFS shares over a network.

This package contains the library needed to run programs dynamically
linked with libnfs.

%files -n %{libname}
%doc LICENCE-LGPL-2.1.txt
%{_libdir}/libnfs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for libnfs development
License:	LGPLv2+
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	nfs-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that are needed to develop
applications that use libnfs.

%files -n %{devname}
%doc CHANGELOG README
%{_libdir}/lib*.so
%{_includedir}/nfsc/libnfs*.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package utils
Summary:	An NFS implementation based on libnfs and FUSE
License:	GPLv3+
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
# Libnfs-fuse is now a separate source tree: if needed the package can be resurrected
# from https://github.com/sahlberg/fuse-nfs
Conflicts:	%{name}-fuse < %{EVRD}

%description utils
Nfs-aware utils: cat, cp and ls.

%files utils
%doc LICENCE-GPL-3.txt
%{_bindir}/nfs-cat
%{_bindir}/nfs-cp
%{_bindir}/nfs-ls
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package preload
Summary:	LD_PRELOADable library for making NFS available
License:	GPLv3+
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}nfs-devel < 1.9.3

%description preload
A LD_PRELOADable module that can be used to make several standard utilities
nfs aware. It is still very incomplete but can be used for basic things
such as cat and cp. Patches to add more coverage is welcome.
You can try things like:
LD_NFS_DEBUG=9 LD_PRELOAD=./ld_nfs.so cat nfs://your.server/data/tmp/foo123 .
Or:
LD_NFS_DEBUG=9 LD_PRELOAD=./ld_nfs.so cp nfs://your.server/data/tmp/foo123 \
   nfs://your.server/data/tmp/foo123.copy .

%files preload
%doc LICENCE-GPL-3.txt
%{_libdir}/ld_nfs.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

# Fix perms
find -name "*.h" -o -name "*.c" | xargs chmod -x


# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,<sys/types.h>,<sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;


%build
./bootstrap
%configure --disable-static \
		--disable-werror \
		--enable-utils
%make

# Build the only example program we want: the preload module
%__cc %{optflags} -fPIC -shared -o ld_nfs.so examples/ld_nfs.c -Iinclude -Llib/.libs -ldl -lnfs


%install
%makeinstall_std

# Install the preload module
install -m 755 ld_nfs.so %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14223 |21mr|libnftnl-1.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname nftnl %{major}
%define devname %mklibname nftnl -d

Summary:	Userspace library for handling of netfilter netlink messages
Name:		libnftnl
Version:	1.2.3
Release:	1
Group:		System/Libraries
License:	GPLv2
URL:		http://netfilter.org/projects/libnftnl/index.html
Source0:	http://netfilter.org/projects/libnftnl/files/libnftnl-%{version}.tar.bz2
BuildRequires:	pkgconfig(libmnl)
BuildRequires:	pkgconfig(jansson)

%description
It is a userspace library providing a low-level netlink programming
interface (API) to the in-kernel nf_tables subsystem.
The library libnftnl has been previously known as libnftables.
This library is currently used by nftables.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
It is a userspace library providing a low-level netlink programming
interface (API) to the in-kernel nf_tables subsystem.
The library libnftnl has been previously known as libnftables.
This library is currently used by nftables.

%files -n %{libname}
%doc COPYING
%{_libdir}/*.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14224 |21mr|libnice-0.1.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gstapi 1.0
%define girmajor 0.1
%define oname nice
%define major 10
%define libname %mklibname %{oname} %{major}
%define girname %mklibname %{oname}-gir %{girmajor}
%define devname %mklibname %{oname} -d

Summary:	Implementation of the IETF's draft I.C.E standard
Name:		libnice
Version:	0.1.19
Release:	2
License:	LGPLv2+ and MPLv1+
Group:		System/Libraries
Url:		http://nice.freedesktop.org/wiki/
Source0:	http://nice.freedesktop.org/releases/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:  pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{gstapi})
BuildRequires:	pkgconfig(gupnp-igd-1.0)
BuildRequires:	meson
BuildRequires:	openssl-devel

%description
Nice is an implementation of the IETF's draft Interactive Connectivity
Establishment standard (ICE). It provides GLib-based library, libnice.

ICE is useful for applications that want to establish peer-to-peer UDP
data streams. It automates the process of traversing NATs and provides
security against some attacks.

Existing standards that use ICE include the Session Initiation Protocol
(SIP) and Jingle, XMPP extension for audio/video calls.

Nice includes integration with GStreamer. It is used by Farsight for RTP
transport.

#----------------------------------------------------------------------------

%package utils
Summary:	Dynamic libraries from %{oname}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-utils = %{EVRD}

%description utils
This package contains various tools from %{name}.

%files utils
%{_bindir}/s*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{oname}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Obsoletes:	%{_lib}nice1 < 0.1.1-4

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/libnice.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}libnice-gir0.1 < 0.1.13-5
Obsoletes:	%{_lib}libnice-gir0.1 < 0.1.13-5

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Nice-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary: 	Header files, libraries and development documentation for %{oname}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{oname}. If you like to develop programs using %{oname},
you will need to install %{oname}-devel.

%files -n %{devname}
%doc AUTHORS COPYING COPYING.LGPL COPYING.MPL NEWS README
%{_includedir}/%{oname}/*.h
%{_includedir}/stun/*.h
%{_includedir}/stun/usages/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{oname}.pc
%{_datadir}/gir-1.0/Nice-%{girmajor}.gir

#----------------------------------------------------------------------------

%package -n gstreamer%{gstapi}-%{oname}
Summary:	Gstreamer elements from %{oname}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
# conflict with older %%libname that had the gst .so, before the split
Conflicts:	%{_lib}nice0 < 0.1.0
Conflicts:	%{_lib}nice1 < 0.1.0
Obsoletes:	gstreamer0.10-%{oname} < 0.1.7

%description -n gstreamer%{gstapi}-%{oname}
Gstreamer elements from %{oname}.

%files -n gstreamer%{gstapi}-%{oname}
%{_libdir}/gstreamer-%{gstapi}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

#% check
#disabled due fails
#make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14225 |21mr|libnih-1.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 1
%define libname %mklibname nih %{major}
%define libdbusname %mklibname nih-dbus %{major}
%define devname %mklibname nih -d

%define debugcflags %{nil}
%define debug_package %{nil}

%global __requires_exclude .*GLIBC_PRIVATE.*

Summary:	Small, efficient and safe library of general purpose routines
Name:		libnih
Version:	1.0.3
Release:	6
Epoch:		1
License:	GPLv2+
Group:		System/Libraries
Url:		https://launchpad.net/libnih
Source0:	https://launchpad.net/libnih/1.0/1.0.3/+download/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)

%description
libnih is a small library for C application development containing functions
that are not implemented elsewhere in the standard library set. libnih is
roughly equivalent to other C libraries such as glib, except that its focus
is on a small size and intended for applications that sit very low in the
software stack, especially outside of /usr.
It expressly does not reimplement functions that already exist in libraries
ordinarily shipped in /lib such libc6, and does not do foolish things like
invent arbitrary typedefs for perfectly good C types.

#----------------------------------------------------------------------------

%package utils
Summary:	D-Bus binding code generator
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description utils
This package contains nih-dbus-tool utility.

%files utils
%doc README AUTHORS COPYING
%{_bindir}/nih-dbus-tool
%{_mandir}/man1/nih-dbus-tool.1.xz

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main libnih library
Group:		System/Libraries

%description -n %{libname}
Main libnih library.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{libdbusname}
Summary:	DBUS libnih library
Group:		System/Libraries

%description -n %{libdbusname}
DBUS libnih library.

%files -n %{libdbusname}
%{_libdir}/%{name}-dbus.so.%{major}
%{_libdir}/%{name}-dbus.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libnih
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libdbusname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Developement files for libnih.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}.h
%{_includedir}/%{name}-dbus.h
%{_includedir}/nih/*.h
%{_includedir}/nih-dbus/*.h
%{_libdir}/%{name}.so
%{_libdir}/%{name}-dbus.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}-dbus.pc
%{_datadir}/aclocal/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

# These files are not required
rm -f %{buildroot}%{_libdir}/%{name}*.a

# Build process under x86_64 systems places *.pc files into
# /usr/lib/pkgconfig instead of /usr/lib64/pkgconfig
if [ ! -d %{buildroot}%{_libdir}/pkgconfig ]
then
	mv %{buildroot}/usr/lib/pkgconfig %{buildroot}%{_libdir}
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14226 |21mr|libnjb-2.2.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname njb %{major}
%define devname %mklibname njb -d

Summary:	A software library for talking to the Creative Nomad Jukeboxes and Dell DJs
Name:		libnjb
Version:	2.2.7
Release:	9
License:	BSD
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libnjb/
Source0:	%{name}-%{version}.tar.gz
Patch0:		libnjb-2.2.6-optimize-udev-rule.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libusb)

%description
Provides a user-level API (C library) for communicating with the Creative
Nomad JukeBox MP3 player under Linux and *BSD, as well as simple command-line
utilities to demonstrate the API functions. This library works in user space.

%files
%doc AUTHORS ChangeLog FAQ HACKING  README LICENSE
%{_bindir}/*
# %config(noreplace) %{_sysconfdir}/udev/rules.d/60-libnjb.rules
%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libnjb.fdi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Provides a user-level API (C library) for communicating with the Creative
Nomad JukeBox MP3 player under Linux and *BSD, as well as simple command-line
utilities to demonstrate the API functions. This library works in user space.

%files -n %{libname}
%{_libdir}/libnjb.so.%{major}*

#----------------------------------------------------------------------------

%package -n 	%{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%doc installed-docs/*
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/%{name}.a
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
# %patch0 -p1 -b .udev_opt~

%build
%configure --enable-static
%make

%install
%makeinstall pkgdocdir=`pwd`/installed-docs
#gw TODO fix device ownership
#install -m644 nomad.rules -D %{buildroot}%{_sysconfdir}/udev/rules.d/60-libnjb.rules
install -m644 libnjb.fdi -D %{buildroot}%{_datadir}/hal/fdi/information/10freedesktop/10-usb-music-players-libnjb.fdi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14227 |21mr|libnl3-3.5.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 3
%define major 200
%define libname %mklibname nl %{api} %{major}
%define libcli %mklibname nl-cli %{api} %{major}
%define libgenl %mklibname nl-genl %{api} %{major}
%define libnf %mklibname nl-nf %{api} %{major}
%define libroute %mklibname nl-route %{api} %{major}
%define libidiag %mklibname nl-idiag %{api} %{major}
%define libxfrm %mklibname nl-xfrm %{api} %{major}
%define devname %mklibname nl %{api} -d

Summary:	Library for applications dealing with netlink sockets
Name:		libnl3
Version:	3.5.0
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/thom311/libnl
Source0:	https://github.com/thom311/libnl/releases/download/libnl3_5_0/libnl-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	libtool

%description
libnl is a library for applications dealing with netlink sockets.
The library provides an interface for raw netlink messaging and
various netlink family specific interfaces.

#----------------------------------------------------------------------------

%package -n libnl3-tools
Summary:	Applications dealing with netlink sockets
Group:		System/Kernel and hardware
Conflicts:	%{_lib}nl_3 < 3.2.22-2

%description -n libnl3-tools
libnl is a library for applications dealing with netlink sockets.
The library provides an interface for raw netlink messaging and
various netlink family specific interfaces.

%files -n libnl3-tools
%dir %{_sysconfdir}/libnl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/libnl/classid
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/libnl/pktloc
%{_bindir}/nl-*
%{_bindir}/nf-*
%{_bindir}/genl-ctrl-list
%{_bindir}/idiag-socket-details
%{_mandir}/man8/*
%dir %{_libdir}/libnl
%dir %{_libdir}/libnl/cli
%dir %{_libdir}/libnl/cli/qdisc
%dir %{_libdir}/libnl/cli/cls
%{_libdir}/libnl/cli/qdisc/htb.so
%{_libdir}/libnl/cli/qdisc/blackhole.so
%{_libdir}/libnl/cli/qdisc/pfifo.so
%{_libdir}/libnl/cli/qdisc/bfifo.so
%{_libdir}/libnl/cli/cls/basic.so
%{_libdir}/libnl/cli/cls/cgroup.so
%{_libdir}/libnl/cli/qdisc/plug.so
%{_libdir}/libnl/cli/qdisc/fq_codel.so
%{_libdir}/libnl/cli/qdisc/ingress.so
%{_libdir}/libnl/cli/qdisc/hfsc.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for applications dealing with netlink sockets
Group:		System/Libraries
Obsoletes:	%{_lib}nl_3 < 3.2.22-2

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%{_libdir}/libnl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcli}
Summary:	Library for applications dealing with netlink sockets
Group:		System/Libraries
Conflicts:	%{_lib}nl_3 < 3.2.22-2

%description -n %{libcli}
This package contains a shared library for %{name}.

%files -n %{libcli}
%{_libdir}/libnl-cli-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgenl}
Summary:	Library for applications dealing with netlink sockets
Group:		System/Libraries
Conflicts:	%{_lib}nl_3 < 3.2.22-2

%description -n %{libgenl}
This package contains a shared library for %{name}.

%files -n %{libgenl}
%{_libdir}/libnl-genl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnf}
Summary:	Library for applications dealing with netlink sockets
Group:		System/Libraries
Conflicts:	%{_lib}nl_3 < 3.2.22-2

%description -n %{libnf}
This package contains a shared library for %{name}.

%files -n %{libnf}
%{_libdir}/libnl-nf-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libroute}
Summary:	Library for applications dealing with netlink sockets
Group:		System/Libraries
Conflicts:	%{_lib}nl_3 < 3.2.22-2

%description -n %{libroute}
This package contains a shared library for %{name}.

%files -n %{libroute}
%{_libdir}/libnl-route-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libidiag}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}nl_3 < 3.2.22-2

%description -n %{libidiag}
Netlink Inet Diag Family Library.

%files -n %{libidiag}
%{_libdir}/libnl-idiag-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libxfrm}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}nl_3 < 3.2.22-2

%description -n %{libxfrm}
Netlink Inet Diag Family Library.

%files -n %{libxfrm}
%{_libdir}/libnl-xfrm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files of libnl
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcli} = %{EVRD}
Requires:	%{libgenl} = %{EVRD}
Requires:	%{libnf} = %{EVRD}
Requires:	%{libroute} = %{EVRD}
Requires:	%{libidiag} = %{EVRD}
Requires:	%{libxfrm} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}nl_3-devel < 3.2.22-2
Obsoletes:	%{_lib}nl_3-devel < 3.2.22-2

%description -n %{devname}
libnl is a library for applications dealing with netlink sockets.
The library provides an interface for raw netlink messaging and
various netlink family specific interfaces.

%files -n %{devname}
%dir %{_includedir}/libnl3
%dir %{_includedir}/libnl3/netlink
%dir %{_includedir}/libnl3/netlink/fib_lookup
%dir %{_includedir}/libnl3/netlink/route
%dir %{_includedir}/libnl3/netlink/route/qdisc
%dir %{_includedir}/libnl3/netlink/route/link
%dir %{_includedir}/libnl3/netlink/route/cls
%dir %{_includedir}/libnl3/netlink/route/cls/ematch
%dir %{_includedir}/libnl3/netlink/genl
%dir %{_includedir}/libnl3/netlink/netfilter
%dir %{_includedir}/libnl3/netlink/cli
%dir %{_includedir}/libnl3/netlink/idiag
%dir %{_includedir}/libnl3/netlink/xfrm
%dir %{_includedir}/libnl3/netlink/route/act
%{_includedir}/libnl3/netlink/*.h
%{_includedir}/libnl3/netlink/xfrm/*.h
%{_includedir}//libnl3/netlink/idiag/*.h
%{_includedir}/libnl3/netlink/fib_lookup/*.h
%{_includedir}/libnl3/netlink/route/*.h
%{_includedir}/libnl3/netlink/route/qdisc/*.h
%{_includedir}/libnl3/netlink/route/link/*.h
%{_includedir}/libnl3/netlink/route/cls/*.h
%{_includedir}/libnl3/netlink/route/act/*.h
%{_includedir}/libnl3/netlink/route/cls/ematch/*.h
%{_includedir}/libnl3/netlink/genl/*.h
%{_includedir}/libnl3/netlink/netfilter/*.h
%{_includedir}/libnl3/netlink/cli/*.h
%{_libdir}/libnl-cli-%{api}.so
%{_libdir}/libnl-genl-%{api}.so
%{_libdir}/libnl-%{api}.so
%{_libdir}/libnl-nf-%{api}.so
%{_libdir}/libnl-route-%{api}.so
%{_libdir}/libnl-idiag-%{api}.so
%{_libdir}/libnl-xfrm-%{api}.so
%{_libdir}/pkgconfig/libnl-%{api}.0.pc
%{_libdir}/pkgconfig/libnl-cli-%{api}.0.pc
%{_libdir}/pkgconfig/libnl-genl-%{api}.0.pc
%{_libdir}/pkgconfig/libnl-nf-%{api}.0.pc
%{_libdir}/pkgconfig/libnl-route-%{api}.0.pc
%{_libdir}/pkgconfig/libnl-idiag-%{api}.0.pc
%{_libdir}/pkgconfig/libnl-xfrm-%{api}.0.pc

#----------------------------------------------------------------------------

%prep
%setup -qn libnl-%{version}

%build
autoreconf -fi
%configure \
	--disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14228 |21mr|libnma-1.8.40-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define gir_major	1.0

%define libname		%mklibname nma %{major}
%define girname		%mklibname nma-gir %{gir_major}
%define devname		%mklibname nma -d

%define url_ver		%(echo %{version} | cut -d "." -f -2)

%if %{mdvver} >= 201910
%bcond_without vala
%else
# not buildable with old vala
%bcond_with vala
%endif

Name:		libnma
Version:	1.8.40
Release:	4
Summary:	Shared library for NetworkManager-applet
License:	GPLv2+
Group:		System/Libraries
URL:		https://gitlab.gnome.org/GNOME/libnma
Source0:	https://download.gnome.org/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	pkgconfig(gck-1)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gmodule-export-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(mobile-broadband-provider-info)
BuildRequires:	pkgconfig(vapigen)

%description
Shared library for NetworkManager-applet.

%files -f %{name}.lang
%{_datadir}/glib-2.0/schemas/org.gnome.nm-applet.gschema.xml

#------------------------------------------------

%package -n	%{libname}
Summary:	Shared library for NetworkManager-applet
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	mobile-broadband-provider-info

%description -n	%{libname}
This private package contains the libnma libraries.

%files -n %{libname}
%doc AUTHORS NEWS
%license COPYING
%{_libdir}/libnma-gtk4.so.%{major}{,.*}
%{_libdir}/libnma.so.%{major}{,.*}

#------------------------------------------------

%package -n	%{girname}
Summary:	GObject Introspection interface description for NMA
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for NMA.

%files -n %{girname}
%{_libdir}/girepository-1.0/NMA4-%{gir_major}.typelib
%{_libdir}/girepository-1.0/NMA-%{gir_major}.typelib

#------------------------------------------------

%package -n	%{devname}
Summary:	Development files for nma
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	nma-devel = %{EVRD}

%description -n	%{devname}
Header files for development with nma.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/%{name}/
%{_datadir}/gir-1.0/NMA-1.0.gir
%{_datadir}/gir-1.0/NMA4-1.0.gir
%dir %{_includedir}/libnma
%{_includedir}/libnma/nma-*.h
%{_libdir}/libnma-gtk4.so
%{_libdir}/libnma.so
%{_libdir}/pkgconfig/libnma-gtk4.pc
%{_libdir}/pkgconfig/libnma.pc
%if %{with vala}
%{_datadir}/vala/vapi/libnma.deps
%{_datadir}/vala/vapi/libnma-gtk4.deps
%{_datadir}/vala/vapi/libnma-gtk4.vapi
%{_datadir}/vala/vapi/libnma.vapi
%endif

#------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dlibnma_gtk4=true	\
%if %{with vala}
	-Dvapi=true
%else
	-Dvapi=false
%endif
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14229 |21mr|libnotify-0.7.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define girmajor 0.7
%define libname %mklibname notify %{major}
%define girname %mklibname notify-gir %{girmajor}
%define devname %mklibname notify -d

Summary:	Desktop notifications library
Name:		libnotify
Version:	0.7.9
Release:	2
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.galago-project.org/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/libnotify/0.7/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0) >= 2.90
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(popt)
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	xmlto
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl-ns
BuildRequires:	python3-pygments
Requires:	virtual-notification-daemon

%description
A library that sends desktop notifications to a notification daemon, as
defined in the Desktop Notifications spec. These notifications can be
used to inform the user about an event or display some form of
information without getting in the user's way.

%files
%{_bindir}/*
%{_mandir}/man1/notify-send.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Desktop notifications library - shared library

%description -n %{libname}
A library that sends desktop notifications to a notification daemon, as
defined in the Desktop Notifications spec. These notifications can be
used to inform the user about an event or display some form of
information without getting in the user's way.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Group:		System/Libraries
Summary:	GObject Introspection interface library for %{name}
Requires:	%{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Notify-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Group:		Development/C
Summary:	Desktop notifications library - headers
Requires:	%{libname} = %{version}-%{release}
Requires:	%{girname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{mklibname -d notify 1} < 0.7

%description -n %{devname}
A library that sends desktop notifications to a notification daemon, as
defined in the Desktop Notifications spec. These notifications can be
used to inform the user about an event or display some form of
information without getting in the user's way.

%files -n %{devname}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*
%{_datadir}/doc/libnotify/spec/notification-spec.html
%{_datadir}/gtk-doc/html/*
%{_datadir}/gir-1.0/Notify-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14230 |21mr|libnova-0.15.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 0.15
%define libname %mklibname nova %{api} %{major}
%define devname %mklibname nova -d

Summary:	General purpose astronomy & astrodynamics library
Name:		libnova
Version:	0.15.0
Release:	5
License:	LGPLv2+
Group:		Sciences/Astronomy
Url:		http://sourceforge.net/projects/libnova/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		libnova-0.15.0-optflags.patch

%description
Libnova is a general purpose, double precision, celestial mechanics,
astrometry and astrodynamics library

%files
%doc ChangeLog README AUTHORS NEWS COPYING
%{_bindir}/libnovaconfig

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries

%description -n %{libname}
Contains library files for nova.

%files -n %{libname}
%{_libdir}/libnova-%{api}.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}nova13-devel < 0.15.0
Obsoletes:	%{_lib}nova13-devel < 0.15.0

%description -n %{devname}
Contains library and header files for nova.

%files -n %{devname}
%doc COPYING examples/*.c
%{_includedir}/libnova
%{_libdir}/libnova.so

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14231 |21mr|libnsl-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname nsl %{major}
%define devname %mklibname nsl -d
%define static %mklibname -d -s nsl

Summary:	Public client interface library for NIS(YP) and NIS+
Name:		libnsl
Version:	2.0.0
Release:	1
License:	BSD and LGPLv2+
Group:		System/Libraries
Url:		https://github.com/thkukuk/libnsl
Source0:	https://github.com/thkukuk/libnsl/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libtirpc)

%description
This package contains the libnsl library. This library contains
the public client interface for NIS(YP) and NIS+.
This code was formerly part of glibc, but is now standalone to
be able to link against TI-RPC for IPv6 support.

%package -n %{libname}
Summary:	Public client interface library for NIS(YP) and NIS+
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%package -n %{devname}
Summary:	Development files for the libnsl library
Group:		Development/C
Requires:	%{libname} >= %{EVRD}

%description -n %{devname}
This package includes header files and libraries necessary for developing
programs which use the nsl library.

%package -n %{static}
Summary:	Static version of libnsl library
Group:		Development/C
Requires:	%{devname} >= %{EVRD}
Provides:	libnsl-static-devel = %{EVRD}

%description -n	%{static}
This package contains a static library version of the nsl library.

%prep
%autosetup -p1
autoreconf -fiv

%build
CONFIGURE_TOP="$PWD"
export CFLAGS="%{optflags} -fPIC"

automake --add-missing
%configure \
	--enable-shared \
	--enable-static

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libnsl.so.%{major}*

%files -n %{devname}
%doc AUTHORS COPYING NEWS README
%{_includedir}/rpcsvc/*.h
%{_includedir}/rpcsvc/*.x
%{_libdir}/libnsl.so
%{_libdir}/pkgconfig/libnsl.pc

%files -n %{static}
%{_libdir}/libnsl.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14232 |21mr|libnss-role-0.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libnss_role_major 2
%define libnss_role %mklibname nss_role %{libnss_role_major}
%define tag_postfix -alt1

%define major 1
%define librole %mklibname role %{major}
%define devname %mklibname role -d

Summary:	NSS API library and admin tools for roles and privilegies
Name:		libnss-role
Version:	0.5.5
Release:	1
License:	LGPLv2.1
Group:		System/Libraries
# Another git: http://git.altlinux.org/gears/l/libnss-role.git
Url:		https://github.com/Etersoft/libnss-role
Source0:	https://github.com/Etersoft/libnss-role/archive/%{version}%{tag_postfix}.tar.gz?/libnss-role-%{version}%{tag_postfix}.tar.gz
# https://github.com/Etersoft/libnss-role/pull/29
Patch001: 	0001-Avoid-overlinkage-of-utils.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(cmocka)
BuildRequires:	glibc-devel
BuildRequires:	pam-devel
Requires:	%{librole} = %{EVRD}
Requires:	%{libnss_role} = %{EVRD}
Requires(pre):	grep
Requires(pre):	sed
Requires(postun):	sed
# lib prefix is not common for packages with executables
Provides:	nss-role = %{EVRD}

%description
NSS API library and admin tools for roles and privilegies.
Allow to e.g. map roles of AD domain users to local groups.

%files
%doc README.md README-ru.md
%config(noreplace) %{_sysconfdir}/role
%{_sysconfdir}/pam.d/role*
%dir %{_sysconfdir}/role.d
%{_sbindir}/*
%{_bindir}/*
%{_mandir}/man8/*

%post
if [ "$1" = "1" ]; then
    grep -q '^group:[[:blank:]]*\(.\+[[:blank:]]\+\)*role\($\|[[:blank:]]\)' \
        %{_sysconfdir}/nsswitch.conf || \
    sed -i.rpmorig -e 's/^\(group:.\+\)$/\1 role/g' \
        %{_sysconfdir}/nsswitch.conf
fi

%postun
if [ "$1" = "0" ]; then
    sed -i -e 's/^group:role/group:/g' \
           -e 's/^\(group:\)\(.\+[[:blank:]]*\)*[[:blank:]]\+role\($\|[[:blank:]].*\)$/\1\2\3/g' \
        %{_sysconfdir}/nsswitch.conf
fi

#----------------------------------------------------------------------------

%package -n %{libnss_role}
Summary:	NSS API library for roles and privilegies
Group:		System/Libraries

%description -n %{libnss_role}
NSS API library for roles and privilegies.

%files -n %{libnss_role}
/%{_lib}/libnss_role.so.%{libnss_role_major}*

#----------------------------------------------------------------------------

%package -n %{librole}
Summary:	NSS API library for roles and privilegies
Group:		System/Libraries

%description -n %{librole}
NSS API library for roles and privilegies.

%files -n %{librole}
%{_libdir}/librole.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header for developing applications managing Roles
Group:		Development/Other
Requires:	%{librole} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	nssrole-devel = %{EVRD}

%description -n %{devname}
Headers for developing applications managing Roles through
NSS API library for roles and privilegies.

%files -n %{devname}
%{_includedir}/role/
%{_libdir}/librole.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}%{tag_postfix}

%build

# See https://github.com/Etersoft/libnss-role/blob/master/.gear/libnss-role.spec
# nss_wrapper must be packaged and BRed for tests
%cmake \
	-DNSS_LIBDIR="/%{_lib}" \
	-DROLE_LIBDIR=%{_libdir} \
	-DMANDIR=%{_mandir}/man8 \
	-DENABLE_TESTS=OFF

%make_build

%install
%make_install -C build
mkdir -p %{buildroot}%{_sysconfdir}/role.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14233 |21mr|libntirpc-3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname ntirpc %{major}
%define devname %mklibname ntirpc -d
#%%global		dev rc2

Name:		libntirpc
Version:	3.3
Release:	2
Summary:	New Transport Independent RPC Library
Group:		System/Libraries
License:	BSD
Url:		https://github.com/nfs-ganesha/ntirpc
Source0:	https://github.com/nfs-ganesha/ntirpc/archive/v%{version}/ntirpc-%{version}%{?dev:-%{dev}}.tar.gz
BuildRequires:	cmake
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(liburcu)
BuildRequires:	pkgconfig(libnsl)

%description
This package contains a new implementation of the original libtirpc, 
transport-independent RPC (TI-RPC) library for NFS-Ganesha. It has
the following features not found in libtirpc:
 1. Bi-directional operation
 2. Full-duplex operation on the TCP (vc) transport
 3. Thread-safe operating modes
 3.1 new locking primitives and lock callouts (interface change)
 3.2 stateless send/recv on the TCP transport (interface change)
 4. Flexible server integration support
 5. Event channels (remove static arrays of xprt handles, new EPOLL/KEVENT
    integration)


#------------------------------------------------------------------------
%package -n %{libname}
Summary:	Development headers for %{name}
Group:		System/Libraries
# libtirpc has /etc/netconfig, most machines probably have it anyway
# for NFS client
Requires:	libtirpc

%description -n %{libname}
This package contains a new implementation of the original libtirpc, 
transport-independent RPC (TI-RPC) library for NFS-Ganesha. It has
the following features not found in libtirpc:
 1. Bi-directional operation
 2. Full-duplex operation on the TCP (vc) transport
 3. Thread-safe operating modes
 3.1 new locking primitives and lock callouts (interface change)
 3.2 stateless send/recv on the TCP transport (interface change)
 4. Flexible server integration support
 5. Event channels (remove static arrays of xprt handles, new EPOLL/KEVENT
    integration).

%files -n %{libname}
%{_libdir}/libntirpc.so.%{major}*

#------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and auxiliary files for developing with %{name}.

%files -n %{devname}
%{_libdir}/libntirpc.so
%{_includedir}/ntirpc/
%{_libdir}/pkgconfig/libntirpc.pc

#------------------------------------------------------------------------

%prep
%setup -q -n ntirpc-%{version}%{?dev:-%{dev}}

%build
%cmake . -DOVERRIDE_INSTALL_PREFIX=/usr -DTIRPC_EPOLL=1 -DUSE_GSS=ON "-GUnix Makefiles"

%make

%install
## make install is broken in various ways
## make install DESTDIR=%%{buildroot}
mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -p -m 0755 build/src/%{name}.so.%{major}* %{buildroot}%{_libdir}/
ln -s %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so.%{major}
ln -s %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so
mkdir -p %{buildroot}%{_includedir}/ntirpc
cp -a ./ntirpc %{buildroot}%{_includedir}/
cp build/ntirpc/version.h %{buildroot}%{_includedir}/ntirpc/
install -p -m 644 build/libntirpc.pc %{buildroot}%{_libdir}/pkgconfig/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14234 |21mr|libntirpc-3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname ntirpc %{major}
%define devname %mklibname ntirpc -d
#%%global		dev rc2

Name:		libntirpc
Version:	3.3
Release:	3
Summary:	New Transport Independent RPC Library
Group:		System/Libraries
License:	BSD
Url:		https://github.com/nfs-ganesha/ntirpc
Source0:	https://github.com/nfs-ganesha/ntirpc/archive/v%{version}/ntirpc-%{version}%{?dev:-%{dev}}.tar.gz
BuildRequires:	cmake
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(liburcu)
BuildRequires:	pkgconfig(libnsl)

%description
This package contains a new implementation of the original libtirpc, 
transport-independent RPC (TI-RPC) library for NFS-Ganesha. It has
the following features not found in libtirpc:
 1. Bi-directional operation
 2. Full-duplex operation on the TCP (vc) transport
 3. Thread-safe operating modes
 3.1 new locking primitives and lock callouts (interface change)
 3.2 stateless send/recv on the TCP transport (interface change)
 4. Flexible server integration support
 5. Event channels (remove static arrays of xprt handles, new EPOLL/KEVENT
    integration)


#------------------------------------------------------------------------
%package -n %{libname}
Summary:	Development headers for %{name}
Group:		System/Libraries
# libtirpc has /etc/netconfig, most machines probably have it anyway
# for NFS client
Requires:	libtirpc

%description -n %{libname}
This package contains a new implementation of the original libtirpc, 
transport-independent RPC (TI-RPC) library for NFS-Ganesha. It has
the following features not found in libtirpc:
 1. Bi-directional operation
 2. Full-duplex operation on the TCP (vc) transport
 3. Thread-safe operating modes
 3.1 new locking primitives and lock callouts (interface change)
 3.2 stateless send/recv on the TCP transport (interface change)
 4. Flexible server integration support
 5. Event channels (remove static arrays of xprt handles, new EPOLL/KEVENT
    integration).

%files -n %{libname}
%{_libdir}/libntirpc.so.%{major}*

#------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and auxiliary files for developing with %{name}.

%files -n %{devname}
%{_libdir}/libntirpc.so
%{_includedir}/ntirpc/
%{_libdir}/pkgconfig/libntirpc.pc

#------------------------------------------------------------------------

%prep
%setup -q -n ntirpc-%{version}%{?dev:-%{dev}}

%build
%cmake . -DOVERRIDE_INSTALL_PREFIX=/usr -DTIRPC_EPOLL=1 -DUSE_GSS=ON "-GUnix Makefiles"

%make

%install
## make install is broken in various ways
## make install DESTDIR=%%{buildroot}
mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -p -m 0755 build/src/%{name}.so.%{major}* %{buildroot}%{_libdir}/
ln -s %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so.%{major}
ln -s %{name}.so.%{version} %{buildroot}%{_libdir}/%{name}.so
mkdir -p %{buildroot}%{_includedir}/ntirpc
cp -a ./ntirpc %{buildroot}%{_includedir}/
cp build/ntirpc/version.h %{buildroot}%{_includedir}/ntirpc/
install -p -m 644 build/libntirpc.pc %{buildroot}%{_libdir}/pkgconfig/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14235 |21mr|libntlm-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ntlm %{major}
%define develname %mklibname ntlm -d

Summary:	Microsoft WinNT domain authentication library
Name:		libntlm
Version:	1.6
Release:	1
Group:		System/Libraries
License:	LGPLv2+
URL:		http://www.nongnu.org/libntlm/
Source0:	http://www.nongnu.org/libntlm/releases/%{name}-%{version}.tar.gz
%ifnarch %arm %mips
BuildRequires:	valgrind
%endif

%description
A library for authenticating with Microsoft NTLM challenge-response, 
derived from Samba sources.

%package -n %{libname}
Summary:	Microsoft WinNT domain authentication library
Group:		System/Libraries

%description -n %{libname}
A library for authenticating with Microsoft NTLM challenge-response, 
derived from Samba sources.

%package -n %{develname}
Summary:	Microsoft WinNT domain authentication library for development
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
Development files needed for compiling against libntlm.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%doc AUTHORS README ChangeLog THANKS
%{_includedir}/ntlm.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/libntlm.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14236 |21mr|libnumbertext-1.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# WARNING: This package is synced with FC
%define api 1.0
%define major 0
%define libname %mklibname numbertext %{major}
%define devname %mklibname -d numbertext

Summary:	Number to number name and money text conversion library
Name:		libnumbertext
Version:	1.0.7
Release:	2
#The entire source code is dual license LGPLv3+ or BSD, except for
#the data files hr.sor, sr.sor and sh.sor which are tri license
#CC-BY-SA or LGPLv3+ or BSD
License:	(LGPLv3+ or BSD) and (LGPLv3+ or BSD or CC-BY-SA)
Group:		System/Libraries
Url:		https://numbertext.github.io
Source0:	https://github.com/Numbertext/libnumbertext/archive/%{version}.tar.gz
Source1:	libnumbertext.rpmlintrc
BuildRequires:	libtool

%description
Language-neutral NUMBERTEXT and MONEYTEXT functions for LibreOffice Calc

%files
%doc AUTHORS ChangeLog COPYING NEWS THANKS
%{_bindir}/spellout
%{_datadir}/libnumbertext

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Number to number name and money text conversion library
Group:		System/Libraries

%description -n %{libname}
Language-neutral NUMBERTEXT and MONEYTEXT functions for LibreOffice Calc

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING NEWS THANKS
%{_libdir}/%{name}-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Files for developing with libnumbertext
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Includes and definitions for developing with libnumbertext

%files -n %{devname}
%doc AUTHORS ChangeLog COPYING NEWS THANKS
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -v --install --force
%configure \
	--disable-silent-rules\
	--disable-static\
	--disable-werror\
	--with-pic
%make

%check
make check

%install
%makeinstall_std
rm -f %{buildroot}/%{_libdir}/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14237 |21mr|libnut-661-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname nut %{major}
%define	devname	%mklibname -d nut

Name:		libnut
%define	svnrev	675
Version:	661
Release:	1
Url:		http://wiki.multimedia.cx/index.php?title=NUT
License:	MIT
Group:		System/Libraries
Summary:	NUT Multimedia Container Library
# svn checkout svn://svn.mplayerhq.hu/nut/src/trunk libnut ; tar -Jcf libnut-r$(LC_ALL=C svn info libnut | sed -n 's/Revision: //p').tar.xz libnut
Source0:	%{name}-r%{svnrev}.tar.xz
Patch0:		libnut-libdir.patch
Patch1:		libnut-shared.patch
Patch2:		libnut-r675-ldflags.patch

%description
Library for manipulation with NUT multimedia streams.

Unlike many popular containers, a NUT file can largely be viewed as a
byte stream, opposed to having a global block structure. NUT files
consist of a sequence of packets, which can contain global headers,
file metadata, stream headers for the individual media streams,
optional index data to accelerate seeking, and, of course, the actual
encoded media frames.

%package -n	%{libname}
Group:		System/Libraries
Summary:	NUT Multimedia Container Library

%description -n	%{libname}
Library for manipulation with NUT multimedia streams.

Unlike many popular containers, a NUT file can largely be viewed as a
byte stream, opposed to having a global block structure. NUT files
consist of a sequence of packets, which can contain global headers,
file metadata, stream headers for the individual media streams,
optional index data to accelerate seeking, and, of course, the actual
encoded media frames.

%package -n	%{devname}
Group:		Development/C
Summary:	Development files for NUT Multimedia Container Library
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains development files for the NUT Multimedia Container
Library.

%package	utils
Group:		Video
Summary:	NUT Multimedia Container Utilites

%description	utils
Utilities for manipulation with NUT multimedia streams.

Unlike many popular containers, a NUT file can largely be viewed as a
byte stream, opposed to having a global block structure. NUT files
consist of a sequence of packets, which can contain global headers,
file metadata, stream headers for the individual media streams,
optional index data to accelerate seeking, and, of course, the actual
encoded media frames.

%prep
%setup -q -n %{name}
%patch0 -p0 -b .libdir~
%patch1 -p1 -b .shared~
%patch2 -p1 -b .ldflags~

%build
%setup_compile_flags
%make prefix=%{_prefix} libdir=%{_libdir}

%install
%makeinstall

%files utils
%{_bindir}/*

%files -n %{libname}
%doc COPYING README
%{_libdir}/libnut.so.%{major}*

%files -n %{devname}
%{_includedir}/libnut.h
%{_libdir}/libnut.so
%{_libdir}/libnut.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14238 |21mr|liboauth-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname oauth %{major}
%define devname %mklibname oauth -d

Summary:	OAuth library functions
Name:		liboauth
Version:	1.0.3
Release:	14
License:	MIT
Group:		System/Libraries
Url:		http://liboauth.sourceforge.net/
Source0:	http://liboauth.sourceforge.net/pool/%{name}-%{version}.tar.gz
Patch0:		liboauth-automake-1.13.patch
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(nss)

%description
liboauth is a collection of POSIX-c functions implementing the OAuth
Core RFC 5849 standard. liboauth provides functions to escape and
encode parameters according to OAuth specification and offers
high-level functionality to sign requests or verify OAuth signatures
as well as perform HTTP requests.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	OAuth library functions
Group:		System/Libraries

%description -n %{libname}
liboauth is a collection of POSIX-c functions implementing the OAuth
Core RFC 5849 standard. liboauth provides functions to escape and
encode parameters according to OAuth specification and offers
high-level functionality to sign requests or verify OAuth signatures
as well as perform HTTP requests.

%files -n %{libname}
%{_libdir}/liboauth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/oauth.pc
%{_mandir}/man3/oauth.*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-nss

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14239 |21mr|libodfgen-0.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname	odfgen
%define api	0.1
%define major	1
%define libname	%mklibname %{fname} %{api} %{major}
%define devname	%mklibname %{fname} -d

Summary:	An ODF generator library
Name:		libodfgen
Version:	0.1.8
Release:	1
Group:		System/Libraries
License:	LGPLv2+ or MPLv2.0+
Url:		http://sourceforge.net/projects/libwpd/
Source0:	http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(libetonyek-0.1)
BuildRequires:	pkgconfig(librevenge-0.0)

%description
%{name} is a library for generating ODF (text and vector drawing formats
only). It is directly pluggable into input filters based on
libwpd/libwpg. It is used in libreoffice, for example.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for %{name}
Group:		System/Libraries

%description  -n %{libname}
This package contains libraries for applications that use %{name}.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}

%description  -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files  -n %{devname}
%doc ChangeLog COPYING.* README
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%doc %{_docdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14240 |21mr|libofx-0.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 7
%define	libname %mklibname ofx %{major}
%define	develname %mklibname ofx -d

Summary:	LibOFX library provides support for OFX command responses
Name:		libofx
Version:	0.10.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Url:		https://github.com/libofx/libofx
Source0:	https://github.com/libofx/libofx/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	gengetopt
BuildRequires:	graphviz
BuildRequires:	glibc-devel
BuildRequires:	OpenSP-devel
BuildRequires:	pkgconfig(libxml++-3.0)
BuildRequires:	pkgconfig(libcurl)

%description
This is the LibOFX library. It is a API designed to allow applications to very
easily support OFX command responses, usually provided by financial
institutions (see http://www.ofx.net/ofx/default.asp for details and
specification). It is based on the excellent OpenSP library written by James
Clark, and now part of the OpenJADE project. OpenSP by itself is not widely
distributed. It is written in C++, but provides a C style interface usable
transparently from both C and C++ using a single include file.
OpenJADE 1.3.1 includes a version on OpenSP that will link, however it has
some major problems with LibOFX and isn't recommended. Since LibOFX uses the
generic interface to OpenSP, it should be compatible with all recent versions
of OpenSP (it has been developed with OpenSP-1.5pre5).

%files
%doc AUTHORS ChangeLog COPYING NEWS README totest.txt 
%{_bindir}/ofx*
%{_datadir}/%{name}
%{_mandir}/man1/ofxdump.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for libofx
Group:		System/Libraries

%description -n %{libname}
This package provides libraries to use %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Group:		Development/C
Summary:	Libraries needed to develop for libofx
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Conflicts:	%{_lib}ofx2-devel < 0.8.2

%description -n %{develname}
Libraries needed to develop for %{name}.

%files -n %{develname}
%doc ChangeLog NEWS
%doc doc/html doc/ofx_sample_files
%{_libdir}/%{name}.so
%{_includedir}/%{name}/%{name}.h
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q

# Fix perms
find doc/ofx_sample_files -name "*.sgml" | xargs chmod -x


%build
# FIXME: better make it lib64 aware in configure script
autoreconf -vfi
export CFLAGS="%{optflags} -std=gnu++11"
%configure \
	--disable-static \
	--enable-doxygen \
    --with-opensp-libs=%{_libdir}

# Without -j1 the build fails...
%make -j1


%install
%makeinstall_std

# Remove unwanted doc files
rm -rf %{buildroot}%{_docdir}/libofx
rm -f %{buildroot}%{_bindir}/ofxconnect
rm -f %{buildroot}%{_mandir}/man1/ofxconnect.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14241 |21mr|libogg-1.3.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ogg %{major}
%define devname %mklibname ogg -d
%define sdevname %mklibname ogg -d -s

Summary:	Ogg Bitstream Library
Name:		libogg
Version:	1.3.4
Release:	3
Group:		System/Libraries
License:	BSD
Url:		http://www.xiph.org/
Source0:	http://downloads.xiph.org/releases/ogg/%{name}-%{version}.tar.xz
Patch1:		libogg-1.0-lib64.patch

%description
Libogg is a library for manipulating ogg bitstreams. It handles
both making ogg bitstreams and getting packets from ogg bitstreams.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libogg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libogg-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc AUTHORS CHANGES
%doc doc/*.html doc/*.png doc/*.txt
%{_includedir}/ogg/*.h
%{_libdir}/*.so
%{_datadir}/aclocal/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library for developing programs that will use %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains the static library develop
applications which will use %{name}.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q
#fix build with new automake
sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.*
autoreconf -fi
sed -i "s/-O20/$CFLAGS/" configure

%build
%configure \
	--enable-static

%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/libogg/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14242 |21mr|libogg-1.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ogg %{major}
%define devname %mklibname ogg -d
%define sdevname %mklibname ogg -d -s

Summary:	Ogg Bitstream Library
Name:		libogg
Version:	1.3.5
Release:	1
Group:		System/Libraries
License:	BSD
Url:		http://www.xiph.org/
Source0:	http://downloads.xiph.org/releases/ogg/%{name}-%{version}.tar.xz
BuildRequires:	cmake

%description
Libogg is a library for manipulating ogg bitstreams. It handles
both making ogg bitstreams and getting packets from ogg bitstreams.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libogg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libogg-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc AUTHORS CHANGES
%doc doc/*.html doc/*.png doc/*.txt
%{_datadir}/aclocal/ogg.m4
%{_includedir}/ogg/*.h
%{_libdir}/cmake/Ogg/*.cmake
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make_build

%install
%make_install -C build
install -Dm 644 ogg.m4 %{buildroot}%{_datadir}/aclocal/ogg.m4

rm -rf %{buildroot}%{_docdir}/libogg/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14243 |21mr|liboggz-1.1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname oggz %{major}
%define devname %mklibname oggz -d

Summary:	Simple programming interface for Ogg files and streams
Name:		liboggz
Version:	1.1.1
Release:	9
License:	BSD-like
Group:		System/Libraries
Url:		http://www.xiph.org/oggz/
Source0:	http://downloads.xiph.org/releases/liboggz/%{name}-%{version}.tar.gz
BuildRequires:	docbook-utils
BuildRequires:	pkgconfig(ogg)

%description
Oggz provides a simple programming interface for reading and writing Ogg files
and streams. Ogg is an interleaving data container developed by Monty at
Xiph.Org, originally to support the Ogg Vorbis audio format.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Simple programming interface for Ogg files and streams
Group:		System/Libraries

%description -n %{libname}
Oggz provides a simple programming interface for reading and writing Ogg files
and streams. Ogg is an interleaving data container developed by Monty at
Xiph.Org, originally to support the Ogg Vorbis audio format.

%files -n %{libname}
%{_libdir}/liboggz.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for development using liboggz
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and documentation needed for development
using liboggz.

%files -n %{devname}
%doc doc/liboggz/html/*
%doc AUTHORS ChangeLog README
%dir %{_includedir}/oggz
%{_includedir}/oggz/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/oggz.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Various tools using the liboggz library
Group:		Development/C

%description tools
This package contains various tools using the liboggz library.

%files tools
%{_bindir}/oggz*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

# cleanup
rm -rf %{buildroot}%{_docdir}/liboggz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14244 |21mr|libomxil-bellagio-0.9.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 0
%define libname %mklibname omxil-bellagio %{major}
%define devname %mklibname omxil-bellagio -d

%global __provides_exclude (.*)libomxaudio_effects(.*)|(.*)libomxclocksrc(.*)|(.*)libomxdynamicloader(.*)|(.*)libomxvideosched(.*)

Summary:	Bellagio OpenMAX Integration Layer
Name:		libomxil-bellagio
Version:	0.9.3
Release:	4
License:	LGPLv2+
Group:		System/X11
Url:		http://omxil.sourceforge.net/
Source0:	http://sourceforge.net/projects/omxil/files/omxil/Bellagio%20%{version}/%{name}-%{version}.tar.gz
#https://sourceforge.net/tracker/?func=detail&aid=3477869&group_id=160680&atid=816817
Patch0:		libomxil-bellagio-0.9.3-fix_Werror.patch
Patch1:		libomxil-bellagio-0.9.3-unused.patch
#https://sourceforge.net/tracker/?func=detail&aid=3477871&group_id=160680&atid=816817
Patch2:		libomxil-bellagio-0.9.3-nodoc.patch
Patch3:		http://git.buildroot.net/buildroot/plain/package/multimedia/bellagio/bellagio-0.9.3-dynamicloader-linking.patch
Patch4:		http://git.buildroot.net/buildroot/plain/package/multimedia/bellagio/bellagio-0.9.3-parallel-build.patch
Patch5:		http://git.buildroot.net/buildroot/plain/package/multimedia/bellagio/bellagio-0.9.3-segfault-on-removeFromWaitResource.patch
Patch6:		omxil_version.patch
Patch7:		libomxil-bellagio-0.9.3-Werror.patch
BuildRequires:	doxygen
BuildRequires:	libtool

%description
The OpenMAX IL API defines a standardized media component interface to
enable developers and platform providers to integrate and communicate
with multimedia codecs implemented in hardware or software.

%files
%{_bindir}/omxregister-bellagio
%{_docdir}/%{name}/*
%{_libdir}/bellagio/libomxaudio_effects.so*
%{_libdir}/bellagio/libomxclocksrc.so*
%{_libdir}/bellagio/libomxvideosched.so*
%{_libdir}/omxloaders/libomxdynamicloader.so*
%{_mandir}/man1/omxregister-bellagio.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries

%description -n %{libname}
Bellagio OpenMAX Integration Layer library and components.

The libomxil shared library implements the OpenMAX IL Core functionalities.
Four dynamically loadable components are also included: OMX volume control,
OMX audio mixer (up to 4 inputs), a video scheduler component for uncompressed
video streams and a clock component

%files -n %{libname}
%{_libdir}/libomxil-bellagio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Bellagio OpenMAX Integration Layer library and components.

This package contains static libraries and header files need for development.

%files -n %{devname}
%doc AUTHORS COPYING NEWS
%{_includedir}/*.h
%dir %{_includedir}/bellagio
%{_includedir}/bellagio/*.h
%{_libdir}/libomxil-bellagio.so
%{_libdir}/pkgconfig/libomxil-bellagio.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .fix_werror
%patch1 -p1 -b .unused
%patch2 -p1 -b .nodoc
%patch3 -p1 -b .dynl
%patch4 -p1 -b .pb
%patch5 -p1 -b .sf
%patch6 -p0 -b .orig
%patch7 -p1 -b .werror

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std docdir=%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14245 |21mr|libopenraw-0.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define api 0.1
#TODO: split library package
%define libname %mklibname openraw %{major}
%define devname %mklibname openraw -d

Summary:	Camera RAW files decoding library
Name:		libopenraw
Version:	0.1.3
Release:	1
License:	LGPLv3+
Group:		Graphics
Source0:	http://libopenraw.freedesktop.org/download/%{name}-%{version}.tar.bz2
Url:		http://libopenraw.freedesktop.org
Source1:	boost.m4
BuildRequires:	autoconf-archive
BuildRequires:	boost-devel
BuildRequires:	curl-devel
BuildRequires:	doxygen
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(libxml-2.0)

Requires(post,postun):	gdk-pixbuf2.0

%description
libopenraw is an ongoing project to provide a free software implementation
for camera RAW files decoding. One of the main reason is that dcraw is not
suited for easy integration into applications, and there is a need for an
easy to use API to build free software digital image processing application.

It also has the goal to address missing feature from dcraw like meta-data
decoding and easy thumbnail extraction.

%files
%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Camera RAW files decoding library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
libopenraw is an ongoing project to provide a free software implementation 
for camera RAW files decoding. One of the main reason is that dcraw is not 
suited for easy integration into applications, and there is a need for an
easy to use API to build free software digital image processing application.

It also has the goal to address missing feature from dcraw like meta-data 
decoding and easy thumbnail extraction.

%files -n %{libname}
%doc AUTHORS NEWS COPYING README ChangeLog TODO
%{_libdir}/libopenraw.so.%{major}*
%{_libdir}/libopenrawgnome.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and links to compile against the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains all files which one needs to compile programs using
the %{name} library.

%files -n %{devname}
%doc doc/doxygen/html/
%{_includedir}/libopenraw-%{api}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e 's|@top_srcdir@/dcraw ||' doc/Doxyfile.in
cp -f %{SOURCE1} m4/

%build
%configure --disable-static
%make
make dox

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14246 |21mr|libopusenc-0.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname opusenc %{major}
%define devname %mklibname opusenc -d

Summary:	A library that provides an easy way to encode Ogg Opus files
Name:		libopusenc
Version:	0.2.1
Release:	3
License:	BSD
Group:		Sound
Url:		https://opus-codec.org
Source0:	https://archive.mozilla.org/pub/opus/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(opus)

%description
A library that provides an easy way to encode Ogg Opus files.

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/Other
Requires:	pkgconfig(opus)
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%doc doc/html
%{_includedir}/opus/opusenc.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

# Remove libtool archives
find %{buildroot} -type f -name "*.la" -delete
rm -rf %{buildroot}%{_datadir}/doc/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14247 |21mr|liborcus-0.19.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1
%define _disable_ld_no_undefined 1
#define api %%(echo %{version} |cut -d. -f1-2)
%define api 0.18
%define oldapi 0.14
%define major 0
%define libname %mklibname orcus %{api} %{major}
%define libmso %mklibname orcus-mso %{api} %{major}
%define libparser %mklibname orcus-parser %{api} %{major}
%define libspreadsheet %mklibname orcus-spreadsheet-model %{api} %{major}
%define devname %mklibname -d orcus
%define oldlibname %mklibname orcus %{oldapi} %{major}
%define oldlibmso %mklibname orcus-mso %{oldapi} %{major}
%define oldlibparser %mklibname orcus-parser %{oldapi} %{major}
%define oldlibspreadsheet %mklibname orcus-spreadsheet-model %{oldapi} %{major}
%bcond_without spreadsheet_model

Summary:	Standalone file import filter library for spreadsheet documents
Name:		liborcus
Version:	0.19.2
Release:	1
Group:		Office
License:	MIT
Url:		http://gitlab.com/orcus/orcus
Source0:	http://kohei.us/files/orcus/src/liborcus-%{version}.tar.xz
BuildRequires:	boost-devel >= 1.72
BuildRequires:	pkgconfig(mdds-2.1)
BuildRequires:	pkgconfig(libixion-0.18)
BuildRequires:	pkgconfig(zlib)

%description
%{name} is a standalone file import filter library for spreadsheet
documents. Currently under development are ODS, XLSX and CSV import
filters.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Standalone file import filter library for spreadsheet documents
Group:		Office
Obsoletes:	%{oldlibname} < %{EVRD}

%description -n %{libname}
%{name} is a standalone file import filter library for spreadsheet
documents. Currently under development are ODS, XLSX and CSV import
filters.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{libmso}
Summary:	Standalone file import filter library for spreadsheet documents
Group:		Office
Obsoletes:	%{oldlibmso} < %{EVRD}

%description -n %{libmso}
This package contains a shared library library for %{name}.

%files -n %{libmso}
%{_libdir}/%{name}-mso-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{libparser}
Summary:	Standalone file import filter library for spreadsheet documents
Group:		Office
Obsoletes:	%{oldlibparser} < %{EVRD}

%description -n %{libparser}
This package contains a shared library library for %{name}.

%files -n %{libparser}
%{_libdir}/%{name}-parser-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{libspreadsheet}
Summary:	Standalone file import filter library for spreadsheet documents
Group:		Office
Obsoletes:	%{oldlibspreadsheet} < %{EVRD}

%description -n %{libspreadsheet}
This package contains a shared library library for %{name}.

%files -n %{libspreadsheet}
%{_libdir}/%{name}-spreadsheet-model-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires:	%{libmso} = %{version}-%{release}
Requires:	%{libparser} = %{version}-%{release}
Requires:	%{libspreadsheet} = %{version}-%{release}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}*-%{api}.so
%{_libdir}/pkgconfig/%{name}*-%{api}.pc

#------------------------------------------------------------------

%package tools
Summary:	Tools for working with Orcus
Group:		Office
Requires:	%{libname} = %{version}-%{release}

%description tools
Tools for working with Orcus.

%files tools
%doc AUTHORS
%{_bindir}/orcus-*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--disable-debug		\
	--disable-silent-rules	\
	--disable-static	\
	--disable-werror	\
	--with-pic		\
	--disable-python	\
%if %{with spreadsheet_model}
	--enable-spreadsheet-model
%else
	--disable-spreadsheet-model
%endif

sed -i \
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    libtool

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14248 |21mr|libosinfo-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname osinfo

%define api		1.0
%define major		0
%define girmajor	1.0
%define libname		%mklibname %{oname} %{api} %{major}
%define girname		%mklibname %{oname}-gir %{girmajor}
%define devname		%mklibname %{oname} %{api} -d

Summary:	A library for managing OS information for virtualization
Name:		libosinfo
Version:	1.10.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://libosinfo.org
Source0:	https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	meson
BuildRequires:	osinfo-db
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)

# meta package
Requires:		%{libname} = %{EVRD}
Requires:		%{girname} = %{EVRD}
Requires:		%{name}-common = %{EVRD}
Requires:		osinfo-db
Requires:		osinfo-db-tools
Requires:		hwdata

%description
libosinfo is a library that allows virtualization provisioning tools to
determine the optimal device settings for a hypervisor/operating system
combination.

%files
# empty, meta package
#----------------------------------------------------------------------------

%package common
Summary:	Non-library files for the "%{libname}" library
Group:		System/Libraries

%description common
Platform-independent files for the "%{libname}" library

%files common -f %{name}.lang
%{_bindir}/osinfo-detect
%{_bindir}/osinfo-install-script
%{_bindir}/osinfo-query
%{_mandir}/man1/osinfo*.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library plugin handling
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libname}
libosinfo is a library that allows virtualization provisioning tools to
determine the optimal device settings for a hypervisor/operating system
combination.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Libosinfo-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog COPYING.LIB NEWS README
%{_libdir}/%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/
%dir %{_includedir}/%{name}-%{api}/osinfo/
%{_includedir}/%{name}-%{api}/osinfo/*.h
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_datadir}/gir-1.0/Libosinfo-%{girmajor}.gir
%{_datadir}/vala/vapi/libosinfo-1.0.vapi

#----------------------------------------------------------------------------

%package vala
Summary: Vala bindings
Group: Development/Other
Requires: %{name}-common = %{version}-%{release}

%description vala
libosinfo is a library that allows virtualization provisioning tools to
determine the optimal device settings for a hypervisor/operating system
combination.

This package provides the Vala bindings for libosinfo library.

%files vala
%{_datadir}/vala/vapi/libosinfo-1.0.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Denable-gtk-doc=false
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14249 |21mr|libosip2-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 14
%define	api 2
%define	libname %mklibname osip %{api} %{major}
%define	libparser %mklibname osipparser %{api} %{major}
%define	devname %mklibname osip %{api} -d

Summary:	Implementation of SIP - rfc2543
Name:		libosip2
Version:	5.2.0
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://savannah.gnu.org/projects/osip/
Source0:	https://ftp.gnu.org/gnu/osip/%{name}-%{version}.tar.gz

%description
This is the oSIP library. It has been designed to provide the Internet
Community a simple way to support the Session Initiation Protocol. SIP is
described in the RFC3261 which is available at
https://www.ietf.org/rfc/rfc3261.txt.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Implementation of SIP - rfc2543
Group:		System/Libraries
Obsoletes:	%{_lib}osip2 < 3.6.0
%rename		%{_lib}osip2_4

%description -n %{libname}
This is the oSIP library. It has been designed to provide the Internet
Community a simple way to support the Session Initiation Protocol. SIP is
described in the RFC3261 which is available at
https://www.ietf.org/rfc/rfc3261.txt.

%files -n %{libname}
%doc README
%{_libdir}/libosip%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libparser}
Summary:	Implementation of SIP - rfc2543
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}osip2_12 <= 5.0.0-3

%description -n %{libparser}
This is the oSIP library. It has been designed to provide the Internet
Community a simple way to support the Session Initiation Protocol. SIP is
described in the RFC3261 which is available at
https://www.ietf.org/rfc/rfc3261.txt.

%files -n %{libparser}
%doc README
%{_libdir}/libosipparser%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header file required to build programs using liboSIP
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libparser} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	osip2-devel = %{EVRD}
Obsoletes:	%{_lib}osip2-devel < 3.6.0

%description -n %{devname}
Developments files for %{libname} (oSIP Library). Needed to build
apps such as linphone and siproxd.

%files -n %{devname}
%doc AUTHORS BUGS ChangeLog FEATURES NEWS README TODO
%{_libdir}/libosip%{api}.so
%{_libdir}/libosipparser%{api}.so
%{_includedir}/osip%{api}
%{_includedir}/osipparser%{api}
%{_libdir}/pkgconfig/libosip%{api}.pc
%{_mandir}/man3/osip%{api}.3*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure --disable-static
%make


%install
%makeinstall_std

mkdir -p %{buildroot}%{_mandir}/man3/
mv %{buildroot}%{_mandir}/man1/osip.1 %{buildroot}%{_mandir}/man3/osip%{api}.3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14250 |21mr|libotf-0.9.16-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname otf %{major}
%define devname %mklibname otf -d

Summary:	Library for handling OpenType fonts
Name:		libotf
Version:	0.9.16
Release:	9
License:	LGPLv2+
Group:		System/Internationalization
Url:		http://www.m17n.org/libotf/
Source0:	http://www.m17n.org/libotf/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
The library "libotf" provides the following facilites:
- Read Open Type Layout Tables from OTF file (currently supported tables are:
  head, name, cmap, GDEF, GSUB, and GPOS)
- Convert a Unicode character sequence to a glyph code sequence by using the
  above tables.

The combination of libotf and the FreeType library realizes CTL (Complex Text
Layout) by OpenType fonts.*

#----------------------------------------------------------------------------

%package tools
Summary:	Utilities of OpenType library
Group:		System/Internationalization

%description tools
Utilities of OpenType library.

%files tools
%doc COPYING
%{_bindir}/otf*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main OpenType shared library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Libotf shared library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libotf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
Headers of %{name} for development.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/libotf-config
%{_includedir}/otf.h
%{_libdir}/libotf.so
%{_libdir}/pkgconfig/libotf.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14251 |21mr|libotr-4.1.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname otr %{major}
%define devname %mklibname otr -d

Summary:	Off-The-Record Messaging library and toolkit
Name:		libotr
Version:	4.1.1
Release:	4
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://www.cypherpunks.ca/otr/
Source0:	http://www.cypherpunks.ca/otr/%{name}-%{version}.tar.gz
Source1:	http://www.cypherpunks.ca/otr/%{name}-%{version}.tar.gz.asc
BuildRequires:	pkgconfig(libgcrypt)

%description
%{name} is a library and toolkit which implements Off-the-Record (OTR)
Messaging.

OTR allows you to have private conversations over IM by providing:
 - Encryption
   - No one else can read your instant messages.
 - Authentication
   - You are assured the correspondent is who you think it is.
 - Deniability
   - The messages you send do _not_ have digital signatures that are
     checkable by a third party.  Anyone can forge messages after a
     conversation to make them look like they came from you.  However,
     _during_ a conversation, your correspondent is assured the messages
     he sees are authentic and unmodified.
 - Perfect forward secrecy
   - If you lose control of your private keys, no previous conversation
     is compromised.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Off-The-Record Messaging library and toolkit
License:	LGPLv2.1+
Group:		System/Libraries

%description -n %{libname}
%{name} is a library and toolkit which implements Off-the-Record (OTR)
Messaging.

OTR allows you to have private conversations over IM by providing:
 - Encryption
   - No one else can read your instant messages.
 - Authentication
   - You are assured the correspondent is who you think it is.
 - Deniability
   - The messages you send do _not_ have digital signatures that are
     checkable by a third party.  Anyone can forge messages after a
     conversation to make them look like they came from you.  However,
     _during_ a conversation, your correspondent is assured the messages
     he sees are authentic and unmodified.
 - Perfect forward secrecy
   - If you lose control of your private keys, no previous conversation
     is compromised.

%files -n %{libname}
%doc AUTHORS COPYING.LIB
%{_libdir}/libotr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files of %{name}
License:	LGPLv2.1+
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} is a library and toolkit which implements Off-the-Record (OTR)
Messaging. This package contains development related files of %{name}.

%files -n %{devname}
%doc ChangeLog NEWS README
%{_datadir}/aclocal/*.m4
%{_includedir}/*
%{_libdir}/libotr.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package utils
Summary:	Helper utilities of %{name}
License:	GPLv2+
Group:		Networking/Instant messaging
Requires:	%{libname} = %{EVRD}

%description utils
%{name} is a library and toolkit which implements Off-the-Record (OTR)
Messaging. This package contains various helper utilities from %{name}.

%files utils
%doc AUTHORS
%{_bindir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-pic \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14252 |21mr|libp11-0.4.11-0.git5316c3.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5316c33e7b484d2dd692ea74242dc6700b7e5a25
%define commit_short %(echo %{commit} | head -c6)

%define major 3
%define libname %mklibname p11_ %{major}
%define devname %mklibname p11 -d

# autoreconf is enough
%define _disable_rebuild_configure 1

# `make check` freezes on "search-all-matching-tokens.softhsm" on ABF
# bit works locally (maybe a propper /proc is needed)
%bcond_with check

Summary:	Small library on top of PKCS#11
Name:		libp11
Version:	0.4.11
Release:	0.git%{commit_short}.2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/OpenSC/libp11
Source0:	https://github.com/OpenSC/libp11/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	doxygen
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(p11-kit-1)
%if %{with check}
BuildRequires:	openssl
BuildRequires:	softhsm
BuildRequires:	opensc
%endif

%description
Libp11 is a library implementing a small layer on top of PKCS#11 API to make
using PKCS#11 implementations easier.

#----------------------------------------------------------------------------

%package -n engine_pkcs11
Summary:	PKCS#11 engine for OpenSSL
Group:		System/Libraries
Recommends:	opensc

%description -n engine_pkcs11
Engine_pkcs11 is an implementation of an engine for OpenSSL. It can be loaded
using code, config file or command line and will pass any function call by
openssl to a PKCS#11 module. Engine_pkcs11 is meant to be used with smart cards
and software for using smart cards in PKCS#11 format, such as OpenSC. Originaly
this engine was a part of OpenSC, until OpenSC was split into several small
projects for improved flexibility.

%files -n engine_pkcs11
%license COPYING
%doc README.rosa
%doc README.md NEWS
%{openssl_engines_dir}/libpkcs11.so
%{openssl_engines_dir}/pkcs11.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for libp11
Group:		System/Libraries

%description -n %{libname}
This package contains library files for libp11.

%files -n %{libname}
%license COPYING
%doc README.md NEWS
%{_libdir}/libp11.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libp11
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains files needed for development with libp11.

%files -n %{devname}
%license COPYING
%doc README.md NEWS
%{_datadir}/doc/libp11
%{_libdir}/libp11.so
%{_libdir}/pkgconfig/libp11.pc
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

cat > README.rosa <<EOF
Below is the suggested change to openssl.cnf
in order to use this engine:

openssl_conf = openssl_def

[openssl_def]
engines = engine_section

[engine_section]
pkcs11 = pkcs11_section

[pkcs11_section]
engine_id = pkcs11
dynamic_path = %{openssl_engines_dir}/pkcs11.so
MODULE_PATH = opensc-pkcs11.so
init = 0

EOF

%build
autoreconf -if
%configure \
	--with-enginesdir=%{openssl_engines_dir} \
	--enable-api-doc \
	--disable-static
%make

%install
%makeinstall_std

%check
%if %{with check}
%make check || { cat ./tests/test-suite.log; exit 1; }
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14253 |21mr|libpagemaker-0.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major 0
%define libname %mklibname pagemaker %{api} %{major}
%define devname %mklibname pagemaker -d
%global api 0.0

Summary:	A library for import of Adobe PageMaker documents
Name:		libpagemaker
Version:	0.0.4
Release:	5
License:	MPLv2.0
Group:		System/Libraries
Url:		http://wiki.documentfoundation.org/DLP/Libraries/libpagemaker
Source0:	http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	help2man
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(librevenge-0.0)

%description
libpagemaker is library providing ability to interpret and import Adobe
PageMaker documents into various applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for import of Adobe PageMaker documents
Group:		System/Libraries

%description -n %{libname}
libpagemaker is library providing ability to interpret and import Adobe
PageMaker documents into various applications.

%files -n %{libname}
%doc AUTHORS COPYING NEWS
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains documentation files for %{name}.

%files doc
%doc COPYING
%doc docs/doxygen/html

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Adobe PageMaker documents into other formats
Group:		Publishing
Requires:	%{libname} = %{EVRD}

%description tools
Tools to transform Adobe PageMaker documents into other formats.
Currently supported: SVG, raw.

%files tools
%{_bindir}/pmd2raw
%{_bindir}/pmd2svg
%{_bindir}/pmd2text
%{_mandir}/man1/pmd2raw.1*
%{_mandir}/man1/pmd2svg.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-silent-rules \
	--disable-werror
sed -i \
    -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    libtool
%make

export LD_LIBRARY_PATH=`pwd`/src/lib/.libs${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
help2man -N -n 'debug the conversion library' -o pmd2raw.1 ./src/conv/raw/.libs/pmd2raw
help2man -N -n 'convert PageMaker document into SVG' -o pmd2svg.1 ./src/conv/svg/.libs/pmd2svg

%install
%makeinstall_std

# we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}

install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -m 0644 pmd2*.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14254 |21mr|libpam4j-1.8-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           libpam4j
Version:        1.8
Release:        13
Summary:        Java binding for libpam.so

# License is specified in pom file
License:        MIT
URL:            https://github.com/kohsuke/libpam4j
Source0:        https://github.com/kohsuke/%{name}/archive/%{name}-%{version}.tar.gz
# License text copied from http://www.opensource.org/licenses/mit-license.php
Source1:        LICENSE.txt

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java.dev.jna:jna)
BuildRequires:  mvn(org.kohsuke:pom:pom:)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This package provides Java binding for libpam library.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp %{SOURCE1} LICENSE

# this test works locally, but fails in koji from unknown reason
# TODO: investigate & fix it
rm src/test/java/org/jvnet/libpam/UnixUserTest.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE
%files javadoc -f .mfiles-javadoc
%doc README.md
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14255 |21mr|libpano13-2.9.20-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define debug_package %{nil}

%define bigfov 1

%define lib_major 3
%define libname %mklibname pano13_ %{lib_major}
%define develname %mklibname -d pano13

Name:		libpano13
Version:	2.9.20
Release:	3
Summary:	Panorama Tools library
License:	GPLv2+
Group:		System/Libraries
URL:		http://panotools.sourceforge.net/
Source:		http://downloads.sourceforge.net/panotools/%{name}-%{version}.tar.gz
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	jpeg-devel
BuildRequires:	tiff-devel
BuildRequires:	zlib-devel

%description
Helmut Dersch's Panorama Tools.

#----------------------------------------------------------------------
%package tools
Summary:	Panorama Tools library
Group:		Graphics

%description tools
Utilies for Helmut Dersch's Panorama Tools.

%files tools
%doc README.linux AUTHORS
%{_bindir}/PT*
%{_bindir}/panoinfo
%{_mandir}/man1/*.1.*

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	Panorama Tools library
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Obsoletes:	%{mklibname pano13_ 2} < 2.9.19
Obsoletes:	%{_lib}pano13_0 < 2.9.19

%description -n %{libname}
Libraries for Helmut Dersch's Panorama Tools.

%files -n %{libname}
%{_libdir}/libpano13.so.%{lib_major}*

#----------------------------------------------------------------------

%package -n %{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	pano13-devel = %{version}-%{release}

%description -n %{develname}
Developent headers for Helmut Dersch's Panorama Tools.

%files -n %{develname}
%{_includedir}/pano13
%{_libdir}/libpano13.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LIBS="-lm"
%if %{bigfov}
perl -pi -e "s|\#define\s+MAX_FISHEYE_FOV.*|\#define MAX_FISHEYE_FOV 3600|" filter.h
%endif

%ifarch %{ix86}
# avoid link fail
export CFLAGS="-O2 -fPIC"
%else
export CFLAGS="%{optflags} -fPIC"
%endif

%configure \
	--enable-shared=yes \
	--enable-static=no

%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14256 |21mr|libpaper-1.1.28-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname paper %{major}
%define devname %mklibname paper -d
%define sdevname %mklibname paper -d -s

Summary:	Library for handling paper characteristics
Name:		libpaper
Version:	1.1.28
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://packages.debian.org/unstable/source/libpaper
Source0:	http://ftp.debian.org/debian/pool/main/libp/libpaper/%{name}_%{version}.tar.gz
Patch0:		libpaper-useglibcfallback.patch
%ifarch x86_64
BuildRequires:	chrpath
%endif

%description
This package contains a simple library for use by programs needing
to handle papers. It lets program automatically recognize a lot of
different papers with their properties (actually their size).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for handling paper characteristics
Group:		System/Libraries

%description -n %{libname}
Libraries for paper.

%files -n %{libname}
%{_libdir}/libpaper.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library for handling paper characteristics (development files)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for a simple library for use
by programs needing to handle papers. It lets program automatically
recognize a lot of different papers with their properties (actually their
size).

%files -n %{devname}
%doc ChangeLog COPYING debian/changelog
%{_includedir}/*
%{_libdir}/libpaper.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Library for handling paper characteristics (development files)
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
This package contains the development files for a simple library for use
by programs needing to handle papers. It lets program automatically
recognize a lot of different papers with their properties (actually their
size).

%files -n %{sdevname}
%{_libdir}/libpaper.a

#----------------------------------------------------------------------------

%package -n paper-utils
Summary:	Library for handling paper characteristics (development files)
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n paper-utils
This package contains the development files for a simple library for use
by programs needing to handle papers. It lets program automatically
recognize a lot of different papers with their properties (actually their
size).

%files -n paper-utils
%doc README
%config(noreplace) %{_sysconfdir}/papersize
%{_bindir}/paperconf
%{_sbindir}/paperconfig
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

#fix build with new automake
sed -i -e 's,AM_CONFIG_HEADER,AC_CONFIG_HEADERS,g' configure.*
touch NEWS AUTHORS
autoreconf -fi

%build
%configure --enable-static
%make

%install
%make_install

# (tpg) this should close bug #31988
mkdir -p %{buildroot}%{_sysconfdir}
cat > %{buildroot}%{_sysconfdir}/papersize << EOF
# Simply write the paper name. See papersize(5) for possible values.
EOF

%ifarch x86_64
chrpath -d %{buildroot}%{_bindir}/paperconf
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14257 |21mr|libpcap-1.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname pcap %{major}
%define devname %mklibname pcap -d

%bcond_without bluetooth

Summary:	A system-independent interface for user-level packet capture
Name:		libpcap
Version:	1.10.1
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.tcpdump.org/
Source0:	http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
Source1:	http://www.tcpdump.org/release/%{name}-%{version}.tar.gz.sig
Patch0:		libpcap-1.9.1-multilib.patch
BuildRequires:	bison
BuildRequires:	flex
%if %{with bluetooth}
BuildRequires:	pkgconfig(bluez)
%endif
BuildRequires:	pkgconfig(libnl-3.0)

%description
Libpcap provides a portable framework for low-level network monitoring. Libpcap
can provide network statistics collection, security monitoring and network
debugging.  Since almost every system vendor provides a different interface for
packet capture, the libpcap authors created this system-independent API to ease
in porting and to alleviate the need for several system-dependent packet
capture modules in each application.

#----------------------------------------------------------------------------

%package doc
Summary:	Manual pages for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
This contains the manual pages documenting %{name}.

%files doc
%{_mandir}/man5/pcap*
%{_mandir}/man7/pcap*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A system-independent interface for user-level packet capture
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Provides:	pcap = %{EVRD}

%description -n %{libname}
Libpcap provides a portable framework for low-level network monitoring. Libpcap
can provide network statistics collection, security monitoring and network
debugging.  Since almost every system vendor provides a different interface for
packet capture, the libpcap authors created this system-independent API to ease
in porting and to alleviate the need for several system-dependent packet
capture modules in each application.

%files -n %{libname}
%{_libdir}/libpcap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the pcap library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	pcap-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development pcap library and its header files needed
to compile applications such as tcpdump, etc.

%files -n %{devname}
%doc README* CREDITS INSTALL.md LICENSE CHANGES TODO
%{_bindir}/pcap-config
%dir %{_includedir}/pcap
%{_includedir}/pcap/*.h
%{_includedir}/*.h
%{_libdir}/libpcap.so
%{_libdir}/pkgconfig/libpcap.pc
%{_mandir}/man1/pcap-config.1*
%{_mandir}/man3/pcap*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -vfi
%configure \
	--enable-ipv6 \
%if %{with bluetooth}
	--enable-bluetooth \
%endif
	--with-pcap=linux

%make

%install
install -d %{buildroot}%{_bindir}

%makeinstall_std

# install additional headers
install -m0644 pcap-int.h %{buildroot}%{_includedir}/
install -m0644 pcap/bluetooth.h %{buildroot}%{_includedir}/pcap/

# nuke the statis lib
rm -f %{buildroot}%{_libdir}/libpcap.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14258 |21mr|libpciaccess-0.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname pciaccess %{major}
%define devname %mklibname pciaccess -d

Summary:	Generic PCI access library (from X.org)
Name:		libpciaccess
Version:	0.16
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2
BuildRequires:	hwdata
BuildRequires:	pkgconfig(xorg-macros)

%description
A generic PCI access library from X.org.

%package -n %{libname}
Summary:	Generic PCI access library (from X.org)
Group:		Development/X11

%description -n %{libname}
A generic PCI access library from X.org.

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
A generic PCI access library from X.org. Development headers and
libraries.

%prep
%setup -q

%build
%configure \
	--disable-static \
	--with-pciids-path=%{_datadir}

%make_build

%install
%make_install

%files -n %{libname}
%{_libdir}/libpciaccess.so.%{major}*

%files -n %{devname}
%{_libdir}/libpciaccess.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14259 |21mr|libpeas-1.32.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver	%(echo %{version}|cut -d. -f1,2)

%define oname	peas
%define api	1.0
%define major	0
%define libname	%mklibname %{oname} %{api} %{major}
%define libgtk	%mklibname %{oname}-gtk %{api} %{major}
%define devname	%mklibname %{oname} %{api} -d
%define girname	%mklibname %{oname}-gir %{api}
%define girgtk	%mklibname %{oname}-gtk-gir %{api}

%define loaders	%mklibname %{oname} %{api}-loaders

Summary:	Library for plugin handling
Name:		libpeas
Version:	1.32.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libpeas
Source0:	https://download.gnome.org/sources/libpeas/%{url_ver}/%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	vala >= 0.14.0.22
BuildRequires:	gettext-devel
BuildRequires:	meson
BuildRequires:	pkgconfig(gi-docgen)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(pygobject-3.0)

%description
This is GNOME's plugin handling library.

#----------------------------------------------------------------------------

%package data
Summary:	Library for plugin handling - data files
Group:		System/Libraries

%description data
This is GNOME's plugin handling library - data files

%files data -f %{name}-%{api}.lang
%doc AUTHORS
%{_datadir}/icons/hicolor/*/actions/*
%{_datadir}/glade/catalogs/libpeas-gtk.xml

#----------------------------------------------------------------------------

%package -n %{loaders}
Summary:	Library plugin handling
Group:		System/Libraries
Conflicts:	%{_lib}peas1.0_0 < 1.20.0

%description -n %{loaders}
This is GNOME's plugin handling library.

%files -n %{loaders}
%{_libdir}/%{name}-%{api}/loaders/libpython3loader.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library plugin handling
Group:		System/Libraries
Requires:	%{name}-data
Requires:	%{loaders}

%description -n %{libname}
This is GNOME's plugin handling library.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgtk}
Summary:	Library plugin handling UI part
Group:		System/Libraries
Requires:	%{name}-data
Requires:	%{loaders}

%description -n %{libgtk}
This is GNOME's plugin handling library - user interface part.

%files -n %{libgtk}
%{_libdir}/lib%{oname}-gtk-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Peas-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girgtk}
Summary:	GObject Introspection interface description for %{name}-gtk
Group:		System/Libraries

%description -n %{girgtk}
GObject Introspection interface description for %{name}-gtk.

%files -n %{girgtk}
%{_libdir}/girepository-1.0/PeasGtk-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libgtk} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{girgtk} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_defaultdocdir}/%{name}*-%{api}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-gtk-%{api}.pc
%{_datadir}/gir-1.0/Peas-%{api}.gir
%{_datadir}/gir-1.0/PeasGtk-%{api}.gir

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson	\
	-Ddemos=false	\
	-Dgtk_doc=true	\
	-Dpython2=false	\
	-Dpython3=true	\
	-Dvapi=true
%meson_build

%install
%meson_install

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14260 |21mr|libpfm-4.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without python

%define major 4
%define libname %mklibname pfm %{major}
%define devname %mklibname pfm -d
%define sdevname %mklibname pfm -d -s

Summary:	Library to encode performance events for use by perf tool
Name:		libpfm
Version:	4.11.0
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://perfmon2.sourceforge.net/
Source0:	http://sourceforge.net/projects/perfmon2/files/libpfm4/%{name}-%{version}.tar.gz
Patch0:		libpfm-python3-setup.patch
%if %{with python}
BuildRequires:	swig
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
%endif

%description
libpfm4 is a library to help encode events for use with operating system
kernels performance monitoring interfaces. The current version provides support
for the perf_events interface available in upstream Linux kernels since v2.6.31.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to encode performance events for use by perf tool
Group:		Development/C

%description -n %{libname}
libpfm4 is a library to help encode events for use with operating system
kernels performance monitoring interfaces. The current version provides support
for the perf_events interface available in upstream Linux kernels since v2.6.31.

%files -n %{libname}
%doc README
%{_libdir}/libpfm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library to encode performance events for perf_events based tools
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development library and header files to create performance monitoring
applications for the perf_events interface.

%files -n %{devname}
%dir %{_includedir}/perfmon/
%{_includedir}/perfmon/*.h
%{_mandir}/man3/*
%{_libdir}/libpfm.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library to encode performance events for perf_events based tools
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static version of the libpfm library for performance monitoring
applications for the perf_events interface.

%files -n %{sdevname}
%{_libdir}/libpfm.a

#----------------------------------------------------------------------------

%if %{with python}
%package -n python3-libpfm
Summary:	Python bindings for libpfm and perf_event_open system call
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-libpfm
Python bindings for libpfm4 and perf_event_open system call.
%endif

%if %{with python}
%files -n python3-libpfm
%{python3_sitearch}/*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .python3

%build
%if %{with python}
%global python_config CONFIG_PFMLIB_NOPYTHON=n
%else
%global python_config CONFIG_PFMLIB_NOPYTHON=y
%endif
%make \
	%{python_config} \
	OPTIM="%{optflags}" \
	LDFLAGS="%{build_ldflags}"

%install
%if %{with python}
%global python_config CONFIG_PFMLIB_NOPYTHON=n PYTHON_PREFIX=%{buildroot}%{python3_sitearch}
%else
%global python_config CONFIG_PFMLIB_NOPYTHON=y
%endif

%make \
	PREFIX=%{buildroot}%{_prefix} \
	LIBDIR=%{buildroot}%{_libdir} \
	%{python_config} \
	LDCONFIG=/bin/true \
	install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14261 |21mr|libpgf-6.14.12-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname pgf %{major}
%define devname %mklibname pgf -d

Summary:	PGF (Progressive Graphics File) library
Name:		libpgf
Version:	6.14.12
Release:	7
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.libpgf.org
Source0:	http://downloads.sourceforge.net/project/%{name}/%{version}/%{name}-src-%{version}.tar.gz
Patch0:		02-fix-CVE-2015-6673-upstream-147.patch
Patch1:		03-fix-CVE-2015-6673-upstream-148.patch
# Modernize automake usage
Patch2:		libpgf-auto.patch
BuildRequires:	doxygen
BuildRequires:	libtool

%description
libPGF contains an implementation of the Progressive Graphics File (PGF)
which is a new image file format, that is based on a discrete, fast
wavelet transform with progressive coding features. PGF can be used
for lossless and lossy compression.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PGF library
Group:		System/Libraries

%description -n %{libname}
libPGF contains an implementation of the Progressive Graphics File (PGF)
which is a new image file format, that is based on a discrete, fast
wavelet transform with progressive coding features. PGF can be used
for lossless and lossy compression.

%files -n %{libname}
%{_libdir}/libpgf.so.%{major}*

#----------------------------------------------------------------------------

%package doc
Summary:	libpgf documentation
Group:		Documentation
BuildArch:	noarch

%description doc
libPGF contains an implementation of the Progressive Graphics File (PGF)
which is a new image file format, that is based on a discrete, fast
wavelet transform with progressive coding features. PGF can be used
for lossless and lossy compression.

%files doc
%doc AUTHORS COPYING NEWS README
%doc %{_docdir}/%{name}-%{version}
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	libpgf Development Files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libPGF contains an implementation of the Progressive Graphics File (PGF)
which is a new image file format, that is based on a discrete, fast
wavelet transform with progressive coding features. PGF can be used
for lossless and lossy compression.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libpgf.so
%{_libdir}/pkgconfig/libpgf.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1
%patch1 -p1
%patch2 -p1

# Fix end-of-line-encoding (fixes compilation)
sed -i 's/\r$//' configure.ac

./autogen.sh

%build
# FIXME/TODO: document need for -DLIBPGF_DISABLE_OPENMP
# commit 52c998909401f404f1c7029b537ec900f3f780d0 doesn't say why, but
# I *think* it's related to digikam -- rex
export CFLAGS="%{optflags} -DLIBPGF_DISABLE_OPENMP"
export CXXFLAGS="%{optflags} -DLIBPGF_DISABLE_OPENMP -std=c++14"
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14262 |21mr|libphonenumber-8.13.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with java

%define major %(echo %{version} |cut -d. -f1)
%define libphonenumber %mklibname phonenumber %{major}
%define devphonenumber %mklibname -d phonenumber

Summary:	Library for parsing phone numbers
Name:		libphonenumber
Version:	8.13.5
Release:	2
Group:		System/Libraries
License:	Apache 2.0
Source0:	https://github.com/google/libphonenumber/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	abseil-cpp-devel
BuildRequires:	cmake
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	icu-devel
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	protobuf-compiler
BuildRequires:	pkgconfig(re2)
BuildRequires:	pkgconfig(gtest)
%if %{with java}
BuildRequires:	java-11-openjdk-headless
BuildRequires:	java-11-openjdk-devel
BuildRequires:	ant
%endif

%description
Library for parsing, formatting, and validating international phone numbers.

#----------------------------------------------------------------

%package -n %{libphonenumber}
Summary:	Library for parsing phone numbers
Group:		System/Libraries

%description -n %{libphonenumber}
Library for parsing phone numbers.

%files -n %{libphonenumber}
%{_libdir}/libphonenumber.so.%{major}*

#----------------------------------------------------------------

%package -n %{devphonenumber}
Summary:	Development files for the library for parsing phone numbers
Group:		Development/C
Requires:	%{libphonenumber} = %{EVRD}
Requires:	pkgconfig(protobuf)
Provides:	phonenumber-devel = %{EVRD}

%description -n %{devphonenumber}
Development files for the library for parsing phone numbers.

%files -n %{devphonenumber}
%{_includedir}/phonenumbers
%{_libdir}/libphonenumber.so
%{_libdir}/cmake/libphonenumber/libphonenumber-*.cmake

#----------------------------------------------------------------
%if %{with java}

%package java
Summary:	The phone number parsing library for Java
Group:		Development/Java

%description java
The phone number parsing library for Java.

%files java
%{_datadir}/java/*.jar

%endif
#----------------------------------------------------------------

%prep
%autosetup

%build
cd cpp
# missing empty header file, see https://github.com/google/libphonenumber/pull/2860
touch src/phonenumbers/test_metadata.h
%cmake -DBUILD_STATIC_LIB=OFF \
       -DBUILD_SHARED_LIB=ON \
       -DBUILD_TESTING=ON \
       -DBUILD_GEOCODER=OFF \
       -DREGENERATE_METADATA=OFF \
       -DCMAKE_CXX_STANDARD=17
%make

%install
%make_install -C cpp/build

%if %{with java}
mkdir -p %{buildroot}%{_datadir}/java
cp java/build/jar/*.jar %{buildroot}%{_datadir}/java
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14263 |21mr|libpinyin-2.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	13
%define libname %mklibname pinyin %{major}
%define devname %mklibname pinyin -d

Summary:	PinYin input library
Name:		libpinyin
Version:	2.6.2
Release:	1
License:	GPLv2
Group:		System/Libraries
Url:		http://libpinyin.sf.net/
Source0:	https://github.com/libpinyin/libpinyin/releases/download/%{version}/libpinyin-%{version}.tar.gz
BuildRequires:	autoconf
BuildRequires:	db-devel
BuildRequires:	pkgconfig(glib-2.0)

%description
PinYin input library

%files
%{_bindir}/*
%{_libdir}/libpinyin
%{_mandir}/man1/*

#----------------------------------------------

%package -n %{libname}
Summary:	PinYin input library
Group:		System/Libraries

%description -n %{libname}
PinYin input library

%files -n %{libname}
%{_libdir}/libpinyin.so.%{major}*

#-----------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#-------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14264 |21mr|libpipeline-1.5.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %{version} |cut -d. -f1)
%define libname %mklibname pipeline %{major}
%define devname %mklibname pipeline -d

Name:		libpipeline
Version:	1.5.3
Release:	2
Summary:	Library for manipulating pipelines of subprocesses

Group:		System/Libraries
License:	GPLv3+
URL:		http://libpipeline.nongnu.org/
Source0:	http://download.savannah.gnu.org/releases/libpipeline/%{name}-%{version}.tar.gz

%description
Library for manipulating pipelines of subprocesses.

%package -n %{libname}
Summary:	Library for manipulating pipelines of subprocesses

Group:		System/Libraries

%description -n %{libname}
Library for manipulating pipelines of subprocesses

%package -n %{devname}
Summary:	Development files for %{name}

Group:		Development/C
Requires:	%{libname} = %{version}-%{release}

%description -n %{devname}
Development files for %{name}, a library
for manipluating pipelines of subprocesses

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%doc COPYING NEWS
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14265 |21mr|libpki-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 91
%define libname %mklibname pki %{major}
%define devname %mklibname pki -d
%define commit 290e4975c4519ba2dec39d36755f38e816d01530

Summary:	OpenCA PKI development library
Name:		libpki
Version:	0.9.1
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.openca.org/projects/libpki
Source0:	https://github.com/openca/libpki/archive/%{commit}.zip?/%{name}-%{version}.zip
Patch0:		libpki-0.8.9-typo.patch
Patch1:		libpki-0.8.9git-etc_issue.patch
Patch2:		libpki-0.8.9git-fatal_errors.patch
Patch3:		libpki-0.8.9-aarch64.patch
BuildRequires:	libtool-devel
BuildRequires:	mysql-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblzma)

%description
OpenCA Labs' Easy to use PKI library.

#----------------------------------------------------------------------------

%package tools
Summary:	Shared libpki library
Group:		System/Libraries

%description tools
This package contains various tools using the shared PKI library.

%files tools
%{_bindir}/pki-cert
%{_bindir}/pki-crl
%{_bindir}/pki-derenc
%{_bindir}/pki-query
%{_bindir}/pki-request
%{_bindir}/pki-siginfo
%{_bindir}/pki-tool
%{_bindir}/pki-xpair
%{_bindir}/url-tool

#----------------------------------------------------------------------------

%package data
Summary:	Data files for PKI library
Group:		System/Libraries
Conflicts:	%{_lib}pki67 < 0.6.7-5

%description data
This package contains data files for PKI library.

%files data
%dir %{_sysconfdir}/libpki
%dir %{_sysconfdir}/libpki/hsm.d
%dir %{_sysconfdir}/libpki/store.d
%dir %{_sysconfdir}/libpki/profile.d
%dir %{_sysconfdir}/libpki/token.d
%config(noreplace) %{_sysconfdir}/pki.conf
%config(noreplace) %{_sysconfdir}/libpki/*.xml
%config(noreplace) %{_sysconfdir}/libpki/hsm.d/*.xml
%config(noreplace) %{_sysconfdir}/libpki/store.d/*.xml
%config(noreplace) %{_sysconfdir}/libpki/profile.d/*.xml
%config(noreplace) %{_sysconfdir}/libpki/token.d/*.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libpki library
Group:		System/Libraries
Requires:	%{name}-data

%description -n %{libname}
This package contains the shared PKI library.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README
%{_libdir}/libpki.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for libpki
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	pki-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for the PKI library.

%files -n %{devname}
%{_includedir}/libpki
%{_bindir}/libpki-config
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}
%ifarch %{e2k}
sed -i 's,\\*amd64),e2k),' configure.ac
%endif

%build
#autoreconf -fi
export LDFLAGS="$LDFLAGS %{ldflags} -llber"
%global optflags %{optflags} -Wno-sign-conversion
%configure \
	--disable-iphone \
	--disable-static

%make

%install
%makeinstall_std
mv %{buildroot}%{_prefix}/etc %{buildroot}/%{_sysconfdir}

# lib64 fix
perl -pi -e "s|/usr/lib\b|%{_libdir}|g" %{buildroot}%{_bindir}/libpki-config \
    %{buildroot}%{_libdir}/pkgconfig/libpki.pc

# cleanup
rm -rf %{buildroot}%{_datadir}/libpki

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14266 |21mr|libplacebo-4.192.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	192
%define	libname	%mklibname placebo %{major}
%define	devname	%mklibname placebo -d

Summary:	Reusable library for GPU-accelerated video/image rendering primitives
Name:		libplacebo
Version:	4.192.1
Release:	6
License:	LGPLv2.1+
Group:		Video
Url:		https://github.com/haasn/libplacebo
Source0:	https://github.com/haasn/libplacebo/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# fix building with modern vulkan headers
Patch0001:	0001-vulkan-blacklist-metal-structs-from-utils_gen.py.patch
Patch0002:	0002-vulkan-utils_gen-also-check-datadir-for-vk.xml.patch
Patch0003:	0003-vulkan-utils_gen-update-error-message.patch
Patch0004:	0004-vulkan-utils_gen-fix-build-on-vulkan-headers-1.3.241.patch
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	glslang-devel
BuildRequires:	python3dist(mako)
BuildRequires:	python3dist(pygame)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(glfw3)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(shaderc)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SPIRV-Tools)
BuildRequires:	pkgconfig(vulkan)

%description
This is essentially the core rendering algorithms and ideas of mpv turned into
a library of useful GPU-accelerated image processing primitives based on GLSL.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the main libraries of %{name}.

%files -n %{libname}
%doc README.md
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Provides:	placebo-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files needed for developing
applications using %{name}.

%files -n %{devname}
%doc LICENSE
%{_includedir}/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Ddemos=False
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14267 |21mr|libplist-2.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?python3_sitearch: %global python_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}


%define major		3
%define libname		%mklibname plist %{major}
%define libnamedev	%mklibname plist -d
%define libnamecxx	%mklibname plist++ %{major}
%define libnamecxxdev	%mklibname plist++ -d

Name:		libplist
Version:	2.2.0
Release:	2
Summary:	Library for manipulating Apple Binary and XML Property Lists
Group:		System/Libraries
License:	LGPLv2+
URL:		http://www.libimobiledevice.org/
Source0:	https://github.com/libimobiledevice/libplist/releases/download/%{version}/libplist-%{version}.tar.bz2
Patch0:		libplist-fmin.patch
BuildRequires:	chrpath
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(cython)

%description
libplist is a library for manipulating Apple Binary and XML Property Lists

%files
%doc AUTHORS COPYING.LESSER README.md
%{_bindir}/plistutil
%{_mandir}/man1/plistutil.1.*
#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Library for manipulating Apple Binary and XML Property Lists
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
libplist is a library for manipulating Apple Binary and XML Property Lists

%files -n %{libname}
%{_libdir}/%{name}-2.0.so.%{major}
%{_libdir}/%{name}-2.0.so.%{major}.*

#----------------------------------------------------------------------------

%package -n	%{libnamedev}
Summary:	Development package for libplist
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{libnamedev}
%{name}, development headers and libraries.

%files -n %{libnamedev}
%dir %{_includedir}/plist
%{_includedir}/plist/*.h
%{_includedir}/plist/cython/
%{_libdir}/pkgconfig/%{name}-2.0.pc
%{_libdir}/%{name}-2.0.so

#----------------------------------------------------------------------------

%package -n	%{libnamecxx}
Summary:	C++++ binding for libplist
Group:		Development/C++
Requires:	%{name} = %{EVRD}

%description -n %{libnamecxx}
C++ bindings for %{name}

%files -n %{libnamecxx}
%{_libdir}/%{name}++-2.0.so.%{major}
%{_libdir}/%{name}++-2.0.so.%{major}.*

#----------------------------------------------------------------------------

%package -n	%{libnamecxxdev}
Summary:	Development package for libplist++
Group:		Development/C++
Requires:	%{libnamecxx} = %{EVRD}
Provides:	%{name}++-devel = %{EVRD}
Conflicts:	%{mklibname plist++ 0} < 1.0

%description -n %{libnamecxxdev}
%{name}, C++ development headers and libraries.

%files -n %{libnamecxxdev}
%{_libdir}/pkgconfig/%{name}++-2.0.pc
%{_libdir}/%{name}++-2.0.so

#----------------------------------------------------------------------------

%package -n	python-plist
Summary:	Python package for libplist
Group:		Development/Python

%description -n python-plist
%{name}, python libraries and support

%files -n python-plist
%{python3_sitearch}/plist.so* 

#----------------------------------------------------------------------------
%prep
%autosetup -p1

%build
autoreconf -vfi
%configure --disable-static
%make_build

%install
%make_install

# we don't want these
find %{buildroot} -name '*.la' -delete

chrpath --delete %{buildroot}%{_bindir}/plistutil
chrpath --delete %{buildroot}%{_libdir}/libplist++-2.0.so.%{major}*
chrpath --delete %{buildroot}%{python3_sitearch}/plist*

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14268 |21mr|libpng-1.6.44-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 16
%define libname %mklibname png %{major}
%define devname %mklibname png -d

Summary:	A library of functions for manipulating PNG image format files
Name:		libpng
Version:	1.6.44
Release:	1
Epoch:		2
License:	zlib
Group:		Graphics
Url:		http://www.libpng.org/pub/png/libpng.html
Source0:	http://prdownloads.sourceforge.net/libpng/files/%{name}-%{version}.tar.xz
Source1:	pngusr.dfa
# (tpg) APNG support http://littlesvr.ca/apng/
# (tpg) http://hp.vector.co.jp/authors/VA013651/freeSoftware/apng.html
# (tpg) http://sourceforge.net/projects/libpng-apng/ <- use this one
Patch0:		https://sourceforge.net/projects/libpng-apng/files/libpng16/%{version}/libpng-%{version}-apng.patch.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(zlib)

%description
The libpng package contains a library of functions for creating and
manipulating PNG (Portable Network Graphics) image format files.  PNG is
a bit-mapped graphics format similar to the GIF format.  PNG was created to
replace the GIF format, since GIF uses a patented data compression
algorithm.

Libpng should be installed if you need to manipulate PNG format image
files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library of functions for manipulating PNG image format files
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libpng.

%files -n %{libname}
%{_libdir}/libpng%{major}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs to manipulate PNG image format files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	png-devel = %{EVRD}
# FIXME this is not quite right, but will fix a great many builds...
%if "%{_lib}" == "lib64"
Provides:	devel(libpng15(64bit))
%else
Provides:	devel(libpng15)
%endif

%description -n %{devname}
The libpng-devel package contains the header files and libraries
necessary for developing programs using the PNG (Portable Network
Graphics) library.

If you want to develop programs which will manipulate PNG image format
files, you should install libpng-devel.  You'll also need to install the
libpng package.

%files -n %{devname}
%doc libpng-manual.txt example.c README TODO CHANGES
%{_bindir}/png-fix-itxt
%{_bindir}/pngfix
%{_bindir}/libpng-config
%{_bindir}/libpng%{major}-config
%{_includedir}/*
%{_libdir}/libpng%{major}.so
%{_libdir}/libpng.so
%{_libdir}/pkgconfig/libpng*.pc
%{_mandir}/man?/*
%{_libdir}/cmake/libpng/libpng16-noconfig.cmake
%{_libdir}/cmake/libpng/libpng16.cmake
%{_libdir}/cmake/PNG

#----------------------------------------------------------------------------

%package source
Summary:	Source code of %{name}
Group:		Development/C

%description source
This package contains the source code of %{name}.

%files source
%{_prefix}/src/%{name}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp -p %{SOURCE1} .

# fix cmake files install dir
sed -i 's|${CMAKE_INSTALL_LIBDIR}/libpng|${CMAKE_INSTALL_LIBDIR}/cmake/libpng|' CMakeLists.txt


%build
export CFLAGS="%{optflags} -O3 -funroll-loops"

%cmake \
	-DPNG_SHARED:BOOL=ON \
	-DPNG_STATIC:BOOL=OFF
%make_build DFA_XTRA=pngusr.dfa -s


%install
%makeinstall_std -C build

install -d %{buildroot}%{_prefix}/src/%{name}
cp -a *.c *.h %{buildroot}%{_prefix}/src/%{name}

rm -rf %{buildroot}%{_prefix}/lib/libpng/*.cmake

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14269 |21mr|libportal-0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define gir_major 1.0
%define libname %mklibname portal %{major}
%define libgtk3 %mklibname portal-gtk3 %{major}
%define libgtk4 %mklibname portal-gtk4 %{major}
%define libqt5 %mklibname portal-qt5 %{major}
%define girgtk3 %mklibname portal-gir-gtk3 %{major}
%define girgtk4 %mklibname portal-gir-gtk4 %{major}
%define girqt5 %mklibname portal-gir-qt5 %{major}
%define devname %mklibname portal -d

Name:		libportal
Version:	0.6
Release:	5
Summary:	Flatpak portal library
Group:		System/Libraries
License:	LGPLv2+
Url:		https://github.com/flatpak/libportal
Source:		https://github.com/flatpak/libportal/releases/download/%{version}/libportal-%{version}.tar.xz
BuildRequires:	git-core
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	qt5-linguist-tools
BuildRequires:	vala
BuildRequires:	pkgconfig(gi-docgen)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Test)

%description
libportal provides GIO-style asynchronous APIs for most Flatpak portals.

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	Flatpak portal library
Group:		System/Libraries

%description -n %{libname}
libportal provides GIO-style asynchronous APIs for most Flatpak portals.

%files -n %{libname}
%doc README*
%license COPYING
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libgtk3}
Summary:	Flatpak portal gtk3 library
Group:		System/Libraries

%description -n %{libgtk3}
libportal provides GIO-style asynchronous APIs for most Flatpak portals.

%files -n %{libgtk3}
%doc README*
%license COPYING
%{_libdir}/%{name}-gtk3.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libgtk4}
Summary:	Flatpak portal gtk4 library
Group:		System/Libraries

%description -n %{libgtk4}
libportal provides GIO-style asynchronous APIs for most Flatpak portals.

%files -n %{libgtk4}
%doc README*
%license COPYING
%{_libdir}/%{name}-gtk4.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libqt5}
Summary:	Flatpak portal qt5 library
Group:		System/Libraries

%description -n %{libqt5}
libportal provides GIO-style asynchronous APIs for most Flatpak portals.

%files -n %{libqt5}
%doc README*
%license COPYING
%{_libdir}/%{name}-qt5.so.%{major}*

#------------------------------------------------------------------------

%package -n %{girgtk3}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girgtk3}
GObject Introspection interface description for %{name}.

%files -n %{girgtk3}
%{_libdir}/girepository-1.0/XdpGtk3-%{gir_major}.typelib

#------------------------------------------------------------------------

%package -n %{girgtk4}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girgtk4}
GObject Introspection interface description for %{name}.

%files -n %{girgtk4}
%{_libdir}/girepository-1.0/XdpGtk4-%{gir_major}.typelib

#------------------------------------------------------------------------

%package -n %{girqt5}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girqt5}
GObject Introspection interface description for %{name}.

%files -n %{girqt5}
%{_libdir}/girepository-1.0/Xdp-%{gir_major}.typelib

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and libraries for %name
Group:		Development/Other
Requires:	%{girgtk3} = %{EVRD}
Requires:	%{girgtk4} = %{EVRD}
Requires:	%{girqt5} = %{EVRD}
Requires:	%{libgtk3} = %{EVRD}
Requires:	%{libgtk4} = %{EVRD}
Requires:	%{libqt5} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%name provides GIO-style asynchronous APIs for most Flatpak portals.

This package provides files for development with %name.

%files -n %{devname}
%{_datadir}/gir-1.0/Xdp*-%{gir_major}.gir
%{_datadir}/vala/vapi/%{name}*
%{_includedir}/%{name}*
%{_libdir}/pkgconfig/%{name}*.pc
%{_libdir}/%{name}*.so

#------------------------------------------------------------------------

%package devel-doc
Summary:	Development documentation for libportal
Group:		Development/C
BuildArch:	noarch

%description devel-doc
libportal provides GIO-style asynchronous APIs for most Flatpak portals.

This package provides development documentations for libportal.

%files devel-doc
%{_defaultdocdir}/%{name}-%{major}

#------------------------------------------------------------------------

%prep
%autosetup -S git

%build
%meson -Dtests=false
%meson_build

%install
%meson_install

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14270 |21mr|libppd-2.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname ppd %{major}
%define devname %mklibname ppd -d

# for now these utils are in cups
%bcond_with tools

%if %{mdvver} >= 202310
%define gs_path %{_bindir}/gsc
%else
# abf.io/import/ghostscript10
# https://github.com/OpenPrinting/cups-filters/commit/531505b
%define gs_path %{_bindir}/gsc10
%endif

Summary:	Library for retro-fitting legacy printer drivers
Name:		libppd
Version:	2.0.0
Release:	6
License:	Apache 2.0 WITH LLVM-exception
Group:		System/Printing
Url:		https://github.com/OpenPrinting/libppd

Source0:	https://github.com/OpenPrinting/libppd/releases/download/%{version}/libppd-%{version}.tar.xz

# Fix problem with zlib linking
Patch1:		zlib-build-fix.patch

# For generating configure and Makefile scripts in autogen.h
BuildRequires: autoconf
# For generating configure and Makefile scripts in autogen.h
BuildRequires: automake
# Most functions written in C
BuildRequires: gcc
# PPD compiller support written in C++
BuildRequires: gcc-c++
# For generating configure and Makefile scripts in autogen.h
BuildRequires: gettext-devel
# Required CUPS API 2.2.2 or newer
BuildRequires: pkgconfig(cups) >= 2.2.2
# Filter functions
BuildRequires: pkgconfig(libcupsfilters) >= 2.0b3
# For rastertops
BuildRequires: pkgconfig(zlib)
# gsc has to be in buildroot due configure check
BuildRequires: ghostscript
# pdftops has to be in buildroot due configure check
BuildRequires: poppler
# gs --help is parsed by configure script
BuildRequires: %{gs_path}

%description
Libppd provides all PPD related function/API which is going
to be removed from CUPS 3.X, but are still required for retro-fitting
support of legacy printers. The library is meant only for retro-fitting
printer applications, any new printer drivers have to be written as
native printer application without libppd.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of libppd
Group:		System/Libraries
# gsc is used for most printers, but poppler (pdftops)
# is used for some known buggy ones
Requires:	%{gs_path}
Requires:	%{_bindir}/pdftocairo
Requires:	%{_bindir}/pdftops
# compat with Fedora/RH
Provides:	libppd = %{EVRD}
Provides:	libppd%{_isa} = %{EVRD}

%description -n %{libname}
Shared library of libppd

%files -n %{libname}
%license LICENSE COPYING NOTICE
%doc ABOUT-NLS AUTHORS CHANGES.md INSTALL README.md
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%license LICENSE COPYING NOTICE
%doc ABOUT-NLS AUTHORS CHANGES.md INSTALL README.md
%dir %{_includedir}/ppd
%{_includedir}/ppd/ppd-filter.h
%{_includedir}/ppd/ppdc.h
%{_includedir}/ppd/ppd.h
%{_libdir}/libppd.so
%{_libdir}/pkgconfig/libppd.pc

#----------------------------------------------------------------------------

%if %{with tools}

%package tools
Summary: PPD compiler tools and definition files
Group: System/Printing

%description tools
The package contains PPD compiler and definition files needed for generating
PPD files from *.drv files.

%files tools
%{_bindir}/ppdc
%{_bindir}/ppdhtml
%{_bindir}/ppdi
%{_bindir}/ppdmerge
%{_bindir}/ppdpo
%{_bindir}/testppdfile
%dir %{_datadir}/ppdc/
%{_datadir}/ppdc/epson.h
%{_datadir}/ppdc/font.defs
%{_datadir}/ppdc/hp.h
%{_datadir}/ppdc/label.h
%{_datadir}/ppdc/media.defs
%{_datadir}/ppdc/raster.defs

%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh

%configure \
  --disable-acroread \
  --disable-mutool \
  --disable-rpath \
  --disable-silent-rules \
  --disable-static \
%if %{with tools}
  --enable-ppdc-utils \
  --enable-testppdfile \
%else
  --disable-ppdc-utils \
  --disable-testppdfile \
%endif
  --with-gs-path=%{gs_path} \
  --with-pdftocairo-path=%{_bindir}/pdftocairo \
  --with-pdftops-path=%{_bindir}/pdftops \
  --with-pdftops=hybrid

%make_build

%install
%make_install

# rm odd files
rm -fvr %{buildroot}%{_docdir}/libppd

# charsets and header files needed for PPD compilation in runtime
# are for now shipped by cups - libppd will ship them once cups
# drops them
%if %{without tools}
  rm -rf %{buildroot}%{_datadir}/ppdc
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14271 |21mr|libpqxx-7.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7.6
%define libname %mklibname pqxx %{major}
%define devname %mklibname pqxx -d

Summary:	The official C++ client API for PostgreSQL
Name:		libpqxx
Version:	7.6.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://pqxx.org/
Source0:	https://github.com/jtv/libpqxx/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libpqxx-4.0-sed.patch
Patch10:	e2k-fix-build.patch
BuildRequires:  cmake 
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	postgresql
BuildRequires:	xmlto
BuildRequires:	pkgconfig(libpq)

%description
This library works on top of the C-level API library, libpq. You will need
libpq in order to use libpqxx.

The first thing you're likely to notice in programming with libpqxx is that
unlike other libraries, it revolves entirely around transactions. Transactions
are a central concept in database management systems, but they are widely
underappreciated among application developers. Another well-known open source
database system, MySQL, never even got around to implementing them at all in
their own engine, relying on a third-party replacement engine (now owned by
Oracle) to provide this functionality instead.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The official C++ client API for PostgreSQL
Group:		System/Libraries

%description -n %{libname}
This library works on top of the C-level API library, libpq. You will need
libpq in order to use libpqxx.

The first thing you're likely to notice in programming with libpqxx is that
unlike other libraries, it revolves entirely around transactions. Transactions
are a central concept in database management systems, but they are widely
underappreciated among application developers. Another well-known open source
database system, MySQL, never even got around to implementing them at all in
their own engine, relying on a third-party replacement engine (now owned by
Oracle) to provide this functionality instead.

%files -n %{libname}
%doc AUTHORS NEWS README.md VERSION
%license COPYING
%{_libdir}/%{name}-%{major}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README-UPGRADE
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/%{name}-config.cmake
%{_libdir}/cmake/%{name}/%{name}-config-version.cmake
%{_libdir}/cmake/%{name}/%{name}-targets.cmake
%{_libdir}/cmake/%{name}/%{name}-targets-noconfig.cmake
%{_includedir}/pqxx/*

#----------------------------------------------------------------------------

%package doc
Summary:	Developer documentation for %{name}
Group:		Development/Databases
BuildArch:      noarch

%description doc
This package contains docs for %{name}.

%files doc
%dir %{_docdir}/%{name}
%{_docdir}/%{name}/*.md

#----------------------------------------------------------------------------

%prep
%autosetup -N %{name}-%{version}
%ifnarch %{e2k}
%autopatch -p1 -M 9
%else
%autopatch -p1
%endif

%build
%cmake
%make_build

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14272 |21mr|libprelude-5.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 28
%define cppmajor 12
%define libname %mklibname prelude %{major}
%define libcpp %mklibname preludecpp %{cppmajor}
%define libnamedevel %mklibname prelude -d

%bcond_with ruby
%bcond_without python
%bcond_with perl
%bcond_with lua
%bcond_with swig

Name:		libprelude
Version:	5.2.0
Release:	2
Summary:	Prelude SIEM Library
License:	GPLv2+
Group:		System/Libraries
URL:		https://www.prelude-siem.org/
Source0:	https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz
# https://www.prelude-siem.org/issues/859
Patch0:		libprelude-4.0.0-linking.patch
# https://www.prelude-siem.org/issues/860
Patch1:		libprelude-4.0.0-ruby_vendorarchdir.patch
# https://www.prelude-siem.org/issues/862
Patch2:		libprelude-4.0.0-gnutls_priority_set_direct.patch
# https://www.prelude-siem.org/issues/863
Patch3:		libprelude-4.0.0-fsf_address.patch
# https://www.prelude-siem.org/issues/865
Patch4:		libprelude-4.0.0-fix_timegm.patch
# https://www.prelude-siem.org/issues/887
Patch5:		libprelude-4.0.0-fix_prelude_tests_timer.patch
Patch11:	python3.8.patch

BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	flex
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(zlib)

%if %{with swig}
BuildRequires:	swig
%endif

%if %{with perl}
BuildRequires:	perl-devel
%endif

%if %{with python}
BuildRequires:	pkgconfig(python3)
%endif

%if %{with lua}
BuildRequires:	pkgconfig(lua) >= 5.2
%endif

%if %{with ruby}
BuildRequires:	pkgconfig(ruby)
%endif

%description
The Prelude Library is a collection of generic functions providing
communication between the Prelude SIEM suite components. It
provides a convenient interface for sending alerts to Prelude
Manager with transparent SSL, failover and replication support,
asynchronous events and timer interfaces, an abstracted
configuration API (hooking at the commandline, the configuration
line, or wide configuration, available from the Manager), and a
generic plugin API. It allows you to easily turn your favorite
security program into a Prelude sensor.

#------------------------------------------------------------------
%package -n %{libname}
Summary:	Prelude SIEM Library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
The Prelude Library is a collection of generic functions providing
communication between the Prelude SIEM suite components. It
provides a convenient interface for sending alerts to Prelude
Manager with transparent SSL, failover and replication support,
asynchronous events and timer interfaces, an abstracted
configuration API (hooking at the commandline, the configuration
line, or wide configuration, available from the Manager), and a
generic plugin API. It allows you to easily turn your favorite
security program into a Prelude sensor.

%files -n %{libname}
%doc AUTHORS ChangeLog README NEWS
%license COPYING LICENSE.README HACKING.README
%{_libdir}/libprelude.so.%{major}
%{_libdir}/libprelude.so.%{major}.*

#------------------------------------------------------------------

%package -n %{libcpp}
Summary:	Prelude SIEM Library
Group:		System/Libraries

%description -n %{libcpp}
The Prelude Library is a collection of generic functions providing
communication between the Prelude SIEM suite components. It
provides a convenient interface for sending alerts to Prelude
Manager with transparent SSL, failover and replication support,
asynchronous events and timer interfaces, an abstracted
configuration API (hooking at the commandline, the configuration
line, or wide configuration, available from the Manager), and a
generic plugin API. It allows you to easily turn your favorite
security program into a Prelude sensor.

%files -n %{libcpp}
%{_libdir}/libpreludecpp.so.%{cppmajor}
%{_libdir}/libpreludecpp.so.%{cppmajor}.*

#------------------------------------------------------------------

%package -n %{libnamedevel}
Summary:	Libraries, includes, etc. for developing Prelude IDS sensors
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcpp} = %{EVRD}
Requires:	libltdl-devel
Provides:	%{name}-devel = %{EVRD}
Provides:	prelude-devel = %{EVRD}

%description -n %{libnamedevel}
Libraries, include files, etc you can use to develop Prelude IDS
sensors using the Prelude Library. The Prelude Library is a
collection of generic functions providing communication between
the Prelude SIEM suite componentst It provides a convenient
interface for sending alerts to Prelude Manager with transparent
SSL, failover and replication support, asynchronous events and
timer interfaces, an abstracted configuration API (hooking at the
commandline, the configuration line, or wide configuration,
available from the Manager), and a generic plugin API. It allows
you to easily turn your favorite security program into a Prelude
sensor.

%files -n %{libnamedevel}
%doc %{_datadir}/gtk-doc/html/libprelude/
%if %{with swig}
%{_datadir}/%{name}/swig
%endif
%{_bindir}/%{name}-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}/
%{_datadir}/aclocal/*.m4
%{_mandir}/man1/%{name}-config.1*
%{_datadir}/libprelude/swig/*

#------------------------------------------------------------------

%package -n prelude-tools
Summary:	The interface for %{libname}
Group:		Networking/Other
Requires:	%{libname} = %{EVRD}

%description -n prelude-tools
Provides a convenient interface for sending alerts to Prelude
Manager.

%files -n prelude-tools
%doc AUTHORS ChangeLog README INSTALL
%{_bindir}/prelude-adduser
%{_bindir}/prelude-admin
%{_mandir}/man1/prelude-admin.1*
%dir %{_sysconfdir}/prelude
%dir %{_sysconfdir}/prelude/default
%dir %{_sysconfdir}/prelude/profile
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/prelude/default/*.conf
%dir %{_var}/spool/prelude

#------------------------------------------------------------------

%if %{with python}
%package -n python3-prelude
Summary:	Python 3 bindings for prelude
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-prelude
Provides python 3 bindings for prelude.

%files -n python3-prelude
%{python3_sitearch}/*
%endif

#------------------------------------------------------------------

%if %{with perl}
%package -n perl-prelude
Summary:	Perl bindings for prelude
Group:		Development/Perl
Requires:	%{libname} = %{EVRD}

%description -n perl-prelude
Provides perl bindings for prelude.

%files -n perl-prelude
%{perl_vendorarch}/Prelude*.pm
%{perl_vendorarch}/auto/Prelude
%endif

#------------------------------------------------------------------

%if %{with ruby}
%package -n ruby-prelude
Summary:	Ruby bindings for prelude
Group:		Development/Ruby
Requires:	%{libname} = %{EVRD}

%description -n ruby-prelude
Provides ruby bindings for prelude.

%files -n ruby-prelude
%{ruby_sitearchdir}/*
%endif

#------------------------------------------------------------------

%if %{with lua}
%package -n lua-prelude
Summary:	Lua bindings for prelude
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	lua

%description -n lua-prelude
Provides Lua bindings for prelude generated by SWIG.
%endif

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -pthread"
export CXXFLAGS="$CFLAGS"
# it's a hack
# but need to keep it
export ac_cv_prog_HAVE_CXX=yes
%configure \
    --without-included-ltdl \
    --disable-static \
    --enable-shared \
%if %{with swig}
    --with-swig \
%endif
    --without-python2 \
%if %{with python}
    --with-python3 \
%endif
    --with-perl-installdirs=vendor \
    --without-included-regex \
    --includedir=%{_includedir}/%{name}
%make_build

%install
%make_install

%{_bindir}/chrpath -d %{buildroot}%{_libdir}/*.so.*

find %{buildroot} -name '*.la' -delete

#install missing config.h files
install -p -m 644 config.h '%{buildroot}%{_includedir}/%{name}'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14273 |21mr|libpreludedb-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define cpp_major 2
%define libname %mklibname preludedb %{major}
%define libnamecpp %mklibname preludedbcpp %{cpp_major}
%define devname %mklibname preludedb -d

Summary:	Provide the framework for easy access to the Prelude database
Name:		libpreludedb
Version:	5.2.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.prelude-siem.org/
Source0:	https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz
Source4:	libpreludedb-addIndices.sql
Patch0:		libpreludedb-1.2.6-cpp-lib.patch
Patch1:		libpreludedb-5.2.0-fix_thread_create.patch
Patch2:		libpreludedb-5.2.0-Add-pkg-config-file.patch
Patch3:		libpreludedb-5.2.0-fix_gtkdoc_1.32.patch
Patch4:		libpreludedb-5.2.0-c++-aarch64.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	chrpath
BuildRequires:	swig
BuildRequires:	libtool-devel
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libprelude)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

# for autoreconf
BuildRequires:  gtk-doc

%description
The PreludeDB Library provides an abstraction layer upon the type
and the format of the database used to store IDMEF alerts. It
allows developers to use the Prelude IDMEF database easily and
efficiently wi thout worrying about SQL, and to access the
database independently of the type/format of the database.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Provide the framework for easy access to the Prelude database
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Requires:	preludedb-common
Obsoletes:	perl-preludedb < 1.2.6

%description -n %{libname}
The PreludeDB Library provides an abstraction layer upon the type
and the format of the database used to store IDMEF alerts. It
allows developers to use the Prelude IDMEF database easily and
efficiently wi thout worrying about SQL, and to access the
database independently of the type/format of the database.

%files -n %{libname}
%doc COPYING ChangeLog HACKING.README LICENSE.README NEWS README
%{_libdir}/libpreludedb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamecpp}
Summary:	Provide the framework for easy access to the Prelude database
Group:		System/Libraries
Requires:	preludedb-common

%description -n %{libnamecpp}
The PreludeDB Library provides an abstraction layer upon the type
and the format of the database used to store IDMEF alerts. It
allows developers to use the Prelude IDMEF database easily and
efficiently wi thout worrying about SQL, and to access the
database independently of the type/format of the database.

%files -n %{libnamecpp}
%{_libdir}/libpreludedbcpp.so.%{cpp_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for PreludeDB
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamecpp} = %{EVRD}
Provides:	preludedb-devel = %{EVRD}

%description -n %{devname}
The PreludeDB Library provides an abstraction layer upon the type
and the format of the database used to store IDMEF alerts. It
allows developers to use the Prelude IDMEF database easily and
efficiently wi thout worrying about SQL, and to access the
database independently of the type/format of the database.

This package contains the development libraries and headers for
PreludeDB.

%files -n %{devname}
%doc %{_docdir}/%{devname}
%{_bindir}/%{name}-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/libpreludedb.pc
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/*.hxx
%{_datadir}/aclocal/*.m4
%{_mandir}/man1/libpreludedb-config.1*

#----------------------------------------------------------------------------

%package -n preludedb-tools
Summary:	The interface for %{libname}
Group:		Networking/Other

%description -n preludedb-tools
Provides a convenient interface for sending alerts to Prelude
Manager.

%files -n preludedb-tools
%{_bindir}/preludedb-admin
%{_mandir}/man1/preludedb-admin.1*

#----------------------------------------------------------------------------

%package -n python-preludedb
Summary:	Python bindings for PreludeDB
Group:		Development/Python
Provides:	python3-preludedb = %{EVRD}

%description -n python-preludedb
Provides python bindings for PreludeDB.

%files -n python-preludedb
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%package -n preludedb-common
Summary:	Plugin to use prelude with a MySQL database
Group:		System/Servers
Conflicts:	libpreludedb0 < 1.0.1-1

%description -n preludedb-common
This plugin authorise prelude to store alerts into a MySQL
database.

%files -n preludedb-common
%{_libdir}/%{name}/plugins/formats/classic.so
%{_datadir}/%{name}/classic/addIndices.sql

#----------------------------------------------------------------------------

%package -n preludedb-mysql
Summary:	Plugin to use prelude with a MySQL database
Group:		System/Servers

%description -n preludedb-mysql
This plugin authorise prelude to store alerts into a MySQL
database.

%files -n preludedb-mysql
%{_libdir}/%{name}/plugins/sql/mysql.so
%attr(0755,root,root) %{_datadir}/%{name}/classic/mysql2sqlite.sh
%attr(0755,root,root) %{_datadir}/%{name}/classic/mysql2pgsql.sh
%{_datadir}/%{name}/classic/mysql*.sql

#----------------------------------------------------------------------------

%package -n preludedb-pgsql
Summary:	Plugin to use prelude with a PostgreSQL database
Group:		System/Servers

%description -n preludedb-pgsql
This plugin authorise prelude to store alerts into a PostgreSQL
database.

%files -n preludedb-pgsql
%{_libdir}/%{name}/plugins/sql/pgsql.so
%{_datadir}/%{name}/classic/pgsql*.sql

#----------------------------------------------------------------------------

%package -n preludedb-sqlite3
Summary:	Plugin to use prelude with a SQLite3 database
Group:		System/Servers

%description -n preludedb-sqlite3
This plugin authorise prelude to store alerts into a SQLite3
database.

%files -n preludedb-sqlite3
%{_libdir}/%{name}/plugins/sql/sqlite3.so
%{_datadir}/%{name}/classic/sqlite*.sql

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# autoreconf needed for aarch64 patch
autoreconf -fi
%configure \
	--disable-static \
	--enable-shared \
	--localstatedir=%{_var} \
	--includedir=%{_includedir}/%{name} \
	--with-swig \
	--without-python2 \
	--with-python3 \
	--with-html-dir=%{_docdir}/%{devname}

%make

%install
%makeinstall_std

cp -a %{SOURCE4} %{buildroot}%{_datadir}/%{name}/classic/addIndices.sql

# fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/preludedb-admin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14274 |21mr|libprojectm-3.1.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libprojectM
%define major 3
%define libname %mklibname projectm %{major}
%define devname %mklibname projectm -d

Summary:	Visualization library for OpenGL based on Milkdrop
Name:		libprojectm
Epoch:		1
Version:	3.1.12
Release:	5
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/projectM-visualizer
Source0:	https://github.com/projectM-visualizer/projectm/archive/v%{version}.tar.gz
BuildRequires:	gomp-devel
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(libpulse)

%description
projectM is a reimplementation of Milkdrop under OpenGL.

%files
%{_bindir}/projectM-jack
%{_bindir}/projectM-pulseaudio
%{_bindir}/projectM-unittest
%{_bindir}/projectMSDL
%{_datadir}/applications/projectM-jack.desktop
%{_datadir}/applications/projectM-pulseaudio.desktop
%{_datadir}/icons/hicolor/scalable/apps/projectM.svg
%{_mandir}/man1/projectM-jack.1.*
%{_mandir}/man1/projectM-pulseaudio.1.*

#----------------------------------------------------------------------------

%package data
Summary:	Visualization library for OpenGL based on Milkdrop
Group:		Graphics
Requires:	fonts-ttf-bitstream-vera

%description data
projectM is a reimplementation of Milkdrop under OpenGL. This contains data
files and presets.

%files data
%{_datadir}/projectM/

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Visualization library for OpenGL based on Milkdrop
Group:		System/Libraries
Requires:	%{name}-data >= %{EVRD}

%description -n %{libname}
projectM is a reimplementation of Milkdrop under OpenGL.

%files -n %{libname}
%{_libdir}/libprojectM.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Visualization library for OpenGL based on Milkdrop
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libprojectm-devel = %{EVRD}

%description -n %{devname}
projectM is a reimplementation of Milkdrop under OpenGL.

%files -n %{devname}
%{_includedir}/libprojectM
%{_libdir}/libprojectM.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn projectm-%{version}
%autopatch -p1

%build
export LDFLAGS="%{ldflags} -lpthread"
autoreconf -fiv
%configure \
	--enable-gles	\
	--enable-qt	\
	--enable-sdl	\
	--enable-threading
%make_build

%install
%make_install

#replace by symlink
ln -sf %{_datadir}/fonts/TTF/{Vera.ttf,VeraMono.ttf} %{buildroot}%{_datadir}/projectM/fonts/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14275 |21mr|libproxy-0.4.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname proxy %{major}
%define devname %mklibname -d proxy

%bcond_with bootstrap

%if %{with bootstrap}
%bcond_with gnome3
%bcond_with kde
%bcond_with networkmanager
%bcond_with perl
%bcond_with python2
%bcond_with python3
%bcond_with vala
%bcond_with webkit
%else
%bcond_without gnome3
%bcond_without kde
%bcond_without networkmanager
%bcond_without perl
%bcond_without python2
%bcond_without python3
%bcond_without vala
%bcond_without webkit
%endif

Summary:	A library handling all the details of proxy configuration
Name:		libproxy
Version:	0.4.17
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://code.google.com/p/libproxy/
Source0:	https://github.com/libproxy/libproxy/releases/download/%{version}/%{name}-%{version}.tar.xz
# Taken from the Debian package.
Source1:	proxy.1
# https://bugzilla.redhat.com/show_bug.cgi?id=1898060
Patch0:         libproxy-0.4.17-fix-python-version-check.patch
# https://github.com/libproxy/libproxy/pull/152
Patch1:		0001-perl-Add-XS_unpack_charPtrPtr-function.patch
BuildRequires:	cmake
%if %{with python3}
BuildRequires:	pkgconfig(python3)
%endif
%if %{with python2}
BuildRequires:	pkgconfig(python2)
%endif
BuildRequires:	pkgconfig(zlib)
%if %{with perl}
BuildRequires:	perl-devel
%endif
%if %{with networkmanager}
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
%endif
%if %{with webkit}
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires: 	pkgconfig(javascriptcoregtk-4.0)
%endif

%description
libproxy offers the following features:

    * extremely small core footprint (< 35K)
    * no external dependencies within libproxy core
      (libproxy plugins may have dependencies)
    * only 3 functions in the stable external API
    * dynamic adjustment to changing network topology
    * a standard way of dealing with proxy settings across all scenarios
    * a sublime sense of joy and accomplishment 

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	A library handling all the details of proxy configuration
Provides:	libproxy-pac = %{version}-%{release}

%description -n %{libname}
libproxy offers the following features:

    * extremely small core footprint (< 35K)
    * no external dependencies within libproxy core
      (libproxy plugins may have dependencies)
    * only 3 functions in the stable external API
    * dynamic adjustment to changing network topology
    * a standard way of dealing with proxy settings across all scenarios
    * a sublime sense of joy and accomplishment 

%files -n %{libname}
%{_libdir}/libproxy.so.%{major}*
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/%{version}
%dir %{_libdir}/%{name}/%{version}/modules

#----------------------------------------------------------------------------

%package utils
Summary:	Binary to test %{name}
Group:		System/Configuration/Networking

%description utils
The %{name}-utils package contains the proxy binary for %{name}.

%files utils
%{_bindir}/proxy
%{_mandir}/man1/proxy.1*

#----------------------------------------------------------------------------

%if %{with python3}
%package -n python3-%{name}
Summary:	Binding for %{name} and python3
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
The python-%{name} package contains the python binding for %{name}.

%files -n python3-%{name}
%{python3_sitelib}/libproxy.py*
%{python3_sitelib}/__pycache__/*
%endif

#----------------------------------------------------------------------------

%if %{with python2}
%package -n python2-%{name}
%py2_migration_meta python2-%{name}
Summary:	Binding for %{name} and python 2.x
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python2-%{name}
The python2-%{name} package contains the python 2.x binding for %{name}.

%files -n python2-%{name}
%{py2_puresitedir}/libproxy.py*
%endif

#----------------------------------------------------------------------------

%if %{with vala}
%package -n vala-%{name}
Summary:	Binding for %{name} and vala
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n vala-%{name}
The vala-%{name} package contains the vala binding for %{name}.

%files -n vala-%{name}
%{_datadir}/vala/vapi/libproxy-1.0.vapi
%endif

#----------------------------------------------------------------------------

%if %{with perl}
%package perl
Summary:	Perl bindings for %{name}
Group:		Development/Perl
Requires:	%{libname} = %{EVRD}

%description perl
This contains the perl bindings for the libproxy library.

%files perl
%{perl_vendorarch}/Net/Libproxy.pm
%{perl_vendorarch}/auto/Net/Libproxy
%endif

#----------------------------------------------------------------------------

%if %{with gnome3}
%package gnome
Summary:	Plugin for %{name} and gnome
Group:		System/Libraries

%description gnome
The %{name}-gnome package contains the %{name} plugin for gnome.

%files gnome
%{_libdir}/%{name}/%{version}/modules/config_gnome3.so
%{_libexecdir}/pxgsettings
%endif

#----------------------------------------------------------------------------


%if %{with kde}
%package kde
Summary:	Plugin for %{name} and kde
Group:		System/Libraries
Requires:	kconfig

%description kde
The %{name}-kde package contains the %{name} plugin for kde.

%files kde
%{_libdir}/%{name}/%{version}/modules/config_kde.so
%endif

#----------------------------------------------------------------------------

%if %{with networkmanager}
%package networkmanager
Summary:	Plugin for %{name} and networkmanager
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description networkmanager
The %{name}-networkmanager package contains the %{name} plugin for
networkmanager.

%files networkmanager
%{_libdir}/%{name}/%{version}/modules/network_networkmanager.so
%endif

#----------------------------------------------------------------------------

%if %{with webkit}
%package webkit
Summary:	Plugin for %{name} and webkit
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description webkit
The %{name}-webkit package contains the %{name} plugin for
webkit.

%files webkit
%{_libdir}/%{name}/%{version}/modules/pacrunner_webkit.so
%endif

#----------------------------------------------------------------------------

%if %{without bootstrap}
%package pacrunner
Summary:	Plugin for %{name} and PacRunner
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Recommends:	pacrunner
Provides:	%{name}-pac = %{EVRD}

%description pacrunner
The %{name}-pacrunner package contains the %{name} plugin for
PacRunner.

%files pacrunner
%{_libdir}/%{name}/%{version}/modules/config_pacrunner.so
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc AUTHORS README
%{_includedir}/proxy.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/libproxy-1.0.pc
%{_datadir}/cmake/Modules/Findlibproxy.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# BIPR=OFF so we dont end up requiring gtk/webkit just for the lib
%cmake \
	-Dlibexecdir=%{_libexecdir} \
	-DLIBEXEC_INSTALL_DIR=%{_libexecdir} \
	-DMODULE_INSTALL_DIR=%{_libdir}/%{name}/%{version}/modules \
	-DBIPR=OFF \
	-DWITH_PERL:BOOL=%{with perl} \
%if %{with perl}
	-DPERL_VENDORINSTALL=1 \
	-DPERL_LINK_LIBPERL=1 \
%endif
%if %{with python2}
	-DPYTHON2_EXECUTABLE:FILEPATH=%{_bindir}/python2 \
%endif
	-DWITH_GNOME3:BOOL=%{with gnome3} \
	-DWITH_KDE:BOOL=%{with kde} \
	-DWITH_PYTHON2:BOOL=%{with python2} \
	-DWITH_PYTHON3:BOOL=%{with python3} \
	-DWITH_VALA:BOOL=%{with vala} \
	-DWITH_WEBKIT3:BOOL=%{with webkit} \
	-DWITH_NM:BOOL=%{with networkmanager}

%build
%make_build -C build

%install
%make_install -C build

mkdir -p %{buildroot}%{_libdir}/%{name}/%{version}/modules

install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_mandir}/man1/proxy.1

#gw fix pkgconfig file
sed -i -e "s^Version:.*^Version: %{version}^" %{buildroot}%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14276 |21mr|libpsl-0.21.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname psl %{major}
%define devname %mklibname psl -d

%bcond_with bootstrap

Summary:	C library for the Public Suffix List
Name:		libpsl
Version:	0.21.0
Release:	3
License:	MIT
Group:		System/Libraries
Url:		https://github.com/rockdaboot/libpsl
Source0:	https://github.com/rockdaboot/libpsl/releases/download/libpsl-%{version}/libpsl-%{version}.tar.gz
BuildRequires:	libunistring-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	publicsuffix-list
# for man-pages
BuildRequires:	xsltproc

%description
A "public suffix" is a domain name under which Internet users can directly
register own names.

Browsers and other web clients can use it to
* avoid privacy-leaking "supercookies"
* avoid privacy-leaking "super domain" certificates
* domain highlighting parts of the domain in a user interface
* sorting domain lists by site

Libpsl:
* has built-in PSL data for fast access (DAWG/DAFSA reduces size from
  180kB to ~32kB)
* allows to load PSL data from files
* checks if a given domain is a "public suffix"
* provides immediate cookie domain verification
* finds the longest public part of a given domain
* finds the shortest private part of a given domain
* works with international domains (UTF-8 and IDNA2008 Punycode)
* is thread-safe
* handles IDNA2008 UTS#46

#----------------------------------------------------------------------------

%package -n psl
Summary:	Commandline utility to explore the Public Suffix List
Group:		Development/Other
Requires:	publicsuffix-list

%description -n psl
This package contains a commandline utility to explore the Public Suffix List,
for example it checks if domains are public suffixes, checks if cookie-domain
is acceptable for domains and so on.

%files -n psl
%{_bindir}/psl
%{_mandir}/man1/psl.1*

#----------------------------------------------------------------------------

%package -n psl-make-dafsa
Summary:	Compiles the Public Suffix List into DAFSA form
Group:		Development/Other
Requires:	python3

%description -n psl-make-dafsa
This script produces C/C++ code or an architecture-independent binary object
which represents a Deterministic Acyclic Finite State Automaton (DAFSA)
from a plain text Public Suffix List.

%files -n psl-make-dafsa
%{_bindir}/psl-make-dafsa
%{_mandir}/man1/psl-make-dafsa.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries
%if %{without bootstrap}
Requires:	publicsuffix-list-dafsa
%endif

%description -n %{libname}
A "public suffix" is a domain name under which Internet users can directly
register own names.

Browsers and other web clients can use it to
* avoid privacy-leaking "supercookies"
* avoid privacy-leaking "super domain" certificates
* domain highlighting parts of the domain in a user interface
* sorting domain lists by site

Libpsl:
* has built-in PSL data for fast access (DAWG/DAFSA reduces size from
  180kB to ~32kB)
* allows to load PSL data from files
* checks if a given domain is a "public suffix"
* provides immediate cookie domain verification
* finds the longest public part of a given domain
* finds the shortest private part of a given domain
* works with international domains (UTF-8 and IDNA2008 Punycode)
* is thread-safe
* handles IDNA2008 UTS#46

%files -n %{libname}
%{_libdir}/libpsl.so.%{major}
%{_libdir}/libpsl.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files nad headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	publicsuffix-list

%description -n %{devname}
This package contains the developmen files and headers for %{name}.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/%{name}
%{_includedir}/libpsl.h
%{_libdir}/libpsl.so
%{_libdir}/pkgconfig/libpsl.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#
# libicu does allow support for a newer IDN specification (IDN 2008) than
# libidn 1.x (IDN 2003). However, libpsl mostly relies on an internally
# compiled list, which is generated at buildtime and the testsuite thereof
# requires either libidn or libicu only at buildtime; the runtime
# requirement is only for loading external lists, which IIUC neither curl
# nor wget support. libidn2 supports IDN 2008 as well, and is *much* smaller
# than libicu.
#
# curl (as of 7.56.0) now depends on libidn2, and is a core package.
# wget still uses libidn 1.x, but it is not a core package.  Therefore, use
# libidn2 at runtime to help minimize core dependencies.
%configure \
	--disable-static \
	--enable-man \
	--disable-gtk-doc \
	--enable-builtin=libicu \
	--enable-runtime=libidn2 \
	--with-psl-distfile=%{_datadir}/publicsuffix/public_suffix_list.dafsa  \
	--with-psl-file=%{_datadir}/publicsuffix/effective_tld_names.dat       \
	--with-psl-testfile=%{_datadir}/publicsuffix/test_psl.txt

%make

%install
%makeinstall_std

# the script is noinst but the manpage is installed
install -m0755 src/psl-make-dafsa %{buildroot}%{_bindir}/

# fix shebang
sed -i -e "1s|#!.*|#!/usr/bin/python3|" %{buildroot}%{_bindir}/psl-make-dafsa

%check
make check || cat tests/test-suite.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14277 |21mr|libpsl-0.21.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname psl %{major}
%define devname %mklibname psl -d

%bcond_with bootstrap

Summary:	C library for the Public Suffix List
Name:		libpsl
Version:	0.21.0
Release:	7
License:	MIT
Group:		System/Libraries
Url:		https://github.com/rockdaboot/libpsl
Source0:	https://github.com/rockdaboot/libpsl/releases/download/libpsl-%{version}/libpsl-%{version}.tar.gz
BuildRequires:	libunistring-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	publicsuffix-list
# for man-pages
BuildRequires:	xsltproc

%description
A "public suffix" is a domain name under which Internet users can directly
register own names.

Browsers and other web clients can use it to
* avoid privacy-leaking "supercookies"
* avoid privacy-leaking "super domain" certificates
* domain highlighting parts of the domain in a user interface
* sorting domain lists by site

Libpsl:
* has built-in PSL data for fast access (DAWG/DAFSA reduces size from
  180kB to ~32kB)
* allows to load PSL data from files
* checks if a given domain is a "public suffix"
* provides immediate cookie domain verification
* finds the longest public part of a given domain
* finds the shortest private part of a given domain
* works with international domains (UTF-8 and IDNA2008 Punycode)
* is thread-safe
* handles IDNA2008 UTS#46

#----------------------------------------------------------------------------

%package -n psl
Summary:	Commandline utility to explore the Public Suffix List
Group:		Development/Other
Requires:	publicsuffix-list

%description -n psl
This package contains a commandline utility to explore the Public Suffix List,
for example it checks if domains are public suffixes, checks if cookie-domain
is acceptable for domains and so on.

%files -n psl
%{_bindir}/psl
%{_mandir}/man1/psl.1*

#----------------------------------------------------------------------------

%package -n psl-make-dafsa
Summary:	Compiles the Public Suffix List into DAFSA form
Group:		Development/Other
Requires:	python3

%description -n psl-make-dafsa
This script produces C/C++ code or an architecture-independent binary object
which represents a Deterministic Acyclic Finite State Automaton (DAFSA)
from a plain text Public Suffix List.

%files -n psl-make-dafsa
%{_bindir}/psl-make-dafsa
%{_mandir}/man1/psl-make-dafsa.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries
%if %{without bootstrap}
Requires:	publicsuffix-list-dafsa
%endif

%description -n %{libname}
A "public suffix" is a domain name under which Internet users can directly
register own names.

Browsers and other web clients can use it to
* avoid privacy-leaking "supercookies"
* avoid privacy-leaking "super domain" certificates
* domain highlighting parts of the domain in a user interface
* sorting domain lists by site

Libpsl:
* has built-in PSL data for fast access (DAWG/DAFSA reduces size from
  180kB to ~32kB)
* allows to load PSL data from files
* checks if a given domain is a "public suffix"
* provides immediate cookie domain verification
* finds the longest public part of a given domain
* finds the shortest private part of a given domain
* works with international domains (UTF-8 and IDNA2008 Punycode)
* is thread-safe
* handles IDNA2008 UTS#46

%files -n %{libname}
%{_libdir}/libpsl.so.%{major}
%{_libdir}/libpsl.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files nad headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	publicsuffix-list

%description -n %{devname}
This package contains the developmen files and headers for %{name}.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/%{name}
%{_includedir}/libpsl.h
%{_libdir}/libpsl.so
%{_libdir}/pkgconfig/libpsl.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
#
# libicu does allow support for a newer IDN specification (IDN 2008) than
# libidn 1.x (IDN 2003). However, libpsl mostly relies on an internally
# compiled list, which is generated at buildtime and the testsuite thereof
# requires either libidn or libicu only at buildtime; the runtime
# requirement is only for loading external lists, which IIUC neither curl
# nor wget support. libidn2 supports IDN 2008 as well, and is *much* smaller
# than libicu.
#
# curl (as of 7.56.0) now depends on libidn2, and is a core package.
# wget still uses libidn 1.x, but it is not a core package.  Therefore, use
# libidn2 at runtime to help minimize core dependencies.
%configure \
	--disable-static \
	--enable-man \
	--disable-gtk-doc \
	--enable-builtin=libicu \
	--enable-runtime=libidn2 \
	--with-psl-distfile=%{_datadir}/publicsuffix/public_suffix_list.dafsa  \
	--with-psl-file=%{_datadir}/publicsuffix/effective_tld_names.dat       \
	--with-psl-testfile=%{_datadir}/publicsuffix/test_psl.txt

%make

%install
%makeinstall_std

# the script is noinst but the manpage is installed
install -m0755 src/psl-make-dafsa %{buildroot}%{_bindir}/

# fix shebang
sed -i -e "1s|#!.*|#!/usr/bin/python3|" %{buildroot}%{_bindir}/psl-make-dafsa

%check
make check || cat tests/test-suite.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14278 |21mr|libpst-0.6.76-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname pst %{major}
%define devname %mklibname pst -d

Summary:	Utilities to convert Outlook .pst files to other formats
Name:		libpst
Epoch:		1
Version:	0.6.76
Release:	2
License:	GPLv2+
Group:		Networking/Mail
Url:		http://www.five-ten-sg.com/%{name}/
Source0:	http://www.five-ten-sg.com/%{name}/packages/%{name}-%{version}.tar.gz
Patch0:		libpst-0.6.75-linkage.patch
BuildRequires:	imagemagick
BuildRequires:	boost-devel
BuildRequires:	gd-devel
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
Requires:	imagemagick
Provides:	pst-utils = %{EVRD}

%description
The Libpst utilities include readpst which can convert email messages
to both mbox and MH mailbox formats, pst2ldif which can convert the
contacts to .ldif format for import into ldap databases, and pst2dii
which can convert email messages to the DII load file format used by
Summation.

%files
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%docdir %{_datadir}/doc/%{name}-%{version}
%{_datadir}/doc/%{name}-%{version}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A shared library for .pst files support
Group:		System/Libraries

%description -n %{libname}
Library needed for running libpst tools.

%files -n %{libname}
%{_libdir}/libpst.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library and header files for the libpst library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Library and header files for the libpst library.

%files -n %{devname}
%{_includedir}/libpst-4/
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python binding for the libpst library
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
Python module for using pst files.

%files -n python3-%{name}
%{py3_platsitedir}/_libpst.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--enable-libpst-shared \
	--enable-shared

%make LIBS='-lpython%{py3_ver}'

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14279 |21mr|libpthread-stubs-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Debug package is empty so disable it
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	PThread Stubs for XCB
Name:		libpthread-stubs
Version:	0.4
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xcb.freedesktop.org
Source0:	http://xcb.freedesktop.org/dist/libpthread-stubs-%{version}.tar.bz2
BuildRequires:	libxslt-proc
BuildRequires:	x11-util-macros
BuildRequires:	x11-proto-devel

%description
PThread Stubs for XCB.

%files
%{_libdir}/pkgconfig/pthread-stubs.pc

#----------------------------------------------------------------------------

%prep
%setup -qn libpthread-stubs-%{version}

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14280 |21mr|libpwquality-1.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude_from '%{py2_platsitedir}/(.*)\\.so$'
%global __provides_exclude_from '%{py3_platsitedir}/(.*)\\.so$'

%define oname pwquality

%define major 1
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

%bcond_without python
%bcond_without python3

Summary:	Library for password quality checking and generating random passwords
Name:		libpwquality
Version:	1.4.4
Release:	2
# The package is BSD licensed with option to relicense as GPL+
# - this option is redundant as the BSD license allows that anyway.
License:	BSD or GPL+
Group:		System/Libraries
Url:		http://libpwquality.fedorahosted.org/
Source0:	https://github.com/libpwquality/libpwquality/releases/download/libpwquality-%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	libcrack-devel
BuildRequires:	pam-devel
%if %{with python}
BuildRequires:	pkgconfig(python2)
%endif
%if %{with python3}
BuildRequires:	pkgconfig(python3)
%endif

%description
The libpwquality library purpose is to provide common functions for password
quality checking and also scoring them based on their apparent randomness.

The library also provides a function for generating random passwords with good
pronounceability. The library supports reading and parsing of a configuration
file.

#----------------------------------------------------------------------------

%package common
Summary:	Noarch data files for libpwquality (locales, configs etc)
Group:		System/Base
Conflicts:	%{name}-tools < 1.2.4-4
Conflicts:	%{_lib}pwquality1 < 1.2.4-4

%description common
Noarch data files for libpwquality (locales, configs etc).

%files common -f %{name}.lang
%config(noreplace) %{_sysconfdir}/security/%{oname}.conf
%{_mandir}/man5/%{oname}.conf.5*

#----------------------------------------------------------------------------

%package tools
Summary:	Tools for password quality checking and generating random passwords
Group:		System/Base

%description tools
Tools for password quality checking and generating random passwords.

%files tools
%doc COPYING README NEWS AUTHORS
%{_bindir}/pwmake
%{_bindir}/pwscore
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n pam_pwquality
Summary:	PAM module for %{oname}
Group:		System/Base
Provides:	%{oname} = %{EVRD}
Provides:	%{name} = %{EVRD}
Conflicts:	%{name}-tools < 1.2.4-4
Conflicts:	%{_lib}pwquality1 < 1.2.4-4

%description -n pam_pwquality
PAM module for %{oname}.

%files -n pam_pwquality
/%{_lib}/security/pam_pwquality.so
%{_mandir}/man8/pam_pwquality.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{oname}
Group:		System/Libraries
Requires:	cracklib-dicts
Requires:	%{name}-common >= %{EVRD}

%description -n %{libname}
The libpwquality library purpose is to provide common functions for password
quality checking and also scoring them based on their apparent randomness.

The library also provides a function for generating random passwords with good
pronounceability. The library supports reading and parsing of a configuration
file.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for developing PAM-aware applications and modules for PAM
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
Files needed for development of applications using the libpwquality library.

%files -n %{devname}
%{_includedir}/%{oname}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{oname}.pc
%{_mandir}/man3/%{oname}.3*

#----------------------------------------------------------------------------

%if %{with python}
%package -n %python2-pwquality
%py2_migration_meta %python2-pwquality
Summary:	Python bindings for the libpwquality library
Group:		Development/Python

%description -n %python2-pwquality
This is pwquality Python module that provides Python bindings for the
libpwquality library. These bindings can be used for easy password quality
checking and generation of random pronounceable passwords from Python
applications.

%files -n %python2-pwquality
%{py2_platsitedir}/%{oname}.so
%{py2_platsitedir}/%{oname}-%{version}-py%{py2_ver}.egg-info
%endif

#----------------------------------------------------------------------------

%if %{with python3}
%package -n python3-pwquality
Summary:	Python bindings for the libpwquality library
Group:		Development/Python

%description -n python3-pwquality
This is pwquality Python module that provides Python bindings for the
libpwquality library. These bindings can be used for easy password quality
checking and generation of random pronounceable passwords from Python
applications.

%files -n python3-pwquality
%{py3_platsitedir}/%{oname}-%{version}-py%{py3_ver}.egg-info
# This lib on e2k have no prefix linux-gnu
%{py3_platsitedir}/%{oname}.cpython-3*.so
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

mkdir -p ../bld_py3 \
&& cp -rf * ../bld_py3 \
&& mv ../bld_py3 .

%build
%configure \
	--with-securedir=/%{_lib}/security \
	--with-pythonsitedir=%{py2_platsitedir} \
%if %{with python}
	--enable-python-bindings \
	--with-python-binary=%{__python2} \
%else
	--disable-python-bindings \
%endif
	--disable-static \
	--disable-rpath

%make_build -C po update-gmo
%make_build

cd bld_py3
%configure \
	--with-securedir=/%{_lib}/security \
	--with-pythonsitedir=%{py3_platsitedir} \
%if %{with python3}
	--enable-python-bindings \
	--with-python-binary=%{__python3} \
%else
	--disable-python-bindings \
%endif
	--disable-static \
	--disable-rpath

%make_build -C po update-gmo
%make_build
cd -

%install
%make_install

# (djam) include a valid path to dictionary out of the box
sed -i '/dictpath/s/=/=\ \/usr\/share\/cracklib\/pw_dict/' %{buildroot}%{_sysconfdir}/security/%{oname}.conf

cd bld_py3
make -C python install DESTDIR=%{buildroot} INSTALL='install -p'
cd -

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14281 |21mr|libqaccessibilityclient-0.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname qaccessibilityclient-qt5_ %{major}
%define devname %mklibname qaccessibilityclient -d

Summary:	Accessibility client library for Qt
Name:		libqaccessibilityclient
Version:	0.4.1
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://projects.kde.org/projects/playground/accessibility/libkdeaccessibilityclient
Source0:	http://download.kde.org/unstable/libqaccessibilityclient/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)

%description
Accessibility client library for Qt.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Accessibility client library for Qt
Group:		System/Libraries

%description -n %{libname}
Accessibility client library for Qt.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING README.md
%{_libdir}/libqaccessibilityclient-qt5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	qaccessibilityclient-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_bindir}/dumper
%{_includedir}/qaccessibilityclient/
%{_libdir}/cmake/QAccessibilityClient/
%{_libdir}/libqaccessibilityclient-qt5.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake_qt5 \
	-DQT4_BUILD:BOOL=OFF \
	-DQT5_BUILD:BOOL=ON
%make

%install
%makeinstall_std -C build

## unpackaged files
# consider putting into -tools subpkg?
rm -f %{buildroot}%{_bindir}/accessibleapps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14282 |21mr|libqalculate-3.20.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname qalc
%define major 22
%define libname %mklibname qalculate %{major}
%define devname %mklibname qalculate -d

Summary:	The library for qalculate
Name:		libqalculate
Version:	3.20.1
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		https://qalculate.github.io/
Source0:	https://github.com/Qalculate/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	perl(XML::Parser)

%description
Libraries needed by qalculator.

%package -n %{sname}
Group:		System/Libraries
Summary:	CLI frontend for Qalculate!
Requires:	%{libname} = %{EVRD}

#----------------------------------------------------------------------------

%description -n %{sname}
Qalculate! is a multi-purpose desktop calculator for GNU/Linux. It is small
and simple to use but with much power and versatility underneath

Features include customizable functions, units, arbitrary precision,
plotting, and a user-friendly interface (GTK+ and CLI).

This package provides the CLI frontend.

%files -n %{sname}
%{_bindir}/%{sname}
%{_mandir}/man1/%{sname}.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qalculate shared library
Group:		System/Libraries
Requires:	%{name}-data >= %{EVRD}

%description -n %{libname}
Qalculate shared library.

%files -n %{libname}
%{_libdir}/libqalculate.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	gmp-devel
Requires:	mpfr-devel
Provides:	%{name}-devel = %{EVRD}
Provides:	qalculate-devel = %{EVRD}

%description -n %{devname}
Headers and development files for %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README* TODO
%{_includedir}/*
%{_libdir}/libqalculate.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package data
Summary:	Data files for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}qalculate4 < 0.9.7-4
Conflicts:	%{_lib}qalculate5 < 0.9.7-4

%description data
Data files for %{name}.

%files data -f %{name}.lang
%{_datadir}/qalculate/rates.json
%{_datadir}/qalculate/*.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make_build

%install
%make_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14283 |21mr|libqalculate-3.20.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname qalc
%define major 22
%define libname %mklibname qalculate %{major}
%define devname %mklibname qalculate -d

Summary:	The library for qalculate
Name:		libqalculate
Version:	3.20.1
Release:	4
License:	GPLv2+
Group:		System/Libraries
Url:		https://qalculate.github.io/
Source0:	https://github.com/Qalculate/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	perl(XML::Parser)

%description
Libraries needed by qalculator.

%package -n %{sname}
Group:		System/Libraries
Summary:	CLI frontend for Qalculate!
Requires:	%{libname} = %{EVRD}

#----------------------------------------------------------------------------

%description -n %{sname}
Qalculate! is a multi-purpose desktop calculator for GNU/Linux. It is small
and simple to use but with much power and versatility underneath

Features include customizable functions, units, arbitrary precision,
plotting, and a user-friendly interface (GTK+ and CLI).

This package provides the CLI frontend.

%files -n %{sname}
%{_bindir}/%{sname}
%{_mandir}/man1/%{sname}.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qalculate shared library
Group:		System/Libraries
Requires:	%{name}-data >= %{EVRD}

%description -n %{libname}
Qalculate shared library.

%files -n %{libname}
%{_libdir}/libqalculate.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	gmp-devel
Requires:	mpfr-devel
Provides:	%{name}-devel = %{EVRD}
Provides:	qalculate-devel = %{EVRD}

%description -n %{devname}
Headers and development files for %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README* TODO
%{_includedir}/*
%{_libdir}/libqalculate.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package data
Summary:	Data files for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}qalculate4 < 0.9.7-4
Conflicts:	%{_lib}qalculate5 < 0.9.7-4

%description data
Data files for %{name}.

%files data -f %{name}.lang
%{_datadir}/qalculate/rates.json
%{_datadir}/qalculate/*.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make_build

%install
%make_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14284 |21mr|libqb-2.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname qb %{major}
%define devname %mklibname qb -d

Summary:	An IPC library for high performance servers
Name:		libqb
Version:	2.0.3
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/asalkeld/libqb/wiki
Source0:	https://github.com/ClusterLabs/libqb/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:		CVE-2023-39976.patch
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	procps
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	libxml2-devel

%description
%{libname} provides high performance client server reusable features.
Initially these are IPC and poll.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	An IPC library for high performance servers
Group:		System/Libraries

%description -n %{libname}
%{libname} provides high performance client server reusable features.
Initially these are IPC and poll.

%files -n %{libname}
%doc COPYING README.markdown
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libqb
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}qb0-devel < 1.0.5
Obsoletes:	%{_lib}qb0-devel < 1.0.5

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{libname}

%files -n %{devname}
%doc COPYING README.markdown
%{_includedir}/qb/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/qb*3*
%{_mandir}/man8/qb*8*
%{_sbindir}/qb-blackbox
%{_bindir}/doxygen2man
%{_mandir}/man1/doxygen2man.1.xz

#------------------------------------------------------------------

%prep
%autosetup -p1

%ifarch %{e2k}
# just disable tests on elbrus
sed -i 's! tests!!g' Makefile.* 
%endif

%build
sed s,"UNKNOWN","%{version}",g -i build-aux/git-version-gen

autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14285 |21mr|libqmi-1.30.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qmi
%define major 5
%define libname %mklibname %{oname}-glib %{major}
%define devname %mklibname %{oname}-glib -d

Summary:	Library to control QMI devices
Name:		libqmi
Version:	1.30.8
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://www.freedesktop.org/wiki/Software/libqmi
Source0:	https://www.freedesktop.org/software/libqmi/%{name}-%{version}.tar.xz
BuildRequires:	autoconf-archive
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.32
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(qrtr-glib)

%description
A GLib/GIO based library to control QMI devices.

#----------------------------------------------------------------------------

%package -n %{oname}-tools
Summary:	Helper utilities to control QMI devices
Group:		System/Configuration/Networking

%description -n %{oname}-tools
This package contains command line tools to manage such devices.

%files -n %{oname}-tools
%{_bindir}/qmi-firmware-update
%{_bindir}/qmi-network
%{_bindir}/qmicli
%{_datadir}/bash-completion/completions/qmicli
%{_libexecdir}/qmi-proxy
%{_mandir}/man1/qmi*.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to control QMI devices
Group:		System/Libraries

%description -n %{libname}
A GLib/GIO based library to control QMI devices.

%files -n %{libname}
%{_libdir}/libqmi-glib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library to control QMI devices - Development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains files required to link sources against libqmi.

%files -n %{devname}
%{_includedir}/libqmi-glib/
%{_libdir}/libqmi-glib.so
%{_libdir}/pkgconfig/qmi-glib.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
gtkdocize
autoreconf -fi
%configure \
	--disable-static \
	--enable-qrtr \
	--disable-gtk-doc-html

%make

%install
%makeinstall_std

# (tpg) kill docs
rm -rf %{buildroot}%{_datadir}/gtk-doc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14286 |21mr|libqrtr-glib-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		libqrtr-glib
Version:	1.0.0
Release:	1
Summary:	Support library to use and manage the QRTR (Qualcomm IPC Router) bus
Group:		System/Libraries
License:	LGPLv2+
URL:		http://freedesktop.org/software/libqrtr-glib
Source:		http://freedesktop.org/software/libqmi/libqrtr-glib/%{name}-%{version}.tar.xz

BuildRequires:	autoconf-archive
BuildRequires:	glib2-devel >= 2.48.0
BuildRequires:	gobject-introspection-devel
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(gudev-1.0) >= 147
BuildRequires:	make
BuildRequires:	python3

%description
This package contains the libraries that make it easier to use and
manage the QRTR (Qualcomm IPC Router) bus.

#--------------------------------------------------------------------------

%package -n %{libname}
Summary:	Support library to use and manage the QRTR (Qualcomm IPC Router) bus
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries that make it easier to use and
manage the QRTR (Qualcomm IPC Router) bus.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*
%{_libdir}/girepository-1.0/Qrtr-1.0.typelib

#--------------------------------------------------------------------------
%package -n %{devname}
Summary:	Header files for adding QRTR support to applications that use glib
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header and pkg-config files for development
applications using QRTR functionality from applications that use glib.

%files -n %{devname}
%license COPYING.LIB
%doc NEWS AUTHORS README
%{_includedir}/libqrtr-glib/
%{_libdir}/libqrtr-glib.so
%{_libdir}/pkgconfig/qrtr-glib.pc
%{_datadir}/gtk-doc/html/libqrtr-glib/
%{_datadir}/gir-1.0/Qrtr-1.0.gir

#--------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%configure --enable-gtk-doc
%make_build


%install
%make_install
find %{buildroot} -type f -name "*.la" -delete
find %{buildroot} -type f -name "*.a" -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14287 |21mr|libqtolm-3.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define appname QtOlm
%define major 3
%define libname %mklibname %{appname} %{major}
%define develname %mklibname -d %{appname}

%undefine __cmake_in_source_build

Summary: Qt wrapper for libolm
Name: libqtolm
Version: 3.0.1
Release: 4
License: GPLv3+
Group: System/Libraries
URL: https://gitlab.com/b0/libqtolm/
Source0: https://gitlab.com/b0/libqtolm/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
BuildRequires:	pkgconfig(olm)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires: qmake5
BuildRequires: cmake
BuildRequires: ninja

%description
Special Qt wrapper for libolm library.

%package -n %{libname}
Summary: Library for special Qt wrapper for libolm
Group: System/Libraries
%rename %{_lib}qtolm3

%description -n %{libname}
Library for special Qt wrapper for libolm.

%package -n %{develname}
Summary: Development files for %{name}
Group: Development/KDE and Qt
Requires: %{libname} = %{EVRD}
%rename %{_lib}qtolm-devel

%description -n %{develname}
Development files for libQtOlm.

%prep
%autosetup -n %{name}-v%{version}

%build
%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DCMAKE_INSTALL_INCLUDEDIR:PATH="include/%{appname}"

%ninja_build

%install
%ninja_install -C build

%files -n %{libname}
%license LICENSE
%{_libdir}/lib*%{appname}*.so.%{major}*

%files -n %{develname}
%{_includedir}/%{appname}
%{_libdir}/cmake/%{appname}
%{_libdir}/pkgconfig/%{appname}.pc
%{_libdir}/lib*%{appname}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14288 |21mr|libqtxdg-3.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname Qt5Xdg %{major}
%define devname %mklibname Qt5Xdg -d
%define libiconname %mklibname Qt5XdgIconLoader %{major}
%define deviconname %mklibname Qt5XdgIconLoader -d
%define oldlibname %mklibname qtxdg %{major}
%define olddevname %mklibname qtxdg -d

Summary:	Library providing freedesktop.org specs implementations for Qt
Name:		libqtxdg
Version:	3.12.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/lxqt/libqtxdg
Source0:	https://github.com/lxqt/libqtxdg/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	magic-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Library providing freedesktop.org specs implementations for Qt.

%files
%doc AUTHORS CHANGELOG README.md
%license COPYING Digia-Qt-LGPL-Exception-1.1
%{_bindir}/qtxdg-desktop-file-start
%{_bindir}/qtxdg-iconfinder
%{_qt5_plugindir}/iconengines/libQt5XdgIconPlugin.so
%{_sysconfdir}/xdg/*.conf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing freedesktop.org specs implementations for Qt
Group:		System/Libraries
Obsoletes:	%{_lib}Qt5Xdg2 < 3.0
%rename		%{oldlibname}

%description -n %{libname}
Library providing freedesktop.org specs implementations for Qt.

%files -n %{libname}
%license COPYING
%{_libdir}/libQt5Xdg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{olddevname}

%description -n %{devname}
Development files (Headers etc.) for %{name}, a library providing
freedesktop.org specs implementations for Qt.

%files -n %{devname}
%license COPYING
%{_includedir}/qt5xdg/
%{_libdir}/libQt5Xdg.so
%{_libdir}/pkgconfig/Qt5Xdg.pc
%{_datadir}/cmake/qt5xdg

#----------------------------------------------------------------------------

%package -n %{libiconname}
Summary:	Qt5XdgIconLoader library
Group:		System/Libraries
Obsoletes:	%{_lib}Qt5XdgIconLoader2 < 3.0

%description -n %{libiconname}
Qt5XdgIconLoader library.

%files -n %{libiconname}
%license COPYING
%{_libdir}/libQt5XdgIconLoader.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{deviconname}
Summary:	Development files for Qt5XdgIconLoader library
Group:		Development/C
Requires:	%{libiconname} = %{EVRD}

%description -n %{deviconname}
Development files (Headers etc.) for  Qt5XdgIconLoader library.

%files -n %{deviconname}
%license COPYING
%{_includedir}/qt5xdgiconloader
%{_libdir}/libQt5XdgIconLoader.so
%{_libdir}/pkgconfig/Qt5XdgIconLoader.pc
%{_datadir}/cmake/qt5xdgiconloader

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%ifarch %{riscv}
sed -i 's!-flto -fuse-linker-plugin!!g' cmake/compiler_settings.cmake
%endif

%build
%cmake \
	-DBUILD_TESTS=ON \
	-DBUILD_DEV_UTILS=ON
%make_build

%install
%make_install -C build

# Fix up the pkgconfig file...
sed -i -e 's,\${prefix}/%{_libdir},\${prefix}/%{_lib},g' "%{buildroot}"%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14289 |21mr|libquicktime-1.2.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _disable_rebuild_configure

%define major 0
%define libname %mklibname quicktime %{major}
%define devname %mklibname quicktime -d

Summary:	A library for manipulating QuickTime files
Name:		libquicktime
Version:	1.2.4
Release:	16
License:	GPLv2+
Group:		Video
Url:		http://libquicktime.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/libquicktime/%{name}-%{version}.tar.gz
Patch0:		libquicktime-1.2.2-ffmpeg07.patch
Patch1:		libquicktime-1.2.4-ffmpeg2.patch
Patch2:		libquicktime-1.2.4-ffmpeg3.patch
# CVE-2016-2399
Patch3:		libquicktime-CVE-2016-2399.patch
# CVE-2017-9122 CVE-2017-9123 CVE-2017-9124 CVE-2017-9125
# CVE-2017-9126 CVE-2017-9127 CVE-2017-9128
Patch4:		libquicktime-CVE-2017-9122-all.patch
Patch5:		libquicktime-1.2.4-ffmpeg4.patch
Patch6:		libquicktime-1.2.4-linkage.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	doxygen
BuildRequires:	ffmpeg-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(schroedinger-1.0)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xv)

%description
Libquicktime is a library for reading and writing QuickTime files
on UNIX systems. Video CODECs supported by this library are OpenDivX, MJPA,
JPEG Photo, PNG, RGB, YUV 4:2:2, and YUV 4:2:0 compression.  Supported
audio CODECs are Ogg Vorbis, IMA4, ulaw, and any linear PCM format.

Libquicktime is based on the quicktime4linux library.  Libquicktime add
features such as a GNU build tools-based build process and dynamically
loadable CODECs.

%files -f %{name}.lang
%doc README
%dir %{_libdir}/libquicktime/
%{_libdir}/libquicktime/lqt_audiocodec.so
%{_libdir}/libquicktime/lqt_ffmpeg.so
%{_libdir}/libquicktime/lqt_mjpeg.so
%{_libdir}/libquicktime/lqt_png.so
%{_libdir}/libquicktime/lqt_videocodec.so
%{_libdir}/libquicktime/lqt_rtjpeg.so
%{_libdir}/libquicktime/lqt_schroedinger.so
%{_libdir}/libquicktime/lqt_vorbis.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of libquicktime
Group:		System/Libraries

%description -n %{libname}
Libquicktime is a library for reading and writing QuickTime files
on UNIX systems. Video CODECs supported by this library are OpenDivX, MJPA,
JPEG Photo, PNG, RGB, YUV 4:2:2, and YUV 4:2:0 compression.  Supported
audio CODECs are Ogg Vorbis, IMA4, ulaw, and any linear PCM format.

Libquicktime is based on the quicktime4linux library.  Libquicktime add
features such as a GNU build tools-based build process and dynamically
loadable CODECs.

%files -n %{libname}
%{_libdir}/libquicktime.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development documentation for libquicktime
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libquicktime-devel = %{EVRD}
Provides:	quicktime-devel = %{EVRD}
Provides:	quicktime-static-devel = %{EVRD}

%description -n %{devname}
Header files and development documentation for libquicktime.

%files -n %{devname}
%{_libdir}/libquicktime.so
%{_includedir}/lqt
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package dv
Summary:	Libquicktime plugin supporting the DV codec
Group:		Video
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(libdv)

%description dv
Libquicktime plugin supporting the DV codec

%files dv
%{_libdir}/libquicktime/lqt_dv.so

#----------------------------------------------------------------------------

%package progs
Summary:	Useful tools to operate at QuickTime files
Group:		Video
Requires:	%{name} = %{EVRD}

%description progs
Useful tools to operate on QuickTime files.

%files progs
%doc README TODO
%{_bindir}/libquicktime_config
%{_bindir}/lqtplay
%{_bindir}/lqtremux
%{_bindir}/lqt_transcode
%{_bindir}/qt*
%{_mandir}/man1/lqtplay.1*

#----------------------------------------------------------------------------
%package lame
Summary:	Libquicktime plugin supporting the MP3 codec
Group:		Video
Requires:	%{name} = %{EVRD}
BuildRequires:	lame-devel

%description lame
This is a libquicktime plugin supporting the MP3 codec based on lame.

This package is in restricted as it violates some patents.

%files lame
%{_libdir}/libquicktime/lqt_lame.so

#----------------------------------------------------------------------------

%package faac
Summary:	Libquicktime plugin for encoding AAC
Group:		Video
Requires:	%{name} = %{EVRD}
BuildRequires:	libfaac-devel

%description faac
This is a libquicktime plugin for AAC encoding based on faac.

This package is in restricted as it violates some patents.

%files faac
%{_libdir}/libquicktime/lqt_faac.so

#----------------------------------------------------------------------------

%package faad
Summary:	Libquicktime plugin for decoding AAC
Group:		Video
Requires:	%{name} = %{EVRD}
BuildRequires:	libfaad2-devel

%description faad
This is a libquicktime plugin for AAC decoding based on faad2.

This package is in restricted as it violates some patents.

%files faad
%{_libdir}/libquicktime/lqt_faad2.so

#----------------------------------------------------------------------------

%package x264
Summary:	Libquicktime plugin for encoding H.264/MPEG-4 streams
Group:		Video
Requires:	%{name} = %{EVRD}
BuildRequires:	pkgconfig(x264)

%description x264
This is a libquicktime plugin for encoding H.264/MPEG-4 streams.

This package is in restricted as it violates some patents.

%files x264
%{_libdir}/libquicktime/lqt_x264.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--with-libdv \
%ifarch x86_64
	--with-pic \
%endif
	--enable-gpl

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/libquicktime/*a
rm -f %{buildroot}%{_libdir}/libquicktime/lqt_opendivx.so

rm -rf %{buildroot}%{_docdir}/%{name}/apiref

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14290 |21mr|libquotient-0.8.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global appname Quotient
%define major 0
%define libname %mklibname %{appname} %{major}
%define develname %mklibname -d %{appname}

Name:		libquotient
Version:	0.8.1.1
Release:	1
Group:		System/Libraries
License:	LGPLv2+
URL:		https://github.com/quotient-im/libQuotient
Summary:	Qt5 library to write cross-platform clients for Matrix
Source0:	https://github.com/quotient-im/libQuotient/archive/%{version}.tar.gz?/libQuotient-%{version}.tar.gz
BuildRequires:	pkgconfig(olm)
BuildRequires:	pkgconfig(QtOlm)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	qtkeychain-qt5-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	qmake5
BuildRequires:	ninja
BuildRequires:	cmake

%description
The Quotient project aims to produce a Qt5-based SDK to develop applications
for Matrix. libQuotient is a library that enables client applications. It is
the backbone of Quaternion, Spectral and other projects. Versions 0.5.x and
older use the previous name - libQMatrixClient.

#-------------------------------------------------------------
%package -n %{libname}
Summary:	Library for the Quotient project aims to produce a Qt5-based SDK to develop applications
Group:		System/Libraries
%rename	%{_lib}quotient0

%description -n %{libname}
Library for the Quotient project aims to produce a Qt5-based SDK to develop applications
for Matrix. libQuotient is a library that enables client applications.

%files -n %{libname}
%license COPYING
%doc README.md CONTRIBUTING.md SECURITY.md
%{_libdir}/lib*%{appname}.so.%{major}*

#-------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
%rename	%{_lib}quotient-devel

%description -n %{develname}
This is development files for Quotient. This project aims to produce a Qt5-based SDK to develop applications
for Matrix. libQuotient is a library that enables client applications. It is
the backbone of Quaternion, Spectral and other projects. Versions 0.5.x and
older use the previous name - libQMatrixClient

%files -n %{develname}
%{_includedir}/%{appname}
%{_libdir}/cmake/%{appname}
%{_libdir}/pkgconfig/%{appname}.pc
%{_libdir}/lib*%{appname}.so

#-------------------------------------------------------------

%prep
%autosetup -n lib%{appname}-%{version}
rm -rf 3rdparty

%build
%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DQuotient_INSTALL_TESTS:BOOL=OFF \
    -DQuotient_INSTALL_EXAMPLE:BOOL=OFF \
    -DQuotient_ENABLE_E2EE:BOOL=ON \
    -DCMAKE_INSTALL_INCLUDEDIR:PATH="include/%{appname}"

%ninja_build

%install
%ninja_install -C build
rm -rf %{buildroot}%{_datadir}/ndk-modules


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14291 |21mr|libquvi-0.9.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.9
%define libname %mklibname quvi %{api} %{version}
%define devname %mklibname quvi -d
%define _disable_rebuild_configure 1

Summary:	Library for parsing flash media stream URLs with C API
Name:		libquvi
Version:	0.9.4
Release:	5
License:	LGPLv2+
Group:		Networking/Other
Url:		http://quvi.sourceforge.net/
Source0:	http://downloads.sourceforge.net/quvi/%{name}-%{version}.tar.xz
Patch0:		lua-5.2-support.diff
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(libquvi-scripts-0.9)
BuildRequires:	pkgconfig(lua) >= 5.2

%description
libquvi is a library for parsing video download links with C API.
It is written in C and intended to be a cross-platform library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library files libquvi
Group:		Networking/Other
Requires:	libquvi-scripts >= 0.9

%description -n %{libname}
Shared library files libquvi.

%files -n %{libname}
%{_libdir}/%{name}-%{api}-%{version}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for building applications with libquvi
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	quvi-devel = %{EVRD}

%description -n %{devname}
Files needed for building applications with libquvi.

%files -n %{devname}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_mandir}/man3/*
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build

%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14292 |21mr|libquvi-scripts-0.9.20131130-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Embedded lua scripts for parsing media details
Name:		libquvi-scripts
Version:	0.9.20131130
Release:	3
License:	LGPLv2+
Group:		Networking/Other
Url:		http://quvi.sourceforge.net/
Source0:	http://downloads.sourceforge.net/quvi/%{name}-%{version}.tar.xz
BuildArch:	noarch

%description
libquvi-scripts contains the embedded lua scripts that libquvi uses for
parsing the media details. Some additional utility scripts are also
included.

%files
%doc ChangeLog COPYING README
%{_datadir}/%{name}
%{_datadir}/pkgconfig/*.pc
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--libdir=%{_datadir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14293 |21mr|libqxp-0.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.0
%define major 0
%define libname %mklibname qxp %{api} %{major}
%define devname %mklibname qxp %{api} -d

Summary:	Library for import of QuarkXPress documents
Name:		libqxp
Version:	0.0.2
Release:	6
License:	MPLv2.0
Group:		System/Libraries
Url:		http://wiki.documentfoundation.org/DLP/Libraries/libqxp
Source:		http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
Patch0:		0001-Fix-build-with-Wl-no-undefined-linker-flag.patch
BuildRequires:	doxygen
BuildRequires:	help2man
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(librevenge-generators-0.0)
BuildRequires:	pkgconfig(librevenge-stream-0.0)

%description
libqxp is library providing ability to interpret and import QuarkXPress
document formats into various applications. Currently it only supports
QuarkXPress 3.1-4.1.

#-------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for import of QuarkXPress documents
Group:		System/Libraries

%description -n %{libname}
libqxp is library providing ability to interpret and import QuarkXPress
document formats into various applications. Currently it only supports
QuarkXPress 3.1-4.1.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/%{name}-%{api}.so.%{major}*

#-------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#-------------------------------------------------------------------

%package tools
Summary:	Tools to transform QuarkXPress documents into other formats
Requires:	%{libname} = %{EVRD}

%description tools
Tools to transform QuarkXPress documents into other formats.
Currently supported: SVG, plain text, raw.

%files tools
%doc COPYING
%{_bindir}/qxp2raw
%{_bindir}/qxp2svg
%{_bindir}/qxp2text
%{_mandir}/man1/qxp2raw.1*
%{_mandir}/man1/qxp2svg.1*
%{_mandir}/man1/qxp2text.1*

#-------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains documentation files for %{name}.

%files doc
%doc docs/doxygen/html

#-------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -vfi
%configure \
	--disable-silent-rules \
	--disable-static

sed -i \
	-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
	-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
	libtool
%make

%install
%makeinstall_std

# we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}

# generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}/%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in qxp2raw qxp2svg qxp2text; do
	help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
done
install -m 0755 -d %{buildroot}/%{_mandir}/man1
install -m 0644 qxp2*.1 %{buildroot}/%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14294 |21mr|librabbitmq-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gh_commit   ffe918a5fcef72038a88054dca3c56762b1953d4
%global gh_short    %(c=%{gh_commit}; echo ${c:0:7})
%global gh_owner    alanxz
%global gh_project  rabbitmq-c

%define major 4
%define libname %mklibname rabbitmq %{major}
%define devname %mklibname rabbitmq -d

Name:		librabbitmq
Summary:	Client library for AMQP
Version:	0.10.0
Release:	1
Group:		System/Libraries
License:	MIT
URL:		https://github.com/alanxz/rabbitmq-c
Source0:	https://github.com/%{gh_owner}/%{gh_project}/archive/%{gh_commit}/%{gh_project}-%{version}-%{gh_short}.tar.gz

BuildRequires:	pkgconfig(openssl)
BuildRequires:	cmake
# For tools
BuildRequires:	pkgconfig(popt) > 1.14
# For man page
BuildRequires:	xmlto

%description
This is a C-language AMQP client library for use with AMQP servers
speaking protocol versions 0-9-1.

#------------------------------------------------------------------
%package -n %{libname}
Summary:	Client library for AMQP
Group:		System/Libraries

%description -n %{libname}
This is a C-language AMQP client library for use with AMQP servers
speaking protocol versions 0-9-1.

%files -n %{libname}
%license LICENSE-MIT
%{_libdir}/%{name}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:    Header files and development libraries for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and development libraries
for %{name}.

%files -n %{devname}
%doc AUTHORS THANKS TODO *.md
%doc Examples
%{_libdir}/%{name}.so
%{_includedir}/amqp*
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------

%package tools
Summary:    Example tools built using the librabbitmq package
Requires:   %{libname} = %{EVRD}

%description tools
This package contains example tools built using %{name}.

It provides:
amqp-consume        Consume messages from a queue on an AMQP server
amqp-declare-queue  Declare a queue on an AMQP server
amqp-delete-queue   Delete a queue from an AMQP server
amqp-get            Get a message from a queue on an AMQP server
amqp-publish        Publish a message on an AMQP server

%files tools
%{_bindir}/amqp-*
%doc %{_mandir}/man1/amqp-*.1*
%doc %{_mandir}/man7/librabbitmq-tools.7*

#------------------------------------------------------------------

%prep
%setup -q -n %{gh_project}-%{gh_commit}

# Copy sources to be included in -devel docs.
cp -pr examples Examples

# This test requires a running server
sed -e '/test_basic/d' -i tests/CMakeLists.txt


%build
# static lib required for tests
%cmake \
  -DBUILD_TOOLS_DOCS:BOOL=ON \
  -DBUILD_STATIC_LIBS:BOOL=ON

%make_build

%install
%make_install -C build

rm %{buildroot}%{_libdir}/%{name}.a


%check
: check .pc is usable
grep @ %{buildroot}%{_libdir}/pkgconfig/librabbitmq.pc && exit 1

: upstream tests
%make test -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14295 |21mr|libraw-0.20.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# demosaic-pack version, sometimes different from main package version
%define dversion 0.18.8

%define	oname LibRaw
%define	major 20
%define	libname %mklibname raw %{major}
%define	libname_r %mklibname raw_r %{major}
%define	devname %mklibname raw -d

Summary:	Library for reading and processing of RAW digicam images
Name:		libraw
Version:	0.20.2
Release:	4
License:	GPLv3+
Group:		Graphics
Url:		http://www.libraw.org
Source0:	http://www.libraw.org/data/%{oname}-%{version}.tar.gz
Source1:	http://www.libraw.org/data/%{oname}-demosaic-pack-GPL2-%{dversion}.tar.gz
Source2:	http://www.libraw.org/data/%{oname}-demosaic-pack-GPL3-%{dversion}.tar.gz
Patch0:		CVE-2020-22628.patch
Patch1:		CVE-2023-1729.patch
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libjpeg)

%description
LibRaw is a library for reading RAW files from digital photo cameras (CRW/CR2,
NEF, RAF, DNG, MOS, KDC, DCR, etc, virtually all RAW formats are supported).
It pays special attention to correct retrieval of data required for subsequent
RAW conversion.
The library is intended for embedding in RAW converters, data analyzers, and
other programs using RAW files as the initial data.
Since LibRaw is linked against LibRaw-demosaic-pack-GPL2 and
LibRaw-demosaic-pack-GPL3 the package global license is GPLv3.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for reading and processing of RAW digicam images
Group:		System/Libraries

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%doc README.demosaic-packs
%{_libdir}/libraw.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_r}
Summary:	Library for reading and processing of RAW digicam images
Group:		System/Libraries

%description -n %{libname_r}
This package contains a shared library for %{name}.

%files -n %{libname_r}
%doc README.demosaic-packs
%{_libdir}/libraw_r.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	LibRaw development files and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_r} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and headers for %{oname}.

%files -n %{devname}
%doc LICENSE* Changelog.* README.demosaic-packs html/
%{_includedir}/libraw
%{_libdir}/libraw.so
%{_libdir}/libraw_r.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Command line tools from %{oname}
Group:		Graphics

%description tools
This packages provides tools to manipulate raw files.

%files tools
%doc README.demosaic-packs
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version} -b1 -b2
%apply_patches

# Fix perms
find . -name "*.html" -o -name "*.txt" |xargs chmod -x

%build
%configure \
	--disable-static \
	--disable-openmp
%make_build


%install
%make_install

# The source tree has these with execute permissions for some reason
chmod 644 LICENSE.CDDL LICENSE.LGPL

# Let files section handle docs
rm -rf %{buildroot}%{_datadir}/doc/*
#rm -rf %%{buildroot}%%{_datadir}/%%{name}

# Move docs to a better location
mv doc html



# CVEs
# CVE-2020-35533
# CVE-2020-35532
# CVE-2020-35531
# CVE-2020-35534
# CVE-2020-35535
# CVE-2020-35530
# applies to 0.20-RC2 ,already contains a fix ---^

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14296 |21mr|libraw1394-2.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname raw1394_ %{major}
%define devname %mklibname raw1394 -d

Summary:	FireWire interface
Name:		libraw1394
Version:	2.1.2
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libraw1394/
Source0:	http://www.kernel.org/pub/linux/libs/ieee1394/%{name}-%{version}.tar.xz
Requires(post):	coreutils

%description
libraw1394 is the only supported interface to the kernel side raw1394 of
the Linux IEEE-1394 subsystem, which provides direct access to the connected
1394 buses to user space.  Through libraw1394/raw1394, applications can
directly send to and receive from other nodes without requiring a kernel driver
for the protocol in question.

The reason for making a library the interface to the kernel is to avoid
a program dependency on the kernel version, which would hinder development and
optimization of raw1394.  If development changed the protocol and made it
incompatible with previous versions only the libraw1394 has to be upgraded to
match the kernel version (instead of all applications).

#----------------------------------------------------------------------------

%package utils
Summary:	Some small Firewire utilities
Group:		Communications

%description utils
This package contains a few utilities to send and receive raw data over
Firewire (ieee1394).

%files utils
%doc README AUTHORS
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	FireWire interface shared library
Group:		System/Libraries

%description -n %{libname}
libraw1394 is the only supported interface to the kernel side raw1394 of
the Linux IEEE-1394 subsystem, which provides direct access to the connected
1394 buses to user space.  Through libraw1394/raw1394, applications can
directly send to and receive from other nodes without requiring a kernel driver
for the protocol in question.

The reason for making a library the interface to the kernel is to avoid
a program dependency on the kernel version, which would hinder development and
optimization of raw1394.  If development changed the protocol and made it
incompatible with previous versions only the libraw1394 has to be upgraded to
match the kernel version (instead of all applications).

This package contains the shared library to run applications linked
with %{name}.

%files -n %{libname}
%{_libdir}/libraw1394.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development and include files for libraw1394
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}raw1394_8-devel
Obsoletes:	%{_lib}raw1394-static-devel < 2.0.8

%description -n %{devname}
This archive contains the header-files for libraw1394 development.

%files -n %{devname}
%doc README NEWS AUTHORS
%{_includedir}/libraw1394
%{_libdir}/libraw1394.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14297 |21mr|libraw1394_8-1.3.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name	libraw1394_8
%define oname libraw1394
%define	version	1.3.0
%define release	13

%define	major		8
%define	libname		%mklibname raw1394_ %{major}
%define	develname	%mklibname raw1394_%major -d
%define staticname	%mklibname raw1394_%major -d -s

Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	LGPLv2+
Group:		System/Libraries
Source0:	http://www.linux1394.org/dl/%{oname}-%{version}.tar.gz
URL:		http://www.linux1394.org/
Summary:	FireWire interface
Requires(post): coreutils

%description
libraw1394 is the only supported interface to the kernel side raw1394 of
the Linux IEEE-1394 subsystem, which provides direct access to the connected
1394 buses to user space.  Through libraw1394/raw1394, applications can
directly send to and receive from other nodes without requiring a kernel driver
for the protocol in question.

The reason for making a library the interface to the kernel is to avoid
a program dependency on the kernel version, which would hinder development and
optimization of raw1394.  If development changed the protocol and made it
incompatible with previous versions only the libraw1394 has to be upgraded to
match the kernel version (instead of all applications).

%package -n	%{name}-utils
Group:		Communications
Summary:	Some small Firewire utilities
Conflicts: %oname-utils

%description -n	%{name}-utils
This package contains a few utilities to send and receive raw data over
Firewire (ieee1394).

%if "%{_lib}" != "lib"
%package -n	%{libname}
Group:		System/Libraries
Summary:	FireWire interface shared library

%description -n %{libname}
libraw1394 is the only supported interface to the kernel side raw1394 of
the Linux IEEE-1394 subsystem, which provides direct access to the connected
1394 buses to user space.  Through libraw1394/raw1394, applications can
directly send to and receive from other nodes without requiring a kernel driver
for the protocol in question.

The reason for making a library the interface to the kernel is to avoid
a program dependency on the kernel version, which would hinder development and
optimization of raw1394.  If development changed the protocol and made it
incompatible with previous versions only the libraw1394 has to be upgraded to
match the kernel version (instead of all applications).

This package contains the shared library to run applications linked
with %{name}.
%endif

%package -n	%{develname}
Summary:	Development and include files for libraw1394
Summary(pt_BR):	Arquivos de desenvolvimento e cabe?alhos para o libraw1394
Summary(es):	Development and include files for libraw1394
Group:		Development/C
Group(pt_BR):	Desenvolvimento
Group(es):	Desarrollo
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
libraw1394 is the only supported interface to the kernel side raw1394 of
the Linux IEEE-1394 subsystem, which provides direct access to the connected
1394 buses to user space.  Through libraw1394/raw1394, applications can
directly send to and receive from other nodes without requiring a kernel driver
for the protocol in question.

This archive contains the header-files for libraw1394 development.

%package -n	%{staticname}
Summary:	Development components for libraw1394
Summary(pt_BR):	Componentes est?ticos de desenvolvimento para o libraw1394
Summary(es):	Development components for libraw1394
Group:		Development/C
Group(pt_BR):	Desenvolvimento
Group(es):	Desarrollo
Requires:	%{develname} = %{version}-%{release}

%description -n	%{staticname}
libraw1394 is the only supported interface to the kernel side raw1394 of
the Linux IEEE-1394 subsystem, which provides direct access to the connected
1394 buses to user space.  Through libraw1394/raw1394, applications can
directly send to and receive from other nodes without requiring a kernel driver
for the protocol in question.

This archive contains the static libraries (.a) 


%prep
%setup -q -n %oname-%version

%build
%configure --enable-static
%make

%install
rm -rf %{buildroot}
%{makeinstall_std}

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files -n %name-utils
%defattr(-,root,root)
%doc README AUTHORS
%{_bindir}/*
%{_mandir}/man*/*

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/libraw1394.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%doc README NEWS AUTHORS
%{_includedir}/libraw1394
%{_libdir}/libraw1394.so
%{_libdir}/pkgconfig/%{oname}.pc

%files -n %{staticname}
%defattr(-,root,root)
%{_libdir}/libraw1394.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14298 |21mr|librcc-0.2.12-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname rcc %{major}
%define libnameui %mklibname rccui %{major}
%define engines %mklibname rcc-engines
%define devname %mklibname rcc -d

Summary:	Russian Charset Conversion Library
Name:		librcc
Version:	0.2.12
Release:	9
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://rusxmms.sourceforge.net/
Source0:	http://dside.dyndns.org/files/rusxmms/%{name}-%{version}.tar.bz2
BuildRequires:	aspell-devel
BuildRequires:	librcd-devel
BuildRequires:	pkgconfig(enca)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblzma)

%description
Library providing means to work with multiple encodings of the same language
through adapting them to local settings on-the-fly.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Russian Charset Conversion Library
Group:		System/Libraries
Requires:	%{engines}

%description -n %{libname}
Library providing means to work with multiple encodings of the same language
through adapting them to local settings on-the-fly.

%files -n %{libname}
%{_libdir}/librcc.so.%{major}
%{_libdir}/librcc.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libnameui}
Summary:	Russian Charset Conversion Library
Group:		System/Libraries
Conflicts:	%{_lib}rcc0 < 0.2.12

%description -n %{libnameui}
Library providing means to work with multiple encodings of the same language
through adapting them to local settings on-the-fly.

%files -n %{libnameui}
%{_libdir}/librccui.so.%{major}
%{_libdir}/librccui.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Russian Charset Conversion Library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	%{libnameui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Library providing means to work with multiple encodings of the same language
through adapting them to local settings on-the-fly.

This package contains files required for development only.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README ToDo
%{_libdir}/*.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/librcc.pc

#----------------------------------------------------------------------------

%package -n %{engines}
Summary:	Russian Charset Conversion Library - engines
Group:		System/Libraries
Conflicts:	%{_lib}rcc0 < 0.2.12

%description -n %{engines}
Engines for Russian Charset Conversion Library.

%files -n %{engines}
%{_libdir}/rcc/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--disable-gtk1 \
	--disable-gtk2 \
	--disable-gtk3
%make LIBS="-ldl"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14299 |21mr|librcd-0.1.14-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname rcd %{major}
%define devname %mklibname rcd -d

Summary:	Russian charset detection library
Name:		librcd
Version:	0.1.14
Release:	7
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://http://rusxmms.sourceforge.net
Source0:	%{name}-%{version}.tar.bz2

%description
Library for autodection charset of russian text.

LibRCD is used by RusXMMS project for encoding auto-detection. It is optimized
to handle very short titles, like ID3 tags, file names and etc, and provides
very high accuracy even for short 3-4 letter words. Current version supports
Russian and Ukrainian languages and able to distinguish UTF-8, KOI8-R, CP1251,
CP866, ISO8859-1. If compared with Enca, LibRCC provides better detection
accuracy on short titles and is able to detect ISO8859-1 (non-cyrillic)
encoding what allows to properly display correct ID3 v.1 titles.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Russian charset detection library
Group:		System/Libraries

%description -n %{libname}
Library for autodection charset of russian text.

LibRCD is used by RusXMMS project for encoding auto-detection. It is optimized 
to handle very short titles, like ID3 tags, file names and etc, and provides 
very high accuracy even for short 3-4 letter words. Current version supports 
Russian and Ukrainian languages and able to distinguish UTF-8, KOI8-R, CP1251, 
CP866, ISO8859-1. If compared with Enca, LibRCC provides better detection 
accuracy on short titles and is able to detect ISO8859-1 (non-cyrillic)
encoding what allows to properly display correct ID3 v.1 titles.

%files -n %{libname}
%{_libdir}/librcd.so.%{major}
%{_libdir}/librcd.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Russian charset detection library development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Russian charset detection library. This package contains files required
for development purposes only.

%files -n %{devname}
%doc AUTHORS ChangeLog README
%{_libdir}/librcd.so
%{_libdir}/pkgconfig/librcd.pc
%{_includedir}/librcd.h

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14300 |21mr|librdkafka-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname rdkafka %{major}
%define devname %mklibname rdkafka -d

Name:		librdkafka
Version:	1.7.0
Release:	1
Summary:	The Apache Kafka C library
Group:		System/Libraries
License:	BSD
URL:		https://github.com/edenhill/librdkafka
Source0:	https://github.com/edenhill/librdkafka/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:	python3
BuildRequires:	pkgconfig(openssl)
BuildRequires:	cyrus-sasl-devel
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libzstd)

%description
Librdkafka is a C/C++ library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
It was designed with message delivery reliability and high performance in mind,
current figures exceed 800000 messages/second for the producer and 3 million
messages/second for the consumer.

%files
%defattr(644,root,root)
%doc README.md CONFIGURATION.md
%doc  %{_docdir}/librdkafka/INTRODUCTION.md
%doc  %{_docdir}/librdkafka/LICENSE
%doc  %{_docdir}/librdkafka/LICENSES.txt
%doc  %{_docdir}/librdkafka/STATISTICS.md
%doc  %{_docdir}/librdkafka/CHANGELOG.md

#-----------------------------------------------------------------------------
%package -n %{libname}
Summary:	The Apache Kafka C library (Development Environment)
Group:		System/Libraries

%description -n %{libname}
librdkafka is a C/C++ library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
This package contains headers and libraries required to build applications
using librdkafka.

%files -n %{libname}
%{_libdir}/librdkafka.so.%{major}
%{_libdir}/librdkafka++.so.%{major}

#-----------------------------------------------------------------------------
%package -n %{devname}
Summary:	The Apache Kafka C library (Development Environment)
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
librdkafka is a C/C++ library implementation of the Apache Kafka protocol,
containing both Producer and Consumer support.
This package contains headers and libraries required to build applications
using librdkafka.

%files -n %{devname}
%dir %{_includedir}/librdkafka
%attr(0644,root,root) %{_includedir}/librdkafka/*
 %{_libdir}/librdkafka.so
%{_libdir}/librdkafka++.so
%{_libdir}/pkgconfig/rdkafka.pc
%{_libdir}/pkgconfig/rdkafka++.pc

#----------------------------------------------------------------------------
%prep
%autosetup -p1

%build
#its use 'mklove' configure script, --disable-static not recognized
./configure \
	--disable-silent-rules \
	--disable-dependency-tracking \
	--program-prefix= \
	--prefix=%{_prefix} \
	--exec-prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--sbindir=%{_sbindir} \
	--sysconfdir=%{_sysconfdir} \
	--datadir=%{_datadir} \
	--includedir=%{_includedir} \
	--libdir=%{_libdir} \
	--libexecdir=%{_libexecdir} \
	--localstatedir=%{_localstatedir} \
	--sharedstatedir=%{_sharedstatedir} \
	--mandir=%{_mandir} \
	--infodir=%{_infodir} \
	--enable-lz4 \
	--enable-ssl \
	--enable-sasl \
	--enable-shared \
	--enable-zstd

%make_build

%check
make check

%install
%make_install

#remove static lib
find %{buildroot} -name '*.a' -delete -print
rm -f %{buildroot}%{_libdir}/pkgconfig/rdkafka-static.pc
rm -f %{buildroot}%{_libdir}/pkgconfig/rdkafka++-static.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14301 |21mr|libreadline-java-0.8.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%bcond_with             readline
%define section         free

Name:           libreadline-java
Version:        0.8.1
Release:        11
Epoch:          0
Summary:        Java wrapper for the GNU-readline library
License:        LGPL
URL:            http://java-readline.sourceforge.net/
Source0:        http://download.sourceforge.net/java-readline/libreadline-java-%{version}-src.tar.gz
Patch0:         %{name}-ncurses.patch
BuildRequires:  java-rpmbuild >= 0:1.6
%if %with readline
BuildRequires:  readline-devel
%else
BuildRequires:  pkgconfig(libedit)
%endif
BuildRequires:  pkgconfig(ncurses)
Provides:       java_readline = %{epoch}:%{version}-%{release}
Provides:       gnu.readline = %{epoch}:%{version}-%{release}
Group:          Development/Java
BuildRequires:  java-1.8.0-openjdk-devel

%description
Java-Readline is a port of GNU Readline for Java. Or, to be more 
precise, it is a JNI-wrapper to Readline. It is distributed under 
the LGPL.

#%package javadoc
#Summary:        Javadoc for %{name}
#Group:          Development/Java

#%description javadoc
#Javadoc for %{name}.

%prep
%setup -q
%apply_patches
%{_bindir}/find . -type d -name CVS | %{_bindir}/xargs -t rm -r
%{_bindir}/find . -type f -name "*.dll" | %{_bindir}/xargs -t rm
%{__perl} -pi -e 's|javadoc |%{javadoc} |g;' \
              -e 's|jar -c|%{jar} -c|g;' \
  Makefile

%build
export JAVA_HOME=%{java_home}
%if %with readline
make T_LIBS=JavaReadline JAVAC=%{javac} JC_FLAGS="" LIBPATH="-L%{_libdir}"
%else
make T_LIBS=JavaEditline JAVAC=%{javac} JC_FLAGS="" LIBPATH="-L%{_libdir}"
%endif
#make apidoc

%install
# jar
%{__mkdir_p} %{buildroot}%{_jnidir}
%{__install} -m 644 %{name}.jar %{buildroot}%{_jnidir}/%{name}-%{version}.jar
(cd %{buildroot}%{_jnidir} && for jar in *-%{version}*; do \
%{__ln_s} ${jar} ${jar/-%{version}/}; done)
# lib
%{__mkdir_p} %{buildroot}%{_libdir}
%if %with readline
%{__install} -m 755 libJavaReadline.so %{buildroot}%{_libdir}/libJavaReadline.so
%else
%{__install} -m 755 libJavaEditline.so %{buildroot}%{_libdir}/libJavaEditline.so
%endif

# javadoc
#%{__mkdir_p} %{buildroot}%{_javadocdir}/%{name}-%{version}
#cp -a api/* %{buildroot}%{_javadocdir}/%{name}-%{version}
#(cd %{buildroot}%{_javadocdir} && %{__ln_s} %{name}-%{version} %{name})

%files
%defattr(0644,root,root,0755)
%doc COPYING.LIB NEWS README README.1st TODO VERSION contrib
%attr(0755,root,root) %{_libdir}/*.so
%{_jnidir}/*.jar

#%files javadoc
#%defattr(0644,root,root,0755)
#%{_javadocdir}/%{name}-%{version}
#%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14302 |21mr|librelp-1.2.15-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname relp %{major}
%define devname %mklibname relp -d

Summary:	Reliable Event Logging Protocol (RELP) library
Name:		librelp
Version:	1.2.15
Release:	4
License:	GPLv3+
Group:		System/Libraries
Url:		http://www.librelp.com/
Source0:	http://download.rsyslog.com/librelp/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(gnutls)

%description
librelp is an easy to use library for the RELP protocol. RELP in turn provides
reliable event logging over the network (and consequently RELP stands for
Reliable Event Logging Protocol). RELP was initiated by Rainer Gerhards after
he was finally upset by the lossy nature of plain tcp syslog and wanted a cure
for all these dangling issues.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Reliable Event Logging Protocol (RELP) library
Group:		System/Libraries

%description -n %{libname}
librelp is an easy to use library for the RELP protocol. RELP in turn provides
reliable event logging over the network (and consequently RELP stands for
Reliable Event Logging Protocol). RELP was initiated by Rainer Gerhards after
he was finally upset by the lossy nature of plain tcp syslog and wanted a cure
for all these dangling issues.

%files -n %{libname}
%{_libdir}/librelp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the %{libname} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	relp-devel = %{EVRD}

%description -n	%{devname}
Development files for the %{libname} library.

%files -n %{devname}
%doc ChangeLog doc/*.html
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
# sed like uniq
sed -i 'N; /^\(.*\)\n\1$/!P; D' ./configure.ac

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14303 |21mr|libreoffice-24.8.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0
%bcond_without l10n
%bcond_with icecream
%bcond_with ccache
%bcond_with clang
%bcond_without kde5
%bcond_with kde6

# reduce memory consumption
%if %{__isa_bits} == 32
%define debugcflags -g1
%endif

%global _python_bytecompile_build 0

%if %{with l10n}
%define langs en_US af ar as bg bn br bs ca cs cy da de dz el en_GB es et eu fa fi fr ga gl gu he hi hr hu it ja ko kn lt lv mai mk ml mr nb nl nn nr nso or pa_IN pl pt pt_BR ro ru si sk sl sr ss st sv ta te th tn tr ts uk ve xh zh_TW zh_CN zu
%define helplangs ar bg bn bs ca cs da de dz el en_GB es et eu fi fr gl gu he hi hr hu it ja ko lt lv mk nb nl nn pl pt pt_BR ro ru si sk sl sv ta tr uk zh_CN zh_TW en_US
%else
%define langs en_US
%define helplangs en_US
%endif

%ifarch %{x86_64} aarch64
%bcond_without java
%else
%bcond_with java
%endif

%define relurl http://download.documentfoundation.org/libreoffice/src/%{version}
%define devurl http://dev-www.libreoffice.org/ooo_external
%define devexurl http://dev-www.libreoffice.org/extern
%define srcurl http://dev-www.libreoffice.org/src/
%define oxyurl http://ooo.itc.hu/oxygenoffice/download/libreoffice/
%define distroname ROSA
%define ooname libreoffice
%define buildver %{version}.2
%define ooodir %{_libdir}/libreoffice
%define antver 1.10.12
%define antpath %{_builddir}/libreoffice-%{version}/apache-ant-%{antver}

%define ccachedir ~/.ccache-OOo

%global __requires_exclude libjawt.so|libmyspell.so|libstlport_gcc.so|libmono.so|mono|devel\\(libunoidl(.*)

Summary:	Office suite
Name:		libreoffice
Epoch:		1
Version:	24.8.3
Release:	2
License:	(MPLv1.1 or LGPLv3+) and LGPLv3 and LGPLv2+ and BSD and (MPLv1.1 or GPLv2 or LGPLv2 or Netscape) and Public Domain and ASL 2.0 and Artistic
Group:		Office
Url:		http://www.libreoffice.org

Source0:	%{relurl}/%{ooname}-%{buildver}.tar.xz
Source1:	%{relurl}/%{ooname}-dictionaries-%{buildver}.tar.xz
Source2:	%{relurl}/%{ooname}-help-%{buildver}.tar.xz
Source3:	%{relurl}/%{ooname}-translations-%{buildver}.tar.xz
Source4:	%{devexurl}/185d60944ea767075d27247c3162b3bc-unowinreg.dll
Source5:	locales.csv

# Unused, should be dropped in future package updates
Source10:	Mandriva-Rosa_Icons.tar.bz2
Source20:	http://archive.apache.org/dist/ant/binaries/apache-ant-%{antver}-bin.tar.bz2
Source21:	https://dev-www.libreoffice.org/src/Java-WebSocket-1.5.6.tar.gz
Source31:	https://dev-www.libreoffice.org/src/skia-m116-2ddcf183eb260f63698aa74d1bb380f247ad7ccd.tar.xz
Source32:	https://dev-www.libreoffice.org/src/dtoa-20180411.tgz
Source33:	%{srcurl}/62c0b97e94fe47d5e50ff605d2edf37a-hsqldb-2.3.3.zip
Source34:	https://dev-www.libreoffice.org/extern/odfvalidator-1.2.0-incubating-SNAPSHOT-jar-with-dependencies-971c54fd38a968f5860014b44301872706f9e540.jar
Source35:	%{devurl}/798b2ffdc8bcfe7bca2cf92b62caf685-rhino1_5R5.zip
Source36:	%{devurl}/a7983f859eafb2677d7ff386a023bc40-xsltml_2.1.2.zip
Source37:	%{devurl}/35c94d2df8893241173de1d16b6034c0-swingExSrc.zip
Source38:	%{devurl}/17410483b5b5f267aa18b7e00b65e6e0-hsqldb_1_8_0.zip
Source39:	http://dev-www.libreoffice.org/src/pdfium-6425.tar.bz2

# External Download Sources
Source40:	1756c4fa6c616ae15973c104cd8cb256-Adobe-Core35_AFMs-314.tar.gz

# Extensions
Source50:	%{srcurl}1f467e5bb703f12cbbb09d5cf67ecf4a-converttexttonumber-1-5-0.oxt
Source51:	%{srcurl}b63e6340a02ff1cacfeadb2c42286161-JLanguageTool-1.7.0.tar.bz2
Source52:	https://extensions.libreoffice.org/extensions/barcode/1.3.5.0/@@download/file/barcode_1.3.5.0.oxt
Source53:	https://extensions.libreoffice.org/extensions/smart/0.94/@@download/file/smart_0.9.4_en_hu_corrected.oxt
Source54:	%{srcurl}27211596cf0ad97cab7321239406fde0-gdocs_3.0.1_modified.oxt
Source55:	%{srcurl}b7cae45ad2c23551fd6ccb8ae2c1f59e-numbertext_0.9.5.oxt
Source56:	libcmis-0.6.2.tar.xz
Source57:	https://go.suokunlong.cn:88/dl/libreoffice/external_tarballs/f543e6e2d7275557a839a164941c0a86e5f2c3f2a0042bfc434c88c6dde9e140-opens___.ttf

Source80:	loffice-libcxx-wrapper.sh

# Rosa icons themes
Source900:	rosa-icons.tar.gz

Source1000:	libreoffice.rpmlintrc

# Default icons for Rosa theme
Patch0:		rosa-icons.patch

Patch7:		libreoffice-7.2.5.2-poppler.patch

# ROSA vendor patch
Patch100:	libreoffice-4.1-vendor.patch
Patch101:	libreoffice-desktop-categories.patch
Patch103:	libreoffice-5.1.2.2-desktop-startcenter-nomate.patch
# Fix error «cannot find input file: `.vscode/vs-code-template.code-workspace.in'»
Patch104:	fix.build_error_vscode.patch
Patch105:	fix.build.32-2.patch
Patch106:	0001-Force-icons-in-menus-in-GTK-3-VCLs.patch
Patch108:	fix_missing_translate.patch
# Fix small app size after reading config (https://bugs.documentfoundation.org/show_bug.cgi?id=97894)
Patch111:	FixWindowSmallSize.patch
# Fix problem with importing brackets from docx and rtf
Patch112:	0001-Add-before-parentheses-if-they-are-in-m-t-tag.patch
# Added support scaling modes and user defined paper size in print dialog
Patch114:	Fixes-settings-for-print-dialog.patch
# Fix context menu for Impress slideshow (backport from 25.2, https://bugs.documentfoundation.org/show_bug.cgi?id=163124)
Patch115:	0001-tdf-163124-Show-correct-PopUp-when-SlideShow-running.patch

BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	bison
%if %{with ccache}
BuildRequires:	ccache
%endif
BuildRequires:	clang
BuildRequires:	box2d-devel
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen >= 1.8.4
BuildRequires:	ed
BuildRequires:	flex
# For building the OpenSymbol font
BuildRequires:	fontforge
BuildRequires:	git
BuildRequires:	gperf
%if %{with icecream}
BuildRequires:	icecream
%endif
BuildRequires:	icu
BuildRequires:	%{_lib}icu-devel
BuildRequires:	imagemagick
BuildRequires:	locales-en
BuildRequires:	mariadb-devel
BuildRequires:	mariadb
BuildRequires:	pkgconfig(libstaroffice-0.0)
BuildRequires:	pkgconfig(libzmf-0.0)
BuildRequires:	perl-Archive-Zip
BuildRequires:	perl-MDK-Common
BuildRequires:	perl-HTML-Parser
BuildRequires:	perl-XML-Twig
BuildRequires:	recode
BuildRequires:	sharutils
BuildRequires:	tcsh
BuildRequires:	unzip
BuildRequires:	xsltproc >= 1.0.19
BuildRequires:	zip
BuildRequires:	boost-devel
BuildRequires:	cups-devel
BuildRequires:	db-devel
BuildRequires:	glm-devel
BuildRequires:	hyphen-devel
BuildRequires:	frozen-devel
BuildRequires:	jemalloc-devel
BuildRequires:	lpsolve-devel
BuildRequires:	nas-devel
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	readline-devel
BuildRequires:  systemtap-devel
BuildRequires:	unixODBC-devel
BuildRequires:	gpgmepp-devel
BuildRequires:	zxcvbn-devel
BuildRequires:	vigra-devel
BuildRequires:	which
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(cppunit) >= 1.14.0
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libargon2)
BuildRequires:	pkgconfig(libetonyek-0.1)
BuildRequires:	pkgconfig(libfreehand-0.1)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(graphite2)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libabw-0.1)
BuildRequires:	pkgconfig(libclucene-core)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libcdr-0.1)
BuildRequires:	pkgconfig(libe-book-0.1)
BuildRequires:	pkgconfig(libeot)
BuildRequires:	pkgconfig(libexttextcat)
BuildRequires:	pkgconfig(libepubgen-0.1)
BuildRequires:	pkgconfig(libixion-0.18)
BuildRequires:	pkgconfig(liblangtag)
BuildRequires:	pkgconfig(libmspub-0.1)
BuildRequires:	pkgconfig(libmwaw-0.3) >= 0.3.4
BuildRequires:	pkgconfig(libnumbertext) >= 1.0.6
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libodfgen-0.1) >= 0.1.0
BuildRequires:	pkgconfig(liborcus-0.18)
BuildRequires:	pkgconfig(libpagemaker-0.0)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libqxp-0.0)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libsvg)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libvisio-0.1)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libwps-0.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(mdds-2.1) >= 2.1.1
BuildRequires:	pkgconfig(mythes)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(poppler)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(poppler-cpp)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(rasqal)
BuildRequires:	pkgconfig(redland)
BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmlsec1) >= 1.2.24
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(zxing)
%if %{with kde5}
# Used for Qt detection
BuildRequires:	qmake5
BuildRequires:	qt5-devel
# kf5
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5windowsystem-devel
%endif
# For KDE 6
%if %{with kde6}
BuildRequires:	kf6config-devel
BuildRequires:	kf6coreaddons-devel
BuildRequires:	kf6i18n-devel
BuildRequires:	kf6kio-devel
BuildRequires:	kf6windowsystem-devel
# For Qt6 frontend
BuildRequires:	qmake-qt6
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(Qt6Core)
BuildRequires:	pkgconfig(Qt6Gui)
BuildRequires:	pkgconfig(Qt6Widgets)
BuildRequires:	pkgconfig(Qt6Network)
BuildRequires:	%{_lib}poppler-qt6-devel
%endif
BuildRequires:	qr-code-generator-c++-devel
BuildRequires:	dragonbox-devel
BuildRequires:	fixmath-devel
BuildRequires:	%{_lib}poppler-qt5-devel
BuildRequires:	%{_lib}absl-devel
BuildRequires:	%{_lib}cuckoo-devel
%if %{with java}
BuildRequires:	java-17-openjdk-devel
BuildRequires:	java-17-openjdk-headless
BuildRequires:	ant
BuildRequires:	ant-apache-regexp
BuildRequires:	bsh
BuildRequires:	junit
BuildRequires:	flute
BuildRequires:	pentaho-libxml
BuildRequires:	pentaho-reporting-flow-engine
BuildRequires:	rhino
BuildRequires:	sac
BuildRequires:	servlet3
%endif
# STLport-devel 4.5 + private patches are needed
BuildConflicts:	STLport-devel
# Requres to all our packages
Requires:	%{name}-base = %{EVRD}
Requires:	%{name}-calc = %{EVRD}
Requires:	%{name}-draw = %{EVRD}
Requires:	%{name}-impress = %{EVRD}
Requires:	%{name}-math = %{EVRD}
Requires:	%{name}-writer = %{EVRD}
%if %{with java}
Recommends:	%{name}-java = %{EVRD}
%endif
Provides:	LibreOffice = %{EVRD}
Provides:	LibreOffice-libs = %{EVRD}

%description
LibreOffice is an Open Source, community-developed, multi-platform
office productivity suite. It includes the key desktop applications,
such as a word processor, spreadsheet, presentation manager, formula
editing and drawing program, with a user interface and feature set
similar to other office suites. Sophisticated and flexible,
LibreOffice also works transparently with a variety of file
formats, including Microsoft Office.

%files

#----------------------------------------------------------------------------

%package base
Summary:	LibreOffice office suite - database
Group:		Office
Requires:	%{name}-common = %{EVRD}
%if %{with java}
Requires:	%{name}-java = %{EVRD}
%endif
%description base
This package contains the database component for LibreOffice.

You can extend the functionality of LibreOffice Base by installing these
packages:

 * unixodbc: ODBC database support
 * libmyodbc | odbc-postgresql | libsqliteodbc | tdsodbc | mdbtools: ODBC
   drivers for:
   - MySQL
   - PostgreSQL
   - SQLite
   - MS SQL / Sybase SQL
   - *.mdb (JET / MS Access)
 * libmysql-java | libpg-java | libsapdbc-java: JDBC Drivers
   for:
   - MySQL
   - PostgreSQL
   - MaxDB

%files base -f file-lists/base_list.txt
%{_mandir}/man1/lobase*
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-base_72.svg
%dir %{ooodir}/share/xdg
%{ooodir}/share/xdg/base.desktop
%{_datadir}/metainfo/libreoffice-base.appdata.xml

#----------------------------------------------------------------------------

%package calc
Summary:	LibreOffice office suite - spreadsheet
Group:		Office
Requires:	%{name}-common = %{EVRD}

%description calc
This package contains the spreadsheet component for LibreOffice.

%files calc -f file-lists/calc_list.txt
%{_mandir}/man1/localc*
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-calc_72.svg
%dir %{ooodir}/share/xdg
%{ooodir}/share/xdg/calc.desktop
%{_datadir}/metainfo/libreoffice-calc.appdata.xml

#----------------------------------------------------------------------------

%package common
Summary:	LibreOffice office suite common files
Group:		Office
Provides:	libreoffice-l10n-en_US = %{EVRD}
Provides:	LibreOffice-l10n-en_US = %{EVRD}
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides: libreoffice-opensymbol-fonts = %{EVRD}
# Require at least one style to be installed
Requires:	%{name}-style = %{EVRD}
# And breeze too, it should be default for Plasma 5
Recommends:	%{name}-style-breeze = %{EVRD}
Recommends:	%{name}-style-breeze_dark = %{EVRD}
Recommends:	%{name}-style-colibre = %{EVRD}
Recommends:	%{name}-style-elementary = %{EVRD}
Recommends:	%{name}-style-karasa_jaga = %{EVRD}
Recommends:	%{name}-style-rosa5 = %{EVRD}
Recommends:	%{name}-style-rosa5_dark = %{EVRD}
Recommends:	%{name}-style-sifr = %{EVRD}
Recommends:	%{name}-style-sukapura = %{EVRD}
Recommends:	%{name}-openclipart = %{EVRD}
# code in core/vcl/source/app/salplug.cxx chooses VCL backends
# Recommend those which would be preferred by it
Recommends:	(%{name}-gnome if gnome-shell)
Recommends:	(%{name}-gnome if task-mate)
Recommends:	(%{name}-gnome if task-xfce)
Recommends:	(%{name}-gnome if task-xfce-minimal)
%if %{with kde5}
# Patch107 gives gtk3_kde5 more priority than kf5 because of its maturity
Recommends:	((%{name}-gtk3-kde5 or %{name}-kde5) if task-plasma5-minimal)
Recommends:	((%{name}-gtk3-kde5 or %{name}-kde5) if task-plasma5-mobile)
%endif
%if %{with kde6}
Recommends:	((%{name}-kde6 or %{name}-gnome) if task-plasma6)
Recommends:	((%{name}-kde6 or %{name}-gnome) if task-plasma6-mobile)
%endif
# And then general requires for OOo follows
Requires:	ghostscript
Requires:	fonts-ttf-liberation
Requires:	desktop-common-data >= 2008
# rpm will automatically grab the require for libsane1, but there are some
# configs needed at this package, so we must require it too.
Requires:	sane-backends
%ifarch i686
# The 32-bit version of the 24.2 package when built with clang does not respond when run with the gtk3 VCL
Requires:	%{name}-kde5
%endif
# javascript stuff was moved from libreoffice-java to here
%if %{with java}
Obsoletes:	%{name}-java < 1:7.1.0-1
Conflicts:	%{name}-java < 1:7.1.0-1
%endif

# automatically install needed locale
%{expand:
%(for i in %{langs}; do \
echo "Recommends: (libreoffice-l10n-${i} if locales-${i})";
done)}

%description common
This package contains the application-independent files of LibreOffice.

%files common -f file-lists/core_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo_72.svg
%{_mandir}/man1/loffice*
%{_mandir}/man1/lofromtemplate*
%{_mandir}/man1/libreoffice*
%{_mandir}/man1/unopkg.1*
%if %{with java}
%{_libdir}/libreoffice/program/classes/ScriptProviderForBeanShell.jar
%{_libdir}/libreoffice/program/services/scriptproviderforbeanshell.rdb
%endif
%{ooodir}/share/libreofficekit

#----------------------------------------------------------------------------

%package help
Summary:	Offline help for LibreOffice
Group:		Office
%{expand:
%(for i in %{langs}; do \
echo "Recommends: (libreoffice-help-${i} if locales-${i})";
done)}

%description help
Install this package to install offline help for LibreOffice
in languages which are installed in your system.

%files help
# empty, meta package

#----------------------------------------------------------------------------

%if %{with java}
%package java
Summary:	Java dependent parts of LibreOffice
Group:		Office
Requires:	%{name}-common = %{EVRD}
# (tpg) https://issues.openmandriva.org/show_bug.cgi?id=1056
Requires:	pentaho-reporting-flow-engine
Requires:	(java-11-openjdk or java-17-openjdk)

%description java
Java dependent parts of LibreOffice.

This package contains templates and other optional parts of LibreOffice
that require a Java stack (such as OpenJDK) to be installed.

%files java -f file-lists/java_common_list.txt
%endif

#----------------------------------------------------------------------------

%package devel
Summary:	LibreOffice SDK - development files
Group:		Office
Requires:	%{name}-common = %{EVRD}
%if "%{_lib}" == "lib64"
Provides:	devel(libxmlreader(64bit)) = %{EVRD}
Provides:	devel(libxmlreaderlo(64bit)) = %{EVRD}
Provides:	devel(libreg(64bit)) = %{EVRD}
Provides:	devel(libreglo(64bit)) = %{EVRD}
%else
Provides:	devel(libxmlreader) = %{EVRD}
Provides:	devel(libxmlreaderlo) = %{EVRD}
Provides:	devel(libreg) = %{EVRD}
Provides:	devel(libreglo) = %{EVRD}
%endif

%description devel
This package contains the files needed to build plugins/add-ons for
LibreOffice (includes, IDL files, build tools, ...). It also contains the
zipped source of the UNO Java libraries for use in IDEs like eclipse.

%files devel -f file-lists/sdk_list.uniq.sorted.txt

#----------------------------------------------------------------------------

%package devel-doc
Summary:	LibreOffice SDK - documentation
Group:		Office

%description devel-doc
This package contains the documentation of the LibreOffice SDK:

 * C++/Java API reference
 * IDL reference
 * C++/Java/Basic examples

It also contains the gsicheck utility.

%files devel-doc -f file-lists/sdk_doc_list.txt

#----------------------------------------------------------------------------

%package draw
Summary:	LibreOffice office suite - drawing
Group:		Office
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-ogltrans = %{EVRD}

%description draw
This package contains the drawing component for LibreOffice.

%files draw -f file-lists/draw_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-draw_72.svg
%{_mandir}/man1/lodraw*
%dir %{ooodir}/share/xdg
%{ooodir}/share/xdg/draw.desktop
%{_datadir}/metainfo/libreoffice-draw.appdata.xml

#----------------------------------------------------------------------------

%package gnome
Summary:	GNOME Integration for LibreOffice (VFS, GConf)
Group:		Office
Requires:	%{name}-common = %{EVRD}

%description gnome
This package contains the GNOME VFS support and a GConf backend.

%files gnome -f file-lists/gnome_list.uniq.sorted.txt

#----------------------------------------------------------------------------

%if %{with kde5}

%package gtk3-kde5
Summary:	GTK3-KDE5 Integration for LibreOffice (Widgets, Dialogs, Addressbook)
Group:		Office
Requires:	%{name}-common = %{EVRD}
Recommends:	%{name}-style-breeze = %{EVRD}
Recommends:	%{name}-style-breeze_dark = %{EVRD}

%description gtk3-kde5
This package contains the KDE5 plugin for drawing LibreOffice widgets with
KDE5/Qt5.x and a KDEish File Picker when running under KDE5.

%files gtk3-kde5
%{ooodir}/program/libvclplug_gtk3_kde5lo.so
%{ooodir}/program/lo_kde5filepicker

#----------------------------------------------------------------------------

%package kde5
Summary:	KDE5 Integration for LibreOffice (Widgets, Dialogs, Addressbook)
Group:		Office
Requires:	%{name}-common = %{EVRD}
Recommends:	%{name}-style-breeze = %{EVRD}
Recommends:	%{name}-style-breeze_dark = %{EVRD}
Recommends:	%{name}-style-rosa5 = %{EVRD}
Recommends:	%{name}-style-rosa5_dark = %{EVRD}

%description kde5
This package contains the KDE5 plugin for drawing LibreOffice widgets with
KDE5/Qt5.x and a KDEish File Picker when running under KDE5.

%files kde5
%{ooodir}/program/libkf5be1lo.so
%{ooodir}/program/libvclplug_kf5lo.so
%{ooodir}/program/libvclplug_qt5lo.so
%endif

#----------------------------------------------------------------------------

%if %{with kde6}

%package kde6
Summary:	KDE5 Integration for LibreOffice (Widgets, Dialogs, Addressbook)
Group:		Office
Requires:	%{name}-common = %{EVRD}
Recommends:	%{name}-style-breeze = %{EVRD}
Recommends:	%{name}-style-breeze_dark = %{EVRD}

%description kde6
This package contains the KDE5 plugin for drawing LibreOffice widgets with
KDE5/Qt5.x and a KDEish File Picker when running under KDE5.

%files kde6
%{ooodir}/program/libvclplug_kf6lo.so
%{ooodir}/program/libvclplug_qt6lo.so
%endif

#----------------------------------------------------------------------------

%package impress
Summary:	LibreOffice office suite - presentation
Group:		Office
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-draw = %{EVRD}
Requires:	%{name}-ogltrans = %{EVRD}

%description impress
This package contains the presentation component for LibreOffice.

%files impress
%{_bindir}/loimpress
%{ooodir}/program/simpress
%{ooodir}/program/libPresentationMinimizerlo.so
%{ooodir}/program/libanimcorelo.so
%{ooodir}/program/libwpftimpresslo.so
%dir %{ooodir}/share/config/soffice.cfg/simpress
%{ooodir}/share/config/soffice.cfg/simpress/effects.xml
%{ooodir}/share/config/soffice.cfg/simpress/layoutlist.xml
%{ooodir}/share/config/soffice.cfg/simpress/objectlist.xml
%{ooodir}/share/config/soffice.cfg/simpress/styles.xml
%{ooodir}/share/config/soffice.cfg/simpress/transitions.xml
%{ooodir}/share/registry/impress.xcd
%{ooodir}/share/xdg/impress.desktop
%{_datadir}/applications/libreoffice-impress.desktop
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-impress_72.svg
%{_mandir}/man1/loimpress.1*
%{_datadir}/metainfo/libreoffice-impress.appdata.xml

#----------------------------------------------------------------------------

%package math
Summary:	LibreOffice office suite - equation editor
Group:		Office
Requires:	%{name}-common = %{EVRD}

%description math
This package contains the equation editor component for LibreOffice.

%files math -f file-lists/math_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-math_72.svg
%{_mandir}/man1/lomath*
%dir %{ooodir}/share/xdg
%{ooodir}/share/xdg/math.desktop

#----------------------------------------------------------------------------

%package ogltrans
Summary:	3D OpenGL slide transitions for LibreOffice
Group:		Office
Requires:	%{name}-common = %{EVRD}
# files were moved
Conflicts:	libreoffice-impress < 1:24.2.1-1

%description ogltrans
OpenGL Transitions enable 3D slide transitions to be used in LibreOffice.

%files ogltrans
%{ooodir}/program/libOGLTranslo.so
%dir %{ooodir}/program/opengl
%{ooodir}/program/opengl/basicFragmentShader.glsl
%{ooodir}/program/opengl/basicVertexShader.glsl
%{ooodir}/program/opengl/dissolveFragmentShader.glsl
%{ooodir}/program/opengl/fadeBlackFragmentShader.glsl
%{ooodir}/program/opengl/fadeFragmentShader.glsl
%{ooodir}/program/opengl/glitterFragmentShader.glsl
%{ooodir}/program/opengl/glitterVertexShader.glsl
%{ooodir}/program/opengl/honeycombFragmentShader.glsl
%{ooodir}/program/opengl/honeycombGeometryShader.glsl
%{ooodir}/program/opengl/honeycombVertexShader.glsl
%{ooodir}/program/opengl/rippleFragmentShader.glsl
%{ooodir}/program/opengl/reflectionFragmentShader.glsl
%{ooodir}/program/opengl/reflectionVertexShader.glsl
%{ooodir}/program/opengl/staticFragmentShader.glsl
%{ooodir}/program/opengl/vortexFragmentShader.glsl
%{ooodir}/program/opengl/vortexGeometryShader.glsl
%{ooodir}/program/opengl/vortexVertexShader.glsl
%{ooodir}/share/config/soffice.cfg/simpress/transitions-ogl.xml
%{ooodir}/share/registry/ogltrans.xcd

#----------------------------------------------------------------------------

%package openclipart
Summary:	LibreOffice Open Clipart data
Group:		Office
Requires:	%{name}-common = %{EVRD}

%description openclipart
This package contains the LibreOffice Open Clipart data, including images
and sounds.

%files openclipart
%{ooodir}/share/gallery/apples*
%{ooodir}/share/gallery/arrows*
%{ooodir}/share/gallery/bigapple*
%{ooodir}/share/gallery/bpmn*
%{ooodir}/share/gallery/bullets*
%{ooodir}/share/gallery/diagrams*
%{ooodir}/share/gallery/flowchart*
%{ooodir}/share/gallery/flower*
%{ooodir}/share/gallery/fontwork*
%{ooodir}/share/gallery/icons*
%{ooodir}/share/gallery/network*
%{ooodir}/share/gallery/personas*
%{ooodir}/share/gallery/shapes*
%{ooodir}/share/gallery/sky.*
%{ooodir}/share/gallery/sounds*
%{ooodir}/share/gallery/symbols*

#----------------------------------------------------------------------------

%package pyuno
Summary:	Python bindings for UNO library
Group:		Office
Requires:	%{name}-common = %{EVRD}

%description pyuno
This package contains the Python bindings for the UNO library.

%files pyuno -f file-lists/pyuno_list.txt

#----------------------------------------------------------------------------

%define style_package()\
%{expand:\
%%package style-%1 \
Summary:	%1 symbol style for LibreOffice \
Group:		Office \
Requires:	%{name}-common = %{EVRD} \
Provides:	%{name}-style = %{EVRD} \
Obsoletes:	%{name}-common < 1:6.3.5 \
Conflicts:	%{name}-common < 1:6.3.5 \
\
%%description style-%1 \
%1 symbol style for LibreOffice \
\
%%files style-%1 \
%{ooodir}/share/config/images_%{1}*.zip
}

%style_package breeze
%style_package breeze_dark
%style_package colibre
%style_package elementary
%style_package karasa_jaga
%style_package rosa5
%style_package rosa5_dark
%style_package sifr
%style_package sukapura

#----------------------------------------------------------------------------

%package writer
Summary:	LibreOffice office suite - word processor
Group:		Office
Requires:	%{name}-common = %{EVRD}
Recommends:	libreoffice-pagination

%description writer
This package contains the word processor component for LibreOffice.

%files writer -f file-lists/writer_list.txt
%{_iconsdir}/hicolor/scalable/apps/mandriva-rosa-lo-writer_72.svg
%{_mandir}/man1/loweb*
%{_mandir}/man1/lowriter*
%dir %{ooodir}/share/xdg
%{ooodir}/share/xdg/writer.desktop
%{_datadir}/metainfo/libreoffice-writer.appdata.xml

#----------------------------------------------------------------------------

%if %{with java}
%package wiki-publisher
Summary:	LibreOffice office suite - Wiki Publisher extension
Group:		Office
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-writer = %{EVRD}
Requires:	apache-commons-logging

%description wiki-publisher
With Wiki Publisher extesion is possible by using %{name}-writer to create 
wiki page articles on MediaWiki servers without having to know the syntax of 
MediaWiki markup language. This extension also enables publishing of the
wiki pages.

%files wiki-publisher
%{ooodir}/share/extensions/wiki-publisher
%endif

#----------------------------------------------------------------------------

%if %{with java}
%package extension-nlpsolver
Summary:	Solver extension for LibreOffice Calc
Group:		Office
Requires:	%{name}-calc = %{EVRD}

%description extension-nlpsolver
Extension integrating a solver engine for optimizing nonlinear programming
models into Calc.

%files extension-nlpsolver
%{ooodir}/share/extensions/nlpsolver
%endif

#----------------------------------------------------------------------------

%if %{with java}
%package extension-numbertext
Summary:	Number-to-Text conversion function for LibreOffice Calc
Group:		Office
Requires:	%{name}-calc = %{EVRD}

%description extension-numbertext
Number-to-Text conversion function for LibreOffice Calc.

%files extension-numbertext
%{ooodir}/share/extensions/numbertext
%endif

#----------------------------------------------------------------------------

%package postgresql
Summary:	PostgreSQL connector for LibreOffice
Group:		Office
Requires:	%{name}-base = %{EVRD}

%description postgresql
A PostgreSQl connector for the database front-end for LibreOffice. Allows
creation and management of PostgreSQL databases through a GUI.

%files postgresql
%{ooodir}/program/libpostgresql-sdbclo.so
%{ooodir}/program/libpostgresql-sdbc-impllo.so
%{ooodir}/program/services/postgresql-sdbc.rdb
%{ooodir}/share/registry/postgresql.xcd

#----------------------------------------------------------------------------

%if %{with l10n}

%define l10n_package()\
%{expand:\
%%package l10n-%{1} \
Summary:	%(echo "%{2}" | sed -e 's,___, ,g') language support for LibreOffice \
Group:		Office \
Provides:	%{ooname}-l10n = %{EVRD} \
Requires:	%{ooname}-common = %{EVRD} \
Requires:	locales-%(echo %{1} | awk -F '_' '{print $1}') \
Provides:	LibreOffice-l10n-%{1} = %{EVRD} \
\
%%description l10n-%{1} \
This package contains the localization of LibreOffice in %(echo "%{2}" | sed -e 's,___, ,g'). \
It contains the user interface, the templates and the autotext \
features. Please note that not all of these are available for all \
possible language. You can switch user interface language using the \
standard locales system. \
\
%%files l10n-%{1} \
%{ooodir}/share/registry/res/*_%{3}.* \
%{ooodir}/share/registry/*-%{3}.* \
%{ooodir}/share/autotext/%{3} \
%{ooodir}/readmes/README_%{3} \
%{ooodir}/program/resource/%{1} \
%%optional %{ooodir}/share/registry/*_%{3}.xcd
}

%{expand:
%(for i in %{langs}; do \
[ "$i" = "en_US" ] && continue; \
name="$(grep "^${i};" %{SOURCE5} | awk -F ';' '{print $2}' | tail -n 1 | sed -E -e 's,[[:blank:]],___,g' || :)" ; \
j="$(echo "$i" | sed -e 's,_,-,g')" ; \
echo "%%{l10n_package "$i" "$name" "$j"}"; \
done)}

%define help_package()\
%{expand:
%%package help-%{1} \
Summary:	%(echo "%{2}" | sed -e 's,___, ,g') help for LibreOffice \
Group:		Office \
Provides:	%{ooname}-help = %{EVRD} \
Requires:	%{ooname}-l10n-%{1} = %{EVRD} \
Provides:	LibreOffice-help-%{1} = %{EVRD} \
\
%%description help-%{1} \
Localized help files of LibreOffice in %(echo "%{2}" | sed -e 's,___, ,g'). \
\
%%files help-%{1} \
%ifnarch i686
%{ooodir}/help/%{3}
%endif
}

%{expand:
%(for i in %{helplangs} ; do \
name="$(grep "^${i};" %{SOURCE5} | awk -F ';' '{print $2}' | tail -n 1 || :)" ; \
j="$(echo "$i" | sed -e 's,_,-,g')" ; \
echo "%%{help_package "$i" "$(echo "$name" | sed -E -e 's,[[:blank:]],___,g')" "$j"}"; \
done) }

%endif

#----------------------------------------------------------------------------

%prep
%setup -q -c -a 1 -a 2 -a 3
rm -rf git-hooks */git-hooks
for a in */*; do mv `pwd`/$a .; done

#ant
%if %{with java}
tar -xjvf %{SOURCE20}
tar -xvzf %{SOURCE21}
%endif

pushd icon-themes
tar -xvzf %{SOURCE900}
popd

%autopatch -p1

%ifnarch %{ix86}
%patch105 -p1 -R
%endif

sed -i -e 's,qrcodegen/QrCode.hpp,qrcodegencpp/QrCode.hpp,g' \
	configure.ac \
	configure \
	cui/source/dialogs/QrCodeGenDialog.cxx

# to make the friggin cppunit tests work
mkdir -p ~/tmp
chmod 777 ~/tmp

# 4.4.1.2 specific
chmod +x bin/unpack-sources

%build
# Work around https://github.com/llvm/llvm-project/issues/57566
export CC=clang
export CXX=clang++
# path to external tarballs
EXTSRCDIR=`dirname %{SOURCE0}`
export LC_ALL=en_US.UTF-8
export LANG=en_US

%if !%{with icecream}
PATH=$PATH:/usr/sbin
export PATH
%endif

%if %{with ccache}
export CCACHE_DIR=%{ccachedir}
%endif

%if %{with clang}
# not using %%clang_gcc_wrapper here because it fails
# to deal with complex quotation like
# -DCPPUNIT_PLUGIN_EXPORT='extern "C" SAL_DLLPUBLIC_EXPORT'
for i in %noclang_optflags ; do
  export CFLAGS="$(echo "$CFLAGS" | sed -e "s,${i},,g")"
  export CXXFLAGS="$(echo "$CXXFLAGS" | sed -e "s,${i},,g")"
done
mkdir -p local_bin
install -m0755 %{SOURCE80} "local_bin/clang++"
export PATH="${PWD}/local_bin:${PATH}"
export CC=clang
export CXX=clang++
export CPP=clang-cpp
%endif

%if %{with clang}
sed -i \
	-e "s!clang -V!clang -v!g" \
	-e "s!clang -qversion!clang --version!g" \
	configure
%endif

export CFLAGS="%{optflags} -fno-omit-frame-pointer -fno-strict-aliasing"
export CXXFLAGS="%{optflags} -fno-omit-frame-pointer -fno-strict-aliasing -fpermissive -std=gnu++20"

echo "Configure start at: "`date` >> ooobuildtime.log

touch autogen.lastrun
%configure \
	%{?_smp_mflags:--with-parallelism="`getconf _NPROCESSORS_ONLN`"} \
	--with-vendor=ROSA \
	--disable-coinmp \
	--disable-fetch-external \
	--with-external-tar="$EXTSRCDIR" \
	--enable-release-build \
	--enable-gtk3-kde5 \
	--disable-gtk4 \
	--enable-kf5 \
	--enable-qt5 \
%if %{with kde6}
	--enable-kf6 \
	--enable-qt6 \
%endif
	--enable-vlc \
	--disable-firebird-sdbc \
	--disable-introspection \
	--disable-online-update \
	--enable-eot \
	--enable-odk \
	--enable-split-app-modules \
	--enable-split-opt-features \
	--without-fonts \
	--without-lxml \
	--without-junit \
	--without-system-libcmis \
%if %{without java}
	--with-java=no \
	--disable-skia \
%endif
%if %{with java}
	--with-jdk-home="/usr/lib/jvm/java-17-openjdk" \
	--with-ant-home="%{antpath}" \
%endif
	--with-lang="$(echo %{langs} | sed -e 's,_,-,g')" \
	--without-myspell-dicts \
	--with-system-dicts \
	--with-system-libfixmath \
%ifnarch i686
	--with-help \
%endif
	--with-external-dict-dir=%{_datadir}/dict/ooo \
	--with-external-hyph-dir=%{_datadir}/dict/ooo \
	--with-external-thes-dir=%{_datadir}/dict/ooo \
	--with-system-libs \
	--enable-ext-nlpsolver \
	--enable-ext-numbertext \
	--enable-ext-wiki-publisher \
%if %{with ccache} && !%{with icecream}
	--with-gcc-speedup=ccache \
%else
 %if !%{with ccache} && %{with icecream}
	--with-gcc-speedup=icecream \
	--with-max-jobs=10 \
	--with-icecream-bindir=%{_libdir}/icecc/bin
 %else
  %if %{with ccache} && %{with icecream}
	--with-gcc-speedup=ccache,icecream \
	--with-max-jobs=10 \
	--with-icecream-bindir=%{_libdir}/icecc/bin
  %endif
 %endif
%endif

sed -i -e "s,\$ENV{'MD5SUM'},md5sum,g" solenv/bin/modules/installer/systemactions.pm solenv/bin/modules/installer.pm

echo "Configure end at: "`date` >> ooobuildtime.log 
echo "Make start at: "`date` >> ooobuildtime.log 

mkdir -p external/tarballs
ln -sf %{SOURCE2} external/tarballs/
ln -sf %{SOURCE3} external/tarballs/
cp %{SOURCE4} external/tarballs/

ln -sf %{SOURCE31} external/tarballs/
ln -sf %{SOURCE32} external/tarballs/
ln -sf %{SOURCE33} external/tarballs/
ln -sf %{SOURCE34} external/tarballs/
ln -sf %{SOURCE35} external/tarballs/
ln -sf %{SOURCE36} external/tarballs/
ln -sf %{SOURCE37} external/tarballs/
ln -sf %{SOURCE38} external/tarballs/

cp %{SOURCE39} external/tarballs/
cp %{SOURCE40} external/tarballs/

ln -sf %{SOURCE50} external/tarballs/
ln -sf %{SOURCE51} external/tarballs/
ln -sf %{SOURCE52} external/tarballs/
ln -sf %{SOURCE53} external/tarballs/
ln -sf %{SOURCE54} external/tarballs/
ln -sf %{SOURCE55} external/tarballs/
ln -sf %{SOURCE56} external/tarballs/

cp %{SOURCE57} external/tarballs/

touch external/tarballs/.downloaded

%make -r -s V=0

echo "Make end at: "`date` >> ooobuildtime.log 
echo "Install start at: "`date` >> ooobuildtime.log

%install
# sbin due to icu stuff there
PATH=$PATH:/usr/sbin

make DESTDIR=%{buildroot} distro-pack-install
rm -rf %{buildroot}/opt

# Mandriva Rosa icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
tar -xjvf %{SOURCE10} --exclude Libre_Office* -C %{buildroot}%{_iconsdir}/hicolor/scalable/apps/

sed -i 's/^Icon=.*$/Icon=libreoffice-calc/' %{buildroot}%{ooodir}/share/xdg/calc.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-writer/' %{buildroot}%{ooodir}/share/xdg/writer.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-impress/' %{buildroot}%{ooodir}/share/xdg/impress.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-draw/' %{buildroot}%{ooodir}/share/xdg/draw.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-base/' %{buildroot}%{ooodir}/share/xdg/base.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-math/' %{buildroot}%{ooodir}/share/xdg/math.desktop
sed -i 's/^Icon=.*$/Icon=libreoffice-startcenter/' %{buildroot}%{ooodir}/share/xdg/startcenter.desktop

%if %{with kde6}
install -m 0755 instdir/program/libvclplug_kf6lo.so %{buildroot}%{ooodir}/program/libvclplug_kf6lo.so
install -m 0755 instdir/program/libvclplug_qt6lo.so %{buildroot}%{ooodir}/program/libvclplug_qt6lo.so
%endif

# fix permissions for stripping
find %{buildroot} -type f -exec chmod u+rw '{}' \;

# fix permission of .so libraries
find %{buildroot} -type f \( -name '*.so' -o -name '*.so.*' \) -exec chmod a+x '{}' \;

# Change progress bar colors
sed -i '/^ProgressBarColor/d;/^ProgressFrameColor/d' \
	%{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressBarColor=68,135,223' >> %{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressFrameColor=112,171,229' >> %{buildroot}%{ooodir}/program/sofficerc

#dev300 fix position and size
sed -i '/^ProgressPosition/d;/^ProgressSize/d' \
	%{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressPosition=10,307' >> %{buildroot}%{ooodir}/program/sofficerc
echo 'ProgressSize=377,9' >> %{buildroot}%{ooodir}/program/sofficerc

# move python bits into site-packages
mkdir -p %{buildroot}/%{py3_platsitedir}
pushd %{buildroot}/%{py3_platsitedir}
echo "import sys, os" > uno.py
echo "sys.path.append('%{ooodir}/program')" >> uno.py
echo "os.putenv('URE_BOOTSTRAP', 'vnd.sun.star.pathname:%{_libdir}/%{name}/program/fundamentalrc')" >> uno.py
cat %{buildroot}%{ooodir}/program/uno.py >> uno.py
rm -f %{buildroot}%{ooodir}/program/uno.py*
mv -f %{buildroot}%{ooodir}/program/unohelper.py* .
mv -f %{buildroot}%{ooodir}/program/officehelper.py* .
popd

sed -i 's|%{ooodir}/program/uno.py|%{py3_platsitedir}/uno.py|' file-lists/pyuno_list.txt
sed -i 's|%{ooodir}/program/unohelper.py|%{py3_platsitedir}/unohelper.py|' file-lists/pyuno_list.txt
sed -i 's|%{ooodir}/program/officehelper.py|%{py3_platsitedir}/officehelper.py|' file-lists/pyuno_list.txt

# common shouldn't depend on writer...
# but common does depend on libswdlo.so
grep libswdlo.so file-lists/writer_list.txt >>file-lists/common_list.txt
sed -i -e '/libswdlo.so/d' file-lists/writer_list.txt

## Installation fixes
## remove fix wrong manpages files, extension gz->xz
for p in common base calc writer impress draw math; do
	sed -i '/^.*man.*\.gz$/d' file-lists/${p}_list.txt 
done;

## sort removing duplicates
sort -u file-lists/gnome_list.txt > file-lists/gnome_list.uniq.sorted.txt 
sort -u file-lists/sdk_list.txt > file-lists/sdk_list.uniq.sorted.txt 

# Fix weirdo filenames wreaking havoc because they're regular expressions
sed -i -e 's/\[/?/g;s/\]/?/g' file-lists/sdk*.txt

## Split help
%ifnarch i686
cd file-lists
for i in lang_*.txt; do
	grep /help/ $i >${i/lang/help} || touch ${i/lang/help}
	sed -i -e '/\/help\//d' $i
done
cd ..
%endif

# Split gallery
grep /share/gallery/ file-lists/common_list.txt >file-lists/gallery_list.txt
sed -i -e '/\/share\/gallery\//d' file-lists/common_list.txt
# We catch those in a regex to catch Sun Template extras
sed -i -e '/gallery\/sg[0-9]*\..*/d' file-lists/gallery_list.txt

## merge en-US with common
cat file-lists/lang_en_US_list.txt >> file-lists/common_list.txt
## merge dtd with common
cat file-lists/dtd_list.txt >> file-lists/common_list.txt
sort -u file-lists/common_list.txt >  file-lists/common_list.uniq.sorted.txt
cat file-lists/common_list.uniq.sorted.txt >>file-lists/core_list.txt

## make sure we don't have duplicate files in core
sort -u file-lists/core_list.txt > file-lists/core_list.uniq.sorted.txt
cat file-lists/core_list.uniq.sorted.txt > file-lists/core_list.txt

egrep -v "libreoffice/share/xdg/(base|calc|draw|impress|math|writer)" file-lists/core_list.txt > file-lists/core_list.uniq.sorted.txt
cat file-lists/core_list.uniq.sorted.txt > file-lists/core_list.txt

## styles have their own packages
sed -E -i -e "/^.*images_.*\.zip$/d" file-lists/*.txt
%ifnarch i686
echo %{ooodir}/share/config/images_helpimg.zip >> file-lists/core_list.txt
%endif

# not used
unlink file-lists/impress_list.txt

# does not make sense because of RPM boolean dependencies
# and because it is not clear which subpackage to put it in
unlink %{buildroot}/usr/share/metainfo/org.libreoffice.kde.metainfo.xml

%if %{with java}
# JavaScript is not Java!
# XXX TODO: do not edit files here, create them correctly earlier
grep javascript file-lists/java_common_list.txt >> file-lists/core_list.txt
sed -i -e '/javascript/d' file-lists/java_common_list.txt
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14304 |21mr|libreoffice-pagination-1.3.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Not noarchm since we have to install this in arch-specific LO folder
%define debug_package %{nil}

%define extension pagination

Summary:	Pagination extension for LibreOffice
Name:		libreoffice-%{extension}
Version:	1.3.10
Release:	6
Source0:	%{extension}-%{version}.oxt
Patch0:		Addon.xcu-l10n.patch
License:	LGPLv2+
Group:		Office
URL:		http://extensions.openoffice.org/en/project/pagination
BuildRequires:	unzip

%description
A little macro that adds a 'Insert / Page number...' dialog to writer.
It eases the way you can add page numbers to a document.

%prep
%setup -qc
%patch0 -p0

%build

%install
mkdir -p %{buildroot}%{_libdir}/libreoffice/share/extensions/%{extension}-%{version}.oxt
cp -r * %{buildroot}%{_libdir}/libreoffice/share/extensions/%{extension}-%{version}.oxt

%files
%{_libdir}/libreoffice/share/extensions/%{extension}-%{version}.oxt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14305 |21mr|librepo-1.14.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# OMV is missing stuff for tests
%bcond_with tests

# prevent provides from nonstandard paths:
%global	__provides_exclude_from ^%{python3_sitearch}/.*\\.so$

# Using LibreSSL to support GOST TLS and libcurl-libressl
# to avoid mixing OpenSSL and LibreSSL in one runtime
%global optflags %{optflags} -L%{libressl_prefix}/lib -I%{libressl_prefix}/include

%define	major 0
%define	libname %mklibname repo %{major}
%define	devname %mklibname repo -d

Summary:	Repodata downloading library
Name:		librepo
Version:	1.14.2
Release:	2
Group:		System/Libraries
License:	LGPLv2+
Url:		https://github.com/rpm-software-management/librepo
Source0:	https://github.com/rpm-software-management/librepo/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		libressl.diff
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	patchelf
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(gpgme)
BuildRequires:	pkgconfig(libassuan)
BuildRequires:	pkgconfig(libattr)
BuildRequires:	pkgconfig(libcurl-libressl)
BuildRequires:	pkgconfig(libressl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zck)
# not used, just makes cmake happy
BuildRequires:	pkgconfig(libcurl)

%description
A library providing C and Python (libcURL like) API for downloading repository
metadata.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the main %{name} library.

%files -n %{libname}
%{_libdir}/librepo.so.%{major}

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Repodata downloading library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname}%{?_isa} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc COPYING README.md
%{_libdir}/librepo.so
%{_libdir}/pkgconfig/librepo.pc
%{_includedir}/librepo/

#-----------------------------------------------------------------------------

%package -n python3-librepo
Summary:	Python 3 bindings for the librepo library
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
%if %{with tests}
BuildRequires:	python3-gpg
BuildRequires:	python3-flask
BuildRequires:	python3-nose
%endif
BuildRequires:	python3-sphinx
BuildRequires:	python3-xattr
Requires:	%{libname}%{?_isa} = %{EVRD}

%description -n python3-librepo
Python 3 bindings for the librepo library.

%files -n python3-librepo
%{python3_sitearch}/%{name}

#-----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i'' -e 's,@libressl_prefix@,%{libressl_prefix},g' librepo/librepo.pc.cmake


%build
%cmake -DCMAKE_BUILD_TYPE=RelWithDebInfo -DPYTHON_DESIRED:str=3
%make


%install
%makeinstall_std -C build


%check
patchelf --print-needed %{buildroot}%{_libdir}/librepo.so | grep -q libcurl-libressl
! patchelf --print-needed %{buildroot}%{_libdir}/librepo.so | grep -q 'libcurl\.so'
patchelf --print-needed %{buildroot}%{_libdir}/librepo.so | grep -q 'libcrypto.so.%{libressl_libcrypto_sover}$'

%if %{with tests}
cd ./build
make ARGS="-V" test
make clean
cd ..
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14306 |21mr|libreport-2.14.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1
%define Werror_cflags %nil

%define _with_tests 0

Summary:	Generic library for reporting various problems
Name:		libreport
Version:	2.14.0
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/abrt/libreport
Source0:	https://github.com/abrt/libreport/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		0001-Decrease-python-to-3.5.patch

BuildRequires:	asciidoc
BuildRequires:	augeas
BuildRequires:	augeas-devel
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd45-xml
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	texinfo
BuildRequires:	xmlto
BuildRequires:	libtar-devel
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libnewt)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(satyr)
BuildRequires:	pkgconfig(xmlrpc)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(nettle)
Requires:	libreport-filesystem
Requires:	python3-libreport = %{EVRD}
Obsoletes:	libreport-compat < 2.14

%description
Libraries providing API for reporting different problems in applications
to different bug targets like Bugzilla, ftp, trac, etc...

%files -f %{name}.lang
%license COPYING
%doc %{_docdir}/%{name}/README.md
%config(noreplace) %{_sysconfdir}/%{name}/report_event.conf
%config(noreplace) %{_sysconfdir}/%{name}/forbidden_words.conf
%config(noreplace) %{_sysconfdir}/%{name}/ignored_words.conf
%config(noreplace) %{_sysconfdir}/%{name}/events.d/centos_report_event.conf
%config(noreplace) %{_sysconfdir}/%{name}/events/report_CentOSBugTracker.conf
%config(noreplace) %{_sysconfdir}/%{name}/events/report_Uploader.conf
%config(noreplace) %{_sysconfdir}/%{name}/libreport.conf
%config(noreplace) %{_sysconfdir}/%{name}/plugins/mantisbt.conf
%config(noreplace) %{_sysconfdir}/%{name}/plugins/mantisbt_format.conf
%config(noreplace) %{_sysconfdir}/%{name}/plugins/mantisbt_format_analyzer_libreport.conf
%config(noreplace) %{_sysconfdir}/%{name}/plugins/mantisbt_formatdup.conf
%config(noreplace) %{_sysconfdir}/%{name}/plugins/mantisbt_formatdup_analyzer_libreport.conf
%config(noreplace) %{_sysconfdir}/%{name}/workflows.d/report_centos.conf
%config(noreplace) %{_sysconfdir}/%{name}/workflows.d/report_uReport.conf
%{_datadir}/augeas/lenses/libreport.aug
%{_bindir}/reporter-mantisbt
%{_bindir}/reporter-systemd-journal
%dir %{_datadir}/libreport
%dir %{_datadir}/libreport/conf.d
%dir %{_datadir}/libreport/conf.d/plugins
%dir %{_datadir}/libreport/events
%dir %{_datadir}/libreport/workflows
%{_datadir}/libreport/conf.d/libreport.conf
%{_datadir}/libreport/conf.d/plugins/mantisbt.conf
%{_datadir}/libreport/events/report_CentOSBugTracker.xml
%{_datadir}/libreport/workflows/workflow_CentOSCCpp.xml
%{_datadir}/libreport/workflows/workflow_CentOSJava.xml
%{_datadir}/libreport/workflows/workflow_CentOSJavaScript.xml
%{_datadir}/libreport/workflows/workflow_CentOSKerneloops.xml
%{_datadir}/libreport/workflows/workflow_CentOSLibreport.xml
%{_datadir}/libreport/workflows/workflow_CentOSPython.xml
%{_datadir}/libreport/workflows/workflow_CentOSPython3.xml
%{_datadir}/libreport/workflows/workflow_CentOSVmcore.xml
%{_datadir}/libreport/workflows/workflow_CentOSXorg.xml
%{_datadir}/libreport/workflows/workflow_uReport.xml
%{_mandir}/man1/reporter-mantisbt.1.xz
%{_mandir}/man1/reporter-systemd-journal.1.xz
%{_mandir}/man5/centos_report_event.conf.5.xz
%{_mandir}/man5/libreport.conf.5.xz
%{_mandir}/man5/forbidden_words.conf.5*
%{_mandir}/man5/report_event.conf.5*
%{_mandir}/man5/ignored_words.conf.5*
%{_mandir}/man5/mantisbt.conf.5.xz
%{_mandir}/man5/mantisbt_format.conf.5.xz
%{_mandir}/man5/mantisbt_format_analyzer_libreport.conf.5.xz
%{_mandir}/man5/mantisbt_formatdup.conf.5.xz
%{_mandir}/man5/mantisbt_formatdup_analyzer_libreport.conf.5.xz
%{_mandir}/man5/report_CentOSBugTracker.conf.5.xz
%{_mandir}/man5/report_Uploader.conf.5.xz
%{_mandir}/man5/report_centos.conf.5.xz
%{_mandir}/man5/report_uReport.conf.5.xz
%{_mandir}/man5/upload.conf.5.xz

#--------------------------------------------------------------------

%define lib_major_web 1
%define libname_web %mklibname report-web %{lib_major_web}

%package -n %{libname_web}
Summary:	GTK front-end for libreport
Group:		System/Libraries

%description -n %{libname_web}
Applications for reporting bugs using libreport backend

%files -n %{libname_web}
%{_libdir}/libreport-web.so.%{lib_major_web}*

#--------------------------------------------------------------------

%define libname_web_devel %mklibname report-web -d

%package -n %{libname_web_devel}
Summary:	Development libraries and headers for libreport
Group:		Development/C
Requires:	%{libname_web} = %{EVRD}
Provides:	%{name}-web-devel = %{EVRD}
# (cg) The below require should be automatic, but due to the text .so files, it's not
Requires:	libxmlrpc-c-devel

%description -n %{libname_web_devel}
Development libraries and headers for libreport-gtk

%files -n %{libname_web_devel}
%{_libdir}/libreport-web.so
%{_libdir}/pkgconfig/libreport-web.pc

#--------------------------------------------------------------------

%define lib_major 1
%define libname %mklibname report %{lib_major}

%package -n %{libname}
Summary:	GTK front-end for libreport
Group:		System/Libraries

%description -n %{libname}
Applications for reporting bugs using libreport backend

%files -n %{libname}
%{_libdir}/libreport.so.%{lib_major}*

#--------------------------------------------------------------------

%package filesystem
Summary:	Filesystem layout for libreport
Group:		File tools

%description filesystem
Filesystem layout for libreport

%files filesystem
%dir %{_sysconfdir}/%{name}/
%dir %{_sysconfdir}/%{name}/events.d/
%dir %{_sysconfdir}/%{name}/events/
%dir %{_sysconfdir}/%{name}/plugins/

#--------------------------------------------------------------------

%define lib_name_devel %mklibname report -d

%package -n %{lib_name_devel}
Summary:	Development libraries and headers for libreport
Group:		Development/C
Requires:	libreport = %{EVRD}
Requires:	%{libname_web} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{lib_name_devel}
Development libraries and headers for libreport

%files -n %{lib_name_devel}
# Public api headers:
%{_includedir}/libreport/config_item_info.h
%{_includedir}/libreport/client.h
%{_includedir}/libreport/dump_dir.h
%{_includedir}/libreport/event_config.h
%{_includedir}/libreport/file_obj.h
%{_includedir}/libreport/problem_data.h
%{_includedir}/libreport/report.h
%{_includedir}/libreport/run_event.h
%{_includedir}/libreport/libreport_curl.h
%{_includedir}/libreport/libreport_types.h
%{_includedir}/libreport/workflow.h
%{_includedir}/libreport/xml_parser.h
%{_includedir}/libreport/problem_details_dialog.h
%{_includedir}/libreport/problem_details_widget.h
%{_includedir}/libreport/ureport.h
%{_includedir}/libreport/global_configuration.h
%{_includedir}/libreport/helpers/testsuite.h
%{_includedir}/libreport/helpers/testsuite_tools.h
%{_includedir}/libreport/problem_report.h
%{_includedir}/libreport/problem_utils.h
%{_includedir}/libreport/reporters.h
%{_includedir}/libreport/report_result.h

# Private api headers:
%{_includedir}/libreport/internal_libreport.h
%{_libdir}/libreport.so
%{_libdir}/pkgconfig/libreport.pc
%dir %{_includedir}/libreport
%dir %{_includedir}/libreport/helpers

#--------------------------------------------------------------------

%package -n	python3-%{name}
Summary:	Python3 bindings for report-libs
Group:		Development/Python
Requires:	libreport = %{EVRD}
Provides:	report = 0.23-1
Provides:	%{name}-python3 = %{EVRD}
Obsoletes:	report < 0.23-1

%description -n python3-%{name}
Python bindings for report-libs.

%files -n python3-%{name}
%{python3_sitearch}/report/
%{python3_sitearch}/reportclient/

#--------------------------------------------------------------------

%package cli
Summary:	%{name}'s command line interface
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}

%description cli
This package contains simple command line tool for working
with problem dump reports

%files cli
%{_bindir}/report-cli
%{_mandir}/man1/report-cli.1.*

#--------------------------------------------------------------------

%package newt
Summary:	%{name}'s newt interface
Group:		Graphical desktop/Other
Requires:	%{name} = %{EVRD}
Provides:	report-newt = 0.23-1
Obsoletes:	report-newt < 0.23-1

%description newt
This package contains a simple newt application for reporting
bugs

%files newt
%{_bindir}/report-newt
%{_mandir}/man1/report-newt.1.*

#--------------------------------------------------------------------

%package gtk
Summary:	GTK front-end for libreport
Group:		Graphical desktop/GNOME
Requires:	libreport = %{EVRD}
Provides:	report-gtk = 0.23-1
Obsoletes:	report-gtk < 0.23-1

%description gtk
Applications for reporting bugs using libreport backend

%files gtk
%{_bindir}/report-gtk
%{_mandir}/man1/report-gtk.1.*

#--------------------------------------------------------------------

%define lib_major_gtk 1
%define libname_gtk %mklibname report-gtk %{lib_major_gtk}

%package -n %{libname_gtk}
Summary:	GTK front-end for libreport
Group:		System/Libraries

%description -n %{libname_gtk}
Applications for reporting bugs using libreport backend

%files -n %{libname_gtk}
%{_libdir}/libreport-gtk.so.%{lib_major_gtk}*

#--------------------------------------------------------------------

%define lib_namegtk_devel %mklibname report-gtk -d

%package -n %{lib_namegtk_devel}
Summary:	Development libraries and headers for libreport
Group:		Development/GNOME and GTK+
Requires:	libreport-gtk = %{EVRD}
Requires:	%{libname_gtk} = %{EVRD}
Provides:	%{name}-gtk-devel = %{EVRD}

%description -n %{lib_namegtk_devel}
Development libraries and headers for libreport-gtk

%files -n %{lib_namegtk_devel}
%{_libdir}/libreport-gtk.so
%{_includedir}/libreport/internal_libreport_gtk.h
%{_libdir}/pkgconfig/libreport-gtk.pc

#--------------------------------------------------------------------

%package plugin-kerneloops
Summary:	%{name}'s kerneloops reporter plugin
Group:		System/Libraries
Requires:	curl
Requires:	%{name} = %{EVRD}

%description plugin-kerneloops
This package contains plugin which sends kernel crash information to specified
server, usually to kerneloops.org.

%files plugin-kerneloops
%{_datadir}/libreport/events/report_Kerneloops.xml
%{_mandir}/man*/reporter-kerneloops.*
%{_bindir}/reporter-kerneloops

#--------------------------------------------------------------------

%package plugin-logger
Summary:	%{name}'s logger reporter plugin
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Obsoletes:	abrt-plugin-logger < 2.0.4
Provides:	report-plugin-localsave = 0.23-1
Obsoletes:	report-plugin-localsave < 0.23-1
Provides:	report-config-localsave = 0.23-1
Obsoletes:	report-config-localsave < 0.23-1

%description plugin-logger
The simple reporter plugin which writes a report to a specified file.

%files plugin-logger
%{_sysconfdir}/libreport/events/report_Logger.conf
%{_datadir}/libreport/events/report_Logger.xml
%{_datadir}/libreport/workflows/workflow_Logger*.xml
%config(noreplace) %{_sysconfdir}/libreport/events.d/print_event.conf
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_logger.conf
%{_bindir}/reporter-print
%{_mandir}/man*/reporter-print.*
%{_mandir}/man*/report_Logger.conf.*
%{_mandir}/man*/print_event.conf.*
%{_mandir}/man*/report_logger.conf.*

#--------------------------------------------------------------------

%package plugin-mailx
Summary:	%{name}'s mailx reporter plugin
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	mailx
Obsoletes:	abrt-plugin-mailx < 2.0.4

%description plugin-mailx
The simple reporter plugin which sends a report via mailx to a specified
email address.

%files plugin-mailx
%{_datadir}/libreport/events/report_Mailx.xml
%config(noreplace) %{_sysconfdir}/libreport/plugins/mailx.conf
%config(noreplace) %{_sysconfdir}/libreport/events.d/mailx_event.conf
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_mailx.conf
%{_datadir}/libreport/conf.d/plugins/mailx.conf
%{_datadir}/libreport/workflows/workflow_Mailx*.xml
%{_mandir}/man*/mailx.conf.*
%{_mandir}/man*/mailx_event.conf.*
%{_mandir}/man*/report_mailx.conf.*
%{_mandir}/man*/reporter-mailx.*
%{_bindir}/reporter-mailx

#--------------------------------------------------------------------

%package plugin-bugzilla
Summary:	%{name}'s bugzilla plugin
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Obsoletes:	abrt-plugin-bugzilla < 2.0.4
Provides:	report-plugin-bugzilla = 0.23-1
Obsoletes:	report-plugin-bugzilla < 0.23-1
Provides:	report-config-bugzilla-redhat-com = 0.23-1
Obsoletes:	report-config-bugzilla-redhat-com < 0.23-1

%description plugin-bugzilla
Plugin to report bugs into the bugzilla.

%files plugin-bugzilla
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_analyzer_libreport.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_kernel.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_analyzer_libreport.conf
%{_datadir}/libreport/events/report_Bugzilla.xml
%{_datadir}/libreport/events/watch_Bugzilla.xml
%{_datadir}/libreport/conf.d/plugins/bugzilla.conf
%config(noreplace) %{_sysconfdir}/libreport/events/report_Bugzilla.conf
%config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_event.conf
# FIXME: remove with the old gui
%{_mandir}/man1/reporter-bugzilla.1.*
%{_mandir}/man5/bugzilla.conf.5.*
%{_mandir}/man5/bugzilla_event.conf.5.*
%{_mandir}/man5/bugzilla_format.conf.5.*
%{_mandir}/man5/bugzilla_format_analyzer_libreport.conf.*
%{_mandir}/man5/bugzilla_format_kernel.conf.5.*
%{_mandir}/man5/bugzilla_formatdup.conf.5.*
%{_mandir}/man5/bugzilla_formatdup_analyzer_libreport.conf.5.*
%{_mandir}/man5/report_Bugzilla.conf.*
%{_bindir}/reporter-bugzilla

#--------------------------------------------------------------------

%package plugin-ureport
Summary:	%{name}'s micro report plugin
BuildRequires:	json-c-devel
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description plugin-ureport
Uploads micro-report to abrt server

%files plugin-ureport
%{_datadir}/libreport/events/report_uReport.xml
%{_bindir}/reporter-ureport
%{_mandir}/man1/reporter-ureport.1.*
%{_mandir}/man5/ureport.conf.5.*
%{_datadir}/libreport/conf.d/plugins/ureport.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/ureport.conf

#--------------------------------------------------------------------

%package plugin-reportuploader
Summary:	%{name}'s reportuploader plugin
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Obsoletes:	abrt-plugin-reportuploader < 2.0.4
Provides:	report-plugin-ftp = 0.23-1
Obsoletes:	report-plugin-ftp < 0.23-1
Provides:	report-config-ftp = 0.23-1
Obsoletes:	report-config-ftp < 0.23-1
Provides:	report-plugin-scp = 0.23-1
Obsoletes:	report-plugin-scp < 0.23-1
Provides:	report-config-scp = 0.23-1
Obsoletes:	report-config-scp < 0.23-1

%description plugin-reportuploader
Plugin to report bugs into anonymous FTP site associated with ticketing system.

%files plugin-reportuploader
%{_mandir}/man*/reporter-upload.*
%{_mandir}/man*/uploader_event.conf.*
%{_mandir}/man*/report_uploader.conf.*
%{_bindir}/reporter-upload
%{_datadir}/libreport/events/report_Uploader.xml
%{_datadir}/libreport/conf.d/plugins/upload.conf
%{_datadir}/libreport/workflows/workflow_Upload*.xml
%config(noreplace) %{_sysconfdir}/libreport/events.d/uploader_event.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/upload.conf
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/report_uploader.conf

#--------------------------------------------------------------------

%package anaconda
Summary: Default configuration for reporting anaconda bugs
Requires: %{name} = %{EVRD}

%description anaconda
Default configuration for reporting Anaconda problems or uploading the gathered
data over ftp/scp...

%files anaconda
%{_datadir}/%{name}/workflows/workflow_AnacondaUpload.xml
%config(noreplace) %{_sysconfdir}/libreport/workflows.d/anaconda_event.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_format_anaconda.conf
%config(noreplace) %{_sysconfdir}/libreport/plugins/bugzilla_formatdup_anaconda.conf
%config(noreplace) %{_sysconfdir}/libreport/events.d/bugzilla_anaconda_event.conf
%{_mandir}/man5/anaconda_event.conf*
%{_mandir}/man5/bugzilla_anaconda_event.conf*
%{_mandir}/man5/bugzilla_format_anaconda.conf*
%{_mandir}/man5/bugzilla_formatdup_anaconda.conf*

#--------------------------------------------------------------------

%prep
%autosetup -p1

#sed -i -e 's!-Werror!-Wno-deprecated!' configure{.ac,} */*/Makefile*
perl -pi -e 's|bugzilla.redhat.com|bugzilla.rosalinux.ru/|g' src/plugins/report_Bugzilla.xml{,.in} src/plugins/bugzilla.conf

[ -e autogen.sh ] && ./autogen.sh

%define Werror_cflags %nil
#autoreconf -fi
#intltoolize -f

%build
%configure

%make CFLAGS="%{optflags} -fno-strict-aliasing"

%install
%makeinstall_std mandir=%{_mandir}
%find_lang %{name}

mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/events.d/
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/events/

# After everything is installed, remove info dir
rm -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_sysconfdir}/libreport/plugins/rhtsupport.conf
rm -f %{buildroot}%{_datadir}/libreport/events/report_EmergencyAnalysis.xml
rm -f %{buildroot}%{_sysconfdir}/libreport/events.d/rhtsupport_event.conf
rm -f %{buildroot}%{_sysconfdir}/libreport/events.d/emergencyanalysis_event.conf
rm -f %{buildroot}%{_mandir}/man1/reporter-rhtsupport.1.*
rm -f %{buildroot}%{_mandir}/man5/emergencyanalysis_event.conf*
rm -f %{buildroot}%{_mandir}/man5/rhtsupport.conf*
rm -f %{buildroot}%{_mandir}/man5/rhtsupport_event.conf*
rm -f %{buildroot}%{_mandir}/man5/report_fedora.conf*
rm -f %{buildroot}%{_mandir}/man5/report_rhel.conf*
rm -f %{buildroot}%{_mandir}/man5/report_rhel_bugzilla.conf*
rm -f %{buildroot}%{_bindir}/reporter-rhtsupport
rm -f %{buildroot}%{_datadir}/dbus-1/interfaces/*rhtsupport*.xml
rm -f %{buildroot}%{_datadir}/libreport/workflows/workflow*{Fedora,RHEL}*.xml
rm -f %{buildroot}%{_sysconfdir}/libreport/workflows.d/report_fedora.conf
rm -f %{buildroot}%{_sysconfdir}/libreport/workflows.d/report_rhel.conf
rm -f %{buildroot}%{_sysconfdir}/libreport/workflows.d/report_rhel_bugzilla.conf
rm -f %{buildroot}%{_datadir}/libreport/conf.d/plugins/rhtsupport.conf
find %{buildroot} -name *rhtsupport* -exec rm {} \;

%if %{_with_tests}
%check
make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14307 |21mr|librepository-1.1.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Hierarchical repository abstraction layer
Name:		librepository
Version:	1.1.6
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		http://reporting.pentaho.org/
Source0:	http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.zip
Patch0:	%{name}-1.1.2-fix-build.patch
BuildRequires:	ant
BuildRequires:	ant-contrib
BuildRequires:	java-devel
BuildRequires:	java-rpmbuild
BuildRequires:	jpackage-utils
BuildRequires:	libbase
Requires:	javapackages-filesystem
Requires:	libbase
# java stack not avail on i686
ExcludeArch:	%{ix86}

%description
LibRepository provides a simple abstraction layer to access bulk content that
is organized in a hierarchical layer.

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java
Requires:	%{name} = %{version}-%{release}
Requires:	jpackage-utils

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
%patch0 -p0
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib commons-logging-api libbase
cd lib
ln -s %{_javadir}/ant ant-contrib

%build
ant jar javadoc
for file in README.txt licence-LGPL.txt ChangeLog.txt; do
    tr -d '\r' < $file > $file.new
    mv $file.new $file
done

%install
mkdir -p %{buildroot}%{_javadir}
cp -p ./dist/%{name}-%{version}.jar %{buildroot}%{_javadir}
pushd %{buildroot}%{_javadir}
ln -s %{name}-%{version}.jar %{name}.jar
popd

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp bin/javadoc/docs/api %{buildroot}%{_javadocdir}/%{name}

%files
%doc licence-LGPL.txt README.txt ChangeLog.txt
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar

%files javadoc
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14308 |21mr|libresample-0.1.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define libname %mklibname resample %{major}
%define develname %mklibname -d resample

Summary:	A real-time library for sampling rate conversion
Name:		libresample
Version:	0.1.3
Release:	15
License:	LGPL
Group:		System/Libraries
URL:		http://www-ccrma.stanford.edu/~jos/resample/Available_Software.html
Source0:	http://ccrma.stanford.edu/~jos/resample/%{name}-%{version}.tgz
Patch0:		libresample-shared.diff
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	libtool

%description
libresample is a real-time library for sampling rate conversion.

%package	tools
Summary:	Various tools using the libresample library
Group:          Sound

%description	tools
libresample is a real-time library for sampling rate conversion.

This package contains various tools that uses the libresample library.

 * compareresample
 * resample-sndfile
 * testresample

%package -n	%{libname}
Summary:	A real-time library for sampling rate conversion
Group:          System/Libraries

%description -n	%{libname}
libresample is a real-time library for sampling rate conversion.

%package -n	%{develname}
Summary:	Static library and header files for the libevent library
Group:		Development/C
Provides:	resample-devel = %{version}-%{release}
Provides:	libresample-devel = %{version}-%{release}
Requires:	%{libname} = %{version}

%description -n	%{develname}
libresample is a real-time library for sampling rate conversion.

This package contains the static libresample library and its header files.

%prep

%setup -q -n %{name}-%{version}
%patch0 -p0

%build
export CC="%{__cc}"
export CFLAGS="%{optflags} -fPIC"

%configure
%make

%install
rm -rf %{buildroot}

%makeinstall_std

%if %mdkversion < 200900
%post -n %{libname} -p /sbin/ldconfig
%endif

%if %mdkversion < 200900
%postun -n %{libname} -p /sbin/ldconfig
%endif

%clean
rm -rf %{buildroot}

%files tools
%defattr(-,root,root)
%{_bindir}/compareresample
%{_bindir}/resample-sndfile
%{_bindir}/testresample

%files -n %{libname}
%defattr(-,root,root)
%doc LICENSE.txt README.txt
%{_libdir}/*.so.*

%files -n %{develname}
%defattr(-,root,root)
%{_includedir}/*
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14309 |21mr|libressl-3.2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Initial purpose of packaging LibreSSL was the need to have a handy
# tool to work with GOST keys easily (LibreSSL has GOSTs out of the box).
# netcat-openbsd is now also packaged here.
# LibreSSL is a fork of OpenSSL and has same libraries, binaries
# and fucntions names, that is why it cannot coexist with OpenSSL
# easily and is packages to a separate prefix here.
# Remember some directories before changing %%_prefix, o - original
%define _oprefix /usr
%define _obindir %{_oprefix}/bin
%define _omandir %{_oprefix}/share/man
%define _olibdir %{_oprefix}/%{_lib}
# We need to override macros set in platform
%define _prefix /opt/libressl
%define _bindir %{_prefix}/bin
%define _includedir %{_prefix}/include
%define _libdir %{_prefix}/lib
%define _libexecdir %{_prefix}/libexec
%define _datadir %{_prefix}/share
%define _mandir %{_datadir}/man
# Keep package docs in normal locations
%define _defaultdocdir %{_oprefix}/share/doc
# RPM 4 by default looks for *.pc in %%_libdir which is redefined
%global __pkgconfig_path ^(%{_olibdir}/pkgconfig/.*\\.pc|%{_obindir}/pkg-config)$
# Make RPM mark files in both %%_mandir and %%_omandir as docs (RPM4-only)
%global __docdir_path %{__docdir_path}:%{_omandir}
# Disable /usr/share/spec-helper/relink_symlinks
# to make sure that symlinks are not broken
%define dont_relink 1
# Manually control RPATHs
%define dont_remove_rpath 1
# If man pages compression is not set up, skip it
%{?!_compress:%define _compress /bin/true}
%{?!_extension:%define _extension .xz}

# Ideas behind this package are the following:
# - libressl-devel must provide pkgconfig(libressl*)
# - libressl-devel must not provide pkgconfig(openssl),
#   pkgconfig(libtls), pkgconfig(libcrypto), pkgconfig(libssl)
#   to prevent conflicts with OpenSSL
# - packages netcat-openbsd, ocspcheck, libressl are intended to
#   comply with FHS, so libtls.so.*, libcrypto.so.* and libssl.so.*
#   are packaged into separate packages, RPATHs are removed and
#   /usr/bin/* must depend from separate libs packages and will
#   use /usr/lib(64)/lib*.so.*
# - there are no per-library devel packages, only one libressl-devel
#   with symlinks /opt/libressl/lib/*.so -> /usr/lib(64)/*.so.*
# - not FHS-compilant /opt is used only for devel package to allow
#   coinstallability with OpenSSL devel packages
# // mikhailnov, 03.12.2019
# We rename e.g. libtls.pc to libressl-tls.pc, make sure that we do not
# get odd provides and break the repository if forgot to rename something.
# Filter out provides like 'devel(libcrypto(64bit))' (they are in OpenSSL).
%global __provides_exclude \
'.*openssl.*|pkgconfig\\(lib(tls|crypto|ssl)\\)|devel\\(lib(tls|crypto|ssl).*\\).*'

%define libcrypto_sover 46
%define libssl_sover 48
%define libtls_sover 20
%define libssl_pkg %mklibname ssl_libressl %{libssl_sover}
%define libcrypto_pkg %mklibname crypto_libressl %{libcrypto_sover}
%define libtls_pkg %mklibname tls_libressl %{libtls_sover}

# parent commit of https://github.com/libressl-portable/openbsd/commit/a177033
# from which v3.2.0 is tagged
%define commit_openbsd 768c7156952b7df8245172586ca8c4c37d599a47
# https://github.com/libressl-portable/portable is tagged correctly,
# but lets also build from commit for consistency
%define commit_portable 44a6a2397fb9b8d6868ef73d51e6ef79c39b0322

%define _default_patch_fuzz 3
%define config_update %{nil}

# TODO: fix it, introduced by patches from gost-new
%define _disable_ld_no_undefined 1

Summary:		LibreSSL utils and libs coexisting with OpenSSL
Name:			libressl
Version:		3.2.0
Release:		8
# The code is distributed under ISC license except of original OpenSSL code
License:		ISC and BSD-like
Group:			System/Base
Url:			http://libressl.org
#Source0:		https://ftp.openbsd.org/pub/OpenBSD/LibreSSL/libressl-%{version}.tar.gz
Source0:		https://github.com/libressl-portable/portable/archive/%{commit_portable}.tar.gz?/libressl-portable-%{commit_portable}.tar.gz
Source1:		https://github.com/libressl-portable/openbsd/archive/%{commit_openbsd}.tar.gz?/libressl-openbsd-%{commit_openbsd}.tar.gz
Source10:		libressl.rpmlintrc

# Patches for openbsd tree are also commited here:
# https://github.com/mikhailnov/libressl-openbsd/commits/rosa-v3.2.0

# ROSA patch, TODO: add printing config location to `openssl version`
Patch0001: 0001-Allow-custom-config-location.patch

# Support of GOST 2015 and other fixes by lumag@, sponsored by ROSA Linux
# Поддержка TLS 1.2 CNT-IMIT и CTR-OMAC в соответствии с Р 1323565.1.020-2018 и
# draft-smyshlyaev-tls12-gost-suites.
# - Блочные шифры Магма, Кузнечик по ГОСТ Р 34.12-2015.
# - Режимы блочных шифров по ГОСТ Р 34.13-2015
# - Режим CTR-ACPKM по Р 1323565.1.017-2018
# - Режим MGM по Р 13235651.026-2019
# - Формат ключей по Р 1323565.1.023-2018
# - Параметры эллиптических кривых по Р 1323565.1.024-2019
# - Поддержка файлов CMS и PKCS7 по RFC 4490 (в режиме KeyTransport)
# - Поддержка файлов CMS и PKCS7 по Р 1323565.1.025-2019 (кроме режима KEK)
# - Поддержка файлов PKCS#8/PKCS#12 по Р 50.1.112-2016.
# - Поддержка криптонаборов TLS 1.2 по Р 1323565.1.020-2018
# Для поддержки криптонаборов TLS 1.3 с точки зрения ГОСТ все готово,
# поддержка TLS 1.3 в самом LibreSSL пока находится в процессе разработки.
# In process of upstreamization which is going not easily...
# git clone https://github.com/GostCrypt/libressl-openbsd.git -b gost-new
# cd libressl-openbsd
# git format-patch -64 --start-number=101
# ( for i in 01*.patch ; do echo Patch$(echo $i | awk -F '-' '{print $1}'): $i ; done ) | sort -h
# cherry-picked from upstream after v3.2.0 and gost-new
Patch0002: 0002-Remove-expired-certificate-ok-tb.patch
Patch0003: 0003-Properly-document-PKCS7_final-3-which-was-already-me.patch
Patch0004: 0004-distracting-whitespace.patch
Patch0005: 0005-new-manual-page-PKCS7_add_attribute-3.patch
Patch0006: 0006-mention-that-TLS_method-3-also-supports-TLSv1.3.patch
Patch0007: 0007-minor-polishing.patch
Patch0008: 0008-Apply-some-style-9.patch
Patch0009: 0009-Add-support-for-additional-GOST-curves.patch
Patch0010: 0010-Add-a-few-more-errors-to-help-debugging.patch
Patch0011: 0011-Add-OIDs-for-HMAC-using-Streebog-GOST-R-34.11-2012-h.patch
Patch0012: 0012-Allow-GOST-R-34.11-2012-in-PBE-PBKDF2-PKCS-5.patch
Patch0013: 0013-Enable-GOST_SIG_FORMAT_RS_LE-when-verifying-certific.patch
Patch0014: 0014-Handle-GOST-in-ssl_cert_dup.patch
Patch0015: 0015-Stop-sending-GOST-R-34.10-94-as-a-CertificateType.patch
Patch0016: 0016-Use-IANA-allocated-GOST-ClientCertificateTypes.patch
Patch0017: 0017-Add-a-custom-copy-handler-for-AES-key-wrap.patch
Patch0018: 0018-document-PKCS7_get_signer_info-3.patch
Patch0019: 0019-wording-tweaks-from-ross-l-richardson-and-tb.patch
Patch0020: 0020-document-PEM_ASN1_read-3-and-PEM_ASN1_read_bio-3.patch
Patch0021: 0021-add-a-comment-saying-that-name_cmp-is-intentionally-.patch
Patch0022: 0022-add-my-Copyright-and-license-which-i-forgot-when-add.patch
Patch0023: 0023-Document-PEM_def_callback-3.patch
Patch0024: 0024-Document-EVP_read_pw_string_min-3.patch
Patch0025: 0025-gost-populate-params-tables-with-new-curves.patch
Patch0026: 0026-gost-use-ECerror-to-report-EC-errors.patch
Patch0027: 0027-gost-support-new-PublicKeyParameters-format.patch
Patch0028: 0028-gostr341001-support-unwrapped-private-keys-support.patch
Patch0029: 0029-pkcs12-add-support-for-GOST-PFX-files.patch
Patch0030: 0030-modes-add-functions-implementing-common-code-for-64-.patch
Patch0031: 0031-gost-drop-key_len-from-Gost28147_set_key.patch
Patch0032: 0032-gost-use-key_meshing-for-specifying-section-size.patch
Patch0033: 0033-gost-add-support-for-magma-cipher.patch
Patch0034: 0034-gost-add-support-for-kuznyechik-cipher.patch
Patch0035: 0035-kuznyechik-fix-IV-handling-for-CTR-mode.patch
Patch0036: 0036-magma-fix-IV-handling-for-CTR-mode.patch
Patch0037: 0037-gost-add-support-for-ACPKM-rekeying.patch
Patch0038: 0038-gost-add-support-for-GOST-34.12-Magma-Kuznyechik-enc.patch
Patch0039: 0039-gost-add-support-for-magma-ctr-acpkm-mode.patch
Patch0040: 0040-gost-add-support-for-kuznyechik-ctr-acpkm-mode.patch
Patch0041: 0041-kdftree-add-functions-implementing-KDF_TREE-function.patch
Patch0042: 0042-gost-add-support-for-new-GOST-key-transport-data-for.patch
Patch0043: 0043-modes-add-support-for-128-bit-MGM-mode.patch
Patch0044: 0044-modes-add-support-for-64-bit-MGM-mode.patch
Patch0045: 0045-gost-add-kuznyechik-mgm-support.patch
Patch0046: 0046-gost-add-magma-mgm-support.patch
Patch0047: 0047-regress-evp-add-simple-test-for-AEAD-ciphers.patch
Patch0048: 0048-evp-add-EVP_CIPHER-interface-for-kuznyechik-mgm.patch
Patch0049: 0049-evp-add-EVP_CIPHER-interface-for-magma-mgm.patch
Patch0050: 0050-evp-add-support-for-Kuznyechik-ctr-acpkm-omac-cipher.patch
Patch0051: 0051-evp-add-support-for-Magma-ctr-acpkm-omac-cipher.patch
Patch0052: 0052-gost-restore-CMS-support.patch
Patch0053: 0053-gost-add-support-for-CMS-and-SMIME-enveloped-files.patch
Patch0054: 0054-cms-add-support-for-using-AEAD-ciphers-in-CMS-files.patch
Patch0055: 0055-cms-populate-SMIMECaps-with-new-GOST-algorithms.patch
Patch0056: 0056-cms-allow-keys-support-different-RI-types.patch
Patch0057: 0057-evp-support-kuznyechik-kexp15-keywrap-algorithm.patch
Patch0058: 0058-evp-support-magma-kexp15-keywrap-algorithm.patch
Patch0059: 0059-gost-support-specifying-old-or-new-KEG-derivation-fo.patch
Patch0060: 0060-cms-add-support-for-setting-KeyAgreement-UKM.patch
Patch0061: 0061-cms-select-proper-cipher-for-GOST-KeyAgreeement.patch
Patch0062: 0062-cms-specify-originator-key-for-KeyAgreement-decoding.patch
Patch0063: 0063-cms-support-specifying-originator-certificate-and-ke.patch
Patch0064: 0064-gost-add-support-for-decoding-KeyAgreement-CMS-files.patch
Patch0065: 0065-cms-autoguess-preferred-RecipientInfo-type.patch
Patch0066: 0066-Fix-S-Box-used-for-CipherKeyExchange-message-in-GOST.patch
Patch0067: 0067-gost-pmeth-check-that-result-of-data-encryption-woul.patch
Patch0068: 0068-ssl_sigalgs-select-proper-default-algorithm-for-GOST.patch
Patch0069: 0069-ssl-add-support-for-IANA-allocated-GOST-sigalgs-valu.patch
Patch0070: 0070-ssl-provide-interoperability-with-CryptoPro-CSP.patch
Patch0071: 0071-ssl-do-not-send-GOST-94-certificate-type.patch
Patch0072: 0072-ssl-add-support-for-new-GOST-CNT-IMIT-ciphersuite-va.patch
Patch0073: 0073-evp-add-EVP_PKEY_new_CMAC_key-function.patch
Patch0074: 0074-evp-fix-sign-verify-for-EVP_PKEY_CMAC-keys.patch
Patch0075: 0075-evp-fix-EVP_MD_CTX_copy_ex-for-CMAC-contexts.patch
Patch0076: 0076-objects-add-id-for-gost-kdf-key-exchange-for-CTR-OMA.patch
Patch0077: 0077-ssl-add-defines-for-GOST-CTR-OMAC-ciphersuites.patch
Patch0078: 0078-ssl-add-support-for-GOST-KDF-key-exchange.patch
Patch0079: 0079-ssl-support-selecting-CMAC-for-CTR-OMAC-ciphersuites.patch
Patch0080: 0080-ssl-select-ACPKM-session-size-for-CTR-OMAC-ciphersui.patch
Patch0081: 0081-ssl-fix-Finished-message-length-for-CTR-OMAC-ciphers.patch
Patch0082: 0082-ssl-fix-CMAC-support.patch
Patch0083: 0083-ssl-merge-read-and-write-sequence-secrets-into-commo.patch
Patch0084: 0084-ssl-drop-mac_flags-field.patch
Patch0085: 0085-ssl-support-IV-increments-for-GOST-CTR-OMAC-ciphersu.patch
Patch0086: 0086-kdftree-add-support-for-TLSTREE-rekeying-algorithm.patch
Patch0087: 0087-ssl-add-support-for-TLSTREE-rekeying.patch
# https://www.opennet.ru/opennews/art.shtml?num=54233
# https://github.com/libressl-portable/openbsd/commit/f22d7684aed13a9ae9ea6554b7a3e52fdfa4f193
# From LibreSSL 3.2.3
Patch0088: 0088-CVE-2020-1971.patch
# https://www.opennet.ru/opennews/art.shtml?num=55683
# https://github.com/libressl-portable/openbsd/commit/89d74f9b9c8c0b042e81aecb6c286253a51659d8
# From LibreSSL 3.2.6
Patch0089: 0089-CVE-2021-3712.patch

# TODO:
# https://www.opennet.ru/opennews/art.shtml?num=54774
# https://github.com/libressl-portable/openbsd/commit/5f00b800749f246861e892a17d9012bd25fc06ba (LibreSSL 3.2.5)
# Code is different in our version, investigation if backport is required is required.

# Patches for portable, from lumag@
# ( for i in *PORTABLE*.patch ; do echo Patch$(echo $i | awk -F '-' '{print $2}'): $i ; done ) | sed -e 's,^Patch0,Patch2,g' | sort -h
# These patches for portable tree extend patches above for openbsd tree
# and have the same numbers
Patch2030: PORTABLE-0030-modes-add-functions-implementing-common-code-for-64-.patch
Patch2033: PORTABLE-0033-gost-add-support-for-magma-cipher.patch
Patch2034: PORTABLE-0034-gost-add-support-for-kuznyechik-cipher.patch
Patch2041: PORTABLE-0041-kdftree-add-functions-implementing-KDF_TREE-function.patch
Patch2042: PORTABLE-0042-gost-add-support-for-new-GOST-key-transport-data-for.patch
Patch2043: PORTABLE-0043-modes-add-support-for-128-bit-MGM-mode.patch
Patch2044: PORTABLE-0044-modes-add-support-for-64-bit-MGM-mode.patch
Patch2086: PORTABLE-0086-kdftree-add-support-for-TLSTREE-rekeying-algorithm.patch
Patch2100: PORTABLE-0100-fixup-build.patch
# If both openssl and libressl libraries are loaded into one runtime,
# versioning their symbols will or may allow them to coexist
Patch2200: PORTABLE-2200-SUSE-extra-symver.patch

# From https://www.mitchr.me/SS/exampleCode/openssl.html
Source20:		test.c
Source22:		test2.c
# From import/openssl, originates from Fedora
Source25:		test5.c
# From Linux kernel 5.3.15, scripts/sign-file.c
Source29:		test9.c
# To get %%_openssldir and for %%check
BuildRequires:	openssl-devel
BuildRequires:	pkgconfig(zlib)
#BuildRequires(check)
BuildRequires:	gostsum
# readelf <...> | <...>
BuildRequires:	binutils grep gawk
BuildRequires:	chrpath
# This LibreSSL uses /etc/pki/tls from system OpenSSL
# but most functions will work without its files
Recommends:	openssl

%description
LibreSSL utils and libs coexisting with OpenSSL.
GOST is supported out of the box.

%files
%doc ChangeLog COPYING
# %%_bindir here is /opt/libressl/bin
# %%_obindir is /usr/bin
# %%_mandir is /opt/libressl/share/man
# %%_omandir is /usr/share/man
%{_obindir}/libressl
%config(noreplace) %{_openssldir}/libressl.cnf
%config(noreplace) %{_openssldir}/x509v3.cnf
%{_omandir}/*/*
%exclude %{_omandir}/man3/*
%exclude %{_omandir}/*/nc.*
%exclude %{_omandir}/*/netcat.*
%exclude %{_omandir}/*/ocspcheck.*
#-------------------------------------------------------------------------------------

%package -n %{libcrypto_pkg}
Summary:	libcrypto library from LibreSSL
Group:		System/Libraries

%description -n %{libcrypto_pkg}
libcrypto library from LibreSSL

%files -n %{libcrypto_pkg}
%{_olibdir}/libcrypto.so.%{libcrypto_sover}*
#-------------------------------------------------------------------------------------

%package -n %{libssl_pkg}
Summary:	libssl library from LibreSSL
Group:		System/Libraries

%description -n %{libssl_pkg}
libssl library from LibreSSL

%files -n %{libssl_pkg}
%{_olibdir}/libssl.so.%{libssl_sover}*
#-------------------------------------------------------------------------------------

%package -n %{libtls_pkg}
Summary:	libtls library from LibreSSL
Group:		System/Libraries

%description -n %{libtls_pkg}
libtls library from LibreSSL

%files -n %{libtls_pkg}
%{_olibdir}/libtls.so.%{libtls_sover}*
#-------------------------------------------------------------------------------------

%package devel
Summary:		LibreSSL devel package
Group:			Development/C
Requires:		%{name} = %{EVRD}
# symlinks /opt/libressl/lib/*.so.* -> /usr/lib(64)/*.so.*
Requires:		%{libcrypto_pkg} = %{EVRD}
Requires:		%{libtls_pkg} = %{EVRD}
Requires:		%{libssl_pkg} = %{EVRD}
# Add provides to pull this package by common devel names
Provides:		%{mklibname crypto_libressl -d} = %{EVRD}
Provides:		%{mklibname tls_libressl -d} = %{EVRD}
Provides:		%{mklibname ssl_libressl -d} = %{EVRD}
# Automatic provides like 'devel(libcrypto(64bit))' are blocked by
# filters to prevent conflicts with OpenSSL
# devel(libfoo) are RPM_VENDOR_MANDRIVA-specific in RPM 5
# TODO: probably no real need in emulating devel(libfoo)
%if 0%{?mdvver}
%if "%{?_lib}" == "lib64"
%define b64 (64bit)
%else
%define b64 %{nil}
%endif
Provides:		devel(libressl-libtls%{b64})
Provides:		devel(libressl-libcrypto%{b64})
Provides:		devel(libressl-libssl%{b64})
%endif

%description devel
LibreSSL devel package. Devel libraries are in %{_libdir},
runtime librararies are in %{_olibdir},
pkg-config sets -I%{_libdir} in CFLAGS.

%files devel
%doc ChangeLog COPYING
%{_libdir}/*.so
# symlinks to %%{_olibdir}/*.so.*, only for devel package
%{_libdir}/*.so.*
%{_olibdir}/pkgconfig/*.pc
%{_includedir}
%{_mandir}/*/*
%{_omandir}/man3/*
%{_rpmmacrodir}/*libressl*
#-------------------------------------------------------------------------------------

%package -n ocspcheck
Summary:		Utility to validate certificates
Group:			System/Base

%description -n ocspcheck
Utility to validate a certificate against its OCSP responder and
save the reply for stapling

%files -n ocspcheck
%doc ChangeLog COPYING
%{_obindir}/ocspcheck
%{_omandir}/man*/ocspcheck.*
#-------------------------------------------------------------------------------------

%package -n netcat-openbsd
Summary:		Reads and writes data across network connections using TCP or UDP
Group:			System/Base
Conflicts:		netcat < 1.0
Conflicts:		netcat-traditional
Conflicts:		netcat-gnu
# netcat-openbsd 1.89 was imported from Mandriva in 2012 and now, in 2019, is replaced
#Obsoletes:		netcat-openbsd < 1.89.1
Provides:		netcat-tls = %{EVRD}
Provides:		netcat-libressl = %{EVRD}
Provides:		nc = %{EVRD}
# Provide "netcat" to satisfy deps of packages which require _any_
# implementation of netcat.
# But make this netcat the default one, so,
# while other packages provide "netcat = 1.0",
# provide a higher version here to make this package
# the default candidate to be installed as "netcat".
%if %{mdvver} > 201610
Provides:		netcat = %{EVRD}
# other netcats were removed due to their upstreams being dead
Obsoletes:		netcat-gnu < 0.7.2
Obsoletes:		netcat-traditional < 111
%else
# keep old default in rosa2016.1
Provides:		netcat = 1.0
%endif

%description -n netcat-openbsd
The nc package contains Netcat (the program is actually nc), a simple
utility for reading and writing data across network connections, using
the TCP or UDP protocols. Netcat is intended to be a reliable back-end
tool which can be used directly or easily driven by other programs and
scripts.  Netcat is also a feature-rich network debugging and
exploration tool, since it can create many different connections and
has many built-in capabilities.

You may want to install the netcat package if you are administering a
network and you'd like to use its debugging and network exploration
capabilities.

%files -n netcat-openbsd
%doc ChangeLog COPYING
%{_obindir}/nc
%{_obindir}/netcat
%{_omandir}/man*/nc.*
%{_omandir}/man*/netcat.*
#-------------------------------------------------------------------------------------

%prep
%setup -q -n portable-%{commit_portable} -a1
# Emulating creation of release tarball...
mv openbsd-%{commit_openbsd} openbsd
( cd openbsd
# First apply patches and then run a script which will copy files etc.
for i in $(echo "%patches" | sed -e 's,[[:space:]],\n,g' | grep -v '/PORTABLE\-' | sort -h); do
	echo "Applying openbsd patch $i"
	patch -p1 < "$i"
done
)
sed -i -e 's,git ,true ,g' update.sh
sed -i -e 's,./update.sh,sh -x ./update.sh,g' autogen.sh
sh -x ./autogen.sh | tee autogen0.log
# Protection against incorrect updates, e.g. by updates_tracker
grep -q "^LibreSSL version %{version}$" autogen0.log
rm -f autogen0.log

# Now apply patches on top of portable edition after all files have been generated
for i in $(echo "%patches" | sed -e 's,[[:space:]],\n,g' | grep '/PORTABLE\-' | sort -h); do
	echo "Applying portable patch $i"
	patch -p1 < "$i"
done

# Rerun after patching
sh -x update.sh

%build
%setup_compile_flags
%serverbuild
# Use the same %%_openssl dir with OpenSSL, but separate the config
# (note that we patch libressl, X509_CONF_FILE is not upstream)
export CFLAGS="$CFLAGS -DX509_CONF_FILE='\"%{_openssldir}/libressl.cnf\"'"
#autoreconf -if #Source21
# static libs are required for tests target in Makefile
cp -fv /usr/share/libtool/config/config.* .
%configure \
	--enable-nc \
	--enable-static \
	--with-openssldir=%{_openssldir}
%make_build

%install
set +f # explicitly enable shell globbing

%make_install

# Some ideas about mans are from ALT Linux spec
install -m 0644 apps/nc/nc.1 %{buildroot}%{_mandir}/man1/nc.1
install -m 0644 apps/nc/nc.1 %{buildroot}%{_mandir}/man1/netcat.1
mkdir -p %{buildroot}%{_mandir}/man8/
install -m 0644 apps/ocspcheck/ocspcheck.8 %{buildroot}%{_mandir}/man8/ocspcheck.8
for i in $(seq 1 8)
do
  man_dir="%{buildroot}%{_mandir}/man${i}"
  if [ ! -d "$man_dir" ]; then continue; fi
  ( cd "$man_dir"
    grep -Irl '/etc/ssl' . | xargs sed -i 's,/etc/ssl,%{_openssldir},g' || :
    if find . -name 'libressl_*' | grep -q '.' ; then
      echo 'Rewrite spec because upstream libressl_* manpages appeared!'
      exit 1
    fi
    # Make all man pages with potentially the same names as in OpenSSL
    # be avaialble in standard man directories, but prevent conflicts with OpenSSL
    for openssl_manpage in $(ls -1v | grep -vE '^LIBRESSL_|^netcat|^nc|^ocspcheck|^openssl\.') ; do
      openssl_LibreSSL_manpage="libressl_${openssl_manpage}"
      cp -v "$openssl_manpage" "$openssl_LibreSSL_manpage"
    done
    for openssl_manpage in $(ls -1v | grep '^openssl\.') ; do
      openssl_LibreSSL_manpage="$(echo "$openssl_manpage" | sed -e 's,openssl,libressl,g')"
      cp -v "$openssl_manpage" "$openssl_LibreSSL_manpage"
    done
  )
done
mkdir -p %{buildroot}%{_omandir}
cp -rv %{buildroot}%{_mandir}/* %{buildroot}%{_omandir}/
# We have put libressl_ prefixed mans to system man directory,
# now delete them from /opt/libressl/share/man to leave
# mans with original names in /opt/libressl/share/man
# Mans with original names will be included to devel package only
rm -fv %{buildroot}%{_mandir}/*/libressl_*
rm -fv %{buildroot}%{_omandir}/*/openssl.*
( cd %{buildroot}%{_omandir}/man3 ; rm -fv $(ls -1v | grep -v '^libressl_') )
# Fully delete other mans from /opt
rm -fv %{buildroot}%{_mandir}/*/{nc,netcat,ocspcheck}*
# Manually compress man pages because we use both
# /usr/share/man and /opt/libressl/share/man,
# /usr/lib/rpm/brp-compress will not compress both of them
mkdir tmp
( cd tmp
  sed -e 's,./usr/share/man/man*,%{buildroot}%{_mandir}/man* %{buildroot}%{_omandir}/man*,g' \
    %{_usrlibrpm}/brp-compress > ./brp-compress.sh
  chmod +x ./brp-compress.sh
  COMPRESS="%{_compress}" COMPRESS_EXT="%{_extension}" ./brp-compress.sh
)

mkdir -p %{buildroot}%{_obindir}
mv -v %{buildroot}%{_bindir}/{nc,ocspcheck,openssl} %{buildroot}%{_obindir}/
mv -v %{buildroot}%{_obindir}/openssl %{buildroot}%{_obindir}/libressl
( cd %{buildroot}%{_obindir} ; ln -s nc netcat )
( cd %{buildroot}%{_includedir} ; ln -s openssl libressl )
# Remove static libs
( cd %{buildroot}%{_libdir} ; rm -fv *.la *.a )

mkdir -p %{buildroot}/%{_olibdir}/pkgconfig
mv -v %{buildroot}/%{_libdir}/pkgconfig/*.pc %{buildroot}/%{_olibdir}/pkgconfig
for i in share %{_lib}
do
  pkgconfig_dir="%{buildroot}/%{_oprefix}/${i}/pkgconfig"
  if [ ! -d "$pkgconfig_dir" ]; then continue; fi
  ( cd "$pkgconfig_dir"
    for f in *.pc
    do
      if [ "$f" != 'openssl.pc' ] && ! grep '^Name:' "$f" | grep -qi 'libressl\-'; then
        echo "Name in $f is not prefixed with LibreSSL-"
        exit 1
      fi
      # Restore ability to work with custom prefix
      # It is lost due to --exec_prefix=XXX in %%configure
      sed -i -r \
        -e 's,^exec_prefix=.+,exec_prefix=${prefix},' \
        -e 's,^libdir=.+,libdir=${exec_prefix}/lib,' \
        -e 's,^includedir=.+,includedir=${prefix}/include,' \
        "$f"
      mv -v "$f" "libressl-${f}"
      # Requires: libxx -> Requires: libressl-libxx
      sed -i \
        -e 's/libcrypto/libressl-libcrypto/g' \
        -e 's/libtls/libressl-liblts/g' \
        -e 's/libssl/libressl-libssl/g' \
        -e 's/libressl-libressl-/libressl-/g' \
        "libressl-${f}"
      if [ -f libressl-openssl.pc ]; then
        mv -v libressl-openssl.pc libressl.pc
      fi
    done
  )
done

mv -v %{buildroot}/%{_libdir}/{libcrypto,libtls,libssl}.so.* %{buildroot}/%{_olibdir}/
( cd %{buildroot}/%{_libdir}/
  for i in %{buildroot}/%{_olibdir}/{libcrypto,libtls,libssl}.so.*
  do
    filename="$(basename "$i")"
    # /opt/libressl/lib
    # /usr/lib64/
    # Relative symlink is required to use *.so in tests...
    ln -s ../../../"%{_olibdir}/${filename}" "$filename"
  done
)
if [ "$(find %{buildroot}/%{_libdir}/ -iname '*.so.*' -type f | wc -l)" -gt 0 ]; then
  echo "Some shared libraries were not relocated!"
  exit 1
fi
chrpath --delete %{buildroot}/%{_olibdir}/*.so.*
chrpath --delete %{buildroot}/%{_obindir}/{nc,ocspcheck,libressl}

# Stuff from system OpenSSL will be used
rm -fvr %{buildroot}/%{_openssldir}/{certs,cert.pem}
mv -v %{buildroot}/%{_openssldir}/openssl.cnf %{buildroot}/%{_openssldir}/libressl.cnf

# Having sovers as macros may be useful to check that binaries are linked against LibreSSL
cat << EOF > macros.file
%%libressl_version %{version}
%%libressl_libcrypto_sover %{libcrypto_sover}
%%libressl_libssl_sover %{libssl_sover}
%%libressl_libtls_sover %{libtls_sover}
%%libressl_prefix /opt/libressl
EOF
%install_macro libressl macros.file

%check
_pcf(){
  unset oflags nflags
  oflags="$(eval $@)"
  nflags="$(echo "$oflags" | sed -e 's,%{_prefix},%{buildroot}%{_prefix},g')"
}
libressl="%{buildroot}/%{_obindir}/libressl"
# These tests caught a lot of mistakes during first builds
export PKG_CONFIG_PATH=%{buildroot}/%{_olibdir}/pkgconfig
export LD_LIBRARY_PATH=%{buildroot}/%{_olibdir}
# (test 1) Check that openssldir is correct
$libressl version -d | awk '{print $NF}' | tr -d '""' | grep -q '^%{_openssldir}$'
# (test 2) Check that path to config file is correct
# and also check that pkg-config libressl points to libressl, not openssl
_pcf pkg-config --libs --cflags libressl
%__cc -o test2 %{SOURCE22} $nflags
ldd ./test2
[ "$(./test2)" = "%{_openssldir}/libressl.cnf" ] || exit 1
# Check that our pkgconfig hacks somehow work
# (test 3) There is no /opt/libressl/ at build time
_pcf pkg-config --libs --cflags libressl-libcrypto
%__cc -o test3 %{SOURCE20} $nflags
ldd ./test3
ldd ./test3 | grep 'libcrypto\.so\.%{libcrypto_sover}'
./test3 | grep Hello
# (test 4) Check that OpenSSL and LibreSSL devel parts coexist correctly
# (build with libcrypto from OpenSSL)
_pcf pkg-config --libs --cflags libcrypto
%__cc -o test4 %{SOURCE20} $nflags
ldd ./test4
ldd ./test4 | grep -v '/libcrypto\.so\.%{libcrypto_sover}'
./test4 | grep Hello
# (test 5) Check that flags from all *.pc are valid
# libtls is overlinking here, but check linking
_pcf pkg-config --libs --cflags libressl libressl-libssl libressl-libtls libressl-libcrypto
%__cc -o test5 %{SOURCE25} $nflags -lpthread -lz -ldl
ldd ./test5
ldd ./test5 | grep '/libcrypto\.so\.%{libcrypto_sover}'
ldd ./test5 | grep '/libssl\.so\.%{libssl_sover}'
ldd ./test5 | grep '/libtls\.so\.%{libtls_sover}'
./test5 --threads 2
# (test 6) Check that gost12sum (from OpenSSL gost-engine) and LibreSSL give the same result
# This also simply checks that checksums by GOST do work
echo test6 > ./test6
# gost12sum is Streebog-256, gostsum -l is Streebog-512
_gost12sum="$(gost12sum ./test6 | awk '{print $1}')"
_libressl="$($libressl dgst -streebog256 ./test6 | awk '{print $NF}')"
[ "$_gost12sum" = "$_libressl" ] || exit 1
# (test 7) The same for Streebog-512
echo test7 > ./test7
_gost12sum="$(gost12sum -l ./test7 | awk '{print $1}')"
_libressl="$($libressl dgst -streebog512 ./test7 | awk '{print $NF}')"
[ "$_gost12sum" = "$_libressl" ] || exit 1
unset _gost12sum _libressl
# (test 8) Check that LibreSSL and gostsum use different byte order in GOST R 34.11-94 hashes
# https://ru.wikipedia.org/wiki/ГОСТ_Р_34.11-94#Формат_вывода
# ...and that  their hash tables do not differ
# https://github.com/gost-engine/engine/issues/189
# If byte orders change, package maintainers must become aware of this via this test failing
# Running the same hashsumming for multiple times checks that results do not randomize
echo test8 > ./test8
_gs_beg="$(gostsum ./test8 | awk '{print $1}' | head -c2)"
_gs_end="$(gostsum ./test8 | awk '{print $1}' | tail -c3)" #-c3 because of EOL
_ls_beg="$($libressl dgst -md_gost94 ./test8 | awk '{print $NF}' | head -c2)"
_ls_end="$($libressl dgst -md_gost94 ./test8 | awk '{print $NF}' | tail -c3)"
_gs_length="$(gostsum ./test8 | awk '{print $1}' | wc -c)"
_ls_length="$($libressl dgst -md_gost94 ./test8 | awk '{print $NF}' | wc -c)"
[ "$_gs_beg" = "$_ls_end" ] && \
  [ "$_gs_end" = "$_ls_beg" ] && \
  [ "$_gs_length" = "$_ls_length" ] || exit 1
unset _gs_beg _gs_end _ls_beg _ls_end _gs_length _ls_length
# (test 9) Test ability to sign using program that requires OPENSSL_NO_CMS to de undefined
# https://bugzilla.kernel.org/show_bug.cgi?id=202159
# and ability to generate GOST R 34.10-12 keys
_pcf pkg-config --libs --cflags libressl-libcrypto
%__cc -o test9 %{SOURCE29} $nflags
export OPENSSL_CONF=%{buildroot}%{_openssldir}/libressl.cnf
$libressl ecparam -genkey -name id-tc26-gost-3410-12-512-paramSetA -out priv.key -outform PEM
$libressl req -batch -new -x509 -nodes -key priv.key -out pem1.pem \
	 -subj "/C=RU/ST=Russia/L=Oryol/O=Test/OU=Test CA/CN=Test CA Root"
# Also possible to gen a new key and a certificate in one command:
# libressl req <...> -newkey ec -pkeyopt ec_paramgen_curve:id-tc26-gost-3410-12-512-paramSetA
# Signature Algorithm: ecdsa-with-SHA256
$libressl x509 -in pem1.pem -text -noout | grep -E 'Signature Algorithm:.*ecdsa-with-SHA256'
$libressl req -new -nodes -utf8 -batch -x509 -newkey gost2001 \
  -pkeyopt dgst:streebog512 -pkeyopt paramset:A -streebog512 \
  -days 109500 \
  -subj "/C=RU/ST=Russia/L=Oryol/O=Test/OU=Test CA/CN=Test CA Root" \
  -outform PEM -out pem2.pem -keyout pem2.pem
$libressl x509 -in pem2.pem -text -noout
$libressl x509 -in pem2.pem -text -noout | grep -E 'Signature Algorithm:.*GOST R 34.10-2012'
$libressl x509 -in pem2.pem -text -noout | grep -E 'Digest Algorithm:.*GOST R 34-11-2012'
$libressl x509 -in pem2.pem -text -noout | grep -E 'Public Key Algorithm:.*GOST R 34.10-2012'
echo 123 > test9_file1
echo 123 > test9_file2
# Known to fail with: "CMS routines:func(4095):not supported for this key type"
./test9 streebog512 priv.key pem1.pem test9_file1 || :
$libressl dgst -streebog512 -sign pem2.pem test9_file2 > test9_file2.sig
./test9 -s test9_file2.sig streebog512 pem2.pem test9_file2
strings test9_file2 | tail -n 1 | grep -q '~Module signature appended~'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14310 |21mr|libreswan-4.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%global _hardened_build 1
# These are rpm macros and are 0 or 1
%global with_efence 0
%global with_development 0
%global with_cavstests 0
# Libreswan config options
%global libreswan_config \\\
    FINALLIBEXECDIR=%{_libexecdir}/ipsec \\\
    FINALMANDIR=%{_mandir} \\\
    INC_INITDIRDEFAULT=%{_initrddir} \\\
    PREFIX=%{_prefix} \\\
    INITSYSTEM=systemd \\\
    USE_DNSSEC=true \\\
    USE_FIPSCHECK=false \\\
    USE_LABELED_IPSEC=true \\\
    USE_LDAP=true \\\
    USE_LIBCAP_NG=true \\\
    USE_LIBCURL=true \\\
    USE_LINUX_AUDIT=true \\\
    USE_NM=true \\\
    USE_SECCOMP=true \\\
    USE_AUTHPAM=true \\\
%{nil}

Name:		libreswan
Summary:	IPsec implementation with IKEv1 and IKEv2 keying protocols
Group:		System/Servers
# version is generated in the release script
Version:	4.6
Release:	3
License:	GPLv2
Url:		https://libreswan.org/
Source0:	https://download.libreswan.org/%{?prever:development/}%{name}-%{version}%{?prever}.tar.gz
%if 0%{with_cavstests}
Source1:	https://download.libreswan.org/cavs/ikev1_dsa.fax.bz2
Source2:	https://download.libreswan.org/cavs/ikev1_psk.fax.bz2
Source3:	https://download.libreswan.org/cavs/ikev2.fax.bz2
%endif
Source4:	libreswan-tmpfiles.conf
Patch0:		CVE-2023-30570-libreswan-4.x.patch
Patch1:		CVE-2023-38710.patch
Patch2:		CVE-2023-38711.patch
Patch3:		CVE-2023-38712.patch
Requires(post):	bash
Requires(post):	coreutils
Requires(post):	systemd
Requires(preun): systemd
Requires(postun): systemd

Conflicts:	openswan < %{EVRD}
Obsoletes:	openswan < %{EVRD}
Provides:	openswan = %{EVRD}
Provides:	openswan-doc = %{EVRD}

BuildRequires:	hostname
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(systemd)
BuildRequires:	nss-devel >= 3.16.1
BuildRequires:	nspr-devel
BuildRequires:	pam-devel
BuildRequires:	libevent-devel
BuildRequires:	unbound-devel >= 1.12.0
BuildRequires:	ldns-devel
BuildRequires:	seccomp-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(audit)
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(libcurl)
%if 0%{with_efence}
BuildRequires: ElectricFence
%endif
BuildRequires: xmlto
BuildRequires:	docbook-dtd-xml

Requires: nss
Requires: iproute2 >= 2.6.8
Requires: unbound >= 1.6.6
Requires: policycoreutils

%description
Libreswan is a free implementation of IPsec & IKE for Linux.  IPsec is
the Internet Protocol Security and uses strong cryptography to provide
both authentication and encryption services.  These services allow you
to build secure tunnels through untrusted networks.  Everything passing
through the untrusted net is encrypted by the ipsec gateway machine and
decrypted by the gateway at the other end of the tunnel.  The resulting
tunnel is a virtual private network or VPN.

This package contains the daemons and userland tools for setting up
Libreswan. To build KLIPS, see the kmod-libreswan.spec file.

Libreswan also supports IKEv2 (RFC4309) and Secure Labeling

Libreswan is based on Openswan-2.6.38 which in turn is based on FreeS/WAN-2.04

%prep
%autosetup -p1
# Fedora should really figure this versioning out itself, not burden upstream
sed -i "s:/usr/bin/python:%{__python3}:" programs/verify/verify.in
sed -i "s:/usr/bin/python:%{__python3}:" programs/show/show.in
sed -i "s:/usr/bin/python:%{__python3}:" testing/pluto/ikev1-01-fuzzer/cve-2015-3204.py
sed -i "s:/usr/bin/python:%{__python3}:" testing/pluto/ikev2-15-fuzzer/send_bad_packets.py
sed -i "s:/usr/bin/python:%{__python3}:" testing/x509/dist_certs.py
sed -i "s:/usr/bin/python:%{__python3}:" programs/_unbound-hook/_unbound-hook.in
# enable crypto-policies support
sed -i "s:#[ ]*include \(.*\)\(/crypto-policies/back-ends/libreswan.config\)$:include \1\2:" configs/ipsec.conf.in
# linking to freebl is no longer needed
sed -i "s/-lfreebl //" mk/config.mk

%build
%serverbuild
%if 0%{with_efence}
%global efence "-lefence"
%endif

#796683: -fno-strict-aliasing
%make_build \
%if 0%{with_development}
    USERCOMPILE="-g -DGCC_LINT %(echo %{optflags} | sed -e s/-O[0-9]*/ /) %{?efence} -fPIE -pie -fno-strict-aliasing -Wformat-nonliteral -Wformat-security" \
%else
    USERCOMPILE="-g -DGCC_LINT %{optflags} %{?efence} -fPIE -pie -fno-strict-aliasing -Wformat-nonliteral -Wformat-security" \
%endif
    USERLINK="-g -pie -Wl,-z,relro,-z,now %{?efence}" \
    %{libreswan_config} \
    programs
FS=$(pwd)

%install
%make_install \
    DESTDIR=%{buildroot} \
    %{libreswan_config}

FS=$(pwd)
rm -rf %{buildroot}/usr/share/doc/libreswan

install -d %{buildroot}%{_sbindir}

install -d %{buildroot}%{_sysconfdir}/sysctl.d
install -m 0644 packaging/fedora/libreswan-sysctl.conf \
    %{buildroot}%{_sysconfdir}/sysctl.d/50-libreswan.conf

echo "include %{_sysconfdir}/ipsec.d/*.secrets" \
    > %{buildroot}%{_sysconfdir}/ipsec.secrets
rm -fr %{buildroot}%{_sysconfdir}/rc.d/rc*

# Install tmpfiles
install -d %{buildroot}%{_tmpfilesdir}
install -D -p -m 644 %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf

#libreswan now store nss db in /var/lib/ipsec/nss see changelog
install -d %{buildroot}%{_localstatedir}/lib/ipsec/nss


%if 0%{with_cavstests}
%check
# There is an elaborate upstream testing infrastructure which we do not
# run here - it takes hours and uses kvm
# We only run the CAVS tests.
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} .
bunzip2 *.fax.bz2

# work around for older xen based machines
export NSS_DISABLE_HW_GCM=1

: starting CAVS test for IKEv2
%{buildroot}%{_libexecdir}/ipsec/cavp -v2 ikev2.fax | \
    diff -u ikev2.fax - > /dev/null
: starting CAVS test for IKEv1 RSASIG
%{buildroot}%{_libexecdir}/ipsec/cavp -v1dsa ikev1_dsa.fax | \
    diff -u ikev1_dsa.fax - > /dev/null
: starting CAVS test for IKEv1 PSK
%{buildroot}%{_libexecdir}/ipsec/cavp -v1psk ikev1_psk.fax | \
    diff -u ikev1_psk.fax - > /dev/null
: CAVS tests passed
%endif

%post
%tmpfiles_create %{name}.conf
%systemd_post ipsec.service

%preun
%systemd_preun ipsec.service

%postun
%systemd_postun_with_restart ipsec.service

%files
%doc CHANGES COPYING CREDITS README* LICENSE
%doc docs/*.* docs/examples
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipsec.conf
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ipsec.secrets
%attr(0700,root,root) %dir %{_sysconfdir}/ipsec.d
%attr(0700,root,root) %dir %{_sysconfdir}/ipsec.d/policies
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ipsec.d/policies/*
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysctl.d/50-libreswan.conf
%attr(0700,root,root) %dir %{_localstatedir}/lib/ipsec/nss
%attr(0644,root,root) %{_tmpfilesdir}/libreswan.conf
%attr(0644,root,root) %{_unitdir}/ipsec.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/pluto
%{_sysconfdir}/logrotate.d/libreswan
%{_sbindir}/ipsec
%{_libexecdir}/ipsec
%doc %{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14311 |21mr|librevenge-0.0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 0.0
%define libname %mklibname revenge %{api} %{major}
%define devname %mklibname revenge -d

Summary:	Base library for writing document import filters
Name:		librevenge
Version:	0.0.4
Release:	6
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://sf.net/p/libwpd/wiki/librevenge/
Source0:	http://downloads.sourceforge.net/project/libwpd/%{name}/%{name}-%{version}/%{name}-%{version}.tar.xz
Patch0:		HAIKU-librevenge-0.0.4-gcc7.patch
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(zlib)

%description
librevenge is a base library for writing document import filters.
It has interfaces for text documents, vector graphics, spreadsheets
and presentations.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/librevenge-%{api}.so.%{major}*
%{_libdir}/librevenge-generators-%{api}.so.%{major}*
%{_libdir}/librevenge-stream-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

librevenge is a base library for writing document import filters.
It has interfaces for text documents, vector graphics, spreadsheets
and presentations.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation

%description doc
Documentation for %{name}.

librevenge is a base library for writing document import filters.
It has interfaces for text documents, vector graphics, spreadsheets
and presentations.

%files doc
%{_docdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
%ifarch %{e2k}
sed -i '/\[\[fallthrough\]\];/d' src/lib/RVNGZipStream.cpp
%endif

%build
%global optflags %{optflags} -Wno-error=parentheses
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14312 |21mr|librpcsecgss-0.19-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname rpcsecgss %{major}
%define devname %mklibname rpcsecgss -d

%bcond_with crosscompile

Summary:	Allows secure rpc communication using the rpcsec_gss protocol
Name:		librpcsecgss
Version:	0.19
Release:	20
License:	BSD-like
Group:		System/Libraries
Url:		http://www.citi.umich.edu/projects/nfsv4/linux/
Source0:	http://www.citi.umich.edu/projects/nfsv4/linux/%{name}/%{name}-%{version}.tar.gz
Patch0:		librpcsecgss-0.19-libtirpc.patch
BuildRequires:	pkgconfig(libgssglue)
BuildRequires:	pkgconfig(libtirpc)

%description
Allows secure rpc communication using the rpcsec_gss protocol
librpcsecgss allows secure rpc communication using the rpcsec_gss
protocol.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Allows secure rpc communication using the rpcsec_gss protocol
Group:		System/Libraries

%description -n %{libname}
Allows secure rpc communication using the rpcsec_gss protocol
librpcsecgss allows secure rpc communication using the rpcsec_gss
protocol.

%files -n %{libname}
%{_libdir}/librpcsecgss.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the librpcsecgss library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	rpcsecgss-devel = %{EVRD}

%description -n %{devname}
This package contains the development librpcsecgss library and its
header files.

%files -n %{devname}
%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
%{_includedir}/rpcsecgss
%{_libdir}/*.so
%{_libdir}/pkgconfig/librpcsecgss.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%if %{with crosscompile}
export ac_cv_func_malloc_0_nonnull=yes
%endif
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14313 |21mr|librsvg-2.40.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 2
%define major 2
%define gimajor 2.0
%define libname %mklibname rsvg %{api} %{major}
%define devname %mklibname rsvg %{api} -d
%define girname %mklibname rsvg-gir %{gimajor}

%define _disable_rebuild_configure 1

Summary:	Raph's SVG library
Name:		librsvg
# rust not ported yet to e2k
# 2.40.21 for e2k it is last version wuthout rust
Version:	2.40.21
Release:	1
License:	LGPLv2+ and GPLv2+
Group:		Graphics
Url:		http://download.gnome.org/sources/librsvg
Source0:	http://download.gnome.org/sources/librsvg/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gdk-pixbuf2.0
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-png)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libcroco-0.6)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(vapigen)
Provides:	%{name}%{api} = %{EVRD}
Requires:	%{libname} >= %{EVRD}
Requires:	python
ExclusiveArch:	%{e2k}

%description
A library that uses libart and pango to render svg files.

%files
%doc AUTHORS COPYING.LIB NEWS
%{_bindir}/rsvg-convert
%optional %{_bindir}/rsvg-view-3
%{_datadir}/thumbnailers/librsvg.thumbnailer
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Raph's SVG library
Group:		System/Libraries

%description -n %{libname}
A library that uses libart and pango to render svg files.

%files -n %{libname}
%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
%{_libdir}/librsvg-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing with librsvg
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with librsvg.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/librsvg-2.0
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/Rsvg-2.0.gir
%{_datadir}/gtk-doc/html/*
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/librsvg-2.0.vapi

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Rsvg-%{gimajor}.typelib

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="$LDFLAGS -pthread"
%configure \
	--enable-static=no \
	--enable-introspection=yes \
	--enable-pixbuf-loader \
	--enable-vala=yes
%make_build

%install
%make_install

#remove unpackaged files
rm -fr %{buildroot}%{_docdir}/librsvg
rm -f %{buildroot}%{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
rm -f %{buildroot}%{_datadir}/pixmaps/svg-viewer.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14314 |21mr|librsvg-2.52.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 2
%define major 2
%define gimajor 2.0
%define libname %mklibname rsvg %{api} %{major}
%define devname %mklibname rsvg %{api} -d
%define girname %mklibname rsvg-gir %{gimajor}

%define _disable_rebuild_configure 1

Summary:	Raph's SVG library
Name:		librsvg
Version:	2.52.11
Release:	1
License:	LGPLv2+ and GPLv2+
Group:		Graphics
Url:		http://download.gnome.org/sources/librsvg
Source0:	http://download.gnome.org/sources/librsvg/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gdk-pixbuf2.0
BuildRequires:	cargo
BuildRequires:	rust
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(cairo-png)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libcroco-0.6)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(vapigen)
Provides:	%{name}%{api} = %{EVRD}
Requires:	%{libname} >= %{EVRD}
Requires:	python
ExcludeArch:	%{e2k}

%description
A library that uses libart and pango to render svg files.

%files
%doc AUTHORS COPYING.LIB NEWS
%{_bindir}/rsvg-convert
%{_datadir}/thumbnailers/librsvg.thumbnailer
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Raph's SVG library
Group:		System/Libraries

%description -n %{libname}
A library that uses libart and pango to render svg files.

%files -n %{libname}
%{_libdir}/gdk-pixbuf-2.0/*/loaders/*.so
%{_libdir}/librsvg-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing with librsvg
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with librsvg.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/librsvg-2.0
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/Rsvg-2.0.gir
%{_datadir}/gtk-doc/html/*
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_datadir}/vala/vapi/librsvg-2.0.vapi

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Rsvg-%{gimajor}.typelib

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="$LDFLAGS -pthread"
%configure \
	--enable-static=no \
	--enable-introspection=yes \
	--enable-pixbuf-loader \
	--enable-vala=yes
%make_build

%install
%make_install

#remove unpackaged files
rm -fr %{buildroot}%{_docdir}/librsvg
rm -f %{buildroot}%{_sysconfdir}/gtk-2.0/gdk-pixbuf.loaders
rm -f %{buildroot}%{_datadir}/pixmaps/svg-viewer.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14315 |21mr|librsync-2.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname rsync %{major}
%define devname %mklibname -d rsync

Summary:	Rsync libraries
Name:		librsync
Version:	2.3.2
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://librsync.sourceforge.net/
Source0:	https://github.com/librsync/librsync/archive/v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(popt)
BuildRequires:	libtool
# Compression isn't functional: https://github.com/librsync/librsync/issues/8
#BuildRequires:	bzip2-devel
#BuildRequires:	zlib-devel

%description
librsync implements the "rsync" algorithm, which allows remote
differencing of binary files. librsync computes a delta relative
to a file's checksum, so the two files need not both be present to
generate a delta.

This library was previously known as libhsync up to version 0.9.0.

The current version of this package does not implement the rsync
network protocol and uses a delta format slightly more efficient
than and incompatible with rsync 2.4.6.

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Rsync libraries
Group:		System/Libraries

%description -n	%{libname}
librsync implements the "rsync" algorithm, which allows remote
differencing of binary files. librsync computes a delta relative
to a file's checksum, so the two files need not both be present to
generate a delta.

This library was previously known as libhsync up to version 0.9.0.

The current version of this package does not implement the rsync
network protocol and uses a delta format slightly more efficient
than and incompatible with rsync 2.4.6.

%files -n %{libname}
%doc AUTHORS NEWS.md README.md
%license COPYING
%{_libdir}/librsync.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Headers for librsync
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	librsync-devel = %{version}-%{release}

%description -n	%{devname}
This package contains header files necessary for developing
programs based on librsync.

%files -n %{devname}
%{_includedir}/%{name}*
%{_libdir}/%{name}.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n	rdiff
Summary:	Compute and apply signature-based file differences
Group:		System/Servers
Requires:	%{libname} = %{version}

%description -n	rdiff
Compute and apply signature-based file differences.

%files -n rdiff
%{_bindir}/rdiff
%{_mandir}/man1/rdiff.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake -DCMAKE_BUILD_TYPE=Release .
%make
%make doc

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14316 |21mr|libsamplerate-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname samplerate %{major}
%define devname %mklibname samplerate -d

Summary:	Audio Sample Rate Converter library
Name:		libsamplerate
Version:	0.2.2
Release:	1
License:	GPLv2+
Group:		Sound
Url:			https://libsndfile.github.io/libsamplerate/
Source0:	https://github.com/libsndfile/libsamplerate/archive/refs/tags/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fftw3) >= 3
BuildRequires:	pkgconfig(sndfile)

%description
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
audio. One example of where such a thing would be useful is
converting audio from the CD sample rate of 44.1kHz to the 48kHz
sample rate used by DAT players.

SRC is capable of arbitrary and time varying conversions ; from
down-sampling by a factor of 12 to up-sampling by the same
factor. Arbitrary in this case means that the ratio of input and
output sample rates can be an irrational number. The conversion ratio
can also vary with time for speeding up and slowing down effects.

SRC provides a small set of converters to allow quality to be traded
off against computation cost. The current best converter provides a
signal-to-noise ratio of 97dB with -3dB pass-band extending from DC to
96% of the theoretical best bandwidth for a given pair of input and
output sample rates.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Audio Sample Rate Converter shared library
Group:		System/Libraries
%rename	%{name}-progs

%description -n %{libname}
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
audio. One example of where such a thing would be useful is
converting audio from the CD sample rate of 44.1kHz to the 48kHz
sample rate used by DAT players.

SRC is capable of arbitrary and time varying conversions ; from
down-sampling by a factor of 12 to up-sampling by the same
factor. Arbitrary in this case means that the ratio of input and
output sample rates can be an irrational number. The conversion ratio
can also vary with time for speeding up and slowing down effects.

SRC provides a small set of converters to allow quality to be traded
off against computation cost. The current best converter provides a
signal-to-noise ratio of 97dB with -3dB pass-band extending from DC to
96% of the theoretical best bandwidth for a given pair of input and
output sample rates.

This package contains the shared library required for running programs
using %{name}.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING
%{_libdir}/libsamplerate.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Audio Sample Rate Converter development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Secret Rabbit Code (aka libsamplerate) is a Sample Rate Converter for
audio. One example of where such a thing would be useful is
converting audio from the CD sample rate of 44.1kHz to the 48kHz
sample rate used by DAT players.

SRC is capable of arbitrary and time varying conversions ; from
down-sampling by a factor of 12 to up-sampling by the same
factor. Arbitrary in this case means that the ratio of input and
output sample rates can be an irrational number. The conversion ratio
can also vary with time for speeding up and slowing down effects.

SRC provides a small set of converters to allow quality to be traded
off against computation cost. The current best converter provides a
signal-to-noise ratio of 97dB with -3dB pass-band extending from DC to
96% of the theoretical best bandwidth for a given pair of input and
output sample rates.

This package contains the C headers and other files needed to compile
programs with %{name}.

%files -n %{devname}
%doc docs/*.md docs/SRC.*
%{_includedir}/samplerate.h
%{_libdir}/%{name}.so
%{_libdir}/%{name}.a
%{_libdir}/pkgconfig/samplerate.pc

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure --enable-static
%make


%install
%makeinstall_std


rm -rf %{buildroot}%{_datadir}/doc/libsamplerate0-dev
rm -rf %{buildroot}%{_datadir}/doc/libsamplerate

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14317 |21mr|libsass-3.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname sass %{major}
%define devname %mklibname sass -d

Summary:	C/C++ port of the Sass CSS precompiler
Name:		libsass
Version:	3.6.4
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://sass-lang.com/libsass
Source0:	https://github.com/sass/libsass/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz

%description
Libsass is a C/C++ port of the Sass CSS precompiler. The original
version was written in Ruby, but this version is meant for
efficiency and portability.

This library strives to be light, simple, and easy to build and
integrate with a variety of platforms and languages.

Libsass is just a library, but if you want to RUN libsass, install
the sassc package.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C/C++ port of the Sass CSS precompiler
Group:		System/Libraries

%description -n %{libname}
This package contains the library files required for running
services built using %{name}.

%files -n %{libname}
%doc Readme.md SECURITY.md LICENSE
%{_libdir}/libsass.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the static libraries, headers, and other
support files required for developing applications against %{name}.

%files -n %{devname}
%{_includedir}/sass.h
%{_includedir}/sass2scss.h
%dir %{_includedir}/sass/
%{_includedir}/sass/*.h
%{_libdir}/libsass.so
%{_libdir}/pkgconfig/libsass.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
export LIBSASS_VERSION=%{version}
autoreconf --force --install

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14318 |21mr|libsavitar-4.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname savitar %{major}
%define devname %mklibname savitar -d

Summary:	C++ implementation of 3mf loading with SIP Python bindings
Name:		libsavitar
Version:	4.13.2
Release:	1
License:	AGPLv3+
Group:		System/Libraries
Url:		https://github.com/Ultimaker/libSavitar
Source0:	%{url}/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libsavitar-no-pugixml.patch
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	git
BuildRequires:	pugixml-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-sip4

%description
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
3mf is a 3D printing file format.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for libSavitar
Group:		System/Libraries

%description -n %{libname}
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
3mf is a 3D printing file format.

%files -n %{libname}
%{_libdir}/libSavitar.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libSavitar
# The cmake scripts are BSD
License:	AGPLv3+ and BSD
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
3mf is a 3D printing file format.

%files -n %{devname}
%doc LICENSE cmake/COPYING-CMAKE-SCRIPTS
%{_libdir}/libSavitar.so
%{_includedir}/Savitar/
%{_libdir}/cmake/Savitar/

#----------------------------------------------------------------------------

%package -n python3-savitar
Summary:	Python 3 libSavitar bindings
Group:		Development/Python
Requires:	python3-sip-api(%{sip_api_major}) = %{sip_api}

%description -n python3-savitar
Savitar is a C++ implementation of 3mf loading with SIP Python bindings.
3mf is a 3D printing file format.

The Python bindings.

%files -n python3-savitar
%doc LICENSE README.md
%{python3_sitearch}/Savitar.so

#----------------------------------------------------------------------------

%prep
%setup -qn libSavitar-%{version}
%patch0 -p1

# Wrong end of line encoding
dos2unix README.md

# Bundling
rm pugixml -rf
sed -i 's|"../pugixml/src/pugixml.hpp"|<pugixml.hpp>|g' src/*.cpp src/*.h

%build
%global optflags %{optflags} -Wl,--as-needed
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14319 |21mr|libseccomp-2.5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname seccomp %{major}
%define devname %mklibname -d seccomp

Summary:	Enhanced seccomp library
Name:		libseccomp
Version:	2.5.2
Release:	2
License:	LGPLv2
Group:		System/Libraries
Url:		https://github.com/seccomp/libseccomp
Source0:	https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:		libseccomp-2.5.2_e2k.patch
BuildRequires:	gperf

%description
The libseccomp library provides an easy to use, platform independent,
interface to the Linux Kernel's syscall filtering mechanism.
The libseccomp API is designed to abstract away the underlying BPF based
syscall filter language and present a more conventional function-call based
filtering interface that should be familiar to, and easily adopted by,
application developers.

#-----------------------------------------------------------------------------

%package	utils
Summary:	scmp_sys_resolver - A tool to resolve system calls
Group:          System/Libraries

%description	utils
The scmp_sys_resolver utility resolves both system call names and numbers
with respect to the given architecture.

%files	utils
%{_bindir}/scmp_sys_resolver
%{_mandir}/man1/scmp_sys_resolver.1.xz

#-----------------------------------------------------------------------------

%package -n     %{libname}
Summary:        Collection library providing GObject-based interfaces and classes
Group:          System/Libraries

%description -n %{libname}
The libseccomp library provides an easy to use, platform independent,
interface to the Linux Kernel's syscall filtering mechanism.
The libseccomp API is designed to abstract away the underlying BPF based
syscall filter language and present a more conventional function-call based
filtering interface that should be familiar to, and easily adopted by,
application developers.

%files -n %{libname}
%{_libdir}/libseccomp.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files used to build applications with libseccomp support
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	seccomp-devel = %{EVRD}

%description -n	%{devname}
The libseccomp library provides an easy to use, platform independent,
interface to the Linux Kernel's syscall filtering mechanism.
The libseccomp API is designed to abstract away the underlying BPF based
syscall filter language and present a more conventional function-call based
filtering interface that should be familiar to, and easily adopted by,
application developers.

%files -n %{devname}
%doc LICENSE CREDITS README.md
%{_includedir}/seccomp.h
%{_includedir}/seccomp-syscalls.h
%{_libdir}/libseccomp.so
%{_libdir}/pkgconfig/libseccomp.pc
%{_mandir}/man3/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
%ifnarch %e2k
%patch0 -p1 -R
%endif

%build
autoreconf -fi
%configure
%make

%install
mkdir -p "%{buildroot}/%{_libdir}"
mkdir -p "%{buildroot}/%{_includedir}"
mkdir -p "%{buildroot}/%{_mandir}"
%makeinstall_std

rm -fv "%{buildroot}/%{_libdir}/libseccomp.a"

%check
# standard regression tests
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14320 |21mr|libsecret-0.20.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 0
%define libname %mklibname secret %{api} %{major}
%define girname %mklibname secret-gir %{api}
%define devname %mklibname secret -d
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Library for accessing the Secret Service API
Name:		libsecret
Version:	0.20.5
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libsecret
Source0:	https://download.gnome.org/sources/libsecret/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	docbook-style-xsl
%ifnarch %e2k %{riscv}
BuildRequires:	gjs
%endif
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	xsltproc
BuildRequires:	python3dist(gi-docgen)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(vapigen)

%description
libsecret is a library for storing and retrieving passwords and other
secrets. It communicates with the "Secret Service" using DBus.

#----------------------------------------------------------------------------

%package tools
Summary:	Library for accessing the Secret Service API -- Tools
Group:		System/Libraries

%description tools
libsecret is a library for storing and retrieving passwords and other
secrets. It communicates with the "Secret Service" using DBus.

%files tools -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_bindir}/secret-tool
%{_mandir}/man1/secret-tool.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for accessing the Secret Service API
Group:		System/Libraries
# compat with Fedora/RH
Provides:	libsecret = %{EVRD}

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libsecret-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Secret-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library for accessing the Secret Service API -- Development Files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc %{_defaultdocdir}/%{name}-%{api}
%{_datadir}/gir-1.0/Secret-%{api}.gir
%{_datadir}/vala/vapi/*
%{_includedir}/libsecret-%{api}/
%{_libdir}/libsecret-%{api}.so
%{_libdir}/pkgconfig/libsecret-%{api}.pc
%{_libdir}/pkgconfig/libsecret-unstable.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14321 |21mr|libselinux-3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname selinux %{major}
%define devname %mklibname selinux -d
%define statname %mklibname selinux -d -s

%define _disable_ld_no_undefined 1
%define _disable_lto 1
%bcond_with python2
%bcond_without ruby

Summary:	SELinux library and simple utilities
Name:		libselinux
Version:	3.3
Release:	1
Epoch:		1
License:	Public Domain
Group:		System/Libraries
Url:		https://github.com/SELinuxProject/selinux/wiki
Source0:	https://github.com/SELinuxProject/selinux/releases/download/%{version}/libselinux-%{version}.tar.gz
Source1:	selinuxconlist.8
Source2:	selinuxdefcon.8

# Patch list start
Patch0001: 0001-Fix-selinux-man-page-to-refer-seinfo-and-sesearch-to.patch
# Patch list end

BuildRequires:	sepol-static-devel swig
BuildRequires:	systemd
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpcre2-posix)

%description
Security-enhanced Linux is a patch of the Linux® kernel and a
number of utilities with enhanced security functionality designed
to add mandatory access controls to Linux. The Security-enhanced
Linux kernel contains new architectural components originally
developed to improve the security of the Flask operating system.
These architectural components provide general support for the
enforcement of many kinds of mandatory access control policies,
including those based on the concepts of Type Enforcement®,
Role-based Access Control, and Multi-level Security.

libselinux provides an API for SELinux applications to get and set
process and file security contexts and to obtain security policy
decisions. Required for any applications that use the SELinux API.

%package -n %{libname}
Summary:	SELinux library and simple utilities
Group:		System/Libraries
Provides:	libselinux = %{EVRD}
Provides:	selinux = %{EVRD}

%description -n %{libname}
libselinux provides an API for SELinux applications to get and set
process and file security contexts and to obtain security policy
decisions. Required for any applications that use the SELinux API.

%package -n %{devname}
Summary:	Development libraries and header files for %{name}
Group:		Development/C
Provides:	selinux-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The selinux-devel package contains the libraries and header
files needed for developing SELinux applications.

%package -n %{statname}
Summary:	Static development libraries for %{name}
Group:		Development/C
Provides:	selinux-static-devel = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{statname}
The selinux-static-devel package contains the static libraries
needed for developing SELinux applications.

%package utils
Summary:	Utilities for %{name}
Provides:	selinux-utils = %{EVRD}
Group:		System/Kernel and hardware

%description utils
This package contains numerous applications utilizing %{name}.

%package -n	python3-libselinux
Summary:	SELinux python bindings for libselinux
Requires:	%{libname} = %{EVRD}
Provides:	python-libselinux = %{EVRD}
BuildRequires:	pkgconfig(python3)

%description -n python3-libselinux
The libselinux-python package contains the python bindings for developing
SELinux applications.

%if %{with python2}
%package -n	python2-selinux
%py2_migration_meta python2-selinux
Summary:	Python 2 bindings for %{name}
Group:		Development/Python
Provides:	%{name}-python
BuildRequires:	pkgconfig(python2)

%description -n python2-selinux
This package contains python 2 bindings for %{name}.

%files -n python2-selinux
%dir %{python2_sitearch}/selinux
%{python2_sitearch}/selinux/*.py*
%{python2_sitearch}/selinux/*.so
%{python2_sitearch}/_selinux.so
%{python2_sitearch}/selinux-%{version}-py%{py2_ver}.egg-info
%endif

%if %{with ruby}
%package -n ruby-selinux
Summary:	SELinux ruby bindings for libselinux
Group:		Development/Ruby
BuildRequires:	pkgconfig(ruby)

%description -n ruby-selinux
The libselinux-ruby package contains the ruby bindings for developing
SELinux applications.

%files -n ruby-selinux
%{ruby_vendorarchdir}/selinux.so
%endif

%prep
%autosetup -p 2 -n libselinux-%{version}

# clang doesnt support these options
sed -i 's/-mno-tls-direct-seg-refs//' src/Makefile
sed -i 's/-fipa-pure-const//' src/Makefile utils/Makefile

%build
%serverbuild_hardened

%if %{_rpm} == 5
# in ROSA we can't build rpm without rpm_execcon
# but for future it is deprecated interface and must be removed
export DISABLE_RPM="n"
%else
export DISABLE_RPM="y"
%endif

export USE_PCRE2="y"

#export CFLAGS="$CFLAGS -DOVERRIDE_GETTID=0"

# To support building the Python wrapper against multiple Python runtimes
# Define a function, for how to perform a "build" of the python wrapper against
# a specific runtime:
BuildPythonWrapper() {
  BinaryName=$1

  # Perform the build from the upstream Makefile:
  make \
    CC=%{__cc} \
    PYTHON=$BinaryName \
    LIBDIR="%{_libdir}" %{?_smp_mflags} \
    pywrap
}

%make CC=%{__cc} clean
%make CC=%{__cc} LIBDIR="%{_libdir}" swigify
%make CC=%{__cc} LIBDIR="%{_libdir}" LDFLAGS="%{ldflags}" PYTHON=%{__python3} all

%if %{with python2}
BuildPythonWrapper %{__python2}
%endif
BuildPythonWrapper %{__python3}

%if %{with ruby}
%make SHLIBDIR="%{_libdir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" rubywrap
%endif


%install
InstallPythonWrapper() {
  BinaryName=$1

  make \
    PYTHON=$BinaryName \
    LIBDIR="%{_libdir}" %{?_smp_mflags} \
    LIBSEPOLA="%{_libdir}/libsepol.a" \
    pywrap

  make \
    PYTHON=$BinaryName \
    DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" \
    SHLIBDIR="%{_lib}" BINDIR="%{_bindir}" \
    SBINDIR="%{_sbindir}" \
    LIBSEPOLA="%{_libdir}/libsepol.a" \
    install-pywrap
}

rm -rf %{buildroot}
mkdir -p %{buildroot}%{_tmpfilesdir}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_sbindir}
install -d -m 0755 %{buildroot}%{_rundir}/setrans
echo "d %{_rundir}/setrans 0755 root root" > %{buildroot}%{_tmpfilesdir}/libselinux.conf

%if %{with python2}
InstallPythonWrapper %{__python2}
%endif
InstallPythonWrapper %{__python3}


make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" \
    SHLIBDIR="%{_libdir}" \
    BINDIR="%{_bindir}" \
    SBINDIR="%{_sbindir}" \
    %if %{with ruby}
    RUBYINSTALL=%{ruby_vendorarchdir} install-rubywrap \
    %endif
    install

# Nuke the files we don't want to distribute
rm -f %{buildroot}%{_sbindir}/compute_*
rm -f %{buildroot}%{_sbindir}/deftype
rm -f %{buildroot}%{_sbindir}/execcon
rm -f %{buildroot}%{_sbindir}/getenforcemode
rm -f %{buildroot}%{_sbindir}/getfilecon
rm -f %{buildroot}%{_sbindir}/getpidcon
rm -f %{buildroot}%{_sbindir}/mkdircon
rm -f %{buildroot}%{_sbindir}/policyvers
rm -f %{buildroot}%{_sbindir}/setfilecon
rm -f %{buildroot}%{_sbindir}/selinuxconfig
rm -f %{buildroot}%{_sbindir}/selinuxdisable
rm -f %{buildroot}%{_sbindir}/getseuser
rm -f %{buildroot}%{_sbindir}/togglesebool
rm -f %{buildroot}%{_sbindir}/selinux_check_securetty_context

mv %{buildroot}%{_sbindir}/getdefaultcon %{buildroot}%{_sbindir}/selinuxdefcon
mv %{buildroot}%{_sbindir}/getconlist %{buildroot}%{_sbindir}/selinuxconlist
install -d %{buildroot}%{_mandir}/man8/
install -m 644 %{SOURCE1} %{buildroot}%{_mandir}/man8/
install -m 644 %{SOURCE2} %{buildroot}%{_mandir}/man8/
rm -f %{buildroot}%{_mandir}/man8/togglesebool*

%files utils
%doc LICENSE
%{_sbindir}/*
%{_mandir}/man[58]/*
%{_mandir}/ru/man*/*
%ghost %{_rundir}/setrans
%{_tmpfilesdir}/libselinux.conf

%files -n %{libname}
%{_libdir}/libselinux.so.%{major}*

%files -n %{devname}
%{_libdir}/libselinux.so
%{_libdir}/pkgconfig/libselinux.pc
%dir %{_includedir}/selinux
%{_includedir}/selinux/*
%{_mandir}/man3/*

%files -n %{statname}
%{_libdir}/libselinux.a

%files -n python3-libselinux
%{python3_sitearch}/selinux/
%{python3_sitearch}/selinux-%{version}-py*.egg-info
%{python3_sitearch}/_selinux*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14322 |21mr|libsemanage-3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_python3 1
# caused by python bug
# undefined reference to `_Py_NoneStruct'
%global _disable_ld_no_undefined %nil

%define libsepolver %{version}
%define libselinuxver %{version}


Summary: 	SELinux binary policy manipulation library
Name: 		libsemanage
Version: 	3.0
Release: 	2
Epoch:		1
License: 	GPLv2+
Group: 		System/Libraries
URL:		http://www.selinuxproject.org
Source0:	https://github.com/SELinuxProject/selinux/releases/download/20191204/libsemanage-%{version}.tar.gz
Source1: 	semanage.conf
Patch0001:	0001-libsemanage-Fix-RESOURCE_LEAK-and-USE_AFTER_FREE-cov.patch
BuildRequires: 	bison
BuildRequires: 	flex
BuildRequires: 	pkgconfig(libselinux)  >= %{libselinuxver}
BuildRequires: 	pkgconfig(libsepol) >= %{libsepolver}
BuildRequires: 	bzip2-devel
BuildRequires:	swig
BuildRequires:  pkgconfig(audit)
BuildRequires:  pkgconfig(python3)

%description
Security-enhanced Linux is a feature of the Linux® kernel and a number
of utilities with enhanced security functionality designed to add
mandatory access controls to Linux.  The Security-enhanced Linux
kernel contains new architectural components originally developed to
improve the security of the Flask operating system. These
architectural components provide general support for the enforcement
of many kinds of mandatory access control policies, including those
based on the concepts of Type Enforcement®, Role-based Access
Control, and Multi-level Security.

libsemanage provides an API for the manipulation of SELinux binary policies.
It is used by checkpolicy (the policy compiler) and similar tools, as well
as by programs like load_policy that need to perform specific transformations
on binary policies such as customizing policy boolean settings.

%package -n %{mklibname semanage 1}
Summary: 	SELinux binary policy manipulation library
Group: 		System/Libraries
Provides: 	semanage = %{EVRD}

%description -n %{mklibname semanage 1}
libsemanage provides an API for the manipulation of SELinux binary policies.
It is used by checkpolicy (the policy compiler) and similar tools, as well
as by programs like load_policy that need to perform specific transformations
on binary policies such as customizing policy boolean settings.

%package -n %{mklibname semanage -d}
Summary: 	Header files and libraries used to build policy manipulation tools
Group: 		Development/C
Requires: 	%{mklibname semanage 1} = %{EVRD}
Provides: 	semanage-devel = %{EVRD}
Obsoletes: 	%{mklibname semanage 1 -d}

%description -n %{mklibname semanage -d}
The libsemanage-devel package contains the libraries and header files
needed for developing applications that manipulate binary policies.

%package -n %{mklibname semanage -d -s}
Summary: 	Static libraries used to build policy manipulation tools
Group: 		Development/C
Requires: 	%{mklibname semanage -d} = %{EVRD}
Provides: 	semanage-static-devel = %{EVRD}
Obsoletes: 	%{mklibname semanage 1 -d -s}

%description -n %{mklibname semanage -d -s}
The libsemanage-devel package contains the static libraries
needed for developing applications that manipulate binary policies.

%package -n	python3-%{name}
Summary: 	Python bindings for %{name}
Group: 		Development/Python
Requires:       semanage = %{EVRD}
Requires:       python3-libselinux
Provides: 	semanage-python3 = %{EVRD}

%description -n python3-%{name}
The libsemanage-python3 package contains the python 3 bindings for developing
SELinux management applications.

%prep
%autosetup -n libsemanage-%{version} -p 2

%build
%set_build_flags

# To support building the Python wrapper against multiple Python runtimes
# Define a function, for how to perform a "build" of the python wrapper against
# a specific runtime:
BuildPythonWrapper() {
  BinaryName=$1

  # Perform the build from the upstream Makefile:
  %make_build \
    PYTHON=$BinaryName \
    LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" \
    pywrap
}

%make_build clean
%make_build swigify
%make_build LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all

BuildPythonWrapper \
  %{__python3}

%install
InstallPythonWrapper() {
  BinaryName=$1

  make \
    CC=%{__cc} \
    PYTHON=$BinaryName \
    DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}%{_libdir}" \
    install-pywrap
}

mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{buildroot}%{_sharedstatedir}/selinux
mkdir -p %{buildroot}%{buildroot}%{_sharedstatedir}/selinux/tmp
make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install

InstallPythonWrapper \
  %{__python3} \
  $(python3-config --extension-suffix)
  
cp %{SOURCE1} %{buildroot}/etc/selinux/semanage.conf
ln -sf  %{_libdir}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so

sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdir}/selinux/semanage_migrate_store

%files -n %{mklibname semanage 1}
%config(noreplace) /etc/selinux/semanage.conf
%{_libexecdir}/selinux/semanage_migrate_store
%{_libdir}/libsemanage.so.1

%files -n %{mklibname semanage -d -s}
%{_libdir}/libsemanage.a

%files -n %{mklibname semanage -d}
%{_libdir}/libsemanage.so
%{_libdir}/pkgconfig/libsemanage.pc
%{_includedir}/semanage
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/ru/man5/semanage.conf.*

%files -n python3-%{name}
%{python3_sitearch}/_semanage.*
%{python3_sitearch}/semanage.py*
%{python3_sitearch}/__pycache__/semanage*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14323 |21mr|libsemanage-3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_python3 1
# caused by python bug
# undefined reference to `_Py_NoneStruct'
%global _disable_ld_no_undefined %nil

%define libsepolver %{version}
%define libselinuxver %{version}


Summary: 	SELinux binary policy manipulation library
Name: 		libsemanage
Version: 	3.0
Release: 	3
Epoch:		1
License: 	GPLv2+
Group: 		System/Libraries
URL:		http://www.selinuxproject.org
Source0:	https://github.com/SELinuxProject/selinux/releases/download/20191204/libsemanage-%{version}.tar.gz
Source1: 	semanage.conf
Patch0001:	0001-libsemanage-Fix-RESOURCE_LEAK-and-USE_AFTER_FREE-cov.patch
BuildRequires: 	bison
BuildRequires: 	flex
BuildRequires: 	pkgconfig(libselinux)  >= %{libselinuxver}
BuildRequires: 	pkgconfig(libsepol) >= %{libsepolver}
BuildRequires: 	bzip2-devel
BuildRequires:	swig
BuildRequires:  pkgconfig(audit)
BuildRequires:  pkgconfig(python3)

%description
Security-enhanced Linux is a feature of the Linux® kernel and a number
of utilities with enhanced security functionality designed to add
mandatory access controls to Linux.  The Security-enhanced Linux
kernel contains new architectural components originally developed to
improve the security of the Flask operating system. These
architectural components provide general support for the enforcement
of many kinds of mandatory access control policies, including those
based on the concepts of Type Enforcement®, Role-based Access
Control, and Multi-level Security.

libsemanage provides an API for the manipulation of SELinux binary policies.
It is used by checkpolicy (the policy compiler) and similar tools, as well
as by programs like load_policy that need to perform specific transformations
on binary policies such as customizing policy boolean settings.

%package -n %{mklibname semanage 1}
Summary: 	SELinux binary policy manipulation library
Group: 		System/Libraries
Provides: 	semanage = %{EVRD}

%description -n %{mklibname semanage 1}
libsemanage provides an API for the manipulation of SELinux binary policies.
It is used by checkpolicy (the policy compiler) and similar tools, as well
as by programs like load_policy that need to perform specific transformations
on binary policies such as customizing policy boolean settings.

%package -n %{mklibname semanage -d}
Summary: 	Header files and libraries used to build policy manipulation tools
Group: 		Development/C
Requires: 	%{mklibname semanage 1} = %{EVRD}
Provides: 	semanage-devel = %{EVRD}
Obsoletes: 	%{mklibname semanage 1 -d} < 3.0

%description -n %{mklibname semanage -d}
The libsemanage-devel package contains the libraries and header files
needed for developing applications that manipulate binary policies.

%package -n %{mklibname semanage -d -s}
Summary: 	Static libraries used to build policy manipulation tools
Group: 		Development/C
Requires: 	%{mklibname semanage -d} = %{EVRD}
Provides: 	semanage-static-devel = %{EVRD}
Obsoletes: 	%{mklibname semanage 1 -d -s} < 3.0

%description -n %{mklibname semanage -d -s}
The libsemanage-devel package contains the static libraries
needed for developing applications that manipulate binary policies.

%package -n	python3-%{name}
Summary: 	Python bindings for %{name}
Group: 		Development/Python
Requires:       semanage = %{EVRD}
Requires:       python3-libselinux
Provides: 	semanage-python3 = %{EVRD}

%description -n python3-%{name}
The libsemanage-python3 package contains the python 3 bindings for developing
SELinux management applications.

%prep
%autosetup -n libsemanage-%{version} -p 2

%build
%set_build_flags

# To support building the Python wrapper against multiple Python runtimes
# Define a function, for how to perform a "build" of the python wrapper against
# a specific runtime:
BuildPythonWrapper() {
  BinaryName=$1

  # Perform the build from the upstream Makefile:
  %make_build \
    PYTHON=$BinaryName \
    LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" \
    pywrap
}

%make_build clean
%make_build swigify
%make_build LIBDIR="%{_libdir}" SHLIBDIR="%{_lib}" all

BuildPythonWrapper \
  %{__python3}

%install
InstallPythonWrapper() {
  BinaryName=$1

  make \
    CC=%{__cc} \
    PYTHON=$BinaryName \
    DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}%{_libdir}" \
    install-pywrap
}

mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{buildroot}%{_sharedstatedir}/selinux
mkdir -p %{buildroot}%{buildroot}%{_sharedstatedir}/selinux/tmp
make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install

InstallPythonWrapper \
  %{__python3} \
  $(python3-config --extension-suffix)
  
cp %{SOURCE1} %{buildroot}/etc/selinux/semanage.conf
ln -sf  %{_libdir}/libsemanage.so.1 %{buildroot}/%{_libdir}/libsemanage.so

sed -i '1s%\(#! */usr/bin/python\)\([^3].*\|\)$%\13\2%' %{buildroot}%{_libexecdir}/selinux/semanage_migrate_store

%files -n %{mklibname semanage 1}
%config(noreplace) /etc/selinux/semanage.conf
%{_libexecdir}/selinux/semanage_migrate_store
%{_libdir}/libsemanage.so.1

%files -n %{mklibname semanage -d -s}
%{_libdir}/libsemanage.a

%files -n %{mklibname semanage -d}
%{_libdir}/libsemanage.so
%{_libdir}/pkgconfig/libsemanage.pc
%{_includedir}/semanage
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/ru/man5/semanage.conf.*

%files -n python3-%{name}
%{python3_sitearch}/_semanage.*
%{python3_sitearch}/semanage.py*
%{python3_sitearch}/__pycache__/semanage*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14324 |21mr|libsepol-3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

# major is the part of the library name after the .so
%define major 1
%define libname %mklibname sepol %{major}
%define develname %mklibname sepol -d
%define stdevelname %mklibname sepol -d -s


Summary: 	SELinux binary policy manipulation library
Name: 		libsepol
Version: 	3.0
Release: 	2
Epoch:		1
License: 	GPL
Group: 		System/Libraries
URL:		http://www.selinuxproject.org
Source0:	https://github.com/SELinuxProject/selinux/releases/download/20191204/libsepol-%{version}.tar.gz
Patch1:		0001-libsepol-add-some-debug.patch
BuildRequires:	flex


%description
Security-enhanced Linux is a feature of the Linux® kernel and a number
of utilities with enhanced security functionality designed to add
mandatory access controls to Linux.  The Security-enhanced Linux
kernel contains new architectural components originally developed to
improve the security of the Flask operating system. These
architectural components provide general support for the enforcement
of many kinds of mandatory access control policies, including those
based on the concepts of Type Enforcement®, Role-based Access
Control, and Multi-level Security.

libsepol provides an API for the manipulation of SELinux binary policies.
It is used by checkpolicy (the policy compiler) and similar tools, as well
as by programs like load_policy that need to perform specific transformations
on binary policies such as customizing policy boolean settings.

%package -n %{libname}
Summary: SELinux binary policy manipulation library
Group: System/Libraries
Provides: libsepol = %{EVRD}

%description -n %{libname}
libsepol provides an API for the manipulation of SELinux binary policies.
It is used by checkpolicy (the policy compiler) and similar tools, as well
as by programs like load_policy that need to perform specific transformations
on binary policies such as customizing policy boolean settings.

%package -n %{develname}
Summary: Header files and libraries used to build policy manipulation tools
Group: Development/C
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
Provides: sepol-devel = %{EVRD}

%description -n %{develname}
The libsepol-devel package contains the libraries and header files
needed for developing applications that manipulate binary policies.

%package -n %{stdevelname}
Summary: Static libraries used to build policy manipulation tools
Group: Development/C
Requires: %{develname} = %{EVRD}
Provides: %{name}-static-devel = %{EVRD}
Provides: sepol-static-devel = %{EVRD}

%description -n %{stdevelname}
The libsepol-devel package contains the static libraries
needed for developing applications that manipulate binary policies.

%prep
%autosetup -p2

%build
%make clean
%make CFLAGS="%{optflags}" CC=%{__cc} LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}/%{_lib}
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}%{_includedir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man3
mkdir -p %{buildroot}%{_mandir}/man8
make DESTDIR="%{buildroot}" LIBDIR="%{_libdir}" SHLIBDIR="%{_libdir}" install
rm -f %{buildroot}%{_bindir}/genpolbools
rm -f %{buildroot}%{_bindir}/genpolusers
rm -f %{buildroot}%{_bindir}/chkcon
rm -rf %{buildroot}%{_mandir}/man8
rm -rf %{buildroot}%{_mandir}/ru/man8

%files -n %{libname}
%{_libdir}/libsepol.so.%{major}

%files -n %{develname}
%{_mandir}/man3/*.3.*
%{_libdir}/libsepol.so
%{_libdir}/pkgconfig/libsepol.pc
%{_includedir}/sepol/*.h
%{_includedir}/sepol/cil
%dir %{_includedir}/sepol
%dir %{_includedir}/sepol/policydb
%{_includedir}/sepol/policydb/*.h

%files -n %{stdevelname}
%{_libdir}/libsepol.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14325 |21mr|libserializer-1.1.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	JFreeReport General Serialization Framework
Name:		libserializer
Version:	1.1.6
Release:	10
License:	LGPLv2+
Group:		Development/Java
Url:		http://reporting.pentaho.org
Source0:	http://downloads.sourceforge.net/jfreereport/%{name}-%{version}.zip
Patch0:		%{name}-1.1.2-fix-build.patch
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:	ant
BuildRequires:	ant-contrib
BuildRequires:	java-devel
BuildRequires:	jpackage-utils
BuildRequires:	libbase
Requires:	javapackages-filesystem
Requires:	libbase

%description
Libserializer contains a general serialization framework that simplifies the
task of writing custom Java serialization handlers.

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java 
Requires:	%{name} = %{version}-%{release}
Requires:	javapackages-filesystem

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
%patch0 -p0
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib libbase commons-logging-api
cd lib
ln -s %{_javadir}/ant ant-contrib

%build
ant jar javadoc

%install
mkdir -p %{buildroot}%{_javadir}
cp -p dist/libserializer-%{version}.jar %{buildroot}%{_javadir}
pushd %{buildroot}%{_javadir}
ln -s %{name}-%{version}.jar %{name}.jar
popd

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp bin/javadoc/docs/api %{buildroot}%{_javadocdir}/%{name}

%files
%doc ChangeLog.txt licence-LGPL.txt README.txt
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar

%files javadoc
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14326 |21mr|libserialport-0.1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname serialport %{major}
%define devname %mklibname -d serialport

Name:           libserialport
Version:        0.1.1
Release:        11%{?dist}
Summary:        Library for accessing serial ports
License:        LGPLv3+
Group:          System/Libraries
URL:            http://sigrok.org/wiki/%{name}
Source0:        http://sigrok.org/download/source/%{name}/%{name}-%{version}.tar.gz
BuildRequires:  doxygen
BuildRequires:  graphviz

Provides: bundled(jquery) = 1.7.1

%description
libserialport is a minimal library written in C that is intended to take care
of the OS-specific details when writing software that uses serial ports.

By writing your serial code to use libserialport, you enable it to work
transparently on any platform supported by the library.

The operations that are supported are:

- Port enumeration (obtaining a list of serial ports on the system).
- Opening and closing ports.
- Setting port parameters (baud rate, parity, etc).
- Reading, writing and flushing data.
- Obtaining error information.

%package  -n	%{libname}
Summary:        Development files for %{name}
Group:          System/Libraries

%description -n	%{libname}
Library for accessing serial ports

%package  -n	%{devname}
Summary:        Development files for %{name}
Requires:       %{libname} = %{EVRD}
Group:          System/Libraries

%description -n	%{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%package        doc
Summary:        API documentation for %{name}
BuildArch:      noarch

%description    doc
The %{name}-doc package contains documentation for developing software
with %{name}.


%prep
%setup -q

%build
%configure --disable-static
V=1 make %{?_smp_mflags}

# This builds documentation for the -doc package
make %{?_smp_mflags} doc


%install
%make_install
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'


%files -n %{libname}
%{_libdir}/%{name}.so.0*

%files -n %{devname}
%doc COPYING README
%{_includedir}/%{name}.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/%{name}.so

%files doc
%doc doxy/html-api/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14327 |21mr|libsexy-0.1.11-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname sexy %{major}
%define devname %mklibname sexy -d

Summary:	Collection of widgets for GTK+
Name:		libsexy
Version:	0.1.11
Release:	19
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.chipx86.com/wiki/Libsexy
Source0:	http://releases.chipx86.com/libsexy/libsexy/%{name}-%{version}.tar.bz2
Patch0:		libsexy-0.1.11-url-label.patch
Patch1:		libsexy-icon-name.patch
Patch2:		gtk2-single-include.patch
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)

%description
This is a collection of widgets for GTK+ 2.x.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Collection of widgets for GTK+
Group:		System/Libraries

%description -n %{libname}
This is a collection of widgets for GTK+ 2.x.

%files -n %{libname}
%{_libdir}/libsexy.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Collection of widgets for GTK+
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is a collection of widgets for GTK+ 2.x.

%files -n %{devname}
%doc ChangeLog AUTHORS NEWS
%{_datadir}/gtk-doc/html/libsexy
%{_includedir}/libsexy/*.h
%{_libdir}/libsexy.so
%{_libdir}/pkgconfig/libsexy.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .url-label
%patch1 -p1 -b .icon-name
%patch2 -p1 -b .gtk-single-include

%build
export LIBS=`pkg-config --libs gmodule-2.0`
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14328 |21mr|libshout-2.4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname shout %{major}
%define devname %mklibname shout -d

Summary:	A library for communicating with and sending data to an icecast server
Name:		libshout
Version:	2.4.3
Release:	2
Group:		System/Libraries
License:	LGPL+
Url:		http://www.icecast.org/
Source0:	http://downloads.us.xiph.org/releases/libshout/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)

%description
Libshout is a library for communicating with and sending data to an
icecast server.  It handles the socket connection, the timing of the
data, and prevents bad data from getting to the icecast server.

With just a few lines of code, a programmer can easily turn any
application into a streaming source for an icecast server.  Libshout also
allows developers who want a specific feature set (database access,
request taking) to concentrate on that feature set, instead of worrying
about how server communication works.

Please refer to the API reference and example code to start learning how
to use libshout in your own code.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libshout.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(speex)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/shout.pc
%{_libdir}/ckport/db/libshout.ckport
%{_datadir}/aclocal/shout.m4

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fis
%configure --disable-static
%make

%install
%makeinstall_std

# remove installed doc
rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14329 |21mr|libshumate-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} |rev |cut -d. -f2- |rev)
%define aver %(echo %{version} |tr -d "~")

%define api 1.0
%define major 1
%define libname %mklibname soup- %{api} %{major}
%define girname %mklibname soup-gir %{api}
%define devname %mklibname soup- %{api} -d

Summary:	GTK4 widget to display maps
Name:		libshumate
Version:	1.0.5
Release:	1
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://gnome.pages.gitlab.gnome.org/libshumate
Source0:	https://download.gnome.org/sources/libshumate/%{url_ver}/%{name}-%{aver}.tar.xz
BuildRequires:	gperf
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	valgrind
BuildRequires:	pkgconfig(gi-docgen)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libprotobuf-c)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(vapigen)

%description
GTK4 widget to display maps.

#----------------------------------------------------------------------------

%package i18n
Summary:	GTK4 widget localization for display maps
Group:		System/Libraries

%description i18n
GTK4 widget localization for display maps.

%files i18n -f shumate%{major}.lang
%doc NEWS README.md
%license COPYING

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GTK4 widget to display maps
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libname}
GTK4 widget to display maps.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Shumate-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, header files and utilities for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development libraries, header files and utilities for %{name}.

%files -n %{devname}
%doc NEWS README.md
%license COPYING
%{_bindir}/shumate-demo
%{_datadir}/gir-1.0/Shumate-%{api}.gir
%{_datadir}/vala/vapi/shumate-%{api}.*
%{_defaultdocdir}/%{name}-%{api}
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{aver}

%build
%meson	\
	-Ddemos=true	\
	-Dlibsoup3=true	\
	-Dvector_renderer=true
%meson_build

%install
%meson_install

%find_lang shumate%{major} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14330 |21mr|libsidplay-1.36.60-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname sidplay %{major}
%define devname %mklibname sidplay -d

Summary:	A Commodore 64 music player and SID chip emulator library
Name:		libsidplay
Version:	1.36.60
Release:	14
Epoch:		1
License:	GPLv2+
Group:		System/Libraries
Url:		http://home.arcor.de/ms2002sep/bak/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		libsidplay-1.36.60-fix-narrowing-error.patch

%description
This library provides the Sound Interface Device (SID) chip emulator
engine that is used by music player programs like SIDPLAY. With it
you can play musics from Commodore 64 (or compatible) programs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A Commodore 64 music player and SID chip emulator library
Group:		System/Libraries
Provides:	%{name} = %{version}

%description -n %{libname}
This library provides the Sound Interface Device (SID) chip emulator
engine that is used by music player programs like SIDPLAY. With it
you can play musics from Commodore 64 (or compatible) programs.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libsidplay.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing libsidplay applications
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	sidplay-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and the static library for compiling
applications that use libsidplay.

%files -n %{devname}
%doc DEVELOPER src/*.txt
%{_includedir}/sidplay/
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%configure \
	--enable-optfixpoint \
	--enable-optendian \
	--disable-static

%make


%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14331 |21mr|libsidplayfp-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
#undefine	_find_debuginfo_dwz_opts

%define	sv_major 0
%define	major 6
%define	libstilview %mklibname stilview %{sv_major}
%define	libname %mklibname sidplayfp %{major}
%define	devname %mklibname sidplayfp -d

Summary:	A library for the sidplay2 fork with resid-fp
Name:		libsidplayfp
Version:	2.4.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		https://github.com/libsidplayfp/libsidplayfp
Source0:	https://github.com/libsidplayfp/libsidplayfp/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libftdi1)

%description
We aim to improve the quality of emulating the 6581 and 8580 chips and the
surrounding C64 system in order to play SID music better.

%files

#-----------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
We aim to improve the quality of emulating the 6581 and 8580 chips and the
surrounding C64 system in order to play SID music better.
This package contains the main library.

%files -n %{libname}
%doc AUTHORS README COPYING NEWS
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------

%package -n %{libstilview}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}sidplayfp0 < 1.8.6
Obsoletes:	%{_lib}sidplayfp0 < 1.8.6

%description -n %{libstilview}
We aim to improve the quality of emulating the 6581 and 8580 chips and the
surrounding C64 system in order to play SID music better.
This package contains a support library.

%files -n %{libstilview}
%doc COPYING
%{_libdir}/libstilview.so.%{sv_major}*

#-----------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libstilview} = %{EVRD}
Provides:	sidplayfp-devel = %{EVRD}
Obsoletes:	%{_lib}sidplayfp-static-devel < 1.8.6

%description -n %{devname}
This package contains the libraries and header files needed to develop
programs which make use of %{name}.
The library documentation is available on header files.

%files -n %{devname}
%doc docs/html/*
%dir %{_includedir}/sidplayfp
%{_includedir}/sidplayfp/*
%dir %{_includedir}/stilview
%{_includedir}/stilview/*.h
%{_libdir}/%{name}.so
%{_libdir}/libstilview.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/libstilview.pc

#-----------------------------------------------------------

%prep
%setup -q

# Fir perms
chmod -x src/builders/residfp-builder/residfp/*.h
chmod -x src/builders/residfp-builder/residfp/*.cpp


%build
CFLAGS='%{optflags} -I%{_includedir}/libftdi1'
%configure	--disable-static \
					--enable-hardsid \
%ifarch aarch64 riscv64 %{e2k}
					--with-simd=none \
%endif
					--with-exsid=yes

%make

# Do also devel docs
%make doc


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14332 |21mr|libsigc++2.0-2.10.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver %(echo %{version}|cut -d. -f1,2)

%define pkgname libsigc++
%define api 2.0
%define major 0
%define libname %mklibname sigc++ %{api} %{major}
%define devname %mklibname sigc++ %{api} -d

Summary:	The Typesafe Signal Framework for C++
Name:		%{pkgname}%{api}
Version:	2.10.8
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libsigc++
Source0:	https://download.gnome.org/sources/libsigc++/%{url_ver}/%{pkgname}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xsltproc

%description
Callback system for use in widget libraries, abstract interfaces, and
general programming.

This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. Originally part
of the Gtk-- widget set, %{pkgname} is now a separate library to provide for
more general use. It is the most complete library of its kind with the
ablity to connect an abstract callback to a class method, function, or
function object. It contains adaptor classes for connection of dissimilar
callbacks and has an ease of use unmatched by other C++ callback
libraries.

Package gtkmm, which is a c++ binding to the famous gtk+ library, uses
%{pkgname}.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Typesafe Signal Framework for C++
Group:		System/Libraries
Provides:	%{pkgname}%{api} = %{EVRD}

%description -n %{libname}
Callback system for use in widget libraries, abstract interfaces, and
general programming.

This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. Originally part
of the Gtk-- widget set, %{pkgname} is now a separate library to provide for
more general use. It is the most complete library of its kind with the
ablity to connect an abstract callback to a class method, function, or
function object. It contains adaptor classes for connection of dissimilar
callbacks and has an ease of use unmatched by other C++ callback
libraries.

Package gtkmm, which is a c++ binding to the famous gtk+ library, uses
%{pkgname}.

%files -n %{libname}
%doc COPYING NEWS README
%{_libdir}/libsigc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for the Typesafe Signal Framework for C++ 
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{pkgname}%{api}-devel = %{EVRD}
Provides:	sigc++%{api}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and static libraries of %{pkgname},
which are needed when developing or compiling applications which use
%{pkgname}.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_libdir}/sigc++-%{api}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{pkgname} library
Group:		Documentation

%description doc
This package provides API documentation of %{pkgname} library.

#files doc
#doc %%{_docdir}/libsigc++-%%{api}
#{_datadir}/devhelp/books/libsigc++-%%{api}

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
%meson -Dbuild-documentation=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14333 |21mr|libsigc++3.0-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define url_ver %(echo %{version}|cut -d. -f1,2)

%define pkgname libsigc++
%define api 3.0
%define major 0
%define libname %mklibname sigc++ %{api} %{major}
%define devname %mklibname sigc++ %{api} -d

Summary:	The Typesafe Signal Framework for C++
Name:		%{pkgname}%{api}
Version:	3.2.0
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libsigc++
Source0:	https://download.gnome.org/sources/libsigc++/%{url_ver}/%{pkgname}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xsltproc

%description
Callback system for use in widget libraries, abstract interfaces, and
general programming.

This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. Originally part
of the Gtk-- widget set, %{pkgname} is now a separate library to provide for
more general use. It is the most complete library of its kind with the
ablity to connect an abstract callback to a class method, function, or
function object. It contains adaptor classes for connection of dissimilar
callbacks and has an ease of use unmatched by other C++ callback
libraries.

Package gtkmm, which is a c++ binding to the famous gtk+ library, uses
%{pkgname}.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Typesafe Signal Framework for C++
Group:		System/Libraries
Provides:	%{pkgname}%{api} = %{EVRD}

%description -n %{libname}
Callback system for use in widget libraries, abstract interfaces, and
general programming.

This library implements a full callback system for use in widget
libraries, abstract interfaces, and general programming. Originally part
of the Gtk-- widget set, %{pkgname} is now a separate library to provide for
more general use. It is the most complete library of its kind with the
ablity to connect an abstract callback to a class method, function, or
function object. It contains adaptor classes for connection of dissimilar
callbacks and has an ease of use unmatched by other C++ callback
libraries.

Package gtkmm, which is a c++ binding to the famous gtk+ library, uses
%{pkgname}.

%files -n %{libname}
%doc COPYING NEWS README.md
%{_libdir}/libsigc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for the Typesafe Signal Framework for C++ 
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{pkgname}%{api}-devel = %{EVRD}
Provides:	sigc++%{api}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and static libraries of %{pkgname},
which are needed when developing or compiling applications which use
%{pkgname}.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*
%{_libdir}/sigc++-%{api}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{pkgname} library
Group:		Documentation

%description doc
This package provides API documentation of %{pkgname} library.

#files doc
#doc %%{_docdir}/libsigc++-%%{api}
#{_datadir}/devhelp/books/libsigc++-%%{api}

#----------------------------------------------------------------------------

%prep
%setup -qn %{pkgname}-%{version}

%build
%meson -Dbuild-documentation=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14334 |21mr|libsignon-glib-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define girmajor 2.0
%define libname %mklibname signon-glib %{major}
%define girname %mklibname signon-glib-gir %{girmajor}
%define devname %mklibname signon-glib -d

Summary:	Authorization and authentication management for glib
Name:		libsignon-glib
Version:	2.1
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://code.google.com/p/accounts-sso/
Source0:	https://gitlab.com/accounts-sso/libsignon-glib/-/archive/%{version}/libsignon-glib-%{version}.tar.gz
BuildRequires:	python3-gi >= 2.90
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(signond)
BuildRequires:	pkgconfig(vapigen)

%description
libsignon-glib provides authorization and authentication management for GLib
applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Accounts and SSO (Single Sign-On) framework
Group:		System/Libraries

%description -n %{libname}
libsignon-glib provides authorization and authentication management for GLib
applications.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Signon-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc COPYING AUTHORS
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}
%{_datadir}/gir-1.0/Signon-%{girmajor}.gir
%{_libdir}/girepository-1.0/Signon-2.0.typelib
%{_datadir}/vala/vapi/*
%{_datadir}/gtk-doc/html/%{name}/*

#----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	Python binding for %{name}
Group:		Development/Python

%description -n python-%{name}
Python binding for %{name}.

%files -n python-%{name}
%{python3_sitearch}/gi/overrides/Signon.*
%{python3_sitearch}/gi/overrides/__pycache__

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# add missing files
cp libsignon-glib/com.google.code.AccountsSSO*.xml libsignon-glib/interfaces

%build
%meson -Dtests=false
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14335 |21mr|libsigsegv-2.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname sigsegv %{major}
%define devname %mklibname sigsegv -d
%define sdevname %mklibname sigsegv -d -s

Summary:	Library for handling page faults in user mode
Name:		libsigsegv
Version:	2.14
Release:	1
License:	GPLv2+
Group:		System/Libraries
URL:		http://libsigsegv.sourceforge.net/
Source0:	http://ftp.gnu.org/gnu/libsigsegv/%{name}-%{version}.tar.gz

%description
This is a library for handling page faults in user mode. A page fault
occurs when a program tries to access to a region of memory that is
currently not available. Catching and handling a page fault is a useful
technique for implementing:
  - pageable virtual memory,
  - memory-mapped access to persistent databases,
  - generational garbage collectors,
  - stack overflow handlers,
  - distributed shared memory,

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for handling page faults in user mode
Group:		System/Libraries

%description -n %{libname}
This is a library for handling page faults in user mode. A page fault
occurs when a program tries to access to a region of memory that is
currently not available. Catching and handling a page fault is a useful
technique for implementing:
  - pageable virtual memory,
  - memory-mapped access to persistent databases,
  - generational garbage collectors,
  - stack overflow handlers,
  - distributed shared memory,

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README
/%{_lib}/libsigsegv.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
Libraries and header files for %{name} development.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libsigsegv.so

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development libraries for %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static development libraries for %{name} development.

%files -n %{sdevname}
%{_libdir}/lib*.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--libdir=/%{_lib} \
	--enable-shared \
	--enable-static
%make

%install
%makeinstall_std

rm -f %{buildroot}/%{_lib}/*.la
rm -f %{buildroot}/%{_lib}/*.so

install -d %{buildroot}%{_libdir}
ln -s /%{_lib}/libsigsegv.so.%{major} %{buildroot}%{_libdir}/libsigsegv.so
mv %{buildroot}/%{_lib}/lib*.a %{buildroot}%{_libdir}/

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14336 |21mr|libslirp-4.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		libslirp
Version:	4.6.1
Release:	1
Summary:	A general purpose TCP-IP emulator
Group:		System/Libraries
# check the SPDX tags in source files for details
License:	BSD and MIT
URL:		https://gitlab.freedesktop.org/slirp/%{name}
Source0:	%{url}/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:	git-core
BuildRequires:	meson
BuildRequires:	glib2-devel

%description
A general purpose TCP-IP emulator used by virtual machine hypervisors
to provide virtual networking services.

#---------------------------------------------------------------------
%package -n %{libname}
Summary:	A general purpose TCP-IP emulator
Group:		System/Libraries

%description -n %{libname}
A general purpose TCP-IP emulator used by virtual machine hypervisors
to provide virtual networking services.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	slirp-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%dir %{_includedir}/slirp/
%{_includedir}/slirp/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/slirp.pc

#---------------------------------------------------------------------

%prep
%autosetup -S git_am -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14337 |21mr|libsm-1.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname sm %{major}
%define develname %mklibname sm -d

Name:		libsm
Summary:	X Session Management Library
Version:	1.2.4
Release:	2
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libSM-%{version}.tar.xz

BuildRequires:	pkgconfig(ice)
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	x11-xtrans-devel >= 1.0.0

%description
This is the X Session Management Library.

%package -n %{libname}
Summary:	X Session Management Library
Group:		Development/X11
Conflicts:	libxorg-x11 < 7.0
Provides:	%{name} = %{version}
# Compat with Fedora/RH
Provides:	libSM = %{EVRD}

%description -n %{libname}
This is the X Session Management Library.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	libsm-devel = %{version}-%{release}
Obsoletes:	%{_lib}sm6-devel < 1.2.1
Obsoletes:	%{_lib}sm-static-devel < 1.2.1
Conflicts:	libxorg-x11-devel < 7.0

%description -n %{develname}
Development files for %{name}

%prep
%setup -qn libSM-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}\
	--without-libuuid

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/doc/libSM

%pre -n %{develname}
if [ -h %{_includedir}/X11 ]; then
	rm -f %{_includedir}/X11
fi

%files -n %{libname}
%{_libdir}/libSM.so.%{major}*

%files -n %{develname}
%doc doc/*.xml
%{_libdir}/libSM.so
%{_libdir}/pkgconfig/sm.pc
%{_includedir}/X11/SM/SM.h
%{_includedir}/X11/SM/SMlib.h
%{_includedir}/X11/SM/SMproto.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14338 |21mr|libsmbios-2.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname smbios %{major}
%define	devname %mklibname smbios -d

Summary:	Open BIOS parsing libs
Name:		libsmbios
Version:	2.4.2
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/dell
Source0:	https://github.com/dell/libsmbios/archive/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	help2man
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
# libsmbios only ever makes sense on intel compatible arches:
# no DMI tables on ppc, s390, etc.
ExclusiveArch:	%{ix86} x86_64


%description
Libsmbios is a library and utilities that can be used by client programs to
get information from standard BIOS tables, such as the SMBIOS table.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libsmbios shared libraries
Group:		System/Libraries

%description -n %{libname}
Libsmbios is a library and utilities that can be used by client programs 
to get information from standard BIOS tables, such as the SMBIOS table.

%files -n %{libname}
%doc COPYING
#{_libdir}/libsmbios.so.%%{major}*
%{_libdir}/libsmbios_c.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and archives
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libsmbios is a library and utilities that can be used by client programs 
to get information from standard BIOS tables, such as the SMBIOS table.
This package contains the headers and the files necessary to compile new 
client programs against libsmbios.

%files -n %{devname}
%doc COPYING
%{_includedir}/smbios_c
%{_libdir}/*.so
%{_libdir}/pkgconfig/libsmbios_c.pc

#----------------------------------------------------------------------------

%package utils
Summary:	The "supported" sample binaries that use libsmbios
Group:		System/Configuration/Hardware
Provides:	%{name}-bin = %{EVRD}

%description utils
Libsmbios is a library and utilities that can be used by client programs 
to get information from standard BIOS tables, such as the SMBIOS table.
This package contains some utilities that use libsmbios.

%files utils -f %{name}.lang
%doc COPYING README.md doc/*
%config(noreplace) %{_sysconfdir}/%{name}/logging.conf
%{_sbindir}/smbios-*
%{_datadir}/smbios-utils
%{_mandir}/man1/smbios-*.1.*
%{py3_platsitedir}/%{name}_c/*

#----------------------------------------------------------------------------

%prep
%setup -q

#fix tests
find src/ -name *.py -exec sed -i -e 's|python2|python|g' {} \;

#sed -i -e 's#-Werror ##' Makefile.*


%build
autoreconf -vfi
%configure	--disable-rpath \
				--disable-static

%make


%install
%makeinstall_std

# Fix perms
chmod +x %{buildroot}%{py3_platsitedir}/%{name}_c/trace_decorator.py

%find_lang %{name}


%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14339 |21mr|libsmi-0.4.8-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# mib repository
%define mibsdir %{_datadir}/%{name}/mibs
# pib repository
%define pibsdir %{_datadir}/%{name}/pibs

%define major 2
%define libname %mklibname smi %{major}
%define devname %mklibname smi -d

Summary:	LibSMI deals with SNMP MIBS definitions
Name:		libsmi
Version:	0.4.8
Release:	16
License:	BSD-like
Group:		System/Libraries
Url:		http://www.ibr.cs.tu-bs.de/projects/libsmi/
Source0:	ftp://ftp.ibr.cs.tu-bs.de/pub/local/libsmi/%{name}-%{version}.tar.gz
Patch0:		libsmi-0.4.8-format_not_a_string_literal_and_no_format_arguments.diff
Patch1:		libsmi-0.4.8-CVE-2010-2891.diff
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	wget
Requires:	coreutils
Conflicts:	%{_lib}smi2 < 0.4.8-13

%description
This package contains the SMI library and standard IETF and IANA Mibs. This
library provides a programmer-friendly interface to access MIB module
information.

System config file: %{_sysconfdir}/smi.conf
User config file:   .smirc

%files
%doc ANNOUNCE COPYING README THANKS smi.conf-example
%config(noreplace) %{_sysconfdir}/smi.conf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LibSMI deals with SNMP MIBS definitions
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-mibs-std

%description -n %{libname}
This package contains the shared SMI libraries and standard IETF and IANA Mibs.
This library provides a programmer-friendly interface to access MIB module
information.

System config file: %{_sysconfdir}/smi.conf
User config file:   .smirc

%files -n %{libname}
%{_libdir}/libsmi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for LibSMI
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	smi-devel = %{EVRD}

%description -n %{devname}
This package contails the include files and static library needed to develop
applications based on the SMI Library.

%files -n %{devname}
%doc TODO doc/draft-irtf-nmrg-sming-02.txt
%{_includedir}/*.h
%{_libdir}/lib*.so
%{_datadir}/aclocal/*.m4
%{_libdir}/pkgconfig/libsmi.pc
%{_mandir}/man3/libsmi.3*
%{_mandir}/man3/smi_*.3*

#----------------------------------------------------------------------------

%package mibs-ext
Summary:	Extended MIB files for LibSMI
Group:		System/Libraries
Requires:	smi-tools
Requires(post):	%{name}

%description mibs-ext
This package contains Extended MIB files for use with the SMI Library:

 o IRTF - SMIng oids, extensions, types
 o TUBS - MIBS for the Technical University of Braunschweig

%files mibs-ext
%dir %{mibsdir}/irtf
%dir %{mibsdir}/tubs
%{mibsdir}/irtf/*
%{mibsdir}/tubs/*
%dir %{pibsdir}
%dir %{pibsdir}/ietf
%dir %{pibsdir}/site
%dir %{pibsdir}/tubs
%{pibsdir}/ietf/*
%{pibsdir}/tubs/*

%post mibs-ext
## Append to config file: path for irtf and tubs
if test ! -f %{_sysconfdir}/smi.conf; then echo "# Generated by %{name}" > %{_sysconfdir}/smi.conf ; fi
for DIR in irtf tubs ; do
  if grep -q -e "^path.*%{mibsdir}/${DIR}" %{_sysconfdir}/smi.conf ; then continue; fi
  echo "path :%{mibsdir}/${DIR}" >> %{_sysconfdir}/smi.conf
done

#----------------------------------------------------------------------------

%package mibs-std
Summary:	Standard MIB files for LibSMI
Group:		System/Libraries
Requires:	smi-tools

%description mibs-std
This package contains standard MIB files for use with the SMI Library:

 o IETF - standard MIBS for SNMP, SNMPv2, interfaces, IP,
 o IANA - standard identifiers for protocols, ifType, etc.

%files mibs-std
%dir %{mibsdir}
%dir %{mibsdir}/iana
%dir %{mibsdir}/ietf
%dir %{mibsdir}/site
%{mibsdir}/iana/*
%{mibsdir}/ietf/*

#----------------------------------------------------------------------------

%package -n smi-tools
Summary:	LibSMI tools
Group:		Networking/Other
Requires:	%{libname} = %{version}
Requires:	wget

%description -n smi-tools
This package contains the LibSMI tools.

%files -n smi-tools
%{_bindir}/smi*
%{_mandir}/man1/smi*.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .format_not_a_string_literal_and_no_format_arguments
%patch1 -p0 -b .CVE-2010-2891

%build
%configure \
	--with-mibdir=%{mibsdir} \
	--with-pibdir=%{pibsdir} \
	--with-smipath=%{mibsdir}/site:%{mibsdir}/ietf:%{mibsdir}/iana \
	--enable-smi \
	--enable-sming

%make

%install
%makeinstall_std

# something broke here...
rm -f %{buildroot}%{pibsdir}/*PIB*
rm -f %{buildroot}%{pibsdir}/*SPPI*
install -m0644 pibs/ietf/* %{buildroot}%{pibsdir}/ietf/
install -m0644 pibs/site/* %{buildroot}%{pibsdir}/site/
install -m0644 pibs/tubs/* %{buildroot}%{pibsdir}/tubs/
find %{buildroot}%{pibsdir}/ -name "Makefile*" | xargs rm -f

install -d %{buildroot}%{_sysconfdir}

cat > smi.conf << EOF
#
# smi.conf - Global/User SMI configuration file.
#
# See smi_config(3) for detailed information on configuration files.
#

# Extend (note the semicolon) the libsmi default module search path.
#path :%{mibsdir}/site
#path :%{mibsdir}/iana
#path :%{mibsdir}/ietf

# Add a private directory.
#path :/home/strauss/lib/mibs

# EXPERIMENTAL: Add a caching method (works only on UNIX systems). 
# NOTE: the cache directory must exist and permissions must be
# handled appropriately. A simple but insecure way is to apply
# a tmp flag to the directory (chmod 1777 /usr/local/share/mibs/cache).
#cache /usr/local/share/mibs/cache /usr/local/bin/smicache -d /usr/local/share/mibs/cache -p http://www.ibr.cs.tu-bs.de/projects/libsmi/smicache/

# Don't show any errors by default.
level 0

# Preload some basic SMIv2 modules.
load SNMPv2-SMI
load SNMPv2-TC
load SNMPv2-CONF

# Make smilint shout loud to report all errors and warnings.
smilint: level 9

# But please don't claim about any names longer than 32 chars.
# (note: this is the prefix of errors namelength-32-module,
#  -type, -object, -enumeration, and -bit)
smilint: hide namelength-32

# Preloading some more modules for special applications.
tcpdump: load DISMAN-SCRIPT-MIB
tcpdump: load IF-MIB
smiquery: load IF-MIB
EOF

install -m0644 smi.conf %{buildroot}%{_sysconfdir}/smi.conf

install -d %{buildroot}%{mibsdir}/site
install -d %{buildroot}%{pibsdir}/site

# cleanups
rm -f %{buildroot}%{_libdir}/*.*a

%check
# fails a couple of tests (2 in {0.4.4, 0.4.5})
make check ||:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14340 |21mr|libsndfile-1.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname sndfile %{major}
%define	devname %mklibname sndfile -d

%bcond_with	octave
%bcond_with	bootstrap

Summary:	A library to handle various audio file formats
Name:		libsndfile
Version:	1.1.0
Release:	4
License:	LGPLv2+
Group:		Sound
Url:		http://www.mega-nerd.com/libsndfile/
Source0:	https://github.com/libsndfile/libsndfile/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		libsndfile-1.0.31-CVE-2018-19758.patch
Patch1:		libsndfile-psf_strlcpy_crlf-fix-CVE-2015-8075.patch
Patch2:		0001-configure-ac-substitute-EXTERNAL_MPEG_LIBS-in-sndfile-pc.patch
Patch3:		CVE-2024-50612.patch
BuildRequires:	autogen
%if !%{with bootstrap}
%ifarch %{ix86} x86_64
BuildRequires:	nasm
%endif
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(samplerate)
%endif
BuildRequires:	python3
BuildRequires:	lame-devel
BuildRequires:	metis-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(celt)
BuildRequires:	pkgconfig(flac) >= 1.3.1
BuildRequires:	pkgconfig(libmpg123) >= 1.25.10
BuildRequires:	pkgconfig(ogg) >= 1.3.0
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(sqlite3) >= 3.2
BuildRequires:	pkgconfig(vorbis) >= 1.2.3
BuildRequires:	pkgconfig(vorbisenc)

%description
libsndfile is a C library for reading and writing sound files such as AIFF,
AU and WAV files through one standard interface. It can currently read/write
8, 16, 24 and 32-bit PCM files as well as 32-bit floating point WAV files and
a number of compressed formats.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of sndfile
Group:		System/Libraries

%description -n %{libname}
libsndfile is a C library for reading and writing sound files such as AIFF,
AU and WAV files through one standard interface. It can currently read/write
8, 16, 24 and 32-bit PCM files as well as 32-bit floating point WAV files and
a number of compressed formats.
This package contains the shared library to run applications based on
libsndfile.

%files -n %{libname}
%doc AUTHORS COPYING README.md
%{_libdir}/libsndfile.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc to develop libsndfile applications 
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:		sndfile-devel = %{EVRD}

%description -n %{devname}
Libraries, include files, etc you can use to develop libsndfile applications.

%files -n %{devname}
%doc %{_docdir}/libsndfile
%doc CHANGELOG.md COPYING
%{_libdir}/libsndfile.so
%{_includedir}/sndfile.h
%{_includedir}/sndfile.hh
%{_libdir}/pkgconfig/sndfile.pc

#----------------------------------------------------------------------------

%package progs
Summary:	Example progs based on libsndfile
Group:		Sound

%description progs
This contains sndfile-info for printing information about a sound
file and sndfile-play for playing a sound file.

%files progs
%doc COPYING
%{_bindir}/sndfile-*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%if %{with octave}
%package octave
Summary:	Octave modules based on libsndfile
Group:		Sound
BuildRequires:	octave-devel

%description octave
This contains octave modules based on libsndfile for reading, writing and
playing audio files.

%files octave
%doc COPYING
%{_datadir}/octave/
%dir %{_libdir}/octave/*/site/oct/%{_target_platform}/sndfile
%{_libdir}/octave/*/site/oct/%{_target_platform}/sndfile/PKG_ADD
%{_libdir}/octave/*/site/oct/%{_target_platform}/sndfile/sndfile.oct
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1
autoreconf -fi -IM4

%build
%configure \
%if %{with octave}
	--enable-octave \
%endif
	--disable-static
%make V=1


%install
%makeinstall_std

rm -rf %{buildroot}%{_includedir}/FLAC

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14341 |21mr|libsodium-1.0.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 23
%define libname %mklibname sodium %{major}
%define devname %mklibname sodium -d

Summary:	The Sodium crypto library
Name:		libsodium
Version:	1.0.18
Release:	2
License:	ISC
Group:		System/Libraries
Url:		http://libsodium.org
Source0:	http://download.libsodium.org/libsodium/releases/%{name}-%{version}.tar.gz

%description
Sodium is a new, easy-to-use software library for encryption, decryption, 
signatures, password hashing and more. It is a portable, cross-compilable, 
installable, packageable fork of NaCl, with a compatible API, and an extended 
API to improve usability even further. Its goal is to provide all of the core 
operations needed to build higher-level cryptographic tools. The design 
choices emphasize security, and "magic constants" have clear rationales.

The same cannot be said of NIST curves, where the specific origins of certain 
constants are not described by the standards. And despite the emphasis on 
higher security, primitives are faster across-the-board than most 
implementations of the NIST standards.

#--------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Sodium crypto library
Group:		System/Libraries

%description -n %{libname}
Sodium is a new, easy-to-use software library for encryption, decryption, 
signatures, password hashing and more. It is a portable, cross-compilable, 
installable, packageable fork of NaCl, with a compatible API, and an extended 
API to improve usability even further. Its goal is to provide all of the core 
operations needed to build higher-level cryptographic tools. The design 
choices emphasize security, and "magic constants" have clear rationales.

The same cannot be said of NIST curves, where the specific origins of certain 
constants are not described by the standards. And despite the emphasis on 
higher security, primitives are faster across-the-board than most 
implementations of the NIST standards.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libsodium.so.%{major}*

#--------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files of %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains headers and other necessary files to develop.
or compile applications that use %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog README.markdown THANKS
%doc test/default/*.{c,h}
%{_includedir}/sodium.h
%{_includedir}/sodium/
%{_libdir}/libsodium.so
%{_libdir}/pkgconfig/libsodium.pc

#--------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--disable-silent-rules
%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14342 |21mr|libsolv-0.7.20-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname solv %{major}
%define extlibname %mklibname solvext %{major}
%define devname %mklibname solv -d

Summary:	Package dependency solver and repository storage system
Name:		libsolv
Version:	0.7.20
Release:	3
License:	MIT
Group:		System/Libraries
# See also: https://github.com/openSUSE/libsolv
URL:		http://en.opensuse.org/openSUSE:Libzypp_satsolver
Source0:	https://github.com/openSUSE/libsolv/archive/%{version}/%{name}-%{version}.tar.gz

# Teach libsolv about znver1 and e2k arches
# znver1 is x86_64 with -mtune=znver1, invented in OpenMandriva and not used in ROSA
# e2k is Russian VLIW-like architecture
Patch0501:	libsolv-arches.diff

# OpenMandriva patch for transitioning from RPM5
Patch1001:	1001-ext-Ignore-DistEpoch-entirely.patch


BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(zlib)
#BuildRequires:	pkgconfig(bzip2)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zck)
Requires:	gzip
Requires:	bzip2
Requires:	xz
Requires:	coreutils
Requires:	findutils

%description
Solving dependencies is the core functionality for any software management
application on Linux.

Dependencies are used to divide and share functionalities across multiple
software elements.

Linux (and Unix) follows two basic concepts to implement Divide & Conquer -
breaking a large problem into smaller, more manageable ones.

* Make each program do one thing well. See Basics of the Unix Philosophy
  for details.
* Use shared libraries to share implementations and save disk and memory
  space

Every software package expresses the functionalities it provides to others
and those it requires from others through dependencies.

The task of the dependency resolver is to check and fulfill all these
relations when managing software.

Basic laws of resolving

The dependency solver tries to solve dependencies without user intervention
based on two basic rules

* Fulfill the install/remove requests given at start
* Keep the (dependencies of the) installed system consistent

Since the solver treats every package alike, these rules have some major and
sometimes unexpected implications. A broken dependency might result in
removal of lots of packages - the resulting system is still consistent
but highly unusable.

%files
%{_bindir}/*
%exclude %{_bindir}/solv
%{_mandir}/man1/*

#------------------------------------------------------------------------------

%package demo
Summary:	Package dependency solver and repository storage system
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	curl
Requires:	gnupg2

%description demo
Applications demoing the %{name} library.

%files demo
%{_bindir}/solv

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Package dependency solver and repository storage system
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Package dependency solver and repository storage system.

%files -n %{libname}
%{_libdir}/libsolv.so.%{major}

#------------------------------------------------------------------------------

%package -n %{extlibname}
Summary:	Package dependency solver and repository storage system
Group:		System/Libraries

%description -n %{extlibname}
Package dependency solver and repository storage system.

%files -n %{extlibname}
%{_libdir}/libsolvext.so.%{major}

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{extlibname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	solv-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/pkgconfig/libsolv.pc
%{_libdir}/pkgconfig/libsolvext.pc
%{_libdir}/*.so
%{_datadir}/cmake/Modules/FindLibSolv.cmake
%{_mandir}/man3/*

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%define _disable_lto 1

# The parameters below are intended to ensure
# that the DNF stack works correctly on OpenMandriva
# The FEDORA switch sets some definitions up that aren't
# otherwise available.
%cmake -GNinja \
	-DFEDORA=1 \
	-DWITH_LIBXML2:BOOL=ON \
	-DWITH_SYSTEM_ZCHUNK:BOOL=ON \
	-DENABLE_COMPLEX_DEPS:BOOL=ON \
	-DENABLE_RPMDB_BYRPMHEADER:BOOL=ON \
	-DENABLE_RPMDB_LIBRPM:BOOL=ON \
	-DENABLE_RPMPKG_LIBRPM:BOOL=ON \
	-DENABLE_LZMA_COMPRESSION:BOOL=ON \
	-DENABLE_ZSTD_COMPRESSION:BOOL=ON \
	-DENABLE_ZCHUNK_COMPRESSION:BOOL=ON \
	-DENABLE_BZIP2_COMPRESSION:BOOL=ON \
	-DENABLE_COMPS:BOOL=ON \
	-DENABLE_APPDATA:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

%check
make ARGS=--output-on-failure test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14343 |21mr|libsolv-0.7.20-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname solv %{major}
%define extlibname %mklibname solvext %{major}
%define devname %mklibname solv -d

Summary:	Package dependency solver and repository storage system
Name:		libsolv
Version:	0.7.20
Release:	5
License:	MIT
Group:		System/Libraries
# See also: https://github.com/openSUSE/libsolv
URL:		http://en.opensuse.org/openSUSE:Libzypp_satsolver
Source0:	https://github.com/openSUSE/libsolv/archive/%{version}/%{name}-%{version}.tar.gz

# Teach libsolv about znver1 and e2k arches
# znver1 is x86_64 with -mtune=znver1, invented in OpenMandriva and not used in ROSA
# e2k is Russian VLIW-like architecture
Patch0501:	libsolv-arches.diff

# OpenMandriva patch for transitioning from RPM5
Patch1001:	1001-ext-Ignore-DistEpoch-entirely.patch


BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(zlib)
#BuildRequires:	pkgconfig(bzip2)
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zck)
Requires:	gzip
Requires:	bzip2
Requires:	xz
Requires:	coreutils
Requires:	findutils

%description
Solving dependencies is the core functionality for any software management
application on Linux.

Dependencies are used to divide and share functionalities across multiple
software elements.

Linux (and Unix) follows two basic concepts to implement Divide & Conquer -
breaking a large problem into smaller, more manageable ones.

* Make each program do one thing well. See Basics of the Unix Philosophy
  for details.
* Use shared libraries to share implementations and save disk and memory
  space

Every software package expresses the functionalities it provides to others
and those it requires from others through dependencies.

The task of the dependency resolver is to check and fulfill all these
relations when managing software.

Basic laws of resolving

The dependency solver tries to solve dependencies without user intervention
based on two basic rules

* Fulfill the install/remove requests given at start
* Keep the (dependencies of the) installed system consistent

Since the solver treats every package alike, these rules have some major and
sometimes unexpected implications. A broken dependency might result in
removal of lots of packages - the resulting system is still consistent
but highly unusable.

%files
%{_bindir}/*
%exclude %{_bindir}/solv
%{_mandir}/man1/*

#------------------------------------------------------------------------------

%package demo
Summary:	Package dependency solver and repository storage system
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	curl
Requires:	gnupg2

%description demo
Applications demoing the %{name} library.

%files demo
%{_bindir}/solv

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Package dependency solver and repository storage system
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Package dependency solver and repository storage system.

%files -n %{libname}
%{_libdir}/libsolv.so.%{major}

#------------------------------------------------------------------------------

%package -n %{extlibname}
Summary:	Package dependency solver and repository storage system
Group:		System/Libraries

%description -n %{extlibname}
Package dependency solver and repository storage system.

%files -n %{extlibname}
%{_libdir}/libsolvext.so.%{major}

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{extlibname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	solv-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/pkgconfig/libsolv.pc
%{_libdir}/pkgconfig/libsolvext.pc
%{_libdir}/*.so
%{_datadir}/cmake/Modules/FindLibSolv.cmake
%{_mandir}/man3/*

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%define _disable_lto 1

# The parameters below are intended to ensure
# that the DNF stack works correctly on OpenMandriva
# The FEDORA switch sets some definitions up that aren't
# otherwise available.
%cmake -GNinja \
	-DFEDORA=1 \
	-DWITH_LIBXML2:BOOL=ON \
	-DWITH_SYSTEM_ZCHUNK:BOOL=ON \
	-DENABLE_COMPLEX_DEPS:BOOL=ON \
	-DENABLE_RPMDB_BYRPMHEADER:BOOL=ON \
	-DENABLE_RPMDB_LIBRPM:BOOL=ON \
	-DENABLE_RPMPKG_LIBRPM:BOOL=ON \
	-DENABLE_LZMA_COMPRESSION:BOOL=ON \
	-DENABLE_ZSTD_COMPRESSION:BOOL=ON \
	-DENABLE_ZCHUNK_COMPRESSION:BOOL=ON \
	-DENABLE_BZIP2_COMPRESSION:BOOL=ON \
	-DENABLE_COMPS:BOOL=ON \
	-DENABLE_APPDATA:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

%check
make ARGS=--output-on-failure test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14344 |21mr|libsoundio-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname soundio %{major}
%define devname %mklibname soundio -d

Summary:	C library for cross-platform real-time audio input and output
Name:		libsoundio
Version:	2.0.0
Release:	2
License:	MIT
Group:		Sound
Url:		http://libsound.io/
Source0:	https://github.com/andrewrk/libsoundio/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		libsoundio-2.0.0-adjust-pulseaudio-latency.patch
Patch1:		libsoundio-2.0.0-fix-memory-leak.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
Requires:	%{libname} = %{EVRD}

%description
C library providing cross-platform audio input and output. The API is suitable
for real-time software such as digital audio workstations as well as consumer
software such as music players. This library is an abstraction; however in the
delicate balance between performance and power, and API convenience, the scale
is tipped closer to the former. Features that only exist in some sound
backends are exposed.

%files
%doc CHANGELOG.md LICENSE README.md
%{_bindir}/sio_*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library files for %{name}.

%files -n %{libname}
%doc LICENSE
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	soundio-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc CHANGELOG.md LICENSE
%doc build/html/*
%{_includedir}/soundio/*.h
%{_libdir}/%{name}.so
%{_datadir}/cmake/Modules/FindSoundIo.cmake

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
%cmake \
	-DBUILD_STATIC_LIBS="OFF" \
	-DBUILD_TESTS="OFF" \
	-DENABLE_COREAUDIO="OFF" \
	-DENABLE_WASAPI="OFF" \
	-DCMAKE_BUILD_TYPE=Release
%make

# Since this is a library, build dev docs
%make doc


%install
%makeinstall_std -C build

# Install the cmake module for the library
mkdir -p %{buildroot}/%{_datadir}/cmake/Modules/
install -m 0644 doc/FindSoundIo.cmake %{buildroot}/%{_datadir}/cmake/Modules/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14345 |21mr|libsoup2.4-2.74.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define pkgname libsoup
%define api 2.4
%define major 1
%define libname %mklibname soup- %{api} %{major}
%define libgnome %mklibname soup-gnome- %{api} %{major}
%define girname %mklibname soup-gir %{api}
%define devname %mklibname soup- %{api} -d

Summary:	SOAP (Simple Object Access Protocol) implementation
Name:		%{pkgname}%{api}
Version:	2.74.2
Release:	1
License:	LGPLv2
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libsoup
Source0:	https://download.gnome.org/sources/libsoup/%{url_ver}/%{pkgname}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	python3
BuildRequires:	vala-tools
BuildRequires:	glib-networking
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(libpsl)
BuildRequires:	pkgconfig(krb5-gssapi)
Requires:	glib-networking

%description
Soup is a SOAP (Simple Object Access Protocol) implementation in C.

It provides an queued asynchronous callback-based mechanism for sending and
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C
compiler which generates client stubs and server skeletons for easily calling
and implementing SOAP methods.

#----------------------------------------------------------------------------

%package common
Summary:	Common files used by soup library
Group:		System/Libraries
Conflicts:	%{_lib}soup-2.4_1 < 2.56.0

%description common
Common files used by soup library (translations etc).

%files common -f %{pkgname}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for soup
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libname}
Soup is a SOAP (Simple Object Access Protocol) implementation in C.

It provides an queued asynchronous callback-based mechanism for sending and
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C
compiler which generates client stubs and server skeletons for easily calling
and implementing SOAP methods.

This package contains libraries used by soup.

%files -n %{libname}
%{_libdir}/libsoup-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgnome}
Summary:	Libraries for soup
Group:		System/Libraries
Conflicts:	%{_lib}soup-2.4_1 < 2.56.0

%description -n %{libgnome}
Soup is a SOAP (Simple Object Access Protocol) implementation in C.

It provides an queued asynchronous callback-based mechanism for sending and
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C
compiler which generates client stubs and server skeletons for easily calling
and implementing SOAP methods.

This package contains libraries used by soup.

%files -n %{libgnome}
%{_libdir}/libsoup-gnome-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for libsoup
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	%{libgnome} = %{EVRD}

%description -n %{girname}
GObject Introspection interface library for libsoup.

%files -n %{girname}
%{_libdir}/girepository-1.0/Soup-%{api}.typelib
%{_libdir}/girepository-1.0/SoupGNOME-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, header files and utilities for soup
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libgnome} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files necessary to develop applications with soup.

%files -n %{devname}
%doc README COPYING AUTHORS NEWS
%{_datadir}/gtk-doc/html/%{pkgname}-%{api}
%{_datadir}/gir-1.0/Soup-%{api}.gir
%{_datadir}/gir-1.0/SoupGNOME-%{api}.gir
%{_datadir}/vala/vapi/libsoup-%{api}.*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pkgname}-%{version}

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{pkgname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14346 |21mr|libsoup-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 3.0
%define major 0
%define libname %mklibname soup- %{api} %{major}
%define girname %mklibname soup-gir %{api}
%define devname %mklibname soup- %{api} -d

Summary:	SOAP (Simple Object Access Protocol) implementation
Name:		libsoup
Version:	3.2.1
Release:	1
License:	LGPLv2
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libsoup
Source0:	https://download.gnome.org/sources/libsoup/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	apache-base
BuildRequires:	glib-networking
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	python3
BuildRequires:	samba-common
BuildRequires:	vala-tools
BuildRequires:	python3dist(gi-docgen)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libbrotlidec)
BuildRequires:	pkgconfig(libnghttp2)
BuildRequires:	pkgconfig(libpsl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(sysprof-capture-4)
BuildRequires:	pkgconfig(vapigen)
Requires:	glib-networking

%description
Soup is a SOAP (Simple Object Access Protocol) implementation in C.

It provides an queued asynchronous callback-based mechanism for sending and
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C
compiler which generates client stubs and server skeletons for easily calling
and implementing SOAP methods.

#----------------------------------------------------------------------------

%package common
Summary:	Common files used by soup library
Group:		System/Libraries

%description common
Common files used by soup library (translations etc).

%files common -f %{name}-%{api}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for soup
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libname}
Soup is a SOAP (Simple Object Access Protocol) implementation in C.

It provides an queued asynchronous callback-based mechanism for sending and
servicing SOAP requests, and a WSDL (Web Service Definition Language) to C
compiler which generates client stubs and server skeletons for easily calling
and implementing SOAP methods.

This package contains libraries used by soup.

%files -n %{libname}
%{_libdir}/libsoup-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for libsoup
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface library for libsoup.

%files -n %{girname}
%{_libdir}/girepository-1.0/Soup-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, header files and utilities for soup
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files necessary to develop applications with soup.

%files -n %{devname}
%doc README AUTHORS NEWS
%license COPYING
%{_datadir}/gir-1.0/Soup-%{api}.gir
%{_datadir}/vala/vapi/libsoup-%{api}.*
%{_defaultdocdir}/%{name}-%{api}
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}-%{api} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14347 |21mr|libspectre-0.2.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname spectre %{major}
%define devname %mklibname spectre -d

Summary:	Postscript rendering library
Name:		libspectre
Version:	0.2.10
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://libspectre.freedesktop.org/wiki/
Source0:	http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
BuildRequires:	libgs-devel

%description
libspectre is a small library for rendering Postscript documents. It provides
a convenient easy to use API for handling and rendering Postscript documents.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Postscript rendering library
Group:		System/Libraries

%description -n %{libname}
libspectre is a small library for rendering Postscript documents. It provides
a convenient easy to use API for handling and rendering Postscript documents.

%files -n %{libname}
%doc AUTHORS NEWS README TODO
%{_libdir}/libspectre.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Postscript rendering library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libspectre is a small library for rendering Postscript documents. It provides
a convenient easy to use API for handling and rendering Postscript documents.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libspectre.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14348 |21mr|libspiro-1.1.20200505-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	1
%define	libname	%mklibname spiro %{major}
%define	devname	%mklibname -d spiro

%define url_ver %(echo %{version} | cut -d. -f3)

Name:		libspiro
Version:	1.1.20200505
Release:	2
Summary:	Library to simplify the drawing of beautiful curves
Group:		System/Libraries
License:	GPLv2+
URL:		http://libspiro.sourceforge.net/
Source0:	https://github.com/fontforge/libspiro/archive/%{url_ver}.tar.gz?/%{name}-%{url_ver}.tar.gz

%description
This library will take an array of spiro control points and
convert them into a series of bézier splines which can then
be used in the myriad of ways the world has come to use béziers.

#--------------------------------------------------------------------
%package -n	%{libname}
Summary:	Library to simplify the drawing of beautiful curves
Group:		System/Libraries

%description -n	%{libname}
This library will take an array of spiro control points and 
convert them into a series of bézier splines which can then 
be used in the myriad of ways the world has come to use béziers. 

%files -n %{libname}
%doc README* ChangeLog AUTHORS
%{_libdir}/libspiro.so.%{major}*

#--------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	spiro-devel = %{EVRD}

%description -n	%{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libspiro.so
%{_libdir}/pkgconfig/libspiro.pc
%{_mandir}/man3/libspiro.3*
#--------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{url_ver}
autoreconf -fi

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14349 |21mr|libsquish-1.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname squish %{major}
%define develname	%mklibname squish -d

Name:		libsquish
Version:	1.15
Release:	1
Summary:	Open source DXT compression library
License:	MIT
Group:		System/Libraries
URL:		https://sourceforge.net/projects/libsquish/
Source0:	http://download.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tgz
Patch0:		libsquish-cmake_install.patch
BuildRequires:	gcc-c++
BuildRequires:	cmake
BuildRequires:	libgomp-devel

%description
The libSquish library compresses images with the DXT standard
(also known as S3TC). This standard is mainly used by OpenGL and
DirectX for the lossy compression of RGBA textures.

#------------------------------------------------

%package -n	%{libname}
Summary:	Open source DXT compression library
Group:		System/Libraries

%description -n	%{libname}
The libSquish library compresses images with the DXT standard
(also known as S3TC). This standard is mainly used by OpenGL and
DirectX for the lossy compression of RGBA textures.

%files -n %{libname}
%doc LICENSE.txt
%doc ChangeLog.txt
%{_libdir}/*.so.%{major}{,.*}

#------------------------------------------------

%package -n	%{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	squish-devel = %{version}-%{release}

%description -n	%{develname}
Header files for development with %{name}.

%files -n %{develname}
%doc README.txt
%{_libdir}/*.so
%{_includedir}/*

#------------------------------------------------

%prep
%autosetup -c libsquish-%{version}

%build
%cmake \
	-DBUILD_SQUISH_WITH_SSE2=OFF \
	-DBUILD_SHARED_LIBS=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14350 |21mr|libsrtp2-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

%define major 1
%define libname %mklibname srtp2_ %{major}
%define devname %mklibname srtp2 -d

Summary:	Secure Real-time Transport Protocol (SRTP)
Name:		libsrtp2
Version:	2.3.0
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://github.com/cisco/libsrtp/
Source0:	https://github.com/cisco/libsrtp/archive/v%{version}.tar.gz
BuildRequires:	libtool

%description
SRTP is a security profile for RTP that adds confidentiality, message
authentication, and replay protection to that protocol. It is specified
in RFC 3711.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Secure Real-time Transport Protocol (SRTP) library
Group:		System/Libraries

%description -n %{libname}
SRTP is a security profile for RTP that adds confidentiality, message
authentication, and replay protection to that protocol. It is specified
in RFC 3711.

%files -n %{libname}
%doc CHANGES README.md
%{_libdir}/libsrtp2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the SRTP library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	srtp-devel = %{EVRD}
Provides:	srtp2-devel = %{EVRD}

%description -n %{devname}
SRTP is a security profile for RTP that adds confidentiality, message
authentication, and replay protection to that protocol. It is specified
in RFC 3711.

This package contains the development files for the Secure Real-time Transport
Protocol (SRTP) library

%files -n %{devname}
%doc CHANGES README.md
%{_includedir}/srtp2/*
%{_libdir}/libsrtp2.so
%{_libdir}/pkgconfig/libsrtp2.pc

#----------------------------------------------------------------------------

%prep
%setup -qn libsrtp-%{version}
%apply_patches

%build
%configure

%make shared_library

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14351 |21mr|libssh-0.9.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname ssh %{major}
%define devname %mklibname ssh -d

# prevent circular dependencies with cmake
%global __requires_exclude ^cmake-filesystem.*$

Summary:	C library to authenticate in a simple manner to one or more SSH servers
Name:		libssh
Epoch:		1
Version:	0.9.8
Release:	1
Group:		System/Libraries
License:	LGPLv2.1+
Url:		http://www.libssh.org
# svn checkout svn://svn.berlios.de/libssh/trunk libssh
Source0:	https://www.libssh.org/files/0.9/%{name}-%{version}.tar.xz
# CVE-2023-48795 fixed in 0.9.8
# CVE-2023-6004 fixed
# CVE-2023-6918 fixed

BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libcurl)

%description
The ssh library was designed to be used by programmers needing a working 
SSH implementation by the mean of a library. The complete control of the 
client is made by the programmer. With libssh, you can remotely execute 
programs, transfer files, use a secure and transparent tunnel for your 
remote programs. With its Secure FTP implementation, you can play with 
remote files easily, without third-party programs others than libcrypto 
(from openssl). libssh features :

    * Full C library functions for manipulating a client-side SSH
      connection
    * Lesser GPL licensing -SSH2 protocol compliant
    * Fully configurable sessions
    * Support for AES-128,AES-192,AES-256,blowfish, in cbc mode
    * Use multiple SSH connections in a same process, at same time
    * Use multiple channels in the same connection
    * Thread safety when using different sessions at same time
    * Basic but correct SFTP implementation (secure file transfer)
    * RSA and DSS server public key supported
    * Compression support (with zlib)
    * Public key (RSA and DSS), password and keyboard-interactive
      authentication
    * Complete documentation about its API
    * Runs and tested under amd64, x86, arm, sparc32, ppc under Linux,
      BSD, MacosX and Solaris
    * A developer listening to you
    * It's free (LGPL)!

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
The ssh library was designed to be used by programmers needing a working
SSH implementation by the mean of a library. The complete control of the
client is made by the programmer. With libssh, you can remotely execute
programs, transfer files, use a secure and transparent tunnel for your
remote programs. With its Secure FTP implementation, you can play with
remote files easily, without third-party programs others than libcrypto
(from openssl).

%files -n %{libname}
%{_libdir}/libssh.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	ssh-devel = %{EVRD}
Provides:	libssh-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake \
	-DWITH_GCRYPT=ON \
	-DWITH_PCAP=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14352 |21mr|libssh2-1.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname ssh2_ %{major}
%define devname %mklibname ssh2 -d
%ifarch %{riscv}
%global debug_package %nil
%endif

Summary:	A library implementing the SSH2 protocol
Name:		libssh2
Version:	1.10.0
Release:	3
License:	BSD
Group:		System/Libraries
Url:		http://www.libssh2.org/
Source0:	http://www.libssh2.org/download/%{name}-%{version}.tar.gz
Source100:	libssh2.rpmlintrc
BuildRequires:	cmake
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libcurl)

# fixed in this version
# CVE-2019-17498 <= 1.9.0
# CVE-2019-3855 < 1.8.1
# CVE-2019-3856 < 1.8.1
# CVE-2019-3857 <= 1.8.0
# CVE-2019-3858 < 1.8.1
# CVE-2019-3859 < 1.8.1
# CVE-2019-3860 <= 1.8.0
# CVE-2019-3861 < 1.8.1
# CVE-2019-3862 < 1.8.1
# CVE-2019-3863 < 1.8.1
# CVE-2020-22218
Patch0:		CVE-2023-48795.patch
Patch1:		libssh2-lenght-type.patch

%description
libssh2 is a library implementing the SSH2 protocol as defined by Internet
Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), SECSH-CONNECTION(23),
SECSH-ARCH(20), SECSH-FILEXFER(06)*, SECSH-DHGEX(04), and SECSH-NUMBERS(10).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library implementing the SSH2 protocol
Group:		System/Libraries

%description -n %{libname}
libssh2 is a library implementing the SSH2 protocol as defined by Internet
Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), SECSH-CONNECTION(23),
SECSH-ARCH(20), SECSH-FILEXFER(06)*, SECSH-DHGEX(04), and SECSH-NUMBERS(10).

%files -n %{libname}
%doc COPYING
%{_libdir}/libssh2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	ssh2-devel = %{EVRD}

%description -n %{devname}
libssh2 is a library implementing the SSH2 protocol as defined by Internet
Drafts: SECSH-TRANS(22), SECSH-USERAUTH(25), SECSH-CONNECTION(23),
SECSH-ARCH(20), SECSH-FILEXFER(06)*, SECSH-DHGEX(04), and SECSH-NUMBERS(10).

This package contains the static %{name} library and its header files.

%files -n %{devname}
%doc docs/AUTHORS docs/BINDINGS docs/HACKING docs/TODO ChangeLog NEWS README RELEASE-NOTES
%{_includedir}/*
%{_libdir}/*.so
%{_mandir}/man3/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/%{name}/*.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%set_build_flags
%cmake \
	-DENABLE_ZLIB_COMPRESSION=ON \
	-DBUILD_SHARED_LIBS=ON \
	-DCRYPTO_BACKEND=OpenSSL
	
%make_build

%install
%make_install -C build
# wipe duplicates
rm -rf %{buildroot}/%{_datadir}/doc/%{name}/

#check
#make check <- barfs at "Failed requesting pty", works as root


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14353 |21mr|libstaroffice-0.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global api 0.0
%global major 0
%define libname %mklibname staroffice %{api} %{major}
%define devname %mklibname staroffice -d

Summary:	A library for import of binary StarOffice documents
Name:		libstaroffice
Version:	0.0.7
Release:	1
License:	MPLv2.0 or LGPLv2+
Group:		System/Libraries
Url:		https://github.com/fosnola/libstaroffice/wiki
Source:		https://github.com/fosnola/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	help2man
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(zlib)

%description
A library for import of binary StarOffice documents.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for import of binary StarOffice documents
Group:		System/Libraries

%description -n %{libname}
A library for import of binary StarOffice documents.

%files -n %{libname}
%doc CREDITS NEWS README
%{_libdir}/%{name}-%{api}.so.%{major}
%{_libdir}/%{name}-%{api}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing
applications that use %{name}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files for %{name}.

%files doc
%doc docs/doxygen/html

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform StarOffice documents into other formats
Group:		Publishing

%description tools
Tools to transform StarOffice documents into other formats. Currently
supported: CSV, HTML, plain text, SVG, raw.

%files tools
%{_bindir}/sd2raw
%{_bindir}/sd2svg
%{_bindir}/sd2text
%{_bindir}/sdc2csv
%{_bindir}/sdw2html
%{_mandir}/man1/sd2raw.1*
%{_mandir}/man1/sd2svg.1*
%{_mandir}/man1/sd2text.1*
%{_mandir}/man1/sdc2csv.1*
%{_mandir}/man1/sdw2html.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--disable-werror \
	--disable-silent-rules \
	--enable-zip \
	--with-sharedptr=c++11

%make

%install
%makeinstall_std

# rhbz#1001245 we install API docs directly from build
rm -rf %{buildroot}%{_docdir}/%{name}

# generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in sd2raw sd2svg sd2text sdc2csv sdw2html; do
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
done
install -m 0755 -d %{buildroot}%{_mandir}/man1
install -m 0644 sd2*.1 sd?2*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14354 |21mr|libstatgrab-0.92.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname statgrab
%define major 10
%define libname %mklibname %shortname %major
%define libnamedevel %mklibname -d %shortname

Summary: Make system statistics
Name: libstatgrab
Version: 0.92.1
Release: 1
Source0: https://www.mirrorservice.org/sites/ftp.i-scream.org/pub/i-scream/libstatgrab/libstatgrab-%{version}.tar.gz
License: LGPLv2+ and GPLv2+
Group: Monitoring
Url: http://www.i-scream.org/libstatgrab/

%description
Libstatgrab is a library that provides cross platform access to statistics
about the system on which it's run. It's written in C and presents a selection
of useful interfaces which can be used to access key system statistics. The
current list of statistics includes CPU usage, memory utilisation, disk usage,
process counts, network traffic, disk I/O, and more. 

The current list of platforms is Solaris 2.x, Linux, and FreeBSD 4.x/5.x.
The aim is to extend this to include as many operating systems as possible. 

The package also includes a couple of useful tools. The first, saidar,
provides a curses-based interface to viewing the current state of the 
system. The second, statgrab, gives a sysctl-style interface to the
statistics gathered by libstatgrab. This extends the use of libstatgrab
to people writing scripts or anything else that can't easily make C 
function calls. Included with statgrab is a script to generate an MRTG
configuration file to use statgrab. 

%package -n %shortname-tools
Summary: Tools from %name to monitoring the system
Group: Monitoring
License: GPLv2+

%description -n %shortname-tools
Libstatgrab is a library that provides cross platform access to statistics
about the system on which it's run. It's written in C and presents a selection
of useful interfaces which can be used to access key system statistics. The
current list of statistics includes CPU usage, memory utilisation, disk usage,
process counts, network traffic, disk I/O, and more. 

The current list of platforms is Solaris 2.x, Linux , and FreeBSD 4.x/5.x.
The aim is to extend this to include as many operating systems as possible. 

The package also includes a couple of useful tools. The first, saidar,
provides a curses-based interface to viewing the current state of the 
system. The second, statgrab, gives a sysctl-style interface to the
statistics gathered by libstatgrab. This extends the use of libstatgrab
to people writing scripts or anything else that can't easily make C 
function calls. Included with statgrab is a script to generate an MRTG
configuration file to use statgrab. 

%package -n %libname
Summary: The %name libraries
Group: System/Libraries
License: LGPLv2+
Provides: %name = %version-%release

%description -n %libname
Libstatgrab is a library that provides cross platform access to statistics
about the system on which it's run. It's written in C and presents a selection
of useful interfaces which can be used to access key system statistics. The
current list of statistics includes CPU usage, memory utilisation, disk usage,
process counts, network traffic, disk I/O, and more. 

The current list of platforms is Solaris 2.x, Linux, and FreeBSD 4.x/5.x.
The aim is to extend this to include as many operating systems as possible. 

The package also includes a couple of useful tools. The first, saidar,
provides a curses-based interface to viewing the current state of the 
system. The second, statgrab, gives a sysctl-style interface to the
statistics gathered by libstatgrab. This extends the use of libstatgrab
to people writing scripts or anything else that can't easily make C 
function calls. Included with statgrab is a script to generate an MRTG
configuration file to use statgrab. 

%package -n %libnamedevel
Summary: The development files from %name libraries
Group: Development/Other
License: LGPLv2+
Provides: %name-devel = %version-%release
Requires: %libname = %version

%description -n %libnamedevel
Libstatgrab is a library that provides cross platform access to statistics
about the system on which it's run. It's written in C and presents a selection
of useful interfaces which can be used to access key system statistics. The
current list of statistics includes CPU usage, memory utilisation, disk usage,
process counts, network traffic, disk I/O, and more. 

The current list of platforms is Solaris 2.x, Linux, and FreeBSD 4.x/5.x.
The aim is to extend this to include as many operating systems as possible. 

The package also includes a couple of useful tools. The first, saidar,
provides a curses-based interface to viewing the current state of the 
system. The second, statgrab, gives a sysctl-style interface to the
statistics gathered by libstatgrab. This extends the use of libstatgrab
to people writing scripts or anything else that can't easily make C 
function calls. Included with statgrab is a script to generate an MRTG
configuration file to use statgrab. 

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install

%files -n %{shortname}-tools
%doc AUTHORS INSTALL README ChangeLog NEWS
%_bindir/*
%_mandir/*/*

%files -n %{libname}
%_libdir/*.so.%{major}*

%files -n %{libnamedevel}
%{_docdir}/%{name}/*
%_libdir/*.so
%_includedir/*.h
%_libdir/pkgconfig/%name.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14355 |21mr|libstdc++-gcc10-10-0.20200301.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Manual how to use it and description why it was packaged like this:
# https://forum.rosalinux.ru/viewtopic.php?f=7&t=10047 (in Russian)

%define date 20200301
%define _disable_ld_no_undefined 1
%define _unpackaged_files_terminate_build 0
%define _use_internal_dependency_generator 0

%if "%{_lib}" == "lib64"
%define _ds (64bit)
%else
%define _ds %{nil}
%endif

%define gcc_major 1
%define cpp_major 6

%if 0%{?mdvver}
%define libgcc %mklibname gcc_s-gcc10_ %{gcc_major}
%define libstdxx %mklibname stdc++-gcc10_ %{cpp_major}
%define libstdxx_dev %mklibname stdc++-gcc10 -d
%else
%define libgcc libgcc_s-gcc10_1
%define libstdxx libstdc++-gcc10_6
%define libstdxx_dev libstdc++-gcc10-devel
%endif

# For RHEL, define %%EVRD if it is not defined
%{?!EVRD:%define EVRD %{?epoch:%{epoch}:}%{?version:%{version}}%{?release:-%{release}}}

Summary:	libstdc++ library separately from gcc
Name:		libstdc++-gcc10
Version:	10
Release:	0.%{date}.6
License:	LGPLv2+ and LGPLv2+ with exceptions and GPLv2+
Group:		Development/C
Url:		http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-libstdc++.html
Source0:	ftp://ftp.irisa.fr/pub/mirrors/gcc.gnu.org/gcc/snapshots/%{version}-%{date}/gcc-%{version}-%{date}.tar.xz
# some random C++17 code
Source1:	test1.cpp
Source2:	find_provides.sh
# This define must be after Source2 is defined!
%define __find_provides /bin/sh %{SOURCE2}
Source3:	br-rhel.spec.in
Patch0:		libstdc++-mallinfo.patch
%if 0%{?mdvver}
BuildRequires:	gcc
BuildRequires:	binutils
BuildRequires:	bison
# for test
BuildRequires:	clang
BuildRequires:	dejagnu
BuildRequires:	flex
BuildRequires:	gdb
BuildRequires:	gettext
# to manipulate with SONAME
BuildRequires:	patchelf
BuildRequires:	sash
BuildRequires:	sharutils
BuildRequires:	texinfo
BuildRequires:	util-linux
BuildRequires:	gmp-devel
BuildRequires:	libmpc-devel
BuildRequires:	mpfr-devel
BuildRequires:	ppl-devel
BuildRequires:	ppl_c-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(isl)
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(python3)
%endif
%if 0%{?rhel}
%include %{SOURCE3}
%endif
AutoReq:	1
AutoProv:	1

%description
libstdc++ library separately from GCC 10.
Can be used where C++17 and other modern standards are needed.

#----------------------------------------------------------------------------

%package -n %{libgcc}
Summary:	libgcc_s library from GCC 10
Group:		System/Libraries

%description -n %{libgcc}
libgcc_s library from GCC 10.

%files -n %{libgcc}
%{_libdir}/libgcc_s-gcc10.so.%{gcc_major}

#----------------------------------------------------------------------------

%package -n %{libstdxx}
Summary:	libstdc++ library from GCC 10
Group:		System/Libraries
Requires:	%{libgcc} = %{EVRD}

%description -n %{libstdxx}
libstdc++ library from GCC 10.

%files -n %{libstdxx}
%{_libdir}/libstdc++-gcc10.so.%{cpp_major}*

#----------------------------------------------------------------------------

%package -n %{libstdxx_dev}
Summary:	libstdc++ development library from GCC 10
Group:		Development/C
Requires:	%{libstdxx} = %{EVRD}
Provides:	stdc++-gcc10-devel = %{EVRD}
Provides:	devel(libstdc++-gcc10%{_ds})
Provides:	devel(libgcc_s-gcc10%{_ds})

%description -n %{libstdxx_dev}
libstdc++ developement library from GCC 10
Manual how to use it and description why it was packaged like this:
https://forum.rosalinux.ru/viewtopic.php?f=7&t=10047 (in Russian)

%files -n %{libstdxx_dev}
# I am not sure that libgcc_s is needed
# to work with libstdc++-gcc10-devel
%{_libdir}/libgcc_s-gcc10.so
%{_libdir}/libstdc++-gcc10.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n gcc-%{version}-%{date}

%build
# Build gcc-10 compiler, build libstdc++ with it
# http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-pass1.html
# http://www.linuxfromscratch.org/lfs/view/development/chapter05/gcc-libstdc++.html
mkdir -p build
cd build
../configure \
	--prefix=%{_prefix} \
	--includedir=%{_includedir}/%{name} \
	--with-gxx-include-dir=%{_includedir}/%{name} \
	--enable-languages=c,c++ \
	--enable-linker-build-id \
	--disable-multilib \
	--with-system-zlib
%make_build

%install
cd build
%make_install

cd %{buildroot}
mv usr usr.old
mkdir -p ./%{_libdir}
mv ./usr.old/%{_lib}/{libgcc_s.so*,libstdc++.so*} ./%{_libdir}
mv ./usr.old/include ./usr/
# x86_64-pc-linux-gnu
# aarch64-unknown-linux-gnu
( cd %{buildroot}/%{_includedir}/%{name}
  t="$(ls | grep '\-linux-gnu')"
  if [ "$t" != %{_host} ]; then
    ln -s "$t" %{_host}
  fi
)
cd ./%{_libdir}
sed -i -e 's,libgcc_s.so.1,libgcc_s-gcc10.so.1,g' libgcc_s.so
mv libgcc_s.so libgcc_s-gcc10.so
patchelf --set-soname libgcc_s-gcc10.so.1 libgcc_s.so.1
mv libgcc_s.so.1 libgcc_s-gcc10.so.1
old_libstdcxx_soname="$(patchelf --print-soname libstdc++.so)"
new_libstdcxx_soname="$(echo "$old_libstdcxx_soname" | sed -e 's,libstdc++,libstdc++-gcc10,g')"
patchelf --set-soname "$new_libstdcxx_soname" libstdc++.so
rp="$(readlink libstdc++.so)"
# libstdc++.so.6.0.28 -> 6
n="$(echo "$rp" | awk -F '.so.' '{print $NF}' | cut -d'.' -f1)"
np="$(echo "$rp" | sed -e 's,libstdc++,libstdc++-gcc10,g')"
mv "$rp" "$np"
rm -fv libstdc++.so*
ln -s "$np" "libstdc++-gcc10.so.${n}"
ln -s "$np" "libstdc++-gcc10.so"
patchelf --replace-needed libgcc_s.so.1 libgcc_s-gcc10.so.1 libstdc++-gcc10.so

# Fix stripping by RPM
find . -name '*.so.*' -print | xargs chmod 755

# verify loadability of patched libs
# patchelf may break libraries
export LD_LIBRARY_PATH="$PWD"
ldd libgcc_s-gcc10.so.1
ldd libstdc++-gcc10.so

# rm everything except libstdc++, its deps and headers
rm -fr %{buildroot}/usr.old

%check
# clang is too old in ROSA-CentOS 7.3,
# I build this package there for other purposes
%if 0%{?rhel}
exit 0
%endif

mkdir rpm_check
cd rpm_check
cp %{SOURCE1} test1.cpp
clang++ -v 2>&1 | head -n 1
clang++ -nostdinc++ -std=c++17 -I%{buildroot}%{_includedir}/%{name} -I%{buildroot}%{_includedir}/%{name}/%{_host} -L%{buildroot}%{_libdir} test1.cpp -o test1 -lstdc++-gcc10
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./test1 | grep -q '1, 2, 3'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14356 |21mr|libstemmer-0-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname stemmer %{major}
%define devname %mklibname stemmer -d

Summary:	The C version of the libstemmer library
Name:		libstemmer
Version:	0
Release:	23
License:	BSD
Group:		System/Libraries
Url:		http://snowball.tartarus.org/
Source0:	http://snowball.tartarus.org/dist/libstemmer_c.tgz
Patch0:		libstemmer-libtool.diff
BuildRequires:	libtool

%description
Snowball is a small string processing language designed for
creating stemming algorithms for use in Information Retrieval.
This site describes Snowball, and presents several useful stemmers
which have been implemented using it.

This package containst the C version of the libstemmer library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The C version of the libstemmer library
Group:		System/Libraries

%description -n %{libname}
Snowball is a small string processing language designed for
creating stemming algorithms for use in Information Retrieval.
This site describes Snowball, and presents several useful stemmers
which have been implemented using it.

This package containst the C version of the libstemmer library.

%files -n %{libname}
%doc README
%{_libdir}/libstemmer.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the libstemmer library
Group:		Development/C
Requires:	%{libname} >= %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/libstemmer.so

#----------------------------------------------------------------------------

%package -n stemwords
Summary:	The stemwords utility using the libstemmer library
Group:		System/Libraries

%description -n stemwords
The stemwords utility using the libstemmer library

%files -n stemwords
%{_bindir}/stemwords

#----------------------------------------------------------------------------

%prep
%setup -qn libstemmer_c
%patch0 -p0

# lib64 fix
sed -i -e "s|/usr/lib|%{_libdir}|g" Makefile

%build
%make LDFLAGS="%{ldflags}" CFLAGS="%{optflags} -Wall -Iinclude -fPIC -DPIC -D_REENTRANT"

%install
%makeinstall_std

# install referenced headers
install -m644 src_c/stem_*.h %{buildroot}%{_includedir}/%{name}/

# fix location
perl -pi -e "s|\.\./src_c/||g" %{buildroot}%{_includedir}/%{name}/modules.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14357 |21mr|libstoragemgmt-1.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     test
%define _disable_ld_no_undefined %nil
%define Werror_cflags %nil

%define major	1
%define libname %mklibname storagemgmt %{major}
%define devname %mklibname storagemgmt -d


Name:		libstoragemgmt
Version:	1.9.1
Release:	1
Group:		System/Libraries
Summary:	Storage array management library
License:	LGPLv2+
URL:		https://github.com/libstorage/libstoragemgmt
Source0:	https://github.com/libstorage/libstoragemgmt/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	libstoragemgmt.sysusers.conf
Patch1:		0001-change-run-dir.patch
BuildRequires:	libtool
BuildRequires:	libxml2-devel
BuildRequires:	check-devel
BuildRequires:	perl-interpreter
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(libconfig)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)
BuildRequires:	procps
BuildRequires:	sqlite-devel
BuildRequires:	python3-six
BuildRequires:	python3-devel
BuildRequires:	chrpath
%ifnarch %{riscv} %{e2k}
BuildRequires:	valgrind
%endif
Requires:	python3-%{name}
Requires(pre):	/bin/systemd-sysusers

%description
The libStorageMgmt library will provide a vendor agnostic open source storage
application programming interface (API) that will allow management of storage
arrays.  The library includes a command line interface for interactive use and
scripting (command lsmcli).  The library also has a daemon that is used for
executing plug-ins in a separate process (lsmd).

%files
%doc README COPYING.LIB NEWS
%{_mandir}/man1/lsmcli.1*
%{_mandir}/man1/lsmd.1*
%{_mandir}/man5/lsmd.conf.5*
%{_bindir}/lsmcli
%{_datadir}/bash-completion/completions/lsmcli
%{_bindir}/lsmd
%{_bindir}/simc_lsmplugin
%dir %{_sysconfdir}/lsm
%dir %{_sysconfdir}/lsm/pluginconf.d
%config(noreplace) %{_sysconfdir}/lsm/lsmd.conf
%{_mandir}/man1/simc_lsmplugin.1*

%{_unitdir}/%{name}.service
%{_sysusersdir}/libstoragemgmt.conf

%ghost %dir %attr(0775, root, libstoragemgmt) /run/lsm/
%ghost %dir %attr(0775, root, libstoragemgmt) /run/lsm/ipc

%attr(0644, root, root) %{_tmpfilesdir}/%{name}.conf

%pre
%sysusers_create_package libstoragemgmt %{SOURCE1}

%post
# Create tmp socket folders.
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun %{name}.service

#----------------------------------------------------------------------------
%package -n %{libname}
Summary:	Storage array management librar
Group:		System/Libraries

%description -n %{libname}
The libStorageMgmt library will provide a vendor agnostic open source storage
application programming interface (API) that will allow management of storage
arrays.  The library includes a command line interface for interactive use and
scripting (command lsmcli).  The library also has a daemon that is used for
executing plug-ins in a separate process (lsmd).

%files -n %{libname}
%{_libdir}/libstoragemgmt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n	%{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/lsm_*
%{_mandir}/man3/libstoragemgmt*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 client libraries and plug-in support for %{name}
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Requires:	python3-%{name}-clibs

%description -n python3-%{name}
This contains python 3 client libraries as well as python framework
support and open source plug-ins written in python 3.

%files -n python3-%{name}
%dir %{python3_sitearch}/lsm
%{python3_sitearch}/lsm/__init__.*
%{python3_sitearch}/lsm/_client.*
%{python3_sitearch}/lsm/_common.*
%{python3_sitearch}/lsm/_local_disk.*
%{python3_sitearch}/lsm/_data.*
%{python3_sitearch}/lsm/_iplugin.*
%{python3_sitearch}/lsm/_pluginrunner.*
%{python3_sitearch}/lsm/_transport.*
%{python3_sitearch}/lsm/__pycache__/
%{python3_sitearch}/lsm/version.*
%dir %{python3_sitearch}/sim_plugin
%{python3_sitearch}/sim_plugin/__pycache__/
%{python3_sitearch}/sim_plugin/__init__.*
%{python3_sitearch}/sim_plugin/simulator.*
%{python3_sitearch}/sim_plugin/simarray.*
%dir %{python3_sitearch}/lsm/lsmcli
%{python3_sitearch}/lsm/lsmcli/__init__.*
%{python3_sitearch}/lsm/lsmcli/__pycache__/
%{python3_sitearch}/lsm/lsmcli/data_display.*
%{python3_sitearch}/lsm/lsmcli/cmdline.*
%{_bindir}/sim_lsmplugin
%dir %{_libexecdir}/lsm.d
%{_libexecdir}/lsm.d/find_unused_lun.py*
%{_libexecdir}/lsm.d/local_check.py
%{_libexecdir}/lsm.d/__pycache__/*
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/sim.conf
%{_mandir}/man1/sim_lsmplugin.1*


#----------------------------------------------------------------------------

%package -n python3-%{name}-clibs
Summary:	Python 3 C extension module for %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}-clibs
This package contains python 3 client C extension libraries.

%files -n python3-%{name}-clibs
%{python3_sitearch}/lsm/_clib.*

#----------------------------------------------------------------------------

%package smis-plugin
Summary:	Files for SMI-S generic array support for %{name}
Group:		Development/Python
BuildRequires:	python3-pywbem
Provides:	%{name}-ibm-v7k-plugin = 2:%{version}-%{release}
Obsoletes:	%{name}-ibm-v7k-plugin <= 2:0.1.0-3
Requires:	python3-pywbem
Requires:	python3-%{name} = %{version}
Requires(post):	python3-%{name} = %{version}
Requires(postun): python3-%{name} = %{version}
BuildArch:	noarch


%description smis-plugin
The %{name}-smis-plugin package contains plug-in for generic SMI-S array
support.

%files smis-plugin
%dir %{python3_sitelib}/smispy_plugin
%dir %{python3_sitelib}/smispy_plugin/__pycache__
%{python3_sitelib}/smispy_plugin/__pycache__/*
%{python3_sitelib}/smispy_plugin/__init__.*
%{python3_sitelib}/smispy_plugin/smis.*
%{python3_sitelib}/smispy_plugin/dmtf.*
%{python3_sitelib}/smispy_plugin/utils.*
%{python3_sitelib}/smispy_plugin/smis_common.*
%{python3_sitelib}/smispy_plugin/smis_cap.*
%{python3_sitelib}/smispy_plugin/smis_sys.*
%{python3_sitelib}/smispy_plugin/smis_pool.*
%{python3_sitelib}/smispy_plugin/smis_disk.*
%{python3_sitelib}/smispy_plugin/smis_vol.*
%{python3_sitelib}/smispy_plugin/smis_ag.*
%{_bindir}/smispy_lsmplugin
%{_mandir}/man1/smispy_lsmplugin.1*

# Need to restart lsmd if plugin is new installed or removed.
%post smis-plugin
if [ $1 -eq 1 ]; then
    # New install.
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

%postun smis-plugin
if [ $1 -eq 0 ]; then
    # Remove
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package targetd-plugin
Summary:	Files for targetd array support for %{name}
Group:		Development/Python
Requires:	python3-%{name} = %{version}
Requires(post):	python3-%{name} = %{version}
Requires(postun): python3-%{name} = %{version}
BuildArch:	noarch

%description targetd-plugin
The %{name}-targetd-plugin package contains plug-in for targetd array
support.

%files targetd-plugin
%dir %{python3_sitelib}/targetd_plugin
%dir %{python3_sitelib}/targetd_plugin/__pycache__
%{python3_sitelib}/targetd_plugin/__pycache__/*
%{python3_sitelib}/targetd_plugin/__init__.*
%{python3_sitelib}/targetd_plugin/targetd.*
%{_bindir}/targetd_lsmplugin
%{_mandir}/man1/targetd_lsmplugin.1*

# Need to restart lsmd if plugin is new installed or removed.
%post targetd-plugin
if [ $1 -eq 1 ]; then
    # New install.
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

%postun targetd-plugin
if [ $1 -eq 0 ]; then
    # Remove
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package udev
Summary:	Udev files for %{name}
Group:		System/Configuration/Other

%description udev
The %{name}-udev package contains udev rules and helper utilities for
uevents generated by the kernel.

%files udev
%{_udevrulesdir}/../scan-scsi-target
%{_udevrulesdir}/90-scsi-ua.rules

#----------------------------------------------------------------------------

%package megaraid-plugin
Summary:	Files for LSI MegaRAID support for %{name}
Group:		Development/Python
Requires:	python3-%{name} = %{version}
Requires(post):	python3-%{name} = %{version}
Requires(postun): python3-%{name} = %{version}
BuildArch:      noarch

%description    megaraid-plugin
The %{name}-megaraid-plugin package contains the plugin for LSI
MegaRAID storage management via storcli.

%files megaraid-plugin
%dir %{python3_sitelib}/megaraid_plugin
%dir %{python3_sitelib}/megaraid_plugin/__pycache__
%{python3_sitelib}/megaraid_plugin/__pycache__/*
%{python3_sitelib}/megaraid_plugin/__init__.*
%{python3_sitelib}/megaraid_plugin/megaraid.*
%{python3_sitelib}/megaraid_plugin/utils.*
%{_bindir}/megaraid_lsmplugin
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/megaraid.conf
%{_mandir}/man1/megaraid_lsmplugin.1*

# Need to restart lsmd if plugin is new installed or removed.
%post megaraid-plugin
if [ $1 -eq 1 ]; then
    # New install.
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi
%postun megaraid-plugin
if [ $1 -eq 0 ]; then
    # Remove
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package hpsa-plugin
Summary:	Files for HP SmartArray support for %{name}
Group:		Development/Python
Requires:	python3-%{name} = %{version}
Requires(post):	python3-%{name} = %{version}
Requires(postun): python3-%{name} = %{version}
BuildArch:	noarch

%description hpsa-plugin
The %{name}-hpsa-plugin package contains the plugin for HP
SmartArray storage management via hpssacli.

%files hpsa-plugin
%dir %{python3_sitelib}/hpsa_plugin
%dir %{python3_sitelib}/hpsa_plugin/__pycache__
%{python3_sitelib}/hpsa_plugin/__pycache__/*
%{python3_sitelib}/hpsa_plugin/__init__.*
%{python3_sitelib}/hpsa_plugin/hpsa.*
%{python3_sitelib}/hpsa_plugin/utils.*
%{_bindir}/hpsa_lsmplugin
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/hpsa.conf
%{_mandir}/man1/hpsa_lsmplugin.1*

# Need to restart lsmd if plugin is new installed or removed.
%post hpsa-plugin
if [ $1 -eq 1 ]; then
    # New install.
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi
%postun hpsa-plugin
if [ $1 -eq 0 ]; then
    # Remove
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package arcconf-plugin
Summary:	Files for Microsemi Adaptec and Smart Family support for %{name}
Group:		Development/Python
Requires:	python3-%{name} = %{version}
Requires(post):	python3-%{name} = %{version}
Requires(postun): python3-%{name} = %{version}
BuildArch:	noarch

%description arcconf-plugin
The %{name}-arcconf-plugin package contains the plugin for Microsemi
Adaptec RAID and Smart Family Controller storage management.

%files arcconf-plugin
%dir %{python3_sitelib}/arcconf_plugin
%dir %{python3_sitelib}/arcconf_plugin/__pycache__
%{python3_sitelib}/arcconf_plugin/__pycache__/*
%{python3_sitelib}/arcconf_plugin/__init__.*
%{python3_sitelib}/arcconf_plugin/arcconf.*
%{python3_sitelib}/arcconf_plugin/utils.*
%{_bindir}/arcconf_lsmplugin
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/arcconf.conf
%{_mandir}/man1/arcconf_lsmplugin.1*

# Need to restart lsmd if plugin is new installed or removed.
%post arcconf-plugin
if [ $1 -eq 1 ]; then
    # New install.
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi
%postun arcconf-plugin
if [ $1 -eq 0 ]; then
    # Remove
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package nfs-plugin
Summary:	Files for NFS local filesystem support for %{name}
Group:		Development/Python
Requires:	python3-%{name} = %{version}
Requires:	%{name}-nfs-plugin-clibs = %{version}
Requires:	nfs-utils
Requires(post):	python3-%{name} = %{version}
Requires(postun): python3-%{name} = %{version}

%description nfs-plugin
The nfs-plugin package contains plug-in for local NFS exports support.

%files nfs-plugin
%dir %{python3_sitearch}/nfs_plugin
%dir %{python3_sitearch}/nfs_plugin/__pycache__
%{python3_sitearch}/nfs_plugin/__pycache__/*
%{python3_sitearch}/nfs_plugin/__init__.*
%{python3_sitearch}/nfs_plugin/nfs.*
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/nfs.conf
%{_bindir}/nfs_lsmplugin
%{_mandir}/man1/nfs_lsmplugin.1*

# Need to restart lsmd if plugin is new installed or removed.
%post nfs-plugin
if [ $1 -eq 1 ]; then
    # New install.
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi
%postun nfs-plugin
if [ $1 -eq 0 ]; then
    # Remove
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%package nfs-plugin-clibs
Summary:	Python C extension module for %{name} NFS plugin
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description    nfs-plugin-clibs
The %{name}-nfs-plugin-clibs package contains python C
extension for %{name} NFS plugin.

%files nfs-plugin-clibs
%{python3_sitearch}/nfs_plugin/nfs_clib.*
#----------------------------------------------------------------------------

%package local-plugin
Summary:	Files for local pseudo plugin of %{name}
Group:		Development/Python
Requires:	python3-%{name} = %{version}
Requires(post):	python3-%{name} = %{version}
Requires(postun): python3-%{name} = %{version}
BuildArch:	noarch

%description local-plugin
The %{name}-local-plugin is a plugin that provides auto
plugin selection for locally managed storage.

%files local-plugin
%dir %{python3_sitelib}/local_plugin
%dir %{python3_sitelib}/local_plugin/__pycache__
%{python3_sitelib}/local_plugin/__pycache__/*
%{python3_sitelib}/local_plugin/__init__.*
%{python3_sitelib}/local_plugin/local.*
%config(noreplace) %{_sysconfdir}/lsm/pluginconf.d/local.conf
%{_bindir}/local_lsmplugin
%{_mandir}/man1/local_lsmplugin.1*

# Need to restart lsmd if plugin is new installed or removed.
%post local-plugin
if [ $1 -eq 1 ]; then
    # New install.
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi
%postun local-plugin
if [ $1 -eq 0 ]; then
    # Remove
    /usr/bin/systemctl try-restart %{name}.service >/dev/null 2>&1 || :
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i 's!-Werror!!g' configure.ac

%build
./autogen.sh
export CFLAGS="%{optflags} -ldl"
# valgrind required for mem leak test but not yet available on e2k
%configure \
%ifarch %{e2k} %{riscv}
	--without-mem-leak-test \
%endif
	--with-python3 --disable-static
%make_build

%install
make install DESTDIR=%{buildroot}

find %{buildroot} -name '*.la' -exec rm -f {} ';'

#Files for udev handling
mkdir -p %{buildroot}/%{_udevrulesdir}
install -m 644 tools/udev/90-scsi-ua.rules \
    %{buildroot}/%{_udevrulesdir}/90-scsi-ua.rules
install -m 755 tools/udev/scan-scsi-target \
    %{buildroot}/%{_udevrulesdir}/../scan-scsi-target

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/libstoragemgmt.conf

%if 0%{with test}
%check
if ! make check
then
  cat test-suite.log || true
  exit 1
fi
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14358 |21mr|libsvg-0.1.4-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   1
%define libname %mklibname svg %{major}

Summary:	A generic SVG library
Name:		libsvg
Version:	0.1.4
Release:	21
License:	LGPL
Group:		System/Libraries
URL:		http://cairographics.org/snapshots/
Source:		http://cairographics.org/snapshots/%{name}-%{version}.tar.bz2
Patch:		libsvg-0.1.4-libpng-1.5.patch
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	jpeg-devel

%description
A generic SVG library.

%package -n	%{libname}
Summary:	A generic SVG library
Group:		System/Libraries

%description -n	%{libname}
A generic SVG library.

%package -n	%{libname}-devel
Summary:	Libraries and include files for developing with libsvg
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}

%description -n	%{libname}-devel
This package provides the necessary development libraries and include
files to allow you to develop with libsvg.

%prep
%setup -q
%patch -p1 -b .libpng15~

%build
export LIBS="`pkg-config --libs libxml-2.0` `pkg-config --libs libpng` -ljpeg -lz -lm"

%configure --disable-static
%make

%install
%makeinstall_std

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS README TODO
%attr(755,root,root) %{_libdir}/*.so.%{major}*

%files -n %{libname}-devel
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/libsvg.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14359 |21mr|libsvg-cairo-0.1.6-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   1
%define libname %mklibname svg-cairo %{major}
%define devname %mklibname svg-cairo -d

Name:		libsvg-cairo
Summary:	A SVG library based on cairo
Version:	0.1.6
Release:	21
License:	BSD
Group:		System/Libraries
URL:		http://cairographics.org/snapshots/
Source:		%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libsvg)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	jpeg-devel

%description
Libsvg-cairo provides the ability to render SVG content from files or
buffers. All rendering is performed using the cairo rendering library.

%package -n %{libname}
Summary:	A SVG library based on cairo
Group:		System/Libraries

%description -n %{libname}
Libsvg-cairo provides the ability to render SVG content from files or
buffers. All rendering is performed using the cairo rendering library.

%package -n %{devname}
Summary:	Libraries and include files for developing with libsvg
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}
Provides:	%{libname}-devel = %{version}-%{release}
Obsoletes:	%{libname}-devel < 0.1.6-15

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with libsvg-cairo.


%prep
%setup -q

%build
export LIBS="-lm"
%configure --disable-static
%make

%install
%makeinstall

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/*.so.*

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/libsvg-cairo.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14360 |21mr|libsvm-3.24-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0
%define debug_package %{nil}

%define shver 2
%global libdir_libsvm %{_libdir}/libsvm
%global python3_libsvm_dir %{python3_sitelib}/libsvm
%global maven_group_id tw.edu.ntu.csie
%global pom_file_version 3.23
%global pom_file_name JPP.%{maven_group_id}-%{name}.pom
%global octpkg %{name}
%global release_date 2019-09-10

%define java_dependency java-headless
%ifarch %{ix86}
%bcond_with java
%bcond_with maven
%else
%bcond_without java
%bcond_without maven
%endif

%bcond_with octave
%global cpp_std c++11

Name:           libsvm
Version:        3.24
Release:        2
Summary:        A Library for Support Vector Machines
Group:          Development/Java
License:        BSD
URL:            https://www.csie.ntu.edu.tw/~cjlin/libsvm/
Source0:        https://www.csie.ntu.edu.tw/~cjlin/libsvm/%{name}-%{version}.tar.gz
Source1:        https://www.csie.ntu.edu.tw/~cjlin/libsvm/log
Source2:        https://www.csie.ntu.edu.tw/~cjlin/papers/guide/guide.pdf
Source3:        libsvm-svm-toy-qt.desktop
Source4:        LibSVM-svm-toy-48.png
# Java interface files
Source5:        http://central.maven.org/maven2/tw/edu/ntu/csie/libsvm/%{pom_file_version}/libsvm-%{pom_file_version}.pom
# Octave interface files
Source6:        libsvm.INDEX
Source7:        libsvm.CITATION
Source8:        libsvm.DESCRIPTION
Patch0:         %{name}.packageMain.patch
Patch2:         %{name}.javaDir.patch
Patch4:         %{name}.toolsDir.patch
Patch5:         %{name}.svm-toy-qt5.patch

%description
LIBSVM is an integrated software for support vector classification,
(C-SVC, nu-SVC ), regression (epsilon-SVR, nu-SVR) and distribution
estimation (one-class SVM ). It supports multi-class classification.

%package devel
Summary:        Development files for libsvm in C, C++ and Java
Group:          Development/Java
BuildRequires:  gcc-c++
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    devel
Header and object files for libsvm in C, C++ and Java.
Install this package if you want to develop programs with libsvm.

%package -n     python3-%{name}
Summary:        Python3 tools and interfaces for libsvm
BuildRequires:  python3-devel
BuildArch:      noarch
#gnuplot is required by easy.py
Requires:       %{name} = %{version}-%{release}
Requires:       gnuplot

%description -n python3-%{name}
Python3 tools and interfaces for libsvm.
Install this package if you want to develop
programs with libsvm in Python3.

%if %{with java}
%package        java
Summary:        Java tools and interfaces for libsvm
Group:          Development/Java
BuildRequires:  java-devel >= 1.7.0
BuildRequires:  jpackage-utils
%if %{with maven}
BuildRequires:  maven-local
%endif
BuildArch:      noarch
Requires:       %{java_dependency} >= 1.7.0
Requires:       jpackage-utils
Requires:       %{name} = %{version}-%{release}

%description    java
Java tools and interfaces for libsvm.
Install this package if you want to develop
programs with libsvm in Java.

%package        javadoc
Summary:        Javadoc for libsvm
Group:          Development/Java
BuildRequires:  java-devel >= 1.7.0
BuildRequires:  jpackage-utils
BuildArch:      noarch
Requires:       %{name}-java = %{version}-%{release}

%description    javadoc
Javadoc for libsvm
%endif

%if %{with octave}
%package -n     octave-%{name}
Summary:        Octave interface to libsvm
BuildRequires:  octave-devel
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description -n octave-%{name}
Octave interface for libsvm.
%endif

%package        svm-toy-qt
Summary:        QT version of svm-toy (libsvm demonstration program)
BuildRequires:  desktop-file-utils
BuildRequires:  pkgconfig

BuildRequires:  qt5-qtbase-devel
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    svm-toy-qt
svm-toy is a libsvm demonstration program which has a qt-GUI to
display the derived separating hyperplane.

%prep
%autosetup -p0
cp -p %{SOURCE1} ChangeLog
cp -p %{SOURCE2} %{SOURCE3} .
cp -p %{SOURCE4} %{name}-svm-toy-qt-48.png

# Fix the error: narrowing conversion
sed -e "s|{x,y,v}|{x,y,(signed char) v}|" \
    -e "s|{x,y,current_value}|{x,y,(signed char) current_value}|" \
    -e "s|(double)event->y()/YLEN, current_value|(double)event->y()/YLEN,(signed char) current_value|" \
    -i.narrowing svm-toy/qt/svm-toy.cpp

%if %{with maven}
# Update the POM file, which is stuck on version 3.23
# pom_xpath_set does not work in rpm-4.11.1
# as it generated something like
# <version>
# <!-- begin of code added by maintainer -->
# 3.20
#
# <!-- end of code added by maintainer -->
# </version>
# Also, the latest pom added parent tags for org.sonatype.oss.oss-parent, which
# is deprecated and slated for removal from Fedora.  It isn't needed, so remove
# it.
sed 's/%{pom_file_version}/%{version}/;/<parent>/,/<\/parent>/d' %{SOURCE5} \
    > %{name}.pom

%mvn_file %{maven_group_id}:%{name} %{maven_group_id}/%{name}
%endif

# Fix line endings
sed -i.orig 's/\r//' FAQ.html
touch -r FAQ.html.orig FAQ.html
rm FAQ.html.orig

%build
make all RPM_CFLAGS="$RPM_OPT_FLAGS" LIBDIR="%{_libdir}" CPP_STD="%{cpp_std}"
%if %{with java}
make -C java all javadoc
%endif
mv python/README python/README-Python
mv tools/README tools/README-Tools
cp -p README java/README-Java
cp -p README svm-toy/qt

# Build the Java interface
%if %{with maven}
%mvn_artifact %{name}.pom java/%{name}.jar
%endif

%if %{with octave}
# Build the octave interface
cd matlab
octave -H -q --no-window-system --no-site-file << EOF
make
EOF
cd -
%endif

%install
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir} LIBSVM_VER="%{version}" CPP_STD="%{cpp_std}"
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/
cp -p %{name}-svm-toy-qt-48.png %{buildroot}/%{_datadir}/icons/hicolor/48x48/apps/
mkdir -p %{buildroot}/%{_datadir}/applications
cp -p %{name}-svm-toy-qt.desktop %{buildroot}/%{_datadir}/applications

ln -s %{name}.so.%{shver} %{buildroot}/%{_libdir}/%{name}.so

# Python
mkdir -p %{buildroot}/%{python3_libsvm_dir}
echo -e "# This file is not in the original libsvm tarball, but added to enable importing libsvm.\n\
# This file is released under BSD license, just like the rest of the package.\n"\
  > %{buildroot}/%{python3_libsvm_dir}/__init__.py
install -p -m 755 tools/*.py %{buildroot}/%{python3_libsvm_dir}
install -p -m 755 python/*.py %{buildroot}/%{python3_libsvm_dir}
echo 'libsvm' > %{buildroot}/%{python3_sitelib}/libsvm.pth
for p in %{buildroot}%{python3_libsvm_dir}/*.py;do
    sed -i -e 's|#!/usr/bin/env python|#!%{__python3}|' $p
done
cd tools
for p in *.py; do
    ln -s %{python3_libsvm_dir}/$p %{buildroot}/%{_bindir}/svm-$p
done
cd -

# Java
%if %{with java}
make -C java install JAVA_TARGET_DIR="%{buildroot}/%{_javadir}"
mkdir -p  %{buildroot}/%{_javadocdir}/%{name}
cp -p -R java/docs/* %{buildroot}/%{_javadocdir}/%{name}
%endif

%if %{with maven}
%mvn_install
%endif

%if %{with octave}
# Octave
# FIXME: the *.mex files are arch-specific, so they should go into octpkglibdir
# like the *.oct files do.  But octave refuses to load them from there.  It will
# only load them if they are in octpkgdir.  I don't know why.
mkdir -p %{buildroot}%{octpkgdir}/packinfo
cp -p matlab/*.mex %{buildroot}%{octpkgdir}
cp -p COPYRIGHT %{buildroot}%{octpkgdir}/packinfo/COPYING
cp -p %{SOURCE6} %{buildroot}%{octpkgdir}/packinfo/INDEX
cp -p %{SOURCE7} %{buildroot}%{octpkgdir}/packinfo/CITATION
sed 's/@VERSION@/%{version}/;s/@DATE@/%{release_date}/' %{SOURCE8} \
    > %{buildroot}%{octpkgdir}/packinfo/DESCRIPTION
cat > %{buildroot}%{octpkgdir}/packinfo/on_uninstall.m << EOF
function on_uninstall (desc)
  error ('Can not uninstall %%s installed by the redhat package manager', desc.name);
endfunction
EOF
%endif

# Desktop files
desktop-file-install --delete-original \
  --dir=%{buildroot}%{_datadir}/applications \
  %{buildroot}/%{_datadir}/applications/%{name}-svm-toy-qt.desktop

%if %{with octave}
%post -n octave-%{name}
%octave_cmd pkg rebuild

%preun -n octave-%{name}
%octave_pkg_preun

%postun -n octave-%{name}
%octave_cmd pkg rebuild
%endif

%files
%doc COPYRIGHT FAQ.html ChangeLog guide.pdf
%{_bindir}/svm-predict
%{_bindir}/svm-scale
%{_bindir}/svm-train
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/examples
%{_libdir}/%{name}.so.%{shver}

%files devel
%doc README
%{_includedir}/%{name}/
%{_libdir}/%{name}.so

%if %{with octave}
%files -n octave-%{name}
%{octpkgdir}/
%endif

%files -n python3-%{name}
%doc python/README-Python tools/README-Tools
%{python3_libsvm_dir}
%{_bindir}/svm-*.py
%{python3_sitelib}/libsvm.pth

%if %{with java}
%if %{with maven}
%files java -f .mfiles
%else
%files java
%endif
%defattr(-,root,root,-)
%doc java/README-Java java/test_applet.html
%{_javadir}/%{name}.jar
%if %{with maven}
%{_javadir}/%{maven_group_id}/%{name}.jar
%endif
%files javadoc
%{_javadocdir}/%{name}
%endif

%files svm-toy-qt
%doc svm-toy/qt/README
%{_bindir}/svm-toy-qt
%{_datadir}/icons/hicolor/48x48/apps/%{name}-svm-toy-qt-48.png
%{_datadir}/applications/*%{name}-svm-toy-qt.desktop




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14361 |21mr|libsysstat-0.4.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 0
%define libname %mklibname sysstat-qt %{api} %{major}
%define devname %mklibname sysstat-qt %{api} -d

Summary:	System status library for LXQt
Name:		libsysstat
Version:	0.4.6
Release:	5
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/lxqt/libsysstat
Source0:	https://github.com/lxqt/libsysstat/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	pkgconfig(Qt5Core)

%description
System status library for LXQt.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	System status library for LXQt
Group:		System/Libraries

%description -n %{libname}
System status library for LXQt.

%files -n %{libname}
%doc AUTHORS CHANGELOG COPYING README.md
%{_libdir}/libsysstat-qt5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%doc README.md
%{_includedir}/*
%{_libdir}/libsysstat-qt5.so
%{_libdir}/pkgconfig/sysstat-qt5.pc
%{_datadir}/cmake/sysstat-qt5

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

# Drop double slash from pc files
sed -i 's#//usr#/usr#' %{buildroot}%{_libdir}/pkgconfig/*pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14362 |21mr|libtar-1.2.20-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname tar %{major}
%define develname %mklibname -d tar

%define sdevname %mklibname tar -d -s

Summary:	C library for manipulating tar files
Name:		libtar
Version:	1.2.20
Release:	16
License:	BSD
Group:		System/Libraries
Url:		http://www.feep.net/libtar/
Source0:	ftp://ftp.feep.net/pub/software/libtar/%{name}-%{version}.tar.gz
Patch1:         libtar-1.2.11-missing-protos.patch
Patch4:         libtar-1.2.11-mem-deref.patch
Patch5:         libtar-1.2.20-fix-resource-leaks.patch
Patch6:         libtar-1.2.11-bz729009.patch
Patch7:         libtar-1.2.20-no-static-buffer.patch
# fix programming mistakes detected by static analysis
Patch8:         libtar-1.2.20-static-analysis.patch
# fix out-of-bounds read in gnu_long{name,link} (CVE-2021-33643 CVE-2021-33644)
Patch9:         libtar-1.2.20-CVE-2021-33643-CVE-2021-33644.patch
# fix memory leaks through gnu_long{name,link} (CVE-2021-33645 CVE-2021-33646)
Patch10:        libtar-1.2.20-CVE-2021-33645-CVE-2021-33646.patch

BuildRequires:	pkgconfig(zlib)
Obsoletes:	%{name} <= 1.2.11-19

%description
libtar is a library for manipulating tar files from within C programs.
Here are some of its features:

  * Handles both POSIX tar file format and the GNU extensions.
  * API provides functions for easy use, such as tar_extract_all().
  * Also provides functions for more granular use, such as
    tar_append_regfile().


%files
%{_bindir}/libtar

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Development files and headers for %{name}
Group:		Development/C
Obsoletes:	%{name}-static-devel < 1.2.11-19
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains the static library and the C headers needed to
build applications with libtar.

%files -n %{sdevname}
%doc README ChangeLog* COPYRIGHT TODO
%{_libdir}/libtar.a
#----------------------------------------------------------------------------
%package -n	%libname
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %libname
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libtar.so.%{major}
%{_libdir}/libtar.so.%{major}.*
#----------------------------------------------------------------------------
%package -n	%develname
Summary:	Development files and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}
Obsoletes:	%{name}-devel < %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %develname
This package contains the shared library and the C headers needed to
build applications with libtar.

%files -n %{develname}
%{_libdir}/libtar.so
%{_includedir}/libtar*.h
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------
%prep
%setup -qn %{name}
%apply_patches

%build
# set correct version for .so build
%define ltversion %(echo %{version} | tr '.' ':')
sed -i 's/-rpath $(libdir)/-rpath $(libdir) -version-number %{ltversion}/' \
  lib/Makefile.in

autoreconf -fiv

export CFLAGS="%{optflags} -fPIC"
%configure --enable-static
%make

%install
%makeinstall_std

chmod 755 %{buildroot}/%{_libdir}/%{name}.so.%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14363 |21mr|libtasn1-4.19.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname tasn1_ %{major}
%define devname %mklibname tasn1 -d

Summary:	The ASN.1 library used in GNUTLS
Name:		libtasn1
Version:	4.19.0
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://josefsson.org/libtasn1/
Source0:	http://ftp.gnu.org/gnu/libtasn1/%{name}-%{version}.tar.gz
Source1:	http://ftp.gnu.org/gnu/libtasn1/%{name}-%{version}.tar.gz.sig
Patch0:		libtasn1-3.4-rpath.patch
BuildRequires:	bison
BuildRequires:	help2man
%ifnarch %armx %mips %{riscv} %{e2k}
BuildRequires:  valgrind
%endif

%description
Libtasn1 is an implementation of the ASN.1 standard used by GnuTLS and others.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The ASN.1 library used in GNUTLS
Group:		System/Libraries

%description -n %{libname}
Libtasn1 is an implementation of the ASN.1 standard used by GnuTLS and others.

%files -n %{libname}
%{_libdir}/libtasn1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The ASN.1 development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libtasn1 is an implementation of the ASN.1 standard used by GnuTLS and others.

This contains development files and headers for %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_includedir}/libtasn1.h
%{_libdir}/libtasn1.so
%{_libdir}/libtasn1.a
%{_libdir}/pkgconfig/libtasn1.pc
%{_infodir}/libtasn1.info*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package tools
Summary:	Command line ASN.1 tools
License:	GPLv3+
Group:		Text tools

%description tools
Libtasn1 is an implementation of the ASN.1 standard used by GnuTLS and others.

This contains the command line tools to work with ASN.1 data.

%files tools
%doc NEWS THANKS
%{_bindir}/asn*
%{_mandir}/man1/asn*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
        --enable-static \
%ifnarch %arm %mips aarch64
        --enable-valgrind-tests
%endif 

%make

%install
%makeinstall_std

%check
# (tpg) https://gitlab.com/gnutls/libtasn1/issues/9
make check ||:  
[ -e tests/test-suite.log ] && cat tests/test-suite.log && exit 0
[ -e fuzz/test-suite.log ] && cat fuzz/test-suite.log && exit 0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14364 |21mr|libteam-1.30-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tmajor 5
%define libteam %mklibname team %{tmajor}
%define tdmajor 0
%define libtmdc %mklibname teamdctl %{tdmajor}
%define devname %mklibname team -d

Name:		libteam
Version:	1.30
Release:	2
Summary:	Library for controlling team network device
Group:		System/Libraries
License:	LGPLv2+
URL:		http://www.libteam.org
Source0:	http://www.libteam.org/files/%{name}-%{version}.tar.gz
Source1:	teamd_zmq_common.h
Patch0:		libteam-1.10-add-missing-libteamdctl-libdaemon-dependency.patch
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libdaemon)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libzmq)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	swig

%description
This package contains a library which is a user-space
counterpart for team network driver. It provides an API
to control team network devices.

%package -n teamnl
Summary:	team network device Netlink interface tool
Group:		System/Configuration/Networking

%description -n	teamnl
teamnl is a tool enabling interaction with a team device via the team driver
Netlink interface.
This tools serves mainly for debugging purposes.

%package -n %{libteam}
Summary:	Library for controlling team network device
Group:		System/Libraries

%description -n	%{libteam}
This package contains a library which is a user-space
counterpart for team network driver. It provides an API
to control team network devices.

%package -n %{devname}
Group:		Development/C
Summary:	Libraries and header files for libteam & teamd development
Requires:	teamnl = %{EVRD}
Requires:	%{libteam} = %{EVRD}
Requires:	%{libtmdc} = %{EVRD}

%description -n	%{devname}
This package contains the header files and libraries
necessary for developing programs using libteam & libteamdctl.

%package -n teamd
Group:		System/Configuration/Networking
Summary:	Team network device control daemon
Requires:	teamnl = %{EVRD}

%description -n teamd
The teamd package contains team network device control daemon.

%package -n %{libtmdc}
Summary:	Library for team network device control daemon
Group:		System/Libraries

%description -n	%{libtmdc}
This package contains a library which is a user-space
counterpart for team network driver. It provides an API
for the team network control daemon..

%package -n python2-libteam
%py2_migration_meta python2-libteam
Group:		Development/Python
Summary:	Team network device library bindings
Requires:	teamnl = %{EVRD}

%description -n python2-libteam
The team-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by team network device library.

This package should be installed if you want to develop Python
programs that will manipulate team network devices.

%prep
%setup -q
%patch0 -p1 -b .libdaemon~

# missing from tarball, fetched from git
cp %{SOURCE1} teamd/
# prepare example dir for -devel
mkdir -p _tmpdoc1/examples
cp -p examples/*.c _tmpdoc1/examples
# prepare example dir for team-python
mkdir -p _tmpdoc2/examples
cp -p examples/python/*.py _tmpdoc2/examples
chmod -x _tmpdoc2/examples/*.py

autoreconf -fsv

%build
export PYTHON=%{__python2}
%configure
%make
cd binding/python
%{__python2} ./setup.py build

%install
export PYTHON=%{__python2}
%makeinstall_std
install -p teamd/dbus/teamd.conf -D %{buildroot}%{_sysconfdir}/dbus-1/system.d/teamd.conf
install -p teamd/redhat/systemd/teamd@.service -D %{buildroot}%{_unitdir}/teamd@.service
install -p -m755 teamd/redhat/initscripts_systemd/network-scripts/ifup-Team -D %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifup-Team
install -p -m755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-Team -D %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifdown-Team
install -p -m755 teamd/redhat/initscripts_systemd/network-scripts/ifup-TeamPort -D %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifup-TeamPort
install -p -m755 teamd/redhat/initscripts_systemd/network-scripts/ifdown-TeamPort -D %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifdown-TeamPort
install -p -m755 utils/bond2team -D %{buildroot}%{_bindir}/bond2team
cd binding/python
%{__python2} ./setup.py install --root %{buildroot} -O1

# remove static
rm -fr %{buildroot}%{_libdir}/*.a

%files -n teamnl
%{_bindir}/teamnl
%{_mandir}/man8/teamnl.8*

%files -n %{libteam}
%{_libdir}/libteam.so.%{tmajor}*

%files -n %{devname}
%doc _tmpdoc1/examples
%{_includedir}/team.h
%{_includedir}/teamdctl.h
%{_libdir}/libteam.so
%{_libdir}/libteamdctl.so
%{_libdir}/pkgconfig/libteam.pc
%{_libdir}/pkgconfig/libteamdctl.pc

%files -n teamd
%doc teamd/example_configs teamd/redhat/example_ifcfgs/
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/dbus-1/system.d/teamd.conf
%attr(644,root,root) %{_unitdir}/teamd@.service
%{_sysconfdir}/sysconfig/network-scripts/ifup-Team
%{_sysconfdir}/sysconfig/network-scripts/ifdown-Team
%{_sysconfdir}/sysconfig/network-scripts/ifup-TeamPort
%{_sysconfdir}/sysconfig/network-scripts/ifdown-TeamPort
%{_bindir}/teamd
%{_bindir}/teamdctl
%{_bindir}/bond2team
%{_mandir}/man8/teamd.8*
%{_mandir}/man8/teamdctl.8*
%{_mandir}/man5/teamd.conf.5*
%{_mandir}/man1/bond2team.1*

%files -n %{libtmdc}
%{_libdir}/libteamdctl.so.%{tdmajor}*

%files -n python2-libteam
%doc _tmpdoc2/examples
%{python2_sitearch}/team-1.0-py%{py2_ver}.egg-info
%dir %{python2_sitearch}/team
%{python2_sitearch}/team/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14365 |21mr|libtermcap-2.0.8-58
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname termcap %{major}
%define develname %mklibname termcap -d

Summary:	A basic system library for accessing the termcap database
Name:		libtermcap
Version:	2.0.8
Release:	58
Source:		termcap-%{version}.tar.bz2
Url:		ftp://metalab.unc.edu/pub/Linux/GCC/
License:	LGPL+
Group:		System/Libraries
Patch0:		termcap-2.0.8-shared.patch
Patch1:		termcap-2.0.8-setuid.patch
Patch2:		termcap-2.0.8-instnoroot.patch
Patch3:		termcap-2.0.8-compat21.patch
Patch4:		termcap-2.0.8-xref.patch
Patch5:		termcap-2.0.8-fix-tc.patch
Patch6:		termcap-2.0.8-ignore-p.patch
Patch7:		termcap-buffer.patch
# This patch is a REALLY BAD IDEA without patch #10 below....
Patch8:		termcap-2.0.8-bufsize.patch
Patch9:		termcap-2.0.8-colon.patch
Patch10:	libtermcap-aaargh.patch
# (gc) conflicting definition of `bcopy' against latest glibc 2.1.95
Patch11:	termcap-fix-glibc-2.2.patch
Patch12:	termcap-2.0.8-LDFLAGS.diff
Requires:	termcap
BuildRequires:	texinfo

%description
The libtermcap package contains a basic system library needed to access
the termcap database.  The termcap library supports easy access to the
termcap database, so that programs can output character-based displays in
a terminal-independent manner.

%package -n	%{libname}
Summary:	Development tools for programs which will access the termcap database
Group:		System/Libraries

%description -n	%{libname}
The libtermcap package contains a basic system library needed to access
the termcap database.  The termcap library supports easy access to the
termcap database, so that programs can output character-based displays in
a terminal-independent manner.

%package -n	%{develname}
Summary:	Development tools for programs which will access the termcap database
Group:		Development/C
Requires:	%{libname} >= %{version}-%{release}
Provides:	termcap-devel = %{version}-%{release}

%description -n	%{develname}
This package includes the libraries and header files necessary for
developing programs which will access the termcap database.

If you need to develop programs which will access the termcap database,
you'll need to install this package.  You'll also need to install the
libtermcap package.

%prep
%setup -q -n termcap-2.0.8
%patch0 -p1
%patch1 -p1
%patch2 -p1 -b .nochown
%patch3 -p1 -b .compat21
%patch4 -p1
%patch5 -p1 -b .fix-tc
%patch6 -p1 -b .ignore-p
%patch7 -p1 -b .buffer
%patch8 -p1 -b .bufsize
%patch9 -p1 -b .colon
%patch10 -p1 -b .aaargh
%patch11 -p0
%patch12 -p0

%build
%make CFLAGS="%{optflags} -I." LDFLAGS="%{ldflags}"

%install
rm -rf %{buildroot}
# (gb) They should do proper Makefiles

mkdir -p %{buildroot}/%{_lib}
install -m 755 libtermcap.so.* %{buildroot}/%{_lib}/
ln -s libtermcap.so.2.0.8 %{buildroot}/%{_lib}/libtermcap.so
ln -s libtermcap.so.2.0.8 %{buildroot}/%{_lib}/libtermcap.so.2

mkdir -p %{buildroot}%{_libdir}
install -m 644 libtermcap.a %{buildroot}%{_libdir}/
ln -s ../../%{_lib}/libtermcap.so.2.0.8 %{buildroot}%{_libdir}/libtermcap.so

mkdir -p %{buildroot}%{_infodir}
install -m 644 termcap.info* %{buildroot}%{_infodir}/

mkdir -p %{buildroot}%{_includedir}
install -m 644 termcap.h %{buildroot}%{_includedir}

mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 termcap.src %{buildroot}%{_sysconfdir}/termcap

rm -f %{buildroot}%{_sysconfdir}/termcap

# cleanup
rm -f %{buildroot}%{_libdir}/libtermcap.a

%files -n %{libname}
/%{_lib}/*.so.*

%files -n %{develname}
%doc ChangeLog README
/%{_lib}/*.so
%{_infodir}/termcap.info*
%{_libdir}/libtermcap.so
%{_includedir}/termcap.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14366 |21mr|libtgvoip-2.4.4-6.git37d98e9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
### DEPRECEATED, it is bundled in telegram-desktop and has no other consumers, a separate package makes no sense

# See also:
# https://github.com/rpmfusion/libtgvoip

%ifarch %{arm}
%define _lto_cflags %{nil}
%endif

%ifarch %{ix86}
%global optflags %{optflags} -msse2
%endif


%global commit0 37d98e984fd6fa389262307db826d52ab86c8241
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

%define major 2
%define libname	%mklibname tgvoip %{major}
%define devname	%mklibname -d tgvoip

%define _disable_rebuild_configure 1
# https://github.com/telegramdesktop/libtgvoip/commit/6e82b6e45
%global optflags %{optflags} -DTGVOIP_USE_DESKTOP_DSP_BUNDLED

Name: libtgvoip
Version: 2.4.4
Release: 6.git%{shortcommit0}.1

# Libtgvoip shared library - Public Domain.
# Bundled webrtc library - BSD with patented echo cancellation algorithms.
License: Public Domain and BSD
URL: https://github.com/telegramdesktop/libtgvoip
Group: System/Libraries
Summary: VoIP library for Telegram clients
Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz
Patch0: %{name}-system-json11.patch

Provides: bundled(webrtc-audio-processing) = 0.3

BuildRequires: pkgconfig(libpulse)
BuildRequires: pkgconfig(json11)
BuildRequires: libalsa-devel
BuildRequires: openssl-devel
BuildRequires: opus-devel
BuildRequires: automake
BuildRequires: autoconf
BuildRequires: gcc-c++
BuildRequires: libtool
BuildRequires: gcc

%description
Provides VoIP library for Telegram clients.

%package -n %{libname}
Summary:	VoIP library for Telegram clients
Group:		System/Libraries

%description -n %{libname}
VoIP library for Telegram clients

%files -n %{libname}
%license UNLICENSE
%{_libdir}/%{name}.so.%{major}*
#-----------------------------------------------------------------------

%package -n %{devname}
Summary: Development files for %{name}
Requires: %{libname} = %{EVRD}
Provides: tgvoip-devel = %{EVRD}

%description -n %{devname}
%{summary}.

%files -n %{devname}
%license UNLICENSE
%{_includedir}/tgvoip
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/tgvoip.pc
#-----------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{commit0} -p1
rm -f json11.*

%build
export OBJCXX="%{__cxx}"
autoreconf --force --install
%configure --disable-static
%make_build

%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14367 |21mr|libthai-0.1.29-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname thai %{major}
%define devname %mklibname thai -d

%global _disable_rebuild_configure 1

Summary:	Thai language support routines
Name:		libthai
Version:	0.1.29
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://linux.thai.net
Source0:	http://linux.thai.net/pub/thailinux/software/libthai/%{name}-%{version}.tar.xz
# for trietool:
BuildRequires:	trietool
BuildRequires:	datrie-devel

%description
LibThai is a set of Thai language support routines aimed to ease
developers' tasks to incorporate Thai language support in their applications.
It includes important Thai-specific functions e.g. word breaking, input and
output methods as well as basic character and string supports.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Thai language support routines
Group:		System/Libraries
Requires:	thai-data

%description -n %{libname}
LibThai is a set of Thai language support routines aimed to ease
developers' tasks to incorporate Thai language support in their applications.
It includes important Thai-specific functions e.g. word breaking, input and
output methods as well as basic character and string supports.

%files -n %{libname}
%doc README AUTHORS COPYING ChangeLog
%{_libdir}/libthai.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Thai language support routines
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	thai-devel = %{EVRD}

%description -n %{devname}
The libthai-devel package includes the header files and developer docs 
for the libthai package.

Install libthai-devel if you want to develop programs which will use
libthai.

%files -n %{devname}
%{_includedir}/thai
%{_libdir}/libthai.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%package -n thai-data
Summary:	Thai language support data 
Group:		System/Libraries

%description -n thai-data
Data stuff for libthai.

%files -n thai-data
%{_datadir}/libthai

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--disable-doxygen-doc
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14368 |21mr|libtheora-1.1.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 0
%define decmajor 1
%define encmajor 1
%define libname %mklibname theora %{major}
%define libnamedec %mklibname theoradec %{decmajor}
%define libnameenc %mklibname theoraenc %{encmajor}
%define devname %mklibname theora -d

Summary:	Theora video compression codec
Name:		libtheora
Version:	1.1.1
Release:	17
License:	BSD
Group:		Video
Url:		http://www.theora.org/
Source0:	http://downloads.xiph.org/releases/theora/%{name}-%{version}.tar.bz2
#gw this is from texlive, it is not part of tetex
Source1:	ltablex.sty
Patch0:		libtheora-1.1.1-libpng16.patch
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed video format.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Theora video compression codec
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}

%description -n %{libname}
Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed video format.

%files -n %{libname}
%{_libdir}/libtheora.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamedec}
Summary:	Theora video decoder
Group:		System/Libraries

%description -n %{libnamedec}
Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed video format.

%files -n %{libnamedec}
%{_libdir}/libtheoradec.so.%{decmajor}*

#----------------------------------------------------------------------------

%package -n %{libnameenc}
Summary:	Theora video encoder
Group:		System/Libraries

%description -n %{libnameenc}
Ogg Theora is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed video format.

%files -n %{libnameenc}
%{_libdir}/libtheoraenc.so.%{encmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{version}
Requires:	%{libnameenc} = %{version}
Requires:	%{libnamedec} = %{version}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc installed-docs/*
%{_includedir}/theora
%{_libdir}/libtheora*.so
%{_libdir}/pkgconfig/theora.pc
%{_libdir}/pkgconfig/theoradec.pc
%{_libdir}/pkgconfig/theoraenc.pc

#----------------------------------------------------------------------------

%package -n theora-tools
Summary:	Command line tools for Theora videos
Group:		Video

%description -n theora-tools
The theora-tools package contains simple command line tools for use
with theora bitstreams.define name vorbis-tools

%files -n theora-tools
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
cp %{SOURCE1} doc/spec/

%build
%configure \
	--disable-static
%make LIBS="-lm"

%install
%makeinstall_std docdir=%{_datadir}/doc/libtheora
mv %{buildroot}%{_datadir}/doc/libtheora installed-docs
rm -f installed-docs/doxygen-build.stamp

mkdir -p %{buildroot}/%{_bindir}
install -m 755 examples/.libs/dump_video %{buildroot}/%{_bindir}/theora_dump_video
install -m 755 examples/.libs/encoder_example %{buildroot}/%{_bindir}/theora_encode

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14369 |21mr|libtiff-4.1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname tiff %{major}
%define devname %mklibname tiff -d

Summary:	A library of functions for manipulating TIFF format image files
Name:		libtiff
Version:	4.1.0
Release:	8
License:	BSD-like
Group:		Graphics
Url:		http://www.simplesystems.org/libtiff/
Source0:	ftp://ftp.simplesystems.org/pub/libtiff/tiff-%{version}.tar.gz
Patch0: fix_TIFFReadRawStrip_man_page_typo.patch
Patch1: OJPEGReadHeaderInfo_parse_fix.patch
Patch2: CVE-2020-35523.patch
Patch3: CVE-2020-35524.patch
Patch4: CVE-2020-19143.patch
Patch5: CVE-2020-35521.patch
Patch6: CVE-2020-35522.patch
Patch7: CVE-2022-0561.patch
Patch8: CVE-2022-0562.patch
Patch9: CVE-2022-0865.patch
Patch10: CVE-2022-0891.patch
Patch11: CVE-2022-0907.patch
Patch12: CVE-2022-0908.patch
Patch13: CVE-2022-0909.patch
Patch14: CVE-2022-0924.patch
Patch15: CVE-2022-22844.patch
Patch16: CVE-2022-1354.patch
Patch17: CVE-2022-1355.patch
# CVE-2022-2056 CVE-2022-2057 CVE-2022-2058
Patch18: CVE-2022-2056_2057_2058.patch
# CVE-2022-2867 CVE-2022-2868 CVE-2022-2869
Patch19: CVE-2022-2867_2868_2869.patch
# CVE-2022-3598 included in this fix --\/
Patch20: CVE-2022-3570.patch
#---------------------------^
Patch21: CVE-2022-34526.patch
# CVE-2023-2908 CVE-2022-4645 included in this fix --\/
Patch22: CVE-2022-3599.patch
#---------------------------^
Patch23: CVE-2022-3970.patch
# CVE-2023-0796 CVE-2023-0797 CVE-2023-0798 CVE-2023-0799 included in this fix --\/
Patch24: CVE-2023-0795.patch
#---------------------------^
# CVE-2023-0801 CVE-2023-0802 CVE-2023-0803 CVE-2023-0804 included in this fix --\/
Patch25: CVE-2023-0800.patch
#---------------------------^
Patch26: CVE-2022-48281.patch
Patch27: 0001-countInkNamesString-fix-UndefinedBehaviorSanitizer-a.patch
# CVE-2023-3316
Patch28: 0002-TIFFClose-avoid-NULL-pointer-dereferencing.-fix-515.patch
# CVE-2023-3618
Patch29: 0003-Consider-error-return-of-writeSelections.patch
Patch30: 0004-tiffcrop-correctly-update-buffersize-after-rotateIma.patch
# CVE-2023-26965
Patch31: 0005-tiffcrop-Do-not-reuse-input-buffer-for-subsequent-im.patch
Patch32: 0006-tif_luv-Check-and-correct-for-NaN-data-in-uv_encode.patch
# CVE-2023-40745
Patch33: 0007-tiffcp-fix-memory-corruption-overflow-on-hostile-ima.patch
# CVE-2023-41175
Patch34: 0008-raw2tiff-fix-integer-overflow-and-bypass-of-the-chec.patch
Patch35: CVE-2023-1916.patch
Patch36: CVE-2022-40090.patch
Patch37: CVE-2023-3576.patch
# CVE-2022-3597 CVE-2022-3626 CVE-2022-3627 CVE-2022-2953 included in this fix --\/
Patch38: CVE-2022-3597,3626,3627.patch
Patch39: CVE-2024-7006.patch
#---------------------------^

BuildRequires:	jbig-devel
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(xaw7)

%description
The libtiff package contains a library of functions for manipulating TIFF
(Tagged Image File Format) image format files. TIFF is a widely used file
format for bitmapped images. TIFF files usually end in the .tif extension
and they are often quite large.

#----------------------------------------------------------------------------

%package progs
Summary:	Binaries needed to manipulate TIFF format image files
Group:		Graphics

%description progs
This package provides binaries needed to manipulate TIFF format image files.

%files progs
%doc COPYRIGHT
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library of functions for manipulating TIFF format image files
Group:		System/Libraries

%description -n %{libname}
The libtiff package contains a library of functions for manipulating TIFF
(Tagged Image File Format) image format files. TIFF is a widely used file
format for bitmapped images. TIFF files usually end in the .tif extension
and they are often quite large.

%files -n %{libname}
%doc ChangeLog COPYRIGHT
%{_libdir}/libtiff.so.%{major}*
%{_libdir}/libtiffxx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the libtiff library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	tiff-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and .so libraries for developing
programs which will manipulate TIFF format image files using the libtiff
library.

%files -n %{devname}
%{_datadir}/doc/%{devname}/*
%{_includedir}/*.h*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libtiff-4.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -qn tiff-%{version}
%autopatch -p1

%build
export LDFLAGS="%{ldflags}"
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="%{optflags}"
./autogen.sh

# the "JPEG 8/12 bit dual mode" is too messy..., maybe later?
# http://trac.osgeo.org/gdal/wiki/TIFF12BitJPEG
# --with-jpeg12-include-dir=
# --with-jpeg12-lib=
%configure --disable-static \
	--enable-ld-version-script \
	--with-docdir=%{_datadir}/doc/%{devname}

%make


%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}
%makeinstall_std

install -m0644 libtiff/tiffiop.h %{buildroot}%{_includedir}/
install -m0644 libtiff/tif_dir.h %{buildroot}%{_includedir}/

# Cleanup...
rm -f %{buildroot}%{_libdir}/*.la
# ... remove man pages for programs that are not provided anymore
rm -f %{buildroot}%{_mandir}/man1/rgb2ycbcr.1*
rm -f %{buildroot}%{_mandir}/man1/thumbnail.1*


%check
LD_LIBRARY_PATH=$PWD:$LD_LIBRARY_PATH make check



# CVE-2023-2731 < does not affect , there is no code to fix

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14370 |21mr|libtiger-0.3.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname tiger %{major}
%define devname %mklibname tiger -d
%define sdevname %mklibname tiger -d -s

Summary:	Text rendering library for Kate streams
Name:		libtiger
Version:	0.3.4
Release:	11
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://code.google.com/p/libtiger/
Source0:	http://libtiger.googlecode.com/files/%{name}-%{version}.tar.gz
Patch0:		libtiger-0.3.3-fix-linking.patch
Patch1:		libtiger-0.3.4-automake1.12.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(kate)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(python)

%description
libtiger is a rendering library for Kate streams using Pango and Cairo.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Text rendering library for Kate streams
Group:		System/Libraries

%description -n %{libname}
libtiger is a rendering library for Kate streams using Pango and Cairo.

%files -n %{libname}
%doc README THANKS AUTHORS
%{_libdir}/libtiger.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc ChangeLog installed-docs/*
%{_libdir}/libtiger.so
%{_libdir}/pkgconfig/tiger.pc
%{_includedir}/tiger

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library for %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static library for %{name}.

%files -n %{sdevname}
%{_libdir}/libtiger.a

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure --enable-static
%make_build

%install
%make_install
mkdir -p installed-docs
mv %{buildroot}%{_datadir}/doc/%{name}/html installed-docs
rm -rf %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14371 |21mr|libtimezonemap-0.4.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libmaj 1
%define libname %mklibname timezonemap %{libmaj}
%define girmaj 1.0
%define girname %mklibname timezonemap-gir %{girmaj}
%define devname %mklibname timezonemap -d

Summary:	Time zone map widget for Gtk+
Name:		libtimezonemap
Version:	0.4.5.1
Release:	2
License:	GPLv3+
Group:		System/Libraries
Url:		https://launchpad.net/timezonemap
Source0:	https://github.com/dashea/timezonemap/archive/%{version}.tar.gz
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)

%description
libtimezonemap is a time zone map widget for Gtk+. The widget displays a world
map with a highlighted region representing the selected time zone, and the
location can be changed by clicking on the map.

This library is a fork of the of the code from gnome-control-center's datetime
panel, which was itself a fork of Ubiquity's timezone map.

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Time zone map widget for Gtk+
Group:		System/Libraries

%description -n %{libname}
This library is a fork of the of the code from gnome-control-center's datetime
panel, which was itself a fork of Ubiquity's timezone map.

%files -n %{libname}
%doc README TODO COPYING
%{_libdir}/libtimezonemap.so.%{libmaj}*
%{_datadir}/%{name}
%{_datadir}/glade/catalogs/TimezoneMap.xml

#------------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	typelib(Json) = 1.0

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/TimezoneMap-1.0.typelib

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 0.4.5.1-2
Obsoletes:	%{name}-devel < 0.4.5.1-2

%description -n %{devname}
libtimezonemap is a time zone map widget for Gtk+. This package contains header
files used for building applications that use %{name}.

%files -n %{devname}
%{_libdir}/libtimezonemap.so
%{_libdir}/pkgconfig/timezonemap.pc
%{_includedir}/timezonemap
%{_datadir}/gir-1.0/TimezoneMap-1.0.gir

#------------------------------------------------------------------------------

%prep
%setup -qn timezonemap-%{version}

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14372 |21mr|libtinfo-6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dont_symlinks_libs 1

%define major 6
%define libname %mklibname tinfo %{major}

Summary:	Virtual package for libtinfo library
Name:		libtinfo
Version:	6
Release:	2
License:	MIT
Group:		System/Libraries
Url:		http://www.gnu.org/software/ncurses/ncurses.html

%description
Virtual package for libtinfo library.

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Virtual package for libtinfo library
Group:		System/Libraries
Requires:	%{_lib}ncurses%{major}
%ifarch %{x86_64}
Provides:	libtinfo.so.%{major}()(64bit) = %{EVRD}
%else
Provides:	libtinfo.so.%{major} = %{EVRD}
%endif

%description -n	%{libname}
Virtual package for libtinfo library.

%files -n %{libname}
%{_libdir}/libtinfo.so.%{major}
%{_libdir}/libtinfo.so.5

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_libdir}

pushd %{buildroot}%{_libdir}
ln -s /%{_lib}/libncurses.so.%{major} libtinfo.so.%{major}
# There are no binary incompatibilities here -- it's just
# a version number related soname increase. Let's keep binaries
# built against previous versions happy...
ln -s /%{_lib}/libncurses.so.6 libtinfo.so.5
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14373 |21mr|libtirpc-1.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname tirpc %{major}
%define devname %mklibname tirpc -d
%define static %mklibname -d -s tirpc

%bcond_without gss

Summary:	Transport Independent RPC Library
Name:		libtirpc
Version:	1.3.2
Release:	2
License:	SISSL and BSD
Group:		System/Libraries
Url:		http://sourceforge.net/projects/libtirpc
Source0:	http://downloads.sourceforge.net/libtirpc/%{name}-%{version}.tar.bz2
Patch2:		libtirpc-0.2.3-types.h.patch
Patch5:		libtirpc-0008-Add-rpcgen-program-from-nfs-utils-sources.patch
Patch6:		libtirpc-0.2.3-update-rpcgen-from-glibc.patch
Patch7:		rpcgen-compile.patch
Patch8:		libtirpc-0.3.0-sizeof.patch
# disabled as it breaks nfs etc.
#Patch8:	tirpc-xdr-update-from-glibc.patch
Patch12:	libtirpc-0010-Add-more-XDR-files-needed-to-build-rpcbind-on-top-of.patch
# CVE-2021-46828
Patch13:	Fix-DoS-vulnerability-in-libtirpc.patch

BuildRequires:	libtool
%if %{with gss}
BuildRequires:	krb5-devel
%else
BuildConflicts:	krb5-devel
%endif
BuildRequires:	pkgconfig(com_err)
BuildRequires:	autoconf
BuildRequires:	automake

%description
This package contains SunLib's implementation of transport-independent
RPC (TI-RPC) documentation.  This library forms a piece of the base of
Open Network Computing (ONC), and is derived directly from the
Solaris 2.3 source.

TI-RPC is an enhanced version of TS-RPC that requires the UNIX System V
Transport Layer Interface (TLI) or an equivalent X/Open Transport Interface
(XTI).  TI-RPC is on-the-wire compatible with the TS-RPC, which is supported
by almost 70 vendors on all major operating systems.  TS-RPC source code
(RPCSRC 4.0) remains available from several internet sites.

%package -n %{libname}
Summary:	Transport Independent RPC Library
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
This package contains the shared library for %{name}.

%package -n %{devname}
Summary:	Development files for the libtirpc library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	tirpc-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	glibc < 6:2.17-1.22064.3
Conflicts:	glibc-devel < 6:2.17-1.22064.3

%description -n %{devname}
This package includes header files and libraries necessary for developing
programs which use the tirpc library.

%package -n %{static}
Summary:	Static version of libtirpc library
Group:		Development/C
Requires:	%{devname} >= %{EVRD}
Provides:	tirpc-static-devel = %{EVRD}

%description -n %{static}
This package contains a static library version of the libtirpc library.

%prep
%autosetup -p1


%build
autoreconf -fiv

CONFIGURE_TOP="$PWD"
export CFLAGS="%{optflags} -fPIC"

%configure	\
	--libdir=/%{_lib} \
	--enable-shared \
	--enable-static \
%if %{with gss}
	--enable-gssapi
%else
	--disable-gssapi
%endif

%make all

%install
%makeinstall_std
install -m 755 -d %{buildroot}%{_sysconfdir}
install -m 644 doc/netconfig %{buildroot}%{_sysconfdir}/netconfig

install -d %{buildroot}%{_includedir}/{rpc,rpcsvc}/
cd %{buildroot}%{_includedir}/tirpc/rpc
for i in *.h; do
    ln -sf ../tirpc/rpc/$i %{buildroot}%{_includedir}/rpc/$i
done
cd ../rpcsvc
for i in *.h; do
    ln -sf ../tirpc/rpcsvc/$i %{buildroot}%{_includedir}/rpcsvc/$i
done
cd %{buildroot}%{_includedir}
ln -s tirpc/netconfig.h .

install -d %{buildroot}%{_libdir}
mv %{buildroot}/%{_lib}/libtirpc.a %{buildroot}%{_libdir}
mv %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}
rm %{buildroot}/%{_lib}/libtirpc.so
ln -srf %{buildroot}/%{_lib}/libtirpc.so.%{major}.* %{buildroot}%{_libdir}/libtirpc.so

%files
%config(noreplace) %{_sysconfdir}/netconfig
%config(noreplace) %{_sysconfdir}/bindresvport.blacklist

%files -n %{libname}
/%{_lib}/libtirpc.so.%{major}*

%files -n %{devname}
%doc AUTHORS ChangeLog COPYING NEWS README
%{_bindir}/rpcgen
%{_libdir}/libtirpc.so
%{_libdir}/pkgconfig/libtirpc.pc
%{_includedir}/tirpc
%{_includedir}/netconfig.h
%{_includedir}/rpc/*
%{_includedir}/rpcsvc/*
%{_mandir}/man[135]/*

%files -n %{static}
%{_libdir}/libtirpc.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14374 |21mr|libtomcrypt-1.18.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO: Split library package
%define	major 1
%define	libname %mklibname tomcrypt %{major}
%define	devname %mklibname tomcrypt -d
%define	debug_package %nil

Summary:	Comprehensive, portable cryptographic toolkit
Name:		libtomcrypt
Version:	1.18.2
Release:	6
License:	Public Domain
Group:		System/Libraries
Url:		https://www.libtom.net/LibTomCrypt/
Source0:	https://github.com/libtom/libtomcrypt/releases/download/v%{version}/crypt-%{version}.tar.xz
BuildRequires:	ghostscript
BuildRequires:	ghostscript-dvipdf
BuildRequires:	libtool
BuildRequires:	texlive-dvips
BuildRequires:	texlive-latex
BuildRequires:	pkgconfig(libtommath)
Patch0:		CVE-2019-17362.diff

%description
A comprehensive, modular and portable cryptographic toolkit that provides
developers with a vast array of well known published block ciphers, one-way
hash functions, chaining modes, pseudo-random number generators, public key
cryptography and a plethora of other routines.

Designed from the ground up to be very simple to use. It has a modular and
standard API that allows new ciphers, hashes and PRNGs to be added or removed
without change to the overall end application. It features easy to use
functions and a complete user manual which has many source snippet examples.

#----------------------------------------------------------------------------

%define	libprof %mklibname tomcrypt_prof 0

%package -n %{libname}
Summary:	Comprehensive, portable cryptographic toolkit
Group:		System/Libraries
%rename		%{libprof}

%description -n %{libname}
A comprehensive, modular and portable cryptographic toolkit that
provides developers with a vast array of well known published block
ciphers, one-way hash functions, chaining modes, pseudo-random number
generators, public key cryptography and a plethora of other routines.

Designed from the ground up to be very simple to use. It has a modular
and standard API that allows new ciphers, hashes and PRNGs to be added
or removed without change to the overall end application. It features
easy to use functions and a complete user manual which has many source
snippet examples.

%files -n %{libname}
%doc LICENSE
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	tommath-devel
Provides:	tomcrypt-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc doc/crypt.pdf
%{_includedir}/tomcrypt*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i -e 's,libtool,libtool --tag=CC,g' makefile* */makefile*

%build
%set_build_flags
export CFLAGS="%{optflags} -DLTM_DESC -DUSE_LTM -I%{_includedir}/tommath"
%ifarch ppc64
export CFLAGS="$CFLAGS -O0"
%endif

export PREFIX="%{_prefix}"
export INCPATH="%{_includedir}"
export LIBPATH="%{_libdir}"
export EXTRALIBS="-ltommath"

# build shared library
%make_build V=0 -f makefile.shared library

%install
# There is no configure script that ships with libtomcrypt but it does
# have understand DESTDIR and its installs via that and the
# INSTALL_USER and INSTALL_GROUP environment variables.
export INSTALL_USER=$(id -un)
export INSTALL_GROUP=$(id -gn)
export CFLAGS="%{optflags} -DLTM_DESC -DUSE_LTM"

%make_install INCPATH=%{_includedir} LIBPATH=%{_libdir} EXTRALIBS="-ltommath" -f makefile.shared

# Remove unneeded files
find %{buildroot} -name '*.la' -delete
find %{buildroot} -name '*.a' -delete

# Fix pkgconfig path
sed -i -e 's|^prefix=.*|prefix=%{_prefix}|g' -e 's|^libdir=.*|libdir=${prefix}/%{_lib}|g' -e 's|^includedir=.*|includedir=${prefix}/include/|g' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14375 |21mr|libtommath-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname tommath %{major}
%define devname %mklibname tommath -d
%define	debug_package %nil

Summary:	Portable number theoretic multiple-precision integer library
Name:		libtommath
Version:	1.2.1
Release:	1
License:	Public Domain
Group:		System/Libraries
Url:		http://www.libtom.org/LibTomMath/
Source0:	https://github.com/libtom/libtommath/archive/v%{version}.tar.gz
BuildRequires:	libtool

%description
A free open source portable number theoretic multiple-precision integer
library written entirely in C. (phew!). The library is designed to
provide a simple to work with API that provides fairly efficient
routines that build out of the box without configuration.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Portable number theoretic multiple-precision integer library
Group:		System/Libraries

%description -n %{libname}
A free open source portable number theoretic multiple-precision integer
library written entirely in C. (phew!). The library is designed to
provide a simple to work with API that provides fairly efficient
routines that build out of the box without configuration.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libtommath.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	tommath-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/tommath*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libtommath.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%set_build_flags
%make_build LDFLAGS="%{ldflags}" \
	CC=%{__cc} \
	INCPATH=%{_includedir}/ \
	LIBPATH=%{_libdir} \
	-f makefile.shared

%install
export INSTALL_USER=$(id -un)
export INSTALL_GROUP=$(id -gn)
%make_install \
	INCPATH=%{_includedir}/ \
	LIBPATH=%{_libdir} \
	-f makefile.shared

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14376 |21mr|libtool-2.4.6-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname_orig libltdl
%define major 7
%define libname %mklibname ltdl %{major}
%define devname %mklibname -d ltdl

# for the testsuite:
%define _disable_ld_no_undefined 1
%define _disable_ld_as_needed 1
# LTO kills the lt_libltdl_LTX_preloaded_symbols symbol
%define _disable_lto 1
%define _disable_rebuild_configure 1

%bcond_with bootstrap

Summary:	The GNU libtool, which simplifies the use of shared libraries
Name:		libtool
Version:	2.4.6
Release:	15
License:	GPLv2+
Group:		Development/Other
Url:		http://www.gnu.org/software/libtool/libtool.html
Source0:	http://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.xz
# From git://git.sv.gnu.org/config.git -- adds support for RISC-V and more
Source1:	config-20180719.tar.xz
Source10:	libtool.rpmlintrc
# deprecated: introduced in July 2003
# (cf http://lists.mandriva.com/cooker-amd64/2003-12/msg00046.php)
# but is not needed anymore since Sept 2003 change in rpm "Make "x86_64" the
# canonical arch on amd64"

# (Abel) Patches please only modify ltmain.in and don't touch ltmain.sh
# otherwise ltmain.sh will not be regenerated, and patches will be lost

# (cjw) when a library that is produced in the build is also linked against,
#       make sure that the library in the rpm install dir is used for relinking
#	even if (an older version of) the lib is installed on the system
Patch0:		relink.patch
#
Patch1:		libtool-2.2.10-rpath.patch
Patch2:		ltmain-SED.patch
# Support /usr/bin/ld == LLD
Patch3:		libtool-2.4.6-lld.patch
# Make config.sub work with bash 5
Patch5:		config-20180719-bash5.patch
Patch6:     e2k-config.patch
Patch13:	drop-ld-no-undefined-for-shared-lib-modules.patch
Patch14:	fix-checking-libltdl-is-installed-installable.patch
# (cjw) do not use CFLAGS when running gcj
Patch16:	libtool-2.2.6-use-gcjflags-for-gcj.patch
# (cjw) in the libltdl install test, use --enable-ltdl-install to make sure
#       the library is built even if it is installed on the system
Patch17:	libtool-2.2.6b-libltdl-install-test-fix.patch
# (fwang) detect libltdl.so rather than libltdl.la, as we will delete them
Patch20:	libtool-2.4.2-use-so-to-detect-libltdl.patch

# (tpg) upstream git
Patch100:	0000-libtool-fix-GCC-linking-with-specs.patch
Patch101:	0001-bootstrap-fix-race-in-temporary-Makefile.patch
Patch105:	0005-libool.m4-add-ARFLAGS-variable.patch
Patch106:	0006-ARFLAGS-use-cr-instead-of-cru-by-default.patch
Patch107:	0007-maint-relax-sc_prohibit_test_dollar-check.patch
Patch113:	0013-gl-tests-new-tests-for-func_quote-family.patch
Patch114:	0014-syntax-check-fix-sed-syntax-errors.patch
Patch117:	0017-m4-libtool.m4-export-AIX-TLS-symbols.patch
Patch118:	0018-gl-tests-make-the-failure-more-readable.patch
Patch119:	0019-libtool-fix-GCC-clang-linking-with-fsanitize.patch
Patch122:	0022-libltdl-handle-ENOMEM-sooner.patch
Patch126:	0026-libtoolize-exec-automake-and-autoconf-only-with-help.patch
Patch127:	0027-m4-libtool.m4-FreeBSD-elftoolchain-strip-support.patch
Patch128:	0028-libtool-pass-through-fuse-ld-flags.patch
Patch129:	0029-tests-fix-objdir-hardcoding-check-with-CFLAGS-g3.patch
Patch130:	0030-libtool-set-file_list_spec-to-on-OS-2.patch
Patch132:	0032-libltdl-handle-ENOMEM-in-lt_dlloader_remove.patch

# Pass --rtlib=* to the linker unmodified
# (must be applied after upstream patches because of conflicts)
Patch200:	libtool-2.4.6-pass-rtlib.patch
# If we put something on ldflags, we mean it to get through to ld!!!
# Just stop the insanity.
Patch201:	libtool-2.4.6-less-insane-linker-filtering.patch

BuildRequires:	help2man
BuildRequires:	texinfo
%if ! %{with bootstrap}
BuildRequires:	gcc-gfortran
%ifarch %{ix86} x86_64
BuildRequires:	quadmath-devel
%endif
%endif
Requires:	%{name}-base = %{EVRD}

%description
The libtool package contains the GNU libtool, a set of shell scripts
which automatically configure UNIX and UNIX-like architectures to
generically build shared libraries.  Libtool provides a consistent,
portable interface which simplifies the process of using shared
libraries.

If you are developing programs which will use shared libraries, you
should install libtool.

%package base
Group:		Development/C
Summary:	Basic package for %{name}
Requires:	file

%description base
The libtool package contains the GNU libtool, a set of shell scripts
which automatically configure UNIX and UNIX-like architectures to
generically build shared libraries.  Libtool provides a consistent,
portable interface which simplifies the process of using shared
libraries.

If you are developing programs which will use shared libraries, you
should install libtool.

%package -n %{libname}
Group:		Development/C
Summary:	Shared library files for libtool
License:	LGPLv2.1+
Provides:	%{libname_orig} = %{EVRD}

%description -n %{libname}
Shared library files for libtool DLL library from the libtool package.

%package -n %{devname}
Group:		Development/C
Summary:	Development files for libtool
License:	LGPLv2.1+
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{libname_orig}-devel = %{EVRD}

%description -n %{devname}
Development headers, and files for development from the libtool package.

%prep
%setup -q -a 1
%autopatch -p1
cd config
make
cp -f config.{guess,sub} ../build-aux/
cd ..

#./bootstrap --force
cd libltdl
autoheader
aclocal
automake -a
autoconf

%build
# don't use configure macro - it forces libtoolize, which is bad -jgarzik
# Use configure macro but define __libtoolize to be /bin/true -Geoff
%define __libtoolize /bin/true
# And don't overwrite config.{sub,guess} in this package as well -- Abel
%define __cputoolize /bin/true

%configure --disable-static

%make_build

# lame & ugly, trying to fix up relative paths that's made their way into libtool..
DIRS=$(cat libtool|grep compiler_lib_search_dirs|grep -F ..|uniq|cut -d'"' -f2)
PATHS=$(cat libtool|grep compiler_lib_search_path|grep -F ..|uniq|cut -d'"' -f2)
for i in $DIRS; do cd $i; ABSOLUTE="$ABSOLUTE $PWD"; cd -; done
ABSOLUTE=$(echo $ABSOLUTE | sed -e 's#%{_libdir} /%{_lib}#/%{_lib}#g' -e 's#%{_libdir} %{_libdir}#%{_libdir}#g')
sed -e 's#compiler_lib_search_dirs=\"$DIRS\"#compiler_lib_search_dirs=\"$ABSOLUTE\"#g' -i libtool
for i in $ABSOLUTE; do SEARCH=$(echo $SEARCH -L$i); done
sed -e 's#compiler_lib_search_path=\"$PATHS\"#compiler_lib_search_path=\"$SEARCH\"#g' -i libtool

# Do not use -nostdlib to build libraries, and so no need to hardcode gcc path (mdvbz#44616)
# (taken from debian, http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=206356)
# ([PIX] this is not done as a patch since the patch would be too big to maintain)
sed -i -e 's/^\(predep_objects\)=.*/\1=""/' \
       -e 's/^\(postdep_objects\)=.*/\1=""/' \
       -e 's/^\(compiler_lib_search_path\)=.*/\1=""/' \
       -e 's:^\(sys_lib_search_path_spec\)=.*:\1="/lib/ /usr/lib/ /usr/X11R6/lib/ /usr/local/lib/":' \
       -e 's/^\(archive_cmds=\".*\) -nostdlib /\1 /' \
       -e 's/^\(archive_expsym_cmds=\".*\) -nostdlib /\1 /' \
       libtool

%check
set +x
echo ====================TESTING=========================
set -x
# all tests must pass here
# disabling icecream since some tests check the output of gcc
# Also disabling parallel make, as of 2.4.6 causes hangs on -j32 boxes
ICECC=no make check VERBOSE=yes | tee make_check.log 2>&1 # || (cat make_check.log && false)
set +x
echo ====================TESTING END=====================
set -x


%install
%make_install

# Let's retain compatibility with pathname hardcodes from earlier...
mv %{buildroot}%{_datadir}/libtool/build-aux %{buildroot}%{_datadir}/libtool/config
ln -s config %{buildroot}%{_datadir}/libtool/build-aux

# Overwrite libtool's config.{guess,sub} with newer
# versions...
# (Needs to be wiped and unpacked again because %%configure
# replaced the key files with its own versions)
rm -rf config
tar xf %{S:1}
patch -p1 <%{P:5}
patch -p1 <%{P:6}
cp -f config/config.{guess,sub} %{buildroot}%{_datadir}/libtool/build-aux/


%files
%doc AUTHORS NEWS README THANKS TODO
%{_bindir}/libtool
%{_mandir}/man1/libtool.1*

%files base
%{_bindir}/libtoolize
%{_mandir}/man1/libtoolize.*
%{_infodir}/libtool.info*
%{_datadir}/libtool
%{_datadir}/aclocal/*.m4

%files -n %{libname}
%{_libdir}/libltdl.so.%{major}*

%files -n %{devname}
%doc libltdl/README
%{_includedir}/*
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14377 |21mr|libtorrent-rasterbar-2.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname torrent-rasterbar
%define major 2
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d
%global __provides_exclude libtorrent.so

Summary:	The Rasterbar BitTorrent library
Name:		libtorrent-rasterbar
Version:	2.0.9
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.rasterbar.com/products/libtorrent/
Source0:	https://github.com/arvidn/libtorrent/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)

%description
libtorrent-rasterbar is a C++ library that aims to be a good
alternative to all the other bittorrent implementations around. It is
a library and not a full featured client. It is not the same as the
other libtorrent, as used by the 'rtorrent' application, that is in
the 'libtorrent' package. The two are completely different and
incompatible.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Rasterbar BitTorrent library
Group:		System/Libraries

%description -n %{libname}
libtorrent-rasterbar is a C++ library that aims to be a good
alternative to all the other bittorrent implementations around. It is
a library and not a full featured client. It is not the same as the
other libtorrent, as used by the 'rtorrent' application, that is in
the 'libtorrent' package. The two are completely different and
incompatible.

%files -n %{libname}
%doc ChangeLog README.rst
%license AUTHORS COPYING LICENSE
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The Rasterbar BitTorrent library's development headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	rb_libtorrent-devel = %{EVRD}

%description -n %{devname}
libtorrent-rasterbar is a C++ library that aims to be a good
alternative to all the other bittorrent implementations around. It is
a library and not a full featured client. It is not the same as the
other libtorrent, as used by the 'rtorrent' application, that is in
the 'libtorrent' package. The two are completely different and
incompatible. This package contains development libraries and headers.

%files -n %{devname}
%doc ChangeLog README.rst
%license AUTHORS COPYING LICENSE
%{_datadir}/cmake/Modules/FindLibtorrentRasterbar.cmake
%{_includedir}/libtorrent
%{_libdir}/cmake/LibtorrentRasterbar/LibtorrentRasterbar*.cmake
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	The Rasterbar BitTorrent library's Python bindings
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
libtorrent-rasterbar is a C++ library that aims to be a good
alternative to all the other bittorrent implementations around. It is
a library and not a full featured client. It is not the same as the
other libtorrent, as used by the 'rtorrent' application, that is in
the 'libtorrent' package. The two are completely different and
incompatible. This package contains Python bindings.

%files -n python3-%{name}
%doc docs
%{py3_platsitedir}/*.egg-info
%{py3_platsitedir}/*.so

#----------------------------------------------------------------------------

%package tools
Summary:	Example tools from libtorrent-rasterbar
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description tools
Example tools from the libtorrent-rasterbar package.

%files tools
%doc ChangeLog README.rst
%license AUTHORS COPYING LICENSE
%{_bindir}/dump_torrent
%{_bindir}/make_torrent
%{_bindir}/simple_client

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -Wno-strict-aliasing
export CFLAGS="%{optflags} -DBOOST_FILESYSTEM_VERSION=2 -std=c++14"
export CXXFLAGS="%{optflags} -DBOOST_FILESYSTEM_VERSION=2 -std=c++14"
%cmake	\
	-Dboost-python-module-name=python	\
	-Dbuild_examples=ON			\
	-Dpython-bindings=ON			\
	-Dpython-egg-info=ON
%make

%install
%make_install -C build
mkdir -p %{buildroot}%{_bindir}
cp build/examples/{dump_torrent,make_torrent,simple_client} %{buildroot}%{_bindir}/
chmod +x %{buildroot}%{_bindir}/{dump_torrent,make_torrent,simple_client}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14378 |21mr|libtpms-0.9.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname tpms %{major}
%define	devname %mklibname -d tpms

Summary:	Library providing Trusted Platform Module (TPM) functionality
Name:		libtpms
Version:	0.9.3
Release:	2
Group:		System/Libraries
License:	BSD
Url:	https://github.com/stefanberger/libtpms
Source0:	https://github.com/stefanberger/libtpms/archive/refs/tags/%{name}-%{version}.tar.gz
Patch0:		libtpms-0.9.3-drop-Werror-flag.patch
BuildRequires:	gettext
BuildRequires:	glibc-devel
BuildRequires:	pkgconfig(openssl)

%description
A library providing TPM functionality for VMs. Targeted for integration
into Qemu.

#-----------------------------------------------------------------------------

%package		-n %{libname}
Summary:	Main %{name} library
Group:		System/Libraries

%description		-n %{libname}
A library providing TPM functionality for VMs. Targeted for integration
into Qemu.

%files	-n %{libname}
%license LICENSE
%doc CHANGES README
%{_libdir}/libtpms.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Include files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and documentation for %{name}.

%files -n %{devname}
%license LICENSE
%doc CHANGES README
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/tpm_*.h
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
%configure --disable-static --with-tpm2 --with-openssl
%make


%install
%makeinstall_std


%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14379 |21mr|libudfread-1.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname udfread %{major}
%define	devel %mklibname udfread -d

Summary:	UDF reader library from VideoLAN
Name:		libudfread
Version:	1.1.2
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://code.videolan.org/videolan/libudfread
Source0:	https://code.videolan.org/videolan/libudfread/-/archive/%{version}/%{name}-%{version}.tar.bz2

%description
Library for reading UDF file-system.

#-----------------------------------------------------------------------------

%package		-n %{libname}
Summary:	Library files for %{name}
Group:	System/Libraries

%description		-n %{libname}
Udfread is a library for reading UDF file-system.
This package contains the library files for %{name}.

%files	-n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package		-n %{devel}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	udfread-devel = %{EVRD}

%description		-n %{devel}
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.

%files	-n %{devel}
%doc examples/*.c
%dir %{_includedir}/udfread
%{_includedir}/udfread/*.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
autoreconf -vfi
%configure --disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14380 |21mr|libuninameslist-20091231-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
# TODO: Split library package
%define libname %mklibname uninameslist %{major}
%define devname %mklibname uninameslist -d

Summary:	A Library of Unicode annotation data
Name:		libuninameslist
Version:	20091231
Release:	11
License:	BSD Style
Group:		System/Libraries
Url:		http://libuninameslist.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2

%description
The Unicode consortium provides a file containing annotations on many
unicode characters. This library contains a compiled version of this
file so that programs can access these data easily.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A Library of Unicode annotation data
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
The Unicode consortium provides a file containing annotations on many
unicode characters. This library contains a compiled version of this
file so that programs can access these data easily.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libuninameslist.so.%{major}*
%{_libdir}/libuninameslist-fr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The Unicode consortium provides a file containing annotations on many
unicode characters. This library contains a compiled version of this
file so that programs can access these data easily.

This package provides development related files for compiling or
developing any software that make use of this library.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/lib*.a

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
%configure --enable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14381 |21mr|libunistring-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname unistring %{major}
%define devname %mklibname -d unistring

Summary:	GNU Unicode string library
Name:		libunistring
Version:	1.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.gnu.org/software/libunistring/
Source0:	http://ftp.gnu.org/gnu/libunistring/%{name}-%{version}.tar.gz
Patch0:		libunistring-1.0-add-pkg-config-support.patch

%description
This library implements Unicode strings (in three flavours: UTF-8
strings, UTF-16 strings, UTF-32 strings), together with functions for
Unicode charactets (character names, classifications, properties) and
functions for string processing (formatted output, width, word breaks,
line breaks, normalization, case folding, regular expressions).

#--------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	GNU Unicode string library

%description -n %{libname}
This library implements Unicode strings (in three flavours: UTF-8
strings, UTF-16 strings, UTF-32 strings), together with functions for
Unicode charactets (character names, classifications, properties) and
functions for string processing (formatted output, width, word breaks,
line breaks, normalization, case folding, regular expressions).

%files -n %{libname}
%doc AUTHORS NEWS README
%{_libdir}/%{name}.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Group:		Development/C
Summary:	GNU Unicode string library - development files
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This library implements Unicode strings (in three flavours: UTF-8
strings, UTF-16 strings, UTF-32 strings), together with functions for
Unicode charactets (character names, classifications, properties) and
functions for string processing (formatted output, width, word breaks,
line breaks, normalization, case folding, regular expressions).

%files -n %{devname}
%doc HACKING DEPENDENCIES THANKS ChangeLog
%doc %{_datadir}/doc/%{name}/*.html
%{_includedir}/*.h
%{_includedir}/unistring
%{_infodir}/%{name}.info*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh --skip-gnulib

%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14382 |21mr|libunwind-1.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname		unwind
%define onamedump	unwindcoredump
%define major		8
%define majordump	0
%define majorsetjmp 0
%define libname	%mklibname %{oname} %{major}
%define libdump	%mklibname %{onamedump} %{majordump}
%define devname	%mklibname %{oname} -d
%define _disable_ld_no_undefined 1

Summary:	An unwinding library
Name:		libunwind
Version:	1.6.2
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://savannah.nongnu.org/projects/libunwind
Source0:	http://download.savannah.gnu.org/releases/libunwind/libunwind-%{version}.tar.gz
BuildRequires:	libtool
# not support build for e2k
ExcludeArch:	%{e2k}

%description
Libunwind provides a C ABI to determine the call-chain of a program.
This version of libunwind is targetted for the ia64 platform.

%package -n %{libname}
Summary:	Dynamic libraries from %{oname}
Group:		System/Libraries
Provides:	%{name} = %{version}-%{release}
Obsoletes:	%{_lib}unwind1 < 1.0.1-1

%description -n %{libname}
Dynamic libraries from %{name}.

%package -n %{libdump}
Summary:	Dynamic libraries from %{oname}
Group:		System/Libraries
Provides:	%{name}-coredump = %{version}-%{release}
Requires:	%{name} = %{version}-%{release}
Obsoletes:	%{_lib}unwind1 < 1.0.1-1

%description -n %{libdump}
Dynamic libraries from %{name}.

%package -n %{devname}
Summary:	Development package for libunwind
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires:	%{name}-coredump = %{version}-%{release}
Requires:	%{mklibname %{oname}-setjmp %{majorsetjmp}} = %{EVRD}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
The libunwind-devel package includes the libraries and header files for
libunwind.

%dependinglibpackage %{oname}-setjmp %{majorsetjmp}

%prep
%autosetup -p1
autoreconf -fi

%build
%configure \
       --enable-static \
       --enable-shared

%make_build

%install
%make_install

# /usr/include/libunwind-ptrace.h
# [...] aren't really part of the libunwind API.  They are implemented in
# a archive library called libunwind-ptrace.a.
mv -f %{buildroot}%{_libdir}/libunwind-ptrace.a %{buildroot}%{_libdir}/libunwind-ptrace.a-save
rm -f %{buildroot}%{_libdir}/libunwind*.a
mv -f %{buildroot}%{_libdir}/libunwind-ptrace.a-save %{buildroot}%{_libdir}/libunwind-ptrace.a
rm -f %{buildroot}%{_libdir}/libunwind-ptrace*.so*

%check
%if 0%{?_with_check:1} || 0%{?_with_testsuite:1}
echo ====================TESTING=========================
make check || true
echo ====================TESTING END=====================
%else
echo ====================TESTSUITE DISABLED=========================
%endif

%files -n %{libname}
%{_libdir}/libunwind*.so.%{major}*

%files -n %{libdump}
%{_libdir}/libunwind-coredump.so.%{majordump}*

%files -n %{devname}
%doc COPYING README NEWS
%{_libdir}/libunwind*.so
%{_libdir}/libunwind-ptrace.a
%{_libdir}/pkgconfig/*.pc
# <unwind.h> does not get installed for REMOTE_ONLY targets - check it.
%{_includedir}/unwind.h
%{_includedir}/libunwind*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14383 |21mr|libupnp-1.14.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 17
%define ixml_major 11
%define libname %mklibname upnp %{major}
%define libixml %mklibname ixml %{ixml_major}
%define devname %mklibname upnp -d

Summary:	Library and tools for the UPnP protocol
Name:		libupnp
Version:	1.14.13
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://pupnp.sourceforge.net/
Source0:	http://downloads.sourceforge.net/pupnp/%{name}-%{version}.tar.bz2

%description
The Linux SDK for UPnP Devices (libupnp) provides developers with an API and
open source code for building control points, devices, and bridges that are
compliant with Version 1.0 of the Universal Plug and Play Device
Architecture Specification.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library and tools for the UPnP protocol
Group:		System/Libraries

%description -n %{libname}
The Linux SDK for UPnP Devices (libupnp) provides developers with an API and
open source code for building control points, devices, and bridges that are
compliant with Version 1.0 of the Universal Plug and Play Device
Architecture Specification.

%files -n %{libname}
%doc THANKS
%{_libdir}/libupnp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libixml}
Summary:	Library and tools for the UPnP protocol
Group:		System/Libraries
Conflicts:	%{_lib}upnp6 < 1.6.17-6

%description -n %{libixml}
The Linux SDK for UPnP Devices (libupnp) provides developers with an API and
open source code for building control points, devices, and bridges that are
compliant with Version 1.0 of the Universal Plug and Play Device
Architecture Specification.

%files -n %{libixml}
%{_libdir}/libixml.so.%{ixml_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libixml} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}upnp-static-devel < 1.6.17-6

%description -n %{devname}
Libraries and includes static files for developing programs based on %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--enable-tools \
	--enable-sample \
	--disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14384 |21mr|liburing-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major   2
%define libname %mklibname uring %major
%define devname %mklibname uring -d

Name: liburing
Version: 2.1
Release: 1
Summary: Linux-native io_uring I/O access library
Group: System/Libraries
License: (GPLv2 with exceptions and LGPLv2+) or MIT
Source0: https://brick.kernel.dk/snaps/%{name}-%{version}.tar.bz2
URL: https://git.kernel.dk/cgit/liburing

%description
Provides native async IO for the Linux kernel, in a fast and efficient
manner, for both buffered and O_DIRECT.

%package -n %{libname}
Summary: Linux-native io_uring I/O access library
Group: System/Libraries

%description -n %{libname}
Provides native async IO for the Linux kernel, in a fast and efficient
manner, for both buffered and O_DIRECT.

%package -n %{devname}
Group: Development/C
Summary: Development files for Linux-native io_uring I/O access library
Requires: %{libname}%{_isa} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n %{devname}
This package provides header files to include and libraries to link with
for the Linux-native io_uring.

%prep
%autosetup -p1

%build
%set_build_flags
# (tpg) don't use macro here
./configure --prefix=%{_prefix} --libdir=/%{_libdir} --libdevdir=/%{_libdir} --mandir=%{_mandir} --includedir=%{_includedir} --cc=%{__cc} --cxx=%{__cxx}

%make_build

%install
%make_install

%files -n %{libname}
%attr(0755,root,root) %{_libdir}/liburing.so.%{major}{,.*}
%license COPYING

%files -n %{devname}
%{_includedir}/liburing/
%{_includedir}/liburing.h
%{_libdir}/liburing.so
%{_libdir}/liburing.a
%{_libdir}/pkgconfig/*
%doc %{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14385 |21mr|libusb-1.0.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 0
%define libname %mklibname usb %{api} %{major}
%define devname %mklibname usb %{api} -d
%define sdevname %mklibname usb %{api} -d -s

Summary:	Library for accessing USB devices
Name:		libusb
Version:	1.0.26
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://libusb.info
Source0:	https://github.com/libusb/libusb/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	pkgconfig(udev)
Provides:	libusbx1 = %{EVRD}
Provides:	libusbx = %{EVRD}
Provides:	libusb1 = %{EVRD}
Obsoletes:	libusb1 < 1.0.10

%description
This package provides a way for applications to access USB devices.

Libusbx is a fork of the original libusb, which is a fully API and ABI
compatible drop in for the libusb-1.0.9 release. The libusbx fork was
started by most of the libusb-1.0 developers, after the original libusb
project did not produce a new release for over 18 months.

Note that this library is not compatible with the original libusb-0.1 series,
if you need libusb-0.1 compatibility install the libusb package.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libusbx is a fork of the original libusb
Group:		System/Libraries
Conflicts:	%{_lib}usbx1.0_0 < 1.0.18-2
Obsoletes:	%{_lib}usbx1.0_0 < 1.0.18-2

%description -n %{libname}
Libusbx is a fork of the original libusb, which is a fully API and ABI
compatible drop in for the libusb-1.0.9 release. The libusbx fork was
started by most of the libusb-1.0 developers, after the original libusb
project did not produce a new release for over 18 months.

%files -n %{libname}
%{_libdir}/libusb-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-devel-doc = %{EVRD}
Provides:	libusbx1-devel = %{EVRD}
Provides:	libusb1-devel = %{EVRD}
Provides:	libusbx-devel = %{EVRD}
Provides:	usbx-devel = %{EVRD}
Provides:	usb1-devel = %{EVRD}
Provides:	usb1.0-devel = %{EVRD}
Conflicts:	%{_lib}usbx1.0-devel < 1.0.18-2
Obsoletes:	%{_lib}usbx1.0-devel < 1.0.18-2
Obsoletes:	libusb1-devel < 1.0.10

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/libusb-%{api}
%{_libdir}/libusb-%{api}.so
%{_libdir}/pkgconfig/libusb-%{api}.pc

#----------------------------------------------------------------------------

#static package
%package -n %{sdevname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name}-devel-doc = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	libusbx1-static-devel = %{EVRD}
Provides:	libusb1-static-devel = %{EVRD}
Provides:	libusbx-static-devel = %{EVRD}
Provides:	usbx-devel-static = %{EVRD}
Provides:	usb1-static-devel = %{EVRD}
Provides:	usb1.0-static-devel = %{EVRD}
Conflicts:	%{_lib}usbx1.0-static-devel < 1.0.18-2
Obsoletes:	%{_lib}usbx1.0-static-devel < 1.0.18-2
Obsoletes:	libusb1-static-devel < 1.0.10

%description -n %{sdevname}
The %{name}-static-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{sdevname}
%{_libdir}/libusb-%{api}.a

#----------------------------------------------------------------------------

%package devel-doc
Summary:	Documentation for %{name}
Group:		Documentation
Provides:	libusb1-devel-doc = %{EVRD}
Obsoletes:	libusb1-devel-doc < 1.0.10
BuildArch:	noarch

%description devel-doc
This package contains API documentation for %{name}.

%files devel-doc
%doc examples/*.c

#----------------------------------------------------------------------------

%prep
%autosetup -p1
for i in examples/*.c; do
	iconv -f ISO-8859-1 -t UTF-8 -o $i.new $i
	touch -r $i $i.new
	mv $i.new $i
done

%build
libtoolize --force
autoheader
autoconf
autoreconf -fiv
%configure \
	--enable-static \
	--enable-examples-build
%make_build

pushd doc
make docs
popd

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14386 |21mr|libusb-compat-0.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define api 0.1
%define major 4
%define libname %mklibname usb-compat %api %major
%define devellibname %mklibname -d usb-compat %api
%define sdevellibname %mklibname -s -d usb-compat %api

%define oldlibusb_version 0.1.12-14

Summary:	A library which allows userspace access to USB devices
Name:		libusb-compat
Version:	0.1.5
Release:	1
Source0:	http://downloads.sourceforge.net/libusb/libusb-compat-0.1/libusb-compat-0.1.0/%name-%{version}.tar.bz2
License:	LGPLv2+
Group:		System/Libraries
URL:		http://libusb.wiki.sourceforge.net/Libusb1.0
BuildRequires:	doxygen 
BuildRequires:	pkgconfig(libusb-1.0)
Patch1:	libusb-0.1-ansi.patch

%description
A compatibility layer allowing applications written for libusb-0.1 to work
with libusb-1.0. libusb-compat-0.1 attempts to look, feel, smell and walk
like libusb-0.1.

%package -n %libname
Summary: %summary
Group:	System/Libraries
Provides: %{_lib}usb0.1_4 = %oldlibusb_version
Obsoletes: %{_lib}usb0.1_4 < %oldlibusb_version
# old provides from libusb0.1_4
Provides: libusb = %oldlibusb_version
Provides: libusb0.1 = %oldlibusb_version
# wrong name for a short period in cooker
Obsoletes: %{_lib}usb-compat0 < 0.1.0-6

%description -n %libname
A compatibility layer allowing applications written for libusb-0.1 to work
with libusb-1.0. libusb-compat-0.1 attempts to look, feel, smell and walk
like libusb-0.1.

%package -n %devellibname
Summary: Development files for libusb-0.1
Group:	Development/C
Requires: %{libname} = %{version}
Provides: %{_lib}usb-devel = %oldlibusb_version
Obsoletes: %{_lib}usb-devel < %oldlibusb_version
Obsoletes: %{_lib}usb0.1_4-devel < %oldlibusb_version
# wrong name for a short period in cooker:
Obsoletes: %{_lib}usb-compat0-devel < 0.1.0-6
Provides: libusb-devel = %oldlibusb_version
Provides: libusb0.1-devel = %oldlibusb_version
Provides: usb-compat-devel = %{version}-%{release}
Provides: usb0.1-devel = %{version}-%{release}

%description -n %devellibname
This package contains the header files, libraries  and documentation needed to
develop applications that use libusb-0.1.

%package -n %sdevellibname
Summary: Static development files for libusb-0.1
Group:	Development/C
Requires: %{devellibname} = %{version}
Provides: libusb-static-devel = %oldlibusb_version
Provides: libusb0.1-static-devel = %oldlibusb_version
Obsoletes: %{_lib}usb-static-devel < %oldlibusb_version
Obsoletes: %{_lib}usb1.0_4-static-devel < %oldlibusb_version
# wrong name for a short period in cooker:
Obsoletes: %{_lib}usb-compat0-static-devel < 0.1.0-6

%description -n %sdevellibname
This package contains static libraries to develop applications that use
libusb0.

%prep
%autosetup -p1

%build
%configure \
	--enable-static \
	--libdir=/%_lib

%make_build

%install
%make_install

# static library is not needed in /lib
mkdir -p %{buildroot}%{_libdir}
mv %{buildroot}/%{_lib}/libusb.a %{buildroot}%{_libdir}
# add a symlink just in case libtool expects it to be there due to it
# being referenced in the .la file
ln -s %{_libdir}/libusb.a %{buildroot}/%{_lib}/libusb.a
# move pkgconfig
mv %buildroot/%_lib/pkgconfig %buildroot/%_libdir/

%files -n %libname
%doc AUTHORS COPYING README NEWS
/%{_lib}/libusb-%{api}.so.%{major}*

%files -n %devellibname
%doc examples/*.c
%{_libdir}/pkgconfig/libusb.pc
%{_includedir}/usb.h
/%_lib/libusb.so
%_bindir/libusb-config

%files -n %sdevellibname
/%_lib/libusb.a
%{_libdir}/libusb.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14387 |21mr|libusbmuxd-2.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname usbmuxd %{major}
%define devname %mklibname -d usbmuxd

Summary:	Library for usbmuxd which communicates with Apple devices
Name:		libusbmuxd
Version:	2.0.2
Release:	2
Group:		System/Libraries
License:	LGPLv2+
Url:		http://www.libimobiledevice.org/ 
Source0:	https://github.com/libimobiledevice/libusbmuxd/releases/download/%{version}/libusbmuxd-%{version}.tar.bz2

BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libplist-2.0) >= 2.2.0

%description
libusbmuxd provides support for the usbmuxd daemon
that communicates with Apple devices.
It allows simultaeneous access to multiple device
services supported by libimobiledevice

%files
%{_bindir}/iproxy
%{_bindir}/inetcat
%{_mandir}/man1/*

#-------------------------------------------------------------------
%package -n %{libname}
Group:		System/Libraries
Summary:	Library that provides support for the usbmuxd daeon

%description -n %{libname}
libusbmuxd is a library that provides support for the usbmuxd daeon

%files -n %{libname}
%{_libdir}/libusbmuxd-2.0.so.%{major}*

#-------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for libusbmuxd
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
%{name}, development headers and libraries.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/libusbmuxd-2.0.so
%{_libdir}/pkgconfig/libusbmuxd-2.0.pc

#-------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make_build

%install
%make_install

#Remove libtool archives.
find %{buildroot} -type f -name "*.la" -delete

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14388 |21mr|libuser-0.62-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname user %{major}
%define devname %mklibname user -d

%bcond_with check
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	A user and group account administration library
Name:		libuser
Version:	0.62
Release:	7
License:	LGPLv2.1+
Group:		System/Configuration/Other
Url:		https://pagure.io/libuser
Source0:	https://fedorahosted.org/releases/l/i/libuser/%{name}-%{version}.tar.xz
# patches merged upstream (to be drop on next update):
Patch0:		libuser-0.56.9-fix-str-fmt.patch
# default to blowfish for passwords instead of md5 (#59158)
Patch3:		libuser-0.57.1-borkfix.diff
# fix building with modern libselinux
Patch4:		29d9996dd200916db888d41196f87609bce329ff.patch
BuildRequires:	bison
BuildRequires:	gettext
# To make sure the configure script can find it
BuildRequires:	nscd
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libsasl2)
%if %{with check}
# For %%check
BuildRequires:	openldap-servers openldap-clients
%endif

%description
The libuser library implements a standardized interface for manipulating
and administering user and group accounts.  The library uses pluggable
back-ends to interface to its data sources.

Sample applications modeled after those included with the shadow password
suite are included.

%files -f %{name}.lang
%doc AUTHORS NEWS README TODO docs/*.txt python/modules.txt
%config(noreplace) %{_sysconfdir}/libuser.conf
%{_bindir}/*
%{_sbindir}/*
%dir %{_libdir}/%{name}/
%{_libdir}/%{name}/libuser_files.so
%{_libdir}/%{name}/libuser_shadow.so
%{_mandir}/man5/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package ldap
Summary:	Libuser LDAP library
Group:		System/Libraries

%description ldap
This package contains the libuser LDAP library.

%files ldap
%{_libdir}/%{name}/libuser_ldap.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The actual libraries for libuser
Group:		System/Libraries

%description -n %{libname}
This is the actual library for the libuser library.

%files -n %{libname}
%{_libdir}/libuser.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for developing applications which use libuser
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libuser-devel package contains header files, static libraries, and other
files useful for developing applications with libuser.

%files -n %{devname}
%dir %{_includedir}/libuser
%{_includedir}/libuser/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%package python3
Summary:	Library bindings for python
Group:		Development/Python

%description python3
This package contains the python library for python applications that 
use libuser.

%files python3
%{py3_platsitedir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch3 -p0
%patch4 -p1

# fix tha tests
perl -pi -e "s|/etc/openldap/schema|/usr/share/openldap/schema|g" tests/slapd.conf.in

%build
export PYTHON=%{__python3}
export CFLAGS="%{optflags} -fPIC -DG_DISABLE_ASSERT -I/usr/include/sasl -DLDAP_DEPRECATED"
%configure \
	--with-ldap \
	--with-python \
	--with-popt \
	--without-sasl \
	--disable-rpath \
%if %{with selinux}
	--with-selinux \
%else
	--without-selinux \
%endif
	--enable-gtk-doc=no
%make_build

%install
%make_install

%find_lang %{name}

# Remove unpackaged files
rm -rf  %{buildroot}/usr/share/man/man3/userquota.3 \
        %{buildroot}%{py3_platsitedir}/*a \
        %{buildroot}%{_libdir}/%{name}/*.la \
        %{buildroot}%{_libdir}/*.la

LD_LIBRARY_PATH=%{buildroot}%{_libdir}:${LD_LIBRARY_PATH}
export LD_LIBRARY_PATH

# Verify that all python modules load, just in case.
pushd %{buildroot}/%{_libdir}/python%{py3_ver}/site-packages/
    %{__python3} -c "import libuser"
popd

%if %{with check}
%check
# note: the tests uses fixed ports 3890 and 6360
#LD_LIBRARY_PATH=%{buildroot}%{_libdir}:${LD_LIBRARY_PATH}
#export LD_LIBRARY_PATH
make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14389 |21mr|libuv-1.48.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname uv %{major}
%define devname %mklibname uv -d

Summary:	Multi-platform support library with a focus on asynchronous I/O
Name:		libuv
Version:	1.48.0
Release:	1
Group:		System/Libraries
# the licensing breakdown is described in detail in the LICENSE file
License:	MIT and BSD and ISC
Url:		http://libuv.org/
Source0:	https://github.com/libuv/libuv/archive/v%{version}.tar.gz

%description
libuv is a new platform layer for Node. Its purpose is to abstract IOCP on
Windows and libev on Unix systems. We intend to eventually contain all platform
differences in this library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Multi-platform support library with a focus on asynchronous I/O
Group:		System/Libraries

%description -n %{libname}
Platform layer for node.js shared library.

%files -n %{libname}
%{_libdir}/libuv.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libuv-devel = %{EVRD}

%description -n %{devname}
Development libraries for %{name}

%files -n %{devname}
%doc README.md AUTHORS LICENSE
%{_libdir}/libuv.so
%{_libdir}/pkgconfig/libuv.pc
%{_includedir}/uv*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
./autogen.sh
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14390 |21mr|libva-2.18.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname va %{major}
%define devname %mklibname va -d

Summary:	Video Acceleration (VA) API for Linux
Name:		libva
Epoch:		2
Version:	2.18.0
Release:	2
License:	MIT
Group:		System/Libraries
Url:		http://freedesktop.org/wiki/Software/vaapi
Source0:	https://github.com/intel/libva/releases/download/%{version}/libva-%{version}.tar.bz2
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)

%description
Libva is a library providing the VA API video acceleration API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Provides:   %{name}-wayland%{major} = %{EVRD}
Provides:   %{name}-wayland = %{EVRD}
Provides:   %{name}-drm = %{EVRD}
Provides:   %{name}-glx = %{EVRD}
Provides:   %{name}-x11 = %{EVRD}

%description -n %{libname}
Libva is a library providing the VA API video acceleration API.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*
%{_libdir}/%{name}-wayland.so.%{major}*
%{_libdir}/%{name}-drm.so.%{major}*
%{_libdir}/%{name}-glx.so.%{major}*
%{_libdir}/%{name}-x11.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/va
%{_libdir}/%{name}*.so
%{_libdir}/pkgconfig/%{name}*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# nvctrl reenables vaapi-driver-vdpau
# emgd - I am not sure what it is, something about Nvidia on Wayland probably
# Do not enable fglrx here, it makes no sense because fglrx does not work in modern ROSA
%meson -Dwith_legacy="emdg,nvctrl"
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14391 |21mr|libvarlink-23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _hardened_build 1

%define major 0
%define libname %mklibname varlink %{major}
%define devname %mklibname varlink -d

Name:           libvarlink
Version:	23
Release:	1
Summary:        Varlink C Library
Group:		System/Libraries
License:        ASL 2.0
URL:            https://github.com/varlink/%{name}
Source0:        https://github.com/varlink/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:  meson
BuildRequires:  pkgconfig(python3)

%description
Varlink C Library

#===============================================================
%package -n %{libname}
Summary:        Varlink C Library
Group:		System/Libraries

%description -n %{libname}
Varlink C Library

%files -n %{libname}
%license LICENSE
%{_libdir}/libvarlink.so.%{major}*

#=================================================================
%package -n %{devname}
Summary:        Development files for %{name}
Provides:       %{name}-devel = %{EVRD}
Provides:	varlink-devel = %{EVRD}
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/varlink.h
%{_libdir}/libvarlink.so
%{_libdir}/pkgconfig/libvarlink.pc

#=================================================================
%package        util
Summary:        Varlink command line tools

%description    util
The %{name}-util package contains varlink command line tools.

%files util
%{_bindir}/varlink
%{_datadir}/bash-completion/completions/varlink
%{_datadir}/vim/vimfiles/after/*
#===============================================================

%prep
%setup -q

%build
%meson
%meson_build

%check
#export LC_CTYPE=C.utf8
#% meson_test

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14392 |21mr|libva-utils-2.18.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for libva (including vainfo)
Name:		libva-utils
Epoch:		2
Version:	2.18.2
Release:	1
License:	MIT
Group:		Video
Url:		http://freedesktop.org/wiki/Software/vaapi
Source0:	https://github.com/intel/libva-utils/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)

%description
The libva-utils package contains tools that are provided as part of libva,
including the vainfo tool for determining what (if any) libva support is
available on a system.

%files
%license COPYING
%doc NEWS README*
%{_bindir}/av1encode
%{_bindir}/avcenc
%{_bindir}/avcstreamoutdemo
%{_bindir}/h264encode
%{_bindir}/hevcencode
%{_bindir}/jpegenc
%{_bindir}/loadjpeg
%{_bindir}/mpeg2vaenc
%{_bindir}/mpeg2vldemo
%{_bindir}/putsurface*
%{_bindir}/sfcsample
%{_bindir}/vainfo
%{_bindir}/vacopy
%{_bindir}/vavpp
%{_bindir}/vp8enc
%{_bindir}/vp9enc
%{_bindir}/vpp3dlut
%{_bindir}/vppblending
%{_bindir}/vppchromasitting
%{_bindir}/vppdenoise
%{_bindir}/vpphdr_tm
%{_bindir}/vppscaling_csc
%{_bindir}/vppscaling_n_out_usrptr
%{_bindir}/vppsharpness

#----------------------------------------------------------------------------

%prep
%setup -q
%ifarch %{e2k}
# error #20: identifier "VA_RC_TCBRC" is undefined
sed -i '/{VA_RC_TCBRC,\s\+"VA_RC_TCBRC"},/d' vainfo/vainfo.c
%endif


%build
#global optflags %%{optflags} -fno-strict-aliasing
%meson -Ddrm=true \
			-Dx11=true \
			-Dwayland=true

%meson_build


%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14393 |21mr|libvdpau-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname vdpau %{major}
%define	devname %mklibname vdpau -d
%define	libtrace %mklibname vdpau-trace

%bcond_without bootstrap

Summary:	Video Decode and Presentation API for Unix
Name:		libvdpau
Version:	1.5
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://gitlab.freedesktop.org/vdpau
Source0:	https://gitlab.freedesktop.org/vdpau/libvdpau/-/archive/%{version}/libvdpau-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	doxygen
BuildRequires:	meson >= 0.41
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
# For apidoc:
%if !%{with bootstrap}
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	texlive-pdftex
%endif

%description
The Video Decode and Presentation API for Unix (VDPAU) provides a
complete solution for decoding, post-processing, compositing, and
displaying compressed or uncompressed video streams. These video
streams may be combined (composited) with bitmap content, to
implement OSDs and other application user interfaces.

Only the proprietary NVIDIA driver supports this interface so far.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	VDPAU shared library
Group:		System/Libraries

%description -n %{libname}
The Video Decode and Presentation API for Unix (VDPAU) wrapper shared
library. This library is responsible for loading the hardware-specific
VDPAU driver.

%files -n %{libname}
%doc COPYING
%{_sysconfdir}/vdpau_wrapper.cfg
%dir %{_libdir}/vdpau
%{_libdir}/%{name}.so.%{major}*


#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	VDPAU development headers
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	%{libtrace} = %{EVRD}
Provides:	vdpau-devel = %{EVRD}

%description -n %{devname}
This package contains the VDPAU headers for developing software that
uses VDPAU.

%files -n %{devname}
%doc AUTHORS
%if !%{with bootstrap}
%doc %{_arch}-rosa-linux-gnu/doc/html/*
%endif
%{_includedir}/vdpau
%{_libdir}/%{name}.so
%{_libdir}/vdpau/%{name}_trace.so
%{_libdir}/pkgconfig/vdpau.pc

#----------------------------------------------------------------------------

%package -n %{libtrace}
Summary:	VDPAU tracing module for debugging
Group:		Development/X11
Requires:	%{libname} = %{EVRD}

%description -n %{libtrace}
Tracing module for debugging VDPAU.

%files -n %{libtrace}
%doc COPYING
# Major is the plugin interface version, not %%major
%{_libdir}/vdpau/%{name}_trace.so.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%meson \
%if !%{with bootstrap}
	-Ddocumentation=true
%endif

%meson_build


%install
%meson_install

%if !%{with bootstrap}
# We pick up docs with our macro
rm -rf %{buildroot}%{_docdir}/%{name}/html
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14394 |21mr|libvdpau-va-gl-0.4.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# .so is not a devel file here
%if %{_use_internal_dependency_generator}
%global __provides_exclude devel\\(.*
%global __requires_exclude devel\\(.*
%endif

%define major 1
%define libname %mklibname vdpau_va_gl %{major}

Summary:	VDPAU driver with OpenGL/VAAPI backend
Name:		libvdpau-va-gl
Version:	0.4.2
Release:	5
License:	GPLv3+
Group:		System/Libraries
Url:		https://github.com/i-rinat/libvdpau-va-gl
Source0:	https://github.com/i-rinat/libvdpau-va-gl/archive/v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libva-x11)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(x11)

%description
Many applications can use VDPAU to accelerate portions of the video decoding
process and video post-processing to the GPU video hardware. Unfortunately,
there is no such library for many graphic chipsets. Some applications also
support VA-API but many of them, including Adobe Flash Player, don't.

This library proposes a generic VDPAU library. It uses OpenGL under the hood
to accelerate drawing and scaling and VA-API (if available) to accelerate video
decoding.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	VDPAU driver with OpenGL/VAAPI backend
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
Many applications can use VDPAU to accelerate portions of the video decoding
process and video post-processing to the GPU video hardware. Unfortunately,
there is no such library for many graphic chipsets. Some applications also
support VA-API but many of them, including Adobe Flash Player, don't.

This library proposes a generic VDPAU library. It uses OpenGL under the hood
to accelerate drawing and scaling and VA-API (if available) to accelerate video
decoding.

%files -n %{libname}
%doc ChangeLog README.md
%{_libdir}/libvdpau_va_gl.so.%{major}*
%{_libdir}/libvdpau_va_gl.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14395 |21mr|libverto-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1

%define libverto %mklibname verto %{major}
%define devverto %mklibname verto -d
%define libglib %mklibname verto-glib %{major}
%define devglib %mklibname verto-glib -d
%define libev %mklibname verto-libev %{major}
%define devev %mklibname verto-libev -d
%define libevent %mklibname verto-libevent %{major}
%define devevent %mklibname verto-libevent -d
%define libtevent %mklibname verto-tevent %{major}
%define devtevent %mklibname verto-tevent -d

Summary:	Main loop abstraction library
Name:		libverto
Version:	0.3.1
Release:	2
License:	MIT
Group:		System/Libraries
Url:		https://fedorahosted.org/libverto/
Source0:	https://github.com/latchset/libverto/archive/%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libev)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(tevent)

%description
libverto provides a way for libraries to expose asynchronous interfaces
without having to choose a particular event loop, offloading this
decision to the end application which consumes the library.

If you are packaging an application, not library, based on libverto,
you should depend either on a specific implementation module or you
can depend on the virtual provides 'libverto-module-base'. This will
ensure that you have at least one module installed that provides io,
timeout and signal functionality. Currently glib is the only module
that does not provide these three because it lacks signal. However,
glib will support signal in the future.

%files
%doc AUTHORS ChangeLog COPYING NEWS README

#----------------------------------------------------------------------------

%package -n %{libverto}
Summary:	System libraries for %{name}
Group:		System/Libraries

%description -n %{libverto}
The %{name} package contains libraries for %{name}.

%files -n %{libverto}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devverto}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libverto} = %{EVRD}

%description -n %{devverto}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devverto}
%{_includedir}/verto.h
%{_includedir}/verto-module.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n %{libglib}
Summary:	glib module for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}glib < 0.2.5
Obsoletes:	%{_lib}glib < 0.2.5

%description -n %{libglib}
Module for %{name} which provides integration with glib.

This package does NOT yet provide %{name}-module-base.

%files -n %{libglib}
%{_libdir}/%{name}-glib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devglib}
Summary:	Development files for %{name}-glib
Group:		Development/C
Requires:	%{libglib} = %{EVRD}
Requires:	%{devverto} = %{EVRD}
Conflicts:	%{_lib}glib-devel < 0.2.5
Obsoletes:	%{_lib}glib-devel < 0.2.5

%description -n %{devglib}
The %{name}-glib-devel package contains libraries and header files for
developing applications that use %{name}-glib.

%files -n %{devglib}
%{_includedir}/verto-glib.h
%{_libdir}/%{name}-glib.so
%{_libdir}/pkgconfig/%{name}-glib.pc

#----------------------------------------------------------------------------

%package -n %{libev}
Summary:	libev module for %{name}
Group:		System/Libraries
Provides:	%{name}-module-base = %{EVRD}
Conflicts:	%{_lib}ev < 0.2.5
Obsoletes:	%{_lib}ev < 0.2.5

%description -n %{libev}
Module for %{name} which provides integration with libev.

This package provides %{name}-module-base since it supports io, timeout
and signal.

%files -n %{libev}
%{_libdir}/%{name}-libev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devev}
Summary:	Development files for %{name}-libev
Group:		Development/C
Requires:	%{libev} = %{EVRD}
Requires:	%{devverto} = %{EVRD}
Conflicts:	%{_lib}ev-devel < 0.2.5
Obsoletes:	%{_lib}ev-devel < 0.2.5

%description -n %{devev}
The %{name}-libev-devel package contains libraries and header files for
developing applications that use %{name}-libev.

This package provides %{name}-module-base since it supports io, timeout
and signal.

%files -n %{devev}
%{_includedir}/verto-libev.h
%{_libdir}/%{name}-libev.so
%{_libdir}/pkgconfig/%{name}-libev.pc

#----------------------------------------------------------------------------

%package -n %{libevent}
Summary:	Libevent module for %{name}
Group:		System/Libraries
Provides:	%{name}-module-base = %{EVRD}
Conflicts:	%{_lib}event < 0.2.5
Obsoletes:	%{_lib}event < 0.2.5

%description -n %{libevent}
Module for %{name} which provides integration with libevent.

%files -n %{libevent}
%{_libdir}/%{name}-libevent.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devevent}
Summary:	Development files for %{name}-libevent
Group:		Development/C
Requires:	%{libevent} = %{EVRD}
Requires:	%{devverto} = %{EVRD}
Conflicts:	%{_lib}event-devel < 0.2.5
Obsoletes:	%{_lib}event-devel < 0.2.5

%description -n %{devevent}
The %{name}-libevent-devel package contains libraries and header files for
developing applications that use %{name}-libevent.

%files -n %{devevent}
%{_includedir}/verto-libevent.h
%{_libdir}/%{name}-libevent.so
%{_libdir}/pkgconfig/%{name}-libevent.pc

#----------------------------------------------------------------------------

%package -n %{libtevent}
Summary:	tevent module for %{name}
Group:		System/Libraries
Provides:	%{name}-module-base = %{EVRD}
Conflicts:	%{_lib}tevent < 0.2.5
Obsoletes:	%{_lib}tevent < 0.2.5

%description -n %{libtevent}
Module for %{name} which provides integration with tevent.

This package provides %{name}-module-base since it supports io, timeout
and signal.

%files -n %{libtevent}
%{_libdir}/%{name}-tevent.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devtevent}
Summary:	Development files for %{name}-tevent
Group:		Development/C
Requires:	%{libtevent} = %{EVRD}
Requires:	%{devverto} = %{EVRD}
Conflicts:	%{_lib}tevent-devel < 0.2.5
Obsoletes:	%{_lib}tevent-devel < 0.2.5

%description -n %{devtevent}
The %{name}-tevent-devel package contains libraries and header files for
developing applications that use %{name}-tevent.

%files -n %{devtevent}
%{_includedir}/verto-tevent.h
%{_libdir}/%{name}-tevent.so
%{_libdir}/pkgconfig/%{name}-tevent.pc

#----------------------------------------------------------------------------

%prep
%setup -q

sed -i 's!ev.h!libev/ev.h!g' configure.ac
sed -i 's!ev.h!libev/ev.h!g' src/verto-libev.h

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14396 |21mr|libview-0.6.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname view %{major}
%define devname %mklibname view -d

Summary:	VMware's Incredibly Exciting Widgets
Name:		libview
Version:	0.6.6
Release:	8
License:	MIT
Group:		System/Libraries
Url:		http://view.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/view/%{name}-%{version}.tar.bz2
Patch0:		libview-0.6.2-fix-pkgconfig.patch
BuildRequires:	pkgconfig(gtkmm-2.4)

%description
libview is VMware's Incredibly Exciting Widgets, a useful collection
of GTK+ widgets used within VMware products, free for everybody's use.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	VMware's Incredibly Exciting Widgets
Group:		System/Libraries

%description -n %{libname}
libview is VMware's Incredibly Exciting Widgets, a useful collection
of GTK+ widgets used within VMware products, free for everybody's use.

%files -n %{libname}
%doc AUTHORS README NEWS
%{_libdir}/libview.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	VMware's Incredibly Exciting Widgets
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libview is VMware's Incredibly Exciting Widgets, a useful collection
of GTK+ widgets used within VMware products, free for everybody's use.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/libview.so
%{_libdir}/pkgconfig/libview.pc
%{_includedir}/libview

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%global optflags %{optflags} -std=gnu++11
autoreconf -fi
%configure \
	--enable-deprecated \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14397 |21mr|libvirt-8.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_disable_ld_no_undefined 1
%define _vpath_builddir build

%define	common_summary interact with virtualization capabilities
%define	common_description Libvirt is a C toolkit to interact with the virtualization\
capabilities of recent versions of Linux.

%define	major 0
%define	libname %mklibname virt %{major}
%define	libadmin %mklibname virt-admin %{major}
%define	liblxc %mklibname virt-lxc %{major}
%define	libqemu %mklibname virt-qemu %{major}
%define	devname %mklibname virt -d

%define	nss_major 2
%define	nss_plugin %mklibname nss_libvirt %{nss_major}

# libxenstore is not versioned properly
%global __requires_exclude devel\\(libxenstore.*

%bcond_with	xen
%bcond_without	lxc
%bcond_without	vbox
%bcond_without	esx
%bcond_without	hyperv
%bcond_without	vmware
%bcond_without	parallels

# not built on i686
%ifarch %{x86_64} aarch64
%bcond_without virtchd
%else
%bcond_with virtchd
%endif

# Force QEMU to run as non-root
%define qemu_user  qemu
%define qemu_group  qemu

Summary:	Toolkit to %{common_summary}
Name:		libvirt
Version:	8.9.0
Release:	3
License:	LGPLv2+
Group:		System/Kernel and hardware
Url:		http://libvirt.org/
Source0:	http://libvirt.org/sources/%{name}-%{version}.tar.xz
Source1:	libvirt-tmpfiles.conf
Source100:	%{name}.rpmlintrc
Patch0:	        add.russian.string.patch
# https://listman.redhat.com/archives/libvir-list/2022-October/234787.html
Patch1:			aarch64-fix-id.patch
BuildRequires:	docbook-style-xsl
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(devmapper)
BuildRequires:	dmsetup
BuildRequires:	meson
BuildRequires:	libxml2-utils
BuildRequires:	lvm2
BuildRequires:	glibc-devel
BuildRequires:	nfs-utils
BuildRequires:	open-iscsi
#BuildRequires:	qemu
BuildRequires:	systemtap-devel
BuildRequires:	gettext-devel
BuildRequires:	sasl-devel
%ifnarch %arm %mips
BuildRequires:	numa-devel
BuildRequires:	numactl
%endif
BuildRequires:	pcap-devel
BuildRequires:	readline-devel
%if %{with xen}
BuildRequires:	xen-devel >= 3.0.4
%endif
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(libacl)
BuildRequires:	pkgconfig(audit)
BuildRequires:	pkgconfig(libattr)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libparted)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(netcf)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(polkit-agent-1) polkit
BuildRequires: 	pkgconfig(systemd)
BuildRequires: 	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(xmlrpc)
BuildRequires:	pkgconfig(yajl)
BuildRequires:  python3dist(docutils)
# add userspace tools here because the full path to each tool is hard coded into the libvirt.so* library.
BuildRequires:  dmsetup dnsmasq-base ebtables iproute2 iptables kmod lvm2 parted polkit radvd systemd

Requires(post):	/bin/systemd-sysusers
# /usr/share/augeas/lenses/*
Requires:	augeas-lenses
# So remote clients can access libvirt over SSH tunnel
Requires:	cyrus-sasl
# Needed by /usr/libexec/libvirt-guests.sh script.
Requires:	gettext
Requires:	python3-gobject-cairo
Requires:	bridge-utils
Requires:	dnsmasq-base
Requires:	dmidecode
Requires:	ebtables
Requires:	logrotate
Requires:	netcf
Recommends:	polkit
Recommends:	netcat
Recommends:	(%{name}-role if virt-manager)
# libvirt may be used for sth else than qemu, but usually qemu
Recommends:	qemu
# pm-utils is in contrib
Recommends:	pm-utils
Provides:	%{name}-client = %{EVRD}
Provides:	%{name}-utils = %{EVRD}
Provides:	libvirtd = %{EVRD}
# files were moved
Conflicts:	%{name}-utils < 8.3.0
Obsoletes:	%{name}-utils < 8.3.0

%description
%{common_description}

Virtualization of the Linux Operating System means the ability to run multiple
instances of Operating Systems concurently on a single hardware system where
the basic resources are driven by a Linux instance. The library aim at
providing long term stable C API initially for the Xen paravirtualization but
should be able to integrate other virtualization mechanisms if needed.

%files -f %{name}.lang
%dir %{_docdir}/%{name}
%{_bindir}/virsh
%{_bindir}/virt-admin
%{_bindir}/virt-host-validate
%{_bindir}/virt-login-shell
%{_bindir}/virt-pki-query-dn
%{_bindir}/virt-pki-validate
%{_bindir}/virt-qemu-run
%{_bindir}/virt-ssh-helper
%{_bindir}/virt-xml-validate
%{_bindir}/virt-qemu-qmp-proxy
%{_sbindir}/libvirtd
%if %{with virtchd}
%{_sbindir}/virtchd
%endif
%{_sbindir}/virtinterfaced
%{_sbindir}/virtlockd
%{_sbindir}/virtlogd
%{_sbindir}/virtlxcd
%{_sbindir}/virtnetworkd
%{_sbindir}/virtnodedevd
%{_sbindir}/virtnwfilterd
%{_sbindir}/virtproxyd
%{_sbindir}/virtqemud
%{_sbindir}/virtsecretd
%{_sbindir}/virtstoraged
%{_sbindir}/virtvboxd
%{_mandir}/man1/virsh.1*
%{_mandir}/man1/virt-admin.1*
%{_mandir}/man1/virt-xml-validate.1*
%{_mandir}/man1/virt-pki-validate.1.*
%{_mandir}/man1/virt-pki-query-dn.1.*
%{_mandir}/man1/virt-host-validate.1.*
%{_mandir}/man1/virt-login-shell.1.*
%{_mandir}/man1/virt-qemu-run.1.*
%{_mandir}/man1/virt-qemu-qmp-proxy.1*
%{_mandir}/man7/virkey*.7.*
%{_mandir}/man8/*.8.*
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/qemu/
%dir %attr(0700, root, root) %{_localstatedir}/log/libvirt/lxc/
%{_libexecdir}/libvirt_iohelper
%{_libexecdir}/libvirt_leaseshelper
%{_libexecdir}/libvirt_lxc
%{_libexecdir}/libvirt_parthelper
%{_libexecdir}/libvirt-guests.sh
%{_prefix}/lib/firewalld/zones/libvirt.xml
%dir %{_libdir}/libvirt
%dir %{_libdir}/libvirt/connection-driver
%dir %{_libdir}/libvirt/lock-driver
%dir %{_libdir}/libvirt/storage-backend
%dir %{_libdir}/libvirt/storage-file
%{_libdir}/libvirt/connection-driver/libvirt_driver_interface.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_lxc.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_network.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_nodedev.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_nwfilter.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_qemu.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_secret.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_storage.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_vbox.so
%if %{with virtchd}
%{_libdir}/libvirt/connection-driver/libvirt_driver_ch.so
%endif
%{_libdir}/libvirt/storage-backend/libvirt_storage_*.so
%{_libdir}/libvirt/storage-file/libvirt_storage_file_fs.so
%if %{with xen}
%{_libdir}/libvirt/connection-driver/libvirt_driver_xen.so
%{_libdir}/libvirt/connection-driver/libvirt_driver_libxl.so
%endif
%{_libdir}/libvirt/lock-driver/lockd.so
%{_var}/run/libvirt
%{_var}/lib/libvirt
%{_datadir}/polkit-1/actions/org.libvirt.api.policy
%{_datadir}/polkit-1/actions/org.libvirt.unix.policy
%{_datadir}/polkit-1/rules.d/50-libvirt.rules
%{_datadir}/bash-completion/completions/*
%if %{with virtchd}
%{_unitdir}/virtchd-admin.socket
%{_unitdir}/virtchd-ro.socket
%{_unitdir}/virtchd.service
%{_unitdir}/virtchd.socket
%endif
%{_unitdir}/virtinterfaced.service
%{_unitdir}/virtinterfaced.socket
%{_unitdir}/virtinterfaced-ro.socket
%{_unitdir}/virtinterfaced-admin.socket
%{_unitdir}/virtnetworkd.service
%{_unitdir}/virtnetworkd.socket
%{_unitdir}/virtnetworkd-ro.socket
%{_unitdir}/virtnetworkd-admin.socket
%{_unitdir}/virtnodedevd.service
%{_unitdir}/virtnodedevd.socket
%{_unitdir}/virtnodedevd-ro.socket
%{_unitdir}/virtnodedevd-admin.socket
%{_unitdir}/virtnwfilterd.service
%{_unitdir}/virtnwfilterd.socket
%{_unitdir}/virtnwfilterd-ro.socket
%{_unitdir}/virtnwfilterd-admin.socket
%{_unitdir}/virtsecretd.service
%{_unitdir}/virtsecretd.socket
%{_unitdir}/virtsecretd-ro.socket
%{_unitdir}/virtsecretd-admin.socket
%{_unitdir}/virtstoraged.service
%{_unitdir}/virtstoraged.socket
%{_unitdir}/virtstoraged-ro.socket
%{_unitdir}/virtstoraged-admin.socket
%{_unitdir}/virtqemud.service
%{_unitdir}/virtqemud.socket
%{_unitdir}/virtqemud-ro.socket
%{_unitdir}/virtqemud-admin.socket
%{_unitdir}/virtlxcd.service
%{_unitdir}/virtlxcd.socket
%{_unitdir}/virtlxcd-ro.socket
%{_unitdir}/virtlxcd-admin.socket
%if %{with xen}
%{_unitdir}/virtxend.service
%{_unitdir}/virtxend.socket
%{_unitdir}/virtxend-ro.socket
%{_unitdir}/virtxend-admin.socket
%endif
%{_unitdir}/virtvboxd.service
%{_unitdir}/virtvboxd.socket
%{_unitdir}/virtvboxd-ro.socket
%{_unitdir}/virtvboxd-admin.socket
%{_unitdir}/virtproxy*
%{_libexecdir}/virt-login-shell-helper
%{_datadir}/augeas/lenses/*
%{_datadir}/libvirt
%{_datadir}/systemtap/tapset/libvirt_functions.stp
%{_datadir}/systemtap/tapset/libvirt_probes.stp
%{_datadir}/systemtap/tapset/libvirt_qemu_probes.stp
%{_presetdir}/86-libvirt.preset
%{_unitdir}/libvirtd.service
%{_unitdir}/libvirt-guests.service
%{_unitdir}/virt-guest-shutdown.target
%{_unitdir}/virtlockd*.*
%{_unitdir}/virtlogd*.*
%{_unitdir}/libvirtd.socket
%{_unitdir}/libvirtd-ro.socket
%{_unitdir}/libvirtd-admin.socket
%{_unitdir}/libvirtd-tcp.socket
%{_unitdir}/libvirtd-tls.socket
%{_tmpfilesdir}/libvirt.conf
%{_sysusersdir}/libvirt.conf
%config(noreplace) %{_sysconfdir}/sasl2/libvirt.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/libvirtd*
%config(noreplace) %{_sysctldir}/60-libvirtd.conf
%config(noreplace )%{_sysctldir}/60-qemu-postcopy-migration.conf
%dir %{_sysconfdir}/libvirt
%config(noreplace) %{_sysconfdir}/libvirt/*.conf
%dir %{_sysconfdir}/libvirt/nwfilter
%config(noreplace) %{_sysconfdir}/libvirt/nwfilter/*.xml
%dir %{_sysconfdir}/libvirt/qemu
%dir %{_sysconfdir}/libvirt/qemu/networks
%config(noreplace) %{_sysconfdir}/libvirt/qemu/networks/default.xml
%dir %{_sysconfdir}/libvirt/qemu/networks/autostart
%config(noreplace) %{_sysconfdir}/libvirt/qemu/networks/autostart/default.xml

%post
%sysusers_create libvirt.conf
%systemd_post libvirtd.service
%systemd_post libvirt-guests.service
%systemd_post virtlockd.service
%systemd_post virtlogd.service

%preun
%systemd_preun libvirtd.service
%systemd_preun libvirt-guests.service
%systemd_preun virtlockd.service
%systemd_preun virtlogd.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library to %{common_summary}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libadmin}
Summary:	A library to %{common_summary}
Group:		System/Libraries

%description -n %{libadmin}
This package contains the library needed to run programs dynamically linked
with %{name}.

%files -n %{libadmin}
%doc COPYING
%{_libdir}/%{name}-admin.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{liblxc}
Summary:	A library to %{common_summary}
Group:		System/Libraries

%description -n %{liblxc}
This package contains the library needed to run programs dynamically linked
with %{name}.

%files -n %{liblxc}
%doc COPYING
%{_libdir}/%{name}-lxc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqemu}
Summary:	A library to %{common_summary}
Group:		System/Libraries
Conflicts:	%{_lib}virt0 < 1.0.2-1

%description -n %{libqemu}
This package contains the library needed to run programs dynamically linked
with %{name}.

%files -n %{libqemu}
%doc COPYING
%{_libdir}/%{name}-qemu.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs using %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libadmin} = %{EVRD}
Requires:	%{liblxc} = %{EVRD}
Requires:	%{libqemu} = %{EVRD}
%if %{with xen}
%ifarch %{ix86} %{x86_64}
Requires:	xen-devel
%endif
%endif
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{common_description}

This package contains the header files and libraries needed for developing
programs using the %{name} library.

%files -n %{devname}
%{_docdir}/%{name}
%{_includedir}/%{name}
%{_libdir}/%{name}.so
%{_libdir}/%{name}-admin.so
%{_libdir}/%{name}-qemu.so
%{_libdir}/%{name}-lxc.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}-admin.pc
%{_libdir}/pkgconfig/%{name}-lxc.pc
%{_libdir}/pkgconfig/%{name}-qemu.pc

#----------------------------------------------------------------------------

%package -n %{nss_plugin}
Summary:	NSS plugin for %{common_summary}
Group:		System/Libraries
Provides:	nss_libvirt = %{EVRD}

%description -n %{nss_plugin}
NSS plugin for %{common_summary}.

%files -n %{nss_plugin}
%doc COPYING
%{_libdir}/libnss_libvirt.so.%{nss_major}*
%{_libdir}/libnss_libvirt_guest.so.%{nss_major}*

#----------------------------------------------------------------------------

%package role
Summary:	Allow users from the "wheel" group to manage virtual machines
Group:		System/Configuration/Other
Requires:	libnss-role

%description role
Allow users from the "wheel" group to manage virtual machines.
Install this package to automatically add any member of the group "wheel"
to the group "libvirt". It will allow admin users of graphical desktops
to manage virtual machines via e.g. virt-manager GUI.

%files role
%config(noreplace) %{_sysconfdir}/role.d/libvirt.role

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dudev=enabled \
	-Dinit_script=systemd \
	%if !%{with xen}
	-Ddriver_libxl=disabled \
	%endif
	%if !%{with lxc}
	-Ddriver_lxc=disabled \
	%endif
	%if !%{with vbox}
	-Ddriver_vbox=disabled \
	%endif
	%if !%{with esx}
	-Ddriver_esx=disabled \
	%endif
	%if !%{with hyperv}
	-Ddriver_hyperv=disabled \
	%endif
	%if !%{with vmware}
	-Ddriver_vmware=disabled \
	%endif
	-Ddriver_bhyve=disabled \
	-Ddriver_vz=disabled \
	-Dglusterfs=disabled \
	-Dstorage_gluster=disabled \
	-Dopenwsman=disabled \
	-Dnss=enabled \
	-Dyajl=enabled \
	-Dqemu_user=%{qemu_user} \
	-Dqemu_group=%{qemu_group} \
	-Dpolkit=enabled \
	-Dapparmor=disabled \
	-Dsecdriver_apparmor=disabled \
	-Dapparmor_profiles=auto \
	-Dstorage_rbd=disabled \
	-Dstorage_vstorage=disabled \
	-Dstorage_zfs=disabled \
	-Dnumad=disabled

%meson_build

%install
%meson_install

# ****ing meson doesn't know where systemd files go
mkdir %{buildroot}/lib
mv %{buildroot}%{_prefix}/lib/systemd %{buildroot}/lib

rm -f %{buildroot}%{_initrddir}/libvirt-guests

install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -d -m 0755 %{buildroot}%{_var}/lib/%{name}

# make managing virtual machines in virt-manager GUI work out of the box
# (libnss-role)
mkdir -p %{buildroot}%{_sysconfdir}/role.d
echo "wheel: libvirt" > %{buildroot}%{_sysconfdir}/role.d/libvirt.role

mkdir -p %{buildroot}%{_sysusersdir}
echo "g libvirt - -" > %{buildroot}%{_sysusersdir}/libvirt.conf

%find_lang %{name}

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-libvirt.preset << EOF
enable libvirtd.service
enable virtlockd.socket
EOF

%check
export VIR_TEST_DEBUG=1
# TODO drop emulation test when emulation and use %%meson_test only
%meson_test || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14398 |21mr|libvirt-dbus-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global system_user libvirtdbus

Name: libvirt-dbus
Version: 1.4.0
Release: 1
Group:	System/Libraries
Summary: libvirt D-Bus API binding
License: LGPLv2+
URL: https://libvirt.org/
Source0: https://libvirt.org/sources/dbus/%{name}-%{version}.tar.xz

BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libvirt)
BuildRequires: pkgconfig(libvirt-glib-1.0)
BuildRequires: /usr/bin/pod2man
BuildRequires: meson
BuildRequires: python3-docutils

Requires: dbus
Requires: glib2
Requires: polkit

Requires(pre): shadow-utils

%description
This package provides D-Bus API for libvirt

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%pre
getent group %{system_user} >/dev/null || groupadd -r %{system_user}
getent passwd %{system_user} >/dev/null || \
    useradd -r -g %{system_user} -d / -s /sbin/nologin \
    -c "Libvirt D-Bus bridge" %{system_user}
exit 0

%files
%license COPYING
%{_sbindir}/libvirt-dbus
%{_datadir}/dbus-1/services/org.libvirt.service
%{_datadir}/dbus-1/system-services/org.libvirt.service
%{_datadir}/dbus-1/system.d/org.libvirt.conf
%{_datadir}/dbus-1/interfaces/org.libvirt.*.xml
%{_datadir}/polkit-1/rules.d/libvirt-dbus.rules
%{_mandir}/man8/libvirt-dbus.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14399 |21mr|libvirt-glib-4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname		virt

%define api		1.0
%define major		0
%define girmajor	1.0
%define libname_glib		%mklibname %{oname}-glib %{api} %{major}
%define libname_gconfig		%mklibname %{oname}-gconfig %{api} %{major}
%define libname_gobject		%mklibname %{oname}-gobject %{api} %{major}
%define girname_glib		%mklibname %{oname}-glib-gir %{girmajor}
%define girname_gconfig		%mklibname %{oname}-gconfig-gir %{girmajor}
%define girname_gobject		%mklibname %{oname}-gobject-gir %{girmajor}
%define develname_glib		%mklibname %{oname}-glib %{api} -d
%define develname_gconfig	%mklibname %{oname}-gconfig %{api} -d
%define develname_gobject	%mklibname %{oname}-gobject %{api} -d

Summary:	libvirt glib integration for events
Name:		libvirt-glib
Version:	4.0.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libvirt.org/
Source0:	http://libvirt.org/sources/glib/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
# Hack due to https://bugzilla.redhat.com/show_bug.cgi?id=613466
BuildRequires:	libtool
BuildRequires:	meson
BuildRequires:	python-pkg-resources
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libvirt)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python)
# meta package
Requires:	%{girname_gconfig} = %{EVRD}
Requires:	%{girname_glib} = %{EVRD}
Requires:	%{girname_gobject} = %{EVRD}
Requires:	%{libname_gconfig} = %{EVRD}
Requires:	%{libname_glib} = %{EVRD}
Requires:	%{libname_gobject} = %{EVRD}

%description
This package provides integration between libvirt and the glib event loop.

%files

#----------------------------------------------------------------------------

%package common
Summary:	Common non-binary files for %{name}
Group:		System/Libraries
Obsoletes:	%{libname_glib} < 4.0.0-1
Conflicts:	%{libname_glib} < 4.0.0-1

%description common
Common non-binary files for %{name}

%files common -f %{name}.lang

#----------------------------------------------------------------------------

%package -n %{libname_glib}
Summary:	libvirt object APIs for processing object configuration
Group:		System/Libraries
Requires:	%{name}-common = %{EVRD}

%description -n %{libname_glib}
This package provides APIs for processing the object configuration data.

%files -n %{libname_glib}
%doc README COPYING AUTHORS NEWS
%{_libdir}/libvirt-glib-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_gconfig}
Summary:	libvirt object APIs for processing object configuration
Group:		System/Libraries

%description -n %{libname_gconfig}
This package provides APIs for processing the object configuration data.

%files -n %{libname_gconfig}
%{_libdir}/libvirt-gconfig-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_gobject}
Summary:	libvirt object APIs for managing virtualization hosts
Group:		System/Libraries

%description -n %{libname_gobject}
This package provides APIs for managing virtualization host objects.

%files -n %{libname_gobject}
%{_libdir}/libvirt-gobject-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname_glib}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname_glib} = %{EVRD}

%description -n %{girname_glib}
GObject Introspection interface description for %{name}.

%files -n %{girname_glib}
%{_libdir}/girepository-1.0/LibvirtGLib-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{girname_gconfig}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname_gconfig} = %{EVRD}

%description -n %{girname_gconfig}
GObject Introspection interface description for %{name}.

%files -n %{girname_gconfig}
%{_libdir}/girepository-1.0/LibvirtGConfig-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{girname_gobject}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname_gobject} = %{EVRD}

%description -n %{girname_gobject}
GObject Introspection interface description for %{name}.

%files -n %{girname_gobject}
%{_libdir}/girepository-1.0/LibvirtGObject-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{develname_glib}
Summary:	libvirt glib integration for events development files
Group:		System/Libraries
Requires:	%{libname_glib} = %{EVRD}
Provides:	%{name}-glib-devel = %{EVRD}
Provides:	%{oname}-glib-devel = %{EVRD}

%description -n %{develname_glib}
This package provides development header files and libraries for
integration between libvirt and the glib event loop.

%files -n %{develname_glib}
%doc examples/event-test.c
%{_datadir}/gir-1.0/LibvirtGLib-%{girmajor}.gir
%{_datadir}/gtk-doc/html/Libvirt-glib
%{_datadir}/vala/vapi/libvirt-glib-%{api}.deps
%{_datadir}/vala/vapi/libvirt-glib-%{api}.vapi
%dir %{_includedir}/libvirt-glib-%{api}
%dir %{_includedir}/libvirt-glib-%{api}/libvirt-glib
%{_includedir}/libvirt-glib-%{api}/libvirt-glib/libvirt-glib.h
%{_includedir}/libvirt-glib-%{api}/libvirt-glib/libvirt-glib-*.h
%{_libdir}/libvirt-glib-%{api}.so
%{_libdir}/pkgconfig/libvirt-glib-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{develname_gconfig}
Summary:	libvirt object APIs for processing object configuration development files
Group:		System/Libraries
Requires:	%{libname_gconfig} = %{EVRD}
Provides:	%{name}-gconfig-devel = %{EVRD}
Provides:	%{oname}-gconfig-devel = %{EVRD}

%description -n %{develname_gconfig}
This package provides development header files and libraries for
the object configuration APIs.

%files -n %{develname_gconfig}
%doc examples/event-test.c
%{_datadir}/gir-1.0/LibvirtGConfig-%{girmajor}.gir
%{_datadir}/gtk-doc/html/Libvirt-gconfig
%{_datadir}/vala/vapi/libvirt-gconfig-%{api}.deps
%{_datadir}/vala/vapi/libvirt-gconfig-%{api}.vapi
%dir %{_includedir}/libvirt-gconfig-%{api}
%dir %{_includedir}/libvirt-gconfig-%{api}/libvirt-gconfig
%{_includedir}/libvirt-gconfig-%{api}/libvirt-gconfig/libvirt-gconfig.h
%{_includedir}/libvirt-gconfig-%{api}/libvirt-gconfig/libvirt-gconfig-*.h
%{_libdir}/libvirt-gconfig-%{api}.so
%{_libdir}/pkgconfig/libvirt-gconfig-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{develname_gobject}
Summary:	libvirt object APIs for managing virtualization hosts development files
Group:		System/Libraries
Requires:	%{libname_gobject} = %{EVRD}
Requires:	%{develname_glib} = %{EVRD}
Requires:	%{develname_gconfig} = %{EVRD}
Provides:	%{name}-gobject-devel = %{EVRD}
Provides:	%{oname}-gobject-devel = %{EVRD}

%description -n %{develname_gobject}
This package provides development header files and libraries for
managing virtualization host objects.

%files -n %{develname_gobject}
%doc examples/event-test.c
%{_datadir}/gir-1.0/LibvirtGObject-%{girmajor}.gir
%{_datadir}/gtk-doc/html/Libvirt-gobject
%{_datadir}/vala/vapi/libvirt-gobject-%{api}.vapi
%{_datadir}/vala/vapi/libvirt-gobject-%{api}.deps
%dir %{_includedir}/libvirt-gobject-%{api}
%dir %{_includedir}/libvirt-gobject-%{api}/libvirt-gobject
%{_includedir}/libvirt-gobject-%{api}/libvirt-gobject/libvirt-gobject.h
%{_includedir}/libvirt-gobject-%{api}/libvirt-gobject/libvirt-gobject-*.h
%{_libdir}/libvirt-gobject-%{api}.so
%{_libdir}/pkgconfig/libvirt-gobject-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson \
	-Ddocs=enabled	\
	-Dvapi=enabled	\
	-Dintrospection=enabled
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14400 |21mr|libvirt-sandbox-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define api 1.0
%define libname %mklibname virt-sandbox %{api} %{major}
%define devname %mklibname virt-sandbox -d

Summary:	libvirt application sandbox framework
Name:		libvirt-sandbox
Version:	0.8.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libvirt.org/
Source0:	ftp://libvirt.org/libvirt/sandbox/%{name}-%{version}.tar.gz
Patch0:		libvirt-sandbox-0.5.1-linkage.patch
BuildRequires:	intltool
# For autoreconf
BuildRequires:	gtk-doc gettext-devel
BuildRequires:	glibc-static-devel
BuildRequires:	selinux-devel
Requires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libvirt-gobject-1.0)

%description
This package provides a command for running applications within
a sandbox using libvirt.

%files -f %{name}.lang
%{_bindir}/virt-sandbox
%doc README COPYING AUTHORS ChangeLog NEWS
%dir %{_sysconfdir}/libvirt-sandbox
%dir %{_sysconfdir}/libvirt-sandbox/scratch
%config %{_sysconfdir}/libvirt-sandbox/scratch/README
%{_libexecdir}/libvirt-sandbox-init-common
%{_libexecdir}/libvirt-sandbox-init-lxc
%{_libexecdir}/libvirt-sandbox-init-qemu
%{_mandir}/man1/virt-sandbox.1*
%{_libdir}/girepository-1.0/LibvirtSandbox-1.0.typelib

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	libvirt application sandbox framework libraries
Group:		System/Libraries
# So we get the full libvirtd daemon, not just client libs
Requires:	libvirt-utils
Conflicts:	%{_lib}libvirt-sandbox0 < 0.5.1-4
Obsoletes:	%{_lib}libvirt-sandbox0 < 0.5.1-4

%description -n %{libname}
This package provides a framework for building application sandboxes
using libvirt.

%files -n %{libname}
%{_libdir}/libvirt-sandbox-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	libvirt application sandbox framework development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}libvirt-sandbox-devel < 0.5.1-4
Obsoletes:	%{_lib}libvirt-sandbox-devel < 0.5.1-4

%description -n %{devname}
This package provides development header files and libraries for
the libvirt sandbox.

%files -n %{devname}
%doc examples/virt-sandbox.pl
%doc examples/virt-sandbox.py
%doc examples/virt-sandbox.js
%doc examples/virt-sandbox-mkinitrd.py
%{_libdir}/libvirt-sandbox-1.0.so
%{_libdir}/pkgconfig/libvirt-sandbox-1.0.pc
%dir %{_includedir}/libvirt-sandbox-1.0
%dir %{_includedir}/libvirt-sandbox-1.0/libvirt-sandbox
%{_includedir}/libvirt-sandbox-1.0/libvirt-sandbox/libvirt-sandbox.h
%{_includedir}/libvirt-sandbox-1.0/libvirt-sandbox/libvirt-sandbox-*.h
%{_datadir}/gir-1.0/LibvirtSandbox-1.0.gir
%{_datadir}/gtk-doc/html/Libvirt-sandbox

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
echo "GTK_DOC_CHECK([1.11],[--flavour no-tmpl])" >> configure.ac

# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,<sys/types.h>,<sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
autoreconf -if
%configure \
	--enable-introspection \
	--disable-static
%make V=1

%install
chmod a-x examples/*.py examples/*.pl examples/*.js
%makeinstall_std
# there are two unstripped files, I don't know why so
strip %{buildroot}%{_libexecdir}/*


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14401 |21mr|libvisio-0.1.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname visio %{api} %{major}
%define devname %mklibname visio -d

Summary:	A library providing ability to interpret and import visio diagrams
Name:		libvisio
Version:	0.1.7
Release:	5
License:	GPLv2+ or LGPLv2+ or MPLv1.1
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libvisio
Source0:	http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	gperf
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Libvisio is library providing ability to interpret and import visio diagrams
into various applications. You can find it being used in libreoffice.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Visio diagrams into other formats
Group:		Publishing

%description tools
Tools to transform Visio diagrams into other formats.
Currently supported: XHTML, raw.

%files tools
%{_bindir}/vsd2raw
%{_bindir}/vsd2xhtml
%{_bindir}/vsd2text
%{_bindir}/vss2xhtml
%{_bindir}/vss2text
%{_bindir}/vss2raw

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library providing ability to interpret and import visio diagrams
Group:		System/Libraries

%description -n %{libname}
Libvisio is library providing ability to interpret and import visio diagrams
into various applications. You can find it being used in libreoffice.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/html
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--disable-werror
    
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14402 |21mr|libvisio-0.1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.1
%define major 1
%define libname %mklibname visio %{api} %{major}
%define devname %mklibname visio -d

Summary:	A library providing ability to interpret and import visio diagrams
Name:		libvisio
Version:	0.1.7
Release:	7
License:	GPLv2+ or LGPLv2+ or MPLv1.1
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/libvisio
Source0:	http://dev-www.libreoffice.org/src/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	gperf
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(libwpd-0.10)
BuildRequires:	pkgconfig(libwpg-0.3)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Libvisio is library providing ability to interpret and import visio diagrams
into various applications. You can find it being used in libreoffice.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Visio diagrams into other formats
Group:		Publishing

%description tools
Tools to transform Visio diagrams into other formats.
Currently supported: XHTML, raw.

%files tools
%{_bindir}/vsd2raw
%{_bindir}/vsd2xhtml
%{_bindir}/vsd2text
%{_bindir}/vss2xhtml
%{_bindir}/vss2text
%{_bindir}/vss2raw

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library providing ability to interpret and import visio diagrams
Group:		System/Libraries

%description -n %{libname}
Libvisio is library providing ability to interpret and import visio diagrams
into various applications. You can find it being used in libreoffice.

%files -n %{libname}
%{_libdir}/%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/html
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--disable-werror
    
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14403 |21mr|libvisual-0.4.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.4
%define major 0
%define libname %mklibname visual %{api} %{major}
%define devname %mklibname visual -d

Summary:	Audio visualisation framework
Name:		libvisual
Version:	0.4.0
Release:	21
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://localhost.nl/~synap/libvisual
Source0:	%{name}-%{version}.tar.bz2
Patch0:		libvisual-0.4.0-fix-str-fmt.patch

%description
Libvisual is a library that acts as a middle layer between applications that
want audio visualisation and audio visualisation plugins.

Libvisual is aimed at developers who have a need for audio visualisation and
those who actually write the visualisation plugins.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of the audio visualisation framework
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Recommends:	libvisual-plugins
Conflicts:	%{_lib}visual0 < 0.4.16
Obsoletes:	%{_lib}visual0 < 0.4.16

%description -n %{libname}
Libvisual is a library that acts as a middle layer between applications that
want audio visualisation and audio visualisation plugins.

Libvisual is aimed at developers who have a need for audio visualisation and
those who actually write the visualisation plugins.

%files -n %{libname} -f %{name}-%{api}.lang
%doc README NEWS TODO ChangeLog AUTHORS
%{_libdir}/libvisual-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files of the audio visualisation framework
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libvisual is a library that acts as a middle layer between applications that
want audio visualisation and audio visualisation plugins.

Libvisual is aimed at developers who have a need for audio visualisation and
those who actually write the visualisation plugins.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p0

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14404 |21mr|libvncserver-0.9.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname LibVNCServer
%define major 1
%define libname %mklibname vncserver %{major}
%define devname %mklibname vncserver -d

Summary:	An easy API to write one's own VNC server
Name:		libvncserver
Version:	0.9.13
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/LibVNC/libvncserver
Source0:	https://github.com/LibVNC/libvncserver/archive/LibVNCServer-%{version}.tar.gz
Patch0:		CVE-2020-29260.patch
BuildRequires:	jpeg-devel
BuildRequires:	cmake
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)

%description
LibVNCServer makes writing a VNC server (or more correctly, a program
exporting a framebuffer via the Remote Frame Buffer protocol) easy.

It is based on OSXvnc, which in turn is based on the original Xvnc by
ORL, later AT&T research labs in UK.

It hides the programmer from the tedious task of managing clients and
compression schemata.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An easy API to write one's own VNC server
Group:		System/Libraries

%description -n %{libname}
LibVNCServer makes writing a VNC server (or more correctly, a program
exporting a framebuffer via the Remote Frame Buffer protocol) easy.

It is based on OSXvnc, which in turn is based on the original Xvnc by
ORL, later AT&T research labs in UK.

It hides the programmer from the tedious task of managing clients and
compression schemata.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog
%{_libdir}/libvncclient.so.*
%{_libdir}/libvncserver.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{libname}-devel < 0.9.9

%description -n %{devname}
Static libraries and header files for LibVNCServer.

%files -n %{devname}
%{_includedir}/rfb
%{_libdir}/*.so
%{_libdir}/pkgconfig/libvncclient.pc
%{_libdir}/pkgconfig/libvncserver.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{oname}-%{version}
%autopatch -p1

%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14405 |21mr|libvoikko-4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname voikko %{major}
%define devname %mklibname voikko -d

%bcond_with bootstrap

Summary:	A spellchecker/hyphenator library using Malaga
Name:		libvoikko
Version:	4.3
Release:	2
License:	GPLv2+
Group:		Text tools
Url:		http://voikko.sourceforge.net/
Source0:	http://www.puimula.org/voikko-sources/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(hfstospell)

%description
This is libvoikko, library for spellcheckers and hyphenators using Malaga
natural language grammar development tool. The library is written in C.

Currently only Finnish is supported, but adding support for other
languages should not be too hard.

#----------------------------------------------------------------------------

%package -n voikko-tools
Summary:	Test programs for libvoikko
Group:		Text tools
%if %{without bootstrap}
Requires:	voikko-dictionary
%endif

%description -n voikko-tools
This is libvoikko, library for spellcheckers and hyphenators using Malaga
natural language grammar development tool.

This package contains the voikkospell and voikkohyphenate programs.

%files -n voikko-tools
%doc README
%{_bindir}/voikkogc
%{_bindir}/voikkospell
%{_bindir}/voikkohyphenate
%{_bindir}/voikkovfstc
%{_mandir}/man1/voikkogc.1*
%{_mandir}/man1/voikkospell.1*
%{_mandir}/man1/voikkohyphenate.1*
%{_mandir}/man1/voikkovfstc.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of libvoikko
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libvoikko.

%files -n %{libname}
%{_libdir}/libvoikko.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development library for libvoikko development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	voikko-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development library that programmers
will need to develop applications which will use libvoikko.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libvoikko.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python bindings for libvoikko
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
%if %{without bootstrap}
Requires:	voikko-dictionary
%endif

%description -n python3-%{name}
This is libvoikko, library for spellcheckers and hyphenators using Malaga
natural language grammar development tool. The library is written in C.

This package contains the Python bindings for libvoikko.

%files -n python3-%{name}
%doc README
%{python3_sitelib}/libvoikko.py*
%{python3_sitelib}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -Wno-error=deprecated
%configure \
	--disable-static

%make_build

%install
%make_install

install -D -m644 python/libvoikko.py %{buildroot}%{python3_sitelib}/libvoikko.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14406 |21mr|libvorbis-1.3.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname vorbis %{major}
%define	devname %mklibname -d vorbis

%define	encmaj 2
%define	libenc %mklibname vorbisenc %{encmaj}

%define	filemaj 3
%define	libfile %mklibname vorbisfile %{filemaj}

Summary:	The Vorbis General Audio Compression Codec
Name:		libvorbis
Version:	1.3.7
Release:	2
Group:		Sound
License:	BSD
Url:		http://www.xiph.org/
Source0:	http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	texlive-latex.bin
BuildRequires:	pkgconfig(ogg) >= 1.0

%description
Ogg Vorbis is a fully open, non-proprietary, patent-and-royalty-free,
general-purpose compressed audio format for audio and music at fixed and
variable bitrates from 16 to 128 kbps/channel.
Find some free Ogg Vorbis music here: http://www.vorbis.com/music.html.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc AUTHORS CHANGES COPYING
%{_libdir}/libvorbis.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libenc}
Summary:	Encoder specialized library for %{name}
Group:		System/Libraries

%description -n %{libenc}
This package contains the library needed for some programs using the
encoder capability of %{name}.

%files -n %{libenc}
%doc COPYING
%{_libdir}/libvorbisenc.so.%{encmaj}*

#----------------------------------------------------------------------------

%package -n %{libfile}
Summary:	File operations specialized library for %{name}
Group:		System/Libraries

%description -n %{libfile}
This package contains the library needed for some programs using the
file operations capability of %{name}.

%files -n %{libfile}
%doc COPYING
%{_libdir}/libvorbisfile.so.%{filemaj}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libenc} = %{EVRD}
Requires:	%{libfile} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{_lib}vorbis-static-devel

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications using %{name}.

%files -n %{devname}
%doc AUTHORS CHANGES COPYING
%doc installed-docs/%{name}-%{version}/*
%{_includedir}/vorbis
%{_libdir}/*.so
%{_datadir}/aclocal/vorbis.m4
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
autoreconf -vfi


%build
%configure --disable-static --enable-docs
%make_build


%install
%make_install

# Remove installed docs: we pick them with %%doc
mv %{buildroot}/%{_datadir}/doc installed-docs
rm -f installed-docs/%{name}-%{version}/*.stamp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14407 |21mr|libvpx-1.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname vpx %{major}
%define devname %mklibname vpx -d

Summary:	VP9 Video Codec SDK
Name:		libvpx
Version:	1.10.0
Release:	4
License:	BSD
Group:		System/Libraries
Url:		https://github.com/webmproject/libvpx
Source0:	https://github.com/webmproject/libvpx/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# from upstream
# fix CVE-2023-5217 CVE-2023-44488
Patch0:		libvpx-integer-overflow.patch
Patch1:		libvpx-clear-allocator.patch
Patch2:		libvpx-disallow-thread-count-changes.patch
Patch3:		libvpx-bug-with-bigger-size.patch
BuildRequires:	doxygen
BuildRequires:	yasm

%description
libvpx provides the VP9 SDK, which allows you to integrate your applications
with the VP9 video codec, a high quality, royalty free, open source codec
deployed on millions of computers and devices worldwide.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	VP9 Video Codec SDK
Group:		System/Libraries

%description -n %{libname}
libvpx provides the VP9 SDK, which allows you to integrate your applications
with the VP9 video codec, a high quality, royalty free, open source codec
deployed on millions of computers and devices worldwide.

%files -n %{libname}
%doc AUTHORS CHANGELOG LICENSE README
%{_libdir}/libvpx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libvpx
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development libraries and headers for developing software against
libvpx.

%files -n %{devname}
# These are SDK docs, not really useful to an end-user.
%doc docs/html
%{_includedir}/vpx/
%{_libdir}/pkgconfig/vpx.pc
%{_libdir}/libvpx.so

#----------------------------------------------------------------------------

%package utils
Summary:	VP9 utilities and tools
Group:		Video

%description utils
A selection of utilities and tools for VP9, including a sample encoder
and decoder.

%files utils
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%ifarch %{ix86}
%global vpxtarget x86-linux-gcc
%else
%ifarch	x86_64
%global	vpxtarget x86_64-linux-gcc
%else
%global vpxtarget generic-gnu
%endif
%endif
%setup_compile_flags

./configure \
    --target=%{vpxtarget} \
    --enable-pic \
    --disable-install-srcs \
    --disable-static \
    --enable-shared \
    --size-limit=16384x16384 \
    --enable-postproc \
    --enable-experimental \
    --enable-vp9-postproc \
    --enable-vp8 \
    --enable-vp9

# stupid config
perl -pi -e "s|/usr/local|%{_prefix}|g" config.mk
perl -pi -e "s|^LIBSUBDIR=lib|LIBSUBDIR=%{_lib}|g" config.mk

%make verbose=true target=libs

%make verbose=true target=examples
%make verbose=true target=docs

%install
make DIST_DIR=%{buildroot}%{_prefix} install

install -m0755 examples/simple_decoder %{buildroot}%{_bindir}/vp9_simple_decoder
install -m0755 examples/simple_encoder %{buildroot}%{_bindir}/vp9_simple_encoder
install -m0755 examples/twopass_encoder %{buildroot}%{_bindir}/vp9_twopass_encoder

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14408 |21mr|libwacom-1.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		2
%define libname		%mklibname wacom %{major}
%define develname	%mklibname wacom -d

Name:		libwacom
Summary:	A library to identify wacom tablets
Version:	1.12
Release:	2
Group:		Development/X11
License:	MIT
URL:		http://sourceforge.net/projects/linuxwacom/
Source0:	https://github.com/linuxwacom/libwacom/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	meson

%description
libwacom is a library to identify wacom tablets and their model-specific
features. It provides easy access to information such as "is this a built-in
on-screen tablet", "what is the size of this model", etc.

%package -n %{libname}
Summary:	A library to identify wacom tablets
Group:		Development/X11
Requires:	%{name} >= %{version}-%{release}

%description -n %{libname}
libwacom is a library to identify wacom tablets and their model-specific
features. It provides easy access to information such as "is this a built-in
on-screen tablet", "what is the size of this model", etc.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
Development files for %{name}.

%prep
%autosetup -p1
# failing test:
rm -f data/check-data-in-meson.build.sh

%build
%meson -Dudev-dir=/lib/udev -Dtests=disabled
%meson_build

%install
%meson_install


%files
%{_bindir}/libwacom-*
%{_datadir}/libwacom
%{_udevrulesdir}/65-libwacom.rules
%{_udevhwdbdir}/65-libwacom.hwdb
%{_mandir}/man1/libwacom*.1.*

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14409 |21mr|libwebp-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
#undefine _find_debuginfo_dwz_opts

%define	major 7
%define	demux_major 2
%define	mux_major 3
%define	dec_major 3
%define	sharpyuv_major 0
%define	libname %mklibname webp %{major}
%define	libdemux %mklibname webpdemux %{demux_major}
%define	libmux %mklibname webpmux %{mux_major}
%define	libdec %mklibname webpdecoder %{dec_major}
%define	libsharpyuv %mklibname sharpyuv %{sharpyuv_major}
%define	devname %mklibname webp -d

Summary:	Libraries and tools for the WebP graphics format
Name:		libwebp
Version:	1.3.2
Release:	1
# Additional IPR is licensed as well. See PATENTS file for details
License:	BSD
Group:		Development/C
Url:		https://developers.google.com/speed/webp
Source0:	http://downloads.webmproject.org/releases/webp/%{name}-%{version}.tar.gz
Patch0:		libwebp-0.6.1-install-extras-lib.patch
Patch1:		libwebp-freeglut.patch
BuildRequires:	cmake
BuildRequires:	swig
BuildRequires:	giflib-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(sdl)

%description
WebP is an image format that does lossy compression of digital photographic
images. WebP consists of a codec based on VP8, and a container based on RIFF.
Webmasters, web developers and browser developers can use WebP to compress,
archive and distribute digital images more efficiently.

#----------------------------------------------------------------------------

%package tools
Summary:	The WebP command line tools
Group:		Development/Other

%description tools
WebP is an image format that does lossy compression of digital photographic
images. WebP consists of a codec based on VP8, and a container based on RIFF.
This package contains various tools based on %{name}.

%files tools
%doc COPYING
%{_bindir}/*
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for the WebP format
Group:		System/Libraries

%description -n %{libname}
WebP is an image format that does lossy compression of digital photographic
images. WebP consists of a codec based on VP8, and a container based on RIFF.
Webmasters, web developers and browser developers can use WebP to compress,
archive and distribute digital images more efficiently.

%files -n %{libname}
%doc COPYING
%{_libdir}/libwebp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libdemux}
Summary:	Library for the WebP format
Group:		System/Libraries

%description -n %{libdemux}
WebP is an image format that does lossy compression of digital photographic
images. WebP consists of a codec based on VP8, and a container based on RIFF.

%files -n %{libdemux}
%doc COPYING
%{_libdir}/libwebpdemux.so.%{demux_major}*

#----------------------------------------------------------------------------

%package -n %{libmux}
Summary:	Library for the WebP format
Group:		System/Libraries

%description -n %{libmux}
WebP is an image format that does lossy compression of digital photographic
images. WebP consists of a codec based on VP8, and a container based on RIFF.

%files -n %{libmux}
%doc COPYING
%{_libdir}/libwebpmux.so.%{mux_major}*

#----------------------------------------------------------------------------

%package -n %{libdec}
Summary:	Library for the WebP format
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libdec}
WebP is an image format that does lossy compression of digital photographic
images. WebP consists of a codec based on VP8, and a container based on RIFF.

%files -n %{libdec}
%doc COPYING
%{_libdir}/libwebpdecoder.so.%{dec_major}*

#----------------------------------------------------------------------------

%package -n %{libsharpyuv}
Summary:	Library for the WebP format
Group:		System/Libraries

%description -n %{libsharpyuv}
WebP is an image format that does lossy compression of digital photographic
images. WebP consists of a codec based on VP8, and a container based on RIFF.

%files -n %{libsharpyuv}
%doc COPYING
%{_libdir}/libsharpyuv.so.%{sharpyuv_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libwebp, a library for the WebP format
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libdemux} = %{EVRD}
Requires:	%{libmux} = %{EVRD}
Requires:	%{libdec} = %{EVRD}
Requires:	%{libsharpyuv} = %{EVRD}
Provides:	webp-devel = %{EVRD}

%description -n %{devname}
WebP is an image format that does lossy compression of digital photographic
images. WebP consists of a codec based on VP8, and a container based on RIFF.
This package contains the headers and development files to build programs
usign %{name}.

%files -n %{devname}
%doc PATENTS COPYING NEWS AUTHORS
%{_includedir}/webp/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%autopatch -p1


%build
autoreconf -vfi
%ifarch aarch64
export CFLAGS="%{optflags} -frename-registers"
%endif
# Neon disabled due to resulting CFLAGS conflict resulting in
# inlining failed in call to always_inline '[...]': target specific option mismatch
%configure \
	--disable-static \
	--enable-libwebpmux \
	--enable-libwebpdemux \
	--enable-libwebpdecoder \
	--disable-neon
%make_build V=1


%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14410 |21mr|libwebsockets-4.0.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	16
%define	libname		%mklibname websockets %{major}
%define	develname	%mklibname websockets -d

Name:		libwebsockets
Version:	4.0.20
Release:	1
Summary:	A lightweight C library for Websockets
Group:		System/Libraries
# base64-decode.c and ssl-http2.c is under MIT license with FPC exception.
# sha1-hollerbach is under BSD
# https://fedorahosted.org/fpc/ticket/546
# Test suite is licensed as Public domain (CC-zero)
License:	LGPLv2+ and Public Domain and BSD and MIT
Url:		https://libwebsockets.org
Source0:	https://github.com/warmcat/libwebsockets/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		libwebsockets-3.1.0-fix-libev-include.patch
Patch1:		libwebsockets-4.0.20-no-Werror.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	git
BuildRequires:	openssl
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libev)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libuv)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)

%description
This is a simple-to-use, pure C library providing client and server
for http/1, http/2, websockets and other protocols in a security-minded,
lightweight, configurable, scalable and flexible way.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A lightweight C library for Websockets
Group:		System/Libraries

%description -n %{libname}
This is a simple-to-use, pure C library providing lightweight clients and
servers.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	websockets-devel = %{EVRD}

%description -n %{develname}
Files needed for development with %{name}.

%files -n %{develname}
%doc changelog LICENSE READMEs/*
%doc build/doc/html
%{_includedir}/*.h
%{_includedir}/%{name}/
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/

#-----------------------------------------------------------------------------

%package tests
Summary:	Tests to use with %{name}
Group:		System/Libraries

%description tests
This package contains the tests for %{name} applications.

%files tests
%doc LICENSE READMEs/README.coding.md READMEs/README.test-apps.md
%{_bindir}/%{name}-test-*
%{_datadir}/%{name}-test-server/

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Fix source perms
find . -name "*.c" -o -name "*.h"| xargs chmod 0644


%build
%cmake	\
	-Wno-dev \
	-DLWS_WITH_STATIC=OFF \
	-DLWS_WITH_LIBEV=ON \
	-DLWS_WITH_LIBUV=ON \
	-DLWS_WITH_LIBEVENT=OFF \
	-DLWS_WITH_GLIB=ON \
	-DLWS_IPV6=ON \
	-DLWS_UNIX_SOCK=ON \
	-DLWS_WITH_HTTP2=ON \
	-DLWS_WITH_HTTP_PROXY=ON \
	-DLWS_WITH_ZIP_FOPS=ON \
	-DLWS_WITH_SOCKS5=ON \
	-DLWS_WITH_RANGES=ON \
	-DLWS_WITH_THREADPOOL=OFF \
	-DLWS_WITH_ACME=ON \
	-DLWS_WITH_FTS=ON \
	-DLWS_LINK_TESTAPPS_DYNAMIC=ON \
	-DLWS_WITHOUT_CLIENT=OFF \
	-DLWS_WITHOUT_SERVER=OFF \
	-DLWS_WITHOUT_TESTAPPS=OFF \
	-DLWS_WITHOUT_TEST_SERVER=OFF \
	-DLWS_WITHOUT_TEST_SERVER_EXTPOLL=OFF \
	-DLWS_WITHOUT_TEST_PING=OFF \
	-DLWS_WITHOUT_TEST_CLIENT=OFF \
	-DLWS_WITHOUT_EXTENSIONS=OFF \
	-DLWS_WITHOUT_BUILTIN_GETIFADDRS=ON \
	-DLWS_WITHOUT_BUILTIN_SHA1=ON \
	-DLWS_WITH_SQLITE3=ON \
	-DLWS_WITH_ZLIB=ON \
	-DLWS_WITH_BUNDLED_ZLIB_DEFAULT=OFF \
	-DLWS_WITH_LWSAC=ON \
	-DLWS_WITH_DISKCACHE=ON \
	-DLIBEV_INCLUDE_DIRS=%{_includedir}/libev

%make
# Build html dev docs
doxygen ../%{name}.dox


%install
%makeinstall_std -C build

rm -f %{buildroot}%{_libdir}/pkgconfig/%{name}_static.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14411 |21mr|libwmf-0.2.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.2
%define major 7
%define libname %mklibname wmf %{api} %{major}
%define litename %mklibname wmflite %{api} %{major}
%define devname %mklibname -d wmf

%define _disable_rebuild_configure %nil

Summary:	A library to convert wmf files
Name:		libwmf
Version:	0.2.12
Release:	2
License:	GPLv2
Group:		Text tools
Url:		https://github.com/caolanm/libwmf
Source0:	https://github.com/caolanm/libwmf/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(liblzma)

Requires(post,postun):	gdk-pixbuf2.0
Requires:	urw-fonts

%description
libwmf is a library for unix like machines that can convert wmf
files into other formats, currently it supports a gd binding
to convert to gif, and an X one to draw direct to an X window
or pixmap.

%files
%license COPYING
%{_bindir}/wmf2*
%{_libdir}/gdk-pixbuf-2.0/*/loaders/io-wmf.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library to convert wmf files. - library files
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libwmf.

%files -n %{libname}
%{_libdir}/libwmf-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{litename}
Summary:	A library to convert wmf files. - library files
Group:		System/Libraries
Conflicts:	%{libname} < 0.2.8.4-26

%description -n %{litename}
This package contains the library needed to run programs dynamically
linked with libwmflite.

%files -n %{litename}
%{_libdir}/libwmflite-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A library to convert wmf files. - development environment
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	libwmf-devel = %{version}-%{release}

%description -n %{devname}
libwmf is a library for unix like machines that can convert wmf
files into other formats, currently it supports a gd binding
to convert to gif, and an X one to draw direct to an X window
or pixmap.

Install libwmf-devel if you need to compile an application with libwmf
support.

%files -n %{devname}
%doc CREDITS README NEWS ChangeLog
%{_bindir}/libwmf-config
%{_libdir}/libwmf.so
%{_libdir}/libwmflite.so
%{_includedir}/libwmf
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -i -f -Ipatches
%configure \
	--with-libxml2 \
	--disable-static

%make_build

%install
%make_install
rm -rf $RPM_BUILD_ROOT%{_includedir}/libwmf/gd
find doc -name "Makefile*" -exec rm {} \;
#we're carrying around duplicate fonts
rm -rf $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/*afm
rm -rf $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/*t1
sed -i $RPM_BUILD_ROOT%{_datadir}/libwmf/fonts/fontmap -e 's#libwmf/fonts#fonts/urw-base35#g'
# remove anything relevant to fonts.
rm -rf %{buildroot}%{_bindir}/libwmf-fontmap %{buildroot}%{_datadir}/libwmf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14412 |21mr|libwnck-2.30.7-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 22
%define libname %mklibname wnck- %{api} %{major}
%define develname %mklibname -d wnck- %{api}

Epoch: 1

Summary: Libwnck is Window Navigator Construction Kit
Name: libwnck
Version: 2.30.7
Release: 13
License: LGPLv2+
URL: http://www.gnome.org/
Group: System/Libraries
Source0: ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
Patch: libwnck-2.27.4-linking.patch

BuildRequires: intltool
BuildRequires: gnome-common
BuildRequires: gtk-doc
BuildRequires: pkgconfig(gobject-introspection-1.0)
BuildRequires: pkgconfig(gtk+-2.0)
BuildRequires: pkgconfig(libstartup-notification-1.0)

%description
libwnck is Window Navigator Construction Kit, i.e. a library to use
for writing pagers and taskslists and stuff.

%package -n %{libname}
Summary:	%{summary}
Group:		%{group}
Provides:	%{name}-%{api} = %{version}-%{release}
Requires:	%{name} >= %{version}
Conflicts:	gir-repository < 0.6.5-9

%description -n %{libname}
libwnck is Window Navigator Construction Kit, i.e. a library to use
for writing pagers and taskslists and stuff.

%package -n %{develname}
Summary:	Development libraries, include files for libwnck
Group:		Development/GNOME and GTK+
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{name}-%{api}-devel = %{version}-%{release}
Requires:	%{name}-1 = %{version}
Conflicts:	gir-repository < 0.6.5-9

%description -n %{develname}
libwnck is Window Navigator Construction Kit, i.e. a library to use
for writing pagers and taskslists and stuff.

%prep
%setup -q
#%patch -p1
#autoconf

%build
%configure \
	--disable-static

%make 

%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/locale/{io,be@latin,bn_IN,si,uz@cyrillic}
rm -rf %{buildroot}/%{_bindir}
%find_lang %{name}

rm -f %{buildroot}%{_libdir}/*.la

%files -f %{name}.lang
%doc README AUTHORS

%files -n %{libname}
%{_libdir}/libwnck-%{api}.so.%{major}*
%{_libdir}/girepository-1.0/Wnck-1.0.typelib

%files -n %{develname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/libwnck
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/Wnck-1.0.gir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14413 |21mr|libwnck3-40.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

%define oname libwnck
%define api_version 3
%define major 0
%define api %{api_version}.0

%define libname %mklibname wnck %{api_version} %{major}
%define girname %mklibname wnck-gir %{api}
%define devname %mklibname -d wnck %{api_version}

Summary:	Libwnck is Window Navigator Construction Kit
Name:		libwnck3
Version:	40.1
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/libwnck
Source0:	https://download.gnome.org/sources/libwnck/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xres)
BuildRequires:	pkgconfig(libpng)

%description
libwnck is Window Navigator Construction Kit, i.e. a library to use
for writing pagers and taskslists and stuff.

%files -f libwnck-3.0.lang
%doc AUTHORS README NEWS
%{_bindir}/wnckprop
%{_bindir}/wnck-urgency-monitor

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libwnck is Window Navigator Construction Kit
Group:		System/Libraries
Recommends:	%{name}

%description -n %{libname}
libwnck is Window Navigator Construction Kit, i.e. a library to use
for writing pagers and taskslists and stuff.

%files -n %{libname}
%{_libdir}/libwnck-%{api_version}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Wnck-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and include files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
libwnck is Window Navigator Construction Kit, i.e. a library to use
for writing pagers and taskslists and stuff.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/Wnck-%{api}.gir
%doc %{_datadir}/gtk-doc/html/libwnck-%{api}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install
rm -rf %{buildroot}%{_datadir}/locale/{io,be@latin,bn_IN,si,uz@cyrillic}
%find_lang %{oname}-3.0 --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14414 |21mr|libwpd-0.10.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.10
%define major 10
%define libname %mklibname wpd %{api} %{major}
%define devname %mklibname wpd -d

Summary:	Library for reading/writing WordPerfect files
Name:		libwpd
Version:	0.10.3
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://libwpd.sourceforge.net/
Source0:	http://downloads.sourceforge.net/libwpd/%{name}-%{version}.tar.xz
# From Fedora
Patch0:		libwpd-gcc11.patch
BuildRequires:	boost-devel
BuildRequires:	doxygen
BuildRequires:	pkgconfig(librevenge-0.0)

%description
Libwpd is a library for reading/writing WordPerfect files. It is designed
to be used by another program (e.g.: a word processor) as an in-process
component. It supports fileimport of all versions of WordPerfect.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Wordperfect files to html or text
Group:		Office

%description tools
Tools to transform Wordperfect files to html or text. It supports fileimport
of all versions of WordPerfect.

%files tools
%doc ChangeLog INSTALL README TODO
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Library for reading/writing WordPerfect files
Group:		System/Libraries

%description -n	%{libname}
Libwpd is a library for reading/writing WordPerfect files. It is designed
to be used by another program (e.g.: a word processor) as an in-process
component. It supports fileimport of all versions of WordPerfect.

%files -n %{libname}
%{_libdir}/libwpd-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files for libwpd
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and development files for libwpd.

%files -n %{devname}
%{_libdir}/pkgconfig/libwpd-%{api}.pc
%{_libdir}/libwpd-%{api}.so
%{_includedir}/libwpd-%{api}
%doc %{_datadir}/doc/libwpd

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14415 |21mr|libwpe-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname wpe %{major}
%define devname %mklibname wpe -d


Name:           libwpe
Version:        1.6.0
Release:        1%{?dist}
Summary:        General-purpose library for the WPE-flavored port of WebKit
Group:		System/Libraries
License:        BSD
URL:            https://github.com/WebPlatformForEmbedded/%{name}
Source0:        https://github.com/WebPlatformForEmbedded/libwpe/releases/download/%{version}/%{name}-%{version}.tar.xz

BuildRequires:  cmake
BuildRequires:  mesa-common-devel
BuildRequires:  pkgconfig(xkbcommon)

Provides: wpebackend = %{EVRD}
Obsoletes: wpebackend < 0.2.0-2

%description
General-purpose library developed for the WPE-flavored port of WebKit

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
License:	LGPLv2+

%description -n %{libname}
Libraries for %{name}.

%files -n %{libname}
%license COPYING
%doc NEWS
%{_libdir}/libwpe-1.0.so.%{major}*

####################################################################

%package -n    %{devname}
Summary:       Development files for %{name}
Requires:      %{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries, build data, and header
files for developing applications that use %{name}.


%files -n %{devname}
%{_includedir}/wpe-1.0/
%{_libdir}/libwpe-1.0.so
%{_libdir}/pkgconfig/wpe-1.0.pc

####################################################################

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14416 |21mr|libwpg-0.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.3
%define major 3
%define libname %mklibname wpg %{api} %{major}
%define devname %mklibname wpg -d

Summary:	Library for importing and converting Corel WordPerfect(tm) Graphics images
Name:		libwpg
Version:	0.3.3
Release:	2
Epoch:		1
License:	LGPLv2.1+
Group:		Office
Url:		http://libwpg.sf.net/
Source0:	http://downloads.sourceforge.net/project/libwpg/libwpg/libwpg-%{version}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libwpd-0.10)

%description
libwpg is a library for reading and converting WPG images.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to convert WPG images into other formats
Group:		Publishing

%description tools
Tools to convert WPG images into other formats.
Currently supported: raw svg

%files tools
%doc ChangeLog README AUTHORS
%{_bindir}/wpg2*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for importing and converting Corel WordPerfect(tm) Graphics images
Group:		System/Libraries

%description -n %{libname}
libwpg is a library for reading and converting WPG images.

%files -n %{libname}
%{_libdir}/libwpg-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files for developing with libwpg
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Includes and definitions for developing with libwpg.

%files -n %{devname}
%{_libdir}/libwpg*.so
%{_libdir}/pkgconfig/libwpg*.pc
%{_includedir}/*
%doc %{_docdir}/libwpg/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14417 |21mr|libwps-0.4.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.4
%define major 4
%define libname %mklibname wps %{api} %{major}
%define devname %mklibname wps -d

Summary:	Library for reading and converting Microsoft Works word processor documents
Name:		libwps
Version:	0.4.12
Release:	1
Epoch:		1
License:	LGPLv2+
Group:		Office
Url:		http://libwps.sourceforge.net/
Source0:	http://downloads.sourceforge.net/libwps/libwps/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(librevenge-0.0)

%description
Library that handles Microsoft Works documents.

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Works documents into other formats
Group:		Publishing

%description tools
Tools to transform Works documents into other formats.
Currently supported: html, raw, text

%files tools
%{_bindir}/wks2raw
%{_bindir}/wks2csv
%{_bindir}/wks2text
%{_bindir}/wps2html
%{_bindir}/wps2raw
%{_bindir}/wps2text

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for reading and converting Microsoft Works word processor documents
Group:		System/Libraries

%description -n %{libname}
Library that handles Microsoft Works documents.

%files -n %{libname}
%{_libdir}/libwps-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files for developing with libwps
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Includes and definitions for developing with libwps.

%files -n %{devname}
%{_libdir}/libwps*-%{api}.so
%{_libdir}/pkgconfig/libwps*.pc
%{_includedir}/*

#----------------------------------------------------------------------------

%package docs
Summary:	Documentation of libwps API
Group:		Documentation

%description docs
Documentation of libwps API for developing with libwps

%files docs
%{_docdir}/libwps*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-silent-rules \
	--disable-static \
	--disable-werror

sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14418 |21mr|libx11-1.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define x11major 6
%define xcbmajor 1

%define libx11 %mklibname x11_ %{x11major}
%define libx11xcb %mklibname x11-xcb %{xcbmajor}
%define devname %mklibname x11 -d

Summary:	X Library
Name:		libx11
Version:	1.8.1
Release:	5
Group:		System/Libraries
License:	MIT
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libX11-%{version}.tar.xz
Patch0:		libX11-1.3.5-fix-null-pointer.patch
Patch1:		libx11-fix-segfault.diff
# From Fedora
Patch2:		libx11-1.6.3-dont-forward-keycode-0.patch
Patch3:		CVE-2023-3138.patch
Patch4:		CVE-2023-43785-out-of-bounds-memory-access-in-_XkbRe.patch
Patch5:		CVE-2023-43786-stack-exhaustion-from-infinite-recurs.patch
Patch6:		CVE-2023-43787-Integer-overflow-in-XCreateImage-lead.patch

BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	groff
BuildRequires:	x11-sgml-doctools
BuildRequires:	x11-util-macros
BuildRequires:	xmlto
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xtrans)

%description
%{name} contains the shared libraries that most X programs
need to run properly. These shared libraries are in a separate package in
order to reduce the disk space needed to run X applications on a machine
without an X server (i.e, over a network).

#-----------------------------------------------------------

%package -n %{libx11}
Summary:	X Library
Group:		Development/X11
Provides:	%{name} = %{EVRD}
# compat with Fedora/RH
Provides:	libX11 = %{EVRD}

%description -n %{libx11}
%{name} contains the shared libraries that most X programs
need to run properly. These shared libraries are in a separate package in
order to reduce the disk space needed to run X applications on a machine
without an X server (i.e, over a network).

%files -n %{libx11}
%{_libdir}/libX11.so.%{x11major}*

#-----------------------------------------------------------

%package -n %{libx11xcb}
Summary:	X Library
Group:		Development/X11
# compat with Fedora/RH
Provides: libX11-xcb = %{EVRD}
Conflicts:	%{_lib}x11_6 < 1.6.0-2

%description -n %{libx11xcb}
%{name} contains the shared libraries that most X programs
need to run properly. These shared libraries are in a separate package in
order to reduce the disk space needed to run X applications on a machine
without an X server (i.e, over a network).

%files -n %{libx11xcb}
%{_libdir}/libX11-xcb.so.%{xcbmajor}*

#-----------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
# TODO: split into 2 devel packages
Requires:	%{libx11} = %{EVRD}
Requires:	%{libx11xcb} = %{EVRD}
Conflicts:	x11-proto-devel < 2018.4-6

%description -n %{devname}
%{name} includes the libraries, header files and documentation
you'll need to develop programs which run in X clients. X11 includes
the base Xlib library as well as the Xt and Xaw widget sets.

For guidance on programming with these libraries, O'Reilly & Associates
produces a series on X programming which you might find useful.

Install %{name} if you are going to develop programs which
will run as X clients.

%files -n %{devname}
%{_mandir}/man3/*.3.*
%{_libdir}/libX11.so
%{_libdir}/pkgconfig/x11.pc
%{_includedir}/X11/cursorfont.h
%{_includedir}/X11/ImUtil.h
%{_includedir}/X11/Xlocale.h
%{_includedir}/X11/Xcms.h
%{_includedir}/X11/Xlibint.h
%{_includedir}/X11/Xlib.h
%{_includedir}/X11/Xresource.h
%{_includedir}/X11/Xregion.h
%{_includedir}/X11/Xutil.h
%{_includedir}/X11/XlibConf.h
%{_includedir}/X11/XKBlib.h
%{_includedir}/X11/extensions/XKBgeom.h
%{_libdir}/libX11-xcb.so
%{_libdir}/pkgconfig/x11-xcb.pc
%{_includedir}/X11/Xlib-xcb.h
%{_mandir}/man5/*.5*

#-----------------------------------------------------------

%package common
Summary:	Common files used by the X.org
Group:		System/X11
BuildArch:	noarch

%description common
Common files used by the X.org.

%files common
%dir %{_datadir}/X11/locale
%{_datadir}/X11/locale/*
%{_datadir}/X11/Xcms.txt
%{_datadir}/X11/XErrorDB

#-----------------------------------------------------------

%package doc
Summary:	Documentation used by the X.org
Group:		System/X11
BuildArch:	noarch

%description doc
Documentation used by the X.org.

%files doc
%{_docdir}/libX11

#-----------------------------------------------------------

%prep
%setup -q -n libX11-%{version}
%apply_patches

%build

# Some clients, e.g. XFCE, are not ready for changed introduced by
# https://github.com/freedesktop/xorg-libX11/commit/afcdb6fb0
# TODO: consider removing --disable-thread-safety-constructor in future platforms
%configure \
	--disable-static \
	--disable-thread-safety-constructor

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14419 |21mr|libx86-1.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	1
%define libname	%mklibname x86 %{nil} %{major}
%define devname	%mklibname x86 -d

Summary:	Hardware-independent library for executing real-mode x86 code
Name:		libx86
Version:	1.1
Release:	16
License:	MIT
Group:		System/Libraries
Url:		http://www.codon.org.uk/~mjg59/libx86/
Source:		http://www.codon.org.uk/~mjg59/libx86/downloads/%{name}-%{version}.tar.gz
Patch0:		libx86-0.99-ifmask.patch
ExclusiveArch:	%{ix86} x86_64

%description
It's often useful to be able to make real-mode x86 BIOS calls from userland.
lrmi provides a simple interface to this for x86 machines, but this doesn't
help on other platforms.

libx86 provides the lrmi interface, but will also run on platforms such as
amd64 and alpha.

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Hardware-independent library for executing real-mode x86 code
Group:		System/Libraries

%description -n	%{libname}
It's often useful to be able to make real-mode x86 BIOS calls from userland.
lrmi provides a simple interface to this for x86 machines, but this doesn't
help on other platforms.

libx86 provides the lrmi interface, but will also run on platforms such as
amd64 and alpha.

This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc COPYRIGHT
%{_libdir}/libx86.so.%{major}

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_libdir}/libx86.a
%{_libdir}/libx86.so
%{_includedir}/libx86.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0

%build
%ifarch %{ix86}
%make CFLAGS="%{optflags}"
%else
%make BACKEND=x86emu CFLAGS="%{optflags} -fPIC"
%endif

%install
%makeinstall_std LIBDIR=%{_libdir}
chmod 0644 %{buildroot}%{_libdir}/libx86.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14420 |21mr|libx86emu-3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname x86emu %{major}
%define devname %mklibname x86emu -d

Summary:	A small x86 emulation library
Name:		libx86emu
Version:	3.1
Release:	2
License:	BSD
Group:		System/Libraries
Source0:	%{name}-%{version}.tar.gz
ExclusiveArch:	%{ix86} x86_64

%description
Small x86 emulation library with focus of easy usage and extended
execution logging functions.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A small x86 emulation library
Group:		System/Libraries

%description -n %{libname}
Small x86 emulation library with focus of easy usage and extended
execution logging functions.

%files -n %{libname}
%{_libdir}/libx86emu.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A small x86 emulation library development files
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Small x86 emulation library with focus of easy usage and extended
execution logging functions.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/x86emu.h
%doc LICENSE

#----------------------------------------------------------------------------

%prep
%setup -q

%build
echo %{version} > VERSION
%make shared CFLAGS="%{optflags} -fPIC"

%install
%makeinstall_std LIBDIR=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14421 |21mr|libxau-1.0.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname xau %{major}
%define devname %mklibname xau -d

Summary:	X authorization file management library
Name:		libxau
Version:	1.0.9
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXau-%{version}.tar.bz2
Patch0:		libxau-visibility.patch
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
X authorization file management library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X authorization file management library
Group:		Development/X11
Provides:	%{name} = %{EVRD}

%description -n %{libname}
X authorization file management library.

%files -n %{libname}
%{_libdir}/libXau.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}xau6-devel < 1.0.7
Obsoletes:	%{_lib}xau-static-devel < 1.0.7

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/pkgconfig/xau.pc
%{_includedir}/X11/Xauth.h
%{_libdir}/libXau.so
%{_mandir}/man3/Xau*

#----------------------------------------------------------------------------

%prep
%setup -qn libXau-%{version}
%patch0 -p1 -b .visibility

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14422 |21mr|libxaw-1.0.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libxaw7 %mklibname xaw %{major}
%define develname %mklibname xaw -d

Name:		libxaw
Summary:	X Athena Widgets Library
Version:	1.0.14
Release:	2
Group:		System/Libraries
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXaw-%{version}.tar.bz2

BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xau) >= 1.0.0
BuildRequires:	pkgconfig(xext) >= 1.0.0
BuildRequires:	pkgconfig(xmu) >= 1.0.0
BuildRequires:	pkgconfig(xpm) >= 3.5.4.2
BuildRequires:	pkgconfig(xt) >= 1.0.0
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.3.0
BuildRequires:	groff

%description
Xaw is the classic X Athena Widget Set, a widget set based on the
X Toolkit Intrinsics (Xt) Library.

%package -n %{libxaw7}
Group:		System/Libraries
Summary:	X Athena Widgets Library
Requires:	x11-data-bitmaps
Conflicts:	libxorg-x11 < 7.0
# (walluck): FIXME: we wouldn't provide this but for the packages that incorrectly require it
Provides:	libxaw7 = %{version}-%{release}

%description -n %{libxaw7}
Xaw is the classic X Athena Widget Set, a widget set based on the
X Toolkit Intrinsics (Xt) Library.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libxaw7} = %{version}-%{release}
Conflicts:	libxorg-x11-devel < 7.0
Provides:	xaw-devel = %{version}-%{release}
Provides:	libxaw-devel = %{version}-%{release}
Obsoletes:	%{_lib}xaw-static-devel < 1.0.11

%description -n %{develname}
Development files for %{name}.

%prep
%setup -qn libXaw-%{version}
%autopatch -p1

%build
%configure \
	--disable-static \
	--disable-xaw6

%make

%install
%makeinstall_std

%files -n %{libxaw7}
%{_libdir}/libXaw.so.%{major}
%{_libdir}/libXaw7.so.%{major}*

%files -n %{develname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%dir %{_includedir}/X11/Xaw
%{_includedir}/X11/Xaw/*
%{_mandir}/man3/Xaw.3.*
%dir %{_docdir}/libXaw
%{_docdir}/libXaw/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14423 |21mr|libxcb-1.14-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Do not build the obsolete extensions by default.
%bcond_with obsolete_extensions

%define major 1
%define libxcb %mklibname xcb %{major}
%define devname %mklibname xcb -d

%define compositemajor 0
%define damagemajor 0
%define dpmsmajor 0
%define dri2major 0
%define dri3major 0
%define glxmajor 0
%define presentmajor 0
%define randrmajor 0
%define recordmajor 0
%define rendermajor 0
%define resmajor 0
%define screensavermajor 0
%define shapemajor 0
%define shmmajor 0
%define syncmajor 1
%define xeviemajor 0
%define xf86drimajor 0
%define xfixesmajor 0
%define xineramamajor 0
%define xkbmajor 1
%define xprintmajor 0
%define xtestmajor 0
%define xvmajor 0
%define xvmcmajor 0
%define xselinuxmajor 0
%define xinputmajor 0

%define libxcb_composite   %mklibname xcb-composite   %{compositemajor}
%define libxcb_damage      %mklibname xcb-damage      %{damagemajor}
%define libxcb_dpms        %mklibname xcb-dpms        %{dpmsmajor}
%define libxcb_dri2        %mklibname xcb-dri2_       %{dri2major}
%define libxcb_dri3        %mklibname xcb-dri3_       %{dri3major}
%define libxcb_glx         %mklibname xcb-glx         %{glxmajor}
%define libxcb_present     %mklibname xcb-present     %{presentmajor}
%define libxcb_randr       %mklibname xcb-randr       %{randrmajor}
%define libxcb_record      %mklibname xcb-record      %{recordmajor}
%define libxcb_render      %mklibname xcb-render      %{rendermajor}
%define libxcb_res         %mklibname xcb-res         %{resmajor}
%define libxcb_screensaver %mklibname xcb-screensaver %{screensavermajor}
%define libxcb_shape       %mklibname xcb-shape       %{shapemajor}
%define libxcb_shm         %mklibname xcb-shm         %{shmmajor}
%define libxcb_sync        %mklibname xcb-sync        %{syncmajor}
%define libxcb_xevie       %mklibname xcb-xevie       %{xeviemajor}
%define libxcb_xf86dri     %mklibname xcb-xf86dri     %{xf86drimajor}
%define libxcb_xfixes      %mklibname xcb-xfixes      %{xfixesmajor}
%define libxcb_xinerama    %mklibname xcb-xinerama    %{xineramamajor}
%define libxcb_xkb         %mklibname xcb-xkb         %{xkbmajor}
%define libxcb_xprint      %mklibname xcb-xprint      %{xprintmajor}
%define libxcb_xtest       %mklibname xcb-xtest       %{xtestmajor}
%define libxcb_xv          %mklibname xcb-xv          %{xvmajor}
%define libxcb_xvmc        %mklibname xcb-xvmc        %{xvmcmajor}
%define libxcb_xselinux    %mklibname xcb-xselinux    %{xselinuxmajor}
%define libxcb_xinput      %mklibname xcb-xinput      %{xinputmajor}
# Need obsoletes
%define libxcb_util0       %mklibname xcb-util        0
%define libxcb_util1       %mklibname xcb-util        1
%define libxcb_randr1      %mklibname xcb-randr       1

Summary:	X protocol C-language Binding Library
Name:		libxcb
Version:	1.14
Release:	8
License:	MIT
Group:		System/X11
Url:		http://xcb.freedesktop.org
Source0:	http://xcb.freedesktop.org/dist/libxcb-%{version}.tar.xz

# Version 1.14 needs xcb-proto 1.14
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(libexslt)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(pthread-stubs)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xcb-proto)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xkbcomp)
BuildRequires:	pkgconfig(xkbfile)

%description
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

%package -n %{libxcb}
Summary:	X protocol C-language Binding Library
Group:		System/X11
Provides:	%{name} = %{EVRD}
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9
# Bug #53733: libxcb_randr1 was wrongly obsoleting old %{libxcb}s
Conflicts:	%{libxcb_randr1} < 1.4
Obsoletes:	%{libxcb_randr1} < 1.4

%description -n %{libxcb}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

%files -n %{libxcb}
%{_libdir}/libxcb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libxcb_composite}
Summary:	X protocol C-language Binding Library (composite extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_composite}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the composite extension.

%files -n %{libxcb_composite}
%{_libdir}/libxcb-composite.so.%{compositemajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_damage}
Summary:	X protocol C-language Binding Library (damage extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_damage}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the damage extension.

%files -n %{libxcb_damage}
%{_libdir}/libxcb-damage.so.%{damagemajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_dpms}
Summary:	X protocol C-language Binding Library (dpms extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_dpms}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the dpms extension.

%files -n %{libxcb_dpms}
%{_libdir}/libxcb-dpms.so.%{dpmsmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_dri2}
Summary:	X protocol C-language Binding Library (dri2 extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_dri2}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the dri2 extension.

%files -n %{libxcb_dri2}
%{_libdir}/libxcb-dri2.so.%{dri2major}*

%package -n %{libxcb_dri3}
Summary:	X protocol C-language Binding Library (dri3 extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1

%description -n %{libxcb_dri3}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility. This package provides bindings for the 
dri3 extension.

%files -n %{libxcb_dri3}
%{_libdir}/libxcb-dri3.so.%{dri3major}*

#----------------------------------------------------------------------------

%package -n %{libxcb_glx}
Summary:	X protocol C-language Binding Library (glx extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_glx}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the glx extension.

%files -n %{libxcb_glx}
%{_libdir}/libxcb-glx.so.%{glxmajor}*

%package -n %{libxcb_present}
Summary:	X protocol C-language Binding Library (present extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1

%description -n %{libxcb_present}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility. This package provides bindings for
the present extension.

%files -n %{libxcb_present}
%{_libdir}/libxcb-present.so.%{presentmajor}*
#----------------------------------------------------------------------------

%package -n %{libxcb_randr}
Summary:	X protocol C-language Binding Library (randr extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
# Bug #53733 explains why libxcb-randr0 obsoletes libxcb-randr1 < 1.4
Conflicts:	%{libxcb_randr1} < 1.4
Obsoletes:	%{libxcb_randr1} < 1.4
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_randr}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the randr extension.

%files -n %{libxcb_randr}
%{_libdir}/libxcb-randr.so.%{randrmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_record}
Summary:	X protocol C-language Binding Library (record extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_record}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the record extension.

%files -n %{libxcb_record}
%{_libdir}/libxcb-record.so.%{recordmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_render}
Summary:	X protocol C-language Binding Library (render extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_render}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the render extension.

%files -n %{libxcb_render}
%{_libdir}/libxcb-render.so.%{rendermajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_res}
Summary:	X protocol C-language Binding Library (res extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_res}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the res extension.

%files -n %{libxcb_res}
%{_libdir}/libxcb-res.so.%{resmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_screensaver}
Summary:	X protocol C-language Binding Library (screensaver extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_screensaver}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the screensaver extension.

%files -n %{libxcb_screensaver}
%{_libdir}/libxcb-screensaver.so.%{screensavermajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_shape}
Summary:	X protocol C-language Binding Library (shape extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_shape}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the shape extension.

%files -n %{libxcb_shape}
%{_libdir}/libxcb-shape.so.%{shapemajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_shm}
Summary:	X protocol C-language Binding Library (shm extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_shm}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the shm extension.

%files -n %{libxcb_shm}
%{_libdir}/libxcb-shm.so.%{shmmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_sync}
Summary:	X protocol C-language Binding Library (sync extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_sync}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the sync extension.

%files -n %{libxcb_sync}
%{_libdir}/libxcb-sync.so.%{syncmajor}*

#----------------------------------------------------------------------------

%if %{with obsolete_extensions}

%package -n %{libxcb_xevie}
Summary:	X protocol C-language Binding Library (xevie extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xevie}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xevie extension.

%files -n %{libxcb_xevie}
%{_libdir}/libxcb-xevie.so.%{xeviemajor}*

%endif

#----------------------------------------------------------------------------

%package -n %{libxcb_xf86dri}
Summary:	X protocol C-language Binding Library (xf86dri extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xf86dri}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xf86dri extension.

%files -n %{libxcb_xf86dri}
%{_libdir}/libxcb-xf86dri.so.%{xf86drimajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_xfixes}
Summary:	X protocol C-language Binding Library (xfixes extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xfixes}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xfixes extension.

%files -n %{libxcb_xfixes}
%{_libdir}/libxcb-xfixes.so.%{xfixesmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_xinerama}
Summary:	X protocol C-language Binding Library (xinerama extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xinerama}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xinerama extension.

%files -n %{libxcb_xinerama}
%{_libdir}/libxcb-xinerama.so.%{xineramamajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_xkb}
Summary:	X protocol C-language Binding Library (xkb extension)
Group:		System/X11

%description -n %{libxcb_xkb}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xkb extension.

%files -n %{libxcb_xkb}
%{_libdir}/libxcb-xkb.so.%{xkbmajor}*

#----------------------------------------------------------------------------

%if %{with obsolete_extensions}

%package -n %{libxcb_xprint}
Summary:	X protocol C-language Binding Library (xprint extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xprint}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xprint extension.

%files -n %{libxcb_xprint}
%{_libdir}/libxcb-xprint.so.%{xprintmajor}*

%endif

#----------------------------------------------------------------------------

%package -n %{libxcb_xtest}
Summary:	X protocol C-language Binding Library (xtest extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xtest}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xtest extension.

%files -n %{libxcb_xtest}
%{_libdir}/libxcb-xtest.so.%{xtestmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_xv}
Summary:	X protocol C-language Binding Library (xv extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xv}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xv extension.

%files -n %{libxcb_xv}
%{_libdir}/libxcb-xv.so.%{xvmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_xvmc}
Summary:	X protocol C-language Binding Library (xvmc extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xvmc}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the xvmc extension.

%files -n %{libxcb_xvmc}
%{_libdir}/libxcb-xvmc.so.%{xvmcmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_xselinux}
Summary:	X protocol C-language Binding Library (xselinux extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1

%description -n %{libxcb_xselinux}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the XSELinux extension.

%files -n %{libxcb_xselinux}
%{_libdir}/libxcb-xselinux.so.%{xselinuxmajor}*

#----------------------------------------------------------------------------

%package -n %{libxcb_xinput}
Summary:	X protocol C-language Binding Library (xinput extension)
Group:		System/X11
Conflicts:	%{libxcb} <= 1.3-1
Obsoletes:	%{libxcb_util0} < 0.3.9
Obsoletes:	%{libxcb_util1} < 0.3.9

%description -n %{libxcb_xinput}
The X protocol C-language Binding (XCB) is a replacement for Xlib  featuring
a small footprint, latency hiding, direct access to the protocol, improved
threading support, and extensibility.

This package provides bindings for the XInput extension.

%files -n %{libxcb_xinput}
%{_libdir}/libxcb-xinput.so.%{xinputmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libxcb} = %{EVRD}
Requires:	%{libxcb_composite} = %{EVRD}
Requires:	%{libxcb_damage} = %{EVRD}
Requires:	%{libxcb_dpms} = %{EVRD}
Requires:	%{libxcb_dri2} = %{EVRD}
Requires:	%{libxcb_dri3} = %{EVRD}
Requires:	%{libxcb_glx} = %{EVRD}
Requires:	%{libxcb_present} = %{EVRD}
Requires:	%{libxcb_randr} = %{EVRD}
Requires:	%{libxcb_record} = %{EVRD}
Requires:	%{libxcb_render} = %{EVRD}
Requires:	%{libxcb_res} = %{EVRD}
Requires:	%{libxcb_screensaver} = %{EVRD}
Requires:	%{libxcb_shape} = %{EVRD}
Requires:	%{libxcb_shm} = %{EVRD}
Requires:	%{libxcb_sync} = %{EVRD}
%if %{with obsolete_extensions}
Requires:	%{libxcb_xevie} = %{EVRD}
%endif
Requires:	%{libxcb_xf86dri} = %{EVRD}
Requires:	%{libxcb_xfixes} = %{EVRD}
Requires:	%{libxcb_xinerama} = %{EVRD}
Requires:	%{libxcb_xkb} = %{EVRD}
%if %{with obsolete_extensions}
Requires:	%{libxcb_xprint} = %{EVRD}
%endif
Requires:	%{libxcb_xtest} = %{EVRD}
Requires:	%{libxcb_xv} = %{EVRD}
Requires:	%{libxcb_xvmc} = %{EVRD}
Requires:	%{libxcb_xselinux} = %{EVRD}
Requires:	%{libxcb_xinput} = %{EVRD}
# gw this isn't picked up by the automatic pkgconfig deps, but without it,
# pkg-config --libs xcb will fail
Requires:	libpthread-stubs
Provides:	xcb-devel = %{EVRD}
Obsoletes:	%{_lib}xcb1-devel < %{EVRD}
Obsoletes:	%{_lib}xcb-static-devel < %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/xcb/*.h
%{_libdir}/libxcb*.so
%{_libdir}/pkgconfig/xcb*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Development/X11

%description doc
Documentation for %{name}.

%files doc
%{_docdir}/libxcb
%{_mandir}/man3/*.xz

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%configure \
	--disable-static \
	--enable-xkb \
	--enable-selinux \
	--enable-xinput

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14424 |21mr|libxcomposite-0.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xcomposite %{major}
%define develname %mklibname xcomposite -d

Name: libxcomposite
Summary: X Composite Library
Version:	0.4.6
Release:	1
Group: Development/X11
License: MIT
URL: http://xorg.freedesktop.org
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXcomposite-%{version}.tar.xz

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xext) >= 1.0.0
BuildRequires: pkgconfig(xfixes) >= 3.0.1.2
BuildRequires: x11-proto-devel >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
X Composite Library

%package -n %{libname}
Summary: X Composite Library
Group: Development/X11
Conflicts: libxorg-x11 < 7.0
Provides: %{name} = %{version}
# compat with Fedora/RH
Provides: libXcomposite%{?_isa} = %{EVRD}
Provides: libXcomposite = %{EVRD}

%description -n %{libname}
X Composite  Library

%package -n %{develname}
Summary: Development files for %{name}
Group: Development/X11
Requires: %{libname} = %{version}-%{release}
Provides: libxcomposite-devel = %{version}-%{release}
Obsoletes: %{_lib}xcomposite1-devel < 0.4.3
Obsoletes: %{_lib}xcomposite-static-devel < 0.4.3
Conflicts: libxorg-x11-devel < 7.0

%description -n %{develname}
Development files for %{name}

%prep
%setup -qn libXcomposite-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%pre -n %{develname}
if [ -h %{_includedir}/X11 ]; then
	rm -f %{_includedir}/X11
fi

%files -n %{libname}
%{_libdir}/libXcomposite.so.%{major}*

%files -n %{develname}
%{_libdir}/libXcomposite.so
%{_libdir}/pkgconfig/xcomposite.pc
%{_includedir}/X11/extensions/Xcomposite.h
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14425 |21mr|libxcrypt-4.4.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname crypt %{major}
%define devname %mklibname crypt -d
%define sdevname %mklibname crypt -d -s

# We ship a static library here -- LTO bytecode rather than
# object code in .o files packaged into a static library breaks
# using different compilers
%global _disable_lto 1

# -fno-strict-aliasing is to build tests
# -fPIC is to allow linking -fPIC-enabled shared objects (e.g. Heimdal) against static libcrypt
# https://wiki.gentoo.org/wiki/Project:AMD64/Fixing_-fPIC_Errors_Guide#Case_4:_Linking_dynamically_against_static_archives
# -fPIC is/will be restored in default RPM %%optflags probably,
# just make sure that it is used here
%global optflags %{optflags} -fno-strict-aliasing -fPIC
# From OMV, force bfd if gold is the default linker
%ifnarch %{e2k}
%global ldflags %{ldflags}  -fuse-ld=bfd
%endif

Summary:	Crypt Library for DES, MD5, Blowfish and others
Name:		libxcrypt
Version:	4.4.33
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/besser82/libxcrypt
Source0:	https://github.com/besser82/libxcrypt/archive/v%{version}.tar.gz
BuildRequires:	perl-open

%description
Libxcrypt is a replacement for libcrypt, which comes with the GNU C
Library. It supports DES crypt, MD5, SHA256, SHA512 and passwords with
blowfish encryption.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Crypt Library for DES, MD5, Blowfish and others
Group:		System/Libraries
Provides:	glibc-crypt_blowfish = 1.3
Provides:	eglibc-crypt_blowfish = 1.3

%description -n %{libname}
Libxcrypt is a replacement for libcrypt, which comes with the GNU C
Library. It supports DES crypt, MD5, SHA256, SHA512 and passwords with
blowfish encryption.

%files -n %{libname}
/%{_lib}/libcrypt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	glibc-crypt_blowfish-devel = 1.3
Provides:	eglibc-crypt_blowfish-devel = 1.3

%description -n %{devname}
This package contains the header files necessary
to develop software using %{name}.

%files -n %{devname}
%doc AUTHORS NEWS README.md
%{_includedir}/*.h
/%{_lib}/libcrypt.so
/%{_lib}/libxcrypt.so
%{_libdir}/pkgconfig/libcrypt.pc
%{_libdir}/pkgconfig/libxcrypt.pc
%{_mandir}/man3/crypt*.3*
%{_mandir}/man5/crypt.5*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
This package contains the static libraries necessary
to develop software using %{name} without requiring
%{name} to be installed on the target system.

%files -n %{sdevname}
%{_libdir}/libcrypt.a
%{_libdir}/libxcrypt.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fiv
%configure  \
	--libdir=/%{_lib} \
	--enable-shared \
	--enable-static \
	--enable-hashes=all \
	--disable-failure-tokens \
	--enable-obsolete-api=glibc \
	--enable-obsolete-api-enosys=no \
	|| (cat config.log && exit 1)

%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
mv %{buildroot}/%{_lib}/pkgconfig/*.pc %{buildroot}%{_libdir}/pkgconfig/
mv %{buildroot}/%{_lib}/*.a %{buildroot}%{_libdir}/

%check
# Make sure the symbol versioning script worked
if ! nm $(ls .libs/libcrypt.so.%{major}* |head -n1) |grep -q 'crypt_r@GLIBC_2'; then
    printf '%s\n' 'Symbol versioning script seems to have messed up.'
    printf '%s\n' 'Make sure this is fixed unless you want to break pam.'
    printf '%s\n' 'You may want to try a different ld.'
    exit 1
fi
%make -k check VERBOSE=1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14426 |21mr|libxcursor-1.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname xcursor %{major}
%define	devname %mklibname xcursor -d

Summary:	X Cursor Library
Name:		libxcursor
Version:	1.2.0
Release:	3
License:	MIT
Group:		Development/X11
Url:		https://wiki.freedesktop.org/xorg
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXcursor-%{version}.tar.bz2
# Really needs pkgconfig(fixesproto) >= 5.0.0
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xfixes) >= 3.0.1.2
BuildRequires:	pkgconfig(xorg-macros) >= 1.0.1
BuildRequires:	pkgconfig(xrender) >= 0.9.0.2

%description
X Cursor Library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X Cursor Library
Group:		Development/X11
Provides:	%{name} = %{EVRD}
# compat with Fedora/RH
Provides:	libXcursor%{_isa} = %{EVRD}
Provides:	libXcursor = %{EVRD}

%description -n %{libname}
X Cursor Library.

%files -n %{libname}
%{_libdir}/libXcursor.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{_lib}xcursor1-devel
%rename		%{_lib}xcursor-static-devel

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libXcursor.so
%{_libdir}/pkgconfig/xcursor.pc
%{_includedir}/X11/Xcursor/Xcursor.h
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -qn libXcursor-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14427 |21mr|libxcvt-0.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major 0
%define libname %mklibname xcvt %{major}
%define devname %mklibname -d xcvt

Summary:	VESA CVT standard timing modelines generator
Name:		libxcvt
Version:	0.1.2
Release:	2
License:	MIT
Group:		System/X11
URL:		https://gitlab.freedesktop.org/xorg/lib/libxcvt/
Source0:	https://xorg.freedesktop.org/archive/individual/lib/%{name}-%{version}.tar.xz
BuildRequires:	meson

%description
libxcvt is a library providing a standalone version of the X server
implementation of the VESA CVT standard timing modelines generator.

#----------------------------------------------------------
%package -n %{libname}
Summary:	VESA CVT standard timing modelines generator
Group:		System/Libraries

%description -n %{libname}
libxcvt is a library providing a standalone version of the X server
implementation of the VESA CVT standard timing modelines generator.

%files -n %libname
%{_libdir}/libxcvt.so.%{major}*

#----------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %devname
%{_libdir}/pkgconfig/libxcvt.pc
%dir %{_includedir}/libxcvt
%{_includedir}/libxcvt/*.h
%{_libdir}/libxcvt.so

#----------------------------------------------------------

%package -n cvt
Summary:	Command line tool to calculate VESA CVT mode lines
Conflicts:	x11-server-common < 1.21

%description -n cvt
A standalone version of the command line tool cvt copied from the Xorg
implementation and is meant to be a direct replacement to the version
provided by the Xorg server.

%files -n cvt
%doc COPYING
%{_bindir}/cvt
%doc %{_mandir}/man1/cvt.1*

#----------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14428 |21mr|libxdamage-1.1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xdamage %{major}
%define devname %mklibname xdamage -d

Summary:	X Damage library
Name:		libxdamage
Version:	1.1.5
Release:	3
License:	MIT
Group:		System/Libraries
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXdamage-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xfixes)

%description
X Damage library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X Damage shared library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
# compat with Fedora/RH
Provides:	libXdamage%{_isa} = %{EVRD}
Provides:	libXdamage = %{EVRD}

%description -n %{libname}
X Damage shared library.

%files -n %{libname}
%{_libdir}/libXdamage.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}xdamage1-devel < 1.1.3
Obsoletes:	%{_lib}xdamage-static-devel < 1.1.3

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%{_libdir}/libXdamage.so
%{_libdir}/pkgconfig/xdamage.pc
%{_includedir}/X11/extensions/Xdamage.h

#----------------------------------------------------------------------------

%prep
%setup -qn libXdamage-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14429 |21mr|libxdg-basedir-1.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libxdg %mklibname xdg-basedir %{major}
%define libdev %mklibname xdg-basedir -d
%define libdevstatic %mklibname xdg-basedir -d -s

Name:		libxdg-basedir
Version:	1.1.1
Release:	5
Summary:	The XDG Base Directory specification defines where files should be looked for
Group:		System/Libraries
License:	MIT
URL:		https://www.ohloh.net/p/libxdg-basedir
Source0:	http://n.ethz.ch/~nevillm/download/libxdg-basedir/libxdg-basedir-%{version}.tar.gz

BuildRequires:	doxygen

%description
The XDG Base Directory Specification defines where should user files be looked
for by defining one or more base directories relative in with they should be
located.

This library implements functions to list the directories according to the
specification and provides a few higher-level functions.

#------------------------------------------------------------------------------
%package -n %{libxdg}
Summary:	The XDG Base Directory specification defines where files should be looked for
Group:		System/Libraries
Provides:	%{name} = %{version}

%description -n %{libxdg}
The XDG Base Directory Specification defines where should user files be looked
for by defining one or more base directories relative in with they should be
located
#------------------------------------------------------------------------------
%package -n %{libdev}
Summary:	Development Files for %{name}
Group:		Development/Other
Requires:	%{name} = %{version}
Provides:	xdg-basedir-devel = %{version}-%{release}

%description -n %{libdev}
Development Files for %{name}

%files -n %{libdev}
%defattr(-,root,root,-)
%_includedir/basedir.h
%_includedir/basedir_fs.h
%_libdir/libxdg-basedir.so
%_libdir/pkgconfig/libxdg-basedir.pc
#------------------------------------------------------------------------------
%package -n %{libdevstatic}
Summary:	Static development files for %{name}
Group:		Development/Other
Requires:	%{libdev} = %{version}
Provides:	libxdg-basedir-static-devel = %{version}-%{release}

%description -n %{libdevstatic}
Static development files for %{name}

%files -n %{libdevstatic}
%defattr(-,root,root,-)
%_libdir/libxdg-basedir.a
#------------------------------------------------------------------------------
%prep
%setup -q -n libxdg-basedir-%{version}

%build
%configure --enable-static
%make_build


%install
%make_install

%files -n %{libxdg}
%_libdir/libxdg-basedir.so.1
%_libdir/libxdg-basedir.so.1.1.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14430 |21mr|libxdmcp-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname xdmcp %{major}
%define devname %mklibname xdmcp -d

Summary:	X Display Manager Control Protocol library
Name:		libxdmcp
Version:	1.1.4
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXdmcp-%{version}.tar.xz
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
X Display Manager Control Protocol library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for %{name}
Group:		Development/X11
Provides:	%{name} = %{EVRD}

%description -n %{libname}
X Display Manager Control Protocol library.

%files -n %{libname}
%{_libdir}/libXdmcp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}xdmcp6-devel < 1.1.1
Obsoletes:	%{_lib}xdmcp-static-devel < 1.1.1

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_datadir}/doc/libXdmcp/xdmcp.xml
%{_libdir}/libXdmcp.so
%{_libdir}/pkgconfig/xdmcp.pc
%{_includedir}/X11/Xdmcp.h

#----------------------------------------------------------------------------

%prep
%setup -qn libXdmcp-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14431 |21mr|libxext-1.3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libxext %mklibname xext %{major}
%define devname %mklibname xext -d

Summary:	X11 miscellaneous extension library
Name:		libxext
Epoch:		1
Version:	1.3.5
Release:	1
Group:		Development/X11
License:	MIT
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXext-%{version}.tar.xz

BuildRequires:	pkgconfig(x11) >= 1.6.0
BuildRequires:	pkgconfig(xau) >= 1.0.0
BuildRequires:	pkgconfig(xdmcp) >= 1.0.0
BuildRequires:	x11-proto-devel >= 7.5
BuildRequires:	x11-util-macros >= 1.0.1

%description
Misc X Extension Library.

%package -n %{libxext}
Summary:	X11 miscellaneous extension library
Group:		Development/X11
Provides:	%{name} = %{EVRD}
# compat with Fedora/RH
Provides:	libXext%{_isa} = %{EVRD}
Provides:	libXext = %{EVRD}

%description -n %{libxext}
LibXext provides an X Window System client interface to several extensions to
the X protocol.
The supported protocol extensions are:
- DOUBLE-BUFFER (DBE), the Double Buffer extension;
- DPMS, the VESA Display Power Management System extension;
- Extended-Visual-Information (EVI), an extension for gathering extra
  information about the X server's visuals;
- LBX, the Low Bandwidth X extension;
- MIT-SHM, the MIT X client/server shared memory extension;
- MIT-SUNDRY-NONSTANDARD, a miscellaneous extension by MIT;
- Multi-Buffering, the multi-buffering and stereo display extension;
- SECURITY, the X security extension;
- SHAPE, the non-rectangular shaped window extension;
- SYNC, the X synchronization extension;
- TOG-CUP, the Open Group's Colormap Utilization extension;
- XC-APPGROUP, the X Consortium's Application Group extension;
- XC-MISC, the X Consortium's resource ID querying extension;
- XTEST, the X test extension (this is one of two client-side implementations;
  the other is in the libXtst library, provided by the libxtst6 package);

LibXext also provides a small set of utility functions to aid authors of client
APIs for X protocol extensions.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libxext} = %{EVRD}
Provides:	libxext-devel = %{EVRD}
Obsoletes:	%{_lib}xext6-devel < 1:1.3.1
Obsoletes:	%{_lib}xext6-static-devel < 1:1.3.1

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXext-%{version}

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std
rm -rf %{buildroot}%{_datadir}/doc/libXext

%files -n %{libxext}
%{_libdir}/libXext.so.%{major}*

%files -n %{devname}
%doc specs/*.xml
%{_libdir}/libXext.so
%{_libdir}/pkgconfig/xext.pc
%{_includedir}/X11/extensions/*.h
%{_mandir}/man3/*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14432 |21mr|libxfixes-6.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname xfixes %{major}
%define devname %mklibname xfixes -d

Summary:	X Fixes Library
Name:		libxfixes
Version:	6.0.0
Release:	3
License:	MIT
Group:		System/Libraries
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXfixes-%{version}.tar.bz2
BuildRequires:	pkgconfig(x11)
BuildRequires:	x11-proto-devel >= 7.6-3
BuildRequires:	x11-util-macros >= 1.0.1

%description
%{name} is a simple library designed to interface the X Fixes Extension.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X Fixes  Library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
# compat with Fedora/RH
Provides:	libXfixes%{_isa} = %{EVRD}
Provides:	libXfixes = %{EVRD}

%description -n %{libname}
%{name} is a simple library designed to interface the X Fixes Extension.

%files -n %{libname}
%{_libdir}/libXfixes.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	libxfixes-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%{_libdir}/libXfixes.so
%{_libdir}/pkgconfig/xfixes.pc
%{_includedir}/X11/extensions/Xfixes.h
%{_mandir}/man3/Xfixes.*

#----------------------------------------------------------------------------

%prep
%setup -qn libXfixes-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14433 |21mr|libxfont-1.5.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xfont %{major}
%define devname %mklibname xfont -d

Summary:	X font Library
Name:		libxfont
Version:	1.5.4
Release:	3
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXfont-%{version}.tar.bz2
# submitted upstream as bug #11573
Patch3:		libXfont-1.3.4-rescan-catalogue-dir-fontpaths-on-directory-change.patch
# fix for incomplete prototype in previous patch
Patch4:		libxfont-NormalizeRelativePath-prototype.patch

BuildRequires:	pkgconfig(fontenc)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(xtrans)
BuildRequires:	pkgconfig(fontsproto) >= 2.1.3
BuildRequires:	x11-util-macros
BuildRequires:	bzip2-devel

%description
X font Library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X font shared library
Group:		Development/X11
Provides:	%{name} = %{version}
Conflicts:	libxorg-x11 < 7.0

%description -n %{libname}
X font shared library.

%files -n %{libname}
%{_libdir}/libXfont.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	libxfont-devel = %{EVRD}
Obsoletes:	%{_lib}xfont1-devel < 1.4.5
Obsoletes:	%{_lib}xfont-static-devel < 1.4.5
Conflicts:	libxorg-x11-devel < 7.0

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libXfont.so
%{_libdir}/pkgconfig/xfont.pc
%dir %{_includedir}/X11/fonts
%{_includedir}/X11/fonts/*

#----------------------------------------------------------------------------

%prep
%setup -qn libXfont-%{version}
%apply_patches


%build
%configure \
	--disable-static \
	--with-bzip2 \
	--without-fop

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14434 |21mr|libxfont2-2.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname xfont2_ %{major}
%define devname %mklibname xfont2 -d

Summary:	X font Library
Name:		libxfont2
Version:	2.0.5
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXfont2-%{version}.tar.bz2
BuildRequires:	libtool
BuildRequires:	x11-util-macros
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(fontenc)
BuildRequires:	pkgconfig(fontsproto) >= 2.1.3
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(xtrans)

%description
X.Org X11 libXfont2 runtime library

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X font shared library
Group:		Development/X11
Provides:	%{name} = %{version}
Conflicts:	%{_lib}xfont2 < 2.0.4-2
Obsoletes:	%{_lib}xfont2 < 2.0.4-2

%description -n %{libname}
X font shared library.

%files -n %{libname}
%{_libdir}/libXfont2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	libxfont2-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libXfont2.so
%{_libdir}/pkgconfig/xfont2.pc
%dir %{_includedir}/X11/fonts
%{_includedir}/X11/fonts/*

#----------------------------------------------------------------------------

%prep
%setup -qn libXfont2-%{version}
%apply_patches


%build
autoreconf -v --install --force
%configure \
	--disable-static \
	--with-bzip2 \
	--without-fop

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14435 |21mr|libxft-2.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname xft %{major}
%define devname %mklibname xft -d

Summary:	X FreeType library
Name:		libxft
Version:	2.3.4
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXft-%{version}.tar.bz2
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xrender)

%description
X FreeType library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X FreeType library
Group:		Development/X11
Provides:	%{name} = %{EVRD}
Requires:	fontconfig

%description -n %{libname}
X FreeType library.

%files -n %{libname}
%{_libdir}/libXft.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libXft.so
%{_libdir}/pkgconfig/xft.pc
%{_includedir}/X11/Xft/Xft.h
%{_includedir}/X11/Xft/XftCompat.h
%{_mandir}/man3/Xft.*

#----------------------------------------------------------------------------

%prep
%setup -qn libXft-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14436 |21mr|libxi-1.7.99.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libxi %mklibname xi %{major}
%define devname %mklibname xi -d

Summary:	X Input Extension Library
Name:		libxi
Version:	1.7.99.2
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXi-%{version}.tar.bz2
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)
# necessary for building the man pages
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd412-xml
BuildRequires:	xmlto

%description
X Input Extension Library.

#----------------------------------------------------------------------------

%package -n %{libxi}
Summary:	X Input Extension Library
Group:		Development/X11
Provides:	%{name} = %{EVRD}

%description -n %{libxi}
X Input Extension Library.

%files -n %{libxi}
%{_libdir}/libXi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libxi} = %{EVRD}
Requires:	pkgconfig(xfixes)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libXi.so
%{_libdir}/pkgconfig/xi.pc
%{_includedir}/X11/extensions/*.h
%{_datadir}/doc/libXi/*
%{_mandir}/man3/X*

#----------------------------------------------------------------------------

%prep
%setup -qn libXi-%{version}

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14437 |21mr|libxinerama-1.1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xinerama %{major}
%define devname %mklibname xinerama -d

Summary:	The Xinerama Library
Name:		libxinerama
Version:	1.1.5
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXinerama-%{version}.tar.xz
BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xext) >= 1.0.0
BuildRequires:	x11-proto-devel >= 7.5
BuildRequires:	x11-util-macros >= 1.0.1

%description
The Xinerama Library.

%package -n %{libname}
Summary:	The Xinerama Library
Group:		Development/X11
# Compat with Fedora/RH
Provides:	libXinerama = %{EVRD}

%description -n %{libname}
The Xinerama Library.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	libxinerama-devel = %{EVRD}
Obsoletes:	%{_lib}xinerama1-devel < 1.1.2
Obsoletes:	%{_lib}xinerama-static-devel < 1.1.2
# Due to moved man page, to be removed later
Conflicts:	%{libname} < 1.1.3-4

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXinerama-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXinerama.so.%{major}*

%files -n %{devname}
%{_libdir}/libXinerama.so
%{_libdir}/pkgconfig/xinerama.pc
%{_includedir}/X11/extensions/*.h
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14438 |21mr|libxkbcommon-1.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bname xkbcommon

%define major 0
%define libname %mklibname xkbcommon %{major}
%define devname %mklibname xkbcommon -d
%define libx11 %mklibname xkbcommon-x11_ %{major}
%define devx11 %mklibname xkbcommon-x11 -d
%define libnamereg %mklibname xkbregistry %{major}
%define libnamereg_devel %mklibname xkbregistry -d

Summary:	Keymap handling library for toolkits and window systems
Name:		lib%{bname}
Version:	1.4.1
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xkbcommon.org/
Source0:	http://xkbcommon.org/download/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	byacc
BuildRequires:	doxygen
BuildRequires:	flex
# to auto-detect XKB config root
BuildRequires:	x11-data-xkbdata
BuildRequires:	wayland-protocols-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(wayland-scanner)


%description
A library that provides XKB API, common to servers and clients, to translate
evdev keycodes to keysyms, used by Wayland. Wayland is a protocol for a
compositor to talk to its clients as well as a C library implementation of
that protocol. The compositor can be a standalone display server running on
Linux kernel modesetting and evdev input devices, an X application, or a
wayland client itself.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to translate evdev keycodes to keysyms
Group:		Development/X11
# compat with RH/Fedora
Provides:	libxkbcommon = %{EVRD}
Provides:	libxkbcommon%{_isa} = %{EVRD}

%description -n %{libname}
A library that provides XKB API, common to servers and clients, to translate
evdev keycodes to keysyms, used by Wayland. Wayland is a protocol for a
compositor to talk to its clients as well as a C library implementation of
that protocol. The compositor can be a standalone display server running on
Linux kernel modesetting and evdev input devices, an X application, or a
wayland client itself.

%files -n %{libname}
%doc README.md NEWS
%{_libdir}/%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package utils
Summary:	X.Org X11 XKB parsing utilities
Requires:	%{libname}

%description utils
%{name}-utils is a set of utilities to analyze and test XKB parsing.

%files utils
%{_bindir}/xkbcli
%{_libexecdir}/xkbcommon/xkbcli-*
%{_mandir}/man1/xkbcli*.1.*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{bname}.pc
%{_includedir}/%{bname}/%{bname}.h
%{_includedir}/%{bname}/%{bname}-compat.h
%{_includedir}/%{bname}/%{bname}-keysyms.h
%{_includedir}/%{bname}/%{bname}-names.h
%{_includedir}/%{bname}/%{bname}-compose.h

#-----------------------------------------------------------------------------

%package -n %{libx11}
Summary:	Library to translate evdev keycodes to keysyms (X11 bits)
Group:		Development/X11
# compat with RH/Fedora
Provides:	libxkbcommon-x11 = %{EVRD}
Provides:	libxkbcommon-x11%{_isa} = %{EVRD}

%description -n %{libx11}
A library that provides XKB API, common to servers and clients, to translate
evdev keycodes to keysyms, used by Wayland. Wayland is a protocol for a
compositor to talk to its clients as well as a C library implementation of
that protocol. The compositor can be a standalone display server running on
Linux kernel modesetting and evdev input devices, an X application, or a
wayland client itself.

%files -n %{libx11}
%{_libdir}/%{name}-x11.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{libnamereg}
Summary:	Libraries for xkbregistry bits of %{name}
Group:		System/Libraries
Provides:	libxkbregistry = %{EVRD}
Provides:	libxkbregistry%{_isa} = %{EVRD}

%description -n %{libnamereg}
This package contains the libraries for xkbregistry bits of %{name}.

%files -n %{libnamereg}
%{_libdir}/libxkbregistry.so.%{major}
%{_libdir}/libxkbregistry.so.%{major}.*

#-----------------------------------------------------------------------------

%package -n %{libnamereg_devel}
Summary:	Header files for xkbregistry bits of %{name}
Group:		Development/C
Requires:	%{libnamereg} = %{version}-%{release}
Requires:	%{devname} = %{version}-%{release}

%description -n %{libnamereg_devel}
This package contains the header and pkg-config files for developing
with xkbregistry bits of %{name}.

%files -n %{libnamereg_devel}
%{_includedir}/xkbcommon/xkbregistry.h
%{_libdir}/libxkbregistry.so
%{_libdir}/pkgconfig/xkbregistry.pc

#-----------------------------------------------------------------------------

%package -n %{devx11}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libx11} = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{devx11}
This package contains development files for %{name}.

%files -n %{devx11}
%{_libdir}/%{name}-x11.so
%{_libdir}/pkgconfig/%{bname}-x11.pc
%{_includedir}/%{bname}/%{bname}-x11.h

#-----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Development/Other

%description doc
This package contains documentation for %{name}.

%files doc
%doc %{_docdir}/%{name}/*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14439 |21mr|libxkbfile-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xkbfile %{major}
%define develname %mklibname xkbfile -d

Name:		libxkbfile
Summary:	The xkbfile Library
Version:	1.1.2
Release:	1
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libxkbfile-%{version}.tar.xz

BuildRequires:	pkgconfig(x11)
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
The xkbfile Library.

%package -n %{libname}
Summary:	The xkbfile Library
Group:		Development/X11
Conflicts:	libxorg-x11 < 7.0
Provides:	%{name} = %{version}

%description -n %{libname}
The xkbfile Library.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} >= %{version}
Provides:	%{name}-devel = %{version}-%{release}
Conflicts:	libxorg-x11-devel < 7.0
Obsoletes:	%{_lib}xkbfile1-devel < 1.0.8
Obsoletes:	%{_lib}xkbfile-static-devel < 1.0.8

%description -n %{develname}
Development files for %{name}

%prep
%setup -qn libxkbfile-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%files -n %{libname}
%{_libdir}/libxkbfile.so.%{major}*

%files -n %{develname}
%{_libdir}/libxkbfile.so
%{_libdir}/pkgconfig/xkbfile.pc
%{_includedir}/X11/extensions/XKM.h
%{_includedir}/X11/extensions/XKBrules.h
%{_includedir}/X11/extensions/XKBconfig.h
%{_includedir}/X11/extensions/XKMformat.h
%{_includedir}/X11/extensions/XKBfile.h
%{_includedir}/X11/extensions/XKBbells.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14440 |21mr|libxkbui-1.0.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xkbui %{major}
%define devname %mklibname xkbui -d
%define sdevname %mklibname xkbui -d -s

Summary:	The xkbui library
Name:		libxkbui
Version:	1.0.2
Release:	18
License:	MIT
Group:		System/Libraries
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2
Patch0:		libxkbui-1.0.2-drop-xt.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xkbfile)

%description
The xkbui library.

#-----------------------------------------------------------

%package -n %{libname}
Summary:	The xkbui shared library
Group:		System/Libraries
Provides:	%{name} = %{version}

%description -n %{libname}
The xkbui shared library.

%files -n %{libname}
%{_libdir}/libxkbui.so.%{major}*

#-----------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(x11)
Requires:	pkgconfig(xproto)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_libdir}/libxkbui.so
%{_libdir}/pkgconfig/xkbui.pc
%{_includedir}/X11/extensions/XKBui.h

#-----------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development files for %{name}
Group:		Development/X11
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static development files for %{name}.

%files -n %{sdevname}
%{_libdir}/libxkbui.a

#-----------------------------------------------------------

%prep
%setup -q -n libxkbui-%{version}
%patch0 -p0

%build
autoreconf -fi
%configure --enable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14441 |21mr|libxklavier-5.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major	16
%define gimajor	1.0
%define libname %mklibname xklavier %{major}
%define girname %mklibname xkl-gir %{gimajor}
%define devname %mklibname -d xklavier

Summary:	X Keyboard support library
Name:		libxklavier
Version:	5.4
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gswitchit.sourceforge.net/
Source0:	http://people.freedesktop.org/~svu/libxklavier-5.4.tar.bz2

BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xkbfile)

%description
This library allows you simplify XKB-related development.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X Keyboard support library
Group:		System/Libraries

%description -n %{libname}
This library allows you simplify XKB-related development.

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Group:		System/Libraries
Summary:	GObject Introspection interface library for %{name}

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Xkl-%{gimajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc to develop libxklavier applications
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires:	%{girname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description  -n %{devname}
Libraries, include files, etc you can use to develop libxklavier
applications.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README COPYING.LIB 
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/Xkl-%{gimajor}.gir
%{_datadir}/gtk-doc/html/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
if [ ! -f configure ]; then
    CFLAGS="%{optflags}" ./autogen.sh
fi
%configure \
	--disable-static \
	--with-xkb-base=%{_datadir}/X11/xkb/ \
	--with-xkb-bin-base=%{_bindir}/

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14442 |21mr|libxml-1.8.17-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xml %{major}
%define devname %mklibname xml -d

Summary:	The libXML library
Name:		libxml
Version:	1.8.17
Release:	26
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.xmlsoft.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
# (gb) 1.8.17-2mdk add missing include
Patch0:		libxml-1.8.17-includes.patch
# (fc) 1.8.17-3mdk remove -L/usr/lib from xml-config --libs
Patch1:		libxml-1.8.17-libdir.patch
Patch2:		libxml-1.8.17-open.patch
Patch3:		libxml-1.8.17-fix-str-fmt.patch
Patch4:		libxml-1.8.17-CVE-2009-2414,2416.diff
Patch5:		libxml-1.8.17-CVE-2011-1944.diff
BuildRequires:	pkgconfig(zlib)

%description
This library allows you to manipulate XML files.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The libXML shared library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This library allows you to manipulate XML files.

%files -n %{libname}
%doc AUTHORS ChangeLog NEWS README COPYING COPYING.LIB TODO
%{_libdir}/libxml.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes and other files to develop libxml applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}xml1-devel < 1.8.17-24
Obsoletes:	%{_lib}xml1-devel < 1.8.17-24

%description -n %{devname}
This packages contains the libraries, include and other files
you can use to develop libxml applications.

%files -n %{devname}
%{_bindir}/xml-config
%{_libdir}/libxml.so
%{_libdir}/*.sh
%{_includedir}/*
%{_libdir}/pkgconfig/libxml.pc
%{_datadir}/gnome-xml/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .includes
%patch1 -p1 -b .libdir
%patch2 -p1
%patch3 -p0 -b .str
%patch4 -p0 -b .CVE-2009-2414,2416
%patch5 -p0 -b .CVE-2011-1944

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

%check
# all tests must pass
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14443 |21mr|libxml2-2.9.14-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without python
%bcond_without icu

%define major 2
%define libname %mklibname xml2_ %{major}
%define devname %mklibname xml2 -d

Summary:	Library providing XML and HTML support
Name:		libxml2
Version:	2.9.14
Release:	6
License:	MIT
Group:		System/Libraries
Url:		http://www.xmlsoft.org/
Source0:	https://download.gnome.org/sources/libxml2/2.9/libxml2-%{version}.tar.xz
Patch0:		libxml2-2.9.8-python3-unicode-errors.patch
Patch1:		libxml2-2.9.9-no-Lusrlib.patch
Patch2:		libxml2-upstream.patch
Patch3:		CVE-2022-40303-Fix-integer-overflows-with-XML_PARSE_.patch
Patch4:		CVE-2022-40304-Fix-dict-corruption-caused-by-entity-.patch
Patch5:		CVE-2023-28484-Fix-null-deref-in-xmlSchemaFixupCompl.patch
Patch6:		CVE-2023-29469-Hashing-of-empty-dict-strings-isn-t-d.patch
Patch7:		CVE-2022-2309.patch
# rediffed
Patch8:		CVE-2023-45322.patch
Patch9:		CVE-2024-25062.patch
BuildRequires:	gtk-doc
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(liblzma)
%if %{with icu}
BuildRequires:	pkgconfig(icu-i18n)
%endif
%if %{with python}
BuildRequires:	pkgconfig(python3)
%endif
BuildRequires:	pkgconfig(zlib)

%description
This library allows you to manipulate XML files. It includes support
for reading, modifying and writing XML and HTML files. There is DTDs
support: this includes parsing and validation even with complex DtDs,
either at parse time or later once the document has been modified. The
output can be a simple SAX stream or and in-memory DOM-like
representations. In this case one can use the built-in XPath and
XPointer implementation to select subnodes or ranges. A flexible
Input/Output mechanism is available, with existing HTTP and FTP modules
and combined to a URI library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries providing XML and HTML support
Group:		System/Libraries
Obsoletes:	%{mklibname xml 2} < 2.8.0
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This library allows you to manipulate XML files. It includes support
for reading, modifying and writing XML and HTML files. There is DTDs
support: this includes parsing and validation even with complex DtDs,
either at parse time or later once the document has been modified.

%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc. to develop XML and HTML applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-utils = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%if %{with icu}
# libxml/encoding.h #includes <unicode/ucnv.h>
Requires:	pkgconfig(icu-i18n)
%endif

%description -n %{devname}
Libraries, include files, etc you can use to develop XML applications.
This library allows you to manipulate XML files. It includes support
for reading, modifying and writing XML and HTML files. There is DTDs
support: this includes parsing and validation even with complex DtDs,
either at parse time or later once the document has been modified.

%files -n %{devname}
%doc Copyright TODO
%doc doc/*.html doc/*.gif doc/*.png doc/html doc/tutorial
%doc doc/libxml2-api.xml.xz
%doc %{_datadir}/gtk-doc/html/*
%{_bindir}/xml2-config
%{_libdir}/*.so
%{_libdir}/*.sh
%{_libdir}/cmake/libxml2
%{_libdir}/pkgconfig/*
%{_mandir}/man1/xml2-config*
%{_mandir}/man3/*
%{_includedir}/*
%{_datadir}/aclocal/*

#----------------------------------------------------------------------------

%package utils
Summary:	Utilities to manipulate XML files
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description utils
This packages contains utils to manipulate XML files.

%files utils
%{_bindir}/xmlcatalog
%{_bindir}/xmllint
%{_mandir}/man1/xmlcatalog*
%{_mandir}/man1/xmllint*

#----------------------------------------------------------------------------

%if %{with python}
%package -n python3-%{name}
Summary:	Python bindings for the libxml2 library
Group:		Development/Python
%rename		%{name}-python

%description -n python3-%{name}
The libxml2-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libxml2 library to manipulate XML files.

This library allows you to manipulate XML files. It includes support
for reading, modifying and writing XML and HTML files. There is DTDs
support: this includes parsing and validation even with complex DtDs,
either at parse time or later once the document has been modified.

%files -n python3-%{name}
%doc doc/*.py doc/python.html
%doc python/TODO
%doc python/libxml2class.txt
%doc python/tests/*.py
%{py3_platsitedir}/*.so
%{py3_platsitedir}/*.py*
%{py3_platsitedir}/__pycache__/*
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
%if %{with icu}
    --with-icu \
%endif
	--disable-static

%make_build

xz --text -c doc/libxml2-api.xml > doc/libxml2-api.xml.xz

%install
%make_install

# remove unpackaged files
rm -rf %{buildroot}%{_prefix}/doc %{buildroot}%{_datadir}/doc

%check
# all tests must pass
# use TARBALLURL_2="" TARBALLURL="" TESTDIRS="" to disable xstc test which are using remote tarball
make TARBALLURL_2="" TARBALLURL="" TESTDIRS="" check


# CVE-2016-3709 CVE-2016-4447 CVE-2016-4448 CVE-2016-4449
# CVE-2016-4483 CVE-2016-4658 CVE-2016-5131 CVE-2016-9596
# CVE-2016-9597 CVE-2016-9598 CVE-2022-29824

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14444 |21mr|libxml++2.6-2.40.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define oname libxml++

%define major 2
%define api 2.6
%define libname %mklibname xml++ %{api} %{major}
%define devname %mklibname xml++ %{api} -d

Summary:	C++ interface for working with XML files
Name:		libxml++%{api}
Version:	2.40.1
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		http://libxmlplusplus.sf.net/
Source0:	https://download.gnome.org/sources/%{oname}/%{url_ver}/%{oname}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(libxml-2.0)

%description
libxml++ is a C++ interface for working with XML files, using libxml
(gnome-xml) to parse and write the actual XML files. It has a simple
but complete API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for working with XML files
Group:		System/Libraries

%description -n %{libname}
libxml++ is a C++ interface for working with XML files, using libxml
(gnome-xml) to parse and write the actual XML files. It has a simple
but complete API.

%files -n %{libname}
%{_libdir}/libxml++-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{oname}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libraries from %{oname}.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README
%{_includedir}/libxml++-%{api}
%{_libdir}/libxml++-%{api}.so
%{_libdir}/pkgconfig/libxml++-%{api}.pc
%dir %{_libdir}/libxml++-%{api}
%{_libdir}/libxml++-%{api}/include/libxml++config.h

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%configure \
	--disable-static
%make_build

%install
%make_install

rm -rf %{buildroot}%{_datadir}/doc
rm -rf %{buildroot}%{_datadir}/devhelp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14445 |21mr|libxml++-3.2.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define api 3.0
%define libname %mklibname xml++ %{api} %{major}
%define devname %mklibname xml++ %{api} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	C++ interface for working with XML files
Name:		libxml++
Version:	3.2.3
Release:	5
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/
Source0:	https://download.gnome.org/sources/libxml++/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	meson
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(glibmm-2.4)

%description
libxml++ is a C++ interface for working with XML files, using libxml
(gnome-xml) to parse and write the actual XML files. It has a simple
but complete API.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary: 	C++ interface for working with XML files
Group:		System/Libraries

%description -n %{libname}
libxml++ is a C++ interface for working with XML files, using libxml
(gnome-xml) to parse and write the actual XML files. It has a simple
but complete API.

%files -n %{libname}
%{_libdir}/libxml++-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use libraries from %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README
%{_includedir}/*
%dir %{_libdir}/libxml++-%{api}/include
%{_libdir}/libxml++-%{api}/include/libxml++config.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14446 |21mr|libxmlb-0.3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname xmlb %{major}
%define	devname %mklibname xmlb -d

%define	gir_major 2.0
%define	girname %mklibname xmlb-gir %{gir_major}

Summary:	Library for querying compressed XML metadata
Name:		libxmlb
Group:		System/Libraries
Version:	0.3.14
Release:	1
License:	LGPLv2+
Url:		https://github.com/hughsie/libxmlb
Source0:	https://people.freedesktop.org/~hughsient/releases/%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
Patch0:		libxmlb-0.3.7-fix-libstemmer-include.patch
BuildRequires:	gtk-doc
BuildRequires:	meson >= 0.50.0
BuildRequires:	ninja
BuildRequires:	cmake
BuildRequires:	python3
BuildRequires:	python3-setuptools
# Needed for the self tests
BuildRequires:	shared-mime-info
BuildRequires:	libstemmer-devel
BuildRequires:	pkgconfig(glib-2.0) >= 2.45.8
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(uuid)
Requires:	shared-mime-info

%description
XML is slow to parse and strings inside the document cannot be memory mapped as
they do not have a trailing NUL char. This library takes XML source, and
converts it to a structured binary representation with a deduplicated string
table -- where the strings have the NULs included.
This allows an application to mmap the binary XML file, do an XPath query and
return some strings without actually parsing the entire document. This is all
done using (almost) zero allocations and no actual copying of the binary data.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for querying compressed XML metadata
Group:		System/Libraries

%description -n %{libname}
This library takes XML source, and converts it to a structured binary
representation with a deduplicated string table -- where the strings have the
NULs included.
This package contains the main %{name} library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/%{name}.so.%{major}*
%{_bindir}/xb-tool
%{_mandir}/man1/xb-tool.1.*

#-----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
This package contains the gobject Introspection interface description for
%{name}.

%files -n %{girname}
%doc LICENSE
%{_libdir}/girepository-1.0/Xmlb-%{gir_major}.typelib

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Provides:	xmlb-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc LICENSE NEWS README.md
%{_datadir}/gtk-doc/html/%{name}
%{_includedir}/%{name}-2/*
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/xmlb.pc
%{_datadir}/gir-1.0/Xmlb-%{gir_major}.gir

#-----------------------------------------------------------------------------

%package tests
Summary:	Files for installed tests
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description tests
This package contains the executable and data files for installed tests.

%files tests
%doc LICENSE
%dir %{_datadir}/installed-tests/%{name}
%{_datadir}/installed-tests/%{name}/%{name}.test
%{_libexecdir}/installed-tests/%{name}/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%meson \
	-Dgtkdoc=true \
	-Dstemmer=true \
	-Dtests=true

%meson_build


%install
%meson_install


%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14447 |21mr|libxmp-4.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname xmp %{major}
%define devname %mklibname xmp -d

Summary:	Extended Module Player Library
Name:		libxmp
Version:	4.4.1
Release:	5
# most of the source is LGPLv2+, exceptions:
# src/filter.c: MIT
# src/md5.*: Public domain
# src/fnmatch.*: BSD with advertising
# src/depackers/mmcmp.c: MIT
# src/depackers/ppdepack.c: Public domain
# src/depackers/unzoo.c: MIT
License:	BSD and LGPLv2+ and MIT and Public Domain
Group:		System/Libraries
Url:		http://xmp.sourceforge.net/
Source0:	https://download.sourceforge.net/xmp/%{name}-%{version}.tar.gz

%description
Libxmp is a library that renders module files to PCM data. It supports
over 90 mainstream and obscure module formats including Protracker (MOD),
Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).

Many compressed module formats are supported, including popular Unix, DOS,
and Amiga file packers including gzip, bzip2, SQSH, Powerpack, etc.

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Extended Module Player Library
Group:		System/Libraries

%description -n %{libname}
Libxmp is a library that renders module files to PCM data. It supports
over 90 mainstream and obscure module formats including Protracker (MOD),
Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).

Many compressed module formats are supported, including popular Unix, DOS,
and Amiga file packers including gzip, bzip2, SQSH, Powerpack, etc.

%files -n %{libname}
%doc README docs/Changelog docs/CREDITS
%{_libdir}/libxmp.so.%{major}
%{_libdir}/libxmp.so.%{major}.*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	xmp-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and headers for %{name}.

%files -n %{devname}
%doc docs/libxmp.html docs/libxmp.pdf docs/*.txt
%{_includedir}/xmp.h
%{_libdir}/libxmp.so
%{_libdir}/pkgconfig/libxmp.pc
%{_mandir}/man3/libxmp.3.*

#---------------------------------------------------------------------------

%prep
%setup -q

# non UTF-8 file
mv docs/Changelog docs/Changelog.old
iconv -f ISO-8859-1 -t UTF-8 -o docs/Changelog docs/Changelog.old

%build
%configure
%make V=1

%install
%makeinstall_std

# man page
install -Dpm644 docs/libxmp.3 %{buildroot}%{_mandir}/man3/libxmp.3

# fix rights
chmod 755 %{buildroot}%{_libdir}/libxmp.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14448 |21mr|libxmp-4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 4
%define	libname %mklibname xmp %{major}
%define	devname %mklibname xmp -d

Summary:	Extended Module Player Library
Name:		libxmp
Version:	4.5.0
Release:	1
# most of the source is LGPLv2+, exceptions:
# src/filter.c: MIT
# src/md5.*: Public domain
# src/fnmatch.*: BSD with advertising
# src/depackers/mmcmp.c: MIT
# src/depackers/ppdepack.c: Public domain
# src/depackers/unzoo.c: MIT
License:	BSD and LGPLv2+ and MIT and Public Domain
Group:		System/Libraries
Url:			http://xmp.sourceforge.net/
# See also: https://github.com/libxmp/libxmp
Source0:	https://download.sourceforge.net/xmp/%{name}-%{version}.tar.gz

%description
Libxmp is a library that renders module files to PCM data. It supports
over 90 mainstream and obscure module formats including Protracker (MOD),
Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).

Many compressed module formats are supported, including popular Unix, DOS,
and Amiga file packers including gzip, bzip2, SQSH, Powerpack, etc.

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Extended Module Player Library
Group:		System/Libraries

%description -n %{libname}
Libxmp is a library that renders module files to PCM data. It supports
over 90 mainstream and obscure module formats including Protracker (MOD),
Scream Tracker 3 (S3M), Fast Tracker II (XM), and Impulse Tracker (IT).

Many compressed module formats are supported, including popular Unix, DOS,
and Amiga file packers including gzip, bzip2, SQSH, Powerpack, etc.

%files -n %{libname}
%doc README docs/Changelog docs/CREDITS
%{_libdir}/%{name}.so.%{major}
%{_libdir}/%{name}.so.%{major}.*

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	xmp-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and headers for %{name}.

%files -n %{devname}
%doc docs/%{name}.html docs/%{name}.pdf docs/*.txt
%{_includedir}/xmp.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/%{name}.3.*

#---------------------------------------------------------------------------

%prep
%setup -q

# Non UTF-8 file
mv docs/Changelog docs/Changelog.old
iconv -f ISO-8859-1 -t UTF-8 -o docs/Changelog docs/Changelog.old


%build
%configure
%make


%install
%makeinstall_std

# Install man page
install -Dpm644 docs/%{name}.3 %{buildroot}%{_mandir}/man3/%{name}.3

# Fix perms
chmod 755 %{buildroot}%{_libdir}/%{name}.so.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14449 |21mr|libxmu-1.1.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define u_major 1
%define libname %mklibname xmu %{major}
%define libu %mklibname xmuu %{u_major}
%define develname %mklibname xmu -d

Name:		libxmu
Summary:	Xmu Library
Version:	1.1.3
Release:	3
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXmu-%{version}.tar.bz2

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.3.0

%description
Xmu Library.

%package -n %{libname}
Summary:	Xmu Library
Group:		Development/X11
Conflicts:	libxorg-x11 < 7.0
Provides:	%{name} = %{version}
# Compat with Fedora/RH
Provides:	libXmu = %{EVRD}

%description -n %{libname}
Xmu Library.

%package -n %{libu}
Summary:	Xmuu Library
Group:		Development/X11
Conflicts:	libxorg-x11 < 7.0
Conflicts:	%{libname} < 1.1.1-4

%description -n %{libu}
Xmuu Library.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Requires:	%{libu} = %{version}-%{release}
Provides:	libxmu-devel = %{version}-%{release}
Obsoletes:	%{_lib}xmu6-devel < 1.1.1
Obsoletes:	%{_lib}xmu-static-devel < 1.1.1
Conflicts:	libxorg-x11-devel < 7.0

%description -n %{develname}
Development files for %{name}.

%prep
%setup -qn libXmu-%{version}

%build
autoreconf -ifs
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXmu.so.%{major}*

%files -n %{libu}
%{_libdir}/libXmuu.so.%{u_major}*

%files -n %{develname}
%{_libdir}/libXmuu.so
%{_libdir}/libXmu.so
%{_libdir}/pkgconfig/xmuu.pc
%{_libdir}/pkgconfig/xmu.pc
%{_includedir}/X11/Xmu/CloseHook.h
%{_includedir}/X11/Xmu/Xct.h
%{_includedir}/X11/Xmu/Xmu.h
%{_includedir}/X11/Xmu/WidgetNode.h
%{_includedir}/X11/Xmu/Atoms.h
%{_includedir}/X11/Xmu/Misc.h
%{_includedir}/X11/Xmu/Converters.h
%{_includedir}/X11/Xmu/StdCmap.h
%{_includedir}/X11/Xmu/ExtAgent.h
%{_includedir}/X11/Xmu/StdSel.h
%{_includedir}/X11/Xmu/WinUtil.h
%{_includedir}/X11/Xmu/DisplayQue.h
%{_includedir}/X11/Xmu/Initer.h
%{_includedir}/X11/Xmu/Lookup.h
%{_includedir}/X11/Xmu/SysUtil.h
%{_includedir}/X11/Xmu/Drawing.h
%{_includedir}/X11/Xmu/Error.h
%{_includedir}/X11/Xmu/EditresP.h
%{_includedir}/X11/Xmu/CvtCache.h
%{_includedir}/X11/Xmu/Editres.h
%{_includedir}/X11/Xmu/CurUtil.h
%{_includedir}/X11/Xmu/CharSet.h
%{_includedir}/X11/Xmu/WhitePoint.h
%{_datadir}/doc/libXmu

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14450 |21mr|libxmu-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define u_major 1
%define libname %mklibname xmu %{major}
%define libu %mklibname xmuu %{u_major}
%define develname %mklibname xmu -d

Name:		libxmu
Summary:	Xmu Library
Version:	1.1.4
Release:	1
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXmu-%{version}.tar.xz

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.3.0

%description
Xmu Library.

%package -n %{libname}
Summary:	Xmu Library
Group:		Development/X11
Conflicts:	libxorg-x11 < 7.0
Provides:	%{name} = %{version}

%description -n %{libname}
Xmu Library.

%package -n %{libu}
Summary:	Xmuu Library
Group:		Development/X11
Conflicts:	libxorg-x11 < 7.0
Conflicts:	%{libname} < 1.1.1-4

%description -n %{libu}
Xmuu Library.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Requires:	%{libu} = %{version}-%{release}
Provides:	libxmu-devel = %{version}-%{release}
Obsoletes:	%{_lib}xmu6-devel < 1.1.1
Obsoletes:	%{_lib}xmu-static-devel < 1.1.1
Conflicts:	libxorg-x11-devel < 7.0

%description -n %{develname}
Development files for %{name}.

%prep
%setup -qn libXmu-%{version}

%build
autoreconf -ifs
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXmu.so.%{major}*

%files -n %{libu}
%{_libdir}/libXmuu.so.%{u_major}*

%files -n %{develname}
%{_libdir}/libXmuu.so
%{_libdir}/libXmu.so
%{_libdir}/pkgconfig/xmuu.pc
%{_libdir}/pkgconfig/xmu.pc
%{_includedir}/X11/Xmu/CloseHook.h
%{_includedir}/X11/Xmu/Xct.h
%{_includedir}/X11/Xmu/Xmu.h
%{_includedir}/X11/Xmu/WidgetNode.h
%{_includedir}/X11/Xmu/Atoms.h
%{_includedir}/X11/Xmu/Misc.h
%{_includedir}/X11/Xmu/Converters.h
%{_includedir}/X11/Xmu/StdCmap.h
%{_includedir}/X11/Xmu/ExtAgent.h
%{_includedir}/X11/Xmu/StdSel.h
%{_includedir}/X11/Xmu/WinUtil.h
%{_includedir}/X11/Xmu/DisplayQue.h
%{_includedir}/X11/Xmu/Initer.h
%{_includedir}/X11/Xmu/Lookup.h
%{_includedir}/X11/Xmu/SysUtil.h
%{_includedir}/X11/Xmu/Drawing.h
%{_includedir}/X11/Xmu/Error.h
%{_includedir}/X11/Xmu/EditresP.h
%{_includedir}/X11/Xmu/CvtCache.h
%{_includedir}/X11/Xmu/Editres.h
%{_includedir}/X11/Xmu/CurUtil.h
%{_includedir}/X11/Xmu/CharSet.h
%{_includedir}/X11/Xmu/WhitePoint.h
%{_datadir}/doc/libXmu

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14451 |21mr|libxp-1.0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname xp %{major}
%define devname %mklibname xp -d
%define sdevname %mklibname xp -d -s

Summary:	X Print library
Name:		libxp
Version:	1.0.3
Release:	9
License:	MIT
Group:		System/Libraries
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXp-%{version}.tar.bz2
Patch0:		libXp-1.0.3-add-printproto.patch
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xproto)

%description
libXp provides public APIs to allow client applications to render to
non-display devices.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X Print shared library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
libXp provides public APIs to allow client applications to render to
non-display devices.

%files -n %{libname}
%{_libdir}/libXp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(xproto)
Provides:	%{name}-devel = %{EVRD}
Conflicts:	x11-proto-devel < 2018.4

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%exclude %{_includedir}/X11/extensions/Print.h
%exclude %{_includedir}/X11/extensions/Printstr.h
%{_libdir}/libXp.so
%{_libdir}/pkgconfig/printproto.pc
%{_libdir}/pkgconfig/xp.pc
%{_mandir}/man3/Xp*.3*
%{_mandir}/man3/libXp.3*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development files for %{name}
Group:		Development/X11
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static development files for %{name}

%files -n %{sdevname}
%{_libdir}/libXp.*a

#----------------------------------------------------------------------------

%prep
%setup -qn libXp-%{version}
%patch0 -p1

%build
autoreconf -fi
%configure --enable-static
%make

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14452 |21mr|libxpm-3.5.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname xpm %{major}
%define devname %mklibname xpm -d

Summary:	X Pixmap Library
Name:		libxpm
Version:	3.5.17
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXpm-%{version}.tar.xz
BuildRequires:	ncompress
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
The xpm package contains the XPM pixmap library for the X Window
System. The XPM library allows applications to display color,
pixmapped images, and is used by many popular X programs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	X Pixmap Library
Group:		Development/X11
Requires:	gzip
Requires:	ncompress
Provides:	%{name} = %{version}
# Compat with Fedora/RH
Provides:	libXpm = %{EVRD}

%description -n %{libname}
The xpm package contains the XPM pixmap library for the X Window
System. The XPM library allows applications to display color,
pixmapped images, and is used by many popular X programs.

%files -n %{libname}
%{_libdir}/libXpm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(x11)
Provides:	%{name}-devel = %{EVRD}
Provides:	xpm-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_bindir}/cxpm
%{_bindir}/sxpm
%{_libdir}/libXpm.so
%{_libdir}/pkgconfig/xpm.pc
%{_includedir}/X11/xpm.h
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%prep
%autosetup -n libXpm-%{version} -p1

%build
%configure \
    --x-includes=%{_includedir} \
    --x-libraries=%{_libdir} \
    --disable-static

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14453 |21mr|libxpresent-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     rname libXpresent
%define     debug_package %{nil}
%define     major 1
%define     libname %mklibname xpresent %{major}
%define     devname %mklibname xpresent -d

Summary:	Xlib-compatible API for the Present extension
Name:		libxpresent
Version:	1.0.1
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://www.x.org
Source0:	http://xorg.freedesktop.org/archive/individual/lib/%{rname}-%{version}.tar.xz

BuildRequires: libtool
BuildRequires: gettext
BuildRequires: pkgconfig(xproto)
BuildRequires: pkgconfig(presentproto)
BuildRequires: pkgconfig(xextproto)
BuildRequires: pkgconfig(x11)
BuildRequires: x11-util-macros
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xfixes)
BuildRequires: pkgconfig(xrandr)


%description
This package contains header files and
documentation for the Present extension.
Library and server implementations are separate.

%package -n %{libname}
Summary:        Development files for %{name}
Group:		    Development/X11
Provides:       %{name} = %{EVRD}

%description    -n %{libname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libXpresent.so.%{major}*

#################################################################

%package        -n %{devname}
Summary:        Development files for %{name}
Group:		    Development/X11
Requires:       %{libname} = %{EVRD}
Provides:	    libxpresent-devel = %{EVRD}

%description    -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/X11/extensions/Xpresent.h
%{_libdir}/libXpresent.so
%{_libdir}/pkgconfig/xpresent.pc
%{_mandir}/man3/*.3*

#------------------------------------------------------------------

%prep
%setup -qn %{rname}-%{version}

%build
%configure \
 --disable-static
%make

%install
%make DESTDIR=%{buildroot} install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14454 |21mr|libxrandr-1.5.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname xrandr %{major}
%define devname %mklibname xrandr -d

Summary:	X RandR Library
Name:		libxrandr
Version:	1.5.2
Release:	3
Group:		Development/X11
License:	MIT
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXrandr-%{version}.tar.bz2
BuildRequires:	pkgconfig(x11) >= 1.6.0
BuildRequires:	pkgconfig(xext) >= 1.0.0
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xrender) >= 0.9.0.2

%description
X RandR Library.

%package -n %{libname}
Summary:	X RandR Library
Group:		Development/X11
Provides:	%{name} = %{EVRD}
# compat with Fedora/RH
Provides:	libXrandr%{_isa} = %{EVRD}
Provides:	libXrandr = %{EVRD}

%description -n %{libname}
X RandR main library.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Provides:	libxrandr-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXrandr-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXrandr.so.%{major}*

%files -n %{devname}
%{_libdir}/libXrandr.so
%{_libdir}/pkgconfig/xrandr.pc
%{_includedir}/X11/extensions/Xrandr.h
%{_mandir}/man3/XRR*.3*
%{_mandir}/man3/Xrandr.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14455 |21mr|libxrender-0.9.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xrender %{major}
%define devname %mklibname xrender -d

Summary:	X Render Library
Name:		libxrender
Version:	0.9.11
Release:	1
Group:		Development/X11
License:	MIT
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXrender-%{version}.tar.xz

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)

%description
X Render Library.

%package -n %{libname}
Summary:	X Render Library
Group:		Development/X11
Provides:	%{name} = %{EVRD}
# compat with Fedora/RH
Provides:	libXrender%{_isa} = %{EVRD}
Provides:	libXrender = %{EVRD}

%description -n %{libname}
X Render Library.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	libxrender-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXrender-%{version}


%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make_build

%install
%make_install

%files -n %{libname}
%{_libdir}/libXrender.so.%{major}*

%files -n %{devname}
%{_libdir}/libXrender.so
%{_libdir}/pkgconfig/xrender.pc
%{_includedir}/X11/extensions/Xrender.h
%dir %{_docdir}/libXrender
%{_docdir}/libXrender/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14456 |21mr|libxres-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xres %{major}
%define develname %mklibname xres -d

Name:		libxres
Summary:	X Resource Information Extension Library
Version:	1.2.2
Release:	1
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXres-%{version}.tar.xz

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
X Resource Information Extension Library

%package -n %{libname}
Summary:	X Resource Information Extension Library
Group:		Development/X11
Conflicts:	libxorg-x11 < 7.0
Provides:	%{name} = %{version}

%description -n %{libname}
X Resource Information Extension Library

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	libxres-devel = %{version}-%{release}
Obsoletes:	%{_lib}xres1-devel < 1.0.6
Obsoletes:	%{_lib}xres-static-devel < 1.0.6
Conflicts:	libxorg-x11-devel < 7.0

%description -n %{develname}
Development files for %{name}

%prep
%setup -qn libXres-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXRes.so.%{major}*

%files -n %{develname}
%{_libdir}/libXRes.so
%{_libdir}/pkgconfig/xres.pc
%{_includedir}/X11/extensions/XRes.h
%{_mandir}/man3/XRes*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14457 |21mr|libxscrnsaver-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xscrnsaver %{major}
%define develname %mklibname xscrnsaver -d

Name:		libxscrnsaver
Summary:	The XScrnSaver Library
Version:	1.2.4
Release:	1
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXScrnSaver-%{version}.tar.xz

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	x11-proto-devel >= 7.4-25
BuildRequires:	x11-util-macros >= 1.0.1

%description
The XScrnSaver Library.

%package -n %{libname}
Summary:	The XScrnSaver Library
Group:		Development/X11
Provides:	%{name} = %{EVRD}
# compat with Fedora/RH
Provides:	libXScrnSaver = %{EVRD}

%description -n %{libname}
The XScrnSaver Library.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	libxscrnsaver-devel = %{version}-%{release}

%description -n %{develname}
Development files for %{name}.

%prep
%setup -qn libXScrnSaver-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXss.so.%{major}*

%files -n %{develname}
%{_libdir}/libXss.so
%{_libdir}/pkgconfig/xscrnsaver.pc
%{_mandir}/man3/XScreenSaver*
%{_mandir}/man3/Xss*
%{_includedir}/X11/extensions/scrnsaver.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14458 |21mr|libxshmfence-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xshmfence %{major}
%define devname %mklibname xshmfence -d

Name:		libxshmfence
Version:	1.3.2
Release:	1
Summary:	Shared memory fence support library for X11, needed for DRI3
URL:		http://libxshmfence.sf.net/
License:	GPL
Group:		System/Libraries
Source0:	https://www.x.org/releases/individual/lib/%{name}-%{version}.tar.xz

BuildRequires:	x11-proto-devel
BuildRequires:	x11-util-macros

%description
Shared memory fence support library for X11, needed for DRI3

%package -n 	%{libname}
Summary: 	Shared memory fence support library for X11, needed for DRI3
Group:		System/Libraries
Provides: 	%{name} = %{version}

%description -n %{libname}
Shared memory fence support library for X11, needed for DRI3

%package -n 	%{devname}
Summary: 	Development files for %{name}
Group: 		Development/C
Requires: 	%{libname} = %{EVRD}

%description -n %{devname}
Development files (headers etc.) for %{name}.

%prep
%setup -q

%build
autoreconf -v -i -f
%configure \
	--disable-static

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14459 |21mr|libxslt-1.1.35-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define exslt_major 0
%define libname %mklibname xslt %{major}
%define libename %mklibname exslt %{exslt_major}
%define devname %mklibname xslt -d
# not ported to py3
%bcond_without python3

Summary:	Library providing XSLT support
Name:		libxslt
Version:	1.1.35
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://xmlsoft.org/XSLT/
Source0:  https://download.gnome.org/sources/libxslt/1.1/%{name}-%{version}.tar.xz
BuildRequires:	libtool
#BuildRequires:	python3-libxml2
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libxml-2.0)

%description
This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism.

#----------------------------------------------------------------------------

%package -n xsltproc
Summary:	XSLT processor using libxslt
Group:		System/Libraries
Obsoletes:	libxslt-proc < 1.1.28
Provides:	libxslt-proc = %{EVRD}

%description -n xsltproc
This package provides an XSLT processor based on the libxslt C library.
It allows to transform XML files into other XML files (or HTML, text, ...)
using the standard XSLT stylesheet transformation mechanism.

%files -n xsltproc
%doc AUTHORS NEWS README Copyright FEATURES TODO
%{_bindir}/xsltproc
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing XSLT support
Group:		System/Libraries

%description  -n %{libname}
This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism.

A xslt processor based on this library, named xsltproc, is provided by
the xsltproc package.

%files -n %{libname}
%{_libdir}/libxslt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libename}
Summary:	Library providing XSLT support
Group:		System/Libraries
Conflicts:	%{_lib}xslt1 < 1.1.26-7

%description  -n %{libename}
This package contains the exslt shared library.

%files -n %{libename}
%{_libdir}/libexslt.so.%{exslt_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc. to develop XML and HTML applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libename} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This C library allows to transform XML files into other XML files
(or HTML, text, ...) using the standard XSLT stylesheet transformation
mechanism.

%files -n %{devname}
%doc doc/*.html doc/tutorial doc/html
%doc %{_datadir}/gtk-doc/
%{_mandir}/man3/*
%{_libdir}/lib*.so
%{_libdir}/*.sh
%{_includedir}/*
%{_bindir}/xslt-config
%{_libdir}/pkgconfig/*
%{_datadir}/aclocal/*
%{_libdir}/cmake/libxslt/*.cmake

#----------------------------------------------------------------------------
%if %{with python3}
%package -n python3-%{name}
Summary:	Python bindings for the libxslt library
Group:		Development/Python
Requires:	python3-libxml2
Obsoletes:	%{name}-python < 1.1.28
BuildRequires:	pkgconfig(python3)

%description -n python3-%{name}
The libxslt-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libxslt library to apply XSLT transformations.

This library allows to parse sytlesheets, uses the libxml2-python
to load and save XML and HTML files. Direct access to XPath and
the XSLT transformation context are possible to extend the XSLT language
with XPath functions written in Python.

%files -n python3-%{name}
%doc AUTHORS README Copyright FEATURES python/examples python/libxsltclass.txt
%{py3_platsitedir}/*.so
%{py3_platsitedir}/*.py*
%{py3_platsitedir}/__pycache__*

#----------------------------------------------------------------------------
%endif

%prep
%autosetup -p1

%if %{with python3}
mkdir -p python/examples
cp -a python/tests/*.{py,xml,xsl} python/examples
%endif

%build
autoreconf -fi
%configure \
	--disable-static
%make_build

%install
%make_install

# remove unpackaged files
rm -rf %{buildroot}%{_docdir}/%{name}-%{version} \
	%{buildroot}%{_docdir}/%{name}-python-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14460 |21mr|libxt-1.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libxt %mklibname xt %{major}
%define develname %mklibname xt -d

Summary:	X Toolkit Intrinsics library
Name:		libxt
Version:	1.2.1
Release:	3
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXt-%{version}.tar.bz2
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
X Toolkit Intrinsics library used to build older generation toolkits such
as Motif & Xaw.

%package -n %{libxt}
Summary:	X Toolkit Intrinsics library
Group:		Development/X11
# Compat with Fedora/RH
Provides:	libXt = %{EVRD}

%description -n %{libxt}
X Toolkit Intrinsics library used to build older generation toolkits such
as Motif & Xaw.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libxt} = %{version}-%{release}
Provides:	libxt-devel = %{version}-%{release}
Obsoletes:	%{_lib}xt6-devel < 1.1.3
Obsoletes:	%{_lib}xt-static-devel < 1.1.3

%description -n %{develname}
Development files for %{name}.

%prep
%setup -qn libXt-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libxt}
%{_libdir}/libXt.so.%{major}*

%files -n %{develname}
%{_libdir}/libXt.so
%{_libdir}/pkgconfig/xt.pc
%{_includedir}/X11/Core.h
%{_includedir}/X11/VarargsI.h
%{_includedir}/X11/RectObj.h
%{_includedir}/X11/TranslateI.h
%{_includedir}/X11/Vendor.h
%{_includedir}/X11/CallbackI.h
%{_includedir}/X11/ResConfigP.h
%{_includedir}/X11/IntrinsicI.h
%{_includedir}/X11/IntrinsicP.h
%{_includedir}/X11/ConstrainP.h
%{_includedir}/X11/Constraint.h
%{_includedir}/X11/InitialI.h
%{_includedir}/X11/EventI.h
%{_includedir}/X11/ObjectP.h
%{_includedir}/X11/Xtos.h
%{_includedir}/X11/CreateI.h
%{_includedir}/X11/Intrinsic.h
%{_includedir}/X11/CoreP.h
%{_includedir}/X11/Object.h
%{_includedir}/X11/CompositeP.h
%{_includedir}/X11/HookObjI.h
%{_includedir}/X11/RectObjP.h
%{_includedir}/X11/ConvertI.h
%{_includedir}/X11/Shell.h
%{_includedir}/X11/ShellI.h
%{_includedir}/X11/ShellP.h
%{_includedir}/X11/StringDefs.h
%{_includedir}/X11/VendorP.h
%{_includedir}/X11/SelectionI.h
%{_includedir}/X11/PassivGraI.h
%{_includedir}/X11/Composite.h
%{_includedir}/X11/ThreadsI.h
%{_includedir}/X11/ResourceI.h
%{_mandir}/man3/Xt*.3*
%{_mandir}/man3/Menu*
%{_docdir}/libXt/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14461 |21mr|libxtrap-1.0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname xtrap %{major}
%define devname %mklibname xtrap -d
%define sdevname %mklibname xtrap -d -s

Summary:	X Trap Library
Name:		libxtrap
Version:	1.0.1
Release:	19
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXTrap-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xt)

%description
X Trap Library.

#-----------------------------------------------------------

%package -n %{libname}
Summary:	X Trap shared library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
X Trap shared library.

%files -n %{libname}
%{_libdir}/libXTrap.so.%{major}*

#-----------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(xproto)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%{_libdir}/libXTrap.so
%{_libdir}/pkgconfig/xtrap.pc

#-----------------------------------------------------------

%prep
%setup -qn libXTrap-%{version}

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14462 |21mr|libxtst-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname xtst %{major}
%define devname %mklibname xtst -d

Summary:	The Xtst Library
Name:		libxtst
Version:	1.2.4
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXtst-%{version}.tar.xz

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
BuildRequires:	x11-proto-devel >= 7.5
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	xmlto
BuildRequires:	docbook-dtd412-xml

%description
The Xtst Library.

%package -n %{libname}
Summary:	The Xtst Library
Group:		Development/X11
# compat with Fedora/RH
Provides:	libXtst = %{EVRD}

%description -n %{libname}
The Xtst Library.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Requires:	pkgconfig(xi)
Provides:	libxtst-devel = %{version}-%{release}
Obsoletes:	%{_lib}xtst6-devel < 1.2.1
Obsoletes:	%{_lib}xtst-static-devel < 1.2.1

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXtst-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXtst.so.%{major}*

%files -n %{devname}
%{_libdir}/libXtst.so
%{_libdir}/pkgconfig/xtst.pc
%{_includedir}/X11/extensions/*.h
%{_mandir}/man3/XTest*
%{_datadir}/doc/libXtst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14463 |21mr|libxv-1.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xv %{major}
%define devname %mklibname xv -d

Summary:	The Xv Library
Name:		libxv
Version:	1.0.12
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXv-%{version}.tar.xz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
The  Xv  extension provides support for video adaptors attached to an X
display. Clients use Xv to gain access and manage sharing of a
display's video resources.

%package -n %{libname}
Summary:	The Xv Library
Group:		Development/X11

%description -n %{libname}
The  Xv  extension provides support for video adaptors attached to an X
display. Clients use Xv to gain access and manage sharing of a
display's video resources.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{_lib}xv1-devel < 1.0.7
Obsoletes:	%{_lib}xv-static-devel < 1.0.7

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXv-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXv.so.%{major}*

%files -n %{devname}
%{_libdir}/libXv.so
%{_libdir}/pkgconfig/xv.pc
%{_includedir}/X11/extensions/Xvlib.h
%{_mandir}/man3/Xv*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14464 |21mr|libxvmc-1.0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xvmc %{major}
%define develname %mklibname xvmc -d

Name: libxvmc
Summary:  The XvMC Library
Version:	1.0.13
Release:	1
Group: Development/X11
License: MIT
URL: http://xorg.freedesktop.org
Source0: http://xorg.freedesktop.org/releases/individual/lib/libXvMC-%{version}.tar.xz

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xext) >= 1.0.0
BuildRequires: pkgconfig(xv) >= 1.0.1
BuildRequires: x11-proto-devel >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
The XvMC Library

%package -n %{libname}
Summary:  The XvMC Library
Group: Development/X11
Conflicts: libxorg-x11 < 7.0
Provides: %{name} = %{version}

%description -n %{libname}
The XvMC Library

%package -n %{develname}
Summary: Development files for %{name}
Group: Development/X11

Requires: %{libname} = %{version}-%{release}
Provides: libxvmc-devel = %{version}-%{release}
Obsoletes: %{_lib}xvmc1-devel < 1.0.7
Obsoletes: %{_lib}xvmc-static-devel < 1.0.7
Conflicts: libxorg-x11-devel < 7.0

%description -n %{develname}
Development files for %{name}

%prep
%setup -qn libXvMC-%{version}

%build
export LIBS="-ldl"

%configure \
	--disable-static \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXvMC.so.%{major}*
%{_libdir}/libXvMCW.so.%{major}*

%files -n %{develname}
%{_libdir}/libXvMCW.so
%{_libdir}/libXvMC.so
%{_libdir}/pkgconfig/xvmc.pc
%{_libdir}/pkgconfig/xvmc-wrapper.pc
%{_includedir}/X11/extensions/XvMClib.h
%{_includedir}/X11/extensions/vldXvMC.h
%dir %{_docdir}/libXvMC
%{_docdir}/libXvMC/XvMC_API.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14465 |21mr|libxxf86dga-1.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xxf86dga %{major}
%define devname %mklibname xxf86dga -d

Summary:	XFree86 Direct Graphics Access Extension Library
Name:		libxxf86dga
Version:	1.1.6
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXxf86dga-%{version}.tar.xz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	x11-proto-devel >= 7.5
BuildRequires:	x11-util-macros >= 1.0.1

%description
XFree86 Direct Graphics Access Extension Library.

%package -n %{libname}
Summary:	XFree86 Direct Graphics Access Extension Library
Group:		Development/X11

%description -n %{libname}
XFree86 Direct Graphics Access Extension Library.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}xxf86dga1-devel < 1.1.3
Obsoletes:	%{_lib}xxf86dga-static-devel < 1.1.3

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXxf86dga-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXxf86dga.so.%{major}*

%files -n %{devname}
%{_libdir}/libXxf86dga.so
%{_libdir}/pkgconfig/xxf86dga.pc
%{_includedir}/X11/extensions/*.h
%{_mandir}/man3/XDGA*.3*
%{_mandir}/man3/XF86DGA.3*
%{_mandir}/man3/XFree86-DGA.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14466 |21mr|libxxf86misc-1.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1
%define libname 	%mklibname xxf86misc %{major}
%define devname 	%mklibname xxf86misc -d

Name:		libxxf86misc
Summary:	XFree86 Misc Extension Library
Version:	1.0.4
Release:	2
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXxf86misc-%{version}.tar.bz2

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xext) >= 1.0.0
BuildRequires: x11-proto-devel >= 7.7
BuildRequires: x11-util-macros >= 1.0.1

%description
XFree86 Misc Extension Library.

%package -n %{libname}
Summary: 	XFree86 Misc Extension Library
Group: 		Development/X11
Provides:	%{name} = %{version}

%description -n %{libname}
XFree86 Misc Extension Library.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}xxf86misc-devel < 1.0.3
Obsoletes:	%{_lib}xxf86misc-static-devel <= 1.0.3

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXxf86misc-%{version}

%build
%configure	\
	--disable-static \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXxf86misc.so.%{major}*

%files -n %{devname}
%{_libdir}/libXxf86misc.so
%{_libdir}/pkgconfig/xxf86misc.pc
%{_mandir}/man3/XF86Misc*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14467 |21mr|libxxf86vm-1.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xxf86vm %{major}
%define devname %mklibname xxf86vm -d

Summary:	XFree86 Video Mode Extension Library
Name:		libxxf86vm
Version:	1.1.5
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/libXxf86vm-%{version}.tar.xz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	x11-proto-devel >= 7.5
BuildRequires:	x11-util-macros >= 1.0.1

%description
XFree86 Video Mode Extension Library.

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		Development/X11

%description -n %{libname}
XFree86 Video Mode Extension Library.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/X11
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}xxf86vm1-devel < 1.1.2
Obsoletes:	%{_lib}xxf86vm-static-devel < 1.1.2

%description -n %{devname}
Development files for %{name}.

%prep
%setup -qn libXxf86vm-%{version}

%build
%configure \
	--disable-static \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/libXxf86vm.so.%{major}*

%files -n %{devname}
%{_libdir}/libXxf86vm.so
%{_libdir}/pkgconfig/xxf86vm.pc
%{_includedir}/X11/extensions/*.h
%{_mandir}/man3/XF86VidMode*.*
%{_mandir}/man3/XF86VM.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14468 |21mr|libyubikey-1.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname	%mklibname yubikey %{major}
%define	develname %mklibname -d yubikey

Summary:	Decrypting and parsing Yubikey One-Time Passwords Low-level library
Name:		libyubikey
Version:	1.13
Release:	1
Group:		System/Libraries
License:	BSD
Url:		https://developers.yubico.com/yubico-c/
Source0:	https://developers.yubico.com/yubico-c/Releases/%{name}-%{version}.tar.gz
Source1:	https://developers.yubico.com/yubico-c/Releases/%{name}-%{version}.tar.gz.sig
BuildRequires:	autoconf
BuildRequires:	automake >= 1.11
BuildRequires:	asciidoc
BuildRequires:	libtool

%description
Low-level library for decrypting and parsing Yubikey One-Time Passwords (OTP),
for C.

#-----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Decrypting and parsing Yubikey One-Time Passwords Low-level library
Group:		System/Libraries

%description -n	%{libname}
This is a library written in C to validate a Yubikey OTP against the Yubico
online server.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING NEWS README
%{_libdir}/*.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for the libyubikey library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n	%{develname}
Low-level library for decrypting and parsing Yubikey One-Time Passwords (OTP),
for C. This package contains the files needed to use libyubikey

%files -n %{develname}
%doc COPYING
%{_includedir}/*
%{_libdir}/*.so

#-----------------------------------------------------------------------------

%package tools
Summary:	Command line tools for libyubikey
Group:		System/Libraries

%description tools
Low-level library for decrypting and parsing Yubikey One-Time Passwords (OTP),
for C. This package contains various tools for libyubikey.

%files tools
%doc COPYING
%{_bindir}/%{name}-modhex
%{_bindir}/%{name}-ykgenerate
%{_bindir}/%{name}-ykparse
%{_mandir}/man1/%{name}-modhex.1*
%{_mandir}/man1/%{name}-ykgenerate.1*
%{_mandir}/man1/%{name}-ykparse.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}


%build
%configure --disable-static
%make


%install
%makeinstall_std

# Rename the too generic file names
for i in modhex ykgenerate ykparse; do
	mv %{buildroot}%{_bindir}/$i %{buildroot}%{_bindir}/%{name}-$i
	mv %{buildroot}%{_mandir}/man1/$i.1 %{buildroot}%{_mandir}/man1/%{name}-$i.1
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14469 |21mr|libyui-4.2.16-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major     15
%define libname   %mklibname yui %{major}
%define develname %mklibname yui -d

#--------------------------------------------------------
# Package libyui-ncurses
%define yui_ncurses_name libyui-ncurses

%define libncurses %mklibname yui-ncurses %{major}
%define devncurses %mklibname yui-ncurses -d
#--------------------------------------------------------
# Package libyui-qt
%define yui_qt_name libyui-qt

%define libqt %mklibname yui-qt %{major}
%define devqt %mklibname -d yui-qt
#--------------------------------------------------------

# bootstrap build with/without libyui-mga
# without = with libyui-mga
# with = without libyui-mga
%bcond_without mga

Name:           libyui
Version:        4.2.16
Release:        4
Summary:        YaST2 User Interface Engine
Group:          System/Libraries
License:        LGPLv2+
URL:            https://github.com/libyui/libyui
Source0:        https://github.com/libyui/libyui/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:         00bindings_perl_pthread_dep.patch

BuildRequires:  cmake
BuildRequires:  boost-devel
BuildRequires:  libtool
BuildRequires:  perl-devel
BuildRequires:  pkgconfig(ruby)
BuildRequires:  rubygems
BuildRequires:  swig
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(libpng)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires: pkgconfig(ncursesw)
BuildRequires: pkgconfig(ncurses)

%if %{with mga}
BuildRequires:  pkgconfig(libyui-mga)
%endif

%description
libYUI is a library written entirely in C++ to provide an abstraction layer for
Qt, GTK and ncurses UI frameworks. This means that a single code in YUI can be
used to produce outputs using any of the 3 UI frameworks listed above. This
library was (and still is) used to create the YaST2 User Interface.

#----------------------------------------------------------
# libyui

%package -n %libname
Summary:      YaST2 User Interface Engine
Group:        System/Libraries
Provides:     %{name} = %{EVRD}

%description -n %libname
This package contains the library needed to run programs dynamically linked
with libyui.

%files -n %libname
%doc COPYING* README.md
%dir %{_libdir}/yui
%dir %{_datadir}/libyui
%{_libdir}/libyui.so.%{major}{,.*}


#----------------------------------------------------------
# libyui-devel

%package -n %develname
Summary:      libYUI, YaST2 User Interface Engine - header files
Group:        Development/C++
Requires:     %{libname} >= %{version}
Requires:     boost-devel
Provides:     %{name}-devel = %{EVRD}
Provides:     yui-devel = %{EVRD}

%description -n %develname
This is the development package for libyui user interface engine that provides
the abstraction from graphical user interfaces (Qt, Gtk) and text based user
interfaces (ncurses).

%files -n %develname
%{_libdir}/libyui.so
%{_libdir}/pkgconfig/libyui.pc
%{_includedir}/yui/*.h
%{_datadir}/libyui/buildtools

#-----------------------------------------------------------------------
# libyui-qt

%package -n %libqt
Summary:        Libyui - Qt (graphical) user interface
Group:          System/Libraries
Requires:       %{_lib}qt5x11extras5
Provides:       %{yui_qt_name} = %{EVRD}

%description -n %libqt
This package contains the Qt (graphical) user interface component for libyui.

%files -n %libqt
%doc COPYING*
%{_libdir}/yui/libyui-qt.so.%{major}{,.*}

#-----------------------------------------------------------------------
# libyui-qt-devel

%package -n %devqt
Summary:        Libyui - Qt (graphical) user interface header files
Group:          Development/KDE and Qt
Requires:       libyui-devel
Requires:       %{yui_qt_name} = %{EVRD}
Provides:       yui-qt-devel = %{EVRD}

%description -n %devqt
This package contains the header files for the Qt based user interface
component for libyui.

This package is not needed to develop libyui-based applications, only to
develop extensions for libyui-qt.

%files -n %devqt
%{_includedir}/yui/qt
%{_libdir}/yui/libyui-qt*.so
%{_libdir}/pkgconfig/libyui-qt.pc


#-----------------------------------------------------------------------
# libyui-ncurses

%package -n %libncurses
Summary:        Libyui - NCurses (text based) user interface
Group:          System/Libraries
Provides:       %{yui_ncurses_name} = %{EVRD}

%description -n %libncurses
This package contains the NCurses (text based) user interface component for
libyui.

%files -n %libncurses
%doc COPYING*
%{_libdir}/yui/libyui-ncurses.so.%{major}{,.*}

#-----------------------------------------------------------------------
# libyui-ncurses-devel

%package -n %devncurses
Summary:        Libyui - Header fles for the NCurses (text based) user interface
Group:          Development/Other
Requires:       libyui-devel
Requires:       %{yui_ncurses_name} = %{EVRD}
Provides:       yui-ncurses-devel = %{EVRD}

%description -n %devncurses
This package contains the header files for the NCurses (text based) user
interface component for libyui.

This package is not needed to develop libyui-based applications, only to
develop extensions for libyui-ncurses.

%files -n %devncurses
%{_libdir}/yui/libyui-ncurses*.so
%{_includedir}/yui/ncurses
%{_libdir}/pkgconfig/libyui-ncurses.pc


#----------------------------------------------------------
# libyui-ncurses-tools

%package -n %{yui_ncurses_name}-tools

Summary:        Libyui - tools for the NCurses (text based) user interface
Group:          System/Libraries
Requires:       screen

%description -n %{yui_ncurses_name}-tools
This package contains tools for the NCurses (text based) user interface
component for libyui:

libyui-terminal - useful for testing on headless machines

%files -n %{yui_ncurses_name}-tools
%{_bindir}/libyui-terminal

#----------------------------------------------------------
# ruby-yui

%package -n ruby-yui
License:        GPLv2+
Summary:        Ruby bindings for libyui
Group:          Development/Ruby

%description -n ruby-yui
This package provides Ruby language bindings to access functions of libyui, the
YaST User Interface engine that provides the abstraction from graphical user
interfaces (Qt, Gtk) and text based user interfaces (ncurses).

%files -n ruby-yui
%doc libyui-bindings/swig/ruby/examples/*.rb
%{ruby_vendorarchdir}/_yui.so

#----------------------------------------------------------
# python3-yui

%package -n python3-yui
License:        GPLv2+
Summary:        Python 3 bindings for libyui
Group:          Development/Python
%{?python_provide:%python_provide python3-yui}

%description -n python3-yui
This package provides Python 3 language bindings to access functions of libyui,
the YaST User Interface engine that provides the abstraction from graphical
user interfaces (Qt, Gtk) and text based user interfaces (ncurses).

%files -n python3-yui
%doc libyui-bindings/swig/python/examples/*.py
%{python3_sitearch}/_yui.so
%{python3_sitearch}/yui.*
%{python3_sitearch}/__pycache__/*

#----------------------------------------------------------
# perl-yui

%package -n perl-yui
License:        GPLv2+
Summary:        Perl bindings for libyui
Group:          Development/Perl

%description -n perl-yui
This package provides Perl language bindings to access functions of libyui, the
YaST User Interface engine that provides the abstraction from graphical user
interfaces (Qt, Gtk) and text based user interfaces (ncurses).

%files -n perl-yui
%doc libyui-bindings/swig/perl/examples/*.pl
%{perl_vendorarch}/yui.so
%{perl_vendorlib}/yui.pm

#----------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

sed -i'' -e 's,tinfo,ncurses,g' libyui-ncurses-pkg/src/CMakeLists.txt libyui-ncurses/src/CMakeLists.txt

%build
# Let's pass cmake definitions to all the project to simplify building in a loop
for pkgname in libyui libyui-qt libyui-ncurses libyui-bindings ;do
  pushd $pkgname

  %cmake \
%ifarch %{e2k}
      -DWERROR=off \
%endif
      -DBUILD_EXAMPLES=OFF \
      -DWITH_MGA=%{?with_mga:ON}%{!?with_mga:OFF} \
      -DWITH_MONO=OFF \
      -DPYTHON_EXECUTABLE=%{python3} \
      -DPYTHON_INCLUDE_DIR=%{_includedir}/python%{python3_version} \
      -DPYTHON_SITEDIR=%{python3_sitearch} \
      -DPYTHON_LIB_DIR=%{python3_sitelib}

  %make

  popd
done

%install

for pkgname in libyui libyui-qt libyui-ncurses libyui-bindings ;do
  pushd $pkgname
  %makeinstall_std -C build
  popd
done

install -m0755 -d %{buildroot}%{_libdir}/yui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14470 |21mr|libyui-gtk-2.52.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     major        15
%define     libname      %mklibname  yui-gtk %{major}
%define     develname    %mklibname yui-gtk -d

Name:       libyui-gtk
Version:    2.52.0
Release:    1
Summary:    UI abstraction library - GTK plugin
License:    LGPLv2+
Group:      System/Libraries
URL:        https://github.com/libyui/libyui-gtk
Source0:    https://github.com/libyui/libyui-gtk/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:     00_pkgconfig_dir.patch

BuildRequires:    png-devel
BuildRequires:    yui-devel >= 3.0.4
BuildRequires:    gtk+3.0-devel
BuildRequires:    libgdk_pixbuf2.0-devel
BuildRequires:    boost-devel
BuildRequires:    sane-devel
BuildRequires:    cmake
BuildRequires:    doxygen
BuildRequires:    ghostscript
BuildRequires:    graphviz

%description
%{summary}

#-----------------------------------------------------------------------

%package -n %libname
Summary:        %{summary}
Group:          System/Libraries
Provides:       %{name} = %{version}-%{release}
Provides:       libyui-gtk = %{version}-%{release}

%description -n %libname
This package contains the library needed to run programs
dynamically linked with libyui-gtk.

%files -n %libname
%doc COPYING*
%{_libdir}/yui/libyui-gtk.so.%{major}{,.*}

#-----------------------------------------------------------------------

%package -n %develname
Summary:        %{summary} header files
Group:          Development/Other
Requires:       libyui-devel
Requires:       %{name} = %{version}-%{release}
Provides:       yui-gtk-devel = %{version}-%{release}

%description -n %develname
This package provides headers files for libyui-ncurses development.

%files -n %develname
%{_includedir}/yui/
%{_libdir}/yui/libyui-gtk.so
%{_libdir}/pkgconfig/libyui-gtk.pc

#-----------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14471 |21mr|libyui-mga-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 15
%define libname %mklibname yui-mga %{major}
%define develname %mklibname -d yui-mga

Name:           libyui-mga
Version:        1.2.1
Release:        1
Summary:        UI abstraction library - Mageia extension widget base plugin
License:        LGPLv2+
Group:          System/Libraries
Url:            https://github.com/manatools/libyui-mga
Source0:        https://github.com/manatools/libyui-mga/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:    pkgconfig(libpng)
BuildRequires:    pkgconfig(libyui)
BuildRequires:    cmake
BuildRequires:    boost-devel
BuildRequires:    ghostscript
BuildRequires:    graphviz

%description
%{summary}

#-----------------------------------------------------------------------

%package -n %libname
Summary:        %{summary}
Group:          System/Libraries
Requires:       libyui
Provides:       %{name} = %{version}-%{release}
Obsoletes:	%{_lib}yui15-mga < 1.2.1-3

%description -n %libname
This package contains the library needed to run programs
dynamically linked with libyui-mga.

%files -n %libname
%doc COPYING*
%{_libdir}/libyui-mga.so.%{major}{,.*}

#-----------------------------------------------------------------------

%package -n %develname
Summary:        %{summary} header files
Group:          Development/C++
Requires:       libyui-devel
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}
Provides:       yui-mga-devel = %{version}-%{release}

%description -n %develname
This package provides headers files for libyui-mga development.

%files -n %develname
%{_includedir}/yui
%{_libdir}/libyui-mga.so
%{_libdir}/pkgconfig/libyui-mga.pc

#-----------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake \
    -DBUILD_EXAMPLES=NO
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14472 |21mr|libyui-mga-gtk-1.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 15
%define libname %mklibname yui-mga-gtk %{major}
%define devname %mklibname yui-mga-gtk -d

Summary:	UI abstraction library - Mageia extension Gtk plugin
Name:		libyui-mga-gtk
Version:	1.2.0
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/manatools/libyui-mga-gtk
Source0:	https://github.com/manatools/libyui-mga-gtk/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		00-libyui-gtk-dep.patch
Patch1:		libyui-mga-gtk-1.2.0-hard-ru-translate.patch
BuildRequires:	cmake
BuildRequires:	ghostscript
BuildRequires:	graphviz
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libyui)
BuildRequires:	pkgconfig(libyui-gtk)
BuildRequires:	pkgconfig(libyui-mga)

%description
%{summary}.

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:	%{summary}
Group:		System/Libraries
Requires:	libyui
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs
dynamically linked with libyui-mga-gtk.

%files -n %{libname}
%license COPYING*
%{_libdir}/yui/%{name}.so.%{major}{,.*}

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:	%{summary} header files
Group:		Development/Other
Requires:	libyui-devel
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	yui-mga-gtk-devel = %{EVRD}

%description -n %{devname}
This package provides headers files for libyui-mga-gtk development.

%files -n %{devname}
%{_includedir}/yui/mga/gtk/
%{_libdir}/yui/%{name}.so

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14473 |21mr|libyui-mga-ncurses-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         major        15
%define         libname      %mklibname yui-mga-ncurses %{major}
%define         develname    %mklibname yui-mga-ncurses -d

Name:           libyui-mga-ncurses
Version:        1.2.0
Release:        1
Summary:        UI abstraction library - Mageia extension ncurses plugin
License:        LGPLv2+
Group:          System/Libraries
Url:            https://github.com/manatools/libyui-mga-ncurses
Source0:        https://github.com/manatools/libyui-mga-ncurses/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:    pkgconfig(libyui)
BuildRequires:    pkgconfig(libyui-ncurses)
BuildRequires:    pkgconfig(libyui-mga)
BuildRequires:    pkgconfig(ncursesw)
BuildRequires:    pkgconfig(ncurses)
BuildRequires:    cmake
BuildRequires:    boost-devel

%description
%{summary}.

#-----------------------------------------------------------------------

%package -n %libname
Summary:        %{summary}
Group:          System/Libraries
Provides:       %{name} = %{version}-%{release}

%description -n %libname
This package contains the library needed to run programs
dynamically linked with libyui-mga-ncurses.

%files -n %libname
%doc COPYING*
%{_libdir}/yui/libyui-mga-ncurses.so.%{major}{,.*}


#-----------------------------------------------------------------------

%package -n %develname
Summary:        %{summary} header files
Group:          Development/Other
Requires:       libyui-devel
Requires:       %{libname} = %{version}-%{release}
Provides:       yui-mga-ncurses-devel = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %develname
This package provides headers files for libyui-mga-ncurses development.

%files -n %develname
%{_includedir}/yui/mga/ncurses/
%{_libdir}/yui/libyui-mga-ncurses.so

#-----------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

sed -i'' -e 's,tinfo,ncurses,g' src/CMakeLists.txt

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14474 |21mr|libyui-mga-qt-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         major        15
%define         libname      %mklibname yui-mga-qt %{major}
%define         develname    %mklibname yui-mga-qt -d

Name:           libyui-mga-qt
Version:        1.2.0
Release:        2
Summary:        UI abstraction library - Qt plugin
License:        LGPLv2+
Group:          System/Libraries
Url:            https://github.com/manatools/libyui-mga-qt
Source0:        https://github.com/manatools/libyui-mga-qt/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:         00_libyui-qt-dep.patch

BuildRequires:    pkgconfig(libpng)
BuildRequires:    pkgconfig(libyui)
BuildRequires:    pkgconfig(libyui-qt)
BuildRequires:    pkgconfig(libyui-mga)
# TODO Check ...
BuildRequires:    pkgconfig(Qt5X11Extras)
BuildRequires:    pkgconfig(Qt5Svg)
# ... TODO Check
BuildRequires:    cmake
BuildRequires:    boost-devel

BuildRequires:    ghostscript
BuildRequires:    graphviz
BuildRequires:    pkgconfig(fontconfig)

%description
%{summary}.

#-----------------------------------------------------------------------

%package -n %libname
Summary:        %{summary}
Group:          System/Libraries
Provides:       %{name} = %{version}-%{release}

%description -n %libname
This package contains the library needed to run programs
dynamically linked with libyui-mga-qt.

%files -n %libname
%doc COPYING*
%{_libdir}/yui/libyui-mga-qt.so.%{major}{,.*}


#-----------------------------------------------------------------------

%package -n %develname
Summary:        %{summary} header files
Group:          Development/KDE and Qt
Requires:       libyui-devel
Requires:       %{name} = %{version}-%{release}
Provides:       yui-mga-qt-devel = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %develname
This package provides headers files for libyui-mga-qt development.

%files -n %develname
%{_includedir}/yui/mga/qt/
%{_libdir}/yui/libyui-mga-qt.so

#-----------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14475 |21mr|libyuv-0-0.40.20201024git19d71f6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname yuv %{major}
%define devname %mklibname -d yuv

Name:		libyuv
Summary:	YUV conversion and scaling functionality library
Group:		System/Libraries
Version:	0
Release:	0.40.20201024git19d71f6%{?dist}
License:	BSD
Url:		https://chromium.googlesource.com/libyuv/libyuv
VCS:		scm:git:https://chromium.googlesource.com/libyuv/libyuv
## git clone https://chromium.googlesource.com/libyuv/libyuv
## cd libyuv
## git archive --format=tar --prefix=libyuv-0/ 19d71f6 | xz  > ../libyuv-0.tar.xz
Source0:	%{name}-%{version}.tar.xz
# Fedora-specific. Upstream isn't interested in these patches.
Patch1:		libyuv-0001-Use-a-proper-so-version.patch
Patch2:		libyuv-0002-Link-against-shared-library.patch
Patch3:		libyuv-0003-Disable-static-library.patch
Patch4:		libyuv-0004-Don-t-install-conversion-tool.patch
Patch5:		libyuv-0005-Use-library-suffix-during-installation.patch
Patch6:		libyuv-0006-Link-main-library-against-libjpeg.patch
BuildRequires:	cmake
BuildRequires:	gtest-devel
BuildRequires:	jpeg-devel


%description
This is an open source project that includes YUV conversion and scaling
functionality. Converts all webcam formats to YUV (I420). Convert YUV to
formats for rendering/effects. Rotate by 90 degrees to adjust for mobile
devices in portrait mode. Scale YUV to prepare content for compression,
with point, bilinear or box filter.

%package -n %{libname}
Summary:	YUV conversion and scaling functionality library
Group:		System/Libraries

%description -n %{libname}
This is an open source project that includes YUV conversion and scaling
functionality. Converts all webcam formats to YUV (I420). Convert YUV to
formats for rendering/effects. Rotate by 90 degrees to adjust for mobile
devices in portrait mode. Scale YUV to prepare content for compression,
with point, bilinear or box filter.


%package -n %{devname}
Summary: The development files for %{name}
Requires: %{libname} = %{EVRD}
Provides: %{name}-devel = %{EVRD}


%description -n %{devname}
Additional header files for development with %{name}.


%prep
%autosetup -p1

cat > %{name}.pc << EOF
prefix=%{_prefix}
exec_prefix=${prefix}
libdir=%{_libdir}
includedir=%{_includedir}

Name: %{name}
Description: %{summary}
Version: %{version}
Libs: -lyuv
EOF


%build
%cmake -DTEST=true
%make_build


%install
%make_install -C build

mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp -a %{name}.pc %{buildroot}%{_libdir}/pkgconfig/


%check
# FIXME fails again on s390
./libyuv_unittest || true


%files -n %{libname}
%{_libdir}/%{name}.so.%{major}*


%files -n %{devname}
%license LICENSE
%doc AUTHORS PATENTS README.md
%{_includedir}/%{name}
%{_includedir}/%{name}.h
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14476 |21mr|libzeitgeist-0.3.18-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 1
%define libname %mklibname zeitgeist %{api} %{major}
%define develname %mklibname -d zeitgeist %{api}

Name:		libzeitgeist
Version:	0.3.18
Release:	7
Summary:	Client library for applications that want to interact with the Zeitgeist daemon
Group:		System/Libraries
License:	LGPLv3 and GPLv3
URL:		https://launchpad.net/libzeitgeist
Source0:	http://launchpad.net/%{name}/0.3/%{version}/+download/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	gtk-doc
# zeitgeist is just a runtime and the reason to install libzeitgeist
Requires:	zeitgeist

%description
This project provides a client library for applications that want to interact
with the Zeitgeist daemon. The library is written in C using glib and provides
an asynchronous GObject oriented API.

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This project provides a client library for applications that want to interact
with the Zeitgeist daemon. The library is written in C using glib and provides
an asynchronous GObject oriented API.

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

install -d -p -m 755 %{buildroot}%{_datadir}/vala/vapi
install -D -p -m 644 bindings/zeitgeist-1.0.{vapi,deps} %{buildroot}%{_datadir}/vala/vapi

# remove duplicate documentation
rm -fr %{buildroot}%{_defaultdocdir}/%{name}

%files -n %{libname}
%doc COPYING COPYING.GPL README
%{_libdir}/libzeitgeist-%{api}.so.%{major}
%{_libdir}/libzeitgeist-%{api}.so.%{major}.*

%files -n %{develname}
%doc AUTHORS ChangeLog COPYING COPYING.GPL MAINTAINERS NEWS 
%doc examples/*.vala examples/*.c
%{_datadir}/gtk-doc/html/zeitgeist-1.0/
%{_includedir}/zeitgeist-1.0/
%{_libdir}/pkgconfig/zeitgeist-1.0.pc
%{_libdir}/*.so
%{_datadir}/vala/vapi/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14477 |21mr|libzen-0.4.41-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname zen

%define	major 0
%define	libname %mklibname %{oname} %{major}
%define	devname %mklibname %{oname} -d

Summary:	Shared library for mediainfo
Name:		libzen
Version:	0.4.41
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://zenlib.sourceforge.net/
Source0:	https://mediaarea.net/download/source/libzen/%{version}/libzen_%{version}.tar.gz
BuildRequires:	dos2unix
BuildRequires:	doxygen

%description
Shared library for libmediainfo and mediainfo (the GUI).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for mediainfo
Group:		System/Libraries

%description -n %{libname}
Shared library for libmediainfo and mediainfo.

%files -n %{libname}
%doc *.txt
%{_libdir}/%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Include files and libraries for development
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	zenlib-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Include files and mandatory libraries for development with %{name}.

%files -n %{devname}
%doc Source/Doc/Documentation.html
%doc Doc/*
#{_bindir}/%%{name}-config
%{_includedir}/ZenLib
%{_libdir}/%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n ZenLib

# Fix EOLs and rights
dos2unix *.txt Source/Doc/*.html
chmod 644 *.txt Source/Doc/*.html
find . -name "*.c" -o -name "*.h" -o -name "*.cpp" |xargs chmod 0644
find . -name "*.c" -o -name "*.h" -o -name "*.cpp" -exec dos2unix {} \;


%build
pushd Project/GNU/Library
	autoreconf -vfi
	%configure \
		--enable-shared \
		--disable-static
	%make
popd

# Generate docs
pushd Source/Doc
	doxygen -u 2> /dev/null
	doxygen Doxyfile
popd


%install
pushd Project/GNU/Library
	%makeinstall_std
popd

# Fix pkgconfig file: no static libs
#sed -i -e 's|Version:	0.4.39
sed -i -e '/Libs_Static.*/d' %{buildroot}%{_libdir}/pkgconfig/libzen.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14478 |21mr|libzip-1.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 5
%define libname %mklibname zip %{major}
%define devname %mklibname zip -d

Summary:	A C library for reading, creating, and modifying zip archives
Name:		libzip
Version:	1.9.2
Release:	1
Group:		System/Libraries
License:	BSD
Url:		http://www.nih.at/libzip/
Source0:	http://www.nih.at/libzip/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(zlib)

%description
libzip is a C library for reading, creating, and modifying zip archives. Files
can be added from data buffers, files, or compressed data copied directly from
other zip archives. Changes made without closing the archive can be reverted.
The API is documented by man pages.

%files
%doc AUTHORS THANKS
%{_bindir}/zipcmp
%{_bindir}/zipmerge
%{_bindir}/ziptool
%{_mandir}/man1/zipcmp.1*
%{_mandir}/man1/zipmerge.1*
%{_mandir}/man1/ziptool.1*

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	A C library for reading, creating, and modifying zip archives
Group:          System/Libraries

%description -n	%{libname}
libzip is a C library for reading, creating, and modifying zip archives. Files
can be added from data buffers, files, or compressed data copied directly from
other zip archives. Changes made without closing the archive can be reverted.
The API is documented by man pages.

%files -n %{libname}
%{_libdir}/libzip.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc AUTHORS THANKS
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/libzip.pc
%{_mandir}/man3/*
%{_libdir}/cmake/%{name}/libzip-*.cmake

#----------------------------------------------------------------------------
%prep
%autosetup -p1

%build
%global optflags %{optflags} -O3
sed -i -e 's,@LIB@,%{_lib},g' CMakeLists.txt */CMakeLists.txt
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14479 |21mr|libzmf-0.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.0
%define major 0
%define libname %mklibname zmf %{api} %{major}
%define devname %mklibname zmf -d

Summary:	A library for import of Zoner document formats
Name:		libzmf
Version:	0.0.2
Release:	4
License:	MPLv2.0
Group:		System/Libraries
Url:		http://wiki.documentfoundation.org/DLP/Libraries/libzmf
Source0:	http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	help2man
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(zlib)

%description
libzmf is library providing ability to interpret and import Zoner
document formats into various applications. Currently it only supports
Zoner Callisto/Draw v 4-5.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for %{name}
Group:		System/Libraries

%description -n %{libname}
libzmf is library providing ability to interpret and import Zoner
document formats into various applications. Currently it only supports
Zoner Callisto/Draw v 4-5.

%files -n %{libname}
%doc AUTHORS NEWS
%{_libdir}/%{name}-%{api}.so.%{major}
%{_libdir}/%{name}-%{api}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files for %{name}.

%files doc
%doc docs/doxygen/html

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Zoner documents into other formats
Group:		Publishing

%description tools
Tools to transform Zoner documents into other formats.
Currently supported: SVG, raw.

%files tools
%{_bindir}/zmf2raw
%{_bindir}/zmf2svg
%{_mandir}/man1/zmf2raw.1*
%{_mandir}/man1/zmf2svg.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-silent-rules \
	--disable-static \
	--disable-werror

%make

%install
%makeinstall_std

# we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}

# generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in zmf2raw zmf2svg; do
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
done
install -m 0755 -d %{buildroot}%{_mandir}/man1
install -m 0644 zmf2*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14480 |21mr|libzmf-0.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.0
%define major 0
%define libname %mklibname zmf %{api} %{major}
%define devname %mklibname zmf -d

Summary:	A library for import of Zoner document formats
Name:		libzmf
Version:	0.0.2
Release:	6
License:	MPLv2.0
Group:		System/Libraries
Url:		http://wiki.documentfoundation.org/DLP/Libraries/libzmf
Source0:	http://dev-www.libreoffice.org/src/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	help2man
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librevenge-0.0)
BuildRequires:	pkgconfig(zlib)

%description
libzmf is library providing ability to interpret and import Zoner
document formats into various applications. Currently it only supports
Zoner Callisto/Draw v 4-5.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for %{name}
Group:		System/Libraries

%description -n %{libname}
libzmf is library providing ability to interpret and import Zoner
document formats into various applications. Currently it only supports
Zoner Callisto/Draw v 4-5.

%files -n %{libname}
%doc AUTHORS NEWS
%{_libdir}/%{name}-%{api}.so.%{major}
%{_libdir}/%{name}-%{api}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation of %{name} API
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files for %{name}.

%files doc
%doc docs/doxygen/html

#----------------------------------------------------------------------------

%package tools
Summary:	Tools to transform Zoner documents into other formats
Group:		Publishing

%description tools
Tools to transform Zoner documents into other formats.
Currently supported: SVG, raw.

%files tools
%{_bindir}/zmf2raw
%{_bindir}/zmf2svg
%{_mandir}/man1/zmf2raw.1*
%{_mandir}/man1/zmf2svg.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-silent-rules \
	--disable-static \
	--disable-werror

%make

%install
%makeinstall_std

# we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}

# generate and install man pages
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
for tool in zmf2raw zmf2svg; do
    help2man -N -S '%{name} %{version}' -o ${tool}.1 %{buildroot}%{_bindir}/${tool}
done
install -m 0755 -d %{buildroot}%{_mandir}/man1
install -m 0644 zmf2*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14481 |21mr|lightcouch-0.1.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          lightcouch
Version:       0.1.8
Release:       8
Summary:       CouchDB Java API
License:       ASL 2.0
URL:           http://www.lightcouch.org/
Source0:       https://github.com/lightcouch/LightCouch/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.gson:gson)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.httpcomponents:httpclient) >= 4.3.3
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
LightCouch aims at providing a simple API
for communicating with CouchDB databases. 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n LightCouch-%{name}-%{version}
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

# NullPointerException
rm -r src/test/java/org/lightcouch/tests/AttachmentsTest.java \
 src/test/java/org/lightcouch/tests/BulkDocumentTest.java \
 src/test/java/org/lightcouch/tests/ChangeNotificationsTest.java \
 src/test/java/org/lightcouch/tests/CouchDbClientLoadTest.java \
 src/test/java/org/lightcouch/tests/DesignDocumentsTest.java \
 src/test/java/org/lightcouch/tests/DocumentsCRUDTest.java \
 src/test/java/org/lightcouch/tests/DBServerTest.java \
 src/test/java/org/lightcouch/tests/UpdateHandlerTest.java \
 src/test/java/org/lightcouch/tests/ViewsTest.java

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14482 |21mr|lightdm-1.30.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define libapi 1
%define libqtapi 3
%define libmajor 0

Summary:	The Light Display Manager
Name:		lightdm
Version:	1.30.0
Release:	3
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		http://www.freedesktop.org/wiki/Software/LightDM
Source0:	https://github.com/CanonicalLtd/lightdm/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1:	29lightdm.conf
Source2:	Xsession
Source3:	lightdm-autologin.pam
Source4:	lightdm.pam
Source5:	lightdm-greeter.pam
#Systemd related:
Source10:	lightdm-tmpfiles.conf
Source11:	lightdm.service
Source12:	lightdm.rules
Patch0:		lightdm-1.30.0-rosa_config.patch
#Fedora patches
Patch11:	lightdm-1.11.7-nodaemon_option.patch
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	systemd
BuildRequires:	yelp-tools
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libxklavier)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xdmcp)
Requires:	accountsservice
Requires:	xinitrc
Requires:	typelib(LightDM)
Requires(post,preun,postun):	systemd
Requires(post,postun):	update-alternatives
Provides:	dm
Recommends:	lightdm-greeter
Recommends:	lightdm-gtk-greeter >= 1.6.1

%description
An X display manager that:
  * Has a lightweight codebase
  * Is standards compliant (PAM, etc)
  * Has a well defined interface between the server and user interface
  * Fully themeable (easiest with the webkit interface)
  * Cross-desktop (greeters can be written in any toolkit)

%files -f %{name}.lang
%dir %{_sysconfdir}/%{name}
%dir %{_localstatedir}/lib/%{name}-data
%dir %{_sysconfdir}/%{name}/lightdm.conf.d
%config %{_sysconfdir}/%{name}/lightdm.conf
%config %{_sysconfdir}/%{name}/users.conf
%config(noreplace) %{_sysconfdir}/%{name}/keys.conf
%ghost %{_localstatedir}/log/%{name}/%{name}.log
%{_bindir}/dm-tool
%{_sbindir}/%{name}
%{_sysconfdir}/%{name}/Xsession
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.DisplayManager.conf
%{_sysconfdir}/pam.d/lightdm*
%{_datadir}/%{name}/
%{_datadir}/X11/dm.d/29lightdm.conf
%{_datadir}/accountsservice/interfaces/org.freedesktop.DisplayManager.AccountsService.xml
%{_datadir}/bash-completion/completions/*
%{_datadir}/dbus-1/interfaces/org.freedesktop.DisplayManager.AccountsService.xml
%{_datadir}/help/C/%{name}/
%{_datadir}/polkit-1/actions/org.freedesktop.DisplayManager.AccountsService.policy
%{_datadir}/polkit-1/rules.d/lightdm.rules
%{_libexecdir}/lightdm-guest-session
%{_prefix}/lib/tmpfiles.d/lightdm.conf
%{_unitdir}/lightdm.service
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man1/dm-tool.*

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name}-data /sbin/nologin

%post
# avoiding conflict with gdm
if [ $1 -eq 1 ] ; then \
	update-alternatives --install %{_bindir}/gdmflexiserver gdmflexiserver %{_libexecdir}/%{name}/gdmflexiserver 30
fi

%create_ghostfile %{_localstatedir}/log/%{name}/%{name}.log %{name} %{name} 0644
%systemd_post %{name}.service

%preun
if [ $1 -ge 0 ] ; then \
	if [ ! -e %{_libexecdir}/%{name}/gdmflexiserver ]; then
		update-alternatives --remove gdmflexiserver %{_libexecdir}/%{name}/gdmflexiserver
	fi
fi
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}
%systemd_postun %{name}.service

#-------------------------------------------------------------------------

%define liblightdmgobject %mklibname lightdm-gobject %{libapi} %{libmajor}

%package -n %{liblightdmgobject}
Summary:	LightDM GObject client library
Group:		Graphical desktop/Other

%description -n %{liblightdmgobject}
A GObject based library for LightDM clients to use to interface with LightDM.

%files -n %{liblightdmgobject}
%{_libdir}/liblightdm-gobject-%{libapi}.so.%{libmajor}
%{_libdir}/liblightdm-gobject-%{libapi}.so.%{libmajor}.*

#-------------------------------------------------------------------------

%define liblightdmgir %mklibname lightdm-gir %{libapi}

%package -n %{liblightdmgir}
Summary:	Typelib file for liblightdm-1
Group:		Graphical desktop/Other
Requires:	%{liblightdmgobject} = %{EVRD}

%description -n %{liblightdmgir}
A GObject based library for LightDM clients to use to interface with LightDM.

%files -n %{liblightdmgir}
%{_libdir}/girepository-1.0/LightDM-%{libapi}.typelib

#-------------------------------------------------------------------------

%define liblightdmgobjectdevel %mklibname -d lightdm-gobject

%package -n %{liblightdmgobjectdevel}
Summary:	LightDM client library (development files)
Group:		Graphical desktop/Other
Requires:	%{liblightdmgobject} = %{EVRD}
Provides:	lightdm-gobject-devel = %{EVRD}

%description -n %{liblightdmgobjectdevel}
A GObject based library for LightDM clients to use to interface with LightDM.

This package contains header files and development information, which
is useful for building LightDM greeters and user switchers.

%files -n %{liblightdmgobjectdevel}
%doc %{_datadir}/gtk-doc/html/lightdm-gobject-%{libapi}
%{_includedir}/lightdm-gobject-%{libapi}/
%{_libdir}/liblightdm-gobject-%{libapi}.so
%{_libdir}/pkgconfig/liblightdm-gobject-%{libapi}.pc
%{_datadir}/gir-1.0/LightDM-%{libapi}.gir

#-------------------------------------------------------------------------

%define liblightdmqt5 %mklibname lightdm-qt5_ %{libqtapi} %{libmajor}

%package -n %{liblightdmqt5}
Summary:	LightDM Qt5 client library
Group:		Graphical desktop/Other
License:	LGPLv2+

%description -n %{liblightdmqt5}
A Qt5 based library for LightDM clients to use to interface with LightDM.

%files -n %{liblightdmqt5}
%{_libdir}/liblightdm-qt5-%{libqtapi}.so.%{libmajor}
%{_libdir}/liblightdm-qt5-%{libqtapi}.so.%{libmajor}.*

#-------------------------------------------------------------------------

%define liblightdmqt5devel %mklibname -d lightdm-qt5

%package -n %{liblightdmqt5devel}
Summary:	LightDM client library (development files)
Group:		Graphical desktop/Other
License:	LGPLv2+
Requires:	%{liblightdmqt5} = %{EVRD}
Provides:	lightdm-qt5-devel = %{EVRD}

%description -n %{liblightdmqt5devel}
A Qt5 based library for LightDM clients to use to interface with LightDM.

This package contains header files and development information, which
is useful for building LightDM greeters and user switchers.

%files -n %{liblightdmqt5devel}
%{_includedir}/lightdm-qt5-%{libqtapi}
%{_libdir}/liblightdm-qt5-%{libqtapi}.so
%{_libdir}/pkgconfig/liblightdm-qt5-%{libqtapi}.pc

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -vfi
export PATH=$PATH:%{_qt5_bindir}
%configure \
	--disable-static \
	--disable-tests \
	--enable-introspection \
	--enable-liblightdm-gobject \
	--enable-liblightdm-qt5 \
	--disable-liblightdm-qt \
	--with-greeter-session=lightdm-greeter
%make_build

%install
%make_install

## create/own these
mkdir -p %{buildroot}%{_sysconfdir}/lightdm/lightdm.conf.d
mkdir -p %{buildroot}%{_datadir}/lightdm/lightdm.conf.d

# install pam file
install -Dpm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/pam.d/%{name}-autologin
install -Dpm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/%{name}
install -Dpm 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/pam.d/%{name}-greeter

# dm config
install -Dpm644 %{SOURCE1} %{buildroot}/%{_datadir}/X11/dm.d/29lightdm.conf

# session wrapper script to source /etc/profile and ~/.profile if they exists
install -Dpm755 %{SOURCE2} %{buildroot}/%{_sysconfdir}/%{name}/Xsession

# will be created when lightdm starts
install -d %{buildroot}%{_localstatedir}/log/%{name}
touch %{buildroot}%{_localstatedir}/log/%{name}/%{name}.log

# directory for chksession-generated sessions
mkdir -p %{buildroot}%{_datadir}/%{name}/sessions
# directory for remote sessions
mkdir -p %{buildroot}%{_datadir}/%{name}/remote-sessions

install -Dpm 644 %{SOURCE10} %{buildroot}%{_prefix}/lib/tmpfiles.d/lightdm.conf
install -Dpm 644 %{SOURCE11} %{buildroot}%{_unitdir}/lightdm.service
install -Dpm 644 %{SOURCE12} %{buildroot}%{_datadir}/polkit-1/rules.d/lightdm.rules

#we don't want these
rm -rf %{buildroot}%{_sysconfdir}/apparmor.d
# omit upstart support
rm -rfv %{buildroot}%{_sysconfdir}/init

#home dir for lightdm user
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}-data

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14483 |21mr|lightsoff-40.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Lightsoff game
Name:		lightsoff
Version:	40.0.1
Release:	5
License:	GPLv2+ and CC-BY-SA
Group:		Games/Other
Url:		https://download.gnome.org/sources/lightsoff
Source0:	https://download.gnome.org/sources/lightsoff/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(librsvg-2.0)

%description
A puzzle played on an 5X5 grid with the aim to turn off all the lights. Each
click on a tile toggles the state of the clicked tile and its non-diagonal
neighbors.

%files -f %{name}.lang
%doc COPYING
%{_appdatadir}/org.gnome.LightsOff.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.LightsOff.desktop
%{_datadir}/dbus-1/services/org.gnome.LightsOff.service
%{_datadir}/glib-2.0/schemas/org.gnome.LightsOff.gschema.xml
%{_datadir}/icons/*/*/*/*
%{_datadir}/%{name}
%{_mandir}/man*/%{name}.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14484 |21mr|lilv-0.24.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define api 0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d

Summary:	LV2 plugin library for applications and hosts
Name:		lilv
Version:	0.24.12
Release:	2
License:	ISC
Group:		System/Libraries
Url:		http://drobilla.net/software/%{name}/
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.bz2
Patch0:		lilv-0.5.0-fix-decl.patch
BuildRequires:	waf
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(sord-0)
BuildRequires:	pkgconfig(sratom-0)

%description
LV2 plugin library for applications and hosts.

%files
%doc COPYING README.md NEWS
%doc %{_mandir}/man1/*
%{_bindir}/lilv-bench
%{_bindir}/lv2apply
%{_bindir}/lv2info
%{_bindir}/lv2ls
%{_bindir}/lv2bench
%config(noreplace) %attr(644,root,root) %{_sysconfdir}/bash_completion.d/lilv

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LV2 plugin library for applications and hosts
Group:		System/Libraries
Conflicts:	%{_lib}lilv0 < 0.24.0-3
Obsoletes:	%{_lib}lilv0 < 0.24.0-3

%description -n %{libname}
Lilv is a library to make the use of LV2 plugins as simple as possible
for applications. Lilv is the successor to SLV2, rewritten to be
significantly faster and have minimal dependencies.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for the lilv LV2 library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}lilv-devel < 0.24.0-3
Obsoletes:	%{_lib}lilv-devel < 0.24.0-3

%description -n %{devname}
Development files needed to build applications against lilv.

%files -n %{devname}
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_includedir}/%{name}-%{api}/%{name}/*.hpp
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	LV2 plugin library for applications and hosts
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
BuildRequires:	pkgconfig(python3)

%description -n python3-%{name}
Lilv is a library to make the use of LV2 plugins as simple as possible
for applications. Lilv is the successor to SLV2, rewritten to be
significantly faster and have minimal dependencies.

%files -n python3-%{name}
%{python3_sitelib}/lilv.py*
%{python3_sitelib}/__pycache__/lilv.*.pyc
#----------------------------------------------------------------------------

%prep
%setup -q

%build
./waf configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--libdir=%{_libdir} \
	--configdir=%{_sysconfdir}

./waf

%install
./waf install --destdir=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14485 |21mr|lime-5.1.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	An encryption library for one-to-one and group instant messaging
Name:		lime
Version:	5.1.55
Release:	1
License:	GPLv3
Group:		System/Libraries
URL:		https://linphone.org/
Source0:	https://github.com/BelledonneCommunications/lime/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ninja
BuildRequires:	boost-devel
BuildRequires:	soci-devel
BuildRequires:	pkgconfig(bctoolbox)

%description
LIME is an encryption library for one-to-one and group instant messaging,
allowing users to exchange messages privately and asynchronously. It
supports multiple devices per user and multiple users per device.

LIME offers two major security benefits to instant messaging users: 

 - end-to-end encryption, which means that only you and your contact
   (and not even the server) can decrypt the content that you shared
 - perfect forward secrecy, which ensures that encrypted messages cannot
   by decrypted by a third party, even if a key is compromised in the
   future

LIME is composed of a portable client library coupled with a public key
server developed by Belledonne Communications to allow end-to-end encryption
for messaging, without having to exchange cryptographic keys simultaneously.

Main features are:

 -  end-to-end encryption based on modern Elliptic Curve Diffie-Hellman(ECDH)
 -  perfect forward secrecy with double ratchet algorithm
 -  designed for group communications
 -  asynchronous messaging system based on pre-positioned keys
 -  man-in-the-middle (MITM) detection based on ZRTP auxiliary secret
 -  signaling protocol agnostic

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	Language recognition library
Group:		System/Libraries

%description -n %{libname}
LIME is an encryption library for one-to-one and group instant messaging,
allowing users to exchange messages privately and asynchronously. 

%files -n %{libname}
%{_libdir}/lib%{name}.so.*

#---------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains development files for %{name}

%files -n %{develname}
%doc README.md
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_datadir}/lime/cmake/*
#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
    -DENABLE_STATIC:BOOL=NO \
    -DENABLE_STRICT:BOOL=NO \
    -DENABLE_UNIT_TESTS=NO \
    -DENABLE_C_INTERFACE:BOOL=NO \
    -DENABLE_JNI:BOOL=NO \
    -G Ninja

sed 's/-std=gnu++11/-std=gnu++17/g' -i build.ninja

%ninja_build

%install
%ninja_install -C build

find %{buildroot} -name "*.la" -delete


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14486 |21mr|linphone-desktop-4.4.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		linphone-desktop
Version:	4.4.8
Release:	2
Summary:	Voice over IP Application
License:	GPLv2+
Group:		Communications
URL:		http://www.linphone.org
Source0: 	https://gitlab.linphone.org/BC/public/linphone-desktop/-/archive/%{version}/linphone-desktop-%{version}.tar.bz2
Patch0:		linphone-desktop-cmake.patch
# (debian)
Patch1:		0002-remove-bc_compute_full_version-usage.patch
BuildRequires:	bctoolbox-static-devel
BuildRequires:	cmake
BuildRequires:	pkgconfig(belr)
BuildRequires:	mediastreamer2-devel
BuildRequires:	cmake(belcard)
BuildRequires:	cmake(Linphone)
BuildRequires:	cmake(LinphoneCxx)
BuildRequires:	cmake(Qt5)
BuildRequires:	cmake(Qt5Concurrent)
BuildRequires:	cmake(Qt5DBus)
BuildRequires:	cmake(Qt5Gui)
BuildRequires:	cmake(Qt5LinguistTools)
BuildRequires:	cmake(Qt5Quick)
BuildRequires:	cmake(Qt5QuickControls2)
BuildRequires:	cmake(Qt5Svg)
BuildRequires:	cmake(Qt5Test)
BuildRequires:	cmake(Qt5TextToSpeech)
BuildRequires:	cmake(Qt5Widgets)
BuildRequires:	ninja
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(bctoolbox)
BuildRequires:	qmake5

Requires:	mediastreamer
Requires:	liblinphone
Requires:	qt5-qtqml-qml
Requires:	%{_lib}qt5-qtquickcontrols-qml
Requires:	%{_lib}qt5-qtgraphicaleffects-qml

Provides:	linphone = %{version}-%{release}
Obsoletes:	linphone < 4.1.1

%description
Linphone is a free VoIP and video softphone based on the SIP protocol.

%files
%license LICENSE.txt
%doc README.md CHANGELOG.md
%{_bindir}/linphone
%{_libdir}/*.so
%{_datadir}/linphone/
%{_datadir}/applications/linphone.desktop
%{_iconsdir}/hicolor/*/apps/linphone.png
%{_iconsdir}/hicolor/scalable/apps/linphone.svg

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n linphone-desktop-%{version}

# Fix build
#sed -i -e 's,LINPHONE_QT_GIT_VERSION,"%{version}",' linphone-app/src/config.h.cmake
echo '#define LINPHONE_QT_GIT_VERSION "%{version}"' >> linphone-app/src/config.h.cmake
echo "project(linphoneqt VERSION %{version})" > linphone-app/linphoneqt_version.cmake
sed -i -e 's|set(APPLICATION_OUTPUT_DIR "${CMAKE_BINARY_DIR}/OUTPUT")|set(APPLICATION_OUTPUT_DIR "%{_prefix}")|' CMakeLists.txt

%build
%cmake\
	-DENABLE_BUILD_APP_PLUGINS=NO \
	-DENABLE_UPDATE_CHECK:BOOL=OFF \
	-DENABLE_NON_FREE_CODECS:BOOL=OFF \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DCMAKE_INSTALL_RPATH:BOOL=OFF \
	-DENABLE_FFMPEG=ON \
	-DENABLE_LDAP=NO \
	-DLINPHONE_QT_ONLY=ON \
	-DLINPHONE_VERSION=%{version} \
	-DAPP_PROJECT_VERSION=%{version} \
	-G Ninja
%ninja_build

%install
# The upstream build system behaves weird if DESTDIR is set. Install manually.
sed -i '/linphone-sdk/d' build/linphone-app/cmake_builder/linphone_package/cmake_install.cmake
#sed -i "s|$(CURDIR)/build/OUTPUT|usr|" build/linphone-app/cmake_install.cmake
#sed -i "s|$(CURDIR)/build/OUTPUT|usr|" build/cmake_install.cmake
%ninja_install -C build

rm -f %{buildroot}%{_bindir}/qt.conf

#remove plugin develop support
rm -rf %{buildroot}%{_includedir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14487 |21mr|linux-atm-2.5.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname atm %{major}
%define devname %mklibname atm -d

Summary:	Tools and libraries for ATM networking
Name:		linux-atm
Version:	2.5.1
Release:	13
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://linux-atm.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/linux-atm/linux-atm/%{version}/%{name}-%{version}.tgz
Patch1:		linux-atm-2.5.0-format_not_a_string_literal_and_no_format_arguments.patch
Patch4:		linux-atm-2.5.0-open-macro.patch
Patch5:		linux-atm-2.5.0-disable-ilmdiag.patch
# fix build on recent Linux kernels
Patch6:		linux-atm-2.5.1-import-sockio-h.patch
BuildRequires:	bison
BuildRequires:	flex

%description
Tools and libraries to support ATM (Asynchronous Transfer Mode) networking
and some types of DSL modems.

%files
%doc README AUTHORS ChangeLog NEWS THANKS BUGS
%config(noreplace) %{_sysconfdir}/atmsigd.conf
%config(noreplace) %{_sysconfdir}/hosts.atm
%{_bindir}/*
%{_sbindir}/*
%{_mandir}/man4/*
%{_mandir}/man7/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains libraries needed to run programs linked with %{name}.

%files -n %{libname}
%{_libdir}/libatm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	atm-devel = %{EVRD}
Provides:	libatm-devel = %{EVRD}

%description -n %{devname}
This package contains development files needed to compile programs which
use %{name}.

%files -n %{devname}
%{_includedir}/*
%if %{mdvver} < 201910
%{_libdir}/libatm.a
%endif
%{_libdir}/libatm.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1

%build
%global optflags %{optflags} -fno-strict-aliasing
%configure \
	--enable-shared \
	--enable-cisco \
	--enable-mpoa_1_1 \
	--enable-multipoint

%make -j1

%install
%makeinstall_std

install -m 0644 src/config/hosts.atm %{buildroot}/etc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14488 |21mr|linuxdoc-tools-0.9.21-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A text formatting package based on SGML

Name:		linuxdoc-tools
Version:	0.9.21
Release:	24
License:	Freely distributable
Group:		Publishing
Url:		http://people.debian.org/~sano/linuxdoc-tools/
Source0:	http://people.debian.org/~sano/linuxdoc-tools/archives/%{name}_%{version}.tar.bz2
Patch0:		linuxdoc-tools-0.9.21-letter.patch
Patch1:		linuxdoc-tools-0.9.20-strip.patch
Patch2:		linuxdoc-tools-ifpdf.patch
Patch3:		linuxdoc-tools_0.9.68-yyleng.patch
BuildRequires:	flex
BuildRequires:	openjade
BuildRequires:	sgml-common
BuildRequires:	groff-for-man
Requires:	docbook-utils
Requires:	gawk
Requires:	groff
Requires:	openjade
#gw needed by sgml2info
Requires:	texlive
Requires:	texinfo

%description
Linuxdoc-tools is a text formatting suite based on SGML (Standard
Generalized Markup Language), using the LinuxDoc document type.
Linuxdoc-tools allows you to produce LaTeX, HTML, GNU info, LyX, RTF,
plain text (via groff), and other format outputs from a single SGML
source.  Linuxdoc-tools is intended for writing technical software
documentation.

%files
%doc %{_docdir}/%{name}-%{version}
%{_bindir}/*
%{_datadir}/%{name}
%{_datadir}/entity-map
%{_datadir}/texmf-dist/tex/latex/misc/*.sty
%{perl_vendorlib}/Text/*.pm
%{_mandir}/*/*

%post
[ -x %{_bindir}/texhash ] && /usr/bin/env - %{_bindir}/texhash > /dev/null 2>&1
exit 0

%postun
[ -x %{_bindir}/texhash ] && /usr/bin/env - %{_bindir}/texhash > /dev/null 2>&1
exit 0

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .letter
%patch1 -p1 -b .strip
%patch2 -p1 -b .ifpdf
%patch3 -p1 -b .yyleng

%build
%configure \
	--with-installed-nsgmls \
	--with-installed-iso-entities
# Packaging brain-damage
( cd entity-map
  autoconf
  %configure
)
%make OPTIMIZE="%{optflags}"
perl -pi -e 's,\$main::prefix/share/sgml/iso-entities-8879.1986/iso-entities.cat,/usr/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
           lib/LinuxDocTools.pm

%install
%makeinstall
mv %{buildroot}%{_docdir}/%{name} %{buildroot}%{_docdir}/%{name}-%{version}
perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
           %{buildroot}%{_datadir}/%{name}/LinuxDocTools.pm

# Some files need moving around.
rm -f %{buildroot}%{_datadir}/%{name}/epsf.*
rm -f %{buildroot}%{_datadir}/%{name}/url.sty
install -d %{buildroot}%{_datadir}/texmf-dist/tex/latex/misc
mv %{buildroot}%{_datadir}/%{name}/*.sty \
	%{buildroot}%{_datadir}/texmf-dist/tex/latex/misc

# Move perl modules to perl_vendorlib
mkdir -p %{buildroot}%{perl_vendorlib}/Text
mv %{buildroot}%{_libdir}/perl5/Text/EntityMap.pm \
	%{buildroot}%{perl_vendorlib}/Text/

cat > doc/COPYRIGHT <<EOF
(C) International Organization for Standardization 1986
Permission to copy in any form is granted for use with
conforming SGML systems and applications as defined in
ISO 8879, provided this notice is included in all copies.
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14489 |21mr|linux-firmware-2-14.git92010.20240308.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 92010357fbc692ace5883e7480e9cc3c966480fb
%define commit_short %(echo %{commit} | head -c 5)

%if %{mdvver} >= 202310
%define _firmwarepath /usr/lib/firmware
%else
%define _firmwarepath /lib/firmware
%endif
%global _python_bytecompile_build 0
%global _binaries_in_noarch_packages_terminate_build 0
%global debug_package %{nil}

Summary:	Firmware files used by the Linux kernel
Name:		linux-firmware
Version:	2
# When rebuilding package with the same source - increment the last number
# When updating to a new snapshot - increment the first number and drop the last one to 1
Release:	14.git%{commit_short}.20240308.1
Epoch:		4
License:	GPL+ and GPLv2+ and MIT and Redistributable, no modification permitted
Group:		System/Kernel and hardware
Url:		https://git.kernel.org/cgit/linux/kernel/git/firmware/linux-firmware.git/
Source0:	https://git.kernel.org/pub/scm/linux/kernel/git/firmware/linux-firmware.git/snapshot/%{commit}.tar.gz
Source1:	linux-firmware.rpmlintrc
Provides:	kernel-firmware = %{version}
Provides:	kernel-firmware-extra = %{version}
Provides:	radeon-firmware = %{version}
Provides:	ralink-firmware = %{version}
Provides:	rtlwifi-firmware = %{version}
BuildArch:	noarch

### Soft dependencies on other firmware subpackages to install them
# by default but to allow to uninstall them if needed
# TODO: maybe merge all firmwares into one packages?
# But that package will be very large...
# Subpackages of this package:
Recommends:	iwlwifi-agn-ucode
Recommends:	iwl3945-firmware
Recommends:	iwl4965-firmware
Recommends:	iwl-ax2xx-firmware
Recommends:	libertas-usb8388-firmware
Recommends:	libertas-usb8388-olpc-firmware
Recommends:	libertas-sd8686-firmware
Recommends:	libertas-sd8787-firmware
# Other packages with firmware:
Recommends:	b43-firmware
Requires(posttrans): coreutils

%if %{mdvver} >= 201910
%rename alsa-firmware
%endif

%description
This package includes firmware files required for some devices to
operate.

%files -f linux-firmware.files
%doc WHENCE LICENCE.* LICENSE.*
%dir %{_firmwarepath}

%if %{mdvver} <= 202110
%pretrans -p <lua>
-- /usr/lib/firmware/qcom/LENOVO/21BX was a directory with files inside it
-- but became a symlink to another directory
-- https://bugzilla.rosalinux.ru/show_bug.cgi?id=13051
-- https://docs.fedoraproject.org/en-US/packaging-guidelines/Directory_Replacement/
path = "/lib/firmware/qcom/LENOVO/21BX"
st = posix.stat(path)
if st and st.type == "directory" then
	-- Assume that there are no files of external packages in this directory
	-- to avoid making a very complex solution
	os.rename(path, path .. ".rpmmoved")
end

%posttrans
# Lua os.remove() cannot remove a non-empty directory
old=/lib/firmware/qcom/LENOVO/21BX.rpmmoved
new=/lib/firmware/qcom/LENOVO/21BX
if test -L "$new" && test -d "$old"; then
	rm -fr "$old"
fi
%endif

#----------------------------------------------------------------------------

%package -n iwlwifi-agn-ucode
Summary:	Firmware for Intel(R) Wireless WiFi 1xx/1000/.../8xxx Series Adapters
License:	Redistributable, no modification permitted

%description -n iwlwifi-agn-ucode
This package contains all the iwlwifi wireless firmware files supported
by the iwlwifi kernel driver. That means all of:
iwlwifi-1xx/1000/2xxx/5xxx/6xxx/7xxx/8xxx/9xxx*.ucode firmwares.

%files -n iwlwifi-agn-ucode
%doc WHENCE LICENCE.iwlwifi_firmware
%{_firmwarepath}/iwlwifi-100-5.ucode
%{_firmwarepath}/iwlwifi-105-*.ucode
%{_firmwarepath}/iwlwifi-135-*.ucode
%{_firmwarepath}/iwlwifi-1000-*.ucode
%{_firmwarepath}/iwlwifi-2000-*.ucode
%{_firmwarepath}/iwlwifi-2030-*.ucode
%{_firmwarepath}/iwlwifi-3160-*.ucode
%{_firmwarepath}/iwlwifi-3168-*.ucode
%{_firmwarepath}/iwlwifi-5000-*.ucode
%{_firmwarepath}/iwlwifi-5150-*.ucode
%{_firmwarepath}/iwlwifi-6000-*.ucode
%{_firmwarepath}/iwlwifi-6000g2a-*.ucode
%{_firmwarepath}/iwlwifi-6000g2b-*.ucode
%{_firmwarepath}/iwlwifi-6050-*.ucode
%{_firmwarepath}/iwlwifi-7260-*.ucode
%{_firmwarepath}/iwlwifi-7265*-*.ucode
%{_firmwarepath}/iwlwifi-8000*-*.ucode
%{_firmwarepath}/iwlwifi-8265*-*.ucode
%{_firmwarepath}/iwlwifi-9000*-*.ucode
%{_firmwarepath}/iwlwifi-9260*-*.ucode

#----------------------------------------------------------------------------

%package -n iwl3945-firmware
Summary:	Firmware for Intel® PRO/Wireless 3945 A/B/G network adaptors
License:	Redistributable, no modification permitted

%description -n iwl3945-firmware
This package contains the firmware required by the iwl3945 driver
for Linux.  Usage of the firmware is subject to the terms and conditions
contained inside the provided LICENSE file. Please read it carefully.

%files -n iwl3945-firmware
%doc WHENCE LICENCE.iwlwifi_firmware
%{_firmwarepath}/iwlwifi-3945-*.ucode

#----------------------------------------------------------------------------

%package -n iwl4965-firmware
Summary:	Firmware for Intel® PRO/Wireless 4965 A/G/N network adaptors
License:	Redistributable, no modification permitted

%description -n iwl4965-firmware
This package contains the firmware required by the iwl4965 driver
for Linux.  Usage of the firmware is subject to the terms and conditions
contained inside the provided LICENSE file. Please read it carefully.

%files -n iwl4965-firmware
%doc WHENCE LICENCE.iwlwifi_firmware
%{_firmwarepath}/iwlwifi-4965-*.ucode

#----------------------------------------------------------------------------

%package -n iwl-ax2xx-firmware
Summary:	Firmware for Intel® Wi-Fi 6 AX201 160MHz network adaptors
License:	Redistributable, no modification permitted
# packages 200 and 201 were merged into one
Conflicts:	iwl-ax200-firmware < 4:1-1.git7a300.1
Obsoletes:	iwl-ax200-firmware < 4:1-1.git7a300.1
Conflicts:	iwl-ax201-firmware < 4:1-1.git7a300.1
Obsoletes:	iwl-ax201-firmware < 4:1-1.git7a300.1

%description -n iwl-ax2xx-firmware
This package contains the firmware required by the iwlwifi driver
for Linux.  Usage of the firmware is subject to the terms and conditions
contained inside the provided LICENSE.iwlwifi_firmware file.
Please read it carefully.

%files -n iwl-ax2xx-firmware
%doc WHENCE LICENCE.iwlwifi_firmware
%{_firmwarepath}/iwlwifi-Qu-*.ucode
# What is QuZ*, for which hardware?! I didn't find.
%{_firmwarepath}/iwlwifi-QuZ-*.ucode
%{_firmwarepath}/iwlwifi-ty-*.ucode
%{_firmwarepath}/iwlwifi-ty-*.pnvm
%{_firmwarepath}/iwlwifi-cc-*.ucode
%{_firmwarepath}/iwlwifi-so-a0-*.pnvm
%{_firmwarepath}/iwlwifi-so-a0-*.ucode
%{_firmwarepath}/iwlwifi-gl-*.ucode
%{_firmwarepath}/iwlwifi-gl-*.pnvm
%{_firmwarepath}/iwlwifi-ma-*.ucode
%{_firmwarepath}/iwlwifi-ma-*.pnvm

#----------------------------------------------------------------------------

%package -n libertas-usb8388-firmware
Summary:	Firmware for Marvell Libertas USB 8388 Network Adapter
License:	Redistributable, no modification permitted
Obsoletes:	libertas-usb8388-firmware < 2:5.110.22.p23-8

%description -n libertas-usb8388-firmware
Firmware for Marvell Libertas USB 8388 Network Adapter.

%files -n libertas-usb8388-firmware
%doc WHENCE LICENCE.Marvell
%dir %{_firmwarepath}/libertas
%{_firmwarepath}/libertas/usb8388_v9.bin

#----------------------------------------------------------------------------

%package -n libertas-usb8388-olpc-firmware
Summary:	OLPC firmware for Marvell Libertas USB 8388 Network Adapter
License:	Redistributable, no modification permitted

%description -n libertas-usb8388-olpc-firmware
Firmware for Marvell Libertas USB 8388 Network Adapter with OLPC mesh network
support.

%files -n libertas-usb8388-olpc-firmware
%doc WHENCE LICENCE.Marvell
%dir %{_firmwarepath}/libertas
%{_firmwarepath}/libertas/usb8388_olpc.bin

#----------------------------------------------------------------------------

%package -n libertas-sd8686-firmware
Summary:	Firmware for Marvell Libertas SD 8686 Network Adapter
License:	Redistributable, no modification permitted
Obsoletes:	libertas-sd8686-firmware < 9.70.20.p0-4

%description -n libertas-sd8686-firmware
Firmware for Marvell Libertas SD 8686 Network Adapter.

%files -n libertas-sd8686-firmware
%doc WHENCE LICENCE.Marvell
%dir %{_firmwarepath}/libertas
%{_firmwarepath}/libertas/sd8686*

#----------------------------------------------------------------------------

%package -n libertas-sd8787-firmware
Summary:	Firmware for Marvell Libertas SD 8787 Network Adapter
License:	Redistributable, no modification permitted

%description -n libertas-sd8787-firmware
Firmware for Marvell Libertas SD 8787 Network Adapter.

%files -n libertas-sd8787-firmware
%doc WHENCE LICENCE.Marvell
%dir %{_firmwarepath}/mrvl
%{_firmwarepath}/mrvl/sd8787*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{commit}

%build
# Remove firmware shipped in separate packages already
# Perhaps these should be built as subpackages of linux-firmware?
rm -rf ess korg sb16 yamaha
# And _some_ conexant firmware.
rm v4l-cx23418-apu.fw v4l-cx23418-cpu.fw v4l-cx23418-dig.fw v4l-cx25840.fw

# Remove source files we don't need to install
rm -f usbdux/*dux */*.asm
rm -rf carl9170fw

# No need to install old firmware versions where we also provide newer versions
# which are preferred and support the same (or more) hardware
rm -f libertas/sd8686_v8*
rm -f libertas/usb8388_v5.bin

# Remove firmware for Creative CA0132 HD as it's in alsa-firmware
# alsa-firmware was dropped in rosa2019.1
%if %{mdvver} < 201910
rm -f ctefx.bin ctspeq.bin
%endif

%install
# TODO: compress firmware?
# TODO: package and BR rdfind and use install instead of install-nodedup?
# Will such deduplication make sense for RPM?
make install-nodedup DESTDIR=%{buildroot} FIRMWAREDIR=%{_firmwarepath}

# Create file list but exclude firmwares that we place in subpackages
FILEDIR=`pwd`
pushd %{buildroot}/%{_firmwarepath}
find . \! -type d > $FILEDIR/linux-firmware.files
find . -type d | sed -e '/^.$/d' > $FILEDIR/linux-firmware.dirs
popd
sed -i -e 's:^./::' linux-firmware.{files,dirs}
sed -i -e '/^iwlwifi/d' \
	-i -e '/^libertas\/sd8686/d' \
	-i -e '/^libertas\/usb8388/d' \
	-i -e '/^mrvl\/sd8787/d' \
	linux-firmware.files
sed -i -e 's!^!%{_firmwarepath}/!' linux-firmware.{files,dirs}
# add " " to deal with files with spaces in names
sed -i -e 's,^,",' -e 's,$,",' linux-firmware.files
sed -e 's/^/%%dir /' linux-firmware.dirs >> linux-firmware.files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14490 |21mr|linuxsampler-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		linuxsampler
Summary:	Professional grade software audio sampler
Version:	2.2.0
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://www.linuxsampler.org/
Source0:	http://download.linuxsampler.org/packages/%{name}-%{version}.tar.bz2
Patch0:		linuxsampler-aarch64.patch
BuildRequires:	bison
BuildRequires:	lv2-devel >= 1.0.0
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gig) >= 4.1.0
BuildRequires:	pkgconfig(dssi)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(sqlite3) >= 3.3

%description
LinuxSampler is a professional grade software audio sampler that aims to
deliver performance and features at par with hardware sampler devices.

%files
%doc ChangeLog COPYING NEWS README
%{_bindir}/%{name}
%{_bindir}/ls_instr_script
%{_bindir}/lscp
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/lscp.1.*
%{_prefix}/README.urpmi
%{_localstatedir}/lib/%{name}/instruments.db

#--------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Libraries for %{name}
Provides:	lib%{name} = %{EVRD}

%description -n %{libname}
Libraries from %{name}.

%files -n %{libname}
%doc ChangeLog COPYING NEWS README
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
#/plugins
%{_libdir}/%{name}/lib%{name}.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{_lib}%{name}3-devel

%description -n %{devname}
Development libraries from %{name}.

%files -n %{devname}
%doc ChangeLog COPYING NEWS README
%dir %{_includedir}/%{name}
%dir %{_includedir}/%{name}/common
%dir %{_includedir}/%{name}/drivers
%dir %{_includedir}/%{name}/drivers/audio
%dir %{_includedir}/%{name}/drivers/midi
%dir %{_includedir}/%{name}/effects
%dir %{_includedir}/%{name}/engines
%dir %{_includedir}/%{name}/plugins
%dir %{_includedir}/%{name}/scriptvm
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/common/*.h
%{_includedir}/%{name}/drivers/*.h
%{_includedir}/%{name}/drivers/audio/*.h
%{_includedir}/%{name}/drivers/midi/*.h
%{_includedir}/%{name}/effects/*.h
%{_includedir}/%{name}/engines/*.h
%{_includedir}/%{name}/plugins/*.h
%{_includedir}/%{name}/scriptvm/*.h
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/dssi/*.so
%{_libdir}/lv2/%{name}.lv2/*.so
%{_libdir}/lv2/%{name}.lv2/*.ttl
%{_libdir}/%{name}/liblinuxsampler.so

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

# Fix perms
find . -name "*.cpp" -o -name "*.h" |xargs chmod 0644


%build
export CXXFLAGS="%{optflags} -std=gnu++14"
%configure \
	--disable-static \
	--disable-arts-driver \
	--disable-artstest \
	--disable-midishare-driver \
	--enable-signed-triang-algo=intmathabs \
	--enable-unsigned-triang-algo=diharmonic

%make


%install
%makeinstall_std


cat > %{buildroot}/%{_prefix}/README.urpmi <<EOF

WARNING
-------
LinuxSampler is licensed under the GNU GPL with the exception that
USAGE of the source code, libraries and applications FOR COMMERCIAL
HARDWARE OR SOFTWARE PRODUCTS IS NOT ALLOWED  without prior written
permission by the LinuxSampler authors. If you have questions on the
subject, that are not yet covered by the FAQ, please contact us.

EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14491 |21mr|lirc-0.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define build_dkms 0

%global __requires_exclude .*/bin/true

%define major 0
%define libname %mklibname %{name}_client %{major}
%define devname %mklibname %{name}_client -d

Summary:	Linux Infrared Remote Control daemons
Name:		lirc
Version:	0.10.2
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://www.lirc.org/
Source0:	https://prdownloads.sourceforge.net/lirc/%{name}-%{version}.tar.bz2
Source2:	%{name}-tmpfiles.conf
Source3:	lircd.service
Source4:	lircmd.service
Source5:	http://svn.debian.org/viewsvn/pkg-lirc/lirc/trunk/debian/liblircclient0.pc
# From Fedora
Patch0:		https://src.fedoraproject.org/rpms/lirc/raw/rawhide/f/0002-lirc-setup-Fix-crash-on-start-on-missing-lirc.config.patch
BuildRequires:	help2man
BuildRequires:	systemd
BuildRequires:	xsltproc
BuildRequires:	iguanair-devel
BuildRequires:	python3dist(pyyaml)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	/usr/bin/pathfix.py
Requires(post,preun):	rpm-helper
Requires(post):	systemd
Requires:	setserial
Requires:	typelib(Vte) = 2.91

%description
LIRC is a package that allows you to decode and send infra-red signals
of many (but not all) commonly used remote controls.

Configuration files for many remotes are locate in lirc-remotes package.

%files
%doc AUTHORS ChangeLog contrib/{irman2lirc,lircs} doc/html doc/images doc/irxevent.keys NEWS README
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/lirc/*.conf
%{_datadir}/lirc
%dir %{_var}/run/lirc
%ghost %{_var}/run/lirc/lircd
%ghost %{_var}/run/lirc/lircm
%{_libdir}/lirc/plugins/*
%{_mandir}/*/*
# socket file exists on some arches
%optional %{_unitdir}/*.socket
%{python3_sitearch}/*
%{_sbindir}/*
%{_sharedstatedir}/lirc/*
%{_sysconfdir}/lirc/irexec.lircrc
%{_sysconfdir}/lirc/lircd.conf.d/README.conf.d
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/*.service

%pre
if [ $1 = 2 ] && ! [ -e %{_sysconfdir}/lirc ]; then
	mkdir -p %{_sysconfdir}/lirc
	touch %{_sysconfdir}/lirc/mdv-086-migration
fi

%post
%create_ghostfile /var/log/lircd root root 644
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
if [ $1 = 2 ] && [ -e %{_sysconfdir}/lirc/mdv-086-migration ]; then
	mv -vf %{_sysconfdir}/lircd.conf %{_sysconfdir}/lirc/lircd.conf 2>/dev/null
	mv -vf %{_sysconfdir}/lircmd.conf %{_sysconfdir}/lirc/lircmd.conf 2>/dev/null
	mv -vf %{_sysconfdir}/lircrc %{_sysconfdir}/lirc/lircrc 2>/dev/null
	rm -f %{_sysconfdir}/lirc/mdv-086-migration
fi
%_post_service lircd
%_post_service lircmd

%preun
%_preun_service lircmd
%_preun_service lircd

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LIRC libraries
Group:		System/Libraries
Obsoletes:	%{_lib}lirc0 < 0.9.0-15
Conflicts:	%{_lib}lirc0 < 0.9.0-15

%description -n %{libname}
This package provides the libraries necessary to run lirc client
programs.

%files -n %{libname}
%{_libdir}/libirrecord.so.%{major}*
%{_libdir}/liblirc_client.so.%{major}*
%{_libdir}/liblirc_driver.so.%{major}*
%{_libdir}/liblirc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header and library files for LIRC development
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}lirc-devel < 0.9.0-15
Conflicts:	%{_lib}lirc-devel < 0.9.0-15

%description -n %{devname}
This package provides the files necessary to develop LIRC-based
programs.

%files -n %{devname}
%{_datadir}/doc/lirc/lirc.org/*
%{_datadir}/doc/lirc/plugindocs
%{_datadir}/doc/lirc/VERSION
%{_includedir}/lirc*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%if %build_dkms

%package -n dkms-%{name}
Summary:	Kernel modules for LIRC
Group:		System/Kernel and hardware
Requires(post,preun):	dkms

%description -n dkms-%{name}
This package provides the kernel modules for LIRC.

Install this package if the LIRC driver you are using requires
them and your kernel doesn't include them.

%files -n dkms-%{name}
/usr/src/%{name}-%{version}-%{release}

%post -n dkms-%{name}
dkms add -m %{name} -v %{version}-%{release} --rpm_safe_upgrade &&
dkms build -m %{name} -v %{version}-%{release} --rpm_safe_upgrade &&
dkms install -m %{name} -v %{version}-%{release} --rpm_safe_upgrade --force
true

%preun -n dkms-%{name}
dkms remove -m %{name} -v %{version}-%{release} --rpm_safe_upgrade --all
true

%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,<sys/types.h>,<sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
autoreconf -fi
%configure	\
	--disable-static		\
	--localstatedir=/var		\
	--with-driver=userspace		\
	--with-irq=4			\
	--with-kerneldir=$(pwd) 	\
	--with-port=0x3f8		\
	--with-syslog=LOG_DAEMON	\
	--with-transmitter		\
	--with-x
%make

%install
mkdir -p %{buildroot}%{_datadir}/aclocal
mkdir -p %{buildroot}/var/log

%makeinstall_std

pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/irtext2udp %{buildroot}%{_bindir}/irdb-get %{buildroot}%{_bindir}/pronto2lirc %{buildroot}%{_bindir}/lirc-init-db %{buildroot}%{_sbindir}/lircd-setup

install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -D -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/lircd.service
install -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/lircmd.service
install -m644 %{SOURCE5} -D %{buildroot}%{_libdir}/pkgconfig/liblircclient0.pc
sed -i -e "s/0.8.3/%{version}/" -e "s^/lib^/%{_lib}^" %{buildroot}%{_libdir}/pkgconfig/liblircclient0.pc

mkdir -p %{buildroot}%{_sysconfdir}/lirc
cat > %{buildroot}%{_sysconfdir}/lirc/lircd.conf<<END
#
# This is a placeholder for your configuration file.
# See %{_datadir}/%{name}-remotes for some examples.
# You might need to install %{name}-remotes package.
#
END

cp -f %{buildroot}%{_sysconfdir}/lirc/lirc{,m}d.conf

%if %build_dkms

# dkms

install -d -m755 %{buildroot}/usr/src/%{name}-%{version}-%{release}
cp -a Makefile Makefile.in Makefile.am acinclude.m4 \
	configure.ac config.status config.h \
	%{buildroot}/usr/src/%{name}-%{version}-%{release}

# Makefiles call there to unnecessarily regenerate files
echo '#!/bin/true' > %{buildroot}/usr/src/%{name}-%{version}-%{release}/configure
chmod +x %{buildroot}/usr/src/%{name}-%{version}-%{release}/configure

cp -a drivers %{buildroot}/usr/src/%{name}-%{version}-%{release}

# get modulelist
pushd drivers
drivers="lirc_dev $(echo lirc_* | sed -e "s/lirc_gpio //" -e "s/lirc_dev //")"
popd

cat > %{buildroot}/usr/src/%{name}-%{version}-%{release}/dkms.conf <<EOF
PACKAGE_NAME="%{name}"
PACKAGE_VERSION="%{version}-%{release}"
MAKE[0]="droot=\\\$(pwd); for driver in $drivers; do cd \\\$droot/drivers/\\\$driver; make \
	KERNEL_LOCATION=\$kernel_source_dir AUTOMAKE=true AUTOCONF=true ACLOCAL=true; done"
CLEAN="droot=\\\$(pwd); for driver in $drivers; do cd \\\$droot/drivers/\\\$driver; make \
	clean AUTOMAKE=true AUTOCONF=true ACLOCAL=true; done"
AUTOINSTALL=yes
EOF

i=0
for module in $drivers; do
	cat >> %{buildroot}/usr/src/%{name}-%{version}-%{release}/dkms.conf <<-EOF
	BUILT_MODULE_NAME[$i]="$module"
	BUILT_MODULE_LOCATION[$i]="drivers/$module"
	DEST_MODULE_LOCATION[$i]="/kernel/drivers/input/misc"
	EOF
	i=$((i+1))
done

%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14492 |21mr|listres-1.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		listres
Version:	1.0.4
Release:	5
Summary:	List resources in widgets
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
BuildRequires:	x11-util-macros

%description
The listres program generates a list of a widget's resource database.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/listres
%{_mandir}/man1/listres.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14493 |21mr|litehtml-0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define major     0
%define libname   %mklibname %{name} %{major}
%define devlitehtml %mklibname %{name} -d

Name:           litehtml
Version:	0.6
Release:	2
Summary:        Fast and lightweight HTML/CSS rendering engine
Group:          System/Libraries
License:        BSD
Url:            https://github.com/litehtml/litehtml
Source0:        https://github.com/litehtml/litehtml/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  gcc-c++

%description
litehtml is the lightweight HTML rendering engine with CSS2/CSS3 support.
Note that litehtml itself does not draw any text, pictures or other graphics
and that litehtml does not depend on any image/draw/font library.
#------------------------------------------------------------
%package -n     %{libname}
Summary:        Fast and lightweight HTML/CSS rendering engine
Group:          System/Libraries
Provides:       %{name} = %{EVRD}

%description -n %{libname}
litehtml is the lightweight HTML rendering engine with CSS2/CSS3 support.
Note that litehtml itself does not draw any text, pictures or other graphics
and that litehtml does not depend on any image/draw/font library.

%files -n %{libname}
%doc README.md LICENSE
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.*
%{_libdir}/libgumbo.so.%{major}
%{_libdir}/libgumbo.so.%{major}.*
#------------------------------------------------------------


%package -n     %{devlitehtml}
Summary:        Development files for %{name}
Group:          Development/C
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devlitehtml}
The devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devlitehtml}
%doc README.md LICENSE
%{_includedir}/%{name}/
%{_includedir}/gumbo/
%{_libdir}/lib%{name}.so
%{_libdir}/libgumbo.so
%{_libdir}/cmake/%{name}/
%{_libdir}/cmake/gumbo/
#----------------------------------------------------------


%prep
%setup -q

%build
%cmake -DBUILD_TESTING=OFF \
       -DEXTERNAL_GUMBO=OFF

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14494 |21mr|littleproxy-1.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          littleproxy
Version:       1.1.0
Release:       6
Summary:       High Performance HTTP Proxy
License:       ASL 2.0
URL:           http://www.littleshoot.org/littleproxy/
Source0:       https://github.com/adamfisk/LittleProxy/archive/%{name}-%{version}.tar.gz

Patch0:        littleproxy-1.1.0-remove-netty-udt.patch

BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-cli:commons-cli)
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(dnsjava:dnsjava)
BuildRequires: mvn(io.netty:netty-all)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.commons:commons-exec)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.eclipse.jetty:jetty-server:8.1)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.jctools:jctools-core)
BuildRequires: mvn(org.littleshoot:dnssec4j)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
LittleProxy is a high performance HTTP proxy written in Java and
using the Netty networking framework.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n LittleProxy-%{name}-%{version}

find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%patch0 -p1
%pom_remove_dep :barchart-udt-bundle
%pom_remove_dep :netty-transport-udp
rm src/test/java/org/littleshoot/proxy/*UDT*Test.java

# Unavailable plugins
%pom_remove_plugin :nexus-staging-maven-plugin

%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-shade-plugin
mkdir src/main/resources
cp -p src/main/config/log4j.xml src/main/resources

%pom_xpath_set "pom:project/pom:packaging" bundle
%pom_add_plugin org.apache.felix:maven-bundle-plugin . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Version>\${project.version}</Bundle-Version>
    <Main-Class>org.littleshoot.proxy.Launcher</Main-Class>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

# 8.1.17.v20150415
%pom_change_dep :jetty-server ::8.1
%pom_xpath_inject "pom:dependency[pom:artifactId = 'jetty-server']" "
<exclusions>
 <exclusion>
  <groupId>org.eclipse.jetty.orbit</groupId>
  <artifactId>javax.servlet</artifactId>
 </exclusion>
</exclusions>"

# org.seleniumhq.selenium:selenium-java:2.46.0
%pom_remove_dep :selenium-java
rm src/test/java/org/littleshoot/proxy/EndToEndStoppingTest.java
# org.mock-server:mockserver-netty:3.10.4
%pom_remove_dep :mockserver-netty
rm src/test/java/org/littleshoot/proxy/ClonedProxyTest.java \
 src/test/java/org/littleshoot/proxy/HttpFilterTest.java \
 src/test/java/org/littleshoot/proxy/KeepAliveTest.java \
 src/test/java/org/littleshoot/proxy/MessageTerminationTest.java \
 src/test/java/org/littleshoot/proxy/ProxyHeadersTest.java \
 src/test/java/org/littleshoot/proxy/ServerGroupTest.java \
 src/test/java/org/littleshoot/proxy/TimeoutTest.java

# NoClassDefFoundError: org/jctools/queues/SpscLinkedQueue
%pom_add_dep org.jctools:jctools-core:1.2.1:test

# Connection refused: /127.0.0.1:0
rm src/test/java/org/littleshoot/proxy/ChainedProxyWithFallbackTest.java \
 src/test/java/org/littleshoot/proxy/ChainedProxyWithFallbackToDirectDueToSSLTest.java \
 src/test/java/org/littleshoot/proxy/ChainedProxyWithFallbackToOtherChainedProxyDueToSSLTest.java \
 src/test/java/org/littleshoot/proxy/ClientAuthenticationNotRequiredTCPChainedProxyTest.java \
 src/test/java/org/littleshoot/proxy/EncryptedTCPChainedProxyTest.java \
 src/test/java/org/littleshoot/proxy/MitmProxyTest.java \
 src/test/java/org/littleshoot/proxy/MITMUsernamePasswordAuthenticatingProxyTest.java \
 src/test/java/org/littleshoot/proxy/MitmWithChainedProxyTest.java \
 src/test/java/org/littleshoot/proxy/MitmWithClientAuthenticationNotRequiredTCPChainedProxyTest.java \
 src/test/java/org/littleshoot/proxy/MitmWithEncryptedTCPChainedProxyTest.java \
 src/test/java/org/littleshoot/proxy/MitmWithUnencryptedTCPChainedProxyTest.java \
 src/test/java/org/littleshoot/proxy/SimpleProxyTest.java \
 src/test/java/org/littleshoot/proxy/UnencryptedTCPChainedProxyTest.java \
 src/test/java/org/littleshoot/proxy/UsernamePasswordAuthenticatingProxyTest.java \
 src/test/java/org/littleshoot/proxy/MitmWithBadServerAuthenticationTCPChainedProxyTest.java \
 src/test/java/org/littleshoot/proxy/MitmWithBadClientAuthenticationTCPChainedProxyTest.java

# @ random fails with: Socket Too many open files
rm src/test/java/org/littleshoot/proxy/IdleTest.java

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license COPYRIGHT.txt LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license COPYRIGHT.txt LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14495 |21mr|live-2021.11.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define maj_basicusageenvironment 1
%define maj_usageenvironment 3
%define maj_groupsock 30
%define maj_livemedia 101

%define libusageenvironment %mklibname usageenvironment %{maj_usageenvironment}
%define libbasicusageenvironment %mklibname basicusageenvironment %{maj_basicusageenvironment}
%define libgroupsock %mklibname groupsock %{maj_groupsock}
%define liblivemedia %mklibname livemedia %{maj_livemedia}

%define devusageenvironment %mklibname usageenvironment -d
%define devbasicusageenvironment %mklibname basicusageenvironment -d
%define devgroupsock %mklibname groupsock -d
%define devlivemedia %mklibname livemedia -d

Summary:	LIVE555 Streaming Media Library
Name:		live
Version:	2021.11.14
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.live555.com/liveMedia/
Source0:	http://live555.com/liveMedia/public/%{name}.%{version}.tar.gz
Patch0:		live-force-link-ssl-tls.patch
Patch1:		DEBIAN-Reduce-number-of-unresolved-symbols-by-linking-libra.patch
Patch2:		DEBIAN-Add-a-pkg-config-file-for-the-shared-libraries.patch
Patch3:		0001-Unstripped-binaries-error-fix.patch
BuildRequires:	pkgconfig(openssl)
BuildRequires:	libpqxx-devel

%description
The live555.com streaming media code is a set of C++ libraries for multimedia
streaming, using open standard protocols (RTP/RTCP, RTSP, SIP). These
libraries can be used to build applications to stream, receive and process
MPEG, H.263+ or JPEG video, several audio codecs, and can easily be extended
to support additional codecs. They can also be used to build basic RTSP (Real
Time Streaming Protocol) or SIP (Session Initiation Protocol) clients and
servers.

This package contains the live555.com streaming servers (live555MediaServer
and live555ProxyServer), the example programs (openRTSP, playSIP, sapWatch,
vobStreamer) and a variety of test tools.

%files
%doc COPYING README
%{_bindir}/MPEG2TransportStreamIndexer
%{_bindir}/live555MediaServer
%{_bindir}/openRTSP
%{_bindir}/playSIP
%{_bindir}/sapWatch
%{_bindir}/test*
%{_bindir}/vobStreamer
%{_bindir}/live555ProxyServer
%{_bindir}/registerRTSPStream
%{_bindir}/live555HLSProxy
%{_bindir}/mikeyParse

#------------------------------------------------------------------------------

%package -n live-devel
Summary:	Development files of the LIVE555 Streaming Media Library
Group:		Development/C++
Requires:	%{devbasicusageenvironment} = %{EVRD}
Requires:	%{devusageenvironment} = %{EVRD}
Requires:	%{devgroupsock} = %{EVRD}
Requires:	%{devlivemedia} = %{EVRD}

%description -n live-devel
This is a meta-package for a set of C++ libraries for multimedia streaming,
using open standard protocols (RTP/RTCP, RTSP, SIP). These libraries -
which can be compiled for Unix (including Linux and Mac OS X), Windows, and
QNX (and other POSIX-compliant systems) - can be used to build
streaming applications.

This is a meta-package for a set of development libraries and headers.

%files -n live-devel
%{_libdir}/pkgconfig/live555.pc

#------------------------------------------------------------------------------

%package -n %{libbasicusageenvironment}
Summary:	Multimedia RTSP streaming library (BasicUsageEnvironment class)

%description -n %{libbasicusageenvironment}
This package contains the BasicUsageEnvironment library which defines one
concrete implementation (i.e., subclasses) of the "UsageEnvironment" classes,
for use in simple, console applications. Read events and delayed operations are
handled using a select() loop.

%files -n %{libbasicusageenvironment}
%{_libdir}/libBasicUsageEnvironment.so.%{maj_basicusageenvironment}
%{_libdir}/libBasicUsageEnvironment.so.%{maj_basicusageenvironment}.*

#------------------------------------------------------------------------------

%package -n %{devbasicusageenvironment}
Summary:	Multimedia RTSP streaming library (BasicUsageEnvironment class)
Requires:	%{libbasicusageenvironment} = %{EVRD}

%description -n %{devbasicusageenvironment}
This package contains the BasicUsageEnvironment library which defines one
concrete implementation (i.e., subclasses) of the "UsageEnvironment" classes,
for use in simple, console applications. Read events and delayed operations are
handled using a select() loop.

%files -n %{devbasicusageenvironment}
%{_libdir}/libBasicUsageEnvironment.so
%{_includedir}/BasicUsageEnvironment/*.hh

#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

%package -n %{libusageenvironment}
Summary:	Multimedia RTSP streaming library (UsageEnvironment classes)

%description -n %{libusageenvironment}
This package contains the UsageEnvironment library. The "UsageEnvironment" and
"TaskScheduler" classes are used for scheduling deferred events, for assigning
handlers for asynchronous read events, and for outputting error/warning
messages. Also, the "HashTable" class defines the interface to a generic hash
table, used by the rest of the code.

These are all abstract base classes; they must be subclassed for use in an
implementation. These subclasses can exploit the particular properties of the
environment in which the program will run - e.g., its GUI and/or scripting
environment.

%files -n %{libusageenvironment}
%{_libdir}/libUsageEnvironment.so.%{maj_usageenvironment}
%{_libdir}/libUsageEnvironment.so.%{maj_usageenvironment}.*

#------------------------------------------------------------------------------

%package -n %{devusageenvironment}
Summary:	Multimedia RTSP streaming library (UsageEnvironment classes)
Requires:	%{libusageenvironment} = %{EVRD}

%description -n %{devusageenvironment}
This package contains the UsageEnvironment library. The "UsageEnvironment" and
"TaskScheduler" classes are used for scheduling deferred events, for assigning
handlers for asynchronous read events, and for outputting error/warning
messages. Also, the "HashTable" class defines the interface to a generic hash
table, used by the rest of the code.

These are all abstract base classes; they must be subclassed for use in an
implementation. These subclasses can exploit the particular properties of the
environment in which the program will run - e.g., its GUI and/or scripting
environment.

%files -n %{devusageenvironment}
%{_libdir}/libUsageEnvironment.so
%{_includedir}/UsageEnvironment/*.hh

#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

%package -n %{libgroupsock}
Summary:	Multimedia RTSP streaming library (network interfaces and sockets)

%description -n %{libgroupsock}
This package contains the groupsock library. The classes in this library
encapsulate network interfaces and sockets. In particular, the "Groupsock"
class encapsulates a socket for sending (and/or receiving) multicast datagrams.

%files -n %{libgroupsock}
%{_libdir}/libgroupsock.so.%{maj_groupsock}
%{_libdir}/libgroupsock.so.%{maj_groupsock}.*

#------------------------------------------------------------------------------

%package -n %{devgroupsock}
Summary:	Multimedia RTSP streaming library (network interfaces and sockets)
Requires:	%{libgroupsock} = %{EVRD}

%description -n %{devgroupsock}
This package contains the groupsock library. The classes in this library
encapsulate network interfaces and sockets. In particular, the "Groupsock"
class encapsulates a socket for sending (and/or receiving) multicast datagrams.

%files -n %{devgroupsock}
%{_libdir}/libgroupsock.so
%{_includedir}/groupsock/*.hh
%{_includedir}/groupsock/*.h

#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

%package -n %{liblivemedia}
Summary:	Multimedia RTSP streaming library (network interfaces and sockets)

%description -n %{liblivemedia}
This package contains the livemedia library. The classes in this library
encapsulate network interfaces and sockets. In particular, the "livemedia"
class encapsulates a socket for sending (and/or receiving) multicast datagrams.

%files -n %{liblivemedia}
%{_libdir}/libliveMedia.so.%{maj_livemedia}
%{_libdir}/libliveMedia.so.%{maj_livemedia}.*

#------------------------------------------------------------------------------

%package -n %{devlivemedia}
Summary:	Multimedia RTSP streaming library (network interfaces and sockets)
Requires:	%{liblivemedia} = %{EVRD}

%description -n %{devlivemedia}
This package contains the livemedia library. The classes in this library
encapsulate network interfaces and sockets. In particular, the "livemedia"
class encapsulates a socket for sending (and/or receiving) multicast datagrams.

%files -n %{devlivemedia}
%{_libdir}/libliveMedia.so
%{_includedir}/liveMedia/*.hh

#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

%prep
%setup -qn %{name}
%autopatch -p1
sed -i -e "s/-O2/$RPM_OPT_FLAGS/" \
  config.linux-with-shared-libraries
find . -name '*.cpp' -exec chmod 644 {} \;

%build
./genMakefiles linux-with-shared-libraries
%make_build LINK="%{__cxx} -o" LIBRARY_LINK="%{__cc} -o" \
	C_COMPILER="%{__cc}" CPLUSPLUS_COMPILER="%{__cxx}" \
	CFLAGS="%{optflags} -DRTSPCLIENT_SYNCHRONOUS_INTERFACE=1" \
	PREFIX=%{_prefix} LIBDIR=%{_libdir}

%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14496 |21mr|livecd-tools-28.2-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NOTE: This package is fully arched due to dependency sensitivity.
# Please do not remove archfulness on Requires/Provides.

%define debug_package %{nil}

%global min_dnf_ver 4.0
%global min_pykickstart_ver 2.25

Name:          livecd-tools
Summary:       Tools for building live CDs
Epoch:         1
Version:       28.2
Release:       29
License:       GPLv2
Group:         System/Base
URL:           https://github.com/livecd-tools/livecd-tools
Source0:       https://github.com/livecd-tools/livecd-tools/archive/refs/tags/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
Source1:       grub2-everywhere.diff
Source8:       e2k-implementation.diff

Source2:       it_IT.po
Source3:       fr_FR.po
Source4:       de_DE.po
Source5:       ru_RU.po
Source6:       es_ES.po
Source7:       pt_PT.po

# Git tree with patches: https://github.com/mikhailnov/livecd-tools/tree/rosa-v28.2

# https://github.com/livecd-tools/livecd-tools/issues/156
Patch0001: 0001-Add-ability-to-prevent-SELinux-relabelling-from-host.patch
# add "anaconda" and "livenet" dracut modules to LiveCD
Patch0002: 0002-Add-livenet-and-anaconda-initrd-modules.patch
Patch0003: 0003-Copy-all-files-that-match-a-glob.patch
Patch0004: 0004-Leave-etc-vconsole.conf-not-changed.patch
Patch0005: 0005-Off-sss-hack.patch
Patch0006: 0006-Do-not-check-for-installed-packages-they-are-pulled-.patch
Patch0007: 0007-Adapt-Grub-and-Shim-paths-for-ROSA.patch
# https://github.com/livecd-tools/livecd-tools/pull/193
Patch0008: 0008-Fix-name-of-x86_64-bootloader-according-to-UEFI-spec.patch
# https://github.com/livecd-tools/livecd-tools/pull/196
Patch0009: 0009-Fix-check-if-EFI-bootloader-exists.patch
# https://github.com/livecd-tools/livecd-tools/pull/198
Patch0010: 0010-mkdir-isolinux-on-aarch64.patch
# https://github.com/livecd-tools/livecd-tools/pull/197
Patch0011: 0011-Fix-missync-of-locations-of-efiboot.img.patch
# https://github.com/livecd-tools/livecd-tools/pull/199
Patch0012: 0012-Modernize-detection-of-checkisomd5.patch

BuildRequires: python3-devel
# pod2man comes from perl
BuildRequires: perl
# %%autosetup -S git_am
BuildRequires: git-core

Requires:      python3-imgcreate%{?_isa} = %{EVRD}

%ifarch %{ix86} %{x86_64}
Requires:      livecd-iso-to-mediums = %{EVRD}
Requires: %{_bindir}/msgfmt
%endif

Requires:	%{_bindir}/implantisomd5
Requires:	%{_bindir}/checkisomd5
Requires:	%{_bindir}/msgfmt

%description
Tools for generating live CDs on Fedora based systems including
derived distributions such as RHEL, CentOS and others. See
http://fedoraproject.org/wiki/FedoraLiveCD for more details.

%package -n python-imgcreate-sysdeps
Summary:       Common system dependencies for python-imgcreate
Group:         System/Base
Requires:      coreutils
Requires:      xorriso
Requires:      isomd5sum
Requires:      parted
Requires:      util-linux
Requires:      dosfstools
Requires:      e2fsprogs
%ifarch        aarch64
Requires:      mkefiboot
%endif
Requires:      rsync
%ifarch %{ix86} %{x86_64} ppc ppc64
Requires:      hfsplus-tools
%endif
%ifarch ppc
Requires:      yaboot
%endif
Requires:      dumpet
# https://github.com/livecd-tools/livecd-tools/commit/4dcf44f8
# https://bugzilla.redhat.com/show_bug.cgi?id=1127103
# For now off sss in /etc/nsswitch.conf in LiveCD build scripts
#Requires:      sssd-client
Requires:      cryptsetup
Requires:      squashfs-tools
Requires:      policycoreutils
%ifnarch %{e2k}
Requires:      grub2
# shim binaries are copied into the LiveCD, shim of native arch is copied always
# and shim of the secondary arch is copied only if it exists;
# RPM file coloring should make coinstalling shims of different arches possible
Requires:      (shim%{_isa} or shim-unsigned%{_isa})
%endif
%ifarch %{x86_64}
Recommends:    (shim(x86-32) or shim-unsigned(x86-32))
%endif

%description -n python-imgcreate-sysdeps
This package describes the common system dependencies for
python-imgcreate.

%package -n python3-imgcreate
Summary:       Python 3 modules for building system images
Group:         Development/Python
%{?python_provide:%python_provide python3-imgcreate}
Requires:      python-imgcreate-sysdeps%{?_isa} = %{EVRD}
Requires:      python3-parted
Requires:      python3-dnf >= %{min_dnf_ver}
Requires:      python3-kickstart >= %{min_pykickstart_ver}
Requires:      python3-six
Requires:      python3-libselinux
Requires:      python3-dbus
Requires:      python3-urlgrabber

%description -n python3-imgcreate
Python 3 modules that can be used for building images for things
like live image or appliances.


%ifarch %{ix86} %{x86_64}
%package -n livecd-iso-to-mediums
Summary:       Tools for installing ISOs to different mediums
Group:         System/Base
Requires:      python-imgcreate-sysdeps%{?_isa} = %{EVRD}
Requires:      syslinux-extlinux
Requires:      syslinux-tftpboot


%description -n livecd-iso-to-mediums
Tools for installing Live CD ISOs to different mediums
(e.g. USB sticks, hard drives, PXE boot, etc.)
%endif

%prep
%autosetup -p1 -S git_am -n %{name}-%{name}-%{version}
patch -p1 < %{SOURCE1}
patch -p1 < %{SOURCE8}

%build
# Nothing to do


%install
%make_install PYTHON=python3

mkdir -p %{buildroot}%{_datadir}/%{name}/grub2/locales
for po in %{SOURCE2}  %{SOURCE3}  %{SOURCE4} %{SOURCE5} %{SOURCE6} %{SOURCE7}; do
    #msgfmt $po -o %{buildroot}%{_datadir}/%{name}/grub2/locales/"$(echo $(basename $po) |sed 's/.po$/.mo/')"
    install -m 644 $po %{buildroot}%{_datadir}/%{name}/grub2/locales/
done

# Delete installed docs, we'll grab them later
rm -rf %{buildroot}%{_datadir}/doc/%{name}

%ifnarch %{ix86} %{x86_64}
# livecd-iso-to-mediums doesn't work without syslinux
rm -rfv %{buildroot}%{_bindir}/livecd-iso-to-*
rm -rfv %{buildroot}%{_mandir}/man8/livecd-iso-to-*
%endif

%files
%license COPYING
%doc AUTHORS README HACKING
%doc config/livecd-fedora-minimal.ks
%doc config/livecd-mageia-minimal-*.ks
%{_bindir}/livecd-creator
%{_bindir}/image-creator
%{_bindir}/liveimage-mount
%{_bindir}/editliveos
%{_bindir}/mkbiarch
%{_mandir}/man8/livecd-creator.8*
%{_mandir}/man8/mkbiarch.8*
%{_datadir}/%{name}/grub2/locales/*

%files -n python-imgcreate-sysdeps
# No files because empty metapackage


%files -n python3-imgcreate
%license COPYING
%doc API
%{python3_sitelib}/imgcreate

%ifarch %{ix86} %{x86_64}
%files -n livecd-iso-to-mediums
%license COPYING
%{_bindir}/livecd-iso-to-disk
%{_mandir}/man8/livecd-iso-to-disk.8*
%{_bindir}/livecd-iso-to-pxeboot
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14497 |21mr|livestart-rosa-1.0.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Livestart rosa script
Name:		livestart-rosa
Version:	1.0.0
Release:	14
BuildArch:	noarch
License:	GPL
Group:		System/Configuration/Other
Source10:	checkflashboot
Buildroot:	%{_tmppath}/%{name}-%{version}-%{release}-buildroot

%description
Small script checking if system was started from a
flash drive and creating a config for draklive-install.

%post
%_post_service checkflashboot

%preun
%_preun_service checkflashboot

%files
%defattr(-,root,root)
%attr(755,root,root) %_sysconfdir/init.d/checkflashboot

#--------------------------------------------------------------------

%install
rm -rf %buildroot 

mkdir -p %buildroot%_sysconfdir/init.d/
cp %SOURCE10 %buildroot%_sysconfdir/init.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14498 |21mr|lksctp-tools-1.0.17-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname sctp %{major}
%define devname %mklibname sctp -d

%define _disable_lto 1

Summary:	User-space access to Linux Kernel SCTP
Name:		lksctp-tools
Version:	1.0.17
Release:	3
# src/apps/bindx_test.C is GPLv2, I've asked upstream for clarification
License:	GPLv2 and GPLv2+ and LGPLv2 and MIT
Group:		System/Libraries
Url:		http://lksctp.sourceforge.net
Source0:	http://downloads.sourceforge.net/lksctp/%{name}-%{version}.tar.gz
Patch0:		lksctp-tools-1.0.16-libdir.patch
BuildRequires:	libtool

%description
This is the lksctp-tools package for Linux Kernel SCTP (Stream Control
Transmission Protocol) Reference Implementation.

This package is intended to supplement the Linux Kernel SCTP Reference
Implementation now available in the Linux kernel source tree in
versions 2.5.36 and following.  For more information on LKSCTP see the
package documentation README file, section titled "LKSCTP - Linux
Kernel SCTP."

This package contains the command-line tools.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared User-space access to Linux Kernel SCTP library
Group:		System/Libraries

%description -n %{libname}
This is the lksctp-tools package for Linux Kernel SCTP (Stream Control
Transmission Protocol) Reference Implementation.

This package is intended to supplement the Linux Kernel SCTP Reference
Implementation now available in the Linux kernel source tree in
versions 2.5.36 and following.  For more information on LKSCTP see the
package documentation README file, section titled "LKSCTP - Linux
Kernel SCTP."

This package contains the shared library.

%files -n %{libname}
%{_libdir}/libsctp.so.%{major}*
%dir %{_libdir}/lksctp-tools/
%{_libdir}/lksctp-tools/libwithsctp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for lksctp-tools
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	sctp-devel = %{EVRD}

%description -n %{devname}
Development files for lksctp-tools which include man pages, header files,
static libraries, symlinks to dynamic libraries and some tutorial source code.

%files -n %{devname}
%{_includedir}/netinet
%{_libdir}/libsctp.so
%{_libdir}/lksctp-tools/libwithsctp.so
%{_datadir}/lksctp-tools/
%{_mandir}/man3/*
%{_mandir}/man7/*
%{_libdir}/pkgconfig/libsctp.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%ifnarch %{e2k}
%global optflags %{optflags} -fuse-ld=bfd
%endif
autoreconf -fi
%configure \
	--disable-static

# remove rpath from libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
rm -f doc/rfc2960.txt doc/states.txt
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14499 |21mr|lld-12.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %version |cut -d. -f1)
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%if %{mdvver} <= 201610
%bcond_without clang
%else
%bcond_with clang
%endif

%if %{with clang}
%define debug_package %{nil}
%endif

%bcond_without git

Summary:	The LLVM Linker
Name:		lld
Version:	12.0.1
Release:	1
Group:		Development/Other
License:	NCSA
Url:		http://llvm.org
%if %{with git}
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
%else
Source0:	http://releases.llvm.org/%{version}/%{name}-%{version}.src.tar.xz
%endif
Source1:	https://raw.githubusercontent.com/llvm/llvm-project/llvmorg-%{version}/libunwind/include/mach-o/compact_unwind_encoding.h
BuildRequires:	cmake
%if %{with clang}
BuildRequires:	clang
BuildRequires:	libcxx-devel
%endif
BuildRequires:	llvm-devel = %{version}
BuildRequires:	ncurses-devel
BuildRequires:	zlib-devel
Requires:	clang
Requires:	llvm
Requires:	llvm-plugins

%description
The LLVM project linker.

%files
%doc LICENSE.TXT
%{_bindir}/ld64.lld
%{_bindir}/ld64.lld.darwinnew
%{_bindir}/ld.lld
%{_bindir}/lld
%{_bindir}/lld-link
%{_bindir}/wasm-ld

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	LLD shared libraries
Group:		System/Libraries

%description -n %{libname}
Shared libraries for LLD.

%files -n %{libname}
%doc LICENSE.TXT
%{_libdir}/lib%{name}*.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for LLD
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains library and header files needed to develop new native
programs that use the LLD infrastructure.

%files -n %{devname}
%doc LICENSE.TXT
%{_includedir}/lld
%{_libdir}/liblld*.so
%{_libdir}/cmake/%{name}/

#-------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}.src

mkdir include/mach-o
cp %{S:1} include/mach-o

%build
%if %{with clang}
%clang_gcc_wrapper
export CC=clang
export CXX=clang++
%endif

%cmake \
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
	-DLLVM_DYLIB_COMPONENTS="all" \
%ifarch x86_64
	-DLLVM_LIBDIR_SUFFIX=64
%else
	-DLLVM_LIBDIR_SUFFIX=
%endif

%make -s

%install
%makeinstall_std -C build

# we do not need
rm -fr %{buildroot}%{_includedir}/mach-o/compact_unwind_encoding.h



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14500 |21mr|lldb-12.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %version |cut -d. -f1)
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Next generation high-performance debugger
Name:		lldb
Version:	12.0.1
Release:	1
License:	NCSA
Group:		Graphical desktop/LXQt
Url:		http://lldb.llvm.org/
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/%{name}-%{version}.src.tar.xz
BuildRequires:	cmake
BuildRequires:	clang
BuildRequires:	swig
BuildRequires:	llvm-devel
BuildRequires:	clang-devel
BuildRequires:	python3-devel
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(zlib)
Requires:	python3-%{name}

%description
LLDB is a next generation, high-performance debugger. It is built as a set
of reusable components which highly leverage existing libraries in the
larger LLVM Project, such as the Clang expression parser and LLVM
disassembler.

%files
%{_bindir}/%{name}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for LLDB
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
The package contains library files for LLDB.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/lib%{name}IntelFeatures.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development header files for LLDB
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The package contains header files for the LLDB debugger.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	Python module for LLDB
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Requires:	pythonegg(six)
Provides:	python3-%{name} = %{EVRD}

%description -n python-%{name}
The package contains the LLDB Python module.

%files -n python-%{name}
%{py3_platsitedir}/%{name}*

#----------------------------------------------------------------------------


%prep
%setup -qn %{name}-%{version}.src

%build
%cmake
%make -s

%install
%makeinstall_std -C build

# unbundle python-six
rm -fvr %{buildroot}%{py3_platsitedir}/six.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14501 |21mr|lldpad-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define newname    openlldp
%define devname    %mklibname liblldp_clif -d
%define libname    %mklibname liblldp_clif %{major}
%define newdevname %mklibname %{newname} -d

%define major    1.0.0
%define majorver %(echo %{major} | cut -d '.' -f 1)

Name:               lldpad
Version:            1.1
Release:            3
Summary:            Intel LLDP Agent
License:            GPLv2
Group:              Networking/Other
URL:                http://open-lldp.org/
Source0:            https://github.com/intel/%{name}/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:      automake 
BuildRequires:      autoconf 
BuildRequires:      libtool
BuildRequires:      flex >= 2.5.33
BuildRequires:      kernel-headers >= 2.6.32
BuildRequires:      libconfig-devel >= 1.3.2
BuildRequires:      libnl3-devel
BuildRequires:      readline-devel
BuildRequires:      systemd
BuildRequires:      make
Requires:           readline

%description
This package contains the Linux user space daemon and configuration tool for
Intel LLDP Agent with Enhanced Ethernet support for the Data Center.

# -----------------------------------------------------------------------------------

%package -n %devname
Summary:    Libraries for %{name}
Requires:   %{libname} = %{EVRD}
Provides:   %newdevname = %{EVRD}
Provides:   %{newname}-devel = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %devname
The %{devname}  package contains libraries and header files for
developing applications that use %{name}.

%files -n %devname
%{_includedir}/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/liblldp_clif.so

# -----------------------------------------------------------------------------------

%package -n %libname
Summary:    Development files for %{name}
Requires:   %{name} = %{EVRD}
 
%description -n %libname
%{libname} is a library providing clif lib.

%files -n %libname
%{_libdir}/liblldp_clif.so.%{major}
%{_libdir}/liblldp_clif.so.%{majorver}

# -----------------------------------------------------------------------------------
 
%prep
%autosetup -p1 -n %{newname}-%{version}

%build
./bootstrap.sh
%configure --disable-static
# fix the hardened build flags
sed -i -e 's! \\\$compiler_flags !&\\\$CFLAGS \\\$LDFLAGS !' libtool
%make
 
%install
%make_install DESTDIR=%{buildroot}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
rm -f %{buildroot}%{_libdir}/liblldp_clif.la

mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}%{_exec_prefix}%{_unitdir}/%{name}.service %{buildroot}%{_unitdir}/%{name}.service
mv %{buildroot}%{_exec_prefix}%{_unitdir}/%{name}.socket %{buildroot}%{_unitdir}/%{name}.socket
 
%post
%systemd_post %{name}.service %{name}.socket
 
%preun
%systemd_preun %{name}.service %{name}.socket
 
%postun
%systemd_postun_with_restart %{name}.service %{name}.socket
 
%files
%doc README ChangeLog
%license COPYING
%{_sbindir}/*
%dir %{_sharedstatedir}/%{name}
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.socket
%{_sysconfdir}/bash_completion.d/*
%{_mandir}/man3/*
%{_mandir}/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14502 |21mr|llvm-12.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# libLLVM-*.so are unversioned libraries
%global __requires_exclude ^devel\\(.*$

#%%define _disable_ld_no_undefined 0
%define debugcflags %%{nil}
%define debug_package %{nil}

# clang header paths are hard-coded at compile time
# and need adjustment whenever there's a new GCC version
%define gcc_version %(gcc -dumpversion)

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%bcond_without clang

%define maj_ver 12
%define major_ver %{maj_ver}.0
%define minor_ver 1

%define major %{major_ver}
%define lto_major %{maj_ver}
%define libname %mklibname %{name} %{major}
%define liblto %mklibname lto %{lto_major}
%define devname %mklibname %{name} -d

%define clang_major %{major_ver}
%define libclang %mklibname clang %{clang_major}
%define devclang %mklibname clang -d

%bcond_without git

Summary:	Low Level Virtual Machine (LLVM)
Name:		llvm
Version:	%{major_ver}.%{minor_ver}
Release:	3
License:	NCSA
Group:		Development/Other
Url:		http://llvm.org

%if %{with git}
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
Source2:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
Source3:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
Source4:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
%else
Source0:	http://releases.llvm.org/%{version}/llvm-%{version}.src.tar.xz
Source1:	http://releases.llvm.org/%{version}/clang-%{version}.src.tar.xz
Source2:	http://releases.llvm.org/%{version}/clang-tools-extra-%{version}.src.tar.xz
Source3:	http://releases.llvm.org/%{version}/polly-%{version}.src.tar.xz
Source4:	http://releases.llvm.org/%{version}/compiler-rt-%{version}.src.tar.xz
%endif
Source1000:	llvm.rpmlintrc
Source1010:	clang-gcc-wrapper.macros
Source1011:	clang-gcc-wrapper.sh

# Adjust the search paths to match the OS, adjust the default compiler flags
# as well.
Patch1:		clang-rosa.patch

BuildRequires:	binutils-devel
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	sed
BuildRequires:	tcl
BuildRequires:	zip
%if %{compile_apidox}
BuildRequires:	doxygen
%endif
Requires:	libstdc++-devel
Requires:	lld

%description
LVM is a robust system, particularly well suited for developing new mid-level
language-independent analyses and optimizations of all sorts, including those
that require  extensive interprocedural analysis. LLVM is also a great target
for front-end development for conventional or research programming languages,
including those which require compile-time, link-time, or run-time optimization
for effective implementation, proper tail calls or garbage collection.

%files
%doc LICENSE.TXT
%{_bindir}/FileCheck
%{_bindir}/bugpoint
%{_bindir}/count
%{_bindir}/dsymutil
%{_bindir}/find-all-symbols
%{_bindir}/llc
%{_bindir}/lli
%{_bindir}/lli-child-target
%{_bindir}/llvm*
%exclude %{_bindir}/llvm-config
%{_bindir}/modularize
%{_bindir}/not
%{_bindir}/obj2yaml
%{_bindir}/opt
%{_bindir}/sancov
%{_bindir}/sanstats
%{_bindir}/split-file
%{_bindir}/verify-uselistorder
%{_bindir}/yaml-bench
%{_bindir}/yaml2obj
%{_datadir}/opt-viewer

#----------------------------------------------------------------------------

%define plugins %mklibname %{name}-plugins

%package -n %{plugins}
Summary:	LLVM plugins
Group:		System/Libraries
Provides:	%{name}-plugins = %{EVRD}
Conflicts:	%{_lib}llvm3.8 < 3.8.0-2
Conflicts:	%{_lib}llvm-devel < 3.8.0-2

%description -n %{plugins}
LLVM plugins.

%files -n %{plugins}
%{_libdir}/BugpointPasses.so
%{_libdir}/LLVMHello.so
%{_libdir}/LLVMgold.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LLVM shared libraries
Group:		System/Libraries
Requires:	%{plugins}
Conflicts:	llvm < 3.0-4

%description -n %{libname}
Shared libraries for the LLVM compiler infrastructure. This is needed by
programs that are dynamically linked against libLLVM.

%files -n %{libname}
%{_libdir}/libLLVM-%{maj_ver}.so
%{_libdir}/libLLVM-%{major}.%{minor_ver}.so

#----------------------------------------------------------------------------

%package -n %{liblto}
Summary:	LLVM shared library
Group:		System/Libraries
Conflicts:	%{_lib}llvm-plugins < 6.0.0-3

%description -n %{liblto}
Shared library for the LLVM compiler infrastructure.

%files -n %{liblto}
%{_libdir}/libLTO.so.%{lto_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for LLVM
Group:		Development/Other
Provides:	llvm-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{liblto} = %{EVRD}
Requires:	%{name} = %{EVRD}
Requires:	llvm-polly = %{EVRD}

Obsoletes:	llvm-polly-devel < %{EVRD}
Provides:	llvm-polly-devel = %{EVRD}

Conflicts:	llvm < 3.0-7
Conflicts:	%{_lib}llvm3.0 < 3.0-9
Conflicts:	%{_lib}llvm-plugins < 6.0.0-3

%description -n %{devname}
This package contains the development files for LLVM.

%files -n %{devname}
%{_bindir}/%{name}-config
%{_includedir}/%{name}
%{_includedir}/%{name}-c
%{_includedir}/polly
%{_libdir}/cmake/%{name}/*
%{_libdir}/cmake/polly/*.cmake
%{_libdir}/libLLVM*.a
%{_libdir}/libLLVM.so
%{_libdir}/libLTO.so
%{_libdir}/libRemarks.so*
%{_libdir}/libPolly*.a
%{_libdir}/libfindAllSymbols.a

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for LLVM
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documentation for the LLVM compiler infrastructure.

%files doc
%doc README.txt
%doc docs/tutorial
%doc examples
%if %{compile_apidox}
%doc docs/doxygen
%endif

#----------------------------------------------------------------------------

%package polly
Summary:	Polyhedral optimizations for LLVM
License:	MIT
Group:		Development/Other

%description polly
Polly is a polyhedral optimizer for LLVM.

Using an abstract mathematical representation it analyzes and optimizes
the memory access pattern of a program. This includes data-locality
optimizations for cache locality as well as automatic parallelization
for thread-level and SIMD parallelism.

Our overall goal is an integrated optimizer for data-locality and
parallelism that takes advantage of multi-cores, cache hierarchies,
short vector instructions as well as dedicated accelerators.

%files polly
%{_bindir}/pollycc
%{_bindir}/pollyc++
%{_libdir}/LLVMPolly.so

#----------------------------------------------------------------------------

%if %{with clang}
# TODO: %%{_bindir}/clang is linked against static libclang.a, could it be
# linked against libclang.so instead, like llvm-* are against livLLVM.so?

%package -n clang
Summary:	A C language family front-end for LLVM
License:	NCSA
Group:		Development/Other
# TODO: is this requires:llvm needed, or just legacy from fedora pkg layout?
Requires:	llvm = %{EVRD}
# clang requires gcc, clang++ requires libstdc++-devel
Requires:	gcc
Requires:	libstdc++-devel >= %{gcc_version}

%description -n clang
clang: noun
    1. A loud, resonant, metallic sound.
    2. The strident call of a crane or goose.
    3. C-language family front-end toolkit.

The goal of the Clang project is to create a new C, C++, Objective C
and Objective C++ front-end for the LLVM compiler. Its tools are built
as libraries and designed to be loosely-coupled and extensible.

%files -n clang
%{_bindir}/c-index-test
%{_bindir}/clang*
%{_bindir}/diagtool
%{_bindir}/hmaptool
%{_bindir}/pp-trace
%{_datadir}/clang
%{_rpmmacrodir}/*clang-gcc-wrapper*
%endif

#----------------------------------------------------------------------------

%if %{with clang}
%package -n %{libclang}
Summary:	Shared library for clang
Group:		System/Libraries

%description -n %{libclang}
Shared libraries for the clang compiler. This is needed by
programs that are dynamically linked against libclang.

%files -n %{libclang}
%{_libdir}/clang/
%{_libdir}/libclang*.so.%{maj_ver}
%endif

#----------------------------------------------------------------------------

%if %{with clang}
%package -n %{devclang}
Summary:	Development files for clang
Group:		Development/Other
Requires:	%{libclang} = %{EVRD}
Requires:	clang = %{EVRD}
Provides:	clang-devel = %{EVRD}
Conflicts:	llvm-devel < 3.1
Obsoletes:	clang-devel < 3.1

%description -n %{devclang}
This package contains header files and libraries needed for using
libclang.

%files -n %{devclang}
%dir %{_datadir}/clang/
%{_includedir}/clang
%{_includedir}/clang-c
%{_includedir}/clang-tidy
%{_libdir}/cmake/clang/ClangConfig.cmake
%{_libdir}/cmake/clang/ClangTargets-relwithdebinfo.cmake
%{_libdir}/cmake/clang/ClangTargets.cmake
%{_libdir}/libclang*.a
%{_libdir}/libclang*.so
%endif

#----------------------------------------------------------------------------

%if %{with clang}
%package -n clang-analyzer
Summary:	A source code analysis framework
License:	NCSA
Group:		Development/Other
Requires:	clang = %{EVRD}
# not picked up automatically since files are currently not instaled
# in standard Python hierarchies yet
Requires:	python3

%description -n clang-analyzer
The Clang Static Analyzer consists of both a source code analysis
framework and a standalone tool that finds bugs in C and Objective-C
programs. The standalone tool is invoked from the command-line, and is
intended to run in tandem with a build of a project or code base.

%files -n clang-analyzer
%{_bindir}/scan-build
%{_bindir}/scan-view
%{_datadir}/scan-build/
%{_datadir}/scan-view/
%{_mandir}/man1/scan-build.1.*
%{_prefix}/libexec/c++-analyzer
%{_prefix}/libexec/ccc-analyzer
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}.src %{?with_clang:-a1 -a2 -a3 -a4}
rm -rf tools/clang
%if %{with clang}
mv clang-%{version}.src tools/clang
mv polly-%{version}.src tools/polly
mv clang-tools-extra-%{version}.src tools/clang/tools/extra
mv compiler-rt-%{version}.src projects/compiler-rt
%patch1 -p1 -b .rosa~
%endif

%build
%global optflags %{optflags} -fno-strict-aliasing
# Build with gcc/g++, not clang if it happens to be installed
export CC=gcc
export CXX=g++

# A couple more fixes from OMV + a workaround for a bug (?) in GCC 4.9:
# https://llvm.org/bugs/show_bug.cgi?id=20080 and
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
# (-fno-devirtualize)
#
# compiler-rt assumes off_t is 64 bits -- make sure this is true even on
# 32 bit OSes
%ifarch %ix86
# compiler-rt doesn't support ix86 with x<6 either
export CFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g1"
export CXXFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-devirtualize -g1 -Wno-redundant-move"
%else
export CXXFLAGS="%{optflags} -fno-devirtualize -g1 -Wno-redundant-move"
%endif


%ifarch %ix86
# Fix noexecstack
for i in projects/compiler-rt/lib/builtins/i386/*.S; do
	cat >>$i <<'EOF'
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
EOF
done
%endif

%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
%if %{with clang}
	-DCLANG_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DWITH_POLLY:BOOL=ON \
	-DLINK_POLLY_INTO_TOOLS:BOOL=ON	\
%endif
	-DLLVM_ENABLE_FFI:BOOL=ON \
	-DLLVM_ENABLE_RTTI:BOOL=ON \
	-DLLVM_BINUTILS_INCDIR=%{_includedir} \
	-DLLVM_INCLUDE_UTILS:BOOL=ON \
	-DLLVM_BUILD_LLVM_DYLIB=ON \
	-DLLVM_LINK_LLVM_DYLIB=ON \
	-DOCAMLFIND=NOTFOUND \
	-DLLVM_INSTALL_UTILS:BOOL=ON \
	-DLLVM_UTILS_INSTALL_DIR:PATH=%{_bindir} \
%if %{compile_apidox}
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
	-DLLVM_BUILD_DOCS:BOOL=ON \
%endif
	-DLLVM_OPTIMIZED_TABLEGEN=ON

%make -s

%install

%makeinstall_std -C build

%if %{with clang}
# [From OMV]
# Polly bits as described on
# http://polly.llvm.org/example_load_Polly_into_clang.html
cat >%{buildroot}%{_bindir}/pollycc <<'EOF'
#!/bin/sh
exec %{_bindir}/clang -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
cat >%{buildroot}%{_bindir}/pollyc++ <<'EOF'
#!/bin/sh
exec %{_bindir}/clang++ -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/pollycc %{buildroot}%{_bindir}/pollyc++


# Clang - Git integration. Not needed.
	rm -f %{buildroot}%{_bindir}/git-clang-format

# Remove editor integration files
	rm -f %{buildroot}%{_datadir}/clang/clang-format*

# install clang-gcc-wrapper
install -D -m 0644 %{SOURCE1011} %{buildroot}%{_datadir}/clang/
%install_macro clang-gcc-wrapper %{SOURCE1010}
%endif

# Install libraries used for testing
cp -a build/%{_lib}/BugpointPasses.so %{buildroot}%{_libdir}
cp -a build/%{_lib}/LLVMHello.so %{buildroot}%{_libdir}

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{hmaptool,scan-view}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14503 |21mr|llvm-12.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# libLLVM-*.so are unversioned libraries
%global __requires_exclude ^devel\\(.*$

# clang header paths are hard-coded at compile time
# and need adjustment whenever there's a new GCC version
%define gcc_version %(gcc -dumpversion)

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%bcond_without clang

%define maj_ver 12
%define major_ver %{maj_ver}.0
%define minor_ver 1

%define major %{major_ver}
%define lto_major %{maj_ver}
%define libname %mklibname llvm %{maj_ver}
%define liblto %mklibname lto %{lto_major}
%define devname %mklibname %{name} -d

%define clang_major %{major_ver}
%define libclang %mklibname clang %{clang_major}
%define devclang %mklibname clang -d

%bcond_without git

Summary:	Low Level Virtual Machine (LLVM)
Name:		llvm
Version:	%{major_ver}.%{minor_ver}
Release:	4
License:	NCSA
Group:		Development/Other
Url:		http://llvm.org

%if %{with git}
Source0:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/llvm-%{version}.src.tar.xz
Source1:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-%{version}.src.tar.xz
Source2:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/clang-tools-extra-%{version}.src.tar.xz
Source3:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/polly-%{version}.src.tar.xz
Source4:	https://github.com/llvm/llvm-project/releases/download/llvmorg-%{version}/compiler-rt-%{version}.src.tar.xz
%else
Source0:	http://releases.llvm.org/%{version}/llvm-%{version}.src.tar.xz
Source1:	http://releases.llvm.org/%{version}/clang-%{version}.src.tar.xz
Source2:	http://releases.llvm.org/%{version}/clang-tools-extra-%{version}.src.tar.xz
Source3:	http://releases.llvm.org/%{version}/polly-%{version}.src.tar.xz
Source4:	http://releases.llvm.org/%{version}/compiler-rt-%{version}.src.tar.xz
%endif
Source1000:	llvm.rpmlintrc
Source1010:	clang-gcc-wrapper.macros
Source1011:	clang-gcc-wrapper.sh

# Adjust the search paths to match the OS, adjust the default compiler flags
# as well.
Patch1:		clang-rosa.patch

BuildRequires:	binutils-devel
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	sed
BuildRequires:	tcl
BuildRequires:	zip
%if %{compile_apidox}
BuildRequires:	doxygen
%endif
Requires:	libstdc++-devel
Requires:	lld

%description
LVM is a robust system, particularly well suited for developing new mid-level
language-independent analyses and optimizations of all sorts, including those
that require  extensive interprocedural analysis. LLVM is also a great target
for front-end development for conventional or research programming languages,
including those which require compile-time, link-time, or run-time optimization
for effective implementation, proper tail calls or garbage collection.

%files
%license LICENSE.TXT
%{_bindir}/FileCheck
%{_bindir}/bugpoint
%{_bindir}/count
%{_bindir}/dsymutil
%{_bindir}/find-all-symbols
%{_bindir}/llc
%{_bindir}/lli
%{_bindir}/lli-child-target
%{_bindir}/llvm*
%exclude %{_bindir}/llvm-config
%{_bindir}/modularize
%{_bindir}/not
%{_bindir}/obj2yaml
%{_bindir}/opt
%{_bindir}/sancov
%{_bindir}/sanstats
%{_bindir}/split-file
%{_bindir}/verify-uselistorder
%{_bindir}/yaml-bench
%{_bindir}/yaml2obj
%{_datadir}/opt-viewer

#----------------------------------------------------------------------------

%define plugins %mklibname %{name}-plugins

%package -n %{plugins}
Summary:	LLVM plugins
Group:		System/Libraries
Provides:	%{name}-plugins = %{EVRD}

%description -n %{plugins}
LLVM plugins.

%files -n %{plugins}
%{_libdir}/BugpointPasses.so
%{_libdir}/LLVMHello.so
%{_libdir}/LLVMgold.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LLVM shared libraries
Group:		System/Libraries
# package was renamed
Conflicts:	%{_lib}llvm12.0 < 12.0.1-4
Obsoletes:	%{_lib}llvm12.0 < 12.0.1-4

%description -n %{libname}
Shared libraries for the LLVM compiler infrastructure. This is needed by
programs that are dynamically linked against libLLVM.

%files -n %{libname}
%{_libdir}/libLLVM-%{maj_ver}.so
%{_libdir}/libLLVM-%{major}.%{minor_ver}.so

#----------------------------------------------------------------------------

%package -n %{liblto}
Summary:	LLVM shared library
Group:		System/Libraries

%description -n %{liblto}
Shared library for the LLVM compiler infrastructure.

%files -n %{liblto}
%{_libdir}/libLTO.so.%{lto_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for LLVM
Group:		Development/Other
Provides:	llvm-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{liblto} = %{EVRD}
Requires:	%{name} = %{EVRD}
Requires:	llvm-polly = %{EVRD}
Provides:	llvm-polly-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for LLVM.

%files -n %{devname}
%{_bindir}/%{name}-config
%{_includedir}/%{name}
%{_includedir}/%{name}-c
%{_includedir}/polly
%{_libdir}/cmake/%{name}/*
%{_libdir}/cmake/polly/*.cmake
%{_libdir}/libLLVM*.a
%{_libdir}/libLLVM.so
%{_libdir}/libLTO.so
%{_libdir}/libRemarks.so*
%{_libdir}/libPolly*.a
%{_libdir}/libfindAllSymbols.a

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for LLVM
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documentation for the LLVM compiler infrastructure.

%files doc
%doc README.txt
%doc docs/tutorial
%doc examples
%if %{compile_apidox}
%doc docs/doxygen
%endif

#----------------------------------------------------------------------------

%package polly
Summary:	Polyhedral optimizations for LLVM
License:	MIT
Group:		Development/Other

%description polly
Polly is a polyhedral optimizer for LLVM.

Using an abstract mathematical representation it analyzes and optimizes
the memory access pattern of a program. This includes data-locality
optimizations for cache locality as well as automatic parallelization
for thread-level and SIMD parallelism.

Our overall goal is an integrated optimizer for data-locality and
parallelism that takes advantage of multi-cores, cache hierarchies,
short vector instructions as well as dedicated accelerators.

%files polly
%{_bindir}/pollycc
%{_bindir}/pollyc++
%{_libdir}/LLVMPolly.so

#----------------------------------------------------------------------------

%if %{with clang}
# TODO: %%{_bindir}/clang is linked against static libclang.a, could it be
# linked against libclang.so instead, like llvm-* are against livLLVM.so?

%package -n clang
Summary:	A C language family front-end for LLVM
License:	NCSA
Group:		Development/Other
# TODO: is this requires:llvm needed, or just legacy from fedora pkg layout?
Requires:	llvm = %{EVRD}
# clang requires gcc, clang++ requires libstdc++-devel
Requires:	gcc
Requires:	libstdc++-devel >= %{gcc_version}

%description -n clang
clang: noun
    1. A loud, resonant, metallic sound.
    2. The strident call of a crane or goose.
    3. C-language family front-end toolkit.

The goal of the Clang project is to create a new C, C++, Objective C
and Objective C++ front-end for the LLVM compiler. Its tools are built
as libraries and designed to be loosely-coupled and extensible.

%files -n clang
%{_bindir}/c-index-test
%{_bindir}/clang*
%{_bindir}/diagtool
%{_bindir}/hmaptool
%{_bindir}/pp-trace
%{_datadir}/clang
%{_rpmmacrodir}/*clang-gcc-wrapper*
%endif

#----------------------------------------------------------------------------

%if %{with clang}
%package -n %{libclang}
Summary:	Shared library for clang
Group:		System/Libraries

%description -n %{libclang}
Shared libraries for the clang compiler. This is needed by
programs that are dynamically linked against libclang.

%files -n %{libclang}
%{_libdir}/clang/
%{_libdir}/libclang*.so.%{maj_ver}
%endif

#----------------------------------------------------------------------------

%if %{with clang}
%package -n %{devclang}
Summary:	Development files for clang
Group:		Development/Other
Requires:	%{libclang} = %{EVRD}
Requires:	clang = %{EVRD}
Provides:	clang-devel = %{EVRD}

%description -n %{devclang}
This package contains header files and libraries needed for using
libclang.

%files -n %{devclang}
%dir %{_datadir}/clang/
%{_includedir}/clang
%{_includedir}/clang-c
%{_includedir}/clang-tidy
%{_libdir}/cmake/clang/ClangConfig.cmake
%{_libdir}/cmake/clang/ClangTargets-relwithdebinfo.cmake
%{_libdir}/cmake/clang/ClangTargets.cmake
%{_libdir}/libclang*.a
%{_libdir}/libclang*.so
%endif

#----------------------------------------------------------------------------

%if %{with clang}
%package -n clang-analyzer
Summary:	A source code analysis framework
License:	NCSA
Group:		Development/Other
Requires:	clang = %{EVRD}
# not picked up automatically since files are currently not instaled
# in standard Python hierarchies yet
Requires:	python3

%description -n clang-analyzer
The Clang Static Analyzer consists of both a source code analysis
framework and a standalone tool that finds bugs in C and Objective-C
programs. The standalone tool is invoked from the command-line, and is
intended to run in tandem with a build of a project or code base.

%files -n clang-analyzer
%{_bindir}/scan-build
%{_bindir}/scan-view
%{_datadir}/scan-build/
%{_datadir}/scan-view/
%{_mandir}/man1/scan-build.1.*
%{_prefix}/libexec/c++-analyzer
%{_prefix}/libexec/ccc-analyzer
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}.src %{?with_clang:-a1 -a2 -a3 -a4}
rm -rf tools/clang
%if %{with clang}
mv clang-%{version}.src tools/clang
mv polly-%{version}.src tools/polly
mv clang-tools-extra-%{version}.src tools/clang/tools/extra
mv compiler-rt-%{version}.src projects/compiler-rt
%patch1 -p1 -b .rosa~
%endif

%build
%global optflags %{optflags} -fno-strict-aliasing
# Build with gcc/g++, not clang if it happens to be installed
export CC=gcc
export CXX=g++

# A couple more fixes from OMV + a workaround for a bug (?) in GCC 4.9:
# https://llvm.org/bugs/show_bug.cgi?id=20080 and
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
# (-fno-devirtualize)
#
# compiler-rt assumes off_t is 64 bits -- make sure this is true even on
# 32 bit OSes
%ifarch %ix86
# compiler-rt doesn't support ix86 with x<6 either
export CFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g1"
export CXXFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-devirtualize -g1 -Wno-redundant-move"
%else
export CXXFLAGS="%{optflags} -fno-devirtualize -g1 -Wno-redundant-move"
%endif


%ifarch %ix86
# Fix noexecstack
for i in projects/compiler-rt/lib/builtins/i386/*.S; do
	cat >>$i <<'EOF'
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
EOF
done
%endif

%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
%if %{with clang}
	-DCLANG_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DWITH_POLLY:BOOL=ON \
	-DLINK_POLLY_INTO_TOOLS:BOOL=ON	\
%endif
	-DLLVM_ENABLE_FFI:BOOL=ON \
	-DLLVM_ENABLE_RTTI:BOOL=ON \
	-DLLVM_BINUTILS_INCDIR=%{_includedir} \
	-DLLVM_INCLUDE_UTILS:BOOL=ON \
	-DLLVM_BUILD_LLVM_DYLIB=ON \
	-DLLVM_LINK_LLVM_DYLIB=ON \
	-DOCAMLFIND=NOTFOUND \
	-DLLVM_INSTALL_UTILS:BOOL=ON \
	-DLLVM_UTILS_INSTALL_DIR:PATH=%{_bindir} \
%if %{compile_apidox}
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
	-DLLVM_BUILD_DOCS:BOOL=ON \
%endif
	-DLLVM_OPTIMIZED_TABLEGEN=ON

%make -s

%install

%makeinstall_std -C build

%if %{with clang}
# [From OMV]
# Polly bits as described on
# http://polly.llvm.org/example_load_Polly_into_clang.html
cat >%{buildroot}%{_bindir}/pollycc <<'EOF'
#!/bin/sh
exec %{_bindir}/clang -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
cat >%{buildroot}%{_bindir}/pollyc++ <<'EOF'
#!/bin/sh
exec %{_bindir}/clang++ -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/pollycc %{buildroot}%{_bindir}/pollyc++


# Clang - Git integration. Not needed.
	rm -f %{buildroot}%{_bindir}/git-clang-format

# Remove editor integration files
	rm -f %{buildroot}%{_datadir}/clang/clang-format*

# install clang-gcc-wrapper
install -D -m 0644 %{SOURCE1011} %{buildroot}%{_datadir}/clang/
%install_macro clang-gcc-wrapper %{SOURCE1010}
%endif

# Install libraries used for testing
cp -a build/%{_lib}/BugpointPasses.so %{buildroot}%{_libdir}
cp -a build/%{_lib}/LLVMHello.so %{buildroot}%{_libdir}

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{hmaptool,scan-view}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14504 |21mr|llvm12-12.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname llvm

%define _prefix /opt/%{name}
%define _bindir %{_prefix}/bin
%define _datadir %{_prefix}/share
%define _includedir %{_prefix}/include
%define _libdir %{_prefix}/%{_lib}
%define _libexecdir %{_prefix}/libexec
%define _mandir %{_prefix}/share/man

%define debugcflags %{nil}
%define debug_package %{nil}

%define _disable_ld_no_undefined 1
%global optflags %{optflags} -fno-strict-aliasing
%global ldflags %{ldflags} -Wl,-rpath,%{_libdir}

# clang header paths are hard-coded at compile time
# and need adjustment whenever there's a new GCC version
%define gcc_version %(gcc -dumpversion)

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%define maj_ver 12

%if %{mdvver} == 201610
%bcond_without lldb
%else
%bcond_with lldb
%endif

Summary:	LLVM and Clang in %{_prefix}
# llvm11
Name:		llvm%{maj_ver}
Version:	12.0.1
Release:	1
License:	NCSA
Group:		Development/Other
Url:		http://llvm.org
Source0:	https://github.com/llvm/llvm-project/archive/llvmorg-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1000:	llvm%{maj_ver}.rpmlintrc
# Adjust the search paths to match the OS, adjust the default compiler flags
# as well.
Patch1:		clang-rosa.patch
BuildRequires:	binutils-devel
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libtirpc)
# patchelf is for %%check
BuildRequires:	patchelf
BuildRequires:	python3
BuildRequires:	sed
BuildRequires:	tcl
BuildRequires:	zip
%if %{compile_apidox}
BuildRequires:	doxygen
%endif
Requires:	libstdc++-devel
# Do not provide libraries rom /opt and do not try to depend from them
# ! Nothing must be linked with libllvm etc. from here!
AutoReq: 0
AutoProv: 0
# Require this manually instead of AutoReq
%if %rpm4
Requires:	%(patchelf --print-soname /usr/%{_lib}/libffi.so || echo foo)%{_arch_tag_suffix}
%else
# _arch_tag_suffix in needed form does not exist in rpm5, make a more dirty hack
Requires:	%{_lib}ffi%(patchelf --print-soname /usr/%{_lib}/libffi.so | rev | cut -d. -f1 | rev)
%endif


%description
LVM is a robust system, particularly well suited for developing new mid-level
language-independent analyses and optimizations of all sorts, including those
that require  extensive interprocedural analysis. LLVM is also a great target
for front-end development for conventional or research programming languages,
including those which require compile-time, link-time, or run-time optimization
for effective implementation, proper tail calls or garbage collection.

This package contains LLVM and Clang in %{_prefix}.

%files
%{_prefix}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n llvm-project-llvmorg-%{version}

%build
# Build with gcc/g++, not clang if it happens to be installed
export CC=gcc
export CXX=g++

# A couple more fixes from OMV + a workaround for a bug (?) in GCC 4.9:
# https://llvm.org/bugs/show_bug.cgi?id=20080 and
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
# (-fno-devirtualize)
#
# compiler-rt assumes off_t is 64 bits -- make sure this is true even on
# 32 bit OSes
%ifarch %ix86
# compiler-rt doesn't support ix86 with x<6 either
export CFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g1"
export CXXFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-devirtualize -g1 -Wno-redundant-move"
%else
export CXXFLAGS="%{optflags} -fno-devirtualize -g1 -Wno-redundant-move"
%endif

%ifarch %ix86
# Fix noexecstack
for i in compiler-rt/lib/builtins/i386/*.S; do
	cat >>$i <<'EOF'
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
EOF
done
%endif

%if %{mdvver} == 201610
export PYTHONPATH=/usr/bin/
export PATH=$PYTHONPATH:$PATH
%endif

%setup_compile_flags
mkdir -p build
cd build
cmake ../llvm \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DCMAKE_BUILD_TYPE=Release \
	-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;libcxx;libcxxabi;libunwind;%{!?with_lldb:lldb;}compiler-rt;lld;polly' \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DCLANG_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DLLVM_ENABLE_FFI:BOOL=ON \
	-DLLVM_ENABLE_RTTI:BOOL=ON \
	-DOCAMLFIND=NOTFOUND \
%if %{compile_apidox}
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
	-DLLVM_BUILD_DOCS:BOOL=ON \
%endif
	-DLLVM_OPTIMIZED_TABLEGEN=ON

%make -s

%install

%makeinstall_std -C build

# [From OMV]
# Polly bits as described on
# http://polly.llvm.org/example_load_Polly_into_clang.html
cat >%{buildroot}%{_bindir}/pollycc <<'EOF'
#!/bin/sh
exec %{_bindir}/clang -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
cat >%{buildroot}%{_bindir}/pollyc++ <<'EOF'
#!/bin/sh
exec %{_bindir}/clang++ -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/pollycc %{buildroot}%{_bindir}/pollyc++

# Install libraries used for testing
cp -a build/%{_lib}/BugpointPasses.so %{buildroot}%{_libdir}
cp -a build/%{_lib}/LLVMHello.so %{buildroot}%{_libdir}

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{hmaptool,scan-view}

%check
patchelf --print-rpath %{buildroot}%{_bindir}/clang | grep -q %{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14505 |21mr|llvm12-12.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname llvm

%define _prefix /opt/%{name}
%define _bindir %{_prefix}/bin
%define _datadir %{_prefix}/share
%define _includedir %{_prefix}/include
%define _libdir %{_prefix}/%{_lib}
%define _libexecdir %{_prefix}/libexec
%define _mandir %{_prefix}/share/man

%define debugcflags %{nil}
%define debug_package %{nil}

%define _disable_ld_no_undefined 1
%global optflags %{optflags} -fno-strict-aliasing
%global ldflags %{ldflags} -Wl,-rpath,%{_libdir}

# clang header paths are hard-coded at compile time
# and need adjustment whenever there's a new GCC version
%define gcc_version %(gcc -dumpversion)

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%define maj_ver 12

%if %{mdvver} <= 201610 || "%_arch" == "riscv64"
%bcond_with lldb
%else
%bcond_without lldb
%endif

Summary:	LLVM and Clang in %{_prefix}
# llvm11
Name:		llvm%{maj_ver}
Version:	12.0.1
Release:	2
License:	NCSA
Group:		Development/Other
Url:		http://llvm.org
Source0:	https://github.com/llvm/llvm-project/archive/llvmorg-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1000:	llvm%{maj_ver}.rpmlintrc
# Adjust the search paths to match the OS, adjust the default compiler flags
# as well.
Patch1:		clang-rosa.patch
BuildRequires:	binutils-devel
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libtirpc)
# patchelf is for %%check
BuildRequires:	patchelf
BuildRequires:	python3
BuildRequires:	sed
BuildRequires:	tcl
BuildRequires:	zip
%if %{compile_apidox}
BuildRequires:	doxygen
%endif
Requires:	libstdc++-devel
# Do not provide libraries rom /opt and do not try to depend from them
# ! Nothing must be linked with libllvm etc. from here!
AutoReq: 0
AutoProv: 0
# Require this manually instead of AutoReq
%if %rpm4
Requires:	%(patchelf --print-soname /usr/%{_lib}/libffi.so || echo foo)%{_arch_tag_suffix}
%else
# _arch_tag_suffix in needed form does not exist in rpm5, make a more dirty hack
Requires:	%{_lib}ffi%(patchelf --print-soname /usr/%{_lib}/libffi.so | rev | cut -d. -f1 | rev)
%endif


%description
LVM is a robust system, particularly well suited for developing new mid-level
language-independent analyses and optimizations of all sorts, including those
that require  extensive interprocedural analysis. LLVM is also a great target
for front-end development for conventional or research programming languages,
including those which require compile-time, link-time, or run-time optimization
for effective implementation, proper tail calls or garbage collection.

This package contains LLVM and Clang in %{_prefix}.

%files
%{_prefix}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n llvm-project-llvmorg-%{version}

%build
# Build with gcc/g++, not clang if it happens to be installed
export CC=gcc
export CXX=g++

# A couple more fixes from OMV + a workaround for a bug (?) in GCC 4.9:
# https://llvm.org/bugs/show_bug.cgi?id=20080 and
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
# (-fno-devirtualize)
#
# compiler-rt assumes off_t is 64 bits -- make sure this is true even on
# 32 bit OSes
%ifarch %ix86
# compiler-rt doesn't support ix86 with x<6 either
export CFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g1"
export CXXFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-devirtualize -g1 -Wno-redundant-move"
%else
export CXXFLAGS="%{optflags} -fno-devirtualize -g1 -Wno-redundant-move"
%endif

%ifarch %ix86
# Fix noexecstack
for i in compiler-rt/lib/builtins/i386/*.S; do
	cat >>$i <<'EOF'
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
EOF
done
%endif

%if %{mdvver} == 201610
export PYTHONPATH=/usr/bin/
export PATH=$PYTHONPATH:$PATH
%endif

%setup_compile_flags
mkdir -p build
cd build
cmake ../llvm \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DCMAKE_BUILD_TYPE=Release \
	-DLLVM_ENABLE_PROJECTS='clang;clang-tools-extra;libcxx;libcxxabi;libunwind;%{?with_lldb:lldb;}compiler-rt;lld;polly' \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DCLANG_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DLLVM_ENABLE_FFI:BOOL=ON \
	-DLLVM_ENABLE_RTTI:BOOL=ON \
	-DOCAMLFIND=NOTFOUND \
%if %{compile_apidox}
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
	-DLLVM_BUILD_DOCS:BOOL=ON \
%endif
	-DLLVM_OPTIMIZED_TABLEGEN=ON

%make -s

%install

%makeinstall_std -C build

# [From OMV]
# Polly bits as described on
# http://polly.llvm.org/example_load_Polly_into_clang.html
cat >%{buildroot}%{_bindir}/pollycc <<'EOF'
#!/bin/sh
exec %{_bindir}/clang -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
cat >%{buildroot}%{_bindir}/pollyc++ <<'EOF'
#!/bin/sh
exec %{_bindir}/clang++ -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/pollycc %{buildroot}%{_bindir}/pollyc++

# Install libraries used for testing
cp -a build/%{_lib}/BugpointPasses.so %{buildroot}%{_libdir}
cp -a build/%{_lib}/LLVMHello.so %{buildroot}%{_libdir}

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{hmaptool,scan-view}

%check
patchelf --print-rpath %{buildroot}%{_bindir}/clang | grep -q %{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14506 |21mr|llvm13-13-0.gitdfc46f.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname llvm

%define _prefix /opt/%{name}
%define _bindir %{_prefix}/bin
%define _datadir %{_prefix}/share
%define _includedir %{_prefix}/include
%define _libdir %{_prefix}/%{_lib}
%define _libexecdir %{_prefix}/libexec
%define _mandir %{_prefix}/share/man

%define debugcflags %{nil}
%define debug_package %{nil}

%define _disable_ld_no_undefined 1
%global optflags %{optflags} -fno-strict-aliasing
%global ldflags %{ldflags} -Wl,-rpath,%{_libdir}

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%define maj_ver 13

%if %{mdvver} == 201610
%bcond_without lldb
%else
%bcond_with lldb
%endif

%define commit dfc46f02681447370a1ccbe340034e970bc7e572
%define commit_short %(echo %{commit} | head -c 6)

Summary:	LLVM and Clang in %{_prefix}
# llvm13
Name:		llvm%{maj_ver}
Version:	13
Release:	0.git%{commit_short}.1
License:	NCSA
Group:		Development/Other
Url:		http://llvm.org
Source0:	https://github.com/llvm/llvm-project/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1000:	llvm%{maj_ver}.rpmlintrc
# Adjust the search paths to match the OS, adjust the default compiler flags
# as well.
Patch1:		clang-rosa.patch
BuildRequires:	gcc
BuildRequires:	stdc++-devel
# gcc is too old in rosa2016.1, llvm12 was buildable with it but llvm13 is already not
BuildRequires:	llvm12
BuildRequires:	binutils-devel
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libtirpc)
# patchelf is for %%check
BuildRequires:	patchelf
BuildRequires:	python3
BuildRequires:	sed
BuildRequires:	tcl
BuildRequires:	zip
%if %{compile_apidox}
BuildRequires:	doxygen
%endif
Requires:	libstdc++-devel
# Do not provide libraries rom /opt and do not try to depend from them
# ! Nothing must be linked with libllvm etc. from here!
AutoReq: 0
AutoProv: 0
# Require this manually instead of AutoReq
%if %rpm4
Requires:	%(patchelf --print-soname /usr/%{_lib}/libffi.so || echo foo)%{_arch_tag_suffix}
%else
# _arch_tag_suffix in needed form does not exist in rpm5, make a more dirty hack
Requires:	%{_lib}ffi%(patchelf --print-soname /usr/%{_lib}/libffi.so | rev | cut -d. -f1 | rev)
%endif


%description
LVM is a robust system, particularly well suited for developing new mid-level
language-independent analyses and optimizations of all sorts, including those
that require  extensive interprocedural analysis. LLVM is also a great target
for front-end development for conventional or research programming languages,
including those which require compile-time, link-time, or run-time optimization
for effective implementation, proper tail calls or garbage collection.

This package contains LLVM and Clang in %{_prefix}.

%files
%{_prefix}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n llvm-project-%{commit}

%build
# gcc is too old in rosa2016.1
#export CC=gcc
#export CXX=g++
export CC=/opt/llvm12/bin/clang
export CXX=/opt/llvm12/bin/clang++

# A couple more fixes from OMV + a workaround for a bug (?) in GCC 4.9:
# https://llvm.org/bugs/show_bug.cgi?id=20080 and
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
# (-fno-devirtualize)
#
# compiler-rt assumes off_t is 64 bits -- make sure this is true even on
# 32 bit OSes
%ifarch %ix86
# compiler-rt doesn't support ix86 with x<6 either
export CFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g1"
export CXXFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-devirtualize -g1 -Wno-redundant-move"
%else
export CXXFLAGS="%{optflags} -fno-devirtualize -g1 -Wno-redundant-move"
%endif

%ifarch %ix86
# Fix noexecstack
for i in compiler-rt/lib/builtins/i386/*.S; do
	cat >>$i <<'EOF'
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
EOF
done
%endif

%if %{mdvver} == 201610
export PYTHONPATH=/usr/bin/
export PATH=$PYTHONPATH:$PATH
%endif

%setup_compile_flags
mkdir -p build
cd build
# We actually need only clang to build chromium-browser-stable,
# other subprojects fail to build when using /opt/llvm12/bin/clang++,
# build OK when using gcc, but gcc is too old in rosa2016.1,
# so let's build clang only for now.
# -DLLVM_ENABLE_PROJECTS='clang-tools-extra;libcxx;libcxxabi;%{!?with_lldb:lldb;}compiler-rt;lld;polly'
cmake ../llvm \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DCMAKE_BUILD_TYPE=Release \
	-DLLVM_ENABLE_PROJECTS='clang' \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DLLVM_INCLUDE_TESTS:BOOL=OFF \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DCLANG_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DCLANG_DEFAULT_CXX_STDLIB="libstdc++" \
	-DCLANG_DEFAULT_RTLIB="libgcc" \
	-DLLVM_ENABLE_FFI:BOOL=ON \
	-DLLVM_ENABLE_RTTI:BOOL=ON \
	-DOCAMLFIND=NOTFOUND \
%if %{compile_apidox}
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
	-DLLVM_BUILD_DOCS:BOOL=ON \
%endif
	-DLLVM_OPTIMIZED_TABLEGEN=ON

%make -s

%install

%makeinstall_std -C build

# [From OMV]
# Polly bits as described on
# http://polly.llvm.org/example_load_Polly_into_clang.html
cat >%{buildroot}%{_bindir}/pollycc <<'EOF'
#!/bin/sh
exec %{_bindir}/clang -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
cat >%{buildroot}%{_bindir}/pollyc++ <<'EOF'
#!/bin/sh
exec %{_bindir}/clang++ -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/pollycc %{buildroot}%{_bindir}/pollyc++

# Install libraries used for testing
cp -a build/%{_lib}/BugpointPasses.so %{buildroot}%{_libdir}
cp -a build/%{_lib}/LLVMHello.so %{buildroot}%{_libdir}

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{hmaptool,scan-view}

%check
patchelf --print-rpath %{buildroot}%{_bindir}/clang | grep -q %{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14507 |21mr|llvm15-15.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname llvm

%define _olibdir /usr/%{_lib}
%define _prefix /opt/%{name}
%define _bindir %{_prefix}/bin
%define _datadir %{_prefix}/share
%define _includedir %{_prefix}/include
%define _libdir %{_prefix}/%{_lib}
%define _libexecdir %{_prefix}/libexec
%define _mandir %{_prefix}/share/man

%define _disable_ld_no_undefined 1
%global optflags %{optflags} -fno-strict-aliasing
%global ldflags %{ldflags} -Wl,-rpath,%{_libdir}

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%define maj_ver 15
%define libname %mklibname llvm%{maj_ver}

%if %{mdvver} == 201610
%bcond_without lldb
%else
%bcond_with lldb
%endif

%global optflags %{optflags} -Wno-ignored-optimization-argument

Summary:	LLVM and Clang in %{_prefix}
# llvm13
Name:		llvm%{maj_ver}
Version:	15.0.7
Release:	2
License:	NCSA
Group:		Development/Other
Url:		http://llvm.org
Source0:	https://github.com/llvm/llvm-project/archive/refs/tags/llvmorg-%{version}.tar.gz
Source1000:	llvm%{maj_ver}.rpmlintrc
# Adjust the search paths to match the OS, adjust the default compiler flags as well.
Patch1:		clang-rosa.patch
BuildRequires:	gcc
BuildRequires:	stdc++-devel
# gcc is too old in rosa2016.1, llvm12 was buildable with it but llvm13 is already not
BuildRequires:	llvm12
BuildRequires:	binutils-devel
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libtirpc)
# patchelf is for %%check
BuildRequires:	patchelf
BuildRequires:	python3
BuildRequires:	sed
BuildRequires:	tcl
BuildRequires:	zip
%if %{compile_apidox}
BuildRequires:	doxygen
%endif
Requires:	libstdc++-devel
# Do not provide libraries rom /opt and do not try to depend from them
# ! Nothing must be linked with libllvm etc. from here!
AutoReq: 0
AutoProv: 0
# Require this manually instead of AutoReq
%if %rpm4
Requires:	%(patchelf --print-soname /usr/%{_lib}/libffi.so || echo foo)%{_arch_tag_suffix}
%else
# _arch_tag_suffix in needed form does not exist in rpm5, make a more dirty hack
Requires:	%{_lib}ffi%(patchelf --print-soname /usr/%{_lib}/libffi.so | rev | cut -d. -f1 | rev)
%endif


%description
LVM is a robust system, particularly well suited for developing new mid-level
language-independent analyses and optimizations of all sorts, including those
that require  extensive interprocedural analysis. LLVM is also a great target
for front-end development for conventional or research programming languages,
including those which require compile-time, link-time, or run-time optimization
for effective implementation, proper tail calls or garbage collection.

This package contains LLVM and Clang in %{_prefix}.

%files
%{_prefix}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libname}
LLVM %{maj_ver} shared library

%files -n %{libname}
%{_olibdir}/libLLVM-%{maj_ver}*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n llvm-project-llvmorg-%{version}

%build
# gcc is too old in rosa2016.1
#export CC=gcc
#export CXX=g++
export CC=/opt/llvm12/bin/clang
export CXX=/opt/llvm12/bin/clang++
%setup_compile_flags

# A couple more fixes from OMV + a workaround for a bug (?) in GCC 4.9:
# https://llvm.org/bugs/show_bug.cgi?id=20080 and
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
# (-fno-devirtualize)
#
# compiler-rt assumes off_t is 64 bits -- make sure this is true even on
# 32 bit OSes
%ifarch %ix86
# compiler-rt doesn't support ix86 with x<6 either
export CFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g1"
export CXXFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-devirtualize -g1 -Wno-redundant-move"
%else
export CXXFLAGS="%{optflags} -fno-devirtualize -g1 -Wno-redundant-move"
%endif

%ifarch %ix86
# Fix noexecstack
for i in compiler-rt/lib/builtins/i386/*.S; do
	cat >>$i <<'EOF'
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
EOF
done
%endif

%if %{mdvver} == 201610
export PYTHONPATH=/usr/bin/
export PATH=$PYTHONPATH:$PATH
%endif

mkdir -p build
# We actually need only clang and lld to build chromium-browser-stable,
# other subprojects fail to build when using /opt/llvm12/bin/clang++,
# build OK when using gcc, but gcc is too old in rosa2016.1,
# so let's build clang and lld only for now.
# -DLLVM_ENABLE_PROJECTS='clang-tools-extra;libcxx;libcxxabi;%{!?with_lldb:lldb;}compiler-rt;lld;polly'
cmake -S llvm -B build -G Ninja \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DCMAKE_BUILD_TYPE=Release \
	-DLLVM_ENABLE_PROJECTS='clang;lld' \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
	-DDLLVM_LINK_LLVM_DYLIB:BOOL=ON \
	-DLLVM_VERSION_SUFFIX="" \
	-DLLVM_INCLUDE_TESTS:BOOL=OFF \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DCLANG_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DCLANG_REPOSITORY_STRING="%{vendor} %{version}-%{release}" \
	-DCLANG_DEFAULT_CXX_STDLIB="libstdc++" \
	-DCLANG_DEFAULT_RTLIB="libgcc" \
	-DLLVM_ENABLE_FFI:BOOL=ON \
	-DLLVM_ENABLE_RTTI:BOOL=ON \
	-DOCAMLFIND=NOTFOUND \
%if %{mdvver} <= 201610
	-DLLVM_TEMPORARILY_ALLOW_OLD_TOOLCHAIN:BOOL=ON \
%endif
%if %{compile_apidox}
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
	-DLLVM_BUILD_DOCS:BOOL=ON \
%endif
	-DLLVM_OPTIMIZED_TABLEGEN=ON

cmake --build build

%install
DESTDIR=%{buildroot} cmake --install build

# [From OMV]
# Polly bits as described on
# http://polly.llvm.org/example_load_Polly_into_clang.html
cat >%{buildroot}%{_bindir}/pollycc <<'EOF'
#!/bin/sh
exec %{_bindir}/clang -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
cat >%{buildroot}%{_bindir}/pollyc++ <<'EOF'
#!/bin/sh
exec %{_bindir}/clang++ -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/pollycc %{buildroot}%{_bindir}/pollyc++

# Install libraries used for testing
cp -a build/%{_lib}/BugpointPasses.so %{buildroot}%{_libdir}
cp -a build/%{_lib}/LLVMHello.so %{buildroot}%{_libdir}

# Will be used in Mesa
mkdir -p %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libLLVM-%{maj_ver}.so %{buildroot}%{_olibdir}
# RPATH to /opt/... is not needed here
patchelf --remove-rpath %{buildroot}%{_olibdir}/*.so*

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{hmaptool,scan-view}

%check
patchelf --print-rpath %{buildroot}%{_bindir}/clang | grep -q %{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14508 |21mr|llvm17-17-3.git600970.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%ifarch %{ix86}
%global debugcflags %(echo %{debugcflags} | sed -e "s,-gdwarf-4,-g1,g")
%endif

%define commit 6009708b4367171ccdbf4b5905cb6a803753fe18
%define commit_short %(echo %{commit} | head -c 6)

%define oname llvm

%define _obindir /usr/bin
%define _olibdir /usr/%{_lib}
%define _prefix /opt/%{name}
%define _bindir %{_prefix}/bin
%define _datadir %{_prefix}/share
%define _includedir %{_prefix}/include
%define _libdir %{_prefix}/%{_lib}
%define _libexecdir %{_prefix}/libexec
%define _mandir %{_prefix}/share/man

%define _disable_ld_no_undefined 1
%global optflags %{optflags} -fno-strict-aliasing
%global ldflags %{ldflags} -Wl,-rpath,%{_libdir} -latomic

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%define maj_ver 17
%define libname %mklibname llvm%{maj_ver}
%define libclang %mklibname clang%{maj_ver}
%define libclangcpp %mklibname clang-cpp%{maj_ver}
%define libremarks %mklibname remarks%{maj_ver}
%define liblto %mklibname lto%{maj_ver}

%bcond_without rt
%bcond_without lldb
%bcond_without polly
%bcond_without clang
%bcond_without lld
%define project %{?with_clang:clang;clang-tools-extra;}%{?with_lldb:lldb;}%{?with_lld:lld;}%{?with_polly:polly;}%{?with_rt:compiler-rt}

Summary:	LLVM and Clang in %{_prefix}
# llvm17
Name:		llvm%{maj_ver}
Version:	%{maj_ver}
Release:	3.git%{commit_short}.2
License:	NCSA
Group:		Development/Other
Url:		http://llvm.org
Source0:	https://github.com/llvm/llvm-project/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1000:	llvm%{maj_ver}.rpmlintrc
# Adjust the search paths to match the OS, adjust the default compiler flags as well.
Patch1:		clang-rosa.patch
BuildRequires:	gcc
BuildRequires:	stdc++-devel
BuildRequires:	binutils-devel
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	lzma-devel
# patchelf is for %%check
BuildRequires:	patchelf
BuildRequires:	python3
BuildRequires:	sed
BuildRequires:	tcl
BuildRequires:	zip
%if %{compile_apidox}
BuildRequires:	doxygen
%endif
Requires:	libstdc++-devel
Requires:	clangd-%{maj_ver} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libclang} = %{EVRD}
Requires:	%{libclangcpp} = %{EVRD}
Requires:	%{libremarks} = %{EVRD}
Requires:	%{liblto} = %{EVRD}

# Do not provide libraries rom /opt and do not try to depend from them
# ! Nothing must be linked with libllvm etc. from here!
AutoReq: 0
AutoProv: 0
# Require this manually instead of AutoReq
Requires:	%(patchelf --print-soname /usr/%{_lib}/libffi.so || echo foo)%{_arch_tag_suffix}


%description
LVM is a robust system, particularly well suited for developing new mid-level
language-independent analyses and optimizations of all sorts, including those
that require  extensive interprocedural analysis. LLVM is also a great target
for front-end development for conventional or research programming languages,
including those which require compile-time, link-time, or run-time optimization
for effective implementation, proper tail calls or garbage collection.

This package contains LLVM and Clang in %{_prefix}.

%files
%{_prefix}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libname}
LLVM %{maj_ver} shared library

%files -n %{libname}
%{_olibdir}/libLLVM-%{maj_ver}*.so

#----------------------------------------------------------------------------
%package -n %{libclang}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libclang}
LLVM %{maj_ver} shared library

%files -n %{libclang}
%{_olibdir}/libclang.so.%{maj_ver}*

#----------------------------------------------------------------------------
%package -n %{libclangcpp}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libclangcpp}
LLVM %{maj_ver} shared library

%files -n %{libclangcpp}
%{_olibdir}/libclang-cpp.so.%{maj_ver}

#----------------------------------------------------------------------------
%package -n %{libremarks}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libremarks}
LLVM %{maj_ver} shared library

%files -n %{libremarks}
%{_olibdir}/libRemarks.so.%{maj_ver}

#----------------------------------------------------------------------------

%package -n %{liblto}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{liblto}
LLVM %{maj_ver} shared library

%files -n %{liblto}
%{_olibdir}/libLTO.so.%{maj_ver}

#----------------------------------------------------------------------------

%package -n clangd-%{maj_ver}
Summary:	clangd - Language server that provides IDE-like features to editors
Group:          Development/Other
AutoReq:	1
AutoProv:	1

%description -n clangd-%{maj_ver}
clangd - Language server that provides IDE-like features to editors

%files -n clangd-%{maj_ver}
%{_bindir}/clangd
%{_obindir}/clangd-%{maj_ver}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n llvm-project-%{commit}

%build
%setup_compile_flags

# A couple more fixes from OMV + a workaround for a bug (?) in GCC 4.9:
# https://llvm.org/bugs/show_bug.cgi?id=20080 and
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
# (-fno-devirtualize)
#
# compiler-rt assumes off_t is 64 bits -- make sure this is true even on
# 32 bit OSes
%ifarch %ix86
# compiler-rt doesn't support ix86 with x<6 either
export CFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g1"
export CXXFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-devirtualize -g1 -Wno-redundant-move"
%else
export CXXFLAGS="%{optflags} -fno-devirtualize -g1 -Wno-redundant-move"
%endif

%ifarch %ix86
# Fix noexecstack
for i in compiler-rt/lib/builtins/i386/*.S; do
	cat >>$i <<'EOF'
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
EOF
done
%endif

cmake -S llvm -B build -G "Unix Makefiles" \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_STATIC_LIBS:BOOL=ON \
	-DLLVM_ENABLE_PROJECTS:STRING='%{project}' \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
	-DDLLVM_LINK_LLVM_DYLIB:BOOL=ON \
	-DLLVM_VERSION_SUFFIX="" \
	-DLLVM_INCLUDE_TESTS:BOOL=OFF \
	-DLLVM_ENABLE_FFI:BOOL=ON \
	-DLLVM_ENABLE_RTTI:BOOL=ON \
	-DCLANG_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DCLANG_REPOSITORY_STRING="%{vendor} %{version}-%{release}" \
	-DCLANG_DEFAULT_CXX_STDLIB="libstdc++" \
	-DCLANG_DEFAULT_RTLIB="libgcc" \
	-DOCAMLFIND=NOTFOUND \
%if %{compile_apidox}
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
	-DLLVM_BUILD_DOCS:BOOL=ON \
%endif
	-DLLVM_OPTIMIZED_TABLEGEN=ON

make %{_smp_mflags} -C build

%install
DESTDIR=%{buildroot} make install -C build

# [From OMV]
# Polly bits as described on
# http://polly.llvm.org/example_load_Polly_into_clang.html
cat >%{buildroot}%{_bindir}/pollycc <<'EOF'
#!/bin/sh
exec %{_bindir}/clang -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
cat >%{buildroot}%{_bindir}/pollyc++ <<'EOF'
#!/bin/sh
exec %{_bindir}/clang++ -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/pollycc %{buildroot}%{_bindir}/pollyc++

# Install libraries used for testing
cp -a build/%{_lib}/BugpointPasses.so %{buildroot}%{_libdir}
cp -a build/%{_lib}/LLVMHello.so %{buildroot}%{_libdir}

# Will be used in Mesa and ispc
mkdir -p %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libLLVM-%{maj_ver}.so %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libclang.so.%{maj_ver}.0.6 %{buildroot}%{_olibdir}
pushd %{buildroot}%{_libdir}
ln -svf libclang.so.%{maj_ver} libclang.so
popd

install -m0755 %{buildroot}%{_libdir}/libclang-cpp.so.%{maj_ver} %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libRemarks.so.%{maj_ver} %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libLTO.so.%{maj_ver} %{buildroot}%{_olibdir}

ln -s %{_libdir}/clang/17/lib/*-linux-gnu \
	%{buildroot}%{_libdir}/clang/17/lib/%{_os}

%ifarch %{x86_64} %{arm64}
ln -s %{_libdir} \
	%{buildroot}%{_prefix}/lib
%endif

mkdir -p %{buildroot}%{_obindir}
ln -s %{_bindir}/clangd \
	%{buildroot}%{_obindir}/clangd-%{maj_ver}

# RPATH to /opt/... is not needed here
patchelf --remove-rpath %{buildroot}%{_olibdir}/*.so*

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{hmaptool,scan-view}

%check
patchelf --print-rpath %{buildroot}%{_bindir}/clang | grep -q %{_libdir}

%{buildroot}%{_bindir}/llvm-config --shared-mode
%{buildroot}%{_bindir}/clang --version



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14509 |21mr|llvm18-18-3.git3b5b5c.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define commit 3b5b5c1ec4a3095ab096dd780e84d7ab81f3d7ff
%define commit_short %(echo %{commit} | head -c 6)

%define oname llvm

%define _obindir /usr/bin
%define _olibdir /usr/%{_lib}
%define _prefix /opt/%{name}
%define _bindir %{_prefix}/bin
%define _datadir %{_prefix}/share
%define _includedir %{_prefix}/include
%define _libdir %{_prefix}/%{_lib}
%define _libexecdir %{_prefix}/libexec
%define _mandir %{_prefix}/share/man

%define _disable_ld_no_undefined 1
%global optflags %{optflags} -fno-strict-aliasing
%global ldflags %{ldflags} -Wl,-rpath,%{_libdir} -latomic

%ifarch loongarch64
%global ldflags %{ldflags} -Wl,-no-keep-memory -Wl,--reduce-memory-overheads -Wl,--strip-debug
%endif

%define compile_apidox 0
%{?_with_apidox: %{expand: %%global compile_apidox 1}}

%define maj_ver 18
%define libname %mklibname llvm%{maj_ver}
%define libclang %mklibname clang%{maj_ver}
%define libclangcpp %mklibname clang-cpp%{maj_ver}
%define libremarks %mklibname remarks%{maj_ver}
%define liblto %mklibname lto%{maj_ver}

%bcond_without rt
%bcond_without lldb
%bcond_without polly
%bcond_without clang
%bcond_without lld
%define project %{?with_clang:clang;clang-tools-extra;}%{?with_lldb:lldb;}%{?with_lld:lld;}%{?with_rt:compiler-rt;}

%global __provides_exclude ^cmake\\(Polly|polly

Summary:	LLVM and Clang in %{_prefix}
# llvm18
Name:		llvm%{maj_ver}
Version:	%{maj_ver}
Release:	3.git%{commit_short}.2
License:	NCSA
Group:		Development/Other
Url:		http://llvm.org
Source0:	https://github.com/llvm/llvm-project/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1000:	llvm%{maj_ver}.rpmlintrc
# Adjust the search paths to match the OS, adjust the default compiler flags as well.
Patch1:		clang-rosa.patch
BuildRequires:	gcc
BuildRequires:	stdc++-devel
BuildRequires:	binutils-devel
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	flex
BuildRequires:	graphviz
BuildRequires:	groff
BuildRequires:	libstdc++-devel
BuildRequires:	libtool
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libtirpc)
# patchelf is for %%check
BuildRequires:	patchelf
BuildRequires:	python3
BuildRequires:	sed
BuildRequires:	tcl
BuildRequires:	zip
%if %{compile_apidox}
BuildRequires:	doxygen
%endif
Requires:	libstdc++-devel
Requires:	clangd-%{maj_ver} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libclang} = %{EVRD}
Requires:	%{libclangcpp} = %{EVRD}
Requires:	%{libremarks} = %{EVRD}
Requires:	%{liblto} = %{EVRD}

# Do not provide libraries rom /opt and do not try to depend from them
# ! Nothing must be linked with libllvm etc. from here!
AutoReq: 0
AutoProv: 0
# Require this manually instead of AutoReq
Requires:	%(patchelf --print-soname /usr/%{_lib}/libffi.so || echo foo)%{_arch_tag_suffix}


%description
LVM is a robust system, particularly well suited for developing new mid-level
language-independent analyses and optimizations of all sorts, including those
that require  extensive interprocedural analysis. LLVM is also a great target
for front-end development for conventional or research programming languages,
including those which require compile-time, link-time, or run-time optimization
for effective implementation, proper tail calls or garbage collection.

This package contains LLVM and Clang in %{_prefix}.

%files
%{_prefix}
%exclude %{_bindir}/polly*
%exclude %{_libdir}/*Polly*
%exclude %{_libdir}/cmake/polly
%exclude %{_includedir}/polly

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libname}
LLVM %{maj_ver} shared library

%files -n %{libname}
%{_olibdir}/libLLVM-%{maj_ver}*.so
%{_olibdir}/libLLVM.so.%{maj_ver}.1

#----------------------------------------------------------------------------

%package -n %{libclang}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libclang}
LLVM %{maj_ver} shared library

%files -n %{libclang}
%{_olibdir}/libclang.so.%{maj_ver}*

#----------------------------------------------------------------------------

%package -n %{libclangcpp}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libclangcpp}
LLVM %{maj_ver} shared library

%files -n %{libclangcpp}
%{_olibdir}/libclang-cpp.so.%{maj_ver}.1

#----------------------------------------------------------------------------

%package -n %{libremarks}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{libremarks}
LLVM %{maj_ver} shared library

%files -n %{libremarks}
%{_olibdir}/libRemarks.so.%{maj_ver}.1

#----------------------------------------------------------------------------

%package -n %{liblto}
Summary:	LLVM %{maj_ver} shared library
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n %{liblto}
LLVM %{maj_ver} shared library

%files -n %{liblto}
%{_olibdir}/libLTO.so.%{maj_ver}.1

#----------------------------------------------------------------------------

%package -n clangd-%{maj_ver}
Summary:	clangd - Language server that provides IDE-like features to editors
Group:          Development/Other
AutoReq:	1
AutoProv:	1

%description -n clangd-%{maj_ver}
clangd - Language server that provides IDE-like features to editors

%files -n clangd-%{maj_ver}
%{_bindir}/clangd
%{_obindir}/clangd-%{maj_ver}

#----------------------------------------------------------------------------
%if %{with polly}
%package -n polly-%{maj_ver}
Summary:	Polyhedral optimizations for LLVM
Group:		System/Libraries
AutoReq:	1
AutoProv:	1

%description -n polly-%{maj_ver}
Polly is a polyhedral optimizer for LLVM.

Using an abstract mathematical representation it analyzes and optimizes
the memory access pattern of a program. This includes data-locality
optimizations for cache locality as well as automatic parallelization
for thread-level and SIMD parallelism.

Our overall goal is an integrated optimizer for data-locality and
parallelism that takes advantage of multi-cores, cache hierarchies,
short vector instructions as well as dedicated accelerators.

%files -n polly-%{maj_ver}
%{_bindir}/pollycc
%{_bindir}/pollyc++
%{_libdir}/LLVMPolly.so
%{_libdir}/libPolly*.a
%{_libdir}/cmake/polly
%{_includedir}/polly
%endif
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n llvm-project-%{commit}

%build
%setup_compile_flags

# A couple more fixes from OMV + a workaround for a bug (?) in GCC 4.9:
# https://llvm.org/bugs/show_bug.cgi?id=20080 and
# https://gcc.gnu.org/bugzilla/show_bug.cgi?id=61659
# (-fno-devirtualize)
#
# compiler-rt assumes off_t is 64 bits -- make sure this is true even on
# 32 bit OSes
%ifarch %ix86
# compiler-rt doesn't support ix86 with x<6 either
export CFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -g1"
export CXXFLAGS="%{optflags} -march=i686 -D_LARGEFILE_SOURCE=1 -D_LARGEFILE64_SOURCE=1 -D_FILE_OFFSET_BITS=64 -fno-devirtualize -g1 -Wno-redundant-move"
%else
export CXXFLAGS="%{optflags} -fno-devirtualize -g1 -Wno-redundant-move"
%endif

%ifarch %ix86
# Fix noexecstack
for i in compiler-rt/lib/builtins/i386/*.S; do
	cat >>$i <<'EOF'
#if defined(__linux__) && defined(__ELF__)
.section .note.GNU-stack,"",%progbits
#endif
EOF
done
%endif

cmake -S llvm -B build -G "Unix Makefiles" \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DBUILD_SHARED_LIBS:BOOL=OFF \
	-DBUILD_STATIC_LIBS:BOOL=ON \
	-DLLVM_ENABLE_PROJECTS:STRING='%{project}' \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DLLVM_BUILD_LLVM_DYLIB:BOOL=ON \
	-DDLLVM_LINK_LLVM_DYLIB:BOOL=ON \
	-DLLVM_VERSION_SUFFIX="" \
	-DLLVM_INCLUDE_TESTS:BOOL=OFF \
	-DLLVM_ENABLE_FFI:BOOL=ON \
	-DLLVM_ENABLE_RTTI:BOOL=ON \
	-DCLANG_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,') \
	-DCLANG_REPOSITORY_STRING="%{vendor} %{version}-%{release}" \
	-DCLANG_DEFAULT_CXX_STDLIB="libstdc++" \
	-DCLANG_DEFAULT_RTLIB="libgcc" \
	-DOCAMLFIND=NOTFOUND \
%if %{compile_apidox}
	-DLLVM_INCLUDE_DOCS:BOOL=ON \
	-DLLVM_BUILD_DOCS:BOOL=ON \
%endif
	-DLLVM_OPTIMIZED_TABLEGEN=ON

%make -s -C build

%if %{with polly}
export PATH="$PWD/build/bin:$PATH"
export LD_LIBRARY_PATH="$PWD/build/%{_lib}:$LD_LIBRARY_PATH"

cmake -S polly -B polly_build -G "Unix Makefiles" \
	-DCMAKE_BUILD_TYPE=Release \
	-DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
	-DLLVM_LINK_LLVM_DYLIB:BOOL=ON \
	-DLLVM_LIBDIR_SUFFIX=$(echo %{_lib} | sed -e 's,^lib,,')
%make -s -C polly_build
%endif

%install
DESTDIR=%{buildroot} make install -C build

%if %{with polly}
DESTDIR=%{buildroot} make install -C polly_build

# [From OMV]
# Polly bits as described on
# http://polly.llvm.org/example_load_Polly_into_clang.html
cat >%{buildroot}%{_bindir}/pollycc <<'EOF'
#!/bin/sh
exec %{_bindir}/clang -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
cat >%{buildroot}%{_bindir}/pollyc++ <<'EOF'
#!/bin/sh
exec %{_bindir}/clang++ -O3 -Xclang -load -Xclang %{_libdir}/LLVMPolly.so "$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/pollycc %{buildroot}%{_bindir}/pollyc++
%endif

# Install libraries used for testing
cp -a build/%{_lib}/BugpointPasses.so %{buildroot}%{_libdir}
cp -a build/%{_lib}/LLVMHello.so %{buildroot}%{_libdir}

# Will be used in Mesa and ispc
mkdir -p %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libLLVM-%{maj_ver}.so %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libclang.so.%{maj_ver}.1.8 %{buildroot}%{_olibdir}
pushd %{buildroot}%{_libdir}
ln -svf libclang.so.%{maj_ver}.1.8 libclang.so
popd

install -m0755 %{buildroot}%{_libdir}/libclang-cpp.so.%{maj_ver}.1 %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libRemarks.so.%{maj_ver}.1 %{buildroot}%{_olibdir}
install -m0755 %{buildroot}%{_libdir}/libLTO.so.%{maj_ver}.1 %{buildroot}%{_olibdir}

ln -s %{_libdir}/clang/18/lib/*-linux-gnu \
	%{buildroot}%{_libdir}/clang/18/lib/%{_os}

mkdir -p %{buildroot}%{_obindir}
ln -s %{_bindir}/clangd \
    %{buildroot}%{_obindir}/clangd-%{maj_ver}

# RPATH to /opt/... is not needed here
patchelf --remove-rpath %{buildroot}%{_olibdir}/*.so*

# Versionize shebangs python
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{hmaptool,scan-view}

%check
patchelf --print-rpath %{buildroot}%{_bindir}/clang | grep -q %{_libdir}

%{buildroot}%{_bindir}/llvm-config --shared-mode
%{buildroot}%{_bindir}/clang --version



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14510 |21mr|lmdb-0.9.31-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Upstream lmdb is built as an unversioned static library,
# we patch it to build as a versioned shared one
%define major %(echo %{version} | cut -d. -f1)
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Memory-mapped key-value database
Name:		lmdb
Version:	0.9.31
Release:	2
License:	OpenLDAP
Group:		System/Libraries
Url:		http://symas.com/mdb/
Source0:	https://github.com/LMDB/lmdb/archive/LMDB_%{version}.tar.gz
Patch0:		ROSA-Build-and-use-shared-libraries.patch

%description
LMDB is an ultra-fast, ultra-compact key-value embedded data store developed
by for the OpenLDAP Project. By using memory-mapped files, it provides the
read performance of a pure in-memory database while still offering the
persistence of standard disk-based databases, and is only limited to the
size of the virtual address space.

%files
%{_bindir}/mdb_*
%{_mandir}/man1/mdb_*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc CHANGES COPYRIGHT LICENSE
%{_libdir}/liblmdb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/lmdb.h
%{_libdir}/liblmdb.so
%{_libdir}/pkgconfig/lmdb.pc

#----------------------------------------------------------------------------

# based on openSUSE spec
%prep
%setup -qn lmdb-LMDB_%{version}/libraries/liblmdb
%patch0 -p3

%build
%make \
	SOVERSION=%{version} \
	SOMAJ=%{major} \
	CFLAGS="%{optflags}"

%install
%makeinstall_std \
	SOVERSION=%{version} \
	SOMAJ=%{major} \
	bindir=%{_bindir} \
	libdir=%{_libdir} \
	mandir=%{_mandir} \
	includedir=%{_includedir} \
	datarootdir=%{_datadir}

ln -s -r %{buildroot}%{_libdir}/liblmdb.so.%{version} %{buildroot}%{_libdir}/liblmdb.so.%{major}
ln -s -r %{buildroot}%{_libdir}/liblmdb.so.%{major} %{buildroot}%{_libdir}/liblmdb.so
# compatibility with binaries built on e.g. Debian which has only liblmdb.so.0.0.0, no liblmdb.so.0
ln -s -r %{buildroot}%{_libdir}/liblmdb.so.%{version} %{buildroot}%{_libdir}/liblmdb.so.0.0.0

#https://bugzilla.redhat.com/show_bug.cgi?id=1433661
mkdir -p %{buildroot}%{_libdir}/pkgconfig

cat << EOF > %{buildroot}%{_libdir}/pkgconfig/lmdb.pc
prefix=%{_prefix}
exec_prefix=%{_libexecdir}
libdir=%{_libdir}
includedir=%{_includedir}

Name: liblmdb
Description: Lightning Memory-mapped key-value database
URL: http://symas.com/mdb/
Version: %{version}
Libs: -L\${libdir} -llmdb
Cflags: -I\${includedir}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14511 |21mr|lmms-1.2.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# RemoteZynAddSubFx doesn't work without rpath
%global	_cmake_skip_rpath %%{nil}

# Needed to avoid link errors on carlabase plugin
# See upstream issue #4156
%global	_disable_ld_no_undefined 1

# Little hack to avoid test failure on i686
%global __requires_exclude libvstbase.*|libcarla_native-plugin*


%define	devname %mklibname %{name} -d
%define	candidate rc6

Summary:	Linux MultiMedia Studio
Name:		lmms
Version:	1.2.2
Release:	8
License:	GPLv2+
Group:		Sound
Url:		http://lmms.sourceforge.net/
# We need to re-package the original sources (%%{name}-%%{version}-%%{candidate}.tar.gz)
# since they don't include some needed sub-modules
Source0:	https://github.com/LMMS/lmms/archive/%{name}-%{version}.tar.gz
Source1:	lmms-1.2.0_ru.tar.gz
Source100:	%{name}.rpmlintrc
# Fix building against Carla 2.4.3, see #6395
Patch0:         lmms-1.2.2_carla_2.4.3.patch
BuildRequires:	cmake >= 2.8.11
BuildRequires:	doxygen
BuildRequires:	git
BuildRequires:	qt5-linguist-tools
BuildRequires:	fltk-devel
BuildRequires:	ladspa-devel
BuildRequires:	lame-devel
BuildRequires:	SDL_sound-devel
BuildRequires:	soundio-devel
# Synthesis ToolKit
BuildRequires:	stk-devel >= 4.4.4
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(carla-standalone) >= 1.9.5
BuildRequires:	pkgconfig(fftw3) >= 3.0.0
BuildRequires:	pkgconfig(fluidsynth) >= 1.0.7
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gig) >= 4.1.0
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(samplerate) >= 0.1.8
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(sndfile) >= 1.0.26
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
%ifarch %{ix86}
# For full VST support (only on 32bit)
BuildRequires:	wine32-stable-devel
%endif
Requires:	lv2-calf-plugins
Requires:	caps
Requires:	carla
Requires:	carla-vst
Requires:	cmt
Requires:	fltk
Requires:	lame
Requires:	swh-plugins
%rename		lmms-mt

%description
LMMS combines the features of a tracker-sequencer program and those of
powerful synthesizers, samplers, effects etc. in a modern, user-friendly and
easy to use graphical user-interface.

%files
%doc README.md LICENSE.txt
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_libdir}/%{name}/*
%{_mandir}/man?/*
%{_datadir}/applications/*.desktop
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_iconsdir}/hicolor/scalable/mimetypes/application-x-%{name}-project.svg
%{_iconsdir}/hicolor/*/mimetypes/application-x-%{name}-project.png
%{_sysconfdir}/modules-load.d/%{name}.conf

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	LMMS development files
Group:		Development/Other

%description -n %{devname}
Development headers for LMMS.

%files -n %{devname}
%doc LICENSE.txt
%{_includedir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

pushd data/locale
	tar -xvzf %{SOURCE1}
popd

# Fix perms
find . -name "*.h" -o -name "*.cpp"| xargs chmod 0644


%build
# Workaround FindFLTK.cmake bug with FLTK 1.3.3
# see: http://osdir.com/ml/general/2015-07/msg33210.html
%cmake -DCMAKE_BUILD_TYPE="Release" \
	-DFORCE_VERSION="internal" \
	-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
	-DFLTK_FLUID_EXECUTABLE="%{_bindir}/fluid" \
	-DFLTK_INCLUDE_DIR="%{_includedir}/FL" \
	-DWANT_CARLA=ON -DWANT_SOUNDIO=ON \
	-DWANT_QT5=ON -DWANT_WEAKJACK=OFF \
	-DBUNDLE_QT5_TRANSLATIONS=ON \
%ifarch x86_64
	-DWANT_VST_NOWINE=ON -DWANT_VST=OFF
%else
	-DWANT_VST_NOWINE=OFF -DWANT_VST=ON
%endif
%make


%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_datadir}/menu/%{name}

# Remove unwanted static library
rm -f %{buildroot}%{_libdir}/libqx11embedcontainer.a

# To enable MIDI support at program start
mkdir -p %{buildroot}%{_sysconfdir}/modules-load.d
echo "snd_seq" > %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

# Why they install 2 times all the icons?
rm -rf %{_iconsdir}/hicolor/16x16@2
rm -rf %{_iconsdir}/hicolor/24x24@2
rm -rf %{_iconsdir}/hicolor/32x32@2
rm -rf %{_iconsdir}/hicolor/48x48@2
rm -rf %{_iconsdir}/hicolor/64x64@2
rm -rf %{_iconsdir}/hicolor/128x128@2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14512 |21mr|lm_sensors-3.6.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define hyphver %(echo %{version}|tr -s . -)

Summary:	Hardware monitoring tools
Name:		lm_sensors
Epoch:		1
Version:	3.6.0
Release:	4
License:	LGPLv2+
Group:		System/Kernel and hardware
Url:		https://github.com/lm-sensors/lm-sensors
Source0:	https://github.com/lm-sensors/lm-sensors/archive/V%{hyphver}.tar.gz?/lm-sensors-%{hyphver}.tar.gz
Source1:	lm_sensors.sysconfig
# these 2 were taken from PLD-linux, Thanks!
Source2:	sensord.sysconfig
Source10:	README.urpmi
# https://github.com/lm-sensors/lm-sensors/pull/367
Patch0001:	0001-Do-not-run-lm_sensors.service-in-virtual-environment.patch
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	flex
BuildRequires:	sysfsutils-devel
BuildRequires:	pkgconfig(librrd)
%ifarch %{ix86} %{x86_64}
Requires:	dmidecode
%endif

%description
This package contains a collection of user space tools for general SMBus
access and hardware monitoring. SMBus, also known as System Management Bus,
is a protocol for communicating through a I2C ('I squared C') bus. Many modern
mainboards have a System Management Bus. There are a lot of devices which can
be connected to a SMBus; the most notable are modern memory chips with EEPROM
memories and chips for hardware monitoring.

Most modern mainboards incorporate some form of hardware monitoring chips.
These chips read things like chip temperatures, fan rotation speeds and
voltage levels. There are quite a few different chips which can be used
by mainboard builders for approximately the same results.

%files
%license COPYING COPYING.LGPL
%doc CHANGES CONTRIBUTORS README doc README.urpmi
%config(noreplace) %{_sysconfdir}/sensors3.conf
%config(noreplace) %{_sysconfdir}/sysconfig/sensord
%config(noreplace) %{_sysconfdir}/sysconfig/lm_sensors
%{_bindir}/sensors
%{_bindir}/sensors-conf-convert
%{_sbindir}/sensors-detect
%{_sbindir}/sensord
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_sbindir}/fancontrol
%{_sbindir}/pwmconfig
%ifarch %{x86_64} %{ix86}
%{_sbindir}/isadump
%{_sbindir}/isaset
%endif
%{_unitdir}/fancontrol.service
%{_unitdir}/lm_sensors.service
%{_unitdir}/sensord.service

%post
%systemd_post fancontrol.service lm_sensors.service sensord.service

%preun
%systemd_preun fancontrol.service lm_sensors.service sensord.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries needed for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries to access %{name} internal data.

%files -n %{libname}
%license COPYING COPYING.LGPL
%{_libdir}/libsensors.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development libraries and header files for %{name}.

You might want to use this package while building applications that might
take advantage of %{name} if found.

%files -n %{devname}
%license COPYING COPYING.LGPL
%doc README CHANGES
%{_libdir}/libsensors.so
%{_includedir}/sensors/*
%{_mandir}/man3/*

#------------------------------------------------------------------

%prep
%setup -qn lm-sensors-%{hyphver}

%build
%setup_compile_flags

%make \
	CC=%{__cc} \
	PREFIX=%{_prefix}	\
	ETCDIR=%{_sysconfdir}	\
	LIBDIR=%{_libdir}	\
	MANDIR=%{_mandir}	\
	EXLDFLAGS="%{ldflags}"	\
	PROG_EXTRA=sensord	\
	BUILD_STATIC_LIB=0	\
	user

cp %{SOURCE10} .

%install
%make \
	CC=%{__cc} \
	DESTDIR=%{buildroot}	\
	PREFIX=%{_prefix}	\
	ETCDIR=%{_sysconfdir}	\
	LIBDIR=%{_libdir}	\
	MANDIR=%{_mandir}	\
	EXLDFLAGS="%{ldflags}"	\
	PROG_EXTRA=sensord	\
	BUILD_STATIC_LIB=0	\
	user_install

ln -s sensors.conf.5.gz %{buildroot}%{_mandir}/man5/sensors3.conf.5.gz

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/sensors.d
mkdir -p %{buildroot}%{_unitdir}
install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/lm_sensors
install -p -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/sensord
# (tpg) service files
install -p -m 644 prog/init/lm_sensors.service %{buildroot}%{_unitdir}
install -p -m 644 prog/init/sensord.service %{buildroot}%{_unitdir}
install -p -m 644 prog/init/fancontrol.service %{buildroot}%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14513 |21mr|lndir-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: lndir
Version:	1.0.3
Release:	1
Summary: Create a shadow directory of symbolic links to another directory tree
Group: System/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/util/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: x11-util-macros >= 1.0.1
BuildRequires: x11-proto-devel
BuildRequires: pkgconfig

%description
The lndir program makes a shadow copy of a directory tree, except that
the shadow is not populated with real files but instead with symbolic links
pointing at the real files in the source directory tree. This is usually
useful for maintaining source code for different machine architectures. You
create a shadow directory containing links to the real source, which you will
have usually mounted from a remote machine. You can build in the shadow tree,
and the object files will be in the shadow directory, while the source files
in the shadow directory are just symlinks to the real files.

%prep
%setup -q -n %{name}-%{version}

%build
%configure 	--x-includes=%{_includedir} \
		--x-libraries=%{_libdir}
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/lndir
%{_mandir}/man1/lndir.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14514 |21mr|localizer-1.23-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           localizer
Version:        1.23
Release:        10
Summary:        Type-safe localization message access for Java

License:        MIT
URL:            https://github.com/kohsuke/localizer
Source0:        https://github.com/kohsuke/%{name}/archive/%{name}-parent-%{version}.tar.gz
# License text taken from http://www.opensource.org/licenses/mit-license.php
Source1:        LICENSE.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.sun.codemodel:codemodel)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)


%description
This package provides Java code generator for type-safe
message resource bundle access.

%package        parent
Summary:        Parent POM file for %{name}

%description    parent
This package contains parent POM file for %{name}.

%package -n     maven-localizer-plugin
Summary:        Maven plugin for %{name}

%description -n maven-localizer-plugin
This package contains Apache Maven plugin for %{name}.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-%{name}-parent-%{version}

cp %{SOURCE1} LICENSE

# Separate package for parent POM
%mvn_package ":localizer-parent" parent

%build
%mvn_build -s

%install
%mvn_install


%files -f .mfiles-localizer
%doc LICENSE
%files parent -f .mfiles-parent
%doc LICENSE
%files -n maven-localizer-plugin -f .mfiles-maven-localizer-plugin
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14515 |21mr|local-policy-0.6.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _unpackaged_files_terminate_build 1

Name:		local-policy
Version:	0.6.0
Release:	6

Summary:	Rosa Local policies (based on ALT Local policies)
License:	GPLv2+
Group:		System/Base
Url:		http://git.altlinux.org/people/sin/packages/local-policy.git

BuildArch:	noarch
#for pre_control macros
BuildRequires:	control

Requires(pre):	control
# for functions-local-policy
Requires(pre):	libcap-utils
Requires:	control-sshd-permit-root-login

Source0:	%{name}-%{version}.tar

%description
Local policies for Rosa (based on ALT solutions based on Sisyphus)
includes additional control facilities and default policies
templates in PReg format converted to XML.

%files
%dir %attr(0700, root, root) %{_sysconfdir}/%{name}-system
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/control.d/facilities/*
%{_sysconfdir}/control.d/functions-local-policy
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*

%pre
%{_sbindir}/groupadd -r -f remote 2> /dev/null ||:
%pre_control local-policy-system-access
if [ ! -f "/var/run/control/local-policy-system-access" ]; then
    [ ! -d "/var/run/control" ] ||
        echo restricted > "/var/run/control/local-policy-system-access"
fi

%post
%post_control -s restricted local-policy-system-access

#--------------------------------------------------------
%prep
%setup -q
sed -i '/CONFIG=/ s,openssh,ssh,' controls/ssh*

%install
for i in sshd-gssapi-auth \
         sshd-allow-groups-list \
         ssh-gssapi-auth \
         krb5-conf-ccache \
         ldap-reverse-dns-lookup \
         ldap-tls-cert-check \
	 local-policy-system-access \
         sssd-ad-gpo-access-control \
         sssd-ad-gpo-ignore-unreadable \
         sssd-ad-update-machine-password \
         sssd-cache-credentials \
         sssd-drop-privileges \
         sssd-dyndns-update \
         sssd-dyndns-update-ptr \
         sssd-dyndns-refresh-interval \
         sssd-dyndns-ttl \
         autofs-browse-mode \
         smb-conf-idmap-backend \
         smb-conf-idmap-range \
         smb-conf-machine-password-timeout
do
        install -pD -m755 "controls/$i" \
                "%{buildroot}%{_sysconfdir}/control.d/facilities/$i"
done

install -pD -m755 "controls/functions-local-policy" \
        "%{buildroot}%{_sysconfdir}/control.d/"

mkdir -p "%{buildroot}%{_datadir}/%{name}"
cp -r policies/* "%{buildroot}%{_datadir}/%{name}"
mkdir -p "%{buildroot}%{_sysconfdir}/%{name}"
mkdir -p "%{buildroot}%{_sysconfdir}/%{name}-system"


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14516 |21mr|lockdev-1.0.4-0.1.20111007git.13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname lockdev %{major}
%define devname %mklibname lockdev -d

%bcond_with perl

# Where lock files are stored
%global _lockdir /run/lock/lockdev

%global checkout 20111007git
%global co_date  2011-10-07

Summary:	A library for locking devices
Name:		lockdev
Version:	1.0.4
Release:	0.1.%{checkout}.13
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://packages.qa.debian.org/l/lockdev.html
# This is a nightly snapshot downloaded via
# https://alioth.debian.org/snapshots.php?group_id=100443
Source0:	lockdev-%{version}.%{checkout}.tar.gz
BuildRequires:	chrpath
%if %{with perl}
BuildRequires:	perl-devel
%endif
Requires(pre):	rpm-helper
Requires(pre):	shadow-utils
Provides:	%{name}-baudboy = %{EVRD}
Obsoletes:	%{name}-baudboy < 1.0.4

%description
Lockdev provides a reliable way to put an exclusive lock to devices using both
FSSTND and SVr4 methods.

%files
%doc AUTHORS ChangeLog ChangeLog.old README.debug docs/LSB.991201
%attr(2755,root,lock) %{_sbindir}/lockdev
%{_mandir}/man8/*
%{_tmpfilesdir}/lockdev.conf

%pre
getent group lock >/dev/null || groupadd -g 54 -r -f lock
exit 0

%post
if [ $1 -eq 1 ] ; then
# for the time until first reboot
%tmpfiles_create %{name}
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for locking devices
Group:		System/Libraries

%description -n %{libname}
Lockdev provides a reliable way to put an exclusive lock to devices using both
FSSTND and SVr4 methods.

%files -n %{libname}
%{_libdir}/liblockdev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The Static lockdev library and header files for the lockdev library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Conflicts:	%{_lib}lockdev1-devel < 1.0.4-0.120111007git.9
Obsoletes:	%{_lib}lockdev1-devel < 1.0.4-0.120111007git.9

%description -n %{devname}
The lockdev library provides a reliable way to put an exclusive lock on devices
using both FSSTND and SVr4 methods. The lockdev-devel package contains the
static development library and headers.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*.h
%{_mandir}/man3/lockdev.3*
%{_libdir}/pkgconfig/lockdev.pc

#----------------------------------------------------------------------------

%if %{with perl}
%package -n perl-LockDev
Summary:	LockDev - Perl extension to manage device lockfiles
Group:		Development/Perl
Requires:	%{libname} = %{EVRD}

%description -n perl-LockDev
The LockDev methods act on device locks normally located in /var/lock. The lock
is acquired creating a pair of files hardlinked between them and named after
the device name (as mandated by FSSTND) and the device's major and minor
numbers (as in SVr4 locks). This permits to circumvent a problem using only the
FSSTND lock method when the same device exists under different names (for
convenience or when a device must be accessible by more than one group of
users).

The lock file names are typically in the form LCK..ttyS1 and LCK.004.065, and
their content is the pid of the process who owns the lock.

%files -n perl-LockDev
%{perl_vendorarch}/LockDev.pm
%dir %{perl_vendorarch}/auto/LockDev
%attr(0755,root,root) %{perl_vendorarch}/auto/LockDev/*.so
%{_mandir}/man3/LockDev.3*
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn lockdev-scm-%{co_date}

# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,<sys/types.h>,<sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
# Generate version information from git release tag
./scripts/git-version > VERSION

# To satisfy automake
touch ChangeLog

# Bootstrap autotools
autoreconf --verbose --force --install

CFLAGS="%{optflags} -D_PATH_LOCK=\\\"%{_lockdir}\\\"" \
%configure --disable-static --enable-helper

%make

%if %{with perl}
pushd LockDev
    perl Makefile.PL INSTALLDIRS=vendor
    make OPTIMIZE="%{optflags}"
popd
%endif

%install
# Fix upstream permission bug #3053
chmod 644 docs/LSB.991201
%makeinstall_std

%if %{with perl}
# nuke rpath
chrpath -d %{buildroot}%{perl_vendorarch}/auto/LockDev/*.so
%endif

# %%ghosted, but needs to be in buildroot
# on reboot re-created by %%{_prefix}/lib/tmpfiles.d/legacy.conf
mkdir -p %{buildroot}%{_lockdir}

# install /usr/lib/tmpfiles.d/lockdev.conf (#1324184)
mkdir -p %{buildroot}%{_tmpfilesdir}
cat > %{buildroot}%{_tmpfilesdir}/lockdev.conf <<EOF
# See tmpfiles.d(5) for details

d %{_lockdir} 0775 root lock -
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14517 |21mr|log4j12-1.2.17-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global archiversion %(echo %{version} | tr . _ )

%bcond_without dtd

Name:          log4j12
Version:       1.2.17
Release:       26
Summary:       Java logging package
License:       ASL 2.0
URL:           http://logging.apache.org/log4j/1.2/
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:       https://github.com/apache/log4j/archive/v%{archiversion}.tar.gz
Source1:       log4j.catalog

Patch0:        0001-logfactor5-changed-userdir.patch
Patch1:        0009-Fix-tests.patch
Patch2:        0010-Fix-javadoc-link.patch
# CVE-2017-5645
Patch3:        CVE-2019-17571.patch
Patch4:        CVE-2022-23305.patch
Patch5:        CVE-2021-4104.patch
Patch6:        CVE-2022-23302.patch
Patch7:        CVE-2022-23307.patch

BuildRequires: maven-local
BuildRequires: mvn(ant-contrib:ant-contrib)
BuildRequires: mvn(javax.mail:mail)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.ant:ant-junit)
BuildRequires: mvn(org.apache.ant:ant-nodeps)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(oro:oro)
BuildRequires: mvn(com.h2database:h2)

Obsoletes:     log4j <= 0:1.2.17-14

%description
Log4j is a tool to help the programmer output log statements to a
variety of output targets.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n log4j-%{archiversion}
# Cleanup
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete
find . -name "*.dll" -print -delete
rm -rf docs/api

%patch0 -p1 -b .logfactor-home
%patch1 -p1 -b .fix-tests
%patch2 -p1 -b .xlink-javadoc
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1

# Remove unavailable plugin
%pom_remove_plugin :clirr-maven-plugin
# Remove unwanted plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :rat-maven-plugin
# Disable javadoc jar
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"

# Remove openejb from dependencies
%pom_remove_dep org.apache.openejb:javaee-api

# Fix ant gId
sed -i.ant "s|groupId>ant<|groupId>org.apache.ant<|g" pom.xml

sed -i.javac "s|1.4|1.6|g" pom.xml build.xml
sed -i.javac "s|1.4|1.6|g" pom.xml build.xml
sed -i.javac "s|1.1|1.6|g" tests/build.xml
sed -i.javac "s|1.1|1.6|g" tests/build.xml

# Fix OSGi manifest
sed -i.javax.jmdns "s|javax.jmdns.*;resolution:=optional,|!javax.jmdns.*,|g" pom.xml
# Add proper bundle symbolicname
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:configuration/pom:instructions" "
  <Bundle-SymbolicName>org.apache.log4j</Bundle-SymbolicName>
  <_nouses>true</_nouses>"

# Disable build unwanted dll library 
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-antrun-plugin']/pom:executions/pom:execution[pom:phase = 'process-classes' ]"

# Don't use deprecated "assembly" goal of Maven Assembly Plugin, which
# was removed in version 3.0.0.
%pom_xpath_set "pom:plugin[pom:artifactId='maven-assembly-plugin']/pom:executions/pom:execution/pom:goals/pom:goal[text()='assembly']" single

sed -i 's/\r//g' LICENSE NOTICE src/site/resources/css/*.css

# fix encoding of mailbox files
for i in contribs/JimMoore/mail*;do
    iconv --from=ISO-8859-1 --to=UTF-8 "$i" > new
    mv new "$i"
done

# Needed by tests
mkdir -p tests/lib/
(cd tests/lib/
  ln -s `build-classpath jakarta-oro`
  ln -s `build-classpath javamail/mail`
  ln -s `build-classpath junit`
)

%mvn_compat_version log4j:log4j 1.2.17 1.2.16 1.2.15 1.2.14 1.2.13 1.2.12 12
# Remove Microsoft Windows platform specific files
rm -r src/main/java/org/apache/log4j/nt/NTEventLogAppender.java \
 tests/src/java/org/apache/log4j/nt/NTEventLogAppenderTest.java

# AssertionFailedError
rm tests/src/java/org/apache/log4j/net/TelnetAppenderTest.java
sed -i '/TelnetAppenderTest/d' tests/src/java/org/apache/log4j/CoreTestSuite.java

%mvn_file log4j:log4j log4j %{name}

%build

%mvn_build

%install
%mvn_install -X

# log4j-1 symlink for use with build-classpath et al.
ln -s log4j-%{version}.jar %{buildroot}%{_javadir}/log4j-1.jar

%if %{with dtd}
# DTD and the SGML catalog (XML catalog handled in scriptlets)
install -pD -T -m 644 src/main/javadoc/org/apache/log4j/xml/doc-files/log4j.dtd \
  %{buildroot}%{_datadir}/sgml/log4j/log4j.dtd
install -pD -T -m 644 %{SOURCE1} \
  %{buildroot}%{_datadir}/sgml/log4j/catalog

%post
# Note that we're using versioned catalog, so this is always ok.
if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then
  %{_bindir}/install-catalog --add \
    %{_sysconfdir}/sgml/log4j-%{version}-%{release}.cat \
    %{_datadir}/sgml/log4j/catalog > /dev/null || :
fi
if [ -x %{_bindir}/xmlcatalog -a -w %{_sysconfdir}/xml/catalog ]; then
  %{_bindir}/xmlcatalog --noout --add public "-//APACHE//DTD LOG4J 1.2//EN" \
    file://%{_datadir}/sgml/log4j/log4j.dtd %{_sysconfdir}/xml/catalog \
    > /dev/null
  %{_bindir}/xmlcatalog --noout --add system log4j.dtd \
    file://%{_datadir}/sgml/log4j/log4j.dtd %{_sysconfdir}/xml/catalog \
    > /dev/null || :
fi

%preun
if [ $1 -eq 0 ]; then
  if [ -x %{_bindir}/xmlcatalog -a -w %{_sysconfdir}/xml/catalog ]; then
    %{_bindir}/xmlcatalog --noout --del \
      file://%{_datadir}/sgml/log4j/log4j.dtd \
      %{_sysconfdir}/xml/catalog > /dev/null || :
  fi
fi

%postun
# Note that we're using versioned catalog, so this is always ok.
if [ -x %{_bindir}/install-catalog -a -d %{_sysconfdir}/sgml ]; then
  %{_bindir}/install-catalog --remove \
    %{_sysconfdir}/sgml/log4j-%{version}-%{release}.cat \
    %{_datadir}/sgml/log4j/catalog > /dev/null || :
fi

%endif # with dtd

%files -f .mfiles
%{_javadir}/log4j-1.jar
%if %{with dtd}
%{_datadir}/sgml/log4j
%endif
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14518 |21mr|log4j-2.17.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without  jp_minimal

Name:           log4j
Version:        2.17.1
Release:        1
Summary:        Java logging package
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
License:        ASL 2.0
Group:          Development/Java
URL:            http://logging.apache.org/%{name}
Source0:        http://www.apache.org/dist/logging/%{name}/%{version}/apache-%{name}-%{version}-src.tar.gz
Patch0:		logging-log4j-Remove-unsupported-EventDataConverter.patch
BuildRequires:  java-1.8.0-openjdk-devel
BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.lmax:disruptor)
BuildRequires:  mvn(com.sun.activation:jakarta.activation)
BuildRequires:  mvn(com.sun.mail:javax.mail)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.logging:logging-parent:pom:)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.fusesource.jansi:jansi)
BuildRequires:  mvn(org.jctools:jctools-core)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-ext)
BuildRequires:  mvn(jakarta.servlet:jakarta.servlet-api)

%if %{without jp_minimal}
BuildRequires:  mvn(com.datastax.cassandra:cassandra-driver-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-xml)
BuildRequires:  mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-yaml)
BuildRequires:  mvn(com.fasterxml.woodstox:woodstox-core)
BuildRequires:  mvn(com.lmax:disruptor)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(com.sun.mail:javax.mail)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(javax.servlet.jsp:jsp-api)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.commons:commons-csv)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.logging:logging-parent:pom:)
BuildRequires:  mvn(org.apache.tomcat:tomcat-catalina)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.eclipse.jetty:jetty-util)
BuildRequires:  mvn(org.eclipse.persistence:javax.persistence)
BuildRequires:  mvn(org.fusesource.jansi:jansi)
BuildRequires:  mvn(org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec)
BuildRequires:  mvn(org.jctools:jctools-core)
BuildRequires:  mvn(org.lightcouch:lightcouch)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-ext)
BuildRequires:  mvn(org.zeromq:jeromq)
BuildRequires:  mvn(sun.jdk:jconsole)
# Explicit requires for javapackages-tools since log4j-jmx script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools
%endif

Obsoletes:      %{name}-osgi < 2.9.1-4
Obsoletes:      %{name}-liquibase < 2.9.1-4

%description
Log4j is a tool to help the programmer output log statements to a
variety of output targets.

%package slf4j
Summary:        Binding between LOG4J 2 API and SLF4J

%description slf4j
Binding between LOG4J 2 API and SLF4J.

%package jcl
Summary:        Apache Log4j Commons Logging Bridge

%description jcl
Apache Log4j Commons Logging Bridge.

%if %{without jp_minimal}
%package osgi
Summary:        Apache Log4J Core OSGi Bundles

%description osgi
Apache Log4J Core OSGi Bundles.

%package taglib
Summary:        Apache Log4j Tag Library

%description taglib
Apache Log4j Tag Library for Web Applications.

%package jmx-gui
Summary:        Apache Log4j JMX GUI
Requires:       java-1.8.0-devel

%description jmx-gui
Swing-based client for remotely editing the log4j configuration and remotely
monitoring StatusLogger output. Includes a JConsole plug-in.

%package web
Summary:        Apache Log4j Web

%description web
Support for Log4j in a web servlet container.

%package bom
Summary:        Apache Log4j BOM

%description bom
Apache Log4j 2 Bill of Material


%package nosql
Summary:        Apache Log4j NoSql

%description nosql
Use NoSQL databases such as MongoDB and CouchDB to append log messages.

%endif

%package        javadoc
Summary:        API documentation for %{name}
Obsoletes:      %{name}-manual < %{version}

%description    javadoc
%{summary}.

%prep
%setup -q -n apache-%{name}-%{version}-src
%autopatch -p1

%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :maven-remote-resources-plugin
%pom_remove_plugin -r :maven-doap-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-toolchains-plugin
%pom_remove_plugin -r :revapi-maven-plugin

# remove all the stuff we'll build ourselves
find -name "*.jar" -o -name "*.class" -delete
rm -rf docs/api

%pom_disable_module %{name}-samples
%pom_disable_module %{name}-distribution

# Apache Flume is not in Fedora yet
%pom_disable_module %{name}-flume-ng

# artifact for upstream testing of log4j itself, shouldn't be distributed
%pom_disable_module %{name}-perf

# add dependency for javax.activation package (no longer part of OpenJDK)
%pom_add_dep com.sun.activation:jakarta.activation

# needs java 9 to build
%pom_disable_module %{name}-api-java9
%pom_disable_module %{name}-core-java9
%pom_disable_module %{name}-jpl
%pom_remove_dep -r :%{name}-api-java9
%pom_remove_dep -r :%{name}-core-java9
%pom_remove_plugin -r :maven-dependency-plugin

# unavailable com.conversantmedia:disruptor
rm log4j-core/src/main/java/org/apache/logging/log4j/core/async/DisruptorBlockingQueueFactory.java
%pom_remove_dep -r com.conversantmedia:disruptor

# kafka not available
rm -r log4j-core/src/main/java/org/apache/logging/log4j/core/appender/mom/kafka
%pom_remove_dep -r :kafka-clients

# not compatible with fedora's version
%pom_disable_module %{name}-liquibase

# we don't have slf4j 1.8 yet
%pom_disable_module %{name}-slf4j18-impl

# we don't have commons-dbcp2
%pom_disable_module %{name}-jdbc-dbcp2

# We have mongodb 4
%pom_disable_module %{name}-mongodb3
%pom_disable_module %{name}-mongodb4

# System scoped dep provided by JDK
%pom_remove_dep :jconsole %{name}-jmx-gui
%pom_add_dep sun.jdk:jconsole %{name}-jmx-gui

# old AID is provided by felix, we want osgi-core
%pom_change_dep -r org.osgi:org.osgi.core org.osgi:osgi.core

# BOM package shouldn't require Apache RAT
%pom_remove_plugin :apache-rat-plugin %{name}-bom

# tests are disabled
%pom_remove_plugin :maven-failsafe-plugin log4j-layout-template-json/pom.xml
%pom_remove_plugin :maven-failsafe-plugin log4j-core/pom.xml
%pom_remove_plugin :maven-failsafe-plugin log4j-core-its/pom.xml
%pom_remove_plugin :maven-failsafe-plugin pom.xml

%if %{with jp_minimal}
%pom_disable_module %{name}-taglib
%pom_disable_module %{name}-jmx-gui
%pom_disable_module %{name}-bom
%pom_disable_module %{name}-web
%pom_disable_module %{name}-iostreams
%pom_disable_module %{name}-jul
%pom_disable_module %{name}-core-its
%pom_disable_module %{name}-jpa
%pom_disable_module %{name}-couchdb
%pom_disable_module %{name}-cassandra
%pom_disable_module %{name}-appserver
%pom_disable_module %{name}-spring-cloud-config
%pom_disable_module %{name}-spring-boot
%pom_disable_module %{name}-kubernetes

%pom_remove_dep -r :jackson-dataformat-yaml
%pom_remove_dep -r :jackson-dataformat-xml
%pom_remove_dep -r :woodstox-core
%pom_remove_dep -r :javax.persistence
%pom_remove_dep -r :jboss-jms-api_1.1_spec
%pom_remove_dep -r :jeromq
%pom_remove_dep -r :commons-csv

rm -r log4j-core/src/main/java/org/apache/logging/log4j/core/{jackson,config/yaml,parser}
rm -r log4j-core/src/main/java/org/apache/logging/log4j/core/appender/{db,mom,nosql}
rm log4j-core/src/main/java/org/apache/logging/log4j/core/layout/*{Csv,Jackson,Xml,Yaml,Json,Gelf}*.java
rm log4j-1.2-api/src/main/java/org/apache/log4j/builders/layout/*Xml*.java
rm log4j-api/src/main/java/org/apache/logging/log4j/util/Activator.java
rm -r log4j-1.2-api/src/main/java/org/apache/log4j/or/jms

%endif

%mvn_alias :%{name}-1.2-api %{name}:%{name}

# Note that packages using the compatibility layer still need to have log4j-core
# on the classpath to run. This is there to prevent build-classpath from putting
# whole dir on the classpath which results in loading incorrect provider
%mvn_file ':{%{name}-1.2-api}' %{name}/@1 %{name}

%mvn_package ':%{name}-slf4j-impl' slf4j
%mvn_package ':%{name}-to-slf4j' slf4j
%mvn_package ':%{name}-taglib' taglib
%mvn_package ':%{name}-jcl' jcl
%mvn_package ':%{name}-jmx-gui' jmx-gui
%mvn_package ':%{name}-web' web
%mvn_package ':%{name}-bom' bom
%mvn_package ':%{name}-cassandra' nosql
%mvn_package ':%{name}-couchdb' nosql

%mvn_package :log4j-core-its __noinstall

%build
# missing test deps (mockejb)
%mvn_build -f

%install
%mvn_install

%if %{without jp_minimal}
%jpackage_script org.apache.logging.log4j.jmx.gui.ClientGUI '' '' %{name}/%{name}-jmx-gui:%{name}/%{name}-core %{name}-jmx false
%endif

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt

%files slf4j -f .mfiles-slf4j
%files jcl -f .mfiles-jcl
%if %{without jp_minimal}
%files taglib -f .mfiles-taglib
%files web -f .mfiles-web
%files bom -f .mfiles-bom
%files nosql -f .mfiles-nosql
%files jmx-gui -f .mfiles-jmx-gui
%{_bindir}/%{name}-jmx
%endif

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14519 |21mr|log4j-jboss-logmanager-1.1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             log4j-jboss-logmanager
Version:          1.1.2
Release:          7
Summary:          JBoss Log4j Emulation
License:          ASL 2.0
Url:              https://github.com/jboss-logging/log4j-jboss-logmanager
Source0:          https://github.com/jboss-logging/log4j-jboss-logmanager/archive/%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(log4j:log4j:12)
BuildRequires:    mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.jboss.modules:jboss-modules)

Provides:         bundled(log4j12) = 1.2.17-15

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This package contains the JBoss Log4J Emulation.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n log4j-jboss-logmanager-%{namedversion}

cp -p src/main/resources/META-INF/LICENSE .
cp -p src/main/resources/META-INF/NOTICE .
sed -i 's/\r//' LICENSE NOTICE

sed -i 's/createSourcesJar>true/createSourcesJar>false/' pom.xml

%pom_change_dep :log4j ::12

%build

# Tests run: 36, Failures: 0, Errors: 0, Skipped: 7
# Test suite disable cause:
# The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14520 |21mr|logback-1.1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           logback
Version:        1.1.7
Release:        7
Summary:        A Java logging library
License:        LGPLv2 or EPL
Group:          Development/Java
URL:            http://logback.qos.ch/
Source0:        http://logback.qos.ch/dist/%{name}-%{version}.tar.gz

# servlet 3.1 support
Patch0:         %{name}-1.1.7-servlet.patch
# Remove deprecate methods
Patch1:         %{name}-1.1.7-jetty.patch
Patch2:         %{name}-1.1.7-tomcat.patch

BuildRequires: java-devel >= 1:1.6.0
BuildRequires: maven-local
BuildRequires: mvn(javax.mail:mail)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.ant:ant-junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.felix:org.apache.felix.main)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.tomcat:tomcat-catalina)
BuildRequires: mvn(org.apache.tomcat:tomcat-coyote)
BuildRequires: mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
BuildRequires: mvn(org.codehaus.groovy:groovy-all)
BuildRequires: mvn(org.codehaus.janino:janino)
BuildRequires: mvn(org.eclipse.jetty:jetty-server)
BuildRequires: mvn(org.eclipse.jetty:jetty-util)
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:)
BuildRequires: mvn(org.fusesource.jansi:jansi)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-ext)
# groovy-all embedded libraries
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(commons-cli:commons-cli)
BuildRequires: mvn(org.ow2.asm:asm-all)
BuildRequires: mvn(org.slf4j:slf4j-nop)

# test deps
%if 0
BuildRequires: mvn(com.h2database:h2:1.2.132)
BuildRequires: mvn(dom4j:dom4j:1.6.1)
BuildRequires: mvn(hsqldb:hsqldb:1.8.0.7)
BuildRequires: mvn(mysql:mysql-connector-java:5.1.9)
BuildRequires: mvn(postgresql:postgresql:8.4-701.jdbc4)
BuildRequires: mvn(org.easytesting:fest-assert:1.2)
BuildRequires: mvn(org.mockito:mockito-core:1.9.0)
BuildRequires: mvn(org.slf4j:integration:1.7.16)
BuildRequires: mvn(org.slf4j:jul-to-slf4j:1.7.16)
BuildRequires: mvn(org.slf4j:log4j-over-slf4j:1.7.16)
BuildRequires: mvn(org.slf4j:slf4j-api:1.7.16:test-jar)
BuildRequires: mvn(org.slf4j:slf4j-ext:1.7.16)
BuildRequires: mvn(com.icegreen:greenmail:1.3)
BuildRequires: mvn(org.subethamail:subethasmtp:2.1.0)
%endif

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Logback is intended as a successor to the popular log4j project. At present
time, logback is divided into three modules, logback-core, logback-classic
and logback-access.

The logback-core module lays the groundwork for the other two modules. The
logback-classic module can be assimilated to a significantly improved
version of log4j. Moreover, logback-classic natively implements the SLF4J
API so that you can readily switch back and forth between logback and other
logging frameworks such as log4j or java.util.logging (JUL).

The logback-access module integrates with Servlet containers, such as
Tomcat and Jetty, to provide HTTP-access log functionality. Note that you
could easily build your own module on top of logback-core.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
API documentation for the Logback library

%package access
Summary:       Logback-access module for Servlet integration

%description access
The logback-access module integrates with Servlet containers, such as Tomcat
and Jetty, to provide HTTP-access log functionality. Note that you could
easily build your own module on top of logback-core. 

%package examples
Summary:       Logback Examples Module

%description examples
logback-examples module.

%prep
%setup -q
# Clean up
find . -name "*.class" -delete
find . -name "*.cmd" -delete
find . -name "*.jar" -delete

%patch0 -p1
%patch1 -p1
%patch2 -p1

%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :cobertura-maven-plugin

# Clean up the documentation
sed -i 's/\r//' LICENSE.txt README.txt docs/*.* docs/*/*.* docs/*/*/*.*
sed -i 's#"apidocs#"%{_javadocdir}/%{name}#g' docs/*.html
rm -rf docs/apidocs docs/project-reports docs/testapidocs docs/project-reports.html
rm -f docs/manual/.htaccess docs/css/site.css # Zero-length file

# Force servlet 3.1 apis
%pom_change_dep -r :servlet-api javax.servlet:javax.servlet-api:3.1.0
sed -i 's#javax.servlet.*;version="2.5"#javax.servlet.*;version="3.1"#' %{name}-access/pom.xml

rm -r %{name}-*/src/test/java/*
# remove test deps
# ch.qos.logback:logback-core:test-jar
%pom_xpath_remove -r "pom:dependency[pom:type = 'test-jar']"
%pom_xpath_remove -r "pom:dependency[pom:scope = 'test']"

# bundle-test-jar
%pom_xpath_remove -r "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:executions"

# com.oracle:ojdbc14:10.2.0.1 com.microsoft.sqlserver:sqljdbc4:2.0
%pom_xpath_remove "pom:project/pom:profiles/pom:profile[pom:id = 'host-orion']" %{name}-access
%pom_xpath_remove "pom:project/pom:profiles" %{name}-classic

%pom_xpath_remove "pom:project/pom:profiles/pom:profile[pom:id = 'javadocjar']"

# disable for now
%pom_disable_module logback-site

%pom_xpath_remove "pom:build/pom:extensions"

# Use not available org.codehaus.groovy:groovy-eclipse-compiler:2.9.1-01, org.codehaus.groovy:groovy-eclipse-batch:2.3.7-01
%pom_remove_plugin :maven-compiler-plugin logback-classic
%pom_add_plugin org.codehaus.gmavenplus:gmavenplus-plugin:1.5 logback-classic "
 <executions>
  <execution>
   <goals>
    <goal>generateStubs</goal>
    <goal>testGenerateStubs</goal>
    <!--goal>compile</goal>
    <goal>testCompile</goal-->
   </goals>
  </execution>
 </executions>"

%mvn_package ":%{name}-access" access
%mvn_package ":%{name}-examples" examples

%build

# unavailable test dep maven-scala-plugin
# slf4jJAR and org.apache.felix.main are required by logback-examples modules for maven-antrun-plugin
%mvn_build -f -- \
  -Dorg.slf4j:slf4j-api:jar=$(build-classpath slf4j/api) \
  -Dorg.apache.felix:org.apache.felix.main:jar=$(build-classpath felix/org.apache.felix.main)

%install
%mvn_install

install -d -m 755 %{buildroot}%{_datadir}/%{name}/examples
cp -r %{name}-examples/pom.xml %{name}-examples/src %{buildroot}%{_datadir}/%{name}/examples

%files -f .mfiles
%doc README.txt docs/*
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files access -f .mfiles-access
%license LICENSE.txt

%files examples -f .mfiles-examples
%license LICENSE.txt
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14521 |21mr|logrotate-3.16.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Rotates, compresses, removes and mails system log files
Name:		logrotate
Version:	3.16.0
Release:	3
License:	GPLv2+
Group:		File tools
Url:		https://fedorahosted.org/logrotate/
Source0:	https://github.com/logrotate/logrotate/releases/download/%{version}/%{name}-%{version}.tar.xz
Source1:	logrotate.conf
BuildRequires:	acl-devel
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
%endif
BuildRequires:	pkgconfig(popt)
Requires(post):	bash
Requires(post):	coreutils

%description
The logrotate utility is designed to simplify the administration of
log files on a system which generates a lot of log files.  Logrotate
allows for the automatic rotation compression, removal and mailing of
log files.  Logrotate can be set to handle a log file daily, weekly,
monthly or when the log file gets to a certain size.  Normally,
logrotate runs as a daily cron job.

Install the logrotate package if you need a utility to deal with the
log files on your system.

%files
%doc ChangeLog* COPYING examples README*
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_sysconfdir}/%{name}.d
%{_sbindir}/%{name}
%{_presetdir}/86-%{name}.preset
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.timer
%{_mandir}/man8/%{name}.8*
%{_mandir}/man5/%{name}.conf.5*
%dir /var/lib/logrotate
%ghost %verify(not size md5 mtime) %attr(0644,root,root) /var/lib/logrotate/logrotate.status

%pre
# (From Fedora)
# If /var/lib/logrotate/logrotate.status does not exist, create it and copy
# the /var/lib/logrotate.status in it (if it exists). We have to do that in pre
# script, otherwise the /var/lib/logrotate/logrotate.status would not be there,
# because during the update, it is removed/renamed.
if [ ! -d /var/lib/logrotate/ -a -f /var/lib/logrotate.status ]; then
	mkdir -p /var/lib/logrotate
	cp -a /var/lib/logrotate.status /var/lib/logrotate
fi

%post
%systemd_post %{name}.timer

%preun
%systemd_preun %{name}.timer

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure \
	--with-state-file-path=/var/lib/logrotate.status \
	--with-acl \
%if %{with selinux}
	--with-selinux
%else
	--without-selinux
%endif
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.conf

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}.d

mkdir -p %{buildroot}%{_unitdir}/
install -p -m 644 examples/logrotate.{service,timer} %{buildroot}%{_unitdir}/

# A cron task was here before systemd timer, enable it by default
# to protect users from running out of disk space
mkdir -p %{buildroot}%{_presetdir}
echo "enable %{name}.timer" > %{buildroot}%{_presetdir}/86-%{name}.preset

# own this empty directory
mkdir -p %{buildroot}/var/lib/logrotate

# systemd-243 does not know this directive and ignores it, printing a warning.
# Do not remove for 2019.1 because systemd will be updated there.
%if %{mdvver} < 201910
sed -i -e '/^ProtectKernelLogs=/d' %{buildroot}%{_unitdir}/logrotate.service
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14522 |21mr|lokalize-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Computer-aided translation tool for KDE
Name:		lokalize
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kross-interpreters-python
Requires:	python3-dbus
Requires:	qt5-database-plugin-sqlite
Recommends:	python3-translate

%description
Lokalize is a computer-aided translation system that focuses on productivity
and performance. Translator does only creative work (of delivering message
in his/her mother language in laconic and easy to understand form). Lokalize
implies paragraph-by-paragraph translation approach (when translating
documentation) and message-by-message approach (when translating GUI).

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.lokalize.desktop
%{_kde5_bindir}/lokalize
%{_kde5_datadir}/qlogging-categories5/lokalize.categories
%{_kde5_datadir}/lokalize
%{_kde5_datadir}/config.kcfg/lokalize.kcfg
%{_kde5_iconsdir}/*/*/apps/lokalize.*
%{_kde5_notificationsdir}/lokalize.notifyrc
%{_kde5_xmlguidir}/lokalize/*.rc
%{_appdatadir}/org.kde.lokalize.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14523 |21mr|lorax-36.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Tool for creating the anaconda install images
Name:		lorax
Version:	36.6
Release:	1
Group:		System/Base
License:	GPLv2+
Url:		https://github.com/weldr/lorax
Source0:	https://github.com/weldr/lorax/archive/%{name}-%{version}-1.tar.gz?/%{name}-%{name}-%{version}-1.tar.gz
BuildRequires:	pkgconfig(python3)
Requires:	GConf2
Requires:	cdrkit-genisoimage
Requires:	cpio
Requires:	device-mapper
Requires:	dosfstools
Requires:	dracut
Requires:	e2fsprogs
Requires:	findutils
Requires:	gawk
Requires:	glibc
Requires:	gzip
Requires:	isomd5sum
Requires:	kpartx
Requires:	module-init-tools
Requires:	parted
Requires:	pigz
Requires:	psmisc
Requires:	python3-dnf
Requires:	python3-kickstart
Requires:	python3-librepo
Requires:	python3-libselinux
Requires:	python3-mako
Requires:	python3-pycdlib
Requires:	squashfs-tools
Requires:	util-linux
Requires:	xz

%ifarch %{ix86} x86_64
Requires:	syslinux
%endif

%ifarch aarch64
Requires:	uboot-tools
%endif

Obsoletes:	composer-cli <= 34.3-3

%description
Lorax is a tool for creating the anaconda install images.

It also includes livemedia-creator which is used to create bootable livemedia,
including live isos and disk images. It can use libvirtd for the install, or
Anaconda's image install feature.

%files
%doc COPYING AUTHORS docs/lorax.rst docs/livemedia-creator.rst docs/product-images.rst docs/*ks docs/html/*
%{_bindir}/image-minimizer
%{_mandir}/man1/image-minimizer.1*
%{_mandir}/man1/lorax.1*
%{_mandir}/man1/livemedia-creator.1*
%{_mandir}/man1/mkksiso.1*
%{python3_sitelib}/pylorax
%{python3_sitelib}/*.egg-info
%{_sbindir}/lorax
%{_sbindir}/mkefiboot
%{_sbindir}/livemedia-creator
%{_sbindir}/mkksiso
%config(noreplace) %{_sysconfdir}/lorax/lorax.conf
%{_tmpfilesdir}/lorax.conf

#----------------------------------------------------------------------------

%package lmc-virt
Summary:	livemedia-creator libvirt dependencies
Group:		System/Base
%ifarch x86_64
Requires:	edk2-ovmf
%endif
%ifarch %{ix86}
Requires:	edk2-ovmf-ia32
%endif
Recommends:	qemu-kvm

%description lmc-virt
Additional dependencies required by livemedia-creator when using it with qemu.

%files lmc-virt

#----------------------------------------------------------------------------

%package lmc-novirt
Summary:	livemedia-creator no-virt dependencies
Group:		System/Base
Requires:	lorax = %{EVRD}
%ifarch %{ix86} x86_64
Requires:	anaconda-core
Requires:	anaconda-tui
%endif
Requires:	createrepo_c
Requires:	gdb
Requires:	hfsplus-tools
Requires:	isomd5sum
Requires:	kexec-tools
Requires:	libblockdev-plugins-all
Requires:	realmd
Requires:	rsync
Requires:	tmux

%description lmc-novirt
Additional dependencies required by livemedia-creator when using it with --no-virt
to run Anaconda.

%files lmc-novirt

#----------------------------------------------------------------------------

%package templates-generic
Summary:	Generic build templates for lorax and livemedia-creator
Group:		System/Base
Requires:	lorax = %{EVRD}
Provides:	lorax-templates = %{EVRD}

%description templates-generic
Lorax templates for creating the boot.iso and live isos are placed in
/usr/share/lorax/templates.d/99-generic

%files templates-generic
%{_datadir}/lorax/templates.d/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}-1

%build

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14524 |21mr|loudmouth-1.5.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 0
%define libname %mklibname %{name}- %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	C library for programming with the Jabber protocol
Name:		loudmouth
Version:	1.5.3
Release:	5
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.loudmouth-project.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.bz2
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libidn)

%description
Loudmouth is a lightweight and easy-to-use C library for programming with the
Jabber protocol. It's designed to be easy to get started with and yet
extensible to let you do anything the Jabber protocol allows.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C library for programming with the Jabber protocol
Group:		System/Libraries

%description -n %{libname}
Loudmouth is a lightweight and easy-to-use C library for programming with the
Jabber protocol. It's designed to be easy to get started with and yet
extensible to let you do anything the Jabber protocol allows.

%files -n %{libname}
%{_libdir}/libloudmouth-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for loudmouth
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Loudmouth is a lightweight and easy-to-use C library for programming with the
Jabber protocol. It's designed to be easy to get started with and yet
extensible to let you do anything the Jabber protocol allows.

This package includes libraries and header files for developing
Loudmouth applications.

%files -n %{devname}
%doc README AUTHORS NEWS ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-gtk-doc \
	--with-asyncns

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14525 |21mr|lpg-2.0.17-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global    _version 2.0.17
%global    _compat_version 1.1.0

Name:      lpg
Version:   %{_version}
Release:   29
Summary:   LALR Parser Generator
# although the text of the licence isn't distributed with some of the source,
# the author has exlicitly stated that everything is covered under the EPL
# see: http://sourceforge.net/forum/forum.php?thread_id=3277926&forum_id=523519
License:   EPL-1.0
URL:       http://lpg.sourceforge.net/
Group:     Development/Java
Source0:   http://downloads.sourceforge.net/lpg/lpg-java-runtime-src-%{version}.zip
Source1:   http://downloads.sourceforge.net/lpg/lpg-generator-cpp-src-%{version}.zip
Source2:   http://downloads.sourceforge.net/lpg/lpg-generator-templates-%{version}.zip

# source archive for the java compat lib
Source3:   http://downloads.sourceforge.net/lpg/lpgdistribution-05-16-06.zip

# upstream does not provide a build script or manifest file for the java
# compat lib
Source4:   %{name}-build.xml
Source5:   %{name}-manifest.mf

# TODO: drop Source3, 4, 5 and obsolete the java-compat package when dependent
# projects are ported to LPG 2.x.x

# executable name in the bootstrap make target is wrong; sent upstream, see:
# https://sourceforge.net/tracker/?func=detail&aid=2794057&group_id=155963&atid=797881
Patch0:    %{name}-bootstrap-target.patch

# change build script to build the base jar with osgi bundle info
Patch1:    %{name}-osgi-jar.patch

# fix segfault caused by aggressive optimisation of null checks in gcc 4.9
Patch2:    %{name}-segfault.patch

BuildRequires: gcc-c++
BuildRequires: make

BuildRequires: ant
BuildRequires: ant-apache-regexp
BuildRequires: javapackages-local

%description
The LALR Parser Generator (LPG) is a tool for developing scanners and parsers
written in Java, C++ or C. Input is specified by BNF rules. LPG supports
backtracking (to resolve ambiguity), automatic AST generation and grammar
inheritance.

%package       java
Summary:       Java runtime library for LPG

Group:          Development/Java
BuildArch:     noarch

%description   java
Java runtime library for parsers generated with the LALR Parser Generator
(LPG).

%package       java-compat
Version:       %{_compat_version}
Summary:       Compatibility Java runtime library for LPG 1.x

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description   java-compat
Compatibility Java runtime library for parsers generated with the LALR Parser
Generator (LPG) 1.x.

%prep
%setup -q -T -c -n %{name}-%{version}

# because you can't use setup to unzip to subdirectories when your source
# archives do not create top level directories
unzip -qq %{SOURCE0} -d lpg-java-runtime
unzip -qq %{SOURCE1} -d lpg-generator-cpp
unzip -qq %{SOURCE2} -d lpg-generator-templates
chmod -Rf a+rX,u+w,g-w,o-w .

# setup java compat stuff
%setup -q -D -T -a 3 -n %{name}-%{version}
cp -p %{SOURCE4} lpgdistribution/build.xml
cp -p %{SOURCE5} lpgdistribution/MANIFEST.MF

# apply patches
%patch0 -p0 -b .orig
%patch1 -p0 -b .orig
%patch2 -p0 -b .orig

%build
# build java stuff
(cd lpg-java-runtime && ant -f exportPlugin.xml)

# build java compat stuff
(cd lpgdistribution && ant)

# build native stuff
pushd lpg-generator-cpp/src

# ARCH just tells us what tools to use, so this can be the same on all arches
# we build twice in order to bootstrap the grammar parser
make clean install ARCH=linux_x86 \
  LOCAL_CFLAGS="%{optflags} -Wno-strict-overflow" LOCAL_CXXFLAGS="%{optflags} -Wno-strict-overflow"
make bootstrap ARCH=linux_x86
make clean install ARCH=linux_x86 \
  LOCAL_CFLAGS="%{optflags} -Wno-strict-overflow" LOCAL_CXXFLAGS="%{optflags} -Wno-strict-overflow"

popd

%install
# Install native stuff
install -pD -T lpg-generator-cpp/bin/%{name}-linux_x86 \
  %{buildroot}%{_bindir}/%{name}

# Install java stuff
%mvn_package "lpg.runtime:java" java
%mvn_package "net.sourceforge.lpg:lpgjavaruntime" java-compat
%mvn_artifact "lpg.runtime:java:%{_version}" lpg-java-runtime/lpgruntime.jar
%mvn_artifact "net.sourceforge.lpg:lpgjavaruntime:%{_compat_version}" lpgdistribution/lpgjavaruntime.jar
%mvn_file "lpg.runtime:" lpgruntime
%mvn_file "net.sourceforge.lpg:" lpgjavaruntime
%mvn_install

%files
%doc lpg-generator-templates/docs/*
%{_bindir}/%{name}

%files java -f .mfiles-java
%doc lpg-java-runtime/Eclipse*.htm

%files java-compat -f .mfiles-java-compat
%doc lpg-java-runtime/Eclipse*.htm


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14526 |21mr|lpsolve-5.5.2.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Mixed Integer Linear Programming (MILP) solver
Name:		lpsolve
Version:	5.5.2.5
Release:	3
Group:		System/Libraries 
License:	LGPLv2+
Url:		http://sourceforge.net/projects/lpsolve
Source0:	http://sourceforge.net/projects/lpsolve/files/lpsolve/5.5.2.5/lp_solve_5.5.2.5_source.tar.gz
Source100:	lpsolve.rpmlintrc
Patch0:		lpsolve-5.5.0.11.cflags.patch
Patch1:		lpsolve-5.5.2.0.defines.patch

%description
Mixed Integer Linear Programming (MILP) solver lpsolve solves pure linear,
(mixed) integer/binary, semi-continuous and special ordered sets (SOS) models.

%package devel
Requires:	%{name} = %{version}-%{release}
Summary:	Files for developing with lpsolve
Group:		Development/C

%description devel
Includes and definitions for developing with lpsolve 

%prep
%setup -qn lp_solve_5.5
%apply_patches

%build
cd lpsolve55
sh -x ccc
rm bin/ux*/liblpsolve55.a
cd ../lp_solve
sh -x ccc

%install
install -d %{buildroot}%{_bindir} %{buildroot}%{_libdir} %{buildroot}%{_includedir}/lpsolve
install -p -m 755 \
        lp_solve/bin/ux*/lp_solve %{buildroot}%{_bindir}
install -p -m 755 \
        lpsolve55/bin/ux*/liblpsolve55.so %{buildroot}%{_libdir}
install -p -m 644 \
        lp*.h %{buildroot}%{_includedir}/lpsolve

%files
%{_bindir}/lp_solve
%{_libdir}/liblpsolve55.so

%files devel
%doc README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_LGPL.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL_README.txt ./bfp/bfp_LUSOL/LUSOL/LUSOL-overview.txt
%{_includedir}/lpsolve

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14527 |21mr|lrzsz-0.12.21-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The lrz and lsz modem communications programs
Name:		lrzsz
Version:	0.12.21
Release:	31
License:	GPLv2+
Group:		Communications
Url:		http://www.ohse.de/uwe/software/lrzsz.html
Source0:	%{name}-%{version}.tar.bz2
Patch0:		%{name}-0.12.21-automake.patch
Patch1:		%{name}-0.12.20-glibc21.patch
Patch2:		lrzsz-0.12.20.patch
Patch3:		lrzsz-0.12.20-man.patch
Patch4:		lrzsz-0.12.20-aarch64.patch
BuildRequires:	gettext-devel

%description
Lrzsz (consisting of lrz and lsz) is a cosmetically modified
zmodem/ymodem/xmodem package built from the public-domain version of the
rzsz package. Lrzsz was created to provide a working GNU copylefted
Zmodem solution for Linux systems.

You should install lrzsz if you're also installing a Zmodem communications
program that uses lrzsz. If you're installing minicom, you need to install
lrzsz.

%files -f %{name}.lang
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# because of time skew between various generated files, autotools are
# forced to run. In the process, gettext-devel is required but new
# gettext-devel is not compatible with lrzsz, thus autotools will fail
find -type f -print0 | xargs -0 touch

#touch config.rpath
# This is too old. Remove it so automake puts in a newer copy.
rm -f missing
rm -f po/*.gmo

%build
#autoreconf -fi
%configure \
	--disable-pubdir \
	--enable-syslog \
	--program-transform-name=s/l//
%make

%install
%makeinstall_std

for m in rb rx; do ln -s rz.1 %{buildroot}%{_mandir}/man1/$m.1; done
for m in sb sx; do ln -s sz.1 %{buildroot}%{_mandir}/man1/$m.1; done

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14528 |21mr|lsb-5.0-0.alpha.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define compat_versions 2.0 3.0 3.1 3.2 4.0 4.1
%define modular_versions 3.1 3.2

# populate the Provides for the compat versions and the old 3.x modular setup
# this way we only have to change the lists above when we bump up 
# (at least until LSB drops something, or we choose to)
%define compat_provides_noarch %(for ver in %{compat_versions};do echo -n "lsb-noarch = $ver ";done)
%define core_compat_provides_noarch %(for ver in %{compat_versions};do echo -n "lsb-core-noarch = $ver ";done)
%define compat_provides_arch %(for ver in %{compat_versions};do echo -n "lsb-%{lsb_arch} = $ver ";done)
%define core_compat_provides_arch %(for ver in %{compat_versions};do echo -n "lsb-core-%{lsb_arch} = $ver ";done)
%define modular_provides_noarch %(for ver in %{modular_versions};do echo -n "lsbcxx-noarch = $ver lsb-graphics-noarch = $ver ";done)
%define modular_provides_arch %(for ver in %{modular_versions};do echo -n "lsbcxx-%{lsb_arch} = $ver lsb-graphics-%{lsb_arch} = $ver ";done)

%define lsb_libs_list_most aoss cairo cups fontconfig freetype GL GLU gtk-x11-2.0 jpeg nspr4 nss3 pango-1.0 png X11 Xext Xft Xi xml Xrender Xt Xtst
%define lsb_libs_list_core pam ncurses

%if %{__isa_bits} == 64
%define devel_suffix (64bit)
%else
%define devel_suffix %{nil}
%endif

Summary:	The skeleton package defining packages needed for LSB compliance
Name:		lsb
Version:	5.0
Release:	0.alpha.8
License:	GPL
Group:		System/Base
URL:		http://www.linuxbase.org
Source0:	tmpdirlsb.sh
Source1:	install_initd
Source2:	remove_initd
Source3:	lsb.rpmlintrc
Source4:	sendmail

# Just to extract sonames from them
BuildRequires: patchelf
# mock does not understand boolean BuildRequires, some files are inside /lib64/, not /usr/lib64 (libpam.so)
%{expand:%(for i in %{lsb_libs_list_most} %{lsb_libs_list_core}; do echo "BuildRequires: devel(lib${i}%{devel_suffix})"; done)}

Exclusivearch: %{ix86} x86_64

%define lsb_arch ia32
%ifarch x86_64
%define lsb_arch amd64
%endif

%description
The skeleton package defining packages needed for LSB compliance.
Note: To successfuly run the runtime test suites, install lsb-test.

%package %{_lib}
Summary: The skeleton package defining packages needed for LSB compliance
Group: System/Base

%{expand:%(for i in %{lsb_libs_list_most}; do \
echo "Requires: $(patchelf --print-soname %{_libdir}/lib${i}.so || patchelf --print-soname /%{_lib}/lib${i}.so || echo 0)%{_arch_tag_suffix}"; done; \
)}

Requires: lsb-noarch
Requires: lsb-core-%{_lib}
# former lsb-cxx - both arches called libfoo
Requires: %{_lib}stdc++6

# former lsb-qt4
Requires: qt4-common >= 4.2.3
# %%mklibname doesn't work here
Requires: %{_lib}qtopengl4 >= 4.2.3
Requires: %{_lib}qtsvg4 >= 4.2.3
Requires: %{_lib}qtnetwork4 >= 4.2.3
Requires: %{_lib}qtsql4 >= 4.2.3
Requires: %{_lib}qtxml4 >= 4.2.3

Provides: lsb-%{lsb_arch} = %{version}
Provides: redhat-lsb = %{version}
Provides: %{compat_provides_arch}
Provides: %{modular_provides_arch}

Conflicts: lsb-release < 2.0

Provides: lsb-cxx = %{version}
Obsoletes: lsb-cxx < %{version}
Provides: lsb-graphics = %{version}
Obsoletes: lsb-graphics < %{version}
Provides: lsb-desktop = %{version}
Obsoletes: lsb-desktop < %{version}
Provides: lsb-desktop-qt4 = %{version}
Obsoletes: lsb-desktop-qt4 < %{version}
Provides: lsb = %{version}
Obsoletes: lsb < %{version}

%description %{_lib}
The skeleton package defining packages needed for LSB compliance.
Note: To successfuly run the runtime test suites, install lsb-test.

%package noarch
Summary: Architecture neutral components of LSB
Group: System/Base

# former lsb-desktop
Requires: xdg-utils

# interpreted languages
Requires: perl perl-CGI perl-Safe perl-Pod-Perldoc python

# printing
Requires: ghostscript foomatic-filters cups-common

Provides: %{compat_provides_noarch}
Provides: %{modular_provides_noarch}

%description noarch
The architecture-neutral requirements for LSB compliance.

%package core-%{_lib}
Summary: Core requirements needed for LSB compliance
Group: System/Base

Requires: lsb-core-noarch
Requires: %{_lib}glibc_lsb
%{expand:%(for i in %{lsb_libs_list_core}; do \
echo "Requires: $(patchelf --print-soname %{_libdir}/lib${i}.so || patchelf --print-soname /%{_lib}/lib${i}.so || echo 0)%{_arch_tag_suffix}"; done; \
)}

Provides: redhat-lsb-core = %{version}
Provides: lsb-core-%{lsb_arch} = %{version} 
Provides: %{core_compat_provides_arch}
Provides: lsb-core = %{version}
Obsoletes: lsb-core < %{version}

%description core-%{_lib}
The core requirements for LSB compliance.

%package core-noarch
Summary: Architecture neutral components of lsb-core
Group: System/Base

Requires: pax lsb-release sendmail-command ed 
Requires: binutils bc nail at m4 patch
Requires: diffutils file gettext chkconfig

Provides: %{core_compat_provides_noarch}

%description core-noarch
The architecture-neutral core requirements for LSB compliance.

%package test
Summary: Requirements needed to successfully run the LSB runtime tests
Group: System/Base

Requires: lsb
Requires: perl-DBI perl-devel perl-XML-Parser perl-URI glibc-i18ndata
Requires: locales-de locales-en locales-es locales-fr locales-is
Requires: locales-it locales-ja locales-se locales-ta locales-zh 
Requires: wget qt4-database-plugin-sqlite libx11-common
Requires(pre):		rpm-helper
Requires(postun):	rpm-helper

%description test
This packages pulls in additional packages not specified by LSB, but
required to successfully run the LSB runtime tests.

%package invalid-mta
Summary: Linux Standard Base sendmail dummy
Group: System/Base
Requires: lsb
Requires(post): update-alternatives
Provides: sendmail-command

%description invalid-mta
This package contains fake /usr/sbin/sendmail command to fulfill 
the LSB's requirement of providing this command without
requiring an MTA to get installed

%prep
#%setup -q

%install
cat << EOF > README.urpmi
To run the LSB binary test suite, download the latest version from
ftp://ftp.linuxfoundation.org/pub/lsb/test_suites/released/binary/runtime/
and install lsb-dist-checker or lsb-task-dist-testkit.
 
There is a GUI test manager now, lsb-dist-checker that can guide you 
through the test/certification process.

There are also yum repos at:
 http://ftp.linuxfoundation.org/pub/lsb/repositories/yum/
EOF

install -d %{buildroot}/%{_datadir}/%{name}
install -d %{buildroot}/%{_datadir}/nls
install -d %{buildroot}/%{_datadir}/tmac
install -d %{buildroot}/var/cache/fonts
install -d %{buildroot}/var/games
install -d %{buildroot}/sbin
install -d %{buildroot}%{_sysconfdir}/lsb-release.d
install -d %{buildroot}%{_bindir}
install -d %{buildroot}/lib/%{name}
install -d %{buildroot}%{_prefix}/lib/%{name}
install -d %{buildroot}/srv
install -d %{buildroot}%{_sysconfdir}/opt
install -d %{buildroot}%{_sysconfdir}/profile.d
install -m 755 %{SOURCE0} %{buildroot}%{_sysconfdir}/profile.d
install -m 755 %{SOURCE1} %{buildroot}%{_prefix}/lib/%{name}
install -m 755 %{SOURCE2} %{buildroot}%{_prefix}/lib/%{name}
install -m 755 %{SOURCE4} %{buildroot}%{_prefix}/lib/%{name}

touch %{buildroot}%{_sysconfdir}/lsb-release.d/lsb-%{version}-%{lsb_arch}
touch %{buildroot}%{_sysconfdir}/lsb-release.d/lsb-%{version}-noarch
touch %{buildroot}%{_sysconfdir}/lsb-release.d/core-%{version}-%{lsb_arch}
touch %{buildroot}%{_sysconfdir}/lsb-release.d/core-%{version}-noarch
rm -f lsb-noarch-files.txt lsb-files.txt
for lsbver in %{compat_versions}; do
  touch %{buildroot}%{_sysconfdir}/lsb-release.d/lsb-$lsbver-noarch
  echo %{_sysconfdir}/lsb-release.d/lsb-$lsbver-noarch >> lsb-noarch-files.txt
  touch %{buildroot}%{_sysconfdir}/lsb-release.d/lsb-$lsbver-%{lsb_arch}
  echo %{_sysconfdir}/lsb-release.d/lsb-$lsbver-%{lsb_arch} >> lsb-files.txt
  touch %{buildroot}%{_sysconfdir}/lsb-release.d/core-$lsbver-noarch
  touch %{buildroot}%{_sysconfdir}/lsb-release.d/core-$lsbver-%{lsb_arch}
done
for lsbver in %{modular_versions}; do
  touch %{buildroot}%{_sysconfdir}/lsb-release.d/cxx-$lsbver-noarch
  echo %{_sysconfdir}/lsb-release.d/cxx-$lsbver-noarch >> lsb-noarch-files.txt
  touch %{buildroot}%{_sysconfdir}/lsb-release.d/cxx-$lsbver-%{lsb_arch}
  echo %{_sysconfdir}/lsb-release.d/cxx-$lsbver-%{lsb_arch} >> lsb-files.txt
  touch %{buildroot}%{_sysconfdir}/lsb-release.d/graphics-$lsbver-noarch
  echo %{_sysconfdir}/lsb-release.d/graphics-$lsbver-noarch >> lsb-noarch-files.txt
  touch %{buildroot}%{_sysconfdir}/lsb-release.d/graphics-$lsbver-%{lsb_arch}
  echo %{_sysconfdir}/lsb-release.d/graphics-$lsbver-%{lsb_arch} >> lsb-files.txt
done

cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/root-ulimit.sh
#!/bin/sh
# enable a nonzero core file value for root (exec_A test issues)
[ "\$UID" = "0" ] && ulimit -c 1000 > /dev/null 2>&1
EOF

cat << EOF > %{buildroot}%{_bindir}/lsbinstall
#!/bin/sh
exit 0
EOF

cat << EOF > %{buildroot}/sbin/fasthalt
#!/bin/sh
#start fasthalt
/sbin/halt -f
#end fasthalt
EOF

cat << EOF > %{buildroot}/sbin/fastboot
#!/bin/sh
#start fastboot
/sbin/reboot -f
#end fastboot
EOF

cat << EOF > %{buildroot}/etc/hosts.equiv
# Sample hosts.equiv file for LSB compliance
# see man hosts.equiv for usage.
EOF

cat << EOF > %{buildroot}/etc/hosts.lpd
#
# hosts.lpd     This file describes the names of the hosts which are
#               allowed to use the remote printer services of this
#               host.  This file is used by the LPD subsystem.
#		Added for LSB compiance.
EOF

cat << EOF > %{buildroot}/etc/gateways
# sample gateways file for LSB compliance. Database of gateways
# used by routed. Sample format shown below.
# [ net | host ] name1 gateway name2 metric value [ passive | active | external ]
EOF

chmod 0755 %{buildroot}%{_sysconfdir}/profile.d/root-ulimit.sh
chmod 0755 %{buildroot}%{_bindir}/lsbinstall
chmod 0755 %{buildroot}/sbin/fastboot
chmod 0755 %{buildroot}/sbin/fasthalt
chmod 0644 %{buildroot}/etc/hosts.equiv
chmod 0644 %{buildroot}/etc/hosts.lpd
chmod 0644 %{buildroot}/etc/gateways

# (sb) concession for lsb-apache to run
%pre test
%_pre_groupadd nobody

%postun test
%_postun_groupdel nobody

%post invalid-mta
# sendmail-alternatives
update-alternatives --install %{_sbindir}/sendmail sendmail-command %{_usr}/lib/%{name}/sendmail 20

%postun invalid-mta
# sendmail-alternatives
if [ "$1" = 0 ]; then
    update-alternatives --remove sendmail-command %{_usr}/lib/%{name}/sendmail
fi

%clean

%files %{_lib} -f lsb-files.txt
%config(noreplace) %{_sysconfdir}/lsb-release.d/lsb-%{version}-%{lsb_arch}

%files noarch -f lsb-noarch-files.txt
%config(noreplace) %{_sysconfdir}/lsb-release.d/lsb-%{version}-noarch

%files core-%{_lib}
%config(noreplace) %{_sysconfdir}/lsb-release.d/core-*-%{lsb_arch}

%files core-noarch
%{_datadir}/nls
%{_datadir}/tmac
/var/cache/fonts
/var/games
/sbin/fasthalt
/sbin/fastboot
%{_bindir}/lsbinstall
%dir %{_sysconfdir}/opt
%dir /srv
%dir /lib/%{name}
%dir %{_prefix}/lib/%{name}
%{_prefix}/lib/%{name}/install_initd
%{_prefix}/lib/%{name}/remove_initd
%config(noreplace) %{_sysconfdir}/hosts.equiv
%config(noreplace) %{_sysconfdir}/hosts.lpd
%config(noreplace) %{_sysconfdir}/gateways
%config(noreplace) %{_sysconfdir}/lsb-release.d/core-*-noarch

%files test
%config(noreplace) %{_sysconfdir}/profile.d/tmpdirlsb.sh
%config(noreplace) %{_sysconfdir}/profile.d/root-ulimit.sh

%files invalid-mta
%{_usr}/lib/%{name}/sendmail

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14529 |21mr|lsb-release-2.0-54
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Linux Standard Base tools
Name:		lsb-release
Version:	2.0
Release:	54
License:	GPLv2+
Group:		System/Base
Url:		http://bzr.linuxfoundation.org/loggerhead/lsb/devel/si/files/head:/lsb_release/
Source0:	lsb-release-%{version}.tar.bz2
Patch0:		lsb-release-%{version}-no-support.patch
BuildRequires:	util-linux
# 'Provides: /usr/sbin/lsb_release' is needed for compatibility with
# 3rd party packages built on ALT Linux, where RPM's AutoReq puts such dependencies
# after processing shell scripts (we don't use it in ROSA).
Provides:	/bin/lsb_release /usr/bin/lsb_release

%description
LSB version query program.

This program forms part of the required functionality of the LSB (Linux
Standard Base) specification.

The program queries the installed state of the distribution to display
certain properties such as the version of the LSB against which the
distribution claims compliance as well. It can also attempt to display
the name and release of the distribution along with an identifier of
who produces the distribution.

%files
%doc README
/bin/lsb_release
%{_bindir}/lsb_release
%{_mandir}/man1/lsb_release.1*
%dir %{_sysconfdir}/%{name}.d

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .no-support

%build
make

%install
make prefix=%{buildroot} mandir=%{buildroot}%{_mandir} install 
mkdir -p %{buildroot}%{_sysconfdir}/%{name}.d

mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
ln -sf /bin/lsb_release lsb_release
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14530 |21mr|lshw-2.16-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realversion B.0%{version}

Summary: A hardware lister
Name:    lshw
Version: 2.16
Release: 8
# To get sources tarball use command
# svn co http://ezix.org/source/packages/lshw/releases/%{realversion} %{name}-%{realversion} && tar -czf %{name}-%{realversion}.tar.gz --exclude .svn %{name}-%{realversion}
Source0: %{name}-%{realversion}.tar.gz
License: GPLv2
Group: System/Kernel and hardware
Url: http://ezix.org/project/wiki/HardwareLiSter
Requires: ldetect-lst >= 0.1.282
BuildRequires: pkgconfig(sqlite3)
BuildRequires: pkgconfig(gtk+-2.0)

%description
lshw (Hardware Lister) is a tool to provide detailed information 
on the hardware configuration of the machine.

%package gui
Summary: HardWare LiSter (GUI version)
Group:  System/Kernel and hardware
Requires: %{name}
Requires: gtk2
%description gui
This package provides a graphical user interface to lshw

%prep
%setup -q -n %{name}-%{realversion}
# Ugly since 2.07 default rights are messed
find -type f | xargs chmod 644
find -type d | xargs chmod 755

%build
make
make gui

%install
%makeinstall_std
make PREFIX=%_prefix SBINDIR=%_sbindir MANDIR=%_mandir DESTDIR=%{buildroot} install-gui

# packaged as part of ldetect-lst
rm -f %{buildroot}%{_datadir}/lshw/{oui.txt,*.ids}

%find_lang %{name}

%files -f %{name}.lang
%{_sbindir}/lshw
%dir %{_datadir}/lshw
%{_datadir}/lshw/*.txt
%attr(644,root,root) %{_mandir}/man1/lshw.*

%files gui
%doc COPYING
%{_sbindir}/gtk-lshw
%{_datadir}/lshw/artwork
%{_datadir}/lshw/ui/gtk-lshw.ui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14531 |21mr|lskat-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Lieutnant skat card game
Name:		lskat
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/lskat/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Lieutnant Skat (from German "Offiziersskat") is a fun and engaging card game
for two players, where the second player is either live opponent, or a built
in artificial intelligence.

%files -f %{name}.lang
%{_kde5_bindir}/lskat
%{_kde5_applicationsdir}/org.kde.lskat.desktop
%{_kde5_datadir}/lskat
%{_kde5_datadir}/qlogging-categories5/lskat.categories
%{_kde5_iconsdir}/hicolor/*/apps/lskat.*
%{_appdatadir}/org.kde.lskat.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14532 |21mr|lsof-4.96.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dname %{name}_%{version}

Summary:	Lists files open by processes
Name:		lsof
Version:	4.96.3
Release:	1
License:	Free
Group:		Monitoring
Url:		https://github.com/lsof-org
Source0:	https://github.com/lsof-org/lsof/archive/%{version}.tar.gz
Patch1:		lsof_4.60-has-security.patch
Patch2:		lsof_4.87-libtirpc.patch
BuildRequires:	pkgconfig(libtirpc)

%description
Lsof's name stands for LiSt Open Files, and it does just that. It lists
information about files that are open by the processes running on a UNIX
system.

%files
%attr(0755,root,kmem) %{_bindir}/%{name}
%{_mandir}/man8/lsof.8*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
LINUX_BASE=/proc LSOF_LDFLAGS="%{ldflags}" ./Configure -n linux

%make_build DEBUG="%{optflags}" CC=%{__cc}

%install
mkdir -p %{buildroot}%{_bindir}
install -p -m 0755 lsof %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man8
install -p -m 0644 Lsof.8 %{buildroot}%{_mandir}/man8/lsof.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14533 |21mr|lsscsi-0.32-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	List SCSI devices (or hosts) and associated information
Name:		lsscsi
Version:	0.32
Release:	2
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://sg.danny.cz/scsi/lsscsi.html
Source0:	http://sg.danny.cz/scsi/%{name}-%{version}.tgz
Source1:	http://sg.danny.cz/scsi/lsscsi.html

%description
Uses information provided by the sysfs pseudo file system in Linux kernel
2.6 series to list SCSI devices or all SCSI hosts. Includes a "classic"
option to mimic the output of "cat /proc/scsi/scsi" that has been widely
used prior to the lk 2.6 series.

%files
%license COPYING
%doc ChangeLog INSTALL README CREDITS AUTHORS
%doc lsscsi.html
%attr(0755,root,root) %{_bindir}/lsscsi
%{_mandir}/man8/lsscsi.8*

#-----------------------------------------------------------------------

%prep
%autosetup -p1
cp %{SOURCE1} .

%build
%configure
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14534 |21mr|ltp-20200515-0.gitf3b76.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit f3b767057627021760869f0212f4a13945d61196
%define commit_short %(echo %{commit} | head -c 5)

# autoreconf is used
%define _disable_rebuild_configure 1

%if %rpm5
# keep the same path on all platforms
%global _libexecdir %{_prefix}/libexec
%endif

Summary: Linux Test Project
Name: ltp
License: GPL-2.0
Group: System/Base
Url: https://github.com/linux-test-project/ltp
# Version is letest release from
# https://github.com/linux-test-project/ltp/releases
# But in reality building a git snapshot
Version: 20200515
Release: 0.git%{commit_short}.3
Source0: https://github.com/linux-test-project/ltp/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

BuildRequires: bash
BuildRequires: expect
BuildRequires: perl
BuildRequires: python3
BuildRequires: numa-devel

# ALT Linux disables AutoReq...
#AutoReq: off

%description
The Linux Test Project has a goal to deliver test suites to the open source
community that validate the reliability, robustness, and stability of Linux.

The LTP testsuite contains a collection of tools for testing the Linux kernel
and related features. Our goal is to improve the Linux kernel and system
libraries by bringing test automation to the testing effort. Interested open
source contributors are encouraged to join.

Testing Linux, one syscall at a time.

%files
%doc COPYING README.*
%{_libexecdir}/%{name}
%{_bindir}/runltp
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}
%ifarch %{e2k}
# case label value has already appeared at line 138
sed -i '/case SIGRESTART:/d' lib/tst_sig.c
%endif

%build
autoreconf -if
./configure \
	--prefix=%{_libexecdir}/%{name} \
	--with-bash="$(command -v bash)" \
	--with-python=%{__python3} \
	--with-perl="$(command -v perl)" \
	--with-expect="$(command -v expect)" \
	--with-realtime-testsuite=yes \
	--with-open-posix-testsuite=yes
%make

%install
%makeinstall_std
find %{buildroot}%{_libexecdir}/%{name} -perm /g+w | xargs chmod g-w

mkdir -p %{buildroot}/%{_bindir}
# Work of runtlp depends from arg[0], that is why we cannot make a symlink
cat > %{buildroot}%{_bindir}/runltp <<-EOF
#!/bin/sh
exec %{_libexecdir}/%{name}/runltp "\$@"
EOF
chmod a+x %{buildroot}%{_bindir}/runltp

mkdir -p %{buildroot}%{_mandir}
mv %{buildroot}%{_libexecdir}/%{name}/share/man/* %{buildroot}%{_mandir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14535 |21mr|lttng-ust-2.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define with_numactl          0%{!?_without_numactl:1}
# Numactl is not available on armhf
%ifarch armv7hl
%define with_numactl 0
%endif

%if %{with_numactl}
    %define arg_numactl --enable-numa
%else
    %define arg_numactl --disable-numa
%endif

Name:		lttng-ust
Version:	2.12.0
Release:	1
Group:		Development/Other
License:	LGPLv2.1, MIT and GPLv2
Summary:	LTTng Userspace Tracer library
URL:		https://lttng.org
Source0:	https://lttng.org/files/lttng-ust/%{name}-%{version}.tar.bz2
Patch0:		lttng-gen-tp-shebang.patch
Patch1:		0001-Fix-namespace-contexts-CONFIG_RCU_TLS-variable-initi.patch
Patch2:		lttng-build-examples.patch
BuildRequires:	pkgconfig(uuid)
BuildRequires:	systemtap-sdt-devel
BuildRequires:	pkgconfig(liburcu) >= 0.12.0
%if %{with_numactl}
BuildRequires:	pkgconfig(numa)
%endif

%description
This library may be used by user-space applications to generate
trace-points using LTTng.

%files
%{_libdir}/*.so.*
%{_mandir}/man3/do_tracepoint.3*
%{_mandir}/man3/lttng-ust.3*
%{_mandir}/man3/lttng-ust-cyg-profile.3*
%{_mandir}/man3/lttng-ust-dl.3*
%{_mandir}/man3/tracef.3*
%{_mandir}/man3/tracelog.3*
%{_mandir}/man3/tracepoint.3*
%{_mandir}/man3/tracepoint_enabled.3*

%dir %{_docdir}/%{name}
%{_docdir}/%{name}/ChangeLog
%{_docdir}/%{name}/COPYING
%{_docdir}/%{name}/java-agent.txt
%{_docdir}/%{name}/LICENSE
%{_docdir}/%{name}/README.md


#--------------------------------------------------------------------------
%package -n %{name}-devel
Summary:	LTTng Userspace Tracer library headers and development files
Requires:	%{name}%{?_isa} = %{version}-%{release}
Requires:	pkgconfig(liburcu)
Requires:	systemtap-sdt-devel

%description -n %{name}-devel
The %{name}-devel package contains libraries and header to instrument
applications using %{name}

%files -n %{name}-devel
%{_bindir}/lttng-gen-tp
%{_mandir}/man1/lttng-gen-tp.1*
%{_prefix}/include/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/lttng-ust*.pc

%dir %{_docdir}/%{name}/examples
%{_docdir}/%{name}/examples/*

#--------------------------------------------------------------------------

%package -n python3-lttngust
Summary:	Python bindings for LTTng UST
Requires:	%{name}%{?_isa} = %{version}-%{release}
BuildRequires:	pkgconfig(python3)

%description -n python3-lttngust
The python3-lttngust package contains libraries needed to instrument
applications that use %{name}'s Python logging backend.

%files -n python3-lttngust
%{python3_sitelib}/lttngust/
%{python3_sitelib}/lttngust-*.egg-info

#--------------------------------------------------------------------------
%prep
%autosetup -p1

%build
sed -i -e '/SUBDIRS/s:tests::' Makefile.am
autoreconf -vif

%configure \
	--docdir=%{_docdir}/%{name} \
	--disable-static \
	--enable-python-agent \
	--with-sdt \
	%{?arg_numactl}

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14536 |21mr|lua-5.3.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5.3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define staticname %mklibname %{name} -d -s
%define alt_priority %(echo %{major} | sed -e 's/[^0-9]//g')

%global optflags %{optflags} -fPIC

Summary:	Powerful, light-weight programming language
Name:		lua
Version:	5.3.6
Release:	6
License:	MIT
Group:		Development/Other
Url:		http://www.lua.org/
Source0:	http://www.lua.org/ftp/%{name}-%{version}.tar.gz
# we need directory testes/ which is not included into release tarball, so take it from Github
Source1:	https://github.com/lua/lua/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}-git.tar.gz
Source2:	lua.pc
Source3:	test.sh
Patch0:		lua-5.3.3-dynlib.patch
Patch1:		lua-5.3.3-modules_path.patch
Patch2:		lua53-compat-old-versions.patch
Patch3:		0001-Makefile-do-not-reset-variables.patch
# 5.3.6 fixed CVE-2019-6706
Patch101:	CVE-2020-15945.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
Requires(post):	update-alternatives
Requires(postun):	update-alternatives
Provides:	lua%{major} = %{EVRD}
Provides:	/usr/bin/lua

%description
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

%files
%doc doc/*{.html,.css,.gif,.png}
%doc README
%{_bindir}/*
%{_mandir}/man1/*

%post
/usr/sbin/update-alternatives --install %{_bindir}/lua lua %{_bindir}/lua%{major} %{alt_priority} --slave %{_bindir}/luac luac %{_bindir}/luac%{major}

%postun
[[ -f %{_bindir}/lua%{major} ]] || /usr/sbin/update-alternatives --remove lua %{_bindir}/lua%{major}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Powerful, light-weight programming language
Group:		Development/Other
Provides:	%{name}-libs = %{EVRD}

%description -n %{libname}
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

%files -n %{libname}
%doc doc/*{.html,.css,.gif,.png}
%{_libdir}/liblua.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files for Lua
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	liblua%{major}-devel = %{EVRD}
Provides:	lua-devel = %{EVRD}
Provides:	lua%{major}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development files for Lua.

%files -n %{devname}
%doc doc/*{.html,.css,.gif,.png}
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/liblua.so

#----------------------------------------------------------------------------

%package -n %{staticname}
Summary:	Static development files for Lua
Group:		Development/Other
Provides:	lua-devel-static = %{EVRD}
Provides:	lua-static-devel = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{staticname}
This package contains the static development files for Lua.

%files -n %{staticname}
%doc doc/*{.html,.css,.gif,.png}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1
install -m755 %{SOURCE3} .
mkdir -p etc
cp %{SOURCE2} ./etc/
sed -i -e 's/@MAJOR_VERSION@/%{major}/g' ./etc/lua.pc
sed -i -e 's/@FULL_VERSION@/%{version}/g' ./etc/lua.pc

sed -i -e "s|/usr/local|%{_prefix}|g" Makefile
sed -i -e "s|/lib|/%{_lib}|g" Makefile
sed -i -e "s|/usr/local|%{_prefix}|g" src/luaconf.h
sed -i -e "s|/lib|/%{_lib}|g" src/luaconf.h
sed -i -e "s|/man/man1|/share/man/man1|g" Makefile
sed -i -e "s|\$(V)|%{major}|g" src/Makefile

mkdir git
tar -C git -xf %{SOURCE1}
mv git/lua-%{version}/testes .
rm -fr git
# we run all tests by our script in %%check
unlink testes/all.lua
# eats too much RAM
unlink testes/heavy.lua
# XXX remove failing tests
# TODO: fix them?
unlink testes/attrib.lua
unlink testes/big.lua
unlink testes/db.lua
unlink testes/files.lua

%build
%setup_compile_flags
export MYCFLAGS="%{optflags}"
# XXX MYLDFLAGS and MYLIBS seem to be not used
export MYLDFLAGS="%{ldflags}"
export MYLIBS="%{ldflags}"
%make linux

%install
%makeinstall_std INSTALL_TOP=%{buildroot}%{_prefix} INSTALL_LIB=%{buildroot}%{_libdir} INSTALL_MAN=%{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_libdir}/lua/%{major}/
install -d %{buildroot}%{_datadir}/lua/%{major}/

install -m 755 src/liblua.so.%{major}* %{buildroot}%{_libdir}
ln -s liblua.so.%{major} %{buildroot}%{_libdir}/liblua.so

install -d -m 755 %{buildroot}%{_libdir}/pkgconfig/
install -m 644 etc/lua.pc %{buildroot}%{_libdir}/pkgconfig/

# for update-alternatives
mv %{buildroot}%{_bindir}/lua %{buildroot}%{_bindir}/lua%{major}
mv %{buildroot}%{_bindir}/luac %{buildroot}%{_bindir}/luac%{major}

%check
LD_LIBRARY_PATH=%{buildroot}%{_libdir} ./test.sh %{buildroot}%{_bindir}/lua%{major}
# trying to get maximum code coverage, https://nixtux.ru/1365
cd testes
set +e
failed=0
for i in *.lua
do
	LD_LIBRARY_PATH=%{buildroot}%{_libdir} %{buildroot}%{_bindir}/lua%{major} "$i"
	if [ $? != 0 ]; then
		failed=$((++failed))
	fi
done
echo "Failed $failed tests"
exit $failed

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14537 |21mr|lua5.4-5.4.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname lua
%define major 5.4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define staticname %mklibname %{name} -d -s
%define alt_priority %(echo %{major} | sed -e 's/[^0-9]//g')

Summary:	Powerful, light-weight programming language
Name:		lua5.4
Version:	5.4.4
Release:	4
License:	MIT
Group:		Development/Other
Url:		http://www.lua.org/
Source0:	http://www.lua.org/ftp/%{oname}-%{version}.tar.gz
Source1:	lua.pc
Patch0:		lua-5.4-dynlib.patch
Patch1:		lua-5.4-modules_path.patch
Patch2:		lua54-compat-old-versions.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
Requires(post):	update-alternatives
Requires(postun):	update-alternatives
Provides:	lua%{major} = %{EVRD}
#Provides:	/usr/bin/lua

%description
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

%files
%doc doc/*{.html,.css,.gif,.png}
%doc README
%{_bindir}/*
%{_mandir}/man1/*

%post
/usr/sbin/update-alternatives --install %{_bindir}/lua lua %{_bindir}/lua%{major} %{alt_priority} --slave %{_bindir}/luac luac %{_bindir}/luac%{major}

%postun
[[ -f %{_bindir}/lua%{major} ]] || /usr/sbin/update-alternatives --remove lua %{_bindir}/lua%{major}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Powerful, light-weight programming language
Group:		Development/Other
Provides:	%{name}-libs = %{EVRD}

%description -n %{libname}
Lua is a programming language originally designed for extending applications,
but also frequently used as a general-purpose, stand-alone language. Lua
combines simple procedural syntax (similar to Pascal) with powerful data
description constructs based on associative arrays and extensible semantics.
Lua is dynamically typed, interpreted from bytecodes, and has automatic memory
management, making it ideal for configuration, scripting, and rapid
prototyping. Lua is implemented as a small library of C functions, written in
ANSI C, and compiles unmodified in all known platforms. The implementation
goals are simplicity, efficiency, portability, and low embedding cost.

%files -n %{libname}
%{_libdir}/liblua.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files for Lua
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	liblua%{major}-devel = %{EVRD}
#Provides:	lua-devel = %{EVRD}
Provides:	lua%{major}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development files for Lua.

%files -n %{devname}
%doc doc/*{.html,.css,.gif,.png}
%{_includedir}/*
#%%{_libdir}/pkgconfig/*
%{_libdir}/liblua.so

#----------------------------------------------------------------------------

%package -n %{staticname}
Summary:	Static development files for Lua
Group:		Development/Other
Provides:	lua-devel-static = %{EVRD}
Provides:	lua-static-devel = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{staticname}
This package contains the static development files for Lua.

%files -n %{staticname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}
mkdir -p etc
#cp %{SOURCE1} ./etc/
#sed -i -e 's/@MAJOR_VERSION@/%{major}/g' ./etc/lua.pc
#sed -i -e 's/@FULL_VERSION@/%{version}/g' ./etc/lua.pc

sed -i -e "s|/usr/local|%{_prefix}|g" Makefile
sed -i -e "s|/lib|/%{_lib}|g" Makefile
sed -i -e "s|/usr/local|%{_prefix}|g" src/luaconf.h
sed -i -e "s|/lib|/%{_lib}|g" src/luaconf.h
sed -i -e "s|/man/man1|/share/man/man1|g" Makefile
sed -i -e "s|\$(V)|%{major}|g" src/Makefile

%build
%make linux CFLAGS="%{optflags} -fPIC -DLUA_USE_LINUX"

%install
%makeinstall_std INSTALL_TOP=%{buildroot}%{_prefix} INSTALL_LIB=%{buildroot}%{_libdir} INSTALL_MAN=%{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_libdir}/lua/%{major}/
install -d %{buildroot}%{_datadir}/lua/%{major}/

install -m 755 src/liblua.so.%{major}* %{buildroot}%{_libdir}
ln -s liblua.so.%{major} %{buildroot}%{_libdir}/liblua.so

#install -d -m 755 %{buildroot}%{_libdir}/pkgconfig/
#install -m 644 etc/lua.pc %{buildroot}%{_libdir}/pkgconfig/

# for update-alternatives
mv %{buildroot}%{_bindir}/lua %{buildroot}%{_bindir}/lua%{major}
mv %{buildroot}%{_bindir}/luac %{buildroot}%{_bindir}/luac%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14538 |21mr|luajit-2.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		2
%define mmajor %(echo %{version} |cut -d. -f1-2)
%define api		5.1
%define libname		%mklibname %{name}-%{api} _%{major}
%define libcommon	%mklibname %{name}-%{api}-common
%define devname		%mklibname %{name}-%{api} -d
%define beta beta3

%define tarname LuaJIT

Summary:	Just-In-Time Compiler for the Lua programming language
Name:		luajit
Version:	2.1.0
Release:	3
License:	MIT
Group:		Development/Other
Url:		http://luajit.org/luajit.html
Source0:	https://github.com/LuaJIT/LuaJIT/archive/LuaJIT-%{version}-%{beta}.tar.gz
Patch1000:	0001-e2k_port.patch
Patch1001:	0002-e2k_files.patch
Requires:	%{libcommon} = %{EVRD}
ExclusiveArch:	%{e2k}

%description
LuaJIT has been successfully used as a scripting middle-ware in games,
3D modelers, numerical simulations, trading platforms and many other
specialty applications.
It combines high flexibility with high performance and an unmatched low
memory footprint: less than 125K for the VM plus less than 85K for the
JIT compiler (on x86).
LuaJIT has been in continuous development since 2005. It is widely considered
to be one of the fastest dynamic language implementations.

%files
%doc COPYRIGHT README
%{_bindir}/%{name}-%{version}*
%{_bindir}/%{name}
%{_mandir}/man1/luajit.1*

#----------------------------------------------------------------------------

%package -n %{libcommon}
Summary:	Just-In-Time Compiler for the Lua programming language
Group:		System/Libraries

%description -n %{libcommon}
LuaJIT has been successfully used as a scripting middle-ware in games,
3D modelers, numerical simulations, trading platforms and many other
specialty applications.
It combines high flexibility with high performance and an unmatched low
memory footprint: less than 125K for the VM plus less than 85K for the
JIT compiler (on x86).
LuaJIT has been in continuous development since 2005. It is widely considered
to be one of the fastest dynamic language implementations.

%files -n %{libcommon}
%{_datadir}/%{name}-%{version}-%{beta}/jit/*.lua

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Just-In-Time Compiler for the Lua programming language
Group:		System/Libraries
Requires:	%{libcommon}

%description -n %{libname}
LuaJIT has been successfully used as a scripting middle-ware in games,
3D modelers, numerical simulations, trading platforms and many other
specialty applications.
It combines high flexibility with high performance and an unmatched low
memory footprint: less than 125K for the VM plus less than 85K for the
JIT compiler (on x86).
LuaJIT has been in continuous development since 2005. It is widely considered
to be one of the fastest dynamic language implementations.

%files -n %{libname}
%{_libdir}/lib%{name}*.so.%{major}
%{_libdir}/lib%{name}*.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Just-In-Time Compiler for the Lua programming language
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{tarname}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed by developers.

%files -n %{devname}
%{_includedir}/luajit*/*.h*
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/libluajit*.a
%{_libdir}/libluajit-%{api}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{tarname}-%{version}-%{beta}
%if "%{_lib}" != "lib"
sed -i -e 's,^multilib=lib,multilib=%{_lib},' etc/luajit.pc
%endif

# Enable Lua 5.2 features
sed -i -e '/-DLUAJIT_ENABLE_LUA52COMPAT/s/^#//' src/Makefile

%build
%make_build amalg PREFIX=%{_usr} \
	Q='' \
	DEFAULT_CC=%{__cc} \
	CCDEBUG="%{optflags}" \
	TARGET_LDFLAGS="%{ldflags}" \
	MULTILIB="%{_lib}" \
	INSTALL_LIB="%{buildroot}%{_libdir}" \
%ifarch %{x86_64} %{aarch64}
	TARGET_CFLAGS="%{optflags} -DMULTIARCH_PATH='\"%{_libdir}/\"'"
%else
%ifarch %{e2k}
	TARGET_CFLAGS="%{optflags} -DLUAJIT_DISABLE_JIT -DLUAJIT_UNWIND_EXTERNAL -fexceptions"
%else
	TARGET_CFLAGS="%{optflags}"
%endif
%endif

%install
%make_install PREFIX=%{_usr} INSTALL_LIB=%{buildroot}%{_libdir}

ln -sf %{_bindir}/%{name}-%{version}-%{beta} %{buildroot}%{_bindir}/%{name}
ln -sf %{_libdir}/libluajit-%{api}.so.%{version} %{buildroot}%{_libdir}/libluajit-%{api}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14539 |21mr|lua-lgi-0.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lua_version 5.3
%define bname lgi

Summary:	Dynamic Lua binding to GObject libraries using GObject-Introspection
Name:		lua-lgi
Version:	0.9.2
Release:	2
License:	MIT
Group:		Development/Other
Url:		https://github.com/pavouk/lgi
Source0:	https://github.com/pavouk/lgi/archive/%{version}.tar.gz?/%{bname}-%{version}.tar.gz
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(lua) >= %{lua_version}
Requires:	gobject-introspection

%description
LGI is gobject-introspection based dynamic Lua binding to GObject based
libraries. It allows using GObject-based libraries directly from Lua.

%files
%doc docs/
%doc README.md
%{_datadir}/lua/%{lua_version}/lgi*
%{_libdir}/lua/%{lua_version}/lgi

#----------------------------------------------------------------------------

%prep
%setup -qn %{bname}-%{version}

%build
export CFLAGS="%{optflags} -fPIC"
%make

%install
%makeinstall_std LUA_SHAREDIR=%{_datadir}/lua/%{lua_version} LUA_LIBDIR=%{_libdir}/lua/%{lua_version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14540 |21mr|lua-lpeg-1.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global luaver %(lua -e 'print(_VERSION)' | cut -d ' ' -f 2)
%global luajitver 2.1
%global luajitlver %(luajit -e 'print(_VERSION)' | cut -d ' ' -f 2)
%global lualibdir %{_libdir}/lua/%{luaver}
%global luapkgdir %{_datadir}/lua/%{luaver}
%global luajitlibdir %{_libdir}/lua/%{luajitlver}
%global luajitpkgdir %{_datadir}/lua/%{luajitlver}

Name:           lua-lpeg
Version:	1.0.2
Release:        2
Summary:        Parsing Expression Grammars for Lua

Group:          Development/Other
License:        MIT
URL:            http://www.inf.puc-rio.br/~roberto/lpeg/
Source0:        http://www.inf.puc-rio.br/~roberto/lpeg/lpeg-%{version}.tar.gz

BuildRequires:	lua-devel
BuildRequires:	lua
# need to set 5.3 because of bootstrap
Requires:	lua >= 5.3

BuildRequires:	pkgconfig(luajit)
BuildRequires:	luajit

%description
LPeg is a new pattern-matching library for Lua, based on Parsing Expression
Grammars (PEGs).

%files
%doc HISTORY lpeg.html re.html lpeg-128.gif test.lua
%{lualibdir}/*
%{luapkgdir}/*

%package -n	luajit-lpeg
Summary:	Parsing Expression Grammars for Luajit

%description -n luajit-lpeg
LPeg is a new pattern-matching library for Luajit, based on Parsing Expression
Grammars (PEGs).

%files -n luajit-lpeg
%doc HISTORY lpeg.html re.html lpeg-128.gif test.lua
%{luajitlibdir}/*
%{luajitpkgdir}/*

%prep
%autosetup -p1 -n lpeg-%{version}
%{__sed} -i -e "s|/usr/bin/env lua5.1|%{_bindir}/lua|" test.lua
# strict module not part of our Lua 5.1.4
%{__sed} -i -e 's|require"strict"|-- require"strict"|' test.lua
%{__chmod} -x test.lua

%build
%make_build COPT="%{optflags} -DNDEBUG"

mv lpeg.so lpeg.so.lua

%make_build clean
%make_build COPT="%{optflags} -DNDEBUG -I%{_includedir}/luajit-2.1"


%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}%{lualibdir}
%{__mkdir_p} %{buildroot}%{luapkgdir}
%{__install} -p lpeg.so.lua %{buildroot}%{lualibdir}/lpeg.so
%{__install} -p -m 0644 re.lua %{buildroot}%{luapkgdir}

%{__mkdir_p} %{buildroot}%{luajitlibdir}
%{__mkdir_p} %{buildroot}%{luajitpkgdir}
%{__install} -p lpeg.so %{buildroot}%{luajitlibdir}/lpeg.so
%{__install} -p -m 0644 re.lua %{buildroot}%{luajitpkgdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14541 |21mr|lua-lunit-0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define luaver 5.2
%define luapkgdir %{_datadir}/lua/%{luaver}

Name:           lua-lunit
Version:        0.5
Release:        4
Summary:        Unit testing framework for Lua

Group:          Development/Other
License:        MIT
URL:            http://nessie.de/mroth/lunit/index.html
Source0:        http://nessie.de/mroth/lunit/lunit-%{version}.tar.gz

# for running tests
BuildRequires:  lua >= %{luaver}
Requires:       lua >= %{luaver}

BuildArch:      noarch

%description
Lunit is a unit testing framework for lua, written in lua.

Lunit provides 26 assert functions, and a few misc functions for usage
in an easy unit testing framework.

Lunit comes with a test suite to test itself. The testsuite consists
of approximately 710 assertions.


%prep
%setup -q -n lunit-%{version}


%build
#Nothing to do

%install
mkdir -p %{buildroot}%{_bindir}
cp -p lunit %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{luapkgdir}
cp -pr lunit{,-console}.lua %{buildroot}%{luapkgdir}


%check
./lunit lunit-tests.lua | tee testlog.txt
grep -q "0 failed, 0 errors" testlog.txt

%files
%doc LICENSE ANNOUNCE CHANGES DOCUMENTATION README* example.lua
%{_bindir}/lunit
%{luapkgdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14542 |21mr|lua-posix-35.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?lua_version: %global lua_version %(lua -e "print(string.sub(_VERSION, 5))")}

%global	debug_package %{nil}

Name:           lua-posix
Version:        35.1
Release:        1
Summary:        A POSIX library for Lua
Group:          Development/Other
License:        Public Domain
URL:            http://luaforge.net/projects/luaposix/
Source0:        https://github.com/luaposix/luaposix/archive/refs/tags/v%{version}.tar.gz?/luaposix-%{version}.tar.gz
BuildRequires:  lua-devel
Requires:       lua >= 5.2

%description
This is a POSIX library for Lua which provides access to many POSIX features
to Lua programs.

%files
%{_libdir}/lua/%{lua_version}/posix
%{_datadir}/lua/%{lua_version}/*
#-------------------------------------------------------------
%prep
%setup -q -n luaposix-%{version}


%build
./build-aux/luke

%install
./build-aux/luke INST_LIBDIR=%{buildroot}%{_libdir}/lua/%{lua_version} PREFIX=%{buildroot}%{_prefix} install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14543 |21mr|luarocks-2.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define luaver 5.3
%define lualibdir %{_libdir}/lua/%{luaver}
%define luapkgdir %{_datadir}/lua/%{luaver}

%global __requires_exclude /usr/bin/lua5.3

Summary:	Deployment and management system for Lua modules
Name:		luarocks
Version:	2.4.4
Release:	2
License:	MIT
Group:		Development/Other
Url:		http://www.luarocks.org/
Source0:	https://github.com/luarocks/luarocks/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(lua) >= %{luaver}
Requires:	lua >= %{luaver}
Requires:	wget

%description
LuaRocks allows you to install Lua modules as self-contained packages called
"rocks", which also contain version dependency information. This information
is used both at install time, so that when one rock is requested all rocks it
depends on are installed as well, and at run time, so that when a module is
required, the correct version is loaded. LuaRocks supports both local and
remote repositories, and multiple local rocks trees.

%files
%doc COPYING
%{_sysconfdir}/luarocks/config-%{luaver}.lua
%{_bindir}/*
%{luapkgdir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q

for file in COPYING_7z; do
	sed "s|\r||g" $file > $file.new && \
	touch -r $file $file.new && \
	mv $file.new $file
done


%build
./configure \
	--prefix=/usr \
	--sysconfdir=%{_sysconfdir}/%{name} \
	--rocks-tree=%{lualibdir} \
	--lua-suffix=%{luaver}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14544 |21mr|lua-socket-3.0-0.20170810.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20170810
%define luaver 5.3

Summary:	Network access library for the Lua programming language
Name:		lua-socket
Version:	3.0
Release:	0.%{git}.1
License:	MIT
Group:		Development/Other
Url:		https://github.com/diegonehab/luasocket
Source0:	%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(lua)
Requires:	lua

%description
LuaSocket is a Lua extension library that is composed by two parts: a
C layer that provides support for the TCP and UDP transport layers,
and a set of Lua modules that add support for the SMTP (sending
e-mails), HTTP (WWW access) and FTP (uploading and downloading files)
protocols.

%files
%{_libdir}/lua/%{luaver}/mime/core.so
%{_libdir}/lua/%{luaver}/socket/core.so
%{_datadir}/lua/%{luaver}/*
#----------------------------------------------------------------------------

%prep
%setup -q

sed -i -e "s@CDIR_linux?=lib/lua@CDIR_linux?=%{_lib}/lua@g" src/makefile
%build
%make LUAV=%{luaver}

%install
%makeinstall_std \
	LUAPREFIX_linux=%{_prefix} \
	LUAV=%{luaver}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14545 |21mr|lucene++-3.0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Source from GitHub
#
# git clone https://github.com/luceneplusplus/LucenePlusPlus.git
# cd LucenePlusPlus
# git archive --format=tar --prefix=LucenePlusPlus-20140729/ master | xz > ../LucenePlusPlus-20140729.tar.xz

%define oname LucenePlusPlus

%define major 0
%define libname %mklibname %{name} %{major}
%define libcontrib %mklibname %{name}-contrib %{major}
%define devname %mklibname %{name} -d

Summary:	C++ port of the popular Java Lucene library
Name:		lucene++
Version:	3.0.7
Release:	4
License:	LGPLv3+ and ASL2.0
Group:		Development/C++
Url:		https://github.com/luceneplusplus/LucenePlusPlus
Source0:	https://github.com/luceneplusplus/LucenePlusPlus/releases/tag/rel_%{version}.tar.gz
Patch0:		0001-Fix-FSDirectory-sync-to-sync-writes-to-disk.patch
Patch1:		0002-minor-fix-to-allow-full-lines-to-be-input-to-demo-qu.patch
Patch2:		0005-Use-maxSize-of-BooleanQuery-as-base-for-the-queue-si.patch
Patch3:		0006-Fix-packageconfig-path.patch
Patch4:		0007-boost-1.58-variant.patch
BuildRequires:	cmake
BuildRequires:	boost-devel

%description
Lucene++ is an up to date C++ port of the popular Java Lucene library,
a high-performance, full-featured text search engine.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ port of the popular Java Lucene library
Group:		System/Libraries

%description -n %{libname}
Lucene++ is an up to date C++ port of the popular Java Lucene library,
a high-performance, full-featured text search engine.

%files -n %{libname}
%doc *.license README* AUTHORS
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{libcontrib}
Summary:	C++ port of the popular Java Lucene library
Group:		System/Libraries

%description -n %{libcontrib}
Lucene++ is an up to date C++ port of the popular Java Lucene library,
a high-performance, full-featured text search engine.

%files -n %{libcontrib}
%doc *.license README* AUTHORS
%{_libdir}/lib%{name}-contrib.so.%{major}
%{_libdir}/lib%{name}-contrib.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libcontrib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development ifles and headers for %{name}.

%files -n %{devname}
%doc *.license README* AUTHORS REQUESTS
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/lib%{name}*.pc
%{_libdir}/lib%{name}*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-rel_%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14546 |21mr|lucene3-3.6.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        High-performance, full-featured text search engine
Name:           lucene3
Version:        3.6.2
Group:          Development/Java
Release:        17
Epoch:          0
License:        ASL 2.0 and BSD
URL:            http://lucene.apache.org/
Source0:        https://archive.apache.org/dist/lucene/java/%{version}/lucene-%{version}-src.tgz
Source1:        lucene-%{version}-core-OSGi-MANIFEST.MF
Source2:        lucene-%{version}-analysis-OSGi-MANIFEST.MF

# DictionaryBasedBreakIterator was moved into the base RuleBasedBreakIterator
# in icu4j. v49 => v50
Patch0:         lucene_contrib_icu4j_v50.patch
# Add hamcrest-core in classpath
# Disable doclint in javadoc task
Patch1:         lucene-3.6.2-hamcrest-core.patch
# javascript not allowed in javadoc
Patch2:         lucene-3.6.2-javascript.patch
# Fix build errors in test-framework
Patch3:         test-framework.patch
#svn export http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_3_6_2/dev-tools@r1450168
#tar caf dev-tools.tar.xz dev-tools/
Source4:        dev-tools.tar.xz

BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  apache-commons-codec
BuildRequires:  apache-commons-compress
BuildRequires:  apache-commons-digester
BuildRequires:  apache-ivy
BuildRequires:  apache-parent
BuildRequires:  hamcrest-core
BuildRequires:  icu4j
BuildRequires:  ivy-local
BuildRequires:  javacc
BuildRequires:  java-javadoc
BuildRequires:  jtidy
BuildRequires:  junit
BuildRequires:  lucene3
BuildRequires:  regexp
BuildRequires:  xerces-j2
BuildRequires:  zip

# for tests
BuildRequires:  subversion

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Lucene is a high-performance, full-featured text search
engine library written entirely in Java. It is a technology suitable
for nearly any application that requires full-text search, especially
cross-platform.

%package contrib
Summary:        Lucene contributed extensions
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description contrib
%{summary}.

%package javadoc
Summary:        Javadoc for Lucene

%description javadoc
%{summary}.

%prep
%setup -q -n lucene-%{version}
# remove all binary libs
find . -name "*.jar" -delete

tar xfs %{SOURCE4}
pushd dev-tools
find . -name "pom.xml.template" -exec sed -i "s/@version@/%{version}/g" '{}' \;
popd

iconv --from=ISO-8859-1 --to=UTF-8 CHANGES.txt > CHANGES.txt.new

# prepare pom files (replace @version@ with real version)
find . -name '*pom.xml.template' -exec \
              sed -i "s:@version@:%{version}:g" '{}' \;

# must specify exact version for compat package deps
sed -i -e "s|3.5.0|3.6.2|g" backwards/ivy.xml

%patch0 -p2
%patch1 -p1
%patch2 -p1
%patch3 -p0

%build
mkdir -p docs
mkdir -p lib
export OPT_JAR_LIST="ant/ant-junit junit hamcrest/core"

export CLASSPATH=$(build-classpath jtidy regexp commons-codec commons-digester commons-compress icu4j ivy xmvn)
ant -Divy.mode=local -Dbuild.sysclasspath=first \
  -Djavacc.home=%{_bindir}/javacc \
  -Djavacc.jar=%{_javadir}/javacc.jar \
  -Djavacc.jar.dir=%{_javadir} \
  -Djavadoc.link=file://%{_javadocdir}/java \
  -Dversion=%{version} \
  -Dfailonjavadocwarning=false \
  -Dmaven-tasks.uptodate=true \
  -Djavac.source=1.6 \
  -Djavac.target=1.6 \
  -Djavac.source.backwards=1.6 \
  -Djavac.target.backwards=1.6 \
  jar-lucene-core jar-test-framework docs javadocs build-contrib

# add missing OSGi metadata to manifests
mkdir META-INF
unzip -o build/core/lucene-core-%{version}.jar META-INF/MANIFEST.MF
cp %{SOURCE1} META-INF/MANIFEST.MF
sed -i '/^\r$/d' META-INF/MANIFEST.MF
zip build/core/lucene-core-%{version}.jar META-INF/MANIFEST.MF

unzip -o build/contrib/analyzers/common/lucene-analyzers-%{version}.jar META-INF/MANIFEST.MF
cp %{SOURCE2} META-INF/MANIFEST.MF
sed -i '/^\r$/d' META-INF/MANIFEST.MF
zip build/contrib/analyzers/common/lucene-analyzers-%{version}.jar META-INF/MANIFEST.MF

mv build/contrib/analyzers/common build/contrib/analyzers/analyzers
mv dev-tools/maven/lucene/contrib/analyzers/common dev-tools/maven/lucene/contrib/analyzers/analyzers

# Core
sed -i -e '/relativePath/d' dev-tools/maven/pom.xml.template
%mvn_artifact dev-tools/maven/pom.xml.template
%mvn_artifact dev-tools/maven/lucene/pom.xml.template
%mvn_artifact dev-tools/maven/lucene/core/pom.xml.template build/core/lucene-core-%{version}.jar

# Contrib
%mvn_artifact dev-tools/maven/lucene/contrib/pom.xml.template
%mvn_package :lucene-contrib-aggregator contrib
for c in benchmark demo facet grouping highlighter icu instantiated join \
         memory misc pruning queries queryparser remote spatial spellchecker xml-query-parser ; do
  %mvn_artifact dev-tools/maven/lucene/contrib/$c/pom.xml.template build/contrib/$c/lucene-${c}-%{version}.jar
  %mvn_package :lucene-${c} contrib
done
for c in analyzers kuromoji phonetic smartcn stempel ; do
  %mvn_artifact dev-tools/maven/lucene/contrib/analyzers/$c/pom.xml.template build/contrib/analyzers/$c/lucene-${c}-%{version}.jar
  %mvn_package :lucene-${c} contrib
done

# Compat versions
%mvn_compat_version : 3 3.6.2

%install
%mvn_install -J build/docs/api

%files -f .mfiles
%doc CHANGES.txt README.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt

%files contrib -f .mfiles-contrib
%doc contrib/CHANGES.txt
%license LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14547 |21mr|lucene4-4.10.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Summary:        High-performance, full-featured text search engine
Name:           lucene4
Version:        4.10.4
Release:        12
Epoch:          0
License:        ASL 2.0
Group:          Development/Java
URL:            http://lucene.apache.org/
Source0:        http://www.apache.org/dist/lucene/java/%{version}/lucene-%{version}-src.tgz
#svn export http://svn.apache.org/repos/asf/lucene/dev/tags/lucene_solr_4_10_4/dev-tools/
#tar caf dev-tools-4.10.4.tar.xz dev-tools/
Source1:        dev-tools.tar.gz

Patch0:         0001-disable-ivy-settings.patch
Patch1:         0001-dependency-generation.patch

# Build fix for morfologik-stemming 2.x
Patch2:         lucene-4.10.4-morfologik-stemming.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1501841
Patch3:         0001-SOLR-11477-Disallow-resolving-of-external-entities-i.patch
Patch4:         rename-class-RandomInts.patch
Patch5:         spatial4j-path.patch
BuildRequires:  git-core
BuildRequires:  subversion
BuildRequires:  ant
BuildRequires:  ivy-local
BuildRequires:  apache-ivy
BuildRequires:  icu4j
BuildRequires:  httpcomponents-client
BuildRequires:  jetty-continuation
BuildRequires:  jetty-http
BuildRequires:  jetty-io
BuildRequires:  jetty-server
BuildRequires:  jetty-servlet
BuildRequires:  jetty-util
BuildRequires:  morfologik-stemming
BuildRequires:  uimaj
BuildRequires:  uima-addons
BuildRequires:  spatial4j
BuildRequires:  nekohtml
BuildRequires:  xerces-j2
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(org.antlr:antlr-runtime)
BuildRequires:  maven-local
BuildRequires:  apache-parent
BuildRequires:  buildnumber-maven-plugin
BuildRequires:  maven-plugin-bundle
BuildRequires:  regexp

# test-framework deps
BuildRequires:  junit
BuildRequires:  randomizedtesting-junit4-ant
BuildRequires:  randomizedtesting-runner
Provides:       %{name}-core = %{epoch}:%{version}-%{release}

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Lucene is a high-performance, full-featured text search
engine library written entirely in Java. It is a technology suitable
for nearly any application that requires full-text search, especially
cross-platform.

%package javadoc
Summary:        Javadoc for Lucene

%description javadoc
%{summary}.

%prep
%setup -q -n lucene-%{version}

# dependency generator expects that the directory name is just lucene
mkdir lucene
find -maxdepth 1 \
    ! -name CHANGES.txt ! -name LICENSE.txt ! -name README.txt \
    ! -name NOTICE.txt ! -name MIGRATE.txt  ! -name ivy-settings.xml \
    ! -path ./lucene -exec mv \{} lucene/ \;

mkdir ./dev-tools
tar xf %{SOURCE1} -C ./dev-tools

pushd lucene
%patch0 -p1
%patch1 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

# remove all binary libs
find . -name "*.jar" -delete

rm sandbox/src/test/org/apache/lucene/sandbox/queries/regex/TestJakartaRegexpCapabilities.java

# old API
rm -r replicator/src/test/*

rm -r analysis/common/src/test/*

# Because ivy-local is not available before F21
ln -s %{_sysconfdir}/ivy/ivysettings.xml

popd

%patch2 -p1

# Ensure OSGi package imports are versioned correctly
sed -i -e '/Export-Package/a<Import-Package>org.apache.lucene*;version="[${project.version},5.0.0)",org.tartarus*;version="[${project.version},5.0.0)",*</Import-Package>' \
  dev-tools/maven/pom.xml.template

# suggest provides spellchecker
%mvn_alias :lucene-suggest :lucene-spellchecker
# compatibility with existing packages
%mvn_alias :lucene-analyzers-common :lucene-analyzers
%mvn_compat_version : 4 %{version}

%build
pushd lucene
# generate dependencies
ant filter-pom-templates -Divy.mode=local -Dversion=%{version}

# fix source dir + move to expected place
for pom in `find build/poms/lucene -name pom.xml`; do
    sed 's/\${module-path}/${basedir}/g' "$pom" > "${pom##build/poms/lucene/}"
done

%pom_disable_module src/test core
%pom_disable_module src/test codecs

# test deps
%pom_add_dep org.ow2.asm:asm::test demo
%pom_add_dep org.ow2.asm:asm-commons::test demo
%pom_add_dep org.antlr:antlr-runtime::test demo

popd

mv lucene/build/poms/pom.xml .

%pom_disable_module solr
%pom_remove_plugin :gmaven-plugin
%pom_remove_plugin -r :forbiddenapis
# Duplicate pom entries is not allowed in maven 3.4+
%pom_remove_dep org.eclipse.jetty.orbit:javax.servlet
%pom_change_dep org.eclipse.jetty.orbit:javax.servlet javax.servlet:javax.servlet-api:3.1.0 lucene/replicator
%pom_change_dep -r :servlet-api javax.servlet:javax.servlet-api:3.1.0
# Prevent build failure
%pom_remove_plugin -r :maven-enforcer-plugin

# For some reason TestHtmlParser.testTurkish fails when building inside SCLs
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.txt README.txt MIGRATE.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt

%changelog
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0:4.10.4-12
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Thu Nov 16 2017 Michael Simacek <msimacek@redhat.com> - 0:4.10.4-11
- Backport fix for CVE-2017-12629

* Thu Sep 21 2017 Mat Booth <mat.booth@redhat.com> - 0:4.10.4-10
- Rebuild to regenerate OSGi metadata due to objectweb-asm update
- Add missing BR on regexp

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:4.10.4-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0:4.10.4-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Wed Jan 11 2017 Mat Booth <mat.booth@redhat.com> - 0:4.10.4-7
- Fix OSGi metadata to enable using lucene 4 alongside other versions
  of lucene in the same OSGi runtime

* Tue Nov 01 2016 gil cattaneo <puntogil@libero.it> 0:4.10.4-6
- remove SCLs, cause build failures

* Sun Oct 09 2016 gil cattaneo <puntogil@libero.it> 0:4.10.4-5
- fix duplicate pom entries (rhbz#1381118): servlet-api
- add build fix for morfologik-stemming 2.x
- add missing BRs: buildnumber-maven-plugin

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0:4.10.4-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Mon Aug 10 2015 gil cattaneo <puntogil@libero.it> 0:4.10.4-3
- add compat version
- force servlet 3.1 apis usage
- javnek removed my last chnageset, applied gil's patch

* Mon Aug 10 2015 Jiri Vanek <jvanek@redhat.com> - 0:4.10.4-2
- introduced main_version with value of 4
- added %%mvn_compat_version : %%{version} %%{main_version} toend of install

* Fri Aug  7 2015 Zbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl> - 0:4.10.4-1
- Use original manifests
- Merge all subpackages into one

* Wed Aug 05 2015 Jiri Vanek <jvanek@redhat.com> - 0:4.10.4-0
- initial fork from lucene berfore 5 update
- LICENSE.txt moved from doc to license macro
- declared lbasename to hold "lucene" and use dit instead of pkg_name where appropriate

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14548 |21mr|lucene5-5.5.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# HOW???
# %filter_from_provides /.usr.bin.jar/d
%define oldname lucene
Group: Development/Java
%define fedora 27
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}

%bcond_with bootstrap
%if %{with bootstrap}
# "Unable to generate requires on unresolvable artifacts: org.apache.lucene:lucene-solr-grandparent:pom:5.5.0"
%global __maven_requires %(if [ -e /usr/lib/rpm/maven.req ] ; then tmp=$(mktemp --suffix=_%{name}.%{version}.%{release}); cp /usr/lib/rpm/maven.req $tmp && chmod +x $tmp && echo $tmp ; else echo %{?__maven_requires} ; fi)
# see sed command in the end of %%install
%endif

Summary:        High-performance, full-featured text search engine
Name:           lucene5
Version:        5.5.0
Release:        3
License:        ASL 2.0
URL:            http://lucene.apache.org/
# solr source contains both lucene and dev-tools
Source0:        http://www.apache.org/dist/lucene/solr/%{version}/solr-%{version}-src.tgz

Patch0:         0001-Disable-ivy-settings.patch
Patch1:         0002-Dependency-generation.patch

BuildRequires:  ant
BuildRequires:  ivy-local
BuildRequires:  maven-local
BuildRequires:  randomizedtesting2.3.1-runner
BuildRequires:  mvn(com.ibm.icu:icu4j)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(com.spatial4j:spatial4j:0.5.0)
BuildRequires:  mvn(jakarta-regexp:jakarta-regexp)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.sourceforge.nekohtml:nekohtml)
BuildRequires:  mvn(org.antlr:antlr4-runtime)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.apache.uima:Tagger)
BuildRequires:  mvn(org.apache.uima:uimaj-core)
BuildRequires:  mvn(org.apache.uima:WhitespaceTokenizer)
BuildRequires:  mvn(org.carrot2:morfologik-fsa)
BuildRequires:  mvn(org.carrot2:morfologik-polish)
BuildRequires:  mvn(org.carrot2:morfologik-stemming)
BuildRequires:  mvn(org.eclipse.jetty:jetty-continuation)
BuildRequires:  mvn(org.eclipse.jetty:jetty-http)
BuildRequires:  mvn(org.eclipse.jetty:jetty-io)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:  mvn(org.eclipse.jetty:jetty-util)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-commons)
BuildRequires:  mvn(xerces:xercesImpl)
%if %{without bootstrap}
# dep from itself
BuildRequires:  mvn(org.apache.lucene:lucene-solr-grandparent:pom:5.5.0)
%endif

Provides:       %{oldname}-core = %{EVRD}

BuildArch:      noarch
Source44: import.info

%description
Apache Lucene is a high-performance, full-featured text search
engine library written entirely in Java. It is a technology suitable
for nearly any application that requires full-text search, especially
cross-platform.

%package parent
Group: Development/Java
Summary:      Parent POM for Lucene

%description parent
Parent POM for Lucene.

%package solr-grandparent
Group: Development/Java
Summary:      Lucene Solr grandparent POM

%description solr-grandparent
Lucene Solr grandparent POM.

%package backward-codecs
Group: Development/Java
Summary:      Lucene Backward Codecs Module

%description backward-codecs
Codecs for older versions of Lucene.

%package benchmark
Group: Development/Java
Summary:      Lucene Benchmarking Module

%description benchmark
Lucene Benchmarking Module.

%package replicator
Group: Development/Java
Summary:      Lucene Replicator Module

%description replicator
Lucene Replicator Module.

%package grouping
Group: Development/Java
Summary:      Lucene Grouping Module

%description grouping
Lucene Grouping Module.

%package highlighter
Group: Development/Java
Summary:      Lucene Highlighter Module

%description highlighter
Lucene Highlighter Module.

%package misc
Group: Development/Java
Summary:      Miscellaneous Lucene extensions

%description misc
Miscellaneous Lucene extensions.

%package test-framework
Group: Development/Java
Summary:      Apache Lucene Java Test Framework

%description test-framework
Apache Lucene Java Test Framework.

%package memory
Group: Development/Java
Summary:      Lucene Memory Module

%description memory
High-performance single-document index to compare against Query.

%package expressions
Group: Development/Java
Summary:      Lucene Expressions Module

%description expressions
Dynamically computed values to sort/facet/search on based on a pluggable
grammar.

%package demo
Group: Development/Java
Summary:      Lucene Demo Module

%description demo
Demo for Apache Lucene Java.

%package classification
Group: Development/Java
Summary:      Lucene Classification Module

%description classification
Lucene Classification Module.

%package join
Group: Development/Java
Summary:      Lucene Join Module

%description join
Lucene Join Module.

%package suggest
Group: Development/Java
Summary:      Lucene Suggest Module

%description suggest
Lucene Suggest Module.

%package facet
Group: Development/Java
Summary:      Lucene Facets Module

%description facet
Package for Faceted Indexing and Search.

%package analysis
Group: Development/Java
Summary:      Lucene Common Analyzers

%description analysis
Lucene Common Analyzers.

%package sandbox
Group: Development/Java
Summary:      Lucene Sandbox Module

%description sandbox
Lucene Sandbox Module.

%package queries
Group: Development/Java
Summary:      Lucene Queries Module

%description queries
Lucene Queries Module.

%package spatial
Group: Development/Java
Summary:      Spatial Strategies for Apache Lucene

%description spatial
Spatial Strategies for Apache Lucene.

%package spatial3d
Group: Development/Java
Summary:      Lucene Spatial 3D

%description spatial3d
Spatial shapes implemented using 3D planar geometry

%package codecs
Group: Development/Java
Summary:      Codecs and postings formats for Apache Lucene

%description codecs
Codecs and postings formats for Apache Lucene.

%package queryparser
Group: Development/Java
Summary:      Lucene QueryParsers Module

%description queryparser
Lucene QueryParsers Module.

%package analyzers-smartcn
Group: Development/Java
Summary:      Smart Chinese Analyzer

%description analyzers-smartcn
Lucene Smart Chinese Analyzer.

%package analyzers-phonetic
Group: Development/Java
Summary:      Lucene Phonetic Filters

%description analyzers-phonetic
Provides phonetic encoding via Commons Codec.

%package analyzers-icu
Group: Development/Java
Summary:      Lucene ICU Analysis Components

%description analyzers-icu
Provides integration with ICU (International Components for Unicode) for
stronger Unicode and internationalization support.

%package analyzers-morfologik
Group: Development/Java
Summary:      Lucene Morfologik Polish Lemmatizer

%description analyzers-morfologik
A dictionary-driven lemmatizer for Polish (includes morphosyntactic
annotations).

%package analyzers-uima
Group: Development/Java
Summary:      Lucene UIMA Analysis Components

%description analyzers-uima
Lucene Integration with UIMA for extracting metadata from arbitrary (text)
fields and enrich document with features extracted from UIMA types (language,
sentences, concepts, named entities, etc.).

%package analyzers-kuromoji
Group: Development/Java
Summary:      Lucene Kuromoji Japanese Morphological Analyzer

%description analyzers-kuromoji
Lucene Kuromoji Japanese Morphological Analyzer.

%package analyzers-stempel
Group: Development/Java
Summary:      Lucene Stempel Analyzer

%description analyzers-stempel
Lucene Stempel Analyzer.


%package javadoc
Group: Development/Java
Summary:        Javadoc for Lucene
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
%{summary}.

%prep
%setup -q -n solr-%{version}

%patch0 -p1
%patch1 -p1

rm -rf solr

find -name "*.jar" -delete

mv lucene/*.txt .

sed -i -e "s|/Export-Package>|/Export-Package><_nouses>true</_nouses>|g" dev-tools/maven/pom.xml.template

# unresolvable test dep
%pom_remove_dep com.spatial4j:spatial4j::test lucene/spatial

# suggest provides spellchecker
%mvn_alias :%{oldname}-suggest :%{oldname}-spellchecker

# compatibility with existing packages
%mvn_alias :%{oldname}-analyzers-common :%{oldname}-analyzers

%mvn_package ":%{oldname}-analysis-modules-aggregator" %{oldname}-analysis
%mvn_package ":%{oldname}-analyzers-common" %{oldname}-analysis
%mvn_package ":{*}-aggregator" @1

%mvn_compat_version : 5 %{version}
#sed -i '/spatial4j/s,0\.4\.1,0.5.0,' lucene/ivy-versions.properties

sed -i '/spatial4j/s,rev=".*",rev="0.5",' lucene/spatial/ivy.xml lucene/benchmark/ivy.xml

%build
pushd %{oldname}
# generate dependencies
ant generate-maven-artifacts -Divy.mode=local -Dversion=%{version}

# fix source dir + move to expected place
for pom in `find build/poms/%{oldname} -name pom.xml`; do
    sed 's/\${module-path}/${basedir}/g' "$pom" > "${pom##build/poms/%{oldname}/}"
done
%pom_disable_module src/test core
%pom_disable_module src/test codecs

# test deps
%pom_add_dep org.antlr:antlr-runtime::test demo

popd

mv lucene/build/poms/pom.xml .

%pom_disable_module solr
%pom_remove_plugin -r :gmaven-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :forbiddenapis
%pom_remove_plugin -r :buildnumber-maven-plugin


# For some reason TestHtmlParser.testTurkish fails when building inside SCLs
%mvn_build -s -f

# Fix OSGi metadata in misc module
pushd lucene/misc/target
unzip lucene-misc-%{version}.jar META-INF/MANIFEST.MF
sed -i -e '1aRequire-Bundle: org.apache.lucene.core
' META-INF/MANIFEST.MF
jar ufm lucene-misc-%{version}.jar META-INF/MANIFEST.MF 2>&1 > /dev/null
popd

# analyzers-common needs versioned requires on package from core
# maven-bundle-plugin doesn't seem to recognize this case on F24
%if 0%{?fedora} == 24
pushd lucene/analysis/common/target
unzip lucene-analyzers-common-%{version}.jar META-INF/MANIFEST.MF
sed -i -e 's/org.apache.lucene.analysis,/org.apache.lucene.analysis;version="[5.5,6)",/' META-INF/MANIFEST.MF
jar ufm lucene-analyzers-common-%{version}.jar META-INF/MANIFEST.MF 2>&1 > /dev/null
popd
%endif

%install
%mvn_install


%if %{with bootstrap}
# Do not throw an exception on unresolvable artefact (dependency from itself)
sed -i -e 's,if unresolvable:,if False:,g' "$(ls /tmp/*_%{name}.%{version}.%{release} -t | head -n 1)"
%endif

# Use the same directory of the main package for subpackage licence and docs
#global _docdir_fmt %{oldname}

%files -f .mfiles-%{oldname}-core
%doc CHANGES.txt README.txt MIGRATE.txt
%license LICENSE.txt NOTICE.txt

%files parent -f .mfiles-%{oldname}-parent
%files solr-grandparent -f .mfiles-%{oldname}-solr-grandparent
%files benchmark -f .mfiles-%{oldname}-benchmark
%files backward-codecs -f .mfiles-%{oldname}-backward-codecs
%files replicator -f .mfiles-%{oldname}-replicator
%files grouping -f .mfiles-%{oldname}-grouping
%files highlighter -f .mfiles-%{oldname}-highlighter
%files misc -f .mfiles-%{oldname}-misc
%files test-framework -f .mfiles-%{oldname}-test-framework
%files memory -f .mfiles-%{oldname}-memory
%files expressions -f .mfiles-%{oldname}-expressions
%files demo -f .mfiles-%{oldname}-demo
%files classification -f .mfiles-%{oldname}-classification
%files join -f .mfiles-%{oldname}-join
%files suggest -f .mfiles-%{oldname}-suggest
%files facet -f .mfiles-%{oldname}-facet
%files analysis -f .mfiles-%{oldname}-analysis
%files sandbox -f .mfiles-%{oldname}-sandbox
%files queries -f .mfiles-%{oldname}-queries
%files spatial -f .mfiles-%{oldname}-spatial
%files spatial3d -f .mfiles-%{oldname}-spatial3d
%files codecs -f .mfiles-%{oldname}-codecs
%files queryparser -f .mfiles-%{oldname}-queryparser
%files analyzers-smartcn -f .mfiles-%{oldname}-analyzers-smartcn
%files analyzers-phonetic -f .mfiles-%{oldname}-analyzers-phonetic
%files analyzers-icu -f .mfiles-%{oldname}-analyzers-icu
%files analyzers-morfologik -f .mfiles-%{oldname}-analyzers-morfologik
%files analyzers-uima -f .mfiles-%{oldname}-analyzers-uima
%files analyzers-kuromoji -f .mfiles-%{oldname}-analyzers-kuromoji
%files analyzers-stempel -f .mfiles-%{oldname}-analyzers-stempel

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt

%changelog
* Wed Jun 19 2019 Igor Vlasenko <viy@altlinux.ru> 0:5.5.0-alt3_0jpp8
- build with spatial4j0.5.0

* Mon Jun 04 2018 Igor Vlasenko <viy@altlinux.ru> 0:5.5.0-alt2_0jpp8
- built with compat randomizedtesting

* Fri Apr 20 2018 Igor Vlasenko <viy@altlinux.ru> 0:5.5.0-alt1_0jpp8
- compat package lucene5 for hibernate-search

* Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 0:5.5.0-alt1_6jpp8
- new jpp release

* Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 0:5.5.0-alt1_4jpp8
- new fc release

* Tue Dec 06 2016 Igor Vlasenko <viy@altlinux.ru> 0:5.5.0-alt1_1jpp8
- new version

* Sun Feb 07 2016 Igor Vlasenko <viy@altlinux.ru> 0:5.3.0-alt1_1jpp8
- java8 mass update

* Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 0:3.6.2-alt1_3jpp7
- new release

* Fri Aug 01 2014 Igor Vlasenko <viy@altlinux.ru> 0:3.6.2-alt1_2jpp7
- new version

* Sat Jul 19 2014 Igor Vlasenko <viy@altlinux.ru> 0:3.6.0-alt1_11jpp7
- new release

* Fri Jul 11 2014 Igor Vlasenko <viy@altlinux.ru> 0:3.6.0-alt1_6jpp7
- new version

* Sat Sep 29 2012 Igor Vlasenko <viy@altlinux.ru> 0:3.6.0-alt1_5jpp7
- new version

* Thu Sep 29 2011 Igor Vlasenko <viy@altlinux.ru> 0:2.9.4-alt1_7jpp6
- update to new release by jppimport

* Thu Sep 08 2011 Igor Vlasenko <viy@altlinux.ru> 0:2.9.4-alt1_6jpp6
- update to new release by jppimport

* Thu Dec 02 2010 Igor Vlasenko <viy@altlinux.ru> 0:2.4.1-alt3_5jpp6
- rebuild without osgi provides

* Sat Oct 23 2010 Igor Vlasenko <viy@altlinux.ru> 0:2.4.1-alt2_5jpp6
- added pom

* Thu Apr 15 2010 Igor Vlasenko <viy@altlinux.ru> 0:2.4.1-alt2_1jpp5
- added provides for lucene2-demo

* Thu Apr 15 2010 Igor Vlasenko <viy@altlinux.ru> 0:2.4.1-alt1_1jpp5
- new version

* Tue Mar 17 2009 Igor Vlasenko <viy@altlinux.ru> 0:2.4.0-alt2_jvm5
- added maven poms, added Provides: lucene23

* Thu Jan 29 2009 Igor Vlasenko <viy@altlinux.ru> 0:2.4.0-alt1_jvm5
- Sisyphus upload; thanks to Alexey Morozov.

* Fri Jan 23 2009 Alexey Morozov <morozov@altlinux.org> 0:2.4.0-alt0.1
- updated to 2.4.0

* Fri Dec 12 2008 Igor Vlasenko <viy@altlinux.ru> 0:2.3.1-alt1_3.4jpp5
- updated to 2.3.1; added provides lucene22

* Tue Feb 12 2008 Igor Vlasenko <viy@altlinux.ru> 0:2.1.0-alt5jvm4.2
- renamed to lucene2 to avoid conflicts with lucene1

* Tue Nov 20 2007 Igor Vlasenko <viy@altlinux.ru> 0:2.1.0-alt4jvm4.2
- enabled check, disabled devel, added contrib

* Mon Nov 05 2007 Igor Vlasenko <viy@altlinux.ru> 2.1.0-alt3jvm4.2
- NMU: added -devel subpackage

* Tue Jul 17 2007 Igor Vlasenko <viy@altlinux.ru> 2.1.0-alt2
- NMU: partial jpackage compatibility added
- enabled demo (required for eclipse).
- demo is packaged according to jpackage.
- added source=1.4 and target=1.4

* Fri Mar 16 2007 Eugene Ostapets <eostapets@altlinux.ru> 2.1.0-alt1
- Update to 2.1.0 release

* Thu Nov 30 2006 Eugene Ostapets <eostapets@altlinux.ru> 2.0.0-alt1
- Update to 2.0.0 release

* Fri Mar 03 2006 Mikhail Zabaluev <mhz@altlinux.ru> 1.9.1-alt1
- Updated to 1.9.1
- Disabled tests (fail to build for some bogus reason)
- Disabled demo by default

* Wed Dec 08 2004 Mikhail Zabaluev <mhz@altlinux.ru> 1.4.3-alt1
- Updated to 1.4.3
- Spec cleanup for rpm-build-java

* Tue Jun 08 2004 Mikhail Zabaluev <mhz@altlinux.ru> 1.3-alt1
- New upstream release
- Disable debug for non-debug builds

* Tue Sep 09 2003 Mikhail Zabaluev <mhz@altlinux.ru> 1.2-alt1
- Released for ALT Linux

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14549 |21mr|lucene-7.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     jp_minimal

Summary:        High-performance, full-featured text search engine
Name:           lucene
Version:        7.7.0
Release:        2
Epoch:          0
License:        ASL 2.0
URL:            http://lucene.apache.org/
# solr source contains both lucene and dev-tools
Source0:        https://archive.apache.org/dist/lucene/solr/%{version}/solr-%{version}-src.tgz
Group:          Development/Java
Patch0:         0001-Disable-ivy-settings.patch
Patch1:         0002-Dependency-generation.patch

# io.sgr:s2-geometry-library-java is not present on Fedora
# This patch reverts these two commits:
#   https://github.com/apache/lucene-solr/commit/e3032dd3fcc28570c5f9d2dab4961b5b07555912
#   https://github.com/apache/lucene-solr/commit/e0d6465af94b6c6f7b8d570dee97c98de572c876
Patch2:         0003-Remove-dep-on-missing-google-geometry-library.patch

BuildRequires:  ant
BuildRequires:  ivy-local
BuildRequires:  maven-local
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
%if %{without jp_minimal}
BuildRequires:  mvn(com.carrotsearch.randomizedtesting:randomizedtesting-runner)
BuildRequires:  mvn(com.ibm.icu:icu4j)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.sourceforge.nekohtml:nekohtml)
BuildRequires:  mvn(org.antlr:antlr4-runtime)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.carrot2:morfologik-fsa)
BuildRequires:  mvn(org.carrot2:morfologik-polish)
BuildRequires:  mvn(org.carrot2:morfologik-stemming)
BuildRequires:  mvn(org.eclipse.jetty:jetty-continuation)
BuildRequires:  mvn(org.eclipse.jetty:jetty-http)
BuildRequires:  mvn(org.eclipse.jetty:jetty-io)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:  mvn(org.eclipse.jetty:jetty-util)
BuildRequires:  mvn(org.locationtech.spatial4j:spatial4j)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-commons)
BuildRequires:  mvn(xerces:xercesImpl)
%endif

Provides:       %{name}-core = %{epoch}:%{version}-%{release}

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Lucene is a high-performance, full-featured text search
engine library written entirely in Java. It is a technology suitable
for nearly any application that requires full-text search, especially
cross-platform.

%package analysis
Summary:      Lucene Common Analyzers
# Obsoletes added in F30
# This module was removed upstream and no replacement exists
Obsoletes:    %{name}-analyzers-uima < %{version}-%{release}

%description analysis
Lucene Common Analyzers.

%package analyzers-smartcn
Summary:      Smart Chinese Analyzer

%description analyzers-smartcn
Lucene Smart Chinese Analyzer.

%package grouping
Summary:      Lucene Grouping Module

%description grouping
Lucene Grouping Module.

%package highlighter
Summary:      Lucene Highlighter Module

%description highlighter
Lucene Highlighter Module.

%package join
Summary:      Lucene Join Module

%description join
Lucene Join Module.

%package memory
Summary:      Lucene Memory Module

%description memory
High-performance single-document index to compare against Query.

%package misc
Summary:      Miscellaneous Lucene extensions

%description misc
Miscellaneous Lucene extensions.

%package queries
Summary:      Lucene Queries Module

%description queries
Lucene Queries Module.

%package queryparser
Summary:      Lucene QueryParsers Module

%description queryparser
Lucene QueryParsers Module.

%package sandbox
Summary:      Lucene Sandbox Module

%description sandbox
Lucene Sandbox Module.

%if %{without jp_minimal}
%package parent
Summary:      Parent POM for Lucene

%description parent
Parent POM for Lucene.

%package solr-grandparent
Summary:      Lucene Solr grandparent POM

%description solr-grandparent
Lucene Solr grandparent POM.

%package backward-codecs
Summary:      Lucene Backward Codecs Module

%description backward-codecs
Codecs for older versions of Lucene.

%package benchmark
Summary:      Lucene Benchmarking Module

%description benchmark
Lucene Benchmarking Module.

%package replicator
Summary:      Lucene Replicator Module

%description replicator
Lucene Replicator Module.

%package test-framework
Summary:      Apache Lucene Java Test Framework

%description test-framework
Apache Lucene Java Test Framework.

%package expressions
Summary:      Lucene Expressions Module

%description expressions
Dynamically computed values to sort/facet/search on based on a pluggable
grammar.

%package demo
Summary:      Lucene Demo Module

%description demo
Demo for Apache Lucene Java.

%package classification
Summary:      Lucene Classification Module

%description classification
Lucene Classification Module.

%package suggest
Summary:      Lucene Suggest Module

%description suggest
Lucene Suggest Module.

%package facet
Summary:      Lucene Facets Module

%description facet
Package for Faceted Indexing and Search.

%package spatial
Summary:      Geospatial indexing APIs for Apache Lucene

%description spatial
Geospatial indexing APIs for Apache Lucene.

%package spatial-extras
Summary:      Spatial Strategies for Apache Lucene

%description spatial-extras
Spatial Strategies for Apache Lucene.

%package spatial3d
Summary:      Lucene Spatial 3D

%description spatial3d
Spatial shapes implemented using 3D planar geometry

%package codecs
Summary:      Codecs and postings formats for Apache Lucene

%description codecs
Codecs and postings formats for Apache Lucene.

%package analyzers-phonetic
Summary:      Lucene Phonetic Filters

%description analyzers-phonetic
Provides phonetic encoding via Commons Codec.

%package analyzers-icu
Summary:      Lucene ICU Analysis Components

%description analyzers-icu
Provides integration with ICU (International Components for Unicode) for
stronger Unicode and internationalization support.

%package analyzers-morfologik
Summary:      Lucene Morfologik Polish Lemmatizer

%description analyzers-morfologik
A dictionary-driven lemmatizer for Polish (includes morphosyntactic
annotations).

%package analyzers-nori
Summary:      An analyzer with morphological analysis for Korean

%description analyzers-nori
An analyzer with morphological analysis for Korean.

%package analyzers-kuromoji
Summary:      Lucene Kuromoji Japanese Morphological Analyzer

%description analyzers-kuromoji
Lucene Kuromoji Japanese Morphological Analyzer.

%package analyzers-stempel
Summary:      Lucene Stempel Analyzer

%description analyzers-stempel
Lucene Stempel Analyzer.

%endif # without jp_minimal

%package javadoc
Summary:        Javadoc for Lucene

%description javadoc
%{summary}.

%prep
%setup -q -n solr-%{version}

%patch0 -p1
%patch1 -p1
%patch2 -p1

rm -rf solr

find -name "*.jar" -delete

# don't generate uses clauses in osgi metadata
sed -i -e "/<Export-Package>/a<_nouses>true</_nouses>" dev-tools/maven/pom.xml.template

# make the target public
sed -i 's/-filter-pom-templates/filter-pom-templates/' lucene/common-build.xml

# suggest provides spellchecker
%mvn_alias :%{name}-suggest :%{name}-spellchecker

# compatibility with existing packages
%mvn_alias :%{name}-analyzers-common :%{name}-analyzers

%mvn_package ":%{name}-analysis-modules-aggregator" %{name}-analysis
%mvn_package ":%{name}-analyzers-common" %{name}-analysis
%mvn_package ":{*}-aggregator" @1

%build
pushd %{name}
find -maxdepth 2 -type d -exec mkdir -p '{}/lib' \;
# generate dependencies
ant -f common-build.xml filter-pom-templates -Divy.mode=local -Dversion=%{version} -Divy.available=true

# fix source dir + move to expected place
for pom in `find build/poms/%{name} -name pom.xml`; do
    sed 's/\${module-path}/${basedir}/g' "$pom" > "${pom##build/poms/%{name}/}"
done
%pom_disable_module src/test core
%pom_disable_module src/test codecs

# unresolvable test dep
%pom_remove_dep org.locationtech.spatial4j:spatial4j::test spatial-extras

# currently unavailable in Fedora
%pom_remove_dep ua.net.nlp:morfologik-ukrainian-search analysis/morfologik

# test deps
%pom_add_dep org.antlr:antlr-runtime::test demo

popd

mv lucene/build/poms/pom.xml .

# deal with split packages in core/misc/analysis modules by adding additional metadata and
# require-bundling the core bundle from misc
%pom_xpath_set "pom:Export-Package" "*;version=\"%{version}\""
%pom_add_plugin org.apache.felix:maven-bundle-plugin lucene/misc \
"<configuration><instructions>
<Require-Bundle>org.apache.lucene.core;bundle-version=\"%{version}\"</Require-Bundle>
<Export-Package>
 org.apache.lucene.document;version=\"%{version}\";misc=split;mandatory:=misc,
 org.apache.lucene.index;version=\"%{version}\";misc=split;mandatory:=misc,
 org.apache.lucene.search;version=\"%{version}\";misc=split;mandatory:=misc,
 org.apache.lucene.store;version=\"%{version}\";misc=split;mandatory:=misc,
 org.apache.lucene.util.fst;version=\"%{version}\";misc=split;mandatory:=misc,
 *;version=\"%{version}\"</Export-Package>
</instructions></configuration>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin lucene/analysis/common \
"<configuration><instructions>
<Require-Bundle>org.apache.lucene.core;bundle-version=\"%{version}\"</Require-Bundle>
<Export-Package>
 org.apache.lucene.analysis.standard;version=\"%{version}\";analysis=split;mandatory:=analysis,
 *;version=\"%{version}\"</Export-Package>
</instructions></configuration>"

%pom_disable_module solr
%pom_remove_plugin -r :gmaven-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :forbiddenapis
%pom_remove_plugin -r :buildnumber-maven-plugin

%if %{with jp_minimal}
pushd lucene
%pom_disable_module backward-codecs
%pom_disable_module codecs
%pom_disable_module test-framework
%pom_disable_module benchmark
%pom_disable_module classification
%pom_disable_module demo
%pom_disable_module expressions
%pom_disable_module facet
%pom_disable_module replicator
%pom_disable_module spatial
%pom_disable_module spatial-extras
%pom_disable_module spatial3d
%pom_disable_module suggest

%pom_disable_module icu analysis
%pom_disable_module kuromoji analysis
%pom_disable_module morfologik analysis
%pom_disable_module phonetic analysis
%pom_disable_module stempel analysis
%pom_disable_module nori analysis
popd

%mvn_package :lucene-parent __noinstall
%mvn_package :lucene-solr-grandparent __noinstall
%endif

# OpenNLP is not new enough in Fedora, always disable for now
pushd lucene
%pom_disable_module opennlp analysis
popd

# For some reason TestHtmlParser.testTurkish fails when building inside SCLs
%mvn_build -s -f

%install
%mvn_install

# Use the same directory of the main package for subpackage licence and docs
%global _docdir_fmt %{name}

%files -f .mfiles-%{name}-core
%doc lucene/CHANGES.txt lucene/README.txt
%doc lucene/MIGRATE.txt lucene/JRE_VERSION_MIGRATION.txt
%license lucene/LICENSE.txt lucene/NOTICE.txt

%files analysis -f .mfiles-%{name}-analysis
%files analyzers-smartcn -f .mfiles-%{name}-analyzers-smartcn
%files grouping -f .mfiles-%{name}-grouping
%files highlighter -f .mfiles-%{name}-highlighter
%files join -f .mfiles-%{name}-join
%files memory -f .mfiles-%{name}-memory
%files misc -f .mfiles-%{name}-misc
%files queries -f .mfiles-%{name}-queries
%files queryparser -f .mfiles-%{name}-queryparser
%files sandbox -f .mfiles-%{name}-sandbox
%if %{without jp_minimal}
%files parent -f .mfiles-%{name}-parent
%files solr-grandparent -f .mfiles-%{name}-solr-grandparent
%files benchmark -f .mfiles-%{name}-benchmark
%files backward-codecs -f .mfiles-%{name}-backward-codecs
%files replicator -f .mfiles-%{name}-replicator
%files test-framework -f .mfiles-%{name}-test-framework
%files expressions -f .mfiles-%{name}-expressions
%files demo -f .mfiles-%{name}-demo
%files classification -f .mfiles-%{name}-classification
%files suggest -f .mfiles-%{name}-suggest
%files facet -f .mfiles-%{name}-facet
%files spatial -f .mfiles-%{name}-spatial
%files spatial-extras -f .mfiles-%{name}-spatial-extras
%files spatial3d -f .mfiles-%{name}-spatial3d
%files codecs -f .mfiles-%{name}-codecs
%files analyzers-phonetic -f .mfiles-%{name}-analyzers-phonetic
%files analyzers-icu -f .mfiles-%{name}-analyzers-icu
%files analyzers-morfologik -f .mfiles-%{name}-analyzers-morfologik
%files analyzers-nori -f .mfiles-%{name}-analyzers-nori
%files analyzers-kuromoji -f .mfiles-%{name}-analyzers-kuromoji
%files analyzers-stempel -f .mfiles-%{name}-analyzers-stempel
%endif

%files javadoc -f .mfiles-javadoc
%license lucene/LICENSE.txt lucene/NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14550 |21mr|luit-1.1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: luit
Version: 1.1.1
Release: 9
Summary: Locale and ISO 2022 support for Unicode terminals
Group: Development/X11
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Patch0: luit-1.1.1-mdv-fix-CP866.patch
Patch1: luit-1.1.1-posix_openpt.patch
License: MIT

BuildRequires: pkgconfig(fontenc) >= 1.0.1
BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
Luit is a filter that can be run between an arbitrary application and a UTF-8
terminal emulator. It will convert application output from the locale's
encoding into UTF-8, and convert terminal input from UTF-8 into the locale's
encoding.

%prep
%setup -q -n %{name}-%{version}
%apply_patches

%build
%configure	--x-includes=%{_includedir} \
		--x-libraries=%{_libdir} \
		--with-localealiasfile=%{_datadir}/X11/locale/locale.dir

%make

%install
%makeinstall_std

%files
%{_bindir}/luit
%{_mandir}/man1/luit.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14551 |21mr|luksmeta-9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Utility for storing small metadata in the LUKSv1 header
Name:		luksmeta
Version:	9
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		https://github.com/latchset/luksmeta
Source0:	https://github.com/latchset/luksmeta/releases/download/v%{version}/%{name}-%{version}.tar.bz2
Patch0:		luksmeta-9-tests.patch
Patch1:		luksmeta-9-relax-layout-assumptions.patch
Patch2:		Define-log-callback-function-to-use-with-libcryptset.patch
BuildRequires:	asciidoc
BuildRequires:	cryptsetup
BuildRequires:	pkgconfig(libcryptsetup)
Requires:	%{libname} = %{EVRD}

%description
LUKSMeta is a command line utility for storing small portions of metadata in
the LUKSv1 header for use before unlocking the volume.

%files
%license COPYING
%{_bindir}/%{name}

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for storing small metadata in the LUKSv1 header
Group:		System/Libraries

%description -n %{libname}
LUKSMeta is a C library for storing small portions of metadata in the LUKSv1
header for use before unlocking the volume.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libluksmeta
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains development files for the LUKSMeta library.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14552 |21mr|luksunlock-0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dracutlibdir %{_prefix}/lib/dracut

Summary:	Decrypt system luks partition using tpm2
Name:		luksunlock
Version:	0.5
Release:	6
License:	GPLv2+
Group:		System/Configuration/Boot and Init
Url:		http://www.abf.io/import/luksunlock
Source0:	%{name}
Source1:	02-rosa-tpm2.conf
Source2:	%{name}.po
Source3:	справка.команда.%{name}
Requires:	coreutils
Requires:	util-linux
Requires:	procps-ng
Requires:	gawk
Requires:	dmsetup
Requires:	rosa-kernel-tools
Requires:	tpm2-abrmd
Requires:	%{_lib}tss2-tcti-device0
Requires:	( %{name}-systemd or %{name}-clevis )
Suggests:	%{name}-systemd
Requires:	util-linux
Requires:	cryptsetup
Requires:	dmsetup
Requires:	rosa-kernel-tools
BuildArch:	noarch
# to show help page after install
Recommends:	termhelper

%description
Decrypt system luks partition without enering passord using tpm2

%files
%{_sbindir}/luksunlock
%{_sbindir}/lukslock
%{_libexecdir}/luksunlock
%{_localedir}/ru/LC_MESSAGES/%{name}.mo
%{_datadir}/termhelper/ru/справка.команда.%{name}

%post
if [ $1 == 1 ] ; then
    [ -x /usr/bin/termhelper -a "_$LANG" == '_ru_RU.UTF-8' ] && /usr/bin/termhelper команда %{name}
fi
:

#---------------------------------------------------------------------------
%package clevis
Summary:	Decrypt system luks partition using clevis
Requires:	%{name} = %{EVRD}
Requires:	clevis
Requires:	clevis-luks
Requires:	clevis-dracut
Conflicts:	%{name}-systemd

%description clevis
Decrypt system luks partition using tpm2 with clevis framework

%files clevis

#----------------------------------------------------------------------------
%package systemd
Summary:	Decrypt system luks partition using systemd
Requires:	%{name} = %{EVRD}
Requires:	tpm2-tools
Requires:	dracut
Requires:	systemd
Requires: 	libtss2-esys.so.0%{_arch_tag_suffix}
Requires:	python3-pexpect
Conflicts:	%{name}-clevis

%description systemd
Decrypt system luks partition using tpm2 with systemd-cryptenroll

%files systemd
%{dracutlibdir}/dracut.conf.d/*.conf
%if %{mdvver} < 202310
    %{_libdir}/cryptsetup/libcryptsetup-token-systemd-tpm2.so
%endif
#----------------------------------------------------------------------------

%prep
# nothing to do

%build
# nothing to do

%install
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_libexecdir}
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
mkdir -p %{buildroot}%{_datadir}/termhelper/ru/

install -m 755 %{SOURCE0} %{buildroot}/%{_libexecdir}/
ln -s %{_libexecdir}/%{name} %{buildroot}/%{_sbindir}/%{name}
ln -s %{_libexecdir}/%{name} %{buildroot}/%{_sbindir}/lukslock
msgfmt -v %{SOURCE2} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{name}.mo
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/termhelper/ru/

mkdir -p %{buildroot}/%{dracutlibdir}/dracut.conf.d/
mkdir -p %{buildroot}/%{_libdir}/cryptsetup
install -m 644 %{SOURCE1} %{buildroot}/%{dracutlibdir}/dracut.conf.d/
#fix for wrong path to lib in systemd package
%if %{mdvver} < 202310
    ln -s ../../../lib64/cryptsetup/libcryptsetup-token-systemd-tpm2.so  %{buildroot}/%{_libdir}/cryptsetup/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14553 |21mr|lutok-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global somajor 3
%global libname %mklibname %{name} %{somajor}
%global devname %mklibname %{name} -d

Summary: Lightweight C++ API library for Lua
Name: lutok
Version: 0.4
Release: 2
License: BSD
Group: Development/Other
URL: http://code.google.com/p/lutok/
Source0: http://lutok.googlecode.com/files/lutok-%{version}.tar.gz
Source1: README.Fedora
Requires: lua
BuildRequires: libatf-c++-devel
BuildRequires: atf-sh-devel
BuildRequires: lua-devel

%define _testsdir %{_libexecdir}/lutok/tests

%description
Lutok provides thin C++ wrappers around the Lua C API to ease the
interaction between C++ and Lua.  These wrappers make intensive use of
RAII to prevent resource leakage, expose C++-friendly data types, report
errors by means of exceptions and ensure that the Lua stack is always
left untouched in the face of errors.  The library also provides a small
subset of miscellaneous utility functions built on top of the wrappers.

Lutok focuses on providing a clean and safe C++ interface; the drawback
is that it is not suitable for performance-critical environments.  In
order to implement error-safe C++ wrappers on top of a Lua C binary
library, Lutok adds several layers or abstraction and error checking
that go against the original spirit of the Lua C API and thus degrade
performance.

%prep
%setup -q

# Put the README.Fedora file in the top-level directory of the source tree so
# that the %doc call below can pick it up.
cp -p %{SOURCE1} README.Fedora

%build
# fix build on aarch64
autoreconf -vfi

%configure --docdir=%{_defaultdocdir}/lutok-doc-%{version} \
           --disable-static \
           --htmldir=%{_defaultdocdir}/lutok-doc-%{version}/html \
           --without-doxygen
make %{?_smp_mflags} testsdir=%{_testsdir}

%check
# In order to enable this, we need to add a BuildRequires on kyua-cli.  The
# problem is that kyua-cli depends on lutok.  Introducing a circular dependency
# for this minor benefit does not seem like the best move.  After all, we can
# always install lutok-tests later and run the tests post-install.
#make check testsdir=%{_testsdir}

%install
%make_install doc_DATA= testsdir=%{_testsdir}

# we don't want these
find %{buildroot} -name '*.la' -delete

%package -n %{libname}
Summary: Lightweight C++ API library for Lua
Group: System/Libraries

%description -n %{libname}
Lutok provides thin C++ wrappers around the Lua C API to ease the
interaction between C++ and Lua.  These wrappers make intensive use of
RAII to prevent resource leakage, expose C++-friendly data types, report
errors by means of exceptions and ensure that the Lua stack is always
left untouched in the face of errors.  The library also provides a small
subset of miscellaneous utility functions built on top of the wrappers.

Lutok focuses on providing a clean and safe C++ interface; the drawback
is that it is not suitable for performance-critical environments.  In
order to implement error-safe C++ wrappers on top of a Lua C binary
library, Lutok adds several layers or abstraction and error checking
that go against the original spirit of the Lua C API and thus degrade
performance.

%files -n %{libname}
%doc AUTHORS NEWS README COPYING
%{_libdir}/liblutok.so.%{somajor}
%{_libdir}/liblutok.so.%{somajor}.*

%package -n %{devname}
Summary: Libraries and header files for Lutok development
Group: Development/C++
Provides: %{name}-devel%{?_isa} = %{EVRD}
Provides: %{name}-devel = %{EVRD}
Requires: %{libname}%{?_isa} = %{EVRD}
Requires: lua-devel >= 5.2

%description -n %{devname}
Provides the libraries and header files to develop applications that
use the Lutok C++ API to Lua.

%files -n %{devname}
%{_includedir}/lutok
%{_libdir}/liblutok.so
%{_libdir}/pkgconfig/lutok.pc

%package doc
Summary: API documentation of the Lutok library and example programs
Group: Documentation
BuildArch: noarch

%description doc
Provides HTML documentation describing the API of the Lutok library
and a collection of sample source programs to demonstrate the use
of the library.

%files doc
%{_defaultdocdir}/lutok-doc-%{version}

%package tests
Summary: Run-time tests of the Lutok library
Group: Development/Tools
Requires: %{libname} = %{EVRD}
Requires: %{devname} = %{EVRD}

%description tests
This package installs the run-time tests for the Lutok library.
Please see the README.Fedora file in the documentation directory for further
details on how to run the installed tests.

%files tests
%doc README.Fedora
%{_testsdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14554 |21mr|lv2-1.18.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

Summary:	Audio Plugin Standard
Name:		lv2
Version:	1.18.10
Release:	1
# lv2specgen template.html is CC-AT-SA
License:	ISC
Group:		System/Libraries
Url:		http://lv2plug.in
Source0:	http://lv2plug.in/spec/lv2-%{version}.tar.xz
Source1:	lv2.sh.bz2
Source2:	lv2.csh.bz2
BuildRequires:	meson
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(gtk+-2.0)
# this package replaces lv2core
Provides:	lv2core = 6.0-4
Obsoletes:	lv2core < 6.0-4
Provides:	lv2-ui = 2.4-5
Obsoletes:	lv2-ui < 2.4-5

%description
LV2 is a standard for plugins and matching host applications, mainly targeted
at audio processing and generation.
There are a large number of open source and free software synthesis packages
in use or development at this time. This API ('LV2') attempts to give
programmers the ability to write simple 'plugin' audio processors in C/C++ and
link them dynamically ('plug') into a range of these packages ('hosts').
It should be possible for any host and any plugin to communicate completely
through this interface.
LV2 is a successor to LADSPA, created to address the limitations of LADSPA
which many hosts have outgrown.

%files
%doc COPYING NEWS README.md
%{_libdir}/%{name}/*/*.ttl
%{_libdir}/%{name}/*/*.so
%{_libdir}/%{name}/*/*.wav
%{_bindir}/lv2_validate
%attr(644,root,root) %{_sysconfdir}/profile.d/lv2*sh

#----------------------------------------------------------------------

%package devel
Summary:	API for the LV2 Audio Plugin Standard
Group:		Development/C
Requires:	%{name} = %{EVRD}
Provides:	lv2core-devel = 6.0-4
Obsoletes:	lv2core-devel < 6.0-4
Provides:	lv2-ui-devel = 2.4-5
Obsoletes:	lv2-ui-devel < 2.4-5

%description devel
This package contains the lv2.h header file and headers for all of the
LV2 specification extensions and bundles.
Definitive technical documentation on LV2 plug-ins for both the host
and plug-in is contained within copious comments within the lv2.h
header file.

%files devel
%{_includedir}/%{name}.h
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}core.pc

#----------------------------------------------------------------------

%prep
%autosetup -p1


%build
%meson
%meson_build

%install
%meson_install

# Install our stuff
install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
bzcat %{SOURCE1} > %{buildroot}%{_sysconfdir}/profile.d/lv2.sh
bzcat %{SOURCE2} > %{buildroot}%{_sysconfdir}/profile.d/lv2.csh

# For compatibility with old releases
ln -s lv2.pc %{buildroot}%{_libdir}/pkgconfig/lv2core.pc

# Remove not needed .h and .c files from /usr/lib/lv2
find %{buildroot}%{_libdir}/lv2/ -type f -name '*.[c,h]' -exec rm -f '{}' \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14555 |21mr|lvm2-2.03.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%bcond_without	lvmdbusd
%bcond_with	cluster
%bcond_without	dmeventd
%bcond_with	crosscompile

%define lvmversion	2.03.16
%define dmversion	1.02.185
%define dmmajor		1.02
%define cmdmajor	2.03
%define appmajor	2.2

%define dmlibname	%mklibname devmapper %{dmmajor}
%define dmdevname	%mklibname devmapper -d
%define event_libname	%mklibname devmapper-event %{dmmajor}
%define event_devname	%mklibname devmapper-event -d
%define cmdlibname	%mklibname lvm2cmd %{cmdmajor}
%define cmddevname	%mklibname lvm2cmd -d

#requirements for cluster
%define corosync_version 1.2.0
%define openais_version 1.1.1
%define cluster_version 3.0.6

%if %{with dmeventd}
%define dm_req %{event_libname}
%define dm_req_d %{event_devname}
%else
%define dm_req %{dmlibname}
%define dm_req_d %{dmdevname}
%endif

Summary:	Logical Volume Manager administration tools
Name:		lvm2
Version:	%{lvmversion}
Release:	2
License:	GPLv2 and LGPL2.1
Group:		System/Kernel and hardware
Url:		https://sourceware.org/lvm2/
Source0:	https://sourceware.org/pub/lvm2/releases/LVM2.%{lvmversion}.tgz
Patch0:		LVM2.2.02.98-alternatives.patch
#Patch1:		lvm2-2.03.10-static-compile.patch
#Patch5:		lvm2-2.02.119-preferred_names.patch
#Patch8:		LVM2.2.02.120-link-against-libpthread-and-libuuid.patch
#Patch103:	lvm2-2.02.122-fix-sbindir-path.patch

# temporary necessary for e2k
Source111:	lvm2.rpmlintrc

BuildRequires:	sed
BuildRequires:  autoconf-archive
BuildRequires:  intltool
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libsepol)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:  pkgconfig(systemd)
BuildRequires:  python3-devel
BuildRequires:  python3-dbus
BuildRequires:  python3-pyudev
BuildRequires:  systemd-units
BuildRequires:  thin-provisioning-tools
BuildRequires:  %mklibname aio -d -s
#BuildConflicts: device-mapper-devel < %{dmversion}

%if %{with dmeventd}
# install plugins as well
Requires:	%{cmdlibname} = %{lvmversion}-%{release}
%endif
Requires:	%{dm_req} >= %{dmversion}
Requires:	bash
Requires(preun):	systemd-units
Requires(postun):	systemd-units
Requires:	module-init-tools
Conflicts:	lvm
Conflicts:	lvm1

%description
LVM includes all of the support for handling read/write operations on
physical volumes (hard disks, RAID-Systems, magneto optical, etc.,
multiple devices (MD), see mdadm(8) or even loop devices, see losetup(8)),
creating volume groups (kind of virtual disks) from one or more physical
volumes and creating one or more logical volumes (kind of logical partitions)
in volume groups.

%files
%doc INSTALL README VERSION WHATS_NEW
/sbin/blkdeactivate
/sbin/fsadm
/sbin/lvchange
/sbin/lvconvert
/sbin/lvcreate
/sbin/lvdisplay
/sbin/lvextend
/sbin/lvm
/sbin/lvm2
/sbin/lvmconfig
/sbin/lvmdevices
/sbin/lvmdiskscan
/sbin/lvmdump
/sbin/lvmsadc
/sbin/lvmsar
/sbin/lvm_import_vdo
/sbin/lvreduce
/sbin/lvremove
/sbin/lvrename
/sbin/lvresize
/sbin/lvs
/sbin/lvscan
/sbin/pv*
/sbin/vg*
%dir %{_sysconfdir}/lvm
%dir %{_sysconfdir}/lvm/profile
%{_sysconfdir}/lvm/lvmlocal.conf
%{_sysconfdir}/lvm/profile/command_profile_template.profile
%{_sysconfdir}/lvm/profile/metadata_profile_template.profile
%{_sysconfdir}/lvm/profile/thin-generic.profile
%{_sysconfdir}/lvm/profile/thin-performance.profile
%{_sysconfdir}/lvm/profile/cache-mq.profile
%{_sysconfdir}/lvm/profile/cache-smq.profile
%{_sysconfdir}/lvm/profile/lvmdbusd.profile
%{_sysconfdir}/lvm/profile/vdo-small.profile
%config(noreplace) %{_sysconfdir}/lvm/lvm.conf
%attr(700,root,root) %dir %{_sysconfdir}/lvm/archive
%attr(700,root,root) %dir %{_sysconfdir}/lvm/backup
%attr(700,root,root) %dir %{_sysconfdir}/lvm/cache
%attr(600,root,root) %ghost %{_sysconfdir}/lvm/cache/.cache
%{_unitdir}/blk-availability.service
%{_unitdir}/lvm2-monitor.service
%{_tmpfilesdir}/%{name}.conf
%{_mandir}/man5/*
%{_mandir}/man7/*
%{_mandir}/man8/*
%{_udevrulesdir}/11-dm-lvm.rules
%{_udevrulesdir}/69-dm-lvm.rules

#----------------------------------------------------------------------------

%package -n	%{cmdlibname}
Summary:	LVM2 command line library
Group:		System/Kernel and hardware
Requires:	%{dm_req} >= %{dmversion}
# Avoid devel deps on library due to autoreq picking these plugins up as devel libs
%global __requires_exclude devel\\(libdevmapper
%global __develgen_exclude_path ^/%{_lib}/.*$

%description -n	%{cmdlibname}
The lvm2 command line library allows building programs that manage
lvm devices without invoking a separate program.

%files -n %{cmdlibname}
/%{_lib}/liblvm2cmd.so.%{cmdmajor}
%if %{with dmeventd}
%dir /%{_lib}/device-mapper
/%{_lib}/device-mapper/libdevmapper-event-lvm2mirror.so
/%{_lib}/device-mapper/libdevmapper-event-lvm2raid.so
/%{_lib}/device-mapper/libdevmapper-event-lvm2snapshot.so
/%{_lib}/device-mapper/libdevmapper-event-lvm2thin.so
/%{_lib}/device-mapper/libdevmapper-event-lvm2vdo.so
/%{_lib}/libdevmapper-event-lvm2.so.%{cmdmajor}
/%{_lib}/libdevmapper-event-lvm2mirror.so
/%{_lib}/libdevmapper-event-lvm2raid.so
/%{_lib}/libdevmapper-event-lvm2snapshot.so
/%{_lib}/libdevmapper-event-lvm2thin.so
/%{_lib}/libdevmapper-event-lvm2vdo.so
%endif

#----------------------------------------------------------------------------

%package -n	%{cmddevname}
Summary:	Development files for LVM2 command line library
Group:		System/Kernel and hardware
Requires:	%{cmdlibname} = %{lvmversion}-%{release}
Requires:	%{dm_req_d} = %{dmversion}-%{release}
Provides:	liblvm2cmd-devel = %{lvmversion}-%{release}

%description -n	%{cmddevname}
The lvm2 command line library allows building programs that manage
lvm devices without invoking a separate program.
This package contains the header files for building with lvm2cmd.

%files -n %{cmddevname}
%{_includedir}/lvm2cmd.h
%{_libdir}/liblvm2cmd.so

#----------------------------------------------------------------------------

%if %{with lvmdbusd}
%package -n	dbusd
Summary:        LVM2 D-Bus daemon
License:        GPLv2
Group:          System/Base
Requires:       lvm2 >= %{version}-%{release}
Requires:       dbus
Requires:       python3-dbus
Requires:       python3-pyudev

%description -n dbusd
Daemon for access to LVM2 functionality through a D-Bus interface.

%files -n dbusd
%defattr(555,root,root,-)
/sbin/lvmdbusd
%defattr(444,root,root,-)
%{_sysconfdir}/dbus-1/system.d/com.redhat.lvmdbus1.conf
%{_datadir}/dbus-1/system-services/com.redhat.lvmdbus1.service
%{_unitdir}/lvm2-lvmdbusd.service
%{python3_sitelib}/lvmdbusd/*
%{_mandir}/man8/lvmdbusd.8*
%endif

#----------------------------------------------------------------------------

%if %{with cluster}
%package -n	clvmd
Summary:	cluster LVM daemon
Group:		System/Kernel and hardware
BuildRequires:	cluster-devel >= %{cluster_version}
BuildRequires:	openais-devel >= %{openais_version}
BuildRequires:	corosync-devel >= %{corosync_version}
Requires:	cman >= %{cluster_version}
Requires:	%{dm_req} >= %{dmversion}

%description -n	clvmd
clvmd is the daemon that distributes LVM metadata updates around a
cluster. It must be running on all nodes in the cluster and will give
an error if a node in the cluster does not have this daemon running.

%files -n clvmd
/sbin/clvmd
/sbin/lvmconf
%attr(644,root,root) %{_mandir}/man8/clvmd.8*
%endif

#----------------------------------------------------------------------------

%if %{with cluster}
%package -n	cmirror
Summary:	Daemon for device-mapper-based clustered mirrors
Group:		System/Kernel and hardware
BuildRequires:	cluster-devel >= %{cluster_version}
BuildRequires:	openais-devel >= %{openais_version}
BuildRequires:	corosync-devel >= %{corosync_version}
Requires:	cman >= %{cluster_version}
Requires:	openais >= %{openais_version}
Requires:	corosync >= %{corosync_version}
Requires:	%{dmlibname} >= %{dmversion}

%description -n	cmirror
Daemon providing device-mapper-based mirrors in a shared-storage cluster.

%files -n cmirror
/sbin/cmirrord
%attr(644,root,root) %{_mandir}/man8/cmirrord.8*
%endif

#----------------------------------------------------------------------------

%package -n	dmsetup
Summary:	Device mapper setup tool
Version:	%{dmversion}
Group:		System/Kernel and hardware
Provides:	device-mapper = %{dmversion}-%{release}
%if %{with dmeventd}
Provides:	dmeventd = %{dmversion}-%{release}
%endif
Requires:	%{dm_req} = %{dmversion}-%{release}
BuildRequires:	pkgconfig(udev)
Requires:	udev

%description -n	dmsetup
Dmsetup manages logical devices that use the device-mapper driver.
Devices are created by loading a table that specifies a target for
each sector (512 bytes) in the logical device.

%files -n dmsetup
%doc INSTALL README VERSION_DM WHATS_NEW_DM
/sbin/dmsetup
/sbin/dmstats
%if %{with dmeventd}
/sbin/dmeventd
%endif
%{_unitdir}/dm-event.service
%{_unitdir}/dm-event.socket
%{_udevrulesdir}/10-dm.rules
%{_udevrulesdir}/13-dm-disk.rules
%{_udevrulesdir}/95-dm-notify.rules
%{_mandir}/man8/dmsetup.8*
%{_mandir}/man8/dmstats.8*
%{_mandir}/man8/dmeventd.8*

#----------------------------------------------------------------------------

%package -n	%{dmlibname}
Summary:	Device mapper library
Version:	%{dmversion}
Group:		System/Kernel and hardware
Provides:	device-mapper-libs = %{dmversion}-%{release}

%description -n	%{dmlibname}
The device-mapper driver enables the definition of new block
devices composed of ranges of sectors of existing devices.  This
can be used to define disk partitions - or logical volumes.

This package contains the shared libraries required for running
programs which use device-mapper.

%files -n %{dmlibname}
/%{_lib}/libdevmapper.so.%{dmmajor}*

#----------------------------------------------------------------------------

%package -n	%{dmdevname}
Summary:	Device mapper development library
Version:	%{dmversion}
Group:		Development/C
Provides:	device-mapper-devel = %{dmversion}-%{release}
Provides:	libdevmapper-devel = %{dmversion}-%{release}
Requires:	%{dmlibname} = %{dmversion}-%{release}
Requires:	pkgconfig
Conflicts:	device-mapper-devel < %{dmversion}-%{release}

%description -n	%{dmdevname}
The device-mapper driver enables the definition of new block
devices composed of ranges of sectors of existing devices.  This
can be used to define disk partitions - or logical volumes.

This package contains the header files and development libraries
for building programs which use device-mapper.

%files -n %{dmdevname}
%{_libdir}/libdevmapper.so
%{_includedir}/libdevmapper.h
%{_libdir}/pkgconfig/devmapper.pc

#----------------------------------------------------------------------------

%if %{with dmeventd}
%package -n	%{event_libname}
Summary:	Device mapper event library
Version:	%{dmversion}
Group:		System/Kernel and hardware
Provides:	device-mapper-event = %{dmversion}-%{release}
Provides:	libdevmapper-event = %{dmversion}-%{release}
Requires:	%{dmlibname} >= %{dmversion}

%description -n	%{event_libname}
The device-mapper-event library allows monitoring of active mapped devices.

This package contains the shared libraries required for running
programs which use device-mapper-event.

%files -n %{event_libname}
/%{_lib}/libdevmapper-event.so.*
%endif

#----------------------------------------------------------------------------

%if %{with dmeventd}
%package -n	%{event_devname}
Summary:	Device mapper event development library
Version:	%{dmversion}
Group:		Development/C
Provides:	device-mapper-event-devel = %{dmversion}-%{release}
Requires:	%{event_libname} = %{dmversion}-%{release}
Requires:	%{dmdevname} = %{dmversion}-%{release}
Conflicts:	device-mapper-event-devel < %{dmversion}-%{release}

%description -n	%{event_devname}
The device-mapper-event library allows monitoring of active mapped devices.

This package contains the header files and development libraries
for building programs which use device-mapper-event.

%files -n %{event_devname}
%{_includedir}/libdevmapper-event.h
%{_libdir}/libdevmapper-event.so
%{_libdir}/libdevmapper-event-lvm2.so
%{_libdir}/pkgconfig/devmapper-event.pc
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n LVM2.%{lvmversion}

%build
%config_update
%ifarch %e2k
echo "#!/bin/bash" > ./autoconf/config.sub
echo 'echo $@' >> ./autoconf/config.sub
%endif
autoreconf -fiv
%if %{with crosscompile}
export ac_cv_func_malloc_0_nonnull=yes
export ac_cv_func_realloc_0_nonnull=yes
%endif
%ifarch %arm
export ac_cv_func_malloc_0_nonnull=yes
%endif
datelvm=`awk -F '[.() ]*' '{printf "%s.%s.%s:%s\n", $1,$2,$3,$(NF-1)}' VERSION`
datedm=`awk -F '[.() ]*' '{printf "%s.%s.%s:%s\n", $1,$2,$3,$(NF-1)}' VERSION_DM`
if [ "${datelvm%:*}" != "%{lvmversion}" -o "${datedm%:*}" != "%{dmversion}" -o \
 "%{release}" = "1" -a "${datelvm#*:}" != "${datedm#*:}" ]; then
	echo "ERROR:	you should not be touching this package" 1>&2
	echo "	without full understanding of relationship between device-mapper" 1>&2
	echo "	and lvm2 versions" 1>&2
	exit 1
fi
%if %{with dmeventd}
%define _disable_ld_as_needed 1
%endif
export MODPROBE_CMD=/sbin/modprobe
export CONFIGURE_TOP="$PWD"

%configure \
	--sbindir=/sbin \
	--with-staticdir=%{_sbindir} \
	--libdir=/%{_lib} \
	--disable-static_link \
	--enable-readline \
	--enable-fsadm \
	--enable-pkgconfig \
	--enable-notify-dbus \
	--with-usrlibdir=%{_libdir} \
	--with-group= \
	--with-user= \
	--with-device-uid=0 \
	--with-device-gid=6 \
	--with-device-mode=0660 \
	--with-selinux \
	--enable-cmdlib \
%if %{with lvmdbusd}
        --enable-dbus-service \
        --enable-notify-dbus \
%endif
%if %{with cluster}
	--with-clvmd=cman,openais,corosync \
	--enable-cmirrord \
%else
	--with-cluster=none \
	--with-pool=none \
%endif
%if %{with dmeventd}
	--enable-dmeventd \
	--with-dmeventd-path=/sbin/dmeventd \
%endif
	--enable-udev_sync \
	--enable-udev_rules \
	--enable-udev-systemd-background-jobs \
	--enable-write_install \
	--with-udevdir=%{_udevrulesdir} \
	--with-systemdsystemunitdir=%{_unitdir}
%make

%install
echo "PYTHON_PREFIX = %{_prefix}" >> make.tmpl

%makeinstall_std
make install_system_dirs DESTDIR=%{buildroot}
make install_systemd_units DESTDIR=%{buildroot}
make install_tmpfiles_configuration DESTDIR=%{buildroot}

install -d %{buildroot}/etc/lvm/archive
install -d %{buildroot}/etc/lvm/backup
install -d %{buildroot}/etc/lvm/cache
touch %{buildroot}/etc/lvm/cache/.cache

%if %{with lvmdbusd}
sed -i -e '1d;2i#!/usr/bin/python3' %{buildroot}/sbin/lvmdbusd
%endif

%if %{with cluster}
install shared/scripts/clvmd_init_red_hat %{buildroot}%{_initrddir}/clvmd
install shared/scripts/cmirrord_init_red_hat %{buildroot}%{_initrddir}/cmirrord
install -m 0755 scripts/lvmconf.sh %{buildroot}/sbin/lvmconf
%endif

#hack permissions of libs
chmod u+w %{buildroot}/%{_lib}/*.so.* %{buildroot}/sbin/*
%if %{with cluster}
chmod u+w  %{buildroot}/sbin/*
%endif

#hack trick strip_and_check_elf_files
export LD_LIBRARY_PATH=%{buildroot}/%{_lib}:${LD_LIBRARY_PATH}

# fix permissions for bins
chmod 755 %{buildroot}/sbin/*

# compat symlink
( cd %{buildroot}/sbin && ln -s lvm lvm2 )

%post
%systemd_post blk-availability.service lvm2-monitor.service

%preun
%systemd_preun blk-availability.service lvm2-monitor.service

%if %{with cluster}
%post -n clvmd
%systemd_post clvmd
/sbin/lvmconf --lockinglibdir %{_libdir}

%preun -n clvmd
%systemd_preun clvmd
if [ "$1" = 0 ]; then
	/sbin/lvmconf --disable-cluster
fi

%post -n cmirror
%systemd_post cmirror

%preun -n cmirror
%systemd_preun cmirror
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14556 |21mr|lxc-5.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
### XXX This package was mostly copypasted from OpenMandriva
# when upgrading very old lxc v2 to lxc v4 in ROSA 2019.1 (urpmi -> dnf)
# https://github.com/OpenMandrivaAssociation/lxc
# TODO:
# - get rid of network scripts crap
# - try to get rid of dnsmasq
# - rename distro from OpenMandriva to ROSA
# - check if distro script requires fixing
# - check if python bindings from an older version are needed and remove them
# - check what to do with templates from older version

%global _disable_rebuild_configure 0
# The python module doesn't link to libpython
%global _disable_ld_no_undefined 1

%define major 1
%define libname %mklibname lxc %{major}
%define develname %mklibname lxc -d

Name:		lxc
Version:	5.0.2
Release:	1
Summary:	Linux Containers
Group:		System/Kernel and hardware
License:	LGPLv2
Epoch:		1
URL:		http://lxc.sourceforge.net
#Source0:	http://linuxcontainers.org/downloads/%{name}-%{version}.tar.gz
Source0:	https://github.com/lxc/lxc/archive/refs/tags/lxc-%{version}.tar.gz
Source1:	https://github.com/lxc/lxc-templates/archive/refs/heads/master.zip
Source7:	sysctl-rule
Source100:	lxc.rpmlintrc
BuildRequires:	docbook-utils
BuildRequires:	meson
BuildRequires:	kernel-headers
BuildRequires:	cap-devel
BuildRequires:	libcap-static-devel
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libsystemd)
Buildrequires:	docbook-dtd30-sgml
Buildrequires:	docbook2x
BuildRequires:	pkgconfig(bash-completion)
Requires:	rsync
# lxc-net
Requires:	iptables
Requires:	dnsmasq
# bridge
Requires:	bridge-utils
# needed for lxc-sshd
Recommends:	openssh-server

%description
The package "%{name}" provides the command lines to create and manage
containers.  It contains a full featured container with the isolation
/ virtualization of the pids, the ipc, the utsname, the mount points,
/proc, /sys, the network and it takes into account the control groups.
It is very light, flexible, and provides a set of tools around the
container like the monitoring with asynchronous events notification,
or the freeze of the container. This package is useful to create
Virtual Private Server, or to run isolated applications like bash or
sshd.

%files
%doc %{_docdir}/%{name}
%{_datadir}/%{name}/config/common.conf.d/README
#% {_sysconfdir}/default/%{name}
%{_bindir}/lxc-*
%{_sbindir}/init.lxc
%{_sbindir}/init.lxc.static
%dir %{_libexecdir}/lxc
%{_libexecdir}/lxc/lxc-*
%dir %{_libexecdir}/lxc/hooks
%{_libexecdir}/lxc/hooks/unmount-namespace
%{_sysconfdir}/sysconfig/lxc
%dir %{_datadir}/lxc
%dir %{_datadir}/lxc/config
%dir %{_datadir}/lxc/hooks
%dir %{_datadir}/lxc/templates
%dir %{_datadir}/lxc/selinux
%dir %{_datadir}/lxc/config/common.conf.d
%{_datadir}/lxc/templates/*
%{_datadir}/lxc/hooks/*
%{_datadir}/lxc/selinux/lxc.*
%{_datadir}/lxc/__pycache__
%{_libdir}/lxc/rootfs/README
%{_mandir}/man*/%{name}*
%{_mandir}/ja/man*/*
%{_datadir}/%{name}/config/*.seccomp
%{_datadir}/%{name}/config/*.conf
%{_datadir}/lxc/lxc-patch.py
%{_datadir}/bash-completion/completions/_lxc
/var/lib/%{name}
%{_datadir}/%{name}/%{name}.functions
%{_unitdir}/lxc-monitord.service
%{_unitdir}/lxc.service
%{_unitdir}/lxc-net.service
%{_sysconfdir}/sysctl.d/99-lxc-oom.conf
%{_sysconfdir}/lxc
%{_unitdir}/lxc@.service
%{_datadir}/bash-completion/completions/lxc*
%lang(ko) %{_mandir}/ko/*/*

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for LXC
Group:		System/Libraries

%description -n %{libname}
Library for the Linux Kernel Containers.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.*

#-----------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for LXC
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{develname}
Developement files for the Linux Kernel Containers.

%files -n %{develname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}.a
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------------

%prep
%setup -q -n lxc-lxc-%{version} -a 1
%apply_patches

# Some adaptation of OMV script
# TODO: name it as ROSA and test it properly
sed -i lxc-templates-*/templates/lxc-openmandriva.in \
	-e 's,openmandriva.org,rosalinux.ru,g' \
	-e 's,distro-release-repos,rosa-repos,g'

%build

%meson
%meson_build

pushd lxc-templates-*
./autogen.sh
%configure
%make_build
popd

%install
%meson_install
pushd lxc-templates-*
%make_install templatesdir=%{_datadir}/lxc/templates READMEdir=%{_libdir}/lxc/rootfs
popd

mkdir -p %{buildroot}/var/lib/%{name}
mkdir -p %{buildroot}%{_sysconfdir}/sysctl.d/
install %{SOURCE7} %{buildroot}%{_sysconfdir}/sysctl.d/99-lxc-oom.conf

# Fix up bogus pkgconfig files
sed -i -e 's,\${prefix}//,/,g' %{buildroot}%{_libdir}/pkgconfig/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14557 |21mr|lximage-qt-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define oname lximage-qt

Summary:	Image viewer and screenshot tool for the LXQt desktop
Name:		lximage-qt
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lximage-qt
Source0:	https://github.com/lxqt/lximage-qt/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source1:	lximage-qt-screenshot.desktop
Patch0:		lximage-qt-1.4.0-ts-ru-translate.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libfm-qt)
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xfixes)

%description
Image viewer and screenshot tool for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license COPYING
%{_appdatadir}/%{name}.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-screenshot.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/48x48/apps/%{name}.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

cp %{SOURCE1} %{buildroot}/%{_datadir}/applications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14558 |21mr|lxmenu-data-0.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Menu data files for LXDE
Name:		lxmenu-data
Version:	0.1.5
Release:	1
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://github.com/lxde/lxmenu-data
Source0:	https://github.com/lxde/lxmenu-data/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# From Fedora
Patch0:		lxmenu-data-0.1.1-menu.patch
BuildRequires:	glib-gettextize
BuildRequires:	intltool
BuildArch:	noarch

%description
This package provides files required to build freedesktop.org menu
spec-compliant desktop menus for LXDE.

The files are originally taken from gnome-menus, and some minor
modifications were made.

%files
%doc AUTHORS README TODO
%license COPYING
%{_datadir}/desktop-directories/lxde-*.directory
%config(noreplace) %{_sysconfdir}/xdg/menus/lxde-applications.menu

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
intltoolize
%configure
# Disable parallel build to avoid skipped translations
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14559 |21mr|lxqt-about-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	About application for the LXQt desktop
Name:		lxqt-about
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/Other
Url:		https://github.com/lxqt/lxqt-about
Source0:	https://github.com/lxqt/lxqt-about/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		lxqt-about-1.4.0-ts-ru-translation.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qmake5
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	qt5-linguist-tools
Conflicts:	lxqt-l10n < 0.14.0
Obsoletes:	lxqt-l10n < 0.14.0

%description
About application for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license COPYING
%{_bindir}/lxqt-about
%{_datadir}/applications/lxqt-about.desktop
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

desktop-file-edit --add-category=X-LXQt %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14560 |21mr|lxqt-admin-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Admin tools for the LXQt desktop
Name:		lxqt-admin
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-admin
Source0:	https://github.com/lxqt/lxqt-admin/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz 
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(polkit-qt5-1)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Admin tools for the LXQt desktop

%files
%doc AUTHORS CHANGELOG README.md
%license COPYING
%{_bindir}/%{name}-time
%{_bindir}/%{name}-user*
%{_datadir}/applications/%{name}-*.desktop
%{_datadir}/lxqt/translations/%{name}-*/%{name}-*_*.qm
%{_datadir}/polkit-1/actions/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake ..
%make

%install
%makeinstall_std -C build
sed -i "s/Categories=LXQT/Categories=X-LXQT/" %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14561 |21mr|lxqt-archiver-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%global __requires_exclude libfm-qt\\.so(.*)

Summary:	A simple & lightweight Qt file archiver
Name:		lxqt-archiver
Version:	0.9.0
Release:	1
License:	GPLv2
Group:		Archiving/Compression
Url:		https://github.com/lxqt/lxqt-archiver
Source0:	https://github.com/lxqt/lxqt-archiver/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		lxqt-archiver-0.7.0-discard-const-qualifier.patch
Patch2:		lxqt-archiver-0.1.0-desktop-ru-localization.patch
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libfm-qt)
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)

%description
This is only a front-end (a graphical interface) to archiving programs
like tar and zip.

%files
%doc AUTHORS README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14562 |21mr|lxqt-build-tools-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Various packaging tools and scripts for LXQt applications
Name:		lxqt-build-tools
Version:	0.13.0
Release:	1
License:	BSD
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-build-tools
Source0:	https://github.com/lxqt/lxqt-build-tools/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	git-core
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Core)

%description
Various packaging tools and scripts for LXQt applications.

%files
%doc AUTHORS CHANGELOG README.md
%license BSD-3-Clause
%{_bindir}/lxqt-transupdate
%{_datadir}/cmake/lxqt-build-tools/

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_qt5 \
	-DLXQT_ETC_XDG_DIR="%{_sysconfdir}/xdg"
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14563 |21mr|lxqt-config-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Config panel for the LXQt desktop
Name:		lxqt-config
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-config
Source0:	https://github.com/lxqt/lxqt-config/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	.gtkrc-2.0
Source2:	settings.ini
Source3:	lxqt-config.conf
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	lxqt-menu-data-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(kscreen2)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xdg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xorg-libinput)
BuildRequires:	pkgconfig(zlib)
Recommends:	%{name}-settings = %{EVRD}

%description
Config panel for the LXQt desktop.

%files
%{_bindir}/*
%{_datadir}/applications/lxqt-config*.desktop
%{_datadir}/lxqt/icons/*
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_datadir}/lxqt/translations/%{name}-*/%{name}-*.qm
%{_iconsdir}/hicolor/*/apps/*
%{_libdir}/lib*.so
%{_mandir}/man1/%{name}*1.xz

#----------------------------------------------------------------------------

%package settings
Summary:	Settings for LXQt
Group:		Graphical desktop/LXQt
Recommends:	breeze-gtk2-theme
Recommends:	breeze-gtk3-theme
Recommends:	rosa-icons-2021-lxqt
Recommends:	x11-data-cursor-themes

%description settings
Default settings for LXQt

%files settings
%dir %{_sysconfdir}/skel/.config/gtk-3.0
%dir %{_sysconfdir}/skel/.config/lxqt
%config(noreplace) %{_sysconfdir}/skel/.gtkrc-2.0
%config(noreplace) %{_sysconfdir}/skel/.config/gtk-3.0/settings.ini
%config(noreplace) %{_sysconfdir}/skel/.config/lxqt/lxqt-config.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
#use c++17 for new kscreen 5.27.x
%cmake -DCMAKE_CXX_STANDARD=17
%make_build

%install
%make_install -C build
# cursor library is installed in lxqt-config subfolder
mv %{buildroot}%{_libdir}/%{name}/* %{buildroot}%{_libdir}/
rm -rf %{buildroot}%{_libdir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/skel/.config/gtk-3.0
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/skel/
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/skel/.config/gtk-3.0/

mkdir -p %{buildroot}%{_sysconfdir}/skel/.config/lxqt
cp %{SOURCE3} %{buildroot}%{_sysconfdir}/skel/.config/lxqt/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14564 |21mr|lxqt-globalkeys-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname lxqt-globalkeys %{major}
%define devname %mklibname lxqt-globalkeys -d
%define uiname %mklibname lxqt-globalkeys-ui %{major}
%define uidevname %mklibname lxqt-globalkeys-ui -d

Summary:	Global keys config module for LXQt
Name:		lxqt-globalkeys
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-globalkeys
Source0:	https://github.com/lxqt/lxqt-globalkeys/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		lxqt-globalkeys-1.0.0-rosa-shortcuts.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(x11)
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Conflicts:	lxqt-common < 0.12.0

%description
Global keys config module for LXQt.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/*
%{_datadir}/applications/*.desktop
%config(noreplace) %{_datadir}/lxqt/globalkeyshortcuts.conf
%{_datadir}/lxqt/translations/lxqt-config-globalkeyshortcuts/*.qm
%{_sysconfdir}/xdg/autostart/*desktop

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The LXQt globalkeys library
Group:		System/Libraries

%description -n %{libname}
The LXQt globalkeys library.

%files -n %{libname}
%doc README.md
%{_libdir}/liblxqt-globalkeys.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{uiname}
Summary:	The LXQt globalkeys UI library
Group:		System/Libraries

%description -n %{uiname}
The LXQt globalkeys UI library.

%files -n %{uiname}
%doc README.md
%{_libdir}/liblxqt-globalkeys-ui.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the LXQt globalkeys library
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for the LXQt globalkeys library.

%files -n %{devname}
%doc README.md
%{_libdir}/liblxqt-globalkeys.so
%{_includedir}/lxqt-globalkeys
%{_libdir}/pkgconfig/lxqt-globalkeys.pc
%{_datadir}/cmake/lxqt-globalkeys

#----------------------------------------------------------------------------

%package -n %{uidevname}
Summary:	Development files for the LXQt globalkeys UI library
Group:		Development/C++
Requires:	%{uiname} = %{EVRD}

%description -n %{uidevname}
Development files for the LXQt globalkeys UI library.

%files -n %{uidevname}
%doc README.md
%{_includedir}/lxqt-globalkeys-ui
%{_libdir}/liblxqt-globalkeys-ui.so
%{_libdir}/pkgconfig/lxqt-globalkeys-ui.pc
%{_datadir}/cmake/lxqt-globalkeys-ui

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

# Drop double slash from pc files
sed -i 's!//usr!/usr!' %{buildroot}%{_libdir}/pkgconfig/*pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14565 |21mr|lxqt-kcm-integration-0.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Windowmanager integration for LXQt
Name:		lxqt-kcm-integration
Version:	0.0.1
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-kcm-integration
Source0:	https://github.com/lxqt/lxqt-kcm-integration/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	lxqt-build-tools

%description
KCM integration into LXQt.

%files
%doc CHANGELOG COPYING README.md
%{_datadir}/applications/lxqt-kcmshell5-*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

for FILE in %{buildroot}%{_datadir}/applications/*.desktop; do
	desktop-file-edit --remove-category=LXQt --add-category=X-LXQt $FILE; done
		

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14566 |21mr|lxqt-menu-data-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Menu data files for LXQt
Name:		lxqt-menu-data
Version:	1.4.1
Release:	1
License:	LGPLv2.1
Group:		Graphical desktop/Other
Url:		https://github.com/lxde/lxmenu-data
Source0:	https://github.com/lxqt/lxqt-menu-data/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildArch:	noarch

%description
This package provides files required to build freedesktop.org menu
spec-compliant desktop menus for LXQt.

%files
%doc README.md
%license LICENSE
%config(noreplace) %{_sysconfdir}/xdg/menus/lxqt-*.menu
%{_datadir}/desktop-directories/lxqt-*.directory

#------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description  devel
Development files for %{name}.

%files  devel
%{_datadir}/cmake/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14567 |21mr|lxqt-notificationd-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Notification daemon for the LXQt desktop
Name:		lxqt-notificationd
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-notificationd
Source0:	https://github.com/lxqt/lxqt-notificationd/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Notification daemon for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/lxqt-notificationd
%{_bindir}/lxqt-config-notificationd
%{_datadir}/applications/lxqt-config-notificationd.desktop
%{_datadir}/lxqt/translations/lxqt-config-notificationd/*.qm
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_sysconfdir}/xdg/autostart/lxqt-notifications.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14568 |21mr|lxqt-openssh-askpass-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenSSH askpass application for the LXQt desktop
Name:		lxqt-openssh-askpass
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/Other
Url:		https://github.com/lxqt/lxqt-openssh-askpass
Source0:	https://github.com/lxqt/lxqt-openssh-askpass/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Help)

%description
OpenSSH askpass application for the LXQt desktop.

%files
%{_bindir}/%{name}
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14569 |21mr|lxqt-panel-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Launcher panel for the LXQt desktop
Name:		lxqt-panel
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-panel
Source0:	https://github.com/lxqt/lxqt-panel/archive/%{version}.tar.gz?/%{name}-%{version}.tar.xz
Source1:	plugin-tray-0.17.1_ru.tar.gz
Patch0:		lxqt-panel-1.1.0-rosa-settings.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	icu-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	lxqt-menu-data-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbusmenu-qt5)
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libstatgrab)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(lxqt-globalkeys)
BuildRequires:	pkgconfig(lxqt-globalkeys-ui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xdg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(sysstat-qt5)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-event)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtst)
# Use for localization
Requires:	lxqt-menu-data
Conflicts:	lxqt-common < 0.12
Conflicts:	lxqt-l10n < 0.14.0

%description
Launcher panel for the LXQt desktop.plugin-taskbar

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/lxqt-panel
%{_datadir}/lxqt/lxqt-panel
%{_datadir}/lxqt/panel.conf
%{_datadir}/lxqt/translations/%{name}/*/*.qm
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_datadir}/lxqt/panel/qeyes-types/
%{_libdir}/lxqt-panel/*.so
%{_mandir}/man1/*
%{_sysconfdir}/xdg/autostart/*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for the LXQt panel
Group:		Development/KDE and Qt

%description devel
Development files for the LXQt panel.

%files devel
%license LICENSE
%{_includedir}/lxqt

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd plugin-tray/translations
tar -xvzf %{SOURCE1}
popd

%build
export CXXFLAGS="%{optflags} -I/usr/include/dbusmenu-qt5"
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14570 |21mr|lxqt-policykit-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LXQt PolicyKit agent
Name:		lxqt-policykit
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-policykit
Source0:	https://github.com/lxqt/lxqt-policykit/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		lxqt-policykit-1.1.0-label-translate.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	polkit-1-devel
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(polkit-qt5-1)
BuildRequires:	pkgconfig(Qt5Widgets)
Conflicts:	lxqt-common < 0.12

%description
LXQt PolicyKit agent.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/lxqt-policykit-agent
%{_datadir}/lxqt/translations/%{name}-agent/%{name}-agent_*.qm
%{_mandir}/man1/%{name}-agent.1.xz
%{_sysconfdir}/xdg/autostart/%{name}-agent.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14571 |21mr|lxqt-powermanagement-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Power management module for LXQt
Name:		lxqt-powermanagement
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-powermanagement
Source0:	https://github.com/lxqt/lxqt-powermanagement/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		lxqt-powermanagement-1.3.0-ts-ru-translate.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5solid-devel
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(lxqt-globalkeys-ui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11-xcb)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-dpms)
BuildRequires:	pkgconfig(xcb-screensaver)
Conflicts:	lxqt-common < 0.12.0

%description
Power management module for LXQt.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/lxqt-config-powermanagement
%{_bindir}/%{name}
%{_datadir}/applications/lxqt-config-powermanagement.desktop
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_datadir}/lxqt/translations/lxqt-config-powermanagement/*.qm
%{_iconsdir}/*/*/*/laptop-lid.*
%{_sysconfdir}/xdg/autostart/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14572 |21mr|lxqt-qtplugin-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt5 platform theme plugin for the LXQt desktop
Name:		lxqt-qtplugin
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-qtplugin
Source0:	https://github.com/lxqt/lxqt-qtplugin/archive/%{version}.tar.gz?/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(dbusmenu-qt5)
BuildRequires:	pkgconfig(libfm-qt)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5XdgIconLoader)

%description
LXQt system integration plugin for Qt. With this plugin, all Qt-based programs
can adopt settings of LXQt, such as the icon theme.

#----------------------------------------------------------------------------

%package -n qt5-platformtheme-lxqt
Summary:	Qt5 platform theme plugin for the LXQt desktop
Group:		Graphical desktop/LXQt
Conflicts:	lxqt-qtplugin < 0.9.0-3
Obsoletes:	lxqt-qtplugin < 0.9.0-3

%description -n qt5-platformtheme-lxqt
LXQt system integration plugin for Qt5. With this plugin, all Qt-based programs
can adopt settings of LXQt, such as the icon theme.

%files -n qt5-platformtheme-lxqt
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_libdir}/qt5/plugins/platformthemes/libqtlxqt.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CXXFLAGS="%{optflags} -I/usr/include/dbusmenu-qt5"
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14573 |21mr|lxqt-runner-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Launcher runner for the LXQt desktop
Name:		lxqt-runner
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-runner
Source0:	https://github.com/lxqt/lxqt-runner/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(lxqt-globalkeys)
BuildRequires:	pkgconfig(lxqt-globalkeys-ui)
BuildRequires:	pkgconfig(muparser)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
Conflicts:	lxqt-common < 0.12

%description
Launcher runner for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/lxqt-runner
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_mandir}/man1/%{name}.1.xz
%{_sysconfdir}/xdg/autostart/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1
#invalid argument
sed -i '/$(LIBMENUCACHE_MINIMUM_VERSION}/d' CMakeLists.txt

%build
%cmake -DUSE_MENU_CACHE=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14574 |21mr|lxqt-session-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Session manager for the LXQt desktop
Name:		lxqt-session
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-session
Source0:	https://github.com/lxqt/lxqt-session/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	rc.xml
Patch0:		lxqt-session-0.17.1-fix_translate_exit.patch
Patch1:		lxqt-session-1.1.1-rosa-settings.patch
Patch2:		lxqt-session-1.4.0-desktop.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	xdg-user-dirs
BuildRequires:	kf5windowsystem-devel
BuildRequires:	qtxdg-tools-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libprocps)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(x11)
Requires:	qtxdg-tools
Requires:	xdg-utils
Requires:	xsettingsd

%description
Session manager for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/lxqt-session
%{_bindir}/lxqt-config-session
%{_bindir}/lxqt-leave
%{_bindir}/startlxqt
%{_datadir}/applications/*.desktop
%{_datadir}/xsessions/*
%{_datadir}/lxqt/*
%{_mandir}/man?/*
%config(noreplace) %{_sysconfdir}/skel/.config/openbox/
%{_sysconfdir}/xdg/autostart/*desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build
	
mkdir -p %{buildroot}%{_sysconfdir}/skel/.config/openbox
cp %{SOURCE1} %{buildroot}%{_sysconfdir}/skel/.config/openbox

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14575 |21mr|lxqt-sudo-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sudo for the LXQt desktop
Name:		lxqt-sudo
Version:	1.4.0
Release:	1
License:	GPL
Group:		Graphical desktop/Other
Url:		https://github.com/lxqt/lxqt-sudo
Source0:	https://github.com/lxqt/lxqt-sudo/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	qt5-linguist-tools

%description
Execute a command as privileged user in LXQt

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/*
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm
%{_mandir}/*man?/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14576 |21mr|lxqt-themes-1.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LXQt desktop themes
Name:		lxqt-themes
Version:	1.3.0
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt-themes
Source0:	https://github.com/lxqt/lxqt-themes/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	rosa.svg
Source2:	Rosa
Patch0:		lxqt-themes-1.2.0-KDE-Plasma-theme.patch
BuildRequires:	cmake
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
Requires:	rosa-wallpapers-2021
BuildArch:	noarch

%description
Common files for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license COPYING
%{_datadir}/lxqt/themes
%{_datadir}/lxqt/graphics
%{_datadir}/lxqt/palettes
%{_datadir}/lxqt/wallpapers
%{_iconsdir}/hicolor/scalable/places/start-here-lxqt.svg
%{_iconsdir}/hicolor/scalable/apps/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp -f %{SOURCE1} graphics/helix.svg
cp %{SOURCE2} palettes
for i in $(ls themes |grep -v CMakeLists\.txt); do
	ln -sf ../../graphics/helix.svg themes/$i/rosa.svg
	ln -sf ../../../wallpapers/ROSA-light-default.svg themes/$i/default.svg
done
for i in {ambiance,Arch-Colors,dark,frost,kvantum,Leech}; do
	ln -sf ../../../wallpapers/ROSA-dark-default.svg themes/$i/default.svg
done

sed -i "s/(.*mainmenu.svg)/(rosa.svg)/" themes/*/lxqt-panel.qss
sed -i "s,wallpapers/1/file=.*,wallpapers/1/file=default.svg," themes/*/wallpaper.cfg

# For default use
cp -rf themes/{,_}KDE-Plasma

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14577 |21mr|lxqt-wallet-3.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %(echo %{version} |cut -d. -f1,2).0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define oname lxqt_wallet

Summary:	Create a kwallet like functionality for LXQt
Name:		lxqt-wallet
Version:	3.2.1
Release:	2
License:	BSD
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/lxqt_wallet
Source0:	https://github.com/lxqt/lxqt_wallet/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(lxqt)
Requires:	%{libname} = %{EVRD}

%description
This project seeks to give a functionality for secure storage
of information that can be presented in key-values pair like
user names-passwords pairs.
Currently the project can store the information in KDE's kwallet,
GNOME's secret service or in an internal system that use libgcrypt
as its cryptographic backend.
The internal secure storage system allows the functionality to
be provided without dependencies on KDE or GNOME libraries.
This project is designed to be used by other projects simply by
adding the source folder in the build system and start using it.

%files
%doc changelog LICENSE README.md
%{_bindir}/%{oname}-cli
%{_datadir}/lxqt/translations/%{name}/%{name}_*.qm

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
%{name} backend library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{name}.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc LICENSE
%{_includedir}/lxqt/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake ..
%make

%install
%makeinstall_std -C build

# Drop double slash from pc files
sed -i 's!//usr!/usr!' %{buildroot}%{_libdir}/pkgconfig/*pc

rm -rf %{buildroot}%{_prefix}/lib/debug

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14578 |21mr|lynx-2.8.9-2.rel1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rel 1

Summary:	Text based browser for the world wide web
Name:		lynx
Version:	2.8.9
Release:	2.rel%{rel}
License:	GPLv2+
Group:		Networking/WWW
Url:		http://lynx.isc.org
Source0:	http://invisible-mirror.net/archives/lynx/tarballs/%{name}%{version}rel.%{rel}.tar.bz2
Patch0:		lynx-2.8.9-adapt-to-modern-file-localizations.patch
Patch1:		lynx-2.8.9-default-config.patch
Patch2:		lynx2-8-6-fix-ugly-color.patch
Patch10:	lynx2-8-7-tmp_dir.patch
Patch11:	lynx2-8-6-don-t-accept-command-line-args-to-telnet.patch
Patch12:	CVE-2021-38165.patch
BuildRequires:	gettext
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Provides:	webclient

%description
This a terminal based WWW browser. While it does not make any attempt
at displaying graphics, it has good support for HTML text formatting,
forms, and tables.

This version includes support for SSL encryption.

WARNING: In some countries, it is illegal to export this package. In some
countries, it may even be illegal to use it.

%files -f lynx.lang
%doc README
%config(noreplace,missingok) %{_sysconfdir}/lynx-site.cfg
%config(noreplace) %{_sysconfdir}/lynx.cfg
%config(noreplace) %{_sysconfdir}/lynx.lss
%{_mandir}/*/*
%{_bindir}/*
%{_datadir}/lynx_help

#----------------------------------------------------------------------------

%prep
%autosetup  -p1 -n %{name}%{version}rel.%{rel}

perl -pi -e 's,^#LOCALE_CHARSET:.*,LOCALE_CHARSET:TRUE,' lynx.cfg

%build
debian_options=`cat << DEBIAN
	--enable-warnings
	--enable-8bit-toupper
	--enable-externs
	--enable-cgi-links
	--enable-persistent-cookies --enable-nls
	--enable-prettysrc --enable-source-cache
	--enable-charset-choice
	--enable-default-colors
	--enable-ipv6
	--enable-nested-tables --enable-read-eta
	--with-zlib
DEBIAN`
# removed --enable-exec-links --enable-exec-scripts,
# it goes together with LOCAL_EXECUTION_LINKS_* in lynx.cfg

redhat_options=`cat << REDHAT
	--with-screen=ncursesw 
	--enable-internal-links
	--enable-libjs
	--enable-scrollbar
	--enable-file-upload
	--enable-locale-charset
	--with-ssl
	--enable-addrlist-page
	--enable-justify-elts
REDHAT`

other_options=`cat << OTHER
	--enable-color-style
	--enable-nsl-fork
OTHER`

# (cf INSTALLATION file for more about the options)
# --with-included-gettext  is the default
# --enable-kbd-layout not useful enough
# --enable-cjk not needed for CJK and may go away in a future release

%configure --libdir=/usr/share/lynx $debian_options $redhat_options $other_options
%make

%install
%makeinstall_std install-help

install -d %{buildroot}%{_sysconfdir}
cat >%{buildroot}%{_sysconfdir}/lynx-site.cfg <<EOF
# Place any local lynx configuration options (proxies etc.) here.
EOF

%find_lang lynx

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14579 |21mr|lyx-2.3.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	A word processor for the Desktop Environment
Name:		lyx
Version:	2.3.6.1
Release:	2
License:	GPLv2+
Group:		Office
Url:		http://www.lyx.org/
Source0:	ftp://ftp.lyx.org/pub/lyx/stable/2.3.x/%{name}-%{version}.tar.xz
# workaround/fix cases of: #!/usr/bin/env python
# https://bugzilla.redhat.com/show_bug.cgi?id=1649919
Patch0: lyx-2.3.6-python3.patch
BuildRequires:	bc
BuildRequires:	gettext
BuildRequires:	ghostscript
BuildRequires:	groff-for-man
BuildRequires:	imagemagick
BuildRequires:	sgml-tools
BuildRequires:	tetex-dvips
BuildRequires:	tetex-latex
BuildRequires:	texinfo
BuildRequires:	boost-devel
BuildRequires:	magic-devel
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel

BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(xpm)
Requires:	texlive
Requires:	texlive-scheme-full
Requires:	fonts-ttf-latex
Requires:	xdg-utils

%description
LyX is a modern approach of writing documents with a computer which breaks
with the tradition of the obsolete typewriter concept. It is designed for
people who want a professional output with a minimum of time effort, without
becoming specialists in typesetting. Compared to common word processors LyX
will increase the productivity a lot, since most of the typesetting will be
done by the computer, not the author. With LyX the author can concentrate on
the contents of his writing, since the computer will take care of the look.

%files -f %{name}.lang
%doc README ANNOUNCE
%{_bindir}/%{name}
%{_bindir}/lyxclient
%{_bindir}/tex2lyx
%{_datadir}/applications/lyx.desktop
%{_datadir}/texmf/tex/latex/lyx
%{_datadir}/lyx/__pycache__
%{_datadir}/lyx/lyx2lyx/__pycache__
%{_datadir}/lyx/scripts/__pycache__
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/*

%post
## Fix the TeX file hash
texhash
## Before configuring lyx for the local system
## PATH needs to be imported
if [ -f /etc/profile ]; then
    . /etc/profile
fi
## Now configure LyX
cd %{_datadir}/lyx
./configure.py > /dev/null

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake_qt5 \
 -G"Unix Makefiles"  \
 -DLYX_EXTERNAL_BOOST=ON \
 -DLYX_ENCHANT=ON \
 -DLYX_RELEASE=OFF \
 -DLYX_PACKAGE_SUFFIX=OFF \
 -DLYX_PROGRAM_SUFFIX=OFF


%make
pwd
cp -af ../po/* po/

%install
%make_install -C build

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/lyx.desktop << EOF
[Desktop Entry]
Name=LyX
Comment=TeX document processor - especially good at scientific documents
Comment[ru]=Научный текстовый редактор и процессор документов, основанный TeX
Exec=%{_bindir}/lyx
Icon=lyx
Terminal=false
Type=Application
Categories=Qt;Office;WordProcessor;X-MandrivaLinux-CrossDesktop;
MimeType=application/x-lyx;
EOF

## icons
mkdir -p %{buildroot}/%{_liconsdir}
convert -size 48x48 development/Win32/packaging/icons/lyx_32x32.png %{buildroot}/%{_liconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_iconsdir}
cp development/Win32/packaging/icons/lyx_32x32.png %{buildroot}/%{_iconsdir}/%{name}.png
mkdir -p %{buildroot}/%{_miconsdir}
convert -size 16x16 development/Win32/packaging/icons/lyx_32x32.png %{buildroot}/%{_miconsdir}/%{name}.png

## Set up the lyx-specific class files where TeX can see then
TEXMF=%{_datadir}/texmf
mkdir -p %{buildroot}${TEXMF}/tex/latex
cp -r %{buildroot}%{_datadir}/lyx/tex %{buildroot}${TEXMF}/tex/latex/lyx
chmod +x %{buildroot}%{_datadir}/lyx/configure.py
rm -f %{buildroot}%{_bindir}/listerrors

%find_lang %{name}

find %{buildroot}%{_datadir}/%{name} -type f | sed -e "s@%{buildroot}@@g" \
	-e "s@%{_datadir}/%{name}/doc/\(..\)_@%lang(\1) %{_datadir}/%{name}/doc/\1_@g" \
	-e "s@\(%{_datadir}/%{name}/configure.py\)\$@%attr(755,root,root) \1@g" \
	-e "s@\(%{_datadir}/%{name}/scripts/\)@%attr(755,root,root) \1@g" \
	-e "s@\(%{_datadir}/%{name}/lyx2lyx/\)@%attr(755,root,root) \1@g" \
	>> %{name}.lang
find %{buildroot}%{_datadir}/%{name} -type d | sed -e "s@%{buildroot}@%dir @g" >> %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14580 |21mr|lz4-1.9.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define api 4
%define libname %mklibname lz %{api} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	Extremely fast compression algorithm
Name:		lz4
Version:	1.9.4
Release:	2
License:	GPLv2+ and BSD
Group:		Archiving/Compression
Url:		http://www.lz4.org/
Source0:	https://github.com/lz4/lz4/archive/v%{version}.tar.gz

%description
LZ4 is an extremely fast loss-less compression algorithm, providing compression
speed at 400 MB/s per core, scalable with multi-core CPU. It also features
an extremely fast decoder, with speed in multiple GB/s per core, typically
reaching RAM speed limits on multi-core systems.

%files
%doc NEWS
%{_bindir}/lz4
%{_bindir}/lz4c
%{_bindir}/lz4cat
%{_bindir}/unlz4
%{_mandir}/man1/*lz4*.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lz4 library
Group:		Development/C

%description -n %{libname}
This package contains the liblz4 library.

%files -n %{libname}
%{_libdir}/liblz4.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library for lz4
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the header(.h) and library(.so) files required to build
applications using liblz4 library.

%files -n %{devname}
%doc lib/LICENSE
%{_includedir}/*.h
%{_libdir}/liblz4.so
%{_libdir}/pkgconfig/liblz4.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development library for lz4
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains the static library files to statically link against the
liblz4 library.

%files -n %{sdevname}
%{_libdir}/liblz4.a

#----------------------------------------------------------------------------

%prep
%setup -q
echo '#!/bin/sh' > ./configure
chmod +x ./configure

for i in $(grep -rl "\-m32");do sed -i 's!-m32!!g' $i;done

%build
%setup_compile_flags
%make_build CC=%{__cc} programs all VERBOSE=1

%install
%make_install PREFIX=%{_prefix} LIBDIR=%{_libdir} CC=%{__cc} LDFLAGS="%{ldflags}" mandir="%{_mandir}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14581 |21mr|lz4-java-1.3.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty debuginfo
%global debug_package %nil

%global build_opts -Doffline=true -Divy.mode=local -Divysettings.xml=/etc/ivy/ivysettings.xml -Divy.revision=%{version}

Name:          lz4-java
Version:       1.3.0
Release:       12
Summary:       LZ4 compression for Java
# GPL: src/xxhash/bench.c
# src/lz4/programs
# BSD: src/xxhash/xxhash.c src/xxhash/xxhash.h
# src/lz4
License:       ASL 2.0 and (BSD and GPLv2+)
Group:         Development/Java
URL:           https://github.com/jpountz/lz4-java
Source0:       https://github.com/jpountz/lz4-java/archive/%{version}.tar.gz

# Disable maven-ant-tasks and old aqute-bnd (1.50.x) support
# Add support for system mvel2
# Fix doclint/encoding in javadoc task
Patch0:        lz4-java-1.3.0-build.patch
# Use randomizedtesting <= 2.1.3
Patch1:        lz4-java-1.3.0-junit_Assert.patch

# Build tools
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: aqute-bnd
BuildRequires: cpptasks
BuildRequires: gcc
BuildRequires: ivy-local
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: mvel
BuildRequires: objectweb-asm
BuildRequires: randomizedtesting-junit4-ant
# Other missing build deps
BuildRequires: bea-stax-api
BuildRequires: xerces-j2
BuildRequires: apache-parent
# https://github.com/jpountz/lz4-java/issues/74
# lz4 >= r128 is incompatible with lz4-java apparently
# due to differences in the framing implementation
Provides:      bundled(lz4) = r122
# FPC ticket Bundled Library Exception
# https://fedorahosted.org/fpc/ticket/603
Provides:      bundled(libxxhash) = r37

%description
LZ4 compression for Java, based on Yann Collet's work.
This library provides access to two compression methods
that both generate a valid LZ4 stream:

* fast scan (LZ4):
    ° low memory footprint (~ 16 KB),
    ° very fast (fast scan with skipping heuristics in case the
      input looks incompressible),
    ° reasonable compression ratio (depending on the
      redundancy of the input).
* high compression (LZ4 HC):
    ° medium memory footprint (~ 256 KB),
    ° rather slow (~ 10 times slower than LZ4),
    ° good compression ratio (depending on the size and
      the redundancy of the input).

The streams produced by those 2 compression algorithms use the
same compression format, are very fast to decompress and can be
decompressed by the same decompressor instance.

%package javadoc
Summary:       Javadoc for %{name}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
# Cleanup
find -name '*.dylib' -print -delete
find -name '*.so' -print -delete

%patch0 -p1
%patch1 -p1

cp -p src/xxhash/LICENSE LICENSE.xxhash
cp -p src/lz4/LICENSE lz4_LICENSE

# Fix OSGi manifest entries
echo "Export-Package: net.jpountz.*,!linux.*" >> lz4.bnd
sed -i '/packages.version/d' lz4.bnd

%build

ant %build_opts -Divy.pom.version=%{version} jar docs makepom

# bunlde task use old bnd wrap configuration, is not usable
bnd wrap -p lz4.bnd -o dist/lz4-%{version}.jar --version %{version} dist/lz4.jar

%install
%mvn_file net.jpountz.lz4:lz4 lz4
%mvn_artifact dist/lz4-%{version}.pom dist/lz4-%{version}.jar
%mvn_install -J build/docs

%ifnarch %{arm} aarch64 ppc64
# FIXME - tests fail on aarch64 for unknown reason.
# On armhfp tests are skipped due to poor JVM performance ("Execution
# time total: 3 hours 37 minutes 14 seconds" ... waste of time)
%check
ant %build_opts test
%endif

%files -f .mfiles
%doc CHANGES.md README.md
%license LICENSE.txt LICENSE.xxhash lz4_LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14582 |21mr|lzip-1.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lossless file compressor based on the LZMA algorithm
Name:		lzip
Version:	1.23
Release:	1
License:	GPLv3+
Group:		Archiving/Compression
Url:		http://www.nongnu.org/lzip/lzip.html
Source0:	http://nongnu.askapache.com/lzip/%{name}-%{version}.tar.gz

%description
Lzip is a lossless file compressor based on the LZMA (Lempel-Ziv-Markov
chain-Algorithm) algorithm. The high compression of LZMA comes from
combining two basic, well-proven compression ideas: sliding dictionaries
(i.e. LZ77/78), and markov models (i.e. the thing used by every
compression algorithm that uses a range encoder or similar order-0
entropy coder as its last stage) with segregation of contexts according
to what the bits are used for.

Lzip is not a replacement for gzip or bzip2, but a complement; which
one is best to use depends on user's needs. Gzip is the fastest and most
widely used. Bzip2 compresses better than gzip but is slower, both
compressing and decompressing. Lzip decompresses almost as fast as gzip
and compresses better than bzip2, but requires more memory and time
during compression. These features make lzip well suited for software
distribution and data archival.

%files
%doc AUTHORS COPYING NEWS README ChangeLog
%{_bindir}/%{name}
%{_infodir}/%{name}.info*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	CXXFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}"
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14583 |21mr|lzma-4.43-41
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%define oldlzmaver 4.32.7
%define major 0
%define libname %mklibname lzmadec %{major}
%define devname %mklibname lzmadec -d

Summary:	LZMA utils
Name:		lzma
Version:	4.43
Release:	41
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://tukaani.org/lzma/
Source0:	http://tukaani.org/lzma/lzma-%{oldlzmaver}.tar.lzma
Source1:	http://ovh.dl.sourceforge.net/sourceforge/sevenzip/lzma443.tar.bz2
Source3:	sqlzma.h
# (blino) modified for 443, from sqlzma1-449.patch:
#   * adapted to lzma443 dist structure: s,/C/Compress/Lzma/,/C/7zip/Compress/LZMA_C/,; s,/CPP/7zip/Compress/LZMA_Alone/,/C/7zip/Compress/LZMA_Alone/,
#   * use sqlzma.mk makefiles for 443 (from from sqlzma1-443.patch)
#   * remove NCoderPropID::kNumThreads in comp.cc, it is invalid since we don't build LZMAEncoder.cpp with COMPRESS_MF_MT multithread support
Patch3:		lzma-4.32.4-sqlzma.patch
Patch4:		lzma-4.43-add-missing-header.patch
Patch5:		lzma-4.43-quiet.patch
Patch6:		lzma-4.43-update-version.patch
Patch7:		lzma-4.43-fix-fast-compression.patch
Patch8:		lzma-4.43-add-missing-gethandle.patch
Patch9:		lzma-4.32.4-text-tune.patch
# 4.32.2 has changes to sdk that we replace with newer, we apply these to the new
Patch12:	lzma-4.32.2-sdk-changes.patch
Patch16:	lzma-4.32.7-format_not_a_string_literal_and_no_format_arguments.diff
# Fix tests (accept -rw-r--r--.) when SELinux is enabled
Patch20:	lzma-4.32.7-acl-tests.patch
BuildRequires:	diffutils
BuildRequires:	dos2unix
# for squashfs-lzma library
BuildRequires:	pkgconfig(zlib)

%description
LZMA provides very high compression ratio and fast decompression. The
core of the LZMA utils is Igor Pavlov's LZMA SDK containing the actual
LZMA encoder/decoder. LZMA utils add a few scripts which provide
gzip-like command line interface and a couple of other LZMA related
tools. Also provides:

- Average compression ratio 30% better than that of gzip and 15%
  better than that of bzip2.

- Decompression speed is only little slower than that of gzip, being
  two to five times faster than bzip2.

- In fast mode, compresses faster than bzip2 with a comparable
  compression ratio.

- Achieving the best compression ratios takes four to even twelve
  times longer than with bzip2. However. this doesn't affect
  decompressing speed.

- Very similar command line interface than what gzip and bzip2 have.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for decoding LZMA compression
License:	LGPLv2.1+
Group:		System/Libraries
Provides:	%{_lib}%{name}%{major} = %{EVRD}

%description -n %{libname}
Libraries for decoding LZMA compression.

%files -n %{libname}
%{_libdir}/liblzmadec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel libraries & headers for liblzmadec
License:	LGPLv2.1+
Group:		Development/C
Provides:	liblzmadec-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Devel libraries & headers for liblzmadec.

%files -n %{devname}
%doc *.txt
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	Kernel modules for decoding LZMA compression
License:	GPLv2+
Group:		System/Kernel and hardware
Requires(post,preun):	dkms

%description -n dkms-%{name}
Kernel modules for decoding LZMA compression.

%files -n dkms-%{name}
/usr/src/%{name}-%{version}-%{release}

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}
/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release}
/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release}
:

%preun -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all
:

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{oldlzmaver} -a1
%patch3 -p1 -b .sqlzma
cp %{SOURCE3} .
dos2unix *.txt

# ugly syncing with latest sdk
mv src/sdk src/sdk.old
cp -r C src/sdk
for i in `find src/sdk.old -name Makefile.\*`; do
	cp $i `echo $i|sed -e 's#sdk.old#sdk#g'`;
done

find src/sdk -name makefile|xargs rm -f

%patch4 -p1 -b .config_h
%patch5 -p1 -b .quiet
%patch6 -p0 -b .version
%patch7 -p0 -b .fast
%patch8 -p0 -b .gethandle
%patch9 -p1 -b .text
%patch12 -p1 -b .4.32.2
%patch16 -p1 -b .format_not_a_string_literal_and_no_format_arguments

%if %{with selinux}
%patch20 -p1 -b .acl
%endif

pushd C/7zip/Compress/LZMA_C
cp %{SOURCE3} kmod/
cp uncomp.c LzmaDecode.{c,h} LzmaTypes.h kmod/
perl -pi -e 's,^#include "\.\./(Lzma.*)",#include "$1",' kmod/*.{c,h}
cat > kmod/dkms.conf <<EOF
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION[0]="/kernel/lib/%{name}"
DEST_MODULE_LOCATION[1]="/kernel/lib/%{name}"
BUILT_MODULE_NAME[0]="sqlzma"
BUILT_MODULE_NAME[1]="unlzma"
AUTOINSTALL=yes
EOF
popd

%build
CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -O3" \
CXXFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -O3" \
%configure
%make_build
%make_build CFLAGS="%{optflags} -c -Wall -pedantic -D _LZMA_PROB32  -DNDEBUG -include pthread.h -I../../../.." -C C/7zip/Compress/LZMA_C -f sqlzma.mk Sqlzma=../../../..
%make CFLAGS="%{optflags} -c -I ../../../" -C C/7zip/Compress/LZMA_Alone -f sqlzma.mk Sqlzma=../../../..

%install
%make_install

install C/7zip/Compress/LZMA_*/*.a %{buildroot}%{_libdir}

mkdir -p %{buildroot}/usr/src/%{name}-%{version}-%{release}/
tar cf - -C C/7zip/Compress/LZMA_C/kmod . | tar xf - -C %{buildroot}/usr/src/%{name}-%{version}-%{release}/

rm -rf %{buildroot}{%{_bindir},%{_mandir}}

%check
%ifnarch %{armx} e2kv4
make check VERBOSE=yes
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14584 |21mr|lzma-java-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          lzma-java
Version:       1.3
Release:       7
Summary:       LZMA library for Java
# Source files without license headers https://github.com/jponge/lzma-java/issues/13
# Public Domain: ./src/main/java/lzma/sdk/*  ./src/test/java/lzma/*
License:       ASL 2.0 and Public Domain
URL:           http://jponge.github.io/lzma-java/
Source0:       https://github.com/jponge/lzma-java/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
# ./src/main/java/lzma/ http://www.7-zip.org/sdk.html
Provides:      bundled(lzma-sdk-java) = 16.02
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This library is based on the Java LZMA SDK by Igor Pavlov.
It brings many improvements, including Java conventions and
a Java I/O streaming API.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-release-plugin

%mvn_file com.github.jponge:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14585 |21mr|lzop-1.04-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LZO fast file compressor
Name:		lzop
Version:	1.04
Release:	2
License:	GPLv2+
Group:		Archiving/Compression
Url:		http://www.oberhumer.com/opensource/lzop/
Source0:	http://www.lzop.org/download/%{name}-%{version}.tar.gz
BuildRequires:	liblzo-devel

%description
lzop is a file compressor similar to gzip. Its main advantages over gzip
are much higher compression and decompression speed at the cost
of compression ratio.

lzop was designed with the following goals in mind:
  1) speed (both compression and decompression)
  2) reasonable drop-in compatibility to gzip
  3) portability

%files
%doc %{_docdir}/%{name}
%{_bindir}/lzop
%{_mandir}/man1/lzop.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CPPFLAGS="-D_FILE_OFFSET_BITS=64 -I%{_includedir}/lzo"
%configure
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14586 |21mr|m17n-lib-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define libcore %mklibname %{name}-core %{major}
%define libflt %mklibname %{name}-flt %{major}
%define libgui %mklibname %{name}-gui %{major}
%define devname %mklibname -d %{name}

Summary:	Multilingual text processing library
Name:		m17n-lib
Version:	1.8.0
Release:	1
License:	LGPLv2+
Group:		System/Internationalization
Url:		http://www.m17n.org/m17n-lib/index.html
Source0:	http://savannah.c3sl.ufpr.br//m17n/m17n-lib-%{version}.tar.gz

BuildRequires:	gd-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(anthy) >= 6300d
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(libotf)
BuildRequires:	pkgconfig(libthai)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(m17n-db)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
# NOTE:	medit and mdump require this font otherwise you get a SIGFPE
# because the font is not found, thus generating a tab_width=0 in
# layout_glyph_string() and then a division-by-zero.
# --> the bug is rather in the library and should be handled there.
Requires:	fonts-ttf-freefont
Requires:	libotf
Requires:	m17n-db

%description
The m17n library is a multilingual text processing library for the C
language.

%files
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/m17n-conv
%{_bindir}/m17n-date
%{_bindir}/m17n-dump
%{_bindir}/m17n-edit
%{_bindir}/m17n-view
%{_libdir}/m17n/*/*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The m17n library
Group:		System/Internationalization

%description -n %{libname}
m17n library.

%files -n %{libname}
%{_libdir}/libm17n.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcore}
Summary:	The m17n library
Group:		System/Internationalization
Conflicts:	%{_lib}m17n-lib0 < 1.6.4-2

%description -n %{libcore}
m17n-core library.

%files -n %{libcore}
%{_libdir}/libm17n-core.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libflt}
Summary:	The m17n library
Group:		System/Internationalization
Conflicts:	%{_lib}m17n-lib0 < 1.6.4-2

%description -n %{libflt}
m17n-flt library.

%files -n %{libflt}
%{_libdir}/libm17n-flt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libgui}
Summary:	The m17n library
Group:		System/Internationalization
Conflicts:	%{_lib}m17n-lib0 < 1.6.4-2

%description -n %{libgui}
m17n-gui library.

%files -n %{libgui}
%{_libdir}/libm17n-gui.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers of m17n for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcore} = %{EVRD}
Requires:	%{libflt} = %{EVRD}
Requires:	%{libgui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers of %{name} for development.

%files -n %{devname}
#%%{_bindir}/m17n-config
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
# -j8 broken as of 1.6.4
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14587 |21mr|m4-1.4.18-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GNU macro processor
Name:		m4
Version:	1.4.18
Release:	4
License:	GPLv3+
Group:		Development/Tools
Url:		http://www.gnu.org/software/m4/
Source0:	ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.xz
Patch0:		m4-1.4.18-glibc228.patch
BuildRequires:	libsigsegv-devel
# texinfo is needed due to using sed in %%build
# gettext-devel is for autoreconf
BuildRequires:	texinfo gettext-devel help2man

%description
A GNU implementation of the traditional UNIX macro processor.  M4 is
useful for writing text files which can be logically parsed, and is used
by many programs as part of their build process.  M4 has built-in
functions for including files, running shell commands, doing arithmetic,
etc.  The autoconf program needs m4 for generating configure scripts, but
not for running configure scripts.

m4 is most likely needed if you want to compile or develop software.

%files
%doc NEWS README BACKLOG THANKS ChangeLog
%{_bindir}/%{name}
%{_infodir}/*
%{_mandir}/man1*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export gl_cv_func_strtod_works=no
%configure \
	--without-included-regex \
	--with-libsigsegv-prefix=%{_prefix}

%make_build

%install
%make_install infodir=%{_datadir}/info

%check
%define Werror_cflags %{nil}
make check CFLAGS="%{optflags}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14588 |21mr|mac-robber-1.02-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           mac-robber
Version:        1.02
Release:        3
Summary:        Tool to create a timeline of file activity for mounted file systems
Group:          File tools
License:        GPLv2+
URL:            http://sourceforge.net/projects/mac-robber/
Source0:        http://downloads.sourceforge.net/mac-robber/mac-robber-%{version}.tar.gz

%description
mac-robber is a digital forensics and incident response tool that can be used
with The Sleuth Kit to create a timeline of file activity for mounted
file systems.


%prep
%setup -q

%build
%make GCC_OPT="%{optflags}"

%install
mkdir -p %{buildroot}%{_bindir}
install -pm 0755 mac-robber %{buildroot}%{_bindir}

%files
%doc CHANGES COPYING README
%{_bindir}/mac-robber

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14589 |21mr|mad-0.15.1b-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname libmad
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	High-quality MPEG Audio Decoder
Name:		mad
Version:	0.15.1b
Release:	29
License:	GPLv2+
Group:		Sound
Url:		http://www.underbit.com/products/mad/
Source0:	http://prdownloads.sourceforge.net/mad/%{oname}-%{version}.tar.bz2
#Create the same header on multilibs arches
Patch0:		libmad-0.15.1b-multiarch.patch
Patch1:		libmad-0.15.1b-ppc.patch
#https://bugs.launchpad.net/ubuntu/+source/libmad/+bug/534287
Patch2:		Provide-Thumb-2-alternative-code-for-MAD_F_MLN.diff
#https://bugs.launchpad.net/ubuntu/+source/libmad/+bug/513734
Patch3:		libmad.thumb.diff
Patch4:		https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libmad/files/libmad-0.15.1b-cflags.patch
Patch5:		https://gitweb.gentoo.org/repo/gentoo.git/plain/media-libs/libmad/files/libmad-0.15.1b-cflags-O2.patch
Patch6:		contrib_src_mad_check-bitstream-length--mod2.patch
# CVE-2017-837[2-4]
Patch7:		frame_lenght2.patch
# CVE-2017-11552
Patch8:		cve-2017-11552-length-check2.patch
Patch9:		cve-2017-11552-md_size.diff

%description
MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
and the MPEG-2  extension to Lower Sampling Frequencies, as well as the
so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
and Layer III a.k.a. MP3) are fully implemented.

MAD does not yet support MPEG-2 multichannel audio (although it should 
be backward compatible with such streams) nor does it currently support AAC.

MAD has the following special features:
* 24-bit PCM output
* 100% fixed-point (integer) computation
* completely new implementation based on the ISO/IEC standards.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	High-quality MPEG Audio Decoder
Group:		System/Libraries

%description -n %{libname}
MAD is a high-quality MPEG audio decoder. It currently supports MPEG-1
and the MPEG-2  extension to Lower Sampling Frequencies, as well as the
so-called MPEG 2.5 format. All three audio layers (Layer I, Layer II,
and Layer III a.k.a. MP3) are fully implemented.

MAD does not yet support MPEG-2 multichannel audio (although it should
be backward compatible with such streams) nor does it currently support AAC.

MAD has the following special features:
* 24-bit PCM output
* 100% fixed-point (integer) computation
* completely new implementation based on the ISO/IEC standards

%files -n %{libname}
%doc COPYING
%{_libdir}/libmad.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(zlib)
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n	%{devname}
This package includes the header files and libraries necessary for developing
programs using the %{name} library.
If you are going to develop programs which will use the %{name} library
you should install this.

%files -n %{devname}
%doc COPY* README TODO CHANGES CREDITS
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
#Only relevant on multilibs arches
%ifarch %{ix86} %{x86_64} ppc ppc64
%patch0 -p1 -b .multiarch
%endif
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1


rm -f configure
touch NEWS AUTHORS ChangeLog

# Create an additional pkgconfig file
%{__cat} << EOF > mad.pc
prefix=%{_prefix}
exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}

Name: mad
Description: MPEG Audio Decoder
Requires:
Version: %{version}
Libs: -L%{_libdir} -lmad -lm
Cflags: -I%{_includedir}
EOF


%build
autoreconf -vfis
%configure \
	--disable-static \
	--enable-accuracy \
%if 0%{?__isa_bits} == 64
	--enable-fpm=64bit \
%endif
	--disable-dependency-tracking
%make_build


%install
%make_install
install -D -p -m 0644 mad.pc %{buildroot}%{_libdir}/pkgconfig/mad.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14590 |21mr|madwifi-source-0.9.3.3-11.r3114
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name madwifi-source
%define short_name madwifi

%define version 0.9.3.3
%define snaprev r3114
%define snapdate 20080104
%define rel 11
%if %{snapdate}
%define distname madwifi-ng-%{snaprev}-%{snapdate}
%define release %mkrel %{rel}.%{snaprev}
%else
%define distname %{short_name}-%{version}
%define release %mkrel %{rel}
%endif

Summary: Madwifi drivers source code
Name: %{name}
Version: %{version}
Release: %{release}
# to run in BUILD tree of madwifi package:
# tar cjf madwifi-r3114-20080104-source.tar.bz2 madwifi-ng-r3114-20080104/net80211/*.h madwifi-ng-r3114-20080104/include/*.h
Source0: %{distname}-source.tar.bz2
License: GPL
Group: Development/Kernel
Url: http://madwifi.org/
BuildArch: noarch


%description
This package contains parts of the madwifi drivers source code.

The whole source code cannot be distributed in the distribution
because it contains non-free binary code in the HAL.

%prep
%setup -q -n %{distname}

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}/usr/src/%{short_name}
cp -a net80211 include %{buildroot}/usr/src/%{short_name}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%dir /usr/src/%{short_name}
/usr/src/%{short_name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14591 |21mr|madwimax-0.1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: madwimax
Version: 0.1.1
Release: 9
Summary: madwimax userspace driver
License: GPLv2+
Group: Networking/Other
BuildRequires: pkgconfig(libusb-1.0) asciidoc docbook2x
Source0: %{name}-%{version}.tar.bz2

%description
MadWimax is a driver for the wimax device Samsung SWC U200.

%prep
%setup -q

%build
%configure
make

%install
%__install -dm 755 $RPM_BUILD_ROOT/etc/udev/rules.d
%makeinstall_std

%files
%defattr(-, root, root, 0755)
%doc COPYING README
/etc/madwimax/*
/etc/udev/rules.d/*
/usr/sbin/*
/usr/share/man/man8/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14592 |21mr|maeparser-1.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:          maeparser
Version:       1.3.1
Release:       2
Summary:       A parser for Schrodinger Maestro files
Group:         System/Libraries
License:       MIT
URL:           https://github.com/schrodinger/%{name}/
Source0:       %{url}archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

# put cmake config in architecture-correct location
# pull request: https://github.com/schrodinger/maeparser/pull/73

BuildRequires:  boost-devel
BuildRequires:  cmake
BuildRequires:  gcc-c++
BuildRequires:  git
BuildRequires:  make
BuildRequires:  zlib-devel


%global common_description %{expand: \
 Maestro is a commercial "all-purpose molecular modeling environment",
 produced and distributed by the company Schrödinger. Maestro has its
 own cognate file format, typically associated with the ".mae" file
 extension. This package provides an open-source parser for the Maestro
 file format, released and maintained by the Maestro developers.
 This facilitates a lossless transition from the widely accepted suite
 of Schrödinger into local custom developments or the open-source world
 at large. Maeparser handles output from:
 * Molecular Dynamics applications, such as Desmond and FEP+
 * Ligand-Protein Docking applications, such as Glide
 * Homology Modeling and folding applications, such as Prime
 * Ligand-based search applications, such as Phase and Phase Shape
 * Quantum Mechanics applications, such as Jaguar
 * Protein-Protein Docking applications
 * ... many other backends used in both Life and Material Sciences}

%description
%{common_description}

#------------------------------------------------------------------

%package -n %{libname}
Summary:	A parser for Schrodinger Maestro files
Group:		System/Libraries

%description -n %{libname}
%{common_description}

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}*.cmake

#------------------------------------------------------------------
%prep
%autosetup -n %{name}-%{version}


%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14593 |21mr|mailcap-2.1.53-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mailcap
Version:	2.1.53
Release:	2
Summary:	Helper application and MIME type associations for file types
Group:		System/Configuration/Networking
License:	Public Domain and MIT
URL:		https://pagure.io/mailcap
Source0:	https://pagure.io/releases/mailcap/%{name}-%{version}.tar.xz
BuildRequires:	make
BuildRequires:	perl-interpreter
# the test script is written in python
BuildRequires:	python3
BuildArch:	noarch

%description
The mailcap file is used by the metamail program.  Metamail reads the
mailcap file to determine how it should display non-text or multimedia
material.  Basically, mailcap associates a particular type of file
with a particular program that a mail agent or other program can call
in order to handle the file.  Mailcap should be installed to allow
certain programs to be able to handle non-text files.

Also included in this package is the mime.types file which contains a
list of MIME types and their filename "extension" associations, used
by several applications e.g. to determine MIME types for filenames.

%files
%license COPYING
%doc NEWS
%config(noreplace) %{_sysconfdir}/mailcap
%config(noreplace) %{_sysconfdir}/mime.types
%{_mandir}/man5/mailcap.*

#-----------------------------------------------------------------
%package -n nginx-mimetypes
Summary:	MIME type mappings for nginx
Group:		System/Configuration/Networking

%description -n nginx-mimetypes
MIME type mappings for nginx.

%files -n nginx-mimetypes
%license COPYING
%doc NEWS
%config(noreplace) %{_sysconfdir}/nginx/mime.types

#-----------------------------------------------------------------

%prep
%setup -q


%build
%make_build

%install
%make_install sysconfdir=%{_sysconfdir} mandir=%{_mandir}

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14594 |21mr|mailcommon-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 mail common module
Name:		mailcommon
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5designerplugin-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mailimporter-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5messagecomposer-devel
BuildRequires:	kf5messagecore-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5messagelist-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	kf5templateparser-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 mail common module.

%files
%{_kde5_datadir}/qlogging-categories5/mailcommon.categories
%{_kde5_datadir}/qlogging-categories5/mailcommon.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 mail common library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 mail common library translations.

%files i18n -f libmailcommon.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-mailcommonwidgets
Summary:	Qt5 Designer plugin for KDE Frameworks 5 mail common module
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-mailcommonwidgets
Qt5 Designer plugin for KDE Frameworks 5 mail common module.

%files -n qt5-designer-plugin-mailcommonwidgets
%{_qt5_plugindir}/designer/mailcommon5widgets.so

#----------------------------------------------------------------------------

%define kf5mailcommon_major 5
%define libkf5mailcommon %mklibname kf5mailcommon %{kf5mailcommon_major}

%package -n %{libkf5mailcommon}
Summary:	KDE Frameworks 5 mail common shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5mailcommon}
KDE Frameworks 5 mail common shared library.

%files -n %{libkf5mailcommon}
%{_kde5_libdir}/libKPim5MailCommon.so.%{kf5mailcommon_major}*

#----------------------------------------------------------------------------

%define devkf5mailcommon %mklibname kf5mailcommon -d

%package -n %{devkf5mailcommon}
Summary:	Development files for KDE Frameworks 5 mail common module
Group:		Development/KDE and Qt
Requires:	%{libkf5mailcommon} = %{EVRD}
Recommends:	qt5-designer-plugin-mailcommonwidgets
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5mailcommon-devel = %{version}

%description -n %{devkf5mailcommon}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5mailcommon}
%{_kde5_includedir}/KPim5/MailCommon
%{_kde5_libdir}/cmake/KF5MailCommon
%{_kde5_libdir}/cmake/KPim5MailCommon
%{_kde5_libdir}/libKPim5MailCommon.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libmailcommon --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14595 |21mr|mailimporter-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KDE Frameworks 5 mail importer module
Name:		mailimporter
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimcommonakonadi-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 mail importer module.

%files
%{_kde5_datadir}/qlogging-categories5/mailimporter.categories
%{_kde5_datadir}/qlogging-categories5/mailimporter.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 mail importer library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 mail importer library translations.

%files i18n -f libmailimporter.lang

#----------------------------------------------------------------------------

%define kf5mailimporter_major 5
%define libkf5mailimporter %mklibname kf5mailimporter %{kf5mailimporter_major}

%package -n %{libkf5mailimporter}
Summary:	KDE Frameworks 5 mail importer shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5mailimporter}
KDE Frameworks 5 mail importer shared library.

%files -n %{libkf5mailimporter}
%{_kde5_libdir}/libKPim5MailImporter.so.%{kf5mailimporter_major}*

#----------------------------------------------------------------------------

%define kf5mailimporterakonadi_major 5
%define libkf5mailimporterakonadi %mklibname kf5mailimporterakonadi %{kf5mailimporterakonadi_major}

%package -n %{libkf5mailimporterakonadi}
Summary:	KDE Frameworks 5 Akonadi mail importer shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5mailimporterakonadi}
KDE Frameworks 5 Akonadi mail importer shared library.

%files -n %{libkf5mailimporterakonadi}
%{_kde5_libdir}/libKPim5MailImporterAkonadi.so.%{kf5mailimporterakonadi_major}*

#----------------------------------------------------------------------------

%define devkf5mailimporter %mklibname kf5mailimporter -d

%package -n %{devkf5mailimporter}
Summary:	Development files for KDE Frameworks 5 mail importer module
Group:		Development/KDE and Qt
Requires:	%{libkf5mailimporter} = %{EVRD}
Requires:	%{libkf5mailimporterakonadi} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5mailimporter-devel = %{version}
Provides:	kf5mailimporterakonadi-devel = %{version}

%description -n %{devkf5mailimporter}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5mailimporter}
%{_kde5_includedir}/KPim5/MailImporter
%{_kde5_includedir}/KPim5/MailImporterAkonadi
%{_kde5_libdir}/cmake/KPim5MailImporter
%{_kde5_libdir}/cmake/KPim5MailImporterAkonadi
%{_kde5_libdir}/libKPim5MailImporter.so
%{_kde5_libdir}/libKPim5MailImporterAkonadi.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libmailimporter --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14596 |21mr|mailutils-3.17-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with guile
# where are mh binaries in ROSA?
%bcond_with mh
%define _disable_ld_no_undefined 1
%global _fortify_cflags %{nil}

%define major 9
%define devname %mklibname -d mailutils

Summary:	GNU Mailutils
Group:		Networking/Mail
Name:		mailutils
Version:	3.17
Release:	3
License:	GPL-3.0-or-later
Url:		https://mailutils.org/
Source0:	https://ftp.gnu.org/gnu/mailutils/mailutils-%{version}.tar.xz
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	flex
BuildRequires:	gcc-c++
BuildRequires:	glibc-devel
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	libgdbm-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	libldap-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(readline)
#BuildRequires:	libtokyocabinet-devel
BuildRequires:	zlib-devel
BuildRequires:	/usr/bin/makeinfo
BuildRequires:	libltdl-devel
BuildRequires:	perl-podlators
%if %{with mh}
BuildRequires:	emacs-nox
%endif
%if %{with guile}
BuildRequires:	pkgconfig(guile-2.2)
%endif
Recommends:	%{name}-locales
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14274
Provides:	mailx = %{EVRD}

%description
GNU Mailutils is a rich and powerful protocol-independent mail
framework. It contains a series of useful mail libraries, clients,
and servers. These are the primary mail utilities for the GNU system.
The central library is capable of handling electronic mail in various
mailbox formats and protocols, both local and remote.  Specifically,
this project contains a POP3 server, an IMAP4 server, and a Sieve mail
filter. It also provides a POSIX `mailx' client, and a collection of
other handy tools.

%files
%license COPYING*
%doc AUTHORS THANKS NEWS README* TODO ChangeLog
%{_bindir}/mailutils
%{_bindir}/dotlock
%{_bindir}/frm
%{_bindir}/from
%{_bindir}/mail
%{_bindir}/mailx
%{_bindir}/Mail
%{_bindir}/popauth
%{_bindir}/messages
%{_bindir}/mimeview
%{_bindir}/movemail
%{_bindir}/readmsg
%{_bindir}/decodemail
%{_mandir}/*/mail*
%{_infodir}/*
%{_libexecdir}/mailutils
%{_libdir}/mailutils

#--------------------------------------------------------------------------

%package pop3d
Summary:	GNU Mailutils: POP3 daemon
Conflicts:	courier-imap

%description pop3d
The GNU POP3 daemon. Uses libmailbox to support different styles of
mailboxes.

%files pop3d
%license COPYING*
%doc AUTHORS THANKS NEWS README* TODO ChangeLog
%{_sbindir}/pop3d
%{_mandir}/*/pop*

#--------------------------------------------------------------------------

%package imap4d
Summary:	GNU Mailutils: IMAP4 daemon

%description imap4d
The GNU IMAP4 daemon. Uses libmailbox to support different styles of
mailboxes.

%files imap4d
%license COPYING*
%doc AUTHORS THANKS NEWS README* TODO ChangeLog
%{_sbindir}/imap4d
%{_mandir}/*/imap4d*

#--------------------------------------------------------------------------

%package sieve
Summary:	GNU Mailutils: mail filtering language Sieve

%description sieve
GNU implementation of the mail filtering language Sieve, described in
RFC 3028 and RFC 3431. This packages contains also the Sieve interpreter
and Sieve to Scheme translator and filter.

%files sieve
%license COPYING*
%doc AUTHORS THANKS NEWS README* TODO ChangeLog
%{_bindir}/sieve

#--------------------------------------------------------------------------

%package comsatd
Summary:	GNU Mailutils: Comsat daemon

%description comsatd
GNU Comsatd is the server which receives reports of incoming mail and
notifies users, wishing to get this service. It can be started either
from `inetd.conf' or as a standalone daemon.

%files comsatd
%license COPYING*
%doc AUTHORS THANKS NEWS README* TODO ChangeLog
%{_sbindir}/comsatd

#--------------------------------------------------------------------------

%package delivery-agents
Summary:	GNU Mailutils: General-purpose Mail Delivery Agents

%description delivery-agents
This subpackage replaced old maidag subpackage and contais three
utilites: mda, lmtpd and putmail

%files delivery-agents
%license COPYING*
%doc AUTHORS THANKS NEWS README* TODO ChangeLog
%{_sbindir}/mda
%{_sbindir}/lmtpd
%{_bindir}/putmail

#--------------------------------------------------------------------------
%if %{with guile}

%package guile
Summary:	GNU Mailutils: Guile bindings
Group:	System/Libraries
Requires:	guile

%description guile
Guile bindings for GNU Mailutils.

%files guile
%license COPYING*
%doc AUTHORS THANKS NEWS README* TODO ChangeLog
%dir %{_datadir}/guile/site/mailutils
%{_bindir}/guimb
%{_datadir}/guile/site/mailutils/*.scm
%{_datadir}/guile/site/mailutils/*.txt
%{_libdir}/libguile-mailutils*.so

%endif
#--------------------------------------------------------------------------

%package locales
Summary:	National Language files for mailutils
BuildArch:	noarch

%description locales
National Language files for mailutils

%files locales -f %name.lang
%license COPYING*

#--------------------------------------------------------------------------
%if %{with mh}

%package mh
Summary: GNU Mailutils: The Message Handling System
Requires:	emacs-base

%description mh
The GNU MH (Message Handling System).

%files mh
%license COPYING*
%doc AUTHORS THANKS NEWS README* TODO ChangeLog
%dir %{_libexecdir}/mu-mh
%dir %{_datadir}/mailutils
%dir %{_datadir}/mailutils/mh
%{_libexecdir}/mu-mh/*
%{_datadir}/mailutils/mh/*
%{_datadir}/emacs/site-lisp/*
%endif

#--------------------------------------------------------------------------

%define mklibpkg() %{expand:
%define pkg %mklibname %{1} %{major}
%package -n %{pkg}
Summary:	The lib%{1} library from mailutils
Group:		System/Libraries
%description -n %{pkg}
The lib%{1} library from mailutils
%files -n %{pkg}
%{_libdir}/lib%{1}.so.%{major}
%{_libdir}/lib%{1}.so.%{major}.*
}

%mklibpkg mailutils
%mklibpkg mu_auth
%mklibpkg mu_dbm
%mklibpkg mu_dotmail
%mklibpkg mu_imap
%mklibpkg mu_maildir
%mklibpkg mu_mailer
%mklibpkg mu_mbox
%mklibpkg mu_pop
%if %{with guile}
%mklibpkg mu_scm
%endif
%mklibpkg mu_sieve
%mklibpkg muaux

#--------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for mailutils libraries
Group:		Development/C
Requires:	%{mklibname mailutils %{major}} = %{EVRD}
Requires:	%{mklibname mu_auth %{major}} = %{EVRD}
Requires:	%{mklibname mu_dbm %{major}} = %{EVRD}
Requires:	%{mklibname mu_dotmail %{major}} = %{EVRD}
Requires:	%{mklibname mu_imap %{major}} = %{EVRD}
Requires:	%{mklibname mu_maildir %{major}} = %{EVRD}
Requires:	%{mklibname mu_mailer %{major}} = %{EVRD}
Requires:	%{mklibname mu_mbox %{major}} = %{EVRD}
Requires:	%{mklibname mu_pop %{major}} = %{EVRD}
%if %{with guile}
Requires:	%{mklibname mu_scm %{major}} = %{EVRD}
%endif
Requires:	%{mklibname mu_sieve %{major}} = %{EVRD}
Requires:	%{mklibname muaux %{major}} = %{EVRD}

%description -n %{devname}
Development files for mailutils libraries

%files -n %{devname}
%{_bindir}/mailutils-config
%{_datadir}/aclocal/mailutils.m4
%{_includedir}/mailutils
%{_libdir}/*.so

#--------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%serverbuild_hardened
# seems that otherwise optflags are lost
export CC='gcc %{optflags}'
export CXX='g++ %{optflags}'
%configure \
	--enable-ipv6 \
%if %{with mh}
	--with-mh-bindir=%{_libexecdir}/mu-mh \
%else
	--disable-mh \
%endif
%if %{with guile}
	--with-guile-site-dir=%{_datadir}/guile/site \
%else
	--without-guile \
%endif
	--disable-python
%make_build

%install
%make_install

pushd %{buildroot}%{_bindir}
	ln -s mail Mail
	ln -s mail mailx
popd

%if %{with guile}
# from ALT Linux
pushd %{buildroot}%{_libdir}
	NAME1=$(ls libguile-mailutils*.so)
	NAME2=$(find libmu_scm.so.* -type f)
	ln -sf $NAME2 $NAME1
popd
%endif

%find_lang %name

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14597 |21mr|make-4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with guile

Summary:	A GNU tool which simplifies the build process for users
Name:		make
Epoch:		1
Version:	4.3
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.gnu.org/directory/GNU/make.html
Source0:	ftp://ftp.gnu.org/pub/gnu/make/%{name}-%{version}.tar.gz
Patch1:         make-3.82-noclock_gettime.patch
Patch2:         make-4.3-clang.patch
# Don't reimplement stuff that's already in glibc, musl and friends
Patch3:         make-4.1-less-bloat.patch
# Upstream: https://savannah.gnu.org/bugs/?30748
Patch4:         make-3.82-weird-shell.patch
# (tpg) patches form CLR
Patch5:         skip-tests-features-archive.patch
# Fix armv7hnl build
Patch6:         make-4.3-arm-buildfix.patch
BuildRequires:	gettext-devel
%if %{with guile}
BuildRequires:	pkgconfig(guile-3.0)
%endif
BuildRequires:	pkgconfig(bdw-gc)

%description
A GNU tool for controlling the generation of executables and other
non-source files of a program from the program's source files.  Make
allows users to build and install packages without any significant
knowledge about the details of the build process.  The details about how
the program should be built are provided for make in the program's
makefile.

The GNU make tool should be installed on your system because it is
commonly used to simplify the process of installing programs.

%files -f %{name}.lang
%doc ABOUT-NLS AUTHORS ChangeLog README README.customs SCOPTIONS NEWS
%{_bindir}/make
%{_bindir}/gmake
%{_mandir}/man1/make.1*
%{_infodir}/make.info*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# This test always fails
rm -f tests/scripts/features/output-sync

%build
autoreconf -fi
%configure \
%if %{with guile}
    --with-guile
%else
    --without-guile
%endif
%make_build

%install
%make_install

ln -sf make %{buildroot}%{_bindir}/gmake

# We probably don't need this
rm -rf %{buildroot}%{_includedir}

%find_lang %{name}

%check
# all tests must pass
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14598 |21mr|makedepend-1.0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Create dependencies in makefiles
Name:		makedepend
Version:	1.0.6
Release:	2
License:	MIT
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/util/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	x11-proto-devel

%description
The makedepend program reads each source file in sequence and parses it like  a
C-preprocessor, processing all C #* directives so that it can correctly tell
which include directives would be used in a compilation.

%files
%{_bindir}/makedepend
%{_mandir}/man1/makedepend.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14599 |21mr|makedev-4.4-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# synced with rh-3.3.1-1

%define devrootdir /lib/root-mirror
%define dev_lock /var/lock/subsys/dev
%define makedev_lock /var/lock/subsys/makedev

Summary:	A program used for creating the device files in /dev
Name:		makedev
Version:	4.4
Release:	22
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/soft/makedev/
Source0:	%{name}-%{version}.tar.bz2
Requires(pre):	coreutils
Requires(pre):	mktemp
Requires(post):	perl(MDK::Common)
Requires(post):	sed
Requires(post):	shadow-utils
Requires(post):	util-linux
Requires:	bash
Provides:	dev = %{EVRD}
BuildArch:	noarch
# coreutils => /bin/mkdir

%description
This package contains the makedev program, which makes it easier to create
and maintain the files in the /dev directory.  /dev directory files
correspond to a particular device supported by Linux (serial or printer
ports, scanners, sound cards, tape drives, CD-ROM drives, hard drives,
etc.) and interface with the drivers in the kernel.

The makedev package is a basic part of your Mandriva Linux system and it needs
to be installed.

#The Mandriva Linux operating system uses file system entries to represent
#devices (CD-ROMs, floppy drives, etc.) attached to the machine. All of
#these entries are in the /dev tree (although they don't have to be).
#This package contains the most commonly used /dev entries.

%prep
%setup -q

%build
# Generate the config scripts
%make

%install
[ "%{buildroot}" != "/" ] && rm -rf %{buildroot}

mkdir -p %{buildroot}%{devrootdir}
%makeinstall_std

%post
/usr/sbin/useradd -c "virtual console memory owner" -u 69 \
  -s /sbin/nologin -r -d /dev vcsa 2> /dev/null || :

#- when devfs or udev are used, upgrade and install can be done easily :)
if [ -e /dev/.devfsd ] || [ -e /dev/.udev.tdb ] || [ -d /dev/.udevdb/ ] || [ -d /dev/.udev/ ]; then
	[ -d %{devrootdir} ] || mkdir %{devrootdir}
	mount --bind / %{devrootdir}
	DEV_DIR=%{devrootdir}/dev
     
     [ -L $DEV_DIR/snd ] && rm -f $DEV_DIR/snd
	mkdir -p $DEV_DIR/{pts,shm}
	/sbin/makedev $DEV_DIR

	# race 
	while [ ! -c $DEV_DIR/null ]; do
		rm -f $DEV_DIR/null
		mknod -m 0666 $DEV_DIR/null c 1 3
		chown root.root $DEV_DIR/null
	done

	umount -f %{devrootdir} 2> /dev/null
#- case when makedev is being installed, not upgraded
else
	DEV_DIR=/dev
	mkdir -p $DEV_DIR/{pts,shm}
     [ -L $DEV_DIR/snd ] && rm -f $DEV_DIR/snd
	/sbin/makedev $DEV_DIR

	# race 
	while [ ! -c $DEV_DIR/null ]; do
		rm -f $DEV_DIR/null
		mknod -m 0666 $DEV_DIR/null c 1 3
		chown root.root $DEV_DIR/null
	done

	[ -x /sbin/pam_console_apply ] && /sbin/pam_console_apply &>/dev/null
fi
:

%triggerpostun -- dev

if [ ! -e /dev/.devfsd -a ! -e /dev/.udev.tdb -a ! -d /dev/.udevdb/ -a ! -d /dev/.udev/ ]; then
	#- when upgrading from old dev pkg to makedev pkg, this can't be done in %%post
	#- doing the same when upgrading from new dev pkg
	DEV_DIR=/dev
	mkdir -p $DEV_DIR/{pts,shm}
     [ -L $DEV_DIR/snd ] && rm -f $DEV_DIR/snd
	/sbin/makedev $DEV_DIR

	# race 
	while [ ! -c $DEV_DIR/null ]; do
		rm -f $DEV_DIR/null
		mknod -m 0666 $DEV_DIR/null c 1 3
		chown root.root $DEV_DIR/null
	done

	[ -x /sbin/pam_console_apply ] && /sbin/pam_console_apply &>/dev/null
fi
:

%files
%doc COPYING devices.txt README
%attr(755,root,root) /sbin/%{name}
%dir %{_sysconfdir}/makedev.d/
%config(noreplace) %{_sysconfdir}/makedev.d/*
%dir /dev
%dir %{devrootdir}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14600 |21mr|makepasswd-0.5.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		makepasswd
Version: 	0.5.4
Release: 	3
Summary: 	Generate random passwords
License: 	GPL
Group: 		System/Configuration/Other
URL: 		http://www.defora.org/index.php?page=projects&project=makepasswd
Source0: 	https://github.com/khorben/%{name}/archive/%{name}_0-5-4.tar.gz
BuildRequires:	pkgconfig(openssl)
BuildRequires:	xsltproc
BuildRequires:	libxml2-utils
BuildRequires:	docbook-style-xsl

%description
Makepasswd generates pseudo-random passwords of a desired length. It is able
to generate its crypted equivalent.

%prep
%setup -qn %{name}-%{name}_0-5-4

%build
%make CFLAGS="%{optflags}"

%install
%makeinstall PREFIX=%{buildroot}%{_prefix}

%files
%{_bindir}/makepasswd
%{_mandir}/man1/makepasswd.1.*
%{_mandir}/html1/makepasswd.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14601 |21mr|makeself-2.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		makeself
Version:	2.4.4
Release:	2
Summary:	Generates a self-extractable archive from a directory
Group: 		Archiving/Compression
License:	GPLv3
Url:		https://makeself.io/
Source0:	https://github.com/megastep/makeself/archive/release-%{version}.tar.gz
Source1:	http://angst.cynapses.org/stripmakeself
Requires:	bzip2
Requires:	coreutils
Requires:	gnupg
BuildArch:	noarch

%description
Makeself is a small shell script that generates a self-extractable
tar.gz archive from a directory. The resulting file appears as a shell
script (many of those have a .run suffix), and can be launched as
is. The archive will then uncompress itself to a temporary directory
and an optional arbitrary command will be executed (for example an
installation script). This is pretty similar to archives generated
with WinZip Self-Extractor in the Windows world. Makeself archives
also include checksums for integrity self-validation (CRC and/or MD5
checksums).

The makeself.sh script itself is used only to create the archives from
a directory of files. The resultant archive is actually a compressed
(using gzip, bzip2, or compress) TAR archive, with a small shell
script stub at the beginning. This small stub performs all the steps
of extracting the files, running the embedded command, and removing
the temporary files when it's all over. All what the user has to do to
install the software contained in such an archive is to "run" the
archive, i.e sh nice-software.run. I recommend using the "run" (which
was introduced by some Makeself archives released by Loki Software) or
"sh" suffix for such archives not to confuse the users, since they
know it's actually shell scripts (with quite a lot of binary data
attached to it though!).


%prep
%setup -q -n %{name}-release-%{version}
cp -p %{SOURCE1} .

%build

%install
mkdir -p %{buildroot}%{_bindir} \
	%{buildroot}%{_mandir}/man1 \
	%{buildroot}%{_datadir}/makeself/
install -m 755 makeself.sh %{buildroot}%{_bindir}/makeself
install -m 755 makeself-header.sh %{buildroot}%{_datadir}/makeself/makeself-header
install -m 755 stripmakeself %{buildroot}%{_bindir}/
install -m 644 makeself.1 %{buildroot}%{_mandir}/man1/

%files
%doc COPYING README.md makeself.lsm
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/makeself/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14602 |21mr|maliit-2.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2

%define libglib %mklibname maliit-glib %{major}
%define libplugins %mklibname maliit-plugins %{major}
%define devel %mklibname -d maliit

%define oname framework

Summary:	Input method framework for mobile and embedded text input
Name:		maliit
Version:	2.3.0
Release:	5
Group:		Graphical desktop/KDE
License:	LGPLv2
Source0:	https://github.com/maliit/framework/archive/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage) >= 1.1.1
BuildRequires:	pkgconfig(xext) >= 1.1.1
BuildRequires:	pkgconfig(xfixes) >= 4.0.3
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	qt5-wayland-client
BuildRequires:	qt5-wayland-compositor
BuildRequires:	doxygen
BuildRequires:	graphviz
# For compatibility with some other distros
Provides:	%{name}-framework = %{EVRD}

%description
Maliit provides a flexible and cross-platform input method framework for
mobile and embedded text input, including a virtual keyboard.

It has a plugin-based client-server architecture where applications act
as clients and communicate with the Maliit server via input context
plugins.

%libpackage maliit-glib %{major}

%libpackage maliit-plugins %{major}

%files
%doc %{_docdir}/maliit-framework
%{_bindir}/maliit-server
%{_libdir}/qt5/plugins/platforminputcontexts/libmaliitplatforminputcontextplugin.so
%{_libdir}/qt5/plugins/wayland-shell-integration/libinputpanel-shell.so
%{_datadir}/dbus-1/services/org.maliit.server.service

#--------------------------------------------------------------------

%package -n %{devel}
Summary:	Development files for the maliit input framework
Group:		Development/KDE and Qt
Requires:	%{libglib} = %{EVRD}
Requires:	%{libplugins} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devel}
Development files for the maliit input framework

%files -n %{devel}
%doc %{_docdir}/maliit-framework-doc
%dir %{_includedir}/maliit-2
%{_includedir}/maliit-2/maliit
%{_includedir}/maliit-2/maliit-glib
%{_libdir}/cmake/MaliitGLib
%{_libdir}/cmake/MaliitPlugins
%{_libdir}/libmaliit-glib.so
%{_libdir}/libmaliit-plugins.so
%{_libdir}/pkgconfig/maliit-framework.pc
%{_libdir}/pkgconfig/maliit-glib.pc
%{_libdir}/pkgconfig/maliit-plugins.pc
%{_libdir}/pkgconfig/maliit-server.pc
%{_libdir}/qt5/mkspecs/features/maliit*.prf

#--------------------------------------------------------------------

%package	examples
Summary:	Tests and examples for %{name}
Requires:	%{name} = %{EVRD}

%description	examples
This package contains tests and examples for %{name}.

%files	examples
%{_bindir}/maliit-exampleapp-plainqt

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n framework-%{version}

%build
%cmake -Denable-examples=ON \
       -Denable-tests=OFF \
       -Denable-dbus-activation=ON

%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14603 |21mr|maliit-keyboard-2.3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Virtual keyboard for the maliit input framework
Name:		maliit-keyboard
Version:	2.3.1
Release:	5
Group:		Graphical desktop/KDE
License:	BSD
URL:		http://maliit.github.io/
Source0:	https://github.com/maliit/keyboard/archive/%{version}/keyboard-2.3.1.tar.gz
Source1:	maliit-keyboard-2.2.0_ru.tar.gz
# Drop unmaintained/non-working QFeedback module in favor of a quick
# and dirty local implementation
Patch0:		maliit-keyboard-hapticfeedback.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(maliit-framework)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libpinyin)
BuildRequires:	pkgconfig(anthy)
BuildRequires:	pkgconfig(chewing)
#BuildRequires:	%{_lib}presage-devel
BuildRequires:	doxygen
#BuildRequires:	presage-text2ngram
Requires:	libpinyin
Requires:	maliit
#Requires:	presage

%description
Maliit provides a flexible and cross-platform input method plugins. It has a
plugin-based client-server architecture where applications act as clients and
communicate with the Maliit server via input context plugins. The communication
link currently uses D-Bus.

%files -f %{name}.lang
%doc %{_docdir}/maliit-keyboard
%{_bindir}/maliit-keyboard*
%{_libdir}/maliit/plugins/libmaliit-keyboard-plugin.so
%{_libdir}/maliit/keyboard2
%{_datadir}/maliit/keyboard2
%{_datadir}/glib-2.0/schemas/org.maliit.keyboard.maliit.gschema.xml
%{_datadir}/applications/com.github.maliit.keyboard.desktop
%{_appdatadir}/com.github.maliit.keyboard.metainfo.xml

#---------------------------------------------------------

%prep
%autosetup -p1 -n keyboard-2.3.1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake \
        -DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
        -Denable-presage=OFF
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14604 |21mr|man2html-1.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define posttag g
%define debian_release 6

Summary:	Convert man pages to HTML - CGI scripts
Name:		man2html
Version:	1.6
Release:	12
# man2html.c and debian/sources/man2html.cgi.c are Copyright Only
# utils.c is GPL+
# everything else is GPLv2
License:	GPLv2+ and GPL+ and Copyright only
Group:		System/Base
Url:		http://www.kapiti.co.nz/michael/vhman2html.html
Source0:	http://primates.ximian.com/~flucifredi/man/man-%{version}%{posttag}.tar.gz
# Debian CGI scripts
Source1:	http://ftp.de.debian.org/debian/pool/main/m/man2html/man2html_%{version}%{posttag}-%{debian_release}.debian.tar.gz
# Apache configuration file
Source2:	man2html.conf
# Patch1XXX are from Debian, XXX matches their patch number
# Copyright (C) Christoph Lameter <clameter@debian.org>, Nicolás Lichtmaier
# <nick@feedback.net.ar>, and Robert Luberda <robert@debian.org>.  GPLv2+
# fix a bashism in %%{_bindir}/hman, allows it to work on other shells
Patch1001:	man2html-hman-bashism.patch
# use relative links instead of http://localhost/
Patch1002:	man2html-relative-links.patch
# use file:/// links instead of file:/ (per RFC 1738)
Patch1013:	man2html-file-link.patch
# show hman(1) in man2html(1) see also section
Patch1017:	man2html-see-also-hman.patch
# *roff parser fix:  add support for \(lq and \(rq escape sequences
Patch1018:	man2html-quotes.patch
# fix SEGFAULT on manpages with no sections
Patch1019:	man2html-noindex-segfault.patch
# *roff parser fix: convert \N'123' to &#123
Patch1020:	man2html-escape-N.patch
# support Perl manpages (1p/3p/etc.)
Patch1021:	man2html-perl.patch
# fix typo in Italian man page
Patch1022:	man2html-it-typo.patch
# *roff parser: properly decode quotes inside quoted text
Patch1023:	man2html-double-quotes.patch
# *roff parser: handle \$* and \$@ escapes.
Patch1025:	man2html-all-args.patch
# *roff parser: support macro names longer than two characters
Patch1026:	man2html-macro-longnames.patch
# *roff parser: parse user defined macros before define ones
Patch1027:	man2html-macro-priority.patch
# fix a segfault that only happens on groff(1) [lol]
Patch1028:	man2html-groff-segfault.patch
# *roff parser:  support "\[xx]"
Patch1029:	man2html-new-macros.patch
# ignore font change requests that aren't followed by any words
Patch1031:	man2html-BR-empty-line.patch
# fix some GCC warnings
Patch1033:	man2html-gcc-warnings.patch
# Fedora patches
# use /usr/lib/man2html for CGI
# originally based on Debian patches 000 and 005
Patch1:		man2html-paths.patch
# support gunzipping manpages
# modified version of Debian patch 024
Patch2:		man2html-ungzip.patch
Patch3:		man2html-ungzip-makefile.patch
# fix up CGI scripts/Makefile with Fedora paths
Patch4:		man2html-cgi.patch
# hman cleanup: use xdg-open instead of lynxcgi by default and use correct path
#               for lynxcgi when manually requested
Patch5:		man2html-hman.patch
# manpage cleanup:  mention Fedora paths as default, use modern browser examples,
#                   and describe LYNXCGI issues as runtime, not compile-time
Patch6:		man2html-doc.patch
# fix format string warnings
# will send back to Debian as soon as I locate the part of my brain that
# remembers how to use their bugtracker
Patch7:		man2html-format.patch
# fix a bug in hman that linked to the wrong URL for mansec and manwhatis
# (e.g. when just invoking `hman 1`)
Patch8:		man2html-hman-section.patch
# fix the paths in localized manpages
Patch9:		man2html-localized-manpage-paths.patch
BuildRequires:	recode
Requires:	%{name}-core = %{EVRD}

%description
man2html is a man page to HTML converter.

This package contains CGI scripts that allow you to view, browse, and search
man pages using a web server.

%files
%attr(0755,-,-) %{_bindir}/hman
%{_prefix}/lib/man2html/
%attr(0775,root,apache) %{_localstatedir}/cache/man2html
%config(noreplace) %{_sysconfdir}/httpd/conf.d/man2html.conf
%{_mandir}/man1/hman.1.*

%post
#clear out the cache directory so all future pages are regenerated with the new build
rm -f %{_localstatedir}/cache/man2html/* || :

#----------------------------------------------------------------------------

%package core
Summary:	Convert man pages to HTML
Group:		System/Base

%description core
man2html is a man page to HTML converter.

This package contains the man2html executable.

%files core
%doc COPYING HISTORY man2html/README man2html/TODO
%{_bindir}/man2html
%{_mandir}/man1/man2html.1.*
%{_mandir}/*/man1/*.1.*

#----------------------------------------------------------------------------

%prep
%setup -q -n man-%{version}%{posttag} -a1

for p in %{patches}; do
    patch -p1 -i $p
done


%build
CFLAGS="${CFLAGS:-%{optflags}}" ; export CFLAGS ;

# Configure and make man2html binary
#  (not autoconf so don't use %%configure)
./configure -d +fhs
%make

# make cgi scripts from debian
cd debian/sources
%make

%install
#install man2html binary
make -C man2html DESTDIR=%{buildroot} install install-hman

#install CGI scripts
make -C debian/sources PREFIX=%{buildroot} install

#install localized manpages
install -Dpm0644 man2html/locales/fr/man2html.1 %{buildroot}%{_mandir}/fr/man1/man2html.1
install -Dpm0644 man2html/locales/it/man2html.1 %{buildroot}%{_mandir}/it/man1/man2html.1
install -Dpm0644 man2html/locales/it/hman.1 %{buildroot}%{_mandir}/it/man1/hman.1

#convert localized manpages to UTF-8
recode latin1..utf8 \
    %{buildroot}%{_mandir}/fr/man1/man2html.1 \
    %{buildroot}%{_mandir}/it/man1/man2html.1 \
    %{buildroot}%{_mandir}/it/man1/hman.1 

#install httpd configuration
install -Dpm0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/man2html.conf

#create cache directory for cgi scripts
mkdir -p %{buildroot}%{_localstatedir}/cache/man2html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14605 |21mr|man-db-2.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# We need to allow undefined symbols - libmandb relies on them
#define _disable_ld_no_undefined 1
%global cache /var/cache/man
%bcond_without scripts

Summary:	A set of documentation tools: man, apropos and whatis
Name:		man-db
Version:	2.10.2
Release:	1
License:	GPLv2
Group:		System/Base
Url:		https://gitlab.com/cjwatson/man-db
Source0:	http://download.savannah.gnu.org/releases/man-db/%{name}-%{version}.tar.xz
Source1:	man-db.timer
Source2:	man-db.service

BuildRequires:	groff
BuildRequires:	flex
BuildRequires:	gdbm-devel
BuildRequires:	lzma-devel
BuildRequires:	po4a
BuildRequires:	pkgconfig(libpipeline)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	%{_bindir}/bzip2
BuildRequires:	%{_bindir}/gzip
BuildRequires:	%{_bindir}/xz
BuildRequires:	%{_bindir}/zstd
# The configure script checks for the best available pager at build time,
# let's prevent it from picking "more"
BuildRequires:	less
Requires:	groff-base
Requires:	less
OrderWithRequires: man-pages
# default man compression algo in ROSA rpmbuild (spec-helper)
Recommends:	%{_bindir}/xz
Provides:	man

%description
The man package includes three tools for finding information and/or
documentation about your Linux system: man, apropos and whatis. The man
system formats and displays on-line manual pages about commands or
functions on your system. Apropos searches the whatis database
(containing short descriptions of system commands) for a string. Whatis
searches its own database for a complete word.

The man package should be installed on your system because it is the
primary way for find documentation on a Mandriva Linux system.

%prep
%autosetup -p1

%build
# defining absolute paths to xz, gzip, zstd etc. to avoid lookup over $PATH
# to speed up building DB from many mans
test -x %{_bindir}/bzip2
test -x %{_bindir}/gzip
test -x %{_bindir}/xz
test -x %{_bindir}/zstd
%configure \
	--with-sections="1 1p 8 2 3 3p 4 5 6 7 9 0p n l p o 1x 2x 3x 4x 5x 6x 7x 8x" \
	--disable-setuid \
	--with-pager="less -X" \
	--disable-cache-owner \
	--with-lzip=lzip \
	--with-bzip2=%{_bindir}/bzip2 \
	--with-gzip=%{_bindir}/gzip \
	--with-xz=%{_bindir}/xz \
	--with-zstd=%{_bindir}/zstd \
	--with-override-dir=overrides \
	--with-libseccomp

%make_build CC="%{__cc} %{optflags}" V=1
chmod 0755 ./src/man

%install
%make_install prefix=%{_prefix} INSTALL='%{__install} -p'

# move the documentation to relevant place
mv %{buildroot}%{_datadir}/doc/man-db/* ./

# remove zsoelim - part of groff package
rm %{buildroot}%{_libexecdir}/%{name}/zsoelim
rm %{buildroot}%{_datadir}/man/man1/zsoelim.1*

# install cache directory
install -d -m 0755 %{buildroot}%{cache}

install -D -m644 %{SOURCE1} %{buildroot}%{_unitdir}/man-db.timer
install -D -m644 %{SOURCE2} %{buildroot}%{_unitdir}/man-db.service

cat >%{buildroot}%{_sbindir}/update-man-cache <<'EOF'
#!/bin/sh
set -e
set -u
# Just in case /var/cache is tmpfs or similar
if ! [ -d %{cache} ]; then
	mkdir -p -m 0755 %{cache}
fi
# mandb performance degrades significantly when libseccomp is enabled
# and an external program — xz in ROSA — is executed for decompression.
# It can be speeded up if decompression is done without calling an external
# program — with liblzma instead of xz(1). Currently it is not fully clear
# to me (mikhailnov) why performance is degraded.
# See:
# 1) https://gitlab.com/cjwatson/man-db/-/issues/4
# 2) https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1003089
# Discussion in (2) notes that we can trust mans inside packages,
# but mans inside e.g. snaps can try to execute code without a sandbox
# when being parsed by mandb. It would be nice to disable seccomp only
# when being run from RPM triggers, but leave it enabled in the systemd
# timer, but I currently do not have handsome ideas how to implement it
# and leave it enabled for daily runs of the systemd timer which would
# index mans from snaps, but it can still be run from RPM and process mans
# from snaps, so a run from RPM would need to somehow omit snaps' mans.
# Leaving mandb built with libseccomp to allow users to enable seccomp by
# setting "Environment=MAN_DISABLE_SECCOMP=0" via `systemctl edit man-db`
# (code of mandb checks existense of the variable, not its value).
if [ "${MAN_DISABLE_SECCOMP:-1}" != 0 ]
	then export MAN_DISABLE_SECCOMP=1
	else unset MAN_DISABLE_SECCOMP
fi
exec %{_bindir}/mandb
EOF

chmod 0755 %{buildroot}%{_sbindir}/update-man-cache
install -D -p -m 0644 init/systemd/man-db.conf %{buildroot}%{_tmpfilesdir}/man-db.conf

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-man-db.preset << EOF
enable man-db.timer
EOF

%find_lang %{name}
%find_lang %{name}-gnulib

%files -f %{name}.lang -f %{name}-gnulib.lang
%license COPYING
%doc *.md man-db-manual.txt man-db-manual.ps
%config(noreplace) %{_sysconfdir}/man_db.conf
%{_tmpfilesdir}/man-db.conf
%{_presetdir}/86-man-db.preset
%{_sbindir}/accessdb
%{_bindir}/man
%{_bindir}/whatis
%{_bindir}/apropos
%{_bindir}/manpath
%{_bindir}/lexgrog
%{_bindir}/man-recode
%{_bindir}/catman
%{_bindir}/mandb
%{_sbindir}/update-man-cache
%{_libexecdir}/man-db/globbing
%{_libexecdir}/man-db/manconv
%dir %{_libdir}/man-db
%{_libdir}/man-db/*.so*
%{_unitdir}/man-db.timer
%{_unitdir}/man-db.service
# documentation and translation
%{_mandir}/man1/apropos.1*
%{_mandir}/man1/lexgrog.1*
%{_mandir}/man1/man.1*
%{_mandir}/man1/man-recode.1*
%{_mandir}/man1/manconv.1*
%{_mandir}/man1/manpath.1*
%{_mandir}/man1/whatis.1*
%{_mandir}/man5/manpath.5*
%{_mandir}/man8/accessdb.8*
%{_mandir}/man8/catman.8*
%{_mandir}/man8/mandb.8*
%lang(da) %{_mandir}/da/*/*
%lang(de) %{_mandir}/de/*/*
%lang(es) %{_mandir}/es/*/*
%lang(fr) %{_mandir}/fr/*/*
%lang(id) %{_mandir}/id/*/*
%lang(it) %{_mandir}/it/*/*
%lang(ja) %{_mandir}/ja/*/*
%lang(nl) %{_mandir}/nl/*/*
%lang(pl) %{_mandir}/pl/*/*
%lang(pt) %{_mandir}/pt/*/*
%lang(pt_BR) %{_mandir}/pt_BR/*/*
%lang(ro) %{_mandir}/ro/*/*
%lang(ru) %{_mandir}/ru/*/*
%lang(sr) %{_mandir}/sr/*/*
%lang(sv) %{_mandir}/sv/*/*
%lang(tr) %{_mandir}/tr/*/*
%lang(zh_CN) %{_mandir}/zh_CN/*/*
%dir %{cache}

%if %{with scripts}
%transfiletriggerin -- %{_mandir}
# Update cache if installed/upgraded packages contain mans.
# Systemd will manage to avoid concurrent runs of mandb
# (https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=684235)
# and run update in the background.
# Fallback to method not requiring running systemd and dbus (e.g. in chroot).
systemctl start man-db.service >/dev/null 2>&1 || %{_sbindir}/update-man-cache || :

%transfiletriggerpostun -- %{_mandir}
systemctl start man-db.service >/dev/null 2>&1 || %{_sbindir}/update-man-cache || :

%posttrans
if ! ls %{cache} | grep -q index; then
	%{_sbindir}/update-man-cache
fi

%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14606 |21mr|mandoc-1.14.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             mandoc
Version:          1.14.6
Release:          1
Summary:          A suite of tools for compiling mdoc and man
Group:            Development/Tools
License:          ISC
URL:              https://mandoc.bsd.lv/
Source0:          https://mandoc.bsd.lv/snapshots/mandoc-%{version}.tar.gz

BuildRequires:    gcc
BuildRequires:    make
BuildRequires:    zlib-devel

# requirements for %%check
BuildRequires:    perl-interpreter
BuildRequires:    perl(IPC::Open3)

Requires(post):   %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
Requires(preun):  %{_sbindir}/update-alternatives

# The shared library package has been removed per discussion with the
# upstream maintainer.  If using the library, the static library is
# preferred because the API is not stable.
Provides:         libmandoc = %{version}-%{release}
Obsoletes:        libmandoc <= 1.14.5-10

%description
mandoc is a suite of tools compiling mdoc, the roff macro language of choice
for BSD manual pages, and man, the predominant historical language for UNIX
manuals. It is small, ISO C, ISC-licensed, and quite fast. The main component
of the toolset is the mandoc utility program, based on the libmandoc validating
compiler, to format output for UTF-8 and ASCII UNIX terminals, HTML 5,
PostScript, and PDF.

#-------------------------------------------------------------------
%package -n libmandoc-devel
Summary:        Development libraries and headers for libmandoc
Group:          Documentation

%description -n libmandoc-devel
The mandoc library parses a UNIX manual into an abstract syntax tree (AST).
UNIX manuals are composed of mdoc(7) or man(7), and may be mixed with roff(7),
tbl(7), and eqn(7) invocations.

#-------------------------------------------------------------------

%prep
%autosetup -p1

%build
# NB: not an autoconf script
# settings are read in through configure.local
echo 'PREFIX=%{_prefix}'   >  configure.local
echo 'BINDIR=%{_bindir}'   >> configure.local
echo 'SBINDIR=%{_sbindir}' >> configure.local
echo 'MANDIR=%{_mandir}'   >> configure.local
echo 'INCLUDEDIR=%{_includedir}' >> configure.local
echo 'LIBDIR=%{_libdir}'   >> configure.local

# with default settings rpmlint complains about cross-directory hardlinks
echo 'LN="ln -sf"' >> configure.local

echo 'MANM_MANCONF=mandoc.conf'          >> configure.local

# override the install permissions so that owner-write bits are set,
# so rpmbuild can do whatever modifications it does post-%%install
echo 'INSTALL_PROGRAM="${INSTALL} -m 0755"' >> configure.local
echo 'INSTALL_LIB="${INSTALL} -m 0755"'     >> configure.local
echo 'INSTALL_MAN="${INSTALL} -m 0644"'     >> configure.local
echo 'INSTALL_DATA="${INSTALL} -m 0644"'    >> configure.local

echo 'INSTALL_LIBMANDOC=1' >> configure.local

echo 'CFLAGS="%{optflags} -fPIC"' >> configure.local
./configure
%make_build

%install
%make_install

# Ensure headers do not have the execute bit set
chmod -x %{buildroot}%{_includedir}/*.h

# Rename files for alternative usage
mv %{buildroot}%{_bindir}/man %{buildroot}%{_bindir}/man.mandoc
mv %{buildroot}%{_bindir}/apropos %{buildroot}%{_bindir}/apropos.mandoc
mv %{buildroot}%{_bindir}/whatis %{buildroot}%{_bindir}/whatis.mandoc
mv %{buildroot}%{_bindir}/soelim %{buildroot}%{_bindir}/soelim.mandoc
mv %{buildroot}%{_sbindir}/makewhatis %{buildroot}%{_sbindir}/makewhatis.mandoc
mv %{buildroot}%{_mandir}/man1/apropos.1 %{buildroot}%{_mandir}/man1/apropos.mandoc.1
mv %{buildroot}%{_mandir}/man1/man.1 %{buildroot}%{_mandir}/man1/man.mandoc.1
mv %{buildroot}%{_mandir}/man1/soelim.1 %{buildroot}%{_mandir}/man1/soelim.mandoc.1
mv %{buildroot}%{_mandir}/man1/whatis.1 %{buildroot}%{_mandir}/man1/whatis.mandoc.1
mv %{buildroot}%{_mandir}/man7/man.7 %{buildroot}%{_mandir}/man7/man.mandoc.7
mv %{buildroot}%{_mandir}/man7/roff.7 %{buildroot}%{_mandir}/man7/roff.mandoc.7
mv %{buildroot}%{_mandir}/man7/eqn.7 %{buildroot}%{_mandir}/man7/eqn.mandoc.7
mv %{buildroot}%{_mandir}/man7/tbl.7 %{buildroot}%{_mandir}/man7/tbl.mandoc.7
mv %{buildroot}%{_mandir}/man8/makewhatis.8 %{buildroot}%{_mandir}/man8/makewhatis.mandoc.8

# Touch all the locations that update-alternatives will use
touch %{buildroot}%{_bindir}/man
touch %{buildroot}%{_bindir}/apropos
touch %{buildroot}%{_bindir}/whatis
touch %{buildroot}%{_bindir}/soelim
touch %{buildroot}%{_sbindir}/makewhatis
touch %{buildroot}%{_mandir}/man1/apropos.1
touch %{buildroot}%{_mandir}/man1/man.1
touch %{buildroot}%{_mandir}/man1/soelim.1
touch %{buildroot}%{_mandir}/man1/whatis.1
touch %{buildroot}%{_mandir}/man7/man.7
touch %{buildroot}%{_mandir}/man7/roff.7
touch %{buildroot}%{_mandir}/man7/eqn.7
touch %{buildroot}%{_mandir}/man7/tbl.7
touch %{buildroot}%{_mandir}/man8/makewhatis.8

%check
env LD_LIBRARY_PATH="$PWD" %make_build regress

%postun
if [ $1 -ge 1 ]; then
    if [ "$(readlink %{_sysconfdir}/alternatives/man)" = "%{_bindir}/man.mandoc" ]; then
        %{_sbindir}/alternatives --set man %{_bindir}/man.mandoc
    fi

    if [ "$(readlink %{_sysconfdir}/alternatives/soelim)" = "%{_bindir}/soelim.mandoc" ]; then
        %{_sbindir}/alternatives --set soelim %{_bindir}/soelim.mandoc
    fi

    if [ "$(readlink %{_sysconfdir}/alternatives/roff.7.gz)" = "%{_mandir}/man7/roff.mandoc.7.gz" ]; then
        %{_sbindir}/alternatives --set roff.7.gz %{_mandir}/man7/roff.mandoc.7.gz
    fi

    if [ "$(readlink %{_sysconfdir}/alternatives/man.7.gz)" = "%{_mandir}/man7/man.mandoc.7.gz" ]; then
        %{_sbindir}/alternatives --set man.7.gz %{_mandir}/man7/man.mandoc.7.gz
    fi
fi

%post
%{_sbindir}/update-alternatives --install %{_bindir}/man man %{_bindir}/man.mandoc 200 \
    --slave %{_bindir}/apropos apropos %{_bindir}/apropos.mandoc \
    --slave %{_bindir}/whatis whatis %{_bindir}/whatis.mandoc \
    --slave %{_sbindir}/makewhatis makewhatis %{_sbindir}/makewhatis.mandoc \
    --slave %{_mandir}/man1/apropos.1.gz apropos.1.gz %{_mandir}/man1/apropos.mandoc.1.gz \
    --slave %{_mandir}/man1/man.1.gz man.1.gz %{_mandir}/man1/man.mandoc.1.gz \
    --slave %{_mandir}/man1/whatis.1.gz whatis.1.gz %{_mandir}/man1/whatis.mandoc.1.gz \
    --slave %{_mandir}/man8/makewhatis.8.gz makewhatis.8.gz %{_mandir}/man8/makewhatis.mandoc.8.gz

%{_sbindir}/update-alternatives --install %{_bindir}/soelim soelim %{_bindir}/soelim.mandoc 200 \
    --slave %{_mandir}/man1/soelim.1.gz soelim.1.gz %{_mandir}/man1/soelim.mandoc.1.gz

%{_sbindir}/update-alternatives --install %{_mandir}/man7/roff.7.gz roff.7.gz %{_mandir}/man7/roff.mandoc.7.gz 200 \
    --slave %{_mandir}/man7/eqn.7.gz eqn.7.gz %{_mandir}/man7/eqn.mandoc.7.gz \
    --slave %{_mandir}/man7/tbl.7.gz tbl.7.gz %{_mandir}/man7/tbl.mandoc.7.gz

%{_sbindir}/update-alternatives --install %{_mandir}/man7/man.7.gz man.7.gz %{_mandir}/man7/man.mandoc.7.gz 200

%preun
if [ $1 -eq 0 ]; then
    %{_sbindir}/update-alternatives --remove man %{_bindir}/man.mandoc
    %{_sbindir}/update-alternatives --remove soelim %{_bindir}/soelim.mandoc
    %{_sbindir}/update-alternatives --remove roff.7.gz %{_mandir}/man7/roff.mandoc.7.gz
    %{_sbindir}/update-alternatives --remove man.7.gz %{_mandir}/man7/man.mandoc.7.gz
fi

%files
%license LICENSE
%{_bindir}/demandoc
%{_bindir}/mandoc
%{_bindir}/apropos.mandoc
%ghost %{_bindir}/apropos
%{_bindir}/man.mandoc
%ghost %{_bindir}/man
%{_bindir}/soelim.mandoc
%ghost %{_bindir}/soelim
%{_bindir}/whatis.mandoc
%ghost %{_bindir}/whatis
%{_sbindir}/makewhatis.mandoc
%ghost %{_sbindir}/makewhatis
%{_mandir}/man1/demandoc.1*
%{_mandir}/man1/mandoc.1*
%{_mandir}/man1/apropos.mandoc.1*
%ghost %{_mandir}/man1/apropos.1*
%{_mandir}/man1/man.mandoc.1*
%ghost %{_mandir}/man1/man.1*
%{_mandir}/man1/soelim.mandoc.1*
%ghost %{_mandir}/man1/soelim.1*
%{_mandir}/man1/whatis.mandoc.1*
%ghost %{_mandir}/man1/whatis.1*
%{_mandir}/man5/mandoc.conf.5*
%{_mandir}/man5/mandoc.db.5*
%{_mandir}/man7/eqn.mandoc.7*
%ghost %{_mandir}/man7/eqn.7*
%{_mandir}/man7/mandoc_char.7*
%{_mandir}/man7/man.mandoc.7*
%ghost %{_mandir}/man7/man.7*
%{_mandir}/man7/mdoc.7*
%{_mandir}/man7/roff.mandoc.7*
%ghost %{_mandir}/man7/roff.7*
%{_mandir}/man7/tbl.mandoc.7*
%ghost %{_mandir}/man7/tbl.7*
%{_mandir}/man8/makewhatis.mandoc.8*
%ghost %{_mandir}/man8/makewhatis.8*

%files -n libmandoc-devel
%license LICENSE
%{_libdir}/libmandoc.a
%{_includedir}/eqn.h
%{_includedir}/man.h
%{_includedir}/mandoc.h
%{_includedir}/mandoc_aux.h
%{_includedir}/mandoc_parse.h
%{_includedir}/mdoc.h
%{_includedir}/roff.h
%{_includedir}/tbl.h
%{_mandir}/man3/mandoc.3*
%{_mandir}/man3/mandoc_escape.3*
%{_mandir}/man3/mandoc_malloc.3*
%{_mandir}/man3/mansearch.3*
%{_mandir}/man3/mchars_alloc.3*
%{_mandir}/man3/tbl.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14607 |21mr|mandriva-doc-2010.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define distrib_name Mandriva Linux
%define group Books/Computer books
%define libdrakx %{_prefix}/lib/libDrakX
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Name:		mandriva-doc
Summary:	%distrib_name documentation
Version:	2010.1
Release:	5

License:	Open Publication License
Group:		%group
Url:		http://wiki.mandriva.com/en/Development/Tasks/Documentation

Source0:	%{name}.tar.bz2
Source1:	%{name}-%{version}.tar.bz2

BuildArch:	noarch
BuildRequires:  wget
BuildRequires:  locales-en
BuildRequires:  locales-fr
BuildRequires:  locales-pt
BuildRequires:  locales-it
BuildRequires:  locales-de
BuildRequires:  locales-es


%define LANGS en fr pt_br it de es

%description
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the menus.


%package Mastering-Manual-en
Summary:        The %distrib_name manuals in English
Group:          %group
Requires:       locales-en
Requires:       mandriva-doc-common >= %{version}-%{release}

%description Mastering-Manual-en
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the main menu.

%package Drakxtools-Guide-en
Summary:        The %distrib_name manuals in English
Group:          %group
Requires:       locales-en
Requires:       mandriva-doc-common >= %{version}-%{release}

%description Drakxtools-Guide-en
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the main menu.

%package Introducing-en
Summary:        The %distrib_name manuals in English
Group:          %group
Requires:       locales-en
Requires:       mandriva-doc-common >= %{version}-%{release}

%description Introducing-en
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the main menu.

%package Mastering-Manual-fr
Summary:        The %distrib_name manuals in French
Group:          %group
Requires:       locales-fr
Requires:       mandriva-doc-common >= %{version}-%{release}

%description Mastering-Manual-fr
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the main menu.

%package Drakxtools-Guide-fr
Summary:        The %distrib_name manuals in French
Group:          %group
Requires:       locales-fr
Requires:       mandriva-doc-common >= %{version}-%{release}

%description Drakxtools-Guide-fr
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the main menu.

%package Introducing-fr
Summary:        The %distrib_name manuals in French
Group:          %group
Requires:       locales-fr
Requires:       mandriva-doc-common >= %{version}-%{release}

%description Introducing-fr
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the main menu.

%package Drakxtools-Guide-pt_br
Summary:        The %distrib_name manuals in Brazilian Portuguese
Group:          %group
Requires:       locales-pt
Requires:       mandriva-doc-common >= %{version}-%{release}

%description Drakxtools-Guide-pt_br
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the main menu.

%package Introducing-pt_br
Summary:        The %distrib_name manuals in Brazilian Portuguese
Group:          %group
Requires:       locales-pt
Requires:       mandriva-doc-common >= %{version}-%{release}

%description Introducing-pt_br
This package contains some useful documentation for %distrib_name systems.
This documentation is directly accessible through the main menu.


%package common
Summary:	Common data for all %distrib_name specific documentation
Group:		%group

%description common

This package contains common icons and images for all %distrib_name
specific documentation, plus the index file matching Help IDs to HTML
help pages.

%package installer-help
Summary:	DrakX Installer help in all available languages for %distrib_name
Group:		%group

%description installer-help

This package contains the HTML files used as inline help during the
installation procedure of %distrib_name


%prep

%setup -q -c %{name}-%{version} -a 1


%install
rm -fr %{buildroot}


install -d -m 0755 %{buildroot}/%{_menudir}
DESTDIR=%{buildroot}/%{_docdir}

#install the books themselves and menu entries

install -d -m 0755 $DESTDIR/mandriva/images/


# build menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-Mastering-Manual-en.desktop << EOF
[Desktop Entry]
Name=%distrib_name Starter Guide in English
Comment=The %distrib_name manuals in English
Exec=%{_bindir}/www-browser %{_docdir}/mandriva/en/Mastering-Manual/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

# install manuals
install -d -m 0755 $DESTDIR/mandriva/en/
install -d -m 0755 $DESTDIR/mandriva/en/Mastering-Manual/
mv publications/en/Mastering-Manual.html $DESTDIR/mandriva/en/Mastering-Manual/Mastering-Manual.html

#install the DrakX Inline HTML Help
install -d -m 0755 $DESTDIR/installer-help/en/
for f in publications/en/DrakX-Help.html/*.html; do
i=$(basename $f | sed -e "s/drakxid-//; s/drakx-//")
mv $f %{buildroot}/%{_docdir}/installer-help/en/$i
done
ln -s ../images  %{buildroot}/%{_docdir}/installer-help/en/images
# build menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-Drakxtools-Guide-en.desktop << EOF
[Desktop Entry]
Name=%distrib_name DrakXTools User Manual in English
Comment=The %distrib_name manuals in English
Exec=%{_bindir}/www-browser %{_docdir}/mandriva/en/Drakxtools-Guide/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

# install manuals
install -d -m 0755 $DESTDIR/mandriva/en/
install -d -m 0755 $DESTDIR/mandriva/en/Drakxtools-Guide/
mv publications/en/Drakxtools-Guide.html $DESTDIR/mandriva/en/Drakxtools-Guide/Drakxtools-Guide.html

# build menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-Introducing-en.desktop << EOF
[Desktop Entry]
Name=%distrib_name Quick Startup Guide in English
Comment=The %distrib_name manuals in English
Exec=%{_bindir}/www-browser %{_docdir}/mandriva/en/Introducing/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

# install manuals
install -d -m 0755 $DESTDIR/mandriva/en/
install -d -m 0755 $DESTDIR/mandriva/en/Introducing/
mv publications/en/Introducing.html $DESTDIR/mandriva/en/Introducing/Introducing.html

# build menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-Mastering-Manual-fr.desktop << EOF
[Desktop Entry]
Name=%distrib_name Starter Guide in French
Comment=The %distrib_name manuals in French
Exec=%{_bindir}/www-browser %{_docdir}/mandriva/fr/Mastering-Manual/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

# install manuals
install -d -m 0755 $DESTDIR/mandriva/fr/
install -d -m 0755 $DESTDIR/mandriva/fr/Mastering-Manual/
mv publications/fr/Mastering-Manual.html $DESTDIR/mandriva/fr/Mastering-Manual/Mastering-Manual.html

#install the DrakX Inline HTML Help
install -d -m 0755 $DESTDIR/installer-help/fr/
for f in publications/fr/DrakX-Help.html/*.html; do
i=$(basename $f | sed -e "s/drakxid-//; s/drakx-//")
mv $f %{buildroot}/%{_docdir}/installer-help/fr/$i
done
ln -s ../images  %{buildroot}/%{_docdir}/installer-help/fr/images
# build menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-Drakxtools-Guide-fr.desktop << EOF
[Desktop Entry]
Name=%distrib_name DrakXTools User Manual in French
Comment=The %distrib_name manuals in French
Exec=%{_bindir}/www-browser %{_docdir}/mandriva/fr/Drakxtools-Guide/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

# install manuals
install -d -m 0755 $DESTDIR/mandriva/fr/
install -d -m 0755 $DESTDIR/mandriva/fr/Drakxtools-Guide/
mv publications/fr/Drakxtools-Guide.html $DESTDIR/mandriva/fr/Drakxtools-Guide/Drakxtools-Guide.html

# build menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-Introducing-fr.desktop << EOF
[Desktop Entry]
Name=%distrib_name Quick Startup Guide in French
Comment=The %distrib_name manuals in French
Exec=%{_bindir}/www-browser %{_docdir}/mandriva/fr/Introducing/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

# install manuals
install -d -m 0755 $DESTDIR/mandriva/fr/
install -d -m 0755 $DESTDIR/mandriva/fr/Introducing/
mv publications/fr/Introducing.html $DESTDIR/mandriva/fr/Introducing/Introducing.html

#install the DrakX Inline HTML Help
install -d -m 0755 $DESTDIR/installer-help/pt_br/
for f in publications/pt_br/DrakX-Help.html/*.html; do
i=$(basename $f | sed -e "s/drakxid-//; s/drakx-//")
mv $f %{buildroot}/%{_docdir}/installer-help/pt_br/$i
done
ln -s ../images  %{buildroot}/%{_docdir}/installer-help/pt_br/images
# build menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-Drakxtools-Guide-pt_br.desktop << EOF
[Desktop Entry]
Name=%distrib_name DrakXTools User Manual in Brazilian Portuguese
Comment=The %distrib_name manuals in Brazilian Portuguese
Exec=%{_bindir}/www-browser %{_docdir}/mandriva/pt_br/Drakxtools-Guide/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

# install manuals
install -d -m 0755 $DESTDIR/mandriva/pt_br/
install -d -m 0755 $DESTDIR/mandriva/pt_br/Drakxtools-Guide/
mv publications/pt_br/Drakxtools-Guide.html $DESTDIR/mandriva/pt_br/Drakxtools-Guide/Drakxtools-Guide.html

# build menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-Introducing-pt_br.desktop << EOF
[Desktop Entry]
Name=%distrib_name Quick Startup Guide in Brazilian Portuguese
Comment=The %distrib_name manuals in Brazilian Portuguese
Exec=%{_bindir}/www-browser %{_docdir}/mandriva/pt_br/Introducing/index.html
Icon=documentation_section
Terminal=false
Type=Application
StartupNotify=true
Categories=Documentation;
EOF

# install manuals
install -d -m 0755 $DESTDIR/mandriva/pt_br/
install -d -m 0755 $DESTDIR/mandriva/pt_br/Introducing/
mv publications/pt_br/Introducing.html $DESTDIR/mandriva/pt_br/Introducing/Introducing.html

#install the DrakX Inline HTML Help
install -d -m 0755 $DESTDIR/installer-help/it/
for f in publications/it/DrakX-Help.html/*.html; do
i=$(basename $f | sed -e "s/drakxid-//; s/drakx-//")
mv $f %{buildroot}/%{_docdir}/installer-help/it/$i
done
ln -s ../images  %{buildroot}/%{_docdir}/installer-help/it/images
#install the DrakX Inline HTML Help
install -d -m 0755 $DESTDIR/installer-help/de/
for f in publications/de/DrakX-Help.html/*.html; do
i=$(basename $f | sed -e "s/drakxid-//; s/drakx-//")
mv $f %{buildroot}/%{_docdir}/installer-help/de/$i
done
ln -s ../images  %{buildroot}/%{_docdir}/installer-help/de/images
#install the DrakX Inline HTML Help
install -d -m 0755 $DESTDIR/installer-help/es/
for f in publications/es/DrakX-Help.html/*.html; do
i=$(basename $f | sed -e "s/drakxid-//; s/drakx-//")
mv $f %{buildroot}/%{_docdir}/installer-help/es/$i
done
ln -s ../images  %{buildroot}/%{_docdir}/installer-help/es/images
mv %{buildroot}/%{_docdir}/installer-help/en/* %{buildroot}/%{_docdir}/installer-help/
rm -f %{buildroot}/%{_docdir}/installer-help/images
mv publications/en/DrakX-Help.html/images %{buildroot}/%{_docdir}/installer-help/
rm -rf %{buildroot}/%{_docdir}/installer-help/en
ln -s . %{buildroot}/%{_docdir}/installer-help/en
sed -i -e 's!drakxid-!!g; s!drakx-!!g' %{buildroot}/%{_docdir}/installer-help/*.html %{buildroot}/%{_docdir}/installer-help/*/*.html


# build HTML index file
cat > $DESTDIR/mandriva/en/Mastering-Manual/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<img src="../../images/MDKlinux.png" border="0">
<br/><br/>
<table style="width: 80%;" >
  <tbody>
    <tr>
    <a href="Mastering-Manual.html/index.html">
      <img src="../../images/manuel-face.png" align="center" border="0">
       HTML</a>
    </tr>
<!--
    <tr>
      <a href="Mastering-Manual.pdf">
      <img src="../../images/manuel-face.png" align="center" border="0"> 
      PDF</a>
      </tr>
-->
    </tbody>
  </table>
</center>
</body>
</html>
EOF
# build HTML index file
cat > $DESTDIR/mandriva/en/Drakxtools-Guide/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<img src="../../images/MDKlinux.png" border="0">
<br/><br/>
<table style="width: 80%;" >
  <tbody>
    <tr>
    <a href="Drakxtools-Guide.html/index.html">
      <img src="../../images/manuel-face.png" align="center" border="0">
       HTML</a>
    </tr>
<!--
    <tr>
      <a href="Drakxtools-Guide.pdf">
      <img src="../../images/manuel-face.png" align="center" border="0"> 
      PDF</a>
      </tr>
-->
    </tbody>
  </table>
</center>
</body>
</html>
EOF
# build HTML index file
cat > $DESTDIR/mandriva/en/Introducing/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<img src="../../images/MDKlinux.png" border="0">
<br/><br/>
<table style="width: 80%;" >
  <tbody>
    <tr>
    <a href="Introducing.html/index.html">
      <img src="../../images/manuel-face.png" align="center" border="0">
       HTML</a>
    </tr>
<!--
    <tr>
      <a href="Introducing.pdf">
      <img src="../../images/manuel-face.png" align="center" border="0"> 
      PDF</a>
      </tr>
-->
    </tbody>
  </table>
</center>
</body>
</html>
EOF
# build HTML index file
cat > $DESTDIR/mandriva/fr/Mastering-Manual/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<img src="../../images/MDKlinux.png" border="0">
<br/><br/>
<table style="width: 80%;" >
  <tbody>
    <tr>
    <a href="Mastering-Manual.html/index.html">
      <img src="../../images/manuel-face.png" align="center" border="0">
       HTML</a>
    </tr>
<!--
    <tr>
      <a href="Mastering-Manual.pdf">
      <img src="../../images/manuel-face.png" align="center" border="0"> 
      PDF</a>
      </tr>
-->
    </tbody>
  </table>
</center>
</body>
</html>
EOF
# build HTML index file
cat > $DESTDIR/mandriva/fr/Drakxtools-Guide/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<img src="../../images/MDKlinux.png" border="0">
<br/><br/>
<table style="width: 80%;" >
  <tbody>
    <tr>
    <a href="Drakxtools-Guide.html/index.html">
      <img src="../../images/manuel-face.png" align="center" border="0">
       HTML</a>
    </tr>
<!--
    <tr>
      <a href="Drakxtools-Guide.pdf">
      <img src="../../images/manuel-face.png" align="center" border="0"> 
      PDF</a>
      </tr>
-->
    </tbody>
  </table>
</center>
</body>
</html>
EOF
# build HTML index file
cat > $DESTDIR/mandriva/fr/Introducing/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<img src="../../images/MDKlinux.png" border="0">
<br/><br/>
<table style="width: 80%;" >
  <tbody>
    <tr>
    <a href="Introducing.html/index.html">
      <img src="../../images/manuel-face.png" align="center" border="0">
       HTML</a>
    </tr>
<!--
    <tr>
      <a href="Introducing.pdf">
      <img src="../../images/manuel-face.png" align="center" border="0"> 
      PDF</a>
      </tr>
-->
    </tbody>
  </table>
</center>
</body>
</html>
EOF
# build HTML index file
cat > $DESTDIR/mandriva/pt_br/Drakxtools-Guide/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<img src="../../images/MDKlinux.png" border="0">
<br/><br/>
<table style="width: 80%;" >
  <tbody>
    <tr>
    <a href="Drakxtools-Guide.html/index.html">
      <img src="../../images/manuel-face.png" align="center" border="0">
       HTML</a>
    </tr>
<!--
    <tr>
      <a href="Drakxtools-Guide.pdf">
      <img src="../../images/manuel-face.png" align="center" border="0"> 
      PDF</a>
      </tr>
-->
    </tbody>
  </table>
</center>
</body>
</html>
EOF
# build HTML index file
cat > $DESTDIR/mandriva/pt_br/Introducing/index.html <<EOF
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body>
<center>
<img src="../../images/MDKlinux.png" border="0">
<br/><br/>
<table style="width: 80%;" >
  <tbody>
    <tr>
    <a href="Introducing.html/index.html">
      <img src="../../images/manuel-face.png" align="center" border="0">
       HTML</a>
    </tr>
<!--
    <tr>
      <a href="Introducing.pdf">
      <img src="../../images/manuel-face.png" align="center" border="0"> 
      PDF</a>
      </tr>
-->
    </tbody>
  </table>
</center>
</body>
</html>
EOF


# install ctxhelp.pm which tells drakhelp which HTML help page
# corresponds to which application help button
install -d -m 0755 %{buildroot}/%{libdrakx}/
install -m 0644 %{name}/ctxhelp.pm %{buildroot}/%{libdrakx}/
install -d -m 0755 %{buildroot}/%{_sbindir}/
install -m 0755 %{name}/drakhelp_inst %{buildroot}/%{_sbindir}/
# install images for index files
for i in mandriva-doc/images/*; do
  install -m 0644 $i %{buildroot}/%{_docdir}/mandriva/images/
done

%files common
%dir %{_docdir}/mandriva/
%{libdrakx}/ctxhelp.pm
%{_sbindir}/drakhelp_inst
%docdir %{_docdir}/mandriva/images/
%dir %{_docdir}/mandriva/images/
%doc %{_docdir}/mandriva/images/*

%files installer-help
%dir %{_docdir}/installer-help/
%docdir %{_docdir}/installer-help/
%doc %{_docdir}/installer-help/*

%files Mastering-Manual-en
%{_datadir}/applications/%{name}-Mastering-Manual-en.desktop
%dir %{_docdir}/mandriva/en/Mastering-Manual
%doc %{_docdir}/mandriva/en/Mastering-Manual/*

%files Drakxtools-Guide-en
%{_datadir}/applications/%{name}-Drakxtools-Guide-en.desktop
%dir %{_docdir}/mandriva/en/Drakxtools-Guide
%doc %{_docdir}/mandriva/en/Drakxtools-Guide/*

%files Introducing-en
%{_datadir}/applications/%{name}-Introducing-en.desktop
%dir %{_docdir}/mandriva/en/Introducing
%doc %{_docdir}/mandriva/en/Introducing/*

%files Mastering-Manual-fr
%{_datadir}/applications/%{name}-Mastering-Manual-fr.desktop
%dir %{_docdir}/mandriva/fr/Mastering-Manual
%doc %{_docdir}/mandriva/fr/Mastering-Manual/*

%files Drakxtools-Guide-fr
%{_datadir}/applications/%{name}-Drakxtools-Guide-fr.desktop
%dir %{_docdir}/mandriva/fr/Drakxtools-Guide
%doc %{_docdir}/mandriva/fr/Drakxtools-Guide/*

%files Introducing-fr
%{_datadir}/applications/%{name}-Introducing-fr.desktop
%dir %{_docdir}/mandriva/fr/Introducing
%doc %{_docdir}/mandriva/fr/Introducing/*

%files Drakxtools-Guide-pt_br
%{_datadir}/applications/%{name}-Drakxtools-Guide-pt_br.desktop
%dir %{_docdir}/mandriva/pt_br/Drakxtools-Guide
%doc %{_docdir}/mandriva/pt_br/Drakxtools-Guide/*

%files Introducing-pt_br
%{_datadir}/applications/%{name}-Introducing-pt_br.desktop
%dir %{_docdir}/mandriva/pt_br/Introducing
%doc %{_docdir}/mandriva/pt_br/Introducing/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14608 |21mr|mandriva-kde-translation-2012.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Localization files for Mandriva KDE strings
Name:		mandriva-kde-translation
Version:	2012.1
Release:	10
License:	GPLv2+
Group:		System/Base
Url:		http://www.rosalinux.com
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	gettext
BuildArch:	noarch

%description
This package includes that translations that have been added on Mandriva KDE.

%files -f %{name}.lang
%defattr(-,root,root,0755)

#--------------------------------------------------------------------

%prep
%setup -qn %{name}

%build

%install
mkdir -p %{buildroot}%{_datadir}/locale

#make po_files
for i in ./*.po
do
  langdir="%{buildroot}%{_datadir}/locale/`basename ${i} .po`/LC_MESSAGES/"
  mkdir -p ${langdir}
  msgfmt -o	${langdir}/mandriva-kde-translation.mo ${i}
done

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14609 |21mr|man-pages-5.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LANG en

Summary:       English man (manual) pages from the Linux Documentation Project
Name:          man-pages
Version:       5.13
Release:       1
License:       GPL-style
Group:         System/Internationalization
URL:           http://www.kernel.org/doc/man-pages
Source:        https://git.kernel.org/pub/scm/docs/%{name}/%{name}.git/snapshot/%{name}-%{version}.tar.gz
BuildRequires: man => 1.5j-8mdk
Requires:      man => 1.5j-8mdk
BuildArch:     noarch

%description
A large collection of man pages (reference material) from the Linux 
Documentation Project (LDP).  The man pages are organized into the
following sections:

        Section 1:  User commands (intro only)
        Section 2:  System calls
        Section 3:  Libc calls
        Section 4:  Devices (e.g., hd, sd)
        Section 5:  File formats and protocols (e.g., wtmp, /etc/passwd,
                nfs)
        Section 6:  Games (intro only)
        Section 7:  Conventions, macro packages, etc. (e.g., nroff, ascii)
        Section 8:  System administration (intro only)
        Section 9:  Kernel internal routines

%prep
%setup -q

%build
# those conflict with ld.so package
# this one conflicts with bind-utils
rm -rf man5/resolver.5

# this conflicts with ldconfig -- Geoff
rm -f man8/ldconfig.8
	
# remove man pages deprecated by libxcrypt (#1610307)
rm -f man3/crypt{,_r}.3

# this conflict with glibc
rm -f man1/rpcgen.1.bz2

%install
make install DESTDIR=%{buildroot} prefix=%{_prefix}

%pre
[ -L %{_mandir}/man7/man.7.xz ] || rm -f %{_mandir}/man7/man.7.xz >/dev/null 2>&1 || :

%post
# set up the alternatives files
%{_sbindir}/update-alternatives --install %{_mandir}/man7/man.7.xz man.7.xz %{_mandir}/man7/%{name}.7.xz 300 \
    >/dev/null 2>&1 || :
 
%preun
if [ $1 -eq 0 ]; then
    %{_sbindir}/update-alternatives --remove man.7.xz %{_mandir}/man7/man.%{name}.7.gz >/dev/null 2>&1 || :
fi
 
%postun
if [ $1 -ge 1 ]; then
    if [ "$(readlink %{_sysconfdir}/alternatives/man.7.xz)" == "%{_mandir}/man7/man.%{name}.7.gz" ]; then
        %{_sbindir}/update-alternatives --set man.7.xz %{_mandir}/man7/man.%{name}.7.gz >/dev/null 2>&1 || :
    fi
fi

%files
%doc README man-pages-%{version}.Announce Changes
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14610 |21mr|man-pages-cs-0.18.20090209-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG cs

Summary:	Czech Linux Manual Pages
Name:		man-pages-%{LNG}
Version:	0.18.20090209
Release:	14
License:	Distributable
Group:		System/Internationalization
Url:		http://tropikhajma.sweb.cz/man-pages-cs/
Source0:	http://tropikhajma.sweb.cz/%{name}/%{name}-%{version}.tar.lzma
BuildRequires:	man
Requires:	man
Requires:	locales-%{LNG}
Provides:	man-%{LNG} = %{EVRD}
Provides:	manpages-%{LNG} = %{EVRD}
Autoreqprov:	false
BuildArch:	noarch

%description
A large collection of man pages (reference material) from the Linux 
Documentation Project (LDP), translated to Czech.  The man pages are
organized into the following sections:

	Section 1:  User commands (intro only)
	Section 2:  System calls
	Section 3:  Libc calls
	Section 4:  Devices (e.g., hd, sd)
	Section 5:  File formats and protocols (e.g., wtmp, %{_sysconfdir}passwd, nfs)
	Section 6:  Games (intro only)
	Section 7:  Conventions, macro packages, etc. (e.g., nroff, ascii)
	Section 8:  System administration (intro only)

%files
%defattr(0644,root,man,755)
%doc README* Changelog CONTRIB.old
%dir %{_mandir}/%{LNG}
%dir %{_var}/cache/man/%{LNG}
%ghost %config(noreplace) %{_var}/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
%if %{mdvver} < 201910
%{_mandir}/%{LNG}/CACHEDIR.TAG*
%endif
%{_mandir}/%{LNG}/index.db*
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

%post
%create_ghostfile %{_var}/cache/man/%{LNG}/whatis root root 644

%postun
# 0 means deleting the package
if [ "$1" = "0" ]; then
   ## Force removing of %{_var}/cache/man/%{LNG}, if there isn't any man page
   ## directory /%{_mandir}/%{LNG}
   if [ ! -d %{_mandir}/%{LNG} ] ; then
       rm -rf %{_var}/cache/man/%{LNG}
   fi
fi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# Preserve better versions...
rm ./procps/kill.1
rm ./procps/uptime.1
rm ./man-pages/man1/du.1
rm ./man-pages/man1/dir.1
rm ./man-pages/man1/vdir.1

%install
mkdir -p %{buildroot}/%{_mandir}/%{LNG}/
make install DESTDIR=%{buildroot} MANDIR=%{_mandir}/%{LNG}/

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}/%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly

cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}%{_var}/cache/man/%{LNG}

touch %{buildroot}%{_var}/cache/man/%{LNG}/whatis

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14611 |21mr|man-pages-da-0.1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG da

Summary:        Danish man pages from the Linux Documentation Project
Name:           man-pages-%LNG
Version:        0.1.2
Release:        4
License:        Distributable
Group:          System/Internationalization
URL:            http://www.sslug.dk/locale/man-sider/
Source0:        http://www.sslug.dk/locale/man-sider/manpages-da-%{version}.tar.gz
Patch0:         manpages-da-0.1.2-manpaths.patch

BuildRequires:  sed
BuildRequires:  grep
BuildRequires:  man
Requires:       locales-%LNG
Requires:       man
AutoReq:        no
BuildArch:      noarch

%description
A large collection of man pages (reference material) from the Linux
Documentation Project (LDP), translated to Danish.  The man pages are
organized into the following sections:

        Section 1:  User commands (intro only)
        Section 2:  System calls
        Section 3:  Libc calls
        Section 4:  Devices (e.g., hd, sd)
        Section 5:  File formats and protocols (e.g., wtmp, %{_sysconfdir}/passwd,
                    nfs)
        Section 6:  Games (intro only)
        Section 7:  Conventions, macro packages, etc. (e.g., nroff, ascii)
        Section 8:  System administration (intro only)

%prep
%setup -q -n manpages-da-%{version}

# Fix encoding
for file in *; do
  iconv -f ISO-8859-1 -t UTF-8 $file > $file.new
  touch -r $file $file.new
  mv $file.new $file
done
mv l?smig læsmig

%apply_patches

%build

%install
%makeinstall_std PREFIX=%{buildroot}%{_prefix}

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}/%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}

touch %{buildroot}/var/cache/man/%{LNG}/whatis

%postun
# 0 means deleting the package
if [ "$1" = "0" ]; then
   ## Force removing of /var/catman/%%{LNG}, if there isn't any man page
   ## directory /%%{_mandir}/%%{LNG}
   if [ ! -d %{_mandir}/%{LNG} ] ; then
       /bin/rm -rf /var/catman/%{LNG}
   fi
fi

%post
%create_ghostfile /var/cache/man/%{LNG}/whatis root root 644

%files
%doc læsmig AUTHORS ChangeLog
%dir /var/cache/man/%{LNG}
%ghost %config(noreplace) /var/cache/man/%{LNG}/whatis
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron
%{_mandir}/%{LNG}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14612 |21mr|man-pages-de-4.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (doktor5000) this package buildrequires other packages for their original/untranslated man pages
# those are then used to check and generate the localised versions of the contained man pages
# missing original man pages, for which localised version would be present, can be checked e.g. via
# bl man-pages-de.spec 2>&1 | grep "could not be found" | sort -u

%define	LNG de
%define	gitrevision aeb3e35
%define	srcname manpages-%{LNG}

Name:		man-pages-%{LNG}
Version:	4.0.0
Release:	2
Summary:	German man (manual) pages from the Linux Documentation Project
License:	GPLv3
Group:		System/Internationalization
Url:		https://salsa.debian.org/manpages-l10n-team/manpages-l10n
BuildArch:	noarch

Source0:	%{srcname}-%{gitrevision}.tar.gz

BuildRequires:	man-db
BuildRequires:	po4a

Requires:	locales-%LNG
Requires:	man
Provides:	man-%LNG = %{version}-%{release}
Provides:	manpages-%LNG = %{version}-%{release}

%description
A large collection of man pages (reference material) from the Linux
Documentation Project (LDP), translated to German.  The man pages are
organized into the following sections:

        Section 1:  User commands (intro only)
        Section 2:  System calls
        Section 3:  Libc calls
        Section 4:  Devices (e.g., hd, sd)
        Section 5:  File formats and protocols (e.g., wtmp, %{_sysconfdir}/passwd,
                    nfs)
        Section 6:  Games (intro only)
        Section 7:  Conventions, macro packages, etc. (e.g., nroff, ascii)
        Section 8:  System administration (intro only)

%prep
%setup -qn %{srcname}-%{gitrevision}

%build

%install
mkdir -p %{buildroot}/%{_mandir}/%{LNG}/man{1,2,3,4,5,6,7,8,9,n}
mkdir -p %{buildroot}%{_var}/catman/%{LNG}/cat{1,2,3,4,5,6,7,8,9,n}

for i in 1 2 3 4 5 6 7 8; do
	if [ -d man$i ] ; then
		cp -avf man$i %{buildroot}%{_mandir}/%{LNG}/
	else
		echo "man$i does not exist"
	fi
done

# those files conflict whith net-tools
# nothing to remove for now

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}/%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}%{_var}/cache/man/%{LNG}

touch %{buildroot}%{_var}/cache/man/%{LNG}/whatis

%postun
# 0 means deleting the package
if [ "$1" = "0" ]; then
   ## Force removing of /var/catman/%{LNG}, if there isn't any man page
   ## directory /%{_mandir}/%{LNG}
   if [ ! -d %{_mandir}/%{LNG} ] ; then
       rm -rf %{_var}/catman/%{LNG}
   fi
fi

%post
%create_ghostfile %{_var}/cache/man/%{LNG}/whatis root root 644

%files
%doc CHANGES README COPYRIGHT
%dir %{_var}/cache/man/%{LNG}
%ghost %config(noreplace) %{_var}/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
%{_mandir}/%{LNG}/index.db*
%attr(755,root,man) %{_var}/catman/%{LNG}
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14613 |21mr|man-pages-es-1.55-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG es
%define extra_ver 0.8a

Summary:	Spanish man (manual) pages from the Linux Documentation Project
Name:		man-pages-%{LNG}
Version:	1.55
Release:	23
License:	LDP GENERAL PUBLIC LICENSE
Group:		System/Internationalization
#Url:		http://www.pameli.org/
Url:		http://www.ditec.um.es/~piernas/manpages-es/
Source0:	http://www.ditec.um.es/~piernas/manpages-es/man-pages-es-%{version}.tar.bz2  
Source1:	http://www.ditec.um.es/~piernas/manpages-es/man-pages-es-extra-%{extra_ver}.tar.bz2  
BuildArch:	noarch
BuildRequires:	man
Requires:	locales-%{LNG}
Requires:	man
Requires(post,preun):	sed grep man
Autoreq:	false

%description
A large collection of man pages (reference material) from the Linux 
Documentation Project (LDP), translated to spanish.  The man pages are
organized into the following sections:

        Section 1:  User commands (intro only)
        Section 2:  System calls
        Section 3:  Libc calls
        Section 4:  Devices (e.g., hd, sd)
        Section 5:  File formats and protocols (e.g., wtmp, %{_sysconfdir}passwd,
                nfs)
        Section 6:  Games (intro only)
        Section 7:  Conventions, macro packages, etc. (e.g., nroff, ascii)
        Section 8:  System administration (intro only)


%prep
%setup -n man-pages-%{LNG}-%{version} -a1
%build

%install
mkdir -p %{buildroot}/%{_mandir}/%{LNG}/man{1,2,3,4,5,6,7,8,9,n}
mkdir -p %{buildroot}/var/catman/%{LNG}/cat{1,2,3,4,5,6,7,8,9,n}

mv man1/{README,LEAME} .

make MANDIR=%{buildroot}/%{_mandir}/es allbz

make -C man-pages-es-extra-%{extra_ver} MANDIR=%{buildroot}/%{_mandir}/es allbz

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}/%{_mandir}/%{LNG}

# conflicts with mc
rm %{buildroot}%{_mandir}/es/man1/mc.1*

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}
rm -f %{buildroot}/usr/share/man/es/{LEEME,LEEME.extra,PAQUETES,PROYECTO}

touch %{buildroot}/var/cache/man/%{LNG}/whatis

%postun
# 0 means deleting the package
if [ "$1" = "0" ]; then
   ## Force removing of /var/catman/%{LNG}, if there isn't any man page
   ## directory /%{_mandir}/%{LNG}
   if [ ! -d %{_mandir}/%{LNG} ] ; then
       rm -rf /var/catman/%{LNG}
   fi
fi

%post
%create_ghostfile /var/cache/man/%{LNG}/whatis root root 644

%files
%doc LEEME README man-pages-es-extra-%{extra_ver}/LEEME.extra
%doc man-pages-es-extra-%{extra_ver}/PAQUETES 
%doc man-pages-es-extra-%{extra_ver}/PROYECTO
%dir /var/cache/man/%{LNG}
%ghost %config(noreplace) /var/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/*
#%{_mandir}/%{LNG}/cat*
#%{_mandir}/%{LNG}/index.db*
%attr(755,root,man) /var/catman/%{LNG}
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14614 |21mr|man-pages-fr-3.70-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG fr

Summary:	French man (manual) pages from the Linux Documentation Project
Name:		man-pages-fr
Version:	3.70
Release:	8
License:	GPL
Group:		System/Internationalization
Url:		https://alioth.debian.org/projects/perkamon/
Source0:	https://alioth.debian.org/frs/download.php/file/4119/%{name}-%{version}-1.tar.xz
Source2:	man-pages-fr-goodies.tar.bz2
Source3:	http://www.delafond.org/traducmanfr/mansupfr.tar.bz2
Source4:	http://www.delafond.org/traducmanfr/archivemansupfr.tar.bz2
Source10:	http://www.enstimac.fr/Perl/perl-all-fr-man.tar.bz2
Source11:	man-pages-fr-1.58-extras.tar.bz2
Source12:	man-pages-extras-fr-0.7.9.tar.bz2
Source13:	http://manpagesfr.free.fr/download/man-pages-sup-fr-20080606.tar.bz2
Source20:	books-fr.xpm
BuildRequires:	man
Requires:	locales-fr
Requires:	man
Provides:	man-fr = %{EVRD}
Provides:	manpages-fr = %{EVRD}
Autoreqprov:	false
BuildArch:	noarch

%description
A large collection of man pages (reference material) from the Linux 
Documentation Project (LDP), translated to French.  The man pages are
organized into the following sections:

        Section 1:  User commands (intro only)
        Section 2:  System calls
        Section 3:  Libc calls
        Section 4:  Devices (e.g., hd, sd)
        Section 5:  File formats and protocols (e.g., wtmp, %{_sysconfdir}passwd,
                nfs)
        Section 5:  Games (intro only)
        Section 7:  Conventions, macro packages, etc. (e.g., nroff, ascii)
        Section 8:  System administration (intro only)
        Section 9:  Kernel routines

%files
%defattr(0644,root,man,755)
%doc README.fr
%attr(0755,root,root) %dir %{_mandir}/%{LNG}
%dir %{_var}/cache/man/%{LNG}
%ghost %config(noreplace) %{_var}/cache/man/%{LNG}/whatis
%attr(0755,root,root) %dir %{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/man*/*
%if %{mdvver} < 201910
%{_mandir}/%{LNG}/CACHEDIR.TAG*
%endif
%{_mandir}/%{LNG}/index.db*
%{_mandir}/%{LNG}/cat*
%attr(755,root,man) %{_var}/catman/%{LNG}
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

%post
%create_ghostfile %{_var}/cache/man/%{LNG}/whatis root root 644

%postun
# 0 means deleting the package
if [ "$1" = "0" ]; then
   ## Force removing of %{_var}/catman/%{LNG}, if there isn't any man page
   ## directory /%{_mandir}/%{LNG}
   if [ ! -d %{_mandir}/%{LNG} ] ; then
       rm -rf %{_var}/catman/%{LNG}
   fi
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n fr -a3 -a4 -a10 -a11 -a12 -a13

%build
rm -f man2/core.21??
for dis in {archive_des_mans,pagesdeman}/{debian,mandriva}; do
	rmdir $dis/* || :
	for sec in 1 2 3 4 5 7 8 9; do
		[[ -d $dis/man$sec/ ]] && mv $dis/man$sec/* pagesdeman/%{_mandir}/%{LNG}/man$sec/
	done
done

for i in man{1,2,3,4,5,6,7,8,9}; do mv pagesdeman%{_mandir}/%{LNG}/$i/* $i||true;done
for i in man{1,3,5,8}; do mv archive_des_mans/$i/* $i||true;done 
# perl man pages:
mv DocFr/* man1

%install
ln -sf iso_8859-1.7 man7/latin1.7; ln -sf iso_8859-1.7 man7iso_8859_7.7
mkdir -p %{buildroot}/%{_mandir}/%{LNG}/man{1,2,3,4,5,6,7}

# install X man pages :
for i in man{1,3,4,5,6}; do cp -a pagesdeman/usr/X11R6/man/%{LNG}/$i/*  %{buildroot}/%{_mandir}/%{LNG}/$i;done

mkdir -p %{buildroot}%{_var}/catman/%{LNG}/cat{1,2,3,4,5,6,7,8,9,n}

for i in 1 2 3 4 5 6 7 8 9 ; do
	cp -adprf man$i %{buildroot}/%{_mandir}/%{LNG}/||:
done

#
# remove doble files
#
rm %{buildroot}/%{_mandir}/%{LNG}/man1/xawtv.1*
# this one is provided by alsaconf:
rm -f %{buildroot}/%{_mandir}/%{LNG}/man8/alsaconf.8
# these come from initscripts
rm %{buildroot}/%{_mandir}/%{LNG}/{man8/usernetctl.8*,man1/{consoletype,doexec,netreport,usleep}.1*}
# these come from wireless:
rm %{buildroot}/%{_mandir}/%{LNG}/{man5/iftab.5,man7/wireless.7,man8/{iwgetid,ifrename}.8}*
# these are provided by cups now
rm %{buildroot}/%{_mandir}/%{LNG}/man*/{cancel,cups,{backend,filter}.1,lp,classes,disable,mime.{conv,type}s,printers.conf,{accept,enable,reject}.8}*
# these are provided by dpkg
rm %{buildroot}/%{_mandir}/%{LNG}/man{1/{dpkg-deb,dpkg-name,dpkg-source},5/deb{,-control},8/{cleanup-info,dpkg{,-{divert,query,scanpackages,scansources,split,statoverride}},install-info,start-stop-daemon,update-alternatives}}.*
# these come from rpm:
rm %{buildroot}/%{_mandir}/%{LNG}/man8/rpm.8*

# this lary wall perl script man page, not util linux rename tool one:
mv %{buildroot}/%{_mandir}/%{LNG}/man1/rename{,.pl}.1
# these are provided by net-tools
rm -f %{buildroot}/%{_mandir}/%{LNG}/man{1/{dnsdomainname,domainname,hostname,nisdomainname,ypdomainname}.1,5/ethers.5,8/{arp,ifconfig,netstat,plipconfig,rarp,route,slattach}.8}
# this one is provided by wireless-tools
rm -f %{buildroot}/%{_mandir}/%{LNG}/man8/iw{config,event,list,priv,spy}.8
# these are provided by vim7:
rm -f %{buildroot}/%{_mandir}/%{LNG}/man1/{evim.,ex.,{,r}{view,vim}.,vimdiff,vimtutor}*
# this one is provided by linkchecker:
rm -f %{buildroot}/%{_mandir}/%{LNG}/man1/linkchecker.1
# these are provided by nano:
rm -f %{buildroot}/%{_mandir}/%{LNG}/man1/nano.1*
rm -f %{buildroot}/%{_mandir}/%{LNG}/man1/rnano.1*
rm -f %{buildroot}/%{_mandir}/%{LNG}/man5/nanorc*
# these are provided by fcron:
rm -f %{buildroot}/%{_mandir}/%{LNG}/man*/fcron*

# upstream packagers are ... different
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/.swp

# there is already a tzselect man page at man8/tzselect.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/tzselect.1

# these are provided by nmap
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/nmap.1

# these are provided by shadow-utils
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/chage.1
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/gpasswd.1
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/newgrp.1
rm -f %{buildroot}%{_mandir}/%{LNG}/man5/faillog.5
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/chpasswd.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/faillog.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/groupadd.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/groupdel.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/groupmod.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/grpck.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/lastlog.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/newusers.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/pwck.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/pwconv.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/useradd.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/userdel.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/usermod.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/vipw.8

tar jxf %{SOURCE2} -C %{buildroot}/usr/share
LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}/%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}%{_var}/cache/man/%{LNG}

touch %{buildroot}%{_var}/cache/man/%{LNG}/whatis

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14615 |21mr|man-pages-hu-0.2.2-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG hu

Summary:	Hungarian manual pages
Name:		man-pages-%{LNG}
Version:	0.2.2
Release:	23
License:	Distributable
Group:		System/Internationalization
Url:		http://www.kde.hu/mlp/man/
Source0:	http://www.kde.hu/mlp/man/man_hu_2001_01_05.tar.bz2
BuildRequires:	man
Requires:	locales-%{LNG}
Requires:	man
Autoreq:	false
BuildArch:	noarch

%description
A large collection of man pages (reference material) from the Linux
Documentation Project (LDP), translated to Hungarian.  The man pages are
organized into the following sections:

    Section 1:  User commands (intro only)
    Section 2:  System calls
    Section 3:  Libc calls
    Section 4:  Devices (e.g., hd, sd)
    Section 5:  File formats and protocols (e.g., wtmp, %{_sysconfdir}passwd, nfs)
    Section 6:  Games (intro only)
    Section 7:  Conventions, macro packages, etc. (e.g., nroff, ascii)
    Section 8:  System administration (intro only)

%files
%defattr(0644,root,man,755)
%dir %{_mandir}/%{LNG}
%dir /var/cache/man/%{LNG}
%ghost %config(noreplace) /var/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
%if %{mdvver} < 201910
%{_mandir}/%{LNG}/CACHEDIR.TAG*
%endif
%{_mandir}/%{LNG}/index.db*
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

%post
%create_ghostfile /var/cache/man/%{LNG}/whatis root root 644

#------------------------------------------------------------------------------

%prep
%setup -q -n usr

%build

%install
mkdir -p %{buildroot}%{_mandir}/%{LNG}/man{1,2,3,4,5,6,7,8,9,n}

find man/hu -type f -name "*.gz" -exec gunzip {} \;

for i in 1 2 3 5 7 8; do
	cp -adpvrf man/hu/man$i %{buildroot}%{_mandir}/%{LNG}/
done

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}

touch %{buildroot}/var/cache/man/%{LNG}/whatis

rm -f %{buildroot}%{_mandir}/%{LNG}/man1/gpasswd.1*
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/login.1*
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/newgrp.1*
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/lastlog.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14616 |21mr|man-pages-id-0.1-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG id

Summary:	Man pages in Indonesian language
Name:		man-pages-%{LNG}
Version:	0.1
Release:	25
License:	GPL
Group:		System/Internationalization
Source:		id-man.tar.bz2
BuildRequires:	man
Requires:	locales-%{LNG}
Requires:	man
Autoreq:	false
BuildArch:	noarch

%description
A collection of man pages for Linux in Indonesian language.

%files
%defattr(644,root,man,755)
%dir %{_mandir}/%{LNG}
%dir /var/cache/man/%{LNG}
%ghost %config(noreplace) /var/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
%if %{mdvver} < 201910
%{_mandir}/%{LNG}/CACHEDIR.TAG*
%endif
%{_mandir}/%{LNG}/index.db*
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

%post
%create_ghostfile /var/cache/man/%{LNG}/whatis root root 644

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_mandir}/%{LNG}/
tar jxf %{SOURCE0} -C %{buildroot}%{_mandir}/%{LNG}/

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}/%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}

touch %{buildroot}/var/cache/man/%{LNG}/whatis

rm -f %{buildroot}%{_mandir}/%{LNG}/man1/login.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14617 |21mr|man-pages-it-4.08-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG it
%define extra_version 0.5.0
%define fextra %{name}-extra-%{extra_version}

Summary:	Italian manual pages
Name:		man-pages-%{LNG}
Version:	4.08
Release:	12
License:	GPL
Group:		System/Internationalization
Url:		ftp://ftp.pluto.it/pub/pluto/ildp/man/
Source0:	ftp://ftp.pluto.it/pub/pluto/ildp/man/%{name}-%{version}.tar.xz
Source1:	%{fextra}.tar.bz2
Patch0:		man-pages-it-2.80-installdir.patch
BuildRequires:	man
Requires:	locales-%{LNG}
Requires:	man
Provides:	man-%{LNG} = %{EVRD}
Provides:	manpages-%{LNG} = %{EVRD}
Autoreq:	false
BuildArch:	noarch

%description
Italian translations of Linux manual pages: this package includes not
only those from the LDP, but also translations of other popular
man-pages.

BEWARE: some pages are dated!

%files
%defattr(0644,root,man,755)
%doc CHANGELOG
%dir %{_mandir}/%{LNG}
%dir %{_var}/cache/man/%{LNG}
%ghost %config(noreplace) %{_var}/cache/man/%{LNG}/whatis
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
# %{_mandir}/%{LNG}/CACHEDIR.TAG*
%{_mandir}/%{LNG}/index.db*

%post
%create_ghostfile %{_var}/cache/man/%{LNG}/whatis root root 644

%postun
# 0 means deleting the package
if [ "$1" = "0" ]; then
   ## Force removing of %{_var}/catman/%{LNG}, if there isn't any man page
   ## directory /%{_mandir}/%{LNG}
   if [ ! -d %{_mandir}/%{LNG} ] ; then
       /bin/rm -rf %{_var}/catman/%{LNG}
   fi
fi

#----------------------------------------------------------------------------

%prep
%setup -q -a1
%patch0 -p1

%build

%install
make install prefix=%{buildroot}%{_prefix}
make install prefix=%{buildroot} -C %{fextra}

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}/%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}%{_var}/cache/man/%{LNG}

touch %{buildroot}%{_var}/cache/man/%{LNG}/whatis

# these are provided by vim7:
rm -f %{buildroot}/%{_mandir}/%{LNG}/man1/{view.,rview.,vim}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14618 |21mr|man-pages-ja-20200115-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG ja

Summary:	Japanese manual pages
Name:		man-pages-%{LNG}
Version:	20200115
Release:	2
License:	distributable
Group:		System/Internationalization
Url:		http://www.linux.or.jp/JM/download.html
Source0:	https://linuxjm.osdn.jp/man-pages-ja-%{version}.tar.gz
Source2:	http://xjman.dsl.gr.jp/xjman-0.7.tar.bz2
Source3:	man-pages-ja-install.sh
Source4:	manpage-utf8-converter.rb
BuildArch:	noarch
BuildRequires:	man-db
BuildRequires:	ruby
BuildRequires:	rubygems
Requires:	locales-%{LNG}
Requires:	man
# for file-system:
Requires(pre):	man
Requires(post):	man
Autoreqprov:	false

%description
The japanese man pages.

%files
%doc README
%dir %{_mandir}/%{LNG}
%dir /var/cache/man/%{LNG}
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
%{_mandir}/%{LNG}/index.db*
%attr(755,root,man)/var/catman/%{LNG}
%config(noreplace) %attr(755,root,root)/etc/cron.weekly/makewhatis-%{LNG}.cron

%postun
# 0 means deleting the package
if [ "$1" = "0" ]; then
   ## Force removing of /var/catman/%{LNG}, if there isn't any man page
   ## directory %{_mandir}/%{LNG}
   if [ ! -d %{_mandir}/%{LNG} ] ; then
       rm -rf /var/catman/%{LNG}
   fi
fi
# 1 means update
if [ "$1" = "1" ]; then
   # dirty hack to clean previous man-pages-ja installs
   [ -d var/catman/X11/%{LNG} ] && rm -rf /var/catman/X11/%{LNG} >& /dev/null
   [ -d var/catman/X11 ] && rmdir /var/catman/X11 >& /dev/null
fi
:


#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version} -a2

# install X11 man pages
mv xjman/ manual
echo "xjman-4.1.0	Y" >> script/pkgs.list

%build
cp %{SOURCE3} installman.sh
rm -f manual/*/man1/man.1 manual/*/man1/apropos.1 manual/*/man1/whatis.1

# convert manpages (euc-jp to utf-8)
# we can use konqueror as a manpage viewer,
# but konqueror doesn't detect euc-jp properly.
cp %{SOURCE4} .
chmod a+x manpage-utf8-converter.rb
./manpage-utf8-converter.rb

%install
mkdir -p %{buildroot}%{_mandir}/%{LNG}
mkdir -p %{buildroot}/var/catman/%{LNG}/cat{1,2,3,4,5,6,7,8,9,n}

make install

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}%{_mandir}/%{LNG}

mkdir -p %{buildroot}/etc/cron.weekly
cat > %{buildroot}/etc/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
%{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}/etc/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}
rm -f %{buildroot}/usr/share/man/README*

# Remove to avoid file conflicts with shadow-utils
rm -f %{buildroot}%{_mandir}/ja/man1/chage.1.*
rm -f %{buildroot}%{_mandir}/ja/man1/expiry.1.*
rm -f %{buildroot}%{_mandir}/ja/man1/gpasswd.1.*
rm -f %{buildroot}%{_mandir}/ja/man1/login.1.*
rm -f %{buildroot}%{_mandir}/ja/man1/newgrp.1.*
rm -f %{buildroot}%{_mandir}/ja/man5/faillog.5.*
rm -f %{buildroot}%{_mandir}/ja/man5/login.defs.5.*
rm -f %{buildroot}%{_mandir}/ja/man8/chpasswd.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/faillog.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/groupadd.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/groupdel.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/groupmod.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/grpck.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/lastlog.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/logoutd.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/newusers.8.*
rm -f %{buildroot}%{_mandir}/ja/man1/passwd.1.*
rm -f %{buildroot}%{_mandir}/ja/man8/pwck.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/pwconv.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/useradd.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/userdel.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/usermod.8.*
rm -f %{buildroot}%{_mandir}/ja/man8/vipw.8.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14619 |21mr|man-pages-ko-20050219-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG ko

Summary:	Korean (Hangul) Man Pages
Name:		man-pages-%{LNG}
Version:	20050219
Release:	18
License:	GPL
Group:		System/Internationalization
Url:		http://man.kldp.org/
Source:		man-pages-%{LNG}-%{version}.tar.bz2
BuildRequires:	man
Requires:	locales-%{LNG}
Requires:	man
Autoreqprov:	false
BuildArch:	noarch

%description
Korean translation of the official manpages from LDP and another useful
manpages from various packages. They're maintained by the Korean Manpage
Project <http://man.kldp.org>.

%files
%defattr(0644,root,man,755)
%dir %{_mandir}/%{LNG}
%dir /var/cache/man/%{LNG}
%ghost %config(noreplace) /var/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
%if %{mdvver} < 201910
%{_mandir}/%{LNG}/CACHEDIR.TAG*
%endif
%{_mandir}/%{LNG}/index.db*
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

%post
%create_ghostfile /var/cache/man/%{LNG}/whatis root root 644

#----------------------------------------------------------------------------

%prep
%setup -c %{name}-%{version}

%build

%install
mkdir -p %{buildroot}%{_mandir}/%{LNG}/

for i in man?;do
        cp -adpvrf $i %{buildroot}%{_mandir}/%{LNG}/
done

# those files conflict whith rpm package:
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/rpm{2cpio,}.8

# those files conflict whith man package:
rm -f %{buildroot}%{_mandir}/%{LNG}/man{1/man.1,1/whatis.1,5/man.config.5}

# provided by shadow-utils
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/login.1*
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/vipw.8*

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}

touch %{buildroot}/var/cache/man/%{LNG}/whatis

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14620 |21mr|man-pages-pl-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG pl

Summary:	Man pages in polish language
Name:		man-pages-%{LNG}
Version:	0.7
Release:	1
License:	GPL
Group:		System/Internationalization
Url:		http://ptm.linux.pl
Source0:	https://liquidtelecom.dl.sourceforge.net/project/manpages-pl/manpages-pl-%{version}.tar.bz2
BuildRequires:	man
Requires:	locales-%{LNG}
Requires(pre):	sed grep man
Provides:	man-%{LNG} = %{EVRD}
Provides:	manpages-%{LNG} = %{EVRD}
Autoreqprov:	false
BuildArch:	noarch

%description
A collection of man pages for Linux in polish language.

%prep
%setup -qn manpages-pl-%{version}

%build
for i in 1 2 3 4 5 6 7 8 9 n; do
        rm -rf man$i/CVS
done

%make

%install
%make_install

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF

chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}

touch %{buildroot}/var/cache/man/%{LNG}/whatis

# Provided by shadow-utils
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/expiry.1*
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/newgrp.1

%post
%create_ghostfile /var/cache/man/%{LNG}/whatis root root 644

%files
%defattr(644,root,man,755)
%dir %{_mandir}/%{LNG}
%dir /var/cache/man/%{LNG}
%ghost %config(noreplace) /var/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
# %{_mandir}/%{LNG}/CACHEDIR.TAG*
%{_mandir}/%{LNG}/index.db*
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14621 |21mr|man-pages-pt_BR-0.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG pt_BR

Summary:	Brazilian man (manual) pages from the Linux Documentation Project
Name:		man-pages-%{LNG}
Version:	0.1
Release:	15
License:	GPL
Group:		System/Internationalization
Url:		http://br.tldp.org/projetos/man/man.html
# the tarball has to build, files got from the web with wget.
# files dated 2002-11-21 -- pablo
Source0:	http://br.tldp.org/projetos/man/arquivos/man-pages-pt_BR.tar.bz2
BuildRequires:	man
Requires:	locales-pt
Requires:	man
Autoreqprov:	false
BuildArch:	noarch

%description
A large collection of man pages (reference material) from the Linux 
Documentation Project (LDP), translated to Brzailian Portuguese.
The man pages are organized into the following sections:

        Section 1:  User commands (intro only)
        Section 2:  System calls
        Section 3:  Libc calls
        Section 4:  Devices (e.g., hd, sd)
        Section 5:  File formats and protocols (e.g., wtmp, %{_sysconfdir}/passwd, nfs)
        Section 5:  Games (intro only)
        Section 7:  Conventions, macro packages, etc. (e.g., nroff, ascii)
        Section 8:  System administration (intro only)
        Section 9:  Kernel routines

%files
%defattr(0644,root,man,755)
%dir %{_mandir}/%{LNG}
%dir /var/cache/man/%{LNG}
%ghost %config(noreplace) /var/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
%if %{mdvver} < 201910
%{_mandir}/%{LNG}/CACHEDIR.TAG*
%endif
%{_mandir}/%{LNG}/index.db*
#%_mandir/%LNG/whatis
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

%post
%create_ghostfile /var/cache/man/%{LNG}/whatis root root 644

#----------------------------------------------------------------------------

%prep
%setup -n man-pages-pt_BR

%build

%install
mkdir -p %{buildroot}%{_mandir}/%{LNG}/man{1,2,3,4,5,6,7,8}

for i in 1 2 3 4 5 6 7 8 ; do
	cp -adpvrf man$i %{buildroot}%{_mandir}/%{LNG}/||:
done

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}

touch %{buildroot}/var/cache/man/%{LNG}/whatis

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14622 |21mr|man-pages-ru-5.03-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LNG ru
%define tarball_version 5.03-2390-2390-20191017

Summary:	Russian man (manual) pages from the Linux Documentation Project
Name:		man-pages-%{LNG}
Version:	5.03
Release:	2
License:	Distributable
Group:		System/Internationalization
Url:		http://www.linuxshare.ru/projects/trans/mans.html
# Not sure where this tarball came from. It is older than than the one from
# linuxshare but contains much more files
Source0:	manpages-ru-0.98-full.tar.bz2
Source1:	manpages-ALT.tar.bz2
Source2:	man-pages-%{LNG}-goodies.tar.bz2
Source3:	man-pages-ru_%{tarball_version}.tar.bz2
Source4:	tcb-0.9.8.7-man-ru.tar.bz2
Source8:	man-ssh.tar.bz2
Source9:	manpages-angel.tar.bz2
Source10:	manpages-boojuman.tar.bz2
Source12:	man-pages-ru-autofs.tar.bz2
Source13:	man-pages-security-ru-1.0.tar.bz2
Source14:	man-pages-ru-extra.tar.bz2
Source15:	http://www.linuxshare.ru/projects/trans/manpages-ru-0.98.tar.bz2
Source16:	install.tar.xz
Patch0:		man-pages-ru-0.98-alt-combo.patch.bz2
BuildRequires:	man
Requires:	locales-%{LNG}
Requires:	man
Requires(post):	sed
Requires(post):	grep
Requires(post):	man
Provides:	man-%{LNG}
Provides:	manpages-%{LNG}
BuildArch:	noarch


%description
A large collection of man pages (reference material) from the Linux 
Documentation Project (LDP), translated to Russian. 

%files
%defattr(0644,root,root,0755)
%doc CREDITS FAQ NEWS
%defattr(0644,root,man,755)
%dir %{_mandir}/%{LNG}
%dir /var/cache/man/%{LNG}
%{_docdir}/security-ru/
%ghost %config(noreplace) /var/cache/man/%{LNG}/whatis
%{_mandir}/%{LNG}/man*
%{_mandir}/%{LNG}/cat*
# for old man
%if %{mdvver} < 201910
%{_mandir}/%{LNG}/CACHEDIR.TAG*
%endif
%{_mandir}/%{LNG}/index.db*
#%_mandir/%{LNG}/whatis
%attr(755,root,man) /var/catman/%{LNG}
%config(noreplace) %attr(755,root,root) %{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

%post
%create_ghostfile /var/cache/man/%{LNG}/whatis root root 644

%postun
# 0 means deleting the package
if [ "$1" = "0" ]; then
   ## Force removing of /var/catman/%{LNG}, if there isn't any man page
   ## directory /%{_mandir}/%{LNG}
   if [ ! -d %{_mandir}/%{LNG} ] ; then
       rm -rf /var/catman/%{LNG}
   fi
fi

#----------------------------------------------------------------------------

%prep
%setup -q -a1 -a3 -a4 -a8 -a9 -a10 -a12 -a13 -a14 -a15 -a16 -n manpages-ru-0.98

cp -adpvrf manpages-ru-0.98/* .
rm -rf manpages-ru-0.98

cp %{SOURCE3} .
tar xjvf man-pages-ru_%{tarball_version}.tar.bz2

%patch0 -p1

%build

%install
mkdir -p %{buildroot}/%{_mandir}/%{LNG}/
mkdir -p %{buildroot}/var/catman/%{LNG}/cat{1,2,3,4,5,6,7,8,9,n}

for i in 1 2 3 4 5 6 7 8; do
	cp -adpvrf man$i %{buildroot}/%{_mandir}/%{LNG}/
	cp man-pages-ru_%{tarball_version}/man$i/* %{buildroot}/%{_mandir}/%{LNG}/man$i/
done

# Drop the files provided by native packages
rm -f %{buildroot}/%{_mandir}/%{LNG}/man1/dosemu*
rm -f %{buildroot}/%{_mandir}/%{LNG}/man1/scmxx*
rm -f %{buildroot}/%{_mandir}/%{LNG}/man3/ipcalc_c*

LANG=%{LNG} DESTDIR=%{buildroot} %{_bindir}/mandb %{buildroot}/%{_mandir}/%{LNG}

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron << EOF
#!/bin/bash
LANG=%{LNG} %{_bindir}/mandb %{_mandir}/%{LNG}
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LNG}.cron

mkdir -p  %{buildroot}/var/cache/man/%{LNG}

touch %{buildroot}/var/cache/man/%{LNG}/whatis

mkdir -p %{buildroot}%{_docdir}/security-ru
mkdir -p %{buildroot}%{_mandir}/ru/man{1,2,3,4,5,6,7,8,9,n}
mkdir -p %{buildroot}/var/cache/man/ru/cat{1,2,3,4,5,6,7,8,9,n}
cd man-pages-security-ru-1.0
make install \
        INSTALL="install -p -m644" \
        INSTALLMAN=%{buildroot}%{_mandir} \
        INSTALLDOC=%{buildroot}%{_docdir}/security-ru \
        LANG_SUBDIR=ru \
        COMPRESS=none \
        #

# Remove conflicting files
rm -f %{buildroot}%{_mandir}/%{LNG}/man1/initlog.1
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/rpm.8
rm -f %{buildroot}%{_mandir}/%{LNG}/man8/rpm2cpio.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14623 |21mr|man-pages-zh-1.5-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define LANG zh

%define fname man-pages-zh_CN

Summary:	Chinese man pages
Name:		man-pages-%{LANG}
Version:	1.5
Release:	17
License:	FDL
Group:		System/Internationalization
Source:		http://download.sf.linuxforum.net/cmpp/%fname-%version.tar.bz2
Source1:	makewhatis.%{LANG}_CN.UTF-8.bz2
Source2:	makewhatis.%{LANG}_CN.bz2
BuildRequires:	man
Autoreq:	false
Requires:	locales-%{LANG}
Requires:	man
Provides:	man-%{LANG} = %{EVRD}
Provides:	manpages-%{LANG} = %{EVRD}
BuildArch:	noarch

%description
Set of man pages translated into Chinese language.

%prep
%setup -q -n %{fname}-%{version}

%build
%make u8
%make gb
# fix conflict with mplayer:
rm -f */man1/mplayer.1

%install
mkdir -p %{buildroot}%{_sysconfdir}
make DESTDIR=%{buildroot}%{_usr}/share install-u8
make DESTDIR=%{buildroot}%{_usr}/share install-gb CONFDIR=%{buildroot}/etc

mkdir -p %{buildroot}%{_sbindir}
bzcat %{SOURCE1} > %{buildroot}%{_sbindir}/makewhatis.%{LANG}_CN.UTF-8
chmod a+rx %{buildroot}%{_sbindir}/makewhatis.%{LANG}_CN.UTF-8
bzcat %{SOURCE2} > %{buildroot}%{_sbindir}/makewhatis.%{LANG}_CN
chmod a+rx %{buildroot}%{_sbindir}/makewhatis.%{LANG}_CN

%{buildroot}%{_sbindir}/makewhatis.%{LANG}_CN.UTF-8 \
        %{buildroot}/%{_mandir}/%{LANG}_CN.UTF-8
%{buildroot}%{_sbindir}/makewhatis.%{LANG}_CN \
        %{buildroot}/%{_mandir}/%{LANG}_CN

mkdir -p %{buildroot}%{_sysconfdir}/cron.weekly
cat > %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LANG}_CN.UTF-8.cron << EOF
#!/bin/bash
%{_sbindir}/makewhatis.%{LANG}_CN.UTF-8 %{_mandir}/%{LANG}_CN.UTF-8
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LANG}_CN.UTF-8.cron
cat > %{buildroot}/etc/cron.weekly/makewhatis-%{LANG}_CN.cron << EOF
#!/bin/bash
%{_sbindir}/makewhatis.%{LANG}_CN %{_mandir}/%{LANG}_CN
exit 0
EOF
chmod a+x %{buildroot}%{_sysconfdir}/cron.weekly/makewhatis-%{LANG}_CN.cron

# Provided by shadow-utils
rm -f %{buildroot}%{_mandir}/%{LANG}_CN/man1/newgrp.1*
rm -f %{buildroot}%{_mandir}/%{LANG}_CN/man8/chpasswd.8*
rm -f %{buildroot}%{_mandir}/%{LANG}_CN/man8/groupadd.8*
rm -f %{buildroot}%{_mandir}/%{LANG}_CN/man8/groupdel.8*
rm -f %{buildroot}%{_mandir}/%{LANG}_CN/man8/groupmod.8*
rm -f %{buildroot}%{_mandir}/%{LANG}_CN/man8/useradd.8*
rm -f %{buildroot}%{_mandir}/%{LANG}_CN/man8/userdel.8*
rm -f %{buildroot}%{_mandir}/%{LANG}_CN/man8/usermod.8*

%post
%{_sysconfdir}/cron.weekly/makewhatis-%{LANG}_CN.UTF-8.cron
%{_sysconfdir}/cron.weekly/makewhatis-%{LANG}_CN.cron
touch %{_mandir}/%{LANG}_CN.UTF-8/whatis
touch %{_mandir}/%{LANG}_CN/whatis

%files
%defattr(0644,root,man,755)
%{_mandir}/%{LANG}_CN.UTF-8
%attr(755,root,root)%{_sbindir}/makewhatis.%{LANG}_CN.UTF-8
%config(noreplace) %attr(755,root,root)%{_sysconfdir}/cron.weekly/makewhatis-%{LANG}_CN.UTF-8.cron
#
%{_mandir}/%{LANG}_CN
%attr(755,root,root) %{_sbindir}/makewhatis.%{LANG}_CN
%config(noreplace) %attr(755,root,root)/etc/cron.weekly/makewhatis-%{LANG}_CN.cron
%{_sysconfdir}/cman.conf
%{_sysconfdir}/profile.d/cman.csh
%{_sysconfdir}/profile.d/cman.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14624 |21mr|mapbox-variant-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:           mapbox-variant
Version:	1.2.0
Release:	1
Group:		System/Libraries
Summary:        A header-only alternative to boost::variant for C++11 and C++14

License:        Boost and BSD
URL:            https://github.com/mapbox/variant
Source0:        https://github.com/mapbox/variant/archive/v%{version}/%{name}-%{version}.tar.gz

%description
Mapbox variant has the same speedy performance of boost::variant but is
faster to compile, results in smaller binaries, and has no dependencies.


%package        devel
Summary:        Development files for %{name}
Provides:       %{name}-static = %{version}-%{release}

%description    devel
Mapbox variant has the same speedy performance of boost::variant but is
faster to compile, results in smaller binaries, and has no dependencies.


%prep
%setup -n variant-%{version}
%autopatch -p1
sed -i -e 's/-Werror //' Makefile
sed -i -e 's/-march=native //' Makefile
rm -f test/include/catch.hpp

%build

%install
mkdir -p %{buildroot}%{_includedir}
cp -pr include/mapbox %{buildroot}%{_includedir}

%files devel
%{_includedir}/mapbox

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14625 |21mr|mapdb-1.0.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          mapdb
Version:       1.0.7
Release:       10
Summary:       Java database engine
License:       ASL 2.0
URL:           http://www.mapdb.org/
Source0:       https://github.com/jankotek/MapDB/archive/%{name}-%{version}.tar.gz

BuildRequires: javapackages-tools >= 4.3.2-3
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}


%description
MapDB provides concurrent Maps, Sets and
Queues backed by disk storage or off-heap
memory. It is a fast and easy to use
embedded Java database engine.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n MapDB-%{name}-%{version}

# Cleanup
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :doxia-module-markdown
# lt.velykis.maven.skins:reflow-velocity-tools:1.0.0
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :site-maven-plugin
%pom_remove_plugin :jacoco-maven-plugin
# ch.raffael.pegdown-doclet:pegdown-doclet:1.1
%pom_remove_plugin :maven-javadoc-plugin

%mvn_file : %{name}

%build

# Test fail @ random on arm builder
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license license.txt notice.txt

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14626 |21mr|marble-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A virtual globe and world atlas
Name:		marble
Version:	23.08.4
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		marble-17.04.2-soversion.patch
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=10159
Patch1:		marble-desktop-categories.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5crash-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	shapelib-devel
BuildRequires:	pkgconfig(libgps)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(protobuf) = 3.12.3
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	marble-common = %{EVRD}

%description
Marble is a Virtual Globe and World Atlas that you can use to learn more
about Earth: You can pan and zoom around and you can look up places and
roads. A mouse click on a place label will provide the respective
Wikipedia article.

%files -f %{name}.lang
%doc LICENSE.txt ChangeLog BUGS USECASES MANIFESTO.txt
%doc %{_kde5_docdir}/HTML/*/marble
%{_kde5_bindir}/marble
%{_kde5_bindir}/marble-qt
%{_kde5_iconsdir}/*/*/apps/marble.*
%{_kde5_applicationsdir}/marble_geo.desktop
%{_kde5_applicationsdir}/marble_geojson.desktop
%{_kde5_applicationsdir}/marble_gpx.desktop
%{_kde5_applicationsdir}/marble_kml.desktop
%{_kde5_applicationsdir}/marble_kmz.desktop
%{_kde5_applicationsdir}/marble_shp.desktop
%{_kde5_applicationsdir}/marble_worldwind.desktop
%{_kde5_datadir}/applications/org.kde.marble-qt.desktop
%{_kde5_services}/marble_thumbnail_gpx.desktop
%{_kde5_services}/marble_thumbnail_geojson.desktop
%{_kde5_services}/marble_thumbnail_kml.desktop
%{_kde5_services}/marble_thumbnail_kmz.desktop
%{_kde5_services}/marble_thumbnail_osm.desktop
%{_kde5_services}/marble_thumbnail_shp.desktop
%{_appdatadir}/org.kde.marble.appdata.xml
%{_appdatadir}/org.kde.plasma.worldmap.appdata.xml
%{_qt5_plugindir}/marblethumbnail.so

#----------------------------------------------------------------------------

%define qmlmarble %mklibname marble-qml

%package -n %{qmlmarble}
Summary:	QML plugin for Marble module
Group:		System/Libraries
Provides:	marble-qml = %{EVRD}

%description -n %{qmlmarble}
QML plugin for Marble module.

%files -n %{qmlmarble}
%dir %{_kde5_qmldir}/org/kde/marble/private/plasma/
%{_kde5_qmldir}/org/kde/marble/private/plasma/*

#----------------------------------------------------------------------------

%package common
Summary:	A virtual globe and world atlas
Group:		Graphical desktop/KDE
Requires:	plasma5-runner-marble

%description common
Marble is a Virtual Globe and World Atlas that you can use to learn more
about Earth: You can pan and zoom around and you can look up places and
roads. A mouse click on a place label will provide the respective
Wikipedia article.

%files common
%{_kde5_libdir}/marble/plugins/*.so
%{_kde5_datadir}/config.kcfg/marble.kcfg
%{_kde5_datadir}/mime/packages/geo.xml
%{_kde5_services}/marble_part.desktop
%dir %{_kde5_datadir}/marble
%{_kde5_datadir}/marble/*
%{_kde5_xmlguidir}/marble/marbleui.rc
%{_kde5_xmlguidir}/marble/marble_part.rc
%{_qt5_plugindir}/libmarble_part.so

#----------------------------------------------------------------------------

%package -n plasma5-applet-worldclock
Summary:	Plasma 5 worldclock plasmoid
Group:		Graphical desktop/KDE
Requires:	marble-common
Requires:	marble-qml

%description -n plasma5-applet-worldclock
Plasma 5 volume plasmoid.

%files -n plasma5-applet-worldclock
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.worldclock/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.worldclock/*
%{_kde5_services}/plasma-applet-org.kde.plasma.worldclock.desktop
%{_appdatadir}/org.kde.plasma.worldclock.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-runner-marble
Summary:	Plasma 5 marble runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-marble
Plasma 5 marble runner.

%files -n plasma5-runner-marble
%{_qt5_plugindir}/kf5/krunner/plasma_runner_marble.so

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-worldmap
Summary:	Plasma 5 worldmap wallpaper
Group:		Graphical desktop/KDE
Requires:	marble-common
Requires:	marble-qml

%description -n plasma5-wallpaper-worldmap
Plasma 5 worldmap wallpaper.

%files -n plasma5-wallpaper-worldmap
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.plasma.worldmap/
%{_kde5_datadir}/plasma/wallpapers/org.kde.plasma.worldmap/*
%{_kde5_services}/plasma-wallpaper-org.kde.plasma.worldmap.desktop

#----------------------------------------------------------------------------

%define astro_major 1
%define libastro %mklibname astro %{astro_major}

%package -n %{libastro}
Summary:	Runtime library for marble
Group:		System/Libraries

%description -n %{libastro}
Runtime library for marble.

%files -n %{libastro}
%{_kde5_libdir}/libastro.so.%{astro_major}
%{_kde5_libdir}/libastro.so.%(echo %{version}|cut -d. -f1).*

#----------------------------------------------------------------------------

%define declarative_major 0
%define libdeclarative %mklibname marbledeclarative %{declarative_major}

%package -n %{libdeclarative}
Summary:	Runtime library for marble
Group:		System/Libraries

%description -n %{libdeclarative}
Runtime library for marble.

%files -n %{libdeclarative}
%{_kde5_libdir}/libmarbledeclarative.so.%{declarative_major}*

#----------------------------------------------------------------------------

%define marblewidget_major 28
%define libmarblewidget %mklibname marblewidget-qt5_ %{marblewidget_major}

%package -n %{libmarblewidget}
Summary:	Runtime library for marble
Group:		System/Libraries

%description -n %{libmarblewidget}
Runtime library for marble.

%files -n %{libmarblewidget}
%{_kde5_libdir}/libmarblewidget-qt5.so.%{marblewidget_major}
%{_kde5_libdir}/libmarblewidget-qt5.so.%(echo %{version}|cut -d. -f1).*

#----------------------------------------------------------------------------

%package devel
Summary:	Development stuff for %{name}
Group:		Development/KDE and Qt
Requires:	%{libastro} = %{EVRD}
Requires:	%{libdeclarative} = %{EVRD}
Requires:	%{libmarblewidget} = %{EVRD}

%description devel
Files needed to build applications based on %{name}.

%files devel
%{_kde5_libdir}/libastro.so
%{_kde5_libdir}/libmarbledeclarative.so
%{_kde5_libdir}/libmarblewidget-qt5.so
%{_kde5_libdir}/cmake/Astro/
%{_kde5_libdir}/cmake/Marble/
%{_kde5_includedir}/astro/
%{_kde5_includedir}/marble/
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
	-DEXPERIMENTAL_PYTHON_BINDINGS=FALSE \
	-DBUILD_python=FALSE \
	-DWITH_DESIGNER_PLUGIN=FALSE \
	-DBUILD_MARBLE_TOOLS=YES \
	-DMARBLE_PRI_INSTALL_DIR="%{_kde5_mkspecsdir}"
%make

%install
%makeinstall_std -C build

# Drop duplicate menu entry, keep only marble-qt
rm -f %{buildroot}%{_kde5_applicationsdir}/org.kde.marble.desktop

# Drop to avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_datadir}/doc

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14627 |21mr|mariadb-10.5.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Packaging is based on openSUSE package
# https://build.opensuse.org/package/show/openSUSE:Factory/mariadb
# Devel part (mysql-devel) is in mariadb-connector-c

# libmariadbd major (embedded library)
%define major 19
%define libname %mklibname mariadbd %{major}
%define devname %mklibname mariadbd -d
# Set this to 1 to run regression test suite (it takes a long time)
# TODO: fix missing BRs (tcpd-devel) and reenable
%define run_testsuite 0
# Set this to 1 for testing purposes (run all regression tests but ignore
# failures). Set this to 0 for production usage (skip tests in the
# unstable-tests list (contains also suse_skipped_tests.list) and don't
# ignore failures
%define ignore_testsuite_result 0
%define with_oqgraph 1
# TokuDB engine is available only for x86_64 architecture
# see https://mariadb.com/kb/en/mariadb/tokudb/
# Temporarily stop to build it as jemalloc 5 is not backwards compatible
# and a build without jemalloc is not supported upstream (MDEV-15034)
# Also we can't use PerconaFT (AGPL licence) that is needed for tokudb
%define with_tokudb 0
# Mroonga and RocksDB are available only for x86_64 architecture
# see https://mariadb.com/kb/en/mariadb/about-mroonga/ and
# https://mariadb.com/kb/en/library/myrocks-supported-platforms/
%ifarch %{x86_64}
%define with_mroonga 1
%define with_rocksdb 1
%else
%define with_mroonga 0
%define with_rocksdb 0
%endif
# Galera is not packaged yet
%bcond_with    galera
# Build with cracklib plugin when cracklib-dict-full >= 2.9.0 is available
%define with_cracklib_plugin 1

# ROSA: avoid many incorrect Perl requires on what is provided by itself
%global __requires_exclude_from ^%{_datadir}/mysql-test

Name:           mariadb
Version:        10.5.23
Release:        1
Summary:        Server part of MariaDB
License:        SUSE-GPL-2.0-with-FLOSS-exception
Group:          Databases
URL:            https://www.mariadb.org
Source:         https://downloads.mariadb.org/f/mariadb-%{version}/source/mariadb-%{version}.tar.gz
Source4:        README.debug
Source5:        suse-test-run
Source7:        README.install
Source12:       mysql-user.conf
Source14:       my.ini
Source15:       mariadb.service.in
Source16:       mariadb.target
Source17:       mysql-systemd-helper
Source18:       mariadb@.service.in
Source19:       macros.mariadb-test
Source50:       suse_skipped_tests.list
Source51:       mariadb.rpmlintrc
Patch1:         mariadb-10.2.4-logrotate.patch
Patch4:         mariadb-10.2.4-fortify-and-O.patch
Patch6:         mariadb-10.4.12-harden_setuid.patch
Patch7:         mariadb-10.5.23-fix-install-db.patch
Patch8:         mariadb-10.5.10-e2k.patch
# CVE-2022-47015 fixed in 10.5.23 version

# needed for bison SQL parser and wsrep API
BuildRequires:  bison
BuildRequires:  git
BuildRequires:  cmake
BuildRequires:  dos2unix
BuildRequires:  fdupes
BuildRequires:  gcc-c++
# GSSAPI
BuildRequires:  krb5-devel
# embedded server libmariadbd
BuildRequires:  libaio-devel
# mariabackup tool
BuildRequires:  libarchive-devel
BuildRequires:  pkgconfig(zlib)
# commands history feature
BuildRequires:  libedit-devel
BuildRequires:  libevent-devel
BuildRequires:  libtool
BuildRequires:  libxml2-devel
# CLI graphic and wsrep API
BuildRequires:  ncurses-devel
BuildRequires:  openssl-devel
# auth_pam.so plugin
BuildRequires:  pam-devel
# MariaDB requires a specific version of pcre. Provide MariaDB with
# "BuildRequires: pcre-devel" and it automatically decides if the version is
# ok or not. If not, it uses bundled pcre.
BuildRequires:  pcre2-devel
BuildRequires:  pkgconfig
BuildRequires:  procps
# Some tests and myrocks_hotbackup script need python3
BuildRequires:  python3
#BuildRequires:  sqlite
#BuildRequires:  tcpd-devel
# Tests requires time and ps and some perl modules
# Keep in sync with Requires of mysql-testsuite
BuildRequires:  time
BuildRequires:  unixODBC-devel
BuildRequires:  zlib-devel
BuildRequires:  pkgconfig(libcurl)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Env)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Fcntl)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(Getopt::Long)
BuildRequires:  perl(IPC::Open3)
BuildRequires:  perl(Memoize)
BuildRequires:  perl(Socket)
BuildRequires:  perl(Symbol)
BuildRequires:  perl(Sys::Hostname)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Time::HiRes)
# Do not ever switch away from BuildRequires: pkgconfig(libsystemd); BuildRequires systemd/systemd-devel causes build cycles
BuildRequires:  pkgconfig(libsystemd)
#!BuildIgnore:  user(mysql)
# Required by rcmysql
Requires:       %{name}-client
Requires:       %{name}-errormessages = %{EVRD}
Requires:       hostname
Requires:       perl-base
# myrocks_hotbackup needs MySQLdb - if we want to use it under python3, we need python3-mysqlclient
Requires:       python3-mysqlclient
Requires:       user(mysql)
Requires:       group(mysql)
Requires(pre):  user(mysql)
Requires(pre):  group(mysql)
Recommends:     logrotate
# Compatibility with Fedora/CentOS
Provides:       mariadb-server = %{EVRD}
Provides:       mysql-server = %{EVRD}
Provides:       mysql = %{EVRD}
# Do not BuildRequires lzo for i586 and arm
# https://lists.launchpad.net/maria-discuss/msg04639.html
%ifnarch %{ix86} %{arm}
BuildRequires:  pkgconfig(lzo2)
%endif
# boost and Judy are required for oograph
%if 0%{with_oqgraph} > 0
BuildRequires:  judy-devel
BuildRequires:  boost-devel
%endif
%if 0%{with_tokudb} > 0
BuildRequires:  jemalloc-devel
%endif

%description
MariaDB is an open-source, multi-threaded, relational database management
system. It's a backward compatible, drop-in replacement branch of the
MySQL Community Server.

This package only contains the server-side programs.

%package -n %{libname}
Summary:        MariaDB embedded server library
Group:          System/Libraries
Requires:       %{name}-errormessages >= %{EVRD}
Provides:       libmysqld = %{EVRD}

%description -n %{libname}
This package contains MariaDB library that allows to run an embedded
MariaDB server inside a client application.

%package -n %{devname}
Summary:        MariaDB embedded server development files
Group:          Development/C
Requires:       libaio-devel
# The headers files are the shared with mariadb-conector-c
Requires:       mysql-devel
Requires:       %{libname} = %{EVRD}
# TODO: package it in ROSA?
#Requires:       tcpd-devel
Provides:       libmysqld-devel = %{EVRD}

%description -n %{devname}
This package contains the development header files and libraries
for developing applications that embed the MariaDB.

%package rpm-macros
Summary:        MariaDB RPM macros
Requires:       %{name}

%description rpm-macros
Provides macros usable in rpm spec files.

%package client
Summary:        Client for MariaDB
Group:          Databases
Requires:       %{name}-errormessages = %{EVRD}
# Explicit requires to pull in charsets for errormessages
Requires:       %{libname} = %{EVRD}
Provides:       mysql-client = %{EVRD}
Requires(pre):	/bin/systemd-sysusers

%description client
This package contains the standard clients for MariaDB.

%if %{with galera}
%package galera
Summary:        The configuration files and scripts for galera replication
Group:          Databases
Requires:       %{name} = %{EVRD}
# galera-3 is not in openSUSE:Factory now
#Requires:       galera-3 >= 25.3.18
Requires:       iproute2
Requires:       lsof
Requires:       rsync
Requires:       socat
Requires:       which
# We need Conflicts here as galera_new_cluster (and use_galera_new_cluster.conf)
# and galera_recovery scripts were in mariadb package but now they are in galera
# subpackage
# wsrep_* scripts were in mariadb-tools subpackage but now they are in galera subpackage

%description galera
This package contains configuration files and scripts that are
needed for running MariaDB Galera Cluster.
%endif

%package errormessages
Summary:        The error messages files required by server, client and libmariadbd
Group:          System/Internationalization
BuildArch:      noarch

%description errormessages
This package provides translated error messages for the standalone
server daemon, embedded server and client.

%package bench
Summary:        Benchmarks for MariaDB
Group:          Databases
Requires:       %{name}-client
Requires:       perl-DBD-mysql
Provides:       mysql-bench = %{EVRD}

%description bench
This package contains benchmark scripts and data for MariaDB.

To run these database benchmarks, start the script "run-all-tests" in
the directory %{_datadir}/sql-bench after starting MariaDB.

%package test
Summary:        Testsuite for MariaDB
Group:          Databases
Requires:       %{name} = %{EVRD}
Requires:       %{name}-bench = %{EVRD}
Requires:       %{name}-client = %{EVRD}
Requires:       %{name}-tools = %{EVRD}
# Requires libmariadb_plugins (mariadb-connector-c SRPM) in order to test client plugins successfuly
Requires:       libmariadb_plugins >= 3.0
Requires:       perl-DBD-mysql
Requires:       procps
Requires:       time
# Tests requires time and ps and some perl modules
Requires:       perl(Data::Dumper)
Requires:       perl(Env)
Requires:       perl(Exporter)
Requires:       perl(Fcntl)
Requires:       perl(File::Temp)
Requires:       perl(Getopt::Long)
Requires:       perl(IPC::Open3)
Requires:       perl(Memoize)
Requires:       perl(Socket)
Requires:       perl(Symbol)
Requires:       perl(Sys::Hostname)
Requires:       perl(Test::More)
Requires:       perl(Time::HiRes)
Provides:       mysql-test = %{EVRD}

%description test
This package contains the test scripts and data for MariaDB.

To run the testsuite, run %{_datadir}/mysql-test/suse-test-run.

%package tools
Summary:        MariaDB tools
Group:          Databases
Requires:       perl-DBD-mysql
# make sure this package is installed when updating from 10.2 and older
Provides:       mysql-client:%{_bindir}/perror
Provides:       mysql-tools = %{EVRD}
Provides:       mysql:%{_bindir}/mysqlhotcopy

%description tools
A set of scripts for administering a MariaDB or developing
applications with MariaDB.

%if 0%{with_cracklib_plugin} > 0
%package cracklib-password-check
Summary:        The password strength checking plugin
BuildRequires:  cracklib-devel >= 2.9.0
BuildRequires:  cracklib-dicts >= 2.9.0
Requires:       %{name} = %{EVRD}
Requires:       cracklib-dicts >= 2.9.0

%description      cracklib-password-check
cracklib_password_check is a password validation plugin. It uses the CrackLib
library to check the strength of new passwords. CrackLib is installed by default
in many Linux distributions, since the system's PAM authentication framework is
usually configured to check the strength of new passwords with the pam_cracklib
PAM module.
%endif

%prep
%autosetup -p1
# Remove JAR files from the tarball (used for testing from the source)
find . -name "*.jar" -type f -exec rm --verbose -f {} \;

cp %{_sourcedir}/suse-test-run .

# Remove unneeded manpages ('make install' basically installs everything under
# man/*)
rm -f man/mysqlman.1        # dummy fallback manpage
[ \! -f man/CMakeLists.txt ] || sed -i 's|mysqlman.1||'     man/CMakeLists.txt
rm -f man/mysql.server.1    # init script, not installed in our rpm
[ \! -f man/CMakeLists.txt ] || sed -i 's|mysql.server.1||' man/CMakeLists.txt
rm -f man/make_win_*.1      # windows build scripts
rm -f man/comp_err.1        # built-time utility

# Breaks VPATH builds when in sourcedir, is generated in the builddirs
rm -f sql/sql_builtin.cc

sed -i 's|@localstatedir@|%{_localstatedir}/log|' support-files/mysql-log-rotate.sh

# Broken test that needs sources
rm -f mysql-test/t/file_contents.test mysql-test/r/file_contents.result

# Specify perl path on shebangs
for i in `grep -Rl '^#!@PERL@$' .`; do
	sed -i 's|@PERL@|%{_bindir}/perl|' $i
done

# Add our list of tests that fail (correctly or temporarily) to the list of such
# tests created by upstream
cat %{SOURCE50} | tee -a mysql-test/unstable-tests

# Remove python scripts remains from tokudb upstream (those files are not used anyway)
rm -r storage/tokudb/mysql-test/tokudb/t/*.py

# Remove PerconaFT from the package because it has AGPL licence [bsc#1118754]
rm -rf storage/tokudb/PerconaFT

%build
%global _lto_cflags %{_lto_cflags} -ffat-lto-objects
EXTRA_FLAGS="-Wno-unused-but-set-variable -fno-strict-aliasing -Wno-unused-parameter"
# Mariadb devs seems to fall in love with -Werror option
EXTRA_FLAGS="${EXTRA_FLAGS} -Wno-error"
export CFLAGS="%{optflags} -DOPENSSL_LOAD_CONF -DPIC -fPIC -DFORCE_INIT_OF_VARS $EXTRA_FLAGS"
export CXXFLAGS="$CFLAGS -felide-constructors"
%cmake -DWITH_SSL=system                                            \
       -DWITH_LIBWRAP=ON                                            \
       -DENABLED_PROFILING=ON                                       \
       -DENABLE_DEBUG_SYNC=OFF                                      \
       -DWITH_PIC=ON                                                \
       -DWITH_ZLIB=system                                           \
       -DWITH_LIBEVENT=system                                       \
       -DWITH_JEMALLOC=no                                           \
       -DWITH_READLINE=0                                            \
       -DWITH_LIBEDIT=0                                             \
       -DWITH_EDITLINE=system                                       \
       -DINSTALL_LAYOUT=RPM                                         \
       -DWITH_LZ4=system                                            \
       -DMYSQL_UNIX_ADDR="%{_rundir}/mysql/mysql.sock"              \
       -DINSTALL_UNIX_ADDRDIR="%{_rundir}/mysql/mysql.sock"         \
       -DINSTALL_MYSQLSHAREDIR=share/%{name}                        \
       -DWITH_COMMENT="MariaDB rpm"                                 \
       -DWITH_EXTRA_CHARSET=all                                     \
       -DDEFAULT_CHARSET=utf8mb4                                    \
       -DDEFAULT_COLLATION=utf8mb4_general_ci                       \
       -DWITH_INNOBASE_STORAGE_ENGINE=1                             \
       -DWITH_PERFSCHEMA_STORAGE_ENGINE=1                           \
%if 0%{with_oqgraph} < 1
       -DPLUGIN_OQGRAPH=NO                                          \
%endif
%if 0%{with_tokudb} < 1
       -DPLUGIN_TOKUDB=NO                                           \
%endif
%if 0%{with_mroonga} < 1
       -DPLUGIN_MROONGA=NO                                          \
%endif
%if 0%{with_rocksdb} < 1
       -DPLUGIN_ROCKSDB=NO                                          \
%endif
       -DPYTHON_SHEBANG=%{__python3}                                \
       -DWITH_XTRADB_STORAGE_ENGINE=1                               \
       -DWITH_CSV_STORAGE_ENGINE=1                                  \
       -DWITH_HANDLERSOCKET_STORAGE_ENGINE=1                        \
       -DWITH_INNODB_MEMCACHED=ON                                   \
       -DWITH_EMBEDDED_SERVER=true                                  \
%if %{with galera}
       -DWITH_WSREP=ON                                              \
       -DWITH_INNODB_DISALLOW_WRITES=1                              \
%endif
       -DWITH_LIBARCHIVE=ON                                         \
       -DWITH_MARIABACKUP=ON                                        \
       -DCOMPILATION_COMMENT="MariaDB package"                      \
       -DDENABLE_DOWNLOADS=false                                    \
       -DINSTALL_PLUGINDIR_RPM="%{_lib}/mysql/plugin"               \
       -DINSTALL_LIBDIR_RPM="%{_lib}"                               \
       -DINSTALL_SYSCONF2DIR="%{_sysconfdir}/my.cnf.d"              \
       -DCMAKE_C_FLAGS_RELWITHDEBINFO="$CFLAGS"                     \
       -DCMAKE_CXX_FLAGS_RELWITHDEBINFO="$CXXFLAGS"                 \
       -DCMAKE_BUILD_TYPE=RelWithDebInfo                            \
       -DINSTALL_SQLBENCHDIR=share                                  \
       -DCMAKE_C_FLAGS="$CFLAGS"                                    \
       -DCMAKE_CXX_FLAGS="$CXXFLAGS"                                \
       -DCMAKE_EXE_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions" \
       -DCMAKE_MODULE_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions" \
       -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -pie -Wl,-z,relro,-z,now -Wl,-Bsymbolic -Wl,-Bsymbolic-functions" \
       -DCMAKE_SKIP_RPATH=OFF                                       \
       -DCMAKE_SKIP_INSTALL_RPATH=ON                                \
       -Wno-dev "$@" ..
%make_build
nm --numeric-sort sql/mysqld > sql/mysqld.sym
cd ..

%install
# Helper function to generate filelist for binaries and their manpages
filelist()
{
	echo '%%defattr(-, root, root)'
	pushd %{buildroot} >/dev/null
	for i; do
		if test -e usr/sbin/"$i"; then
			echo %{_sbindir}/"$i"
		fi
		if test -e usr/bin/"$i"; then
			echo %{_bindir}/"$i"
		fi
		if test -d usr/share/*/"$i"; then
			echo "/`echo usr/share/*/"$i"`"
		fi
		if test -n "`ls -1 %{buildroot}$i 2> /dev/null`"; then
			echo "$i"
		fi
		if ls usr/share/man/*/"$i".[1-9]* >/dev/null 2>&1; then
			echo "%{_mandir}/*/$i.[1-9]*"
		fi
	done
	popd >/dev/null
}

filelist_excludes()
{
	echo '%%defattr(-, root, root)'
	pushd %{buildroot} >/dev/null
	for i; do
		if test -e usr/sbin/"$i"; then
			echo "%exclude %{_sbindir}/$i"
		fi
		if test -e usr/bin/"$i"; then
			echo "%exclude %{_bindir}/$i"
		fi
		if test -d usr/share/*/"$i"; then
			echo "%exclude /$(echo usr/share/*/"$i")"
		fi
		if test -n "$(ls -1 %{buildroot}$i 2> /dev/null)"; then
			echo "%exclude $i"
		fi
		if ls usr/share/man/*/"$i".[1-9]* >/dev/null 2>&1; then
			echo "%exclude %{_mandir}/*/$i.[1-9]*"
		fi
	done
	popd >/dev/null
}

# Install the package itself
#%%cmake_install benchdir_root=%{_datadir}/
%makeinstall_std -C build

# ROSA: relocate from /usr/lib to /lib
mkdir -p %{buildroot}%{_unitdir}
mv -v %{buildroot}/usr/lib/systemd/system/* %{buildroot}%{_unitdir}
rm -fvr %{buildroot}/usr/lib/systemd/system

# Logrotate file should be named as the package
if [ ! -e %{buildroot}%{_sysconfdir}/logrotate.d/mysql ]; then
    # some versions do not install it automatically
    install -D -m 644 build/support-files/mysql-log-rotate %{buildroot}%{_sysconfdir}/logrotate.d/mysql
fi
mv %{buildroot}%{_sysconfdir}/logrotate.d/mysql %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# Create log directory with the expected perms of mysql
install -d -m 700 %{buildroot}%{_localstatedir}/log/mysql/

# Symbols from build to go into libdir
install -m 644 build/sql/mysqld.sym %{buildroot}%{_libdir}/mysql/mysqld.sym

# INFO_SRC binary
install -p -m 644 build/Docs/INFO_SRC %{buildroot}%{_libdir}/mysql/

# Remove static libs (FIXME: don't build them at all...)
rm %{buildroot}%{_libdir}/*.a

# Remove unused stuff
rm -f %{buildroot}%{_datadir}/mysql/{errmsg-utf8.txt,mysql-log-rotate}
rm -f %{buildroot}%{_libdir}/mysql/plugin/daemon_example.ini
# binary-configure creates the MySQL system tables and starts the server (not used)
rm -f %{buildroot}%{_datadir}/mysql/binary-configure
# FS files first-bytes recoginiton (not updated by upstream since nobody realy use that)
rm -f %{buildroot}%{_datadir}/mysql/magic
# Upstream ships them because of MDEV-10797 (we don't need them as we use our own systemd scripts)
rm -f %{buildroot}%{_datadir}/mysql/mysql.server
rm -f %{buildroot}%{_datadir}/mysql/mysqld_multi.server
# upstream installs links for mysql
unlink %{buildroot}%{_datadir}/mysql/systemd/mysql.service
unlink %{buildroot}%{_datadir}/mysql/systemd/mysqld.service
unlink %{buildroot}%{_unitdir}/mysqld.service
# The old fork of mytop utility (we ship it as a separate package)
rm -f %{buildroot}%{_bindir}/mytop
# xtrabackup is not supported for MariaDB >= 10.3
rm -f %{buildroot}%{_bindir}/wsrep_sst_xtrabackup-v2
rm -f %{buildroot}%{_bindir}/wsrep_sst_xtrabackup

# Remove unused upstream services
rm -f %{buildroot}'%{_unitdir}/mariadb.service'
rm -f %{buildroot}'%{_unitdir}/mariadb@.service'
rm -f %{buildroot}'%{_unitdir}/mariadb@bootstrap.service.d/use_galera_new_cluster.conf'

# Remove client libraries that are now provided in mariadb-connector-c
# Client library and links
rm %{buildroot}%{_libdir}/libmariadb.so.*
unlink %{buildroot}%{_libdir}/libmysqlclient.so
unlink %{buildroot}%{_libdir}/libmysqlclient_r.so
unlink %{buildroot}%{_libdir}/libmariadb.so
# Client plugins
rm %{buildroot}%{_libdir}/mysql/plugin/{auth_gssapi_client.so,dialog.so,mysql_clear_password.so,sha256_password.so,caching_sha2_password.so,client_ed25519.so}
# Devel files
rm %{buildroot}%{_bindir}/mysql_config
rm %{buildroot}%{_bindir}/mariadb_config
rm %{buildroot}%{_bindir}/mariadb-config
rm %{buildroot}%{_libdir}/pkgconfig/mariadb.pc
rm -f %{buildroot}%{_prefix}/lib/pkgconfig/libmariadb.pc
rm -f %{buildroot}%{_libdir}/pkgconfig/libmariadb.pc
rm %{buildroot}%{_datadir}/aclocal/mysql.m4
rm %{buildroot}%{_mandir}/man1/mariadb_config*.1*
rm %{buildroot}%{_mandir}/man1/mysql_config*.1*
rm %{buildroot}%{_mandir}/man1/mytop.1*
rm -r %{buildroot}%{_includedir}/mysql

# Rename the wsrep README so it corresponds with the other README names
cp Docs/README-wsrep Docs/README.wsrep

# Generate various filelists (binaries and manpages)
# mariadb.files
filelist mariabackup mariadb-backup mbstream innochecksum mariadb-service-convert my_print_defaults myisam_ftdump myisamchk myisamlog myisampack mysql_fix_extensions mariadb-fix-extensions mysql_install_db mariadb-install-db mysql_secure_installation mariadb-secure-installation mysql_upgrade mariadb-upgrade mysqld mariadbd mysqld_multi mariadbd-multi mysqld_safe mariadbd-safe mysqlbinlog mariadb-binlog mysqldumpslow mariadb-dumpslow resolve_stack_dump resolveip {m,}aria_chk {m,}aria_dump_log {m,}aria_ftdump {m,}aria_pack {m,}aria_read_log tokuft_logprint tokuft_logdump tokuftdump mysql_ldb mariadb-ldb sst_dump myrocks_hotbackup >mariadb.files

# mariadb-client.files
filelist mysql mariadb mysqladmin mariadb-admin mysqlcheck mariadb-check mysqldump mariadb-dump mysqlimport mariadb-import mysqlshow mariadb-show mysql_config_editor mysqld_safe_helper mariadbd-safe-helper >mariadb-client.files

# Mysql has configuration file in _bindir
if [ -f scripts/mysqlaccess.conf ] ; then
    install -m 640 scripts/mysqlaccess.conf %{buildroot}%{_sysconfdir}/mysqlaccess.conf
    rm -f %{buildroot}%{_bindir}/mysqlaccess.conf
    echo '%config(noreplace) %attr(0640, root, mysql) %{_sysconfdir}/mysqlaccess.conf' >> mariadb-client.files
fi

%if %{with galera}
# mariadb-galera.files
filelist galera_new_cluster galera_recovery wsrep_sst_common wsrep_sst_mariabackup wsrep_sst_mysqldump wsrep_sst_rsync wsrep_sst_rsync_wan wsrep_sst_backup >mariadb-galera.files
touch mariadb-galera-exclude.files
%else
filelist_excludes galera_new_cluster galera_recovery wsrep_sst_common wsrep_sst_mariabackup wsrep_sst_mysqldump wsrep_sst_rsync wsrep_sst_rsync_wan wsrep_sst_backup >mariadb-galera-exclude.files
echo /usr/share/mysql/systemd/use_galera_new_cluster.conf >>mariadb-galera-exclude.files
echo /usr/share/mysql/wsrep_notify >>mariadb-galera-exclude.files
%endif

# mariadb-bench.files
filelist mysqlslap mariadb-slap >mariadb-bench.files

# mariadb-test.files
filelist mysql_client_test mariadb-client-test mysql_client_test_embedded mariadb-client-test-embedded mysql_waitpid mariadb-waitpid mysqltest mariadb-test mysqltest_embedded mariadb-test-embedded >mariadb-test.files

# mariadb-tools.files
filelist msql2mysql mysql_plugin mariadb-plugin mysql_convert_table_format mariadb-convert-table-format mysql_find_rows mariadb-find-rows mysql_setpermission mariadb-setpermission mysql_tzinfo_to_sql mariadb-tzinfo-to-sql mysqlaccess mariadb-access mysqlhotcopy mariadb-hotcopy perror replace mysql_embedded mariadb-embedded aria_s3_copy mariadb-conv >mariadb-tools.files

# All configuration files
echo '%{_datadir}/mysql/*.cnf' >> mariadb.files

# Special errormessages approach
echo '%%defattr(-, root, root)' > %{_builddir}/errormessages.files
pushd %{buildroot} >/dev/null
for f in usr/share/%{name}/*; do
    if test -e $f/errmsg.sys; then
        echo "%%dir /$f" >> %{_builddir}/errormessages.files
    fi
done
echo %{_datadir}/%{name}/errmsg-utf8.txt >> %{_builddir}/errormessages.files
popd >/dev/null
mv %{_builddir}/errormessages.files mariadb-errormessages.files

# Files not installed by make install
# Some of the documentation we need to have installed
DOCS=(COPYING README.md EXCEPTIONS-CLIENT %{_sourcedir}/README.debug plugin/daemon_example/daemon_example.ini)
DOCDIR=%{buildroot}%{_defaultdocdir}/%{name}
install -d -m 755 ${DOCDIR}
for i in "${DOCS[@]}"; do
	install -m 644 "${i}" "${DOCDIR}" || true
done

# Install default configuration file
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/my.cnf

# Systemd/initscript
install -D -m 755 %{_sourcedir}/mysql-systemd-helper '%{buildroot}'%{_libexecdir}/mysql/mysql-systemd-helper
sed -i 's|@MYSQLVER@|%{version}|' '%{buildroot}'%{_libexecdir}/mysql/mysql-systemd-helper
ln -sf service '%{buildroot}'%{_sbindir}/rcmysql
ln -sf service '%{buildroot}'%{_sbindir}/rcmariadb
rm -rf '%{buildroot}'%{_sysconfdir}/init.d
sed "s|@LIBEXECDIR@|%{_libexecdir}|g" %{_sourcedir}/mariadb.service.in > '%{buildroot}'%{_unitdir}/mariadb.service
sed "s|@LIBEXECDIR@|%{_libexecdir}|g" %{_sourcedir}/mariadb@.service.in > '%{buildroot}'%{_unitdir}/mariadb@.service
install -D -m 644 %{_sourcedir}/mariadb.target '%{buildroot}'%{_unitdir}/mariadb.target
# Aliases for the backward compatibility. Create symlinks from the alias to the existing one
# We can't use 'Alias=' option only because it's effective only when the unit is enabled
ln -sf %{_unitdir}/mariadb.service %{buildroot}%{_unitdir}/mysql.service
ln -sf %{_unitdir}/mariadb@.service %{buildroot}%{_unitdir}/mysql@.service

# Tmpfiles file to exclude mysql tempfiles that are auto-cleaned up
# bnc#852451
mkdir -p %{buildroot}%{_tmpfilesdir}
cat >> %{buildroot}%{_tmpfilesdir}/mariadb.conf <<EOF
x %{_localstatedir}/tmp/mysql.*
EOF

# Testsuite
install -d -m 755 '%{buildroot}'%{_datadir}/mysql-test/
install -m 755 suse-test-run '%{buildroot}'%{_datadir}/mysql-test/
mkdir '%{buildroot}'%{_datadir}/mysql-test%{_localstatedir}

# Install the list of skipped tests to be available for user runs
install -p -m 0644 mysql-test/unstable-tests %{buildroot}%{_datadir}/mysql-test
ln -s unstable-tests %{buildroot}%{_datadir}/mysql-test/suse_skipped_tests.list

# Final fixes
find '%{buildroot}'%{_datadir}/mysql-test -name '*.orig' -delete
%fdupes -s '%{buildroot}'%{_datadir}/mysql-test
fdupes -q -n -r '%{buildroot}'%{_datadir}/mysql-test
for i in `grep -Rl '\r' '%{buildroot}'%{_datadir}/sql-bench`; do
	dos2unix "$i"
done

# Compat with old scripts
ln -s mysqlcheck '%{buildroot}'%{_bindir}/mysqlrepair
ln -s mysqlcheck '%{buildroot}'%{_bindir}/mysqlanalyze
ln -s mysqlcheck '%{buildroot}'%{_bindir}/mysqloptimize

# Use our configuration stuff instead of upstream one
rm -rf '%{buildroot}'%{_sysconfdir}/my.cnf.d
install -d -m 755 '%{buildroot}'%{_sysconfdir}/my.cnf.d

%if %{with galera}
# Install galera config file and script
install -p -m 644 build/support-files/wsrep.cnf %{buildroot}%{_sysconfdir}/my.cnf.d/50-galera.cnf
install -p -m 755 build/scripts/galera_new_cluster %{buildroot}%{_bindir}/galera_new_cluster
%endif

# Documentation that was copied to wrong folder
rm -f '%{buildroot}'%{_datadir}/doc/* 2> /dev/null || true

# Unwanted packaged stuff
rm -rf '%{buildroot}'%{_datadir}/mysql/{solaris,SELinux}

# Create the directory specified in 'secure-file-priv' option
mkdir -p '%{buildroot}'%{_localstatedir}/lib/mysql-files

# install rpm macros file
%install_macro mariadb-test %{SOURCE19}

# Install sysusers.d file
mkdir -p %{buildroot}%{_sysusersdir}
install -m 644 %{SOURCE12} %{buildroot}%{_sysusersdir}/%{name}.conf

# 0700 mode, mysql:root, set by %%attr
mkdir -p %{buildroot}/var/lib/mysql

%check
cd build

# Run an extensive mysql test suite
# If ignore_testsuite_result == 1 then run all tests but ignore failures
# If ignore_testsuite_result == 0 then skip tests listed in unstable-tests
# (contains suse_skipped_tests.list) and don't ignore failures

%if 0%{run_testsuite} > 0
cd mysql-test
./mysql-test-run.pl \
    --parallel=%{?jobs:%{jobs}}     \
    --force                         \
    --retry=3                       \
    --ssl                           \
    --suite-timeout=900             \
    --testcase-timeout=30           \
    --mysqld=--binlog-format=mixed  \
    --force-restart                 \
    --shutdown-timeout=60           \
    --max-test-fail=0               \
%if 0%{ignore_testsuite_result} > 0
    || :
%else
    --skip-test-list=unstable-tests
%endif
%endif

# client does not require server and needs the user too
%pre client
%sysusers_create_package %{name} %{SOURCE12}

%post
%systemd_post mariadb.service
%tmpfiles_create %{_tmpfilesdir}/mariadb.conf

# SLE11 Migration support
for i in protected tmp; do
    rmdir "$datadir"/.$i 2>/dev/null || :
done

# During package rename (migration maria->mysql-community-server),
# there might be config file move and we get rpmsave that we should keep
if [ -f %{_sysconfdir}/my.cnf.rpmsave ]; then
    mv %{_sysconfdir}/my.cnf{,.rpmnew}
    mv %{_sysconfdir}/my.cnf{.rpmsave,}
    cat >> %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-something << EOF

WARNING: %{_sysconfdir}/my.cnf.rpmsave file detected!

This probably means that you are migrating from different variant of MySQL.
Your configuration was left intact and you can see the new configuration in
%{_sysconfdir}/my.cnf.rpmnew

EOF
fi

# Decide if the upgrade is needed
datadir="`%{_bindir}/my_print_defaults mysqld mysql_server | sed -n 's|--datadir=||p'`"
[ -n "$datadir" ] || datadir="%{_localstatedir}/lib/mysql"

# NOTE: .run-mysql_upgrade was moved and renamed to .mariadb_run_upgrade. Remove the old file and
# create a new one if needed.
rm -f "$datadir/.run-mysql_upgrade"
if [ -d "$datadir/mysql" ]; then
	touch "%{_localstatedir}/lib/misc/.mariadb_run_upgrade"
fi

# Manage showing of a README or upgrade messages
# NOTE: mysql_upgrade_info was moved and renamed to mariadb_upgrade_info. Copy the content and remove it
if [ -f "$datadir/mysql_upgrade_info" ]; then
	cat "$datadir/mysql_upgrade_info" > "%{_localstatedir}/lib/misc/mariadb_upgrade_info"
	rm -f "$datadir/mysql_upgrade_info"
fi

if [ \! -f "%{_localstatedir}/lib/misc/mariadb_upgrade_info" ]; then
    if [ $1 -eq 1 ]; then
        cat >> %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-something << EOF

%(cat %{_sourcedir}/README.install)

EOF
    fi
else
    MYSQLVER="`echo %{version} | sed 's|\.[0-9]\+$||'`"
    if [ -f "%{_localstatedir}/lib/misc/mariadb_upgrade_info" ] && \
        [ -z "`grep "^$MYSQLVER" "%{_localstatedir}/lib/misc/mariadb_upgrade_info" 2> /dev/null`" ]; then
    cat >> %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-something << EOF

WARNING: You are upgrading from different stable version of MySQL!

Your database will be migrated automatically during next restart of MySQL.
Before you do that make sure you have up to date backup of your data. It
should be mainly in $datadir directory.

EOF
    fi
fi
exit 0

%preun
%systemd_preun mariadb.service

%files -f mariadb.files -f mariadb-galera-exclude.files
%config(noreplace) %attr(-, root, mysql) %{_sysconfdir}/my.cnf
%config(noreplace) %attr(-, root, mysql) %{_sysconfdir}/my.cnf.d/
%dir %attr(0700, mysql, root) /var/lib/mysql
%if %{with galera}
%exclude %{_sysconfdir}/my.cnf.d/50-galera.cnf
%endif
%config(noreplace) %{_sysconfdir}/security/user_map.conf
%config %{_sysconfdir}/logrotate.d/%{name}
%doc %{_defaultdocdir}/%{name}
%dir %{_libexecdir}/mysql
%dir %attr(0700, mysql, mysql) %{_localstatedir}/log/mysql
%{_libexecdir}/mysql/mysql-systemd-helper
%{_unitdir}/mariadb.service
%{_unitdir}/mariadb@.service
%{_unitdir}/mariadb.target
%{_unitdir}/mysql.service
%{_unitdir}/mysql@.service
%{_tmpfilesdir}/mariadb.conf
%{_sbindir}/rcmysql
%{_sbindir}/rcmariadb
%dir %{_datadir}/%{name}
%dir %{_datadir}/mysql
%{_datadir}/%{name}/charsets/
%{_datadir}/%{name}/*.sql
%dir %{_libdir}/mysql
%{_libdir}/mysql/mysqld.sym
%{_libdir}/mysql/INFO_SRC
%dir %{_libdir}/mysql/plugin
%{_libdir}/mysql/plugin/*.so
%exclude %{_libdir}/mysql/plugin/dialog*.so
%if 0%{with_cracklib_plugin} > 0
%exclude %{_libdir}/mysql/plugin/cracklib_password_check.so
%endif
/%{_lib}/security/pam_user_map.so
%dir %attr(0750, root, mysql) %{_libdir}/mysql/plugin/auth_pam_tool_dir
%verify(not mode) %attr(4755,root,root) %{_libdir}/mysql/plugin/auth_pam_tool_dir/auth_pam_tool
%ghost %{_localstatedir}/adm/update-messages/%{name}-%{version}-%{release}-something
%dir %attr(0750, mysql, mysql) %{_localstatedir}/lib/mysql-files
%if 0%{with_mroonga} > 0
%{_datadir}/mariadb/mroonga/
%dir %{_datadir}/groonga/
%{_datadir}/groonga/COPYING
%{_datadir}/groonga/README.md
%dir %{_datadir}/groonga-normalizer-mysql
%{_datadir}/groonga-normalizer-mysql/README.md
%{_datadir}/groonga-normalizer-mysql/lgpl-2.0.txt
%endif
%dir %{_datadir}/mysql/policy
%dir %{_datadir}/mysql/policy/apparmor
%{_datadir}/mysql/policy/apparmor/README
%{_datadir}/mysql/policy/apparmor/usr.sbin.mysqld*
%dir %{_datadir}/mysql/policy/selinux
%{_datadir}/mysql/policy/selinux/README
%{_datadir}/mysql/policy/selinux/mariadb-server.*
%{_datadir}/mysql/policy/selinux/mariadb.te
%dir %{_datadir}/mysql/systemd
%{_datadir}/mysql/systemd/mariadb.service
%{_datadir}/mysql/systemd/mariadb@.service

%files rpm-macros
%{_rpmmacrodir}/macros.mariadb-test

%files -n %{libname}
%{_libdir}/libmariadbd.so.%{major}*

%files -n %{devname}
%{_libdir}/libmysqld.so
%{_libdir}/libmariadbd.so

%files client -f mariadb-client.files
%dir %{_libdir}/mysql
%dir %{_libdir}/mysql/plugin
%{_libdir}/mysql/plugin/dialog_examples.so
%{_sysusersdir}/%{name}.conf

%if %{with galera}
%files galera -f mariadb-galera.files
%doc Docs/README.wsrep
%config(noreplace) %attr(-, root, mysql) %{_sysconfdir}/my.cnf.d/50-galera.cnf
%{_datadir}/mysql/systemd/use_galera_new_cluster.conf
%{_datadir}/mysql/wsrep_notify
%endif

%files errormessages -f mariadb-errormessages.files
%{_datadir}/%{name}/*/errmsg.sys

%files bench -f mariadb-bench.files
%{_datadir}/sql-bench

%files test -f mariadb-test.files
%{_bindir}/test-connect-t
%{_mandir}/man1/my_safe_process.1*
%{_mandir}/man1/mysql-test-run.pl.1*
%{_mandir}/man1/mysql-stress-test.pl.1*
%{_datadir}/mysql-test/valgrind.supp
%dir %attr(755, mysql, mysql) %{_datadir}/mysql-test
%attr(-, mysql, mysql) %{_datadir}/mysql-test/[^v]*
%dir %attr(755, mysql, mysql) %{_datadir}/mysql-test%{_localstatedir}

%files tools -f mariadb-tools.files
%{_bindir}/mysqlrepair
%{_bindir}/mysqlanalyze
%{_bindir}/mysqloptimize

%if 0%{with_cracklib_plugin} > 0
%files cracklib-password-check
%{_libdir}/mysql/plugin/cracklib_password_check.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14628 |21mr|mariadb-connector-c-3.1.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This spec was based on spec from openSUSE
# https://build.opensuse.org/package/show/openSUSE:Factory/mariadb-connector-c

%define major 3
%define libname %mklibname mariadb %{major}
%define devname %mklibname mariadb -d
# equivalent mariadb version
%define mariadb_version 10.3.21

%bcond_with sqlite3

%global _lto_cflags %{nil}
# plugin types seems to require no aliasing assumptions
%global optflags %{optflags} -fno-strict-aliasing

Name:           mariadb-connector-c
Version:        3.1.13
Release:        2
Summary:        MariaDB connector in C
License:        LGPL-2.1-or-later
Group:          Development/C
URL:            https://github.com/MariaDB/mariadb-connector-c
Source0:        https://downloads.mariadb.com/Connectors/c/connector-c-%{version}/%{name}-%{version}-src.tar.gz
# Patches from openSUSE
Patch1:         mariadb-connector-c-2.3.1_unresolved_symbols.patch
Patch2:         absolute_path_fix.patch
Patch3:         private_library.patch
BuildRequires:  cmake
BuildRequires:  curl-devel
BuildRequires:  git
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(krb5)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(zlib)
%if %{with sqlite3}
BuildRequires:  pkgconfig(sqlite3)
%endif

%description
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases. This is a different
implementation from the traditional libmariadbclient/libmysqlclient
that is shipped with mariadb-server/mysql-server, but the API is the same.

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:        MariaDB connector in C
Group:          System/Libraries

%description -n %{libname}
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases. This is a different
implementation from the traditional libmariadbclient/libmysqlclient
that is shipped with mariadb-server/mysql-server, but the API is the same.

This package holds the runtime components.

%files -n %{libname}
%license COPYING.LIB
%doc README
%{_libdir}/libmariadb.so.%{major}

#-------------------------------------------------------------------------

%package -n mariadb-plugins
Summary:        Plugins for the MariaDB C Connector
Group:          System/Libraries
# compat with openSUSE
Provides:       libmariadb_plugins = %{EVRD}

%description -n mariadb-plugins
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases.

This package holds MariaDB library plugins.

%files -n mariadb-plugins
%dir %{_libdir}/mysql/
%dir %{_libdir}/mysql/plugin/
%{_libdir}/mysql/plugin/dialog.so
%{_libdir}/mysql/plugin/mysql_clear_password.so
%{_libdir}/mysql/plugin/auth_gssapi_client.so
%{_libdir}/mysql/plugin/remote_io.so
%{_libdir}/mysql/plugin/sha256_password.so
%{_libdir}/mysql/plugin/caching_sha2_password.so
%{_libdir}/mysql/plugin/client_ed25519.so

#-------------------------------------------------------------------------

# see private_library.patch
%package -n %{_lib}mariadbprivate
Summary:        Additional internal libraries for the MariaDB C Connector
Group:          System/Libraries

%description -n %{_lib}mariadbprivate
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases.

This package holds the runtime components with private API.

%files -n %{_lib}mariadbprivate
%{_libdir}/libmariadbprivate.so

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for the MariaDB Connector C API
Group:          Development/C
Requires:       %{libname} = %{EVRD}
Requires:       pkgconfig(openssl)
Requires:       pkgconfig(zlib)
# mysql-devel needs to be provided as some pkgs still depend on it
Provides:       mysql-devel = %{mariadb_version}
Provides:       mariadb-devel = %{mariadb_version}
# compat with Fedora
Provides:       mariadb-connector-c-devel = %{EVRD}
Obsoletes:      mysql-devel < %{mariadb_version}

%description -n %{devname}
MariaDB Connector is used to connect applications developed in
C or C++ to MariaDB and MySQL databases.

This package holds the development files.

%files -n %{devname}
%{_bindir}/mariadb_config
%{_bindir}/mysql_config
%dir %{_includedir}/mysql
%{_includedir}/mysql/*
%{_includedir}/mariadb
%{_libdir}/pkgconfig/libmariadb.pc
# symlink to libmariadb.pc
%{_libdir}/pkgconfig/mariadb.pc
%{_libdir}/libmariadb.so
%{_libdir}/libmysqlclient.so
%{_libdir}/libmysqlclient_r.so

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-src

%build

%cmake \
%if %{with sqlite3}
  -DWITH_SQLITE:BOOL=ON \
%else
  -DWITH_SQLITE:BOOL=OFF \
%endif
  -DWITH_EXTERNAL_ZLIB:BOOL=ON \
  -DMARIADB_UNIX_ADDR:STRING=%{_rundir}/mysql/mysql.sock \
  -DINSTALL_LIBDIR:STRING=%{_libdir} \
  -DINSTALL_INCLUDEDIR:STRING=%{_includedir}/mysql \
  -DINSTALL_PLUGINDIR:STRING=%{_libdir}/mysql/plugin/ \
  -DWITH_MYSQLCOMPAT=ON \
  -DWITH_SSL=OPENSSL \
  -DINSTALL_PCDIR="%{_libdir}/pkgconfig"
%make_build

%install
%makeinstall_std -C build

# remove static linked libraries
rm %{buildroot}%{_libdir}/libmariadbclient.a
rm %{buildroot}%{_libdir}/libmysqlclient.a
rm %{buildroot}%{_libdir}/libmysqlclient_r.a

# add compatibility symlinks
ln -s mariadb_config %{buildroot}%{_bindir}/mysql_config
ln -s mariadb_version.h %{buildroot}%{_includedir}/mysql/mysql_version.h

ln -s %{_includedir}/mysql %{buildroot}%{_includedir}/mariadb

# ROSA: compat symlinks like my_list.h -> ma_list.h
( cd %{buildroot}%{_includedir}/mysql
  find . -maxdepth 1 -type f -name 'ma_*.h' | while read -r line
  do
    new="$(echo "$line" | sed -e 's,ma_,my_,')"
    if [ ! -e "$new" ] ; then
      ln -s "$line" "$new"
    fi
  done
)


# install some extra required header file
install -Dpm 0644 build/include/ma_config.h \
  %{buildroot}%{_includedir}/mysql/my_config.h

# XXX Fixes build of e.g. apr-util and probably should not break anything else
for i in my_global.h my_sys.h; do
cat >> %{buildroot}%{_includedir}/mysql/"$i" << 'EOF'
/* Empty header */
/* It exists only for compatibility between MySQL, MariaDB and mariadb-connector-c.
   Some build scripts in theory may become confused by its existense,
   please report any known problems that its existense causes to
   m.novosyolov@rosalinux.ru. For now it seems to be an acceptable hack
   for drop-in replacement of mariadb-devel by mysql-connector-c.
*/
EOF
done

# compat symlink, e.g. for postfix
( cd %{buildroot}%{_libdir}/pkgconfig
  ln -s libmariadb.pc mariadb.pc
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14629 |21mr|master-boot-code-1.14-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		master-boot-code
License:	BSD 3-Clause
Group:		System/Kernel and hardware
Version:	1.14
Release:	8
Summary:	i386 Master Boot Record Code
URL:		http://www.novell.com/products/linuxpackages/opensuse/master-boot-code.html
Source0:	master-boot-code.tar.bz2
Source1:	%{name}.rpmlintrc
Exclusivearch:	%ix86 x86_64 amd64 ia32e

Patch0:		master-boot-code-x86_64.patch

%description
The i386 master boot code is code that, after copied to the MBR of the
boot disk, loads and starts the boot sector of the active partition.

Authors:
--------
    Wolfgang Solfrank, TooLs GmbH
    The Regents of the University of California

%prep
%setup -n %{name}-%{version}

%ifarch x86_64
%patch0 -p1
%endif

%build
make

%install
test -d %{buildroot}/usr/lib/boot || mkdir -p %{buildroot}/usr/lib/boot
install -c -p -m 644 mbr %{buildroot}/usr/lib/boot/master-boot-code

%files
%dir /usr/lib/boot
%attr(644,root,root) /usr/lib/boot/master-boot-code
%doc COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14630 |21mr|mate-common-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Common files for MATE desktop environment
Name:		mate-common
Version:	1.26.0
Release:	2
License:	GPLv3+
Group:		Graphical desktop/MATE
Url:		http://www.mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gettext-devel
Requires:	automake
Requires:	autoconf
Requires:	gtk-doc
Requires:	intltool
Requires:	m4
BuildArch:	noarch

%description
Binaries for building all MATE desktop sub components.

%files
%{_bindir}/*
%{_datadir}/aclocal/*.m4
%{_datadir}/mate-common
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14631 |21mr|mate-desktop-1.26.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 2
%define girmajor 2.0
%define major 17
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d
%define girname %mklibname matedesktop-gir %{girmajor}

Summary:	Library with common API for various MATE modules
Name:		mate-desktop
Version:	1.26.0
Release:	7
Epoch:		1
License:	GPLv2+ and LGPLv2+ and MIT
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org/
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	user-dirs-update-mate.desktop
Source2:	10-Rosa-mate.gschema.override
BuildRequires:	autoconf-archive
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd412-xml
BuildRequires:	gtk-doc
BuildRequires:	hwdata
BuildRequires:	intltool
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	which
BuildRequires:	xml2po
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xrandr)
Recommends:	mate-panel
Requires:	hwdata
Requires:	xdg-user-dirs-gtk
Requires:	fonts-ttf-droid

%description
This package contains some data files and other shared components of the
MATE user environment.

%files -f %{name}.lang
%doc AUTHORS COPYING COPYING.LIB NEWS README
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/mate-about/
%{_datadir}/glib-2.0/schemas/org.mate.*.gschema.xml
%{_datadir}/glib-2.0/schemas/10_mate-Rosa.gschema.override
%{_mandir}/man1/*
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library with common API for various MATE modules
Group:		System/Libraries

%description -n %{libname}
Internal library (libmatedesktop) used to implement some portions of the
MATE desktop.

%files -n %{libname}
%doc AUTHORS COPYING COPYING.LIB NEWS README
%{_libdir}/libmate-desktop-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	Typelib file for MateDesktop
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
A GObject based library for MateDesktop clients to use to interface with
MateDesktop.

%files -n %{girname}
%doc AUTHORS COPYING COPYING.LIB NEWS README
%{_libdir}/girepository-1.0/MateDesktop-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MATE module API library development files
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development library with common API for various MATE modules.

%files -n %{devname}
%doc AUTHORS COPYING COPYING.LIB NEWS README
%{_datadir}/gtk-doc/html/mate-desktop
%{_libdir}/libmate-desktop-2.so
%{_libdir}/pkgconfig/mate-desktop-2.0.pc
%{_includedir}/mate-desktop-2.0
%{_datadir}/gir-1.0/MateDesktop-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure  \
     --enable-gtk-doc                                      \
     --disable-schemas-compile                             \
     --with-x                                              \
     --disable-static                                      \
     --with-pnp-ids-path="%{_datadir}/hwdata/pnp.ids"      \
     --enable-gtk-doc-html                                 \
     --enable-introspection=yes

%make

%install
%makeinstall_std

install -D -m 0644 %{S:2} %{buildroot}%{_datadir}/glib-2.0/schemas/10_mate-Rosa.gschema.override

%find_lang %{name}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14632 |21mr|mate-menus-1.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 2
%define gi_major 2.0
%define libname %mklibname mate-menu %{major}
%define girname %mklibname mate-menu-gir %{gi_major}
%define devname %mklibname mate-menu -d

Summary:	MATE menu library
Name:		mate-menus
Version:	1.26.0
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{url_ver}/%{name}-%{version}.tar.xz
# (fc) 2.16.0-2mdv unclutter preferences/settings menu
Patch0:		mate-menus-1.10.0-uncluttermenu.patch
BuildRequires:	autoconf-archive
BuildRequires:	intltool
BuildRequires:	mate-common
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(python)

%description
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec

Also contained here are the MATE menu layout configuration files,
.directory files and assorted menu related utility programs.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%dir %{_sysconfdir}/xdg/mate
%dir %{_sysconfdir}/xdg/mate/menus
%config(noreplace) %{_sysconfdir}/xdg/mate/menus/*
%{_datadir}/%{name}
%{_datadir}/mate/desktop-directories/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MATE menu library
Group:		System/Libraries

%description -n %{libname}
The package contains an implementation of the draft "Desktop Menu
Specification" from freedesktop.org:
http://www.freedesktop.org/Standards/menu-spec

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libmate-menu.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc AUTHORS COPYING README
%{_libdir}/girepository-1.0/MateMenu-%{gi_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MATE menu library development files
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
MATE menu library development files.

%files -n %{devname}
%doc AUTHORS COPYING README
%{_libdir}/lib*.so
%{_includedir}/mate-menus/
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/MateMenu-%{gi_major}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--enable-introspection=yes

%make

%install
%makeinstall_std

%find_lang %{name}

mkdir -p %{buildroot}%{_sysconfdir}/xdg/mate
mv %{buildroot}%{_sysconfdir}/xdg/menus %{buildroot}%{_sysconfdir}/xdg/mate

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14633 |21mr|mate-panel-1.26.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 4
%define major 1
%define girmajor 4.0
%define libname %mklibname mate-panel-applet %{api} %{major}
%define girname %mklibname matepanelapplet-gir %{girmajor}
%define devname %mklibname mate-panel-applet -d

Summary:	The core programs for the MATE GUI desktop environment
Name:		mate-panel
Version:	1.26.1
Release:	3
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/MATE
Url:		http://mate-desktop.org
Source0:	http://pub.mate-desktop.org/releases/%{lua: print (string.match(rpm.expand("%{version}"),"%d+.%d+"))}/%{name}-%{version}.tar.xz
Source1:	rosa-panel.png
Source2:	rosa.layout
# use xlock instead of xscreensaver to lock root desktop
Patch0:		mate-panel-1.10.0-rootlock.patch
BuildRequires:	autoconf-archive
BuildRequires:	docbook-dtd412-xml
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	mate-common
BuildRequires:	which
BuildRequires:	xml2po
BuildRequires:	xsltproc
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(dconf)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcanberra-gtk)
BuildRequires:	pkgconfig(libmate-menu)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libwnck-3.0)
BuildRequires:	pkgconfig(mate-desktop-2.0)
BuildRequires:	pkgconfig(mateweather)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xrandr)
Requires:	desktop-common-data
Recommends:	mate-desktop
Recommends:	mate-menus
Recommends:	mate-polkit
Recommends:	mate-screensaver
Recommends:	mate-session-manager
#(patch0)
Requires:	xlockmore
Recommends:	mate-applets

%description
The MATE panel packages provides the mate panel, menus and some
basic applets for the panel.

%files -f %{name}-3.0.lang
%doc AUTHORS COPYING README
%{_datadir}/glib-2.0/schemas/org.mate.panel.*.xml
%{_bindir}/*
%{_libexecdir}/mate-applets/clock-applet
%{_libexecdir}/mate-applets/fish-applet
%{_libexecdir}/mate-applets/notification-area-applet
%{_libexecdir}/mate-applets/wnck-applet
%{_datadir}/applications/*.desktop
%{_datadir}/dbus-1/services/org.mate.panel.applet.ClockAppletFactory.service
%{_datadir}/dbus-1/services/org.mate.panel.applet.FishAppletFactory.service
%{_datadir}/dbus-1/services/org.mate.panel.applet.NotificationAreaAppletFactory.service
%{_datadir}/dbus-1/services/org.mate.panel.applet.WnckletFactory.service
%{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Panel libraries for running MATE panels
Group:		System/Libraries

%description -n %{libname}
Panel libraries for running MATE panels.

%files -n %{libname}
%doc AUTHORS COPYING README
%{_libdir}/libmate-panel-applet-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc AUTHORS COPYING README
%{_libdir}/girepository-1.0/MatePanelApplet-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files for MATE panel
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Panel libraries and header files for creating MATE panels.

%files -n %{devname}
%doc AUTHORS COPYING README
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/libmate-panel*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/MatePanelApplet-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
# NOCONFIGURE=yes ./autogen.sh
%configure \
	--with-gtk=3.0 \
	--disable-static \
	--libexecdir=%{_libexecdir}/mate-applets \
	--enable-introspection \
	--enable-matecomponent \
	--disable-schemas-install

%make LIBS='-lgmodule-2.0'

%install
%makeinstall_std

%find_lang %{name}-3.0 --with-gnome --all-name

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/apps
cp -a %{SOURCE1} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps

install -D -m 0644 %{S:2} %{buildroot}%{_datadir}/mate-panel/layouts/rosa.layout

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14634 |21mr|mauikit-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define libname %mklibname %{name}
%define devname %mklibname %{name} -d

Summary:	Library for developing MAUI applications
Name:		mauikit
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		http://mauikit.org/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		mauikit-cmake_locale.patch
Patch1:		mauikit-russian_locale.patch
Patch3:		mauikit-set-soversion.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(xcb-atom)
BuildRequires:  pkgconfig(xproto)
BuildRequires:  pkgconfig(xcb-icccm)
BuildRequires:	mauiman-devel
Requires:	%{libname} = %{EVRD}

%description
Library for developing MAUI applications

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -f %{name}.lang
%{_kde5_qmldir}/org/mauikit/*
%{_kde5_datadir}/org.mauikit.controls

#--------------------------------------------

%package -n %{libname}
Summary:	Library files for MauiKit
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Library files for MauiKit

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{libname}
%{_kde5_libdir}/libMauiKit.so.*

#--------------------------------------------

%package -n %{devname}
Summary:	Development files for MauiKit
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for MauiKit

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{devname}
%{_includedir}/MauiKit
%{_kde5_libdir}/cmake/MauiKit
%{_kde5_libdir}/libMauiKit.so

#--------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14635 |21mr|mauikit-accounts-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2

%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
Summary:	MauiKit accountsg utilities and controls
Name:		mauikit-accounts
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		http://mauikit.org/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		mauikit-accounts-cmake_locale.patch
Patch1:		mauikit-accounts-russian_locale.patch
Patch2:		mauikit-accounts-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	mauikit-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	mauiman-devel
Requires:	%{libname} = %{EVRD}

%description
Library for developing MAUI applications

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -f libmauikitaccounts.lang
%{_kde5_qmldir}/org/mauikit/accounts/

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for mauikit-accounts
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Library files for mauikit-accounts

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{libname}
%{_kde5_libdir}/libMauiKitAccounts.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for mauikit-accounts
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for mauikit-accounts

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{devname}
%{_includedir}/MauiKit/Accounts/
%{_kde5_libdir}/cmake/MauiKitAccounts/MauiKitAccounts*
%{_kde5_libdir}/libMauiKitAccounts.so

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libmauikitaccounts


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14636 |21mr|mauikit-filebrowsing-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2

%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	MauiKit File Browsing utilities and controls
Name:		mauikit-filebrowsing
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		http://mauikit.org/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		mauikit-filebrowsing-cmake_locale.patch
Patch1:		mauikit-filebrowsing-russian_locale.patch
Patch2:		mauikit-filebrowsing-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5kio-devel
BuildRequires:	mauikit-devel = %{version}
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	mauiman-devel
Requires:	%{libname} = %{EVRD}

%description
Library for developing MAUI applications

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -f libmauikitfilebrowsing.lang
%{_kde5_qmldir}/org/mauikit/filebrowsing

#------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for mauikit-filebrowsing
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Library files for mauikit-filebrowsing

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{libname}
%{_kde5_libdir}/libMauiKitFileBrowsing.so.%{major}*

#------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for mauikit-filebrowsing
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for mauikit-filebrowsing

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{devname}
%{_includedir}/MauiKit/FileBrowsing
%{_kde5_libdir}/cmake/MauiKitFileBrowsing
%{_kde5_libdir}/libMauiKitFileBrowsing.so

#------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libmauikitfilebrowsing

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14637 |21mr|mauikit-imagetools-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2

%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	MauiKit ImageTools is a set of QtQuick components providing basic image editing capabilities
Name:		mauikit-imagetools
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		http://mauikit.org/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		mauikit-imagetools-2.1.0-fix-warnings.patch
Patch1:		mauikit-imagetools-cmake_locale.patch
Patch2:		mauikit-imagetools-russian_locale.patch
Patch3:		mauikit-imagetools-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kexiv2-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	mauikit-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	mauiman-devel
BuildRequires:	mauikit-devel
BuildRequires:  kquickimageeditor-devel
Requires:	%{libname} = %{EVRD}

%description
Library for developing MAUI applications

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -f libmauikitimagetools.lang
%{_kde5_qmldir}/org/mauikit/imagetools
%dir %{_kde5_datadir}/org/mauikit/imagetools
%{_kde5_datadir}/org/mauikit/imagetools/cities.db

#---------------------------------------------------------

%package -n %{libname}
Summary:	Library files for mauikit-imagetools
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Library files for mauikit-imagetools

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{libname}
%{_kde5_libdir}/libMauiKitImageTools.so.%{major}*

#---------------------------------------------------------

%package -n %{devname}
Summary:	Development files for mauikit-imagetools
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for mauikit-imagetools

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{devname}
%{_includedir}/MauiKit/ImageTools
# FIXME this seems odd, but should be fixed upstream
%{_includedir}/MauiKit/FileBrowsing/imagetools_version.h
%{_kde5_libdir}/cmake/MauiKitImageTools
%{_kde5_libdir}/libMauiKitImageTools.so

#---------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libmauikitimagetools


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14638 |21mr|mauikit-texteditor-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2

%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	MauiKit TextEditor utilities and controls
Name:		mauikit-texteditor
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		http://mauikit.org/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		mauikit-texteditor-cmake_locale.patch
Patch1:		mauikit-texteditor-russian_locale.patch
Patch2:		mauikit-texteditor-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	mauikit-devel
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)

%description
Library for developing MAUI applications

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -f libmauikittexteditor.lang
%{_kde5_qmldir}/org/mauikit/texteditor/libMauiKitTextEditor.so
%{_kde5_qmldir}/org/mauikit/texteditor/qmldir

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for mauikit-texteditor
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for mauikit-texteditor

MauiKit is a set of utilities and "templated" controls based on Kirigami and
QCC2 that follow the ongoing work on the Maui HIG.

It lets you quickly create a Maui application and access utilities and
widgets shared amoing the other Maui apps.

%files -n %{devname}
%{_kde5_libdir}/cmake/MauiKitTextEditor/MauiKitTextEditorConfig*

#---------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libmauikittexteditor

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14639 |21mr|mauiman-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0

%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Maui Manager Library
Name:		mauiman
Version:	1.0.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Url:		http://mauikit.org/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		mauiman-set-soversion.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
Requires:	%{libname} = %{EVRD}

%description
Maui Manager Library.

%files
%{_kde5_bindir}/MauiManServer

#--------------------------------------------

%package -n %{libname}
Summary:	Library files for MauiMan
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Library files for MauiMan.

%files -n %{libname}
%{_kde5_libdir}/libMauiMan.so.%{major}*

#--------------------------------------------

%package -n %{devname}
Summary:	Development files for MauiMan
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:   %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for MauiMan

%files -n %{devname}
%{_includedir}/MauiMan
%{_kde5_libdir}/cmake/MauiMan
%{_kde5_libdir}/libMauiMan.so

#--------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14640 |21mr|maui-pix-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define  oname pix

Summary:	Image gallery manager for Plasma Mobile
Name:		maui-pix
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/maui/%{oname}/%{version}/%{oname}-%{version}.tar.xz
Patch0:		maui-pix-russian_locale.patch
Patch1:		maui-pix-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	mauikit-devel
BuildRequires:	mauikit-accounts-devel
BuildRequires:	mauikit-filebrowsing-devel
BuildRequires:	mauikit-imagetools-devel
BuildRequires:  pkgconfig(exiv2)
Requires:  kquickimageeditor

%description
Image gallery manager for Plasma Mobile


%files -f %{oname}.lang
%{_kde5_bindir}/pix
%{_kde5_applicationsdir}/org.kde.pix.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/pix.svg
%{_kde5_datadir}/metainfo/org.kde.pix.appdata.xml

#-------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14641 |21mr|maven2-2.2.1-62
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven2
Version:        2.2.1
Release:        62
Summary:        Java project management and project comprehension tool
License:        ASL 2.0
URL:            http://maven.apache.org
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
Source1:        generate-tarball.sh

Patch2:         %{name}-%{version}-update-tests.patch
Patch4:         %{name}-%{version}-unshade.patch
Patch5:         %{name}-%{version}-default-resolver-pool-size.patch
Patch6:         %{name}-%{version}-strip-jackrabbit-dep.patch
Patch8:         %{name}-%{version}-migrate-to-plexus-containers-container-default.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

Provides:       deprecated()

%description
Apache Maven is a software project management and comprehension tool.
Based on the concept of a project object model (POM), Maven can manage
a project's build, reporting and documentation from a central piece of
information.

%package -n maven-artifact
Summary:        Compatibility Maven artifact artifact
Provides:       deprecated()

%description -n maven-artifact
Maven artifact manager artifact

%package -n maven-artifact-manager
Summary:        Compatibility Maven artifact manager artifact
Provides:       deprecated()

%description -n maven-artifact-manager
Maven artifact manager artifact

%package -n maven-model
Summary:        Compatibility Maven model artifact
Provides:       deprecated()

%description -n maven-model
Maven model artifact

%package -n maven-monitor
Summary:        Compatibility Maven monitor artifact
Provides:       deprecated()

%description -n maven-monitor
Maven monitor artifact

%package -n maven-plugin-registry
Summary:        Compatibility Maven plugin registry artifact
Provides:       deprecated()

%description -n maven-plugin-registry
Maven plugin registry artifact

%package -n maven-profile
Summary:        Compatibility Maven profile artifact
Provides:       deprecated()

%description -n maven-profile
Maven profile artifact

%package -n maven-project
Summary:        Compatibility Maven project artifact
Provides:       deprecated()

%description -n maven-project
Maven project artifact

%package -n maven-settings
Summary:        Compatibility Maven settings artifact
Provides:       deprecated()

%description -n maven-settings
Maven settings artifact

%package -n maven-toolchain
Summary:        Compatibility Maven toolchain artifact
Provides:       deprecated()

%description -n maven-toolchain
Maven toolchain artifact

%package -n maven-plugin-descriptor
Summary:        Maven Plugin Description Model
Provides:       deprecated()

%description -n maven-plugin-descriptor
Maven plugin descriptor artifact

%package javadoc
Summary:        Javadoc for %{name}
Provides:       deprecated()

%description javadoc
Javadoc for %{name}.


%prep
%setup -q

%patch2 -b .update-tests

%patch4 -b .unshade

# disable parallel artifact resolution
%patch5 -p1 -b .parallel-artifacts-resolution

# remove unneeded jackrabbit dependency
%patch6 -p1 -b .strip-jackrabbit-dep

%patch8 -p1 -b .plexus-container

for nobuild in apache-maven maven-artifact-test \
               maven-compat maven-core maven-plugin-api \
               maven-plugin-parameter-documenter maven-reporting \
               maven-repository-metadata maven-script \
               maven-error-diagnostics; do
    %pom_disable_module $nobuild
done

# Don't install parent POM
%mvn_package :maven __noinstall

# Install all artifacts in Maven 3 directory.
%mvn_file ":{*}" maven/@1

# these parts are compatibility versions which are available in
# maven-3.x as well. We default to maven-3, but if someone asks for
# 2.x we provide few compat versions
%mvn_compat_version ":maven-{artifact,model,settings}" \
                    2.0.2 2.0.6 2.0.7 2.0.8 2.2.1

# Don't depend on backport-util-concurrent
%pom_remove_dep :backport-util-concurrent
%pom_remove_dep :backport-util-concurrent maven-artifact-manager
sed -i s/edu.emory.mathcs.backport.// `find -name DefaultArtifactResolver.java`

# Tests are skipped, so remove dependencies with scope 'test'.
for pom in $(grep -l ">test<" $(find -name pom.xml | grep -v /test/)); do
    %pom_xpath_remove "pom:dependency[pom:scope[text()='test']]" $pom
done

%build
%mvn_build -f -s -- -P all-models

%install
%mvn_install

%files -n maven-artifact -f .mfiles-maven-artifact
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-artifact-manager -f .mfiles-maven-artifact-manager
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-model -f .mfiles-maven-model
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-monitor -f .mfiles-maven-monitor
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-plugin-registry -f .mfiles-maven-plugin-registry
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-profile -f .mfiles-maven-profile
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-project -f .mfiles-maven-project
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-settings -f .mfiles-maven-settings
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-toolchain -f .mfiles-maven-toolchain
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files -n maven-plugin-descriptor -f .mfiles-maven-plugin-descriptor
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license apache-maven/LICENSE.txt apache-maven/NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14642 |21mr|maven-3.5.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with logback

%global bundled_slf4j_version 1.7.25
%global homedir %{_datadir}/%{name}%{?maven_version_suffix}
%global confdir %{_sysconfdir}/%{name}%{?maven_version_suffix}

Name:           maven
Epoch:          1
Version:        3.5.4
Release:        13
Summary:        Java project management and project comprehension tool
# maven itself is ASL 2.0
# bundled slf4j is MIT
License:        ASL 2.0 and MIT
URL:            http://maven.apache.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/%{name}/%{name}-3/%{version}/source/apache-%{name}-%{version}-src.tar.gz
Source1:        maven-bash-completion
Source2:        mvn.1

Patch1:         0001-Adapt-mvn-script.patch
# Downstream-specific, avoids dependency on logback
# Used only when %%without logback is in effect
Patch2:         0002-Invoke-logback-via-reflection.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava:20.0)
BuildRequires:  mvn(com.google.inject:guice::no_aop:)
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(commons-jxpath:commons-jxpath)
BuildRequires:  mvn(javax.annotation:jsr250-api)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.resolver:maven-resolver-api)
BuildRequires:  mvn(org.apache.maven.resolver:maven-resolver-connector-basic)
BuildRequires:  mvn(org.apache.maven.resolver:maven-resolver-impl)
BuildRequires:  mvn(org.apache.maven.resolver:maven-resolver-spi)
BuildRequires:  mvn(org.apache.maven.resolver:maven-resolver-transport-wagon)
BuildRequires:  mvn(org.apache.maven.resolver:maven-resolver-util)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-file)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-http::shaded:)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.eclipse.sisu:sisu-maven-plugin)
BuildRequires:  mvn(org.fusesource.jansi:jansi)
BuildRequires:  mvn(org.mockito:mockito-core) >= 2
BuildRequires:  mvn(org.slf4j:jcl-over-slf4j)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  mvn(org.sonatype.plexus:plexus-cipher)
BuildRequires:  mvn(org.sonatype.plexus:plexus-sec-dispatcher)
BuildRequires:  mvn(xmlunit:xmlunit)

BuildRequires:  slf4j-sources = %{bundled_slf4j_version}

%if %{with logback}
BuildRequires:  mvn(ch.qos.logback:logback-classic)
%endif

Requires:       %{name}-lib = %{epoch}:%{version}-%{release}

Requires(post): /usr/sbin/update-alternatives
Requires(postun): /usr/sbin/update-alternatives

# Theoretically Maven might be usable with just JRE, but typical Maven
# workflow requires full JDK, so we recommend it here.
%{?fedora:Recommends}%{!?fedora:Requires}: java-devel

# XMvn does generate auto-requires, but explicit requires are still
# needed because some symlinked JARs are not present in Maven POMs or
# their dependency scope prevents them from being added automatically
# by XMvn.  It would be possible to explicitly specify only
# dependencies which are not generated automatically, but adding
# everything seems to be easier.
Requires:       aopalliance
Requires:       apache-commons-cli
Requires:       apache-commons-codec
Requires:       apache-commons-io
Requires:       apache-commons-lang3
Requires:       apache-commons-logging
Requires:       atinject
Requires:       cdi-api
Requires:       geronimo-annotation
Requires:       google-guice
Requires:       guava20
Requires:       hawtjni-runtime
Requires:       httpcomponents-client
Requires:       httpcomponents-core
Requires:       jansi
Requires:       jansi-native
Requires:       jcl-over-slf4j
Requires:       maven-resolver-api
Requires:       maven-resolver-connector-basic
Requires:       maven-resolver-impl
Requires:       maven-resolver-spi
Requires:       maven-resolver-transport-wagon
Requires:       maven-resolver-util
Requires:       maven-shared-utils
Requires:       maven-wagon-file
Requires:       maven-wagon-http
Requires:       maven-wagon-http-shared
Requires:       maven-wagon-provider-api
Requires:       plexus-cipher
Requires:       plexus-classworlds
Requires:       plexus-containers-component-annotations
Requires:       plexus-interpolation
Requires:       plexus-sec-dispatcher
Requires:       plexus-utils
Requires:       sisu-inject
Requires:       sisu-plexus
Requires:       slf4j

%description
Maven is a software project management and comprehension tool. Based on the
concept of a project object model (POM), Maven can manage a project's build,
reporting and documentation from a central piece of information.

%package        lib
Summary:        Core part of Maven
# If XMvn is part of the same RPM transaction then it should be
# installed first to avoid triggering rhbz#1014355.
OrderWithRequires: xmvn-minimal

# Require full javapackages-tools since maven-script uses
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools
# Maven upstream uses patched version of SLF4J.  They unpack
# slf4j-simple-sources.jar, apply non-upstreamable, Maven-specific
# patch (using a script written in Groovy), compile and package as
# maven-slf4j-provider.jar, together with Maven-specific additions.
Provides:       bundled(slf4j) = %{bundled_slf4j_version}

%description    lib
Core part of Apache Maven that can be used as a library.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.

%prep
%setup -q -n apache-%{name}-%{version}

%patch1 -p1

# not really used during build, but a precaution
find -name '*.jar' -not -path '*/test/*' -delete
find -name '*.class' -delete
find -name '*.bat' -delete

sed -i 's:\r::' apache-maven/src/conf/settings.xml

# Downloads dependency licenses from the Internet and aggregates them.
# We already ship the licenses in their respective packages.
rm apache-maven/src/main/appended-resources/META-INF/LICENSE.vm

# Disable plugins which are not useful for us
%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :buildnumber-maven-plugin
sed -i "
/buildNumber=/ {
  s/=.*/=Red Hat %{version}-%{release}/
  s/%{dist}$//
}
/timestamp=/ d
" `find -name build.properties`

%mvn_package :apache-maven __noinstall

%if %{without logback}
%pom_remove_dep -r :logback-classic
%patch2 -p1
%endif

%mvn_alias :maven-resolver-provider :maven-aether-provider

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

mkdir m2home
(cd m2home
    tar --delay-directory-restore -xvf ../apache-maven/target/*tar.gz
)


%install
%mvn_install

export M2_HOME=$(pwd)/m2home/apache-maven-%{version}%{?ver_add}

install -d -m 755 %{buildroot}%{homedir}/conf
install -d -m 755 %{buildroot}%{confdir}
install -d -m 755 %{buildroot}%{_datadir}/bash-completion/completions/

cp -a $M2_HOME/{bin,lib,boot} %{buildroot}%{homedir}/
xmvn-subst -R %{buildroot} -s %{buildroot}%{homedir}

# Transitive deps of wagon-http, missing because of unshading
build-jar-repository -s -p %{buildroot}%{homedir}/lib \
    commons-{codec,logging} httpcomponents/{httpclient,httpcore} maven-wagon/http-shared

# Transitive deps of cdi-api that should have been excluded
rm %{buildroot}%{homedir}/lib/jboss-interceptors*.jar
rm %{buildroot}%{homedir}/lib/javax.el-api*.jar

# Native lib whose extraction we suppressed
ln -s %{_jnidir}/jansi-native/jansi-linux.jar %{buildroot}%{homedir}/lib/

install -p -m 644 %{SOURCE2} %{buildroot}%{homedir}/bin/
gzip -9 %{buildroot}%{homedir}/bin/mvn.1
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/bash-completion/completions/mvn%{?maven_version_suffix}
mv $M2_HOME/bin/m2.conf %{buildroot}%{_sysconfdir}/m2%{?maven_version_suffix}.conf
ln -sf %{_sysconfdir}/m2%{?maven_version_suffix}.conf %{buildroot}%{homedir}/bin/m2.conf
mv $M2_HOME/conf/settings.xml %{buildroot}%{confdir}/
ln -sf %{confdir}/settings.xml %{buildroot}%{homedir}/conf/settings.xml
mv $M2_HOME/conf/logging %{buildroot}%{confdir}/
ln -sf %{confdir}/logging %{buildroot}%{homedir}/conf

# Ghosts for alternatives
install -d -m 755 %{buildroot}%{_bindir}/
install -d -m 755 %{buildroot}%{_mandir}/man1/
touch %{buildroot}%{_bindir}/{mvn,mvnDebug}
touch %{buildroot}%{_mandir}/man1/{mvn,mvnDebug}.1


%post
update-alternatives --install %{_bindir}/mvn mvn %{homedir}/bin/mvn %{?maven_alternatives_priority}0 \
--slave %{_bindir}/mvnDebug mvnDebug %{homedir}/bin/mvnDebug \
--slave %{_mandir}/man1/mvn.1.xz mvn1 %{homedir}/bin/mvn.1.xz \
--slave %{_mandir}/man1/mvnDebug.1.xz mvnDebug1 %{homedir}/bin/mvn.1.xz \

%postun
[[ $1 -eq 0 ]] && update-alternatives --remove %{name} %{homedir}/bin/mvn


%files lib -f .mfiles
%doc README.md
%license LICENSE NOTICE
%{homedir}
%dir %{confdir}
%dir %{confdir}/logging
%config(noreplace) %{_sysconfdir}/m2%{?maven_version_suffix}.conf
%config(noreplace) %{confdir}/settings.xml
%config(noreplace) %{confdir}/logging/simplelogger.properties

%files
%ghost %{_bindir}/mvn
%ghost %{_bindir}/mvnDebug
%{_datadir}/bash-completion
%ghost %{_mandir}/man1/mvn.1.xz
%ghost %{_mandir}/man1/mvnDebug.1.xz

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14643 |21mr|maven-ant-plugin-2.3-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-ant-plugin
Version:        2.3
Release:        24
Summary:        Maven Ant Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-ant-plugin
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

#svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-ant-plugin-2.3/
#tar jcf maven-ant-plugin-2.3.tar.bz2 maven-ant-plugin-2.3/
Source0:        %{name}-%{version}.tar.bz2
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Patch0:         %{name}-pom.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-nodeps)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(xalan:xalan)
BuildRequires:  mvn(xml-apis:xml-apis)

%description
Generates an Ant build file from a POM.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q 
%patch0 -p0
cp -p %{SOURCE1} .

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14644 |21mr|maven-antrun-plugin-1.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-antrun-plugin
Version:        1.8
Release:        9
Summary:        Maven AntRun Plugin

License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-antrun-plugin/
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip 

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
This plugin provides the ability to run Ant tasks from within Maven.
It is even possible to embed Ant scripts in the POM.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q 

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14645 |21mr|maven-archetype-2.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-archetype
Version:        2.4
Release:        10
Summary:        Maven project templating toolkit

# Most of the code is under ASL 2.0, but some bundled jdom sources are
# under ASL 1.1
License:        ASL 2.0 and ASL 1.1
URL:            https://maven.apache.org/archetype/
Source0:        http://repo.maven.apache.org/maven2/org/apache/maven/archetype/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch1:         0001-Add-Maven-3-compatibility.patch
Patch2:         0002-Fix-jetty-namespace.patch
Patch3:         0003-Port-to-current-plexus-utils.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(jdom:jdom)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.sourceforge.jchardet:jchardet)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.shared:maven-invoker)
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.shared:maven-script-interpreter)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-file)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-http)
BuildRequires:  mvn(org.apache.velocity:velocity)
BuildRequires:  mvn(org.beanshell:bsh)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interactivity-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-velocity)

%description
Archetype is a Maven project templating toolkit. An archetype is
defined as an original pattern or model from which all other things of
the same kind are made. The names fits as we are trying to provide a
system that provides a consistent means of generating Maven
projects. Archetype will help authors create Maven project templates
for users, and provides users with the means to generate parameterized
versions of those project templates.

Using archetypes provides a great way to enable developers quickly in
a way consistent with best practices employed by your project or
organization. Within the Maven project we use archetypes to try and
get our users up and running as quickly as possible by providing a
sample project that demonstrates many of the features of Maven while
introducing new users to the best practices employed by Maven. In a
matter of seconds a new user can have a working Maven project to use
as a jumping board for investigating more of the features in Maven. We
have also tried to make the Archetype mechanism additive and by that
we mean allowing portions of a project to be captured in an archetype
so that pieces or aspects of a project can be added to existing
projects. A good example of this is the Maven site archetype. If, for
example, you have used the quick start archetype to generate a working
project you can then quickly create a site for that project by using
the site archetype within that existing project. You can do anything
like this with archetypes.

You may want to standardize J2EE development within your organization
so you may want to provide archetypes for EJBs, or WARs, or for your
web services. Once these archetypes are created and deployed in your
organization's repository they are available for use by all developers
within your organization.


%package javadoc
Summary:        API documentation for %{name}

%description    javadoc
%{summary}.

%package catalog
Summary:        Maven Archetype Catalog model

%description catalog
%{summary}.

%package descriptor
Summary:        Maven Archetype Descriptor model

%description descriptor
%{summary}.

%package registry
Summary:        Maven Archetype Registry model

%description registry
%{summary}.

%package common
Summary:        Maven Archetype common classes

%description common
%{summary}.

%package packaging
Summary:        Maven Archetype packaging configuration for archetypes

%description packaging
%{summary}.

%package -n %{name}-plugin
Summary:        Maven Plugin for using archetypes

%description -n %{name}-plugin
%{summary}.

%prep
%setup -q

%patch1 -p1
%patch2 -p1
%patch3 -p1

# useless in packaging
%pom_remove_plugin -r :apache-rat-plugin

# Add OSGI info to catalog and descriptor jars
pushd archetype-models/archetype-catalog
    %pom_xpath_remove "pom:project/pom:packaging"
    %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
    %pom_xpath_inject "pom:build/pom:plugins" "
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <_nouses>true</_nouses>
            <Export-Package>org.apache.maven.archetype.catalog.*</Export-Package>
          </instructions>
        </configuration>
      </plugin>"
popd
pushd archetype-models/archetype-descriptor
    %pom_xpath_remove "pom:project/pom:packaging"
    %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
    %pom_xpath_inject "pom:build/pom:plugins" "
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <_nouses>true</_nouses>
            <Export-Package>org.apache.maven.archetype.metadata.*</Export-Package>
          </instructions>
        </configuration>
      </plugin>"
popd


# groovy is not really needed
%pom_remove_dep org.codehaus.groovy:groovy maven-archetype-plugin/pom.xml

%pom_disable_module archetype-testing
%pom_remove_plugin org.apache.maven.plugins:maven-antrun-plugin archetype-common/pom.xml


%build
%mvn_package :archetype-models maven-archetype
# we don't have cargo so skip tests for now
%mvn_build -s -f

%install
%mvn_install


%files -f .mfiles-maven-archetype
%doc LICENSE NOTICE

%files catalog -f .mfiles-archetype-catalog

%files descriptor -f .mfiles-archetype-descriptor

%files registry -f .mfiles-archetype-registry

%files common -f .mfiles-archetype-common

%files packaging -f .mfiles-archetype-packaging

%files -n %{name}-plugin -f .mfiles-maven-archetype-plugin

%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14646 |21mr|maven-archiver-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-archiver
Version:        3.4.0
Release:        1
Epoch:          0
Summary:        Maven Archiver
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-archiver/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:         0001-Port-tests-to-Eclipse-Aether.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver) >= 4.1.0
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Maven Archiver is used by other Maven plugins
to handle packaging

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
%patch0 -p1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE CONTRIBUTING.md README.md

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14647 |21mr|maven-artifact-resolver-1.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-artifact-resolver
Version:        1.0
Release:        21
# Epoch is added because the original package's version in maven-shared is 1.1-SNAPSHOT
Epoch:          1
Summary:        Maven Artifact Resolution API
License:        ASL 2.0
URL:            http://maven.apache.org/shared/%{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://central.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Replaced plexus-maven-plugin with plexus-component-metadata
Patch0:         %{name}-plexus.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.easymock:easymock)

%description
Provides a component for plugins to easily resolve project dependencies.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q
%patch0 -p1

%pom_xpath_inject pom:project/pom:dependencies "
<dependency>
  <groupId>org.apache.maven</groupId>
  <artifactId>maven-compat</artifactId>
  <version>1.0</version>
</dependency>" pom.xml

# Incompatible method invocation
rm src/test/java/org/apache/maven/shared/artifact/resolver/DefaultProjectDependenciesResolverIT.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc DEPENDENCIES LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14648 |21mr|maven-artifact-transfer-0.9.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-artifact-transfer
Version:        0.9.0
Release:        7
Epoch:          1
Summary:        Apache Maven Artifact Transfer
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-artifact-transfer
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:         0001-Compatibility-with-Maven-3.0.3-and-later.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-impl)
BuildRequires:  mvn(org.eclipse.aether:aether-util)
BuildRequires:  mvn(org.slf4j:slf4j-api)


%description
An API to either install or deploy artifacts with Maven 3.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q
%patch0 -p1

%pom_remove_plugin :maven-shade-plugin
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin

# We don't want to support legacy Maven versions (older than 3.1)
%pom_remove_dep org.sonatype.aether:
find -name Maven30\*.java -delete

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14649 |21mr|maven-assembly-plugin-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-assembly-plugin
Summary:        Maven Assembly Plugin
Version:        3.1.1
Release:        1
License:        ASL 2.0

URL:            http://maven.apache.org/plugins/maven-assembly-plugin/
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:file-management)
BuildRequires:  mvn(org.apache.maven.shared:maven-artifact-transfer)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.apache.maven.shared:maven-filtering)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-io)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-io)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
A Maven plugin to create archives of your project's sources, classes,
dependencies etc. from flexible assembly descriptors.


%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.


%prep
%setup -q


%build
# Tests need easymockclassextension version 2.x, which is incompatible
# with easymockclassextension version 3.x we have in Fedora.
%mvn_build -f


%install
%mvn_install


%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14650 |21mr|maven-checkstyle-plugin-3.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             maven-checkstyle-plugin
Version:          3.0.0
Release:          4
Summary:          Plugin that generates a report regarding the code style used by the developers
License:          ASL 2.0
URL:              https://maven.apache.org/plugins/%{name}

Source0:          https://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch1:           0001-Port-to-doxia-1.7.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(com.puppycrawl.tools:checkstyle)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-decoration-model)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-integration-tools)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-plugin-descriptor)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.apache.velocity:velocity)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-resources)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-velocity)

%description
Generates a report on violations of code style and optionally fails the build
if violations are detected.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%autosetup -p1

%pom_remove_plugin :apache-rat-plugin

# Remove build-helper java version parsing for animal sniffer
# Remove animal-sniffer because it's an upstream quality check not needed to be redone here
%pom_remove_plugin :build-helper-maven-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin

%build
%mvn_build -f -- -DmavenVersion=3.2.1

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14651 |21mr|maven-clean-plugin-3.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-clean-plugin
Version:        3.1.0
Release:        3
Summary:        Maven Clean Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-clean-plugin/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)

%description
The Maven Clean Plugin is a plugin that removes files generated 
at build-time in a project's directory.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.


%prep
%setup -q 

# junit dependency was removed in Plexus 1.6
%pom_add_dep junit:junit::test

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14652 |21mr|maven-common-artifact-filters-3.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-common-artifact-filters
Version:        3.0.1
Release:        7
Summary:        Maven Common Artifact Filters
License:        ASL 2.0
URL:            http://maven.apache.org/shared/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:         0001-Remove-Maven-3.0-specific-code.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-util)

%description
A collection of ready-made filters to control inclusion/exclusion of artifacts
during dependency resolution.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
%patch0 -p1

# We don't want to support legacy Maven versions (older than 3.1)
%pom_remove_dep org.sonatype.sisu:
%pom_remove_dep org.sonatype.aether:
find -name SonatypeAether\*.java -delete

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14653 |21mr|maven-compiler-plugin-3.8.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-compiler-plugin
Version:        3.8.1
Release:        2
Summary:        Maven Compiler Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-compiler-plugin
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/maven/plugins/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-incremental)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-javac)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-manager)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-java)


%description
The Compiler Plugin is used to compile the sources of your project.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14654 |21mr|maven-dependency-analyzer-1.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-dependency-analyzer
Version:        1.11.1
Release:        1
Summary:        Maven dependency analyzer
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-dependency-analyzer/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.ow2.asm:asm)

%description
Analyzes the dependencies of a project for undeclared or unused artifacts.

Warning: Analysis is not done at source but bytecode level, then some cases are
not detected (constants, annotations with source-only retention, links in
javadoc) which can lead to wrong result if they are the only use of a
dependency.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}

%prep
%setup -q

# Needed for tests only. However, the right groupId:artifactId of jmock in
# Fedora is org.jmock:jmock
%pom_remove_dep jmock:jmock

%build
# org.jmock.core package is needed, we don't have it
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14655 |21mr|maven-dependency-plugin-3.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-dependency-plugin
Version:        3.1.1
Release:        3
Summary:        Plugin to manipulate, copy and unpack local and remote artifacts
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/%{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(classworlds:classworlds)
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-repository-metadata)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.apache.maven.shared:file-management)
BuildRequires:  mvn(org.apache.maven.shared:maven-artifact-transfer)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.apache.maven.shared:maven-dependency-analyzer)
BuildRequires:  mvn(org.apache.maven.shared:maven-dependency-tree)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-http-lightweight)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-io)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)


%description

The dependency plugin provides the capability to manipulate
artifacts. It can copy and/or unpack artifacts from local or remote
repositories to a specified location.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.


%prep
%setup -q

%pom_remove_plugin :maven-enforcer-plugin

# We don't want to support legacy Maven versions (older than 3.1)
%pom_remove_dep org.sonatype.aether:

%build
# Tests require legacy Maven
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14656 |21mr|maven-dependency-tree-3.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          maven-dependency-tree
Version:       3.0.1
Release:       2
Summary:       Maven dependency tree artifact
License:       ASL 2.0
Url:           http://maven.apache.org/
Source0:       http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-util)

Provides:      maven-shared-dependency-tree = %{version}-%{release}

%description
Apache Maven dependency tree artifact. Originally part of maven-shared.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

find -name Maven3DependencyGraphBuilder.java -delete
%pom_remove_dep org.sonatype.aether:

%pom_remove_plugin :apache-rat-plugin

%build
# Incompatible version of jMock (Fedora has 2.x, upstream uses 1.x)
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14657 |21mr|maven-deploy-plugin-2.8.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-deploy-plugin
Version:        2.8.2
Release:        11
Summary:        Maven Deploy Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-deploy-plugin/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Maven and its dependencies
BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact:2.0.6)
BuildRequires:  mvn(org.apache.maven:maven-model:2.0.6)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.mockito:mockito-core)

%description
Uploads the project artifacts to the internal remote repository.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%pom_add_plugin :maven-plugin-plugin . "
        <configuration>
          <helpPackageName>org.apache.maven.plugin.deploy</helpPackageName>
        </configuration>"

%build

%mvn_file :%{name} %{name}
# A test class doesn't compile
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc DEPENDENCIES LICENSE NOTICE 

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14658 |21mr|maven-docck-plugin-1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-docck-plugin
Version:        1.1
Release:        9
Summary:        Maven Documentation Checker Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-docck-plugin/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:         0001-Port-to-maven-plugin-tools-3.4.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-httpclient:commons-httpclient)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-plugin-descriptor)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-tools-api)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-tools-beanshell)
BuildRequires:  mvn(org.apache.maven.shared:file-management)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
Checks for violations of the Plugin Documentation Standard.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q
%patch0 -p1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14659 |21mr|maven-doxia-1.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with    itext
%bcond_with    fop

Name:           maven-doxia
Version:        1.9
Release:        5
Summary:        Content generation framework
License:        ASL 2.0
URL:            http://maven.apache.org/doxia/
Group:          Development/Java
Source0:        http://repo2.maven.org/maven2/org/apache/maven/doxia/doxia/%{version}/doxia-%{version}-source-release.zip

# Build against iText 2.x
# https://issues.apache.org/jira/browse/DOXIA-53
Patch1:         0001-Fix-itext-dependency.patch

# Don't run bad tests which rely on ordering in set (they fail with Java 8)
Patch2:         0002-Disable-tests-which-rely-on-ordering-in-set.patch

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.xmlunit:xmlunit-core)
BuildRequires:  mvn(org.xmlunit:xmlunit-matchers)

%if %{with fop}
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-configuration:commons-configuration)
BuildRequires:  mvn(log4j:log4j:1.2.12)
BuildRequires:  mvn(org.apache.xmlgraphics:fop)
%endif

%if %{with itext}
BuildRequires:  mvn(com.lowagie:itext)
%endif

%rename maven-doxia-book
%rename maven-doxia-maven-plugin
%if %{without fop}
%rename maven-doxia-module-fo
%endif
%if %{without itext}
%rename maven-doxia-module-itext
%endif
%rename maven-doxia-module-markdown

%description
Doxia is a content generation framework which aims to provide its
users with powerful techniques for generating static and dynamic
content. Doxia can be used to generate static sites in addition to
being incorporated into dynamic content generation systems like blogs,
wikis and content management systems.

%package core
Summary: Core module for %{name}

%description core
This package provides %{summary}.

%package logging-api
Summary: Logging-api module for %{name}

%description logging-api
This package provides %{summary}.

%package module-apt
Summary: APT module for %{name}

%description module-apt
This package provides %{summary}.

%package module-confluence
Summary: Confluence module for %{name}

%description module-confluence
This package provides %{summary}.

%package module-docbook-simple
Summary: Simplified DocBook module for %{name}

%description module-docbook-simple
This package provides %{summary}.

%package module-fml
Summary: FML module for %{name}

%description module-fml
This package provides %{summary}.

%if %{with fop}
%package module-fo
Summary: FO module for %{name}

%description module-fo
This package provides %{summary}.
%endif

%if %{with itext}
%package module-itext
Summary: iText module for %{name}

%description module-itext
This package provides %{summary}.
%endif

%package module-latex
Summary: Latex module for %{name}

%description module-latex
This package provides %{summary}.

%package module-rtf
Summary: RTF module for %{name}

%description module-rtf
This package provides %{summary}.

%package modules
Summary: Doxia modules for several markup languages

%description modules
This package provides %{summary}.

%package module-twiki
Summary: TWiki module for %{name}

%description module-twiki
This package provides %{summary}.

%package module-xdoc
Summary: XDoc module for %{name}

%description module-xdoc
This package provides %{summary}.

%package module-xhtml
Summary: XHTML module for %{name}

%description module-xhtml
This package provides %{summary}.

%package module-xhtml5
Summary: XHTML5 module for %{name}

%description module-xhtml5
This package provides %{summary}.

%package sink-api
Summary: Sink-api module for %{name}

%description sink-api
This package provides %{summary}.

%package tests
Summary: Tests for %{name}

%description tests
This package provides %{summary}.

%package test-docs
Summary: Test-docs module for %{name}

%description test-docs
This package provides %{summary}.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n doxia-%{version}

find -name '*.java' -exec sed -i 's/\r//' {} +
find -name '*.xml' -exec sed -i 's/\r//' {} +
%patch1 -p1
%patch2 -p1

# we don't have clirr-maven-plugin
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin pom.xml

# complains
%pom_remove_plugin :apache-rat-plugin

# use java 5 generics in modello plugin
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='modello-maven-plugin']]"\
"/pom:executions/pom:execution/pom:configuration" \
"<useJava5>true</useJava5>" doxia-modules/doxia-module-fml/pom.xml

# requires network
rm doxia-core/src/test/java/org/apache/maven/doxia/util/XmlValidatorTest.java

%mvn_package :::tests: tests

%pom_disable_module doxia-module-markdown doxia-modules

%if %{without itext}
%pom_disable_module doxia-module-itext doxia-modules
%endif
%if %{without fop}
%pom_disable_module doxia-module-fo doxia-modules
%endif

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-doxia
%doc LICENSE NOTICE
%files core -f .mfiles-doxia-core
%files logging-api -f .mfiles-doxia-logging-api
%doc LICENSE NOTICE
%files module-apt -f .mfiles-doxia-module-apt
%files module-confluence -f .mfiles-doxia-module-confluence
%files module-docbook-simple -f .mfiles-doxia-module-docbook-simple
%files module-fml -f .mfiles-doxia-module-fml
%if %{with fop}
%files module-fo -f .mfiles-doxia-module-fo
%endif
%if %{with itext}
%files module-itext -f .mfiles-doxia-module-itext
%endif
%files module-latex -f .mfiles-doxia-module-latex
%files module-rtf -f .mfiles-doxia-module-rtf
%files modules -f .mfiles-doxia-modules
%files module-twiki -f .mfiles-doxia-module-twiki
%files module-xdoc -f .mfiles-doxia-module-xdoc
%files module-xhtml -f .mfiles-doxia-module-xhtml
%files module-xhtml5 -f .mfiles-doxia-module-xhtml5
%files sink-api -f .mfiles-doxia-sink-api
%files test-docs -f .mfiles-doxia-test-docs
%files tests -f .mfiles-tests
%doc LICENSE NOTICE
%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14660 |21mr|maven-doxia-sitetools-1.9.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with fop

%global parent maven-doxia
%global subproj sitetools

Name:           %{parent}-%{subproj}
Version:        1.9.1
Release:        3
Summary:        Doxia content generation framework
License:        ASL 2.0
URL:            http://maven.apache.org/doxia/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        http://repo2.maven.org/maven2/org/apache/maven/doxia/doxia-sitetools/%{version}/doxia-%{subproj}-%{version}-source-release.zip

Patch0:         0001-Port-to-plexus-utils-3.0.24.patch
Patch1:         0002-Remove-dependency-on-velocity-tools.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-core)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-logging-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-apt)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fml)
%if %{with fop}
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-fo)
%endif
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xdoc)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xhtml)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xhtml5)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-artifact:2.2.1)
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
BuildRequires:  mvn(org.apache.maven:maven-model:2.2.1)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.velocity:velocity)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-velocity)
BuildRequires:  mvn(xalan:xalan)
BuildRequires:  mvn(xml-apis:xml-apis)

Provides:      maven-doxia-tools = %{version}-%{release}
Obsoletes:     maven-doxia-tools < 1.7

%description
Doxia is a content generation framework which aims to provide its
users with powerful techniques for generating static and dynamic
content. Doxia can be used to generate static sites in addition to
being incorporated into dynamic content generation systems like blogs,
wikis and content management systems.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n doxia-%{subproj}-%{version}
%patch0 -p1
%patch1 -p1

# complains
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin -r :maven-enforcer-plugin

%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin
%pom_remove_dep net.sourceforge.htmlunit:htmlunit doxia-site-renderer/pom.xml
%pom_remove_dep -r :velocity-tools

%pom_xpath_inject "pom:plugin[pom:artifactId[text()='modello-maven-plugin']]/pom:configuration" \
    "<useJava5>true</useJava5>" doxia-decoration-model

# There are two backends for generating PDFs: one based on iText and
# one using FOP.  iText module is broken and only brings additional
# dependencies.  Besides that upstream admits that iText support will
# likely removed in future versions of Doxia.  In Fedora we remove
# iText backend sooner in order to fix dependency problems.
#
# See also: http://maven.apache.org/doxia/faq.html#How_to_export_in_PDF
# http://lists.fedoraproject.org/pipermail/java-devel/2013-April/004742.html
rm -rf $(find -type d -name itext)
%pom_remove_dep -r :doxia-module-itext

%pom_remove_dep -r :doxia-module-markdown

%if %{without fop}
%pom_remove_dep -r :doxia-module-fo
rm -r doxia-doc-renderer/src/main/java/org/apache/maven/doxia/docrenderer/pdf/fo
%endif

%mvn_alias :doxia-integration-tools org.apache.maven.shared:maven-doxia-tools

%build
# tests can't run because of missing deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14661 |21mr|maven-ear-plugin-2.10-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-ear-plugin
Version:        2.10
Release:        9
Summary:        Maven EAR Plugin

License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-ear-plugin/
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-filtering)
BuildRequires:  mvn(org.apache.maven.shared:maven-verifier)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(xmlunit:xmlunit)

Obsoletes: maven2-plugin-ear <= 0:2.0.8
Provides: maven2-plugin-ear = 0:%{version}-%{release}

%description
Generates a J2EE Enterprise Archive (EAR) file.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q 

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14662 |21mr|maven-eclipse-plugin-2.9-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Eclipse does not yet export virtual maven provides, so filter out the requires
%global __requires_exclude mvn\\(org\\.eclipse\\.core:resources\\)

Name:           maven-eclipse-plugin
Version:        2.9
Release:        22
Summary:        Maven Eclipse Plugin

License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-eclipse-plugin/
Source0:        http://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
Patch0:         %{name}-compat.patch
Patch1:         %{name}-exception.patch
Patch2:         %{name}-ioexception.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Maven and its dependencies
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugins-pom
BuildRequires: maven-test-tools
BuildRequires: maven-plugin-testing-tools
BuildRequires: maven-osgi
# Others
BuildRequires: apache-commons-io
BuildRequires: xmlunit
BuildRequires: mvn(org.xmlunit:xmlunit-core)	
BuildRequires: eclipse-platform
BuildRequires: plexus-resources
BuildRequires: plexus-interactivity-jline
BuildRequires: bsf
BuildRequires: jaxen
BuildRequires: jdom
BuildRequires: dom4j
BuildRequires: xom
BuildRequires: saxpath

%description
The Eclipse Plugin is used to generate Eclipse IDE files (.project, .classpath 
and the .settings folder) from a POM.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q 
%patch0 -p1
%patch1 -p1
%patch2 -p1

sed -i -e "s|3.3.0-v20070604|3.7.100.v20110510-0712|g" pom.xml

sed -i 's/aQute\.lib\.osgi/aQute.bnd.osgi/g' src/main/java/org/apache/maven/plugin/eclipse/EclipseToMavenMojo.java

# Remove easymock dependency (tests are skipped)
%pom_remove_dep easymock:

# fix dependency xmlunit
%pom_change_dep :xmlunit org.xmlunit:xmlunit-core:2.6.3

%build
# Create a local repo for the eclipse dependency because eclipse
# does not yet export virtual mvn provides or ship pom files
export MAVEN_REPO_LOCAL=$(pwd)/.m2/repository
CORE_FAKE_VERSION="3.7.100.v20110510-0712"
CORE_PLUGIN_DIR=$MAVEN_REPO_LOCAL/org/eclipse/core/resources/$CORE_FAKE_VERSION

mkdir -p $CORE_PLUGIN_DIR
plugin_file=`ls /usr/lib{,64}/eclipse/plugins/org.eclipse.core.resources_*jar || :`

ln -s "$plugin_file" $CORE_PLUGIN_DIR/resources-$CORE_FAKE_VERSION.jar

%pom_xpath_inject "pom:dependencies/pom:dependency[pom:groupId[text()='org.eclipse.core']]" "<scope>provided</scope>"

# Skip tests because they do not compile
%mvn_build -- -Dmaven.test.skip=true -Dmaven.repo.local=$MAVEN_REPO_LOCAL

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE DEPENDENCIES README-testing.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14663 |21mr|maven-enforcer-1.4.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-enforcer
Version:        1.4.1
Release:        11
Summary:        Maven Enforcer
License:        ASL 2.0
URL:            http://maven.apache.org/enforcer
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/enforcer/enforcer/%{version}/enforcer-%{version}-source-release.zip

# TODO forward upstream
# https://issues.apache.org/jira/browse/MENFORCER-267
Patch0:         0001-Port-to-Maven-3-API.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-artifact-transfer)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.apache.maven.shared:maven-dependency-tree)
BuildRequires:  mvn(org.beanshell:bsh)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
Enforcer is a build rule execution framework.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%package api
Summary:        Enforcer API

%description api
This component provides the generic interfaces needed to
implement custom rules for the maven-enforcer-plugin.

%package rules
Summary:        Enforcer Rules

%description rules
This component contains the standard Enforcer Rules.

%package plugin
Summary:        Enforcer Rules

%description plugin
This component contains the standard Enforcer Rules.


%prep
%setup -q -n enforcer-%{version}
%patch0 -p1

# Avoid dependency cycle
%pom_xpath_inject pom:build/pom:pluginManagement/pom:plugins "
    <plugin>
      <artifactId>maven-enforcer-plugin</artifactId>
      <version>SYSTEM</version>
    </plugin>"

# Replace plexus-maven-plugin with plexus-component-metadata
sed -e "s|<artifactId>plexus-maven-plugin</artifactId>|<artifactId>plexus-component-metadata</artifactId>|" \
    -e "s|<goal>descriptor</goal>|<goal>generate-metadata</goal>|" \
    -i enforcer-{api,rules}/pom.xml

%build
%mvn_build -s -f

%install
%mvn_install

%files -f .mfiles-enforcer
%doc LICENSE NOTICE

%files api -f .mfiles-enforcer-api
%doc LICENSE NOTICE

%files rules -f .mfiles-enforcer-rules

%files plugin -f .mfiles-maven-enforcer-plugin

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14664 |21mr|maven-file-management-3.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-file-management
Epoch:          1
Version:        3.0.0
Release:        8
Summary:        Maven File Management API
License:        ASL 2.0
URL:            http://maven.apache.org/shared/file-management
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/file-management/%{version}/file-management-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-io)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
Provides a component for plugins to easily resolve project dependencies.

%package javadoc
Summary:        Javadoc for %{name}
    
%description javadoc
API documentation for %{name}.

%prep
%setup -q -n file-management-%{version}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14665 |21mr|maven-filtering-3.1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             maven-filtering
Version:          3.1.1
Release:          8
Summary:          Shared component providing resource filtering
License:          ASL 2.0
URL:              http://maven.apache.org/shared/%{name}/index.html
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)

%description
These Plexus components have been built from the filtering process/code in 
Maven Resources Plugin. The goal is to provide a shared component for all 
plugins that needs to filter resources.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

%build
# Tests use a package that is no longer present in plexus-build-api (v0.0.7)
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14666 |21mr|maven-gpg-plugin-1.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-gpg-plugin
Version:        1.6
Release:        9
Summary:        Maven GPG Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-gpg-plugin/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:         0001-Port-to-Maven-3.3.1.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-repository-metadata)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.sonatype.plexus:plexus-sec-dispatcher)

# Uses system gpg binary for actual signing
Requires:      gnupg

%description
This plugin signs all of the project's attached artifacts with
GnuPG. It adds goals gpg:sign and gpg:sign-and-deploy-file.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

# migrate to maven 3.x 
%patch0 -p1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14667 |21mr|maven-idea-plugin-2.2.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-idea-plugin
Version:        2.2.1
Release:        11
Summary:        Maven IDEA Plugin
Group:          Development/Java
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/%{name}
# svn export http://svn.apache.org/repos/asf/maven/plugins/tags/maven-idea-plugin-2.2.1
# tar caf maven-idea-plugin-2.2.1.tar.xz maven-idea-plugin-2.2.1
Source0:        %{name}-%{version}.tar.xz
Source1:        http://apache.org/licenses/LICENSE-2.0.txt

BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The IDEA Plugin is used to generate files (ipr, iml, and iws) for a
project so you can work on it using the IDE, IntelliJ IDEA.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q 
cp %{SOURCE1} .
%pom_add_dep org.apache.maven:maven-compat

%build
# we skip test because even with binary mvn release these fail for
# various reasons.
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14668 |21mr|maven-indexer-5.1.2-0.8.gite0570bf
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Use 5.1.2 snapshot there was no release tagged by upstream,
# but this is what is available in maven central
%global git_tag e0570bff5c60604115ab7ad0d5498055a60fc772

Name:           maven-indexer
Version:        5.1.2
Release:        0.8.gite0570bf
Summary:        Standard for producing indexes of Maven repositories

License:        ASL 2.0
URL:            http://maven.apache.org/maven-indexer/index.html

Source0:        https://github.com/apache/maven-indexer/archive/%{git_tag}/maven-indexer-%{version}.tar.gz

# Port to latest lucene
Patch0:         0001-Port-to-Lucene-5.patch
Patch1:         0002-Port-to-Lucene-6.patch

# Drop dep on truezip
Patch2:         maven-indexer-truezip.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.lucene:lucene-analyzers-common)
BuildRequires:  mvn(org.apache.lucene:lucene-core)
BuildRequires:  mvn(org.apache.lucene:lucene-highlighter)
BuildRequires:  mvn(org.apache.lucene:lucene-queryparser)
BuildRequires:  mvn(org.apache.maven.archetype:archetype-common)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-util)

%description
Apache Maven Indexer (former Sonatype Nexus Indexer) is the defacto
standard for producing indexes of Maven repositories. The Indexes
are produced and consumed by all major tools in the ecosystem.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{git_tag}
%patch0 -p1
%patch1 -p1
%patch2

find -name '*.jar' -delete
find -name '*.zip' -delete
find -name '*.class' -delete

# Tests need porting to a modern jetty
%pom_remove_dep -r org.mortbay.jetty:jetty

# Switch from sonatype aether to eclipse aether
%pom_remove_dep org.sonatype.aether:aether-api indexer-core
%pom_remove_dep org.sonatype.aether:aether-util indexer-core
%pom_add_dep org.eclipse.aether:aether-api indexer-core
%pom_add_dep org.eclipse.aether:aether-util indexer-core
find -name *.java -exec sed -i -e "s/org.sonatype.aether/org.eclipse.aether/g" {} \;

# Switch from sonatype to codehaus plexus
%pom_remove_dep org.sonatype.sisu:sisu-inject-plexus indexer-cli
%pom_remove_dep org.sonatype.sisu:sisu-inject-plexus indexer-core
%pom_remove_dep org.sonatype.sisu:sisu-inject-plexus indexer-artifact
%pom_add_dep org.codehaus.plexus:plexus-container-default indexer-cli
%pom_add_dep org.codehaus.plexus:plexus-container-default indexer-core
%pom_add_dep org.codehaus.plexus:plexus-container-default indexer-artifact

# Remove unnecessary plugins
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :apache-rat-plugin

# Disable CLI module because of how it bundles stuff
%pom_disable_module indexer-cli

# Drop unneeded dep on truezip
%pom_remove_dep -r de.schlichtherle.truezip:
rm indexer-core/src/main/java/org/apache/maven/index/util/zip/TrueZipZipFileHandle.java

%build
# Skip tests because they need porting to modern jetty
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license NOTICE
%doc README.md

%files javadoc -f .mfiles-javadoc
%license NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14669 |21mr|maven-injection-plugin-1.0.2-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-injection-plugin
Version:        1.0.2
Release:        21
Summary:        Bytecode injection at Maven build time
License:        LGPLv2+
URL:            http://www.jboss.org
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export http://anonsvn.jboss.org/repos/labs/labs/jbossbuild/maven-plugins/tags/maven-injection-plugin-1.0.2/
# tar cafJ maven-injection-plugin-1.0.2.tar.xz maven-injection-plugin-1.0.2
Source0:        %{name}-%{version}.tar.xz

BuildRequires:  maven-local
BuildRequires:  mvn(javassist:javassist)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.jboss:jboss-parent:pom:)

%description
This package provides capability to perform bytecode injection as part of build.

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14670 |21mr|maven-install-plugin-2.5.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-install-plugin
Version:        2.5.2
Release:        10
Summary:        Maven Install Plugin

License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-install-plugin
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
Copies the project artifacts to the user's local repository.

%package javadoc
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description javadoc
API documentation for %{name}.


%prep
%setup -q
# maven-core has scope "provided" in Plugin Testing Harness, so we
# need to provide it or tests will fail to compile.  This works for
# upstream because upstream uses a different version of Plugin Testing
# Harness in which scope of maven-core dependency is "compile".
%pom_add_dep org.apache.maven:maven-core::test

%pom_add_dep org.apache.maven:maven-compat

%build
%mvn_build -f -- -DmavenVersion=3.1.1

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14671 |21mr|maven-invoker-2.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-invoker
Version:        2.2
Release:        10
Summary:        Fires a maven build in a clean environment
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-invoker/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Patch rejected upstream
Patch1:         %{name}-MSHARED-279.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
# Required by tests
BuildRequires:  maven-antrun-plugin
BuildRequires:  maven-clean-plugin

%description
This API is concerned with firing a Maven build in a new JVM. It accomplishes
its task by building up a conventional Maven command line from options given in
the current request, along with those global options specified in the invoker
itself. Once it has the command line, the invoker will execute it, and capture
the resulting exit code or any exception thrown to signal a failure to execute.
Input/output control can be specified using an InputStream and up to two
InvocationOutputHandlers.

This is a replacement package for maven-shared-invoker

%package javadoc
Summary:        Javadoc for %{name}
    
%description javadoc
API documentation for %{name}.


%prep
%setup -q
%patch1 -p1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14672 |21mr|maven-invoker-plugin-1.10-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     groovy

Name:           maven-invoker-plugin
Version:        1.10
Release:        11
Summary:        Maven Invoker Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-invoker-plugin/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.apache.maven.shared:maven-invoker)
BuildRequires:  mvn(org.apache.maven.shared:maven-script-interpreter)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.beanshell:bsh)
%if %{with groovy}
BuildRequires:  mvn(org.codehaus.groovy:groovy)
%endif
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Maven Invoker Plugin is used to run a set of Maven projects. The plugin
can determine whether each project execution is successful, and optionally
can verify the output generated from a given project execution.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q 

%if %{without groovy}
%pom_remove_dep ':${groovy-artifactId}'
%endif

%build
%mvn_build -f 

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14673 |21mr|maven-jar-plugin-3.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-jar-plugin
Version:        3.1.2
Release:        2
Summary:        Maven JAR Plugin

License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-jar-plugin/
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:file-management)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
Builds a Java Archive (JAR) file from the compiled
project classes and resources.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q

%build
# Test class MockArtifact doesn't override method getMetadata
%mvn_build -f -- -DmavenVersion=3.1.2

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14674 |21mr|maven-jarsigner-plugin-1.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             maven-jarsigner-plugin
Version:          1.4
Release:          9
Summary:          Signs or verifies a project artifact and attachments using jarsigner
License:          ASL 2.0
URL:              http://maven.apache.org/plugins/%{name}/
Source0:          http://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-jarsigner)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.sonatype.plexus:plexus-sec-dispatcher)


%description
This plugin provides the capability to sign or verify
a project artifact and attachments using jarsigner.

If you need to sign a project artifact and all attached artifacts,
just configure the sign goal appropriately in your pom.xml
for the signing to occur automatically during the package phase.

If you need to verify the signatures of a project artifact
and all attached artifacts, just configure the verify goal
appropriately in your pom.xml for the verification to occur
automatically during the verify phase.

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

%build
%mvn_file :%{name} %{name}
# ITs fail on Koji
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE DEPENDENCIES

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14675 |21mr|maven-javadoc-plugin-3.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-javadoc-plugin
Version:        3.0.1
Release:        4
Summary:        Maven Javadoc Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-javadoc-plugin
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch1:         0001-Port-to-current-plexus-utils.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(com.thoughtworks.qdox:qdox)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-artifact-transfer)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.apache.maven.shared:maven-invoker)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interactivity-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-java)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Maven Javadoc Plugin is a plugin that uses the javadoc tool for
generating javadocs for the specified project.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

%patch1 -p1

%pom_remove_plugin :maven-enforcer-plugin

%build
%mvn_build -f -- -DmavenVersion=3.5.0

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14676 |21mr|maven-jaxb2-plugin-0.13.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          maven-jaxb2-plugin
Version:       0.13.0
Release:       9
Summary:       Provides the capability to generate java sources from schemas
License:       BSD and ASL 2.0
URL:           http://java.net/projects/maven-jaxb2-plugin/pages/Home
Source0:       https://github.com/highsource/maven-jaxb2-plugin/archive/%{version}.tar.gz
# Don't try to use an internal bundled resolver, as this is not available in
# Fedora:
Patch0:        %{name}-0.13.0-dont-use-internal-resolver.patch
# Adapt for Maven 3:
Patch1:        %{name}-0.13.0-adapt-for-maven-3.patch
# Remove the enconding option as the version of the XJC compiler that we build
# in Fedora doesn't have it:
Patch2:        %{name}-0.13.0-remove-enconding-option.patch

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires: java-headless
BuildRequires: maven-local
BuildRequires: mvn(com.sun.codemodel:codemodel)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.maven:maven-compat)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-runtime)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-xjc)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
BuildRequires: mvn(xml-resolver:xml-resolver)

%description
This Maven 2 plugin wraps the JAXB 2.x XJC compiler and provides the capability
to generate Java sources from XML Schemas.

%package javadoc
Summary: API documentation for %{name}

%description javadoc
The API documentation of %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

# use glassfish-jaxb = 2.0.5
%pom_disable_module plugin-2.0
# use glassfish-jaxb = 2.1.13
%pom_disable_module plugin-2.1

# Add dependency on codemodel:
# because org.glassfish.jaxb:codemodel:2.2.11 have missing classes use @ runtime by these plugins:
%pom_add_dep com.sun.codemodel:codemodel:2.6 plugin
%pom_add_dep com.sun.codemodel:codemodel:2.6 plugin-2.2

%build

# rename java files with everything commented out, helpmojo can't handle those:
(cd plugin-core/src/main/java/org/jvnet/jaxb2/maven2/resolver/tools/;
 mv DelegatingReaderWrapper.java DelegatingReaderWrapper.java_
 mv DelegatingInputStreamWrapper.java DelegatingInputStreamWrapper.java_
)
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14677 |21mr|maven-license-plugin-1.8.0-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-license-plugin
Version:        1.8.0
Release:        26
Summary:        Maven plugin to update header licenses of source files

License:        ASL 2.0
URL:            http://code.google.com/p/maven-license-plugin
### upstream only provides binaries or source without build scripts
# tar creation instructions
# svn export http://maven-license-plugin.googlecode.com/svn/tags/maven-license-plugin-1.8.0 maven-license-plugin
# tar cfJ maven-license-plugin-1.8.0.tar.xz maven-license-plugin
Source0:        %{name}-%{version}.tar.xz
# remove testng dep (tests are skipped) and maven-license-plugin call
Patch0:         001-mavenlicenseplugin-fixbuild.patch
Group:          Development/Java
BuildArch:      noarch

BuildRequires:  java-devel
BuildRequires:  jpackage-utils
BuildRequires:  apache-resource-bundles
BuildRequires:  maven-local
BuildRequires:  maven-plugin-plugin
BuildRequires:  maven-shared
BuildRequires:  plexus-utils
BuildRequires:  plexus-classworlds
BuildRequires:  xml-commons-apis
BuildRequires:  xmltool
BuildRequires:  maven-source-plugin

Requires:       jpackage-utils
Requires:       java-headless >= 1:1.6.0
Requires:       maven
Requires:       maven-shared
Requires:       xmltool

%description
maven-license-plugin is a Maven plugin that help you managing license
headers in source files. Basically, when you are developing a project
either in open source or in a company, you often need to add at the top
of your source files a license to protect your work.
This plugin lets you maintain the headers, including checking if the
header is present, generating a report and of course having the
possibility to update / reformat missing license headers.


%package javadoc
Summary:        Javadocs for %{name}
Requires:       jpackage-utils
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}
%patch0 -p1
# fix EOL
sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' NOTICE.txt

# Remove wagon-webdav extension which is not available
%pom_xpath_remove pom:build/pom:extensions

# Set sources/resources encoding
%pom_xpath_inject "pom:properties" "<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>"

%build
%mvn_build -f

%install
%mvn_install
mkdir -p $RPM_BUILD_ROOT%{_javadir}

%files -f .mfiles
%license LICENSE.txt
%doc NOTICE.txt

%files javadoc  -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14678 |21mr|maven-mapping-3.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-mapping
Version:        3.0.0
Release:        9
Summary:        Apache Maven Mapping
License:        ASL 2.0
URL:            http://maven.apache.org/shared/%{name}/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)

%description
Maven shared component that implements file name mapping.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14679 |21mr|maven-native-1.0-0.17.alpha.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag  -alpha-8
%global namedversion %{version}%{?namedreltag}
%global dotreltag    %(echo %{namedreltag} | tr - .)

Name:          maven-native
Version:       1.0
Release:       0.17%{dotreltag}
Summary:       Compile c and c++ source under Maven
License:       ASL 2.0 and MIT
Url:           http://www.mojohaus.org/plugins.html
# Source code available @ https://github.com/mojohaus/maven-native
Source0:       http://repo2.maven.org/maven2/org/codehaus/mojo/natives/%{name}/%{namedversion}/%{name}-%{namedversion}-source-release.zip

BuildRequires: maven-local
BuildRequires: mojo-parent
BuildRequires: mvn(aopalliance:aopalliance)
BuildRequires: mvn(bcel:bcel)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.cglib:cglib)
BuildRequires: mvn(org.apache.maven:maven-artifact)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-compat)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires: mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Maven Native - compile C and C++ source under Maven
with compilers such as GCC, MSVC, GCJ etc ...

%package components
Summary:       Maven Native Components

%description components
%{summary}.

%package -n native-maven-plugin
Summary:       Native Maven Plugin

%description -n native-maven-plugin
%{summary}.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

for d in LICENSE ; do
  iconv -f iso8859-1 -t utf-8 $d.txt > $d.txt.conv && mv -f $d.txt.conv $d.txt
  sed -i 's/\r//' $d.txt
done

# use jvm apis
%pom_remove_dep backport-util-concurrent:backport-util-concurrent
%pom_remove_dep backport-util-concurrent:backport-util-concurrent maven-native-api
sed -i "s|edu.emory.mathcs.backport.java.util.concurrent|java.util.concurrent|" \
 maven-native-api/src/main/java/org/codehaus/mojo/natives/compiler/AbstractCompiler.java

sed -i 's|<artifactId>maven-project|<artifactId>maven-compat|' pom.xml
%pom_remove_dep :maven-project native-maven-plugin
%pom_add_dep org.apache.maven:maven-compat native-maven-plugin
%pom_add_dep org.apache.maven:maven-core native-maven-plugin

# missing test deps
%pom_add_dep aopalliance:aopalliance::test native-maven-plugin
%pom_add_dep net.sf.cglib:cglib::test native-maven-plugin

%mvn_package ":%{name}" %{name}
%mvn_package ":%{name}-api" %{name}
%mvn_package ":%{name}-components" components
%mvn_package ":%{name}-bcc" components
%mvn_package ":%{name}-generic-c" components
%mvn_package ":%{name}-javah" components
%mvn_package ":%{name}-manager" components
%mvn_package ":%{name}-msvc" components
%mvn_package ":native-maven-plugin" native-maven-plugin

%build

#  junit.framework.AssertionFailedError: Failed to create plexus container.
# native-maven-plugin with maven3 test failures:
# Caused by: java.lang.ClassNotFoundException: org.apache.maven.artifact.repository.Authentication
#  java.lang.VerifyError: (class: org/apache/maven/project/MavenProject, 
# method: getSnapshotArtifactRepository signature: ()Lorg/apache/maven/artifact/repository/ArtifactRepository;)
# Incompatible argument to function
# force org.codehaus.plexus plexus-container-default 1.5.5 apis
# test skipped cause: [ERROR] Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test (default-test) on project native-maven-plugin: Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.15:test failed: There was an error in the forked process
# [ERROR] java.lang.NoClassDefFoundError: org/sonatype/aether/RepositorySystemSession
%mvn_build -f -s -- -Dmojo.java.target=1.7 -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles-%{name}
%license LICENSE.txt

%files components -f .mfiles-components
%license LICENSE.txt

%files -n native-maven-plugin -f .mfiles-native-maven-plugin
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14680 |21mr|maven-osgi-0.2.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-osgi
Version:        0.2.0
Release:        18
# Maven-shared defines maven-osgi version as 0.3.0
Epoch:          1
Summary:        Library for Maven-OSGi integration
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-osgi
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-osgi-0.2.0 maven-osgi-0.2.0
# find -name *.jar -delete
# tar caf maven-osgi-0.2.0.tar.xz maven-osgi-0.2.0/
Source0:        %{name}-%{version}.tar.xz
# ASL mandates that the licence file be included in redistributed source
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(biz.aQute:bndlib)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)

%description
Library for Maven-OSGi integration.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q

cp -p %{SOURCE1} LICENSE

sed -i 's/import aQute\.lib\.osgi/import aQute.bnd.osgi/g' src/main/java/org/apache/maven/shared/osgi/DefaultMaven2OsgiConverter.java

# Replace plexus-maven-plugin with plexus-component-metadata
%pom_xpath_set "pom:plugin[pom:artifactId[text()='plexus-maven-plugin']]//pom:goal[text()='descriptor']" generate-metadata
%pom_xpath_set "pom:artifactId[text()='plexus-maven-plugin']" plexus-component-metadata


%build
# Tests depend on binary JARs which were removed from sources
%mvn_build -f


%install
%mvn_install


%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14681 |21mr|maven-parent-33-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-parent
Version:        33
Release:        2
Summary:        Apache Maven parent POM
License:        ASL 2.0

URL:            http://maven.apache.org
Source0:        http://repo1.maven.org/maven2/org/apache/maven/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Upstream removed plexus-javadoc after the 33 release
# https://github.com/apache/maven-parent/commit/6b8b4446a11799cb38826881cdef5b13a7b8834e
Patch0:         6b8b444.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)

# explicitly require maven-plugin-tools-javadoc
Requires:       mvn(org.apache.maven.plugin-tools:maven-plugin-tools-javadoc)

# this package obsoletes maven-shared and maven-plugins-pom
Provides:       maven-shared = %{version}-%{release}
Obsoletes:      maven-shared < 22-9

Provides:       maven-plugins-pom = %{version}-%{release}
Obsoletes:      maven-plugins-pom < 28-9

%description
Apache Maven parent POM file used by other Maven projects.

%prep
%setup -q
%patch0 -p1

%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin :maven-scm-publish-plugin
%pom_remove_plugin :maven-site-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14682 |21mr|maven-patch-plugin-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-patch-plugin
Version:        1.2
Release:        10
Summary:        Maven Patch Plugin

License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-patch-plugin/
Source0:        http://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-clean-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-deploy-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-docck-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-install-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)

%description
The Patch Plugin is used to apply patches to source files.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%build
%mvn_build --post "install invoker:run" -- -Dmaven.repo.local=$PWD/.m2

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%Changelog
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Thu Apr 04 2019 Mattias Ellert <mattias.ellert@physics.uu.se> - 1.2-9
- Drop BuildRequires: mvn(org.apache.maven.plugins:maven-gpg-plugin)

* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild

* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Thu Feb 16 2017 Mattias Ellert <mattias.ellert@physics.uu.se> - 1.2-4
- Add missing BuildRequires on maven-plugins-pom

* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Thu Jun 18 2015 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.2-1
- Update to version 1.2

* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-10
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild

* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Wed Sep 11 2013 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.1.1-8
- Use mvn-build instead of mvn-rpmbuild

* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.1.1-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild

* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.1.1-5
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
- Replace maven BuildRequires with maven-local

* Sun Nov 25 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.1.1-4
- Add NOTICE file to javadoc package

* Sun Nov 25 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.1.1-3
- Enable tests on Fedora 19 again - broken dependancies fixed

* Fri Nov 23 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.1.1-2
- Disable tests on Fedora 19 due to broken dependencies

* Thu Nov  1 2012 Mattias Ellert <mattias.ellert@fysast.uu.se> - 1.1.1-1
- Initial Package

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14683 |21mr|maven-plugin-build-helper-1.9.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-plugin-build-helper
Version:        1.9.1
Release:        10
Summary:        Build Helper Maven Plugin
License:        MIT
URL:            http://mojo.codehaus.org/build-helper-maven-plugin/
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# The source tarball has been generated from upstream VCS:
# svn export https://svn.codehaus.org/mojo/tags/build-helper-maven-plugin-%{version} %{name}-%{version}
# tar caf %{name}-%{version}.tar.xz %{name}-%{version}
Source0:        %{name}-%{version}.tar.xz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.beanshell:bsh)
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)


%description
This plugin contains various small independent goals to assist with
Maven build lifecycle.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q

%pom_add_dep org.apache.maven:maven-compat

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license header.txt

%files javadoc -f .mfiles-javadoc
%license header.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14684 |21mr|maven-plugin-bundle-3.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without obr
%bcond_without reporting

%global site_name maven-bundle-plugin

Name:           maven-plugin-bundle
Version:        3.5.1
Release:        3
Summary:        Maven Bundle Plugin
License:        ASL 2.0
URL:            http://felix.apache.org
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/felix/{%site_name}/%{version}/%{site_name}-%{version}-source-release.tar.gz

# Needs polishing to be sent upstream
Patch0:         0001-Port-to-current-maven-dependency-tree.patch
# New maven-archiver removed some deprecated methods we were using
Patch1:         0002-Fix-for-new-maven-archiver.patch
# Port to newer Plexus utils
Patch2:         0003-Port-to-plexus-utils-3.0.24.patch
# Port to newer Maven
Patch3:         0004-Use-Maven-3-APIs.patch

BuildRequires:  maven-local
BuildRequires:  mvn(biz.aQute.bnd:biz.aQute.bndlib)
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.utils)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-dependency-tree)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)
%if %{with obr}
BuildRequires:  mvn(net.sf.kxml:kxml2)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.bundlerepository)
BuildRequires:  mvn(xpp3:xpp3)
%endif
%if %{with reporting}
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
%endif

%description
Provides a maven plugin that supports creating an OSGi bundle
from the contents of the compilation classpath along with its
resources and dependencies. Plus a zillion other features.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{site_name}-%{version}

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

find -name '*.jar' -delete

%pom_change_dep :org.osgi.core :osgi.core

# Bundled class from old maven-dependency-tree
rm -r src/main/java/org/apache/maven/shared/dependency

# Bundled classes from old maven
rm -r src/main/java/org/apache/felix/bundleplugin/pom

# There is forked version of maven-osgi in
# src/{main,test}/java/org/apache/maven

%if %{with obr}
# Deps unbundled from felix-bundlerepository
%pom_add_dep xpp3:xpp3
%pom_add_dep net.sf.kxml:kxml2
%else
rm -rf src/main/java/org/apache/felix/obrplugin/
%pom_remove_dep :org.apache.felix.bundlerepository
%endif

%if %{without reporting}
rm -f src/main/java/org/apache/felix/bundleplugin/baseline/BaselineReport.java
%pom_remove_dep :doxia-sink-api
%pom_remove_dep :doxia-site-renderer
%pom_remove_dep :maven-reporting-impl
%endif

%build
# Tests depend on bundled JARs
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14685 |21mr|maven-plugin-testing-3.3.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-plugin-testing
Version:        3.3.0
Release:        15
Summary:        Maven Plugin Testing
License:        ASL 2.0
URL:            http://maven.apache.org/plugin-testing/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/plugin-testing/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:         0001-Port-to-plexus-utils-3.0.21.patch
Patch1:         0002-Port-to-current-maven-artifact.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-aether-provider)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.shared:maven-invoker)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-file)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.easymock:easymock)

%description
The Maven Plugin Testing contains the necessary modules
to be able to test Maven Plugins.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%package harness
Summary: Maven Plugin Testing Mechanism
Obsoletes: maven-shared-plugin-testing-harness <= 0:1.2

%description harness
The Maven Plugin Testing Harness provides mechanisms to manage tests on Mojo.

%package tools
Summary: Maven Plugin Testing Tools
Obsoletes: maven-shared-plugin-testing-tools <= 0:%{version}-%{release}

%description tools
A set of useful tools to help the Maven Plugin testing.

%package -n maven-test-tools
Summary: Maven Testing Tool
Obsoletes: maven-shared-test-tools <= 0:%{version}-%{release}

%description -n maven-test-tools
Framework to test Maven Plugins with Easymock objects.

%prep
%setup -q

%patch0 -p1
%patch1 -p1

%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-site-plugin

sed -i -e "s/MockControl/IMocksControl/g" maven-test-tools/src/main/java/org/apache/maven/shared/tools/easymock/MockManager.java

# needs network for some reason
rm maven-plugin-testing-tools/src/test/java/org/apache/maven/shared/test/plugin/ProjectToolTest.java

%mvn_alias : org.apache.maven.shared:

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc LICENSE NOTICE
%files harness -f .mfiles-%{name}-harness
%files tools -f .mfiles-%{name}-tools
%files -n maven-test-tools -f .mfiles-maven-test-tools
%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14686 |21mr|maven-plugin-tools-3.5.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-plugin-tools
Version:        3.5.1
Release:        6
Epoch:          0
Summary:        Maven Plugin Tools
License:        ASL 2.0
URL:            http://maven.apache.org/plugin-tools/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugin-tools/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:         0001-Avoid-duplicate-MOJO-parameters.patch
Patch1:         0002-Deal-with-nulls-from-getComment.patch
Patch2:         0003-Port-to-plexus-utils-3.0.24.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.sun:tools)
BuildRequires:  mvn(com.thoughtworks.qdox:qdox)
BuildRequires:  mvn(net.sf.jtidy:jtidy)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-launcher)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-artifact:2.2.1)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model:2.2.1)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-plugin-registry)
BuildRequires:  mvn(org.apache.maven:maven-repository-metadata)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.apache.maven.surefire:maven-surefire-common)
BuildRequires:  mvn(org.apache.velocity:velocity)
BuildRequires:  mvn(org.beanshell:bsh)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-ant-factory)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-bsh-factory)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-velocity)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-commons)

%description
The Maven Plugin Tools contains the necessary tools to be able to produce Maven
Plugins in a variety of languages.

%package -n maven-plugin-annotations
Summary:        Maven Plugin Java 5 Annotations
Obsoletes:      maven-plugin-annotations < 0:%{version}-%{release}

%description -n maven-plugin-annotations
This package contains Java 5 annotations to use in Mojos.

%package -n maven-plugin-plugin
Summary:        Maven Plugin Plugin

%description -n maven-plugin-plugin
The Plugin Plugin is used to create a Maven plugin descriptor for any Mojo's
found in the source tree, to include in the JAR. It is also used to generate
Xdoc files for the Mojos as well as for updating the plugin registry, the
artifact metadata and a generic help goal.

%package annotations
Summary:        Maven Plugin Tool for Annotations

%description annotations
This package provides Java 5 annotation tools for use with Apache Maven.

%package ant
Summary:        Maven Plugin Tool for Ant
Obsoletes:      maven-shared-plugin-tools-ant < 0:%{version}-%{release}
Provides:       maven-shared-plugin-tools-ant = 0:%{version}-%{release}

%description ant
Descriptor extractor for plugins written in Ant.

%package api
Summary:        Maven Plugin Tools APIs
Obsoletes:      maven-shared-plugin-tools-api < 0:%{version}-%{release}
Provides:       maven-shared-plugin-tools-api = 0:%{version}-%{release}

%description api
The Maven Plugin Tools API provides an API to extract information from
and generate documentation for Maven Plugins.

%package beanshell
Summary:        Maven Plugin Tool for Beanshell
Obsoletes:      maven-shared-plugin-tools-beanshell < 0:%{version}-%{release}
Provides:       maven-shared-plugin-tools-beanshell = 0:%{version}-%{release}

%description beanshell
Descriptor extractor for plugins written in Beanshell.

%package generators
Summary:        Maven Plugin Tools Generators

%description generators
The Maven Plugin Tools Generators provides content generation
(documentation, help) from plugin descriptor.

%package java
Summary:        Maven Plugin Tool for Java
Obsoletes:      maven-shared-plugin-tools-java < 0:%{version}-%{release}
Provides:       maven-shared-plugin-tools-java = 0:%{version}-%{release}

%description java
Descriptor extractor for plugins written in Java.

# Note that this package contains code, not documentation.
# See comments about "javadocs" subpackage below.
%package javadoc
Summary:        Maven Plugin Tools Javadoc

%description javadoc
The Maven Plugin Tools Javadoc provides several Javadoc taglets to be used when
generating Javadoc.

Java API documentation for %{name} is contained in
%{name}-javadocs package. This package does not contain it.

%package model
Summary:        Maven Plugin Metadata Model
Obsoletes:      maven-shared-plugin-tools-model < 0:%{version}-%{release}
Provides:       maven-shared-plugin-tools-model = 0:%{version}-%{release}

%description model
The Maven Plugin Metadata Model provides an API to play with the Metadata
model.

%package -n maven-script
Summary:        Maven Script Mojo Support

%description -n maven-script
Maven Script Mojo Support lets developer write Maven plugins/goals
with scripting languages instead of compiled Java.

%package -n maven-script-ant
Summary:        Maven Ant Mojo Support

%description -n maven-script-ant
This package provides %{summary}, which write Maven plugins with
Ant scripts.

%package -n maven-script-beanshell
Summary:        Maven Beanshell Mojo Support

%description -n maven-script-beanshell
This package provides %{summary}, which write Maven plugins with
Beanshell scripts.

# This "javadocs" package violates packaging guidelines as of Sep 6 2012. The
# subpackage name "javadocs" instead of "javadoc" is intentional. There was a
# consensus that current naming scheme should be kept, even if it doesn't
# conform to the guidelines.  mizdebsk, September 2012
%package javadocs
Summary:        Javadoc for %{name}

%description javadocs
API documentation for %{name}.


%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

%pom_remove_plugin :maven-enforcer-plugin

# For com.sun:tools use scope "compile" instead of "system"
%pom_remove_dep com.sun:tools maven-plugin-tools-javadoc
%pom_add_dep com.sun:tools maven-plugin-tools-javadoc

%pom_xpath_inject "pom:project/pom:properties" "
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>"

# Remove test dependencies because tests are skipped anyways.
%pom_xpath_remove "pom:dependency[pom:scope='test']"

# Use Maven 3.1.1 APIs
%pom_remove_dep :maven-project maven-plugin-plugin
%pom_remove_dep :maven-plugin-descriptor maven-plugin-plugin
%pom_remove_dep :maven-plugin-registry maven-plugin-plugin
%pom_remove_dep :maven-artifact-manager maven-plugin-plugin

%pom_change_dep :maven-project :maven-core maven-plugin-tools-annotations
%pom_change_dep :maven-plugin-descriptor :maven-compat maven-plugin-tools-annotations

%pom_remove_dep :maven-plugin-descriptor maven-script/maven-plugin-tools-ant
%pom_change_dep :maven-project :maven-core maven-script/maven-plugin-tools-ant

%pom_remove_dep :maven-plugin-descriptor maven-plugin-tools-api
%pom_change_dep :maven-project :maven-core maven-plugin-tools-api

%pom_remove_dep :maven-plugin-descriptor maven-script/maven-plugin-tools-beanshell

%pom_remove_dep :maven-project maven-plugin-tools-generators
%pom_remove_dep :maven-plugin-descriptor maven-plugin-tools-generators

%pom_change_dep :maven-project :maven-core maven-plugin-tools-java
%pom_remove_dep :maven-plugin-descriptor maven-plugin-tools-java

%pom_change_dep :maven-plugin-descriptor :maven-plugin-api maven-script/maven-plugin-tools-model

%pom_remove_dep :maven-project maven-script/maven-script-ant
%pom_remove_dep :maven-plugin-descriptor maven-script/maven-script-ant

%pom_remove_dep :maven-project
%pom_remove_dep :maven-plugin-descriptor
%pom_add_dep org.apache.maven:maven-compat
%pom_add_dep org.apache.maven:maven-plugin-registry

%build
%mvn_build -s -f

%install
%mvn_install


%files -f .mfiles-maven-plugin-tools
%dir %{_javadir}/%{name}
%license LICENSE NOTICE

%files -n maven-plugin-annotations -f .mfiles-maven-plugin-annotations

%files -n maven-plugin-plugin -f .mfiles-maven-plugin-plugin

%files annotations -f .mfiles-maven-plugin-tools-annotations
%license LICENSE NOTICE

%files ant -f .mfiles-maven-plugin-tools-ant

%files api -f .mfiles-maven-plugin-tools-api
%license LICENSE NOTICE

%files beanshell -f .mfiles-maven-plugin-tools-beanshell

%files generators -f .mfiles-maven-plugin-tools-generators

%files java -f .mfiles-maven-plugin-tools-java

%files javadoc -f .mfiles-maven-plugin-tools-javadoc

%files model -f .mfiles-maven-plugin-tools-model
%license LICENSE NOTICE

%files -n maven-script -f .mfiles-maven-script

%files -n maven-script-ant -f .mfiles-maven-script-ant
%license LICENSE NOTICE

%files -n maven-script-beanshell -f .mfiles-maven-script-beanshell
%license LICENSE NOTICE

%files javadocs -f .mfiles-javadoc
%license LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14687 |21mr|maven-processor-plugin-2.2.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          maven-processor-plugin
Version:       2.2.4
Release:       11
Summary:       Maven Processor Plugin
License:       LGPLv3+
Url:           https://github.com/bsorrentino/maven-annotation-plugin
Source0:       https://github.com/bsorrentino/maven-annotation-plugin/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
# main deps
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
# test deps
BuildRequires: mvn(junit:junit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A maven plugin to process annotation for jdk6 at compile time

This plugin helps to use from maven the new annotation processing
provided by JDK6 integrated in java compiler

This plugin could be considered the 'alter ego' of maven apt plugin.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n maven-annotation-plugin-%{name}-%{version}
%pom_xpath_remove pom:project/pom:profiles
%pom_xpath_remove pom:build/pom:extensions

cp -p src/main/resources/COPYING.LESSER .

%mvn_file :%{name} %{name}/%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license COPYING.LESSER

%files javadoc -f .mfiles-javadoc
%license COPYING.LESSER


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14688 |21mr|maven-release-2.2.1-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-release
Version:        2.2.1
Release:        23
Summary:        Release a project updating the POM and tagging in the SCM
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-release-plugin/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/release/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Remove deps needed for tests, till jmock gets packaged
Patch1:         002-mavenrelease-fixbuild.patch
Patch2:         003-fixing-migration-to-component-metadata.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=1015123
Patch3:         %{name}-ftbfs.patch
# Maven's Setting.getRuntimeInfo() was removed, see https://issues.apache.org/jira/browse/MNG-3954
Patch4:         %{name}-MNG-3954.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(jaxen:jaxen)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-artifact-manager)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-api)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-svn-commons)
BuildRequires:  mvn(org.apache.maven.shared:maven-invoker)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interactivity-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.jdom:jdom)
BuildRequires:  mvn(org.sonatype.plexus:plexus-sec-dispatcher)

%description
This plugin is used to release a project with Maven, saving a lot of 
repetitive, manual work. Releasing a project is made in two steps: 
prepare and perform.

%package manager
Summary:        Release a project updating the POM and tagging in the SCM

%description manager
This package contains %{name}-manager needed by %{name}-plugin.

%package plugin
Summary:        Release a project updating the POM and tagging in the SCM

%description plugin
This plugin is used to release a project with Maven, saving a lot of
repetitive, manual work. Releasing a project is made in two steps:
prepare and perform.

%package javadoc
Summary:        Javadoc for %{name}
Provides:       %{name}-manager-javadoc = %{version}-%{release}
Obsoletes:      %{name}-manager-javadoc <= 2.0-1
Provides:       %{name}-plugin-javadoc = %{version}-%{release}
Obsoletes:      %{name}-plugin-javadoc <= 2.0-1

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p0

cat > README << EOT
%{name}-%{version}

This plugin is used to release a project with Maven, saving a lot of
repetitive, manual work. Releasing a project is made in two steps:
prepare and perform.
EOT


%build

%mvn_file :%{name}-manager %{name}-manager
%mvn_file :%{name}-plugin %{name}-plugin
%mvn_package :%{name}-manager manager
%mvn_package :%{name}-plugin plugin
# Skip tests because we don't have dependencies (jmock)
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE README

%files manager -f .mfiles-manager
%doc LICENSE NOTICE

%files plugin -f .mfiles-plugin
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14689 |21mr|maven-remote-resources-plugin-1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-remote-resources-plugin
Version:        1.5
Release:        5
Summary:        Maven Remote Resources Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-remote-resources-plugin/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-artifact:2.2.1)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model:2.2.1)
BuildRequires:  mvn(org.apache.maven:maven-monitor)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven:maven-settings:2.2.1)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-artifact-resolver)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.apache.maven.shared:maven-filtering)
BuildRequires:  mvn(org.apache.velocity:velocity)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-resources)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)


%description
Process resources packaged in JARs that have been deployed to
a remote repository. The primary use case being satisfied is
the consistent inclusion of common resources in a large set of
projects. Maven projects at Apache use this plug-in to satisfy
licensing requirements at Apache where each project much include
license and notice files for each release.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%build
# Tests use Maven 2 APIs
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14690 |21mr|maven-reporting-api-3.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-reporting-api
Version:        3.0
Release:        17
Epoch:          1
Summary:        API to manage report generation
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-reporting-api
# svn export http://svn.apache.org/repos/asf/maven/shared/tags/maven-reporting-api-3.0 maven-reporting-api-3.0
# tar caf maven-reporting-api-3.0.tar.xz maven-reporting-api-3.0/
Source0:        %{name}-%{version}.tar.xz
# ASL mandates that the licence file be included in redistributed source
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)

%description
API to manage report generation. Maven-reporting-api is included in Maven 2.x
core distribution, but moved to shared components to achieve report decoupling
from Maven 3 core.

This is a replacement package for maven-shared-reporting-api

%package javadoc
Summary:        Javadoc for %{name}
    
%description javadoc
API documentation for %{name}.


%prep
%setup -q
cp %{SOURCE1} LICENSE.txt

%build
# Previous package provides groupIds org.apache.maven.shared and org.apache.maven.reporting
%mvn_alias : org.apache.maven.shared:maven-reporting-api
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14691 |21mr|maven-reporting-exec-1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-reporting-exec
Version:        1.4
Release:        4
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Summary:        Classes to manage report plugin executions with Maven 3

License:        ASL 2.0
Group:          Development/Java
URL:            http://maven.apache.org/shared/maven-reporting-exec/
Source0:        http://repo1.maven.org/maven2/org/apache/maven/reporting/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0001:      0001-Port-to-Eclipse-Aether-and-Eclipse-Sisu.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven:maven-settings-builder)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-util)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)

Requires:       java-headless

%description
Classes to manage report plugin executions with Maven 3. Contains classes for
managing and configuring reports and their execution.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
The API documentation of %{name}.



%prep
%setup -qn %{name}-%{version}
%patch0001 -p1

# convert CR+LF to LF
sed -i 's/\r//g' pom.xml src/main/java/org/apache/maven/reporting/exec/*

%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin

# Build against Maven 3.x, Eclipse Aether and Eclipse Sisu
%pom_remove_dep org.sonatype.aether:aether-api
%pom_remove_dep org.sonatype.aether:aether-util
%pom_change_dep org.sonatype.aether:aether-connector-wagon org.eclipse.aether:aether-transport-wagon
%pom_change_dep org.sonatype.sisu:sisu-inject-plexus org.eclipse.sisu:org.eclipse.sisu.plexus

%build
# Test are skipped because there are errors with PlexusLogger
# More info possibly here:
# https://docs.sonatype.org/display/AETHER/Using+Aether+in+Maven+Plugins?focusedCommentId=10485782#comment-10485782
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE DEPENDENCIES

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14692 |21mr|maven-reporting-impl-3.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-reporting-impl
Version:        3.0.0
Release:        6
Summary:        Abstract classes to manage report generation
License:        ASL 2.0
URL:            http://maven.apache.org/shared/%{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/reporting/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:         0001-Remove-dependency-on-junit-addons.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-core)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-decoration-model)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
Abstract classes to manage report generation, which can be run both:

* as part of a site generation (as a maven-reporting-api's MavenReport),
* or as a direct standalone invocation (as a maven-plugin-api's Mojo).

This is a replacement package for maven-shared-reporting-impl

%package javadoc
Summary:        Javadoc for %{name}
    
%description javadoc
API documentation for %{name}.

%prep
%setup -q
%patch0 -p1

# integration tests try to download stuff from the internet
# and therefore they don't work in Koji
%pom_remove_plugin :maven-invoker-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14693 |21mr|maven-resolver-1.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-resolver
Epoch:          1
Version:        1.3.3
Release:        2
License:        ASL 2.0
Summary:        Apache Maven Artifact Resolver library
URL:            http://maven.apache.org/resolver/
Source0:        http://archive.apache.org/dist/maven/resolver/%{name}-%{version}-source-release.zip
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.eclipse.sisu:sisu-maven-plugin)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.slf4j:jcl-over-slf4j)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  mvn(org.sonatype.sisu:sisu-guice::no_aop:)

%description
Apache Maven Artifact Resolver is a library for working with artifact
repositories and dependency resolution. Maven Artifact Resolver deals with the
specification of local repository, remote repository, developer workspaces,
artifact transports and artifact resolution.

%package api
Summary:   Maven Artifact Resolver API

%description api
The application programming interface for the repository system.

%package spi
Summary:   Maven Artifact Resolver SPI

%description spi
The service provider interface for repository system implementations and
repository connectors.

%package util
Summary:   Maven Artifact Resolver Utilities

%description util
A collection of utility classes to ease usage of the repository system.

%package impl
Summary:   Maven Artifact Resolver Implementation

%description impl
An implementation of the repository system.

%package test-util
Summary:   Maven Artifact Resolver Test Utilities

%description test-util
A collection of utility classes to ease testing of the repository system.

%package connector-basic
Summary:   Maven Artifact Resolver Connector Basic

%description connector-basic
A repository connector implementation for repositories using URI-based layouts.

%package transport-classpath
Summary:   Maven Artifact Resolver Transport Classpath

%description transport-classpath
A transport implementation for repositories using classpath:// URLs.

%package transport-file
Summary:   Maven Artifact Resolver Transport File

%description transport-file
A transport implementation for repositories using file:// URLs.

%package transport-http
Summary:   Maven Artifact Resolver Transport HTTP

%description transport-http
A transport implementation for repositories using http:// and https:// URLs.

%package transport-wagon
Summary:   Maven Artifact Resolver Transport Wagon

%description transport-wagon
A transport implementation based on Maven Wagon.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.


%prep
%setup -q

# tests require jetty 7
%pom_remove_dep :::test maven-resolver-transport-http
rm -r maven-resolver-transport-http/src/test

%pom_disable_module maven-resolver-demos

# generate OSGi manifests
for pom in $(find -mindepth 2 -name pom.xml) ; do
  %pom_add_plugin "org.apache.felix:maven-bundle-plugin" $pom \
  "<configuration>
    <instructions>
      <Bundle-SymbolicName>\${project.groupId}$(sed 's:./maven-resolver::;s:/pom.xml::;s:-:.:g' <<< $pom)</Bundle-SymbolicName>
      <Export-Package>!org.eclipse.aether.internal*,org.eclipse.aether*</Export-Package>
      <_nouses>true</_nouses>
    </instructions>
  </configuration>
  <executions>
    <execution>
      <id>create-manifest</id>
      <phase>process-classes</phase>
      <goals><goal>manifest</goal></goals>
    </execution>
  </executions>"
done
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin" pom.xml \
"<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  </archive>
</configuration>"

%mvn_package :maven-resolver
%mvn_alias 'org.apache.maven.resolver:maven-resolver{*}' 'org.eclipse.aether:aether@1'
%mvn_file ':maven-resolver{*}' %{name}/maven-resolver@1 aether/aether@1

%build
%mvn_build -s

%install
%mvn_install


%files -f .mfiles
%license LICENSE NOTICE

%files api -f .mfiles-%{name}-api
%license LICENSE NOTICE
%files spi -f .mfiles-%{name}-spi
%files util -f .mfiles-%{name}-util
%files impl -f .mfiles-%{name}-impl
%files test-util -f .mfiles-%{name}-test-util
%files connector-basic -f .mfiles-%{name}-connector-basic
%files transport-classpath -f .mfiles-%{name}-transport-classpath
%files transport-file -f .mfiles-%{name}-transport-file
%files transport-http -f .mfiles-%{name}-transport-http
%files transport-wagon -f .mfiles-%{name}-transport-wagon

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14694 |21mr|maven-resources-plugin-3.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-resources-plugin
Version:        3.1.0
Release:        5
Summary:        Maven Resources Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-resources-plugin
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-filtering)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Resources Plugin handles the copying of project resources
to the output directory.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14695 |21mr|maven-scm-1.10.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           maven-scm
Version:        1.10.0
Release:        5
Summary:        Common API for doing SCM operations
License:        ASL 2.0
URL:            http://maven.apache.org/scm
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/maven/scm/%{name}-%{version}-source-release.zip

# Patch to migrate to new plexus default container
# This has been sent upstream: https://issues.apache.org/jira/browse/SCM-731
Patch1:         0001-Port-maven-scm-to-latest-version-of-plexus-default.patch
# Workaround upstream's workaround for a modello bug, see: https://issues.apache.org/jira/browse/SCM-518
Patch2:         0002-Fix-vss-modello-config.patch
Patch3:         0003-Port-to-current-plexus-utils.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-settings:2.2.1)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:file-management)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.jgit:org.eclipse.jgit)
BuildRequires:  mvn(org.sonatype.plexus:plexus-sec-dispatcher)

%description
Maven SCM supports Maven plugins (e.g. maven-release-plugin) and other
tools (e.g. Continuum) in providing them a common API for doing SCM operations.

%package test
Summary:        Tests for %{name}
Requires:       maven-scm = %{version}-%{release}

%description test
Tests for %{name}.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q

%patch1 -p1
%patch2 -p1
%patch3 -p1

# Remove unnecessary animal sniffer
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin

%pom_remove_plugin :maven-enforcer-plugin

%pom_change_dep -r :maven-project :maven-compat

# Remove providers-integrity from build (we don't have mks-api)
%pom_remove_dep org.apache.maven.scm:maven-scm-provider-integrity maven-scm-providers/maven-scm-providers-standard
%pom_disable_module maven-scm-provider-integrity maven-scm-providers

# Partially remove cvs support for removal of netbeans-cvsclient
# It still works with cvsexe provider
%pom_remove_dep org.apache.maven.scm:maven-scm-provider-cvsjava maven-scm-client
%pom_remove_dep org.apache.maven.scm:maven-scm-provider-cvsjava maven-scm-providers/maven-scm-providers-standard
%pom_disable_module maven-scm-provider-cvsjava maven-scm-providers/maven-scm-providers-cvs
sed -i s/cvsjava.CvsJava/cvsexe.CvsExe/ maven-scm-client/src/main/resources/META-INF/plexus/components.xml

# Tests are skipped anyways, so remove dependency on mockito.
%pom_remove_dep org.mockito: maven-scm-providers/maven-scm-provider-jazz
%pom_remove_dep org.mockito: maven-scm-providers/maven-scm-provider-accurev

# Don't use deprecated "descriptorId" configuration parameter of Maven
# Assembly Plugin, which was removed in version 3.0.0.
%pom_xpath_replace "pom:plugin[pom:artifactId='maven-assembly-plugin']/pom:configuration/pom:descriptorId" "
    <descriptorRefs>
      <descriptorRef>jar-with-dependencies</descriptorRef>
    </descriptorRefs>" maven-scm-client

# Put TCK tests into a separate sub-package
%mvn_package :%{name}-provider-cvstest test
%mvn_package :%{name}-provider-gittest test
%mvn_package :%{name}-provider-svntest test
%mvn_package :%{name}-test test

%build
# Don't build and unit run tests because
# * accurev tests need porting to a newer hamcrest
# * vss tests fail with the version of junit in fedora
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files test -f .mfiles-test
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14696 |21mr|maven-script-interpreter-1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     groovy

Name:           maven-script-interpreter
Version:        1.2
Release:        4
Summary:        Maven Script Interpreter
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-script-interpreter/
Source0:        http://central.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.beanshell:bsh)
%if %{with groovy}
BuildRequires:  mvn(org.codehaus.groovy:groovy)
%endif
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)


%description
This component provides some utilities to interpret/execute some scripts for
various implementations: Groovy or BeanShell.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q

%if %{without groovy}
%pom_remove_dep :groovy
rm src/main/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreter.java
rm src/test/java/org/apache/maven/shared/scriptinterpreter/GroovyScriptInterpreterTest.java
rm src/test/java/org/apache/maven/shared/scriptinterpreter/ScriptRunnerTest.java
sed -i /GroovyScriptInterpreter/d src/main/java/org/apache/maven/shared/scriptinterpreter/ScriptRunner.java
%endif

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc DEPENDENCIES LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14697 |21mr|maven-shade-plugin-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-shade-plugin
Version:        3.2.1
Release:        1
Summary:        This plugin provides the capability to package the artifact in an uber-jar
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/%{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-artifact-transfer)
BuildRequires:  mvn(org.apache.maven.shared:maven-dependency-tree)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.jdom:jdom2)
BuildRequires:  mvn(org.mockito:mockito-all)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-commons)
BuildRequires:  mvn(org.vafer:jdependency)
BuildRequires:  mvn(xmlunit:xmlunit)

%description
This plugin provides the capability to package the artifact in an
uber-jar, including its dependencies and to shade - i.e. rename - the
packages of some of the dependencies.


%package javadoc
Summary:        API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q

rm src/test/jars/plexus-utils-1.4.1.jar
ln -s $(build-classpath plexus/utils) src/test/jars/plexus-utils-1.4.1.jar

%pom_remove_dep 'com.google.guava:guava:'
%pom_add_dep 'com.google.guava:guava'

sed -i 's/import org\.apache\.maven\.shared\.transfer\.artifact\.\(.*\)/import org.apache.maven.shared.artifact.\1/' src/main/java/org/apache/maven/plugins/shade/mojo/ShadeMojo.java
sed -i 's/import org\.apache\.maven\.shared\.transfer\.artifact\.\(.*\)/import org.apache.maven.shared.artifact.\1/' src/test/java/org/apache/maven/plugins/shade/mojo/ShadeMojoTest.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14698 |21mr|maven-shared-incremental-1.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-shared-incremental
Version:        1.1
Release:        17
Summary:        Maven Incremental Build support utilities
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-shared-incremental/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)

%description
Various utility classes and plexus components for supporting
incremental build functionality in maven plugins.

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14699 |21mr|maven-shared-io-3.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-shared-io
Epoch:          1
Version:        3.0.0
Release:        8
Summary:        API for I/O support like logging, download or file scanning
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-shared-io
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Rejected upstream: https://issues.apache.org/jira/browse/MSHARED-490
Patch0:         0001-Fix-running-tests-with-Maven-3.3.9.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.easymock:easymock)

%description
API for I/O support like logging, download or file scanning.

%package javadoc
Summary:        Javadoc for %{name}
    
%description javadoc
API documentation for %{name}.

%prep
%setup -q
%patch0 -p1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14700 |21mr|maven-shared-jarsigner-1.3.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             maven-shared-jarsigner
Version:          1.3.2
Release:          10
Summary:          Component to assist in signing Java archives
License:          ASL 2.0
URL:              http://maven.apache.org/shared/maven-jarsigner/
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://repo1.maven.org/maven2/org/apache/maven/shared/maven-jarsigner/%{version}/maven-jarsigner-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils) >= 0.6
BuildRequires:  mvn(org.apache.maven:maven-toolchain)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)

%description
Apache Maven Jarsigner is a component which provides utilities to sign
and verify Java archive and other files in your Maven MOJOs.

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -qn maven-jarsigner-%{version}
find -name \*.jar -delete

%build
# Tests require bundled JARs, which are removed.
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE README.TXT

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14701 |21mr|maven-shared-resources-2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          maven-shared-resources
Version:       2
Release:       9
Summary:       A collection of templates that are specific to the Maven project
License:       ASL 2.0
URL:           http://maven.apache.org/shared/maven-shared-resources/
Source0:       http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
BuildRequires: maven-local
BuildRequires: maven-remote-resources-plugin
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires: mvn(org.apache.rat:apache-rat-plugin)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a collection of templates that are specific to the Maven project.
They are probably not of interest to projects other than Apache Maven.

%prep
%setup -q

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14702 |21mr|maven-shared-utils-3.2.1-0.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-shared-utils
Version:        3.2.1
Release:        0.4
Summary:        Maven shared utility classes
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-shared-utils
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip
# XXX temporary for maven upgrade
Patch0:         0001-Restore-compatibility-with-current-maven.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.fusesource.jansi:jansi)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)

%description
This project aims to be a functional replacement for plexus-utils in Maven.

It is not a 100% API compatible replacement though but a replacement with
improvements: lots of methods got cleaned up, generics got added and we dropped
a lot of unused code.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%patch0 -p1

%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14703 |21mr|maven-site-plugin-3.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-site-plugin
Version:        3.6
Release:        7
Summary:        Maven Site Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-site-plugin/
Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Patch1:         0001-Port-to-jetty-9.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-decoration-model)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-integration-tools)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xdoc)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-module-xhtml)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-sink-api)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven:maven-settings-builder)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-exec)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-i18n)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.jetty:jetty-client)
#BuildRequires:  mvn(org.eclipse.jetty:jetty-proxy)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:  mvn(org.eclipse.jetty:jetty-util)
BuildRequires:  mvn(org.eclipse.jetty:jetty-webapp)
BuildRequires:  mvn(org.sonatype.sisu:sisu-inject-plexus)

%description
The Maven Site Plugin is a plugin that generates a site for the current project.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%patch1 -p1

# Jetty is needed only in interactive mode of maven-site-plugin. Change
# dependency scope from compile to provided to reduce dependency bloat.
%pom_change_dep org.eclipse.jetty::: :::provided

# XXX will it work without it?
%pom_remove_dep :jetty-proxy
# obsoleted by maven-doxia of a newer version
%pom_remove_dep :doxia-module-markdown

%build
# missing webdav
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14704 |21mr|maven-source-plugin-3.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-source-plugin
Summary:        Plugin creating source JAR
Version:        3.1.0
Release:        2
License:        ASL 2.0

URL:            http://maven.apache.org/plugins/maven-source-plugin/
Source0:        http://repo1.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)

%description
The Maven Source Plugin creates a JAR archive of the
source files of the current project.


%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
API documentation for %{name}.


%prep
%setup -q


%build
%mvn_file : %{name}
%mvn_build


%install
%mvn_install


%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14705 |21mr|maven-surefire-2.22.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without  junit5

Name:           maven-surefire
Version:        2.22.0
Release:        5
Epoch:          0
Summary:        Test framework project
License:        ASL 2.0 and CPL
URL:            http://maven.apache.org/surefire/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
# Remove bundled binaries which cannot be easily verified for licensing
Source1:        generate-tarball.sh
Source2:        http://junit.sourceforge.net/cpl-v10.html

Patch0:         0001-Maven-3.patch
Patch1:         0002-Port-to-current-doxia.patch
Patch2:         0003-Port-to-TestNG-6.11.patch
Patch3:         0004-Port-to-current-maven-shared-utils.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven.doxia:doxia-site-renderer)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-api)
BuildRequires:  mvn(org.apache.maven.reporting:maven-reporting-impl)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires:  mvn(org.apache.maven.shared:maven-verifier)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-java)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.fusesource.jansi:jansi)
BuildRequires:  mvn(org.testng:testng)
BuildRequires:  mvn(org.testng:testng::jdk15:)

%if %{with junit5}
BuildRequires:  mvn(org.junit.platform:junit-platform-launcher)
%endif

# PpidChecker relies on /usr/bin/ps to check process uptime
Requires:       procps-ng

%description
Surefire is a test framework project.

%package plugin
Summary:                Surefire plugin for maven

%description plugin
Maven surefire plugin for running tests via the surefire framework.

%package report-plugin
Summary:                Surefire reports plugin for maven

%description report-plugin
Plugin for generating reports from surefire test runs.

%package provider-junit
Summary:                JUnit provider for Maven Surefire

%description provider-junit
JUnit provider for Maven Surefire.

%if %{with junit5}
%package provider-junit5
Summary:                JUnit 5 provider for Maven Surefire

%description provider-junit5
JUnit 5 provider for Maven Surefire.
%endif

%package provider-testng
Summary:                TestNG provider for Maven Surefire

%description provider-testng
TestNG provider for Maven Surefire.

%package report-parser
Summary:                Parses report output files from surefire

%description report-parser
Plugin for parsing report output files from surefire.

%package -n maven-failsafe-plugin
Summary:                Maven plugin for running integration tests

%description -n maven-failsafe-plugin
The Failsafe Plugin is designed to run integration tests while the
Surefire Plugins is designed to run unit. The name (failsafe) was
chosen both because it is a synonym of surefire and because it implies
that when it fails, it does so in a safe way.

If you use the Surefire Plugin for running tests, then when you have a
test failure, the build will stop at the integration-test phase and
your integration test environment will not have been torn down
correctly.

The Failsafe Plugin is used during the integration-test and verify
phases of the build lifecycle to execute the integration tests of an
application. The Failsafe Plugin will not fail the build during the
integration-test phase thus enabling the post-integration-test phase
to execute.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n surefire-%{version}
cp -p %{SOURCE2} .

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

# Disable strict doclint
sed -i /-Xdoclint:all/d pom.xml

%pom_disable_module surefire-shadefire

%if %{without junit5}
%pom_disable_module surefire-junit-platform surefire-providers
%endif

%pom_remove_dep -r org.apache.maven.surefire:surefire-shadefire

# Help plugin is needed only to evaluate effective Maven settings.
# For building RPM package default settings will suffice.
%pom_remove_plugin :maven-help-plugin surefire-setup-integration-tests

# QA plugin useful only for upstream
%pom_remove_plugin -r :jacoco-maven-plugin

# Not in Fedora
%pom_remove_plugin -r :animal-sniffer-maven-plugin
# Complains
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
# We don't need site-source
%pom_remove_plugin :maven-assembly-plugin maven-surefire-plugin
%pom_remove_dep -r ::::site-source

%pom_xpath_set pom:mavenVersion 3.3.3
%pom_remove_dep :maven-project maven-surefire-report-plugin
%pom_remove_dep :maven-project maven-surefire-common
%pom_remove_dep :maven-plugin-descriptor maven-surefire-common
%pom_remove_dep :maven-toolchain maven-surefire-common

%pom_xpath_remove -r "pom:execution[pom:id='shared-logging-generated-sources']"

%pom_add_dep com.google.code.findbugs:jsr305 surefire-api

%build
%mvn_package ":*{surefire-plugin,report-plugin}*" @1
%mvn_package ":*junit-platform*" junit5
%mvn_package ":*{junit,testng,failsafe-plugin,report-parser}*"  @1
%mvn_package ":*tests*" __noinstall
# tests turned off because they need jmock
# use xmvn-javadoc because maven-javadoc-plugin crashes JVM
%mvn_build -f -j -G org.fedoraproject.xmvn:xmvn-mojo:javadoc

%install
%mvn_install


%files -f .mfiles
%doc README.md
%license LICENSE NOTICE cpl-v10.html

%files plugin -f .mfiles-surefire-plugin
%files report-plugin -f .mfiles-report-plugin
%files report-parser -f .mfiles-report-parser
%files provider-junit -f .mfiles-junit
%files provider-testng -f .mfiles-testng
%files -n maven-failsafe-plugin -f .mfiles-failsafe-plugin
%if %{with junit5}
%files provider-junit5 -f .mfiles-junit5
%endif

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE cpl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14706 |21mr|maven-verifier-1.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-verifier
Version:        1.6
Release:        9
Summary:        Maven verifier
License:        ASL 2.0
URL:            http://maven.apache.org/shared/maven-verifier
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/shared/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires:  mvn(org.apache.maven.shared:maven-shared-utils)

%description
Provides a test harness for Maven integration tests.

%package javadoc
Summary:        Javadoc for %{name}
    
%description javadoc
API documentation for %{name}.

%prep
%setup -q

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14707 |21mr|maven-verifier-plugin-1.0-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           maven-verifier-plugin
Version:        1.0
Release:        22
Summary:        Maven Verifier Plugin

License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-verifier-plugin/
Source0:        http://www.apache.org/dist/maven/plugins/%{name}-%{version}-source-release.zip

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: maven-local
BuildRequires: maven-plugins-pom
BuildRequires: modello
BuildRequires: plexus-utils

%description
Assists in integration testing by means of evaluating 
success/error conditions read from a configuration file.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q 

%mvn_file :%{name} %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE DEPENDENCIES

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14708 |21mr|maven-wagon-3.3.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without     scm
%bcond_without     ssh

Name:           maven-wagon
Epoch:          0
Version:        3.3.3
Release:        4
Summary:        Tools to manage artifacts and deployment
License:        ASL 2.0
URL:            http://maven.apache.org/wagon
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/apache/maven/wagon/wagon/%{version}/wagon-%{version}-source-release.zip

BuildRequires:  maven-local
%if %{with ssh}
BuildRequires:  mvn(com.jcraft:jsch)
BuildRequires:  mvn(com.jcraft:jsch.agentproxy.connector-factory)
BuildRequires:  mvn(com.jcraft:jsch.agentproxy.jsch)
%endif
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-net:commons-net)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
%if %{with scm}
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-api)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-manager-plexus)
%endif
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.jsoup:jsoup)
BuildRequires:  mvn(org.slf4j:jcl-over-slf4j)
BuildRequires:  mvn(org.slf4j:slf4j-api)

Obsoletes:      %{name}-manual < %{epoch}:%{version}-%{release}
Obsoletes:      %{name}-provider-test < %{epoch}:%{version}-%{release}
%if %{without scm}
Obsoletes:      %{name}-scm < %{epoch}:%{version}-%{release}
%endif
%if %{without ssh}
Obsoletes:      %{name}-ssh < %{epoch}:%{version}-%{release}
%endif

%description
Maven Wagon is a transport abstraction that is used in Maven's
artifact and repository handling code. Currently wagon has the
following providers:
* File
* HTTP
* FTP
* SSH/SCP
* WebDAV
* SCM (in progress)

%package provider-api
Summary:        provider-api module for %{name}
Obsoletes:      %{name} < 2.6-4
Obsoletes:      %{name}-webdav-jackrabbit < 2.9-2

%description provider-api
provider-api module for %{name}.

%package providers
Summary:        providers module for %{name}

%description providers
providers module for %{name}

%package file
Summary:        file module for %{name}

%description file
file module for %{name}.

%package ftp
Summary:        ftp module for %{name}

%description ftp
ftp module for %{name}.

%package http
Summary:        http module for %{name}

%description http
http module for %{name}.

%package http-shared
Summary:        http-shared module for %{name}

%description http-shared
http-shared module for %{name}.

%package http-lightweight
Summary:        http-lightweight module for %{name}

%description http-lightweight
http-lightweight module for %{name}.

%if %{with scm}
%package scm
Summary:        scm module for %{name}

%description scm
scm module for %{name}.
%endif

%if %{with ssh}
%package ssh-external
Summary:        ssh-external module for %{name}

%description ssh-external
ssh-external module for %{name}.

%package ssh-common
Summary:        ssh-common module for %{name}

%description ssh-common
ssh-common module for %{name}.

%package ssh
Summary:        ssh module for %{name}

%description ssh
ssh module for %{name}.
%endif

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n wagon-%{version}

%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_dep :wagon-tck-http wagon-providers/wagon-http

# disable tests, missing dependencies
%pom_disable_module wagon-tcks
%pom_disable_module wagon-ssh-common-test wagon-providers/pom.xml
%pom_disable_module wagon-provider-test
%pom_remove_dep :wagon-provider-test
%pom_remove_dep :wagon-provider-test wagon-providers

# missing dependencies
%pom_disable_module wagon-webdav-jackrabbit wagon-providers

%if %{without scm}
%pom_disable_module wagon-scm wagon-providers
%endif
%if %{without ssh}
%pom_disable_module wagon-ssh wagon-providers
%pom_disable_module wagon-ssh-common wagon-providers
%pom_disable_module wagon-ssh-external wagon-providers
%endif

%build
%mvn_file ":wagon-{*}" %{name}/@1

%mvn_package ":wagon"

# tests are disabled because of missing dependencies
%mvn_build -f -s

# Maven requires Wagon HTTP with classifier "shaded"
%mvn_alias :wagon-http :::shaded:


%install
%mvn_install

%files -f .mfiles
%doc LICENSE NOTICE DEPENDENCIES
%files provider-api -f .mfiles-wagon-provider-api
%files providers -f .mfiles-wagon-providers
%files file -f .mfiles-wagon-file
%files ftp -f .mfiles-wagon-ftp
%files http -f .mfiles-wagon-http
%files http-shared -f .mfiles-wagon-http-shared
%files http-lightweight -f .mfiles-wagon-http-lightweight
%if %{with scm}
%files scm -f .mfiles-wagon-scm
%endif
%if %{with ssh}
%files ssh-external -f .mfiles-wagon-ssh-external
%files ssh-common -f .mfiles-wagon-ssh-common
%files ssh -f .mfiles-wagon-ssh
%endif

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE DEPENDENCIES


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14709 |21mr|maven-war-plugin-3.2.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Allow building with minimal dependency set
%bcond_with jp_minimal

Name:           maven-war-plugin
Version:        3.2.2
Release:        5
Summary:        Maven WAR Plugin
License:        ASL 2.0
URL:            http://maven.apache.org/plugins/maven-war-plugin/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo2.maven.org/maven2/org/apache/maven/plugins/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Patch out reliance on xstream for minimal build
Patch0: 0001-Patch-out-reliance-on-xstream.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-filtering)
BuildRequires:  mvn(org.apache.maven.shared:maven-mapping)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
%if %{without jp_minimal}
BuildRequires:  mvn(com.thoughtworks.xstream:xstream)
%endif

%description
Builds a Web Application Archive (WAR) file from the project output and its 
dependencies.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q 

%if %{with jp_minimal}
# Patch out reliance on xstream for minimal build
%patch0 -p1
%pom_remove_dep com.thoughtworks.xstream:xstream
%endif

%pom_remove_plugin :maven-enforcer-plugin

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14710 |21mr|mavibot-1.0.0-0.10.M8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -M8
%global namedversion %{version}%{?namedreltag}
Name:          mavibot
Version:       1.0.0
Release:       0.10.M8
Summary:       ApacheDS MVCC BTree implementation
License:       ASL 2.0
URL:           http://directory.apache.org/mavibot/
Source0:       http://www.apache.org/dist/directory/mavibot/dist/%{namedversion}/%{name}-%{namedversion}-src.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Mavibot is a Multi Version Concurrency Control (MVCC) BTree in Java. It
is expected to be a replacement for JDBM (The current back-end for the
Apache Directory Server), but could be a good fit for any other project
in need of a Java MVCC BTree implementation.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
find . -name "*.class" -delete
find . -name "*.jar" -print -delete
rm -r docs
%pom_remove_parent
%pom_disable_module distribution

%pom_remove_plugin org.apache.geronimo.genesis.plugins:tools-maven-plugin

%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :findbugs-maven-plugin

# This test fail on ARM builder only
# OutOfMemoryError: Java heap space testPersistedBulkLoad1000Elements Time elapsed: 155.802 sec
rm mavibot/src/test/java/org/apache/directory/mavibot/btree/BulkLoaderTest.java
# AssertionError: expected:<9> but was:<8>
rm mavibot/src/test/java/org/apache/directory/mavibot/btree/PageReclaimerTest.java
# Browse Forward for 9 = 2046
# Browe backward for 9 = 5096
# IOException: Too many open files
rm mavibot/src/test/java/org/apache/directory/mavibot/btree/PersistedBTreeBrowseTest.java

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14711 |21mr|mawk-1.3.4-0.20200120.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define snap 20200120

Summary:	An interpreter for the awk programming language
Name:		mawk
Version:	1.3.4
Release:	0.%{snap}.1
License:	GPLv2+
Group:		Development/Tools
Url:		https://invisible-island.net/mawk/
# Upstream source doesn't have version in name - ftp://ftp.invisible-island.net/mawk/mawk.tar.gz
Source0:	%{name}-%{version}-%{snap}.tar.gz
BuildRequires:	byacc

%description
Mawk is a version of the awk programming language.  Awk interprets a 
special-purpose programming language to do quick text pattern matching
and reformatting.  Mawk improves on awk in certain ways and can 
sometimes outperform gawk, the standard awk program for Linux.  Mawk
conforms to the POSIX 1003.2 (draft 11.3) definition of awk.

You should install mawk if you use awk.

%files
%{_bindir}/mawk
%{_mandir}/man1/*
%doc ACKNOWLEDGMENT CHANGES INSTALL README

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{snap}
chmod -R a+r .

%build
MATHLIB="-lm" LDFLAGS="%{ldflags} -lm" %configure

OPT_FLAGS=`echo "%{optflags}" | sed -e "s/-ffast-math//g"`
make CFLAGS="$OPT_FLAGS" LDFLAGS="-lm"

%install
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1}
%makeinstall
mv %{buildroot}%{_mandir}/mawk*  %{buildroot}%{_mandir}/man1/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14712 |21mr|maxmind-db-java-1.0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname maxmind-db
Name:          maxmind-db-java
Version:       1.0.1
Release:       8
Summary:       Java reader for the MaxMind DB format
License:       ASL 2.0
URL:           http://dev.maxmind.com/
Source0:       https://github.com/maxmind/MaxMind-DB-Reader-java/archive/v%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is the Java API for reading MaxMind DB files.
MaxMind DB is a binary file format that stores
data indexed by IP address subnets (IPv4 or IPv6).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n MaxMind-DB-Reader-java-%{version}

# Unwanted
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :exec-maven-plugin

# Unavailable plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin org.eluder.coveralls:coveralls-maven-plugin
%pom_remove_plugin :versions-maven-plugin

%mvn_file :%{oname} %{oname}
 
%build

# Tests fails for unavailable resources: maxmind-db/test-data/MaxMind-DB-test-decoder.mmdb
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.md README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14713 |21mr|mbedtls-2.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with tests

%define major 13
%define crypto_major 6
%define x509_major 1
%define libname %mklibname %{name} %{major}
%define libcrypto %mklibname mbedcrypto %{crypto_major}
%define libx509 %mklibname mbedx509_ %{x509_major}
%define devname %mklibname %{name} -d

Summary:	An SSL library
Name:		mbedtls
Version:	2.26.0
Release:	1
License:	ASL 2.0
Group:		System/Libraries
Url:		https://tls.mbed.org
Source0:	https://github.com/ARMmbed/mbedtls/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		mbedtls-2.26.0-printf.patch
# error: dereferencing type-punned pointer remove after update to new version
Patch1:		mbedtls-2.26.0-Werror.patch
BuildRequires:	cmake
BuildRequires:	ninja
# For docs
BuildRequires:	doxygen
BuildRequires:	graphviz
# For tests
%if %{with tests}
BuildRequires:	lcov
BuildRequires:	perl
BuildRequires:	valgrind
BuildRequires:	python2
%endif
BuildRequires:	pkgconfig(libpkcs11-helper-1)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
mbed TLS (formerly known as PolarSSL) is an SSL library written in ANSI C. It
makes it easy for developers to include cryptographic and SSL/TLS capabilities
in their (embedded) products with as little hassle as possible. It is designed
to be readable, documented, tested, loosely coupled and portable.
This package contains mbed TLS programs.

%files
%doc ChangeLog README*
%{_bindir}/%{name}-*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	mbed TLS library
Group:		System/Libraries

%description -n %{libname}
mbed TLS (formerly known as PolarSSL) is an SSL library written in ANSI C. It
makes it easy for developers to include cryptographic and SSL/TLS capabilities
in their (embedded) products with as little hassle as possible. It is designed
to be readable, documented, tested, loosely coupled and portable.
This package contains the library itself.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#-----------------------------------------------------------------------------

%package -n %{libcrypto}
Summary:	mbed TLS library
Group:		System/Libraries

%description -n %{libcrypto}
mbed TLS (formerly known as PolarSSL) is an SSL library written in ANSI C. It
makes it easy for developers to include cryptographic and SSL/TLS capabilities
in their (embedded) products with as little hassle as possible. It is designed
to be readable, documented, tested, loosely coupled and portable.
This package contains the library itself.

%files -n %{libcrypto}
%doc LICENSE
%{_libdir}/libmbedcrypto.so.%{version}
%{_libdir}/libmbedcrypto.so.%{crypto_major}

#-----------------------------------------------------------------------------

%package -n %{libx509}
Summary:	mbed TLS library
Group:		System/Libraries

%description -n %{libx509}
mbed TLS (formerly known as PolarSSL) is an SSL library written in ANSI C. It
makes it easy for developers to include cryptographic and SSL/TLS capabilities
in their (embedded) products with as little hassle as possible. It is designed
to be readable, documented, tested, loosely coupled and portable.
This package contains the library itself.

%files -n %{libx509}
%doc LICENSE
%{_libdir}/libmbedx509.so.%{version}
%{_libdir}/libmbedx509.so.%{x509_major}

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	mbed TLS development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcrypto} = %{EVRD}
Requires:	%{libx509} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
mbed TLS (formerly known as PolarSSL) is an SSL library written in ANSI C. It
makes it easy for developers to include cryptographic and SSL/TLS capabilities
in their (embedded) products with as little hassle as possible. It is designed
to be readable, documented, tested, loosely coupled and portable.
This package contains development files for %{name}.

%files -n %{devname}
%doc apidoc/*
%{_libdir}/libmbed*.so
%{_includedir}/%{name}/
%{_includedir}/psa/

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

# (gvm) Perhaps it does apply also for us, perhaps it does not:
# in the doubt, keep it...
# Enable MBEDTLS_THREADING_PTHREAD and MBEDTLS_THREADING_C flags
# https://bugs.mageia.org/show_bug.cgi?id=15391#c4
sed -i 's|//\(#define MBEDTLS_HAVEGE_C\)|\1|' include/mbedtls/config.h
sed -i 's|//\(#define MBEDTLS_THREADING_C\)|\1|' include/mbedtls/config.h
sed -i 's|//\(#define MBEDTLS_THREADING_PTHREAD\)|\1|' include/mbedtls/config.h

%build
%cmake \
	-DCMAKE_BUILD_TYPE:STRING=Release \
	-DLINK_WITH_PTHREAD:BOOL=ON \
	-DENABLE_PROGRAMS:BOOL=ON \
	-DENABLE_TESTING:BOOL=ON \
	-DENABLE_ZLIB_SUPPORT:BOOL=ON \
	-DUSE_SHARED_MBEDTLS_LIBRARY:BOOL=ON \
	-DUSE_STATIC_MBEDTLS_LIBRARY:BOOL=OFF \
	-DUSE_PKCS11_HELPER_LIBRARY:BOOL=ON \
	-G Ninja

%ninja_build
# Build also devel docs
%ninja_build apidoc


%install
%ninja_install -C build

#manual strip lib file
strip %{buildroot}/%{_libdir}/lib*

# Prevent possible file clashes
pushd %{buildroot}%{_bindir}
	for i in * ; do mv ${i} %{name}-${i}; done
popd

%if %{with tests}
%check
%make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14714 |21mr|mbox-importer-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MBox Importer allows to migrate data from MBox
Name:		mbox-importer
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5mailimporter-devel
BuildRequires:	kf5service-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	mboximporter = %{EVRD}

%description
MBox Importer allows to migrate data from MBox.

%files -f mboximporter.lang
%{_kde5_applicationsdir}/org.kde.mboximporter.desktop
%{_kde5_bindir}/mboximporter

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang mboximporter --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14715 |21mr|mc-4.8.30-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{mdvver} >= 201910
%define _disable_rebuild_configure 1
%endif

# experimental vfs, gpm and aspell enable
%bcond_without mrb

# avoid dependency on X11 libraries
%bcond_with x11

%bcond_with mc46_style

Summary:	A user-friendly file manager and visual shell
Name:		mc
Version:	4.8.30
Release:	2
License:	GPLv2+
Group:		File tools
Url:		http://www.midnight-commander.org/
Source0:	http://ftp.midnight-commander.org/%{name}-%{version}.tar.xz
Source1:	mc.svg
# Highlight hidden files and dirs with black and
# whitespaces (in mcedit) with bright red like it was in mc 4.6.3 aka Russian fork
# Don't highlight syntax for .yml files
Patch0:		mc-4.8.20-old-style-defaults.patch
Patch1:		mc-4.8.30-do-not-mark-tabs.patch
Patch2:		mc-4.7.2-bash_history.patch
# Revert to pre-4.8.16 behaviour to keep bash history clean
Patch3:		mc-4.8.16-bash_history2.patch
Patch4:		mc-python3.patch
Patch5:		add-support-for-xzm-files.patch
# Lynx style navigation (left arrow == up dir)
Patch6:		mc-4.8.29-navigate_with_arrows.patch
BuildRequires:	bison
BuildRequires:	gettext-devel
BuildRequires:	gpm-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(slang)
%if %{with mrb}
BuildRequires:	groff
BuildRequires:	aspell-devel
BuildRequires:	pkgconfig(libssh2) >= 1.2.5
Requires:	aspell-en
%endif
%if %{with x}
BuildRequires:	pkgconfig(x11)
%endif
Requires:	groff
Recommends:	zstd

%description
Midnight Commander is a visual shell much like a file manager, only with way
more features.  It is text mode, but also includes mouse support if you are
running GPM.  Its coolest feature is the ability to ftp, view tar, zip
files, and poke into RPMs for specific files.

%files -f %{name}.lang
%doc NEWS README
%{_libexecdir}/mc
%{_datadir}/mc
%{_sysconfdir}/profile.d/*
%{_sysconfdir}/mc
%{_bindir}/mc
%{_bindir}/mcdiff
%{_bindir}/mcedit
%{_bindir}/mcview
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package desktop
Summary:	Dektop file to %{name}
Group:		File tools
License:	GPL-3.0-or-later
BuildArch:	noarch
Requires:	%{name} = %{EVRD}

%description desktop
Dektop files for %{name}

%files desktop
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/mcedit.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------

%prep
%setup -q
%if %{with mc46_style}
%patch0 -p1 -b .mc46-style~
%else
%patch1 -p1 -b .tabs~
%endif
%patch2 -p1 -b .bash_history~
%patch3 -p1 -b .bash_history2~
%patch4 -p1 -b .py3
%patch5 -p1 -b .xzm~
%patch6 -p1 -b .arrows~

sed -i 's:|hxx|:|hh|hpp|hxx|:' misc/syntax/Syntax.in

%build
#autoreconf -fi
#%%serverbuild
export X11_WWW="www-browser"
export CFLAGS="-D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE %{optflags} -Wno-strict-aliasing"
%configure \
	PYTHON=%{__python3} \
	--enable-dependency-tracking \
	--with-screen=slang \
	--with-search-engine=glib \
	--enable-nls \
	--enable-charset \
	--enable-largefile \
	--disable-rpath \
	--with-mmap \
	--with-search-engine=pcre2 \
%if %{with mrb}
	--enable-vfs-sftp \
	--with-gpm-mouse \
	--enable-aspell \
%endif
%if %{without x}
	--without-x \
%endif
	--libexecdir=%{_libexecdir}

%make_build

%install
%make_install

install -d -m 755 %{buildroot}%{_sysconfdir}/profile.d
install contrib/{mc.sh,mc.csh} %{buildroot}%{_sysconfdir}/profile.d

mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps

install -m644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/scalable/apps

# mc.desktop
cat <<__EOF__>%{buildroot}%{_datadir}/applications/%{name}.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=Midnight Commander
Comment=Visual shell and file manager
Comment[ru]=Визуальная оболочка и диспетчер файлов
Icon=%{name}
Exec=%{name}
Terminal=true
Categories=ConsoleOnly;Utility;FileTools;FileManager;
__EOF__

# mcedit.desktop
cat <<__EOF__>%{buildroot}%{_datadir}/applications/mcedit.desktop
[Desktop Entry]
Version=1.0
Type=Application
Name=mcedit
GenericName=Text Editor
GenericName[ru]=Текстовый редактор
Comment=Internal file editor of GNU Midnight Commander
Comment[ru]=Встроенный текстовый редактор GNU Midnight Commander
Icon=%{name}
Exec=mcedit
Terminal=true
Categories=ConsoleOnly;Utility;TextEditor;
__EOF__

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14716 |21mr|MCBC-mac-to-SELinux-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} -DNOLOCALHOST

%define major 0
%define libname %mklibname mcbcconvert %{major}
%define devname %mklibname mcbcconvert -d

%ifarch %{go_arches}
%bcond_without man
%else
%bcond_with man
%endif

Summary:	Convert file MAC labels from MCBC to SELinux
Summary(ru):	Конвертер файловых меток МСВС в SELinux
Name:		MCBC-mac-to-SELinux
Version:	1.0
Release:	1
License:	GPLv3
Group:		Archiving/Other
Url:		https://abf.rosalinux.ru/import/MCBC-mac-to-SELinux
# run `make tarimg` after changing img/
Source0:	mcbc2selinux-docs-img.tar
Source11:	convert.c
Source12:	convert.h
Source13:	xattrs.c
Source14:	xattrs.h
Source15:	cli.c
Source16:	test.c
Source17:	README.html
Source18:	Makefile
Source19:	mcbc2selinux.1.md
BuildRequires:	glibc-devel
BuildRequires:	gcc
BuildRequires:	go-srpm-macros
%if %{with man}
BuildRequires:	md2man
%endif
Provides:	mcbc2selinux = %{EVRD}
Provides:	mcbc-mac-to-selinux = %{EVRD}

%description
Convert file MAC labels from MCBC to SELinux.
Manual is inside the package in %{_defaultdocdir}/%{name}/README.html

%description -l ru_RU.UTF-8
Конвертер файловых меток с мандатными аттрибутами из МСВС в SELinux.
В пакете поставляется инструкция по адресу:
%{_defaultdocdir}/%{name}/README.html

%files
%doc README.html
%doc img
%doc mcbc2selinux.1.md
%{_bindir}/mcbc2selinux
%{_bindir}/%{name}
%if %{with man}
%lang(ru) %{_mandir}/ru/man1/mcbc2selinux.1*
%lang(ru) %{_mandir}/ru/man1/MCBC-mac-to-SELinux.1*
%endif

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Library to covert file MAC labels from MCBC to SELinux
Group:		System/Libraries

%description -n %{libname}
Library to covert file MAC labels from MCBC to SELinux

%files -n %{libname}
%{_libdir}/libmcbcconvert.so.%{major}

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of libmcbcconvert
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	mcbc2selinux-devel = %{EVRD}

%description -n %{devname}
Development files of libmcbcconvert.
libmcbcconvert is a library to covert file MAC labels from MCBC to SELinux.

%files -n %{devname}
%{_libdir}/libmcbcconvert.so
%{_includedir}/mcbc2selinux

#------------------------------------------------------------------

%prep
# %%setup is not needed here, but debuginfo
# is not created without %%setup o_O (why?!)
%setup -q -c
cp %sources .

%build
%setup_compile_flags
export MCBC_CONVERTOR_DEBUG=1
export LC_ALL=C.UTF-8
make clean
make test
make cli
make libmcbcconvert

%install
export PREFIX=%{_prefix}
export BINDIR=%{_bindir}
export LIBDIR=%{_libdir}
export INCLUDEDIR=%{_includedir}
%makeinstall_std

%if %{with man}
mkdir -p %{buildroot}%{_mandir}/ru/man1
md2man -output %{buildroot}%{_mandir}/ru/man1/mcbc2selinux.1 mcbc2selinux.1.md
( cd %{buildroot}%{_mandir}/ru/man1 && ln -sf mcbc2selinux.1 MCBC-mac-to-SELinux.1 )
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14717 |21mr|mcelog-184-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		mcelog
Version:	184
Release:	1
Summary:	The kernel machine check logger
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://www.mcelog.org
Source:		https://github.com/andikleen/mcelog/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

%description
mcelog is the user space interface to the in kernel machine check logger
on x86-64. It decodes the binary machine check records into a human
readable format.

%prep
%setup -q

%build
%make CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/%{_mandir}/man8
mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d/
mkdir -p %{buildroot}/%{_sysconfdir}/cron.hourly/

%makeinstall etcprefix=%{buildroot}
cp mcelog.logrotate %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}
cp mcelog.cron %{buildroot}/%{_sysconfdir}/cron.hourly/%{name}

%files
%{_sbindir}/mcelog
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_sysconfdir}/cron.hourly/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/mcelog/mcelog.conf
%{_sysconfdir}/mcelog/cache-error-trigger
%{_sysconfdir}/mcelog/dimm-error-trigger
%{_sysconfdir}/mcelog/page-error-trigger
%{_sysconfdir}/mcelog/socket-memory-error-trigger
%{_sysconfdir}/mcelog/bus-error-trigger
%{_sysconfdir}/mcelog/iomca-error-trigger
%{_sysconfdir}/mcelog/unknown-error-trigger
%{_sysconfdir}/mcelog/page-error-counter-replacement-trigger
%{_sysconfdir}/mcelog/page-error-post-sync-soft-trigger
%{_sysconfdir}/mcelog/page-error-pre-sync-soft-trigger



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14718 |21mr|mchange-commons-0.2.11-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_tag mchange-commons-java-%{version}

Name:          mchange-commons
Version:       0.2.11
Release:       9
Summary:       A collection of general purpose utilities for c3p0
License:       LGPLv2 or EPL
URL:           https://github.com/swaldman/mchange-commons-java
Source0:       https://github.com/swaldman/mchange-commons-java/archive/%{git_tag}/mchange-commons-%{version}.tar.gz
Source1:       https://raw.github.com/willb/climbing-nemesis/master/climbing-nemesis.py

# There is a missing dep in Fedora so cannot build tests
Patch0:        mchange-no-tests.patch

BuildRequires: sbt
BuildRequires: ivy-local
BuildRequires: maven-local
BuildRequires: log4j12
BuildRequires: slf4j
BuildRequires: typesafe-config
BuildRequires: python2

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Originally part of c3p0, mchange-commons is a set of general purpose
utilities.

%package javadoc
Summary:       API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n mchange-commons-java-%{git_tag}

%patch0

find -name '*.class' -delete
find -name '*.jar' -delete

cp %{SOURCE1} .
chmod 755 climbing-nemesis.py

sed -i -e 's/0.13.6/0.13.1/' project/build.properties

cp -pr /usr/share/sbt/ivy-local .

%build
# XXX: Link deps, I understand this is a temp measure until sbt gains real xmvn integration
# XXX: Switch to Python 3 before Fedora 32
python2 climbing-nemesis.py com.typesafe config any ivy-local --version 1.2.1
python2 climbing-nemesis.py log4j log4j 12 ivy-local --version 1.2.14
python2 climbing-nemesis.py org.slf4j slf4j-api any ivy-local --version 1.7.5

export SBT_BOOT_DIR=$PWD/boot
export SBT_IVY_DIR=$PWD/ivy-local
sbt package make-pom doc

%mvn_artifact target/mchange-commons-java-%{version}.pom target/mchange-commons-java-%{version}.jar

%install
%mvn_install -J target/api

%files -f .mfiles
%license LICENSE*

%files javadoc -f .mfiles-javadoc
%license LICENSE*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14719 |21mr|mcpp-2.7.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Alternative C/C++ preprocessor
Name:		mcpp
Version:	2.7.2
Release:	14
License:	BSD
Group:		Development/C++
Url:		http://mcpp.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# fedora patches
Patch0:		mcpp-manual.html.patch
# Debian patches
Patch2:		01-zeroc-fixes.patch
Patch3:		02-gniibe-fixes.patch
Patch4:		03-gniibe-fix-11.patch
Patch5:		04-gniibe-fix-12.patch
# CVE-2019-14274
Patch6:		05-gniibe-fix-13.patch
Patch7:		06-gniibe-fix-autotools.patch
%description
C/C++ preprocessor defines and expands macros and processes '#if',
'#include' and some other directives.

MCPP is an alternative C/C++ preprocessor with the highest conformance.
It supports multiple standards: K&R, ISO C90, ISO C99, and ISO C++98.
MCPP is especially useful for debugging a source program which uses
complicated macros and also useful for checking portability of a source.

Though mcpp could be built as a replacement of GCC's resident
proprocessor or as a stand-alone program without using library build of
mcpp, this package installs only a program named 'mcpp' which links
shared library of mcpp and behaves independent from GCC.

%files
%{_bindir}/*
%{_mandir}/man1/*
%{_defaultdocdir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package provides the libraries for mcpp.

%files -n %{libname}
%{_libdir}/libmcpp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*

#-------------------------------------------------------------------------===

%prep
%autosetup -p1

%build
autoreconf -fi
%configure \
	--enable-mcpplib \
	--disable-static

%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14720 |21mr|mcs-0.7.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libmcs

%define major 1
%define libname %mklibname %name %{major}
%define develname %mklibname -d %{name}

Summary:	Modular Config System
Name:		mcs
Version:	0.7.2
Release:	7
License:	BSD
Group:		System/Libraries
Url:		http://www.atheme.org/projects/mcs.shtml
Source0:	http://distfiles.atheme.org/%{oname}-%{version}.tbz2
Patch:		libmcs-0.7.1-linking.patch
BuildRequires:	pkgconfig(libmowgli)
BuildRequires:	pkgconfig(gconf-2.0)

%description
mcs is a library and set of userland tools which abstract the storage
of configuration settings away from userland applications.

It is hoped that by using mcs, that the applications which use it will
generally have a more congruent feeling in regards to settings.

There have been other projects like this before (such as GConf), but
unlike those projects, mcs strictly handles abstraction. It does not
impose any specific data storage requirement, nor is it tied to any
desktop environment or software suite.

%package -n %{libname}
Group:		System/Libraries
Summary:	Modular Config System shared library
Requires:	%{name} >= %{version}

%description -n %{libname}
mcs is a library and set of userland tools which abstract the storage
of configuration settings away from userland applications.

It is hoped that by using mcs, that the applications which use it will
generally have a more congruent feeling in regards to settings.

There have been other projects like this before (such as GConf), but
unlike those projects, mcs strictly handles abstraction. It does not
impose any specific data storage requirement, nor is it tied to any
desktop environment or software suite.

%package -n %{develname}
Group:		Development/C
Summary:	Modular Config System shared library
Requires:	%{libname} = %{version}-%{release}
Provides:	libmcs-devel = %{version}-%{release}

%description -n %{develname}
mcs is a library and set of userland tools which abstract the storage
of configuration settings away from userland applications.

It is hoped that by using mcs, that the applications which use it will
generally have a more congruent feeling in regards to settings.

There have been other projects like this before (such as GConf), but
unlike those projects, mcs strictly handles abstraction. It does not
impose any specific data storage requirement, nor is it tied to any
desktop environment or software suite.

%package gconf
Group:		System/Libraries
Summary:	Modular Config System - GConf backend
Requires:	%{name} = %{version}-%{release}

%description gconf
mcs is a library and set of userland tools which abstract the storage
of configuration settings away from userland applications.

It is hoped that by using mcs, that the applications which use it will
generally have a more congruent feeling in regards to settings.

There have been other projects like this before (such as GConf), but
unlike those projects, mcs strictly handles abstraction. It does not
impose any specific data storage requirement, nor is it tied to any
desktop environment or software suite.

%prep
%setup -q -n %{oname}-%{version}
%patch -p1 -b .linking

%build
%configure --disable-kconfig
%make

%install
%makeinstall_std

%files
%doc AUTHORS TODO README
%{_bindir}/mcs-*
%dir %{_libdir}/mcs/
%{_libdir}/mcs/keyfile.so

%files gconf
%{_libdir}/mcs/gconf.so

%files -n %{libname}
%{_libdir}/libmcs.so.%{major}*

%files -n %{develname}
%{_libdir}/libmcs.so
%{_libdir}/pkgconfig/libmcs.pc
%{_includedir}/libmcs/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14721 |21mr|mcstrans-3.3-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SELinux Translation Daemon
Name:		mcstrans
Version:	3.3
Release:	18
License:	GPLv2+
Group:		System/Servers
Source0:	https://github.com/SELinuxProject/selinux/releases/download/%{version}/%{name}-%{version}.tar.gz
Source1:	mcstransd.service
BuildRequires:	libcap-devel
BuildRequires:  pkgconfig(libselinux)
BuildRequires:  pkgconfig(libsepol)
BuildRequires:	sepol-devel >= 2.1.3-5
BuildRequires:	sepol-static-devel
BuildRequires:	pkgconfig(libpcre)
Requires:	pcre
Provides:	setransd = %{EVRD}
Requires(post,preun):	rpm-helper

%description
Security-enhanced Linux is a feature of the Linux kernel and a number
of utilities with enhanced security functionality designed to add
mandatory access controls to Linux.  The Security-enhanced Linux
kernel contains new architectural components originally developed to
improve the security of the Flask operating system. These
architectural components provide general support for the enforcement
of many kinds of mandatory access control policies, including those
based on the concepts of Type Enforcement, Role-based Access
Control, and Multi-level Security.

mcstrans provides an translation daemon to translate SELinux categories
from internal representations to user defined representation.

%files
%defattr(-,root,root,0755)
%{_mandir}/man8/mcs.8.*
%{_mandir}/man8/mcstransd.8.*
%{_mandir}/man5/setrans.conf.5.*
%{_mandir}/*/man5/*
%{_mandir}/*/man8/*
/sbin/mcstransd
%dir %{_sysconfdir}/selinux/mls/setrans.d
%dir %{_datadir}/mcstrans
%defattr(0644,root,root,0755)
%dir %{_datadir}/mcstrans/util
%dir %{_datadir}/mcstrans/examples
%{_datadir}/mcstrans/examples/*
%defattr(0755,root,root,0755)
%{_datadir}/mcstrans/util/*
%{_unitdir}/mcstransd.service

%post
%_post_service mcstrans

%preun
%_preun_service mcstrans

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make clean
%make LIBDIR="%{_libdir}" CFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}/%{_lib}
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}%{_datadir}/mcstrans
mkdir -p %{buildroot}%{_sysconfdir}/selinux/mls/setrans.d

make DESTDIR="%{buildroot}" LIBDIR="%{buildroot}%{_libdir}" SHLIBDIR="%{buildroot}/%{_lib}" install
rm -f %{buildroot}%{_sbindir}/*
rm -f %{buildroot}%{_libdir}/*.a
cp -r share/* %{buildroot}%{_datadir}/mcstrans/

mkdir -p %{buildroot}%{_unitdir}
# remove native unit and use SOURCE1
rm -f %{buildroot}%{_prefix}%{_unitdir}/%{name}.service
install -m644 %{SOURCE1} %{buildroot}%{_unitdir}

rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/mcstrans

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14722 |21mr|mctc-lib-0.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:           mctc-lib
Version:        0.3.2
Release:        2
Summary:        Modular computation tool chain library
Group:          Sciences/Chemistry
License:        ASL 2.0
URL:            https://grimme-lab.github.io/mctc-lib/
Source0:        https://github.com/grimme-lab/mctc-lib/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  gcc-gfortran
BuildRequires:  meson
BuildRequires:  ninja
BuildRequires:  json-fortran-devel
# For docs
BuildRequires:  rubygem-asciidoctor

# Patch to use python3 instead of env python
Patch0:         mctc-lib-0.3.0-python3.patch

%description
Common tool chain for working with molecular structure data in various
applications. This library provides a unified way to perform
operations on molecular structure data, like reading and writing to
common geometry file formats.

%files
%license LICENSE
%doc README.md
%{_bindir}/mctc-convert
%{_mandir}/man1/mctc-convert.1*
#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------
%package -n %{devname}
Summary:        Development files for %{name}
Requires:       %{libname}%{?_isa} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_fmoddir}/mctc_*.mod
%{_libdir}/pkgconfig/mctc-lib.pc
%{_libdir}/libmctc-lib.so
#------------------------------------------------------------------
%prep
%autosetup -p1

%build
export FFLAGS="%{optflags} -I%{_fmoddir} -fPIC"
export FCLAGS="%{optflags} -I%{_fmoddir} -fPIC"
%meson
%meson_build

%install
%meson_install
# Remove static libraries
rm -f %{buildroot}%{_libdir}/*.a

# Move module files
mkdir -p %{buildroot}%{_fmoddir}
mv %{buildroot}%{_includedir}/mctc-lib/*/*.mod %{buildroot}%{_fmoddir}
rm -rf %{buildroot}%{_includedir}/mctc-lib/
sed -i 's|-I${includedir}/mctc-lib/modules|-I%{_fmoddir}|' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14723 |21mr|md2man-1.0-5.git2c1712.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define commit 2c17128a90c7e87009b542e088eb88b8c854fe1e
%define commit_short %(echo %{commit} | head -c 6)

Summary:	md2man creates simple man pages from the markdown file
License:	GPLv3+
Group:		Development/Other
Name:		md2man
Version:	1.0
Release:	5.git%{commit_short}.2
Url:		https://github.com/legionus/md2man
Source0:	https://github.com/legionus/md2man/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires:	golang
ExclusiveArch:	%{go_arches}

%description
This utility converts markdown to man page

%files
%{_bindir}/%{name}
#------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

# TODO: use go-srpm-macros

# first build bundled dependencies
dir0="$(pwd)"
export GOPATH="$(pwd)"
# Make $GOPATH work with golang >= 1.16
# https://www.opennet.ru/opennews/art.shtml?num=54605
export GO111MODULE=off
ln -s vendor src
for i in "${GOPATH}/vendor/github.com/shurcooL/sanitized_anchor_name" "${GOPATH}/vendor/gopkg.in/russross/blackfriday.v2"
do
	cd "$i"
	go build
	cd "$dir0"
done

# build md2man itself
go build

%install
mkdir -p %{buildroot}%{_bindir}
install -m0755 %{name}-%{commit} %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14724 |21mr|mdadm-4.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for managing Soft RAID under Linux
Name:		mdadm
Version:	4.2
Release:	3
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.kernel.org/pub/linux/utils/raid/mdadm/
Source0:	http://www.kernel.org/pub/linux/utils/raid/mdadm/%{name}-%{version}.tar.xz
# From Fedora
Source3:	mdadm-raid-check
Source4:	mdadm-raid-check-sysconfig
Source5:	mdadm-cron
Source6:	mdadm.rules
Source8:	mdmonitor-takeover.service
Source9:	mdadm-tmpfiles.conf
Source10:	mdadm_event.conf
# Drop when update
Patch0:		mdadm-4.2-upstream.patch
Patch1:		mdadm-4.2-byteswap.patch
# Fedora patches
# Rediff from mdadm-3.3.2-udev.patch
Patch2:		mdadm-4.2-udev.patch
# Rosa
Patch3:		mdadm-4.2-drop-suse-files-systemd-strings.patch
BuildRequires:	groff
BuildRequires:	binutils-devel
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(udev)
Requires:	libreport-filesystem

%description
mdadm is a program that can be used to create, manage, and monitor
Linux MD (Software RAID) devices.

As such is provides similar functionality to the raidtools packages.
The particular differences to raidtools is that mdadm is a single
program, and it can perform (almost) all functions without a
configuration file (that a config file can be used to help with
some common tasks).

%files
%doc %{name}.conf-example misc/*
%license COPYING
%config(noreplace,missingok) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/cron.d/raid-check
%config(noreplace) %{_sysconfdir}/sysconfig/raid-check
/lib/systemd/system-shutdown/%{name}.shutdown
%{_mandir}/man*/md*
%{_sbindir}/raid-check
/sbin/%{name}
/sbin/%{name}-syslog-events
/sbin/mdmon
%{_sysconfdir}/libreport/events.d/*
%{_tmpfilesdir}/%{name}.conf
%{_udevrulesdir}/63-md-raid-arrays.rules
%{_udevrulesdir}/64-md-raid-assembly.rules
%{_udevrulesdir}/65-md-incremental.rules
%{_unitdir}/*.service
%{_unitdir}/*.timer

#----------------------------------------------------------------------------

%prep
%autosetup -p1

echo "PROGRAM /sbin/%{name}-syslog-events" >> %{name}.conf-example

# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,<sys/types.h>,<sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
%setup_compile_flags
%make CWFLAGS=-Wall SYSCONFDIR="%{_sysconfdir}" CXFLAGS="%{optflags} -fno-strict-aliasing"

%install
make install-man install-udev DESTDIR=%{buildroot} MANDIR=%{_mandir} BINDIR=/sbin SYSTEMD_DIR=%{_unitdir} install-systemd
install -m755 %{name} -D %{buildroot}/sbin/%{name}
install -m755 mdmon -D %{buildroot}/sbin/mdmon

install -p -m644 %{name}.conf-example -D %{buildroot}%{_sysconfdir}/%{name}.conf
install -p -m755 %{SOURCE3} -D %{buildroot}%{_sbindir}/raid-check
install -p -m644 %{SOURCE4} -D %{buildroot}%{_sysconfdir}/sysconfig/raid-check
install -p -m644 %{SOURCE5} -D %{buildroot}%{_sysconfdir}/cron.d/raid-check
install -p -m755 misc/syslog-events -D %{buildroot}/sbin/%{name}-syslog-events
install -p -m644 %{SOURCE6} -D %{buildroot}%{_udevrulesdir}/65-md-incremental.rules

install -m644 %{SOURCE9} -D %{buildroot}%{_tmpfilesdir}/%{name}.conf

install -m644 %{SOURCE10} -D %{buildroot}%{_sysconfdir}/libreport/events.d/%{name}_event.conf

rm -f %{buildroot}%{_udevrulesdir}/01-md-raid-creating.rules
rm -f %{buildroot}%{_udevrulesdir}/69-md-clustered-confirm-device.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14725 |21mr|mdds-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global do_mem_tests 0
%global do_perf_tests 0
%define api 2.1

Summary:	A collection of multi-dimensional data structures and indexing algorithms
Name:		mdds
Version:	2.1.1
Release:	1
License:	MIT
Group:		Development/C++
Url:		https://gitlab.com/mdds/mdds
Source0:	http://kohei.us/files/%{name}/src/%{name}-%{version}.tar.bz2
BuildRequires:	boost-devel
BuildRequires:	gomp-devel
%if %{with mem_tests}
BuildRequires:	valgrind
%endif
BuildArch:	noarch

%description
A collection of multi-dimensional data structures and indexing algorithms.

It implements the following data structures:
* segment tree
* flat segment tree
* rectangle set
* point quad tree
* mixed type matrix

#----------------------------------------------------------------------------

%package devel
Summary:	Headers for %{name}
Group:		Development/C++
Requires:	boost-devel

%description devel
Headers for %{name}.

%files devel
%doc AUTHORS CHANGELOG README.md
%{_docdir}/mdds
%{_includedir}/mdds-%{api}
%{_datadir}/pkgconfig/mdds-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
# this is only used in tests
sed -i -e '/^CPPFLAGS/s/-Wall -Os/-Wall %{optflags}/' Makefile* configure*

%build
%configure \
	--enable-openmp
%make


%install
%make_install

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14726 |21mr|meanwhile-1.0.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Lotus Sametime Community Client library
Name:		meanwhile
Version:	1.0.2
Release:	16
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://meanwhile.sourceforge.net/
Source0: 	http://kent.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
Patch0:		meanwhile-1.0.2-fix-str-fmt.patch
Patch1:		http://ie.archive.ubuntu.com/gentoo-portage/net-libs/meanwhile/files/meanwhile-1.0.2-presence.patch
Patch2:		meanwhile-crash.patch
Patch3:		meanwhile-fix-glib-headers.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(glib-2.0)

%description
The heart of the Meanwhile Project is the Meanwhile library, providing the
basic Lotus Sametime session functionality along with the core services;
Presence, Messaging, Conferencing, and Storage. This extensible client
interface allows additional services to be added to a session at runtime,
allowing for simple integration of future service handlers such as
whiteboard, screen-sharing, and file transfer.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library used for Lotus Sametime connectivity
Group:		System/Libraries

%description -n %{libname}
The heart of the Meanwhile Project is the Meanwhile library, providing the
basic Lotus Sametime session functionality along with the core services;
Presence, Messaging, Conferencing, and Storage. This extensible client
interface allows additional services to be added to a session at runtime,
allowing for simple integration of future service handlers such as
whiteboard, screen-sharing, and file transfer.

%files -n %{libname}
%doc AUTHORS ChangeLog README TODO
%{_libdir}/libmeanwhile.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and static libraries for %{name}.
If you would like to develop programs using %{name}, you will need to
install this package.

%files -n %{devname}
%{_includedir}/meanwhile
%{_libdir}/libmeanwhile.so
%{_libdir}/pkgconfig/meanwhile.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for the %{name} library
Group:		Documentation

%description doc
Documentation for the %{name} library.

%files doc
%{_datadir}/doc/%{name}-doc-%{version}/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p0 -b .crash~
%patch3 -p1 -b .glib~

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14727 |21mr|mediainfo-22.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Supplies technical and tag information about a video or audio file
Name:		mediainfo
Version:	22.06
Release:	1
License:	BSD
Group:		Sound
Url:		https://mediaarea.net/en/MediaInfo
Source0:	https://mediaarea.net/download/source/%{name}/%{version}/%{name}_%{version}.tar.bz2
BuildRequires:	dos2unix
BuildRequires:	imagemagick
BuildRequires:	kde5-macros
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(libmediainfo) >= 20.09
BuildRequires:	pkgconfig(libzen) >= 0.4.38
BuildRequires:	pkgconfig(zlib)


%description
MediaInfo supplies technical and tag information about a video or audio file.
What information can I get from MediaInfo?
* General: title, author, director, album, track number, date, duration...
* Video: codec, aspect, fps, bitrate...
* Audio: codec, sample rate, channels, language, bitrate...
* Text: language of subtitle
* Chapters: number of chapters, list of chapters.
What format does MediaInfo support?
DivX, XviD, H263, H.263, H264, x264, ASP, AVC, iTunes, MPEG-1,
MPEG1, MPEG-2, MPEG2, MPEG-4, MPEG4, MP4, M4A, M4V, QuickTime,
RealVideo, RealAudio, RA, RM, MSMPEG4v1, MSMPEG4v2, MSMPEG4v3,
VOB, DVD, WMA, VMW, ASF, 3GP, 3GPP, 3GP2.

What format (container) does MediaInfo support?
* Video: MKV, OGM, AVI, DivX, WMV, QuickTime, Real, MPEG-1,
  MPEG-2, MPEG-4, DVD (VOB) (Codecs: DivX, XviD, MSMPEG4, ASP,
  H.264, AVC...)
* Audio: OGG, MP3, WAV, RA, AC3, DTS, AAC, M4A, AU, AIFF
* Subtitles: SRT, SSA, ASS, SAMI.

%files
%doc Release/ReadMe_CLI_Linux.txt Contrib/CLI_Help.doc
%doc License.html History_CLI.txt
%{_bindir}/mediainfo

#----------------------------------------------------------------------------

%package gui-wx
Summary:	GUI for %{name}
Group:		Sound
Requires:	%{name}-gui-common = %{EVRD}
Provides:	%{name}-gui = %{EVRD}

%description gui-wx
Graphical user interface for %{name}.

%files gui-wx
%doc Release/ReadMe_GUI_Linux.txt
%doc License.html History_GUI.txt
%{_bindir}/%{name}-gui
%{_datadir}/applications/%{name}-gui.desktop
%{_datadir}/apps/konqueror/servicemenus/%{name}-gui.desktop
%{_datadir}/kde4/services/ServiceMenus/%{name}-gui.desktop
%{_kde5_services}/ServiceMenus/%{name}-gui.desktop

#----------------------------------------------------------------------------

%package gui-qt
Summary:	GUI for %{name}
Group:		Sound
Requires:	%{name}-gui-common = %{EVRD}
Provides:	%{name}-gui = %{EVRD}

%description gui-qt
Qt-based graphical user interface for %{name}.

%files gui-qt
%doc License.html
%{_bindir}/%{name}-qt
%{_datadir}/applications/%{name}-qt.desktop

#----------------------------------------------------------------------------

%package gui-common
Summary:	Common files for %{name} GUIs
Group:		Sound
BuildArch:	noarch

%description gui-common
Common files for %{name} GUI packages.

%files gui-common
%doc License.html
%{_datadir}/metainfo/%{name}-gui.metainfo.xml
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/apps/*.svg
%{_datadir}/pixmaps/%{name}.xpm

#----------------------------------------------------------------------------

%prep
%setup -qn MediaInfo

sed -i 's/.$//' *.txt *.html Release/*.txt

find Source -type f -exec chmod 644 {} ';'
chmod 644 *.html *.txt Release/*.txt

#https://fedorahosted.org/FedoraReview/wiki/AutoTools
sed -i 's/AC_PROG_LIBTOOL/LT_INIT/' Project/GNU/*/configure.ac

pushd Project/GNU/CLI
    autoreconf -fiv
    sed -i 's/enable_unicode="$(pkg-config --variable=Unicode libzen)"/enable_unicode=yes/' configure
popd

pushd Project/GNU/GUI
    autoreconf -fiv
    sed -i 's/enable_unicode="$(pkg-config --variable=Unicode libzen)"/enable_unicode=yes/' configure
popd

sed -i 's|TARGET = "mediainfo-gui"|TARGET = "mediainfo-qt"|' Project/QMake/GUI/MediaInfoQt.pro
sed -i 's|-ldl|-ldl -lmediainfo -lzen|' Project/QMake/GUI/MediaInfoQt.pro


%build
# build CLI
pushd Project/GNU/CLI
	%configure --disable-static
	%make
popd

# build GUI
pushd Project/GNU/GUI
	%configure --disable-static
	%make
popd

# build Qt based GUI
pushd Project/QMake/GUI
	%qmake_qt5
	%make
popd


%install
pushd Project/GNU/CLI
	%makeinstall_std
popd

pushd Project/GNU/GUI
	%makeinstall_std
popd

pushd Project/QMake/GUI
	install -m 755 %{name}-qt %{buildroot}%{_bindir}
popd

# Provide more icons
install -Dm 644 Source/Resource/Image/MediaInfo.png \
	%{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png

for i in 16 32 48 64 128 512; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/
	convert -scale ${i} Source/Resource/Image/MediaInfoBig.png %{buildroot}%{_datadir}/icons/hicolor/${i}x${i}/apps/%{name}.png
done

# Provide menu-entry for Qt GUI
mkdir -p %{buildroot}/%{_datadir}/applications/
cat > %{buildroot}/%{_datadir}/applications/%{name}-qt.desktop << EOF
[Desktop Entry]
Type=Application
Name=MediaInfo
Comment=Supplies technical and tag information about a video or audio file
Icon=%{name}
Exec=%{name}-qt %f
Terminal=false
Categories=AudioVideo;AudioVideoEditing;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14728 |21mr|mediastreamer-5.1.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 11
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Audio/video real-time streaming library
Name:		mediastreamer
Version:	5.1.55
Release:	1
License:	GPLv2
Group:		Communications
Url:		https://github.com/BelledonneCommunications/mediastreamer2
Source0:	https://github.com/BelledonneCommunications/mediastreamer2/archive/%{version}.tar.gz?/%{name}2-%{version}.tar.gz
Patch0:		cmake-config-location.patch
Patch1:		install-pkgconfig.patch
BuildRequires:	gettext
BuildRequires:	cmake
BuildRequires:	vim-common
BuildRequires:	ffmpeg-devel
BuildRequires:	gettext-devel
BuildRequires:	mbedtls-devel
BuildRequires:	gsm-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libsrtp2)
BuildRequires:	pkgconfig(libbzrtp)
BuildRequires:	pkgconfig(libbcg729)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(ortp)
BuildRequires:	pkgconfig(spandsp)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(zxing)
# to match upstream name
Provides:	%{name}2 = %{EVRD}

%description
mediastreamer is GPL licensed library and tools to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the oRTP library.

%files
%doc LICENSE* README.md
%{_bindir}/mediastream
%{_bindir}/mkvstream
%{_bindir}/mediastreamer2_tester
%{_datadir}/images
%{_datadir}/mediastreamer2_tester/scenarios/*.pcap*
%{_datadir}/mediastreamer2_tester/sounds/*.wav
%{_datadir}/mediastreamer2_tester/sounds/*.mkv
%{_datadir}/mediastreamer2_tester/sounds/*.mka
%{_datadir}/mediastreamer2_tester/raw/h265-iframe
%{_datadir}/mediastreamer2_tester/raw/h265-parameter-sets-frame

#----------------------------------------------------------------------

%package -n %{libname}
Summary:	Audio/video real-time streaming library
Group:		System/Libraries

%description -n %{libname}
mediastreamer is a GPL licensed library to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the oRTP library.
Base library.

%files -n %{libname}
%{_libdir}/libmediastreamer.so.%{major}*

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers, libraries and docs for the mediastreamer2 library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# mediastreamer was broken out from linphone
Conflicts:	linphone-devel < 3.12
# to match upstream name and Fedora style
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}2-devel = %{EVRD}

%description -n %{devname}
mediastreamer is a GPL licensed library to make audio and video
real-time streaming and processing. Written in pure C, it is based
upon the ortp library.

This package contains header files and development libraries needed to
develop programs using the mediastreamer library.

%files -n %{devname}
%doc LICENSE* README.md
%{_includedir}/mediastreamer2/
%{_libdir}/libmediastreamer.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/*/*
%{_includedir}/OpenGL

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}2-%{version}

%build
# Fix linking on x86_64
export LDFLAGS="$LDFLAGS -lXext"
%cmake \
	-DENABLE_STATIC:BOOL=NO \
	-DENABLE_STRICT:BOOL=NO
%make

%install
%makeinstall_std -C build

# remove unwanted docs, generated if doxygen is installed
rm -rf %{buildroot}%{_docdir}/mediastreamer*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14729 |21mr|memcached-1.6.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	High-performance memory object caching system
Name:		memcached
Version:	1.6.23
Release:	1
License:	BSD
Group:		System/Servers
Url:		http://memcached.org
Source0:	http://www.memcached.org/files/%{name}-%{version}.tar.gz
Source1:	%{name}-tmpfiles.conf
Source2:	memcached.sysconfig
Source3:	memcached.logrotate
Source4:	memcached.sysusers.conf
BuildRequires:	doxygen
BuildRequires:	cyrus-sasl
BuildRequires:	sasl-plug-plain
BuildRequires:	sasl-plug-crammd5
# Required by test suite
BuildRequires:	sasl-plug-sasldb
BuildRequires:	xsltproc
BuildRequires:	sasl-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libevent)
Requires(post):	/bin/systemd-sysusers
Requires:	cyrus-sasl
Requires:	sasl-plug-plain
Requires:	sasl-plug-crammd5

%description
memcached is a flexible memory object caching daemon designed to alleviate
database load in dynamic web applications by storing objects in memory. It's
based on libevent to scale to any size needed, and is  specifically optimized
to avoid swapping and always use non-blocking I/O.

%files
%doc AUTHORS* COPYING ChangeLog NEWS doc/CONTRIBUTORS doc/protocol.txt doc/readme.txt
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_bindir}/%{name}-tool
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}*.service
%{_sysusersdir}/memcached.conf

%post
%sysusers_create memcached.conf
%tmpfiles_create %{name}.conf
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}

#---------------------------------------------------------------------------

%package devel
Summary:	Files needed for development using memcached protocol
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
Install memcached-devel if you are developing C/C++ applications that require
access to the memcached binary include files.

%files devel
%doc README.md
%dir %{_includedir}/memcached
%{_includedir}/memcached/*.h

#---------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i -e 's,-Werror,,g' configure.ac
autoreconf -fi
#./autogen.sh

%build
%serverbuild
%configure --enable-sasl
%make_build
make docs

#%%check
#export PATH="$PATH:/sbin:/usr/sbin"
#make test

%install
%make_install

install -m644 %{SOURCE1} -D %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -m644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -m755 scripts/%{name}-tool %{buildroot}%{_bindir}/%{name}-tool

install -m644 scripts/%{name}@.service -D %{buildroot}%{_unitdir}/%{name}@.service
install -m644 scripts/%{name}.service -D %{buildroot}%{_unitdir}/%{name}.service

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/memcached.conf


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14730 |21mr|memoryfilesystem-0.6.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           memoryfilesystem
Version:        0.6.7
Release:        8
Summary:        An in memory implementation of a JSR-203 file system
License:        MIT
URL:            https://github.com/marschall/%{name}
Source0:        https://github.com/marschall/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  maven-plugin-bundle maven-surefire-plugin
BuildRequires:  hamcrest easymock springframework-test junit
BuildRequires:  springframework-context logback jcl-over-slf4j

%description
An in memory implementation of a JSR-203 file system

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides API documentation for %{name}.

%prep
%setup -q

%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin com.github.marschall:jdeps-maven-plugin
%pom_remove_plugin org.jboss.jandex:jandex-maven-plugin

%pom_remove_dep com.github.marschall:zipfilesystem-standalone
%pom_remove_dep org.openjdk.jol:jol-core

# maven-jandex-plugin is currently not packaged
sed -i '/jandex.idx/d' pom.xml
# remove test which need jol-core and zipfilesystem-standalone
rm -rf ./src/test/java/com/github/marschall/memoryfilesystem/MemoryFileTest.java
rm -rf ./src/test/java/com/github/marschall/memoryfilesystem/ZipFileSystemInteropabilityTest.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license src/main/resources/LICENSE

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14731 |21mr|memphis-0.2.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api		0.2
%define gir_major	0.2
%define major		0
%define libname		%mklibname %{name} %{api} %{major}
%define devname		%mklibname -d %{name}
%define girname		%mklibname %{name}-gir %{gir_major}

Summary:	Map rendering application and library
Name:		memphis
Version:	0.2.3
Release:	13
Source0:	http://wenner.ch/files/public/mirror/memphis/%{name}-%{version}.tar.gz
License:	LGPLv2+
Group:		System/Libraries
Url:		https://trac.openstreetmap.ch/trac/memphis/
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	expat-devel

%description
Memphis is a map-rendering application and a library for OpenStreetMap
written in C using eXpat, Cairo and GLib.

Features:
 * Parsing of nodes and ways from a OSM XML export file.
 * XML file format to define drawing rules.
 * Dynamic adaptable drawing rules.
 * Cairo rendering engine.
 * GObject based API. 

%package -n %{libname}
Summary:	Map rendering library
Group:		System/Libraries
Requires:	%{name} = %{version}-%{release}

%description -n %{libname}
Libmemphis is a map-rendering library for OpenStreetMap
written in C using eXpat, Cairo and GLib.

Features:
 * Parsing of nodes and ways from a OSM XML export file.
 * XML file format to define drawing rules.
 * Dynamic adaptable drawing rules.
 * Cairo rendering engine.
 * GObject based API. 

%package -n %{devname}
Summary:	Map rendering library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description -n %{devname}
Libmemphis is a map-rendering library for OpenStreetMap
written in C using eXpat, Cairo and GLib.

Features:
 * Parsing of nodes and ways from a OSM XML export file.
 * XML file format to define drawing rules.
 * Dynamic adaptable drawing rules.
 * Cairo rendering engine.
 * GObject based API. 

%package -n %{girname}
Summary:        GObject Introspection interface description for %{name}
Group:          System/Libraries
Requires:       %{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%prep
%setup -q
%apply_patches

%build
%configure --disable-static
%make

%install
%makeinstall_std

#we don't want these
rm -f %{buildroot}%{_libdir}/*.la


%files
%{_datadir}/%{name}

%files -n %{libname}
%doc README AUTHORS ChangeLog
%{_libdir}/lib%{name}-%{api}.so.%{major}*

%files -n %{girname}
%{_libdir}/girepository-1.0/Memphis-%{gir_major}.typelib

%files -n %{devname}
%doc ChangeLog
%doc %{_datadir}/gtk-doc/html/lib%{name}
%{_libdir}/lib%{name}-%{api}.so
%{_includedir}/lib%{name}-%{api}/
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_datadir}/gir-1.0/Memphis-%{gir_major}.gir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14732 |21mr|memtest86+-6.00-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Debug package is empty and rpmlint rejects build
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%ifarch %{ix86}
%global arch build32
%else
%global arch build64
%endif

Summary:	A stand alone memory test for i386 architecture systems
Name:		memtest86+
Version:	6.00
Release:	2
License:	GPL
URL:		http://www.memtest.org
Source0:	https://github.com/memtest86plus/memtest86plus/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	20_memtest86
Group:		System/Kernel and hardware
Requires:	initscripts

ExclusiveArch:	%{ix86} x86_64
%rename	memtest86

%description
Memtest86+ is a thorough stand-alone memory test for x86 and x86-64
architecture computers. BIOS based memory tests are only a quick
check and often miss many of the failures that are detected by
Memtest86+.

%prep
%autosetup -p1 -n memtest86plus-%{version}

%build
pushd %{arch}
%make
popd

%install
install -m644 %{arch}/memtest.bin -D %{buildroot}/boot/memtest86.bin
# needed?
#install -m644 %{arch}/memtest.efi -D %{buildroot}/boot/memtest86.efi

mkdir -p %{buildroot}/%{_sysconfdir}/grub.d
install -D -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/grub.d/

%post
if [ -d /boot/efi/EFI ]; then
    mkdir -p /boot/efi/EFI/memtest86
    cp /boot/memtest86.bin /boot/efi/EFI/memtest86/bootx64.efi
fi

%preun
if [ -f /boot/memtest86.bin -a -f /boot/efi/EFI/memtest86/bootx64.efi ]; then
    if cmp -s /boot/memtest86.bin /boot/efi/EFI/memtest86/bootx64.efi; then
	rm /boot/efi/EFI/memtest86/bootx64.efi
    fi
fi

%files
%doc README.md
/boot/memtest86.bin
%{_sysconfdir}/grub.d/20_memtest86

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14733 |21mr|memtester-4.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

Summary:	Memory tester
Name:		memtester
Version:	4.5.1
Release:	2
License:	GPLv2+
Group:		Monitoring
Url:		http://pyropus.ca/software/memtester/
Source0:	http://pyropus.ca/software/memtester/old-versions/%{name}-%{version}.tar.gz

%description
Memtest is a utility for testing the memory subsystem in a computer to
determine if it is faulty.

%files
%doc BUGS CHANGELOG COPYING README.tests README
%{_bindir}/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q
echo "cc %{optflags} -DPOSIX -D_POSIX_C_SOURCE=200809L -D_FILE_OFFSET_BITS=64 -DTEST_NARROW_WRITES -c" > conf-cc
echo "cc %{ldflags}" > conf-ld

%build
%make

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 memtester %{buildroot}%{_bindir}

mkdir -p %{buildroot}%{_mandir}/man8
install -m 644 memtester.8 %{buildroot}%{_mandir}/man8/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14734 |21mr|menu-cache-1.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A library to speed up freedesktop.org application menus
Name:		menu-cache
Version:	1.1.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxde/menu-cache
Source0:	https://github.com/lxde/menu-cache/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libfm-extra)

%description
Libmenu-cache is a library creating and utilizing caches to speed up
freedesktop.org application menus.
It can be used as a replacement of libgnome-menu of gnome-menus.

Advantages:
1. Faster loading of menus.
2. Ease of use. (API is very similar to that of libgnome-menu)
3. Lightweight runtime library. (Parsing of the menu definition files
   are done by menu-cache-gen when the menus are really changed.)
4. Less unnecessary and complicated file monitoring.
5. Greatly reduced disk I/O.

%files
%doc AUTHORS COPYING README
%{_libexecdir}/menu-cache*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
This package contains shared library for %{name}.

%files -n %{libname}
%doc README
%{_libdir}/libmenu-cache.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Contains development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc README
%{_includedir}/%{name}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure \
	--disable-static \
	--without-gtk
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14735 |21mr|menu-messages-2011.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define GTKMDKDATE	20091029
%define MENUDATE	20100829

Summary:	Localization files for Menu system
Name:		menu-messages
Version:	2011.0
Release:	12
License:	GPL
Group:		System/Base
# fwang: see http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/menu-messages/trunk/
# generated by `make tarball`
Source0:	%{name}-%{MENUDATE}.tar.lzma
Source1:	gtk+mdk-%{GTKMDKDATE}.tar.bz2
Patch0:		menu-messages-szi.patch
BuildRequires:	gettext
Provides:	mdk-menu-messages = %{version}-%{release}
BuildArch:	noarch

%description
This package includes that translations of the main menu used by the
different desktops and window managers of the distribution;
as well as translations used by specifically added features.

%files -f %{name}.lang
%defattr(-,root,root,0755)

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name} -a 1
%patch0 -p1

%build

%install
mkdir -p %{buildroot}%{_datadir}/locale

#make po_files
for i in ./*.po
do
  langdir="%{buildroot}%{_datadir}/locale/`basename ${i} .po`/LC_MESSAGES/"
  mkdir -p ${langdir}
  msgfmt -o	${langdir}/menu-messages.mo ${i}
done

# gtk+mdk files
for i in GtkMdkWidgets/*.po
do
  langdir="%{buildroot}%{_datadir}/locale/`basename ${i} .po`/LC_MESSAGES/"
  mkdir -p ${langdir}
  msgfmt -o	${langdir}/gtk+mdk.mo ${i}
done

%find_lang %{name} gtk+mdk %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14736 |21mr|mercurial-5.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@


Summary:	A fast, lightweight distributed source control management system
Name:		mercurial
Version:	5.9.2
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://www.selenic.com/mercurial/
Source0:	https://www.mercurial-scm.org/release/%{name}-%{version}.tar.gz
Patch100:	e2k-disable-optimize.patch
BuildRequires:	asciidoc
BuildRequires:	xmlto
%if %{mdvver} >= 201910
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-docutils
%else
BuildRequires:	pkgconfig(python)
BuildRequires:	python-docutils
%endif
Provides:	hg = %{EVRD}
#define    _use_internal_dependency_generator 1

%description
Mercurial is a fast, lightweight source control management system
designed for efficient handling of very large distributed projects.

%files -f %{name}.files
%doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
%doc %attr(644,root,root) contrib/*.svg
%dir %{_sysconfdir}/mercurial
%dir %{_sysconfdir}/mercurial/hgrc.d
%if %{mdvver} >= 201910
%{py3_platsitedir}/mercurial/__modulepolicy__.py
%{py3_platsitedir}/mercurial/__pycache__/__modulepolicy__.*.pyc
%else
%{py2_platsitedir}/mercurial/__modulepolicy__.py
%{py2_platsitedir}/mercurial/__pycache__/__modulepolicy__.*.pyc
%endif
%{_mandir}/man*/*
%{_sysconfdir}/bash_completion.d/mercurial.sh
%{_datadir}/zsh/site-functions/_mercurial
%{_datadir}/emacs/site-lisp/*.el
%{_datadir}/xemacs/site-packages/lisp/*.el
%{_bindir}/hgk
%{_bindir}/hg-ssh

#----------------------------------------------------------------------------

%prep
%setup -q
%ifarch %{e2k}
%patch100 -p1
%endif

%build
%make all

%install
%if %{mdvver} >= 201910
PYTHONDONTWRITEBYTECODE= python3 setup.py install -O1 --root %{buildroot} --prefix %{_prefix} --record=%{name}.files
%else
PYTHONDONTWRITEBYTECODE= %__python setup.py install -O1 --root %{buildroot} --prefix %{_prefix} --record=%{name}.files
%endif
make install-doc DESTDIR=%{buildroot} MANDIR=%{_mandir}

install contrib/hgk          %{buildroot}%{_bindir}
install contrib/hg-ssh       %{buildroot}%{_bindir}

bash_completion_dir=%{buildroot}%{_sysconfdir}/bash_completion.d
mkdir -p $bash_completion_dir
install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh

zsh_completion_dir=%{buildroot}%{_datadir}/zsh/site-functions
mkdir -p $zsh_completion_dir
install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial

lisp_dir=%{buildroot}%{_datadir}/emacs/site-lisp
mkdir -p $lisp_dir
install -m 644 contrib/mercurial.el $lisp_dir
install -m 644 contrib/mq.el $lisp_dir

xlisp_dir=%{buildroot}%{_datadir}/xemacs/site-packages/lisp
mkdir -p $xlisp_dir
install -m 644 contrib/mercurial.el $xlisp_dir
install -m 644 contrib/mq.el $xlisp_dir

mkdir -p %{buildroot}%{_sysconfdir}/mercurial/hgrc.d

%if %{mdvver} >= 201910
# Versionize shebangs
sed '1 s,^.*$,#!%__python3,' -i %{buildroot}%{_bindir}/{hg,hg-ssh}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14737 |21mr|merkuro-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Kalendar
Name:		merkuro
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/%{name}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5calendarsupport-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5eventviews-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5pimcommonakonadi-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5Location)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	kirigami-addons-devel
Requires:	akonadi-calendar-tools
Requires:	kirigami-addons
Requires:	plasma5-kdepim-addons
Requires:	plasma5-kdepim-runtime
Obsoletes:	kalendar < 23.07.80

%description
Plasma 5 Kalendar is a Kirigami-based calendar
and task management application that uses Akonadi.

%files -f %{name}.lang
%{_kde5_bindir}/%{name}-calendar
%{_kde5_bindir}/%{name}-contact
%{_kde5_bindir}/%{name}-mail
%{_kde5_applicationsdir}/org.kde.merkuro.calendar.desktop
%{_kde5_applicationsdir}/org.kde.merkuro.contact.desktop
%{_kde5_applicationsdir}/org.kde.merkuro.mail.desktop
%{_kde5_datadir}/qlogging-categories5/merkuro.categories
%{_kde5_datadir}/qlogging-categories5/akonadi.quick.categories
%{_kde5_datadir}/qlogging-categories5/merkuro.contact.categories
%{_kde5_qmldir}/org/kde/akonadi
%{_kde5_qmldir}/org/kde/merkuro
%{_kde5_iconsdir}/hicolor/128x128/apps/org.kde.merkuro.calendar.png
%{_kde5_iconsdir}/hicolor/128x128/apps/org.kde.merkuro.contact.png
%{_kde5_iconsdir}/hicolor/128x128/apps/org.kde.merkuro.mail.png
%{_kde5_iconsdir}/hicolor/256x256/apps/org.kde.merkuro.calendar.png
%{_kde5_iconsdir}/hicolor/256x256/apps/org.kde.merkuro.contact.png
%{_kde5_iconsdir}/hicolor/256x256/apps/org.kde.merkuro.mail.png
%{_kde5_iconsdir}/hicolor/48x48/apps/org.kde.merkuro.calendar.png
%{_kde5_iconsdir}/hicolor/48x48/apps/org.kde.merkuro.contact.png
%{_kde5_iconsdir}/hicolor/48x48/apps/org.kde.merkuro.mail.png
%{_appdatadir}/org.kde.merkuro.calendar.metainfo.xml
%{_appdatadir}/org.kde.merkuro.contact.metainfo.xml
%{_appdatadir}/org.kde.merkuro.mail.metainfo.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14738 |21mr|mesa-23.3.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (cg) Cheater...
%define Werror_cflags %{nil}
# use separate, newer LLVM, to avoid updating system one
%define llvm_ver 17

%if %{mdvver} <= 202115
%global __provides_exclude ^devel\\(libLLVM-.++
%global __requires_exclude ^devel\\(libLLVM-.++
%endif

# (aco) Needed for the dri drivers
%define _disable_ld_no_undefined 1

# Example: symlink libXvMCr600.so -> libXvMCr600.so.1.0.0 and the file
# libXvMCr600.so.1.0.0 are in the same package lib(64)dri-drivers-radeon,
# plus files in /usr/lib64/{dri,gallium-pipe,<...>}/ must not be processed,
# avoid pulling devel() dependencies
%global __develgen_exclude_path ^%{_libdir}/((libXvMCr600|libXvMCnouveau|libvulkan_radeon|libvulkan_intel|libvulkan_lvp|libintel_noop_drm_shim).so$|.*/.*)

# (tpg) starting version 11.1.1 this may fully support OGL 4.1
%define opengl_ver 4.6
# change me if you want release-candidate
%define relc %{nil}

%bcond_with gcc
%bcond_without llvm
%if %{mdvver} == 202310
%bcond_with alternative_llvm
%else
%bcond_without alternative_llvm
%endif
# undefined reference to getPollyPluginInfo()'
# bug of llvm or mesa
%bcond_without opencl

%global with_vulkan_hw 1
%ifarch %{armx} %{riscv}
%global with_etnaviv   1
%global with_lima      1
%global with_vc4       1
%global with_v3d       1
%global with_freedreno 1
%global with_kmsro     1
%global with_panfrost  1
%global with_tegra     1
%global with_svga      1
%global platform_vulkan broadcom,freedreno,panfrost,amd,virtio,imagination-experimental
%endif
%ifarch %{x86_64} %{ix86}
%global with_crocus 1
%global with_i915   1
%global with_iris   1
%global platform_vulkan intel,amd,virtio
%endif
%ifarch %{e2k}
%global platform_vulkan amd,virtio
%endif
%global with_r300 1
%global with_r600 1
%global with_radeonsi 1
%global with_vmware 1

%global vulkan_drivers swrast,%{?platform_vulkan}

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}
%bcond_with bootstrap
%bcond_without vdpau
%bcond_without va
%bcond_without glvnd
%bcond_without egl
%ifarch %{ix86} %{x86_64}
%bcond_without intel
%else
%bcond_with intel
%endif
# Sometimes it's necessary to disable r600 while bootstrapping
# an LLVM change (such as the r600 -> AMDGPU rename)
%bcond_without r600

%if "%{relc}" != ""
%define vsuffix -rc%{relc}
%else
%define vsuffix %{nil}
%endif

%define osmesamajor 8
%define libosmesa %mklibname osmesa %{osmesamajor}
%define devosmesa %mklibname osmesa -d

%define eglmajor 0
%define eglname EGL_mesa
%define libegl %mklibname %{eglname} %{eglmajor}
%define devegl %mklibname %{eglname} -d

%define glmajor 0
%define glname GLX_mesa
%define libgl %mklibname %{glname} %{glmajor}
%define devgl %mklibname GL -d

%define devvulkan %mklibname vulkan-intel -d

%define glesv1major 1
%define glesv1name GLESv1_CM
%define libglesv1 %mklibname %{glesv1name} %{glesv1major}
%define devglesv1 %mklibname %{glesv1name} -d

%define glesv2major 2
%define glesv2name GLESv2
%define libglesv2 %mklibname %{glesv2name}_ %{glesv2major}
%define devglesv2 %mklibname %{glesv2name} -d

%define devglesv3 %mklibname glesv3 -d

%define d3dmajor 1
%define d3dname d3dadapter9
%define libd3d %mklibname %{d3dname} %{d3dmajor}
%define devd3d %mklibname %{d3dname} -d

%define glapimajor 0
%define glapiname glapi
%define libglapi %mklibname %{glapiname} %{glapimajor}
%define devglapi %mklibname %{glapiname} -d

%define dridrivers %mklibname dri-drivers
%define vdpaudrivers %mklibname vdpau-drivers

%define gbmmajor 1
%define gbmname gbm
%define libgbm %mklibname %{gbmname} %{gbmmajor}
%define devgbm %mklibname %{gbmname} -d

%define xatrackermajor 2
%define xatrackername xatracker
%define libxatracker %mklibname %xatrackername %{xatrackermajor}
%define devxatracker %mklibname %xatrackername -d

%define swravxmajor 0
%define swravxname swravx
%define libswravx %mklibname %swravxname %{swravxmajor}

%define swravx2major 0
%define swravx2name swravx2
%define libswravx2 %mklibname %swravx2name %{swravx2major}

%define clmajor 1
%define clname mesaopencl
%define libcl %mklibname %clname %clmajor
%define devcl %mklibname %clname -d

%define mesasrcdir %{_prefix}/src/Mesa/
%define driver_dir %{_libdir}/dri

%define short_ver %(if [ `echo %{version} |cut -d. -f3` = "0" ]; then echo %{version} |cut -d. -f1-2; else echo %{version}; fi)

Summary:	OpenGL %{opengl_ver} compatible 3D graphics library
Name:		mesa
Version:	23.3.6
Release:	2
Group:		System/Libraries
License:	MIT
Url:		http://www.mesa3d.org
Source0:	https://mesa.freedesktop.org/archive/mesa-%{version}%{vsuffix}.tar.xz
Source3:	make-git-snapshot.sh
Source5:	mesa-driver-install
Source100:	%{name}.rpmlintrc

%define dricoremajor 1
%define dricorename dricore
%define devdricore %mklibname %{dricorename} -d
%define libdricore %mklibname %{dricorename} 9

Obsoletes:	%{libdricore} < %{EVRD}
Obsoletes:	%{devdricore} < %{EVRD}
Obsoletes:	%{name}-xorg-drivers < %{EVRD}
Obsoletes:	%{name}-xorg-drivers-radeon < %{EVRD}
Obsoletes:	%{name}-xorg-drivers-nouveau < %{EVRD}
Patch2:		baikal-vdu.patch
# disable rtti check globall
# seems to be totally broken on e2k
# and other arches
Patch3:		disable_rtti_check.patch
Patch4:		fix-werrorE2K.patch
# https://gitlab.freedesktop.org/mesa/mesa/-/issues/9498
%if %{mdvver} <= 202115
Patch5:		Build-broken-again-on-old-ish-Python-versions.patch
%endif
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	gccmakedep
BuildRequires:	python3-libxml2
BuildRequires:	makedepend
BuildRequires:	meson
BuildRequires:	lm_sensors-devel
%if %{with llvm}
%if !%{with alternative_llvm}
BuildRequires:	llvm-devel
BuildRequires:	clang-devel
%else
BuildRequires: llvm%{llvm_ver}
%endif
%endif
BuildRequires:	pkgconfig(expat)
BuildRequires:	elfutils-devel
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
%endif
%ifarch %{ix86}
BuildRequires:	libatomic-devel
%endif
BuildRequires:	python3-mako
%ifnarch %{e2k} %{riscv}
BuildRequires:	rust-packaging
%endif
BuildRequires:	pkgconfig(libdrm) >= 2.4.56
BuildRequires:	pkgconfig(libudev) >= 186
%if %{with glvnd}
BuildRequires:	pkgconfig(libglvnd)
%endif
%ifnarch %{armx} %{riscv} %{e2k}
# needed only for intel binaries
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gtk+-3.0)
%endif
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(x11) >= 1.3.3
BuildRequires:	pkgconfig(xdamage) >= 1.1.1
BuildRequires:	pkgconfig(xext) >= 1.1.1
BuildRequires:	pkgconfig(xfixes) >= 4.0.3
BuildRequires:	pkgconfig(xi) >= 1.3
BuildRequires:	pkgconfig(xmu) >= 1.0.3
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xt) >= 1.0.5
BuildRequires:	pkgconfig(xxf86vm) >= 1.1.0
BuildRequires:	pkgconfig(xshmfence) >= 1.1
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xcb-dri3)
BuildRequires:	pkgconfig(xcb-present)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xvmc)
#BuildRequires:	pkgconfig(valgrind)
# for libsupc++.a
BuildRequires:	stdc++-static-devel
# (tpg) with openssl a steam crashes
# Program received signal SIGSEGV, Segmentation fault.
# 0xf63db8d5 in OPENSSL_ia32_cpuid () from /lib/libcrypto.so.1.0.0
# crypto is needed for shader cache which uses the SHA-1
# (tpg) strting from 2019-04-15 and openssl-1.1.1b-5 this is fixed
BuildRequires:	pkgconfig(libssl)
%if %{with opencl}
BuildRequires:	pkgconfig(libclc)
BuildRequires:	pkgconfig(LLVMSPIRVLib)
BuildRequires:	spirv-tools
%endif
BuildRequires:	pkgconfig(xvmc)
%if %{with vdpau}
BuildRequires:	pkgconfig(vdpau) >= 0.4.1
%endif
%if %{with va}
BuildRequires:	pkgconfig(libva) >= 0.31.0
%endif
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	glslang
BuildRequires:	patchelf

# package mesa
Requires:	libGL.so.1%{_arch_tag_suffix}
# be a meta-package too, but with arch-independent name (without lib64 prefix)
Recommends:	%{dridrivers}%{_isa} = %{EVRD}

%description
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.

%files
%doc docs/README.*
%{_datadir}/drirc.d

%package -n %{dridrivers}
Summary:	Mesa DRI drivers
Group:		System/Libraries
Requires:	%{dridrivers}-swrast = %{EVRD}
Requires:	%{dridrivers}-vmwgfx = %{EVRD}
Requires:	%{dridrivers}-virtio = %{EVRD}
Requires:	%{dridrivers}-zink = %{EVRD}
Requires:	%{dridrivers}-virtio = %{EVRD}
%if %{with r600}
Requires:	%{dridrivers}-radeon = %{EVRD}
%endif
%ifarch %{ix86} %{x86_64}
Requires:	%{dridrivers}-intel = %{EVRD}
%endif
Requires:	%{dridrivers}-nouveau = %{EVRD}
%ifarch %{armx}
Requires:	%{dridrivers}-vc4 = %{EVRD}
Requires:	%{dridrivers}-v3d = %{EVRD}
Requires:	%{dridrivers}-etnaviv = %{EVRD}
Requires:	%{dridrivers}-freedreno = %{EVRD}
Requires:	%{dridrivers}-powervr = %{EVRD}
Requires:	%{dridrivers}-baikal = %{EVRD}
Requires:	%{dridrivers}-tegra = %{EVRD}
Requires:	%{dridrivers}-lima = %{EVRD}
Requires:	%{dridrivers}-panfrost = %{EVRD}
Requires:	%{dridrivers}-kmsro = %{EVRD}
%endif
Provides:	dri-drivers = %{EVRD}
Provides:	mesa-dri-drivers = %{EVRD}
Obsoletes:	%{_lib}XvMCgallium1 < %{EVRD}

%description -n %{dridrivers}
DRI drivers.

%files -n %{dridrivers}

#----------------------------------------------------------------------------

%package -n %{dridrivers}-radeon
Summary:	DRI Drivers for AMD/ATI Radeon graphics chipsets
Group:		System/Libraries

%description -n %{dridrivers}-radeon
DRI drivers for AMD/ATI Radeon graphics chipsets

%files -n %{dridrivers}-radeon
%{_bindir}/mesa-overlay-control.py
%{_libdir}/libVkLayer_MESA_device_select.so
%{_libdir}/libVkLayer_MESA_overlay.so
%{_datadir}/vulkan/implicit_layer.d/*.json
%{_datadir}/vulkan/explicit_layer.d/*.json
%{_libdir}/dri/r?00_dri.so
%{_libdir}/dri/radeonsi_dri.so
%{_libdir}/libvulkan_radeon.so
%{_datadir}/vulkan/icd.d/radeon_icd.*.json
%if %{with opencl}
%{_libdir}/gallium-pipe/pipe_r?00.so
%{_libdir}/gallium-pipe/pipe_radeonsi.so
%endif
%if %{with r600}
%if %{with va}
%{_libdir}/dri/r600_drv_video.so
%endif
%if %{with va}
%{_libdir}/dri/radeonsi_drv_video.so
%endif
%{_libdir}/dri/virtio_gpu_drv_video.so
%endif

#----------------------------------------------------------------------------

%package -n %{dridrivers}-vmwgfx
Summary:	DRI Drivers for VMWare guest OS
Group:		System/Libraries

%description -n %{dridrivers}-vmwgfx
DRI drivers for VMWare guest Operating Systems.

%files -n %{dridrivers}-vmwgfx
%{_libdir}/dri/vmwgfx_dri.so
%if %{with opencl}
%{_libdir}/gallium-pipe/pipe_vmwgfx.so
%endif

#----------------------------------------------------------------------------

%ifarch %{ix86} %{x86_64}
%package -n %{dridrivers}-intel
Summary:	DRI Drivers for Intel graphics chipsets
Group:		System/Libraries
Suggests:	libvdpau-va-gl

%description -n %{dridrivers}-intel
DRI drivers for Intel graphics chipsets

%files -n %{dridrivers}-intel
%{_libdir}/dri/i9?5_dri.so
%{_libdir}/dri/iris_dri.so
%{_libdir}/libvulkan_intel.so
%{_datadir}/vulkan/icd.d/intel_icd.*.json
# Crocus is for gen4-gen7
%{_libdir}/dri/crocus_dri.so
%if %{with opencl}
%{_libdir}/gallium-pipe/pipe_crocus.so
%{_libdir}/gallium-pipe/pipe_i915.so
%endif

#----------------------------------------------------------------------------

%package -n %{dridrivers}-iris
Summary:	More modern DRI Drivers for Intel graphics chips
Group:		System/Libraries

%description -n %{dridrivers}-iris
A modern driver for Intel Gen 8+ graphics chipsets.

This driver supports GPUs also supported by %{dridrivers}-intel.
The -intel driver is (for now) more stable.

%files -n %{dridrivers}-iris
%{_libdir}/dri/iris_dri.so
%if %{with opencl}
%{_libdir}/gallium-pipe/pipe_iris.so
%endif
%endif

#----------------------------------------------------------------------------

%package -n %{dridrivers}-nouveau
Summary:	DRI Drivers for NVIDIA graphics chipsets using the Nouveau driver
Group:		System/Libraries

%description -n %{dridrivers}-nouveau
DRI drivers for Nvidia graphics chipsets

%files -n %{dridrivers}-nouveau
%{_libdir}/dri/nouveau*_dri.so
%if %{with va}
%{_libdir}/dri/nouveau_drv_video.so
%endif
%if %{with opencl}
%{_libdir}/gallium-pipe/pipe_nouveau.so
%endif

#----------------------------------------------------------------------------

%package -n %{dridrivers}-swrast
Summary:	DRI Drivers for software rendering
Group:		System/Libraries
Obsoletes:	%{libswravx} < %{EVRD}
Obsoletes:	%{libswravx2} < %{EVRD}

%description -n %{dridrivers}-swrast
Generic DRI driver using CPU rendering

%files -n %{dridrivers}-swrast
%{_libdir}/dri/swrast_dri.so
%{_libdir}/dri/kms_swrast_dri.so
%{_libdir}/libvulkan_lvp.so
%if %{with opencl}
%{_libdir}/gallium-pipe/pipe_swrast.so
%endif

#----------------------------------------------------------------------------

%package -n %{dridrivers}-swrast-json
Summary:	DRI Drivers for software rendering
Group:		System/Libraries

%description -n %{dridrivers}-swrast-json
Generic DRI driver using CPU rendering

%files -n %{dridrivers}-swrast-json
%{_datadir}/vulkan/icd.d/lvp_icd.*.json

#----------------------------------------------------------------------------

%package -n %{dridrivers}-zink
Summary:	DRI Drivers for Zink
Group:		System/Libraries

%description -n %{dridrivers}-zink
DRI drivers for Zink devices

%files -n %{dridrivers}-zink
%{_libdir}/dri/zink_dri.so

#----------------------------------------------------------------------------

%package -n %{dridrivers}-virtio
Summary:	DRI Drivers for virtual environments
Group:		System/Libraries

%description -n %{dridrivers}-virtio
Generic DRI driver for virtual environments.

%files -n %{dridrivers}-virtio
%{_libdir}/dri/virtio_gpu*.so
%{_libdir}/libvulkan_virtio.so
%{_datadir}/vulkan/icd.d/virtio_icd.*.json

#----------------------------------------------------------------------------

%ifarch %{armx} %{riscv}
%package -n %{dridrivers}-freedreno
Summary:	DRI Drivers for Adreno graphics chipsets
Group:		System/Libraries

%description -n %{dridrivers}-freedreno
DRI drivers for Adreno graphics chipsets

%files -n %{dridrivers}-freedreno
%{_libdir}/dri/kgsl_dri.so
%{_libdir}/dri/msm_dri.so
%{_libdir}/libvulkan_freedreno.so
%{_datadir}/vulkan/icd.d/freedreno_icd.*.json
%if %{with opencl}
%{_libdir}/gallium-pipe/pipe_msm.so
%endif

#----------------------------------------------------------------------------

%package -n %{dridrivers}-powervr
Summary:	dri drivers for PowerVR graphics chipsets
Group:		System/Libraries

%description -n %{dridrivers}-powervr
DRI and XvMC drivers for PowerVR graphics chips

%files -n %{dridrivers}-powervr
%{_libdir}/libpowervr_rogue.so
%{_libdir}/libvulkan_powervr_mesa.so
%{_datadir}/vulkan/icd.d/powervr_mesa_icd.*.json

#----------------------------------------------------------------------------

%package -n %{dridrivers}-vc4
Summary:	DRI Drivers for Broadcom VC4 graphics chipsets
Group:		System/Libraries

%description -n %{dridrivers}-vc4
DRI drivers for Broadcom VC4 graphics chips

%files -n %{dridrivers}-vc4
%{_libdir}/dri/vc4_dri.so
%{_libdir}/libvulkan_broadcom.so
%{_datadir}/vulkan/icd.d/broadcom_icd.*.json

#----------------------------------------------------------------------------

%package -n %{dridrivers}-v3d
Summary:	DRI Drivers for Broadcom VC5 graphics chipsets
Group:		System/Libraries

%description -n %{dridrivers}-v3d
DRI drivers for Broadcom VC5 graphics chips

%files -n %{dridrivers}-v3d
%{_libdir}/dri/v3d_dri.so
%optional %{_libdir}/libv3d_noop_drm_shim.so

#----------------------------------------------------------------------------

%package -n %{dridrivers}-etnaviv
Summary:	DRI Drivers for Vivante graphics chipsets
Group:		System/Libraries

%description -n %{dridrivers}-etnaviv
DRI drivers for Vivante graphics chips

%files -n %{dridrivers}-etnaviv
%{_libdir}/dri/etnaviv_dri.so
%optional %{_libdir}/libetnaviv_noop_drm_shim.so

#----------------------------------------------------------------------------

%package -n %{dridrivers}-baikal
Summary:	DRI Drivers for Baikal-M graphics chipsets
Group:		System/Libraries

%description -n %{dridrivers}-baikal
DRI drivers for Baikal graphics chips

%files -n %{dridrivers}-baikal
%{_libdir}/dri/baikal-vdu_dri.so

#----------------------------------------------------------------------------

%package -n %{dridrivers}-tegra
Summary:	DRI Drivers for Tegra graphics chipsets
Group:		System/Libraries

%description -n %{dridrivers}-tegra
DRI drivers for Tegra graphics chips

%files -n %{dridrivers}-tegra
%{_libdir}/dri/tegra_dri.so

#----------------------------------------------------------------------------
%package -n %{dridrivers}-lima
Summary:	DRI Drivers for Mali Utgard devices
Group:		System/Libraries

%description -n %{dridrivers}-lima
DRI drivers for Mali Utgard devices

%files -n %{dridrivers}-lima
%optional %{_bindir}/lima_compiler
%optional %{_bindir}/lima_disasm
%optional %{_libdir}/liblima_noop_drm_shim.so
%{_libdir}/dri/lima_dri.so

#----------------------------------------------------------------------------

%package -n %{dridrivers}-panfrost
Summary:	DRI Drivers for Mali Midgard and Bifrost devices
Group:		System/Libraries

%description -n %{dridrivers}-panfrost
DRI drivers for Mali Midgard and Bifrost devices

%files -n %{dridrivers}-panfrost
%optional %{_libdir}/libpanfrost_noop_drm_shim.so
%{_libdir}/dri/panfrost_dri.so
%{_libdir}/libvulkan_panfrost.so
%{_datadir}/vulkan/icd.d/panfrost_icd.*.json

#----------------------------------------------------------------------------

%package -n %{dridrivers}-kmsro
Summary:	DRI Drivers for KMS-only devices
Group:		System/Libraries
%rename %{dridrivers}-pl111
%rename %{dridrivers}-imx

%description -n %{dridrivers}-kmsro
DRI drivers for KMS renderonly layer devices

%files -n %{dridrivers}-kmsro
%{_libdir}/dri/armada-drm_dri.so
%{_libdir}/dri/exynos_dri.so
%{_libdir}/dri/hdlcd_dri.so
%{_libdir}/dri/hx8357d_dri.so
%{_libdir}/dri/ili9???_dri.so
%{_libdir}/dri/imx-drm_dri.so
%{_libdir}/dri/imx-dcss_dri.so
%{_libdir}/dri/imx-lcdif_dri.so
%{_libdir}/dri/ingenic-drm_dri.so
%{_libdir}/dri/mali-dp_dri.so
%{_libdir}/dri/mcde_dri.so
%{_libdir}/dri/kirin_dri.so
%{_libdir}/dri/mediatek_dri.so
%{_libdir}/dri/komeda_dri.so
%{_libdir}/dri/rcar-du_dri.so
%{_libdir}/dri/meson_dri.so
%{_libdir}/dri/mi0283qt_dri.so
%{_libdir}/dri/mxsfb-drm_dri.so
%{_libdir}/dri/pl111_dri.so
%{_libdir}/dri/repaper_dri.so
%{_libdir}/dri/rockchip_dri.so
%{_libdir}/dri/st7586_dri.so
%{_libdir}/dri/st7735r_dri.so
%{_libdir}/dri/stm_dri.so
%{_libdir}/dri/sun4i-drm_dri.so
%if %{with opencl}
%{_libdir}/gallium-pipe/pipe_kmsro.so
%endif
%endif
# end of armx

#----------------------------------------------------------------------------

%package -n %{libosmesa}
Summary:	Mesa offscreen rendering library
Group:		System/Libraries

%description -n %{libosmesa}
Mesa offscreen rendering libraries for rendering OpenGL into
application-allocated blocks of memory.

%files -n %{libosmesa}
%{_libdir}/libOSMesa.so.%{osmesamajor}*

#----------------------------------------------------------------------------

%package -n %{devosmesa}
Summary:	Development files for libosmesa
Group:		Development/C
Requires:	%{libosmesa} = %{EVRD}

%description -n %{devosmesa}
This package contains the headers needed to compile programs against
the Mesa offscreen rendering library.

%files -n %{devosmesa}
%{_includedir}/GL/osmesa.h
%{_libdir}/libOSMesa.so
%{_libdir}/pkgconfig/osmesa.pc

#----------------------------------------------------------------------------

%package -n %{libgl}
Summary:	Files for Mesa (GL and GLX libs)
Group:		System/Libraries
Suggests:	%{dridrivers} >= %{EVRD}
Obsoletes:	%{_lib}mesagl1 < %{EVRD}
Requires:	%{_lib}udev1
Requires:	%{_lib}GL1%{?_isa}
Provides:	mesa-libGL%{?_isa} = %{EVRD}
Requires:	%mklibname GL 1
%if %{with glvnd}
Requires:	libglvnd-GL
%endif
%define oldglname %mklibname gl 1
%rename %oldglname

%description -n %{libgl}
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
GL and GLX parts.

%files -n %{libgl}
%if %{with glvnd}
%{_datadir}/glvnd/egl_vendor.d/50_mesa.json
%{_libdir}/libGLX_mesa.so.0*
%endif
%dir %{_libdir}/dri
%if %{with opencl}
%dir %{_libdir}/gallium-pipe
%endif

#----------------------------------------------------------------------------

%package -n %{devgl}
Summary:	Development files for Mesa (OpenGL compatible 3D lib)
Group:		Development/C
%ifarch armv7hl
# This will allow to install proprietary libGL library for ie. imx
Requires:	libGL.so.1%{_arch_tag_suffix}
# This is to prevent older version of being installed to satisfy dependency
Conflicts:	%{libgl} < %{EVRD}
%else
Requires:	%{libgl} = %{EVRD}
%endif
%if %{with glvnd}
Requires:	pkgconfig(libglvnd)
%endif
# GL/glext.h uses KHR/khrplatform.h
Requires:	%{devegl}  = %{EVRD}
%define oldlibgl %mklibname gl -d
%rename %oldlibgl

%description -n %{devgl}
This package contains the headers needed to compile Mesa programs.

%files -n %{devgl}
%if ! %{with glvnd}
%dir %{_includedir}/GL
%{_includedir}/GL/gl.h
%{_includedir}/GL/glcorearb.h
%{_includedir}/GL/glext.h
%{_includedir}/GL/glx.h
%{_includedir}/GL/glxext.h
%{_libdir}/pkgconfig/gl.pc
%endif
%if %{with glvnd}
%{_libdir}/libGLX_mesa.so
%endif
%{_libdir}/pkgconfig/dri.pc

#FIXME: check those headers
%dir %{_includedir}/GL/internal
%{_includedir}/GL/internal/dri_interface.h

#----------------------------------------------------------------------------

%package -n %{devvulkan}
Summary:	Development files for the Intel Vulkan driver
Group:		Development/C
Requires:	pkgconfig(vulkan)
Provides:	vulkan-intel-devel = %{EVRD}

%description -n %{devvulkan}
This package contains the headers needed to compile applications
that use Intel Vulkan driver extras

%ifarch %{ix86} %{x86_64}
%files -n %{devvulkan}
%endif

#----------------------------------------------------------------------------

%if %{with egl}
%package -n %{libegl}
Summary:	Files for Mesa (EGL libs)
Group:		System/Libraries
Provides:	mesa-libEGL%{?_isa} = %{EVRD}
%if %{with glvnd}
Requires:	libglvnd-egl
%endif
%define oldegl %mklibname egl 1
%rename %oldegl

%description -n %{libegl}
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
EGL parts.

%files -n %{libegl}
%{_libdir}/libEGL_mesa.so.%{eglmajor}*

#----------------------------------------------------------------------------

%package -n %{devegl}
Summary:	Development files for Mesa (EGL libs)
Group:		Development/C
Provides:	egl-devel = %{EVRD}
Requires:	%{libegl} = %{EVRD}
Obsoletes:	%{_lib}egl1-devel < %{EVRD}
%define olddevegl %mklibname egl -d
%rename %olddevegl

%description -n %{devegl}
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
EGL development parts.

%files -n %{devegl}
%if ! %{with glvnd}
%{_includedir}/EGL
%{_includedir}/KHR
%{_libdir}/pkgconfig/egl.pc
%else
%{_includedir}/EGL/eglmesaext.h
%{_includedir}/EGL/eglext_angle.h
%endif
%{_libdir}/libEGL_mesa.so
%endif

#----------------------------------------------------------------------------

%package -n %{libglapi}
Summary:	Files for mesa (glapi libs)
Group:		System/Libraries

%description -n %{libglapi}
This package provides the glapi shared library used by gallium.

%files -n %{libglapi}
%{_libdir}/libglapi.so.%{glapimajor}*

#----------------------------------------------------------------------------

%package -n %{devglapi}
Summary:	Development files for glapi libs
Group:		Development/C
Requires:	%{libglapi} = %{EVRD}
Obsoletes:	%{_lib}glapi0-devel < %{EVRD}

%description -n %{devglapi}
This package contains the headers needed to compile programs against
the glapi shared library.

%files -n %{devglapi}
%{_libdir}/libglapi.so

#----------------------------------------------------------------------------

%if ! %{with bootstrap}
%package -n %{libxatracker}
Summary:	Files for mesa (xatracker libs)
Group:		System/Libraries

%description -n %{libxatracker}
This package provides the xatracker shared library used by gallium.

%files -n %{libxatracker}
%{_libdir}/libxatracker.so.%{xatrackermajor}*

#----------------------------------------------------------------------------

%package -n %{devxatracker}
Summary:	Development files for xatracker libs
Group:		Development/C
Requires:	%{libxatracker} = %{EVRD}

%description -n %{devxatracker}
This package contains the headers needed to compile programs against
the xatracker shared library.

%files -n %{devxatracker}
%{_libdir}/libxatracker.so
%{_includedir}/xa_*.h
%{_libdir}/pkgconfig/xatracker.pc
%endif

#----------------------------------------------------------------------------

%package -n %{libswravx}
Summary:	AVX Software rendering library for Mesa
Group:		System/Libraries

%description -n %{libswravx}
AVX Software rendering library for Mesa

#----------------------------------------------------------------------------

%package -n %{libswravx2}
Summary:	AVX2 Software rendering library for Mesa
Group:		System/Libraries

%description -n %{libswravx2}
AVX2 Software rendering library for Mesa

#----------------------------------------------------------------------------

%package -n %{libglesv1}
Summary:	Files for Mesa (glesv1 libs)
Group:		System/Libraries

%description -n %{libglesv1}
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
well-defined subset profiles of OpenGL.

This package provides the OpenGL ES library version 1.

%if ! %{with glvnd}
%files -n %{libglesv1}
%optional %{_libdir}/libGLESv1_CM.so.%{glesv1major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devglesv1}
Summary:	Development files for glesv1 libs
Group:		Development/C
Requires:	%{libglesv1}
%if %{with glvnd}
Requires:	libglvnd-GLESv1_CM
# For libGLESv1_CM.so symlink
Requires:	pkgconfig(libglvnd)
%endif
Obsoletes:	%{_lib}glesv1_1-devel < %{EVRD}

%description -n %{devglesv1}
This package contains the headers needed to compile OpenGL ES 1 programs.

%if ! %{with glvnd}
%files -n %{devglesv1}
%{_includedir}/GLES
%{_libdir}/pkgconfig/glesv1_cm.pc
%endif

#----------------------------------------------------------------------------

%package -n %{libglesv2}
Summary:	Files for Mesa (glesv2 libs)
Group:		System/Libraries
%if %{with glvnd}
# For libGLESv2.so symlink
Requires:	pkgconfig(libglvnd)
%endif

%description -n %{libglesv2}
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
well-defined subset profiles of OpenGL.
This package provides the OpenGL ES library version 2.

%if ! %{with glvnd}
%files -n %{libglesv2}
%optional %{_libdir}/libGLESv2.so.%{glesv2major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devglesv2}
Summary:	Development files for glesv2 libs
Group:		Development/C
Requires:	%{libglesv2}
%if %{with glvnd}
Requires:	libglvnd-GLESv2
%endif
Obsoletes:	%{_lib}glesv2_2-devel < %{EVRD}

%description -n %{devglesv2}
This package contains the headers needed to compile OpenGL ES 2 programs.

%if ! %{with glvnd}
%files -n %{devglesv2}
%{_includedir}/GLES2
%{_libdir}/pkgconfig/glesv2.pc
%endif

#----------------------------------------------------------------------------

%package -n %{devglesv3}
Summary:	Development files for glesv3 libs
Group:		Development/C
# there is no pkgconfig
Provides:	glesv3-devel = %{EVRD}

%description -n %{devglesv3}
This package contains the headers needed to compile OpenGL ES 3 programs.

%if ! %{with glvnd}
%files -n %{devglesv3}
%{_includedir}/GLES3
%endif

#----------------------------------------------------------------------------

%package -n %{libd3d}
Summary:	Mesa Gallium Direct3D 9 state tracker
Group:		System/Libraries

%description -n %{libd3d}
OpenGL ES is a low-level, lightweight API for advanced embedded graphics using
well-defined subset profiles of OpenGL.

This package provides Direct3D 9 support.

%files -n %{libd3d}
%dir %{_libdir}/d3d
%{_libdir}/d3d/d3dadapter9.so.%{d3dmajor}*

#----------------------------------------------------------------------------

%package -n %{devd3d}
Summary:	Development files for Direct3D 9 libs
Group:		Development/C
Requires:	%{libd3d} = %{EVRD}
Provides:	d3d-devel = %{EVRD}

%description -n %{devd3d}
This package contains the headers needed to compile Direct3D 9 programs.

%files -n %{devd3d}
%{_includedir}/d3dadapter
%{_libdir}/d3d/d3dadapter9.so
%{_libdir}/pkgconfig/d3d.pc

#----------------------------------------------------------------------------

%if %{with opencl}
%package -n %{libcl}
Summary:	Mesa OpenCL libs
Group:		System/Libraries
Provides:	mesa-libOpenCL = %{EVRD}
Provides:	mesa-opencl = %{EVRD}

%description -n %{libcl}
Open Computing Language (OpenCL) is a framework for writing programs that
execute across heterogeneous platforms consisting of central processing units
(CPUs), graphics processing units (GPUs), DSPs and other processors.

OpenCL includes a language (based on C99) for writing kernels (functions that
execute on OpenCL devices), plus application programming interfaces (APIs) that
are used to define and then control the platforms. OpenCL provides parallel
computing using task-based and data-based parallelism. OpenCL is an open
standard maintained by the non-profit technology consortium Khronos Group.
It has been adopted by Intel, Advanced Micro Devices, Nvidia, and ARM Holdings.

%files -n %{libcl}
%{_sysconfdir}/OpenCL
%{_libdir}/libMesaOpenCL.so.%{clmajor}*

#----------------------------------------------------------------------------

%package -n %{devcl}
Summary:	Development files for OpenCL libs
Group:		Development/Other
Requires:	%{libcl} = %{EVRD}
Provides:	%{clname}-devel = %{EVRD}
Provides:	mesa-libOpenCL-devel = %{EVRD}
Provides:	mesa-opencl-devel = %{EVRD}

%description -n %{devcl}
Development files for the OpenCL library

%files -n %{devcl}
%{_includedir}/CL
%{_libdir}/libMesaOpenCL.so
%endif

#----------------------------------------------------------------------------

%if %{with vdpau}
%package -n %{vdpaudrivers}
Summary:	Mesa VDPAU drivers
Group:		System/Libraries
Requires:	%{dridrivers} = %{EVRD}
%ifnarch %{armx} %{riscv}
Requires:	%{_lib}vdpau-driver-nouveau
Requires:	%{_lib}vdpau-driver-radeonsi
%if %{with r600}
Requires:	%{_lib}vdpau-driver-r600
%endif
%endif
Requires:	%{_lib}vdpau-driver-softpipe
Provides:	vdpau-drivers = %{EVRD}

%description -n %{vdpaudrivers}
VDPAU drivers.

%files -n %{vdpaudrivers}

#----------------------------------------------------------------------------

%package -n %{_lib}vdpau-driver-nouveau
Summary:	VDPAU plugin for nouveau driver
Group:		System/Libraries
Requires:	%{_lib}vdpau1

%description -n %{_lib}vdpau-driver-nouveau
This packages provides a VPDAU plugin to enable video acceleration
with the nouveau driver.

%files -n %{_lib}vdpau-driver-nouveau
%{_libdir}/vdpau/libvdpau_nouveau.so.*
%{_libdir}/vdpau/libvdpau_virtio_gpu.so.1*

#----------------------------------------------------------------------------

%package -n %{_lib}vdpau-driver-softpipe
Summary:	VDPAU plugin for softpipe driver
Group:		System/Libraries
Requires:	%{_lib}vdpau1

%description -n %{_lib}vdpau-driver-softpipe
This packages provides a VPDAU plugin to enable video acceleration
with the softpipe driver.

%files -n %{_lib}vdpau-driver-softpipe

#----------------------------------------------------------------------------

%package -n %{_lib}vdpau-driver-virtio
Summary:	VDPAU plugin for virtio driver
Group:		System/Libraries
Requires:	%{_lib}vdpau1

%description -n %{_lib}vdpau-driver-virtio
This packages provides a VPDAU plugin to enable video acceleration
with the r300 driver.

%files -n %{_lib}vdpau-driver-virtio
%{_libdir}/vdpau/libvdpau_virtio_gpu.so.*

#----------------------------------------------------------------------------

%if %{with r600}
%package -n %{_lib}vdpau-driver-r600
Summary:	VDPAU plugin for r600 driver
Group:		System/Libraries
Requires:	%{_lib}vdpau1

%description -n %{_lib}vdpau-driver-r600
This packages provides a VPDAU plugin to enable video acceleration
with the r600 driver.

%files -n %{_lib}vdpau-driver-r600
%{_libdir}/vdpau/libvdpau_r600.so.*

#----------------------------------------------------------------------------

%package -n %{_lib}vdpau-driver-radeonsi
Summary:	VDPAU plugin for radeonsi driver
Group:		System/Libraries
Requires:	%{_lib}vdpau1

%description -n %{_lib}vdpau-driver-radeonsi
This packages provides a VPDAU plugin to enable video acceleration
with the radeonsi driver.

%files -n %{_lib}vdpau-driver-radeonsi
%{_libdir}/vdpau/libvdpau_radeonsi.so.*
%endif
%endif

#----------------------------------------------------------------------------

%if %{with egl}
%package -n %{libgbm}
Summary:	Files for Mesa (gbm libs)
Group:		System/Libraries

%description -n %{libgbm}
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
GBM (Graphics Buffer Manager) parts.

%files -n %{libgbm}
%{_libdir}/libgbm.so.%{gbmmajor}*
#----------------------------------------------------------------------------

%package -n %{devgbm}
Summary:	Development files for Mesa (gbm libs)
Group:		Development/C
Requires:	%{libgbm} = %{EVRD}

%description -n %{devgbm}
Mesa is an OpenGL %{opengl_ver} compatible 3D graphics library.
GBM (Graphics Buffer Manager) development parts.

%files -n %{devgbm}
%{_includedir}/gbm.h
%{_libdir}/libgbm.so
%{_libdir}/pkgconfig/gbm.pc
%endif

#----------------------------------------------------------------------------

%package common-devel
Summary:	Meta package for mesa devel
Group:		Development/C
Requires:	pkgconfig(glu)
Requires:	pkgconfig(glut)
Requires:	%{devgl} = %{EVRD}
Requires:	%{devegl} = %{EVRD}
Requires:	%{devglapi} = %{EVRD}
%if !%{with glvnd}
Requires:	%{devglesv1} = %{EVRD}
Requires:	%{devglesv2} = %{EVRD}
%endif
Suggests:	%{devd3d} = %{EVRD}
%if %{with glvnd}
Requires:	pkgconfig(libglvnd)
Requires:	pkgconfig(glesv1_cm)
Requires:	pkgconfig(glesv2)
%endif

%description common-devel
Mesa common metapackage devel.

%files common-devel
# meta devel pkg

#----------------------------------------------------------------------------

%ifarch %{ix86} %{x86_64}
%package tools
Summary:	Tools for debugging Mesa drivers
Group:		Development/Tools

%description tools
Tools for debugging Mesa drivers.

%files tools
%{_bindir}/aubinator
%{_bindir}/aubinator_error_decode
%{_bindir}/aubinator_viewer
%{_bindir}/i965_asm
%{_bindir}/i965_disasm
%{_bindir}/intel_dump_gpu
%{_bindir}/intel_error2aub
%{_bindir}/intel_sanitize_gpu
%{_bindir}/intel_dev_info
%{_libexecdir}/libintel_dump_gpu.so
%{_libexecdir}/libintel_sanitize_gpu.so
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn mesa-%{version}%{vsuffix}
chmod +x %{SOURCE5}
%patch2 -p1
%patch3 -p1
%ifarch %{e2k}
%patch4 -p1
%endif

%if %{mdvver} <= 202115
%patch5 -p1
%endif

# this is a hack for S3TC support. r200_screen.c is symlinked to
# radeon_screen.c in git, but is its own file in the tarball.
cp -f src/mesa/drivers/dri/{radeon,r200}/radeon_screen.c || :

%build
%if %{with gcc}
export CC=gcc
export CXX=g++
%else
%if %{with alternative_llvm}
%global optflags %{optflags} -L/opt/llvm%{llvm_ver}/lib -I/opt/llvm%{llvm_ver}/include
export CC=/opt/llvm%{llvm_ver}/bin/clang
export CXX=/opt/llvm%{llvm_ver}/bin/clang++
# find llvm-config
export PATH="/opt/llvm%{llvm_ver}/bin:$PATH"
%endif
%endif

%meson \
	-Dmicrosoft-clc=disabled \
	-Db_ndebug=true \
	-Dc_std=c11 \
	-Dcpp_std=c++17 \
	-Dgallium-drivers=swrast,virgl,nouveau%{?with_r300:,r300}%{?with_crocus:,crocus}%{?with_i915:,i915}%{?with_iris:,iris}%{?with_vmware:,svga}%{?with_radeonsi:,radeonsi}%{?with_r600:,r600}%{?with_freedreno:,freedreno}%{?with_etnaviv:,etnaviv}%{?with_tegra:,tegra}%{?with_vc4:,vc4}%{?with_v3d:,v3d}%{?with_kmsro:,kmsro}%{?with_lima:,lima}%{?with_panfrost:,panfrost}%{?with_vulkan_hw:,zink} \
%if %{with opencl}
	-Dgallium-opencl=icd \
	-Dopencl-spirv=true \
%else
	-Dgallium-opencl=disabled \
%endif
%if %{with va}
	-Dgallium-va=enabled \
%endif
	-Dgallium-vdpau=enabled \
	-Dgallium-xa=enabled \
	-Dgallium-nine=true \
	-Dglx=dri \
	-Dplatforms=wayland,x11 \
	-Degl-native-platform=wayland \
	-Dvulkan-layers=device-select,overlay \
	-Dvulkan-drivers=%{?vulkan_drivers} \
	-Dvideo-codecs=h264dec,h264enc,h265dec,h265enc,vc1dec \
	-Dxlib-lease=auto \
	-Dosmesa=true \
%if %{with glvnd}
	-Dglvnd=true \
%endif
	-Ddri3=enabled \
	-Degl=enabled \
	-Dgbm=enabled \
	-Dgles1=enabled \
	-Dgles2=enabled \
	-Dglx-direct=true \
	-Dlmsensors=enabled \
	-Dopengl=true \
	-Dshader-cache=enabled \
	-Dshared-glapi=enabled \
%if %{with llvm}
	-Dllvm=enabled \
	-Dshared-llvm=enabled \
%else
	-Dllvm=disabled \
	-Dshared-llvm=disabled \
%endif
%if %{with glvnd}
	-Dglvnd=true \
%endif
%if %{with selinux}
	-Dselinux=true \
%endif
%ifarch %{x86_64} %{ix86}
	-Dbuild-tests=false \
	-Dtools=intel,intel-ui
%endif

%meson_build

%install
%meson_install

# remove bundled stuff
# we use libglvnd now
%if %{with glvnd}
rm -rf	%{buildroot}%{_includedir}/GL/gl.h \
	%{buildroot}%{_includedir}/GL/glcorearb.h \
	%{buildroot}%{_includedir}/GL/glext.h \
	%{buildroot}%{_includedir}/GL/glx.h \
	%{buildroot}%{_includedir}/GL/glxext.h \
	%{buildroot}%{_includedir}/EGL/eglext.h \
	%{buildroot}%{_includedir}/EGL/egl.h \
	%{buildroot}%{_includedir}/EGL/eglplatform.h \
	%{buildroot}%{_includedir}/KHR \
	%{buildroot}%{_includedir}/GLES \
	%{buildroot}%{_includedir}/GLES2 \
	%{buildroot}%{_includedir}/GLES3 \
	%{buildroot}%{_libdir}/pkgconfig/egl.pc \
	%{buildroot}%{_libdir}/pkgconfig/gl.pc
%endif

%ifarch %{x86_64}
mkdir -p %{buildroot}%{_prefix}/lib/dri
%endif

%if %{with opencl}
# FIXME workaround for OpenCL headers not being installed
if [ -e %{buildroot}%{_includedir}/CL/opencl.h ]; then
    echo OpenCL headers are being installed correctly now. Please remove the workaround.
    exit 1
else
    cp -af include/CL %{buildroot}%{_includedir}/
fi
%endif

# .so files are not needed by vdpau
rm -f %{buildroot}%{_libdir}/vdpau/libvdpau_*.so

%if %{with glvnd}
# We get those from libglvnd
rm -f %{buildroot}%{_libdir}/libGLESv1_CM.so* %{buildroot}%{_libdir}/libGLESv2.so*
%endif

# .la files are not needed by mesa
find %{buildroot} -name '*.la' |xargs rm -f

%if ! %{with glvnd}
# Used to be present in 19.0.x, and some packages rely on it
cat >%{buildroot}%{_libdir}/pkgconfig/glesv1_cm.pc <<'EOF'
Name: glesv1_cm
Description: Mesa OpenGL ES 1.1 CM library
Version:	23.3.4
Libs: -lGLESv1_CM
Libs.private: -lpthread -pthread -lm -ldl
EOF
cat >%{buildroot}%{_libdir}/pkgconfig/glesv2.pc <<'EOF'
Name: glesv2
Description: Mesa OpenGL ES 2.0 library
Version:	23.3.4
Libs: -lGLESv2
Libs.private: -lpthread -pthread -lm -ldl
EOF

# Used to be present in 19.1.x, and some packages rely on it
cat >%{buildroot}%{_libdir}/pkgconfig/egl.pc <<'EOF'
prefix=%{_prefix}
libdir=${prefix}/%{_libdir}
includedir=${prefix}/include
Name: egl
Description: Mesa EGL Library
Version:	23.3.4
Requires.private: x11, xext, xdamage >=  1.1, xfixes, x11-xcb, xcb, xcb-glx >=  1.8.1, xcb-dri2 >=  1.8, xxf86vm, libdrm >=  2.4.75
Libs: -L${libdir} -lEGL
Libs.private: -lpthread -pthread -lm -ldl
Cflags: -I${includedir}
EOF
%endif

# use swrastg if built (Anssi 12/2011)
[ -e %{buildroot}%{_libdir}/dri/swrastg_dri.so ] && mv %{buildroot}%{_libdir}/dri/swrast{g,}_dri.so

# (tpg) remove wayland files as they are now part of wayland package
rm -rf %{buildroot}%{_libdir}/libwayland-egl.so*
rm -rf %{buildroot}%{_libdir}/pkgconfig/wayland-egl.pc

%check
# ensure custom LLVM is used
readelf -a %{buildroot}%{_libdir}/libOSMesa.so | grep -q LLVM%{?with_alternative_llvm:_%{llvm_ver}}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14739 |21mr|mesa-demos-9.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Demos for Mesa (OpenGL compatible 3D lib)
Name:		mesa-demos
Version:	9.0.0
Release:	2
License:	MIT
Group:		Graphics
Url:		https://www.mesa3d.org
Source0:    https://archive.mesa3d.org/demos/%{name}-%{version}.tar.xz
Source4:	Mesa-icons.tar.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	meson >= 0.53.0
BuildRequires:	ninja
BuildRequires:	x11-util-macros
BuildRequires:	glslang
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(libdecor-0)
# Not essential, but builds more demos:
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(wayland-protocols) >= 1.12
BuildRequires:	pkgconfig(wayland-server) >= 1.15
Requires:	glxinfo = %{version}
Requires:	eglinfo = %{version}
# was in this package
Recommends:	xdriinfo

%description
Mesa is an OpenGL-compatible 3D graphics library.
This package contains some demo programs for the Mesa library.

%files
%doc README.rst
%{_bindir}/*
%exclude %{_bindir}/glxinfo
%exclude %{_bindir}/glinfo
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_miconsdir}/*demos*.png
%{_iconsdir}/*demos*.png
%{_liconsdir}/*demos*.png


#----------------------------------------------------------------------------

%package -n glxinfo
Summary:	Command-line GLX information tool
Group:		Graphics

%description -n glxinfo
Mesa is an OpenGL-compatible 3D graphics library.
This package contains the glinfo & glxinfo GLX information utility.

%files -n glxinfo
%{_bindir}/glxinfo
%{_bindir}/glinfo

#----------------------------------------------------------------------------

%package -n eglinfo
Summary:	Command-line EGL information tool
Group:		Graphics

%description -n eglinfo
Mesa is an OpenGL-compatible 3D graphics library.
This package contains the eglinfo & es2_info EGL information utility.

%files -n eglinfo
%{_bindir}/eglinfo
%{_bindir}/es2_info

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dwith-system-data-files=true
%meson_build


%install
%meson_install

# (fg) So that demos at least work :)
cp -a src/*/*.{frag,vert,geom} %{buildroot}/%{_datadir}/%{name}

# (tv) Fix conflict with bitmap:
mv %{buildroot}%{_bindir}/bitmap{,-gl}

# Icons for three demos examples [we lack a frontend
# to launch the demos obviously]
install -m 755 -d %{buildroot}%{_miconsdir}
install -m 755 -d %{buildroot}%{_iconsdir}
install -m 755 -d %{buildroot}%{_liconsdir}
tar jxvf %{SOURCE4} -C %{buildroot}%{_iconsdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14740 |21mr|meson-0.63.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Running tests needs lot of time
%bcond_with check

Summary:	High productivity build system
Name:		meson
Version:	0.63.0
Release:	1
License:	ASL 2.0
Group:		Development/Tools
Url:		http://mesonbuild.com
Source0:	https://github.com/mesonbuild/meson/releases/download/%{version}/%{name}-%{version}.tar.gz
Source2:	%{name}.macros

BuildRequires:	pkgconfig(python3) >= 3.5
BuildRequires:	python3-setuptools

%if %{with check}
BuildRequires:	locales
BuildRequires:	ninja

# Various languages
BuildRequires:	gcc
BuildRequires:	gcc-c++
BuildRequires:	gcc-gfortran
BuildRequires:	gcc-objc
BuildRequires:	gcc-objc++
BuildRequires:	gnustep-base-devel
BuildRequires:	java-devel
BuildRequires:	mono
BuildRequires:	pkgconfig(mono)
BuildRequires:	rust

# Various libs support
BuildRequires:	asan-devel
BuildRequires:	bison
BuildRequires:	boost-devel
BuildRequires:	cups-devel
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	git
BuildRequires:	gmock-devel
BuildRequires:	gtest-devel
BuildRequires:	gtk-doc
BuildRequires:	itstool
BuildRequires:	libwmf-devel
BuildRequires:	llvm-devel
BuildRequires:	locales-en
BuildRequires:	nasm
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glib-sharp-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3-cython
BuildRequires:	python3-gobject3
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-tools
BuildRequires:	texlive-epstopdf
BuildRequires:	units
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	wxgtku3.0-devel
%endif

Requires:	ninja
Requires:	python3-setuptools
BuildArch:	noarch

%description
Meson is a build system designed to optimize programmer productivity. It aims
to do this by providing simple, out-of-the-box support for modern software
development tools and practices, such as unit tests, coverage reports,
Valgrind, CCache and the like.

%files
%doc README.md COPYING
%{_bindir}/%{name}
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
%{_mandir}/man1/%{name}.1.*
%{_rpmmacrodir}/*%{name}*
%{py3_puresitedir}/%{name}-%{version}-py*.egg-info/
%{py3_puresitedir}/mesonbuild/

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%py3_build


%install
%py3_install

# Install our rpm macro helper for meson
%install_macro meson %{SOURCE2}

%if %{with check}
%check
# TODO: Investigate and fix failures
# Missing compilers or their dependencies
rm -rf "test cases/fortran/1 basic/"
rm -rf "test cases/fortran/2 modules/"
rm -rf "test cases/fortran/3 module procedure/"
rm -rf "test cases/fortran/4 self dependency/"
rm -rf "test cases/fortran/5 static/"
rm -rf "test cases/fortran/6 dynamic/"
rm -rf "test cases/fortran/7 generated/"
rm -rf "test cases/fortran/8 module names/"
rm -rf "test cases/fortran/9 cpp/"
rm -rf "test cases/fortran/10 find library/"
rm -rf "test cases/fortran/11 compiles links runs/"
rm -rf "test cases/fortran/12 submodule/"
rm -rf "test cases/fortran/13 coarray/"
rm -rf "test cases/nasm/1 configure/"
rm -rf "test cases/rust/1 basic/"
# Lack of dependencies
# Cannot find libboost_thread.so which exists
rm -rf "test cases/frameworks/1 boost"
#rm -rf "test cases/frameworks/3 gmock/"
# Due to missing libtinfo
rm -rf "test cases/frameworks/15 llvm"
# Remove MPI tests for now because it is complicated to run.
rm -rf "test cases/frameworks/17 mpi"
rm -rf "test cases/frameworks/18 vulkan/"
rm -rf "test cases/frameworks/19 pcap/"
rm -rf "test cases/frameworks/20 cups/"
rm -rf "test cases/frameworks/21 libwmf/"
rm -rf "test cases/frameworks/22 gir link order"
rm -rf "test cases/frameworks/24 libgcrypt/"
rm -rf "test cases/frameworks/26 netcdf/"
rm -rf "test cases/common/190 openmp"

export MESON_PRINT_TEST_OUTPUT=1
export LC_ALL=UTF-8
python3 run_tests.py
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14741 |21mr|meson1-1.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude python.*

%define oname meson

Summary:	High productivity build system
Name:		meson1
Version:	1.5.1
Release:	2
License:	ASL 2.0
Group:		Development/Tools
Url:		http://mesonbuild.com
Source0:	https://github.com/mesonbuild/meson/releases/download/%{version}/%{oname}-%{version}.tar.gz
Source1:	%{oname}.macros
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	ninja
Requires:	python3dist(setuptools)
Conflicts:	%{oname}
BuildArch:	noarch

%description
Meson is a build system designed to optimize programmer productivity. It aims
to do this by providing simple, out-of-the-box support for modern software
development tools and practices, such as unit tests, coverage reports,
Valgrind, CCache and the like.

%files
%doc README.md
%license COPYING
%{_bindir}/%{oname}
%{_datadir}/polkit-1/actions/com.mesonbuild.install.policy
%{_mandir}/man1/%{oname}.1.*
%{py3_puresitedir}/mesonbuild
%{py3_puresitedir}/%{oname}-%{version}-py*.egg-info
%{_rpmmacrodir}/*%{oname}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

# Install our rpm macro helper for meson
%install_macro %{oname} %{SOURCE1}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14742 |21mr|messagelib-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Frameworks 5 message module
Name:		messagelib
Version:	23.08.4
Release:	1
Epoch:		3
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source9:	messagelib.rpmlintrc
# Drop support for old versions of KTextAddons to make
# rpm's cmake dependency generator happy
Patch0: messagelib-drop-ktextaddons-1.2.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gpgme-devel
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadinotes-devel
BuildRequires:	kf5akonadisearch-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5contacteditor-devel
BuildRequires:	kf5grantleetheme-devel
BuildRequires:	kf5gravatar-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5mbox-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	qca2-qt5-devel

%description
KDE Frameworks 5 message module.

%files
%{_kde5_datadir}/qlogging-categories5/messagelib.categories
%{_kde5_datadir}/qlogging-categories5/messagelib.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 message libraries translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 message libraries translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n messagelist
Summary:	Message list support files for KDE Email Client
Group:		Graphical desktop/KDE

%description -n messagelist
Message list support files for KDE Email Client.

%files -n messagelist
%dir %{_kde5_datadir}/messagelist/
%{_kde5_datadir}/messagelist/*

#----------------------------------------------------------------------------

%package -n messageviewer
Summary:	Message viewer support files for KDE Email Client
Group:		Graphical desktop/KDE

%description -n messageviewer
Message viewer support files for KDE Email Client.

%files -n messageviewer
%dir %{_kde5_datadir}/libmessageviewer/
%{_kde5_datadir}/libmessageviewer/*
%dir %{_kde5_datadir}/messageviewer/
%{_kde5_datadir}/messageviewer/*
%{_kde5_notificationsdir}/messageviewer.notifyrc
%{_kde5_datadir}/knsrcfiles/messageviewer_header_themes.knsrc
%{_qt5_plugindir}/pim5/messageviewer/headerstyle/messageviewer_defaultgrantleeheaderstyleplugin.so
%{_qt5_plugindir}/pim5/messageviewer/grantlee/*/messageviewer_grantlee_extension.so

#----------------------------------------------------------------------------

%package -n templateparser
Summary:	Template parser support files for KDE Email Client
Group:		Graphical desktop/KDE

%description -n templateparser
Template parser support files for KDE Email Client.

%files -n templateparser
%{_kde5_datadir}/config.kcfg/customtemplates_kfg.kcfg
%{_kde5_datadir}/config.kcfg/templatesconfiguration_kfg.kcfg
%{_kde5_datadir}/org.kde.syntax-highlighting/syntax/kmail-template.xml

#----------------------------------------------------------------------------

%define kf5messagecomposer_major 5
%define libkf5messagecomposer %mklibname kf5messagecomposer %{kf5messagecomposer_major}

%package -n %{libkf5messagecomposer}
Summary:	KDE Frameworks 5 message composer shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5messagecomposer}
KDE Frameworks 5 message composer shared library.

%files -n %{libkf5messagecomposer}
%{_kde5_libdir}/libKPim5MessageComposer.so.%{kf5messagecomposer_major}*

#----------------------------------------------------------------------------

%define devkf5messagecomposer %mklibname kf5messagecomposer -d

%package -n %{devkf5messagecomposer}
Summary:	Development files for KDE Frameworks 5 message composer module
Group:		Development/KDE and Qt
Requires:	%{libkf5messagecomposer} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5messagecomposer-devel = %{version}

%description -n %{devkf5messagecomposer}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5messagecomposer}
%{_kde5_includedir}/KPim5/MessageComposer
%{_kde5_libdir}/cmake/KPim5MessageComposer
%{_kde5_libdir}/libKPim5MessageComposer.so
%{_kde5_mkspecsdir}/qt_MessageComposer.pri

#----------------------------------------------------------------------------

%define kf5messagecore_major 5
%define libkf5messagecore %mklibname kf5messagecore %{kf5messagecore_major}

%package -n %{libkf5messagecore}
Summary:	KDE Frameworks 5 message core shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5messagecore}
KDE Frameworks 5 message core shared library.

%files -n %{libkf5messagecore}
%{_kde5_libdir}/libKPim5MessageCore.so.%{kf5messagecore_major}*

#----------------------------------------------------------------------------

%define devkf5messagecore %mklibname kf5messagecore -d

%package -n %{devkf5messagecore}
Summary:	Development files for KDE Frameworks 5 message core module
Group:		Development/KDE and Qt
Requires:	%{libkf5messagecore} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5messagecore-devel = %{version}

%description -n %{devkf5messagecore}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5messagecore}
%{_kde5_includedir}/KPim5/MessageCore
%{_kde5_libdir}/cmake/KPim5MessageCore
%{_kde5_libdir}/libKPim5MessageCore.so
%{_kde5_mkspecsdir}/qt_MessageCore.pri

#----------------------------------------------------------------------------

%define kf5messagelist_major 5
%define libkf5messagelist %mklibname kf5messagelist %{kf5messagelist_major}

%package -n %{libkf5messagelist}
Summary:	KDE Frameworks 5 message list shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n
Requires:	messagelist >= %{EVRD}

%description -n %{libkf5messagelist}
KDE Frameworks 5 message list shared library.

%files -n %{libkf5messagelist}
%{_kde5_libdir}/libKPim5MessageList.so.%{kf5messagelist_major}*

#----------------------------------------------------------------------------

%define devkf5messagelist %mklibname kf5messagelist -d

%package -n %{devkf5messagelist}
Summary:	Development files for KDE Frameworks 5 message list module
Group:		Development/KDE and Qt
Requires:	%{libkf5messagelist} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5messagelist-devel = %{version}

%description -n %{devkf5messagelist}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5messagelist}
%{_kde5_includedir}/KPim5/MessageList
%{_kde5_libdir}/cmake/KPim5MessageList
%{_kde5_libdir}/libKPim5MessageList.so
%{_kde5_mkspecsdir}/qt_MessageList.pri

#----------------------------------------------------------------------------

%define kf5messageviewer_major 5
%define libkf5messageviewer %mklibname kf5messageviewer %{kf5messageviewer_major}

%package -n %{libkf5messageviewer}
Summary:	KDE Frameworks 5 message viewer shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n
Requires:	messageviewer >= %{EVRD}

%description -n %{libkf5messageviewer}
KDE Frameworks 5 message viewer shared library.

%files -n %{libkf5messageviewer}
%{_kde5_libdir}/libKPim5MessageViewer.so.%{kf5messageviewer_major}*

#----------------------------------------------------------------------------

%define devkf5messageviewer %mklibname kf5messageviewer -d

%package -n %{devkf5messageviewer}
Summary:	Development files for KDE Frameworks 5 message viewer module
Group:		Development/KDE and Qt
Requires:	%{libkf5messageviewer} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5messageviewer-devel = %{version}

%description -n %{devkf5messageviewer}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5messageviewer}
%{_kde5_includedir}/KPim5/MessageViewer
%{_kde5_libdir}/cmake/KPim5MessageViewer
%{_kde5_libdir}/libKPim5MessageViewer.so
%{_kde5_mkspecsdir}/qt_MessageViewer.pri

#----------------------------------------------------------------------------

%define kf5mimetreeparser_major 5
%define libkf5mimetreeparser %mklibname kf5mimetreeparser %{kf5mimetreeparser_major}

%package -n %{libkf5mimetreeparser}
Summary:	KDE Frameworks 5 MIME tree parser shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5mimetreeparser}
KDE Frameworks 5 MIME tree parser shared library.

%files -n %{libkf5mimetreeparser}
%{_kde5_libdir}/libKPim5MimeTreeParser.so.%{kf5mimetreeparser_major}*

#----------------------------------------------------------------------------

%define devkf5mimetreeparser %mklibname kf5mimetreeparser -d

%package -n %{devkf5mimetreeparser}
Summary:	Development files for KDE Frameworks 5 MIME tree parser module
Group:		Development/KDE and Qt
Requires:	%{libkf5mimetreeparser} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5mimetreeparser-devel = %{version}

%description -n %{devkf5mimetreeparser}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5mimetreeparser}
%{_kde5_includedir}/KPim5/MimeTreeParser
%{_kde5_libdir}/cmake/KPim5MimeTreeParser
%{_kde5_libdir}/libKPim5MimeTreeParser.so

#----------------------------------------------------------------------------

%define kf5templateparser_major 5
%define libkf5templateparser %mklibname kf5templateparser %{kf5templateparser_major}

%package -n %{libkf5templateparser}
Summary:	KDE Frameworks 5 template parser shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n
Requires:	templateparser >= %{EVRD}

%description -n %{libkf5templateparser}
KDE Frameworks 5 template parser shared library.

%files -n %{libkf5templateparser}
%{_kde5_libdir}/libKPim5TemplateParser.so.%{kf5templateparser_major}*

#----------------------------------------------------------------------------

%define devkf5templateparser %mklibname kf5templateparser -d

%package -n %{devkf5templateparser}
Summary:	Development files for KDE Frameworks 5 template parser module
Group:		Development/KDE and Qt
Requires:	%{libkf5templateparser} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5templateparser-devel = %{version}

%description -n %{devkf5templateparser}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5templateparser}
%{_kde5_includedir}/KPim5/TemplateParser
%{_kde5_libdir}/cmake/KPim5TemplateParser
%{_kde5_libdir}/libKPim5TemplateParser.so
%{_kde5_mkspecsdir}/qt_TemplateParser.pri

#----------------------------------------------------------------------------

%define kf5webengineviewer_major 5
%define libkf5webengineviewer %mklibname kf5webengineviewer %{kf5webengineviewer_major}

%package -n %{libkf5webengineviewer}
Summary:	KDE Frameworks 5 web engine viewer shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5webengineviewer}
KDE Frameworks 5 web engine viewer shared library.

%files -n %{libkf5webengineviewer}
%{_kde5_libdir}/libKPim5WebEngineViewer.so.%{kf5webengineviewer_major}*

#----------------------------------------------------------------------------

%define devkf5webengineviewer %mklibname kf5webengineviewer -d

%package -n %{devkf5webengineviewer}
Summary:	Development files for KDE Frameworks 5 web engine viewer module
Group:		Development/KDE and Qt
Requires:	%{libkf5webengineviewer} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5webengineviewer-devel = %{version}

%description -n %{devkf5webengineviewer}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5webengineviewer}
%{_kde5_includedir}/KPim5/WebEngineViewer
%{_kde5_libdir}/cmake/KPim5WebEngineViewer
%{_kde5_libdir}/libKPim5WebEngineViewer.so
%{_kde5_mkspecsdir}/qt_WebEngineViewer.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
	-DBUILD_TESTING:BOOL=OFF
%make

%install
%makeinstall_std -C build

%find_lang libmessagecomposer libmessagecore libmessagelist libmessageviewer \
	libmimetreeparser libtemplateparser libwebengineviewer %{name}.lang --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14743 |21mr|metacity-3.44.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Metacity window manager
Name:		metacity
Version:	3.44.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/metacity
Source0:	https://download.gnome.org/sources/metacity/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	yelp-tools
BuildRequires:	zenity
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libgtop-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangoxft)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpresent)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xres)
Requires:	zenity

%description
Metacity is a simple window manager that integrates nicely with GNOME.

%files -f %{name}.lang
%doc README NEWS HACKING
%license COPYING
%{_bindir}/*
%{_datadir}/applications/metacity.desktop
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/gnome-control-center/keybindings/50-metacity*.xml
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for Metacity
Group:		System/Libraries

%description -n %{libname}
This package contains libraries used by Metacity.

%files -n %{libname}
%{_libdir}/libmetacity.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files with Metacity
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include 
files to allow you to develop with Metacity.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--disable-scrollkeeper
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14744 |21mr|metadata-extractor2-2.10.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global majorversion 2
Name:          metadata-extractor2
Version:       2.10.1
Release:       6
Summary:       Extracts EXIF, IPTC, XMP, ICC and other metadata from image files
License:       ASL 2.0
URL:           http://drewnoakes.com/code/exif/
Source0:       https://github.com/drewnoakes/metadata-extractor/archive/%{version}/metadata-extractor-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.adobe.xmp:xmpcore)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
# Explicit requires for javapackages-tools since metadata-extractor2 script
# uses /usr/share/java-utils/java-functions
Requires:      javapackages-tools

Provides:      mvn(com.drewnoakes:metadata-extractor) = %{version}-%{release}

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Metadata Extractor is a straightforward Java library
for reading metadata from image files.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n metadata-extractor-%{version}
find -name '*.jar' -delete
find -name '*.class' -delete

# Unavailable plugins
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
# Unwanted plugins
%pom_remove_plugin org.apache.maven.plugins:maven-gpg-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin
# Unneeded task
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
# Fix manifest entries
%pom_xpath_set "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifest/pom:addClasspath" false
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifest" "<mainClass>com.drew.imaging.ImageMetadataReader</mainClass>"
# Use standard maven output directory
%pom_xpath_remove "pom:build/pom:directory"
%pom_xpath_remove "pom:build/pom:outputDirectory"

# javascript not allowed in javadoc
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration/pom:bottom"

# Add OSGi support
%pom_xpath_set "pom:project/pom:packaging" bundle 
%pom_add_plugin org.apache.felix:maven-bundle-plugin . "
<extensions>true</extensions>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

# Fix non ASCII chars
for s in Source/com/drew/lang/GeoLocation.java \
 Source/com/drew/metadata/icc/IccDescriptor.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

sed -i 's/\r//' LICENSE-2.0.txt README.md Resources/javadoc-stylesheet.css

%mvn_file :metadata-extractor %{name}
%mvn_alias :metadata-extractor "drew:metadata-extractor"
%mvn_compat_version ":metadata-extractor" %{majorversion}

%build

%mvn_build

%install
%mvn_install

%jpackage_script com.drew.imaging.ImageMetadataReader "" "" %{name}-%{majorversion}:xmpcore %{name} true

%files -f .mfiles
%{_bindir}/*
%doc README.md
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14745 |21mr|metainf-services-1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           metainf-services
Version:        1.7
Release:        7
Summary:        Small java library for generating META-INF/services files

# License is specified in pom file
License:        MIT
URL:            https://github.com/kohsuke/metainf-services
Source0:        https://github.com/kohsuke/%{name}/archive/%{name}-%{version}.tar.gz
Source1:        https://raw.github.com/kohsuke/youdebug/youdebug-1.5/LICENSE.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.kohsuke:pom:pom:)

%description
This package contains small Java library which can be used
for automatic generation of META-INF/services files.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-%{name}-%{version}

cp %{SOURCE1} LICENSE

%pom_xpath_remove "pom:plugin[pom:artifactId[text()='animal-sniffer-maven-plugin']]"

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14746 |21mr|metis-5.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define libname	%mklibname metis %{major}
%define devname %mklibname metis -d

Name:		metis
Version:	5.1.0
Release:	%mkrel 7
Summary:	Serial Graph Partitioning and Fill-reducing Matrix Ordering
License:	ASL 2.0 and BSD and LGPLv2+
Group:		Sciences/Other
URL:		http://glaros.dtc.umn.edu/gkhome/views/%{name}
Source0:	http://glaros.dtc.umn.edu/gkhome/fetch/sw/%{name}/%{name}-%{version}.tar.gz

## This patch sets up libmetis soname of libmetis
Patch0:		%{name}-libmetis.patch

## This patch sets up shared GKlib library
Patch1:		%{name}-shared-GKlib.patch

## Specify the width (32 or 64 bits) of the elementary data type
## used in METIS. This is controled by the IDXTYPEWIDTH
## constant.
## For now, on a 32 bit architecture you can only specify a width of 32,
## whereas for a 64 bit architecture you can specify a width of either
## 32 or 64 bits.
Patch2:		%{name}-width-datatype.patch

## This patch sets up GKREGEX, GKRAND, libsuffix options to the Makefiles
Patch4:		%{name}-GKREGEX-GKRAND-LIBSUFFIX-fix.patch
# elbrus
Patch5:		lcc-pragma.patch

BuildRequires:	cmake >= 2.8
BuildRequires:	openmpi-devel
BuildRequires:	pkgconfig(libpcreposix)
BuildRequires:	help2man
BuildRequires:	gomp-devel

%description
METIS is a set of serial programs for partitioning graphs,
partitioning finite element meshes, and producing fill reducing
orderings for sparse matrices.

The algorithms implemented in METIS are based on the multilevel
recursive-bisection, multilevel k-way, and multi-constraint
partitioning schemes developed in our lab.

%package -n %{libname}
Summary:	Shared libraries for %{name}
Provides:	metis-lib = %{EVRD}
Group:		System/Libraries
Conflicts:	%{name} < 5.1.0-1

%description -n %{libname}
This package contains the shared libraries for %{name}.

%package -n %{devname}
Summary:	The Metis headers and development-related files
Group:		Sciences/Other
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{name}-devel < 5.1.0-1

%description -n %{devname}
Header and library files of Metis.

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch4 -p0

%ifarch %{x86_64}
%patch2 -p0
%endif
%ifarch %{e2k}
%patch5 -p1
%endif

sed -e 's|-O3||g' -i GKlib/GKlibSystem.cmake

%build
# Build metis
%cmake \
	-DCMAKE_C_COMPILER=%{__cc} \
	-DCMAKE_CXX_COMPILER=%{__cxx} \
	-DGKLIB_PATH=../GKlib  \
	-DSHARED=1 \
	-DOPENMP=%{_includedir}/openmpi \
	-DPCRE=%{_includedir} \
	-DCMAKE_CXX_FLAGS="%{optflags} -fopenmp -pthread" \
	-DCMAKE_C_FLAGS="%{optflags} -fopenmp -pthread -lpcreposix" \
	-DCMAKE_VERBOSE_MAKEFILE=1 \
	-DCMAKE_INSTALL_PREFIX=%{_prefix}

%make_build

%check
cp -p %{buildroot}%{_bindir}/* graphs
pushd graphs
LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH ./ndmetis mdual.graph
LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH ./mpmetis metis.mesh 2
LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH ./gpmetis test.mgraph 4
LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH ./gpmetis copter2.graph 4
LD_LIBRARY_PATH=%{buildroot}%{_libdir}:$LD_LIBRARY_PATH ./graphchk 4elt.graph
popd

%install
%make_install -C build

## Generate manpages from binaries
LD_PRELOAD=%{buildroot}%{_libdir}/lib%{name}.so.%{major} \
help2man --version-string="%{version}" -n "Partitions a graph into a specified number of parts." \
 -N --output="gpmetis.1" --no-discard-stderr --help-option="-help" %{buildroot}%{_bindir}/gpmetis

LD_PRELOAD=%{buildroot}%{_libdir}/lib%{name}.so.%{major} \
help2man --version-string="%{version}" \
 -n "Computes a fill-reducing ordering of the vertices of the graph using multilevel nested dissection." \
 -N --output="ndmetis.1" --no-discard-stderr --help-option="-help" %{buildroot}%{_bindir}/ndmetis

LD_PRELOAD=%{buildroot}%{_libdir}/lib%{name}.so.%{major} \
help2man --version-string="%{version}" -n "Partitions a mesh into a specified number of parts." \
 -N --output="mpmetis.1" --no-discard-stderr --help-option="-help" %{buildroot}%{_bindir}/mpmetis

LD_PRELOAD=%{buildroot}%{_libdir}/lib%{name}.so.%{major} \
help2man --version-string="%{version}" -n "Converts a mesh into a graph that is compatible with METIS." \
 -N --output="m2gmetis.1" --no-discard-stderr -h "-help" %{buildroot}%{_bindir}/m2gmetis

mkdir -p %{buildroot}%{_mandir}/man1
mv *.1 %{buildroot}%{_mandir}/man1

%files
%doc LICENSE.txt Changelog manual/manual.pdf
%{_bindir}/*
%{_mandir}/man1/*

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}

%files -n %{devname}
%doc Changelog
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14747 |21mr|metrics-3.1.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          metrics
Version:       3.1.2
Release:       8
Summary:       Java library which gives you what your code does in production
License:       ASL 2.0
URL:           http://metrics.dropwizard.io
Source0:       https://github.com/dropwizard/metrics/archive/v%{version}.tar.gz
# Add rabbitmq-java-client 3.5.x support
Patch0:        metrics-3.1.2-amqp-client35.patch
# Use ehcache-core instead of net.sf.ehcache:ehcache:2.8.3
Patch1:        metrics-3.1.2-ehcache-core.patch

BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.rabbitmq:amqp-client)
BuildRequires: mvn(com.sun.jersey:jersey-server:1)
BuildRequires: mvn(info.ganglia.gmetric4j:gmetric4j)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.ws.rs:javax.ws.rs-api)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sf.ehcache:ehcache-core)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.httpcomponents:httpasyncclient)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.logging.log4j:log4j-api)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.glassfish.jersey.core:jersey-server)
BuildRequires: mvn(org.jdbi:jdbi)
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
BuildRequires: mvn(org.openjdk.jmh:jmh-generator-annprocess)
BuildRequires: mvn(org.slf4j:slf4j-api)

%if 0
# metrics-jetty8
BuildRequires: mvn(org.eclipse.jetty:jetty-server:8.1.11.v20130520)
# metrics-jetty9
BuildRequires: mvn(org.eclipse.jetty:jetty-client:9.2.2.v20140723)
BuildRequires: mvn(org.eclipse.jetty:jetty-server:9.2.2.v20140723)
# metrics-jetty9-legacy
BuildRequires: mvn(org.eclipse.jetty:jetty-server:9.0.4.v20130625)
BuildRequires: mvn(org.eclipse.jetty:jetty-client:9.0.4.v20130625)
# Test deps
BuildRequires: mvn(com.sun.jersey.jersey-test-framework:jersey-test-framework-inmemory)
BuildRequires: mvn(org.glassfish.jersey.test-framework.providers:jersey-test-framework-provider-inmemory)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.assertj:assertj-core:jar:1.6.1)
BuildRequires: mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.python:jython-standalone)
BuildRequires: mvn(org.slf4j:slf4j-simple)
%endif

# Docs deps
BuildRequires: python-sphinx
BuildRequires: /usr/bin/pdflatex

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Metrics is a Java library which gives you unparalleled insight
into what your code does in production.

Developed by Yammer to instrument their JVM-based back-end services,
Metrics provides a powerful toolkit of ways to measure the behavior
of critical components in your production environment.

With modules for common libraries like Jetty, Logback, Log4j,
Apache HttpClient, Ehcache, JDBI, Jersey and reporting back-ends like
Ganglia and Graphite, Metrics provides you with full-stack visibility.

For more information, please see the documentation.

This package provides the Metrics Core Library.

%package annotation
Summary:       Annotations for Metrics

%description annotation
A dependency-less package of just the
annotations used by other Metrics modules.

%package benchmarks
Summary:       Benchmarks for Metrics

%description benchmarks
A development module for performance benchmarks of
Metrics classes.

%package ehcache
Summary:       Metrics Integration for Ehcache

%description ehcache
An Ehcache wrapper providing Metrics instrumentation of caches.

%package ganglia
Summary:       Ganglia Integration for Metrics

%description ganglia
A reporter for Metrics which announces measurements
to a Ganglia cluster.

%package graphite
Summary:       Graphite Integration for Metrics

%description graphite
A reporter for Metrics which announces measurements
to a Graphite server.

%package healthchecks
Summary:       Metrics Health Checks

%description healthchecks
An addition to Metrics which provides the ability to
run application-specific health checks, allowing you
to check your application's heath in production.

%package httpasyncclient
Summary:       Metrics Integration for Apache HttpAsyncClient

%description httpasyncclient
An Apache HttpAsyncClient wrapper providing Metrics
instrumentation of connection pools, request
durations and rates, and other useful information.

%package httpclient
Summary:       Metrics Integration for Apache HttpClient

%description httpclient
An Apache HttpClient wrapper providing Metrics
instrumentation of connection pools, request
durations and rates, and other useful information.

%package jdbi
Summary:       Metrics Integration for JDBI

%description jdbi
A JDBI wrapper providing Metrics instrumentation of
query durations and rates.

%package jersey
Summary:       Metrics Integration for Jersey 1.x

%description jersey
A set of class providing Metrics integration for Jersey 1.x,
the reference JAX-RS implementation.

%package jersey2
Summary:       Metrics Integration for Jersey 2.x

%description jersey2
A set of class providing Metrics integration for Jersey 2.x,
the reference JAX-RS implementation.

%if 0
%package jetty
Summary:       Metrics Integration for Jetty 8/9

%description jetty
A set of extensions for Jetty 8/9 which provide instrumentation of
thread pools, connector metrics, and application latency and
utilization.
%endif

%package json
Summary:       Jackson Integration for Metrics

%description json
A set of Jackson modules which provide serializers
for most Metrics classes.

%package jvm
Summary:       JVM Integration for Metrics

%description jvm
A set of classes which allow you to monitor
critical aspects of your Java Virtual Machine
using Metrics.

%package log4j2
Summary:       Metrics Integration for Log4j 2.x

%description log4j2
An instrumented appender for Log4j 2.x.

%package log4j
Summary:       Metrics Integration for Log4j
Requires:      log4j12

%description log4j
An instrumented appender for Log4j.

%package logback
Summary:       Metrics Integration for Logback

%description logback
An instrumented appender for Logback.

%package parent
Summary:       Metrics Parent POM

%description parent
This package provides Metrics Parent POM.

%package servlet
Summary:       Metrics Integration for Servlets

%description servlet
An instrumented filter for servlet environments.

%package servlets
Summary:       Metrics Utility Servlets

%description servlets
A set of utility servlets for Metrics, allowing you
to expose valuable information about your production
environment.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package doc
Summary:       Metrics's user manual

%description doc
This package contains %{name}'s user manual.

%prep
%setup -q -n %{name}-%{version}
# Cleanup
find . -name "*.class" -delete
find . -name "*.jar" -type f -delete

%patch0 -p1
%patch1 -p1

# Unavailable build deps:
# see rhbz#861502#c3 rhbz#861502#c5 disable jetty9 sub-module (use jetty 9.0.4.v20130625)
%pom_disable_module metrics-jetty8
%pom_disable_module metrics-jetty9
%pom_disable_module metrics-jetty9-legacy

%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin -r :maven-shade-plugin

# Disable javadoc jar
%pom_xpath_remove "pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
# Disable source jar
%pom_remove_plugin :maven-source-plugin

%pom_xpath_set "pom:properties/pom:jersey.version" 1 %{name}-jersey
%pom_add_dep javax.ws.rs:javax.ws.rs-api metrics-jersey2
sed -i "s|jersey.repackaged.||" \
 metrics-jersey2/src/main/java/com/codahale/metrics/jersey2/InstrumentedResourceMethodApplicationListener.java
%pom_add_dep com.google.guava:guava metrics-jersey2

# org.assertj:assertj-core:1.6.1 *
%pom_remove_dep -r org.assertj:assertj-core

%if 0
%mvn_package ":%{name}-jetty8" %{name}-jetty
%mvn_package ":%{name}-jetty9" %{name}-jetty
%mvn_package ":%{name}-jetty9-legacy" %{name}-jetty
%endif

%mvn_alias io.dropwizard.metrics: com.codahale.metrics:

%build

# Unavailable test dep *
%mvn_build -s -f

(
  cd docs
%if 0
  make %{?_smp_mflags} latexpdf
%endif
  make %{?_smp_mflags} singlehtml
  make %{?_smp_mflags} man
)

%install
%mvn_install

mkdir -p %{buildroot}%{_mandir}/man1
install -pm 644 docs/target/man/%{name}.1 %{buildroot}%{_mandir}/man1/

rm -rf docs/target/singlehtml/.buildinfo

%files  -f .mfiles-%{name}-core
%doc README.md
%license LICENSE NOTICE

%files annotation -f .mfiles-%{name}-annotation
%license LICENSE NOTICE

%files benchmarks -f .mfiles-%{name}-benchmarks
%doc %{name}-benchmarks/README.md
%license LICENSE NOTICE

%files ehcache -f .mfiles-%{name}-ehcache
%license LICENSE NOTICE

%files ganglia -f .mfiles-%{name}-ganglia
%license LICENSE NOTICE

%files graphite -f .mfiles-%{name}-graphite
%license LICENSE NOTICE

%files healthchecks -f .mfiles-%{name}-healthchecks
%license LICENSE NOTICE

%files httpasyncclient -f .mfiles-%{name}-httpasyncclient
%license LICENSE NOTICE

%files httpclient -f .mfiles-%{name}-httpclient
%license LICENSE NOTICE

%files jdbi -f .mfiles-%{name}-jdbi
%license LICENSE NOTICE

%files jersey -f .mfiles-%{name}-jersey
%license LICENSE NOTICE

%files jersey2 -f .mfiles-%{name}-jersey2
%license LICENSE NOTICE

%if 0
%files jetty -f .mfiles-%{name}-jetty
%license LICENSE NOTICE
%endif

%files json -f .mfiles-%{name}-json
%license LICENSE NOTICE

%files jvm -f .mfiles-%{name}-jvm
%license LICENSE NOTICE

%files log4j2 -f .mfiles-%{name}-log4j2
%license LICENSE NOTICE

%files log4j -f .mfiles-%{name}-log4j
%license LICENSE NOTICE

%files logback -f .mfiles-%{name}-logback
%license LICENSE NOTICE

%files parent -f .mfiles-%{name}-parent
%license LICENSE NOTICE

%files servlet -f .mfiles-%{name}-servlet
%license LICENSE NOTICE

%files servlets -f .mfiles-%{name}-servlets
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%files doc
%{_mandir}/man1/%{name}.*
%license LICENSE NOTICE
%doc docs/target/singlehtml
%if 0
%doc docs/target/latex/*.pdf
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14748 |21mr|metrics-reporter-config-3.2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           metrics-reporter-config
Version:        3.2.2
Release:        7
Summary:        Manages config for metrics from Coda Hale’s Metrics library

License:        ASL 2.0
URL:            https://github.com/addthis/%{name}
Source0:        https://github.com/addthis/%{name}/archive/v%{version}.tar.gz

# remove optional dependencies references
# from files ReporterConfig.java SampleTest.java
Patch0:         remove_optional_deps.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
# build parent
BuildRequires:  maven-local
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.yaml:snakeyaml)
BuildRequires:  mvn(org.hibernate:hibernate-validator)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
# build
# it seems weird that this package requires itself, let's try to break
# this cycle dependency
#BuildRequires:  mvn(com.addthis.metrics:reporter-config-base)
BuildRequires:  mvn(io.dropwizard.metrics:metrics-core)
BuildRequires:  mvn(io.dropwizard.metrics:metrics-ganglia)
BuildRequires:  mvn(io.dropwizard.metrics:metrics-graphite)
BuildRequires:  mvn(io.dropwizard.metrics:metrics-jvm)
# testing parent
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(org.mockito:mockito-all)

# optional (not needed by cassandra therefore not packaged)
#BuildRequires:  mvn(com.readytalk:metrics-statsd-common)
#BuildRequires:  mvn(com.readytalk:metrics-statsd)
#BuildRequires:  mvn(io.github.hengyunabc:zabbix-sender)
#BuildRequires:  mvn(io.prometheus:simpleclient_pushgateway)
#BuildRequires:  mvn(io.prometheus:simpleclient_servlet)

%description
Coda Hale's Metrics package makes it easy to create useful metrics so you
know what is going on in production. In addition to showing up in the
normal Java places (JMX), Metrics supports an arbitrary number of Reporters
(where to send the application telemetry to make pretty graphs).
Ganglia and Graphite (or both) are among the most popular choices.

However, Metrics purposefully doesn't come with a kitchen sink of support for
every dependency injection or configuration tool yet devised by Java
developers. Metrics-Reporter-Config aims to provide a simple way to configure
and enable a set of Reporters that can be shared among applications. It
should fit most (say 90% of) use cases and avoid situations like a plethora
of subtly incompatible properties files.

%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

%mvn_alias :reporter-config3 :reporter-config
%mvn_file :reporter-config3 %{name}/reporter-config

# disable unnecessary module
%pom_disable_module reporter-config2

# remove parent (requires are preserved)
%pom_remove_parent 

# fix some versions because of missing parent
%pom_xpath_set "pom:version[text()='\${dep.slf4j.version}']" "1.7.14"
%pom_xpath_set "pom:version[text()='\${dep.guava.version}']" "19.0"

# missing org.junit
%pom_add_dep junit:junit::test

# remove optional dependencies
%pom_remove_dep com.readytalk:metrics-statsd-common reporter-config3
%pom_remove_dep com.readytalk:metrics3-statsd reporter-config3
%pom_remove_dep io.github.hengyunabc:zabbix-sender reporter-config3
%pom_remove_dep com.aphyr:riemann-java-client reporter-config3

# remove missing dependencies (not needed for cassandra)
%pom_remove_dep com.izettle:dropwizard-metrics-influxdb reporter-config3
%pom_remove_dep io.prometheus:simpleclient_pushgateway reporter-config3
%pom_remove_dep io.prometheus:simpleclient_servlet reporter-config3

# remove files using optional dependencies
rm reporter-config3/src/main/java/com/addthis/metrics3/reporter/config/InfluxDBReporterConfig.java
rm reporter-config3/src/main/java/com/addthis/metrics3/reporter/config/ZabbixReporter.java
rm reporter-config3/src/main/java/com/addthis/metrics3/reporter/config/StatsDReporterConfig.java
rm reporter-config3/src/main/java/com/addthis/metrics3/reporter/config/ZabbixReporterConfig.java
rm -r reporter-config3/src/main/java/com/addthis/metrics3/reporter/config/prometheus
rm reporter-config3/src/main/java/com/addthis/metrics3/reporter/config/PrometheusReporter.java
rm reporter-config3/src/main/java/com/addthis/metrics3/reporter/config/PrometheusReporterConfig.java
rm reporter-config3/src/test/java/com/addthis/metrics3/reporter/config/StatsDReporterConfigTest.java
rm reporter-config3/src/main/java/com/addthis/metrics3/reporter/config/RiemannReporterConfig.java

# removeOptionalDeps patch
%patch0 -p1

# change maven-compiler-plugin source so that it supports diamond operators
%pom_add_plugin :maven-compiler-plugin . "<configuration>
<source>7</source>
<target>1.7</target>
</configuration>"

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.mdown
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14749 |21mr|mfs-3.0.116-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	mfsconfdir	%{_sysconfdir}/mfs

%define major 1
%define libname %mklibname mfsio %{major}
%define devname %mklibname mfsio -d

Summary:	MooseFS - distributed, fault tolerant file system
Name:		mfs
Version:	3.0.116
Release:	2
License:	GPLv3+
Group:		System/Cluster
Url:		http://www.moosefs.org/
Source0:	https://github.com/moosefs/moosefs/archive/refs/tags/v%{version}.tar.gz?/moosefs-%{version}.tar.gz
Source1:	mfs.sysusers.conf
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(zlib)
Requires(post):	/bin/systemd-sysusers

%description
MooseFS is an Open Source, easy to deploy and maintain, distributed,
fault tolerant file system for POSIX compliant OSes.

%files
%doc NEWS README*
%{_sysusersdir}/mfs.conf

%post
%sysusers_create mfs.conf

#----------------------------------------------------------------------------
%package -n %{libname}
Summary:	MooseFS shared library
Group:		System/Libraries

%description -n %{libname}
MooseFS shared library.

%files -n %{libname}
%{_libdir}/libmfsio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MooseFS development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	mfsio-devel = %{EVRD}
Provides:	moosefs-devel = %{EVRD}
Provides:	mfs-devel = %{EVRD}

%description -n %{devname}
MooseFS development files.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/libmfsio.so
#----------------------------------------------------------------------------

%package master
Summary:	MooseFS master server
Group:		System/Cluster
Requires:	user(mfs)

%description master
MooseFS master (metadata) server together with metarestore utility.

%files master
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/mfsmaster
%attr(755,root,root) %{_sbindir}/mfsmetadump
%attr(755,root,root) %{_sbindir}/mfsmetarestore
%{_mandir}/man5/mfsexports.cfg.5*
%{_mandir}/man5/mfsmaster.cfg.5*
%{_mandir}/man5/mfstopology.cfg.5.xz
%{_mandir}/man8/mfsmaster.8*
%{_mandir}/man8/mfsmetarestore.8*
%{mfsconfdir}/mfsexports.cfg
%{mfsconfdir}/mfsmount.cfg
%{mfsconfdir}/mfsmaster.cfg
%{mfsconfdir}/mfstopology.cfg
%attr(755,mfs,mfs) %{_localstatedir}/mfs
%{_unitdir}/moosefs-master.service
%{_unitdir}/moosefs-master@.service

%post master
%systemd_post moosefs-master.service

%preun master
%systemd_preun moosefs-master.service

%postun master
%systemd_postun_with_restart moosefs-master.service

#----------------------------------------------------------------------------

%package metalogger
Summary:	MooseFS metalogger server
Group:		System/Cluster
Requires:	user(mfs)

%description metalogger
MooseFS metalogger (metadata replication) server.

%files metalogger
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/mfsmetalogger
%{_mandir}/man5/mfsmetalogger.cfg.5*
%{_mandir}/man8/mfsmetalogger.8*
%{mfsconfdir}/mfsmetalogger.cfg
%{_unitdir}/moosefs-metalogger.service
%{_unitdir}/moosefs-metalogger@.service

%post metalogger
%systemd_post moosefs-metalogger.service

%preun metalogger
%systemd_preun moosefs-metalogger.service

%postun metalogger
%systemd_postun_with_restart moosefs-metalogger.service


#----------------------------------------------------------------------------

%package chunkserver
Summary:	MooseFS data server
Group:		System/Cluster
Requires:	user(mfs)

%description chunkserver
MooseFS data server.

%files chunkserver
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/mfschunkserver
%{_mandir}/man5/mfschunkserver.cfg.5*
%{_mandir}/man5/mfshdd.cfg.5*
%{_mandir}/man8/mfschunkserver.8*
%{mfsconfdir}/mfschunkserver.cfg
%{mfsconfdir}/mfshdd.cfg
%{_unitdir}/moosefs-chunkserver.service
%{_unitdir}/moosefs-chunkserver@.service

%post chunkserver
%systemd_post moosefs-chunkserver.service

%preun chunkserver
%systemd_preun moosefs-chunkserver.service

%postun chunkserver
%systemd_postun_with_restart moosefs-chunkserver.service


#----------------------------------------------------------------------------

%package client
Summary:	MooseFS client
Group:		System/Cluster

%description client
MooseFS client: mfsmount and mfstools.

%files client
%defattr(644,root,root,755)
%doc NEWS README*
%attr(755,root,root) %{_bindir}/mfsappendchunks
%attr(755,root,root) %{_bindir}/mfscheckfile
%attr(755,root,root) %{_bindir}/mfsdeleattr
%attr(755,root,root) %{_bindir}/mfsdirinfo
%attr(755,root,root) %{_bindir}/mfsfileinfo
%attr(755,root,root) %{_bindir}/mfsfilerepair
%attr(755,root,root) %{_bindir}/mfsgeteattr
%attr(755,root,root) %{_bindir}/mfsgetgoal
%attr(755,root,root) %{_bindir}/mfsgettrashtime
%attr(755,root,root) %{_bindir}/mfsmakesnapshot
%attr(755,root,root) %{_bindir}/mfsmount
%attr(755,root,root) %{_bindir}/mfsrgetgoal
%attr(755,root,root) %{_bindir}/mfsrgettrashtime
%attr(755,root,root) %{_bindir}/mfsrsetgoal
%attr(755,root,root) %{_bindir}/mfsrsettrashtime
%attr(755,root,root) %{_bindir}/mfsseteattr
%attr(755,root,root) %{_bindir}/mfssetgoal
%attr(755,root,root) %{_bindir}/mfssettrashtime
%attr(755,root,root) %{_bindir}/mfstools
%attr(755,root,root) %{_bindir}/mfschkarchive
%attr(755,root,root) %{_bindir}/mfscli
%attr(755,root,root) %{_bindir}/mfsclrarchive
%attr(755,root,root) %{_bindir}/mfscopyeattr
%attr(755,root,root) %{_bindir}/mfscopygoal
%attr(755,root,root) %{_bindir}/mfscopyquota
%attr(755,root,root) %{_bindir}/mfscopysclass
%attr(755,root,root) %{_bindir}/mfscopytrashtime
%attr(755,root,root) %{_bindir}/mfsdelquota
%attr(755,root,root) %{_bindir}/mfsfilepaths
%attr(755,root,root) %{_bindir}/mfsgetquota
%attr(755,root,root) %{_bindir}/mfsgetsclass
%attr(755,root,root) %{_bindir}/mfslistsclass
%attr(755,root,root) %{_bindir}/mfsrmsnapshot
%attr(755,root,root) %{_bindir}/mfsscadmin
%attr(755,root,root) %{_bindir}/mfssetarchive
%attr(755,root,root) %{_bindir}/mfssetquota
%attr(755,root,root) %{_bindir}/mfssetsclass
%attr(755,root,root) %{_bindir}/mfsxchgsclass
%attr(755,root,root) /sbin/mount.moosefs
%attr(755,root,root) %{_sbindir}/mfsbdev
%attr(755,root,root) %{_sbindir}/mfschunktool
%attr(755,root,root) %{_sbindir}/mfscsstatsdump
%attr(755,root,root) %{_sbindir}/mfsmetadirinfo
%attr(755,root,root) %{_sbindir}/mfsstatsdump
%{_mandir}/man1/mfsappendchunks.1*
%{_mandir}/man1/mfscheckfile.1*
%{_mandir}/man1/mfsdeleattr.1*
%{_mandir}/man1/mfsdirinfo.1*
%{_mandir}/man1/mfsfileinfo.1*
%{_mandir}/man1/mfsfilerepair.1*
%{_mandir}/man1/mfsgeteattr.1*
%{_mandir}/man1/mfsgetgoal.1*
%{_mandir}/man1/mfsgettrashtime.1*
%{_mandir}/man1/mfsmakesnapshot.1*
%{_mandir}/man1/mfsrgetgoal.1*
%{_mandir}/man1/mfsrgettrashtime.1*
%{_mandir}/man1/mfsrsetgoal.1*
%{_mandir}/man1/mfsrsettrashtime.1*
%{_mandir}/man1/mfsseteattr.1*
%{_mandir}/man1/mfssetgoal.1*
%{_mandir}/man1/mfssettrashtime.1*
%{_mandir}/man1/mfssnapshots.1*
%{_mandir}/man1/mfstools.1*
%{_mandir}/man1/mfsarchive.1.xz
%{_mandir}/man1/mfschkarchive.1.xz
%{_mandir}/man1/mfscli.1.xz
%{_mandir}/man1/mfsclrarchive.1.xz
%{_mandir}/man1/mfscopyeattr.1.xz
%{_mandir}/man1/mfscopygoal.1.xz
%{_mandir}/man1/mfscopyquota.1.xz
%{_mandir}/man1/mfscopysclass.1.xz
%{_mandir}/man1/mfscopytrashtime.1.xz
%{_mandir}/man1/mfsdelquota.1.xz
%{_mandir}/man1/mfsdiagtools.1.xz
%{_mandir}/man1/mfseattr.1.xz
%{_mandir}/man1/mfsfilepaths.1.xz
%{_mandir}/man1/mfsgetquota.1.xz
%{_mandir}/man1/mfsgetsclass.1.xz
%{_mandir}/man1/mfsgoal.1.xz
%{_mandir}/man1/mfslistsclass.1.xz
%{_mandir}/man1/mfsquota.1.xz
%{_mandir}/man1/mfsrmsnapshot.1.xz
%{_mandir}/man1/mfsscadmin.1.xz
%{_mandir}/man1/mfssclass.1.xz
%{_mandir}/man1/mfssetarchive.1.xz
%{_mandir}/man1/mfssetquota.1.xz
%{_mandir}/man1/mfssetsclass.1.xz
%{_mandir}/man1/mfstrashtime.1.xz
%{_mandir}/man1/mfsxchgsclass.1.xz
%{_mandir}/man8/mfsmount.8*
%{_mandir}/man8/mfsbdev.8.xz
%{_mandir}/man8/mfschunktool.8.xz
%{_mandir}/man8/mfscsstatsdump.8.xz
%{_mandir}/man8/mfsmetadirinfo.8.xz
%{_mandir}/man8/mfsmetadump.8.xz
%{_mandir}/man8/mfsstatsdump.8.xz
%{_mandir}/man8/mount.moosefs.8.xz

#----------------------------------------------------------------------------

%package cgi
Summary:	MooseFS CGI Monitor
Group:		System/Cluster
Requires:	python3
Requires:	user(mfs)

%description cgi
MooseFS CGI Monitor.

%files cgi
%defattr(644,root,root,755)
%attr(755,root,root) %{_sbindir}/mfscgiserv
%{_mandir}/man8/mfscgiserv.8*
%attr(755,mfs,mfs) %{_datadir}/mfscgi
%{_unitdir}/moosefs-cgiserv.service

%post cgi
%systemd_post moosefs-cgiserv.service

%preun cgi
%systemd_preun moosefs-cgiserv.service

%postun cgi
%systemd_postun_with_restart moosefs-cgiserv.service

#----------------------------------------------------------------------------

%prep
%setup -q -n moosefs-%{version}

%build
autoreconf -fi
%configure \
	--with-systemdsystemunitdir=%{_unitdir} \
	--with-default-user=mfc \
	--with-default-grop=mfc
%make

%install
%makeinstall_std

# creating default configs
mv %{buildroot}%{mfsconfdir}/mfsexports.cfg.sample %{buildroot}%{mfsconfdir}/mfsexports.cfg
mv %{buildroot}%{mfsconfdir}/mfsmount.cfg.sample %{buildroot}%{mfsconfdir}/mfsmount.cfg
mv %{buildroot}%{mfsconfdir}/mfsmaster.cfg.sample %{buildroot}%{mfsconfdir}/mfsmaster.cfg
mv %{buildroot}%{mfsconfdir}/mfstopology.cfg.sample %{buildroot}%{mfsconfdir}/mfstopology.cfg
mv %{buildroot}%{mfsconfdir}/mfsmetalogger.cfg.sample %{buildroot}%{mfsconfdir}/mfsmetalogger.cfg
mv %{buildroot}%{mfsconfdir}/mfschunkserver.cfg.sample %{buildroot}%{mfsconfdir}/mfschunkserver.cfg
mv %{buildroot}%{mfsconfdir}/mfshdd.cfg.sample %{buildroot}%{mfsconfdir}/mfshdd.cfg

# install sysuser config
install -d %{buildroot}/%{_sysusersdir}
install -m0644 %{SOURCE1} %{buildroot}/%{_sysusersdir}/mfs.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14750 |21mr|mgetty-1.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Date Jun15

Summary:	A getty replacement for use with data and fax modems
Name:		mgetty
Version:	1.2.1
Release:	3
License:	GPLv2+
Group:		Communications
Url:		http://mgetty.greenie.net/
Source0:	ftp://mgetty.greenie.net/pub/mgetty/source/1.2/mgetty-%{version}.tar.gz
Source1:	ftp://mgetty.greenie.net/pub/mgetty/source/1.2/mgetty-%{version}.tar.gz.asc
Source2:	logrotate.mgetty
Source3:	logrotate.sendfax
Source4:	logrotate.vgetty
Source5:	logrotate.vm
Source6:	vgetty@.service
Source7:	mgetty@.service

Patch0:		mgetty-1.2.1-config.patch
Patch1:		mgetty-1.2.1-policy.patch
Patch2:		mgetty-1.2.1-system-gsm.patch
Patch4:		mgetty-1.1.25-voiceconfig.patch
Patch5:		mgetty-1.2.1-issue.patch
Patch6:		mgetty-1.1.31-issue-doc.patch
Patch7:		mgetty-1.1.29-helper.patch
Patch8:		mgetty-1.2.1-mktemp.patch
Patch9:		mgetty-1.2.1-unioninit.patch
Patch11:	mgetty-1.2.1-helper2.patch
Patch12:	mgetty-1.2.1-no-acroread.patch
Patch14:	mgetty-1.2.1-sendmail_path.patch
Patch15:	mgetty-1.2.1-lfs.patch
Patch16:	mgetty-1.2.1-162174_tcflush.patch
Patch18:	mgetty-1.1.33-bug_63843.patch
Patch19:	mgetty-1.1.33-167830_tty_access.patch
Patch20:	mgetty-1.2.1-167830.patch
Patch21:	mgetty-1.2.1-turn.patch
Patch22:	mgetty-1.2.1-time_range.patch
# man pages corrections
Patch23:	mgetty-1.2.1-handle_spaces.patch
# updates info about starting vgetty tgrough systemd
Patch24:	mgetty-1.1.36-man.patch
Patch25:	mgetty-1.1.36-sd.patch
# patch updates makefiles, it removes hardcoded -s parameter of /usr/bin/install
# thus .debug files for all binaries will be generated properly
Patch26:	mgetty-1.1.36-makefiles.patch
Patch27:	mgetty-1.2.1-lockdev.patch
Patch28:	mgetty-1.2.1-hardening.patch
# patches (Fc)
Patch29:	mgetty-sys_nerr-removed.patch
BuildRequires:	groff-for-man
BuildRequires:	gccmakedep
BuildRequires:	imake
BuildRequires:	texinfo
BuildRequires:	gsm-devel
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(lockdev)
Requires:	netpbm

%description
The mgetty package contains a "smart" getty which allows logins over a
serial line (i.e., through a modem).  If you're using a Class 2 or 2.0
modem, mgetty can receive faxes.  If you also need to send faxes, you'll
need to install the sendfax program.

If you'll be dialing in to your system using a modem, you should install
the mgetty package.  If you'd like to send faxes using mgetty and your
modem, you'll need to install the mgetty-sendfax program.  If you need a
viewer for faxes, you'll also need to install the mgetty-viewfax package.

%files
%doc BUGS ChangeLog README.1st Recommend THANKS doc/modems.db samples
%license COPYING
%{_bindir}/g3cat
%{_bindir}/g32pbm
%{_sbindir}/mgetty
%{_sbindir}/callback
%{_mandir}/man1/g32pbm.1*
%{_mandir}/man1/g3cat.1*
%{_mandir}/man4/mgettydefs.4*
%{_mandir}/man8/mgetty.8*
%{_mandir}/man8/callback.8*
%{_infodir}/mgetty.info*
%dir %{_sysconfdir}/mgetty+sendfax
%config(noreplace) %{_sysconfdir}/mgetty+sendfax/login.config
%config(noreplace) %{_sysconfdir}/mgetty+sendfax/mgetty.config
%config(noreplace) %{_sysconfdir}/mgetty+sendfax/dialin.config
%config(noreplace) %{_sysconfdir}/logrotate.d/mgetty
%{_unitdir}/mgetty@.service

#----------------------------------------------------------------------------

%package	sendfax
Summary:	Provides support for sending faxes over a modem
Requires:	mgetty = %{EVRD}
Conflicts:	hylafax
Requires(post,preun):	rpm-helper

%description	sendfax
Sendfax is a standalone backend program for sending fax files.  The
mgetty program (a getty replacement for handling logins over a serial
line) plus sendfax will allow you to send faxes through a Class 2 modem.

If you'd like to send faxes over a Class 2 modem, you'll need to install
the mgetty-sendfax and the mgetty packages.

%files sendfax
%dir %{_var}/spool/fax
%attr(0755,fax,root) %dir %{_var}/spool/fax/incoming
%attr(0755,fax,root) %dir %{_var}/spool/fax/outgoing
%attr(0755,root,root) %{_bindir}/ct
%{_bindir}/faxq
%{_bindir}/faxrm
%{_bindir}/faxrunq
%{_bindir}/faxspool
%{_bindir}/kvg
%{_bindir}/newslock
%{_bindir}/pbm2g3
%{_bindir}/sff2g3
%{_sbindir}/faxrunqd
%{_sbindir}/sendfax
%dir %{_libdir}/mgetty+sendfax
%{_libdir}/mgetty+sendfax/cour25.pbm
%{_libdir}/mgetty+sendfax/cour25n.pbm
# helper tests internally usage of suid - this is an intention
%attr(04711,fax,root) %{_libdir}/mgetty+sendfax/faxq-helper
%{_mandir}/man1/pbm2g3.1*
%{_mandir}/man1/mgetty_fax.1*
%{_mandir}/man1/faxspool.1*
%{_mandir}/man1/faxrunq.1*
%{_mandir}/man1/faxq.1*
%{_mandir}/man1/faxrm.1*
%{_mandir}/man1/coverpg.1*
%{_mandir}/man1/sff2g3.1*
%{_mandir}/man5/faxqueue.5*
%{_mandir}/man8/faxq-helper.8*
%{_mandir}/man8/faxrunqd.8*
%{_mandir}/man8/sendfax.8*
%dir %{_sysconfdir}/mgetty+sendfax
%config(noreplace) %{_sysconfdir}/mgetty+sendfax/sendfax.config
%config(noreplace) %{_sysconfdir}/mgetty+sendfax/faxrunq.config
# sample config file doesn't use noreplace option to be installed always latest ver.
%config %{_sysconfdir}/mgetty+sendfax/faxspool.rules.sample
%config(noreplace) %{_sysconfdir}/mgetty+sendfax/faxheader
# logrotate file name uses only sub-package name
%config(noreplace) %{_sysconfdir}/logrotate.d/sendfax
# faxrunqd unit file
%{_unitdir}/faxrunqd.service

%pre sendfax
%_pre_useradd fax %{_var}/spool/fax /bin/sh

%postun sendfax
%_postun_userdel fax
if [ $1 = 0 ]; then
  %{__rm} -fr /var/log/sendfax.log*
fi

#----------------------------------------------------------------------------

%package	voice
Summary:	A program for using your modem and mgetty as an answering machine
Requires:	mgetty = %{EVRD}

%description	voice
The mgetty-voice package contains the vgetty system, which enables
mgetty and your modem to support voice capabilities.  In simple terms,
vgetty lets your modem act as an answering machine.  How well the system
will work depends upon your modem, which may or may not be able to handle
this kind of implementation.

Install mgetty-voice along with mgetty if you'd like to try having your
modem act as an answering machine.

%files voice
%doc voice/doc/* voice/Announce voice/ChangeLog voice/Readme
%dir %{_var}/spool/voice
%dir %{_var}/spool/voice/incoming
%dir %{_var}/spool/voice/messages
%{_sbindir}/vgetty
%{_bindir}/vm
%{_bindir}/pvfamp
%{_bindir}/pvfcut
%{_bindir}/pvfecho
%{_bindir}/pvffft
%{_bindir}/pvffile
%{_bindir}/pvffilter
%{_bindir}/pvfmix
%{_bindir}/pvfnoise
%{_bindir}/pvfreverse
%{_bindir}/pvfsine
%{_bindir}/pvfspeed
%{_bindir}/rmdfile
%{_bindir}/pvftormd
%{_bindir}/rmdtopvf
%{_bindir}/pvftovoc
%{_bindir}/voctopvf
%{_bindir}/pvftolin
%{_bindir}/lintopvf
%{_bindir}/pvftobasic
%{_bindir}/basictopvf
%{_bindir}/pvftoau
%{_bindir}/autopvf
%{_bindir}/pvftowav
%{_bindir}/wavtopvf
%{_mandir}/man1/zplay.1*
%{_mandir}/man1/pvf.1*
%{_mandir}/man1/pvfamp.1*
%{_mandir}/man1/pvfcut.1*
%{_mandir}/man1/pvfecho.1*
%{_mandir}/man1/pvffile.1*
%{_mandir}/man1/pvffft.1*
%{_mandir}/man1/pvfmix.1*
%{_mandir}/man1/pvfreverse.1*
%{_mandir}/man1/pvfsine.1*
%{_mandir}/man1/pvfspeed.1*
%{_mandir}/man1/pvftormd.1*
%{_mandir}/man1/pvffilter.1*
%{_mandir}/man1/pvfnoise.1*
%{_mandir}/man1/rmdtopvf.1*
%{_mandir}/man1/rmdfile.1*
%{_mandir}/man1/pvftovoc.1*
%{_mandir}/man1/voctopvf.1*
%{_mandir}/man1/pvftolin.1*
%{_mandir}/man1/lintopvf.1*
%{_mandir}/man1/pvftobasic.1*
%{_mandir}/man1/basictopvf.1*
%{_mandir}/man1/pvftoau.1*
%{_mandir}/man1/autopvf.1*
%{_mandir}/man1/pvftowav.1*
%{_mandir}/man1/wavtopvf.1*
%{_mandir}/man8/vgetty.8*
%dir %{_sysconfdir}/mgetty+sendfax
%config(noreplace) %{_sysconfdir}/mgetty+sendfax/voice.conf
# logrotate file name uses only sub-package name
%config(noreplace) %{_sysconfdir}/logrotate.d/vgetty
%config(noreplace) %{_sysconfdir}/logrotate.d/vm
%{_unitdir}/vgetty@.service

#----------------------------------------------------------------------------

%package	viewfax
Summary:	An X Window System fax viewer
Requires:	mgetty = %{EVRD}

%description	viewfax
Viewfax displays the fax files received using mgetty in an X11 window.
Viewfax is capable of zooming in and out on the displayed fax.

If you're installing the mgetty-viewfax package, you'll also need to
install mgetty.

%files viewfax
%doc frontends/X11/viewfax/C* frontends/X11/viewfax/README
%{_bindir}/viewfax
%dir %{_libdir}/mgetty+sendfax
%{_libdir}/mgetty+sendfax/viewfax.tif
%{_mandir}/man1/viewfax.1*

#----------------------------------------------------------------------------

%package	contrib
Summary:	User contributed stuff that comes with %{name}
AutoReqProv:	no

%description	contrib
The contents of the contrib directory that comes with %{name}.

%files contrib
%defattr(644,root,root,755)
%doc contrib/*

#----------------------------------------------------------------------------

%prep
%setup -q
mv policy.h-dist policy.h
%patch0 -p1 -b .config
%patch1 -p1 -b .policy
%patch2 -p1 -b .system-gsm
rm -r voice/libmgsm
%patch4 -p1 -b .voiceconfig
%patch5 -p1 -b .issue
%patch6 -p1 -b .issue-doc
%patch7 -p1 -b .helper
%patch8 -p1 -b .mktemp
%patch9 -p1 -b .unioninit
%patch11 -p1 -b .helper2
%patch12 -p1 -b .no-acroread
%patch14 -p1 -b .sendmail_path
%patch15 -p1 -b .lfs
%patch16 -p1 -b .162174_tcflush
%patch18 -p1 -b .bug_63843
%patch19 -p1 -b .167830_tty_access
%patch20 -p1 -b .167830
%patch21 -p1 -b .turn
%patch22 -p1 -b .time_range
%patch23 -p1 -b .handle_spaces
%patch24 -p1 -b .man
%patch25 -p1 -b .sd
%patch26 -p1 -b .makefile
%patch27 -p1 -b .lockdev
%patch28 -p1 -b .hardening
%patch29 -p1

sed -i \
	-e 's:^CC=cc:CC=%{__cc}:g' \
	-e 's:^CFLAGS=:CFLAGS=%{optflags}:g' \
	{,*/}Makefile

sed -i \
	-e 's:^AR=:AR?=:g' \
	-e 's:^CFLAGS=:CFLAGS+= -I..:g' \
	-e 's:^RANLIB=:RANLIB?=:g' \
	*/Makefile

%build
%define makeflags CFLAGS="$RPM_OPT_FLAGS -Wall -DAUTO_PPP -D_FILE_OFFSET_BITS=64 -DHAVE_LOCKDEV -fno-strict-aliasing" LIBS="-llockdev" prefix=%{_prefix} spool=%{_var}/spool BINDIR=%{_bindir} SBINDIR=%{_sbindir} LIBDIR=%{_libdir}/mgetty+sendfax HELPDIR=%{_libdir}/mgetty+sendfax CONFDIR=%{_sysconfdir}/mgetty+sendfax MANDIR=%{_mandir} MAN1DIR=%{_mandir}/man1 MAN4DIR=%{_mandir}/man4 MAN5DIR=%{_mandir}/man5 MAN8DIR=%{_mandir}/man8 INFODIR=%{_infodir} ECHO='"echo -e"' INSTALL=%{__install}
make %{makeflags}
make -C voice %{makeflags} CC=%{__cc}
make -C tools %{makeflags} CC=%{__cc}

pushd frontends/X11/viewfax
make OPT="$RPM_OPT_FLAGS" CC=%{__cc} CONFDIR=%{_sysconfdir}/mgetty+sendfax
popd

%install

mkdir -p %{buildroot}{%{_bindir},%{_infodir},%{_libdir}/mgetty+sendfax}
mkdir -p %{buildroot}{%{_mandir},%{_sbindir},/var/spool}
mkdir -p %{buildroot}%{_sysconfdir}/mgetty+sendfax

%define instflags CFLAGS="$RPM_OPT_FLAGS -Wall -DAUTO_PPP" prefix=%{buildroot}%{_prefix} spool=%{buildroot}%{_var}/spool BINDIR=%{buildroot}%{_bindir} SBINDIR=%{buildroot}%{_sbindir} LIBDIR=%{buildroot}%{_libdir}/mgetty+sendfax HELPDIR=%{buildroot}%{_libdir}/mgetty+sendfax CONFDIR=%{buildroot}%{_sysconfdir}/mgetty+sendfax MANDIR=%{buildroot}%{_mandir} MAN1DIR=%{buildroot}%{_mandir}/man1 MAN4DIR=%{buildroot}%{_mandir}/man4 MAN5DIR=%{buildroot}%{_mandir}/man5 MAN8DIR=%{buildroot}%{_mandir}/man8 INFODIR=%{buildroot}%{_infodir} ECHO='echo -e' INSTALL=%{__install}

make install %instflags
# the non-standard executable permissions are used due to security
install -m700 callback/callback %{buildroot}%{_sbindir}
# helper tests internally usage of suid - this is an intention
install -m4711 callback/ct %{buildroot}%{_bindir}

# this conflicts with efax
mv %{buildroot}%{_mandir}/man1/fax.1 %{buildroot}%{_mandir}/man1/mgetty_fax.1

# tools
make -C tools install %instflags

# voice mail extensions
mkdir -p %{buildroot}%{_var}/spool/voice/{messages,incoming}
make -C voice install %instflags
# the non-standard permissions are used due to security
install -m 600 -c voice/voice.conf-dist %{buildroot}%{_sysconfdir}/mgetty+sendfax/voice.conf

# don't ship documentation that is executable...
find samples -type f -exec chmod 644 {} \;

make -C frontends/X11/viewfax install %instflags MANDIR=%{buildroot}%{_mandir}/man1

# install logrotate control files
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d

# install unit file template for vgetty
mkdir -p %{buildroot}%{_unitdir}

install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/mgetty
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/sendfax
install -m 0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/vgetty
install -m 0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/logrotate.d/vm
install -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
# install faxrunqd.service
install -m 0644 distro/faxrunqd.service %{buildroot}%{_unitdir}/

# remove file droppings from buildroot
rm -f %{buildroot}%{_bindir}/cutbl

# remove file conflict with netpbm:
rm -f %{buildroot}%{_bindir}/g3topbm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14751 |21mr|mhash-0.9.9.9-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname mhash %{major}
%define devname %mklibname mhash -d

Summary:	Thread-safe hash library
Name:		mhash
Version:	0.9.9.9
Release:	19
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://mhash.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/mhash/%{name}-%{version}.tar.gz
Source1:	mhash.pc
Patch2:		mhash-0.9.9.9-align.patch
Patch3:		mhash-0.9.9.9-force64bit-tiger.patch
# Taken from Gentoo:
# http://mirror.its.uidaho.edu/pub/gentoo-portage/app-crypt/mhash/files/mhash-0.9.9-fix-snefru-segfault.patch
Patch4:		mhash-0.9.9.9-fix-snefru-segfault.patch
# Taken from Gentoo:
# http://mirror.its.uidaho.edu/pub/gentoo-portage/app-crypt/mhash/files/mhash-0.9.9-fix-mem-leak.patch
Patch5:		mhash-0.9.9.9-fix-mem-leak.patch
# Taken from Gentoo:
# http://mirror.its.uidaho.edu/pub/gentoo-portage/app-crypt/mhash/files/mhash-0.9.9-fix-whirlpool-segfault.patch
Patch6:		mhash-0.9.9.9-fix-whirlpool-segfault.patch
# Taken from Gentoo:
# http://mirror.its.uidaho.edu/pub/gentoo-portage/app-crypt/mhash/files/mhash-0.9.9-autotools-namespace-stomping.patch
Patch7:		mhash-0.9.9.9-autotools-namespace-stomping.patch
# Taken from openpkg:
# http://www.mail-archive.com/openpkg-cvs@openpkg.org/msg26353.html
Patch8:		mhash-0.9.9.9-maxint.patch
# Taken from Jitesh Shah
# http://ftp.uk.linux.org/pub/armlinux/fedora/diffs-f11/mhash/0001-Alignment-fixes.patch
Patch9:		mhash-0.9.9.9-alignment.patch
# Fix keygen_test
Patch10:	mhash-0.9.9.9-keygen_test_fix.patch
# Fix mhash_test (credit to Hanno Bock back in 2015)
Patch11:	mhash-0.9.9.9-no-free-before-use.patch

%description
Mhash is a thread-safe hash library, implemented in C, and provides a uniform
interface to a large number of hash algorithms (MD5, SHA-1, HAVAL, RIPEMD128,
RIPEMD160, TIGER, GOST). These algorithms can be used to compute checksums,
message digests, and other signatures. The HMAC support implements the basics
for message authentication,  following RFC 2104.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Thread-safe hash library
Group:		System/Libraries

%description -n %{libname}
Mhash is a thread-safe hash library, implemented in C, and provides a uniform
interface to a large number of hash algorithms (MD5, SHA-1, HAVAL, RIPEMD128,
RIPEMD160, TIGER, GOST). These algorithms can be used to compute checksums,
message digests, and other signatures. The HMAC support implements the basics
for message authentication,  following RFC 2104.

%files -n %{libname}
%{_libdir}/libmhash.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for developing apps which will use mhash
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Mhash is a thread-safe hash library, implemented in C, and provides a uniform
interface to a large number of hash algorithms (MD5, SHA-1, HAVAL, RIPEMD128,
RIPEMD160, TIGER, GOST). These algorithms can be used to compute checksums,
message digests, and other signatures. The HMAC support implements the basics
for message authentication,  following RFC 2104.

The mhash-devel package contains the header files and libraries needed to
develop programs that use the mhash library.

Install the mhash-devel package if you want to develop applications that will
use the mhash library.

%files -n %{devname}
%doc AUTHORS COPYING INSTALL ChangeLog NEWS README TODO doc/*.c doc/skid2* 
%{_includedir}/*.h
%dir %{_includedir}/mutils
%{_includedir}/mutils/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoconf

%configure \
	--disable-static \
	--enable-shared

# If this exits, the multiarch patch needs an update.
grep 'define SIZEOF_' include/mutils/mhash_config.h && exit 1

%make_build

%install
%make_install

# install _all_ headers
install -m0644 include/*.h %{buildroot}%{_includedir}/
install -m0644 include/mutils/*.h %{buildroot}%{_includedir}/mutils/

# Eliminate some autoheader definitions which should not enter a public API.
# There are more which wait for a fix upstream.
sed -i 's!\(#define \(PACKAGE\|VERSION \).*\)!/* \1 */!g' %{buildroot}%{_includedir}/mutils/mhash_config.h

install -d %{buildroot}/%{_libdir}/pkgconfig
install -m 0644 %{SOURCE1} %{buildroot}/%{_libdir}/pkgconfig/

# cleanup
rm -f %{buildroot}%{_libdir}/*.*a

sed -i "s:@VERSION@:%{version}:" %{buildroot}/%{_libdir}/pkgconfig/*.pc

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14752 |21mr|micro-2.0.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# use bundled golang modules (from Source1)
%global gomodulesmode GO111MODULE=on
%global goipath github.com/zyedidia/micro

Summary:	Console text editor
Name:		micro
Version:	2.0.13
Release:	1
License:	MIT
Group:		Editors
Url:		https://micro-editor.github.io/
Source0:	https://github.com/zyedidia/micro/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# go mod vendor, created with ./upd.sh
Source1:	micro-%{version}-go-mod-vendor.tar.xz
BuildRequires:	golang
Recommends:	xclip
%gometa

%description
A modern and intuitive terminal-based text editor.

%files
%license LICENSE*
%doc README.md
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
( cd .. && tar -xf %{SOURCE1} )
go generate ./runtime
%gobuild -o %{gobuilddir}/bin/micro ./cmd/micro

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{gobuilddir}/bin/* %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14753 |21mr|microcode_ctl-4.20231114-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define inteldate 20231114

%if %{mdvver} >= 202310
%define _firmwarepath /usr/lib/firmware
%else
%define _firmwarepath /lib/firmware
%endif

Summary:	Intel CPU Microcode
# pagure.io/microcode_ctl was used before, but all it does nowadays is copying from
# https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files,
# so now we use files directly from Intel. Keeping old name microcode_ctl for now...
Name:		microcode_ctl
Version:	4.%{inteldate}
Release:	1
License:	Redistributable, no modification permitted
Group:		System/Kernel and hardware
Url:		https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files
Source0:	https://github.com/intel/Intel-Linux-Processor-Microcode-Data-Files/archive/microcode-%{inteldate}.tar.gz
Requires:	rosa-kernel-tools
Provides:	microcode = %{EVRD}
ExclusiveArch:	%{ix86} x86_64

%description
Intel and AMD CPUs are currently based on RISC chips with the special
microcode that actually implements the x86 instruction set. This package
provides an update for this microcode.

The microcode update is volatile and needs to be uploaded at each system
boot. That is, it does not reflash your CPU permanently.

%files
%license license
%doc README.md releasenote.md security.md
%dir %{_firmwarepath}/intel-ucode
%{_firmwarepath}/intel-ucode/??-??-??
/var/spool/initramfs-regen/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n Intel-Linux-Processor-Microcode-Data-Files-microcode-%{inteldate}

%build

%install
mkdir -p %{buildroot}%{_firmwarepath}
cp -rv intel-ucode %{buildroot}%{_firmwarepath}

# regenerate initrd with rosa-kernel-tools to enable early loading of microcode
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14754 |21mr|microem-rfid-linux-0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname microem-rfid
%global kname microem

Summary:		Driver and client application for Micro-EM RFID USB scanner
Name:			microem-rfid-linux
# kernel driver is GPL, but license for the client application is not known
License:		GPLv2 and Unknown
Group:			System/Kernel and hardware
Version:		0.4
Release:		3
Url:			https://github.com/mikhailnov/microem-rfid-linux
Source0:		https://github.com/mikhailnov/microem-rfid-linux/archive/v%{version}.tar.gz?/%{name}-v%{version}.tar.gz
#----------------------------------------------------------------------------

%description
Driver and client application for Micro-EM RFID USB scanner

#----------------------------------------------------------------------------

%package -n microemscan
Summary:	Client application for Micro-EM RFID USB scanner
Group:		System/Kernel and hardware
Requires:	kmod(%{kname})

%description -n microemscan
Client application for Micro-EM RFID USB scanner c251:130a (/dev/microem*)

%files -n microemscan
%doc README.md
%{_bindir}/microemscan
%{_unitdir}/microemscan.service
/etc/modules-load.d/%{kname}.conf
# TODO: handle this as a %%config
# Requires changes in the code, current code only checks that this file exists
%{_datadir}/microem/dont_send_eol.txt

%post -n microemscan
%systemd_post microemscan.service

%preun -n microemscan
%systemd_preun microemscan.service

#----------------------------------------------------------------------------

%package -n dkms-%{oname}
Summary:	Driver for Micro-EM RFID USB scanner
Group:		System/Kernel and hardware
Provides:	kmod(%{kname}) = %{EVRD}
Requires(post,preun):	dkms

%description -n dkms-%{oname}
Driver for Micro-EM RFID USB scanner c251:130a (/dev/microem*)

%files -n dkms-%{oname}
%doc README.md
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

### dkms scripts were copied from rtl8192eu.spec

%post -n dkms-%{oname}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{oname}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#----------------------------------------------------------------------------

%prep
%setup -q %{name}-v%{version}

%build
# for now build only microemscan application
# kernel driver will be built on client side via dkms
( cd scanner; make )

%install
( cd scanner
export PREFIX=%{_prefix}
%makeinstall_std
install -D -m0644 microemscan.service %{buildroot}%{_unitdir}/microemscan.service
sed -i -e 's,/usr/local,%{_prefix},g' %{buildroot}%{_unitdir}/microemscan.service
)

# copy sources for dkms
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -r driver/* %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}

# make dkms config
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
BUILT_MODULE_NAME=%{kname}
DEST_MODULE_LOCATION=/kernel/drivers/usb/misc/
AUTOINSTALL=yes
MAKE="'make' all KVER=\${kernelver}"
CLEAN="make clean"
EOF

# preload kernel module needed for microemscan application
mkdir -p %{buildroot}/etc/modules-load.d/
echo %{kname} > %{buildroot}/etc/modules-load.d/%{kname}.conf

mkdir -p %{buildroot}%{_datadir}/microem/
echo %{kname} > %{buildroot}%{_datadir}/microem/dont_send_eol.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14755 |21mr|migration-assistant-0.6.12-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary: Migration Assistant
Name:    migration-assistant
Version: 0.6.12
Release: 6
Source0: http://archive.ubuntu.com/ubuntu/pool/main/m/%{name}/%{name}_%{version}.tar.gz
Patch0:	migration-assistant-xdg.patch
Patch1:	migration-assistant-0.6.2-fix-str-fmt.patch
License: GPLv2+
Group: System/Configuration/Other
Url: https://launchpad.net/migration-assistant
BuildRequires: libxml2-devel

%description
Migration Assistant imports documents and settings from other
operating systems during the install process.

%prep
%setup -q
%patch0 -p1 -b .xdg
%patch1 -p0

%build
export CC="gcc %{optflags} -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
%make

%install
%makeinstall_std
install -m755 ma-search-users %{buildroot}%{_bindir}

%files
%defattr(-,root,root)
%doc README
%{_bindir}/ma-import
%{_bindir}/ma-search-items
%{_bindir}/ma-search-users

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14756 |21mr|milou-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 search client module
Name:		milou
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5runner-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Plasma 5 search client module.

%files -f %{name}.lang
%{_appdatadir}/org.kde.milou.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-%{name}
Summary:	Plasma 5 search client plasmoid
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description -n plasma5-applet-%{name}
Plasma 5 search client plasmoid.

%files -n plasma5-applet-%{name} -f plasma_applet_org.kde.milou.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.milou/
%{_kde5_datadir}/plasma/plasmoids/org.kde.milou/*
%{_kde5_services}/plasma-applet-org.kde.milou.desktop

#----------------------------------------------------------------------------

%define qmlmilou %mklibname milou-qml

%package -n %{qmlmilou}
Summary:	QML plugin for Plasma 5 search client shared library
Group:		System/Libraries
Requires:	kf5plasma-qml
Provides:	milou-qml = %{EVRD}

%description -n %{qmlmilou}
QML plugin for Plasma 5 search client shared library.

%files -n %{qmlmilou}
%dir %{_kde5_qmldir}/org/kde/milou/
%{_kde5_qmldir}/org/kde/milou/*

#----------------------------------------------------------------------------

%define milou_major 5
%define libmilou %mklibname milou %{milou_major}

%package -n %{libmilou}
Summary:	Plasma 5 search client shared library
Group:		System/Libraries
Requires:	%{qmlmilou}

%description -n %{libmilou}
Plasma 5 search client shared library.

%files -n %{libmilou}
%{_kde5_libdir}/libmilou.so.%{milou_major}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}
%find_lang plasma_applet_org.kde.milou

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14757 |21mr|mimepull-1.9.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             mimepull
Version:          1.9.6
Release:          9
Summary:          Streaming API to access attachments from a MIME message
License:          CDDL and GPLv2 with exceptions
URL:              http://mimepull.java.net

# svn export https://svn.java.net/svn/mimepull~svn/tags/mimepull-1.9.6/ mimepull-1.9.6
# tar cafJ mimepull-1.9.6.tar.xz mimepull-1.9.6
Source0:          mimepull-%{version}.tar.xz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(net.java:jvnet-parent:pom:)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:    mvn(org.codehaus.mojo:buildnumber-maven-plugin)
#BuildRequires:    mvn(org.tmatesoft.svnkit:svnkit)
BuildRequires:    xmvn

%description
Provides a streaming API to access attachments parts in a MIME message

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

# Unavailable plugins
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin
# Unneeded plugins
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-source-plugin
# Disable svnkit support for buildnumber-maven-plugin
%pom_remove_dep org.tmatesoft.svnkit:svnkit
%pom_xpath_remove pom:providerImplementations

%pom_remove_plugin :maven-enforcer-plugin
%pom_add_plugin org.apache.maven.plugins:maven-enforcer-plugin:1.0.1 . '
<executions>
    <execution>
        <id>enforce-versions</id>
        <goals>
            <goal>enforce</goal>
        </goals>
    </execution>
</executions>
<configuration>
    <rules>
        <requireJavaVersion>
            <version>[1.7,)</version>
        </requireJavaVersion>
            <requireMavenVersion>
                <version>[3.0.3,)</version>
            </requireMavenVersion>
        <DependencyConvergence/>
    </rules>
</configuration>'


iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.conv && mv -f LICENSE.conv LICENSE
sed -i 's/\r//' LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14758 |21mr|ming-0.4.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 1
%define libname %mklibname ming %{major}
%define devname %mklibname ming -d

%define oname libming
%define commit 04aee52363688426eab74f5d6180c149654a6473

Summary:	Ming - an SWF output library
Name:		ming
Version:	0.4.9
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://www.libming.org/
Source0:	https://github.com/libming/libming/archive/%{commit}.zip?/%{oname}-%{version}.zip
# make ming-config multilib-compatible
Patch0:		ming-multilib.patch
# install perl modules to vendorarch dir and link dynamically with libming.so
Patch1:		ming-perl.patch
# fix parallel make calls to bison causing generated code corruption
# https://github.com/libming/libming/issues/49
Patch2:		ming-parallel-make.patch
Patch3:		ming-version.patch
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	giflib-devel
BuildRequires:	perl-devel
BuildRequires:	php-cli
BuildRequires:	php-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(zlib)
# gotta conflict here, otherwise stuff will be linked against installed libs...
BuildConflicts:	ming-devel

%description
Ming is a library for generating SWF ("Flash") format movies. It comprises a
lot of Flash functionality, including features of Flash 8. Specifically, it
lets you create: shapes (including morphs), text, sprites (aka movie clips),
buttons, and actions in flash movies, plus more.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Ming - an SWF output library
Group:		System/Libraries

%description -n %{libname}
Ming is a library for generating SWF ("Flash") format movies.
This package only contains the basic c-based library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libming.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Ming development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc NEWS HISTORY LICENSE README TODO
%{_bindir}/%{name}-config
%{_libdir}/libming.so
%{_libdir}/pkgconfig/libming.pc
%{_includedir}/%{name}*.h

#-----------------------------------------------------------------------------

%package -n perl-SWF
Summary:	Ming perl extension
Group:		Development/Perl
Provides:	perl-%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n perl-SWF
Ming perl module - perl wrapper for the Ming library.

%files -n perl-SWF
%doc perl_ext.README perl_ext/examples
%dir %{perl_vendorarch}/auto/SWF
%dir %{perl_vendorarch}/SWF
%{perl_vendorarch}/auto/SWF/SWF.so
%{perl_vendorarch}/SWF.pm
%{perl_vendorarch}/SWF/*.pm
%{_mandir}/man3*/SWF*

#-----------------------------------------------------------------------------

%package -n python-SWF
Summary:	Ming python extension
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python-SWF
Python module - python wrapper for the Ming library.

%files -n python-SWF
%doc py_ext/README
%{py2_platsitedir}/*.so
%{py2_platsitedir}/*.py*
%{py2_platsitedir}/*.egg-info

#-----------------------------------------------------------------------------

%package -n php-SWF
Summary:	Ming php extension
Group:		Development/PHP
Requires:	%{libname} = %{EVRD}
Requires:	php(zend-abi)
# Php-ming is deprecated and code is merged in the the ming main sources;
# however the %%version of our old package is higher than the one of
# this package, so we cannot simply %%renaming it
Provides:	php-ming = %{EVRD}
Conflicts:	php-ming < %{EVRD}
Obsoletes:	php-ming < %{EVRD}

%description -n php-SWF
Php module - php wrapper for the Ming library.

%files -n php-SWF
%doc php_ext/README.*
%config(noreplace) %{_sysconfdir}/php.d/33_%{name}.ini
%{_libdir}/php/extensions/%{name}.so

#-----------------------------------------------------------------------------

%package utils
Summary:	Ming utilities
Group:		File tools

%description utils
This package contains various ming utilities for working  with .swf files.

%files utils
%doc util.README
%{_bindir}/dbl2png
%{_bindir}/gif2dbl
%{_bindir}/gif2mask
%{_bindir}/listaction
%{_bindir}/listaction_d
%{_bindir}/listfdb
%{_bindir}/listjpeg
%{_bindir}/listmp3
%{_bindir}/listswf
%{_bindir}/listswf_d
%{_bindir}/makefdb
%{_bindir}/makeswf
%{_bindir}/png2dbl
%{_bindir}/raw2adpcm
%{_bindir}/swftocxx
%{_bindir}/swftoperl
%{_bindir}/swftophp
%{_bindir}/swftopython
%{_bindir}/swftotcl
%{_mandir}/man1/dbl2png.1*
%{_mandir}/man1/gif2dbl.1*
%{_mandir}/man1/gif2mask.1*
%{_mandir}/man1/listfdb.1*
%{_mandir}/man1/listjpeg.1*
%{_mandir}/man1/listmp3.1*
%{_mandir}/man1/makefdb.1*
%{_mandir}/man1/makeswf.1*
%{_mandir}/man1/png2dbl.1*
%{_mandir}/man1/raw2adpcm.1*
%{_mandir}/man1/swftocxx.1*
%{_mandir}/man1/swftoperl.1*
%{_mandir}/man1/swftophp.1*
%{_mandir}/man1/swftopython.1*
%{_mandir}/man1/swftotcl.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{commit}
%apply_patches

# Fix attribs
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;
find . -name "*.c" -o -name "*.h" -exec chmod 644 {} \;
find . -name "*.y" -o -name "*.flex" -exec chmod 644 {} \;

# More cleanup
for i in `find . -type d -name CVS`  `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
	if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

# Fix python path
perl -pi -e "s|/usr/local/include\b|%{_includedir}|g;s|/usr/local/lib\b|%{_libdir}|g" py_ext/setup.py.in


%build
#autoreconf -vfi
export PYTHON=%__python2
./autogen.sh
%configure \
	--enable-shared \
	--disable-static \
	--disable-silent-rules \
	--enable-php \
	--enable-perl \
	--disable-python

sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

# We need to build manually python extensions,
# otherwise the built files will be installed in wrong places.
pushd py_ext
	env CFLAGS="%{optflags}" %py2_build
popd

%install
%makeinstall_std

# Since we built them manually, install manually
pushd py_ext
	%py2_install
popd

# Taken from our original (deprecated) php-ming package
install -d %{buildroot}%{_sysconfdir}/php.d
cat > %{buildroot}%{_sysconfdir}/php.d/33_%{name}.ini << EOF
extension = %{name}.so
EOF

rm %{buildroot}%{_libdir}/libming.la
rm %{buildroot}%{_libdir}/perl5/perllocal.pod
rm -f %{buildroot}%{perl_vendorarch}/auto/SWF/{.packlist,SWF.bs}
chmod 755 %{buildroot}%{perl_vendorarch}/auto/SWF/SWF.so

# Fix docs
cp perl_ext/README perl_ext.README
cp util/README util.README
chmod 644 NEWS HISTORY INSTALL *README* TODO

# Cleanup
rm -rf %{buildroot}%{perl_vendorlib}/*/auto/SWF/include
rm -rf %{buildroot}%{_libdir}/libming.*a

# Nuke rpath
find %{buildroot}%{perl_vendorlib} -name "*.so" | xargs chrpath -d


chmod 755 %{buildroot}%{_bindir}/ming-config

# Install man pages
install -d %{buildroot}%{_mandir}/man1
install -m0644 docs/man/*.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14759 |21mr|mingetty-1.08-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A compact getty program for virtual consoles only
Name:		mingetty
Version:	1.08
Release:	18
License:	GPLv2+
Group: 		System/Base
Url:		http://mingetty.sourceforge.net/
Source0: 	http://downloads.sourceforge.net/mingetty/%{name}-%{version}.tar.gz
Patch0:		mingetty-1.00-opt.patch

%description
The mingetty program is a lightweight, minimalist getty program for
use only on virtual consoles.  Mingetty is not suitable for serial
lines (you should use the mgetty program instead for that purpose).

%files
%doc COPYING
/sbin/mingetty
%{_mandir}/man8/mingetty.8*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .opt

%build
%serverbuild

%make RPM_OPTS="%{optflags}" LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}/sbin/
mkdir -p %{buildroot}%{_mandir}/man8/

install -m 0755 mingetty %{buildroot}/sbin/mingetty
install -m 0644 mingetty.8 %{buildroot}%{_mandir}/man8/mingetty.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14760 |21mr|minicom-2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit f3d7558265180252164f924901f358b97cc28d02

Summary:	A text-based modem control and terminal emulation program
Name:		minicom
Version:	2.8
Release:	1
License:	GPLv2+
Group:		Communications
Url:		https://salsa.debian.org/minicom-team/minicom
Source0:	https://salsa.debian.org/minicom-team/minicom/-/archive/%{commit}/minicom-%{commit}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	gettext-devel
Requires:	lockdev-baudboy
Requires:	lrzsz
Requires:	setserial

%description
Minicom is a simple text-based modem control and terminal emulation program
somewhat similar to MSDOS Telix. Minicom includes a dialing directory, full
ANSI and VT100 emulation, an (external) scripting language, and other
features.
Minicom should be installed if you need a simple modem control program or
terminal emulator.
Run 'minicom -s' as root to create a system wide configuration. Users need
read/write permissions on the serial port devices in order to use minicom.

%files -f %{name}.lang
%doc NEWS AUTHORS README TODO
%doc doc/Announce* doc/COMPATABILITY.lrzsz doc/HistSearch
%doc doc/Locales doc/Macros doc/QuickStart.modemu doc/README.lrzsz
%doc doc/TODO.lrzsz doc/Todo* doc/copyright.modemu doc/fselector.txt
%doc doc/japanese doc/minicom.FAQ doc/modemu.README doc/pl-translation.txt 
%doc doc/portugues-brasil doc/suomeksi doc/ChangeLog.old
%attr(755,root,dialout) %{_bindir}/minicom
%{_bindir}/runscript
%{_bindir}/xminicom
%{_bindir}/ascii-xfr
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{commit}


%build
./autogen.sh
%configure --disable-rpath
%make


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14761 |21mr|minidns-0.1.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          minidns
Version:       0.1.7
Release:       9
Summary:       Minimal DNS library for Java and Android systems
License:       ASL 2.0 or LGPLv2+ or WTFPL
URL:           https://github.com/rtreffer/minidns
Source0:       https://github.com/rtreffer/minidns/archive/%{version}.tar.gz
Source1:       http://central.maven.org/maven2/de/measite/minidns/minidns/%{version}/minidns-%{version}.pom
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
MiniDNS is a minimal dns client library for Java and Android.
It can parse a basic set of resource records (A, AAAA, NS,
SRV) and is easy to use and extend.

This library is not intended to be used as a DNS server.
You might want to look into dnsjava for such functionality.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# cleanup
find . -name "*.class" -print -delete
find . -name "*.dll" -print -delete
find . -name "*.jar" -print  -delete

cp -p %{SOURCE1} pom.xml

%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 . "
<configuration>
  <source>1.7</source>
  <target>1.7</target>
  <encoding>UTF-8</encoding>
</configuration>"

%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>\${project.groupId}</Bundle-SymbolicName>
    <Bundle-Name>\${project.name}</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.4 . "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <addMavenDescriptor>false</addMavenDescriptor>
  </archive>
</configuration>"

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENCE*

%files javadoc -f .mfiles-javadoc
%license LICENCE*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14762 |21mr|minimal-json-0.9.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 5959dba08238149f591c4a706e91b05cd7c14ace
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           minimal-json
Version:        0.9.4
Release:        10
Summary:        A Minimal JSON Parser and Writer

License:        MIT
URL:            https://github.com/ralfstx/%{name}
Source0:        https://github.com/ralfstx/%{name}/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# https://lists.fedoraproject.org/pipermail/java-devel/2015-September/005687.html
# https://github.com/ralfstx/minimal-json/pull/60
Patch0:         0001-Fix-potentially-null-static-fields.patch

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.mockito:mockito-core)

%description
A fast and minimal JSON parser and writer for Java.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -qn %{name}-%{commit}

# Javadoc error
sed -i -e  "s/@returns/@return/g" \
    com.eclipsesource.json/src/main/java/com/eclipsesource/json/JsonObject.java

%pom_disable_module com.eclipsesource.json.performancetest
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin com.eclipsesource.json

%patch0 -p1 -b .orig

%build
%mvn_build -s -- -f com.eclipsesource.json

%install
%mvn_install -J com.eclipsesource.json/target/apidocs

%files -f .mfiles-minimal-json
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14763 |21mr|miniupnpc-2.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 17
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d
%global _disable_ld_no_undefined %nil

Summary:	Library and tool to control NAT in UPnP-enabled routers
Name:		miniupnpc
Version:	2.2.5
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://miniupnp.free.fr/
Source0:	http://miniupnp.free.fr/files/%{name}-%{version}.tar.gz
Source1:	USAGE
# Do not create libminiupnpc.so.%%{version} and avoid libminiupnpc.so.17 linking to it
Patch0:		%{name}-2.2.4-version.patch
Patch1:		%{name}-2.2-fix-python-install-path.patch
BuildRequires:	cmake >= 3.5
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)

%description
miniupnpc is an implementation of a UPnP client library, enabling applications
to access the services provided by an UPnP "Internet Gateway Device" present on
the network. In UPnP terminology, it is a UPnP Control Point.

%files
%doc Changelog.txt LICENSE README USAGE
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library and tool to control NAT in UPnP-enabled routers
Group:		System/Libraries

%description -n %{libname}
miniupnpc is an implementation of a UPnP client library, enabling applications
to access the services provided by an UPnP "Internet Gateway Device" present on
the network. In UPnP terminology, it is a UPnP Control Point.
This package contains the main library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libminiupnpc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for miniupnpc
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and development documentation for
miniupnpc. If you like to develop programs using miniupnpc, you will need
to install this package.

%files -n %{devname}
%doc LICENSE
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/%{name}/*.cmake
%{_mandir}/man3/%{name}.3*
%{_libdir}/pkgconfig/miniupnpc.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python interface to %{name}
Group:		Development/Python
%rename	python-%{name}

%description -n python3-%{name}
This package contains python interfaces to %{name}.

%files -n python3-%{name}
%doc LICENSE
%{py3_platsitedir}/%{name}-%{version}-py*.egg-info
%{py3_platsitedir}/%{name}.*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

cp %{SOURCE1} .
%ifarch %{e2k}
sed -i 's!-MG!!g' Makefile
%endif

%build
export CC=%{__cc}
%cmake \
	-DUPNPC_BUILD_TESTS=ON \
	-DUPNPC_BUILD_SAMPLE=ON \
	-DUPNPC_BUILD_STATIC=OFF

%make_build

cd ..
%py3_build

%install
export CC=%{__cc}
%makeinstall_std -C build
%py3_install

install -D -m644 man3/miniupnpc.3 %{buildroot}%{_mandir}/man3/%{name}.3
install -D -m 0755 build/upnpc-shared %{buildroot}%{_bindir}/upnpc

%check
%__make CFLAGS="-DMINIUPNPC_SET_SOCKET_TIMEOUT" check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14764 |21mr|minlog-1.3.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          minlog
Version:       1.3.0
Release:       9
Summary:       Minimal overhead Java logging
License:       BSD
URL:           https://github.com/EsotericSoftware/minlog
Source0:       https://github.com/EsotericSoftware/minlog/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
MinLog is a Java logging library. Key features:

° Zero overhead Logging statements below a given level
  can be automatically removed by javac at compile time.
  This means applications can have detailed trace and
  debug logging without having any impact on the finished product.

° Simple and efficient The API is concise and the code
  is very efficient at run-time.

° Extremely lightweight The entire project consists of a single
  Java file with ~100 non-comment lines of code.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
find -name "*.class" -delete
find -name "*.jar" -delete

%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin' ]/pom:executions"

sed -i 's/\r//' license.txt

%mvn_file :%{name} %{name}
%mvn_alias :%{name} "com.googlecode:%{name}" "com.esotericsoftware.%{name}:%{name}"
%mvn_package ":%{name}::tests:"

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14765 |21mr|minuet-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Music education software
Name:		minuet
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/minuet/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Minuet is an application for music education. It features a set of ear
training exercises regarding intervals, chords, scales and more.

%files -f %{name}.lang
%doc COPYING COPYING.DOC
%{_kde5_applicationsdir}/org.kde.minuet.desktop
%{_kde5_bindir}/minuet
%{_kde5_datadir}/minuet
%{_kde5_iconsdir}/*/*/actions/minuet-*.*
%{_kde5_iconsdir}/*/*/apps/minuet.*
%{_appdatadir}/org.kde.minuet.appdata.xml
%{_qt5_plugindir}/minuet/minuetfluidsynthsoundcontroller.so

#----------------------------------------------------------------------------

%define minuetinterfaces_major 0.3.0
%define libminuetinterfaces %mklibname minuetinterfaces %{minuetinterfaces_major}

%package -n %{libminuetinterfaces}
Summary:	Minuet shared library
Group:		System/Libraries

%description -n %{libminuetinterfaces}
Minuet shared library.

%files -n %{libminuetinterfaces}
%{_kde5_libdir}/libminuetinterfaces.so.%{minuetinterfaces_major}*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for Minuet
Group:		Development/KDE and Qt
Requires:	%{libminuetinterfaces} = %{EVRD}
Provides:	%{name}-devel = %{version}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%dir %{_kde5_includedir}/minuet/
%{_kde5_includedir}/minuet/*
%{_kde5_libdir}/libminuetinterfaces.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14766 |21mr|mjpegtools-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.2
%define major 0
%define libname %mklibname %{name}%{api}_ %{major}
%define devname %mklibname -d %{name}

Summary:	Tools for recording, editing, playing back and mpeg-encoding video under linux
Name:		mjpegtools
Version:	2.2.0
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://mjpeg.sourceforge.net
Source: 	http://prdownloads.sourceforge.net/mjpeg/%{version}/%{name}-%{version}.tar.bz2
Patch4:		mjpegtools-1.9.0-link.patch
BuildRequires:	autoconf
BuildRequires:	nasm
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gtk+-2.0)
Buildrequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(libquicktime)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(xxf86dga)

%description
The MJPEG-tools are a basic set of utilities for recording, editing, 
playing back and encoding (to mpeg) video under linux. Recording can
be done with zoran-based MJPEG-boards (LML33, Iomega Buz, Pinnacle
DC10(+), Marvel G200/G400), these can also playback video using the
hardware. With the rest of the tools, this video can be edited and
encoded into mpeg1/2 or divx video.

%files
%doc AUTHORS BUGS ChangeLog CHANGES COPYING HINTS INSTALL NEWS PLANS README* TODO
%{_bindir}/*
%{_mandir}/man1/*
%{_infodir}/mjpeg-howto.info*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	libmjpegtools = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib*-%{api}.so.%{major}*
%ifarch %{ix86}
%{_libdir}/sse2/lib*-%{api}.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_mandir}/man5/yuv4mpeg.5*
%{_includedir}/mjpegtools
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

libtoolize --copy --force
autoreconf -fi
# toolame isn't in Mandriva, mp2enc is, so use that
perl -p -i -e 's/\-\"toolame\"/\-\"mp2enc\"/g' scripts/lav2mpeg

%build
export CPPFLAGS="%{optflags} -fpermissive"
export CFLAGS="%{optflags}"
export PTHREAD_LIBS="-lpthread"

# build i686/mmx dynamic library
%ifarch %{ix86}
mkdir build-i686
pushd build-i686
CONFIGURE_TOP=.. %configure \
	--enable-simd-accel \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--without-v4l \
	--disable-static

make
popd
%endif

# build regular package
%if "%{_target_cpu}" == "i686"
%else
mkdir build-%{_target_cpu}
%endif

pushd build-%{_target_cpu}
CONFIGURE_TOP=.. %configure \
	--disable-simd-accel \
	--libdir=%{_libdir} \
	--without-v4l \
	--disable-static

make
popd

%install
%ifarch %{ix86}
pushd build-i686
%makeinstall_std
popd
mkdir -p %{buildroot}%{_libdir}/sse2
mv %{buildroot}%{_libdir}/*.so.* %{buildroot}%{_libdir}/sse2/
%endif

pushd build-%{_target_cpu}
%makeinstall_std
popd

cp mpeg2enc/mpeg2syntaxcodes.h %{buildroot}%{_includedir}/mjpegtools/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14767 |21mr|mjpegtools-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api 2.2
%define	major 0
%define	libname %mklibname %{name}%{api}_ %{major}
%define	devname %mklibname -d %{name}

Summary:	Tools for recording, editing, playing back and mpeg-encoding video under Linux
Name:		mjpegtools
Version:	2.2.1
Release:	1
License:	GPLv2+
Group:		Video
Url:		http://mjpeg.sourceforge.net
Source:		https://sourceforge.net/projects/mjpeg/files/mjpegtools/%{version}/%{name}-%{version}.tar.gz
Patch0:		mjpegtools-1.9.0-link.patch
Patch1:		07_yuvdenoise_disable_sse2.patch
BuildRequires:	autoconf
BuildRequires:	nasm
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.4.0
BuildRequires:	pkgconfig(libdv) >= 0.9
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libquicktime) >= 0.9.7
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(sdl) > 1.1.3
BuildRequires:	pkgconfig(SDL_gfx)
BuildRequires:	pkgconfig(xxf86dga)

%description
The MJPEG-tools are a basic set of utilities for recording, editing, playing
back and encoding (to mpeg) video under Linux. Recording can be done with
zoran-based MJPEG-boards (LML33, Iomega Buz, Pinnacle DC10(+), Marvel
G200/G400), these can also playback video using the hardware. With the rest
of the tools, this video can be edited and encoded into mpeg1/2 or divx video.

%files
%doc AUTHORS BUGS ChangeLog CHANGES COPYING HINTS NEWS PLANS README* TODO
%{_bindir}/*
%{_mandir}/man1/*
%{_infodir}/mjpeg-howto.info*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	libmjpegtools = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib*-%{api}.so.%{major}*
%ifarch %{ix86}
%{_libdir}/sse2/lib*-%{api}.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc COPYING
%{_mandir}/man5/yuv4mpeg.5*
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
libtoolize --copy --force
autoreconf -vfi

# Toolame isn't in Rosa, mp2enc is, so use that
perl -p -i -e 's/\-\"toolame\"/\-\"mp2enc\"/g' scripts/lav2mpeg

export CPPFLAGS="%{optflags} -fpermissive"
export CFLAGS="%{optflags}"
export PTHREAD_LIBS="-lpthread"

# Build i686/mmx dynamic library
# NOTE: enabling v4l1 support breaks the build...
%ifarch %{ix86}
mkdir build-i686
pushd build-i686
CONFIGURE_TOP=.. %configure \
	--enable-simd-accel \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--without-v4l \
	--disable-static

make
popd
%endif

# Build regular package
%if "%{_target_cpu}" == "i686"
%else
mkdir build-%{_target_cpu}
%endif

pushd build-%{_target_cpu}
CONFIGURE_TOP=.. %configure \
	--disable-simd-accel \
	--libdir=%{_libdir} \
	--without-v4l \
	--disable-static

%make_build
popd


%install
%ifarch %{ix86}
pushd build-i686
%makeinstall_std
popd
mkdir -p %{buildroot}%{_libdir}/sse2
mv %{buildroot}%{_libdir}/*.so.* %{buildroot}%{_libdir}/sse2/
%endif

pushd build-%{_target_cpu}
%makeinstall_std
popd

cp mpeg2enc/mpeg2syntaxcodes.h %{buildroot}%{_includedir}/mjpegtools/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14768 |21mr|mkcomposecache-1.2.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: mkcomposecache
Version: 1.2.1
Release: 9
Summary: Used for creating global (system-wide) Compose cache files
Group: System/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: x11-util-macros >= 1.0.1
BuildRequires: pkgconfig(x11)

%description
mkcomposecache is used for creating global (system-wide) Compose cache files.

Compose cache files help with application startup times and memory usage,
especially in locales with large Compose tables (e.g. all UTF-8 locales).

The tool only makes sense with libX11 1.0.2 and higher.
Included is a script mkallcomposecaches.sh that creates global cache
files for all supported locales.

%prep
%setup -q -n %{name}-%{version}

%build
%configure 	--x-includes=%{_includedir} \
		--x-libraries=%{_libdir}
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sbindir}/mkcomposecache
%{_mandir}/man8/mkcomposecache.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14769 |21mr|mkdosfs-with-dir-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name mkdosfs-with-dir
%define version 1.0
%define release 14

Summary: Create a DOS image from a directory
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}
License: GPL
Group: File tools
BuildArch: noarch
Requires: dosfstools

%description
Create a DOS image from a directory without being superuser.

%install
rm -rf $RPM_BUILD_ROOT
install -D -m 4755 %SOURCE0 $RPM_BUILD_ROOT/usr/bin/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14770 |21mr|mkefiboot-31.8.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NOTE: This package is fully arched due to dependency sensitivity.
# Please do not remove archfulness on Requires/Provides.

%define debug_package %{nil}

Name:           mkefiboot
Version:        31.8.0.1
Release:        5
Summary:        Standalone mkefiboot implementation for when Lorax is unavailable
Group:          System/Kernel and hardware
License:        GPLv2+
URL:            https://pagure.io/%{name}
Source0:        https://releases.pagure.org/%{name}/%{name}-%{version}.tar.gz

BuildRequires:  python3-devel

# XXX for now shipping only not signed shim
# In the future eiher change here to "shim-signed" or provide "shim" in signed shim
Requires:       shim
Requires:       grub2-efi
Requires:       parted
Requires:       dmsetup
Requires:       dosfstools
Requires:       hfsplus-tools

%description
This is a "friendly fork" standalone copy of mkefiboot that is normally part of Lorax.

This project was made for the express purpose of supporting producing EFI boot capable
media on Linux distributions where the full Lorax software package (which requires
Anaconda, the Red Hat/Fedora installer) would not be available.


%prep
%autosetup -p1


%build
%py3_build


%install
%py3_install


%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{python3_sitelib}/py%{name}/
%{python3_sitelib}/%{name}-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14771 |21mr|mkfontscale-1.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Create an index of scalable font files for X
Name:		mkfontscale
Version:	1.2.1
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
# add a few extra encodings
Patch0:		mkfontscale-1.0.3-mdv.patch
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(fontenc)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(x11)

%description
For each directory argument, mkfontscale reads all of the scalable font files
in the directory. For every font file found, an X11 font name (XLFD) is
generated, and is written together with the file name to a file fonts.scale in
the directory.

%files
%{_bindir}/mkfontscale
%{_mandir}/man1/mkfontscale.1*

#----------------------------------------------------------------------------

%package -n mkfontdir
Summary:	Create an index of X font files in a directory
Group:		Development/X11
# mkfontdir is currently nothing more than a call to mkfontscale
Requires:	mkfontscale

%description -n mkfontdir
Mkfontdir creates an index of X font files in a directory.

For each directory argument, mkfontdir reads all of the font files in the
directory searching for properties named "FONT", or (failing that) the name of
the file stripped of its suffix. These are converted to lower case and used as
font names, and, along with the name of the font file, are written out to the
file "fonts.dir" in the directory. The X server and font server use "fonts.dir"
to find font files.

%files -n mkfontdir
%{_bindir}/mkfontdir
%{_mandir}/man1/mkfontdir.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14772 |21mr|mknod-m600-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name mknod-m600
%define version 1.2
%define release 10

Summary: Create block/character devices as normal user
Name: %{name}
Version: %{version}
Release: %{release}
Source0: %{name}
License: GPL
Group: File tools
BuildArch: noarch


%description
Create block/character devices as normal user.

This is only useful when building images (eg: rescue, install).

%install
rm -rf $RPM_BUILD_ROOT
install -D -m 4755 %SOURCE0 $RPM_BUILD_ROOT/usr/bin/%{name}

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14773 |21mr|mkvtoolnix-66.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Matroska multimedia file utils
Name:		mkvtoolnix
Version:	66.0.0
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Video
Url:		https://mkvtoolnix.download/
Source0:	https://mkvtoolnix.download/sources/%{name}-%{version}.tar.xz
Patch0:		mkvtoolnix-66.0.0-fix-utf8cpp-detection.patch
Patch1:		mkvtoolnix-desktop.patch
BuildRequires:	cmark
BuildRequires:	docbook-style-xsl
BuildRequires:	po4a
BuildRequires:	qt5-linguist-tools
BuildRequires:	ruby
BuildRequires:	rubygem-json
BuildRequires:	rubygem-rake
BuildRequires:	xsltproc
BuildRequires:	boost-devel >= 1.66.0
BuildRequires:	utf8cpp-devel
# Not provided yet
# librmff - json-cpp
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(flac) >= 1.2.1
BuildRequires:	pkgconfig(fmt) >= 6.1.0
BuildRequires:	pkgconfig(gmp)
BuildRequires:	pkgconfig(libcmark)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libebml) >= 1.4.2
BuildRequires:	pkgconfig(libmagic)
BuildRequires:	pkgconfig(libmatroska) >= 1.6.3
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9.0
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
These tools allow information about (mkvinfo) or extraction
from (mkvdemux) or creation of (mkvmerge) or the splitting of
(mkvsplit) Matroska files. Matroska is a new multimedia file
format aiming to become THE new container format for the future. You
can find more information about it and its underlying technology, the
Extensible Binary Meta Language (EBML), at http://www.matroska.org/

%files -f %{name}.lang
%doc COPYING README*
%{_bindir}/*
%{_datadir}/applications/org.bunkus.%{name}-gui.desktop
%{_datadir}/icons/hicolor/*/apps/*.*
%{_datadir}/metainfo/org.bunkus.%{name}-gui.appdata.xml
%{_datadir}/mime/packages/org.bunkus.%{name}-gui.xml
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_mandir}/man1/*
%{_mandir}/bg/man1/mkvextract.1.*
%{_mandir}/bg/man1/mkvinfo.1.*
%{_mandir}/bg/man1/mkvmerge.1.*
%{_mandir}/bg/man1/mkvpropedit.1.*
%{_mandir}/bg/man1/%{name}-gui.1.*
%{_mandir}/ca/man1/mkvextract.1.*
%{_mandir}/ca/man1/mkvinfo.1.*
%{_mandir}/ca/man1/mkvmerge.1.*
%{_mandir}/ca/man1/mkvpropedit.1.*
%{_mandir}/ca/man1/%{name}-gui.1.*
%{_mandir}/de/man1/mkvextract.1.*
%{_mandir}/de/man1/mkvinfo.1.*
%{_mandir}/de/man1/mkvmerge.1.*
%{_mandir}/de/man1/mkvpropedit.1.*
%{_mandir}/de/man1/%{name}-gui.1.*
%{_mandir}/es/man1/mkvextract.1.*
%{_mandir}/es/man1/mkvinfo.1.*
%{_mandir}/es/man1/mkvmerge.1.*
%{_mandir}/es/man1/mkvpropedit.1.*
%{_mandir}/es/man1/%{name}-gui.1.*
%{_mandir}/fr/man1/mkvextract.1.*
%{_mandir}/fr/man1/mkvinfo.1.*
%{_mandir}/fr/man1/mkvmerge.1.*
%{_mandir}/fr/man1/mkvpropedit.1.*
%{_mandir}/fr/man1/%{name}-gui.1.*
%{_mandir}/it/man1/mkvextract.1.*
%{_mandir}/it/man1/mkvinfo.1.*
%{_mandir}/it/man1/mkvmerge.1.*
%{_mandir}/it/man1/mkvpropedit.1.*
%{_mandir}/it/man1/%{name}-gui.1.*
%{_mandir}/ja/man1/mkvextract.1.*
%{_mandir}/ja/man1/mkvinfo.1.*
%{_mandir}/ja/man1/mkvmerge.1.*
%{_mandir}/ja/man1/mkvpropedit.1.*
%{_mandir}/ja/man1/%{name}-gui.1.*
%{_mandir}/ko/man1/mkvextract.1.*
%{_mandir}/ko/man1/mkvinfo.1.*
%{_mandir}/ko/man1/mkvmerge.1.*
%{_mandir}/ko/man1/mkvpropedit.1.*
%{_mandir}/ko/man1/%{name}-gui.1.*
%{_mandir}/nl/man1/mkvextract.1.*
%{_mandir}/nl/man1/mkvinfo.1.*
%{_mandir}/nl/man1/mkvmerge.1.*
%{_mandir}/nl/man1/mkvpropedit.1.*
%{_mandir}/nl/man1/%{name}-gui.1.*
%{_mandir}/pl/man1/mkvextract.1.*
%{_mandir}/pl/man1/mkvinfo.1.*
%{_mandir}/pl/man1/mkvmerge.1.*
%{_mandir}/pl/man1/mkvpropedit.1.*
%{_mandir}/pl/man1/%{name}-gui.1.*
%{_mandir}/ru/man1/mkvextract.1.*
%{_mandir}/ru/man1/mkvinfo.1.*
%{_mandir}/ru/man1/mkvmerge.1.*
%{_mandir}/ru/man1/mkvpropedit.1.*
%{_mandir}/ru/man1/%{name}-gui.1.*
%{_mandir}/uk/man1/mkvextract.1.*
%{_mandir}/uk/man1/mkvinfo.1.*
%{_mandir}/uk/man1/mkvmerge.1.*
%{_mandir}/uk/man1/mkvpropedit.1.*
%{_mandir}/uk/man1/mkvtoolnix-gui.1.*
%{_mandir}/zh_CN/man1/mkvextract.1.*
%{_mandir}/zh_CN/man1/mkvinfo.1.*
%{_mandir}/zh_CN/man1/mkvmerge.1.*
%{_mandir}/zh_CN/man1/mkvpropedit.1.*
%{_mandir}/zh_CN/man1/%{name}-gui.1.*
%{_mandir}/zh_TW/man1/mkvextract.1.*
%{_mandir}/zh_TW/man1/mkvinfo.1.*
%{_mandir}/zh_TW/man1/mkvmerge.1.*
%{_mandir}/zh_TW/man1/mkvpropedit.1.*
%{_mandir}/zh_TW/man1/%{name}-gui.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
./autogen.sh
%configure \
	--prefix=%{_prefix} \
	--bindir=%{_bindir} \
	--datadir=%{_datadir} \
	--enable-qt5

rake -j4


%install
rake DESTDIR=%{buildroot} install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14774 |21mr|mlocate-0.26-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An utility for finding files by name via a central database
Name:		mlocate
Version:	0.26
Release:	16
License:	GPLv2+
Group:		File tools
Url:		http://fedorahosted.org/mlocate/
Source0:	https://releases.pagure.org/mlocate/%{name}-%{version}.tar.xz
Source1:	updatedb.conf
Source2:	mlocate.cron
Requires(post):	coreutils
Requires(pre):	bash
Requires(pre):	grep
Requires(pre):	pam
Requires(pre):	shadow-utils

%description
Mlocate is a locate/updatedb implementation. It keeps a database of
all existing files and allows you to lookup files by name.

The 'm' stands for "merging": updatedb reuses the existing database to avoid
rereading most of the file system, which makes updatedb faster and does not
trash the system caches as much as traditional locate implementations.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%config(noreplace) %{_sysconfdir}/updatedb.conf
%{_sysconfdir}/cron.daily/mlocate.cron
%attr(2711,root,mlocate) %{_bindir}/locate
%{_bindir}/updatedb
%{_mandir}/man*/*
%dir %attr(0750,root,mlocate) /var/lib/mlocate
%ghost %{_localstatedir}/lib/mlocate/mlocate.db

%pre
if [ "$1" = "1" ]; then
	%{_sbindir}/groupadd -r -f mlocate
elif [ "$1" = "2" ]; then
	if grep	slocate	%{_sysconfdir}/group > /dev/null; then
		%{_sbindir}/groupmod -n mlocate slocate
	fi
fi

%post
# for %ghost:
touch %{_localstatedir}/lib/mlocate/mlocate.db

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--localstatedir=%{_localstatedir}/lib \
	--disable-rpath

%make

%install
%makeinstall_std

# install config file:
install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/updatedb.conf

# install daily cron entry:
install -D -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.daily/mlocate.cron

# for %ghost:
touch %{buildroot}%{_localstatedir}/lib/mlocate/mlocate.db

%find_lang %{name}

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14775 |21mr|mlt-7.22.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define plusmaj %{major}
%define libname %mklibname %{name} %{major}
%define libplus %mklibname mlt++ %{plusmaj}
%define devname %mklibname %{name} -d
%define _disable_lto 1

%bcond_with mmx
%bcond_with git

# mlt receives a lot of fixes in git, but rarely makes releases,
# it makes sense to build git versions
%if %{with git}
%define commit 52bcd049f0ffa4ba97f6f45f175c0d8a077df036
%define commit_short %(echo %{commit} | head -c 6)
%define relsuffix .git%{commit_short}
# in git, version will be from the future
%define libver 6.20.0
%else
%define relsuffix %{nil}
%define libver %{version}
%endif

Summary:	Media Lovin' Toolkit nonlinear video editing library
Name:		mlt
Version:	7.22.0
Release:	4
License:	LGPLv2+
Group:		Video
Url:		https://www.mltframework.org
%if %{with git}
Source0:	https://github.com/mltframework/mlt/archive/%{commit}.tar.gz?/mlt-%{commit}.tar.gz
%else
Source0:	http://downloads.sourceforge.net/project/mlt/mlt/%{name}-%{version}.tar.gz
%endif
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	ffmpeg
BuildRequires:	qt6-cmake
BuildRequires:	ffmpeg-devel
BuildRequires:	ladspa-devel
# Need replace with cmake(Qt6SvgWidgets) when fix qt6-qtsvg
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Core5Compat)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6SvgWidgets)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(frei0r)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(libquicktime)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(movit)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(rubberband)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sox)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(opencv4)
BuildRequires:	pkgconfig(zlib)
# For python-bindings
BuildRequires:	swig
BuildRequires:	pkgconfig(python3)
# For ruby bindings
BuildRequires:	pkgconfig(ruby)

# meta package to keep functionality on older platforms during update,
# does not make sense for other purposes
%if %{mdvver} <= 202110
Requires:	%{name}-common
Requires:	%{name}-cli
Recommends:	%{name}-gdk = %{EVRD}
Recommends:	%{name}-multimedia = %{EVRD}
%endif

%description
MLT is an open source multimedia framework, designed and developed for
television broadcasting.

It provides a toolkit for broadcasters, video editors, media players,
transcoders, web streamers and many more types of applications. The
functionality of the system is provided via an assortment of ready to
use tools, xml authoring components, and an extendible plug-in based
API.

%if %{mdvver} <= 202110
%files
# empty, meta package
%endif

#----------------------------------------------------------------------------

%package common
Summary:	Common parts of different MLT modules
# files were moved
Conflicts:	mlt < 7.14.0-2

%description common
Common parts of different MLT modules.
This package is automatically installed as a dependency of another package when needed.

MLT is an open source multimedia framework, designed and developed for
television broadcasting.

It provides a toolkit for broadcasters, video editors, media players,
transcoders, web streamers and many more types of applications. The
functionality of the system is provided via an assortment of ready to
use tools, xml authoring components, and an extendible plug-in based
API.

%files common
%doc docs
%license COPYING
%dir %{_libdir}/mlt-%{major}
%dir %{_datadir}/mlt-%{major}
%{_datadir}/mlt-%{major}/chain_normalizers.ini
%{_datadir}/mlt-%{major}/metaschema.yaml
%{_datadir}/mlt-%{major}/presets
%{_datadir}/mlt-%{major}/profiles
%{_datadir}/mlt-%{major}/xine

#----------------------------------------------------------------------------

%package cli
Summary:	Command-line tool melt
Requires:	%{name}-common = %{EVRD}
Provides:	melt = %{EVRD}
Provides:	melt-%{major} = %{EVRD}
Conflicts:	mlt < 7.14.0-2

%description cli
Command-line tool melt from MLT

%files cli
%license COPYING
%{_bindir}/melt
%{_bindir}/melt-%{major}
%{_mandir}/man1/melt-%{major}.1*

#----------------------------------------------------------------------------

# n - name of subpackage
# z - no files in %%_datadir
%define mltsubpkg(n:z) %{expand:

%package %{-n*}
Summary: MLT module %{-n*}
Requires: mlt-common = %{EVRD}
%if "%{-n*}" != "core"
Requires: mlt-core%{_isa} = %{EVRD}
%endif
Conflicts: mlt < 7.14.0-2

%description %{-n*}
MLT module %{-n*}

%files %{-n*}
%license COPYING
%{_libdir}/mlt-%{major}/libmlt%{-n*}.so
%{!-z:%{_datadir}/mlt-%{major}/%{-n*}}
}

#----------------------------------------------------------------------------

%mltsubpkg -n avformat
%mltsubpkg -n core
%mltsubpkg -n decklink
%mltsubpkg -n frei0r
%mltsubpkg -n gdk
%mltsubpkg -n glaxnimate
%mltsubpkg -n glaxnimate-qt6
%mltsubpkg -n jackrack
%mltsubpkg -n kdenlive
%mltsubpkg -n movit
%mltsubpkg -n normalize
%mltsubpkg -n oldfilm
%mltsubpkg -n opencv
%mltsubpkg -n plus
%mltsubpkg -n plusgpl
%mltsubpkg -n qt
%mltsubpkg -n qt6
%mltsubpkg -n resample
%mltsubpkg -n rtaudio
%mltsubpkg -n rubberband
%mltsubpkg -n sdl
%mltsubpkg -n sdl2
%mltsubpkg -n sox
%mltsubpkg -n vorbis
%mltsubpkg -n xine -z
%mltsubpkg -n xml

#----------------------------------------------------------------------------

%package multimedia
Summary:	Meta package which pulls multimedia-related MLT plugins
Recommends:	%{name}-cli
Recommends:	%{name}-avformat
Recommends:	%{name}-decklink
Recommends:	%{name}-frei0r
Recommends:	%{name}-jackrack
Recommends:	%{name}-movit
Recommends:	%{name}-normalize
Recommends:	%{name}-oldfilm
Recommends:	%{name}-opencv
Recommends:	%{name}-plus
Recommends:	%{name}-plusgpl
Recommends:	%{name}-rtaudio
Recommends:	%{name}-rubberband
Recommends:	%{name}-sdl
Recommends:	%{name}-sdl2
Recommends:	%{name}-sox
Recommends:	%{name}-vorbis
Recommends:	%{name}-xml

%description multimedia
Meta package which pulls multimedia-related MLT plugins.
It exists for usage in e.g. Kdenlive and Shotcut to avoid accidently
loosing needed plugins.

%files multimedia
# empty, meta package

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for mlt
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries needed to run programs dynamically
linked with mlt.

%files -n %{libname}
%license COPYING
%{_libdir}/libmlt-%{major}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libplus}
Summary:	Main library for mlt++
Group:		System/Libraries

%description -n %{libplus}
This package contains the libraries needed to run programs dynamically
linked with mlt++.

%files -n %{libplus}
%license COPYING
%{_libdir}/libmlt++-%{major}.so.%{plusmaj}*
%if "%{plusmaj}" != "%{major}"
%{_libdir}/libmlt++-%{major}.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use mlt
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libplus} = %{EVRD}
# mlt-config requires stuff from %%{_datadir}/%%{name}
Requires:	%{name}-common = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use mlt.

%files -n %{devname}
%license COPYING
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/Mlt%{major}

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings for MLT
Group:		Development/Python
Requires:	%{name}-common = %{EVRD}

%description -n python3-%{name}
This module allows to work with MLT using Python 3.

%files -n python3-%{name}
%license COPYING
%{py3_platsitedir}/%{name}%{major}.p*
%{py3_platsitedir}/_%{name}%{major}.so
%{py3_platsitedir}/__pycache__/*

#----------------------------------------------------------------------------

%package -n ruby-%{name}
Summary:	Ruby bindings for MLT
Group:		Development/Ruby
Requires:	ruby
Requires:	%{name}-common = %{EVRD}

%description -n ruby-%{name}
This module allows to work with MLT using ruby.

%files -n ruby-%{name}
%license COPYING
%{_libdir}/ruby/vendor_ruby/mlt.so

#----------------------------------------------------------------------------

%prep
%if %{with git}
%autosetup -p1 -n %{name}-%{commit}
%else
%autosetup -p1
%endif

%build
%cmake \
	-DMOD_OPENCV:BOOL=ON	\
	-DMOD_QT6:BOOL=ON	\
	-DMOD_GLAXNIMATE:BOOL=ON	\
	-DMOD_GLAXNIMATE_QT6:BOOL=ON	\
	-DSWIG_PYTHON:BOOL=ON	\
	-DSWIG_RUBY:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14776 |21mr|mm-common-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Build infrastructure and utilities for GNOME C++ bindings
Name:		mm-common
Version:	1.0.4
Release:	1
License:	GPLv2+
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/mm-common
Source0:	https://download.gnome.org/sources/mm-common/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildArch:	noarch

%description
The mm-common module provides the build infrastructure and utilities
shared among the GNOME C++ binding libraries.  It is only a required
dependency for building the C++ bindings from the gnome.org version
control repository.  An installation of mm-common is not required for
building tarball releases, unless configured to use maintainer-mode.

%files
%doc README NEWS ChangeLog AUTHORS
%{_bindir}/mm-common-get
%{_bindir}/mm-common-prepare
%{_datadir}/aclocal/*.m4
%{_datadir}/%{name}
%{_datadir}/pkgconfig/*.pc
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%package docs
Summary:	Documentation for mm-common, includes example mm module skeleton
Group:		Documentation

%description docs
Package contains short documentation for mm-common and example skeleton module,
which could be used as a base for new mm module.

%files docs
%doc README
%{_docdir}/%{name}/skeletonmm.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14777 |21mr|mmtf-cpp-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:           mmtf-cpp
Version:        1.0.0
Release:        1
Summary:        The pure C++ implementation of the MMTF API, decoder and encoder
License:        MIT
Group:          Development/C++
URL:            https://github.com/rcsb/mmtf-cpp
Source0:        https://github.com/rcsb/mmtf-cpp/archive/v1.0.0/%{name}-%{version}.tar.gz

BuildRequires:  cmake
BuildRequires:  make
BuildRequires:  ninja
BuildRequires:  doxygen

%description
The pure C++ implementation of the MMTF API, decoder and encoder.
A binary encoding of biological structures library.

%package        devel
Summary: The pure C++ implementation of the MMTF API, decoder and encoder

%description devel
The pure C++ implementation of the MMTF API, decoder and encoder.
A binary encoding of biological structures library.

%prep
%setup -q

%build
%cmake -G Ninja \
      -DCMAKE_INSTALL_PREFIX=/usr \
      -DCMAKE_BUILD_TYPE=Release 

%ninja_build

%install
%ninja_install -C build

%files
#empty, add here sometings. Maybe readme?

%files devel
%{_includedir}/mmtf*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14778 |21mr|mobile-broadband-provider-info-20230416-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mobile broadband providers database
Name:		mobile-broadband-provider-info
Version:	20230416
Release:	1
License:	Public Domain
Group:		System/Configuration/Other
Url:		http://live.gnome.org/NetworkManager/MobileBroadband/ServiceProviders
Source0:	http://ftp.gnome.org/pub/gnome/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	libxml2-utils
BuildRequires:  xsltproc
BuildArch:	noarch

%description
The mobile-broadband-provider-info package contains listings of mobile
broadband (3G) providers and associated network and plan information.

%files
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%package devel
Summary:	The pkgconfig for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
The pkgconfig for %{name}.

%files devel
%{_datadir}/pkgconfig/%{name}.pc

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14779 |21mr|mock-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Builds packages inside chroots
Name:		mock
Version:	3.0
Release:	1
License:	GPLv2+
Group:		Development/Other
Url:		https://github.com/rpm-software-management/mock/
Source0:	https://github.com/rpm-software-management/mock/releases/download/%{name}-%{version}-1/%{name}-%{version}.tar.gz
# For x86_64 rosa2021.1
Source1:	rosa202110-x86_64.cfg
BuildArch:	noarch
Requires:	%{name}-filesystem = %{EVRD}
Requires:	distribution-gpg-keys
Requires:	dnf
Requires:	dnf-plugins-core
Requires:	nosync
Requires:	procps-ng
Requires:	python3
Requires:	python3-distro
Requires:	python3-jinja2
Requires:	python3-pyroute2
Requires:	python3-requests
Requires:	python3-rpm
Requires:	python3-six
Requires:	python3-templated-dictionary
Requires:	python3-yaml
Requires:	systemd
Requires:	bsdtar
Requires:	usermode-consoleonly
Recommends:	btrfs-progs
Recommends:	createrepo_c
Recommends:	dnf-utils
Recommends:	dnf-yum
Recommends:	(%{name}-configs-x86_64 if arch(x86_64))

# default.cfg was moved
Conflicts:	mock < 2.11

%description
Mock takes an SRPM and builds it in a chroot.

%files
%doc %{_docdir}/%{name}-%{version}/site-defaults.cfg
%ghost %config(noreplace) %{_sysconfdir}/%{name}/default.cfg
%{_bindir}/%{name}
%{_bindir}/mockchain
%{_bindir}/mock-parse-buildlog
%attr(0644,root,mock) %{_datadir}/bash-completion/completions/%{name}
%{_datadir}/bash-completion/completions/mock-parse-buildlog
%{_datadir}/cheat/%{name}
%{_libexecdir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/mock-parse-buildlog.1*
%{python3_sitelib}/*
%config(noreplace) %{_sysconfdir}/%{name}/*.ini
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%dir %{_sysconfdir}/pki/%{name}
%config(noreplace) %{_sysconfdir}/pki/mock/*
%config(noreplace) %{_sysconfdir}/security/console.apps/%{name}

%defattr(0775,root,mock,02775)
%dir %{_localstatedir}/cache/%{name}
%dir %{_localstatedir}/lib/%{name}

%exclude %{python3_sitelib}/mockbuild/plugins/lvm_root.*
%exclude %{python3_sitelib}/mockbuild/plugins/__pycache__/lvm_root.*
%exclude %{python3_sitelib}/mockbuild/__pycache__/scm.*
%exclude %{python3_sitelib}/mockbuild/scm.*

#----------------------------------------------------------------------------

%package scm
Summary:	Mock SCM integration module
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	git
Requires:	subversion
Requires:	tar

%description scm
Mock SCM integration module.

%files scm
%{python3_sitelib}/mockbuild/__pycache__/scm.*.py*
%{python3_sitelib}/mockbuild/scm.py*

#----------------------------------------------------------------------------

%package lvm
Summary:	LVM plugin for mock
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	lvm2

%description lvm
Mock plugin that enables using LVM as a backend and support creating snapshots
of the buildroot.

%files lvm
%{python3_sitelib}/mockbuild/plugins/lvm_root.*
%{python3_sitelib}/mockbuild/plugins/__pycache__/lvm_root.*.py*

#----------------------------------------------------------------------------

%package filesystem
Summary:	Mock filesystem layout
Group:		Development/Other
Requires(pre):	glibc
Requires(pre):	shadow-utils

%description filesystem
Filesystem layout and group for Mock.

%pre filesystem
# check for existence of mock group, create it if not found
getent group %{name} > /dev/null || groupadd -f -g 135 -r %{name}
exit 0

%files filesystem
%license COPYING
%dir  %{_datadir}/cheat
%dir  %{_sysconfdir}/%{name}
%dir  %{_sysconfdir}/%{name}/eol
%dir  %{_sysconfdir}/%{name}/eol/templates
%dir  %{_sysconfdir}/%{name}/templates

#----------------------------------------------------------------------------

%package configs-x86_64
Summary:	Default configs for mock x86_64
Group:		Development/Other
Requires:	bsdtar
Requires:	zstd
Requires:	%{name}
# make /etc/mock/default.cfg (%%ghost) exist
Requires(posttrans):	%{name}

%description configs-x86_64
Default config for mock x86_64.

%files configs-x86_64
%config(noreplace) %{_sysconfdir}/%{name}/rosa202110-x86_64.cfg

%posttrans configs-x86_64
if [ ! -a /etc/mock/default.cfg ]; then
	cp -f /etc/mock/rosa202110-x86_64.cfg /etc/mock/default.cfg
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1
sed -i	\
	-e 's|^VERSION = .*|VERSION="%{version}"|'			\
	-e 's|^SYSCONFDIR = .*|SYSCONFDIR="%{_sysconfdir}"|'			\
	-e 's|^PYTHONDIR = .*|PYTHONDIR="%{python3_sitelib}"|'			\
	-e 's|^PKGPYTHONDIR = .*|PKGPYTHONDIR="%{python3_sitelib}/mockbuild"|'	\
		py/mock-parse-buildlog.py py/mockbuild/constants.py
sed -i 's|@VERSION@|%{version}|' docs/%{name}.1 docs/mock-parse-buildlog.1
sed -i "/nr_inodes=0/d" py/mockbuild/plugins/tmpfs.py

%build

%install
#base filesystem
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/eol/templates
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/templates

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_libexecdir}/%{name}
install mockchain %{buildroot}%{_bindir}/mockchain
install py/mock-parse-buildlog.py %{buildroot}%{_bindir}/mock-parse-buildlog
install py/%{name}.py %{buildroot}%{_libexecdir}/%{name}/%{name}
ln -s consolehelper %{buildroot}%{_bindir}/%{name}
install create_default_route_in_container.sh %{buildroot}%{_libexecdir}/%{name}/
 
install -d %{buildroot}%{_sysconfdir}/pam.d
cp -a etc/pam/* %{buildroot}%{_sysconfdir}/pam.d/

install -d %{buildroot}%{_sysconfdir}/%{name}
cp -a etc/%{name}/* %{buildroot}%{_sysconfdir}/%{name}/

install -d %{buildroot}%{_sysconfdir}/security/console.apps/
cp -a etc/consolehelper/%{name} %{buildroot}%{_sysconfdir}/security/console.apps/%{name}

install -d %{buildroot}%{_datadir}/bash-completion/completions/
cp -a etc/bash_completion.d/* %{buildroot}%{_datadir}/bash-completion/completions/
ln -s %{name} %{buildroot}%{_datadir}/bash-completion/completions/mock-parse-buildlog

install -d %{buildroot}%{_sysconfdir}/pki/%{name}
cp -a etc/pki/* %{buildroot}%{_sysconfdir}/pki/%{name}/

install -d %{buildroot}%{python3_sitelib}/
cp -a py/mockbuild %{buildroot}%{python3_sitelib}/

install -d %{buildroot}%{_mandir}/man1
cp -a docs/%{name}.1 docs/mock-parse-buildlog.1 %{buildroot}%{_mandir}/man1/
install -d %{buildroot}%{_datadir}/cheat
cp -a docs/%{name}.cheat %{buildroot}%{_datadir}/cheat/%{name}

install -d %{buildroot}/var/lib/%{name}
install -d %{buildroot}/var/cache/%{name}

mkdir -p %{buildroot}%{_docdir}/%{name}-%{version}
install -p -m 0644 docs/site-defaults.cfg %{buildroot}%{_docdir}/%{name}-%{version}

sed -i 's/^_MOCK_NVR = None$/_MOCK_NVR = "%name-%version-%release"/' \
    %{buildroot}%{_libexecdir}/%{name}/%{name}

cp %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14780 |21mr|mockito1-1.10.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname mockito

Summary:        A Java mocking framework
Name:           mockito1
Version:        1.10.19
Release:        1
Epoch: 0
License:        MIT
Group:          Development/Java
URL:            http://%{oldname}.org
Source0:        %{oldname}-%{version}.tar.xz
Source1:        make-%{oldname}-sourcetarball.sh
Patch0:         fixup-ant-script.patch
Patch1:         fix-bnd-config.patch
Patch2:         %{oldname}-matcher.patch
# Workaround for NPE in setting NamingPolicy in cglib
Patch3:         setting-naming-policy.patch
# because we have old objenesis
Patch4:         fix-incompatible-types.patch

BuildArch:      noarch
BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  objenesis
BuildRequires:  cglib
BuildRequires:  junit
BuildRequires:  hamcrest
BuildRequires:  aqute-bnd
BuildRequires:  unzip
Requires:       objenesis
Requires:       cglib
Requires:       junit
Requires:       hamcrest
Source44: import.info

%description
Mockito is a mocking framework that tastes really good. It lets you write
beautiful tests with clean & simple API. Mockito doesn't give you hangover
because the tests are very readable and they produce clean verification
errors.

%package javadoc
Group: Development/Java
Summary:        Javadocs for %{oldname}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{oldname}.

%prep
%setup -n %{oldname}-%{version} -q
%patch0
%patch1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%pom_add_dep net.sf.cglib:cglib:3.1 maven/mockito-core.pom
find . -name "*.java" -exec sed -i "s|org\.%{oldname}\.cglib|net\.sf\.cglib|g" {} +
mkdir -p lib/compile

%pom_xpath_remove 'target[@name="javadoc"]/copy' build.xml
%mvn_compat_version : %{version} 1

%build
build-jar-repository lib/compile objenesis cglib junit hamcrest/core
ant jar javadoc

# Convert to OSGi bundle
pushd target
bnd wrap \
 --version %{version} \
 --output %{oldname}-core-%{version}.bar \
 --properties ../conf/%{oldname}-core.bnd \
 %{oldname}-core-%{version}.jar
mv %{oldname}-core-%{version}.bar %{oldname}-core-%{version}.jar

# Explicit Require-Bundle on hamcrest
unzip mockito-core-%{version}.jar META-INF/MANIFEST.MF
sed -i -e '2iRequire-Bundle: org.hamcrest.core' META-INF/MANIFEST.MF
jar umf META-INF/MANIFEST.MF mockito-core-%{version}.jar
popd

sed -i -e "s|@version@|%{version}|g" maven/%{oldname}-core.pom
%mvn_artifact maven/%{oldname}-core.pom target/%{oldname}-core-%{version}.jar
%mvn_alias org.%{oldname}:%{oldname}-core org.%{oldname}:%{oldname}-all

%install
%mvn_install -J target/javadoc

%files -f .mfiles
%doc LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14781 |21mr|mockito-2.23.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           mockito
Version:        2.23.9
Release:        7
Summary:        Tasty mocking framework for unit tests in Java
License:        MIT
URL:            https://site.mockito.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Source tarball and the script to generate it
Source0:        %{name}-%{version}.tar.xz
Source1:        make-%{name}-sourcetarball.sh

# A custom build script to allow building with maven instead of gradle
Source2:        mockito-core.pom

# Mockito expects byte-buddy to have a shaded/bundled version of ASM, but
# we don't bundle in Fedora, so this patch makes mockito use ASM explicitly
Patch0:         use-unbundled-asm.patch
Patch1:		3c7a59a54770845dc8ad03c66a4b4d85dde3c17c.patch
BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.bytebuddy:byte-buddy)
BuildRequires:  mvn(net.bytebuddy:byte-buddy-agent)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.objenesis:objenesis)
BuildRequires:  mvn(org.ow2.asm:asm)

%description
Mockito is a mocking framework that tastes really good. It lets you write
beautiful tests with clean & simple API. Mockito doesn't give you hangover
because the tests are very readable and they produce clean verification
errors.

%package javadoc
Summary: Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%patch0
%patch1 -p1

# Use our custom build script
sed -e 's/@VERSION@/%{version}/' %{SOURCE2} > pom.xml

# OGGi metadata configuration
cat > osgi.bnd <<EOF
Automatic-Module-Name: org.mockito
Bundle-SymbolicName: org.mockito
Bundle-Name: Mockito Mock Library for Java.
Import-Package: junit.*;resolution:=optional,org.junit.*;resolution:=optional,org.hamcrest;resolution:=optional,org.mockito*;version="%{version}",*
Private-Package: org.mockito.*
-removeheaders: Bnd-LastModified,Include-Resource,Private-Package
EOF

# Compatibility alias
%mvn_alias org.%{name}:%{name}-core org.%{name}:%{name}-all

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc doc/design-docs/custom-argument-matching.md

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14782 |21mr|mod_cluster-1.3.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?_httpd_apxs:       %{expand: %%global _httpd_apxs       %%{_bindir}/apxs}}
#%%{!?_httpd_mmn:        %{expand: %%global _httpd_mmn        %%(cat %{_includedir}/httpd/.mmn || echo 0-0)}}
%{!?_httpd_confdir:    %{expand: %%global _httpd_confdir    %%{_sysconfdir}/httpd/conf.d}}
# /etc/httpd/conf.d with httpd < 2.4 and defined as /etc/httpd/conf.modules.d with httpd >= 2.4
%{!?_httpd_modconfdir: %{expand: %%global _httpd_modconfdir %%{_sysconfdir}/httpd/conf.d}}

%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

%bcond_with java

Name:          mod_cluster
Version:       1.3.14
Release:       1
Summary:       Apache HTTP Server dynamic load balancer with Wildfly and Tomcat libraries
License:       LGPLv3
Group:         Development/Java
URL:           http://modcluster.io/
Source0:       https://github.com/modcluster/mod_cluster/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
Source1:       mod_cluster.conf
Source2:       README.fedora

Patch0:        MODCLUSTER-528-CatalinaContext.java.patch
Patch1:        mod_cluster-distributable.patch
Requires:      httpd >= 2.4.42
#Requires:      httpd-mmn = %{_httpd_mmn}

BuildRequires: httpd-devel >= 2.4.42
BuildRequires: autoconf
BuildRequires: make
BuildRequires: gcc

%if %{without java}
BuildRequires: maven-local
BuildRequires: mvn(net.jcip:jcip-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.apache.tomcat:tomcat-catalina)
BuildRequires: mvn(org.apache.tomcat:tomcat-coyote)
BuildRequires: mvn(org.apache.tomcat:tomcat-util)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
%endif

%description
Mod_cluster is an httpd-based load balancer. Like mod_jk and mod_proxy,
mod_cluster uses a communication channel to forward requests from httpd to one
of a set of application server nodes. Unlike mod_jk and mod_proxy, mod_cluster
leverages an additional connection between the application server nodes and
httpd. The application server nodes use this connection to transmit server-side
load balance factors and lifecycle events back to httpd via a custom set of
HTTP methods, affectionately called the Mod-Cluster Management Protocol (MCMP).
This additional feedback channel allows mod_cluster to offer a level of
intelligence and granularity not found in other load balancing solutions.

%if %{without java}
%package java
Summary:          Java libraries for %{name}
BuildArch:        noarch

%description java
This package contains %{name} core Java libraries
that can be used with WildFly application server.

%package java-tomcat8
Summary:          Tomcat 8 Java libraries for %{name}
Requires:         tomcat >= 1:8
BuildArch:        noarch

%description java-tomcat8
This package contains %{name} Java libraries that can be used with Tomcat 8.

%package javadoc
Summary:          Javadoc for %{name}
BuildArch:        noarch

%description javadoc
This package contains the API documentation for %{name}.

%package container
Summary:          Mod_cluster Container Parent POM
BuildArch:        noarch

%description container
Mod_cluster Container Parent POM.

%package parent
Summary:          Mod_cluster Parent POM
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description parent
Mod_cluster Parent POM.

%endif

%prep
%autosetup -p1 -n %{name}-%{namedversion}

%if %{without java}
%pom_disable_module demo
%pom_disable_module tomcat6 container
%pom_disable_module tomcat7 container
%pom_disable_module tomcat8 container
%pom_disable_module jbossweb container

%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :versions-maven-plugin

%pom_change_dep :jboss-servlet-api_3.0_spec org.apache.tomcat:tomcat-util container/catalina

%pom_change_dep org.apache.tomcat: ::'${version.tomcat8}' container/catalina

%pom_change_dep :catalina :tomcat-catalina:'${version.tomcat8}' container/catalina-standalone
%pom_change_dep :coyote :tomcat-coyote:'${version.tomcat8}' container/catalina-standalone

%pom_xpath_remove "pom:dependency[pom:type = 'test-jar']" container/tomcat8
#%%pom_xpath_inject "pom:profile[pom:id = 'TC8']/pom:modules" "<module>catalina-standalone</module>"  container

%pom_xpath_set "pom:profile[pom:id = 'TC7']/pom:id" TC8 container/catalina

# Wildfly/core lib
%mvn_package ":mod_cluster-core" java
%mvn_package ":mod_cluster-container-spi" java

%mvn_file :mod_cluster-core:jar: mod_cluster/mod_cluster-core tomcat/mod_cluster-core
%mvn_file :mod_cluster-container-spi:jar: mod_cluster/mod_cluster-container-spi tomcat/mod_cluster-container-spi

# Tomcat-ish
%mvn_package ":mod_cluster-container-tomcat8" java-tomcat8
%mvn_package ":mod_cluster-container-catalina-standalone" java-tomcat8
%mvn_package ":mod_cluster-container-catalina" java-tomcat8

%mvn_file :mod_cluster-container-catalina:jar: tomcat/mod_cluster-container-catalina 
%mvn_file :mod_cluster-container-catalina-standalone:jar: tomcat/mod_cluster-container-catalina-standalone
%mvn_file :mod_cluster-container-tomcat8:jar: tomcat/mod_cluster-container-tomcat8

# Disable useless artifacts generation, package __noinstall do not wor8k
%pom_add_plugin org.apache.maven.plugins:maven-source-plugin . '
<configuration>
 <skipSource>true</skipSource>
</configuration>'

%endif

%build

CFLAGS="$RPM_OPT_FLAGS"
export CFLAGS

module_dirs=( advertise mod_manager mod_proxy_cluster mod_cluster_slotmem )

for dir in ${module_dirs[@]} ; do
    pushd native/${dir}
        sh buildconf
        %configure --libdir=%{_libdir} --with-apxs=%{_httpd_apxs}
        make %{?_smp_mflags}
    popd
done

%if %{without java}
%mvn_build -s -f -- -PTC8
%endif

%install
install -d -m 755 $RPM_BUILD_ROOT%{_libdir}/httpd/modules
install -d -m 755 $RPM_BUILD_ROOT%{_httpd_confdir}

module_dirs=( advertise mod_manager mod_proxy_cluster mod_cluster_slotmem )
for dir in ${module_dirs[@]} ; do
    pushd native/${dir}
        cp ./*.so $RPM_BUILD_ROOT%{_libdir}/httpd/modules
    popd
done

%if %{without java}
%mvn_install

ln -sf %{_javadir}/jboss-logging/jboss-logging.jar \
 $RPM_BUILD_ROOT%{_javadir}/tomcat/jboss-logging.jar

%endif

cp -a %{SOURCE1} $RPM_BUILD_ROOT%{_httpd_confdir}/

install -pm 0644 %{SOURCE2} README

%files
%doc README
%license lgpl.txt
%{_libdir}/httpd/modules/mod_advertise.so
%{_libdir}/httpd/modules/mod_manager.so
%{_libdir}/httpd/modules/mod_proxy_cluster.so
%{_libdir}/httpd/modules/mod_cluster_slotmem.so
%config(noreplace) %{_sysconfdir}/httpd/conf.d/*.conf

%if %{without java}
%files java -f .mfiles-java
%license lgpl.txt

%files java-tomcat8 -f .mfiles-java-tomcat8
%{_javadir}/tomcat/jboss-logging.jar

%files javadoc -f .mfiles-javadoc
%license lgpl.txt

%files container -f .mfiles-mod_cluster-container
%license lgpl.txt

%files parent -f .mfiles-mod_cluster-parent
%license lgpl.txt
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14783 |21mr|modello-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without jackson
%bcond_without snakeyaml

Name:           modello
Summary:        Modello Data Model toolkit
Epoch:          0
Version:        1.10.0
Release:        1
# The majority of files are under MIT license, but some of them are ASL 2.0.
License:        MIT and ASL 2.0

URL:            http://codehaus-plexus.github.io/modello
Source0:        http://repo2.maven.org/maven2/org/codehaus/%{name}/%{name}/%{version}/%{name}-%{version}-source-release.zip
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-javac)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.jsoup:jsoup)
BuildRequires:  mvn(org.sonatype.plexus:plexus-build-api)

%if %{with jackson}
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
%endif

%if %{with snakeyaml}
BuildRequires:  mvn(org.yaml:snakeyaml)
%endif

# Explicit javapackages-tools requires since modello script uses
# /usr/share/java-utils/java-functions
Requires:         javapackages-tools

%description
Modello is a Data Model toolkit in use by the Apache Maven Project.

Modello is a framework for code generation from a simple model.
Modello generates code from a simple model format based on a plugin
architecture, various types of code and descriptors can be generated
from the single model, including Java POJOs, XML
marshallers/unmarshallers, XSD and documentation.


%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
API documentation for %{name}.


%prep
%setup -q
cp -p %{SOURCE1} LICENSE

# We don't generate site; don't pull extra dependencies.
%pom_remove_plugin :maven-site-plugin

# Avoid using Maven 2.x APIs
sed -i s/maven-project/maven-core/ modello-maven-plugin/pom.xml

%if %{without jackson}
%pom_disable_module modello-plugin-jackson modello-plugins
%pom_disable_module modello-plugin-jsonschema modello-plugins
%pom_remove_dep :modello-plugin-jackson modello-maven-plugin
%pom_remove_dep :modello-plugin-jsonschema modello-maven-plugin
%endif

%if %{without snakeyaml}
%pom_disable_module modello-plugin-snakeyaml modello-plugins
%pom_remove_dep :modello-plugin-snakeyaml modello-maven-plugin
%endif


%build
# skip tests because we have too old xmlunit in Fedora now (1.0.8)
%mvn_build -f -- -Dmaven.version=3.1.1


%install
%mvn_install

%jpackage_script org.codehaus.modello.ModelloCli "" "" modello:plexus-containers/plexus-container-default:plexus/classworlds:plexus/utils:plexus/plexus-build-api:xbean/xbean-reflect:guava %{name} true


%files -f .mfiles
%doc LICENSE
%{_bindir}/*

%files javadoc -f .mfiles-javadoc
%doc LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14784 |21mr|modemmanager-1.18.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define	_disable_ld_no_undefined 1

%define url_ver %(echo %{version}|cut -d. -f1,2)
%define oname ModemManager

%define major 0
%define libname %mklibname mm-glib %{major}
%define devname %mklibname mm-glib -d

Summary:	Mobile broadband modem management service
Name:		modemmanager
Version:	1.18.12
Release:	3
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		http://www.gnome.org/projects/NetworkManager/
Source0:	https://gitlab.freedesktop.org/mobile-broadband/ModemManager/-/archive/%{version}/%{oname}-%{version}.tar.gz
Patch0:		mm-broadband-modem-pantech.c.patch
Patch1:		mm-broadband-modem-qmi.c.patch
Patch2:		mm-cdma-manual-activation-properties.c.patch
Patch3:		mm-iface-modem-messaging.c.patch
Patch4:		mm-plugin-manager.c.patch
Patch5:		mm-port-qmi.c.patch
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	bash-completion-devel
BuildRequires:	vala
%ifnarch %{e2k} %{riscv}
BuildRequires:	kmod(qrtr)
%endif
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(mbim-glib)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(qmi-glib)
BuildRequires:	pkgconfig(vapigen)
Requires:	mobile-broadband-provider-info
Requires:	usb_modeswitch
# ModemManager.service requires polkit
Requires:	polkit
# modemmanager calls /usr/libexec/mbim-proxy
Requires:	libmbim-utils

%description
The ModemManager service provides a consistent API to operate many
different modems, including mobile broadband (3G) devices.

%files -f %{oname}.lang
%doc README AUTHORS
%{_bindir}/mmcli
%{_datadir}/bash-completion/completions/mmcli
%{_datadir}/dbus-1/interfaces/*.xml
%{_datadir}/dbus-1/system-services/org.freedesktop.ModemManager1.service
%dir %{_datadir}/ModemManager
%{_datadir}/ModemManager/fcc-unlock.available.d/*
%{_datadir}/ModemManager/connection.available.d/*
%{_datadir}/ModemManager/*.conf
%{_datadir}/polkit-1/actions/org.freedesktop.ModemManager1.policy
%{_iconsdir}/hicolor/22x22/apps/ModemManager.png
%dir %{_libdir}/%{oname}
%{_libdir}/%{oname}/*.so
/lib/udev/rules.d/*
%{_mandir}/man1/mmcli.1*
%{_mandir}/man8/ModemManager.8*
%{_sbindir}/ModemManager
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.ModemManager1.conf
%{_unitdir}/ModemManager.service
%{_unitdir}/dbus-org.freedesktop.ModemManager1.service

%post
%systemd_post %{oname}.service

%preun
%systemd_preun %{oname}.service

%postun
%systemd_postun %{oname}.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for adding ModemManager support to applications that use glib
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries that make it easier to use some
ModemManager functionality from applications that use glib.

%files -n %{libname}
%{_libdir}/libmm-glib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for adding glib ModemManager support
Group:		System/Libraries
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(glib-2.0)
Provides:	%{name}-glib-devel = %{EVRD}

%description -n %{devname}
This package contains various headers for accessing some ModemManager
functionality from glib applications.

%files -n %{devname}
%dir %{_includedir}/libmm-glib
%dir %{_includedir}/%{oname}
%{_includedir}/libmm-glib/*.h
%{_includedir}/%{oname}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/girepository-1.0/ModemManager-1.0.typelib
%{_datadir}/gir-1.0/ModemManager-1.0.gir
%{_datadir}/vala/vapi/libmm-glib.deps
%{_datadir}/vala/vapi/libmm-glib.vapi
%optional %{_datadir}/gtk-doc/html/%{oname}
%optional %{_datadir}/gtk-doc/html/libmm-glib

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%meson \
    -Dsystemdsystemunitdir=%{_unitdir} \
%ifarch %{riscv} %{e2k}
    -Dqrtr=false \
%endif
    -Dvapi=true

%meson_build

%install
%meson_install

# Make it dbus-accessible without enabling (adding to autostart)
# User can disable it by "masking" via `systemctl mask`
# (symlink /etc/systemd/system/dbus-org.freedesktop.ModemManager1.service -> /dev/null)
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=11551
( cd %{buildroot}%{_unitdir}
  ln -s ModemManager.service dbus-org.freedesktop.ModemManager1.service
)

%find_lang %{oname}

%check
# The test suite wants to talk to stuff over dbus, which doesn't
# work in abf containers. Let's run the tests so we see when
# things go wrong without making it fatal.
%meson_test || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14785 |21mr|modemmanager-qt-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 Qt wrapper for ModemManager API
Name:		modemmanager-qt
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(ModemManager)

%description
KDE Frameworks 5 Qt wrapper for ModemManager API.

%files
%{_kde5_datadir}/qlogging-categories5/modemmanagerqt.categories
%{_kde5_datadir}/qlogging-categories5/modemmanagerqt.renamecategories

#----------------------------------------------------------------------------

%define kf5modemmanagerqt_major 6
%define libkf5modemmanagerqt %mklibname kf5modemmanagerqt %{kf5modemmanagerqt_major}

%package -n %{libkf5modemmanagerqt}
Summary:	KDE Frameworks 5 Qt wrapper for ModemManager API shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5modemmanagerqt}
KDE Frameworks 5 Qt wrapper for ModemManager API shared library.

%files -n %{libkf5modemmanagerqt}
%{_kde5_libdir}/libKF5ModemManagerQt.so.%{kf5modemmanagerqt_major}
%{_kde5_libdir}/libKF5ModemManagerQt.so.%{version}

#----------------------------------------------------------------------------

%define devkf5modemmanagerqt %mklibname kf5modemmanagerqt -d

%package -n %{devkf5modemmanagerqt}
Summary:	Development files for KDE Frameworks 5 Qt wrapper for ModemManager API
Group:		Development/KDE and Qt
Requires:	%{libkf5modemmanagerqt} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5modemmanagerqt-devel = %{version}

%description -n %{devkf5modemmanagerqt}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5modemmanagerqt}
%{_kde5_includedir}/KF5/ModemManagerQt
%{_kde5_libdir}/cmake/KF5ModemManagerQt
%{_kde5_libdir}/libKF5ModemManagerQt.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14786 |21mr|modulemd1-1.8.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define girapi %{major}.0
%define libname %mklibname modulemd %{major}
%define girname %mklibname modulemd-gir %{girapi}
%define devname %mklibname modulemd%{major} -d

%bcond_without gir
%bcond_with gtk-doc

Summary:	Library for manipulating module v1 metadata files
Name:		modulemd%{major}
Version:	%{major}.8.16
Release:	1
Group:		System/Libraries
License:	LGPLv2+
URL:		https://github.com/fedora-modularity/libmodulemd
Source0:	%{url}/releases/download/libmodulemd-%{version}/modulemd-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(yaml-0.1)
BuildRequires:	magic-devel
BuildRequires:	/bin/sh
BuildRequires:	sed
BuildRequires:	coreutils
%if %{with gtk-doc}
BuildRequires:	gtk-doc
%endif
#BuildRequires:	valgrind

%description
Library for manipulating module v1 metadata files

%package -n %{libname}
Summary:	Library for manipulating module v1 metadata files
Group:		System/Libraries

%description -n %{libname}
Library for manipulating module v1 metadata files

%package -n %{girname}
Summary:	GObject Introspection interface description for libmodulemd%{major}
Group:		System/Libraries
Requires:	%{libname}%{?_isa} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for libmodulemd%{major}.

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
# Conflict with the newer version of libmodulemd
Conflicts:	%{_lib}modulemd-devel
Conflicts:	libmodulemd-devel
Provides:	lib%{name}1-devel%{?_isa} = %{EVRD}
Provides:	lib%{name}1-devel = %{EVRD}
Provides:	%{name}1-devel%{?_isa} = %{EVRD}
Provides:	%{name}1-devel = %{EVRD}
Requires:	%{girname}%{?_isa} = %{EVRD}
Requires:	%{libname}%{?_isa} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%prep
%autosetup -p1 -n modulemd-%{version}

%build
%meson \
%if !%{with gir}
	-Dskip_introspection=true \
%endif
%if %{without gtk-doc}
	-Dwith_docs=false \
%endif
	-Ddeveloper_build=false

%meson_build

%install
%meson_install

%files
%{_bindir}/modulemd-validator-v1

%files -n %{libname}
%{_libdir}/libmodulemd.so.%{major}*

%files -n %{girname}
%{_libdir}/girepository-1.0/Modulemd-%{girapi}.typelib

%files -n %{devname}
%license COPYING
%{_libdir}/libmodulemd.so
%{_datadir}/gir-1.0/Modulemd-%{girapi}.gir
%{_includedir}/modulemd
%{_libdir}/pkgconfig/modulemd.pc
%if %{with gtk-doc}
%doc %{_datadir}/gtk-doc/html/modulemd-%{girapi}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14787 |21mr|mojarra-2.2.13-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          mojarra
Version:       2.2.13
Release:       6
Summary:       JSF Reference Implementation
License:       CDDL or GPLv2 with exceptions
URL:           http://javaserverfaces.java.net
Source0:       https://github.com/javaserverfaces/mojarra/archive/%{version}/%{name}-%{version}.tar.gz
Source1:       http://repo1.maven.org/maven2/com/sun/faces/jsf-api/%{version}/jsf-api-%{version}.pom
Source2:       http://repo1.maven.org/maven2/com/sun/faces/jsf-impl/%{version}/jsf-impl-%{version}.pom

# Don't use the installer builder as it requires additional dependences and it
# is only used to build installers, which we don't use:
Patch0:        %{name}-2.2.13-remove-installer-builder.patch

# Fix the classpath for maven ant tasks to include all the needed jar files:
Patch1:        %{name}-2.2.13-fix-maven-ant-tasks-classpath.patch

# Don't try to download dependencies:
Patch2:        %{name}-2.2.13-dont-download-dependencies.patch

# Use "Oracle Corporation" as the name of the Java vendor, otherwise the
# profile that adds tools.jar to the classpath is not activated:
Patch3:        %{name}-2.2.13-jdk7.patch

# The classpaths were calculated using the maven ant tasks, but we removed
# that, so we need to build fix them:
Patch4:        %{name}-2.2.13-fix-classpaths.patch

# Don't compres JavaScript using YUI compressor, as we don't have it available
# in the distribution:
Patch5:        %{name}-2.2.13-dont-use-yuicompressor.patch

# Don't build the Tomcat 6, Jetty and Glassfish injection providers:
Patch6:        %{name}-2.2.13-dont-build-injection-providers.patch

# Don't bundle the API inside the implementation:
Patch7:        %{name}-2.2.13-dont-bundle-api.patch

# Don't use the namespace-alias XLST element in the stylesheet
# that merges the jsf-ri-runtime.xml file:
Patch8:        %{name}-dont-use-namespace-alias.patch

# Adapt the source to the Servlet 3.1 specification:
Patch9:        %{name}-servlet-3.1.patch

# Disable references to com.sun.faces.spi.InjectionProvider class in API code, otherwise jsf-api can't compile.
# this package is not shipping jsf-impl jar and a class in jsf-api jar that is depending on that specific implementation.
Patch10:       %{name}-2.2.13-disable-references-to-com.sun.faces.spi.InjectionProvider.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: ant
BuildRequires: ant-contrib
BuildRequires: apache-commons-digester
BuildRequires: aqute-bnd
BuildRequires: atinject
BuildRequires: cdi-api
BuildRequires: bean-validation-api
BuildRequires: glassfish-annotation-api
BuildRequires: glassfish-ejb-api
BuildRequires: glassfish-el-api
BuildRequires: glassfish-jsp-api
BuildRequires: glassfish-servlet-api
BuildRequires: groovy
BuildRequires: hibernate-jpa-2.1-api
BuildRequires: java-devel
BuildRequires: jboss-jstl-1.2-api
BuildRequires: maven-install-plugin
BuildRequires: maven-local

Requires:      apache-commons-digester
Requires:      atinject
Requires:      bean-validation-api
Requires:      cdi-api
Requires:      glassfish-annotation-api
Requires:      glassfish-ejb-api
Requires:      glassfish-el-api
Requires:      glassfish-jsp-api
Requires:      glassfish-servlet-api
Requires:      hibernate-jpa-2.1-api
Requires:      jboss-jstl-1.2-api


%description
JvaServer(TM) Faces technology simplifies building user interfaces for
JavaServer applications. Developers of various skill levels can quickly build
web applications by: assembling reusable UI components in a page; connecting
these components to an application data source; and wiring client-generated
events to server-side event handlers. 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep

# Unpack and patch the original sources:
%setup -q

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1


sed -i "s|-f @{pomFile}|-o -f @{pomFile}|" common/ant/maven.xml common/ant/maven-pre-maven-rename.xml


# Remove binaries
find . -name '*.class' -print -delete
find . -name '*.jar' -print -delete

# Convert the license file to UTF-8:
mv LICENSE LICENSE.tmp
iconv -f ISO-8859-1 -t UTF-8 LICENSE.tmp > LICENSE

native2ascii -encoding UTF8 jsf-api/src/main/java/javax/faces/component/UIComponent.java \
 jsf-api/src/main/java/javax/faces/component/UIComponent.java

# Fix the ant group id, it should be org.apache.ant instead of just ant:
%pom_change_dep :ant org.apache.ant: jsf-tools

cp -p %{SOURCE1} jsf-api.pom
cp -p %{SOURCE2} jsf-impl.pom
for a in jsf-api.pom jsf-impl.pom; do
 %pom_change_dep javax.servlet.jsp.jstl:jstl-api org.jboss.spec.javax.servlet.jstl:jboss-jstl-api_1.2_spec:1.0.3.Final ${a}
done

%build

# Create links for the apache commons jars:
mkdir -p lib
names='
apache-commons-collections
apache-commons-digester
apache-commons-beanutils
apache-commons-logging
'
for name in ${names}
do
  ln -s `build-classpath ${name}` lib/$(basename ${name}).jar
done

# Create links for the jars used for compilation:
mkdir -p lib/compile
names='
atinject
bean-validation-api
cdi-api
glassfish-annotation-api
glassfish-ejb-api
glassfish-el-api
glassfish-jsp-api
glassfish-servlet-api
groovy/groovy-all
hibernate-jpa-2.1-api
jboss-jstl-1.2-api
'
for name in ${names}
do
  ln -s `build-classpath ${name}` lib/compile/$(basename ${name}).jar
done

mkdir -p common/lib
ln -s `build-classpath aqute-bnd/biz.aQute.bnd` common/lib/bnd.jar
ln -s `build-classpath aqute-bnd/biz.aQute.bndlib` common/lib/bndlib.jar


# Build the binaries:
ant \
  -Dbuild.sysclasspath=last \
  -Djsf.build.home=$PWD \
  -Dcontainer.name=tomcat7 \
  -Dmvn.cmd=xmvn

# Generate the javadocs:
ant \
  -Dbuild.sysclasspath=last \
  -Djsf.build.home=$PWD \
  -Dcontainer.name=tomcat7 \
  -f jsf-api/build.xml \
  javadocs

ant \
  -Dbuild.sysclasspath=last \
  -Djsf.build.home=$PWD \
  -Dcontainer.name=tomcat7 \
  -f jsf-ri/build.xml \
  javadocs

# Associate POM files with artifacts:
%mvn_artifact jsf-api.pom jsf-api/build/lib/jsf-api-intermediate.jar
%mvn_artifact jsf-impl.pom jsf-ri/build/lib/javax.faces.jar

%mvn_alias com.sun.faces:jsf-api javax.faces:javax.faces-api
%mvn_alias com.sun.faces:jsf-impl org.glassfish:javax.faces

%install

# Install artifacts:
%mvn_install

# Install the Javadoc:
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}/jsf-api
cp -rp jsf-api/build/javadocs/* %{buildroot}%{_javadocdir}/%{name}/jsf-api/.
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}/jsf-impl
cp -rp jsf-ri/build/javadocs/* %{buildroot}%{_javadocdir}/%{name}/jsf-impl/.

%files -f .mfiles
%license LICENSE
%doc docs/index.html
%doc docs/releasenotes.html
%doc docs/community.html
%doc docs/jsf-2_1-changelog.html

%files javadoc
%{_javadocdir}/%{name}
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14788 |21mr|mojo-executor-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Testing note: this package relies on an old version of mockito.  Compilation
# of the tests fails with the version of mockito currently in Fedora.  Porting
# to the new version is needed.

Name:           mojo-executor
Version:        2.3.1
Release:        1
Summary:        Execute other plugins within a maven plugin
Group:          Development/Java

License:        ASL 2.0
URL:            http://timmoore.github.io/mojo-executor/
Source0:        https://github.com/TimMoore/%{name}/archive/%{name}-parent-%{version}.tar.gz
# Convert from commons-lang to commons-lang3
# https://pagure.io/java-maint-sig/issue/4
Patch0:         %{name}-commons-lang3.patch
ExcludeArch:    %{ix86}
BuildArch:      noarch
BuildRequires:  maven-local
BuildRequires:  mvn(ant-contrib:ant-contrib)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.jacoco:jacoco-maven-plugin)
BuildRequires:  mvn(org.mockito:mockito-core)

%description
The Mojo Executor provides a way to to execute other Mojos (plugins)
within a Maven plugin, allowing you to easily create Maven plugins that
are composed of other plugins.

%package parent
Summary:        Parent POM for mojo-executor

%description parent
%{summary}.

%package maven-plugin
Summary:        Maven plugin for mojo-executor

%description maven-plugin
%{summary}.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains %{summary}.

%prep
%autosetup -n %{name}-%{name}-parent-%{version} -p1

# sonatype-oss-parent is deprecated in Fedora
%pom_remove_parent

# maven-release is not needed
%pom_remove_plugin :maven-release-plugin

# Modernize the junit dependency
%pom_change_dep :junit-dep :junit mojo-executor-maven-plugin/src/it/mojo-executor-test-project/pom.xml
%pom_change_dep :junit-dep :junit mojo-executor-maven-plugin/src/it/mojo-executor-test-project-no-plugin-version/pom.xml
%pom_change_dep :junit-dep :junit mojo-executor-maven-plugin/src/it/mojo-executor-test-project-null-maven-project/pom.xml
%pom_change_dep :junit-dep :junit mojo-executor-maven-plugin/src/it/mojo-executor-test-project-quiet/pom.xml

# ant-contrib has no POM
%pom_remove_dep ant-contrib: mojo-executor-maven-plugin/src/it/mojo-executor-test-project-with-dependencies/pom.xml
sed -i 's,classpath.*,classpath="%{_javadir}/ant-contrib/ant-contrib.jar" />,' \
  mojo-executor-maven-plugin/src/it/mojo-executor-test-project-with-dependencies/pom.xml

%build
%mvn_build -s -f

%install
%mvn_install

%files -f .mfiles-%{name}
%license LICENSE.txt
%doc README.md

%files parent -f .mfiles-%{name}-parent

%files maven-plugin -f .mfiles-%{name}-maven-plugin

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14789 |21mr|mojo-keytool-1.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          mojo-keytool
Version:       1.5
Release:       8
Summary:       Tools to invoke the keytool program bundled with Java SDK
License:       ASL 2.0
URL:           http://www.mojohaus.org/keytool/
Source0:       https://github.com/mojohaus/keytool/archive/keytool-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
#BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-utils)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires: mvn(org.codehaus.plexus:plexus-container-default)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Project to invoke the the keytool program bundled with Java SDK.
Allows to manipulate keystores. the project includes a Java API to
invoke the program and also a maven plugin.

%package api
Summary:       Keytool: API

%description api
A component to assist in using keytool application.

%package api-1.7
Summary:       Keytool: API (JDK 1.7)

%description api-1.7
A component to assist in using keytool application.

%package maven-plugin
Summary:       A plugin that wraps the keytool program and allows to manipulate keystores
Provides:      keytool-maven-plugin = %{version}-%{release}
Obsoletes:     keytool-maven-plugin < 1.5

%description maven-plugin
A plugin that wraps the keytool program bundled with Java SDK.
It provides the capability to manipulate keys and keystores
with the goals "keytool:genkey" and "keytool:clean".

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n keytool-keytool-%{version}

%pom_remove_plugin -r :animal-sniffer-maven-plugin

# Not supported by keytool 1.8.0_77
%pom_disable_module keytool-api-1.5
%pom_disable_module keytool-api-1.6
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'api-1.5']" keytool-maven-plugin
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'api-1.6']" keytool-maven-plugin

# Use maven 3 apis only
%pom_xpath_set "pom:properties/pom:mavenVersion" 3.3.3
%pom_change_dep -r :maven-toolchain :maven-core:'${mavenVersion}'

# Use api-1.7 also for 1.8
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'api-1.8']" keytool-maven-plugin
# @ random fails on koji builders
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'run-its']" keytool-maven-plugin

# NoClassDefFoundError: org/apache/maven/toolchain/Toolchain
%pom_add_dep org.apache.maven:maven-core:'${mavenVersion}':test keytool-api-1.7

%pom_remove_plugin :plexus-maven-plugin keytool-api-test
%pom_add_plugin org.codehaus.plexus:plexus-component-metadata:1.6 keytool-api-test '
<executions>
  <execution>
    <goals>
      <goal>generate-metadata</goal>
    </goals>
  </execution>
</executions>'

%mvn_package :keytool-api-test __noinstall

%build
# Force profile to run test suite in api-1.7 module
%mvn_build -s -- -Papi-1.7

%install
%mvn_install

%files -f .mfiles-keytool
%license LICENSE.txt

%files api -f .mfiles-keytool-api
%license keytool-api/LICENSE.txt

%files api-1.7 -f .mfiles-keytool-api-1.7
%license keytool-api-1.7/LICENSE.txt

%files maven-plugin -f .mfiles-keytool-maven-plugin
%license keytool-maven-plugin/LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14790 |21mr|mojo-parent-40-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           mojo-parent
Version:        40
Release:        9
Summary:        Codehaus MOJO parent project pom file

License:        ASL 2.0
URL:            http://www.mojohaus.org/mojo-parent/
Source0:        https://github.com/mojohaus/mojo-parent/archive/%{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local

%description
Codehaus MOJO parent project pom file

%prep
%setup -q -n %{name}-%{name}-%{version}
# Cobertura plugin is executed only during clean Maven phase.
%pom_remove_plugin :cobertura-maven-plugin
# Not needed in Fedora.
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-checkstyle-plugin

cp %SOURCE1 .

%build
%mvn_alias : org.codehaus.mojo:mojo
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14791 |21mr|mokutil-0.3.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           mokutil
Version:        0.3.0
Release:        10
Summary:        Tool to manage UEFI Secure Boot MoK Keys
Group:          System/Kernel and hardware
License:        GPLv3+
URL:            https://github.com/lcp/mokutil
Source0:        https://github.com/lcp/mokutil/archive/%{version}.tar.gz

# Upstream patches
Patch0001:      0001-Fix-the-potential-buffer-overflow.patch
Patch0002:      0002-Fix-the-32bit-signedness-comparison.patch
Patch0003:      0003-Build-with-fshort-wchar-so-toggle-passwords-work-rig.patch
Patch0004:      0004-Don-t-allow-sha1-on-the-mokutil-command-line.patch
Patch0005:      0005-Make-all-efi_guid_t-const.patch
Patch0006:      0006-mokutil-be-explicit-about-file-modes-in-all-cases.patch
Patch0007:      0007-Add-bash-completion-file.patch
Patch0008:      0008-Fix-typo-in-error-message-when-the-system-lacks-Secu.patch
Patch0009:      0009-list_keys_in_var-check-errno-correctly-not-ret-twice.patch
Patch0010:      0010-Add-a-way-for-mokutil-to-configure-a-timeout-for-Mok.patch
Patch0011:      0011-Add-the-type-casting-to-silence-the-warning.patch
Patch0012:      0012-generate_hash-generate_pw_hash-don-t-use-strlen-for-.patch

# Other patches
Patch1001:      fix-signed-unsigned-mismatch.patch

BuildRequires: automake
BuildRequires: pkgconfig(efivar)
BuildRequires: openssl-devel

%description
mokutil provides a tool to manage keys for Secure Boot through the MoK
("Machine's Own Keys") mechanism.

%files
%{_bindir}/mokutil
%{_mandir}/man1/mokutil.1*
%{_datadir}/bash-completion/completions/mokutil

%prep
%setup -q
%apply_patches

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14792 |21mr|molequeue-0.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname molequeue %{major}
%define devname %mklibname molequeue -d


Name:		molequeue
Version:	0.9.0
Release:	5
Summary:	Desktop integration of high performance computing resources
License:	BSD
Group:		Sciences/Chemistry
Url:		http://openchemistry.org/molequeue
Source0:	https://github.com/OpenChemistry/molequeue/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		molequeue-0.9.0-fix-build-against-qt-5.11.0.patch
Patch1:		add_libs_version.patch
BuildRequires:	cmake
BuildRequires:	zeromq-devel
BuildRequires:	pkgconfig(libzmq)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	%{libname} = %{EVRD}

%description
MoleQueue is an open-source, cross-platform, system-tray resident desktop
application for abstracting, managing, and coordinating the execution of
tasks both locally and on remote computational resources. Users can set
up local and remote queues that describe where the task will be executed.
Each queue can have programs, with templates to facilitate the execution
of the program. Input files can be staged, and output files collected
using a standard interface. Some highlights:

  * Open source distributed under the liberal 3-clause BSD license
  * Cross platform with nightly builds on Linux, Mac OS X and Windows
  * Intuitive interface designed to be useful to whole community
  * Support for local executation and remote schedulers (SGE, PBS, SLURM)
  * System tray resident application managing queue of queues and job lifetime
  * Simple, lightweight JSON-RPC 2.0 based communication over local sockets
  * Qt 5 client library for simple integration in Qt applications

%files
%doc LICENSE
%{_docdir}/MoleQueue/
%{_bindir}/%{name}
%{_libdir}/%{name}/

#----------------------------------------------------

%package	-n %{libname}
Summary:	Desktop integration of high performance computing resources
Group:		Sciences/Chemistry

%description	-n %{libname}
This package contains shared library.

%files	-n %{libname}
%doc LICENSE
%{_libdir}/*.so.%{major}*

#----------------------------------------------------

%package	-n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description	-n %{devname}
The %{name}-devel package contains header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/cmake/%{name}/
%{_libdir}/*.so

#----------------------------------------------------

%package -n	python3-%{name}
Summary:	Python 3 bindings for %{name}
Group:		Development/Python
BuildArch:	noarch
Requires:	%{name} = %{EVRD}
Requires:	python3egg(pyzmq)

Obsoletes:	python-molequeue < 0.8.0-3
Provides:	python-molequeue = %{EVRD}

%description -n	python3-%{name}
The python2-%{name} package contains Python2 bindings for %{name}.

%files -n python3-%{name}
%{python3_sitelib}/%{name}/

#----------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%cmake_qt5 \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-DPYTHON_EXECUTABLE:FILEPATH=%{__python3} \
	-DUSE_ZERO_MQ=ON

%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14793 |21mr|mongo-java-driver2-2.14.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          mongo-java-driver2
Version:       2.14.3
Release:       7
Summary:       MongoDB Java Driver
# BSD-3-clause: src/main/org/bson/io/UTF8Encoding.java
# CC-BY-SA-3.0: src/main/org/bson/util/annotations/*
License:       ASL 2.0 and BSD and CC-BY-SA
URL:           http://docs.mongodb.org/ecosystem/drivers/java/
Source0:       https://github.com/mongodb/mongo-java-driver/archive/r%{version}/mongo-java-driver-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(junit:junit)
# Those files are modifications of code included in:
# src/main/com/mongodb/util/Base64Codec.java
Provides:      bundled(apache-commons-codec)
# src/main/org/bson/util/annotations/*
Provides:      bundled(jcip-annotations)
# src/main/org/bson/io/UTF8Encoding.java
Provides:      bundled(postgresql-jdbc) = 9.0-801

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java library to connect to the MongoDB document database.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n mongo-java-driver-r%{version}
# Cleanup
find -name '*.class' -delete
find -name '*.jar' -print -delete

# Unwanted task
%pom_remove_plugin :maven-source-plugin

# Fix osgi manifest
%pom_xpath_remove pom:Export-Package
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-bundle-plugin']/pom:configuration/pom:instructions" '
                 <Export-Package>com.mongodb.*,org.bson.*</Export-Package>'

%mvn_compat_version org.mongodb:mongo-java-driver %{version} 2
%mvn_file org.mongodb:mongo-java-driver mongo-java-driver %{name}

%build

# Test suite disabled; require web connection
# java.net.ConnectException: Connection refused
# com.mongodb.MongoTimeoutException: Timed out after 10000 ms while waiting to connect.
# Client view of cluster state is {type=Unknown, servers=[{address=127.0.0.1:27017,
# type=Unknown, state=Connecting, exception={com.mongodb.MongoException$Network:
# Exception opening the socket}, caused by {java.net.ConnectException: Connection refused}}]
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc History.md README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14794 |21mr|mongo-java-driver-3.6.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?scl:%scl_package mongo-java-driver}
%{!?scl:%global pkg_name %{name}}

%if 0%{?rhel}
# Use java common's requires/provides generator
%{?java_common_find_provides_and_requires}
%endif

Name:		%{?scl_prefix}mongo-java-driver
Version:	3.6.4
Release:	4
Summary:	A Java driver for MongoDB

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
License:	ASL 2.0
URL:		http://www.mongodb.org/display/DOCS/Java+Language+Center
Source0:	https://github.com/mongodb/%{pkg_name}/archive/r%{version}.tar.gz
Patch0:         %{pkg_name}-gradle-local-fixes.patch

%{!?scl:
BuildRequires:  java-devel
}
BuildRequires:  gradle-local
BuildRequires:  javapackages-tools
BuildRequires:  javapackages-local
BuildRequires:  mvn(io.netty:netty-buffer)
BuildRequires:  mvn(io.netty:netty-transport)
BuildRequires:  mvn(io.netty:netty-handler)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.xerial.snappy:snappy-java)


%{!?scl:
Requires:	javapackages-tools
}
%{?scl:
Requires:       %{scl_runtime}
}

%description
This is an ueber jar for the MongoDB Java driver.

%package bson
Summary:	A Java-based BSON implementation
%{!?scl:
Requires:	javapackages-tools
}
%{?scl:
Requires:       %{scl_runtime}
}

%description bson
This is the Java implementation of BSON that the Java driver for
MongoDB ships with.  It can be used separately by Java applications
that require BSON.
# Upstream has hinted that eventually, their bson implementation will
# be better separated out: http://bsonspec.org/#/implementation
# To make things easier for when that does happen, for now the jar
# and javadocs for this are in separate subpackages.

%package driver
Summary:	The MongoDB Java Driver
%{!?scl:
Requires:	javapackages-tools
}
%{?scl:
Requires:       %{scl_runtime}
}

%description driver
The MongoDB Java Driver

%package driver-core
Summary:	The MongoDB Java Operations Layer
%{!?scl:
Requires:	javapackages-tools
}
%{?scl:
Requires:       %{scl_runtime}
}

%description driver-core
The Java operations layer for the MongoDB Java Driver. Third
parties can wrap this layer to provide custom higher-level APIs

%package driver-async
Summary:	The MongoDB Java Async Driver
%{!?scl:
Requires:	javapackages-tools
}
%{?scl:
Requires:       %{scl_runtime}
}

%description driver-async
The MongoDB Asynchronous Driver.

%prep
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
%setup -qn %{pkg_name}-r%{version}

%patch0 -p1

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

set -ex
%mvn_package org.mongodb:bson:* %{pkg_name}-bson
%mvn_package org.mongodb:%{pkg_name}:* %{pkg_name}
%mvn_package org.mongodb:mongodb-driver-core:* %{pkg_name}-driver-core
%mvn_package org.mongodb:mongodb-driver-async:* %{pkg_name}-driver-async
%mvn_package org.mongodb:mongodb-driver:* %{pkg_name}-driver
%mvn_package org.mongodb:mongodb-javadoc-utils:* __noinstall
%mvn_file org.mongodb:bson:* %{pkg_name}/bson
%mvn_file org.mongodb:%{pkg_name}:* %{pkg_name}/mongo
%mvn_file org.mongodb:mongodb-driver-core:* %{pkg_name}/driver-core
%mvn_file org.mongodb:mongodb-driver-async:* %{pkg_name}/driver-async
%mvn_file org.mongodb:mongodb-driver:* %{pkg_name}/driver
%{?scl:EOF}

%build
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
%gradle_build -f -- -s -i
%{?scl:EOF}

%install
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
%mvn_install
%{?scl:EOF}

%files -f .mfiles-%{pkg_name}
%doc README.md LICENSE.txt

%files bson -f .mfiles-%{pkg_name}-bson
%doc README.md LICENSE.txt

%files driver -f .mfiles-%{pkg_name}-driver
%doc README.md LICENSE.txt

%files driver-core -f .mfiles-%{pkg_name}-driver-core
%doc README.md LICENSE.txt

%files driver-async -f .mfiles-%{pkg_name}-driver-async
%doc README.md LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14795 |21mr|monitor-edid-3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
# Contrib
%global __requires_exclude perl\\(Parse::EDID\\)

Summary:	EDID retrieval and parsing tools
Name:		monitor-edid
Version:	3.4
Release:	1
License:	GPLv3+
Group:		System/Configuration/Other
Url:		http://wiki.mandriva.com/en/Tools/monitor-edid
Source0:	https://gitweb.mageia.org/software/monitor-edid/snapshot/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# From Fedora
# Fix Makefile to permit RPM CFLAGS
Patch000:	monitor-edid-Makefile.patch
%ifarch %{ix86} x86_64
BuildRequires:	libx86-devel
%endif
BuildRequires:  perl-generators
Requires:	perl(File::Find)
Recommends:	perl(Parse::EDID)
ExcludeArch:	%{arm} %{mips}

%description
This package provides tools for EDID retrieval, EDID parsing and
other methods of monitor probing.

%files
%doc README NEWS ChangeLog
%license COPYING
%{_bindir}/*
%{_sbindir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n refs/tags/v%{version}

%build
%make_build CFLAGS="%{optflags} -g" CC=%{__cc} LDFLAGS="%{ldflags} -lx86"

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14796 |21mr|monitorix-3.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:              monitorix
Version:	3.13.1
Release:	1
Summary:           A free, open source, lightweight system monitoring tool
License:           GPLv2+
Group:             Monitoring
URL:               http://www.monitorix.org
Source0:           http://www.monitorix.org/%{name}-%{version}.tar.gz
BuildArch:         noarch
BuildRequires:     perl
BuildRequires:     systemd
Requires:          logrotate
Requires:          perl(CGI)
Requires:          perl(Config::General)
Requires:          perl(DBD::mysql)
Requires:          perl(DBI)
Requires:          perl(HTTP::Server::Simple::CGI)
Requires:          perl(XML::Simple)
Requires:          perl(IO::Socket::SSL)
Requires(pre):     rpm-helper
Requires(post):    systemd
Requires(preun):   systemd
Requires(postun):  systemd rpm-helper

%description
Monitorix is a free, open source, lightweight system monitoring tool designed
to monitor as many services and system resources as possible. It has been
created to be used under production Linux/UNIX servers, but due to its
simplicity and small size may also be used on embedded devices as well.

%prep
%setup -q
sed -i 's|#!/usr/bin/env perl|#!/usr/bin/perl|' %{name}
sed -i 's|#!/usr/bin/env perl|#!/usr/bin/perl|' %{name}.cgi
sed -i 's|nobody|%{name}|' %{name}.conf

%build
# Nothing to build.

%install
install -pDm644 docs/%{name}.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/%{name}
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}/conf.d
install -pDm644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -pDm755 %{name} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}/usr/lib/%{name}
install -pDm644 lib/*.pm %{buildroot}/usr/lib/%{name}
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/www
install -pDm644 logo_top.png %{buildroot}%{_localstatedir}/lib/%{name}/www
install -pDm644 logo_bot.png %{buildroot}%{_localstatedir}/lib/%{name}/www
install -pDm644 %{name}ico.png %{buildroot}%{_localstatedir}/lib/%{name}/www
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/www/imgs
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/www/cgi
install -pDm755 %{name}.cgi %{buildroot}%{_localstatedir}/lib/%{name}/www/cgi
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/reports
install -pDm644 reports/*.html %{buildroot}%{_localstatedir}/lib/%{name}/reports
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/usage
mkdir -p %{buildroot}%{_mandir}/man5
mkdir -p %{buildroot}%{_mandir}/man8
install -pDm644 man/man5/%{name}.conf.5 %{buildroot}%{_mandir}/man5
install -pDm644 man/man8/%{name}.8 %{buildroot}%{_mandir}/man8
install -pDm644 docs/%{name}.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -pDm644 docs/%{name}.service %{buildroot}%{_unitdir}/%{name}.service

%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /bin/false
%_pre_groupadd %{name} %{name}

%post
%_post_service %{name}

%preun
%systemd_preun %{buildroot}%{_unitdir}/%{name}.service

%postun
%systemd_postun_with_restart %{buildroot}%{_unitdir}/%{name}.service
%_postun_userdel %{name}
%_postun_groupdel %{name} %{name}

%files
%doc Changes COPYING README README.nginx
%doc docs/%{name}-alert.sh docs/%{name}-apache.conf docs/%{name}-lighttpd.conf
%doc docs/htpasswd.pl
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%dir %{_sysconfdir}/%{name}/conf.d
%dir %{_localstatedir}/lib/%{name}/
%dir %{_localstatedir}/lib/%{name}/www
%dir %{_localstatedir}/lib/%{name}/www/cgi
%dir %{_localstatedir}/lib/%{name}/reports
%{_localstatedir}/lib/%{name}/reports/*.html
%{_mandir}/man5/%{name}.conf.5*
%{_mandir}/man8/%{name}.8*
%{_unitdir}/%{name}.service
%{_bindir}/%{name}
%{_prefix}/lib/%{name}/
%{_localstatedir}/lib/%{name}/www/logo_top.png
%{_localstatedir}/lib/%{name}/www/logo_bot.png
%{_localstatedir}/lib/%{name}/www/%{name}ico.png
%{_localstatedir}/lib/%{name}/www/cgi/%{name}.cgi
%attr(755,%{name},%{name}) %{_localstatedir}/lib/%{name}/www/imgs
%attr(755,root,root) %{_localstatedir}/lib/%{name}/usage

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14797 |21mr|mono-6.12.0-182.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Turns "prefix=${pcfiledir}/../.." into "prefix=${pcfiledir}/.."
%define dont_fix_pkgconfig 1
%define _disable_rebuild_configure 1

%define rev 182
%define api_ver 4.7.1

%define major 0
%define major1 1
%define libname %mklibname %{name} %{major}
%define libnamellvm %mklibname %{name}llvm %{major}
%define libname1 %mklibname %{name} 2.0 %{major1}
%define devname %mklibname %{name} -d

%bcond_without bootstrap
%define monodir %{_prefix}/lib/mono

%bcond_with llvm
%bcond_without sgen
%define sgenmajor 1

Summary:	Mono Runtime
Name:		mono
Version:	6.12.0
Release:	%{rev}.1
License:	GPLv2 and LGPLv2+ and MIT
Group:		Development/C#
Url:		http://www.go-mono.com/
Source0:	http://download.mono-project.com/sources/mono/%{name}-%{version}.%{rev}.tar.xz
# This key was generated by Götz Waschk <waschk@mandriva.org> on Oct 14, 2010
# by running the following command:
# sn -k mono.snk
# You should not regenerate this unless you have a really, really, really good reason.
Source1:	mono.snk
Source2:	mono.rpmlintrc
Patch0:		mono-6.6.0-ignore-reference-assemblies.patch
Patch2:		mono-5.10.0-find-provides.patch
Patch3:		mono-4.2-fix-winforms-trayicon.patch
Patch4:		mono-6.6.0-aarch64.patch
Patch5:		mono-6.6.0-roslyn-binaries.patch
Patch6:		mono-5.18.0-use-mcs.patch
Patch7:		mono-5.18.0-reference-assemblies-fix.patch
Patch8:		mono-5.18.0-sharpziplib-parent-path-traversal.patch
# Fix NRE bug in api-doc-tools: https://github.com/mono/api-doc-tools/pull/464
Patch10:	0001-DocumentationEnumerator.cs-Declare-iface-and-ifaceMe.patch
# Replace new Csharp features with old to allow mdoc to build
# https://github.com/mono/api-doc-tools/pull/463
Patch11:	0001-Replace-new-Csharp-features-with-old-ones.patch
# Reenable mdoc build. To be upstreamed after Patch 10 and 11
Patch12:	0001-Reenable-mdoc.exe-build.patch
# fix issue with conflicts between i686 and x86_64 package (#1853724)
Patch13:	mono-6.6.0-fix-multi-arch-issue.patch

BuildRequires:	autoconf
BuildRequires:	bison
BuildRequires:	ninja
BuildRequires:	cmake
#BuildRequires:	perl(XML::Parser)
BuildRequires:	gettext-devel
BuildRequires:	icu-devel
BuildRequires:	perl-Getopt-Long
BuildRequires:	libgdiplus-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	oprofile-devel
BuildRequires:	zlib-devel
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(x11)
%if %{with llvm}
#gw mono 2.8 does not build with our llvm 2.7
BuildRequires:	llvm > 2.7
Recommends:	%{libnamellvm} = %{EVRD}
%endif
Requires:	%{libname1} = %{version}
Requires:	%{libname} = %{version}
# gw requires by System.Drawing
Requires: 	libgdiplus
Provides:	mono-config
Provides:	libmono-runtime
# gw this is for some binary-only packages, the versions are retargetted
# by the mono runtime
Provides:	mono(Commons.Xml.Relaxng) = 4.0.30319
Provides:	mono(CustomMarshalers) = 4.0.30319
Provides:	mono(I18N) = 4.0.30319
Provides:	mono(I18N.West) = 4.0.30319
Provides:	mono(ICSharpCode.SharpZipLib) = 4.0.30319
Provides:	mono(Mono.Cairo) = 4.0.30319
Provides:	mono(Mono.CompilerServices.SymbolWriter) = 4.0.30319
Provides:	mono(Mono.Posix) = 4.0.30319
Provides:	mono(Mono.Security) = 4.0.30319
Provides:	mono(System) = 4.0.30319
Provides:	mono(System.Drawing) = 4.0.30319
Provides:	mono(System.Security) = 4.0.30319
Provides:	mono(System.Xml) = 4.0.30319
Provides:	mono(mscorlib) = 4.0.30319
%if %{without bootstrap}
#gw needed for mono-find-requires which needs monodis and libmono.so
BuildRequires:	mono
BuildRequires:	pkgconfig(mono)
%endif

%rename mono-2.0
%rename mono-4.0

%description
Mono is an implementation of the ECMA Common Language Infrastructure,
it contains both a just-in-time compiler for maximum performance, and
an interpeter.  It can also be used to run programs from the .NET
Framework.

This package contains the core of the Mono runtime including its
Virtual Machine, Just-in-time compiler, C# compiler, security tools
and libraries (corlib, XML, System.Security, System.Drawing, ZipLib,
I18N, Cairo and Mono.*).

%files -f mcs.lang
%dir %{_sysconfdir}/mono
%dir %{_sysconfdir}/mono/4.0/
%dir %{_sysconfdir}/mono/4.5/
%config(noreplace) %{_sysconfdir}/mono/2.0/machine.config
%config(noreplace) %{_sysconfdir}/mono/4.0/machine.config
%config(noreplace) %{_sysconfdir}/mono/4.5/machine.config
%config(noreplace) %{_sysconfdir}/mono/2.0/settings.map
%config(noreplace) %{_sysconfdir}/mono/4.0/settings.map
%config(noreplace) %{_sysconfdir}/mono/4.5/settings.map
%config  %{_sysconfdir}/mono/config
%{_bindir}/mono
#%%{_bindir}/mono-configuration-crypto
%ifnarch %{armx}
%{_bindir}/mono-boehm
%endif
%if %{with sgen}
%{_bindir}/mono-sgen
%endif
%{_bindir}/mono-test-install
%{_bindir}/csharp
%{_bindir}/cert-sync
%{_bindir}/certmgr
%{_bindir}/chktrust
%{_bindir}/gacutil
%{_bindir}/gacutil2
%{_bindir}/ikdasm
%{_bindir}/mcs
%{_bindir}/mozroots
%{_bindir}/peverify
%{_bindir}/setreg
%{_bindir}/sn
%{_mandir}/man1/aprofutil.1*
%{_mandir}/man1/mono.1*
%{_mandir}/man1/mono-profilers.1*
#%%{_mandir}/man1/mono-configuration-crypto.1*
%{_mandir}/man1/certmgr.1*
%{_mandir}/man1/cert-sync.1*
%{_mandir}/man1/chktrust.1*
%{_mandir}/man1/csharp.1*
%{_mandir}/man1/gacutil.1*
%{_mandir}/man1/mcs.1*
%{_mandir}/man1/mozroots.1*
%{_mandir}/man1/setreg.1*
%{_mandir}/man1/sn.1*
%{_mandir}/man5/mono-config.5*
%dir %{monodir}
%dir %{monodir}/4.5/
%dir %{monodir}/4.7.1-api/
%{monodir}/4.0-api
%{monodir}/4.5-api
#%%{monodir}/mono-configuration-crypto
%{monodir}/4.5/csharp.exe*
%{monodir}/4.5/chktrust.exe*
%{monodir}/4.5/gacutil.exe
%{monodir}/4.5/gacutil.exe.mdb
%{monodir}/4.5/cert-sync.exe*
%{monodir}/4.5/certmgr.exe*
%{monodir}/4.5/ikdasm.exe*
%{monodir}/4.5/mcs.exe*
%{monodir}/4.5/mozroots.exe*
%{monodir}/4.5/setreg.exe*
%{monodir}/4.5/sn.exe*
%{monodir}/gac/cscompmgd
%{monodir}/4.5/cscompmgd.dll
%{monodir}/gac/I18N.West
%{monodir}/4.5/I18N.West.dll
%{monodir}/gac/I18N
%{monodir}/4.5/I18N.dll
%{monodir}/gac/Microsoft.CSharp
%{monodir}/4.5/Microsoft.CSharp.dll
%{monodir}/4.7.1-api/Microsoft.CSharp.dll
%{monodir}/4.7.1-api/Microsoft.VisualBasic.dll
%{monodir}/4.5/Microsoft.VisualC.dll
%{monodir}/4.7.1-api/Microsoft.VisualC.dll
%{monodir}/gac/Mono.CompilerServices.SymbolWriter
%{monodir}/4.5/Mono.CompilerServices.SymbolWriter.dll
%{monodir}/gac/Mono.Btls.Interface
%{monodir}/4.5/Mono.Btls.Interface.dll
%{monodir}/gac/Mono.CSharp
%{monodir}/4.5/Mono.CSharp.dll
%{monodir}/gac/Mono.Management
%{monodir}/4.5/Mono.Management.dll
%{monodir}/gac/Mono.Security
%{monodir}/4.5/Mono.Security.dll
%{monodir}/gac/Mono.Simd
%{monodir}/4.5/Mono.Simd.dll
%{monodir}/4.5/Mono.Tasklets.dll
%{monodir}/gac/Mono.Tasklets
%{monodir}/gac/SMDiagnostics
%{monodir}/4.5/SMDiagnostics.dll
%{monodir}/gac/System.Core
%{monodir}/4.5/System.Core.dll
%{monodir}/4.7.1-api/System.Core.dll
%{monodir}/gac/System.Deployment
%{monodir}/4.5/System.Deployment.dll
%{monodir}/4.7.1-api/System.Deployment.dll
%{monodir}/gac/System.Net
%{monodir}/4.5/System.Net.dll
%{monodir}/4.7.1-api/System.Net.dll
%{monodir}/4.5/System.Net.Http.dll
%{monodir}/4.7.1-api/System.Net.Http.dll
%{monodir}/gac/System.Net.Http
%{monodir}/4.5/System.Net.Http.Formatting.dll
%{monodir}/gac/System.Net.Http.Formatting
%{monodir}/4.5/System.Net.Http.WebRequest.dll
%{monodir}/4.7.1-api/System.Net.Http.WebRequest.dll
%{monodir}/gac/System.Net.Http.WebRequest
%{monodir}/gac/System.Reflection.Context
%{monodir}/4.5/System.Reflection.Context.dll
%{monodir}/4.7.1-api/System.Reflection.Context.dll
%{monodir}/gac/System.Security
%{monodir}/4.5/System.Security.dll
%{monodir}/4.7.1-api/System.Security.dll
%{monodir}/gac/System.Workflow.Activities
%{monodir}/4.5/System.Workflow.Activities.dll
%{monodir}/4.7.1-api/System.Workflow.Activities.dll
%{monodir}/gac/System.Workflow.ComponentModel
%{monodir}/4.5/System.Workflow.ComponentModel.dll
%{monodir}/4.7.1-api/System.Workflow.ComponentModel.dll
%{monodir}/gac/System.Workflow.Runtime
%{monodir}/4.5/System.Workflow.Runtime.dll
%{monodir}/4.7.1-api/System.Workflow.Runtime.dll
%{monodir}/gac/System.Xml
%{monodir}/4.5/System.Xml.dll
%{monodir}/4.7.1-api/System.Xml.dll
%{monodir}/gac/System.Xml.Linq
%{monodir}/4.5/System.Xml.Linq.dll
%{monodir}/4.7.1-api/System.Xml.Linq.dll
%{monodir}/4.5/System.Xml.Serialization.dll
%{monodir}/4.7.1-api/System.Xml.Serialization.dll
%{monodir}/gac/System.Xml.Serialization
%{monodir}/gac/System
%{monodir}/4.5/System.dll
%{monodir}/4.7.1-api/System.dll
%{monodir}/gac/System.Configuration
%{monodir}/4.5/System.Configuration.dll
%{monodir}/4.7.1-api/System.Configuration.dll
%{monodir}/4.5/mscorlib.dll*
%{monodir}/4.7.1-api/mscorlib.dll*
%{monodir}/gac/System.Drawing
%{monodir}/4.5/System.Drawing.dll
%{monodir}/4.7.1-api/System.Drawing.dll
%{monodir}/gac/System.Dynamic
%{monodir}/4.5/System.Dynamic.dll
%{monodir}/4.7.1-api/System.Dynamic.dll
%{monodir}/4.7.1-api/System.Diagnostics.Tracing.dll
%{monodir}/gac/System.Numerics
%{monodir}/4.5/System.Numerics.dll
%{monodir}/4.7.1-api/System.Numerics.dll
%{monodir}/gac/System.Numerics.Vectors
%{monodir}/4.5/System.Numerics.Vectors.dll
%{monodir}/gac/Mono.Posix
%{monodir}/4.5/Mono.Posix.dll
%{monodir}/gac/Mono.Profiler.Log
%{monodir}/4.5/Mono.Profiler.Log.dll
%{monodir}/gac/Mono.Cairo
%{monodir}/4.5/Mono.Cairo.dll
%{monodir}/gac/ICSharpCode.SharpZipLib
%{monodir}/4.5/ICSharpCode.SharpZipLib.dll
%{monodir}/gac/Microsoft.VisualC
%{monodir}/gac/Commons.Xml.Relaxng
%{monodir}/4.5/Commons.Xml.Relaxng.dll
%{monodir}/gac/CustomMarshalers
%{monodir}/4.5/CustomMarshalers.dll
%{monodir}/4.7.1-api/CustomMarshalers.dll
%{monodir}/4.5/gmcs.exe

%post
cert-sync /etc/pki/tls/certs/ca-bundle.crt

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for the Mono runtime
Group:		Documentation
Requires:	mono
BuildArch:	noarch

%description doc
Mono is an implementation of the ECMA Common Language Infrastructure,
it contains both a just-in-time compiler for maximum performance, and
an interpeter.  It can also be used to run programs from the .NET
Framework.
This package provides documentation for the Mono runtime.

%files doc
%doc COPYING.LIB NEWS README.md
%doc docs/deploy docs/sources docs/svgs docs/HtmlAgilityPack
%doc docs/*.html docs/*txt docs/embedded-api docs/gc-* docs/internal-calls docs/ir-desc
%doc docs/jit-* docs/object-layout docs/precise-gc docs/remoting docs/threading docs/unmanaged-calls
%doc mcs/docs/clr-abi.txt mcs/docs/compiler.txt mcs/docs/control-flow-analysis.txt


#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for the Mono runtime
Group:		System/Libraries

%description -n %{libname}
Mono is an implementation of the ECMA Common Language Infrastructure,
it contains both a just-in-time compiler for maximum performance, and
an interpeter.  It can also be used to run programs from the .NET
Framework.
This package provides the versioned libraries for the Mono runtime.

%files -n %{libname}
%{_libdir}/libmono-profiler*.so.%{major}*
%if %{with sgen}
%{_libdir}/libmonosgen-2.0.so.%{sgenmajor}*
%endif
# gw always check if they've got a valid soname
%{_libdir}/libMonoPosixHelper.so
%{_libdir}/libMonoSupportW.so
%{_libdir}/libikvm-native.so
%{_libdir}/libmono-btls-shared.so

#----------------------------------------------------------------------------

%package -n %{libname1}
Summary:	Libraries for the Mono runtime
Group:		System/Libraries
Conflicts:	%{_lib}mono0 < 3.2.0-2

%description -n %{libname1}
Mono is an implementation of the ECMA Common Language Infrastructure,
it contains both a just-in-time compiler for maximum performance, and
an interpeter.  It can also be used to run programs from the .NET
Framework.
This package provides the versioned libraries for the Mono runtime.

%files -n %{libname1}
%ifnarch %{armx}
%{_libdir}/libmonoboehm-2.0.so.%{major1}*
%endif
%{_libdir}/libmono-2.0.so.%{major1}*
%{_libdir}/libmono-native.so*

#----------------------------------------------------------------------------

%if %{with llvm}
%package -n %{libnamellvm}
Summary:	Loadable LLVM libary for mono
License:	LGPLv2
Group:		System/Libraries

%description -n %{libnamellvm}
The Mono Project is an open development initiative that is working to
develop an open source, Unix version of the .NET development platform.
Its objective is to enable Unix developers to build and deploy
cross-platform .NET applications. The project will implement various
technologies that have been submitted to the ECMA for standardization.

Loadable LLVM libary for mono.

%files -n %{libnamellvm}
%{_libdir}/libmono-llvm.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package data-sqlite
Summary:	SQLite database connectivity for mono
Group:		Development/C#
Requires:	%mklibname sqlite3_ 0

%description data-sqlite
Mono is an implementation of the ECMA Common Language Infrastructure,
it contains both a just-in-time compiler for maximum performance, and
an interpeter.  It can also be used to run programs from the .NET
Framework.
This package provides the connectivity to the sqlite database for Mono.

%files data-sqlite
%{monodir}/4.5/Mono.Data.Sqlite.dll
%{monodir}/gac/Mono.Data.Sqlite

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Tools required to embed the Mono runtime
Group:		Development/C#
Requires:	%{libname} = %{version}
Requires:	%{libname1} = %{version}
%if %{with llvm}
Requires:	%{libnamellvm} = %{EVRD}
%endif
Requires:	mono = %{version}
Requires:	mono-data = %{version}
Requires:	mono-data-sqlite = %{version}
Requires:	mono-data-oracle = %{version}
Requires:	mono-extras = %{version}
Requires:	mono-web = %{version}
Requires:	mono-ibm-data-db2 = %{version}
Requires:	mono-locale-extras = %{version}
Requires:	mono-winforms = %{version}
Requires:	monodoc-core = %{version}
Requires:	mono-wcf = %{version}
Requires:	mono-winfxcore = %{version}
Provides:	mono-devel = %{EVRD}
Provides:	libmono-devel = %{EVRD}
Provides:	mono(PEAPI) = 4.0.30319
Provides:	mono(resgen) = 4.0.30319
Provides:	mono-bytefx-data-mysql
Provides:	mono-data-firebird
Provides:	mono-data-sybase
Provides:	mono-jscript
Conflicts:	mono < 2.10.8-2
Conflicts:	update-alternatives < 1.9.0
%rename mono-build
%rename mono-build-2.0
%rename mono-build-3.5
%rename mono-build-4.0

%description -n %{devname}
Header files and libraries used to embed the Mono runtime in an application.

%files -n %{devname}
%{_sysconfdir}/pki/mono/
%dir %{_includedir}/mono-2.0/
%{_includedir}/mono-2.0/*
%{_libdir}/libmono*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/cecil.pc
%{_libdir}/pkgconfig/dotnet.pc
%{_libdir}/pkgconfig/dotnet35.pc
%{_libdir}/pkgconfig/mono-cairo.pc
%{_libdir}/pkgconfig/mono-lineeditor.pc
%{_libdir}/pkgconfig/mono-options.pc
%{_libdir}/pkgconfig/mono.pc
%{_libdir}/pkgconfig/mono-2.pc
%if %{with sgen}
%{_libdir}/pkgconfig/monosgen-2.pc
%endif
%{_libdir}/pkgconfig/system.web.extensions.design_1.0.pc
%{_libdir}/pkgconfig/system.web.extensions_1.0.pc
%{_libdir}/pkgconfig/system.web.mvc.pc
%{_libdir}/pkgconfig/system.web.mvc2.pc
%{_libdir}/pkgconfig/system.web.mvc3.pc
%{_libdir}/pkgconfig/monodoc.pc
%{_libdir}/pkgconfig/wcf.pc
%{_libdir}/pkgconfig/aspnetwebstack.pc
%{_libdir}/pkgconfig/reactive.pc
%{_libdir}/pkgconfig/xbuild12.pc
%{_bindir}/al
%{_bindir}/al2
%{_bindir}/aprofutil
%{_bindir}/caspol
%{_bindir}/ccrewrite
%{_bindir}/cccheck
%{_bindir}/cert2spc
%{_bindir}/crlupdate
%{_bindir}/dtd2rng
%{_bindir}/dtd2xsd
%{_bindir}/genxs
%{_bindir}/httpcfg
%{_bindir}/ilasm
%{_bindir}/installvst
%{_bindir}/illinkanalyzer
%{_bindir}/lc
#
%{_bindir}/macpack
#
%{_bindir}/makecert
%{_bindir}/mdbrebase
%{_bindir}/mkbundle
%{_bindir}/mono-api-html
%{_bindir}/mono-api-info
%{_bindir}/mono-cil-strip
#%%{_bindir}/mono-find-provides
#%%{_bindir}/mono-find-requires
%{_datadir}/gdb/auto-load/%{_bindir}/mono-gdb.py
%{_bindir}/mono-heapviz
%{_bindir}/mono-hang-watchdog
%{_bindir}/mono-package-runtime
%{_bindir}/mono-shlib-cop
%{_bindir}/mono-symbolicate
%{_bindir}/mono-xmltool
%{_bindir}/monodis
%{_bindir}/monolinker
%{_bindir}/monop
%{_bindir}/monop2
%{_bindir}/mprof-report
%{_bindir}/pedump
%{_bindir}/permview
%{_bindir}/resgen
%{_bindir}/resgen2
%{_bindir}/secutil
%{_bindir}/sgen
%{_bindir}/signcode
%{_bindir}/pdb2mdb
%{_bindir}/xbuild
%{_mandir}/man1/ccrewrite.1*
%{_mandir}/man1/cccheck.1*
%{_mandir}/man1/crlupdate.1*
%{_mandir}/man1/cert2spc.1*
%{_mandir}/man1/dtd2xsd.1*
%{_mandir}/man1/genxs.1*
%{_mandir}/man1/httpcfg.1*
%{_mandir}/man1/ilasm*.1*
%{_mandir}/man1/illinkanalyzer.1*
%{_mandir}/man1/lc.1*
#
%{_mandir}/man1/macpack.1*
#
%{_mandir}/man1/makecert.1*
%{_mandir}/man1/mkbundle.1*
%{_mandir}/man1/mono-api-info.1*
%{_mandir}/man1/mono-cil-strip.1*
%{_mandir}/man1/mono-shlib-cop.1*
%{_mandir}/man1/mono-symbolicate.1*
%{_mandir}/man1/monodis.1*
%{_mandir}/man1/monolinker.1*
%{_mandir}/man1/monop.1*
%{_mandir}/man1/mprof-report.1*
%{_mandir}/man1/permview.1*
%{_mandir}/man1/resgen.1*
%{_mandir}/man1/secutil.1*
%{_mandir}/man1/sgen.1*
%{_mandir}/man1/signcode.1*
%{_mandir}/man1/al.1*
%{_mandir}/man1/mono-xmltool.1*
%{_mandir}/man1/pdb2mdb.1*
%{_mandir}/man1/xbuild.1*
%{_prefix}/lib/mono-source-libs/
%{monodir}/4.5/aprofutil.exe*
%{monodir}/4.5/cccheck.exe*
%{monodir}/4.5/crlupdate.exe*
%{monodir}/4.5/dtd2rng.exe*
%{monodir}/4.5/dtd2xsd.exe*
%{monodir}/4.5/httpcfg.exe*
%{monodir}/4.5/macpack.exe*
%{monodir}/4.5/mdbrebase.exe*
%{monodir}/4.5/makecert.exe*
%{monodir}/4.5/mono-api-diff.exe*
%{monodir}/4.5/mono-api-info.exe*
%{monodir}/4.5/mono-api-html.exe*
%{monodir}/4.5/mono-cil-strip.exe*
%{monodir}/4.5/mono-symbolicate.exe*
%{monodir}/4.5/pdb2mdb.exe*
%{monodir}/4.5/permview.exe*
%{monodir}/4.5/resgen.exe*
%{monodir}/4.5/secutil.exe*
%{monodir}/4.5/sgen.exe*
%{monodir}/4.5/signcode.exe*
%{monodir}/4.5/Microsoft.Build.dll
%{monodir}/4.7.1-api/Microsoft.Build.dll
%{monodir}/gac/Microsoft.Build
%{monodir}/gac/Microsoft.Build.Tasks.v12.0
%{monodir}/gac/Microsoft.Build.Tasks.Core
%{monodir}/gac/Microsoft.Build.Framework
%{monodir}/4.5/Microsoft.Build.Framework.dll
%{monodir}/4.7.1-api/Microsoft.Build.Framework.dll
%{monodir}/4.5/Microsoft.Build.Utilities.v4.0.dll
%{monodir}/4.7.1-api/Microsoft.Build.Utilities.v4.0.dll
%{monodir}/gac/Microsoft.Build.Utilities.Core
%{monodir}/gac/Microsoft.Build.Engine
%{monodir}/4.5/Microsoft.Build.Engine.dll
%{monodir}/4.7.1-api/Microsoft.Build.Engine.dll
%{monodir}/gac/Microsoft.Build.Tasks.v4.0
%{monodir}/4.5/Microsoft.Build.Tasks.v4.0.dll
%{monodir}/4.7.1-api/Microsoft.Build.Tasks.v4.0.dll
%{monodir}/gac/Microsoft.Build.Utilities.v4.0
%{monodir}/gac/Microsoft.Build.Utilities.v12.0
%{monodir}/4.5/Mono.XBuild.Tasks.dll
%{monodir}/gac/Mono.XBuild.Tasks/4.0.0.0__0738eb9f132ed756/Mono.XBuild.Tasks.dll
%{monodir}/gac/Mono.XBuild.Tasks/4.0.0.0__0738eb9f132ed756/Mono.XBuild.Tasks.dll.mdb
%{monodir}/gac/Mono.XBuild.Tasks/12.0.0.0__0738eb9f132ed756/Mono.XBuild.Tasks.dll
%{monodir}/gac/Mono.XBuild.Tasks/12.0.0.0__0738eb9f132ed756/Mono.XBuild.Tasks.dll.mdb
%{monodir}/gac/Mono.XBuild.Tasks/14.0.0.0__0738eb9f132ed756/Mono.XBuild.Tasks.dll
%{monodir}/gac/Mono.XBuild.Tasks/14.0.0.0__0738eb9f132ed756/Mono.XBuild.Tasks.dll.mdb
%{monodir}/4.5/System.IO.Compression.FileSystem.dll
%{monodir}/4.7.1-api/System.IO.Compression.FileSystem.dll
%{monodir}/4.5/System.IO.Compression.dll
%{monodir}/4.7.1-api/System.IO.Compression.dll
%{monodir}/gac/System.IO.Compression
%{monodir}/gac/System.IO.Compression.FileSystem
%{monodir}/4.5/System.Threading.Tasks.Dataflow.dll
%{monodir}/gac/System.Threading.Tasks.Dataflow
%{monodir}/gac/PEAPI
%{monodir}/4.5/PEAPI.dll
#
%{monodir}/gac/Mono.Cecil
%{monodir}/gac/Mono.CodeContracts
%{monodir}/4.5/Mono.CodeContracts.dll
%{monodir}/gac/Mono.Debugger*
%{monodir}/4.5/Mono.Debugger*
%{monodir}/4.5/Mono.Parallel.dll
%{monodir}/gac/Mono.Parallel
%{monodir}/4.5/MSBuild
%{monodir}/4.5/al.exe*
%{monodir}/4.5/caspol.exe*
%{monodir}/4.5/ccrewrite.exe*
%{monodir}/4.5/cert2spc.exe*
%{monodir}/4.5/genxs.exe*
%{monodir}/4.5/ictool.exe*
%{monodir}/4.5/ilasm.exe*
%{monodir}/4.5/illinkanalyzer.exe*
%{monodir}/4.5/installvst.exe*
%{monodir}/4.5/lc.exe*
%{monodir}/4.5/mkbundle.exe*
%{monodir}/4.5/monop.exe*
%{monodir}/4.5/mono-shlib-cop.exe*
%{monodir}/4.5/mono-xmltool.exe*
%{monodir}/4.5/xbuild.exe*
%{monodir}/4.5/xbuild.rsp
%{monodir}/4.5/Microsoft.CSharp.targets
%{monodir}/4.5/Microsoft.Common.targets
%{monodir}/4.5/Microsoft.Common.tasks
%{monodir}/4.5/Microsoft.VisualBasic.targets
%{monodir}/xbuild/
%{monodir}/xbuild-frameworks
%{monodir}/4.5/Microsoft.Build.xsd
%{_libdir}/mono/lldb/mono.py
%{_datadir}/mono-2.0/mono/cil/cil-opcodes.xml
%{_datadir}/mono-2.0/mono/eglib/eglib-config.h
%{_datadir}/mono-2.0/mono/profiler/mono-profiler-coverage.suppression

#----------------------------------------------------------------------------

%package winfxcore
Summary:	Mono implementation of core WinFX APIs
Group:		Development/C#
Requires:	mono = %{version}
%rename mono-winfxcore-2.0
%rename mono-winfxcore-4.0

%description winfxcore
The Mono Project is an open development initiative that is working to
develop an open source, Unix version of the .NET development platform.
Its objective is to enable Unix developers to build and deploy
cross-platform .NET applications. The project will implement various
technologies that have been submitted to the ECMA for standardization.

Mono implementation of core WinFX APIs.

%files -n mono-winfxcore
%{monodir}/gac/System.Data.Services.Client
%{monodir}/4.5/System.Data.Services.Client.dll
%{monodir}/4.7.1-api/System.Data.Services.Client.dll
%{monodir}/gac/WindowsBase
%{monodir}/4.5/WindowsBase.dll*
%{monodir}/4.7.1-api/WindowsBase.dll*

#----------------------------------------------------------------------------

%package web
Summary:	ASP.NET, Remoting, and Web Services for Mono
Group:		Development/C#
Requires:	mono = %{version}
Provides:	mono(System.Web) = 4.0.30319
Provides:	mono(Mono.Http) = 4.0.30319
Provides:	mono(System.Runtime.Remoting) = 4.0.30319
Provides:	mono(System.Runtime.Serialization.Formatters.Soap) = 4.0.30319
Provides:	mono(System.Web) = 4.0.30319
Provides:	mono(System.Web.Services) = 4.0.30319
Provides:	mono(System.WebPages) = 4.0.30319
%rename mono-web-2.0
%rename mono-web-4.0
%rename mono-web-compat

%description web
This package provides the ASP.NET libraries and runtime for
development of web application, web services and remoting support.

%files web
%dir %{_sysconfdir}/mono/mconfig
%config(noreplace) %{_sysconfdir}/mono/browscap.ini
%config(noreplace) %{_sysconfdir}/mono/2.0/Browsers/Compat.browser
%config(noreplace) %{_sysconfdir}/mono/4.0/Browsers/Compat.browser
%config(noreplace) %{_sysconfdir}/mono/4.5/Browsers/Compat.browser
%config(noreplace) %{_sysconfdir}/mono/2.0/DefaultWsdlHelpGenerator.aspx
%config(noreplace) %{_sysconfdir}/mono/4.0/DefaultWsdlHelpGenerator.aspx
%config(noreplace) %{_sysconfdir}/mono/4.5/DefaultWsdlHelpGenerator.aspx
%config(noreplace) %{_sysconfdir}/mono/2.0/web.config
%config(noreplace) %{_sysconfdir}/mono/4.0/web.config
%config(noreplace) %{_sysconfdir}/mono/4.5/web.config
%config(noreplace) %{_sysconfdir}/mono/mconfig/config.xml
%{_bindir}/disco
%{_bindir}/mconfig
%{_bindir}/soapsuds
%if %{with sgen}
%{_bindir}/mono-sgen-gdb.py
%{_bindir}/sgen-grep-binprot
%endif
%{_bindir}/wsdl
%{_bindir}/wsdl2
%{_bindir}/xsd
%{_mandir}/man1/disco.1*
%{_mandir}/man1/mconfig.1*
%{_mandir}/man1/soapsuds.1*
%{_mandir}/man1/wsdl.1*
%{_mandir}/man1/xsd.1*
%{monodir}/gac/Microsoft.Web.Infrastructure
%{monodir}/4.5/Microsoft.Web.Infrastructure.dll
%{monodir}/gac/Mono.Http
%{monodir}/4.5/Mono.Http.dll
%{monodir}/gac/System.ComponentModel.Composition
%{monodir}/4.5/System.ComponentModel.Composition.dll
%{monodir}/4.7.1-api/System.ComponentModel.Composition.dll
%{monodir}/gac/System.ComponentModel.DataAnnotations
%{monodir}/4.5/System.ComponentModel.DataAnnotations.dll
%{monodir}/4.7.1-api/System.ComponentModel.DataAnnotations.dll
%{monodir}/4.5/System.Json.Microsoft.dll
%{monodir}/4.5/System.Json.dll
%{monodir}/gac/System.Json
%{monodir}/gac/System.Json.Microsoft
%{monodir}/4.7.1-api/System.Runtime.Serialization.Formatters.Soap.dll
%{monodir}/gac/System.Web.Abstractions
%{monodir}/4.5/System.Web.Abstractions.dll
%{monodir}/4.7.1-api/System.Web.Abstractions.dll
%{monodir}/gac/System.Web.ApplicationServices
%{monodir}/4.5/System.Web.ApplicationServices.dll
%{monodir}/4.7.1-api/System.Web.ApplicationServices.dll
%{monodir}/gac/System.Web.DynamicData
%{monodir}/4.5/System.Web.DynamicData.dll
%{monodir}/4.7.1-api/System.Web.DynamicData.dll
%{monodir}/gac/System.Web.Extensions
%{monodir}/4.5/System.Web.Extensions.dll
%{monodir}/4.7.1-api/System.Web.Extensions.dll
%{monodir}/gac/System.Web.Extensions.Design
%{monodir}/4.5/System.Web.Extensions.Design.dll
%{monodir}/4.7.1-api/System.Web.Extensions.Design.dll
%{monodir}/4.5/System.Web.Http.dll
%{monodir}/gac/System.Web.Http/*
%{monodir}/4.5/System.Web.Http.SelfHost.dll
%{monodir}/gac/System.Web.Http.SelfHost/*
%{monodir}/4.5/System.Web.Http.WebHost.dll
%{monodir}/gac/System.Web.Http.WebHost/*
%{monodir}/4.5/System.Web.Mobile.dll
%{monodir}/4.7.1-api/System.Web.Mobile.dll
%{monodir}/gac/System.Web.Mobile/*
%{monodir}/4.5/System.Web.Razor.dll
%{monodir}/gac/System.Web.Razor/*
%{monodir}/4.5/System.Web.RegularExpressions.dll
%{monodir}/4.7.1-api/System.Web.RegularExpressions.dll
%{monodir}/gac/System.Web.RegularExpressions
%{monodir}/4.5/System.Web.WebPages.dll
%{monodir}/gac/System.Web.WebPages
%{monodir}/4.5/System.Web.WebPages.Deployment.dll
%{monodir}/gac/System.Web.WebPages.Deployment
%{monodir}/4.5/System.Web.WebPages.Razor.dll
%{monodir}/gac/System.Web.WebPages.Razor
%{monodir}/gac/System.Web.Mvc
%{monodir}/4.5/System.Web.Mvc.dll
%{monodir}/gac/System.Web.Routing
%{monodir}/4.5/System.Web.Routing.dll
%{monodir}/4.7.1-api/System.Web.Routing.dll
%{monodir}/gac/System.Runtime.Remoting
%{monodir}/4.5/System.Runtime.Remoting.dll
%{monodir}/4.7.1-api/System.Runtime.Remoting.dll
%{monodir}/gac/System.Web
%{monodir}/4.5/System.Web.dll
%{monodir}/4.7.1-api/System.Web.dll
%{monodir}/gac/System.Runtime.Serialization.Formatters.Soap
%{monodir}/4.5/System.Runtime.Serialization.Formatters.Soap.dll
%{monodir}/gac/System.Web.Services
%{monodir}/4.5/System.Web.Services.dll
%{monodir}/4.7.1-api/System.Web.Services.dll
%{monodir}/4.5/disco.exe*
%{monodir}/4.5/mconfig.exe*
%{monodir}/4.5/soapsuds.exe*
%{monodir}/4.5/wsdl.exe*
%{monodir}/4.5/xsd.exe
%{monodir}/4.5/xsd.exe.mdb

#----------------------------------------------------------------------------

%package data-oracle
Summary:	Oracle database connectivity for Mono
Group:		Development/C#
Requires:	mono = %{version}
Provides:	mono(System.Data.OracleClient) = 4.0.30319
Provides:	mono(System.Web.WebPages.Deployment) = 4.0.30319

%description data-oracle
This package contains the ADO.NET Data provider for the Oracle
database.

%files data-oracle
%{monodir}/gac/System.Data.OracleClient
%{monodir}/4.5/System.Data.OracleClient.dll
%{monodir}/4.7.1-api/System.Data.OracleClient.dll

#----------------------------------------------------------------------------

%package data
Summary:	Database connectivity for Mono
Group:		Development/C#
Requires:	mono = %{version}
Provides:	mono(System.Data) = 4.0.30319
Provides:	mono(Mono.Data.Tds) = 4.0.30319
Provides:	mono(Novell.Directory.Ldap) = 4.0.30319
Provides:	mono(System.Data) = 4.0.30319
Provides:	mono(System.DirectoryServices) = 4.0.30319
Provides:	mono(System.EnterpriseServices) = 4.0.30319
Provides:	mono(System.Data.Entity) = 4.0.30319
%rename mono-data-2.0
%rename mono-data-4.0
%rename mono-data-compat

%description data
This package provides a Mono assembly to facilitate data access and
manipulation with databases, LDAP compatible directory servers and/or
XML data exchange. Beyond the ADO.NET, Novell.LDAP and
System.DirectoryServices assemblies, it also includes a command line
sql application as well as the Microsoft SQL Server and ODBC data
providers.

%files data
%{_bindir}/sqlmetal
%{_bindir}/sqlsharp
%{_mandir}/man1/sqlsharp.1*
%{monodir}/4.5/sqlsharp.exe*
%{monodir}/gac/System.Data
%{monodir}/4.5/System.Data.dll
%{monodir}/4.7.1-api/System.Data.dll
%{monodir}/gac/System.Data.DataSetExtensions
%{monodir}/4.5/System.Data.DataSetExtensions.dll
%{monodir}/4.7.1-api/System.Data.DataSetExtensions.dll
%{monodir}/gac/System.Data.Entity
%{monodir}/4.5/System.Data.Entity.dll
%{monodir}/4.7.1-api/System.Data.Entity.dll
%{monodir}/gac/System.Data.Linq
%{monodir}/4.5/System.Data.Linq.dll
%{monodir}/4.7.1-api/System.Data.Linq.dll
%{monodir}/gac/System.Data.Services
%{monodir}/4.5/System.Data.Services.dll
%{monodir}/4.7.1-api/System.Data.Services.dll
%{monodir}/gac/Mono.Data.Tds
%{monodir}/4.5/Mono.Data.Tds.dll
%{monodir}/gac/System.EnterpriseServices
%{monodir}/4.5/System.EnterpriseServices.dll
%{monodir}/4.7.1-api/System.EnterpriseServices.dll
%{monodir}/gac/Novell.Directory.Ldap
%{monodir}/4.5/Novell.Directory.Ldap.dll
%{monodir}/gac/System.DirectoryServices
%{monodir}/4.5/System.DirectoryServices.dll
%{monodir}/4.7.1-api/System.DirectoryServices.dll
%{monodir}/4.5/System.DirectoryServices.Protocols.dll
%{monodir}/4.7.1-api/System.DirectoryServices.Protocols.dll
%{monodir}/gac/System.DirectoryServices.Protocols
%{monodir}/gac/System.Runtime.Serialization
%{monodir}/4.5/System.Runtime.Serialization.dll
%{monodir}/4.7.1-api/System.Runtime.Serialization.dll
%{monodir}/gac/System.Transactions
%{monodir}/4.5/System.Transactions.dll
%{monodir}/4.7.1-api/System.Transactions.dll
%{monodir}/gac/WebMatrix.Data
%{monodir}/4.5/WebMatrix.Data.dll
%{monodir}/4.5/sqlmetal.exe*

#----------------------------------------------------------------------------

%package extras
Summary:	Infrastructure for running and building daemons and services
Group:		Development/C#
Requires:	mono = %{version}
Provides:	mono(Mono.Messaging) = 4.0.30319
Provides:	mono(Mono.Messaging.RabbitMQ) = 4.0.30319
Provides:	mono(RabbitMQ.Client) = 4.0.30319
Provides:	mono(System.Configuration.Install) = 4.0.30319
Provides:	mono(System.Management) = 4.0.30319
Provides:	mono(System.Messaging) = 4.0.30319
Provides:	mono(System.ServiceProcess) = 4.0.30319
Provides:	mono(mono-service) = 4.0.30319
%rename mono-extras-2.0
%rename mono-extras-4.0

%description extras
This package provides the libary and application to run services and
daemons with Mono. It also includes stubs for the following .NET 1.1
and 2.0 assemblies: Microsoft.Vsa, System.Configuration.Install,
System.Management, System.Messaging.

%files extras
%{monodir}/gac/System.Management
%{monodir}/4.5/System.Management.dll
%{monodir}/4.7.1-api/System.Management.dll
%{monodir}/gac/RabbitMQ.Client
%{monodir}/4.5/RabbitMQ.Client.dll
%{monodir}/4.5/RabbitMQ.Client.Apigen.exe*
%{monodir}/gac/System.Messaging
%{monodir}/4.5/System.Messaging.dll
%{monodir}/4.7.1-api/System.Messaging.dll
%{monodir}/gac/Mono.Messaging
%{monodir}/4.5/Mono.Messaging.dll
%{monodir}/gac/Mono.Messaging.RabbitMQ
%{monodir}/4.5/Mono.Messaging.RabbitMQ.dll
%{monodir}/gac/System.Runtime.Caching
%{monodir}/4.5/System.Runtime.Caching.dll
%{monodir}/4.7.1-api/System.Runtime.Caching.dll
%{monodir}/gac/System.ServiceProcess
%{monodir}/4.5/System.ServiceProcess.dll
%{monodir}/4.7.1-api/System.ServiceProcess.dll
%{_bindir}/mono-service
%{_bindir}/mono-service2
%{monodir}/4.5/installutil.exe*
%{monodir}/4.5/mono-service.exe
%{monodir}/4.5/mono-service.exe.mdb
%{monodir}/gac/mono-service
%{_mandir}/man1/mono-service.1*
%{monodir}/gac/System.Configuration.Install
%{monodir}/4.5/System.Configuration.Install.dll
%{monodir}/4.7.1-api/System.Configuration.Install.dll
%{monodir}/gac/System.Xaml
%{monodir}/4.5/System.Xaml.dll*
%{monodir}/4.7.1-api/System.Xaml.dll*
# TO CHECK
%{monodir}/4.5/Facades/*

#----------------------------------------------------------------------------

%package ibm-data-db2
Summary:	IBM DB2 database connectivity for Mono 
Group:		Development/C#
Requires:	mono = %{version}

%description ibm-data-db2
This package contains the ADO.NET Data provider for the IBM DB2
Universal database.

%files ibm-data-db2
%{monodir}/gac/IBM.Data.DB2
%{monodir}/4.5/IBM.Data.DB2.dll

#----------------------------------------------------------------------------

%package winforms
Summary:	Windows Forms implementation for Mono
Group:		Development/C#
Requires:	mono = %{version}
#gw not available on Cooker
#Requires: gluezilla >= 2.0
Provides:	mono(System.Windows.Forms) = 4.0.30319
Provides:	mono(Accessibility) = 4.0.30319
Provides:	mono(System.Design) = 4.0.30319
Provides:	mono(System.Drawing) = 4.0.30319
Provides:	mono(System.Drawing.Design) = 4.0.30319
Provides:	mono(System.Windows.Forms) = 4.0.30319
%rename mono-winforms-4.0

%description winforms
This package provides a fully managed implementation of
System.Windows.Forms, the default graphical toolkit for .NET
applications.

%files winforms
%{monodir}/4.5/System.Windows.dll
%{monodir}/4.7.1-api/System.Windows.dll
%{monodir}/gac/System.Windows
%{monodir}/gac/System.Windows.Forms
%{monodir}/4.5/System.Windows.Forms.dll
%{monodir}/4.7.1-api/System.Windows.Forms.dll
%{monodir}/gac/System.Windows.Forms.DataVisualization
%{monodir}/4.5/System.Windows.Forms.DataVisualization.dll
%{monodir}/4.7.1-api/System.Windows.Forms.DataVisualization.dll
%{monodir}/gac/Accessibility
%{monodir}/4.5/Accessibility.dll
%{monodir}/4.7.1-api/Accessibility.dll
%{monodir}/gac/System.Design
%{monodir}/4.5/System.Design.dll
%{monodir}/4.7.1-api/System.Design.dll
%{monodir}/gac/System.Drawing.Design
%{monodir}/4.5/System.Drawing.Design.dll
%{monodir}/4.7.1-api/System.Drawing.Design.dll
%{monodir}/gac/Mono.WebBrowser
%{monodir}/4.5/Mono.WebBrowser.dll

#----------------------------------------------------------------------------

%package locale-extras
Summary:	Extra locale information for Mono
Group:		Development/C#
Requires:	mono = %{version}
Provides:	mono(I18N.CJK) = 4.0.30319
Provides:	mono(I18N.MidEast) = 4.0.30319
Provides:	mono(I18N.Other) = 4.0.30319
Provides:	mono(I18N.Rare) = 4.0.30319
%rename mono-locale-extras-4.0

%description locale-extras
This package contains assemblies to support I18N applications for
non-latin alphabets.

%files locale-extras
%{monodir}/gac/I18N.MidEast
%{monodir}/4.5/I18N.MidEast.dll
%{monodir}/gac/I18N.Rare
%{monodir}/4.5/I18N.Rare.dll
%{monodir}/gac/I18N.CJK
%{monodir}/4.5/I18N.CJK.dll
%{monodir}/gac/I18N.Other
%{monodir}/4.5/I18N.Other.dll

#----------------------------------------------------------------------------

%package -n monodoc-core
Summary:	Monodoc-Documentation tools for C# code
Group:		Development/C#
Provides:	monodoc = %{EVRD}

%description -n monodoc-core
Monodoc-core contains documentation tools for C#.

%files -n monodoc-core
%{monodir}/gac/monodoc
%{monodir}/monodoc
%{monodir}/4.5/mdoc.exe*
%{monodir}/4.5/mod.exe*
%{_bindir}/mdassembler
%{_bindir}/mdoc
%{_bindir}/mdoc-assemble
%{_bindir}/mdoc-export-html
%{_bindir}/mdoc-export-msxdoc
%{_bindir}/mdoc-update
%{_bindir}/mdoc-validate
%{_bindir}/mdvalidater
%{_bindir}/mod
%{_bindir}/monodocer
%{_bindir}/monodocs2html
%{_bindir}/monodocs2slashdoc
%{_prefix}/lib/monodoc
%{_mandir}/man1/mdassembler.1*
%{_mandir}/man1/mdoc-assemble.1*
%{_mandir}/man1/mdoc-export-html.1*
%{_mandir}/man1/mdoc-export-msxdoc.1*
%{_mandir}/man1/mdoc-update.1*
%{_mandir}/man1/mdoc-validate.1*
%{_mandir}/man1/mdoc.1*
%{_mandir}/man1/mdvalidater.1*
%{_mandir}/man1/monodocer.1*
%{_mandir}/man1/monodocs2html.1*
%{_mandir}/man5/mdoc.5*

#----------------------------------------------------------------------------

%package rx-core
Summary:	Reactive Extensions for Mono core libraries
License:	MIT and Apache License 2.0
Group:		Development/C#
Requires:	mono = %{version}
Provides:	mono(System.Reactive.Linq) = 4.0.30319
Provides:	mono(System.Reactive.Interfaces) = 4.0.30319

%description rx-core
A library to compose asynchronous and event-based programs using 
observable collections and LINQ-style query operators.
Reactive Extensions for Mono, core packages, which don't depend on
desktop-specific features.

%files rx-core
%{monodir}/4.5/System.Reactive.Core.dll
%{monodir}/4.5/System.Reactive.Debugger.dll
%{monodir}/4.5/System.Reactive.Experimental.dll
%{monodir}/4.5/System.Reactive.Interfaces.dll
%{monodir}/4.5/System.Reactive.Linq.dll
%{monodir}/4.5/System.Reactive.Observable.Aliases.dll
%{monodir}/4.5/System.Reactive.PlatformServices.dll
%{monodir}/4.5/System.Reactive.Providers.dll
%{monodir}/4.5/System.Reactive.Runtime.Remoting.dll
%{monodir}/gac/System.Reactive.Core*
%{monodir}/gac/System.Reactive.Debugger*
%{monodir}/gac/System.Reactive.Experimental*
%{monodir}/gac/System.Reactive.Interfaces*
%{monodir}/gac/System.Reactive.Linq*
%{monodir}/gac/System.Reactive.Observable.Aliases/0.0.0.0__31bf3856ad364e35/System.Reactive.Observable.Aliases.dll
%{monodir}/gac/System.Reactive.Observable.Aliases/0.0.0.0__31bf3856ad364e35/System.Reactive.Observable.Aliases.dll.mdb
%{monodir}/gac/System.Reactive.PlatformServices*
%{monodir}/gac/System.Reactive.Providers*
%{monodir}/gac/System.Reactive.Runtime.Remoting*

#----------------------------------------------------------------------------

%package rx-desktop
Summary:	Reactive Extensions for Mono desktop-specific libraries
License:	MIT and Apache License 2.0
Group:		Development/C#
Requires:	mono = %{version}
Requires:	mono-rx-core = %{EVRD}

%description rx-desktop
A library to compose asynchronous and event-based programs using 
observable collections and LINQ-style query operators.
Reactive Extensions for Mono, desktop-specific packages (winforms,
windows threading).

%files rx-desktop
%{monodir}/4.5/System.Reactive.Windows.Forms.dll
%{monodir}/4.5/System.Reactive.Windows.Threading.dll
%{monodir}/gac/System.Reactive.Windows.Forms
%{monodir}/gac/System.Reactive.Windows.Threading

#----------------------------------------------------------------------------

%package wcf
Summary:	Mono implementation of WCF, Windows Communication Foundation
Group:		Development/C#
Requires:	%{name} = %{version}
%rename mono-wcf-4.0

%description wcf
The Mono Project is an open development initiative that is working to
develop an open source, Unix version of the .NET development platform.
Its objective is to enable Unix developers to build and deploy
cross-platform .NET applications. The project will implement various
technologies that have been submitted to the ECMA for standardization.

Mono implementation of WCF, Windows Communication Foundation.

%files wcf
%{_bindir}/svcutil
%{monodir}/4.5/svcutil.exe*
%{monodir}/gac/System.IdentityModel
%{monodir}/4.5/System.IdentityModel.dll
%{monodir}/4.7.1-api/System.IdentityModel.dll
%{monodir}/gac/System.IdentityModel.Selectors
%{monodir}/4.5/System.IdentityModel.Selectors.dll
%{monodir}/4.7.1-api/System.IdentityModel.Selectors.dll
%{monodir}/gac/System.Runtime.DurableInstancing
%{monodir}/4.5/System.Runtime.DurableInstancing.dll
%{monodir}/4.7.1-api/System.Runtime.DurableInstancing.dll
%{monodir}/gac/System.ServiceModel
%{monodir}/4.5/System.ServiceModel.dll
%{monodir}/4.7.1-api/System.ServiceModel.dll
%{monodir}/4.5/System.ServiceModel.Activation.dll
%{monodir}/4.7.1-api/System.ServiceModel.Activation.dll
%{monodir}/gac/System.ServiceModel.Activation
%{monodir}/gac/System.ServiceModel.Discovery
%{monodir}/4.5/System.ServiceModel.Discovery.dll
%{monodir}/4.7.1-api/System.ServiceModel.Discovery.dll
%{monodir}/gac/System.ServiceModel.Internals
%{monodir}/4.5/System.ServiceModel.Internals.dll
%{monodir}/gac/System.ServiceModel.Routing
%{monodir}/4.5/System.ServiceModel.Routing.dll
%{monodir}/4.7.1-api/System.ServiceModel.Routing.dll
%{monodir}/gac/System.ServiceModel.Web
%{monodir}/4.5/System.ServiceModel.Web.dll
%{monodir}/4.7.1-api/System.ServiceModel.Web.dll

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}.%{rev}
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
pushd external/api-doc-tools
%patch10 -p1
%patch11 -p1
popd
%patch12 -p1
%patch13 -p1

# don't build mono-helix-client which requires the helix-binaries to build
sed -i 's|mono-helix-client||g' mcs/tools/Makefile

# use v%{api_ver} instead of v4.6
sed -i 's|TARGET_NET_REFERENCE = v4.6|TARGET_NET_REFERENCE = $(BOOTSTRAP_BIN_PROFILE)|g' mcs/tools/upload-to-sentry/Makefile

# use v%{api_ver} instead of v4.7
sed -i 's|BOOTSTRAP_BIN_PROFILE = v4.7|BOOTSTRAP_BIN_PROFILE = v%{api_ver}|g' mcs/build/profiles/build.make

# Remove hardcoded lib directory for libMonoPosixHelper.so from the config
sed -i 's|$mono_libdir/||g' data/config.in

%if %{with bootstrap}
# for bootstrap, keep some binaries
find . -name "*.dll" -not -path "./mcs/class/lib/monolite-linux/*" -not -path "./external/binary-reference-assemblies/v%{api_ver}/*" -print -delete
find . -name "*.exe" -not -path "./mcs/class/lib/monolite-linux/*" -print -delete
%else
# Remove all prebuilt binaries
rm -rf mcs/class/lib/monolite-linux/*
find . -name "*.dll" -print -delete
find . -name "*.exe" -print -delete
# use the binaries from the currently installed mono
cd external/binary-reference-assemblies && mv v%{api_ver} v%{api_ver}.tobuild && ln -s /usr/lib/mono/%{api_ver}-api v%{api_ver} && cd -
%endif

%build
#gw else the syslog() call will not build
#https://bugzilla.novell.com/show_bug.cgi?id=590967#c16
%define Werror_cflags %nil
#gw else libmonosgen-2.0.la does not build
%define _disable_ld_no_undefined 1
export CFLAGS="%{optflags} -O1 -fno-strict-aliasing"
%configure \
	--enable-ninja \
	--disable-system-aot \
	--with-moonlight=no \
	--enable-static \
	--with-csc=mcs \
%if %{with sgen}
	--with-sgen=yes \
%else
	--with-sgen=no \
%endif
%if %{with llvm}
	--enable-loadedllvm
%endif

sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

export LD_LIBRARY_PATH=`pwd`/mono/native/.libs
%make

# rebuild the reference assemblies
cd external/binary-reference-assemblies && if [ -d v%{api_ver}.tobuild ]; then rm -f v%{api_ver} && mv v%{api_ver}.tobuild v%{api_ver}; fi && cd -
find ./external/binary-reference-assemblies/v%{api_ver}/ -name \*.dll -print -delete
BUILD_PATH=`pwd` && cd ./external/binary-reference-assemblies/ && MONO_PATH=$BUILD_PATH/mcs/class/lib/net_4_x-linux/ V=1 CSC="$BUILD_PATH/runtime/mono-wrapper $BUILD_PATH/mcs/class/lib/net_4_x-linux/mcs.exe" make -C v%{api_ver}

%install
#rm -rf installed-docs
export LD_LIBRARY_PATH=`pwd`/mono/native/.libs
make install DESTDIR=%{buildroot}

# copy the mono.snk key into /etc/pki/mono
mkdir -p %{buildroot}%{_sysconfdir}/pki/mono
install -p -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pki/mono/

# install the newly built reference assembly dlls
mkdir -p %{buildroot}%{monodir}/%{api_ver}-api
cp external/binary-reference-assemblies/v%{api_ver}/*.dll %{buildroot}%{monodir}/%{api_ver}-api

ln -sf mono-sgen %{buildroot}%{_bindir}/mono

# remove .la files (they are generally bad news)
rm -f %{buildroot}%{_libdir}/*.la
# these work on Windows only
rm -rf %{buildroot}%{monodir}/*/Mono.Security.Win32*
# remove libgc cruft
rm -rf %{buildroot}%{_datadir}/libgc-mono
# remove stuff that we don't package
rm -f %{buildroot}%{_bindir}/cilc
rm -f %{buildroot}%{_mandir}/man1/cilc.1*
rm -f %{buildroot}%{_mandir}/man1/mdb2ppdb.1*
rm -f %{buildroot}%{monodir}/*/browsercaps-updater.*
rm -f %{buildroot}%{monodir}/*/culevel.*
rm -f %{buildroot}%{monodir}/2.0/cilc.exe*

rm -f %{buildroot}%{monodir}/*/mscorlib.dll.so
rm -f %{buildroot}%{monodir}/*/mcs.exe.so
rm -f %{buildroot}%{monodir}/*/gmcs.exe.so
rm -f %{buildroot}%{monodir}/4.0/dmcs.exe.so
rm -rf %{buildroot}%{_bindir}/mono-configuration-crypto
rm -rf %{buildroot}%{_mandir}/man?/mono-configuration-crypto*
rm -rf %{buildroot}%{monodir}/mono-configuration-crypto
rm -rf %{buildroot}%{monodir}/4.5/*.so

# remove dmcs because it requires the .net 4.0 sdk but we only deliver 4.5 with Fedora (#1294967)
rm -f %{buildroot}%{_bindir}/dmcs

# remove wrapper scripts for roslyn-binaries
rm -f %{buildroot}%{_bindir}/csc
rm -f %{buildroot}%{_bindir}/csc-dim
rm -f %{buildroot}%{_bindir}/csi
rm -f %{buildroot}%{_bindir}/vbc

# drop prj2make because the binary is not built anymore
rm -f %{buildroot}%{_bindir}/prj2make
rm -f %{buildroot}%{_mandir}/man1/prj2make*

# Move upstream GDB scripts for security reasons of new GDB.
mkdir -p %{buildroot}%{_datadir}/gdb/auto-load%{_bindir}
mv -f %{buildroot}%{_bindir}/mono-gdb.py \
           %{buildroot}%{_datadir}/gdb/auto-load%{_bindir}/

# remove msbuild / microsoft binary files
rm -rf %{buildroot}/usr/lib/mono/msbuild

# remove these files, we are using the files installed in /usr/lib/rpm/
rm %{buildroot}%{_bindir}/mono-find-requires
rm %{buildroot}%{_bindir}/mono-find-provides

# https://bugzilla.xamarin.com/show_bug.cgi?id=12837
ln -s %{monodir}/*/mcs.exe %{buildroot}%{monodir}/4.5/gmcs.exe

# create a symbolic link so that Fedora packages targetting Framework 4.5 will still build
cd %{buildroot}/usr/lib/mono \
&& rm -rf 4.5-api \
&& ln -s %{api_ver}-api 4.5-api && cd -
# as requested in bug 1704861; we have had that link in F29 with Mono 4.8 as well.
cd %{buildroot}/usr/lib/mono \
&& rm -rf 4.0-api \
&& ln -s %{api_ver}-api 4.0-api && cd -


%find_lang mcs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14798 |21mr|mono-addins-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mono Addins
Name:		mono-addins
Version:	1.1
Release:	7
License:	MIT
Group:		Development/Other
Url:		http://www.go-mono.com
Source0:	http://origin-download.mono-project.com/sources/mono-addins/%{name}-%{version}.tar.gz
Patch0:		mono-addins-1.1-pkgconfig.patch
Patch1:		mono-addins-1.1-gmcs.patch
BuildRequires:	gtk-sharp2
BuildRequires:	pkgconfig(mono)
BuildArch:	noarch

%description
Mono Addin Support.

%files
%{_bindir}/mautil
%{_mandir}/man1/mautil.1*
%{_prefix}/lib/mono/mono-addins/mautil.exe
%{_prefix}/lib/mono/gac/Mono.Addins
%{_prefix}/lib/mono/mono-addins/Mono.Addins.dll
%{_prefix}/lib/mono/gac/Mono.Addins.CecilReflector/
%{_prefix}/lib/mono/mono-addins/Mono.Addins.CecilReflector.dll
%{_prefix}/lib/mono/gac/Mono.Addins.Setup
%{_prefix}/lib/mono/mono-addins/Mono.Addins.Setup.dll
%{_prefix}/lib/mono/gac/Mono.Addins.Gui
%{_prefix}/lib/mono/mono-addins/Mono.Addins.Gui.dll

#----------------------------------------------------------------------------

%package 0.6
Summary:	Mono Addins compatibility
Group:		Development/Other
Conflicts:	%{name} < 0.6-3
Requires:	%{name} = %{EVRD}

%description 0.6
Mono Addin Support - compatibility package.

%files 0.6
%{_prefix}/lib/mono/gac/policy.0.6.Mono.Addins
%{_prefix}/lib/mono/gac/policy.0.6.Mono.Addins.CecilReflector/
%{_prefix}/lib/mono/gac/policy.0.6.Mono.Addins.Setup
%{_prefix}/lib/mono/gac/policy.0.6.Mono.Addins.Gui
%{_prefix}/lib/mono/gac/policy.0.6.Mono.Addins.MSBuild

#----------------------------------------------------------------------------

%package 0.5
Summary:	Mono Addins compatibility
Group:		Development/Other
Conflicts:	%{name} < 0.6-3
Requires:	%{name} = %{EVRD}

%description 0.5
Mono Addin Support - compatibility package.

%files 0.5
%{_prefix}/lib/mono/gac/policy.0.5.Mono.Addins
%{_prefix}/lib/mono/gac/policy.0.5.Mono.Addins.CecilReflector/
%{_prefix}/lib/mono/gac/policy.0.5.Mono.Addins.Setup
%{_prefix}/lib/mono/gac/policy.0.5.Mono.Addins.Gui

#----------------------------------------------------------------------------

%package 0.4
Summary:	Mono Addins compatibility
Group:		Development/Other
Conflicts:	%{name} < 0.6-3
Requires:	%{name} = %{EVRD}

%description 0.4
Mono Addin Support - compatibility package.

%files 0.4
%{_prefix}/lib/mono/gac/policy.0.4.Mono.Addins
%{_prefix}/lib/mono/gac/policy.0.4.Mono.Addins.CecilReflector
%{_prefix}/lib/mono/gac/policy.0.4.Mono.Addins.Gui
%{_prefix}/lib/mono/gac/policy.0.4.Mono.Addins.Setup

#----------------------------------------------------------------------------

%package 0.3
Summary:	Mono Addins compatibility
Group:		Development/Other
Conflicts:	%{name} < 0.6-3
Requires:	%{name} = %{EVRD}

%description 0.3
Mono Addin Support - compatibility package.

%files 0.3
%{_prefix}/lib/mono/gac/policy.0.3.Mono.Addins
%{_prefix}/lib/mono/gac/policy.0.3.Mono.Addins.CecilReflector/
%{_prefix}/lib/mono/gac/policy.0.3.Mono.Addins.Setup
%{_prefix}/lib/mono/gac/policy.0.3.Mono.Addins.Gui

#----------------------------------------------------------------------------

%package 0.2
Summary:	Mono Addins compatibility
Group:		Development/Other
Conflicts:	%{name} < 0.6-3
Requires:	%{name} = %{EVRD}

%description 0.2
Mono Addin Support - compatibility package.

%files 0.2
%{_prefix}/lib/mono/gac/policy.0.2.Mono.Addins
%{_prefix}/lib/mono/gac/policy.0.2.Mono.Addins.CecilReflector/
%{_prefix}/lib/mono/gac/policy.0.2.Mono.Addins.Setup
%{_prefix}/lib/mono/gac/policy.0.2.Mono.Addins.Gui

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Mono Addin Support - development files and tools.

%files devel
%{_datadir}/pkgconfig/*.pc
#gw these depend on stuff in libmono-devel:
%{_prefix}/lib/mono/gac/Mono.Addins.MSBuild
%{_prefix}/lib/mono/gac/policy.0.2.Mono.Addins.MSBuild
%{_prefix}/lib/mono/gac/policy.0.3.Mono.Addins.MSBuild
%{_prefix}/lib/mono/gac/policy.0.4.Mono.Addins.MSBuild
%{_prefix}/lib/mono/gac/policy.0.5.Mono.Addins.MSBuild
%{_prefix}/lib/mono/mono-addins/Mono.Addins.MSBuild.dll

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
./configure --prefix=%{_prefix}
#gw parallel make broken in 0.4
make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/pkgconfig
mv %{buildroot}%{_prefix}/lib*/pkgconfig/*.pc %{buildroot}%{_datadir}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14799 |21mr|mono-flickrnet-3.24.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Flickr.Net API Library
Name:		mono-flickrnet
Version:	3.24.0
Release:	1
License:	LGPLv2+
Group:		Development/Other
Url:		http://www.codeplex.com/FlickrNet
Source0:	FlickrNet-25207.zip
Patch0:		assemblyinfo.patch
BuildRequires:	unzip
BuildRequires:	pkgconfig(mono)
BuildArch:	noarch

%description
The Flickr.Net API is a .Net Library for accessing the Flickr API.
Written entirely in C# it can be accessed from with any .Net language.

%files
%{_prefix}/lib/mono/flickrnet
%{_prefix}/lib/mono/gac/FlickrNet
%{_datadir}/pkgconfig/flickrnet.pc

#----------------------------------------------------------------------------

%prep
%setup -n FlickrNet -q
%patch0 -p1

%build
mcs -debug -target:library -out:FlickrNet.dll  -r:System.Web.dll -r:System.Drawing.dll *.cs
cat << EOF > flickrnet.pc
prefix=%{_prefix}
assemblies_dir=\${prefix}/lib/mono/flickrnet
Libraries=\${assemblies_dir}/FlickrNet.dll

Name: FlickrNet
Description: Flickr.Net API Library
Version:	3.24.0
Libs: -r:\${assemblies_dir}/FlickrNet.dll
EOF

%install
gacutil -i FlickrNet.dll -package flickrnet -root %{buildroot}%{_prefix}/lib
mkdir -p %{buildroot}%{_datadir}/pkgconfig
cp flickrnet.pc %{buildroot}%{_datadir}/pkgconfig/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14800 |21mr|morfologik-stemming-2.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          morfologik-stemming
Version:       2.0.1
Release:       10
Summary:       Morfologik stemming library
License:       BSD
URL:           http://morfologik.blogspot.com/
Source0:       https://github.com/morfologik/morfologik-stemming/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.beust:jcommander)
BuildRequires: mvn(com.carrotsearch:hppc)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-cli:commons-cli)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

%if 0
# test deps
BuildRequires: mvn(com.carrotsearch:junit-benchmarks)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.easytesting:fest-assert-core:2.0M10)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Morfologik provides high quality lemmatisation for the Polish language,
along with tools for building and using byte-based finite state automata.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

chmod 644 README.txt
# Convert from dos to unix line ending
for file in CHANGES.txt CONTRIBUTING.txt README.txt LICENSE.txt; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

%pom_add_dep org.hamcrest:hamcrest-core::test morfologik-tools
%pom_remove_plugin com.carrotsearch.randomizedtesting:junit4-maven-plugin
%pom_remove_plugin de.thetaphi:forbiddenapis
%pom_remove_plugin :maven-javadoc-plugin

# Remove classpath from manifest file
%pom_xpath_set pom:addClasspath false morfologik-tools
# Unwanted task
%pom_remove_plugin :maven-assembly-plugin morfologik-tools

%pom_change_dep :morfologik-polish ::'${project.version}' morfologik-speller

%build
# Test skipped for unavailable test deps
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.txt CONTRIBUTING.txt README.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14801 |21mr|morgalka-1-4.git7d08ab.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 7d08abe9ce32a364928096c2772282992cd2f421
%define commit_short %(echo %{commit} | head -c6)
%define projName Morgalka

Summary(ru_RU.UTF-8): Утилита с предупреждением о длительной работе за экраном
Summary:	Utility with a warning about prolonged use of the screen
Name:		morgalka
Version:	1
Release:	4.git%{commit_short}.1
License:	GPLv3
Group:		Monitoring
Url:		https://hub.mos.ru/mos/src/morgalka
Vendor:		MOS
Source0:	https://hub.mos.ru/mos/src/morgalka/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildRequires:	cmake
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	qt6-cmake
Requires:		%{_lib}Qt6Svg%{_isa}

%description
Designed to manage breaks while working on a screen.
The program provides several options for working at the screen
without a break: 10 minutes, 20 minutes, 30 minutes.
The break can last 20 seconds, 30 seconds, 45 seconds, 60 seconds,
90 seconds, 120 seconds at your choice. You can also remove the break
timer and turn off the break window manually.

%description -l ru_RU.UTF-8
Предназначено для управления перерывами во время работы за экраном.
Программа предоставляет несколько вариантов работы за экраном без
перерыва: 10 минут, 20 минут, 30 минут.
Перерыв может длиться 20 секунд, 30 секунд, 45 секунд, 60 секунд,
90 секунд, 120 секунд по выбору. Также можно убрать таймер перерыва и
выключать окно перерыва вручную.

%files
%{_bindir}/%{projName}
%{_datadir}/applications/%{projName}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{projName}.svg

#------------------------------------------------------------------

%package autostart
Summary:	Autostart of the Morgalka program
Summary(ru_RU.UTF-8): Автозапуск Моргалки
Requires:	morgalka = %{EVRD}
BuildArch:	noarch

%description autostart
Autostart of the Morgalka program

%description autostart -l ru_RU.UTF-8
Автозапуск Моргалки

%files autostart
%{_sysconfdir}/xdg/autostart/%{projName}.desktop

#------------------------------------------------------------------

%prep
%setup -n %{name}-%{commit}

%build
%cmake
%make

%install
%make_install -C build

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}/applications
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart

install -p -m644 %{projName}.desktop %{buildroot}%{_datadir}/applications/%{projName}.desktop
install -p -m644 %{projName}.desktop %{buildroot}%{_sysconfdir}/xdg/autostart/%{projName}.desktop
install -p -m644 %{projName}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14802 |21mr|morphia-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          morphia
Version:       1.0.1
Release:       10
Summary:       A type-safe Java library for MongoDB
License:       ASL 2.0
URL:           https://github.com/mongodb/morphia
Source0:       https://github.com/mongodb/morphia/archive/r%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.google.inject:guice)
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(com.thoughtworks.proxytoys:proxytoys)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.mongodb:mongo-java-driver:2)
BuildRequires: mvn(org.reflections:reflections)
BuildRequires: mvn(org.scannotation:scannotation)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-jdk14)
BuildRequires: mvn(org.slf4j:slf4j-simple)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(dom4j:dom4j)
%if 0
# Test deps
BuildRequires: mvn(org.hibernate:hibernate-validator:4.1.0.Final)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Morphia is a lightweight type-safe library for mapping Java
objects to/from MongoDB. Morphia provides a type-safe, and
fluent Query API support with (run-time) validation. Morphia
uses annotations so there are no XML files to manage or update.
Morphia should feel very comfortable for any developer
with JPA experience.

%package entityscanner-plug
Summary:       EntityScanner Plugin

%description entityscanner-plug
Morphia EntityScanner Plugin.

%package guice-plug
Summary:       Guice Plugin

%description guice-plug
Morphia Guice Plugin.

%package logging-slf4j
Summary:       Logging via SLF4J

%description logging-slf4j
Morphia Logging via SLF4J.

%package parent
Summary:       Morphia Parent POM

%description parent
Build Project for Morphia.

%package validation
Summary:       JSR303 Validation

%description validation
Morphia JSR303 Validation.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-r%{version}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

rm -r %{name}/src/main/java/relocated
%pom_add_dep commons-collections:commons-collections:3.2.1
sed -i "s|relocated.morphia.||" $(find %{name} -name "*.java")

%pom_remove_plugin :gwt-maven-plugin
%pom_remove_plugin :maven-license-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"

%pom_disable_module no-proxy-deps-tests

%pom_xpath_set "pom:project/pom:version" %{version}
%pom_xpath_set "pom:parent/pom:version" %{version} entityscanner-plug
%pom_xpath_set "pom:parent/pom:version" %{version} guice-plug
%pom_xpath_set "pom:parent/pom:version" %{version} logging-slf4j
%pom_xpath_set "pom:parent/pom:version" %{version} %{name}
%pom_xpath_set "pom:parent/pom:version" %{version} validation

%pom_xpath_set "pom:project/pom:properties/pom:java-driver.version" 2

%pom_change_dep cglib: :cglib %{name}
%pom_change_dep :scannotation org.scannotation: entityscanner-plug
%pom_change_dep com.google.collections:google-collections com.google.guava:guava:18.0 entityscanner-plug

%pom_remove_plugin :maven-shade-plugin entityscanner-plug

# Add OSGi manifest
for p in entityscanner-plug guice-plug logging-slf4j validation; do
  %pom_xpath_set "pom:packaging" bundle ${p}
  %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 ${p} '
    <extensions>true</extensions>
    <executions>
      <execution>
        <id>bundle-manifest</id>
        <phase>process-classes</phase>
        <goals>
          <goal>manifest</goal>
        </goals>
      </execution>
    </executions>'
done

%build

# Tests require web access
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-%{name}
%doc CONTRIBUTING.md README.md
%license %{name}/LICENSE.txt

%files entityscanner-plug -f .mfiles-%{name}-entityscanner-plug
%license LICENSE

%files guice-plug -f .mfiles-%{name}-guice-plug
%license LICENSE

%files logging-slf4j -f .mfiles-%{name}-logging-slf4j
%license LICENSE

%files parent -f .mfiles-%{name}-parent
%license LICENSE

%files validation -f .mfiles-%{name}-validation
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license %{name}/LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14803 |21mr|mosquitto-2.0.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major     2
%define minor     1
%define libname   %mklibname %{name} %{major}
%define libnamepp %mklibname %{name}pp %{major}
%define develname %mklibname %{name} -d

Name:           mosquitto
Version:        2.0.18
Release:        1
Summary:        An Open Source MQTT v3.1/v3.1.1 Broker
Group:          System/Libraries
License:        BSD
URL:            http://mosquitto.org/
Source0:        http://mosquitto.org/files/source/%{name}-%{version}.tar.gz
Source1:        %{name}-sysusers.conf
BuildRequires:  cmake
BuildRequires:  tcp_wrappers-devel
BuildRequires:  uthash-devel >= 2.1.0
BuildRequires:  cmake(cJSON)
BuildRequires:  pkgconfig(libcares)
BuildRequires:  pkgconfig(libwebsockets)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(systemd)
BuildRequires:  pkgconfig(uuid)
BuildRequires:  xsltproc
Requires:		%{libname} = %{version}-%{release}
Requires(pre):  shadow-utils
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%description
Mosquitto is an open source message broker that implements the MQ Telemetry
Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method
of carrying out messaging using a publish/subscribe model. This makes it
suitable for "machine to machine" messaging such as with low power sensors
or mobile devices such as phones, embedded computers or micro-controllers
like the Arduino.

%files
%doc ChangeLog.txt CONTRIBUTING.md README*
%license LICENSE.txt
%{_bindir}/%{name}*
%{_sbindir}/%{name}
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config %{_sysconfdir}/%{name}/*.example
%{_sysusersdir}/%{name}.conf
%{_unitdir}/%{name}.service
%{_mandir}/man1/*.1.*
%{_mandir}/man5/*.5.*
%{_mandir}/man7/*.7.*
%{_mandir}/man8/*.8.*

%pre
%sysusers_create_package %{name} %{S:1}

%post
%systemd_post %{name}

%preun
%systemd_preun %{name}

%postun
%systemd_postun %{name}

#------------------------------------------------

%package -n     %{libname}
Summary:        An Open Source MQTT v3.1/v3.1.1 Broker
Group:          System/Libraries

%description -n %{libname}
Mosquitto is an open source message broker that implements the MQ Telemetry
Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method
of carrying out messaging using a publish/subscribe model. This makes it
suitable for "machine to machine" messaging such as with low power sensors
or mobile devices such as phones, embedded computers or micro-controllers
like the Arduino.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*
%{_libdir}/lib%{name}.so.%{minor}*

#------------------------------------------------

%package -n     %{libnamepp}
Summary:        An Open Source MQTT v3.1/v3.1.1 Broker
Group:          System/Libraries
Requires:		%{libname} = %{version}-%{release}

%description -n %{libnamepp}
Mosquitto is an open source message broker that implements the MQ Telemetry
Transport protocol version 3.1 and 3.1.1 MQTT provides a lightweight method
of carrying out messaging using a publish/subscribe model. This makes it
suitable for "machine to machine" messaging such as with low power sensors
or mobile devices such as phones, embedded computers or micro-controllers
like the Arduino.

%files -n %{libnamepp}
%{_libdir}/lib%{name}pp.so.%{major}*
%{_libdir}/lib%{name}pp.so.%{minor}*

#------------------------------------------------

%package -n     %{develname}
Summary:        Development package for %{name}
Group:          Development/C++
Requires:       %{libname} = %{version}-%{release}
Requires:       %{libnamepp} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
Header files for development with %{name}.

%files -n %{develname}
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*.3.*

#------------------------------------------------

%prep
%setup -q

# Don't strip binaries on install: rpmbuild will take care of it
sed -i "s|(INSTALL) -s|(INSTALL)|g" lib/Makefile src/Makefile client/Makefile

%build
%cmake \
     -DCMAKE_INSTALL_SYSCONFDIR=%{_sysconfdir} \
     -DWITH_BUNDLED_DEPS=OFF \
     -DWITH_SYSTEMD=ON \
     -DWITH_WEBSOCKETS=ON
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 service/systemd/%{name}.service.notify %{buildroot}%{_unitdir}/%{name}.service

install -D %{S:1} %{buildroot}%{_sysusersdir}/%{name}.conf

%check
#make test



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14804 |21mr|mousetweaks-3.32.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Help motorically impaired users to use the mouse
Name:		mousetweaks
Version:	3.32.0
Release:	3
License:	GPLv3+
Group:		Accessibility
Url:		http://live.gnome.org/Mousetweaks/Home
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/mousetweaks/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	rarian
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xtst)

%description
The Mousetweaks package provides mouse accessibility enhancements for 
the GNOME desktop. These enhancements are:

1. It offers a way to perform the various clicks without using any 
hardware button.

2. It allows users to perform a right click by doing a click&hold 
of the left mousebutton. (For a left-handed mouse user, the termes 
left and right have to be inverted.) 

3. It provides an applet that the user can install on a panel. This
applet creates an area on the panel into which the pointer can 
be captured until the user releases it with a predefined button
and modifier combination.

The options can be accessed through the Accessibility tab of the
Mouse Preferences of GNOME Control Center or through command-line.

%files -f %{name}.lang
%doc AUTHORS README NEWS TODO
%{_bindir}/mousetweaks
%{_datadir}/GConf/gsettings/*.convert
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/%{name}
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export LC_ALL=en_US.UTF-8
%configure
%make V=1

%install
%makeinstall_std
%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14805 |21mr|movit-1.6.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	High-performance, high-quality video filters for the GPU
Name:		movit
Version:	1.6.3
Release:	2
License:	GPLv2+
Group:		Video
Url:		http://movit.sesse.net/
Source0:	http://movit.sesse.net/%{name}-%{version}.tar.gz
Patch0:		movit-1.6.3-eigen3-headers.patch 
BuildRequires:	eigen3
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(x11)

%description
Movit is the Modern Video Toolkit, notwithstanding that anything that's
called "modern" usually isn't, and it's really not a toolkit.

Movit aims to be a high-quality, high-performance, open-source library
for video filters.

%files
%doc NEWS README
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libmovit.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%dir %{_includedir}/movit/
%{_includedir}/movit/*.h
%{_libdir}/libmovit.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# disable failing tests
sed -i -e 's,all: libmovit.la $(TESTS),all: libmovit.la,g' Makefile.in
./autogen.sh
%configure \
	--disable-static
%make

%install
%makeinstall_std

chmod 755 %{buildroot}%{_libdir}/libmovit.so.%{major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14806 |21mr|mozjs38-38.8.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname mozjs
%define api 38
%define libname %mklibname %{pkgname} %{api}
%define devname %mklibname %{pkgname} %{api} -d

Summary:	JavaScript interpreter and libraries
Name:		mozjs38
Version:	38.8.0
Release:	5
License:	MPLv2.0 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+
Group:		Development/Other
Url:		http://www.mozilla.org/js/
Source0:	https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.bz2
# Patches from 0ad
Patch0:		FixTracelogger.diff
BuildRequires:	python2
BuildRequires:	zip
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(zlib)

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
superset of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	JavaScript engine library
Group:		System/Libraries

%description -n %{libname}
JavaScript is the Netscape-developed object scripting languages. This
package has been created for purposes of Sablotron and is suitable for
embedding in applications. See http://www.mozilla.org/js for details
and sources.

%files -n %{libname}
%{_libdir}/lib%{pkgname}-%{api}.so

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	The header files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
# Necessary because mozjs uses a weird versioning scheme instead of
# proper sonames
%if "%{_lib}" == "lib64"
Provides:	devel(libmozjs-%{api}(64bit)) = %{EVRD}
%else
Provides:	devel(libmozjs-%{api}) = %{EVRD}
%endif

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%files -n %{devname}
%{_libdir}/pkgconfig/mozjs-%{api}.pc
%{_includedir}/mozjs-%{api}

#-------------------------------------------------------------------------

%prep
%setup -qn mozilla-esr%{api}/js/src
%patch0 -p3

# Remove zlib directory (to be sure using system version)
rm -rf ../../modules/zlib

# Fix release number
head -n -1 ../../config/milestone.txt > ../../config/milestone.txt
echo "%{version}" >> ../../config/milestone.txt

%build
# Need -fpermissive due to some macros using nullptr as bool false
export CFLAGS="%{optflags} -fpermissive -fno-tree-vrp -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
export PYTHON=%__python2
%configure \
        --with-system-nspr \
        --enable-threadsafe \
        --enable-readline \
        --enable-xterm-updates \
        --enable-shared-js \
        --enable-gcgenerational \
        --enable-optimize \
        --with-system-zlib \
        --enable-system-ffi \
        --with-system-icu \
        --without-intl-api
# Not build smp safe
make

%install
%makeinstall_std

pushd %{buildroot}%{_libdir}/pkgconfig/
chmod a-x js.pc
mv js.pc mozjs-%{api}.pc
popd

# Do not install binaries or static libraries
rm -f %{buildroot}%{_bindir}/js*
rm -f %{buildroot}%{_libdir}/*.ajs

# Install files, not symlinks to build directory
pushd %{buildroot}%{_includedir}
    for link in `find . -type l`; do
        header=`readlink $link`
        rm -f $link
        cp -p $header $link
    done
popd
cp -p js/src/js-config.h %{buildroot}%{_includedir}/mozjs-%{api}/

%check
# Some tests will fail
tests/jstests.py -d -s --no-progress ../../js/src/js/src/shell/js || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14807 |21mr|mozjs52-52.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 52
%define libname %mklibname mozjs %{api}
%define devname %mklibname mozjs %{api} -d

Summary:	JavaScript interpreter and libraries
Name:		mozjs%{api}
Version:	52.9.0
Release:	1
Group:		Development/Other
License:	MPLv2.0 and MPLv1.1 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+ and AFL and ASL 2.0
Url:		https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/52
Source0:	https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
Source1:	LICENSE.txt
# Patches from Debian mozjs52_52.3.1-4.debian.tar.xz:
Patch0002:	copy-headers.patch

# Patches from https://github.com/ptomato/mozjs / Debian mozjs52_52.3.1-4.debian.tar.xz
Patch0101:	disable-mozglue.patch
Patch0104:	include-configure-script.patch
Patch0105:	patch-js_src_jsapi-tests_testPrintf.cpp

# Patches from Fedora firefox package:
Patch18:	xulrunner-24.0-jemalloc-ppc.patch
Patch19:	xulrunner-24.0-s390-inlines.patch
Patch304:	mozilla-1253216.patch

# Patches from MCST for e2k
Patch1000:	0001-libpixman_optimizations_from-0.34.patch
Patch1001:	0002-Skia_for_e2k_base.patch
Patch1002:	0003-ycbcr_sse_e2k_optimization.patch
Patch1003:	0004-common_e2k_sse_optimizations.patch
Patch1004:	0005-bug105479.patch
Patch1005:	0006-e2k_defenition.patch
Patch1006:	0007-icu_patch_for_e2k.patch
Patch1007:	0008-double_slash_bug.patch
Patch1008:	0009-disabling_owerflow_builtins_for_lcc.patch
Patch1009:	0010-mozilla_bug998926.patch
Patch1010:	0011-bug95374.patch
Patch1011:	0012-delete_progbits_in_gnu_asm.patch
Patch1012:	0013-va_copy_for_lcc.patch
Patch1013:	0014-remove_bom_for_lcc.patch
Patch1014:	0015-c++14_only.patch
Patch1015:	0016-e2k_xptcall_implementation.patch
Patch1016:	0017-libyuv_sse_for_e2k.patch
Patch1017:	0018-atomics_for_e2k.patch
Patch1018:	0019-non_cont_initializer_for_constexpr_constructor.patch
Patch1019:	0020-bug84233.patch
Patch1020:	0021-goto_const_void_bug.patch
Patch1021:	0022-3.17_kernel_only_bug.patch
Patch1022:	0023-russian_localization.patch
Patch1023:	0024-lcc-1.24-compat.patch
Patch1024:	0025-webrtc_e2k_port.patch

BuildRequires:	autoconf2.1
#BuildRequires:	perl-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(zlib)

ExclusiveArch:	%{e2k}

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	JavaScript engine library
Group:		System/Libraries

%description -n %{libname}
JavaScript is the Netscape-developed object scripting languages. This
package has been created for purposes of Sablotron and is suitable for
embedding in applications. See http://www.mozilla.org/js for details
and sources.

%files -n %{libname}
%doc LICENSE.txt
%{_libdir}/libmozjs-%{api}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The header files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%files -n %{devname}
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mozjs-%{api}

#----------------------------------------------------------------------------

%prep
%setup -q -n firefox-%{version}esr/js/src

pushd ../..
%patch0002 -p1
%patch0101 -p1
%patch0104 -p1
%patch0105 -p1
%patch18 -p1 -b .jemalloc-ppc
%patch19 -p2 -b .s390-inlines
%patch304 -p1 -b .1253216
%ifarch %{e2k}
%autopatch -p1 -m1000
%endif
popd

# Delete bundled sources
#rm -rf editline
#rm -rf ctypes/libffi

# Correct failed to link tests due to hardened build
sed -i 's|"-O2"|"-O2 -fPIC"|' configure

# Correct sed expression for new sed
sed -i 's|\^\[:space:\]|^\[\[:space:\]\]|g' configure

# Remove zlib directory (to be sure using system version)
rm -rf ../../modules/zlib

# Fix release number
head -n -1 ../../config/milestone.txt > ../../config/milestone.txt
echo "%{version}" >> ../../config/milestone.txt

%build
%setup_compile_flags
# Disable null pointer gcc6 optimization in gcc6 (rhbz#1328045)
export CFLAGS="%{optflags} -fno-tree-vrp -fno-strict-aliasing -fno-delete-null-pointer-checks"
export CXXFLAGS=$CFLAGS
LINKFLAGS="%{ldflags}"
export PYTHON=%__python2

autoconf-2.13
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--without-system-icu \
	--enable-posix-nspr-emulation \
	--with-system-zlib \
	--enable-tests \
	--disable-strip \
	--with-intl-api \
	--enable-readline \
	--enable-shared-js \
	--disable-optimize \
	--enable-pie

%make_build

%install
%make_install

chmod a-x  %{buildroot}%{_libdir}/pkgconfig/*.pc

# Do not install binaries or static libraries
rm -f %{buildroot}%{_libdir}/*.a %{buildroot}%{_libdir}/*.ajs %{buildroot}%{_bindir}/js*

cp -p js/src/js-config.h %{buildroot}%{_includedir}/mozjs-%{api}

# Install license file
cp %{SOURCE1} .

%check
# Skip some tests because bundled icu differs from system
rm -rf tests/ecma_6/String/normalize-generateddata-part1-not-listed.js tests/Intl/NumberFormat/format.js
#
# REGRESSIONS
#    Intl/DateTimeFormat/format.js
#    Intl/NumberFormat/StringBuffer.js

# Run SpiderMonkey tests
#%{ __python2} tests/jstests.py -d -s -t 1800 --no-progress ../../js/src/js/src/shell/js

# Run basic JIT tests
#% {__python2} jit-test/jit_test.py -s -t 1800 --no-progress ../../js/src/js/src/shell/js basic

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14808 |21mr|mozjs60-60.6.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pre_release %{nil}
%define pkgname mozjs
%define api 60
%define major 60
%define majorlib 0
%define libmozjs %mklibname %{pkgname} %{api} %{major}
%define libmozjs_devel %mklibname %{pkgname} %{api} -d

# (tpg) optimize a bit
%global optflags %{optflags} -O3

# Big endian platforms
%ifarch ppc ppc64 s390 s390x
%global big_endian 1
%endif

Summary:	JavaScript interpreter and libraries
Name:		mozjs60
Version:	60.6.3
Release:	5
Group:		Development/Other
License:	MPLv2.0 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+
URL:		https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/%{major}
Source0:        https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
Source10:	http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz
# Patches from Debian mozjs52_52.3.1-4.debian.tar.xz:
Patch0001:      fix-soname.patch
Patch0002:      copy-headers.patch
Patch0003:      tests-increase-timeout.patch
Patch0008:      Always-use-the-equivalent-year-to-determine-the-time-zone.patch
Patch0009:      icu_sources_data.py-Decouple-from-Mozilla-build-system.patch
Patch0010:      icu_sources_data-Write-command-output-to-our-stderr.patch
Patch0011:      tests-For-tests-that-are-skipped-on-64-bit-mips64-is-also.patch

# Build fixes - https://hg.mozilla.org/mozilla-central/rev/ca36a6c4f8a4a0ddaa033fdbe20836d87bbfb873
Patch12:        emitter.patch
Patch13:        emitter_test.patch
Patch14:        init_patch.patch

# Patches from Fedora firefox package:
Patch26:        build-icu-big-endian.patch

# aarch64 fixes for -O2
Patch30:        Save-x28-before-clobbering-it-in-the-regex-compiler.patch
Patch31:        Save-and-restore-non-volatile-x28-on-ARM64-for-generated-unboxed-object-constructor.patch
Patch32:	firefox-60.2.2-add-riscv64.patch
Patch33:	mozjs-52.8.1-fix-crash-on-startup.patch

BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(python2)
BuildRequires:	readline-devel
BuildRequires:	zip
BuildRequires:	python

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n %{libmozjs}
Summary:	JavaScript engine library
Group:		Development/Other
Provides:	mozjs%{major} = %{EVRD}

%description -n %{libmozjs}
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n %{libmozjs_devel}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Development/Other
Provides:	mozjs%{major}-devel = %{EVRD}
Requires:	%{libmozjs} = %{EVRD}

%description -n %{libmozjs_devel}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -q -n firefox-%{version}/js/src -a 10

pushd ../..
%config_update
%patch0001 -p1
%patch0002 -p1
%patch0003 -p1
%patch0008 -p1
%patch0009 -p1
%patch0010 -p1
%patch0011 -p1

%patch12 -p1
%patch13 -p1
%patch14 -p1

# Patch for big endian platforms only
%if 0%{?big_endian}
%patch26 -p1 -b .icu
%endif

# aarch64 -O2 fixes
%ifarch aarch64
%patch30 -p1
%patch31 -p1
%endif
%patch32 -p1
%patch33 -p1

# make sure we don't ever accidentally link against bundled security libs
rm -rf security/
popd

# Remove zlib directory (to be sure using system version)
rm -rf ../../modules/zlib

#rm -rf nsprpub
#cd config/external/
#for i in freetype2 icu nspr nss sqlite zlib; do
#	rm -rf $i
#	mkdir $i
#	touch $i/moz.build
#done
#cd ../..

TOP="$(pwd)"
cd autoconf-2.13
./configure --prefix=$TOP/ac213bin
%make_build
%make install

%build
%setup_compile_flags
# Need -fpermissive due to some macros using nullptr as bool false
export AUTOCONF="`pwd`"/ac213bin/bin/autoconf
export CFLAGS="%{optflags} -fuse-ld=bfd"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="$CFLAGS"
export CC=gcc
export CXX=g++
export LD=ld.bfd

%configure \
  --without-system-icu \
  --enable-posix-nspr-emulation \
  --with-system-zlib \
  --enable-tests \
  --disable-strip \
  --with-intl-api \
  --enable-readline \
  --enable-optimize="-O3" \
  --enable-shared-js \
  --disable-optimize \
  --enable-pie \
  --disable-jemalloc \

%if 0%{?big_endian}
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
pushd ../..
  ./mach python intl/icu_sources_data.py .
  ls -l config/external/icu/data
  rm -f config/external/icu/data/icudt*l.dat
popd
%endif


%make_build

%install
%make_install

# Fix permissions
chmod -x %{buildroot}%{_libdir}/pkgconfig/*.pc

# Remove unneeded files
rm %{buildroot}%{_bindir}/js%{major}-config
rm %{buildroot}%{_libdir}/libjs_static.ajs

# Rename library and create symlinks, following fix-soname.patch
mv %{buildroot}%{_libdir}/libmozjs-%{major}.so \
   %{buildroot}%{_libdir}/libmozjs-%{major}.so.0.0.0
ln -s libmozjs-%{major}.so.0.0.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so.0
ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so

%check
# Some tests will fail
tests/jstests.py -d -s --no-progress ../../js/src/js/src/shell/js || :

%files
%{_bindir}/js60

%files -n %{libmozjs}
%{_libdir}/libmozjs-60.so.%{majorlib}*

%files -n %{libmozjs_devel}
%{_libdir}/libmozjs-60.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mozjs-%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14809 |21mr|mozjs68-68.11.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pre_release %{nil}
%define pkgname mozjs
%define api 68
%define major 68
%define majorlib 0
%define libmozjs %mklibname %{pkgname} %{api} %{major}
%define libmozjs_devel %mklibname %{pkgname} %{api} -d

# (tpg) optimize a bit
%global optflags %{optflags} -O3

# Big endian platforms
%ifarch ppc ppc64 s390 s390x
%global big_endian 1
%endif

Summary:	JavaScript interpreter and libraries
Name:		mozjs68
Version:	68.11.0
Release:	3
Group:		Development/Other
License:	MPLv2.0 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+
URL:		https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/%{major}
Source0:        https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
Source10:	http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz

# Patches from Debian mozjs60, rebased for mozjs68:
Patch01:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/fix-soname.patch
Patch02:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/copy-headers.patch
Patch03:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/tests-increase-timeout.patch
Patch09:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/icu_sources_data.py-Decouple-from-Mozilla-build-system.patch
Patch10:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/icu_sources_data-Write-command-output-to-our-stderr.patch

# Build fixes - https://hg.mozilla.org/mozilla-central/rev/ca36a6c4f8a4a0ddaa033fdbe20836d87bbfb873
Patch12:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/emitter.patch
Patch13:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/emitter_test.patch

# Build fixes
Patch14:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/init_patch.patch
# TODO: Check with mozilla for cause of these fails and re-enable spidermonkey compile time checks if needed
Patch15:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/spidermonkey_checks_disable.patch

# armv7 fixes
Patch16:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/rust_armv7.patch
Patch17:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch

# Patches from Fedora firefox package:
Patch26:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/build-icu-big-endian.patch

# Support Python 3 in js tests
Patch30:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/jstests_python-3.patch

# aarch64 fixes for -O2
Patch40:	Save-x28-before-clobbering-it-in-the-regex-compiler.patch
Patch41:	Save-and-restore-non-volatile-x28-on-ARM64-for-generated-unboxed-object-constructor.patch

Patch50:	firefox-60.2.2-add-riscv64.patch
#Patch51:	mozjs-52.8.1-fix-crash-on-startup.patch
Patch52:	mozjs-68-compile.patch

#BuildRequires:  autoconf
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(python2)
BuildRequires:	readline-devel
BuildRequires:	zip
BuildRequires:	python
BuildRequires:	rust
BuildRequires:	cargo
BuildRequires:	clang
BuildRequires:	llvm-devel clang-devel

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n %{libmozjs}
Provides:	mozjs%{major} = %{EVRD}
Summary:	JavaScript engine library

%description -n %{libmozjs}
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n %{libmozjs_devel}
Summary:	Header files, libraries and development documentation for %{name}
Provides:	mozjs%{major}-devel = %{EVRD}
Requires:	%{libmozjs} = %{EVRD}

%description -n %{libmozjs_devel}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -q -n firefox-%{version}/js/src -a 10

pushd ../..
%config_update

%patch01 -p1 -b .01~
%patch02 -p1 -b .02~
%patch03 -p1 -b .03~
%patch09 -p1 -b .09~
%patch10 -p1 -b .10~

%patch12 -p1 -b .12~
%patch13 -p1 -b .13~
%patch14 -p1 -b .14~
%patch15 -p1 -b .15~

%ifarch %{arm}
# Correct armv7hl rust triple seems to be armv7-unknown-linux-gnueabihf and not armv7-unknown-linux-gnueabi
%patch16 -p1 -b .16~
# Disable WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS as it causes the compilation to fail
# https://bugzilla.mozilla.org/show_bug.cgi?id=1526653
%patch17 -p1 -b .17~
%endif

# Patch for big endian platforms only
%if 0%{?big_endian}
%patch26 -p1 -b .26~
%endif

# Execute tests with Python 3
%patch30 -p1 -b .30~

%patch50 -p1 -b .50~
#%patch51 -p1 -b .51~
%patch52 -p1 -b .52~

# make sure we don't ever accidentally link against bundled security libs
rm -rf security/
popd

# Remove zlib directory (to be sure using system version)
rm -rf ../../modules/zlib

#rm -rf nsprpub
#cd config/external/
#for i in freetype2 icu nspr nss sqlite zlib; do
#	rm -rf $i
#	mkdir $i
#	touch $i/moz.build
#done
#cd ../..

TOP="$(pwd)"
cd autoconf-2.13
./configure --prefix=$TOP/ac213bin
%make_build
%make_build install

%build
%setup_compile_flags

export AUTOCONF="`pwd`"/ac213bin/bin/autoconf
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="$CFLAGS"

%ifarch %{arm} %{armx}
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export LDFLAGS="$LDFLAGS -fPIC -fuse-ld=bfd"
%endif

%configure \
  --with-system-icu \
  --enable-posix-nspr-emulation \
  --with-system-zlib \
  --enable-tests \
  --disable-strip \
  --with-intl-api \
  --enable-readline \
  --enable-optimize="-O3" \
  --enable-shared-js \
  --disable-optimize \
  --enable-pie \
  --disable-jemalloc \
  --enable-unaligned-private-values

%if 0%{?big_endian}
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
pushd ../..
  ./mach python intl/icu_sources_data.py .
  ls -l config/external/icu/data
  rm -f config/external/icu/data/icudt*l.dat
popd
%endif


%make_build

%install
%make_install

# Fix permissions
chmod -x %{buildroot}%{_libdir}/pkgconfig/*.pc

# Remove unneeded files
rm %{buildroot}%{_bindir}/js%{major}-config
rm %{buildroot}%{_libdir}/libjs_static.ajs

# Rename library and create symlinks, following fix-soname.patch
mv %{buildroot}%{_libdir}/libmozjs-%{major}.so \
   %{buildroot}%{_libdir}/libmozjs-%{major}.so.0.0.0
ln -s libmozjs-%{major}.so.0.0.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so.0
ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so

%check
# Some tests will fail
tests/jstests.py -d -s --no-progress ../../js/src/js/src/shell/js || :

%files
%{_bindir}/js68

%files -n %{libmozjs}
%{_libdir}/libmozjs-68.so.%{majorlib}*

%files -n %{libmozjs_devel}
%{_libdir}/libmozjs-68.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mozjs-%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14810 |21mr|mozjs78-78.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pre_release %{nil}
%define pkgname mozjs
%define api 78
%define major 78
%define majorlib 0
%define libmozjs %mklibname %{pkgname} %{api} %{major}
%define libmozjs_devel %mklibname %{pkgname} %{api} -d

# (tpg) optimize a bit
%global optflags %{optflags} -O3

# Big endian platforms
%ifarch ppc ppc64 s390 s390x
%global big_endian 1
%endif

Summary:	JavaScript interpreter and libraries
Name:		mozjs78
Group:		Development/Other
Version:	78.9.0
Release:	3
License:	MPLv2.0 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+
URL:		https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/%{major}
Source0:        https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
Source10:	http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz

# Patches from Debian mozjs60, rebased for mozjs68:
Patch01:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/fix-soname.patch
Patch02:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/copy-headers.patch
Patch03:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/tests-increase-timeout.patch
Patch09:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/icu_sources_data.py-Decouple-from-Mozilla-build-system.patch
Patch10:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/icu_sources_data-Write-command-output-to-our-stderr.patch

# Build fixes - https://hg.mozilla.org/mozilla-central/rev/ca36a6c4f8a4a0ddaa033fdbe20836d87bbfb873
Patch12:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/emitter.patch

# Build fixes
Patch14:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/init_patch.patch
# TODO: Check with mozilla for cause of these fails and re-enable spidermonkey compile time checks if needed
Patch15:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/spidermonkey_checks_disable.patch

# armv7 fixes
Patch16:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/rust_armv7.patch
Patch17:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch

# Patches from Fedora firefox package:
Patch26:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/build-icu-big-endian.patch

# Support Python 3 in js tests
Patch30:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/jstests_python-3.patch

# aarch64 fixes for -O2
Patch40:	Save-x28-before-clobbering-it-in-the-regex-compiler.patch
Patch41:	Save-and-restore-non-volatile-x28-on-ARM64-for-generated-unboxed-object-constructor.patch

Patch50:	firefox-60.2.2-add-riscv64.patch
#Patch51:	mozjs-52.8.1-fix-crash-on-startup.patch
Patch52:	mozjs-68-compile.patch

#BuildRequires:  autoconf
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(python2)
BuildRequires:	readline-devel
BuildRequires:	zip
BuildRequires:	python
BuildRequires:	rust
BuildRequires:	cargo
BuildRequires:	llvm-devel clang-devel

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n %{libmozjs}
Provides:	mozjs%{major} = %{EVRD}
Summary:	JavaScript engine library

%description -n %{libmozjs}
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n %{libmozjs_devel}
Summary:	Header files, libraries and development documentation for %{name}
Provides:	mozjs%{major}-devel = %{EVRD}
Requires:	%{libmozjs} = %{EVRD}

%description -n %{libmozjs_devel}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -q -n firefox-%{version}/js/src -a 10

pushd ../..
%config_update

%patch01 -p1 -b .01~
%patch02 -p1 -b .02~
%patch03 -p1 -b .03~
%patch09 -p1 -b .09~
%patch10 -p1 -b .10~

%patch12 -p1 -b .12~
%patch14 -p1 -b .14~
%patch15 -p1 -b .15~

%ifarch %{arm}
# Correct armv7hl rust triple seems to be armv7-unknown-linux-gnueabihf and not armv7-unknown-linux-gnueabi
%patch16 -p1 -b .16~
# Disable WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS as it causes the compilation to fail
# https://bugzilla.mozilla.org/show_bug.cgi?id=1526653
%patch17 -p1 -b .17~
%endif

# Patch for big endian platforms only
%if 0%{?big_endian}
%patch26 -p1 -b .26~
%endif

# Execute tests with Python 3
%patch30 -p1 -b .30~

%patch50 -p1 -b .50~
#%patch51 -p1 -b .51~
%patch52 -p1 -b .52~
popd

# Remove zlib directory (to be sure using system version)
rm -rf ../../modules/zlib

#rm -rf nsprpub
#cd config/external/
#for i in freetype2 icu nspr nss sqlite zlib; do
#	rm -rf $i
#	mkdir $i
#	touch $i/moz.build
#done
#cd ../..

TOP="$(pwd)"
cd autoconf-2.13
./configure --prefix=$TOP/ac213bin
%make_build
%make_build install

%build
%set_build_flags

export AUTOCONF="$(pwd)"/ac213bin/bin/autoconf
export RUSTFLAGS="-C embed-bitcode"
export CARGO_PROFILE_RELEASE_LTO=true
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="$CFLAGS"

%ifarch %{arm} aarch64
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export LDFLAGS="$LDFLAGS -fPIC"
%endif

%configure \
  --with-system-icu \
  --with-system-zlib \
  --disable-tests \
  --disable-strip \
  --with-intl-api \
  --enable-readline \
  --enable-shared-js \
  --enable-optimize="%{optflags}" \
  --enable-pie \
  --disable-jemalloc

%if 0%{?big_endian}
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
pushd ../..
  ./mach python intl/icu_sources_data.py .
  ls -l config/external/icu/data
  rm -f config/external/icu/data/icudt*l.dat
popd
%endif


%make_build

%install
%make_install

# Fix permissions
chmod -x %{buildroot}%{_libdir}/pkgconfig/*.pc

# Remove unneeded files
rm %{buildroot}%{_bindir}/js%{major}-config
rm %{buildroot}%{_libdir}/libjs_static.ajs

# Rename library and create symlinks, following fix-soname.patch
mv %{buildroot}%{_libdir}/libmozjs-%{major}.so \
   %{buildroot}%{_libdir}/libmozjs-%{major}.so.0.0.0
ln -s libmozjs-%{major}.so.0.0.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so.0
ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so

%check
# Some tests will fail
tests/jstests.py -d -s --no-progress ../../js/src/js/src/shell/js || :

%files
%{_bindir}/js%{major}

%files -n %{libmozjs}
%{_libdir}/libmozjs-%{major}.so.%{majorlib}*

%files -n %{libmozjs_devel}
%{_libdir}/libmozjs-%{major}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mozjs-%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14811 |21mr|mozjs78-78.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pre_release %{nil}
%define pkgname mozjs
%define api 78
%define major 78
%define majorlib 0
%define libmozjs %mklibname %{pkgname} %{api} %{major}
%define libmozjs_devel %mklibname %{pkgname} %{api} -d

# (tpg) optimize a bit
%global optflags %{optflags} -O3

# Big endian platforms
%ifarch ppc ppc64 s390 s390x
%global big_endian 1
%endif

Summary:	JavaScript interpreter and libraries
Name:		mozjs78
Group:		Development/Other
Version:	78.9.0
Release:	5
License:	MPLv2.0 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+
URL:		https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey/Releases/%{major}
Source0:        https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
Source10:	http://ftp.gnu.org/gnu/autoconf/autoconf-2.13.tar.gz

# Patches from Debian mozjs60, rebased for mozjs68:
Patch01:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/fix-soname.patch
Patch02:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/copy-headers.patch
Patch03:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/tests-increase-timeout.patch
Patch09:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/icu_sources_data.py-Decouple-from-Mozilla-build-system.patch
Patch10:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/icu_sources_data-Write-command-output-to-our-stderr.patch

# Build fixes - https://hg.mozilla.org/mozilla-central/rev/ca36a6c4f8a4a0ddaa033fdbe20836d87bbfb873
Patch12:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/emitter.patch

# Build fixes
Patch14:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/init_patch.patch
# TODO: Check with mozilla for cause of these fails and re-enable spidermonkey compile time checks if needed
Patch15:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/spidermonkey_checks_disable.patch

# armv7 fixes
Patch16:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/rust_armv7.patch
Patch17:	https://src.fedoraproject.org/rpms/mozjs78/raw/master/f/armv7_disable_WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS.patch

# Patches from Fedora firefox package:
Patch26:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/build-icu-big-endian.patch

# Support Python 3 in js tests
Patch30:	https://src.fedoraproject.org/rpms/mozjs68/raw/master/f/jstests_python-3.patch

# aarch64 fixes for -O2
Patch40:	Save-x28-before-clobbering-it-in-the-regex-compiler.patch
Patch41:	Save-and-restore-non-volatile-x28-on-ARM64-for-generated-unboxed-object-constructor.patch

Patch50:	firefox-60.2.2-add-riscv64.patch
#Patch51:	mozjs-52.8.1-fix-crash-on-startup.patch
Patch52:	mozjs-68-compile.patch

#BuildRequires:  autoconf
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(python2)
BuildRequires:	readline-devel
BuildRequires:	zip
BuildRequires:	python
BuildRequires:	rust
BuildRequires:	cargo
BuildRequires:	llvm-devel clang-devel

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n %{libmozjs}
Provides:	mozjs%{major} = %{EVRD}
Summary:	JavaScript engine library

%description -n %{libmozjs}
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%package -n %{libmozjs_devel}
Summary:	Header files, libraries and development documentation for %{name}
Provides:	mozjs%{major}-devel = %{EVRD}
Requires:	%{libmozjs} = %{EVRD}

%description -n %{libmozjs_devel}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%prep
%setup -q -n firefox-%{version}/js/src -a 10

pushd ../..
%config_update

%patch01 -p1 -b .01~
%patch02 -p1 -b .02~
%patch03 -p1 -b .03~
%patch09 -p1 -b .09~
%patch10 -p1 -b .10~

%patch12 -p1 -b .12~
%patch14 -p1 -b .14~
%patch15 -p1 -b .15~

%ifarch %{arm}
# Correct armv7hl rust triple seems to be armv7-unknown-linux-gnueabihf and not armv7-unknown-linux-gnueabi
%patch16 -p1 -b .16~
# Disable WASM_EMULATE_ARM_UNALIGNED_FP_ACCESS as it causes the compilation to fail
# https://bugzilla.mozilla.org/show_bug.cgi?id=1526653
%patch17 -p1 -b .17~
%endif

# Patch for big endian platforms only
%if 0%{?big_endian}
%patch26 -p1 -b .26~
%endif

# Execute tests with Python 3
%patch30 -p1 -b .30~

%patch50 -p1 -b .50~
#%patch51 -p1 -b .51~
%patch52 -p1 -b .52~
popd

# Remove zlib directory (to be sure using system version)
rm -rf ../../modules/zlib

#rm -rf nsprpub
#cd config/external/
#for i in freetype2 icu nspr nss sqlite zlib; do
#	rm -rf $i
#	mkdir $i
#	touch $i/moz.build
#done
#cd ../..

TOP="$(pwd)"
cd autoconf-2.13
./configure --prefix=$TOP/ac213bin
%make_build
%make_build install

%build
%set_build_flags

export AUTOCONF="$(pwd)"/ac213bin/bin/autoconf
export RUSTFLAGS="-C embed-bitcode"
export CARGO_PROFILE_RELEASE_LTO=true
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="$CFLAGS"

%ifarch %{arm} aarch64
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export LDFLAGS="$LDFLAGS -fPIC"
%endif

%configure \
  --with-system-icu \
  --with-system-zlib \
  --disable-tests \
  --disable-strip \
  --with-intl-api \
  --enable-readline \
  --enable-shared-js \
  --enable-optimize="%{optflags}" \
  --enable-pie \
  --disable-jemalloc

%if 0%{?big_endian}
echo "Generate big endian version of config/external/icu/data/icud58l.dat"
pushd ../..
  ./mach python intl/icu_sources_data.py .
  ls -l config/external/icu/data
  rm -f config/external/icu/data/icudt*l.dat
popd
%endif


%make_build

%install
%make_install

# Fix permissions
chmod -x %{buildroot}%{_libdir}/pkgconfig/*.pc

# Remove unneeded files
rm %{buildroot}%{_bindir}/js%{major}-config
rm %{buildroot}%{_libdir}/libjs_static.ajs

# Rename library and create symlinks, following fix-soname.patch
mv %{buildroot}%{_libdir}/libmozjs-%{major}.so \
   %{buildroot}%{_libdir}/libmozjs-%{major}.so.0.0.0
ln -s libmozjs-%{major}.so.0.0.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so.0
ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so

%check
# Some tests will fail
tests/jstests.py -d -s --no-progress ../../js/src/js/src/shell/js || :

%files
%{_bindir}/js%{major}

%files -n %{libmozjs}
%{_libdir}/libmozjs-%{major}.so.%{majorlib}*

%files -n %{libmozjs_devel}
%{_libdir}/libmozjs-%{major}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/mozjs-%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14812 |21mr|mozjs91-91.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname mozjs
%define api 91
%define major 91
%define libname %mklibname mozjs %{api} %{major}
%define devname %mklibname mozjs %{api} -d

%global optflags %{optflags} -O3

Summary:	JavaScript interpreter and libraries
Name:		mozjs91
Group:		Development/Other
Version:	91.9.0
Release:	2
License:	MPLv2.0 and BSD and GPLv2+ and GPLv3+ and LGPLv2.1 and LGPLv2.1+
Url:		https://developer.mozilla.org/en-US/docs/Mozilla/Projects/SpiderMonkey
Source0:	https://ftp.mozilla.org/pub/firefox/releases/%{version}esr/source/firefox-%{version}esr.source.tar.xz
# From Fedora
# Patches from mozjs68, rebased for mozjs78:
Patch0:		fix-soname.patch
Patch1:		copy-headers.patch
Patch2:		icu_sources_data.py-Decouple-from-Mozilla-build-system.patch
Patch3:		icu_sources_data-Write-command-output-to-our-stderr.patch
# Build fixes - https://hg.mozilla.org/mozilla-central/rev/ca36a6c4f8a4a0ddaa033fdbe20836d87bbfb873
Patch4:		emitter.patch
# Build fixes
Patch5:		init_patch.patch
Patch6:		remove-sloppy-m4-detection-from-bundled-autoconf.patch
Patch7:		spidermonkey_checks_disable.patch
Patch8:		firefox-91.9.0-x86-fix.patch
BuildRequires:	cargo
BuildRequires:	llvm
BuildRequires:	rust
BuildRequires:	zip
BuildRequires:	clang-devel
BuildRequires:	readline-devel
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(six)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)

%description
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%files
%doc README.html
%license LICENSE
%{_bindir}/js%{major}

#----------------------------------------------------------------------------

%package -n %{libname}
Provides:	%{name} = %{EVRD}
Summary:	JavaScript engine library

%description -n %{libname}
JavaScript is the Netscape-developed object scripting language used in millions
of web pages and server applications worldwide. Netscape's JavaScript is a
super set of the ECMA-262 Edition 3 (ECMAScript) standard scripting language,
with only mild differences from the published standard.

%files -n %{libname}
%doc README.html
%license LICENSE
%{_libdir}/libmozjs-%{major}.so.0*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for %{name}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using %{name},
you will need to install %{name}-devel.

%files -n %{devname}
%{_includedir}/mozjs-%{major}
%{_libdir}/libmozjs-%{major}.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n firefox-%{version}/js/src

pushd ../..
%apply_patches
%ifnarch %{ix86}
%patch8 -p1 -R
%endif
cp LICENSE js/src/
popd

%build
export CC=gcc
export CXX=g++
export RUSTFLAGS="-C embed-bitcode"
export CARGO_PROFILE_RELEASE_LTO=true
export CFLAGS="%{optflags}"
export CXXFLAGS="$CFLAGS"
export LINKFLAGS="%{ldflags}"
export PYTHON="%{python3}"

%ifarch %{arm} aarch64
export CFLAGS="$CFLAGS -fPIC"
export CXXFLAGS="$CXXFLAGS -fPIC"
export LINKFLAGS="$LINKFLAGS -fPIC"
%endif

# Use bundled autoconf
export M4=m4
export AWK=awk
export AC_MACRODIR=/builddir/build/BUILD/firefox-%{version}/build/autoconf/
sh ../../build/autoconf/autoconf.sh --localdir=/builddir/build/BUILD/firefox-%{version}/js/src configure.in > configure
chmod +x configure
%configure \
	--disable-debug		\
	--disable-jemalloc	\
	--disable-strip		\
	--disable-tests		\
	--enable-optimize	\
	--enable-pie		\
	--enable-readline	\
	--enable-shared-js	\
	--with-intl-api		\
	--with-system-icu	\
	--with-system-zlib
%make

%install
%makeinstall_std

chmod -x %{buildroot}%{_libdir}/pkgconfig/*.pc

%ifarch %{ix86}
mv %{buildroot}%{_includedir}/mozjs-%{major}/js-config{,-32}.h
%else
mv %{buildroot}%{_includedir}/mozjs-%{major}/js-config{,-64}.h
%endif
cat >%{buildroot}%{_includedir}/mozjs-%{major}/js-config.h <<EOF
#ifndef JS_CONFIG_H_MULTILIB
#define JS_CONFIG_H_MULTILIB

#include <bits/wordsize.h>

#if __WORDSIZE == 32
# include "js-config-32.h"
#elif __WORDSIZE == 64
# include "js-config-64.h"
#else
# error "unexpected value for __WORDSIZE macro"
#endif

#endif
EOF

rm %{buildroot}%{_bindir}/js%{major}-config
rm %{buildroot}%{_libdir}/libjs_static.ajs

# With fix-soname.patch
mv %{buildroot}%{_libdir}/libmozjs-%{major}.so{,.0.0.0}
ln -s libmozjs-%{major}.so.0.0.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so.0
ln -s libmozjs-%{major}.so.0 %{buildroot}%{_libdir}/libmozjs-%{major}.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14813 |21mr|mpage-2.5.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for printing multiple pages of text on each printed page
Name:		mpage
Version:	2.5.7
Release:	2
License:	BSD
Group:		System/Printing
Url:		http://www.mesa.nl/pub/mpage
Source0:	http://www.mesa.nl/pub/mpage/%{name}-%{version}.tgz
Patch0:		mpage-2.5.4-config.patch
# Japanese patch.bz2
Patch10:	mpage-2.5.3-j.patch
Patch20:	mpage-mfix.patch
Patch21:	mpage-psprint.patch
Patch22:	mpage-2.5.3-japanese-fix.patch
Patch23:	mpage-2.5.6-LDFLAGS.diff

%description
The mpage utility takes plain text files or PostScript(TM) documents
as input, reduces the size of the text, and prints the files on a
PostScript printer with several pages on each sheet of paper. Mpage
is very useful for viewing large printouts without using up tons of
paper. Mpage supports many different layout options for the printed
pages.

Mpage should be installed if you need a useful utility for viewing
long text documents without wasting paper.

%files
%doc CHANGES Copyright README NEWS TODO
%{_bindir}/mpage
%{_mandir}/man1/mpage.1*
%dir %{_datadir}/mpage
%{_datadir}/mpage/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%make RPM_OPT_FLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14814 |21mr|mpeg2dec-0.5.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
# TODO: split library package
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s
%define oname libmpeg2

Summary:	MPEG-2 Decoder
Name:		mpeg2dec
Version:	0.5.1
Release:	19
License:	GPLv2+
Group:		Video
Url:		http://libmpeg2.sourceforge.net/
Source0:	http://libmpeg2.sourceforge.net/files/%{oname}-%{version}.tar.gz
Patch0:		libmpeg2-0.5.1-gcc4.6.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(xv)

%description
mpeg2dec is an mpeg-1 and mpeg-2 video decoder. It is purposely kept
simple : it does not include features like reading files from a DVD,
CSS, fullscreen output, navigation, etc... The main purpose of
mpeg2dec is to have a simple test bed for libmpeg2. mpeg2dec also
includes a demultiplexer for mpeg-1 and mpeg-2 program streams, and
output routines for a variety of different interfaces.

%files
%doc AUTHORS ChangeLog NEWS README TODO
%{_mandir}/man1/*
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	MPEG-2 Decoder

%description -n %{libname}
mpeg2dec is an mpeg-1 and mpeg-2 video decoder. It is purposely kept
simple : it does not include features like reading files from a DVD,
CSS, fullscreen output, navigation, etc... The main purpose of
mpeg2dec is to have a simple test bed for libmpeg2. mpeg2dec also
includes a demultiplexer for mpeg-1 and mpeg-2 program streams, and
output routines for a variety of different interfaces.

This package contains the shared libraries of mpeg2dec.

%files -n %{libname}
%{_libdir}/libmpeg2.so.%{major}*
%{_libdir}/libmpeg2convert.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MPEG-2 Decoder development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
mpeg2dec is an mpeg-1 and mpeg-2 video decoder. It is purposely kept
simple : it does not include features like reading files from a DVD,
CSS, fullscreen output, navigation, etc... The main purpose of
mpeg2dec is to have a simple test bed for libmpeg2. mpeg2dec also
includes a demultiplexer for mpeg-1 and mpeg-2 program streams, and
output routines for a variety of different interfaces.
MPEG-2 Decoder development files

%files -n %{devname}
%{_includedir}/mpeg2dec
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/lib*.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	MPEG-2 Decoder static libraries
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
mpeg2dec is an mpeg-1 and mpeg-2 video decoder. It is purposely kept
simple : it does not include features like reading files from a DVD,
CSS, fullscreen output, navigation, etc... The main purpose of
mpeg2dec is to have a simple test bed for libmpeg2. mpeg2dec also
includes a demultiplexer for mpeg-1 and mpeg-2 program streams, and
output routines for a variety of different interfaces.

MPEG-2 Decoder static libraries.

%files -n %{sdevname}
%{_libdir}/lib*.a

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%configure \
	--enable-static \
	--enable-shared
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14815 |21mr|mpfr-4.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major		6
%define lib_name		%mklibname %{name} %{lib_major}
%define lib_name_devel		%mklibname %{name} -d
%define lib_name_static_devel	%mklibname %{name} -d -s

Summary:	Multiple-precision floating-point computations with correct rounding
Name:		mpfr
Version:	4.1.0
Release:	2
Epoch:		0
License:	LGPLv3+
Group:		System/Libraries
URL:		http://www.mpfr.org/
Source0:	http://www.mpfr.org/mpfr-current/mpfr-%{version}.tar.xz
# Upstream post-release patches.  This currently contains:
# - decimal128-conv.patch
# - random_deviate.patch
# - set_z_2exp-overflow.patch
# - prototypes.patch
# - digamma-hugemem.patch
# - digamma-interm-zero.patch
# - jn-interm-zero.patch
# - digamma-interm-zero2.patch
# - jyn-asympt-interm-zero.patch
# - macros.patch
# - tset_sij.patch
# - get_str_ndigits.patch
# - vasprintf-prec-zero.patch
Patch0: https://www.mpfr.org/%{name}-%{version}/allpatches
Patch1: mpfr-e2k.patch
BuildRequires:	gmp-devel
BuildRequires:	autoconf-archive
BuildRequires:	texinfo

%description
The MPFR library is a C library for multiple-precision
floating-point computations with correct rounding.

%package -n %{lib_name}
Summary:	Multiple-precision floating-point computations with correct rounding
Group:		System/Libraries
Provides:   mpfr-lib = %{EVRD}

%description -n %{lib_name}
The MPFR library is a C library for multiple-precision
floating-point computations with correct rounding.

%package -n %{lib_name_devel}
Summary:	Development headers and libraries for MPFR
Group:		Development/C
Requires:	%{lib_name} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{lib_name_devel}
The development headers and libraries for the MPFR library.

%package -n %{lib_name_static_devel}
Summary:	Static libraries for MPFR
Group:		Development/C
Requires:	%{lib_name_devel} = %{EVRD}
Provides:	lib%{name}-static-devel = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{lib_name_static_devel}
Static libraries for the MPFR library.

%prep
%autosetup -p1

%build
%configure \
	--enable-shared \
	--enable-static \
	--enable-thread-safe

%make_build

%install
%make_install

rm -rf installed-docs
mv %{buildroot}%{_docdir}/%{name} installed-docs

%check
%ifnarch %{ix86}
make check
%endif

%files -n %{lib_name}
%{_libdir}/libmpfr.so.%{lib_major}*

%files -n %{lib_name_devel}
%doc installed-docs/*
%{_includedir}/mpfr.h
%{_includedir}/mpf2mpfr.h
%{_infodir}/mpfr.info*
%{_libdir}/libmpfr.so
%{_libdir}/pkgconfig/mpfr.pc

%files -n %{lib_name_static_devel}
%{_libdir}/libmpfr.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14816 |21mr|mpg123-1.30.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname mpg123_ %{major}
%define	devname %mklibname mpg123 -d

Summary:	MPEG audio player
Name:		mpg123
Version:	1.30.2
Release:	2
License:	LGPLv2+
Group:		Sound
Url:			https://www.mpg123.de
Source0:	https://sourceforge.net/projects/mpg123/files/mpg123/%{version}/%{name}-%{version}.tar.bz2
Source1:	mp3license.tar.bz2
BuildRequires:	libtool-devel
%ifarch %{armx} %{ix86} %{x86_64}
BuildRequires:	nas-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(esound)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(zlib)
# We default to pulseaudio as output, so suggests the plugin package
Recommends:	%{name}-pulse

%description
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files
%license COPYING mp3license
%doc doc/* AUTHORS ChangeLog NEWS README
%{_bindir}/*
%{_mandir}/man1/*
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/output_alsa*
%{_libdir}/%{name}/output_dummy*
%{_libdir}/%{name}/output_oss*
%{_libdir}/%{name}/output_sndio*

#----------------------------------------------------------------------------

%package esd
Summary:	Esound audio output plugin for mpg123
Group:		Sound
Requires:	%{name} = %{EVRD}

%description esd
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files esd
%license COPYING mp3license
%{_libdir}/%{name}/output_esd*

#----------------------------------------------------------------------------

%package jack
Summary:	Jack audio output plugin for mpg123
Group:		Sound
Requires:	%{name} = %{EVRD}

%description jack
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files jack
%license COPYING mp3license
%{_libdir}/%{name}/output_jack*

#----------------------------------------------------------------------------

%ifarch %{armx} %{ix86} %{x86_64}
%package nas
Summary:	NAS audio output plugin for mpg123
Group:		Sound
Requires:	%{name} = %{EVRD}

%description nas
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files nas
%license COPYING mp3license
%{_libdir}/%{name}/output_nas*
%endif

#----------------------------------------------------------------------------

%package openal
Summary:	OpenAL audio output plugin for mpg123
Group:		Sound
Requires:	%{name} = %{EVRD}

%description openal
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files openal
%license COPYING mp3license
%{_libdir}/%{name}/output_openal*

#----------------------------------------------------------------------------

%package portaudio
Summary:	Portaudio output plugin for mpg123
Group:		Sound
Requires:	%{name} = %{EVRD}

%description portaudio
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files portaudio
%license COPYING mp3license
%{_libdir}/%{name}/output_portaudio*

#----------------------------------------------------------------------------

%package pulse
Summary:	Pulse audio output plugin for mpg123
Group:		Sound
Requires:	%{name} = %{EVRD}

%description pulse
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files pulse
%license COPYING mp3license
%{_libdir}/%{name}/output_pulse*

#----------------------------------------------------------------------------

%package sdl
Summary:	SDL audio output plugin for mpg123
Group:		Sound
Requires:	%{name} = %{EVRD}

%description sdl
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files sdl
%license COPYING mp3license
%{_libdir}/%{name}/output_sdl*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	MPEG audio decoding library
Group:		System/Libraries

%description -n %{libname}
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files -n %{libname}
%license COPYING mp3license
%{_libdir}/libmpg123.so.%{major}*
%{_libdir}/libout123.so.%{major}*
%{_libdir}/libsyn123.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	MPEG audio decoding library - development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Mpg123 is a fast, free and portable MPEG audio player for Unix.
It supports MPEG 1.0/2.0 layers 1, 2 and 3 ("mp3" files). For full CD quality
playback (44 kHz, 16 bit, stereo) a fast CPU is required. Mono and/or reduced
quality playback (22 kHz or 11 kHz) is possible on slow CPUs (like Intel 486).
For information on the MP3 License, please visit: http://www.mpeg.org

%files -n %{devname}
%license COPYING mp3license
%{_libdir}/libmpg123.so
%{_libdir}/libout123.so
%{_libdir}/libsyn123.so
%{_includedir}/mpg123.h
%{_includedir}/fmt123.h
%{_includedir}/out123.h
%{_includedir}/syn123.h
%{_libdir}/pkgconfig/libmpg123.pc
%{_libdir}/pkgconfig/libout123.pc
%{_libdir}/pkgconfig/libsyn123.pc

#----------------------------------------------------------------------------

%prep
%setup -q -a 1

rm -f doc/README.WIN32
rm -f configure
libtoolize --force --copy; aclocal; autoheader; automake --add-missing --copy; autoconf


%build
#gw this must be disabled for configure, else it will bail out
%define Werror_cflags %{nil}
%configure \
	--with-default-audio="pulse,alsa" \
	--enable-ipv6=yes \
	--enable-network=yes

%make CFLAGS="%{optflags} -Wformat -Werror=format-security"


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14817 |21mr|mplayer-1.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{ix86}
%define _disable_ld_no_undefined 1
%define _disable_lto 1
%endif

%define oname	MPlayer

%ifnarch %arm %mips aarch64 %{e2k}
%bcond_without	cpudetection
%endif

Summary:	Movie player for linux
Name:		mplayer
Version:	1.4
Release:	4
License:	GPLv2
Group:		Video
Url:		http://www.mplayerhq.hu
Source0:	ftp://ftp1.mplayerhq.hu/MPlayer/releases/%{oname}-%{version}.tar.xz
Source1:	https://www.mplayerhq.hu/MPlayer/skins/Blue-1.11.tar.bz2
Patch0:		MPlayer-1.5-config.patch
Patch1:		mplayer-1.3.0-compile.patch
# fixes for crashes found while fixing CVE-2008-1558
Patch2:		mplayer-rtsp-extra-fixes.patch
Patch3:		mplayer-format-string-literal.patch
Patch4:		MPlayer-1.5-fix-dvd-crash.patch
Patch50:	mplayer-e2k-configure.patch
# From Fedora
Patch60:	mplayer-ffmpeg.patch
BuildRequires:	docbook-dtd412-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	ffmpeg
BuildRequires:	xsltproc
BuildRequires:	yasm
BuildRequires:	a52dec-devel
BuildRequires:	aalib-devel
BuildRequires:	bzip2-devel
BuildRequires:	cdda-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	giflib-devel
BuildRequires:	gsm-devel
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	ladspa-devel
BuildRequires:	lame-devel
BuildRequires:	libfaac-devel
BuildRequires:	libfaad2-devel
BuildRequires:	libmpcdec-devel
BuildRequires:	live-devel
BuildRequires:	nas-devel
BuildRequires:	xvid-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(caca)
BuildRequires:	pkgconfig(directfb)
BuildRequires:	pkgconfig(dvdnav)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(enca)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libbs2b)
BuildRequires:	pkgconfig(libdts)
BuildRequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libmng)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(librtmp)
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(opencore-amrnb)
BuildRequires:	pkgconfig(opencore-amrwb)
BuildRequires:	pkgconfig(schroedinger-1.0)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(twolame)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(x264)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xvmc)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)

%description
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!). The another big
feature of mplayer is the wide range of supported output drivers. It
works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, but you can use
SDL (and this way all drivers of SDL), VESA (on every VESA compatible
card, even without X!), and some lowlevel card-specific drivers (for
Matrox, 3Dfx and Radeon) too! Most of them supports software or hardware
scaling, so you can enjoy movies in fullscreen. MPlayer supports
displaying through some hardware MPEG decoder boards, such as the DVB
and DXR3/Hollywood+! And what about the nice big antialiased shaded
subtitles (9 supported types!!!) with european/ISO 8859-1,2 (hungarian,
english, czech, etc), cyrillic, korean fonts, and OSD?

Note: If you want to play Real content, you need to have the content
of RealPlayer's Codecs directory in %{_libdir}/codecs/

%files -f mplayer.lang
%doc AUTHORS Changelog README
%license Copyright
%{_bindir}/midentify
%{_bindir}/mplayer
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/menu.conf
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/mplayer.conf
%dir %{_datadir}/%{name}
%dir %{_sysconfdir}/%{name}
%{_mandir}/man1/mplayer.1*

#------------------------------------------------------------------

%package doc
Summary:	%{oname} documentation
Group:		Books/Computer books
BuildArch:	noarch

%description doc
This package contains documentation for %{oname}.

%files doc
%doc DOCS/default.css DOCS/xml DOCS/tech
%doc README.DOCS

#------------------------------------------------------------------

%package gui
Summary:	GUI for %{name}
Group:		Video
Requires:	%{name} = %{version}

%description gui
This package contains a GUI for %{name}.

%files gui
%{_bindir}/gmplayer
%{_datadir}/applications/mplayer.desktop
%{_datadir}/%{name}/skins
%{_iconsdir}/mplayer.png
%{_liconsdir}/mplayer.png
%{_miconsdir}/mplayer.png

%pre gui
if [ -d %{_datadir}/%{name}/skins/default ]
	then rm -rf %{_datadir}/%{name}/skins/default
fi

#------------------------------------------------------------------

%package -n mencoder
Summary:	MPlayer's movie encoder
Group:		Video
Requires:	%{name} = %{EVRD}

%description -n mencoder
MEncoder a movie encoder and is a part of the MPlayer package.
This restricted build has additional support for AAC decoding with libfaad
and MP3 encoding with lame, both are covered by software patents. It
also includes support for reading DVDs encrypted with CSS which might
be illegal in some countries.

%files -n mencoder -f mencoder.lang
%{_bindir}/mencoder
%{_bindir}/divx2svcd
%{_bindir}/mencvcd
%{_bindir}/wma2ogg.pl
%{_mandir}/man1/mencoder.1*

#------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version} -a1
%autopatch -p1
#gw fix permissions
chmod 644 AUTHORS Changelog README Copyright
rm -f Blue/README
# Sometimes (1.1.1) mplayer guys forget to update the VERSION file...
# Let's fix it here, but let's not abuse this ;)
echo %{version} >VERSION

perl -pi -e 's^r\$svn_revision^%{release}^' version.sh

mv DOCS/README README.DOCS

%build
# Clang 10 crasing on i686. Crash log in commit descriptions: 
# https://github.com/OpenMandrivaAssociation/mplayer/commit/60ae23d044c8c83773abeeafdec802a040064880
%ifarch %{ix86} %{e2k}
export CC=gcc
export CXX=g++
%endif

export CFLAGS="$CFLAGS %{optflags}"
%ifarch ppc
export CFLAGS="$CFLAGS -mcpu=7450 -maltivec"
%endif
export CPPFLAGS="-I%{_includedir}/directfb"
export LDFLAGS="%{?ldflags}"
if ! ./configure \
	--codecsdir=%{_libdir}/codecs	\
	--confdir=%{_sysconfdir}/%{name}	\
	--datadir=%{_datadir}/%{name}	\
	--disable-arts		\
	--disable-ffmpeg_a	\
	--disable-ggi		\
	--disable-openal	\
	--disable-sighandler	\
	--disable-svga		\
	--disable-vesa		\
	--disable-zr		\
%ifarch %{ix86}
	--enable-3dnow		\
%endif
	--enable-directfb	\
	--enable-dvdnav		\
	--enable-dvdread	\
%ifarch %{ix86}
	--enable-fastmemcpy	\
%endif
	--enable-freetype	\
	--enable-gl		\
	--enable-gui		\
	--enable-joystick	\
	--enable-lirc		\
	--enable-mencoder	\
	--enable-menu		\
%ifarch %{ix86}
	--enable-mmx		\
%endif
	--enable-musepack	\
	--enable-nas		\
	--enable-pulse		\
	--enable-radio		\
	--enable-radio-capture	\
%if %{with cpudetection}
	--enable-runtime-cpudetection	\
%endif
%ifarch %{ix86}
	--enable-sse		\
	--enable-sse2		\
%endif
	--enable-theora		\
	--enable-tv		\
	--enable-unrarexec	\
	--enable-xvmc		\
	--language=all		\
	--libdir=%{_libdir}	\
	--prefix=%{_prefix}	\
	; then
cat config.log
exit 1
fi

# Keep this line before empty end %%configure (ppc conditionnal pb)
%make_build -j1
#gw make sure we have our version string included:
fgrep %{version} version.h

%install
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m755 mplayer -D %{buildroot}%{_bindir}/mplayer
for lang in de fr hu pl es it zh_CN en; do
	install -m644 DOCS/man/$lang/mplayer.1 -D %{buildroot}%{_mandir}/$([ "$lang" != "en" ] && echo $lang)/man1/mplayer.1
done

install -m755 mencoder -D %{buildroot}%{_bindir}/mencoder

for lang in de fr hu pl es it zh_CN en; do
	ln -s mplayer.1 %{buildroot}%{_mandir}/$([ "$lang" != "en" ] && echo $lang)/man1/mencoder.1
done

install -m 755 TOOLS/mencvcd.sh %{buildroot}%{_bindir}/mencvcd
install -m 755 TOOLS/divx2svcd.sh %{buildroot}%{_bindir}/divx2svcd
install -m 755 TOOLS/wma2ogg.pl %{buildroot}%{_bindir}/wma2ogg.pl
install -m 755 TOOLS/midentify.sh %{buildroot}%{_bindir}/midentify

install -m 644 etc/example.conf %{buildroot}%{_sysconfdir}/%{name}/mplayer.conf
install -m 644 etc/menu.conf %{buildroot}%{_sysconfdir}/%{name}

# default Skin
install -d -m 755 %{buildroot}%{_datadir}/%{name}/skins/
cp -r Blue %{buildroot}%{_datadir}/%{name}/skins/
ln -s Blue %{buildroot}%{_datadir}/%{name}/skins/default
# gmplayer equals mplayer -gui
ln -s mplayer %{buildroot}%{_bindir}/gmplayer
# icons
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
convert -transparent white Blue/icons/icon48x48.png %{buildroot}%{_liconsdir}/mplayer.png 
convert -transparent white Blue/icons/icon32x32.png %{buildroot}%{_iconsdir}/mplayer.png 
convert -transparent white -scale 16x16 Blue/icons/icon48x48.png %{buildroot}%{_miconsdir}/mplayer.png
install -D -m 644 etc/mplayer.desktop %{buildroot}%{_datadir}/applications/mplayer.desktop
perl -pi -e 's@mplayer$@mplayer@g' %{buildroot}%{_datadir}/applications/mplayer.desktop

%find_lang mencoder --with-man
%find_lang mplayer --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14818 |21mr|mplayer-1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{ix86}
%define _disable_ld_no_undefined 1
%define _disable_lto 1
%endif

%define oname	MPlayer
%define prerel	%{nil}
%define svn	%{nil}
%if "%svn" != ""
%define fversion %{svn}
%else
%define fversion %{version}
%endif
%if "%{prerel}" != ""
%if "%{svn}" != ""
%define rel	0.%{prerel}.0.%{svn}.1
%else 
%define rel 0.%{prerel}.1
%endif
%else
%if "%{svn}" != ""
%define rel 0.%{svn}.1
%else
%define rel 3
%endif
%endif

%define build_debug	0
%define build_mencoder	1
%define build_gui	1

%define kernel_version	%(/bin/bash %{SOURCE5})
%define kver 		%(/bin/bash %{SOURCE5} | sed -e 's/-/./')
%define kvername	%(/bin/bash %{SOURCE5} | sed -e 's/-/./' | sed -e 's/mdk//')

%define build_yasm	1
%define build_live	1
# vbe disable in x11-server
%define build_vesa	0
%define build_theora	1
%define build_ggi	0
%define build_lirc	1
%define	build_xmms	0
%define build_amr	0
%define	build_arts	0
%define build_aa	1
%define build_cdda	1
%define build_compiz	0
%define build_dirac	0
%define build_dv	1
%define build_sdl	1
%define build_lzo	1
%define build_smb	1
%define build_mga	1
%define build_fbdev	1
%define build_dvb	1
%define build_fribidi	1
%define build_enca	1
%define build_alsa	1
%define build_jack	1
%define build_openal	0
%define build_pulse	1
%define build_schroedinger	1
%define build_directfb	1
%define build_v4l2	1
%define build_xvmc	1
%define build_vdpau	1
%define build_libass	1
%define build_vpx	1
%define build_rtmp	1

%define build_smb	0

%define build_amr	1
%define build_twolame	1
%define build_lame	1
%define build_faac	1
%define build_faad	1
%define build_x264	1
%define build_xvid	1
%define build_dts	1

%{?_with_amr: %{expand: %%global build_amr 1}}
%{?_without_amr: %{expand: %%global build_amr 0}}
%{?_with_live: %{expand: %%global build_live 1}}
%{?_without_live: %{expand: %%global build_live 0}}
%{?_with_yasm: %{expand: %%global build_yasm 1}}
%{?_without_yasm: %{expand: %%global build_yasm 0}}
%{?_with_vesa: %{expand: %%global build_vesa 1}}
%{?_without_vesa: %{expand: %%global build_vesa 0}}
%{?_with_debug: %{expand: %%global build_debug 1}}
%{?_without_debug: %{expand: %%global build_debug 0}}
%{?_with_mencoder: %{expand: %%global build_mencoder 1}}
%{?_without_mencoder: %{expand: %%global build_mencoder 0}}
%{?_with_gui: %{expand: %%global build_gui 1}}
%{?_without_gui: %{expand: %%global build_gui 0}}
%{?_with_theora: %{expand: %%global build_theora 1}}
%{?_without_theora: %{expand: %%global build_theora 0}}
%{?_with_smb: %{expand: %%global build_smb 1}}
%{?_without_smb: %{expand: %%global build_smb 0}}
%{?_with_ggi: %{expand: %%global build_ggi 1}}
%{?_without_ggi: %{expand: %%global build_ggi 0}}
%{?_with_lirc: %{expand: %%global build_lirc 1}}
%{?_without_lirc: %{expand: %%global build_lirc 0}}
%{?_with_xmms: %{expand: %%global build_xmms 1}}
%{?_without_xmms: %{expand: %%global build_xmms 0}}
%{?_with_arts: %{expand: %%global build_arts 1}}
%{?_without_arts: %{expand: %%global build_arts 0}}
%{?_with_aa: %{expand: %%global build_aa 1}}
%{?_without_aa: %{expand: %%global build_aa 0}}
%{?_with_cdda: %{expand: %%global build_cdda 1}}
%{?_without_cdda: %{expand: %%global build_cdda 0}}
%{?_with_dirac: %{expand: %%global build_dirac 1}}
%{?_without_dirac: %{expand: %%global build_dirac 0}}
%{?_with_dv: %{expand: %%global build_dv 1}}
%{?_without_dv: %{expand: %%global build_dv 0}}
%{?_with_sdl: %{expand: %%global build_sdl 1}}
%{?_without_sdl: %{expand: %%global build_sdl 0}}
%{?_with_lzo: %{expand: %%global build_lzo 1}}
%{?_without_lzo: %{expand: %%global build_lzo 0}}
%{?_with_mga: %{expand: %%global build_mga 1}}
%{?_without_mga: %{expand: %%global build_mga 0}}
%{?_with_fribidi: %{expand: %%global build_fribidi 1}}
%{?_without_fribidi: %{expand: %%global build_fribidi 0}}
%{?_with_enca: %{expand: %%global build_enca 1}}
%{?_without_enca: %{expand: %%global build_enca 0}}
%{?_with_jack: %{expand: %%global build_jack 1}}
%{?_without_jack: %{expand: %%global build_jack 0}}
%{?_with_libass: %{expand: %%global build_libass 1}}
%{?_without_libass: %{expand: %%global build_libass 0}}
%{?_with_pulse: %{expand: %%global build_pulse 1}}
%{?_without_pulse: %{expand: %%global build_pulse 0}}
%{?_with_openal: %{expand: %%global build_openal 1}}
%{?_without_openal: %{expand: %%global build_openal 0}}
%{?_with_schroedinger: %{expand: %%global build_schroedinger 1}}
%{?_without_schroedinger: %{expand: %%global build_schroedinger 0}}
%{?_with_twolame: %{expand: %%global build_twolame 1}}
%{?_without_twolame: %{expand: %%global build_twolame 0}}
%{?_with_lame: %{expand: %%global build_lame 1}}
%{?_without_lame: %{expand: %%global build_lame 0}}
%{?_with_faac: %{expand: %%global build_faac 1}}
%{?_without_faac: %{expand: %%global build_faac 0}}
%{?_with_faad: %{expand: %%global build_faad 1}}
%{?_without_faad: %{expand: %%global build_faad 0}}
%{?_with_x264: %{expand: %%global build_x264 1}}
%{?_without_x264: %{expand: %%global build_x264 0}}
%{?_with_xvid: %{expand: %%global build_xvid 1}}
%{?_without_xvid: %{expand: %%global build_xvid 0}}
%{?_with_dts: %{expand: %%global build_dts 1}}
%{?_without_dts: %{expand: %%global build_dts 0}}
%{?_with_directfb: %{expand: %%global build_directfb 1}}
%{?_without_directfb: %{expand: %%global build_directfb 0}}
%{?_with_rtmp: %{expand: %%global build_rtmp 1}}
%{?_without_rtmp: %{expand: %%global build_rtmp 0}}
%{?_with_v4l2: %{expand: %%global build_v4l2 1}}
%{?_without_v4l2: %{expand: %%global build_v4l2 0}}
%{?_with_xvmc: %{expand: %%global build_xvmc 1}}
%{?_without_xvmc: %{expand: %%global build_xvmc 0}}
%{?_with_vdpau: %{expand: %%global build_vdpau 1}}
%{?_without_vdpau: %{expand: %%global build_vdpau 0}}
%{?_with_vpx: %{expand: %%global build_vpx 1}}
%{?_without_vpx: %{expand: %%global build_vpx 0}}
%ifnarch %arm %mips aarch64 %{e2k}
%bcond_without	cpudetection
%endif

Summary:	Movie player for linux
Name:		mplayer
Version:	1.5
Release:	%{rel}
License:	GPLv2
Group:		Video
Url:		http://www.mplayerhq.hu
%if "%svn" != ""
#gw generated using svn export
Source0:	%{name}-%{svn}.tar.xz
%else
Source0:	ftp://ftp1.mplayerhq.hu/MPlayer/releases/%{oname}-%{fversion}.tar.xz
%endif
#gw default skin
Source4:	Blue-1.8.tar.bz2
Source5:	kernel-version.sh
Patch0:	mplayer-mdvconfig.patch
Patch1:		mplayer-1.3.0-compile.patch
# fixes for crashes found while fixing CVE-2008-1558
Patch28:	mplayer-rtsp-extra-fixes.patch
Patch31:	mplayer-format-string-literal.patch
#gw fix crash:	https://qa.mandriva.com/show_bug.cgi?id=55443
Patch35:	mplayer-fix-dvd-crash.patch
Patch42:	mplayer-filters-hack-with-shared.patch

Patch50:	mplayer-e2k-configure.patch

BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd412-xml
BuildRequires:	xsltproc
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	giflib-devel
BuildRequires:	gsm-devel
BuildRequires:	jpeg-devel
BuildRequires:	ladspa-devel
BuildRequires:	libmpcdec-devel
BuildRequires:	pkgconfig(libmng)
BuildRequires:	nas-devel
BuildRequires:	pkgconfig(caca)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(dvdnav)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libbs2b)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:  pkgconfig(xv)
BuildRequires:	pkgconfig(fontconfig)
%if %{build_aa}
BuildRequires:	aalib-devel
%endif
BuildRequires:	a52dec-devel
%if %{build_alsa}
BuildRequires:	pkgconfig(alsa)
%endif
%if %{build_arts}
BuildRequires:	arts-devel
%endif
%if %{build_amr}
BuildRequires:	pkgconfig(opencore-amrnb)
BuildRequires:	pkgconfig(opencore-amrwb)
%endif
%if %{build_jack}
BuildRequires:	pkgconfig(jack)
%endif
%if %{build_pulse}
BuildRequires:	pkgconfig(libpulse)
%endif
%if %{build_openal}
BuildRequires:	pkgconfig(openal)
%endif
%if %{build_cdda}
BuildRequires:	cdda-devel
%endif
%if %{build_dirac}
BuildRequires:	pkgconfig(dirac)  >= 0.9.0
%endif
%if %{build_schroedinger}
BuildRequires:	pkgconfig(schroedinger-1.0)
%endif
%if %{build_dv}
BuildRequires:	pkgconfig(libdv)
%endif
%if %{build_lirc}
BuildRequires:	pkgconfig(liblircclient0)
%endif
%if %{build_lzo}
BuildRequires:	pkgconfig(lzo2)
%endif
%if %{build_sdl}
BuildRequires:	pkgconfig(sdl) >= 1.1.8
BuildRequires:	pkgconfig(SDL_image)
%endif
%if %{build_xmms}
BuildRequires:	xmms-devel
%endif
%if %{build_ggi}
BuildRequires:	libggiwmh-devel
%endif
%if %{build_smb}
BuildRequires:	pkgconfig(smbclient)
%endif
%if %{build_twolame}
BuildRequires:	pkgconfig(twolame)
%endif
%if %{build_faac}
BuildRequires:	libfaac-devel
%endif
%if %{build_faad}
BuildRequires:	libfaad2-devel
%endif
%if %{build_x264}
BuildRequires:	pkgconfig(x264) >= 0.155
%endif
%if %{build_xvid}
BuildRequires:	xvid-devel
%endif
%if %{build_dts}
BuildRequires:	pkgconfig(libdts)
%endif
%if %{build_lame}
BuildRequires:	lame-devel
%endif
%if %{build_live}
BuildRequires:	live-devel
%endif
%if %{build_vesa}
BuildRequires:	libvbe-devel
%endif
%if %{build_theora}
BuildRequires:	pkgconfig(theora)
%endif
%if %{build_fribidi}
BuildRequires:	pkgconfig(fribidi) >= 0.10.4
%endif
%if %{build_enca}
BuildRequires:	pkgconfig(enca)
%endif
%if %{build_directfb}
BuildRequires:	pkgconfig(directfb)
%endif
%if %{build_xvmc}
BuildRequires:	pkgconfig(xvmc)
%endif
%if %{build_vdpau}
BuildRequires:	pkgconfig(vdpau)
%endif
%if %{build_libass}
BuildRequires:	pkgconfig(libass)
%endif
%if %{build_vpx}
BuildRequires:	pkgconfig(vpx)
%endif
%if %{build_rtmp}
BuildRequires:	pkgconfig(librtmp)
%endif
%if %{build_yasm}
BuildRequires:	yasm
%endif
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(xt)
BuildRequires:	ffmpeg
BuildRequires:	ffmpeg-devel
BuildRequires:	imagemagick

%description
MPlayer is a movie player for LINUX (runs on many other Unices, and
non-x86 CPUs, see the documentation). It plays most MPEG, VOB, AVI,
VIVO, ASF/WMV, QT/MOV, FLI, NuppelVideo, yuv4mpeg, FILM, RoQ, and some
RealMedia files, supported by many native, XAnim, and Win32 DLL codecs.
You can watch VideoCD, SVCD, DVD, 3ivx, FLI, and even DivX movies too
(and you don't need the avifile library at all!). The another big
feature of mplayer is the wide range of supported output drivers. It
works with X11, Xv, DGA, OpenGL, SVGAlib, fbdev, AAlib, but you can use
SDL (and this way all drivers of SDL), VESA (on every VESA compatible
card, even without X!), and some lowlevel card-specific drivers (for
Matrox, 3Dfx and Radeon) too! Most of them supports software or hardware
scaling, so you can enjoy movies in fullscreen. MPlayer supports
displaying through some hardware MPEG decoder boards, such as the DVB
and DXR3/Hollywood+! And what about the nice big antialiased shaded
subtitles (9 supported types!!!) with european/ISO 8859-1,2 (hungarian,
english, czech, etc), cyrillic, korean fonts, and OSD?

Note: If you want to play Real content, you need to have the content
of RealPlayer's Codecs directory in %{_libdir}/codecs/

%package doc
Summary:	%{oname} documentation
Group:		Books/Computer books
BuildArch:	noarch

%description doc
This package contains documentation for %{oname}.

%if %{build_gui}
%package gui
Summary:	GUI for %{name}
Group:		Video
Requires:	%{name} = %{version}
BuildRequires:	pkgconfig(gtk+-2.0)

%description gui
This package contains a GUI for %{name}.
%endif

%if %{build_mencoder}
%package -n mencoder
Summary:	MPlayer's movie encoder
Group:		Video
Requires:	%{name}

%description -n mencoder
MEncoder a movie encoder and is a part of the MPlayer package.
This restricted build has additional support for AAC decoding with libfaad
and MP3 encoding with lame, both are covered by software patents. It
also includes support for reading DVDs encrypted with CSS which might
be illegal in some countries.
%endif

%prep
%if "%{svn}" != ""
%setup -q -n %{name} -a 4
%else
%setup -q -n MPlayer-%{version}%{prerel} -a 4
%endif
#gw as we have have used svn export:
echo %{svn}|sed s/^r// > snapshot_version
find DOCS -name .svn|xargs rm -rf
#gw fix permissions
chmod 644 AUTHORS Changelog README Copyright
rm -f Blue/README
%patch0 -p1 -b .mdv~
%patch1 -p1 -b .compile~
%patch28 -p1 -b .rtsp-extra-fixes
%patch31 -p1 -b .format~
%patch35 -p0
%patch50 -p1
# Sometimes (1.1.1) mplayer guys forget to update the VERSION file...
# Let's fix it here, but let's not abuse this ;)
echo %{version} >VERSION

perl -pi -e 's^r\$svn_revision^%{release}^' version.sh

mv DOCS/README README.DOCS

%build
# Clang 10 crasing on i686. Crash log in commit descriptions: 
# https://github.com/OpenMandrivaAssociation/mplayer/commit/60ae23d044c8c83773abeeafdec802a040064880
%ifarch %{ix86} %{e2k}
export CC=gcc
export CXX=g++
%endif

export CFLAGS="$CFLAGS %{optflags}"
%if %{build_debug}
export CFLAGS="$CFLAGS -g"
%endif
%ifarch ppc
export CFLAGS="$CFLAGS -mcpu=7450 -maltivec"
%endif
%if %{build_directfb}
export CPPFLAGS="-I%{_includedir}/directfb"
%endif
export LDFLAGS="%{?ldflags}"
if ! ./configure \
	--prefix=%{_prefix} \
	--datadir=%{_datadir}/%{name} \
	--confdir=%{_sysconfdir}/%{name} \
	--libdir=%{_libdir} \
	--disable-ffmpeg_a \
%if %{with cpudetection}
	--enable-runtime-cpudetection \
%endif
%if ! %{build_dts}
	--disable-libdca \
%endif
%ifarch %{ix86}
	--enable-mmx \
	--enable-3dnow \
	--enable-sse \
	--enable-sse2 \
	--enable-fastmemcpy \
%endif
	--enable-freetype \
	--enable-nas \
%if %{build_debug}
	--enable-debug=3 \
%else
	--disable-sighandler \
%endif
%if %{build_gui}
	--enable-gui \
%endif
	--language=all \
	--enable-dvdnav \
	--enable-dvdread \
%if %{build_lirc}
	--enable-lirc \
%else
	--disable-lirc \
%endif
	--enable-tv \
%if ! %{build_v4l2}
	--disable-tv-v4l2 \
%endif
	--enable-joystick \
	--enable-gl \
	--disable-svga \
%if ! %{build_mga}
	--disable-mga \
%endif
%if ! %{build_fbdev}
	--disable-fbdev \
%endif
%if %{build_directfb}
	--enable-directfb \
%else
	--disable-directfb \
%endif
%if %{build_mencoder}
	--enable-mencoder \
%else
	--disable-mencoder \
%endif
%if ! %{build_live}
	--disable-live \
%endif
%if ! %{build_vesa}
	--disable-vesa \
%endif
%if %{build_theora}
	--enable-theora \
%else
	--disable-theora \
%endif
	--enable-menu \
%if %{build_xmms}
	--enable-xmms --with-xmmslibdir=%{_libdir} \
%endif
%if %{build_smb}
	--enable-smb \
%endif
%if ! %{build_dvb}
	--disable-dvb \
	--disable-dvbhead \
%endif
%if ! %{build_ggi}
	--disable-ggi \
%endif
	--codecsdir=%{_libdir}/codecs \
%if ! %{build_arts}
	--disable-arts \
%endif
%if ! %{build_jack}
	--disable-jack \
%endif
%if ! %{build_aa}
	--disable-aa \
%endif
%if ! %{build_cdda}
	--disable-cdparanoia \
%endif
%if ! %{build_dv}
	--disable-libdv \
%endif
%if ! %{build_lzo}
	--disable-liblzo \
%endif
%if ! %{build_sdl}
	--disable-sdl \
%endif
%if ! %{build_alsa}
	--disable-alsa \
%endif
%if ! %{build_fribidi}
	--disable-fribidi \
%endif
%if ! %{build_enca}
	--disable-enca \
%endif
%if %{build_pulse}
	--enable-pulse \
%endif
%if ! %{build_openal}
	--disable-openal \
%endif
	--disable-zr \
%if %{build_xvmc}
	--enable-xvmc \
%endif
%if ! %{build_vdpau}
	--disable-vdpau \
%endif
%if ! %{build_amr}
	--disable-libopencore_amrnb \
	--disable-libopencore_amrwb \
%endif
	; then
cat config.log
exit 1
fi


# Keep this line before empty end %%configure (ppc conditionnal pb)
%make_build -j1
#gw make sure we have our version string included:
fgrep %{version} version.h

%install
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m755 mplayer -D %{buildroot}%{_bindir}/mplayer
for lang in de fr hu pl es it zh_CN en; do
    install -m644 DOCS/man/$lang/mplayer.1 -D %{buildroot}%{_mandir}/$([ "$lang" != "en" ] && echo $lang)/man1/mplayer.1
done

%find_lang mplayer --with-man

######################### Mencoder #########################
%if %{build_mencoder}
install -m755 mencoder -D %{buildroot}%{_bindir}/mencoder

for lang in de fr hu pl es it zh_CN en; do
    ln -s mplayer.1 %{buildroot}%{_mandir}/$([ "$lang" != "en" ] && echo $lang)/man1/mencoder.1
done

%find_lang mencoder --with-man

install -m 755 TOOLS/mencvcd.sh %{buildroot}%{_bindir}/mencvcd
install -m 755 TOOLS/divx2svcd.sh %{buildroot}%{_bindir}/divx2svcd
install -m 755 TOOLS/wma2ogg.pl %{buildroot}%{_bindir}/wma2ogg.pl
install -m 755 TOOLS/midentify.sh %{buildroot}%{_bindir}/midentify
%endif
######################### /Mencoder #########################

install -m 644 etc/example.conf %{buildroot}%{_sysconfdir}/%{name}/mplayer.conf
install -m 644 etc/menu.conf %{buildroot}%{_sysconfdir}/%{name}

%if %{build_gui}
# default Skin
install -d -m 755 %{buildroot}%{_datadir}/%{name}/skins/
cp -r Blue %{buildroot}%{_datadir}/%{name}/skins/
ln -s Blue %{buildroot}%{_datadir}/%{name}/skins/default
# gmplayer equals mplayer -gui
ln -s mplayer %{buildroot}%{_bindir}/gmplayer
# icons
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
convert -transparent white Blue/icons/icon48x48.png %{buildroot}%{_liconsdir}/mplayer.png 
convert -transparent white Blue/icons/icon32x32.png %{buildroot}%{_iconsdir}/mplayer.png 
convert -transparent white -scale 16x16 Blue/icons/icon48x48.png %{buildroot}%{_miconsdir}/mplayer.png
install -D -m 644 etc/mplayer.desktop %{buildroot}%{_datadir}/applications/mplayer.desktop
perl -pi -e 's@mplayer$@mplayer@g' %{buildroot}%{_datadir}/applications/mplayer.desktop
%endif

%if %{build_debug}
export DONT_STRIP=1
%endif

%if %{build_gui}
%pre gui
if [ -d %{_datadir}/%{name}/skins/default ]
  then rm -rf %{_datadir}/%{name}/skins/default
fi
%endif

%files -f mplayer.lang
%doc AUTHORS Changelog README Copyright
%dir %{_sysconfdir}/%{name}
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/mplayer.conf
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/%{name}/menu.conf
%{_bindir}/midentify
%{_bindir}/mplayer
%{_mandir}/man1/mplayer.1*
%dir %{_datadir}/%{name}

%files doc
%doc README.DOCS
%doc DOCS/default.css DOCS/xml DOCS/tech/

%if %{build_mencoder}
%files -n mencoder -f mencoder.lang
%{_bindir}/mencoder
%{_bindir}/divx2svcd
%{_bindir}/mencvcd
%{_bindir}/wma2ogg.pl
%{_mandir}/man1/mencoder.1*
%endif

%if %{build_gui}
%files gui
%{_bindir}/gmplayer
%{_datadir}/applications/mplayer.desktop
%{_datadir}/%{name}/skins
%{_iconsdir}/mplayer.png
%{_miconsdir}/mplayer.png
%{_liconsdir}/mplayer.png
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14819 |21mr|mpv-0.34.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Movie player playing most video formats and DVDs
Name:		mpv
Version:	0.34.1
Release:	15
# We are enabling Samba support
License:	GPLv3+
Group:		Video
Url:		http://mpv.io/
Source0:	https://github.com/mpv-player/mpv/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	https://raw.githubusercontent.com/sanjayankur31/rpmfusion-appdata/master/appdata-extra-free/desktop/mpv.appdata.xml
Patch0:		mpv-desktop.patch
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=13392
Patch1:		0001-Enable-hardware-accelerated-decoding-by-default.patch
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-util
BuildRequires:	hicolor-icon-theme
BuildRequires:	imagemagick
BuildRequires:	linux-userspace-headers
BuildRequires:	python3-docutils
BuildRequires:	python3-rst2pdf
BuildRequires:	waf
BuildRequires:	wayland-tools
BuildRequires:	yasm
BuildRequires:	ffmpeg-devel
BuildRequires:	krb5-devel
BuildRequires:	ladspa-devel
# Need release 2.9+
BuildRequires:	zimg-devel
BuildRequires:	quvi-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(caca)
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(dvdnav)
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(enca)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libbluray)
BuildRequires:	pkgconfig(libbs2b)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libcdio_cdda)
BuildRequires:	pkgconfig(libcdio_paranoia)
BuildRequires:	pkgconfig(libguess)
BuildRequires:	pkgconfig(libiso9660)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libmng)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libplacebo)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libudf)
BuildRequires:	pkgconfig(libv4lconvert)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libva-x11)
# Mpv only supports lua <= 5.2 or luajit
#BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(luajit)
%if %{mdvver} != 202115
BuildRequires:	pkgconfig(mujs)
%endif
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(opengl)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(ptlib)
BuildRequires:	pkgconfig(rubberband)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(uchardet)
BuildRequires:	pkgconfig(vapoursynth)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
%ifarch x86_64
BuildRequires:	ffnvcodec-headers
%endif
BuildRequires:	samba-common
BuildRequires:	samba-server
BuildRequires:	libglpng-devel
BuildRequires:	pkgconfig(x264)
BuildRequires:	pkgconfig(x265)
Requires:	hicolor-icon-theme
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-core = %{EVRD}
Recommends:	youtube-dl

%description
Mpv is a movie player based on MPlayer and mplayer2. It supports a wide
variety of video file formats, audio and video codecs, and subtitle types.
Special input URL types are available to read input from a variety of sources
other than disk files. Depending on platform, a variety of different video and
audio output methods are supported.

%files
%doc README.md etc/input.conf
%license Copyright
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/*/%{name}.*
%{_datadir}/metainfo/%{name}.appdata.xml
%{_iconsdir}/hicolor/symbolic/apps/%{name}-symbolic.svg

#----------------------------------------------------------------------------

%package core
Summary:	Core of the MPV media player
Group:		Video
Requires:	vulkan
# files were moved from "mpv"
Conflicts:	mpv < 0.34.1-9

%description core
Mpv is a movie player based on MPlayer and mplayer2. It supports a wide
variety of video file formats, audio and video codecs, and subtitle types.
Special input URL types are available to read input from a variety of sources
other than disk files. Depending on platform, a variety of different video and
audio output methods are supported.
This package the core of the player, without a desktop file
(because some other players, e.g. smplayer, require the mpv binary).

%files core
%license Copyright
%{_docdir}/%{name}/mplayer-input.conf
%{_docdir}/%{name}/mpv.conf
%{_docdir}/%{name}/mpv.pdf
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/encoding-profiles.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}/input.conf
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/mpv
%{_docdir}/%{name}/restore-old-bindings.conf
%dir %{_datadir}/zsh/site-functions
%{_datadir}/zsh/site-functions/_mpv
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Mpv is a movie player based on MPlayer and mplayer2. It supports a wide
variety of video file formats, audio and video codecs, and subtitle types.
Special input URL types are available to read input from a variety of sources
other than disk files. Depending on platform, a variety of different video and
audio output methods are supported.

%files -n %{libname}
%license LICENSE.GPL Copyright
%{_libdir}/libmpv.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
#Requires:	pkgconfig(vapoursynth)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Mpv is a movie player based on MPlayer and mplayer2. It supports a wide
variety of video file formats, audio and video codecs, and subtitle types.
Special input URL types are available to read input from a variety of sources
other than disk files. Depending on platform, a variety of different video and
audio output methods are supported.

%files -n %{devname}
%doc RELEASE_NOTES README.md
%license Copyright LICENSE.GPL
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
LDFLAGS="%{ldflags}" CCFLAGS="%{optflags}" \
%{_bindir}/waf configure \
	--prefix="%{_prefix}" \
	--bindir="%{_bindir}" \
	--libdir="%{_libdir}" \
	--mandir="%{_mandir}" \
	--confdir="%{_sysconfdir}/%{name}" \
	--disable-build-date \
	--docdir="%{_docdir}/%{name}" \
	--enable-cdda \
	--enable-dvbin \
	--enable-dvdnav	\
	--enable-gl-wayland \
	--enable-egl-x11 \
	--enable-libarchive	\
	--enable-libmpv-shared \
	--enable-openal	\
	--enable-sdl2	\
	--enable-vaapi \
	--enable-wayland \
	--enable-libarchive \
	--enable-pdf-build \
	--enable-jpeg
%python3_waf

%install
%python3_waf_install

# Install contributed appdata
mkdir -p %{buildroot}%{_appdatadir}
install -m 0644 %{SOURCE2} %{buildroot}%{_appdatadir}/

mkdir -p %{buildroot}%{_sysconfdir}/%{name}/
cp etc/mpv.conf %{buildroot}%{_sysconfdir}/%{name}/mpv.conf
cp etc/input.conf %{buildroot}%{_sysconfdir}/%{name}/input.conf
sed -i -e '1d' %{buildroot}%{_datadir}/bash-completion/completions/mpv


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14820 |21mr|mqtt-client-1.10-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          mqtt-client
Version:       1.10
Release:       9
Summary:       A Java MQTT Client
License:       ASL 2.0
URL:           http://mqtt-client.fusesource.org/
Source0:       https://github.com/fusesource/mqtt-client/archive/%{name}-project-%{version}.tar.gz

BuildRequires: mvn(asm:asm-tree)
BuildRequires: mvn(org.fusesource:fusesource-pom:pom:)
BuildRequires: mvn(org.fusesource.hawtbuf:hawtbuf)
BuildRequires: mvn(org.fusesource.hawtdispatch:hawtdispatch-transport)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.osgi:org.osgi.core)

# test deps (*)
%if 0
BuildRequires: mvn(org.apache.activemq:apollo-broker)
BuildRequires: mvn(org.apache.activemq:apollo-mqtt)
BuildRequires: mvn(org.apache.activemq:apollo-leveldb)
BuildRequires: mvn(org.apache.activemq:apollo-web)
BuildRequires: mvn(org.eclipse.jetty.aggregate:jetty-all-server)

BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
%endif

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
mqtt-client provides an ASL 2.0 licensed API to MQTT. It takes care of 
automatically reconnecting to your MQTT server and restoring your client 
session if any network failures occur. Applications can use a blocking 
API style, a futures based API, or a callback/continuations passing API 
style.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-project-%{version}

# fix spurious executable perm
chmod 644 readme.md

%pom_disable_module mqtt-client-java1.4-uber
%pom_disable_module mqtt-client-website

%pom_remove_plugin :proguard-maven-plugin %{name}

%pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:scope='test']" %{name}

%pom_xpath_set "pom:properties/pom:asm-version" 3 

%mvn_file :%{name} %{name}

%build

# test skip for unavailable deps (*)
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc readme.md
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14821 |21mr|mscompress-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	MS compress/expand-compatible (de)compressor
Name:		mscompress
Version:	0.4
Release:	7
License:	GPL
Group:		Archiving/Compression
Url:        ftp://ftp.penguin.cz/pub/users/mhi/mscompress
Source0:	http://code.stapelberg.de/git/mscompress/snapshot/%{name}-%{version}.tar.bz2
BuildRequires:	autoconf

%description
Microsoft compress.exe/expand.exe-compatible file (de)compressor.

%prep
%setup -q

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

%files
%doc ChangeLog README TODO format.txt
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14822 |21mr|msgpack-3.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 4
%define	cmajor 2
%define	libname %mklibname %{name} %{major}
%define	clibname %mklibname %{name}c %{cmajor}
%define	devname %mklibname %{name} -d

%define	sname %{name}-c-cpp

Summary:	Binary-based efficient object serialization library
Name:		msgpack
Version:	3.3.0
Release:	2
Group:		System/Libraries
License:	Boost Software License
Url:		http://msgpack.org
Source0:	https://github.com/msgpack/msgpack-c/archive/cpp-%{version}.tar.gz
BuildRequires:	cmake >= 3.1
BuildRequires:	gtest-devel
BuildRequires:	pkgconfig(gmock)
BuildRequires:	pkgconfig(zlib)

%description
MessagePack is a binary-based efficient object serialization library. It
enables to exchange structured objects between many languages like JSON. But
unlike JSON, it is very fast and small.

#-----------------------------------------------------------------------------

%package -n %{clibname}
Summary:	Binary-based efficient object serialization library
Group:		System/Libraries
%rename		%{libname}
Obsoletes:	msgpack < 1.3.0

%description -n %{clibname}
MessagePack is a binary-based efficient object serialization library. It
enables to exchange structured objects between many languages like JSON. But
unlike JSON, it is very fast and small.
This package contains the C version of MessagePack, lib%{name}c.

%files -n %{clibname}
%doc COPYING LICENSE_1_0.txt
%{_libdir}/lib%{name}c.so.%{cmajor}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for %{name}
Group:		Development/C++
Requires:	%{clibname} = %{EVRD}
Provides:	msgpack-devel = %{EVRD}
Obsoletes:	msgpack-devel < 1.3.0

%description -n %{devname}
Libraries and header files for lib%{name}c.

%files -n %{devname}
%doc CHANGELOG.md COPYING LICENSE_1_0.txt NOTICE README.md
%doc QUICKSTART-C.md QUICKSTART-CPP.md
%{_includedir}/%{name}.h
%{_includedir}/%{name}.hpp
%{_includedir}/%{name}/*
%{_libdir}/lib%{name}c.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/*.cmake

#-----------------------------------------------------------------------------

%prep
%setup -qn %{sname}-%{version}
%autopatch -p1

%build
%cmake \
	-DMSGPACK_CXX11=ON \
	-DMSGPACK_BUILD_EXAMPLES=OFF \
	-DMSGPACK_ENABLE_CXX=ON \
	-DMSGPACK_ENABLE_STATIC=ON


%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14823 |21mr|mstore-0.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# fortran binary
%global	debug_package %{nil}

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		mstore
Version:	0.3.0
Release:	3
Summary:	Molecular structure store for testing
Group:		Sciences/Chemistry
License:	Apache-2.0
URL:		https://github.com/grimme-lab/mstore
Source0:	https://github.com/grimme-lab/mstore/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	meson
BuildRequires:	gcc-gfortran
BuildRequires:	mctc-lib-devel

%description
Molecular structure store for testing

%files
%license LICENSE
%doc README.md
%{_bindir}/mstore-info
#-------------------------------------------------
%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libmstore.so.%{major}*
#-------------------------------------------------
%package -n %{devname}
Summary:	Development headers for mstore
Group:		Development/Other
Requires:	%{libname}%{?_isa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development headers for mstore.

%files -n %{devname}
%{_libdir}/libmstore.so
%{_fmoddir}/mstore*.mod
%{_libdir}/pkgconfig/mstore.pc

#-------------------------------------------------
%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install
# Move Fortran modules to the right place
mkdir -p %{buildroot}%{_fmoddir}
mv %{buildroot}%{_includedir}/mstore/gcc-*/*.mod %{buildroot}%{_fmoddir}
# Remove static library
rm %{buildroot}%{_libdir}/libmstore.a
sed -i 's|-I${includedir}/mstore/gcc-.*|-I%{_fmoddir}|' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14824 |21mr|msv-2013.6.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          msv
Epoch:         1
Version:       2013.6.1
Release:       15
Summary:       Multi-Schema Validator
License:       BSD and ASL 1.1
URL:           http://msv.java.net/

# To generate tarball from upstream source control:
# $ ./create-tarball
Source0:       %{name}-%{version}-clean.tar.gz

Source2:       http://www.apache.org/licenses/LICENSE-2.0.txt
Source3:       create-tarball.sh

# Use CatalogResolver from xml-commons-resolver package
Patch1:        %{name}-Use-CatalogResolver-class-from-xml-commons-resolver.patch

BuildRequires:  maven-local
BuildRequires:  mvn(isorelax:isorelax)
BuildRequires:  mvn(jdom:jdom)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(relaxngDatatype:relaxngDatatype)
BuildRequires:  mvn(xerces:xercesImpl)
BuildRequires:  mvn(xml-resolver:xml-resolver)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Obsoletes:     %{name}-relames < %{version}-%{release}

%description
The Sun Multi-Schema XML Validator (MSV) is a Java technology tool to validate
XML documents against several kinds of XML schemata. It supports RELAX NG,
RELAX Namespace, RELAX Core, TREX, XML DTDs, and a subset of XML Schema Part 1.
This latest (version 1.2) release includes several bug fixes and adds better
conformance to RELAX NG/W3C XML standards and JAXP masquerading.

%package       msv
Summary:       Multi-Schema Validator Core
# src/com/sun/msv/reader/xmlschema/DOMLSInputImpl.java is under ASL 2.0
# msv/src/com/sun/msv/writer/ContentHandlerAdaptor.java is partially under Public Domain
License:       BSD and ASL 1.1 and ASL 2.0 and Public Domain
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:      javapackages-tools

%description   msv
%{summary}.

%package       rngconv
Summary:       Multi-Schema Validator RNG Converter
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:      javapackages-tools

%description   rngconv
%{summary}.

%package       xmlgen
Summary:       Multi-Schema Validator Generator
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:      javapackages-tools

%description   xmlgen
%{summary}.

%package       xsdlib
Summary:       Multi-Schema Validator XML Schema Library

%description   xsdlib
%{summary}.

%package       javadoc
Summary:       API documentation for Multi-Schema Validator
License:       BSD and ASL 1.1 and ASL 2.0 and Public Domain

%description   javadoc
%{summary}.

%package       manual
Summary:       Manual for Multi-Schema Validator
License:       BSD

%description   manual
%{summary}.

%package       demo
Summary:       Samples for Multi-Schema Validator
License:       BSD
Requires:      msv-msv
Requires:      msv-xsdlib

%description   demo
%{summary}.

%prep
%setup -q

# We don't have this plugin
%pom_remove_plugin :buildnumber-maven-plugin

# javadoc generation fails due to strict doclint in JDK 8
%pom_remove_plugin :maven-javadoc-plugin

# Needed becuase of patch3
%pom_add_dep xml-resolver:xml-resolver

# ASL 2.0 license text
cp %{SOURCE2} Apache-LICENSE-2.0.txt

# Delete anything pre-compiled
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;
find -name '*.zip' -exec rm -f '{}' \;

# Test sources in default package break BND
rm -f testharness/src/*.java

# Delete class-path entries from manifests
for m in $(find . -name MANIFEST.MF) ; do
  sed --in-place -e '/^[Cc]lass-[Pp]ath:/d' $m
done

# Apply patches
%patch1 -p1

# Fix isorelax groupId
%pom_xpath_replace "pom:dependency[pom:groupId[text()='com.sun.xml.bind.jaxb']]/pom:groupId" "<groupId>isorelax</groupId>"
%pom_xpath_replace "pom:dependency[pom:groupId[text()='com.sun.xml.bind.jaxb']]/pom:groupId" "<groupId>isorelax</groupId>" msv

# Change encoding of non utf-8 files
for m in $(find . -name copyright.txt) ; do
  iconv -f iso-8859-1 -t utf-8 < $m > $m.utf8
  mv $m.utf8 $m
done

%mvn_file ":%{name}-core" %{name}-core %{name}-%{name}
%mvn_file ":%{name}-rngconverter" %{name}-rngconverter %{name}-rngconv
%mvn_file ":%{name}-generator" %{name}-generator %{name}-xmlgen
%mvn_file ":xsdlib" xsdlib %{name}-xsdlib

%mvn_alias ":xsdlib" "com.sun.msv.datatype.xsd:xsdlib"

%mvn_package ":*::{tests,javadoc,sources}:" __noinstall
%mvn_package ":%{name}{,-testharness}::{}:" __noinstall
%mvn_package ":%{name}{,-core}::{}:" %{name}-msv

%build
%mvn_build -s

%install
%mvn_install

# Manuals
install -d -m 755 %{buildroot}%{_docdir}/%{name}/msv
install -m 644 msv/doc/*.html     %{buildroot}%{_docdir}/%{name}/msv
install -m 644 msv/doc/*.gif      %{buildroot}%{_docdir}/%{name}/msv
install -m 644 msv/doc/README.txt %{buildroot}%{_docdir}/%{name}/msv

install -d -m 755 %{buildroot}%{_docdir}/%{name}/rngconverter
install -m 644 rngconverter/README.txt %{buildroot}%{_docdir}/%{name}/rngconverter

install -d -m 755 %{buildroot}%{_docdir}/%{name}/generator
install -m 644 generator/*.html     %{buildroot}%{_docdir}/%{name}/generator
install -m 644 generator/README.txt %{buildroot}%{_docdir}/%{name}/generator

install -d -m 755 %{buildroot}%{_docdir}/%{name}/xsdlib
install -m 644 xsdlib/*.html     %{buildroot}%{_docdir}/%{name}/xsdlib
install -m 644 xsdlib/README.txt %{buildroot}%{_docdir}/%{name}/xsdlib

# Examples
install -d -m 755 %{buildroot}%{_datadir}/%{name}/msv
cp -pr msv/examples/* %{buildroot}%{_datadir}/%{name}/msv
install -d -m 755 %{buildroot}%{_datadir}/%{name}/xsdlib
cp -pr xsdlib/examples/* %{buildroot}%{_datadir}/%{name}/xsdlib

# Scripts
%jpackage_script com.sun.msv.driver.textui.Driver "" "" msv-msv:msv-xsdlib:relaxngDatatype:isorelax msv true
%jpackage_script com.sun.msv.generator.Driver "" "" msv-xmlgen:msv-msv:msv-xsdlib:relaxngDatatype:isorelax:xerces-j2 xmlgen true
%jpackage_script com.sun.msv.writer.relaxng.Driver "" "" msv-rngconv:msv-msv:msv-xsdlib:relaxngDatatype:isorelax:xerces-j2 rngconv true

%files msv -f .mfiles-msv-msv
%{_bindir}/msv
%doc License.txt
%doc msv/doc/Apache-LICENSE-1.1.txt
%doc Apache-LICENSE-2.0.txt

%files rngconv -f .mfiles-msv-rngconverter
%{_bindir}/rngconv
%doc msv/doc/Apache-LICENSE-1.1.txt
%doc License.txt

%files xmlgen -f .mfiles-msv-generator
%{_bindir}/xmlgen
%doc msv/doc/Apache-LICENSE-1.1.txt
%doc License.txt

%files xsdlib -f .mfiles-xsdlib
%doc msv/doc/Apache-LICENSE-1.1.txt
%doc License.txt

%files javadoc -f .mfiles-javadoc
%doc License.txt
%doc msv/doc/Apache-LICENSE-1.1.txt
%doc Apache-LICENSE-2.0.txt

%files manual
%doc %{_docdir}/%{name}
%doc License.txt

%files demo
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14825 |21mr|mtdev-1.1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Kernel multi-touch transformation library
Name:		mtdev
Version:	1.1.6
Release:	2
License:	MIT
Group:		System/Libraries
Url:		http://edge.launchpad.net/mtdev
Source0:	https://launchpad.net/mtdev/trunk/%{version}/+download/%{name}-%{version}.tar.gz

%description
The mtdev library transforms all variants of kernel MT (multi-touch) events to
the slotted type B protocol. The events put into mtdev may be from any MT
device, specifically type A without contact tracking, type A with contact
tracking, or type B with contact tracking. See the kernel documentation for
further details.

%files
%doc ChangeLog README COPYING
%{_bindir}/mtdev-test

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Kernel multi-touch transformation library
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libmtdev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for mtdev
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the development files for mtdev.

%files -n %{devname}
%{_includedir}/mtdev*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14826 |21mr|mtdev-1.1.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Kernel multi-touch transformation library
Name:		mtdev
Version:	1.1.6
Release:	3
License:	MIT
Group:		System/Libraries
Url:		http://edge.launchpad.net/mtdev
Source0:	https://launchpad.net/mtdev/trunk/%{version}/+download/%{name}-%{version}.tar.gz

%description
The mtdev library transforms all variants of kernel MT (multi-touch) events to
the slotted type B protocol. The events put into mtdev may be from any MT
device, specifically type A without contact tracking, type A with contact
tracking, or type B with contact tracking. See the kernel documentation for
further details.

%files
%doc ChangeLog README COPYING
%{_bindir}/mtdev-test

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Kernel multi-touch transformation library
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libmtdev.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for mtdev
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the development files for mtdev.

%files -n %{devname}
%{_includedir}/mtdev*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14827 |21mr|mtools-4.0.41-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Programs for accessing MS-DOS disks without mounting the disks
Name:		mtools
Version:	4.0.41
Release:	1
License:	GPLv3+
Group:		File tools
Url:		http://mtools.linux.lu
Source0:	http://mtools.linux.lu/%{name}-%{version}.tar.bz2
Source1:	69-floppy-acl.rules
Patch0:		mtools-4.0.40-atari.patch
Patch1:		mtools-4.0.40-linux.patch
BuildRequires:	texinfo
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)

%description
Mtools is a collection of utilities for accessing MS-DOS files.
Mtools allow you to read, write and move around MS-DOS filesystem
files (normally on MS-DOS floppy disks). Mtools supports Windows95
style long file names, OS/2 Xdf disks, and 2m disks.

Mtools should be installed if you need to use MS-DOS disks.

%files
%doc NEWS README Release.notes mtools.texi
%license COPYING
%attr(755,root,root) %{_bindir}/amuFormat.sh
%attr(755,root,root) %{_bindir}/f*
%attr(755,root,root) %{_bindir}/l*
%attr(755,root,root) %{_bindir}/m*
%attr(755,root,root) %{_bindir}/t*
%attr(755,root,root) %{_bindir}/u*
%config(noreplace) %{_sysconfdir}/mtools.conf
%{_infodir}/%{name}.*
%{_mandir}/*/*
%{_sysconfdir}/udev/rules.d/*.rules

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
mkdir -p %{buildroot}/%{_prefix} %{buildroot}%{_sysconfdir}

%makeinstall_std

install mtools.conf %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}/%{_sysconfdir}/udev/rules.d/
install -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/udev/rules.d/69-floppy-acl.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14828 |21mr|mtr-0.95-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ping/Traceroute network diagnostic tool
Name:		mtr
Version:	0.95
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.bitwizard.nl/mtr
Source0:	https://github.com/traviscross/mtr/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source3:	org.fedoraproject.mtr.policy
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(ncurses)

%description
Mtr is a network diagnostic tool which combines Ping and Traceroute into one
program. Mtr also has two interfaces: An ncurses interface, useful for using
Mtr from a telnet session and a Gtk interface if you are using X.

%files
%doc AUTHORS COPYING NEWS SECURITY TODO
%{_bindir}/mtr*
%{_sbindir}/mtr
%{_sbindir}/mtr-packet
%{_datadir}/bash-completion/completions/mtr
%{_mandir}/*/*

#----------------------------------------------------------------------------

%package gtk
Summary:	Ping/Traceroute network diagnostic tool - GTK Interface
Group:		Networking/Other
Requires:	mtr

%description gtk
This is the Gtk interface for the mtr network diagnostic tool.

%files gtk
%doc AUTHORS COPYING NEWS SECURITY TODO
%{_bindir}/xmtr
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/*.desktop
%{_datadir}/polkit-1/actions/org.fedoraproject.mtr.policy

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./bootstrap.sh
%configure
%make && mv -f mtr xmtr && make distclean

%configure --without-gtk
%make

%install
%makeinstall_std

install -D -p -m 0755 xmtr %{buildroot}%{_bindir}/xmtr
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_datadir}/polkit-1/actions/org.fedoraproject.mtr.policy
ln -s ../sbin/mtr %{buildroot}%{_bindir}/mtr
ln -s ../sbin/mtr-packet %{buildroot}%{_bindir}/mtr-packet

for size in 16x16 32x32 48x48; do
install -d %{buildroot}%{_iconsdir}/hicolor/${size}/apps/
convert img/mtr_icon.xpm -size ${size} %{buildroot}%{_iconsdir}/hicolor/${size}/apps/%{name}.png
done

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Xmtr
Comment=Ping/Traceroute network diagnostic tool
Exec=%{_bindir}/xmtr
Icon=%{name}
Terminal=false
Type=Application
Categories=GTK;System;Monitor;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14829 |21mr|mujs-1.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An embeddable Javascript interpreter
Name:		mujs
Version:	1.3.4
Release:	2
Group:		Development/Java
License:	AGPLv3+
Url:		http://mujs.com/
Source0:	https://github.com/ArtifexSoftware/mujs/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		mujs-1.3.4-use-shared.patch
# fixed CVE in 1.3.3
# CVE-2016-10141
# CVE-2016-9294
# CVE-2017-5627
# CVE-2017-5628
BuildRequires:	pkgconfig(readline)

%description
MuJS is a lightweight Javascript interpreter
designed for embedding in
other software to extend them with
scripting capabilities.

%files
%doc AUTHORS README docs
%license COPYING
%{_bindir}/%{name}*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	MuJS shared library
Group:		System/Libraries

%description -n %{libname}
MuJS shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	MuJS development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package provides the MuJS shared library.

%files -n %{devname}
%doc AUTHORS README docs
%license COPYING
%{_includedir}/%{name}.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#------------------------------------------------------------------

%prep
%autosetup
chmod a-x -v docs/*

%build
%make_build release CFLAGS="%{optflags} -fPIC" LDFLAGS="%{ldflags}"

%install
%make_install prefix="%{_prefix}" libdir="%{_libdir}" CFLAGS="%{optflags} -fPIC" LDFLAGS="%{ldflags}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14830 |21mr|multiarch-utils-1.0.14-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Tools to help creation of multiarch binaries and includes
Name:           multiarch-utils
Version:        1.0.14
Release:        11
License:        GPLv2+
Group:          Development/Tools
Url:            http://www.rosalinux.com/
Source0:        %{name}-%{version}.tar.gz
BuildArch:	noarch

%description
multiarch-utils is a collection of helper utilities to dispatch
binaries and include files during RPM package build.

%files
%doc NEWS
%{_bindir}/multiarch-platform
%{_bindir}/multiarch-dispatch
%{_etcrpm}/macros.multiarch
%{_includedir}/multiarch-dispatch.h
%{_rpmmacrodir}/*multiarch*
%{_rpmconfigdir}/mkmultiarch
%{_rpmconfigdir}/check-multiarch-files

#----------------------------------------------------------------------------

%prep
%setup -q

%install
%makeinstall_std

%install_macro multiarch macros.multiarch
rm -rf %{buildroot}%{_sysconfdir}/rpm/macros.d/multiarch.macros

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14831 |21mr|multicharge-0.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# fortran binary
%global	debug_package %{nil}

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:           multicharge
Version:        0.3.0
Release:        2
Summary:        Electronegativity equilibration model for atomic partial charges
Group:          Sciences/Chemistry
License:        Apache-2.0
URL:            https://github.com/grimme-lab/multicharge
Source0:        https://github.com/grimme-lab/multicharge/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:  meson
BuildRequires:  gomp-devel
BuildRequires:  gcc-gfortran
BuildRequires:  mctc-lib-devel
BuildRequires:  openblas-devel
BuildRequires:  mstore-devel
BuildRequires:  rubygem-asciidoctor

%description
Electronegativity equilibration model for atomic partial charges.

%files
%license LICENSE
%doc README.md
%{_bindir}/multicharge
%{_mandir}/man1/multicharge.1*
#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
Electronegativity equilibration model for atomic partial charges.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for multicharge
Group:		Development/Other
Requires:	%{libname}%{?_isa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development headers for multicharge

%files -n %{devname}
%{_libdir}/libmulticharge.so
%{_fmoddir}/multicharge*.mod
%{_libdir}/pkgconfig/multicharge.pc

#------------------------------------------------------------------
%prep
%autosetup -p1

%build
# flexiblas64 not available on ix86 architecture
%meson -Dlapack=custom -Dcustom_libraries=openblas -Dilp64=false
%meson_build

%install
%meson_install
# Move Fortran modules to the right place
mkdir -p %{buildroot}%{_fmoddir}
mv %{buildroot}%{_includedir}/multicharge/gcc-*/*.mod %{buildroot}%{_fmoddir}
# Remove static library
rm %{buildroot}%{_libdir}/libmulticharge.a
sed -i 's|-I${includedir}/multicharge/gcc-.*|-I%{_fmoddir}|' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

%check
# some test need more increase timeout
#meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14832 |21mr|multipath-tools-0.8.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libmultipath %mklibname multipath %{major}
%define libmpathpersist %mklibname mpathpersist %{major}
%define libmpathcmd %mklibname mpathcmd %{major}
%define libdmmp %mklibname dmmp %{major}
%define libmpathvalid %mklibname mpathvalid %{major}
%define devname %mklibname multipath-tools -d
%define devdmmp %mklibname dmmp -d
%define devmpathvalid %mklibname mpathvalid -d

%define _disable_lto 1
%global __requires_exclude devel\\(libmpathcmd
%define systemd_ver %(pkg-config --modversion systemd 2> /dev/null)

%define _default_patch_fuzz 10

Summary:    Tools to manage multipathed devices with the device-mapper
Name:       multipath-tools
Version:	0.8.9
Release:	4
License:    GPLv2
Group:      System/Kernel and hardware
Url:        http://christophe.varoqui.free.fr/
Source0:    https://github.com/opensvc/multipath-tools/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:    multipath.conf
# mpathconf is needed for Anaconda
Patch0011:  0011-RH-add-mpathconf.patch
Patch0021:  0021-RH-Fix-nvme-compilation-warning.patch

Patch0100:	CVE-2022-41973.patch
Patch0101:	CVE-2022-41974-pre1.patch
Patch0102:	CVE-2022-41974.patch
Patch0103:	CVE-2022-41974-2.patch
Patch0104:	CVE-2022-41974-3.patch
Patch0105:	CVE-2022-41974-4.patch

BuildRequires:  libaio-devel
BuildRequires:  sysfsutils-devel
BuildRequires:  readline-devel
BuildRequires:  pkgconfig(liburcu)
BuildRequires:  pkgconfig(devmapper)
BuildRequires:  pkgconfig(ncursesw)
BuildRequires:  pkgconfig(json-c)
BuildRequires:  pkgconfig(libsystemd)
BuildRequires:  systemd

Requires:    dmsetup
Requires:    kpartx = %{EVRD}
# compat with Fedora/RH
Provides:   device-mapper-multipath = %{EVRD}

%description
This package provides the tools to manage multipathed devices by
instructing the device-mapper multipath module what to do. The tools
are:

- multipath:    scan the system for multipathed devices, assembles them
  and update the device-mapper's maps
- multipathd:    wait for maps events, then execs multipath
- kpartx:    maps linear devmaps upon device partitions, which makes
  multipath maps partionable

%package -n %{libmultipath}
Summary:    libmultipath library
Group:      System/Libraries

%description -n %{libmultipath}
This package ships the libmultipath library, part of multipath-tools.

%package -n %{libmpathpersist}
Summary:    libmpathpersist library
Group:      System/Libraries

%description -n %{libmpathpersist}
This package ships the libmpathpersist library, part of multipath-tools.

%package -n %{libmpathcmd}
Summary:    libmpathcmd library
Group:      System/Libraries

%description -n %{libmpathcmd}
This package ships the libmpathcmd library, part of multipath-tools.

%package -n %{libmpathvalid}
Summary:    libmpathcmd library
Group:      System/Libraries

%description -n %{libmpathvalid}
This package ships the limpathvalid library, part of multipath-tools.

%package -n %{devname}
Summary:   Development libraries and headers for %{name}
Group:     Development/C
Requires:  %{name} = %{EVRD}
Requires:  %{libmultipath} = %{EVRD}
Requires:  %{libmpathpersist} = %{EVRD}
Requires:  %{libmpathcmd} = %{EVRD}
Requires:  %{devdmmp} = %{EVRD}
Requires:  %{devmpathvalid} = %{EVRD}
Provides:  device-mapper-multipath-devel = %{EVRD}
Provides:  multipath-devel = %{EVRD}
Provides:  %{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the files need to develop applications that use
device-mapper-multipath's lbmpathpersist and libmpathcmd libraries.

%package -n kpartx
Summary:    Partition device manager for device-mapper devices
Group:      System/Kernel and hardware
Conflicts:  multipath-tools < 0.4.8-16

%description -n kpartx
kpartx manages partition creation and removal for device-mapper devices.

%package -n %{libdmmp}
Summary:    device-mapper-multipath C API library
Group:      System/Libraries
#Requires: json-c
Requires:   %{name} = %{EVRD}

%description -n %{libdmmp}
This package contains the shared library for the device-mapper-multipath
C API library.

%package -n %{devdmmp}
Summary:    device-mapper-multipath C API library headers
Group:      Development/C
Requires:   %{libdmmp} = %{EVRD}
Provides:   libdmmp-devel = %{EVRD}

%description -n %{devdmmp}
This package contains the files needed to develop applications that use
device-mapper-multipath's libdmmp C API library

%package -n %{devmpathvalid}
Summary:    device-mapper-multipath C API library headers
Group:      Development/C
Requires:   %{libmpathvalid} = %{EVRD}
Provides:   libmpathvalid-devel = %{EVRD}

%description -n %{devmpathvalid}
This package contains the files needed to develop applications that use
device-mapper-multipath's libmpathvalid C API library

%prep
%autosetup -p1

cp %{SOURCE1} .
%ifarch %{e2k}
sed -i 's/-Werror -Wall -Wextra/-Werror -Wall -Wextra -Wno-error=maybe-uninitialized/' Makefile.inc
%endif

%build
%make_build BUILD="glibc" OPTFLAGS="%{optflags} -Wno-strict-aliasing" LIB=%{_libdir} CC=%{__cc} plugindir=%{_libdir}/multipath prefix=%{_prefix} udevdir="/lib/udev" udevrulesdir="%{_udevrulesdir}" unitdir=%{_unitdir} SYSTEMD=%{systemd_ver}

%install
%make_install \
    syslibdir=%{_libdir} \
    usrlibdir=%{_libdir} \
    libdir=%{_libdir}/multipath \
    libudevdir="/lib/udev" \
    udevrulesdir="%{_udevrulesdir}" \
    unitdir=%{_unitdir} \
    includedir=%{_includedir} \
    pkgconfdir=%{_libdir}/pkgconfig

rm -rf %{buildroot}%{_sysconfig}/hotplug.d

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-multipathd.preset << EOF
enable multipathd.socket
EOF

# tree fix up
install -d %{buildroot}%{_sysconfdir}/multipath
rm -rf %{buildroot}/%{_initrddir}

install -m0644 %{SOURCE1} %{buildroot}/%{_sysconfdir}

%files
%doc README*
%dir %{_sysconfdir}/multipath
%config(noreplace) %{_sysconfdir}/multipath.conf
%{_udevrulesdir}/*path.rules
%{_udevrulesdir}/*part*.rules
%{_modulesloaddir}/multipath.conf
%{_tmpfilesdir}/multipath.conf
%{_presetdir}/86-multipathd.preset
%{_unitdir}/multipathd.service
%{_unitdir}/multipathd.socket
/sbin/multipath
/sbin/multipathd
/sbin/mpathconf
/sbin/mpathpersist
%dir %{_libdir}/multipath/
%{_libdir}/multipath/*
%{_mandir}/man?/*dmmp*
%{_mandir}/man?/multipath*
%{_mandir}/man?/mpath*

%files -n %{libmultipath}
%{_libdir}/libmultipath.so.%{major}{,.*}

%files -n %{libmpathpersist}
%{_libdir}/libmpathpersist.so.%{major}*

%files -n %{libmpathcmd}
%{_libdir}/libmpathcmd.so.%{major}*

%files -n %{libdmmp}
%{_libdir}/libdmmp.so.%{major}*

%files -n %{libmpathvalid}
%{_libdir}/libmpathvalid.so.%{major}*

%files -n %{devname}
%{_libdir}/libmpathpersist.so
%{_libdir}/libmpathcmd.so
%{_libdir}/libmultipath.so
%{_includedir}/mpath_cmd.h
%{_includedir}/mpath_persist.h
%{_mandir}/man3/mpath_persistent_reserve_in.3.*
%{_mandir}/man3/mpath_persistent_reserve_out.3.*

%files -n %{devdmmp}
%{_libdir}/libdmmp.so
%dir %{_includedir}/libdmmp
%{_includedir}/libdmmp/*
%{_mandir}/man3/dmmp_*
%{_mandir}/man3/libdmmp.h.3.*
%{_libdir}/pkgconfig/libdmmp.pc

%files -n %{devmpathvalid}
%{_includedir}/mpath_valid.h
%{_libdir}/libmpathvalid.so

%files -n kpartx
%{_udevrulesdir}/*kpartx.rules
/sbin/kpartx
/lib/udev/kpartx_id
%{_mandir}/man8/kpartx.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14833 |21mr|multithreadedtc-1.01-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global project_name MultithreadedTC
Name:           multithreadedtc
Version:        1.01
Release:        26
Summary:        A framework for testing concurrent Java application
License:        BSD 
URL:            http://www.cs.umd.edu/projects/PL/multithreadedtc
#http://multithreadedtc.googlecode.com/files/MultithreadedTC-1.01-source.zip
Source0:        %{project_name}-%{version}-source.zip
Source1:        %{name}.pom
Patch0:         %{name}-build.patch
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: java-devel >= 1:1.6.0
BuildRequires: jpackage-utils
BuildRequires: javapackages-local
BuildRequires: ant >= 0:1.6
BuildRequires: ant-junit
BuildRequires: junit

Requires:      jpackage-utils
Requires:      junit

%description
MultithreadedTC is a framework for testing concurrent applications. 
It features a metronome that is used to provide fine control over
the sequence of activities in multiple threads.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q -n %{project_name}-%{version}-source
%patch0 -p0 -b .sav

find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

sed -i 's/\r//' web/docs/package-list
sed -i 's/\r//' web/docs/stylesheet.css
sed -i 's/\r//' LICENSE.txt
sed -i 's/\r//' README.txt

%build
ant

%install

# jars
install -d -m 0755 %{buildroot}%{_javadir}
install -m 644 %{project_name}-%{version}.jar   %{buildroot}%{_javadir}/%{project_name}.jar

# poms
install -d -m 755 %{buildroot}%{_mavenpomdir}
install -pm 644 %{SOURCE1} \
    %{buildroot}%{_mavenpomdir}/JPP-%{project_name}.pom
%add_maven_depmap JPP-%{project_name}.pom %{project_name}.jar -a "edu.umd.cs.mtc:multithreadedtc-jdk14,com.googlecode.multithreadedtc:multithreadedtc"

# javadoc
install -d -m 0755 %{buildroot}%{_javadocdir}/%{name}
cp -pr web/docs/* %{buildroot}%{_javadocdir}/%{name}/
rm -rf web/docs

%files -f .mfiles
%doc LICENSE.txt README.txt

# Workaround for rpm bug, remove in F23
%pre javadoc
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :

%files javadoc
%doc LICENSE.txt
%{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14834 |21mr|multiverse-0.7.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           multiverse
Version:        0.7.0
Release:        11
Summary:        A software transactional memory implementation for the JVM
Group:          Development/Java
License:        ASL 2.0
URL:            http://multiverse.codehaus.org
Source0:        https://github.com/pveentjer/Multiverse/archive/multiverse-0.7.0.tar.gz
# Only the license header is included in the source
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.mockito:mockito-all)

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A software transactional memory implementation for the JVM. Access (read and
writes) to shared memory is done through transactional references, that can be
compared to the AtomicReferences of Java. Access to these references will be
done under A (atomicity), C (consistency), I (isolation) semantics.

%package javadoc
Summary:        JavaDoc for %{name}

%description javadoc
JavaDoc for %{name}.


%prep
%setup -q -n Multiverse-%{name}-%{version}

# wagon-webdav
%pom_xpath_remove pom:build/pom:extensions

%pom_remove_plugin :maven-deploy-plugin

cp -p %{SOURCE1} .

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt README.md

%files javadoc -f .mfiles-javadoc
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14835 |21mr|munge-maven-plugin-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           munge-maven-plugin
Version:        1.0
Release:        14
Summary:        Munge Maven Plugin
License:        CDDL-1.0
URL:            http://github.com/sonatype/munge-maven-plugin
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/sonatype/munge-maven-plugin/archive/munge-maven-plugin-1.0.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.sonatype.plugins:plugins-parent:pom:)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)

%description
Munge is a purposely-simple Java preprocessor. It only supports
conditional inclusion of source based on defined strings of the
form "if[tag]", "if_not[tag]", "else[tag]", and "end[tag]".
Unlike traditional preprocessors, comments, and formatting are all
preserved for the included lines. This is on purpose, as the output
of Munge will be distributed as human-readable source code.

To avoid creating a separate Java dialect, the conditional tags are
contained in Java comments. This allows one build to compile the
source files without pre-processing, to facilitate faster incremental
development. Other builds from the same source have their code contained
within that comment. The format of the tags is a little verbose, so
that the tags won't accidentally be used by other comment readers
such as javadoc. Munge tags must be in C-style comments;
C++-style comments may be used to comment code within a comment.

Like any preprocessor, developers must be careful not to abuse its
capabilities so that their code becomes unreadable. Please use it
as little as possible.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14836 |21mr|muparser-2.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A fast math parser library
Name:		muparser
Version:	2.2.5
Release:	2
License:	MIT
Group: 		System/Libraries
Url:		http://muparser.beltoforion.de/
Source0:	https://github.com/beltoforion/muparser/archive/v%{version}/%{name}-%{version}.tar.gz
Patch1:		muParser-1.30-gcc43.patch

%description
muParser is an extensible high performance math parser library. It is
based on transforming an expression into a bytecode and precalculating
constant parts of it.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains library files of muParser.

%files -n %{libname}
%doc Changes.txt
%{_libdir}/libmuparser.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files need to develop applications
based on muParser.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p0

%build
%configure \
	--enable-shared \
	--enable-static
make CXXFLAGS="%{optflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14837 |21mr|mupdf-1.23.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 23
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	MuPDF is a lightweight PDF viewer and toolkit written in portable C
Name:		mupdf
Version:	1.23.10
Release:	1
License:	GPLv3
Group:		Office
Url:		https://mupdf.com
Source0:	https://mupdf.com/downloads/archive/%{name}-%{version}-source.tar.gz
Source1:	mupdf.desktop
Source2:	mupdf16.png
Source3:	mupdf32.png
Source4:	mupdf48.png
Patch0:		https://src.fedoraproject.org/rpms/mupdf/raw/rawhide/f/dc339ceab37d962e91527068321790768262a42c.patch
Patch1:		https://src.fedoraproject.org/rpms/mupdf/raw/rawhide/f/0001-fix-time-type-on-i686.patch
Patch2:		https://src.fedoraproject.org/rpms/mupdf/raw/rawhide/f/0001-Makerules-fixes-for-shared-shared-library-installs-o.patch
Patch3:		https://src.fedoraproject.org/rpms/mupdf/raw/rawhide/f/0002-Makefile-scripts-wrap-__main__.py-Set-SONAME-when-li.patch
BuildRequires:	pkgconfig(freeglut)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(jbig2dec)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(mujs)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(zlib)

%description
MuPDF is a lightweight PDF viewer and toolkit written in portable C.

The renderer in MuPDF is tailored for high quality anti-aliased
graphics. MuPDF renders text with metrics and spacing accurate to
within fractions of a pixel for the highest fidelity in reproducing
the look of a printed page on screen.

MuPDF has a small footprint. A binary that includes the standard
Roman fonts is only one megabyte. A build with full CJK support
(including an Asian font) is approximately five megabytes.

MuPDF has support for all non-interactive PDF 1.7 features, and the
toolkit provides a simple API for accessing the internal structures of
the PDF document. Example code for navigating interactive links and
bookmarks, encrypting PDF files, extracting fonts, images, and
searchable text, and rendering pages to image files is provided.

%files
%doc CHANGES CONTRIBUTORS README
%{_defaultdocdir}/%{name}/examples
%license COPYING
%{_bindir}/muraster
%{_bindir}/mutool
%{_bindir}/%{name}-gl
%{_bindir}/%{name}-x11
%{_bindir}/%{name}-x11-curl
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_mandir}/man1/mutool.1*
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------

%package -n %{libname}
Summary:	MuPDF shared library
Group:		System/Libraries

%description -n %{libname}
MuPDF shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains header files for developing
applications that use MuPDF toolkit.

%files -n %{devname}
%license COPYING
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-source
rm -rf thirdparty/{curl,freeglut,freetype,harfbuzz,jbig2dec,lcms2,leptonica,libjpeg,mujs,openjpeg,tesseract,zlib}

%build
%setup_compile_flags
export XCFLAGS="%{optflags} -fPIC -DJBIG_NO_MEMENTO -DTOFU -DTOFU_CJK"
%make	\
	build=debug		\
	libdir=%{_libdir}	\
	prefix=%{_prefix}	\
	shared=yes		\
	USE_SYSTEM_FREETYPE=yes	\
	USE_SYSTEM_GUMBO=no	\
	USE_SYSTEM_LCMS2=yes	\
	USE_SYSTEM_LIBS=yes	\
	USE_SYSTEM_MUJS=yes

%install
%make_install	\
	build=debug		\
	install-shared-c	\
	libdir=%{_libdir}	\
	prefix=%{_prefix}	\
	shared=yes		\
	USE_SYSTEM_FREETYPE=yes	\
	USE_SYSTEM_GUMBO=no	\
	USE_SYSTEM_LCMS2=yes	\
	USE_SYSTEM_LIBS=yes	\
	USE_SYSTEM_MUJS=yes

strip %{buildroot}%{_libdir}/lib%{name}.so.%{major}*

rm -f %{buildroot}%{_defaultdocdir}/%{name}/COPYING

## fix strange permissons (Fedora)
find %{buildroot}%{_mandir} -type f -exec chmod 0644 {} \;
find %{buildroot}%{_docdir} -type f -exec chmod 0644 {} \;
find %{buildroot}%{_includedir} -type f -exec chmod 0644 {} \;

desktop-file-install --dir=%{buildroot}%{_datadir}/applications/ %{SOURCE1}

# install menu icons
install -D -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m 0644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m 0644 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14838 |21mr|murrine-0.98.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %{_lib}%{name}

# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

Summary:	Murrine GTK2 cairo theme
Name:		murrine
Version:	0.98.2
Release:	9
License:	GPLv2+
Group:		Graphical desktop/GNOME
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%name/%{name}-%{version}.tar.xz
Url:		http://www.cimitan.com/murrine/
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	%{libname}

%description
The Murrine engine is a cairo-based GTK2 theming tool. It's very fast compared
to clearlooks-cairo. Murrine includes animations and a unique style.

%files
%doc AUTHORS ChangeLog
%{_datadir}/gtk-engines/murrine.xml

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Murrine GTK2 cairo theme
Group:		System/Libraries
Conflicts:	murrine < 0.53.1-2
Requires:	%{name} >= %{version}

%description -n %{libname}
The Murrine engine is a cairo-based GTK2 theming tool. It's very fast compared
to clearlooks-cairo. Murrine includes animations and a unique style.
This package contains the Murrine GTK+ engine itself.

%files -n %{libname}
%{_libdir}/gtk-2.0/*/engines/libmurrine.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-animation
%make

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14839 |21mr|mustache-java-0.9.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Optionally build with a reduced dependency set
%bcond_with jp_minimal

%global oname mustache.java

Name:          mustache-java
Version:       0.9.6
Release:       1
Summary:       Implementation of mustache.js for Java
License:       ASL 2.0
URL:           https://github.com/spullara/mustache.java/
Source0:       https://github.com/spullara/mustache.java/archive/%{oname}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.google.guava:guava:20.0)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-api)
%if %{without jp_minimal}
BuildRequires:  mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-yaml)
BuildRequires:  mvn(com.github.spullara.cli-parser:cli-parser)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
%endif

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Obsoletes added in F30
# Benchmarks are not really useful for users, so don't bother shipping them
Obsoletes: %{name}-benchmarks < %{version}-%{release}

%description
Implementation of the Mustache language in Java.
Mustache.java is a derivative of mustache.js.

%package maven-plugin
Summary: Mustache Maven Mojo

%description maven-plugin
A maven plugin to process mustache templates in a maven build.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{oname}-%{oname}-%{version}

%pom_disable_module scala-extensions
%pom_disable_module benchmarks

# Not needed for RPM builds
%pom_remove_plugin :maven-assembly-plugin handlebar
%pom_remove_plugin :maven-assembly-plugin compiler

%if %{with jp_minimal}
# Build without cli/webserver support
%pom_remove_dep "org.eclipse.jetty:" handlebar
%pom_remove_dep "com.github.spullara.cli-parser:" handlebar
rm handlebar/src/main/java/com/sampullara/mustache/Handlebar.java
# Build without yaml tests
%pom_remove_dep ":jackson-dataformat-yaml" compiler
rm compiler/src/test/java/com/github/mustachejava/{SpecTest.java,simple/SimpleSpecTest.java}
%else
# Fix manifest entries for cli/webserver support
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin handlebar "
<configuration>
  <archive>
    <manifest>
      <addClasspath>false</addClasspath>
      <mainClass>com.sampullara.mustache.Handlebar</mainClass>
    </manifest>
  </archive>
</configuration>"
%endif

%mvn_package com.github.spullara.mustache.java:mustache-maven-plugin maven-plugin
%mvn_package com.github.spullara.mustache.java:compiler::tests:

%build
# Test fails at random on ARM builder
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files maven-plugin -f .mfiles-maven-plugin
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14840 |21mr|mutagen-1.45.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Audio tag tools
Name:		mutagen
Version:	1.45.1
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://mutagen.readthedocs.org/en/latest/
Source0:	https://github.com/quodlibet/mutagen/archive/release-%{version}.tar.gz
Requires:	python3-%{name}

BuildArch:	noarch

%description
Mutagen is an audio metadata tag reader and writer implemented in pure Python.
It supports reading ID3v1.1, ID3v2.2, ID3v2.3, ID3v2.4, APEv2, and FLAC, and
writing ID3v1.1, ID3v.2.3, ID3v2.4, APEv2, and FLAC.
The goals are (in rough order of importance):
    * Read as many files as possible.
    * Compatibility with as many other tag readers and editors as possible.
    * Compliance with the relevant specifications.
    * Written in Pythonic Python, with a Pythonic API.
    * Unit and regression test suite.
    * Provide access to all features of the supported formats.
    * Easily extensible.

%files
%doc COPYING NEWS README.rst
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 library for Mutagen
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Conflicts:	%{name} < 1.38

%description -n python3-%{name}
Python3 library for Mutagen.

%files -n python3-%{name}
%doc COPYING
%{python3_sitelib}/%{name}
%{python3_sitelib}/%{name}-%{version}-*egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14841 |21mr|mutter-42.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%global __requires_exclude devel\\(libmutter-.*

%define url_ver %(echo %{version}|cut -d. -f1)

%define gir_major 3.0
%define api 10
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{gir_major}
%define devname %mklibname %{name} -d

Summary:	Gnome window manager
Name:		mutter
Version:	42.9
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/mutter
Source0:	https://download.gnome.org/sources/mutter/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		mutter-42.9-default-check-alive-timeout.patch
BuildRequires:	chrpath
BuildRequires:	gettext-devel
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-egl-1.0)
BuildRequires:	pkgconfig(clutter-wayland-1.0)
BuildRequires:	pkgconfig(clutter-wayland-compositor-1.0)
BuildRequires:	pkgconfig(cogl-1.0)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-settings-daemon)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(graphene-gobject-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libwacom)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(sysprof-capture-4)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-eglstream-protocols)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(x11-xcb)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xkeyboard-config)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xwayland)
BuildRequires:	sysprof
BuildRequires:	x11-server-xvfb
BuildRequires:	x11-server-xwayland
BuildRequires:	zenity
Requires:	GConf2
Requires:	zenity
Requires:	typelib(Meta)
Obsoletes:	mutter <= 41.4

%description
Mutter is a simple window manager that integrates nicely with GNOME.

%files -f %{name}.lang
%doc COPYING NEWS
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/GConf/gsettings/%{name}-schemas.convert
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.wayland.gschema.xml
%{_datadir}/gnome-control-center/keybindings/50-%{name}-*.xml
%{_libexecdir}/%{name}-restart-helper
%{_libdir}/%{name}-%{api}/plugins/libdefault.so
%{_libdir}/%{name}-%{api}/*.so*
%{_mandir}/man1/%{name}.1*
%{_udevrulesdir}/61-%{name}.rules

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for Mutter
Group:		System/Libraries
Obsoletes:	%{mklibname mutter 8 0} <= 41
Obsoletes:	%{mklibname mutter 9 0} <= 41.4

%description -n %{libname}
This package contains libraries used by Mutter.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/%{name}-%{api}/*.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files with Mutter
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with Mutter.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/%{name}-%{api}/*.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Degl_device=true		\
	-Dwayland_eglstream=true	\
	-Dinstalled_tests=false
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14842 |21mr|mvel-2.2.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          mvel
Version:       2.2.8
Release:       8
Summary:       MVFLEX Expression Language
License:       ASL 2.0
Url:           https://github.com/mvel
Source0:       https://github.com/mvel/mvel/archive/%{name}2-%{namedversion}.tar.gz
Source1:       %{name}-script
Patch0:        %{name}-2.2.7.Final-use-system-asm.patch
# remove tests which require internal objectweb-asm libraries
Patch1:        %{name}-2.2.8.Final-tests.patch

BuildRequires: maven-local
BuildRequires: mvn(com.thoughtworks.xstream:xstream)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-report-plugin)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.ow2.asm:asm-util)
# Explicit requires for javapackages-tools since mvel script
# uses /usr/share/java-utils/java-functions
Requires:      javapackages-tools

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
MVEL is a powerful expression language for Java-based applications. It
provides a plethora of features and is suited for everything from the
smallest property binding and extraction, to full blown scripts.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}2-%{namedversion}
find . -name "*.jar" -delete
find . -name "*.class" -delete

rm ASM-LICENSE.txt

%patch0 -p1
rm -rf src/main/java/org/mvel2/asm
%patch1 -p1

# See https://bugzilla.redhat.com/show_bug.cgi?id=1095339
sed -i '/Unsafe/d' src/main/java/org/mvel2/util/JITClassLoader.java

# Unwanted task
%pom_remove_plugin :maven-source-plugin
# Remove org.apache.maven.wagon:wagon-webdav:1.0-beta-2
%pom_xpath_remove "pom:project/pom:build/pom:extensions"

sed -i 's/\r//' LICENSE.txt

# fix non ASCII chars
native2ascii -encoding UTF8 src/main/java/org/mvel2/sh/ShellSession.java src/main/java/org/mvel2/sh/ShellSession.java

%mvn_file :%{name}2 %{name}

%build

# Tests fails only on ARM builder
%mvn_build -f

%install
%mvn_install

mkdir -p %{buildroot}%{_bindir}
install -pm 755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}

%files -f .mfiles
%{_bindir}/%{name}
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14843 |21mr|mx4j-3.0.1-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           mx4j
Version:        3.0.1
Release:        31
Epoch:          1
Summary:        Open source implementation of JMX Java API
License:        ASL 1.1
Group:          Development/Java
Source0:        %{name}-%{version}-src.tar.gz
Source1:        %{name}-build.policy
Source2:        CatalogManager.properties

Source3:        http://repo1.maven.org/maven2/mx4j/mx4j/%{version}/mx4j-%{version}.pom
Source4:        http://repo1.maven.org/maven2/mx4j/mx4j-jmx/%{version}/mx4j-jmx-%{version}.pom
Source5:        http://repo1.maven.org/maven2/mx4j/mx4j-jmx-remote/%{version}/mx4j-jmx-remote-%{version}.pom
Source6:        http://repo1.maven.org/maven2/mx4j/mx4j-remote/%{version}/mx4j-remote-%{version}.pom
Source7:        http://repo1.maven.org/maven2/mx4j/mx4j-tools/%{version}/mx4j-tools-%{version}.pom
# not available
Source8:        http://repo1.maven.org/maven2/mx4j/mx4j-impl/2.1.1/mx4j-impl-2.1.1.pom
Source9:        http://repo1.maven.org/maven2/mx4j/mx4j-rimpl/2.1.1/mx4j-rimpl-2.1.1.pom
Source10:       http://repo1.maven.org/maven2/mx4j/mx4j-rjmx/2.1.1/mx4j-rjmx-2.1.1.pom

Patch0:         mx4j-javaxssl.patch
Patch1:         mx4j-%{version}.patch
Patch2:         mx4j-build.patch
Patch3:         mx4j-docbook.patch
Patch5:         mx4j-caucho-build.patch
Patch6:         mx4j-no-iiop.patch
URL:            http://mx4j.sourceforge.net/
BuildRequires:  jpackage-utils > 0:1.6
BuildRequires:  javapackages-local
BuildRequires:  ant >= 0:1.6
BuildRequires:  ant-apache-resolver
BuildRequires:  javamail >= 0:1.2-5jpp
BuildRequires:  log4j >= 0:1.2.7
BuildRequires:  apache-commons-logging >= 0:1.0.1
BuildRequires:  xml-commons-apis
BuildRequires:  bcel >= 0:5.0
BuildRequires:  coreutils
BuildRequires:  wsdl4j
BuildRequires:  apache-commons-discovery
BuildRequires:  docbook-dtds >= 0:1.0
BuildRequires:  docbook-style-xsl >= 0:1.61
BuildRequires:  xml-commons-resolver
BuildRequires:  xml-commons
BuildRequires:  xerces-j2
BuildRequires:  dos2unix
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Requires(post):       %{_sbindir}/update-alternatives
Requires(postun):       %{_sbindir}/update-alternatives
Requires:       javamail >= 0:1.2-5jpp
Requires:       log4j >= 0:1.2.7
Requires:       apache-commons-logging >= 0:1.0.1
Requires:       xml-commons-apis
Requires:       bcel >= 0:5.0
Requires:       xml-commons-resolver
Requires:       xml-commons

%description
OpenJMX is an open source implementation of the
Java(TM) Management Extensions (JMX).

%package javadoc
Summary:        Javadoc for %{name}
Requires:       jpackage-utils

%description javadoc
Javadoc for %{name}.

%package manual
Summary:        Documentation for %{name}

%description    manual
Documentation for %{name}.

%prep
%setup -q

# FIXME To enable iiop when rmic becomes available
# turn off patch6 and turn on patch4
# Patch4 is a backport of upstream changes (MX4J) and may go
# away on future releases
%patch0 -p1
%patch1 -p0
%patch2 -b .sav
%patch3 -p1
%patch5 -p1
%patch6 -p1

cp %{SOURCE1} build
cp %{_sourcedir}/CatalogManager.properties %{_builddir}/%{name}-%{version}/build/

cp %{SOURCE8} %{name}-impl-%{version}.pom
cp %{SOURCE9} %{name}-rimpl-%{version}.pom
cp %{SOURCE10} %{name}-rjmx-%{version}.pom
sed -i "s|<version>2.1.1</version>|<version>%{version}</version>|" %{name}-*-%{version}.pom

pushd lib
   ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
   ln -sf $(build-classpath xerces-j2) xercesImpl.jar
   ln -sf $(build-classpath xalan-j2) xalan.jar
   ln -sf $(build-classpath commons-logging) .
   ln -sf $(build-classpath log4j) .
   ln -sf $(build-classpath bcel) .
   ln -sf $(build-classpath wsdl4j) .
   ln -sf $(build-classpath commons-discovery) .
   ln -sf $(build-classpath servlet25) servlet.jar
   ln -sf $(build-classpath javamail/mail) .
   ln -sf $(build-classpath xml-commons-resolver) .
popd

# Don't build bits that require Axis 1.x since it is insecure and unmaintained upstream
#rm src/tools/mx4j/tools/remote/resolver/soap/SOAPResolver.java
find src/tools/mx4j/tools/remote/soap -type f -delete
find src/tools/mx4j/tools/remote/provider/soap -type f -delete
find src/tools/mx4j/tools/remote/resolver/soap -type f -delete

%build

export OPT_JAR_LIST="ant/ant-junit junit xmlunit jaxp_transform_impl ant/ant-apache-resolver xml-commons-resolver xalan-j2-serializer"

cd build
ant -Dbuild.sysclasspath=first compile.jmx compile.rjmx compile.tools javadocs docs

%install
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
install -m 644 dist/lib/%{name}-impl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-impl.jar
install -m 644 dist/lib/%{name}-jmx.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-jmx.jar
install -m 644 dist/lib/%{name}.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}.jar
install -m 644 dist/lib/%{name}-tools.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-tools.jar
install -m 644 dist/lib/%{name}-rjmx.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-rjmx.jar
install -m 644 dist/lib/%{name}-rimpl.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-rimpl.jar
install -m 644 dist/lib/%{name}-remote.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}-remote.jar
install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}/boa
install -m 644 dist/lib/boa/%{name}-rjmx-boa.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/boa/%{name}-rjmx-boa.jar
install -m 644 dist/lib/boa/%{name}-rimpl-boa.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/boa/%{name}-rimpl-boa.jar
install -m 644 dist/lib/boa/%{name}-remote-boa.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/boa/%{name}-remote-boa.jar

install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}.pom
%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar
install -pm 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-jmx.pom
%add_maven_depmap JPP.%{name}-%{name}-jmx.pom %{name}/%{name}-jmx.jar
install -pm 644 %{SOURCE6} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-remote.pom
%add_maven_depmap JPP.%{name}-%{name}-remote.pom %{name}/%{name}-remote.jar
install -pm 644 %{SOURCE7} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-tools.pom
%add_maven_depmap JPP.%{name}-%{name}-tools.pom %{name}/%{name}-tools.jar

install -pm 644 %{name}-impl-%{version}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-impl.pom
%add_maven_depmap JPP.%{name}-%{name}-impl.pom %{name}/%{name}-impl.jar
install -pm 644 %{name}-rimpl-%{version}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-rimpl.pom
%add_maven_depmap JPP.%{name}-%{name}-rimpl.pom %{name}/%{name}-rimpl.jar
install -pm 644 %{name}-rjmx-%{version}.pom $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}-rjmx.pom
%add_maven_depmap JPP.%{name}-%{name}-rjmx.pom %{name}/%{name}-rjmx.jar

install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
dos2unix dist/docs/styles.css README.txt LICENSE.txt
cp -r dist/docs/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

%pre
rm -f %{_javadir}/%{name}.jar

%post
%{_sbindir}/update-alternatives --install %{_javadir}/jmxri.jar jmxri %{_javadir}/%{name}/%{name}-jmx.jar 0

%postun
if [ "$1" = "0" ]; then
  %{_sbindir}/update-alternatives --remove jmxri %{_javadir}/%{name}/%{name}-jmx.jar
fi

%files -f .mfiles
%{_javadir}/%{name}/boa/
%doc LICENSE.txt
%doc README.txt

%files javadoc
%{_javadocdir}/%{name}

%files manual
%doc dist/docs/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14844 |21mr|mybatis-3.2.8-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Started: Wed, 06 Jul 2016 13:50:35 UTC
# Terminated: Thu, 07 Jul 2016 06:37:46 UTC
%bcond_with test

Name:          mybatis
Version:       3.2.8
Release:       11
Summary:       SQL Mapping Framework for Java
License:       ASL 2.0
# http://code.google.com/p/mybatis/
URL:           http://www.mybatis.org/
Source0:       https://github.com/mybatis/mybatis-3/archive/%{name}-%{version}.tar.gz
# thanks to jhernand
# replace ognl ognl with apache-commons-ognl
Patch0:        %{name}-%{version}-commons-ognl.patch

Patch1:        mybatis-3.2.8-log4j2.6.patch

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.commons:commons-ognl)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.mybatis:mybatis-parent:pom:)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)

%if %{with test}
# test deps
BuildRequires: mvn(commons-dbcp:commons-dbcp)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.derby:derby)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires: mvn(org.apache.velocity:velocity)
BuildRequires: mvn(org.hsqldb:hsqldb)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(postgresql:postgresql)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The MyBatis data mapper framework makes it easier
to use a relational database with object-oriented
applications. MyBatis couples objects with stored
procedures or SQL statements using a XML descriptor
or annotations. Simplicity is the biggest advantage
of the MyBatis data mapper over object relational
mapping tools.

To use the MyBatis data mapper, you rely on your
own objects, XML, and SQL. There is little to
learn that you don't already know. With the
MyBatis data mapper, you have the full power of
both SQL and stored procedures at your fingertips. 

The MyBatis project is developed and maintained by
a team that includes the original creators of the
"iBATIS" data mapper. The Apache project was retired
and continued here.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-3-%{name}-%{version}

%patch0 -p1
%patch1 -p1

%pom_remove_plugin :maven-pdf-plugin
%pom_remove_plugin :jarjar-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin

sed -i 's/\r//' LICENSE NOTICE

%if %{with test}
%pom_remove_dep javax.transaction:transaction-api
%pom_add_dep org.apache.geronimo.specs:geronimo-jta_1.1_spec::test

# Fails on java8
rm src/test/java/org/apache/ibatis/parsing/GenericTokenParserTest.java

rm src/test/java/org/apache/ibatis/submitted/multipleresultsetswithassociation/MultipleResultSetTest.java \
 src/test/java/org/apache/ibatis/submitted/includes/IncludeTest.java \
 src/test/java/org/apache/ibatis/submitted/resultmapwithassociationstest/ResultMapWithAssociationsTest.java \
 src/test/java/org/apache/ibatis/submitted/nestedresulthandler_association/NestedResultHandlerAssociationTest.java

rm src/test/java/org/apache/ibatis/logging/LogFactoryTest.java
%endif

%mvn_file :%{name} %{name}

%build
# Test suite skipped

%if %{without test}
opts="-f"
%endif
%mvn_build $opts -- -Dproject.build.sourceEncoding=UTF-8
 
%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14845 |21mr|mybatis-generator-1.3.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          mybatis-generator
Version:       1.3.2
Release:       14
Summary:       A code generator for MyBatis and iBATIS
License:       ASL 2.0
URL:           http://www.mybatis.org/
Source0:       https://github.com/mybatis/generator/archive/%{name}-%{version}.tar.gz

BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-launcher)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.mybatis:mybatis)
BuildRequires: mvn(org.mybatis:mybatis-parent:pom:)
# test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-ognl)
BuildRequires: mvn(org.hsqldb:hsqldb)


BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-plugin-plugin
BuildRequires: maven-surefire-report-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
MyBatis Generator (MBG) is a code generator for MyBatis and iBATIS.

%package maven-plugin
Summary:       MyBatis Generator Maven Plugin

%description maven-plugin
MyBatis Generator Maven Plugin.

%package systests-common
Summary:       MyBatis Generator Tests (Common Classes)

%description systests-common
MyBatis Generator Tests (Common Classes).

%package systests-mybatis3
Summary:       MyBatis Generator Tests (MyBatis3)

%description systests-mybatis3
MyBatis Generator Tests (MyBatis3).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n generator-%{name}-%{version}

%pom_remove_dep :cobertura
%pom_remove_dep :cobertura mybatis-generator-systests-mybatis3
%pom_xpath_remove "pom:dependency[pom:artifactId= '%{name}-core']/pom:classifier" %{name}-systests-mybatis3

%pom_remove_dep :cobertura mybatis-generator-systests-ibatis2-java2
%pom_xpath_remove "pom:dependency[pom:artifactId= '%{name}-core']/pom:classifier" %{name}-systests-ibatis2-java2
%pom_remove_dep :cobertura mybatis-generator-systests-ibatis2-java5
%pom_xpath_remove "pom:dependency[pom:artifactId= '%{name}-core']/pom:classifier" %{name}-systests-ibatis2-java5


# Unavailable deps org.apache.ibatis:ibatis-sqlmap:2.3.4.726
%pom_disable_module %{name}-systests-ibatis2-java2
%pom_disable_module %{name}-systests-ibatis2-java5
%pom_remove_dep :ibatis-sqlmap

# Remove, cause build failure
%pom_remove_plugin :maven-enforcer-plugin

# Unavailable plugin
%pom_remove_plugin :maven-gcu-plugin %{name}-core
%pom_remove_plugin :jdepend-maven-plugin %{name}-core
# Unwanted plugin
%pom_remove_plugin :maven-install-plugin %{name}-core
%pom_remove_plugin :maven-assembly-plugin %{name}-core
%pom_remove_plugin :maven-javadoc-plugin %{name}-core
%pom_remove_plugin :maven-release-plugin %{name}-core
%pom_remove_plugin :maven-site-plugin %{name}-core
%pom_remove_plugin :maven-source-plugin %{name}-core
# Disable cobertura plugin
%pom_remove_plugin :cobertura-maven-plugin %{name}-core
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" %{name}-core

# java.lang.NoClassDefFoundError: org/apache/commons/ognl/PropertyAccessor
%pom_add_dep org.apache.commons:commons-ognl::test mybatis-generator-systests-mybatis3


sed -i 's/\r//' LICENSE NOTICE %{name}-core/doc/*

%mvn_package ":%{name}" %{name}
%mvn_package ":%{name}-core" %{name}

%build

%mvn_build -s -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles-%{name}
%doc %{name}-core/doc/*
%license LICENSE NOTICE

%files maven-plugin -f .mfiles-%{name}-maven-plugin
%license LICENSE NOTICE

%files systests-common -f .mfiles-%{name}-systests-common
%license LICENSE NOTICE

%files systests-mybatis3 -f .mfiles-%{name}-systests-mybatis3
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14846 |21mr|mybatis-parent-21-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          mybatis-parent
Version:       21
Release:       11
Summary:       The MyBatis parent POM
License:       ASL 2.0
URL:           http://www.mybatis.org/
Source0:       https://github.com/mybatis/parent/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The MyBatis parent POM which has to be inherited by all MyBatis modules.

%prep
%setup -q -n parent-%{name}-%{version}
# require com.github.stephenc.wagon:wagon-gitsite:0.4.1
%pom_remove_plugin org.apache.maven.plugins:maven-site-plugin
# unavailable plugins
%pom_remove_plugin org.apache.maven.plugins:maven-pdf-plugin
%pom_remove_plugin org.sonatype.plugins:jarjar-maven-plugin
%pom_remove_plugin org.sonatype.plugins:nexus-maven-plugin
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin
%pom_remove_plugin org.codehaus.mojo:jdepend-maven-plugin
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%pom_remove_plugin org.codehaus.mojo:taglist-maven-plugin

# animal-sniffer is currently broken. it uses asm4, but asm3 is loaded
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin

%pom_remove_plugin :maven-scm-plugin

# remove com.google.doclava:doclava:1.0.3
# javac.target.version is set 1.5
%pom_xpath_remove "pom:reporting/pom:plugins/pom:plugin[pom:artifactId ='maven-javadoc-plugin']/pom:configuration"
%pom_xpath_inject "pom:reporting/pom:plugins/pom:plugin[pom:artifactId ='maven-javadoc-plugin']" '
 <configuration>
  <minmemory>128m</minmemory>
  <maxmemory>1024m</maxmemory>
  <breakiterator>true</breakiterator>
  <quiet>true</quiet>
  <verbose>false</verbose>
  <source>${javac.target.version}</source>
  <linksource>true</linksource>
</configuration>'

%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId ='maven-enforcer-plugin']/pom:executions/pom:execution/pom:configuration/pom:rules/pom:requirePluginVersions"

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14847 |21mr|mypaint-brushes-2.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Default MyPaint brushes
Name:		mypaint-brushes
Version:	2.0.2
Release:	2
License:	GPLv2+
Group:		Editors
Url:		https://github.com/Jehan/mypaint-brushes
Source0:	https://github.com/mypaint/mypaint-brushes/releases/download/v2.0.2/%{name}-%{version}.tar.xz
Source1:	%{name}.rpmlintrc
BuildRequires:	intltool
BuildArch:	noarch

%description
Default MyPaint brushes.

%files
%doc AUTHORS COPYING README*
%dir %{_datadir}/mypaint-data/2.0/brushes
%{_datadir}/mypaint-data/2.0/brushes/classic
%{_datadir}/mypaint-data/2.0/brushes/deevad
%{_datadir}/mypaint-data/2.0/brushes/experimental
%{_datadir}/mypaint-data/2.0/brushes/kaerhon_v1
%{_datadir}/mypaint-data/2.0/brushes/ramon
%{_datadir}/mypaint-data/2.0/brushes/tanda
%{_datadir}/mypaint-data/2.0/brushes/order.conf
%{_datadir}/mypaint-data/2.0/brushes/Dieterle

#-----------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Development files for %{name}.

%files devel
%{_datadir}/pkgconfig/mypaint-brushes-2.0.pc

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14848 |21mr|mysema-commons-lang-0.2.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          mysema-commons-lang
Version:       0.2.4
Release:       10
Summary:       Mysema Commons Lang
License:       ASL 2.0
URL:           http://www.mysema.com/
# often is offline https://github.com/querydsl/querydsl/issues/1080
# svn export https://source.mysema.com/svn/mysema/projects/commons/lang/tags/lang-0.2.4/ mysema-commons-lang-0.2.4
# tar cJf mysema-commons-lang-0.2.4.tar.xz mysema-commons-lang-0.2.4
Source0:       http://repo1.maven.org/maven2/com/mysema/commons/%{name}/%{version}/%{name}-%{version}-sources.jar
Source1:       http://repo1.maven.org/maven2/com/mysema/commons/%{name}/%{version}/%{name}-%{version}.pom
# mysema-commons-lang package don't include the license file
Source2:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-jar-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Mysema Commons Lang provides:

* General assertion utilities
* Empty implementation of the CloseableIterator interface
* Adapter implementation for Iterator and CloseableIterator instances
* Typed pair of values
* URIResolver provides URI resolving functionality
* URLEncoder provides URL encoding functionality

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -T -q -c

mkdir -p src/main/{java,resources}
(
  cd src/main/java
  %jar -xf %{SOURCE0}
  rm -rf META-INF
)

# clone source directory structure
find src/main/java/ -type d | while read dirname ; do
  newdirname=`echo $dirname | sed "s:src/main/java:src/main/resources:g"`
  mkdir -p $newdirname
done

# copy everything except *.java sources
find src/main/java/ -type f | grep -v "\.java" | while read cpfrom ; do
  cpto=`echo $cpfrom | sed "s:src/main/java:src/main/resources:g"`
  cp $cpfrom $cpto
done


cp -p %{SOURCE1} pom.xml

%pom_remove_parent
%pom_remove_plugin com.springsource.bundlor:com.springsource.bundlor.maven
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<configuration>
 <instructions>
  <Bundle-Name>Commons Lang</Bundle-Name>
  <Bundle-SymbolicName>com.mysema.commons.lang</Bundle-SymbolicName>
  <Bundle-Vendor>Mysema</Bundle-Vendor>
  <Export-Package>com.mysema.commons.lang*;version="${project.version}"</Export-Package>
 </instructions>
</configuration>
<executions>
 <execution>
  <id>bundle-manifest</id>
  <phase>process-classes</phase>
  <goals>
    <goal>manifest</goal>
  </goals>
 </execution>
</executions>'

%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:useDefaultManifestFile"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration" '
<archive>
 <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>'

cp -p %{SOURCE2} LICENSE
sed -i 's/\r//' LICENSE

%mvn_file com.mysema.commons:%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14849 |21mr|myspell-dictionaries-1.0.2-42
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dictdir %{_datadir}/dict/ooo
%define debug_package %{nil}

%define _binary_payload w9.lzdio

Summary:	MySpell Spelling and Hyphenation dictionaries
Name:		myspell-dictionaries
Version:	1.0.2
Release:	42
License:	BSD/GPL/LGPL
Group:		System/Internationalization
Url:		http://lingucomponent.openoffice.org/download_dictionary.html
Source0:	myspell-genpackages.sh
BuildRequires:	unzip
BuildArch:	noarch

##
## Sources for spell checking dictionaries
##

Source100:	bg_BG.zip
Source101:	ca_ES.zip
Source102:	hr_HR.zip
Source103:	cs_CZ.zip
Source104:	da_DK.zip

# From https://www.uitwisselplatform.nl/frs/?group_id=9
Source105:	nl_NL.zip

Source106:	en_CA.zip
Source107:	en_GB.zip
Source108:	en_US.zip
Source109:	fr_FR.zip
# This is actually de_DE_comb renamed in order to not mess the current spec.
Source110:	de_DE.zip
Source111:	de_CH.zip
Source112:	el_GR.zip
Source113:	hu_HU.zip
Source114:	it_IT.zip

# (tpg) MySpell dictionary comes from http://www.sjp.pl/slownik/ort/
# unzip http://sjp.pl/slownik/ort/sjp-myspell-pl-20080825.zip
Source115:	pl_PL.zip

Source116:	pt_PT.zip
Source117:	pt_BR.zip
Source118:	es_ES.zip
# http://www.sk-spell.sk.cx/file_download/63/hunspell-sk-20090330.zip
Source119:	sk_SK.zip
Source120:	sv_SE.zip
Source121:	nb_NO.zip
Source122:	nn_NO.zip
Source123:	ga_IE.zip
Source124:	gl_ES.zip
Source126:	sl_SI.zip
Source127:	uk_UA.zip
Source128:	de_AT.zip
Source129:	en_AU.zip
Source130:	es_MX.zip
Source131:	fo_FO.zip
Source132:	lt_LT.zip

Source133:	ftp://ftp.linux.ee/pub/openoffice/contrib/dictionaries/et_EE.zip

# http://sourceforge.net/project/showfiles.php?group_id=91920
Source134:	af_ZA.zip

Source135:	cy_GB.zip
Source136:	en_NZ.zip
Source137:	id_ID.zip
Source138:	zu_ZA.zip
Source139:	ro_RO.zip
Source140:	mi_NZ.zip
Source141:	sw_KE.zip
Source142:	ms_MY.zip

Source143:	am_AM.zip
Source144:	ar_AR.zip
Source145:	az_AZ.zip
Source146:	bn_BN.zip
Source147:	cop_EG.zip
Source148:	csb_CSB.zip
Source149:	en_ZA.zip
Source150:	eo_EO.zip
Source151:	eu_ES.zip
Source152:	fa_FA.zip
Source153:	fa_IR.zip
Source155:	fj_FJ.zip
Source156:	fur_IT.zip
Source157:	fy_NL.zip
Source158:	gd_GB.zip
Source159:	gsc_FR.zip
Source160:	he_IL.zip
Source161:	hi_IN.zip
Source162:	hy_AM.zip
Source164:	is_IS.zip
Source163:	th_TH.zip
Source165:	km_KH.zip
Source166:	ku_TR.zip
Source167:	la_LA.zip
Source168:	lv_LV.zip
Source169:	mg_MG.zip
Source170:	mn_MN.zip
Source171:	mr_IN.zip
Source172:	ne_NP.zip
Source173:	nr_ZA.zip
Source174:	ns_ZA.zip
Source175:	ny_MW.zip
Source176:	oc_FR.zip
Source177:	or_OR.zip
Source178:	pa_PA.zip
Source179:	qu_BO.zip
Source180:	rw_RW.zip
Source181:	ss_ZA.zip
Source182:	st_ZA.zip
Source183:	sw_TZ.zip
Source184:	ta_TA.zip
Source185:	tet_ID.zip
Source186:	tl_PH.zip
Source187:	tn_ZA.zip
Source188:	ts_ZA.zip
Source190:	uz_UZ.zip
Source191:	ve_ZA.zip
Source192:	vi_VI.zip
Source193:	xh_ZA.zip

##
## Sources for hyphenation dictionaries
##

# See http://bgoffice.sourceforge.net/ooo/index.html
Source200:	hyph_bg_BG.zip
Source201:	hyph_cs_CZ.zip
Source202:	hyph_da_DK.zip
Source203:	hyph_de_CH.zip
Source204:	hyph_de_DE.zip
Source205:	hyph_el_GR.zip
Source206:	hyph_en_CA.zip
Source207:	hyph_en_GB.zip
Source208:	hyph_en_US.zip
Source209:	hyph_es_ES.zip
Source210:	hyph_et_EE.zip
Source211:	hyph_fi_FI.zip
Source212:	hyph_fr_BE.zip
Source213:	hyph_fr_FR.zip
Source214:	hyph_ga_IE.zip
Source215:	hyph_hu_HU.zip
Source216:	hyph_id_ID.zip
Source217:	hyph_is_IS.zip
Source218:	hyph_it_IT.zip
Source219:	hyph_lt_LT.zip
Source220:	hyph_nl_NL.zip
Source221:	hyph_pl_PL.zip
Source222:	hyph_pt_BR.zip
Source223:	hyph_pt_PT.zip
Source224:	hyph_ro_RO.zip
Source226:	hyph_sk_SK.zip
Source227:	hyph_sl_SI.zip
Source228:	hyph_sv_SE.zip
Source229:	hyph_uk_UA.zip

##
## Sources for hyphenation dictionaries
##

Source300:	th_en_US.zip
Source301:	th_fr_FR.zip
# http://it.openoffice.org/contribuire/thesaurus.html (alpha version!!!)
Source302:	th_it_IT.zip
Source303:	th_de_DE.zip
# http://synonimy.sourceforge.net/
Source304:	th_pl_PL.zip
Source305:	th_es_ES.zip
## http://bgoffice.sourceforge.net/ooo/
Source306:	th_bg_BG.zip
# http://www.sk-spell.sk.cx/thesaurus/download/OOo-Thesaurus2-sk_SK.zip
# (2009-03-30)
Source307:	th_sk_SK.zip

Source309:	th_cs_CZ.zip
Source310:	th_de_CH.zip
Source311:	th_hu_HU.zip

##
## Packages information
##

%description
myspell-* packages contain spell checking data to be used by
OpenOffice.org or any other MySpell-capable application. 
myspell-hyph-* packages contain hyphenation dictionaries for
a particular set of languages.

%{expand:%(/bin/sh %{SOURCE0} af_ZA "DICT          " "Afrikaans (Africa)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} am_AM "DICT          " "Amharic (Ethiopia)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ar_AR "DICT          " "Arabic (North Africa and Middle East)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} az_AZ "DICT          " "Azerbaijani (Azerbaijan)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} bg_BG "DICT          " "Bulgarian (Bulgaria)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} bn_BN "DICT          " "Bengali (India)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ca_ES "DICT          " "Catalan" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} cop_EG "DICT          " "Coptic (North Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} cs_CZ "DICT HYPH THES" "Czech (Czech Republic)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} csb_CSB "DICT          " "Kashubian (Poland)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} cy_GB "DICT          " "Welsh (Wales)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} da_DK "DICT HYPH     " "Danish (Denmark)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} de_AT "DICT          " "German (Austria)"  GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} de_CH "DICT HYPH THES" "German (Switzerland)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} de_DE "DICT HYPH THES" "German (Germany)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} el_GR "DICT HYPH     " "Greek (Greece)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} en_AU "DICT          " "English (Australian)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} en_CA "DICT HYPH     " "English (Canada)" "Public Domain" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} en_GB "DICT HYPH     " "English (United Kingdom)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} en_NZ "DICT          " "English (New Zealand)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} en_US "DICT HYPH THES" "English (US)" BSD 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} en_ZA "DICT          " "English (South Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} eo_EO "DICT          " "Esperanto (anywhere)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} es_ES "DICT HYPH THES" "Spanish (Spain)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} es_MX "DICT          " "Spanish (Mexico)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} et_EE "DICT HYPH     " "Estonian (Estonia)" "free, see http://www.eki.ee/eki/licence.html" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} eu_ES "DICT          " "Basque" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fa_FA "DICT          " "Farsi (Iran)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fa_IR "DICT          " "Persian (Iran)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fi_FI "     HYPH     " "Finnish (Finland)" "freely distributable" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fj_FJ "DICT          " "Fijian (Fiji)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fo_FO "DICT          " "Faroese (Faroe Islands)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fr_BE "     HYPH     " "French" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fr_FR "DICT HYPH THES" "French (France)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fur_IT "DICT          " "Friulian (north-east Italy)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} fy_NL "DICT          " "Frisian (Netherlands)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ga_IE "DICT HYPH     " "Irish (Ireland)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} gd_GB "DICT          " "Scottish Gaelic (Scotland)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} gl_ES "DICT          " "Galician (Spain)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} gsc_FR "DICT          " "Gascon (France)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} he_IL "DICT          " "Hebrew (Israel)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} hi_IN "DICT          " "Hindi (India)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} hr_HR "DICT          " "Croatian (Croatia)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} hu_HU "DICT HYPH THES" "Hungarian (Hungary)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} hy_AM "DICT          " "Armenian (Eastern and Western)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} id_ID "DICT HYPH     " "Indonesian (Indonesia)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} is_IS "DICT HYPH     " "Icelandic (Iceland)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} it_IT "DICT HYPH THES" "Italian (Italy)" LGPL/GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} km_KH "DICT          " "Khmer (Cambodia)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ku_TR "DICT          " "Kurdish (Iran)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} la_LA "DICT          " "Latin (x-register)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} lt_LT "DICT HYPH     " "Lithuanian (Lithuania)" BSD-like 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} lv_LV "DICT          " "Latvian (Latvia)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} mg_MG "DICT          " "Malagasy (Madagascar)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} mi_NZ "DICT          " "Maori (New Zealand)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} mn_MN "DICT          " "Mongolian (Mongolia)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} mr_IN "DICT          " "Marathi (India)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ms_MY "DICT          " "Malay (Malaysia)" "GNU Free Documentation License" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} nb_NO "DICT          " "Norwegian/Bokmel (Norway)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ne_NP "DICT          " "Nepali (Nepal)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} nl_NL "DICT HYPH     " "Dutch (Netherlands)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} nn_NO "DICT          " "Norwegian/Nynorsk (Norway)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} nr_ZA "DICT          " "Ndebele (South Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ns_ZA "DICT          " "Northern Sotho (South Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ny_MW "DICT          " "Chichewa (Malawi)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} oc_FR "DICT          " "Occitan (France)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} or_OR "DICT          " "Oriya (India)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} pa_PA "DICT          " "Punjabi (India)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} pl_PL "DICT HYPH THES" "Polish (Poland)" "Creative Commons ShareAlike, http://creativecommons.org/licenses/sa/1.0" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} pt_BR "DICT HYPH     " "Portuguese (Brasil)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} pt_PT "DICT HYPH     " "Portuguese (Portugal)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} qu_BO "DICT          " "Quechua (Bolivia)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ro_RO "DICT HYPH     " "Romanian (Romania)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} rw_RW "DICT          " "Kinyarwanda (Rwanda)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} sk_SK "DICT HYPH THES" "Slovak (Slovak Republic)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} sl_SI "DICT HYPH     " "Slovenian (Slovenia)" BSD-like 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ss_ZA "DICT          " "Swazi/Swati (South Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} st_ZA "DICT          " "Southern Sotho (South Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} sv_SE "DICT HYPH     " "Swedish (Sweden)" GPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} sw_KE "DICT          " "Kiswahili (Africa)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} sw_TZ "DICT          " "Kiswahili (East Africa) Extended Wordlist" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ta_TA "DICT          " "Tamil (India)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} tet_ID "DICT          " "Tetum (Indonesia)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} th_TH "DICT          " "Thai (Thailand)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} tl_PH "DICT          " "Tagalog (Philippines)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} tn_ZA "DICT          " "Setswana (Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ts_ZA "DICT          " "Tsonga (South Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} uk_UA "DICT HYPH     " "Ukrainian (Ukraine)" LGPL 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} uz_UZ "DICT          " "Uzbek (Uzbekistan)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} ve_ZA "DICT          " "Venda (South Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} vi_VI "DICT          " "Vietnamese (Vietnam)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} xh_ZA "DICT          " "Xhosa (South Africa)" "Check readme" 2>/dev/null )}
%{expand:%(/bin/sh %{SOURCE0} zu_ZA "DICT          " "Zulu (South Africa)" LGPL 2>/dev/null )}

%prep
%setup -q -T -c

set -eu

# Handle spelling dictionaries
all_dicts="%{SOURCE100} %{SOURCE101} %{SOURCE102} %{SOURCE103} %{SOURCE104} \
		%{SOURCE105} %{SOURCE106} %{SOURCE107} %{SOURCE108} %{SOURCE109} \
		%{SOURCE110} %{SOURCE111} %{SOURCE112} %{SOURCE113} %{SOURCE114} \
		%{SOURCE115} %{SOURCE116} %{SOURCE117} %{SOURCE118} %{SOURCE119} \
		%{SOURCE120} %{SOURCE121} %{SOURCE122} %{SOURCE123} %{SOURCE124} \
		%{SOURCE126} %{SOURCE127} %{SOURCE128} %{SOURCE129} \
		%{SOURCE130} %{SOURCE131} %{SOURCE132} %{SOURCE133} %{SOURCE134} \
		%{SOURCE135} %{SOURCE136} %{SOURCE137} %{SOURCE138} %{SOURCE139} \
		%{SOURCE140} %{SOURCE141} %{SOURCE142} %{SOURCE143} %{SOURCE144} \
		%{SOURCE145} %{SOURCE146} %{SOURCE147} %{SOURCE148} %{SOURCE149} \
		%{SOURCE150} %{SOURCE151} %{SOURCE152} %{SOURCE153}              \
		%{SOURCE155} %{SOURCE156} %{SOURCE157} %{SOURCE158} %{SOURCE159} \
		%{SOURCE160} %{SOURCE161} %{SOURCE162} %{SOURCE163} %{SOURCE164} \
		%{SOURCE165} %{SOURCE166} %{SOURCE167} %{SOURCE168} %{SOURCE169} \
		%{SOURCE170} %{SOURCE171} %{SOURCE172} %{SOURCE173} %{SOURCE174} \
		%{SOURCE175} %{SOURCE176} %{SOURCE177} %{SOURCE178} %{SOURCE179} \
		%{SOURCE180} %{SOURCE181} %{SOURCE182} %{SOURCE183} %{SOURCE184} \
		%{SOURCE185} %{SOURCE186} %{SOURCE187} %{SOURCE188}              \
		%{SOURCE190} %{SOURCE191} %{SOURCE192} %{SOURCE193}"
for dictfile in $all_dicts
do
  basefile="${dictfile##*/}"
  langpack="${basefile/.zip/}"
  echo "LANGPACK=$langpack"
  mkdir -p doc/DICT/$langpack
  unzip -d doc/DICT/$langpack $dictfile
  mkdir -p dic/DICT/$langpack
  mv doc/DICT/$langpack/$langpack.{aff,dic} dic/DICT/$langpack
  # Protect against #36685
  rm -f doc/DICT/$langpack/*.aff 2> /dev/null
  rm -f doc/DICT/$langpack/*.dic 2> /dev/null
  # create dummy file if docdir is empty
  if ! ls doc/DICT/$langpack/* ; then
cat > doc/DICT/$langpack/README_$langpack.txt << EOF
Spell checking dictionary for $langpack
EOF
  fi
  # fix permissions
  chmod 644 doc/DICT/$langpack/*
  # add symlinks for mozilla apps
  mkdir -p moz
  lang=$(echo $langpack|sed 's/_.*//')
  if [ $(echo $all_dicts |tr ' ' \\n |grep /${lang}_ |wc -l) \> 1 ]; then
    lang=$(echo $langpack |tr _ -)
  fi
  ln -s ../ooo/$langpack.aff moz/$lang.aff
  ln -s ../ooo/$langpack.dic moz/$lang.dic
  echo %{mozdictdir}/$lang.aff > $langpack.files
  echo %{mozdictdir}/$lang.dic >> $langpack.files
done

# Handle spelling dictionaries
for hyphfile in %{SOURCE200} %{SOURCE201} %{SOURCE202} %{SOURCE203} %{SOURCE204} \
		%{SOURCE205} %{SOURCE206} %{SOURCE207} %{SOURCE208} %{SOURCE209} \
		%{SOURCE210} %{SOURCE211} %{SOURCE212} %{SOURCE213} %{SOURCE214} \
		%{SOURCE215} %{SOURCE216} %{SOURCE217} %{SOURCE218} %{SOURCE219} \
		%{SOURCE220} %{SOURCE221} %{SOURCE222} %{SOURCE223} %{SOURCE224} \
		%{SOURCE226} %{SOURCE227} %{SOURCE228} %{SOURCE229}
do
  basefile="${hyphfile##*/}"
  langpack="${basefile/.zip/}"
  echo "LANGPACK/(HPY)=$langpack"
  mkdir -p doc/HYPH/$langpack
  unzip -d doc/HYPH/$langpack $hyphfile
  mkdir -p dic/HYPH/$langpack
  mv doc/HYPH/$langpack/$langpack.dic dic/HYPH/$langpack
  # Protect against #36685
  rm -f doc/HYPH/$langpack/*.dic 2> /dev/null
  # create dummy file if docdir is empty
  if ! ls doc/HYPH/$langpack/* ; then
cat > doc/HYPH/$langpack/README_$langpack.txt << EOF
Hyphenation dictionary for $langpack
EOF
  fi
  # fix permissions
  chmod 644 doc/HYPH/$langpack/*
done

# Handle thesaurus dictionaries
for thesfile in %{SOURCE300} %{SOURCE301} %{SOURCE302} %{SOURCE303} %{SOURCE304} \
		%{SOURCE305} %{SOURCE306} %{SOURCE307}              %{SOURCE309} \
		%{SOURCE310} %{SOURCE311}
do
  basefile="${thesfile##*/}"
  langpack="${basefile/.zip/}"
  echo "LANGPACK(thes)=$langpack"
  mkdir -p doc/THES/$langpack
  unzip -d doc/THES/$langpack $thesfile
  mkdir -p dic/THES/$langpack
  mv doc/THES/$langpack/$langpack.{dat,idx} dic/THES/$langpack
  # Protect against #36685
  rm -f doc/THES/$langpack/*.dat 2> /dev/null
  rm -f doc/THES/$langpack/*.idx 2> /dev/null
  # create dummy file if docdir is empty
  if ! ls doc/THES/$langpack/* ; then
cat > doc/THES/$langpack/README_$langpack.txt << EOF
Thesaurus dictionary for $langpack
EOF
  fi
  # fix permissions
  chmod 644 doc/THES/$langpack/*
done

# protect against #36685
[ -n "$(find doc/ -name '*.dic')" ] && exit 1
[ -n "$(find doc/ -name '*.aff')" ] && exit 1
[ -n "$(find doc/ -name '*.dat')" ] && exit 1
[ -n "$(find doc/ -name '*.idx')" ] && exit 1

:

%build

%install
mkdir -p %{buildroot}%{dictdir}/

# Install spell checking dictionaries
for file in dic/DICT/*/*; do
  install -m 644 $file %{buildroot}%{dictdir}/${file##*/}
done

# Install hyphenation dictionaries
for file in dic/HYPH/*/*; do
  install -m 644 $file %{buildroot}%{dictdir}/${file##*/}
done

# Install thesaurus dictionaries
for file in dic/THES/*/*; do
  install -m 644 $file %{buildroot}%{dictdir}/${file##*/}
done

# #42885 
cd %{buildroot}%{dictdir}
for file in *.idx *.dat; do
  ln -s $file `echo $file|sed 's/\(.*\)\.\(idx\|dat\)/\1_v2\.\2/' `
done
ln -s th_en_US.idx th_en_GB_v2.idx
ln -s th_en_US.dat th_en_GB_v2.dat
cd -

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14850 |21mr|mysql-connector-c++-1.1.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname mysqlcppconn %{major}
%define devname %mklibname mysqlcppconn -d
%define sdevname %mklibname mysqlcppconn -d -s

Summary:	A MySQL database connector for C++
Name:		mysql-connector-c++
Version:	1.1.9
Release:	3
Group:		System/Libraries
License:	GPLv2
Url:		http://dev.mysql.com/downloads/connector/cpp/
Source0:	http://cdn.mysql.com/Downloads/Connector-C++/%{name}-%{version}.tar.gz
# PATCH-FEATURE-OPENSUSE - mysql-connector-cpp-1.1.0-disable_tests_and_examples.patch adam@mizerski.pl -- disable building tests and examples
Patch2:         mysql-connector-cpp-1.1.0-disable_tests_and_examples.patch
# PATCH-FIX-UPSTREAM - bsc#1067883 kstreitova@suse.com -- fix build with libmariadb by fixing copypaste errors in libmysql_dynamic_proxy.cpp file
Patch3:         mysql-connector-cpp-1.1.9-libmysql_dynamic_proxy_typos.patch
Patch5:         0001-Dynamic-libname.patch
BuildRequires:  pkgconfig(zlib)
BuildRequires:	cmake
BuildRequires:	mariadb
BuildRequires:	mariadb-devel
BuildRequires:	boost-devel
BuildRequires:	patchelf

%description
Connector/C++ is a tool that enables easy deployment and management of MySQL
server and database through your C++ application.

#----------------------------------------------------------------------------
%package -n	%{libname}
Summary:	The shared mysql-connector-cpp library
Group:		System/Libraries

%description -n	%{libname}
Connector/C++ is a tool that enables easy deployment and management of MySQL
server and database through your C++ application.

This package provides the shared mysql-connector-cpp library.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development library and header files for development with mysql-connector-cpp
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	mysql-connector-c++-devel = %{version}-%{release}
Provides:	mysql-connector-cpp-devel = %{version}-%{release}

%description -n	%{devname}
Connector/C++ is a tool that enables easy deployment and management of MySQL
server and database through your C++ application.

This package is only needed if you plan to develop or compile applications
which requires the mysql-connector-cpp library.

%files -n %{devname}
%doc README COPYING Licenses_for_Third-Party_Components.txt
%{_includedir}/*.h
%{_includedir}/cppconn
%{_libdir}/*.so

#----------------------------------------------------------------------------

%package -n	%{sdevname}
Summary:	Development library and header files for development with mysql-connector-cpp
Group:		Development/C++
Requires:	%{devname} = %{version}-%{release}
Provides:	%{name}-static-devel = %{version}-%{release}

%description -n	%{sdevname}
Connector/C++ is a tool that enables easy deployment and management of MySQL
server and database through your C++ application with static links.

This package is only needed if you plan to develop or compile applications
which requires the mysql-connector-cpp library.

%files -n %{sdevname}
%{_libdir}/libmysqlcppconn-static.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# with 0001-Dynamic-libname.patch
soname="$(patchelf --print-soname %{_libdir}/libmysqlclient_r.so)"
test -n "$soname"
# @LIBMYSQLCLIENT_R_SONAME@ -> "libmariadb.so.3"
# Without " " in the patch to break compilation if sed is not run
sed -i'' driver/nativeapi/libmysql_dynamic_proxy.cpp -e "s,@LIBMYSQLCLIENT_R_SONAME@,\"$soname\",g"

%build
export CXXFLAGS="%{optflags} -std=gnu++11"
%cmake -DMYSQLCPPCONN_GCOV_ENABLE=OFF \
		-DMYSQLCPPCONN_ICU_ENABLE=OFF \
		-DMYSQLCPPCONN_BUILD_EXAMPLES=OFF \
		-DCMAKE_INSTALL_LIB_DIR=%{_lib} \
		-DMYSQLCLIENT_STATIC_BINDING=0 \
		-DMYSQL_CXX_LINKAGE=0
%make

%install
cp build/cppconn/config.h  cppconn/config.h
%makeinstall_std -C build
rm -fr %{buildroot}%{_prefix}/COPYING
rm -fr %{buildroot}%{_prefix}/INSTALL
rm -fr %{buildroot}%{_prefix}/README
rm -fr %{buildroot}%{_prefix}/ANNOUNCEMENT
rm -fr %{buildroot}%{_prefix}/Licenses_for_Third-Party_Components.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14851 |21mr|mysql-connector-java-8.0.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:       Official JDBC driver for MySQL
Name:          mysql-connector-java
Version:       8.0.21
Release:       1
Group:         Development/Java
Epoch:         1
License:       GPLv2 with exceptions
URL:           http://dev.mysql.com/downloads/connector/j/
Source0:       %{name}-%{version}-nojars.tar.xz

# Mysql has a mirror redirector for its downloads
# You can get this tarball by following a link from:
# http://dev.mysql.com/get/Downloads/Connector-J/%%{name}-%%{version}.tar.gz
#
# OR
# https://github.com/mysql/mysql-connector-j/archive/%%{version}.tar.gz
# Following prebuilt jars and sources have been removed from the tarball:
#
# %%{name}-%%{version}-bin.jar
# lib/c3p0-0.9.1-pre6.jar
# lib/c3p0-0.9.1-pre6.src.zip
# lib/jboss-common-jdbc-wrapper.jar
# lib/jboss-common-jdbc-wrapper-src.jar
# lib/protobuf-java-3.6.1.jar
# lib/slf4j-api-1.6.1.jar
#
# See http://bugs.mysql.com/bug.php?id=28512 for details.

# To make it easier a script generate-tarball.sh has been created:
# ./generate-tarball.sh version
# will create a new tarball compressed with xz and without those jar files.
Source1:       generate-tarball.sh

Patch1:        remove-coverage-test.patch

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: ant >= 1.6.0
BuildRequires: ant-contrib >= 1.0
BuildRequires: ant-junit
BuildRequires: apache-commons-logging
BuildRequires: git
BuildRequires: javassist
BuildRequires: java-devel >= 1:1.6.0
BuildRequires: javapackages-local
BuildRequires: junit5
BuildRequires: protobuf-java
BuildRequires: slf4j
BuildRequires: java-1.8.0-openjdk-devel

Requires:      slf4j
Requires:      java

%description
MySQL Connector/J is a native Java driver that converts JDBC (Java Database
Connectivity) calls into the network protocol used by the MySQL database.
It lets developers working with the Java programming language easily build
programs and applets that interact with MySQL and connect all corporate
data, even in a heterogeneous environment. MySQL Connector/J is a Type
IV JDBC driver and has a complete JDBC feature set that supports the
capabilities of MySQL.

%prep
%setup -q -n mysql-connector-j-%{version}

# fix line endings
for file in README README.md; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

sed -i 's/>@.*</>%{version}</' src/build/misc/pom.xml

%patch1 -p1

%build

# We need both JDK1.5 (for JDBC3.0; appointed by $JAVA_HOME) and JDK1.6 (for JDBC4.0; appointed in the build.xml)
export CLASSPATH=$(build-classpath jdbc-stdext junit slf4j commons-logging.jar)

# We currently need to disable jboss integration because of missing jboss-common-jdbc-wrapper.jar (built from sources).
# See BZ#480154 and BZ#471915 for details.
rm -rf src/main/user-impl/java/com/mysql/cj/jdbc/integration/jboss
rm src/test/java/testsuite/regression/ConnectionRegressionTest.java
rm src/test/java/testsuite/regression/DataSourceRegressionTest.java
rm src/test/java/testsuite/simple/StatementsTest.java

ant -Dcom.mysql.cj.build.jdk=/usr/lib/jvm/java-1.8.0-openjdk \
    -Dcom.mysql.cj.extra.libs=%{_javadir} \
    test dist

%install
# Install the Maven build information
%mvn_file mysql:mysql-connector-java %{name}
%mvn_artifact src/build/misc/pom.xml build/%{name}-%{version}-SNAPSHOT/%{name}-%{version}-SNAPSHOT.jar
%mvn_install

%files -f .mfiles
%doc CHANGES README README.md
%license LICENSE




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14852 |21mr|mysql-workbench-oss-8.0.31-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global Werror_cflags %{nil}

%global privlibs libcdbc[.]so.*|libgrt[.]so.*|liblinux_utilities[.]so.*|libmdcanvas[.]so.*|libmdcanvasgtk[.]so.*
%global privlibs %{privlibs}|libmforms[.]so.*|libmtemplate[.]so.*|libparsers[.]so.*|libsqlide[.]so.*|libsqlparser[.]so.*
%global privlibs %{privlibs}|libwbbase[.]so.*|libwbprivate[.]so.*|libwbpublic[.]so.*|libwbscintilla[.]so.*|libwbssh[.]so.*

%global __requires_exclude ^(%{privlibs})$
%global __provides_exclude ^(%{privlibs})$

%global __requires_exclude_from ^%{_libdir}/mysql-workbench/.*\\.so*$
%global __requires_exclude_from ^%{_libdir}/mysql-workbench/modules/.*\\.so*$
%global __requires_exclude_from ^%{_libdir}/mysql-workbench/plugins/.*\\.so*$
%global __provides_exclude_from ^%{_libdir}/mysql-workbench/.*\\.so*$
%global __provides_exclude_from ^%{_libdir}/mysql-workbench/modules/.*\\.so*$
%global __provides_exclude_from ^%{_libdir}/mysql-workbench/plugins/.*\\.so*$

%global optflags %{optflags} -Wno-narrowing

Summary:	Extensible modeling tool for MySQL 8.x
Name:		mysql-workbench-oss
Version:	8.0.31
Release:	3
License:	GPLv2+ and LGPLv2+
Group:		Databases
Url:		http://dev.mysql.com/downloads/workbench/
Source0:	http://dev.mysql.com/get/Downloads/MySQLGUITools/mysql-workbench-community-%{version}-src.tar.gz
# OPENSUSE Patches
Patch0:		mysql-workbench-mariadb.patch
Patch1:		mysql-workbench-antlr4.patch
Patch3:		ldconfig-fix-path.patch
Patch4:		mysql-workbench-no-check-for-updates.patch
Patch5:		0001-Remove-Unsupported-operating-system.patch
Patch6:		0002-Tune-desktop-file.patch
BuildRequires:	antlr4
BuildRequires:	antlr4-cpp-runtime-devel
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	clang
BuildRequires:	ninja
BuildRequires:	gettext
BuildRequires:	mysql-devel
BuildRequires:	mysql-connector-c++-devel
BuildRequires:	vsqlite++-devel
BuildRequires:	pkgconfig(gdal)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(python3)
BuildRequires:  pkgconfig(RapidJSON)
BuildRequires:	pkgconfig(x11)
BuildRequires:	swig
Provides:	mysql-workbench = %{EVRD}
Provides:	mysql-workbench-community = %{EVRD}

ExcludeArch:    %{ix86}

%description
MySQL Workbench is modeling tool that allows you to design and generate MySQL
databases graphically.

MySQL Workbench requires OpenGL and a 3D accelerated graphics card with at
least 16MB of memory.

%files
%license License.txt
%doc ChangeLog README.md
%{_bindir}/mysql-workbench
%{_bindir}/wbcopytables
%dir %{_libdir}/mysql-workbench
%{_libdir}/mysql-workbench/*.so*
%{_libdir}/mysql-workbench/mysql-workbench-bin
%{_libdir}/mysql-workbench/wbcopytables-bin
%dir %{_libdir}/mysql-workbench/modules
%{_libdir}/mysql-workbench/modules/*
%dir %{_libdir}/mysql-workbench/plugins
%{_libdir}/mysql-workbench/plugins/*.so*
%dir %{_datadir}/mysql-workbench
%{_datadir}/mysql-workbench/*
%{_datadir}/applications/mysql-workbench.desktop
%{_datadir}/icons/hicolor/*/*/*
%{_datadir}/mime/packages/mysql-workbench.xml
%{_datadir}/mime-info/mysql-workbench.mime

#----------------------------------------------------------------------------

%prep
%autosetup -n mysql-workbench-community-%{version}-src -p1

find . -name "CmakeCache.txt" -delete
sed -i "s|-Werror||g" CMakeLists.txt

%build
mkdir -p wb-build
%serverbuild
%{__cmake} -S . -B wb-build \
   -DCMAKE_INSTALL_PREFIX=%{_prefix} \
   -DCMAKE_C_COMPILER=%{_bindir}/clang \
   -DCMAKE_CXX_COMPILER=%{_bindir}/clang++ \
   -DMYSQL_CONFIG_PATH=%{_bindir}/mysql_config \
   -DLIB_INSTALL_DIR=%{_libdir} \
   -DWITH_ANTLR_JAR=$(build-classpath antlr4) \
   -DCMAKE_BUILD_TYPE=community \
   -DREAL_EXECUTABLE_DIR=%{_libdir}/mysql-workbench \
   -DUSE_UNIXODBC=FALSE -GNinja

%ninja_build -C wb-build

%install
%ninja_install -C wb-build

rm -vr %{buildroot}%{_datadir}/doc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14853 |21mr|mythes-1.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.2
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	A thesaurus library
Name:		mythes
Version:	1.2.4
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://hunspell.sourceforge.net/
Source0:	http://downloads.sourceforge.net/hunspell/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(hunspell)

%description
MyThes is a simple thesaurus that uses a structured text data file and an
index file with binary search to look up words and phrases and return
information on part of speech, meanings, and synonyms.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains libraries used by %{name}.

%files -n %{libname}
%{_libdir}/libmythes-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files for developing with mythes
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Includes and definitions for developing with mythes.

%files -n %{devname}
%doc README COPYING AUTHORS
%doc data_layout.txt
%{_bindir}/th_gen_idx.pl
%{_includedir}/mythes.hxx
%{_libdir}/*.so
%{_libdir}/pkgconfig/mythes.pc
%{_datadir}/mythes

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%check
./example th_en_US_new.idx th_en_US_new.dat checkme.lst
./example morph.idx morph.dat morph.lst morph.aff morph.dic

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_datadir}/mythes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14854 |21mr|nail-12.4-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A MIME capable implementation of the mailx command
Name:		nail
Version:	12.4
Release:	20
License:	BSD
Group:		Networking/Mail
Url:		http://heirloom.sourceforge.net/mailx.html
Source0:	http://prdownloads.sourceforge.net/heirloom/mailx-%{version}.tar.bz2
# (mpol) 11.25 set PAGER to less, Mandriva doesn't provide pg
Patch1:		nail-11.25-pager.patch
Patch2:		mailx-12.4-nostrip.diff
Patch3:		mailx-12.4-optflags.diff
Patch4:		nail_optopt.patch
# patch from Fedora to make it build with openssl
Patch5:		mailx-12.4-openssl.patch
# http://openwall.com/lists/oss-security/2014/12/16/12
Patch6:		0001-outof-Introduce-expandaddr-flag.patch
Patch7:		https://src.fedoraproject.org/rpms/mailx/raw/master/f/mailx-12.5-openssl.patch
BuildRequires:	pkgconfig(openssl)
# this is an old unmaintained project, give priority to e.g. mailutils
Provides:	mailx = 0.%{EVRD}

%description
Nail is derived from Berkeley Mail and is intended to provide the
functionality of the POSIX.2 mailx command with additional support
for MIME, UTF-8, POP3/POP3s, IMAP, SMTP (SSL, TLS, AUTH), S/MIME,
Maildir, and more. It provides enhanced features for interactive use,
such as caching and disconnected operation for IMAP, message threading,
scoring, filtering, and Bayesian junk mail filter. It is also usable
as a mail batch language, both for sending and receiving mail.

Since version 12.0 Nail has been integrated into the Heirloom project,
renamed to Mailx.

%files
%license COPYING
%doc AUTHORS INSTALL README TODO ChangeLog
%config(noreplace) %{_sysconfdir}/nail.rc
%{_bindir}/mail
%{_bindir}/nail
%{_bindir}/mailx
%{_bindir}/Mail
%{_mandir}/man1/mailx.1.*
%{_mandir}/man1/Mail.1.*
%{_mandir}/man1/mail.1.*
%{_mandir}/man1/nail.1.*

#----------------------------------------------------------------------------

%prep
%setup -q -n mailx-%{version}
%patch1 -p1 -b .pager
%patch2 -p0 -b .nostrip
%patch3 -p0 -b .optflags
%patch4 -p1 -b .optopt
%patch5 -p1 -b .openssl
%patch6 -p1 -b .openssl11
%patch7 -p1

%build
%serverbuild
make SENDMAIL=/usr/lib/sendmail LDFLAGS="%{ldflags}"

%install
%makeinstall_std PREFIX=%{_prefix} UCBINSTALL=/usr/bin/install
install -d  %{buildroot}%{_bindir}
mv %{buildroot}%{_bindir}/mailx %{buildroot}%{_bindir}/mail
ln -s mail %{buildroot}%{_bindir}/nail
ln -s mail %{buildroot}%{_bindir}/mailx
ln -s mail %{buildroot}%{_bindir}/Mail
ln -sf mailx.1 %{buildroot}%{_mandir}/man1/mail.1
ln -sf mailx.1 %{buildroot}%{_mandir}/man1/Mail.1
ln -sf mailx.1 %{buildroot}%{_mandir}/man1/nail.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14855 |21mr|nailgun-0.9.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:     nailgun
Version:  0.9.1
Release:  12
Summary:  Framework for running Java from the cli without the JVM startup overhead
License:  ASL 2.0
URL:      http://martiansoftware.com/nailgun/

# https://github.com/martylamb/nailgun/archive/nailgun-all-0.9.1.zip
Source0:  %{name}-%{name}-all-%{version}.zip
Group:          Development/Java
BuildRequires:  maven-local
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
Nailgun is a client, protocol, and server for running Java programs from the 
command line without incurring the JVM startup overhead. Programs run in the 
server (which is implemented in Java), and are triggered by the client 
(written in C), which handles all I/O.

%package javadoc
Summary:        Javadocs for %{name}
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-all-%{version}

find ./ -name '*.jar' -exec rm -f '{}' \; 
find ./ -name '*.class' -exec rm -f '{}' \; 

%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14856 |21mr|nano-8.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define urlver %(echo %{version}|cut -d. -f1)

Summary:	Tiny console text editor that aims to emulate Pico
Name:		nano
Version:	8.2
Release:	3
License:	GPLv3+
Group:		Editors
# warning
# nazi-scum at nano-editor.org banned russian ip's
Url:		http://www.nano-editor.org/
Source0:	https://ftp.gnu.org/gnu/nano/%{name}-%{version}.tar.xz
Source2:	nano-6.2-ru.tar.gz
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	texinfo

%description
Nano (Nano's ANOther editor) is the editor formerly known as TIP (TIP Isn't
Pico). It aims to emulate Pico as closely as possible while also offering a
few enhancements.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README THANKS TODO
%doc doc/*.html doc/sample.nanorc
%config(noreplace) %{_sysconfdir}/nanorc
%{_bindir}/%{name}
%{_bindir}/rnano
%{_datadir}/%{name}
%{_infodir}/%{name}.info*
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/rnano.1*
%{_mandir}/man5/nanorc.5*

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE2}
popd

# update locale ru
msgfmt po/ru.po -o po/ru.gmo

%build
# do not run autotools, we have already reflected the configure.ac
# changes in configure and config.h.in
touch -c aclocal.m4 config.h.in configure Makefile.in

%configure
%make

%install
%makeinstall_std

#config file
install -Dpm644 doc/sample.nanorc %{buildroot}%{_sysconfdir}/nanorc

#disable line wrapping by default
sed -i -e 's/# set nowrap/set nowrap/' %{buildroot}%{_sysconfdir}/nanorc

#enable some syntax highlighting by default
for i in nanorc c makefile patch perl python ruby sh; do
	sed -i -e "/\/$i\.nanorc/ s/^#\s//" %{buildroot}%{_sysconfdir}/nanorc
done

#add and enable .spec syntax highlighting
cat >> %{buildroot}%{_sysconfdir}/nanorc << EOF

## enable syntax highlighting
include "%{_datadir}/nano/*.nanorc"
include "%{_datadir}/nano/extra/*.nanorc"
EOF

%find_lang %{name} --with-man --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14857 |21mr|nant-0.92-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname %{name}-%{version}-src

Summary:	Build tool for Mono and .NET
Name:		nant
Version:	0.92
Release:	6
Epoch:		1
License:	GPLv2+
Group:		Development/Other
Url:		http://nant.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/nant/%{fname}.tar.gz
Patch2:		nant-0.92-system_nunit.patch
Patch3:		nant-0.90-no_sharpcvslib.patch
Patch7:		nant-fixmono42_scripttask.patch
BuildRequires:	pkgconfig(mono)
BuildRequires:	nunit-devel
#gw required for mono.pc
Requires:	pkgconfig(mono)
BuildArch:	noarch

%description
NAnt is a free .NET build tool. In theory it is kind of like make
without make's wrinkles. In practice it's a lot like Ant.

%files
%doc README.txt doc/* examples
%{_bindir}/%{name}
%{_datadir}/NAnt/
%{_datadir}/pkgconfig/nant.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
%apply_patches

find . -type d|xargs chmod 755
find . -type f|xargs chmod 644
# remove DOS line endings
find doc src -type f |xargs perl -pi -e "s/\r\n/\n/"

#Fixes for Mono 4
sed -i "s#gmcs#mcs#g" Makefile
sed -i "s#TARGET=mono-2.0#TARGET=mono-4.0#g" Makefile
sed -i "s#mono/4.0#mono/4.5#g" src/NAnt.Console/App.config
sed -i "s#dmcs#mcs#g" src/NAnt.Console/App.config
find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \;
find . -name "*.csproj" -print -exec sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g' {} \;

%build
make prefix=%{_prefix}

%install
%makeinstall
find examples -name \*.dll -o -name \*.exe|xargs rm -f
rm -rf %{buildroot}%{_datadir}/doc/NAnt

# gw fix paths in the nant script
perl -pi -e "s^%{buildroot}^^g" %{buildroot}%{_bindir}/nant

mv %{buildroot}%{_prefix}/lib*/pkgconfig %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14858 |21mr|narayana-5.3.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          narayana
Version:       5.3.3
Release:       4
Summary:       Distributed Transaction Manager
License:       LGPLv2+
URL:           http://narayana.io/
Source0:       https://github.com/jbosstm/narayana/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-httpclient:commons-httpclient)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(java_cup:java_cup)
BuildRequires: mvn(javax.annotation:javax.annotation-api)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.activemq:artemis-journal)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-clean-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-war-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:idlj-maven-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi.services)
BuildRequires: mvn(org.jacoco:org.jacoco.ant)
BuildRequires: mvn(org.jacorb:jacorb)
BuildRequires: mvn(org.jacorb:jacorb-idl-compiler)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss:jboss-transaction-spi) >= 7.3.0
BuildRequires: mvn(org.jboss.byteman:byteman)
BuildRequires: mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires: mvn(org.jboss.byteman:byteman-dtest)
BuildRequires: mvn(org.jboss.byteman:byteman-submit)
BuildRequires: mvn(org.jboss.integration:jboss-corba-ots-spi)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-spec-api)
BuildRequires: mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxb-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jettison-provider)
BuildRequires: mvn(org.jboss.resteasy:tjws)
BuildRequires: mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.jms:jboss-jms-api_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.jboss.ws:jbossws-api)
BuildRequires: mvn(org.springframework:spring-tx)
BuildRequires: mvn(tanukisoft:wrapper)
Group:         Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A set of JBoss modules that fully supports ACID transactions
spread across multiple resource managers and application servers.
It implements a Distributed Transaction Manager (DTM) with support
for two-phase commit (2PC) across XA resource managers, JBoss
server instances, and CORBA OTS resources.

JBossJTS implements the Java Transaction Service (JTS) and CORBA
Transaction Service (OTS) specifications.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
# Extract the source:
%setup -q -n %{name}-%{namedversion}

find . -name "*.jar" -type f -delete
find . -name "*.class" -type f -delete
find . -name "*.dll" -type f -delete
find . -name "*.exe" -type f -delete
find . -name "*.so" -type f -delete
rm -r ArjunaJTS/services/bin/*

%pom_disable_module localjunit XTS
%pom_disable_module narayana-full
%pom_disable_module webservice rts/at

%pom_remove_plugin -r "org.codehaus.mojo:findbugs-maven-plugin"
%pom_remove_plugin -r "org.sonatype.plugins:nexus-staging-maven-plugin"
%pom_remove_plugin -r "org.jboss.byteman:byteman-rulecheck-maven-plugin"

%pom_remove_plugin -r :nexus-staging-maven-plugin ArjunaJTS/narayana-jts-jacorb  ArjunaJTS/narayana-jts-idlj

# Remove JConsole dep
%pom_remove_dep "sun.jdk:jconsole" ArjunaCore/arjuna
%pom_remove_dep -r "orson:orson" ArjunaCore/arjuna ArjunaCore/arjunacore
%pom_change_dep -r "jfree:jfreechart" "org.jfree:jfreechart" ArjunaCore/arjuna ArjunaCore/arjunacore

%pom_remove_dep -r "org.jboss.arquillian.junit:arquillian-junit-container"

# org.jboss.openjdk-orb:openjdk-orb:8.0.4.Final
%pom_remove_dep -r "org.jboss.openjdk-orb:openjdk-orb"

%pom_remove_plugin ":maven-dependency-plugin" txbridge

# Disable copy of: jboss-transaction-spi and jboss-transaction-api_1.2_spec
%pom_xpath_remove pom:Embed-Dependency osgi/jta
%pom_xpath_remove pom:Export-Package osgi/jta
%pom_xpath_remove pom:Private-Package osgi/jta
# Invalid filter syntax in requirement
%pom_xpath_remove pom:Require-Capability osgi/jta

# org.jboss.osgi.metadata:jbosgi-metadata:4.0.0.CR1
%pom_remove_dep "org.jboss.osgi.metadata:jbosgi-metadata" osgi
%pom_remove_dep "org.jboss.osgi.metadata:jbosgi-metadata" osgi/jta

# package org.osgi.framework.wiring does not exist
%pom_change_dep "org.osgi:org.osgi.core" "org.eclipse.osgi:org.eclipse.osgi" osgi
%pom_change_dep "org.osgi:org.osgi.core" "org.eclipse.osgi:org.eclipse.osgi" osgi/jta
# package org.osgi.service.cm does not exist
%pom_change_dep "org.osgi:org.osgi.compendium" "org.eclipse.osgi:org.eclipse.osgi.services"  osgi
%pom_change_dep "org.osgi:org.osgi.compendium" "org.eclipse.osgi:org.eclipse.osgi.services"  osgi/jta

%pom_xpath_remove "pom:dependency[pom:type='war']" XTS/sar

# https://bugs.openjdk.java.net/browse/JDK-8067747
for mod in orbportability jts; do
   %pom_xpath_inject "pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:executions/pom:execution/pom:configuration" \
  "<useIncrementalCompilation>false</useIncrementalCompilation>" ArjunaJTS/${mod}
done

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
for mod in XTS/WS-C XTS/WS-T XTS/WSTX XTS/bridge; do
    %pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
        <execution>
          <id>default-jar</id>
          <phase>skip</phase>
        </execution>" ${mod}
done

# [ERROR] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique duplicate declaration of version
%pom_remove_dep org.jboss.narayana:common ArjunaJTS/orbportability
%pom_add_dep org.jboss.narayana:common:'${project.version}' ArjunaJTS/orbportability

%pom_remove_dep -r org.jboss.resteasy:jaxrs-api rts/at/bridge rts/at/integration rts/at/tx rts/at/util

%mvn_package :::api: __default
%mvn_package :::war: __noinstall

%build

# Some missing deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license common/copyright.txt

%files javadoc -f .mfiles-javadoc
%license common/copyright.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14859 |21mr|nar-maven-plugin-3.0.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             nar-maven-plugin
Version:          3.0.0
Release:          20
Summary:          Native ARchive plugin for Maven
License:          ASL 2.0 and LGPLv2
URL:              https://github.com/maven-nar/nar-maven-plugin/
Source0:          https://github.com/maven-nar/nar-maven-plugin/archive/nar-maven-plugin-%{version}.tar.gz
Source1:          http://www.apache.org/licenses/LICENSE-2.0.txt

Patch0:           0001-Add-support-for-handling-the-RPM_OPT_FLAGS-variable-.patch
Patch1:           0002-Added-ARM-support.patch
Patch2:           0003-Added-PPC64LE-support.patch
# Patch adds support for rest sec archs not included in previous patches, 
# also fixes bad C defines on ppc64le
Patch3:           secarch.patch
# NarProperties unreported exception java.io.IOException; must be caught or declared to be thrown
Patch4:           nar-maven-plugin-3.0.0-unreported-IOException.patch

# test suite runtime deps
BuildRequires:    gcc gcc-c++

BuildRequires:    maven-local
BuildRequires:    mvn(commons-io:commons-io)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.ant:ant)
BuildRequires:    mvn(org.apache.bcel:bcel)
BuildRequires:    mvn(org.apache.maven:maven-core)
BuildRequires:    mvn(org.apache.maven:maven-model)
BuildRequires:    mvn(org.apache.maven:maven-plugin-api)
BuildRequires:    mvn(org.apache.maven:maven-project)
BuildRequires:    mvn(org.apache.maven:maven-toolchain)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugins:pom:)
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:    mvn(org.apache.maven.shared:maven-artifact-resolver)
BuildRequires:    mvn(org.apache.maven.surefire:surefire-booter)
BuildRequires:    mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:    mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:    mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:    mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:    mvn(xerces:xercesImpl)

Requires:         gcc-c++

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The NAR plugin for Maven allows you to compile native code (C++, C and Fortran)
on a number of different architectures (Linux, Windows, MacOSX, Solaris, ...)
and with a number of different compilers/linkers (g++, Microsoft Visual C++,
CC, ...) The output produced is wrapped up in Native ARchive files (.nar) some
Group:          Development/Java
of which are machine independent (-noarch), while others are machine specific
and thus depend on a combination of machine architecture(A),
operating-system(O) and linker(L) identified as AOL. These nar files can be
installed in the local Maven repository and deployed to a standard Maven (web)
server, using the standard maven-install-plugin and maven-deploy-plugin.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n nar-maven-plugin-nar-maven-plugin-%{version}

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1 -b .secarch
%patch4 -p1

# Remove bundled stuff
rm -rf src/it/it0006-jni-3rdparty/src/nar/resources/aol

%pom_xpath_remove "pom:build/pom:extensions"
# Duplicate pom entry
#%% pom_add_dep "org.apache.maven.surefire:surefire-booter"
%pom_add_dep "org.apache.maven.shared:maven-artifact-resolver"

%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

cp %{SOURCE1} .

rm src/main/java/com/github/maven_nar/NarIntegrationTestMojo.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc README.md
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14860 |21mr|nas-1.9.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname audio %{major}
%define devname %mklibname audio -d
%define sdevname %mklibname audio -s -d

%global __requires_exclude ^perl\\(getopts.pl\\)$

Summary:	Network Audio System
Name:		nas
Version:	1.9.4
Release:	13
License:	Public Domain
Group:		System/Servers
URL:		http://radscan.com/nas.html
Source0:	http://nas.codebrilliance.com/nas/%{name}-%{version}.src.tar.gz
Source1:	nasd.service
Source2:	nasd.sysconfig
Source3:	nasd.sysusers.conf
Patch1:		nas-1.9.2-asneeded.patch
Patch2:		nas-1.9.3-Move-AuErrorDB-to-SHAREDIR.patch
Patch3:		nas-1.9.4-AuErrDes.c-fclose-file-on-return-fixes-bug-6.patch
Patch4:		nas-1.9.4-Fix-building-with-GCC-10.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gccmakedep
BuildRequires:	imake
BuildRequires:	makedepend
BuildRequires:	x11-util-cf-files
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)
Requires(pre):	/bin/systemd-sysusers
Requires(post,preun):	rpm-helper
Provides:	nasd = %{EVRD}

%description
This package contains a network-transparent, client/server audio
system, with a library Key features of the Network Audio System
include:
 - Device-independent audio over the network
 - Lots of audio file and data formats
 - Can store sounds in server for rapid replay
 - Extensive mixing, separating, and manipulation of audio data
 - Simultaneous use of audio devices by multiple applications
 - Use by a growing number of ISVs
 - Small size
 - Free! No obnoxious licensing terms

%files
%doc FAQ HISTORY README RELEASE TODO
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/nasd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/nasd
%{_mandir}/man[15]/*
%dir %attr(-,nasd,nasd) %{_localstatedir}/lib/nasd
%{_bindir}/*
%{_unitdir}/nasd.service
%{_sysusersdir}/nasd.conf

%pre
# create users and groups
%sysusers_create_package nasd %{SOURCE3}

%post
%_post_service nasd

%triggerpostun -- nas <= 1.9-1
#(peroyvind): be sure to remove old socket belonging to root and restart nasd
#             now that it runs under own user
rm -f /tmp/.sockets/audio*
service nasd condrestart

%preun
%_preun_service nasd

%postun
%_postun_userdel nasd

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries needed for nasd
Group:		System/Libraries
Obsoletes:	%{_lib}nas2 < 1.9.2-10

%description -n %{libname}
Libraries needed for nasd and other programs linked against nasd.

%files -n %{libname}
%{_libdir}/libaudio.so.%{major}*
%{_datadir}/X11/AuErrorDB

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for writing programs using NAS
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}nas-devel < 1.9.2-10

%description -n %{devname}
This package allows you to develop your own network audio programs.

%files -n %{devname}
%{_libdir}/lib*.so
%{_includedir}/audio
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	NAS static library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Obsoletes:	%{_lib}nas-static-devel < 1.9.2-10

%description -n %{sdevname}
NAS static library.

%files -n %{sdevname}
%{_libdir}/lib*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# fix creating wrong Makefiles on e2k
sed -i config/NetAudio.tmpl \
	-e 's|s/Network Audio System Release //|s,Network Audio System Release ,,|'

# Update config.sub to support aarch64, bug #926196
cp -p %{_datadir}/automake-*/config.{sub,guess} config
sed -i -e '/AC_FUNC_SNPRINTF/d' config/configure.ac
autoreconf -i -f config
for F in HISTORY; do
    iconv --from-code=ISO_8859-15 --to-code=UTF-8 "$F" > "${F}.tmp"
    touch -r "$F" "${F}.tmp"
    mv "${F}.tmp" "$F"
done

%build

xmkmf
#find -type f -name Makefile -exec sed -i -r 's/clq/cq/g' {} \;
# See HISTORY file how to modify CDEBUGFLAGS
%make_build WORLDOPTS='-k CDEBUGFLAGS="%{optflags} -D__USE_BSD_SIGNAL" -k EXTRA_LDOPTIONS="%{ldflags}" CC="%{__cc} %{ldflags}"' World

%install
%makeinstall_std \
   BINDIR="%{_bindir}" \
   LIBDIR="%{_libdir}/X11" \
   INCROOT="%{_includedir}" \
   USRLIBDIR="%{_libdir}" \
   SHLIBDIR="%{_libdir}" \
   MANPATH="%{_mandir}" \
   DOCDIR="%{_datadir}/X11/doc" \
   EXTRA_LDOPTIONS="%{ldflags}" \
   INSTALLFLAGS='-p' \
   install.man

mv %{buildroot}%{_sysconfdir}/nas/nasd.conf{.eg,}
install -d %{buildroot}%{_localstatedir}/lib/nasd
install -m755 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/sysconfig/nasd
install -p -m644 -D %{SOURCE1} %{buildroot}%{_unitdir}/nasd.service

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/nasd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14861 |21mr|nasm-2.15.05-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Netwide Assembler, a portable x86 assembler with Intel-like syntax
Name:		nasm
Version:	2.15.05
Release:	1
Epoch:		1
License:	BSD
Group:		Development/Tools
Url:		http://nasm.sourceforge.net
Source0:	http://www.nasm.us/pub/nasm/releasebuilds/%{version}/%{name}-%{version}.tar.xz
Patch0:		nasm-2.13.02-switch-font-for-nasmdoc.patch
BuildRequires:	ghostscript
BuildRequires:	groff
BuildRequires:	texinfo
BuildRequires:	perl(Font::TTF::Font)
BuildRequires:	perl(Sort::Versions)
BuildRequires:	fonts-ttf-liberation

%description
NASM is the Netwide Assembler, a free portable assembler for the Intel
80x86 microprocessor series, using primarily the traditional Intel
instruction mnemonics and syntax.

%files
%doc LICENSE CHANGES AUTHORS doc/internal.doc
%{_bindir}/nasm
%{_bindir}/ndisasm
%{_bindir}/rdf2ith
%{_bindir}/rdf2srec
%{_bindir}/rdf2bin
%{_mandir}/man1/ldrdf.1*
%{_mandir}/man1/nasm.1*
%{_mandir}/man1/ndisasm.1*
%{_mandir}/man1/rd*.1*

#----------------------------------------------------------------------------

%package doc
Summary:	Extensive documentation for NASM
Group:		Documentation
BuildArch:	noarch

%description doc
Extensive documentation for the Netwide Assembler, NASM, in HTML,
PostScript, RTF and text formats.

%files doc
%doc doc/nasmdoc.ps.xz doc/nasmdoc.txt.xz doc/html

#----------------------------------------------------------------------------

%package rdoff
Summary:	Tools for the RDOFF binary format, sometimes used with NASM
Group:		Development/Tools

%description rdoff
Tools for the operating-system independent RDOFF binary format, which
is sometimes used with the Netwide Assembler (NASM).  These tools
include linker, library manager, loader, and information dump.

%files rdoff
%doc rdoff/README rdoff/doc/v1-v2.txt
%{_bindir}/rdfdump
%{_bindir}/ldrdf
%{_bindir}/rdx
%{_bindir}/rdflib
%{_bindir}/rdf2ihx
%{_bindir}/rdf2com

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make_build everything

%install
%make_install install_rdf
cd doc
xz -v --text nasmdoc*.txt nasmdoc*.ps||true
cd html
ln -sf nasmdoc0.html index.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14862 |21mr|native2ascii-maven-plugin-1.0-0.18.beta1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -beta-1
%global namedversion %{version}%{?namedreltag}
Name:          native2ascii-maven-plugin
Version:       1.0
Release:       0.18.beta1
Summary:       Native2Ascii Maven Plugin
License:       MIT
URL:           http://mojo.codehaus.org/%{name}/
Source0:       http://repo2.maven.org/maven2/org/codehaus/mojo/%{name}/%{namedversion}/%{name}-%{namedversion}-source-release.zip

BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-project)

BuildRequires: mvn(junit:junit)

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-invoker-plugin
BuildRequires: maven-plugin-plugin

# requires by javadoc-plugin
BuildRequires: mvn(org.apache.maven.shared:maven-invoker)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Converts files with characters in any
supported character encoding to
one with ASCII and/or Unicode escapes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
%pom_remove_plugin org.apache.maven.plugins:maven-invoker-plugin

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14863 |21mr|native-platform-0.14-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}

Name:          native-platform
Version:       0.14
Release:       16
Summary:       Java bindings for various native APIs
License:       ASL 2.0
Group:          Development/Java
URL:           https://github.com/adammurdoch/native-platform
Source0:       https://github.com/adammurdoch/native-platform/archive/%{namedversion}.tar.gz
# From Debian
Source4:       %{name}-0.7-Makefile
# Try to load native library from /usr/lib*/native-platform
# instead of extractDir or classpath.
Patch0:        0001-Load-lib-from-system.patch
# Use generate libraries without arch references
# Add support for arm and other x64 arches
Patch1:        0002-Use-library-name-without-arch.patch

# build tools and deps
BuildRequires:  gcc-c++
BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: ncurses-devel
BuildRequires: jopt-simple

%description
A collection of cross-platform Java APIs
for various native APIs.

These APIs support Java 5 and later. Some
of these APIs overlap with APIs available
in later Java versions.

%package javadoc
Summary:       Javadoc for %{name}
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
find .  -name "*.jar" -delete
find .  -name "*.class" -delete

%patch0 -p1
%patch1 -p1

cp -p %{SOURCE4} Makefile

chmod 644 readme.md
sed -i 's/\r//' readme.md

# TODO
mv src/curses/cpp/*.cpp src/main/cpp
mv src/shared/cpp/* src/main/cpp

%build
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
CPPFLAGS="${CPPFLAGS:-%optflags}" ; export CPPFLAGS ;
CXXFLAGS="${CXXFLAGS:-%optflags}" ; export CXXFLAGS ;
LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS;
make %{?_smp_mflags} JAVA_HOME=%{_jvmdir}/java

%mvn_artifact net.rubygrapefruit:%{name}:%{version} build/%{name}.jar
%mvn_file : %{name}

%install
%mvn_install -J build/docs/javadoc
mkdir -p %{buildroot}%{_libdir}/%{name}
install -pm 0755 build/binaries/libnative-platform-curses.so %{buildroot}%{_libdir}/%{name}/
install -pm 0755 build/binaries/libnative-platform.so %{buildroot}%{_libdir}/%{name}/

%files -f .mfiles
%{_libdir}/%{name}
%doc readme.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14864 |21mr|nautilus-42.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f1)

%define major 1
%define gir_major 3.0
%define libname %mklibname %{name}-extension %{major}
%define girname %mklibname %{name}-gir %{gir_major}
%define devname %mklibname %{name} -d

Summary:	File manager for the GNOME desktop environment
Name:		nautilus
Version:	42.5
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://download.gnome.org/sources/nautilus
Source0:	https://download.gnome.org/sources/nautilus/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		nautilus-42.5-po-ru-translate.patch
Patch1:		nautilus-41.2-yandex-example.patch
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(gexiv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(gnome-autoar-0)
BuildRequires:	pkgconfig(gnome-desktop-3.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-tag-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libportal)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
Requires:	tracker-miners

%description
Nautilus is an excellent file manager for the GNOME desktop environment.

%files -f %{name}.lang
%doc NEWS README.md
%license LICENSE
%{_appdatadir}/org.gnome.Nautilus.appdata.xml
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/dbus-1/services/org.freedesktop.FileManager1.service
%{_datadir}/dbus-1/services/org.gnome.Nautilus*.service
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_datadir}/gnome-shell/search-providers/org.gnome.Nautilus.search-provider.ini
%{_datadir}/%{name}
%{_datadir}/tracker3/domain-ontologies/org.gnome.Nautilus.domain.rule
%{_iconsdir}/hicolor/*/apps/org.gnome.Nautilus*
%{_libdir}/%{name}/extensions-3.0/lib%{name}-*.so
%{_libdir}/%{name}/extensions-3.0/libtotem-properties-page.so
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for Nautilus File manager
Group:		System/Libraries
Provides:	%{name}-extensions = %{EVRD}

%description -n %{libname}
Nautilus is an excellent file manager for the GNOME desktop environment.
This package contains libraries used by Nautilus.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{name}*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license LICENSE
%{_libdir}/girepository-1.0/Nautilus-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing nautilus components
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include 
files to allow you to develop nautilus components.

%files -n %{devname}
%license LICENSE
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gtk-doc/html/lib%{name}-extension
%{_datadir}/gir-1.0/Nautilus-%{gir_major}.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson -Ddocs=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14865 |21mr|nautilus-filesharing-0.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: 		nautilus-filesharing
Version:	0.6
Release: 	10
Summary: 	Filesharing extension for Nautilus
Group: 		File tools
License: 	GPL
URL:		http://www.mandrivalinux.com/
Source0: 	%{name}-%{version}.tar.gz
Requires:	mdk-menu-messages
Requires:	drakxtools-newt
BuildRequires:	gtk+2-devel
BuildRequires:	nautilus-devel

%description
This package contains Nautilus extension for filesharing.

%prep
%setup -q

%build
%configure
%make

%install
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%makeinstall_std

#remove unpackaged files
rm -f $RPM_BUILD_ROOT%{_libdir}/nautilus/extensions-2.0/*.{la,a} \
      %buildroot%{_datadir}/icons/gnome/scalable/emblems/emblem-shared.svg

%clean
[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT

%files 
%defattr(-, root, root)
%doc AUTHORS COPYING 
%{_libdir}/nautilus/extensions-2.0/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14866 |21mr|nautilus-python-1.2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Python bindings for Nautilus
Name:		nautilus-python
Version:	1.2.3
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Development/Python
Url:		http://www.gnome.org
Source0:	https://download.gnome.org/sources/nautilus-python/%{url_ver}/nautilus-python-%{version}.tar.xz
Patch0:		nautilus-python-1.2.3-fix-gcc10-compiling.patch
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
Provides:	python-nautilus = %{EVRD}

%description
Python bindings for Nautilus.

%files
%doc AUTHORS ChangeLog NEWS installed-docs/*
%{_libdir}/nautilus/extensions-3.0/*
%{_libdir}/pkgconfig/nautilus-python.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%ifarch x86_64
export CFLAGS="%{optflags} -fPIC"
%endif
%configure
%make

%install
%makeinstall_std

mv %{buildroot}%{_datadir}/doc/%{name} installed-docs

mkdir %{buildroot}%{_libdir}/nautilus/extensions-3.0/python

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14867 |21mr|nautilus-sendto-3.8.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Send files from nautilus using with mail or IM
Name:		nautilus-sendto
Version:	3.8.6
Release:	12
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/nautilus-sendto
Source0:	https://download.gnome.org/sources/nautilus-sendto/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		new-meson-versions-fix.patch
BuildRequires:	intltool
BuildRequires:	glib2.0-common
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gupnp-1.2)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libnautilus-extension)
Requires:	gsettings-desktop-schemas

%description
This application provides integration between nautilus and mail or IM clients.
It adds a Nautilus context menu component ("Send To...") and features
a dialog for insert the email or IM account which you want to send
the file/files.

%files -f %{name}.lang
%doc NEWS AUTHORS
%{_bindir}/nautilus-sendto
%{_datadir}/appdata/nautilus-sendto.metainfo.xml
%{_mandir}/man1/nautilus-sendto.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14868 |21mr|nautilus-share-0.7.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Quick and Easy Way to Share Folders in Nautilus Via Samba
Name:		nautilus-share
Version:	0.7.5
Release:	1
License:	GPLv2
Url:		http://git.gnome.org/nautilus-share
Group:		File tools
Source0:	https://gitlab.gnome.org/City-busz/nautilus-share/-/archive/%{version}/nautilus-share-%{version}.tar.gz
# missing file
Source1:	LINGUAS
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	nautilus-devel
BuildRequires:	pkgconfig(gtk4)
Requires:	samba-server
Recommends:	gnome-icon-theme

%description
Application for the GNOME desktop integrated in Nautilus, that allows
simple use of Nautilus shares without signing in as root.

Features: * A new entry in your Nautilus right-click menu with a
nice icon.

* A simple dialog to share your folder, which allows you to choose a
name and decide whether to make it read-only.

* Possibility to access it from the Properties tab of your folder.

* Possibility to see whether a share name already exists by simply
typing it.

* Nautilus displays a palm icon to visually show you which folders are
shared.

%files -f %{name}.lang
%doc AUTHORS COPYING README
%{_datadir}/interfaces/share-dialog-gtk4.ui
%{_datadir}/interfaces/share-dialog.ui
%{_libdir}/nautilus/extensions-*/*.so

#------------------------------------------------------------------

%prep
%autosetup -p1

cp %{SOURCE1} ./po/

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14869 |21mr|ncdu-1.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Text-based disk usage viewer
Name:		ncdu
Version:	1.21
Release:	1
License:	MIT
Group:		Monitoring
Url:		http://dev.yorhel.nl/ncdu/
Source0:	http://dev.yorhel.nl/download/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(ncurses)


%description
ncdu (NCurses Disk Usage) is a curses-based version of the well-known 'du',
and provides a fast way to see what directories are using your disk space.

%files
%doc ChangeLog README
%license COPYING
%{_bindir}/ncdu
%{_mandir}/man1/ncdu.1*
#----------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-ncursesw
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14870 |21mr|ncftp-3.2.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	An improved FTP client
Name:		ncftp
Version:	3.2.6
Release:	8
License:	Artistic
Group:		Networking/File transfer
Url:		http://www.ncftp.com/
Source0:	ftp://ftp.ncftp.com/ncftp/ncftp-%{version}-src.tar.xz
Patch0:		ncftp-confirm.patch
Patch3:		ncftp-3.0.3-resume.patch
Patch5:		ncftp-3.1.9-suspend.patch
# requested by Yura Gusev <elendal@w4technology.com>
# adapted to 3.1.1 from http://www.fefe.de/ncftp/ncftp-3.0-EPLF.diff
# It will allow ncftp to work with publicfile. http://publicfile.org/
Patch7:		ncftp-3.2.6-EPLF.diff
Patch8:		ncftp-3.2.3-fix-help-cmd.patch
Patch9:		ncftp-3.1.5-pmeter.patch
BuildRequires:	pkgconfig(ncursesw)

%description
Ncftp is an improved FTP client.  Ncftp's improvements include support
for command line editing, command histories, recursive gets, automatic
anonymous logins and more.

%files
%doc doc/*.txt README.txt
%{_bindir}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .confirm~ 
%patch3 -p1 -b .resume~
%patch5 -p1 -b .suspend~
%patch7 -p1 -b .eplf̈~
%patch8 -p1 -b .help~
%patch9 -p1 -b .pmeter~

%build
%configure \
	--enable-signals \
	--enable-ipv6
%make STRIPFLAG="" STRIP="true"

%install
%makeinstall_std STRIPFLAG="" STRIP="true"

rm doc/*indows.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14871 |21mr|ncompress-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	compress

Summary:	Fast compression and decompression utilities
Name:		ncompress
Version:	5.0
Release:	1
License:	Public Domain
Group:		Archiving/Compression
Url:		https://github.com/vapier/%{name}
Source0:	https://github.com/vapier/%{name}/archive/refs/tags/v%{version}.tar.gz
# allow to build ncompress
# ~> downstream
Patch0:		ncompress-5.0-make.patch
# from dist-git commit 0539779d937
# (praiskup: removed redundant part as -DNOFUNCDEF is defined)
# ~> downstream
Patch1:		ncompress-5.0-lfs.patch
# exit when too long filename is given (do not segfault)
# ~> #unknown
# ~> downstream
# Patch2: ncompress-4.2.4.4-filenamelen.patch
# Did not segfault, Prints error 'File name too long'
# permit files > 2GB to be compressed
# ~> #126775
Patch3:		ncompress-5.0-2GB.patch
# do not fail to compress on ppc/s390x
# ~> #207001
Patch4:		ncompress-5.0-endians.patch
# use memmove instead of memcpy
# ~> 760657
# ~> downstream
Patch5:		ncompress-5.0-memmove.patch

%description
The ncompress package contains the compress and uncompress
file compression and decompression utilities, which are compatible
with the original UNIX compress utility (.Z file extensions).  These
utilities can't handle gzipped (.gz file extensions) files, but
gzip can handle compressed files.

%files
%doc LZW.INFO README.md
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p2 -b .make
%patch1 -p2 -b .lfs
%patch3 -p2 -b .2gb
%patch4 -p2 -b .endians
%patch5 -p2 -b .memmove

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -m755 %{oname} -D %{buildroot}%{_bindir}/%{oname}
ln -sf %{oname} %{buildroot}%{_bindir}/uncompress
install -m644 %{oname}.1 -D %{buildroot}%{_mandir}/man1/%{oname}.1
ln -sf %{oname}.1 %{buildroot}%{_mandir}/man1/uncompress.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14872 |21mr|ncurses-6.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	date	%nil
%define	major	6
%define	majorminor	6.2
%define	utf8libname	%mklibname %{name}w %{major}
%define	libname		%mklibname %{name} %{major}
%define	devname		%mklibname -d %{name}
%define	utf8devname	%mklibname -d %{name}w

%bcond_with bootstrap

Summary:	A CRT screen handling and optimization package
Name:		ncurses
Version:	6.2
Release:	7
License:	MIT
Group:		System/Libraries
Url:		http://www.gnu.org/software/ncurses/ncurses.html
Source0:	https://invisible-mirror.net/archives/ncurses/%{name}-%{version}.tar.gz
Source4:	ncurses-resetall.sh
Source5:	ncurses-useful-terms
Patch1:		ncurses-5.6-xterm-debian.patch
# Alias "console" to "linux"
Patch2:		ncurses-6.0-20160507-linux-console.patch
Patch3:		ncurses-5.9-buildfix.patch
Patch7:		ncurses-6.0-urxvt.patch
Patch8:		CVE-2021-39537.patch
Patch9:		CVE-2022-29458.patch
%if %{without bootstrap}
BuildRequires:	ncurses
%endif
BuildRequires:	gpm-devel
BuildRequires:	sharutils
Conflicts:	%{name}-extraterms < 5.9-6.20121026.3

%description
The curses library routines are a terminal-independent method of updating
character screens with reasonalble optimization. The ncurses (new curses)
library is a freely distributable replacement for the discontinued 4.4BSD
classic curses library.

%files -f %{name}.list
%doc README ANNOUNCE
%{_datadir}/tabset
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man7/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The development files for applications which use ncurses
Group:		System/Libraries
%if "%{_lib}" == "lib64"
Provides:	libncurses.so.5()(64bit)
%else
Provides:	libncurses.so.5
%endif

%description -n %{libname}
The curses library routines are a terminal-independent method of updating
character screens with reasonalble optimization. The ncurses (new curses)
library is a freely distributable replacement for the discontinued 4.4BSD
classic curses library.

%files -n %{libname}
%attr(755,root,root) /%{_lib}/libncurses.so.%{major}*
%attr(755,root,root) /%{_lib}/libncurses.so.5
%attr(755,root,root) %{_libdir}/libpanel.so.%{major}*
%attr(755,root,root) %{_libdir}/libmenu.so.%{major}*
%attr(755,root,root) %{_libdir}/libform.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{utf8libname}
Summary:	Ncurses libraries which support UTF8
Group:		System/Libraries

%description -n %{utf8libname}
The curses library routines are a terminal-independent method of updating
character screens with reasonalble optimization. The ncurses (new curses)
library is a freely distributable replacement for the discontinued 4.4BSD
classic curses library.

This package contains ncurses libraries which support wide char (UTF8),
and is not compatible with those without.

%files -n %{utf8libname}
%attr(755,root,root) /%{_lib}/libncursesw.so.%{major}*
# I have no clue on how nor where this actually gets created?!?!
%attr(755,root,root) %{_libdir}/lib*w.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The development files for applications which use ncurses
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{utf8libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
# just keep this depdenency for untangling initial dependency issues..
%if "%{_lib}" == "lib64"
Provides:	devel(libncurses(64bit))
# probably it's Misha's rpm-devel generator bug
#Provides:	devel(libncursesw(64bit))
%else
Provides:	devel(libncurses)
%endif
Provides:	pkgconfig(ncurses)
Provides:	%{utf8devname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{utf8devname} < 5.9-7.20130218.2
# /usr/include/termcap.h conflicts
Conflicts:	termcap-devel > 2.0.8-53

%description -n %{devname}
The header files and libraries for developing applications that use
the ncurses CRT screen handling and optimization package.

Install the ncurses-devel package if you want to develop applications
which will use ncurses.

%files -n %{devname}
%doc doc c++ test
%{_libdir}/libcurses.a
%{_libdir}/libcurses.so
%{_libdir}/libform.a
%{_libdir}/libform.so
%{_libdir}/libformw.a
%{_libdir}/libformw.so
%{_libdir}/libmenu.a
%{_libdir}/libmenu.so
%{_libdir}/libmenuw.a
%{_libdir}/libmenuw.so
%{_libdir}/libncurses++.a
%{_libdir}/libncurses++w.a
%{_libdir}/libncurses.a
%{_libdir}/libncurses.so
%{_libdir}/libncursesw.a
%{_libdir}/libncursesw.so
%{_libdir}/libpanel.a
%{_libdir}/libpanel.so
%{_libdir}/libpanelw.a
%{_libdir}/libpanelw.so
%{_libdir}/pkgconfig/ncurses++w.pc
%{_libdir}/pkgconfig/formw.pc
%{_libdir}/pkgconfig/menuw.pc
%{_libdir}/pkgconfig/ncursesw.pc
%{_libdir}/pkgconfig/panelw.pc
%{_libdir}/pkgconfig/form.pc
%{_libdir}/pkgconfig/menu.pc
%{_libdir}/pkgconfig/ncurses.pc
%{_libdir}/pkgconfig/panel.pc
%{_includedir}/*.h
%dir %{_includedir}/ncurses
%{_includedir}/ncurses/*.h
%dir %{_includedir}/ncursesw
%{_includedir}/ncursesw/*.h
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package extraterms
Summary:	Some exotic terminal descriptions
Group:		System/Libraries
Requires:	ncurses = %{EVRD}
BuildArch:	noarch

%description extraterms
Install the ncurses-extraterms package if you use some exotic terminals.

%files extraterms -f %{name}-extraterms.list
%doc README

#----------------------------------------------------------------------------

%package -n termcap
Summary:	The terminal feature database used by certain applications
Group:		System/Libraries
Epoch:		1
BuildArch:	noarch

%description -n termcap
The termcap package provides the /etc/termcap file.  /etc/termcap is
a database which defines the capabilities of various terminals and
terminal emulators.  Certain programs use the /etc/termcap file to
access various features of terminals (the bell, colors, and graphics,
etc.).

%files -n termcap
%{_sysconfdir}/termcap

#----------------------------------------------------------------------------

%prep
%autosetup -p1
find . -name "*.orig" -o -name "*~" | xargs rm -f
# fix some permissions
chmod 755 c++/edit_cfg.sh test/listused.sh test/configure test/tracemunch

# we don't need nor want this, and it also pulls in a dependency on /usr/bin/make
rm -rf test/package

%build
%config_update
export PKG_CONFIG_LIBDIR=%{_libdir}/pkgconfig

CONFIGURE_TOP="$PWD"

common_options="\
	--without-libtool \
	--with-shared \
	--with-normal \
	--with-cxx \
	--without-debug \
	--enable-overwrite \
	--without-profile \
	--with-gpm \
	--enable-termcap \
	--enable-getcap \
	--enable-const \
	--enable-hard-tabs \
	--enable-hash-map \
	--enable-no-padding \
	--enable-sigwinch \
	--without-ada \
	--disable-widec \
	--enable-xmc-glitch \
	--enable-colorfgbg \
	--with-ospeed=unsigned \
	--disable-root-environ"

# tODO: this should die
mkdir -p ncurses-normal
pushd ncurses-normal
%configure \
	$common_options \
	--with-abi-version=6 \
	--disable-pc-files \
	--without-progs

%make
popd

mkdir -p ncurses-utf8
pushd ncurses-utf8
%configure \
	$common_options \
	--with-abi-version=6 \
	--with-pkg-config-libdir=%{_libdir}/pkgconfig \
	--enable-widec \
	--enable-pc-files

%make
popd

%install
# we only install the libraries for a while untill all our packages has been
# rebuilt against the unicode version and no packages needs this anymore
pushd ncurses-normal
make install.libs DESTDIR=%{buildroot}
rm -f %{buildroot}%{_libdir}/lib*.{a,so}
popd

pushd ncurses-utf8
%make_install
popd

# the resetall script
install -m 755 %{SOURCE4} %{buildroot}%{_bindir}/resetall
# we don't want this in doc
rm -f c++/demo

mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libncurses{,w}.so.* %{buildroot}/%{_lib}
rm %{buildroot}%{_libdir}/libncursesw.so
ln -sr %{buildroot}/%{_lib}/libncursesw.so.%{majorminor} %{buildroot}%{_libdir}/libncursesw.so.%{major}
ln -sr %{buildroot}/%{_lib}/libncursesw.so.%{majorminor} %{buildroot}%{_libdir}/libncursesw.so
for i in form menu ncurses panel; do
	ln -s lib${i}w.a %{buildroot}%{_libdir}/lib${i}.a
	ln -s lib${i}w.so %{buildroot}%{_libdir}/lib${i}.so
done
ln -s libncursesw.so %{buildroot}%{_libdir}/libcurses.so
ln -s libncursesw.a %{buildroot}%{_libdir}/libcurses.a
ln -s libncurses++w.a %{buildroot}%{_libdir}/libncurses++.a

#
# FIXME
# OK do not time to debug it now
#
cp %{buildroot}%{_datadir}/terminfo/x/xterm %{buildroot}%{_datadir}/terminfo/x/xterm2
cp %{buildroot}%{_datadir}/terminfo/x/xterm-new %{buildroot}%{_datadir}/terminfo/x/xterm

#
# remove unneeded/unwanted files
# have to be done before find commands below
#
rm -f %{buildroot}%{_libdir}/terminfo

# fwang: avoid conflict with kon package
rm -f %{buildroot}%{_datadir}/terminfo/k/kon

# bero: Build termcap from the terminfo database
mkdir -p %{buildroot}%{_sysconfdir}
%if ! %cross_compiling
LD_LIBRARY_PATH=%{buildroot}/%{_lib}:%{buildroot}%{_libdir}:$LD_LIBRARY_PATH %{buildroot}%{_bindir}/tic -Ct misc/terminfo.src > %{buildroot}%{_sysconfdir}/termcap
%else
tic -Ct misc/terminfo.src > %{buildroot}%{_sysconfdir}/termcap
%endif

#
# FIXME
#
(cd %{buildroot} ; find usr/share/terminfo -type d | perl -pe 's||%%dir /|') > %{name}.list
(cd %{buildroot} ; find usr/share/terminfo -not -type d | perl -pe 's||/|') > %{name}-extraterms.list
perl -pe 's||%{_datadir}/terminfo/|' %{SOURCE5} >> %{name}.list

perl -ni -e 'BEGIN { open F, "%{name}.list"; /^%/ or $s{$_} = 1 foreach <F>; } print unless $s{$_}' %{name}-extraterms.list

find %{buildroot}/%{_libdir} -name 'lib*.a' -not -type d -not -name "*_g.a" -not -name "*_p.a" -not -name "*w.a" | sed -e "s#^%{buildroot}##" > %{libname}-devel.list

# can't replace directory with symlink (rpm bug), symlink all headers
mkdir %{buildroot}%{_includedir}/ncurses{,w}
for l in %{buildroot}%{_includedir}/*.h; do
    ln -sr $l %{buildroot}%{_includedir}/ncurses
    ln -sr $l %{buildroot}%{_includedir}/ncursesw
done

# Add a few symlinks for legacy compatibility
for i in form menu ncurses panel; do
    ln -s ${i}w.pc %{buildroot}%{_libdir}/pkgconfig/$i.pc
done

# There are no binary incompatibilities here -- it's just
# a version number related soname increase. Let's keep binaries
# built against previous versions happy...
ln -s libncurses.so.%{majorminor} %{buildroot}/%{_lib}/libncurses.so.5

# Don't allow rpm helpers to get rid of that seemingly "wrong" symlink
export DONT_SYMLINK_LIBS=1
export DONT_RELINK=1

# (tpg) do not push our LDFLAGS
sed -i -e 's/%{ldflags}//g' %{buildroot}%{_bindir}/ncurses*-config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14873 |21mr|ndctl-71.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with doc
%define ndctl_maj 6
%define ndctl_lib %mklibname ndctl %{ndctl_maj}
%define ndctl_dev %mklibname ndctl -d
%define daxctl_maj 1
%define daxctl_lib %mklibname daxctl %{daxctl_maj}
%define daxctl_dev %mklibname daxctl -d

Summary:	Manage "libnvdimm" subsystem devices (Non-volatile Memory)
Name:		ndctl
Version:	71.1
Release:	2
License:	GPLv2
Group:		System/Base
Url:		https://github.com/pmem/ndctl
Source0:	https://github.com/pmem/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
%if %{with doc}
BuildRequires:	ruby-asciidoctor
BuildRequires:	asciidoc
%endif
BuildRequires:	xmlto
BuildRequires:	libtool
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(libkeyutils)
BuildRequires:	pkgconfig(systemd)
Requires:	%{ndctl_lib} = %{EVRD}
Requires:	%{daxctl_lib} = %{EVRD}

%description
Utility library for managing the "libnvdimm" subsystem.  The "libnvdimm"
subsystem defines a kernel device model and control message interface for
platform NVDIMM resources like those defined by the ACPI 6+ NFIT (NVDIMM
Firmware Interface Table).

%files
%{_bindir}/ndctl
%if %{with doc}
%{_mandir}/man1/ndctl*
%endif
%{_datadir}/bash-completion/completions/ndctl
%{_sysconfdir}/modprobe.d/nvdimm-security.conf
%{_sysconfdir}/ndctl/keys/keys.readme
%{_sysconfdir}/ndctl/monitor.conf
%{_unitdir}/ndctl-monitor.service

#---------------------------------------------------------------------------

%package -n %{ndctl_dev}
Summary:	Development files for libndctl
License:	LGPLv2
Group:	        Development/Other
Requires:	%{ndctl_lib} = %{EVRD}

%description -n %{ndctl_dev}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{ndctl_dev}
%{_includedir}/ndctl/
%{_libdir}/libndctl.so
%{_libdir}/pkgconfig/libndctl.pc

#---------------------------------------------------------------------------

%package -n daxctl
Summary:	Manage Device-DAX instances
License:	GPLv2
Group:          System/Configuration/Hardware
Requires:	%{daxctl_lib} = %{EVRD}

%description -n daxctl
The daxctl utility provides enumeration and provisioning commands for
the Linux kernel Device-DAX facility. This facility enables DAX mappings
of performance / feature differentiated memory without need of a
filesystem.

%files -n daxctl
%{_bindir}/daxctl
%{_datadir}/daxctl/daxctl.conf
%if %{with doc}
%{_mandir}/man1/daxctl*
%endif

#---------------------------------------------------------------------------

%package -n %{daxctl_dev}
Summary:	Development files for libdaxctl
License:	LGPLv2
Group:		Development/C++
Requires:	%{daxctl_lib} = %{EVRD}

%description -n %{daxctl_dev}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}, a library for enumerating
"Device DAX" devices.  Device DAX is a facility for establishing DAX
mappings of performance / feature-differentiated memory.

%files -n %{daxctl_dev}
%doc README.md
%{_includedir}/daxctl/
%{_libdir}/libdaxctl.so
%{_libdir}/pkgconfig/libdaxctl.pc

#---------------------------------------------------------------------------

%package -n %{ndctl_lib}
Summary:	Management library for "libnvdimm" subsystem devices (Non-volatile Memory)
License:	LGPLv2
Group:          System/Libraries
Requires:	%{daxctl_lib} = %{EVRD}

%description -n %{ndctl_lib}
Libraries for %{name}.

%files -n %{ndctl_lib}
%{_libdir}/libndctl.so.%{ndctl_maj}*

#---------------------------------------------------------------------------

%package -n %{daxctl_lib}
Summary:	Management library for "Device DAX" devices
License:	LGPLv2
Group:		System/Libraries

%description -n %{daxctl_lib}
Device DAX is a facility for establishing DAX mappings of performance /
feature-differentiated memory. %{daxctl_lib} provides an enumeration /
control API for these devices.

%files -n %{daxctl_lib}
%{_libdir}/libdaxctl.so.%{daxctl_maj}*

#---------------------------------------------------------------------------

%prep
%setup -q

%build
echo %{version} > version
./autogen.sh

%configure \
	--disable-static \
	--disable-silent-rules \
%if %{with doc}
	--enable-docs
%else
	--disable-docs
%endif

%make_build

%install
%make_install

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14874 |21mr|neethi-3.0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          neethi
Version:       3.0.3
Release:       4
Summary:       Web Services Policy framework
License:       ASL 2.0
URL:           http://ws.apache.org/neethi/
Source0:       http://archive.apache.org/dist/ws/neethi/%{version}/neethi-%{version}-source-release.zip
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.ws.commons.axiom:axiom-api)
BuildRequires:  mvn(org.apache.ws.commons.axiom:axiom-dom)
BuildRequires:  mvn(org.apache.ws.commons.axiom:axiom-impl)
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)

Requires:       axiom >= 1.2.14

%description
Apache Neethi provides general framework for the programmers to
use WS Policy. It is compliant with latest WS Policy specification
which was published in March 2006. This framework is specifically
written to enable the Apache Web services stack to use WS Policy as
a way of expressing it's requirements and capabilities.

%package javadoc
Summary:      API documentation for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

# These plugins are not needed for RPM builds
%pom_remove_plugin :apache-rat-plugin
%pom_remove_plugin :maven-source-plugin

%mvn_file : %{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.txt RELEASE-NOTE.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14875 |21mr|nekohtml-1.9.22-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           nekohtml
Version:        1.9.22
Release:        10
Epoch:          0
Summary:        HTML scanner and tag balancer
License:        ASL 2.0
URL:            http://nekohtml.sourceforge.net/
# No upstream tarball for this release
# svn export svn://svn.code.sf.net/p/nekohtml/code/branches/nekohtml-1.9.22 nekohtml-1.9.22
# find nekohtml-1.9.22 -name '*.jar' -delete
# tar cjf nekohtml-1.9.22.tar.bz2 nekohtml-1.9.22/
Source0:        %{name}-%{version}.tar.bz2
Source2:        nekohtml-component-info.xml
Source3:        http://central.maven.org/maven2/net/sourceforge/%{name}/%{name}/%{version}/%{name}-%{version}.pom
Patch0:         0001-Crosslink-javadoc.patch
Patch1:         0002-Jar-paths.patch
# Add proper attributes to MANIFEST.MF file so bundle can be used by other OSGI bundles.
Patch2:         0003-Add-OSGi-attributes.patch

Requires:       bcel
Requires:       xerces-j2 >= 0:2.7.1
Requires:       xml-commons-apis
# Explicit requires for javapackages-tools since nekohtml-filter script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools
BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  bcel
BuildRequires:  bcel-javadoc
BuildRequires:  xerces-j2 >= 0:2.7.1
BuildRequires:  xerces-j2-javadoc
BuildRequires:  xml-commons-apis

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
NekoHTML is a simple HTML scanner and tag balancer that enables
application programmers to parse HTML documents and access the
information using standard XML interfaces. The parser can scan HTML
files and "fix up" many common mistakes that human (and computer)
authors make in writing HTML documents.  NekoHTML adds missing parent
elements; automatically closes elements with optional end tags; and
can handle mismatched inline element tags.
NekoHTML is written using the Xerces Native Interface (XNI) that is
the foundation of the Xerces2 implementation. This enables you to use
the NekoHTML parser with existing XNI tools without modification or
rewriting code.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%package demo
Summary:        Demo for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description demo
Demonstrations and samples for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1

find -name "*.jar" -delete
sed -i 's/\r$//g' *.txt doc/*.html

# cannonization test fails on some whitespace, TODO investigate
rm data/meta/test-meta-encoding3.html

%mvn_alias net.sourceforge.%{name}:%{name} %{name}:%{name}
%mvn_package net.sourceforge.%{name}:%{name}-samples demo
%mvn_file ':{*}' @1

%build
export CLASSPATH=$(build-classpath bcel xerces-j2 xml-commons-apis)
%{ant} \
    -Dbuild.sysclasspath=first \
    -Dlib.dir=%{_javadir} \
    -Djar.file=%{name}.jar \
    -Djar.xni.file=%{name}-xni.jar \
    -Djar.samples.file=%{name}-samples.jar \
    -Dbcel.javadoc=%{_javadocdir}/bcel \
    -Dj2se.javadoc=%{_javadocdir}/java \
    -Dxni.javadoc=%{_javadocdir}/xerces-j2-xni \
    -Dxerces.javadoc=%{_javadocdir}/xerces-j2-impl \
    clean jar jar-xni test doc
# test - disabled because it makes the build failing

%mvn_artifact %{SOURCE3} %{name}.jar
%mvn_artifact net.sourceforge.%{name}:%{name}-xni:%{version} %{name}-xni.jar
%mvn_artifact net.sourceforge.%{name}:%{name}-samples:%{version} %{name}-samples.jar

%install
%mvn_install -J build/doc/javadoc

# Scripts
%jpackage_script org.cyberneko.html.filters.Writer "" "" "nekohtml:xerces-j2" nekohtml-filter true

%files -f .mfiles
%doc LICENSE.txt README.txt doc/*.html
%{_bindir}/%{name}-filter

%files javadoc -f .mfiles-javadoc

%files demo -f .mfiles-demo


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14876 |21mr|neko-htmlunit-2.23-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          neko-htmlunit
Version:       2.23
Release:       7
Summary:       HtmlUnit adaptation of NekoHtml
License:       ASL 2.0
URL:           http://htmlunit.sourceforge.net
# svn export http://svn.code.sf.net/p/htmlunit/code/tags/HtmlUnit\ NekoHtml-2.23 neko-htmlunit-2.23
# tar cJf neko-htmlunit-2.23.tar.xz neko-htmlunit-2.23
Source0:       neko-htmlunit-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(xerces:xercesImpl)
# Modified version of NekoHtml
# see https://sourceforge.net/p/htmlunit/mailman/message/34963360/
Provides:      bundled(nekohtml) = 1.9.22

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
HtmlUnit adaptation of NekoHtml. It has the
same functionality but exposing HTMLElements
to be overridden.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n neko-htmlunit-%{version}

%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-scm-plugin

%mvn_file net.sourceforge.htmlunit:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14877 |21mr|nemo-5.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define gir_major 3.0
%define	libname %mklibname %{name}-extensions %{major}
%define girname %mklibname %{name}-gir %{gir_major}
%define	devname %mklibname %{name}-extensions -d

%define lang_ver 5.4.0

Summary:	File manager for Cinnamon
Name:		nemo
Version:	5.6.3
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		File tools
Url:		https://github.com/linuxmint/nemo
Source0:	https://github.com/linuxmint/nemo/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# With manual fix
Source1:	https://raw.githubusercontent.com/linuxmint/cinnamon-translations/%{lang_ver}/po-export/nemo/%{name}-ru.po
Patch0:		nemo-5.0.1-disable-open-as-root.patch
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	python3-gi
BuildRequires:	pkgconfig(cinnamon-desktop)
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(xapp)
BuildRequires:	pkgconfig(xproto)
Requires:	%{name}-desktop-icons = %{EVRD}
Requires:	%{libname} = %{EVRD}
Recommends:	yelp

%description
Nemo is the file manager and graphical shell for the Cinnamon desktop
that makes it easy to manage your files and the rest of your system.
It allows to browse directories on local and remote filesystems, preview
files and launch applications associated with them.
It is also responsible for handling the icons on the Cinnamon desktop.

%files
%doc AUTHORS NEWS README.md
%license COPYING COPYING-DOCS
%{_bindir}/%{name}
%{_bindir}/%{name}-autorun-software
%{_bindir}/%{name}-connect-server
%{_bindir}/%{name}-epub2text
%{_bindir}/%{name}-mso-to-txt
%{_bindir}/%{name}-open-with
%{_bindir}/%{name}-ppt-to-txt
%{_bindir}/%{name}-xls-to-txt
%{_datadir}/applications/%{name}-autorun-software.desktop
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/services/%{name}.*.service
%{_datadir}/dbus-1/services/%{name}.service
%{_datadir}/gtksourceview-*/language-specs/%{name}_action.lang
%{_datadir}/gtksourceview-*/language-specs/%{name}_search_helper.lang
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/%{name}/actions/*.%{name}_action
%{_datadir}/%{name}/actions/*.py
%{_datadir}/%{name}/actions/__pycache__/myaction.cpython-*.pyc
%{_datadir}/%{name}/icons/hicolor/*/*/*.png
%{_datadir}/%{name}/script-info.md
%{_datadir}/%{name}/search-helpers/*.%{name}_search_helper
%{_datadir}/polkit-1/actions/org.%{name}.root.policy
%{_iconsdir}/hicolor/*/*/*.png
%{_iconsdir}/hicolor/*/*/*.svg
%{_libexecdir}/%{name}-convert-metadata
%{_libexecdir}/%{name}-extensions-list
%{_mandir}/man1/%{name}*
%exclude %{_iconsdir}/hicolor/*/*/%{name}-horizontal-layout-*.svg
%exclude %{_iconsdir}/hicolor/*/*/%{name}-vertical-layout-*.svg

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Nemo extensions library
Group:		System/Libraries

%description -n %{libname}
This package provides the libraries used by nemo extensions.

%files -n %{libname}
%license COPYING.LIB
%{_libdir}/lib%{name}-extension.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc AUTHORS
%license COPYING
%{_libdir}/girepository-1.0/Nemo-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Support for developing nemo extensions
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides libraries and header files needed
for developing nemo extensions.

%files -n %{devname}
%license COPYING.EXTENSIONS
%{_datadir}/gir-1.0/Nemo-%{gir_major}.gir
%{_includedir}/%{name}/lib%{name}-extension/%{name}-*.h
%{_libdir}/lib%{name}-extension.so
%{_libdir}/pkgconfig/lib%{name}-extension.pc

#----------------------------------------------------------------------------

%package desktop-icons
Summary:	Nemo desktop icons
Group:		Graphical desktop/GNOME
Requires:	cinnamon-desktop
Requires:	xapps-desktop-schemas
OrderWithRequires: gnome-user-docs
Provides:	gnome-desktop-icons = %{EVRD}

%description desktop-icons
It is responsible for handling the icons on the Cinnamon desktop
and GNOME desktop.

%files desktop-icons -f %{name}.lang
%doc AUTHORS
%license COPYING
%{_bindir}/%{name}-desktop
%{_datadir}/applications/%{name}-autostart.desktop
%{_datadir}/glib-2.0/schemas/org.%{name}.gschema.xml
%ghost %{_datadir}/help/*/gnome-help/%{name}-file-properties-*.page
%{_iconsdir}/hicolor/*/*/%{name}-horizontal-layout-*.svg
%{_iconsdir}/hicolor/*/*/%{name}-vertical-layout-*.svg
%{_sysconfdir}/skel/.config/autostart/gnome-desktop-icons*.desktop

%post desktop-icons
if [ -d %{_datadir}/help/ru/gnome-help ]; then
	for i in $(ls %{_datadir}/help |grep "^..\(\|_..\)$"); do
		if [ -f %{_datadir}/help/$i/gnome-help/nautilus-file-properties-basic.page ] && [ ! -f %{_datadir}/help/$i/gnome-help/%{name}-file-properties-basic.page ]; then
			cp %{_datadir}/help/$i/gnome-help/{nautilus,%{name}}-file-properties-basic.page
			cp %{_datadir}/help/$i/gnome-help/{nautilus,%{name}}-file-properties-permissions.page
			sed -i "s/nautilus\(-file-properties-basic\)/%{name}\1/" %{_datadir}/help/$i/gnome-help/%{name}-file-properties-basic.page
			sed -i "s/nautilus\(-file-properties-permissions\)/%{name}\1/" %{_datadir}/help/$i/gnome-help/%{name}-file-properties-permissions.page
		fi
	done		
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/
msgfmt %{SOURCE1} -o %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/%{name}.mo

mkdir -p %{buildroot}%{_sysconfdir}/skel/.config/autostart
cat >> %{buildroot}%{_sysconfdir}/skel/.config/autostart/gnome-desktop-icons.desktop << "EOF"
[Desktop Entry]
Type=Application
Name=Gnome desktop icons
Comment=Enable desktop icons on Gnome
Exec=%{name}-desktop
X-GNOME-Autostart-enabled=true
X-GNOME-AutoRestart=true
NoDisplay=true
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14878 |21mr|neochat-23.08.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Client for matrix, the decentralized communication protocol
Name:		neochat
Version:	23.08.4
Release:	3
Group:		Networking/IRC
License:	GPLv2 and GPLv2+ and GPLv3 and GPLv3+ and BSD
URL:		https://invent.kde.org/network/neochat
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	qcoro-qt5-devel
BuildRequires:	cmark
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(olm)
BuildRequires:	pkgconfig(QtOlm)
BuildRequires:	pkgconfig(Quotient)
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	pkgconfig(libcmark)
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	kquickimageeditor-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	%{_lib}qt5keychain-devel
Requires:	hicolor-icon-theme
Requires:	kirigami2
Requires:	kirigami-addons
Requires:	kquickimageeditor
Requires:	qt5-qtquickcontrols2
Requires:	%{_lib}kf5itemmodels-qml
Requires:	%{_lib}kf5syntaxhighlighting5
Requires:	%{_lib}qt5location5

%description
Neochat is a client for Matrix, the decentralized communication protocol for
instant messaging. It is a fork of Spectral, using KDE frameworks, most
notably Kirigami, KConfig and KI18n.

%files -f %{name}.lang
%license LICENSES/*
%doc README.md
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/*.desktop
%{_kde5_datadir}/icons/hicolor/*/apps/*
%{_kde5_datadir}/qlogging-categories5/neochat.categories
%{_appdatadir}/*.appdata.xml
%{_kde5_notificationsdir}/%{name}.notifyrc
%{_kde5_datadir}/krunner/dbusplugins/plasma-runner-neochat.desktop
%{_mandir}/man1/neochat.1*
%{_mandir}/*/man1/neochat.1*

#----------------------------------------

%prep
%autosetup -p1

%build
%ifarch %{riscv}
%global optflags %{optflags} -std=c++17
%endif
%cmake_kde5 \
    -DCMAKE_BUILD_TYPE=Release
%make

%install
%makeinstall_std -C build
%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14879 |21mr|neon-0.31.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.27
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An HTTP and WebDAV client library, with a C interface
Name:		neon
Version:	0.31.2
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		System/Libraries
Url:		http://www.webdav.org/neon/
Source0:	https://notroj.github.io/neon/%{name}-%{version}.tar.gz
Patch0:		neon-locales.diff
Patch1:		neon-fail_parse.diff
Patch2:		neon-borked_addr_reverse.diff
Patch3:		neon-borked_retry_notcompress_and_retry_compress.diff
Patch4:		neon-borked_read_reset.diff
# http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=476571
Patch5:		neon-0.28.2-fix-segfault.patch
Patch6:		neon-0.29.6-neon-config_cleanups.diff
Patch7:		neon-0.30.1-disable-ssl2.patch
BuildRequires:	libtool
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblzma)

%description
neon is an HTTP and WebDAV client library for Unix systems, with a C language
API. It provides high-level interfaces to HTTP/1.1 and WebDAV  methods, and
a low-level interface to HTTP request/response handling, allowing new methods
to be easily implemented.

#----------------------------------------------------------------------------

%package i18n
Summary:	Language files for Neon
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
neon is an HTTP and WebDAV client library for Unix systems, with a C language
API. It provides high-level interfaces to HTTP/1.1 and WebDAV  methods, and
a low-level interface to HTTP request/response handling, allowing new methods
to be easily implemented.

%files i18n -f libneon%{major}.lang
%doc doc/*.txt README.neon

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for Neon
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
neon is an HTTP and WebDAV client library for Unix systems, with a C language
API. It provides high-level interfaces to HTTP/1.1 and WebDAV  methods, and
a low-level interface to HTTP request/response handling, allowing new methods
to be easily implemented.

%files -n %{libname}
%{_libdir}/libneon.so.27*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C++
Requires:	%{libname} >= %{EVRD}
Provides:	neon-devel = %{EVRD}
Obsoletes:	%{mklibname neon 0.27 -d} < 0.29.6-7
Conflicts:	%{mklibname neon 0.26}-devel < 0.29.6-7

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc AUTHORS BUGS doc/html ChangeLog NEWS THANKS TODO
%{_bindir}/neon-config
%{_libdir}/libneon.so
%{_libdir}/pkgconfig/neon.pc
%dir %{_includedir}/neon
%{_includedir}/neon/*
%{_mandir}/man1/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
%patch5 -p1
%patch6 -p1
%patch7 -p1

# fix mo clash (#28428)
# this goes with the changes done by Patch0
perl -pi -e "s|_LIBNAME_|libneon%{major}|g" Makefile.in src/ne_internal.h

# this value has to be raised on x86_64
perl -pi -e "s|^ulimit \-v .*|ulimit \-v 40960|g" test/run.sh

%build
%configure \
	--enable-shared \
	--disable-static \
	--with-ssl=openssl \
	--enable-threadsafe-ssl=posix \
	--with-ca-bundle=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt \
	--with-libxml2 \
	--without-libproxy

%make

%install
%makeinstall

# fix this
rm -rf %{buildroot}%{_datadir}/doc

%find_lang libneon%{major}

cp src/README README.neon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14880 |21mr|netcdf-4.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname   %{name}-c
%define major_c 19
%define libname %mklibname %{name} %{major_c}
%define devname %mklibname -d %{name}

Summary:	Libraries to use the Unidata network Common Data Form (netCDF)
Name:		netcdf
Version:	4.8.0
Release:	2
License:	NetCDF
Group:		Development/C
Url:		http://www.unidata.ucar.edu/packages/netcdf/index.html
Source0:	http://www.unidata.ucar.edu/downloads/netcdf/ftp/%{srcname}-%{version}.tar.gz
Source1:	guidec.pdf.bz2
Source2:	guidec.html.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	gcc-gfortran
BuildRequires:	groff
%ifarch %{ix86} %{x86_64} %{armx}
BuildRequires:	valgrind
%endif
BuildRequires:	hdf5-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(zlib)

%description
NetCDF (network Common Data Form) is an interface for array-oriented data
access and a freely-distributed collection of software libraries for C,
Fortran, C++, and perl that provides an implementation of the interface.
The netCDF library also defines a machine-independent format for representing
scientific data. Together, the interface, library, and format support the
creation, access, and sharing of scientific data. The netCDF software was
developed at the Unidata Program Center in Boulder, Colorado.

NetCDF data is:

   o Self-Describing. A netCDF file includes information about the data it
     contains.

   o Network-transparent. A netCDF file is represented in a form that can be
     accessed by computers with different ways of storing integers, characters,
     and floating-point numbers.

   o Direct-access. A small subset of a large dataset may be accessed
     efficiently, without first reading through all the preceding data.

   o Appendable. Data can be appended to a netCDF dataset along one dimension
     without copying the dataset or redefining its structure. The structure of
     a netCDF dataset can be changed, though this sometimes causes the dataset
     to be copied.

   o Sharable. One writer and multiple readers may simultaneously access the
     same netCDF file.

%files
%doc COPYRIGHT guidec.pdf guidec
%{_bindir}/nc4print
%{_bindir}/ocprint
%{_bindir}/ncgen
%{_bindir}/ncgen3
%{_bindir}/ncdump
%{_bindir}/nccopy
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	C libraries for netcdf-4
Group:		System/Libraries

%description -n	%{libname}
This package contains the netCDF-4 C libraries.

%files -n %{libname}
%{_libdir}/libnetcdf.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for netcdf-4
Group:		Development/C
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}netcdf-static-devel < 4.1.3-3

%description -n %{devname}
This package contains the netCDF-4 header files, shared devel libs, and
man pages.

%files -n %{devname}
%{_bindir}/nc-config
%{_includedir}/*.h
%{_libdir}/*.so
%{_mandir}/man3/*.3*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libnetcdf.settings

#----------------------------------------------------------------------------

%prep
%setup -qn %{srcname}-%{version}

%build
export LIBS="-ltirpc"

%define _disable_ld_no_undefined 1

%configure \
	--enable-shared \
	--disable-static \
	--enable-netcdf-4 \
	--enable-dap \
	--enable-extra-example-tests \
	--disable-dap-remote-tests

%make_build

%install
%make_install

bzcat %{SOURCE1} > guidec.pdf
bzcat %{SOURCE2} | tar xvf -

%check
#make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14881 |21mr|netcdf-cxx4-4.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 1
%define libname %mklibname netcdf_c++4_ %{major}
%define develname %mklibname -d netcdf_c++4

Summary:	Libraries to use the Unidata network Common Data Form (netCDF)
Name:		netcdf-cxx4
Version:	4.3.1
Release:	3
Group:		Development/C++
License:	NetCDF
URL:		https://www.unidata.ucar.edu/downloads/netcdf/index.jsp
Source0:	https://github.com/Unidata/netcdf-cxx4/archive/v%{version}.tar.gz
# Fix tests on big-endian
# https://github.com/Unidata/netcdf-cxx4/issues/45
Patch0:		netcdf-cxx4-bigendian.patch
BuildRequires:	pkgconfig(netcdf)

%description
NetCDF (network Common Data Form) is an interface for array-oriented data
access and a freely-distributed collection of software libraries for C, 
Fortran, C++, and perl that provides an implementation of the interface.
The netCDF library also defines a machine-independent format for representing
scientific data. Together, the interface, library, and format support the 
creation, access, and sharing of scientific data. The netCDF software was 
developed at the Unidata Program Center in Boulder, Colorado.

NetCDF data is: 

   o Self-Describing. A netCDF file includes information about the data it
     contains. 

   o Network-transparent. A netCDF file is represented in a form that can be 
     accessed by computers with different ways of storing integers, characters,
     and floating-point numbers. 

   o Direct-access. A small subset of a large dataset may be accessed 
     efficiently, without first reading through all the preceding data. 

   o Appendable. Data can be appended to a netCDF dataset along one dimension 
     without copying the dataset or redefining its structure. The structure of 
     a netCDF dataset can be changed, though this sometimes causes the dataset 
     to be copied. 

   o Sharable. One writer and multiple readers may simultaneously access the 
     same netCDF file. 

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++++ libraries for netcdf-4
Group:		System/Libraries

%description -n %{libname}
This package contains the netCDF-4 C++ libraries.

%files -n %{libname}
%{_libdir}/libnetcdf_c++4.so.%{major}*

#----------------------------------------------------------------------------
#%%define libh5zip2 %mklibname h5bzip2

#%%package -n %{libh5zip2}
#Summary:	C++++ libraries for netcdf-4
#Group:		System/Libraries

#%%description -n %{libh5zip2}
#This package contains the netCDF-4 C++ libraries.

#%%files -n %{libh5zip2}
#%%{_libdir}/libh5bzip2.so

#----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for netcdf-4
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
#Requires:	%{libh5zip2} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Conflicts:	%{_lib}netcdf-devel < 4.2.1.1
Conflicts:	%{_lib}netcdf_c++-devel < 4.2-2

%description -n %{develname}
This package contains the netCDF-4 header files, shared devel libs, and 
man pages.

%files -n %{develname}
%{_bindir}/ncxx4-config
%{_includedir}/*
%{_libdir}/libnetcdf_c++4.so
%{_libdir}/pkgconfig/netcdf-cxx4.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Fix line endings
sed -i -e 's/\r//' examples/*.cpp

%build
%configure --enable-shared --disable-static
%make

%install
%makeinstall_std
rm -f %{buildroot}%{_libdir}/*.la
# libh5bzip2 provided in libnetcdf-devel
rm  %{buildroot}%{_libdir}/libh5bzip2.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14882 |21mr|netcdf-fortran-4.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		7
%define libname		%mklibname netcdff %{major}
%define develname	%mklibname netcdff -d

Summary:	Libraries to use the Unidata network Common Data Form (netCDF)
Name:		netcdf-fortran
Version:	4.5.3
Release:	1
Group:		Development/Other
License:	NetCDF
URL:		http://www.unidata.ucar.edu/software/netcdf/
Source0:	http://www.unidata.ucar.edu/downloads/netcdf/ftp/%{name}-%{version}.tar.gz
# Use pkgconfig in nf-config to avoid multi-lib issues and remove FFLAGS
Patch1:		netcdf-fortran-pkgconfig.patch
BuildRequires:	gcc-gfortran
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	openssh-clients
# for Patch1
BuildRequires:	libtool

%description
NetCDF (network Common Data Form) is an interface for array-oriented data
access and a freely-distributed collection of software libraries for C,
Fortran, C++, and perl that provides an implementation of the interface.
The netCDF library also defines a machine-independent format for representing
scientific data. Together, the interface, library, and format support the
creation, access, and sharing of scientific data. The netCDF software was
developed at the Unidata Program Center in Boulder, Colorado.

NetCDF data is:

   o Self-Describing. A netCDF file includes information about the data it
     contains.

   o Network-transparent. A netCDF file is represented in a form that can be
     accessed by computers with different ways of storing integers, characters,
     and floating-point numbers.

   o Direct-access. A small subset of a large dataset may be accessed
     efficiently, without first reading through all the preceding data.

   o Appendable. Data can be appended to a netCDF dataset along one dimension
     without copying the dataset or redefining its structure. The structure of
     a netCDF dataset can be changed, though this sometimes causes the dataset
     to be copied.

   o Sharable. One writer and multiple readers may simultaneously access the
     same netCDF file.

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Fortran libraries for netcdf-4
Group:		System/Libraries
Obsoletes:	%{_lib}netcdf_fortran5 < %{version}

%description -n	%{libname}
This package contains the netCDF-4 fortran libraries.

%files -n %{libname}
%{_libdir}/libnetcdff.so.%{major}*
%{_libdir}/libnetcdff.settings


#----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for netcdf-4
Group:		Development/Other
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Conflicts:	%{_lib}netcdf-devel < 4.2.1.1
Conflicts:	netcdf < 4.2.1.1

%description -n %{develname}
This package contains the netCDF-4 header files, shared devel libs, and
man pages.

%files -n %{develname}
%{_bindir}/nf-config
%{_includedir}/*
%{_libdir}/libnetcdff.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%ifnarch %{e2k}
# This Fortran flag is unknown for lcc
export FCFLAGS="$FCFLAGS -fallow-argument-mismatch"
export FFLAGS="$FFLAGS -fallow-argument-mismatch"
%endif
%configure --enable-shared --disable-static --enable-extra-example-tests
# Seeing failures with highly parallel builds, e.g. -j12
%make -j8

%check
%ifnarch aarch64 i686 x86_64
make check
%endif

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14883 |21mr|netcf-0.2.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libmajor 1
%define libname %mklibname %{name} %{libmajor}
%define libnamedevel %mklibname -d %{name}

Name:		netcf
Version:	0.2.8
Release:	4
Group:		Networking/Other
License:	LGPLv2
Summary:	A distribution agnostic library and tool for configuring network interfaces
URL:		https://fedorahosted.org/netcf
Source0:	https://fedorahosted.org/released/netcf/netcf-%{version}.tar.gz
Source1:	https://fedorahosted.org/released/netcf/netcf-%{version}.tar.gz.sig
BuildRequires:	pkgconfig(augeas)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	readline-devel

%description
netcf is

    * a library for configuring network interfaces
    * a command line tool (ncftool) to do the same from the command line
    * distribution-agnostic and supports multiple distributions and operating
      systems (well, soon, anyway)
    * sets up Ethernet interfaces, bridges, and bonds 

Both libvirt and NetworkManager need this functionality - netcf implements what
is common to both of them.

%package -n %{libname}
Group:		System/Libraries
Summary:	A distribution agnostic library for configuring network interfaces

%description -n %{libname}
A distribution agnostic library for configuring network interfaces

Both libvirt and NetworkManager need this functionality - netcf implements what
is common to both of them.

%package -n %{libnamedevel}
Group:		Development/C
Summary:	Development files for a library for configuring network interfaces
Requires:	%{libname} >= %{version}-%{release}
Provides:	%{name}-devel = %{version}

%description -n %{libnamedevel}
Development files for a distribution agnostic library for configuring network 
interfaces.

%prep
%setup -q

%build
autoreconf -fi
#see https://bugzilla.redhat.com/show_bug.cgi?id=852549
#in future we should switch off with-libnl1 and use libnl3
%configure --disable-static
%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}%{_prefix}%{_unitdir}/* %{buildroot}%{_unitdir}/
rm -rf %{buildroot}%{_prefix}%{_unitdir}

%files
%doc README NEWS AUTHORS
%{_bindir}/*
%{_datadir}/%{name}
%{_libexecdir}/netcf-transaction.sh
%{_mandir}/man1/ncftool.1.*
%{_unitdir}/netcf-transaction.service

%files -n %{libname}
%{_libdir}/*.so.%{libmajor}*

%files -n %{libnamedevel}
%{_libdir}/*.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14884 |21mr|netkit-rsh-0.17-35
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clients for remote access commands (rsh, rlogin, rcp)
Name:		netkit-rsh
Version:	0.17
Release:	35
License:	BSD
Group:		Networking/Remote access
URL:		ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
Source0:	ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-rsh-%{version}.tar.gz
Source1:	rexec.pam
Source2:	rlogin.pam
Source3:	rsh.pam
Source4:	http://www.tc.cornell.edu/~sadd/rexec-1.5.tar.gz
Source5:	rsh-xinetd
Source6:	rlogin-xinetd
Source7:	rexec-xinetd
Patch0:		netkit-rsh-0.17-glibc-2.24.patch
Patch1:		netkit-rsh-0.17-sectty.patch
Patch2:		netkit-rsh-0.17-rexec.patch
Patch3:		netkit-rsh-0.10-stdarg.patch
Patch4:		netkit-rsh-0.16-jbj.patch
Patch8:		netkit-rsh-0.16-jbj4.patch
Patch9:		netkit-rsh-0.16-prompt.patch
Patch10:	netkit-rsh-0.16-rlogin=rsh.patch
Patch11:	netkit-rsh-0.16-nokrb.patch
Patch12:	netkit-rsh-0.17-pre20000412-jbj5.patch
Patch13:	netkit-rsh-0.17-userandhost.patch
Patch14:	netkit-rsh-0.17-strip.patch
Patch15:	netkit-rsh-0.17-lfs.patch
Patch16:	netkit-rsh-0.17-chdir.patch
Patch17:	netkit-rsh-0.17-pam-nologin.patch
Patch19:	netkit-rsh-0.17-rexec-netrc.patch
Patch20:	netkit-rsh-0.17-pam-sess.patch
Patch21:	netkit-rsh-0.17-errno.patch
Patch22:	netkit-rsh-0.17-rexec-sig.patch
Patch23:	netkit-rsh-0.17-nohost.patch
Patch24:	netkit-rsh-0.17-ignchld.patch
Patch25:	netkit-rsh-0.17-checkdir.patch
Patch26:	netkit-rsh-0.17-pam-conv.patch
Patch27:	netkit-rsh-0.17-rcp-largefile.patch
Patch28:	netkit-rsh-0.17-pam-rhost.patch
Patch29:	netkit-rsh-0.17-rlogin-linefeed.patch
Patch30:	netkit-rsh-0.17-ipv6.patch
Patch31:	netkit-rsh-0.17-pam_env.patch
Patch33:	netkit-rsh-0.17-dns.patch
Patch34:	netkit-rsh-0.17-nohostcheck-compat.patch
Patch35:	netkit-rsh-0.17-audit.patch
Patch36:	netkit-rsh-0.17-longname.patch
Patch37:	netkit-rsh-0.17-arg_max.patch
# (ahmad) check return value from close to catch errors on NFS filesystems
# https://bugzilla.redhat.com/show_bug.cgi?id=461903
Patch38:	netkit-rsh-0.17-rh461903.patch
# (ahmad) add check for return values
# https://bugzilla.redhat.com/show_bug.cgi?id=473492
Patch39:	netkit-rsh-0.17-rh473492.patch
# (proyvind): create destination directories when installing
Patch40:	netkit-rsh-0.17-install-create-destdir.patch

BuildRequires:	pam-devel
BuildRequires:	pkgconfig(audit)
BuildRequires:	pkgconfig(ncurses)
Conflicts:	krb5-appl-clients
Obsoletes:	rsh < 0.17
Provides:	rsh-client

%description
The rsh package contains a set of programs which allow users to run commmands
on remote machines, login to other machines and copy files between machines
(rsh, rlogin and rcp). All three of these commands use rhosts style
authentication.  This package contains the clients needed for all of these
services. The rsh package should be installed to enable remote access to other
machines.

%files
%{_bindir}/rexec
%attr(4755,root,root) %{_bindir}/rcp
%attr(4755,root,root) %{_bindir}/rlogin
%attr(4755,root,root) %{_bindir}/rsh
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%package server
Summary:	Servers for remote access commands (rsh, rlogin, rcp)
Group:		System/Servers
Requires:	pam >= 0.59
Requires:	xinetd

%description server
The rsh-server package contains a set of programs which allow users to run
commmands on remote machines, login to other machines and copy files between
machines (rsh, rlogin and rcp). All three of these commands use rhosts style
authentication. This package contains the servers needed for all of these
services. It also contains a server for rexec, an alternate method of executing
remote commands. All of these servers are run by xinetd and configured using
/etc/xinetd.d/ and PAM.  All the server is disabled by default.

%files server
%config(noreplace) %{_sysconfdir}/xinetd.d/*
%config(noreplace) %{_sysconfdir}/pam.d/*
%{_mandir}/man8/*.8*
%{_sbindir}/in.*

#----------------------------------------------------------------------------

%prep
%setup -q -a 4
%patch0 -p1 -b .glibc224
%patch1 -p1 -b .sectty
%patch2 -p1 -b .rexec
%patch3 -p1 -b .stdarg
%patch4 -p1 -b .jbj
%patch8 -p1 -b .jbj4
%patch9 -p1 -b .prompt
%patch10 -p1 -b .rsh
%patch11 -p1 -b .rsh.nokrb
%patch12 -p1 -b .jbj5
%patch13 -p1 -b .userandhost
%patch14 -p1 -b .strip
%patch15 -p1 -b .lfs
%patch16 -p1 -b .chdir
%patch17 -p1 -b .pam-nologin
%patch19 -p1 -b .rexec-netrc
%patch20 -p1 -b .pam-sess
%patch21 -p1 -b .errno
%patch22 -p1 -b .rexec-sig
%patch23 -p1 -b .nohost
%patch24 -p1 -b .ignchld
%patch25 -p1 -b .checkdir
%patch26 -p1 -b .pam-conv
%patch27 -p1 -b .largefile
%patch28 -p1 -b .pam-rhost
%patch29 -p1 -b .linefeed
%patch30 -p1 -b .ipv6
%patch31 -p1 -b .pam_env
%patch33 -p1 -b .dns
%patch34 -p1 -b .compat
%patch35 -p1 -b .audit
%patch36 -p1 -b .longname
%patch37 -p1 -b .arg_max
%patch38 -p1 -b .rh461903
%patch39 -p1 -b .rh473492
%patch40 -p1 -b .install~

# No, I don't know what this is doing in the tarball.
rm -f rexec/rexec

%build
%serverbuild_hardened
sh configure
sed	-e 's#^CC=.*$#CC=gcc#g' \
	-e 's#-O2#%{optflags} -fPIC -D_LARGEFILE_SOURCE -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64 -D_GNU_SOURCE#g' \
	-e 's#^LDFLAGS=#LDFLAGS=%{ldflags}#g' \
	-e 's#^BINDIR=.*$#BINDIR=%{_bindir}#g' \
	-e 's#^MANDIR=.*$#MANDIR=%{_mandir}#g' \
	-e 's#^SBINDIR=.*$#SBINDIR=%{_sbindir}#g' \
	-i MCONFIG

%make

%install
make INSTALLROOT=%{buildroot} MANDIR=%{_mandir} install

install -m0644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/pam.d/rexec
install -m0644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/pam.d/rlogin
install -m0644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/pam.d/rsh

make INSTALLROOT=%{buildroot} MANDIR=%{_mandir} install -C rexec

install -m0644 %{SOURCE5} -D %{buildroot}%{_sysconfdir}/xinetd.d/rsh
install -m0644 %{SOURCE6} -D %{buildroot}%{_sysconfdir}/xinetd.d/rlogin
install -m0644 %{SOURCE7} -D %{buildroot}%{_sysconfdir}/xinetd.d/rexec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14885 |21mr|netkit-telnet-0.17-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Client for the telnet remote login protocol
Name:		netkit-telnet
Version:	0.17
Release:	27
License:	BSD
Group:		Networking/Remote access
Url:		ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/
Source0:	ftp://ftp.uk.linux.org/pub/linux/Networking/netkit/netkit-telnet-%{version}.tar.gz
Source2:	telnet-client.tar.gz
Patch1:		telnet-client-cvs.patch
Patch5:		telnetd-0.17.diff
Patch6:		telnet-0.17-env.patch
Patch7:		telnet-0.17-issue.patch
Patch8:		telnet-0.17-sa-01-49.patch
Patch9:		telnet-0.17-env-5x.patch
Patch10:	telnet-0.17-pek.patch
Patch11:	telnet-0.17-8bit.patch
Patch12:	telnet-0.17-argv.patch
Patch13:	telnet-0.17-conf.patch
Patch14:	telnet-0.17-cleanup_race.patch
Patch15:	telnetd-0.17-pty_read.patch
Patch16:	telnet-0.17-CAN-2005-468_469.patch
Patch17:	telnet-0.17-linemode.patch
Patch18:	telnet-gethostbyname.patch
Patch19:	netkit-telnet-0.17-ipv6.diff
Patch20:	netkit-telnet-0.17-nodns.patch
Patch21:	telnet-0.17-errno_test_sys_bsd.patch
Patch22:	netkit-telnet-0.17-reallynodns.patch
#
Patch100:	telnet-0.17-sock.patch
Patch101:	telnet-0.17-cleanup_cleanup.patch
Patch102:	telnet-0.17-CAN-2005-0488.patch
Patch103:	netkit-telnet-0.17-format_not_a_string_literal_and_no_format_arguments.diff
Patch104:	netkit-telnet-0.17-CVE-2011-4862.diff
BuildRequires:	gpm-devel
BuildRequires:	pkgconfig(ncurses)
Provides:	telnet-client
Conflicts:	krb5-appl-clients
Conflicts: 	heimdal-telnet

Provides:       telnet

%description
Telnet is a popular protocol for logging into remote systems over
the Internet. The telnet package provides a command line telnet
client.

%package	server
Summary:	A extremely unsecure telnet server
Group:		System/Servers
Provides:	telnetd = %{version}-%{release}
Obsoletes:	telnetd < %{version}-%{release}
Provides:	telnet-server
Conflicts:	krb5-appl-servers
Conflicts:	heimdal-telnetd

%description	server
Telnet is a popular protocol for logging into remote systems over
the Internet. Install the telnetd package if you want to support
extremely unsecure remote logins to your machine.

NOTE: because telnetd is unsecure you have to manually activate
it, this package will not do that for you. Instead use OpenSSH if
you want a secure server.

%prep 

%setup -q
mv telnet telnet-NETKIT
%setup -T -D -q -a 2 -n netkit-telnet-%{version}
%patch1 -p0 -b .cvs
%patch5 -p0 -b .fix
%patch6 -p1 -b .env
%patch10 -p0 -b .pek
%patch7 -p1 -b .issue
%patch8 -p1 -b .sa-01-49
%patch11 -p1 -b .8bit
%patch12 -p1 -b .argv
%patch13 -p1 -b .confverb
%patch14 -p1 -b .cleanup_race 
%patch15 -p0 -b .pty_read
%patch16 -p1 -b .CAN-2005-468_469
#%patch17 -p1 -b .linemode
%patch18 -p1 -b .gethost
%patch19 -p1 -b .gethost2
%patch20 -p1 -b .nodns
%patch21 -p1 -b .errnosysbsd
%patch22 -p1 -b .reallynodns
#
%patch100 -p1 -b .socket
%patch101 -p1 -b .cleanup_cleanup
%patch102 -p1 -b .CAN-2005-0488
%patch103 -p0 -b .format_not_a_string_literal_and_no_format_arguments
%patch104 -p0 -b .CVE-2011-4862

# only build the telnet client
#perl -pi -e "s|^SUB.*|SUB = telnet|g" Makefile

%build
sh configure --with-c-compiler=%{__cc}
perl -pi -e '
    s,^CC=.*$,CC=%{__cc},;
    s,-O2,\$(RPM_OPT_FLAGS),;
    s,^BINDIR=.*$,BINDIR=%{_bindir},;
    s,^MANDIR=.*$,MANDIR=%{_mandir},;
    s,^SBINDIR=.*$,SBINDIR=%{_sbindir},;
    ' MCONFIG

# remove stripping
perl -pi -e 's|install[ ]+-s|install|g' \
	./telnet/GNUmakefile \
	./telnetd/Makefile \
	./telnetlogin/Makefile \
	./telnet-NETKIT/Makefile

make

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_mandir}/man8

install -m0755 telnet/telnet  %{buildroot}%{_bindir}/telnet
install -m0644 telnet/telnet.1 %{buildroot}%{_mandir}/man1/telnet.1
install -m0755 telnetd/telnetd  %{buildroot}%{_sbindir}/telnetd
install -m0644 telnetd/telnetd.8 %{buildroot}%{_mandir}/man8/telnetd.8

%files
%doc ChangeLog README
%{_bindir}/telnet
%{_mandir}/man1/telnet.1*

%files server
%{_sbindir}/telnetd
%{_mandir}/man8/telnetd.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14886 |21mr|netlabel_tools-0.30.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools to manage the Linux NetLabel subsystem
Name:		netlabel_tools
Version:	0.30.0
Release:	1
License:	GPLv2
Group:		System/Base
Url:		https://github.com/netlabel/netlabel_tools
Source0:	https://github.com/netlabel/netlabel_tools/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:		rhbz1683434.patch
Patch1:		russian.patch

BuildRequires:	kernel-headers
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	doxygen
BuildRequires:	systemd-units
Provides:		netlabel-tools = %{EVRD}

%description
NetLabel is a kernel subsystem which implements explicit packet labeling
protocols such as CIPSO for Linux.  Packet labeling is used in secure networks
to mark packets with the security attributes of the data they contain.  This
package provides the necessary user space tools to query and configure the
kernel subsystem.

%files
%doc LICENSE
%doc README
%doc CHANGELOG
%doc SUBMITTING_PATCHES
%attr(0644,root,root) %{_mandir}/man8/*netlabel*.8*
%attr(0644,root,root) %{_mandir}/ru/man8/*netlabel*.8*
%attr(0755,root,root) %{_sbindir}/netlabelctl
%attr(0755,root,root) %{_sbindir}/netlabel-config
%attr(0644,root,root) %{_unitdir}/netlabel.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/netlabel.rules

%preun
%systemd_preun netlabel.service

%post
%systemd_post netlabel.service
#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--with-systemdsystemunitdir=%{_unitdir}
%make V=1

%install
mkdir -p "%{buildroot}/%{_sysconfdir}"
mkdir -p "%{buildroot}/%{_sbindir}"
mkdir -p "%{buildroot}/%{_unitdir}"
mkdir -p "%{buildroot}/%{_mandir}"
%makeinstall_std V=1

# to build with --nodebuginfo
%ifarch %{e2k}
strip "%{buildroot}/%{_sbindir}/netlabelctl"
%endif

# NOTE: disable since the tests require messing with the running kernel
#%check
#make V=1 check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14887 |21mr|net_monitor-0.30-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network monitoring tool
Name:		net_monitor
Version:	0.30
Release:	3
License:	GPLv2+
Group:		Monitoring
Url:		http://gitweb.mageia.org/software/net_monitor
Source0:	http://gitweb.mageia.org/software/net_monitor/snapshot/%{name}-%{version}.tar.xz
BuildRequires:	python3-setuptools
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(python3)
Requires:	vnstat

%description
This is a network monitoring tool for ROSA Linux, intended to replace the
old net_monitor from drakx-net.  It supports graphical network monitoring and
some advanced features, such as network profiling, activity monitoring,
detailed logging and network traffic statistics with help of vnstat reporting.

%files -f %{name}.lang
%doc AUTHORS COPYING README NEWS TODO
%{_bindir}/%{name}
%{_sysconfdir}/sysconfig/network-scripts/if*.d/netmonitor*
%{py3_platsitedir}/%{name}-%{version}-py*
%{py3_platsitedir}/%{name}
%ghost %{_logdir}/%{name}.log

#----------------------------------------------------------------------------

%prep
%setup -q

%build
make all

%install
make install
mkdir -p %{buildroot}%{_logdir}
touch %{buildroot}%{_logdir}/%{name}.log

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14888 |21mr|netpbm-10.86.02-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 11
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Tools for manipulating graphics files in netpbm supported formats
Name:		netpbm
Version:	10.86.02
Release:	2
License:	GPL Artistic MIT
Group:		Graphics
Url:		http://netpbm.sourceforge.net/
# Source0 is prepared by
# svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/stable netpbm-%{version}
# svn checkout https://netpbm.svn.sourceforge.net/svnroot/netpbm/userguide netpbm-%{version}/userguide
# and removing the .svn directories ( find -name "\.svn" -type d -print0 | xargs -0 rm -rf )
# and removing the ppmtompeg code, due to patents ( rm -rf netpbm-%{version}/converter/ppm/ppmtompeg/ )
Source0:	netpbm-%{version}.tar.xz
Source1:	mf50-netpbm_filters
Source2:	test-images.tar.bz2
Patch0:		netpbm-10.75.99-stdio.patch
Patch1:		netpbm-time.patch
Patch2:		netpbm-10.75.99-linkage.patch
Patch3:		netpbm-security-scripts.patch
Patch4:		netpbm-security-code.patch
Patch7:		netpbm-bmptopnm.patch
Patch8:		netpbm-CAN-2005-2471.patch
Patch9:		netpbm-xwdfix.patch
Patch10:	netpbm-CVE-2017-2587.patch
Patch11:	netpbm-multilib.patch
Patch13:	netpbm-glibc.patch
Patch16:	netpbm-ppmfadeusage.patch
Patch17:	netpbm-fiasco-overflow.patch
Patch20:	netpbm-noppmtompeg.patch
Patch22:	netpbm-pamtojpeg2k.patch
BuildRequires:	flex
BuildRequires:	jbig-devel
BuildRequires:	jpeg-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(x11)
BuildConflicts:	svgalib-devel

%description
The netpbm package contains a library of functions which support programs for
handling various graphics file formats, including .pbm (portable bitmaps), .pgm
(portable graymaps), .pnm (portable anymaps), .ppm (portable pixmaps) and
others.

%files
%attr(0755,root,root) %{_bindir}/*
%{_datadir}/%{name}-%{version}
%dir %{_datadir}/printconf
%dir %{_datadir}/printconf/mf_rules
%dir %{_datadir}/printconf/tests
%{_datadir}/printconf/mf_rules/*
%{_datadir}/printconf/tests/*
%{_mandir}/man[15]/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for handling different graphics file formats
Group:		System/Libraries

%description -n %{libname}
The netpbm package contains a library of functions which support programs for
handling various graphics file formats, including .pbm (portable bitmaps), .pgm
(portable graymaps), .pnm (portable anymaps), .ppm (portable pixmaps) and
others.

%files -n %{libname}
%doc doc/*
%{_libdir}/libnetpbm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the netpbm libraries
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
The netpbm-devel package contains the header files and programmer's
documentation for developing programs which can handle the various graphics
file formats supported by the netpbm libraries.

Install netpbm-devel if you want to develop programs for handling the graphics
file formats supported by the netpbm libraries. You'll also need to have the
netpbm package installed.

%files -n %{devname}
%dir %{_includedir}/netpbm
%{_includedir}/netpbm/*.h
%attr(0755,root,root) %{_libdir}/lib*.so
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -a2

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%patch0 -p1
%patch1 -p1 -b .time
%patch2 -p1
%patch3 -p1 -b .security-scripts
%patch4 -p1 -b .security-code
%patch7 -p1 -b .bmptopnm
%patch8 -p1 -b .CAN-2005-2471
%patch9 -p1 -b .xwdfix
%patch10 -p1 -b .CVE-2017-2587
%patch11 -p1 -b .multilib
%patch13 -p1 -b .glibc
%patch16 -p1 -b .ppmfadeusage
%patch17 -p1 -b .fiasco-overflow
%patch20 -p1 -b .noppmtompeg
%patch22 -p1 -b .pamtojpeg2kfix

sed -i 's/STRIPFLAG = -s/STRIPFLAG =/g' config.mk.in

##mv shhopt/shhopt.h shhopt/pbmshhopt.h
##perl -pi -e 's|shhopt.h|pbmshhopt.h|g' `find -name "*.c" -o -name "*.h"` ./GNUmakefile

rm -rf converter/other/jpeg2000/libjasper/
sed -i -e 's/SUBDIRS += libjasper/SUBDIRS +=/' converter/other/jpeg2000/Makefile

%build
%serverbuild
export CFLAGS="$CFLAGS -fPIC -flax-vector-conversions -fno-strict-aliasing"

./configure <<EOF



















EOF

TOP=`pwd`
make \
    CC="%{__cc}" \
    LDFLAGS="-L$TOP/pbm -L$TOP/pgm -L$TOP/pnm -L$TOP/ppm %{ldflags}" \
    CFLAGS_SHLIB="-fPIC" \
    MATHLIB="-lm" \
    TIFFLIB_DIR=%{_libdir} TIFFLIB=-ltiff TIFFINC_DIR=%{_includedir} TIFFHDR_DIR=%{_includedir} \
    JPEGLIB_DIR=%{_libdir} JPEGLIB=-ljpeg JPEGHDR_DIR=%{_includedir} JPEGINC_DIR=%{_includedir} \
    PNGLIB_DIR=%{_libdir} PNGLIB="-L%{_libdir} -lpng" PNGINC_DIR=%{_includedir} PNGHDR_DIR=%{_includedir} \
    ZLIB_DIR=%{_libdir} ZLIB="-L%{_libdir} -lz" ZHDR_DIR=%{_includedir} \
    X11LIB_DIR=%{_libdir} X11LIB="-L%{_libdir} -lX11" X11INC_DIR=%{_includedir} X11HDR_DIR=%{_includedir} \
    JBIGLIB_DIR=%{_libdir} JBIGLIB="-L%{_libdir} -ljbig" JBIGHDR_DIR=%{_includedir} JBIGHDR_DIR=%{_includedir} \
    JASPERLIB_DIR=%{_libdir} JASPERLIB="-L%{_libdir} -ljasper" JASPERHDR_DIR=%{_includedir} JASPERDEPLIBS="-L%{_libdir} -ljpeg" \
    XML2LIBS="NONE" LINUXSVGALIB="NONE"

# prepare man files
cd userguide
for i in *.html ; do
    ../buildtools/makeman ${i}
done
for i in 1 3 5 ; do
    mkdir -p man/man${i}
    mv *.${i} man/man${i}
done

%install
install -d %{buildroot}
make package PKGDIR=%{buildroot}%{_prefix} XML2LIBS="NONE" LINUXSVGALIB="NONE"

# Ugly hack to have libs in correct dir on 64bit archs.
install -d %{buildroot}%{_libdir}
if [ "%{_libdir}" != "%{_prefix}/lib" ]; then
    mv %{buildroot}%{_prefix}/lib/lib* %{buildroot}%{_libdir}
fi

ln -sf libnetpbm.so.%{major} %{buildroot}%{_libdir}/libnetpbm.so

# fix manpages
install -d %{buildroot}%{_mandir}
cp -rp userguide/man/* %{buildroot}%{_mandir}/

# Get rid of the useless non-ascii character in pgmminkowski.1
sed -i 's/\xa0//' %{buildroot}%{_mandir}/man1/pgmminkowski.1

# Don't ship man pages for non-existent binaries and bogus ones
for i in hpcdtoppm pcdovtoppm pnmtojbig ppmsvgalib vidtoppm picttoppm jbigtopnm \
    directory error extendedopacity pam pbm pgm pnm ppm index libnetpbm_dir liberror \
    pambackground pamfixtrunc pamtogif pamtooctaveimg pamundice ppmtotga; do
    rm -f %{buildroot}%{_mandir}/man1/${i}.1
done
rm -f %{buildroot}%{_mandir}/man5/extendedopacity.5

install -d %{buildroot}%{_datadir}/%{name}-%{version}
mv %{buildroot}%{_prefix}/misc/*.map %{buildroot}%{_datadir}/%{name}-%{version}
rm -rf %{buildroot}%{_prefix}/README
rm -rf %{buildroot}%{_prefix}/VERSION
rm -rf %{buildroot}%{_prefix}/link
rm -rf %{buildroot}%{_prefix}/misc
rm -rf %{buildroot}%{_prefix}/man
rm -rf %{buildroot}%{_prefix}/pkginfo
rm -rf %{buildroot}%{_prefix}/config_template
rm -f %{buildroot}%{_mandir}/man1/ppmtompeg.1*

install -d %{buildroot}%{_datadir}/printconf/mf_rules
cp %{SOURCE1} %{buildroot}%{_datadir}/printconf/mf_rules/

install -d %{buildroot}%{_datadir}/printconf/tests
cp test-images/* %{buildroot}%{_datadir}/printconf/tests/

rm -rf %{buildroot}%{_prefix}/pkgconfig_template
rm -rf %{buildroot}%{_prefix}/sharedlink/
rm -rf %{buildroot}%{_prefix}/staticlink/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14889 |21mr|net-snmp-5.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#/*-snmp/*# not really needed anymore, but leaving for just incase legacy issues
#define	_requires_exceptions devel(libperl
%define	_disable_ld_no_undefined 1
%define	Werror_cflags %{nil}
%define _disable_rebuild_configure %nil

%define	major 40
%define	libname %mklibname netsnmp %{major}
%define	libagent %mklibname netsnmpagent %{major}
%define	libhelpers %mklibname netsnmphelpers %{major}
%define	libmibs %mklibname netsnmpmibs %{major}
%define	libtrapd %mklibname netsnmptrapd %{major}
%define	libsnmp %mklibname snmp %{major}
%define	devname %mklibname net-snmp -d

# (oe) never enable rpm support as it eats file descriptors like crazy 
# casuing the snmp daemon to die!.
%bcond_with rpm

Summary:	A collection of SNMP protocol tools and libraries
Name:		net-snmp
Version:	5.9
Release:	3
License:	BSD-like
Group:		System/Servers
Url:		http://www.net-snmp.org/
Source0:	http://prdownloads.sourceforge.net/net-snmp/net-snmp-%{version}.tar.gz
Source1:    net-snmp.redhat.conf
Source2:    net-snmp-config.h
Source3:    net-snmp-config
Source4:    net-snmp-trapd.redhat.conf
Source5:    net-snmpd.sysconfig
Source6:    net-snmptrapd.sysconfig
Source7:    net-snmp-tmpfs.conf
Source8:    snmpd.service
Source9:    snmptrapd.service
Source10:   IETF-MIB-LICENSE.txt

Patch1:     net-snmp-5.9-pie.patch
Patch2:     net-snmp-5.9-dir-fix.patch
Patch3:     net-snmp-5.9-multilib.patch
Patch4:     net-snmp-5.9-test-debug.patch
Patch5:     net-snmp-5.7.2-cert-path.patch
Patch6:     net-snmp-5.9-cflags.patch
Patch7:     net-snmp-5.8-Remove-U64-typedef.patch
Patch8:     net-snmp-5.9-libnetsnmptrapd-against-MYSQL_LIBS.patch
Patch9:     net-snmp-5.7.3-iterator-fix.patch
Patch10:    net-snmp-5.9-autofs-skip.patch
Patch11:    net-snmp-5.9-python-ld-flags.patch
Patch12:    net-snmp-5.9-usage-exit.patch
Patch13:    net-snmp-5.9-coverity.patch
Patch14:    net-snmp-5.9-proxy-getnext.patch
Patch15:    net-snmp-5.9-dskTable-dynamic.patch
Patch16:    net-snmp-5.8-expand-SNMPCONFPATH.patch
Patch17:    net-snmp-5.8-duplicate-ipAddress.patch
Patch18:    net-snmp-5.9-memory-reporting.patch
Patch19:    net-snmp-5.8-man-page.patch
Patch20:    net-snmp-5.8-ipAddress-faster-load.patch
Patch21:    net-snmp-5.8-rpm-memory-leak.patch
Patch22:    net-snmp-5.9-aes-config.patch
Patch23:    net-snmp-5.9-available-memory.patch
Patch24:    net-snmp-5.8-asn-parse-nlength.patch
Patch25:    net-snmp-5.8-clientaddr-error-message.patch
Patch26:    net-snmp-5.8-empty-passphrase.patch
Patch27:    net-snmp-5.9-ECC-cert.patch
Patch28:    net-snmp-5.9-intermediate-certs.patch
Patch29:    net-snmp-5.9-ssl-buffer-size.patch
Patch30:    net-snmp-5.9-twice-IP-parsing.patch
Patch31:    net-snmp-5.9-e2k-fix-int64-h.patch
# CVE-2022-44792 CVE-2022-44793
Patch32:    agent_set_null_varbind.patch

# Modern RPM API means at least EL6
Patch101:   net-snmp-5.8-modern-rpm-api.patch

#disable this patch due compatibility issues
Patch102:   net-snmp-5.9-python3.patch

BuildRequires:	chrpath
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	mysql-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
%if %{with rpm}
BuildRequires:	pkgconfig(rpm)
%endif
Requires(pre,postun):	rpm-helper
Requires:	net-snmp-utils
Requires:	tcp_wrappers
Conflicts:	%{libname} < 5.7.2-5

%rename net-snmp-trapd
%rename net-snmp-mibs

%description
SNMP (Simple Network Management Protocol) is a protocol used for network
management. The NET-SNMP project includes various SNMP tools: an extensible
agent, an SNMP library, tools for requesting or setting information from SNMP
agents, tools for generating and handling SNMP traps, a version of the netstat
command which uses SNMP, and a Tk/Perl mib browser. This package contains the
snmpd and snmptrapd daemons, documentation, etc.

You will probably also want to install the net-snmp-utils package, which
contains NET-SNMP utilities.

%files
%doc COPYING ChangeLog.trimmed EXAMPLE.conf FAQ NEWS TODO
%doc README README.agent-mibs README.agentx README.krb5 README.snmpv3
%doc local/passtest local/ipf-mod.pl
%doc README.thread AGENT.txt PORTING local/README.mib2c
%doc IETF-MIB-LICENSE.txt
%dir %{_sysconfdir}/snmp
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/snmp/snmpd.conf
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/snmp/snmptrapd.conf
%{_bindir}/snmpconf
%{_bindir}/net-snmp-create-v3-user
%{_sbindir}/*
%attr(0644,root,root) %{_mandir}/man[58]/snmp*d*
%attr(0644,root,root) %{_mandir}/man5/snmp_config.5.*
%attr(0644,root,root) %{_mandir}/man5/variables*
%attr(0644,root,root) %{_mandir}/man1/net-snmp-create-v3-user*
%attr(0644,root,root) %{_mandir}/man1/snmpconf.1.*
%dir %{_datadir}/snmp
%{_datadir}/snmp/snmpconf-data
%dir %{_localstatedir}/run/net-snmp
%{_tmpfilesdir}/net-snmp.conf
%{_unitdir}/snmp*
%config(noreplace) %{_sysconfdir}/sysconfig/snmpd
%config(noreplace) %{_sysconfdir}/sysconfig/snmptrapd
%{_bindir}/agentxtrap
%attr(0644,root,root) %{_mandir}/man1/agentxtrap.1*
%dir %{_datadir}/snmp/mibs
%{_datadir}/snmp/mibs/*

%post
%_post_service snmpd

%preun
%_preun_service snmpd

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for Network management (SNMP), from the NET-SNMP project
Group:		System/Libraries

%description -n %{libname}
This package contains the %{name} library for use with NET-SNMP
project's network management tools.

%files -n %{libname}
%doc COPYING
%{_libdir}/libnetsnmp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libagent}
Summary:	Library for Network management %{name}-agent
Group:		System/Libraries

%description -n %{libagent}
This package contains the %{name}-agent library for use with NET-SNMP
project's network management tools.

%files -n %{libagent}
%doc COPYING
%{_libdir}/libnetsnmpagent.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libhelpers}
Summary:	Library for Network management %{name}-helpers
Group:		System/Libraries

%description -n %{libhelpers}
This package contains the %{name}-helpers library for use with NET-SNMP
project's network management tools.

%files -n %{libhelpers}
%doc COPYING
%{_libdir}/libnetsnmphelpers.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libmibs}
Summary:	Library for Network management %{name}-mibs
Group:		System/Libraries

%description -n %{libmibs}
This package contains the %{name}-mibs library for use with NET-SNMP
project's network management tools.

%files -n %{libmibs}
%doc COPYING
%{_libdir}/libnetsnmpmibs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libtrapd}
Summary:	Library for Network management %{name}-trapd
Group:		System/Libraries

%description -n %{libtrapd}
This package contains the %{name}-trapd library for use with NET-SNMP
project's network management tools.

%files -n %{libtrapd}
%doc COPYING
%{_libdir}/libnetsnmptrapd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libsnmp}
Summary:	Library for Network management snmp
Group:		System/Libraries

%description -n %{libsnmp}
This package contains the snmp library for use with NET-SNMP
project's network management tools.

%files -n %{libsnmp}
%doc COPYING
%{_libdir}/libnetsnmp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The development environment for the NET-SNMP project
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libagent} = %{EVRD}
Requires:	%{libhelpers} = %{EVRD}
Requires:	%{libmibs} = %{EVRD}
Requires:	%{libtrapd} = %{EVRD}
Requires:	%{libsnmp} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains the development libraries and header
files for use with the NET-SNMP project's network management tools.

Install the net-snmp-devel package if you would like to develop applications
for use with the NET-SNMP project's network management tools.

%files -n %{devname}
%{_libdir}/lib*.so
%{_includedir}/*-snmp/*
%attr(0644,root,root) %{_mandir}/man3/*.3.*
%attr(0755,root,root) %{_bindir}/net-snmp-config*
%attr(0644,root,root) %{_mandir}/man1/net-snmp-config*.1.*
%{_libdir}/pkgconfig/netsnmp-agent.pc
%{_libdir}/pkgconfig/netsnmp.pc

#----------------------------------------------------------------------------

%package utils
Summary:	Network management utilities using SNMP, from the NET-SNMP project
Group:		Networking/Other
Requires:	openssl

%description utils
The net-snmp package contains various utilities for use with the NET-SNMP
network management project.

Install this package if you need utilities for managing your network using the
SNMP protocol.

%files utils
%{_bindir}/encode_keychange
%{_bindir}/snmp[^c-]*
%attr(0644,root,root) %{_mandir}/man1/snmp[^-]*.1*
%attr(0644,root,root) %{_mandir}/man1/encode_keychange*.1*
%attr(0644,root,root) %{_mandir}/man5/snmp.conf.5.*
%attr(0644,root,root) %{_mandir}/man5/variables.5.*

#----------------------------------------------------------------------------

%package tkmib
Summary:	MIB browser in TK
Group:		Networking/Other
Requires:	perl(SNMP)

%description tkmib
MIB browser in TK.

%files tkmib
%{_bindir}/tkmib
%attr(0644,root,root) %{_mandir}/man1/tkmib.1*

#----------------------------------------------------------------------------

%package -n perl-NetSNMP
Summary:	Perl utilities using SNMP, from the NET-SNMP project
Group:		Development/Perl
Requires:	%{name} = %{EVRD}
Requires:	net-snmp-utils

%description -n perl-NetSNMP
NET SNMP (Simple Network Management Protocol) Perl5 Support The Simple Network
Management Protocol (SNMP) provides a framework for the exchange of management
information between agents (servers) and clients.  The NET SNMP perl5 support
files provide the perl functions for integration of SNMP into applications,
written in perl.

%files -n perl-NetSNMP
%{_bindir}/mib2c-update
%{_bindir}/mib2c
%{_bindir}/snmp-bridge-mib
%{_bindir}/net-snmp-cert
%{_bindir}/checkbandwidth
%dir %{_datadir}/snmp
%{_datadir}/snmp/mib2c*
%{_datadir}/snmp/*.pl
%{_bindir}/traptoemail
%attr(0644,root,root) %{_mandir}/man[15]/mib2c*
%attr(0644,root,root) %{_mandir}/man3/*.3pm.*
%attr(0644,root,root) %{_mandir}/man1/traptoemail*.1*
%attr(0644,root,root) %{_mandir}/man1/snmp-bridge-mib.1*
%{perl_vendorarch}/*SNMP*
%{perl_vendorarch}/auto/*SNMP*
%{perl_vendorarch}/Bundle/MakefileSubs.pm

#----------------------------------------------------------------------------

%package -n python3-netsnmp
Summary:	Python utilities using SNMP, from the NET-SNMP project
Group: 		Development/Python
Requires:	%{name} = %{EVRD}
Requires:	net-snmp-utils

%description -n python3-netsnmp
The 'netsnmp' module provides a full featured, tri-lingual SNMP (SNMPv3, 
SNMPv2c, SNMPv1) client API. The 'netsnmp' module internals rely on the
Net-SNMP toolkit library.

%files -n python3-netsnmp
%doc README
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp %{SOURCE10} .

# disable failing test - see https://bugzilla.redhat.com/show_bug.cgi?id=680697
rm testing/fulltests/default/T200*
touch AUTHORS

%build
# Autoreconf to get autoconf 2.69 for ARM (#926223)
autoreconf -fiv

MIBS="host agentx smux \
     ucd-snmp/diskio tcp-mib udp-mib mibII/mta_sendmail \
     ip-mib/ipv4InterfaceTable ip-mib/ipv6InterfaceTable \
     ip-mib/ipAddressPrefixTable/ipAddressPrefixTable \
     ip-mib/ipDefaultRouterTable/ipDefaultRouterTable \
     ip-mib/ipv6ScopeZoneIndexTable ip-mib/ipIfStatsTable \
     sctp-mib rmon-mib etherlike-mib"

%ifnarch s390 s390x ppc64le
# there are no lm_sensors on s390
MIBS="$MIBS ucd-snmp/lmsensorsMib"
%endif

%configure \
    --disable-static --enable-shared \
    --enable-as-needed \
    --enable-embedded-perl \
    --enable-ipv6 \
    --enable-local-smux \
    --enable-mfd-rewrites \
    --enable-ucd-snmp-compatibility \
    --sysconfdir=%{_sysconfdir} \
    --with-cflags="$RPM_OPT_FLAGS -fPIE" \
    --with-ldflags="$RPM_LD_FLAGS" \
    --with-logfile="/var/log/snmpd.log" \
    --with-mib-modules="$MIBS" \
    --with-mysql \
    --with-openssl \
    --with-persistent-directory="/var/lib/net-snmp" \
    --with-perl-modules="INSTALLDIRS=vendor" \
    --with-pic \
    --with-security-modules=tsm  \
    --with-sys-location="Unknown" \
    --with-systemd \
    --with-temp-file-pattern=/var/run/net-snmp/snmp-tmp-XXXXXX \
    --with-transports="DTLSUDP TLSTCP" \
    --with-sys-contact="root@localhost" <<EOF
EOF

# store original libtool file, we will need it later
cp libtool libtool.orig
# remove rpath from libtool
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

# the package is not %%_smp_mflags safe
make

# remove rpath from compiled perl libs
find perl/blib -type f -name "*.so" -print -exec chrpath --delete {} \;

# compile python module
pushd python
%{__python3} setup.py --basedir="../" build
popd

%install
make install DESTDIR=%{buildroot}

# Determine which arch net-snmp-config.h is going to try to #include.
basearch=%{_arch}
%ifarch %{ix86}
basearch=i386
%endif

%ifarch %{multilib_arches}
# Do an net-snmp-config.h switcheroo to avoid file conflicts on systems where you
# can have both a 32- and 64-bit version of the library, as they each need
# their own correct-but-different versions of net-snmp-config.h to be usable.
mv %{buildroot}/%{_bindir}/net-snmp-config %{buildroot}/%{_bindir}/net-snmp-config-${basearch}
install -m 755 %SOURCE3 %{buildroot}/%{_bindir}/net-snmp-config
mv %{buildroot}/%{_includedir}/net-snmp/net-snmp-config.h %{buildroot}/%{_includedir}/net-snmp/net-snmp-config-${basearch}.h
install -m644 %SOURCE2 %{buildroot}/%{_includedir}/net-snmp/net-snmp-config.h
%endif

install -d %{buildroot}%{_sysconfdir}/snmp
install -m 644 %SOURCE1 %{buildroot}%{_sysconfdir}/snmp/snmpd.conf
install -m 644 %SOURCE4 %{buildroot}%{_sysconfdir}/snmp/snmptrapd.conf

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 %SOURCE5 %{buildroot}%{_sysconfdir}/sysconfig/snmpd
install -m 644 %SOURCE6 %{buildroot}%{_sysconfdir}/sysconfig/snmptrapd

# prepare /var/lib/net-snmp
install -d %{buildroot}%{_localstatedir}/lib/net-snmp
install -d %{buildroot}%{_localstatedir}/lib/net-snmp/mib_indexes
install -d %{buildroot}%{_localstatedir}/lib/net-snmp/cert_indexes
install -d %{buildroot}%{_localstatedir}/run/net-snmp

# remove things we don't want to distribute
rm -f %{buildroot}%{_bindir}/snmpinform
ln -s snmptrap %{buildroot}/usr/bin/snmpinform
rm -f %{buildroot}%{_bindir}/snmpcheck
rm -f %{buildroot}/%{_bindir}/fixproc
rm -f %{buildroot}/%{_mandir}/man1/fixproc*
rm -f %{buildroot}/%{_bindir}/ipf-mod.pl
rm -f %{buildroot}/%{_libdir}/*.la
rm -f %{buildroot}/%{_libdir}/libsnmp*

# remove special perl files
find %{buildroot} -name perllocal.pod \
    -o -name .packlist \
    -o -name "*.bs" \
    -o -name Makefile.subs.pl \
    | xargs -ri rm -f {}
# remove docs that do not apply to Linux
rm -f README.aix README.hpux11 README.osX README.Panasonic_AM3X.txt README.solaris README.win32

# copy missing mib2c.conf files
install -m 644 local/mib2c.*.conf %{buildroot}%{_datadir}/snmp

# install python module
pushd python
%{__python3} setup.py --basedir=.. install -O1 --skip-build --root %{buildroot}
popd

find %{buildroot} -name '*.so' | xargs chmod 0755
# trim down massive ChangeLog
dd bs=1024 count=250 if=ChangeLog of=ChangeLog.trimmed
# convert files to UTF-8
for file in README COPYING; do
    iconv -f 8859_1 -t UTF-8 <$file >$file.utf8
    mv $file.utf8 $file
done
# remove executable bit from documentation samples
chmod 644 local/passtest local/ipf-mod.pl
# dirty hack for #603243, until it's fixed properly upstream
install -m 755 -d %{buildroot}/usr/include/net-snmp/agent/util_funcs
install -m 644  agent/mibgroup/util_funcs/*.h %{buildroot}/usr/include/net-snmp/agent/util_funcs
# systemd stuff
install -m 755 -d %{buildroot}/%{_tmpfilesdir}
install -m 644 %SOURCE7 %{buildroot}/%{_tmpfilesdir}/net-snmp.conf
install -m 755 -d %{buildroot}/%{_unitdir}
install -m 644 %SOURCE8 %SOURCE9 %{buildroot}/%{_unitdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14890 |21mr|nettle-3.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Just a hack because rpmlint rejects build with unstripped libs
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%bcond_with bootstrap

%define major 8
%define hogweedmajor 6
%define libname %mklibname nettle %{major}
%define libhogweed %mklibname hogweed %{hogweedmajor}
%define devname %mklibname -d nettle

Summary:	Nettle cryptographic library
Name:		nettle
Epoch:		1
Version:	3.8.1
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.lysator.liu.se/~nisse/nettle/
Source0:	https://ftp.gnu.org/gnu/nettle/%{name}-%{version}.tar.gz
BuildRequires:	recode
BuildRequires:	texinfo
BuildRequires:	gmp-devel
%if %{with bootstrap}
BuildRequires:	pkgconfig(openssl)
%endif

%description
Nettle is a cryptographic library that is designed to fit easily in more or
less any context:
In crypto toolkits for object-oriented languages (C++, Python, Pike, ...),
in applications like LSH or GNUPG, or even in kernel space.

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Nettle shared library
Group:		System/Libraries

%description -n %{libname}
This is the shared library part of the Nettle library.

%files -n %{libname}
%{_libdir}/libnettle.so.%{major}*

#----------------------------------------------------------------------------

%if !%{with bootstrap}
%package -n %{libhogweed}
Summary:	Hogweed shared library
Group:		System/Libraries

%description -n %{libhogweed}
This is the shared library part of the Hogweed library.

%files -n %{libhogweed}
%{_libdir}/libhogweed.so.%{hogweedmajor}*
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for compiling against Nettle library
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
%if !%{with bootstrap}
Requires:	%{libhogweed} = %{EVRD}
%endif

%description -n %{devname}
This is the development package of nettle. Install it if you want to 
compile programs using this library.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_libdir}/libnettle.so
%if !%{with bootstrap}
%{_libdir}/libhogweed.so
%endif
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc
%{_includedir}/nettle/
%{_datadir}/info/%{name}.info.*

#----------------------------------------------------------------------------

%prep
%setup -q
# Disable -ggdb3 which makes debugedit unhappy
sed s/ggdb3/g/ -i configure

%build
%configure \
	--enable-static \
	--enable-shared

%make

%check
%make check

%install
%makeinstall_std
recode ISO-8859-1..UTF-8 ChangeLog

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14891 |21mr|net-tools-2.0-1.20160912.5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 20160912
%ifarch %{ix86}
%define _disable_lto 1
%endif

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	The basic tools for setting up networking
Name:		net-tools
Version:	2.0
Release:	1.%{date}.5
License:	GPLv2
Group:		System/Configuration/Networking
Url:		http://net-tools.sourceforge.net
# (tpg) https://github.com/ecki/net-tools
#git archive --format=tar --remote=git://git.code.sf.net/p/net-tools/code master | xz > net-tools-2.0-$(date +%Y%m%d).tar.xz
Source0:	net-tools-%{version}.%{date}.tar.xz
Source1:	net-tools-config.h
Source2:	net-tools-config.make
Source3:	ether-wake.c
Source4:	ether-wake.8
Source5:	mii-diag.c
Source6:	mii-diag.8
Source7:	iptunnel.8
Source8:	ipmaddr.8
Source9:	arp-ethers.service

# adds <delay> option that allows netstat to cycle printing through statistics every delay seconds.
Patch1: net-tools-cycle.patch
# various man page fixes merged into one patch
Patch2: net-tools-man.patch
# linux-4.8
Patch3: net-tools-linux48.patch
# use all interfaces instead of default (#1003875)
Patch20: ether-wake-interfaces.patch
# use all interfaces instead of default (#1003875)
Patch21: net-tools-ifconfig-EiB.patch
Patch22: net-tools-timer-man.patch
Patch23: net-tools-interface-name-len.patch
Patch24: net-tools-covscan.patch

BuildRequires:	gettext
BuildRequires:	pkgconfig(bluez)
BuildRequires:	kernel-headers
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
%endif

%description
The net-tools package contains the basic tools needed for setting up
networking:  ifconfig, netstat, route and others.

%prep
%setup -q -c %{name}-%{version}-%{date}

cp %{SOURCE1} ./config.h
cp %{SOURCE2} ./config.make
cp %{SOURCE3} .
cp %{SOURCE4} ./man/en_US
cp %{SOURCE5} .
cp %{SOURCE6} ./man/en_US
cp %{SOURCE7} ./man/en_US
cp %{SOURCE8} ./man/en_US

%autopatch -p1

touch ./config.h

%build
%serverbuild_hardened
%setup_compile_flags
%make_build CC=%{__cc}
%make_build CC=%{__cc} ether-wake
%{__cc} %{optflags} -pie %{ldflags} -fPIE -o mii-diag mii-diag.c

%install
mv man/de_DE man/de
mv man/fr_FR man/fr
mv man/pt_BR man/pt

make BASEDIR=%{buildroot} BINDIR="/bin" SBINDIR="/sbin" install

# ifconfig and route are installed into /bin by default
# mv them back to /sbin for now as I (jpopelka) don't think customers would be happy
mv %{buildroot}/bin/ifconfig %{buildroot}/sbin
mv %{buildroot}/bin/route %{buildroot}/sbin

install -m 755 ether-wake %{buildroot}/sbin
install -m 755 mii-diag %{buildroot}/sbin

rm %{buildroot}/sbin/rarp
rm %{buildroot}%{_mandir}/man8/rarp.8*
rm %{buildroot}%{_mandir}/de/man8/rarp.8*
rm %{buildroot}%{_mandir}/fr/man8/rarp.8*
rm %{buildroot}%{_mandir}/pt/man8/rarp.8*

# otherwise %%find_lang finds them even they're empty
rm -rf %{buildroot}%{_mandir}/de/man1
rm -rf %{buildroot}%{_mandir}/fr/man1
rm -rf %{buildroot}%{_mandir}/man1
rm -rf %{buildroot}%{_mandir}/pt/man1
rm -rf %{buildroot}%{_mandir}/pt/man5

# install systemd unit file
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE9} %{buildroot}%{_unitdir}

%find_lang %{name} --all-name --with-man

%post
%systemd_post arp-ethers.service

%preun
%systemd_preun arp-ethers.service

%files -f %{name}.lang
%doc COPYING
%{_unitdir}/arp-ethers.service
/bin/*
/sbin/*
%{_mandir}/man[58]/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14892 |21mr|netty3-3.10.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:           netty3
Version:        3.10.6
Release:        7
Summary:        An asynchronous event-driven network application framework and tools for Java
# CC0: src/main/java/org/jboss/netty/handler/codec/base64/Base64.java
License:        ASL 2.0 and BSD and CC0
URL:            http://netty.io/
Source0:        https://github.com/netty/netty/archive/netty-%{namedversion}.tar.gz

Patch0:         netty-3.10.6-port-to-jzlib-1.1.0.patch
Patch1:         disableNPN.patch
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(ant-contrib:ant-contrib)
BuildRequires:  mvn(com.google.protobuf:protobuf-java)
BuildRequires:  mvn(com.jcraft:jzlib)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(io.netty:netty-tcnative)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(log4j:log4j:12)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-launcher)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.osgi.compendium)
BuildRequires:  mvn(org.apache.felix:org.osgi.core)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-resources-plugin)
BuildRequires:  mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires:  mvn(org.jboss.logging:jboss-logging)
BuildRequires:  mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

Requires:       netty-tcnative
# src/main/java/org/jboss/netty/handler/codec/base64/Base64.java (unkown version)
Provides:       bundled(java-base64)

%description
Netty is a NIO client server framework which enables quick and easy
development of network applications such as protocol servers and
clients. It greatly simplifies and streamlines network programming
such as TCP and UDP socket server.

'Quick and easy' doesn't mean that a resulting application will suffer
from a maintainability or a performance issue. Netty has been designed
carefully with the experiences earned from the implementation of a lot
of protocols such as FTP, SMTP, HTTP, and various binary and
text-based legacy protocols. As a result, Netty has succeeded to find
a way to achieve ease of development, performance, stability, and
flexibility without a compromise.

%package javadoc
Summary:   API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n netty-netty-%{namedversion}

# just to be sure, but not used anyway
rm -rf jar doc license

%pom_remove_plugin :maven-jxr-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin org.eclipse.m2e:lifecycle-mapping
%pom_remove_dep javax.activation:activation
%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_dep :npn-api
%pom_xpath_remove "pom:extension[pom:artifactId[text()='os-maven-plugin']]"
%pom_xpath_remove "pom:execution[pom:id[text()='remove-examples']]"
%pom_xpath_remove "pom:plugin[pom:artifactId[text()='maven-javadoc-plugin']]/pom:configuration"
%pom_xpath_remove "pom:dependency[pom:artifactId[text()='netty-tcnative']]/pom:classifier"
#%% pom_xpath_remove "pom:dependency[pom:artifactId[text()='netty-tcnative']]/pom:scope"
# Set scope of optional compile dependencies to 'provided'
%pom_xpath_set "pom:dependency[pom:scope[text()='compile'] and pom:optional[text()='true']]/pom:scope" provided

# Force use servlet 3.1 apis
%pom_change_dep :servlet-api javax.servlet:javax.servlet-api:3.1.0

%pom_xpath_set "pom:dependency[pom:artifactId = 'log4j']/pom:version" 12

# Uneeded tasks
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-source-plugin
# Unavailable plugin
%pom_remove_plugin kr.motd.maven:exec-maven-plugin
# Fix javadoc doclint
%pom_remove_plugin :maven-javadoc-plugin

sed s/jboss-logging-spi/jboss-logging/ -i pom.xml

# Remove bundled jzlib and use system jzlib
rm -r src/main/java/org/jboss/netty/util/internal/jzlib
%pom_add_dep com.jcraft:jzlib
sed -i s/org.jboss.netty.util.internal.jzlib/com.jcraft.jzlib/ \
    $(find src/main/java/org/jboss/netty/handler/codec -name \*.java | sort -u)
%patch0 -p1
%patch1 -p1

# adapting to excluded dep
rm -v src/main/java/org/jboss/netty/handler/ssl/JettyNpnSslEngine.java

%mvn_compat_version : %{version} 3.9.3 %{namedversion} 3.9.3.Final 3
%mvn_alias : org.jboss.netty:
%mvn_file  : %{name}

%build

# skipping tests because we don't have easymockclassextension
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt
 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14893 |21mr|netty-4.1.13-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CVE-2023-34462 does not affect netty v4.1.13
# (SslClientHelloHandler introduced in v4.1.46)
# This vulnerability has been fixed in version 4.1.94.Final

# Disable generation of debuginfo package
%global debug_package %{nil}
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

%bcond_with     jp_minimal

Name:           netty
Version:        4.1.13
Release:        13
Summary:        An asynchronous event-driven network application framework and tools for Java
License:        ASL 2.0
Group:          Development/Java
URL:            https://netty.io/
Source0:        https://github.com/netty/netty/archive/netty-%{namedversion}.tar.gz
# Upsteam uses a simple template generator script written in groovy and run with gmaven
# We don't have the plugin and want to avoid groovy dependency
# This script is written in bash+sed and performs the same task
Source1:        codegen.bash
Patch0:         0001-Remove-OpenSSL-parts-depending-on-tcnative.patch
Patch1:         0002-Remove-NPN.patch
Patch2:         0003-Remove-conscrypt-ALPN.patch
Patch3:         0004-Remove-jetty-ALPN.patch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(ant-contrib:ant-contrib)
BuildRequires:  mvn(com.jcraft:jzlib)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(kr.motd.maven:os-maven-plugin)
BuildRequires:  mvn(log4j:log4j:1.2.17)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.fusesource.hawtjni:maven-hawtjni-plugin)
BuildRequires:  mvn(org.javassist:javassist)
BuildRequires:  mvn(org.jctools:jctools-core)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
%if %{without jp_minimal}
BuildRequires:  mvn(com.fasterxml:aalto-xml)
BuildRequires:  mvn(com.github.jponge:lzma-java)
BuildRequires:  mvn(com.ning:compress-lzf)
BuildRequires:  mvn(net.jpountz.lz4:lz4)
BuildRequires:  mvn(org.apache.logging.log4j:log4j-api)
BuildRequires:  mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires:  mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires:  mvn(org.eclipse.jetty.alpn:alpn-api)
%endif

%ifarch %{arm}
# Speed up builds on 32bit arm
BuildRequires: java-1.8.0-openjdk-aarch32-devel
%endif

%description
Netty is a NIO client server framework which enables quick and easy
development of network applications such as protocol servers and
clients. It greatly simplifies and streamlines network programming
such as TCP and UDP socket server.

'Quick and easy' doesn't mean that a resulting application will suffer
from a maintainability or a performance issue. Netty has been designed
carefully with the experiences earned from the implementation of a lot
of protocols such as FTP, SMTP, HTTP, and various binary and
text-based legacy protocols. As a result, Netty has succeeded to find
a way to achieve ease of development, performance, stability, and
flexibility without a compromise.

%package javadoc
Summary:   API documentation for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n netty-netty-%{namedversion}

%patch0 -p1
%patch1 -p1
%patch2 -p1
%if %{with jp_minimal}
%patch3 -p1
%endif

# Missing Mavenized rxtx
%pom_disable_module "transport-rxtx"
%pom_remove_dep ":netty-transport-rxtx" all
# Missing com.barchart.udt:barchart-udt-bundle:jar:2.3.0
%pom_disable_module "transport-udt"
%pom_remove_dep ":netty-transport-udt" all
%pom_remove_dep ":netty-build" all
# Not needed
%pom_disable_module "example"
%pom_remove_dep ":netty-example" all
%pom_disable_module "testsuite"
%pom_disable_module "testsuite-autobahn"
%pom_disable_module "testsuite-osgi"
%pom_disable_module "tarball"
%pom_disable_module "microbench"

%pom_xpath_inject 'pom:plugin[pom:artifactId="maven-remote-resources-plugin"]' '
<dependencies>
<dependency>
<groupId>io.netty</groupId>
<artifactId>netty-dev-tools</artifactId>
<version>${project.version}</version>
</dependency>
</dependencies>'

%pom_remove_plugin :maven-antrun-plugin
%pom_remove_plugin :maven-dependency-plugin
# style checker
%pom_remove_plugin :xml-maven-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-clean-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-deploy-plugin
%pom_remove_plugin -r :maven-jxr-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :forbiddenapis

cp %{SOURCE1} common/codegen.bash
chmod a+x common/codegen.bash
%pom_add_plugin org.codehaus.mojo:exec-maven-plugin common '
<executions>
    <execution>
        <id>generate-collections</id>
        <phase>generate-sources</phase>
        <goals>
            <goal>exec</goal>
        </goals>
        <configuration>
            <executable>common/codegen.bash</executable>
        </configuration>
    </execution>
</executions>
'
%pom_remove_plugin :groovy-maven-plugin common

# The protobuf-javanano API was discontinued upstream and obsoleted in Fedora
# so disable support for protobuf in the codecs module
%pom_remove_dep -r "com.google.protobuf:protobuf-java"
%pom_remove_dep -r "com.google.protobuf.nano:protobuf-javanano"
rm codec/src/main/java/io/netty/handler/codec/protobuf/*
sed -i '/import.*protobuf/d' codec/src/main/java/io/netty/handler/codec/DatagramPacket*.java

%if %{with jp_minimal}
%pom_remove_dep -r "org.jboss.marshalling:jboss-marshalling"
rm codec/src/main/java/io/netty/handler/codec/marshalling/*
%pom_remove_dep -r org.bouncycastle
rm handler/src/main/java/io/netty/handler/ssl/util/BouncyCastleSelfSignedCertGenerator.java
sed -i '/BouncyCastleSelfSignedCertGenerator/s/.*/throw new UnsupportedOperationException();/' \
    handler/src/main/java/io/netty/handler/ssl/util/SelfSignedCertificate.java
%pom_remove_dep -r com.fasterxml:aalto-xml
%pom_disable_module codec-xml
%pom_remove_dep :netty-codec-xml all
%pom_remove_dep -r com.github.jponge:lzma-java
rm codec/src/*/java/io/netty/handler/codec/compression/Lzma*.java
%pom_remove_dep -r com.ning:compress-lzf
rm codec/src/*/java/io/netty/handler/codec/compression/Lzf*.java
%pom_remove_dep -r net.jpountz.lz4:lz4
rm codec/src/*/java/io/netty/handler/codec/compression/Lz4*.java
%pom_remove_dep -r org.apache.logging.log4j:
rm common/*/main/java/io/netty/util/internal/logging/Log4J2*.java

# Disable rarely needed native artifacts
%pom_disable_module transport-native-epoll
%pom_disable_module transport-native-kqueue
%pom_remove_dep :netty-transport-native-epoll all
%pom_remove_dep :netty-transport-native-kqueue all
%endif 
# ^jp_minimal

sed -i 's|taskdef|taskdef classpathref="maven.plugin.classpath"|' all/pom.xml

%pom_xpath_inject "pom:plugins/pom:plugin[pom:artifactId = 'maven-antrun-plugin']" '<dependencies><dependency><groupId>ant-contrib</groupId><artifactId>ant-contrib</artifactId><version>1.0b3</version></dependency></dependencies>' all/pom.xml
%pom_xpath_inject "pom:execution[pom:id = 'build-native-lib']/pom:configuration" '<verbose>true</verbose>' transport-native-epoll/pom.xml

# Upstream has jctools bundled.
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:executions/pom:execution[pom:id = 'generate-manifest']/pom:configuration/pom:instructions/pom:Import-Package" common/pom.xml

# Tell xmvn to install attached artifact, which it does not
# do by default. In this case install all attached artifacts with
# the linux classifier.
%mvn_package ":::linux*:"

%mvn_package ':*-tests' __noinstall

%build
# Ensure we get the jit on arm
%ifarch %{arm}
export JAVA_HOME=$(ls -d %{_jvmdir}/java-1.8.0-openjdk-aarch32*)
%else
export JAVA_HOME=%{_jvmdir}/java
%endif

# Ensure we use distro compile flags
export CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$RPM_LD_FLAGS"

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14894 |21mr|netty-tcnative-1.1.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Fork26
%global namedversion %{version}%{?namedreltag}

# Patch for OpenSSL 1.1 is not finished yet
# Won't be openssl and libressl mixed in one runtime?
# Other distros seem to have dropped netty-tcnative 1.x (this package).
%if %{mdvver} >= 201910
%global optflags %{optflags} -I%{libressl_prefix}/include -L%{libressl_prefix}/lib
%endif

Name:           netty-tcnative
Version:        1.1.33
Release:        1
Summary:        Fork of Tomcat Native with improved OpenSSL and mavenized build
License:        ASL 2.0
URL:            https://github.com/netty/netty/wiki/Forked-Tomcat-Native
#Source0:        https://github.com/netty/netty-tcnative/archive/%{name}-%{namedversion}.tar.gz
Source0:        https://salsa.debian.org/java-team/netty-tcnative-1.1/-/archive/debian/%{namedversion}-1/netty-tcnative-1.1-debian-%{namedversion}-1.tar.gz
Source1:        CheckLibrary.java
# This library is put in a private location, and the code is patched
# to find it there to dlopen().
# TODO: maybe versionize and not hide it?!
Patch0:         fixLibNames.patch
# hack: remove problematic declarations of deps
Patch1:			1.diff
# do not build odd targets
Patch2:			2.diff
# Not finished
#Patch3:	openssl1.1.patch
Group:          Development/Java
BuildRequires:  maven-local
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  glibc-devel
BuildRequires:  apr-devel
%if %{mdvver} >= 201910
BuildRequires:  libressl-devel
%endif
# Install openssl headers always to trick srupid src/main/native-package/m4/tcnative.m4
# even when building with libressl
BuildRequires:  openssl-devel
BuildRequires:  maven-antrun-plugin
BuildRequires:  maven-hawtjni-plugin
BuildRequires:  maven-plugin-build-helper
BuildRequires:  maven-plugin-bundle
BuildRequires:  maven-remote-resources-plugin
BuildRequires:  maven-enforcer-plugin
BuildRequires:  maven-source-plugin
#parent pom is needed
BuildRequires:  netty
BuildRequires:  sonatype-oss-parent
BuildRequires: mvn(kr.motd.maven:os-maven-plugin)

%description
netty-tcnative is a fork of Tomcat Native. It includes a set of changes
contributed by Twitter, Inc, such as:
 *  Simplified distribution and linkage of native library
 *  Complete mavenization of the project
 *  Improved OpenSSL support
To minimize the maintenance burden, we create a dedicated branch for each stable
upstream release and apply our own changes on top of it, while keeping the
number of maintained branches to minimum


%package javadoc
Summary:   API documentation for %{name}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
%{summary}.

%prep
%setup -q -n netty-tcnative-1.1-debian-%{namedversion}-1
%autopatch -p1

sed -i openssl-dynamic/src/main/java/org/apache/tomcat/jni/Library.java \
	-e 's,@PATH@,%{_libdir}/%{name},g'

sed -i openssl-dynamic/src/main/native-package/configure.ac -e 's,@VERSION@,%{namedversion},g'

%build
%set_build_flags
%mvn_build -f

%install
%mvn_install

mkdir -p %{buildroot}%{_libdir}/%{name}/
install -m0755 openssl-dynamic/target/native-build/target/lib/lib%{name}-%{namedversion}.so %{buildroot}%{_libdir}/%{name}/lib%{name}.so
( cd %{buildroot}%{_libdir}/%{name}/ ; ln -s lib%{name}.so lib%{name}-%{namedversion}.so )

%check
javac -d . -cp %{buildroot}%{_jnidir}/%{name}/%{name}.jar %{SOURCE1}
#don't know how to test load(path) without more and more patching, however the test class can be used for manual testing
#java -cp .:$RPM_BUILD_ROOT%%{_jnidir}/%%{name}/%%{name}.jar CheckLibrary


%files -f .mfiles
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/lib%{name}.so
%{_libdir}/%{name}/lib%{name}-%{namedversion}.so

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14895 |21mr|netty-xnio-transport-0.1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             netty-xnio-transport
Version:          0.1.9
Release:          1
Group:            Development/Java
Summary:          Netty Transport powered by XNIO
License:          ASL 2.0
URL:              https://github.com/xnio/netty-xnio-transport
Source0:          https://github.com/xnio/netty-xnio-transport/archive/netty-xnio-transport-%{namedversion}.tar.gz
BuildRequires:    maven-local
BuildRequires:    mvn(io.netty:netty-buffer)
BuildRequires:    mvn(io.netty:netty-transport)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.xnio:xnio-api)
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a Netty Transport powered by XNIO. It can be used to either wrap an
existing StreamConnection and AcceptingChannel or to bootstrap a Netty powered
server directly.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}

# remove dependencies,no package
%pom_remove_dep -r io.netty:netty-testsuite

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14896 |21mr|networkmanager-1.32.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname NetworkManager
# https://github.com/NetworkManager/ppp/releases
%define ppp_version 2.4.9
%define ver %(echo %{version} | cut -d. -f1,2)
%define api		1.0
%define major_glib	4
%define major_glib_vpn	1
%define major_util	2
%define major_libnm	0
%define libnm_glib	%mklibname nm-glib %{major_glib}
%define devnm_glib	%mklibname nm-glib -d
%define libnm_glib_vpn	%mklibname nm-glib-vpn %{major_glib_vpn}
%define libnm_util	%mklibname nm-util %{major_util}
%define devnm_util	%mklibname nm-util -d
%define libnm		%mklibname nm %{major_libnm}
%define girnm		%mklibname nm-gir %{api}
%define devnm		%mklibname nm -d

%define girclient	%mklibname nmclient-gir %{api}
%define girname		%mklibname %{name}-gir %{api}

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Network connection manager and user applications
Name:		networkmanager
Version:	1.32.8
Release:	3
License:	GPLv2+
Group:		System/Base
Url:		https://www.gnome.org/projects/NetworkManager/
Source0:	https://download.gnome.org/sources/NetworkManager/%{ver}/%{rname}-%{version}.tar.xz
Source4:	networkmanager-tmpfiles.conf
# Rosa specific patches
Patch0:		ROSA-networkmanager-systemd-service.patch
Patch1:		ROSA-networkmanager-dhcpcd-verbose-output.patch
Patch3:		ROSA-networkmanager-ppp-default-mtu.patch
Patch4:		0001-e2k-fix.patch
Patch5:		0001-e2k-fix2.patch

# ./autogen.sh contains bashisms (v1.12.4)
BuildRequires:	bash
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	iptables
BuildRequires:	python3-gi
BuildRequires:	systemd
BuildRequires:	vala-tools
BuildRequires:	wpa_supplicant
BuildRequires:	libiw-devel
BuildRequires:	readline-devel
# gtk-doc is required for -i flag of autoreconf
BuildRequires:	gtk-doc
# dhcp-* and iptables are required to find their paths for configure flags
BuildRequires:	dhcp-client
BuildRequires:	dhcp-server
BuildRequires:	iptables
BuildRequires:	ppp-devel = %{ppp_version}
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libndp)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libteamdctl)
BuildRequires:	pkgconfig(libteam)
BuildRequires:	mobile-broadband-provider-info-devel
%if %{mdvver} >= 201610
BuildRequires:	pkgconfig(libsystemd)
%else
BuildRequires:	pkgconfig(libsystemd-daemon)
BuildRequires:	pkgconfig(libsystemd-journal)
BuildRequires:	pkgconfig(libsystemd-login)
%endif
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(libnewt)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(vapigen)
%if %{with selinux}
BuildRequires:	pkgconfig(libsepol)
BuildRequires:	pkgconfig(libselinux)
%endif

# Just to make sure we have typelibs installed
Requires:	%{girname} = %{EVRD}
Requires:	dnsmasq-base
Requires:	iproute2
Requires:	iptables
Requires:	mobile-broadband-provider-info
Requires:	modemmanager
Requires:	ppp = %{ppp_version}
Requires:	systemd
Requires:	wireless-tools
Requires:	wpa_supplicant
Obsoletes:	%{libnm_glib} < 1.27
Obsoletes:	%{libnm_glib_vpn} < 1.27
Requires(post,preun,postun):	systemd
Provides:	NetworkManager = %{EVRD}
Provides:   %{name}-wwan = %{EVRD}
Provides:   %{name}-ppp = %{EVRD}
Provides:   %{name}-wifi = %{EVRD}
Provides:   %{name}-adsl = %{EVRD}
Provides:   %{name}-bluetooth = %{EVRD}
Provides:   %{name}-openvswitch = %{EVRD}
Provides:   %{name}-team = %{EVRD}
Recommends:	%{name}-config-connectivity
Suggests:	%{name}-config-connectivity-rosa
# Configure options make NM prefer dhclient if it is available,
# but it can fallback to 'internal' DHCP client.
# Do not force users to keep dhcp-client installed.
Recommends:	dhcp-client

%description
NetworkManager attempts to keep an active network connection available at all
times. It is intended only for the desktop use-case, and is not intended for
usage on servers. The point of NetworkManager is to make networking
configuration and setup as painless and automatic as possible. If using DHCP,
NetworkManager is _intended_ to replace default routes, obtain IP addresses
from a DHCP server, and change nameservers whenever it sees fit.

%files -f %{rname}.lang
%doc AUTHORS ChangeLog NEWS README TODO
%doc %{_datadir}/doc/NetworkManager/examples/server.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.NetworkManager.conf
%{_datadir}/dbus-1/system.d/nm-dispatcher.conf
%{_datadir}/dbus-1/system.d/nm-ifcfg-rh.conf
%{_prefix}/lib/firewalld/zones/nm-shared.xml
%dir %{_sysconfdir}/%{rname}
%config(noreplace) %{_sysconfdir}/%{rname}/NetworkManager.conf
%config(noreplace) %{_sysconfdir}/netprofile/modules/01_networkmanager
%dir %{_sysconfdir}/%{rname}/conf.d
%dir %{_prefix}/lib/%{rname}/conf.d
%{_sbindir}/%{rname}
%dir %{_sysconfdir}/%{rname}/dispatcher.d
%dir %{_sysconfdir}/%{rname}/system-connections
%dir %{_sysconfdir}/NetworkManager/VPN
%{_bindir}/nmcli
%{_bindir}/nm-online
%{_bindir}/nmtui
%{_bindir}/nmtui-connect
%{_bindir}/nmtui-edit
%{_bindir}/nmtui-hostname
%{_libexecdir}/nm-daemon-helper
%{_libexecdir}/nm-dhcp-helper
%{_libexecdir}/nm-dispatcher
%{_libexecdir}/nm-iface-helper
%{_libexecdir}/nm-ifdown
%{_libexecdir}/nm-ifup
%{_libexecdir}/nm-initrd-generator
%{_mandir}/man1/*.1*
%{_mandir}/man5/*.5*
%{_mandir}/man7/*.7*
%{_mandir}/man8/*.8*
%dir %{_libdir}/NetworkManager
%dir %{_libdir}/NetworkManager/%{version}-%{release}
%{_libdir}/NetworkManager/%{version}-%{release}/*.so
%{_libdir}/pppd/*.*.*/nm-pppd-plugin.so
%{_tmpfilesdir}/%{name}.conf
%dir %{_localstatedir}/lib/%{rname}
%ghost %{_localstatedir}/lib/%{rname}/*
%{_datadir}/dbus-1/system-services/org.freedesktop.nm_dispatcher.service
%{_datadir}/polkit-1/actions/org.freedesktop.NetworkManager.policy
%{_udevrulesdir}/*.rules
%{_unitdir}/NetworkManager-wait-online.service
%{_unitdir}/NetworkManager.service
%{_unitdir}/networkmanager.service
%{_unitdir}/NetworkManager-dispatcher.service
%{_unitdir}/dbus-org.freedesktop.nm-dispatcher.service
%dir %{_unitdir}/NetworkManager.service.d
%{_unitdir}/NetworkManager.service.d/NetworkManager-ovs.conf
%{_datadir}/bash-completion/completions/nmcli

%if %{mdvver} < 202115
# keep plugins=ifcfg-rh enabled on upgrades in rosa2021.1
# if %%config(noreplace) NetworkManager.conf has never been modified and will be updated with the package
# where ifcfg-rh was disabled out of the box
%pre
case "$(sha1sum /etc/NetworkManager/NetworkManager.conf)" in
	# hash of old config with "plugins=ifcfg-rh,keyfile"
	78529e2e512a506b2e66b9e9a9d08136b6ff4427* ) : ;;
	* ) exit 0 ;;
esac
cp /etc/NetworkManager/NetworkManager.conf /etc/NetworkManager/NetworkManager.conf.upd202110
%endif

%post
%if %{mdvver} < 202115
if test -f /etc/NetworkManager/NetworkManager.conf.upd202110; then
	cat /etc/NetworkManager/NetworkManager.conf.upd202110 > /etc/NetworkManager/NetworkManager.conf
	unlink /etc/NetworkManager/NetworkManager.conf.upd202110
fi
%endif
%systemd_post NetworkManager.service
%systemd_post NetworkManager-dispatcher.service
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf

%preun
%systemd_preun NetworkManager.service
%systemd_preun NetworkManager-dispatcher.service
if [ "$1" -eq 0 ] && [ -f /etc/sysconfig/network ]; then
	# Package removal, not upgrade
	sed -e 's/USE_NM_ONLY=yes/USE_NM_ONLY=no/' -i /etc/sysconfig/network
fi

%postun
%systemd_postun NetworkManager.service

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Provides:	%{girnm} = %{EVRD}
Obsoletes:  %{girnm} < 1.16
Conflicts:  %{girnm} < 1.16
# compat provides
Provides:	typelib(NetworkManager) = %{EVRD}
Conflicts:	%{_lib}nm-util2 < 1.4.4-5
Obsoletes:	%{girclient} < 1.27

%description -n %{girname}
GObject Introspection interface description for Network Manager.

%files -n %{girname}
%{_libdir}/girepository-1.0/NM-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{libnm}
Summary:	Shared library for nm_util
Group:		System/Libraries
Obsoletes:	%{libnm_util} < 1.27

%description -n %{libnm}
Shared library for nm.

%files -n %{libnm}
%{_libdir}/libnm.so.%{major_libnm}*

#----------------------------------------------------------------------------

%package -n %{devnm}
Summary:	Development files for NM
Group:		Development/C
Requires:	%{libnm} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	nm-devel = %{EVRD}
Obsoletes:	%{devnm_glib} < 1.27
Obsoletes:	%{devnm_glib} < 1.27

%description -n %{devnm}
Development files for NM.

%files -n %{devnm}
%dir %{_includedir}/libnm
%doc %{_datadir}/gtk-doc/html/libnm
%doc %{_datadir}/gtk-doc/html/NetworkManager
%{_includedir}/libnm/*.h
%{_datadir}/dbus-1/interfaces/*.xml
%{_datadir}/gir-1.0/NM-%{api}.gir
%{_datadir}/vala/vapi/libnm.deps
%{_datadir}/vala/vapi/libnm.vapi
%{_libdir}/pkgconfig/libnm.pc
%{_libdir}/libnm.so

#----------------------------------------------------------------------------

%package config-connectivity-rosa
Summary:	Check if authorization via a captive portal for network is needed
Group:		System/Base
Provides:	%{name}-config-connectivity = %{EVRD}
# compat with Fedora
Provides:	NetworkManager-config-connectivity = %{EVRD}

%description config-connectivity-rosa
Check if authorization via a captive portal for network is needed.
Check is done by accessing mirror.rosa.ru.

%files config-connectivity-rosa
%{_prefix}/lib/%{rname}/conf.d/20-config-connectivity-rosa.conf

#----------------------------------------------------------------------------

%prep
%setup -q -n %{rname}-%{version}
%patch0 -p1
%patch1 -p1
%patch3 -p1

%ifarch %{e2k}
%patch4 -p1
%patch5 -p1
%endif

%build
%define _disable_ld_no_undefined 1
# dhclient works better than "internal" DHCP client
%meson -Dsystemdsystemunitdir="%{_unitdir}" \
    -Dsystem_ca_path="%{_openssldir}/certs" \
    -Dudev_dir="/lib/udev" \
    -Diptables="/sbin/iptables" \
    -Ddist_version="%{version}-%{release}" \
    -Dsession_tracking=systemd \
    -Dsuspend_resume=systemd \
    -Dmodify_system=true \
    -Dpolkit=true \
%if %{with selinux}
    -Dselinux=true \
%endif
    -Dconfig_logging_backend_default=journal \
    -Dlibaudit=no \
    -Diwd=true \
    -Dpppd_plugin_dir="%{_libdir}/pppd/%{ppp_version}" \
    -Dteamdctl=true \
    -Dbluez5_dun=true \
    -Debpf=true \
    -Dconfig_plugins_default="keyfile" \
    -Difcfg_rh=true \
    -Dresolvconf="" \
    -Dconfig_dns_rc_manager_default=file \
    -Ddhclient="/sbin/dhclient" \
    -Ddhcpcd="/sbin/dhcpcd" \
    -Dconfig_dhcp_default="dhclient" \
    -Ddbus_conf_dir="%{_datadir}/dbus-1/system.d" \
    -Dintrospection=true \
    -Dvapi=true \
    -Ddocs=true \
    -Dtests=no \
    -Dmore_logging=false \
    -Dld_gc=false \
    -Dcrypto=gnutls \
    -Dqt=false

%meson_build

%install
%meson_install

cat > %{buildroot}%{_sysconfdir}/NetworkManager/NetworkManager.conf << EOF
[main]
plugins=keyfile

[device]
# https://bugs.launchpad.net/bugs/1681513
# https://bugs.launchpad.net/bugs/1762152
wifi.scan-rand-mac-address=no
EOF

# Create netprofile module
install -d %{buildroot}%{_sysconfdir}/netprofile/modules/
cat > %{buildroot}%{_sysconfdir}/netprofile/modules/01_networkmanager << EOF
# netprofile module
#
# this module contains settings for saving/restore the NetworkManager configuration
# in different network profiles

NAME="networkmanager"
DESCRIPTION="Networkmanager connection settings"

# list of files to be saved by netprofile
FILES="/etc/NetworkManager/"

# list of services to be restarted by netprofile
SERVICES="networkmanager"
EOF
chmod  755 %{buildroot}%{_sysconfdir}/netprofile/modules/01_networkmanager

install -d %{buildroot}%{_sysconfdir}/NetworkManager/conf.d
install -d %{buildroot}%{_prefix}/lib/%{rname}/conf.d

# create a VPN directory
install -d %{buildroot}%{_sysconfdir}/%{rname}/VPN

# create keyfile plugin system-settings directory
install -d %{buildroot}%{_sysconfdir}/%{rname}/system-connections

# create a dnsmasq.d directory
install -d %{buildroot}%{_sysconfdir}/NetworkManager/dnsmasq.d
install -d %{buildroot}%{_datadir}/gnome-vpn-properties
install -d %{buildroot}%{_localstatedir}/lib/NetworkManager

# link service file to match alias
ln -sf %{_unitdir}/%{rname}.service %{buildroot}%{_unitdir}/%{name}.service
#rhbz#974811
ln -sr %{buildroot}%{_unitdir}/NetworkManager-dispatcher.service %{buildroot}%{_unitdir}/dbus-org.freedesktop.nm-dispatcher.service

# (bor) clean up on uninstall
install -d %{buildroot}%{_localstatedir}/lib/%{rname}
pushd %{buildroot}%{_localstatedir}/lib/%{rname} && {
	touch %{rname}.state
	touch timestamps
popd
}

cat > %{buildroot}%{_prefix}/lib/%{rname}/conf.d/20-config-connectivity-rosa.conf << 'EOF'
# Check if authorization via a captive portal for network is needed
[connectivity]
enabled=true
uri=http://mirror.rosa.ru/nm-captive-check.txt
response=.
EOF

#install tmpfiles conf
install -m644 -D %{SOURCE4} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%find_lang %{rname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14897 |21mr|networkmanager-applet-1.24.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname network-manager-applet
%define major 0
%define ver %(echo %{version} | cut -d. -f1,2)

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%undefine _disable_rebuild_configure

Summary:	Network connection manager applet for GNOME
Name:		networkmanager-applet
Version:	1.24.0
Release:	1
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		https://www.gnome.org/projects/NetworkManager/
Source0:	https://download.gnome.org/sources/network-manager-applet/%{ver}/%{rname}-%{version}.tar.xz
Source1:	50-nm_applet.pkla
Patch0:		network-manager-applet-desktop-gnome.patch
BuildRequires:	intltool
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libnm) >= %{version}
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libsecret-unstable)
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
%endif
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(mobile-broadband-provider-info)
BuildRequires:	pkgconfig(polkit-gobject-1) >= 0.92
Requires:	gtk+3
Requires:	iso-codes
Requires:	mobile-broadband-provider-info
Requires:	networkmanager >= %{version}

# libnm-gtk disappeared when updating from 1.8 to 1.16,
# libnma became a separate package
Obsoletes:	%{mklibname nm-gtk 0} < 1.16
Obsoletes:	%{mklibname nm-gtk-gir 1.0} < 1.16

%description
Network-manager-applet is a system tray applet which lets you easily
connect to different networks. It is created for GNOME's notification area
but it also works for other desktop environments which provide a system
tray like KDE or XFCE. It displays the available networks and allows to
easily switch between them. For encrypted networks it will prompt the user
for the key/passphrase and it can optionally store them in the
gnome-keyring.

%files -f nm-applet.lang
%doc ChangeLog CONTRIBUTING
%{_appdatadir}/nm-connection-editor.appdata.xml
%{_bindir}/nm-connection-editor
%{_bindir}/nm-applet
%{_datadir}/applications/nm-applet.desktop
%{_datadir}/applications/nm-connection-editor.desktop
%{_datadir}/GConf/gsettings/nm-applet.convert
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/nm-applet.1*
%{_mandir}/man1/nm-connection-editor.1*
%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nm_applet.pkla
%{_sysconfdir}/xdg/autostart/nm-applet.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{rname}-%{version}

%build
%configure \
	--disable-static \
%if %{with selinux}
	--with-selinux \
%else
	--without-selinux \
%endif
	--enable-more-warnings=no \
	--without-appindicator

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/

%find_lang nm-applet

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14898 |21mr|networkmanager-applet-1.24.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname network-manager-applet
%define major 0
%define ver %(echo %{version} | cut -d. -f1,2)

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

%undefine _disable_rebuild_configure

Summary:	Network connection manager applet for GNOME
Name:		networkmanager-applet
Version:	1.24.0
Release:	3
License:	GPLv2+
Group:		System/Configuration/Networking
Url:		https://www.gnome.org/projects/NetworkManager/
Source0:	https://download.gnome.org/sources/network-manager-applet/%{ver}/%{rname}-%{version}.tar.xz
Source1:	50-nm_applet.pkla
Patch0:		network-manager-applet-desktop-gnome.patch
BuildRequires:	intltool
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libnm) >= %{version}
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libsecret-unstable)
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
%endif
BuildRequires:	pkgconfig(mm-glib)
BuildRequires:	pkgconfig(mobile-broadband-provider-info)
BuildRequires:	pkgconfig(polkit-gobject-1) >= 0.92
Requires:	gtk+3
Requires:	iso-codes
Requires:	mobile-broadband-provider-info
Requires:	networkmanager >= %{version}

# libnm-gtk disappeared when updating from 1.8 to 1.16,
# libnma became a separate package
Obsoletes:	%{mklibname nm-gtk 0} < 1.16
Obsoletes:	%{mklibname nm-gtk-gir 1.0} < 1.16

%description
Network-manager-applet is a system tray applet which lets you easily
connect to different networks. It is created for GNOME's notification area
but it also works for other desktop environments which provide a system
tray like KDE or XFCE. It displays the available networks and allows to
easily switch between them. For encrypted networks it will prompt the user
for the key/passphrase and it can optionally store them in the
gnome-keyring.

%files -f nm-applet.lang
%doc ChangeLog CONTRIBUTING
%{_appdatadir}/nm-connection-editor.appdata.xml
%{_bindir}/nm-connection-editor
%{_bindir}/nm-applet
%{_datadir}/applications/nm-applet.desktop
%{_datadir}/applications/nm-connection-editor.desktop
%{_datadir}/GConf/gsettings/nm-applet.convert
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man1/nm-applet.1*
%{_mandir}/man1/nm-connection-editor.1*
%{_sysconfdir}/polkit-1/localauthority/50-local.d/50-nm_applet.pkla
%{_sysconfdir}/xdg/autostart/nm-applet.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{rname}-%{version}

%build
%configure \
	--disable-static \
%if %{with selinux}
	--with-selinux \
%else
	--without-selinux \
%endif
	--enable-more-warnings=no \
	--without-appindicator

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/polkit-1/localauthority/50-local.d/

%find_lang nm-applet

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14899 |21mr|networkmanager-fortisslvpn-1.2.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fortinet compatible SSLVPN support for NetworkManager
Name:		networkmanager-fortisslvpn
Version:	1.2.10
Release:	5
License:	GPLv2
Group:		Networking/Remote access
Url:		https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn
Source0:	https://gitlab.gnome.org/GNOME/NetworkManager-fortisslvpn/-/archive/%{version}/NetworkManager-fortisslvpn-%{version}.tar.gz
BuildRequires:  pkgconfig(libsecret-1)
BuildRequires:  pkgconfig(libnm)
BuildRequires:  pkgconfig(libnma)
BuildRequires:  pkgconfig(gtk+-3.0)
# for 1.4.0+ (requires newer libnm)
#BuildRequires:  pkgconfig(gtk4)
BuildRequires:  ppp-devel
Requires:   NetworkManager
Requires:   openfortivpn
Requires:   ppp
Provides:   NetworkManager-fortisslvpn = %{EVRD}
Provides:   network-manager-fortisslvpn = %{EVRD}

%description
Fortinet compatible SSLVPN support for NetworkManager.
Uses openfortivpn.

%files -f NetworkManager-fortisslvpn.lang
%license COPYING
%doc README NEWS
%{_libdir}/NetworkManager/libnm-vpn-plugin-fortisslvpn.so
%{_libdir}/NetworkManager/libnm-vpn-plugin-fortisslvpn-editor.so
%{_libdir}/pppd/*/*-plugin.so
%{_libexecdir}/nm-fortisslvpn-auth-dialog
%{_libexecdir}/nm-fortisslvpn-service
%{_datadir}/dbus-1/system.d/nm-fortisslvpn-service.conf
%{_datadir}/appdata/network-manager-fortisslvpn.metainfo.xml
%{_prefix}/lib/NetworkManager/VPN/nm-fortisslvpn-service.name
%attr(700,root,root) %dir /var/lib/NetworkManager-fortisslvpn

# TODO: maybe split graphical part into a separate subpackage
# but it does not make much sense

#------------------------------------------------------------------

%prep
%autosetup -p1 -n NetworkManager-fortisslvpn-%{version}

%build
autoreconf -if
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d
mv %{buildroot}/etc/dbus-1/system.d/nm-fortisslvpn-service.conf %{buildroot}%{_datadir}/dbus-1/system.d

mkdir --mode=0700 -p %{buildroot}/var/lib/NetworkManager-fortisslvpn

%find_lang NetworkManager-fortisslvpn

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14900 |21mr|networkmanager-l2tp-1.8.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname network-manager-l2tp

Summary:	NetworkManager VPN plugin for l2tp
Name:		networkmanager-l2tp
Version:	1.8.2
Release:	5
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/nm-l2tp/network-manager-l2tp/
Source0:	https://github.com/nm-l2tp/network-manager-l2tp/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		network-manager-l2tp-1.2.10-linkage.patch
Patch1:         0001-libcrypto-downgrade.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(openssl) >= 1.0.0
BuildRequires:	pkgconfig(nss) >= 1.1.0
BuildRequires:	libtool
BuildRequires:	ppp-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsecret-1)
Requires:	networkmanager
Requires:	ppp-pppoe
Requires:	pptp-linux
Requires:	shared-mime-info
Requires:	xl2tpd
Provides:	NetworkManager-l2tp = %{EVRD}
Conflicts:	NetworkManager-l2tp < 1.2.4
Obsoletes:	NetworkManager-l2tp < 1.2.4

%description
This package contains software for integrating L2TP VPN support with
the NetworkManager and the GNOME desktop.

%files -f NetworkManager-l2tp.lang
%doc AUTHORS ChangeLog
%{_libdir}/NetworkManager/lib*.so*
%{_libexecdir}/nm-l2tp-auth-dialog
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-l2tp-service.conf
%{_libexecdir}/nm-l2tp-service
%{_libdir}/pppd/2.*/nm-l2tp-pppd-plugin.so
%{_datadir}/appdata/network-manager-l2tp.metainfo.xml
%{_prefix}/lib/NetworkManager/VPN/nm-l2tp-service.name

#----------------------------------------------------------------------------

%prep
%setup -qn NetworkManager-l2tp-%{version}
%patch0 -p1
%patch1 -p1

%build
# Don't permorm excessive configure
sed -i autogen.sh -e 's/^\(\s*\)\(\.\/configure\)/\1true # \2/'
./autogen.sh
%configure \
	--disable-static \
	--enable-libreswan-dh2 \
	--disable-dependency-tracking \
	--enable-more-warnings=yes

%make

%install
%makeinstall_std

%find_lang NetworkManager-l2tp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14901 |21mr|networkmanager-openconnect-1.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	NetworkManager VPN integration for openconnect
Name:		networkmanager-openconnect
Version:	1.2.6
Release:	1
License:	GPLv2+
Group:		System/Base
Url:		http://www.gnome.org/projects/NetworkManager/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-openconnect/%{url_ver}/NetworkManager-openconnect-%{version}.tar.xz
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsecret-unstable)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openconnect)
BuildRequires:	pkgconfig(gcr-3) > 3.4
Requires:	gtk+3
Requires:	dbus
Requires:	NetworkManager
Requires:	openconnect

%description
This package contains software for integrating the openconnect VPN software
with NetworkManager and the GNOME desktop.

%files -f NetworkManager-openconnect.lang
%doc AUTHORS ChangeLog COPYING
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-openconnect-service.conf
%{_libdir}/NetworkManager/libnm-vpn-plugin-openconnect.so
%{_libdir}/NetworkManager/libnm-vpn-plugin-openconnect-editor.so
%{_libexecdir}/nm-openconnect-auth-dialog
%{_libexecdir}/nm-openconnect-service
%{_libexecdir}/nm-openconnect-service-openconnect-helper
%{_datadir}/appdata/network-manager-openconnect.metainfo.xml
%{_datadir}/gnome-vpn-properties/openconnect
# nmlibdir as defined in NetworkManager package
%{_prefix}/lib/NetworkManager/VPN/nm-openconnect-service.name

%pre
%{_sbindir}/groupadd -r nm-openconnect &>/dev/null || :
%{_sbindir}/useradd  -r -s /sbin/nologin -d / -M \
                     -c 'NetworkManager user for OpenConnect' \
                     -g nm-openconnect nm-openconnect &>/dev/null || :

#----------------------------------------------------------------------------

%prep
%setup -qn NetworkManager-openconnect-%{version}
%apply_patches

%build
%configure \
	--disable-static \
	--with-gnome \
	--with-authdlg \
	--enable-more-warnings=no

%make

%install
%makeinstall_std

%find_lang NetworkManager-openconnect

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14902 |21mr|networkmanager-openswan-1.2.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_ver 1.2
%define _disable_ld_no_undefined 1

Summary:	NetworkManager VPN integration for OpenSWAN
Name:		networkmanager-openswan
Version:	1.2.12
Release:	3
License:	GPLv2+
Group:		System/Base
Url:		http://www.gnome.org/projects/NetworkManager/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-libreswan/%{up_ver}/NetworkManager-libreswan-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libsecret-unstable)
Requires:	GConf2
Requires:	gnome-keyring
Requires:	networkmanager
Recommends:	openswan
Requires:	shared-mime-info
Provides:	networkmanager-libreswan = %{EVRD}

%description
This package contains software for integrating the OpenSWAN IPSec VPN software
with NetworkManager and the GNOME desktop.

%files -f NetworkManager-libreswan.lang
%doc AUTHORS ChangeLog README
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-libreswan-service.conf
%{_libdir}/NetworkManager/libnm-vpn-plugin-libreswan-editor.so
%{_libdir}/NetworkManager/libnm-vpn-plugin-libreswan.so
%{_prefix}/lib/NetworkManager/VPN/nm-libreswan-service.name
%{_libexecdir}/nm-libreswan-service-helper
%{_libexecdir}/nm-libreswan-auth-dialog
%{_libexecdir}/nm-libreswan-service
%{_datadir}/appdata/network-manager-libreswan.metainfo.xml
%{_datadir}/gnome-vpn-properties/libreswan/nm-libreswan-dialog.ui
%{_mandir}/man5/nm-settings-libreswan.5.xz

#----------------------------------------------------------------------------

%prep
%setup -qn NetworkManager-libreswan-%{version}
%apply_patches

%build
%configure \
	--disable-static \
	--disable-dependency-tracking \
	--enable-more-warnings=no

%make

%install
%makeinstall_std

%find_lang NetworkManager-libreswan

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14903 |21mr|networkmanager-openvpn-1.8.12-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NetworkManager VPN integration for OpenVPN
Name:		networkmanager-openvpn
Epoch:		1
Version:	1.8.12
Release:	4
License:	GPLv2+
Group:		System/Base
Url:		https://www.gnome.org/projects/NetworkManager/
Source0:	https://gitlab.gnome.org/GNOME/NetworkManager-openvpn/-/archive/%{version}/NetworkManager-openvpn-%{version}.tar.gz
Patch20:	v1.8.6-autogen.sh.patch
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gtk+-3.0)
# grep -inHr 'libnm >='
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsecret-unstable)
Requires:	networkmanager
Requires:	openvpn
Requires:	shared-mime-info
Requires(pre,postun):	rpm-helper

%description
This package contains software for integrating the OpenVPN VPN software
with NetworkManager and the GNOME desktop.

%files -f NetworkManager-openvpn.lang
%doc AUTHORS ChangeLog README
%{_libdir}/NetworkManager/libnm-vpn-plugin-openvpn-editor.so
%{_libdir}/NetworkManager/libnm-vpn-plugin-openvpn.so
%{_prefix}/lib/NetworkManager/VPN/nm-openvpn-service.name
%{_libexecdir}/nm-openvpn-auth-dialog
%{_libexecdir}/nm-openvpn-service
%{_libexecdir}/nm-openvpn-service-openvpn-helper
%{_datadir}/appdata/network-manager-openvpn.metainfo.xml
%{_datadir}/dbus-1/system.d/nm-openvpn-service.conf

# TODO@mikhailnov: what for is this user needed?
%pre
%_pre_useradd nm-openvpn / /sbin/nologin

%postun
%_postun_userdel nm-openvpn

#----------------------------------------------------------------------------

%prep
%setup -qn NetworkManager-openvpn-%{version}
%patch20 -p1

%build
env NOCONFIGURE=1 ./autogen.sh
%configure \
	--disable-static \
	--disable-dependency-tracking \
	--enable-more-warnings
%make

%install
%makeinstall_std

%find_lang NetworkManager-openvpn

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14904 |21mr|networkmanager-pptp-1.2.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NetworkManager VPN integration for PPTP
Name:		networkmanager-pptp
Epoch:		1
Version:	1.2.8
Release:	9
License:	GPLv2+
Group:		System/Base
Url:		http://www.gnome.org/projects/NetworkManager/
Source0:	https://gitlab.gnome.org/GNOME/NetworkManager-pptp/-/archive/%{version}/NetworkManager-pptp-%{version}.tar.gz
Patch0:		NetworkManager-pptp-1.2.6-linkage.patch
Patch1:		nm-pptp-1.2.6-fix-support-options.patch
Patch2:		v1.2.8-autogen.sh.patch
BuildRequires:	intltool
BuildRequires:	libtool
BuildRequires:	ppp-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsecret-unstable)
Requires:	networkmanager
Requires:	ppp-pppoe
Requires:	pptp-linux
Requires:	shared-mime-info

%description
This package contains software for integrating the PPTP VPN with
NetworkManager and the GNOME desktop.

%files -f NetworkManager-pptp.lang
%doc AUTHORS ChangeLog README
%{_libdir}/NetworkManager/libnm-vpn-plugin-pptp-editor.so
%{_libdir}/NetworkManager/libnm-vpn-plugin-pptp.so
%{_libdir}/pppd/*/nm-pptp-pppd-plugin.so
%{_prefix}/lib/NetworkManager/VPN/nm-pptp-service.name
%{_libexecdir}/nm-pptp-auth-dialog
%{_libexecdir}/nm-pptp-service
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-pptp-service.conf
%{_datadir}/appdata/network-manager-pptp.metainfo.xml

#----------------------------------------------------------------------------

%prep
%setup -qn NetworkManager-pptp-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
env NOCONFIGURE=1 ./autogen.sh --without-libnm-glib
%configure \
	--disable-static \
	--disable-dependency-tracking \
	--enable-more-warnings \
	--without-libnm-glib
%make

%install
%makeinstall_std

%find_lang NetworkManager-pptp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14905 |21mr|networkmanager-qt-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 Qt wrapper for NetworkManager API
Name:		networkmanager-qt
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Url:		https://www.kde.org/
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)

%description
KDE Frameworks 5 Qt wrapper for NetworkManager API.

%files
%{_kde5_datadir}/qlogging-categories5/networkmanagerqt.categories
%{_kde5_datadir}/qlogging-categories5/networkmanagerqt.renamecategories

#--------------------------------------------------------------------

%define kf5nmqt_major 6
%define libkf5nmqt %mklibname kf5nmqt %{kf5nmqt_major}

%package -n %{libkf5nmqt}
Summary:	KDE Frameworks 5 NetworkManager API Qt wrapper shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5nmqt}
KDE Frameworks 5 NetworkManager API Qt wrapper shared library.

%files -n %{libkf5nmqt}
%{_kde5_libdir}/libKF5NetworkManagerQt.so.%{kf5nmqt_major}
%{_kde5_libdir}/libKF5NetworkManagerQt.so.%{version}

#--------------------------------------------------------------------

%define devkf5nmqt %mklibname kf5nmqt -d

%package -n %{devkf5nmqt}
Summary:	Development files for KDE Frameworks 5 NetworkManager API Qt wrapper
Group:		Development/KDE and Qt
Requires:	%{libkf5nmqt} = %{EVRD}
Requires:	pkgconfig(libnm)
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5networkmanagerqt-devel = %{version}

%description -n %{devkf5nmqt}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5nmqt}
%{_kde5_includedir}/KF5/NetworkManagerQt
%{_kde5_libdir}/cmake/KF5NetworkManagerQt
%{_kde5_libdir}/libKF5NetworkManagerQt.so

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14906 |21mr|networkmanager-sstp-1.3.1-0.gitae2781.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit ae278183ab68c6e0f73d8313ddf5c17d5516b8e0
%define commit_short %(echo %{commit} | head -c6)

%define ppp_version %((%{__awk} '/^#define VERSION/ { print $NF }' %{_includedir}/pppd/patchlevel.h 2>/dev/null||echo none)|tr -d '"')
%define _disable_ld_no_undefined 1

Summary:	NetworkManager integration for sstp
Name:		networkmanager-sstp
Version:	1.3.1
Release:	0.git%{commit_short}.1
License:	GPLv2+
Group:		System/Base
Url:		https://gitlab.gnome.org/GNOME/network-manager-sstp
Source0:	https://gitlab.gnome.org/GNOME/network-manager-sstp/-/archive/%{commit}/network-manager-sstp-%{commit}.tar.gz
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	ppp-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(sstp-client-1.0)
Provides:	NetworkManager-sstp = %{EVRD}
Requires:	NetworkManager
Requires:	ppp = %{ppp_version}
Requires:	sstp-client
Recommends:	(networkmanager-sstp-gui if (networkmanager-applet or networkmanager-qt))
# files were moved
Conflicts:	NetworkManager-sstp-gnome < 1.3.0-5

%description
This package contains software for integrating the sstp software
with NetworkManager and the GNOME desktop

%files -f NetworkManager-sstp.lang
%doc AUTHORS ChangeLog README
%license COPYING
%{_appdatadir}/network-manager-sstp.metainfo.xml
%{_datadir}/dbus-1/system.d/nm-sstp-service.conf
%{_libexecdir}/nm-sstp-service
%{_libdir}/pppd/%{ppp_version}/nm-sstp-pppd-plugin.so
%{_libdir}/NetworkManager/libnm-vpn-plugin-sstp.so
%{_prefix}/lib/NetworkManager/VPN/nm-sstp-service.name

#----------------------------------------------------------------------------

%package gui
Summary:	NetworkManager VPN plugin for SSTP - GUI
Requires:	networkmanager-sstp%{?_isa} = %{EVRD}
# moved files
Conflicts:	networkmanager-sstp < 1.3.0-5
# renamed package
Conflicts:	NetworkManager-sstp-gnome < 1.3.0-5
Obsoletes:	NetworkManager-sstp-gnome < 1.3.0-5
Provides:	NetworkManager-sstp-gnome = %{EVRD}

%description gui
This package contains software for integrating VPN capabilities with
the SSTP server with NetworkManager GUI.

%files gui
%doc AUTHORS ChangeLog README
%license COPYING
%{_libexecdir}/nm-sstp-auth-dialog
%{_libdir}/NetworkManager/libnm-vpn-plugin-sstp-editor.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n network-manager-sstp-%{commit}

%build
autoreconf -if
%configure \
	--without-libnm-glib		\
	--with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version}

%make

%install
%makeinstall_std

%find_lang NetworkManager-sstp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14907 |21mr|networkmanager-strongswan-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:      networkmanager-strongswan
Version:   1.6.0
Release:   1
Summary:   NetworkManager strongSwan IPSec VPN plug-in
Group:     System/Base
License:   GPLv2+
URL:       https://www.strongswan.org/
Source0:   https://download.strongswan.org/NetworkManager/NetworkManager-strongswan-%{version}.tar.bz2

BuildRequires: pkgconfig(gtk+-3.0)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(libnm) >= 1.1.0
BuildRequires: pkgconfig(libnma) >= 1.1.0
BuildRequires: intltool
BuildRequires: libtool

Requires: NetworkManager
# Requires a version recent enough to ship the D-Bus policy
Requires: strongswan-charon-nm > 5.6.0-1

# Was renamed from NetworkManager-strongswan to lowercase,
# because other NM plugins are named like this.
Provides: NetworkManager-strongswan = %{EVRD}
Conflicts: NetworkManager-strongswan < 1.6.0
Obsoletes: NetworkManager-strongswan < 1.6.0

#global __provides_exclude ^libnm-.*\\.so

%description
This package contains software for integrating the strongSwan IPSec VPN
with NetworkManager.


%package gnome
Summary: NetworkManager VPN plugin for strongswan - GNOME files

Requires: NetworkManager-strongswan = %{version}-%{release}

%description gnome
This package contains software for integrating the strongSwan IPSec VPN
with the graphical desktop.


%prep
%autosetup -p1 -n NetworkManager-strongswan-%{version}


%build
%configure \
        --disable-static \
        --with-charon=%{_libexecdir}/strongswan/charon-nm \
        --enable-more-warnings=no
%make


%install
%makeinstall_std
%find_lang NetworkManager-strongswan


%files -f NetworkManager-strongswan.lang
%doc NEWS
%{_prefix}/lib/NetworkManager/VPN/nm-strongswan-service.name

%files gnome
%{_prefix}/lib/NetworkManager/nm-strongswan-auth-dialog
%{_libdir}/NetworkManager/libnm-vpn-plugin-strongswan.so
%{_libdir}/NetworkManager/libnm-vpn-plugin-strongswan-editor.so
%{_metainfodir}/NetworkManager-strongswan.metainfo.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14908 |21mr|networkmanager-vpnc-1.2.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_ver 1.2

Summary:	NetworkManager VPN integration for vpnc
Name:		networkmanager-vpnc
Epoch:		1
Version:	1.2.6
Release:	9
License:	GPLv2+
Group:		System/Base
Url:		http://www.gnome.org/projects/NetworkManager/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/NetworkManager-vpnc/%{up_ver}/NetworkManager-vpnc-%{version}.tar.xz
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libnma)
BuildRequires:	pkgconfig(libsecret-1)
Requires:	dbus
Requires:	networkmanager
Requires:	shared-mime-info
Requires:	vpnc

%description
This package contains software for integrating the vpnc VPN software
with NetworkManager and the GNOME desktop

%files -f NetworkManager-vpnc.lang
%doc AUTHORS ChangeLog
%{_libexecdir}/nm-vpnc-auth-dialog
%{_libexecdir}/nm-vpnc-service
%{_libexecdir}/nm-vpnc-service-vpnc-helper
%{_libdir}/NetworkManager/libnm-vpn-plugin-vpnc-editor.so
%{_libdir}/NetworkManager/libnm-vpn-plugin-vpnc.so
%{_prefix}/lib/NetworkManager/VPN/nm-vpnc-service.name
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-vpnc-service.conf
%{_datadir}/appdata/network-manager-vpnc.metainfo.xml
%{_datadir}/gnome-vpn-properties/vpnc/nm-vpnc-dialog.ui

#----------------------------------------------------------------------------

%prep
%setup -qn NetworkManager-vpnc-%{version}
%apply_patches

%build
%configure \
	--disable-static \
	--enable-more-warnings=yes \
	--with-tests=yes \
	--without-libnm-glib \
	--with-gtkver=3

%make

%install
%makeinstall_std

%find_lang NetworkManager-vpnc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14909 |21mr|newmoon-33.4.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{ix86}
%define debug_package %{nil}
%endif

%define oname palemoon
%define newmoon_appid \{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4\}

# For bundled NSS. copied from firefox.spec
# Do not make provides from plugins /usr/lib64/*/*.so
%global __provides_exclude_from ^%{_libdir}/.*/.*\\.so$
# Do not require filtered out provides
# To inspect them:
# for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then echo ; echo -- $i ; LC_ALL=C ldd $i | grep found ; fi; done
# To make this list:
# ( for i in /usr/lib64/firefox/* ; do if file $i | grep -q ELF ; then LC_ALL=C ldd $i | grep found | awk '{print $1}' | awk -F '\\.so' '{print $1}' ; fi; done ) | sort -u | tr '\n' '|'
%global __requires_exclude ^(libhunspell|liblgpllibs|libmozavutil|libmozgtk|libmozsandbox|libmozsqlite3|libmozwayland|libnspr4|libnss3|libnssutil3|libplc4|libplds4|libsmime3|libssl3|libxul)\\.so.*$

Summary:	Web browser based on Goanna engine
Name:		newmoon
Version:	33.4.0.1
Release:	2
License:	MPLv2.0
Group:		Networking/WWW
Url:		http://www.palemoon.org
Source0:	https://repo.palemoon.org/MoonchildProductions/Pale-Moon/archive/%{version}_Release.tar.gz?/Pale-Moon-%{version}_Release.tar.gz
Source1:	https://repo.palemoon.org/MoonchildProductions/UXP/archive/RB_20241008.tar.gz?/UXP-RB_20241008.tar.gz
Source2:	xulstore.json
Source3:	newmoon.rpmlintrc
Source4:	newmoon.desktop
Source5:	firefox-searchengines-yandex.xml
Source6:	firefox-searchengines-google.xml
Source9:	kde.js
# https://raw.githubusercontent.com/LibreOffice/dictionaries/master/ru_RU/ru_RU.aff
Source10:	ru_RU.aff
# https://raw.githubusercontent.com/LibreOffice/dictionaries/master/ru_RU/ru_RU.dic
Source11:	ru_RU.dic
Patch1:		palemoon-28.0.1-prefs-edit.patch
Patch5:		pale-moon-32.4.1-enable-addons.patch
Patch6:		pale-moon-32.4.1-user-agent-overrides.patch
# The following headers are used less widely in libstdc++ 
# and may need to be included explicitly when compiled with GCC 11
Patch7:		pale-moon-32.4.1-gcc11.patch
Patch8:		pale-moon-32.4.1-branding.patch
BuildRequires:	autoconf2.1
BuildRequires:	doxygen
BuildRequires:	imagemagick
BuildRequires:	makedepend
BuildRequires:	python3-simplejson
BuildRequires:	rootcerts
BuildRequires:	unzip
BuildRequires:	valgrind
BuildRequires:	wget
BuildRequires:	yasm
BuildRequires:	zip
BuildRequires:	libiw-devel
BuildRequires:	nss-static-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xt)
Requires:	indexhtml
Requires:	libhunspell
# fixes bug #42096
Requires:	mailcap
Requires:	xdg-utils
Recommends:	%{_lib}canberra0
Recommends:	%{_lib}cups2
Provides:	%{oname} = %{EVRD}
Provides:	%{name} = %(echo %{version} | cut -d. -f-2).0
Provides:	webclient

%description
New Moon (unofficial branding for Pale Moon) is an Open Source, Goanna-based
web browser available for Microsoft Windows and Linux (with other operating
systems in development), focusing on efficiency and ease of use.

New Moon offers you a browsing experience in a browser completely built from
its own, independently developed source that has been forked off from
Firefox/Mozilla code, with carefully selected features and optimizations
to improve the browser's speed, resource use, stability and user experience,
while offering full customization and a growing collection of extensions and
themes to make the browser truly your own.

%files
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%dir %{_datadir}/mozilla/extensions/%{newmoon_appid}
%dir %{_libdir}/mozilla
%dir %{_libdir}/mozilla/extensions
%dir %{_libdir}/mozilla/extensions/%{newmoon_appid}
%dir %{_libdir}/mozilla/plugins
%{_iconsdir}/hicolor/*/apps/*.png
%{_libdir}/%{name}-%{version}*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other

%description devel
Files and macros mainly for building New Moon extensions.

%files devel
%{_rpmmacrodir}/*%{name}*

#----------------------------------------------------------------------------

%prep
%setup -qn pale-moon -a1
rmdir platform
mv uxp platform
%apply_patches

pushd platform/js/src
autoconf-2.13
popd
autoconf-2.13

%build
%ifarch %{ix86}
%global optflags %(echo %{optflags} | sed -e 's/-gdwarf-4//' -e 's/-Wa,--compress-debug-sections//')
%endif

%setup_compile_flags
CFLAGS=$(echo %{optflags} | sed -e 's/-fexceptions//')
CFLAGS="$CFLAGS -fno-strict-aliasing -Wno-ignored-optimization-argument"
CXXFLAGS="$CFLAGS -fpermissive"
RPM_OPT_FLAGS="$CFLAGS"
LDFLAGS="%{ldflags}"
export CFLAGS
export CXXFLAGS
export RPM_OPT_FLAGS
export LDFLAGS

export MOZCONFIG=`pwd`/mozconfig
cat << EOF > $MOZCONFIG
mk_add_options AUTOCLOBBER=1
mk_add_options MOZILLA_OFFICIAL=0
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
mk_add_options MOZ_OBJDIR=@TOPSRCDIR@/../obj
ac_add_options --enable-application=%{oname}
ac_add_options --datadir="%{_datadir}"
ac_add_options --host=%{_host}
ac_add_options --includedir="%{_includedir}"
ac_add_options --libdir="%{_libdir}"
ac_add_options --prefix="%{_prefix}"
ac_add_options --target=%{_target_platform}
# https://github.com/MoonchildProductions/UXP/issues/1073
ac_add_options --disable-accessibility
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
ac_add_options --disable-debug-symbols
ac_add_options --disable-optimize
ac_add_options --disable-startupcache
ac_add_options --disable-tests
ac_add_options --disable-webrtc
ac_add_options --enable-default-toolkit=cairo-gtk3
ac_add_options --enable-gio
ac_add_options --enable-jemalloc
ac_add_options --enable-libproxy
ac_add_options --enable-startup-notification
ac_add_options --with-distribution-id=org.rosa
ac_add_options --with-pthreads

EOF

./mach build --verbose

%install
make -C %{_builddir}/obj/%{oname}/installer STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0

# Copy files to buildroot
mkdir -p %{buildroot}%{_libdir}/%{name}-%{version}
cp -rfL %{_builddir}/obj/dist/bin/* %{buildroot}%{_libdir}/%{name}-%{version}

mkdir -p %{buildroot}%{_bindir}
ln -sf %{_libdir}/%{name}-%{version}/%{oname} %{buildroot}%{_bindir}/%{name}
mkdir -p %{buildroot}%{_libdir}/%{name}-%{version}/browser/defaults/preferences/
install -m 644 %{SOURCE9} %{buildroot}%{_libdir}/%{name}-%{version}/browser/defaults/preferences/kde.js

# Create and own %%_libdir/mozilla/plugins & newmoon extensions directories
mkdir -p %{buildroot}%{_libdir}/mozilla/plugins
mkdir -p %{buildroot}%{_libdir}/mozilla/extensions/%{newmoon_appid}
mkdir -p %{buildroot}%{_datadir}/mozilla/extensions/%{newmoon_appid}

# (tpg) desktop entry
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop

# (tpg) icons
for i in 16 22 24 32 48 128; do
# (cg) Not all icon sizes are installed with make install, so just redo it here.
	convert %{_builddir}/obj/dist/bin/browser/icons/mozicon128.png -scale ${i}x${i} %{buildroot}%{_libdir}/%{name}-%{version}/browser/chrome/icons/default/default${i}.png
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps
	ln -sf %{_libdir}/%{name}-%{version}/browser/chrome/icons/default/default$i.png %{buildroot}%{_iconsdir}/hicolor/"$i"x"$i"/apps/%{name}.png ;
done

# exclusions
rm -f %{buildroot}%{_libdir}/%{name}-%{version}/README.txt
rm -f %{buildroot}%{_libdir}/%{name}-%{version}/removed-files
rm -f %{buildroot}%{_libdir}/%{name}-%{version}/precomplete

install -D -m644 %{oname}/app/profile/prefs.js %{buildroot}%{_libdir}/%{name}-%{version}/browser/defaults/preferences/prefs.js
cat << EOF >> %{buildroot}%{_libdir}/%{name}-%{version}/browser/defaults/preferences/prefs.js
pref("app.update.auto", false);
pref("app.update.enabled", false);
pref("browser.backspace_action", 2);
pref("browser.ctrlTab.previews", true);
pref("browser.display.use_system_colors", true);
pref("browser.download.folderList", 1);
pref("browser.EULA.override", true);
pref("browser.link.open_newwindow", 3);
pref("browser.newtab.url", "file:///usr/share/doc/HTML/index.html");
pref("browser.search.openintab", true);
pref("browser.shell.checkDefaultBrowser", false);
pref("browser.startup.homepage", "file:///usr/share/doc/HTML/index.html");
pref("browser.startup.page", 1);
pref("browser.tabs.insertRelatedAfterCurrent", true);
pref("browser.tabs.onTop", true);
pref("dom.ipc.plugins.enabled.nswrapper*", false);
pref("extensions.autoDisableScopes", 0);
pref("extensions.shownSelectionUI", true);
pref("general.useragent.compatMode", 2);
pref("general.useragent.override.consultant.ru", "Mozilla/5.0 (X11; Linux %{_target_cpu}; rv:78.0) Gecko/20100101 Firefox/78.0");
pref("intl.locale.matchOS", true);
pref("network.manage-offline-status", true);
pref("startup.homepage_welcome_url", "file:///usr/share/doc/HTML/first_startup.html");
pref("startup.homepage_override_url", "file:///usr/share/doc/HTML/index.html");
EOF

install -m644 %{SOURCE2} %{buildroot}%{_libdir}/%{name}-%{version}/browser/defaults/preferences/xulstore.json

cp %{SOURCE10} %{SOURCE11} %{buildroot}%{_libdir}/%{name}-%{version}/dictionaries

# (lm) touch and %%ghost bookmarks.html to a proper uninstall
touch %{buildroot}%{_libdir}/%{name}-%{version}/browser/defaults/preferences/bookmarks.html

# search engines
mkdir -p %{buildroot}%{_libdir}/%{name}-%{version}/browser/searchplugins
cp %{SOURCE5} %{buildroot}%{_libdir}/%{name}-%{version}/browser/searchplugins/yandex.xml
cp %{SOURCE6} %{buildroot}%{_libdir}/%{name}-%{version}/browser/searchplugins/google.xml
cp %{oname}/locales/en-US/searchplugins/bing.xml %{buildroot}%{_libdir}/%{name}-%{version}/browser/searchplugins/bing.xml
cp %{oname}/locales/en-US/searchplugins/duckduckgo-%{oname}.xml %{buildroot}%{_libdir}/%{name}-%{version}/browser/searchplugins/duckduckgo-%{oname}.xml
cp %{oname}/locales/en-US/searchplugins/wikipedia.xml %{buildroot}%{_libdir}/%{name}-%{version}/browser/searchplugins/wikipedia.xml
cp %{oname}/locales/en-US/searchplugins/yahoo.xml %{buildroot}%{_libdir}/%{name}-%{version}/browser/searchplugins/yahoo.xml

cat <<EOF >macro
# Macros from %{name} package
%%newmoon_major %{version}
%%newmoon_version %{version}
%%newmoon_mozillapath %{_libdir}/%{name}-%{version}
%%newmoon_pluginsdir %{_libdir}/mozilla/plugins
%%newmoon_appid \{8de7fcbb-c55c-4fbe-bfc5-fc555c87dbc4\}
%%newmoon_extdir %%(if [ "%%_target_cpu" = "noarch" ]; then echo %%{_datadir}/mozilla/extensions/%%{newmoon_appid}; else echo %%{_libdir}/mozilla/extensions/%%{newmoon_appid}; fi)
EOF
%install_macro %{name} macro


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14910 |21mr|newmoon-l10n-33.4.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Supported l10n language lists
%define langlist ar bg cs da de el en_GB es_AR es_ES es_MX fi fr gl hr hu id is it ja ko nl pl pt_BR pt_PT ro ru sk sl sr sv_SE th tl tr uk zh_CN zh_TW

# Disabled myspell dicts, for any reason
%define disabled_dict_langlist ar da el es_AR fi gl_ES hr is nl pt_BR ro sk sl sr sv_SE tr zh_CN zh_TW

# Language descriptions
%define language_ar ar
%define langname_ar Arabic
%define language_bg bg
%define langname_bg Bulgarian
%define language_cs cs
%define langname_cs Czech
%define language_da da
%define langname_da Dansk
%define language_de de
%define langname_de German
%define language_el el
%define langname_el Greek
%define language_en_GB en-GB
%define langname_en_GB British English
%define language_es_AR es-AR
%define langname_es_AR Spanish (Argentina)
%define language_es_ES es-ES
%define langname_es_ES Spanish
%define language_es_MX es-MX
%define langname_es_MX Spanish (Mexico)
%define language_fi fi
%define langname_fi Finnish
%define language_fr fr
%define langname_fr French
%define language_gl gl
%define langname_gl Galician (Spain)
%define language_hr hr
%define langname_hr Croatian
%define language_hu hu
%define langname_hu Hungarian
%define language_id id
%define langname_id Indonesian
%define language_is is
%define langname_is Icelandic
%define language_it it
%define langname_it Italian
%define language_ja ja
%define langname_ja Japanese
%define language_ko ko
%define langname_ko Korean
%define language_nl nl
%define langname_nl Dutch
%define language_pl pl
%define langname_pl Polish
%define language_pt_BR pt-BR
%define langname_pt_BR Brazilian portuguese
%define language_pt_PT pt-PT
%define langname_pt_PT Portuguese
%define language_ro ro
%define langname_ro Romanian
%define language_ru ru
%define langname_ru Russian
%define language_sk sk
%define langname_sk Slovak
%define language_sl sl
%define langname_sl Slovenian
%define language_sr sr
%define langname_sr Serbian
%define language_sv_SE sv-SE
%define langname_sv_SE Swedish
%define language_th th
%define langname_th Thai
%define language_tl tl
%define langname_tl Tagalog (Philippines)
%define language_tr tr
%define langname_tr Turkish
%define language_uk uk
%define langname_uk Ukrainian
%define language_zh_CN zh-CN
%define langname_zh_CN Simplified Chinese
%define language_zh_TW zh-TW
%define langname_zh_TW Traditional Chinese

# --- Danger line ---

# Defaults (all languages enabled by default)
# dicts
%{expand:%(for lang in %langlist; do echo "%%define with_dict_$lang 0"; done)}
%{expand:%(for lang in %disabled_dict_langlist; do echo "%%define with_dict_$lang 0"; done)}

# Locales
%{expand:%(for lang in %langlist; do echo "%%define locale_$lang `echo $lang | cut -d _ -f 1` "; done)}

Summary:	Localizations for New Moon (virtual package)
Name:		newmoon-l10n
Version:	33.4.0.1
Release:	1
License:	MPLv2.0
Group:		Networking/WWW
Url:		https://addons.palemoon.org
# Save .xpi from https://addons.palemoon.org/language-packs/ by "Save object us..." for "Install Now"
# Fake tarball l10n sources
Source0:	%{name}-%{version}.tar.xz
# Language package template
Source1:	%{name}-template.in
Source10:	newmoon-brand.dtd
Source11:	newmoon-brand.properties
Source500:	%{name}.rpmlintrc
BuildRequires:	newmoon-devel
BuildRequires:	zip
BuildArch:	noarch

%description
Localizations for New Moon web browser.

# Expand all languages packages.
%{expand:%(\
	for lang in %langlist; do\
		echo "%%{expand:%%(sed "s!__LANG__!$lang!g" %{_sourcedir}/%{name}-template.in 2> /dev/null)}";\
	done\
	)
}

%prep
%autosetup -p1

%build

%install
# Convert rpm macros to bash variables
%{expand:%(for lang in %langlist; do echo "language_$lang=%%{language_$lang}"; done)}

mkdir -p %{buildroot}%{newmoon_extdir}/

# Install all languages
for lang in %{langlist}; do
	language="language_$lang"
	language=${!language}
	# l10n
	mkdir ${language}
	mv pm-langpack-$(echo $lang |tr _ - |tr '[:upper:]' '[:lower:]')-%{version}.xpi ${language}/${language}.xpi
	pushd ${language}
	unzip -q ${language}.xpi
	install -m 644 %{SOURCE10} browser/chrome/${language}/locale/branding/brand.dtd
	install -m 644 %{SOURCE11} browser/chrome/${language}/locale/branding/brand.properties
	if [ "$language" = ru ]; then
		sed -i "s/Developer Tools/Средства разработчика/" browser/chrome/ru/locale/browser/browser.dtd
		sed -i "/webDeveloperMenu\.accesskey/ s/\x22v\x22/\x22е\x22/" browser/chrome/ru/locale/browser/browser.dtd
		sed -i "s/Service Workers/Фоновые скрипты/" browser/chrome/ru/locale/ru/devtools/client/menus.properties
		sed -i "s/\(devtoolsServiceWorkers.accesskey=\)k/\1к/" browser/chrome/ru/locale/ru/devtools/client/menus.properties
		sed -i "s/System Defaults/Настройки системы/" browser/chrome/ru/locale/browser/preferences/main.dtd
		sed -i "s/Always check to see if/Всегда проверять, что/" browser/chrome/ru/locale/browser/preferences/main.dtd
		sed -i "/alwaysCheckDefault\.accesskey/ s/\x22w\x22/\x22е\x22/" browser/chrome/ru/locale/browser/preferences/main.dtd
		sed -i "s/is the default browser on startup/выставлен браузером по умолчанию/" browser/chrome/ru/locale/browser/preferences/main.dtd
		sed -i "s/Make /Выставить /" browser/chrome/ru/locale/browser/preferences/main.dtd
		sed -i "s/; the default browser/; браузером по умолчанию/" browser/chrome/ru/locale/browser/preferences/main.dtd
		sed -i "s/is currently your default browser/выставлен браузером по умолчанию/" browser/chrome/ru/locale/browser/preferences/main.dtd
		sed -i "s/Data Privacy/приватность/" browser/chrome/ru/locale/browser/preferences/privacy.dtd
		sed -i "s/Tell sites not to share or sell my data/Просить сайты не распространять и не продавать мои данные/" browser/chrome/ru/locale/browser/preferences/privacy.dtd
		sed -i "/sendGPCheader\.accesskey/ s/\x22n\x22/\x22н\x22/" browser/chrome/ru/locale/browser/preferences/privacy.dtd
		sed -i "s/Learn More/Узнать больше/" browser/chrome/ru/locale/browser/preferences/privacy.dtd
	fi
	zip -q -r ${language}.xpi *
	mv ${language}.xpi ../
	popd
	rm -rf ${language}
	install -m 644 ${language}.xpi %{buildroot}%{newmoon_extdir}/langpack-${language}@palemoon.org.xpi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14911 |21mr|newt-0.52.21-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0.52
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

Summary:	A development library for text mode user interfaces
Name:		newt
Version:	0.52.21
Release:	3
License:	LGPLv2+
Group:		System/Libraries
Url:		https://fedorahosted.org/newt/
Source0:	https://fedorahosted.org/releases/n/e/newt/%{name}-%{version}.tar.gz
Patch1: 	newt-0.52.6-mdvconf.patch
Patch2: 	newt-0.51.4-fix-wstrlen-for-non-utf8-strings.patch
Patch3:		newt-0.52.19-slang-include.patch
BuildRequires:	glibc-static-devel
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(slang)
Provides:	whiptail = %{EVRD}

%description
Newt is a programming library for color text mode, widget based user
interfaces. Newt can be used to add stacked windows, entry widgets, checkboxes,
radio buttons, labels, plain text fields, scrollbars, etc., to text mode user
interfaces.  This package contains a /usr/bin/dialog replacement called
whiptail. Newt is based on the slang library.

%files -f %{name}.lang
%doc CHANGES COPYING
%{_bindir}/whiptail
%{py3_platsitedir}/*
%{_mandir}/man1/whiptail.1*

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Newt windowing toolkit development files library
Group:		Development/C

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libnewt.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Newt windowing toolkit development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc tutorial.sgml
%{_includedir}/newt.h
%{_libdir}/libnewt.a
%{_libdir}/libnewt.so
%{_libdir}/pkgconfig/libnewt.pc

#----------------------------------------------------------------------------

%package -n %python2-newt
%py2_migration_meta %python2-newt
Summary:	Python 2.x bindings to the newt text mode windowing toolkit
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Provides:	%python2-snack = %{EVRD}
Provides:	python2-snack = %{EVRD}
# for newt_syrup
Provides:	pythonegg(newt-python) = %{EVRD}
Provides:	python%{py2_ver}dist(newt-python) = %{EVRD}

%description -n %python2-newt
Python 2.x bindings to the newt text mode windowing toolkit

%files -n %python2-newt
%{py2_platsitedir}/*

#----------------------------------------------------------------------------

%package -n python3-newt
Summary:	Python bindings to the newt text mode windowing toolkit
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Provides:	python3-snack = %{EVRD}
# for newt_syrup
Provides:	python3egg(newt-python) = %{EVRD}
Provides:	python%{py3_ver}dist(newt-python) = %{EVRD}

%description -n python3-newt
Python bindings to the newt text mode windowing toolkit

%files -n python3-newt
%{python3_sitearch}/*.py*
%{python3_sitearch}/__pycache__/*.py*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export PYTHON=%{__python3}
export PYTHONVERS=%{__python3}

%configure \
	--with-gpm-support \
	--without-tcl
%make
%make shared

%install
%make_install

ln -snf lib%{name}.so.%{version} %{buildroot}%{_libdir}/lib%{name}.so.%{major}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14912 |21mr|nfs-ganesha-3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global _hardened_build 1

%define on_off_switch() %%{?with_%1:ON}%%{!?with_%1:OFF}

%bcond_without nullfs
%global use_fsal_null %{on_off_switch nullfs}

%bcond_without mem
%global use_fsal_mem %{on_off_switch mem}

%bcond_without gpfs
%global use_fsal_gpfs %{on_off_switch gpfs}

%bcond_with xfs
%global use_fsal_xfs %{on_off_switch xfs}

%bcond_with lustre
%global use_fsal_lustre %{on_off_switch lustre}

%ifnarch %{ix86} %{arm}
%bcond_without ceph
%else
%bcond_with ceph
%endif
%global use_fsal_ceph %{on_off_switch ceph}

%ifnarch %{ix86} %{arm}
%bcond_without rgw
%else
%bcond_with rgw
%endif
%global use_fsal_rgw %{on_off_switch rgw}

%bcond_without gluster
%global use_fsal_gluster %{on_off_switch gluster}

%bcond_with panfs
%global use_fsal_panfs %{on_off_switch panfs}

%bcond_with rdma
%global use_rdma %{on_off_switch rdma}

%bcond_with 9P
%global use_9P %{on_off_switch 9P}

%bcond_with jemalloc

%bcond_with lttng
%global use_lttng %{on_off_switch lttng}

%bcond_without utils
%global use_utils %{on_off_switch utils}

%bcond_without gui_utils
%global use_gui_utils %{on_off_switch gui_utils}

%bcond_without system_ntirpc
%global use_system_ntirpc %{on_off_switch system_ntirpc}

%bcond_without man_page
%global use_man_page %{on_off_switch man_page}

%ifnarch %{ix86} %{arm}
%bcond_without rados_recov
%else
%bcond_with rados_recov
%endif
%global use_rados_recov %{on_off_switch rados_recov}

%ifnarch %{ix86} %{arm}
%bcond_without rados_urls
%else
%bcond_with rados_urls
%endif
%global use_rados_urls %{on_off_switch rados_urls}

%bcond_without rpcbind
%global use_rpcbind %{on_off_switch rpcbind}

%bcond_without mspac_support
%global use_mspac_support %{on_off_switch mspac_support}

%bcond_with sanitize_address
%global use_sanitize_address %{on_off_switch sanitize_address}

%bcond_without selinux

%global dev_version %{lua: s = string.gsub('@GANESHA_EXTRA_VERSION@', '^%-', ''); s2 = string.gsub(s, '%-', '.'); print((s2 ~= nil and s2 ~= '') and s2 or "0.1") }
# %%global	dev rc5


Name:		nfs-ganesha
Version:	3.3
Release:	1
Summary:	NFS-Ganesha is a NFS Server running in user space
Group:		Networking/File transfer
License:	LGPLv3+
Url:		https://github.com/nfs-ganesha/nfs-ganesha/wiki
Source0:	https://github.com/%{name}/%{name}/archive/V%{version}%{?dev:-%{dev}}/%{name}-%{version}%{?dev:-%{dev}}.tar.gz
Source1:	ganesha.sysusers.conf
Patch0001:	0001-systemd-revised-drop-in-conf-file-handling.patch
Patch0002:	0002-selinux-ganesha.te.patch
BuildRequires:	cmake
BuildRequires:	make
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(libattr)
BuildRequires:	pkgconfig(liburcu)
BuildRequires:	krb5-devel
%if %{with rados_recov} || %{with rados_urls}
BuildRequires:	ceph-devel
%endif
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	dbus-devel
Requires:	dbus
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(uuid)
%if ( 0%{?with_mspac_support} )
BuildRequires:	pkgconfig(wbclient)
%endif
BuildRequires:	gcc-c++
%if ( %{with_system_ntirpc} )
BuildRequires:	pkgconfig(libntirpc) > 3.0
%else
Requires: libntirpc = @NTIRPC_VERSION_EMBED@
%endif
Requires:	policycoreutils-python-utils
%if %{with sanitize_address}
BuildRequires: libasan
%endif
Requires:	nfs-utils
%if ( 0%{?with_rpcbind} )
Requires:	rpcbind
#Requires:	portmap
%endif

BuildRequires:	pkgconfig(libnfsidmap)

%if %{with rdma}
BuildRequires:	libmooshika-devel >= 0.6-0
%endif
%if %{with jemalloc}
BuildRequires:	jemalloc-devel
%endif
BuildRequires:	systemd
Requires(pre):	/bin/systemd-sysusers
Requires(post):	systemd
Requires(preun): systemd
Requires(postun): systemd
%if %{with man_page}
BuildRequires:	python3egg(sphinx)
%endif
Requires(post):	psmisc

%if %{with selinux}
Requires: nfs-ganesha-selinux = %{EVRD}
%endif
# Use CMake variables

%description
nfs-ganesha : NFS-GANESHA is a NFS Server running in user space.
It comes with various back-end modules (called FSALs) provided as
shared objects to support different file systems and name-spaces.

%files
%license src/LICENSE.txt
%{_bindir}/ganesha.nfsd
%config %{_sysconfdir}/dbus-1/system.d/org.ganesha.nfsd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/ganesha
%config(noreplace) %{_sysconfdir}/logrotate.d/ganesha
%dir %{_sysconfdir}/ganesha/
%config(noreplace) %{_sysconfdir}/ganesha/ganesha.conf
%dir %{_defaultdocdir}/ganesha/
%{_defaultdocdir}/ganesha/*
%doc src/ChangeLog
%dir %{_rundir}/ganesha
%dir %{_libexecdir}/ganesha/
%{_libexecdir}/ganesha/nfs-ganesha-config.sh
%dir %attr(0755,ganesha,ganesha) %{_localstatedir}/log/ganesha

%{_unitdir}/nfs-ganesha.service
%{_unitdir}/nfs-ganesha-lock.service
%{_unitdir}/nfs-ganesha-config.service
%{_sysconfdir}/systemd/system/nfs-ganesha-lock.service.d/rpc-statd.conf
%{_sysusersdir}/ganesha.conf

%if %{with man_page}
%{_mandir}/man8/ganesha-config.8*
%{_mandir}/man8/ganesha-core-config.8*
%{_mandir}/man8/ganesha-export-config.8*
%{_mandir}/man8/ganesha-cache-config.8*
%{_mandir}/man8/ganesha-log-config.8*
%endif

%pre
%sysusers_create_package ganesha %{SOURCE1}

%post
restorecon %{_localstatedir}/log/ganesha
%systemd_post nfs-ganesha.service
%systemd_post nfs-ganesha-lock.service
%systemd_post nfs-ganesha-config.service
killall -SIGHUP dbus-daemon >/dev/null 2>&1 || :

%preun
%systemd_preun nfs-ganesha-lock.service

%postun
%systemd_postun_with_restart nfs-ganesha-lock.service

#----------------------------------------------------------------
%define major 3
%define libganesha_nfsd %mklibname ganesha_nfsd %{major}
%define devganesha_nfsd %mklibname ganesha_nfsd -d

%package -n %{libganesha_nfsd}
Summary:	NFS-Ganesha is a NFS Server running in user space
Group:		System/Libraries

%description -n %{libganesha_nfsd}
nfs-ganesha : NFS-GANESHA is a NFS Server running in user space.
It comes with various back-end modules (called FSALs) provided as
shared objects to support different file systems and name-spaces.

%files -n %{libganesha_nfsd}
%{_libdir}/libganesha_nfsd.so.%{major}*

#----------------------------------------------------------------

%package -n %{devganesha_nfsd}
Summary:	Development headers for libganesha_nfsd
Group:		Development/Other
Requires:	%{libganesha_nfsd} = %{EVRD}

%description -n %{devganesha_nfsd}
Development headers and auxiliary files for developing with libganesha_nfsd.

%files -n %{devganesha_nfsd}
%{_libdir}/libganesha_nfsd.so

#----------------------------------------------------------------

%if %{with 9P}
%package mount-9P
Summary:	a 9p mount helper
Group:		Networking/File transfer

%description mount-9P
This package contains the mount.9P script that clients can use
to simplify mounting to NFS-GANESHA. This is a 9p mount helper.

%files mount-9P
%{_sbindir}/mount.9P
%if %{with man_page}
%{_mandir}/man8/ganesha-9p-config.8*
%endif
%endif

#----------------------------------------------------------------

%package vfs
Summary:	The NFS-GANESHA VFS FSAL
Group:		Networking/File transfer
Obsoletes:	%{name}-xfs <= %{version}
Requires:	nfs-ganesha = %{EVRD}

%description vfs
This package contains a FSAL shared object to
be used with NFS-Ganesha to support VFS based filesystems

%files vfs
%{_libdir}/ganesha/libfsalvfs*
%config(noreplace) %{_sysconfdir}/ganesha/vfs.conf
%if %{with man_page}
%{_mandir}/man8/ganesha-vfs-config.8*
%endif

#----------------------------------------------------------------

%package proxy
Summary:	The NFS-GANESHA PROXY FSAL
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}

%description proxy
This package contains a FSAL shared object to
be used with NFS-Ganesha to support PROXY based filesystems

%files proxy
%{_libdir}/ganesha/libfsalproxy*
%if %{with man_page}
%{_mandir}/man8/ganesha-proxy-config.8*
%endif

#----------------------------------------------------------------

%if %{with utils}
%package utils
Summary: The NFS-GANESHA util scripts
Group:		Networking/File transfer
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Requires:	python3-gobject
Requires:	python3-pyparsing
Requires:	python3-dbus

%if %{with gui_utils}
BuildRequires:	python3-qt5-devel
%endif

%description utils
This package contains utility scripts for managing the NFS-GANESHA server

%files utils
%{python3_sitelib}/Ganesha/*
%{python3_sitelib}/ganeshactl-*-info
%if %{with gui_utils}
%{_bindir}/ganesha-admin
%{_bindir}/manage_clients
%{_bindir}/manage_exports
%{_bindir}/manage_logger
%{_bindir}/ganeshactl
%if %{with 9P}
%{_bindir}/client_stats_9pOps
%{_bindir}/export_stats_9pOps
%else
%exclude %{_bindir}/client_stats_9pOps
%exclude %{_bindir}/export_stats_9pOps
%endif
%endif
%{_bindir}/fake_recall
%{_bindir}/get_clientids
%{_bindir}/grace_period
%{_bindir}/ganesha_stats
%{_bindir}/sm_notify.ganesha
%{_bindir}/ganesha_mgr
%{_bindir}/ganesha_conf
%{_mandir}/man8/ganesha_conf.8*
%endif

#----------------------------------------------------------------

%if %{with lttng}
%package lttng
Summary:	The NFS-GANESHA library for use with LTTng
Group:		Networking/File transfer
BuildRequires:	lttng-ust-devel >= 2.3
BuildRequires:	lttng-tools-devel >= 2.3
Requires:	nfs-ganesha = %{EVRD}

%description lttng
This package contains the libganesha_trace.so library. When preloaded
to the ganesha.nfsd server, it makes it possible to trace using LTTng.

%files lttng
%{_libdir}/ganesha/libganesha_trace*
%endif

#----------------------------------------------------------------

%if %{with rados_recov}
%package rados-grace
Summary:	The NFS-GANESHA command for managing the RADOS grace database
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}

%description rados-grace
This package contains the ganesha-rados-grace tool for interacting with the
database used by the rados_cluster recovery backend and the
libganesha_rados_grace shared library for using RADOS storage for
recovery state.

%files rados-grace
%{_bindir}/ganesha-rados-grace
%{_libdir}/libganesha_rados_recov.so*
%if %{with man_page}
%{_mandir}/man8/ganesha-rados-grace.8*
%{_mandir}/man8/ganesha-rados-cluster-design.8*
%endif
%endif

#----------------------------------------------------------------

%if %{with rados_urls}
%package rados-urls
Summary:	The NFS-GANESHA library for use with RADOS URLs
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}

%description rados-urls
This package contains the libganesha_rados_urls library used for
handling RADOS URL configurations.

%files rados-urls
%{_libdir}/libganesha_rados_urls.so*
%endif

#----------------------------------------------------------------

# Option packages start here. use "rpmbuild --with gpfs" (or equivalent)
# for activating this part of the spec file

%if %{with nullfs}
%package nullfs
Summary:	The NFS-GANESHA NULLFS Stackable FSAL
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}

%description nullfs
This package contains a Stackable FSAL shared object to
be used with NFS-Ganesha. This is mostly a template for future (more sophisticated) stackable FSALs

%files nullfs
%{_libdir}/ganesha/libfsalnull*
%endif

#----------------------------------------------------------------

%if %{with mem}
%package mem
Summary:	The NFS-GANESHA Memory backed testing FSAL
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}

%description mem
This package contains a FSAL shared object to be used with NFS-Ganesha. This
is used for speed and latency testing.

%files mem
%{_libdir}/ganesha/libfsalmem*
%endif

#----------------------------------------------------------------

%if %{with gpfs}
%package gpfs
Summary:	The NFS-GANESHA GPFS FSAL
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}

%description gpfs
This package contains a FSAL shared object to
be used with NFS-Ganesha to support GPFS backend

%files gpfs
%{_libdir}/ganesha/libfsalgpfs*
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.conf
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.ganesha.nfsd.conf
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.ganesha.main.conf
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.ganesha.log.conf
%config(noreplace) %{_sysconfdir}/ganesha/gpfs.ganesha.exports.conf
%{_libexecdir}/ganesha/gpfs-epoch
%if %{with man_page}
%{_mandir}/man8/ganesha-gpfs-config.8*
%endif
%endif

#----------------------------------------------------------------

%if %{with ceph}
%package ceph
Summary:	The NFS-GANESHA CephFS FSAL
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}
BuildRequires:	ceph-devel

%description ceph
This package contains a FSAL shared object to
be used with NFS-Ganesha to support CephFS

%files ceph
%{_libdir}/ganesha/libfsalceph*
%config(noreplace) %{_sysconfdir}/ganesha/ceph.conf
%if %{with man_page}
%{_mandir}/man8/ganesha-ceph-config.8*
%endif
%endif

#----------------------------------------------------------------

%if %{with rgw}
%package rgw
Summary:	The NFS-GANESHA Ceph RGW FSAL
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}
BuildRequires:	ceph-devel >= 12.2.0

%description rgw
This package contains a FSAL shared object to
be used with NFS-Ganesha to support Ceph RGW

%files rgw
%{_libdir}/ganesha/libfsalrgw*
%config(noreplace) %{_sysconfdir}/ganesha/rgw.conf
%config(noreplace) %{_sysconfdir}/ganesha/rgw_bucket.conf
%if %{with man_page}
%{_mandir}/man8/ganesha-rgw-config.8*
%endif
%endif

#----------------------------------------------------------------

%if %{with xfs}
%package xfs
Summary:	The NFS-GANESHA XFS FSAL
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}
BuildRequires:	xfsprogs-devel

%description xfs
This package contains a shared object to be used with FSAL_VFS
to support XFS correctly

%files xfs
%{_libdir}/ganesha/libfsalxfs*
%config(noreplace) %{_sysconfdir}/ganesha/xfs.conf
%if %{with man_page}
%{_mandir}/man8/ganesha-xfs-config.8*
%endif
%endif

#----------------------------------------------------------------

%if %{with lustre}
%package lustre
Summary:	The NFS-GANESHA LUSTRE FSAL
Group:		Networking/File transfer
BuildRequires:	lustre-client
Requires:	nfs-ganesha = %{EVRD}
Requires:	lustre-client

%description lustre
This package contains a FSAL shared object to
be used with NFS-Ganesha to support LUSTRE based filesystems

%files lustre
%{_libdir}/ganesha/libfsallustre*
%config(noreplace) %{_sysconfdir}/ganesha/lustre.conf
%if %{with man_page}
%{_mandir}/man8/ganesha-lustre-config.8*
%endif
%endif

#----------------------------------------------------------------

%if %{with panfs}
%package panfs
Summary:	The NFS-GANESHA PANFS FSAL
Group:		Networking/File transfer
Requires:	nfs-ganesha = %{EVRD}

%description panfs
This package contains a FSAL shared object to
be used with NFS-Ganesha to support PANFS

%files panfs
%{_libdir}/ganesha/libfsalpanfs*
%endif

#----------------------------------------------------------------

%if %{with gluster}
%package gluster
Summary:	The NFS-GANESHA GLUSTER FSAL
Group:		Networking/File transfer
BuildRequires:	pkgconfig(glusterfs-api) >= 7.0
BuildRequires:	pkgconfig(libacl)
Requires:	nfs-ganesha = %{EVRD}

%description gluster
This package contains a FSAL shared object to
be used with NFS-Ganesha to support Gluster

%files gluster
%config(noreplace) %{_sysconfdir}/logrotate.d/ganesha-gfapi
%{_libdir}/ganesha/libfsalgluster*
%if %{with man_page}
%{_mandir}/man8/ganesha-gluster-config.8*
%endif
%endif

#----------------------------------------------------------------
%if %{with selinux}
%package selinux
Summary:	The NFS-GANESHA SELINUX targeted policy
Group:		Networking/File transfer
BuildRequires:	selinux-policy-devel
Requires:	nfs-ganesha = %{EVRD}
BuildArch:	noarch
%{?selinux_requires}

%description selinux
This package contains an selinux policy for running ganesha.nfsd

%files selinux
%attr(0644,root,root) %{_selinux_store_path}/packages/ganesha.pp.bz2
%attr(0644,root,root) %{_selinux_store_path}/devel/include/contrib/ganesha.if

%post selinux
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha > /dev/null 2>&1 || :
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha.log > /dev/null 2>&1 || :
%if %{with gluster}
semanage fcontext -a -t ganesha_var_log_t %{_localstatedir}/log/ganesha/ganesha-gfapi.log > /dev/null 2>&1 || :
%endif

%selinux_modules_install %{_selinux_store_path}/packages/ganesha.pp.bz2

%pre selinux
%selinux_relabel_pre

%postun selinux
if [ $1 -eq 0 ]; then
    %selinux_modules_uninstall ganesha
fi

%posttrans
%selinux_relabel_post
%endif
#----------------------------------------------------------------

# NTIRPC (if built-in)
%if ! %{with system_ntirpc}

%define libntirpc %mklibname ntirpc @NTIRPC_VERSION_EMBED@
%define devntirpc %mklibname ntirpc -d

%package -n %{libntirpc}
Summary:	New Transport Independent RPC Library
Group:		System/Libraries
License:	BSD
Version:	@NTIRPC_VERSION_EMBED@
Url:		https://github.com/nfs-ganesha/ntirpc

# libtirpc has /etc/netconfig, most machines probably have it anyway
# for NFS client
Requires:	libtirpc

%description -n %{libntirpc}
This package contains a new implementation of the original libtirpc,
transport-independent RPC (TI-RPC) library for NFS-Ganesha. It has
the following features not found in libtirpc:
 1. Bi-directional operation
 2. Full-duplex operation on the TCP (vc) transport
 3. Thread-safe operating modes
 3.1 new locking primitives and lock callouts (interface change)
 3.2 stateless send/recv on the TCP transport (interface change)
 4. Flexible server integration support
 5. Event channels (remove static arrays of xprt handles, new EPOLL/KEVENT
    integration)

%files -n {libntirpc}
%{_libdir}/libntirpc.so.@NTIRPC_VERSION_EMBED@
%{_libdir}/libntirpc.so.1.6
%license libntirpc/COPYING
%doc libntirpc/NEWS libntirpc/README

#----------------------------------------------------------------

%package -n %{devntirpc}
Summary:	Development headers for libntirpc
Group:		Development/Other
Requires:	%{libntirpc} = @NTIRPC_VERSION_EMBED@
License:	BSD
Version:	@NTIRPC_VERSION_EMBED@
Url:		https://github.com/nfs-ganesha/ntirpc

%description -n %{devntirpc}
Development headers and auxiliary files for developing with %{name}.

%files -n %{devntirpc}
%{_libdir}/libntirpc.so
%{_libdir}/pkgconfig/libntirpc.pc
%dir %{_includedir}/ntirpc
%{_includedir}/ntirpc/*

%endif

#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}%{?dev:-%{dev}}

%build
cd src
%cmake . -DCMAKE_BUILD_TYPE=RelWithDebInfo	\
	-DBUILD_CONFIG=rpmbuild				\
	-DUSE_FSAL_NULL=%{use_fsal_null}		\
	-DUSE_FSAL_MEM=%{use_fsal_mem}			\
	-DUSE_FSAL_XFS=%{use_fsal_xfs}			\
	-DUSE_FSAL_LUSTRE=%{use_fsal_lustre}		\
	-DUSE_FSAL_CEPH=%{use_fsal_ceph}		\
	-DUSE_FSAL_RGW=%{use_fsal_rgw}			\
	-DUSE_FSAL_GPFS=%{use_fsal_gpfs}		\
	-DUSE_FSAL_PANFS=%{use_fsal_panfs}		\
	-DUSE_FSAL_GLUSTER=%{use_fsal_gluster}		\
	-DUSE_SYSTEM_NTIRPC=%{use_system_ntirpc}	\
	-DUSE_9P_RDMA=%{use_rdma}			\
	-DUSE_LTTNG=%{use_lttng}			\
	-DUSE_ADMIN_TOOLS=%{use_utils}			\
	-DUSE_GUI_ADMIN_TOOLS=%{use_gui_utils}		\
	-DUSE_RADOS_RECOV=%{use_rados_recov}		\
	-DRADOS_URLS=%{use_rados_urls}			\
	-DUSE_FSAL_VFS=ON				\
	-DUSE_FSAL_PROXY=ON				\
	-DUSE_DBUS=ON					\
	-DUSE_9P=%{use_9P}				\
	-DDISTNAME_HAS_GIT_DATA=OFF			\
	-DUSE_MAN_PAGE=%{use_man_page}			\
	-DRPCBIND=%{use_rpcbind}			\
	-D_MSPAC_SUPPORT=%{use_mspac_support}		\
	-DSANITIZE_ADDRESS=%{use_sanitize_address}	\
%if %{with system_ntirpc}
	-DNTIRPC_INCLUDE_DIR=%{_includedir}/ntirpc \
%endif
%if %{with jemalloc}
	-DALLOCATOR=jemalloc
%endif

export VERBOSE=1
%make

%if %{with selinux}
cd ..
#FIXME: unconfined_dbus_chat not defined
sed 's/unconfined_dbus_chat/#unconfined_dbus_chat/' -i selinux/ganesha.te
make -C selinux -f /usr/share/selinux/devel/Makefile ganesha.pp
pushd selinux
bzip2 -9 ganesha.pp
popd
%endif

%install
mkdir -p %{buildroot}%{_sysconfdir}/ganesha/
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_libdir}/ganesha
mkdir -p %{buildroot}%{_rundir}/ganesha
mkdir -p %{buildroot}%{_libexecdir}/ganesha
cd src
install -m 644 config_samples/logrotate_ganesha	%{buildroot}%{_sysconfdir}/logrotate.d/ganesha
install -m 644 scripts/ganeshactl/org.ganesha.nfsd.conf	%{buildroot}%{_sysconfdir}/dbus-1/system.d
install -m 755 scripts/nfs-ganesha-config.sh	%{buildroot}%{_libexecdir}/ganesha
%if %{with 9P}
install -m 755 tools/mount.9P	%{buildroot}%{_sbindir}/mount.9P
%endif
install -m 644 config_samples/vfs.conf %{buildroot}%{_sysconfdir}/ganesha
%if %{with rgw}
install -m 644 config_samples/rgw.conf %{buildroot}%{_sysconfdir}/ganesha
%endif

mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/nfs-ganesha-lock.service.d

install -m 644 scripts/systemd/nfs-ganesha.service.el7	%{buildroot}%{_unitdir}/nfs-ganesha.service
install -m 644 scripts/systemd/nfs-ganesha-lock.service.el8    %{buildroot}%{_unitdir}/nfs-ganesha-lock.service
install -m 644 scripts/systemd/rpc-statd.conf.el8      %{buildroot}%{_sysconfdir}/systemd/system/nfs-ganesha-lock.service.d/rpc-statd.conf
install -m 644 scripts/systemd/nfs-ganesha-config.service	%{buildroot}%{_unitdir}/nfs-ganesha-config.service
install -m 644 scripts/systemd/sysconfig/nfs-ganesha	%{buildroot}%{_sysconfdir}/sysconfig/ganesha
mkdir -p %{buildroot}%{_localstatedir}/log/ganesha

%if %{with lustre}
install -m 644 config_samples/lustre.conf %{buildroot}%{_sysconfdir}/ganesha
%endif

%if %{with xfs}
install -m 644 config_samples/xfs.conf %{buildroot}%{_sysconfdir}/ganesha
%endif

%if %{with ceph}
install -m 644 config_samples/ceph.conf %{buildroot}%{_sysconfdir}/ganesha
%endif

%if %{with rgw}
install -m 644 config_samples/rgw.conf %{buildroot}%{_sysconfdir}/ganesha
install -m 644 config_samples/rgw_bucket.conf %{buildroot}%{_sysconfdir}/ganesha
%endif

%if %{with gluster}
install -m 644 config_samples/logrotate_fsal_gluster %{buildroot}%{_sysconfdir}/logrotate.d/ganesha-gfapi
%endif

%if %{with gpfs}
install -m 644 config_samples/gpfs.conf	%{buildroot}%{_sysconfdir}/ganesha
install -m 644 config_samples/gpfs.ganesha.nfsd.conf %{buildroot}%{_sysconfdir}/ganesha
install -m 644 config_samples/gpfs.ganesha.main.conf %{buildroot}%{_sysconfdir}/ganesha
install -m 644 config_samples/gpfs.ganesha.log.conf %{buildroot}%{_sysconfdir}/ganesha
install -m 644 config_samples/gpfs.ganesha.exports.conf	%{buildroot}%{_sysconfdir}/ganesha
%endif

%make_install -C build

%if %{with selinux}
install -d %{buildroot}%{_selinux_store_path}/packages
install -d -p %{buildroot}%{_selinux_store_path}/devel/include/contrib
install -p -m 644 selinux/ganesha.if %{buildroot}%{_selinux_store_path}/devel/include/contrib
install -m 0644 selinux/ganesha.pp.bz2 %{buildroot}%{_selinux_store_path}/packages
%endif

rm -f %{buildroot}/%{python3_sitelib}/gpfs*
rm -f %{buildroot}/%{python3_sitelib}/__init__.*

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/ganesha.conf
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14913 |21mr|nfs-utils-2.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname nfsidmap %{major}
%define devname %mklibname nfsidmap -d

Summary:	The utilities for Linux NFS server
Name:		nfs-utils
Epoch:		1
Version:	2.5.4
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://sourceforge.net/projects/nfs/
Source0:	http://prdownloads.sourceforge.net/nfs/%{name}-%{version}.tar.xz
Source1:	id_resolver.conf
Source2:	lockd.conf
Source3:	24-nfs-server.conf
Source4:	nfsconvert.py
Source5:	nfsconvert.sh
Source6:	nfs-convert.service

Patch100:	nfs-utils-2.5.4-statdpath-man.patch
Patch101:	nfs-utils-1.2.1-exp-subtree-warn-off.patch
Patch102:	nfs-utils-1.2.5-idmap-errmsg.patch
Patch103:	nfs-utils-2.5.4-systemd-gssproxy-restart.patch
Patch105:	nfs-utils-2.3.3-nfsconf-usegssproxy.patch
Patch106:	nfs-utils-2.4.2-systemd-svcgssd.patch

Provides:	exportfs    = %{EVRD}
Provides:	nfsstat     = %{EVRD}
Provides:	showmount   = %{EVRD}
Provides:	rpcdebug    = %{EVRD}
Provides:	rpc.idmapd  = %{EVRD}
Provides:	rpc.mountd  = %{EVRD}
Provides:	rpc.nfsd    = %{EVRD}
Provides:	rpc.statd   = %{EVRD}
Provides:	rpc.gssd    = %{EVRD}
Provides:	mount.nfs   = %{EVRD}
Provides:	mount.nfs4  = %{EVRD}
Provides:	umount.nfs  = %{EVRD}
Provides:	umount.nfs4 = %{EVRD}
Provides:	sm-notify   = %{EVRD}
Provides:	start-statd = %{EVRD}

BuildRequires:  keyutils-devel
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(com_err)
BuildRequires:	krb5-devel >= 1.3
BuildRequires:	libcap-devel
BuildRequires:	wrap-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:  pkgconfig(devmapper)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(librpcsecgss)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(mount)
BuildRequires:	pkgconfig(sqlite3)

Requires:   libnfsidmap = %{EVRD}
# w/a of some odd provides of "libnfsidmap"
Requires:   config(libnfsidmap) = %{EVRD}
Requires:	gssproxy
Requires:	kmod
Requires:	keyutils
Requires:	rpcbind
Requires:	tcp_wrappers
Requires:	quota
Requires(pre,postun):	rpm-helper

%description
This package provides various programs needed for NFS support on server.

%files
%{_docdir}/%{name}
%dir %{_localstatedir}/lib/nfs
%dir %{_sysconfdir}/exports.d
%dir %attr(700,rpcuser,rpcuser) %{_localstatedir}/lib/nfs/statd
%dir %attr(700,rpcuser,rpcuser) %{_localstatedir}/lib/nfs/statd/sm
%dir %attr(700,rpcuser,rpcuser) %{_localstatedir}/lib/nfs/statd/sm.bak
%ghost %attr(644,rpcuser,rpcuser) %{_localstatedir}/lib/nfs/statd/state
%config(noreplace) %{_sysconfdir}/nfs.conf
%config(noreplace) %{_localstatedir}/lib/nfs/etab
%config(noreplace) %{_localstatedir}/lib/nfs/rmtab
%config(noreplace) %{_sysconfdir}/request-key.d/id_resolver.conf
%config(noreplace) %{_sysconfdir}/modprobe.d/lockd.conf
%config(noreplace) %{_sysconfdir}/exports
%config(noreplace) %{_sysconfdir}/nfsmount.conf
%attr(0600,root,root) %config(noreplace) /%{_sysconfdir}/gssproxy/24-nfs-server.conf
%{_unitdir}/auth-rpcgss-module.service
%{_unitdir}/nfs-blkmap.service
%{_unitdir}/nfs-idmap.service
%{_unitdir}/nfs-idmapd.service
%{_unitdir}/nfs-lock.service
%{_unitdir}/nfs-mountd.service
%{_unitdir}/nfs-secure.service
%{_unitdir}/nfs-server.service
%{_unitdir}/nfs-utils.service
%{_unitdir}/nfs.service
%{_unitdir}/rpc-gssd.service
%{_unitdir}/rpc-statd-notify.service
%{_unitdir}/rpc-statd.service
%{_unitdir}/nfs-client.target
%{_unitdir}/rpc_pipefs.target
%{_unitdir}/proc-fs-nfsd.mount
%{_unitdir}/var-lib-nfs-rpc_pipefs.mount
%{_unitdir}/nfs-convert.service
%{_unitdir}/nfsdcld.service
%{_libexecdir}/nfs-utils/nfsconvert.sh
/sbin/mount.nfs
/sbin/mount.nfs4
/sbin/umount.nfs
/sbin/umount.nfs4
/lib/systemd/system-generators/nfs-server-generator
/lib/systemd/system-generators/rpc-pipefs-generator
/sbin/nfsdcltrack
%{_sbindir}/exportfs
%{_sbindir}/rpc.mountd
%{_sbindir}/rpc.nfsd
%{_sbindir}/rpc.statd
%{_sbindir}/sm-notify
%{_sbindir}/start-statd
%{_sbindir}/showmount
%{_sbindir}/mountstats
%{_sbindir}/nfsiostat
%{_sbindir}/nfsidmap
%{_sbindir}/blkmapd
%{_sbindir}/nfsstat
%{_sbindir}/rpc.idmapd
%{_sbindir}/rpc.gssd
%{_sbindir}/nfsconf
%{_sbindir}/nfsconvert
%{_sbindir}/nfsdcld
%{_sbindir}/nfsref
%{_sbindir}/nfsdclddb
%{_sbindir}/nfsdclnts
%{_mandir}/man5/exports.5*
%{_mandir}/man5/nfs.5*
%{_mandir}/man5/nfsmount.conf.5*
%{_mandir}/man5/nfs.conf.5*
%{_mandir}/man7/nfsd.7*
%{_mandir}/man7/nfs.systemd.7*
%{_mandir}/man8/*.8*

%pre
%_pre_useradd rpcuser %{_localstatedir}/lib/nfs /bin/false

%postun
%_postun_userdel rpcuser

#----------------------------------------------------------------------------

%package -n libnfsidmap
Summary:	NFSv4 User and Group ID Mapping library files
License:	BSD
Group:		Networking/Other
Requires:	openldap
Conflicts:	%{_lib}nfsidmap0 < 1:2.2.1
Conflicts:	nfs-utils < 1:2.2.1

%description -n libnfsidmap
Support files for the library that handles mapping between names
and ids for NFSv4.

%files -n libnfsidmap
%doc support/nfsidmap/AUTHORS support/nfsidmap/README support/nfsidmap/COPYING
%config(noreplace) %{_sysconfdir}/idmapd.conf
%{_libdir}/libnfsidmap/*.so
%{_mandir}/man3/nfs4_uid_to_name.3*
%{_mandir}/man5/idmapd.conf.5*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	NFSv4 User and Group ID Mapping shared library
License:	BSD
Group:		System/Libraries
Requires:	libnfsidmap

%description -n %{libname}
Library that handles mapping between names and ids for NFSv4.

%files -n %{libname}
%{_libdir}/libnfsidmap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the libnfsidmap library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}nfsidmap0-devel < 1:2.2.1
Obsoletes:	%{_lib}nfsidmap0-devel < 1:2.2.1

%description -n %{devname}
This package includes header files and libraries necessary for
developing programs which use the libnfsidmap library.

%files -n %{devname}
%{_libdir}/pkgconfig/libnfsidmap.pc
%{_includedir}/nfsidmap*.h
%{_libdir}/libnfsidmap.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Remove .orig files
find . -name "*.orig" | xargs rm -f

# Change shebangs
find -name \*.py -exec sed -r -i '1s|^#!\s*/usr/bin.*python.*|#!%{__python3}|' {} \;

%build
sh -x autogen.sh
%global _statdpath /var/lib/nfs/statd
%configure \
    CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" \
    LDFLAGS="%{ldflags}" \
    --enable-mountconfig \
    --enable-ipv6 \
    --with-statdpath=%{_statdpath} \
    --enable-libmount-mount \
    --with-systemd \
    --with-tcp-wrappers \
    --with-pluginpath=%{_libdir}/libnfsidmap \
    --enable-junction

%make_build all

%install

%global _pkgdir /lib/systemd

mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_libexecdir}/nfs-utils/
mkdir -p %{buildroot}%{_pkgdir}/system
mkdir -p %{buildroot}%{_pkgdir}/system-generators
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_sysconfdir}/request-key.d
mkdir -p %{buildroot}%{_sysconfdir}/modprobe.d/
mkdir -p %{buildroot}%{_sysconfdir}/gssproxy

%make_install

install -s -m 755 tools/rpcdebug/rpcdebug %{buildroot}%{_sbindir}
install -m 644 utils/mount/nfsmount.conf  %{buildroot}%{_sysconfdir}
install -m 644 nfs.conf %{buildroot}%{_sysconfdir}
install -m 644 support/nfsidmap/idmapd.conf %{buildroot}%{_sysconfdir}
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/request-key.d

mkdir -p %{buildroot}/run/sysconfig
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/modprobe.d/lockd.conf
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/gssproxy
install -m 755 %{SOURCE4} %{buildroot}%{_sbindir}/nfsconvert
install -m 755 %{SOURCE5} %{buildroot}/%{_libexecdir}/nfs-utils/nfsconvert.sh
mv %{buildroot}/usr/lib/systemd/* %{buildroot}/lib/systemd/
install -m 644 %{SOURCE6} %{buildroot}%{_pkgdir}/system

rm -rf %{buildroot}%{_libdir}/*.{a,la}
rm -rf %{buildroot}%{_libdir}/libnfsidmap/*.{a,la}

mkdir -p %{buildroot}%{_sharedstatedir}/nfs/rpc_pipefs

touch %{buildroot}%{_sharedstatedir}/nfs/rmtab

mkdir -p %{buildroot}%{_sharedstatedir}/nfs/statd/sm
mkdir -p %{buildroot}%{_sharedstatedir}/nfs/statd/sm.bak
mkdir -p %{buildroot}%{_sharedstatedir}/nfs/v4recovery
mkdir -p %{buildroot}%{_sysconfdir}/exports.d

#
# For backwards compatablity.
#
( cd %{buildroot}%{_unitdir}
ln -s nfs-server.service nfs.service
ln -s rpc-gssd.service nfs-secure.service
ln -s nfs-idmapd.service  nfs-idmap.service
ln -s rpc-statd.service nfs-lock.service
)

# nuke dupes
rm -f %{buildroot}%{_sbindir}/rpcdebug

cat >%{buildroot}%{_sysconfdir}/exports <<EOF
# /etc/exports: the access control list for filesystems which may be exported
#               to NFS clients.  See exports(5).
#
# Example for NFSv2 and NFSv3:
# /srv/homes       hostname1(rw,sync,no_subtree_check) hostname2(ro,sync,no_subtree_check)
#
# Example for NFSv4:
# /srv/nfs4        gss/krb5i(rw,sync,fsid=0,crossmnt,no_subtree_check)
# /srv/nfs4/homes  gss/krb5i(rw,sync,no_subtree_check)
#
EOF

# manage documentation manually
install -d -m 755 %{buildroot}%{_docdir}/%{name}

# fix perms
chmod 0755 %{buildroot}/sbin/mount.nfs
# SUID is required for mounting NFS shares with 'user' option
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=6952
chmod u+s %{buildroot}/sbin/mount.nfs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14914 |21mr|nftables-1.0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	Netfilter Tables userspace utillites
Name:		nftables
Version:	1.0.5
Release:	3
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://netfilter.org/projects/nftables
Source0:	http://ftp.netfilter.org/pub/nftables/%{name}-%{version}.tar.bz2
Source1:	nftables.service
Source2:	nftables.conf
Patch0:		nftables-1.0.5-memory-leak-fix.patch
# from upstream
Patch0001:	0001-parser_bison-fix-memleak-in-meta-set-error-handling.patch
Patch0002:	0002-parser_bison-make-sure-obj_free-releases-timeout-pol.patch
# port of https://git.netfilter.org/nftables/commit/?id=8519ab03
Patch0003:	0003-datatype-fix-leak-and-cleanup-reference-counting-for.patch
BuildRequires:	a2x
BuildRequires:	bison
BuildRequires:	docbook2x
BuildRequires:	flex
BuildRequires:	gmp-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libmnl)
BuildRequires:	pkgconfig(libnftables)
BuildRequires:	pkgconfig(libnftnl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(xtables)

%description
Netfilter Tables userspace utilities.

%files
%config(noreplace) %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}.conf
%{_datadir}/%{name}/*.nft
%{_mandir}/man3/*nft*
%{_mandir}/man5/*nft*
%{_mandir}/man8/*nft*
%{_sbindir}/nft
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Netfilter Tables userspace utillites
Group:		System/Libraries

%description -n %{libname}
Netfilter Tables userspace utilities.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
Header files for development with %{name}.

%files -n %{develname}
%doc %{_docdir}/%{name}/examples/*
%license COPYING
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc

#------------------------------------------------------------------

%package -n	python3-%{name}
Summary:	Python3 bindings for %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
Python3 bindings for %{name}

%files -n python3-%{name}
%{python3_sitelib}/%{name}*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure	\
	--enable-python	\
	--with-json	\
	--with-python-bin="%{__python3}"	\
	--with-xtables
%make

%install
%make_install

mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
cp %{SOURCE1} %{buildroot}%{_unitdir}
cp %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/
# make nftables.py use the real library file name
# to avoid nftables-devel package dependency
sofile=$(readlink %{buildroot}/%{_libdir}/lib%{name}.so)
sed -i -e 's/\(sofile=\)".*"/\1"'$sofile'"/' %{buildroot}/%{python3_sitelib}/%{name}/%{name}.py

chmod 644 %{buildroot}%{_mandir}/man8/nft*

find %{buildroot} -name '*.la' -delete
find %{buildroot} -name '*.a' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14915 |21mr|nghttp2-1.58.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 14
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname -d %{name}

#define	__noautoprov 'nghttp2.so'

Summary:	Experimental HTTP/2 client, server and proxy
Name:		nghttp2
Version:	1.58.0
Release:	3
License:	MIT
Group:		Networking/WWW
Url:		https://nghttp2.org/
Source0:	https://github.com/nghttp2/nghttp2/archive/v%{version}.tar.gz
Patch0:		nhgttp2-1.39.2-fix-build-error.patch
BuildRequires:	bison
BuildRequires:	cmake >= 3.0
BuildRequires:	libxml2-utils
BuildRequires:	ruby
BuildRequires:	boost-devel >= 1.54.0
BuildRequires:	jemalloc-devel
BuildRequires:	pkgconfig(cunit) >= 2.1
BuildRequires:	pkgconfig(jansson) >= 2.5
BuildRequires:	pkgconfig(libcares) >= 1.7.5
BuildRequires:	pkgconfig(libev) >= 4.11
BuildRequires:	pkgconfig(libevent) >= 2.0.8
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl) >= 1.0.1
BuildRequires:	pkgconfig(zlib)

%description
Nghttp2 is a library implementing the Hypertext Transfer Protocol version 2
(HTTP/2) protocol in C; it implements also the header compression algorithm
HPACK in C.
This package contains the HTTP/2 client, server and proxy programs, and also
the encoder and decoder one.

%files
%doc AUTHORS COPYING README.rst
%{_bindir}/h2load
%{_bindir}/nghttp
%{_bindir}/nghttpd
%{_bindir}/nghttpx
%{_bindir}/deflatehd
%{_bindir}/inflatehd
%{_datadir}/%{name}
%{_mandir}/man1/h2load.1*
%{_mandir}/man1/nghttp.1*
%{_mandir}/man1/nghttpd.1*
%{_mandir}/man1/nghttpx.1*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library implementing the HTTP/2 protocol
Group:		System/Libraries
Obsoletes:	%{mklibname nghttp2_asio 1} <= 1.51.0

%description -n %{libname}
Nghttp2 is a library implementing the Hypertext Transfer Protocol version 2
(HTTP/2) protocol in C.
This package contains the main library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libnghttp2.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for building applications with libnghttp2
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libnghttp2-devel package includes libraries and header files needed
for building applications with libnghttp2.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DLIBEV_INCLUDE_DIR=%{_includedir}/libev \
	-DENABLE_APP:BOOL=TRUE \
	-DENABLE_PYTHON_BINDINGS:BOOL=TRUE

%make_build

%install
%makeinstall_std -C build
# Will be installed via %%doc
rm -f %{buildroot}%{_datadir}/doc/nghttp2/README.rst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14916 |21mr|nginx-1.26.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined 1

%define nginx_user nginx
%define nginx_group %{nginx_user}
%define nginx_home /var/lib/nginx
%define nginx_home_tmp %{nginx_home}/tmp
%define nginx_logdir /var/log/nginx
%define nginx_confdir %{_sysconfdir}/nginx
%define nginx_datadir %{_datadir}/nginx
%define nginx_webroot %{nginx_datadir}/html
%define nginx_modpath %{_libdir}/nginx

%global optflags %{optflags} -fno-strict-aliasing -Ofast
# so that the perl module finds its symbols
%global ldflags %{ldflags} -Wl,--export-dynamic

# https://github.com/arut/nginx-rtmp-module/commits/master
%define module_rtmp_commit 23e1873aa62acb58b7881eed2a501f5bf35b82e9
# https://github.com/vkholodkov/nginx-upload-module/commits/master
%define module_upload_commit 4423994c7d8fb491d95867f6af968585d949e7a9
# https://github.com/sto/ngx_http_auth_pam_module/commits/master
%define module_pam1_commit c7a2c937fb86f1e4010d5b7b55f83968ec262546
# https://github.com/vision5/ngx_devel_kit/commits/master (used by array-var-nginx-module)
%define module_ndk_commit b4642d6ca01011bd8cd30b253f5c3872b384fd21
# https://github.com/openresty/array-var-nginx-module/commits/master
%define module_array_commit 32188f86599b47f7cd34340e5a2985bd9d550bf8
# https://github.com/anomalizer/ngx_aws_auth/commits/master
%define module_awsauth_commit a61df4e105627ac637c9085af2e8e6b22764889e
# https://github.com/google/ngx_brotli/commits/master
%define module_brotli_commit 6e975bcb015f62e1f303054897783355e2a877dc
# https://github.com/stnoonan/spnego-http-auth-nginx-module/commits/master
%define module_spnego_commit c62616386e31c65eff648bb5524f7928286a5a0e

Summary:	Robust, small and high performance HTTP and reverse proxy server
Name:		nginx
Version:	1.26.2
Release:	1
Epoch:		2
# BSD License (two clause)
# http://www.freebsd.org/copyright/freebsd-license.html
License:	BSD
Group:		System/Servers
Url:		http://nginx.net/
Source0:	http://nginx.org/download/nginx-%{version}.tar.gz
Source2:	nginx.service
Source3:	nginx.logrotate
Source6:	nginx.sysusers.d
Source10:	https://github.com/arut/nginx-rtmp-module/archive/%{module_rtmp_commit}.tar.gz?/nginx-rtmp-module-%{module_rtmp_commit}.tar.gz
Source11:	https://github.com/vkholodkov/nginx-upload-module/archive/%{module_upload_commit}.tar.gz?/nginx-upload-module-%{module_upload_commit}.tar.gz
Source12:	https://github.com/sto/ngx_http_auth_pam_module/archive/%{module_pam1_commit}.tar.gz?/ngx_http_auth_pam_module-%{module_pam1_commit}.tar.gz
Source13:	https://github.com/vision5/ngx_devel_kit/archive/%{module_ndk_commit}.tar.gz?/ngx_devel_kit-%{module_ndk_commit}.tar.gz
Source14:	https://github.com/openresty/array-var-nginx-module/archive/%{module_array_commit}.tar.gz?/array-var-nginx-module-%{module_array_commit}.tar.gz
Source15:	https://github.com/anomalizer/ngx_aws_auth/archive/%{module_awsauth_commit}.tar.gz?/ngx_aws_auth-%{module_awsauth_commit}.tar.gz
Source16:	https://github.com/google/ngx_brotli/archive/%{module_brotli_commit}.tar.gz?/ngx_brotli-%{module_brotli_commit}.tar.gz
Source17:	https://github.com/stnoonan/spnego-http-auth-nginx-module/archive/%{module_spnego_commit}.tar.gz?/spnego-http-auth-nginx-module-%{module_spnego_commit}.tar.gz
Source100:	index.html
Source102:	nginx-logo.png
Source103:	50x.html
Source104:	404.html
BuildRequires:	systemd-units
BuildRequires:	gd-devel
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
# for module ngx_brotli
BuildRequires:	pkgconfig(libbrotlienc)
# for ngx_http_auth_pam_module
BuildRequires:	pam-devel
# for spnego-http-auth-nginx-module
BuildRequires:	pkgconfig(krb5)
%if %{mdvver} >= 202310
Requires(pre):	%{_bindir}/systemd-sysusers
%else
Requires(pre):	/bin/systemd-sysusers
%endif
Requires:	logrotate
Requires:	pcre
Requires:	geoip
Requires:	openssl
Provides:	webserver

%description
Nginx [engine x] is an HTTP(S) server, HTTP(S) reverse proxy and IMAP/POP3
proxy server written by Igor Sysoev.
Packages nginx-module-* contain additional dynamic modules which can be installed
and configured manually (do not forget to use load_module inside nginx.conf).

%files
%license LICENSE
%doc CHANGES README
%dir %{nginx_modpath}
%dir %{nginx_datadir}
%{nginx_datadir}/html
%{_sbindir}/%{name}
%{_mandir}/man3/%{name}.3pm*
%{_mandir}/man8/*
%{_unitdir}/nginx.service
%{_sysusersdir}/%{name}.conf
%dir %{nginx_confdir}
%config(noreplace) %{nginx_confdir}/win-utf
%config(noreplace) %{nginx_confdir}/%{name}.conf.default
%config(noreplace) %{nginx_confdir}/scgi_params
%config(noreplace) %{nginx_confdir}/scgi_params.default
%config(noreplace) %{nginx_confdir}/fastcgi.conf
%config(noreplace) %{nginx_confdir}/fastcgi.conf.default
%config(noreplace) %{nginx_confdir}/mime.types.default
%config(noreplace) %{nginx_confdir}/fastcgi_params
%config(noreplace) %{nginx_confdir}/fastcgi_params.default
%config(noreplace) %{nginx_confdir}/koi-win
%config(noreplace) %{nginx_confdir}/koi-utf
%config(noreplace) %{nginx_confdir}/%{name}.conf
%config(noreplace) %{nginx_confdir}/mime.types
%config(noreplace) %{nginx_confdir}/uwsgi_params
%config(noreplace) %{nginx_confdir}/uwsgi_params.default
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home}
%attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_home_tmp}
%attr(-,%{nginx_user},%{nginx_group}) %dir %{nginx_logdir}

%pre
# https://nixtux.ru/1002
%{expand:
%(echo '%{sysusers_create_package %{name} %{SOURCE6}}' | \
sed -e 's,@nginx_home@,%{nginx_home},g' -e 's,@nginx_user@,%{nginx_user},g' -e 's,@nginx_group@,%{nginx_group},g')
}

%post
%systemd_post nginx.service

%preun
%systemd_preun nginx.service

#----------------------------------------------------------------------------

# perl support is a subpackage to avoid pulling perl into minimal containers with nginx

%package module-perl
Summary: NGINX module for handling variables with Perl
Requires: nginx%{_isa} = %{EVRD}

%description module-perl
%{summary}
The ngx_http_perl_module module is used to implement location
and variable handlers in Perl and insert Perl calls into SSI.

%files module-perl
%{nginx_modpath}/ngx_http_perl_module.so
%dir %{perl_vendorarch}/auto/%{name}
%{perl_vendorarch}/%{name}.pm
%{perl_vendorarch}/auto/%{name}/%{name}.so

#----------------------------------------------------------------------------

%package module-rtmp
Summary: NGINX module for media streaming
Url: https://github.com/arut/nginx-rtmp-module
Requires: nginx%{_isa} = %{EVRD}
Provides: nginx-module-rtmp = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_rtmp_commit} | head -c 6)

%description module-rtmp
%{summary}

%files module-rtmp
%license nginx-rtmp-module-%{module_rtmp_commit}/LICENSE
%doc nginx-rtmp-module-%{module_rtmp_commit}/README.md
%{nginx_modpath}/ngx_rtmp_module.so

#----------------------------------------------------------------------------

%package module-upload
Summary: NGINX module for uploading files
Url: https://github.com/vkholodkov/nginx-upload-module
Requires: nginx%{_isa} = %{EVRD}
Provides: nginx-module-upload = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_upload_commit} | head -c 6)

%description module-upload
%{summary}

%files module-upload
%license nginx-upload-module-%{module_upload_commit}/LICENCE
%license nginx-upload-module-%{module_upload_commit}/LICENCE.ru
%doc nginx-upload-module-%{module_upload_commit}/README.md
%doc nginx-upload-module-%{module_upload_commit}/Changelog
%doc nginx-upload-module-%{module_upload_commit}/example.php
%doc nginx-upload-module-%{module_upload_commit}/upload-protocol.md
%doc nginx-upload-module-%{module_upload_commit}/nginx.conf
%{nginx_modpath}/ngx_http_upload_module.so

#----------------------------------------------------------------------------

%package module-http_auth_pam
Summary: NGINX module for PAM authorization
Url: https://github.com/sto/ngx_http_auth_pam_module
Requires: nginx%{_isa} = %{EVRD}
Provides: nginx-module-http_auth_pam = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_pam1_commit} | head -c 6)

%description module-http_auth_pam
%{summary}

%files module-http_auth_pam
%license ngx_http_auth_pam_module-%{module_pam1_commit}/LICENSE
%doc ngx_http_auth_pam_module-%{module_pam1_commit}/README.md
%doc ngx_http_auth_pam_module-%{module_pam1_commit}/ChangeLog
%{nginx_modpath}/ngx_http_auth_pam_module.so

#----------------------------------------------------------------------------

%package module-ndk
Summary: Helper module for some other NGINX modules
Url: https://github.com/vision5/ngx_devel_kit
Requires: nginx%{_isa} = %{EVRD}
Provides: nginx-module-ndk = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_ndk_commit} | head -c 6)

%description module-ndk
%{summary}

%files module-ndk
%license ngx_devel_kit-%{module_ndk_commit}/LICENSE
%doc ngx_devel_kit-%{module_ndk_commit}/README*
%{nginx_modpath}/ndk_http_module.so

#----------------------------------------------------------------------------

%package module-array-var
Summary: NGINX module adding support of variables inside config
Url: https://github.com/openresty/array-var-nginx-module
Requires: nginx%{_isa} = %{EVRD}
Requires: nginx-module-ndk = %{EVRD}
Provides: nginx-module-array-var = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_array_commit} | head -c 6)

%description module-array-var
%{summary}
Depends from ndk_http_module.

%files module-array-var
%doc array-var-nginx-module-%{module_array_commit}/README.md
%{nginx_modpath}/ngx_http_array_var_module.so

#----------------------------------------------------------------------------

%package module-aws-auth
Summary: NGINX AWS proxy module
Url: https://github.com/anomalizer/ngx_aws_auth
Requires: nginx%{_isa} = %{EVRD}
Provides: nginx-module-aws-auth = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_awsauth_commit} | head -c 6)

%description module-aws-auth
%{summary}
This nginx module can proxy requests to authenticated S3 backends
using Amazon's V4 authentication API.

%files module-aws-auth
%license ngx_aws_auth-%{module_awsauth_commit}/LICENSE
%doc ngx_aws_auth-%{module_awsauth_commit}/README.md
%doc ngx_aws_auth-%{module_awsauth_commit}/reference-impl-py
%doc ngx_aws_auth-%{module_awsauth_commit}/generate_signing_key
%{nginx_modpath}/ngx_http_aws_auth_module.so

#----------------------------------------------------------------------------

%package module-brotli
Summary: NGINX Brotli compression module
Url: https://github.com/google/ngx_brotli
Requires: nginx%{_isa} = %{EVRD}
Provides: nginx-module-brotli = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_brotli_commit} | head -c 6)

%description module-brotli
%{summary}
Includes both ngx_http_brotli_filter_module and ngx_http_brotli_static_module.

%files module-brotli
%license ngx_brotli-%{module_brotli_commit}/LICENSE
%doc ngx_brotli-%{module_brotli_commit}/README.md
%{nginx_modpath}/ngx_http_brotli_filter_module.so
%{nginx_modpath}/ngx_http_brotli_static_module.so

#----------------------------------------------------------------------------

%package module-spnego-auth
Summary: NGINX module for HTTP SPNEGO (GSSAPI) authentication
Url:https://github.com/stnoonan/spnego-http-auth-nginx-module
Requires: nginx%{_isa} = %{EVRD}
Provides: nginx-spnego-auth = %{EVRD}
Release: %{RELEASE}.git%(echo %{module_spnego_commit} | head -c 6)

%description module-spnego-auth
%{summary}
This module implements adds SPNEGO support to nginx.
It currently supports only Kerberos authentication via GSSAPI.

%files module-spnego-auth
%license spnego-http-auth-nginx-module-%{module_spnego_commit}/LICENSE
%doc spnego-http-auth-nginx-module-%{module_spnego_commit}/README.md
%doc spnego-http-auth-nginx-module-%{module_spnego_commit}/ChangeLog
%{nginx_modpath}/ngx_http_auth_spnego_module.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

tar -xf %{SOURCE10}
tar -xf %{SOURCE11}
tar -xf %{SOURCE12}
tar -xf %{SOURCE13}
tar -xf %{SOURCE14}
tar -xf %{SOURCE15}
tar -xf %{SOURCE16}
tar -xf %{SOURCE17}

%build
%setup_compile_flags

# enable all possible modules
modules="$(grep -- "--with-.*_module" auto/options | \
           awk '{print $1}' | \
           grep -- ^--with | \
           grep -v = | \
           sed -e 's,),,' | \
           grep -vE 'http_perl_module|cpp_test_module|google_perftools_module' |
           sort -u | \
           tr '\n' ' ')"
if [ "$(echo "$modules" | wc -c)" -lt 710 ]; then
	echo "Something went wrong when generating list of modules!"
	exit 1
fi

./configure \
	--user=%{nginx_user} \
	--group=%{nginx_group} \
	--prefix=%{nginx_datadir} \
	--sbin-path=%{_sbindir}/%{name} \
	--conf-path=%{nginx_confdir}/%{name}.conf \
	--error-log-path=%{nginx_logdir}/error.log \
	--http-log-path=%{nginx_logdir}/access.log \
	--http-client-body-temp-path=%{nginx_home_tmp}/client_body \
	--http-proxy-temp-path=%{nginx_home_tmp}/proxy \
	--http-fastcgi-temp-path=%{nginx_home_tmp}/fastcgi \
	--pid-path=/var/run/%{name}.pid \
	--lock-path=/var/lock/subsys/%{name} \
	--modules-path=%{nginx_modpath} \
	--add-dynamic-module=nginx-rtmp-module-%{module_rtmp_commit} \
	--add-dynamic-module=nginx-upload-module-%{module_upload_commit} \
	--add-dynamic-module=ngx_http_auth_pam_module-%{module_pam1_commit} \
	--add-dynamic-module=ngx_devel_kit-%{module_ndk_commit} \
	--add-dynamic-module=array-var-nginx-module-%{module_array_commit} \
	--add-dynamic-module=ngx_aws_auth-%{module_awsauth_commit} \
	--add-dynamic-module=ngx_brotli-%{module_brotli_commit} \
	--add-dynamic-module=spnego-http-auth-nginx-module-%{module_spnego_commit} \
	--with-file-aio \
	--with-ipv6 \
	--with-http_perl_module=dynamic \
	--with-mail \
	--with-pcre \
	--with-stream \
	$modules
# this is only passed to perl module being built and only overrides the
# default '-O' flag which anyways lowers optimizations (which we don't
# want)
%make_build OPTIMIZE="-fno-PIE"

%install
%make_install INSTALLDIRS=vendor

find %{buildroot} -type f -name .packlist -exec rm -f {} \;
find %{buildroot} -type f -name perllocal.pod -exec rm -f {} \;
find %{buildroot} -type f -empty -exec rm -f {} \;
find %{buildroot} -type f -exec chmod 0644 {} \;
find %{buildroot} -type f -name '*.so' -exec chmod 0755 {} \;
chmod 0755 %{buildroot}%{_sbindir}/nginx

install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/nginx.service
install -p -D -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -p -d -m 0755 %{buildroot}%{nginx_home_tmp}
install -p -d -m 0755 %{buildroot}%{nginx_logdir}
install -p -d -m 0755 %{buildroot}%{nginx_webroot}

install -p -m 0644 %{SOURCE100} %{SOURCE102} %{SOURCE103} %{SOURCE104} %{buildroot}%{nginx_webroot}

# add current version
perl -pi -e "s|_VERSION_|%{version}|g" %{buildroot}%{nginx_webroot}/index.html

# convert to UTF-8 all files that give warnings.
for textfile in CHANGES; do
	mv $textfile $textfile.old
	iconv --from-code ISO8859-1 --to-code UTF-8 --output $textfile $textfile.old
	rm -f $textfile.old
done

install -d %{buildroot}%{_mandir}/man8
install -m0644 man/*.8 %{buildroot}%{_mandir}/man8/

mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf
sed -i %{buildroot}%{_sysusersdir}/%{name}.conf \
	-e 's,@nginx_home@,%{nginx_home},g' \
	-e 's,@nginx_user@,%{nginx_user},g' \
	-e 's,@nginx_group@,%{nginx_group},g'
! grep -q '@' %{buildroot}%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14917 |21mr|nilfs-utils-2.2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name}
%define devname %mklibname %{name} -d

%define libnilfs %mklibname nilfs %{major}
%define libnilfscleaner %mklibname nilfscleaner %{major}
%define libnilfsgc %mklibname nilfsgc %{major}

%define _root_sbindir /sbin

Summary:	Tools for nilfs filesystem
Name:		nilfs-utils
Version:	2.2.8
Release:	1
License:	GPLv2+
Group:		System/Base
Source0:	https://github.com/nilfs-dev/nilfs-utils/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Url:		http://www.nilfs.org/en/index.html
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(mount)

%description
NILFS is a log-structured file system supporting versioning of the entire
file system and continuous snapshotting which allows users to even restore
files mistakenly overwritten or destroyed just a few seconds ago.

%files
%doc AUTHORS ChangeLog README
%config(noreplace) %{_sysconfdir}/nilfs_cleanerd.conf
%{_bindir}/*
%{_root_sbindir}/*
%{_sbindir}/*
%{_mandir}/man?/*.xz

#------------------------------------------------------------------------

%package -n %{libnilfs}
Summary:	The libnilfs library for %{name}
Group:		System/Base
License:	LGPLv2.1+
%rename		%{libname}
%rename		%{libname}0

%description -n %{libnilfs}
This package contains the libnilfs library needed to run programs dynamically
linked with %{name}.

%files -n %{libnilfs}
%{_libdir}/libnilfs.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libnilfscleaner}
Summary:	The libnilfscleaner library for %{name}
Group:		System/Base
License:	LGPLv2.1+
%rename		%{libname}
%rename		%{libname}0

%description -n %{libnilfscleaner}
This package contains the libnilfscleaner library needed to run programs
dynamically linked with %{name}.

%files -n %{libnilfscleaner}
%{_libdir}/libnilfscleaner.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libnilfsgc}
Summary:	The libnilfsgc library for %{name}
Group:		System/Base
License:	LGPLv2.1+
%rename		%{libname}
%rename		%{libname}0

%description -n %{libnilfsgc}
This package contains the libnilfsgc library needed to run programs dynamically
linked with %{name}.

%files -n %{libnilfsgc}
%{_libdir}/libnilfsgc.so.%{major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		System/Base
Requires:	%{name} = %{EVRD}
Requires:	%{libnilfs} = %{EVRD}
Requires:	%{libnilfsgc} = %{EVRD}
Requires:	%{libnilfscleaner} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_libdir}/libnilfs*.so
%{_includedir}/*.h

#------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fiv
%configure --disable-static
%make_build CC=%{__cc}

%install
%make_install LDCONFIG=/bin/true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14918 |21mr|nimbus-jose-jwt-5.12-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 6778b2d2c329

Name: nimbus-jose-jwt
Version: 5.12
Release: 5
Summary: Nimbus JOSE+JWT

License: ASL 2.0
URL: https://bitbucket.org/connect2id/nimbus-jose-jwt/wiki/Home
Source0: https://bitbucket.org/connect2id/%{name}/get/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.github.stephenc.jcip:jcip-annotations)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.minidev:json-smart)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: git-core
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Missing in Fedora:
# BuildRequires: mvn(org.bitbucket.b_c:jose4j)
# BuildRequires: mvn(net.jadler:jadler-all)
# Used in testing, dropping



%description
Java library for Javascript Object Signing and Encryption (JOSE)
and JSON Web Tokens (JWT)


%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.


%prep
%autosetup -n connect2id-%{name}-%{commit}
%pom_remove_dep net.jadler:jadler-all
%pom_remove_dep org.bitbucket.b_c:jose4j
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-javadoc-plugin
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin:2.9.1 . '
<configuration>
  <excludePackageNames>*.internal.*</excludePackageNames>
  <additionalparam>-Xdoclint:none</additionalparam>
</configuration>'

%build
%mvn_build -f


%install
%mvn_install

%files -f .mfiles
%license COPYRIGHT.txt
%license LICENSE.txt
%doc README.md
%doc SECURITY-CHANGELOG.txt
%doc CHANGELOG.txt

%files javadoc -f .mfiles-javadoc
%license COPYRIGHT.txt
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14919 |21mr|ninja-1.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A small build system with a focus on speed
Name:		ninja
Version:	1.11.1
Release:	1
License:	ASL 2.0
Group:		Development/Tools
Url:		http://martine.github.com/ninja/
Source0:	https://github.com/martine/ninja/archive/v%{version}.tar.gz
Source1:	%{name}.vim
Source2:	%{name}.macros
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	re2c
BuildRequires:	xsltproc
BuildRequires:	gtest-devel
Recommends:	%{name}-vim = %{EVRD}

%description
Ninja is a small build system with a focus on speed. It differs from other
build systems in two major respects: it is designed to have its input files
generated by a higher-level build system, and it is designed to run builds as
fast as possible.

%files
%doc COPYING doc/manual.html
%{_bindir}/ninja
%{_sysconfdir}/bash_completion.d/
%{_rpmmacrodir}/*%{name}*

#----------------------------------------------------------------------------

%package emacs
Summary:	Syntax highlighting etc. for Ninja files in emacs
Group:		Development/Tools
Recommends:	%{name} = %{EVRD}

%description emacs
Syntax highlighting etc. for Ninja files in emacs.

%files emacs
%{_datadir}/emacs/site-lisp/ninja-mode.el

#----------------------------------------------------------------------------

%package vim
Summary:	Syntax highlighting etc. for Ninja files in vim
Group:		Development/Tools
Recommends:	%{name} = %{EVRD}

%description vim
Syntax highlighting etc. for Ninja files in vim.

%files vim
%{_datadir}/vim/vimfiles/syntax/ninja.vim
%{_datadir}/vim/vimfiles/ftdetect/ninja.vim

#----------------------------------------------------------------------------

%package zsh
Summary:	Command line completion for Ninja in zsh
Group:		Development/Tools
Recommends:	%{name} = %{EVRD}

%description zsh
Command line completion for Ninja in zsh.

%files zsh
%{_datadir}/zsh/

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
CFLAGS="%{optflags}"
export LD="%{__ld}"
export CFLAGS
./configure.py --bootstrap
./ninja -v manual
./ninja -v ninja_test

%install
# TODO: Install ninja_syntax.py?
install -p -m 755 -d %{buildroot}%{_bindir}
install -p -m 755 ninja %{buildroot}%{_bindir}/

install -p -m 755 -d %{buildroot}%{_sysconfdir}/bash_completion.d
install -p -m 644 misc/bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/ninja-bash-completion

install -p -m 755 -d %{buildroot}%{_datadir}/emacs/site-lisp
install -p -m 644 misc/ninja-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/ninja-mode.el

install -p -m 755 -d %{buildroot}%{_datadir}/vim/vimfiles/syntax
install -p -m 644 misc/ninja.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/ninja.vim
install -p -m 755 -d %{buildroot}%{_datadir}/vim/vimfiles/ftdetect
install -p -m 644 %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/ninja.vim

install -p -m 755 -d %{buildroot}%{_datadir}/zsh/site-functions
install -p -m 644 misc/zsh-completion %{buildroot}%{_datadir}/zsh/site-functions/_ninja

%install_macro ninja %{SOURCE2}

%check
# workaround possible too low default limits
ulimit -n 2048
ulimit -u 2048

./ninja_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14920 |21mr|nload-0.7.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Ncurses network traffic and bandwidth monitor
Name:		nload
Version:	0.7.4
Release:	6
License:	GPLv2+
Group:		Monitoring
Url:		http://www.roland-riegel.de/nload/index.html?lang=en
Source0:	http://www.roland-riegel.de/nload/%{name}-%{version}.tar.gz
BuildRequires:	ncurses-devel

%description
nload is a console application which monitors network traffic and bandwidth
usage in real time. It visualizes the in- and outgoing traffic using two
graphs and provides additional info like total amount of transfered data and
min/max network usage.

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%{_mandir}/man1/nload*
%{_bindir}/nload

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-debug
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14921 |21mr|nlohmann_json-3.11.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define     debug_package %{nil}

Name:           nlohmann_json
Version:	3.11.3
Release:	1
Summary:        JSON for Modern C++
License:        MIT
Group:          Development/Java
URL:            https://nlohmann.github.io/json/
Source:         https://github.com/nlohmann/json/archive/v%{version}.tar.gz#/json-%{version}.tar.gz
Patch0:         nlohman_json-install-path.patch
BuildRequires:  cmake
BuildRequires:  pkgconfig

Requires:       stdc++-devel
Provides:       %{name}-devel = %{EVRD}

%description
Development files for a header-only library
to make JSON a first-class datatype for C++11

%prep
%autosetup -n json-%{version} -p1

%build
%cmake \
  -DJSON_BuildTests:BOOL=OFF \
  -DJSON_MultipleHeaders=ON

%make_build

%install
%make_install -C build

%files
%license LICENSE.MIT
%doc README.md
%{_includedir}/nlohmann
%dir %{_libdir}/cmake/nlohmann_json
%{_libdir}/cmake/nlohmann_json/nlohmann_jsonConfig.cmake
%{_libdir}/cmake/nlohmann_json/nlohmann_jsonConfigVersion.cmake
%{_libdir}/cmake/nlohmann_json/nlohmann_jsonTargets.cmake
%{_libdir}/pkgconfig/nlohmann_json.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14922 |21mr|nlopt-2.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major} 
%define devname %mklibname %{name} -d

%bcond_without python
%bcond_with octave
%bcond_with guile

Summary:	Library for nonlinear optimization
Name:		nlopt
Version:	2.7.1
Release:	1
License:	MIT and LGPL
Group:		Sciences/Mathematics
Url:		https://github.com/stevengj/nlopt
Source0:	https://github.com/stevengj/nlopt/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
%if %{with octave}
BuildRequires:	pkgconfig(octave)
%endif
%if %{with python}
BuildRequires:	python3-devel
BuildRequires:	python3-numpy
%endif
%if %{with guile}
BuildRequires:	pkgconfig(guile-3.0)
%endif
BuildRequires:	swig

%description
NLopt is a library for nonlinear local and global optimization, for
functions with and without gradient information.  It is designed as
as simple, unified interface and packaging of several free/open-source
nonlinear optimization libraries.
 
It features bindings for GNU Guile, Octave and Python.  This build has
been made with C++-support enabled.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries of NLopt
Group:		System/Libraries

%description -n %{libname}
NLopt is a free/open-source library for nonlinear optimization,
providing a common interface for a number of different free optimization
routines available online as well as original implementations of various
other algorithms.

%files -n %{libname}
%doc ChangeLog NEWS.md
%{_libdir}/libnlopt.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files of NLopt
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
NLopt is a free/open-source library for nonlinear optimization,
providing a common interface for a number of different free optimization
routines available online as well as original implementations of various
other algorithms.

This package contains development files of NLopt.


%files -n %{devname}
%{_includedir}/nlopt.f
%{_includedir}/nlopt.h
%{_includedir}/nlopt.hpp
%dir %{_libdir}/cmake/nlopt
%{_libdir}/cmake/nlopt/NLoptConfig.cmake
%{_libdir}/cmake/nlopt/NLoptConfigVersion.cmake
%{_libdir}/cmake/nlopt/NLoptLibraryDepends-release.cmake
%{_libdir}/cmake/nlopt/NLoptLibraryDepends.cmake
%{_libdir}/libnlopt.so
%{_libdir}/pkgconfig/nlopt.pc
%{_mandir}/man?/nlopt*.?.*

#------------------------------------------------------------------
%if %{with octave}
%package octave
Summary:	Octave bindings for %{name}
Requires:	octave
Requires:	%{libname} = %{EVRD}

%description octave
This package contains the Octave bindings for %{name}.

%files octave
%{_libdir}/octave/6.4.0/site/oct
%{_datadir}/octave/6.4.0/site/m/*.m
%endif
#------------------------------------------------------------------
%if %{with python}
%package -n python3-%{name}
Summary:	Python wrapper for %{name} 
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
NLopt is a free/open-source library for nonlinear optimization,
providing a common interface for a number of different free optimization
routines available online as well as original implementations of various
other algorithms.

This package contains python wrapper for NLopt.

%files -n python3-%{name}
%{python3_sitearch}/*.so*
%{python3_sitearch}/*.py*
%dir %{python3_sitearch}/__pycache__
%{python3_sitearch}/__pycache__/*.py*
%endif
#------------------------------------------------------------------
%if %{with guile}
%package -n guile
Summary:	Guile bindings for %{name}
Requires:	%{libname} = %{EVRD}

%description -n guile
This package contains Guile bindings for %{name}.

%files -n guile
%{_libdir}/guile/3.0/extensions/nlopt_guile.so
%{_datadir}/guile/site/3.0/nlopt.scm
%endif
#------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
    -DNLOPT_CXX=ON 			\
    -DNLOPT_PYTHON=ON			\
    -DPYTHON_EXECUTABLE=%{__python3}	\
    -DNLOPT_OCTAVE=ON			\
    -DNLOPT_MATLAB=ON			\
    -DNLOPT_GUILE=ON			\
    -DNLOPT_SWIG=ON			\
    -DBUILD_SHARED_LIBS=ON
%make

%install
%makeinstall_std -C build



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14923 |21mr|nmap-7.92-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Network exploration tool and security scanner
Name:		nmap
Version:	7.92
Release:	2
Epoch:		1
License:	GPLv2+
Group:		Networking/Other
Url:		http://nmap.org/
Source0:	https://nmap.org/dist/%{name}-%{version}.tar.bz2
Source1:	%{name}_icons.tar.bz2
Source2:	nmap.rpmlintrc
BuildRequires:	libpcap-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(openssl)

%description
Nmap is a utility for network exploration or security auditing. It supports
ping scanning (determine which hosts are up), many port scanning techniques
(determine what services the hosts are offering), and TCP/IP fingerprinting
(remote host operating system identification). Nmap also offers flexible target
and port specification, decoy scanning, determination of TCP sequence
predictability characteristics, sunRPC scanning, reverse-identd scanning, and
more.

%files -f %{name}.lang
%doc HACKING docs/README docs/nmap.usage.txt
%{_bindir}/%{name}
%{_bindir}/ncat
%{_bindir}/nping
%{_datadir}/%{name}
%{_datadir}/ncat
%{_mandir}/man1/nmap.*
%{_mandir}/man1/ncat.*
%{_mandir}/man1/nping.*

#----------------------------------------------------------------------------

%prep
%setup -q -a1

# lib64 fix
perl -pi -e "s|/lib\b|/%{_lib}|g" configure*

%build
%configure  --with-libpcap=yes --with-liblua=included \
  --without-zenmap --without-ndiff \
  --enable-dbus --with-libssh2=yes

%make_build

%install
unset PYTHONDONTWRITEBYTECODE
%make_install nmapdatadir=%{_datadir}/nmap STRIP=/bin/true

# cleanup
rm -f %{buildroot}%{_bindir}/uninstall_zenmap

%find_lang %{name} --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14924 |21mr|nodejs-20.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

# Reduce memory usage when linking
%ifarch %{ix86}
%global debugcflags -g1
%endif

Summary:	Evented Server-Side Javascript
Name:		nodejs
Version:	20.14.0
Release:	1
License:	BSD
Group:		Development/Other
Url:		http://nodejs.org
Source0:	http://nodejs.org/dist/v%{version}/node-v%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libuv)
BuildRequires:	pkgconfig(libnghttp2)
BuildRequires:	pkgconfig(libbrotlidec)
BuildRequires:	pkgconfig(libbrotlienc)
BuildRequires:	pkgconfig(zlib)
Provides:	npm = %{EVRD}
#this corresponds to the "engine" requirement in package.json
Provides:	nodejs(engine) = %{version}

%description
Node's goal is to provide an easy way to build scalable network programs.

%files
%doc LICENSE CHANGELOG.md CONTRIBUTING.md GOVERNANCE.md README.md
%{_bindir}/corepack
%{_bindir}/node
%{_bindir}/npm
%{_bindir}/npx
%{_prefix}/lib/node_modules
%{_mandir}/man1/node.*
%{_includedir}/node
%{_docdir}/node/*

#-----------------------------------------------------------------

%prep
%setup -qn node-v%{version}

%build
%set_build_flags
# OpenSSL 1.1 is needed but OpenSSL is 1.0 in older platforms
./configure \
	--prefix=%{_prefix} \
	--shared-libuv \
	--shared-nghttp2 \
	--shared-openssl \
	--with-intl=system-icu \
	--shared-brotli \
	--shared-cares \
	--shared-zlib

%make_build CC=%{__cc} CXX=%{__cxx}

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14925 |21mr|nodejs-packaging-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RPM Macros and Utilities for Node.js Packaging
Name:		nodejs-packaging
Version:	1.2
Release:	10
Group:		Development/Other
License:	MIT
Url:		https://abf.io/dsilakov/nodejs-packaging-rosa
Source0:	%{name}-rosa-%{version}.tar.xz
Patch0001:	0001-Verionize-python-shebang.patch
Requires:	nodejs
Requires:	rpm-mandriva-setup-build
Requires:	/usr/bin/python2
BuildArch:	noarch

%description
This package contains RPM macros and other utilities useful for packaging
Node.js modules and applications in RPM-based distributions.

%files
%doc LICENSE
%{_datadir}/node/multiver_modules
%{_rpmmacrodir}/*%{name}*
%{_rpmconfigdir}/nodejs*

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-rosa-%{version}

%build
#nothing to do

%install
install -Dpm0755 nodejs.prov %{buildroot}%{_rpmconfigdir}/nodejs.prov
install -pm0755 nodejs.req %{buildroot}%{_rpmconfigdir}/nodejs.req
install -pm0755 nodejs-symlink-deps %{buildroot}%{_rpmconfigdir}/nodejs-symlink-deps
install -pm0755 nodejs-fixdep %{buildroot}%{_rpmconfigdir}/nodejs-fixdep
install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules

# Use universal macro installation for both RPM 4 and RPM 5
%install_macro %{name} nodejs.macros

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14926 |21mr|noggit-0.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          noggit
Version:       0.7
Release:       8
Summary:       JSON streaming parser
License:       ASL 2.0
URL:           http://noggit.org/
Source0:       https://github.com/yonik/noggit/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Fast streaming JSON parser for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

find -name '*.class' -print -delete
find -name '*.jar' -print -delete

chmod 644 LICENSE.txt README.txt

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14927 |21mr|nomacs-3.17.2287-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}

Summary:	A fast and small image viewer
Name:		nomacs
Version:	3.17.2287
Release:	1
License:	GPLv3+
Group:		Graphics
Url:		http://www.nomacs.org
Source0:	https://github.com/nomacs/nomacs/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/nomacs/nomacs-plugins/archive/3.16.tar.gz?/%{name}-plugins-3.16.tar.gz
Patch0:		nomacs-3.17.2287-set-ru-default.patch
Patch1:		nomacs-3.17.2287-ru-hard-translate.patch
Patch2:		nomacs-3.17.2206-drop-use-gitversion.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(opencv)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(quazip)
Requires:	%{libname} = %{EVRD}

%description
This is a free image viewer small, fast and able to handle the most common
image formats including RAW images. Additionally it is possible to
synchronize multiple viewers. A synchronization of viewers running on the
same computer or via LAN is possible: it allows to compare images and spot
the differences (e.g. schemes of architects to show the progress).

%files
%doc README.md
%license LICENSE
%{_appdatadir}/org.%{name}.ImageLounge.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.%{name}.ImageLounge.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/org.%{name}.ImageLounge.svg
%{_mandir}/man1/%{name}.1.*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries needed by %{name}.

%files -n %{libname}
%{_libdir}/libnomacsCore.so.%{major}*

#-----------------------------------------------------------------------------

%package plugins
Summary:	Plugins for nomacs image viewer
Group:		Graphics

%description plugins
Some usefull plugins for nomacs:
- Affine transformations
- RGB image from greyscales
- Fake miniature filter
- Page extractions
- Painting

%files plugins
%license ImageLounge/license/*
%{_libdir}/%{name}-plugins/

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1
cp -rf nomacs-plugins-*/* ImageLounge/plugins/
sed -i "s:lib/nomacs-plugins:lib\${LIB_SUFFIX}/nomacs-plugins:" ImageLounge/plugins/cmake/Utils.cmake
sed -i "s:CMAKE_MINIMUM_REQUIRED(VERSION 2.8):CMAKE_MINIMUM_REQUIRED(VERSION 2.8.12):" ImageLounge/plugins/CMakeLists.txt

rm -f ImageLounge/src/themes/System.css
sed -i "/^@@$/d" ImageLounge/src/themes/*.css

%build
pushd ImageLounge
mkdir -p build/ImageLounge
%cmake_qt5 \
	-DCMAKE_BUILD_TYPE=Release	\
	-DENABLE_HEIF=ON		\
	-DENABLE_OPENCV=ON		\
	-DENABLE_QT_DEBUG=OFF		\
	-DENABLE_RAW=ON			\
	-DENABLE_TIFF=ON		\
	-DENABLE_TRANSLATIONS=ON	\
	-DQUAZIP_INCLUDE_DIR=%{_includedir}/quazip	\
	-DUSE_SYSTEM_QUAZIP=ON		\
	-DUSE_SYSTEM_WEBP=ON
%make
popd

%install
pushd ImageLounge
%makeinstall_std -C build
popd

# No devel package: no need of the symlinks below
rm -f %{buildroot}%{_libdir}/libnomacsCore.so
rm -rf %{buildroot}%{_prefix}/lib/debug

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14928 |21mr|nom-tam-fits-1.15.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          nom-tam-fits
Version:       1.15.2
Release:       1
Summary:       Java library for reading and writing FITS files
License:       Public Domain
URL:           http://nom-tam-fits.github.io/nom-tam-fits/
Source0:       https://github.com/nom-tam-fits/nom-tam-fits/archive/%{name}-%{version}.tar.gz
Patch0:        0001-Skip-tests-if-we-cannot-download-images.patch

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.findbugs:annotations)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-compress)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
BuildRequires: mvn(org.openjdk.jmh:jmh-generator-annprocess)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
FITS (Flexible Image Transport System) is the standard data format in
astronomy used for the transport, analysis, and archival storage of
scientific data sets.

This library provides efficient I/O for FITS images and binary
tables. All basic FITS formats and GZIP compressed files are
supported.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%autosetup -n %{name}-%{name}-%{version} -p1
rm -r src/main/fpack

# com.github.stephenc.wagon:wagon-gitsite:0.5
%pom_xpath_remove pom:build/pom:extensions
# Disable classpath in MANIFEST file
%pom_xpath_set pom:addClasspath false

# Unwanted tasks
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-source-plugin

# Not available plugins
%pom_remove_plugin com.googlecode.maven-java-formatter-plugin:maven-java-formatter-plugin
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%pom_remove_plugin org.codehaus.mojo:license-maven-plugin
%pom_remove_plugin org.eluder.coveralls:coveralls-maven-plugin
%pom_remove_plugin org.tinyjee.dim:doxia-include-macro
%pom_remove_plugin :maven-pdf-plugin
# Use doxia-include-macro
%pom_remove_plugin :maven-site-plugin

# Not available test dep com.nanohttpd:nanohttpd-webserver:2.1.1
%pom_remove_dep :nanohttpd-webserver
# rm src/test/java/nom/tam/fits/test/CompressTest.java
# Error occurred during initialization of VM
# Could not reserve enough space for 2097152KB object heap
%pom_xpath_remove pom:argLine
# rm src/test/java/nom/tam/fits/compression/ReadWriteProvidedCompressedImageTest.java
# UnsupportedOperationException: could not get blackbox image from anywhere (use web connection)
# rm src/test/java/nom/tam/fits/test/UserProvidedTest.java

# https://bugzilla.redhat.com/show_bug.cgi?id=1736095
%pom_remove_plugin :maven-checkstyle-plugin

%pom_remove_plugin :maven-compiler-plugin
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin  . "
<executions>
  <execution>
    <id>default-compile</id>
    <phase>compile</phase>
    <configuration>
      <source>1.8</source>
      <target>1.8</target>
    </configuration>
    <goals>
      <goal>compile</goal>
    </goals>
  </execution>
  <execution>
    <id>default-testCompile</id>
    <phase>test-compile</phase>
    <configuration>
      <testExcludes>
        <exclude>**/CompressTest.*</exclude>
        <exclude>**/ReadWriteProvidedCompressedImageTest.*</exclude>
        <exclude>**/UserProvidedTest.*</exclude>
      </testExcludes>
    </configuration>
    <goals>
      <goal>testCompile</goal>
    </goals>
  </execution>
</executions>"

%mvn_file :%{name} %{name} fits

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc target/NOTE.* README.md
%license src/license/publicdomain/license.txt

%files javadoc -f .mfiles-javadoc
%license src/license/publicdomain/license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14929 |21mr|normalize-0.7.7-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# --with xmms, default off
%bcond_with	xmms

Summary:	A tool for adjusting the volume of wave files
Name:		normalize
Version:	0.7.7
Release:	20
Group:		Sound
License:	GPLv2+
Url:		http://normalize.nongnu.org/
Source0:	http://savannah.nongnu.org/download/%{name}/%{name}-%{version}.tar.bz2
Patch0:		compressed-wav-files.dpatch
Patch1:		fix-flac.dpatch
Patch2:		normalize-0.7.7-audiofile-pkgconfig.patch
Patch3:		%{name}-%{version}-m4.patch
Patch4:		normalize-automake-1.13.patch
BuildRequires:	gettext-devel
%if %{with xmms}
BuildRequires:	xmms-devel
%endif
BuildRequires:	pkgconfig(audiofile)
BuildRequires:	pkgconfig(mad)

%description
normalize is an overly complicated tool for adjusting the volume of
wave files to a standard volume level.  This is useful for things like
creating mp3 mixes, where different recording levels on different
albums can cause the volume to vary greatly from song to song.

%files -f %{name}.lang
%doc README NEWS THANKS TODO
%{_bindir}/*
%{_mandir}/man1/normalize*
%if %{with xmms}
%{_libdir}/xmms/Effect/librva.so
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
touch ./AUTHORS ./ABOUT-NLS ./ChangeLog
autoreconf -fi

%build
%configure \
	--with-audiofile \
%if %{with xmms}
	--enable-xmms
%else
	--disable-xmms
%endif
perl -pi -e 's/mkinstalldirs\s+=.*/mkinstalldirs = mkdir -p /' po/Makefile
%make

%install
%makeinstall_std
%find_lang %{name}
rm -f %{buildroot}%{_libdir}/xmms/Effect/librva.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14930 |21mr|nosync-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Preload library for disabling file's content synchronization
Name:		nosync
Version:	1.1
Release:	2
License:	ASL 2.0
Group:		Networking/Other
Url:		http://github.com/kjn/%{name}
Source0:	http://github.com/kjn/%{name}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	make

%description
nosync is a small preload library that can be used to disable
synchronization of file's content with storage devices on GNU/Linux.
It works by overriding implementations of certain standard functions
like fsync or open.

%files
%doc AUTHORS README.md LICENSE NOTICE
#%%license LICENSE NOTICE
%{_libdir}/%{name}

#--------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%make CFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_libdir}/nosync
install -p nosync.so %{buildroot}%{_libdir}/nosync/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14931 |21mr|nota-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Text editor for Plasma Mobile
Name:		nota
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
URL:		https://invent.kde.org/maui/nota/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		nota-russian_locale.patch
Patch1:		nota-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	mauikit-devel
BuildRequires:	mauikit-filebrowsing-devel
Requires: mauikit-texteditor

%description
Text editor for Plasma Mobile

%files -f %{name}.lang
%{_kde5_bindir}/nota
%{_kde5_applicationsdir}/org.kde.nota.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/nota.svg
%{_appdatadir}/org.kde.nota.metainfo.xml

#--------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14932 |21mr|notification-daemon-3.20.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Notification Daemon
Name:		notification-daemon
Version:	3.20.0
Release:	15
License:	GPLv2+
Group:		System/Servers
Url:		https://download.gnome.org/sources/notification-daemon
Source0:	https://download.gnome.org/sources/notification-daemon/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(x11)
Requires(post,preun):	GConf2
Recommends:	notification-daemon-engine-nodoka
Provides:	virtual-notification-daemon

%description
A daemon that displays passive pop-up notifications as per the
Desktop Notifications spec (http://galago.info/specs/notification/index.php).

%files -f %{name}.lang
%doc AUTHORS ChangeLog README
%{_libexecdir}/%{name}
%{_datadir}/applications/*.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure --disable-static
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14933 |21mr|novnc-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	VNC client using HTML5 (Web Sockets, Canvas) with encryption support
Name:		novnc
Version:	1.2.0
Release:	1
License:	GPLv3
Group:		Networking/Remote access
URL:		https://github.com/kanaka/noVNC
Source0:	https://github.com/kanaka/noVNC/archive/v%{version}.tar.gz?/noVNC-%{version}.tar.gz
BuildRequires:	python3-devel
Requires:	python3-websockify
BuildArch:	noarch

%description
Websocket implementation of VNC client

%prep
%setup -qn noVNC-%{version}
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" .

%build


%install
mkdir -p %{buildroot}/%{_datadir}/%{name}/
cp -r * %{buildroot}/%{_datadir}/%{name}/
# provide an index file to prevent default directory browsing
install -m 444 vnc.html %{buildroot}/%{_datadir}/%{name}/index.html
# install a copy of the new vnc_lite.html page as the old <1.0.0 vnc_auto.html page
install -m 444 vnc_lite.html %{buildroot}/%{_datadir}/%{name}/vnc_auto.html
# FIXME(lyarwood): launch.sh fails to find the installed version of websockify
# Addressed by https://github.com/novnc/noVNC/pull/1259
mkdir -p %{buildroot}/%{_bindir}/
install utils/launch.sh  %{buildroot}/%{_bindir}/%{name}_server

%files
%doc README.md LICENSE.txt
%{_datadir}/%{name}
%{_bindir}/%{name}_server

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14934 |21mr|npth-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	New Portable Threads Library
Name:		npth
Version:	1.6
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		git://git.gnupg.org/npth.git
Source0:	ftp://ftp.gnupg.org/gcrypt/npth/%{name}-%{version}.tar.bz2

%description
nPth is a non-preemptive threads implementation using an API very similar
to the one known from GNU Pth.  It has been designed as a replacement of
GNU Pth for non-ancient operating systems.  In contrast to GNU Pth is is
based on the system's standard threads implementation.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	New Portable Threads Library
Group:		System/Libraries

%description -n %{libname}
nPth is a non-preemptive threads implementation using an API very similar
to the one known from GNU Pth.  It has been designed as a replacement of
GNU Pth for non-ancient operating systems.  In contrast to GNU Pth is is
based on the system's standard threads implementation.

This package provides the main %{name} library.

%files -n %{libname}
/%{_lib}/libnpth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	New Portable Threads Library (Headers and Static Libs)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
nPth is a non-preemptive threads implementation using an API very similar
to the one known from GNU Pth.  It has been designed as a replacement of
GNU Pth for non-ancient operating systems.  In contrast to GNU Pth is is
based on the system's standard threads implementation.

This package provides all necessary files to develop or compile any
applications or libraries that use %{name} library.

%files -n %{devname}
%doc AUTHORS ChangeLog NEWS README
%{_bindir}/npth-config
%{_datadir}/aclocal/npth.m4
%{_includedir}/npth.h
%{_libdir}/libnpth.so

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std
mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libnpth.so.%{major}* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libnpth.so.%{major}.*.* %{buildroot}%{_libdir}/libnpth.so

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14935 |21mr|nslint-2.1a6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A DNS lint checker
Name:		nslint
Version:	2.1a6
Release:	13
License:	BSD
Group:		Networking/Other
Source:		ftp://ftp.ee.lbl.gov/%{name}-%{version}.tar.bz2
Patch:		%{name}-owner.patch

%description
Perform consistency checks on DNS files.

%prep
%setup -q
%patch -p1

%build
%configure
%make

%install
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_mandir}/man8
%makeinstall_std install-man
chmod 0755 %{buildroot}%{_bindir}/%{name}

%files
%doc README CHANGES
%{_bindir}/%{name}
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14936 |21mr|nspr-4.34-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major_nspr 4
%define libname %mklibname nspr %{major_nspr}
%define devname %mklibname nspr -d

Summary:	Netscape Portable Runtime
Name:		nspr
Version:	4.34
Release:	1
Epoch:		2
License:	MPL or GPLv2+ or LGPLv2+
Group:		System/Libraries
Url:		http://www.mozilla.org/projects/nspr/
Source0:	https://archive.mozilla.org/pub/nspr/releases/v%{version}/src/%{name}-%{version}.tar.gz
Source1:	nspr.pc.in
Source2:	nspr-config-vars.in
Patch1:		nspr-config-pc.patch

%description
Virtual package, not built.

#------------------------------------------------------------

%package -n %{libname}
Summary:	Netscape Portable Runtime
Group:		System/Libraries
Provides:	nspr = %{EVRD}
%rename	mozilla-nspr

%description -n %{libname}
NSPR provides platform independence for non-GUI operating system
facilities. These facilities include threads, thread synchronization,
normal file and network I/O, interval timing and calendar time, basic
memory management (malloc and free) and shared library linking.

%files -n %{libname}
%doc nspr/LICENSE
/%{_lib}/libnspr4.so
/%{_lib}/libplc4.so
/%{_lib}/libplds4.so

#------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for the Netscape Portable Runtime
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	nspr-devel = %{EVRD}
Provides:	libnspr-devel = %{EVRD}
Conflicts:	%{libname} < 2:4.7.3-3
%rename mozilla-nspr-devel
%rename %{libname}-devel

%description -n %{devname}
Header files for doing development with the Netscape Portable Runtime.

%files -n %{devname}
%doc nspr/LICENSE
%{_libdir}/libnspr4.so
%{_libdir}/libplc4.so
%{_libdir}/libplds4.so
%{_includedir}/nspr4
%{_libdir}/pkgconfig/nspr.pc
%{_bindir}/nspr-config

#------------------------------------------------------------

%prep
%setup -q

chmod -R a+r *
find . -name '*.h' -executable -exec chmod -x {} \;

# Original nspr-config is not suitable for our distribution,
# because on different platforms it contains different dynamic content.
# Therefore we produce an adjusted copy of nspr-config that will be
# identical on all platforms.
# However, we need to use original nspr-config to produce some variables
# that go into nspr.pc for pkg-config.

cp ./nspr/config/nspr-config.in ./nspr/config/nspr-config-pc.in
%patch1 -p0

# Remove the libnspr4.a installation because it leads to an error on e2k
sed -i 's|TARGETS\s\+=\s\+\$(LIBRARY)|TARGETS =|' ./nspr/config/rules.mk

%build
%config_update
%setup_compile_flags

# (tpg) don't use macro here
./nspr/configure \
	--build=%{_target_platform} \
	--host=%{_host} \
	--target=%{_target_platform} \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--includedir=%{_includedir}/nspr4 \
%if %rpm4
%if %{__isa_bits} == 64
	--enable-64bit \
%endif
%else
%ifarch x86_64 ppc64 ia64 s390x sparc64 aarch64 riscv64 %{e2k}
	--enable-64bit \
%endif
%endif
	--enable-optimize="-O2" \
	--disable-debug \
	--enable-ipv6 \
	--with-pthreads \
	--with-mozilla

%make_build

%install
%make_install

NSPR_LIBS=`./config/nspr-config --libs`
NSPR_CFLAGS=`./config/nspr-config --cflags`
NSPR_VERSION=`./config/nspr-config --version`
mkdir -p %{buildroot}/%{_libdir}/pkgconfig

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}/%{_lib}

# Get rid of the things we don't want installed (per upstream)
rm -rf \
	%{buildroot}%{_bindir}/compile-et.pl \
	%{buildroot}%{_bindir}/prerr.properties \
	%{buildroot}%{_libdir}/libnspr4.a \
	%{buildroot}%{_libdir}/libplc4.a \
	%{buildroot}%{_libdir}/libplds4.a \
	%{buildroot}%{_datadir}/aclocal/nspr.m4 \
	%{buildroot}%{_includedir}/nspr4/md

# nb: those symlinks helps having devel(xxx) provides (through find-provides)
for file in libnspr4.so libplc4.so libplds4.so
do
	mv -f %{buildroot}%{_libdir}/$file %{buildroot}/%{_lib}/$file
	ln -sf ../../%{_lib}/$file %{buildroot}%{_libdir}/$file
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14937 |21mr|nss-3.78-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without lib
%bcond_with cross_compiling
%define url_ver %(echo %{version}| sed -e "s|\\.|_|g")

# Excluding devel packages from nss libs
# libraries are named in a non standard way,
# all really devel ones are in /usr/lib64
%define __develgen_exclude_path ^/%{_lib}/.*$

# (tpg) WARNING !!!
# When you bump major, please make sure you bump "local major = 3" in %post section for lua script
%define major 3
%define libname %mklibname %{name} %{major}
%define libfreebl %mklibname freebl %{major}
%define devname %mklibname -d %{name}
%define sdevname %mklibname -d -s %{name}
%define _disable_lto 1

%global optflags %{optflags} -O3

# this seems fragile, so require the exact version or later (#58754)
%define sqlite3_version %(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
%define nspr_version %(pkg-config --modversion nspr &>/dev/null && pkg-config --modversion nspr 2>/dev/null || echo 0)

%define build_empty 0
%{?_with_empty:   %{expand: %%global build_empty 1}}
%{?_without_empty:   %{expand: %%global build_empty 0}}

Summary:	Network Security Services
Name:		nss
Epoch:		2
Version:	3.78
Release:	3
Group:		System/Libraries
License:	MPL or GPLv2+ or LGPLv2+
Url:		http://www.mozilla.org/projects/security/pki/nss/index.html
Source0:	https://ftp.mozilla.org/pub/security/nss/releases/NSS_%{url_ver}_RTM/src/nss-%{version}.tar.gz
# pkgconfig file templates and other extras from Fedora
Source1:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-util.pc.in
Source2:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-util-config.in
Source3:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-softokn.pc.in
Source4:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-softokn-config.in
Source6:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-softokn-dracut-module-setup.sh
Source7:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-softokn-dracut.conf
Source8:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss.pc.in
Source9:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-config.in
Source10:	blank-cert8.db
Source11:	blank-key3.db
Source12:	blank-secmod.db
Source15:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/system-pkcs11.txt
Source16:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/setup-nsssysinit.sh
Source20:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-config.xml
Source21:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/setup-nsssysinit.xml
Source22:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/pkcs11.txt.xml
Source28:	https://src.fedoraproject.org/rpms/nss/raw/rawhide/f/nss-p11-kit.config
# https://www.verisign.com/support/verisign-intermediate-ca/secure-site-intermediate/index.html
# converted from PEM to DER format with openssl command:
# openssl x509 -in cert.pem -inform PEM -outform DER -out cert.der
# this way we can avoid a buildrequires for openssl
Source100:	verisign-class-3-secure-server-ca.der
# Brasilian government certificate
# verified in person with a government official
Source101:	https://github.com/demoiselle/certificate/raw/master/impl/ca-icp-brasil/src/main/resources/trustedca/CertificadoACRaiz.crt
# From Fedora
Patch0:		add-relro-linker-option.patch
Patch1:		renegotiate-transitional.patch
Patch2:		nss-539183.patch
Patch3:		utilwrap-include-templates.patch
Patch4:		nss-skip-bltest-and-fipstest.patch
Patch5:		iquote.patch
Patch8:		nss-skip-util-gtest.patch
# Our own

BuildRequires:	rootcerts >= 1:20120218.00
BuildRequires:	zip
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	p11-kit

# compat with RH/Fedora
Provides:              nss-tools = %{EVRD}
# compat with openSUSE
Provides:              mozilla-nss = %{EVRD}

%description
Network Security Services (NSS) is a set of libraries designed to
support cross-platform development of security-enabled client and server
applications. Applications built with NSS can support SSL v2 and v3,
TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3 certificates, and
other security standards. For detailed information on standards supported, see
http://www.mozilla.org/projects/security/pki/nss/overview.html.
%if %{without lib}

Note: This package currently contains the NSS binaries only. The
libraries have been not been included due to conflicts with the Mozilla
libraries.
%endif

%files
%dir %{_sysconfdir}/pki/nssdb
%config(noreplace) %{_sysconfdir}/pki/nssdb/cert8.db
%config(noreplace) %{_sysconfdir}/pki/nssdb/key3.db
%config(noreplace) %{_sysconfdir}/pki/nssdb/secmod.db
#nss supported bins
%attr(0755,root,root) %{_bindir}/certutil
%attr(0755,root,root) %{_bindir}/cmsutil
%attr(0755,root,root) %{_bindir}/crlutil
%attr(0755,root,root) %{_bindir}/modutil
%attr(0755,root,root) %{_bindir}/nss-policy-check
%attr(0755,root,root) %{_bindir}/pk12util
%attr(0755,root,root) %{_bindir}/signver
%attr(0755,root,root) %{_bindir}/ssltap
%attr(0755,root,root) %{_bindir}/sdbthreadtst
#debian-additional
%attr(0755,root,root) %{_bindir}/addbuiltin
%attr(0755,root,root) %{_bindir}/chktest
%attr(0755,root,root) %{_bindir}/dbtest
%attr(0755,root,root) %{_bindir}/derdump
%attr(0755,root,root) %{_bindir}/httpserv
%attr(0755,root,root) %{_bindir}/ocspclnt
%attr(0755,root,root) %{_bindir}/p7content
%attr(0755,root,root) %{_bindir}/p7env
%attr(0755,root,root) %{_bindir}/p7sign
%attr(0755,root,root) %{_bindir}/p7verify
%attr(0755,root,root) %{_bindir}/pk1sign
%attr(0755,root,root) %{_bindir}/pp
%attr(0755,root,root) %{_bindir}/pwdecrypt
%attr(0755,root,root) %{_bindir}/rsaperf
%attr(0755,root,root) %{_bindir}/selfserv
%attr(0755,root,root) %{_bindir}/signtool
%attr(0755,root,root) %{_bindir}/strsclnt
%attr(0755,root,root) %{_bindir}/symkeyutil
%attr(0755,root,root) %{_bindir}/tstclnt
%attr(0755,root,root) %{_bindir}/vfychain
%attr(0755,root,root) %{_bindir}/vfyserv
%attr(0755,root,root) %{_bindir}/validation

#-------------------------------------------------------------------------

%package unsupported-tools
Summary:	Network Security Services - Examples
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{name} < 1:3.44-2

%description unsupported-tools
This package contains additional unsupported tools
for ${name}.

%files unsupported-tools
#unsupported
%attr(0755,root,root) %{_bindir}/atob
%attr(0755,root,root) %{_bindir}/baddbdir
%attr(0755,root,root) %{_bindir}/bltest
%attr(0755,root,root) %{_bindir}/btoa
%attr(0755,root,root) %{_bindir}/conflict
%attr(0755,root,root) %{_bindir}/crmftest
%attr(0755,root,root) %{_bindir}/dertimetest
%attr(0755,root,root) %{_bindir}/digest
%attr(0755,root,root) %{_bindir}/ecperf
%attr(0755,root,root) %{_bindir}/encodeinttest
%attr(0755,root,root) %{_bindir}/fbectest
%attr(0755,root,root) %{_bindir}/fipstest
%attr(0755,root,root) %{_bindir}/listsuites
%attr(0755,root,root) %{_bindir}/lowhashtest
%attr(0755,root,root) %{_bindir}/makepqg
%attr(0755,root,root) %{_bindir}/mangle
%attr(0755,root,root) %{_bindir}/multinit
%attr(0755,root,root) %{_bindir}/nonspr10
%attr(0755,root,root) %{_bindir}/ocspresp
%attr(0755,root,root) %{_bindir}/oidcalc
%attr(0755,root,root) %{_bindir}/pk11ectest
%attr(0755,root,root) %{_bindir}/pk11gcmtest
%attr(0755,root,root) %{_bindir}/pk11importtest
%attr(0755,root,root) %{_bindir}/pk11mode
%attr(0755,root,root) %{_bindir}/pkix-errcodes
%attr(0755,root,root) %{_bindir}/remtest
%attr(0755,root,root) %{_bindir}/rsapoptst
%attr(0755,root,root) %{_bindir}/sdrtest
%attr(0755,root,root) %{_bindir}/secmodtest
%attr(0755,root,root) %{_bindir}/smime

#-------------------------------------------------------------------------

%package examples
Summary:	Network Security Services - Examples
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Conflicts:	%{name} < 1:3.44-2

%description examples
This package contains the bltest, modutil, signtool, signver,
and ssltap examples for ${name}.

%files examples
%{_datadir}/%{name}/*

#-------------------------------------------------------------------------

%package shlibsign
Summary:	Network Security Services - shlibsign
Group:		System/Libraries
%if %{with lib}
Requires:	%{libname}
%endif

%description shlibsign
This package contains the binary shlibsign needed by libfreebl3
and libsoftokn3.

%files shlibsign
%attr(0755,root,root) %{_bindir}/shlibsign

#-------------------------------------------------------------------------

%if %{with lib}
%package -n %{libname}
Summary:	Network Security Services (NSS)
Group:		System/Libraries
Requires:	p11-kit-trust
# compat with Fedora/RH
Provides: nss-util = %{EVRD}

%description -n %{libname}
This package contains the shared libraries libnss3, libnssdbm3,
libnssutil3, libsmime3, and libssl3.

%files -n %{libname}
/%{_lib}/libnss%{major}.so
%if %{build_empty}
/%{_lib}/libnssckbi_empty.so
%endif
/%{_lib}/libnssutil%{major}.so
/%{_lib}/libnssdbm%{major}.so
/%{_lib}/libsmime%{major}.so
/%{_lib}/libssl%{major}.so
/%{_lib}/p11-kit-trust.so

%post -n %{libname} -p <lua>
-- (tpg) execute only on install
if arg[2] == "0" then
-- variable definitions
-- make sure it meets %{major} from spec file
local major = 3
local f1 = "libsoftokn" .. major .. ".chk"
local f2 = "libfreebl" .. major .. ".chk"
local f3 = "libfreeblpriv" .. major .. ".chk"

-- check if we are 64bit
	libcheck = posix.stat("/lib64")
	if libcheck then
		libpath = "/lib64"
	else
		libpath = "/lib"
	end

-- list of files to iterate
	files = { f1, f2, f3 }

-- iterate through all the files
	for file in list_iter(files) do
		local f = io.open(libpath .. "/" .. file, "w")
		f:write("")
		f:close()
		posix.chown(libpath .. "/" .. file, "root", "root")
		posix.chmod(libpath .. "/" .. file, "0644")
		posix.exec(shlibsign, "-i", libpath .. "/" .. file)
	end
end

%package -n %{libfreebl}
Summary:	Network Security Services (NSS)
Group:		System/Libraries
Requires(post): nss-shlibsign

%description -n %{libfreebl}
This package contains the shared libraries libfreebl3 and libsoftokn3.

%files -n %{libfreebl}
/%{_lib}/libfreebl%{major}.so
/%{_lib}/libfreeblpriv%{major}.so
/%{_lib}/libsoftokn%{major}.so
/%{_lib}/libnssckbi.so

%defattr(0644,root,root,0755)
%ghost /%{_lib}/libfreebl%{major}.chk
%ghost /%{_lib}/libsoftokn%{major}.chk
%if %rpm4
%ghost /%{_lib}/libfreeblpriv%{major}.chk
%endif

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Network Security Services (NSS) - development files
Group:		Development/C++
Requires:	%{libname} >= %{EVRD}
Requires:	%{libfreebl} >= %{EVRD}
Provides:	nss-devel = %{EVRD}
Provides:	nss-softokn-freebl-devel = %{EVRD}
%rename %{libname}-devel

%description -n %{devname}
Header files to doing development with Network Security Services.

%files -n %{devname}
%attr(0755,root,root) %{_bindir}/nss-config
%_libdir/*.so
%{_includedir}/nss
%{_libdir}/pkgconfig/nss.pc
%{_libdir}/pkgconfig/nss-softokn.pc
%{_libdir}/pkgconfig/nss-util.pc
%{_libdir}/libsoftokn%{major}.chk
%{_libdir}/libfreebl%{major}.chk

#-------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Network Security Services (NSS) - static libraries
Group:		Development/C++
Requires:	%{libname} >= %{EVRD}
Requires:	%{devname} >= %{EVRD}
Provides:	nss-static-devel = %{EVRD}
Conflicts:	libopenssl-static-devel
%rename %{libname}-static-devel

%description -n %{sdevname}
Static libraries for doing development with Network Security Services.

%files -n %{sdevname}
%{_libdir}/libcrmf.a
%{_libdir}/libnss.a
%{_libdir}/libnssutil.a
%{_libdir}/libnssb.a
%{_libdir}/libnssckfw.a
%{_libdir}/libsmime.a
%{_libdir}/libssl.a
%{_libdir}/libfreebl.a
%endif

#-------------------------------------------------------------------------

%prep
%autosetup -p0

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;
find . -name '*.h' -executable -exec chmod -x {} \;
find . -name '*.c' -executable -exec chmod -x {} \;

# remove hardcoded gcc
sed -i 's!gcc!%{__cc}!g' nss/coreconf/Linux.mk

# make 100% sure we don't pull in the internal copy of sqlite
rm nss/lib/sqlite/*.{c,h}

%build
%serverbuild
%setup_compile_flags
export CC=%{__cc}
export BUILD_OPT=1
export OPTIMIZER="%{optflags}"
export XCFLAGS="%{optflags} -Wno-error"
export ARCHFLAG="$LDFLAGS"
export LIBDIR=%{_libdir}
export USE_SYSTEM_ZLIB=1
export ZLIB_LIBS="-lz"
export PKG_CONFIG_ALLOW_SYSTEM_LIBS=1
export PKG_CONFIG_ALLOW_SYSTEM_CFLAGS=1
export NSPR_INCLUDE_DIR=`%{_bindir}/pkg-config --cflags-only-I nspr | sed 's/-I//'`
export NSPR_LIB_DIR=`%{_bindir}/pkg-config --libs-only-L nspr | sed 's/-L//'`
export MOZILLA_CLIENT=1
export NSS_USE_SYSTEM_SQLITE=1
export NSS_ENABLE_ECC=1
export MAKE_FLAGS="BUILD_OPT=1 NSS_ENABLE_ECC=1"
export NSS_ENABLE_TLS_1_3=1

# external tests are causing build problems because they access ssl internal types
# TODO: Investigate as there may be a better solution
export NSS_DISABLE_GTESTS=1

%if %{build_empty}
# (oe) the "trust no one" scenario, it goes like:
# 1. mv /%{_lib}/libnssckbi.so /%{_lib}/libnssckbi.so.BAK
# 2. mv /%{_lib}/libnssckbi_empty.so /%{_lib}/libnssckbi.so
# 3. restart ff/tb
# it has to be done manually for now, but at least we have a way for
# users to quickly mitigate future problems, or whatever :-)

pushd nss/lib/ckfw/builtins
perl ./certdata.perl /etc/pki/tls/mozilla/certdata.txt
popd
%endif

%if %{with cross_compiling}
	# Compile tools used at build time (nsinstall) in native
	# mode before setting up the environment for crosscompiling
	export USE_64=1
	make -j1 -C ./nss all
        make -j1 -C ./nss latest

	CPU_ARCH="%_target_cpu"
	if echo $CPU_ARCH |grep -qE '(i.86|pentium.|athlon)'; then
		CPU_ARCH=x86
	fi
	export CPU_ARCH
%endif

export NATIVE_CC=%{__cc}
export TARGETCC="%{__cc}"
export TARGETCCC="%{__cxx}"
export TARGETRANLIB="%{__ranlib}"
%ifarch %{x86_64} ppc64 ia64 s390x aarch64 riscv64 %{e2k}
export USE_64=1
%else
unset USE_64 || :
%endif

# Parallel is broken as of 3.11.4 :(
#make -j1 -C ./nss/coreconf ./nss/lib/dbm ./nss \
#	TARGETCC="$TARGETCC" \
#	TARGETCCC="$TARGETCCC" \
#	TARGETRANLIB="$TARGETRANLIB" \
#	AR="%__ar cr \"\$@\"" \
#%if %cross_compiling
#	CPU_ARCH="$CPU_ARCH" \
#%endif
#%if %with %{cross_compiling}
#buildflags="TARGETCC='$TARGETCC' TARGETCCC='$TARGETCCC' TARGETRANLIB='$TARGETRANLIB' AR='%__ar" CPU_ARCH="$CPU_ARCH"
#%else
#buildflags="TARGETCC='$TARGETCC' TARGETCCC='$TARGETCCC' TARGETRANLIB='$TARGETRANLIB' AR='%__ar"
#%endif
%make_build -j1 -C ./nss all
%make_build -j1 -C ./nss latest

%if %{build_empty}
# tuck away the empty libnssckbi.so library
cp -p nss/lib/ckfw/builtins/Linux*/libnssckbi.so libnssckbi_empty.so
%endif

# install new Verisign intermediate certificate
# http://qa.mandriva.com/show_bug.cgi?id=29612
# use built addbuildin command to avoid having
# a buildrequires for nss
ADDBUILTIN=$(%{_bindir}/find . -type f -name addbuiltin)
if [ -z "$ADDBUILTIN" ]; then
    exit 1
fi
ADDBUILTIN="$PWD/$ADDBUILTIN"
OLD="$LD_LIBRARY_PATH"
libpath=`%{_bindir}/find ./dist/ -name "Linux*.*" -type d`
# to use the built libraries instead of requiring nss
# again as buildrequires
export LD_LIBRARY_PATH="$PWD/$libpath/lib"

pushd nss/lib/ckfw/builtins

# (oe) for reference:
# *ALL* of the root CA certs are hard coded into the libnssckbi.so library.
# So, for Mandriva we can add/remove certs easily in the rootcerts package. Please
# checkout and examine the rootcerts package.
# Once this has been done and the new rootcerts package has been installed this
# package (nss) has to be rebuilt to pickup the changes made. The "recreate
# certificates" lines below generates a new certdata.c source containing the root
# CA certs for mozilla.
# *ALL* of the mozilla based softwares that support SSL has to link against
# the NSS library.
# recreate certificates
perl ./certdata.perl /etc/pki/tls/mozilla/certdata.txt

%make clean
%make_build

popd
export LD_LIBRARY_PATH="$OLD"

%install
pushd dist/$(uname -s)*

mkdir -p %{buildroot}%{_bindir}
cp -aL bin/* %{buildroot}%{_bindir}

%if %{with lib}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}/%{_lib}
mkdir -p %{buildroot}%{_includedir}/nss

cp -aL lib/libcrmf.a \
       lib/libnss.a \
       lib/libnssb.a \
       lib/libnssckfw.a \
       lib/libnssutil.a \
       lib/libsmime.a \
       lib/libssl.a \
       %{buildroot}%{_libdir}

# Copy the binary libraries we want
for file in libsoftokn3.so libfreebl3.so libfreeblpriv3.so libnss3.so libnssutil3.so \
            libssl3.so libsmime3.so libnssdbm3.so
do
  install -m 755 lib/$file %{buildroot}/%{_lib}
  ln -sf ../../%{_lib}/$file %{buildroot}%{_libdir}/$file
done

# Copy the include files we want
cp -aL ../public/nss/* %{buildroot}%{_includedir}/nss

# Copy some freebl include files we also want
for file in blapi.h alghmac.h cmac.h; do
	install -p -m 644 ../private/nss/$file $RPM_BUILD_ROOT/%{_includedir}/nss
done

# Copy the static freebl library
for file in libfreebl.a; do
	install -p -m 644 ../*.OBJ/lib/$file $RPM_BUILD_ROOT/%{_libdir}
done


ln -s %{_libdir}/pkcs11/p11-kit-trust.so %{buildroot}/%{_lib}/libnssckbi.so
# weird bug that exist only on new arches
# /lib64/p11-kit-trust.so not exist
if [ ! -L %{buildroot}/%{_lib}/p11-kit-trust.so ]; then
  echo "=> p11-kit symlink not exist"
  pushd %{buildroot}/%{_lib}
  ln -s libnssckbi.so p11-kit-trust.so
  popd
fi

# These ghost files will be generated in the post step
# Make sure chk files can be found in both places
for file in libsoftokn3.chk libfreebl3.chk
do
  touch %{buildroot}/%{_lib}/$file
  ln -s ../../%{_lib}/$file %{buildroot}%{_libdir}/$file
done

mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat %{SOURCE1} | sed -e "s,%%libdir%%,%{_libdir},g" \
       -e "s,%%prefix%%,%{_prefix},g" \
       -e "s,%%exec_prefix%%,%{_prefix},g" \
       -e "s,%%includedir%%,%{_includedir}/nss,g" \
       -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
       -e "s,%%NSSUTIL_VERSION%%,%{version},g" > \
       %{buildroot}%{_libdir}/pkgconfig/nss-util.pc
cat %{SOURCE3} | sed -e "s,%%libdir%%,%{_libdir},g" \
       -e "s,%%prefix%%,%{_prefix},g" \
       -e "s,%%exec_prefix%%,%{_prefix},g" \
       -e "s,%%includedir%%,%{_includedir}/nss,g" \
       -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
       -e "s,%%NSSUTIL_VERSION%%,%{version},g" \
       -e "s,%%SOFTOKEN_VERSION%%,%{version},g" > \
       %{buildroot}%{_libdir}/pkgconfig/nss-softokn.pc
cat %{SOURCE8} | sed -e "s,%%libdir%%,%{_libdir},g" \
       -e "s,%%prefix%%,%{_prefix},g" \
       -e "s,%%exec_prefix%%,%{_prefix},g" \
       -e "s,%%includedir%%,%{_includedir}/nss,g" \
       -e "s,%%NSS_VERSION%%,%{version},g" \
       -e "s,%%NSPR_VERSION%%,%{nspr_version},g" \
       -e "s,%%NSSUTIL_VERSION%%,%{version},g" \
       -e "s,%%SOFTOKEN_VERSION%%,%{version},g" > \
       %{buildroot}%{_libdir}/pkgconfig/nss.pc

%endif

popd

%if %{with lib}
export NSS_VMAJOR=`%{__cat} nss/lib/nss/nss.h | %{__grep} "#define.*NSS_VMAJOR" | %{__awk} '{print $3}'`
export NSS_VMINOR=`%{__cat} nss/lib/nss/nss.h | %{__grep} "#define.*NSS_VMINOR" | %{__awk} '{print $3}'`
export NSS_VPATCH=`echo %{version} | sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`

mkdir -p %{buildroot}%{_bindir}
cat %{SOURCE9} | sed -e "s,@libdir@,%{_libdir},g" \
        -e "s,@prefix@,%{_prefix},g" \
        -e "s,@exec_prefix@,%{_prefix},g" \
        -e "s,@includedir@,%{_includedir}/nss,g" \
        -e "s,@MOD_MAJOR_VERSION@,$NSS_VMAJOR,g" \
        -e "s,@MOD_MINOR_VERSION@,$NSS_VMINOR,g" \
        -e "s,@MOD_PATCH_VERSION@,$NSS_VPATCH,g" \
        > %{buildroot}/%{_bindir}/nss-config
%endif

pushd nss/cmd/smimetools
install -m 0755 smime %{buildroot}%{_bindir}
perl -pi -e 's|/usr/local/bin|%{_bindir}|g' %{buildroot}%{_bindir}/smime
popd

# add docs/examples
mkdir -p docs/SSLsample
#cp -a mozilla/security/nss/cmd/SSLsample/README docs/SSLsample/

mkdir -p docs/bltest
cp -a nss/cmd/bltest/tests/* docs/bltest/
chmod -R a+r docs

mkdir -p docs/modutil
cp -a nss/cmd/modutil/*.html docs/modutil/

mkdir -p docs/signtool
cp -a nss/cmd/signtool/README docs/signtool/

mkdir -p docs/signver
cp -a nss/cmd/signver/examples/1/*.pl docs/signver/
cp -a nss/cmd/signver/examples/1/*.html docs/signver/

mkdir -p docs/ssltap
cp -a nss/cmd/ssltap/*.html docs/ssltap/

install -d %{buildroot}%{_datadir}/%{name}/
cp -pr docs/* %{buildroot}%{_datadir}/%{name}/

# Install the empty NSS db files
mkdir -p %{buildroot}%{_sysconfdir}/pki/nssdb
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pki/nssdb/cert8.db
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/pki/nssdb/key3.db
install -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/pki/nssdb/secmod.db

%{_bindir}/find docs -type f | %{_bindir}/xargs -t perl -pi -e 's/\r$//g'

%if %{build_empty}
# install the empty libnssckbi.so library (use alternatives?)
install -m0755 libnssckbi_empty.so %{buildroot}/%{_lib}/libnssckbi_empty.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14938 |21mr|nss_ldap-265-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NSS library and PAM module for LDAP
Name:		nss_ldap
Version:	265
Release:	17
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.padl.com/
Source0:	http://www.padl.com/download/%{name}-%{version}.tar.gz
Patch0:		nss_ldap-265-Makefile.patch
Patch1:		nss_ldap-250-bind_policy_default_soft.patch
Patch2:		nss-ldap-automake-1.13.patch
Patch3:		nss_ldap-265-fix-aarch64-build.patch
BuildRequires:	openldap-devel
Recommends:	nscd

%description
This package includes two LDAP access clients: nss_ldap and pam_ldap.
Nss_ldap is a set of C library extensions which allows X.500 and LDAP
directory servers to be used as a primary source of aliases, ethers,
groups, hosts, networks, protocol, users, RPCs, services and shadow
passwords (instead of or in addition to using flat files or NIS).

%files
%doc ANNOUNCE AUTHORS ChangeLog COPYING NEWS README doc INSTALL
%doc nsswitch.ldap certutil ldap.conf
%attr (600,root,root) %config(noreplace) %{_sysconfdir}/ldap.secret
%attr (644,root,root) %config(noreplace) %{_sysconfdir}/ldap.conf
/%{_lib}/*so*
%{_mandir}/man5/nss_ldap.5.*

%post
if [ -f /etc/init.d/nscd ]; then
	/sbin/service nscd restart >/dev/null 2>/dev/null || :
fi

%postun
if [ -f /etc/init.d/nscd ]; then
	/sbin/service nscd restart >/dev/null 2>/dev/null || :
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
# first line not commented upstream for some reason
perl -pi -e 's/^ /#/' ldap.conf
autoreconf -fi

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"
%configure \
	--with-ldap-lib=openldap \
	--enable-rfc2307bis \
	--libdir=/%{_lib}
make INST_UID=`id -u` INST_GID=`id -g`

%install
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}/%{_lib}/security

# Install the nsswitch module.
%make install DESTDIR="%{buildroot}" INST_UID=`id -u` INST_GID=`id -g` \
	libdir=/%{_lib}

echo "secret" > %{buildroot}/%{_sysconfdir}/ldap.secret

# Remove unpackaged file
rm -rf	%{buildroot}%{_sysconfdir}/nsswitch.ldap \
	%{buildroot}%{_libdir}/libnss_ldap.so.2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14939 |21mr|nss_mdns-0.15.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}

# autoreconf is enough
%define _disable_rebuild_configure 1

Summary:	Multicast dns support for glibc domain resolver
Name:		nss_mdns
Version:	0.15.1
Release:	2
License:	LGPLv2.1
Group:		System/Libraries
Url:		https://github.com/lathiat/nss-mdns
Source0:	https://github.com/lathiat/nss-mdns/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(avahi-core)
Requires:	%{libname} = %{EVRD}
OrderWithRequires(post):	%{_sysconfdir}/nsswitch.conf
Requires(post):	/bin/bash
Requires(post):	coreutils
Requires(post):	grep
Requires(post):	sed
# ensure that /etc/nsswitch.conf does not lit a not yet installed module
Requires(post):	%{libname} = %{EVRD}
Requires(postun):	/bin/bash
Requires(postun):	coreutils
Requires(postun):	grep
Requires(postun):	sed

%description
nss-mdns is a plugin for the Name Service Switch (NSS) functionality of the
glibc providing host name resolution via Multicast DNS (aka Zeroconf, aka
Apple Rendezvous), effectively allowing name resolution by common
Unix/Linux programs in the ad-hoc mDNS domain .local.

nss-mdns provides client functionality only, which means that you have to run
a mDNS responder daemon separately from nss-mdns if you want to register
the local host name via mDNS.

%files
%license LICENSE
%doc README.md NEWS.md
%config(noreplace) %{_sysconfdir}/mdns.allow

%post -p /bin/bash
# TODO: replace all this crap with authselect and its templates

# mdns* NSS mosules must be before "resolve [!UNAVAIL=return]" (systemd-resolved),
# otherwise they are useless. This script puts it into a correct place on new systems
# (assuming that "files" pre-exists, it does so in ROSA's glibc package) and fixes
# existing installation by replacing it into a correct place.
# All ROSA images had mdns4_minimal by default, but not other variants, so working only with it.

if [ ! -f %{_sysconfdir}/nsswitch.conf ]; then exit 0; fi
if ! grep -qE '^hosts:.*[[:space:]]files mdns' %{_sysconfdir}/nsswitch.conf ; then
	tmp="$(mktemp)"
	trap 'rm "$tmp"' EXIT
	# Sorry, using bash because I am not a sed programmer...
	cat %{_sysconfdir}/nsswitch.conf | while read -r line
	do
		# bashism
		if [[ "$line" =~ ^hosts: ]]
		then
			# First remove mdns4_minimal module from an incorrect place
			# and then add it into the correct place
			echo "$line" | \
			sed -E -e 's,[[:space:]]mdns4_minimal([[:space:]]|$), ,g' | \
			sed -e 's,\(^hosts:.*files\),\1 mdns4_minimal,g' \
			>> "$tmp"
		else
			echo "$line" >> "$tmp"
		fi
	done
	cp %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmsave
	cat "$tmp" > %{_sysconfdir}/nsswitch.conf
fi

%postun -p /bin/bash
if [ $1 = 0 ] && [ -f %{_sysconfdir}/nsswitch.conf ]; then
	tmp="$(mktemp)"
	trap 'rm "$tmp"' EXIT
	cat %{_sysconfdir}/nsswitch.conf | while read -r line
	do
		# bashism
		if [[ "$line" =~ ^hosts: ]]
		then
			echo "$line" | sed -E \
				-e 's,[[:space:]]mdns([[:space:]]|$), ,g' \
				-e 's,[[:space:]]mdns4([[:space:]]|$), ,g' \
				-e 's,[[:space:]]mdns4_minimal([[:space:]]|$), ,g' \
				-e 's,[[:space:]]mdns6([[:space:]]|$), ,g' \
				-e 's,[[:space:]]mdns6_minimal([[:space:]]|$), ,g' \
				-e 's,[[:space:]]mdns_minimal([[:space:]]|$), ,g' \
				>> "$tmp"
		else
			echo "$line" >> "$tmp"
		fi
	done
	cp %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmsave
	cat "$tmp" > %{_sysconfdir}/nsswitch.conf
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Plugin libraries for nss-mdns
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Provides:	%{name}-libraries = %{EVRD}

%description -n %{libname}
Plugin libraries for nss-mdns.

%files -n %{libname}
%license LICENSE
%doc README.md NEWS.md
/%{_lib}/libnss_mdns.so.%{major}
/%{_lib}/libnss_mdns4.so.%{major}
/%{_lib}/libnss_mdns4_minimal.so.%{major}
/%{_lib}/libnss_mdns6.so.%{major}
/%{_lib}/libnss_mdns6_minimal.so.%{major}
/%{_lib}/libnss_mdns_minimal.so.%{major}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n nss-mdns-%{version}

%build
autoreconf -ifv
export AVAHI_SOCKET=%{_rundir}/avahi-daemon/socket
%configure --libdir=/%{_lib}
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}
cat > %{buildroot}%{_sysconfdir}/mdns.allow  <<EOF
# place here the domain that should be resolved by multicast dns
# use * to include all ( not recommended )
.local.
.local
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14940 |21mr|ntfs-3g-2022.10.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# flag to allow local users to mount partitions. This is *really* not a good
# idea, because all users who have access to the device can do whatever they
# want with the data, and it also adds a root setuid binary to your system, so
# use it on your own risk. Refer to
# http://www.tuxera.com/community/ntfs-3g-faq/#useroption for details.
%define allow_unsafe_mount 0

%if %{allow_unsafe_mount}
# user mount only works if ntfs-3g is using internal fuse library
%define build_external_fuse 0
%else
%define build_external_fuse 1
%endif

%define major 89
%define libname %mklibname ntfs-3g %{major}
%define devname %mklibname ntfs-3g -d

Summary:	Read-write ntfs driver
Name:		ntfs-3g
Version:	2022.10.3
Release:	2
License:	GPLv2+
Group:		System/Base
Url:		http://www.tuxera.com/community/ntfs-3g-download/
Source0:	http://tuxera.com/opensource/%{name}_ntfsprogs-%{version}.tgz
Source1:	20-ntfs-config-write-policy.fdi
Patch0:		ntfs-3g_ntfsprogs-2011.10.9-RC-ntfsck-unsupported-return-0.patch
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libgcrypt)
%if %{build_external_fuse}
BuildRequires:	pkgconfig(fuse)
Requires:	fuse
Requires(pre):	fuse
%else
Requires:	kmod(fuse)
%endif
Requires:	%{libname} = %{EVRD}
Provides:	ntfsprogs-gnomevfs = %{EVRD}
Provides:	ntfsprogs-fuse = %{EVRD}
Provides:	fuse-ntfs-3g = %{EVRD}
Obsoletes:	ntfsprogs < %{EVRD}
%rename ntfsprogs

%description
The ntfs-3g package contains NTFS filesystem driver with read and
write support. It provides safe and fast handling of MS Windows Vista,
XP, 2000 and Server 2003 NTFS file systems. Most POSIX file system
operations are supported.

%files
%doc README AUTHORS CREDITS NEWS
%{_bindir}/ntfsmount
/bin/lowntfs-3g
/bin/ntfs-3g
/bin/ntfs-3g.probe
/bin/ntfsfallocate
/bin/ntfscat
/bin/ntfscluster
/bin/ntfscmp
/bin/ntfsfix
/bin/ntfsinfo
/bin/ntfsls
/bin/ntfsck
/bin/ntfsdecrypt
/bin/ntfsdump_logfile
/bin/ntfsmftalloc
/bin/ntfsmove
/bin/ntfsrecover
/bin/ntfssecaudit
/bin/ntfsusermap
/bin/ntfstruncate
/bin/ntfswipe
/sbin/mkfs.ntfs
/sbin/fsck.ntfs
/sbin/mkntfs
/sbin/ntfsclone
/sbin/ntfscp
/sbin/ntfslabel
/sbin/ntfsresize
/sbin/ntfsundelete
%{_mandir}/man8/*
%if %{allow_unsafe_mount}
%attr(4755,root,root) /sbin/mount.ntfs-3g
%else
%attr(754,root,root) /sbin/mount.ntfs-3g
%endif
/sbin/mount.ntfs
/sbin/mount.lowntfs-3g
/sbin/mount.ntfs-fuse
%{_datadir}/hal/fdi/policy/10osvendor/20-ntfs-config-write-policy.fdi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for ntfs-3g
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}
Conflicts:	%{name} < 2014.2.15-5

%description -n %{libname}
Shared library for ntfs-3g.

%files -n %{libname}
/%{_lib}/libntfs-3g.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries for ntfs-3g
Group:		Development/C
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 2014.2.15-5
Obsoletes:	%{name}-devel < 2014.2.15-5

%description -n %{devname}
You should install this package if you wish to develop applications that
use ntfs-3g.

%files -n %{devname}
%doc ChangeLog
/%{_lib}/libntfs-3g.so
%{_includedir}/ntfs-3g
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}_ntfsprogs-%{version}
%patch0 -p1 -b .unsupported

%build
%serverbuild_hardened
%configure \
	--disable-static \
	--exec-prefix=/ \
	--bindir=/bin \
	--libdir=/%{_lib} \
	--sbindir=/sbin \
	--disable-ldconfig \
	--enable-crypto \
	--enable-extras \
	--enable-quarantined \
%if %{build_external_fuse}
	--with-fuse=external
%else
	--with-fuse=internal
%endif
%make

%install
sed -i -e 's|/sbin/ldconfig|true|' src/Makefile
%makeinstall_std

# make the symlink an actual copy to avoid confusion
rm -rf %{buildroot}/sbin/mount.ntfs-3g
cp -a %{buildroot}/bin/ntfs-3g %{buildroot}/sbin/mount.ntfs-3g
ln -sf /sbin/mount.ntfs-3g %{buildroot}/sbin/mount.ntfs
ln -sf /sbin/mount.ntfs-3g %{buildroot}/sbin/mount.ntfs-fuse
mkdir -p %{buildroot}%{_bindir}
ln -sf /sbin/mount.ntfs-3g %{buildroot}%{_bindir}/ntfsmount

# Need this for fsck to find it
ln -s ../bin/ntfsck %{buildroot}/sbin/fsck.ntfs

# .pc file should always be there
mkdir -p %{buildroot}%{_libdir}
mv -f %{buildroot}/%{_lib}/pkgconfig %{buildroot}%{_libdir}/pkgconfig

# remove doc files, as we'll cp them later
rm -fr %{buildroot}/%{_datadir}/doc

mkdir -p %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/
cp -a %{SOURCE1} %{buildroot}%{_datadir}/hal/fdi/policy/10osvendor/


# CVE-2021-33285 CVE-2021-33286 CVE-2021-33287 CVE-2021-33289
# CVE-2021-35266 CVE-2021-35267 CVE-2021-35268 CVE-2021-35269
# CVE-2021-39251 CVE-2021-39252 CVE-2021-39253 CVE-2021-39254
# CVE-2021-39255 CVE-2021-39256 CVE-2021-39257 CVE-2021-39258
# CVE-2021-39259 CVE-2021-39260 CVE-2021-39261 CVE-2021-39262
# CVE-2021-39263 CVE-2021-46790 CVE-2022-30783 CVE-2022-30784
# CVE-2022-30785 CVE-2022-30786 CVE-2022-30787 CVE-2022-30788
# CVE-2022-30789

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14941 |21mr|ntfs-3g-system-compression-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NTFS-3G plugin for reading "system compressed" files
Name:		ntfs-3g-system-compression
Version:	1.0
Release:	2
License:	GPLv2+
Group:		System/Libraries
URL:		https://github.com/ebiggers/ntfs-3g-system-compression
Source0:	https://github.com/ebiggers/ntfs-3g-system-compression/archive/v%{version}/ntfs-3g-system-compression-%{version}.tar.gz
BuildRequires:	pkgconfig(libntfs-3g) >= 2017.3.23
BuildRequires:	pkgconfig(fuse)

%description
System compression, also known as "Compact OS", is a Windows feature that
allows rarely modified files to be compressed using the XPRESS or LZX
compression formats. It is not built directly into NTFS but rather is
implemented using reparse points. This feature appeared in Windows 10 and it
appears that many Windows 10 systems have been using it by default.

This RPM contains a plugin which enables the NTFS-3G FUSE driver to
transparently read from system-compressed files. Currently, only reading is
supported. Compressing an existing file may be done by using the "compact"
utility on Windows.

%prep
%autosetup -p1

%build
autoreconf -i
%configure
%make_build

%install
%make_install
rm -rf %{buildroot}%{_libdir}/ntfs-3g/*.la

%files
%doc README.md
%license COPYING
%dir %{_libdir}/ntfs-3g/
%{_libdir}/ntfs-3g/ntfs-plugin-80000017.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14942 |21mr|ntp-4.2.8p15-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pver p15
%define	ntp_user ntp
%define	ntp_group ntp

%define	ntp_unitdir	%{_prefix}/lib/systemd/ntp-units.d

Summary:	Synchronizes system time using the Network Time Protocol (NTP)
Name:		ntp
Version:	4.2.8%{pver}
Release:	6
License:	BSD-Style and MIT
Group:		System/Servers
Url:		http://www.ntp.org/
Source0:	http://www.eecis.udel.edu/~ntp/ntp_spool/ntp4/ntp-4.2/%{name}-%{version}.tar.gz
Source1:	ntp.conf
Source2:	ntp.keys
# Use this "fork" of ntpstat, consisting in a bash script
Source4:	https://github.com/mlichvar/ntpstat/archive/ntpstat-0.6.tar.gz
Source7:	ntpd.sysconfig
Source11:	50-ntpd.list
Source12:	ntpd.service
Source13:	ntpdate.service
Source14:	ntp-wait.service
Source15:	ntpdate.wrapper
Source16:	ntpdate.sysconfig
Source17:	ntpdate.8
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-4.2.8p12-droproot.patch
Patch1:		%{name}-4.2.8p12-CVE-2015-5300.patch
Patch2:		%{name}-4.2.8p15-fix-array-size.patch
Patch3:		ntp-glibc2.34.patch
BuildRequires:	jemalloc-devel
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	lm_sensors-devel
BuildRequires:	libwrap-devel
# For html2man
BuildRequires:	perl(HTML::Parser)
Requires:	perl(HTTP::Tiny)
Requires:	%{name}-client
Requires(post):	%{name}-config
Requires(pre,post,preun,postun):	rpm-helper

%description
The Network Time Protocol (NTP) is used to synchronize a computer's time with
another reference time source.
This package contains utilities and daemons which will synchronize your
computer's time to Coordinated Universal Time (UTC) via the NTP protocol and
NTP servers. It includes ntpdate (a program for retrieving the date and time
from remote machines via a network) and ntpd (a daemon which continuously
adjusts system time).
Install the ntp package if you need tools for keeping your system's time
synchronized via the NTP protocol.
Note: Primary, original, big HTML documentation, is in the package ntp-doc.

%files
%doc 
%{_sbindir}/ntpd
%{_sbindir}/ntpdc
%{_sbindir}/%{name}-keygen
%{_sbindir}/ntpq
%{_sbindir}/ntpsnmpd
%{_sbindir}/ntpstat
%{_sbindir}/ntptime
%{_sbindir}/ntptrace
%{_sbindir}/%{name}-wait
%{_sbindir}/sntp
%{_sbindir}/tickadj
%{_sbindir}/calc_tickadj
%{_sbindir}/update-leap
%{_mandir}/man1/ntpsnmpd.1*
%{_mandir}/man1/ntpstat.1*
%{_mandir}/man1/sntp.1*
%{_mandir}/man1/calc_tickadj.1.*
%{_mandir}/man1/%{name}-keygen.1.*
%{_mandir}/man1/%{name}-wait.1.*
%{_mandir}/man1/ntpd.1.*
%{_mandir}/man1/ntpdc.1.*
%{_mandir}/man1/ntpq.1.*
%{_mandir}/man1/ntptrace.1.*
%{_mandir}/man1/update-leap.1.*
%{_mandir}/man5/%{name}.conf.5.*
%{_mandir}/man5/%{name}.keys.5.*
%{ntp_unitdir}/50-ntpd.list
%{_unitdir}/%{name}-wait.service
%{_unitdir}/ntpd.service
%{_datadir}/%{name}

%pre
%_pre_useradd %{ntp_user} %{_sysconfdir}/%{name} /bin/false

%post
%systemd_post ntpd.service
touch %{_sysconfdir}/%{name}/step-tickers

%preun
%systemd_preun ntpd.service

%postun
%_postun_userdel %{ntp_user}

#----------------------------------------------------------------------------

%package client
Summary:	The ntpdate client for setting system time from NTP servers
Group:		System/Servers
Requires:	%{name}-config
Requires(pre,post,preun,postun):	rpm-helper

%description client
The Network Time Protocol (NTP) is used to synchronize a computer's time with
another reference time source.
This package contains utilities and daemons which will synchronize your
computer's time to Coordinated Universal Time (UTC) via the NTP protocol and
NTP servers. It includes ntpdate (a program for retrieving the date and time
from remote machines via a network) and ntpd (a daemon which continuously
adjusts system time).
Ntpdate is a simple NTP client which allows a system's clock to be set to
match the time obtained by communicating with one or more servers; it is
optional (but recommended) if you're running an NTP server, because
initially setting the system clock to an almost-correct time will help the
NTP server synchronize faster.
The ntpdate client by itself is useful for occasionally setting the time on
machines that are not on the net full-time, such as laptops.

%files client
%doc COPYRIGHT ChangeLog README
%{_sbindir}/ntpdate
%{_sbindir}/ntpdate-wrapper
%{_unitdir}/ntpdate.service
%{_mandir}/man8/ntpdate.8.*
%config(noreplace) %{_sysconfdir}/sysconfig/ntpdate

%pre client
%_pre_useradd %{ntp_user} %{_sysconfdir}/ntp /bin/false

%post client
%systemd_post ntpdate.service

%preun client
%systemd_preun ntpdate.service

%postun client
%_postun_userdel %{ntp_user}

#----------------------------------------------------------------------------

%package doc
Summary:	Complete HTML documentation for ntp
Group:		Documentation
BuildArch:	noarch

%description doc
The Network Time Protocol (NTP) is used to synchronize a computer's time with
another reference time source. The ntp package contains utilities and daemons
which will synchronize your computer's time to Coordinated Universal Time
(UTC) via the NTP protocol and NTP servers.
This package contains the original, complete, documentation for NTP, in HTML
format. Manpages documentation comes with the binary package.

%files doc
%doc COPYRIGHT html/
%{_docdir}/%{name}
%{_docdir}/sntp

#----------------------------------------------------------------------------

%package config
Summary:	Complete config for ntp
Group:		System/Servers
Conflicts:	%{name} < 4.2.8p4
BuildArch:	noarch
Requires(pre):	rpm-helper

%description config
The Network Time Protocol (NTP) is used to synchronize a computer's time with
another reference time source.
The ntp package contains utilities and daemons which will synchronize your
computer's time to Coordinated Universal Time (UTC) via the NTP protocol and
NTP servers. It includes ntpdate (a program for retrieving the date and time
from remote machines via a network) and ntpd (a daemon which continuously
adjusts system time).
This package contains config files for %{name}.

%files config
%doc COPYRIGHT NEWS TODO README* ChangeLog conf COPYRIGHT.sntp
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/sysconfig/ntpd
%dir %{_sysconfdir}/%{name}
%attr(0640,root,%{ntp_group})%config(noreplace) %{_sysconfdir}/%{name}/keys
%config(noreplace) %{_sysconfdir}/%{name}/step-tickers
%attr(-,%{ntp_user},%{ntp_group}) /var/lib/%{name}

%pre config
%_pre_useradd %{ntp_user} %{_sysconfdir}/%{name} /bin/false

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version} -a4
%apply_patches

# Set default path to sntp KoD database
sed -i 's|/var/db/%{name}-kod|%{_localstatedir}/lib/%{name}/sntp-kod|' sntp/*.{man.in,c}

# Fix perms
find . -name "*.gif"| xargs chmod 0644

%build
autoreconf -vfis
%serverbuild
%configure \
	--with-crypto=openssl \
	--enable-linuxcaps \
	--with-ntpsnmpd

%make CFLAGS="%{optflags}"


%install
# Prepare some needed dirs
install -d -m 755 %{buildroot}%{_mandir}/man1
install -d -m 755 %{buildroot}%{_mandir}/man5
install -d -m 755 %{buildroot}%{_mandir}/man8
install -d -m 755 %{buildroot}/var/lib/%{name}

# Do the main install
%makeinstall_std bindir=%{_sbindir}

# Install ntpstat stuff
%makeinstall -C ntpstat-0.6 bindir=%{buildroot}%{_sbindir}

# Install config files
install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}.conf

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 640 %{SOURCE2} %{buildroot}%{_sysconfdir}/%{name}/keys

install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/sysconfig/ntpd
install -m 644 %{SOURCE16} %{buildroot}%{_sysconfdir}/sysconfig/ntpdate

# Is this needed? We do in in %%post for main package...
touch %{buildroot}%{_sysconfdir}/%{name}/step-tickers

# Install our ntpdate wrapper and man file
install -m 755 %{SOURCE15} %{buildroot}%{_sbindir}/ntpdate-wrapper
install -m 644 %{SOURCE17} %{buildroot}%{_mandir}/man8/

# Cleanup patched HTML files
rm -f html/ntpdate.html.droproot
# for %%doc
cp sntp/COPYRIGHT COPYRIGHT.sntp

# Install systemd stuff
install -D -p -m 644 %{SOURCE11} %{buildroot}%{ntp_unitdir}/50-ntpd.list
install -D -p -m 644 %{SOURCE12} %{buildroot}%{_unitdir}/ntpd.service
install -D -p -m 644 %{SOURCE13} %{buildroot}%{_unitdir}/ntpdate.service
install -D -p -m 644 %{SOURCE14} %{buildroot}%{_unitdir}/ntp-wait.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14943 |21mr|nuitka-1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# are useless and take too long to process
# tones of files in this package
%global __typelib_requires %{nil}
%global __typelib_provides %{nil}

Summary:		Python compiler with full language support and CPython compatibility
Name:			nuitka
Group:			Development/Python
Version:		1.5
Release:		3
License:		ASLv2.0
Url:			https://nuitka.net/
Source0:		http://nuitka.net/releases/Nuitka-%{version}.tar.gz
BuildRequires:	python3egg(lxml)
BuildRequires:	python3egg(setuptools)
Requires:	gcc
Requires:	pkgconfig(python3)
Requires:	python3.8dist(ordered-set)
Requires:	python3.8dist(zstandard)

buildArch:		noarch

%define _description \
Nuitka is **the** Python compiler. It is a seamless replacement or \
extension to the Python interpreter and compiles **every** construct \
that CPython 2.6, 2.7, 3.2, 3.3, 3.4 etc. have. It then executes \
uncompiled code, and compiled code together in an extremely compatible \
manner. \
\
You can use all Python library modules or and all extension modules \
freely. It translates the Python into a C level program that then uses \
"libpython" to execute in the same way as CPython does. All optimization \
is aimed at avoiding overhead, where it's unnecessary. None is aimed at \
removing compatibility, although there is an "improved" mode, where not \
every bug of standard Python is emulated, e.g. more complete error \
messages are given.

%description
%{_description}

#---------------------------------------------------------------------------------

# We may need to build e.g. python38-nuitka or python2-nuitka,
# so naming packages like this

%package -n python3-%{name}
Summary:		%{summary}
Group:			Development/Python
Requires:	gcc
Requires:	pkgconfig(python3)
Requires:	python3.8dist(ordered-set)
Requires:	python3.8dist(zstandard)
Provides:		%{name} = %{EVRD}

%description -n python3-%{name}
%{_description}

%files -n python3-%{name}
%doc *.rst
%{_bindir}/nuitka3
%{_bindir}/nuitka3-run
%{python3_sitelib}/nuitka*
%{python3_sitelib}/Nuitka*

#---------------------------------------------------------------------------------

%prep
%setup -q -n Nuitka-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14944 |21mr|numactl-2.0.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname numa %{major}
%define devname %mklibname numa -d

Summary:	Simple NUMA policy support
Name:		numactl
Version:	2.0.14
Release:	2
License:	LGPLv2/GPLv2
Group:		System/Configuration/Hardware
Url:		https://github.com/numactl/numactl
Source0:	https://github.com/numactl/numactl/releases/download/v%{version}/numactl-%{version}.tar.gz

%description
This package contains the `numactl' program to run other programs with
a specific NUMA policy.

%files
%doc README.md
%{_bindir}/memhog
%{_bindir}/numactl
%{_bindir}/numademo
%{_bindir}/numastat
%{_bindir}/migratepages
%{_bindir}/migspeed
%{_mandir}/man8/*.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime libraries for NUMA policy support
Group:		System/Libraries

%description -n %{libname}
This package contains the dynamic libraries for NUMA policy support.

%files -n %{libname}
%{_libdir}/libnuma.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and libraries for NUMA policy
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	numa-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains headers and libraries useful for developing
applications using different NUMA policies.

%files -n %{devname}
%{_libdir}/libnuma.so
%{_includedir}/numa.h
%{_includedir}/numaif.h
%{_includedir}/numacompat1.h
%{_mandir}/man3/numa.3*
%{_libdir}/pkgconfig/numa.pc

#----------------------------------------------------------------------------

%prep
%setup -q

# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,^#include <sys/types.h>,#include <sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

autoreconf -fi

%build
%global ldflags %{ldflags} -latomic
%configure \
	--disable-static
%make_build

%install
%make_install

# To avoid conflicts with man-pages
rm -rf %{buildroot}%{_mandir}/man2/move_pages.2*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14945 |21mr|numlock-2.1.2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Numlock key locker
Name:		numlock
Version:	2.1.2
Release:	17
License:	GPLv2+
Group:		System/Configuration/Boot and Init
Url:		http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/numlock/
Source0:	%{name}-%{version}.tar.bz2
Source1:	http://home.kde.org/~seli/numlockx/numlockx-1.2.tar.gz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
# do not require X11 libs
AutoReq:	no
Requires(post,preun):	rpm-helper

%description
NumLock enable to lock the numlock key. Only enable it at boot-time with
ntsysv or with any other SVSR like rc.d config scripts editor such as
tksysv or the ones from GNOME and KDE.
NumLock is safe for laptops since it is disabled by default.

%files
%config(noreplace) %{_initrddir}/%{name}
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.sh
%config(noreplace) %{_sysconfdir}/X11/xinit.d/numlock
%{_bindir}/*

%post
%_post_service numlock

%preun
%_preun_service numlock

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -T -D -a 1

%build
make CFLAGS="%{optflags}"

pushd numlockx-1.2
%configure --x-libraries=%{_libdir}
%make
popd
sed -i -e "s#enable_X11_numlock#numlockx#" numlock.xinit

%install
make install TOP=%{buildroot} INITRDDIR=%{_initrddir}

pushd numlockx-1.2
%makeinstall_std
popd
rm -f %{buildroot}%{_bindir}/enable_X11_numlock
rm -rf %{buildroot}%{_mandir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14946 |21mr|nunit-2.6.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define _monodir %{_prefix}/lib/mono
%define _monogacdir %{_prefix}/lib/mono/gac

Name:           nunit
Version:        2.6.4
Release:        5
Summary:        Unit test framework for CLI
License:        MIT with advertising
Group:          Development/C
Url:            http://www.nunit.org/
Source0:        https://github.com/nunit/nunitv2/archive/%{version}.tar.gz
Source1:        nunit.pc
Source2:        nunit-gui.sh
Source3:        nunit-console.sh
Source4:        nunit.desktop
BuildRequires:  mono-devel libgdiplus-devel desktop-file-utils
%rename mono-nunit22

%description
NUnit is a unit testing framework for all .NET languages. It serves the
same purpose as JUnit does in the Java world. It supports test
categories, testing for exceptions and writing test results in plain
text or XML.

NUnit targets the CLI (Common Language Infrastructure) and supports Mono and
the Microsoft .NET Framework.

%package gui
Summary:        Tools for run NUnit test
Requires:       %{name} = %{version}-%{release}

%description gui
Desktop application for run NUnit test

%package doc
Summary:        Documentation package for NUnit
Group:          Documentation
Requires:       %{name} = %{version}-%{release}

%description doc
Documentation for NUnit

%package        devel
Summary:        Development files for NUnit
Group:          Development/C
Requires:       %{name} = %{version}-%{release}
Requires:       pkgconfig
Provides:       mono-nunit-devel = 4.0.2-5
Obsoletes:      mono-nunit-devel < 4.0.2-6

%description devel
Development files for %{name}.

%prep
%setup -qn nunitv2-%{version}

%build

# fix compile with Mono4
find . -name "*.sln" -print -exec sed -i 's/Format Version 10.00/Format Version 11.00/g' {} \;
find . -name "*.csproj" -print -exec sed -i 's#ToolsVersion="3.5"#ToolsVersion="4.0"#g; s#<TargetFrameworkVersion>.*</TargetFrameworkVersion>##g; s#<PropertyGroup>#<PropertyGroup><TargetFrameworkVersion>v4.5</TargetFrameworkVersion>#g' {} \;

xbuild /property:Configuration=Debug ./src/NUnitCore/core/nunit.core.dll.csproj
xbuild /property:Configuration=Debug ./src/NUnitCore/interfaces/nunit.core.interfaces.dll.csproj
xbuild /property:Configuration=Debug ./src/NUnitFramework/framework/nunit.framework.dll.csproj
xbuild /property:Configuration=Debug ./src/NUnitMocks/mocks/nunit.mocks.csproj
xbuild /property:Configuration=Debug ./src/ClientUtilities/util/nunit.util.dll.csproj
xbuild /property:Configuration=Debug ./src/ConsoleRunner/nunit-console/nunit-console.csproj
xbuild /property:Configuration=Debug ./src/ConsoleRunner/nunit-console-exe/nunit-console.exe.csproj
xbuild /property:Configuration=Debug ./src/GuiRunner/nunit-gui/nunit-gui.csproj
xbuild /property:Configuration=Debug ./src/GuiComponents/UiKit/nunit.uikit.dll.csproj
xbuild /property:Configuration=Debug ./src/GuiException/UiException/nunit.uiexception.dll.csproj
xbuild /property:Configuration=Debug ./src/GuiRunner/nunit-gui-exe/nunit-gui.exe.csproj

%install
mkdir -p %{buildroot}%{_monodir}/nunit
mkdir -p %{buildroot}%{_libdir}/pkgconfig
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons/NUnit
install -m0644 %{SOURCE1} %{buildroot}%{_libdir}/pkgconfig/
install -m0755 %{SOURCE2} %{buildroot}%{_bindir}/`basename -s .sh %{SOURCE2}`26
install -m0755 %{SOURCE3} %{buildroot}%{_bindir}/`basename -s .sh %{SOURCE3}`26
install -m0644 src/ConsoleRunner/nunit-console-exe/App.config %{buildroot}%{_monodir}/nunit/nunit-console.exe.config
install -m0644 src/GuiRunner/nunit-gui-exe/App.config %{buildroot}%{_monodir}/nunit/nunit.exe.config
find %{_builddir}/%{?buildsubdir}/bin -name \*.dll -exec install \-m0755 "{}" "%{buildroot}%{_monodir}/nunit/" \;
find %{_builddir}/%{?buildsubdir}/bin -name \*.exe -exec install \-m0755 "{}" "%{buildroot}%{_monodir}/nunit/" \;
for i in nunit-console-runner.dll nunit.core.dll nunit.core.interfaces.dll nunit.framework.dll nunit.mocks.dll nunit.util.dll ; do
    gacutil -i %{buildroot}%{_monodir}/nunit/$i -package nunit -root %{buildroot}%{_monodir}/../
done
desktop-file-install --dir=%{buildroot}/%{_datadir}/applications %{SOURCE4}
cp src/GuiRunner/nunit-gui-exe/App.ico %{buildroot}/%{_datadir}/icons/NUnit/nunit.ico

#compat simlink
ln -s nunit-console26 %{buildroot}%{_bindir}/nunit-console2

%files
%doc license.txt
%{_bindir}/nunit-console*
%{_monodir}/nunit/nunit-console.exe*
%{_monogacdir}/nunit*
%{_monodir}/nunit/*.dll

%files gui
%{_bindir}/nunit-gui*
%{_monodir}/nunit/nunit.exe*
%{_datadir}/applications/nunit.desktop
%{_datadir}/icons/NUnit

%files doc
%doc doc/*

%files devel
%{_libdir}/pkgconfig/nunit.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14947 |21mr|nut-2.7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define build_doc 0
%{?_without_doc: %global build_doc 0}
%{?_with_doc: %global build_doc 1}

%define major 1
%define nut_major 0
%define ups_major 4
%define libname %mklibname nutscan %{major}
%define libnut %mklibname nutclient %{nut_major}
%define libups %mklibname upsclient %{ups_major}

%define nutuser ups

Summary:	Network UPS Tools Client Utilities
Name:		nut
Version:	2.7.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://www.networkupstools.org/
Source0:	http://www.networkupstools.org/source/2.7/%{name}-%{version}.tar.gz
Source100:	ups.conf
Source101:	upsd.users
Source102:	70-nut-usbups.rules
Source103:	nut.tmpfiles.d
Source104:	ups.sysusers.conf
Patch0:		nut-upsset.conf.diff
Patch1:		nut-2.7.4-mdv_conf.diff
Patch2:		backport-fix-lp753661.patch
Patch6:		upsmon_config.patch

%if %{build_doc}
BuildRequires:	asciidoc
BuildRequires:	dblatex
%endif
BuildRequires:	libtool
BuildRequires:	systemd-units
BuildRequires:	jpeg-devel
BuildRequires:	libgd-devel
BuildRequires:	libtool-devel
BuildRequires:	net-snmp-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpowerman)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(xpm)
Requires(pre):	/bin/systemd-sysusers

%description
These programs are part of a developing project to monitor the assortment of
UPSes that are found out there in the field. Many models have serial ports of
some kind that allow some form of state checking. This capability has been
harnessed where possible to allow for safe shutdowns, live status tracking on
web pages, and more.

This package includes the client utilities that are required to monitor a UPS
that the client host is powered from - either connected directly via a serial
port (in which case the nut-server package needs to be installed on this
machine) or across the network (where another host on the network monitors the
UPS via serial cable and runs the main nut package to allow clients to see the
information).

%files
%doc AUTHORS COPYING ChangeLog MAINTAINERS NEWS README UPGRADING docs
%{_unitdir}/nut-monitor.service
%attr(0755,root,root) %dir %{_sysconfdir}/ups
%attr(0640,root,%{nutuser}) %config(noreplace) %{_sysconfdir}/ups/upssched.conf
%attr(0640,root,%{nutuser}) %{_sysconfdir}/ups/upsmon.conf.sample
%attr(0640,root,root) %{_sysconfdir}/ups/upsmon.conf
%attr(0750,%{nutuser},%{nutuser}) %dir /var/state/ups
#%attr(0755,%{nutuser},%{nutuser}) %dir /var/run/nut
%{_prefix}/lib/tmpfiles.d/%{name}.conf
%{_bindir}/nut-scanner
%{_bindir}/upsc
%{_bindir}/upscmd
%{_bindir}/upslog
%{_bindir}/upsrw
%{_bindir}/upssched-cmd
%{_sbindir}/upsmon
%{_sbindir}/upssched
%{_mandir}/man5/upsmon.conf.5*
%{_mandir}/man5/upssched.conf.5*
%{_mandir}/man8/nut-scanner.8*
%{_mandir}/man8/upsc.8*
%{_mandir}/man8/upscmd.8*
%{_mandir}/man8/upslog.8*
%{_mandir}/man8/upsmon.8*
%{_mandir}/man8/upsrw.8*
%{_mandir}/man8/upssched.8*
%{_sysusersdir}/ups.conf

%pre
# Create an UPS user
#%%_pre_useradd %{nutuser} /var/state/ups /bin/false
#%%{_sbindir}/usermod -G dialout,tty,usb %{nutuser}
%sysusers_create_package ups %{SOURCE104}


%preun
# only do this if it is not an upgrade
%systemd_preun nut-monitor

%post
%systemd_post nut-monitor

%postun
# Only do this if it is not an upgrade
if [ ! -f %{_sbindir}/upsd ]; then
   %_postun_userdel %{nutuser}
fi
%systemd_postun nut-monitor

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Network UPS Tools Client Utilities library
Group:		System/Libraries
Conflicts:	%{_lib}upsclient1 < 1:2.6.4-10

%description -n %{libname}
This package contains a shared libraries for NUT client applications.

%files -n %{libname}
%{_libdir}/libnutscan.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libups}
Summary:	Network UPS Tools Client Utilities library
Group:		System/Libraries

%description -n %{libups}
This package contains a shared libraries for NUT client applications.

%files -n %{libups}
%{_libdir}/libupsclient.so.%{ups_major}*

#----------------------------------------------------------------------------

%package -n %{libnut}
Summary:	Network UPS Tools Client Utilities library
Group:		System/Libraries

%description -n %{libnut}
Network UPS Tools Client Utilities library

%files -n %{libnut}
%{_libdir}/libnutclient.so.%{nut_major}*

#----------------------------------------------------------------------------

%package server
Summary:	Network UPS Tools server
Group:		System/Servers
Requires:	nut = %{EVRD}
Requires:	tcp_wrappers
Requires(pre):	nut = %{EVRD}

%description server
These programs are part of a developing project to monitor the assortment of
UPSes that are found out there in the field. Many models have serial ports of
some kind that allow some form of state checking. This capability has been
harnessed where possible to allow for safe shutdowns, live status tracking on
web pages, and more.

This package is the main NUT upsd daemon and the associated per-UPS-model
drivers which talk to the UPSes. You also need to install the base NUT package.

%files server
%{_unitdir}/nut-server.service
%{_unitdir}/nut-driver.service
/lib/systemd/system-shutdown/nutshutdown
%{_sbindir}/upsd
%attr(0644,%{nutuser},%{nutuser}) %config(noreplace) %{_sysconfdir}/ups/ups.conf
%attr(0640,root,%{nutuser}) %config(noreplace) %{_sysconfdir}/ups/upsd.users
%attr(0640,root,%{nutuser}) %config(noreplace) %{_sysconfdir}/ups/upsd.conf
%attr(0644,root,root) %{_sysconfdir}/udev/rules.d/70-nut-usbups.rules
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/hotplug/usb/libhid.usermap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/hotplug/usb/libhidups
%{_sbindir}/apcsmart
%{_sbindir}/apcsmart-old
%{_sbindir}/bcmxcp
%{_sbindir}/bcmxcp_usb
%{_sbindir}/belkin
%{_sbindir}/belkinunv
%{_sbindir}/bestfcom
%{_sbindir}/bestfortress
%{_sbindir}/bestuferrups
%{_sbindir}/bestups
%{_sbindir}/blazer_ser
%{_sbindir}/blazer_usb
%{_sbindir}/clone
%{_sbindir}/clone-outlet
%{_sbindir}/dummy-ups
%{_sbindir}/etapro
%{_sbindir}/everups
%{_sbindir}/gamatronic
%{_sbindir}/genericups
%{_sbindir}/isbmex
%{_sbindir}/ivtscd
%{_sbindir}/liebert
%{_sbindir}/liebert-esp2
%{_sbindir}/masterguard
%{_sbindir}/metasys
%{_sbindir}/mge-shut
%{_sbindir}/mge-utalk
%{_sbindir}/microdowell
%{_sbindir}/oldmge-shut
%{_sbindir}/oneac
%{_sbindir}/optiups
%{_sbindir}/powercom
%{_sbindir}/powerman-pdu
%{_sbindir}/powerpanel
%{_sbindir}/rhino
%{_sbindir}/richcomm_usb
%{_sbindir}/safenet
%{_sbindir}/skel
%{_sbindir}/snmp-ups
%{_sbindir}/solis
%{_sbindir}/tripplite
%{_sbindir}/tripplitesu
%{_sbindir}/tripplite_usb
%{_sbindir}/upscode2
%{_sbindir}/upsdrvctl
%{_sbindir}/usbhid-ups
%{_sbindir}/victronups
%{_sbindir}/netxml-ups
%{_datadir}/cmdvartab
%{_datadir}/driver.list
%{_mandir}/man5/nut.conf.5*
%{_mandir}/man5/ups.conf.5*
%{_mandir}/man5/upsd.conf.5*
%{_mandir}/man5/upsd.users.5*
%{_mandir}/man8/apcsmart.8*
%{_mandir}/man8/apcsmart-old.8*
%{_mandir}/man8/bcmxcp.8*
%{_mandir}/man8/bcmxcp_usb.8*
%{_mandir}/man8/belkin.8*
%{_mandir}/man8/belkinunv.8*
%{_mandir}/man8/bestfcom.8*
%{_mandir}/man8/bestfortress.8*
%{_mandir}/man8/bestuferrups.8*
%{_mandir}/man8/bestups.8*
%{_mandir}/man8/clone.8*
%{_mandir}/man8/dummy-ups.8*
%{_mandir}/man8/etapro.8*
%{_mandir}/man8/everups.8*
%{_mandir}/man8/gamatronic.8*
%{_mandir}/man8/genericups.8*
%{_mandir}/man8/isbmex.8*
%{_mandir}/man8/ivtscd.8*
%{_mandir}/man8/liebert.8*
%{_mandir}/man8/liebert-esp2.8*
%{_mandir}/man8/masterguard.8*
%{_mandir}/man8/metasys.8*
%{_mandir}/man8/mge-shut.8*
%{_mandir}/man8/mge-utalk.8*
%{_mandir}/man8/microdowell.8*
%{_mandir}/man8/nutupsdrv.8*
%{_mandir}/man8/oneac.8*
%{_mandir}/man8/optiups.8*
%{_mandir}/man8/powercom.8*
%{_mandir}/man8/powerman-pdu.8*
%{_mandir}/man8/powerpanel.8*
%{_mandir}/man8/rhino.8*
%{_mandir}/man8/richcomm_usb.8*
%{_mandir}/man8/safenet.8*
%{_mandir}/man8/snmp-ups.8*
%{_mandir}/man8/solis.8*
%{_mandir}/man8/tripplite.8*
%{_mandir}/man8/tripplitesu.8*
%{_mandir}/man8/tripplite_usb.8*
%{_mandir}/man8/upscode2.8*
%{_mandir}/man8/upsd.8*
%{_mandir}/man8/upsdrvctl.8*
%{_mandir}/man8/usbhid-ups.8*
%{_mandir}/man8/victronups.8*
%{_mandir}/man8/netxml-ups.8*
%{_sbindir}/al175
%{_sbindir}/apcupsd-ups
%{_sbindir}/nutdrv_qx
%{_sbindir}/riello_ser
%{_sbindir}/riello_usb
%{_sbindir}/nutdrv_atcl_usb
%{_mandir}/man3/libnutclient.3*
%{_mandir}/man3/libnutclient_commands.3*
%{_mandir}/man3/libnutclient_devices.3*
%{_mandir}/man3/libnutclient_general.3*
%{_mandir}/man3/libnutclient_misc.3*
%{_mandir}/man3/libnutclient_tcp.3*
%{_mandir}/man3/libnutclient_variables.3*
%{_mandir}/man3/nutclient_authenticate.3*
%{_mandir}/man3/nutclient_destroy.3*
%{_mandir}/man3/nutclient_device_forced_shutdown.3*
%{_mandir}/man3/nutclient_device_login.3*
%{_mandir}/man3/nutclient_device_master.3*
%{_mandir}/man3/nutclient_execute_device_command.3*
%{_mandir}/man3/nutclient_get_device_command_description.3*
%{_mandir}/man3/nutclient_get_device_commands.3*
%{_mandir}/man3/nutclient_get_device_description.3*
%{_mandir}/man3/nutclient_get_device_num_logins.3*
%{_mandir}/man3/nutclient_get_device_rw_variables.3*
%{_mandir}/man3/nutclient_get_device_variable_description.3*
%{_mandir}/man3/nutclient_get_device_variable_values.3*
%{_mandir}/man3/nutclient_get_device_variables.3*
%{_mandir}/man3/nutclient_get_devices.3*
%{_mandir}/man3/nutclient_has_device.3*
%{_mandir}/man3/nutclient_has_device_command.3*
%{_mandir}/man3/nutclient_has_device_variable.3*
%{_mandir}/man3/nutclient_logout.3*
%{_mandir}/man3/nutclient_set_device_variable_value.3*
%{_mandir}/man3/nutclient_set_device_variable_values.3*
%{_mandir}/man3/nutclient_tcp_create_client.3*
%{_mandir}/man3/nutclient_tcp_disconnect.3*
%{_mandir}/man3/nutclient_tcp_get_timeout.3*
%{_mandir}/man3/nutclient_tcp_is_connected.3*
%{_mandir}/man3/nutclient_tcp_reconnect.3*
%{_mandir}/man3/nutclient_tcp_set_timeout.3*
%{_mandir}/man3/nutscan_get_serial_ports_list.3*
%{_mandir}/man3/nutscan_scan_eaton_serial.3*
%{_mandir}/man8/al175.8*
%{_mandir}/man8/apcupsd-ups.8*
%{_mandir}/man8/blazer_ser.8*
%{_mandir}/man8/blazer_usb.8*
%{_mandir}/man8/nutdrv_qx.8*
%{_mandir}/man8/nutdrv_atcl_usb.8.xz
%{_mandir}/man8/riello_ser.8*
%{_mandir}/man8/riello_usb.8*

%preun	server
%systemd_preun nut-server

%post	server
%systemd_post nut-server

%postun	server
# Only do this if it is not an upgrade
if [ ! -f %{_sbindir}/upsmon ]; then
   %_postun_userdel %{nutuser}
fi
%systemd_postun nut-server

#----------------------------------------------------------------------------

%package	cgi
Summary:	CGI utils for NUT
Group:		Monitoring
Requires:	apache
Conflicts:	apcupsd

%description	cgi
These programs are part of a developing project to monitor the assortment of
UPSes that are found out there in the field. Many models have serial ports of
some kind that allow some form of state checking. This capability has been
harnessed where possible to allow for safe shutdowns, live status tracking on
web pages, and more.

This package adds the web CGI programs. These can be installed on a separate
machine to the rest of the NUT package.

%files cgi
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ups/hosts.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ups/upsset.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ups/upsstats.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/ups/upsstats-single.html
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/%{name}-cgi.conf
/var/www/cgi-bin/upsimage.cgi
/var/www/cgi-bin/upsset.cgi
/var/www/cgi-bin/upsstats.cgi
%dir %attr(0755,root,root) /var/www/nut
%attr(0644,root,root) /var/www/nut/bottom.html
%attr(0644,root,root) /var/www/nut/header.html
%attr(0644,root,root) /var/www/nut/index.html
%attr(0644,root,root) /var/www/nut/nut-banner.png
%{_mandir}/man5/hosts.conf.5*
%{_mandir}/man5/upsstats.html.5*
%{_mandir}/man5/upsset.conf.5*
%{_mandir}/man8/upsimage.cgi.8*
%{_mandir}/man8/upsset.cgi.8*
%{_mandir}/man8/upsstats.cgi.8*

#----------------------------------------------------------------------------

%package devel
Summary:	Development for NUT Client
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libups} = %{EVRD}

%description devel
These programs are part of a developing project to monitor the assortment of
UPSes that are found out there in the field. Many models have serial ports of
some kind that allow some form of state checking. This capability has been
harnessed where possible to allow for safe shutdowns, live status tracking on
web pages, and more.

This package contains the development header files and libraries
necessary to develop NUT client applications.

%files devel
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/upscli_*.3*
%{_mandir}/man3/upsclient.3*
%{_mandir}/man3/nutscan_add_device_to_device.3*
%{_mandir}/man3/nutscan_add_option_to_device.3*
%{_mandir}/man3/nutscan_cidr_to_ip.3*
%{_mandir}/man3/nutscan_display_parsable.3*
%{_mandir}/man3/nutscan_display_ups_conf.3*
%{_mandir}/man3/nutscan_free_device.3*
%{_mandir}/man3/nutscan_new_device.3*
%{_mandir}/man3/nutscan_scan_avahi.3*
%{_mandir}/man3/nutscan_scan_ipmi.3*
%{_mandir}/man3/nutscan_scan_nut.3*
%{_mandir}/man3/nutscan_scan_snmp.3*
%{_mandir}/man3/nutscan_scan_usb.3*
%{_mandir}/man3/nutscan_scan_xml_http.3*
%{_mandir}/man3/nutscan.3*
%{_mandir}/man3/nutscan_init.3*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .upsset.conf
%patch1 -p1 -b .mdv_conf
%patch2 -p1
%patch6 -p1

# instead of a patch
perl -pi -e "s|/cgi-bin/nut|/cgi-bin|g" data/html/*.html*

%build
%global optflags %{optflags} -std=gnu++11
# this takes care of rpath
#libtoolize --copy --force; aclocal -I m4; autoconf; automake --foreign --add-missing --copy
%serverbuild
#autoreconf -vdi

%configure \
    --enable-static \
    --enable-shared \
    --sysconfdir=%{_sysconfdir}/ups \
    --with-systemdsystemunitdir=%{_unitdir} \
    --with-serial \
    --with-usb \
    --with-snmp \
    --with-cgi \
    --with-dev \
    --with-ssl \
    --with-neon \
%if %{build_doc}
    --with-doc \
%endif
    --with-statepath=/var/state/ups \
    --with-drvpath=%{_sbindir} \
    --with-cgipath=/var/www/cgi-bin \
    --with-htmlpath=/var/www/nut \
    --with-pidpath=/var/run/nut \
    --with-port=3493 \
    --with-user=%{nutuser} \
    --with-group=%{nutuser} \
    --with-pkgconfig-dir=%{_libdir}/pkgconfig \
    --with-hotplug-dir=%{_sysconfdir}/hotplug \
    --with-udev-dir=%{_sysconfdir}/udev

%make

%install
%makeinstall_std

install -d %{buildroot}/var/state/ups
#install -d %{buildroot}/var/run/nut
install -m 0644 %{SOURCE103} -D %{buildroot}%{_prefix}/lib/tmpfiles.d/nut.conf

# move the *.sample config files to their real locations
# we don't need to worry about overwriting anything since
# they are marked as %config files within the package
for file in %{buildroot}%{_sysconfdir}/ups/*.sample
do
    mv $file %{buildroot}%{_sysconfdir}/ups/`basename $file .sample`
done

mv %{buildroot}%{_sysconfdir}/ups/upsmon.conf %{buildroot}%{_sysconfdir}/ups/upsmon.conf.sample
perl -pi -e 's/# RUN_AS_USER nutmon/RUN_AS_USER %{nutuser}/g' %{buildroot}%{_sysconfdir}/ups/upsmon.conf.sample
cp -a %{buildroot}%{_sysconfdir}/ups/upsmon.conf.sample %{buildroot}%{_sysconfdir}/ups/upsmon.conf
cp -af data/driver.list docs/

# udev usb ups stuff
mv %{buildroot}%{_sysconfdir}/udev/rules.d/62-nut-usbups.rules %{buildroot}%{_sysconfdir}/udev/rules.d/70-nut-usbups.rules
cp %{SOURCE102} %{buildroot}%{_sysconfdir}/udev/rules.d/70-nut-usbups.rules

# fix access config files
install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d
cat > %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d/%{name}-cgi.conf << EOF

<Files upsset.cgi>
    Require all denied
    Require local granted
    ErrorDocument 403 "Access denied per %{_sysconfdir}/httpd/conf/webapps.d/%{name}-cgi.conf"
</Files>

Alias /nut /var/www/nut

<Directory "/var/www/nut">
    Require all denied
    Require local granted
    ErrorDocument 403 "Access denied per %{_sysconfdir}/httpd/conf/webapps.d/%{name}-cgi.conf"
</Directory>

EOF

# install missing (forgotten?) headers
install -m0644 tools/nut-scanner/*.h %{buildroot}%{_includedir}/

# cleanup
rm -f %{buildroot}%{_sysconfdir}/ups/nut.conf
rm -f %{buildroot}%{_libdir}/*.*a
rm -f %{buildroot}%{_mandir}/man8/nut-recorder.8*

cp %{SOURCE100} %{buildroot}%{_sysconfdir}/ups/ups.conf
cp %{SOURCE101} %{buildroot}%{_sysconfdir}/ups/upsd.users

#move shutdown rules to right place
mkdir -p %{buildroot}/lib/systemd/system-shutdown
mv %{buildroot}%{_libdir}/systemd/system-shutdown/nutshutdown %{buildroot}/lib/systemd/system-shutdown
rm -r %{buildroot}%{_libdir}/systemd

#install sysuser config
install -d %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE104} %{buildroot}%{_sysusersdir}/ups.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14948 |21mr|nvchecker-2.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	New version checker for software releases 
Name:		nvchecker
Version:	2.16
Release:	1
License:	MIT
Group:		Development/Other
Url:		https://github.com/lilydjwg/nvchecker
Source0:	https://github.com/lilydjwg/nvchecker/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3dist(wheel)
BuildRequires:	python3dist(pip)
Provides:	python3-%{name} = %{EVRD}
BuildArch:	noarch

%description
nvchecker (short for new version checker) is for checking 
if a new version of some software has been released.

%files
%doc README.rst
%{_bindir}/nvchecker
%{_bindir}/nvchecker-ini2toml
%{_bindir}/nvchecker-notify
%{_bindir}/nvcmp
%{_bindir}/nvtake
%{python3_sitelib}/nvchecker_source
%{python3_sitelib}/nvchecker-%{version}*-info
%{python3_sitelib}/nvchecker

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14949 |21mr|nvidia340-340.108-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# to apply patches from Arch Linux AUR without changes
%define _default_patch_fuzz 99

# Do not spend a lot of time on useless generator if it is installed locally
%define __typelib_path %{nil}

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define priority	9700

%define pkgname32	NVIDIA-Linux-x86-%{version}
%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		%{name}-core
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define biarches x86_64

%ifarch %{ix86}
%define nsource %{SOURCE0}
%define pkgname %{pkgname32}
%endif
%ifarch x86_64
%define nsource %{SOURCE1}
%define pkgname %{pkgname64}
%endif

%bcond_without external_glvnd
%bcond_without binary_kernel_modules

# no need to provide libraries in %%nvidia_libdir
%global __provides_exclude ^lib.*\\.so
# 1) Dependencies from itself (from filtered provides)
# 2) (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%if %{__isa_bits} == 64
# also filter 32 bit deps (not ending with "()(64bit)") (libGL.so.1, libX11.so.6, libXext.so.6)
%global __requires_exclude ^libnv.*\\.so|^lib(GL|X11|Xext)\\.so\\.(1|6)$
%else
%global __requires_exclude ^libnv.*\\.so
%endif

%if %{with binary_kernel_modules}
# e.g.: kabi_510 = 5.10.71-generic-1rosa2021.1-x86_64
%if %{mdvver} < 202310
%define kabi_510 %(if rpm -q kernel-5.10-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.10-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define kabi_515 %(if rpm -q kernel-5.15-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.15-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%endif
%define kabi_61 %(if rpm -q kernel-6.1-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.1-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define kabi_66 %(if rpm -q kernel-6.6-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.6-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define version_j %(echo %{VERSION} | awk -F '.' '{print $1}')
%define version_n %(echo %{VERSION} | awk -F '.' '{print $2}')
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%global kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n nvidia470
%endif

%define major %(echo %{version} | awk -F '.' '{print $1}')

# Make parts of different major versions of drivers conflict with one another
# to guarantee that each of them is automaticaly removed when running
# dnf --allowerasing nvidiaXXX-core
# when nvidiaYYY is already installed and pulled nvidiaYYY-n as its dependency.
# n - name
%define nv_cross_conflict(n:) %{expand:
Provides:	nvidia-%{-n*} = %{major}
Conflicts:	nvidia-%{-n*} > %{major}
Conflicts:	nvidia-%{-n*} < %{major}
}

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		nvidia340
Version:	340.108
Release:	13

Source0:	http://download.nvidia.com/XFree86/Linux-x86/%{version}/%{pkgname32}.run
Source1:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2
Source6:	xorg-nvidia.conf

Source100:	nvidia340.rpmlintrc
# Extracted from http://download.nvidia.com/XFree86/Linux-x86_64/470.74/NVIDIA-Linux-x86_64-470.74.run
# sh NVIDIA-Linux-x86_64-470.74.run --extract-only
# cat NVIDIA-Linux-x86_64-470.74/supported-gpus/supported-gpus.json | jq . > nvidia470-supported-gpus.json
# Old drivers, including 390, do not ship such JSONs,
# but JSONs in newer drivers specify which GPUs are supported by old drivers.
# krokodil-legacy-converter from abf.io/import/auto-krokodil will convert it.
Source101:	nvidia470-supported-gpus.json

Patch1:		nvidia340-no-cc-version-check.patch
Patch2:		nvidia-settings-include-xf86vmproto.patch
Patch3:		nvidia-settings-make-vdpaudevicefunctions-static.patch
# https://www.if-not-true-then-false.com/2020/inttf-nvidia-patcher/
# https://aur.archlinux.org/cgit/aur.git/tree/?h=nvidia-340xx
Patch4:		kernel-5.7.patch
Patch5:		kernel-5.8.patch
Patch6:		kernel-5.9.patch
Patch7:		kernel-5.10.patch
Patch8:		kernel-5.11.patch
Patch9:		kernel-5.14.patch
Patch10:	kernel-5.15.patch
Patch11:	kernel-5.16.patch
Patch12:	kernel-5.17.patch
Patch13:	kernel-5.18.patch
Patch14:	kernel-6.0.patch
# https://aur.archlinux.org/cgit/aur.git/tree/?h=nvidia-340xx
Patch15:	kernel-6.2.patch
Patch16:	kernel-6.3.patch
Patch17:	kernel-6.5.patch
Patch18:	kernel-6.6.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides: should-restart = system
ExclusiveArch:	%{ix86} x86_64

BuildRequires:	auto-krokodil-rpm-generators
BuildRequires:	auto-krokodil-legacy-converter
%if %{with binary_kernel_modules}
BuildRequires:	auto-krokodil-rpm-macros
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
BuildRequires:	findutils
BuildRequires:	zstd
%endif
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(libtirpc)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

#-----------------------------------------------------------------------------

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(posttrans): update-alternatives
Requires(postun): update-alternatives
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{EVRD}
Provides:	%{name} = %{EVRD}
# package was renamed
Obsoletes:	x11-driver-video-%{drivername} < %{EVRD}
Conflicts:	x11-driver-video-%{drivername} < %{EVRD}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
Requires:	auto-krokodil-filesystem
%if %{with binary_kernel_modules}
%if %{mdvver} < 202310
%kroko_req_modules_in_nvidia -k 5.10 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 5.15 -f generic -j %{version_j} -n %{version_n}
%endif
%kroko_req_modules_in_nvidia -k 6.1 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 6.6 -f generic -j %{version_j} -n %{version_n}
%endif
Requires:	%{drivername}-cuda-opencl = %{EVRD}
Requires:	(%{drivername}-dracut if dracut)
Requires:	%{drivername}-blacklist

%if %{with external_glvnd}
Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles
%ifarch %{biarches}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Recommends:	libgldispatch0
Recommends:	libopengl0
Recommends:	libglvnd-glx
Recommends:	libglvnd-egl
Recommends:	libglvnd-gles
%endif
%endif
Requires:	libglvnd
Provides:	nvidia = %{EVRD}
%nv_cross_conflict -n core
Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

#-----------------------------------------------------------------------------

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	kernel-source-%{drivername} = %{EVRD}
Requires(post):	kernel-source-%{drivername} = %{EVRD}
%nv_cross_conflict -n dkms

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

#-----------------------------------------------------------------------------

%package -n %{drivername}-dracut
Summary:	Dracut (initramfs) configuration for %{drivername}
Group:		System/Kernel and hardware
Requires:	dracut
Requires:	rosa-kernel-tools
%nv_cross_conflict -n dracut

%description -n %{drivername}-dracut
Dracut (initramfs) configuration for %{drivername}.
Exclude nouveau from initrd (early KMS — inclusion of Nvidia driver into initrd —
is not supported here in nvidia340).

#-----------------------------------------------------------------------------

%package -n %{drivername}-blacklist
Summary:	Blacklist opensource Nouveau driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n blacklist

%description -n %{drivername}-blacklist
Blacklist opensource Nouveau driver.
Proprietary Nvidia driver replaces it.

#-----------------------------------------------------------------------------

%package -n kernel-source-%{drivername}
Summary:	Kernel source of %{drivername}
Group:		System/Kernel and hardware

%description -n kernel-source-%{drivername}
Kernel source of %{drivername}

#-----------------------------------------------------------------------------

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{EVRD}
Requires:	%{drivername}-cuda-opencl = %{EVRD}
%nv_cross_conflict -n devel
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

#-----------------------------------------------------------------------------

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{EVRD}
%nv_cross_conflict -n cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

#-----------------------------------------------------------------------------

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{EVRD}
%nv_cross_conflict -n doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

#-----------------------------------------------------------------------------

%if %{with binary_kernel_modules}
# TODO: package it better
%package debug
Summary:	Debug for %{NAME} binary kernel modules
Group:		Development/Debug
Requires:	auto-krokodil-filesystem
%nv_cross_conflict -n debug

%description debug
Debug for %{NAME} binary kernel modules
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
cd nvidia-settings-%{version}
%patch2 -p1
%patch3 -p1
cd ..
sh %{nsource} --extract-only

pushd %{pkgname}/
%patch1 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
rm -rf usr/src/nv/precompiled
popd

# remove useless check for being root
# we build binary kernel modules as non-root
grep -Irl -- 'suser_sanity_check; then exit 1' | xargs sed -i -e 's,suser_sanity_check; then exit 1,true; then true,g'
# allow to redefine directory
grep -Irl -- 'MODULE_ROOT :=' | xargs sed -i -e 's,MODULE_ROOT :=,MODULE_ROOT ?=,g'
# remove odd args of install(1) to work as non-root
grep -Irl -- '-o root -g root' | xargs sed -i -e 's,-o root -g root,,g'
# also to fix working as non-root
grep -Irl -- 'depmod -a' | xargs sed -i -e 's,depmod -a,true,g'
grep -Irl -- 'modprobe $(MODULE_NAME)' | xargs sed -i -e 's,modprobe $(MODULE_NAME),true $(MODULE_NAME),g'
grep -Irl -- '$(MODULE_OBJECT) installed successfully.' | xargs sed -i -e 's,$(MODULE_OBJECT) installed successfully.,,g'

# We need a different dkms.conf because the one supplied in the upstream 
# is not enough:
# - we need control over where to place the built modules;
# - nvidia-uvm driver should be built on x86_64 only.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
MAKE="make module KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1"
CLEAN="make clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build

%if %{with binary_kernel_modules}
dir0="$PWD"
%if %{mdvver} < 202310
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.10
pushd %{pkgname}/kernel-5.10
%make SYSSRC=/lib/modules/%{kabi_510}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_510}
mv *.ko "$dir0"/%{kabi_510}
popd
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.15
pushd %{pkgname}/kernel-5.15
%make SYSSRC=/lib/modules/%{kabi_515}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_515}
mv *.ko "$dir0"/%{kabi_515}
popd
%endif
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.1
pushd %{pkgname}/kernel-6.1
%make SYSSRC=/lib/modules/%{kabi_61}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_61}
mv *.ko "$dir0"/%{kabi_61}
popd
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.6
pushd %{pkgname}/kernel-6.6
%make SYSSRC=/lib/modules/%{kabi_66}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_66}
mv *.ko "$dir0"/%{kabi_66}
popd
%endif

# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version} STRIP_CMD=true
%make -C nvidia-xconfig-%{version} STRIP_CMD=true
%make -C nvidia-modprobe-%{version} STRIP_CMD=true
%make -C nvidia-persistenced-%{version} STRIP_CMD=true LIBS="-ltirpc -ldl"

%install

%if %{with binary_kernel_modules}
list="%{kabi_66} %{kabi_61}"
%if %{mdvver} < 202310
list+=" %{kabi_515} %{kabi_510}"
%endif
# copied from kernel
# extract debuginfo
# TODO: sync location of *.debug files with kernel
find $list \
	-name "*.ko" | \
	xargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find $list \
	-name "*.ko" | xargs -I '{}' \
	sh -e -c 'cd $(dirname {}) && basename=$(basename {}) && \
		objcopy --add-gnu-debuglink=$basename.debug --strip-debug $basename'
# TODO: maybe make modules compression be a macro to ensure that they
# are compressed in the same way here and in the kernel itself
find $list -maxdepth 1 -type f -name '*.ko' | xargs -I'{}' -P"$(nproc)" zstd --ultra -22 '{}'
for i in $list; do
	mkdir -p %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.ko.zst %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.debug %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
done
%endif

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# Configs
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
Comment=Configure NVIDIA X driver
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=

	rest=${line}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		parseparams arch
%if ! %{with external_glvnd}
		install_file nvidia $nvidia_libdir
%endif
		;;
	GLVND_SYMLINK)
		parseparams arch dest
%if ! %{with external_glvnd}
		install_lib_symlink nvidia $nvidia_libdir
%endif
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		parseparams arch glvnd
%if ! %{with external_glvnd}
		# Skip non-GLVND libraries
		# https://devtalk.nvidia.com/default/topic/915640/unix-graphics-announcements-and-news/multiple-glx-client-libraries-in-the-nvidia-linux-driver-installer-package/
		[ t"${glvnd}" == "tGLVND" ] && install_file nvidia $nvidia_libdir
%endif
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		# Skip non-GLVND libraries
		parseparams arch dest glvnd
%if ! %{with external_glvnd}
		[ t"${glvnd}" == "tGLVND" ] && install_lib_symlink nvidia $nvidia_libdir
%endif
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-debugdump)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	UVM_MODULE_SRC)
%ifarch x86_64
		# NVidia recommends using UVM module on x86_64 only
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/uvm
%endif
		;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
%ifarch %{biarches}
	ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia
%endif

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
%ifarch %{biarches}
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1
%endif

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
%if %{with external_glvnd}
echo "%{_libdir}/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%ifarch %{biarches}
%if %{with external_glvnd}
echo "/usr/lib/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia340" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
FILE=%{SOURCE101} \
BRANCH=390 \
krokodil-legacy-converter > %{buildroot}%{_datadir}/auto-krokodil/drivers/%{name}.json

# Trigger rebuilding initrds
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

# Trigger rebuilding initrds
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

mkdir -p %{buildroot}/etc/dracut.conf.d
cat > %{buildroot}/etc/dracut.conf.d/10-%{drivername}.conf << 'EOF'
# Early KMs appeared in nvidia > 340
#add_drivers+=" nvidia nvidia_modeset nvidia_drm "
#%%ifarch %{x86_64}
#add_drivers+=" nvidia-uvm "
#%%endif
omit_drivers+=" nouveau "
install_optional_items+=" /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf "
EOF

mkdir -p %{buildroot}/etc/modprobe.d
echo "blacklist nouveau" > %{buildroot}/etc/modprobe.d/%{drivername}-blacklist-nouveau.conf

%posttrans -n %{driverpkgname}

%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
%ifarch %{biarches}
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
%endif
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X


%posttrans -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%posttrans -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not 
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files

%{_datadir}/auto-krokodil/drivers/%{name}.json

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation
%{_datadir}/nvidia/monitoring.conf
%{_datadir}/nvidia/pci.ids

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd
%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/tls
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGL.so.%{version}
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libGL.so.1
%{nvidia_libdir}/libEGL.so.1
%{nvidia_libdir}/libEGL.so.%{version}
%{nvidia_libdir}/libGLESv1_CM.so.1
%{nvidia_libdir}/libGLESv1_CM.so.%{version}
%{nvidia_libdir}/libGLESv2.so.2
%{nvidia_libdir}/libGLESv2.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ifr.so.1
%{nvidia_libdir}/libnvidia-ifr.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/tls/libnvidia-tls.so.%{version}
%ifarch %{biarches}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/tls
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGL.so.%{version}
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ifr.so.1
%{nvidia_libdir32}/libnvidia-ifr.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libGL.so.1
%{nvidia_libdir32}/tls/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL.so.1
%{nvidia_libdir32}/libEGL.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM.so.1
%{nvidia_libdir32}/libGLESv1_CM.so.%{version}
%{nvidia_libdir32}/libGLESv2.so.2
%{nvidia_libdir32}/libGLESv2.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%endif

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
%ifarch %{biarches}
# avoid unowned directory
%dir %{_prefix}/lib/vdpau
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1
%endif

%dir %{nvidia_modulesdir}
%{nvidia_modulesdir}/libnvidia-wfb.so.1
%{nvidia_modulesdir}/libnvidia-wfb.so.%{version}
%{nvidia_extensionsdir}/libglx.so.%{version}
%{nvidia_extensionsdir}/libglx.so
%{nvidia_driversdir}/nvidia_drv.so

%files -n %{drivername}-devel
%{_includedir}/%{drivername}/GL/
%{nvidia_libdir}/libGL.so
%{nvidia_libdir}/libEGL.so
%{nvidia_libdir}/libGLESv1_CM.so
%{nvidia_libdir}/libGLESv2.so
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libnvidia-ifr.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-encode.so
%ifarch %{biarches}
%{nvidia_libdir32}/libEGL.so
%{nvidia_libdir32}/libGLESv1_CM.so
%{nvidia_libdir32}/libGLESv2.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libGL.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-ifr.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-fbc.so
%endif

%files -n dkms-%{drivername}
%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n kernel-source-%{drivername}
%license %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}
%exclude %{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n %{drivername}-dracut
%config(noreplace) /etc/dracut.conf.d/10-%{drivername}.conf
/var/spool/initramfs-regen/%{drivername}-dracut

%files -n %{drivername}-blacklist
%config(noreplace) /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf

%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%ifarch x86_64
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%endif
%ifarch %{biarches}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1
%endif

%if %{with binary_kernel_modules}
%if %{mdvver} < 202310
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.10 -m %(if rpm -q kernel-5.10-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.10-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_510} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.15 -m %(if rpm -q kernel-5.15-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.15-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_515} -s %{NAME} -c .zst
%endif
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.1 -m %(if rpm -q kernel-6.1-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.1-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_61} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.6 -m %(if rpm -q kernel-6.6-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.6-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_66} -s %{NAME} -c .zst

%files debug
%{kroko_kmods_dir}/*/*.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14950 |21mr|nvidia390-390.157-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# to apply patches from Arch Linux AUR without changes
%define _default_patch_fuzz 99

# some files do not exist in 32 bit kernel sources, skip them
%ifarch %{ix86}
%define patch_kostylen || :
%else
%define patch_kostylen %{nil}
%endif

# Do not spend a lot of time on useless generator if it is installed locally
%define __typelib_path %{nil}

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define priority	9700

%define pkgname32	NVIDIA-Linux-x86-%{version}
%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		%{name}-core
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define biarches x86_64

%ifarch %{ix86}
%define nsource %{SOURCE0}
%define pkgname %{pkgname32}
%endif
%ifarch x86_64
%define nsource %{SOURCE1}
%define pkgname %{pkgname64}
%endif

%bcond_without external_glvnd
%bcond_without binary_kernel_modules

# no need to provide libraries in %%nvidia_libdir
%global __provides_exclude ^lib.*\\.so
# 1) Dependencies from itself (from filtered provides)
# 2) (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%if %{__isa_bits} == 64
# also filter 32 bit deps (not ending with "()(64bit)") (libGL.so.1, libX11.so.6, libXext.so.6)
%global __requires_exclude ^libnv.*\\.so|^lib(GL|X11|Xext)\\.so\\.(1|6)$
%else
%global __requires_exclude ^libnv.*\\.so
%endif

%if %{with binary_kernel_modules}
# e.g.: kabi_510 = 5.10.71-generic-1rosa2021.1-x86_64
%if %{mdvver} < 202310
%define kabi_510 %(if rpm -q kernel-5.10-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.10-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define kabi_515 %(if rpm -q kernel-5.15-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.15-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%endif
%define kabi_61 %(if rpm -q kernel-6.1-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.1-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define kabi_66 %(if rpm -q kernel-6.6-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.6-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define version_j %(echo %{VERSION} | awk -F '.' '{print $1}')
%define version_n %(echo %{VERSION} | awk -F '.' '{print $2}')
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%global kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n nvidia470
%endif

%define major %(echo %{version} | awk -F '.' '{print $1}')

# Make parts of different major versions of drivers conflict with one another
# to guarantee that each of them is automaticaly removed when running
# dnf --allowerasing nvidiaXXX-core
# when nvidiaYYY is already installed and pulled nvidiaYYY-n as its dependency.
# n - name
%define nv_cross_conflict(n:) %{expand:
Provides:	nvidia-%{-n*} = %{major}
Conflicts:	nvidia-%{-n*} > %{major}
Conflicts:	nvidia-%{-n*} < %{major}
}

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		nvidia390
Version:	390.157
Release:	6

Source0:	http://download.nvidia.com/XFree86/Linux-x86/%{version}/%{pkgname32}.run
Source1:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2
# https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/xorg-nvidia.conf
Source6:	xorg-nvidia.conf

Source100:	%{name}.rpmlintrc
# Extracted from http://download.nvidia.com/XFree86/Linux-x86_64/470.74/NVIDIA-Linux-x86_64-470.74.run
# sh NVIDIA-Linux-x86_64-470.74.run --extract-only
# cat NVIDIA-Linux-x86_64-470.74/supported-gpus/supported-gpus.json | jq . > nvidia470-supported-gpus.json
# Old drivers, including 390, do not ship such JSONs,
# but JSONs in newer drivers specify which GPUs are supported by old drivers.
# krokodil-legacy-converter from abf.io/import/auto-krokodil will convert it.
Source101:	nvidia470-supported-gpus.json

# Starting from v. 352.x, the build system checks if the kernel provides
# phys_to_dma() function and if so, tries to use that function. However,
# phys_to_dma() is nether exported nor inline on x86-32 with
# CONFIG_X86_DMA_REMAP=y (selected by CONFIG_STA2X11), so a non-functional
# driver is built then.
# However, phys_to_dma() does nothing special except for some exotic
# hardware. If the function is missing, the driver seems to do the necessary
# conversions right, so let us assume it is missing.
Patch1:		%{name}-no-phys_to_dma.patch

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch2:		no-cc-version-check.patch

# https://aur.archlinux.org/cgit/aur.git/tree/?h=nvidia-390xx-utils
Patch3:		kernel-4.16+-memory-encryption.patch
Patch4:		kernel-6.2.patch
Patch5:		kernel-6.3.patch
Patch6:		kernel-6.4.patch
Patch7:		kernel-6.5.patch
Patch8:		kernel-6.6.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system
ExclusiveArch:	%{ix86} x86_64

BuildRequires:	auto-krokodil-rpm-generators
BuildRequires:	auto-krokodil-legacy-converter
%if %{with binary_kernel_modules}
BuildRequires:	auto-krokodil-rpm-macros
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
%ifnarch %{ix86}
BuildRequires:	kernel-6.6-generic-devel
%endif
BuildRequires:	findutils
BuildRequires:	zstd
%endif
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

#-----------------------------------------------------------------------------

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(posttrans): update-alternatives
Requires(postun): update-alternatives
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{EVRD}
Provides:	%{name} = %{EVRD}
# package was renamed
Obsoletes:	x11-driver-video-%{drivername} < %{EVRD}
Conflicts:	x11-driver-video-%{drivername} < %{EVRD}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
Requires:	auto-krokodil-filesystem
%if %{with binary_kernel_modules}
%if %{mdvver} < 202310
%kroko_req_modules_in_nvidia -k 5.10 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 5.15 -f generic -j %{version_j} -n %{version_n}
%endif
%kroko_req_modules_in_nvidia -k 6.1 -f generic -j %{version_j} -n %{version_n}
%ifnarch %{ix86}
%kroko_req_modules_in_nvidia -k 6.6 -f generic -j %{version_j} -n %{version_n}
%endif
%endif
Requires:	%{drivername}-cuda-opencl = %{EVRD}

# https://forum.rosalinux.ru/viewtopic.php?p=106968#p106968
# XXX Maybe better use Supplements in plasma5-kwin-wayland-nvidia
Recommends:	(plasma5-kwin-wayland-nvidia if plasma5-kwin)
Requires:	(%{drivername}-dracut if dracut)
Requires:	%{drivername}-blacklist

%if %{with external_glvnd}
Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles
%ifarch %{biarches}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Recommends:	libgldispatch0
Recommends:	libopengl0
Recommends:	libglvnd-glx
Recommends:	libglvnd-egl
Recommends:	libglvnd-gles
%endif
%endif
Recommends:	vulkan
Requires:	libglvnd
Provides:	nvidia = %{EVRD}
%nv_cross_conflict -n core
Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

#-----------------------------------------------------------------------------

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	kernel-source-%{drivername} = %{EVRD}
Requires(post):	kernel-source-%{drivername} = %{EVRD}
%nv_cross_conflict -n dkms

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

#-----------------------------------------------------------------------------

%package -n %{drivername}-dracut
Summary:	Dracut (initramfs) configuration for %{drivername}
Group:		System/Kernel and hardware
Requires:	dracut
Requires:	rosa-kernel-tools
%nv_cross_conflict -n dracut

%description -n %{drivername}-dracut
Dracut (initramfs) configuration for %{drivername}.
Include Nvidia kernel modules into initramfs (initrd).

#-----------------------------------------------------------------------------

%package -n %{drivername}-blacklist
Summary:	Blacklist opensource Nouveau driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n blacklist

%description -n %{drivername}-blacklist
Blacklist opensource Nouveau driver.
Proprietary Nvidia driver replaces it.

#-----------------------------------------------------------------------------

%package -n kernel-source-%{drivername}
Summary:	Kernel source of %{drivername}
Group:		System/Kernel and hardware

%description -n kernel-source-%{drivername}
Kernel source of %{drivername}

#-----------------------------------------------------------------------------

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{EVRD}
Requires:	%{drivername}-cuda-opencl = %{EVRD}
%nv_cross_conflict -n devel
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

#-----------------------------------------------------------------------------

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{EVRD}
%nv_cross_conflict -n cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

#-----------------------------------------------------------------------------

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{EVRD}
%nv_cross_conflict -n doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

#-----------------------------------------------------------------------------

%if %{with binary_kernel_modules}
# TODO: package it better
%package debug
Summary:	Debug for %{NAME} binary kernel modules
Group:		Development/Debug
Requires:	auto-krokodil-filesystem
%nv_cross_conflict -n debug

%description debug
Debug for %{NAME} binary kernel modules
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{nsource} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
%patch2 -p1
%patch3 -p1
%ifnarch %{ix86}
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%endif
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
%ifarch x86_64
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
%else
MAKE="'make' NV_EXCLUDE_BUILD_MODULES='nvidia-uvm' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
%endif
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build

%if %{with binary_kernel_modules}
dir0="$PWD"
%if %{mdvver} < 202310
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.10
pushd %{pkgname}/kernel-5.10
%make SYSSRC=/lib/modules/%{kabi_510}/source
mkdir -p "$dir0"/%{kabi_510}
mv *.ko "$dir0"/%{kabi_510}
popd
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.15
pushd %{pkgname}/kernel-5.15
%make SYSSRC=/lib/modules/%{kabi_515}/source
mkdir -p "$dir0"/%{kabi_515}
mv *.ko "$dir0"/%{kabi_515}
popd
%endif
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.1
pushd %{pkgname}/kernel-6.1
%make SYSSRC=/lib/modules/%{kabi_61}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_61}
mv *.ko "$dir0"/%{kabi_61}
popd
%ifnarch %{ix86}
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.6
pushd %{pkgname}/kernel-6.6
%make SYSSRC=/lib/modules/%{kabi_66}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_66}
mv *.ko "$dir0"/%{kabi_66}
popd
%endif
%endif

# The code contains dozens on top of dozens on top of dozens of "false" positives
# -fcommon to w/a build failures with GCC 10+
export CFLAGS="%optflags -Wno-error=format-security -fcommon"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

%if %{with binary_kernel_modules}
list="%{kabi_61}"
%ifnarch %{ix86}
list+=" %{kabi_66}"
%endif
%if %{mdvver} < 202310
list+=" %{kabi_515} %{kabi_510}"
%endif
# copied from kernel
# extract debuginfo
# TODO: sync location of *.debug files with kernel
find $list \
	-name "*.ko" | \
	xargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find $list \
	-name "*.ko" | xargs -I '{}' \
	sh -e -c 'cd $(dirname {}) && basename=$(basename {}) && \
		objcopy --add-gnu-debuglink=$basename.debug --strip-debug $basename'
# TODO: maybe make modules compression be a macro to ensure that they
# are compressed in the same way here and in the kernel itself
find $list -maxdepth 1 -type f -name '*.ko' | xargs -I'{}' -P"$(nproc)" zstd --ultra -22 '{}'
for i in $list; do
	mkdir -p %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.ko.zst %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.debug %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
done
%endif

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
Comment=Configure NVIDIA X driver
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# Configs
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		parseparams arch
%if ! %{with external_glvnd}
		install_file nvidia $nvidia_libdir
%endif
		;;
	GLVND_SYMLINK)
		parseparams arch dest
%if ! %{with external_glvnd}
		install_lib_symlink nvidia $nvidia_libdir
%endif
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		parseparams arch glvnd
%if ! %{with external_glvnd}
		# Skip non-GLVND libraries
		# https://devtalk.nvidia.com/default/topic/915640/unix-graphics-announcements-and-news/multiple-glx-client-libraries-in-the-nvidia-linux-driver-installer-package/
		[ t"${glvnd}" == "tGLVND" ] && install_file nvidia $nvidia_libdir
%endif
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		# Skip non-GLVND libraries
		parseparams arch dest glvnd
%if ! %{with external_glvnd}
		[ t"${glvnd}" == "tGLVND" ] && install_lib_symlink nvidia $nvidia_libdir
%endif
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-debugdump)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		install_file nvidia %{_sysconfdir}/vulkan/icd.d
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
%ifarch %{biarches}
	ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia
%endif

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
%ifarch %{biarches}
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1
%endif

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
%if %{with external_glvnd}
echo "%{_libdir}/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%ifarch %{biarches}
%if %{with external_glvnd}
echo "/usr/lib/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia390" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

%if %{with external_glvnd}
LIBGL_SUBST=libGLX_nvidia.so.0
%else
LIBGL_SUBST=libGL.so.1
%endif
mv %{buildroot}%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json{.template,}
sed -ri "s,__NV_VK_ICD__,${LIBGL_SUBST},g" %{buildroot}%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
FILE=%{SOURCE101} \
BRANCH=390 \
krokodil-legacy-converter > %{buildroot}%{_datadir}/auto-krokodil/drivers/%{name}.json

# Trigger rebuilding initrds
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

mkdir -p %{buildroot}/etc/dracut.conf.d
cat > %{buildroot}/etc/dracut.conf.d/10-%{drivername}.conf << 'EOF'
add_drivers+=" nvidia nvidia_modeset nvidia_drm "
%ifarch %{x86_64}
add_drivers+=" nvidia-uvm "
%endif
omit_drivers+=" nouveau "
install_optional_items+=" /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf "
EOF

mkdir -p %{buildroot}/etc/modprobe.d
echo "blacklist nouveau" > %{buildroot}/etc/modprobe.d/%{drivername}-blacklist-nouveau.conf

%posttrans -n %{driverpkgname}

%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
%ifarch %{biarches}
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
%endif
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir} \

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X


%posttrans -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%posttrans -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files

%{_datadir}/auto-krokodil/drivers/%{name}.json

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd
%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/tls
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%if ! %{with external_glvnd}
%{nvidia_libdir}/libGL.so.1.0.0
%{nvidia_libdir}/libGL.so.1
%{nvidia_libdir}/libGLX.so.0
%{nvidia_libdir}/libGLdispatch.so.0
%{nvidia_libdir}/libOpenGL.so.0
%{nvidia_libdir}/libEGL.so.1
%{nvidia_libdir}/libGLESv1_CM.so.1
%{nvidia_libdir}/libGLESv2.so.2
%endif
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-fatbinaryloader.so.%{version}
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ifr.so.1
%{nvidia_libdir}/libnvidia-ifr.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/tls/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%ifarch %{biarches}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/tls
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%if ! %{with external_glvnd}
%{nvidia_libdir32}/libGL.so.1.0.0
%{nvidia_libdir32}/libGL.so.1
%{nvidia_libdir32}/libGLX.so.0
%{nvidia_libdir32}/libGLdispatch.so.0
%{nvidia_libdir32}/libOpenGL.so.0
%{nvidia_libdir32}/libEGL.so.1
%{nvidia_libdir32}/libGLESv1_CM.so.1
%{nvidia_libdir32}/libGLESv2.so.2
%endif
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-fatbinaryloader.so.%{version}
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ifr.so.1
%{nvidia_libdir32}/libnvidia-ifr.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/tls/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%endif

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
%ifarch %{biarches}
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1
%endif

%dir %{nvidia_modulesdir}
%{nvidia_modulesdir}/libnvidia-wfb.so.1
%{nvidia_modulesdir}/libnvidia-wfb.so.%{version}
%{nvidia_extensionsdir}/libglx.so.%{version}
%{nvidia_extensionsdir}/libglx.so
%{nvidia_driversdir}/nvidia_drv.so

%files -n %{drivername}-devel
%{_includedir}/%{drivername}
%if ! %{with external_glvnd}
%{nvidia_libdir}/libGL.so
%{nvidia_libdir}/libOpenGL.so
%{nvidia_libdir}/libGLX.so
%{nvidia_libdir}/libEGL.so
%{nvidia_libdir}/libGLESv1_CM.so
%{nvidia_libdir}/libGLESv2.so
%endif
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libnvidia-ifr.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-encode.so
%ifarch %{biarches}
%if ! %{with external_glvnd}
%{nvidia_libdir32}/libGL.so
%{nvidia_libdir32}/libOpenGL.so
%{nvidia_libdir32}/libGLX.so
%{nvidia_libdir32}/libEGL.so
%{nvidia_libdir32}/libGLESv1_CM.so
%{nvidia_libdir32}/libGLESv2.so
%endif
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libnvidia-ifr.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-encode.so
%endif

%files -n dkms-%{drivername}
%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n kernel-source-%{drivername}
%license %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}
%exclude %{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n %{drivername}-dracut
%config(noreplace) /etc/dracut.conf.d/10-%{drivername}.conf
/var/spool/initramfs-regen/%{drivername}-dracut

%files -n %{drivername}-blacklist
%config(noreplace) /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf

%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%ifarch x86_64
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%endif
%ifarch %{biarches}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1
%endif

%if %{with binary_kernel_modules}
%if %{mdvver} < 202310
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.10 -m %(if rpm -q kernel-5.10-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.10-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_510} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.15 -m %(if rpm -q kernel-5.15-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.15-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_515} -s %{NAME} -c .zst
%endif
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.1 -m %(if rpm -q kernel-6.1-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.1-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_61} -s %{NAME} -c .zst
%ifnarch %{ix86}
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.6 -m %(if rpm -q kernel-6.6-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.6-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_66} -s %{NAME} -c .zst
%endif

%files debug
%{kroko_kmods_dir}/*/*.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14951 |21mr|nvidia470-470.256.02-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# Do not spend a lot of time on useless generator if it is installed locally
%define __typelib_path %{nil}

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		%{name}-core
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_wine	        %{_libdir}/%{drivername}/wine
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define pkgname %{pkgname64}

%bcond_without force_32bit_deps
%bcond_without binary_kernel_modules

# no need to provide libraries in %%nvidia_libdir
%global __provides_exclude ^lib.*\\.so
# 1) Dependencies from itself (from filtered provides) (libnv*, libEGL_nvidia*)
# 2) (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%global __requires_exclude ^lib(EGL_|)nv.*\\.so|^lib(GL|X11|Xext)\\.so\\.(1|6)$

%if %{with binary_kernel_modules}
# e.g.: kabi_510 = 5.10.71-generic-1rosa2021.1-x86_64
%if %{mdvver} < 202310
%define kabi_510 %(if rpm -q kernel-5.10-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.10-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define kabi_515 %(if rpm -q kernel-5.15-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.15-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%endif
%define kabi_61 %(if rpm -q kernel-6.1-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.1-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define kabi_66 %(if rpm -q kernel-6.6-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.6-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define version_j %(echo %{VERSION} | awk -F '.' '{print $1}')
%define version_n %(echo %{VERSION} | awk -F '.' '{print $2}')
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%global kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n nvidia470
%endif

%define major %(echo %{version} | awk -F '.' '{print $1}')

# Make parts of different major versions of drivers conflict with one another
# to guarantee that each of them is automaticaly removed when running
# dnf --allowerasing nvidiaXXX-core
# when nvidiaYYY is already installed and pulled nvidiaYYY-n as its dependency.
# n - name
%define nv_cross_conflict(n:) %{expand:
Provides:	nvidia-%{-n*} = %{major}
Conflicts:	nvidia-%{-n*} > %{major}
Conflicts:	nvidia-%{-n*} < %{major}
}

%if %{mdvver} >= 202310
%define _firmwarepath /usr/lib/firmware
%else
%define _firmwarepath /lib/firmware
%endif

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		nvidia470
Version:	470.256.02
Release:	3

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2
Source6:	https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/xorg-nvidia.conf

Source100:	%{name}.rpmlintrc

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	%{x86_64}

BuildRequires:	auto-krokodil-rpm-generators
%if %{with binary_kernel_modules}
BuildRequires:	auto-krokodil-rpm-macros
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
BuildRequires:	findutils
BuildRequires:	zstd
%endif
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

#-----------------------------------------------------------------------------

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{EVRD}
Provides:	%{name} = %{EVRD}
# package was renamed
Obsoletes:	x11-driver-video-%{drivername} < %{EVRD}
Conflicts:	x11-driver-video-%{drivername} < %{EVRD}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
Requires:	auto-krokodil-filesystem
%if %{with binary_kernel_modules}
%if %{mdvver} < 202310
%kroko_req_modules_in_nvidia -k 5.10 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 5.15 -f generic -j %{version_j} -n %{version_n}
%endif
%kroko_req_modules_in_nvidia -k 6.1 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 6.6 -f generic -j %{version_j} -n %{version_n}
%endif
Requires:	%{drivername}-cuda-opencl = %{EVRD}

# https://forum.rosalinux.ru/viewtopic.php?p=106968#p106968
# XXX Maybe better use Supplements in plasma5-kwin-wayland-nvidia
Recommends:	(plasma5-kwin-wayland-nvidia if plasma5-kwin)
Requires:	(%{drivername}-dracut if dracut)
Requires:	%{drivername}-blacklist
# no Requires from -wayland subpackage because nvidia470 works badly with Wayland,
# but some how does it; some users may manually install nvidia470-wayland

Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles

# Package cannot be installed as BuildRequires if it requires both
# 64 and 32 bit packages. Needed for python-pyopencl build on ABF.
%if %{with force_32bit_deps}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Recommends:	libgldispatch0
Recommends:	libopengl0
Recommends:	libglvnd-glx
Recommends:	libglvnd-egl
Recommends:	libglvnd-gles
%endif
Requires:	egl-wayland
Requires:	vulkan
Requires:	libglvnd
Provides:	nvidia = %{EVRD}
%nv_cross_conflict -n core
#Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

#-----------------------------------------------------------------------------

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	kernel-source-%{drivername} = %{EVRD}
Requires(post):	kernel-source-%{drivername} = %{EVRD}
%nv_cross_conflict -n dkms

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

#-----------------------------------------------------------------------------

%package -n %{drivername}-dracut
Summary:	Dracut (initramfs) configuration for %{drivername}
Group:		System/Kernel and hardware
Requires:	dracut
Requires:	rosa-kernel-tools
%nv_cross_conflict -n dracut

%description -n %{drivername}-dracut
Dracut (initramfs) configuration for %{drivername}.
Include Nvidia kernel modules into initramfs (initrd).

#-----------------------------------------------------------------------------

%package -n %{drivername}-blacklist
Summary:	Blacklist opensource Nouveau driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n blacklist

%description -n %{drivername}-blacklist
Blacklist opensource Nouveau driver.
Proprietary Nvidia driver replaces it.

#-----------------------------------------------------------------------------

%package -n %{drivername}-wayland
Summary:	NVIDIA Wayland driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n wayland

%description -n %{drivername}-wayland
Proprietary Nvidia wayland driver.

#-----------------------------------------------------------------------------

%package -n kernel-source-%{drivername}
Summary:	Kernel source of %{drivername}
Group:		System/Kernel and hardware

%description -n kernel-source-%{drivername}
Kernel source of %{drivername}

#-----------------------------------------------------------------------------

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{EVRD}
Requires:	%{drivername}-cuda-opencl = %{EVRD}
%nv_cross_conflict -n devel
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

#-----------------------------------------------------------------------------

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{EVRD}
%nv_cross_conflict -n cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

#-----------------------------------------------------------------------------

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{EVRD}
%nv_cross_conflict -n doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

#-----------------------------------------------------------------------------

%if %{with binary_kernel_modules}
# TODO: package it better
%package debug
Summary:	Debug for %{NAME} binary kernel modules
Group:		Development/Debug
Requires:	auto-krokodil-filesystem
%nv_cross_conflict -n debug

%description debug
Debug for %{NAME} binary kernel modules
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build

%if %{with binary_kernel_modules}
dir0="$PWD"
%if %{mdvver} < 202310
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.10
pushd %{pkgname}/kernel-5.10
%make SYSSRC=/lib/modules/%{kabi_510}/source
mkdir -p "$dir0"/%{kabi_510}
mv *.ko "$dir0"/%{kabi_510}
popd
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.15
pushd %{pkgname}/kernel-5.15
%make SYSSRC=/lib/modules/%{kabi_515}/source
mkdir -p "$dir0"/%{kabi_515}
mv *.ko "$dir0"/%{kabi_515}
popd
%endif
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.1
pushd %{pkgname}/kernel-6.1
%make SYSSRC=/lib/modules/%{kabi_61}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_61}
mv *.ko "$dir0"/%{kabi_61}
popd
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.6
pushd %{pkgname}/kernel-6.6
%make SYSSRC=/lib/modules/%{kabi_66}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_66}
mv *.ko "$dir0"/%{kabi_66}
popd
%endif

# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

%if %{with binary_kernel_modules}
list="%{kabi_66} %{kabi_61}"
%if %{mdvver} < 202310
list+=" %{kabi_515} %{kabi_510}"
%endif
# copied from kernel
# extract debuginfo
# TODO: sync location of *.debug files with kernel
find $list \
	-name "*.ko" | \
	xargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find $list \
	-name "*.ko" | xargs -I '{}' \
	sh -e -c 'cd $(dirname {}) && basename=$(basename {}) && \
		objcopy --add-gnu-debuglink=$basename.debug --strip-debug $basename'
# TODO: maybe make modules compression be a macro to ensure that they
# are compressed in the same way here and in the kernel itself
find $list -maxdepth 1 -type f -name '*.ko' | xargs -I'{}' -P"$(nproc)" zstd --ultra -22 '{}'
for i in $list; do
	mkdir -p %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.ko.zst %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.debug %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
done
%endif

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
GenericName=Configure NVIDIA X driver
GenericName[ru]=Настройка драйвера NVIDIA X
Comment=Configure NVIDIA X driver
Comment[ru]=Настройка драйвера NVIDIA X
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# Configs
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
		
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		;;
	GLVND_SYMLINK)
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-sleep.sh|*nvidia-debugdump|*nvidia-ngx-updater)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	INTERNAL_UTILITY*)
		case "$file" in
		*libglvnd_install_checker*)
			# ROSA does provide libglvnd, the checker is not needed.
			continue
			;;
		*)
			error_unhandled "unknown file $file of type $type to be installed, see .manifest."
			;;
		esac
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		parseparams dest
		install_file nvidia %{_sysconfdir}/vulkan/${dest}
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	FIRMWARE)
		install_file nvidia %{_firmwarepath}/nvidia
		;;
	SYSTEMD_UNIT)
		install_file nvidia %{_unitdir}
		;;
	SYSTEMD_UNIT_SYMLINK)
		;;
	SYSTEMD_SLEEP_SCRIPT)
		install_file nvidia %{_systemd_util_dir}/system-sleep
		;;
		WINE_LIB)
        install_file nvidia %{_libdir}/%{drivername}/wine
        ;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-ngx-updater
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-sleep.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
echo "%{_libdir}/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

echo "/usr/lib/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
install -m0644 supported-gpus/supported-gpus.json %{buildroot}%{_datadir}/auto-krokodil/drivers/%{name}.json

# Trigger rebuilding initrds
# For rosa-kernel-tools
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

mkdir -p %{buildroot}/etc/dracut.conf.d
cat > %{buildroot}/etc/dracut.conf.d/10-%{drivername}.conf << 'EOF'
add_drivers+=" nvidia nvidia_modeset nvidia_drm "
%ifarch %{x86_64}
add_drivers+=" nvidia-uvm "
%endif
omit_drivers+=" nouveau "
install_optional_items+=" /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf "
install_optional_items+=" /etc/modprobe.d/%{drivername}-wayland.conf "
EOF

mkdir -p %{buildroot}/etc/modprobe.d
echo "blacklist nouveau" > %{buildroot}/etc/modprobe.d/%{drivername}-blacklist-nouveau.conf
echo "options nvidia_drm modeset=1" > %{buildroot}/etc/modprobe.d/%{drivername}-wayland.conf

# TODO: install each license separately
sed -i'' -e '/LICENSE/d' nvidia.files

%posttrans -n %{driverpkgname}
%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-ngx-updater nvidia-ngx-updater %{nvidia_bindir}/nvidia-ngx-updater \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-sleep.sh nvidia-sleep %{nvidia_bindir}/nvidia-sleep.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%posttrans -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%posttrans -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files

%{_datadir}/auto-krokodil/drivers/%{name}.json

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%{_sysconfdir}/vulkan/implicit_layer.d/nvidia_layers.json
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd
%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-ngx-updater
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-sleep.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-ngx-updater
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-sleep.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

%{_firmwarepath}/nvidia/gsp.bin
%{_unitdir}/nvidia-hibernate.service
%{_unitdir}/nvidia-resume.service
%{_unitdir}/nvidia-suspend.service
%{_systemd_util_dir}/system-sleep/nvidia

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ifr.so.1
%{nvidia_libdir}/libnvidia-ifr.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-cbl.so.%{version}
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%{nvidia_libdir}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir}/libnvidia-opticalflow.so.1
%{nvidia_libdir}/libnvidia-allocator.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.1
%{nvidia_libdir}/libnvidia-ngx.so.%{version}
%{nvidia_libdir}/libnvidia-nvvm.so.4
%{nvidia_libdir}/libnvidia-nvvm.so.4.0.0
%{nvidia_libdir}/libnvidia-vulkan-producer.so.%{version}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ifr.so.1
%{nvidia_libdir32}/libnvidia-ifr.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.1
%{nvidia_libdir32}/libnvidia-allocator.so.%{version}
%{nvidia_libdir32}/libnvidia-allocator.so.1

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_driversdir}/nvidia_drv.so

%{nvidia_wine}/_nvngx.dll
%{nvidia_wine}/nvngx.dll

%files -n %{drivername}-devel
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libnvidia-ifr.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-nvvm.so
%{nvidia_libdir}/libnvidia-encode.so
%{nvidia_libdir}/libnvidia-opticalflow.so
%{nvidia_libdir}/libnvidia-allocator.so
%{nvidia_libdir}/libnvidia-vulkan-producer.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libnvidia-ifr.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-opticalflow.so
%{nvidia_libdir32}/libnvidia-allocator.so


%files -n dkms-%{drivername}
%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n kernel-source-%{drivername}
%license %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}
%exclude %{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n %{drivername}-dracut
%config(noreplace) /etc/dracut.conf.d/10-%{drivername}.conf
/var/spool/initramfs-regen/%{drivername}-dracut

%files -n %{drivername}-blacklist
%config(noreplace) /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf

%files -n %{drivername}-wayland
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-wayland.conf

%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

%if %{with binary_kernel_modules}
%if %{mdvver} < 202310
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.10 -m %(if rpm -q kernel-5.10-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.10-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_510} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.15 -m %(if rpm -q kernel-5.15-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.15-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_515} -s %{NAME} -c .zst
%endif
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.1 -m %(if rpm -q kernel-6.1-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.1-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_61} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.6 -m %(if rpm -q kernel-6.6-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.6-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_66} -s %{NAME} -c .zst

%files debug
%{kroko_kmods_dir}/*/*.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14952 |21mr|nvidia510-510.108.03-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# Do not spend a lot of time on useless generator if it is installed locally
%define __typelib_path %{nil}

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		%{name}-core
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_wine	        %{_libdir}/%{drivername}/wine
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define pkgname %{pkgname64}

%bcond_without force_32bit_deps
%bcond_without binary_kernel_modules

# no need to provide libraries in %%nvidia_libdir
%global __provides_exclude ^lib.*\\.so
# 1) Dependencies from itself (from filtered provides) (libnv*, libEGL_nvidia*)
# 2) (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%global __requires_exclude ^lib(EGL_|)nv.*\\.so|^lib(GL|X11|Xext)\\.so\\.(1|6)$

%if %{with binary_kernel_modules}
# e.g.: 5.10.71-generic-1rosa2021.1-x86_64
%define kabi_510 %(if rpm -q kernel-5.10-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define kabi_515 %(if rpm -q kernel-5.15-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define kabi_61 %(if rpm -q kernel-6.1-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.1-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define version_j %(echo %{VERSION} | awk -F '.' '{print $1}')
%define version_n %(echo %{VERSION} | awk -F '.' '{print $2}')
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%global kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n nvidia470
%endif

%if %{with binary_kernel_modules}
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%define kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%endif

%define major %(echo %{version} | awk -F '.' '{print $1}')

# Make parts of different major versions of drivers conflict with one another
# to guarantee that each of them is automaticaly removed when running
# dnf --allowerasing nvidiaXXX-core
# when nvidiaYYY is already installed and pulled nvidiaYYY-n as its dependency.
# n - name
%define nv_cross_conflict(n:) %{expand:
Provides:	nvidia-%{-n*} = %{major}
Conflicts:	nvidia-%{-n*} > %{major}
Conflicts:	nvidia-%{-n*} < %{major}
}

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		nvidia510
Version:	510.108.03
Release:	2

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2
Source6:	https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/xorg-nvidia.conf
Source7:	60-nvidia.rules
Source10:	60-nvidia-uvm.rules
Source11:	nvidia-uvm.conf
Source13:	10-nvidia.rules
Source14:	nvidia-fallback.service
Source16:	nvidia-power-management.conf
Source17:	70-nvidia.preset

Source100:	%{name}.rpmlintrc

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	%{x86_64}

BuildRequires:	auto-krokodil-rpm-generators
%if %{with binary_kernel_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	findutils
BuildRequires:	zstd
%endif
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

#-----------------------------------------------------------------------------

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{EVRD}
Provides:	%{name} = %{EVRD}
# package was renamed
Obsoletes:	x11-driver-video-%{drivername} < %{EVRD}
Conflicts:	x11-driver-video-%{drivername} < %{EVRD}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
Requires:	auto-krokodil-filesystem
%if %{with binary_kernel_modules}
%kroko_req_modules_in_nvidia -k 5.10 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 5.15 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 6.1 -f generic -j %{version_j} -n %{version_n}
%endif
Requires:	%{drivername}-cuda-opencl = %{EVRD}
# EOLed kernels built without auto-krokodil
Requires:	(kernel-modules-%{name}-5.16.19-1-generic if (kernel-5.16-generic = 5.16.19-1))
Requires:	(kernel-modules-%{name}-5.17.11-1-generic if (kernel-5.17-generic = 5.17.11-1))
Requires:	(kernel-modules-%{name}-5.16.19-2-generic if (kernel-5.16-generic = 5.16.19-2))
Requires:	(kernel-modules-%{name}-5.17.11-2-generic if (kernel-5.17-generic = 5.17.11-2))

# https://forum.rosalinux.ru/viewtopic.php?p=106968#p106968
# XXX Maybe better use Supplements in plasma5-kwin-wayland-nvidia
Recommends:	(plasma5-kwin-wayland-nvidia if plasma5-kwin)
Requires:	(%{drivername}-dracut if dracut)
Requires:	%{drivername}-blacklist
Requires:	%{drivername}-power
Requires:	%{drivername}-wayland

Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles

# Package cannot be installed as BuildRequires if it requires both
# 64 and 32 bit packages. Needed for python-pyopencl build on ABF.
%if %{with force_32bit_deps}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Recommends:	libgldispatch0
Recommends:	libopengl0
Recommends:	libglvnd-glx
Recommends:	libglvnd-egl
Recommends:	libglvnd-gles
%endif
Requires:	egl-gbm
Requires:	egl-wayland
Requires:	vulkan
Requires:	libglvnd
Provides:	nvidia = %{EVRD}
%nv_cross_conflict -n core
#Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

#-----------------------------------------------------------------------------

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	kernel-source-%{drivername} = %{EVRD}
Requires(post):	kernel-source-%{drivername} = %{EVRD}
%nv_cross_conflict -n dkms

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

#-----------------------------------------------------------------------------

%package -n %{drivername}-dracut
Summary:	Dracut (initramfs) configuration for %{drivername}
Group:		System/Kernel and hardware
Requires:	dracut
Requires:	rosa-kernel-tools
%nv_cross_conflict -n dracut

%description -n %{drivername}-dracut
Dracut (initramfs) configuration for %{drivername}.
Include Nvidia kernel modules into initramfs (initrd).

#-----------------------------------------------------------------------------

%package -n %{drivername}-blacklist
Summary:	Blacklist opensource Nouveau driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n blacklist

%description -n %{drivername}-blacklist
Blacklist opensource Nouveau driver.
Proprietary Nvidia driver replaces it.

#-----------------------------------------------------------------------------

%package -n %{drivername}-wayland
Summary:	NVIDIA Wayland driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n wayland

%description -n %{drivername}-wayland
Proprietary Nvidia Wayland driver.

#-----------------------------------------------------------------------------

%package -n %{drivername}-power
Summary:	Advanced  power management
Group:		System/Kernel and hardware
%nv_cross_conflict -n power

%description -n %{drivername}-power
Advanced  power management, preserve memory allocation on suspend/resume.

#-----------------------------------------------------------------------------

%package -n kernel-source-%{drivername}
Summary:	Kernel source of %{drivername}
Group:		System/Kernel and hardware

%description -n kernel-source-%{drivername}
Kernel source of %{drivername}

#-----------------------------------------------------------------------------

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{EVRD}
Requires:	%{drivername}-cuda-opencl = %{EVRD}
%nv_cross_conflict -n devel
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

#-----------------------------------------------------------------------------

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{EVRD}
%nv_cross_conflict -n cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

#-----------------------------------------------------------------------------

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{EVRD}
%nv_cross_conflict -n doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

#-----------------------------------------------------------------------------

%if %{with binary_kernel_modules}
# TODO: package it better
%package debug
Summary:	Debug for %{NAME} binary kernel modules
Group:		Development/Debug
Requires:	auto-krokodil-filesystem
%nv_cross_conflict -n debug

%description debug
Debug for %{NAME} binary kernel modules
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build

%if %{with binary_kernel_modules}
dir0="$PWD"
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.10
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.15
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.1
pushd %{pkgname}/kernel-5.10
%make SYSSRC=/lib/modules/%{kabi_510}/source
mkdir -p "$dir0"/%{kabi_510}
mv *.ko "$dir0"/%{kabi_510}
popd
pushd %{pkgname}/kernel-5.15
%make SYSSRC=/lib/modules/%{kabi_515}/source
mkdir -p "$dir0"/%{kabi_515}
mv *.ko "$dir0"/%{kabi_515}
popd
pushd %{pkgname}/kernel-6.1
%make SYSSRC=/lib/modules/%{kabi_61}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_61}
mv *.ko "$dir0"/%{kabi_61}
popd
%endif

# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

%if %{with binary_kernel_modules}
list="%{kabi_510} %{kabi_515} %{kabi_61}"
# copied from kernel
# extract debuginfo
# TODO: sync location of *.debug files with kernel
find $list \
	-name "*.ko" | \
	xargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find $list \
	-name "*.ko" | xargs -I '{}' \
	sh -e -c 'cd $(dirname {}) && basename=$(basename {}) && \
		objcopy --add-gnu-debuglink=$basename.debug --strip-debug $basename'
# TODO: maybe make modules compression be a macro to ensure that they
# are compressed in the same way here and in the kernel itself
find $list -maxdepth 1 -type f -name '*.ko' | xargs -I'{}' -P"$(nproc)" zstd --ultra -22 '{}'
for i in $list; do
	mkdir -p %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.ko.zst %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.debug %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
done
%endif

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
GenericName=Configure NVIDIA X driver
GenericName[ru]=Настройка драйвера NVIDIA X
Comment=Configure NVIDIA X driver
Comment[ru]=Настройка драйвера NVIDIA X
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# Configs
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
		
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		;;
	GLVND_SYMLINK)
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	GBM_BACKEND_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-sleep.sh|*nvidia-debugdump|*nvidia-ngx-updater|*nvidia-powerd)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	INTERNAL_UTILITY*)
		case "$file" in
		*libglvnd_install_checker*)
			# ROSA does provide libglvnd, the checker is not needed.
			continue
			;;
		*)
			error_unhandled "unknown file $file of type $type to be installed, see .manifest."
			;;
		esac
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		parseparams dest
		install_file nvidia %{_sysconfdir}/vulkan/${dest}
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	GBM_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	FIRMWARE)
		install_file nvidia /lib/firmware/nvidia
		;;
	SYSTEMD_UNIT)
		install_file nvidia %{_unitdir}
		;;
	SYSTEMD_UNIT_SYMLINK)
		;;
	SYSTEMD_SLEEP_SCRIPT)
		install_file nvidia %{_systemd_util_dir}/system-sleep
		;;
		WINE_LIB)
        install_file nvidia %{_libdir}/%{drivername}/wine
        ;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-ngx-updater
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-powerd
touch					%{buildroot}%{_bindir}/nvidia-sleep.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
echo "%{_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

echo "/usr/lib" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
install -m0644 supported-gpus/supported-gpus.json %{buildroot}%{_datadir}/auto-krokodil/drivers/%{name}.json

# Trigger rebuilding initrds
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

mkdir -p %{buildroot}/etc/dracut.conf.d
cat > %{buildroot}/etc/dracut.conf.d/10-%{drivername}.conf << 'EOF'
add_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
install_optional_items+=" /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf "
install_optional_items+=" /etc/modprobe.d/%{drivername}-wayland.conf "
EOF

#mkdir -p %{buildroot}/etc/modprobe.d
echo "blacklist nouveau" > %{buildroot}/etc/modprobe.d/%{drivername}-blacklist-nouveau.conf
echo "options nvidia_drm modeset=1" > %{buildroot}/etc/modprobe.d/%{drivername}-wayland.conf

# Blacklist nouveau, autoload nvidia-uvm module after nvidia module
install -p -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/modprobe.d/
install -p -m 0644 %{SOURCE16} %{buildroot}%{_sysconfdir}/modprobe.d/

# UDev rules for nvidia
mkdir -p %{buildroot}%{_udevrulesdir}
install -p -m 0644 %{SOURCE7} %{buildroot}%{_udevrulesdir}/

# UDev rules for nvidia-uvm
install -p -m 0644 %{SOURCE10} %{buildroot}%{_udevrulesdir}/

# Install dbus config
mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d
install -p -m 0644 nvidia-dbus.conf %{buildroot}%{_datadir}/dbus-1/system.d/

# Install nvidia-fallback
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE13} %{buildroot}%{_udevrulesdir}/
install -p -m 0644 %{SOURCE14} %{buildroot}%{_unitdir}/

mkdir -p %{buildroot}%{_presetdir}
install -p -m 0644 %{SOURCE17} %{buildroot}%{_presetdir}/

mkdir -p %{buildroot}%{_libdir}/gbm
ln -s %{nvidia_libdir}/libnvidia-allocator.so.%{version} %{buildroot}%{_libdir}/gbm/nvidia-drm_gbm.so

# TODO: install each license separately
sed -i'' -e '/LICENSE/d' nvidia.files

%posttrans -n %{driverpkgname}
%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-ngx-updater nvidia-ngx-updater %{nvidia_bindir}/nvidia-ngx-updater \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-powerd nvidia-powerd %{nvidia_bindir}/nvidia-powerd \
	--slave %{_bindir}/nvidia-sleep.sh nvidia-sleep %{nvidia_bindir}/nvidia-sleep.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%posttrans -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%posttrans -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files

%{_datadir}/auto-krokodil/drivers/%{name}.json

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%{_sysconfdir}/vulkan/implicit_layer.d/nvidia_layers.json
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%{_datadir}/egl/egl_external_platform.d/15_nvidia_gbm.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd
%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf
%dir %{_libdir}/gbm
%{_libdir}/gbm/nvidia-drm_gbm.so

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-ngx-updater
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-powerd
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-sleep.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-ngx-updater
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

/lib/firmware/nvidia/gsp.bin
%{_unitdir}/nvidia-fallback.service
%{_sysconfdir}/modprobe.d/nvidia-uvm.conf
%{_udevrulesdir}/10-nvidia.rules
%{_udevrulesdir}/60-nvidia-uvm.rules
%{_udevrulesdir}/60-nvidia.rules

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-egl-gbm.so.1*
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%{nvidia_libdir}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir}/libnvidia-opticalflow.so.1
%{nvidia_libdir}/libnvidia-allocator.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.1
%{nvidia_libdir}/libnvidia-ngx.so.%{version}
%{nvidia_libdir}/libnvidia-nvvm.so.4
%{nvidia_libdir}/libnvidia-nvvm.so.4.0.0
%{nvidia_libdir}/libnvidia-vulkan-producer.so.%{version}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.1
%{nvidia_libdir32}/libnvidia-allocator.so.%{version}
%{nvidia_libdir32}/libnvidia-allocator.so.1

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_driversdir}/nvidia_drv.so

%{nvidia_wine}/_nvngx.dll
%{nvidia_wine}/nvngx.dll

%files -n %{drivername}-devel
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-nvvm.so
%{nvidia_libdir}/libnvidia-encode.so
%{nvidia_libdir}/libnvidia-opticalflow.so
%{nvidia_libdir}/libnvidia-allocator.so
%{nvidia_libdir}/libnvidia-vulkan-producer.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-opticalflow.so
%{nvidia_libdir32}/libnvidia-allocator.so


%files -n dkms-%{drivername}
%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n kernel-source-%{drivername}
%license %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}
%exclude %{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n %{drivername}-dracut
%config(noreplace) %{_sysconfdir}/dracut.conf.d/10-%{drivername}.conf
/var/spool/initramfs-regen/%{drivername}-dracut

%files -n %{drivername}-blacklist
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-blacklist-nouveau.conf

%files -n %{drivername}-wayland
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-wayland.conf

%files -n %{drivername}-power
%config(noreplace) %{_sysconfdir}/modprobe.d/nvidia-power-management.conf
%{nvidia_bindir}/nvidia-sleep.sh
%{nvidia_bindir}/nvidia-powerd
%{_datadir}/dbus-1/system.d/nvidia-dbus.conf
%{_presetdir}/70-nvidia.preset
%{_systemd_util_dir}/system-sleep/nvidia
%{_unitdir}/nvidia-hibernate.service
%{_unitdir}/nvidia-powerd.service
%{_unitdir}/nvidia-resume.service
%{_unitdir}/nvidia-suspend.service

%post -n %{drivername}-power
%systemd_post nvidia-hibernate.service
%systemd_post nvidia-resume.service
%systemd_post nvidia-powerd.service
%systemd_post nvidia-suspend.service

%preun -n %{drivername}-power
%systemd_preun nvidia-hibernate.service
%systemd_preun nvidia-resume.service
%systemd_preun nvidia-powerd.service
%systemd_preun nvidia-suspend.service

%postun -n %{drivername}-power
%systemd_postun_with_restart nvidia-hibernate.service
%systemd_postun_with_restart nvidia-resume.service
%systemd_postun_with_restart nvidia-powerd.service
%systemd_postun_with_restart nvidia-suspend.service


%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libnvidia-compiler-next.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

%if %{with binary_kernel_modules}
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.10 -m %(if rpm -q kernel-5.10-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.10-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_510} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.15 -m %(if rpm -q kernel-5.15-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.15-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_515} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.1 -m %(if rpm -q kernel-6.1-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.1-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_61} -s %{NAME} -c .zst

%files debug
%{kroko_kmods_dir}/*/*.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14953 |21mr|nvidia515-515.86.01-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# Do not spend a lot of time on useless generator if it is installed locally
%define __typelib_path %{nil}

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		%{name}-core
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_wine	        %{_libdir}/%{drivername}/wine
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define pkgname %{pkgname64}

%bcond_without force_32bit_deps
%bcond_without binary_kernel_modules

# no need to provide libraries in %%nvidia_libdir
%global __provides_exclude ^lib.*\\.so
# 1) Dependencies from itself (from filtered provides) (libnv*, libEGL_nvidia*)
# 2) (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%global __requires_exclude ^lib(EGL_|)nv.*\\.so|^lib(GL|X11|Xext)\\.so\\.(1|6)$

%if %{with binary_kernel_modules}
# e.g.: 5.10.71-generic-1rosa2021.1-x86_64
%define kabi_510 %(if rpm -q kernel-5.10-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define kabi_515 %(if rpm -q kernel-5.15-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define kabi_61 %(if rpm -q kernel-6.1-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.1-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define version_j %(echo %{VERSION} | awk -F '.' '{print $1}')
%define version_n %(echo %{VERSION} | awk -F '.' '{print $2}')
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%global kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n nvidia470
%endif

%if %{with binary_kernel_modules}
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%define kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%endif

%define major %(echo %{version} | awk -F '.' '{print $1}')

# Make parts of different major versions of drivers conflict with one another
# to guarantee that each of them is automaticaly removed when running
# dnf --allowerasing nvidiaXXX-core
# when nvidiaYYY is already installed and pulled nvidiaYYY-n as its dependency.
# n - name
%define nv_cross_conflict(n:) %{expand:
Provides:	nvidia-%{-n*} = %{major}
Conflicts:	nvidia-%{-n*} > %{major}
Conflicts:	nvidia-%{-n*} < %{major}
}

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		nvidia515
Version:	515.86.01
Release:	2

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2
Source6:	https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/xorg-nvidia.conf
Source7:	60-nvidia.rules
Source10:	60-nvidia-uvm.rules
Source11:	nvidia-uvm.conf
Source13:	10-nvidia.rules
Source14:	nvidia-fallback.service
Source16:	nvidia-power-management.conf
Source17:	70-nvidia.preset

Source100:	%{name}.rpmlintrc

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	%{x86_64}

BuildRequires:	auto-krokodil-rpm-generators
%if %{with binary_kernel_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	findutils
BuildRequires:	zstd
%endif
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

#-----------------------------------------------------------------------------

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{EVRD}
Provides:	%{name} = %{EVRD}
# package was renamed
Obsoletes:	x11-driver-video-%{drivername} < %{EVRD}
Conflicts:	x11-driver-video-%{drivername} < %{EVRD}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
Requires:	auto-krokodil-filesystem
%if %{with binary_kernel_modules}
%kroko_req_modules_in_nvidia -k 5.10 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 5.15 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 6.1 -f generic -j %{version_j} -n %{version_n}
%endif
Requires:	%{drivername}-cuda-opencl = %{EVRD}
# EOLed kernels built without auto-krokodil
Requires:	(kernel-modules-%{name}-5.16.19-1-generic if (kernel-5.16-generic = 5.16.19-1))
Requires:	(kernel-modules-%{name}-5.17.11-1-generic if (kernel-5.17-generic = 5.17.11-1))
Requires:	(kernel-modules-%{name}-5.16.19-2-generic if (kernel-5.16-generic = 5.16.19-2))
Requires:	(kernel-modules-%{name}-5.17.11-2-generic if (kernel-5.17-generic = 5.17.11-2))

# https://forum.rosalinux.ru/viewtopic.php?p=106968#p106968
# XXX Maybe better use Supplements in plasma5-kwin-wayland-nvidia
Recommends:	(plasma5-kwin-wayland-nvidia if plasma5-kwin)
Requires:	(%{drivername}-dracut if dracut)
Requires:	%{drivername}-blacklist
Requires:	%{drivername}-power
Requires:	%{drivername}-wayland

Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles

# Package cannot be installed as BuildRequires if it requires both
# 64 and 32 bit packages. Needed for python-pyopencl build on ABF.
%if %{with force_32bit_deps}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Recommends:	libgldispatch0
Recommends:	libopengl0
Recommends:	libglvnd-glx
Recommends:	libglvnd-egl
Recommends:	libglvnd-gles
%endif
Requires:	egl-gbm
Requires:	egl-wayland
Requires:	vulkan
Requires:	libglvnd
Provides:	nvidia = %{EVRD}
%nv_cross_conflict -n core
#Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

#-----------------------------------------------------------------------------

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	kernel-source-%{drivername} = %{EVRD}
Requires(post):	kernel-source-%{drivername} = %{EVRD}
%nv_cross_conflict -n dkms

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

#-----------------------------------------------------------------------------

%package -n %{drivername}-dracut
Summary:	Dracut (initramfs) configuration for %{drivername}
Group:		System/Kernel and hardware
Requires:	dracut
Requires:	rosa-kernel-tools
%nv_cross_conflict -n dracut

%description -n %{drivername}-dracut
Dracut (initramfs) configuration for %{drivername}.
Include Nvidia kernel modules into initramfs (initrd).

#-----------------------------------------------------------------------------

%package -n %{drivername}-blacklist
Summary:	Blacklist opensource Nouveau driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n blacklist

%description -n %{drivername}-blacklist
Blacklist opensource Nouveau driver.
Proprietary Nvidia driver replaces it.

#-----------------------------------------------------------------------------

%package -n %{drivername}-wayland
Summary:	NVIDIA Wayland driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n wayland

%description -n %{drivername}-wayland
Proprietary Nvidia Wayland driver.

#-----------------------------------------------------------------------------

%package -n %{drivername}-power
Summary:	Advanced  power management
Group:		System/Kernel and hardware
%nv_cross_conflict -n power

%description -n %{drivername}-power
Advanced  power management, preserve memory allocation on suspend/resume.

#-----------------------------------------------------------------------------

%package -n kernel-source-%{drivername}
Summary:	Kernel source of %{drivername}
Group:		System/Kernel and hardware

%description -n kernel-source-%{drivername}
Kernel source of %{drivername}

#-----------------------------------------------------------------------------

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{EVRD}
Requires:	%{drivername}-cuda-opencl = %{EVRD}
%nv_cross_conflict -n devel
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

#-----------------------------------------------------------------------------

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{EVRD}
%nv_cross_conflict -n cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

#-----------------------------------------------------------------------------

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{EVRD}
%nv_cross_conflict -n doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

#-----------------------------------------------------------------------------

%if %{with binary_kernel_modules}
# TODO: package it better
%package debug
Summary:	Debug for %{NAME} binary kernel modules
Group:		Development/Debug
Requires:	auto-krokodil-filesystem
%nv_cross_conflict -n debug

%description debug
Debug for %{NAME} binary kernel modules
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build

%if %{with binary_kernel_modules}
dir0="$PWD"
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.10
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.15
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.1
pushd %{pkgname}/kernel-5.10
%make SYSSRC=/lib/modules/%{kabi_510}/source
mkdir -p "$dir0"/%{kabi_510}
mv *.ko "$dir0"/%{kabi_510}
popd
pushd %{pkgname}/kernel-5.15
%make SYSSRC=/lib/modules/%{kabi_515}/source
mkdir -p "$dir0"/%{kabi_515}
mv *.ko "$dir0"/%{kabi_515}
popd
pushd %{pkgname}/kernel-6.1
%make SYSSRC=/lib/modules/%{kabi_61}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_61}
mv *.ko "$dir0"/%{kabi_61}
popd
%endif

# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

%if %{with binary_kernel_modules}
list="%{kabi_510} %{kabi_515} %{kabi_61}"
# copied from kernel
# extract debuginfo
# TODO: sync location of *.debug files with kernel
find $list \
	-name "*.ko" | \
	xargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find $list \
	-name "*.ko" | xargs -I '{}' \
	sh -e -c 'cd $(dirname {}) && basename=$(basename {}) && \
		objcopy --add-gnu-debuglink=$basename.debug --strip-debug $basename'
# TODO: maybe make modules compression be a macro to ensure that they
# are compressed in the same way here and in the kernel itself
find $list -maxdepth 1 -type f -name '*.ko' | xargs -I'{}' -P"$(nproc)" zstd --ultra -22 '{}'
for i in $list; do
	mkdir -p %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.ko.zst %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.debug %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
done
%endif

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
GenericName=Configure NVIDIA X driver
GenericName[ru]=Настройка драйвера NVIDIA X
Comment=Configure NVIDIA X driver
Comment[ru]=Настройка драйвера NVIDIA X
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# Configs
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
		
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		;;
	GLVND_SYMLINK)
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	GBM_BACKEND_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-sleep.sh|*nvidia-debugdump|*nvidia-ngx-updater|*nvidia-powerd)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	INTERNAL_UTILITY*)
		case "$file" in
		*libglvnd_install_checker*)
			# ROSA does provide libglvnd, the checker is not needed.
			continue
			;;
		*)
			error_unhandled "unknown file $file of type $type to be installed, see .manifest."
			;;
		esac
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		parseparams dest
		install_file nvidia %{_sysconfdir}/vulkan/${dest}
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	GBM_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	FIRMWARE)
		install_file nvidia /lib/firmware/nvidia
		;;
	SYSTEMD_UNIT)
		install_file nvidia %{_unitdir}
		;;
	SYSTEMD_UNIT_SYMLINK)
		;;
	SYSTEMD_SLEEP_SCRIPT)
		install_file nvidia %{_systemd_util_dir}/system-sleep
		;;
		WINE_LIB)
        install_file nvidia %{_libdir}/%{drivername}/wine
        ;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-ngx-updater
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-powerd
touch					%{buildroot}%{_bindir}/nvidia-sleep.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
echo "%{_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

echo "/usr/lib" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
install -m0644 supported-gpus/supported-gpus.json %{buildroot}%{_datadir}/auto-krokodil/drivers/%{name}.json

# Trigger rebuilding initrds
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

mkdir -p %{buildroot}/etc/dracut.conf.d
cat > %{buildroot}/etc/dracut.conf.d/10-%{drivername}.conf << 'EOF'
add_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
install_optional_items+=" /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf "
install_optional_items+=" /etc/modprobe.d/%{drivername}-wayland.conf "
EOF

#mkdir -p %{buildroot}/etc/modprobe.d
echo "blacklist nouveau" > %{buildroot}/etc/modprobe.d/%{drivername}-blacklist-nouveau.conf
echo "options nvidia_drm modeset=1" > %{buildroot}/etc/modprobe.d/%{drivername}-wayland.conf

# Blacklist nouveau, autoload nvidia-uvm module after nvidia module
install -p -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/modprobe.d/
install -p -m 0644 %{SOURCE16} %{buildroot}%{_sysconfdir}/modprobe.d/

# UDev rules for nvidia
mkdir -p %{buildroot}%{_udevrulesdir}
install -p -m 0644 %{SOURCE7} %{buildroot}%{_udevrulesdir}/

# UDev rules for nvidia-uvm
install -p -m 0644 %{SOURCE10} %{buildroot}%{_udevrulesdir}/

# Install dbus config
mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d
install -p -m 0644 nvidia-dbus.conf %{buildroot}%{_datadir}/dbus-1/system.d/

# Install nvidia-fallback
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE13} %{buildroot}%{_udevrulesdir}/
install -p -m 0644 %{SOURCE14} %{buildroot}%{_unitdir}/

mkdir -p %{buildroot}%{_presetdir}
install -p -m 0644 %{SOURCE17} %{buildroot}%{_presetdir}/

mkdir -p %{buildroot}%{_libdir}/gbm
ln -s %{nvidia_libdir}/libnvidia-allocator.so.%{version} %{buildroot}%{_libdir}/gbm/nvidia-drm_gbm.so

# TODO: install each license separately
sed -i'' -e '/LICENSE/d' nvidia.files

%posttrans -n %{driverpkgname}
%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-ngx-updater nvidia-ngx-updater %{nvidia_bindir}/nvidia-ngx-updater \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-powerd nvidia-powerd %{nvidia_bindir}/nvidia-powerd \
	--slave %{_bindir}/nvidia-sleep.sh nvidia-sleep %{nvidia_bindir}/nvidia-sleep.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%posttrans -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%posttrans -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files

%{_datadir}/auto-krokodil/drivers/%{name}.json

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%{_sysconfdir}/vulkan/implicit_layer.d/nvidia_layers.json
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%{_datadir}/egl/egl_external_platform.d/15_nvidia_gbm.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd
%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf
%dir %{_libdir}/gbm
%{_libdir}/gbm/nvidia-drm_gbm.so

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-ngx-updater
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-powerd
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-powerd
%ghost %{_bindir}/nvidia-sleep.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-ngx-updater
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

/lib/firmware/nvidia/gsp.bin
%{_unitdir}/nvidia-fallback.service
%{_sysconfdir}/modprobe.d/nvidia-uvm.conf
%{_udevrulesdir}/10-nvidia.rules
%{_udevrulesdir}/60-nvidia-uvm.rules
%{_udevrulesdir}/60-nvidia.rules

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-egl-gbm.so.1*
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%{nvidia_libdir}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir}/libnvidia-opticalflow.so.1
%{nvidia_libdir}/libnvidia-allocator.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.1
%{nvidia_libdir}/libnvidia-ngx.so.%{version}
%{nvidia_libdir}/libnvidia-nvvm.so.4
%{nvidia_libdir}/libnvidia-nvvm.so.%{version}
%{nvidia_libdir}/libnvidia-wayland-client.so.%{version}
%{nvidia_libdir}/libnvidia-vulkan-producer.so.%{version}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-nvvm.so.4
%{nvidia_libdir32}/libnvidia-nvvm.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.1
%{nvidia_libdir32}/libnvidia-allocator.so.%{version}
%{nvidia_libdir32}/libnvidia-allocator.so.1

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_driversdir}/nvidia_drv.so

%{nvidia_wine}/_nvngx.dll
%{nvidia_wine}/nvngx.dll

%files -n %{drivername}-devel
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-nvvm.so
%{nvidia_libdir}/libnvidia-encode.so
%{nvidia_libdir}/libnvidia-opticalflow.so
%{nvidia_libdir}/libnvidia-allocator.so
%{nvidia_libdir}/libnvidia-vulkan-producer.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-nvvm.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-opticalflow.so
%{nvidia_libdir32}/libnvidia-allocator.so


%files -n dkms-%{drivername}
%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n kernel-source-%{drivername}
%license %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}
%exclude %{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n %{drivername}-dracut
%config(noreplace) %{_sysconfdir}/dracut.conf.d/10-%{drivername}.conf
/var/spool/initramfs-regen/%{drivername}-dracut

%files -n %{drivername}-blacklist
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-blacklist-nouveau.conf

%files -n %{drivername}-wayland
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-wayland.conf

%files -n %{drivername}-power
%config(noreplace) %{_sysconfdir}/modprobe.d/nvidia-power-management.conf
%{nvidia_bindir}/nvidia-sleep.sh
%{nvidia_bindir}/nvidia-powerd
%{_datadir}/dbus-1/system.d/nvidia-dbus.conf
%{_presetdir}/70-nvidia.preset
%{_systemd_util_dir}/system-sleep/nvidia
%{_unitdir}/nvidia-hibernate.service
%{_unitdir}/nvidia-powerd.service
%{_unitdir}/nvidia-resume.service
%{_unitdir}/nvidia-suspend.service

%post -n %{drivername}-power
%systemd_post nvidia-hibernate.service
%systemd_post nvidia-resume.service
%systemd_post nvidia-powerd.service
%systemd_post nvidia-suspend.service

%preun -n %{drivername}-power
%systemd_preun nvidia-hibernate.service
%systemd_preun nvidia-resume.service
%systemd_preun nvidia-powerd.service
%systemd_preun nvidia-suspend.service

%postun -n %{drivername}-power
%systemd_postun_with_restart nvidia-hibernate.service
%systemd_postun_with_restart nvidia-resume.service
%systemd_postun_with_restart nvidia-powerd.service
%systemd_postun_with_restart nvidia-suspend.service


%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

%if %{with binary_kernel_modules}
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.10 -m %(if rpm -q kernel-5.10-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.10-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_510} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.15 -m %(if rpm -q kernel-5.15-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.15-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_515} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.1 -m %(if rpm -q kernel-6.1-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.1-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_61} -s %{NAME} -c .zst

%files debug
%{kroko_kmods_dir}/*/*.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14954 |21mr|nvidia520-520.56.06-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# Do not spend a lot of time on useless generator if it is installed locally
%define __typelib_path %{nil}

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		%{name}-core
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_wine	        %{_libdir}/%{drivername}/wine
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define pkgname %{pkgname64}

%bcond_without force_32bit_deps
%bcond_without binary_kernel_modules

# no need to provide libraries in %%nvidia_libdir
%global __provides_exclude ^lib.*\\.so
# 1) Dependencies from itself (from filtered provides) (libnv*, libEGL_nvidia*)
# 2) (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%global __requires_exclude ^lib(EGL_|)nv.*\\.so|^lib(GL|X11|Xext)\\.so\\.(1|6)$

%if %{with binary_kernel_modules}
# e.g.: 5.10.71-generic-1rosa2021.1-x86_64
%define kabi_510 %(if rpm -q kernel-5.10-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define kabi_515 %(if rpm -q kernel-5.15-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define kabi_61 %(if rpm -q kernel-6.1-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.1-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define version_j %(echo %{VERSION} | awk -F '.' '{print $1}')
%define version_n %(echo %{VERSION} | awk -F '.' '{print $2}')
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%global kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n nvidia470
%endif

%if %{with binary_kernel_modules}
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%define kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%endif

%define major %(echo %{version} | awk -F '.' '{print $1}')

# Make parts of different major versions of drivers conflict with one another
# to guarantee that each of them is automaticaly removed when running
# dnf --allowerasing nvidiaXXX-core
# when nvidiaYYY is already installed and pulled nvidiaYYY-n as its dependency.
# n - name
%define nv_cross_conflict(n:) %{expand:
Provides:	nvidia-%{-n*} = %{major}
Conflicts:	nvidia-%{-n*} > %{major}
Conflicts:	nvidia-%{-n*} < %{major}
}

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		nvidia520
Version:	520.56.06
Release:	4

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2
Source6:	https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/xorg-nvidia.conf
Source7:	60-nvidia.rules
Source10:	60-nvidia-uvm.rules
Source11:	nvidia-uvm.conf
Source13:	10-nvidia.rules
Source14:	nvidia-fallback.service
Source16:	nvidia-power-management.conf
Source17:	70-nvidia.preset

Source100:	%{name}.rpmlintrc

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	%{x86_64}

BuildRequires:	auto-krokodil-rpm-generators
%if %{with binary_kernel_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	findutils
BuildRequires:	zstd
%endif
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

#-----------------------------------------------------------------------------

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{EVRD}
Provides:	%{name} = %{EVRD}
# package was renamed
Obsoletes:	x11-driver-video-%{drivername} < %{EVRD}
Conflicts:	x11-driver-video-%{drivername} < %{EVRD}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
Requires:	auto-krokodil-filesystem
%if %{with binary_kernel_modules}
%kroko_req_modules_in_nvidia -k 5.10 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 5.15 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 6.1 -f generic -j %{version_j} -n %{version_n}
%endif
Requires:	%{drivername}-cuda-opencl = %{EVRD}
# EOLed kernels built without auto-krokodil
Requires:	(kernel-modules-%{name}-5.16.19-1-generic if (kernel-5.16-generic = 5.16.19-1))
Requires:	(kernel-modules-%{name}-5.17.11-1-generic if (kernel-5.17-generic = 5.17.11-1))
Requires:	(kernel-modules-%{name}-5.16.19-2-generic if (kernel-5.16-generic = 5.16.19-2))
Requires:	(kernel-modules-%{name}-5.17.11-2-generic if (kernel-5.17-generic = 5.17.11-2))

# https://forum.rosalinux.ru/viewtopic.php?p=106968#p106968
# XXX Maybe better use Supplements in plasma5-kwin-wayland-nvidia
Recommends:	(plasma5-kwin-wayland-nvidia if plasma5-kwin)
Requires:	(%{drivername}-dracut if dracut)
Requires:	%{drivername}-blacklist
Requires:	%{drivername}-power
Requires:	%{drivername}-wayland

Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles

# Package cannot be installed as BuildRequires if it requires both
# 64 and 32 bit packages. Needed for python-pyopencl build on ABF.
%if %{with force_32bit_deps}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Recommends:	libgldispatch0
Recommends:	libopengl0
Recommends:	libglvnd-glx
Recommends:	libglvnd-egl
Recommends:	libglvnd-gles
%endif
Requires:	egl-gbm
Requires:	egl-wayland
Requires:	vulkan
Requires:	libglvnd
Provides:	nvidia = %{EVRD}
%nv_cross_conflict -n core
#Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

#-----------------------------------------------------------------------------

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	kernel-source-%{drivername} = %{EVRD}
Requires(post):	kernel-source-%{drivername} = %{EVRD}
%nv_cross_conflict -n dkms

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

#-----------------------------------------------------------------------------

%package -n %{drivername}-dracut
Summary:	Dracut (initramfs) configuration for %{drivername}
Group:		System/Kernel and hardware
Requires:	dracut
Requires:	rosa-kernel-tools
%nv_cross_conflict -n dracut

%description -n %{drivername}-dracut
Dracut (initramfs) configuration for %{drivername}.
Include Nvidia kernel modules into initramfs (initrd).

#-----------------------------------------------------------------------------

%package -n %{drivername}-blacklist
Summary:	Blacklist opensource Nouveau driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n blacklist

%description -n %{drivername}-blacklist
Blacklist opensource Nouveau driver.
Proprietary Nvidia driver replaces it.

#-----------------------------------------------------------------------------

%package -n %{drivername}-wayland
Summary:	NVIDIA Wayland driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n wayland

%description -n %{drivername}-wayland
Proprietary Nvidia Wayland driver.

#-----------------------------------------------------------------------------

%package -n %{drivername}-power
Summary:	Advanced  power management
Group:		System/Kernel and hardware
%nv_cross_conflict -n power

%description -n %{drivername}-power
Advanced  power management, preserve memory allocation on suspend/resume.

#-----------------------------------------------------------------------------

%package -n kernel-source-%{drivername}
Summary:	Kernel source of %{drivername}
Group:		System/Kernel and hardware

%description -n kernel-source-%{drivername}
Kernel source of %{drivername}

#-----------------------------------------------------------------------------

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{EVRD}
Requires:	%{drivername}-cuda-opencl = %{EVRD}
%nv_cross_conflict -n devel
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

#-----------------------------------------------------------------------------

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{EVRD}
%nv_cross_conflict -n cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

#-----------------------------------------------------------------------------

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{EVRD}
%nv_cross_conflict -n doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

#-----------------------------------------------------------------------------

%if %{with binary_kernel_modules}
# TODO: package it better
%package debug
Summary:	Debug for %{NAME} binary kernel modules
Group:		Development/Debug
Requires:	auto-krokodil-filesystem
%nv_cross_conflict -n debug

%description debug
Debug for %{NAME} binary kernel modules
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build

%if %{with binary_kernel_modules}
dir0="$PWD"
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.10
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.15
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.1
pushd %{pkgname}/kernel-5.10
%make SYSSRC=/lib/modules/%{kabi_510}/source
mkdir -p "$dir0"/%{kabi_510}
mv *.ko "$dir0"/%{kabi_510}
popd
pushd %{pkgname}/kernel-5.15
%make SYSSRC=/lib/modules/%{kabi_515}/source
mkdir -p "$dir0"/%{kabi_515}
mv *.ko "$dir0"/%{kabi_515}
popd
pushd %{pkgname}/kernel-6.1
%make SYSSRC=/lib/modules/%{kabi_61}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_61}
mv *.ko "$dir0"/%{kabi_61}
popd
%endif

# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

%if %{with binary_kernel_modules}
list="%{kabi_510} %{kabi_515} %{kabi_61}"
# copied from kernel
# extract debuginfo
# TODO: sync location of *.debug files with kernel
find $list \
	-name "*.ko" | \
	xargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find $list \
	-name "*.ko" | xargs -I '{}' \
	sh -e -c 'cd $(dirname {}) && basename=$(basename {}) && \
		objcopy --add-gnu-debuglink=$basename.debug --strip-debug $basename'
# TODO: maybe make modules compression be a macro to ensure that they
# are compressed in the same way here and in the kernel itself
find $list -maxdepth 1 -type f -name '*.ko' | xargs -I'{}' -P"$(nproc)" zstd --ultra -22 '{}'
for i in $list; do
	mkdir -p %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.ko.zst %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.debug %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
done
%endif

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
GenericName=Configure NVIDIA X driver
GenericName[ru]=Настройка драйвера NVIDIA X
Comment=Configure NVIDIA X driver
Comment[ru]=Настройка драйвера NVIDIA X
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# Configs
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
		
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		;;
	GLVND_SYMLINK)
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	GBM_BACKEND_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-sleep.sh|*nvidia-debugdump|*nvidia-ngx-updater|*nvidia-powerd)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	INTERNAL_UTILITY*)
		case "$file" in
		*libglvnd_install_checker*)
			# ROSA does provide libglvnd, the checker is not needed.
			continue
			;;
		*)
			error_unhandled "unknown file $file of type $type to be installed, see .manifest."
			;;
		esac
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		parseparams dest
		install_file nvidia %{_sysconfdir}/vulkan/${dest}
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	GBM_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	FIRMWARE)
		install_file nvidia /lib/firmware/nvidia
		;;
	SYSTEMD_UNIT)
		install_file nvidia %{_unitdir}
		;;
	SYSTEMD_UNIT_SYMLINK)
		;;
	SYSTEMD_SLEEP_SCRIPT)
		install_file nvidia %{_systemd_util_dir}/system-sleep
		;;
		WINE_LIB)
        install_file nvidia %{_libdir}/%{drivername}/wine
        ;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-ngx-updater
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-powerd
touch					%{buildroot}%{_bindir}/nvidia-sleep.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
echo "%{_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

echo "/usr/lib" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
install -m0644 supported-gpus/supported-gpus.json %{buildroot}%{_datadir}/auto-krokodil/drivers/%{name}.json

# Trigger rebuilding initrds
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

mkdir -p %{buildroot}/etc/dracut.conf.d
cat > %{buildroot}/etc/dracut.conf.d/10-%{drivername}.conf << 'EOF'
add_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
install_optional_items+=" /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf "
install_optional_items+=" /etc/modprobe.d/%{drivername}-wayland.conf "
EOF

#mkdir -p %{buildroot}/etc/modprobe.d
echo "blacklist nouveau" > %{buildroot}/etc/modprobe.d/%{drivername}-blacklist-nouveau.conf
echo "options nvidia_drm modeset=1" > %{buildroot}/etc/modprobe.d/%{drivername}-wayland.conf

# Blacklist nouveau, autoload nvidia-uvm module after nvidia module
install -p -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/modprobe.d/
install -p -m 0644 %{SOURCE16} %{buildroot}%{_sysconfdir}/modprobe.d/

# UDev rules for nvidia
mkdir -p %{buildroot}%{_udevrulesdir}
install -p -m 0644 %{SOURCE7} %{buildroot}%{_udevrulesdir}/

# UDev rules for nvidia-uvm
install -p -m 0644 %{SOURCE10} %{buildroot}%{_udevrulesdir}/

# Install dbus config
mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d
install -p -m 0644 nvidia-dbus.conf %{buildroot}%{_datadir}/dbus-1/system.d/

# Install nvidia-fallback
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE13} %{buildroot}%{_udevrulesdir}/
install -p -m 0644 %{SOURCE14} %{buildroot}%{_unitdir}/

mkdir -p %{buildroot}%{_presetdir}
install -p -m 0644 %{SOURCE17} %{buildroot}%{_presetdir}/

mkdir -p %{buildroot}%{_libdir}/gbm
ln -s %{nvidia_libdir}/libnvidia-allocator.so.%{version} %{buildroot}%{_libdir}/gbm/nvidia-drm_gbm.so

# TODO: install each license separately
sed -i'' -e '/LICENSE/d' nvidia.files

%posttrans -n %{driverpkgname}
%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-ngx-updater nvidia-ngx-updater %{nvidia_bindir}/nvidia-ngx-updater \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-powerd nvidia-powerd %{nvidia_bindir}/nvidia-powerd \
	--slave %{_bindir}/nvidia-sleep.sh nvidia-sleep %{nvidia_bindir}/nvidia-sleep.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%posttrans -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%posttrans -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files

%{_datadir}/auto-krokodil/drivers/%{name}.json

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%{_sysconfdir}/vulkan/implicit_layer.d/nvidia_layers.json
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%{_datadir}/egl/egl_external_platform.d/15_nvidia_gbm.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd
%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf
%dir %{_libdir}/gbm
%{_libdir}/gbm/nvidia-drm_gbm.so

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-ngx-updater
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-powerd
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-powerd
%ghost %{_bindir}/nvidia-sleep.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-ngx-updater
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

/lib/firmware/nvidia/gsp.bin
%{_unitdir}/nvidia-fallback.service
%{_sysconfdir}/modprobe.d/nvidia-uvm.conf
%{_udevrulesdir}/10-nvidia.rules
%{_udevrulesdir}/60-nvidia-uvm.rules
%{_udevrulesdir}/60-nvidia.rules

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-egl-gbm.so.1*
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%{nvidia_libdir}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir}/libnvidia-opticalflow.so.1
%{nvidia_libdir}/libnvidia-allocator.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.1
%{nvidia_libdir}/libnvidia-ngx.so.%{version}
%{nvidia_libdir}/libnvidia-nvvm.so.4
%{nvidia_libdir}/libnvidia-nvvm.so.%{version}
%{nvidia_libdir}/libnvidia-wayland-client.so.%{version}
%{nvidia_libdir}/libnvidia-vulkan-producer.so.%{version}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-nvvm.so.4
%{nvidia_libdir32}/libnvidia-nvvm.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.1
%{nvidia_libdir32}/libnvidia-allocator.so.%{version}
%{nvidia_libdir32}/libnvidia-allocator.so.1

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_driversdir}/nvidia_drv.so

%{nvidia_wine}/_nvngx.dll
%{nvidia_wine}/nvngx.dll

%files -n %{drivername}-devel
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-nvvm.so
%{nvidia_libdir}/libnvidia-encode.so
%{nvidia_libdir}/libnvidia-opticalflow.so
%{nvidia_libdir}/libnvidia-allocator.so
%{nvidia_libdir}/libnvidia-vulkan-producer.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-nvvm.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-opticalflow.so
%{nvidia_libdir32}/libnvidia-allocator.so


%files -n dkms-%{drivername}
%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n kernel-source-%{drivername}
%license %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}
%exclude %{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n %{drivername}-dracut
%config(noreplace) %{_sysconfdir}/dracut.conf.d/10-%{drivername}.conf
/var/spool/initramfs-regen/%{drivername}-dracut

%files -n %{drivername}-blacklist
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-blacklist-nouveau.conf

%files -n %{drivername}-wayland
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-wayland.conf

%files -n %{drivername}-power
%config(noreplace) %{_sysconfdir}/modprobe.d/nvidia-power-management.conf
%{nvidia_bindir}/nvidia-sleep.sh
%{nvidia_bindir}/nvidia-powerd
%{_datadir}/dbus-1/system.d/nvidia-dbus.conf
%{_presetdir}/70-nvidia.preset
%{_systemd_util_dir}/system-sleep/nvidia
%{_unitdir}/nvidia-hibernate.service
%{_unitdir}/nvidia-powerd.service
%{_unitdir}/nvidia-resume.service
%{_unitdir}/nvidia-suspend.service

%post -n %{drivername}-power
%systemd_post nvidia-hibernate.service
%systemd_post nvidia-resume.service
%systemd_post nvidia-powerd.service
%systemd_post nvidia-suspend.service

%preun -n %{drivername}-power
%systemd_preun nvidia-hibernate.service
%systemd_preun nvidia-resume.service
%systemd_preun nvidia-powerd.service
%systemd_preun nvidia-suspend.service

%postun -n %{drivername}-power
%systemd_postun_with_restart nvidia-hibernate.service
%systemd_postun_with_restart nvidia-resume.service
%systemd_postun_with_restart nvidia-powerd.service
%systemd_postun_with_restart nvidia-suspend.service


%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcudadebugger.so.%{version}
%{nvidia_libdir}/libcudadebugger.so.1
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

%if %{with binary_kernel_modules}
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.10 -m %(if rpm -q kernel-5.10-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.10-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_510} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.15 -m %(if rpm -q kernel-5.15-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.15-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_515} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.1 -m %(if rpm -q kernel-6.1-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.1-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_61} -s %{NAME} -c .zst

%files debug
%{kroko_kmods_dir}/*/*.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14955 |21mr|nvidia525-525.116.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# Do not spend a lot of time on useless generator if it is installed locally
%define __typelib_path %{nil}

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		%{name}-core
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_wine	        %{_libdir}/%{drivername}/wine
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define pkgname %{pkgname64}

%bcond_without force_32bit_deps
%bcond_without binary_kernel_modules

# no need to provide libraries in %%nvidia_libdir
%global __provides_exclude ^lib.*\\.so
# 1) Dependencies from itself (from filtered provides) (libnv*, libEGL_nvidia*)
# 2) (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%global __requires_exclude ^lib(EGL_|)nv.*\\.so|^lib(GL|X11|Xext)\\.so\\.(1|6)$

%if %{with binary_kernel_modules}
# e.g.: 5.10.71-generic-1rosa2021.1-x86_64
%define kabi_510 %(if rpm -q kernel-5.10-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define kabi_515 %(if rpm -q kernel-5.15-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define kabi_61 %(if rpm -q kernel-6.1-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.1-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}'; else echo 0; fi)
%define version_j %(echo %{VERSION} | awk -F '.' '{print $1}')
%define version_n %(echo %{VERSION} | awk -F '.' '{print $2}')
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%global kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n nvidia470
%endif

%if %{with binary_kernel_modules}
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%define kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%endif

%define major %(echo %{version} | awk -F '.' '{print $1}')

# Make parts of different major versions of drivers conflict with one another
# to guarantee that each of them is automaticaly removed when running
# dnf --allowerasing nvidiaXXX-core
# when nvidiaYYY is already installed and pulled nvidiaYYY-n as its dependency.
# n - name
%define nv_cross_conflict(n:) %{expand:
Provides:	nvidia-%{-n*} = %{major}
Conflicts:	nvidia-%{-n*} > %{major}
Conflicts:	nvidia-%{-n*} < %{major}
}

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		nvidia525
Version:	525.116.03
Release:	1

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2
Source6:	https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/xorg-nvidia.conf
Source7:	60-nvidia.rules
Source10:	60-nvidia-uvm.rules
Source11:	nvidia-uvm.conf
Source13:	10-nvidia.rules
Source14:	nvidia-fallback.service
Source16:	nvidia-power-management.conf
Source17:	70-nvidia.preset

Source100:	%{name}.rpmlintrc

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	%{x86_64}

BuildRequires:	auto-krokodil-rpm-generators
%if %{with binary_kernel_modules}
BuildRequires:	auto-krokodil-rpm-macros
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	findutils
BuildRequires:	zstd
%endif
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

#-----------------------------------------------------------------------------

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{EVRD}
Provides:	%{name} = %{EVRD}
# package was renamed
Obsoletes:	x11-driver-video-%{drivername} < %{EVRD}
Conflicts:	x11-driver-video-%{drivername} < %{EVRD}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
Requires:	auto-krokodil-filesystem
%if %{with binary_kernel_modules}
%kroko_req_modules_in_nvidia -k 5.10 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 5.15 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 6.1 -f generic -j %{version_j} -n %{version_n}
%endif
Requires:	%{drivername}-cuda-opencl = %{EVRD}
# EOLed kernels built without auto-krokodil
Requires:	(kernel-modules-%{name}-5.16.19-1-generic if (kernel-5.16-generic = 5.16.19-1))
Requires:	(kernel-modules-%{name}-5.17.11-1-generic if (kernel-5.17-generic = 5.17.11-1))
Requires:	(kernel-modules-%{name}-5.16.19-2-generic if (kernel-5.16-generic = 5.16.19-2))
Requires:	(kernel-modules-%{name}-5.17.11-2-generic if (kernel-5.17-generic = 5.17.11-2))

# https://forum.rosalinux.ru/viewtopic.php?p=106968#p106968
# XXX Maybe better use Supplements in plasma5-kwin-wayland-nvidia
Recommends:	(plasma5-kwin-wayland-nvidia if plasma5-kwin)
Requires:	(%{drivername}-dracut if dracut)
Requires:	%{drivername}-blacklist
Requires:	%{drivername}-power
Requires:	%{drivername}-wayland

Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles

# Package cannot be installed as BuildRequires if it requires both
# 64 and 32 bit packages. Needed for python-pyopencl build on ABF.
%if %{with force_32bit_deps}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Recommends:	libgldispatch0
Recommends:	libopengl0
Recommends:	libglvnd-glx
Recommends:	libglvnd-egl
Recommends:	libglvnd-gles
%endif
Requires:	egl-gbm
Requires:	egl-wayland
Requires:	vulkan
Requires:	libglvnd
Provides:	nvidia = %{EVRD}
%nv_cross_conflict -n core
#Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

#-----------------------------------------------------------------------------

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	kernel-source-%{drivername} = %{EVRD}
Requires(post):	kernel-source-%{drivername} = %{EVRD}
%nv_cross_conflict -n dkms

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

#-----------------------------------------------------------------------------

%package -n %{drivername}-dracut
Summary:	Dracut (initramfs) configuration for %{drivername}
Group:		System/Kernel and hardware
Requires:	dracut
Requires:	rosa-kernel-tools
%nv_cross_conflict -n dracut

%description -n %{drivername}-dracut
Dracut (initramfs) configuration for %{drivername}.
Include Nvidia kernel modules into initramfs (initrd).

#-----------------------------------------------------------------------------

%package -n %{drivername}-blacklist
Summary:	Blacklist opensource Nouveau driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n blacklist

%description -n %{drivername}-blacklist
Blacklist opensource Nouveau driver.
Proprietary Nvidia driver replaces it.

#-----------------------------------------------------------------------------

%package -n %{drivername}-wayland
Summary:	NVIDIA Wayland driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n wayland

%description -n %{drivername}-wayland
Proprietary Nvidia Wayland driver.

#-----------------------------------------------------------------------------

%package -n %{drivername}-power
Summary:	Advanced  power management
Group:		System/Kernel and hardware
%nv_cross_conflict -n power

%description -n %{drivername}-power
Advanced  power management, preserve memory allocation on suspend/resume.

#-----------------------------------------------------------------------------

%package -n kernel-source-%{drivername}
Summary:	Kernel source of %{drivername}
Group:		System/Kernel and hardware

%description -n kernel-source-%{drivername}
Kernel source of %{drivername}

#-----------------------------------------------------------------------------

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{EVRD}
Requires:	%{drivername}-cuda-opencl = %{EVRD}
%nv_cross_conflict -n devel
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

#-----------------------------------------------------------------------------

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{EVRD}
%nv_cross_conflict -n cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

#-----------------------------------------------------------------------------

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{EVRD}
%nv_cross_conflict -n doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

#-----------------------------------------------------------------------------

%if %{with binary_kernel_modules}
# TODO: package it better
%package debug
Summary:	Debug for %{NAME} binary kernel modules
Group:		Development/Debug
Requires:	auto-krokodil-filesystem
%nv_cross_conflict -n debug

%description debug
Debug for %{NAME} binary kernel modules
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build

%if %{with binary_kernel_modules}
dir0="$PWD"
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.10
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.15
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.1
pushd %{pkgname}/kernel-5.10
%make SYSSRC=/lib/modules/%{kabi_510}/source
mkdir -p "$dir0"/%{kabi_510}
mv *.ko "$dir0"/%{kabi_510}
popd
pushd %{pkgname}/kernel-5.15
%make SYSSRC=/lib/modules/%{kabi_515}/source
mkdir -p "$dir0"/%{kabi_515}
mv *.ko "$dir0"/%{kabi_515}
popd
pushd %{pkgname}/kernel-6.1
%make SYSSRC=/lib/modules/%{kabi_61}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_61}
mv *.ko "$dir0"/%{kabi_61}
popd
%endif

# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

%if %{with binary_kernel_modules}
list="%{kabi_510} %{kabi_515} %{kabi_61}"
# copied from kernel
# extract debuginfo
# TODO: sync location of *.debug files with kernel
find $list \
	-name "*.ko" | \
	xargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find $list \
	-name "*.ko" | xargs -I '{}' \
	sh -e -c 'cd $(dirname {}) && basename=$(basename {}) && \
		objcopy --add-gnu-debuglink=$basename.debug --strip-debug $basename'
# TODO: maybe make modules compression be a macro to ensure that they
# are compressed in the same way here and in the kernel itself
find $list -maxdepth 1 -type f -name '*.ko' | xargs -I'{}' -P"$(nproc)" zstd --ultra -22 '{}'
for i in $list; do
	mkdir -p %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.ko.zst %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.debug %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
done
%endif

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
GenericName=Configure NVIDIA X driver
GenericName[ru]=Настройка драйвера NVIDIA X
Comment=Configure NVIDIA X driver
Comment[ru]=Настройка драйвера NVIDIA X
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# Configs
install -D -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
		
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		;;
	GLVND_SYMLINK)
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	GBM_BACKEND_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-sleep.sh|*nvidia-debugdump|*nvidia-ngx-updater|*nvidia-powerd)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	INTERNAL_UTILITY*)
		case "$file" in
		*libglvnd_install_checker*)
			# ROSA does provide libglvnd, the checker is not needed.
			continue
			;;
		*)
			error_unhandled "unknown file $file of type $type to be installed, see .manifest."
			;;
		esac
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		parseparams dest
		install_file nvidia %{_sysconfdir}/vulkan/${dest}
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	GBM_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	FIRMWARE)
		install_file nvidia /lib/firmware/nvidia
		;;
	SYSTEMD_UNIT)
		install_file nvidia %{_unitdir}
		;;
	SYSTEMD_UNIT_SYMLINK)
		;;
	SYSTEMD_SLEEP_SCRIPT)
		install_file nvidia %{_systemd_util_dir}/system-sleep
		;;
		WINE_LIB)
        install_file nvidia %{_libdir}/%{drivername}/wine
        ;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-ngx-updater
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-powerd
touch					%{buildroot}%{_bindir}/nvidia-sleep.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
echo "%{_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

echo "/usr/lib" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
install -m0644 supported-gpus/supported-gpus.json %{buildroot}%{_datadir}/auto-krokodil/drivers/%{name}.json

# Trigger rebuilding initrds
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

mkdir -p %{buildroot}/etc/dracut.conf.d
cat > %{buildroot}/etc/dracut.conf.d/10-%{drivername}.conf << 'EOF'
add_drivers+=" nvidia nvidia-drm nvidia-modeset nvidia-uvm "
install_optional_items+=" /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf "
install_optional_items+=" /etc/modprobe.d/%{drivername}-wayland.conf "
EOF

#mkdir -p %{buildroot}/etc/modprobe.d
echo "blacklist nouveau" > %{buildroot}/etc/modprobe.d/%{drivername}-blacklist-nouveau.conf
echo "options nvidia_drm modeset=1" > %{buildroot}/etc/modprobe.d/%{drivername}-wayland.conf

# Blacklist nouveau, autoload nvidia-uvm module after nvidia module
install -p -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/modprobe.d/
install -p -m 0644 %{SOURCE16} %{buildroot}%{_sysconfdir}/modprobe.d/

# UDev rules for nvidia
mkdir -p %{buildroot}%{_udevrulesdir}
install -p -m 0644 %{SOURCE7} %{buildroot}%{_udevrulesdir}/

# UDev rules for nvidia-uvm
install -p -m 0644 %{SOURCE10} %{buildroot}%{_udevrulesdir}/

# Install dbus config
mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d
install -p -m 0644 nvidia-dbus.conf %{buildroot}%{_datadir}/dbus-1/system.d/

# Install nvidia-fallback
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE13} %{buildroot}%{_udevrulesdir}/
install -p -m 0644 %{SOURCE14} %{buildroot}%{_unitdir}/

mkdir -p %{buildroot}%{_presetdir}
install -p -m 0644 %{SOURCE17} %{buildroot}%{_presetdir}/

mkdir -p %{buildroot}%{_libdir}/gbm
ln -s %{nvidia_libdir}/libnvidia-allocator.so.%{version} %{buildroot}%{_libdir}/gbm/nvidia-drm_gbm.so

# TODO: install each license separately
sed -i'' -e '/LICENSE/d' nvidia.files

%posttrans -n %{driverpkgname}
%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-ngx-updater nvidia-ngx-updater %{nvidia_bindir}/nvidia-ngx-updater \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-powerd nvidia-powerd %{nvidia_bindir}/nvidia-powerd \
	--slave %{_bindir}/nvidia-sleep.sh nvidia-sleep %{nvidia_bindir}/nvidia-sleep.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%posttrans -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%posttrans -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files

%{_datadir}/auto-krokodil/drivers/%{name}.json

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%{_sysconfdir}/vulkan/implicit_layer.d/nvidia_layers.json
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%{_datadir}/egl/egl_external_platform.d/15_nvidia_gbm.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd
%{_sysconfdir}/X11/xorg.conf.d/15-nvidia.conf
%dir %{_libdir}/gbm
%{_libdir}/gbm/nvidia-drm_gbm.so

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-ngx-updater
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-powerd
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-powerd
%ghost %{_bindir}/nvidia-sleep.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-ngx-updater
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

# %%dir /lib/firmware/nvidia is owned by linux-firmware
/lib/firmware/nvidia/gsp_ad10x.bin
/lib/firmware/nvidia/gsp_tu10x.bin

%{_unitdir}/nvidia-fallback.service
%{_sysconfdir}/modprobe.d/nvidia-uvm.conf
%{_udevrulesdir}/10-nvidia.rules
%{_udevrulesdir}/60-nvidia-uvm.rules
%{_udevrulesdir}/60-nvidia.rules

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-api.so.1
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-egl-gbm.so.1*
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%{nvidia_libdir}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir}/libnvidia-opticalflow.so.1
%{nvidia_libdir}/libnvidia-allocator.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.1
%{nvidia_libdir}/libnvidia-ngx.so.%{version}
%{nvidia_libdir}/libnvidia-nvvm.so.4
%{nvidia_libdir}/libnvidia-nvvm.so.%{version}
%{nvidia_libdir}/libnvidia-wayland-client.so.%{version}
%{nvidia_libdir}/libnvidia-vulkan-producer.so.%{version}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-nvvm.so.4
%{nvidia_libdir32}/libnvidia-nvvm.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.1
%{nvidia_libdir32}/libnvidia-allocator.so.%{version}
%{nvidia_libdir32}/libnvidia-allocator.so.1

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_driversdir}/nvidia_drv.so

%{nvidia_wine}/_nvngx.dll
%{nvidia_wine}/nvngx.dll

%files -n %{drivername}-devel
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-nvvm.so
%{nvidia_libdir}/libnvidia-encode.so
%{nvidia_libdir}/libnvidia-opticalflow.so
%{nvidia_libdir}/libnvidia-allocator.so
%{nvidia_libdir}/libnvidia-vulkan-producer.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-nvvm.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-opticalflow.so
%{nvidia_libdir32}/libnvidia-allocator.so


%files -n dkms-%{drivername}
%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n kernel-source-%{drivername}
%license %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}
%exclude %{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n %{drivername}-dracut
%config(noreplace) %{_sysconfdir}/dracut.conf.d/10-%{drivername}.conf
/var/spool/initramfs-regen/%{drivername}-dracut

%files -n %{drivername}-blacklist
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-blacklist-nouveau.conf

%files -n %{drivername}-wayland
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-wayland.conf

%files -n %{drivername}-power
%config(noreplace) %{_sysconfdir}/modprobe.d/nvidia-power-management.conf
%{nvidia_bindir}/nvidia-sleep.sh
%{nvidia_bindir}/nvidia-powerd
%{_datadir}/dbus-1/system.d/nvidia-dbus.conf
%{_presetdir}/70-nvidia.preset
%{_systemd_util_dir}/system-sleep/nvidia
%{_unitdir}/nvidia-hibernate.service
%{_unitdir}/nvidia-powerd.service
%{_unitdir}/nvidia-resume.service
%{_unitdir}/nvidia-suspend.service

%post -n %{drivername}-power
%systemd_post nvidia-hibernate.service
%systemd_post nvidia-resume.service
%systemd_post nvidia-powerd.service
%systemd_post nvidia-suspend.service

%preun -n %{drivername}-power
%systemd_preun nvidia-hibernate.service
%systemd_preun nvidia-resume.service
%systemd_preun nvidia-powerd.service
%systemd_preun nvidia-suspend.service

%postun -n %{drivername}-power
%systemd_postun_with_restart nvidia-hibernate.service
%systemd_postun_with_restart nvidia-resume.service
%systemd_postun_with_restart nvidia-powerd.service
%systemd_postun_with_restart nvidia-suspend.service


%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcudadebugger.so.%{version}
%{nvidia_libdir}/libcudadebugger.so.1
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

%if %{with binary_kernel_modules}
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.10 -m %(if rpm -q kernel-5.10-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.10-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_510} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.15 -m %(if rpm -q kernel-5.15-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.15-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_515} -s %{NAME} -c .zst
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.1 -m %(if rpm -q kernel-6.1-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.1-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_61} -s %{NAME} -c .zst

%files debug
%{kroko_kmods_dir}/*/*.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14956 |21mr|nvidia550-550.107.02-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# Do not spend a lot of time on useless generator if it is installed locally
%define __typelib_path %{nil}

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define priority	9700
%define pkgname64	NVIDIA-Linux-x86_64-%{version}
%define drivername		%{name}
%define driverpkgname		%{name}-core
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_wine	        %{_libdir}/%{drivername}/wine
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define pkgname %{pkgname64}

# wine, steam etc. will pull them
%bcond_with force_32bit_deps
%bcond_without binary_kernel_modules

# no need to provide libraries in %%nvidia_libdir
%global __provides_exclude ^lib.*\\.so
# 1) Dependencies from itself (from filtered provides) (libnv*, libEGL_nvidia*)
# 2) (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
# 3) No need to depend from OpenSSL 3. Those who need offloading feature
# for OpenSSL will have it installed, others may not have OpenSSL 3.x in ROSA < 2023.1
%global __requires_exclude ^lib(EGL_|)nv.*\\.so|^lib(GL|X11|Xext)\\.so\\.(1|6)|^libcrypto\\.so\\.3.*$

%global major %(echo %{version} | awk -F '.' '{print $1}')

%if %{with binary_kernel_modules}
# e.g.: kabi_510 = 5.10.71-generic-1rosa2021.1-x86_64
%if %{mdvver} < 202310
%define kabi_510 %(if rpm -q kernel-5.10-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.10-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define kabi_515 %(if rpm -q kernel-5.15-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-5.15-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%endif
%define kabi_61 %(if rpm -q kernel-6.1-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.1-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define kabi_66 %(if rpm -q kernel-6.6-generic-devel 1>/dev/null 2>/dev/null; then rpm -ql kernel-6.6-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}'; else echo 0; fi)
%define version_j %(echo %{VERSION} | awk -F '.' '{print $1}')
%define version_n %(echo %{VERSION} | awk -F '.' '{print $2}')
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%global kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%{?!kroko_mk_release:%global kroko_mk_release(n:) %{nil}}
# global, not define, must be expanded only once
%global kroko_release %kroko_mk_release -n nvidia%{major}
# For SRPM stage when auto-krokodil-rpm-macros is not installed
%{?!kroko_req_modules_in_nvidia:%define kroko_req_modules_in_nvidia(k:f:j:n:) %{nil}}
%endif

# Make parts of different major versions of drivers conflict with one another
# to guarantee that each of them is automaticaly removed when running
# dnf --allowerasing nvidiaXXX-core
# when nvidiaYYY is already installed and pulled nvidiaYYY-n as its dependency.
# n - name
%define nv_cross_conflict(n:) %{expand:
Provides:	nvidia-%{-n*} = %{major}
Conflicts:	nvidia-%{-n*} > %{major}
Conflicts:	nvidia-%{-n*} < %{major}
}

# Replace non-LTS/obsolete branches if all hardware supported by them
# is supported by this branch (because NVIDIA stopped maintaining
# compatibility with new kernels and minor updates to old kernels)
%bcond_without replace
%if %{with replace}
%define replace_list 510 515 520 525
# n - name
%define nv_replace_branch(n:) %{expand:
%(for i in %{replace_list}; do
  echo "Conflicts: nvidia$i-%{-n*} < %{major}";
  echo "Obsoletes: nvidia$i-%{-n*} < %{major}";
done)}
%define kmod_replace_args -o %{quote:%{replace_list}}
%else
%define nv_replace_branch(n:) %{nil}
%define kmod_replace_args %{nil}
%endif

%if %{mdvver} >= 202310
%define _firmwarepath /usr/lib/firmware
%else
%define _firmwarepath /lib/firmware
%endif

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		nvidia550
Version:	550.107.02
Release:	2

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2
Source6:	https://gitweb.frugalware.org/frugalware-current/raw/master/source/x11-extra/nvidia/xorg-nvidia.conf
Source7:	60-nvidia.rules
Source10:	60-nvidia-uvm.rules
Source11:	nvidia-uvm.conf
Source13:	10-nvidia.rules
Source14:	nvidia-fallback.service
Source16:	nvidia-power-management.conf
Source17:	70-nvidia.preset

Source100:	%{name}.rpmlintrc

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	%{x86_64}

BuildRequires:	auto-krokodil-rpm-generators
%if %{with binary_kernel_modules}
BuildRequires:	auto-krokodil-rpm-macros
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
BuildRequires:	findutils
BuildRequires:	zstd
%endif
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

#-----------------------------------------------------------------------------

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{EVRD}
Provides:	%{name} = %{EVRD}
# package was renamed
Obsoletes:	x11-driver-video-%{drivername} < %{EVRD}
Conflicts:	x11-driver-video-%{drivername} < %{EVRD}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
Requires:	auto-krokodil-filesystem
Recommends:	%{drivername}-cuda-opencl = %{EVRD}
%if %{with binary_kernel_modules}
%if %{mdvver} < 202310
%kroko_req_modules_in_nvidia -k 5.10 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 5.15 -f generic -j %{version_j} -n %{version_n}
%endif
%kroko_req_modules_in_nvidia -k 6.1 -f generic -j %{version_j} -n %{version_n}
%kroko_req_modules_in_nvidia -k 6.6 -f generic -j %{version_j} -n %{version_n}
%endif

# https://forum.rosalinux.ru/viewtopic.php?p=106968#p106968
# XXX Maybe better use Supplements in plasma5-kwin-wayland-nvidia
Recommends:	(plasma5-kwin-wayland-nvidia if plasma5-kwin)
Requires:	(%{drivername}-dracut if dracut)
Requires:	%{drivername}-blacklist
Requires:	%{drivername}-power
Requires:	%{drivername}-wayland

Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles

# Package cannot be installed as BuildRequires if it requires both
# 64 and 32 bit packages. Needed for python-pyopencl build on ABF.
%if %{with force_32bit_deps}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Recommends:	libgldispatch0
Recommends:	libopengl0
Recommends:	libglvnd-glx
Recommends:	libglvnd-egl
Recommends:	libglvnd-gles
%endif
Requires:	egl-gbm
Requires:	egl-wayland
Requires:	vulkan
Requires:	libglvnd
Provides:	nvidia = %{EVRD}
%nv_cross_conflict -n core
%nv_replace_branch -n core
#Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

#-----------------------------------------------------------------------------

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	kernel-source-%{drivername} = %{EVRD}
Requires(post):	kernel-source-%{drivername} = %{EVRD}
Provides:	%{drivername}-dkms = %{EVRD}s
%nv_cross_conflict -n dkms
#nv_replace_branch -n dkms

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

#-----------------------------------------------------------------------------

%package -n %{drivername}-dracut
Summary:	Dracut (initramfs) configuration for %{drivername}
Group:		System/Kernel and hardware
Requires:	dracut
Requires:	rosa-kernel-tools
%nv_cross_conflict -n dracut
%nv_replace_branch -n dracut

%description -n %{drivername}-dracut
Dracut (initramfs) configuration for %{drivername}.
Include Nvidia kernel modules into initramfs (initrd).

#-----------------------------------------------------------------------------

%package -n %{drivername}-blacklist
Summary:	Blacklist opensource Nouveau driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n blacklist
%nv_replace_branch -n blacklist

%description -n %{drivername}-blacklist
Blacklist opensource Nouveau driver.
Proprietary Nvidia driver replaces it.

#-----------------------------------------------------------------------------

%package -n %{drivername}-wayland
Summary:	NVIDIA Wayland driver
Group:		System/Kernel and hardware
%nv_cross_conflict -n wayland
%nv_replace_branch -n wayland

%description -n %{drivername}-wayland
Proprietary Nvidia wayland driver.

#-----------------------------------------------------------------------------

%package -n %{drivername}-power
Summary:	Advanced  power management
Group:		System/Kernel and hardware
%nv_cross_conflict -n power
%nv_replace_branch -n power
# systemd units are in the "core" subpackage in nvidia470,
# some hardware is supported by both 470 and 550, so we need smooth upgrade
Conflicts:	nvidia470-core < 550

%description -n %{drivername}-power
Advanced  power management, preserve memory allocation on suspend/resume.

#-----------------------------------------------------------------------------

%package -n kernel-source-%{drivername}
Summary:	Kernel source of %{drivername}
Group:		System/Kernel and hardware

%description -n kernel-source-%{drivername}
Kernel source of %{drivername}

#-----------------------------------------------------------------------------

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{EVRD}
Requires:	%{drivername}-cuda-opencl = %{EVRD}
Requires:	%{_lib}vdpau-devel
%nv_cross_conflict -n devel
%nv_replace_branch -n devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

#-----------------------------------------------------------------------------

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{EVRD}
%nv_cross_conflict -n cuda-opencl
%nv_replace_branch -n cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

#-----------------------------------------------------------------------------

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{EVRD}
%nv_cross_conflict -n doc-html
%nv_replace_branch -n doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

#-----------------------------------------------------------------------------

%if %{with binary_kernel_modules}
# TODO: package it better
%package debug
Summary:       Debug for %{NAME} binary kernel modules
Group:         Development/Debug
Requires:      auto-krokodil-filesystem
%nv_cross_conflict -n debug
%nv_replace_branch -n debug

%description debug
Debug for %{NAME} binary kernel modules
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build

%if %{with binary_kernel_modules}
dir0="$PWD"
%if %{mdvver} < 202310
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.10
pushd %{pkgname}/kernel-5.10
%make SYSSRC=/lib/modules/%{kabi_510}/source
mkdir -p "$dir0"/%{kabi_510}
mv *.ko "$dir0"/%{kabi_510}
popd
cp -r %{pkgname}/kernel %{pkgname}/kernel-5.15
pushd %{pkgname}/kernel-5.15
%make SYSSRC=/lib/modules/%{kabi_515}/source
mkdir -p "$dir0"/%{kabi_515}
mv *.ko "$dir0"/%{kabi_515}
popd
%endif
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.1
pushd %{pkgname}/kernel-6.1
%make SYSSRC=/lib/modules/%{kabi_61}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_61}
mv *.ko "$dir0"/%{kabi_61}
popd
cp -r %{pkgname}/kernel %{pkgname}/kernel-6.6
pushd %{pkgname}/kernel-6.6
%make SYSSRC=/lib/modules/%{kabi_66}/source MODULE_ROOT="$PWD"
mkdir -p "$dir0"/%{kabi_66}
mv *.ko "$dir0"/%{kabi_66}
popd
%endif

# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

%if %{with binary_kernel_modules}
list="%{kabi_66} %{kabi_61}"
%if %{mdvver} < 202310
list+=" %{kabi_515} %{kabi_510}"
%endif
# copied from kernel
# extract debuginfo
# TODO: sync location of *.debug files with kernel
find $list \
	-name "*.ko" | \
	xargs -I '{}' objcopy --only-keep-debug '{}' '{}'.debug
find $list \
	-name "*.ko" | xargs -I '{}' \
	sh -e -c 'cd $(dirname {}) && basename=$(basename {}) && \
		objcopy --add-gnu-debuglink=$basename.debug --strip-debug $basename'
# TODO: maybe make modules compression be a macro to ensure that they
# are compressed in the same way here and in the kernel itself
find $list -maxdepth 1 -type f -name '*.ko' | xargs -I'{}' -P"$(nproc)" zstd --ultra -22 '{}'
for i in $list; do
	mkdir -p %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.ko.zst %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
	install -m0644 $i/*.debug %{buildroot}%{kroko_kmods_dir}/%{NAME}.%{kroko_release}-$i
done
%endif

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
GenericName=Configure NVIDIA X driver
GenericName[ru]=Настройка драйвера NVIDIA X
Comment=Configure NVIDIA X driver
Comment[ru]=Настройка драйвера NVIDIA X
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# Configs
install -D -m 644 %{SOURCE6} %{buildroot}%{_datadir}/X11/xorg.conf.d/15-nvidia.conf

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	ICON)
		parseparams subdir
		install_file_only nvidia-settings.png %{_datadir}/icons/hicolor/128x128/apps
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
		
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENGL_DATA)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia
		;;
	GLVND_LIB)
		;;
	GLVND_SYMLINK)
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	GBM_BACKEND_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-sleep.sh|*nvidia-debugdump|*nvidia-ngx-updater|*nvidia-powerd)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	INTERNAL_UTILITY*)
		case "$file" in
		*libglvnd_install_checker*)
			# ROSA does provide libglvnd, the checker is not needed.
			continue
			;;
		*)
			error_unhandled "unknown file $file of type $type to be installed, see .manifest."
			;;
		esac
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		parseparams dest
		install_file nvidia %{_sysconfdir}/vulkan/${dest}
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	GBM_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	FIRMWARE)
		install_file nvidia %{_firmwarepath}/nvidia
		;;
	SYSTEMD_UNIT)
		install_file nvidia %{_unitdir}
		;;
	SYSTEMD_UNIT_SYMLINK)
		;;
	SYSTEMD_SLEEP_SCRIPT)
		install_file nvidia %{_systemd_util_dir}/system-sleep
		;;
		WINE_LIB)
        install_file nvidia %{_libdir}/%{drivername}/wine
        ;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-ngx-updater
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-powerd
touch					%{buildroot}%{_bindir}/nvidia-sleep.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
echo "%{_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

echo "/usr/lib" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

mkdir -p %{buildroot}%{_datadir}/auto-krokodil/drivers
install -m0644 supported-gpus/supported-gpus.json %{buildroot}%{_datadir}/auto-krokodil/drivers/%{name}.json

# Trigger rebuilding initrds
# For rosa-kernel-tools
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{drivername}-dracut

%if %{with binary_kernel_modules}
touch %{buildroot}/var/spool/initramfs-regen/%{NAME}.%{kroko_release}
%endif

mkdir -p %{buildroot}/etc/dracut.conf.d
cat > %{buildroot}/etc/dracut.conf.d/10-%{drivername}.conf << 'EOF'
add_drivers+=" nvidia nvidia_modeset nvidia_drm "
%ifarch %{x86_64}
add_drivers+=" nvidia-uvm "
%endif
omit_drivers+=" nouveau "
install_optional_items+=" /etc/modprobe.d/nvidia-power-management.conf "
install_optional_items+=" /etc/modprobe.d/%{drivername}-blacklist-nouveau.conf "
install_optional_items+=" /etc/modprobe.d/%{drivername}-wayland.conf "
EOF

mkdir -p %{buildroot}/etc/modprobe.d
echo "blacklist nouveau" > %{buildroot}/etc/modprobe.d/%{drivername}-blacklist-nouveau.conf
echo "options nvidia_drm modeset=1 fbdev=1" > %{buildroot}/etc/modprobe.d/%{drivername}-wayland.conf

# Blacklist nouveau, autoload nvidia-uvm module after nvidia module
install -p -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/modprobe.d/
install -p -m 0644 %{SOURCE16} %{buildroot}%{_sysconfdir}/modprobe.d/

# UDev rules for nvidia
mkdir -p %{buildroot}%{_udevrulesdir}
install -p -m 0644 %{SOURCE7} %{buildroot}%{_udevrulesdir}/

# UDev rules for nvidia-uvm
install -p -m 0644 %{SOURCE10} %{buildroot}%{_udevrulesdir}/

# Install dbus config
mkdir -p %{buildroot}%{_datadir}/dbus-1/system.d
install -p -m 0644 nvidia-dbus.conf %{buildroot}%{_datadir}/dbus-1/system.d/

# Install nvidia-fallback
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE13} %{buildroot}%{_udevrulesdir}/
install -p -m 0644 %{SOURCE14} %{buildroot}%{_unitdir}

mkdir -p %{buildroot}%{_presetdir}
install -p -m 0644 %{SOURCE17} %{buildroot}%{_presetdir}

mkdir -p %{buildroot}%{_libdir}/gbm
ln -s %{nvidia_libdir}/libnvidia-allocator.so.%{version} %{buildroot}%{_libdir}/gbm/nvidia-drm_gbm.so

# TODO: install each license separately
sed -i'' -e '/LICENSE/d' nvidia.files

%posttrans -n %{driverpkgname}
%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-ngx-updater nvidia-ngx-updater %{nvidia_bindir}/nvidia-ngx-updater \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-powerd nvidia-powerd %{nvidia_bindir}/nvidia-powerd \
	--slave %{_bindir}/nvidia-sleep.sh nvidia-sleep %{nvidia_bindir}/nvidia-sleep.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%posttrans -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%posttrans -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /usr/lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/usr/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /usr/lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /usr/lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files

%{_datadir}/auto-krokodil/drivers/%{name}.json

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%{_sysconfdir}/vulkan/implicit_layer.d/nvidia_layers.json
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%{_datadir}/egl/egl_external_platform.d/15_nvidia_gbm.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation
%{_datadir}/nvidia/nvoptix.bin

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd
%{_datadir}/X11/xorg.conf.d/15-nvidia.conf
%dir %{_libdir}/gbm
%{_libdir}/gbm/nvidia-drm_gbm.so

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-ngx-updater
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-powerd
%ghost %{_bindir}/nvidia-sleep.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-ngx-updater
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-powerd
%{nvidia_bindir}/nvidia-sleep.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

%dir %{_firmwarepath}/nvidia
%{_firmwarepath}/nvidia/gsp_ga10x.bin
%{_firmwarepath}/nvidia/gsp_tu10x.bin
%{_unitdir}/nvidia-fallback.service
%{_sysconfdir}/modprobe.d/nvidia-uvm.conf
%{_udevrulesdir}/10-nvidia.rules
%{_udevrulesdir}/60-nvidia-uvm.rules
%{_udevrulesdir}/60-nvidia.rules

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/128x128/apps/nvidia-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.1
%{nvidia_libdir}/libnvidia-api.so.1
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-gpucomp.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-egl-gbm.so.1*
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%{nvidia_libdir}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir}/libnvidia-opticalflow.so.1
%{nvidia_libdir}/libnvidia-ngx.so.%{version}
%{nvidia_libdir}/libnvidia-nvvm.so.4
%{nvidia_libdir}/libnvidia-nvvm.so.%{version}
%{nvidia_libdir}/libnvidia-wayland-client.so.%{version}
%{nvidia_libdir}/libnvidia-pkcs11-openssl3.so.%{version}
%{nvidia_libdir}/libnvidia-pkcs11.so.%{version}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-nvvm.so.4
%{nvidia_libdir32}/libnvidia-nvvm.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%{nvidia_libdir32}/libnvidia-gpucomp.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.1
%{nvidia_libdir32}/libnvidia-allocator.so.%{version}
%{nvidia_libdir32}/libnvidia-allocator.so.1

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_driversdir}/nvidia_drv.so

%{nvidia_wine}/_nvngx.dll
%{nvidia_wine}/nvngx.dll

%files -n %{drivername}-devel
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-nvvm.so
%{nvidia_libdir}/libnvidia-encode.so
%{nvidia_libdir}/libnvidia-opticalflow.so
%{nvidia_libdir}/libnvidia-allocator.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-nvvm.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-opticalflow.so
%{nvidia_libdir32}/libnvidia-allocator.so


%files -n dkms-%{drivername}
%{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n kernel-source-%{drivername}
%license %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}
%exclude %{_usrsrc}/%{drivername}-%{version}-%{release}/dkms*

%files -n %{drivername}-dracut
%config(noreplace) %{_sysconfdir}/dracut.conf.d/10-%{drivername}.conf
/var/spool/initramfs-regen/%{drivername}-dracut

%files -n %{drivername}-blacklist
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-blacklist-nouveau.conf

%files -n %{drivername}-wayland
%config(noreplace) %{_sysconfdir}/modprobe.d/%{drivername}-wayland.conf

%files -n %{drivername}-power
%config(noreplace) %{_sysconfdir}/modprobe.d/nvidia-power-management.conf
%{nvidia_bindir}/nvidia-sleep.sh
%{nvidia_bindir}/nvidia-powerd
%{_datadir}/dbus-1/system.d/nvidia-dbus.conf
%{_presetdir}/70-nvidia.preset
%{_systemd_util_dir}/system-sleep/nvidia
%{_unitdir}/nvidia-hibernate.service
%{_unitdir}/nvidia-powerd.service
%{_unitdir}/nvidia-resume.service
%{_unitdir}/nvidia-suspend.service

%post -n %{drivername}-power
%systemd_post nvidia-hibernate.service
%systemd_post nvidia-resume.service
%systemd_post nvidia-powerd.service
%systemd_post nvidia-suspend.service

%preun -n %{drivername}-power
%systemd_preun nvidia-hibernate.service
%systemd_preun nvidia-resume.service
%systemd_preun nvidia-powerd.service
%systemd_preun nvidia-suspend.service

%postun -n %{drivername}-power
%systemd_postun_with_restart nvidia-hibernate.service
%systemd_postun_with_restart nvidia-resume.service
%systemd_postun_with_restart nvidia-powerd.service
%systemd_postun_with_restart nvidia-suspend.service


%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libcudadebugger.so.%{version}
%{nvidia_libdir}/libcudadebugger.so.1
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

%if %{with binary_kernel_modules}
%if %{mdvver} < 202310
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.10 -m %(if rpm -q kernel-5.10-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.10-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_510} -s %{NAME} -c .zst %{kmod_replace_args}
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 5.15 -m %(if rpm -q kernel-5.15-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-5.15-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_515} -s %{NAME} -c .zst %{kmod_replace_args}
%endif
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.1 -m %(if rpm -q kernel-6.1-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.1-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_61} -s %{NAME} -c .zst %{kmod_replace_args}
%kroko_kmod_pkg -r %{kroko_release} -j %{version_j} -n %{version_n} -f generic -k 6.6 -m %(if rpm -q kernel-6.6-generic 1>/dev/null 2>/dev/null; then rpm -q --qf '%%{version}\n' kernel-6.6-generic | tail -n1 | awk -F '.' '{print $3}'; else echo 0; fi) -p %{kabi_66} -s %{NAME} -c .zst %{kmod_replace_args}

%files debug
%{kroko_kmods_dir}/*/*.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14957 |21mr|nvidia-additional-settings-1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Additional settings set for nvidia GPUs
Name: nvidia-additional-settings
Version: 1
Release: 6
Group: System/Kernel and hardware
Url: https://abf.rosalinux.ru/abf/nvidia-additional-settings/issues
License: GPLv2+
BuildArch: noarch
Source0: 68nvidia-defaults.sh

%description
Default settings for NVidia drivers.

%install
mkdir -p %buildroot/etc/profile.d
install -m755 %{SOURCE0} -D %{buildroot}/etc/profile.d/68nvidia-defaults.sh

%files
%config /etc/profile.d/68nvidia-defaults.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14958 |21mr|nx-3.5.99.26-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# most of the descriptions are stolen from the debian package
%global _hardened_build 1

%define Werror_cflags %{nil}

Summary:	NoMachine NX
Name:		nx
Version:	3.5.99.26
Release:	2
License:	GPLv2+ and MIT
Group:		Networking/Remote access
Url:		http://www.nomachine.com/sources.php
Source0:	https://github.com/ArcticaProject/nx-libs/archive/%{version}.tar.gz?/nx-libs-%{version}.tar.gz
Source10:	GUUG-Presentation-NX.pdf
Patch0:		nx-libs-ar.patch
BuildRequires:	gccmakedep
BuildRequires:	imake
BuildRequires:	jpeg-devel
BuildRequires:	tirpc-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(fontenc)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfont)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libxml-2.0)

%description
NoMachine NX is the next-generation X compression and roundtrip suppression
scheme. It can operate remote X11 sessions over 56k modem dialup links or
anything better.

%files
%license COPYING LICENSE LICENSE.nxcomp
%doc ChangeLog
%dir %{_libdir}/nx
%dir %{_datadir}/nx
%dir %{_datadir}/nx/X11
%{_datadir}/nx/SecurityPolicy
%{_datadir}/nx/X11/XErrorDB
%{_datadir}/nx/X11/Xcms.txt

#----------------------------------------------------------------------------

%define x11_major 6
%define libx11 %mklibname NX_X11_ %{x11_major}

%package -n %{libx11}
Summary:	NX-X11 library for NX
Group:		System/Libraries
Provides:	nxX11 = %{EVRD}

%description -n %{libx11}
NX-X11 library for NX.

%files -n %{libx11}
%doc GUUG-Presentation-NX.pdf
%{_libdir}/libNX_X11.so.%{x11_major}*

#----------------------------------------------------------------------------

%define xcomp_major 3
%define libxcomp %mklibname xcomp %{xcomp_major}

%package -n %{libxcomp}
Summary:	Xcomp library for NX
Group:		System/Libraries
Provides:	xcomp = %{EVRD}

%description -n %{libxcomp}
Xcomp library for NX subsystem.

%files -n %{libxcomp}
%{_libdir}/libXcomp.so.%{xcomp_major}*

#----------------------------------------------------------------------------

%define xcompshad_major 3
%define libxcompshad %mklibname xcompshad %{xcompshad_major}

%package -n %{libxcompshad}
Summary:	Xcompshad library for NX
Group:		System/Libraries
Provides:	xcompshad = %{EVRD}
Conflicts:	%{_lib}xcompext3 < 3.5.0-4

%description -n %{libxcompshad}
Xcompshad library for NX subsystem.

%files -n %{libxcompshad}
%{_libdir}/libXcompshad.so.%{xcompshad_major}*

#----------------------------------------------------------------------------

%package -n nxproxy
Summary:	Provide the protocol compression and caching part of the NX scheme
Group:		Networking/Remote access

%description -n nxproxy
The nxproxy runs on the X server side of the wire and thus accompanies the
nxagent running on X client side. It provides the protocol compression and
caching part of the NX scheme.

%files -n nxproxy
%{_bindir}/nxproxy
%{_datadir}/nx/VERSION.nxproxy
%{_mandir}/man1/nxproxy.1*

#----------------------------------------------------------------------------

%package -n nxagent
Summary:	NX X server based on Xnest
Group:		Networking/Remote access
Requires:	%{name}
Requires:	nxX11 = %{EVRD}
Requires:	xcomp = %{EVRD}
Requires:	xcompshad = %{EVRD}
Obsoletes:	nxauth < 3.5.99.1

%description -n nxagent
The nxagent is an X server based on Xnest, but modified for the purpose of
reducing roundtrips over high-latency networks significantly. It is run on the
client side of X, that is, on the machine where X clients run. It connects,
over the wire, to your regular X server, possibly through nxproxy.

%files -n nxagent
%doc doc/nxagent/README.keystrokes
%dir %{_sysconfdir}/nxagent
%config(noreplace) %{_sysconfdir}/nxagent/keystrokes.cfg
%{_bindir}/nxagent
%dir %{_libdir}/nx
%dir %{_libdir}/nx/bin
%{_libdir}/nx/bin/nxagent
%dir %{_datadir}/nx
%{_datadir}/nx/fonts
%{_datadir}/nx/VERSION.nxagent
%{_mandir}/man1/nxagent.1*

#----------------------------------------------------------------------------
%package -n nxdialog
Summary:	NX Dialog
Group:		Networking/Remote access

%description -n nxdialog
NX is a software suite which implements very efficient compression of
the X11 protocol. This increases performance when using X
pplications over a network, especially a slow one.

This package provides the nxdialog helper script.

%files -n nxdialog
%doc nxdialog/README.md
%{_bindir}/nxdialog
%{_mandir}/man1/nxdialog.1*

#----------------------------------------------------------------------------
%define devx11 %mklibname NX_X11_ -d

%package -n %{devx11}
Summary:	Development files for the Core NX protocol library
Group:		Development/Other
Requires:	nxX11 = %{EVRD}
Requires:	nx-proto-devel = %{EVRD}
Provides:	nxX11-devel = %{EVRD}

%description -n %{devx11}
NX is a software suite which implements very efficient compression of
the X11 protocol. This increases performance when using X
applications over a network, especially a slow one.

The X Window System is a network-transparent window system that was
designed at MIT. X display servers run on computers with either
monochrome or color bitmap display hardware. The server distributes
user input to and accepts output requests from various client
programs located either on the same machine or elsewhere in the
network. Xlib is a C subroutine library that application programs
(clients) use to interface with the window system by means of a
stream connection.

This package contains all necessary include files and libraries
needed to develop applications that require these.

%files -n  %{devx11}
%{_libdir}/libNX_X11.so
%{_libdir}/pkgconfig/nx-x11.pc
%dir %{_includedir}/nx-X11
%{_includedir}/nx-X11/ImUtil.h
%{_includedir}/nx-X11/Xauth.h
%{_includedir}/nx-X11/XKBlib.h
%{_includedir}/nx-X11/Xcms.h
%{_includedir}/nx-X11/Xlib.h
%{_includedir}/nx-X11/XlibConf.h
%{_includedir}/nx-X11/Xlibint.h
%{_includedir}/nx-X11/Xlocale.h
%{_includedir}/nx-X11/Xregion.h
%{_includedir}/nx-X11/Xresource.h
%{_includedir}/nx-X11/Xutil.h
%{_includedir}/nx-X11/cursorfont.h

#----------------------------------------------------------------------------
%define devxcomp %mklibname -d xcomp

%package -n %{devxcomp}
Summary:	Development files for the NX differential compression library
Group:		Development/Other
Requires:	xcomp = %{EVRD}
Requires:	nx-proto-devel = %{EVRD}
Provides:	xcomp-devel = %{EVRD}
Obsoletes:	libXcompext-devel < 3.5.99.3

%description -n %{devxcomp}
NX is a software suite which implements very efficient compression of
the X11 protocol. This increases performance when using X
applications over a network, especially a slow one.

The NX differential compression library's development files.

%files -n %{devxcomp}
%{_libdir}/libXcomp.so
%{_libdir}/pkgconfig/nxcomp.pc
%dir %{_includedir}/nx
%{_includedir}/nx/MD5.h
%{_includedir}/nx/NX.h
%{_includedir}/nx/NXalert.h
%{_includedir}/nx/NXpack.h
%{_includedir}/nx/NXproto.h
%{_includedir}/nx/NXvars.h
#----------------------------------------------------------------------------
%define devxcompshad %mklibname xcompshad -d

%package -n %{devxcompshad}
Summary:	Development files for the NX session shadowing library
Group:		Development/Other
Requires:	xcompshad = %{EVRD}
Requires:	nxX11-devel = %{EVRD}
Requires:	nx-proto-devel = %{EVRD}
Requires:	%{name}-devel = %{EVRD}
Provides:	xcompshad-devel = %{EVRD}

%description -n %{devxcompshad}
NX is a software suite which implements very efficient compression of
the X11 protocol. This increases performance when using X
applications over a network, especially a slow one.

The NX session shadowing library's development files.

%files -n %{devxcompshad}
%{_libdir}/libXcompshad.so
%{_libdir}/pkgconfig/nxcompshad.pc
%dir %{_includedir}/nx
%{_includedir}/nx/Shadow.h

#----------------------------------------------------------------------------
%package devel
Summary:	Include files and libraries for NX development
Group:		Development/Other
Requires:	nxX11-devel = %{EVRD}
Requires:	nx-proto-devel = %{EVRD}
Requires:	%{name} = %{EVRD}
Obsoletes:	libNX_Xau-devel < 3.5.99.1
Obsoletes:	libNX_Xdmcp-devel < 3.5.0.32-2
Obsoletes:	libNX_Xext-devel < 3.5.99.1
Obsoletes:	libNX_Xfixes-devel < 3.5.99.1
Obsoletes:	libNX_Xpm-devel < 3.5.0.32-2
Obsoletes:	libNX_Xrender-devel < 3.5.99.1

%description devel
NX is a software suite from NoMachine which implements very efficient
compression of the X11 protocol. This increases performance when
using X applications over a network, especially a slow one.

This package contains all necessary include files and libraries
needed to develop nx-X11 applications that require these.

%files devel
%dir %{_includedir}/nx-X11/extensions
%{_includedir}/nx-X11/extensions/panoramiXext.h
%{_includedir}/nx-X11/misc.h
%{_includedir}/nx-X11/os.h
#----------------------------------------------------------------------------

%package -n nx-proto-devel
Summary:	Include files for NX development
Group:		Development/Other

%description -n nx-proto-devel
This package contains all necessary include files and libraries
for the nx_X11 wire protocol.

%files -n nx-proto-devel
%dir %{_includedir}/nx-X11
%{_includedir}/nx-X11/DECkeysym.h
%{_includedir}/nx-X11/HPkeysym.h
%{_includedir}/nx-X11/Sunkeysym.h
%{_includedir}/nx-X11/X.h
%{_includedir}/nx-X11/XF86keysym.h
%{_includedir}/nx-X11/Xarch.h
%{_includedir}/nx-X11/Xatom.h
%{_includedir}/nx-X11/Xdefs.h
%{_includedir}/nx-X11/Xfuncproto.h
%{_includedir}/nx-X11/Xfuncs.h
%{_includedir}/nx-X11/Xmd.h
%{_includedir}/nx-X11/Xos.h
%{_includedir}/nx-X11/Xos_r.h
%{_includedir}/nx-X11/Xosdefs.h
%{_includedir}/nx-X11/Xpoll.h
%{_includedir}/nx-X11/Xproto.h
%{_includedir}/nx-X11/Xprotostr.h
%{_includedir}/nx-X11/Xthreads.h
%{_includedir}/nx-X11/keysym.h
%{_includedir}/nx-X11/keysymdef.h
%{_includedir}/nx-X11/extensions/Xdbeproto.h
%{_includedir}/nx-X11/extensions/XI.h
%{_includedir}/nx-X11/extensions/XIproto.h
%{_includedir}/nx-X11/extensions/XResproto.h
%{_includedir}/nx-X11/extensions/bigreqstr.h
%{_includedir}/nx-X11/extensions/composite.h
%{_includedir}/nx-X11/extensions/compositeproto.h
%{_includedir}/nx-X11/extensions/damagewire.h
%{_includedir}/nx-X11/extensions/damageproto.h
%{_includedir}/nx-X11/extensions/dpms.h
%{_includedir}/nx-X11/extensions/dpmsstr.h
%{_includedir}/nx-X11/extensions/panoramiXproto.h
%{_includedir}/nx-X11/extensions/randr.h
%{_includedir}/nx-X11/extensions/randrproto.h
%{_includedir}/nx-X11/extensions/record*.h
%{_includedir}/nx-X11/extensions/render.h
%{_includedir}/nx-X11/extensions/renderproto.h
%{_includedir}/nx-X11/extensions/saver.h
%{_includedir}/nx-X11/extensions/saverproto.h
%{_includedir}/nx-X11/extensions/security.h
%{_includedir}/nx-X11/extensions/securstr.h
%{_includedir}/nx-X11/extensions/shapeconst.h
%{_includedir}/nx-X11/extensions/sync.h
%{_includedir}/nx-X11/extensions/syncstr.h
%{_includedir}/nx-X11/extensions/xcmiscstr.h
%{_includedir}/nx-X11/extensions/xf86bigfont.h
%{_includedir}/nx-X11/extensions/xf86bigfproto.h
%{_includedir}/nx-X11/extensions/xfixesproto.h
%{_includedir}/nx-X11/extensions/xfixeswire.h
%{_includedir}/nx-X11/extensions/xtestconst.h
%{_includedir}/nx-X11/extensions/xteststr.h
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n nx-libs-%{version}

# Install into /usr
sed -i -e 's,/usr/local,%{_prefix},' nx-X11/config/cf/site.def
# Fix FSF address
find -name LICENSE | xargs sed -i \
  -e 's/59 Temple Place/51 Franklin Street/' -e 's/Suite 330/Fifth Floor/' \
  -e 's/MA  02111-1307/MA  02110-1301/'
# Fix source permissions
find -type f -name '*.[hc]' | xargs chmod -x

%build
# documentation explainig how NX works
cp %{SOURCE10} ./

cat >"tmp_configure" <<EOF
%configure --enable-static --disable-silent-rules "${@}"
EOF

sed s,"/configure","./configure",g -i tmp_configure

chmod a+x tmp_configure
# _hardened_build not working for EL6, at least define __global_ldflags for now
%{!?__global_ldflags: %global __global_ldflags -Wl,-z,relro -Wl,-z,now}
export SHLIBGLOBALSFLAGS="%{__global_ldflags}"
export LOCAL_LDFLAGS="%{__global_ldflags}"
export CDEBUGFLAGS="%{optflags}"
IMAKE_DEFINES="-DUseTIRPC=YES"
# parallel make failed
make \
    CONFIGURE="$PWD/tmp_configure" \
    LIBDIR=%{_libdir} \
    CDEBUGFLAGS="${CDEBUGFLAGS}" \
    LOCAL_LDFLAGS="${LOCAL_LDFLAGS}" \
    SHLIBGLOBALSFLAGS="${SHLIBGLOBALSFLAGS}" \
    IMAKE_DEFINES="${IMAKE_DEFINES}"


%install
%makeinstall_std \
	PREFIX=%{_prefix} \
	INSTALL_DIR="install -dm0755" \
	INSTALL_FILE="install -pm0644" \
	INSTALL_PROGRAM="install -pm0755" \
	USRLIBDIR=%{_libdir} \
	SHLIBDIR=%{_libdir}

ln -s ../X11/fonts %{buildroot}%{_datadir}/nx/fonts

# Remove static libs
rm %{buildroot}%{_libdir}/*.a

# Remove extras, GL, and other unneeded headers
rm -r %{buildroot}%{_includedir}/GL
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/XK*.h
rm -r %{buildroot}%{_includedir}/nx-X11/extensions/*Xv*.h
rm -r %{buildroot}%{_includedir}/nx-X11/Xtrans

#Remove our shared libraries' .la files before wrapping up the packages
rm %{buildroot}%{_libdir}/*.la

#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/nxdialog

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14959 |21mr|oath-toolkit-2.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname oath %{major}
%define devname %mklibname oath -d

Summary:	OATH Toolkit is a software toolkit for using HOTP/TOTP schemes
Name:		oath-toolkit
Version:	2.6.2
Release:	1
License:	GPLv3+
Group:		System/Base
Url:		http://www.nongnu.org/oath-toolkit
Source0:	http://download.savannah.nongnu.org/releases/oath-toolkit/oath-toolkit-%{version}.tar.gz

## Fedora patches:
# Escape leading single quotes in man pages which are misinterpreted as macros,
# patch sent upstream, upstream ticket #108312
Patch0:         oath-toolkit-2.0.2-man-fix.patch
# Fix invalid reads due to references to old (freed) xmlDoc,
# upstream ticket #108736
Patch1:         oath-toolkit-2.4.1-retain-original-xmldoc.patch
Patch2:         oath-2.6.2-compile.patch
# From upsteam:
Patch10:        0001-Update-gnulib-files.patch
# From upstream merge sequest:
# https://gitlab.com/oath-toolkit/oath-toolkit/merge_requests/9/
#Patch11:       0001-gnulib-fix-fseeko-with-glibc-2.28.patch
#Patch12:       oath-toolkit-2.6.2-gcc7.patch
Patch13:        oath-toolkit-2.6.2-glibc228.patch

BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	bison
BuildRequires:	help2man

%description
The OATH Toolkit contains a shared library, a command line tool and a PAM
module that makes it possible to implement one-time password authentication
systems. Supported technologies include the event-based HOTP algorithm and the
time-based TOTP algorithm. OATH stands for Open AuTHentication, a community
behind the specification. Please see RFC 4226 for further information.

The components included in the package are:

* liboath: A shared and static C library for OATH handling.
* oathtool: A command line tool for generating and validating OTPs.
* pam_oath: A PAM module for pluggable login authentication for OATH.

%files
%doc ChangeLog README COPYING
%{_bindir}/oathtool
%{_mandir}/man1/oathtool.*.*

#----------------------------------------------------------------------------

%package -n pam_oath
Summary:	A PAM module for HOTP/TOTP one-time password authentication
Group:		System/Libraries

%description -n pam_oath
A PAM module for HOTP/TOTP one-time password authentication.

%files -n pam_oath
/%{_lib}/security/pam_oath.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library implementing HOTP/TOTP one-time password authentication schemes
Group:		System/Libraries

%description -n %{libname}
A library implementing HOTP/TOTP one-time password authentication schemes.

%files -n %{libname}
%{_libdir}/liboath.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and documentation for liboath
Group:		System/Libraries
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and documentation for liboath.

%files -n %{devname}
%{_libdir}/liboath.so
%dir %{_includedir}/liboath
%{_includedir}/liboath/oath.h
%{_libdir}/pkgconfig/liboath.pc
%dir %{_datadir}/gtk-doc/html/liboath
%doc %{_datadir}/gtk-doc/html/liboath/*
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--with-pam-dir=/%{_lib}/security \
	--disable-static \
	--disable-pskc \
	--with-pic

%make_build -j1

%install
%make_install

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14960 |21mr|obconf-2.0.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Openbox preferences manager
Name:		obconf
Version:	2.0.4
Release:	10
Source0:	http://openbox.org/dist/obconf/%name-%version.tar.gz
Patch1:		obconf-2.0.3-link.patch
Patch2:		obconf-2.0.4-ru.patch
# No need to use this patch during the build. It is only required to correctly regenerate *.pot file
Patch3:		obconf-2.0.4-fix-pot.patch
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://openbox.org/wiki/Obconf
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	gettext-devel
BuildRequires:	startup-notification-devel
BuildRequires:	openbox-devel >= 3.5.2
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(sm)
BuildRequires:	desktop-file-utils
Requires:	openbox >= 3.5.2

%description
ObConf is a graphical configuration tool for the Openbox window manager.

%prep
%setup -q
rm -f po/*gmo
%apply_patches

%build
autoreconf -fi
%configure
%make
pushd po
make update-gmo
popd

%install
%makeinstall

# fix .desktop file
desktop-file-install --remove-key="Encoding" \
		--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

echo "NotShowIn=LXQt;X-LXQt;" >> %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name}

%files -f %{name}.lang
%doc AUTHORS README COPYING TODO
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/mimelnk/application/x-openbox-theme.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14961 |21mr|obconf-qt-0.16.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Openbox configuration tool for the LXQt desktop
Name:		obconf-qt
Version:	0.16.3
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/obconf-qt
Source0:	https://github.com/lxqt/obconf-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(obrender-3.5)
BuildRequires:	pkgconfig(obt-3.5)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)

%description
Openbox configuration tool for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CXXFLAGS="%optflags -lX11"
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14962 |21mr|obexd-0.48-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	D-Bus service for Obex Client access
Name:		obexd
Version:	0.48
Release:	7
License:	GPLv2+
Group:		Communications
Url:		http://www.bluez.org/
Source0:	http://www.kernel.org/pub/linux/bluetooth/obexd-%{version}.tar.xz
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(openobex)

%description
obexd contains obex-client, a D-Bus service to allow sending files
using the Obex Push protocol, common on mobile phones and
other Bluetooth-equipped devices.

%files
%doc AUTHORS README doc/client-api.txt
%{_datadir}/dbus-1/services/obex-client.service
%{_libexecdir}/obex-client

#------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-server
%make

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14963 |21mr|obex-data-server-0.4.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		obex-data-server
Version:	0.4.6
Release:	11
Summary:	D-Bus service for Obex access

Group:		System/Servers
License:	GPLv2+
Source0:	http://tadas.dailyda.com/software/%{name}-%{version}.tar.gz
Url:		http://tadas.dailyda.com/blog
Patch0:		obex-data-server-0.4.6-build-fixes-1.patch

BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	bluez-devel
BuildRequires:	openobex-devel
BuildRequires:	gtk2-devel
BuildRequires:	pkgconfig(libusb)
BuildRequires:	libtool

%description
obex-data-server is a D-Bus service to allow sending and receiving files
using the ObexFTP and Obex Push protocols, common on mobile phones and
other Bluetooth-equipped devices.

%prep
%setup -q
%patch0 -p1

%build
%configure --enable-bip=gdk-pixbuf
%make

cat << EOF > README
Bug tracking system is at:
http://bugs.muiline.com/view_all_bug_page.php

Web page is at:
http://tadas.dailyda.com/blog/

SVN tree:
svn://svn.muiline.com/obex-data-server/trunk/

SVN browsing:
http://svn.muiline.com/cgi-bin/viewvc.cgi/obex-data-server/trunk/

EOF

%install
# FIXME files missing: http://bugs.muiline.com/view.php?id=42
#chmod a-x test/*.py
%makeinstall_std

%files
%doc AUTHORS ChangeLog NEWS README COPYING dbus-api.txt
#test/ods-dbus-test.c test/ods-server-test.py test/ods-session-test.py
%{_bindir}/obex-data-server
%{_datadir}/dbus-1/services/obex-data-server.service
%config %{_sysconfdir}/obex-data-server/*.xml
%{_mandir}/man1/obex-data-server.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14964 |21mr|obexftp-0.24.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define mcobex_major 1
%define libname %mklibname %{name} %{major}
%define libbfb %mklibname bfb %{major}
%define libmulticobex %mklibname multicobex %{mcobex_major}
%define devname %mklibname %{name} -d

Summary:	Access devices via ObexFTP e.g. Siemens mobile equipment
Name:		obexftp
Version:	0.24.2
Release:	1
License:	GPLv2+
Group:		Communications
Url:		http://dev.zuckschwerdt.org/openobex/wiki/ObexFtp
Source0:	http://download.sourceforge.net/openobex/%{name}-%{version}-Source.tar.gz
Patch0:		%{name}-norpath.patch
# From OpenSUSE, thanks: fix python install path
Patch3:		%{name}-0.24-fix-absurd-install-path.patch
# (tv) fix linking:
#Patch4:		obexftp-fix-linking.diff
BuildRequires:	docbook-dtd45-xml
BuildRequires:	ruby
BuildRequires:	ruby-devel
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(openobex)
BuildRequires:	pkgconfig(python3)
BuildRequires:	gettext-devel
BuildRequires:	libtool
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl-devel
BuildRequires:	tcl-devel
BuildRequires:	cmake
BuildRequires:	swig
BuildRequires:	fuse-devel
BuildRequires:	asciidoc
BuildRequires:	xmlto

%description
The overall goal of this project is to make mobile devices featuring 
the OBEX protocol and adhering to the OBEX FTP standard accessible. 
The most common use for ObexFTP is to access your mobile phones memory 
to store and retrieve e.g. your phonebook, logos, ringtones, music, 
pictures and the like.

%files
%doc AUTHORS ChangeLog NEWS README* THANKS TODO
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%{_libdir}/libobexftp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libbfb}
Summary:	Main library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}obexftp0 < 0.23-10

%description -n %{libbfb}
This package contains a shared library for %{name}.

%files -n %{libbfb}
%{_libdir}/libbfb.so.%{major}*
%{_libdir}/libbfb.so.1

#----------------------------------------------------------------------------

%package -n %{libmulticobex}
Summary:	Main library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}obexftp0 < 0.23-10

%description -n %{libmulticobex}
This package contains a shared library for %{name}.

%files -n %{libmulticobex}
%{_libdir}/libmulticobex.so.%{mcobex_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libbfb} = %{EVRD}
Requires:	%{libmulticobex} = %{EVRD}

%description -n %{devname}
This package includes the development files for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python binding for %{name}
Group:		Development/Python
Requires:	%{name} = %{version}-%{release}

%description -n python3-%{name}
This package contains the python bindings for %{name}.

%files -n python3-%{name}
%{python3_sitearch}/*%{name}*
%{python3_sitearch}/__pycache__/*

#----------------------------------------------------------------------------

%package -n perl-%{name}
Summary:	Perl library to access devices via the OBEX protocol
Group:		Development/C
Requires:	%{name} = %{version}-%{release}

%description -n perl-%{name}
The overall goal of this project is to make mobile devices featuring the OBEX
protocol and adhering to the OBEX FTP standard accessible by an open source
implementation. The common usage for ObexFTP is to access your mobile phones
memory to store and retrieve e.g. your phonebook, logos, ringtones, music,
pictures and alike.

%files -n perl-%{name}
%{perl_vendorarch}/OBEXFTP.pm
%dir %{perl_vendorarch}/*/OBEXFTP
%{perl_vendorarch}/*/OBEXFTP/OBEXFTP.so

#----------------------------------------------------------------------------

%package -n ruby-%{name}
Summary:	Ruby binding for %{name}
Group:		Development/Other
Requires:	%{name} = %{version}-%{release}

%description -n ruby-%{name}
This package contains the ruby bindings for %{name}.

%files -n ruby-%{name}
%{ruby_vendorarchdir}/%{name}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}-Source

%build
%cmake 
#-Wno-dev
# 'all' doesn't include doc, it seems - thanks, SUSE.
# % cmake .. all doc
%make all doc

%install
%makeinstall_std -C build
# % cmake_install RUBYARCHDIR=%{buildroot}%{ruby_vendorarchdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14965 |21mr|objectweb-anttask-1.3.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define section         free

Summary:        ObjectWeb Ant task
Name:           objectweb-anttask
Version:        1.3.2
Release:        11
Epoch:          0
Group:          Development/Java
License:        LGPL
URL:            http://forge.objectweb.org/projects/monolog/
BuildArch:      noarch
BuildRequires:  java-devel
Source0:        http://download.fr2.forge.objectweb.org/monolog/ow_util_ant_tasks_%{version}.tar.bz2
Patch0:         objectweb-anttask-1.3.2-filesets.patch
BuildRequires:  ant
BuildRequires:  java-rpmbuild
BuildRequires:  xalan-j2
BuildRequires:  asm2
Provides:       owanttask = %{epoch}:%{version}-%{release}

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ObjectWeb Ant task

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -c -q -n %{name}
%patch0 -p1

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

%build
export CLASSPATH=$(build-classpath xalan-j2 asm2/ )
export OPT_JAR_LIST=:
%{ant} jar jdoc

%install
# jars
install -d -m 0755 %{buildroot}%{_javadir}

install -m 644 output/lib/ow_util_ant_tasks.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
pushd %{buildroot}%{_javadir}
  ln -sf %{name}-%{version}.jar %{name}.jar
popd

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a output/jdoc/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

%files
%defattr(0644,root,root,0755)
%{_javadir}/*

%files javadoc
%defattr(0644,root,root,0755)
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14966 |21mr|objectweb-asm3-3.3.1-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           objectweb-asm3
Version:        3.3.1
Release:        22
Summary:        Java bytecode manipulation and analysis framework
License:        BSD
URL:            http://asm.ow2.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://download.forge.ow2.org/asm/asm-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  ant
BuildRequires:  maven-local
# shade-jar utility used in this spec file needs this
BuildRequires:  objectweb-asm3
# Explicit javapackages-tools requires since asm3-processor script uses
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description
ASM is an all purpose Java bytecode manipulation and analysis
framework.  It can be used to modify existing classes or dynamically
generate classes, directly in binary form.  Provided common
transformations and analysis algorithms allow to easily assemble
custom complex transformations and code analysis tools.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.

%prep
%setup -q -n asm-%{version}
find -name *.jar -delete

sed -i /Class-path/d archive/asm-xml.xml

# Our system version of asm always used BSN org.objectweb.asm for
# asm-all because that's what Eclipse bundle has.  Now upstream
# provides OSGi metadata with incompatible BSN, but we want to keep
# compatibility with existing Eclipse plugins, so we have to use the
# old BSN (org.objectweb.asm).
sed -i s/org.objectweb.asm.all/org.objectweb.asm/ archive/asm-all.xml

%build
%ant -Dobjectweb.ant.tasks.path= jar jdoc

mv output/dist/lib/all/* output/dist/lib/

# Fix artifactId in POMs for shaded artifacts
for m in asm asm-analysis asm-commons asm-tree asm-util asm-xml asm-all; do
    cp output/dist/lib/${m}-%{version}.pom output/dist/lib/${m}-distroshaded-%{version}.pom
    %pom_xpath_set "pom:project/pom:artifactId" "${m}-distroshaded" \
                   output/dist/lib/${m}-distroshaded-%{version}.pom
done

# Fix inter-module dependecies in POMs for shaded artifacts
pushd output/dist/lib
for m in asm-analysis asm-commons asm-util; do
    %pom_remove_dep :asm-tree ${m}-distroshaded-%{version}.pom
    %pom_add_dep asm:asm-tree-distroshaded:3.3.1 ${m}-distroshaded-%{version}.pom
done
%pom_remove_dep :asm-util asm-xml-distroshaded-%{version}.pom
%pom_add_dep asm:asm-util-distroshaded:3.3.1 asm-xml-distroshaded-%{version}.pom

%pom_remove_dep :asm asm-tree-distroshaded-%{version}.pom
%pom_add_dep asm:asm-distroshaded:3.3.1 asm-tree-distroshaded-%{version}.pom
popd

for m in asm asm-analysis asm-commons asm-tree asm-util asm-xml asm-all; do
    shade-jar org.objectweb.asm org.objectweb.distroshaded.asm output/dist/lib/${m}-%{version}.jar \
              output/dist/lib/${m}-distroshaded-%{version}.jar
    jar xf output/dist/lib/${m}-distroshaded-%{version}.jar META-INF/MANIFEST.MF
    sed -i /Bundle-/d META-INF/MANIFEST.MF
    jar ufM output/dist/lib/${m}-distroshaded-%{version}.jar META-INF/MANIFEST.MF
done

%install
%mvn_artifact output/dist/lib/asm-parent-%{version}.pom

for m in asm asm-analysis asm-commons asm-tree asm-util asm-xml asm-all; do
    %mvn_artifact output/dist/lib/${m}-distroshaded-%{version}.pom \
                  output/dist/lib/${m}-distroshaded-%{version}.jar
                  
    %mvn_artifact output/dist/lib/${m}-%{version}.pom \
                  output/dist/lib/${m}-%{version}.jar
done
%mvn_install -J output/dist/doc/javadoc/user

%jpackage_script org.objectweb.asm.xml.Processor "" "" %{name}/asm:%{name}/asm-attrs:%{name}/asm-util:%{name}/asm-xml %{name}-processor true

%files -f .mfiles
%doc LICENSE.txt README.txt
%{_bindir}/%{name}-processor

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14967 |21mr|objectweb-asm-7.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without junit5
%bcond_without osgi

Name:           objectweb-asm
Version:        7.0
Release:        3
Summary:        Java bytecode manipulation and analysis framework
License:        BSD
URL:            http://asm.ow2.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
Source1:        parent.pom
Source2:        http://repo1.maven.org/maven2/org/ow2/asm/asm/%{version}/asm-%{version}.pom
Source3:        http://repo1.maven.org/maven2/org/ow2/asm/asm-analysis/%{version}/asm-analysis-%{version}.pom
Source4:        http://repo1.maven.org/maven2/org/ow2/asm/asm-commons/%{version}/asm-commons-%{version}.pom
Source5:        http://repo1.maven.org/maven2/org/ow2/asm/asm-test/%{version}/asm-test-%{version}.pom
Source6:        http://repo1.maven.org/maven2/org/ow2/asm/asm-tree/%{version}/asm-tree-%{version}.pom
Source7:        http://repo1.maven.org/maven2/org/ow2/asm/asm-util/%{version}/asm-util-%{version}.pom
# We still want to create an "all" uberjar, so this is a custom pom to generate it
# TODO: Fix other packages to no longer depend on "asm-all" so we can drop this
Source8:        asm-all.pom
# The source contains binary jars that cannot be verified for licensing and could be proprietary
Source9:       generate-tarball.sh
Source10:      objectweb-asm.rpmlintrc

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.ow2:ow2:pom:)
%if %{with junit5}
BuildRequires:  mvn(org.codehaus.janino:janino)
BuildRequires:  mvn(org.junit.jupiter:junit-jupiter-api)
BuildRequires:  mvn(org.junit.jupiter:junit-jupiter-engine)
BuildRequires:  mvn(org.junit.jupiter:junit-jupiter-params)
BuildRequires:  mvn(org.apache.maven.surefire:surefire-junit-platform)
%endif

%if %{with osgi}
# asm-all needs to be in pluginpath for BND.  If this self-dependency
# becomes a problem then ASM core will have to be build from source
# with javac before main maven build, just like bnd-module-plugin
BuildRequires:  objectweb-asm >= 6
%endif

# Explicit javapackages-tools requires since asm-processor script uses
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description
ASM is an all purpose Java bytecode manipulation and analysis
framework.  It can be used to modify existing classes or dynamically
generate classes, directly in binary form.  Provided common
transformations and analysis algorithms allow to easily assemble
custom complex transformations and code analysis tools.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.

%prep
%setup -q

# A custom parent pom to aggregate the build
cp -p %{SOURCE1} pom.xml

%if %{without junit5}
%pom_disable_module asm-test
%endif

# Insert poms into modules
for pom in asm asm-analysis asm-commons asm-test asm-tree asm-util; do
  cp -p $RPM_SOURCE_DIR/${pom}-%{version}.pom $pom/pom.xml
  # Fix junit5 configuration
%if %{with junit5}
  %pom_add_dep org.junit.jupiter:junit-jupiter-engine:5.1.0:test $pom
  %pom_add_plugin org.apache.maven.plugins:maven-surefire-plugin:2.22.0 $pom
%endif
%if %{with osgi}
  if [ "$pom" != "asm-test" ] ; then
    # Make into OSGi bundles
    bsn="org.objectweb.${pom//-/.}"
    %pom_xpath_inject pom:project "<packaging>bundle</packaging>" $pom
    %pom_add_plugin org.apache.felix:maven-bundle-plugin:3.5.0 $pom \
"   <extensions>true</extensions>
    <configuration>
      <instructions>
        <Bundle-SymbolicName>$bsn</Bundle-SymbolicName>
        <Bundle-RequiredExecutionEnvironment>JavaSE-1.8</Bundle-RequiredExecutionEnvironment>
        <_removeheaders>Bnd-LastModified,Build-By,Created-By,Include-Resource,Require-Capability,Tool</_removeheaders>
        <_pluginpath>$(pwd)/tools/bnd-module-plugin/bnd-module-plugin.jar, $(find-jar objectweb-asm/asm-all)</_pluginpath>
        <_plugin>org.objectweb.asm.tools.ModuleInfoBndPlugin;</_plugin>
      </instructions>
    </configuration>"
  fi
%endif
done

# Disable tests that use unlicensed class files
sed -i -e '/testReadAndWriteWithComputeMaxsAndLargeSubroutines/i@org.junit.jupiter.api.Disabled("missing class file")' \
  asm/src/test/java/org/objectweb/asm/ClassWriterTest.java
sed -i -e '/testMergeWithJsrReachableFromTwoDifferentPaths/i@org.junit.jupiter.api.Disabled("missing class file")' \
  asm-analysis/src/test/java/org/objectweb/asm/tree/analysis/BasicInterpreterTest.java
sed -i -e '/testSortLocalVariablesAndInstantiate()/i@org.junit.jupiter.api.Disabled("missing class file")' \
  asm-commons/src/test/java/org/objectweb/asm/commons/LocalVariablesSorterTest.java

# Insert asm-all pom
mkdir -p asm-all
sed 's/@VERSION@/%{version}/g' %{SOURCE8} > asm-all/pom.xml

# Remove invalid self-dependency
%pom_remove_dep org.ow2.asm:asm-test asm-test

# Compat aliases
%mvn_alias :asm-all org.ow2.asm:asm-debug-all

# No need to ship the custom parent pom
%mvn_package :asm-aggregator __noinstall
# Don't ship the test framework to avoid runtime dep on junit
%mvn_package :asm-test __noinstall

%build
# Must compile bnd plugin first, which is used to generate Java 9 module-info.class files
pushd tools/bnd-module-plugin
javac -sourcepath ../../asm/src/main/java/ -cp $(build-classpath aqute-bnd) $(find -name *.java)
jar cf bnd-module-plugin.jar -C src/main/java org
popd

%if %{with junit5}
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%else
%mvn_build -f -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8
%endif

%install
%mvn_install

%jpackage_script org.objectweb.asm.xml.Processor "" "" %{name}/asm:%{name}/asm-attrs:%{name}/asm-util %{name}-processor true

%files -f .mfiles
%license LICENSE.txt
%{_bindir}/%{name}-processor

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14968 |21mr|objectweb-pom-1.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           objectweb-pom
Version:        1.5
Release:        10
Summary:        Objectweb POM
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
License:        ASL 2.0
URL:            http://gitorious.ow2.org/ow2/pom/
Source0:        http://repo.maven.apache.org/maven2/org/ow2/ow2/%{version}/ow2-%{version}.pom
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)

%description
This package provides Objectweb parent POM used by different
Objectweb packages.

%prep
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14969 |21mr|objenesis-2.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Summary:        A library for instantiating Java objects
Name:           objenesis
Version:        2.6
Release:        5
License:        ASL 2.0
URL:            http://objenesis.org/
Source0:        https://github.com/easymock/%{name}/archive/%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
# xmvn-builddep misses this:
BuildRequires:  mvn(org.apache:apache-jar-resource-bundle)

Group:          Development/Java
BuildArch:      noarch

%description
Objenesis is a small Java library that serves one purpose: to instantiate 
a new object of a particular class.
Java supports dynamic instantiation of classes using Class.newInstance(); 
however, this only works if the class has an appropriate constructor. There 
are many times when a class cannot be instantiated this way, such as when 
the class contains constructors that require arguments, that have side effects,
and/or that throw exceptions. As a result, it is common to see restrictions 
in libraries stating that classes must require a default constructor. 
Objenesis aims to overcome these restrictions by bypassing the constructor 
on object instantiation. Needing to instantiate an object without calling 
the constructor is a fairly specialized task, however there are certain cases 
when this is useful:
* Serialization, Remoting and Persistence - Objects need to be instantiated 
  and restored to a specific state, without invoking code.
* Proxies, AOP Libraries and Mock Objects - Classes can be sub-classed without 
  needing to worry about the super() constructor.
* Container Frameworks - Objects can be dynamically instantiated in 
  non-standard ways.


%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q

# Enable generation of pom.properties (rhbz#1017850)
%pom_xpath_remove pom:addMavenDescriptor

%pom_remove_plugin :maven-timestamp-plugin
%pom_remove_plugin :maven-license-plugin
%pom_xpath_remove "pom:dependency[pom:scope='test']" tck

%pom_xpath_remove pom:build/pom:extensions

%build
# tests are skipped because of missing dependency spring-osgi-test
%mvn_build -- -Dyear=2009 -Dmaven.test.skip=true

%install
%mvn_install


%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14970 |21mr|ocaml-4.12.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define degug_package %nil

%ifarch %e2k
%define build_ocamlopt 0
%define ocaml_host e2k-rosa-linux-gnu
%else
%define build_ocamlopt 1
%define ocaml_host %{_host}
%endif

%define build_labltk 1
%define major 4.12
%define minor 0

%bcond_without emacs
%bcond_with bootstrap

%if %{with bootstrap}
# Avoid broken dependency from "ocaml" package
# BRing itself without bootstrap to resolve this (to use ocamlobjinfo and ocamlrun
# without bootstrap which will help RPM's ocaml-find-requires.sh to work properly)
# DEBUG: /usr/lib/rpm/ocaml-find-requires.sh: line 54: ocamlobjinfo: command not found
# DEBUG: /usr/lib/rpm/ocaml-find-requires.sh: line 67: ocamlrun: command not found
# DEBUG: error: Version required: ocaml(runtime) =
# Turning off ocaml generator
%global __ocaml_requires %{nil}
%global __ocaml_provides %{nil}
%endif

%global __ocaml_requires_opts -c -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo.byte'
%global __ocaml_provides_opts -f '%{buildroot}%{_bindir}/ocamlrun %{buildroot}%{_bindir}/ocamlobjinfo.byte'

Summary:	The Objective Caml compiler and programming environment
Name:		ocaml
Version:	%{major}.%{minor}
Release:	2
License:	QPL with exceptions and LGPLv2 with exceptions
Group:		Development/OCaml
Url:		http://caml.inria.fr
Source0:	http://caml.inria.fr/pub/distrib/ocaml-%{major}/%{name}-%{version}.tar.xz
Source1:	http://caml.inria.fr/pub/distrib/ocaml-%{major}/%{name}-%{major}-refman-html.tar.gz
Source3:	ocaml.rpmlintrc

# IMPORTANT:
# The contents (META's files) of this tarball comes from findlib
# This tarball have to be updated when findlib or ocaml are updated to a
# new version these META's files are only generated by the ./configure in
# the findlib source directory (ocaml-x11
# and ocaml-compiler-libs have to be installed for this operation) then
# just:
# tar cfj findlib-1.4-ocaml-4.00.1-meta-files.tar.bz2 site-lib-src/*/META
Source5:        findlib-1.9.1-ocaml-4.12.0-meta-files.tar.bz2

# Fedora-specific downstream patches.
Patch0001:      0001-Don-t-add-rpaths-to-libraries.patch
Patch0002:      0002-ocamlbyteinfo-ocamlplugininfo-Useful-utilities-from-.patch
Patch0003:      0002-configure-Allow-user-defined-C-compiler-flags.patch
#Patch33:        ocaml-4.06-ocamltags-no-site-start.patch
#Patch8:         ocaml-3.04-larger-buffer-for-uncaught-exception-messages.patch
# Workaround for upstream http://caml.inria.fr/mantis/view.php?id=5753
# Remove ocamltoplevel.cmxa from META file
Patch19:        ocaml-4.12.0-fix-META-ocamltoplevel.cmxa.patch


BuildRequires:	db-devel
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(tk)
%if %{with emacs}
BuildRequires:	emacs
%rename		ocaml-emacs
%endif
%if ! %{with bootstrap}
# Not actually used during the build process, but ocamlobjinfo
# is needed to generate the right Provides: automatically.
# Without the build dependency (fine while bootstrapping), the
# varioud ocaml(Stdlib_*) provides etc. will be missing
# (but the requirements will still be generated by things trying
# to use ocaml...)
BuildRequires:	%{name}-compiler
%endif

Requires:	%{name}-compiler = %{EVRD}
Requires:	%{name}-compiler-libs = %{EVRD}
#Requires:	camlp4 = %{EVRD}

%description
Objective Caml is a high-level, strongly-typed, functional and object-oriented
programming language from the ML family of languages.

%files

#----------------------------------------------------------------------------

%package compiler
Summary:	Compiler and Runtime for OCaml
Group:		Development/OCaml
Provides:	/usr/bin/ocamlrun
# To satisfy what /usr/lib/rpm/ocaml-find-requires.sh generates
Provides: ocaml(runtime) = %{version}

%description compiler
This package comprises two batch OCaml compilers (a fast byte-code compiler and
an optimizing native-code compiler), an interactive top-level system, Lex&Yacc
tools, a replay debugger, and a comprehensive library.

%files compiler -f %{name}.list
%doc Changes LICENSE README.adoc
%{_mandir}/man3/*
%{_mandir}/man1/*
%{_datadir}/applications/*
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*
%exclude %{_libdir}/ocaml/compiler-libs

#----------------------------------------------------------------------------

%package compiler-libs
Summary:	OCaml compiler library
Group:		Development/OCaml
Requires:	%{name}-compiler = %{EVRD}

%description compiler-libs
This package contains several modules used internally by the OCaml
compilers.  They are not needed for normal OCaml development, but may
be helpful in the development of certain applications.

%files compiler-libs
%dir %{_libdir}/ocaml/compiler-libs
%{_libdir}/ocaml/compiler-libs/META
%{_libdir}/ocaml/compiler-libs/*.cmi
%{_libdir}/ocaml/compiler-libs/*.cmo
%{_libdir}/ocaml/compiler-libs/*.cma
%{_libdir}/ocaml/compiler-libs/*.mli
%if %{build_ocamlopt}
%{_libdir}/ocaml/compiler-libs/*.a
%{_libdir}/ocaml/compiler-libs/*.cmxa
%{_libdir}/ocaml/compiler-libs/*.cmx
%{_libdir}/ocaml/compiler-libs/*.o
%endif

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for OCaml
Group:		Documentation
BuildArch:	noarch
Requires:	%{name}-compiler = %{EVRD}

%description doc
Documentation for OCaml

%files doc
%doc htmlman/*

#----------------------------------------------------------------------------

%package sources
Summary:	OCaml sources
Group:		Development/OCaml
BuildArch:	noarch
# don't add crazy deps
AutoReqProv:	No

%description sources
OCaml sources.

%files sources
%{_prefix}/src/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -T -b 0
%setup -q -T -D -a 1
%setup -q -T -D -a 5
%autopatch -p1
rm -rf `find -name .cvsignore`
find -name \*.*~ -delete

%build
# Upstream build ignores LDFLAGS in several places.
#sed -i -e 's/\(^MKDLL=.*\)/\1 %{ldflags}/' \
#	-e 's/\(^OC_CFLAGS=.*\)/\1 %{ldflags}/' \
#	-e 's/\(^OC_LDFLAGS=.*\)/\1 %{ldflags}/' \
#	Makefile.config.in

./configure -host %{ocaml_host} -bindir %{_bindir} -libdir %{_libdir}/ocaml -mandir %{_mandir}

#% make_build world
%make_build world
%if %{build_ocamlopt}
make opt opt.opt
%endif
rm -f site-lib-src/compiler-libs/META.0019~

%install
%make_install
# fix
perl -pi -e "s|^%{buildroot}||" %{buildroot}%{_libdir}/ocaml/ld.conf

# Remove .cmt and .cmti files, for now.  We could package them later.
# See also: http://www.ocamlpro.com/blog/2012/08/20/ocamlpro-and-4.00.0.html
find %{buildroot} \( -name '*.cmt' -o -name '*.cmti' \) -a -delete

find %{buildroot} -name .ignore -delete
# Remove this file.  It's only created in certain situations and it's
# unclear why it is created at all.
rm -f %{buildroot}%{_libdir}/ocaml/eventlog_metadata

%if %{build_ocamlopt}
# only keep the binary versions, which are much faster
for i in %{buildroot}%{_bindir}/*.opt ; do
  ln -sf `basename $i` ${i%.opt}
done
%endif


install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat <<EOF >%{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el
(require 'caml-font)
(autoload 'caml-mode "caml" "Caml editing mode" t)
(add-to-list 'auto-mode-alist '("\\\\.mli?$" . caml-mode))
EOF

# don't package mano man pages since we have the html files
rm -rf %{buildroot}%{_mandir}/mano

# install findlib META files
cp -pr site-lib-src/* %{buildroot}%{_libdir}/ocaml/

# fix me: this one should not be in the input
if [ -f %{buildroot}%{_libdir}/ocaml/dbm/META ]
then rm -f %{buildroot}%{_libdir}/ocaml/dbm/META; fi
# likewise, conflicts with ocaml-num:
rm -fr %{buildroot}%{_libdir}/ocaml/num{,-top}/

# remove zero files
rm -f %{buildroot}%{_libdir}/ocaml/graphics/META

rm -f %{name}.list
n="labltk|camlp4|ocamlbrowser|tkanim|graphics|X11"
(cd %{buildroot} ; find usr/bin ! -type d -printf "/%%p\n" | egrep -v $n) >> %{name}.list
(cd %{buildroot} ; find usr/%{_lib}/ocaml ! -type d -printf "/%%p\n" | egrep -v $n) >> %{name}.list
(cd %{buildroot} ; find usr/%{_lib}/ocaml   -type d -printf "%%%%dir /%%p\n" | egrep -v $n) >> %{name}.list

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=OCaml
Comment=ML language implementation with a class-based object system
Comment[fr]=mise en oeuvre de Meta Language (ML) avec un système orienté
Comment[ru]=Реализация языка ML с объектно-ориентированным подходом
GenericName=OCaml compiler and programming environment
GenericName[fr]=Environnement de programmation et compilateur OCaml
GenericName[ru]=Компилятор OCaml и среда программирования
Exec=%{name}
Icon=development_tools_section
Terminal=true
Type=Application
Categories=Development;
EOF


# install sources
install -d -m 755 %{buildroot}%{_prefix}/src
xzcat %{SOURCE0} | tar xvf - -C %{buildroot}%{_prefix}/src
mv %{buildroot}%{_prefix}/src/%{name}-%{version} %{buildroot}%{_prefix}/src/%{name}
find %{buildroot} -size 0 -type f -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14971 |21mr|ocaml-alcotest-1.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# BOOTSTRAP NOTE: We currently build only the base alcotest package.  We cannot
# yet build the async and lwt subpackages, because of missing dependencies.
# Some of those dependencies require the base alcotest package, either directly
# or indirectly.  Therefore, we will only be able to build the other two in
# non-bootstrap mode.

%global srcname alcotest

Name:		ocaml-%{srcname}
Version:	1.5.0
Release:	2
Summary:	Lightweight and colorful test framework for OCaml
Group:		Development/OCaml
License:	ISC
URL:		https://github.com/mirage/alcotest
Source0:	%{URL}/archive/%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
# We neither need nor want the stdlib-shims package in Fedora.  It is a forward
# compatibility package for older OCaml installations.  Patch it out instead.
# Upstream does not want this patch until stdlib-shims is obsolete.
Patch0:		0001-Drop-the-stdlib-shims-subpackage.patch

BuildRequires:	ocaml >= 4.03.0
BuildRequires:	ocaml-astring-devel
BuildRequires:	ocaml-cmdliner-devel
BuildRequires:	ocaml-dune >= 2.2
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-fmt-devel >= 0.8.7
BuildRequires:	ocaml-re-devel
BuildRequires:	ocaml-uuidm-devel
BuildRequires:	ocaml-uutf-devel

%description
Alcotest is a lightweight and colorful test framework.

Alcotest exposes a simple interface to perform unit tests, including a
simple `TESTABLE` module type, a `check` function to assert test
predicates, and a `run` function to perform a list of `unit -> unit`
test callbacks.

Alcotest provides quiet and colorful output where only faulty runs are
fully displayed at the end of the run (with the full logs ready to
inspect), with a simple (yet expressive) query language to select the
tests to run.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/engine/%{srcname}_engine*.cma
%{_libdir}/ocaml/%{srcname}/engine/%{srcname}_engine*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs
%{_libdir}/ocaml/%{srcname}/engine/%{srcname}_engine*.cmxs
%{_libdir}/ocaml/stublibs/dllalcotest_stubs.so
%{_libdir}/ocaml/alcotest/runtime.js
%{_libdir}/ocaml/%{srcname}/stdlib_ext/%{srcname}_stdlib_ext*.cma
%{_libdir}/ocaml/%{srcname}/stdlib_ext/%{srcname}_stdlib_ext*.cmi
%{_libdir}/ocaml/%{srcname}/stdlib_ext/%{srcname}_stdlib_ext*.cmxs

#--------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-cmdliner-devel
Requires:	ocaml-fmt-devel
Requires:	ocaml-re-devel
Requires:	ocaml-uuidm-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/engine/%{srcname}_engine*.a
%{_libdir}/ocaml/%{srcname}/engine/%{srcname}_engine*.cmx
%{_libdir}/ocaml/%{srcname}/engine/%{srcname}_engine*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli
%{_libdir}/ocaml/%{srcname}/engine/%{srcname}_engine*.cmt
%{_libdir}/ocaml/%{srcname}/engine/%{srcname}_engine*.cmti
%{_libdir}/ocaml/%{srcname}/engine/*.mli

%{_libdir}/ocaml/%{srcname}/stdlib_ext/%{srcname}_stdlib_ext*.a
%{_libdir}/ocaml/%{srcname}/stdlib_ext/%{srcname}_stdlib_ext*.cmx
%{_libdir}/ocaml/%{srcname}/stdlib_ext/%{srcname}_stdlib_ext*.cmxa
%{_libdir}/ocaml/%{srcname}/stdlib_ext/%{srcname}_stdlib_ext*.cmt
%{_libdir}/ocaml/%{srcname}/stdlib_ext/%{srcname}_stdlib_ext*.cmti
%{_libdir}/ocaml/%{srcname}/stdlib_ext/*.mli

#--------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
# For non-bootstrap builds, omit the "-p alcotest", and also run:
#   dune build %{?_smp_mflags} @doc
# to generate the documentation.
dune build %{?_smp_mflags} -p alcotest

# Relink the stublibs with $RPM_LD_FLAGS.
cd _build/default/src
ocamlmklib -g -ldopt '%{build_ldflags}' -o alcotest_stubs \
  $(ar t libalcotest_stubs.a)
cd -

%install
# For non-bootstrap builds, omit the "alcotest" on the end.
dune install --destdir=%{buildroot} alcotest

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

%check
dune runtest -j 1 -p alcotest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14972 |21mr|ocaml-astring-0.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname astring

Name:		ocaml-%{srcname}
Version:	0.8.5
Release:	1
Summary:	Alternative String module for OCaml
Group:		Development/OCaml
License:	ISC
URL:		https://erratique.ch/software/astring
Source0:	https://github.com/dbuenzli/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:	ocaml >= 4.05.0
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	ocaml-topkg-devel

%description
Astring exposes an alternative `String` module for OCaml.  This module
tries to balance minimality and expressiveness for basic, index-free,
string processing and provides types and functions for substrings,
string sets and string maps.

Remaining compatible with the OCaml `String` module is a non-goal.  The
`String` module exposed by Astring has exception safe functions,
removes deprecated and rarely used functions, alters some signatures
and names, adds a few missing functions and fully exploits OCaml's
newfound string immutability.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs


#---------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc html/*
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/%{srcname}*.mli

#---------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

# Topkg does watermark replacements only if run inside a git checkout.  Github
# tarballs do not come with a .git directory.  Therefore, we do the watermark
# replacement manually.
for fil in $(find . -type f); do
  sed -e 's,%%%%NAME%%%%,%{srcname},' \
      -e 's,%%%%PKG_HOMEPAGE%%%%,%{url},' \
      -e 's,%%%%VERSION%%%%,v%{version},' \
      -e 's,%%%%VERSION_NUM%%%%,%{version},' \
      -i.orig $fil
  touch -r $fil.orig $fil
  rm $fil.orig
done

%build
# Build the library and the tests
ocaml pkg/pkg.ml build --tests true

# Build the documentation
mkdir html
ocamldoc -html -d html -I +compiler-libs -I _build/src \
  -css-style doc/style.css _build/src/astring.mli

%install
# Install the library
mkdir -p %{buildroot}%{_libdir}/ocaml/astring
cp -p _build/{opam,pkg/META} %{buildroot}%{_libdir}/ocaml/astring
cp -a _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} \
  %{buildroot}%{_libdir}/ocaml/astring

%check
ocaml pkg/pkg.ml test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14973 |21mr|ocaml-augeas-0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _package_note_flags
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)

Name:           ocaml-augeas
Version:        0.6
Release:        1
Summary:        OCaml bindings for Augeas configuration API
Group:          Development/OCaml
License:        LGPLv2+ with exceptions

URL:            http://people.redhat.com/~rjones/augeas/files/
Source0:        http://people.redhat.com/~rjones/augeas/files/%{name}-%{version}.tar.gz

# Upstream patch to enable debuginfo.
Patch1:         0001-Use-ocamlopt-g-option.patch
# Const-correctness fix for OCaml 4.09+
Patch2:         0002-caml_named_value-returns-const-value-pointer-in-OCam.patch

BuildRequires:  ocaml >= 3.09.0
BuildRequires:  ocaml-findlib-devel
BuildRequires:  augeas-devel >= 0.1.0
BuildRequires:  chrpath


%description
Augeas is a unified system for editing arbitrary configuration
files. This provides complete OCaml bindings for Augeas.

%files
%doc COPYING.LIB
%{_libdir}/ocaml/augeas
%if %opt
%exclude %{_libdir}/ocaml/augeas/*.a
%exclude %{_libdir}/ocaml/augeas/*.cmxa
%exclude %{_libdir}/ocaml/augeas/*.cmx
%endif
%exclude %{_libdir}/ocaml/augeas/*.mli
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner

#---------------------------------------------------------------
%package        devel
Summary:        Development files for %{name}
Requires:       %{name} = %{version}-%{release}


%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%if %opt
%{_libdir}/ocaml/augeas/*.a
%{_libdir}/ocaml/augeas/*.cmxa
%{_libdir}/ocaml/augeas/*.cmx
%endif
%{_libdir}/ocaml/augeas/*.mli

#---------------------------------------------------------------

%prep
%autosetup -p1


%build
%configure
%if %opt
make
%else
make mlaugeas.cma test_augeas
%endif

%check
make check


%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs

# The upstream 'make install' rule is missing '*.so' and distributes
# '*.cmi' instead of just the augeas.cmi file.  Temporary fix:
#make install
%if %opt
ocamlfind install augeas META *.mli *.cmx *.cma *.cmxa *.a augeas.cmi *.so
%else
ocamlfind install augeas META *.mli *.cma *.a augeas.cmi *.so
%endif

chrpath --delete $OCAMLFIND_DESTDIR/stublibs/dll*.so







@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14974 |21mr|ocaml-base-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# TESTING NOTE: The ppx_jane module is needed to run the tests.  However,
# ppx_jane transitively requires this module.  Therefore, we cannot run the
# tests at all until we are able to add ppx_jane to Fedora, and even then we
# will only be able to run the tests in non-bootstrap mode.

%global srcname base

Name:		ocaml-%{srcname}
Version:	0.15.0
Release:	1
Summary:	Jane Street standard library for OCaml
Group:		Development/OCaml
License:	MIT
URL:		https://opensource.janestreet.com/base/
Source0:	https://github.com/janestreet/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
Patch0:		ocaml-base-ocaml413.patch
BuildRequires:	ocaml >= 4.10.0
BuildRequires:	ocaml-dune-devel >= 2.0.0
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-sexplib0-devel >= 0.15

%description
Base is a standard library for OCaml.  It provides a standard set of
general purpose modules that are well-tested, performant, and
fully-portable across any environment that can run OCaml code.  Unlike
other standard library projects, Base is meant to be used as a wholesale
replacement of the standard library distributed with the OCaml compiler.
In particular it makes different choices and doesn't re-export features
that are not fully portable such as I/O, which are left to other
libraries.

%files
%doc CHANGES.md README.org ROADMAP.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/base_internalhash_types/
%dir %{_libdir}/ocaml/%{srcname}/caml/
%dir %{_libdir}/ocaml/%{srcname}/md5/
%dir %{_libdir}/ocaml/%{srcname}/shadow_stdlib/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.js
%{_libdir}/ocaml/%{srcname}/*/*.cma
%{_libdir}/ocaml/%{srcname}/*/*.cmi
%{_libdir}/ocaml/%{srcname}/*/*.js
%{_libdir}/ocaml/%{srcname}/*.cmxs
%{_libdir}/ocaml/%{srcname}/*/*.cmxs
%{_libdir}/ocaml/stublibs/dllbase_stubs.so
%{_libdir}/ocaml/stublibs/dllbase_internalhash_types_stubs.so


#---------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-sexplib0-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*/*.a
%{_libdir}/ocaml/%{srcname}/*/*.cmx
%{_libdir}/ocaml/%{srcname}/*/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.ml
%{_libdir}/ocaml/%{srcname}/*.mli
%{_libdir}/ocaml/%{srcname}/*/*.cmt
%{_libdir}/ocaml/%{srcname}/*/*.cmti
%{_libdir}/ocaml/%{srcname}/*/*.h
%{_libdir}/ocaml/%{srcname}/*/*.ml
%{_libdir}/ocaml/%{srcname}/*/*.mli

#---------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
dune build %{?_smp_mflags}

# TODO: Once odoc is available, BR it and run this to generate documentation:
# dune build %{?_smp_mflags} @doc

# Dune passes %%build_ldflags to ocamlmklib without -ldopt, resulting in
# "Unknown option" warnings from ocamlmklib and a library that has not been
# linked with the correct flags.  We can't add -ldopt ourselves, since that
# breaks compilation of the cmxs files.  This seems to be a weakness of dune;
# linker flags and libraries to be linked with have to be specified together,
# and nothing takes care of separating them and adding ldopt as necessary.  We
# relink manually to address the problem.
pushd _build/default/src
ocamlmklib -g -ldopt "%build_ldflags" -o base_stubs *.o
cd ../hash_types/src
ocamlmklib -g -ldopt "%build_ldflags" -o base_internalhash_types_stubs *.o
popd

%install
dune install --destdir=%{buildroot}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14975 |21mr|ocaml-bigarray-compat-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname bigarray-compat

Name:		ocaml-%{srcname}
Version:	1.0.0
Release:	1
Summary:	Compatibility library to use Stdlib.Bigarray when possible
Group:		Development/OCaml
License:	ISC
URL:		https://github.com/mirage/bigarray-compat
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
# https://github.com/mirage/bigarray-compat/pull/5
Source1:	https://raw.githubusercontent.com/mirage/bigarray-compat/master/LICENSE.md

BuildRequires:	ocaml >= 4.03.0
BuildRequires:	ocaml-dune >= 1.0

%description
Bigarray-compat is an OCaml library that exposes `Stdlib.Bigarray` when
possible (OCaml >= 4.07) but can fallback to `Bigarray`.  The compability
bigarray module is exposed under `Bigarray_compat`.

%files
%doc README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/bigarray-compat/
%{_libdir}/ocaml/bigarray-compat/META
%{_libdir}/ocaml/bigarray-compat/*.cma
%{_libdir}/ocaml/bigarray-compat/*.cmi
%{_libdir}/ocaml/bigarray-compat/*.cmxs


#----------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/bigarray-compat/dune-package
%{_libdir}/ocaml/bigarray-compat/opam
%{_libdir}/ocaml/bigarray-compat/*.a
%{_libdir}/ocaml/bigarray-compat/*.cmx
%{_libdir}/ocaml/bigarray-compat/*.cmxa
%{_libdir}/ocaml/bigarray-compat/*.cmt

#----------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}
cp -p %{SOURCE1} .

%build
dune build %{?_smp_mflags}

%install
dune install --destdir=%{buildroot}

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

%check
dune runtest



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14976 |21mr|ocaml-bisect-ppx-2.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global srcname bisect-ppx
%global upname  bisect_ppx

# Running the tests requires ocaml-ounit, which introduces a circular
# dependency (also involving ocaml-lwt).  By disabling the tests we
# can break this cycle.
%bcond_with tests

# Building the documentation requires ocaml-odoc, which depends transitively
# on this package.
%bcond_with odoc

Name:		ocaml-bisect-ppx
Version:	2.8.1
Release:	1
Summary:	Code coverage for OCaml and Reason
Group:		Development/OCaml
License:	MIT
URL:		https://aantron.github.io/bisect_ppx/
Source0:	https://github.com/aantron/%{upname}/archive/%{version}/%{upname}-%{version}.tar.gz
BuildRequires:	git-core
BuildRequires:	ocaml >= 4.02.0
BuildRequires:	ocaml-cmdliner-devel >= 1.0.0
BuildRequires:	ocaml-dune
BuildRequires:	ocaml-ppxlib-devel >= 0.21.0
%if %{with odoc}
BuildRequires:	ocaml-odoc
%endif
%if %{with tests}
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ounit-devel
%endif
Provides:	ocaml-%{upname} = %{EVRD}

%description
Bisect_ppx is a code coverage tool for OCaml.  It helps you test
thoroughly by showing which parts of your code are *not* tested.  It is
a small preprocessor that inserts instrumentation at places in your
code, such as if-then-else and match expressions.  After you run tests,
Bisect_ppx gives a nice HTML report showing which places were visited
and which were missed.

Usage is simple - add package bisect_ppx when building tests, run your
tests, then run the Bisect_ppx report tool on the generated visitation
files.

%files
%doc doc/advanced.md doc/CHANGES README.md
%license LICENSE.md
%{_bindir}/bisect-ppx-report
%{_mandir}/man1/bisect-ppx-report.1*
%dir %{_libdir}/ocaml/%{upname}/
%dir %{_libdir}/ocaml/%{upname}/common/
%dir %{_libdir}/ocaml/%{upname}/runtime/
%{_libdir}/ocaml/%{upname}/META
%{_libdir}/ocaml/%{upname}/ppx.exe
%{_libdir}/ocaml/%{upname}/%{upname}.cma
%{_libdir}/ocaml/%{upname}/%{upname}*.cmi
%{_libdir}/ocaml/%{upname}/common/bisect_common.cma
%{_libdir}/ocaml/%{upname}/common/bisect_common.cmi
%{_libdir}/ocaml/%{upname}/runtime/bisect.cma
%{_libdir}/ocaml/%{upname}/runtime/bisect*.cmi
%{_libdir}/ocaml/%{upname}/%{upname}.cmxs
%{_libdir}/ocaml/%{upname}/common/bisect_common.cmxs
%{_libdir}/ocaml/%{upname}/runtime/bisect.cmxs

#--------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-ppxlib-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{upname}/dune-package
%{_libdir}/ocaml/%{upname}/opam
%{_libdir}/ocaml/%{upname}/%{upname}.a
%{_libdir}/ocaml/%{upname}/%{upname}*.cmx
%{_libdir}/ocaml/%{upname}/%{upname}.cmxa
%{_libdir}/ocaml/%{upname}/common/bisect_common.a
%{_libdir}/ocaml/%{upname}/common/bisect_common.cmx
%{_libdir}/ocaml/%{upname}/common/bisect_common.cmxa
%{_libdir}/ocaml/%{upname}/runtime/bisect.a
%{_libdir}/ocaml/%{upname}/runtime/bisect*.cmx
%{_libdir}/ocaml/%{upname}/runtime/bisect.cmxa
%{_libdir}/ocaml/%{upname}/%{upname}*.cmt
%{_libdir}/ocaml/%{upname}/%{upname}*.cmti
%{_libdir}/ocaml/%{upname}/*.mli
%{_libdir}/ocaml/%{upname}/common/bisect_common.cmt
%{_libdir}/ocaml/%{upname}/common/bisect_common.cmti
%{_libdir}/ocaml/%{upname}/common/bisect_common.mli
%{_libdir}/ocaml/%{upname}/runtime/bisect*.cmt
%{_libdir}/ocaml/%{upname}/runtime/bisect*.cmti
%{_libdir}/ocaml/%{upname}/runtime/*.mli

#--------------------------------------------------------------------
%if %{with odoc}

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%if %{with odoc}
%doc _build/default/_doc/_html/
%doc _build/default/_doc/_mlds/
%doc _build/default/_doc/_odoc/
%else
%doc html
%endif
%license LICENSE.md
%endif
#--------------------------------------------------------------------

%prep
%autosetup -n %{upname}-%{version}

%build
dune build %{?_smp_mflags} @install

%if %{with odoc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

# Install the man page
mkdir -p %{buildroot}%{_mandir}/man1
_build/install/default/bin/bisect-ppx-report --help groff > \
  %{buildroot}%{_mandir}/man1/bisect-ppx-report.1

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+

%if %{with tests}
%check
make test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14977 |21mr|ocaml-camlp4-4.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define up_name camlp4

Summary:        Pre-Processor-Pretty-Printer for OCaml
Name:           ocaml-%{up_name}
Version:        4.12
Release:        1
Group:          Development/OCaml
License:        LGPLv2+ with exceptions
Url:            https://github.com/ocaml/camlp4
Source0:       https://github.com/ocaml/camlp4/archive/%{version}+1.tar.gz

BuildRequires: ocaml-ocamlbuild

# This comes from ocaml-findlib's ./configure
Source1:        META
BuildRequires:  ocaml
BuildRequires:  ocaml-ocamlbuild
BuildRequires:  ocaml-compiler-libs
Requires:       ocaml-compiler
Provides:       %{up_name} = %{version}-%{release}
Obsoletes:      %{up_name} < 4.02.3

%description
Camlp4 is a Pre-Processor-Pretty-Printer for OCaml, parsing a source
file and printing some result on standard output.

This package contains the runtime files.

%files
%doc README.md LICENSE
%dir %{_libdir}/ocaml/camlp4
%{_libdir}/ocaml/camlp4/*.cmi
%{_libdir}/ocaml/camlp4/*.cma
%{_libdir}/ocaml/camlp4/*.cmo
%dir %{_libdir}/ocaml/camlp4/Camlp4Filters
%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmi
%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmo
%dir %{_libdir}/ocaml/camlp4/Camlp4Parsers
%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmo
%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmi
%dir %{_libdir}/ocaml/camlp4/Camlp4Printers
%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmi
%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmo
%dir %{_libdir}/ocaml/camlp4/Camlp4Top
%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmi
%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmo
%{_libdir}/ocaml/camlp4/META

#-------------------------------------------------------------
%package devel
Summary:       Pre-Processor-Pretty-Printer for OCaml
Requires:      %{name} = %{version}-%{release}
Obsoletes:     %{up_name}-devel < 4.02.3

%description devel
Camlp4 is a Pre-Processor-Pretty-Printer for OCaml, parsing a source
file and printing some result on standard output.

This package contains the development files.


%files devel
%doc LICENSE
%{_bindir}/camlp4*
%{_bindir}/mkcamlp4
%{_libdir}/ocaml/camlp4/*.a
%{_libdir}/ocaml/camlp4/*.cmxa
%{_libdir}/ocaml/camlp4/*.cmx
%{_libdir}/ocaml/camlp4/*.o
%{_libdir}/ocaml/camlp4/Camlp4Filters/*.cmx
%{_libdir}/ocaml/camlp4/Camlp4Filters/*.o
%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.cmx
%{_libdir}/ocaml/camlp4/Camlp4Parsers/*.o
%{_libdir}/ocaml/camlp4/Camlp4Printers/*.cmx
%{_libdir}/ocaml/camlp4/Camlp4Printers/*.o
%{_libdir}/ocaml/camlp4/Camlp4Top/*.cmx
%{_libdir}/ocaml/camlp4/Camlp4Top/*.o

#-------------------------------------------------------------

%prep
%setup -q -n camlp4-%version-1

%build
./configure
make all

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/ocaml/camlp4
make install \
  BINDIR=%{buildroot}%{_bindir} \
  LIBDIR=%{buildroot}%{_libdir}/ocaml \
  PKGDIR=%{buildroot}%{_libdir}/ocaml/camlp4

cp -a %{SOURCE1} %{buildroot}%{_libdir}/ocaml/camlp4/META

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14978 |21mr|ocaml-camomile-1.0.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: Broken in 1.0.1 for unknown reasons.
%global debug_package %{nil}

Name:		ocaml-camomile
Version:	1.0.2
Release:	11
Summary:	Unicode library for OCaml
Group:		Development/OCaml
# Several files are MIT and UCD licensed, but the overall work is LGPLv2+
# and the LGPL/GPL supercedes compatible licenses.
# https://www.redhat.com/archives/fedora-legal-list/2008-March/msg00005.html
License:	LGPLv2+
URL:		https://github.com/yoriyuki/Camomile
Source0:	https://github.com/yoriyuki/Camomile/archive/%{version}.tar.gz/camomile-%{version}.tar.gz
Source1:	ocaml-camomile.rpmlintrc

BuildRequires:	ocaml >= 3.12.1-12
BuildRequires:	ocaml-findlib-devel
BuildRequires:	ocaml-cppo
BuildRequires:	ocaml-dune

# The base package requires the data files.  Note that it is possible
# to install the data files on their own to support other packages
# that need the mappings, and some packages (eg. guestfs-browser) do
# exactly this.
Requires:	%{name}-data = %{version}-%{release}

%description
Camomile is a Unicode library for ocaml. Camomile provides Unicode
character type, UTF-8, UTF-16, UTF-32 strings, conversion to/from
about 200 encodings, collation and locale-sensitive case mappings, and
more.

%files
%doc README.md CHANGES.md
%license LICENSE.md
%{_libdir}/ocaml/camomile
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/camomile/*.a
%exclude %{_libdir}/ocaml/camomile/*.cmxa
%exclude %{_libdir}/ocaml/camomile/*.cmx
%endif
%exclude %{_libdir}/ocaml/camomile/*.mli
%ifarch %{ocaml_native_compiler}
%endif

#--------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%license LICENSE.md
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/camomile/*.a
%{_libdir}/ocaml/camomile/*.cmxa
%{_libdir}/ocaml/camomile/*.cmx
%endif
%{_libdir}/ocaml/camomile/*.mli

#--------------------------------------------------------------------

%package data
Summary: Data files for %{name}
Group:		Development/OCaml

%description data
The %{name}-data package contains data files for developing
applications that use %{name}.

%files data
%license LICENSE.md
%{_datadir}/camomile/

#--------------------------------------------------------------------

%prep
%setup -q -n Camomile-%{version}

%build
# This avoids a stack overflow in the OCaml 4.05 compiler on POWER only.
%ifarch %{power64}
ulimit -Hs 65536
ulimit -Ss 65536
%endif
dune build --verbose --profile release


%install
dune install \
         --destdir=%{buildroot} \
         --libdir=%{_libdir}/ocaml \
         --verbose \
         --profile release

# Remove /usr/doc because we will use %%doc rules instead.
rm -rf %{buildroot}/usr/doc

# Install the *.mli files by hand.
cp _build/install/default/lib/camomile/library/*.mli %{buildroot}%{_libdir}/ocaml/camomile/


%check
# Broken in 1.0.2.
# https://github.com/yoriyuki/Camomile/issues/82
#jbuilder runtest --profile release

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14979 |21mr|ocaml-cinaps-0.15.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TESTING NOTE: The ppx_jane module is needed to run the tests.  However,
# ppx_jane transitively requires this module.  Therefore, we cannot run the
# tests at all until we are able to add ppx_jane to Fedora, and even then we
# will only be able to run the tests in non-bootstrap mode.

%global srcname cinaps

Name:		ocaml-%{srcname}
Version:	0.15.1
Release:	2
Summary:	Trivial Metaprogramming tool using the OCaml toplevel
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/ocaml-ppx/%{srcname}
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	help2man
BuildRequires:	ocaml >= 4.04.0
BuildRequires:	ocaml-dune >= 2.0.0
BuildRequires:	ocaml-re-devel >= 1.8.0

%description
Cinaps is a trivial Metaprogramming tool for OCaml using the OCaml
toplevel.

It is intended for two purposes:
- when you want to include a bit of generated code in a file, but writing
  a proper generator/ppx rewriter is not worth it;
- when you have many repeated blocks of similar code in your program, to
  help writing and maintaining them.

It is not intended as a general preprocessor, and in particular can only
be used to generate static code that is independent of the system.

%files
%doc README.org
%license LICENSE.md
%{_bindir}/cinaps
%{_mandir}/man1/cinaps.1*
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/runtime/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.cma
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.cmi
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.cmxs

#----------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-re-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.a
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.cmx
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.cmxa
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.cmt
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.cmti
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.ml
%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.mli

#----------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build

%install
dune install --destdir=%{buildroot}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
chmod a+x %{buildroot}%{_libdir}/ocaml/%{srcname}/runtime/cinaps_runtime.cmxs

# Generate the man page
mkdir -p %{buildroot}%{_mandir}/man1
help2man -N --version-string=%{version} %{buildroot}%{_bindir}/cinaps > \
  %{buildroot}%{_mandir}/man1/cinaps.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14980 |21mr|ocaml-cmdliner-1.0.4-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global debug_package %nil

Name:		ocaml-cmdliner
Version:	1.0.4
Release:	15
Group:		Development/Other
Summary:	Declarative definition of command line interfaces for OCaml

# In order for this to work as a "global" macro it has to come after the
# definition of Name:, evidently.
%global libname %(echo %{name} | sed -e 's/^ocaml-//')

License:	ISC
URL:		https://github.com/dbuenzli/cmdliner/
Source0:	https://github.com/dbuenzli/%{libname}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	ocaml
BuildRequires:	ocaml-findlib-devel
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	ocaml-result-devel

%description
Cmdliner allows the declarative definition of command line
interfaces for OCaml.

It provides a simple and compositional mechanism to convert
command line arguments to OCaml values and pass them to your
functions. The module automatically handles syntax errors,
help messages and UNIX man page generation. It supports
programs with single or multiple commands and respects
most of the POSIX and GNU conventions.

Cmdliner has no dependencies and is distributed under
the ISC license.

%files
%license LICENSE.md
%doc README.md CHANGES.md
%{_libdir}/ocaml/%{libname}
%exclude %{_libdir}/ocaml/%{libname}/*.a
%exclude %{_libdir}/ocaml/%{libname}/*.cmxa
%exclude %{_libdir}/ocaml/%{libname}/*.cmx
%exclude %{_libdir}/ocaml/%{libname}/*.mli


#---------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Requires:	%{name}%{?_isa} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc README.md CHANGES.md
%license LICENSE.md
%{_libdir}/ocaml/%{libname}/*.a
%{_libdir}/ocaml/%{libname}/*.cmxa
%{_libdir}/ocaml/%{libname}/*.cmx
%{_libdir}/ocaml/%{libname}/*.mli

#---------------------------------------------------------------

%prep
%autosetup -n %{libname}-%{version}

# The makefile requires some cleanup to put things in correct place.
sed 's,/lib/,/%{_lib}/,g' -i Makefile

# Enable debuginfo generation.
sed 's/, package(result)/, package(result), debug/g' -i _tags
sed 's/ocamlbuild/ocamlbuild -lflag -g/g' -i Makefile

# Use install -p.
sed 's/INSTALL=install/INSTALL=install -p/g' -i Makefile

%build
make build-byte %{?_smp_mflags}
make build-native %{?_smp_mflags}

%ifarch %{ocaml_natdynlink}
make build-native-dynlink %{?_smp_mflags}
%endif

%install
make install-common DESTDIR=%{buildroot}
make install-byte DESTDIR=%{buildroot}
make install-native DESTDIR=%{buildroot}

%ifarch %{ocaml_natdynlink}
make install-native-dynlink DESTDIR=%{buildroot}
%endif

# Fix some spurious executable perms?
chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/*.cmx
chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/*.cmxa
chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/*.mli
chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/*.a
chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/META
chmod -x %{buildroot}%{_libdir}/ocaml/%{libname}/opam


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14981 |21mr|ocaml-compiler-libs-janestreet-0.12.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Documentation adds a circular dependency, so by
# default we build without.
%bcond_with doc

%global srcname ocaml-compiler-libs

Name:		%{srcname}-janestreet
Version:	0.12.4
Release:	1
Summary:	OCaml compiler libraries repackaged
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/janestreet/%{srcname}
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.04.1
BuildRequires:	ocaml-dune >= 1.5.1
%if %{with doc}
BuildRequires:	ocaml-odoc
%endif

%description
This package exposes the OCaml compiler libraries repackaged under
the toplevel names Ocaml_common, Ocaml_bytecomp, Ocaml_optcomp, etc.

%files
%doc README.org
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/bytecomp/
%dir %{_libdir}/ocaml/%{srcname}/common/
%dir %{_libdir}/ocaml/%{srcname}/optcomp/
%dir %{_libdir}/ocaml/%{srcname}/shadow/
%dir %{_libdir}/ocaml/%{srcname}/toplevel/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*/*.cma
%{_libdir}/ocaml/%{srcname}/*/*.cmi
%{_libdir}/ocaml/%{srcname}/*/*.cmxs

#-----------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and
signature files for developing applications that use
%{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*/*.a
%{_libdir}/ocaml/%{srcname}/*/*.cmx
%{_libdir}/ocaml/%{srcname}/*/*.cmxa
%{_libdir}/ocaml/%{srcname}/*/*.cmt

#-----------------------------------------------------------

%if %{with doc}
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description    doc
Documentation for %{name}.

%files doc
%doc _build/default/_doc/_html/
%doc _build/default/_doc/_mlds/
%doc _build/default/_doc/_odoc/
%license LICENSE.md

%endif

#-----------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags}
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14982 |21mr|ocaml-cppo-1.6.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global opt %(test -x %{_bindir}/ocamlopt && echo 1 || echo 0)
%if !%{opt}
%global debug_package %{nil}
%endif

Name:		ocaml-cppo
Version:	1.6.7
Release:	1
Summary:	Equivalent of the C preprocessor for OCaml programs
Group:		Development/OCaml
License:	BSD
URL:		http://mjambon.com/cppo.html
Source0:	https://github.com/ocaml-community/cppo/archive/v%{version}.tar.gz

BuildRequires:	ocaml >= 3.10.0
BuildRequires:	ocaml-findlib
%if !%{opt}
Requires:	ocaml >= 3.10.0
%endif
BuildRequires:	ocaml-ocamlbuild-devel
BuildRequires:	ocaml-dune

%description
Cppo is an equivalent of the C preprocessor targeted at the OCaml
language and its variants.

The main purpose of cppo is to provide a lightweight tool for simple
macro substitution (＃define) and file inclusion (＃include) for the
occasional case when this is useful in OCaml. Processing specific
sections of files by calling external programs is also possible via
＃ext directives.

The implementation of cppo relies on the standard library of OCaml and
on the standard parsing tools Ocamllex and Ocamlyacc, which contribute
to the robustness of cppo across OCaml versions.

%files
%license LICENSE.md
%doc Changes README.md
%{_bindir}/cppo

#----------------------------------------------------------------------
%prep
%setup -q -n cppo-%{version}
sed -i.add-debuginfo \
    's/ocamlopt/ocamlopt -g/;s/ocamlc \(-[co]\)/ocamlc -g \1/' \
    Makefile


%build
make %{?_smp_mflags} all


%install
%{__install} -d %{buildroot}%{_bindir}
%{__install} -p _build/install/default/bin/cppo %{buildroot}%{_bindir}/


%check
%ifnarch %{arm} %{power64}
# Fails on armv7hl and ppc64le with:
# Error: math error
make test
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14983 |21mr|ocaml-csexp-1.5.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname csexp

%define _disable_ld_no_undefined 1

# This package is needed to build dune.  To avoid circular dependencies, this
# package cannot depend on dune, or any package that depends on dune.
# Therefore, we:
# - hack up our own build, rather than using dune to do the build
# - skip tests, which require ppx_expect, which is built with dune
# - skip building documentation, which requires odoc, which is built with dune
# If you know what you are doing, build with dune anyway using this conditional.
%bcond_with dune

Name:		ocaml-%{srcname}
Version:	1.5.1
Release:	3
Summary:	Parsing and printing of S-expressions in canonical form
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/ocaml-dune/csexp
Source0:	%{url}/releases/download/%{version}/%{srcname}-%{version}.tbz
BuildRequires:  ocaml >= 4.03.0
%if %{with dune}
BuildRequires:	ocaml-dune >= 1.11
BuildRequires:	ocaml-odoc
%endif

%description
This project provides minimal support for parsing and printing
S-expressions in canonical form, which is a very simple and canonical
binary encoding of S-expressions.

%files
%doc README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs

#-------------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name}%{?_isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli

#-------------------------------------------------------------------------

%prep
%autosetup -N -n %{srcname}-%{version}

%build
%if %{with dune}
dune build %{?_smp_mflags} --display=verbose @install
dune build %{?_smp_mflags} @doc
%else
OFLAGS="-strict-sequence -strict-formats -short-paths -keep-locs -g"
OCFLAGS="$OFLAGS -bin-annot"
cd src
ocamlc $OCFLAGS -output-obj csexp.mli
ocamlc $OCFLAGS -a -o csexp.cma csexp.ml
ocamlopt $OFLAGS -ccopt "%{build_cflags}" -cclib "%{build_ldflags}" -a \
  -o csexp.cmxa csexp.ml
ocamlopt $OFLAGS -ccopt "%{build_cflags}" -cclib "%{build_ldflags}" -shared \
  -o csexp.cmxs csexp.ml
cd -
%endif

%install
%if %{with dune}
dune install --destdir=%{buildroot}

# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc
%else
# Install without dune.  See comment at the top.
mkdir -p %{buildroot}%{_libdir}/ocaml/%{srcname}
cp -p src/csexp.{cma,cmi,cmt,cmti,mli} %{buildroot}%{_libdir}/ocaml/%{srcname}
cp -p src/csexp.{a,cmx,cmxa,cmxs} %{buildroot}%{_libdir}/ocaml/%{srcname}
cp -p csexp.opam %{buildroot}%{_libdir}/ocaml/%{srcname}/opam

cat >> %{buildroot}%{_libdir}/ocaml/%{srcname}/META << EOF
version = "%{version}"
description = "Parsing and printing of S-expressions in canonical form"
archive(byte) = "csexp.cma"
archive(native) = "csexp.cmxa"
plugin(byte) = "csexp.cma"
plugin(native) = "csexp.cmxs"
EOF

cat >> %{buildroot}%{_libdir}/ocaml/%{srcname}/dune-package << EOF
(lang dune 2.8)
(name csexp)
(version %{version})
(library
 (name csexp)
 (kind normal)
 (archives (byte csexp.cma) (native csexp.cmxa))
 (plugins (byte csexp.cma) (native csexp.cmxs))
 (native_archives csexp.a)
 (main_module_name Csexp)
 (modes byte native)
 (modules
  (singleton (name Csexp) (obj_name csexp) (visibility public) (impl) (intf))))
EOF
%endif

# Cannot do this until ocaml-ppx-expect is available in Fedora.
#%%if %%{with dune}
#%%check
#dune runtest
#%%endif




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14984 |21mr|ocaml-ctypes-0.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# Enable building and running the tests
# This is disabled by default, because ocaml-lwt requires this package to build.
%bcond_with test

Name:		ocaml-ctypes
Version:	0.18.0
Release:	1
Summary:	Combinators for binding to C libraries without writing any C
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/ocamllabs/ocaml-ctypes
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	make
BuildRequires:	ocaml >= 4.02.3
BuildRequires:	ocaml-bigarray-compat-devel
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-integers-devel >= 0.3.0
BuildRequires:	pkgconfig(libffi)

%if %{with test}
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	ocaml-bisect-ppx-devel
BuildRequires:	ocaml-lwt-devel >= 3.2.0
BuildRequires:	ocaml-ounit-devel
%endif

%description
Ctypes is a library for binding to C libraries using pure OCaml.  The
primary aim is to make writing C extensions as straightforward as
possible.

The core of ctypes is a set of combinators for describing the structure
of C types -- numeric types, arrays, pointers, structs, unions and
functions.  You can use these combinators to describe the types of the
functions that you want to call, then bind directly to those functions --
all without writing or generating any C!

%files
%license LICENSE
%doc CHANGES.md README.md
%dir %{_libdir}/ocaml/ctypes/
%{_libdir}/ocaml/ctypes/META
%{_libdir}/ocaml/ctypes/*.cma
%{_libdir}/ocaml/ctypes/*.cmi
%{_libdir}/ocaml/ctypes/*.cmxs
%{_libdir}/ocaml/stublibs/dllctypes*_stubs.so
%{_libdir}/ocaml/stublibs/dllctypes*_stubs.so.owner

#----------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-bigarray-compat-devel
Requires:	ocaml-integers-devel

%description    devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/ctypes/opam
%{_libdir}/ocaml/ctypes-foreign/
%{_libdir}/ocaml/ctypes/*.a
%{_libdir}/ocaml/ctypes/*.cmx
%{_libdir}/ocaml/ctypes/*.cmxa
%{_libdir}/ocaml/ctypes/*.cmt
%{_libdir}/ocaml/ctypes/*.cmti
%{_libdir}/ocaml/ctypes/*.h
%{_libdir}/ocaml/ctypes/*.mli

#----------------------------------------------------------------

%package	doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains developer documentation for
%{name}.

%files doc
%doc *.html *.css

#----------------------------------------------------------------

%prep
%autosetup

# Use Fedora flags
sed -e 's|-fPIC -Wall -g|-fPIC %{build_cflags}|' \
    -e 's|-link -static-libgcc|%{build_ldflags}|' \
    -i Makefile.rules
sed -i 's|=-Wl,--no-as-needed|=%{build_ldflags}|' src/discover/determine_as_needed_flags.sh

# Flags for bigarray-compat are missing
sed -i 's/(OCAMLFIND_BISECT_FLAGS)/& -package bigarray-compat/' Makefile.rules
sed -i 's/^DOCFLAGS=/&-I $(shell ocamlfind query bigarray-compat) /' Makefile

# Don't try to update the system ld.conf
sed -i 's|-add ctypes|& -ldconf %{buildroot}%{_libdir}/ocaml/ld.conf|' Makefile

%build
# FIXME: Infrequent build failures with parallel build
# It looks like the configuration step isn't done before its results are needed
make all XEN=disable
%make_build doc XEN=disable

%install
export DESTDIR=%{buildroot}%{_libdir}/ocaml
export OCAMLFIND_DESTDIR=$DESTDIR
mkdir -p $DESTDIR/stublibs
touch $DESTDIR/ld.conf
make install XEN=disable
rm $DESTDIR/ld.conf

# We install the documentation elsewhere
rm $DESTDIR/ctypes/*.md

# Install the opam files
mkdir -p $DESTDIR/ctypes-foreign
cp -p ctypes-foreign.opam $DESTDIR/ctypes-foreign/opam
cp -p ctypes.opam $DESTDIR/ctypes/opam

%if %{with test}
%check
make test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14985 |21mr|ocaml-dune-2.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global libname dune
%global _pkgdocdir %{_docdir}/%{name}-%{version}
# "fix" underlinking:
%define _disable_ld_no_undefined 1

# Since menhir now requires dune to build, but dune needs menhir only for the
# tests, build in bootstrap mode to skip the tests and the need for menhir.
%bcond_without menhir

Name:		ocaml-%{libname}
Version:	2.9.3
Release:	1
Summary:	A composable build system for OCaml
Group:		Development/OCaml
# Dune itself is MIT.  Some bundled libraries have a different license:
# ISC:
# - vendor/cmdliner
# LGPLv2:
# - vendor/incremental-cycles
# LGPLv2 with exceptions:
# - vendor/opam-file-format
# - vendor/re
License:	MIT and LGPLv2 and LGPLv2 with exceptions and ISC
URL:		https://dune.build
Source0:	https://github.com/ocaml/%{libname}/archive/%{version}/%{libname}-%{version}.tar.gz
BuildRequires:	emacs
BuildRequires:	ocaml >= 4.07
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-csexp
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(sphinx-rtd-theme)

%if %{without menhir}
# Required by tests.
BuildRequires:  ocaml-menhir
%endif

# Dune has vendored deps (ugh):
# I'm not clear on how to unbundle them.
# It seems to be unsupported upstream; the bootstrap process for dune
# doesn't seem to be able to detect libraries installed systemwide.
# https://github.com/ocaml/dune/issues/220
Provides:	bundled(ocaml-build-path-prefix-map) = 0.2
Provides:	bundled(ocaml-opam-file-format) = 2.0.0

Provides:	dune = %{version}-%{release}

Provides:	jbuilder = %{version}-%{release}
Obsoletes:	jbuilder < 1.0.1-3

%description
Dune is a build system designed for OCaml/Reason projects only. It focuses
on providing the user with a consistent experience and takes care of most of
the low-level details of OCaml compilation. All you have to do is provide a
description of your project and Dune will do the rest.

The scheme it implements is inspired from the one used inside Jane Street and
adapted to the open source world. It has matured over a long time and is used
daily by hundred of developers, which means that it is highly tested and
productive.

%files
%license LICENSE.md
%doc %{_pkgdocdir}/README.md
%doc %{_pkgdocdir}/CHANGES.md
%doc %{_pkgdocdir}/MIGRATION.md
%{_bindir}/dune
%{_mandir}/man*/dune*
%dir %{_pkgdocdir}/
%dir %{_libdir}/ocaml/dune/
%dir %{_libdir}/ocaml/dune-action-plugin/
%dir %{_libdir}/ocaml/dune-build-info/
%dir %{_libdir}/ocaml/dune-configurator/
%dir %{_libdir}/ocaml/dune-glob/
%dir %{_libdir}/ocaml/dune-private-libs/
%dir %{_libdir}/ocaml/dune-private-libs/dune-lang/
%dir %{_libdir}/ocaml/dune-private-libs/dune_re/
%dir %{_libdir}/ocaml/dune-private-libs/ocaml-config/
%dir %{_libdir}/ocaml/dune-private-libs/stdune/
%{_libdir}/ocaml/dune*/META
%{_libdir}/ocaml/dune*/*.cma
%{_libdir}/ocaml/dune*/*.cmi
%{_libdir}/ocaml/dune-configurator/.private/
%{_libdir}/ocaml/dune-private-libs/*/*.cma
%{_libdir}/ocaml/dune-private-libs/*/*.cmi
%{_libdir}/ocaml/dune*/*.cmxs
%{_libdir}/ocaml/dune-private-libs/*/*.cmxs
%{_libdir}/ocaml/stublibs/dllstdune_stubs.so
%{_libdir}/ocaml/stublibs/dlldune_filesystem_stubs_stubs.so

#---------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name}%{?isa} = %{version}-%{release}

%description    devel
The %{name}-devel package contains libraries and
signature files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/dune*/dune-package
%{_libdir}/ocaml/dune*/opam
%{_libdir}/ocaml/dune*/*.cmt
%{_libdir}/ocaml/dune*/*.cmti
%{_libdir}/ocaml/dune*/*.ml
%{_libdir}/ocaml/dune*/*.mli
%{_libdir}/ocaml/dune-private-libs/*/*.cmt
%{_libdir}/ocaml/dune-private-libs/*/*.cmti
%{_libdir}/ocaml/dune-private-libs/*/*.ml
%{_libdir}/ocaml/dune-private-libs/*/*.mli
%{_libdir}/ocaml/dune*/*.a
%{_libdir}/ocaml/dune*/*.cmx
%{_libdir}/ocaml/dune*/*.cmxa
%{_libdir}/ocaml/dune-private-libs/*/*.a
%{_libdir}/ocaml/dune-private-libs/*/*.cmx
%{_libdir}/ocaml/dune-private-libs/*/*.cmxa
%{_libdir}/ocaml/dune-site/plugins

#---------------------------------------------------------------------

%package doc
Summary:	HTML documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
HTML documentation for dune, a composable build system for OCaml.

%files doc
%exclude %{_pkgdocdir}/README.md
%exclude %{_pkgdocdir}/CHANGES.md
%doc %{_pkgdocdir}/*

#---------------------------------------------------------------------

%package emacs
Summary:	Emacs support for %{name}
Group:		Development/OCaml
License:	ISC
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description emacs
The %{name}-devel package contains Emacs integration with the dune build
system, a mode to edit dune files, and flymake support for dune files.

%files emacs
%{_datadir}/emacs/site-lisp/dune*

#---------------------------------------------------------------------

%prep
%autosetup -n %{libname}-%{version} -p1

%build
./configure --libdir %{_libdir}/ocaml --mandir %{_mandir}

# This command fails, because ppx_bench, ppx_expect, and core_bench are missing.
# However, it is only tests that fail, not the actual build, so ignore the
# failures and continue.
%make_build release || :
./dune.exe build @install
%make_build doc

# Relink the stublib.  See https://github.com/ocaml/dune/issues/2977.
cd _build/default/src/stdune
ocamlmklib -g -ldopt "$RPM_LD_FLAGS" -o stdune_stubs fcntl_stubs.o
cd -

%install
# "make install" only installs the binary.  We want the libraries, too.
./dune.exe install --destdir %{buildroot}

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+

# Install documentation by way of pkgdocdir.
rm -fr %{buildroot}%{_prefix}/doc
mkdir -p %{buildroot}%{_pkgdocdir}/
cp -ar README.md CHANGES.md MIGRATION.md doc/_build/* %{buildroot}%{_pkgdocdir}/

%if %{without menhir}
%check
# These are the only tests we can run.  The others require components that
# either depend on dune themselves or are not available in Fedora at all.
%{buildroot}%{_bindir}/dune runtest test/unit-tests
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14986 |21mr|ocaml-fileutils-0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname fileutils

Name:		ocaml-fileutils
Version:	0.6.3
Release:	1
Summary:	OCaml library for common file and filename operations
Group:		Development/OCaml
License:	LGPLv2 with exceptions
URL:		https://github.com/gildor478/ocaml-fileutils
Source0:	https://github.com/gildor478/ocaml-fileutils/archive//v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		fileutils-remove-stdlib-shims.patch
Patch1:		ocaml-fileutils-0.6.3-ounit2.patch
BuildRequires:	ocaml >= 4.00.1
BuildRequires:	ocaml-dune
BuildRequires:	ocaml-ounit-devel
BuildRequires:	ocaml-ocamlbuild


%description
This library is intended to provide a basic interface to the most
common file and filename operations.  It provides several different
filename functions: reduce, make_absolute, make_relative...  It also
enables you to manipulate real files: cp, mv, rm, touch...

It is separated into two modules: SysUtil and SysPath.  The first one
manipulates real files, the second one is made for manipulating
abstract filenames.

%files
%doc LICENSE.txt
%{_libdir}/ocaml/fileutils
%exclude %{_libdir}/ocaml/fileutils/*.a
%exclude %{_libdir}/ocaml/fileutils/*.cmx
%exclude %{_libdir}/ocaml/fileutils/*.cmxa
%exclude %{_libdir}/ocaml/fileutils/*.mli


#--------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc LICENSE.txt CHANGES.md README.md
%{_libdir}/ocaml/fileutils/*.a
%{_libdir}/ocaml/fileutils/*.cmx
%{_libdir}/ocaml/fileutils/*.cmxa
%{_libdir}/ocaml/fileutils/*.mli

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
# Disable the tests (RHEL 7 only) since they require ocaml-ounit.
#ocaml setup.ml -configure --prefix %{_prefix} --destdir %{buildroot} \
#	--enable-tests
dune build %{?_smp_mflags} -p fileutils


%install
#export DESTDIR=%{buildroot}
#export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
#mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs

# Set htmldir to current directory, then copy the docs (in api/)
# as a %doc rule.
dune install --destdir=%{buildroot} fileutils

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+


%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14987 |21mr|ocaml-findlib-1.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_name findlib
%bcond_without bootstrap

Summary:	A module packaging tool for OCaml
Name:		ocaml-%{up_name}
Version:	1.9.1
Release:	1
Group:		Development/OCaml
License:	BSD
Url:		http://projects.camlcity.org/projects/findlib.html
Source0:	http://download.camlcity.org/download/%{up_name}-%{version}.tar.gz

BuildRequires:	ocaml-compiler
BuildRequires:	ocaml-compiler-libs
%if ! %with bootstrap
BuildRequires:	ocaml-camlp4-devel
BuildRequires:	ocaml-labltk-devel
%endif
BuildRequires:	pkgconfig(ncurses)
Requires:	ocaml-compiler
Obsoletes:	%{up_name} < %{version}


%description
The findlib library provides a scheme to manage reusable software
components (packages), and includes tools that support this scheme.
Packages are collections of OCaml modules for which meta-information can
be stored. The packages are kept in the file-system hierarchy, but with
strict directory structure. The library contains functions to look the
directory up that stores a package, to query meta-information about a
package, and to retrieve dependency information about multiple packages.
There is also a tool that allows the user to enter queries on the
command-line. In order to simplify compilation and linkage, there are
new front-ends of the various OCaml compilers that can directly deal with
packages.

#-----------------------------------------------------------------------
%package devel
Summary:    Development files for %{name}
Group:      Development/OCaml
Requires:   %{name} = %{version}-%{release}


%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

#-----------------------------------------------------------------------

%prep
%setup -q -n %{up_name}-%{version}

%build
ocamlc -version
ocamlc -where
(cd tools/extract_args && make)
tools/extract_args/extract_args -o src/findlib/ocaml_args.ml ocamlc ocamlcp ocamlmktop ocamlopt ocamldep ocamldoc ||:
cat src/findlib/ocaml_args.ml
./configure -config %{_sysconfdir}/findlib.conf \
    -bindir %{_bindir} \
    -sitelib `ocamlc -where` \
    -mandir %{_mandir} \
    -with-toolbox
make all
%ifnarch %mips
make opt
%endif

%install
make prefix=%{buildroot} PREFIX=%{buildroot} install

# don't ship META files for standard library in this package,
# they are included in ocaml package,
# [IMPORTANT] so when this package is updated, update too
# the tarball that contain these files (Source5) in the ocaml package!
rm -f %{buildroot}%{_libdir}/ocaml/bigarray/META
rm -f %{buildroot}%{_libdir}/ocaml/dbm/META
rm -f %{buildroot}%{_libdir}/ocaml/dynlink/META
rm -f %{buildroot}%{_libdir}/ocaml/graphics/META
rm -f %{buildroot}%{_libdir}/ocaml/num/META
rm -f %{buildroot}%{_libdir}/ocaml/num-top/META
rm -f %{buildroot}%{_libdir}/ocaml/stdlib/META
rm -f %{buildroot}%{_libdir}/ocaml/str/META
rm -f %{buildroot}%{_libdir}/ocaml/threads/META
rm -f %{buildroot}%{_libdir}/ocaml/unix/META
rm -f %{buildroot}%{_libdir}/ocaml/ocamlbuild/META
rm -f %{buildroot}%{_libdir}/ocaml/compiler-libs/META
rm -f %{buildroot}%{_libdir}/ocaml/bytes/META
rm -f %{buildroot}%{_libdir}/ocaml/ocamldoc/META
rm -f %{buildroot}%{_libdir}/ocaml/raw_spacetime/META

# In order to update the [Source5] field of ocaml.spec,
# in the findlib source directory run the ./configure script
# with camlp4 and ocaml-labltk properly installed, then:
# tar cfj  findlib-1.4-ocaml-4.00.1-meta-files.tar.bz2  site-lib-src/*/META
# This goes into ocaml-camlp4
rm -f %{buildroot}%{_libdir}/ocaml/camlp4/META
# This goes into ocaml-labltk
rm -f %{buildroot}%{_libdir}/ocaml/labltk/META

%files
%doc LICENSE
%config(noreplace) %{_sysconfdir}/findlib.conf
%{_bindir}/*
%{_mandir}/man*/*
%{_libdir}/ocaml/findlib
%{_libdir}/ocaml/topfind
#{_libdir}/ocaml/num-top
%exclude %{_libdir}/ocaml/findlib/*.a
%exclude %{_libdir}/ocaml/findlib/*.cmxa
%exclude %{_libdir}/ocaml/findlib/*.mli
%exclude %{_libdir}/ocaml/findlib/Makefile.config


%files devel
%doc LICENSE doc doc/README doc/guide-html
%{_libdir}/ocaml/findlib/*.a
%{_libdir}/ocaml/findlib/*.cmxa
%{_libdir}/ocaml/findlib/*.mli
%{_libdir}/ocaml/findlib/Makefile.config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14988 |21mr|ocaml-fmt-0.8.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname fmt

Name:		ocaml-%{srcname}
Version:	0.8.10
Release:	1
Summary:	OCaml Format pretty-printer combinators
Group:		Development/OCaml
License:	ISC
URL:		https://erratique.ch/software/fmt
Source0:	https://github.com/dbuenzli/fmt/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.05.0
BuildRequires:	ocaml-cmdliner-devel >= 0.9.8
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	ocaml-seq-devel
BuildRequires:	ocaml-topkg-devel >= 0.9.0

%description
Fmt exposes combinators to devise `Format` pretty-printing functions.

Fmt depends only on the OCaml standard library.  The optional Fmt_tty
library that enables setting up formatters for terminal color output
depends on the Unix library.  The optional Fmt_cli library that provides
command line support for Fmt depends on Cmdliner.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs

#-----------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-seq-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc html/*
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/%{srcname}*.mli

#-----------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

# Topkg does watermark replacements only if run inside a git checkout.  Github
# tarballs do not come with a .git directory.  Therefore, we do the watermark
# replacement manually.
for fil in $(find . -type f); do
  sed -e 's,%%%%NAME%%%%,%{srcname},' \
      -e 's,%%%%VERSION%%%%,v%{version},' \
      -e 's,%%%%VERSION_NUM%%%%,%{version},' \
      -i.orig $fil
  touch -r $fil.orig $fil
  rm $fil.orig
done

%build
# Build the library and the tests
ocaml pkg/pkg.ml build --tests true --with-base-unix true --with-cmdliner true

# Build the documentation
mkdir html
ocamldoc -html -d html -I +cmdliner -I _build/src _build/src/*.mli

%install
# Install the library
mkdir -p %{buildroot}%{_libdir}/ocaml/fmt
cp -p _build/{opam,pkg/META} %{buildroot}%{_libdir}/ocaml/fmt
cp -a _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} \
  %{buildroot}%{_libdir}/ocaml/fmt

%check
ocaml pkg/pkg.ml test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14989 |21mr|ocaml-gettext-0.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ocaml-gettext
Version:	0.4.2
Release:	1
Summary:	OCaml library for i18n
Group:		Development/OCaml
License:	LGPLv2+ with exceptions
URL:		https://github.com/gildor478/ocaml-gettext
Source0:        https://github.com/gildor478/%{name}/archive/v%{version}.tar.gz
Source100:	ocaml-gettext.rpmlintrc
BuildRequires:	ocaml >= 4.00.1
BuildRequires:	ocaml-findlib-devel >= 1.3.3-3
BuildRequires:	ocaml-compiler-libs
BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-cppo
BuildRequires:	ocaml-fileutils-devel >= 0.4.4-4
BuildRequires:	ocaml-dune-devel
BuildRequires:	docbook-style-xsl
BuildRequires:	chrpath
BuildRequires:	autoconf
BuildRequires:	ocaml-ounit-devel
BuildRequires:	ocaml-camomile-devel >= 0.8.6-3
BuildRequires:	ocaml-camomile-data
# ocaml-gettext program needs camomile data files
Requires:	ocaml-camomile-data

%global __ocaml_requires_opts -i Asttypes -i Parsetree
%global __ocaml_provides_opts -i Pr_gettext


%description
Ocaml-gettext provides support for internationalization of Ocaml
programs.

Constraints :

* provides a pure Ocaml implementation,
* the API should be as close as possible to GNU gettext,
* provides a way to automatically extract translatable
  strings from Ocaml source code.

%files
%doc LICENSE.txt
%{_libdir}/ocaml/gettext
%{_libdir}/ocaml/gettext-stub
%exclude %{_libdir}/ocaml/gettext/*.a
%exclude %{_libdir}/ocaml/gettext/*.cmxa
%exclude %{_libdir}/ocaml/gettext/*/*.cmxa
%exclude %{_libdir}/ocaml/gettext/*/*.cmx
%exclude %{_libdir}/ocaml/gettext-stub/*.cmxa
%exclude %{_libdir}/ocaml/gettext-stub/*.cmx
%exclude %{_libdir}/ocaml/gettext/*/*.ml
%exclude %{_libdir}/ocaml/gettext/*/*.mli
%exclude %{_libdir}/ocaml/gettext-stub/*.ml
%{_libdir}/ocaml/stublibs/*.so

#---------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

# BZ 446919.
Requires:	ocaml-fileutils-devel >= 0.4.0


%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc README.md CHANGES.md THANKS TODO.md
# %doc build/share/doc/html/*
%{_libdir}/ocaml/gettext/*.cmxa
%{_libdir}/ocaml/gettext/*/*.cmxa
%{_libdir}/ocaml/gettext/*/*.cmx
%{_libdir}/ocaml/gettext-stub/*.cmxa
%{_libdir}/ocaml/gettext-stub/*.cmx
%{_libdir}/ocaml/gettext/*/*.ml
%{_libdir}/ocaml/gettext/*/*.mli
%{_libdir}/ocaml/gettext-stub/*.ml
%{_bindir}/ocaml-gettext
%{_bindir}/ocaml-xgettext
%{_mandir}/man1/ocaml-gettext.1*
%{_mandir}/man1/ocaml-xgettext.1*
%{_mandir}/man5/ocaml-gettext.5*

#---------------------------------------------------------------------

%package camomile
Summary:	Parts of %{name} which depend on Camomile
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description camomile
The %{name}-camomile package contains the parts of %{name} which
depend on Camomile.

%files camomile
%doc LICENSE.txt
%{_libdir}/ocaml/gettext-camomile
%exclude %{_libdir}/ocaml/gettext-camomile/*.a
%exclude %{_libdir}/ocaml/gettext-camomile/*.cmxa
%exclude %{_libdir}/ocaml/gettext-camomile/*.cmx
%exclude %{_libdir}/ocaml/gettext-camomile/*.mli

#---------------------------------------------------------------------

%package camomile-devel
Summary:	Development files for %{name}-camomile
Group:		Development/OCaml
Requires:	%{name}-devel = %{EVRD}
Requires:	%{name}-camomile = %{EVRD}

%description    camomile-devel
The %{name}-camomile-devel package contains libraries and
signature files for developing applications that use
%{name}-camomile.

%files camomile-devel
%doc README.md
%{_libdir}/ocaml/gettext-camomile/*.a
%{_libdir}/ocaml/gettext-camomile/*.cmxa
%{_libdir}/ocaml/gettext-camomile/*.cmx
%{_libdir}/ocaml/gettext-camomile/*.mli

#---------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

# Remove dependency on batteries.
sed -i -e 's/batteries//' test/dune
sed -i -e 's/batteries//' test/test-stub/dune


%build
make build

#check
# Tests require batteries, so they are disabled at present.
# Under discussion with upstream.

%install
mkdir -p %{buildroot}%{_libdir}/ocaml
mkdir -p %{buildroot}%{_bindir}
dune install --destdir=%{buildroot}

# Remove this, we will use our own rules for documentation.
rm -rf %{buildroot}/usr/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14990 |21mr|ocaml-integers-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# Debuginfo generation is broken, so disable it.  We should work out
# how to add -g option instead XXX.
%global debug_package %{nil}

# Documentation adds a circular dependency, so by
# default we build without.
%bcond_with doc

Name:		ocaml-integers
Version:	0.4.0
Release:	1
Summary:	Various signed and unsigned integer types for OCaml
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/ocamllabs/%{name}
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires:	ocaml >= 4.02
BuildRequires:	ocaml-dune
%if %{with doc}
BuildRequires:	ocaml-odoc
%endif

%description
The ocaml-integers library provides a number of 8-, 16-, 32- and 64-bit
signed and unsigned integer types, together with aliases such as `long`
and `size_t` whose sizes depend on the host platform.

%files
%license LICENSE.md
%doc CHANGES.md README.md
%dir %{_libdir}/ocaml/integers/
%dir %{_libdir}/ocaml/integers/top/
%{_libdir}/ocaml/integers/META
%{_libdir}/ocaml/integers/*.cma
%{_libdir}/ocaml/integers/*.cmi
%{_libdir}/ocaml/integers/top/*.cma
%{_libdir}/ocaml/integers/top/*.cmi
%{_libdir}/ocaml/integers/*.cmxs
%{_libdir}/ocaml/stublibs/dllintegers_stubs.so

#-------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/integers/dune-package
%{_libdir}/ocaml/integers/opam
%{_libdir}/ocaml/integers/*.a
%{_libdir}/ocaml/integers/*.cmx
%{_libdir}/ocaml/integers/*.cmxa
%{_libdir}/ocaml/integers/*.cmt
%{_libdir}/ocaml/integers/*.cmti
%{_libdir}/ocaml/integers/*.h
%{_libdir}/ocaml/integers/*.mli
%{_libdir}/ocaml/integers/top/*.cmt
%{_libdir}/ocaml/integers/top/*.cmti
%{_libdir}/ocaml/integers/top/*.mli

#-------------------------------------------------------------

%if %{with doc}
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains developer documentation for
%{name}.

%files doc
%doc _build/default/_doc/*

%endif

#-------------------------------------------------------------

%prep
%autosetup

%build
dune build %{?_smp_mflags}
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

# Relink the stublib with Fedora flags
cd _build/default/src
ocamlmklib -g -ldopt "%{build_ldflags}" -o integers_stubs \
  $(ar t libintegers_stubs.a)
cd -

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

%check
dune runtest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14991 |21mr|ocaml-labltk-8.06.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define up_name labltk

Summary:	Tcl/Tk interface for OCaml
Name:		ocaml-%{up_name}
Version:	8.06.10
Release:	1
Group:		Development/OCaml
License:	LGPLv2+ with exceptions
URL:		https://github.com/garrigue/labltk
# This link chnages every time and ignore the version
# Do not use %%version in here as it will download an old version named with the new version
Source0:	https://github.com/garrigue/labltk/archive/refs/tags/8.06.10.tar.gz?/%{up_name}-%{version}.tar.gz
Source1:	META
# This adds debugging (-g) everywhere.
Patch1:		labltk-8.06.0-enable-debugging.patch
Patch2:		labltk-8.06.4-enable-more-debugging.patch
BuildRequires:	ocaml-compiler
BuildRequires:	ocaml-compiler-libs
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)

%description
labltk or mlTk is a library for interfacing OCaml with the scripting
language Tcl/Tk (all versions since 8.0.3, but no betas).

%files
%doc Changes README.mlTk
%dir %{_libdir}/ocaml/labltk
%{_libdir}/ocaml/labltk/*.cmi
%{_libdir}/ocaml/labltk/*.cma
%{_libdir}/ocaml/labltk/*.cmo
%{_libdir}/ocaml/stublibs/dlllabltk.so
%{_libdir}/ocaml/labltk/META

#------------------------------------------------------------------
%package devel
Summary:	Tcl/Tk interface for OCaml
Group:		Development/OCaml
Requires:	%{name}%{?_isa} = %{version}-%{release}

%description devel
labltk or mlTk is a library for interfacing OCaml with the scripting
language Tcl/Tk (all versions since 8.0.3, but no betas).

This package contains the development files.

%files devel
%doc README.mlTk
%doc examples_camltk
%doc examples_labltk
%{_bindir}/labltk
%{_bindir}/ocamlbrowser
%{_libdir}/ocaml/labltk/labltktop
%{_libdir}/ocaml/labltk/pp
%{_libdir}/ocaml/labltk/tkcompiler
%{_libdir}/ocaml/labltk/*.a
%{_libdir}/ocaml/labltk/*.cmxa
%{_libdir}/ocaml/labltk/*.cmx
%{_libdir}/ocaml/labltk/*.o
%{_libdir}/ocaml/labltk/*.mli

#------------------------------------------------------------------

%prep
%setup -q -n labltk-%{version}
%autopatch -p1

# Remove version control files which might get copied into documentation.
find -name .gitignore -delete

%build
./configure

# Build does not work in parallel.
unset MAKEFLAGS

make all
make opt

%install
mkdir -p %buildroot%{_bindir}
mkdir -p %buildroot%{_libdir}/ocaml/labltk
mkdir -p %buildroot%{_libdir}/ocaml/stublibs
make install \
    BINDIR=%buildroot%{_bindir} \
    INSTALLDIR=%buildroot%{_libdir}/ocaml/labltk \
    STUBLIBDIR=%buildroot%{_libdir}/ocaml/stublibs
# The *.o files are not installed by the Makefile.  AIUI
# that prevents linking with native code programs.
install -m 0644 camltk/*.o $RPM_BUILD_ROOT%{_libdir}/ocaml/labltk

install -m 0644 %{SOURCE1} %buildroot%{_libdir}/ocaml/labltk/META



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14992 |21mr|ocaml-libvirt-0.6.1.5-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ocaml-libvirt
Version:	0.6.1.5
Release:	12
Group:		Development/OCaml
Summary:	OCaml binding for libvirt
License:	LGPLv2+
URL:		http://libvirt.org/ocaml/
Source0:	http://libvirt.org/sources/ocaml/%{name}-%{version}.tar.gz
# Fixes build with OCaml >= 4.09.
# Upstream commit 75b13978f85b32c7a121aa289d8ebf41ba14ee5a.
Patch1:		0001-Make-const-the-return-value-of-caml_named_value.patch
# Fixes for OCaml 4.10, sent upstream 2020-01-19.
Patch2:		0001-block_peek-memory_peek-Use-bytes-for-return-buffer.patch
Patch3:		0002-String_val-returns-const-char-in-OCaml-4.10.patch
Patch4:		0003-Don-t-try-to-memcpy-into-a-String_val.patch
BuildRequires:	ocaml >= 3.10.0
BuildRequires:	ocaml-findlib-devel
BuildRequires:	libvirt-devel >= 0.2.1
BuildRequires:	perl
BuildRequires:	gawk

%description
OCaml binding for libvirt.

%files
%doc COPYING.LIB README ChangeLog
%{_libdir}/ocaml/libvirt
%exclude %{_libdir}/ocaml/libvirt/*.a
%exclude %{_libdir}/ocaml/libvirt/*.cmxa
%exclude %{_libdir}/ocaml/libvirt/*.cmx
%exclude %{_libdir}/ocaml/libvirt/*.mli
%{_libdir}/ocaml/stublibs/*.so
%{_libdir}/ocaml/stublibs/*.so.owner

#--------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc COPYING.LIB README TODO.libvirt ChangeLog html/*
%{_libdir}/ocaml/libvirt/*.a
%{_libdir}/ocaml/libvirt/*.cmxa
%{_libdir}/ocaml/libvirt/*.cmx
%{_libdir}/ocaml/libvirt/*.mli

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
make all doc
make opt

%install
# These rules work if the library uses 'ocamlfind install' to install itself.
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR $OCAMLFIND_DESTDIR/stublibs
mkdir -p %{buildroot}%{_bindir}
make install-opt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14993 |21mr|ocaml-luv-0.5.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# Documentation adds a circular dependency, so by
# default we build without.
%bcond_with doc

%global srcname luv

Name:		ocaml-%{srcname}
Version:	0.5.8
Release:	1
Summary:	OCaml binding to libuv for cross-platform asynchronous I/O
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/aantron/luv
Source0:	%{url}/releases/download/%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.02.0
BuildRequires:	ocaml-alcotest-devel >= 0.8.1
BuildRequires:	ocaml-ctypes-devel >= 0.13.0
BuildRequires:	ocaml-dune >= 2.0.0
%if %{with doc}
BuildRequires:	ocaml-odoc
%endif
BuildRequires:	ocaml-result-devel
BuildRequires:	pkgconfig(libuv)

%description
Luv is a binding to libuv, the cross-platform C library that does
asynchronous I/O in Node.js and runs its main loop.

Besides asynchronous I/O, libuv also supports multiprocessing and
multithreading.  Multiple event loops can be run in different threads.
Libuv also exposes a lot of other functionality, amounting to a full OS
API, and an alternative to the standard module Unix.

%files
%license LICENSE.md
%doc README.md
%dir %{_libdir}/ocaml/luv/
%dir %{_libdir}/ocaml/luv/c/
%dir %{_libdir}/ocaml/luv/c_function_descriptions/
%dir %{_libdir}/ocaml/luv/c_type_descriptions/
%dir %{_libdir}/ocaml/luv_unix/
%{_libdir}/ocaml/luv{,_unix}/META
%{_libdir}/ocaml/luv{,_unix}/{,*/}*.cma
%{_libdir}/ocaml/luv{,_unix}/{,*/}*.cmi
%{_libdir}/ocaml/luv{,_unix}/{,*/}*.cmxs
%{_libdir}/ocaml/stublibs/dllluv_c_stubs.so
%{_libdir}/ocaml/stublibs/dllluv_unix_stubs.so


#-----------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-ctypes-devel
Requires:	ocaml-result-devel

%description devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/luv{,_unix}/dune-package
%{_libdir}/ocaml/luv{,_unix}/opam
%{_libdir}/ocaml/luv{,_unix}/{,*/}*.a
%{_libdir}/ocaml/luv{,_unix}/{,*/}*.cmx
%{_libdir}/ocaml/luv{,_unix}/{,*/}*.cmxa
%{_libdir}/ocaml/luv{,_unix}/{,*/}*.cmt
%{_libdir}/ocaml/luv{,_unix}/*.cmti
%{_libdir}/ocaml/luv{,_unix}/*.mli

#-----------------------------------------------------------

%if %{with doc}
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains developer documentation for
%{name}.

%files doc
%doc _build/default/_doc/*

%endif

#-----------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

# Remove spurious executable bits
find . -type f -exec chmod 0644 {} +

%build
export LUV_USE_SYSTEM_LIBUV=yes
dune build %{?_smp_mflags}
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

# Relink the stublibs with Fedora flags
cd _build/default/src/c
ocamlmklib -g -ldopt "%{build_ldflags}" -o luv_c_stubs \
  $(ar t libluv_c_stubs.a) -luv
cd -
cd _build/default/src/unix
ocamlmklib -g -ldopt "%{build_ldflags}" -o luv_unix_stubs \
  $(ar t libluv_unix_stubs.a)
cd -

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We do not want the bundled libuv headers
rm -fr %{buildroot}%{_libdir}/ocaml/luv/uv{,.h}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

%check
dune runtest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14994 |21mr|ocaml-lwt-5.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined %nil

Name:		ocaml-lwt
Version:	5.4.2
Release:	1
Summary:	OCaml lightweight thread library
Group:		Development/OCaml
# The openssl linking exception is granted.
License:	LGPLv2+ with exceptions
URL:		http://ocsigen.org/lwt
Source0:	https://github.com/ocsigen/lwt/archive/%{version}.tar.gz?/lwt-%{version}.tar.gz

BuildRequires:	ocaml >= 4.02.0
BuildRequires:	ocaml-findlib

BuildRequires:	ocaml-csexp-devel
BuildRequires:	ocaml-dune-devel
BuildRequires:	ocaml-cppo
BuildRequires:	ocaml-result-devel
BuildRequires:	ocaml-seq-devel
BuildRequires:	ocaml-bisect-ppx-devel
BuildRequires:	ocaml-luv-devel

# lwt.unix dependencies
BuildRequires:	ocaml-mmap-devel
BuildRequires:	ocaml-ocplib-endian-devel

# lwt_react dependencies.
BuildRequires:	ocaml-react-devel

# lwt_ppx dependencies.
BuildRequires:	ocaml-ppxlib-devel

BuildRequires:	glib2-devel
BuildRequires:	libev-devel


%description
Lwt is a lightweight thread library for Objective Caml.  This library
is part of the Ocsigen project.

%files
%doc CHANGES README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/lwt/
%dir %{_libdir}/ocaml/lwt/unix/
%{_libdir}/ocaml/lwt/META
%{_libdir}/ocaml/lwt/dune-package
%{_libdir}/ocaml/lwt/opam
%{_libdir}/ocaml/lwt/*.cma
%{_libdir}/ocaml/lwt/*.cmi
%{_libdir}/ocaml/lwt/unix/*.cma
%{_libdir}/ocaml/lwt/unix/*.cmi
%{_libdir}/ocaml/lwt/*.cmxs
%{_libdir}/ocaml/lwt/unix/*.cmxs
%{_libdir}/ocaml/stublibs/*.so

#-------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-mmap-devel
Requires:	ocaml-ocplib-endian-devel
Requires:	ocaml-result-devel
Requires:	ocaml-seq-devel
Requires:	libev-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc CHANGES README.md
%{_libdir}/ocaml/lwt/*.a
%{_libdir}/ocaml/lwt/*.cmxa
%{_libdir}/ocaml/lwt/*.cmx
%{_libdir}/ocaml/lwt/unix/*.a
%{_libdir}/ocaml/lwt/unix/*.cmxa
%{_libdir}/ocaml/lwt/unix/*.cmx
%{_libdir}/ocaml/lwt/*.cmt
%{_libdir}/ocaml/lwt/*.cmti
%{_libdir}/ocaml/lwt/*.ml
%{_libdir}/ocaml/lwt/*.mli
%{_libdir}/ocaml/lwt/unix/*.cmt
%{_libdir}/ocaml/lwt/unix/*.cmti
%{_libdir}/ocaml/lwt/unix/*.h
%{_libdir}/ocaml/lwt/unix/*.ml
%{_libdir}/ocaml/lwt/unix/*.mli

#-------------------------------------------------------------

%package react
Summary:	Helpers for using React with Lwt
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description react
Helpers for using React with Lwt.

%files react
%doc CHANGES README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/lwt_react/
%{_libdir}/ocaml/lwt_react/META
%{_libdir}/ocaml/lwt_react/dune-package
%{_libdir}/ocaml/lwt_react/opam
%{_libdir}/ocaml/lwt_react/*.cma
%{_libdir}/ocaml/lwt_react/*.cmi
%{_libdir}/ocaml/lwt_react/*.cmxs

#-------------------------------------------------------------

%package react-devel
Summary:	Development files for ocaml-lwt-react
Group:		Development/OCaml
Requires:	%{name}-react = %{EVRD}
Requires:	%{name}-devel = %{EVRD}
Requires:	ocaml-bisect-ppx-devel

%description    react-devel
The %{name}-react-devel package contains libraries and signature files for
developing applications that use %{name}-react.

%files react-devel
%doc CHANGES README.md
%{_libdir}/ocaml/lwt_react/*.a
%{_libdir}/ocaml/lwt_react/*.cmxa
%{_libdir}/ocaml/lwt_react/*.cmx
%{_libdir}/ocaml/lwt_react/*.cmt
%{_libdir}/ocaml/lwt_react/*.cmti
%{_libdir}/ocaml/lwt_react/*.ml
%{_libdir}/ocaml/lwt_react/*.mli

#-------------------------------------------------------------

%package ppx
Summary:	PPX syntax for Lwt
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description ppx
PPX syntax for Lwt, providing something similar to async/await from JavaScript.

%files ppx
%dir %{_libdir}/ocaml/lwt_ppx/
%{_libdir}/ocaml/lwt_ppx/META
%{_libdir}/ocaml/lwt_ppx/dune-package
%{_libdir}/ocaml/lwt_ppx/opam
%{_libdir}/ocaml/lwt_ppx/ppx.exe
%{_libdir}/ocaml/lwt_ppx/*.cma
%{_libdir}/ocaml/lwt_ppx/*.cmi
%{_libdir}/ocaml/lwt_ppx/*.cmxs

#-------------------------------------------------------------

%package ppx-devel
Summary:	Development files for ocaml-lwt-ppx
Group:		Development/OCaml
Requires:	%{name}-ppx = %{EVRD}
Requires:	%{name}-devel = %{EVRD}

%description ppx-devel
The %{name}-ppx-devel package contains libraries and signature files for
developing applications that use %{name}-ppx.

%files ppx-devel
%doc CHANGES README.md
%{_libdir}/ocaml/lwt_ppx/*.a
%{_libdir}/ocaml/lwt_ppx/*.cmxa
%{_libdir}/ocaml/lwt_ppx/*.cmx
%{_libdir}/ocaml/lwt_ppx/*.cmt
%{_libdir}/ocaml/lwt_ppx/*.cmti
%{_libdir}/ocaml/lwt_ppx/*.ml
%{_libdir}/ocaml/lwt_ppx/*.mli

#-------------------------------------------------------------

%package luv
Summary:	luv syntax for Lwt
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description luv
luv syntax for Lwt, providing something similar to async/await from JavaScript.

%files luv
%dir %{_libdir}/ocaml/lwt_luv/
%{_libdir}/ocaml/lwt_luv/META
%{_libdir}/ocaml/lwt_luv/dune-package
%{_libdir}/ocaml/lwt_luv/opam
%{_libdir}/ocaml/lwt_luv/*.cma
%{_libdir}/ocaml/lwt_luv/*.cmi
%{_libdir}/ocaml/lwt_luv/*.cmxs

#-------------------------------------------------------------

%package luv-devel
Summary:	Development files for ocaml-lwt-luv
Group:		Development/OCaml
Requires:	%{name}-luv = %{EVRD}
Requires:	%{name}-devel = %{EVRD}

%description luv-devel
The %{name}-luv-devel package contains libraries and signature files for
developing applications that use %{name}-luv.

%files luv-devel
%doc CHANGES README.md
%{_libdir}/ocaml/lwt_luv/*.a
%{_libdir}/ocaml/lwt_luv/*.cmxa
%{_libdir}/ocaml/lwt_luv/*.cmx
%{_libdir}/ocaml/lwt_luv/*.cmt
%{_libdir}/ocaml/lwt_luv/*.cmti
%{_libdir}/ocaml/lwt_luv/*.ml
%{_libdir}/ocaml/lwt_luv/*.mli

#-------------------------------------------------------------

%prep
%autosetup -n lwt-%{version}

# It looks like one test fails.
# Actually, it looks like all the "mcast" tests fail in koji.
# They should probably be disabled via a patch, but this works for now.
sed 's,test_mcast "mcast-join-loop" true true;,(*test_mcast "mcast-join-loop" true true;*),' -i test/unix/test_mcast.ml
sed 's,test_mcast "mcast-join-noloop" true false;,(*test_mcast "mcast-join-noloop" true false;*),' -i test/unix/test_mcast.ml
sed 's,test_mcast "mcast-nojoin-loop" false true;,(*test_mcast "mcast-nojoin-loop" false true;*),' -i test/unix/test_mcast.ml
sed 's,test_mcast "mcast-nojoin-noloop" false false;,(*test_mcast "mcast-nojoin-noloop" false false;*),' -i test/unix/test_mcast.ml

%build
# Enable libev and pthread.
dune exec src/unix/config/discover.exe -- --save \
     --use-libev true --use-pthread true
dune build --profile=release --verbose

# Relink the stublib with RPM_LD_FLAGS
cd _build/default/src/unix
ocamlmklib -g -ldopt "$RPM_LD_FLAGS" -lev -lpthread -lm -o lwt_unix_stubs \
  $(ar t liblwt_unix_stubs.a)
cd -

%install
dune install --profile=release --destdir %{buildroot}

# Remove spurious dune-installed documentation.
rm -rf %{buildroot}/%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+

%check
# Disable this test on s390x.
# https://bugzilla.redhat.com/show_bug.cgi?id=1826511
%ifnarch s390x
dune runtest --profile=release
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14995 |21mr|ocaml-migrate-parsetree-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ocaml-migrate-parsetree
Version:	2.3.0
Release:	1
Summary:	Convert OCaml parsetrees between different major versions
Group:		Development/OCaml
License:	LGPLv2+ with exceptions
URL:		https://github.com/ocaml-ppx/ocaml-migrate-parsetree
Source0:	https://github.com/ocaml-ppx/ocaml-migrate-parsetree/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-dune
BuildRequires:	ocaml-cinaps-devel

%description
This library converts between parsetrees of different OCaml versions.
For each version, there is a snapshot of the parsetree and conversion
functions to the next and/or previous version.

%files
%doc README.md CHANGES.md
%license LICENSE.md
%{_libdir}/ocaml/*
%exclude %{_libdir}/ocaml/*/{,*/}*.a
%exclude %{_libdir}/ocaml/*/{,*/}*.cmxa
%exclude %{_libdir}/ocaml/*/{,*/}*.cmx
%exclude %{_libdir}/ocaml/*/{,*/}*.ml
%exclude %{_libdir}/ocaml/*/{,*/}*.mli

#-------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Requires:	%{name} = %{EVRD}
Requires:	ocaml-result-devel
Requires:	ocaml-ppx-derivers-devel

%description devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%doc README.md CHANGES.md
%license LICENSE.md
%{_libdir}/ocaml/*/{,*/}*.a
%{_libdir}/ocaml/*/{,*/}*.cmxa
%{_libdir}/ocaml/*/{,*/}*.cmx
%{_libdir}/ocaml/*/{,*/}*.ml
%{_libdir}/ocaml/*/{,*/}*.mli

#-------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{version}

%build
%make_build


%install
mkdir -p %{buildroot}%{_libdir}/ocaml
%make_install INSTALL_ARGS='--destdir=%{buildroot}'

# These files will be installed using doc and license directives.
rm -r %{buildroot}/usr/doc

# Makes *.cmxs executable such that they will be stripped.
find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;

%check
%make_build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14996 |21mr|ocaml-mmap-1.1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ocaml-mmap
Version:	1.1.0
Release:	12
Summary:	File mapping functionality
Group:		Development/OCaml
# License is LGPL 2.1 with standard OCaml exceptions
License:	LGPLv2+ with exceptions
URL:		https://github.com/mirage/mmap
Source0:	https://github.com/mirage/mmap/archive/v%{version}/mmap-v%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-dune

%description
This project provides a Mmap.map_file functions for mapping files
in memory. This function is the same as the Unix.map_file function
added in OCaml >= 4.06.

%files
%license LICENSE
%doc README.md CHANGES.md
%{_libdir}/ocaml/mmap
%exclude %{_libdir}/ocaml/mmap/*.a
%exclude %{_libdir}/ocaml/mmap/*.cmxa
%exclude %{_libdir}/ocaml/mmap/*.cmx
%exclude %{_libdir}/ocaml/mmap/*.mli

#------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description    devel
The %{name}-devel package contains libraries and
signature files for developing applications that use %{name}.

%files devel
#license LICENSE
%{_libdir}/ocaml/mmap/*.a
%{_libdir}/ocaml/mmap/*.cmxa
%{_libdir}/ocaml/mmap/*.cmx
%{_libdir}/ocaml/mmap/*.mli

#------------------------------------------------------------

%prep
%autosetup -n mmap-%{version}

%build
# It might be nice to have a %jbuilder macro that just does this.
dune build -p mmap %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/mmap/
cp -aLr _build/install/default/lib/mmap/* %{buildroot}%{_libdir}/ocaml/mmap/

%check
dune runtest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14997 |21mr|ocaml-num-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ocaml-num
Version:	1.4
Release:	1
Summary:	Legacy Num library for arbitrary-precision integer and rational arithmetic
License:	LGPLv2+ with exceptions
Group:		Development/OCaml
URL:		https://github.com/ocaml/num
Source0:	https://github.com/ocaml/num/archive/v%{version}/%{name}-%{version}.tar.gz
# Downstream patches to add -g flag.
Patch4:         0004-toplevel-Add-g-flag.patch
Patch5:         0005-src-Add-g-flag-to-mklib.patch

BuildRequires:	make
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib-devel

%description
This library implements arbitrary-precision arithmetic on big integers
and on rationals.

This is a legacy library. It used to be part of the core OCaml
distribution (in otherlibs/num) but is now distributed separately. New
applications that need arbitrary-precision arithmetic should use the
Zarith library (https://github.com/ocaml/Zarith) instead of the Num
library, and older applications that already use Num are encouraged to
switch to Zarith. Zarith delivers much better performance than Num and
has a nicer API.

%files
%doc Changelog README.md
%license LICENSE
%{_libdir}/ocaml/*.cmi
%{_libdir}/ocaml/*.cma
%{_libdir}/ocaml/*.cmxs
%{_libdir}/ocaml/num
%{_libdir}/ocaml/num-top
%{_libdir}/ocaml/stublibs/dll*.so
%exclude %{_libdir}/ocaml/*.a
%exclude %{_libdir}/ocaml/*.cmxa
%exclude %{_libdir}/ocaml/*.cmx
%exclude %{_libdir}/ocaml/*.mli

#--------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}


%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%license LICENSE
%{_libdir}/ocaml/*.a
%{_libdir}/ocaml/*.cmxa
%{_libdir}/ocaml/*.cmx
%{_libdir}/ocaml/*.mli

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n num-%{version}

%build
make %{?_smp_mflags} all

%check
make -j1 test

%install
export DESTDIR=%{buildroot}
export OCAMLFIND_DESTDIR=%{buildroot}%{_libdir}/ocaml
mkdir -p $OCAMLFIND_DESTDIR
mkdir -p $OCAMLFIND_DESTDIR/stublibs
make install

find $OCAMLFIND_DESTDIR -name '*.cmti' -delete

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14998 |21mr|ocaml-ocamlbuild-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Name:		ocaml-ocamlbuild
Version:	0.14.1
Release:	1
Group:		Development/OCaml
Summary:	Build tool for OCaml libraries and programs
License:	LGPLv2
URL:		https://github.com/ocaml/ocamlbuild
Source0:	https://github.com/ocaml/ocamlbuild/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.04.0

%description
OCamlbuild is a build tool for building OCaml libraries and programs.

%files
%doc Changes Readme.md VERSION
%{_bindir}/ocamlbuild
%{_bindir}/ocamlbuild.byte
%ifarch %{ocaml_native_compiler}
%{_bindir}/ocamlbuild.native
%endif
%{_mandir}/man1/ocamlbuild.1*
%{_libdir}/ocaml/ocamlbuild
%ifarch %{ocaml_native_compiler}
%exclude %{_libdir}/ocaml/ocamlbuild/*.a
%exclude %{_libdir}/ocaml/ocamlbuild/*.o
%exclude %{_libdir}/ocaml/ocamlbuild/*.cmx
%exclude %{_libdir}/ocaml/ocamlbuild/*.cmxa
%endif
%exclude %{_libdir}/ocaml/ocamlbuild/*.mli

#------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name}%{?_isa} = %{version}-%{release}

%description devel
This package contains development files for %{name}.

%files devel
%ifarch %{ocaml_native_compiler}
%{_libdir}/ocaml/ocamlbuild/*.a
%{_libdir}/ocaml/ocamlbuild/*.o
%{_libdir}/ocaml/ocamlbuild/*.cmx
%{_libdir}/ocaml/ocamlbuild/*.cmxa
%endif
%{_libdir}/ocaml/ocamlbuild/*.mli

#------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name}%{?_isa} = %{version}-%{release}

%description doc
This package contains the manual for %{name}.

%files doc
%doc manual/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n ocamlbuild-%{version}

%build
make configure \
  OCAMLBUILD_PREFIX=%{_prefix} \
  OCAMLBUILD_BINDIR=%{_bindir} \
  OCAMLBUILD_LIBDIR=%{_libdir}/ocaml \
%ifarch %{ocaml_native_compiler}
  OCAML_NATIVE=true
%else
  OCAML_NATIVE=false
%endif

# Parallel builds fail.
make \
%ifarch %{ocaml_native_compiler}
     OCAMLC="ocamlc.opt -g" \
     OCAMLOPT="ocamlopt.opt -g"
%else
     OCAMLC="ocamlc -g" \
     OCAMLOPT="ocamlopt -g"
%endif


%install
make install \
     DESTDIR=%{buildroot} \
     CHECK_IF_PREINSTALLED=false

# The install copies ocamlbuild & ocamlbuild.{byte or native}.
# Symlink them instead.
pushd %{buildroot}/usr/bin
%ifarch %{ocaml_native_compiler}
ln -sf ocamlbuild.native ocamlbuild
%else
ln -sf ocamlbuild.byte ocamlbuild
%endif
popd

# Install the man page, which for some reason is not copied
# in by the make install rule above.
mkdir -p %{buildroot}%{_mandir}/man1/
install -p -m 0644 man/ocamlbuild.1 %{buildroot}%{_mandir}/man1/





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 14999 |21mr|ocaml-ocplib-endian-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname ocplib-endian

Name:		ocaml-ocplib-endian
Version:	1.1
Release:	1
Summary:	Functions to read/write int16/32/64 from strings, bigarrays
Group:		Development/OCaml
# License is LGPL 2.1 with standard OCaml exceptions
License:	LGPLv2+ with exceptions
URL:		https://github.com/OCamlPro/ocplib-endian
Source0:	https://github.com/OCamlPro/ocplib-endian/archive/%{version}/ocplib-endian-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-cppo
BuildRequires:	ocaml-dune

%description
Optimised functions to read and write int16/32/64 from strings,
bytes and bigarrays, based on primitives added in version 4.01.

The library implements three modules:

EndianString works directly on strings, and provides submodules
BigEndian and LittleEndian, with their unsafe counter-parts;
EndianBytes works directly on bytes, and provides submodules
BigEndian and LittleEndian, with their unsafe counter-parts;
EndianBigstring works on bigstrings (Bigarrays of chars),
and provides submodules BigEndian and LittleEndian, with their
unsafe counter-parts;

%files
%license COPYING.txt
%doc README.md CHANGES.md
%{_libdir}/ocaml/%{oname}
%exclude %{_libdir}/ocaml/%{oname}/*.a
%exclude %{_libdir}/ocaml/%{oname}/*.cmxa
%exclude %{_libdir}/ocaml/%{oname}/*.cmx
%exclude %{_libdir}/ocaml/%{oname}/*.mli

#------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and
signature files for developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{oname}/*.a
%{_libdir}/ocaml/%{oname}/*.cmxa
%{_libdir}/ocaml/%{oname}/*.cmx
%{_libdir}/ocaml/%{oname}/*.mli

#------------------------------------------------------------

%prep
%autosetup -n %{oname}-%{version}

%build
dune build -p %{oname} %{?_smp_mflags}

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/%{oname}/
cp -aLr _build/install/default/lib/%{oname}/* %{buildroot}%{_libdir}/ocaml/%{oname}/

%check
dune runtest --profile=release

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15000 |21mr|ocaml-ounit-2.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global srcname ounit

Name:		ocaml-%{srcname}
Version:	2.2.4
Release:	1
Summary:	Unit test framework for OCaml
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/gildor478/ounit
Source0:	%{url}/releases/download/v%{version}/%{srcname}-v%{version}.tbz
# Remove stdlib-shims downstream.  Not needed in Fedora.
Patch1:		0003-Remove-stdlib-shims.patch
Patch2:		ounit-deprecated-thread.kill.patch
BuildRequires:	ocaml >= 4.02.3
BuildRequires:	ocaml-dune >= 1.11.0
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-lwt-devel
BuildRequires:	ocaml-mmap-devel
BuildRequires:	ocaml-ocplib-endian-devel
BuildRequires:	ocaml-result-devel

# The ounit name is now just an alias for ounit2
Provides:	%{name}2 = %{version}-%{release}

%description
OUnit is a unit test framework for OCaml.  It allows one to easily create
unit-tests for OCaml code.  It is loosely based on HUnit, a unit testing
framework for Haskell.  It is similar to JUnit, and other xUnit testing
frameworks.

%files
%doc CHANGES.md README.md
%license LICENSE.txt
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}2/
%dir %{_libdir}/ocaml/%{srcname}2/advanced/
%dir %{_libdir}/ocaml/%{srcname}2/threads/
%{_libdir}/ocaml/%{srcname}2/threads/.private/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}2/META
%{_libdir}/ocaml/%{srcname}2/*.cma
%{_libdir}/ocaml/%{srcname}2/*.cmi
%{_libdir}/ocaml/%{srcname}2/*/*.cma
%{_libdir}/ocaml/%{srcname}2/*/*.cmi
%{_libdir}/ocaml/%{srcname}2/*.cmxs
%{_libdir}/ocaml/%{srcname}2/*/*.cmxs

#-----------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Provides:	%{name}2-devel = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}2/dune-package
%{_libdir}/ocaml/%{srcname}2/opam
%{_libdir}/ocaml/%{srcname}2/*.a
%{_libdir}/ocaml/%{srcname}2/*.cmx
%{_libdir}/ocaml/%{srcname}2/*.cmxa
%{_libdir}/ocaml/%{srcname}2/*/*.a
%{_libdir}/ocaml/%{srcname}2/*/*.cmx
%{_libdir}/ocaml/%{srcname}2/*/*.cmxa
%{_libdir}/ocaml/%{srcname}2/*.cmt
%{_libdir}/ocaml/%{srcname}2/*.cmti
%{_libdir}/ocaml/%{srcname}2/*.ml
%{_libdir}/ocaml/%{srcname}2/*.mli
%{_libdir}/ocaml/%{srcname}2/*/*.cmt
%{_libdir}/ocaml/%{srcname}2/*/*.cmti
%{_libdir}/ocaml/%{srcname}2/*/*.ml
%{_libdir}/ocaml/%{srcname}2/*/*.mli

#-----------------------------------------------------------------

%package lwt
Summary:	Helper functions for building Lwt tests using OUnit
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Provides:	%{name}2-lwt = %{EVRD}

%description    lwt
This package contains helper functions for building Lwt tests using
OUnit.

%files lwt
%dir %{_libdir}/ocaml/%{srcname}-lwt/
%dir %{_libdir}/ocaml/%{srcname}2-lwt/
%{_libdir}/ocaml/%{srcname}-lwt/META
%{_libdir}/ocaml/%{srcname}2-lwt/META
%{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cma
%{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmi
%{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmxs

#-----------------------------------------------------------------

%package lwt-devel
Summary:	Development files for %{name}-lwt
Group:		Development/OCaml
Requires:	%{name}-devel = %{EVRD}
Requires:	%{name}-lwt = %{EVRD}
Requires:	ocaml-lwt-devel
Provides:	%{name}2-lwt-devel = %{EVRD}

%description lwt-devel
The %{name}-lwt-devel package contains libraries and signature
files for developing applications that use %{name}-lwt.

%files lwt-devel
%{_libdir}/ocaml/%{srcname}-lwt/dune-package
%{_libdir}/ocaml/%{srcname}-lwt/opam
%{_libdir}/ocaml/%{srcname}2-lwt/dune-package
%{_libdir}/ocaml/%{srcname}2-lwt/opam
%{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.a
%{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmx
%{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmxa
%{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.cmt
%{_libdir}/ocaml/%{srcname}2-lwt/oUnitLwt.ml

#-----------------------------------------------------------------

%prep
%autosetup -n %{srcname}-v%{version} -p1

%build
dune build %{?_smp_mflags}

%install
dune install --destdir=%{buildroot}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

%check
# Disabled on s390(x) because:
# https://github.com/gildor478/ounit/issues/18
%ifnarch s390 s390x
dune runtest
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15001 |21mr|ocaml-parsexp-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname parsexp

Name:		ocaml-%{srcname}
Version:	0.15.0
Release:	1
Summary:	S-expression parsing library
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/janestreet/parsexp
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.04.2
BuildRequires:	ocaml-base-devel >= 0.14
BuildRequires:	ocaml-dune >= 2.0.0
BuildRequires:	ocaml-sexplib0-devel >= 0.14

%description
This library provides generic parsers for parsing S-expressions from
strings or other media.

The library is focused on performance but still provides full generic
parsers that can be used effortlessly with strings, bigstrings, lexing
buffers, character streams or any other source.

It provides three different classes of parsers:
- the normal parsers, producing [Sexp.t] or [Sexp.t list] values;
- the parsers with positions, building compact position sequences so
  that one can recover original positions in order to properly report
  error locations at little cost; and
- the Concrete Syntax Tree parsers, producing values of type
  [Parsexp.Cst.t] which record the concrete layout of the s-expression
  syntax, including comments.

This library is portable and doesn't provide I/O functions.  To read
s-expressions from files or other external sources, you should use
parsexp_io.

%files
%doc CHANGES.md README.org
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs

#------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-base-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/*.ml
%{_libdir}/ocaml/%{srcname}/*.mli

#------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags}

%install
dune install --destdir=%{buildroot}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod 0755 {} \+

%check
dune runtest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15002 |21mr|ocaml-ppx-derivers-1.2.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ocaml-ppx-derivers
Version:	1.2.1
Release:	14
Summary:	Deriving plugin registry
Group:		Development/OCaml
License:	BSD
URL:		https://github.com/ocaml-ppx/ppx_derivers
Source0:	https://github.com/ocaml-ppx/ppx_derivers/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-dune

%description
Ppx_derivers is a tiny package whose sole purpose is to allow
ppx_deriving and ppx_type_conv to inter-operate gracefully when
linked as part of the same ocaml-migrate-parsetree driver.

%files
%doc README.md CHANGES.md
%license LICENSE.md
%{_libdir}/ocaml/*
%exclude %{_libdir}/ocaml/*/*.a
%exclude %{_libdir}/ocaml/*/*.cmxa
%exclude %{_libdir}/ocaml/*/*.cmx
%exclude %{_libdir}/ocaml/*/*.mli
%exclude %{_libdir}/ocaml/*/*.ml

#-------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc README.md CHANGES.md
%license LICENSE.md
%{_libdir}/ocaml/*/*.a
%{_libdir}/ocaml/*/*.cmxa
%{_libdir}/ocaml/*/*.cmx
%{_libdir}/ocaml/*/*.mli
%{_libdir}/ocaml/*/*.ml

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n ppx_derivers-%{version}

%build
dune build @install

%install
mkdir -p %{buildroot}%{_libdir}/ocaml
dune install --destdir=%{buildroot} --verbose

# These files will be installed using the doc and license directives
rm -r %{buildroot}%{_prefix}/doc

# Makes *.cmxs executable such that they will be stripped.
find %{buildroot} -name '*.cmxs' -exec chmod 0755 {} \;

%check
dune runtest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15003 |21mr|ocaml-ppxlib-0.24.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname ppxlib

# This package is a transitive dependency of odoc, but needs odoc to build its
# documentation.  Break the circular dependency here.
%bcond_with doc

Name:		ocaml-%{srcname}
Version:	0.24.0
Release:	2
Summary:	Base library and tools for ppx rewriters
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/ocaml-ppx/%{srcname}
Source0:	%{url}/archive/%{version}/%{srcname}-%{version}.tar.gz
# Fedora does not have, and does not need, stdlib-shims
Patch0:		%{name}-stdlib-shims.patch
Patch1:		ocaml-ppxlib-test.patch
BuildRequires:	ocaml >= 4.04.1
BuildRequires:	ocaml-base-devel
BuildRequires:	ocaml-cinaps-devel >= 0.12.1
BuildRequires:	ocaml-compiler-libs-janestreet-devel >= 0.11.0
BuildRequires:	ocaml-dune >= 2.7
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-migrate-parsetree-devel >= 2.1.0
BuildRequires:	ocaml-ppx-derivers-devel >= 1.0
BuildRequires:	ocaml-re-devel >= 1.9.0
BuildRequires:	ocaml-sexplib0-devel
BuildRequires:	ocaml-stdio-devel

%if %{with doc}
BuildRequires:	ocaml-odoc
%else
Obsoletes:	%{name}-doc < 1:0.22.0
%endif

%description
The ppxlib project provides the basis for the ppx system, which is
currently the officially supported method for meta-programming in Ocaml.
It offers a principled way to generate code at compile time in OCaml
projects.  It features:
- an OCaml AST / parser/ pretty-printer snapshot, to create a full
  frontend independent of the version of OCaml;
- a library for ppx rewriters in general, and type-driven code generators
  in particular;
- a full-featured driver for OCaml AST transformers;
- a quotation mechanism for writing values representing OCaml AST in the
  OCaml syntax;
- a generator of open recursion classes from type definitions.

%files
%doc CHANGES.md HISTORY.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%dir %{_libdir}/ocaml/%{srcname}/ast/
%dir %{_libdir}/ocaml/%{srcname}/metaquot/
%dir %{_libdir}/ocaml/%{srcname}/metaquot_lifters/
%dir %{_libdir}/ocaml/%{srcname}/print_diff/
%dir %{_libdir}/ocaml/%{srcname}/runner/
%dir %{_libdir}/ocaml/%{srcname}/runner_as_ppx/
%dir %{_libdir}/ocaml/%{srcname}/traverse/
%dir %{_libdir}/ocaml/%{srcname}/traverse_builtins/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*/*.cma
%{_libdir}/ocaml/%{srcname}/*/*.cmi
%{_libdir}/ocaml/%{srcname}/*/*.exe
%{_libdir}/ocaml/%{srcname}/*.cmxs
%{_libdir}/ocaml/%{srcname}/*/*.cmxs

#----------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-compiler-libs-janestreet-devel
Requires:	ocaml-migrate-parsetree-devel
Requires:	ocaml-ppx-derivers-devel
Requires:	ocaml-sexplib0-devel

%description    devel
The %{name}-devel package contains libraries and
signature files for developing applications that use
%{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*/*.a
%{_libdir}/ocaml/%{srcname}/*/*.cmx
%{_libdir}/ocaml/%{srcname}/*/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli
%{_libdir}/ocaml/%{srcname}/*/*.cmt
%{_libdir}/ocaml/%{srcname}/*/*.cmti
%{_libdir}/ocaml/%{srcname}/*/*.mli

#----------------------------------------------------------------------

%if %{with doc}
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc _build/default/_doc/_html/
%doc _build/default/_doc/_mlds/
%doc _build/default/_doc/_odoc/
%license LICENSE.md

%endif

#----------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
dune build %{?_smp_mflags}

%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

# We do not want to install the test binaries
rm -fr %{buildroot}%{_bindir}

# FIXME: On arm only, building the tests fails:
# /usr/bin/ld: src/.cinaps/.cinaps.eobjs/native/dune__exe__Cinaps.o: relocation R_ARM_THM_MOVW_ABS_NC against `camlCinaps_runtime' can not be used when making a shared object; recompile with -fPIC
# src/.cinaps/.cinaps.eobjs/native/dune__exe__Cinaps.o: in function `.L297': :(.text+0xdec): dangerous relocation: unsupported relocation
# <many more such warnings>
#
# Disable the tests on arm until we can figure out what is going wrong.
%ifnarch %{arm}
%check
dune runtest
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15004 |21mr|ocaml-re-1.10.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{ocaml_native_compiler}
%global native_compiler 1
%else
%global native_compiler 0
%endif

Name:		ocaml-re
Version:	1.10.3
Release:	1
Summary:	A regular expression library for OCaml
Group:		Development/OCaml
License:	LGPLv2 with exceptions
URL:		https://github.com/ocaml/ocaml-re
Source0:	https://github.com/ocaml/%{name}/archive/%{version}/ocaml-re-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-findlib
#BuildRequires:	ocaml-ocamldoc
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	ocaml-seq-devel
BuildRequires:	ocaml-dune

%description
A pure OCaml regular expression library. Supports Perl-style regular
expressions, Posix extended regular expressions, Emacs-style regular
expressions, and shell-style file globbing.  It is also possible to
build regular expressions by combining simpler regular expressions.
There is also a subset of the PCRE interface available in the Re.pcre
library.

%files
%doc CHANGES.md
%doc README.md
%license LICENSE.md
%{_libdir}/ocaml/re
%if %{native_compiler}
%exclude %{_libdir}/ocaml/re/*.a
%exclude %{_libdir}/ocaml/re/*.cmxa
%exclude %{_libdir}/ocaml/re/*.cmx
%endif
%exclude %{_libdir}/ocaml/re/*.mli


#----------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Requires:	%{name} = %{EVRD}
# https://bugzilla.redhat.com/show_bug.cgi?id=1792031
Requires:	ocaml-seq-devel

%description    devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%if %{native_compiler}
%{_libdir}/ocaml/re/*.a
%{_libdir}/ocaml/re/*.cmx
%{_libdir}/ocaml/re/*.cmxa
%endif
%{_libdir}/ocaml/re/*.mli

#----------------------------------------------------------------

%prep
%setup -q -n ocaml-re-%{version}

%build
dune build -p re --verbose %{?_smp_mflags}

%install

# jbuilder/dune 1.0+ supports installing without opam-installer,
# which means in theory we could do something like the below even for
# "ocaml critical path" packages (e.g. dependencies of opam and opam-installer).

# However... in this package it seems to stop RPM from finding debug info
# correctly. I am not sure why. :(

#export OCAMLFIND_DESTDIR=$RPM_BUILD_ROOT%{_libdir}/ocaml
#mkdir -p $OCAMLFIND_DESTDIR
#jbuilder install --destdir %{buildroot}
#rm -r %{buildroot}/doc/re/

# So use the "manual jbuilder install" technique instead.
mkdir -p %{buildroot}%{_libdir}/ocaml
cp -aLr _build/install/default/lib/* %{buildroot}%{_libdir}/ocaml/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15005 |21mr|ocaml-react-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	OCaml module for Functional Reactive Programming (FRP)
Name:		ocaml-react
Version:	1.2.1
Release:	1
License:	BSD
Group:		Development/OCaml
Url:		http://erratique.ch/software/react
Source0:	http://erratique.ch/software/react/releases/react-%{version}.tbz
BuildRequires:	ocaml
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	ocaml-topkg
BuildRequires:	ocaml-findlib-devel

%description
React is an OCaml module for functional reactive programming (FRP).
It provides support to program with time varying values : applicative
events and signals. React doesn't define any primitive event or signal,
this lets the client chooses the concrete timeline.

React is made of a single, independent, module and distributed under
the new BSD license.

Given an absolute notion of time Rtime helps you to manage a timeline
and provides time stamp events, delayed events and delayed signals.

%files
%doc README.md CHANGES.md
%dir %{_libdir}/ocaml/react
%{_libdir}/ocaml/react/META
%{_libdir}/ocaml/react/react.cmi
%{_libdir}/ocaml/react/react.cma
%{_libdir}/ocaml/react/react.cmxs

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{version}-%{release}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.


%files devel
%doc doc
%{_libdir}/ocaml/react/react.cmx
%{_libdir}/ocaml/react/react.cmxa
%{_libdir}/ocaml/react/react.a
%{_libdir}/ocaml/react/react.mli

#----------------------------------------------------------------------------

%prep
%setup -q -n react-%{version}

%build
ocaml pkg/pkg.ml build

%install
mkdir -p %{buildroot}/%{_libdir}/ocaml/react
cp _build/src/react.{cm{i,a,x,xa,xs},a,mli} %{buildroot}/%{_libdir}/ocaml/react
cp _build/pkg/META %{buildroot}/%{_libdir}/ocaml/react

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15006 |21mr|ocaml-result-1.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global libname result

Name:		ocaml-result
Version:	1.5
Release:	4
Summary:	Compat result type
Group:		Development/Other
License:	BSD
URL:		https://github.com/janestreet/result/
Source0:	%{URL}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-dune >= 1.0

%description
Projects that want to use the new result type defined in
OCaml >= 4.03 while staying compatible with older versions
of OCaml should use the Result module defined in this library.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{libname}/
%{_libdir}/ocaml/%{libname}/%{libname}.cma
%{_libdir}/ocaml/%{libname}/%{libname}.cmi
%{_libdir}/ocaml/%{libname}/%{libname}.cmxs

#-----------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature
files for developing applications that use %{name}.

%files devel
%license LICENSE.md
%{_libdir}/ocaml/%{libname}/%{libname}.a
%{_libdir}/ocaml/%{libname}/%{libname}.cmxa
%{_libdir}/ocaml/%{libname}/%{libname}.cmx
# There's no .mli file, so I believe we should distribute this.
%{_libdir}/ocaml/%{libname}/%{libname}.ml
%{_libdir}/ocaml/%{libname}/%{libname}.cmt
%{_libdir}/ocaml/%{libname}/META
%{_libdir}/ocaml/%{libname}/dune-package
%{_libdir}/ocaml/%{libname}/opam

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{libname}-%{version}

%build
dune build %{?_smp_mflags}

%install
dune install --destdir=%{buildroot}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

%check
dune runtest



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15007 |21mr|ocaml-seq-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ocaml-seq
Version:	0.2.2
Release:	1
Summary:	Compatibility package for OCaml's standard iterator type
License:	LGPLv2+ with exceptions
Group:		Development/OCaml
URL:		https://github.com/c-cube/seq
Source0:	https://github.com/c-cube/seq/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	ocaml
BuildRequires:	ocaml-dune

%description
Compatibility package for OCaml's standard iterator type starting from 4.07.

%files
%doc README.md
%license LICENSE
%{_libdir}/ocaml/seq
%exclude %{_libdir}/ocaml/seq/*.a
%exclude %{_libdir}/ocaml/seq/*.cmxa
%exclude %{_libdir}/ocaml/seq/*.cmx
%exclude %{_libdir}/ocaml/seq/*.mli
%exclude %{_libdir}/ocaml/seq/META

#-------------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%license LICENSE
%{_libdir}/ocaml/seq/*.a
%{_libdir}/ocaml/seq/*.cmxa
%{_libdir}/ocaml/seq/*.cmx
%{_libdir}/ocaml/seq/*.mli
%{_libdir}/ocaml/seq/META

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n seq-%{version}

%build
make %{?_smp_mflags} build

%install
mkdir -p %{buildroot}%{_libdir}/ocaml/seq/
cp -aLr _build/install/default/lib/seq/* %{buildroot}%{_libdir}/ocaml/seq/


# Don't ship the .ml file.
rm %{buildroot}%{_libdir}/ocaml/seq/seq.ml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15008 |21mr|ocaml-sexplib0-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname sexplib0

Name:		ocaml-%{srcname}
Version:	0.15.0
Release:	1
Summary:	Definition of S-expressions and some base converters
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/janestreet/%{srcname}
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.04.2
BuildRequires:	ocaml-dune >= 2.0.0
BuildRequires:	ocaml-findlib

%description
This package contains a library with the definition of S-expressions and
some base converters.

%files
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs

#---------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/*.ml
%{_libdir}/ocaml/%{srcname}/*.mli

#---------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags}

# TODO: Once odoc is available, BR it and run this to generate documentation:
# dune build @doc

%install
dune install --destdir=%{buildroot}

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
chmod a+x %{buildroot}%{_libdir}/ocaml/%{srcname}/%{srcname}.cmxs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15009 |21mr|ocaml-stdio-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Documentation adds a circular dependency, so by
# default we build without.
%bcond_with doc

%global srcname stdio

Name:		ocaml-%{srcname}
Version:	0.15.0
Release:	1
Summary:	Jane Street Standard I/O library for OCaml
Group:		Development/OCaml
License:	MIT
URL:		https://github.com/janestreet/%{srcname}
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.04.2
BuildRequires:	ocaml-base-devel >= 0.15
BuildRequires:	ocaml-dune-devel >= 2.0.0
%if %{with doc}
BuildRequires:	ocaml-odoc
%endif

%description
Stdio provides input/output functions for OCaml.  It re-exports the
buffered channels of the stdlib distributed with OCaml but with some
improvements.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/*.cma
%{_libdir}/ocaml/%{srcname}/*.cmi
%{_libdir}/ocaml/%{srcname}/*.cmxs


#-----------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-base-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/dune-package
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/*.a
%{_libdir}/ocaml/%{srcname}/*.cmx
%{_libdir}/ocaml/%{srcname}/*.cmxa
%{_libdir}/ocaml/%{srcname}/*.cmt
%{_libdir}/ocaml/%{srcname}/*.cmti
%{_libdir}/ocaml/%{srcname}/*.mli

#-----------------------------------------------------------------

%if %{with doc}
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc _build/default/_doc/_html/
%doc _build/default/_doc/_mlds/
%doc _build/default/_doc/_odoc/
%license LICENSE.md
%endif

#-----------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
dune build %{?_smp_mflags}
%if %{with doc}
dune build %{?_smp_mflags} @doc
%endif

%install
dune install --destdir=%{buildroot}

%if %{with doc}
# We do not want the dune markers
find _build/default/_doc/_html -name .dune-keep -delete
%endif

# We do not want the ml files
find %{buildroot}%{_libdir}/ocaml -name \*.ml -delete

# We install the documentation with the doc macro
rm -fr %{buildroot}%{_prefix}/doc

# Add missing executable bits
find %{buildroot}%{_libdir}/ocaml -name \*.cmxs -exec chmod a+x {} \+

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15010 |21mr|ocaml-topkg-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# BOOTSTRAP NOTE: currently we do not build the optional topkg-care part.
# It has dependencies which do not yet exist in Fedora, and which themselves
# depend on the main part of this package.  Once the dependencies have been
# added to Fedora, we will build topkg-care in non-bootstrap builds.

%global srcname topkg

Name:		ocaml-%{srcname}
Version:	1.0.5
Release:	1
Summary:	The transitory OCaml software packager
Group:		Development/OCaml
License:	ISC
URL:		https://erratique.ch/software/topkg/
Source0:	https://github.com/dbuenzli/topkg/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	ocaml >= 4.03.0
BuildRequires:	ocaml-findlib >= 1.6.1
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	ocaml-result-devel

%description
Topkg is a packager for distributing OCaml software.  It provides an
API to describe the files a package installs in a given build
configuration and to specify information about the package's
distribution, creation and publication procedures.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%{_bindir}/%{srcname}
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmxs

#------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}
Requires:	ocaml-result-devel

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/%{srcname}*.mli

#------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc html/*

#------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

# This package can replace "watermarks" in software that it builds.  However,
# we are building from scratch, rather than using topkg to build itself, so we
# have to do the job manually.
for fil in $(find . -type f); do
  sed -e 's,%%%%NAME%%%%,%{srcname},' \
      -e 's,%%%%PKG_DOC%%%%,%{url}doc/,' \
      -e 's,%%%%PKG_HOMEPAGE%%%%,%{url},' \
      -e 's,%%%%VERSION%%%%,v%{version},' \
      -e 's,%%%%VERSION_NUM%%%%,%{version},' \
      -i.orig $fil
  touch -r $fil.orig $fil
  rm $fil.orig
done

%build
# Build the library and the tests
ocaml pkg/pkg.ml build --pkg-name topkg --tests true

# Build the command line tool
ocamlbuild topkg.native

# Build the documentation.  It is meant to be built with odoc, but odoc
# transitively depends on this package, so we do it manually for bootstrap
# builds.  Once a non-bootstrap build is possible, use odoc instead.
mkdir html
ocamldoc -html -d html -I _build/src _build/src/*.{mli,ml}

%install
# Install the library
mkdir -p %{buildroot}%{_libdir}/ocaml/topkg
cp -p _build/topkg.opam %{buildroot}%{_libdir}/ocaml/topkg/opam
cp -p _build/pkg/META %{buildroot}%{_libdir}/ocaml/topkg/META
cp -a _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} \
  %{buildroot}%{_libdir}/ocaml/topkg

# Install the command line tool
mkdir -p %{buildroot}%{_bindir}
cp -p _build/src/topkg.native %{buildroot}%{_bindir}/topkg

%check
ocaml pkg/pkg.ml test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15011 |21mr|ocaml-uuidm-0.9.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname uuidm

Name:		ocaml-%{srcname}
Version:	0.9.7
Release:	1
Summary:	Universally unique identifiers (UUIDs) for OCaml
Group:		Development/OCaml
License:	ISC
URL:		https://erratique.ch/software/uuidm
Source0:	https://github.com/dbuenzli/uuidm/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildRequires:	ocaml >= 4.03.0
BuildRequires:	ocaml-cmdliner-devel
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	ocaml-topkg-devel

%description
Uuidm is an OCaml module implementing 128 bit universally unique
identifiers, versions 3, 5 (named based with MD5, SHA-1 hashing) and 4
(random based); see RFC 4122: http://tools.ietf.org/html/rfc4122.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs

#------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc html/*
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/%{srcname}*.mli

#------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

# The META file mistakenly uses the wrong version tag
sed -i 's/VERSION/VERSION_NUM/' pkg/META

# Topkg does watermark replacements only if run inside a git checkout.  Github
# tarballs do not come with a .git directory.  Therefore, we do the watermark
# replacement manually.
for fil in $(find . -type f); do
  sed -e 's,%%%%NAME%%%%,%{srcname},' \
      -e 's,%%%%PKG_HOMEPAGE%%%%,%{url},' \
      -e 's,%%%%VERSION%%%%,v%{version},' \
      -e 's,%%%%VERSION_NUM%%%%,%{version},' \
      -i.orig $fil
  touch -r $fil.orig $fil
  rm $fil.orig
done

%build
# Build the library and the tests
ocaml pkg/pkg.ml build --tests true --with-cmdliner true

# Build the documentation
mkdir html
ocamldoc -html -d html -I _build/src _build/src/uuidm.mli

%install
# Install the library
mkdir -p %{buildroot}%{_libdir}/ocaml/uuidm
cp -p _build/{opam,pkg/META} %{buildroot}%{_libdir}/ocaml/uuidm
cp -a _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} \
  %{buildroot}%{_libdir}/ocaml/uuidm

%check
ocaml pkg/pkg.ml test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15012 |21mr|ocaml-uutf-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname uutf

Name:		ocaml-%{srcname}
Version:	1.0.2
Release:	1
Summary:	Non-blocking streaming Unicode codec for OCaml
Group:		Development/OCaml
License:	ISC
URL:		https://erratique.ch/software/uutf
Source0:	https://github.com/dbuenzli/uutf/archive/v%{version}/%{srcname}-%{version}.tar.gz
# The uchar package is a forward compatibility package for OCaml versions prior
# to 4.03.  We have a later OCaml in Fedora; uchar is in the standard library.
# Therefore, remove references to the compatibility package.
Patch0:		%{name}-uchar.patch

BuildRequires:	ocaml >= 4.01.0
BuildRequires:	ocaml-cmdliner-devel >= 0.9.6
BuildRequires:	ocaml-findlib
BuildRequires:	ocaml-ocamlbuild
BuildRequires:	ocaml-topkg-devel

%description
Uutf is a non-blocking streaming codec to decode and encode the UTF-8,
UTF-16, UTF-16LE and UTF-16BE encoding schemes.  It can efficiently work
character by character without blocking on I/O.  Decoders perform
character position tracking and support newline normalization.

Functions are also provided to fold over the characters of UTF-encoded
OCaml string values and to directly encode characters in OCaml Buffer.t
values.

%files
%doc CHANGES.md README.md
%license LICENSE.md
%dir %{_libdir}/ocaml/%{srcname}/
%{_libdir}/ocaml/%{srcname}/META
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cma
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmi
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxs

#----------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/OCaml
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains libraries and signature files for
developing applications that use %{name}.

%files devel
%doc html/*
%{_libdir}/ocaml/%{srcname}/opam
%{_libdir}/ocaml/%{srcname}/%{srcname}*.a
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmx
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmxa
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmt
%{_libdir}/ocaml/%{srcname}/%{srcname}*.cmti
%{_libdir}/ocaml/%{srcname}/%{srcname}*.mli

#----------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

# Topkg does watermark replacements only if run inside a git checkout.  Github
# tarballs do not come with a .git directory.  Therefore, we do the watermark
# replacement manually.
for fil in $(find . -type f); do
  sed -e 's,%%%%NAME%%%%,%{srcname},' \
      -e 's,%%%%PKG_HOMEPAGE%%%%,%{url},' \
      -e 's,%%%%VERSION%%%%,v%{version},' \
      -e 's,%%%%VERSION_NUM%%%%,%{version},' \
      -i.orig $fil
  touch -r $fil.orig $fil
  rm $fil.orig
done

%build
# Build the library and the tests
ocaml pkg/pkg.ml build --tests true --with-cmdliner true

# Build the documentation
mkdir html
ocamldoc -html -d html -I _build/src _build/src/uutf.mli

%install
# Install the library
mkdir -p %{buildroot}%{_libdir}/ocaml/uutf
cp -p _build/{opam,pkg/META} %{buildroot}%{_libdir}/ocaml/uutf
cp -a _build/src/*.{a,cma,cmi,cmt,cmti,cmx,cmxa,cmxs,mli} \
  %{buildroot}%{_libdir}/ocaml/uutf

%check
ocaml pkg/pkg.ml test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15013 |21mr|ocl-icd-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname opencl %{major}
%define devname %mklibname opencl -d
%define icddevname %mklibname ocl-icd -d

Summary:	OpenCL ICL Loader
Name:		ocl-icd
Version:	2.3.1
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://github.com/OCL-dev/ocl-icd
# make sure to update number after download.php or you will get incorrect file
Source0:	https://github.com/OCL-dev/ocl-icd/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		fix-ocl-icd-gcc10.patch
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	docbook-dtds
BuildRequires:	opencl-headers
BuildRequires:	ruby
BuildRequires:	rubygems-devel
BuildRequires:	xmlto

%description
OpenCL is a royalty-free standard for cross-platform, parallel programming
of modern processors found in personal computers, servers and
handheld/embedded devices.

This package provides an Installable Client Driver loader (ICD Loader).
The provided libOpenCL library is able to load any free or non-free installed
ICD (driver backend).

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	OpenCL ICL Loader
Group:		System/Libraries

%description -n %{libname}
OpenCL is a royalty-free standard for cross-platform, parallel programming
of modern processors found in personal computers, servers and
handheld/embedded devices.

This package provides an Installable Client Driver loader (ICD Loader).
The provided libOpenCL library is able to load any free or non-free installed
ICD (driver backend).

%files -n %{libname}
%doc README
%{_libdir}/libOpenCL.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	OpenCL development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	opencl-headers
Provides:	opencl-devel = %{EVRD}

%description -n %{devname}
OpenCL is a royalty-free standard for cross-platform, parallel programming
of modern processors found in personal computers, servers and
handheld/embedded devices.

This package provides the files needed to compile software that uses
OpenCL.

%files -n %{devname}
%doc README NEWS COPYING
%{_libdir}/libOpenCL.so
%{_libdir}/pkgconfig/OpenCL.pc
%{_mandir}/man7/libOpenCL.7*
%{_mandir}/man7/libOpenCL.so.7*

#----------------------------------------------------------------------------

%package -n %{icddevname}
Summary:	ocl-icd development files
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	ocl-icd-devel = %{EVRD}

%description -n %{icddevname}
This package provides the files needed to build OpenCL client drivers that
use ocl-icd for ICL functionality.

%files -n %{icddevname}
%doc README NEWS COPYING
%doc instdocs/*
%{_includedir}/ocl_icd.h
%{_libdir}/pkgconfig/ocl-icd.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./bootstrap
%configure
%make

%install
%makeinstall_std

rm -rf instdocs
mv %{buildroot}%{_docdir}/%{name} instdocs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15014 |21mr|oclock-1.0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Round X clock
Name:		oclock
Version:	1.0.4
Release:	3
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	libxkbfile-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)

%description
Oclock simply displays the current time on an analog display.

%files
%{_bindir}/oclock
%{_datadir}/X11/app-defaults/Clock-color
%{_mandir}/man1/oclock.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15015 |21mr|ocs-url-3.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An install helper program for desktop stuff
Name:		ocs-url
Version:	3.0.1
Release:	3
Group:		Development/Other
License:	GPLv3+
URL:		https://github.com/ocs-url/ocs-url
Source0:	%{name}-release-%{version}.tar.gz
# https://github.com/akiraohgaki/qtlib
# got from scripts/import.sh script and xz archived.
# this is a build dep not included in source
Source1:	qtlib.tar.xz
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Network)
Requires:	qt5-qtquickcontrols-qml
Provides:	xdgurl = %{EVRD}
Obsoletes:	xdgurl < 3.0.0
%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

%description
An install helper program for desktop stuff.

%prep
%setup -qn %{name}-release-%{version}
tar -xvf %{SOURCE1} -C lib/

%build
%qmake_qt5 \
    PREFIX=%{_prefix}
%make

%install
%makeinstall_qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15016 |21mr|oddjob-0.34.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A D-Bus service which runs odd jobs on behalf of client applications
Name:		oddjob
Version:	0.34.7
Release:	1
License:	BSD
Group:		System/Base
Url:		http://www.fedorahosted.org/oddjob
Source0:	http://fedorahosted.org/released/oddjob/%{name}-%{version}.tar.gz
BuildRequires:	dbus-x11
BuildRequires:	docbook-dtd45-xml
BuildRequires:	xmlto
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
Requires(post,preun):	systemd

%description
oddjob is a D-Bus service which performs particular tasks for clients which
connect to it and issue requests using the system-wide message bus.

%files
%doc *.dtd COPYING NEWS QUICKSTART doc/oddjob.html src/reload
%doc sample-install-root/sample
%{_unitdir}/oddjobd.service
%{_bindir}/oddjob_request
%{_sbindir}/oddjobd
%config(noreplace) %{_sysconfdir}/dbus-*/system.d/oddjob.conf
%config(noreplace) %{_sysconfdir}/oddjobd.conf
%dir %{_sysconfdir}/oddjobd.conf.d
%config(noreplace) %{_sysconfdir}/oddjobd.conf.d/oddjobd-introspection.conf
%dir %{_sysconfdir}/%{name}
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/sanity.sh
%{_mandir}/man1/oddjob_request.1*
%{_mandir}/man5/oddjob.conf.5*
%{_mandir}/man5/oddjobd.conf.5*
%{_mandir}/man5/oddjobd-introspection.conf.5*
%{_mandir}/man8/oddjobd.8*

%post
%systemd_post oddjobd.service

%preun
%systemd_preun oddjobd.service


#----------------------------------------------------------------------------

%package mkhomedir
Summary:	An oddjob helper which creates and populates home directories
Group:		System/Base
Requires:	%{name} = %{EVRD}

%description mkhomedir
This package contains the oddjob helper which can be used by the
pam_oddjob_mkhomedir module to create a home directory for a user
at login-time.

%files mkhomedir
%doc src/mkhomedirfor src/mkmyhomedir
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/mkhomedir
/%{_lib}/security/pam_oddjob_mkhomedir.so
%{_mandir}/man5/oddjob-mkhomedir.conf.5*
%{_mandir}/man5/oddjobd-mkhomedir.conf.5*
%{_mandir}/man8/pam_oddjob_mkhomedir.8*
%config(noreplace) %{_sysconfdir}/dbus-*/system.d/oddjob-mkhomedir.conf
%config(noreplace) %{_sysconfdir}/oddjobd.conf.d/oddjobd-mkhomedir.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--enable-pie \
	--enable-now \
	--with-selinux-acls \
	--with-selinux-labels \
	--without-python \
	--enable-xml-docs \
	--enable-compat-dtd \
	--disable-dependency-tracking \
	--enable-systemd \
	--disable-sysvinit
%make

%install
%makeinstall_std

if ! test -d %{buildroot}/%{_lib}/security ; then
	mkdir -p %{buildroot}/%{_lib}/security
	mv %{buildroot}%{_libdir}/security/*.so %{buildroot}/%{_lib}/security/
fi

# Go ahead and build the sample layout.
mkdir -p sample-install-root/sample/{%{_sysconfdir}/{dbus-1/system.d,%{name}d.conf.d},%{_libdir}/%{name}}
install -m644 sample/oddjobd-sample.conf sample-install-root/sample/%{_sysconfdir}/%{name}d.conf.d/
install -m644 sample/oddjob-sample.conf sample-install-root/sample/%{_sysconfdir}/dbus-1/system.d/
install -m755 sample/oddjob-sample.sh sample-install-root/sample/%{_libdir}/%{name}/

# Make sure we don't needlessly make these docs executable.
chmod -x src/reload src/mkhomedirfor src/mkmyhomedir

# Make sure the datestamps match in multilib pairs.
touch -r src/oddjob-mkhomedir.conf.in %{buildroot}%{_sysconfdir}/oddjobd.conf.d/oddjobd-mkhomedir.conf
touch -r src/oddjob-mkhomedir.conf.in %{buildroot}%{_sysconfdir}/dbus-1/system.d/oddjob-mkhomedir.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15017 |21mr|oddjob-gpupdate-0.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		oddjob-gpupdate
Version:	0.2.1
Release:	2
Summary:	An oddjob helper which applies group policy objects
Group:		System/Servers
License:	BSD
Url:		https://github.com/altlinux/oddjob-gpupdate.git
Source0:	https://github.com/altlinux/oddjob-gpupdate/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Requires:	oddjob >= 0.34.4

BuildRequires:	xmlto
BuildRequires:	dbus-devel
BuildRequires:	libxml2-devel
BuildRequires:	pam-devel
BuildRequires:	selinux-devel

%description
This package contains the oddjob helper which can be used by the
pam_oddjob_gpupdate module to applies group policy objects at login-time.

%files
%doc COPYING src/gpupdatefor src/gpupdateforme
%{_libexecdir}/oddjob/gpupdate
/%{_lib}/security/pam_oddjob_gpupdate.so
%{_mandir}/*/pam_oddjob_gpupdate.*
%{_mandir}/*/oddjob-gpupdate.*
%{_mandir}/*/oddjobd-gpupdate.*
%config(noreplace) %{_sysconfdir}/dbus-*/system.d/oddjob-gpupdate.conf
%config(noreplace) %{_sysconfdir}/oddjobd.conf.d/oddjobd-gpupdate.conf

%post
%systemd_post oddjobd.service

%preun
%systemd_preun oddjobd.service

#--------------------------------------------------------------------
%prep
%setup -q

%build
autoreconf -vfi
%configure \
    --disable-static \
    --enable-pie \
    --enable-now \
    --with-selinux-acls \
    --with-selinux-labels
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_lib}/security
mv %{buildroot}%{_libdir}/security/pam_oddjob_gpupdate.so \
%{buildroot}/%{_lib}/security/
rm %{buildroot}%{_libdir}/security/pam_oddjob_gpupdate.la


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15018 |21mr|odt2txt-0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple (and stupid) converter from OpenDocument Text to plain text
Name:		odt2txt
Version:	0.5
Release:	5
License:	GPLv2+
Group:		Text tools
Url:		https://github.com/dstosberg/odt2txt
# https://github.com/dstosberg/odt2txt/archive/v%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(zlib)

%description
odt2txt is a command-line tool which extracts the text out of OpenDocument
Texts produced by OpenOffice.org, StarOffice, KOffice and others.

odt2txt is ...
* small
* supports multiple output encodings
* adopts to your locale
* able to substitute common characters which the output charset does
  not contain with ascii look-a-likes
* written in C, has few dependencies
* portable (runs on Linux, *BSD, Solaris, HP-UX, Windows, Cygwin)
* licensed under GPL, version 2

%files
%doc GPL-2
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make \
	CFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}"

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15019 |21mr|oem-install-0.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Installator for OEM
Name:		oem-install
Version:	0.3
Release:	8
License:	GPLv3
Group:		System/Base
Source1:	%{name}.py
Source2:	%{name}
Source3:	%{name}.ui
Source4:	%{name}.po
Source5:	%{name}.service
Source7:	run-%{name}
Source8:	%{name}.css
Source9:	mos-%{name}.css
Source10:	oem-iso-rebuilder.sh
Source11:	%{name}.md
BuildRequires:	/usr/bin/msgfmt

Requires:	initial-setup
Requires:	python3-gi

%description
The utility to install and reinstall OS for Rosa OEM image
instead anaconda.

%files
%{_libexecdir}/%{name}
%{_libexecdir}/run-%{name}
%{_libexecdir}/%{name}.py
%{_libexecdir}/__pycache__

%lang(ru) %{_localedir}/ru/LC_MESSAGES/%{name}.mo

%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/*

%{_unitdir}/*.service
%{_presetdir}/*.preset

%package -n oem-iso-rebuilder
Summary:	script to rebuild Rosa iso images to use oem-install
Requires:	xorriso

%description -n oem-iso-rebuilder
script to rebuild Rosa iso images to use oem-install

%files -n oem-iso-rebuilder
%{_bindir}/oem-iso-rebuilder
%{_docdir}/%{name}/README-ru.md

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
mkdir -p %{buildroot}/%{_libexecdir}
mkdir -p %{buildroot}/%{_unitdir}
mkdir -p %{buildroot}/%{_presetdir}
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_docdir}/%{name}

install -m755 %{SOURCE1} %{buildroot}/%{_libexecdir}/
install -m755 %{SOURCE2} %{buildroot}/%{_libexecdir}/
install -m755 %{SOURCE7} %{buildroot}/%{_libexecdir}/

msgfmt -v %{SOURCE4} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{name}.mo
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/%{name}/

install -m644 %{SOURCE5} %{buildroot}%{_unitdir}/
echo "enable oem-install.service" > %{buildroot}/%{_presetdir}/80-oem-install.preset

install -m644 %{SOURCE8} %{buildroot}%{_datadir}/%{name}/
install -m644 %{SOURCE9} %{buildroot}%{_datadir}/%{name}/

install -m755 %{SOURCE10} %{buildroot}/%{_bindir}/oem-iso-rebuilder
install -m644 %{SOURCE11} %{buildroot}%{_docdir}/%{name}/README-ru.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15020 |21mr|ogdi-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO: separate gltpd to -server package, add init script (requires portmap)

%define major	4
%define libname %mklibname %{name} %{major}
%define develname %mklibname -d %{name}

Summary:	Open Geographic Datastore Interface
Name:		ogdi
Version:	4.1.0
Release:	1
License:	BSD
Group:		Sciences/Geosciences
URL:		http://ogdi.sourceforge.net/
Source0:	https://github.com/libogdi/ogdi/releases/download/ogdi_4_1_0/%{name}-%{version}.tar.gz
Patch0:		ogdi-4.0.0-dl.patch
Patch1:		ogdi-3.2.0.beta2-fix-str-fmt.patch
Patch2:		ogdi-4.0.0-sincos.patch
BuildRequires:	expat-devel
BuildRequires:	pkgconfig(proj)
BuildRequires:	tcl-devel
BuildRequires:	unixODBC-devel
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(libtirpc)

%description
OGDI is the Open Geographic Datastore Interface. OGDI is an
application programming interface (API) that uses a standardized
access methods to work in conjunction with GIS software packages (the
application) and various geospatial data products. OGDI uses a
client/server architecture to facilitate the dissemination of
geospatial data products over any TCP/IP network, and a
driver-oriented approach to facilitate access to several geospatial
data products/formats.

%files
%doc LICENSE NEWS ChangeLog README
%{_bindir}/gltpd
%{_bindir}/ogdi_*
%dir %{_libdir}/ogdi
%exclude %{_libdir}/%{name}/liblodbc.so
%exclude %{_libdir}/%{name}/libecs_tcl.so
%{_libdir}/%{name}/lib*.so

%package -n %{libname}
Summary:	Open Geographic Datastore Interface - library
License:	BSD style
Group:		Sciences/Geosciences

%description -n %{libname}
OGDI is the Open Geographic Datastore Interface. OGDI is an
application programming interface (API) that uses a standardized
access methods to work in conjunction with GIS software packages (the
application) and various geospatial data products. OGDI uses a
client/server architecture to facilitate the dissemination of
geospatial data products over any TCP/IP network, and a
driver-oriented approach to facilitate access to several geospatial
data products/formats.

This package contains just the library required by applications using the
Open Geographic Datastore Interface.

%files -n %{libname}
%{_libdir}/libogdi.so.%{major}*

%package -n %{develname}
Summary:	OGDI header files and documentation
Group:		Sciences/Geosciences
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{develname}
OGDI header files and developer's documentation.

%files -n %{develname}
%doc ogdi/examples/example1/example1.c
%doc ogdi/examples/example2/example2.c
%{_bindir}/%{name}-config
%{_bindir}/%{name}-config-%{cpuarch}
%{_libdir}/pkgconfig/%{name}.pc
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/libogdi.so

%package odbc
Summary:	ODBC driver for OGDI
Group:		Sciences/Geosciences
Requires:	%{name} = %{EVRD}

%description odbc
ODBC driver for OGDI.

%files odbc
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/ogdi/liblodbc.so

%package -n tcl-ogdi
Summary:	TCL wrapper for OGDI
Summary(pl):	Interfejs TCL do OGDI
Group:		Sciences/Geosciences
Requires:	%{name} = %{EVRD}

%description -n tcl-ogdi
TCL wrapper for OGDI.

%files -n tcl-ogdi
%defattr(644,root,root,755)
%attr(755,root,root) %{_libdir}/ogdi/libecs_tcl.so

%prep

%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p1

%build
autoreconf -fi

TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET
INST_LIB=%{_libdir}/;export INST_LIB
export CFG=debug # for -g

# do not compile with ssp. it will trigger internal bugs (to_fix_upstream)
OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//g'`
export CFLAGS="$OPT_FLAGS -fPIC -DPIC -DDONT_TD_VOID -DUSE_TERMIO"

%configure \
	--with-binconfigs \
	--with-expat \
	--with-proj \
	--with-zlib

# use the generated .mak file ...
cp -af config/linux.mak{,.old}
cp -af config/{L,l}inux.mak

# make doesn't survive a parallell build, so stop that...
make RPC_LINKLIB="-ltirpc -ldl"

make -C ogdi/tcl_interface \
	TCL_LINKLIB="-ltcl"

make -C contrib/gdal

make -C ogdi/attr_driver/odbc \
	ODBC_LINKLIB="-lodbc"

%install
# export env
TOPDIR=`pwd`; TARGET=Linux; export TOPDIR TARGET

%makeinstall \
	INST_INCLUDE=%{buildroot}%{_includedir}/%{name} \
	INST_LIB=%{buildroot}%{_libdir} \
	INST_BIN=%{buildroot}%{_bindir}

#plugin install
%makeinstall -C ogdi/tcl_interface \
	INST_LIB=%{buildroot}%{_libdir}
%makeinstall -C contrib/gdal \
	INST_LIB=%{buildroot}%{_libdir}
%makeinstall -C ogdi/attr_driver/odbc \
	INST_LIB=%{buildroot}%{_libdir}

# only lib*ogdi* is common library, the rest are dlopened drivers
#mv -f %{buildroot}%{_libdir}/ogdi/*ogdi*.so %{buildroot}%{_libdir}

# remove example binary
rm -rf %{buildroot}%{_bindir}/example?

# we have multilib ogdi-config
%if "%{_lib}" == "lib"
%define cpuarch 32
%else
%define cpuarch 64
%endif

# fix file(s) for multilib issue
touch -r ogdi-config.in ogdi-config

# install pkgconfig file and ogdi-config
mkdir -p %{buildroot}%{_libdir}/pkgconfig
install -p -m 644 ogdi.pc %{buildroot}%{_libdir}/pkgconfig/
install -p -m 755 ogdi-config %{buildroot}%{_bindir}/ogdi-config-%{cpuarch}
# ogdi-config wrapper for multiarch
cat > %{buildroot}%{_bindir}/%{name}-config <<EOF
#!/bin/bash

ARCH=\$(uname -m)
case \$ARCH in
x86_64 | ppc64 | ia64 | s390x | sparc64 | alpha | alphaev6 )
ogdi-config-64 \${*}
;;
*)
ogdi-config-32 \${*}
;;
esac
EOF
chmod 755 %{buildroot}%{_bindir}/%{name}-config
touch -r ogdi-config.in %{buildroot}%{_bindir}/%{name}-config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15021 |21mr|ogmtools-1.5-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OGG media stream tools
Name:		ogmtools
Version:	1.5
Epoch:		1
Release:	15
License:	GPLv2+
Group:		Video
Url:		http://www.bunkus.org/videotools/ogmtools/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ogmtools-1.5-optflags.patch
BuildRequires:	pkgconfig(dvdread)
BuildRequires:	pkgconfig(vorbis)

%description
These tools allow information about (ogminfo) or extraction
from (ogmdemux) or creation of (ogmmerge) OGG media streams.
Note that OGM is used for "OGG media streams".

%files
%doc README ChangeLog
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
export CXXFLAGS="-std=c++14 %{optflags}"
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15022 |21mr|ohc-0.6.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ohc
Version:	0.6.1
Release:	7
Summary:	Java large off heap cache
License:	ASL 2.0
URL:		http://caffinitas.org/
Source0:	https://github.com/snazy/%{name}/archive/%{version}.tar.gz

BuildRequires:	maven-local
BuildRequires:	mvn(com.google.guava:guava)
BuildRequires:	mvn(commons-cli:commons-cli)
BuildRequires:	mvn(com.codahale.metrics:metrics-core)
BuildRequires:	mvn(net.java.dev.jna:jna)
BuildRequires:	mvn(net.jpountz.lz4:lz4)
BuildRequires:	mvn(org.apache.commons:commons-math3)
BuildRequires:	mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:	mvn(org.apache.logging.log4j:log4j-api)
BuildRequires:	mvn(org.apache.logging.log4j:log4j-core)
BuildRequires:	mvn(org.apache.logging.log4j:log4j-slf4j-impl)
BuildRequires:	mvn(org.openjdk.jmh:jmh-core)
BuildRequires:	mvn(org.openjdk.jmh:jmh-generator-annprocess)
BuildRequires:	mvn(org.slf4j:slf4j-api)
BuildRequires:	mvn(org.testng:testng)
BuildRequires:	mvn(org.xerial.snappy:snappy-java)
BuildRequires:	mvn(org.codehaus.mojo:exec-maven-plugin)
# missing test dependency
#BuildRequires:	mvn(org.hamcrest:java-hamcrest)

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
OHC - Off-Heap Concurrent hash map intended to store GBs of serialized data.

%package benchmark
Summary:	OHC benchmark executable
Requires:	time
# Explicit requires for javapackages-tools since ohc-benchmark script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description benchmark
OHC benchmark executable.

%package core-j8
Summary:	OHC core - Java8 optimization

%description core-j8
OHC core - Java8 optimization.

%package jmh
Summary:	OHC core - micro benchmarks

%description jmh
Off-Heap concurrent hash map intended to store GBs of serialized data.

%package parent
Summary:	OHC Parent POM

%description parent
OHC Parent POM.

%package javadoc
Summary:	Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

%pom_remove_plugin -r :cobertura-maven-plugin
%pom_remove_plugin -r :maven-assembly-plugin
%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :maven-source-plugin

%pom_xpath_set "pom:addClasspath" false ohc-benchmark
%pom_xpath_remove "pom:classpathPrefix" ohc-benchmark

# there is a missing test dependency since 0.6.1 version
%pom_remove_dep -r org.hamcrest:java-hamcrest
# remove file requiring the missing dependency
rm ohc-core/src/test/java/org/caffinitas/ohc/linked/FrequencySketchTest.java

# location of first binary to install
%global bin1loc %{name}-benchmark/src/main/sh/batch-bench.sh
# javadir for sed
%global myjdir \\/usr\\/share\\/java\\/
# jars for the classpath
%global classpath %{myjdir}ohc\\/ohc-core.jar:%{myjdir}ohc\\/ohc-benchmark.jar:%{myjdir}ohc\\/ohc-core-j8.jar:%{myjdir}metrics\\/metrics-core.jar:%{myjdir}metrics\\/metrics-graphite.jar:%{myjdir}metrics\\/metrics-ganglia.jar:%{myjdir}slf4j\\/slf4j-jdk14.jar:%{myjdir}slf4j\\/jdk14.jar:%{myjdir}slf4j\\/slf4j-nop.jar:%{myjdir}slf4j\\/slf4j-simple.jar:%{myjdir}slf4j\\/nop.jar:%{myjdir}slf4j\\/slf4j-api.jar:%{myjdir}slf4j\\/api.jar:%{myjdir}slf4j\\/simple.jar:%{myjdir}guava.jar:%{myjdir}jna.jar:%{myjdir}commons-cli.jar:%{myjdir}commons-math3.jar:%{myjdir}log4j.jar

# prepare scripts that will be installed
sed -i 's/script_dir=.*//g' %{bin1loc}
sed -i 's/base_dir=.*//g' %{bin1loc}
sed -i 's/version=.*//g' %{bin1loc}
sed -i 's/jar=.*$/cp=%{classpath}/g' %{bin1loc}
sed -i '0,/if \[ ! -f.*$/s///' %{bin1loc}
sed -i '0,/echo.*$/s///' %{bin1loc}
sed -i '0,/exit.*$/s///' %{bin1loc}
sed -i '0,/fi.*$/s///' %{bin1loc}
sed -i 's/java -jar $jar/java -cp $cp org.caffinitas.%{name}.benchmark.BenchmarkOHC /' %{bin1loc}
sed -i 's/echo "Cannot exe.*"/echo "Cannot execute ohc-benchmark jar file"/g' %{bin1loc}
sed -i 's/$jvm_arg -jar $jar "/$jvm_arg -cp $cp org.caffinitas.%{name}.benchmark.BenchmarkOHC "/g' %{bin1loc}

%build
%mvn_build -s -f

%install
%mvn_install
%jpackage_script org.caffinitas.%{name}.benchmark.BenchmarkOHC "" "" %{name}:metrics-core:slf4j:guava:jna:commons-cli:commons-math3:log4j %{name}-benchmark true
cp -p %{name}-benchmark/src/main/sh/batch-bench.sh %{buildroot}%{_bindir}/%{name}-batch-benchmark
cp -p %{name}-benchmark/src/main/sh/consolidate-output.sh %{buildroot}%{_bindir}/%{name}-consolidate-output

%files -f .mfiles-%{name}-core
%doc CHANGES.txt README.rst
%license %{name}-core/LICENSE.txt

%files benchmark -f .mfiles-%{name}-benchmark
%doc %{name}-benchmark/NOTES.txt
%license %{name}-benchmark/LICENSE.txt
%attr(755, root, root) %{_bindir}/%{name}-benchmark
%attr(755, root, root) %{_bindir}/%{name}-batch-benchmark
%attr(755, root, root) %{_bindir}/%{name}-consolidate-output

%files core-j8 -f .mfiles-%{name}-core-j8
%license %{name}-core-j8/LICENSE.txt

%files jmh -f .mfiles-%{name}-jmh
%license %{name}-jmh/LICENSE.txt

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15023 |21mr|oidn-1.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		1
%define libname		%mklibname openimagedenoise %{major}
%define develname	%mklibname openimagedenoise -d

Name:		oidn
Version:	1.4.3
Release:	1
Summary:	Library of denoising filters for images rendered with ray tracing
Group:		System/Libraries
License:	ASL 2.0
URL:		https://openimagedenoise.github.io/
Source0:	https://github.com/OpenImageDenoise/%{name}/releases/download/v%{version}/%{name}-%{version}.src.tar.gz

ExclusiveArch:	%{x86_64}

BuildRequires:	cmake
BuildRequires:	ispc
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(tbb)

%description
An open source library of high-performance, high-quality denoising filters for
images rendered with ray tracing.

%files
%license LICENSE.txt
%doc CHANGELOG.md
%{_bindir}/oidnDenoise
%{_bindir}/oidnTest
%{_bindir}/oidnBenchmark

#------------------------------------------------

%package -n	%{libname}
Summary:	Library of denoising filters for images rendered with ray tracing
Group:		System/Libraries

%description -n	%{libname}
An open source library of high-performance, high-quality denoising filters for
images rendered with ray tracing.

%files -n %{libname}
%{_libdir}/libOpenImageDenoise.so.%{major}
%{_libdir}/libOpenImageDenoise.so.%{version}

#------------------------------------------------

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{name} = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	openimagedenoise-devel = %{version}-%{release}

%description -n	%{develname}
This package contains libraries and header files for developing applications
that use %{name}.


%files -n %{develname}
%{_includedir}/OpenImageDenoise/
%{_libdir}/libOpenImageDenoise.so
%{_libdir}/cmake/OpenImageDenoise-%{version}/

#------------------------------------------------

%package	docs
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description	docs
This package contains documentation for %{name}.

%files docs
%doc README.md readme.pdf

#------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DCMAKE_SKIP_RPATH:BOOL=ON
%make_build

%install
%make_install -C build

# Remove duplicated documentation
rm -rf %{buildroot}%{_docdir}/OpenImageDenoise

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15024 |21mr|okhttp-3.10.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without okcurl

Name:           okhttp
Version:        3.10.0
Release:        5
Summary:        An HTTP+HTTP/2 client for Java applications

License:        ASL 2.0
URL:            http://square.github.io/%{name}/
Source0:        https://github.com/square/%{name}/archive/parent-%{version}.tar.gz

# Patch out platform support for platforms not available in Fedora
Patch0:         okhttp-rm-android-conscrypt.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(com.squareup.okio:okio) >= 1.14.0
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.maven.surefire:surefire-junit47)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
%if %{with okcurl}
BuildRequires:  mvn(com.google.guava:guava:16.0)
BuildRequires:  mvn(io.airlift:airline)
BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15on)
%endif

Requires:  mvn(com.squareup.okio:okio) >= 1.14.0

# No longer able to build samples
Obsoletes: %{name}-samples < %{version}
Provides:  %{name}-samples = %{version}-%{release}
Obsoletes: %{name}-samples-guide < %{version}
Provides:  %{name}-samples-guide = %{version}-%{release}
Obsoletes: %{name}-samples-simple-client < %{version}
Provides:  %{name}-samples-simple-client = %{version}-%{release}

# Websocket modules were merged into main artifact
Obsoletes: %{name}-ws < %{version}
Provides:  %{name}-ws = %{version}-%{release}
Obsoletes: %{name}-ws-tests < %{version}
Provides:  %{name}-ws-tests = %{version}-%{release}


%description
An HTTP & HTTP/2 client for Android and Java applications.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%package parent
Summary:        Parent POM for OkHttp

%description parent
%{summary}.

%package apache
Summary:        OkHttp Apache HttpClient

%description apache
%{summary}.

%package urlconnection
Summary:        OkHttp URLConnection

%description urlconnection
%{summary}.

%if %{with okcurl}
%package okcurl
Summary:        A curl for the next-generation web

%description okcurl
OkCurl is an OkHttp-backed curl clone which
allows you to test OkHttp\'s HTTP engine
(including SPDY and HTTP/2) against web servers.
%endif

%package logging-interceptor
Summary:        OkHttp Logging Interceptor

%description logging-interceptor
%{summary}.

%package testing-support
Summary:        OkHttp test support classes

%description testing-support
%{summary}.


%prep
%setup -q -n %{name}-parent-%{version}

# Don't need animal sniffer for RPM build
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin
%pom_remove_dep :animal-sniffer-annotations okhttp-urlconnection
sed -i -e '/IgnoreJRERequirement/d' okhttp-urlconnection/src/main/java/okhttp3/internal/huc/DelegatingHttpsURLConnection.java

# templating-maven-plugin is not available in Fedora. Filter sources
# manually before build.
%pom_remove_plugin :templating-maven-plugin okhttp
sed 's|\${project.version}|%{version}|' okhttp/src/main/java-templates/okhttp3/internal/Version.java >okhttp/src/main/java/okhttp3/internal/Version.java

# Missing deps: com.google.caliper, moshi
%pom_disable_module mockwebserver
%pom_disable_module benchmarks
%pom_disable_module samples
%pom_disable_module okhttp-tests

%if %{without okcurl}
%pom_disable_module okcurl
%endif

# Unneeded plugins for RPM build
%pom_remove_plugin :maven-assembly-plugin okcurl
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-release-plugin

# Errorprone not available in Fedora
%pom_remove_dep org.codehaus.plexus:plexus-compiler-javac-errorprone
%pom_remove_dep com.google.errorprone:error_prone_core
sed -i -e '/javac-with-errorprone/d' pom.xml

# Unavailable plugin
%pom_remove_plugin org.skife.maven:really-executable-jar-maven-plugin okcurl
# Fix main class
%pom_add_plugin "org.apache.maven.plugins:maven-jar-plugin:2.4" okcurl "
<configuration>
  <archive>
    <manifest>
      <mainClass>okhttp3.curl.Main</mainClass>
    </manifest>
  </archive>
</configuration>"

# Remove support for android and conscrypt, not in Fedora
%patch0
%pom_disable_module okhttp-android-support
%pom_remove_dep com.google.android:android okhttp
%pom_remove_dep org.conscrypt:conscrypt-openjdk-uber okhttp

# For compatibility
%mvn_alias com.squareup.okhttp3:okhttp com.squareup.okhttp:okhttp com.squareup.okhttp3:okhttp-ws com.squareup.okhttp:okhttp-ws

%build
# We don't have all test deps (e.g. npn-boot)
%mvn_build -s --skip-tests -- -P !alpn-when-jdk8


%install
%mvn_install


%files -f .mfiles-%{name}
%doc CHANGELOG.md README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files parent -f .mfiles-parent
%license LICENSE.txt

%files apache -f .mfiles-okhttp-apache

%files urlconnection -f .mfiles-okhttp-urlconnection

%if %{with okcurl}
%files okcurl -f .mfiles-okcurl
%endif

%files logging-interceptor -f .mfiles-logging-interceptor

%files testing-support -f .mfiles-okhttp-testing-support



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15025 |21mr|oki4linux-2.1gst-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Drivers for Oki 4w, oki 400w and okipage 4w plus GDI winprinters
Name:		oki4linux
Version:	2.1gst
Release:	22
License:	GPL
Group:		System/Printing
URL:		http://www.linuxprinting.org/download/printing/
Source0:	http://www.linuxprinting.org/download/printing/oki4linux-2.1gst.tar.gz
Source1:	oki4daemon.service
Source2:	README.OKI-Winprinters
Patch0:		oki4linux-2.0-daemon-mdk-patch
Patch1:		oki4linux-2.1gst-LDFLAGS.diff
Requires(post): rpm-helper
Requires(preun): rpm-helper
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd

%description
A Linux / UNIX driver for the  okipage 4w, oki 400w and
okipage 4w plus GDI printers,

%prep

%setup -q -n %{name}
%patch0 -p1
%patch1 -p0

# Do some small corrections in the daemon script:
# - The daemon crashes with "setlogsock('unix');"
# - Correct the path for the driver
pushd src
mv oki4daemon oki4daemon.pre
sed "s/setlogsock('unix');/setlogsock('inet');/" oki4daemon.pre | sed "s:/usr/local/sbin/oki4drv:/usr/bin/oki4drv:" > oki4daemon
popd

cp %{SOURCE1} oki4daemon.service
cp %{SOURCE2} README.OKI-Winprinters

%build
pushd src
make clean
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"
popd

%install

install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man1

pushd src
# Program files
install -m0755 oki4drv %{buildroot}%{_bindir}
install -m0755 oki4daemon %{buildroot}%{_sbindir}
install -m0644 oki4drv.man %{buildroot}%{_mandir}/man1/oki4drv.1
popd

install -m0755 oki4daemon.service %{buildroot}%{_unitdir}/oki4daemon.service

%post
%systemd_post oki4daemon.service

%preun
%systemd_preun oki4daemon.service

%postun
%systemd_postun_with_restart oki4daemon.service

%files
%defattr(0644,root,root,0755)
%doc README.OKI-Winprinters COPYING ChangeLog README
%doc doc samples src/README.oki4daemon src/align.ps
%{_unitdir}/oki4daemon.service
%attr(0755,root,root) %{_sbindir}/oki4daemon
%attr(0755,root,root) %{_bindir}/oki4drv
%attr(0644,root,root) %{_mandir}/man1/oki4drv.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15026 |21mr|okio-1.14.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without benchmarks

Name:           okio
Version:        1.14.0
Release:        3
Summary:        Java I/O library
License:        ASL 2.0
URL:            http://square.github.io/%{name}/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/square/%{name}/archive/%{name}-parent-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%if %{with benchmarks}
BuildRequires:  mvn(org.openjdk.jmh:jmh-core)
BuildRequires:  mvn(org.openjdk.jmh:jmh-generator-annprocess)
%endif

%description
Okio is a new library that complements java.io and java.nio to make it
much easier to access, store, and process data.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
this package provides %{summary}.

%prep
%setup -q -n %{name}-%{name}-parent-%{version}

%if %{without benchmarks}
%pom_disable_module benchmarks
%endif

# Remove dependency on Animal Sniffer (not usable in Fedora)
%pom_remove_plugin :animal-sniffer-maven-plugin okio
%pom_remove_dep :animal-sniffer-annotations okio
sed -i /IgnoreJRERequirement/d okio/src/main/java/okio/{DeflaterSink,Okio}.java

# remove missing additional dependencies for the compiler plugin
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]//pom:compilerId'
%pom_xpath_remove 'pom:plugin[pom:artifactId="maven-compiler-plugin"]//pom:dependencies'

# Skip one test which fails on ARM due to poor JVM performance.
sed -i /writeWithTimeout/s/./@org.junit.Ignore/ okio/src/test/java/okio/SocketTimeoutTest.java

%build
# Tests require networking
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15027 |21mr|okteta-0.26.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A simple HEX editor for KDE
Name:		okteta
Version:	0.26.6
Release:	2
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
Source1:	okteta-0.26.6_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(shared-mime-info)

%description
Okteta is a simple editor for the raw data of files. This type of program
is also called hex editor or binary editor.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.okteta.desktop
%{_kde5_bindir}/okteta
%{_kde5_bindir}/struct2osd
%{_kde5_datadir}/config.kcfg/structureviewpreferences.kcfg
%{_kde5_datadir}/mime/packages/okteta.xml
%{_kde5_datadir}/okteta
%{_kde5_iconsdir}/*/*/apps/okteta.png
%{_appdatadir}/org.kde.okteta.appdata.xml
%{_kde5_libdir}/qt5/mkspecs/modules/qt_OktetaCore.pri
%{_kde5_libdir}/qt5/mkspecs/modules/qt_OktetaGui.pri
%{_qt5_plugindir}/kf5/parts/oktetapart.so
%{_kde5_datadir}/knsrcfiles/okteta-structures.knsrc
%{_kde5_datadir}/kservices5/oktetapart.desktop

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-okteta
Summary:	Qt5 Designer plugin for Okteta
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-okteta
Qt5 Designer plugin for Okteta.

%files -n qt5-designer-plugin-okteta
%{_qt5_plugindir}/designer/oktetawidgets.so

#----------------------------------------------------------------------------

%define kasten4controllers_major 0
%define libkasten4controllers %mklibname kasten4controllers %{kasten4controllers_major}

%package -n %{libkasten4controllers}
Summary:	Okteta shared library
Group:		System/Libraries

%description -n %{libkasten4controllers}
Okteta shared library.

%files -n %{libkasten4controllers}
%{_kde5_libdir}/libKasten4Controllers.so.%{kasten4controllers_major}
%{_kde5_libdir}/libKasten4Controllers.so.0.*

#----------------------------------------------------------------------------

%define kasten4core_major 0
%define libkasten4core %mklibname kasten4core %{kasten4core_major}

%package -n %{libkasten4core}
Summary:	Okteta shared library
Group:		System/Libraries

%description -n %{libkasten4core}
Okteta shared library.

%files -n %{libkasten4core}
%{_kde5_libdir}/libKasten4Core.so.%{kasten4core_major}
%{_kde5_libdir}/libKasten4Core.so.0.*

#----------------------------------------------------------------------------

%define kasten4gui_major 0
%define libkasten4gui %mklibname kasten4gui %{kasten4gui_major}

%package -n %{libkasten4gui}
Summary:	Okteta shared library
Group:		System/Libraries

%description -n %{libkasten4gui}
Okteta shared library.

%files -n %{libkasten4gui}
%{_kde5_libdir}/libKasten4Gui.so.%{kasten4gui_major}
%{_kde5_libdir}/libKasten4Gui.so.0.*

#----------------------------------------------------------------------------

%define kasten4okteta2controllers_major 0
%define libkasten4okteta2controllers %mklibname kasten4okteta2controllers %{kasten4okteta2controllers_major}

%package -n %{libkasten4okteta2controllers}
Summary:	Okteta shared library
Group:		System/Libraries

%description -n %{libkasten4okteta2controllers}
Okteta shared library.

%files -n %{libkasten4okteta2controllers}
%{_kde5_libdir}/libKasten4Okteta2Controllers.so.%{kasten4okteta2controllers_major}
%{_kde5_libdir}/libKasten4Okteta2Controllers.so.0.*

#----------------------------------------------------------------------------

%define kasten4okteta2core_major 0
%define libkasten4okteta2core %mklibname kasten4okteta2core %{kasten4okteta2core_major}

%package -n %{libkasten4okteta2core}
Summary:	Okteta shared library
Group:		System/Libraries

%description -n %{libkasten4okteta2core}
Okteta shared library.

%files -n %{libkasten4okteta2core}
%{_kde5_libdir}/libKasten4Okteta2Core.so.%{kasten4okteta2core_major}
%{_kde5_libdir}/libKasten4Okteta2Core.so.0.*

#----------------------------------------------------------------------------

%define kasten4okteta2gui_major 0
%define libkasten4okteta2gui %mklibname kasten4okteta2gui %{kasten4okteta2gui_major}

%package -n %{libkasten4okteta2gui}
Summary:	Okteta shared library
Group:		System/Libraries

%description -n %{libkasten4okteta2gui}
Okteta shared library.

%files -n %{libkasten4okteta2gui}
%{_kde5_libdir}/libKasten4Okteta2Gui.so.%{kasten4okteta2gui_major}
%{_kde5_libdir}/libKasten4Okteta2Gui.so.0.*

#----------------------------------------------------------------------------

%define okteta3core_major 0
%define libokteta3core %mklibname okteta3core %{okteta3core_major}

%package -n %{libokteta3core}
Summary:	Okteta shared library
Group:		System/Libraries

%description -n %{libokteta3core}
Okteta shared library.

%files -n %{libokteta3core}
%{_kde5_libdir}/libOkteta3Core.so.%{okteta3core_major}
%{_kde5_libdir}/libOkteta3Core.so.0.*

#----------------------------------------------------------------------------

%define okteta3gui_major 0
%define libokteta3gui %mklibname okteta3gui %{okteta3gui_major}

%package -n %{libokteta3gui}
Summary:	Okteta shared library
Group:		System/Libraries

%description -n %{libokteta3gui}
Okteta shared library.

%files -n %{libokteta3gui}
%{_kde5_libdir}/libOkteta3Gui.so.%{okteta3gui_major}
%{_kde5_libdir}/libOkteta3Gui.so.0.*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Okteta
Group:		Development/KDE and Qt
Requires:	%{libkasten4controllers} = %{EVRD}
Requires:	%{libkasten4core} = %{EVRD}
Requires:	%{libkasten4gui} = %{EVRD}
Requires:	%{libkasten4okteta2controllers} = %{EVRD}
Requires:	%{libkasten4okteta2core} = %{EVRD}
Requires:	%{libkasten4okteta2gui} = %{EVRD}
Requires:	%{libokteta3core} = %{EVRD}
Requires:	%{libokteta3gui} = %{EVRD}
Recommends:	qt5-designer-plugin-okteta

%description devel
This package includes the header files you will need to compile
applications that use Okteta libraries.

%files devel
%{_kde5_includedir}/*
%{_kde5_libdir}/cmake/KastenControllers
%{_kde5_libdir}/cmake/KastenCore
%{_kde5_libdir}/cmake/KastenGui
%{_kde5_libdir}/cmake/OktetaCore
%{_kde5_libdir}/cmake/OktetaGui
%{_kde5_libdir}/cmake/OktetaKastenControllers
%{_kde5_libdir}/cmake/OktetaKastenCore
%{_kde5_libdir}/cmake/OktetaKastenGui
%{_kde5_libdir}/libKasten4Controllers.so
%{_kde5_libdir}/libKasten4Core.so
%{_kde5_libdir}/libKasten4Gui.so
%{_kde5_libdir}/libKasten4Okteta2Controllers.so
%{_kde5_libdir}/libKasten4Okteta2Core.so
%{_kde5_libdir}/libKasten4Okteta2Gui.so
%{_kde5_libdir}/libOkteta3Core.so
%{_kde5_libdir}/libOkteta3Gui.so
%{_kde5_libdir}/pkgconfig/OktetaCore.pc
%{_kde5_libdir}/pkgconfig/OktetaGui.pc

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} oktetapart libkasten liboktetacore liboktetagui liboktetakasten %{name}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15028 |21mr|okular-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with mobile

Summary:	A universal document viewer for KDE
Name:		okular
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/graphics/okular/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		okular-desktop.patch
Patch1:		okular-categories.patch
Patch2:		fix.cmake.version.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	chmlib-devel
BuildRequires:	ebook-tools-devel
BuildRequires:	jpeg-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5js-devel
BuildRequires:	kf5kexiv2-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pty-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	qmobipocket-devel
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(libmarkdown)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
Requires:	%{name}-pdf = %{EVRD}
Requires:	%{name}-postscript = %{EVRD}
Recommends:	%{name}-chm = %{EVRD}
Recommends:	%{name}-comicbook = %{EVRD}
Recommends:	%{name}-djvu = %{EVRD}
Recommends:	%{name}-dvi = %{EVRD}
Recommends:	%{name}-epub = %{EVRD}
Recommends:	%{name}-fax = %{EVRD}
Recommends:	%{name}-fb = %{EVRD}
Recommends:	%{name}-kimgio = %{EVRD}
Recommends:	%{name}-mobipocket = %{EVRD}
Recommends:	%{name}-plucker = %{EVRD}
Recommends:	%{name}-tiff = %{EVRD}
Recommends:	%{name}-txt = %{EVRD}
Recommends:	%{name}-xps = %{EVRD}
Conflicts:	%{name}-ooo < 2:20.12.0
Obsoletes:	%{name}-ooo < 2:20.12.0
%if %{without mobile}
Obsoletes:	%{_lib}okular-qml < EVRD
%endif

%description
Okular is a universal document viewer for KDE.

Okular combines the excellent functionalities of KPDF with the versatility
of supporting different kind of documents, like PDF, Postscript, DjVu, CHM,
and others.

The document format handlers page has a chart describing in more detail
the supported formats and the features supported in each of them.

%files -f %{name}.lang
%doc TODO
%{_kde5_bindir}/okular
%{_kde5_applicationsdir}/org.kde.okular.desktop
%{_kde5_applicationsdir}/okularApplication_md.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_md.desktop
%{_kde5_datadir}/okular/
%{_kde5_datadir}/config.kcfg/okular.kcfg
%{_kde5_datadir}/config.kcfg/gssettings.kcfg
%{_kde5_datadir}/config.kcfg/okular_core.kcfg
%{_kde5_datadir}/kconf_update/okular.upd
%{_kde5_datadir}/qlogging-categories5/okular.categories
%{_kde5_iconsdir}/*/*/*/okular.*
%{_kde5_mandir}/man1/okular.1*
%{_kde5_services}/okular_part.desktop
%{_kde5_servicetypes}/okularGenerator.desktop
%{_kde5_datadir}/kservices5/okularMd.desktop
%{_kde5_xmlguidir}/okular/*.rc
%{_appdatadir}/org.kde.okular.appdata.xml
%{_qt5_plugindir}/okularpart.so
%{_qt5_plugindir}/okular/generators/okularGenerator_md.so
%{_appdatadir}/org.kde.okular-md.metainfo.xml
%if %{with mobile}
%{_kde5_bindir}/okularkirigami
%{_kde5_applicationsdir}/org.kde.okular.kirigami.desktop
%{_appdatadir}/org.kde.okular.kirigami.appdata.xml
%endif

#----------------------------------------------------------------------------

%package chm
Summary:	CHM (Microsoft Help) display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description chm
CHM (Microsoft Help) display support for Okular.

%files chm -f okular_chm.lang
%{_kde5_applicationsdir}/okularApplication_chm.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_chm.desktop
%{_kde5_services}/okularChm.desktop
%{_appdatadir}/org.kde.okular-chm.metainfo.xml
%{_kde5_plugindir}/kio/kio_msits.so
%{_qt5_plugindir}/okular/generators/okularGenerator_chmlib.so

#----------------------------------------------------------------------------

%package comicbook
Summary:	ComicBook display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description comicbook
ComicBook display support for Okular.

%files comicbook -f okular_comicbook.lang
%{_kde5_applicationsdir}/okularApplication_comicbook.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_comicbook.desktop
%{_kde5_services}/okularComicbook.desktop
%{_appdatadir}/org.kde.okular-comicbook.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_comicbook.so

#----------------------------------------------------------------------------

%package djvu
Summary:	DjVu display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description djvu
DjVu display support for Okular.

%files djvu -f okular_djvu.lang
%{_kde5_applicationsdir}/okularApplication_djvu.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_djvu.desktop
%{_kde5_services}/okularDjvu.desktop
%{_appdatadir}/org.kde.okular-djvu.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_djvu.so

#----------------------------------------------------------------------------

%package dvi
Summary:	DVI display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description dvi
DVI display support for Okular.

%files dvi -f okular_dvi.lang
%{_kde5_applicationsdir}/okularApplication_dvi.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_dvi.desktop
%{_kde5_services}/okularDvi.desktop
%{_appdatadir}/org.kde.okular-dvi.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_dvi.so

#----------------------------------------------------------------------------

%package epub
Summary:	EPub display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description epub
EPub display support for Okular.

%files epub -f okular_epub.lang
%{_kde5_applicationsdir}/okularApplication_epub.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_epub.desktop
%{_kde5_services}/okularEPub.desktop
%{_appdatadir}/org.kde.okular-epub.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_epub.so

#----------------------------------------------------------------------------

%package fax
Summary:	Fax display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description fax
Fax display support for Okular.

%files fax -f okular_fax.lang
%{_kde5_applicationsdir}/okularApplication_fax.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_fax.desktop
%{_kde5_services}/okularFax.desktop
%{_appdatadir}/org.kde.okular-fax.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_fax.so

#----------------------------------------------------------------------------

%package fb
Summary:	FictionBook display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description fb
FictionBook display support for Okular.

%files fb -f okular_fictionbook.lang
%{_kde5_applicationsdir}/okularApplication_fb.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_fb.desktop
%{_kde5_services}/okularFb.desktop
%{_appdatadir}/org.kde.okular-fb.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_fb.so

#----------------------------------------------------------------------------

%package kimgio
Summary:	KImgIO display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}
Requires:	kimageformats

%description kimgio
KImgIO display support for Okular.

%files kimgio -f okular_kimgio.lang
%{_kde5_applicationsdir}/okularApplication_kimgio.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_kimgio.desktop
%{_kde5_services}/okularKimgio.desktop
%{_appdatadir}/org.kde.okular-kimgio.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_kimgio.so

#----------------------------------------------------------------------------

%package mobipocket
Summary:	Mobipocket display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description mobipocket
Mobipocket display support for Okular.

%files mobipocket -f okular_mobi.lang
%{_kde5_applicationsdir}/okularApplication_mobi.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_mobi.desktop
%{_kde5_services}/okularMobi.desktop
%{_appdatadir}/org.kde.okular-mobipocket.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_mobi.so

#----------------------------------------------------------------------------

%package pdf
Summary:	PDF display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description pdf
PDF display support for Okular.

%files pdf -f okular_poppler.lang
%{_kde5_applicationsdir}/okularApplication_pdf.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_pdf.desktop
%{_kde5_datadir}/config.kcfg/pdfsettings.kcfg
%{_kde5_services}/okularPoppler.desktop
%{_appdatadir}/org.kde.okular-poppler.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_poppler.so

#----------------------------------------------------------------------------

%package plucker
Summary:	Plucker display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description plucker
Plucker display support for Okular.

%files plucker -f okular_plucker.lang
%{_kde5_applicationsdir}/okularApplication_plucker.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_plucker.desktop
%{_kde5_services}/okularPlucker.desktop
%{_appdatadir}/org.kde.okular-plucker.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_plucker.so

#----------------------------------------------------------------------------

%package postscript
Summary:	PostScript display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description postscript
PostScript display support for Okular.

%files postscript -f okular_ghostview.lang
%{_kde5_applicationsdir}/okularApplication_ghostview.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_ghostview.desktop
%{_kde5_services}/okularGhostview.desktop
%{_appdatadir}/org.kde.okular-spectre.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_ghostview.so

#----------------------------------------------------------------------------

%package tiff
Summary:	TIFF display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description tiff
TIFF display support for Okular.

%files tiff -f okular_tiff.lang
%{_kde5_applicationsdir}/okularApplication_tiff.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_tiff.desktop
%{_appdatadir}/org.kde.okular-tiff.metainfo.xml
%{_kde5_services}/okularTiff.desktop
%{_qt5_plugindir}/okular/generators/okularGenerator_tiff.so

#----------------------------------------------------------------------------

%package txt
Summary:	TXT display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description txt
TXT display support for Okular.

%files txt -f okular_txt.lang
%{_kde5_applicationsdir}/okularApplication_txt.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_txt.desktop
%{_kde5_services}/okularTxt.desktop
%{_appdatadir}/org.kde.okular-txt.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_txt.so

#----------------------------------------------------------------------------

%package xps
Summary:	XPS display support for Okular
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description xps
XPS display support for Okular.

%files xps -f okular_xps.lang
%{_kde5_applicationsdir}/okularApplication_xps.desktop
%{_kde5_applicationsdir}/org.kde.mobile.okular_xps.desktop
%{_kde5_services}/okularXps.desktop
%{_appdatadir}/org.kde.okular-xps.metainfo.xml
%{_qt5_plugindir}/okular/generators/okularGenerator_xps.so

#----------------------------------------------------------------------------

%if %{with mobile}
%define qmlokular %mklibname okular-qml

%package -n %{qmlokular}
Summary:	QML plugin for Okular
Group:		System/Libraries
Provides:	okular-qml = %{EVRD}

%description -n %{qmlokular}
QML plugin for Okular.

%files -n %{qmlokular}
%dir %{_kde5_qmldir}/org/kde/okular/
%{_kde5_qmldir}/org/kde/okular/*
%endif

#----------------------------------------------------------------------------

%define okular5core_major 11
%define libokular5core %mklibname okular5core %{okular5core_major}

%package -n %{libokular5core}
Summary:	Shared library for okular
Group:		System/Libraries
%if %{with mobile}
Requires:	%{qmlokular}
%endif

%description -n %{libokular5core}
Shared library for Okular.

%files -n %{libokular5core}
%{_kde5_libdir}/libOkular5Core.so.%{okular5core_major}*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Devel stuff for kdegraphics
Group:		Development/KDE and Qt
Requires:	%{libokular5core} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 2:16.12
Obsoletes:	%{name}-devel < 2:16.12

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on Okular.

%files -n %{devname}
%{_includedir}/%{name}
%{_kde5_libdir}/cmake/Okular5/
%{_kde5_libdir}/libOkular5Core.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
%if %{with mobile}
	-DOKULAR_UI="both"
%else
	-DOKULAR_UI="desktop"
%endif
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

%find_lang %{name} okular_markdown okular_tiff org.kde.active.documentviewer %{name}.lang --with-kde --with-html

%find_lang okular_chm --with-kde

%find_lang okular_comicbook --with-kde

%find_lang okular_djvu --with-kde

%find_lang okular_dvi --with-kde

%find_lang okular_epub --with-kde

%find_lang okular_fax --with-kde

%find_lang okular_fictionbook --with-kde

%find_lang okular_ghostview --with-kde

%find_lang okular_kimgio --with-kde

%find_lang okular_mobi --with-kde

%find_lang okular_tiff --with-kde

%find_lang okular_plucker --with-kde

%find_lang okular_poppler --with-kde

%find_lang okular_txt --with-kde

%find_lang okular_xps --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15029 |21mr|olm-3.2.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# For the python module - it doesn't link to libpython
%define _disable_ld_no_undefined 1

%define major %(echo %{version} |cut -d. -f1)
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary: Double Ratchet cryptographic library
Name: olm
Version:	3.2.12
Release:	1
License: ASL 2.0
Group: System/Libraries
URL: https://gitlab.matrix.org/matrix-org/%{name}
Source0: https://gitlab.matrix.org/matrix-org/%{name}/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires: ninja
BuildRequires: cmake
BuildRequires: pkgconfig(python3)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(cffi)
BuildRequires: python3dist(future)

%description
An implementation of the Double Ratchet cryptographic ratchet in C++.

%package -n %{libname}
Summary: Double Ratchet cryptographic library
Group: System/Libraries

%description -n %{libname}
Double Ratchet cryptographic library

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C++
Requires: %{libname}%{?_isa} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n %{devname}
Devel Olm packages for Double Ratchet cryptographic library

%package python3
Summary: Python 3 bindings for %{name}
Group: Development/Python
Requires: %{libname}%{?_isa} = %{?EVRD}

%description python3
Python 3 bindings for Olm Double Ratchet cryptographic library

%prep
%autosetup -p1
%cmake \
    -DCMAKE_BUILD_TYPE=Release \
    -DOLM_TESTS=OFF \
    -G Ninja

%build
%ninja_build -C build

export CFLAGS="%{optflags} -L$(pwd)/build/%{_lib}"
export LDFLAGS="%{build_ldflags} -L$(pwd)/build/%{_lib}"
cd python
%py3_build

%check
cd build
ctest --output-on-failure

%install
%ninja_install -C build

cd python
%py3_install
cd ..

%files -n %{libname}
%license LICENSE
%doc *.md *.rst docs/*.md
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/cmake/Olm
%{_libdir}/pkgconfig/olm.pc

%files python3
%{python3_sitearch}/%{name}
%{python3_sitearch}/_lib%{name}.abi3.so
%{python3_sitearch}/python_%{name}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15030 |21mr|onevpl-2023.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname onevpl %{major}
%define devname %mklibname onevpl -d

%define oname oneVPL

Summary:        oneAPI Video Processing Library dispatcher tools and examples
Name:           onevpl
Version:        2023.2.1
Release:        1
License:        MIT
Group:          Development/C++
URL:            https://github.com/oneapi-src/oneVPL
Source0:        https://github.com/oneapi-src/oneVPL/archive/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:  cmake
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(libdrm)
BuildRequires:  pkgconfig(libva)
BuildRequires:  pkgconfig(python)
BuildRequires:  pkgconfig(x11)
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(wayland-client)
BuildRequires:  pkgconfig(wayland-protocols)
BuildRequires:  pkgconfig(wayland-server)
BuildRequires:  python3dist(pybind11)
Requires:	%{libname} = %{EVRD}
ExclusiveArch:	x86_64

%description
The oneAPI Video Processing Library (oneVPL) provides a single video processing
API for encode, decode, and video processing that works across a wide range of
accelerators.

%files
%license LICENSE
%doc %{_datadir}/vpl/licensing/
%{_bindir}/*
%{_prefix}/etc/modulefiles/vpl
%{_prefix}/etc/vpl/vars.sh
%{_datadir}/vpl/examples/

#------------------------------------------------------------------------------------------

%package -n %{libname}
Summary:        oneAPI Video Processing Library (oneVPL) dispatcher
Group:          System/Libraries

%description -n %{libname}
The oneAPI Video Processing Library (oneVPL) provides a single video processing
API for encode, decode, and video processing that works across a wide range of
accelerators.

%files -n %{libname}
%{_libdir}/libvpl.so.%{major}*

#------------------------------------------------------------------------------------------

%package -n %{devname}
Summary:        Development files for oneAPI Video Processing Library (oneVPL) dispatcher
Group:          Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel  = %{EVRD}

%description -n %{devname}
This package contains the development headers and pkgconfig files for
the oneAPI Video Processing Library (oneVPL) dispatcher

%files -n %{devname}
%{_includedir}/vpl/
%{_libdir}/libvpl.so
%{_libdir}/vpl/libvpl_wayland.so
%{_libdir}/pkgconfig/vpl.pc
%{_libdir}/cmake/vpl/

#------------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake  \
        -DBUILD_PYTHON_BINDING:BOOL=ON \
        -DPYTHON_INSTALL_DIR:STRING=%{python_sitearch}
%make_build

%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15031 |21mr|ongres-scram-1.0.0_beta.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global		upstream_name    scram
%global		upstream_version 1.0.0-beta.2

Name:		ongres-%upstream_name
Version:	%(echo %upstream_version | sed 's/-/~/g')
Release:	8
Summary:	Salted Challenge Response Authentication Mechanism (SCRAM) - Java Implementation
Group:          Development/Java
License:	BSD
URL:		https://github.com/ongres/%upstream_name
Source0:	https://github.com/ongres/%upstream_name/archive/%upstream_version/%upstream_name-%upstream_version.tar.gz
BuildRequires:	maven-local
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a Java implementation of SCRAM (Salted Challenge Response
Authentication Mechanism) which is part of the family of Simple
Authentication and Security Layer (SASL, RFC 4422) authentication
mechanisms. It is described as part of RFC 5802 and RFC7677.

%package client
Summary:	Client for %{name}

%description client
This package contains the client for %{name}

%package javadoc
Summary:	Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}

%package parent
Summary:	Parent POM of %{name}

%description parent
This package contains the %{name} parent POM.

%prep
%autosetup -p1 -n "%upstream_name-%upstream_version"
find \( -name '*.jar' -o -name '*.class' \) -delete
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-dependency-plugin client
%pom_remove_plugin -r :maven-javadoc-plugin

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-common
%license LICENSE

%files client -f .mfiles-client
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

%files parent -f .mfiles-parent
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15032 |21mr|onig-6.9.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Regular expressions library
Name:		onig
Version:	6.9.5
Release:	2
License:	BSD
Group:		System/Libraries
Url:		https://github.com/kkos/oniguruma
Source0:	https://github.com/kkos/oniguruma/archive/v%{version}.tar.gz
BuildRequires:	libtool

%description
Oniguruma is a regular expressions library. The characteristics of this library
is that different character encoding for every regular expression object can be
specified. (supported APIs: GNU regex, POSIX and Oniguruma native)

Supported character encodings:

 o ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
 o EUC-JP, EUC-TW, EUC-KR, EUC-CN,
 o Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
 o ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
 o ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
 o ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
 o (GB18030 encoding was contributed by KUBO Takehiro)
 o (CP1251 encoding was contributed by Byte)

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Regular expressions library
Group:		System/Libraries

%description -n %{libname}
Oniguruma is a regular expressions library. The characteristics of this library
is that different character encoding for every regular expression object can be
specified. (supported APIs: GNU regex, POSIX and Oniguruma native)

Supported character encodings:

 o ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
 o EUC-JP, EUC-TW, EUC-KR, EUC-CN,
 o Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
 o ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
 o ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
 o ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
 o (GB18030 encoding was contributed by KUBO Takehiro)
 o (CP1251 encoding was contributed by Byte)

This package provides the shared Oniguruma library.

%files -n %{libname}
%doc AUTHORS COPYING HISTORY README index.html index_ja.html
%{_libdir}/libonig.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for development with Oniguruma
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Oniguruma is a regular expressions library. The characteristics of this library
is that different character encoding for every regular expression object can be
specified. (supported APIs: GNU regex, POSIX and Oniguruma native)

Supported character encodings:

 o ASCII, UTF-8, UTF-16BE, UTF-16LE, UTF-32BE, UTF-32LE,
 o EUC-JP, EUC-TW, EUC-KR, EUC-CN,
 o Shift_JIS, Big5, GB18030, KOI8-R, CP1251,
 o ISO-8859-1, ISO-8859-2, ISO-8859-3, ISO-8859-4, ISO-8859-5,
 o ISO-8859-6, ISO-8859-7, ISO-8859-8, ISO-8859-9, ISO-8859-10,
 o ISO-8859-11, ISO-8859-13, ISO-8859-14, ISO-8859-15, ISO-8859-16
 o (GB18030 encoding was contributed by KUBO Takehiro)
 o (CP1251 encoding was contributed by Byte)

This package is only needed if you plan to develop or compile applications
which requires the Oniguruma library.

%files -n %{devname}
%doc doc/*
%{_bindir}/*
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.*a
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n oniguruma-%{version}
%autopatch -p1

# fix strange perms
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

%build
touch NEWS ChangeLog
autoreconf -fis

%configure --enable-static

%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15033 |21mr|opal3-3.18.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define major %{version}
%define libname %mklibname opal %{major}
%define devname %mklibname %{name} -d

%define url_ver %(echo %version | cut -d. -f1,2)

Summary:	VoIP library
Name:		opal3
Version:	3.18.6
Release:	1
License:	MPL
Group:		System/Libraries
Url:		http://www.opalvoip.org
Source0:	https://sourceforge.net/projects/opalvoip/files/v%{url_ver}%20Cygni/Stable%206/opal-%{version}.tar.bz2
Patch1:		opal-linking.patch
Patch2:		opal-iLBC-2.0.patch
Patch3:		opal-aarch64.patch
#Patch102:	0001-Fixed-recent-SRTP-const-issue-change-for-different-p.patch
BuildRequires:	gawk
BuildRequires:	ffmpeg-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(ptlib)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(x264)

%description
This is an open source class library for the development of
applications that wish to use SIP / H.323 protocols for multimedia
communications over packet based networks.

#----------------------------------------------------------------------------

%package -n %{libname}-plugins
Summary:	Codec plugins for Opal
Group:		System/Libraries
Provides:	%{name}-plugins = %{EVRD}

%description -n %{libname}-plugins
PTlib codec plugins for various formats provided by Opal.

%files -n %{libname}-plugins
%{_libdir}/opal-%{version}/codecs/audio/*
%{_libdir}/opal-%{version}/codecs/video/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Opal Library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Requires:	%{libname}-plugins = %{EVRD}

%description -n %{libname}
Shared library for OPAL (SIP / H323 stack).

%files -n %{libname}
%attr(0755,root,root) %{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Opal development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and libraries for developing applications that use
Opal.

%files -n %{devname}
%doc mpl-1.0.htm
%attr(0755,root,root) %{_libdir}/*.so
%{_libdir}/*.*a
%{_includedir}/*
%{_libdir}/pkgconfig/opal.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n opal-%{version}

%build
export CFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} -fPIC"

%configure \
	--disable-g.722.1 \
	--disable-static
%make V=1 STRIP=''

%install
%makeinstall_std

# remove incorrect symlinks (http://bugzilla.gnome.org/show_bug.cgi?id=553808 )
rm -f %{buildroot}%{_libdir}/libopal.so.?
rm -f %{buildroot}%{_libdir}/libopal.so.?.?

# we don't want these
rm -rf %{buildroot}%{_datadir}/opal/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15034 |21mr|open-1.4-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name	open
%define	version	1.4
%define release	30
Summary:	A tool which will start a program on a virtual console
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Terminals
Source:		ftp://sunsite.unc.edu/pub/Linux/utils/console/%{name}-%{version}.tar.bz2
Patch0:		%{name}-1.4-includes.patch
Patch1:		Makefile.patch
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
The open command starts a specified command with the first available virtual
console, or on a virtual console that you specify.

Install the open package if you regularly use virtual consoles to run programs.

%prep
%autosetup -p1

%build
%serverbuild_hardened
%set_build_flags
%make CFLAGS="$CFLAGS"

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/{%{_bindir},%{_mandir}/man1}

make BINDIR=$RPM_BUILD_ROOT%{_bindir} MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install
mkdir -p $RPM_BUILD_ROOT/bin
mv $RPM_BUILD_ROOT%{_bindir}/open $RPM_BUILD_ROOT/bin
ln -s /bin/open $RPM_BUILD_ROOT%{_bindir}/open

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
/bin/open
%{_bindir}/open
%{_bindir}/switchto
%{_mandir}/man1/open.*
%{_mandir}/man1/switchto.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15035 |21mr|openafs-1.8.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dkms_version %{version}-%{release}
%define module libafs

%define major 2
%define libafsauthent %mklibname afsauthent %{major}
%define libafshcrypto %mklibname afshcrypto %{major}
%define libafsrpc %mklibname afsrpc %{major}
%define librokenafs %mklibname rokenafs %{major}
%define libkopenafs %mklibname kopenafs %{major}

%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

# mask requires from lib, many liboafs_*.so.0 not installed
%global __requires_exclude ^liboafs_.*$

Summary:	OpenAFS distributed filesystem
Name:		openafs
Version:	1.8.8
Release:	1
License:	IBM
Group:		Networking/Other
Url:		http://openafs.org/
Source0:	http://www.openafs.org/dl/openafs/%{version}/openafs-%{version}-src.tar.gz
Source1:	http://www.openafs.org/dl/openafs/%{version}/openafs-%{version}-doc.tar.gz
Source2:	http://grand.central.org/dl/cellservdb/CellServDB.2020-09-29
Source3:	openafs-client.service
### This source isn't used, so let's comment it out for now.
# Source4:	openafs.config
Source5:	openafs-server.service
Source7:	openafs-cacheinfo

# firewalld service devinitions
Source21: afs3-bos.xml
Source22: afs3-callback.xml
Source23: afs3-fileserver.xml
Source24: afs3-prserver.xml
Source25: afs3-rmtsys.xml
Source26: afs3-update.xml
Source27: afs3-vlserver.xml
Source28: afs3-volser.xml

Source100:	%{name}.rpmlintrc
Patch0:		liboafs-undefined-symbol.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	swig
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	perl(ExtUtils::Embed)
Requires:	kmod(libafs)
Conflicts:	coda-debug-backup
Conflicts:	krbafs-utils

%description
AFS is a distributed filesystem allowing cross-platform sharing of files
among multiple computers. Facilities are provided for access control,
authentication, backup and administrative management.

This package provides common files shared across all the various
OpenAFS packages but are not necessarily tied to a client or server.

%files
%doc README NEWS LICENSE
%{_bindir}/afs_compile_et
%{_bindir}/afsio
%{_bindir}/afsmonitor
%{_bindir}/aklog
%{_bindir}/asetkey
%{_bindir}/bos
%{_bindir}/fs
%{_bindir}/klog.krb5
%{_bindir}/akeyconvert
%{_bindir}/livesys
%{_bindir}/pagsh.afs
%{_bindir}/pagsh.krb
%{_bindir}/pts
%{_bindir}/restorevol
%{_bindir}/scout
%{_bindir}/sys
%{_bindir}/tokens
%{_bindir}/tokens.krb
%{_bindir}/translate_et
%{_bindir}/udebug
%{_bindir}/unlog
%{_sbindir}/afsd.fuse
%{_sbindir}/backup
%{_sbindir}/bos_util
%{_sbindir}/butc
%{_sbindir}/dafssync-debug
%{_sbindir}/fms
%{_sbindir}/fssync-debug
%{_sbindir}/fstrace
%{_sbindir}/read_tape
%{_sbindir}/rxdebug
%{_sbindir}/salvsync-debug
%{_sbindir}/state_analyzer
%{_sbindir}/uss
%{_sbindir}/vos
%{_datadir}/%{name}/
%{_mandir}/man1/afsmonitor.1*
%{_mandir}/man1/fs.1*
%{_mandir}/man1/livesys.1*
%{_mandir}/man1/pagsh.afs.1*
%{_mandir}/man1/pts.1*
%{_mandir}/man1/rxdebug.1*
%{_mandir}/man1/scout.1*
%{_mandir}/man1/sys.1*
%{_mandir}/man1/tokens.1*
%{_mandir}/man1/translate_et.1*
%{_mandir}/man1/udebug.1*
%{_mandir}/man1/unlog.1*
%{_mandir}/man1/vos.1*
# swig generated files
%{_libdir}/perl/AFS/ukernel.pm
%{_libdir}/perl/ukernel.so

#----------------------------------------------------------------------------

%package client
Summary:	OpenAFS filesystem client
Group:		Networking/Other
Requires:	%{name} = %{EVRD}
Requires(post,preun):	rpm-helper

%description client
AFS is a distributed filesystem allowing cross-platform sharing of files
among multiple computers. Facilities are provided for access control,
authentication, backup and administrative management.

This package provides basic client support to mount and manipulate
AFS.

%files client
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_unitdir}/%{name}-client.service
%{_bindir}/cmdebug
%{_bindir}/up.afs
%{_sbindir}/afsd
%{_mandir}/man1/up.afs.1*
%{_var}/cache/%{name}

%post client
# Create the CellServDB
# We need to do this before starting the service
[ -f /etc/openafs/CellServDB.local ] || touch /etc/openafs/CellServDB.local

( cd /etc/openafs ; \
	cat CellServDB.local CellServDB.dist > CellServDB ; \
	chmod 644 CellServDB )

%_post_service %{name}-client
if [ ! -e /afs ]; then
	mkdir /afs
fi

%preun client
%_preun_service %{name}-client

#----------------------------------------------------------------------------

%package server
Summary:	OpenAFS filesystem server
Group:		Networking/Other
Requires:	%{name}-client = %{EVRD}
Requires(post,preun):	rpm-helper

%description server
AFS is a distributed filesystem allowing cross-platform sharing of files
among multiple computers. Facilities are provided for access control,
authentication, backup and administrative management.

This package provides basic server support to host files in an AFS
cell.

%files server
%{_unitdir}/%{name}-server.service
%{_sbindir}/bosserver
%{_sbindir}/prdb_check
%{_sbindir}/pt_util
%{_sbindir}/rmtsysd
%{_sbindir}/vldb_check
%{_sbindir}/vldb_convert
%{_sbindir}/voldump
%{_sbindir}/volinfo
%{_sbindir}/volscan
%{_sbindir}/vsys
%{_libexecdir}/openafs
%{_mandir}/man8/bosserver.8*
%{_mandir}/man8/prdb_check.8*
%{_mandir}/man8/vldb_check.8*
%{_mandir}/man8/voldump.8*
%{_mandir}/man8/volinfo.8*
# firewalld rules
%{_prefix}/lib/firewalld/services/*.xml

%post server
%_post_service %{name}-server

%preun server
%_preun_service %{name}-server

#----------------------------------------------------------------------------

%package -n %{libafsauthent}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libafsauthent}
This package contains the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{libafsauthent}
%{_libdir}/libafsauthent.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libafshcrypto}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libafshcrypto}
This package contains the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{libafshcrypto}
%{_libdir}/libafshcrypto.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libafsrpc}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libafsrpc}
This package contains the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{libafsrpc}
%{_libdir}/libafsrpc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{librokenafs}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{librokenafs}
This package contains the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{librokenafs}
%{_libdir}/librokenafs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libkopenafs}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libkopenafs}
This package contains the libraries needed to run programs dynamically
linked with %{name}.

%files -n %{libkopenafs}
%{_libdir}/libkopenafs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for %{name}
Group:		Development/C
Requires:	%{libafsauthent} = %{EVRD}
Requires:	%{libafshcrypto} = %{EVRD}
Requires:	%{libafsrpc} = %{EVRD}
Requires:	%{librokenafs} = %{EVRD}
Requires:	%{libkopenafs} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the static development libraries and headers needed
to compile applications linked with OpenAFS libraries.

%files -n %{devname}
%{_bindir}/rxgen
%{_bindir}/xstat_cm_test
%{_bindir}/xstat_fs_test
%{_includedir}/*.h
%{_includedir}/afs
%{_includedir}/opr
%{_includedir}/rx
%{_libdir}/*.so
%{_libdir}/afs

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries and header files for %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-devel-static = %{EVRD}
Conflicts:	%{_lib}rplay-devel

%description -n %{sdevname}
This package contains the static development libraries and headers needed
to compile applications linked with OpenAFS libraries.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package -n dkms-%{module}
Summary:	DKMS-ready kernel source for AFS distributed filesystem
Group:		Development/Kernel
Requires(post):	dkms
BuildArch:	noarch

%description -n dkms-%{module}
This package provides the AFS kernel module.

%files -n dkms-%{module}
%{_prefix}/src/%{module}-%{dkms_version}

%post -n dkms-%{module}
dkms add -m %{module} -v %{dkms_version} --rpm_safe_upgrade
dkms build -m %{module} -v %{dkms_version} --rpm_safe_upgrade
dkms install -m %{module} -v %{dkms_version} --rpm_safe_upgrade

%preun -n dkms-%{module}
dkms remove -m %{module} -v %{dkms_version} --rpm_safe_upgrade --all ||:

#----------------------------------------------------------------------------

%package doc
Summary:	OpenAFS documentation
Group:		Documentation
BuildArch:	noarch

%description doc
This packages provides the documentation for OpenAFS.

%files doc
%doc doc/LICENSE doc/pdf doc/txt
%{_mandir}/man?/*
%exclude %{_mandir}/man1/afsmonitor.1*
%exclude %{_mandir}/man1/fs.1*
%exclude %{_mandir}/man1/livesys.1*
%exclude %{_mandir}/man1/pagsh.afs.1*
%exclude %{_mandir}/man1/pts.1*
%exclude %{_mandir}/man1/rxdebug.1*
%exclude %{_mandir}/man1/scout.1*
%exclude %{_mandir}/man1/sys.1*
%exclude %{_mandir}/man1/tokens.1*
%exclude %{_mandir}/man1/translate_et.1*
%exclude %{_mandir}/man1/udebug.1*
%exclude %{_mandir}/man1/unlog.1*
%exclude %{_mandir}/man1/up.afs.1*
%exclude %{_mandir}/man1/vos.1*
%exclude %{_mandir}/man8/bosserver.8*
%exclude %{_mandir}/man8/prdb_check.8*
%exclude %{_mandir}/man8/vldb_check.8*
%exclude %{_mandir}/man8/voldump.8*
%exclude %{_mandir}/man8/volinfo.8*

#----------------------------------------------------------------------------

%prep
%setup -q -T -b 0
%setup -q -T -D -b 1
%apply_patches

%build
#./regen.sh
%serverbuild

%ifarch x86_64
%define sysname amd64_linux26
%else
%define sysname %{_arch}_linux26
%endif

%configure \
       --with-afs-sysname=${sysname} \
       --disable-kernel-module \
       --enable-debug \
       --with-krb5 \
       --enable-bitmap-later \
       --enable-supergroups \
    || exit 1

%make all_nolibafs
%make libafs_tree

%install
make install_nolibafs DESTDIR=%{buildroot}

# cache
install -m 755 -d %{buildroot}/var/cache/%{name}

# configuration
install -m 755 -d %{buildroot}%{_sysconfdir}/%{name}
install -m 644 %{SOURCE2}  %{buildroot}%{_sysconfdir}/%{name}/CellServDB.dist
install -m 644 src/packaging/RedHat/openafs-ThisCell  %{buildroot}%{_sysconfdir}/%{name}/ThisCell
install -m 644 %{SOURCE7}  %{buildroot}%{_sysconfdir}/%{name}/cacheinfo

# Systemd
install -m 755 -d %{buildroot}%{_unitdir}
install -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}-client.service
install -m 644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}-server.service

# kernel module
install -d -m 755 %{buildroot}%{_prefix}/src
cp -a libafs_tree %{buildroot}%{_prefix}/src/%{module}-%{dkms_version}

cat > %{buildroot}%{_prefix}/src/%{module}-%{dkms_version}/dkms.conf <<EOF

PACKAGE_VERSION="%{dkms_version}"

# Items below here should not have to change with each driver version
PACKAGE_NAME="%{module}"
MAKE[0]="SMP=SP; eval \\\`grep CONFIG_SMP /boot/config-\${kernelver_array[0]}\\\`; [ -n \"\\\$CONFIG_SMP\" ] && SMP=MP; ./configure --with-linux-kernel-headers=\${kernel_source_dir}; make MPS=\\\$SMP; mv src/libafs/MODLOAD-*/libafs.ko ."
CLEAN="make -C src/libafs clean"

BUILT_MODULE_NAME[0]="\$PACKAGE_NAME"
DEST_MODULE_LOCATION[0]="/kernel/3rdparty/\$PACKAGE_NAME/"

AUTOINSTALL=yes

EOF

# rename binaries and man page to avoid some conflicts
mv %{buildroot}%{_bindir}/pagsh{,.afs}
mv %{buildroot}%{_bindir}/up{,.afs}
mv %{buildroot}%{_mandir}/man1/pagsh.1 \
	%{buildroot}%{_mandir}/man1/pagsh.afs.1
mv %{buildroot}%{_mandir}/man1/up.1 \
	%{buildroot}%{_mandir}/man1/up.afs.1
mv %{buildroot}%{_mandir}/man8/upclient.8 \
	%{buildroot}%{_mandir}/man8/upclient.afs.8

# fix generated files
perl -pi -e 's|%{_builddir}/%{name}-%{version}/src|../..|' \
	%{buildroot}%{_prefix}/src/libafs-%{version}-%{release}/src/config/Makefile.version

touch %{buildroot}%{_sysconfdir}/openafs/ThisCell
chmod 644 %{buildroot}%{_sysconfdir}/openafs/ThisCell

# Set up firewalld files
install -d -m 755 %{buildroot}%{_prefix}/lib/firewalld/services
install -p -m 644 %{SOURCE21} %{buildroot}%{_prefix}/lib/firewalld/services/afs3-bos.xml
install -p -m 644 %{SOURCE22} %{buildroot}%{_prefix}/lib/firewalld/services/afs3-callback.xml
install -p -m 644 %{SOURCE23} %{buildroot}%{_prefix}/lib/firewalld/services/afs3-fileserver.xml
install -p -m 644 %{SOURCE24} %{buildroot}%{_prefix}/lib/firewalld/services/afs3-prserver.xml
install -p -m 644 %{SOURCE25} %{buildroot}%{_prefix}/lib/firewalld/services/afs3-rmtsys.xml
install -p -m 644 %{SOURCE26} %{buildroot}%{_prefix}/lib/firewalld/services/afs3-update.xml
install -p -m 644 %{SOURCE27} %{buildroot}%{_prefix}/lib/firewalld/services/afs3-vlserver.xml
install -p -m 644 %{SOURCE28} %{buildroot}%{_prefix}/lib/firewalld/services/afs3-volser.xml

# Set the executable bit on libraries in libdir, so rpmbuild knows to
# create "Provides" entries in the package metadata for the libraries
chmod +x %{buildroot}%{_libdir}/*.so*
chmod +x %{buildroot}%{_libdir}/perl/ukernel.so

#delete static libraries not in upstream package
rm -f %{buildroot}%{_libdir}/libjuafs.a
rm -f %{buildroot}%{_libdir}/libuafs.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15036 |21mr|openal-1.22.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d
%define	oname openal-soft

%bcond_without	qt5

Summary:	3D Sound Library
Name:		openal
Version:	1.22.0
Release:	3
License:	LGPLv2.1+
Group:		Sound
Url:		http://www.openal.org
Source0:	https://github.com/kcat/openal-soft/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
# fix path in .pc file
Patch0:		openal-libdir.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(alsa)
BuildRequires:	ffmpeg-devel
BuildRequires:	glibc-devel
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	SDL_sound-devel
%if %{with qt5}
BuildRequires:	qmake5
BuildRequires:	cmake(Qt5Widgets)
%endif
Provides:	%{oname} = %{EVRD}
Conflicts:	openal1 < 1.7.411-2
# Some files moved from library subpackage to main package
Conflicts:	%{libname} < 1.15

%description
OpenAL is a free 3D-audio library, with a programming interface similar
to that of OpenGL.

%files
%dir %{_datadir}/openal
%dir %{_datadir}/openal/hrtf
%{_bindir}/alffplay
%{_bindir}/almultireverb
%{_bindir}/alplay
%{_bindir}/allatency
%{_bindir}/alloopback
%{_bindir}/alrecord
%{_bindir}/alreverb
%{_bindir}/alstream
%{_bindir}/altonegen
%{_bindir}/alhrtf
%{_bindir}/openal-info
%{_datadir}/%{name}/alsoftrc.sample
%{_datadir}/%{name}/hrtf/*.mhr
%{_datadir}/%{name}/presets

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for OpenAL, a free 3D sound library
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with OpenAL.

%files -n %{libname}
%doc ChangeLog
%license COPYING
%{_libdir}/libopenal.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use OpenAL
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use OpenAL, a free 3D audio library.

%files -n %{devname}
%doc ChangeLog
%license COPYING
%{_includedir}/AL
%{_libdir}/libopenal.so
%{_libdir}/cmake/OpenAL/*.cmake
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package config
Summary:	Configuration tool for openal
Group:		Sound

%description config
This package contains a configuration tool and configuration files for OpenAL

%files config
%dir %{_sysconfdir}/openal
%config(noreplace) %{_sysconfdir}/openal/alsoft.conf
%if %{with qt5}
%{_bindir}/alsoft-config
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n openal-soft-%{version} -p1

%build
%cmake	\
	-DALSOFT_CONFIG=ON	\
%if %{with qt5}
	-DQT_QMAKE_EXECUTABLE="/usr/bin/qmake-qt5"	\
%endif
	-DALSOFT_EXAMPLES=ON
%make_build

%install
%makeinstall_std -C build
mkdir -p %{buildroot}/%{_sysconfdir}/%{name}
install -m 0644 alsoftrc.sample %{buildroot}/%{_sysconfdir}/%{name}/alsoft.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15037 |21mr|openbabel-3.1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define inchi_major 0
%define coordgen_major 1
%define maeparser_major 1
%define libname %mklibname %{name} %{major}
%define inchilib %mklibname inchi %{inchi_major}
%define libcoordgen %mklibname coordgen %{coordgen_major}
%define libmaeparser %mklibname maeparser %{maeparser_major}
%define devname %mklibname %{name} -d

Summary:	Chemistry software file format converter
Name:		openbabel
Version:	3.1.1
Release:	5
License:	GPLv2+
Group:		Sciences/Chemistry
Url:		http://openbabel.org
Source0:	https://github.com/openbabel/openbabel/releases/download/%{name}-%(echo %{version} | tr '.' '-')/%{name}-%{version}-source.tar.bz2
Source1:	openbabelgui.desktop
# Missing file: data/ring-fragments-index.txt #2613
# https://github.com/openbabel/openbabel/issues/2613
Source2:        ring-fragments-index.txt

# Fix some warnings CMakeLists.txt
Patch1:		%{name}-cmakelists.patch
# Fix plugin directory location (#680292, patch by lg)
Patch2:		%{name}-plugindir.patch
# Fix UB in UFF parameter parsing. Bug 2224
Patch3:		%{name}-bug2224.patch
# Fix perl modules install path and 1 warning
Patch4:		%{name}-perl.patch
# Fix test failure with Python 3
Patch5:		%{name}-python-bug2217.patch
# Fix path to libdir in .pc file
# https://bugzilla.redhat.com/show_bug.cgi?id=1669664
Patch6:		%{name}-fix-libdir-in-pkgconfig.patch
Patch7:		openbabel-plugindir2.patch
Patch9:		openbabel-2.4.1-gcc12.patch
Patch11:	%{name}-3.1.1-bug2378.patch
Patch12:	%{name}-3.1.1-bug2493.patch
BuildRequires:	%{_bindir}/convert
BuildRequires:	boost-devel
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	eigen3
BuildRequires:	libtool
BuildRequires:	doxygen
BuildRequires:	swig
BuildRequires:	perl-devel
BuildRequires:	ruby-devel
BuildRequires:	maeparser-devel
BuildRequires:	coordgen-devel
BuildRequires:	wxgtku3.1-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(RapidJSON)
BuildRequires:	perl(ExtUtils::MakeMaker)

%description
Open Babel is a project designed to pick up where Babel left off,
as a cross-platform program and library designed to interconvert
between many file formats used in molecular modeling and computational
chemistry.

%files
%doc AUTHORS COPYING THANKS
%doc doc/*.html doc/diox* doc/README*
%config(noreplace) %{_sysconfdir}/profile.d/openbabel3.sh
%config(noreplace) %{_sysconfdir}/profile.d/openbabel3.csh 
%{_bindir}/*
%{_mandir}/man?/*
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*.png
%{_datadir}/%{name}
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries of %{name}
Group:		System/Libraries

%description -n %{libname}
Open Babel is a project designed to pick up where Babel left off,
as a cross-platform program and library designed to interconvert
between many file formats used in molecular modeling and computational
chemistry.

This package contains shared libraries of %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{inchilib}
Summary:	Shared libraries of inchi
Group:		System/Libraries

%description -n %{inchilib}
The IUPAC International Chemical Identifier (InChITM) is a non-proprietary
identifier for chemical substances that can be used in printed and
electronic data sources thus enabling easier linking of diverse data
compilations. It was developed under IUPAC Project 2000-025-1-800 during
the period 2000-2004. Details of the project and the history of its
progress are available from the project web site.

This package contains shared libraries of inchi.

%files -n %{inchilib}
%{_libdir}/libinchi.so.%{inchi_major}*

#----------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files of %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{inchilib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Open Babel is a project designed to pick up where Babel left off,
as a cross-platform program and library designed to interconvert
between many file formats used in molecular modeling and computational
chemistry.

This package includes the header files and other development
related files necessary for developing or compiling programs
using the %{name} library.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/cmake/openbabel3
%{_libdir}/pkgconfig/*.pc
%{_libdir}/lib*.so
#----------------------------------------------------------------------------

%package -n perl-%{name}
Summary:	Perl wrapper for the Open Babel library
Group:		Development/Perl

%description -n perl-%{name}
Perl wrapper for the Open Babel library.

%files -n perl-%{name}
%{perl_vendorarch}/*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python wrapper for the Open Babel library
Group:		Development/Python
%rename python-%{name}

%description -n python3-%{name}
Python wrapper for the Open Babel library.

%files -n python3-%{name}
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%if 0
%package -n ruby-%{name}
Summary:	Ruby wrapper for the Open Babel library
Group:		Development/Ruby
Requires:	%{name} = %{EVRD}

%description -n ruby-%{name}
Ruby wrapper for the Open Babel library.

%files -n ruby-%{name}
%{ruby_sitearchdir}/openbabel.so
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# we use system libs
rm -rf ./external/*

convert src/GUI/babel.xpm -transparent white babel.png

# Remove duplicate html files
pushd doc
for man in *.1; do
 html=`basename $man .1`.html
 if [ -f $html ]; then
   rm $html
 fi
done
popd

%build
LDFLAGS='%{ldflags} -ltirpc'
%cmake \
	-DWITH_MAEPARSER:BOOL=ON \
	-DWITH_COORDGEN:BOOL=ON \
	-DENABLE_TESTS:BOOL=OFF \
	-DBUILD_GUI:BOOL=ON \
	-DENABLE_VERSIONED_FORMATS=false \
	-DPYTHON_BINDINGS:BOOL=ON \
	-DPYTHON_EXECUTABLE=%{__python3} \
	-DPERL_BINDINGS:BOOL=ON \
	-DRUBY_BINDINGS:BOOL=OFF \
	-DRUN_SWIG=ON \
        -DBUILD_DOCS=ON \
	-DOPENBABEL_USE_SYSTEM_INCHI=OFF
%make -s


%install
%makeinstall_std -C build
install -p -D -m 644 %{SOURCE2} %{buildroot}/usr/share/openbabel/3.1.1/

desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1}
install -Dpm644 babel.png %{buildroot}%{_datadir}/pixmaps/babel.png

# Create profile files
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
cat > %{buildroot}%{_sysconfdir}/profile.d/openbabel3.sh <<EOF
BABEL_LIBDIR=%{_libdir}/%{name}
export BABEL_LIBDIR
BABEL_DATADIR=%{_datadir}/%{name}
export BABEL_DATADIR
EOF
cat > %{buildroot}%{_sysconfdir}/profile.d/openbabel3.csh <<EOF
setenv BABEL_LIBDIR %{_libdir}/%{name}
setenv BABEL_DATADIR %{_datadir}/%{name}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15038 |21mr|openblas-0.3.28-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname openblas
%define devname %mklibname openblas -d

# For now -- since C code (built with clang) and
# Fortran code (built with gfortran) are linked
# together, LTO object files don't work
%define _disable_lto 1

Name:		openblas
Version:	0.3.28
Release:	4
Source0:	https://github.com/OpenMathLib/OpenBLAS/releases/download/v%{version}/OpenBLAS-%{version}.tar.gz
Summary:	Optimized BLAS library
License:	BSD-3-Clause
Group:		System/Libraries
URL:		https://github.com/openblas/openblas
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gcc-gfortran
BuildRequires:	gomp-devel

%description
OpenBLAS is an optimized BLAS (Basic Linear Algebra Subprograms) library based
on GotoBLAS2 1.13 BSD version.

#--------------------------------------
%package -n %{libname}
Summary:	Optimized BLAS library
Group:		System/Libraries

%description -n %{libname}
Optimized BLAS library

%files -n %{libname}
%{_libdir}/*.so.%{major}*
#--------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/*
#--------------------------------------
%prep
%autosetup -p1 -n OpenBLAS-%{version}

%build
%cmake -G Ninja \
	-DUSE_OPENMP:BOOL=ON \
	-DBUILD_RELAPACK:BOOL=ON

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15039 |21mr|openbox-3.6.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 32
%define obtmajor 2
%define libobrender %mklibname obrender %{major}
%define libobt %mklibname obt %{obtmajor}
%define devname %mklibname %{name} -d

Summary:	Windowmanager based on the original blackbox-code
Name:		openbox
Version:	3.6.1
Release:	13
License:	BSD
Group:		Graphical desktop/Other
Url:		http://openbox.org/
Source0:	http://openbox.org/dist/%{name}/%{name}-%{version}.tar.gz
Patch0:		openbox-3.6.1-rosa-customisation.patch
Patch1:		openbox-python3.patch
# https://github.com/emilypeto/openbox-window-snap
# https://github.com/kylekern0/openbox-window-snap
Patch2:		openbox-window-snap.diff
Patch3:		openbox-3.6.1-menu.patch
Patch4:		openbox-3.6.1-hard-ru-translate.patch
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangoxft)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(imlib2)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(sm)
Requires:	xsetroot
Requires:	openbox-theme-rosa-breeze

%description
Openbox is a window manager for the X11 windowing system.
It currently runs on a large list of platforms. It was originally
based on blackbox and currently remains very similar, even using
blackbox styles (with available extensions) for its themeing.

Openbox is the spawn of a number of previous blackbox users/hackers.
Being overall pleased with the window manager, but feeling left unable
to contribute, this project was born.The Openbox project is developed,
maintained, and contributed to by these individuals.

%files -f %{name}.lang
%doc %{_docdir}/openbox
%attr(755,root,root) %{_bindir}/*
%dir %{_sysconfdir}/xdg/%{name}
%config(noreplace) %{_sysconfdir}/xdg/%{name}/*
%{_libexecdir}/openbox-autostart
%{_libexecdir}/openbox-xdg-autostart
%{_datadir}/man/man1/*
%{_datadir}/xsessions/*
%{_datadir}/gnome/wm-properties/openbox.desktop
%{_datadir}/applications/*.desktop
%{_datadir}/pixmaps/*
%{_datadir}/themes/*
%{_datadir}/gnome-session/sessions/openbox-gnome-fallback.session
%{_datadir}/gnome-session/sessions/openbox-gnome.session

#----------------------------------------------------------------------------

%package -n %{libobrender}
Summary:	Openbox shared library
Group:		System/Libraries
Conflicts:	%{_lib}openbox29 < 3.5.2-3
Obsoletes:	%{_lib}openbox29 < 3.5.2-3

%description -n %{libobrender}
Openbox shared library.

%files -n %{libobrender}
%{_libdir}/libobrender.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libobt}
Summary:	Openbox shared library
Group:		System/Libraries
Conflicts:	%{_lib}openbox29 < 3.5.2-3
# libobt packages was named incorrectly...
%rename	%{_lib}obt29

%description -n %{libobt}
Openbox shared library.

%files -n %{libobt}
%{_libdir}/libobt.so.%{obtmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from openbox
Group:		Development/Other
Requires:	%{libobrender} = %{EVRD}
Requires:	%{libobt} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Openbox is a window manager for the X11 windowing system.
It currently runs on a large list of platforms. It was originally
based on blackbox and currently remains very similar, even using
blackbox styles (with available extensions) for its themeing.

Openbox is the spawn of a number of previous blackbox users/hackers.
Being overall pleased with the window manager, but feeling left unable
to contribute, this project was born.The Openbox project is developed,
maintained, and contributed to by these individuals.

%files -n %{devname}
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure --disable-static

%make DEFAULT_MENU=%{_sysconfdir}/xdg/openbox/menu.xml

%install
%makeinstall_std

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/start%{name} <<EOF
#!/bin/sh
%{_bindir}/xsetroot -solid Black
exec %{_bindir}/openbox-session
EOF

chmod 0755 %{buildroot}%{_bindir}/start%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15040 |21mr|openbox-menu-0.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
Summary:	Dynamic menus in Openbox WM

Name:		openbox-menu
Version:	0.5.0
Release:	5
License:	GPLv3
Group:		Graphical desktop/Other
URL:		http://mimarchlinux.googlecode.com/
Source0:	http://mimarchlinux.googlecode.com/files/%{name}-%{version}.tar.bz2

BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libmenu-cache)

Requires:	openbox
Requires:	menu-cache

%description 
An Openbox pipe-menu to display entries in *.desktop files.

%prep
%setup -q

%build
%make

%install
%makeinstall_std

%files 
%doc ChangeLog AUTHORS COPYING
/bin/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15041 |21mr|openbox-theme-mistral-thin-0-1.20170125.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git 20170125
%global oname Mistral-Thin

Summary:	Mistral Thin theme for Openbox
Name:		openbox-theme-mistral-thin
Version:	0
Release:	1.%{git}.4
# No license file included, CC-BY-SA mentioned on URL
License:	CC-BY-SA
Group:		Graphical desktop/LXQt
Url:		https://www.box-look.org/p/1169127/
Source0:	https://dl.opendesktop.org/api/files/download/id/1485351121/%{oname}.obt
Patch0:		openbox-theme-mistral-thin-0-inactive-button-background.patch
BuildArch:	noarch

%description
Mistral Thin theme for the Openbox window manager.

%files
%{_datadir}/themes/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -qc
%patch0 -p1

%build
# nothing to build here

%install
mkdir -p %{buildroot}/%{_datadir}/themes
cp -av %{oname} %{buildroot}/%{_datadir}/themes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15042 |21mr|openbox-theme-rosa-breeze-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Rosa Breeze theme for Openbox
Name:		openbox-theme-rosa-breeze
Version:	1.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		http://rosalinux.com/
Source0:	Rosa-Breeze.tar.gz
BuildArch:	noarch

%description
Rosa Breeze theme for Openbox window manager.

It's inspired by Mistral-Thin theme and uses buttons from Natura theme.

%files
%{_datadir}/themes/Rosa-Breeze

#----------------------------------------------------------------------------

%prep
%setup -qc
sed -i "s/\(^window\.client\.padding\.width:\).*/\1 4/" Rosa-Breeze/openbox-3/themerc

%build

%install
mkdir -p %{buildroot}/%{_datadir}/themes
cp -rf * %{buildroot}/%{_datadir}/themes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15043 |21mr|opencc-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	Simplified-Traditional Chinese Conversion
Name:		opencc
Version:	1.1.2
Release:	1
License:	ASL 2.0
Group:		System/Libraries
Url:		http://code.google.com/p/opencc
Source0:	https://github.com/BYVoid/OpenCC/archive/ver.%{version}/OpenCC-ver.%{version}.tar.gz
Patch1:		opencc-1.1.2-ld_path.patch
BuildRequires:	cmake

%description
OpenCC - Simplified-Traditional Chinese Conversion.

%files
%doc AUTHORS
%{_bindir}/*
%{_datadir}/opencc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime library for OpenCC
Group:		System/Libraries

%description -n %{libname}
Runtime Libraries for OpenCC.

%files -n %{libname}
%{_libdir}/libopencc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for OpenCC
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development tools for OpenCC.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn OpenCC-ver.%{version}
%autopatch -p1

%build
%cmake
%make_build

%install
%make_install -C build




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15044 |21mr|opencc-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	Simplified-Traditional Chinese Conversion
Name:		opencc
Version:	1.1.3
Release:	1
License:	ASL 2.0
Group:		System/Libraries
Url:		http://code.google.com/p/opencc
Source0:	https://github.com/BYVoid/OpenCC/archive/ver.%{version}/OpenCC-ver.%{version}.tar.gz
Patch1:		opencc-1.1.2-ld_path.patch
BuildRequires:	cmake

%description
OpenCC - Simplified-Traditional Chinese Conversion.

%files
%doc AUTHORS
%{_bindir}/*
%{_datadir}/opencc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime library for OpenCC
Group:		System/Libraries

%description -n %{libname}
Runtime Libraries for OpenCC.

%files -n %{libname}
%{_libdir}/libopencc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for OpenCC
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development tools for OpenCC.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -qn OpenCC-ver.%{version}
%autopatch -p1

%build
%cmake
%make_build

%install
%make_install -C build




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15045 |21mr|opencl-headers-2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 59ac4dc2f282286d8db83143686cfe37ec658b84

%global shortcommit %(c=%{commit}; echo ${c:0:7})
%global cl_hpp_ver 2.0.16

Summary:	OpenCL (Open Computing Language) header files
Name:		opencl-headers
Version:	2.2
Release:	2
License:	MIT
Group:		Development/Other
Url:		https://www.khronos.org/registry/cl/
Source0:	https://github.com/KhronosGroup/OpenCL-Headers/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
Source1:	https://github.com/KhronosGroup/OpenCL-CLHPP/releases/download/v%{cl_hpp_ver}/OpenCL-CLHPP-%{cl_hpp_ver}.tar.gz
# OCL 1.2 compatibility
Source2:	https://www.khronos.org/registry/cl/api/2.1/cl.hpp
Conflicts:	nvidia-cuda-toolkit-devel < 7.5.18-10
Conflicts:	mesa-opencl-devel
BuildArch:	noarch

%description
OpenCL (Open Computing Language) header files.

%files
%dir %{_includedir}/CL
%{_includedir}/CL/cl2.hpp
%{_includedir}/CL/cl_egl.h
%{_includedir}/CL/cl_ext.h
%{_includedir}/CL/cl_ext_intel.h
%{_includedir}/CL/cl_gl_ext.h
%{_includedir}/CL/cl_gl.h
%{_includedir}/CL/cl.h
%{_includedir}/CL/cl_half.h
%{_includedir}/CL/cl.hpp
%{_includedir}/CL/cl_icd.h
%{_includedir}/CL/cl_layer.h
%{_includedir}/CL/cl_platform.h
%{_includedir}/CL/cl_va_api_media_sharing_intel.h
%{_includedir}/CL/cl_version.h
%{_includedir}/CL/opencl.h
%{_includedir}/CL/opencl.hpp

#----------------------------------------------------------------------------

%prep
%setup -qn OpenCL-Headers-%{commit}

tar -xf %{SOURCE1}
cp -p OpenCL-CLHPP-%{cl_hpp_ver}/include/CL/{cl2,opencl}.hpp %{SOURCE2} .

%build
# Nothing to build

%install
mkdir -p %{buildroot}%{_includedir}/CL/
install -p -m 0644 *hpp CL/* -t %{buildroot}%{_includedir}/CL/
# We're not interested in Direct3D things
rm -vf %{buildroot}%{_includedir}/CL/cl_{dx9,d3d}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15046 |21mr|OpenColorIO-2.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Enables color transforms and image display across graphics apps
Name:		OpenColorIO
Version:	2.1.1
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://opencolorio.org/
Source0:	https://github.com/AcademySoftwareFoundation/OpenColorIO/archive/v%{version}.tar.gz

BuildRequires:	cmake
BuildRequires:	git
BuildRequires:	OpenImageIO
BuildRequires:	boost-devel
BuildRequires:	pybind11-devel
BuildRequires:	pystring-devel
BuildRequires:	tinyxml-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(OpenImageIO)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(yaml-cpp)
BuildRequires:	pkgconfig(zlib)

%description
OCIO enables color transforms and image display to be handled in a consistent
manner across multiple graphics applications. Unlike other color management
solutions, OCIO is geared towards motion-picture post production, with an
emphasis on visual effects and animation color pipelines.

%files
%doc CHANGELOG.md
%license LICENSE
%{_bindir}/*
%{python3_sitearch}/Py%{name}.so
%{_datadir}/ocio

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Enables color transforms and image display across graphics apps
Group:		System/Libraries

%description -n %{libname}
Enables color transforms and image display across graphics apps.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name} library.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/OpenColorIO
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake	\
	-DCMAKE_SKIP_RPATH=TRUE		\
	-DOCIO_BUILD_DOCS=OFF		\
	-DOCIO_BUILD_STATIC=OFF		\
	-DOCIO_BUILD_TESTS=OFF		\
	-DOCIO_PYGLUE_LINK=OFF		\
%ifnarch x86_64
	-DOCIO_USE_SSE=OFF		\
%endif
	-DOpenGL_GL_PREFERENCE=GLVND	\
	-DPYTHON=%{__python3}		\
	-DUSE_EXTERNAL_LCMS=TRUE	\
	-DUSE_EXTERNAL_SETUPTOOLS=TRUE	\
	-DUSE_EXTERNAL_TINYXML=TRUE	\
	-DUSE_EXTERNAL_YAML=TRUE
%make_build

%install
%make_install -C build

rm -f %{buildroot}%{_libdir}/libOpenColorIO*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15047 |21mr|openconnect-8.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 5
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

%global	__requires_exclude /system/bin/sh

Summary:	Open client for Cisco AnyConnect VPN
Name:		openconnect
Version:	8.20
Release:	1
License:	LGPLv2.1+
Group:		Networking/Other
Url:		http://www.infradead.org/openconnect.html
Source0:	ftp://ftp.infradead.org:21/pub/openconnect/%{name}-%{version}.tar.gz
BuildRequires:	vpnc
BuildRequires:	python3
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(p11-kit-1)
BuildRequires:	pkgconfig(zlib)

%description
This package provides a client for Cisco's "AnyConnect" VPN, which uses HTTPS
and DTLS protocols.

%files -f %{name}.lang
%doc COPYING.LGPL TODO
%{_sbindir}/%{name}
%{_mandir}/man8/*
%{_datadir}/bash-completion/completions/%{name}
#{_docdir}/%%{name}
%{_libexecdir}/%{name}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libopenconnect.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_includedir}/%{name}.h
%{_libdir}/libopenconnect.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure	--disable-static \
			--with-vpnc-script=/etc/vpnc/vpnc-script \
			--with-openssl \
			--without-openssl-version-check \
			--with-default-gnutls-priority="@SYSTEM"

%make_build


%install
%make_install

# Drop script for Android
rm -f %{buildroot}%{_libexecdir}/%{name}/hipreport-android.sh

%find_lang %{name}


%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15048 |21mr|opencore-amr-0.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname -d %{name}

Summary:	Adaptive Multi Rate speech codec
Name:		opencore-amr
Version:	0.1.6
Release:	1
License:	Apache License
Group:		Sound
Url:		https://sourceforge.net/projects/opencore-amr
Source0:	https://sourceforge.net/projects/opencore-amr/files/opencore-amr/%{name}-%{version}.tar.gz

%description
This library contains an implementation of the 3GPP TS 26.073
specification for the Adaptive Multi Rate (AMR) speech codec. The
implementation is derived from the OpenCORE framework, part of the
Google Android project.

#-----------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Adaptive Multi Rate speech codec

%description -n %{libname}
This library contains an implementation of the 3GPP TS 26.073 specification
for the Adaptive Multi Rate (AMR) speech codec. The implementation is derived
from the OpenCORE framework, part of the Google Android project.
This  package contains the library itself.

%files -n %{libname}
%doc README LICENSE
%{_libdir}/libopencore-amr??.so.%{major}*

#-----------------------------------------------------------------

%package -n %{devname}
Group:		Development/C++
Summary:	Adaptive Multi Rate speech codec - development files
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This library contains an implementation of the 3GPP TS 26.073 specification
for the Adaptive Multi Rate (AMR) speech codec. The implementation is derived
from the OpenCORE framework, part of the Google Android project.
This  package contains the development files for %{libname}.

%files -n %{devname}
%doc README LICENSE
%{_libdir}/libopencore-amr??.so
%{_libdir}/libopencore-amr??.a
%{_includedir}/opencore-amr??
%{_libdir}/pkgconfig/opencore-amrnb.pc
%{_libdir}/pkgconfig/opencore-amrwb.pc

#-----------------------------------------------------------------

%prep
%setup -q


%build
%configure --enable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15049 |21mr|opencryptoki-3.14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _hardened_build 1

%define major 0
%define libname %mklibname %{name} %{major}
%define libname_pkcs11_sw %mklibname pkcs11_sw %{major}
%define libname_pkcs11_tmp %mklibname pkcs11_tmp %{major}
%define libname_pkcs11_icsf %mklibname pkcs11_icsf %{major}
%define devname %mklibname %{name} -d
%define devname_pkcs11_sw %mklibname pkcs11_sw -d
%define devname_pkcs11_tmp %mklibname pkcs11_tmp -d
%define devname_pkcs11_icsf %mklibname pkcs11_icsf -d

Summary:	Implementation of the PKCS#11 (Cryptoki) specification v2.11
Name:		opencryptoki
Version:	3.14.0
Release:	2
License:	CPL
Group:		System/Base
Url:		https://github.com/opencryptoki/opencryptoki
Source0:	https://github.com/opencryptoki/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	%{name}-tmpfiles.conf
Source2:	sysusers.d-pkcs11.conf
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	systemd
#gcc in aarch64 not provided libitm
%ifnarch aarch64 %{e2k}
BuildRequires:	itm-devel
%endif
BuildRequires:	openldap-devel
BuildRequires:	trousers-devel
BuildRequires:	pkgconfig(openssl)
# %%sysusers_create_package was backported to systemd-230
BuildRequires:	systemd >= 230-14
Requires:	%{name}-libs = %{EVRD}
Requires(pre):	systemd >= 230-14

%description
Opencryptoki implements the PKCS#11 specification v2.11 for a set of
cryptographic hardware, such as IBM 4764 and 4765 crypto cards, and the
Trusted Platform Module (TPM) chip. Opencryptoki also brings a software
token implementation that can be used without any cryptographic
hardware.
This package contains the Slot Daemon (pkcsslotd) and general utilities.

%files
%doc ChangeLog FAQ README.md doc/opencryptoki-howto.md doc/README.token_data
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%config(noreplace) %{_sysusersdir}/pkcs11.conf
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/pkcsslotd.service
%{_sbindir}/pkcsconf
%{_sbindir}/pkcsslotd
%{_sbindir}/p11sak
%{_mandir}/man1/pkcsconf.1*
%{_mandir}/man1/p11sak.1*
%{_mandir}/man5/%{name}.conf.5*
%{_mandir}/man7/%{name}.7*
%{_mandir}/man8/pkcsslotd.8*
%{_libdir}/opencryptoki/methods
%{_libdir}/pkcs11/methods
%dir %attr(770,root,pkcs11) %{_sharedstatedir}/%{name}
%ghost %dir %attr(770,root,pkcs11) %{_localstatedir}/lock/%{name}
%ghost %dir %attr(770,root,pkcs11) %{_localstatedir}/lock/%{name}/*
%dir %attr(770,root,pkcs11) %{_localstatedir}/log/%{name}
%dir %attr(770,root,pkcs11) %{_sharedstatedir}/%{name}/swtok/
%dir %attr(770,root,pkcs11) %{_sharedstatedir}/%{name}/swtok/TOK_OBJ/
%dir %attr(770,root,pkcs11) %{_sharedstatedir}/%{name}/tpm/
%dir %attr(770,root,pkcs11) %{_sharedstatedir}/%{name}/icsf/

%pre
%sysusers_create_package pkcs11 %{SOURCE2}

%post
%tmpfiles_create %{name}.conf
%systemd_post pkcsslotd.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	The run-time libraries for opencryptoki package
Group:		System/Libraries
Requires:	%{libname_pkcs11_sw} = %{EVRD}
Requires:	%{libname_pkcs11_tmp} = %{EVRD}
Requires:	%{libname_pkcs11_icsf} = %{EVRD}
Provides:	%{name}-libs = %{EVRD}

%description -n %{libname}
Opencryptoki implements the PKCS#11 specification v2.11 for a set of
cryptographic hardware, such as IBM 4764 and 4765 crypto cards, and the
Trusted Platform Module (TPM) chip. Opencryptoki also brings a software
token implementation that can be used without any cryptographic
hardware.
This package contains the PKCS#11 library implementation, and requires
at least one token implementation (packaged separately) to be fully
functional.

%files -n %{libname}
%doc LICENSE
%{_sysconfdir}/ld.so.conf.d/*
# Unversioned .so symlinks usually belong to -devel packages, but opencryptoki
# needs them in the main package, because:
# documentation suggests that programs should dlopen "PKCS11_API.so".
%{_libdir}/%{name}/lib%{name}.so
%{_libdir}/%{name}/lib%{name}.so.%{major}*
%{_libdir}/%{name}/PKCS11_API.so
%{_libdir}/pkcs11/lib%{name}.so
%{_libdir}/pkcs11/PKCS11_API.so
%{_libdir}/pkcs11/stdll

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for openCryptoki
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_pkcs11_sw} = %{EVRD}
Requires:	%{libname_pkcs11_tmp} = %{EVRD}
Requires:	%{libname_pkcs11_icsf} = %{EVRD}
Provides:	%{devname_pkcs11_sw} = %{EVRD}
Provides:	%{devname_pkcs11_tmp} = %{EVRD}
Provides:	%{devname_pkcs11_icsf} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development header files for building
opencryptoki and PKCS#11 based applications

%files -n %{devname}
%doc LICENSE
%{_includedir}/%{name}/*.h

#------------------------------------------------------------------

%package -n %{libname_pkcs11_sw}
Summary:	The software token implementation for opencryptoki
Group:		System/Libraries
Requires:	%{name}-libs = %{EVRD}
Provides:	%{name}-swtok = %{EVRD}

%description -n %{libname_pkcs11_sw}
Opencryptoki implements the PKCS#11 specification v2.11 for a set of
cryptographic hardware, such as IBM 4764 and 4765 crypto cards, and the
Trusted Platform Module (TPM) chip. Opencryptoki also brings a software
token implementation that can be used without any cryptographic
hardware.
This package brings the software token implementation to use opencryptoki
without any specific cryptographic hardware.

%files -n %{libname_pkcs11_sw}
%doc LICENSE
%{_libdir}/%{name}/stdll/libpkcs11_sw.so
%{_libdir}/%{name}/stdll/libpkcs11_sw.so.%{major}*
%{_libdir}/%{name}/stdll/PKCS11_SW.so

#------------------------------------------------------------------

%package -n %{libname_pkcs11_tmp}
Summary:	Trusted Platform Module (TPM) device support for opencryptoki
Group:		System/Libraries
Requires:	%{name}-libs = %{EVRD}
Provides:	%{name}-tpmtok = %{EVRD}

%description -n %{libname_pkcs11_tmp}
Opencryptoki implements the PKCS#11 specification v2.11 for a set of
cryptographic hardware, such as IBM 4764 and 4765 crypto cards, and the
Trusted Platform Module (TPM) chip. Opencryptoki also brings a software
token implementation that can be used without any cryptographic
hardware.
This package brings the necessary libraries and files to support
Trusted Platform Module (TPM) devices in the opencryptoki stack.

%files -n %{libname_pkcs11_tmp}
%doc doc/README.tpm_stdll
%{_libdir}/%{name}/stdll/libpkcs11_tpm.so
%{_libdir}/%{name}/stdll/libpkcs11_tpm.so.%{major}*
%{_libdir}/%{name}/stdll/PKCS11_TPM.so

#------------------------------------------------------------------

%package -n %{libname_pkcs11_icsf}
Summary:	ICSF token support for opencryptoki
Group:		System/Libraries
Requires:	%{name}-libs = %{EVRD}
Provides:	%{name}-icsftok = %{EVRD}

%description -n %{libname_pkcs11_icsf}
Opencryptoki implements the PKCS#11 specification v2.11 for a set of
cryptographic hardware, such as IBM 4764 and 4765 crypto cards, and the
Trusted Platform Module (TPM) chip. Opencryptoki also brings a software
token implementation that can be used without any cryptographic
hardware.
This package brings the necessary libraries and files to support
ICSF token in the opencryptoki stack.

%files -n %{libname_pkcs11_icsf}
%doc doc/README.icsf_stdll
%{_sbindir}/pkcsicsf
%{_mandir}/man1/pkcsicsf.1*
%dir %{_libdir}/%{name}/stdll
%{_libdir}/%{name}/stdll/libpkcs11_icsf.so
%{_libdir}/%{name}/stdll/libpkcs11_icsf.so.%{major}*
%{_libdir}/%{name}/stdll/PKCS11_ICSF.so

#------------------------------------------------------------------

%prep
%autosetup -p1

# Upstream tarball has unnecessary executable perms set on the sources
find . -name '*.[ch]' -print0 | xargs -0 chmod -x

cp -p %{SOURCE1} %{name}-tmpfiles.conf
for d in icsf swtok tpm
do
	echo "D /var/lock/opencryptoki/$d 0770 root pkcs11 -" >> %{name}-tmpfiles.conf
done

%build
#./bootstrap.sh
%serverbuild
autoreconf -fi
%configure \
	--with-systemd=%{_unitdir} \
	--disable-icatok \
	--disable-ccatok \
	--disable-ep11tok \
	--disable-pkcsep11_migrate \
	--disable-pkcscca_migrate
%make CHGRP=/bin/true

%install
%makeinstall_std CHGRP=/bin/true

# Remove unwanted cruft
rm -f %{buildroot}%{_libdir}/%{name}/*.la
rm -f %{buildroot}%{_libdir}/%{name}/stdll/*.la

# systemd must create /var/lock/opencryptoki
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m0644 %{name}-tmpfiles.conf %{buildroot}%{_tmpfilesdir}/%{name}.conf
rm -fv %{buildroot}%{_unitdir}/tmpfiles.conf

mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/pkcs11.conf

mkdir -p %{buildroot}%{_sharedstatedir}/%{name}/swtok/TOK_OBJ/
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}/tpm/
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}/icsf/

rm -f %{buildroot}%{_libdir}/opencryptoki/methods
rm -f %{buildroot}%{_libdir}/pkcs11/methods
ln -s ../../sbin %{buildroot}%{_libdir}/opencryptoki/methods
ln -s ../../sbin %{buildroot}%{_libdir}/pkcs11/methods

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15050 |21mr|opencv-4.5.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 4
%define major %{api}.5
%define libopencv_aruco %mklibname opencv_aruco %{major}
%define libopencv_barcode %mklibname opencv_barcode %{major}
%define libopencv_bgsegm %mklibname opencv_bgsegm %{major}
%define libopencv_bioinspired %mklibname opencv_bioinspired %{major}
%define libopencv_calib3d %mklibname opencv_calib3d %{major}
%define libopencv_ccalib %mklibname opencv_ccalib %{major}
%define libopencv_core %mklibname opencv_core %{major}
%define libopencv_cvv %mklibname opencv_cvv %{major}
%define libopencv_datasets %mklibname opencv_datasets %{major}
%define libopencv_dnn %mklibname opencv_dnn %{major}
%define libopencv_dnn_objdetect %mklibname opencv_dnn_objdetect %{major}
%define libopencv_dpm %mklibname opencv_dpm %{major}
%define libopencv_face %mklibname opencv_face %{major}
%define libopencv_features2d %mklibname opencv_features2d %{major}
%define libopencv_flann %mklibname opencv_flann %{major}
%define libopencv_freetype %mklibname opencv_freetype %{major}
%define libopencv_fuzzy %mklibname opencv_fuzzy %{major}
%define libopencv_hdf %mklibname opencv_hdf %{major}
%define libopencv_hfs %mklibname opencv_hfs %{major}
%define libopencv_highgui %mklibname opencv_highgui %{major}
%define libopencv_img_hash %mklibname opencv_img_hash %{major}
%define libopencv_imgcodecs %mklibname opencv_imgcodecs %{major}
%define libopencv_imgproc %mklibname opencv_imgproc %{major}
%define libopencv_line_descriptor %mklibname opencv_line_descriptor %{major}
%define libopencv_ml %mklibname opencv_ml %{major}
%define libopencv_objdetect %mklibname opencv_objdetect %{major}
%define libopencv_optflow %mklibname opencv_optflow %{major}
%define libopencv_phase_unwrapping %mklibname opencv_phase_unwrapping %{major}
%define libopencv_photo %mklibname opencv_photo %{major}
%define libopencv_plot %mklibname opencv_plot %{major}
%define libopencv_reg %mklibname opencv_reg %{major}
%define libopencv_rgbd %mklibname opencv_rgbd %{major}
%define libopencv_saliency %mklibname opencv_saliency %{major}
%define libopencv_shape %mklibname opencv_shape %{major}
%define libopencv_stereo %mklibname opencv_stereo %{major}
%define libopencv_stitching %mklibname opencv_stitching %{major}
%define libopencv_structured_light %mklibname opencv_structured_light %{major}
%define libopencv_superres %mklibname opencv_superres %{major}
%define libopencv_surface_matching %mklibname opencv_surface_matching %{major}
%define libopencv_text %mklibname opencv_text %{major}
%define libopencv_tracking %mklibname opencv_tracking %{major}
%define libopencv_video %mklibname opencv_video %{major}
%define libopencv_videoio %mklibname opencv_videoio %{major}
%define libopencv_videostab %mklibname opencv_videostab %{major}
%define libopencv_viz %mklibname opencv_viz %{major}
%define libopencv_xfeatures2d %mklibname opencv_xfeatures2d %{major}
%define libopencv_ximgproc %mklibname opencv_ximgproc %{major}
%define libopencv_xobjdetect %mklibname opencv_xobjdetect %{major}
%define libopencv_xphoto %mklibname opencv_xphoto %{major}
%define libopencv_quality %mklibname opencv_quality %{major}
%define libopencv_gapi %mklibname opencv_gapi %{major}
%define libopencv_dnn_superres %mklibname opencv_dnn_superres %{major}
%define libopencv_dnn_modern %mklibname opencv_dnn_modern %{major}
%define libopencv_rapid %mklibname opencv_rapid %{major}
%define libopencv_alphamat %mklibname opencv_alphamat %{major}
%define libopencv_intensity_transform %mklibname opencv_intensity_transform %{major}
%define libopencv_mcc %mklibname opencv_mcc %{major}
%define libopencv_wechat_qrcode %mklibname opencv_wechat_qrcode %{major}
%define devname %mklibname %{name} -d

%bcond_without ffmpeg
%bcond_with java
%bcond_with docs
%bcond_with internet

Summary:	Open Source Computer Vision library
Name:		opencv
Version:	4.5.5
Release:	5
License:	GPLv2+
Group:		Sciences/Computer science
Url:		http://opencv.org/
Source0:	https://github.com/opencv/opencv/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/opencv/opencv_contrib/archive/%{version}.tar.gz?/%{name}_contrib-%{version}.tar.gz
Source2:	https://github.com/opencv/ade/archive/refs/tags/v0.1.1f.zip?/b624b995ec9c439cbc2e9e6ee940d3a2-v0.1.1f.zip
# From Fedora SRPM package
Source100:	%{name}.rpmlintrc
Patch0:		opencv-4.5.2-cmake-include-path.patch
Patch1:		opencv-3.4.5-pkgconfig.patch
Patch2:		opencv-4.5.0-link-with-cblas-for-lapack.patch
# upstreamed
Patch3:		ab181ac329bb19bdca5e266bc9fcaed36d5c51fb.patch
Patch4:		vtk9.patch
Patch5:		81a6d1b0d4d93a3330cc99fbb1601c90b9516a9c.patch
# https://nvd.nist.gov/vuln/detail/CVE-2023-2617
# https://github.com/opencv/opencv_contrib/pull/3480
Patch6:		CVE-2023-2617.patch
# https://nvd.nist.gov/vuln/detail/CVE-2023-2618
# https://github.com/opencv/opencv_contrib/pull/3484/commits/2b62ff6181163eea029ed1cab11363b4996e9cd6
Patch7:		CVE-2023-2618.patch

BuildRequires:	blas-devel
BuildRequires:	blas-static-devel
BuildRequires:	lapack-static-devel
BuildRequires:	cmake
BuildRequires:	protobuf-compiler
BuildRequires:	protobuf-devel
BuildRequires:	hdf5-devel
BuildRequires:	jpeg-devel
BuildRequires:	jsoncpp-devel
BuildRequires:	python3egg(pylint)
BuildRequires:	python3-flake8
BuildRequires:	python3-numpy-devel
BuildRequires:	%{_lib}vtk-devel
BuildRequires:	python-vtk
BuildRequires:	vtk-test-suite
BuildRequires:	pkgconfig(eigen3)
BuildRequires:	pkgconfig(lept)
BuildRequires:	pkgconfig(tesseract)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(gflags)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-riff-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	openjpeg2
BuildRequires:	opencl-headers
%if %{with ffmpeg}
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libswscale)
%endif
BuildRequires:	pkgconfig(libdc1394-2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
%if %{with java}
# Java bindings
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	ant
%endif
# Qt 5.x module
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Widgets)
%if %{with docs}
# Documentation generation
BuildRequires:	latex2html
%endif

%description
OpenCV (Open Source Computer Vision) is a library of programming
functions for real time computer vision.

#----------------------------------------------------------------------------

%package -n %{libopencv_aruco}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_aruco}
OpenCV shared library.

%files -n %{libopencv_aruco}
%{_libdir}/libopencv_aruco.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_barcode}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_barcode}
OpenCV shared library.

%files -n %{libopencv_barcode}
%{_libdir}/libopencv_barcode.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_bgsegm}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_bgsegm}
OpenCV shared library.

%files -n %{libopencv_bgsegm}
%{_libdir}/libopencv_bgsegm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_bioinspired}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_bioinspired}
OpenCV shared library.

%files -n %{libopencv_bioinspired}
%{_libdir}/libopencv_bioinspired.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_calib3d}
Summary:	OpenCV camera calibration library
Group:		System/Libraries
Requires:	%{libopencv_core} = %{EVRD}
Requires:	%{libopencv_imgproc} = %{EVRD}

%description -n %{libopencv_calib3d}
OpenCV library for camera calibration, stereo correspondence, and
elements of 3D data processing.

%files -n %{libopencv_calib3d}
%{_libdir}/libopencv_calib3d.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_ccalib}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_ccalib}
OpenCV shared library.

%files -n %{libopencv_ccalib}
%{_libdir}/libopencv_ccalib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_core}
Summary:	OpenCV core library
Group:		System/Libraries

%description -n %{libopencv_core}
OpenCV core library (basic structures, arithmetics and linear algebra,

%files -n %{libopencv_core}
%{_libdir}/libopencv_core.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_cvv}
Summary:	OpenCV core library
Group:		System/Libraries

%description -n %{libopencv_cvv}
OpenCV shared library.

%files -n %{libopencv_cvv}
%{_libdir}/libopencv_cvv.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_datasets}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_datasets}
OpenCV shared library.

%files -n %{libopencv_datasets}
%{_libdir}/libopencv_datasets.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_dnn}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_dnn}
OpenCV shared library.

%files -n %{libopencv_dnn}
%{_libdir}/libopencv_dnn.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_dnn_objdetect}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_dnn_objdetect}
OpenCV shared library.

%files -n %{libopencv_dnn_objdetect}
%{_libdir}/libopencv_dnn_objdetect.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_dpm}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_dpm}
OpenCV shared library.

%files -n %{libopencv_dpm}
%{_libdir}/libopencv_dpm.so.%{major}*

#----------------------------------------------------------------------------
%if %{with internet}
%package -n %{libopencv_face}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_face}
OpenCV shared library.

%files -n %{libopencv_face}
%{_libdir}/libopencv_face.so.%{major}*
#----------------------------------------------------------------------------

%package -n %{libopencv_dnn_modern}
Summary: OpenCV Modern Deep Learning Module
Group: System/Libraries

%description -n %{libopencv_dnn_modern}
The module is wrapper to tiny-dnn, a header only, dependency-free deep
learning framework in C++11.

%files -n %{libopencv_dnn_modern}
%{_libdir}/libopencv_dnn_modern.so.%{major}{,.*}

#----------------------------------------------------------------------------

%package -n %{libopencv_xfeatures2d}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_xfeatures2d}
OpenCV shared library.

%files -n %{libopencv_xfeatures2d}
%{_libdir}/libopencv_xfeatures2d.so.%{major}*
%endif
# ends internet

#--------------------------------------------------------------------------------

%package -n %{libopencv_gapi}
Summary:	OpenCV Graph API
Group:		System/Libraries

%description -n %{libopencv_gapi}
Graph API.

%files -n %{libopencv_gapi}
%{_libdir}/libopencv_gapi.so.%{major}{,.*}

#--------------------------------------------------------------------------------

%package -n %{libopencv_rapid}
Summary: OpenCV Modern Deep Learning Module
Group: System/Libraries

%description -n %{libopencv_rapid}
Rapid motion detection library.

%files -n %{libopencv_rapid}
%{_libdir}/libopencv_rapid.so.%{major}{,.*}

#--------------------------------------------------------------------------------

%package -n %{libopencv_intensity_transform}
Summary: OpenCV Modern Deep Learning Module
Group: System/Libraries

%description -n %{libopencv_intensity_transform}
Rapid motion detection library.

%files -n %{libopencv_intensity_transform}
%{_libdir}/libopencv_intensity_transform.so.%{major}{,.*}

#--------------------------------------------------------------------------------

%package -n %{libopencv_alphamat}
Summary: OpenCV Modern Deep Learning Module
Group: System/Libraries

%description -n %{libopencv_alphamat}
Rapid motion detection library.

%files -n %{libopencv_alphamat}
%{_libdir}/libopencv_alphamat.so.%{major}{,.*}


%package -n %{libopencv_features2d}
Summary:	OpenCV 2D feature detectors
Group:		System/Libraries
Requires:	%{libopencv_calib3d} = %{EVRD}
Requires:	%{libopencv_core} = %{EVRD}
Requires:	%{libopencv_flann} = %{EVRD}
Requires:	%{libopencv_highgui} = %{EVRD}
Requires:	%{libopencv_imgproc} = %{EVRD}

%description -n %{libopencv_features2d}
OpenCV 2D feature detectors and descriptors (SURF, FAST, etc.).

%files -n %{libopencv_features2d}
%{_libdir}/libopencv_features2d.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_flann}
Summary:	OpenCV FLANN library
Group:		System/Libraries

%description -n %{libopencv_flann}
OpenCV wrappers for the Fast Library for Approximate Neurest Neighbors
(FLANN).

%files -n %{libopencv_flann}
%{_libdir}/libopencv_flann.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_freetype}
Summary:	OpenCV Freetype library
Group:		System/Libraries

%description -n %{libopencv_freetype}
OpenCV Freetype library.

%files -n %{libopencv_freetype}
%{_libdir}/libopencv_freetype.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_fuzzy}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_fuzzy}
OpenCV shared library.

%files -n %{libopencv_fuzzy}
%{_libdir}/libopencv_fuzzy.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_hdf}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_hdf}
OpenCV shared library.

%files -n %{libopencv_hdf}
%{_libdir}/libopencv_hdf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_hfs}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_hfs}
OpenCV shared library.

%files -n %{libopencv_hfs}
%{_libdir}/libopencv_hfs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_highgui}
Summary:	OpenCV GUI and image/video I/O library
Group:		System/Libraries
Requires:	%{libopencv_core} = %{EVRD}
Requires:	%{libopencv_imgproc} = %{EVRD}

%description -n %{libopencv_highgui}
OpenCV GUI and image/video I/O library.

%files -n %{libopencv_highgui}
%{_libdir}/libopencv_highgui.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_img_hash}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_img_hash}
OpenCV shared library.

%files -n %{libopencv_img_hash}
%{_libdir}/libopencv_img_hash.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_imgcodecs}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_imgcodecs}
OpenCV shared library.

%files -n %{libopencv_imgcodecs}
%{_libdir}/libopencv_imgcodecs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_imgproc}
Summary:	OpenCV image processing library
Group:		System/Libraries
Requires:	%{libopencv_core} = %{EVRD}

%description -n %{libopencv_imgproc}
OpenCV image processing library (filter, Gaussian blur, erode, dilate,
resize, remap, etc.).

%files -n %{libopencv_imgproc}
%{_libdir}/libopencv_imgproc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_line_descriptor}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_line_descriptor}
OpenCV shared library.

%files -n %{libopencv_line_descriptor}
%{_libdir}/libopencv_line_descriptor.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_ml}
Summary:	OpenCV machine learning model library
Group:		System/Libraries
Requires:	%{libopencv_core} = %{EVRD}

%description -n %{libopencv_ml}
OpenCV statistical machine learning models (SVM,
decision trees, boosting, etc.).

%files -n %{libopencv_ml}
%{_libdir}/libopencv_ml.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_objdetect}
Summary:	OpenCV motion analysis and object tracking library
Group:		System/Libraries
Requires:	%{libopencv_core} = %{EVRD}
Requires:	%{libopencv_highgui} = %{EVRD}
Requires:	%{libopencv_imgproc} = %{EVRD}

%description -n %{libopencv_objdetect}
OpenCV object detection library (Haar and LBP face detectors, HOG
people detector, etc.).

%files -n %{libopencv_objdetect}
%{_libdir}/libopencv_objdetect.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_optflow}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_optflow}
OpenCV shared library.

%files -n %{libopencv_optflow}
%{_libdir}/libopencv_optflow.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_phase_unwrapping}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_phase_unwrapping}
OpenCV shared library.

%files -n %{libopencv_phase_unwrapping}
%{_libdir}/libopencv_phase_unwrapping.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_photo}
Summary:	OpenCV motion analysis and object tracking library
Group:		System/Libraries

%description -n %{libopencv_photo}
OpenCV motion analysis and object tracking library (optical flow,
motion templates, background subtraction, etc.).

%files -n %{libopencv_photo}
%{_libdir}/libopencv_photo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_plot}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_plot}
OpenCV shared library.

%files -n %{libopencv_plot}
%{_libdir}/libopencv_plot.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_reg}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_reg}
OpenCV shared library.

%files -n %{libopencv_reg}
%{_libdir}/libopencv_reg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_rgbd}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_rgbd}
OpenCV shared library.

%files -n %{libopencv_rgbd}
%{_libdir}/libopencv_rgbd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_saliency}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_saliency}
OpenCV shared library.

%files -n %{libopencv_saliency}
%{_libdir}/libopencv_saliency.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_shape}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_shape}
OpenCV shared library.

%files -n %{libopencv_shape}
%{_libdir}/libopencv_shape.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_stereo}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_stereo}
OpenCV shared library.

%files -n %{libopencv_stereo}
%{_libdir}/libopencv_stereo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_stitching}
Summary:	OpenCV Stitching Pipeline
Group:		System/Libraries

%description -n %{libopencv_stitching}
This figure illustrates the stitching module pipeline implemented in the
:ocv:class:`Stitcher` class. Using that class it's possible to configure/remove
some steps, i.e. adjust the stitching pipeline according to the particular
needs. All building blocks from the pipeline are available in the ``detail``
namespace, one can combine and use them separately.

%files -n %{libopencv_stitching}
%{_libdir}/libopencv_stitching.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_structured_light}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_structured_light}
OpenCV shared library.

%files -n %{libopencv_structured_light}
%{_libdir}/libopencv_structured_light.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_superres}
Summary:	OpenCV super-resolution support
Group:		System/Libraries
Requires:	%{libopencv_core} = %{EVRD}

%description -n %{libopencv_superres}
Super-resolution support for OpenCV.

%files -n %{libopencv_superres}
%{_libdir}/libopencv_superres.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_surface_matching}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_surface_matching}
OpenCV shared library.

%files -n %{libopencv_surface_matching}
%{_libdir}/libopencv_surface_matching.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_text}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_text}
OpenCV shared library.

%files -n %{libopencv_text}
%{_libdir}/libopencv_text.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_tracking}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_tracking}
OpenCV shared library.

%files -n %{libopencv_tracking}
%{_libdir}/libopencv_tracking.so.%{major}*

#----------------------------------------------------------------------------
%package -n %{libopencv_viz}
Summary:	OpenCV 3D visualization module
Group:		System/Libraries
Requires:	%{libopencv_core} = %{EVRD}

%description -n %{libopencv_viz}
OpenCV 3D visualization module.

%files -n %{libopencv_viz}
%{_libdir}/libopencv_viz.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_video}
Summary:	OpenCV motion analysis and object tracking library
Group:		System/Libraries
Requires:	%{libopencv_core} = %{EVRD}
Requires:	%{libopencv_imgproc} = %{EVRD}

%description -n %{libopencv_video}
OpenCV motion analysis and object tracking library (optical flow,
motion templates, background subtraction, etc.).

%files -n %{libopencv_video}
%{_libdir}/libopencv_video.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_videoio}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_videoio}
OpenCV shared library.

%files -n %{libopencv_videoio}
%{_libdir}/libopencv_videoio.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_videostab}
Summary:	OpenCV Video stabilization
Group:		System/Libraries

%description -n %{libopencv_videostab}
OpenCV Video stabilization module.

%files -n %{libopencv_videostab}
%{_libdir}/libopencv_videostab.so.%{major}*

#----------------------------------------------------------------------------


%package -n %{libopencv_ximgproc}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_ximgproc}
OpenCV shared library.

%files -n %{libopencv_ximgproc}
%{_libdir}/libopencv_ximgproc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_xobjdetect}
Summary:	OpenCV shared library
Group:		System/Libraries

%description -n %{libopencv_xobjdetect}
OpenCV shared library.

%files -n %{libopencv_xobjdetect}
%{_libdir}/libopencv_xobjdetect.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_xphoto}
Summary:	OpenCV motion analysis and object tracking library
Group:		System/Libraries

%description -n %{libopencv_xphoto}
OpenCV motion analysis and object tracking library (optical flow,
motion templates, background subtraction, etc.).

%files -n %{libopencv_xphoto}
%{_libdir}/libopencv_xphoto.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libopencv_quality}
Summary: OpenCV Quality API
Group: System/Libraries

%description -n %{libopencv_quality}
Quality API.

%files -n %{libopencv_quality}
%{_libdir}/libopencv_quality.so.%{major}{,.*}
%{_datadir}/opencv4/quality


#----------------------------------------------------------------------------

%package -n %{libopencv_dnn_superres}
Summary: OpenCV Super Resolution using CNNs module
Group: System/Libraries

%description -n %{libopencv_dnn_superres}
Implements compact CNN Model for Super Resolution.

%files -n %{libopencv_dnn_superres}
%{_libdir}/libopencv_dnn_superres.so.%{major}{,.*}

#----------------------------------------------------------------------------

%package -n %{libopencv_mcc}
Summary: OpenCV shared library
Group: System/Libraries

%description -n %{libopencv_mcc}
OpenCV shared library.

%files -n %{libopencv_mcc}
%{_libdir}/libopencv_mcc.so.%{major}{,.*}

#----------------------------------------------------------------------------

%package -n %{libopencv_wechat_qrcode}
Summary: OpenCV wechat qrcode library
Group: System/Libraries

%description -n %{libopencv_wechat_qrcode}
OpenCV wechat qrcode library.

%files -n %{libopencv_wechat_qrcode}
%{_libdir}/libopencv_wechat_qrcode.so.%{major}{,.*}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	OpenCV development files
Group:		Development/C
Requires:	%{libopencv_aruco} = %{EVRD}
Requires:	%{libopencv_barcode} = %{EVRD}
Requires:	%{libopencv_bgsegm} = %{EVRD}
Requires:	%{libopencv_bioinspired} = %{EVRD}
Requires:	%{libopencv_calib3d} = %{EVRD}
Requires:	%{libopencv_ccalib} = %{EVRD}
Requires:	%{libopencv_core} = %{EVRD}
Requires:	%{libopencv_cvv} = %{EVRD}
Requires:	%{libopencv_datasets} = %{EVRD}
Requires:	%{libopencv_dnn} = %{EVRD}
Requires:	%{libopencv_dnn_objdetect} = %{EVRD}
Requires:	%{libopencv_dpm} = %{EVRD}
%if %{with internet}
Requires:	%{libopencv_dnn_modern} = %{EVRD}
Requires:	%{libopencv_face} = %{EVRD}
Requires:	%{libopencv_xfeatures2d} = %{EVRD}
%endif
Requires:	%{libopencv_gapi} = %{EVRD}
Requires:	%{libopencv_features2d} = %{EVRD}
Requires:	%{libopencv_flann} = %{EVRD}
Requires:	%{libopencv_freetype} = %{EVRD}
Requires:	%{libopencv_fuzzy} = %{EVRD}
Requires:	%{libopencv_hdf} = %{EVRD}
Requires:	%{libopencv_hfs} = %{EVRD}
Requires:	%{libopencv_highgui} = %{EVRD}
Requires:	%{libopencv_img_hash} = %{EVRD}
Requires:	%{libopencv_imgcodecs} = %{EVRD}
Requires:	%{libopencv_imgproc} = %{EVRD}
Requires:	%{libopencv_line_descriptor} = %{EVRD}
Requires:	%{libopencv_ml} = %{EVRD}
Requires:	%{libopencv_objdetect} = %{EVRD}
Requires:	%{libopencv_optflow} = %{EVRD}
Requires:	%{libopencv_phase_unwrapping} = %{EVRD}
Requires:	%{libopencv_photo} = %{EVRD}
Requires:	%{libopencv_plot} = %{EVRD}
Requires:	%{libopencv_reg} = %{EVRD}
Requires:	%{libopencv_rgbd} = %{EVRD}
Requires:	%{libopencv_saliency} = %{EVRD}
Requires:	%{libopencv_shape} = %{EVRD}
Requires:	%{libopencv_stereo} = %{EVRD}
Requires:	%{libopencv_stitching} = %{EVRD}
Requires:	%{libopencv_structured_light} = %{EVRD}
Requires:	%{libopencv_superres} = %{EVRD}
Requires:	%{libopencv_surface_matching} = %{EVRD}
Requires:	%{libopencv_text} = %{EVRD}
Requires:	%{libopencv_tracking} = %{EVRD}
Requires:	%{libopencv_viz} = %{EVRD}
Requires:	%{libopencv_video} = %{EVRD}
Requires:	%{libopencv_videoio} = %{EVRD}
Requires:	%{libopencv_videostab} = %{EVRD}
Requires:	%{libopencv_ximgproc} = %{EVRD}
Requires:	%{libopencv_xobjdetect} = %{EVRD}
Requires:	%{libopencv_xphoto} = %{EVRD}
Requires:	%{libopencv_quality} = %{EVRD}
Requires:	%{libopencv_rapid} = %{EVRD}
Requires:	%{libopencv_alphamat} = %{EVRD}
Requires:	%{libopencv_intensity_transform} = %{EVRD}
Requires:	%{libopencv_mcc} = %{EVRD}
Requires:	%{libopencv_wechat_qrcode} = %{EVRD}
%if %{with java}
Requires:	%{name}-java = %{EVRD}
%endif
Requires:	python3-%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 3.1.0
Obsoletes:	%{name}-devel < 3.1.0

%description -n %{devname}
OpenCV development files.

%files -n %{devname}
%{_bindir}/opencv_version
%{_bindir}/opencv_model_diagnostics
%{_bindir}/setup_vars_opencv%{api}.sh
%{_datadir}/%{name}%{api}/valgrind*.supp
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/%{name}%{api}/*.cmake

#----------------------------------------------------------------------------

%package -n python3-opencv
Summary:	OpenCV Python 3 bindings
Group:		Development/Python

%description -n python3-opencv
OpenCV Python 3 bindings.

%files -n python3-opencv
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	OpenCV documentation
Group:		Documentation
BuildArch:	noarch

%description doc
OpenCV docs.

%files doc
%{_datadir}/OpenCV/doc
%endif

#----------------------------------------------------------------------------

%package samples
Summary:	OpenCV sample code
Group:		Documentation

%description samples
OpenCV sample code.

%files samples
%{_bindir}/opencv_annotation
%{_bindir}/opencv_interactive-calibration
%{_bindir}/opencv_visualisation
%{_bindir}/opencv_waldboost_detector
%dir %{_datadir}/%{name}%{api}
%{_datadir}/%{name}%{api}/samples
%{_datadir}/%{name}%{api}/haarcascades
%{_datadir}/%{name}%{api}/lbpcascades

#----------------------------------------------------------------------------

%if %{with java}
%package java
Summary:	Java bindings for OpenCV
Group:		Development/Java

%description java
Java bindings for OpenCV.

%files java
%{_datadir}/OpenCV/java
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -a1
# install ade neede for build gapi
mkdir -p .cache/ade
cp %{SOURCE2} .cache/ade

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1 -R
%patch6 -p1
%patch7 -p1

# use system libs etc.
#rm -rf 3rdparty/*
pushd 3rdparty
shopt -s extglob
rm -r !(openvx|quirc|ittnotify)
shopt -u extglob
popd
#sed -e '/add_subdirectory(.*3rdparty.*)/ d' -i CMakeLists.txt cmake/*cmake
sed -i '/ocv_install_3rdparty_licenses/d' cmake/OpenCVDetectOpenCL.cmake

%if %{without internet}
# Based on https://src.fedoraproject.org/rpms/opencv/blob/rawhide/f/opencv-clean.sh
# xfeatures2d is not buildable without internet (https://github.com/opencv/opencv_contrib/issues/1301)
find .. -type d -name dnn_modern -print | xargs rm -fvr
find .. -type d -name face -print | xargs rm -fvr
find .. -type d -name xfeatures2d -print | xargs rm -fvr
%endif

%build
%cmake \
	-DBUILD_EXAMPLES:BOOL=ON \
%if %{with docs}
	-DBUILD_DOCS:BOOL=ON \
%else
	-DBUILD_DOCS:BOOL=OFF \
%endif
	-DOpenGL_GL_PREFERENCE=GLVND \
	-DINSTALL_C_EXAMPLES:BOOL=ON \
	-DINSTALL_PYTHON_EXAMPLES:BOOL=ON \
	-DINSTALL_OCTAVE_EXAMPLES:BOOL=ON \
	-DPYTHON_PACKAGES_PATH=%{py3_platsitedir} \
%ifarch %{x86_64} %{ix86} %{e2k}
    -DCPU_BASELINE=SSE2 \
%endif
%if %{with ffmpeg}
	-DWITH_FFMPEG:BOOL=ON \
%else
	-DWITH_FFMPEG:BOOL=OFF \
%endif
	-DWITH_OPENGL:BOOL=ON \
	-DWITH_TIFF:BOOL=ON \
	-DWITH_IPP:BOOL=OFF \
	-DWITH_QT:BOOL=ON \
	-DWITH_ITT=OFF \
	-DBUILD_PROTOBUF=OFF \
	-DWITH_CAROTENE=OFF \
	-DWITH_VTK=ON \
	-DVTK_DIR=%{_libdir}/cmake/vtk/ \
	-DOPENCL_INCLUDE_DIR=%{_includedir}/CL \
	-DPROTOBUF_UPDATE_FILES=ON \
	-DWITH_CUDA:BOOL=OFF \
	-DOPENCV_EXTRA_MODULES_PATH=../opencv_contrib-%{version}/modules \
	-DOPENCV_GENERATE_PKGCONFIG=ON

%make_build VERBOSE=1

%install
%make_install -C build

ln -s %{name}%{api}.pc %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

# (tpg) remove not needed files
rm -rf %{buildroot}%{_datadir}/%{name}%{api}/licenses
rm -rf %{buildroot}%{_datadir}/licenses

# fix path in headers files
find %{buildroot}%{_includedir}/opencv4/opencv2 -type f -exec sed -i 's:include \x22\(opencv2\x2f.*\)\x22$:include <\1>:g' \{\} \;
find %{buildroot}%{_includedir}/opencv4/opencv2 -type f -exec sed -i 's:include <opencv2/:include <opencv4/opencv2/:g' \{\} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15051 |21mr|opendnssec-2.1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	DNSSEC key and zone management software
Name:		opendnssec
Version:	2.1.7
Release:	1
Group:		System/Base
License:	BSD
Url:		http://www.opendnssec.org/
Source0:	http://www.opendnssec.org/files/source/%{name}-%{version}.tar.gz
Source1:	ods-enforcerd.service
Source2:	ods-signerd.service
Source3:	ods.sysconfig
Source4:	conf.xml
Source5:	tmpfiles-opendnssec.conf
Source6:	opendnssec.cron
Source7:	opendnssec-2.1.sqlite_convert.sql
Source8:	opendnssec-2.1.sqlite_rpmversion.sql
Source9:	sysusers-opendnssec.conf

BuildRequires:	procps-ng
BuildRequires:	doxygen
BuildRequires:	systemd-units
BuildRequires:	perl-interpreter
BuildRequires:	libmicrohttpd-devel
BuildRequires:	pkgconfig(cunit)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(ldns) >= 1.6.12
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(sqlite3) >= 3.0.0
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(yaml-0.1)
BuildRequires:	pkgconfig(zlib)

Requires:	opencryptoki
Requires:	softhsm >= 2.5.0
# dlopen()'ed
Requires:	libsqlite3.so.0%{_arch_tag_suffix}

Requires(pre):	systemd
Requires(pre):	/bin/systemd-sysusers
# pre to add user ods to group softhsm
# Fedora uses group/user ods in both opendnssec and softhsm,
# but ROSA and Debian use different users
Requires(pre):    group(softhsm)
Requires(post):	util-linux
Requires(post):	%{_bindir}/softhsm2-util
# post for %%post scriptlet
Requires(post):	user(softhsm)
Requires(post):	%{_bindir}/sqlite3

%description
OpenDNSSEC was created as an open-source turn-key solution for DNSSEC.
It secures zone data just before it is published in an authoritative
name server. It requires a PKCS#11 crypto module library, such as softhsm

%prep
%autosetup -p1 -n %{name}-%{version}
# bump default policy ZSK keysize to 2048
sed -i "s/1024/2048/" conf/kasp.xml.in

%build
%configure --with-ldns=%{_libdir}
%make

%check
# Requires sample db not shipped with upstream
# make check

%install
%makeinstall_std

mkdir -p %{buildroot}%{_localstatedir}/opendnssec/{tmp,signed,signconf,enforcer}
install -d -m 0755 %{buildroot}%{_initrddir} %{buildroot}%{_sysconfdir}/cron.d/
install -m 0644 %{SOURCE6} %{buildroot}/%{_sysconfdir}/cron.d/opendnssec
rm -f %{buildroot}/%{_sysconfdir}/opendnssec/*.sample
mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/ods
install -m 0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/opendnssec/
mkdir -p %{buildroot}%{_tmpfilesdir}/
install -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/opendnssec.conf
mkdir -p %{buildroot}%{_localstatedir}/run/opendnssec
mkdir -p %{buildroot}%{_datadir}/opendnssec/
cp -a enforcer/utils %{buildroot}%{_datadir}/opendnssec/migration
cp -a enforcer/src/db/schema.* %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/
# fixup path for mysql/sqlite. Use our replacement sqlite_convert.sql to detect previous migration
cp -a %{SOURCE7} %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/sqlite_convert.sql
cp -a %{SOURCE8} %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/rpmversion.sql
sed -i "s:^SCHEMA=.*schema:SCHEMA=%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/schema:" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_sqlite
sed -i "s:find_problematic_zones.sql:%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/find_problematic_zones.sql:g" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_sqlite
sed -i "s:^SCHEMA=.*schema:SCHEMA=%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/schema:" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_mysql
sed -i "s:find_problematic_zones.sql:%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/find_problematic_zones.sql:g" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_mysql
sed -i "s:sqlite_convert.sql:%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/sqlite_convert.sql:g" %{buildroot}%{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_sqlite

mkdir -p %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE9} %{buildroot}%{_sysusersdir}/%{name}.conf

%files
%{_sysusersdir}/%{name}.conf
%{_unitdir}/ods-enforcerd.service
%{_unitdir}/ods-signerd.service
%config(noreplace) %{_tmpfilesdir}/opendnssec.conf
%attr(0770,root,ods) %dir %{_sysconfdir}/opendnssec
%attr(0770,root,ods) %dir %{_localstatedir}/opendnssec
%attr(0770,root,ods) %dir %{_localstatedir}/opendnssec/tmp
%attr(0775,root,ods) %dir %{_localstatedir}/opendnssec/signed
%attr(0770,root,ods) %dir %{_localstatedir}/opendnssec/signconf
%attr(0770,root,ods) %dir %{_localstatedir}/opendnssec/enforcer
%attr(0660,root,ods) %config(noreplace) %{_sysconfdir}/opendnssec/*.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/ods
%attr(0770,root,ods) %dir %{_localstatedir}/run/opendnssec
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/opendnssec
%doc NEWS README.md
%license LICENSE
%{_mandir}/*/*
%{_bindir}/ods-hsmspeed
%{_bindir}/ods-hsmutil
%{_bindir}/ods-kasp2html
%{_bindir}/ods-kaspcheck
%{_sbindir}/ods-control
%{_sbindir}/ods-enforcer
%{_sbindir}/ods-enforcerd
%{_sbindir}/ods-enforcer-db-setup
%{_sbindir}/ods-migrate
%{_sbindir}/ods-signer
%{_sbindir}/ods-signerd
%attr(0755,root,root) %dir %{_datadir}/opendnssec
%{_datadir}/opendnssec/*

%pre
%sysusers_create_package %{name} %{SOURCE9}

%post
# Initialise a slot on the softhsm on first install
if [ "$1" -eq 1 ]; then
# Fedora uses user:group ods:ods in both opendnssec and softhsm
# ROSA and Debian use different groups
   runuser -u softhsm -- %{_bindir}/softhsm2-util --init-token \
                --free --label "OpenDNSSEC" --pin 1234 --so-pin 1234
   if [ ! -s %{_localstatedir}/opendnssec/kasp.db ]; then
      echo y | %{_sbindir}/ods-enforcer-db-setup
      %{_bindir}/sqlite3 -batch %{_localstatedir}/opendnssec/kasp.db < %{_datadir}/opendnssec/migration/1.4-2.0_db_convert/rpmversion.sql
   fi

elif [ -z "$(%{_bindir}/sqlite3 %{_localstatedir}/opendnssec/kasp.db 'select * from rpm_migration;')" ]; then
   # Migrate version 1.4 db to version 2.1 db
   if [ -e %{_localstatedir}/opendnssec/rpm-migration-in-progress ]; then
      echo "previous (partial?) migration found - human intervention is needed"
   else
      echo "opendnssec 1.4 database found, migrating to 2.x"
      touch %{_localstatedir}/opendnssec/rpm-migration-in-progress
      mv -n %{_localstatedir}/opendnssec/kasp.db %{_localstatedir}/opendnssec/kasp.db-1.4
      echo "migrating conf.xml from 1.4 to 2.1 schema"
      cp -n %{_sysconfdir}/opendnssec/conf.xml %{_sysconfdir}/opendnssec/conf.xml-1.4
      # fixup incompatibilities inflicted upon us by upstream :(
      sed -i "/<Interval>.*Interval>/d" %{_sysconfdir}/opendnssec/conf.xml
      echo "Converting kasp.db"
      ERR=""
      %{_datadir}/opendnssec/migration/1.4-2.0_db_convert/convert_sqlite -i %{_localstatedir}/opendnssec/kasp.db-1.4 -o %{_localstatedir}/opendnssec/kasp.db || ERR="convert_sqlite error"
      chown ods.ods %{_localstatedir}/opendnssec/kasp.db
      cp -n %{_sysconfdir}/opendnssec/zonelist.xml %{_localstatedir}/opendnssec/enforcer/zones.xml
      if [ -z "$ERR" ]; then
         echo "calling ods-migrate"
         ods-migrate || ERR="ods-migrate failed"
         if [ -z "$ERR" ]; then
            echo "opendnssec 1.4 to 2.x migration completed"
            rm %{_localstatedir}/opendnssec/rpm-migration-in-progress
         else
            echo "ods-migrate process failed - human intervention is needed"
         fi
      else
         echo "%{_localstatedir}/opendnssec/kasp.db conversion failed - not calling ods-migrate to complete migration. human intervention is needed"
      fi
   fi
fi

# in case we update any xml conf file
ods-enforcer update all >/dev/null 2>/dev/null ||:

%systemd_post ods-enforcerd.service
%systemd_post ods-signerd.service

%preun
%systemd_preun ods-enforcerd.service
%systemd_preun ods-signerd.service

%postun
%systemd_postun_with_restart ods-enforcerd.service
%systemd_postun_with_restart ods-signerd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15052 |21mr|openexr3-3.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname openexr

%define	major 30
%define	api 3_1
%define libcore %mklibname %{name}core %{api} %{major}
%define	libiex  %mklibname iex %{api} %{major}
%define libilmthread %mklibname ilmthread %{api} %{major}
%define libname %mklibname %{name} %{api} %{major}
%define libutil %mklibname %{name}util %{api} %{major}
%define	devname %mklibname %{name} -d

Summary:	A high dynamic-range (HDR) image file format
Name:		openexr3
Version:	3.1.4
Release:	2
License:	BSD
Group:		Graphics
Url:		https://www.openexr.com
Source0:	https://github.com/AcademySoftwareFoundation/openexr/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(Imath)
BuildRequires:	pkgconfig(zlib)

%description
Industrial Light & Magic developed the OpenEXR format in response to the demand
for higher color fidelity in the visual effects industry.

#----------------------------------------------------------------------------

%package utils
Summary:	A high dynamic-range (HDR) image file format
Group:		Graphics

%description utils
Industrial Light & Magic developed the OpenEXR format in response to the demand
for higher color fidelity in the visual effects industry.

%files utils
%doc LICENSE.md
%{_bindir}/exr*

#----------------------------------------------------------------------------

%package -n %{libcore}
Summary:	OpenEXRCore Library
Group:		System/Libraries

%description -n %{libcore}
OpenEXRCore Library.

%files -n %{libcore}
%doc LICENSE.md
%{_libdir}/libOpenEXRCore-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libiex}
Summary:	Abraction/convenience library for OpenEXR
Group:		System/Libraries

%description -n %{libiex}
Iex is an exception-handling library.

%files -n %{libiex}
%license LICENSE.md
%{_libdir}/libIex-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libilmthread}
Summary:	Abraction/convenience library for OpenEXR
Group:		System/Libraries

%description -n %{libilmthread}
IlmThread is a thread abstraction library for use with OpenEXR
and other software packages.

%files -n %{libilmthread}
%license LICENSE.md
%{_libdir}/libIlmThread-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	OpenEXR Library
Group:		System/Libraries

%description -n %{libname}
OpenEXR Library.

%files -n %{libname}
%doc LICENSE.md
%{_libdir}/libOpenEXR-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libutil}
Summary:	OpenEXRUtil Library
Group:		System/Libraries

%description -n %{libutil}
OpenEXRUtil Library.

%files -n %{libutil}
%doc LICENSE.md
%{_libdir}/libOpenEXRUtil-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{oname}
Group:		Development/C
Requires:	%{libcore} = %{EVRD}
Requires:	%{libiex} = %{EVRD}
Requires:	%{libilmthread} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libutil} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{mklibname ilmbase -d} <= %{EVRD}
Conflicts:	%{mklibname IlmImf -d} <= %{EVRD}

%description -n %{devname}
Libraries and header files for developing programs based on %{oname}.

%files -n %{devname}
%doc CHANGES.md CONTRIBUTING.md GOVERNANCE.md SECURITY.md CODE_OF_CONDUCT.md CONTRIBUTORS.md README.md
%license LICENSE.md
%{_defaultdocdir}/OpenEXR/examples
%{_includedir}/OpenEXR
%{_libdir}/*.so
%{_libdir}/cmake/OpenEXR/*.cmake
%{_libdir}/pkgconfig/OpenEXR.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%ifarch %{e2k}
%global optflags %{optflags} -mno-f16c
%endif
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15053 |21mr|openfec-1.4.2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Application-Level Forward Erasure Correction codes
Name:		openfec
Version:	1.4.2.9
Release:	1
Group:		System/Libraries
License:	CeCILL-C and GPLv2+ and BSD
URL:		https://github.com/roc-streaming/openfec
Source0:	https://github.com/roc-streaming/openfec/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	coreutils
BuildRequires:	findutils

%description
Application-Level Forward Erasure Correction codes, or AL-FEC (also called
UL-FEC, for Upper-Layers FEC). The idea, in one line, is to add redundancy
in order to be able to recover from erasures. Because of their position in
the communication stack, these codes are implemented as software codecs,
and they find many applications in robust transmission and distrituted
storage systems.

%files
%license LICENCE_CeCILL-C_V1-en.txt Licence_CeCILL_V2-en.txt
%doc README CHANGELOG
%{_libdir}/libopenfec.so.1*

#------------------------------------------------------------------

%package devel
Summary: Development libraries for openfec
Group:		Development/C++
Requires:	%{name} = %{EVRD}

%description devel
The openfec-devel package contains header files necessary for
developing programs using openfec.

%files devel
%{_includedir}/%{name}
%{_libdir}/libopenfec.so
%{_datadir}/pkgconfig/openfec.pc

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make_build

%install
%make_install -C build

# Install headers
mkdir -p %{buildroot}%{_includedir}/%{name}
pushd src
find -name '*.h' -type f -exec install -pDm 0644 '{}' %{buildroot}%{_includedir}/%{name}/'{}' \;
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15054 |21mr|openfortivpn-1.17.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Client for PPP+SSL VPN tunnel services
Name:		openfortivpn
Version:	1.17.3
Release:	2
License:	GPLv3
Group:		Networking/Remote access
Url:		https://github.com/adrienverge/openfortivpn
Source0:	https://github.com/adrienverge/openfortivpn/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(libsystemd)

Requires:   ppp
Requires:   opensc

%description
openfortivpn is a client for PPP+SSL VPN tunnel services.
It spawns a pppd process and operates the communication between the gateway and this process.
It is compatible with Fortinet VPNs.

%files
%license LICENSE*
%doc *.md
%{_bindir}/openfortivpn
%{_unitdir}/openfortivpn@.service
%{_mandir}/man1/openfortivpn.1*
%dir %{_datadir}/openfortivpn
%{_datadir}/openfortivpn/config.template
%dir %{_sysconfdir}/openfortivpn
%config(noreplace) %{_sysconfdir}/openfortivpn/config

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15055 |21mr|openh264-2.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	Open Source H.264 Codec
Name:		openh264
Version:	2.1.1
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://www.openh264.org/
Source0:	https://github.com/cisco/openh264/archive/v%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Source2:	https://github.com/mozilla/gmp-api/archive/master.zip
BuildRequires:	nasm
BuildRequires:	unzip

%description
OpenH264 is a codec library which supports H.264 encoding and decoding.
It is suitable for use in real time applications such as WebRTC.

#Any software projects that use Cisco's source code instead of its binaries
#would be legally responsible for paying all royalties to MPEG LA themselves.

%files
%{_bindir}/h264enc
%{_bindir}/h264dec

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Open Source H.264 Codec
Group:		System/Libraries

%description -n %{libname}
OpenH264 is a codec library which supports H.264 encoding and decoding.
It is suitable for use in real time applications such as WebRTC.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and libraries for the package %{name}.

%files -n %{devname}
%doc README.md LICENSE CONTRIBUTORS
%{_includedir}/wels
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n mozilla-openh264
Summary:	H.264 codec support for Mozilla browsers
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n mozilla-openh264
The mozilla-openh264 package contains a H.264 codec plugin for Mozilla
browsers.

%files -n mozilla-openh264
%{_sysconfdir}/profile.d/gmpopenh264.sh
%dir %{_libdir}/firefox
%dir %{_libdir}/firefox/defaults
%dir %{_libdir}/firefox/defaults/pref
%{_libdir}/firefox/defaults/pref/gmpopenh264.js
%{_libdir}/mozilla/plugins/gmp-gmpopenh264/

#----------------------------------------------------------------------------

%prep
%setup -q -a 2

#------------------------|
# Api for mozilla plugin
mv gmp-api-master gmp-api
#------------------------|

%build
# Update the makefile with our build options
sed -i -e 's|^CFLAGS_OPT=.*$|CFLAGS_OPT=%{optflags}|' Makefile
sed -i -e 's|^PREFIX=.*$|PREFIX=%{_prefix}|' Makefile
sed -i -e 's|^LIBDIR_NAME=.*$|LIBDIR_NAME=%{_lib}|' Makefile
sed -i -e 's|^SHAREDLIB_DIR=.*$|SHAREDLIB_DIR=%{_libdir}|' Makefile
sed -i -e '/^CFLAGS_OPT=/i LDFLAGS=%{ldflags}' Makefile

# And pkgconfig file too
sed -i -e 's|^libdir=.*$|libdir=\$\{prefix\}/%{_lib}|' %{name}.pc.in


%make \
	CC=%{__cc} \
	CXX=%{__cxx}

# build mozilla plugin
%make plugin \
	CC=%{__cc} \
	CXX=%{__cxx}

%install
%makeinstall_std

#--------------------------------------------|
#Install mozilla plugin
install -dm 755 %{buildroot}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed
ln -s %{_bindir}/h264enc %{buildroot}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed/h264enc
install -m 755 libgmpopenh264.so* %{buildroot}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed/
install -m 644 gmpopenh264.info %{buildroot}%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed/

# cofiguration for mozilla plugin
install -dm 755 %{buildroot}%{_libdir}/firefox/defaults/pref
cat > %{buildroot}%{_libdir}/firefox/defaults/pref/gmpopenh264.js << EOF
pref("media.gmp-gmpopenh264.autoupdate", false);
pref("media.gmp-gmpopenh264.version", "system-installed");
pref("media.gmp-gmpopenh264.enabled", true);
pref("media.gmp-gmpopenh264.provider.enabled", true);
pref("media.peerconnection.video.h264_enabled", true);
EOF

install -dm 755 %{buildroot}%{_sysconfdir}/profile.d
cat > %{buildroot}%{_sysconfdir}/profile.d/gmpopenh264.sh << EOF
MOZ_GMP_PATH="%{_libdir}/mozilla/plugins/gmp-gmpopenh264/system-installed"
export MOZ_GMP_PATH
EOF
#end install mozilla plugin
#--------------------------------------------|

# Tools for openh264
install -dm 755 %{buildroot}%{_bindir}
install -m 755 h264enc h264dec %{buildroot}%{_bindir}/

# Remove static libraries
rm %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15056 |21mr|openhft-affinity-3.0.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# net_openhft_ticker_impl_JNIClock.cpp:59:25: error: 'rdtsc' was not declared in this scope
# https://github.com/OpenHFT/Java-Thread-Affinity/issues/32
%ifnarch %{ix86} x86_64
%global debug_package %{nil}
%endif

Name:          openhft-affinity
Version:       3.0.6
Release:       13
Summary:       Java Thread Affinity library
# ASL 2.0 :
# ./affinity/src/main/c/net_openhft_ticker_impl_JNIClock.cpp
# ./affinity/src/main/c/software_chronicle_enterprise_internals_impl_NativeAffinity.cpp
# ./affinity/src/main/c/software_chronicle_enterprise_internals_impl_NativeAffinity_MacOSX.c
# ./affinity/src/main/java/net/openhft/affinity/MicroJitterSampler.java
License:       LGPLv3 and ASL 2.0
Group:         Development/Java
URL:           https://github.com/OpenHFT/Java-Thread-Affinity/
Source0:       https://github.com/OpenHFT/Java-Thread-Affinity/archive/affinity-%{version}.tar.gz

BuildRequires: gcc-c++
BuildRequires: maven-local
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java.dev.jna:jna)
BuildRequires: mvn(net.java.dev.jna:jna-platform)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.felix:org.apache.felix.framework)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.jetbrains:annotations)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.osgi:org.osgi.core)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)

%description
The library will read your /proc/cpuinfo if you have one or
provide one and it will determine your CPU layout.
If you don't have one it will assume every CPU is on one Socket.

The library looks for isolated CPUs determined by looking at the
CPUs you are not running on by default. i.e. if you have 16 CPUs
but 8 of them are not available for general use (as determined
by the affinity of the process on startup) it will start assigning to
those CPUs.

%package javadoc
Summary:       Javadoc for %{name}
Group:          Development/Java
BuildArch:     noarch

%description javadoc
This package contains javadoc for %{name}.

%package test
Summary:       OpenHFT Java Thread Affinity Test Library
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description test
OpenHFT Java Thread Affinity Test Library.

%prep
%setup -q -n Java-Thread-Affinity-affinity-%{version}

%pom_remove_parent
%pom_xpath_inject pom:project "<groupId>net.openhft</groupId>"

%pom_remove_parent affinity
%pom_xpath_inject pom:project "<groupId>net.openhft</groupId>" affinity

%pom_remove_parent affinity-test
%pom_xpath_inject pom:project "<groupId>net.openhft</groupId>" affinity-test
%pom_xpath_set pom:project/pom:version %{version} affinity-test

#%% pom_disable_module affinity-test
%pom_remove_dep net.openhft:third-party-bom affinity-test
%pom_remove_dep org.ops4j.pax.exam: affinity-test
%pom_remove_dep org.ops4j.pax.url: affinity-test
rm -r affinity-test/src/test
%pom_change_dep com.sun.java:tools com.sun:tools affinity-test

%pom_remove_plugin :depends-maven-plugin affinity
%pom_remove_plugin :maven-scm-publish-plugin affinity

%pom_remove_plugin :depends-maven-plugin affinity-test

%pom_remove_dep net.openhft:third-party-bom affinity
%pom_change_dep com.intellij: org.jetbrains: affinity

%ifnarch %{ix86} x86_64
%pom_remove_plugin :maven-antrun-plugin affinity
%pom_remove_plugin :exec-maven-plugin affinity
%endif

# Set build flags
sed -i "s|-O3 -Wall|${CXXFLAGS:-%optflags}|" affinity/src/main/c/Makefile

# UnsatisfiedLinkError: software.chronicle.enterprise.internals.impl.NativeAffinity.getProcessId0()I
# Fails to load libCEInternals.so
rm affinity/src/test/java/net/openhft/affinity/impl/NativeAffinityImpTest.java \
 affinity/src/test/java/net/openhft/ticker/impl/JNIClockTest.java
# AssertionError PosixJNAAffinityTest#testGettid
rm affinity/src/test/java/net/openhft/affinity/impl/PosixJNAAffinityTest.java

# add symlink
%mvn_file :affinity:jar: %{name}/affinity %{_libdir}/%{name}/affinity

# Useless pom file
%mvn_package :Java-Thread-Affinity __noinstall

%build

%ifnarch %{ix86} x86_64
opts="-f"
%endif
%mvn_build -f -s $opts -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%ifarch %{ix86} x86_64
install -pm 755 affinity/target/classes/libCEInternals.so %{buildroot}%{_libdir}/%{name}/
%endif

%files -f .mfiles-affinity
%ifarch %{ix86} x86_64
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libCEInternals.so
%endif
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE

%files test -f .mfiles-affinity-test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15057 |21mr|openhft-chronicle-queue-3.6.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          openhft-chronicle-queue
Version:       3.6.2
Release:       8
Summary:       Java library for persisted low latency messaging
# https://github.com/OpenHFT/Chronicle-Queue/blob/master/LICENSE.adoc
# POM file is under LGPLv3+
License:       ASL 2.0 and LGPLv3+
URL:           https://github.com/OpenHFT/Chronicle-Queue
Source0:       https://github.com/OpenHFT/Chronicle-Queue/archive/chronicle-%{version}.tar.gz
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(net.openhft:affinity)
BuildRequires: mvn(net.openhft:lang)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)

%if 0
# test deps
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java.dev.jna:jna)
BuildRequires: mvn(net.java.dev.jna:platform)
BuildRequires: mvn(net.sf.trove4j:trove4j)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.hdrhistogram:HdrHistogram)
BuildRequires: mvn(org.slf4j:slf4j-simple)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Chronicle is a Java library focused on building a persisted low latency
messaging framework for high performance and critical applications. Using
non-heap storage options (RandomAccessFile) Chronicle provides a processing
environment where applications do not suffer from garbage collection.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n Chronicle-Queue-chronicle-%{version}

# net.openhft:java-parent-pom:1.1.10 https://github.com/OpenHFT/OpenHFT/
%pom_remove_parent
%pom_xpath_inject pom:project "<groupId>net.openhft</groupId>"

# net.openhft:third-party-bom:pom:3.5.0
%pom_remove_dep net.openhft:third-party-bom
# net.openhft:chronicle-bom:pom:1.12.16
%pom_remove_dep net.openhft:chronicle-bom

%pom_change_dep :lang ::6.8.0:compile
%pom_change_dep :affinity ::3.0.1:compile

# Unwanted tasks
%pom_remove_plugin :maven-jar-plugin
%pom_remove_plugin :maven-scm-publish-plugin

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

%mvn_file :chronicle %{name} chronicle

%build

# Test skipped for unavailable test deps
# net.sf.trove4j:trove4j:3.0.3
# @ random:
# Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed:
# The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15058 |21mr|openhft-java-compiler-2.2.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          openhft-java-compiler
Version:       2.2.5
Release:       8
Summary:       OpenHFT Java Runtime Compiler library
# https://github.com/OpenHFT/Java-Runtime-Compiler/issues/20
License:       ASL 2.0
URL:           https://github.com/OpenHFT/Java-Runtime-Compiler
Source0:       https://github.com/OpenHFT/Java-Runtime-Compiler/archive/compiler-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.jetbrains:annotations)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)
BuildRequires: /usr/bin/asciidoc

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This library takes a String, compiles it and loads it
returning a class from what was built. By default it
uses the current ClassLoader. It supports nested classes,
but otherwise builds one class at a time.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n Java-Runtime-Compiler-compiler-%{version}

%pom_remove_parent
%pom_xpath_inject pom:project "<groupId>net.openhft</groupId>"
%pom_xpath_set pom:project/pom:version %{version}

%pom_remove_parent compiler
%pom_xpath_inject pom:project "<groupId>net.openhft</groupId>" compiler
%pom_xpath_set pom:project/pom:version %{version} compiler

# Unwanted tasks
%pom_remove_plugin :depends-maven-plugin compiler

# net.openhft:third-party-bom:pom:3.5.0
%pom_remove_dep net.openhft:third-party-bom compiler
%pom_change_dep com.intellij: org.jetbrains: compiler

%mvn_file :compiler %{name} compiler
# Useless pom file
%mvn_package :Java-Runtime-Compiler __noinstall

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

asciidoc -n -b html5 -a toc2 -a toclevels=3 -o LICENSE.html LICENSE.adoc

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.html

%files javadoc -f .mfiles-javadoc
%license LICENSE.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15059 |21mr|openhft-java-lang-6.8.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          openhft-java-lang
Version:       6.8.2
Release:       8
Summary:       High Performance Java Lang library for High Frequency Trading
# Source files without license headers https://github.com/OpenHFT/Java-Lang/issues/76
License:       LGPLv3+
URL:           https://github.com/OpenHFT/Java-Lang
Source0:       https://github.com/OpenHFT/Java-Lang/archive/lang-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.openhft:compiler)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)
BuildRequires: mvn(org.xerial.snappy:snappy-java)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This library provides marshalling, de-marshalling and
handling of thread safe off heap memory through ByteBuffers.
It is designed to be largely GC-less such that millions of
entries with 32 MB heap can be queued without triggering the
garbage collector.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n Java-Lang-lang-%{version}

%pom_remove_parent
%pom_xpath_inject pom:project "<groupId>net.openhft</groupId>"
%pom_xpath_set pom:project/pom:version %{version}

%pom_remove_parent lang
%pom_xpath_inject pom:project "<groupId>net.openhft</groupId>" lang
%pom_xpath_set pom:project/pom:version %{version} lang

# Unwanted tasks
%pom_remove_plugin :maven-scm-publish-plugin lang

# net.openhft:third-party-bom:pom:3.5.0
%pom_remove_dep net.openhft:third-party-bom lang
# net.openhft:chronicle-bom:pom:1.12.11
%pom_remove_dep net.openhft:chronicle-bom lang

%pom_change_dep com.sun.java:tools com.sun:tools lang

%mvn_file :lang %{name} lang

# NullPointerException
rm lang/src/test/java/net/openhft/lang/io/ByteBufferBytesTest.java \
 lang/src/test/java/net/openhft/lang/io/DirectByteBufferBytesTest.java \
 lang/src/test/java/net/openhft/lang/io/NativeBytesTest.java

chmod 644 README.md

# Useless pom file
%mvn_package :Java-Lang __noinstall

%build
# @ random:
# Execution default-test of goal org.apache.maven.plugins:maven-surefire-plugin:2.19.1:test failed:
# The forked VM terminated without properly saying goodbye. VM crash or System.exit called?
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15060 |21mr|OpenImageIO-2.2.20.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

%define _disable_ld_no_undefined %nil
%define debug_package %{nil}

# Obsoleted ilmbase-devel
%global __requires_exclude \\(cmake\\(ilmbase\\) or cmake\\(IlmBase\\)\\)

%define oname oiio

%define major 2.2
%define libname %mklibname %{name} %{major}
%define libutil %mklibname %{name}_Util %{major}
%define devname %mklibname %{name} -d

Summary:	Library for reading and writing images
Name:		OpenImageIO
Version:	2.2.20.0
Release:	6
License:	BSD
Group:		System/Libraries
Url:		https://sites.google.com/site/openimageio/home
Source0:	https://github.com/OpenImageIO/oiio/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		CVE-2023-36183.patch
BuildRequires:	cmake
BuildRequires:	git
%if %{without bootstrap}
BuildRequires:	OpenColorIO
%endif
BuildRequires:	robin-map
BuildRequires:	txt2man
BuildRequires:	boost-devel
#BuildRequires:	dcmtk-devel # Contrib
#BuildRequires:	field3d-devel # Deprecated
BuildRequires:	giflib-devel
BuildRequires:	hdf5-devel
BuildRequires:	opencv-devel
BuildRequires:	openvdb-devel
BuildRequires:	pugixml-devel
BuildRequires:	pybind11-devel
BuildRequires:	squish-devel
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(fmt)
BuildRequires:	pkgconfig(libheif)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libraw)
BuildRequires:	pkgconfig(libraw_r)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
%if %{without bootstrap}
BuildRequires:	pkgconfig(OpenColorIO)
%endif
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(tbb)
BuildRequires:	pkgconfig(yaml-cpp)
BuildRequires:	pkgconfig(zlib)

%description
OpenImageIO is a library for reading and writing images, and a bunch of related
classes, utilities, and applications. Main features include:
- Extremely simple but powerful ImageInput and ImageOutput APIs for reading and
 writing 2D images that is format agnostic.
- Format plugins for TIFF, JPEG/JFIF, OpenEXR, PNG, HDR/RGBE, Targa, JPEG-2000,
 DPX, Cineon, FITS, BMP, ICO, RMan Zfile, Softimage PIC, DDS, SGI,
 PNM/PPM/PGM/PBM, Field3d.
- An ImageCache class that transparently manages a cache so that it can access
 truly vast amounts of image data.
- A really nice image viewer, iv, also based on OpenImageIO classes (and so
 will work with any formats for which plugins are available).

%files
%doc CHANGES.md CONTRIBUTING.md CREDITS.md README.md
%license LICENSE.md THIRD-PARTY.md
%{_bindir}/*
%{py3_platsitedir}/OpenImageIO.*.so
%{_datadir}/fonts/OpenImageIO
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for reading and writing images
Group:		System/Libraries

%description -n %{libname}
OpenImageIO is a library for reading and writing images.

%files -n %{libname}
%{_libdir}/libOpenImageIO.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libutil}
Summary:	A library for reading and writing images
Group:		System/Libraries

%description -n %{libutil}
OpenImageIO_Util is a library for reading and writing images.

%files -n %{libutil}
%{_libdir}/libOpenImageIO_Util.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libutil} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name} library.

%files -n %{devname}
%doc CHANGES.md CONTRIBUTING.md CREDITS.md README.md
%license LICENSE.md THIRD-PARTY.md
%{_datadir}/cmake/Modules/FindOpenImageIO.cmake
%{_includedir}/*
%{_libdir}/cmake/OpenImageIO/
%{_libdir}/libOpenImageIO.so
%{_libdir}/libOpenImageIO_Util.so
%{_libdir}/pkgconfig/OpenImageIO.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}
# Remove bundled pugixml
rm -rf src/include/OpenImageIO/detail/pugixml

%build
%cmake	\
	-Wno-dev			\
	-DOpenGL_GL_PREFERENCE=GLVND	\
	-DPYTHON_VERSION=%{python3_version}	\
	-DSTOP_ON_WARNING=OFF		\
	-DUSE_EXTERNAL_PUGIXML:BOOL=ON	\
	-DUSE_PYTHON:BOOL=ON		\
	-DVERBOSE=TRUE
%make

%install
%makeinstall_std -C build

# Move man pages to the right directory
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_mandir}/*.1 %{buildroot}%{_mandir}/man1

rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15061 |21mr|openipmi-2.0.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname OpenIPMI
%define _disable_ld_no_undefined 1

%define major 0
%define ui_major 1
%define libname %mklibname openipmi %{major}
%define libcmdlang %mklibname openipmicmdlang %{major}
%define libglib %mklibname openipmiglib %{major}
%define liblanserv %mklibname ipmilanserv %{major}
%define libposix %mklibname openipmiposix %{major}
%define libpthread %mklibname openipmipthread %{major}
%define libutils %mklibname openipmiutils %{major}
%define libui %mklibname openipmiui %{ui_major}
%define devname %mklibname openipmi -d

Summary:	Library interface to IPMI
Name:		openipmi
Version:	2.0.31
Release:	1
License:	LGPLv2+
Group:		System/Kernel and hardware
Url:		http://openipmi.sourceforge.net
Source0:	http://downloads.sourceforge.net/openipmi/%{oname}-%{version}.tar.gz
Source1:	openipmi.sysconf
Source2:	openipmi-helper
Source3:	ipmi.service
Patch1:		0001-man.patch
BuildRequires:    gdbm-devel swig net-snmp-devel
BuildRequires:    openssl-devel python3-devel perl-devel
BuildRequires:    readline-devel
BuildRequires:    pkgconfig(glib-2.0)
BuildRequires:    pkgconfig(popt)
BuildRequires:    automake
BuildRequires:    autoconf
BuildRequires:    libtool

Requires(pre,post):	rpm-helper
Provides:	IPMI = %{EVRD}

%description
This package contains a shared library implementation of IPMI and the
basic tools used with OpenIPMI.

%files
%doc FAQ README README.Force
%doc README.MotorolaMXP
%{_unitdir}/ipmi.service
%config(noreplace) %{_sysconfdir}/sysconfig/ipmi
%{_libexecdir}/openipmi-helper

%preun
%_preun_service ipmi

%postun
%_post_service ipmi

#----------------------------------------------------------------------------

%package lanserv
Summary:	Emulates an IPMI network listener
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description lanserv
This package contains a network IPMI listener.

%files lanserv
%config(noreplace) %{_sysconfdir}/ipmi/ipmisim1.emu
%config(noreplace) %{_sysconfdir}/ipmi/lan.conf
%dir %{_sysconfdir}/ipmi
%{_bindir}/ipmilan
%{_bindir}/ipmi_sim
%{_bindir}/sdrcomp
%{_mandir}/man8/ipmilan.8*
%{_mandir}/man1/ipmi_sim.1*
%{_mandir}/man5/ipmi_lan.5*
%{_mandir}/man5/ipmi_sim_cmd.5*

#----------------------------------------------------------------------------

%package ui
Summary:	User Interface (UI) for %{name}
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description ui
This package contains a user interface for %{name}.

%files ui
%{_bindir}/ipmicmd
%{_bindir}/ipmish
%{_bindir}/ipmi_ui
%{_bindir}/openipmicmd
%{_bindir}/openipmish
%{_bindir}/rmcp_ping
%{_bindir}/solterm
%{_bindir}/openipmi_eventd
%{_unitdir}/ipmi.service
%{_mandir}/man1/ipmi_ui*
%{_mandir}/man1/openipmicmd*
%{_mandir}/man1/openipmish*
%{_mandir}/man1/rmcp_ping*
%{_mandir}/man1/solterm*
%{_mandir}/man1/ipmish*
%{_mandir}/man1/ipmicmd*
%{_mandir}/man1/openipmi_eventd*
%{_mandir}/man7/ipmi_cmdlang*
%{_mandir}/man7/openipmi_conparms*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for OpenIPMI
Group:		System/Libraries
Requires:	%{name}
Conflicts:	%{name} < 2.0.18-7

%description -n %{libname}
Shared library for OpenIPMI.

%files -n %{libname}
%{_libdir}/libOpenIPMI.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcmdlang}
Summary:	Shared library for OpenIPMI
Group:		System/Libraries
Conflicts:	%{name} < 2.0.18-7

%description -n %{libcmdlang}
Shared library for OpenIPMI.

%files -n %{libcmdlang}
%{_libdir}/libOpenIPMIcmdlang.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libglib}
Summary:	Shared library for OpenIPMI
Group:		System/Libraries
Conflicts:	%{name} < 2.0.18-7

%description -n %{libglib}
Shared library for OpenIPMI.

%files -n %{libglib}
%{_libdir}/libOpenIPMIglib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{liblanserv}
Summary:	Shared library for OpenIPMI
Group:		System/Libraries
Conflicts:	%{name}-lanserv < 2.0.18-7

%description -n %{liblanserv}
Shared library for OpenIPMI.

%files -n %{liblanserv}
%{_libdir}/libIPMIlanserv.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libposix}
Summary:	Shared library for OpenIPMI
Group:		System/Libraries
Conflicts:	%{name} < 2.0.18-7

%description -n %{libposix}
Shared library for OpenIPMI.

%files -n %{libposix}
%{_libdir}/libOpenIPMIposix.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpthread}
Summary:	Shared library for OpenIPMI
Group:		System/Libraries
Conflicts:	%{name} < 2.0.18-7

%description -n %{libpthread}
Shared library for OpenIPMI.

%files -n %{libpthread}
%{_libdir}/libOpenIPMIpthread.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libui}
Summary:	Shared library for OpenIPMI
Group:		System/Libraries
Conflicts:	%{name}-ui < 2.0.18-7

%description -n %{libui}
Shared library for OpenIPMI.

%files -n %{libui}
%{_libdir}/libOpenIPMIui.so.%{ui_major}*

#----------------------------------------------------------------------------

%package -n %{libutils}
Summary:	Shared library for OpenIPMI
Group:		System/Libraries
Conflicts:	%{name} < 2.0.18-7

%description -n %{libutils}
Shared library for OpenIPMI.

%files -n %{libutils}
%{_libdir}/libOpenIPMIutils.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for OpenIPMI
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libcmdlang} = %{EVRD}
Requires:	%{libglib} = %{EVRD}
Requires:	%{liblanserv} = %{EVRD}
Requires:	%{libposix} = %{EVRD}
Requires:	%{libpthread} = %{EVRD}
Requires:	%{libui} = %{EVRD}
Requires:	%{libutils} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 2.0.18-7
Obsoletes:	%{name}-devel < 2.0.18-7

%description -n %{devname}
Contains additional files need for a developer to create applications
and/or middleware that depends on libOpenIPMI.

%files -n %{devname}
%doc doc/IPMI.pdf
%{_includedir}/OpenIPMI
%{_libdir}/*.so
%{_libdir}/pkgconfig/OpenIPMI*.pc

#----------------------------------------------------------------------------

%package -n perl-%{name}
Summary:	Perl interface for OpenIPMI
Group:		Development/Perl
Requires:	%{name} = %{EVRD}

%description -n perl-%{name}
A Perl interface for OpenIPMI.

%files -n perl-%{name}
%doc swig/OpenIPMI.i swig/perl/sample swig/perl/ipmi_powerctl
%{perl_vendorarch}/OpenIPMI.pm
%{perl_vendorarch}/auto/OpenIPMI

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python interface for OpenIPMI
Group:		Development/Python
Requires:	%{name} = %{EVRD}

%description -n python3-%{name}
A Python interface for OpenIPMI.

%files -n python3-%{name}
%doc swig/OpenIPMI.i
%{python3_sitearch}/*OpenIPMI.*
%{python3_sitearch}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%configure \
    CFLAGS="-fPIC %{optflags} -z now -fno-strict-aliasing" \
    LDFLAGS="%{ldflags} -Wl,--as-needed" \
    --disable-dependency-tracking \
    --disable-static \
    --with-pythoninstall=%{python3_sitearch} \
    --with-python=%{__python3} \
    --with-tcl=no \
    --with-tkinter=no

make

%install
%make_install

install -d %{buildroot}{%{_sysconfdir}/sysconfig,%{_unitdir},%{_libexecdir}}
install -m 644 %SOURCE1 %{buildroot}%{_sysconfdir}/sysconfig/ipmi
install -m 755 %SOURCE2 %{buildroot}%{_libexecdir}/openipmi-helper
install -m 644 %SOURCE3 %{buildroot}%{_unitdir}/ipmi.service
install -d %{buildroot}%{_sysconfdir}/modprobe.d

rm %{buildroot}/%{_mandir}/man1/openipmigui.1 %{buildroot}%{_libdir}/*.la

# add missing documentation
echo ".so man1/openipmicmd.1" > %{buildroot}%{_mandir}/man1/ipmicmd.1

echo ".so man1/openipmish.1" > %{buildroot}%{_mandir}/man1/ipmish.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15062 |21mr|open-iscsi-2.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Upstream is related to SUSE, have a look at SUSE spec:
# https://build.opensuse.org/package/view_file/network/open-iscsi/open-iscsi.spec?expand=1

%define major	0
%define libname	%mklibname openiscsiusr %{major}
%define devname	%mklibname -d openiscsiusr

Summary:	An implementation of RFC3720 iSCSI
Name:		open-iscsi
Version:	2.1.8
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.open-iscsi.org
Source0:	https://github.com/open-iscsi/open-iscsi/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(mount)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	open-isns-devel
BuildRequires:	glibc-static-devel
BuildRequires:	meson
Requires:	logrotate
Requires:	rosa-kernel-tools
# compat with Fedora/Red Hat
Provides:	iscsi-initiator-utils = %{EVRD}
# compat with SUSE
Provides:	iscsiuio = %{EVRD}

%description
Open-iSCSI project is a high-performance, transport independent, multi-platform
implementation of RFC3720 iSCSI. iSCSI is a protocol for distributed disk
access using SCSI commands sent over Internet Protocol networks.

%files
%license COPYING
%doc README
%dir %{_sysconfdir}/iscsi
%dir %{_sharedstatedir}/iscsi
%dir %{_sharedstatedir}/iscsi/ifaces
%{_sharedstatedir}/iscsi/ifaces/iface.example
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/iscsi/iscsid.conf
%ghost %{_sysconfdir}/iscsi/initiatorname.iscsi
%{_sysconfdir}/logrotate.d/iscsiuiolog
# symlink
%{_sysconfdir}/iscsid.conf
%{_unitdir}/iscsi-init.service
%{_unitdir}/iscsi.service
%{_unitdir}/iscsid.service
%{_unitdir}/iscsid.socket
%{_unitdir}/iscsiuio.service
%{_unitdir}/iscsiuio.socket
# symlink to iscsid.service for compatibility
%{_unitdir}/open-iscsi.service
%{_udevrulesdir}/50-iscsi-firmware-login.rules
%{_systemdgeneratordir}/ibft-rule-generator
%{_sbindir}/brcm_iscsiuio
%{_sbindir}/iscsiadm
%{_sbindir}/iscsid
%{_sbindir}/iscsi-iname
%{_sbindir}/iscsi_discovery
%{_sbindir}/iscsi-gen-initiatorname
%{_sbindir}/iscsi_fw_login
%{_sbindir}/iscsi_offload
%{_sbindir}/iscsistart
%{_sbindir}/iscsiuio
%{_mandir}/man8/iscs*
/var/spool/initramfs-regen/%{name}

%post
%systemd_post iscsi-init.service
%systemd_post iscsi.service
%systemd_post iscsid.service
%systemd_post iscsid.socket
%systemd_post iscsiuio.service
%systemd_post iscsiuio.socket

%preun
%systemd_preun iscsi-init.service
%systemd_preun iscsi.service
%systemd_preun iscsid.service
%systemd_preun iscsid.socket
%systemd_preun iscsiuio.service
%systemd_preun iscsiuio.socket

%if %{mdvver} == 202110
%triggerpostun -- %{name} < 2.1.8
if ! test -d %{_sysconfdir}/iscsi; then exit 0; fi
echo "Migrating open-iscsi database from %{_sysconfdir}/iscsi to %{_sharedstatedir}/iscsi ..."
find %{_sysconfdir}/iscsi -type d | grep -v '\.conf$' | while read -r line
do
	new="$(echo "$line" | sed -e 's,%{_sysconfdir}/iscsi,%{_sharedstatedir}/iscsi,g')"
	if test -e "$new"; then continue; fi
	cp -prv "$line" "$new"
done
find %{_sysconfdir}/iscsi -type f | grep -vE '\.conf$|/initiatorname.iscsi$' | while read -r line
do
	new="$(echo "$line" | sed -e 's,%{_sysconfdir}/iscsi,%{_sharedstatedir}/iscsi,g')"
	if test -e "$new"; then continue; fi
	cp -pv "$line" "$(dirname "$new")"
done
%endif

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Library for %{name}
Group:		System/Libraries
# compat with SUSE
Provides:	libopeniscsiusr0_2_0 = %{EVRD}

%description -n	%{libname}
Open-iSCSI project is a high-performance, transport independent, multi-platform
implementation of RFC3720 iSCSI. iSCSI is a protocol for distributed disk
access using SCSI commands sent over Internet Protocol networks.

%files -n %{libname}
%{_libdir}/libopeniscsiusr.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{devname}
This package includes the development files for %{name}.

%files -n %{devname}
%{_includedir}/libopeniscsiusr*.h
%{_libdir}/libopeniscsiusr.so
%{_libdir}/pkgconfig/libopeniscsiusr.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Drulesdir=%{_udevrulesdir} \
	-Dsystemddir=%{_systemd_util_dir} \
	-Discsi_sbindir=%{_sbindir} \
	-Ddbroot=%{_sharedstatedir}/iscsi
%meson_build

%install
%meson_install

# ghost
echo > %{buildroot}%{_sysconfdir}/iscsi/initiatorname.iscsi

ln -s iscsi/iscsid.conf %{buildroot}%{_sysconfdir}/iscsid.conf
# compatibility with old non-upstream unit name
ln -s iscsid.service %{buildroot}%{_unitdir}/open-iscsi.service

# rebuild initrds (for rosa-kernel-tools)
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15063 |21mr|open-isns-0.102-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	0
%define libname	%mklibname open-isns %{major}
%define devname	%mklibname -d open-isns

Summary:	An implementation of RFC4171 iSNS
Name:		open-isns
Version:	0.102
Release:	1
License:	GPL
Group:		Networking/Other
Url:		http://www.open-iscsi.org
Source0:	https://github.com/open-iscsi/open-isns/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	glibc-static-devel
BuildRequires:	openslp-devel
BuildRequires:	openssl-devel

%description
This is a partial implementation of the iSNS protocol (see below),
which supplies directory services for iSCSI initiators and targets.

The iSNS protocol is specified in
[RFC 4171](http://tools.ietf.org/html/rfc4171) and its purpose is to
make easier to discover, manage, and configure iSCSI devices. With
iSNS, iSCSI targets can be registered to a central iSNS server and
initiators can be configured to discover the targets by asking the
iSNS server.

%files
%license COPYING
%doc ChangeLog README
%{_unitdir}/isnsd.service
%{_unitdir}/isnsd.socket
%{_mandir}/man8/isns*
%{_mandir}/man5/isns*
%dir %{_sysconfdir}/isns
%config(noreplace) %{_sysconfdir}/isns/*.conf
%{_sbindir}/isn*

%post
%systemd_post isnsd.service
%systemd_post isnsd.socket

%postun
%systemd_postun isnsd.service
%systemd_postun isnsd.socket

#-------------------------------------------------------------------

%package -n	%{libname}
Summary:	%{summary}
Group:		System/Libraries

%description -n	%{libname}
This is a partial implementation of iSNS, according to RFC4171.

%files -n %{libname}
%license COPYING
%doc ChangeLog README
%{_libdir}/libisns.so.%{major}*

#-------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package includes the development files for %{name}.

%files -n %{devname}
%{_includedir}/libisns
%{_libdir}/libisns.so
%{_libdir}/pkgconfig/libisns.pc

#-------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dsystemddir=%{_systemd_util_dir} \
	-Drundir=%{_rundir}
%meson_build

%install
%meson_install
# can't strip on e2k with 555 permissions
chmod 755 %{buildroot}%{_sbindir}/isns*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15064 |21mr|openjade-1.3.3-2.pre1.12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prerel pre1

%define sgmlbase %{_datadir}/sgml

%define major 0
# TODO: Split library package
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} %{major} -d

Summary:	Parser and tools for SGML + DSSSL
Name:		openjade
Version:	1.3.3
Release:	2.%{prerel}.12
License:	BSD
Group:		Publishing
Url:		http://openjade.sourceforge.net/
Source0:	http://download.sourceforge.net/openjade/%{name}-%{version}-%{prerel}.tar.bz2
# (gb) 1.3.2-12mdk libtool fixes, don't bother with either aclocal nor autoconf
# NOTE: this directly applies to configure
Patch0:		openjade-1.3.2-libtool.patch
Patch1:		openjade-gcc43.diff
Patch2:		openjade-deplibs.patch
Patch3:		openjade-ppc64.patch
Patch4:		openjade-getoptperl.patch
Patch5:		openjade-1.3.2-gcc46.patch
Patch7:		openjade-nola.patch
Patch8:		openjade-1.3.3-fix-confusion-over-Char-type.patch
BuildRequires:	OpenSP-devel
Requires:	OpenSP
Requires:	sgml-common
Provides:	jade = %{EVRD}

%description
Jade (James' DSSSL Engine) is an implementation of the DSSSL style
language -- Document Style Semantics and Specification Language --
an ISO standard for formatting SGML (and XML) documents.

%files
%doc doc/ jadedoc/ dsssl/ pubtext/  README VERSION
%ghost %config(noreplace) %{_sysconfdir}/sgml/dsssl*.cat
%ghost %config(noreplace) %{_sysconfdir}/sgml/catalog
%{_bindir}/*
%{sgmlbase}/%{name}-%{version}
%{sgmlbase}/*.dcl
%{sgmlbase}/*.soc
%{_mandir}/*/*

%post
# remove openjade-1.3 catalog if referenced
bads=`find %{_sysconfdir}/sgml -type f -exec grep -l %{name}-1.3 {} \;`
for f in $bads; do 
	%{_bindir}/xmlcatalog --sgml --noout --del $f %{sgmlbase}/%{name}-1.3/catalog;
done
if [ -e %{_sysconfdir}/sgml/catalog ] && [ "$(grep 'sgml-docbook-*.cat' %{_sysconfdir}/sgml/catalog)" != "" ]; then \
%{_bindir}/xmlcatalog --sgml --noout --del %{_sysconfdir}/sgml/catalog '%{_sysconfdir}/sgml/sgml-docbook-*.cat'; fi

# Add new catalogs
touch %{_sysconfdir}/sgml/dsssl-%{version}.cat
for i in %{_sysconfdir}/sgml/dsssl-%{version}.cat %{_sysconfdir}/sgml/{x,sg}ml-docbook-*.cat; do
  [ -e $i ] && %{_bindir}/xmlcatalog --sgml --noout --add \
  	$i %{sgmlbase}/%{name}/catalog
done
ln -s -f %{_sysconfdir}/sgml/dsssl-%{version}.cat %{_sysconfdir}/sgml/dsssl.cat

%pre
cd %{sgmlbase}
if [ -L %{name} ]; then
 rm -f %{name}
fi
ln -sf %{name}-%{version} %{name}

%postun
# Do not remove if upgrade
if [ "$1" = "0" ]; then 
  if [ -x %{_bindir}/xmlcatalog ]; then
    for i in %{_sysconfdir}/sgml/dsssl-%{version}.cat %{_sysconfdir}/sgml/sgml-docbook-*.cat %{_sysconfdir}/sgml/xml-docbook-*.cat; do
        [ -e $i ] && %{_bindir}/xmlcatalog --sgml --noout --del \
		  $i %{sgmlbase}/%{name}/catalog
    done
  fi
    rm -f %{_sysconfdir}/sgml/dsssl.cat %{sgmlbase}/%{name}
# Is it last docbook catalog?
    if [ ! -e %{_sysconfdir}/sgml/dsssl-%{version}.cat ]; then 
	rm -f %{_sysconfdir}/sgml/sgml-docbook.cat
	OTHERCAT=`ls %{_sysconfdir}/sgml/dsssl-?.?.cat 2> /dev/null | head --lines 1`
	if [ -n "$OTHERCAT" ]; then ln -sf $OTHERCAT %{_sysconfdir}/sgml/dsssl.cat; fi
    fi
fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library files for openjade
Group:		System/Libraries

%description -n %{libname}
Shared library files for openjade.

%files -n %{libname}
%{_libdir}/libogrove.so.%{major}*
%{_libdir}/libospgrove.so.%{major}*
%{_libdir}/libostyle.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for openjade
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Files for development from the openjade package.

%files -n %{devname}
%{_includedir}/sp
%{_libdir}/lib*.so
%{_libdir}/lib*a

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-%{prerel}
%apply_patches

%build
cp config/configure.in .
export CXXFLAGS="%{optflags} -fpermissive -DSP_MULTI_BYTE=1 -fno-lifetime-dse"

%configure \
	--enable-static \
	--enable-http \
	--enable-default-catalog=%{_sysconfdir}/sgml/catalog  \
	--enable-default-search-path=%{sgmlbase} \
	--datadir=%{sgmlbase}/%{name}-%{version} \
	--enable-splibdir=%{_libdir}

%make

%install
# NOTE: in installing I am also copying a bunch of .h files into
# $(prefix)/include/sp/{generic,include,lib}.  This is so that the
# library API can be used.  It's an ugly kludge, and the best way
# would be for James Clark to tell us what the appropriate list of
# files to be included is.

mkdir -p %{buildroot}{%{_libdir},%{_bindir},%{_includedir}/sp/generic,%{_includedir}/sp/include,%{_includedir}/sp/lib}
mkdir -p %{buildroot}%{sgmlbase}/%{name}-%{version}/{pubtext,unicode}

%makeinstall install-man datadir=%{buildroot}/%{sgmlbase}

# Why do this file gets installed here ???
rm -f %{buildroot}%{sgmlbase}/builtins.dsl

# oMy, othis ois osilly.
ln -s openjade %{buildroot}/%{_bindir}/jade
for file in nsgmls sgmlnorm spam spent sx ; do
  ln -s o$file %{buildroot}/%{_bindir}/$file
done

mv %{buildroot}%{_bindir}/sx %{buildroot}%{_bindir}/sgml2xml
install generic/*.h %{buildroot}%{_includedir}/sp/generic/
install include/*.h %{buildroot}%{_includedir}/sp/include/
cp dsssl/builtins.dsl dsssl/catalog %{buildroot}%{sgmlbase}/%{name}-%{version}/
install pubtext/* %{buildroot}%{sgmlbase}/%{name}-%{version}/pubtext
#install unicode/* %{buildroot}%{sgmlbase}/%{name}-%{version}/unicode
cp dsssl/dsssl.dtd dsssl/style-sheet.dtd dsssl/fot.dtd %{buildroot}%{sgmlbase}/%{name}-%{version}/

cd %{buildroot}%{sgmlbase}
ln -s %{name}-%{version} %{name}

ln -s %{name}-%{version}/pubtext/xml.dcl xml.dcl
ln -s %{name}-%{version}/pubtext/xml.soc xml.soc
ln -s %{name}-%{version}/pubtext/html.dcl html.dcl
ln -s %{name}-%{version}/pubtext/html.soc html.soc

mkdir -p %{buildroot}%{_sysconfdir}/sgml
touch %{buildroot}%{_sysconfdir}/sgml/dsssl-%{version}.cat \
 %{buildroot}%{_sysconfdir}/sgml/dsssl.cat \
 %{buildroot}%{_sysconfdir}/sgml/catalog

# Remove unpackaged symlink
rm -rf %{buildroot}%{_datadir}/sgml/openjade

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15065 |21mr|openjdk-orb-8.0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global jdkreltag 8u72

Name:          openjdk-orb
Version:       8.0.7
Release:       6
Summary:       A downstream fork of OpenJDK's ORB implementation
# 2 file without license headers https://github.com/jboss/openjdk-orb/issues/2
License:       GPLv2 with exceptions
URL:           https://github.com/jboss/openjdk-orb/
Source0:       https://github.com/jboss/openjdk-orb/archive/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:idlj-maven-plugin)
BuildRequires: mvn(org.jacorb:jacorb-idl-compiler)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)

Provides:      bundled(com.sun.corba.se.impl) = %{jdkreltag}
Provides:      bundled(com.sun.corba.se.internal) = %{jdkreltag}
Provides:      bundled(com.sun.corba.se.org.omg.CORBA) = %{jdkreltag}
Provides:      bundled(com.sun.corba.se.pept) = %{jdkreltag}
Provides:      bundled(com.sun.corba.se.spi) = %{jdkreltag}
Provides:      bundled(com.sun.org.omg.CORBA) = %{jdkreltag}
Provides:      bundled(com.sun.org.omg.SendingContext) = %{jdkreltag}
Provides:      bundled(com.sun.tools.corba.se.idl) = %{jdkreltag}
Provides:      bundled(javax.activity) = %{jdkreltag}
Provides:      bundled(javax.rmi.CORBA) = %{jdkreltag}
Provides:      bundled(org.omg.CORBA) = %{jdkreltag}
Provides:      bundled(org.omg.CORBA_2_3) = %{jdkreltag}
Provides:      bundled(org.omg.CosNaming) = %{jdkreltag}
Provides:      bundled(org.omg.Dynamic) = %{jdkreltag}
Provides:      bundled(org.omg.DynamicAny) = %{jdkreltag}
Provides:      bundled(org.omg.IOP) = %{jdkreltag}
Provides:      bundled(org.omg.Messaging) = %{jdkreltag}
Provides:      bundled(org.omg.PortableInterceptor) = %{jdkreltag}
Provides:      bundled(org.omg.PortableServer) = %{jdkreltag}
Provides:      bundled(org.omg.SendingContext) = %{jdkreltag}
Provides:      bundled(org.omg.stub) = %{jdkreltag}
Provides:      bundled(sun.corba) = %{jdkreltag}

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
JBoss repackaging of the OpenJDK ORB.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}
# https://github.com/jboss/openjdk-orb/issues/3
sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," LICENSE

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README
%license ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README

%files javadoc -f .mfiles-javadoc
%license ASSEMBLY_EXCEPTION LICENSE THIRD_PARTY_README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15066 |21mr|openjfx17-17.0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global branch      17
%global tag_ver     %{branch}.0.8+0
%global tarball_ver %(echo %{tag_ver} | sed -e "s|+|-|")
%global	jfx_up      jfx%{branch}u
%global rpmver      %(echo %{tag_ver} | sed -e "s|+|.|")
%global rtdir       %{jfx_up}-%{tarball_ver}
%global openjfxdir  %{_jvmdir}/%{name}

Name:           openjfx%{branch}
Version:        %{rpmver}
Release:        1
Summary:        Rich client application platform for Java
Group:		Development/Java
License:        GPL v2 with exceptions and BSD
URL:            http://openjdk.java.net/projects/openjfx/
Source0:        https://github.com/openjdk/%{jfx_up}/archive/refs/tags/%{tag_ver}.tar.gz?/%{jfx_up}-%{tarball_ver}.tar.gz
Source1:        pom-base.xml
Source2:        pom-controls.xml
Source3:        pom-fxml.xml
Source4:        pom-graphics.xml
Source5:        pom-graphics_antlr.xml
Source6:        pom-graphics_decora.xml
Source7:        pom-graphics_compileJava.xml
Source8:        pom-graphics_compileJava-decora.xml
Source9:        pom-graphics_compileJava-java.xml
Source10:       pom-graphics_compileJava-prism.xml
Source11:       pom-graphics_graphics.xml
Source12:       pom-graphics_libdecora.xml
Source13:       pom-graphics_libglass.xml
Source14:       pom-graphics_libglassgtk2.xml
Source15:       pom-graphics_libglassgtk3.xml
Source16:       pom-graphics_libjavafx_font.xml
Source17:       pom-graphics_libjavafx_font_freetype.xml
Source18:       pom-graphics_libjavafx_font_pango.xml
Source19:       pom-graphics_libjavafx_iio.xml
Source20:       pom-graphics_libprism_common.xml
Source21:       pom-graphics_libprism_es2.xml
Source22:       pom-graphics_libprism_sw.xml
Source23:       pom-graphics_prism.xml
Source24:       pom-media.xml
Source25:       pom-openjfx.xml
Source26:       pom-swing.xml
Source27:       pom-swt.xml
Source28:       pom-web.xml
Source29:       build.xml

ExclusiveArch:  %{x86_64} %{arm64}
Requires:       (java-11-openjdk or java-17-openjdk or java-latest-openjdk)
Provides:	openjfx = %{EVRD}

BuildRequires:  javapackages-tools
BuildRequires:  java-11-openjdk-devel
BuildRequires:  maven-local
BuildRequires:  ant
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  stdc++-static-devel
BuildRequires:  mvn(org.eclipse.swt:swt)
BuildRequires:  mvn(org.antlr:antlr)
BuildRequires:  mvn(org.antlr:antlr4-maven-plugin)
BuildRequires:  mvn(org.antlr:stringtemplate)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.codehaus.mojo:native-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)

BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gthread-2.0)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(xxf86vm)
BuildRequires:  pkgconfig(gl)

BuildRequires:  cmake
BuildRequires:  gperf
BuildRequires:  perl
BuildRequires:  python3
BuildRequires:  ruby-devel
BuildRequires:  rubygem-json

%description
JavaFX/OpenJFX is a set of graphics and media APIs that enables Java
developers to design, create, test, debug, and deploy rich client
applications that operate consistently across diverse platforms.

The media module have been removed due to missing dependencies.

%prep
%setup -q -n %{rtdir}

#Drop *src/test folders
rm -rf modules/javafx.{base,controls,fxml,graphics,media,swing,swt,web}/src/test/
rm -rf modules/jdk.packager/src/test/

#prep for javafx.graphics
cp -a modules/javafx.graphics/src/jslc/antlr modules/javafx.graphics/src/main/antlr3
cp -a modules/javafx.graphics/src/main/resources/com/sun/javafx/tk/quantum/*.properties modules/javafx.graphics/src/main/java/com/sun/javafx/tk/quantum

find -name '*.class' -delete
find -name '*.jar' -delete

#copy maven files
cp -a %{_sourcedir}/pom-*.xml .
mv pom-openjfx.xml pom.xml

for MODULE in base controls fxml graphics media swing swt web
do
    mv pom-$MODULE.xml ./modules/javafx.$MODULE/pom.xml
done

mkdir ./modules/javafx.graphics/mvn-{antlr,decora,compileJava,graphics,libdecora,libglass,libglassgtk2,libglassgtk3,libjavafx_font,libjavafx_font_freetype,libjavafx_font_pango,libjavafx_iio,libprism_common,libprism_es2,libprism_sw,prism}
for GRAPHMOD in antlr decora compileJava graphics libdecora libglass libglassgtk2 libglassgtk3 libjavafx_font libjavafx_font_freetype libjavafx_font_pango libjavafx_iio libprism_common libprism_es2 libprism_sw prism
do
    mv pom-graphics_$GRAPHMOD.xml ./modules/javafx.graphics/mvn-$GRAPHMOD/pom.xml
done

mkdir ./modules/javafx.graphics/mvn-compileJava/mvn-{decora,java,prism}
for SUBMOD in decora java prism
do
    mv pom-graphics_compileJava-$SUBMOD.xml ./modules/javafx.graphics/mvn-compileJava/mvn-$SUBMOD/pom.xml
done

#set VersionInfo
cp -a %{_sourcedir}/build.xml .
ant -f build.xml

mkdir -p ./modules/javafx.graphics/mvn-antlr/src/main
mv ./modules/javafx.graphics/src/main/antlr3 ./modules/javafx.graphics/mvn-antlr/src/main/antlr4

rm -rf ./modules/javafx.web/src/main/native/Source/WTF/icu
rm -rf ./modules/javafx.web/src/main/native/Source/ThirdParty/icu

%build

#set openjdk11 for build
export JAVA_HOME=%{_jvmdir}/java-11-openjdk
export CFLAGS="${RPM_OPT_FLAGS}"
export CXXFLAGS="${RPM_OPT_FLAGS}" 

%mvn_build --skip-javadoc

# Disable libjfxwebkit build. It fails since F36
#{cmake} -DPORT="Java" --icu-unicode --64-bit --cmakeargs= -DENABLE_TOOLS=1 -DCMAKE_C_COMPILER='gcc' -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_C_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS' -DCMAKE_CXX_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS' -DCMAKE_SHARED_LINKER_FLAGS='-static-libgcc -static-libstdc++ -shared -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS -z relro -Wl,--gc-sections' -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++  -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS -z relro -Wl,--gc-sections' -DJAVAFX_RELEASE_VERSION=17 ./modules/javafx.web/src/main/native
#{cmake} -DPORT="Java" -DENABLE_TOOLS=1 -DCMAKE_C_COMPILER='gcc' -DCMAKE_SYSTEM_NAME=Linux -DCMAKE_SYSTEM_PROCESSOR=x86_64 -DCMAKE_C_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS' -DCMAKE_CXX_FLAGS='-fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS' -DCMAKE_SHARED_LINKER_FLAGS='-static-libgcc -static-libstdc++ -shared -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS -z relro -Wl,--gc-sections' -DCMAKE_EXE_LINKER_FLAGS='-static-libgcc -static-libstdc++  -fno-strict-aliasing -fPIC -fno-omit-frame-pointer -fstack-protector -Wextra -Wall -Wformat-security -Wno-unused -Wno-parentheses -Werror=implicit-function-declaration -DGLIB_DISABLE_DEPRECATION_WARNINGS -z relro -Wl,--gc-sections' -DJAVAFX_RELEASE_VERSION=17 -S ./modules/javafx.web/src/main/native .
#{cmake_build}
#strip -g %{_builddir}/%{rtdir}/%_target_platform/lib/libjfxwebkit.so

%install

install -d -m 755 %{buildroot}%{openjfxdir}
cp -a modules/javafx.{base,controls,fxml,media,swing,swt,web}/target/*.jar %{buildroot}%{openjfxdir}
cp -a modules/javafx.graphics/mvn-compileJava/mvn-java/target/*.jar %{buildroot}%{openjfxdir}
cp -a modules/javafx.graphics/mvn-lib{decora,javafx_font,javafx_font_freetype,javafx_font_pango,glass,glassgtk2,glassgtk3,javafx_iio,prism_common,prism_es2,prism_sw}/target/*.so %{buildroot}%{openjfxdir}
#cp -a %_target_platform/lib/libjfxwebkit.so %{buildroot}%{openjfxdir}

%files
%license LICENSE
%license ADDITIONAL_LICENSE_INFO
%license ASSEMBLY_EXCEPTION
%doc README.md
%dir %{openjfxdir}
%{openjfxdir}/*.jar
%{openjfxdir}/*.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15067 |21mr|openjfx8-8.0.202-23.b07
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global openjfxdir %{_jvmdir}/%{name}

Name:           openjfx8
Version:        8.0.202
Release:        23.b07
Summary:        Rich client application platform for Java
Group:          Development/Java
#fxpackager is BSD
License:        GPL v2 with exceptions and BSD
URL:            http://openjdk.java.net/projects/openjfx/

Source0:        http://hg.openjdk.java.net/openjfx/8u-dev/rt/archive/8u202-b07.tar.bz2
Source1:        README.fedora
Source2:        pom-base.xml
Source3:        pom-builders.xml
Source4:        pom-controls.xml
Source5:        pom-fxml.xml
Source6:        pom-fxpackager.xml
Source7:        pom-graphics.xml
Source8:        pom-graphics_compileDecoraCompilers.xml
Source9:        pom-graphics_compileDecoraJavaShaders.xml
Source10:       pom-graphics_compileJava.xml
Source11:       pom-graphics_compilePrismCompilers.xml
Source12:       pom-graphics_compilePrismJavaShaders.xml
Source13:       pom-graphics_libdecora.xml
Source14:       pom-graphics_libglass.xml
Source15:       pom-graphics_libglassgtk2.xml
Source16:       pom-graphics_libglassgtk3.xml
Source17:       pom-graphics_libjavafx_font.xml
Source18:       pom-graphics_libjavafx_font_freetype.xml
Source19:       pom-graphics_libjavafx_font_pango.xml
Source20:       pom-graphics_libjavafx_iio.xml
Source21:       pom-graphics_libprism_common.xml
Source22:       pom-graphics_libprism_es2.xml
Source23:       pom-graphics_libprism_sw.xml
Source24:       pom-jmx.xml
Source25:       pom-media.xml
Source26:       pom-openjfx.xml
Source27:       pom-swing.xml
Source28:       pom-swt.xml
Source29:       pom-web.xml
Source30:       shade.xml
Source31:       build.xml
Source32:       buildSrc.xml
Source33:       fxpackager-native.xml
Source34:       fxpackager-so.xml
Source35:       build-sources.xml

Patch0:         0000-Fix-wait-call-in-PosixPlatform.patch
Patch1:         0003-fix-cast-between-incompatible-function-types.patch
Patch2:         0004-Fix-Compilation-Flags.patch
Patch3:         0005-fxpackager-extract-jre-accept-symlink.patch

ExclusiveArch:  x86_64 %{arm64}

Requires:       java-1.8.0-openjdk

Provides:		openjfx = %{EVRD}
Provides:		openjfx%{_isa} = %{EVRD}

BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:  maven-local
BuildRequires:	ant
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  stdc++-static-devel
BuildRequires:  mvn(org.eclipse.swt:swt)
BuildRequires:  mvn(antlr:antlr)
BuildRequires:  mvn(org.antlr:antlr)
BuildRequires:  mvn(org.antlr:stringtemplate)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.codehaus.mojo:native-maven-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)

BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
BuildRequires:  pkgconfig(gthread-2.0)
BuildRequires:  pkgconfig(xtst)
BuildRequires:  pkgconfig(libjpeg)
BuildRequires:  pkgconfig(xxf86vm)
BuildRequires:  pkgconfig(gl)

%description
JavaFX/OpenJFX is a set of graphics and media APIs that enables Java
developers to design, create, test, debug, and deploy rich client
applications that operate consistently across diverse platforms.

The media and web module have been removed due to missing dependencies.

%package devel
Provides: openjfx-devel = %{EVRD}
Requires: %{name}%{?_isa} = %{EVRD}
Requires: java-devel
Summary: OpenJFX development tools and libraries

%description devel
%{summary}.

%package src
Requires: %{name}%{?_isa} = %{version}-%{release}
Summary: OpenJFX Source Bundle

%description src
%{summary}.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%global debug_package %{nil}

%prep
%setup -q -n rt-8u202-b07
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
 
cp %{SOURCE1} .

#Drop *src/test folders
rm -rf modules/{base,builders,controls,fxml,fxpackager,graphics,jmx,media,swing,swt,web}/src/test/
rm -rf buildSrc/src/test/

#prep for graphics
##cp -a modules/javafx.graphics/src/jslc/antlr modules/javafx.graphics/src/main/antlr3
cp -a modules/graphics/src/main/resources/com/sun/javafx/tk/quantum/*.properties modules/graphics/src/main/java/com/sun/javafx/tk/quantum

#prep for base
cp -a modules/base/src/main/java8/javafx modules/base/src/main/java

#prep for swt
cp -a modules/builders/src/main/java/javafx/embed/swt/CustomTransferBuilder.java modules/swt/src/main/java/javafx/embed/swt

find -name '*.class' -delete
find -name '*.jar' -delete

#copy maven files
cp -a %{_sourcedir}/pom-*.xml .
mv pom-openjfx.xml pom.xml

for MODULE in base graphics controls swing swt fxml media web builders fxpackager jmx
do
	mv pom-$MODULE.xml ./modules/$MODULE/pom.xml
done

#shade
mkdir shade
cp -a %{_sourcedir}/shade.xml ./shade/pom.xml

#fxpackager native exe
mkdir ./modules/fxpackager/native
cp -a %{_sourcedir}/fxpackager-native.xml ./modules/fxpackager/native/pom.xml
#fxpackager libpackager.so
mkdir ./modules/fxpackager/so
cp -a %{_sourcedir}/fxpackager-so.xml ./modules/fxpackager/so/pom.xml

cp -a %{_sourcedir}/buildSrc.xml ./buildSrc/pom.xml

mkdir ./modules/graphics/{compileJava,compilePrismCompilers,compilePrismJavaShaders,compileDecoraCompilers,compileDecoraJavaShaders,libdecora,libjavafx_font,libjavafx_font_freetype,libjavafx_font_pango,libglass,libglassgtk2,libglassgtk3,libjavafx_iio,libprism_common,libprism_es2,libprism_sw}
for GRAPHMOD in compileJava compilePrismCompilers compilePrismJavaShaders compileDecoraCompilers compileDecoraJavaShaders libdecora libjavafx_font libjavafx_font_freetype libjavafx_font_pango libglass libglassgtk2 libglassgtk3 libjavafx_iio libprism_common libprism_es2 libprism_sw
do
	mv pom-graphics_$GRAPHMOD.xml ./modules/graphics/$GRAPHMOD/pom.xml
done

#set VersionInfo
cp -a %{_sourcedir}/build.xml .
ant -f build.xml

cp -a %{_sourcedir}/build-sources.xml .

%build

#set openjdk8 for build
export JAVA_HOME=%{_jvmdir}/java-1.8.0-openjdk
%mvn_build -- -Dfile.encoding=UTF8

ant -f build-sources.xml

%install
install -d -m 755 %{buildroot}%{openjfxdir}
# openjfx -> openjfx8 for compatibility with current Java stack
( cd %{buildroot}%{_jvmdir} ; ln -s openjfx8 openjfx )
mkdir -p %{buildroot}%{openjfxdir}/bin
mkdir -p %{buildroot}%{openjfxdir}/lib
mkdir -p %{buildroot}%{openjfxdir}/rt/lib/{amd64,ext}

cp -a shade/target/jfxrt.jar %{buildroot}%{openjfxdir}/rt/lib/ext
cp -a modules/swt/target/jfxswt.jar %{buildroot}%{openjfxdir}/rt/lib
cp -a modules/graphics/libdecora/target/libdecora_sse.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libglass/target/libglass.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libglassgtk2/target/libglassgtk2.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libglassgtk3/target/libglassgtk3.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libjavafx_font/target/libjavafx_font.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libjavafx_font_freetype/target/libjavafx_font_freetype.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libjavafx_font_pango/target/libjavafx_font_pango.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libjavafx_iio/target/libjavafx_iio.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libprism_common/target/libprism_common.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libprism_es2/target/libprism_es2.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/graphics/libprism_sw/target/libprism_sw.so %{buildroot}%{openjfxdir}/rt/lib/amd64
cp -a modules/jmx/target/javafx-mx.jar %{buildroot}%{openjfxdir}/lib
cp -a modules/fxpackager/target/fxpackager-ant-javafx.jar %{buildroot}%{openjfxdir}/lib/ant-javafx.jar
cp -a modules/fxpackager/target/fxpackager-packager.jar %{buildroot}%{openjfxdir}/lib/packager.jar
cp -a modules/fxpackager/src/main/native/javapackager/shell/javapackager %{buildroot}%{openjfxdir}/bin
cp -a modules/fxpackager/src/main/native/javapackager/shell/javapackager %{buildroot}%{openjfxdir}/bin/javafxpackager

install -d -m 755 %{buildroot}%{_mandir}/man1
install -m 644 modules/fxpackager/src/main/man/man1/* %{buildroot}%{_mandir}/man1

install -d -m 755 %{buildroot}%{_mandir}/ja_JP/man1
install -m 644 modules/fxpackager/src/main/man/ja_JP.UTF-8/man1/* %{buildroot}%{_mandir}/ja_JP/man1

install -m 644 javafx-src.zip %{buildroot}%{openjfxdir}/javafx-src.zip

install -d 755 %{buildroot}%{_javadocdir}/%{name}
cp -a target/site/apidocs/. %{buildroot}%{_javadocdir}/%{name}

mkdir -p %{buildroot}%{_bindir}
ln -s %{openjfxdir}/bin/javafxpackager %{buildroot}%{_bindir}
ln -s %{openjfxdir}/bin/javapackager %{buildroot}%{_bindir}

%files
%dir %{openjfxdir}
# symlink to openjfx8
%{_jvmdir}/openjfx
%{openjfxdir}/rt
%license LICENSE
%doc README
%doc README.fedora

%files devel
%{openjfxdir}/lib
%{openjfxdir}/bin
%{_bindir}/javafxpackager
%{_bindir}/javapackager
%{_mandir}/man1/javafxpackager.1*
%{_mandir}/man1/javapackager.1*
%{_mandir}/ja_JP/man1/javafxpackager.1*
%{_mandir}/ja_JP/man1/javapackager.1*
%license LICENSE
%doc README
%doc README.fedora

%files src
%{openjfxdir}/javafx-src.zip

%files javadoc
%{_javadocdir}/%{name}
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15068 |21mr|openjpa-2.4.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# set to 0 provides a minimal test suite
%global with_tests 0

Name:          openjpa
Version:       2.4.1
Release:       13
Summary:       Java Persistence 2.0 API
# For a breakdown of the licensing, see NOTICE file
License:       ASL 2.0 and CDDL
Group:          Development/Java
Url:           http://openjpa.apache.org/
Source0:       http://www.apache.org/dist/openjpa/%{version}/%{name}-parent-%{version}-source-release.zip
# Thanks to Robert Rati
Patch0:        %{name}-2.3.0-remove-WASRegistryManagedRuntime.patch

Patch1:        openjpa-2.4.1-javacc6.patch

BuildRequires: maven-local
BuildRequires: mvn(ant-contrib:ant-contrib)
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-dbcp:commons-dbcp)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(commons-pool:commons-pool)
BuildRequires: mvn(hsqldb:hsqldb:1)
BuildRequires: mvn(httpunit:httpunit)
BuildRequires: mvn(jakarta-regexp:jakarta-regexp)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sourceforge.serp:serp)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-jsch)
BuildRequires: mvn(org.apache.bval:bval-jsr)
BuildRequires: mvn(org.apache.commons:commons-jci-rhino)
BuildRequires: mvn(org.apache.derby:derby)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-validation_1.0_spec)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.xbean:xbean-finder)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires: mvn(org.jmock:jmock)
BuildRequires: mvn(org.jmock:jmock-junit4)
BuildRequires: mvn(org.osgi:org.osgi.core)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(postgresql:postgresql)
BuildRequires: mvn(simple-jndi:simple-jndi)
BuildRequires: javaparser

# Test deps
%if 0
BuildRequires: mvn(mariadb:mariadb-connector-java)
%endif

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
OpenJPA is Apache's implementation of Sun's Java Persistence 2.0 API
(JSR-317 JPA 2.0) specification for the transparent persistence of
Java objects.

It is an object-relational mapping (ORM) solution for the Java language,
which simplifies storing objects in databases.

%package tools
Summary:       OpenJPA tools - Maven Plugin

%description tools
OpenJPA tasks for enhancing, SQL creation and
schema mapping creation using Apache maven.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-parent-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -delete
# openjpa-kernel/internal-repository/com/ibm/websphere/websphere_uow_api/0.0.1/websphere_uow_api-0.0.1.jar
%patch0 -p0
%patch1 -p1

%pom_disable_module %{name}
%pom_disable_module %{name}-all
%pom_disable_module %{name}-examples
%pom_disable_module %{name}-integration
%pom_disable_module %{name}-project
%pom_disable_module openbooks %{name}-examples

%pom_remove_plugin :docbkx-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :ianal-maven-plugin
%pom_remove_plugin :taglist-maven-plugin
%pom_remove_plugin :apache-rat-plugin

%pom_remove_dep net.sourceforge.findbugs:annotations
%pom_remove_dep org.apache.bval ./openjpa-tools/openjpa-maven-plugin 

%pom_xpath_remove "pom:profile[pom:id='ydoc-profile']"
# Remove testing profiles for unavailable drivers: 
# db2jcc informix-driver jcc-driver jdbc-driver jdbc-oracle jtds sqljdbc
%pom_xpath_remove "pom:profile[pom:id='test-sybase-jconnect']" %{name}-persistence-jdbc
%pom_xpath_remove "pom:profile[pom:id='test-soliddb']" %{name}-persistence-jdbc
for p in persistence-jdbc persistence-locking; do
%pom_xpath_remove "pom:profile[pom:id='test-custom']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-custom2']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-db2-jcc']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-derbyjcc']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-ids-jcc']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-ids-informix']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-ingres']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-mssql']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-oracle']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-sqlserver']" %{name}-${p}
%pom_xpath_remove "pom:profile[pom:id='test-sybase']" %{name}-${p}
done

%pom_change_dep -r :geronimo-jpa_2.0_spec org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final

%pom_remove_dep com.ibm.websphere:websphere_uow_api %{name}-kernel
# Require non free com.ibm.websphere websphere_uow_api 0.0.1
rm %{name}-kernel/src/main/java/org/apache/openjpa/ee/WASRegistryManagedRuntime.java

# Remove bundled asm
%pom_xpath_set "pom:dependency[pom:groupId = 'org.apache.xbean']/pom:artifactId" xbean-finder %{name}-kernel
sed -i "s|org.apache.xbean.asm5|org.objectweb.asm|" \
 %{name}-kernel/src/main/java/org/apache/openjpa/enhance/AsmAdaptor.java
%pom_add_dep org.ow2.asm:asm:5.0.3 %{name}-kernel

# Use proper hsqldb version
%pom_change_dep -r :hsqldb ::1 %{name}-jdbc
%pom_xpath_set "pom:properties/pom:hsqldb.version" 1

# Use proper log4j version
%pom_change_dep -r log4j: ::1.2.17

# Break build in f>=19
%pom_remove_plugin :maven-invoker-plugin %{name}-tools/%{name}-maven-plugin

# Fix bval deps

# Force servlet 3.1 apis
%pom_change_dep javax.servlet:servlet-api :javax.servlet-api:3.1.0 %{name}-jest

%mvn_package ":%{name}-tools" tools
%mvn_package ":%{name}-maven-plugin" tools
%mvn_package ":%{name}-fetch-statistics" tools
%mvn_package ":%{name}-fetch-statistics-was" tools

%build

export MAVEN_OPTS="-Xms1024m -Xmx2048m -Xss5m"
# test random fails
%mvn_build -- \
%if %{with_tests}
  -Ptest-derby \
%else
  -Dtest=false \
%endif
  -DfailIfNoTests=false \
  -Dmaven.test.failure.ignore=true \
  process-resources

%install
%mvn_install

mkdir -p %{buildroot}%{_sysconfdir}/ant.d
echo "ant %{name}/%{name}-jdbc %{name}/%{name}-kernel %{name}/%{name}-lib" > %{name}-ant
install -p -m 644 %{name}-ant %{buildroot}%{_sysconfdir}/ant.d/%{name}

%files -f .mfiles
%config(noreplace) %{_sysconfdir}/ant.d/%{name}
%doc README.txt
%license LICENSE NOTICE

%files tools -f .mfiles-tools
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15069 |21mr|openjpeg-1.5.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# deleted from repo

%define oname OpenJPEG
%define oversion %(echo %{version} | sed -e 's/\\./_/g')

%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An open-source JPEG 2000 codec
Name:		openjpeg
Version:	1.5.2
Release:	7
License:	BSD
Group:		System/Libraries
Url:		http://www.openjpeg.org/
Source0:	http://openjpeg.googlecode.com/files/%{name}-%{version}.tar.gz
Patch1:		openjpeg-1.5.2-CVE-2013-1447.patch
Patch2:		openjpeg-1.5.2-CVE-2013-6887.patch
Patch3:		openjpeg-1.5.2-CVE-2014-0158.patch
Patch4:         openjpeg-1.5.2-CVE-2016-7445.patch
Patch5:         openjpeg-1.5.2-CVE-2016-7163.patch
Patch6:         openjpeg-1.5.2-CVE-2016-9573.patch
Patch7:         openjpeg-1.5.2-CVE-2016-5139.patch
Patch8:         openjpeg-1.5.2-CVE-2016-5158.patch
Patch9:         openjpeg-1.5.2-CVE-2016-5159.patch
Patch10:        openjpeg-1.5.2-fix-memory-leaks.patch
Patch11:        openjpeg-1.5.2-CVE-2016-3182.patch
BuildRequires:	cmake
BuildRequires:	dos2unix

%description
The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
It has been developed in order to promote the use of JPEG 2000, the new still-
image compression standard from the Joint Photographic Experts Group (JPEG).

%files
%doc %{_datadir}/doc/%{name}-1.5/
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{oname} library
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with the %{oname} library.

The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
It has been developed in order to promote the use of JPEG 2000, the new still-
image compression standard from the Joint Photographic Experts Group (JPEG).

%files -n %{libname}
%{_libdir}/libopenjpeg.so.%{major}
%{_libdir}/libopenjpeg.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs using the %{oname} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries needed for developing
programs using the %{oname} library.

The OpenJPEG library is an open-source JPEG 2000 codec written in C language.
It has been developed in order to promote the use of JPEG 2000, the new still-
image compression standard from the Joint Photographic Experts Group (JPEG).

%files -n %{devname}
%{_includedir}/%{name}-1.5/%{name}.h
%{_libdir}/libopenjpeg.so
%{_libdir}/%{name}-1.5/*.cmake
%{_libdir}/pkgconfig/libopenjpeg1.pc

#----------------------------------------------------------------------------

%prep
%setup -q
dos2unix libopenjpeg/opj_malloc.h
%apply_patches

%build
%cmake -DOPENJPEG_INSTALL_LIB_DIR=%{_lib}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15070 |21mr|openjpeg2-2.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname OpenJPEG

%define major 7
%define libname %mklibname openjp2_ %{major}
%define devname %mklibname %{name} -d

Summary:	An open-source JPEG 2000 codec
Name:		openjpeg2
Version:	2.4.0
Release:	3
License:	BSD
Group:		System/Libraries
Url:		http://www.openjpeg.org/
Source0:	https://github.com/uclouvain/openjpeg/archive/v%{version}.tar.gz?/openjpeg-%{version}.tar.gz
Patch0:		CVE-2021-29338.patch
Patch1:		CVE-2022-1122.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(lcms2)

%description
The OpenJPEG library is an open-source JPEG 2000 codec written in C
language. It has been developed in order to promote the use of JPEG
2000, the new still-image compression standard from the Joint
Photographic Experts Group (JPEG).

%files
%doc AUTHORS.md NEWS.md README.md THANKS.md
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{oname} shared library
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with the %{oname} library.

The OpenJPEG library is an open-source JPEG 2000 codec written in C
language. It has been developed in order to promote the use of JPEG
2000, the new still-image compression standard from the Joint
Photographic Experts Group (JPEG).

%files -n %{libname}
%doc AUTHORS.md NEWS.md README.md THANKS.md
%{_libdir}/libopenjp2.so.%{major}
%{_libdir}/libopenjp2.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs using the %{oname} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and libraries needed for
developing programs using the %{oname} library.

%files -n %{devname}
%{_includedir}/*
%{_mandir}/man3/*
%{_libdir}/libopenjp2.so
%{_libdir}/cmake/openjpeg-*
%{_libdir}/pkgconfig/libopenjp2.pc

#----------------------------------------------------------------------------

%prep
%setup -qn openjpeg-%{version}
%apply_patches

# install cmake files to right path
sed -i 's|OPENJPEG_INSTALL_SUBDIR "${projectname}|OPENJPEG_INSTALL_SUBDIR "cmake/${projectname}|' CMakeLists.txt

%build
%cmake \
	-DOPENJPEG_INSTALL_BIN_DIR:PATH=%{_bindir} \
	-DOPENJPEG_INSTALL_DATA_DIR:PATH=%{_datadir} \
	-DOPENJPEG_INSTALL_INCLUDE_DIR:PATH=%{_includedir} \
	-DOPENJPEG_INSTALL_LIB_DIR:PATH=%{_libdir} \
	-DBUILD_SHARED_LIBS=ON \
	-DBUILD_THIRDPARTY:BOOL=OFF \
	-DBUILD_DOC=ON
%make VERBOSE=1

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15071 |21mr|openl2tp-1.8-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with rpc

Summary:	An L2TP client/server, designed for VPN use
Name:		openl2tp
Version:	1.8
Release:	13
License:	GPLv2+
Group:		System/Base
Url:		ftp://downloads.sourceforge.net/projects/openl2tp/%{name}-%{version}.tar.gz
Source0:	%{name}-%{version}.tar.gz
Source1:	openl2tp.service
Source2:	openl2tp-tmpfiles.conf
Patch0:		openl2tp-1.8-make.patch
Patch1:		openl2tp-1.8-tirpc.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	kernel-headers
BuildRequires:	ppp
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libtirpc)
Requires:	ppp >= 2.4.5
Requires:	readline >= 4.2
Requires:	rpcbind
Requires(post):	systemd
Requires(post,preun):	rpm-helper

%description
OpenL2TP is a complete implementation of RFC2661 - Layer Two Tunneling
Protocol Version 2, able to operate as both a server and a client. It
is ideal for use as an enterprise L2TP VPN server, supporting more
than 100 simultaneous connected users. It may also be used as a client
on a home PC or roadwarrior laptop.

OpenL2TP has been designed and implemented specifically for Linux. It
consists of

- a daemon, openl2tpd, handling the L2TP control protocol exchanges
 for all tunnels and sessions
- a plugin for pppd to allow its PPP connections to run over L2TP
 sessions
- a Linux kernel driver for efficient datapath (integrated into the
 standard kernel from 2.6.23).
- a command line application, l2tpconfig, for management.

%files
%doc README LICENSE
%config %{_sysconfdir}/sysconfig/openl2tpd
%{_tmpfilesdir}/%{name}.conf
%dir %{_libdir}/openl2tp
%{_sbindir}/openl2tpd
%{_libdir}/openl2tp/ppp_null.so
%{_libdir}/openl2tp/ppp_unix.so
%{_libdir}/openl2tp/ipsec.so
%{_libdir}/openl2tp/event_sock.so
%{_mandir}/man4/openl2tp_rpc.4.*
%{_mandir}/man5/openl2tpd.conf.5.*
%{_mandir}/man7/openl2tp.7.*
%{_mandir}/man8/openl2tpd.8.*
%{_unitdir}/openl2tp.service

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package devel
Summary:	OpenL2TP support files for plugin development
Group:		Development/Other

%description devel
This package contains support files for building plugins for OpenL2TP,
or applications that use the OpenL2TP APIs.

%files devel
%doc plugins/README doc/README.event_sock
%{_libdir}/openl2tp/l2tp_rpc.x
%{_libdir}/openl2tp/l2tp_event.h
%{_libdir}/openl2tp/event_sock.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

%if %{without rpc}
perl -p -i -e 's/L2TP_FEATURE_RPC_MANAGEMENT=\ty//' Makefile
%endif

%build
make PPPD_VERSION=2.4.5

%install
make install DESTDIR=%{buildroot} \
	PPPD_VERSION=2.4.5

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/openl2tp.service
cp -f etc/sysconfig/openl2tpd %{buildroot}%{_sysconfdir}/sysconfig/openl2tpd

install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%ifarch aarch64
mkdir -p %{buildroot}%{_libdir}
mv %{buildroot}%{_prefix}/lib/%{name} %{buildroot}%{_libdir}/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15072 |21mr|openldap-2.4.59-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _build_pkgcheck_srpm %{nil}
%define _disable_rebuild_configure 1

# When openldap is built with Heimdal instead of MIT krb5,
# it becomes linked with libgssapi from Heimdal;
# then lib64ldap2.4_2-devel requires devel(libgssapi);
# then, when building e.g. cups, which BRs MIT krb5-devel,
# heimdal-devel is being pulled, but it conflicts with heimdal-devel.
# To resolve this, let's filter our devel(libgssapi),
# I don't think that it is required when linking against libldap.
# But, if openldap is built with MIT krb5, then it depends from
# devel(libgssapi_krb5), not devel(libgssapi),
# add requires_exclude devel(libgssapi_krb5) 
# because heimdal-devel conflict with krb5-devel.
%global __requires_exclude devel\\(libgssapi(\\(.*\\))?\\)|devel\\(libgssapi_krb5(\\(.*\\))?\\)

%global beta %{nil}
%bcond_with bootstrap

#defaults
%define build_modules 1
%define build_modpacks 0
%define build_slp 0
# kinit is buildable only with MIT krb5, smbk5pwd - only with Heimdal.
# UBUNTU-gssapi.patch can work with both Heimdal and MIT Kerberos.
# Some binaries, e.g. in FreeIPA (ipa) are linked with both openldap and krb5, it causes
# linktime and runtime conflicts of symbols which are the same in both libraries,
# and using Heimdal here seems to not give any real benefit, except workable smbk5pwd,
# but https://github.com/opinsys/smbkrb5pwd is used instead.
%define build_heimdal 0
%if %{with bootstrap}
# as in Ubuntu (<!stage1>), Heimdal BRs openldap
%define build_heimdal 0
%endif
%define build_nssov 1
%if %{build_heimdal}
# smbk5pwd is for Heimdal Kerberos, smb5krb6pwd is a similar module for MIT Kerberos
%define build_smbk5pwd 1
%define build_smbkrb5pwd 0
%define build_kinit 0
%else
%define build_smbk5pwd 0
%define build_smbkrb5pwd 1
%if ! %{with bootstrap}
%define build_kinit 1
%else
%define build_kinit 0
%endif
%endif

%{?_with_modules: %global build_modules 1}
%{?_without_modules: %global build_modules 0}
%{?_with_slp: %global build_slp 1}
%{?_without_slp: %global build_slp 0}
%{?_with_heimdal: %global build_heimdal 1}
%{?_without_heimdal: %global build_heimdal 0}
%{?_with_nssov: %global build_nssov 1}
%{?_without_nssov: %global build_nssov 0}
%{?_with_smbk5pwd: %global build_smbk5pwd 1}
%{?_without_smbk5pwd: %global build_smbk5pwd 0}
%{?_without_kinit: %global build_kinit 0}

%define major 2.4_2
%define fname ldap
%define libname %mklibname %{fname} %{major}
%define migtools_ver 45

%define smbkrb5pwd_commit 925f8674340471ea42be0bda70b3948b15743560

# we want to use the default db version for each release, so as
# to make backport binary compatibles
# excepted for very old systems, where we use bundled db
%define bundled_db_source_ver 4.8.30
%define dbdevel db52-devel
%global db_internal 0
%define dbver 5.2.0
%define dbutils db52-utils
%define dbutilsprefix db52_

%define ol_ver_major 2.4

%global clientbin	ldapadd,ldapcompare,ldapdelete,ldapmodify,ldapmodrdn,ldappasswd,ldapsearch,ldapwhoami,ldapexop
%global serverbin	slapd-addel,slapd-bind,slapd-modify,slapd-modrdn,slapd-read,slapd-search,slapd-tester,ldif-filter
%define serversbin	slapadd,slapcat,slapd,slapdn,slapindex,slappasswd,slaptest,slurpd,slapacl,slapauth

#localstatedir is passed directly to configure, and we want it to be /var/lib
#define _localstatedir %{_var}/run
%define _libexecdir %{_sbindir}

%{?_with_gdbm: %global db_conv dbb}
%{!?_with_gdbm: %global db_conv gdbm}
%global build_sql 1
%{?_without_sql: %global build_sql 0}
%global back_perl 0

# easify maintaining patches
%global _default_patch_fuzz 2

%if %{with bootstrap}
# for some reasons plugins become underlinked...
%define _disable_ld_no_undefined 1
%endif

Summary:	LDAP servers and sample clients
Name:		openldap
Version:	2.4.59
Release:	6
License:	Artistic
Group:		System/Servers
URL:		http://www.openldap.org

# Openldap source
Source0:	https://www.openldap.org/software/download/OpenLDAP/openldap-release/%{name}-%{version}%{beta}.tgz

## To generate ths tarball, check the docs out of CVS:
# cvs -d :pserver:anonymous@cvs.OpenLDAP.org:/repo/OpenLDAP co \
# -r OPENLDAP_REL_ENG_2_4 guide
## patch the docs:
# cd guide/admin
# patch -p0 < `rpm --eval %_sourcedir`/ROSA-admin-guide-add-vendor-doc.patch
# cp -p `rpm --eval %_sourcedir`/vendor*.sdf .
## build the docs
# make guide.html
## tar them up
# mkdir openldap-guide
# cp *.html *.gif *.png ../images/LDAPlogo.gif openldap-guide
# tar cjvf `rpm --eval %_sourcedir`/openldap-guide-2.4.tar.bz2 openldap-guide
## To update the README-openldap2.4.mdv as well:
# sdf -2txt_ vendor-standalone.sdf
# cp vendor-standalone.txt `rpm --eval %_sourcedir`/README-openldap2.4.mdv
## ensure your changes get back into the package:
# cvs diff | bzip2 -c > \
# `rpm --eval %_sourcedir`/ROSA-admin-guide-add-vendor-doc.patch.bz2
# tar cjvf `rpm --eval %_sourcedir`/openldap-2.4-vendor-docs.tar.bz2 vendor*.sdf

Source12:	openldap-guide-2.4-sep2014.tar.bz2
Source13:	README-openldap2.4.mdv

# Specific source
Source1: 	ldap.service
Source2: 	openldap.sysconfig
Source20:	ldap.logrotate
Source21:	slapd.conf
Source22:	DB_CONFIG
Source23:	ldap.conf
Source24:	slapd.access.conf
Source25:	ldap-hot-db-backup
Source26:	ldap-reinitialise-slave
Source27:	ldap-common
Source28:	coreschemas.conf
Source29:	extraschemas.conf

# Extended Schema
Source50:	printer.schema
Source51:	evoldap.schema
Source52:	urpmi.schema
Source53:	sudo.schema
Source54:	mull.schema
Source55:	evolutionperson.schema
Source56:	dnszone.schema
Source57:	calendar.schema

# Doc sources, used to build SOURCE12 and SOURCE13 above
Source100:	ROSA-admin-guide-add-vendor-doc.patch
Source101:	vendor.sdf
Source102:	vendor-standalone.sdf

# Replacement of smbk5pwd for MIT Kerberos
# http://labs.opinsys.com/blog/2010/05/05/smbkrb5pwd-password-syncing-for-openldap-mit-kerberos-and-samba/
Source201:	https://github.com/opinsys/smbkrb5pwd/archive/%{smbkrb5pwd_commit}.tar.gz?/smbkrb5pwd-%{smbkrb5pwd_commit}.tar.gz

Source500:	ldap.tmpfiles.d
Source502:	ldap.sysusers.d

Patch0:		openldap-2.3.4-config.patch
Patch1:		openldap-2.0.7-module.patch
Patch6:		openldap-2.4.12-test001-check-slapcat.patch
Patch15:	openldap-cldap.patch
Patch46:	openldap-2.0.21-schema.patch
Patch47:	openldap-2.4.12-change-dyngroup-schema.patch
Patch53:	openldap-ntlm.patch
Patch54:	DEBIAN-getaddrinfo-is-threadsafe.patch
Patch55:	UBUNTU-gssapi.patch
# Adapted from Ubuntu: 's/krb5-config.heimdal/$(KRB5_CONFIG)/g'
Patch56:	UBUNTU-contrib-makefiles.patch
# CVE-2022-29155
Patch57:	https://git.openldap.org/openldap/openldap/-/commit/87df6c19915042430540931d199a39105544a134.patch
Patch58:	CVE-2015-3276.patch
BuildRequires:	perl
BuildRequires:	openssl-devel
%if %{build_slp}
BuildRequires:	openslp-devel
%endif
# Using BuildConflicts bellow because
# UBUNTU-gssapi.patch first looks for Heimdal's -lgssapi,
# then for MIT krb5's -lgssapi_krb5;
# depending on Heimdal packaging, Heimdal and MIT krb5
# may or may not conflict with each other, so, to avoid
# hacking that Ubuntu's patch, let's guarantee that we
# avoid a mixture of Heimdal and MIT krb5 libraries.
%if ! %{with bootstrap}
%if %{build_heimdal}
BuildRequires:	heimdal-devel
BuildConflicts:	krb5-devel
%else
BuildRequires:	krb5-devel
BuildConflicts:	heimdal-devel
%endif #end build_heimdal
BuildRequires:	sasl-devel
%endif #end bootstrap
%if %{build_sql}
BuildRequires:	unixODBC-devel
%endif
%if %{back_perl}
BuildRequires:	perl-devel
%endif
BuildRequires:	%{dbdevel} >= %{dbver}
BuildRequires:	ncurses-devel >= 5.0
BuildRequires:	tcp_wrappers-devel
BuildRequires:	libltdl-devel
BuildRequires:	groff
BuildRequires:	openssl-devel
BuildRequires:	sasl-devel
BuildRequires:	gettext-devel
%if %{build_smbk5pwd}
BuildRequires:	pkgconfig(nettle)
%endif
# for make test:
BuildRequires:	diffutils
BuildRequires:	openssl-config
# rpm-helper is for %%*_syslog*
BuildRequires:	rpm-helper
Requires:	shadow-utils, setup

%description
OpenLDAP is an open source suite of LDAP (Lightweight Directory Access
Protocol) applications and development tools.  The suite includes a
stand-alone LDAP server (slapd) which is in the -servers package, libraries for
implementing the LDAP protocol (in the lib packages), and utilities, tools, and
sample clients (in the -clients package). The openldap binary package includes
only configuration files used by the libraries.

Install openldap if you need LDAP applications and tools.

# --------------------------------------------------------------------------- #

%package config
Summary:	OpenLDAP confdir
Group:		Databases
# Ensure that systemd-sysusers exists
Requires(pre):	systemd

%description config
OpenLDAP confdir

This package prepares directory structure for server configuration files and
for openldap-schema-* packages, the OpenLDAP schema file collection.

# --------------------------------------------------------------------------- #

%package schemas
Summary:	OpenLDAP schema files
Group:		Databases
Requires(pre):	%{name}-config
Recommends:	openldap-schemas-heimdal
Recommends:	openldap-schemas-krb5
Recommends:	openldap-schemas-samba
Recommends:	openldap-schemas-dhcp
#Recommends:	openldap-schemas-freeradius
#Recommends:	openldap-schemas-nfs
#Recommends:	openldap-schemas-webmin
#Recommends:	openldap-schemas-pureftpd
#Recommends:	openldap-schemas-quota
#Recommends:	openldap-schemas-sendmail
#Recommends:	openldap-schemas-evoldap
#Recommends:	openldap-schemas-urpmi
Recommends:	openldap-schemas-extra

%description schemas
OpenLDAP schema files

This package contains standard set of OpenLDAP schema files. Supplementary
schema definitions (Heimdal, krb5, etc.) may be added up to this collection,
see 'urpmq -aS openldap-schemas' for full list.

# --------------------------------------------------------------------------- #

%package schemas-extra
# A successor to "openldap-extra-schemas" package which was not updated for a
# number of years. This one should be kept as thin as possible as it can only be
# updated manually. Use of openldap-schemas-%{name} packages is preferrable.

# IMPORTANT: it should not obsolete and trigger removal of "openldap-extra-schemas"
# at list till 2016 as removal of "openldap-extra-schemas" could ruin someones's
# production environment.

Summary:	OpenLDAP extra schema files
Group:		Databases
Requires(pre): %{name}-config

%description schemas-extra
OpenLDAP extra schema files

A set of extra OpenLDAP schema files,
see 'urpmq -aS openldap-schemas' for full list.

# --------------------------------------------------------------------------- #

%package servers
Summary:	OpenLDAP servers and related files
Group:		System/Servers
Requires:	%{name}-schemas
# rpm-helper is for %%*_syslog*
# TODO: get rid of it
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires(pre):	coreutils shadow-utils openssl
Requires(pre):	shadow-utils
Requires(pre):	openssl
Requires(pre):	%{name}-config
%if !%{build_modpacks}
Recommends:	%{name}-doc
Provides:	%{name}-back_dnssrv = %{EVRD}
Provides:	%{name}-back_ldap = %{EVRD}
Provides:	%{name}-back_passwd = %{EVRD}
Provides:	%{name}-back_sql = %{EVRD}
Obsoletes:	%{name}-back_dnssrv < %{EVRD}
Obsoletes:	%{name}-back_ldap < %{EVRD}
Obsoletes:	%{name}-back_passwd < %{EVRD}
Obsoletes:	%{name}-back_sql < %{EVRD}
Conflicts:	%{name}-servers < %{EVRD}
%endif
Requires(pre):	%{dbutils}
Requires(post):	%{dbutils}
# slapd checks at startup if the library version matches exactly what it
# was compiled against, so we cant allow newer versions, e.g.:
#bdb_back_initialize: BDB library version mismatch: expected Berkeley DB 4.8.26: (December 30, 2009), got Berkeley DB 4.8.30: (March 25, 2011)
# This might need to be changed to a library dependency, but we need to verify
# library provides on multiple distros before doing that
Requires:	%{dbutils} >= %{dbver}

# OpenLDAP 'servers' require their config to be constructed by installing several packages:
# 'config' package as frame and schema files from respective project's sources for inclusion.
# Installation order is mandatory and urpmi should be hinted to install all config chunks before
# 'servers' package as it will likely fail to first-run daemons otherwise.
Requires(pre):	%{name}-schemas

# to generate a certificate in systemd init
# cert-sh-functions must exist before first start of ldap.service,
# it is called from ExecStartPre, '(post)' is to guarantee its existence
Requires(post):	cert-sh-functions
Requires:	cert-sh-functions
# for ldap-hot-db-backup
Requires:	bash
Requires:	%{libname} = %{EVRD}

%description servers
OpenLDAP Servers

This package contains the OpenLDAP server, slapd (LDAP server), it's configuration
files, additional backends and database maintenance tools.
This server package was compiled with support for the %{?_with_gdbm:gdbm}%{!?_with_gdbm:berkeley}
database library.

# --------------------------------------------------------------------------- #

%package clients
Summary:	OpenLDAP clients and related files
Group:		System/Servers
Requires:	%{libname} = %{EVRD}

%description clients
OpenLDAP clients

This package contains command-line ldap clients (ldapsearch, ldapadd etc)

# --------------------------------------------------------------------------- #

%package -n %{libname}
Summary:	OpenLDAP libraries
Group:		System/Libraries
Provides:	lib%{fname} = %{EVRD}
Requires:	%{name}

%description -n %{libname}
This package includes the libraries needed by ldap applications.

# --------------------------------------------------------------------------- #

%package -n %{libname}-devel
Summary:	OpenLDAP development libraries and header files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	tcp_wrappers-devel
Provides:	%{name}-devel = %{EVRD}
Provides: 	lib%{fname}-devel = %{EVRD}
Provides:	openldap2-devel = %{EVRD}
Obsoletes: 	openldap-devel < %{EVRD}
Conflicts:	libldap1-devel
Conflicts:	%mklibname -d ldap 2
Conflicts:	%mklibname -d ldap 2.3_0

%description -n %{libname}-devel
This package includes the development libraries and header files
needed for compiling applications that use LDAP internals.  Install
this package only if you plan to develop or will need to compile
LDAP clients.

# --------------------------------------------------------------------------- #

%package -n %{libname}-static-devel
Summary:	OpenLDAP development static libraries
Group:		Development/C
Requires:	%{libname}-devel = %{EVRD}
Provides:	lib%{fname}-devel-static = %{EVRD}
Provides:	lib%{fname}-static-devel = %{EVRD}
Provides:	openldap-devel-static = %{EVRD}
Provides:	openldap-static-devel = %{EVRD}
Obsoletes:	openldap-devel-static < %{EVRD}
Conflicts:	libldap1-devel

%description -n %{libname}-static-devel
OpenLDAP development static libraries

%if %{build_modpacks}

# --------------------------------------------------------------------------- #

%package back_dnssrv
Summary:	Module dnssrv for OpenLDAP
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	openldap-servers = %{EVRD}

%description back_dnssrv
The dnssrv daabase backend module for OpenLDAP daemon

# --------------------------------------------------------------------------- #

%package back_ldap
Summary:	Module ldap for OpenLDAP
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	openldap-servers = %{EVRD}

%description back_ldap
The ldap database backend module for OpenLDAP daemon

# --------------------------------------------------------------------------- #

%package back_passwd
Summary:	Module passwd for OpenLDAP
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	openldap-servers = %{EVRD}

%description back_passwd
The passwd database backend module for OpenLDAP daemon
%endif

# --------------------------------------------------------------------------- #

%if %{build_sql} && %{build_modpacks}
%package back_sql
Summary:	Module sql for OpenLDAP
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Requires:	openldap-servers = %{EVRD}

%description back_sql
The sql database backend module for OpenLDAP daemon
%endif

# --------------------------------------------------------------------------- #

%package doc
Summary:	OpenLDAP documentation and administration guide
Group:		Books/Computer books
Requires:	openldap
Provides:	openldap-guide

%description doc
OpenLDAP documentation, incuding RFCs and the adminitration guide

# --------------------------------------------------------------------------- #

%package tests
Summary:	OpenLDAP Test Suite - tests and data
Group:		Development/Other
Requires:	%{name}-servers
Requires:	%{name}-clients
Requires:	%{name}-testprogs

%description tests
OpenLDAP now has a substantial test suite, which includes sample configurations
and data for a large number of scenarios and features. These are useful for
testing the installed server, and seeing examples of how to use the features.

The intention is that it should be possible to run the entire test suite on
the installed server using this package.

# --------------------------------------------------------------------------- #

%package testprogs
Summary:	OpenLDAP Test Suite - simple testing client binaries
Group:		Development/Other

%description testprogs
Programs shipped with the test suite which are used by the test suite, and may
also be useful as load generators etc.

%prep
%setup -q  -n %{name}-%{version}%{beta}

perl -pi -e 's/LDAP_DIRSEP "run" //g' include/ldap_defaults.h
perl -pi -e 's/testrun/\${TESTDIR}/g' tests/scripts/test024-unique

# https://bugs.gentoo.org/765043
perl -pi -e 's@^AM_INIT_AUTOMAKE.*@AC_PROG_MAKE_SET@' configure.in

# README:
cp %{SOURCE13} README.mdk
# test049 not ready for not writing to testdir ...
mv tests/scripts/{,broken}test049*
chmod a+rx tests/scripts/test054*

%apply_patches

%if %{build_smbkrb5pwd}
tar -xvf %{SOURCE201}
cp -rv smbkrb5pwd-%{smbkrb5pwd_commit} contrib/slapd-modules/
mv -v contrib/slapd-modules/smbkrb5pwd-%{smbkrb5pwd_commit} contrib/slapd-modules/smbkrb5pwd
mv -v contrib/slapd-modules/smbkrb5pwd/README contrib/slapd-modules/smbkrb5pwd/README.smbkrb5pwd
# https://github.com/opinsys/smbkrb5pwd/wiki/Compiling-on-CentOS
grep -Irl '/etc/ldap/slapd.d/' contrib/slapd-modules/smbkrb5pwd | xargs sed -i -e 's,/etc/ldap/slapd.d/,/etc/openldap/,g'
%endif

%build
%serverbuild
# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

# Patch55 UBUNTU-gssapi.patch requires regenerating Makefile
# (from Haiku) openldap uses it's own variation of autotools
libtoolize --force --copy --install
aclocal
autoconf

%configure \
	--with-subdir=%{name} \
	--localstatedir=/run/ldap \
	--enable-static \
	--enable-dynamic \
	--enable-syslog \
	--enable-proctitle \
	--enable-ipv6 \
	--enable-local \
%if %{with bootstrap}
	--with-cyrussasl=no --disable-spasswd \
	--with-kerberos=no --disable-kpasswd \
	--with-gssapi=no \
%else
	--with-cyrussasl=yes --enable-spasswd \
	--with-kerberos=yes --enable-kpasswd \
	--with-gssapi=yes \
%endif
	--with-threads \
	--with-tls \
	--enable-slapd \
	--enable-aci \
	--enable-cleartext \
	--enable-crypt \
	--enable-lmpasswd \
%if %{build_modules}
	--enable-modules \
%endif
	--enable-rewrite \
	--enable-rlookups \
%if %{build_slp}
	--enable-slp \
%endif
	--enable-wrappers \
	--enable-bdb=yes \
	--enable-hdb=yes \
	--enable-ndb=no \
	--enable-backends=mod \
%if %{back_perl}
	--enable-perl=mod \
%else
	--enable-perl=no \
%endif
%if %{build_sql}
	--enable-sql=mod \
%else
	--enable-sql=no \
%endif
	--enable-overlays=mod \
	--enable-shared

# (oe) amd64 fix
perl -pi -e "s|^AC_CFLAGS.*|AC_CFLAGS = $CFLAGS -fPIC|g" libraries/librewrite/Makefile

%make depend
%make

export LIBTOOL=`pwd`/libtool

%if %{build_heimdal}
KRB5_CONFIG=heimdal-config
%else
KRB5_CONFIG=krb5-config
%endif

perl -pi -e 's/pw-radius.la//g' contrib/slapd-modules/passwd/Makefile
#acl broken
# kinit is buildable only with MIT krb5
# Gentoo ebuild disables it in case of using Heimdal, Ubuntu also does not build it
for i in addpartial allop allowed autogroup cloak denyop dsaschema dupent  \
%if %{build_kinit}
    kinit \
%endif
    lastbind lastmod noopsrch nops \
%if %{build_nssov}
    nssov \
%endif
%if %{build_smbk5pwd}
    smbk5pwd \
%endif
%if %{build_smbkrb5pwd}
    smbkrb5pwd \
%endif
    passwd passwd/sha2 trace
do
    make -C contrib/slapd-modules/$i libdir=%{_libdir} moduledir=%{_libdir}/%{name} KRB5_CONFIG=$KRB5_CONFIG
done

%check
rm tests/scripts/test022-ppolicy
%if %{!?_without_test:1}%{?_without_test:0}
#disable icecream:
#PATH=`echo $PATH|perl -pe 's,:[\/\w]+icecream[\/\w]+:,:,g'`
# meta test seems to timeout on the Mandriva cluster:
#export TEST_META=no
# Use a pseudo-random number between 9000 and 10000 as base port for slapd in tests
#export SLAPD_BASEPORT=$[9000+RANDOM%1000]
#cmake -C tests %{!?tests:test}%{?tests:%tests}
%endif

%install
export DONT_GPRINTIFY=1
for i in addpartial allop allowed autogroup \
%if %{build_kinit}
 kinit \
%endif
%if %{build_nssov}
    nssov \
%endif
%if %{build_smbk5pwd}
    smbk5pwd \
%endif
    passwd
do
cp -af contrib/slapd-modules/$i/README{,.$i}
done
cp contrib/slapd-modules/passwd/sha2/README{,.sha2}
rm -Rf %{buildroot}

%makeinstall_std STRIP=""

%if %{build_smbk5pwd}
cp -a contrib/slapd-modules/smbk5pwd/.libs/smbk5pwd.so* %{buildroot}/%{_libdir}/%{name}
%if !%{build_heimdal}
for i in %{buildroot}/%{_libdir}/%{name}/smbk5pwd*
do
  if [ -L ${i} ]
  then
    newlink=`readlink $i|sed -e 's/k5//g'`
    rm $i
    ln -svf $newlink ${i/k5/}
  else
    mv $i ${i/k5/}
  fi
done
%endif
%endif

%if %{build_smbkrb5pwd}
cp -a contrib/slapd-modules/smbkrb5pwd/.libs/*.so* %{buildroot}/%{_libdir}/%{name}
%endif

cp contrib/slapd-modules/allop/slapo-allop.5 %{buildroot}/%{_mandir}/man5
cp contrib/slapd-modules/cloak/slapo-cloak.5 %{buildroot}/%{_mandir}/man5
cp contrib/slapd-modules/lastbind/slapo-lastbind.5 %{buildroot}/%{_mandir}/man5
cp contrib/slapd-modules/lastmod/slapo-lastmod.5 %{buildroot}/%{_mandir}/man5
cp contrib/slapd-modules/nops/slapo-nops.5 %{buildroot}/%{_mandir}/man5

#cp contrib/slapd-modules/*/*.so %{buildroot}/%{_libdir}/%{name}

#smbk5pwd skipped, installed as smbpwd above
#dsaschema broken on 32bit
for i in addpartial allop allowed autogroup cloak denyop dupent \
%if %{build_kinit}
    kinit \
%endif
    lastbind lastmod noopsrch nops \
%if %{build_nssov}
    nssov \
%endif
    passwd passwd/sha2 trace
do
    make DESTDIR=%{buildroot} mandir=%{_mandir} moduledir=%{_libdir}/%{name} schemadir=%{_sysconfdir}/%{name}/schema -C contrib/slapd-modules/$i install
    rm -f %{buildroot}/%{_libdir}/%{name}/$i.a
done
rm -f %{buildroot}/%{_libdir}/%{name}/kerberos.a
rm -f %{buildroot}/%{_libdir}/%{name}/netscape.a
rm -f %{buildroot}/%{_libdir}/%{name}/sha2.a
#compat symlinks, DONT REMOVE - these get created automatically now
#ln -s netscape.so %{buildroot}/%{_libdir}/%{name}/pw-netscape.so
#ln -s kerberos.so %{buildroot}/%{_libdir}/%{name}/pw-kerberos.so

# try and ship the tests such that they will run properly

install -d %{buildroot}/%{_datadir}/%{name}/tests
cp -a tests/{data,scripts,Makefile,run} %{buildroot}/%{_datadir}/%{name}/tests
ln -s %{_datadir}/%{name}/schema %{buildroot}/%{_datadir}/%{name}/tests
find %{buildroot}/%{_datadir}/%{name}/tests -type f -name '*.conf' -exec perl -pi -e 's,\.\.\/servers\/slapd\/back-.*,%{_libdir}/%{name},g;s,\.\.\/servers\/slapd\/overlays,%{_libdir}/%{name},g' {} \;
perl -pi -e 's,(\`pwd\`\/)?\.\.\/servers\/(slapd|slurpd)\/(slapd|slurpd),%{_sbindir}/${2},g;s,^PROGDIR=.*,PROGDIR=%{_bindir},g;s,^CLIENTDIR=.*,CLIENTDIR=%{_bindir},g;s,^TESTDIR=.*,TESTDIR=\${USER_TESTDIR-\$TMPDIR/openldap-testrun},g;s/ldap(search|add|delete|modify|whoami|compare|passwd|modrdn|exop)/ldap${1}/g;s/slapd-tester$/slapd-tester/g;s,\$TESTWD\/,,g;s/^(\.\*.*)\$(.*)/${1}\`pwd\`\/\$${2}/g' %{buildroot}/%{_datadir}/%{name}/tests/scripts/defines.sh %{buildroot}/%{_datadir}/%{name}/tests/run
perl -pi -e 's/testrun/\$TESTDIR/g;s,^SHTOOL=.*,. scripts/defines.sh,g' %{buildroot}/%{_datadir}/%{name}/tests/scripts/all
perl -p -i.bak -e 's,^olcModulePath: .*,olcModulePath: %{_libdir}/%{name},g' %{buildroot}/%{_datadir}/%{name}/tests/scripts/test*
perl -pi -e 's/^(Makefile|SUBDIRS)/#$1/g' %{buildroot}/%{_datadir}/%{name}/tests/Makefile
echo 'SHTOOL="./scripts/shtool"' >> %{buildroot}/%{_datadir}/%{name}/tests/scripts/defines.sh
install -m755 build/shtool %{buildroot}/%{_datadir}/%{name}/tests/scripts
ln -s %{_datadir}/%{name}/tests/data %{buildroot}/%{_datadir}/%{name}/tests/testdata

install -m755 tests/progs/.libs/slapd-* tests/progs/.libs/ldif-filter %{buildroot}/%{_bindir}

### some hack
perl -pi -e "s| -L../liblber/.libs||g" %{buildroot}%{_libdir}/libldap.la

perl -pi -e  "s,-L$RPM_BUILD_DIR\S+%{_libdir},,g" %{buildroot}/%{_libdir}/lib*.la
#sed -i -e "s|-L$RPM_BUILD_DIR/%{name}-%{version}/db-instroot/%{_libdir}||g" %{buildroot}/%{_libdir}/*la
#%{buildroot}/%{_libdir}/%{name}/*.la

### Init scripts
install -d %{buildroot}%{_unitdir}
install -m644 %{SOURCE1} %{buildroot}%{_unitdir}/ldap.service

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/ldap

install -m 640 %{SOURCE21} %{SOURCE23} %{SOURCE24} %{buildroot}%{_sysconfdir}/%{name}
sed -i -e 's,@LIBDIR@,%{_libdir},g' %{buildroot}%{_sysconfdir}/%{name}/slapd.conf
OPENSSLDIR="$(openssl-config --openssldir)"
[ ! -z "$OPENSSLDIR" ] # test - not empty
sed -i %{buildroot}%{_sysconfdir}/%{name}/ldap.conf -e "s#@OPENSSLDIR@#${OPENSSLDIR}#g"
grep -q "$OPENSSLDIR" %{buildroot}%{_sysconfdir}/%{name}/ldap.conf # validate

install -d %{buildroot}/%{_sysconfdir}/%{name}/slapd.d
install -m 640 %{SOURCE28} %{buildroot}%{_sysconfdir}/%{name}/slapd.d/coreschemas.conf
install -m 640 %{SOURCE29} %{buildroot}%{_sysconfdir}/%{name}/slapd.d/extraschemas.conf

### repository dir
install -d %{buildroot}%{_var}/lib/ldap

### DB_CONFIG for bdb backend
install -m644 %{SOURCE22} %{buildroot}%{_var}/lib/ldap

### Server defaults
echo "localhost" > %{buildroot}%{_sysconfdir}/%{name}/ldapserver

### we don't need the default files
rm -f %{buildroot}/etc/%{name}/*.default
rm -f %{buildroot}/etc/%{name}/*.example
rm -f %{buildroot}/etc/%{name}/schema/*.default
rm -f %{buildroot}/etc/%{name}/slapd.ldif

### Previous versions of this package held core schema files in {_datadir}/{name}/schema/. We have to keep
### these files in place at least till 2016 so that upgrades do not break existing installations.
install -d %{buildroot}%{_datadir}/%{name}/schema
cp %{buildroot}%{_sysconfdir}/%{name}/schema/*.{schema,ldif} %{buildroot}%{_datadir}/%{name}/schema/
# This one is an exception as it conflicts with 'openldap-extra-schemas'
rm %{buildroot}%{_datadir}/%{name}/schema/ldapns.schema
mv %{buildroot}%{_sysconfdir}/%{name}/schema/README %{buildroot}%{_sysconfdir}/%{name}/schema/README.coreschemas

### install additional schemas

install -m 644 %{SOURCE54} %{buildroot}%{_datadir}/%{name}/schema/
install -m 644 %{SOURCE50} %{buildroot}%{_sysconfdir}/%{name}/schema/
install -m 644 %{SOURCE51} %{buildroot}%{_sysconfdir}/%{name}/schema/
install -m 644 %{SOURCE52} %{buildroot}%{_sysconfdir}/%{name}/schema/
install -m 644 %{SOURCE53} %{buildroot}%{_sysconfdir}/%{name}/schema/
install -m 644 %{SOURCE54} %{buildroot}%{_sysconfdir}/%{name}/schema/
install -m 644 %{SOURCE55} %{buildroot}%{_sysconfdir}/%{name}/schema/
install -m 644 %{SOURCE56} %{buildroot}%{_sysconfdir}/%{name}/schema/
install -m 644 %{SOURCE57} %{buildroot}%{_sysconfdir}/%{name}/schema/

install -d %{buildroot}/%{_datadir}/%{name}/scripts
install -m 755 %{SOURCE25} %{SOURCE26} %{SOURCE27} %{buildroot}/%{_datadir}/%{name}/scripts/

for i in hourly daily weekly monthly yearly
do
	install -d %{buildroot}/%{_sysconfdir}/cron.${i}
	ln -s %{_datadir}/%{name}/scripts/ldap-hot-db-backup %{buildroot}/%{_sysconfdir}/cron.${i}/ldap-hot-db-backup
done
perl -pi -e 's,%{_bindir}/db_,%{_bindir}/%{dbutilsprefix},g' %{buildroot}/%{_datadir}/%{name}/scripts/ldap-common

### create local.schema
#echo "# This is a good place to put your schema definitions " > %{buildroot}%{_sysconfdir}/%{name}/schema/local.schema
#chmod 644 %{buildroot}%{_sysconfdir}/%{name}/schema/local.schema

### Guide
mkdir -p %{buildroot}/%{_docdir}/
tar xvjf %{SOURCE12} -C %{buildroot}/%{_docdir}/
mv %{buildroot}/%{_docdir}/{%{name},%{name}}-guide ||:

### log repository
install -m 700 -d %{buildroot}/var/log/ldap
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 %{SOURCE20} %{buildroot}%{_sysconfdir}/logrotate.d/ldap

# get the buildroot out of the man pages
perl -pi -e "s|%{buildroot}||g" %{buildroot}%{_mandir}/*/*.*

#mkdir -p %{buildroot}%{_sysconfdir}/ssl/%{name}

#Fix binary names and config paths in scripts/configs
perl -pi -e 's,/%{name}/,/%{name}/,g;s,(/ldap\w?)\b,${1},g;s,(%{_bindir}/slapd_db_\w+),${1},g;s,(%{_sbindir}/sl(apd|urpd|aptest))\b,${1},g;s/ldap-common/ldap-common/g;s,ldap.pem,ldap.pem,g;s,/usr/lib,%{_libdir},g' %{_initrddir}/ldap,%{_datadir}/%{name}/scripts/*}

mv %{buildroot}/run/ldap/openldap-data/DB_CONFIG.example %{buildroot}/%{_var}/lib/ldap/

# install private headers so as to build additional overlays later
install -d -m 755 %{buildroot}%{_includedir}/%{name}/{include,slapd}
install -m 644 include/*.h  %{buildroot}%{_includedir}/%{name}/include
install -d -m 755 %{buildroot}%{_includedir}/%{name}/include/ac
install -m 644 include/ac/*.h  %{buildroot}%{_includedir}/%{name}/include/ac
install -m 644 servers/slapd/*.h  %{buildroot}%{_includedir}/%{name}/slapd
install -d -m 755 %{buildroot}%{_includedir}/%{name}/libraries/liblunicode/ucdata
install -m 644 libraries/liblunicode/ucdata/*.h %{buildroot}%{_includedir}/%{name}/libraries/liblunicode/ucdata

# Drop unnecessary static libraries
rm -f %{buildroot}/%{_libdir}/*.la
rm -f %{buildroot}%{_libdir}/%{name}/*.a

# tmpfiles
install -m 0644 %{SOURCE500} -D %{buildroot}%{_tmpfilesdir}/ldap.conf
# sysusers.d
install -m 0644 %{SOURCE502} -D %{buildroot}%{_sysusersdir}/ldap.conf

# Build artefacts, duplicates? after autoreconf?
rm -fvr %{buildroot}%{_sysconfdir}/%{name}/schema.*

%pre config
%sysusers_create_package ldap %{SOURCE502}
%post config
%tmpfiles_create ldap.conf

%pre servers
# allowing slapd to read hosts.allow and hosts.deny
%{_bindir}/gpasswd -a ldap adm 1>&2 > /dev/null || :

if [ "$1" -ne '1' ]
then
SLAPD_STATUS=`LANG=C LC_ALL=C NOLOCALE=1 service ldap status 2>/dev/null|grep -q stopped;echo $?`
[ $SLAPD_STATUS -eq 1 ] && service ldap stop
service ldap recover

LDAPUSER=ldap
LDAPGROUP=ldap
[ -e "/etc/sysconfig/%{name}" ] && . "/etc/sysconfig/%{name}"
SLAPDCONF=${SLAPDCONF:-/etc/%{name}/slapd.conf}

#decide whether we need to migrate at all:
MIGRATE=`%{_sbindir}/slapd -VV 2>&1|while read a b c d e;do case $d in (2.4.*) echo nomigrate;;(2.*) echo migrate;;esac;done`

if [ "$1" -ne 1 -a -e "$SLAPDCONF" -a "$MIGRATE" != "nomigrate" ]
then
#`awk '/^[:space:]*directory[:space:]*\w*/ {print $2}' /etc/%{name}/slapd.conf`
dbs=`awk 'BEGIN {OFS=":"} /[:space:]*^database[:space:]*\w*/ {db=$2;suf="";dir=""}; /^[:space:]*suffix[:space:]*\w*/ {suf=$2;if((db=="bdb"||db=="ldbm"||db=="hdb")&&(suf!=""&&dir!="")) print dir,suf};/^[:space:]*directory[:space:]*\w*/ {dir=$2; if((db=="bdb"||db=="ldbm"||db="hdb")&&(suf!=""&&dir!="")) print dir,suf};' "$SLAPDCONF" $(awk  '/^[[:blank:]]*include[[:blank:]]*/ {print $2}' "$SLAPDCONF")|sed -e 's/"//g'`
for db in $dbs
do
	dbdir=${db/:*/}
	dbsuffix=${db/*:/}
	[ -e /etc/sysconfig/ldap ] && . /etc/sysconfig/ldap
# data migration between incompatible versions
# openldap >= 2.2.x have slapcat as a link to slapd, older releases do not
	if [ "${AUTOMIGRATE:-yes}" == "yes" -a -f %{_sbindir}/slapcat ]
	then
		ldiffile="rpm-migrate-to-%{ol_ver_major}.ldif"
		# dont do backups more than onc
		if [ ! -e "${dbdir}/${ldiffile}-imported" -a ! -e "${dbdir}/${ldiffile}-import-failed" ];then
		echo "Migrating pre-OpenLDAP-%{ol_ver_major} data"
		echo "Making a backup of $dbsuffix to ldif file ${dbdir}/$ldiffile"
		# For some reason, slapcat works in the shell when slapd is
		# running but not via rpm ...
		slapcat -b "$dbsuffix" -l ${dbdir}/${ldiffile} ||:
		fi
	fi
done
fi
fi

%post servers

SLAPD_STATUS=`LANG=C LC_ALL=C NOLOCALE=1 service ldap status 2>/dev/null|grep -q stopped;echo $?`
# bgmilne: part 2 of gdbm->dbb conversion for data created with original package for 9.1:
dbnum=1
LDAPUSER=ldap
LDAPGROUP=ldap
[ -e "/etc/sysconfig/%{name}" ] && . "/etc/sysconfig/%{name}"
SLAPDCONF=${SLAPDCONF:-/etc/%{name}/slapd.conf}

# Setup log facility for OpenLDAP on new install
%_post_syslogadd /var/log/ldap/ldap.log local4

# Set default values
SLAPDSYSLOGLEVEL="3"
SLAPDSYSLOGLOCALUSER="local4"
SLAPDURLLIST="ldap:/// ldaps:/// ldapi:///"
SLAPDCONF="/etc/openldap/slapd.conf"
LDAPUSER="ldap"
LDAPGROUP="ldap"

# Override with local settings (if set)
if [ -f "%{_sysconfdir}/sysconfig/ldap" ]
then
        source %{_sysconfdir}/sysconfig/ldap
fi

# Update envfile with SLAPDARGS string if it is not defined
if [ -z "$SLAPDARGS" ]
then

cat >>%{_sysconfdir}/sysconfig/ldap <<EOF

# Please be aware that since version 2.4.40-9 slapd is under systemd control,
# variables LDAPUSER, SLAPDCONF, SLAPDURLLIST etc. are not relevant any more.
# Use SLAPDARGS string instead:"

SLAPDARGS='-u $LDAPUSER -g $LDAPGROUP -l $SLAPDSYSLOGLOCALUSER -s $SLAPDSYSLOGLEVEL -f $SLAPDCONF -h "$SLAPDURLLIST"'

EOF

cat <<EOF

Please be aware that since version 2.4.40-9 slapd is under systemd control.
Old-style environment variables like LDAPUSER, SLAPDCONF, SLAPDURLLIST etc
are not relevant any more. Environment variable SLAPDARGS is now responsible
for slapd behaviour. Your environment file is being updated with this record:

SLAPDARGS='-u $LDAPUSER -g $LDAPGROUP -l $SLAPDSYSLOGLOCALUSER -s $SLAPDSYSLOGLEVEL -f $SLAPDCONF -h "$SLAPDURLLIST"'

You may want to review service and environment files:

        /lib/systemd/system/ldap.service
        /etc/sysconfig/ldap

If you have suggestions or problems with OpenLDAP and systemd please report
to http://bugs.rosalinux.ru

EOF

fi

# Initialize database files in /var/lib/ldap:

ldifseed="dn: dc=example,dc=com
objectclass: dcObject
objectclass: organization
o: An Example Organisation
dc: example

dn: cn=Manager,dc=example,dc=com
objectclass: organizationalRole
cn: Manager"

if [ ! -e %{_var}/lib/ldap/id2entry.bdb ]
then
	echo "Initializing database files in /var/lib/ldap"
	echo "$ldifseed" | slapadd -f %{_sysconfdir}/%{name}/slapd.conf
	chown ldap:ldap /var/lib/ldap/*
fi

pushd %{_sysconfdir}/%{name}/ > /dev/null
for i in slapd.conf slapd.access.conf ; do
	if [ -f $i ]; then
		chmod 0640 $i
		chown root:ldap $i
	fi
done
popd > /dev/null

[ $SLAPD_STATUS -eq 1 ] && service ldap start

%systemd_post ldap.service

%preun servers
%systemd_preun ldap.service
%_preun_syslogdel


%files
%config(noreplace) %{_sysconfdir}/%{name}/ldapserver
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/ldap.conf
%{_mandir}/man5/ldap.conf.5*
%{_mandir}/man5/ldif.5*
%doc README.mdk

%files doc
%doc ANNOUNCEMENT CHANGES COPYRIGHT LICENSE README
%doc doc/rfc doc/drafts
%doc %{_docdir}/%{name}-guide
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/schema

%files config
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/schema
%dir %attr(750,ldap,ldap) %{_sysconfdir}/%{name}/slapd.d
%{_sysusersdir}/ldap.conf
%{_tmpfilesdir}/ldap.conf

%files schemas
%config(noreplace) %{_sysconfdir}/%{name}/schema/README.coreschemas
%config(noreplace) %attr(750,ldap,ldap) %{_sysconfdir}/%{name}/slapd.d/coreschemas.conf
%config(noreplace) %{_sysconfdir}/%{name}/schema/collective.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/collective.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/corba.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/corba.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/core.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/core.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/cosine.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/cosine.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/duaconf.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/duaconf.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/dyngroup.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/dyngroup.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/inetorgperson.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/inetorgperson.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/java.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/java.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/ldapns.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/misc.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/misc.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/mull.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/nis.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/nis.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/openldap.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/openldap.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/pmi.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/pmi.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/ppolicy.ldif
%config(noreplace) %{_sysconfdir}/%{name}/schema/ppolicy.schema
%{_datadir}/%{name}/schema/collective.ldif
%{_datadir}/%{name}/schema/collective.schema
%{_datadir}/%{name}/schema/corba.ldif
%{_datadir}/%{name}/schema/corba.schema
%{_datadir}/%{name}/schema/core.ldif
%{_datadir}/%{name}/schema/core.schema
%{_datadir}/%{name}/schema/cosine.ldif
%{_datadir}/%{name}/schema/cosine.schema
%{_datadir}/%{name}/schema/duaconf.ldif
%{_datadir}/%{name}/schema/duaconf.schema
%{_datadir}/%{name}/schema/dyngroup.ldif
%{_datadir}/%{name}/schema/dyngroup.schema
%{_datadir}/%{name}/schema/inetorgperson.ldif
%{_datadir}/%{name}/schema/inetorgperson.schema
%{_datadir}/%{name}/schema/java.ldif
%{_datadir}/%{name}/schema/java.schema
%{_datadir}/%{name}/schema/misc.ldif
%{_datadir}/%{name}/schema/misc.schema
%{_datadir}/%{name}/schema/mull.schema
%{_datadir}/%{name}/schema/nis.ldif
%{_datadir}/%{name}/schema/nis.schema
%{_datadir}/%{name}/schema/openldap.ldif
%{_datadir}/%{name}/schema/openldap.schema
%{_datadir}/%{name}/schema/pmi.ldif
%{_datadir}/%{name}/schema/pmi.schema
%{_datadir}/%{name}/schema/ppolicy.ldif
%{_datadir}/%{name}/schema/ppolicy.schema

%files schemas-extra
%config(noreplace) %attr(750,ldap,ldap) %{_sysconfdir}/%{name}/slapd.d/extraschemas.conf
%config(noreplace) %{_sysconfdir}/%{name}/schema/printer.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/evoldap.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/urpmi.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/calendar.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/dnszone.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/evolutionperson.schema
%config(noreplace) %{_sysconfdir}/%{name}/schema/sudo.schema

%files servers
%attr(640,root,ldap) %config(noreplace) %{_sysconfdir}/%{name}/slapd.conf
#%%attr(640,root,ldap) %%config(noreplace) %%{_sysconfdir}/%%{name}/slapd.ldif
#%%attr(640,root,ldap) %%{_sysconfdir}/%%{name}/DB_CONFIG.example
%attr(640,root,ldap) %config(noreplace) %{_sysconfdir}/%{name}/slapd.access.conf
%{_datadir}/%{name}/scripts
%{_sysconfdir}/cron.hourly/ldap-hot-db-backup
%{_sysconfdir}/cron.daily/ldap-hot-db-backup
%{_sysconfdir}/cron.weekly/ldap-hot-db-backup
%{_sysconfdir}/cron.monthly/ldap-hot-db-backup
%{_sysconfdir}/cron.yearly/ldap-hot-db-backup

%config(noreplace) %{_sysconfdir}/sysconfig/ldap
#%%config(noreplace) %%{_initrddir}/ldap%
%{_unitdir}/ldap.service
%attr(750,ldap,ldap) %dir %{_var}/lib/ldap
%config(noreplace) %{_var}/lib/ldap/DB_CONFIG
%{_var}/lib/ldap/DB_CONFIG.example
%{_sbindir}/*

%dir %{_libdir}/%{name}
%if %{build_modules} && !%{build_modpacks}
%{_libdir}/%{name}/*.so*
%endif

%{_mandir}/man5/slap*.5*
%{_mandir}/man8/*

%attr(750,ldap,ldap) %dir /var/log/ldap
%config(noreplace) %{_sysconfdir}/logrotate.d/ldap

%doc contrib/slapd-modules/acl/README.gssacl
%doc contrib/slapd-modules/acl/README.posixgroup
%doc contrib/slapd-modules/addpartial/README.addpartial
%doc contrib/slapd-modules/allop/README.allop
%doc contrib/slapd-modules/allowed/README.allowed
%doc contrib/slapd-modules/autogroup/README.autogroup
#doc contrib/slapd-modules/dsaschema/README.dsaschema
%if %{build_kinit}
%doc contrib/slapd-modules/kinit/README.kinit
%endif
%doc contrib/slapd-modules/passwd/README.passwd
%doc contrib/slapd-modules/passwd/sha2/README.sha2
%if %{build_smbk5pwd}
%doc contrib/slapd-modules/smbk5pwd/README.smbk5pwd
%endif
%if %{build_nssov}
%doc contrib/slapd-modules/nssov/README.nssov
%endif
%if %{build_smbkrb5pwd}
%doc contrib/slapd-modules/smbkrb5pwd/README.smbkrb5pwd
%endif

%files clients
%{_bindir}/ldap*
%{_mandir}/man1/*

%files -n %{libname}
%{_libdir}/lib*.so.*

%files -n %{libname}-devel
%{_libdir}/libl*.so
%{_includedir}/l*.h
%{_includedir}/s*.h
%{_includedir}/openldap.h
%{_includedir}/%{name}
%{_mandir}/man3/*

%files -n %{libname}-static-devel
%{_libdir}/lib*.a

%if %{build_modpacks}
%files back_dnssrv
%{_libdir}/%{name}/back_dnssrv*.so.*
%{_libdir}/%{name}/back_dnssrv*.so

%files back_ldap
%{_libdir}/%{name}/back_ldap*.so.*
%{_libdir}/%{name}/back_ldap*.so

%files back_passwd
%{_libdir}/%{name}/back_passwd*.so.*
%{_libdir}/%{name}/back_passwd*.so
%endif

%if %{build_sql} && %{build_modpacks}
%files back_sql
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/back_sql*.so.*
%{_libdir}/%{name}/back_sql*.so
%endif

%files tests
%{_datadir}/%{name}/tests

%files testprogs
%{_bindir}/slapd-*
%{_bindir}/ldif-filter
#
# Todo:
# - add cron-job to remove transaction logs (bdb)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15073 |21mr|openldap-extra-schemas-1.3-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{!?ol_major: %global ol_major %nil}
%define schema_dir %{_datadir}/openldap%{ol_major}/schema

Summary:	Some extra schemas for OpenLDAP
Name:		openldap%{ol_major}-extra-schemas
Version:	1.3
Release:	22
License:	Several, see each file
Group:		Databases
Url:		http://www.openldap.org
# Get from qmail-ldap patch (http://www.nrg4u.com/qmail/)
Source1:	qmail.schema
# from rfc2739, updated for schema correctness, used by evo for calendar attrs
Source2:	calendar.schema
# from bind sdb_ldap page:http://www.venaas.no/ldap/bind-sdb/dnszone-schema.txt
Source4:	dnszone.schema
# from evolution package
Source5:	evolutionperson.schema
Source6:	kerberosobject.schema
Source7:	kolab.schema
# from Heimdal kerberos sources
# Source8:	krb5-kdc.schema - surpassed by openldap-schema-heimdal
Source9:	ldapns.schema
Source10:	rfc822-MailMember.schema
# Get from samba source, examples/LDAP/samba.schema
# Source11:	samba.schema - surpassed by openldap-schema-samba
# from MIT krb5-1.6.x:
# Source13:	MIT-kerberos.schema - surpassed by openldap-schema-krb5
# Source14:	rfc2307bis.schema - surpassed by openldap-schema-samba
# from openssh-lpk patch at http://dev.inversepath.com/trac/openssh-lpk
Source15:	http://dev.inversepath.com/openssh-lpk/openssh-lpk_openldap.schema
# See http://mattfleming.com/node/190
Source17:	http://mattfleming.com/files/active/0/apple.schema
# from http://cvs.pld.org.pl/SOURCES/openldap-dhcp.schema
Source18:	http://debian.jones.dk/debian/local/honda/pool-ldapv3/woody-jones/openldap2/schemas/netscape-profile.schema
Source19:	http://debian.jones.dk/debian/local/honda/pool-ldapv3/woody-jones/openldap2/schemas/trust.schema
# incomplete:
#Source20:	http://debian.jones.dk/debian/local/honda/pool-ldapv3/woody-jones/openldap2/schemas/dns.schema
Source21:	http://debian.jones.dk/debian/local/honda/pool-ldapv3/woody-jones/openldap2/schemas/cron.schema
Source22:	http://debian.jones.dk/debian/local/honda/pool-ldapv3/woody-jones/openldap2/schemas/qmailControl.schema
Source23:	sudo.schema
Source24:	dhcp.schema
Source25:	autofs.schema
# From courier-authlib-ldap
Source26:	authldap.schema

# LDIF versions of the same schema, created by:
# 1)Making a minimal config with schema and their dependencies
# 2)Running '/usr/sbin/slaptest -f /tmp/schema.conf -F /tmp/ldapns/' or similar
# 3)Cleaning up the file names, with e.g.: for i in cn=*;do mv $i ${i#*\}};done
# 4)Cleaning up the resulting ldif with e.g.: 
#  perl -p0e 's/\n(structuralObjectClass|entryUUID|creatorsName|createTimestamp|entryCSN|modifiersName|modifyTimestamp)[^\n]*//g;s/cn(=|: ){\d+}/cn$1/g;s/^(dn: cn=\w+)\n/$1,cn=schema,cn=config\n/g' *.ldif 
# specifically: remove operational attributes, clean names to match original schema
# names, add cn=schema,cn=config suffix required for adding over the wire

# This is now done in the script below (catered for use in svn)
Source99:	convert.sh

Source101:	qmail.ldif
Source102:	calendar.ldif
Source104:	dnszone.ldif
Source105:	evolutionperson.ldif
Source106:	kerberosobject.ldif
Source107:	kolab.ldif
#Source108:	krb5-kdc.ldif
Source109:	ldapns.ldif
Source110:	rfc822-MailMember.ldif
#Source111:	samba.ldif
#Source113:	MIT-kerberos.ldif
#Source114:	rfc2307bis.ldif
Source115:	openssh-lpk_openldap.ldif
#Source117:	apple.ldif
Source118:	netscape-profile.ldif
#Source119:	trust.ldif
#Source120:	dns.ldif
Source121:	cron.ldif
Source122:	qmailControl.ldif
Source123:	sudo.ldif
Source124:	dhcp.ldif
Source125:	autofs.ldif
Source126:	authldap.ldif

#Requires:	openldap%{ol_major}-servers
# add conflicts when the schemas have been removed from
# openldap-servers
#Conflicts:	openldap-server <= 1:2.3.30-1nl
Conflicts:	openldap%{ol_major}-servers < 2.4.17
BuildArch:	noarch

%description
This package contains some extra schemas for use with the OpenLDAP server.

%files
%{schema_dir}/*.schema
%{schema_dir}/*.ldif

#----------------------------------------------------------------------------

%install
mkdir -p %{buildroot}%{schema_dir}
#install -m 0644 %{_sourcedir}/*.schema %{buildroot}%{schema_dir}
install -m 0644 %{SOURCE1}  %{SOURCE2}  %{SOURCE4}  %{SOURCE5} \
		%{SOURCE6}  %{SOURCE7}  %{SOURCE9}  %{SOURCE10} \
		%{SOURCE15} %{SOURCE17} %{SOURCE18} %{SOURCE19} \
		%{SOURCE21} %{SOURCE22} %{SOURCE23} %{SOURCE24} \
		%{SOURCE25} %{SOURCE26} \
		%{SOURCE101}  %{SOURCE102}  %{SOURCE104}  %{SOURCE105} \
		%{SOURCE106}  %{SOURCE107}  %{SOURCE109}  %{SOURCE110} \
		%{SOURCE115} %{SOURCE118} \
		%{SOURCE121} %{SOURCE122} %{SOURCE123} %{SOURCE124} \
		%{SOURCE125} %{SOURCE126} \
%{buildroot}%{schema_dir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15074 |21mr|openmpi-4.0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         _disable_ld_no_undefined 0
%define		_disable_rebuild_configure %nil

%define         major                    40

%define         cxx_major                %{major}
%define         usempif08_major          %{major}
%define         usempi_ignore_major      %{major}
%define         mpifh_major              %{major}
%define         ompitrace_major          %{major}
%define         opentrace_major          %{major}
%define         openpal_major            %{major}
%define         openrte_major            %{major}
%define         oshmem_major             %{major}

%define         libname                  %mklibname %{name} %{major}
%define         develname                %mklibname %{name} -d
%define         staticdevelname          %mklibname %{name} -s -d
%define		libopenpal %mklibname open-pal %{openpal_major}
%define		libmpiusef08 %mklibname mpi_usempif08_ %{usempif08_major}
%define		liboshmem %mklibname oshmem %{oshmem_major}
%define		libmpiuse %mklibname mpi_usempi_ignore_tkr %{usempi_ignore_major}
%define		libtrace %mklibname ompitrace %{ompitrace_major}
%define		libmpifh %mklibname mpi_mpifh %{mpifh_major}
%define		libopenrte %mklibname open-rte %{openrte_major}
%define		libmpicxx %mklibname mpi_cxx %{cxx_major}

%define         gccinstalldir   %(LC_ALL=C %__cc --print-search-dirs | grep install | %__awk '{print $2}')
%define         fincludedir     %{gccinstalldir}finclude

%bcond_with	java

Summary:        An implementation of the Message Passing Interface
Name:           openmpi
Version:        4.0.5
Release:        2
License:        BSD
Group:          Development/Other

URL:            http://www.open-mpi.org
Source0:        http://www.open-mpi.org/software/ompi/v1.10/downloads/openmpi-%{version}.tar.bz2
Source100:      %{name}.rpmlintrc

BuildRequires:  perl
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  gawk
BuildRequires:  pkgconfig(pkg-config)
BuildRequires:  gcc-gfortran
%if %{with java}
BuildRequires:  java-openjdk
BuildRequires:  quadmath-devel
BuildRequires:  librdmacm-devel
%endif
BuildRequires:  gcc-c++
BuildRequires:  binutils-devel
BuildRequires:  libibverbs-devel
BuildRequires:  libgomp-devel
BuildRequires:  torque-devel >= 2.3.7
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(hwloc)
BuildRequires:  hwloc
BuildRequires:  autoconf
BuildRequires:  openpmix-devel

Requires:       %{libname} = %{EVRD}
Recommends:       %{develname} = %{EVRD}

Conflicts:      mpich
Conflicts:      mpich2
Conflicts:      lam


%description
The Open MPI Project is an open source fully compliant MPI-3
implementation that is developed and maintained by a consortium of
academic, research, and industry partners. OpenMPI is therefore able
to combine the expertise, technologies, and resources from all across
the High Performance Computing community in order to build the best
MPI library available. OpenMPI offers advantages for system and
software vendors, application developers and computer science
researchers. This package contains all of the tools necessary to
compile, link, and run OpenMPI jobs.

%files
%doc README LICENSE NEWS AUTHORS
%config(noreplace) %{_sysconfdir}/*
%{_bindir}/mpirun
%{_bindir}/mpiexec
%{_bindir}/orted
%{_bindir}/orte-*
%{_bindir}/orterun
#{_bindir}/prun
%{_bindir}/ompi-*
#{_bindir}/osh*
#{_bindir}/shmem*
%{_datadir}/%{name}/*.txt
%{_datadir}/%{name}/amca*
%{_datadir}/%{name}/*.supp
%{_datadir}/%{name}/mca*
#{_datadir}/pmix/*.txt
#{_datadir}/pmix/pmix-valgrind.supp
%{_mandir}/man1/mpirun*
%{_mandir}/man1/mpiexec*
%{_mandir}/man1/orte*
#{_mandir}/man1/osh*
#{_mandir}/man1/prun*
#{_mandir}/man1/shmem*
%{_mandir}/man1/ompi-*
%{_mandir}/man7/*


#----------------------------------------------------------------------------
%package -n %{libname}
Summary:        Shared libraries for OpenMPI
Group:          Development/Other
Provides:       lib%{name} = %{EVRD}
Obsoletes:      %{_lib}openmpi0 <= 1.5
# Build with wrong major:
Obsoletes:      %{_lib}openmpi1 < 1.10.0-2

%description -n %{libname}
%{summary}.

%files -n %{libname}
%{_libdir}/libmpi.so.%{major}{,.*}

#----------------------------------------------------------------------------

%package -n %{develname}
Summary:        Development files for OpenMPI
Group:          Development/Other
Requires:       %{libname} = %{EVRD}
#was Requires
Recommends:       %{name} = %{EVRD}
Requires:       gcc-gfortran
Requires:       gcc-c++

Requires:       %{libname} = %{EVRD}
Requires:	%{libmpicxx} = %{EVRD}
Requires:	%{libmpifh} = %{EVRD}
Requires:	%{libmpiuse} = %{EVRD}
Requires:	%{libmpiusef08} = %{EVRD}
Requires:	%{libtrace} = %{EVRD}
Requires:	%{libopenpal} = %{EVRD}
Requires:	%{libopenrte} = %{EVRD}
#Requires:	{liboshmem} = {EVRD}

Provides:       lib%{name}-devel  = %{EVRD}
Provides:       %{name}-devel = %{EVRD}
Conflicts:      lam-devel
Conflicts:      mpich1-devel
Conflicts:      mpich2-devel

%description -n %{develname}
%{summary}.

%files -n %{develname}
%doc examples/
%{_bindir}/mpif*
%{_bindir}/mpic*
%{_bindir}/mpiC*
%{_bindir}/ortec*
%{_bindir}/opal*
%{_bindir}/ompi_*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/%{name}/*.so
%{_libdir}/*.mod
%{fincludedir}/*.mod
%{_libdir}/pkgconfig/*.pc
%{_datadir}/%{name}/mpi*
%{_mandir}/man1/mpif*
%{_mandir}/man1/mpic*
%{_mandir}/man1/mpiC*
%{_mandir}/man1/ompi_*
%{_mandir}/man1/opal_wrapper*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{staticdevelname}
Summary:        Static Development files for OpenMPI
Group:          Development/Other

Requires:       gcc-gfortran
Requires:	%{develname} = %{EVRD}
Requires:       gcc-c++
Provides:       lib%{name}-static-devel  = %{EVRD}
Provides:       %{name}-static-devel = %{EVRD}
Conflicts:      lam-devel
Conflicts:      mpich1-devel
Conflicts:      mpich2-devel

%description -n %{staticdevelname}
%{summary}.

%files -n %{staticdevelname}
%{_libdir}/*.a
%{_libdir}/%{name}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --enable-shared \
	--enable-mpi1-compatibility \
	--enable-static \
	--disable-wrapper-rpath \
	--disable-wrapper-runpath \
	--enable-mpi-cxx \
        --enable-mpi-thread-multiple \
        --with-tm \
	--with-hwloc=%{_prefix} \
        --with-pmix=%{_prefix}

%make_build


%install
%make_install

%__rm -rf %{buildroot}%{_sysconfdir}/openmpi-totalview.tcl
%__rm -rf %{buildroot}%{_datadir}/libtool
%__rm -f %{buildroot}%{_datadir}/config.log
%__rm -f %{buildroot}%{_datadir}/omp.h


%__install -D -m 644 %{buildroot}%{_libdir}/mpi.mod %{buildroot}%{fincludedir}/mpi.mod
%__install -D -m 644 %{buildroot}%{_libdir}/mpi_ext.mod %{buildroot}%{fincludedir}/mpi_ext.mod
%__install -D -m 644 %{buildroot}%{_libdir}/mpi_f08.mod %{buildroot}%{fincludedir}/mpi_f08.mod
%__install -D -m 644 %{buildroot}%{_libdir}/mpi_f08_ext.mod %{buildroot}%{fincludedir}/mpi_f08_ext.mod
%__install -D -m 644 %{buildroot}%{_libdir}/mpi_f08_interfaces.mod %{buildroot}%{fincludedir}/mpi_f08_interfaces.mod
%__install -D -m 644 %{buildroot}%{_libdir}/mpi_f08_interfaces_callbacks.mod %{buildroot}%{fincludedir}/mpi_f08_interfaces_callbacks.mod
#__install -D -m 644 %%{buildroot}%%{_libdir}/mpi_f08_sizeof.mod %%{buildroot}%%{fincludedir}/mpi_f08_sizeof.mod
%__install -D -m 644 %{buildroot}%{_libdir}/mpi_f08_types.mod %{buildroot}%{fincludedir}/mpi_f08_types.mod
%__install -D -m 644 %{buildroot}%{_libdir}/pmpi_f08_interfaces.mod %{buildroot}%{fincludedir}/pmpi_f08_interfaces.mod
%__rm %{buildroot}%{_libdir}/*.mod
pushd %{buildroot}%{_libdir}
ln -s %{fincludedir}/*.mod  .
popd

find %{buildroot}%{_libdir} -name *.la -delete



%package -n %{libmpicxx}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libmpicxx}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpicxx}
%{_libdir}/libmpi_cxx.so.%{cxx_major}{,.*}

#----------------------------------------------------------------------------
%package -n %{libmpiusef08}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libmpiusef08}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpiusef08}
%{_libdir}/libmpi_usempif08.so.%{usempif08_major}{,.*}
#----------------------------------------------------------------------------

%package -n %{libmpiuse}
Summary:	Shared library for OpenMPI
Group:		System/Libraries

%description -n %{libmpiuse}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpiuse}
%{_libdir}/libmpi_usempi_ignore*.so.%{usempi_ignore_major}{,.*}
#----------------------------------------------------------------------------

%package -n %{libmpifh}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libmpifh}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libmpifh}
%{_libdir}/libmpi_mpifh*.so.%{mpifh_major}{,.*}

#----------------------------------------------------------------------------

%package -n %{libtrace}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libtrace}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libtrace}
%{_libdir}/libompitrace*.so.%{ompitrace_major}{,.*}

#----------------------------------------------------------------------------

%package -n %{libopenpal}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libopenpal}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libopenpal}
%{_libdir}/libopen-pal*.so.%{openpal_major}{,.*}

#----------------------------------------------------------------------------

%package -n %{libopenrte}
Summary:	Shared library for OpenMPI
Group:		System/Libraries
Conflicts:	%{_lib}openmpi1 < 1.7.5

%description -n %{libopenrte}
This package contains shared library needed by programs linked against OpenMPI.

%files -n %{libopenrte}
%{_libdir}/libopen-rte*.so.%{openrte_major}{,.*}

#----------------------------------------------------------------------------

#package -n %{liboshmem}
#Summary:	Shared library for OpenMPI
#Group:		System/Libraries
#
#description -n %{liboshmem}
#This package contains shared library needed by programs linked against OpenMPI.
#
#files -n %{liboshmem}
#{_libdir}/liboshmem.so.%{oshmem_major}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15075 |21mr|opennlp-1.5.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          opennlp
Version:       1.5.3
Release:       9
Summary:       A machine learning based toolkit for the processing of natural language text
License:       ASL 2.0
URL:           https://opennlp.apache.org/
Source0:       http://www.apache.org/dist/opennlp/%{name}-%{version}/apache-%{name}-%{version}-src.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
# https://bugzilla.redhat.com/show_bug.cgi?id=1261017
BuildRequires: mvn(net.sf.jwordnet:jwnl)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.uima:uimaj-core)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.osgi:org.osgi.core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Apache OpenNLP library is a machine learning based toolkit for the
processing of natural language text.

It supports the most common NLP tasks, such as tokenization, sentence
segmentation, part-of-speech tagging, named entity extraction, chunking,
parsing, and coreference resolution. These tasks are usually required to
build more advanced text processing services. OpenNLP also includes
maximum entropy and perceptron based machine learning.

%package tools
Summary:       Apache OpenNLP Tools

%description tools
This package provides Apache OpenNLP Tools.

%package maxent
Summary:       Apache OpenNLP Maxent

%description maxent
This package provides Apache OpenNLP Maxent.

%package uima
Summary:       Apache OpenNLP UIMA Annotators

%description uima
This package provides Apache OpenNLP UIMA Annotators.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n apache-%{name}-%{version}-src
# Cleanup
find . -name '*.jar' -print -delete
find . -name '*.bat' -print -delete
find . -name '*.class' -print -delete

%pom_remove_plugin -r :apache-rat-plugin opennlp
%pom_remove_plugin -r :maven-dependency-plugin opennlp
%pom_remove_plugin -r :maven-eclipse-plugin opennlp
%pom_remove_plugin -r :maven-source-plugin opennlp
%pom_remove_plugin -r :maven-javadoc-plugin opennlp

%pom_xpath_set -r pom:addClasspath false opennlp

%pom_disable_module ../opennlp-distr opennlp
%pom_disable_module ../opennlp-docs opennlp

for p in maxent tools ; do
%pom_xpath_inject "pom:dependency[pom:artifactId='junit']" "<scope>test</scope>" opennlp-${p}
done

# AssertionError: expected:<0.7756870512503095> but was:<0.7766773953948998>
rm -r opennlp-maxent/src/test/java/opennlp/perceptron/PerceptronPrepAttachTest.java \
 opennlp-maxent/src/test/java/opennlp/maxent/quasinewton/QNTrainerTest.java \
 opennlp-maxent/src/test/java/opennlp/PrepAttachDataUtil.java \
 opennlp-maxent/src/test/java/opennlp/maxent/MaxentPrepAttachTest.java

%build

%mvn_build -s -- -f opennlp/pom.xml

%install
%mvn_install

%files -f .mfiles-%{name}
%doc KEYS opennlp-distr/README opennlp-distr/RELEASE_NOTES.html
%license LICENSE NOTICE

%files tools -f .mfiles-%{name}-tools
%license LICENSE NOTICE

%files maxent -f .mfiles-%{name}-maxent
%license LICENSE NOTICE

%files uima -f .mfiles-%{name}-uima

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15076 |21mr|openobex-1.7.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname openobex %{major}
%define devname %mklibname openobex -d

Summary:	Library for using OBEX
Name:		openobex
Version:	1.7.2
Release:	6
License:	LGPLv2+
Group:		System/Libraries
Url:		http://openobex.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/openobex/openobex/%{version}/%{name}-%{version}-Source.tar.gz
Patch0:		openobex-1.7.1-libdir-extra-prefix.patch
Patch1:		openobex-1.7.2-addrinfo.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(udev)

%description
Open OBEX shared c-library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for using OBEX
Group:		System/Libraries

%description -n %{libname}
Open OBEX shared c-library.

%files -n %{libname}
%doc COPYING
%{_libdir}/libopenobex.so.%{major}
%{_libdir}/libopenobex.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for OBEX library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel  = %{EVRD}
Requires:	pkgconfig(bluez)

%description -n %{devname}
Development files for OBEX library.

%files -n %{devname}
%doc AUTHORS ChangeLog README
%{_libdir}/pkgconfig/openobex.pc
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/cmake/OpenObex-%{version}

#----------------------------------------------------------------------------

%package apps
Summary:	Apps that come with the Open OBEX c-library
Group:		Communications

%description apps
These are the apps that come with the Open OBEX c-library. These are
not meant to be more than test-programs to look at if you want to see
how use the library itself.

%files apps
%{_bindir}/irobex_palm3
%{_bindir}/irxfer
%{_bindir}/obex_tcp
%{_bindir}/obex_test
%{_bindir}/obex_find
%{_sbindir}/obex-check-device
%{_udevrulesdir}/*

#----------------------------------------------------------------------------

%package ircp
Summary:	Used to "beam" files or whole directories
Group:		Communications
Provides:	ircp = %{EVRD}

%description ircp
Ircp is used to "beam" files or whole directories to/from Linux, Windows.

%files ircp
%{_bindir}/ircp

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-Source
%apply_patches

%build
%cmake \
	-DBUILD_DOCUMENTATION:BOOL=OFF
%make
%make openobex-apps

%install
%makeinstall_std -C build

# since our old packages will look for headers in /usr/include
ln -s openobex/obex.h %{buildroot}/%{_includedir}/obex.h
ln -s openobex/obex_const.h %{buildroot}/%{_includedir}/obex_const.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15077 |21mr|openpgm-5.2.122-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5.2
%define major   0
%define libname %mklibname %{name} %{api} %{major}
%define develname %mklibname %{name} -d

%global name_alias        pgm
%global version_main      %{api}
%global version_dash_main 5-2
%global version_dash      %{version_dash_main}-122

Name:          openpgm
Version:       5.2.122
Release:       8
Summary:       An implementation of the PGM reliable multicast protocol
Group:         System/Libraries
# The license is LGPLv2.1
License:       LGPLv2
# New URL is https://github.com/steve-o/openpgm
# The files are now on https://code.google.com/archive/p/openpgm/downloads
URL:           https://github.com/steve-o/%{name}
Source0:       https://github.com/steve-o/%{name}/archive/release-%{version_dash}.tar.gz#/%{name}-%{version}.tar.gz
# All the following patches have been submitted upstream
# as a merge request: https://github.com/steve-o/openpgm/pull/64
Patch2:        openpgm-02-c-func.patch
Patch3:        openpgm-03-pkgconfig.patch
Patch4:        openpgm-04-py-version-gen.patch
Patch5:        openpgm-05-fix-setgid.patch

%description
OpenPGM is an open source implementation of the Pragmatic General
Multicast (PGM) specification in RFC 3208.

%package -n     %{libname}
Summary:        An implementation of the PGM reliable multicast protocol
Group:          System/Libraries

%description -n %{libname}
OpenPGM is an open source implementation of the Pragmatic General
Multicast (PGM) specification in RFC 3208.


%package -n	%{develname}
Summary:       Development files for openpgm
Group:         Development/C
Requires:      %{libname} = %{version}-%{release}

%description -n	%{develname}
This package contains OpenPGM related development libraries and header files.


%prep
%setup -q -n %{name}-release-%{version_dash}/%{name}/pgm
%autopatch -p3

libtoolize --force --copy
aclocal
autoheader
automake --copy --add-missing
autoconf

%build
%configure
%make_build

%install
%make_install

# Move the header files into /usr/include
mv -f %{buildroot}%{_includedir}/%{name_alias}-%{version_main}/%{name_alias} %{buildroot}%{_includedir}/

%files -n	%{libname}
%doc COPYING LICENSE
%{_libdir}/*%{api}.so.%{major}*

%files -n	%{develname}
%doc examples/
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/openpgm-5.2.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15078 |21mr|openpmix-3.1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         _disable_ld_no_undefined 0
%define         srcname                  pmix

%define         major                    2
%define         pmimajor                 1

%define         libname                  %mklibname %{name} %{major}
%define         develname                %mklibname %{name} -d


Summary:        A highly configurable open-source workload manager
Name:           openpmix
Version:        3.1.7
Release:        1
License:        MIT
Group:          System/Cluster
Url:            https://pmix.org/
Source0:        https://github.com/openpmix/openpmix/releases/download/v%{version}/%{srcname}-%{version}.tar.bz2

#fixed CVE-2023-41915 in 3.1.7

BuildRequires:  autoconf
BuildRequires:  perl
BuildRequires:  man2html
BuildRequires:  hwloc
BuildRequires:  pkgconfig(libevent)
BuildRequires:  pkgconfig(libev)
BuildRequires:  pkgconfig(hwloc)
BuildRequires:  libltdl-devel
BuildRequires:  pkgconfig(zlib)

%description
The Process Management Interface (PMI) has been used for quite some
time as a means of exchanging wireup information needed for
interprocess communication. Two versions (PMI-1 and PMI-2) have been
released as part of the MPICH effort. While PMI-2 demonstrates better
scaling properties than its PMI-1 predecessor, attaining rapid launch
and wireup of the roughly 1M processes executing across 100k nodes
expected for exascale operations remains challenging.

PMI Exascale (PMIx) represents an attempt to resolve these questions
by providing an extended version of the PMI standard specifically
designed to support clusters up to and including exascale sizes. The
overall objective of the project is not to branch the existing
pseudo-standard definitions - in fact, PMIx fully supports both of the
existing PMI-1 and PMI-2 APIs - but rather to (a) augment and extend
those APIs to eliminate some current restrictions that impact
scalability, and (b) provide a reference implementation of the
PMI-server that demonstrates the desired level of scalability.

%package -n %{libname}
Summary:        Shared libraries for OpenPMIx
Group:          Development/Other
Provides:       lib%{name} = %{version}-%{release}

%description -n %{libname}
%{summary}.

%package -n %{develname}
Summary:        Development files for OpenPMIx
Group:          Development/Other
Requires:       %{libname} = %{version}-%{release}
Provides:       lib%{name}-devel  = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
%{summary}.

%prep
%setup -q -n %{srcname}-%{version}

%build
%configure  --with-devel-headers
%make_build

%install
%make_install

find %{buildroot}%{_libdir} -name *.la -delete

%files
%doc AUTHORS NEWS README LICENSE
%config(noreplace)%{_sysconfdir}/pmix-mca-params.conf
%{_bindir}/*
%{_datadir}/pmix


%files -n %{libname}
%{_libdir}/libpmi.so.%{pmimajor}{,.*}
%{_libdir}/libpmi2.so.%{pmimajor}{,.*}
%{_libdir}/libmca_common_dstore.so.%{pmimajor}{,.*}
%{_libdir}/libpmix.so.%{major}{,.*}
#these guys are modules, not devel files
%{_libdir}/pmix/*.so

%files -n %{develname}
%{_includedir}/pmi*.h
%{_includedir}/pmix
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15079 |21mr|opensaml-java-3.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          opensaml-java
Version:       3.1.1
Release:       6
Summary:       Java OpenSAML library

# Only these files are without license headers:
# ./opensaml-core/src/main/resources/schema/datatypes.dtd
# ./opensaml-core/src/main/resources/schema/XMLSchema.dtd
# ./opensaml-saml-impl/src/test/resources/data/org/opensaml/saml/metadata/resolver/filter/impl/script8.js
# ./opensaml-saml-impl/src/test/resources/data/org/opensaml/saml/metadata/resolver/filter/impl/script.js
# ./opensaml-xmlsec-impl/src/test/java/org/opensaml/xmlsec/impl/BasicWhitelistBlacklistConfigurationTest.java
# Not available LICENSE file in source directory structure. Sent a mail @ users@shibboleth.net
License:       ASL 2.0
URL:           http://shibboleth.net/products/opensaml-java.html
# svn export https://svn.shibboleth.net/java-opensaml/tags/3.1.1 opensaml-java-3.1.1
# find ./opensaml-java-3.1.1 -name "*.class" -print -delete
# find ./opensaml-java-3.1.1 -name "*.jar" -print -delete
# tar cJf opensaml-java-3.1.1.tar.xz opensaml-java-3.1.1
Source0:       %{name}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(javax.json:javax.json-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(net.shibboleth:parent-v3:pom:)
BuildRequires: mvn(net.shibboleth.utilities:java-support)
BuildRequires: mvn(net.spy:spymemcached)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.santuario:xmlsec)
BuildRequires: mvn(org.apache.velocity:velocity)
BuildRequires: mvn(org.cryptacular:cryptacular)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.glassfish:javax.json)
BuildRequires: mvn(org.hibernate:hibernate-entitymanager)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.ldaptive:ldaptive)
BuildRequires: mvn(org.springframework:spring-orm)

# test deps
%if 0
# BuildRequires: mvn(com.unboundid:unboundid-ldapsdk)
BuildRequires: mvn(commons-dbcp:commons-dbcp)
BuildRequires: mvn(mysql:mysql-connector-java)
BuildRequires: mvn(net.shibboleth.utilities:java-support:tests:)
# BuildRequires: mvn(net.shibboleth.ext:spring-extensions)
BuildRequires: mvn(org.hsqldb:hsqldb)
# https://bugzilla.redhat.com/show_bug.cgi?id=1217395
BuildRequires: mvn(org.postgresql:postgresql)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-test)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
OpenSAML is a set of open source C++ & Java libraries meant to support
developers working with the Security Assertion Markup Language (SAML).
OpenSAML 2, the current version, supports SAML 1.0, 1.1, and 2.0. 

%package core
Summary:       OpenSAML-Java :: Core

%description core
OpenSAML-Java :: Core.

%package messaging-api
Summary:       OpenSAML-Java :: Messaging API

%description messaging-api
OpenSAML-Java :: Messaging API.

%package messaging-impl
Summary:       OpenSAML-Java :: Messaging Implementations

%description messaging-impl
OpenSAML-Java :: Messaging Implementations.

%package parent
Summary:       OpenSAML Parent POM

%description parent
OpenSAML Parent POM.

%package profile-api
Summary:       OpenSAML-Java :: Profile API

%description profile-api
OpenSAML-Java :: Profile API.

%package profile-impl
Summary:       OpenSAML-Java :: Profile Implementations

%description profile-impl
OpenSAML-Java :: Profile Implementations.

%package saml-api
Summary:       OpenSAML-Java :: SAML Provider API

%description saml-api
OpenSAML-Java :: SAML Provider API.

%package saml-impl
Summary:       OpenSAML-Java :: SAML Provider Implementations

%description saml-impl
OpenSAML-Java :: SAML Provider Implementations.

%package security-api
Summary:       OpenSAML-Java :: Security API

%description security-api
OpenSAML-Java :: Security API.

%package security-impl
Summary:       OpenSAML-Java :: Security Implementation

%description security-impl
OpenSAML-Java :: Security Implementation.

%package soap-api
Summary:       OpenSAML-Java :: SOAP Provider API

%description soap-api
OpenSAML-Java :: SOAP Provider API.

%package soap-impl
Summary:       OpenSAML-Java :: SOAP Provider Implementations

%description soap-impl
OpenSAML-Java :: SOAP Provider Implementations.

%package storage-api
Summary:       OpenSAML-Java :: Storage API

%description storage-api
OpenSAML-Java :: Storage API.

%package storage-impl
Summary:       OpenSAML-Java :: Storage Implementation

%description storage-impl
OpenSAML-Java :: Storage Implementation.

%package xacml-api
Summary:       OpenSAML-Java :: XACML Provider API

%description xacml-api
OpenSAML-Java :: XACML Provider API.

%package xacml-impl
Summary:       OpenSAML-Java :: XACML Provider Implementations

%description xacml-impl
OpenSAML-Java :: XACML Provider Implementations.

%package xacml-saml-api
Summary:       OpenSAML-Java :: SAML XACML Profile API

%description xacml-saml-api
OpenSAML-Java :: SAML XACML Profile API.

%package xacml-saml-impl
Summary:       OpenSAML-Java :: SAML XACML Profile Implementation

%description xacml-saml-impl
OpenSAML-Java :: SAML XACML Profile Implementation.

%package xmlsec-api
Summary:       OpenSAML-Java :: XML Security API

%description xmlsec-api
OpenSAML-Java :: XML Security API.

%package xmlsec-impl
Summary:       OpenSAML-Java :: XML Security Implementation

%description xmlsec-impl
OpenSAML-Java :: XML Security Implementation.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

# This is a dummy POM added just to ease building in the RPM platforms
cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.opensaml</groupId>
  <artifactId>opensaml-project</artifactId>
  <packaging>pom</packaging>
  <version>%{version}</version>
  <modules>
    <module>opensaml-parent</module>
  </modules>
</project>
EOF

%mvn_package :opensaml-project __noinstall

%build
# Test skipped for unavailable test deps: net.shibboleth.ext:spring-extensions
%mvn_build -sf

%install
%mvn_install

%files core -f .mfiles-opensaml-core
%files messaging-api -f .mfiles-opensaml-messaging-api
%files messaging-impl -f .mfiles-opensaml-messaging-impl
%files parent -f .mfiles-opensaml-parent
%files profile-api -f .mfiles-opensaml-profile-api
%files profile-impl -f .mfiles-opensaml-profile-impl
%files saml-api -f .mfiles-opensaml-saml-api
%files saml-impl -f .mfiles-opensaml-saml-impl
%files security-api -f .mfiles-opensaml-security-api
%files security-impl -f .mfiles-opensaml-security-impl
%files soap-api -f .mfiles-opensaml-soap-api
%files soap-impl -f .mfiles-opensaml-soap-impl
%files storage-api -f .mfiles-opensaml-storage-api
%files storage-impl -f .mfiles-opensaml-storage-impl
%files xacml-api -f .mfiles-opensaml-xacml-api
%files xacml-impl -f .mfiles-opensaml-xacml-impl
%files xacml-saml-api -f .mfiles-opensaml-xacml-saml-api
%files xacml-saml-impl -f .mfiles-opensaml-xacml-saml-impl
%files xmlsec-api -f .mfiles-opensaml-xmlsec-api
%files xmlsec-impl -f .mfiles-opensaml-xmlsec-impl

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15080 |21mr|opensc-0.23.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
# TODO: Properly package library
%define libname %mklibname %{name} %{major}
%define libsmml %mklibname smm-local %{major}
%define devname %mklibname %{name} -d
%define name_orig OpenSC
%global optflags %{optflags} -fno-strict-aliasing

Summary:	Library for accessing SmartCard devices
Name:		opensc
Version:	0.23.0
Release:	4
License:	LGPLv2.1+
Group:		System/Kernel and hardware
Url:		http://www.opensc.org/
Source0:	https://github.com/OpenSC/OpenSC/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	oberthur.profile
Source10:	%{name}.rpmlintrc
Patch1000:	0006-CVE-2023-4535.patch
Patch1001:      0007-CVE-2023-4535.patch
Patch1002:      0008-CVE-2023-40660.patch
Patch1003:      0009-CVE-2023-40661.patch
Patch1004:      0010-CVE-2023-40661.patch
Patch1005:      0011-CVE-2023-40661.patch
Patch1006:      0012-CVE-2023-40661.patch
Patch1007:      0013-CVE-2023-40661.patch
Patch1008:      0014-CVE-2023-40661.patch
Patch1009:      0015-CVE-2023-40661.patch
# CVE-2023-2977
Patch1010:	https://github.com/OpenSC/OpenSC/commit/81944d1529202bd28359bede57c0a15deb65ba8a.patch
Patch1011:	CVE-2024-1454.patch
BuildRequires:	docbook-style-xsl
BuildRequires:	flex
BuildRequires:	xsltproc
BuildRequires:	libltdl-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Conflicts:	%{_lib}opensc3 < 0.16
Obsoletes:	%{_lib}opensc3 < 0.16

%description
%{name} is a library for accessing smart card devices using PC/SC Lite
middleware package. It is also the core library of the OpenSC project.
Basic functionality (e.g. SELECT FILE, READ BINARY) should work on any
ISO 7816-4 compatible smart card. Encryption and decryption using private
keys on the SmartCard is at the moment possible only with PKCS #15
compatible cards.

%files
%doc NEWS README.md
%doc oberthur-alternate.profile
%{_defaultdocdir}/opensc/opensc.conf
%config(noreplace) %{_sysconfdir}/opensc.conf
%{_sysconfdir}/xdg/autostart/pkcs11-register.desktop
%{_bindir}/cardos-tool
%{_bindir}/cryptoflex-tool
%{_bindir}/dnie-tool
%{_bindir}/eidenv
%{_bindir}/gids-tool
%{_bindir}/iasecc-tool
%{_bindir}/netkey-tool
%{_bindir}/opensc-explorer
%{_bindir}/opensc-tool
%{_bindir}/opensc-notify
%{_bindir}/openpgp-tool
%{_bindir}/piv-tool
%{_bindir}/pkcs11-tool
%{_bindir}/pkcs15-crypt
%{_bindir}/pkcs15-init
%{_bindir}/pkcs15-tool
%{_bindir}/sc-hsm-tool
%{_bindir}/egk-tool
%{_bindir}/goid-tool
%{_bindir}/opensc-asn1
%{_bindir}/pkcs11-register
%{_datadir}/%{name}
%{_datadir}/applications/org.opensc.notify.desktop
%{_libdir}/pkcs11-spy.*
%{_libdir}/pkcs11/*.so
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_libdir}/onepin-opensc-pkcs11.so
%{_libdir}/opensc-pkcs11.so
%{_sysconfdir}/bash_completion.d/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for accessing SmartCard devices
Group:		System/Libraries

%description -n %{libname}
%{name} is a library for accessing smart card devices using PC/SC Lite
middleware package. It is also the core library of the OpenSC project.
Basic functionality (e.g. SELECT FILE, READ BINARY) should work on any
ISO 7816-4 compatible smart card. Encryption and decryption using private
keys on the SmartCard is at the moment possible only with PKCS #15
compatible cards.

%files -n %{libname}
%{_libdir}/libopensc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libsmml}
Summary:	Library for accessing SmartCard devices
Group:		System/Libraries

%description -n %{libsmml}
%{name} is a library for accessing smart card devices using PC/SC Lite
middleware package. It is also the core library of the OpenSC project.
Basic functionality (e.g. SELECT FILE, READ BINARY) should work on any
ISO 7816-4 compatible smart card. Encryption and decryption using private
keys on the SmartCard is at the moment possible only with PKCS #15
compatible cards.

%files -n %{libsmml}
%{_libdir}/libsmm-local.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development related files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libsmml} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} is a library for accessing smart card devices using PC/SC Lite
middleware package. It is also the core library of the OpenSC project.
Basic functionality (e.g. SELECT FILE, READ BINARY) should work on any
ISO 7816-4 compatible smart card. Encryption and decryption using private
keys on the SmartCard is at the moment possible only with PKCS #15
compatible cards.

This package contains all necessary files to develop or compile any
applications or libraries that use %{name}.

%files -n %{devname}
%{_bindir}/westcos-tool
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/opensc-pkcs11.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name_orig}-%{version}
install -m 0644 %{SOURCE1} oberthur-alternate.profile

%autopatch -p1

%build
autoreconf -fi
%configure --disable-static
%make

%install
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_libdir}/pkcs11
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15081 |21mr|openshadinglanguage-1.11.14.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# temporary exclude requires for cmake(Imath) - remove after update OpenEXR to 3.x and use
# standalone Imath project
# Obsoleted ilmbase-devel
%global __requires_exclude \\(cmake\\(imath\\) or cmake\\(Imath\\)\\)|\\(cmake\\(ilmbase\\) or cmake\\(IlmBase\\)\\)

# Required for the plugin directory name, see https://github.com/OpenImageIO/oiio/issues/2583
%global oiio_major_minor_ver %(rpm -q --queryformat='%%{version}' OpenImageIO | cut -d . -f 1-2)
#%%global prerelease -RC1

%define major 1
%define libname %mklibname %{name} %{major}
%define libtestshade %mklibname testshade %{major}
%define devname %mklibname %{name} -d

Name:		openshadinglanguage
Version:	1.11.14.0
Release:	3
Summary:	Advanced shading language for production GI renderers
Group:		Development/Other
License:	BSD
URL:		https://github.com/imageworks/OpenShadingLanguage
Source:		%{url}/archive/Release-%{version}%{?prerelease}.tar.gz
BuildRequires:	bison
BuildRequires:	boost-devel >= 1.55
BuildRequires:	clang-devel
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	llvm-devel
BuildRequires:	partio-devel
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	OpenImageIO
BuildRequires:	pkgconfig(OpenImageIO) >= 2.0
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)

# 64 bit only
ExclusiveArch:	x86_64 aarch64

%description
Open Shading Language (OSL) is a small but rich language for programmable
shading in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.

%files
%license LICENSE.md
%doc CHANGES.md CONTRIBUTING.md README.md
%{_bindir}/oslc
%{_bindir}/oslinfo
%{_bindir}/osltoy
%{_bindir}/testrender
%{_bindir}/testshade
%{_bindir}/testshade_dso

#------------------------------------------------------------------------
%package doc
Summary:	Documentation for OpenShadingLanguage
Group:		Documentation
License:	CC-BY
BuildArch:	noarch
Requires:	%{name} = %{version}

%description doc
Open Shading Language (OSL) is a language for programmable shading
in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.
This package contains documentation.

%files doc
%doc %{_docdir}/%{name}/

#------------------------------------------------------------------------

%package MaterialX-shaders-source
Summary:	MaterialX shader nodes
Group:		Development/Other
License:	BSD
BuildArch:	noarch
Requires:	%{name} = %{EVRD}
Requires:	%{name}-common-headers

%description MaterialX-shaders-source
Open Shading Language (OSL) is a language for programmable shading
in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.

This package contains the code for the MaterialX shader nodes.

%files MaterialX-shaders-source
%{_datadir}/%{name}/shaders/MaterialX

#------------------------------------------------------------------------

%package example-shaders-source
Summary:	OSL shader examples
Group:		Development/Other
License:	BSD
BuildArch:	noarch
Requires:	%{name} = %{EVRD}
Requires:	%{name}-common-headers

%description example-shaders-source
Open Shading Language (OSL) is a language for programmable shading
in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.

This package contains some OSL example shaders.

%files example-shaders-source
%{_datadir}/%{name}/shaders/*.osl
%{_datadir}/%{name}/shaders/*.oso

#------------------------------------------------------------------------

%package common-headers
Summary:	OSL standard library and auxiliary headers
Group:		Development/Other
License:	BSD
BuildArch:	noarch
Requires:	%{name} = %{EVRD}

%description common-headers
Open Shading Language (OSL) is a language for programmable shading
in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.

This package contains the OSL standard library headers, as well
as some additional headers useful for writing shaders.

%files common-headers
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/shaders
%{_datadir}/%{name}/shaders/*.h

#------------------------------------------------------------------------

%package -n OpenImageIO-plugin-osl
Group:		Development/Other
Summary:	OpenImageIO input plugin
License:	BSD

%description -n OpenImageIO-plugin-osl
Open Shading Language (OSL) is a language for programmable shading
in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.

This is a plugin to access OSL from OpenImageIO.

%files -n OpenImageIO-plugin-osl
%license LICENSE.md
%dir %{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/
%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/osl.imageio.so

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	OpenShadingLanguage's libraries
Group:		System/Libraries
License:	BSD

%description -n %{libname}
Open Shading Language (OSL) is a language for programmable shading
in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.

%files -n %{libname}
%{_libdir}/libosl*.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libtestshade}
Summary:	OpenShadingLanguage's testshade libraries
Group:		System/Libraries
License:	BSD

%description -n %{libtestshade}
Open Shading Language (OSL) is a language for programmable shading
in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.

%files -n %{libtestshade}
%{_libdir}/libtestshade.so.%{major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
License:	BSD
Requires:	%{libname} = %{EVRD}
Requires:	%{libtestshade} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/OSL/
%{_libdir}/libosl*.so
%{_libdir}/libtestshade.so
%{_libdir}/cmake/
%{_libdir}/pkgconfig/

#------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	%{summary}
Group:		Development/Python
License:	BSD
BuildRequires:	cmake(pybind11)
BuildRequires:	pkgconfig(python3)

%description    -n python3-%{name}
Open Shading Language (OSL) is a small but rich language for programmable
shading in advanced renderers and other applications, ideal for describing
materials, lights, displacement, and pattern generation.


%files -n python3-%{name}
%{python3_sitearch}/oslquery.so

#------------------------------------------------------------------------

%prep
%autosetup -n OpenShadingLanguage-Release-%{version}%{?prerelease}
# Use python3 binary instead of unversioned python
sed -i -e "s/COMMAND python/COMMAND python3/" $(find . -iname CMakeLists.txt)

%build
%cmake \
   -DCMAKE_CXX_STANDARD=17 \
   -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name} \
   -DCMAKE_SKIP_RPATH=TRUE \
   -DCMAKE_SKIP_INSTALL_RPATH=YES \
   -DOSL_BUILD_MATERIALX:BOOL=ON \
   -DOSL_SHADER_INSTALL_DIR:PATH=%{_datadir}/%{name}/shaders/ \
   -Dpartio_DIR=%{_prefix} \
   -DPARTIO_INCLUDE_DIR=%{_includedir} \
   -DPARTIO_LIBRARIES=%{_libdir} \
   -DPYTHON_VERSION=%{python3_version} \
   -DSTOP_ON_WARNING=OFF
%make

%install
%make_install -C build

# Move the OpenImageIO plugin into its default search path
mkdir %{buildroot}%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}
mv %{buildroot}%{_libdir}/osl.imageio.so %{buildroot}%{_libdir}/OpenImageIO-%{oiio_major_minor_ver}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15082 |21mr|openslp-2.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname slp

%define major 1
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	OpenSLP implementation of Service Location Protocol V2
Name:		openslp
Version:	2.0.0
Release:	10
License:	BSD-like
Group:		Networking/Other
Url:		http://www.openslp.org/
Source0:	http://prdownloads.sourceforge.net/openslp/%{name}-%{version}.tar.gz
Patch0:		openslp-1.2.1-lsb.patch
Patch2:		%{name}-symbol-clashes.patch
# CVE-2016-4912
Patch3:		openslp-2.0.0-null-pointer-deref.patch
Patch4:         openslp-2.0.0-CVE-2016-7567.patch
Patch5:		openslp-2.0.0-CVE-2019-5544.patch
Requires(post,preun):	rpm-helper

%description
Service Location Protocol is an IETF standards track protocol that
provides a framework to allow networking applications to discover the
existence, location, and configuration of networked services in
enterprise networks.

OpenSLP is an open source implementation of the SLPv2 protocol as defined
by RFC 2608 and RFC 2614.  This package include the daemon, libraries, header
files and documentation

%files
%doc doc/*
%config(noreplace) %{_sysconfdir}/slp.conf
%config(noreplace) %{_sysconfdir}/slp.reg
%config(noreplace) %{_sysconfdir}/slp.spi
%config(noreplace) %{_sysconfdir}/sysconfig/daemons/slpd
%config(noreplace) %{_initrddir}/slpd
%{_sbindir}/slpd
%{_bindir}/slptool

%post
%_post_service slpd

%preun
%_preun_service slpd

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	OpenSLP implementation of Service Location Protocol V2
Group:		System/Libraries
Obsoletes:	%{_lib}openslp1 < 2.0.0-2

%description -n %{libname}
Service Location Protocol is an IETF standards track protocol that
provides a framework to allow networking applications to discover the
existence, location, and configuration of networked services in
enterprise networks.

OpenSLP is an open source implementation of the SLPv2 protocol as defined
by RFC 2608 and RFC 2614.  This package include the daemon, libraries, header
files and documentation

This package contains the %{libname} runtime library.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	lib%{oname}-devel = %{EVRD}
Obsoletes:	%{_lib}openslp1-devel < 2.0.0-2

%description -n %{devname}
The %{name}-devel package includes the header files and static libraries
necessary for developing programs using the %{name} library.

If you are going to develop programs, you should install %{name}-devel.
You'll also need to have the %{name} package installed.

%files -n %{devname}
%doc ChangeLog COPYING
%{_libdir}/lib%{oname}.so
%{_includedir}/%{oname}.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

%build
autoreconf -fis
%serverbuild
%configure \
	--disable-static
%make

%install
%makeinstall_std

mkdir -p %{buildroot}/%{_sysconfdir}/sysconfig/daemons
cat <<EOF  > %{buildroot}/%{_sysconfdir}/sysconfig/daemons/slpd
IDENT=slp
DESCRIPTIVE="SLP Service Agent"
ONBOOT="yes"
EOF

install -m 755 etc/slpd.all_init -D %{buildroot}/%{_initrddir}/slpd

#we don't want these
find %{buildroot} -name "*.la" -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15083 |21mr|opensmtpd-7.3.0p0_rc2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ver %(echo %{version} | sed -e 's,~,-,')

%define opensmtpd_libexecdir %{_libexecdir}/opensmtpd
# autoreconf is enough
%define _disable_rebuild_configure 1

# Not buildable with openssl 1.0 but is buildable with openssl 1.1
%if %{mdvver} < 202110
%bcond_without libressl
%else
%bcond_with libressl
%endif

%if %{with libressl}
%global optflags %{optflags} -I%{libressl_prefix}/include -L%{libressl_prefix}/lib
%endif

%define _default_patch_fuzz 99

Summary:	Simple and functional SMTP server
Name:		opensmtpd
Version:	7.3.0p0~rc2
Release:	1
License:	ISC
Group:		System/Servers
Url:		http://opensmtpd.org
Source0:	https://github.com/OpenSMTPD/OpenSMTPD/archive/refs/tags/%{ver}.tar.gz?/%{name}-%{ver}.tar.gz
Source10:	pam.d-opensmtpd
Source11:	opensmtpd.service
Source12:	opensmtpd.sysusers.conf

# not buildable with db18-devel and --with-table-db
#BuildRequires:	db18-devel
BuildRequires:	libasr-devel
BuildRequires:	libevent-devel
# required for %%_openssldir even if building with LibreSSL
BuildRequires:	openssl-devel
%if %{with libressl}
BuildRequires:	libressl-devel
%endif
BuildRequires:	pam-devel
BuildRequires:	zlib-devel
BuildRequires:	bison
BuildRequires:	libtool
BuildRequires:	make

Requires(pre):	/bin/systemd-sysusers
Requires(post):	update-alternatives
Requires(postun):	update-alternatives

# in sync with sendmail and postfix
Provides:	mail-server
Provides:	sendmail-command

%description
OpenSMTPD is a FREE implementation of the server-side SMTP protocol as defined
by RFC 5321, with some additional standard extensions. It allows ordinary
machines to exchange e-mails with other systems speaking the SMTP protocol.
Started out of dissatisfaction with other implementations, OpenSMTPD nowadays
is a fairly complete SMTP implementation. OpenSMTPD is primarily developed
by Gilles Chehade, Eric Faurot and Charles Longeau; with contributions from
various OpenBSD hackers. OpenSMTPD is part of the OpenBSD Project.
The software is freely usable and re-usable by everyone under an ISC license.

%files
%license LICENSE
%doc CHANGES.md README.md
%{_sbindir}/smtpd
%attr(2555,root,smtpq) %{_sbindir}/smtpctl
%{_bindir}/smtp
%config(noreplace) %{_sysconfdir}/pam.d/opensmtpd
%{_sysusersdir}/opensmtpd.conf
%{_unitdir}/opensmtpd.service
%dir %attr(0711,root,root) /var/empty/opensmtpd
%dir %{_sysconfdir}/opensmtpd
%config(noreplace) %{_sysconfdir}/opensmtpd/smtpd.conf
%config(noreplace) %{_sysconfdir}/opensmtpd/aliases
# symlink to /etc/opensmptd
%{_sysconfdir}/smtpd
%{_mandir}/man*/*.opensmtpd.*
%{_mandir}/man1/lockspool.1*
%{_mandir}/man1/smtp.1*
%{_mandir}/man7/smtpd-filters.7*
%{_mandir}/man8/mail.*.8*
%{_mandir}/man8/smtpd.8*
%{_mandir}/man8/smtpctl.8*
%dir %attr(0711,root,root) /var/spool/smtpd
%dir %attr(0700,smtpq,root) /var/spool/smtpd/incoming
%dir %attr(0770,root,smtpq) /var/spool/smtpd/offline
%dir %attr(0700,smtpq,root) /var/spool/smtpd/purge
%dir %attr(0700,smtpq,root) /var/spool/smtpd/queue
%{opensmtpd_libexecdir}
%{_rpmmacrodir}/*opensmtpd*

%pre
%sysusers_create_package opensmtpd %{SOURCE12}

%post
%systemd_post opensmtpd.service
# in sync with sendmail and postfix packages
update-alternatives \
	--install %{_sbindir}/sendmail \
	sendmail-command \
	%{_sbindir}/smtpctl 21 \
	--slave %{_prefix}/lib/sendmail \
	sendmail-command-in_libdir \
	%{_sbindir}/smtpctl

%postun
if [ "$1" = 0 ]; then
	update-alternatives --remove sendmail-command %{_sbindir}/smtpctl
fi

%preun
%systemd_preun opensmtpd.service

#------------------------------------------------------------------

%prep
%autosetup -p1 -n OpenSMTPD-%{ver}
#sed -i'' -e 's,^DB_LIB=$,DB_LIB=db,g' configure.ac

%build
touch NEWS README AUTHORS ChangeLog
autoreconf -if
%configure \
	--sysconfdir=%{_sysconfdir}/opensmtpd \
	--libexecdir="$(dirname %{opensmtpd_libexecdir})" \
	--with-path-CAfile=%{_openssldir}/cert.pem \
	--with-mantype=man \
	--with-auth-pam=opensmtpd \
	--without-table-db \
	--with-user-smtpd=smtpd \
	--with-user-queue=smtpq \
	--with-group-queue=smtpq \
	--with-path-empty=/var/empty/opensmtpd \
	--with-path-socket=%{_rundir} \
	--without-rpath
%make

%install
%makeinstall_std

# compatibility with upstream
( cd %{buildroot}%{_sysconfdir} && ln -s opensmtpd smtpd )

# For reusing in packages opensmtpd-filter-*
cat > macros << 'EOF'
%%opensmtpd_libexecdir %{opensmtpd_libexecdir}
EOF
%install_macro opensmtpd macros

install -Dm 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/opensmtpd
install -Dm 0644 %{SOURCE11} %{buildroot}%{_unitdir}/opensmtpd.service
install -Dm 0644 %{SOURCE12} %{buildroot}%{_sysusersdir}/opensmtpd.conf

mkdir -p --mode=0711 %{buildroot}/var/empty/opensmtpd

# smtpd spool directory
for i in incoming offline purge queue; do
	mkdir -p %{buildroot}/var/spool/smtpd/$i
done

# rename to avoid using too generic (not package-specific) words
mv %{buildroot}%{_mandir}/man5/aliases{,.opensmtpd}.5
mv %{buildroot}%{_mandir}/man5/forward{,.opensmtpd}.5
mv %{buildroot}%{_mandir}/man5/smtpd.conf{,.opensmtpd}.5
mv %{buildroot}%{_mandir}/man5/table{,.opensmtpd}.5
mv %{buildroot}%{_mandir}/man8/makemap{,.opensmtpd}.8
mv %{buildroot}%{_mandir}/man8/newaliases{,.opensmtpd}.8
mv %{buildroot}%{_mandir}/man8/sendmail{,.opensmtpd}.8

echo '# see man 5 aliases.opensmtpd' > %{buildroot}%{_sysconfdir}/opensmtpd/aliases
sed -i'' -e 's|/etc/mail/aliases|%{_sysconfdir}/opensmtpd/aliases|g' %{buildroot}/%{_sysconfdir}/opensmtpd/smtpd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15084 |21mr|opensmtpd-7.3.0p2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ver %(echo %{version} | sed -e 's,~,-,')

%define opensmtpd_libexecdir %{_libexecdir}/opensmtpd
# autoreconf is enough
%define _disable_rebuild_configure 1

# Not buildable with openssl 1.0 but is buildable with openssl 1.1
%if %{mdvver} < 202110
%bcond_without libressl
%else
%bcond_with libressl
%endif

%if %{with libressl}
%global optflags %{optflags} -I%{libressl_prefix}/include -L%{libressl_prefix}/lib
%endif

%define _default_patch_fuzz 99

Summary:	Simple and functional SMTP server
Name:		opensmtpd
Version:	7.3.0p2
Release:	1
License:	ISC
Group:		System/Servers
Url:		http://opensmtpd.org
Source0:	https://github.com/OpenSMTPD/OpenSMTPD/archive/refs/tags/%{ver}.tar.gz?/%{name}-%{ver}.tar.gz
Source10:	pam.d-opensmtpd
Source11:	opensmtpd.service
Source12:	opensmtpd.sysusers.conf

# not buildable with db18-devel and --with-table-db
#BuildRequires:	db18-devel
BuildRequires:	libasr-devel
BuildRequires:	libevent-devel
# required for %%_openssldir even if building with LibreSSL
BuildRequires:	openssl-devel
%if %{with libressl}
BuildRequires:	libressl-devel
%endif
BuildRequires:	pam-devel
BuildRequires:	zlib-devel
BuildRequires:	bison
BuildRequires:	libtool
BuildRequires:	make

Requires(pre):	/bin/systemd-sysusers
Requires(post):	update-alternatives
Requires(postun):	update-alternatives

# in sync with sendmail and postfix
Provides:	mail-server
Provides:	sendmail-command

%description
OpenSMTPD is a FREE implementation of the server-side SMTP protocol as defined
by RFC 5321, with some additional standard extensions. It allows ordinary
machines to exchange e-mails with other systems speaking the SMTP protocol.
Started out of dissatisfaction with other implementations, OpenSMTPD nowadays
is a fairly complete SMTP implementation. OpenSMTPD is primarily developed
by Gilles Chehade, Eric Faurot and Charles Longeau; with contributions from
various OpenBSD hackers. OpenSMTPD is part of the OpenBSD Project.
The software is freely usable and re-usable by everyone under an ISC license.

%files
%license LICENSE
%doc CHANGES.md README.md
%{_sbindir}/smtpd
%attr(2555,root,smtpq) %{_sbindir}/smtpctl
%{_bindir}/smtp
%config(noreplace) %{_sysconfdir}/pam.d/opensmtpd
%{_sysusersdir}/opensmtpd.conf
%{_unitdir}/opensmtpd.service
%dir %attr(0711,root,root) /var/empty/opensmtpd
%dir %{_sysconfdir}/opensmtpd
%config(noreplace) %{_sysconfdir}/opensmtpd/smtpd.conf
%config(noreplace) %{_sysconfdir}/opensmtpd/aliases
# symlink to /etc/opensmptd
%{_sysconfdir}/smtpd
%{_mandir}/man*/*.opensmtpd.*
%{_mandir}/man1/lockspool.1*
%{_mandir}/man1/smtp.1*
%{_mandir}/man7/smtpd-filters.7*
%{_mandir}/man8/mail.*.8*
%{_mandir}/man8/smtpd.8*
%{_mandir}/man8/smtpctl.8*
%dir %attr(0711,root,root) /var/spool/smtpd
%dir %attr(0700,smtpq,root) /var/spool/smtpd/incoming
%dir %attr(0770,root,smtpq) /var/spool/smtpd/offline
%dir %attr(0700,smtpq,root) /var/spool/smtpd/purge
%dir %attr(0700,smtpq,root) /var/spool/smtpd/queue
%{opensmtpd_libexecdir}
%{_rpmmacrodir}/*opensmtpd*

%pre
%sysusers_create_package opensmtpd %{SOURCE12}

%post
%systemd_post opensmtpd.service
# in sync with sendmail and postfix packages
update-alternatives \
	--install %{_sbindir}/sendmail \
	sendmail-command \
	%{_sbindir}/smtpctl 21 \
	--slave %{_prefix}/lib/sendmail \
	sendmail-command-in_libdir \
	%{_sbindir}/smtpctl

%postun
if [ "$1" = 0 ]; then
	update-alternatives --remove sendmail-command %{_sbindir}/smtpctl
fi

%preun
%systemd_preun opensmtpd.service

#------------------------------------------------------------------

%prep
%autosetup -p1 -n OpenSMTPD-%{ver}
#sed -i'' -e 's,^DB_LIB=$,DB_LIB=db,g' configure.ac

%build
touch NEWS README AUTHORS ChangeLog
autoreconf -if
%configure \
	--sysconfdir=%{_sysconfdir}/opensmtpd \
	--libexecdir="$(dirname %{opensmtpd_libexecdir})" \
	--with-path-CAfile=%{_openssldir}/cert.pem \
	--with-mantype=man \
	--with-auth-pam=opensmtpd \
	--without-table-db \
	--with-user-smtpd=smtpd \
	--with-user-queue=smtpq \
	--with-group-queue=smtpq \
	--with-path-empty=/var/empty/opensmtpd \
	--with-path-socket=%{_rundir} \
	--without-rpath
%make

%install
%makeinstall_std

# compatibility with upstream
( cd %{buildroot}%{_sysconfdir} && ln -s opensmtpd smtpd )

# For reusing in packages opensmtpd-filter-*
cat > macros << 'EOF'
%%opensmtpd_libexecdir %{opensmtpd_libexecdir}
EOF
%install_macro opensmtpd macros

install -Dm 0644 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/opensmtpd
install -Dm 0644 %{SOURCE11} %{buildroot}%{_unitdir}/opensmtpd.service
install -Dm 0644 %{SOURCE12} %{buildroot}%{_sysusersdir}/opensmtpd.conf

mkdir -p --mode=0711 %{buildroot}/var/empty/opensmtpd

# smtpd spool directory
for i in incoming offline purge queue; do
	mkdir -p %{buildroot}/var/spool/smtpd/$i
done

# rename to avoid using too generic (not package-specific) words
mv %{buildroot}%{_mandir}/man5/aliases{,.opensmtpd}.5
mv %{buildroot}%{_mandir}/man5/forward{,.opensmtpd}.5
mv %{buildroot}%{_mandir}/man5/smtpd.conf{,.opensmtpd}.5
mv %{buildroot}%{_mandir}/man5/table{,.opensmtpd}.5
mv %{buildroot}%{_mandir}/man8/makemap{,.opensmtpd}.8
mv %{buildroot}%{_mandir}/man8/newaliases{,.opensmtpd}.8
mv %{buildroot}%{_mandir}/man8/sendmail{,.opensmtpd}.8

echo '# see man 5 aliases.opensmtpd' > %{buildroot}%{_sysconfdir}/opensmtpd/aliases
sed -i'' -e 's|/etc/mail/aliases|%{_sysconfdir}/opensmtpd/aliases|g' %{buildroot}/%{_sysconfdir}/opensmtpd/smtpd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15085 |21mr|opensp-1.5.2-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sgmlbase %{_datadir}/sgml

Summary:	The OpenJade Group's SGML and XML parsing tools
Name:		opensp
Version:	1.5.2
Release:	22
License:	BSD
Group:		Publishing
Url:		http://openjade.sourceforge.net/
Source0:	http://download.sourceforge.net/openjade/OpenSP-%{version}.tar.bz2
Patch0:		OpenSP-1.5-prefer-catalog-entries.patch
Patch1:		opensp-1.5.2-multilib.patch
Patch2:		opensp-1.5.2-nodeids.patch
Patch3:		opensp-1.5.2-c11-using.patch
Patch4:		opensp-1.5.2-fix-segfault.patch
%if %{without bootstrap}
BuildRequires:	xmlto
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-dtd412-xml
%endif
%rename OpenSP

%description
This package is a collection of SGML/XML tools called OpenSP. It is a fork from
James Clark's SP suite. These tools are used to parse, validate, and normalize
SGML and XML files.

%files -f sp5.lang
%doc doc/*.htm ABOUT-NLS AUTHORS COPYING ChangeLog NEWS README
%{_bindir}/*
%{sgmlbase}/%{name}-%{version}/doc/*
%{sgmlbase}/%{name}-%{version}/OpenSP/*
%if %{without bootstrap}
%{_mandir}/man1/*
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime library for the OpenJade group's SP suite
Group:		System/Libraries
Obsoletes:	%{_lib}OpenSP5 < 1.5.2-8

%description -n %{libname}
This is the SP suite's shared library runtime support.  This C++
library contains entity management functions, parsing functions, and
other functions useful for SGML/XML/DSSSL development.

%files -n %{libname}
%{_libdir}/libosp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing OpenSP applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	OpenSP-devel = %{EVRD}
Obsoletes:	%{_lib}OpenSP5-devel < 1.5.2-8

%description -n %{devname}
This contains include files and libraries for OpenSP.
This C++ library contains entity management functions, parsing functions,
and other functions useful for SGML/XML/DSSSL development.

%files -n %{devname}
%{_libdir}/lib*.so
%{_includedir}/OpenSP

#----------------------------------------------------------------------------

%prep
%setup -qn OpenSP-%{version}
%apply_patches

%build
%configure \
	--disable-static \
	--enable-http \
	--enable-default-catalog=%{_sysconfdir}/sgml/catalog  \
	--enable-default-search-path=%{sgmlbase} \
%if %{with bootstrap}
	--disable-doc-build \
%endif
	--datadir=%{sgmlbase}/%{name}-%{version}

%make

%install
%makeinstall_std
%find_lang sp5

#remove unpackaged files
rm -rf %{buildroot}%{_prefix}/doc  %{buildroot}%{_docdir}/OpenSP

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15086 |21mr|openssh-9.6p1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without krb5
%bcond_without gnomeaskpass
%bcond_without libedit

%define OPENSSH_PATH "/usr/local/bin:/bin:%{_bindir}"

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}
%define _default_patch_fuzz 3

Summary:	OpenSSH free Secure Shell (SSH) implementation
Name:		openssh
Version:	9.6p1
Release:	4
License:	BSD
Group:		Networking/Remote access
Url:		http://www.openssh.com/
Source0:	http://ftp.openbsd.org/pub/OpenBSD/OpenSSH/portable/openssh-%{version}.tar.gz
Source1:	ssh_ldap_key.pl
Source2:	ssh-avahi-integration
Source3:	sshd.pam
Source4:	sshd.service
Source5:	sshd-keygen
Source6:	sshd.socket
Source7:	sshd@.service
Source8:	sshd-keygen.service
Source9:	openssh-avahi-helper.sh
Source10:	e2k-compile-fix.patch
Patch0:		openssh-9.5p1-ROSA-ssh-config.patch
# Most patches are From Fedora
# Patches often depend from each other :(
Patch1:		openssh-9.5p1-askpass-progress.patch
Patch2:		openssh-4.3p2-askpass-grab-info.patch
Patch3:		openssh-9.5p1-x11.patch
Patch4:		openssh-9.5p1-log-in-chroot.patch
Patch5:		openssh-9.5p1-systemd.patch
# TODO
# GSSAPI Key Exchange (RFC 4462 + draft-ietf-curdle-gss-keyex-sha2-08)
# from https://github.com/openssh-gsskex/openssh-gsskex/tree/fedora/master
#Patch6:		openssh-8.0p1-gssapi-keyex.patch
### SELinux patches from Fedora
# To work with security-labelled TCP/IP packets
Patch7:		openssh-9.5p1-FEDORA-allow-ip-opts.patch
# https://bugzilla.mindrot.org/show_bug.cgi?id=1641 (WONTFIX)
# Add support for choosing SELinux role from the client (ssh user/role@server)
Patch8:		openssh-9.5p1-role-mls.patch
# https://bugzilla.redhat.com/show_bug.cgi?id=781634
Patch9:		openssh-9.5p1-privsep-selinux.patch
# privsep_preauth: use SELinux context from selinux-policy (#1008580)
Patch10:	openssh-9.5p1-selinux-contexts.patch
# Rediffed:
# - removed " ssh-ldap-helper$(EXEEXT)" from Fedora patch
# - removed " -lfipscheck" from Fedora patch
Patch11:	openssh-9.5p1-keycat.patch
# Pass inetd flags for SELinux down to openbsd compat level
Patch12:	openssh-9.5p1-cleanup-selinux.patch
Patch13:	CVE-2024-6387.patch
# Support of GOST R 34.12-2015 and other GOSTs
# From http://git.altlinux.org/gears/o/openssh-gostcrypto.git
# TODO: get rid of dlopen()-ing gost-engine and use LibreSSL,
# delete checks of availability of algos (not needed in case of
# LibreSSL where they are known at compile time).
Patch40:	openssh-9.5p1-ALT-openssh-openssl-gost-engine.patch
Patch50:	digest-openssl.c.patch
Patch51:	moduli.c.patch
Patch52:	sshd.c.patch
Patch53:	sshsig.c.patch	
BuildRequires:	groff-base
BuildRequires:	systemd-units
BuildRequires:	pam-devel
BuildRequires:	tcp_wrappers-devel
%if %{with gnomeaskpass}
BuildRequires:	pkgconfig(gtk+-2.0)
%endif
%if %{with krb5}
BuildRequires:	pkgconfig(krb5)
%endif
%if %{with libedit}
BuildRequires:	pkgconfig(libedit)
BuildRequires:	pkgconfig(ncurses)
%endif
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(libfido2)
BuildConflicts:	libgssapi-devel
Requires:	tcp_wrappers

%description
Ssh (Secure Shell) is a program for logging into a remote machine and for
executing commands in a remote machine. It is intended to replace
rlogin and rsh, and provide secure encrypted communications between
two untrusted hosts over an insecure network. X11 connections and
arbitrary TCP/IP ports can also be forwarded over the secure channel.

OpenSSH is OpenBSD's rework of the last free version of SSH, bringing it
up to date in terms of security and features, as well as removing all 
patented algorithms to separate libraries (OpenSSL).

This package includes the core files necessary for both the OpenSSH
client and server. To make this package useful, you should also
install openssh-clients, openssh-server, or both.

%files
%doc ChangeLog OVERVIEW README* CREDITS TODO ssh_ldap_key.pl
%license LICENCE
%attr(0644,root,root) %{_mandir}/man8/ssh-sk-helper.8*
%attr(0755,root,root) %{_libexecdir}/ssh-keycat
%attr(0755,root,root) %{_libexecdir}/ssh-sk-helper
%attr(4711,root,root) %{_libexecdir}/ssh-keysign
%{_bindir}/ssh-keygen
%{_bindir}/ssh-keyscan
%dir %{_sysconfdir}/ssh
# compat symlink for compat with RH/Fedora
%{_libexecdir}/openssh
%{_libexecdir}/ssh-pkcs11-helper
%{_mandir}/man1/ssh-keygen.1*
%{_mandir}/man1/ssh-keyscan.1*
%{_mandir}/man8/ssh-keysign.8*
%{_mandir}/man8/ssh-pkcs11-helper.8*

%posttrans
# This directory had symlinks in it and was not owned by any package,
# now (since openssh-8.8p1) it is not used, remove it if it is empty;
# rmdir will fail if this directory is not empty, it is not intended to happen.
if [ -d %{_libexecdir}/ssh ]; then
	rmdir %{_libexecdir}/ssh
fi

#----------------------------------------------------------------------------

%package clients
Summary:	OpenSSH Secure Shell protocol clients
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}
Provides:	ssh-clients = %{EVRD}
Provides:	sftp = %{EVRD}
Provides:	ssh = %{EVRD}

%description clients
This package includes the clients necessary to make encrypted connections
to SSH servers.

%files clients
%license LICENCE
%{_bindir}/scp
%{_bindir}/sftp
%{_bindir}/ssh
%{_bindir}/ssh-add
%{_bindir}/ssh-agent
%{_bindir}/ssh-copy-id
%config(noreplace) %{_sysconfdir}/ssh/ssh_config
%{_mandir}/man1/scp.1*
%{_mandir}/man1/sftp.1*
%{_mandir}/man1/ssh.1*
%{_mandir}/man1/ssh-add.1*
%{_mandir}/man1/ssh-agent.1*
%{_mandir}/man1/ssh-copy-id.1*
%{_mandir}/man5/ssh_config.5*
%{_sysconfdir}/profile.d/90ssh-client.sh
%dir %{_sysconfdir}/ssh/ssh_config.d

#----------------------------------------------------------------------------

%package server
Summary:	OpenSSH Secure Shell protocol server (sshd)
Group:		System/Servers
Requires:	%{name}-clients = %{EVRD}
Requires(pre):	pam
Requires(pre,post):	%{name} = %{EVRD}
Requires(post):	/bin/systemd-sysusers
# script sshd-keygen is full of bashisms
Requires:	bash
# for sysusers config
Requires:	/var/empty
Requires:	/bin/true
Provides:	ssh-server = %{EVRD}
Provides:	sshd = %{EVRD}

%description server
This package contains the secure shell daemon. The sshd is the server
part of the secure shell protocol and allows ssh clients to connect to
your host.

%files server
%license LICENCE
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/pam.d/sshd
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/denyusers
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/ssh/sshd_config
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/sshd
%config(noreplace) %{_sysconfdir}/ssh/moduli
%config(noreplace) %{_sysconfdir}/ssh/openssh_avahi.service
%dir %attr(0700,root,root) %{_sysconfdir}/ssh/sshd_config.d
%{_libexecdir}/sftp-server
%{_libexecdir}/sshd-keygen
%{_mandir}/man5/moduli.5*
%{_mandir}/man5/sshd_config.5*
%{_mandir}/man8/sftp-server.8*
%{_mandir}/man8/sshd.8*
%{_unitdir}/sshd-keygen.service
%{_unitdir}/sshd.service
%{_unitdir}/sshd@.service
%{_unitdir}/sshd.socket
%{_sbindir}/openssh-avahi-helper
%{_sbindir}/sshd
%{_sbindir}/sshd-keygen
%{_sysusersdir}/sshd.conf

%post server
%sysusers_create sshd.conf
%systemd_post sshd.service sshd.socket
# Don't run sshd-keygen.service here, because otherwise all ISO images will have the same host keys
# sshd-keygen.service is ran as a part of sshd.service

%preun server
%systemd_preun sshd.service sshd.socket

%postun server
%systemd_postun_with_restart sshd.service

#----------------------------------------------------------------------------

%package askpass-common
Summary:	OpenSSH X11 passphrase common scripts
Group:		Networking/Remote access

%description askpass-common
OpenSSH X11 passphrase common scripts.

%files askpass-common
%license LICENCE
%{_sysconfdir}/profile.d/90ssh-askpass.*

#----------------------------------------------------------------------------

%if %{with gnomeaskpass}
%package askpass-gnome
Summary:	OpenSSH GNOME passphrase dialog
Group:		Networking/Remote access
Requires:	%{name}
Requires:	%{name}-askpass-common
Requires(post,postun):	update-alternatives
Recommends:	packagekit-gtk2-module
Provides:	%{name}-askpass = %{EVRD}
Provides:	ssh-askpass = %{EVRD}
Provides:	ssh-extras = %{EVRD}

%description askpass-gnome
This package contains the GNOME passphrase dialog.

%files askpass-gnome
%license LICENCE
%{_libexecdir}/gnome-ssh-askpass

%post askpass-gnome
# location changed from /usr/libexec/ssh/ to /usr/libexec/ in openssh-8.8p1
if [ -L %{_libexecdir}/ssh/ssh-askpass ] && [ "$(realpath %{_libexecdir}/ssh/ssh-askpass)" = %{_libexecdir}/ssh/gnome-ssh-askpass ]; then
	update-alternatives --remove ssh-askpass %{_libexecdir}/ssh/gnome-ssh-askpass || :
fi
if [ -L %{_bindir}/ssh-askpass ] && [ "$(realpath %{_bindir}/ssh-askpass)" = %{_libexecdir}/ssh/gnome-ssh-askpass ]; then
	update-alternatives --remove bssh-askpass %{_libexecdir}/ssh/gnome-ssh-askpass || :
fi

update-alternatives --install %{_libexecdir}/ssh-askpass ssh-askpass %{_libexecdir}/gnome-ssh-askpass 20
update-alternatives --install %{_bindir}/ssh-askpass bssh-askpass %{_libexecdir}/gnome-ssh-askpass 20

%postun askpass-gnome
[ $1 = 0 ] || exit 0
update-alternatives --remove ssh-askpass %{_libexecdir}/ssh/gnome-ssh-askpass
update-alternatives --remove bssh-askpass %{_libexecdir}/ssh/gnome-ssh-askpass
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%ifarch %{e2k}
patch -p1 < %{SOURCE10}
%endif

install %{SOURCE1} .

install -m 0644 %{SOURCE3} sshd.pam

# fix attribs
chmod 644 ChangeLog OVERVIEW README* INSTALL CREDITS LICENCE TODO ssh_ldap_key.pl

# http://qa.mandriva.com/show_bug.cgi?id=22957
sed -e "s|_OPENSSH_PATH_|%{OPENSSH_PATH}|g" -i sshd_config

autoreconf -fi

%build
%ifarch %{ix86}
%define _disable_ld_no_undefined 1
%endif

%serverbuild
%configure	\
	--datadir=%{_datadir}/ssh		\
	--disable-strip				\
	--libdir=%{_libdir}			\
	--libexecdir=%{_libexecdir}		\
	--mandir=%{_mandir}			\
	--prefix=%{_prefix}			\
	--sysconfdir=%{_sysconfdir}/ssh		\
	--with-default-path=%{OPENSSH_PATH}	\
%if %{with krb5}
	--with-kerberos5=%{_prefix}	\
%endif
%if %{with libedit}
	--with-libedit			\
%else
	--without-libedit		\
%endif
	--with-maildir=/var/spool/mail		\
	--without-zlib-version-check		\
	--with-pam				\
	--with-privsep-path=/var/empty		\
	--with-sandbox=rlimit			\
	--with-security-key-builtin		\
%if %{with selinux}
	--with-selinux			\
%ifarch %{e2k}
	--with-sandbox=no		\
%else
	--with-sandbox=seccomp_filter	\
%endif
%else
	--with-sandbox=rlimit		\
%endif
	--with-ssh1				\
	--with-superuser-path=/usr/local/sbin:/usr/local/bin:/sbin:/bin:%{_sbindir}:%{_bindir}	\
	--with-systemd				\
	--with-tcp-wrappers			\
	--with-xauth=%{_bindir}/xauth

%ifarch %{ix86} %{arm}
# crisb - ftrapv causes link error (missing mulodi4) on 32-bit systems
# seems the configure code does not detect this (despite attempts)
find . -name Makefile -exec sed -i 's|-ftrapv||' {} \;
%endif

%make

%if %{with gnomeaskpass}
pushd contrib
	make gnome-ssh-askpass2 CC="%{__cc} %{optflags} %{ldflags}"
	mv gnome-ssh-askpass2 gnome-ssh-askpass
popd
%endif

%install
%makeinstall_std

install -d %{buildroot}%{_sysconfdir}/ssh
install -d %{buildroot}%{_sysconfdir}/pam.d/
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_unitdir}
install -m644 sshd.pam %{buildroot}%{_sysconfdir}/pam.d/sshd
install -m644 %{SOURCE4} %{buildroot}%{_unitdir}/sshd.service
install -m755 %{SOURCE5} %{buildroot}%{_sbindir}/sshd-keygen
install -m644 %{SOURCE6} %{buildroot}%{_unitdir}/sshd.socket
install -m644 %{SOURCE7} %{buildroot}%{_unitdir}/sshd@.service
install -m644 %{SOURCE8} %{buildroot}%{_unitdir}/sshd-keygen.service

if [[ -f sshd_config.out ]]; then 
	install -m600 sshd_config.out %{buildroot}%{_sysconfdir}/ssh/sshd_config
else 
	install -m600 sshd_config %{buildroot}%{_sysconfdir}/ssh/sshd_config
fi
echo "root" > %{buildroot}%{_sysconfdir}/ssh/denyusers

if [[ -f ssh_config.out ]]; then
	install -m644 ssh_config.out %{buildroot}%{_sysconfdir}/ssh/ssh_config
else
	install -m644 ssh_config %{buildroot}%{_sysconfdir}/ssh/ssh_config
fi
echo "	StrictHostKeyChecking no" >> %{buildroot}%{_sysconfdir}/ssh/ssh_config

install -d %{buildroot}%{_sysconfdir}/profile.d/
%if %{with gnomeaskpass}
install -m 755 contrib/gnome-ssh-askpass %{buildroot}%{_libexecdir}/gnome-ssh-askpass
%endif

cat > %{buildroot}%{_sysconfdir}/profile.d/90ssh-askpass.csh <<EOF
setenv SSH_ASKPASS %{_libexecdir}/ssh-askpass
EOF

cat > %{buildroot}%{_sysconfdir}/profile.d/90ssh-askpass.sh <<EOF
export SSH_ASKPASS=%{_libexecdir}/ssh-askpass
EOF

cat > %{buildroot}%{_sysconfdir}/profile.d/90ssh-client.sh <<'EOF'
# fix hanging ssh clients on exit
if [ -n "$BASH_VERSION" ]; then
	shopt -s huponexit
elif [ -n "$ZSH_VERSION" ]; then
	setopt hup
fi
EOF

install -p -m755 contrib/ssh-copy-id %{buildroot}%{_bindir}/
install -m 644 contrib/ssh-copy-id.1 %{buildroot}/%{_mandir}/man1/

# create pre-authentication directory
mkdir -p %{buildroot}/var/empty
# create directories for drop-in configs
mkdir -p --mode=0700 %{buildroot}%{_sysconfdir}/ssh/sshd_config.d
mkdir -p --mode=0755 %{buildroot}%{_sysconfdir}/ssh/ssh_config.d

# remove unwanted files
rm -f %{buildroot}%{_libexecdir}/ssh-askpass

cat > %{buildroot}%{_sysconfdir}/sysconfig/sshd << EOF
#SSHD="%{_sbindir}/sshd"
#PID_FILE="/var/run/sshd.pid"
#OPTIONS=""
EOF

# avahi integration support (misc)
# See also openssh-avahi-helper.sh
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/ssh/openssh_avahi.service
install -m 0755 %{SOURCE9} %{buildroot}%{_sbindir}/openssh-avahi-helper

# make sure strip can touch it
chmod 755 %{buildroot}%{_libexecdir}/*

mkdir -p %{buildroot}%{_sysusersdir}
cat > %{buildroot}%{_sysusersdir}/sshd.conf << 'EOF'
u sshd - "OpenSSH daemon" /var/empty /bin/true
g sshd - -
m sshd sshd
EOF

# Compat symlink for compat with RH/Fedora
# They have /usr/libexec/openssh, but all utils in it are prefixed with ssh-*,
# so there is no sense to use such a subdirectory in ROSA, we use just /usr/libexec/,
# but let's try to make configs from RH/Fedora copypastable.
( cd %{buildroot}%{_libexecdir} && ln -s %{_libexecdir} openssh )
# Compatibility with manuals for RHEL that suggest to run it inside a kickstart file
# RHEL 9 docs -> "12.2. Kickstart file for client installation"
( cd %{buildroot}%{_libexecdir} && ln -s ../sbin/sshd-keygen sshd-keygen )

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15087 |21mr|openssl1.0-1.0.2u-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This package has been replaced by openssl 1.1,
# now only compatibility libraries are left here;
# to avoid removing everything manually, let's just
# package what we need and leave all other stuff as is
%define _unpackaged_files_terminate_build 0

%define major 1.0.0
%define libcrypto %mklibname crypto %{major}
%define libssl %mklibname ssl %{major}

# patchelf 0.9 is buggy so compat libraries are experimental for now
%bcond_without compat
%define major_compat 10
%define libcrypto_compat %mklibname crypto %{major_compat}
%define libssl_compat %mklibname ssl %{major_compat}

# Number of threads to spawn when testing some threading fixes.
#define thread_test_threads %%{?threads:%%{threads}}%%{!?threads:1}

%define with_krb5 %{?_with_krb5:1}%{!?_with_krb5:0}

# This directory is defined in /usr/bin/openssl-config and %%_rpmmacrodir/*openssl*
# during the build.
# The purpose is a system-wide definition of this directory
# to guarantee consistency across the whole repository.
%define _openssldir %{_sysconfdir}/pki/tls

%define oname openssl

Summary:	Compat libraries of OpenSSL 1.0
Name:		openssl1.0
Version:	1.0.2u
Release:	5
License:	BSD-like
Group:		System/Libraries
Url:		https://www.openssl.org
Source0:	ftp://ftp.openssl.org/source/%{oname}-%{version}.tar.gz
Source2:	Makefile.certificate
Source3:	make-dummy-cert
Source4:	openssl-thread-test.c
# Based on https://github.com/gost-engine/engine
# Never remove gost-engine patches
Patch0:		openssl-1.0.2l-gost-engine.patch
# Backport GOST 2015 identificators and GOST OIDs for Edwards parameter sets
Patch1:		openssl-1.0.2-Backport-GOST-2015-identificators-and-GOST-OIDs-for-.patch
# Handle RPM_OPT_FLAGS in Configure
Patch2:		openssl-1.0.2e-optflags.patch
Patch3:		openssl-1.0.1c-fix-perlpath.pl
# (oe) support Brazilian Government OTHERNAME X509v3 field (#14158)
# http://www.iti.gov.br/resolucoes/RESOLU__O_13_DE_26_04_2002.PDF
Patch6:		openssl-1.0.2l-icpbrasil.patch
Patch7:		openssl-1.0.2-defaults.patch
Patch12:	openssl-1.0.2-x509.patch
Patch13:	openssl-1.0.2-add-engines.patch
Patch302:	openssl-1.0.2-enginesdir.patch
Patch303:	openssl-0.9.8a-no-rpath.patch
Patch304:	openssl-1.0.2-test-use-localhost.patch
BuildRequires:	bc
%if %{with compat}
# readelf is used to produce libcrypto.so.10 and libssl.so.10
# needed for compatibility with Fedora/RHEL (Viber etc)
BuildRequires:	patchelf >= 0.10-0.20170615.2
%endif
%{?_with_krb5:BuildRequires:	krb5-devel}
BuildRequires:	sctp-devel
BuildRequires:	pkgconfig(zlib)

%description
The openssl certificate management tool and the shared libraries that provide
various encryption and decription algorithms and protocols, including DES, RC4,
RSA and SSL.

#----------------------------------------------------------------------------

%package -n %{libcrypto}
Summary:	Secure Sockets Layer communications libs
Group:		System/Libraries
Requires:	%{libssl} = %{EVRD}

%description -n %{libcrypto}
The libraries files are needed for various cryptographic algorithms
and protocols, including DES, RC4, RSA and SSL.

%files -n %{libcrypto}
%doc FAQ LICENSE NEWS PROBLEMS README*
%{_libdir}/libcrypto.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libssl}
Summary:	Secure Sockets Layer communications libs
Group:		System/Libraries

%description -n %{libssl}
The libraries files are needed for various cryptographic algorithms
and protocols, including DES, RC4, RSA and SSL.

%files -n %{libssl}
%doc FAQ LICENSE NEWS PROBLEMS README*
%{_libdir}/libssl.so.%{major}*

#----------------------------------------------------------------------------

%if %{with compat}
%package -n %{libcrypto_compat}
Summary:	Secure Sockets Layer communications libs (Fedora compatibility only)
Group:		System/Libraries

%description -n %{libcrypto_compat}
The libraries files are needed for various cryptographic algorithms
and protocols, including DES, RC4, RSA and SSL.

%files -n %{libcrypto_compat}
%doc FAQ LICENSE NEWS PROBLEMS README*
%{_libdir}/libcrypto.so.%{major_compat}*
%endif

#----------------------------------------------------------------------------

%if %{with compat}
%package -n %{libssl_compat}
Summary:	Secure Sockets Layer communications libs (Fedora compatibility only)
Group:		System/Libraries

%description -n %{libssl_compat}
The libraries files are needed for various cryptographic algorithms
and protocols, including DES, RC4, RSA and SSL.

%files -n %{libssl_compat}
%doc FAQ LICENSE NEWS PROBLEMS README*
%{_libdir}/libssl.so.%{major_compat}*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1 -b .gost
%patch1 -p1
%patch2 -p1 -b .optflags
%patch3 -p1 -b .perl
%patch6 -p1 -b .icpbrasil
%patch7 -p1 -b .defaults
%{?_with_krb5:%patch8 -p1 -b .krb5}
%patch12 -p1 -b .x509
%patch13 -p1 -b .version-add-engines

%patch302 -p1 -b .engines
%patch303 -p1 -b .no-rpath
%patch304 -p1 -b .test-use-localhost

perl -pi -e "s,^(OPENSSL_LIBNAME=).+$,\1%{_lib}," Makefile.org engines/Makefile

# fix perl path
perl util/perlpath.pl %{_bindir}/perl

cp %{SOURCE2} Makefile.certificate
cp %{SOURCE3} make-dummy-cert
cp %{SOURCE4} openssl-thread-test.c

%build
%serverbuild

# Figure out which flags we want to use.
# default
sslarch=%{_os}-%{_arch}
%ifarch %{ix86}
sslarch=linux-elf
if ! echo %{_target} | grep -q i[56]86 ; then
	sslflags="no-asm"
fi
%endif
%ifarch %{arm}
sslarch=linux-generic32
%endif

%ifarch %e2k
sslarch=linux-x86_64
sslflags="no-asm"
%endif

# ia64, x86_64, ppc, ppc64 are OK by default
# Configure the build tree.  Override OpenSSL defaults with known-good defaults
# usable on all platforms.  The Configure script already knows to use -fPIC and
# RPM_OPT_FLAGS, so we can skip specifiying them here.
./Configure \
	--openssldir=%{_openssldir} ${sslflags} \
	--enginesdir=%{_libdir}/openssl-%{major}/engines \
	--prefix=%{_prefix} --libdir=%{_lib}/ %{?_with_krb5:--with-krb5-flavor=MIT -I%{_prefix}/kerberos/include -L%{_prefix}/kerberos/%{_lib}} \
	zlib no-idea no-rc5 enable-camellia enable-seed enable-tlsext enable-rfc3779 enable-cms enable-md2 sctp shared ${sslarch}

# Add -Wa,--noexecstack here so that libcrypto's assembler modules will be
# marked as not requiring an executable stack.
RPM_OPT_FLAGS="%{optflags} -Wa,--noexecstack"

make depend
make all build-shared

# Generate hashes for the included certs.
make rehash build-shared

%check
# Verify that what was compiled actually works.
export LD_LIBRARY_PATH=`pwd`${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}

make -C test apps tests

gcc -o openssl-thread-test \
	%{?_with_krb5:`krb5-config --cflags`} \
	-I./include \
	%{optflags} \
	openssl-thread-test.c \
	-L. -lssl -lcrypto \
	%{?_with_krb5:`krb5-config --libs`} \
	-lpthread -lz -ldl

./openssl-thread-test --threads %{thread_test_threads}

%install

%makeinstall \
	INSTALL_PREFIX=%{buildroot} \
	MANDIR=%{_mandir} \
	build-shared

# strip cannot touch these unless 755
chmod 755 %{buildroot}%{_libdir}/*.so*

%if %{with compat}
# RHEL/Fedora compatibility libraries
cp %{buildroot}%{_libdir}/libcrypto.so.%{major} %{buildroot}%{_libdir}/libcrypto.so.%{major_compat}
cp %{buildroot}%{_libdir}/libssl.so.%{major} %{buildroot}%{_libdir}/libssl.so.%{major_compat}
patchelf --set-soname libcrypto.so.%{major_compat} %{buildroot}%{_libdir}/libcrypto.so.%{major_compat}
patchelf --set-soname libssl.so.%{major_compat} %{buildroot}%{_libdir}/libssl.so.%{major_compat}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15088 |21mr|openssl-1.1.1w-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.1
%define engines_name %mklibname openssl-engines %{major}
%define libcrypto %mklibname crypto %{major}
%define libssl %mklibname ssl %{major}
%define devname %mklibname openssl -d
%define staticname %mklibname openssl -s -d

# This directory is defined in /usr/bin/openssl-config and %%_rpmmacrodir/*openssl*
# during the build.
# The purpose is a system-wide definition of this directory
# to guarantee consistency across the whole repository.
%define _openssldir %{_sysconfdir}/pki/tls
%define openssl_engines_dir %{_libdir}/engines-%{major}

%define _docs %{expand:
%doc AUTHORS \
%doc CHANGES \
%doc LICENSE \
%doc FAQ \
%doc NEWS \
%doc README \
%doc README.ENGINE
}

Summary:	Secure Sockets Layer communications libs & utils
Name:		openssl
Version:	1.1.1w
Release:	3
License:	OpenSSL
Group:		System/Libraries
Url:		https://www.openssl.org
Source0:	https://ftp.openssl.org/source/%{name}-%{version}.tar.gz
Source1:	openssl.rpmlintrc
Source2:	Makefile.certificate
Source3:	make-dummy-cert
Source4:	openssl-thread-test.c
Source5:	openssl-config
Patch1:		openssl-alt-e2k-makecontext.patch
# CVE-2023-5678
Patch2:		openssl-1.1.1-cve-2023-5678.patch
BuildRequires:	bc
BuildRequires:	sctp-devel
BuildRequires:	pkgconfig(zlib)
# for %%check, ./test/run_tests.pl
BuildRequires:	perl-devel
BuildRequires:	perl-Module-Load-Conditional
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::More)
BuildRequires:	/usr/bin/pod2html
BuildRequires:	/usr/bin/pod2man
# for %%check
BuildRequires:	grep
BuildRequires:	patchelf
Requires:	%{engines_name} = %{EVRD}
Requires:	perl-base
Requires:	rootcerts
Provides:	openssl%{major} = %{EVRD}
Provides:	openssl-config = %{EVRD}

%description
The openssl certificate management tool and the shared libraries that provide
various encryption and decription algorithms and protocols, including DES, RC4,
RSA and SSL.

%files
%_docs
%dir %{_sysconfdir}/pki
%dir %{_sysconfdir}/pki/CA
%dir %{_sysconfdir}/pki/CA/private
%dir %{_openssldir}
%dir %{_openssldir}/certs
%dir %{_openssldir}/misc
%dir %{_openssldir}/private
%dir %{_openssldir}/rootcerts
%attr(0644,root,root) %config(noreplace) %{_openssldir}/openssl.cnf
%attr(0644,root,root) %config(noreplace) %{_openssldir}/ct_log_list.cnf
%attr(0755,root,root) %{_openssldir}/certs/make-dummy-cert
%attr(0644,root,root) %{_openssldir}/certs/Makefile
%attr(0755,root,root) %{_openssldir}/misc/*
%attr(0755,root,root) %{_bindir}/c_rehash
%attr(0755,root,root) %{_bindir}/openssl
%attr(0755,root,root) %{_bindir}/openssl%{major}
%attr(0755,root,root) %{_bindir}/openssl-config
%attr(0755,root,root) %{_bindir}/ssleay
%attr(0644,root,root) %{_mandir}/man[157]/*
%{_defaultdocdir}/openssl/html/man[157]

#----------------------------------------------------------------------------

%package -n %{engines_name}
Summary:	Engines for openssl
Group:		System/Libraries
Provides:	openssl-engines = %{EVRD}

%description -n %{engines_name}
This package provides engines for openssl.

%files -n %{engines_name}
%_docs
%attr(0755,root,root) %dir %{openssl_engines_dir}/
%attr(0755,root,root) %{openssl_engines_dir}/*.so

#----------------------------------------------------------------------------

%package -n %{libcrypto}
Summary:	Secure Sockets Layer communications libs
Group:		System/Libraries
Requires:	%{libssl} = %{EVRD}

%description -n %{libcrypto}
The libraries files are needed for various cryptographic algorithms
and protocols, including DES, RC4, RSA and SSL.

%files -n %{libcrypto}
%_docs
%{_libdir}/libcrypto.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libssl}
Summary:	Secure Sockets Layer communications libs
Group:		System/Libraries

%description -n %{libssl}
The libraries files are needed for various cryptographic algorithms
and protocols, including DES, RC4, RSA and SSL.

%files -n %{libssl}
%_docs
%{_libdir}/libssl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Secure Sockets Layer communications libs & headers & utils
Group:		Development/Other
Requires:	%{libssl} = %{EVRD}
Requires:	%{libcrypto} = %{EVRD}
Provides:	libopenssl-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The libraries and include files needed to compile apps with support
for various cryptographic algorithms and protocols, including DES, RC4, RSA
and SSL.

%files -n %{devname}
%_docs
%dir %{_includedir}/openssl
%{_includedir}/openssl/*
%{_libdir}/libcrypto.so
%{_libdir}/libssl.so
%{_mandir}/man3/*
%{_defaultdocdir}/openssl/html/man3
%{_libdir}/pkgconfig/*
%{_rpmmacrodir}/*openssl*

#----------------------------------------------------------------------------

%package -n %{staticname}
Summary:	Secure Sockets Layer communications static libs
Group:		Development/Other
Requires:	%{devname} = %{EVRD}
Provides:	libopenssl-static-devel = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{staticname}
The static libraries needed to compile apps with support for various
cryptographic algorithms and protocols, including DES, RC4, RSA and SSL.

%files -n %{staticname}
%_docs
%attr(0644,root,root) %{_libdir}/lib*.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

cp %{SOURCE2} Makefile.certificate
cp %{SOURCE3} make-dummy-cert
cp %{SOURCE4} openssl-thread-test.c

%build
%serverbuild

# Figure out which flags we want to use.
# default
sslarch=%{_os}-%{_arch}
%ifarch %{ix86}
sslarch=linux-elf
if ! echo %{_target} | grep -q i[56]86 ; then
	sslflags="no-asm"
fi
%endif
%ifarch %{arm}
sslarch=linux-generic32
%endif
# from ALT
%ifarch riscv64 %{e2k}
sslarch=linux-generic64
%endif

# ia64, x86_64, ppc, ppc64 are OK by default
# Configure the build tree.  Override OpenSSL defaults with known-good defaults
# usable on all platforms.  The Configure script already knows to use -fPIC and
# RPM_OPT_FLAGS, so we can skip specifiying them here.
./Configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--openssldir=%{_openssldir} \
	${sslflags} \
	enable-camellia \
	enable-cms \
	enable-md2 \
	enable-rc5 \
	enable-rfc3779 \
	enable-sctp \
	enable-seed \
	enable-ssl3 \
	enable-ssl3-method \
	no-ec2m \
	no-mdc2 \
	no-srp \
	zlib \
	no-zlib-dynamic \
	shared \
	${sslarch}

%make all

%check
# Verify that what was compiled actually works.
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}
# from OMV and ALT
OPENSSL_ENABLE_MD5_VERIFY=
export OPENSSL_ENABLE_MD5_VERIFY
OPENSSL_SYSTEM_CIPHERS_OVERRIDE=xyz_nonexistent_file
export OPENSSL_SYSTEM_CIPHERS_OVERRIDE
# (mikhailnov) TODO: they fail, fix them?!
rm -f test/recipes/10-test_bn.t
rm -f test/recipes/80-test_ssl_new.t   
make test

%__cc -o openssl-thread-test \
	-I./include \
	%{optflags} \
	openssl-thread-test.c \
	-L. -lssl -lcrypto \
	-lpthread -lz -ldl

./openssl-thread-test --threads 4

# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14131
patchelf --print-needed %{buildroot}%{_bindir}/openssl | grep 'libz\.so\.'

%install

%makeinstall_std

# make the rootcerts dir
install -d %{buildroot}%{_openssldir}/rootcerts

# Install a makefile for generating keys and self-signed certs, and a script
# for generating them on the fly.
install -d %{buildroot}%{_openssldir}/certs
install -m0644 Makefile.certificate %{buildroot}%{_openssldir}/certs/Makefile
install -m0755 make-dummy-cert %{buildroot}%{_openssldir}/certs/make-dummy-cert

# Pick a CA script.
mv %{buildroot}%{_openssldir}/misc/CA.pl %{buildroot}%{_openssldir}/misc/CA

install -d %{buildroot}%{_sysconfdir}/pki/CA
install -d %{buildroot}%{_sysconfdir}/pki/CA/private

# openssl was named ssleay in "ancient" times.
ln -snf openssl %{buildroot}%{_bindir}/ssleay

ln -snf openssl %{buildroot}%{_bindir}/openssl%{major}

# From ALT Linux
# Rename some man pages, fix references.
for f in passwd.1 config.5; do
name="${f%%.*}"
sect="${f##*.}"
NAME=`printf %%s "$name" |tr '[:lower:]' '[:upper:]'`
sed -i "s/\\<$NAME $sect\\>/SSL&/" %{buildroot}%{_mandir}/man"$sect/$f"
mv -v %{buildroot}%{_mandir}/man"$sect"/{,ssl}"$f"
find %{buildroot}%{_mandir} -type f -print0 |
xargs -r0 grep -FZl "\\fI$name\\fR\\|($sect)" -- |
xargs -r0 subst -p "s/\\\\fI$name\\\\fR\\\\|($sect)/\\\\fIssl$name\\\\fR\\\\|($sect)/" --
find %{buildroot}%{_mandir} -type l |while read link; do
[ "$(readlink -n "$link")" = "$f" ] || continue
ln -sfv "ssl$f" "$link"
done
done

chmod 755 %{buildroot}%{_libdir}/pkgconfig

# strip cannot touch these unless 755
chmod 755 %{buildroot}%{openssl_engines_dir}/*.so*
chmod 755 %{buildroot}%{_libdir}/*.so*
chmod 755 %{buildroot}%{_bindir}/*

# Fix libdir.
pushd %{buildroot}%{_libdir}/pkgconfig
	for i in *.pc ; do
		sed 's,^libdir=${exec_prefix}/lib$,libdir=${exec_prefix}/%{_libdir},g' \
			$i >$i.tmp && \
			cat $i.tmp >$i && \
			rm -f $i.tmp
	done
popd

# adjust ssldir
perl -pi -e "s|^CATOP=.*|CATOP=%{_openssldir}|g" %{buildroot}%{_openssldir}/misc/CA
perl -pi -e "s|^\\\$CATOP\=\".*|\\\$CATOP\=\"%{_openssldir}\";|g" %{buildroot}%{_openssldir}/misc/CA.pl
perl -pi -e "s|\./demoCA|%{_openssldir}|g" %{buildroot}%{_openssldir}/openssl.cnf

# remove example configs
rm -fv %{buildroot}%{_openssldir}/*.dist

# install openssl-config
install -m0755 %{SOURCE5} %{buildroot}/%{_bindir}/
# define values in openssl-config
sed -i %{buildroot}/%{_bindir}/openssl-config \
	-e "s#@VERSION@#%{version}#g" \
	-e "s#@OPENSSLDIR@#%{_openssldir}#g" \
	-e "s#@CPPFLAGS@#${CPPFLAGS}#g" \
	-e "s#@CFLAGS@#${RPM_OPT_FLAGS}#g" \
	-e "s#@LDFLAGS@#%{ldflags}#g"
# test openssl-config
[ "$(%{buildroot}/%{_bindir}/openssl-config --openssldir)" = '%{_openssldir}' ]

# Having sovers as macros may be useful to check that binaries are linked against OpenSSL
# Alike LibreSSL package
cat << EOF > macros.file
%%_openssldir %{_openssldir}
%%openssl_version %{version}
%%openssl_major %{major}
%%openssl_libcrypto_sover %{major}
%%openssl_libssl_sover %{major}
%%openssl_prefix %{_prefix}
%%openssl_engines_dir %{openssl_engines_dir}
EOF
%install_macro openssl macros.file

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15089 |21mr|openssl-gost-engine-0-1.7c3009
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# make rpmlint happy
%{!?openssl_major: %define openssl_major 0}
%define libname %mklibname openssl-gost-engine %{openssl_major}
# Building from git master, because realeases are rare
%define commit 7c30097805cba0c62555493df6dad9f0c5d1d0f3
%define commit_short %(echo %commit | head -c 6)

Summary:	A reference implementation of the Russian GOST crypto algorithms for OpenSSL
Name:		openssl-gost-engine
Version:	%{openssl_major}
Release:	1.%{commit_short}
Epoch:		1
License:	OpenSSL
Group:		System/Libraries
Url:		https://github.com/gost-engine/engine
Source0:	https://github.com/gost-engine/engine/archive/%{commit}.tar.gz?/engine-%{commit}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(openssl)
BuildRequires:	openssl

%description
A reference implementation of the Russian GOST crypto algorithms for OpenSSL.

#-------------------------------------------------------------------------------------

%package -n %{libname}
Summary:	A reference implementation of the Russian GOST crypto algorithms for OpenSSL
Group:		System/Libraries
Provides:	openssl-gost-engine-openssl-api%{?_isa} = %{openssl_major}
Provides:	%{name} = %{EVRD}

%description -n %{libname}
A reference implementation of the Russian GOST crypto algorithms for OpenSSL.

%files -n %{libname}
%{openssl_engines_dir}/gost.so
%{openssl_engines_dir}/gost.so.%{openssl_major}

#-------------------------------------------------------------------------------------

%package -n gostsum
Summary:	GOST file digesting utilities
Group:		File tools

%description -n gostsum
GOST file digesting utilities.

%files -n gostsum
%{_bindir}/gostsum
%{_bindir}/gost12sum
%{_mandir}/man1/gostsum.1*
%{_mandir}/man1/gost12sum.1*

#----------------------------------------------------------------------------

%prep
%setup -qn engine-%{commit}
%apply_patches

%build

# verify that macro value has been pulled from macros in openssl package
[ %{version} != 0 ] || exit 1

%setup_compile_flags
# TODO: fix gost_grasshopper_cipher.c//acpkm_next
export CFLAGS="$CFLAGS -Wno-error=strict-aliasing"
%cmake
%make

%install
%makeinstall_std -C build

%check
export LD_LIBRARY_PATH=%{buildroot}%{openssl_engines_dir}
# from ALT
CTEST_OUTPUT_ON_FAILURE=1 \
make test -C build ARGS="--verbose"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15090 |21mr|openssl-gost-engine-1.1-1.7c3009
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# make rpmlint happy
%{!?openssl_major: %define openssl_major 0}
%define libname %mklibname openssl-gost-engine %{openssl_major}
# Building from git master, because realeases are rare
%define commit 7c30097805cba0c62555493df6dad9f0c5d1d0f3
%define commit_short %(echo %commit | head -c 6)

Summary:	A reference implementation of the Russian GOST crypto algorithms for OpenSSL
Name:		openssl-gost-engine
Version:	%{openssl_major}
Release:	1.%{commit_short}
Epoch:		1
License:	OpenSSL
Group:		System/Libraries
Url:		https://github.com/gost-engine/engine
Source0:	https://github.com/gost-engine/engine/archive/%{commit}.tar.gz?/engine-%{commit}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(openssl)
BuildRequires:	openssl

%description
A reference implementation of the Russian GOST crypto algorithms for OpenSSL.

#-------------------------------------------------------------------------------------

%package -n %{libname}
Summary:	A reference implementation of the Russian GOST crypto algorithms for OpenSSL
Group:		System/Libraries
Provides:	openssl-gost-engine-openssl-api%{?_isa} = %{openssl_major}
Provides:	%{name} = %{EVRD}

%description -n %{libname}
A reference implementation of the Russian GOST crypto algorithms for OpenSSL.

%files -n %{libname}
%{openssl_engines_dir}/gost.so
%{openssl_engines_dir}/gost.so.%{openssl_major}

#-------------------------------------------------------------------------------------

%package -n gostsum
Summary:	GOST file digesting utilities
Group:		File tools

%description -n gostsum
GOST file digesting utilities.

%files -n gostsum
%{_bindir}/gostsum
%{_bindir}/gost12sum
%{_mandir}/man1/gostsum.1*
%{_mandir}/man1/gost12sum.1*

#----------------------------------------------------------------------------

%prep
%setup -qn engine-%{commit}
%apply_patches

%build

# verify that macro value has been pulled from macros in openssl package
[ %{version} != 0 ] || exit 1

%setup_compile_flags
# TODO: fix gost_grasshopper_cipher.c//acpkm_next
export CFLAGS="$CFLAGS -Wno-error=strict-aliasing"
%cmake
%make

%install
%makeinstall_std -C build

%check
export LD_LIBRARY_PATH=%{buildroot}%{openssl_engines_dir}
# from ALT
CTEST_OUTPUT_ON_FAILURE=1 \
make test -C build ARGS="--verbose"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15091 |21mr|openstack-java-sdk-3.2.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# % global git_hash git10597f7

Name:           openstack-java-sdk
Version:        3.2.7
Release:        4%{?git_hash}
Summary:        OpenStack Java SDK

License:        ASL 2.0
URL:            https://github.com/woorea/%{name}
Source0:        https://github.com/woorea/%{name}/archive/%{name}-%{version}.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  java-devel >= 1:1.7.0
BuildRequires:  jpackage-utils >= 0:1.7.3
BuildRequires:  maven-local
%if 0%{?rhel} && 0%{?rhel} < 8
BuildRequires:  jboss-annotations-1.1-api
%else
BuildRequires:  jboss-annotations-1.2-api
%endif
BuildRequires:  jakarta-commons-httpclient
BuildRequires:  sonatype-oss-parent
BuildRequires:  mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires:  mvn(org.jboss.resteasy:resteasy-jaxrs)

%description
OpenStack client implementation in Java.


%package -n openstack-java-javadoc
Summary:        Java docs for OpenStack Java SDK

%description -n openstack-java-javadoc
This package contains the API documentation for the OpenStack Java SDK.


%package -n openstack-java-client
Summary:        OpenStack Java Client

%description -n openstack-java-client
This package contains the %{summary}.


%package -n openstack-java-resteasy-connector
Summary:        OpenStack Java RESTEasy Connector

%description -n openstack-java-resteasy-connector
This package contains the %{summary}.


%package -n openstack-java-ceilometer-client
Summary:        OpenStack Java Ceilometer Client

%description -n openstack-java-ceilometer-client
This package contains the %{summary}.


%package -n openstack-java-ceilometer-model
Summary:        OpenStack Java Ceilometer Model

%description -n openstack-java-ceilometer-model
This package contains the %{summary}.


%package -n openstack-java-glance-client
Summary:        OpenStack Java Glance Client

%description -n openstack-java-glance-client
This package contains the %{summary}.


%package -n openstack-java-glance-model
Summary:        OpenStack Java Glance Model

%description -n openstack-java-glance-model
This package contains the %{summary}.


%package -n openstack-java-cinder-client
Summary:        OpenStack Java Cinder Client

%description -n openstack-java-cinder-client
This package contains the %{summary}.


%package -n openstack-java-cinder-model
Summary:        OpenStack Java Cinder Model

%description -n openstack-java-cinder-model
This package contains the %{summary}.


%package -n openstack-java-keystone-client
Summary:        OpenStack Java Keystone Client

%description -n openstack-java-keystone-client
This package contains the %{summary}.


%package -n openstack-java-keystone-model
Summary:        OpenStack Java Keystone Model

%description -n openstack-java-keystone-model
This package contains the %{summary}.


%package -n openstack-java-nova-client
Summary:        OpenStack Java Nova Client

%description -n openstack-java-nova-client
This package contains the %{summary}.


%package -n openstack-java-nova-model
Summary:        OpenStack Java Nova Model

%description -n openstack-java-nova-model
This package contains the %{summary}.


%package -n openstack-java-quantum-client
Summary:        OpenStack Java Quantum Client

%description -n openstack-java-quantum-client
This package contains the %{summary}.


%package -n openstack-java-quantum-model
Summary:        OpenStack Java Quantum Model

%description -n openstack-java-quantum-model
This package contains the %{summary}.


%package -n openstack-java-swift-client
Summary:        OpenStack Java Swift Client

%description -n openstack-java-swift-client
This package contains the %{summary}.


%package -n openstack-java-swift-model
Summary:        OpenStack Java Swift Model

%description -n openstack-java-swift-model
This package contains the %{summary}.


%package -n openstack-java-heat-client
Summary:        OpenStack Java Heat Client

%description -n openstack-java-heat-client
This package contains the %{summary}.


%package -n openstack-java-heat-model
Summary:        OpenStack Java Heat Model

%description -n openstack-java-heat-model
This package contains the %{summary}.


%prep
%setup -q -n %{name}-%{name}-%{version}
%mvn_package ":{openstack-java-sdk,openstack-client-connectors}" __noinstall


%build
%mvn_build -s -- -P "!console,!examples,!jersey2,!jersey,resteasy" -DskipTests


%install
%mvn_install


%files -n openstack-java-javadoc -f .mfiles-javadoc
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-client -f .mfiles-openstack-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-resteasy-connector -f .mfiles-resteasy-connector
%doc LICENSE.txt README.textile

%files -n openstack-java-ceilometer-client -f .mfiles-ceilometer-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-ceilometer-model -f .mfiles-ceilometer-model
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-glance-client -f .mfiles-glance-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-glance-model -f .mfiles-glance-model
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-cinder-client -f .mfiles-cinder-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-cinder-model -f .mfiles-cinder-model
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-keystone-client -f .mfiles-keystone-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-keystone-model -f .mfiles-keystone-model
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-nova-client -f .mfiles-nova-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-nova-model -f .mfiles-nova-model
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-quantum-client -f .mfiles-quantum-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-quantum-model -f .mfiles-quantum-model
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-swift-client -f .mfiles-swift-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-swift-model -f .mfiles-swift-model
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-heat-client -f .mfiles-heat-client
%license LICENSE.txt
%doc README.textile

%files -n openstack-java-heat-model -f .mfiles-heat-model
%license LICENSE.txt
%doc README.textile


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15092 |21mr|opensubdiv-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################
# Hardcode PLF build
%bcond_with plf
######################

%if %{with plf}
# make EVR of plf build higher than regular to allow update, needed with rpm5 mkrel
%define extrarelsuffix plf
%endif

%define oname OpenSubdiv

%define sversion %(echo "%{version}" | sed -e "s/\\\./_/g")

%define major %{version}
%define libosdcpu %mklibname osdCPU %{major}
%define libosdgpu %mklibname osdGPU %{major}
%define devname %mklibname %{name} -d

Summary:	An open source subdivision surface library
Name:		opensubdiv
Version:	3.4.4
Release:	1%{?extrarelsuffix}
License:	Apache
Group:		System/Libraries
Url:		http://graphics.pixar.com/opensubdiv/
Source0:	https://github.com/PixarAnimationStudios/OpenSubdiv/archive/%{oname}-%{sversion}.tar.gz
Patch0:		OpenSubdiv-3_4_4-libdir.patch
Patch1:		opensubdiv-3.1.1-remove-version-string-quotes.patch
BuildRequires:	cmake
BuildRequires:	clew-devel
BuildRequires:	gomp-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xxf86vm)
%if %{with plf}
# CUDA is x86_64 only now
BuildRequires:	nvidia-cuda-toolkit-devel
ExclusiveArch:	x86_64
%endif

%description
OpenSubdiv is a set of open source libraries that implement high performance
subdivision surface (subdiv) evaluation on massively parallel CPU and GPU
architectures. This code path is optimized for drawing deforming surfaces
with static topology at interactive framerates.

#----------------------------------------------------------------------------

%package -n %{libosdcpu}
Summary:	An open source subdivision surface library
Group:		System/Libraries

%description -n %{libosdcpu}
OpenSubdiv is a set of open source libraries that implement high performance
subdivision surface (subdiv) evaluation on massively parallel CPU and GPU
architectures. This code path is optimized for drawing deforming surfaces
with static topology at interactive framerates.

%files -n %{libosdcpu}
%{_libdir}/libosdCPU.so.%{major}

#----------------------------------------------------------------------------

%package -n %{libosdgpu}
Summary:	An open source subdivision surface library
Group:		System/Libraries

%description -n %{libosdgpu}
OpenSubdiv is a set of open source libraries that implement high performance
subdivision surface (subdiv) evaluation on massively parallel CPU and GPU
architectures. This code path is optimized for drawing deforming surfaces
with static topology at interactive framerates.

%files -n %{libosdgpu}
%{_libdir}/libosdGPU.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for an open source subdivision surface library
Group:		Development/C
Requires:	%{libosdcpu} = %{EVRD}
Requires:	%{libosdgpu} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for an open source subdivision surface library.

%files -n %{devname}
%dir %{_includedir}/opensubdiv/
%{_includedir}/opensubdiv/*
%{_libdir}/libosdCPU.so
%{_libdir}/libosdGPU.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{sversion}
%patch0 -p1
%patch1 -p1

%build
%global optflags %{optflags} -D_FORCE_INLINES
%cmake \
	-DNO_DOC:BOOL=ON \
	-DNO_TUTORIALS:BOOL=ON
%make

%install
%makeinstall_std -C build

# Remove tests
rm -rf %{buildroot}%{_bindir}/*

# Don't ship static libraries
rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15093 |21mr|opentest4j-1.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           opentest4j
Version:        1.1.1
Release:        2
Summary:        Open Test Alliance for the JVM
License:        ASL 2.0
URL:            https://github.com/ota4j-team/opentest4j
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/ota4j-team/opentest4j/archive/r%{version}.tar.gz

Source100:      https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)

%description
Open Test Alliance for the JVM is a minimal common foundation for
testing libraries on the JVM.  The primary goal of the project is to
enable testing frameworks like JUnit, TestNG, Spock, etc. and
third-party assertion libraries like Hamcrest, AssertJ, etc. to use a
common set of exceptions that IDEs and build tools can support in a
consistent manner across all testing scenarios -- for example, for
consistent handling of failed assertions and failed assumptions as
well as visualization of test execution in IDEs and reports.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n opentest4j-r%{version}
find -name \*.jar -delete
cp -p %{SOURCE100} pom.xml

%pom_add_dep junit:junit:4.12:test

%pom_xpath_inject pom:project "
  <build>
    <pluginManagement>
      <plugins>
        <plugin>
          <artifactId>maven-jar-plugin</artifactId>
          <configuration>
            <archive>
              <manifestEntries>
                <Automatic-Module-Name>org.opentest4j</Automatic-Module-Name>
                <Implementation-Title>opentest4j</Implementation-Title>
                <Implementation-Vendor>opentest4j.org</Implementation-Vendor>
                <Implementation-Version>%{version}</Implementation-Version>
                <Specification-Title>opentest4j</Specification-Title>
                <Specification-Vendor>opentest4j.org</Specification-Vendor>
                <Specification-Version>%{version}</Specification-Version>
                <!-- OSGi metadata required by Eclipse -->
                <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
                <Bundle-SymbolicName>org.opentest4j</Bundle-SymbolicName>
                <Bundle-Version>%{version}</Bundle-Version>
                <Export-Package>org.opentest4j;version=\"%{version}\"</Export-Package>
              </manifestEntries>
            </archive>
          </configuration>
        </plugin>
      </plugins>
    </pluginManagement>
  </build>"

# Fix unused reference to unused dependency
# This is fixed upstream: https://github.com/ota4j-team/opentest4j/commit/70d3d54f2cd076a962e81d9510e6716f3cbf8060
sed -i -e '/org\.apache\.commons\.codec/d' src/test/java/org/opentest4j/AssertionFailedErrorTests.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README.md

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15094 |21mr|openvdb-9.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		9.1
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		openvdb
Version:	9.1.0
Release:	2
Summary:	C++ library for sparse volumetric data discretized on three-dimensional grids
License:	MPLv2.0
Group:		System/Libraries
Url:		http://www.openvdb.org/
Source0:	https://github.com/AcademySoftwareFoundation/openvdb/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:     openvdb-8.0.1-link-python.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	ninja
BuildRequires:	gcc-c++
BuildRequires:	ghostscript
BuildRequires:	boost-devel
BuildRequires:	python3dist(numpy)
BuildRequires:	pkgconfig(blosc)
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(glfw3)
BuildRequires:	pkgconfig(jemalloc)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(tbb)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)

%description
OpenVDB is an Academy Award-winning open-source C++ library comprising a novel
hierarchical data structure and a suite of tools for the efficient storage and
manipulation of sparse volumetric data discretized on three-dimensional grids.
It is developed and maintained by DreamWorks Animation for use in volumetric
applications typically encountered in feature film production.

This package contains some graphical tools.

%files
%doc LICENSE README.md CHANGES
%{_bindir}/vdb_print

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Core OpenVDB libraries
Group:		System/Libraries

%description -n	%{libname}
OpenVDB is an Academy Award-winning open-source C++ library comprising a novel
hierarchical data structure and a suite of tools for the efficient storage and
manipulation of sparse volumetric data discretized on three-dimensional grids.
It is developed and maintained by DreamWorks Animation for use in volumetric
applications typically encountered in feature film production.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}{,.*}

#------------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
The %{develname} package contains libraries and header files for developing
applications that use %{name}.

%files -n %{develname}
%{_includedir}/*
%{_libdir}/lib%{name}.so

#------------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	OpenVDB Python 3 module
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n	python3-%{name}
OpenVDB is an Academy Award-winning open-source C++ library comprising a novel
hierarchical data structure and a suite of tools for the efficient storage and
manipulation of sparse volumetric data discretized on three-dimensional grids.
It is developed and maintained by DreamWorks Animation for use in volumetric
applications typically encountered in feature film production.

This package contains the Python 3 module.

%files -n python3-%{name}
%{py3_platsitedir}/py%{name}.so

#------------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains documentation for developing applications that
use %{name}.

%files doc
%{_defaultdocdir}/OpenVDB

#------------------------------------------------------------------------------

%prep
%autosetup -p1

# Hardcoded paths for installation, as described in the INSTALL file
sed -i 's|lib$|%{_lib}|g' %{name}/%{name}/CMakeLists.txt %{name}/%{name}/python/CMakeLists.txt

%build
%cmake \
	-DCMAKE_NO_SYSTEM_FROM_IMPORTED=TRUE	\
	-DDISABLE_DEPENDENCY_VERSION_CHECKS=ON	\
	-DOPENVDB_BUILD_DOCS=ON			\
	-DOPENVDB_BUILD_PYTHON_MODULE=ON	\
	-DOPENVDB_BUILD_UNITTESTS=OFF		\
	-DOPENVDB_ENABLE_RPATH=OFF		\
	-DOPENVDB_INSTALL_CMAKE_MODULES=OFF	\
	-DPYOPENVDB_INSTALL_DIRECTORY=%{py3_platsitedir} \
	-G Ninja
%ninja_build

%install
%ninja_install -C build
# remove static lib
rm %{buildroot}%{_libdir}/lib%{name}.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15095 |21mr|open-vm-tools-12.1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#global	_disable_ld_no_undefined 1

%define	major 0
%define	libdeploypkg %mklibname deploypkg %{major}
%define	libguestlib %mklibname guestlib %{major}
%define	libhgfs %mklibname hgfs %{major}
%define	libvgauth %mklibname vgauth %{major}
%define	libvmtools %mklibname vmtools %{major}
%define	devname %mklibname %{name} -d

Summary:	Open Virtual Machine Tools
Name:		open-vm-tools
Version:	12.1.5
Release:	2
License:	LGPLv2.1+
Group:		Emulators
Url:		https://github.com/vmware/open-vm-tools
Source0:	https://github.com/vmware/open-vm-tools/archive/%{name}-stable-%{version}.tar.gz
# See, eg: https://bugzilla.redhat.com/show_bug.cgi?id=957135
Source1:	vmtoolsd.service
Source2:	vgauthd.service
Source3:	80-%{name}.preset
# See: https://kb.vmware.com/s/article/74650
Source4:	mnt-hgfs.mount
Source5:	%{name}.conf
Source100:	%{name}.rpmlintrc
Patch1:		open-vm-tools-stable-11.2.5-drop-not-declared.patch
BuildRequires:	doxygen
BuildRequires:	gcc-c++
BuildRequires:	dnet-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(fuse3) >= 3.10.0
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0) >= 2.21
BuildRequires:	pkgconfig(glib-2.0) >= 2.34.0
BuildRequires:	pkgconfig(grpc++) >= 1.3.2
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(icu-i18n) >= 3.8
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libmspack)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libprocps)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libunwind)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl) >= 1.0.1
BuildRequires:	pkgconfig(protobuf) >= 3.0.0
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmlsec1)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtst)
Requires:	systemd-units
Requires(post,preun,postun):	systemd

%description
Open Virtual Machine Tools (aka %{name}) are the open source
implementation of VMware Tools, a set of guest operating system virtualization
components that enhance performance and user experience of virtual machines.
As virtualization technology rapidly becomes mainstream, each virtualization
solution provider implements their own set of tools and utilities to
supplement the guest virtual machine. However, most of the implementations are
proprietary and are tied to a specific virtualization platform. With the Open
Virtual Machine Tools project, we are hoping to solve this and other related
problems.
The tools are currently composed of kernel modules for Linux and user-space
programs for all VMware supported Unix-like guest operating systems. They
provide several useful functions like:
* File transfer between a host and guest.
* Improved memory management and network performance under virtualization.
* General mechanisms and protocols for communication between host and guests
 and from guest to guest.

%files
%doc AUTHORS COPYING ChangeLog NEWS ../ReleaseNotes.md ../README.md
%config(noreplace) %{_sysconfdir}/pam.d/*
%{_sysconfdir}/modules-load.d/%{name}.conf
%{_sysconfdir}/vmware-tools/
%{_unitdir}/vmtoolsd.service
%{_unitdir}/vgauthd.service
%{_unitdir}/mnt-hgfs.mount
%{_sysconfdir}/systemd/80-%{name}.preset
%{_udevrulesdir}/99-vmware-scsi-udev.rules
%{_bindir}/VGAuthService
%{_bindir}/vm-support
%{_bindir}/vmhgfs-fuse
%{_bindir}/vmtoolsd
%{_bindir}/vmware-alias-import
%{_bindir}/vmware-checkvm
%{_bindir}/vmware-hgfsclient
%{_bindir}/vmware-namespace-cmd
%{_bindir}/vmware-rpctool
%{_bindir}/vmware-toolbox-cmd
%{_bindir}/vmware-user
%{_bindir}/vmware-user-suid-wrapper
%{_bindir}/vmware-vgauth-cmd
%{_bindir}/vmware-vgauth-smoketest
%{_bindir}/vmware-xferlogs
%{_bindir}/vmwgfxctrl
%dir %{_libdir}/%{name}/
%dir %{_libdir}/%{name}/plugins
%dir %{_libdir}/%{name}/plugins/common
%dir %{_libdir}/%{name}/plugins/vmsvc
%{_libdir}/%{name}/plugins/common/*.so
%{_libdir}/%{name}/plugins/vmsvc/*.so
%{_datadir}/%{name}/


%post
# Enable all services
%systemd_post vgauthd.service
%systemd_post vmtoolsd.service


%preun
%systemd_preun vmtoolsd.service
%systemd_preun vgauthd.service

# Tell VMware that open-vm-tools is being uninstalled
if [ "$1" = "0" ] && [ -x %{_bindir}/vmware-checkvm ] && [ -x %{_bindir}/vmware-rpctool ] && \
	%{_bindir}/vmware-checkvm 2>/dev/null &>/dev/null; then
		%{_bindir}/vmware-rpctool 'tools.set.version 0' 2>/dev/null &>/dev/null || /bin/true
		
# Teardown mount point for Shared Folders
		if [ -d /mnt/hgfs ] && %{_bindir}/vmware-checkvm -p | grep -q Workstation; then
		umount /mnt/hgfs &>/dev/null || /bin/true
		rmdir /mnt/hgfs &>/dev/null || /bin/true
		fi
fi


%postun
# ATM those macros do nothing
#systemd_user_postun vmtoolsd.service
#systemd_user_postun vgauthd.service

# Cleanup GuestProxy certs
if [ "$1" = "0" ]; then
	rm -rf %{_sysconfdir}/vmware-tools/GuestProxyData &> /dev/null || /bin/true
fi

#----------------------------------------------------------------------------

%package -n %{libdeploypkg}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libdeploypkg}
Shared library for %{name}.

%files -n %{libdeploypkg}
%doc COPYING
%{_libdir}/libDeployPkg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libguestlib}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	open-vm-tools < 9.4.6-3

%description -n %{libguestlib}
Shared library for %{name}.

%files -n %{libguestlib}
%doc COPYING
%{_libdir}/libguestlib.so.%{major}*
%{_libdir}/libguestStoreClient.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libhgfs}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:		open-vm-tools < 9.4.6-3

%description -n %{libhgfs}
Shared library for %{name}.

%files -n %{libhgfs}
%doc COPYING
%{_libdir}/libhgfs.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libvgauth}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libvgauth}
Shared library for %{name}.

%files -n %{libvgauth}
%doc COPYING
%{_libdir}/libvgauth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libvmtools}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	open-vm-tools < 9.4.6-3

%description -n %{libvmtools}
Shared library for %{name}.

%files -n %{libvmtools}
%doc COPYING
%{_libdir}/libvmtools.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Open Virtual Machine Tools development files
Group:		Development/Other
Requires:	%{libdeploypkg} = %{EVRD}
Requires:	%{libguestlib} = %{EVRD}
Requires:	%{libhgfs} = %{EVRD}
Requires:	%{libvgauth} = %{EVRD}
Requires:	%{libvmtools} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}
Conflicts:		%{name}-devel < 9.4.6-3
Obsoletes:	%{name}-devel < 9.4.6-3

%description -n %{devname}
Open Virtual Machine Tools development files.

%files -n %{devname}
%doc docs/api/build/*
%{_defaultdocdir}/%{name}/api/html
%{_includedir}/libDeployPkg/*
%{_includedir}/vmGuestLib/*
%{_libdir}/libDeployPkg.so
%{_libdir}/libhgfs.so
%{_libdir}/libguestlib.so
%{_libdir}/libguestStoreClient.so
%{_libdir}/libvgauth.so
%{_libdir}/libvmtools.so
%{_libdir}/pkgconfig/libDeployPkg.pc
%{_libdir}/pkgconfig/vmguestlib.pc

#----------------------------------------------------------------------------

%package desktop
Summary:	User experience components for Open Virtual Machine Tools
Group:		Emulators
Requires:	%{name} = %{EVRD}

%description desktop
This package contains only the user-space programs of %{name} that are
essential for improved user experience of VMware virtual machines.

%files desktop
%doc COPYING
%{_sysconfdir}/xdg/autostart/*.desktop
%{_bindir}/vmware-vmblock-fuse
%{_libdir}/%{name}/plugins/vmusr/

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-stable-%{version}/%{name}
%patch1 -p2

# Remove "Encoding" key from the "Desktop Entry"
sed -e "s|^Encoding.*$||g" -i ./vmware-user-suid-wrapper/vmware-user.desktop.in


%build
autoreconf -vfi
%configure \
	--disable-static \
	--without-kernel-modules \
	--without-root-privileges \
	--disable-tests \
	--enable-vmwgfxctrl \
	--enable-xmlsec1 \
	--with-udev-rules-dir=%{_udevrulesdir} \
	--with-dnet \
	--with-fuse=3 \
	--with-gtk3 \
	--without-gtk2

sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool

%make


%install
%makeinstall_std

# Install our systemd unit files
install -p -m644 %{SOURCE1} -D %{buildroot}%{_unitdir}/vmtoolsd.service
install -p -m644 %{SOURCE2} -D %{buildroot}%{_unitdir}/vgauthd.service
install -p -m644 %{SOURCE4} -D %{buildroot}%{_unitdir}/mnt-hgfs.mount
install -p -m644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/systemd/80-%{name}.preset
install -p -m644 %{SOURCE5} -D %{buildroot}%{_sysconfdir}/modules-load.d/%{name}.conf

# Fix perms
chmod 0644 %{buildroot}%{_sysconfdir}/pam.d/*
chmod 0644 %{buildroot}%{_sysconfdir}/vmware-tools/tools.conf.example
chmod 0644 %{buildroot}%{_sysconfdir}/vmware-tools/vgauth/schemas/*
chmod 0644 %{buildroot}%{_udevrulesdir}/99-vmware-scsi-udev.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15096 |21mr|openvpn-2.5.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# EasyRSA v3 and v2 are not compatible, ship both
%define	easy_rsa_version 3.1.1
%define	easy_rsa2_version 2.2.2
%define	plugindir %{_libdir}/%{name}/plugins

# Distro-specific default value is defined in branding-configs package
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	A Secure TCP/UDP Tunneling Daemon
Name:		openvpn
Version:	2.5.8
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://openvpn.net/
Source0:	https://github.com/OpenVPN/openvpn/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source3:	dhcp.sh
Source5:	%{name}@.service
Source6:	%{name}.target
Source7:	https://github.com/OpenVPN/easy-rsa/releases/download/v%{easy_rsa_version}/EasyRSA-%{easy_rsa_version}.tgz
Source8:	https://github.com/OpenVPN/easy-rsa/releases/download/%{easy_rsa2_version}/EasyRSA-%{easy_rsa2_version}.tgz
Source9:	sysusers.openvpn.conf
# From https://src.fedoraproject.org/rpms/openvpn/blob/master/f/.rpmlint
Source10:	openvpn.rpmlintrc
Patch0001:	0001-ROSA-openvpn-target.patch
Patch0002:	0002-ROSA-openvpn-group-compat-with-openvpn-.service.patch
BuildRequires:	python3-docutils
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libpkcs11-helper-1)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(lzo2)
# LibreSSL allows to support GOST R 34.12 89-2012 (no 2015, 2018 in LibreSSL)
# see openvpn --show-tls | grep -i gost, openvpn --show-ciphers | grep -i gost
# There are patches for OpenSSL with dlopen() engine libgost.so:
# https://sourceforge.net/p/openvpn/mailman/openvpn-devel/thread/1345106302-22850-8-git-send-email-heiko.hund%40sophos.com/
# and in ALT Linux openvpn-gostcrypto is based on them + some additional enhancements.
# Related commits from http://git.altlinux.org/gears/o/openvpn-gostcrypto.git :
# 8a43518ee6855fe13de2bc5b972f3c6f0338829b
# 3eb42f8898e8b1e094bf69f00071744961881466
# 37bf7b332e6bca7bef62ac8fe4a1be4e03125afb
# 691e763b2b4bea8fe1a0f16facbb8b1e572b6a79
# 99e47f04f0b2f8096d4516528bfb0ecd58719170
# d1efccba2a716fb3a43c34817e97852db98d4fcb
# a28af98fe2f05a932b1758e5d995ad17fbe8ef0c
# b56fe00e9a869c86658d40c4f28ecba7e44b41ef
# 029b808c57eef9bf8710343a8232854bb270f617
# 7ae6fca672967589220009327c1d722749b4cf58
# d1c4c3821cfc5f9c2689eacc3b1c8721494285ae
# b5914a9f9b1311a01154bd4f33be19092ff270e9
# 9e190c0d6c1ce67c24268eae9ac33efeb8897905
# 67dec70779335422ef3338bb6e9b3cc39f307fbf
# Not compilable with LibreSSL port of them to upstream OpenVPN 2.4.8 is here:
# https://github.com/mikhailnov/openvpn/tree/rosa-2.4.8-gost-prototype
# I did not port patches to load OpenSSL engines (see link to sourceforge.net)
# and did not port renaming of HMAC to MAC.
# ROSA's OpenSSL 1.0 does not have a full implementation of GOST R 34.12-2015.
BuildRequires:	pkgconfig(openssl)
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
# to get path to netstat
BuildRequires:	net-tools

%description
OpenVPN is a robust and highly flexible tunneling application that  uses
all of the encryption, authentication, and certification features of the
OpenSSL library to securely tunnel IP networks over a single UDP port.

%files
%doc AUTHORS ChangeLog COPYING PORTS README distro/systemd/README.systemd
%doc src/plugins/*/README.*
%{_unitdir}/%{name}@.service
%{_unitdir}/%{name}-client@.service
%{_unitdir}/%{name}-server@.service
%{_unitdir}/%{name}.target
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf
%{_sbindir}/%{name}
%{_bindir}/easyrsa
%{_mandir}/man5/openvpn-examples.5*
%{_mandir}/man8/%{name}.8*
%{_datadir}/%{name}
%dir %{plugindir}
%{plugindir}/*.so
# attrs are based on Fedora spec
%config(noreplace) %dir %{_sysconfdir}/%{name}/
%config(noreplace) %dir %attr(-,-,openvpn) %{_sysconfdir}/%{name}/client
%config(noreplace) %dir %attr(-,-,openvpn) %{_sysconfdir}/%{name}/server
%attr(0770,openvpn,openvpn) /var/lib/openvpn
%{_docdir}/%{name}/COPYRIGHT.GPL
%{_docdir}/%{name}/Changes.rst
%{_docdir}/%{name}/README.IPv6
%{_docdir}/%{name}/README.mbedtls
%{_docdir}/%{name}/management-notes.txt
%{_docdir}/%{name}/gui-notes.txt
%{_docdir}/%{name}/openvpn-examples.5.html
%{_docdir}/%{name}/openvpn.8.html


%pre
%sysusers_create_package %{name} %{SOURCE9}

%post
%tmpfiles_create %{name}
msg="Before openvpn package v2.4.8 there was a mess of root:root and root:openvpn,
migrating to root:openvpn"
f="/etc/openvpn/.user-auto-migration"
if [ ! -f "$f" ]; then
  ( set +x
    chown -R root:openvpn /etc/openvpn/ /var/lib/openvpn/
  )
  echo "$msg" | tee "$f"
fi
#----------------------------------------------------------------------------

%package devel
Summary:	Development headers for OpenVPN plugins
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Headers files for OpenVPN plugins.

%files devel
%doc COPYING
%{_includedir}/openvpn-msg.h
%{_includedir}/openvpn-plugin.h

#----------------------------------------------------------------------------

%prep
%setup -q -a 7 -a 8
%apply_patches

# Doc items shouldn't be executable.
find contrib sample -type f -perm /100 -exec chmod a-x {} \;

# Fix plugin dir in man8
sed -i -e 's,%{_datadir}/openvpn/plugin,%{_libdir}/openvpn/plugin,' doc/openvpn.8.rst

grep -Irl 'user nobody' sample/sample-config-files  | xargs sed -i -e 's,user nobody,user openvpn,g'
grep -Irl 'group nobody' sample/sample-config-files | xargs sed -i -e 's,group nobody,group openvpn,g'

%build
set -u # fail on undefined variables
# AC_PATH_PROGS from configure.ac
export SYSTEMD_UNIT_DIR=%{_unitdir}
export TMPFILES_DIR=%{_tmpfilesdir}
# /sbin/ may be not in $PATH, https://bugzilla.rosalinux.ru/show_bug.cgi?id=9918
export ROUTE=/sbin/route
export IPROUTE=/sbin/ip
export IFCONFIG=/sbin/ifconfig
# upstream thinks it is in sbin, ROSA ships it in /bin/ (why?!)
export NETSTAT="$(which netstat)"
autoreconf -vfi
%serverbuild
%configure \
  --enable-systemd \
  --enable-iproute2 \
  --with-crypto-library=openssl \
  --enable-pkcs11 \
%if %{with selinux}
  --enable-selinux \
%endif
  --

%make

# Build some plugins...
%make -C src/plugins/down-root
%make -C src/plugins/auth-pam

%install
%makeinstall_std

# Needed dirs...
# Sysconfig
install -d %{buildroot}%{_sysconfdir}/%{name}/{client,server}
# Var
install -d %{buildroot}%{_localstatedir}/lib/%{name}
# Share
mkdir -p %{buildroot}%{_datadir}/%{name}
# Plugin dir
mkdir -p %{buildroot}%{plugindir}

# (cg) NB The sample config file is needed for drakvpn
cp -pr sample/sample-{config-file,key,script}s %{buildroot}%{_datadir}/%{name}

# (cg) Nuke old sysvinit script...
rm -f %{buildroot}%{_datadir}/%{name}/sample-scripts/%{name}.init
# (cg, mikhailnov) ...add our systemd units in addition to upstream ones
install -D -m 644 %{SOURCE5} %{buildroot}%{_unitdir}/%{name}@.service
install -D -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/%{name}.target
install -D -m 644 %{SOURCE9} %{buildroot}%{_sysusersdir}/%{name}.conf

# Add a little helper script
install -m755 %{SOURCE3} %{buildroot}%{_datadir}/%{name}

# EasyRSA
mkdir -p %{buildroot}%{_datadir}/%{name}/easy-rsa/
mkdir -p %{buildroot}%{_bindir}/easyrsa
cp -rv EasyRSA-%{easy_rsa2_version}/* %{buildroot}%{_datadir}/%{name}/easy-rsa/
# TODO:
# - patch easyrsa for default value of $EASYRSA_PKI
# - ship default var.example->var etc. in that directory
install -m0755 EasyRSA-%{easy_rsa_version}/easyrsa %{buildroot}%{_bindir}/easyrsa


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15097 |21mr|openvswitch-2.17.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.17
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define libvtep %mklibname vtep %{api} %{major}
%define libofproto %mklibname ofproto %{api} %{major}
%define libovsdb %mklibname ovsdb %{api} %{major}
%define libsflow %mklibname sflow %{api} %{major}
%define devname %mklibname -d %{name} %{api}


# If wants to run tests while building, specify the '--with check'
# option. For example:
# rpmbuild -bb --with check openvswitch.spec
%global _disable_ld_no_undefined %nil

# Enable PIE, bz#955181
%global _hardened_build 1

# To disable DPDK support, specify '--without dpdk' when building
%bcond_with dpdk

# test-suite is broken for big endians
# https://bugzilla.redhat.com/show_bug.cgi?id=1105458#c10
# "ofproto-dpif - select group with dp_hash selection method" test is broken on armv7lh
# FIXME often tests fails on non-x86_64 architectures due to timing problems
# need root
%bcond_with check
# option to build with libcap-ng, needed for running OVS as regular user
%bcond_without libcapng
# option to build openvswitch-ovn-docker package
%bcond_with ovn_docker

Name:		openvswitch
Version:	2.17.11
Release:	1
Summary:	Open vSwitch daemon/database/utilities
Group:		Networking/Other
# Nearly all of openvswitch is ASL 2.0.  The bugtool is LGPLv2+, and the
# lib/sflow*.[ch] files are SISSL
# datapath/ is GPLv2 (although not built into any of the binary packages)
License:	ASL 2.0 and LGPLv2+ and SISSL
URL:		http://www.openvswitch.org/
# NOTE: DPDK does not currently build for s390x
%define dpdkarches aarch64 i686 ppc64le %{x86_64}
Source0:	http://openvswitch.org/releases/%{name}-%{version}.tar.gz
Source10:	openvswitch.sysusers.conf
# some files now in /bin
Patch0:		openvswitch-bin-path.patch
# CVE-2022-4337 CVE-2022-4338 fixed in 2.17.8 release
# CVE-2023-5366 fixed in 2.17.11
BuildRequires:	systemd-units
BuildRequires:	openssl-devel
BuildRequires:	python3-devel
BuildRequires:	python3-six
BuildRequires:	python3-setuptools
BuildRequires:	desktop-file-utils
BuildRequires:	groff-base
BuildRequires:	graphviz
BuildRequires:	unbound-devel
# make check dependencies
BuildRequires:	procps-ng
BuildRequires:	python3-pyOpenSSL
# mans
BuildRequires:	python3-sphinx

%if %{with libcapng}
BuildRequires:	libcap-ng-devel
%endif

%if %{with dpdk}
%ifarch %{dpdkarches}
BuildRequires:	dpdk-devel
BuildRequires:	libpcap-devel
BuildRequires:	numactl-devel
# Currently DPDK on Extras/AppStream includes the mlx{4,5} glue libraries, so
# libibverbs is needed to run the tests (make check).
%endif
%endif

Requires:	openssl
Requires:	iproute
Requires:	module-init-tools

Requires(pre):	/bin/systemd-sysusers
Requires(preun): systemd-units
Requires(postun): systemd-units

%description
Open vSwitch provides standard network bridging functions and
support for the OpenFlow protocol for remote per-flow control of
traffic.

%files
%defattr(-,openvswitch,openvswitch)
%dir %{_sysconfdir}/openvswitch
%{_sysconfdir}/openvswitch/default.conf
%config %ghost %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/conf.db
%ghost %attr(0600,-,-) %verify(not owner group md5 size mtime) %{_sysconfdir}/openvswitch/.conf.db.~lock~
%config %ghost %{_sysconfdir}/openvswitch/system-id.conf
%defattr(-,root,root)
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/sysconfig/openvswitch
%{_sysconfdir}/bash_completion.d/ovs-appctl-bashcomp.bash
%{_sysconfdir}/bash_completion.d/ovs-vsctl-bashcomp.bash
%config(noreplace) %{_sysconfdir}/logrotate.d/openvswitch
%{_unitdir}/openvswitch.service
%{_unitdir}/ovsdb-server.service
%{_unitdir}/ovs-vswitchd.service
%{_unitdir}/ovs-delete-transient-ports.service
%{_datadir}/openvswitch/scripts/openvswitch.init
%{_datadir}/openvswitch/scripts/ovs-check-dead-ifs
%{_datadir}/openvswitch/scripts/ovs-lib
%{_datadir}/openvswitch/scripts/ovs-save
%{_datadir}/openvswitch/scripts/ovs-vtep
%{_datadir}/openvswitch/scripts/ovs-ctl
%{_datadir}/openvswitch/scripts/ovs-kmod-ctl
%{_datadir}/openvswitch/scripts/ovs-systemd-reload
%{_datadir}/openvswitch/local-config.ovsschema
%config %{_datadir}/openvswitch/vswitch.ovsschema
%config %{_datadir}/openvswitch/vtep.ovsschema
%{_bindir}/ovs-appctl
%{_bindir}/ovs-dpctl
%{_bindir}/ovs-ofctl
%{_bindir}/ovs-vsctl
%{_bindir}/ovsdb-client
%{_bindir}/ovsdb-tool
%{_bindir}/ovs-pki
%{_bindir}/vtep-ctl
%{_sbindir}/ovs-vswitchd
%{_sbindir}/ovsdb-server
%{_mandir}/man1/ovsdb-client.1*
%{_mandir}/man1/ovsdb-server.1*
%{_mandir}/man1/ovsdb-tool.1*
%{_mandir}/man5/ovsdb.5*
%{_mandir}/man5/ovsdb-server.5.*
%{_mandir}/man5/ovs-vswitchd.conf.db.5*
%{_mandir}/man5/vtep.5*
%{_mandir}/man5/ovsdb.local-config.5*
%{_mandir}/man7/ovsdb-server.7*
%{_mandir}/man7/ovsdb.7*
%{_mandir}/man7/ovs-fields.7*
%{_mandir}/man8/vtep-ctl.8*
%{_mandir}/man8/ovs-appctl.8*
%{_mandir}/man8/ovs-ctl.8*
%{_mandir}/man8/ovs-dpctl.8*
%{_mandir}/man8/ovs-kmod-ctl.8.*
%{_mandir}/man8/ovs-ofctl.8*
%{_mandir}/man8/ovs-pki.8*
%{_mandir}/man8/ovs-vsctl.8*
%{_mandir}/man8/ovs-vswitchd.8*
%{_mandir}/man8/ovs-parse-backtrace.8*
%{_udevrulesdir}/91-vfio.rules
%doc LICENSE NOTICE README.rst NEWS rhel/README.RHEL.rst
/var/lib/openvswitch
%attr(750,openvswitch,openvswitch) /var/log/openvswitch
%ghost %attr(755,root,root) %verify(not owner group) %{_rundir}/openvswitch
%exclude %{_mandir}/man8/ovs-dpctl-top.8*
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
%{_sysusersdir}/openvswitch.conf

%pre
# create users and groups
%sysusers_create_package openvswitch %{SOURCE10}

%post
if [ $1 -eq 1 ]; then
    sed -i 's:^#OVS_USER_ID=:OVS_USER_ID=:' /etc/sysconfig/openvswitch

    sed -i \
        's@OVS_USER_ID="openvswitch:openvswitch"@OVS_USER_ID="openvswitch:hugetlbfs"@'\
        /etc/sysconfig/openvswitch
fi
chown -R openvswitch:openvswitch /etc/openvswitch

%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#-------------------------------------------------------------------
%package -n python3-openvswitch
Summary: Open vSwitch python3 bindings
License: ASL 2.0
Requires: python3-six
Requires: %{libname}

%description -n python3-openvswitch
Python bindings for the Open vSwitch database

%files -n python3-openvswitch
%{python3_sitearch}/ovs
%{python3_sitearch}/ovs-*.egg-info
%doc LICENSE

#-------------------------------------------------------------------

%package test
Summary: Open vSwitch testing utilities
License: ASL 2.0
BuildArch: noarch
Requires: python3-openvswitch = %{EVRD}

%description test
Utilities that are useful to diagnose performance and connectivity
issues in Open vSwitch setup.

%files test
%{_bindir}/ovs-pcap
%{_bindir}/ovs-tcpdump
%{_bindir}/ovs-tcpundump
%{_mandir}/man1/ovs-pcap.1*
%{_mandir}/man8/ovs-tcpdump.8*
%{_mandir}/man1/ovs-tcpundump.1*
%exclude %{_mandir}/man8/ovs-test.8*
%exclude %{_mandir}/man8/ovs-vlan-test.8*
%exclude %{_mandir}/man8/ovs-l3ping.8*
%{python3_sitelib}/ovstest

#-------------------------------------------------------------------

%package -n %{libname}
Summary:	Open vSwitch OpenFlow libs
Group:		System/Libraries
Requires:	%{libvtep} = %{EVRD}
Requires:	%{libsflow} = %{EVRD}
Requires:	%{libovsdb} = %{EVRD}
Requires:	%{libofproto} = %{EVRD}

%description -n %{libname}
Open vSwitch OpenFlow libs.

%files -n %{libname}
%{_libdir}/libopenvswitch-%{api}.so.%{major}*

#-------------------------------------------------------------------

%package -n	%{libvtep}
Summary:	Open vSwitch OpenFlow libs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libvtep}
Open vSwitch OpenFlow libs.

%files -n %{libvtep}
%{_libdir}/libvtep-%{api}.so.%{major}*

#-------------------------------------------------------------------

%package -n	%{libsflow}
Summary:	Open vSwitch OpenFlow libs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libsflow}
Open vSwitch OpenFlow libs.

%files -n %{libsflow}
%{_libdir}/libsflow-%{api}.so.%{major}*

#-------------------------------------------------------------------

%package -n	%{libovsdb}
Summary:	Open vSwitch OpenFlow libs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libovsdb}
Open vSwitch OpenFlow libs.

%files -n %{libovsdb}
%{_libdir}/libovsdb-%{api}.so.%{major}*

#-------------------------------------------------------------------

%package -n	%{libofproto}
Summary:	Open vSwitch OpenFlow libs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libofproto}
Open vSwitch OpenFlow libs.

%files -n %{libofproto}
%{_libdir}/libofproto-%{api}.so.%{major}*


#-------------------------------------------------------------------

%package -n %{devname}
Summary: Open vSwitch OpenFlow development package (library, headers)
License: ASL 2.0
Provides: %{name}-devel = %{EVRD}
Requires: %{libname} = %{EVRD}

%description -n %{devname}
This provides shared library, libopenswitch.so and the openvswitch header
files needed to build an external application.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/openvswitch/*
%{_includedir}/openflow/*
%optional %{_libdir}/libopenvswitchavx512.a

#-------------------------------------------------------------------

%package -n network-scripts-%{name}
Summary: Open vSwitch legacy network service support
License: ASL 2.0
Requires: initscripts

%description -n network-scripts-%{name}
This provides the ifup and ifdown scripts for use with the legacy network
service.

%files -n network-scripts-%{name}
%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs

#-------------------------------------------------------------------

%package ovn-common
Summary: Open vSwitch - Open Virtual Network support
License: ASL 2.0
Requires: openvswitch

%description ovn-common
Utilities that are use to diagnose and manage the OVN components.

%files ovn-common
%{_bindir}/ovs-dpctl-top
%{_bindir}/ovs-l3ping
%{_bindir}/ovs-test
%{_bindir}/ovs-vlan-test
%{_sbindir}/ovs-bugtool
%{_mandir}/man7/ovs-actions.7.*
%{_mandir}/man8/ovs-bugtool.8.*
%{_prefix}/lib/ocf/resource.d/ovn/ovndb-servers
%{_datadir}/%{name}/bugtool-plugins/kernel-info/openvswitch.xml
%{_datadir}/%{name}/bugtool-plugins/network-status/openvswitch.xml
%{_datadir}/%{name}/bugtool-plugins/system-configuration.xml
%{_datadir}/%{name}/bugtool-plugins/system-configuration/openvswitch.xml
%{_datadir}/%{name}/bugtool-plugins/system-logs/openvswitch.xml
%{_datadir}/%{name}/scripts/ovs-bugtool-daemons-ver
%{_datadir}/%{name}/scripts/ovs-bugtool-fdb-show
%{_datadir}/%{name}/scripts/ovs-bugtool-get-dpdk-nic-numa
%{_datadir}/%{name}/scripts/ovs-bugtool-get-port-stats
%{_datadir}/%{name}/scripts/ovs-bugtool-ovs-appctl-dpif
%{_datadir}/%{name}/scripts/ovs-bugtool-ovs-bridge-datapath-type
%{_datadir}/%{name}/scripts/ovs-bugtool-ovs-ofctl-loop-over-bridges
%{_datadir}/%{name}/scripts/ovs-bugtool-ovs-vswitchd-threads-affinity
%{_datadir}/%{name}/scripts/ovs-bugtool-qos-configs
%{_datadir}/%{name}/scripts/ovs-bugtool-tc-class-show
%{_datadir}/%{name}/scripts/ovs-monitor-ipsec

#-------------------------------------------------------------------

%if %{with ovn_docker}
%package ovn-docker
Summary: Open vSwitch - Open Virtual Network support
License: ASL 2.0
Requires: openvswitch openvswitch-ovn-common python3-openvswitch

%description ovn-docker
Docker network plugins for OVN.

%files ovn-docker
%{_bindir}/ovn-docker-overlay-driver
%{_bindir}/ovn-docker-underlay-driver
%endif
#-------------------------------------------------------------------

%prep
%autosetup -p1

%build
./boot.sh

%configure \
%if %{with libcapng}
        --enable-libcapng \
%else
        --disable-libcapng \
%endif
        --disable-static \
        --enable-shared \
        --enable-ssl \
%if %{with dpdk}
%ifarch %{dpdkarches}
  --with-dpdk \
%endif
%endif
  --with-pkidir=%{_sharedstatedir}/openvswitch/pki

%{__python3} build-aux/dpdkstrip.py \
        --dpdk \
        < rhel/usr_lib_systemd_system_ovs-vswitchd.service.in \
        > rhel/usr_lib_systemd_system_ovs-vswitchd.service

make %{?_smp_mflags}

%install
%make_install

install -d -m 0755 %{buildroot}%{_rundir}/openvswitch
install -d -m 0750 %{buildroot}%{_localstatedir}/log/openvswitch
install -d -m 0755 %{buildroot}%{_sysconfdir}/openvswitch

install -p -D -m 0644 rhel/usr_lib_udev_rules.d_91-vfio.rules \
        %{buildroot}%{_udevrulesdir}/91-vfio.rules

install -p -D -m 0644 \
        rhel/usr_share_openvswitch_scripts_systemd_sysconfig.template \
        %{buildroot}/%{_sysconfdir}/sysconfig/openvswitch

for service in openvswitch ovsdb-server ovs-vswitchd ovs-delete-transient-ports; do
        install -p -D -m 0644 \
                        rhel/usr_lib_systemd_system_${service}.service \
                        %{buildroot}%{_unitdir}/${service}.service
done

install -m 0755 rhel/etc_init.d_openvswitch \
        %{buildroot}%{_datadir}/openvswitch/scripts/openvswitch.init

install -p -D -m 0644 rhel/etc_openvswitch_default.conf \
        %{buildroot}/%{_sysconfdir}/openvswitch/default.conf

install -p -D -m 0644 rhel/etc_logrotate.d_openvswitch \
        %{buildroot}/%{_sysconfdir}/logrotate.d/openvswitch

install -m 0644 vswitchd/vswitch.ovsschema \
        %{buildroot}/%{_datadir}/openvswitch/vswitch.ovsschema

install -d -m 0755 %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifdown-ovs \
        %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifdown-ovs
install -p -m 0755 rhel/etc_sysconfig_network-scripts_ifup-ovs \
        %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifup-ovs

install -d -m 0755 %{buildroot}%{python3_sitelib}
cp -a %{buildroot}/%{_datadir}/openvswitch/python/ovstest \
        %{buildroot}%{python3_sitelib}

# Build the JSON C extension for the Python lib (#1417738)
pushd python
(
export CPPFLAGS="-I ../include"
export LDFLAGS="%{ldflags} -L %{buildroot}%{_libdir}"
%py3_build
%py3_install
)
popd

rm -rf %{buildroot}/%{_datadir}/openvswitch/python/

install -d -m 0755 %{buildroot}/%{_sharedstatedir}/openvswitch

install -d -m 0755 %{buildroot}%{_prefix}/lib/firewalld/services/

install -d -m 0755 %{buildroot}%{_prefix}/lib/ocf/resource.d/ovn
ln -s %{_datadir}/openvswitch/scripts/ovndb-servers.ocf \
      %{buildroot}%{_prefix}/lib/ocf/resource.d/ovn/ovndb-servers

install -p -D -m 0755 \
        rhel/usr_share_openvswitch_scripts_ovs-systemd-reload \
        %{buildroot}%{_datadir}/openvswitch/scripts/ovs-systemd-reload

touch %{buildroot}%{_sysconfdir}/openvswitch/conf.db
touch %{buildroot}%{_sysconfdir}/openvswitch/system-id.conf

# remove unpackaged files
rm -f %{buildroot}/%{_bindir}/ovs-benchmark \
        %{buildroot}/%{_bindir}/ovs-docker \
        %{buildroot}/%{_bindir}/ovs-parse-backtrace \
        %{buildroot}/%{_bindir}/ovs-testcontroller \
        %{buildroot}/%{_sbindir}/ovs-vlan-bug-workaround \
        %{buildroot}/%{_mandir}/man1/ovs-benchmark.1* \
        %{buildroot}/%{_mandir}/man8/ovs-testcontroller.* \
        %{buildroot}/%{_mandir}/man8/ovs-vlan-bug-workaround.8*

%if %{without ovn_docker}
rm -f %{buildroot}/%{_bindir}/ovn-docker-overlay-driver \
        %{buildroot}/%{_bindir}/ovn-docker-underlay-driver
%endif

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/openvswitch.conf

%check
%if %{with check}
    if make check TESTSUITEFLAGS='%{_smp_mflags}' ||
       make check TESTSUITEFLAGS='--recheck' ||
       make check TESTSUITEFLAGS='--recheck'; then :;
    else
        cat tests/testsuite.log
        exit 1
    fi
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15098 |21mr|openwebbeans-1.2.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with arquillian
Name:          openwebbeans
Version:       1.2.8
Release:       5
Summary:       Implementation of the JSR-299 WebBeans
License:       ASL 2.0
Group:         Development/Java
URL:           http://openwebbeans.apache.org/
Source0:       http://www.apache.org/dist/openwebbeans/%{version}/%{name}-%{version}-source-release.zip
Patch0:        %{name}-1.2.0-servlet31.patch
Patch1:        0001-OWB-1309-fix-missing-NoSuchMethodException.patch
BuildRequires: maven-local
BuildRequires: mvn(javax.annotation:javax.annotation-api) >= 1.2
BuildRequires: mvn(javax.el:javax.el-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires: mvn(javax.servlet.jsp:javax.servlet.jsp-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache:apache-jar-resource-bundle)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-ejb_3.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jcdi_1.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-validation_1.0_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires: mvn(org.apache.httpcomponents:project:pom:)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.tomcat:tomcat-catalina)
BuildRequires: mvn(org.apache.xbean:xbean-finder)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.eclipse.osgi:org.eclipse.osgi)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires: mvn(org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.ow2.asm:asm-commons)

%if %{with arquillian}
# 2015-07-29: Retired because it depends on shrinkwrap-resolver which did not build for two releases.
BuildRequires: mvn(org.jboss.arquillian:arquillian-bom)
BuildRequires: mvn(org.jboss.arquillian.container:arquillian-container-spi)
BuildRequires: mvn(org.jboss.arquillian.core:arquillian-core-spi)
BuildRequires: mvn(org.jboss.arquillian.junit:arquillian-junit-container)
BuildRequires: mvn(org.jboss.arquillian.test:arquillian-test-spi)
BuildRequires: mvn(org.jboss.arquillian.testenricher:arquillian-testenricher-cdi)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-api)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)
%endif

Obsoletes:     %{name}-arquillian
Obsoletes:     %{name}-cdi11

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
OpenWebBeans is an implementation of the JSR-299, Contexts and
Dependency Injection for the Java EE platform.

It also already incorporates some features which are part of JSR-346
but doesn't need API changes as we still use the JCDI-1.0 API. The
incorporated CDI-1.1 features are mostly parts which are not well defined
in the CDI-1.0 specification, like Serialisation checks, etc.

%package clustering
Summary:       Apache OpenWebBeans Clustering Plugin

%description clustering
Apache OpenWebBeans Clustering plugin.

%package ee
Summary:       Apache OpenWebBeans Java EE plugin

%description ee
Apache OpenWebBeans Java EE Utility.

%package ee-common
Summary:       Apache OpenWebBeans EE Common plugin

%description ee-common
Apache OpenWebBeans Java EE Common.

%package ejb
Summary:       Apache OpenWebBeans EJB plugin

%description ejb
Apache OpenWebBeans Java EE EJB plugin.

%package el22
Summary:       Apache OpenWebBeans EL 2.2 plugin

%description el22
Apache OpenWebBeans EL 2.2 integration.

%package impl
Summary:       Apache OpenWebBeans Core

%description impl
Apache OpenWebBeans Implementation core module.

%package jee5-ejb-resource
Summary:       Apache OpenWebBeans EE Resource plugin

%description jee5-ejb-resource
Apache OpenWebBeans EE 5 Resource Integration.

%package jms
Summary:       Apache OpenWebBeans JMS plugin

%description jms
Apache OpenWebBeans JMS Integration.

%package jsf
Summary:       Apache OpenWebBeans JSF-2 plugin

%description jsf
Apache OpenWebBeans JSF integration.

%package osgi
Summary:       Apache OpenWebBeans OSGi plugin

%description osgi
Apache OpenWebBeans OSGi ClassLoader scanning support.

%package resource
Summary:       Apache OpenWebBeans EE Resource plugin

%description resource
Apache OpenWebBeans EE Resource Integration.

%package spi
Summary:       Apache OpenWebBeans SPI definition

%description spi
Apache OpenWebBeans Service Provider Interfaces.

%package test
Summary:       Apache OpenWebBeans CDI Test Framework

%description test
This package contains testing support for CDI containers and
also provides an implementation for OpenWebBeans.

%package tomcat7
Summary:       Apache OpenWebBeans Tomcat 7 plugin

%description tomcat7
ApacheOpenWebBeans Tomcat 7 Web Profile.

%package web
Summary:       Apache OpenWebBeans Web plugin

%description web
Apache OpenWebBeans Java EE Web and Serlvet plugin.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
rm -r DEPENDENCIES

# Require org.apache.openwebbeans.build-tools checkstyle-rules 1.2
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :taglist-maven-plugin
%pom_remove_plugin -r :maven-source-plugin

# Unavailable deps
%pom_disable_module distribution
%pom_disable_module samples
%pom_disable_module webbeans-doc
%pom_disable_module webbeans-el10
%pom_disable_module webbeans-jsf12
# TODO
# org.apache.openejb openejb-core
# org.apache.openejb openejb-core openejb-tomcat-catalina 3.1.4
# org.jboss.jsr299.tck jsr299-tck-api 1.0.4.CR1
%pom_disable_module webbeans-porting
# org.jboss.jsr299.tck jsr299-tck-impl 1.0.4.SP1
%pom_disable_module webbeans-tck
%pom_disable_module atinject-tck
%pom_disable_module webbeans-tomcat6

%if %{without arquillian}
%pom_disable_module webbeans-arquillian
%pom_remove_dep :arquillian-bom webbeans-arquillian
%endif

%pom_change_dep -r :geronimo-annotation_1.1_spec javax.annotation:javax.annotation-api:1.2
%pom_change_dep -r :geronimo-atinject_1.0_spec javax.inject:javax.inject:1
%pom_change_dep -r :geronimo-el_2.2_spec javax.el:javax.el-api:3.0.0
%pom_change_dep -r :geronimo-interceptor_1.1_spec org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec:1.0.0.Final
%pom_change_dep -r :geronimo-jpa_2.0_spec org.hibernate.javax.persistence:hibernate-jpa-2.0-api:1.0.1.Final
%pom_change_dep -r :geronimo-jsp_2.1_spec javax.servlet.jsp:javax.servlet.jsp-api:2.3.2-b01
%pom_change_dep -r :geronimo-servlet_2.5_spec javax.servlet:javax.servlet-api:3.1.0
%pom_change_dep -r :myfaces-api org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec:2.2.0
%pom_change_dep -r :org.osgi.core org.eclipse.osgi:org.eclipse.osgi

%pom_change_dep -r org.apache.xbean:xbean-finder-shaded org.apache.xbean:xbean-finder
%pom_change_dep -r org.apache.xbean:xbean-asm5-shaded org.ow2.asm:asm:5.0.3
sed -i "s|org.apache.xbean.asm5|org.objectweb.asm|" \
 webbeans-impl/src/main/java/org/apache/webbeans/proxy/AbstractProxyFactory.java \
 webbeans-impl/src/main/java/org/apache/webbeans/proxy/InterceptorDecoratorProxyFactory.java \
 webbeans-impl/src/main/java/org/apache/webbeans/proxy/NormalScopeProxyFactory.java \
 webbeans-impl/src/main/java/org/apache/webbeans/proxy/SubclassProxyFactory.java

%pom_add_dep org.ow2.asm:asm-commons:5.0.3:test webbeans-impl

# These test fails
# java.lang.OutOfMemoryError: unable to create new native thread
rm -r webbeans-impl/src/test/java/org/apache/webbeans/portable/AnnotatedTypeImplTest.java
# Require servlet 2.5 apis
rm -rf webbeans-clustering/src/test/java/org/apache/webbeans/web/failover/tests/MockServletContext.java \
 webbeans-clustering/src/test/java/org/apache/webbeans/web/failover/tests/MockServletRequest.java

# Break build
%pom_remove_plugin org.apache.rat:apache-rat-plugin

%mvn_package org.apache.openwebbeans.test: test

%mvn_package :%{name}-impl::tests: %{name}-impl

%build

# Some tests @ random fails
%mvn_build -s -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles-%{name}
%license LICENSE NOTICE

%files clustering -f .mfiles-%{name}-clustering
%license LICENSE NOTICE

%files ee -f .mfiles-%{name}-ee
%license LICENSE NOTICE

%files ee-common -f .mfiles-%{name}-ee-common
%license LICENSE NOTICE

%files ejb -f .mfiles-%{name}-ejb
%license LICENSE NOTICE

%files el22 -f .mfiles-%{name}-el22
%license LICENSE NOTICE

%files impl -f .mfiles-%{name}-impl
%license LICENSE NOTICE

%files jee5-ejb-resource -f .mfiles-%{name}-jee5-ejb-resource
%license LICENSE NOTICE

%files jms -f .mfiles-%{name}-jms
%license LICENSE NOTICE

%files jsf -f .mfiles-%{name}-jsf
%license LICENSE NOTICE

%files osgi -f .mfiles-%{name}-osgi
%license LICENSE NOTICE

%files resource -f .mfiles-%{name}-resource
%license LICENSE NOTICE

%files spi -f .mfiles-%{name}-spi
%license LICENSE NOTICE

%files test -f .mfiles-test
%license LICENSE NOTICE

%files tomcat7 -f .mfiles-%{name}-tomcat7
%license LICENSE NOTICE

%files web -f .mfiles-%{name}-web
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15099 |21mr|oprofile-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Transparent low-overhead system-wide profiler
Name:		oprofile
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://oprofile.sourceforge.net/
Source0:	https://prdownloads.sourceforge.net/oprofile/oprofile-%{version}.tar.gz
# Use -module -avoid-version for agents:
Patch0:		oprofile-agents-ldflags.patch
Patch1:		e2k-rmb-defs.patch
%ifnarch %{armx} %{e2k}
BuildRequires:	java-rpmbuild
BuildRequires:	java-1.8.0-openjdk-devel
%endif
BuildRequires:	binutils-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(popt)
Obsoletes:	oprofile-gui < 1.0

%description
OProfile is a system-wide profiler for Linux systems, capable of
profiling all running code at low overhead. OProfile is released
under the GNU GPL.

It consists of a kernel driver and a daemon for collecting sample
data, and several post-profiling tools for turning data into
information.

OProfile leverages the hardware performance counters of the CPU to
enable profiling of a wide variety of interesting statistics, which
can also be used for basic time-spent profiling. All code is
profiled: hardware and software interrupt handlers, kernel modules,
the kernel, shared libraries, and applications.

%files
%doc README TODO COPYING ChangeLog* doc/*.html
%{_bindir}/ocount
%{_bindir}/opannotate
%{_bindir}/oparchive
%{_bindir}/op-check-perfevents
%{_bindir}/operf
%{_bindir}/opgprof
%{_bindir}/ophelp
%{_bindir}/opreport
%{_bindir}/opimport
%{_bindir}/opjitconv
%{_datadir}/oprofile
%{_mandir}/man1/ocount.1*
%{_mandir}/man1/op*
%{_docdir}/oprofile/ophelp.xsd
%{_docdir}/oprofile/opreport.xsd

#----------------------------------------------------------------------------

%package jit
Summary:	Libraries for profiling Java and other JIT compiled code
Group:		Development/Java

%description jit
Libraries needed for profiling Java and other JIT compiled code.
For profiling Java code, you need to load
%{_libdir}/oprofile/libjvmti_oprofile.so
into the JVM as per the OProfile documentation.

%files jit
%dir %{_libdir}/oprofile
%ifnarch %{armx} %{e2k}
%{_libdir}/oprofile/libjvmti_oprofile.so
%endif
%{_libdir}/oprofile/libopagent.so.*

%pre jit
%_pre_useradd oprofile "%{_var}/lib/oprofile" /bin/nologin

%postun jit
%_postun_userdel oprofile

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for developing OProfile JIT agents
Group:		Development/Other
Requires:	%{name}-jit = %{EVRD}

%description devel
Header and development library symlink for libopagent, required for
compiling additional OProfile JIT agents.

%files devel
%{_includedir}/opagent.h
%{_libdir}/oprofile/libopagent.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# fixes build
touch NEWS AUTHORS INSTALL ChangeLog # strange, autoreconf does not create these
autoreconf -if

%build
%configure \
	--with-kernel-support \
%ifnarch %{armx} %{e2k}
	--with-java=%{java_home}
%endif

%make_build

%install
%make_install
rm -f %{buildroot}%{_datadir}/doc/%{name}/*.html

rm %{buildroot}%{_libdir}/oprofile/*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15100 |21mr|options-1.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           options
Version:        1.2
Release:        14
Summary:        Library for managing sets of JVM properties to configure an app or library
Group:          Development/Java
License:        ASL 2.0
URL:            https://github.com/headius/%{name}
Source0:        https://github.com/headius/%{name}/archive/%{name}-%{version}.zip
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  maven-local
BuildRequires:  sonatype-oss-parent

%description
Provides a simple mechanism for defining JVM property-based
configuration for an application or library.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
cp %{SOURCE1} .

%build
%mvn_build

%install
%mvn_install

%files  -f .mfiles
%doc LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15101 |21mr|opus-1.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Opus Interactive Audio Codec
Name:		opus
Version:	1.3.1
Release:	2
License:	BSD
Group:		Sound
Url:		http://opus-codec.org/
Source0:	https://archive.mozilla.org/pub/opus/%{name}-%{version}.tar.gz
BuildRequires:	doxygen

%description
The Opus codec is designed for interactive speech and audio transmission over
the Internet. It is designed by the IETF Codec Working Group and incorporates
technology from Skype's SILK codec and Xiph.Org's CELT codec.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Opus shared library
Group:		System/Libraries

%description -n %{libname}
This package provides the library that implements the Opus codec.
The Opus codec is designed for interactive speech and audio transmission over
the Internet. It is designed by the IETF Codec Working Group and incorporates
technology from Skype's SILK codec and Xiph.Org's CELT codec.

%files -n %{libname}
%doc COPYING README
%{_libdir}/libopus.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed to compile a program with Opus support
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the library that implements the Opus codec.

%files -n %{devname}
%doc COPYING README
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/opus.m4
%{_mandir}/man3/opus_*.3*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-custom-modes
%make

%install
%makeinstall_std
rm -f %{buildroot}%{_docdir}/opus/doxygen-build.stamp
rm -rf %{buildroot}%{_docdir}/opus

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15102 |21mr|opusfile-0.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define liburl %mklibname opusurl %{major}
%define devname %mklibname %{name} -d

Summary:	A high-level API for decoding and seeking within .opus files
Name:		opusfile
Version:	0.12
Release:	3
License:	BSD
Group:		System/Libraries
Url:		http://www.opus-codec.org/
Source0:	http://downloads.xiph.org/releases/opus/%{name}-%{version}.tar.gz
Patch0:		CVE-2022-47021.patch
BuildRequires:	pkgconfig(ogg) >= 1.3
BuildRequires:	pkgconfig(openssl) >= 1.0.1
BuildRequires:	pkgconfig(opus)

%description
libopusfile provides a high-level API for decoding and seeking
within .opus files. It includes:
* Support for all files with at least one Opus stream (including
multichannel files or Ogg files where Opus is muxed with something else).
* Full support, including seeking, for chained files.
* A simple stereo downmixing API (allowing chained files to be
decoded with a single output format, even if the channel count changes).
* Support for reading from a file, memory buffer, or over HTTP(S)
(including seeking).
* Support for both random access and streaming data sources.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc COPYING AUTHORS
%{_libdir}/libopusfile.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{liburl}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}opusfile0 < 0.8

%description -n %{liburl}
Shared library for %{name}.

%files -n %{liburl}
%doc COPYING AUTHORS
%{_libdir}/libopusurl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{liburl} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}
%{_includedir}/opus/opusfile*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libopus*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--enable-assertions \
	--enable-fixed-point
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15103 |21mr|opus-tools-0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Opus codec tools
Name:		opus-tools
Version:	0.2
Release:	3
License:	BSD
Group:		Sound
Url:		http://opus-codec.org
Source0:	https://archive.mozilla.org/pub/opus/%{name}-%{version}.tar.gz
Patch0:		opus-tools-0.2-e2k.patch
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(libopusenc)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(vorbis)

%description
This packages provides various tools to decode & encode files with the Opus
codec.

The Opus codec is designed for interactive speech and audio transmission over
the Internet. It is designed by the IETF Codec Working Group and incorporates
technology from Skype's SILK codec and Xiph.Org's CELT codec.

%files
%doc COPYING
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15104 |21mr|orc-0.4.40-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	api 0.4
%define	major 0
%define	libname %mklibname %{name} %{api} %{major}
%define	libtest %mklibname %{name}-test %{api} %{major}
%define	devname %mklibname %{name} -d

Summary:	The Oil Runtime Compiler
Name:		orc
Version:	0.4.40
Release:	1
License:	BSD
Group:		Development/Tools
Url:		http://code.entropywave.com/projects/orc/
Source0:	https://gstreamer.freedesktop.org/src/orc/%{name}-%{version}.tar.xz
Patch0:		orc-0.4.33-use-subdir-for-tempfiles.patch
BuildRequires:	gtk-doc >= 1.12
BuildRequires:	meson >= 0.55.0
BuildRequires:	ninja

%description
Orc is a library and set of tools for compiling and executing very simple
programs that operate on arrays of data. The "language" is a generic assembly
language that represents many of the features available in SIMD architectures,
including saturated addition and subtraction, and many arithmetic operations.

%files
%doc README RELEASE ROADMAP.md
%{_bindir}/orcc
%{_bindir}/%{name}-bugreport

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Oil Runtime Compiler
Group:		System/Libraries

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/liborc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libtest}
Summary:	The Oil Runtime Compiler
Group:		System/Libraries
Conflicts:	%{_lib}orc0.4_0 < 0.4.17-3

%description -n %{libtest}
This package contains a shared library for %{name}.

%files -n %{libtest}
%doc COPYING
%{_libdir}/liborc-test-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The Oil Runtime Compiler
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libtest} = %{EVRD}
Requires:	%{name}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package includes the development files for %{name}.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{name}-%{api}/
%{_libdir}/liborc*-%{api}.so
#{_libdir}/liborc*-%%{api}.a
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-test-%{api}.pc
%{_datadir}/gtk-doc/html/%{name}
#{_datadir}/aclocal/%%{name}.m4

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%meson
%meson_build


%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15105 |21mr|orca-42.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# debug is empty anyway and rpmlint rejects build
%define debug_package %{nil}

%define _appdatadir %{_datadir}/appdata
%define url_ver	%(echo %{version}|cut -d. -f1)

Summary:	GNOME screen reader for people with visual impairments
Name:		orca
Version:	42.3
Release:	1
License:	LGPLv2+
Group:		Accessibility
Url:		https://download.gnome.org/sources/orca
Source0:	https://download.gnome.org/sources/orca/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	orca.appdata.xml
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	python2-braille
BuildRequires:	python3-gi
BuildRequires:	python3-speechd
BuildRequires:	python3dist(brlapi)
BuildRequires:	python3dist(dbus-python)
BuildRequires:	python3dist(pycairo)
BuildRequires:	python3dist(pyxdg)
BuildRequires:	typelib(GObject)
BuildRequires:	pkgconfig(atk-bridge-2.0)
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)
Requires:	python2-braille
Requires:	python3-pyatspi
Requires:	python3-speechd
Requires:	python3dist(brlapi)
Requires:	python3dist(dbus-python)
Requires:	python3dist(pycairo)
Requires:	python3dist(pyxdg)
Requires:	typelib(Atspi)
Requires:	typelib(Wnck)
BuildArch:	noarch

%description
A flexible, scriptable, extensible screen reader for the GNOME platform
that provides access via speech synthesis, braille, and magnification.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_appdatadir}/*.xml
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_iconsdir}/*/*/*/*
%{_mandir}/man1/%{name}.1*
%{py3_puresitedir}/*orca*
%{_sysconfdir}/xdg/autostart/%{name}-autostart.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std
sed -i 's@^#!/usr/bin/python$@#!/usr/bin/python3@' %{buildroot}%{_bindir}/%{name}

# appdata
mkdir -p %{buildroot}%{_appdatadir}
cp %{SOURCE1} %{buildroot}%{_appdatadir}/orca.appdata.xml

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15106 |21mr|order-rpm-generators-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RPM generators to fix package installation order
Name:		order-rpm-generators
Group:		System/Base
License:	GPLv2+
Url:		https://abf.io/import/order-rpm-generators
Version:	0.5
Release:	1
Source0:	ordergen.sh
Source1:	ordergen.attr
Source3:	COPYING
Requires:	grep
# coreutils
Requires:	/usr/bin/tr
BuildArch:	noarch

%description
RPM generators to fix package installation order
by generating "OrderWithRequires" values.

%files
%license COPYING
%{_rpmconfigdir}/fileattrs/ordergen.attr
%{_rpmconfigdir}/ordergen.sh

%prep
cp %{SOURCE3} .

%build
%install
install -m644 -D %{SOURCE1} %{buildroot}/%{_rpmconfigdir}/fileattrs/ordergen.attr
install -m755 -D %{SOURCE0} %{buildroot}/%{_rpmconfigdir}/ordergen.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15107 |21mr|ortp-5.1.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 15
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Real-time Transport Protocol Stack
Name:		ortp
Version:	5.1.55
Release:	1
License:	GPLv2
Group:		Communications
Url:		https://github.com/BelledonneCommunications/ortp
Source0:	https://github.com/BelledonneCommunications/ortp/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	cmake
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(bctoolbox)

%description
oRTP is a GPL licensed C library implementing the RTP protocol (rfc1889).
It is available for most unix clones (primilarly Linux and HP-UX), and
Microsoft Windows.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Real-time Transport Protocol Stack
Group:		System/Libraries

%description -n %{libname}
oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889).
It is available for most unix clones (primilarly Linux and HP-UX), and
Microsoft Windows.

%files -n %{libname}
%doc LICENSE* README.md
%{_libdir}/libortp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers, libraries and docs for the oRTP library
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
oRTP is a LGPL licensed C library implementing the RTP protocol (rfc1889).
It is available for most unix clones (primilarly Linux and HP-UX), and
Microsoft Windows.

This package contains header files and development libraries needed to
develop programs using the oRTP library.

%files -n %{devname}
%doc LICENSE* README.md
%{_libdir}/libortp.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/*/*
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DCMAKE_BUILD_TYPE:STRING=Release \
	-DENABLE_SHARED:BOOL=ON \
	-DENABLE_STATIC:BOOL=OFF \
	-DENABLE_DOC:BOOL=OFF \
	-DENABLE_STRICT:BOOL=OFF
%make

%install
%makeinstall_std -C build

# delete doc files
rm -Rf %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15108 |21mr|osgi-annotation-7.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    osgi-annotation
Version: 7.0.0
Release: 4
Summary: Annotations for use in compiling OSGi bundles

License: ASL 2.0
URL:     http://www.osgi.org/
# Upstream project is behind an account registration system with no anonymous
# read access, so we download the source from maven central instead
Source0: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}.jar
Source1: http://repo1.maven.org/maven2/org/osgi/osgi.annotation/%{version}/osgi.annotation-%{version}.pom

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

%description
Annotations for use in compiling OSGi bundles. This package is not normally
needed at run-time.

%package javadoc
Summary: API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -c -q

mkdir -p src/main/java && mv OSGI-OPT/src/org src/main/java

rm -r org OSGI-OPT

cp -p %{SOURCE1} pom.xml

# Ensure OSGi metadata is generated
%pom_xpath_inject pom:project "
  <packaging>bundle</packaging>
  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.felix</groupId>
        <artifactId>maven-bundle-plugin</artifactId>
        <extensions>true</extensions>
        <configuration>
          <instructions>
            <Bundle-Name>\${project.artifactId}</Bundle-Name>
            <Bundle-SymbolicName>\${project.artifactId}</Bundle-SymbolicName>
          </instructions>
        </configuration>
      </plugin>
    </plugins>
  </build>"

# Known by two names in maven central, so add an alias for the older name
%mvn_alias org.osgi:osgi.annotation org.osgi:org.osgi.annotation

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc about.html

%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15109 |21mr|osgi-compendium-7.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Optionally build with a reduced dependency set
%bcond_with jp_minimal

Name:           osgi-compendium
Version:        7.0.0
Release:        3
Summary:        Interfaces and Classes for use in compiling OSGi bundles
License:        ASL 2.0
URL:            http://www.osgi.org
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://osgi.org/download/r7/osgi.cmpn-%{version}.jar

BuildRequires:  maven-local
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
%if %{without jp_minimal}
BuildRequires:  mvn(javax.persistence:persistence-api)
BuildRequires:  mvn(javax.ws.rs:javax.ws.rs-api) >= 2.1.5-2
%endif
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.osgi:osgi.annotation)
BuildRequires:  mvn(org.osgi:osgi.core)

%description
OSGi Compendium, Interfaces and Classes for use in compiling bundles.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -c

# Delete pre-built binaries
rm -r org
find -name '*.class' -delete

mkdir -p src/main/{java,resources}
mv OSGI-OPT/src/org src/main/java/
mv xmlns src/main/resources

# J2ME stuff
rm -r src/main/java/org/osgi/service/io

mv META-INF/maven/org.osgi/osgi.cmpn/pom.xml .

%pom_xpath_inject pom:project '
<packaging>bundle</packaging>
<properties>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
  <plugins>
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <extensions>true</extensions>
      <configuration>
        <instructions>
          <Bundle-Name>${project.artifactId}</Bundle-Name>
          <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
        </instructions>
      </configuration>
    </plugin>
  </plugins>
</build>'

%pom_add_dep org.osgi:osgi.annotation::provided
%pom_add_dep org.osgi:osgi.core::provided
%pom_add_dep javax.servlet:javax.servlet-api::provided
%if %{without jp_minimal}
%pom_add_dep javax.persistence:persistence-api::provided
%pom_add_dep javax.ws.rs:javax.ws.rs-api::provided
%else
# Don't compile in Jax RS and JPA support when jp_minimal is activated
rm -r src/main/java/org/osgi/service/jaxrs
rm -r src/main/java/org/osgi/service/jpa
rm -r src/main/java/org/osgi/service/transaction/control/jpa
%endif

%build
%mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8

%install
%mvn_install


%files -f .mfiles
%license LICENSE
%doc about.html

%files javadoc -f .mfiles-javadoc
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15110 |21mr|osgi-core-7.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           osgi-core
Version:        7.0.0
Release:        2
Summary:        OSGi Core API
License:        ASL 2.0
URL:            https://www.osgi.org
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://osgi.org/download/r7/osgi.core-%{version}.jar

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.osgi:osgi.annotation)

%description
OSGi Core, Interfaces and Classes for use in compiling bundles.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -c

# Delete pre-built binaries
rm -r org
find -name '*.class' -delete

mkdir -p src/main/{java,resources}
mv OSGI-OPT/src/org src/main/java/

mv META-INF/maven/org.osgi/osgi.core/pom.xml .

%pom_xpath_inject pom:project '
<packaging>bundle</packaging>
<properties>
  <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<build>
  <plugins>
    <plugin>
      <groupId>org.apache.felix</groupId>
      <artifactId>maven-bundle-plugin</artifactId>
      <extensions>true</extensions>
      <configuration>
        <instructions>
          <Bundle-Name>${project.artifactId}</Bundle-Name>
          <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
        </instructions>
      </configuration>
    </plugin>
  </plugins>
</build>'

%pom_add_dep org.osgi:osgi.annotation::provided

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%license LICENSE
%doc about.html

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15111 |21mr|osinfo-db-20221130-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Please keep this package in sync with FC

# -*- rpm-spec -*-

Group:   System/Libraries
Summary: Osinfo database files
Name: osinfo-db
Version:	20221130
Release:	1
License: LGPLv2+
Source0: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz
Source1: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz.asc
URL: http://libosinfo.org/
BuildRequires: intltool
BuildRequires: osinfo-db-tools
BuildArch: noarch
Requires: hwdata

%description
The osinfo database provides information about operating systems and
hypervisor platforms to facilitate the automated configuration and
provisioning of new virtual machines

%install
osinfo-db-import  --root %{buildroot} --dir %{_datadir}/osinfo %{SOURCE0}

%files
%dir %{_datadir}/osinfo/
%{_datadir}/osinfo/VERSION
%{_datadir}/osinfo/LICENSE
%{_datadir}/osinfo/datamap
%{_datadir}/osinfo/device
%{_datadir}/osinfo/os
%{_datadir}/osinfo/platform
%{_datadir}/osinfo/install-script
%{_datadir}/osinfo/schema

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15112 |21mr|osinfo-db-tools-1.10.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Please keep this package in sync with FC

# -*- rpm-spec -*-

Group: System/Base
Summary: Tools for managing the osinfo database
Name: osinfo-db-tools
Version:	1.10.0
Release:	2
License: GPLv2+
Source0: https://releases.pagure.org/libosinfo/%{name}-%{version}.tar.xz
URL: http://libosinfo.org/

### Patches ###
Patch0:	mcst-lcc-support.patch

BuildRequires: gettext-devel
BuildRequires: git
BuildRequires: meson
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(libxml-2.0) >= 2.6.0
BuildRequires: pkgconfig(libxslt) >= 1.0.0
BuildRequires: pkgconfig(libarchive)
BuildRequires: pkgconfig(libsoup-2.4)
BuildRequires: json-glib-devel
BuildRequires: perl
BuildRequires: python3
BuildRequires: python3-requests
Conflicts: libosinfo-common <= 0.3.0-3.mga6

%description
This package provides tools for managing the osinfo database of
information about operating systems for use with virtualization

%prep
%autosetup -S git

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

%files -f %{name}.lang
%doc NEWS README
%license COPYING
%{_bindir}/osinfo-db-export
%{_bindir}/osinfo-db-import
%{_bindir}/osinfo-db-path
%{_bindir}/osinfo-db-validate
%{_mandir}/man1/osinfo-db-export.1*
%{_mandir}/man1/osinfo-db-import.1*
%{_mandir}/man1/osinfo-db-path.1*
%{_mandir}/man1/osinfo-db-validate.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15113 |21mr|os-maven-plugin-1.2.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global vertag Final

Name:           os-maven-plugin
Version:        1.2.3
Release:        13
Summary:        Maven plugin for generating platform-dependent properties
License:        ASL 2.0
URL:            https://github.com/trustin/os-maven-plugin/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/trustin/%{name}/archive/%{name}-%{version}.Final.tar.gz

Patch0:         0001-Port-to-current-plexus-utils.patch
Patch1:         0002-Don-t-fail-on-unknown-arch.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
os-maven-plugin is a Maven extension/plugin that generates various
useful platform-dependent project properties normalized from
${os.name} and ${os.arch}.

${os.name} and ${os.arch} are often subtly different between JVM and
operating system versions or they sometimes contain machine-unfriendly
characters such as whitespaces. This plugin tries to remove such
fragmentation so that you can determine the current operating system
and architecture reliably.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -n %{name}-%{name}-%{version}.%{vertag}

%patch0 -p1
%patch1 -p1

# Remove Eclipse plugin (not needed in Fedora)
%pom_remove_dep org.eclipse:ui
%pom_remove_plugin :maven-jar-plugin
find -name EclipseStartup.java -delete
find -name plugin.xml -delete

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15114 |21mr|osm-gps-map-1.1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lname osmgpsmap

%define major 1
%define api 1.0
%define gir_major 1.0
%define libname %mklibname %{lname} %{api} %{major}
%define girname %mklibname %{lname}-gir %{gir_major}
%define devname %mklibname %{lname} %{api} -d

Summary:	Gtk+ widget for displaying OpenStreetMap tiles
Name:		osm-gps-map
Version:	1.1.0
Release:	5
License:	GPLv2+
Group:		System/Libraries
Url:		http://nzjrs.github.com/osm-gps-map/
Source0:	https://github.com/nzjrs/osm-gps-map/releases/download/%{version}/osm-gps-map-%{version}.tar.gz
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(cairo) >= 1.8
BuildRequires:	pkgconfig(glib-2.0) >= 2.16
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.0
BuildRequires:	pkgconfig(libsoup-2.4)

%description
A Gtk+ widget that when given GPS co-ordinates, draws a GPS track, and
points of interest on a moving map display. Downloads map data from a
number of websites, including openstreetmap.org.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Gtk+ widget for displaying OpenStreetMap tiles
Group:		System/Libraries

%description -n %{libname}
A Gtk+ widget that when given GPS co-ordinates, draws a GPS track, and
points of interest on a moving map display. Downloads map data from a
number of websites, including openstreetmap.org.

%files -n %{libname}
%doc AUTHORS README NEWS ChangeLog COPYING
%{_libdir}/lib%{lname}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
# No longer provided. GObject Introspection interface should be used instead.
Obsoletes:	python-osmgpsmap < 1.0

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%doc AUTHORS README NEWS
%{_libdir}/girepository-1.0/OsmGpsMap-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the %{name} Gtk+ widget
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{lname}-devel = %{EVRD}

%description -n %{devname}
The development files for the %{name} Gtk+ widget.

%files -n %{devname}
%doc AUTHORS README NEWS
%{_includedir}/%{lname}-%{api}
%{_libdir}/lib%{lname}-%{api}.so
%{_libdir}/pkgconfig/%{lname}-%{api}.pc
%{_datadir}/gir-1.0/OsmGpsMap-%{gir_major}.gir
%doc %{_datadir}/gtk-doc/html/libosmgpsmap/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
[[ -f configure ]] || NOCONFIGURE=yes gnome-autogen.sh
%configure \
	--disable-static
%make V=1

%install
%makeinstall_std

# handle docs in files section if needed
rm -rf %{buildroot}%{_docdir}/osm-gps-map

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15115 |21mr|os-prober-1.77-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lprob linux-boot-prober

Name:		os-prober
Version:	1.77
Release:	4
Summary:	Probes disks on the system for installed operating systems
License:	GPLv1 and GPLv2+
Group:		System/Configuration/Boot and Init
Url:		http://kitenet.net/~joey/code/os-prober/
Source0:	http://ftp.de.debian.org/debian/pool/main/o/%{name}/%{name}_%{version}.tar.xz
Source1:	COPYING-note.txt

# From Fedora
Patch0:		os-prober-no-dummy-mach-kernel.patch

# Sent upstream by Fedora
Patch1:		os-prober-mdraidfix.patch
Patch2:		os-prober-btrfsfix.patch
Patch3:		os-prober-bootpart-name-fix.patch
Patch4:		os-prober-mounted-partitions-fix.patch
Patch5:		os-prober-factor-out-logger.patch
# To be sent upstream by Fedora
Patch6:		os-prober-factored-logger-efi-fix.patch
Patch7:		os-prober-umount-fix.patch
Patch8:		os-prober-grub2-parsefix.patch
Patch9:		os-prober-grepfix.patch
Patch10:	os-prober-gentoo-fix.patch

# Other patches

# Fix spelling of SUSE aj@suse.de
Patch21:	os-prober-SUSE.patch

# Add ROSA to 90linux-distro
Patch22:	os-prober-1.57-add_rosa-release_to_90linux-distro.patch

Patch23:	os-prober-1.63-fallback-sort-by-kernel-version.patch
Patch24:	os-prober-1.63-skip-os-prober-entries.patch

# Not sure if this one is still needed, but it won't hurt to keep it.
Patch25:	os-prober-1.63-lsb_release-filename-accepted.patch

Patch26:	os-prober-support-grub-links.patch

Requires:	udev
Requires:	coreutils
Requires:	util-linux
Requires:	grep
Requires:	sed
Requires:	device-mapper
Requires:	grub2
# /usr/share/os-prober/common.sh
Requires:	which
Conflicts:	grub2 <= 2.00-68

%description
This package detects other OSes available on a system and outputs the results
in a generic machine-readable format. Support for new OSes and Linux
distributions can be added easily.

%prep
%autosetup -p1
cp %SOURCE1 .

find -type f -exec sed -i -e 's|/usr/lib|%{_libexecdir}|g' {} \;
sed -i -e 's|grub-probe|grub2-probe|g' os-probes/common/50mounted-tests \
     linux-boot-probes/common/50mounted-tests

sed -i -e 's|grub-mount|grub2-mount|g' os-probes/common/50mounted-tests \
     linux-boot-probes/common/50mounted-tests common.sh

%build

%make

%install
install -m 0755 -d %{buildroot}%{_bindir}
install -m 0755 -d %{buildroot}%{_sbindir}
install -m 0755 -d %{buildroot}%{_localstatedir}/lib/%{name}

install -m 0755 -p os-prober linux-boot-prober %{buildroot}%{_sbindir}
install -m 0755 -Dp newns %{buildroot}%{_libexecdir}/%{name}/newns
install -m 0644 -Dp common.sh %{buildroot}%{_datadir}/%{name}/common.sh

%ifarch %{ix86} x86_64
ARCH=x86
%endif

for probes in os-probes os-probes/mounted os-probes/init \
	linux-boot-probes linux-boot-probes/mounted; do
	install -m 755 -d %{buildroot}%{_libexecdir}/$probes
	cp -a $probes/common/* %{buildroot}%{_libexecdir}/$probes
	if [ -e "$probes/$ARCH" ]; then
		cp -a $probes/$ARCH/* %{buildroot}%{_libexecdir}/$probes
	fi
done
if [ "$ARCH" = x86 ]; then
	install -m 755 -p os-probes/mounted/powerpc/20macosx \
	%{buildroot}%{_libexecdir}/os-probes/mounted
fi

# console user, ask for root password
for pak in %{name} %{lprob}; do
	ln -s %{_bindir}/consolehelper %{buildroot}%{_bindir}/$pak
	mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
	cat > %{buildroot}%{_sysconfdir}/security/console.apps/$pak <<EOF
USER=root
PROGRAM=/usr/sbin/$pak
FALLBACK=false
SESSION=true
EOF
	mkdir -p %{buildroot}%{_sysconfdir}/pam.d
		cat > %{buildroot}%{_sysconfdir}/pam.d/$pak  <<EOF
#%PAM-1.0
auth		include		config-util
account		include		config-util
session		include		config-util
EOF
done

%files
%doc README TODO debian/copyright debian/changelog COPYING-note.txt
%{_bindir}/*
%{_sbindir}/*
%{_libexecdir}/linux-boot-probes
%{_libexecdir}/%{name}/newns
%{_libexecdir}/os-probes
%{_datadir}/%{name}
%{_localstatedir}/lib/%{name}
%{_sysconfdir}/pam.d/*
%{_sysconfdir}/security/console.apps/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15116 |21mr|osslsigncode-2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

Summary:	Platform-independent tool for Authenticode signing of EXE/CAB files
Name:		osslsigncode
Version:	2.2
Release:	1
License:	GPLv2+
Group:		File tools
Url:		https://github.com/mtrojnar/osslsigncode
Source0:	https://github.com/mtrojnar/osslsigncode/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openssl)

%description
osslsigncode is a small utility for placing signatures on Microsoft cabinate
files and executables.

%files
%defattr(-, root, root)
%doc COPYING* README*
%{_bindir}/*

#------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fiv
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15117 |21mr|ossp-uuid-1.6.2-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# needed for rpm53
%bcond_without bootstrap
%bcond_with crosscompile

%if %{with bootstrap}
%bcond_with perl
%bcond_with php
%bcond_with postgresql
%else
%bcond_without perl
# to much issues here
# enable after php upgrade
%bcond_with php
%bcond_without postgresql
%endif

%global oname	ossp_uuid
# exclude devel deps in non-devel package
%global __develgen_exclude_path ^/%{_lib}/.*$

Summary:	OSSP uuid is a ISO-C:1999 application programming interface
Name:		ossp-uuid
Version:	1.6.2
Release:	31
License:	GPLv2+
Group:		Development/C
Url:		http://www.ossp.org/pkg/lib/uuid/
Source0:	ftp://ftp.ossp.org/pkg/lib/uuid/uuid-%{version}.tar.gz
Patch0:		uuid-1.6.2-fix-perl-install.patch
Patch1:		uuid-1.6.2-fix-php-install.patch
Patch2:		uuid-1.6.2-fix-php-link.patch
Patch3:		uuid-1.6.2-ossp.patch
Patch4:		uuid-1.6.2-fix-php-test-module-loading.patch
Patch5:		uuid-1.6.2-php-54x.patch
#We don't want anything stripped
#Upstream-Status: Inappropriate [no upstream]
#The project appears to no longer be accepting changes.
Patch6:		uuid-nostrip.patch
Patch7:		ossp-uuid-1.6.2-php70.patch
BuildRequires:	libtool
%if %{with postgresql}
BuildRequires:	postgresql-devel
%endif
%if %{with perl}
BuildRequires:	perl-devel
%endif
%if %{with php}
BuildRequires:	php-devel
BuildRequires:	php-cli
%endif
%rename		%{oname}

%description
OSSP uuid is a ISO-C:1999 application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1, ISO/IEC 11578:1996 and IETF RFC-4122 compliant Universally
Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of version
1 (time and node based), version 3 (name based, MD5), version 4
(random number based) and version 5 (name based, SHA-1). Additional
API bindings are provided for the languages ISO-C++:1998, Perl:5 and
PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
and Perl Data::UUID APIs

%define	major	16
%define libname %mklibname %{name} %{major}
%define	oldname	%mklibname %{oname} %{major}

%package -n     %{libname}
Summary:	Main library for ossp-uuid
Group:		System/Libraries
%rename		%{oldname}

%description -n %{libname}
OSSP uuid is a ISO-C:1999 application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1, ISO/IEC 11578:1996 and IETF RFC-4122 compliant Universally
Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of version
1 (time and node based), version 3 (name based, MD5), version 4
(random number based) and version 5 (name based, SHA-1). Additional
API bindings are provided for the languages ISO-C++:1998, Perl:5 and
PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
and Perl Data::UUID APIs

%define	libcxx	%mklibname %{name}++ %{major}
%define	oldcxx	%mklibname %{oname}++ %{major}

%package -n     %{libcxx}
Summary:	C++++ library for ossp-uuid
Group:		System/Libraries
%rename		%{oldcxx}

%description -n	%{libcxx}
OSSP uuid is a ISO-C:1999 application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1, ISO/IEC 11578:1996 and IETF RFC-4122 compliant Universally
Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of version
1 (time and node based), version 3 (name based, MD5), version 4
(random number based) and version 5 (name based, SHA-1). Additional
API bindings are provided for the languages ISO-C++:1998, Perl:5 and
PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
and Perl Data::UUID APIs

%define	libdce	%mklibname %{name}_dce %{major}
%define	olddce	%mklibname %{oname}_dce %{major}

%package -n     %{libdce}
Summary:	DCE library for ossp-uuid
Group:		System/Libraries
%rename		%{olddce}

%description -n	%{libdce}
OSSP uuid is a ISO-C:1999 application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1, ISO/IEC 11578:1996 and IETF RFC-4122 compliant Universally
Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of version
1 (time and node based), version 3 (name based, MD5), version 4
(random number based) and version 5 (name based, SHA-1). Additional
API bindings are provided for the languages ISO-C++:1998, Perl:5 and
PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
and Perl Data::UUID APIs

%define devname	%mklibname %{name} -d
%define	devold	%mklibname %{oname} -d

%package -n	%{devname}
Summary:	Header files for the ossp-uuid library
Group:		Development/C
Requires:	%{libname} = %{version}
Requires:	%{libcxx} = %{version}
Requires:	%{libdce} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
%rename		%{devold}

%description -n	%{devname}
OSSP uuid is a ISO-C:1999 application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1, ISO/IEC 11578:1996 and IETF RFC-4122 compliant Universally
Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of version
1 (time and node based), version 3 (name based, MD5), version 4
(random number based) and version 5 (name based, SHA-1). Additional
API bindings are provided for the languages ISO-C++:1998, Perl:5 and
PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
and Perl Data::UUID APIs
These are .h files.

%if %{with perl}
%package -n	perl-OSSP-uuid
Summary:	Perl bindings for ossp-uuid
Group:		Development/Perl

%description -n	perl-OSSP-uuid
This package contains perl bindings for %{name}.
%endif

%if %{with php}
%package -n	php-OSSP-uuid
Summary:	PHP bindings for ossp-uuid
Group:		Development/PHP
Requires:	php(zend-abi)

%description -n	php-OSSP-uuid
This package contains php bindings for %{name}.
%endif

%if %{with postgresql}
%package -n	postgresql-OSSP-uuid
Summary:	Postgresql library for ossp-uuid
Group:		System/Libraries
%rename		%{libname}-pgsql

%description -n	postgresql-OSSP-uuid
OSSP uuid is a ISO-C:1999 application programming interface (API)
and corresponding command line interface (CLI) for the generation of
DCE 1.1, ISO/IEC 11578:1996 and IETF RFC-4122 compliant Universally
Unique Identifier (UUID). It supports DCE 1.1 variant UUIDs of version
1 (time and node based), version 3 (name based, MD5), version 4
(random number based) and version 5 (name based, SHA-1). Additional
API bindings are provided for the languages ISO-C++:1998, Perl:5 and
PHP:4/5. Optional backward compatibility exists for the ISO-C DCE-1.1
and Perl Data::UUID APIs
%endif

%prep
%setup -qn uuid-%{version}
%autopatch -p1

%build
export PHP_ACLOCAL=aclocal
%if %{with crosscompile}
export ac_cv_va_copy=yes
export ac_cv_func_clock_gettime=yes
export ac_cv_func_getifaddrs=yes
export ac_cv_func_gettimeofday=yes
%endif

%configure \
	--includedir=%{_includedir}/ossp-uuid \
%if %{with postgresql}
	--with-pgsql \
%endif
%if %{with perl}
	--with-perl \
%endif
%if %{with php}
	--with-php \
%endif
	--with-cxx \
	--with-dce \
	--disable-static

%make_build LDFLAGS="%{ldflags}" CFLAGS="%{optflags}" LIBTOOL=/usr/bin/libtool

%check
make check

%install
%make_install PHP_EXTENSIONDIR=%{_libdir}/php/extensions
%if %{with postgresql}
mkdir -p %{buildroot}/%{_libdir}/postgresql/
mkdir -p %{buildroot}/%{_datadir}/postgresql/
%make_install -C pgsql
ln -s ossp-uuid.so %{buildroot}%{_libdir}/postgresql/uuid.so
ln -s uuid.sql %{buildroot}%{_datadir}/postgresql/ossp-uuid.sql
%endif

mkdir %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libossp-uuid.so.%{major}* %{buildroot}/%{_lib}
ln -sf /%{_lib}/libossp-uuid.so.%{major}.*.* %{buildroot}%{_libdir}/libossp-uuid.so
ln -sf /%{_lib}/libossp-uuid.so.%{major}.*.* %{buildroot}/%{_lib}/libossp-uuid.so

%files
%doc OVERVIEW
%{_bindir}/uuid
%{_mandir}/man1/uuid.1*

%files -n %{libname}
/%{_lib}/libossp-uuid.so.%{major}*
/%{_lib}/libossp-uuid.so

%files -n %{libcxx}
%{_libdir}/libossp-uuid++.so.%{major}*

%files -n %{libdce}
%{_libdir}/libossp-uuid_dce.so.%{major}*

%files -n %{devname}
%{_libdir}/pkgconfig/ossp-uuid.pc
%dir %{_includedir}/ossp-uuid
%{_includedir}/ossp-uuid/uuid.h
%{_includedir}/ossp-uuid/uuid++.hh
%{_includedir}/ossp-uuid/uuid_dce.h
%{_bindir}/uuid-config
%{_libdir}/libossp-uuid.so
%{_libdir}/libossp-uuid++.so
%{_libdir}/libossp-uuid_dce.so



%{_mandir}/man1/uuid-config.1*
%{_mandir}/man3/ossp-uuid.3*
%{_mandir}/man3/ossp-uuid++.3*

%if %{with perl}
%files -n perl-OSSP-uuid
%{perl_vendorarch}/OSSP
%{perl_vendorarch}/auto/OSSP
%{_mandir}/man3/OSSP::uuid.3*
%endif

%if %{with php}
%files -n php-OSSP-uuid
%{_libdir}/php/extensions/ossp-uuid.so
%{_libdir}/php/extensions/uuid.php
%endif

%if %{with postgresql}
%files -n postgresql-OSSP-uuid
%{_libdir}/postgresql/uuid.so
%{_libdir}/postgresql/ossp-uuid.so
%{_datadir}/postgresql/uuid.sql
%{_datadir}/postgresql/ossp-uuid.sql
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15118 |21mr|ostree-2022.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 1
%define api 1
%define gir_major 1.0
%define libname %mklibname ostree %{major}
%define girname %mklibname ostree-gir %{gir_major}
%define devname %mklibname ostree -d

Summary:	Tool for managing bootable, immutable filesystem trees
Name:		ostree
Version:	2022.7
Release:	1
License:	LGPLv2+
Group:		System/Configuration/Packaging
Url:		https://ostree.readthedocs.io/en/latest/
Source0:	https://github.com/ostreedev/ostree/releases/download/v%{version}/libostree-%{version}.tar.xz
BuildRequires:	git
BuildRequires:	bison
# For docs
BuildRequires:	gtk-doc
# Core requirements
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
# Extras
BuildRequires:	dracut
BuildRequires:	gpgme-devel
BuildRequires:	pkgconfig(e2p)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(mount)
# Runtime requirements
Requires:	dracut
# To ensure we have TLS
Requires:	glib-networking
Requires:	gnupg2
Requires:	systemd-units

%description
OSTree is a tool for managing bootable, immutable, versioned
filesystem trees. While it takes over some of the roles of tradtional
"package managers" like dpkg and rpm, it is not a package system; nor
is it a tool for managing full disk images. Instead, it sits between
those levels, offering a blend of the advantages (and disadvantages)
of both.

%files
%doc README.md
%license COPYING
%{_bindir}/ostree
%{_bindir}/rofiles-fuse
%{_datadir}/bash-completion/completions/ostree
%{_datadir}/ostree/trusted.gpg.d
%{_sysconfdir}/ostree
%dir %{_prefix}/lib/dracut/modules.d/98ostree
%{_tmpfilesdir}/ostree-tmpfiles.conf
%{_unitdir}/ostree*.service
%{_unitdir}/ostree-finalize-staged.path
%{_prefix}/lib/dracut/modules.d/98ostree/*
%{_mandir}/man*/*.*
/lib/systemd/system-generators/ostree-system-generator
%exclude %{_sysconfdir}/grub.d/*ostree
%exclude %{_libexecdir}/libostree/grub2*
%{_prefix}/lib/ostree/ostree-prepare-root
%{_prefix}/lib/ostree/ostree-remount
# Moved in git master
%{_libexecdir}/libostree/*

%post
%systemd_post ostree-remount.service

%preun
%systemd_preun ostree-remount.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Tool for managing bootable, immutable filesystem trees
Group:		System/Libraries

%description -n %{libname}
OSTree is a tool for managing bootable, immutable, versioned
filesystem trees. While it takes over some of the roles of tradtional
"package managers" like dpkg and rpm, it is not a package system; nor
is it a tool for managing full disk images. Instead, it sits between
those levels, offering a blend of the advantages (and disadvantages)
of both.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/OSTree-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package includes the header files for the %{name} library.

%files -n %{devname}
%{_libdir}/lib*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_datadir}/gtk-doc/html/ostree
%{_datadir}/gir-1.0/OSTree-%{gir_major}.gir

#----------------------------------------------------------------------------

%package grub2
Summary:	GRUB2 integration for OSTree
Group:		System/Kernel and hardware
Requires:	grub2

%description grub2
GRUB2 integration for OSTree

%files grub2
%{_sysconfdir}/grub.d/*ostree
%{_libexecdir}/libostree/grub2*

#----------------------------------------------------------------------------

%prep
%setup -qn libostree-%{version}

%build
CFLAGS="$CFLAGS -Wno-error=implicit-function-declaration -Wno-error=int-conversion -Wno-error=aggregate-return -Wno-error=shadow=global"
CXXFLAGS="$CXXFLAGS -Wno-error=implicit-function-declaration -Wno-error=int-conversion"

env NOCONFIGURE=1 ./autogen.sh
%configure	\
	--disable-silent-rules	\
	--enable-gtk-doc	\
	--with-selinux		\
	--with-curl		\
	--with-openssl		\
	--with-dracut=yesbutnoconf

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15119 |21mr|oxygen-5.24.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Oxygen theme
Name:		oxygen
Version:	5.24.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kdecoration2-devel >= %{version}
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5frameworkintegration-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(xcb)
Requires:	kde-cursor-theme-classic
Requires:	oxygen-cursor-theme-black
Requires:	oxygen-cursor-theme-blue
Requires:	oxygen-cursor-theme-white
Requires:	oxygen-cursor-theme-yellow
Requires:	oxygen-cursor-theme-zion
Requires:	oxygen-gtk
Requires:	oxygen-gtk3
Requires:	plasma5-color-scheme-oxygen
Requires:	plasma5-color-scheme-oxygen-cold
Requires:	plasma5-decoration-oxygen
Requires:	plasma5-sounds-oxygen
Requires:	plasma5-style-oxygen
Requires:	plasma5-look-and-feel-oxygen

%description
Plasma 5 Oxygen theme.

%files -f oxygen_style_demo.lang
%{_kde5_bindir}/oxygen-demo5

#----------------------------------------------------------------------------

%package -n liboxygenstyle5-i18n
Summary:	Plasma 5 Oxygen style libraries translations
Group:		System/Internationalization

%description -n liboxygenstyle5-i18n
Plasma 5 Oxygen style libraries translations.

%files -n liboxygenstyle5-i18n -f liboxygenstyleconfig.lang

#----------------------------------------------------------------------------

%define oxygenstyle5_major 5
%define liboxygenstyle5 %mklibname oxygenstyle5_ %{oxygenstyle5_major}

%package -n %{liboxygenstyle5}
Summary:	Plasma 5 Oxygen style shared library
Group:		System/Libraries
Requires:	liboxygenstyle5-i18n

%description -n %{liboxygenstyle5}
Plasma 5 Oxygen style shared library.

%files -n %{liboxygenstyle5}
%{_kde5_libdir}/liboxygenstyle5.so.%{oxygenstyle5_major}*

#----------------------------------------------------------------------------

%define oxygenstyleconfig5_major 5
%define liboxygenstyleconfig5 %mklibname oxygenstyleconfig5_ %{oxygenstyleconfig5_major}

%package -n %{liboxygenstyleconfig5}
Summary:	Plasma 5 Oxygen style shared library
Group:		System/Libraries
Requires:	liboxygenstyle5-i18n

%description -n %{liboxygenstyleconfig5}
Plasma 5 Oxygen style shared library.

%files -n %{liboxygenstyleconfig5}
%{_kde5_libdir}/liboxygenstyleconfig5.so.%{oxygenstyleconfig5_major}*

#----------------------------------------------------------------------------

%package -n kde-cursor-theme-classic
Summary:	Plasma 5 KDE Classic cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n kde-cursor-theme-classic
Plasma 5 KDE Classic cursor theme.

%files -n kde-cursor-theme-classic
%dir %{_kde5_iconsdir}/KDE_Classic
%{_kde5_iconsdir}/KDE_Classic/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-black
Summary:	Plasma 5 Oxygen Black cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-black
Plasma 5 Oxygen Black cursor theme.

%files -n oxygen-cursor-theme-black
%dir %{_kde5_iconsdir}/Oxygen_Black
%{_kde5_iconsdir}/Oxygen_Black/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-blue
Summary:	Plasma 5 Oxygen Blue cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-blue
Plasma 5 Oxygen Blue cursor theme.

%files -n oxygen-cursor-theme-blue
%dir %{_kde5_iconsdir}/Oxygen_Blue
%{_kde5_iconsdir}/Oxygen_Blue/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-white
Summary:	Plasma 5 Oxygen White cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-white
Plasma 5 Oxygen White cursor theme.

%files -n oxygen-cursor-theme-white
%dir %{_kde5_iconsdir}/Oxygen_White
%{_kde5_iconsdir}/Oxygen_White/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-yellow
Summary:	Plasma 5 Oxygen Yellow cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-yellow
Plasma 5 Oxygen Yellow cursor theme.

%files -n oxygen-cursor-theme-yellow
%dir %{_kde5_iconsdir}/Oxygen_Yellow
%{_kde5_iconsdir}/Oxygen_Yellow/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-zion
Summary:	Plasma 5 Oxygen Zion cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-zion
Plasma 5 Oxygen Zion cursor theme.

%files -n oxygen-cursor-theme-zion
%dir %{_kde5_iconsdir}/Oxygen_Zion
%{_kde5_iconsdir}/Oxygen_Zion/*

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-oxygen
Summary:	Plasma 5 Oxygen color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-oxygen
Plasma 5 Oxygen color scheme.

%files -n plasma5-color-scheme-oxygen
%{_kde5_datadir}/color-schemes/Oxygen.colors

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-oxygen-cold
Summary:	Plasma 5 Oxygen Cold color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-oxygen-cold
Plasma 5 Oxygen Cold color scheme.

%files -n plasma5-color-scheme-oxygen-cold
%{_kde5_datadir}/color-schemes/OxygenCold.colors

#----------------------------------------------------------------------------

%package -n plasma5-decoration-oxygen
Summary:	Plasma 5 Oxygen window decoration
Group:		Graphical desktop/KDE
Requires:	plasma5-settings-oxygen

%description -n plasma5-decoration-oxygen
Plasma 5 Oxygen window decoration.

%files -n plasma5-decoration-oxygen -f oxygen_kdecoration.lang
%{_kde5_services}/oxygendecorationconfig.desktop
%{_qt5_plugindir}/org.kde.kdecoration2/oxygendecoration.so

#----------------------------------------------------------------------------

%package -n plasma5-settings-oxygen
Summary:	Oxygen theme configuration module for Plasma 5
Group:		Graphical desktop/KDE

%description -n plasma5-settings-oxygen
Oxygen theme configuration module for Plasma 5.

%files -n plasma5-settings-oxygen -f oxygen_style_config.lang
%{_kde5_bindir}/oxygen-settings5
%{_kde5_iconsdir}/hicolor/*/apps/oxygen-settings.*

#----------------------------------------------------------------------------

%package -n plasma5-sounds-oxygen
Summary:	Plasma 5 Oxygen sounds
Group:		Graphical desktop/KDE

%description -n plasma5-sounds-oxygen
Plasma 5 Oxygen sounds.

%files -n plasma5-sounds-oxygen
%{_kde5_datadir}/sounds/Oxygen-*.ogg

#----------------------------------------------------------------------------

%package -n plasma5-style-oxygen
Summary:	Oxygen style for Plasma 5
Group:		Graphical desktop/KDE
Requires:	plasma5-settings-oxygen
Requires:	qt5-style-oxygen

%description -n plasma5-style-oxygen
Oxygen style for Plasma 5.

%files -n plasma5-style-oxygen
%{_kde5_datadir}/kstyle/themes/oxygen.themerc
%{_kde5_services}/oxygenstyleconfig.desktop
%{_qt5_plugindir}/kstyle_oxygen_config.so

#----------------------------------------------------------------------------

%package -n plasma5-look-and-feel-oxygen
Summary:	Oxygen look and feel for Plasma 5
Group:		Graphical desktop/KDE
Requires:	oxygen-cursor-theme-black
Requires:	plasma5-style-oxygen

%description -n plasma5-look-and-feel-oxygen
Oxygen look and feel for Plasma 5.

%files -n plasma5-look-and-feel-oxygen
%dir %{_kde5_datadir}/plasma/look-and-feel/org.kde.oxygen
%{_kde5_datadir}/plasma/look-and-feel/org.kde.oxygen/*

#----------------------------------------------------------------------------

%package -n qt5-style-oxygen
Summary:	Oxygen style for Qt5
Group:		Graphical desktop/KDE

%description -n qt5-style-oxygen
Oxygen style for Qt5.

%files -n qt5-style-oxygen
%{_qt5_plugindir}/styles/oxygen.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Useless, we don't have headers
rm -f %{buildroot}%{_kde5_libdir}/liboxygenstyle5.so
rm -f %{buildroot}%{_kde5_libdir}/liboxygenstyleconfig5.so

%find_lang liboxygenstyleconfig
%find_lang oxygen_kdecoration
%find_lang oxygen_style_config
%find_lang oxygen_style_demo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15120 |21mr|oxygen-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Oxygen theme
Name:		oxygen
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kdecoration2-devel >= %{version}
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5frameworkintegration-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(xcb)
Requires:	kde-cursor-theme-classic
Requires:	oxygen-cursor-theme-black
Requires:	oxygen-cursor-theme-blue
Requires:	oxygen-cursor-theme-white
Requires:	oxygen-cursor-theme-yellow
Requires:	oxygen-cursor-theme-zion
Requires:	oxygen-gtk
Requires:	oxygen-gtk3
Requires:	plasma5-color-scheme-oxygen
Requires:	plasma5-color-scheme-oxygen-cold
Requires:	plasma5-decoration-oxygen
Requires:	plasma5-style-oxygen
Requires:	plasma5-look-and-feel-oxygen

%description
Plasma 5 Oxygen theme.

%files -f oxygen_style_demo.lang
%{_kde5_bindir}/oxygen-demo5

#----------------------------------------------------------------------------

%package -n liboxygenstyle5-i18n
Summary:	Plasma 5 Oxygen style libraries translations
Group:		System/Internationalization

%description -n liboxygenstyle5-i18n
Plasma 5 Oxygen style libraries translations.

%files -n liboxygenstyle5-i18n -f liboxygenstyleconfig.lang

#----------------------------------------------------------------------------

%define oxygenstyle5_major 5
%define liboxygenstyle5 %mklibname oxygenstyle5_ %{oxygenstyle5_major}

%package -n %{liboxygenstyle5}
Summary:	Plasma 5 Oxygen style shared library
Group:		System/Libraries
Requires:	liboxygenstyle5-i18n

%description -n %{liboxygenstyle5}
Plasma 5 Oxygen style shared library.

%files -n %{liboxygenstyle5}
%{_kde5_libdir}/liboxygenstyle5.so.%{oxygenstyle5_major}*

#----------------------------------------------------------------------------

%define oxygenstyleconfig5_major 5
%define liboxygenstyleconfig5 %mklibname oxygenstyleconfig5_ %{oxygenstyleconfig5_major}

%package -n %{liboxygenstyleconfig5}
Summary:	Plasma 5 Oxygen style shared library
Group:		System/Libraries
Requires:	liboxygenstyle5-i18n

%description -n %{liboxygenstyleconfig5}
Plasma 5 Oxygen style shared library.

%files -n %{liboxygenstyleconfig5}
%{_kde5_libdir}/liboxygenstyleconfig5.so.%{oxygenstyleconfig5_major}*

#----------------------------------------------------------------------------

%package -n kde-cursor-theme-classic
Summary:	Plasma 5 KDE Classic cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n kde-cursor-theme-classic
Plasma 5 KDE Classic cursor theme.

%files -n kde-cursor-theme-classic
%dir %{_kde5_iconsdir}/KDE_Classic
%{_kde5_iconsdir}/KDE_Classic/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-black
Summary:	Plasma 5 Oxygen Black cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-black
Plasma 5 Oxygen Black cursor theme.

%files -n oxygen-cursor-theme-black
%dir %{_kde5_iconsdir}/Oxygen_Black
%{_kde5_iconsdir}/Oxygen_Black/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-blue
Summary:	Plasma 5 Oxygen Blue cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-blue
Plasma 5 Oxygen Blue cursor theme.

%files -n oxygen-cursor-theme-blue
%dir %{_kde5_iconsdir}/Oxygen_Blue
%{_kde5_iconsdir}/Oxygen_Blue/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-white
Summary:	Plasma 5 Oxygen White cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-white
Plasma 5 Oxygen White cursor theme.

%files -n oxygen-cursor-theme-white
%dir %{_kde5_iconsdir}/Oxygen_White
%{_kde5_iconsdir}/Oxygen_White/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-yellow
Summary:	Plasma 5 Oxygen Yellow cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-yellow
Plasma 5 Oxygen Yellow cursor theme.

%files -n oxygen-cursor-theme-yellow
%dir %{_kde5_iconsdir}/Oxygen_Yellow
%{_kde5_iconsdir}/Oxygen_Yellow/*

#----------------------------------------------------------------------------

%package -n oxygen-cursor-theme-zion
Summary:	Plasma 5 Oxygen Zion cursor theme
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n oxygen-cursor-theme-zion
Plasma 5 Oxygen Zion cursor theme.

%files -n oxygen-cursor-theme-zion
%dir %{_kde5_iconsdir}/Oxygen_Zion
%{_kde5_iconsdir}/Oxygen_Zion/*

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-oxygen
Summary:	Plasma 5 Oxygen color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-oxygen
Plasma 5 Oxygen color scheme.

%files -n plasma5-color-scheme-oxygen
%{_kde5_datadir}/color-schemes/Oxygen.colors

#----------------------------------------------------------------------------

%package -n plasma5-color-scheme-oxygen-cold
Summary:	Plasma 5 Oxygen Cold color scheme
Group:		Graphical desktop/KDE

%description -n plasma5-color-scheme-oxygen-cold
Plasma 5 Oxygen Cold color scheme.

%files -n plasma5-color-scheme-oxygen-cold
%{_kde5_datadir}/color-schemes/OxygenCold.colors

#----------------------------------------------------------------------------

%package -n plasma5-decoration-oxygen
Summary:	Plasma 5 Oxygen window decoration
Group:		Graphical desktop/KDE
Requires:	plasma5-settings-oxygen

%description -n plasma5-decoration-oxygen
Plasma 5 Oxygen window decoration.

%files -n plasma5-decoration-oxygen -f oxygen_kdecoration.lang
%{_kde5_services}/oxygendecorationconfig.desktop
%{_qt5_plugindir}/org.kde.kdecoration2/oxygendecoration.so

#----------------------------------------------------------------------------

%package -n plasma5-settings-oxygen
Summary:	Oxygen theme configuration module for Plasma 5
Group:		Graphical desktop/KDE

%description -n plasma5-settings-oxygen
Oxygen theme configuration module for Plasma 5.

%files -n plasma5-settings-oxygen -f oxygen_style_config.lang
%{_kde5_bindir}/oxygen-settings5
%{_kde5_iconsdir}/hicolor/*/apps/oxygen-settings.*

#----------------------------------------------------------------------------

%package -n plasma5-style-oxygen
Summary:	Oxygen style for Plasma 5
Group:		Graphical desktop/KDE
Requires:	plasma5-settings-oxygen
Requires:	qt5-style-oxygen

%description -n plasma5-style-oxygen
Oxygen style for Plasma 5.

%files -n plasma5-style-oxygen
%{_kde5_datadir}/kstyle/themes/oxygen.themerc
%{_kde5_services}/oxygenstyleconfig.desktop
%{_qt5_plugindir}/kstyle_oxygen_config.so

#----------------------------------------------------------------------------

%package -n plasma5-look-and-feel-oxygen
Summary:	Oxygen look and feel for Plasma 5
Group:		Graphical desktop/KDE
Requires:	oxygen-cursor-theme-black
Requires:	plasma5-style-oxygen

%description -n plasma5-look-and-feel-oxygen
Oxygen look and feel for Plasma 5.

%files -n plasma5-look-and-feel-oxygen
%dir %{_kde5_datadir}/plasma/look-and-feel/org.kde.oxygen
%{_kde5_datadir}/plasma/look-and-feel/org.kde.oxygen/*

#----------------------------------------------------------------------------

%package -n qt5-style-oxygen
Summary:	Oxygen style for Qt5
Group:		Graphical desktop/KDE

%description -n qt5-style-oxygen
Oxygen style for Qt5.

%files -n qt5-style-oxygen
%{_qt5_plugindir}/styles/oxygen.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Useless, we don't have headers
rm -f %{buildroot}%{_kde5_libdir}/liboxygenstyle5.so
rm -f %{buildroot}%{_kde5_libdir}/liboxygenstyleconfig5.so

%find_lang liboxygenstyleconfig
%find_lang oxygen_kdecoration
%find_lang oxygen_style_config
%find_lang oxygen_style_demo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15121 |21mr|oxygen-fonts-5.4.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Oxygen fonts
Name:		oxygen-fonts
Version:	5.4.3
Release:	6
License:	OFL
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	ftp://ftp.kde.org/pub/kde/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	fontforge
BuildRequires:	pkgconfig(Qt5Core)

%description
Oxygen fonts.

%files
%dir %{_kde5_datadir}/fonts/truetype/oxygen/
%{_kde5_datadir}/fonts/truetype/oxygen/*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for Oxygen fonts
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_libdir}/cmake/OxygenFont

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5 -DSHARE_INSTALL_PREFIX=share
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15122 |21mr|oxygen-gtk-1.4.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A port of the default KDE widget theme (Oxygen) to gtk
Name:		oxygen-gtk
Version:	1.4.6
Release:	5
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/artwork/oxygen-gtk
Source0:	ftp://ftp.kde.org/pub/kde/stable/oxygen-gtk2/%{version}/src/%{name}2-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-2.0)
Requires:	oxygen-gtk2-engine = %{EVRD}

%description
Oxygen-Gtk is a port of the default KDE widget theme (Oxygen), to gtk.

It's primary goal is to ensure visual consistency between gtk and qt-based
applications running under kde. A secondary objective is to also have a
stand-alone nice looking gtk theme that would behave well on other Desktop
Environments.

Unlike other attempts made to port the kde oxygen theme to gtk, this attempt
does not depend on Qt (via some Qt to Gtk conversion engine), nor does render
the widget appearance via hard coded pixmaps, which otherwise breaks everytime
some setting is changed in kde.

%files
%doc AUTHORS COPYING INSTALL README
%{_bindir}/*
%{_datadir}/themes/oxygen-gtk

#------------------------------------------------

%define libname %mklibname oxygen-gtk

%package -n %{libname}
Summary:	Dynamic libraries for %{name}
Group:		System/Libraries
Provides:	oxygen-gtk2-engine = %{EVRD}
Conflicts:	oxygen-gtk < 1.3.0

%description -n %{libname}
Dynamic libraries for %{name}.

%files -n %{libname}
%{_libdir}/gtk-2.0/2.10.0/engines/liboxygen-gtk.so

#------------------------------------------------

%prep
%setup -q -n %{name}2-%{version}

%build
%cmake \
	-DOXYGEN_FORCE_KDE_ICONS_AND_FONTS=0
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15123 |21mr|oxygen-gtk3-1.4.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A port of the default KDE widget theme (Oxygen) to gtk3
Name:		oxygen-gtk3
Version:	1.4.1
Release:	4
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/artwork/oxygen-gtk
Source0:	ftp://ftp.kde.org/pub/kde/stable/oxygen-gtk3/%{version}/src/%{name}-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.10.0
Recommends:	oxygen-icon-theme
Requires:	%{name}-engine = %{EVRD}

%description
Oxygen-Gtk3 is a port of the default KDE widget theme (Oxygen), to gtk3.

It's primary goal is to ensure visual consistency between gtk and qt-based
applications running under kde. A secondary objective is to also have a
stand-alone nice looking gtk theme that would behave well on other Desktop
Environments.

Unlike other attempts made to port the kde oxygen theme to gtk3, this attempt
does not depend on Qt (via some Qt to Gtk conversion engine), nor does render
the widget appearance via hard coded pixmaps, which otherwise breaks everytime
some setting is changed in kde.

%files
%{_bindir}/%{name}-demo
%{_datadir}/themes/oxygen-gtk

#------------------------------------------------

%define libname %mklibname %{name}

%package -n %{libname}
Summary:	Dynamic libraries for %{name}
Group:		System/Libraries
Provides:	%{name}-engine = %{EVRD}

%description -n %{libname}
Dynamic libraries for %{name}.

%files -n %{libname}
%{_libdir}/gtk-3.0/3.0.0/theming-engines/liboxygen-gtk.so

#------------------------------------------------

%prep
%setup -q

%build
%cmake -DOXYGEN_FORCE_KDE_ICONS_AND_FONTS=0
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15124 |21mr|oxygen-icon-theme-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	Oxygen icon theme
Name:		oxygen-icon-theme
Version:	5.116.0
Release:	3
Epoch:		1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/oxygen-icons-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildArch:	noarch

%description
Oxygen KDE icon theme. Compliant with FreeDesktop.org naming schema.

%files
%{_kde5_iconsdir}/oxygen
# This is needed as hicolor is the fallback for icons
%{_kde5_iconsdir}/hicolor/*/apps/*
%{_var}/lib/rpm/filetriggers/gtk-icon-cache-oxygen.*

%post
%update_icon_cache oxygen

%postun
%clean_icon_cache oxygen

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n oxygen-icons-%{version}

find . -name x-clementine* | xargs rm

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# automatic gtk icon cache update on rpm installs/removals
# (see http://wiki.mandriva.com/en/Rpm_filetriggers)
install -d %{buildroot}%{_var}/lib/rpm/filetriggers
cat > %{buildroot}%{_var}/lib/rpm/filetriggers/gtk-icon-cache-oxygen.filter << EOF
^.%{_kde5_iconsdir}/oxygen/
EOF
cat > %{buildroot}%{_var}/lib/rpm/filetriggers/gtk-icon-cache-oxygen.script << EOF
#!/bin/sh
if [ -x /usr/bin/gtk-update-icon-cache ]; then
  /usr/bin/gtk-update-icon-cache --force --quiet %{_kde5_iconsdir}/oxygen
fi
EOF
chmod 755 %{buildroot}%{_var}/lib/rpm/filetriggers/gtk-icon-cache-oxygen.script

# Plasma 5 uses media-mount icon instead of emblem-mounted, so make a copy
for size in 16 22 32 48 64 128; do
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/emblems/emblem-mounted.png %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/actions/media-mount.png
done

# We copy some missing icons from oxygen to hicolor
for size in 16 32 48 64 128; do
    mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/office-address-book.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/krdc.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/kaffeine.png  %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/semn.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/plasmagik.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/ktip.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/kthesaurus.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/ksniffer.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/korgac.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/knewsticker.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/klipper.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/kjournal.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
    cp %{buildroot}%{_kde5_iconsdir}/oxygen/base/${size}x${size}/apps/kivio.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15125 |21mr|oxygen-sounds-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sounds for the Oxygen Plasma theme
Name:		oxygen-sounds
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildArch:	noarch

%description
Sounds for the Oxygen Plasma theme.

%files
%{_kde5_datadir}/sounds/Oxygen-*.ogg

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15126 |21mr|ozerocdoff-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __debug_package %{nil}
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	Tool for switching modes of Option USB devices
Name:		ozerocdoff
Version:	0.4
Release:	8
License:	GPLv2+
Group:		System/Base
Url:		http://www.pharscape.org/ozerocdoff.html
Source0:	ozerocdoff-%{version}.tar.bz2
Patch0:		ozerocdoff-mda.patch
Patch1:		ozerocdoff-0.4-udev.patch
BuildRequires:	pkgconfig(libusb)
Conflicts:	hso-rezero < 0.2
Obsoletes:	hso-rezero < 0.2

%description
Ozerocdoff - an improved ZeroCD switching utility

This is the improved Option software for temporarily disabling ZeroCD
and allowing the modem to be a modem. It has replaced rezero.

%files
%config(noreplace) %attr(0644,root,root) /etc/hso-suspend.conf
%{_sbindir}/ozerocdoff
%{_sbindir}/rezero
%{_sbindir}/osetsuspend
%{_libdir}/hal/scripts/hal-serial-hsotype
%{_datadir}/hal/fdi/preprobe/20thirdparty/10-wwan-hso-preprobe.fdi
%{_datadir}/hal/fdi/information/20thirdparty/10-wwan-quirk.fdi
%{_sysconfdir}/udev/rules.d/49-hso-udev.rules

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .mda~
%patch1 -p1 -b .udev~

%build
%make

%install
LIBNAME=%{_lib} %makeinstall_std
ln -s ozerocdoff %{buildroot}%{_sbindir}/rezero

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15127 |21mr|p11-kit-0.24.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# p11-kit-proxy.so is loaded by wpa_supplicant for 802.1x auth with NetworkManager,
# but it is a symlink to libp11-kit.so.0
%global __develgen_exclude_path ^%{_libdir}/p11-kit-proxy.so$

%define major 0
# TODO: Move non-library files out of library package
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# solution taken from icedtea-web.spec
%define multilib_arches %{x86_64} riscv64 %{e2k} aarch64
%ifarch %{multilib_arches}
%define alt_ckbi  libnssckbi.so.%{_arch}
%else
%define alt_ckbi  libnssckbi.so
%endif

Summary:	Load and enumerate PKCS#11 modules
Name:		p11-kit
Version:	0.24.1
Release:	6
License:	Apache License
Group:		System/Libraries
Url:		http://p11-glue.freedesktop.org/p11-kit.html
Source0:	https://github.com/p11-glue/p11-kit/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	bash-completion-devel
BuildRequires:	libtasn1-tools
BuildRequires:	meson
BuildRequires:	rootcerts
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libtasn1)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(libnsl)
Requires:		%{libname} = %{EVRD}
# p11-kit-proxy.so was moved
Conflicts:		%{devname} < 0.24.1-4

%description
Provides a way to load and enumerate PKCS#11 modules. Provides a standard
configuration setup for installing PKCS#11 modules in such a way that
they're discoverable.

Also solves problems with coordinating the use of PKCS#11 by different
components or libraries living in the same process.

%files -f %{name}.lang
%{_bindir}/%{name}
%config(noreplace) %{_sysconfdir}/pkcs11/pkcs11.conf
%dir %{_datadir}/p11-kit
%dir %{_datadir}/p11-kit/modules
%dir %{_libdir}/pkcs11
%dir %{_libexecdir}/p11-kit
%dir %{_sysconfdir}/pkcs11
%dir %{_sysconfdir}/pkcs11/modules
%{_libdir}/pkcs11/p11-kit-client.so
%{_libexecdir}/p11-kit/p11-kit-remote
# symlink to lib%{name}.so.%{major}
%{_libdir}/p11-kit-proxy.so
%{_datadir}/bash-completion/completions/p11-kit

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library and proxy module for properly loading and sharing PKCS#11 modules
Group:		System/Libraries

%description -n %{libname}
Provides a way to load and enumerate PKCS#11 modules. Provides a standard
configuration setup for installing PKCS#11 modules in such a way that
they're discoverable.

Also solves problems with coordinating the use of PKCS#11 by different
components or libraries living in the same process.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files and headers for %{name}.

%files -n %{devname}
%{_includedir}/%{name}-1
%{_libdir}/lib*%{name}.so
%{_libdir}/pkgconfig/%{name}-1.pc

#----------------------------------------------------------------------------

%package trust
Summary:	System trust module from %{name}
Requires:	%{name} = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(postun):	%{_sbindir}/update-alternatives

%description    trust
The %{name}-trust package contains a system trust PKCS#11 module which
contains certificate anchors and black lists.

%files trust
%{_bindir}/trust
%{_datadir}/p11-kit/modules/p11-kit-trust.module
%{_datadir}/bash-completion/completions/trust
%ghost %{_libdir}/libnssckbi.so
%{_libdir}/pkcs11/p11-kit-trust.so
%{_libexecdir}/p11-kit/trust-extract-compat

%post trust
%{_sbindir}/update-alternatives --install %{_libdir}/libnssckbi.so \
        %{alt_ckbi} %{_libdir}/pkcs11/p11-kit-trust.so 30

%postun trust
if [ $1 -eq 0 ] ; then
        # package removal
        %{_sbindir}/update-alternatives --remove %{alt_ckbi} %{_libdir}/pkcs11/p11-kit-trust.so
fi

#----------------------------------------------------------------------------

%package server
Summary:        Server and client commands for %{name}
Requires:       %{name} = %{EVRD}

%description server
The %{name}-server package contains command line tools that enable to
export PKCS#11 modules through a Unix domain socket.  Note that this
feature is still experimental.

%files server
%{_libexecdir}/p11-kit/p11-kit-server
%{_userunitdir}/p11-kit-server.service
%{_userunitdir}/p11-kit-server.socket

%post server
%systemd_user_post p11-kit-server.service
%systemd_user_post p11-kit-server.socket

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export LDFLAGS="%{ldflags} -ldl"
# These paths are the source paths that  come from the plan here:
# https://fedoraproject.org/wiki/Features/SharedSystemCertificates:SubTasks
%meson -Dtrust_paths=/etc/pki/ca-trust/source:%{_datadir}/pki/ca-trust-source
%meson_build

%install
%meson_install

#dirs for configs etc
mkdir -p %{buildroot}%{_sysconfdir}/pkcs11/modules

# install the example config file as config file (mga #12696)
cp %{_target_platform}/p11-kit/pkcs11.conf.example %{buildroot}%{_sysconfdir}/pkcs11/pkcs11.conf
rm -f %{buildroot}%{_sysconfdir}/pkcs11/pkcs11.conf.example

%find_lang %{name}

%check
meson test -C %{_target_platform}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15128 |21mr|p7zip-17.03-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_enable_debug_packages %{nil}
%define	 debug_package %{nil}

Summary:	7-zip compatible compression program
Name:		p7zip
Version:	17.03
Release:	2
License:	LGPLv2+
Group:		Archiving/Compression
Url:		http://p7zip.sourceforge.net/
Source0:	https://github.com/jinfeihan57/p7zip/archive/v%{version}.tar.gz
Patch0:		e2k-remove-wrong-optimize.patch
%ifarch %{ix86}
BuildRequires:	nasm
%endif
%ifarch x86_64
BuildRequires:	yasm
%endif
BuildRequires:	pkgconfig(libnatspec)

%description
p7zip is a port of 7za.exe for Unix. 7-Zip is a file archiver with highest
compression ratio.

%files
%doc README ChangeLog TODO
%{_bindir}/7za
%{_bindir}/7zr
%{_bindir}/7z
%{_libdir}/p7zip
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -n %{name}-%{version} -p1

%ifarch %{x86_64}
cp makefile.linux_amd64_asm makefile.machine
%else
%ifarch %{ix86}
cp makefile.linux_x86_asm_gcc_4.X makefile.machine
%else
cp makefile.linux_any_cpu makefile.machine
%endif
%endif

#gw really use our flags:
sed -i -e "s/^OPTFLAGS=.*/OPTFLAGS=%{optflags}/" makefile.machine
sed -i -e "s/^LINK_SHARED=/LINK_SHARED=%{optflags} /" makefile.machine
# And our compiler
sed -i -e "s|^CC=.*|CC=%{__cc}|" makefile.machine
sed -i -e "s|^CXX=.*|CXX=%{__cxx}|" makefile.machine

find DOC -type d|xargs chmod 755
find README ChangeLog TODO DOC -type f|xargs chmod 644


%build
%make all3

%install
%makeinstall \
	DEST_HOME=%{buildroot}%{_prefix} \
	DEST_MAN=%{buildroot}%{_mandir} \
	DEST_SHARE=%{buildroot}%{_libdir}/%{name}

chmod -R +w %{buildroot}

#gw don't package this, as it is non-free like unrar
rm -f %{buildroot}%{_libdir}/p7zip/Codecs/Rar29.so DOC/unRarLicense.txt

#gw fix paths in wrapper scripts and man pages
perl -pi -e "s^%{buildroot}^^" %{buildroot}%{_bindir}/* %{buildroot}%{_mandir}/man1/*
rm -rf %{buildroot}%{_docdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15129 |21mr|p8-platform-2.1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:           p8-platform
Version:        2.1.0.1
Release:        1
Summary:        Platform support library used by libCEC and binary add-ons for Kodi
License:        GPLv2+
Group:          Video
Url:            https://github.com/Pulse-Eight/platform
Source0:        https://github.com/Pulse-Eight/platform/archive/%{name}-%{version}.tar.gz?/platform-%{name}-%{version}.tar.gz
Patch0:		platform-p8-platform-2.0.1-pkgconfig.patch
BuildRequires:  cmake

%description
Platform support library used by libCEC and binary add-ons for Kodi.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:        Platform support library used by libCEC and binary add-ons for Kodi
Group:          Video

%description -n %{libname}
Platform support library used by libCEC and binary add-ons for Kodi.

%files -n %{libname}
%{_libdir}/libp8-platform.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:        Platform support library used by libCEC development files
Group:          Development/C
Requires:       %{libname} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{devname}
Development files for platform support library used by libCEC.

%files -n %{devname}
%{_libdir}/libp8-platform.so
%{_includedir}/p8-platform/
%{_libdir}/pkgconfig/*
%{_libdir}/%{name}/%{name}-config.cmake

#----------------------------------------------------------------------------

%prep
%setup -qn platform-%{name}-%{version}
%autopatch -p1

%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15130 |21mr|pacemaker-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

## User and group to use for nonprivileged services
%global uname hacluster
%global gname haclient

## Nagios source control identifiers
%global nagios_name nagios-agents-metadata
%global nagios_hash 105ab8a7b2c16b9a29cf1c1596b80136eeef332b

### the statement effectively means no RPM-native byte-compiling will occur at
### all, so distro-dependent tricks for Python-specific packages to be applied
%global __os_install_post %(echo '%{__os_install_post}' | {
                            sed -e 's!/usr/lib[^[:space:]]*/brp-python-bytecompile[[:space:]].*$!!g'; })

%define cib_major 27
%define crmcluster_major 29
%define crmcommon_major 34
%define crmservice_major 28
%define lrmd_major 28
%define pe_rules_major 26
%define pe_status_major 28
%define stonithd_major 26
%define major 1
%define libcib %mklibname cib %{cib_major}
%define libcrmcluster %mklibname crmcluster %{crmcluster_major}
%define libcrmcommon %mklibname crmcommon %{crmcommon_major}
%define libcrmservice %mklibname crmservice %{crmservice_major}
%define liblrmd %mklibname lrmd %{lrmd_major}
%define libpe_rules %mklibname pe_rules %{pe_rules_major}
%define libpe_status %mklibname pe_status %{pe_status_major}
%define libstonithd %mklibname stonithd %{stonithd_major}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%bcond_with nagios

Summary:	Scalable High-Availability cluster resource manager
Name:		pacemaker
Version:	2.1.1
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		System/Servers
Source0:	https://github.com/ClusterLabs/pacemaker/archive/Pacemaker-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/ClusterLabs/nagios-agents-metadata/archive/%{nagios_hash}/nagios-agents-metadata-%{nagios_hash}.tar.gz
# from fedora for 2.1.1 version
Patch0:		0001-feature-watchdog-fencing-allow-restriction-to-certai.patch
Patch1:		0002-Fix-watchdog-fencing-Silence-warning-without-node-re.patch
Patch2:		0003-Fix-fence_watchdog-fix-version-output-needed-for-hel.patch
Patch3:		0004-Build-rpm-package-fence_watchdog-in-base-package.patch
Patch6:		0005-Fix-fence_watchdog-fix-malformed-xml-in-metadata.patch
Patch7:		0006-Test-cts-fencing-Add-a-test-for-metadata.patch
Patch8:		0007-Test-cts-fencing-check-metadata-from-fence_dummy-wat.patch
Patch9:		0008-Test-cts-fencing-add-a-few-options-for-tests.patch
BuildRequires:	xsltproc
BuildRequires:	git
BuildRequires:	docbook-style-xsl
BuildRequires:	help2man
BuildRequires:	bzip2-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(corosync)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libqb)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(uuid)
Requires:	%{name}-cli = %{EVRD}
Requires:	%{name}-schemas = %{EVRD}
Requires:	corosync
Requires:	resource-agents
Requires(pre):	%{name}-cli = %{EVRD}

%description
Pacemaker is an advanced, scalable High-Availability cluster resource
manager.

It supports more than 16 node clusters with significant capabilities
for managing resources and dependencies.

It will run scripts at initialization, when machines go up or down,
when related resources fail and can be configured to periodically check
resource health.

%files
%license licenses/GPLv2
%doc %{_datadir}/doc/pacemaker/*
%config(noreplace) %{_sysconfdir}/sysconfig/pacemaker
%{_datadir}/pacemaker/alerts
%{_libexecdir}/pacemaker/*
%exclude %{_libexecdir}/pacemaker/cts-log-watcher
%exclude %{_libexecdir}/pacemaker/cts-support
%{_mandir}/man7/pacemaker-controld.*
%{_mandir}/man7/pacemaker-schedulerd.*
%{_mandir}/man7/pacemaker-fenced.*
%{_mandir}/man7/ocf_pacemaker_controld.*
%{_mandir}/man7/ocf_pacemaker_remote.*
%{_mandir}/man8/crm_attribute.*
%{_mandir}/man8/crm_master.*
%{_mandir}/man8/pacemakerd.*
%{_prefix}/lib/ocf/resource.d/pacemaker/controld
%{_prefix}/lib/ocf/resource.d/pacemaker/remote
%{_sbindir}/crm_attribute
%{_sbindir}/crm_master
%{_sbindir}/pacemakerd
%{_sbindir}/fence_watchdog
%{_unitdir}/pacemaker.service
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker/cib
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker/pengine

%post
%systemd_post pacemaker.service

%preun
%systemd_preun pacemaker.service

%postun
%systemd_postun_with_restart pacemaker.service

#----------------------------------------------------------------------------

%package cli
Summary:	Command line tools for controlling Pacemaker clusters
Group:		System/Servers
Recommends:	%{name} = %{EVRD}
Requires:	perl-TimeDate
Requires:	procps-ng
Requires:	psmisc
Requires(pre):	shadow-utils

%description cli
Pacemaker is an advanced, scalable High-Availability cluster resource
manager.

The %{name}-cli package contains command line tools that can be used
to query and control the cluster from machines that may, or may not,
be part of the cluster.

%files cli
%dir %attr(750,root,%{gname}) %{_sysconfdir}/pacemaker
%config(noreplace) %{_sysconfdir}/logrotate.d/pacemaker
%config(noreplace) %{_sysconfdir}/sysconfig/crm_mon
%{_datadir}/pacemaker/report.collector
%{_datadir}/pacemaker/report.common
%{_datadir}/snmp/mibs/PCMK-MIB.txt
%{_mandir}/man7/*
%exclude %{_mandir}/man7/pacemaker-controld.*
%exclude %{_mandir}/man7/pacemaker-schedulerd.*
%exclude %{_mandir}/man7/pacemaker-fenced.*
%exclude %{_mandir}/man7/ocf_pacemaker_controld.*
%exclude %{_mandir}/man7/ocf_pacemaker_o2cb.*
%exclude %{_mandir}/man7/ocf_pacemaker_remote.*
%{_mandir}/man8/*
%exclude %{_mandir}/man8/crm_attribute.*
%exclude %{_mandir}/man8/crm_master.*
%exclude %{_mandir}/man8/pacemakerd.*
%exclude %{_mandir}/man8/pacemaker-remoted.*
%{_prefix}/lib/ocf/resource.d/pacemaker
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/controld
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/o2cb
%exclude %{_prefix}/lib/ocf/resource.d/pacemaker/remote
%{_sbindir}/attrd_updater
%{_sbindir}/cibadmin
%{_sbindir}/crm_diff
%{_sbindir}/crm_error
%{_sbindir}/crm_failcount
%{_sbindir}/crm_mon
%{_sbindir}/crm_node
%{_sbindir}/crm_report
%{_sbindir}/crm_resource
%{_sbindir}/crm_rule
%{_sbindir}/crm_shadow
%{_sbindir}/crm_simulate
%{_sbindir}/crm_standby
%{_sbindir}/crm_ticket
%{_sbindir}/crm_verify
%{_sbindir}/crmadmin
%{_sbindir}/iso8601
%{_sbindir}/stonith_admin
%{_unitdir}/crm_mon.service
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker/blackbox
%dir %attr(750,%{uname},%{gname}) %{_var}/lib/pacemaker/cores
%dir %attr(770,%{uname},%{gname}) %{_var}/log/pacemaker
%dir %attr(770,%{uname},%{gname}) %{_var}/log/pacemaker/bundles

%pre cli
getent group %{gname} >/dev/null || groupadd -r %{gname} -g 189
getent passwd %{uname} >/dev/null || useradd -r -g %{gname} -u 189 -s /sbin/nologin -c "cluster user" %{uname}
exit 0

%post cli
%systemd_post crm_mon.service

%preun cli
%systemd_preun crm_mon.service

%postun cli
%systemd_postun_with_restart crm_mon.service

#----------------------------------------------------------------------------

%package cts
Summary:	Test framework for cluster-related technologies like Pacemaker
Group:		System/Servers
Requires:	procps-ng
Requires:	psmisc
Requires:	python3-systemd
BuildArch:	noarch

%description cts
Test framework for cluster-related technologies like Pacemaker.

%files cts
%{_datadir}/pacemaker/tests
%{_libexecdir}/pacemaker/cts-log-watcher
%{_libexecdir}/pacemaker/cts-support
%{python3_sitelib}/cts


#----------------------------------------------------------------------------

%package remote
Summary:	Pacemaker remote daemon for non-cluster nodes
Group:		System/Servers
Requires:	%{name}-cli = %{EVRD}
Requires:	resource-agents

%description remote
Pacemaker is an advanced, scalable High-Availability cluster resource
manager.

The %{name}-remote package contains the Pacemaker Remote daemon
which is capable of extending pacemaker functionality to remote
nodes not running the full corosync/cluster stack.

%files remote
# state directory is shared between the subpackets
# let rpm take care of removing it once it isn't
# referenced anymore and empty
%ghost %dir %{_localstatedir}/lib/rpm-state/%{name}
%{_unitdir}/pacemaker_remote.service
%{_sbindir}/pacemaker-remoted
%{_sbindir}/pacemaker_remoted
%{_mandir}/man8/pacemaker-remoted.*

%pre remote
# Stop the service before anything is touched, and remember to restart
# it as one of the last actions (compared to using systemd_postun_with_restart,
# this avoids suicide when sbd is in use)
systemctl --quiet is-active pacemaker_remote
if [ $? -eq 0 ] ; then
    mkdir -p %{_localstatedir}/lib/rpm-state/%{name}
    touch %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
    systemctl stop pacemaker_remote >/dev/null 2>&1
else
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
fi

%post remote
%systemd_post pacemaker_remote.service

%preun remote
%systemd_preun pacemaker_remote.service

%postun remote
# This next line is a no-op, because we stopped the service earlier, but
# we leave it here because it allows us to revert to the standard behavior
# in the future if desired
%systemd_postun_with_restart pacemaker_remote.service
# Explicitly take care of removing the flag-file(s) upon final removal
if [ "$1" -eq 0 ] ; then
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
fi

%posttrans remote
if [ -e %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote ] ; then
    systemctl start pacemaker_remote >/dev/null 2>&1
    rm -f %{_localstatedir}/lib/rpm-state/%{name}/restart_pacemaker_remote
fi

#----------------------------------------------------------------------------

%package schemas
Summary:	Schemas and upgrade stylesheets for Pacemaker
Group:		System/Servers
BuildArch:	noarch

%description schemas
Schemas and upgrade stylesheets for Pacemaker

Pacemaker is an advanced, scalable High-Availability cluster resource
manager.

%files schemas
%license licenses/GPLv2
%dir %{_datadir}/pacemaker
%{_datadir}/pacemaker/*.rng
%{_datadir}/pacemaker/*.xsl
%{_datadir}/pacemaker/api
%{_datadir}/pkgconfig/pacemaker-schemas.pc

#----------------------------------------------------------------------------

%package nagios-plugins-metadata
Summary:	Pacemaker Nagios Metadata
Group:		System/Servers
%if %{with nagios}
# NOTE below are the plugins this metadata uses
Requires:	nagios-plugins-http
Requires:	nagios-plugins-ldap
Requires:	nagios-plugins-mysql
Requires:	nagios-plugins-pgsql
Requires:	nagios-plugins-tcp
%endif
Requires:	%{name}
BuildArch:	noarch

%description nagios-plugins-metadata
The metadata files required for Pacemaker to execute the nagios plugin
monitor resources.

%files nagios-plugins-metadata
%license %{nagios_name}-%{nagios_hash}/COPYING
%dir %{_datadir}/pacemaker/nagios
%dir %{_datadir}/pacemaker/nagios/plugins-metadata
%attr(0644,root,root) %{_datadir}/pacemaker/nagios/plugins-metadata/*

#----------------------------------------------------------------------------

%package -n %{libcib}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libcib}
Pacemaker shared library.

%files -n %{libcib}
%{_libdir}/libcib.so.%{cib_major}*

#----------------------------------------------------------------------------

%package -n %{libcrmcluster}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libcrmcluster}
Pacemaker shared library.

%files -n %{libcrmcluster}
%{_libdir}/libcrmcluster.so.%{crmcluster_major}*

#----------------------------------------------------------------------------

%package -n %{libcrmcommon}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libcrmcommon}
Pacemaker shared library.

%files -n %{libcrmcommon}
%{_libdir}/libcrmcommon.so.%{crmcommon_major}*

#----------------------------------------------------------------------------

%package -n %{libcrmservice}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libcrmservice}
Pacemaker shared library.

%files -n %{libcrmservice}
%{_libdir}/libcrmservice.so.%{crmservice_major}*

#----------------------------------------------------------------------------

%package -n %{liblrmd}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{liblrmd}
Pacemaker shared library.

%files -n %{liblrmd}
%{_libdir}/liblrmd.so.%{lrmd_major}*

#----------------------------------------------------------------------------

%package -n %{libpe_rules}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libpe_rules}
Pacemaker shared library.

%files -n %{libpe_rules}
%{_libdir}/libpe_rules.so.%{pe_rules_major}*

#----------------------------------------------------------------------------

%package -n %{libpe_status}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libpe_status}
Pacemaker shared library.

%files -n %{libpe_status}
%{_libdir}/libpe_status.so.%{pe_status_major}*

#----------------------------------------------------------------------------

%package -n %{libstonithd}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libstonithd}
Pacemaker shared library.

%files -n %{libstonithd}
%{_libdir}/libstonithd.so.%{stonithd_major}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Pacemaker shared library
Group:		System/Libraries

%description -n %{libname}
Pacemaker shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Pacemaker development files
Group:		Development/C
Requires:	%{libcib} = %{EVRD}
Requires:	%{libcrmcluster} = %{EVRD}
Requires:	%{libcrmcommon} = %{EVRD}
Requires:	%{libcrmservice} = %{EVRD}
Requires:	%{liblrmd} = %{EVRD}
Requires:	%{libpe_rules} = %{EVRD}
Requires:	%{libpe_status} = %{EVRD}
Requires:	%{libstonithd} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Pacemaker development files.

%files -n %{devname}
%{_includedir}/pacemaker
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a 1 -n %{name}-Pacemaker-%{version} -S git_am

%build
export systemdsystemunitdir=%{_unitdir}

./autogen.sh

# Rawhide glibc doesn't like ftime at all
#%global optflags %{optflags} -UPCMK_TIME_EMERGENCY_CGT
#export CPPFLAGS="-UPCMK_TIME_EMERGENCY_CGT $CPPFLAGS"

%configure \
	PYTHON=%{__python3} \
	--disable-hardening \
	--disable-fatal-warnings \
	--with-brand= \
	--disable-static \
	--with-initdir=%{_initrddir} \
	--with-runstatedir=/run \
	--localstatedir=%{_var} \
	--with-version=%{version}-%{release} \
	--with-bug-url=http://bugzilla.rosalinux.ru \
%if %{with nagios}
	--with-nagios \
%else
	--without-nagios \
%endif
	--with-nagios-metadata-dir=%{_datadir}/pacemaker/nagios/plugins-metadata/ \
	--with-nagios-plugin-dir=%{_libdir}/nagios/plugins/

%make

%install
# skip automake-native Python byte-compilation, since RPM-native one (possibly
# distro-confined to Python-specific directories, which is currently the only
# relevant place, anyway) assures proper intrinsic alignment with wider system
%makeinstall_std am__py_compile=true

mkdir -p %{buildroot}%{_datadir}/pacemaker/nagios/plugins-metadata
for file in $(find %{nagios_name}-%{nagios_hash}/metadata -type f); do
    install -m 644 $file %{buildroot}%{_datadir}/pacemaker/nagios/plugins-metadata
done

mkdir -p %{buildroot}%{_localstatedir}/lib/rpm-state/%{name}

# These are not actually scripts
find %{buildroot} -name '*.xml' -type f -print0 | xargs -0 chmod a-x

# Don't package static libs
# find %{buildroot} -name '*.a' -type f -print0 | xargs -0 rm -f

# Do not package these either
rm -f %{buildroot}%{_sbindir}/fence_legacy
rm -f %{buildroot}%{_mandir}/man8/fence_legacy.*

# For now, don't package the servicelog-related binaries built only for
# ppc64le when certain dependencies are installed. If they get more exercise by
# advanced users, we can reconsider.
rm -f %{buildroot}%{_sbindir}/notifyServicelogEvent
rm -f %{buildroot}%{_sbindir}/ipmiservicelogd

# Don't ship init scripts for systemd based platforms
rm -f %{buildroot}%{_initrddir}/pacemaker
rm -f %{buildroot}%{_initrddir}/pacemaker_remote

%check
{ cts/cts-scheduler --run load-stopped-loop \
  && cts/cts-cli \
  && touch .CHECKED
} 2>&1 | sed 's/[fF]ail/faiil/g'  # prevent false positives in rpmlint
[ -f .CHECKED ] && rm -f -- .CHECKED

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15131 |21mr|packagekit-1.1.13-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

%bcond_with browser_plugin

%define gstapi 1.0

%define major 18
%define gimajor 1.0
%define libname %mklibname %{name}-glib2_ %{major}
%define girname_plugin %mklibname packagekitplugin-gir %{gimajor}
%define girname %mklibname packagekitglib-gir %{gimajor}
%define devname %mklibname %{name} -d

%define oname PackageKit

# For libdnf minimal enforced dep
%global min_ldnf_ver 0.31.0
%global min_ldnf_verrel %{min_ldnf_ver}-1
%global ldnfsomajor 2

Summary:	A DBUS packaging abstraction layer
Name:		packagekit
Version:	1.1.13
Release:	4
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		http://www.packagekit.org
Source0:	https://www.freedesktop.org/software/PackageKit/releases/%{oname}-%{version}.tar.xz
Patch1:		packagekit-1.0.3-customize-vendor.patch
Patch2:		packagekit-0.8.10-increase-command-not-found-install-timeout.patch
Patch3:		CVE-2024-0217.patch
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	docbook-style-xsl
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	xsltproc
BuildRequires:	vala-tools
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{gstapi})
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libdnf) >= %{min_ldnf_ver}
BuildRequires:	pkgconfig(libsystemd)
%if %{with browser_plugin}
BuildRequires:	pkgconfig(mozilla-plugin)
%endif
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangoft2)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	vala-tools
BuildRequires:  autoconf-archive
Requires:	%{mklibname dnf %{ldnfsomajor}} >= %{min_ldnf_verrel}
# fonts package in ROSA do not have needed provides yet to be useful
Recommends:	%{name}-gtk3-module = %{EVRD}
Recommends:	packagekit-gui

Requires(post):	systemd

%description
%{oname} is a DBUS abstraction layer that allows the session user to manage
packages in a secure way using a cross-distro, cross-architecture API.

%files -f %{oname}.lang
%doc AUTHORS COPYING MAINTAINERS NEWS
%dir %{_sysconfdir}/%{oname}
%config(noreplace) %{_sysconfdir}/%{oname}/%{oname}.conf
%config(noreplace) %{_sysconfdir}/%{oname}/Vendor.conf
%config(noreplace) %{_sysconfdir}/%{oname}/CommandNotFound.conf
%{_sysconfdir}/dbus-1/system.d/*.conf
%{_bindir}/*
%{_datadir}/bash-completion/completions/pkcon
%{_datadir}/dbus-1/interfaces/*.xml
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/gtk-doc/html/%{oname}
%{_datadir}/%{oname}
%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/polkit-1/rules.d/org.freedesktop.packagekit.rules
%{_libexecdir}/packagekitd
%{_libexecdir}/packagekit-direct
%{_libexecdir}/pk-offline-update
%dir %{_libdir}/packagekit-backend
%{_libdir}/packagekit-backend/libpk_backend_dummy.so
%{_libdir}/packagekit-backend/libpk_backend_test_fail.so
%{_libdir}/packagekit-backend/libpk_backend_test_nop.so
%{_libdir}/packagekit-backend/libpk_backend_test_spawn.so
%{_libdir}/packagekit-backend/libpk_backend_test_succeed.so
%{_libdir}/packagekit-backend/libpk_backend_test_thread.so
%{_libdir}/packagekit-backend/libpk_backend_dnf.so
%{_mandir}/man1/*
%{_unitdir}/packagekit.service
%{_unitdir}/packagekit-offline-update.service
%{_unitdir}/system-update.target.wants
%dir %{_var}/lib/%{oname}
%ghost %verify(not md5 size mtime) %{_var}/lib/%{oname}/transactions.db
%dir %{_var}/cache/%{oname}
%dir %{_var}/cache/%{oname}/downloads

%post
# the job count used to live in /var/run, but it's now in /var/lib with the
# other persistent bits
if [ -e %{_localstatedir}/run/%{oname}/job_count.dat ]; then
	mv %{_localstatedir}/run/%{oname}/job_count.dat %{_localstatedir}/lib/%{oname}/job_count.dat
fi

%systemd_post packagekit-offline-update.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for accessing %{oname}
Group:		System/Configuration/Packaging

%description -n %{libname}
Libraries for accessing %{oname}.

%files -n %{libname}
%doc AUTHORS COPYING MAINTAINERS NEWS
%{_libdir}/libpackagekit-glib2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name} glib
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface library for %{name} glib.

%files -n %{girname}
%doc AUTHORS COPYING MAINTAINERS NEWS
%{_libdir}/girepository-1.0/%{oname}Glib-%{gimajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for %{oname}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and libraries for %{oname}.

%files -n %{devname}
%doc AUTHORS COPYING MAINTAINERS NEWS
%{_includedir}/%{oname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gir-1.0/%{oname}Glib-%{gimajor}.gir
%{_datadir}/vala/vapi/%{name}-glib2.vapi

#----------------------------------------------------------------------------

%package cron
Summary:	Cron job and related utilities for %{oname}
Group:		System/Configuration/Packaging
Requires:	%{name} = %{EVRD}
Requires:	crontabs

%description cron
Crontab and utilities for running %{oname} as a cron job.

%files cron
%doc AUTHORS COPYING MAINTAINERS NEWS
%config %{_sysconfdir}/cron.daily/*.cron
%config %{_sysconfdir}/sysconfig/packagekit-background

#----------------------------------------------------------------------------

%package gstreamer-plugin
Summary:	Install GStreamer codecs using %{oname}
Group:		System/Configuration/Packaging
Requires:	gstreamer%{gstapi}-tools
Requires:	%{name} = %{EVRD}
Requires(post,postun):	update-alternatives
Provides:	gst-install-plugins-helper

%description gstreamer-plugin
The %{oname} GStreamer plugin allows any Gstreamer application to install
codecs from configured repositories using %{oname}.

%files gstreamer-plugin
%doc AUTHORS COPYING MAINTAINERS NEWS
%{_libexecdir}/pk-gstreamer-install

#----------------------------------------------------------------------------

%if %{with browser_plugin}
%package browser-plugin
Summary:	Browser Plugin for %{oname}
Group:		System/Configuration/Packaging
Requires:	%{name} = %{EVRD}

%description browser-plugin
The %{oname} browser plugin allows web sites to offer the ability to
users to install and update packages from configured repositories
using %{oname}.

%files browser-plugin
%doc AUTHORS COPYING MAINTAINERS NEWS
%{_libdir}/mozilla/plugins/packagekit-plugin.*
%endif

#----------------------------------------------------------------------------

%package command-not-found
Summary:	Ask the user to install command line programs automatically
Group:		System/Configuration/Packaging
Requires:	%{name} = %{EVRD}

%description command-not-found
A simple helper that offers to install new packages on the command line
using %{oname}.

%files command-not-found
%doc AUTHORS COPYING MAINTAINERS NEWS
%{_sysconfdir}/profile.d/*
%{_libexecdir}/pk-command-not-found

#----------------------------------------------------------------------------

%package gtk2-module
Summary:	Install fonts automatically using %{oname}
Group:		System/Configuration/Packaging
Requires:	%{name} = %{EVRD}
Requires:	pango

%description gtk2-module
The %{oname} GTK2+ module allows any Pango application to install
fonts from configured repositories using %{oname}.

%files gtk2-module
%doc AUTHORS COPYING MAINTAINERS NEWS
%{_libdir}/gtk-2.0/modules/libpk-gtk-module.so

#----------------------------------------------------------------------------

%package gtk3-module
Summary:	Install fonts automatically using %{oname}
Group:		System/Configuration/Packaging
Requires:	%{name} = %{EVRD}
Requires:	pango

%description gtk3-module
The %{oname} GTK3+ module allows any Pango application to install
fonts from configured repositories using %{oname}.

%files gtk3-module
%doc AUTHORS COPYING MAINTAINERS NEWS
%{_libdir}/gnome-settings-daemon-3.0/gtk-modules/*.desktop
%{_libdir}/gtk-3.0/modules/libpk-gtk-module.so

#----------------------------------------------------------------------------

%prep
%autosetup -n %{oname}-%{version} -p1

%build
%configure \
	--disable-static \
%if %{with browser_plugin}
	--enable-browser-plugin \
%else
	--disable-browser-plugin \
%endif
	--enable-gstreamer-plugin \
	--disable-alpm \
	--disable-apt \
	--disable-box \
	--disable-conary \
	--enable-dnf \
	--enable-dummy \
	--disable-opkg \
	--disable-pisi \
	--disable-poldek \
	--disable-smart \
	--disable-urpmi \
	--enable-introspection \
	--disable-yum \
	--disable-zypp \
	--with-dnf-vendor=rosa \
	--enable-python3 \
	--enable-vala \
	--disable-tests

%make

%install
%makeinstall_std

%find_lang %{oname}

chmod -x %{buildroot}%{_sysconfdir}/cron.daily/*.cron
chmod o+r %{buildroot}%{_var}/lib/%{oname}/transactions.db

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15132 |21mr|packagekit-qt-1.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libqt5 %mklibname packagekitqt5_ %{major}
%define devqt5 %mklibname packagekitqt5 -d

Summary:	A DBUS packaging abstraction layer
Name:		packagekit-qt
Version:	1.0.2
Release:	2
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		http://www.packagekit.org
Source0:	http://www.packagekit.org/releases/PackageKit-Qt-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	packagekit >= %{version}
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	packagekit >= %{version}

%description
PackageKit is a DBUS abstraction layer that allows the session user to manage
packages in a secure way using a cross-distro, cross-architecture API.

#----------------------------------------------------------------------------

%package -n %{libqt5}
Summary:	Libraries for accessing PackageKit-Qt5
Group:		System/Configuration/Packaging

%description -n %{libqt5}
Libraries for accessing PackageKit-Qt5.

%files -n %{libqt5}
%{_libdir}/libpackagekitqt5.so.%{major}
%{_libdir}/libpackagekitqt5.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devqt5}
Summary:	Libraries and headers for PackageKit-Qt5
Group:		Development/Other
Requires:	%{libqt5} = %{EVRD}
Provides:	%{name}5-devel = %{EVRD}

%description -n %{devqt5}
Headers and libraries for PackageKit-Qt5.

%files -n %{devqt5}
%{_includedir}/packagekitqt5/
%{_libdir}/libpackagekitqt5.so
%{_libdir}/pkgconfig/packagekitqt5.pc
%{_libdir}/cmake/packagekitqt5/

#----------------------------------------------------------------------------

%prep
%setup -qn PackageKit-Qt-%{version}

%build
%cmake_qt5 -DUSE_QT5:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15133 |21mr|palapeli-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Jigsaw puzzle game
Name:		palapeli
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/palapeli/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	shared-mime-info
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Palapeli is a jigsaw puzzle game. Unlike other games in that genre, you
are not limited to aligning pieces on imaginary grids. The pieces are
freely moveable. Also, Palapeli features real persistency, i.e. everything
you do is saved on your disk immediately.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.palapeli.desktop
%{_kde5_bindir}/palapeli
%{_kde5_configdir}/palapeli-collectionrc
%{_kde5_datadir}/palapeli
%{_kde5_datadir}/qlogging-categories5/palapeli.categories
%{_kde5_datadir}/kio/servicemenus/palapeli_servicemenu.desktop
%{_kde5_iconsdir}/hicolor/*/*/*palapeli*
%{_kde5_notificationsdir}/palapeli.notifyrc
%{_appdatadir}/org.kde.palapeli.appdata.xml
%{_datadir}/mime/packages/palapeli-mimetypes.xml
%{_qt5_plugindir}/palapelislicers/palapeli_goldbergslicer.so
%{_qt5_plugindir}/palapelislicers/palapeli_jigsawslicer.so
%{_qt5_plugindir}/palapelislicers/palapeli_rectslicer.so
%{_kde5_plugindir}/thumbcreator/palathumbcreator.so

#------------------------------------------------------------------------------

%define pala_major 0
%define libpala %mklibname pala %{pala_major}

%package -n %{libpala}
Summary:	Palapeli shared library
Group:		System/Libraries

%description -n %{libpala}
Palapeli shared library.

%files -n %{libpala}
%{_kde5_libdir}/libpala.so.%{pala_major}*

#------------------------------------------------------------------------------

%define devpala %mklibname pala -d

%package -n %{devpala}
Summary:	Development files for Palapeli
Group:		Development/KDE and Qt
Requires:	%{libpala} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	kdegames4-devel < 1:4.9.80
Conflicts:	%{name}-devel < 1:17.12.3
Obsoletes:	%{name}-devel < 1:17.12.3

%description -n %{devpala}
This package provides development files for Palapeli.

%files -n %{devpala}
%{_kde5_includedir}/Pala
%{_kde5_libdir}/libpala.so
# cmake files
%{_kde5_libdir}/cmake/Pala

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15134 |21mr|pam-1.5.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define libnamec %mklibname %{name}c %{major}
%define libname_misc %mklibname %{name}_misc %{major}
%define devname %mklibname %{name} -d

%bcond_with prelude

%bcond_with bootstrap

%bcond_without selinux

%define pam_redhat_version 1.1.4

Summary:	A security tool which provides authentication for applications
Name:		pam
Version:	1.5.1
Release:	7
Epoch:		1
# The library is BSD licensed with option to relicense as GPLv2+ - this option is redundant
# as the BSD license allows that anyway. pam_timestamp and pam_console modules are GPLv2+,
License:	BSD and GPLv2+
Group:		System/Libraries
Url:		http://www.kernel.org/pub/linux/libs/pam/index.html
Source0:	https://github.com/linux-pam/linux-pam/releases/download/v%{version}/Linux-PAM-%{version}.tar.xz
Source2:	https://releases.pagure.org/pam-redhat/pam-redhat-%{pam_redhat_version}.tar.bz2
Source5:	other.pamd
Source6:	system-auth.pamd
Source7:	config-util.pamd
Source8:	dlopen.sh
Source9:	system-auth.5
Source10:	config-util.5
Source11:	postlogin.pamd
Source12:	postlogin.5
Source13:	pamtmp.conf
Source14:	90-nproc.conf
Source15:	password-auth.pamd
Source16:	smartcard-auth.pamd
#add missing documentation
Source501:	pam_tty_audit.8
Source502:	README

Patch0:		pam-1.5.1-svace-confirmed-fixes.patch

# RedHat patches
Patch1:		https://src.fedoraproject.org/rpms/pam/raw/master/f/pam-1.5.0-redhat-modules.patch
Patch9:		https://src.fedoraproject.org/rpms/pam/raw/master/f/pam-1.5.0-noflex.patch

# Upstreamed partially
Patch33:	https://src.fedoraproject.org/rpms/pam/raw/master/f/pam-1.3.0-unix-nomsg.patch
# OpenMandriva specific sources/patches

# https://github.com/linux-pam/linux-pam/pull/597
Patch41:	9facab2134a9e1142ab3c614e72eb25aaafd0dec.patch
Patch42:	cee08b7a6ea5d48f8527e3497735466e44445b66.patch
Patch43:	4fbed4be20377e5b1a6e71f572eb28ed049ed3fe.patch
Patch44:	4e8af9027dab25ebff3fa1b6e5542640611778c9.patch

# (fl) fix infinite loop
Patch507:	pam-0.74-loop.patch
# (fc) 0.75-29mdk don't complain when / is owned by root.adm
Patch508:	Linux-PAM-0.99.3.0-pamtimestampadm.patch
Patch509:	Linux-PAM-0.99.3.0-pbuild-rh.patch
# (fl) pam_xauth: set extra groups because in high security levels
#      access to /usr/X11R6/bin dir is controlled by a group
Patch512:	Linux-PAM-1.1.3-xauth-groups.patch

Patch700:	pam_fix_static_pam_console.patch
# (proyvind): add missing constant that went with rpc removal from glibc 2.14
Patch702:	Linux-PAM-1.1.4-add-now-missing-nis-constant.patch
# (akdengi> add user to default group users which need for Samba
Patch801:	Linux-PAM-1.1.4-group_add_users.patch

Patch1000:	CVE-2024-22365.patch

%if %{with selinux}
BuildRequires:	selinux-devel >= 2.1.6-7
%endif
BuildRequires:	bison
BuildRequires:	flex
%if %{without bootstrap}
# this pulls in the mega texlive load
BuildRequires:	linuxdoc-tools
%endif
BuildRequires:	cracklib-devel
BuildRequires:	libaudit-devel
BuildRequires:	db_nss-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	db-devel
BuildRequires:	html2text
BuildRequires:	docbook-dtd412-xml
BuildRequires:	docbook-dtd43-xml
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtds
BuildRequires:	xsltproc
%if %{with prelude}
BuildRequires:	prelude-devel >= 0.9.0
%else
BuildConflicts:	pkgconfig(libprelude)
%endif
Requires:	cracklib-dicts
Requires:	setup >= 2.7.12-2
Requires(post):	coreutils >= 8.12-7.2
Conflicts:	%{_lib}pam0 < 1.1.4-5
Requires:	libpwquality >= 0.9.9

%description
PAM (Pluggable Authentication Modules) is a system security tool that
allows system administrators to set authentication policy without
having to recompile programs that handle authentication.

%files -f Linux-PAM.lang
%doc NEWS
%docdir %{_docdir}/%{name}
%dir %{_sysconfdir}/pam.d
%config(noreplace) %{_sysconfdir}/environment
%config %{_sysconfdir}/pam.d/other
%attr(0644,root,shadow) %config(noreplace) %{_sysconfdir}/pam.d/system-auth
%attr(0644,root,shadow) %config(noreplace) %{_sysconfdir}/pam.d/system-auth-default
%config %{_sysconfdir}/pam.d/config-util
%config %{_sysconfdir}/pam.d/postlogin
%config %{_sysconfdir}/pam.d/password-auth
%config %{_sysconfdir}/pam.d/smartcard-auth
/sbin/pam_console_apply
/sbin/faillock
%attr(4755,root,root) /sbin/pam_timestamp_check
%attr(0755,root,root) /sbin/pwhistory_helper
%attr(4755,root,root) /sbin/unix_chkpwd
%attr(0700,root,root) /sbin/unix_update
%attr(0755,root,root) /sbin/mkhomedir_helper
%attr(0755,root,root) /sbin/pam_namespace_helper
%config(noreplace) %{_sysconfdir}/security/access.conf
%config(noreplace) %{_sysconfdir}/security/chroot.conf
%config(noreplace) %{_sysconfdir}/security/console.perms
%config(noreplace) %{_sysconfdir}/security/console.handlers
%config(noreplace) %{_sysconfdir}/security/faillock.conf
%config(noreplace) %{_sysconfdir}/security/group.conf
%config(noreplace) %{_sysconfdir}/security/limits.conf
%config(noreplace) %{_sysconfdir}/security/namespace.conf
%attr(755,root,root) %config(noreplace) %{_sysconfdir}/security/namespace.init
%config(noreplace) %{_sysconfdir}/security/pam_env.conf
%config(noreplace) %{_sysconfdir}/security/time.conf
%config(noreplace) %{_sysconfdir}/security/opasswd
%config(noreplace) %{_sysconfdir}/security/limits.d/90-nproc.conf
%if %{with selinux}
%config(noreplace) %{_sysconfdir}/security/sepermit.conf
%endif
%dir %{_sysconfdir}/security/console.apps
%dir %{_sysconfdir}/security/console.perms.d
%dir /%{_lib}/security
/%{_lib}/security/*.so
/%{_lib}/security/pam_filter
/usr/lib/tmpfiles.d/pam.conf
%{_unitdir}/pam_namespace.service
%ghost %dir /var/run/console
%ghost /var/log/tallylog
%{_mandir}/man5/*
%{_mandir}/man8/*

%posttrans
# (cg) Ensure that the pam_systemd.so is included for user ACLs under systemd
# Note: Only affects upgrades, but does no harm so always update if needed.
if ! grep -q "pam_systemd\.so" /etc/pam.d/system-auth; then
        echo "-session    optional      pam_systemd.so" >>/etc/pam.d/system-auth
fi

if [ ! -a /var/log/tallylog ] ; then
       install -m 600 /dev/null /var/log/tallylog
fi

#----------------------------------------------------------------------------

%package doc
Summary:	Additional documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
This is the documentation package of %{name}.

%files doc
%doc doc/txts doc/specs/rfc86.0.txt Copyright
%doc %{_docdir}/%{name}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
Conflicts:	pam < 1.1.4-5

%description -n %{libname}
This package contains the library libpam for %{name}.

%files -n %{libname}
/%{_lib}/libpam.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamec}
Summary:	Library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}pam0 < 1.1.4-5

%description -n %{libnamec}
This package contains the library libpamc for %{name}.

%files -n %{libnamec}
/%{_lib}/libpamc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_misc}
Summary:	Library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}pam0 < 1.1.4-5

%description -n %{libname_misc}
This package contains the library libpam_misc for %{name}.

%files -n %{libname_misc}
/%{_lib}/libpam_misc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamec} = %{EVRD}
Requires:	%{libname_misc} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
PAM (Pluggable Authentication Modules) is a system security tool that
allows system administrators to set authentication policy without
having to recompile programs that handle authentication.

This package contains the development libraries for %{name}.

%files -n %{devname}
%doc Copyright
/%{_lib}/libpam.so
/%{_lib}/libpam_misc.so
/%{_lib}/libpamc.so
%{_includedir}/security/*.h
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n Linux-PAM-%{version} -a 2

# Add custom modules.
mv pam-redhat-%{pam_redhat_version}/* modules

%autopatch -p1
sed -i 's!$(prefix)/lib/systemd/system!%{_unitdir}!g' modules/pam_namespace/Makefile.*
# replace /var/run with /run
find . -type f -exec sed -i 's!/var/run!/run!g' {} \;

install -m644 %{SOURCE501} %{SOURCE502} modules/pam_tty_audit/

# We have non upstream translation for version 1.3.0
# Replace original po/ru.po with our fork.
# Ported to upstream git master:
# https://github.com/linux-pam/linux-pam/pull/152
rm -rf doc/txts/README.pam_tally*
rm -rf doc/sag/html/*pam_tally*

touch ChangeLog # to make autoreconf happy
autoreconf -fi -I m4

%build
autoreconf -fi
export BROWSER=""
%configure \
	--sbindir=/sbin \
	--libdir=/%{_lib} \
	--includedir=%{_includedir}/security \
	--with-db-uniquename=_nss \
	--docdir=%{_docdir}/%{name} \
	--disable-static \
	--enable-cracklib \
	--enable-docu --enable-regenerate-docu \
%if %{with prelude}
	--enable-prelude \
%else
	--disable-prelude \
%endif
%if %{with selinux}
	--enable-selinux \
%else
	--disable-selinux \
%endif
	--enable-audit

%make_build

%install
mkdir -p doc/txts
for readme in modules/pam_*/README ; do
        cp -f ${readme} doc/txts/README.`dirname ${readme} | sed -e 's|^modules/||'`
done

mkdir -p %{buildroot}%{_includedir}/security
mkdir -p %{buildroot}/%{_lib}/security
%make_install LDCONFIG=:
install -d -m 755 %{buildroot}/etc/pam.d
install -m 644 %{SOURCE5} %{buildroot}/etc/pam.d/other
install -m 644 %{SOURCE6} %{buildroot}/etc/pam.d/system-auth
install -m 644 %{SOURCE7} %{buildroot}/etc/pam.d/config-util
install -m 644 %{SOURCE11} %{buildroot}/etc/pam.d/postlogin
install -m 644 %{SOURCE15} %{buildroot}/etc/pam.d/password-auth
install -m 644 %{SOURCE16} %{buildroot}/etc/pam.d/smartcard-auth
install -m 600 /dev/null %{buildroot}%{_sysconfdir}/security/opasswd
install -d -m 755 %{buildroot}/var/log
install -m 600 /dev/null %{buildroot}/var/log/tallylog
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/security/limits.d/90-nproc.conf

# Install man pages.
install -m 644 %{SOURCE9} %{SOURCE10} %{SOURCE12} %{buildroot}%{_mandir}/man5/

# no longer needed, handled by ACL in udev
for phase in auth acct passwd session ; do
        ln -sf pam_unix.so %{buildroot}/%{_lib}/security/pam_unix_${phase}.so
done

# cleanup
rm -f %{buildroot}/%{_lib}/security/*.la
rm -f %{buildroot}/%{_lib}/*.la

#Set suid bit for /sbin/unix_chkpwd (bug #3169)
chmod u+s %{buildroot}/sbin/unix_chkpwd

# Install the file for autocreation of /var/run subdirectories on boot
mkdir -p %{buildroot}%{_prefix}/lib/tmfiles.d/
install -m644 -D %{SOURCE13} %{buildroot}%{_prefix}/lib/tmpfiles.d/pam.conf

# For drakauth copy system-auth to system-auth-default
cp -f %{buildroot}/etc/pam.d/system-auth %{buildroot}/etc/pam.d/system-auth-default

# Localize format of last login time (shown by pam_latslog in e.g. gdm)
# These are arguements of strftime(). Here "Пт дек  9 11:31:43 MSK 2022"
# is changed to "Пт,  9 декабря 11:32" (ask Survolog@, I (mikhailnov@) do not understand)
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=13004
pushd %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES
	msgunfmt Linux-PAM.mo -o Linux-PAM.po
	rm -f Linux-PAM.mo
	# \x25 - symbol %%, info about %%a, %%e, %%B etc. in man date.
	sed -i "/msgstr/ s/ \x25a \x25b \x25e \x25H:\x25M:\x25S \x25Z \x25Y/ \x25a, \x25e \x25B \x25H:\x25M/" Linux-PAM.po
	sed -i "/msgstr/ s/Последний вход в систему:/Последний вход:/" Linux-PAM.po
	msgfmt Linux-PAM.po -o Linux-PAM.mo
	rm -f Linux-PAM.po
popd

%find_lang Linux-PAM

%check
EXCEPT=''
%if %{without selinux}
    EXCEPT='pam_selinux'
%endif
for dir in modules/pam_* ; do
    if ![[ ${dir} =~ "${except}" ]]; then
        if ! ls -1 %{buildroot}/%{_lib}/security/`basename ${dir}`*.so ; then
            echo ERROR `basename ${dir}` did not build a module.
            exit 1
        fi
    fi
done

# Check for module problems.  Specifically, check that every module we just
# installed can actually be loaded by a minimal PAM-aware application.
/sbin/ldconfig -n %{buildroot}/%{_lib}
for module in %{buildroot}/%{_lib}/security/pam*.so ; do
    if ! env LD_LIBRARY_PATH=%{buildroot}/%{_lib} \
        sh %{SOURCE8} -ldb -ldl -lpam -L%{buildroot}/%{_lib} ${module} ; then
        echo ERROR module: ${module} cannot be loaded.
        exit 1
    fi
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15135 |21mr|pam_ccreds-10-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A caching pam module for disconnected operation
Name:		pam_ccreds
Version:	10
Release:	16
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.padl.com/
Source0: 	http://www.padl.com/download/%{name}-%{version}.tar.gz
Patch0:		pam_ccreds-10-dbnss.patch
Patch1:		pam_ccreds-strdup.patch
Patch2:		pam_ccreds-automake-1.13.patch
BuildRequires:	db_nss-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(openssl)

%description
The pam_ccreds module provides a mechanism for caching credentials when
authenticating against a network authentication service, so that
authentication can still proceed when the service is down. Note at present
no mechanism is provided for caching _authorization_ information, i.e.
whether you are allowed to login once authenticated. Doing this is more
difficult than it first sounds.

%files
%doc AUTHORS README ChangeLog pam.conf
%attr(4755,root,root) %{_sbindir}/ccreds_chkpwd
%{_sbindir}/cc_dump
%{_sbindir}/cc_test
/%{_lib}/security/pam_ccreds.so
%ghost /var/cache/.security.db

%post
if [ ! -f /var/cache/.security.db ]; then
%{_sbindir}/cc_test -update any root - > /dev/null 2>/dev/null || :
fi

#----------------------------------------------------------------------------

%prep
%setup -q
rm -f acconfig.h
%apply_patches

%build
autoreconf -fi
%configure --libdir=/%{_lib}
make

%install
mkdir -p %{buildroot}/%{_lib}/security
mkdir -p %{buildroot}/%{_sbindir}
install pam_ccreds.so %{buildroot}/%{_lib}/security
install cc_dump cc_test %{buildroot}/%{_sbindir}
install ccreds_chkpwd %{buildroot}/%{_sbindir}
mkdir -p %{buildroot}/var/cache
touch %{buildroot}/var/cache/.security.db

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15136 |21mr|pam-config-1.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _pamdir %{_sysconfdir}/pam.d
%define _rpmlibdir %{_localstatedir}/lib/rpm/filetriggers

Name:		pam-config
Version:	1.9.0
Release:	2

Summary:	Systemwide PAM config files for Linux-PAM
License:	GPLv2+
Group:		System/Base
Source0: %{name}-%{version}.tar
BuildArch:	noarch
Source2: pam_mktemp.control
Source3: system-auth.control
Source4: system-auth-chooser.in
Source5: system-policy.control
Source6: system-auth.filetrigger
Source7: system-policy.filetrigger
Source8: pam_access.control
BuildRequires: control

Requires(pre,postun): %{name}-control = %{version}-%{release}
Requires:	pam_tcb >= 1.1.0.1
Provides:	%{_pamdir}, /etc/security
Provides:	pam-common = %{version}-%{release}
Obsoletes:	pam-common < %{version}-%{release}
Provides:	pam0-config = %{version}-%{release}
Obsoletes:	pam0-config < %{version}-%{release}
# Compatibility.
Provides:	pam(system-auth), pam(system-auth-use_first_pass), pam(other)

# These requirements are optional.
%filter_from_requires /^PAM(pam_\(ccreds\|krb5\|ldap\|pkcs11\|winbind\)\.so)/d

# due to %_pamdir/other
Conflicts:	pam < 0:0.75-alt21
# due to pam_mktemp.so
Conflicts:	openssh-server < 0:4.6p1

%description
PAM (Pluggable Authentication Modules) is a system security tool
which allows system administrators to set authentication policy
without having to recompile programs which do authentication.

This package contains systemwide config files for Linux-PAM.

%files
%dir %{_pamdir}
%config(noreplace) %{_pamdir}/system-auth-common
%config(noreplace) %{_pamdir}/*-local
%config(noreplace) %{_pamdir}/*-only
%config(noreplace) %{_pamdir}/*-ldap
%config(noreplace) %{_pamdir}/*-krb5
%config(noreplace) %{_pamdir}/*-krb5_ccreds
%config(noreplace) %{_pamdir}/*-multi
%config(noreplace) %{_pamdir}/*-pkcs11
%config(noreplace) %{_pamdir}/system-auth-winbind-pam-config
%config(noreplace) %{_pamdir}/system-auth-use_first_pass-winbind
%config(noreplace) %{_pamdir}/*-remote
%config(noreplace) %{_pamdir}/common-login*
%{_pamdir}/system-auth-use_first_pass
%{_pamdir}/system-policy
%{_rpmlibdir}/system-auth.filetrigger
%{_rpmlibdir}/system-policy.filetrigger
/etc/security

#---------------------------------------------------------
%package control
Summary: Control rules for the systemwide PAM config files
Group: System/Base

%description control
This package contains control rules for systemwide PAM config files.
See control(8) for details.

%files control
%config %{_controldir}/*

#---------------------------------------------------------

%prep
%setup -q

%build
template='%{_sourcedir}/system-auth-chooser.in'
for only in system-auth-*-only; do
	target="${only%%-only}"
	method="${target##*-}"
	[ "$method" != 'local' ] || continue
	base="${target%%-$method}"
	{
		echo '#%%PAM-1.0'
		for type in auth account password session; do
			grep -q "^$type" "$only" || continue
			sed -e "s/@TYPE@/$type/" \
			    -e "s/@BASE@/$base/" \
			    -e "s/@METHOD@/$method/" \
			    "$template"
		done
	} > "$target"
done

%install
mkdir -p %{buildroot}{%{_pamdir},%{_controldir},/etc/security}

cp -a * %{buildroot}%{_pamdir}/
chmod 644 %{buildroot}%{_pamdir}/*

for f in pam_access pam_mktemp system-policy; do
	install -pm755 %{_sourcedir}/$f.control %{buildroot}%{_controldir}/$f
done

for f in system-auth system-policy; do
	install -Dm0755 %{_sourcedir}/$f.filetrigger %{buildroot}%{_rpmlibdir}/$f.filetrigger
done

# this file provided in pam package
rm %{buildroot}%{_pamdir}/other
rm %{buildroot}%{_pamdir}/system-auth

#temporary rename file for avoid conflict with samba-winbind
mv %{buildroot}%{_pamdir}/system-auth-winbind %{buildroot}%{_pamdir}/system-auth-winbind-pam-config

%pre
%pre_control pam_mktemp
%pre_control pam_access
for f in %{_pamdir}/system-auth-use_first_pass %{_pamdir}/system-policy; do
	if [ -f "$f" -a ! -L "$f" ]; then
		mv -f "$f" "$f-local" &&
		ln -f "$f-local" "$f-local.rpmsave" &&
		touch "/var/run/${f##*/}-local.update" &&
		ln -s "${f##*/}-local" "$f" ||:
	fi
done
if [ -f "%{_pamdir}/system-policy" ]; then
	%pre_control system-policy
fi

%post
cd %{_pamdir}
for f in system-auth-use_first_pass system-policy; do
	if [ -f "/var/run/$f-local.update" -a -f "$f-local.rpmsave" ]; then
		[ -f "$f-local.rpmnew" ] ||
			ln -f "$f-local" "$f-local.rpmnew" ||:
		mv -f "$f-local.rpmsave" "$f-local" &&
			rm -f "/var/run/$f-local.update" ||:
		cmp -s "$f-local" "$f-local.rpmnew" &&
			rm -f "$f-local.rpmnew" ||:
	fi
done
for f in system-policy; do
	if [ ! -f "$f" ]; then
		if [ -f "$f.rpmsave" ]; then
			cp -af "$f.rpmsave" "$f"
		elif [ -f "$f.rpmnew" ]; then
			cp -af "$f.rpmnew" "$f"
		fi
	fi
done
%post_control -s local
if [ $1 -ge 2 ]; then
	status_dir='/var/run/control'
	status_file="$status_dir/system-policy"
	[ -f "$status_file" ] || {
		mkdir -p "$status_dir"
		if [ "$(/usr/sbin/control system-auth)" = "local" ]; then
			echo local
		else
			echo remote
		fi > "$status_file"
	}
fi
%post_control -s local system-policy
%post_control -s enabled pam_mktemp
%post_control -s disabled pam_access

%triggerpostun -- pam <= 0:0.75-alt8
[ $2 -gt 0 ] || exit 0
cd %{_pamdir}
if [ ! -f system-auth ]; then
	if [ -f system-auth.rpmsave ]; then
		cp -pf system-auth.rpmsave system-auth
	elif [ -f system-auth.rpmnew ]; then
		cp -pf system-auth.rpmnew system-auth
	fi
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15137 |21mr|pam_krb5-2.4.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Pluggable Authentication Module for Kerberos 5
Name:		pam_krb5
Version:	2.4.13
Release:	2
License:	LGPL
Group:		System/Libraries
Url:		https://pagure.io/pam_krb5
Source0:	https://releases.pagure.org/pam_krb5/pam_krb5-%{version}.tar.gz
# Note: there is a fork of pam_krb5:
# https://www.eyrie.org/~eagle/software/pam-krb5/
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libkeyutils)

%description 
This is pam_krb5, a pluggable authentication module that can be used with
Linux-PAM and Kerberos 5. This module supports password checking, ticket
creation, and optional TGT verification and conversion to Kerberos IV tickets.
The included pam_krb5afs module also gets AFS tokens if so configured.

%files -f %{name}.lang
%doc AUTHORS README* COPYING ChangeLog TODO
/%{_lib}/security/*
%{_bindir}/afs5log
%{_mandir}/man?/*

#------------------------------------------------------------------

%prep
%setup -q

%build
# Build flags are alike Fedora
%configure \
    --libdir=/%{_lib}					\
    --with-os-distribution="ROSA Linux"			\
    --enable-default-ccname-template=DIR:/run/user/%%U/krb5cc \
    --with-default-use-shmem="sshd"			\
    --with-default-external="sshd sshd-rekey gssftp"	\
    --with-default-multiple-ccaches="su su-l"		\
    -with-default-no-cred-session="sshd"
%make

%install
%makeinstall_std mandir=%{_mandir}

ln -s pam_krb5.so %{buildroot}/%{_lib}/security/pam_krb5afs.so

# cleanup
rm -f %{buildroot}/%{_lib}/security/*.la
rm -f pam.d/Makefile*

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15138 |21mr|pam_ldap-186-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with dnsconfig

Summary:	NSS library and PAM module for LDAP
Name:		pam_ldap
Version:	186
Release:	15
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.padl.com/
Source0:	http://www.padl.com/download/%{name}-%{version}.tar.gz
Source1:	resolve.c
Source2:	resolve.h
Source3:	snprintf.h
Source4:	snprintf.c
Patch2:		pam_ldap-156-makefile.patch
Patch3:		pam_ldap-176-dnsconfig.patch
# http://bugzilla.padl.com/show_bug.cgi?id=324
Patch4:		pam_ldap-184-lockoutmsg.patch
Patch5:		pam_ldap-186-automake1.13-fix.patch
Patch6:		pam_ldap-186-fix-build-versstring.patch
#BuildRequires:	db_nss-devel >= 4.2.52-5mdk
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
Requires:	nss_ldap >= 217

%description
Pam_ldap is a module for Linux-PAM that supports password changes, V2
clients, Netscapes SSL, ypldapd, Netscape Directory Server password
policies, access authorization, crypted hashes, etc.

Install pam_ldap if you need to authenticate PAM-enabled services to
LDAP.

%if !%{with dnsconfig}
This package can be compiled with support for configuration
from DNS, by building with "--with dnsconfig"
%else
This package is built with DNS configuration support
%endif

%files
%doc AUTHORS ChangeLog README pam.d chsh chfn ldap.conf
/%{_lib}/security/*so*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch2 -p1 -b .pam_makefile~
%patch4 -p1 -b .lockoutmsg~

%if %{with dnsconfig}
%patch3 -p1 -b .dnsconfig
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4}
%endif
%patch5 -p1 -b .am113~
%patch6 -p1 -b .vers_string~

%build
autoreconf -fiv
%serverbuild
%configure \
	--with-ldap-lib=openldap \
	--libdir=/%{_lib}
%make

%install
%makeinstall_std

# Remove unpackaged file
rm %{buildroot}%{_sysconfdir}/ldap.conf 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15139 |21mr|pam_mount-2.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cryptmount %{major}
%define devname %mklibname cryptmount -d

Summary:	Pluggable Authentication Module for dynamic mounting of remote volumes
Name:		pam_mount
Version:	2.16
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Networking/Other
Url:		http://pam-mount.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/pam-mount/%{name}-%{version}.tar.xz
Source1:	http://prdownloads.sourceforge.net/pam-mount/%{name}-%{version}.tar.asc
#Prevents multiple mount of the same mount point in case of not
#unmounting (see #15479)
Patch0:		pam_mount-2.15-ismountpoint.patch
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libcrypto) >= 0.9.8
BuildRequires:	pkgconfig(libcryptsetup) >= 1.1.2
BuildRequires:	pkgconfig(libHX) >= 3.12.1
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.6
BuildRequires:	pkgconfig(mount) >= 2.20
Requires:	hxtools-system
Requires:	opensc

%description
Pam_mount is a PAM module that allows dynamic remote volume mounting.
It is useful for users that have private volumes in Samba / Windows NT
/ Netware servers and need access to them during a Unix session. It
can also be used to transparently mount encrypted volumes using your
logging credentials.

%files
%doc doc/news.txt doc/bugs.txt doc/options.txt 
%doc doc/faq.txt doc/todo.txt doc/pam_mount.txt
/%{_lib}/security/pam_mount*.so
%{_sbindir}/pmt-ehd
%{_sbindir}/pmvarrun
/sbin/mount.crypt
/sbin/mount.crypto_LUKS
/sbin/mount.crypt_LUKS
/sbin/umount.crypt
/sbin/umount.crypt_LUKS
/sbin/umount.crypto_LUKS
%config(noreplace) %{_sysconfdir}/security/%{name}.conf.xml
%{_mandir}/man8/pam_mount.8*
%{_mandir}/man8/pmt-ehd.8*
%{_mandir}/man8/pmvarrun.8*
%{_mandir}/man8/mount.crypt.8*
%{_mandir}/man8/mount.crypt_LUKS.8*
%{_mandir}/man8/mount.crypto_LUKS.8*
%{_mandir}/man8/umount.crypt.8*
%{_mandir}/man8/umount.crypt_LUKS.8*
%{_mandir}/man8/umount.crypto_LUKS.8*
%{_mandir}/man5/pam_mount.conf.5*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains shared libs for %{name}.

%files -n %{libname}
%{_libdir}/libcryptmount.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_includedir}/libcryptmount.h
%{_libdir}/libcryptmount.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p1

%build
%configure \
	--disable-static
%make moduledir=/%{_lib}/security

%install
%makeinstall_std moduledir=/%{_lib}/security
install -m0644 config/pam_mount.conf.xml -D %{buildroot}%{_sysconfdir}/security/pam_mount.conf.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15140 |21mr|pam_p11-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# autoreconf is enough
%define _disable_rebuild_configure 1

Summary:	foo
Name:		pam_p11
Version:	0.3.1
Release:	1
License:	LGPL
Group:		System/Base
Url:		https://github.com/OpenSC/pam_p11
Source0:	https://github.com/OpenSC/pam_p11/archive/refs/tags/pam_p11-%{version}.tar.gz
# https://github.com/OpenSC/pam_p11/pull/23
Patch0001:	0001-Add-Russian-localization.patch
BuildRequires:	pkgconfig(libp11)
BuildRequires:	autoconf
BuildRequires:	gettext-devel
BuildRequires:	pam-devel

%description
Pam_p11 is a plugable authentication module (pam) package for using crpytographic
tokens such as smart cards and USB crypto tokens for authentication.

Pam_p11 uses libp11 to access any PKCS#11 module.
It should be compatible with any implementation,
but it is primarely developed using OpenSC.

Pam_p11 implements two authentication methods:
* verify a token using a known public key found in OpenSSH's ~/.ssh/authorized_keys.
* verify a token using a known certificate found in ~/.eid/authorized_certificates.

Pam_p11 is very simple, it has no config file, does not know about certificate chains,
certificate authorities, revocation lists or OCSP.
Perfect for the small installation with no frills.

%files -f %{name}.lang
%license COPYING
%doc README.md NEWS
/%{_lib}/security/pam_p11.so

#------------------------------------------------------------------

%prep
%autosetup -p1 -n pam_p11-pam_p11-%{version}

%build
autoreconf -if
%configure --with-pamdir=/%{_lib}/security
%make

%install
%makeinstall_std
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15141 |21mr|pam_pkcs11-0.6.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# autoreconf is enough
%define _disable_rebuild_configure 1

Summary:	A Pluggable Authentication Module for pkcs#11 environments
Name:		pam_pkcs11
Version:	0.6.12
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/OpenSC/pam_pkcs11
Source0:	https://github.com/OpenSC/pam_pkcs11/archive/refs/tags/pam_pkcs11-%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	libldap-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(openssl)
Provides:	pkcs11_login = %{EVRD}
Provides:	pam_pkcs11_login = %{EVRD}

%description
This Linux-PAM login module allows a X.509 certificate based user login.
The certificate and its dedicated private key are thereby accessed by means
of an appropriate PKCS #11 module. For the verification of the users'
certificates, locally stored CA certificates as well as either online or
locally accessible CRLs are used.

%files
%license COPYING
%doc %{_docdir}/pam_pkcs11*
%{_mandir}/man8/*
%{_sysconfdir}/pam_pkcs11/cacerts
%{_sysconfdir}/pam_pkcs11/crls
%dir %{_sysconfdir}/pam_pkcs11
%config(noreplace) %{_sysconfdir}/pam_pkcs11/pam_pkcs11.conf
%{_libdir}/pam_pkcs11/*.so
/%{_lib}/security/*
%{_bindir}/pkcs11_make_hash_link

#----------------------------------------------------------------------------

%package tools
Summary:	Companion tools for pkcs11_login
Group:		System/Libraries
Requires:	pcsc-lite
Requires:	pam_pkcs11
Provides:	pkcs11_login-tools = %{EVRD}
Provides:	pam_pkcs11_login-tools = %{EVRD}

%description tools
This package contains several pam_pkcs11 related tools
- card_eventmgr: Generate card insert/removal events (pcsc-lite based)
- pkcs11_eventmgr: Generate actions on card insert/removal/timeout events
- pklogin_finder: Get the loginname that maps to a certificate
- pkcs11_inspect: Inspect the contents of a certificate

%files tools -f %{name}.lang
%license COPYING
%doc doc/README.eventmgr
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/pam_pkcs11/card_eventmgr.conf
%config(noreplace) %{_sysconfdir}/pam_pkcs11/pkcs11_eventmgr.conf
%{_bindir}/pkcs11_listcerts
%{_bindir}/pkcs11_setup
%{_bindir}/card_eventmgr
%{_bindir}/pkcs11_eventmgr
%{_bindir}/pklogin_finder
%{_bindir}/pkcs11_inspect

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n pam_pkcs11-pam_pkcs11-%{version}

%build
./bootstrap
%configure \
	--without-curl \
	--with-ldap \
	--with-pcsclite \
	--disable-static

%make

%install
%makeinstall_std mandir=%{_mandir}

# Hardcoded defaults... no sysconfdir
install -dm 755 %{buildroot}/%{_sysconfdir}/pam_pkcs11/cacerts
install -dm 755 %{buildroot}/%{_sysconfdir}/pam_pkcs11/crls
install -m 644 etc/pam_pkcs11.conf.example %{buildroot}/%{_sysconfdir}/pam_pkcs11/pam_pkcs11.conf
install -m 644 etc/card_eventmgr.conf.example %{buildroot}/%{_sysconfdir}/pam_pkcs11/card_eventmgr.conf
install -m 644 etc/pkcs11_eventmgr.conf.example %{buildroot}/%{_sysconfdir}/pam_pkcs11/pkcs11_eventmgr.conf

# fix path to opensc: /usr/lib -> /usr/lib64
sed -i -e 's,/usr/lib/,%{_libdir}/,g' %{buildroot}%{_sysconfdir}/pam_pkcs11/pam_pkcs11.conf

# move pam module to its place
mkdir -p %{buildroot}/%{_lib}/security
mv %{buildroot}%{_libdir}/security/* %{buildroot}/%{_lib}/security/

mkdir %{buildroot}%{_datadir}/doc/%{name}-tools/
mv %{buildroot}%{_datadir}/doc/pam_pkcs11/card_eventmgr.conf.example %{buildroot}%{_datadir}/doc/pam_pkcs11/pkcs11_eventmgr.conf.example %{buildroot}%{_datadir}/doc/%{name}-tools/

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15142 |21mr|pam_userpass-1.0.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	PAM module for USER/PASS-style protocols
Name:		pam_userpass
Version:	1.0.2
Release:	15
License:	relaxed BSD and (L)GPL-compatible
Group:		System/Libraries
Url: 		http://www.openwall.com/pam
Source0:	ftp://ftp.openwall.com/pub/projects/pam/modules/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pam-devel
Conflicts:	%{_lib}pam_userpass1 < 1.0.2-11

%description
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing to verify
a username/password pair.  This module doesn't do any actual
authentication, -- other modules, such as pam_tcb, should be stacked
after it to provide the authentication.

%files
%doc LICENSE README
/%{_lib}/security/pam_userpass.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PAM module for USER/PASS-style protocols
Group:		System/Libraries

%description -n %{libname}
pam_userpass is a PAM authentication module for use specifically by
services implementing non-interactive protocols and wishing to verify
a username/password pair.  This module doesn't do any actual
authentication, -- other modules, such as pam_tcb, should be stacked
after it to provide the authentication.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for developing pam_userpass-aware applications
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	pam-devel
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development libraries and header files required
for building pam_userpass-aware applications.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/security/*

#----------------------------------------------------------------------------

%prep
%setup -q
find . -perm 0600 -exec chmod 0644 '{}' \;

%build
%make \
	CFLAGS="-Wall -fPIC %{optflags} -Iinclude" \
	LDFLAGS="%{ldflags}"

%install
%make install DESTDIR="%{buildroot}" SECUREDIR=/%{_lib}/security LIBDIR=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15143 |21mr|pam_wrapper-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname pamtest %{major}
%define devname %mklibname pamtest -d

Summary:	A tool to test PAM applications and PAM modules
Name:		pam_wrapper
Version:	1.1.3
Release:	1
License:	GPLv3+
Group:		System/Libraries
Url:		http://cwrap.org/
Source0:	https://ftp.samba.org/pub/cwrap/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	gnupg2
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(cmocka)
BuildRequires:	pkgconfig(python3)

%description
This component of cwrap allows you to either test your PAM (Linux-PAM
and OpenPAM) application or module.

For testing PAM applications, simple PAM module called pam_matrix is
included. If you plan to test a PAM module you can use the pamtest library,
which simplifies testing of modules. You can combine it with the cmocka
unit testing framework or you can use the provided Python bindings to
write tests for your module in Python.

%files
%{_libdir}/cmake/%{name}/%{name}-config.cmake
%{_libdir}/cmake/%{name}/%{name}-config-version.cmake
%{_libdir}/lib%{name}.so*
%{_libdir}/%{name}/pam_chatty.so
%{_libdir}/%{name}/pam_get_items.so
%{_libdir}/%{name}/pam_matrix.so
%{_libdir}/%{name}/pam_set_items.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man1/%{name}.1*
%{_mandir}/man8/pam_chatty.8*
%{_mandir}/man8/pam_get_items.8*
%{_mandir}/man8/pam_matrix.8*
%{_mandir}/man8/pam_set_items.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A tool to test PAM applications and PAM modules
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
If you plan to test a PAM module you can use this library, which simplifies
testing of modules.

%files -n %{libname}
%{_libdir}/libpamtest.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A tool to test PAM applications and PAM modules
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{devname}
If you plan to develop tests for a PAM module you can use this library,
which simplifies testing of modules. This sub package includes the header
files for libpamtest.

%files -n %{devname}
%{_includedir}/libpamtest.h
%{_libdir}/cmake/pamtest/pamtest-config.cmake
%{_libdir}/cmake/pamtest/pamtest-config-relwithdebinfo.cmake
%{_libdir}/cmake/pamtest/pamtest-config-version.cmake
%{_libdir}/libpamtest.so
%{_libdir}/pkgconfig/libpamtest.pc

#----------------------------------------------------------------------------

%package -n python3-libpamtest
Summary:	A python wrapper for libpamtest
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n python3-libpamtest
If you plan to develop python tests for a PAM module you can use this
library, which simplifies testing of modules. This subpackage includes
the header files for libpamtest.

%files -n python3-libpamtest
%{python3_sitearch}/pypamtest.so


#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%cmake \
	-DUNIT_TESTING=ON	\
	-DCMAKE_BUILD_TYPE=RelWithDebInfo
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15144 |21mr|pam_yubico-2.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

Summary:	Provides support for One Time Passwords (OTP) authentication
Name:		pam_yubico
Version:	2.4
Release:	7
License:	GPLv2
Group:		System/Libraries
URL:		http://code.google.com/p/yubico-pam/
Source0:	http://yubico-pam.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:  openldap-devel
BuildRequires:  pam-devel
BuildRequires:  ykclient-devel >= 2.3

%description
The Yubico authentication device Yubikey generates one-time passwords that can
be used for authentication. This module allows you to use the Yubikey device to
authenticate to the PAM system.

The Yubico PAM module provides an easy way to integrate the Yubikey into your
existing user authentication infrastructure.

%prep

%setup -q -n %{name}-%{version}

%build
%serverbuild

%configure \
    --libdir=/%{_lib} \
    --with-pam-dir=/%{_lib}/security

%make

%install
rm -rf %{buildroot}

%makeinstall_std

# cleanup
rm -f %{buildroot}/%{_lib}/security/*.*a

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING ChangeLog NEWS README
%attr(0755,root,root) /%{_lib}/security/pam_yubico.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15145 |21mr|pango-1.50.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 1.0
%define major 0

%define libname %mklibname %{name} %{api} %{major}
%define libcairo %mklibname %{name}cairo %{api} %{major}
%define libft2 %mklibname %{name}ft2_ %{api} %{major}
%define libxft %mklibname %{name}xft %{api} %{major}

%define girname %mklibname %{name}-gir %{api}
%define gircairo %mklibname %{name}cairo-gir %{api}
%define girft2 %mklibname %{name}ft2-gir %{api}
%define girxft %mklibname %{name}xft-gir %{api}
%define girfc %mklibname %{name}fc-gir %{api}
%define girot %mklibname %{name}ot-gir %{api}

%define devname %mklibname -d %{name} %{api}
%define devcairo %mklibname -d %{name}cairo %{api}
%define devft2 %mklibname -d %{name}ft2_ %{api}
%define devx %mklibname -d %{name}x %{api}
%define devxft %mklibname -d %{name}xft %{api}

Summary:	System for layout and rendering of internationalized text
Name:		pango
# Do not update to 1.44+ until the issue is resolved:
# https://www.opennet.ru/opennews/art.shtml?num=52922
# But yet
Version:	1.50.8
Release:	1
License:	LGPLv2+
Group:		System/Internationalization
Url:		https://download.gnome.org/sources/pango
Source0:	https://download.gnome.org/sources/pango/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libthai)
BuildRequires:	pkgconfig(xft)
BuildRequires:	meson

%description
A library to handle unicode strings as well as complex bidirectional
or context dependent shaped strings.
It is the next step on Gtk+ internationalization.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Internationalized text layout and rendering system
Group:		System/Libraries
Provides:	%{_lib}pango-modules1.0 = %{EVRD}
Provides:	pango = %{EVRD}
Provides:	pango-modules = %{EVRD}

%description -n %{libname}
A library to handle unicode strings as well as complex bidirectional
or context dependent shaped strings.
It is the next step on Gtk+ internationalization.

%files -n %{libname}
%{_libdir}/libpango-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcairo}
Summary:	Internationalized text layout and rendering system - cairo
Group:		System/Libraries

%description -n %{libcairo}
Library for %{name} - cairo.

%files -n %{libcairo}
%{_libdir}/libpangocairo-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libft2}
Summary:	Internationalized text layout and rendering system - ft2
Group:		System/Libraries

%description -n %{libft2}
Library for %{name} - ft2.

%files -n %{libft2}
%{_libdir}/libpangoft2-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libxft}
Summary:	Internationalized text layout and rendering system - xft
Group:		System/Libraries

%description -n %{libxft}
Library for %{name} - xft.

%files -n %{libxft}
%{_libdir}/libpangoxft-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Pango-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{gircairo}
Summary:	GObject Introspection interface description for %{name} - cairo
Group:		System/Libraries

%description -n %{gircairo}
GObject Introspection interface description for %{name} - cairo.

%files -n %{gircairo}
%{_libdir}/girepository-1.0/PangoCairo-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girft2}
Summary:	GObject Introspection interface description for %{name} - ft2
Group:		System/Libraries

%description -n %{girft2}
GObject Introspection interface description for %{name} - ft2.

%files -n %{girft2}
%{_libdir}/girepository-1.0/PangoFT2-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girxft}
Summary:	GObject Introspection interface description for %{name} - xft
Group:		System/Libraries

%description -n %{girxft}
GObject Introspection interface description for %{name} - xft.

%files -n %{girxft}
%{_libdir}/girepository-1.0/PangoXft-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girfc}
Summary:	GObject Introspection interface description for %{name} - fc
Group:		System/Libraries

%description -n %{girfc}
GObject Introspection interface description for %{name} - fc.

%files -n %{girfc}
%{_libdir}/girepository-1.0/PangoFc-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{girot}
Summary:	GObject Introspection interface description for %{name} - ot
Group:		System/Libraries

%description -n %{girot}
GObject Introspection interface description for %{name} - ot.

%files -n %{girot}
%{_libdir}/girepository-1.0/PangoOT-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Internationalized text layout and rendering system
Group:		Development/GNOME and GTK+
%rename		pango-devel
%rename		pango-doc
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package includes the development library and header files
for the %{name} package.

%files -n %{devname}
%if %{with docs}
%doc %{_datadir}/gtk-doc/html/pango
%endif
%doc NEWS
%{_bindir}/pango-list
%{_bindir}/pango-segmentation
%{_bindir}/pango-view*
%{_libdir}/libpango-*.so
%{_libdir}/pkgconfig/pango.pc
%{_libdir}/pkgconfig/pangofc.pc
%{_libdir}/pkgconfig/pangoot.pc
%{_datadir}/gir-1.0/Pango-%{api}.gir
%{_datadir}/gir-1.0/PangoFc-%{api}.gir
%{_datadir}/gir-1.0/PangoOT-%{api}.gir
%dir %{_includedir}/pango-1.0
%dir %{_includedir}/pango-1.0/pango
%{_includedir}/pango-1.0/pango/pango-*.h
%{_includedir}/pango-1.0/pango/pango.h
%{_includedir}/pango-1.0/pango/pangofc-*.h

#----------------------------------------------------------------------------

%package -n %{devcairo}
Summary:	Internationalized text layout and rendering system - cairo
Group:		Development/GNOME and GTK+
Requires:	%{libcairo} = %{EVRD}
Requires:	%{gircairo} = %{EVRD}

%description -n %{devcairo}
This package includes the development library and header files
for the %{name}cairo package.

%files -n %{devcairo}
%{_libdir}/libpangocairo*.so
%{_libdir}/pkgconfig/pangocairo.pc
%{_datadir}/gir-1.0/PangoCairo-%{api}.gir
%{_includedir}/pango-1.0/pango/pangocairo.h

#----------------------------------------------------------------------------

%package -n %{devft2}
Summary:	Internationalized text layout and rendering system - ft2
Group:		Development/GNOME and GTK+
Requires:	%{libft2} = %{EVRD}
Requires:	%{girft2} = %{EVRD}

%description -n %{devft2}
This package includes the development library and header files
for the %{name}ft2 package.

%files -n %{devft2}
%{_libdir}/libpangoft2-*.so
%{_libdir}/pkgconfig/pangoft2.pc
%{_datadir}/gir-1.0/PangoFT2-%{api}.gir
%{_includedir}/pango-1.0/pango/pangoft2.h

#----------------------------------------------------------------------------

%package -n %{devxft}
Summary:	Internationalized text layout and rendering system - xft
Group:		Development/GNOME and GTK+
Requires:	%{libxft} = %{EVRD}
Requires:	%{girxft} = %{EVRD}

%description -n %{devxft}
This package includes the development library and header files
for the %{name}xft package.

%files -n %{devxft}
%{_libdir}/libpangoxft-*.so
%{_libdir}/pkgconfig/pangoxft.pc
%{_datadir}/gir-1.0/PangoXft-%{api}.gir
%{_includedir}/pango-1.0/pango/pangoxft.h
%{_includedir}/pango-1.0/pango/pangoxft-render.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Db_ndebug=true \
	-Dc_std=c11

%meson_build

%install
%meson_install

# Drop them to avoid file conflicts between 32 abd 64 bit package
rm -rf %{buildroot}%{_mandir}/man1/

%check
#disabled for https://bugzilla.gnome.org/show_bug.cgi?id=610791
make check || true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15146 |21mr|pangomm1.4-2.46.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)

%define api	1.4
%define major	1
%define libname %mklibname pangomm %{api} %{major}
%define devname %mklibname pangomm %{api} -d

%define _disable_rebuild_configure 1

Summary:	C++ interface for the pango library
Name:		pangomm%{api}
Version:	2.46.2
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gtkmm.org/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/pangomm/%{url_ver}/pangomm-%{version}.tar.xz
# That's really wrong, should be fixed on platform change
Source10:	pangomm.rpmlintrc
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(cairomm-1.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(mm-common-util)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)

%description
Pangomm provides a C++ interface to the Pango library. Highlights
include typesafe callbacks, widgets extensible via inheritance and a
comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for the pango library
Group:		System/Libraries
Provides:	pangomm%{api} = %{EVRD}

%description -n %{libname}
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libpangomm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog COPYING NEWS README
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/pangomm-%{api}/

#----------------------------------------------------------------------------

%package doc
Summary:	GTKmm documentation
Group:		Documentation

%description doc
Pangomm provides a C++ interface to the Pango library. Highlights
include typesafe callbacks, widgets extensible via inheritance and a
comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for pangomm. You can readily read
this documentation with devhelp, a documentation reader.

%files doc
%doc %{_datadir}/devhelp/books/pangomm-%{api}/pangomm-%{api}.devhelp2
%doc %{_defaultdocdir}/pangomm-%{api}

#----------------------------------------------------------------------------

%prep
%setup -qn pangomm-%{version}

%build
%meson -Dbuild-documentation=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15147 |21mr|pangomm-2.50.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version} | cut -d "." -f -2)

%define api	2.48
%define major	1
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d

%define _disable_rebuild_configure 1

Summary:	C++ interface for the pango library
Name:		pangomm
Version:	2.50.0
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://gtkmm.org/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{name}/%{url_ver}/%{name}-%{version}.tar.xz
# That's really wrong, should be fixed on platform change
Source10:	%{name}.rpmlintrc
Patch0:		include-pango-markup.h-on-e2k.patch
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(cairomm-1.16)
BuildRequires:	pkgconfig(glibmm-2.68)
BuildRequires:	pkgconfig(mm-common-util)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)

%description
Pangomm provides a C++ interface to the Pango library. Highlights
include typesafe callbacks, widgets extensible via inheritance and a
comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ interface for the pango library
Group:		System/Libraries
Provides:	%{name}%{api} = %{EVRD}

%description -n %{libname}
Gtkmm provides a C++ interface to the GTK+ GUI library. Gtkmm2 wraps GTK+ 2.
Highlights include typesafe callbacks, widgets extensible via inheritance
and a comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libpangomm-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and development files of %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}%{api}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development files that are needed,
when trying to develop or compile applications which need %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog COPYING NEWS README
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/pangomm-%{api}/

#----------------------------------------------------------------------------

%package doc
Summary:	GTKmm documentation
Group:		Documentation

%description doc
Pangomm provides a C++ interface to the Pango library. Highlights
include typesafe callbacks, widgets extensible via inheritance and a
comprehensive set of widget classes that can be freely combined to
quickly create complex user interfaces.

This package contains all API documentation for pangomm. You can readily read
this documentation with devhelp, a documentation reader.

%files doc
%doc %{_datadir}/devhelp/books/%{name}-%{api}/%{name}-%{api}.devhelp2
%doc %{_defaultdocdir}/%{name}-%{api}

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%meson -Dbuild-documentation=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15148 |21mr|papi-6.0.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define major_pfm 4
%define libname %mklibname papi %{major}
%define devname %mklibname papi -d
%define devstatic %mklibname papi -d -s

Summary:	Performance Application Programming Interface
Name:		papi
Version:	6.0.0.1
Release:	1
License:	BSD
Group:		System/Libraries
URL:		http://icl.cs.utk.edu/papi/
Source0:	http://icl.cs.utk.edu/projects/papi/downloads/%{name}-%{version}.tar.gz
Patch0:		papi-python3.patch
Patch1:		papi-e2k.patch
BuildRequires:	ncurses-devel
BuildRequires:	gcc-gfortran
BuildRequires:	gomp-devel
BuildRequires:	kernel-headers >= 2.6.32
BuildRequires:	chrpath
BuildRequires:	lm_sensors-devel
BuildRequires:	net-tools
BuildRequires:	perl-generators

%description
PAPI provides a programmer interface to monitor the performance of
running programs.

%package -n %{libname}
Summary: Libraries for PAPI clients

%description -n %{libname}
This package contains the run-time libraries for any application that wishes
to use PAPI.

%package -n %{devname}
Summary:	Header files for the compiling programs with PAPI
Requires:	papi = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
PAPI-devel includes the C header files that specify the PAPI user-space
libraries and interfaces. This is required for rebuilding any program
that uses PAPI.


%package -n %{devstatic}
Summary:	Static libraries for the compiling programs with PAPI
Requires:	papi = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{devstatic}
PAPI-static includes the static versions of the library files for
the PAPI user-space libraries and interfaces.

%package testsuite
Summary:	Set of tests for checking PAPI functionality
Requires:	papi = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description testsuite
PAPI-testsuite includes compiled versions of papi tests to ensure
that PAPI functions on particular hardware.

%prep
%autosetup -p1

%build
cd src
%configure --with-static-lib=yes --with-shared-lib=yes --with-shlib
#DBG workaround to make sure libpfm just uses the normal CFLAGS
DBG="" make

%install
cd src
make DESTDIR=%{buildroot} LDCONFIG=/bin/true install-all
chrpath --delete %{buildroot}%{_libdir}/*.so*

%files
%{_bindir}/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/papi_events.csv
%doc INSTALL.txt README.md LICENSE.txt RELEASENOTES.txt
%doc %{_mandir}/man1/*

%files -n %{libname}
%{_libdir}/*.so.%{major}*
%{_libdir}/*.so.%{major_pfm}*


%files -n %{devname}
%doc INSTALL.txt README.md LICENSE.txt RELEASENOTES.txt
%{_includedir}/*.h

%{_includedir}/perfmon/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/papi*.pc
%doc %{_mandir}/man3/*

%files testsuite
%{_datadir}/papi/run_tests*
%{_datadir}/papi/ctests
%{_datadir}/papi/ftests
%{_datadir}/papi/validation_tests
%{_datadir}/papi/components
%{_datadir}/papi/testlib

%files -n %{devstatic}
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15149 |21mr|paprefs-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PulseAudio Preferences
Name:		paprefs
Version:	1.2
Release:	2
License:	GPLv2+
Group:		Sound
Url:		https://freedesktop.org/software/pulseaudio/paprefs/
Source0:	httpS://freedesktop.org/software/pulseaudio/%{name}/%{name}-%{version}.tar.gz
Source1:	paprefs-16.png
Source2:	paprefs-32.png
Patch0:		paprefs-1.2-ru-po-translate.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	lynx
BuildRequires:	meson
BuildRequires:	ninja
BuildRequires:	tidy
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libpulse)
Requires:	pulseaudio-module-gsettings

%description
PulseAudio Preferences is a simple GTK based configuration dialog for the
PulseAudio sound server.

Please note that this program can only configure local servers, and requires
that a special module module-gconf is loaded in the sound server.

%files -f %{name}.lang
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/%{name}.glade
%{_miconsdir}/%{name}.png
%{_iconsdir}/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%meson -Dlynx=true

%meson_build


%install
%meson_install

# Fix .desktop file
desktop-file-edit --set-icon="%{name}" \
	--add-category="System" \
	--add-category="GTK" \
	--add-category="X-MandrivaLinux-CrossDesktop" \
	--add-not-show-in="KDE" \
	%{buildroot}%{_datadir}/applications/%{name}.desktop

# Icons
install -D -m 0644 %{SOURCE1} %{buildroot}%{_miconsdir}/%{name}.png
install -D -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/%{name}.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15150 |21mr|par2cmdline-0.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PAR 2.0 compatible file verification and repair tool
Name:		par2cmdline
Version:	0.8.1
Release:	4
License:	GPLv2+
Group:		File tools
Url:		https://github.com/Parchive/par2cmdline
Source0:	https://github.com/Parchive/par2cmdline/releases/download/v%{version}/%{name}-%{version}.tar.bz2
# Upstream patches
# Fix endiannes on tests
Patch0:		0001-Fix-for-Github-issue-143-Test-did-not-account-for-e.patch
# Make so "-qq" output level is really silent
Patch1:		0002-Fix-for-Github-issue-148-Enforce-qq-silent.patch
# Avoid out_of_range exception when filename is one char long
Patch2:		0003-Fix-for-Github-issue-149-Allow-single-char-filename.patch
# Enable redundancy level above 100%%
Patch3:		0004-Fix-for-Github-issue-161-Enable-redundancy-higher-100p.patch
# for compat with old parchive2 project
Provides:	parchive2 = %{EVRD}
BuildRequires:	gomp-devel

%description
This is a program for creating and using PAR2 files to detect damage in data
files and repair them if necessary. PAR2 files are usually published in binary
newsgroups on Usenet; they apply the data-recovery capability concepts of
RAID-like systems to the posting and recovery of multi-part archives.

%files
%doc AUTHORS ChangeLog COPYING README
%{_bindir}/par2
%{_bindir}/par2create
%{_bindir}/par2repair
%{_bindir}/par2verify
%{_mandir}/man1/par2.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p 1

# Fix permissions
chmod -x ChangeLog configure.ac INSTALL Makefile.am NEWS stamp-h.in
chmod +x tests/test28

%build
%configure \
%ifarch %{e2k}
	--disable-openmp
# e2k build with openmp fail
%else
	--disable-openmp
%endif
%make

%install
%makeinstall_std

%check
make check-TESTS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15151 |21mr|parallel-20220822-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A shell tool for executing jobs in parallel
Name:		parallel
Version:	20220822
Release:	1
License:	GPLv3+
Group:		File tools
Url:		http://www.gnu.org/software/parallel/
Source0:	http://ftp.gnu.org/gnu/parallel/%{name}-%{version}.tar.bz2
Source1:	http://ftp.gnu.org/gnu/parallel/%{name}-%{version}.tar.bz2.sig
Requires:	perl
BuildArch:	noarch

%description
GNU parallel is a shell tool for executing jobs in parallel locally
or using remote machines. A job is typically a single command or a small
script that has to be run for each of the lines in the input. The typical
input is a list of files, a list of hosts, a list of users, a list of URLs,
or a list of tables.

%files
%doc README NEWS
%{_defaultdocdir}/%{name}/*
%{_bindir}/parallel
%{_bindir}/env_parallel
%{_bindir}/env_parallel.ash
%{_bindir}/env_parallel.bash
%{_bindir}/env_parallel.csh
%{_bindir}/env_parallel.dash
%{_bindir}/env_parallel.ksh
%{_bindir}/env_parallel.pdksh
%{_bindir}/env_parallel.sh
%{_bindir}/env_parallel.tcsh
%{_bindir}/env_parallel.zsh
%{_bindir}/env_parallel.fish
%{_bindir}/parcat
%{_bindir}/parset
%{_bindir}/sem
%{_bindir}/sql
%{_mandir}/man1/parallel.1*
%{_mandir}/man1/env_parallel.1*
%{_mandir}/man1/parcat.1.xz
%{_mandir}/man1/parset.1.xz
%{_mandir}/man7/parallel_alternatives.7.xz
%{_mandir}/man7/parallel_design.7.xz
%{_mandir}/man7/parallel_tutorial.7.xz
%{_mandir}/man7/parallel_book.7.xz
%{_mandir}/man1/sem.1*
%{_mandir}/man1/sql.1*
%{_bindir}/niceload
%config(noreplace) %{_sysconfdir}/%{name}/config
%{_mandir}/man1/niceload.1*
%{_bindir}/env_parallel.mksh
%{_bindir}/parsort
%{_datadir}/bash-completion/completions/parallel
%{_mandir}/man1/parsort.1.xz
%{_datadir}/zsh/site-functions/_parallel

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
make

%install
%makeinstall_std

# (Kharec: It seems we can have a site wide config file now, so create it directly at the install) 
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
touch %{buildroot}%{_sysconfdir}/%{name}/config

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15152 |21mr|paranamer-2.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash cb6709646eed97c271d73f50ad750cc43c8e052a
Name:             paranamer
Version:          2.8
Release:          10
Summary:          Library for accessing non-private method parameter names at run-time
License:          BSD
URL:              https://github.com/paul-hammant/paranamer
Source0:          %{url}/archive/%{githash}/%{name}-%{githash}.tar.gz

Patch0:           0001-Port-to-current-qdox.patch

BuildRequires:    maven-local
BuildRequires:    mvn(com.thoughtworks.qdox:qdox)
BuildRequires:    mvn(javax.inject:javax.inject)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.ant:ant)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven:maven-plugin-api)
BuildRequires:    mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:    mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:    mvn(org.mockito:mockito-all)
BuildRequires:    mvn(org.ow2.asm:asm)
BuildRequires:    mvn(org.sonatype.oss:oss-parent:pom:)
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
It is a library that allows the parameter names of non-private methods
and constructors to be accessed at run-time.

%package ant
Summary:          ParaNamer Ant

%description ant
This package contains the ParaNamer Ant tasks.

%package generator
Summary:          ParaNamer Generator

%description generator
This package contains the ParaNamer Generator.

%package integration-tests
Summary:          ParaNamer Integration Test Parent POM

%description integration-tests
ParaNamer Integration Test Parent POM.

%package it-011
Summary:          ParaNamer Integration Test 011

%description it-011
ParaNamer IT 011: can use maven plugin defaults.

%package maven-plugin
Summary:          ParaNamer Maven plugin

%description maven-plugin
This package contains the ParaNamer Maven plugin.

%package parent
Summary:          ParaNamer Parent POM

%description parent
This package contains the ParaNamer Parent POM.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{githash}

%patch0 -p1

# Cleanup
find -name "*.class" -print -delete
# Do not erase test resources
find -name "*.jar" -print ! -name "test.jar" -delete

chmod -x LICENSE.txt

# Remove wagon extension
%pom_xpath_remove "pom:build/pom:extensions"

%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-source-plugin

# Disable distribution module
%pom_disable_module %{name}-distribution

# Unavailable test deps
%pom_remove_dep -r net.sourceforge.f2j:
%pom_xpath_remove -r "pom:dependency[pom:classifier = 'javadoc' ]"
# package org.netlib.blas does not exist
rm -r %{name}/src/test/com/thoughtworks/paranamer/JavadocParanamerTest.java
# testRetrievesParameterNamesFromBootstrapClassLoader java.lang.AssertionError:
#       Should not find names for classes loaded by the bootstrap class loader.
rm -r %{name}/src/test/com/thoughtworks/paranamer/BytecodeReadingParanamerTestCase.java

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license LICENSE.txt

%files ant -f .mfiles-%{name}-ant

%files generator -f .mfiles-%{name}-generator
%license LICENSE.txt

%files integration-tests -f .mfiles-%{name}-integration-tests
%license LICENSE.txt

%files it-011 -f .mfiles-%{name}-it-011
%license LICENSE.txt

%files maven-plugin -f .mfiles-%{name}-maven-plugin

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15153 |21mr|parboiled-1.1.6-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global scala_short_version 2.10
Name:          parboiled
Version:       1.1.6
Release:       16
Summary:       Java/Scala library providing parsing of input text based on PEGs
License:       ASL 2.0
URL:           http://parboiled.org/
Source0:       https://github.com/sirthias/parboiled/archive/%{version}.tar.gz
# for build see https://github.com/sirthias/parboiled/wiki/Building-parboiled
Source1:       http://repo1.maven.org/maven2/org/parboiled/%{name}-core/%{version}/%{name}-core-%{version}.pom
Source2:       http://repo1.maven.org/maven2/org/parboiled/%{name}-java/%{version}/%{name}-java-%{version}.pom
# customized aggregator pom
Source3:       %{name}-pom.xml
Source4:       http://repo1.maven.org/maven2/org/parboiled/%{name}-scala_%{scala_short_version}/%{version}/%{name}-scala_%{scala_short_version}-%{version}.pom
Patch0:        %{name}-1.1.6-scala-use-antrun-plugin.patch
Patch1:        parboiled-port-to-objectweb-asm-5.0.1.patch

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.ow2.asm:asm-analysis)
BuildRequires: mvn(org.ow2.asm:asm-tree)
BuildRequires: mvn(org.ow2.asm:asm-util)
BuildRequires: mvn(org.scala-lang:scala-compiler)
BuildRequires: mvn(org.scala-lang:scala-library)

%if 0
# test deps
BuildRequires: mvn(org.scalatest:scalatest_2.9.3)
BuildRequires: mvn(org.testng:testng)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
parboiled is a mixed Java/Scala library providing for lightweight and
easy-to-use, yet powerful and elegant parsing of arbitrary input text
based on Parsing expression grammars (PEGs). PEGs are an alternative to
context free grammars (CFGs) for formally specifying syntax, they
make a good replacement for regular expressions and generally have quite
a few advantages over the "traditional" way of building parser via CFGs.

%package scala
Summary:       Parboiled for Scala

%description scala
An internal Scala DSL for efficiently defining your parser rules.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

find . -name "*.class" -delete
find . -name "*.jar" -delete

cp -p %{SOURCE1} %{name}-core/pom.xml
cp -p %{SOURCE2} %{name}-java/pom.xml
cp -p %{SOURCE4} %{name}-scala/pom.xml

for m in core java; do
%pom_xpath_inject "pom:project" "
<build>
  <plugins>

  </plugins>
</build>" %{name}-${m}

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin %{name}-${m} "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
  </archive>
</configuration>"
done

%pom_add_plugin org.apache.felix:maven-bundle-plugin %{name}-core "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.parboiled.core</Bundle-SymbolicName>
    <Bundle-Name>org.parboiled.core</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
    <Private-Package>org.parboiled.core.*</Private-Package>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.felix:maven-bundle-plugin %{name}-java "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.parboiled.java</Bundle-SymbolicName>
    <Bundle-Name>org.parboiled.java</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
    <Fragment-Host>org.parboiled.core</Fragment-Host>
    <Private-Package>org.parboiled.java.*</Private-Package>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%patch0 -p0
%patch1 -p1

cp -p %{SOURCE3} pom.xml
sed -i "s|@VERSION@|%{version}|" pom.xml

%mvn_file :%{name}-core %{name}/core
%mvn_file :%{name}-java %{name}/java
%mvn_package :%{name}-project __noinstall
%pom_xpath_inject "pom:modules" "<module>%{name}-scala</module>"
%mvn_file :%{name}-scala_%{scala_short_version} %{name}/scala
%mvn_package :%{name}-scala_%{scala_short_version} scala

%build

# test skipped unavailable dep org.scalatest scalatest_2.9.0 1.6.1
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8
 
%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG README.markdown
%license LICENSE

%files scala -f .mfiles-scala
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15154 |21mr|parfait-0.5.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          parfait
Version:       0.5.4
Release:       6
Summary:       Java libraries for Performance Co-Pilot (PCP)
License:       ASL 2.0
URL:           https://github.com/performancecopilot/parfait
Source0:       https://github.com/performancecopilot/parfait/archive/%{version}/%{name}-%{version}.tar.gz

Patch1:        no-jcip-annotations.patch
Patch2:        no-jackson-version2.patch
Patch3:        no-more-objects.patch

%bcond_with metrics

BuildRequires: junit
BuildRequires: testng
BuildRequires: maven-local
%if 0%{?rhel} == 0
BuildRequires: maven-license-plugin
BuildRequires: maven-failsafe-plugin
BuildRequires: maven-source-plugin
%endif
BuildRequires: maven-assembly-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-jar-plugin
BuildRequires: maven-shade-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-surefire-plugin
BuildRequires: maven-surefire-provider-testng
BuildRequires: maven-surefire-provider-junit
BuildRequires: maven-dependency-plugin
BuildRequires: maven-verifier-plugin
%if 0%{?rhel} == 0
BuildRequires: mvn(net.jcip:jcip-annotations)
BuildRequires: mvn(org.apache.maven.wagon:wagon-ftp)
BuildRequires: mvn(org.aspectj:aspectjweaver)
BuildRequires: mvn(org.hsqldb:hsqldb)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.springframework:spring-jdbc)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-test)
%endif
%if %{with metrics}
BuildRequires: mvn(com.codahale.metrics:metrics-core)
%endif
%if 0%{?rhel} != 0
BuildRequires: mvn(org.codehaus.jackson:jackson-core-asl)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
%else
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
%endif
BuildRequires: mvn(systems.uom:systems-unicode-java8)
BuildRequires: mvn(javax.measure:unit-api)
BuildRequires: mvn(tec.uom:uom-se)

Group:          Development/Java
BuildArch:     noarch

%description
Parfait is a Java performance monitoring library that exposes and
collects metrics through a variety of outputs.  It provides APIs
for extracting performance metrics from the JVM and other sources.
It interfaces to Performance Co-Pilot (PCP) using the Memory Mapped
Value (MMV) machinery for extremely lightweight instrumentation.

%package javadoc
Group:          Development/Java
BuildArch: noarch
Summary: Javadoc for Parfait

%description javadoc
This package contains the API documentation for Parfait.

%package -n pcp-parfait-agent
Group:          Development/Java
BuildArch: noarch
Summary: Parfait Java Agent for Performance Co-Pilot (PCP)

%description -n pcp-parfait-agent
This package contains the Parfait Agent for instrumenting Java
applications.  The agent can extract live performance metrics
from the JVM and other sources, in unmodified applications (via
the -java-agent java command line option).  It interfaces to
Performance Co-Pilot (PCP) using the Memory Mapped Value (MMV)
machinery for extremely lightweight instrumentation.

%package examples
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Summary: Parfait Java demonstration programs

%description examples
Sample standalone Java programs showing use of Parfait modules
for instrumenting applications.

%prep
%setup -q
%if 0%{?rhel} != 0
%patch1 -p1
%patch2 -p1
%patch3 -p1
%endif

# Remove license plugin in main pom.xml
%pom_remove_plugin com.mycila:license-maven-plugin
%pom_remove_plugin com.mycila:license-maven-plugin parfait-agent

%pom_disable_module parfait-benchmark
%pom_disable_module parfait-cxf
%if %{without metrics}
%pom_disable_module parfait-dropwizard
%endif
%pom_disable_module parfait-jdbc
%if 0%{?rhel} != 0
%pom_disable_module parfait-jmx
%pom_disable_module parfait-spring
%endif
%pom_remove_plugin org.apache.maven.plugins:maven-failsafe-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-jxr-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-pmd-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-site-plugin

%build
# skip tests for now, missing org.unitils:unitils-core:jar
%mvn_build -f
# re-instate not-shaded, not-with-all-dependencies agent jar
pushd parfait-agent/target
mv original-parfait-agent.jar parfait-agent.jar
popd

%install
%mvn_install
# install the parfait-agent extra bits (config, script, man page)
install -m 755 -d %{buildroot}%{_sysconfdir}/%{name}
install -m 644 parfait-agent/target/classes/jvm.json %{buildroot}%{_sysconfdir}/%{name}
install -m 755 -d %{buildroot}%{_bindir}
install -m 755 bin/%{name}.sh %{buildroot}%{_bindir}/%{name}
install -m 755 -d %{buildroot}%{_mandir}/man1
install -m 644 man/%{name}.1 %{buildroot}%{_mandir}/man1
# special install of shaded, with-all-dependencies agent jar
pushd parfait-agent/target
install -m 644 parfait-agent-jar-with-dependencies.jar \
            %{buildroot}%{_javadir}/%{name}/%{name}.jar
popd
# special install of with-all-dependencies sample jar files
for example in acme sleep counter
do
    pushd examples/${example}/target
    install -m 644 example-${example}-jar-with-dependencies.jar \
                %{buildroot}%{_javadir}/%{name}/${example}.jar
    popd
done

%files -f .mfiles
%doc README.md
%license LICENSE.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.md

%files examples
%dir %{_javadir}/parfait
%{_javadir}/%{name}/acme.jar
%{_javadir}/%{name}/sleep.jar
%{_javadir}/%{name}/counter.jar
%doc README.md
%license LICENSE.md

%files -n pcp-parfait-agent
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/%{name}.jar
%doc %{_mandir}/man1/%{name}.1*
%{_bindir}/%{name}
%doc README.md
%license LICENSE.md
%dir %{_sysconfdir}/%{name}
%config(noreplace)%{_sysconfdir}/%{name}/jvm.json


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15155 |21mr|parted-3.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define	major		2
%define	libname		%mklibname %{name} %{major}
%define	devname		%mklibname %{name} -d

%define	fsresize_major	0
%define	libfsresize	%mklibname %{name}-fs-resize %{fsresize_major}

Summary:	Flexible partitioning tool
Name:		parted
Version:	3.5
Release:	1
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		http://www.gnu.org/software/parted/
Source0:	http://ftp.gnu.org/gnu/parted/parted-%{version}.tar.xz
# Our patches
Patch1021: parted-3.1-libparted-Support-Linux-fs-GUID.patch

BuildRequires:	texinfo
BuildRequires:	gettext-devel
BuildRequires:	gpm-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(devmapper)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(uuid)
# make check
BuildRequires:	util-linux
Requires:	e2fsprogs

%description
GNU Parted is a program that allows you to create, destroy,
resize, move and copy hard disk partitions. This is useful for
creating space for new operating systems, reorganising disk
usage, and copying data to new hard disks.

%files -f %{name}.lang
%doc README
%{_sbindir}/*
%{_mandir}/man*/*
%{_infodir}/parted.info*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The parted library
Group:		Development/C

%description -n %{libname}
This package includes the dynamic libraries.

%files -n %{libname}
%doc TODO
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfsresize}
Summary:	The parted fs-resize library
Group:		Development/C

%description -n %{libfsresize}
This package includes the dynamic libraries.

%files -n %{libfsresize}
%{_libdir}/lib%{name}-fs-resize.so.%{fsresize_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files required to compile software that uses libparted
Group:		Development/C
Requires:	e2fsprogs
Requires:	%{libname} = %{EVRD}
Requires:	%{libfsresize} = %{EVRD}
Provides:	parted-devel = %{EVRD}

%description -n %{devname}
This package includes the header files and libraries needed to
link software with libparted.

%files -n %{devname}
%doc AUTHORS ChangeLog doc/API
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/libparted*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
autoreconf -fi

%build
%configure \
	--disable-static
%make_build

%install
%make_install

%find_lang %{name}

%check
# some docker limits
# export PATH=$PATH:/sbin
# make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15156 |21mr|partimage-0.6.9-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Partition Image
Name:		partimage
Version:	0.6.9
Release:	9
License:	GPLv2+
Group:		Archiving/Backup
Url:		http://www.partimage.org/
Source0:	%{name}-%{version}.tar.bz2
Source1:	partimage.1
Source2:	partimaged.8
Source3:	partimagedusers.5
Source4:	partimaged-sysconfig
Source5:	partimaged.service
Patch0:		partimage-0.6.9-no-sslv2.patch
Patch1:		partimage-0.6.9-openssl-1.1.patch
Patch3:		partimage-0.6.7-ssl-certs-policy.patch
Patch12:	partimage-0.6.8-lzma.patch
Patch13:	partimage-0.6.7-splash.patch
Patch14:	partimage-0.6.9-zlib.patch
Patch15:	DEBIAN-fix-FTBFS-glic-2.28.patch
BuildRequires:	openssl
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel
BuildRequires:	liblzmadec-devel
BuildRequires:	pkgconfig(libnewt)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(zlib)
Requires:	openssl
Requires(post):	rpm-helper

%description
Partition Image is a Linux/UNIX partition imaging utility: it saves
partitions in the following file system formats to an image file:
- Ext2FS & Ext3FS (the linux standard),
- FAT16/32 (DOS & Windows file systems),
- HFS (MacOS File System),
- JFS (Journalised File System, from IBM, used on Aix),
- NTFS (Windows NT File System),
- HPFS (IBM OS/2 File System),
- ReiserFS (a journalized and powerful file system),
- UFS (Unix File System),
- XFS (another jounalized and efficient File System, from SGI, used on Irix),

Only used blocks are copied. The image file can be 
compressed in the GZIP/BZIP2 formats to save disk space, and splitted 
into multiple files to be copied on amovibles floppies (ZIP for example),
or burned on a CD-R ...

This allows to save a full Linux/Windows system, with an only 
operation. When problems (viruses, crash, error, ...), you just have to 
restore, and after several minutes, all your system is restored (boot, 
files, ...), and fully working.

This is very useful when installing the same software on many 
machines: just install one of them, creat|e an image, and just restore 
the image on all other machines. Then, after the first one, each 
installation is automatically made, and only require a few minutes.

%files -f %{name}.lang
%doc %{_docdir}/partimage*
%{_sbindir}/*
%{_sysconfdir}/sysconfig/partimaged
%{_unitdir}/partimaged.service
%attr(0600,partimag,partimag) %config(noreplace) %{_sysconfdir}/partimaged/partimagedusers
%{_mandir}/man1/partimage.1*
%{_mandir}/man5/partimagedusers.5*
%{_mandir}/man8/partimaged.8*

%pre
/usr/sbin/groupadd -r -f partimag > /dev/null 2>&1 ||:
/usr/sbin/useradd -g partimag -d /home/partimag -r -s /bin/bash partimag > /dev/null 2>&1 ||:

%post
dir=/var/lib/partimage
if [ ! -d $dir ]; then 
    mkdir -p $dir/{dev,etc,%{_lib},var/log}
    cp -a /dev/{null,tty} $dir/dev
    cp /%{_lib}/{libnss_compat.so.2,libnss_files.so.2} $dir/%{_lib}
    grep partimag /etc/passwd > $dir/etc/passwd
    grep partimag /etc/group > $dir/etc/group
    install -d -o partimag $dir/data
fi
# now all you have to do is run partimaged -D --chroot /var/lib/partimage
%systemd_post partimaged

%preun
%systemd_preun partimaged

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch3 -p1
%patch12 -p1 -b .lzma
%patch13 -p1 -b .splash
%patch14 -p1 -b .zlib
%patch15 -p1 -b .glibc2.28

for i in %{_datadir}/automake-1.*/mkinstalldirs; do cp -f $i .; done

%build
autoreconf -fi
cp %{_datadir}/gettext/config.rpath .
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_infodir}/*

install -m644 %{SOURCE1} -D %{buildroot}%{_mandir}/man1/partimage.1
install -m644 %{SOURCE2} -D %{buildroot}%{_mandir}/man8/partimaged.8
install -m644 %{SOURCE3} -D %{buildroot}%{_mandir}/man5/partimagedusers.5
install -m644 %{SOURCE4} -D %{buildroot}%{_sysconfdir}/sysconfig/partimaged
install -m755 %{SOURCE5} -D %{buildroot}%{_unitdir}/partimaged.service

cat > README.mdv <<EOF
Mandriva RPM specific notes

setup
-----
In order to comply with ROSA SSL certificates policy, partimage binary has
been modified to use the following files:
- /etc/pki/tls/certs/partimage.pem instead of default
  /etc/partimaged/partimaged.cert
- /etc/pki/tls/private/partimage.pem instead of default
  /etc/partimaged/partimaged.key
EOF

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15157 |21mr|partio-1.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		partio
Version:	1.14.0
Release:	1
Summary:	Library for reading/writing/manipulating common animation particle
Group:		System/Libraries
License:	BSD
URL:		https://github.com/wdas/%{name}
Source:		https://github.com/wdas/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
# Versioning libraries
# https://github.com/wdas/partio/issues/82
Patch:		%{name}-version-libraries.patch
BuildRequires:	cmake
BuildRequires:	graphviz
BuildRequires:	doxygen
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gtest)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	swig

%description
C++ (with python bindings) library for easily reading/writing/manipulating 
common animation particle formats such as PDB, BGEO, PTC.

%files
%license LICENSE
%doc README.md
%{_bindir}/part*
%{_datadir}/swig/%{name}.i
%dir %{_datadir}/%{name}

#------------------------------------------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so

#------------------------------------------------------------------------

%package doc
Summary:	Documentation files for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
%{summary}.

%files doc
%doc %{_defaultdocdir}/%{name}/html

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	Core %{name} libraries
Group:		System/Libraries

%description -n %{libname}
C++ (with python bindings) library for easily reading/writing/manipulating 
common animation particle formats such as PDB, BGEO, PTC.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

%description -n python3-%{name} 
The python3-%{name} contains Python 3 binning for the library.

%files -n python3-%{name}
%{python3_sitearch}/*

#------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix all Python shebangs recursively in .
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" .

%build
%cmake \
	-DCMAKE_PREFIX_PATH=%{_prefix} \
	-DCXXFLAGS_STD=c++17
%make

%install
%make_install -C build
find %{buildroot} -name '*.la' -exec rm -f {} ';'

#Remove files from unversioned python directory
rm -f %{buildroot}%{_libdir}/python/site-packages/*.py

#Remove all tests containing arch-depedents binaries
rm -rf %{buildroot}%{_datadir}/%{name}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15158 |21mr|partitionmanager-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	KDE Partition Manager
Name:		partitionmanager
Version:	23.08.4
Release:	1
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://sourceforge.net/projects/partitionman/
Source0:	http://download.kde.org/stable/partitionmanager/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	cmake
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kpmcore-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(libatasmart)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(polkit-qt5-1)
Requires:	dosfstools
Requires:	e2fsprogs
Requires:	jfsutils
Requires:	kde-cli-tools
Requires:	ntfs-3g
Requires:	reiserfsprogs
Requires:	xfsprogs

%description
A KDE utility that allows you to manage disks, partitions, and file systems.

%files -f %{name}.lang
%doc README.md
%{_kde5_applicationsdir}/org.kde.partitionmanager.desktop
%{_kde5_bindir}/%{name}
%{_kde5_xmlguidir}/%{name}/%{name}*.rc
%{_kde5_datadir}/config.kcfg/partitionmanager.kcfg
%{_kde5_datadir}/solid/actions/open_in_partitionmanager.desktop
%{_kde5_iconsdir}/hicolor/scalable/apps/partitionmanager.svg
%{_appdatadir}/org.kde.partitionmanager.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15159 |21mr|passwd-0.80-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	The passwd utility for setting/changing passwords using PAM
Name:		passwd
Version:	0.80
Release:	3
License:	BSD
Group:		System/Base
Url:		https://pagure.io/passwd
Source0:	https://releases.pagure.org/%{name}/%{name}-%{version}.tar.bz2
Patch0:		https://src.fedoraproject.org/rpms/passwd/raw/master/f/passwd-0.80-manpage.patch
Patch1:		https://src.fedoraproject.org/rpms/passwd/raw/master/f/passwd-0.80-S-output.patch
BuildRequires:	audit-devel
BuildRequires:	pam-devel
BuildRequires:	gettext-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libuser)
BuildRequires:	pkgconfig(popt)
Requires:	pam
Requires:	libuser

%description
The passwd package contains a system utility (passwd) which sets
and/or changes passwords, using PAM (Pluggable Authentication
Modules).

%files -f %{name}.lang
%config(noreplace) %{_sysconfdir}/pam.d/passwd
%attr(4511,root,shadow) %{_bindir}/passwd
%{_mandir}/man1/passwd.1*
%lang(ja) %{_mandir}/ja/man1/passwd.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
autoreconf -fis -Wall
./autogen.sh

%build
%configure \
%if %{with selinux}
	--with-selinux \
%else
	--without-selinux \
%endif
	--without-pwdb \
	--with-audit \
	--with-libuser \
	--disable-rpath

%make_build

%install
%make_install

install -m644 passwd.pamd -D %{buildroot}%{_sysconfdir}/pam.d/passwd

%find_lang %{name}

%pre
if [ -x %{_sbindir}/control-dump ]; then
  control-dump passwd ||:
fi

%post
if [ -x %{_sbindir}/control-restore ]; then
  control-restore passwd ||:
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15160 |21mr|patch-2.7.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with tests

Summary:	The GNU patch command, for modifying/upgrading files
Name:		patch
Version:	2.7.6
Release:	5
License:	GPLv3+
Group:		Text tools
Url:		http://www.gnu.org/directory/GNU/patch.html
Source0:	https://ftp.gnu.org/gnu/patch/%{name}-%{version}.tar.xz
Patch0:		patch-2.7.6-stderr.patch
Patch1:		patch-2.7.6-fix-CVE-2018-1000156.patch
# Debian rediffed patches:
Patch100:	patch-2.7.6-lenny-options.patch
# fix CVE-2018-6951
Patch101:	patch-2.7.6-fix-segfault-with-mangled-renames.patch
# https://usn.ubuntu.com/4071-1/
Patch110:	CVE-2019-13636.patch
# also fix CVE-2018-20969
Patch111:	CVE-2019-13638.patch
Patch112:	CVE-2018-6952.patch
Patch113:	CVE-2019-20633.patch
BuildRequires:	attr-devel

%description
The patch program applies diff files to originals. The diff command is used to
compare an original to a changed file: diff lists the changes made to the
file. A person who has the original file can then use the patch command with
the diff file to add the changes to their original file (patching the file).
Patch should be installed because it is a common way of upgrading
applications.

%files
%doc NEWS README AUTHORS ChangeLog
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%configure
%make


%install
%makeinstall_std


%if %{with tests}
%check
%make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15161 |21mr|patchelf-0.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility for patching ELF binaries
Name:		patchelf
Version:	0.16.1
Release:	1
License:	GPLv3+
Group:		Development/Tools
Url:		http://nixos.org/patchelf.html
Source0:	https://github.com/NixOS/patchelf/archive/%{version}.tar.gz
BuildRequires:	acl-devel
BuildRequires:	attr-devel

%description
PatchELF is a simple utility for modifying an existing ELF executable
or library. It can change the dynamic loader ("ELF interpreter")
of an executable and change the RPATH of an executable or library.

%files
%doc COPYING
%{_bindir}/patchelf
%{_mandir}/man1/patchelf.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# package ships elf.h - delete to use glibc-headers one
rm src/elf.h

%build
autoreconf -fi
%configure
%make_build

%install
%make_install

# the docs get put in a funny place, so delete and include in the
# standard way in the docs section below
rm -rf %{buildroot}%{_datadir}/doc/%{name}

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15162 |21mr|patroni-3.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		patroni
Version:	3.3.2
Release:	2
Summary:	A template for PostgreSQL High Availability with Etcd, Consul, ZooKeeper, or Kubernetes
License:	MIT
Group:		Databases
URL:		https://github.com/zalando/patroni
Source0:	https://github.com/patroni/patroni/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		patroni-systemd.patch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	pyproject-rpm-macros
Requires:	python3-boto3
Requires:	python3-yaml
Requires:	python3-kazoo >= 1.3.1
Requires:	python3-psycopg2
Requires:	python3-etcd >= 0.4.3
Requires:	python3-consul >= 0.7.1
Requires:	python3-click >= 4.1
Requires:	python3-prettytable >= 0.7
Requires:	python3-pysyncobj >= 0.3.8
Requires:	python3-cryptography >= 1.4
Requires:	python3-psutil >= 2.0.0
Requires:	python3-ydiff >= 1.2
BuildArch:	noarch

%description
Patroni is a template for you to create your own customized, high-availability
solution using Python and - for maximum accessibility - a distributed
configuration store like ZooKeeper, etcd, Consul or Kubernetes. Database
engineers, DBAs, DevOps engineers, and SREs who are looking to quickly deploy
HA PostgreSQL in the datacenter-or anywhere else-will hopefully find it useful.

We call Patroni a "template" because it is far from being a one-size-fits-all
or plug-and-play replication system. It will have its own caveats. Use wisely.

%files
%doc CODEOWNERS MAINTAINERS README.rst
%{_bindir}/*
%{python3_sitelib}/*
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service
#--------------------------------------------

%prep
%autosetup -p1 %{name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install

install -D -m0644 extras/startup-scripts/%{name}.service %{buildroot}%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15163 |21mr|pavucontrol-gtk-4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Volume control for Pulseaudio sound server for Linux
Name:		pavucontrol-gtk
Version:	4.0
Release:	5
License:	GPLv2+
Group:		Sound
Url:		http://freedesktop.org/software/pulseaudio/pavucontrol
Source0:	http://freedesktop.org/software/pulseaudio/%{name}/pavucontrol-%{version}.tar.xz
Source1:	pavucontrol-16.png
Source2:	pavucontrol-32.png
Patch0:		pavucontrol-3.0-russian.patch
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	lynx
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libglademm-2.4)
BuildRequires:	pkgconfig(libpulse)
Requires:	pulseaudio
Requires(post):     update-alternatives
Requires(postun):   update-alternatives
Provides:	pulseaudio-volume-control = %{EVRD}
Provides:	pavucontrol = %{EVRD}
%rename pavucontrol

%description
Pulseaudio Volume Control (pavucontrol) is a simple GTK based volume control
tool for the Pulseaudio sound server. In contrast to classic mixer tools this
one allows you to control both the volume of hardware devices and of each
playback stream separately.

%files -f pavucontrol.lang
%license LICENSE
%doc README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pavucontrol/pavucontrol.glade
%{_miconsdir}/pavucontrol.png
%{_iconsdir}/pavucontrol.png

%post
# pavucontrol-gtk has priority 20
# pavucontrol-qt has priority 10
# (-gtk is closer to Pulseaudio's upstream)
update-alternatives --install %{_bindir}/pavucontrol pavucontrol %{_bindir}/%{name} 20

%postun
# Package removal, not upgrade
if [ $1 -eq 0 ] && [ -L %{_bindir}/pavucontrol ]; then
	update-alternatives --remove pavucontrol %{_bindir}/%{name}
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n pavucontrol-%{version}

%build
%configure
%make

%install
%makeinstall_std

mv %{buildroot}%{_bindir}/pavucontrol %{buildroot}%{_bindir}/%{name}
mv %{buildroot}%{_datadir}/applications/pavucontrol.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

sed -i'' %{buildroot}%{_datadir}/applications/%{name}.desktop \
	-e "s/^Icon=.*/Icon=pavucontrol/" \
	-e "s/^Exec=.*/Exec=%{name}/"

desktop-file-install --vendor="" \
	--add-category="GTK" \
	--add-category="X-MandrivaLinux-Multimedia-Sound" \
	--add-category="X-MandrivaLinux-CrossDesktop" \
	--remove-category="Application" \
	--remove-key="Encoding" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

# Icons
install -D -m 0644 %{SOURCE1} %{buildroot}%{_miconsdir}/pavucontrol.png
install -D -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/pavucontrol.png

rm -rf %{buildroot}%{_docdir}/pavucontrol

%find_lang pavucontrol

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15164 |21mr|pavucontrol-qt-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt port of volume control pavucontrol
Name:		pavucontrol-qt
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/pavucontrol-qt
Source0:	https://github.com/lxqt/pavucontrol-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	xdg-user-dirs
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xdg)
Requires:	pulseaudio
Requires(post):	update-alternatives
Requires(postun): update-alternatives
Provides:	pulseaudio-volume-control = %{EVRD}

%description
Qt port of volume control pavucontrol.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm

%post
# pavucontrol-gtk has priority 20
# pavucontrol-qt has priority 10
# (-gtk is closer to Pulseaudio's upstream)
update-alternatives --install %{_bindir}/pavucontrol pavucontrol %{_bindir}/%{name} 10

%postun
if [ -L %{_bindir}/pavucontrol ]; then
	update-alternatives --remove pavucontrol %{_bindir}/%{name}
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15165 |21mr|pax-3.4-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary: POSIX File System Archiver
Name: pax
Version: 3.4
Release: 15
License: GPL
Group: Archiving/Backup
Source: ftp://ftp.suse.com/pub/people/kukuk/pax/%{name}-%{version}.tar.bz2
Patch0: pax-3.4-gcc46.patch
URL:	ftp://ftp.suse.com/pub/people/kukuk/pax/

%description
'pax' is the POSIX standard archive tool.  It supports the two most
common forms of standard Unix archive (backup) files - CPIO and TAR.

%prep
%setup -q
%patch0 -p0
# Fix building with glibc 2.28+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,^#include <sys/types.h>,#include <sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
autoreconf -fi
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc AUTHORS NEWS README THANKS
%{_bindir}/pax
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15166 |21mr|pax-logging-1.6.9-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          pax-logging
Version:       1.6.9
Release:       19
Summary:       OSGi Logging framework implementation
License:       ASL 2.0 and BSD and MIT
URL:           http://team.ops4j.org/wiki//display/paxlogging/Pax+Logging
Source0:       https://github.com/ops4j/org.ops4j.pax.logging/archive/logging-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(avalon-framework:avalon-framework-api)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.osgi:org.osgi.compendium)
BuildRequires: mvn(org.osgi:org.osgi.core)

# Those files are modifications of code included in:
# pax-logging-api/src/main/java/org/osgi/service/log/*
Provides:      bundled(felix-osgi-compendium) = 1.3
# pax-logging-api/src/main/java/org/apache/log4j/*
Provides:      bundled(log4j12) = 1.2.15
# pax-logging-api/src/main/java/org/apache/commons/logging/Log.java
# pax-logging-api/src/main/java/org/apache/commons/logging/LogConfigurationException.java
# pax-logging-api/src/main/java/org/apache/commons/logging/LogFactory.java
# pax-logging-api/src/main/java/org/apache/commons/logging/impl/NoOpLog.java
Provides:      bundled(jcl-over-slf4j) = 1.6.1
# pax-logging-api/src/main/java/org/apache/log4j/xml/DOMConfigurator.java
# pax-logging-api/src/main/java/org/apache/log4j/spi/Configurator.java
# pax-logging-api/src/main/java/org/apache/log4j/PropertyConfigurator.java
# pax-logging-api/src/main/java/org/apache/log4j/Category.java
# pax-logging-api/src/main/java/org/apache/log4j/Level.java
# pax-logging-api/src/main/java/org/apache/log4j/Logger.java
# pax-logging-api/src/main/java/org/apache/log4j/MDC.java
# pax-logging-api/src/main/java/org/apache/log4j/NDC.java
Provides:      bundled(log4j-over-slf4j) = 1.6.1
# pax-logging-api/src/main/java/org/slf4j/*
Provides:      bundled(slf4j-api) = 1.6.1

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The OSGi Logging framework implementation. Supports SLF4J,
LOG4J,Jakarta Commons Logging etc.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n org.ops4j.pax.logging-logging-%{version}
%pom_remove_parent
%pom_disable_module pax-logging-it
%pom_disable_module pax-logging-samples
# test deps*
%pom_remove_dep -r junit:junit
%pom_remove_dep -r org.easymock:easymock
# unavailable
%pom_remove_dep -r jmock:jmock
%pom_remove_dep -r org.ops4j.pax.exam:pax-exam
%pom_remove_dep -r org.ops4j.pax.exam:pax-exam-container-default
%pom_remove_dep -r org.ops4j.pax.exam:pax-exam-junit
%pom_remove_dep -r org.ops4j.pax.runner:pax-runner-no-jcl
# sample deps
%pom_remove_dep -r org.mortbay.jetty:jetty

%pom_remove_plugin -r org.ops4j:maven-pax-plugin
%pom_remove_plugin -r :maven-shade-plugin

sed -i "s|<source>1.4</source>|<source>1.5</source>|" pom.xml
sed -i "s|<target>1.4</target>|<target>1.5</target>|" pom.xml

# prevent log4j re-bundle 
%pom_xpath_remove "pom:_include"
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-bundle-plugin']/pom:configuration" "<excludeDependencies>true</excludeDependencies>"

%pom_change_dep :log4j ::1.2.17
%pom_change_dep :log4j ::1.2.17 pax-logging-service

%pom_remove_plugin -r :maven-dependency-plugin pax-logging-api pax-logging-service
%pom_remove_plugin -r :maven-source-plugin pax-logging-api pax-logging-service

%mvn_file :%{name}-api %{name}-api
%mvn_file :%{name}-service %{name}-service

%build

# test skip unavailable test deps*
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

cp -rp pax-logging-api/NOTICE.txt .

%install
%mvn_install

%files -f .mfiles
%doc CONTRIBUTORS.txt RELEASE-NOTES.html
%license LICENSE.txt NOTICE.txt 

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15167 |21mr|paxtest-0.9.15-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Test suite for the PaX kernel patch
Name:		paxtest
Version:	0.9.15
Release:	3
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://www.grsecurity.net/~spender/
Source0:	https://www.grsecurity.net/~spender/%{name}-%{version}.tar.gz

%description
Test suite for the PaX kernel patch.

%files
%doc ChangeLog COPYING README
%{_bindir}/%{name}
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make linux

%install
cp -f Makefile{.psm,}
%makeinstall_std \
	BINDIR=%{_libdir}/%{name} \
	RUNDIR=%{_libdir}/%{name}
    
mkdir -p %{buildroot}%{_bindir}
ln -f -s %{_libdir}/%{name}/%{name} %{buildroot}%{_bindir}/%{name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15168 |21mr|pbm2lwxl-0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A driver for the CoStar Labelwriter XL
Name:		pbm2lwxl
Version:	0
Release:	18
License:	GPLv2+
Group:		System/Printing
Url:		http://www.freelabs.com/~whitis/software/pbm2lwxl
Source0:	http://www.freelabs.com/~whitis/software/pbm2lwxl/pbm2lwxl.tar.gz
Patch0:		pbm2lwxl-20040515-path.patch
Patch1:		pbm2lwxl-LDFLAGS.diff
Requires:	ghostscript
Requires:	mpage

%description
A driver for the CoStar printers:
 o LabelWriter II
 o LabelWriter XL+
 o Labelwriter XL
 o EL40
 o EL60
 o Turbo
 o SE250
 o SE250+
 o ASCII
 o ASCII+
 o LW300
 o LW330
 o LW330 Turbo

And Avery Printers:
 o Personal Label Printer and Personal Label Printer+???

%files
%doc README index.html license.html
%attr(0755,root,root) %{_bindir}/pbm2lwxl
%attr(0755,root,root) %{_bindir}/ps2lwxl
%attr(0755,root,root) %{_bindir}/small2lwxl
%attr(0755,root,root) %{_bindir}/txt2lwxl

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -a0
%patch0 -p1 -b .path
%patch1 -p0 -b .LDFLAGS

%build
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}

install -m0755 pbm2lwxl %{buildroot}%{_bindir}/
install -m0755 ps2lwxl %{buildroot}%{_bindir}/
install -m0755 txt2lwxl %{buildroot}%{_bindir}/
install -m0755 small2lwxl %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15169 |21mr|pbmtozjs-0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Driver for the HP LaserJet 1000 GDI printers
Name: 		pbmtozjs
Version:	0
Release:	20
License:	GPLv2+
Group:		System/Printing
Url:		http://www.linuxprinting.org/download/printing/pbmtozjs.c
Source0:	http://www.linuxprinting.org/download/printing/pbmtozjs.c
BuildRequires:	jbig-devel

%description
Driver for the HP LaserJet 1000 GDI printers. Perhaps it also works with some
other GDI printers made by QMS and Minolta (these manufacturer names appear in
the driver's source code).

%files
%doc pbmtozjs.txt
%attr(0755,root,root) %{_bindir}/pbmtozjs

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -n %{name}
cp %{SOURCE0} .

head -34 pbmtozjs.c | tail -33 > pbmtozjs.txt

%build
ln -s %{_includedir}/jbig.h .
%__cc %{optflags} %{ldflags} -o pbmtozjs pbmtozjs.c -ljbig


%install
install -d %{buildroot}%{_bindir}

install -m0755 pbmtozjs %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15170 |21mr|pciutils-3.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# when updating, please rebuild ldetect as it is compiled against this static library

%bcond_with	bootstrap

%define	major	3
%define	libname	%mklibname pci %{major}
%define	devname	%mklibname pci -d

Summary:	PCI bus related utilities
Name:		pciutils
Version:	3.7.0
Release:	2
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://mj.ucw.cz/sw/pciutils/
Source0:	https://mj.ucw.cz/download/linux/pci/%{name}-%{version}.tar.gz
Patch10:	pciutils-3.3.1-pcimodules.patch
Patch11:	pciutils-3.0.3-cardbus-only-when-root.patch
Patch22:	pciutils-3.3.0-LDFLAGS.patch
# Fedora patches
# don't segfault on systems without PCI bus (rhbz #84146)
Patch102:	pciutils-2.1.10-scan.patch
# use pread/pwrite, ifdef check is obsolete nowadays
# multilib support
Patch108:	pciutils-3.3.0-multilib.patch
# platform support 3x
Patch110:	pciutils-2.2.10-sparc-support.patch
Patch111:	pciutils-3.0.1-superh-support.patch
Patch112:	pciutils-3.1.8-arm.patch
Patch113:	pciutils-3.1.10-dont-remove-static-libraries.patch
Patch114:	pciutils-3.3.0-arm64.patch
Patch115:	pciutils-3.6.2-portability.patch
Patch116:	e2k-support.patch

# change pci.ids directory to hwdata, fedora/rhel specific
Patch150:	pciutils-2.2.1-idpath.patch
# add support for directory with another pci.ids, rejected by upstream, rhbz#195327
Patch151:	pciutils-dir-d.patch

# needed to support modaliases so lspci -k gives correct output
BuildRequires:	kmod-devel
%if !%{with bootstrap}
Requires:	pciids
%endif
# matching lib is always needed (mga #10661)
Requires:	%{libname} = %{EVRD}
Requires:	hwdata
Provides:	pciids = %{EVRD}

%description
This package contains various utilities for inspecting and setting
devices connected to the PCI bus.

%files
%doc README ChangeLog pciutils.lsm
%{_mandir}/man8/*
%{_bindir}/lspci
%{_bindir}/pcimodules
%{_bindir}/setpci
%{_sbindir}/update-pciids

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The PCI library
Group:		System/Libraries

%description -n	%{libname}
This package contains a dynamic library for inspecting and setting
devices connected to the PCI bus.

%files -n %{libname}
%{_libdir}/libpci.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Linux PCI development library
Group:		Development/C
Requires:	%{libname}  = %{EVRD}
Provides:	pciutils-devel = %{EVRD}

%description -n	%{devname}
This package contains a library for inspecting and setting
devices connected to the PCI bus.

%files -n %{devname}
%doc TODO
%{_libdir}/*.a
%{_libdir}/*.so
%dir %{_includedir}/pci
%{_includedir}/pci/*.h
%{_libdir}/pkgconfig/libpci.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch10 -p1 -b .p10~
%patch11 -p0 -b .p11~
%patch22 -p1 -b .p22~

%patch102 -p1 -b .scan~
%patch108 -p1 -b .multilib~
%patch110 -p1 -b .sparc~
%patch111 -p1 -b .superh~
%patch112 -p1 -b .arm~
%patch113 -p1 -b .keep_static~
%patch114 -p1 -b .arm64~
%patch115 -p1 -b .port~
%patch116 -p1 -b .e2k
%patch150 -p1 -b .p150~
%patch151 -p1 -b .p151~

%build
sed -i -e 's|^SRC=.*|SRC="http://pciids.sourceforge.net/pci.ids"|' update-pciids.sh

%make PREFIX=%{_prefix} OPT="%{optflags} -fPIC" ZLIB=no SHARED=no DNS=no LDFLAGS="%{ldflags}" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids" lib/libpci.a 
cp lib/libpci.a lib/libpci.a.libc
make clean

# do not build with zlib support since it's useless (only needed if we compress
# pci.ids which we cannot do since hal mmaps it for memory saving reason)
%make PREFIX=%{_prefix} OPT="%{optflags} -fPIC" ZLIB=no SHARED=yes LDFLAGS="%{ldflags}" IDSDIR="/usr/share/hwdata" PCI_IDS="pci.ids"

%install
install -d %{buildroot}{%{_bindir},%{_sbindir},%{_mandir}/man8,%{_libdir}/pkgconfig,%{_includedir}/pci}

install pcimodules lspci setpci %{buildroot}%{_bindir}
install update-pciids %{buildroot}%{_sbindir}
install -m 644 pcimodules.man lspci.8 setpci.8 %{buildroot}%{_mandir}/man8
install -m 644 lib/libpci.a.libc %{buildroot}%{_libdir}/libpci.a
install lib/libpci.so.%{major}.* %{buildroot}%{_libdir}
ln -s libpci.so.3 %{buildroot}%{_libdir}/libpci.so
install -m 644 lib/{pci.h,header.h,config.h,types.h} %{buildroot}%{_includedir}/pci
install -m 644 lib/libpci.pc %{buildroot}%{_libdir}/pkgconfig/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15171 |21mr|pcmanfm-qt-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	File manager for the LXQt desktop
Name:		pcmanfm-qt
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/pcmanfm-qt
Source0:	https://github.com/lxqt/pcmanfm-qt/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		pcmanfm-qt-1.3.0-default.patch
Patch1:		pcmanfm-qt-1.1.0-drop-strange-checkbox.patch
Patch2:		pcmanfm-qt-1.4.0-ts-ru-translate.patch
Patch3:		pcmanfm-qt-1.4.0-drop-wallpapernone-background-color.patch
Patch4:		pcmanfm-qt-1.4.0-drop-start-by-root.patch
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libfm-qt)
BuildRequires:	pkgconfig(libmenu-cache)
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(libexif)

%description
File manager for the LXQt desktop.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_bindir}/pcmanfm-qt
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man?/*
%{_sysconfdir}/xdg/autostart/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build
mv %{buildroot}%{_datadir}/applications/%{name}-desktop-pref{,erence}.desktop
sed -i "s/Categories=Settings/Categories=LXQt;Settings/" %{buildroot}%{_datadir}/applications/%{name}-desktop-preference.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15172 |21mr|pcmciautils-018-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools for the hotpluggable PCMCIA subsystem
Name:		pcmciautils
Version:	018
Release:	7
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://www.kernel.org/pub/linux/utils/kernel/pcmcia/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		makefile_fix.patch
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	sysfsutils-devel

%description
PCMCIAutils contains hotplug scripts and initialization tools
necessary to allow the PCMCIA subsystem to behave (almost) as every
other hotpluggable bus system (e.g. USB, IEEE1394).

Please note that the kernel support for this new feature is only
present since 2.6.13-rc1.

%prep
%setup -q
%apply_patches

%build
%make LD=%{__cc} CC=%{__cc} V=1 OPTIMIZATION="%{optflags}" LDFLAGS="%{ldflags}" STRIPCMD=/bin/true

%install
%makeinstall_std

%files
%config(noreplace) %{_sysconfdir}/pcmcia/config.opts
/sbin/lspcmcia
/sbin/pccardctl
/lib/udev/rules.d/60-pcmcia.rules
/lib/udev/pcmcia-check-broken-cis
/lib/udev/pcmcia-socket-startup
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15173 |21mr|pcmemtest-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Prevent stripping
%global __spec_install_post /usr/lib/rpm/brp-compress
%global debug_package %{nil}

Summary:	Stand-alone memory tester for x86 and x86-64 computers
Name:		pcmemtest
Version:	1.5
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/martinwhitaker/pcmemtest
Source0:	https://github.com/martinwhitaker/pcmemtest/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	20_pcmemtest
Patch0:		pcmemtest-1.5-upstream.patch
BuildRequires:	dosfstools
BuildRequires:	mtools
BuildRequires:	xorriso
ExclusiveArch:	%{ix86} x86_64

%description
PCMemTest is a stand-alone memory tester for x86 and x86-64 architecture
computers. It provides a more thorough memory check than that provided by
BIOS memory tests.

PCMemTest can be loaded and run either directly by a PC BIOS (legacy or UEFI)
or via an intermediate bootloader that supports the Linux 16-bit, 32-bit,
64-bit, or EFI handover boot protocol. It should work on any Pentium class or
later 32-bit or 64-bit CPU.

%files
%doc README.md
/boot/pcmemtest
%{_sysconfdir}/grub.d/20_pcmemtest

%post
if [ -d /boot/efi/EFI ]; then
	mkdir -p /boot/efi/EFI/memtest
	cp /boot/pcmemtest /boot/efi/EFI/memtest/bootx64.efi
fi

%preun
if [ -f /boot/pcmemtest -a -f /boot/efi/EFI/memtest/bootx64.efi ]; then
	if cmp -s /boot/pcmemtest /boot/efi/EFI/memtest/bootx64.efi; then
		rm /boot/efi/EFI/memtest/bootx64.efi
	fi
fi

#----------------------------------------------------------------------------

%package iso
Summary:	ISO version of pcmemtest
Group:		System/Kernel and hardware

%description iso
ISO version of pcmemtest.

%files iso
%doc README.md
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%ifarch x86_64
pushd build64
make
make iso
popd
%else
pushd build32
make
make iso
popd
%endif

%install
mkdir -p %{buildroot}/boot
mkdir -p %{buildroot}/%{_sysconfdir}/grub.d
mkdir -p %{buildroot}%{_datadir}/%{name}
install -m644 build??/memtest.efi -D %{buildroot}/boot/pcmemtest
install -m644 build??/memtest.iso -D %{buildroot}%{_datadir}/%{name}/
install -D -m 755 %{SOURCE1} %{buildroot}/%{_sysconfdir}/grub.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15174 |21mr|pcp-5.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_ld_no_undefined %nil
# TODO: rework spec to avoid this hack
%global _duplicate_files_terminate_build 0

%global _confdir	%{_sysconfdir}/pcp
%global _logsdir	%{_localstatedir}/log/pcp
%global _pmnsdir	%{_localstatedir}/lib/pcp/pmns
%global _tempsdir	%{_localstatedir}/lib/pcp/tmp
%global _pmdasdir	%{_localstatedir}/lib/pcp/pmdas
%global _testsdir	%{_localstatedir}/lib/pcp/testsuite
%global _selinuxdir	%{_localstatedir}/lib/pcp/selinux
%global _logconfdir	%{_localstatedir}/lib/pcp/config/pmlogconf
%global _ieconfdir	%{_localstatedir}/lib/pcp/config/pmieconf
%global _tapsetdir	%{_datadir}/systemtap/tapset
%global _bashcompdir	%{_datadir}/bash-completion/completions
%global _pixmapdir	%{_datadir}/pcp-gui/pixmaps
%global _hicolordir	%{_datadir}/icons/hicolor
%global _booksdir	%{_datadir}/doc/pcp-doc

%define pcp_major 3
%define gui_major 2
%define import_major 1
%define mmv_major 1
%define pmda_major 3
%define trace_major 2
%define web_major 1
%define libname %mklibname pcp %{pcp_major}
%define libgui %mklibname pcp_gui %{gui_major}
%define libimport %mklibname pcp_import %{import_major}
%define libmmv %mklibname pcp_mmv %{mmv_major}
%define libpmda %mklibname pcp_pmda %{pmda_major}
%define libtrace %mklibname pcp_trace %{trace_major}
%define libweb %mklibname pcp_web %{web_major}
%define devname %mklibname -d %{name}

#=============================================================================

Summary:	System-level performance monitoring and performance management
Name:		pcp
Version:	5.3.2
Release:	2
Group:		Monitoring
License:	GPLv2+ and LGPLv2+ and CC-BY
Url:		https://pcp.io
Source0:	https://performancecopilot.jfrog.io/artifactory/pcp-source-release/%{name}-%{version}.src.tar.gz
Source1:	pcp.sysusers.conf
Source2:	pcpqa.sysusers.conf
Source3:	pcp.rpmlintrc
Patch0:		e2k-qmc.patch

#=========================================================================
%bcond_without selinux
%bcond_without snmp

%bcond_without perfevent
# libvarlink and pmdapodman
%bcond_without podman

# libchan, libhdr_histogram and pmdastatsd
%bcond_without statsd

%bcond_with python2

%bcond_without python3

%global perl_interpreter perl-interpreter

# support for pmdabcc, check bcc.spec for supported architectures of bcc
%ifarch %{x86_64} %{power64} aarch64 s390x
%bcond_without bcc
%else
%bcond_with bcc
%endif

# support for pmdabpftrace, check bpftrace.spec for supported architectures of bpftrace
%ifarch %{x86_64} %{power64} aarch64 s390x
%bcond_without bpftrace
%else
%bcond_with bpftrace
%endif

# support for pmdajson
%bcond_without json

# No mssql ODBC driver on non-x86 platforms
%bcond_without mssql

# support for pmdanutcracker (perl deps missing on rhel)
%bcond_without nutcracker

# static probes, missing before el6 and on some architectures
%bcond_without sdt

# libuv async event library
%bcond_without libuv
%bcond_without openssl

%bcond_without xlsx

%bcond_without dstat

# we never want Infiniband on s390 and armv7hl platforms
%bcond_without infiniband

#=========================================================================
# prevent conflicting binary and man page install for pcp(1)
Conflicts:	librapi < 0.16

# KVM PMDA moved into pcp (no longer using Perl, default on)
Obsoletes:	pcp-pmda-kvm < 4.1.1
Provides:	pcp-pmda-kvm

# PCP REST APIs are now provided by pmproxy
Obsoletes:	pcp-webapi-debuginfo < 5.0.0
Obsoletes:	pcp-webapi < 5.0.0
Provides:	pcp-webapi

# https://fedoraproject.org/wiki/Packaging "C and C++"
BuildRequires:	procps autoconf bison flex
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(rpm)
BuildRequires:	avahi-common-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)
%if %{with python3}
BuildRequires:	pkgconfig(python3)
%endif
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(libsasl2)

%if %{with podman}
BuildRequires:	pkgconfig(libvarlink)
%endif
%if %{with statsd}
BuildRequires:	ragel
BuildRequires:	chan-devel
BuildRequires:	HdrHistogram_c-devel
%endif
%if %{with perfevent}
BuildRequires:	libpfm-devel >= 4
%endif
%if %{with sdt}
BuildRequires:	systemtap-sdt-devel
%endif
%if %{with libuv}
BuildRequires:	pkgconfig(libuv)
%endif
%if %{with openssl}
BuildRequires:	openssl-devel >= 1.1.1
%endif
BuildRequires:	perl-generators
BuildRequires:	perl-devel
BuildRequires:	perl(strict)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(JSON)
BuildRequires:	perl(LWP::UserAgent)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	man hostname
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(libmicrohttpd)
BuildRequires:	desktop-file-utils
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	qt5-qtbase-devel

Requires:	pcp-conf
%if %{with selinux}
Requires:	pcp-selinux = %{EVRD}
%endif

Obsoletes:	pcp-compat < 4.2.0
Obsoletes:	pcp-monitor < 4.2.0
Obsoletes:	pcp-collector < 4.2.0
Obsoletes:	pcp-pmda-nvidia < 3.10.5

#======================================================================

%global pmda_remove() %{expand:
if [ %1 -eq 0 ]
then
    PCP_PMDAS_DIR=%{_pmdasdir}
    PCP_PMCDCONF_PATH=%{_confdir}/pmcd/pmcd.conf
    if [ -f "$PCP_PMCDCONF_PATH" -a -f "$PCP_PMDAS_DIR/%2/domain.h" ]
    then
	(cd "$PCP_PMDAS_DIR/%2/" && ./Remove >/dev/null 2>&1)
    fi
fi
}

%global install_file() %{expand:
if [ -w "%1" ]
then
    (cd "%1" && touch "%2" && chmod 644 "%2")
else
    echo "WARNING: Cannot write to %1, skipping %2 creation." >&2
fi
}

%global rebuild_pmns() %{expand:
if [ -w "%1" ]
then
    (cd "%1" && ./Rebuild -s && rm -f "%2")
else
    echo "WARNING: Cannot write to %1, skipping namespace rebuild." >&2
fi
}

%global selinux_handle_policy() %{expand:
if [ %1 -ge 1 ]
then
    %{_libexecdir}/pcp/bin/selinux-setup %{_selinuxdir} install %2
elif [ %1 -eq 0 ]
then
    %{_libexecdir}/pcp/bin/selinux-setup %{_selinuxdir} remove %2
fi
}

#======================================================================
%description
Performance Co-Pilot (PCP) provides a framework and services to support
system-level performance monitoring and performance management.

The PCP open source release provides a unifying abstraction for all of
the interesting performance data in a system, and allows client
applications to easily retrieve and process any subset of that data.

%files -f base.list
#
# Note: there are some headers (e.g. domain.h) and in a few cases some
# C source files that rpmlint complains about. These are not devel files,
# but rather they are (slightly obscure) PMDA config files.
#
%doc CHANGELOG COPYING INSTALL.md README.md VERSION.pcp pcp.lsm

%dir %{_confdir}
%dir %{_pmdasdir}
%dir %{_datadir}/pcp
%dir %{_libexecdir}/pcp
%dir %{_libexecdir}/pcp/bin
%dir %{_localstatedir}/lib/pcp
%dir %{_localstatedir}/lib/pcp/config
%dir %attr(0775,pcp,pcp) %{_tempsdir}
%dir %attr(0775,pcp,pcp) %{_tempsdir}/bash
%dir %attr(0775,pcp,pcp) %{_tempsdir}/json
%dir %attr(0775,pcp,pcp) %{_tempsdir}/mmv
%dir %attr(0775,pcp,pcp) %{_tempsdir}/pmie
%dir %attr(0775,pcp,pcp) %{_tempsdir}/pmlogger
%dir %attr(0775,pcp,pcp) %{_tempsdir}/pmproxy

%dir %{_datadir}/pcp/lib
%{_datadir}/pcp/lib/ReplacePmnsSubtree
%{_datadir}/pcp/lib/bashproc.sh
%{_libexecdir}/pcp/lib/bashproc.sh
%{_datadir}/pcp/lib/lockpmns
%{_datadir}/pcp/lib/pmdaproc.sh
%{_libexecdir}/pcp/lib/pmdaproc.sh
%{_datadir}/pcp/lib/utilproc.sh
%{_libexecdir}/pcp/lib/utilproc.sh
%{_datadir}/pcp/lib/rc-proc.sh
%{_libexecdir}/pcp/lib/rc-proc.sh
%{_datadir}/pcp/lib/rc-proc.sh.minimal
%{_libexecdir}/pcp/lib/rc-proc.sh.minimal
%{_datadir}/pcp/lib/unlockpmns
%{_libexecdir}/pcp/lib/pcp
%{_libexecdir}/pcp/lib/pmcd
%{_libexecdir}/pcp/lib/pmlogger
%{_libexecdir}/pcp/lib/pmproxy
%{_libexecdir}/pcp/lib/pmie
%{_libexecdir}/pcp/pmdas/kvm/Install
%{_libexecdir}/pcp/pmdas/kvm/Remove
%{_libexecdir}/pcp/pmdas/kvm/Upgrade
%{_libexecdir}/pcp/pmdas/kvm/domain.h
%{_libexecdir}/pcp/pmdas/kvm/help
%{_libexecdir}/pcp/pmdas/kvm/help.dir
%{_libexecdir}/pcp/pmdas/kvm/help.pag
%{_libexecdir}/pcp/pmdas/kvm/pmda_kvm.so
%{_libexecdir}/pcp/pmdas/kvm/pmdakvm
%{_libexecdir}/pcp/pmdas/kvm/root
%{_libexecdir}/pcp/pmdas/kvm/root_kvm
%{_libexecdir}/pcp/pmdas/linux/domain.h
%{_libexecdir}/pcp/pmdas/linux/help
%{_libexecdir}/pcp/pmdas/linux/help.dir
%{_libexecdir}/pcp/pmdas/linux/help.pag
%{_libexecdir}/pcp/pmdas/linux/pmda_linux.so
%{_libexecdir}/pcp/pmdas/linux/pmdalinux
%{_libexecdir}/pcp/pmdas/logger/Install
%{_libexecdir}/pcp/pmdas/logger/README
%{_libexecdir}/pcp/pmdas/logger/Remove
%{_libexecdir}/pcp/pmdas/logger/domain.h
%{_libexecdir}/pcp/pmdas/logger/help
%{_libexecdir}/pcp/pmdas/logger/pmdalogger
%{_libexecdir}/pcp/pmdas/logger/pmns
%{_libexecdir}/pcp/pmdas/logger/root
%{_libexecdir}/pcp/pmdas/mmv/Install
%{_libexecdir}/pcp/pmdas/mmv/Remove
%{_libexecdir}/pcp/pmdas/mmv/domain.h
%{_libexecdir}/pcp/pmdas/mmv/mmvdump
%{_libexecdir}/pcp/pmdas/mmv/pmda_mmv.so
%{_libexecdir}/pcp/pmdas/mmv/pmdammv
%{_libexecdir}/pcp/pmdas/mmv/root_mmv
%{_libexecdir}/pcp/pmdas/pipe/Install
%{_libexecdir}/pcp/pmdas/pipe/README
%{_libexecdir}/pcp/pmdas/pipe/Remove
%{_libexecdir}/pcp/pmdas/pipe/domain.h
%{_libexecdir}/pcp/pmdas/pipe/help
%{_libexecdir}/pcp/pmdas/pipe/pmdapipe
%{_libexecdir}/pcp/pmdas/pipe/pmns
%{_libexecdir}/pcp/pmdas/pipe/root
%{_libexecdir}/pcp/pmdas/pmcd/help.dir
%{_libexecdir}/pcp/pmdas/pmcd/help.pag
%{_libexecdir}/pcp/pmdas/pmcd/pmda_pmcd.so
%{_libexecdir}/pcp/pmdas/proc/Install
%{_libexecdir}/pcp/pmdas/proc/Remove
%{_libexecdir}/pcp/pmdas/proc/domain.h
%{_libexecdir}/pcp/pmdas/proc/help
%{_libexecdir}/pcp/pmdas/proc/help.dir
%{_libexecdir}/pcp/pmdas/proc/help.pag
%{_libexecdir}/pcp/pmdas/proc/pmda_proc.so
%{_libexecdir}/pcp/pmdas/proc/pmdaproc
%{_libexecdir}/pcp/pmdas/proc/root
%{_libexecdir}/pcp/pmdas/proc/root_proc
%{_libexecdir}/pcp/pmdas/root/domain.h
%{_libexecdir}/pcp/pmdas/root/help
%{_libexecdir}/pcp/pmdas/root/help.dir
%{_libexecdir}/pcp/pmdas/root/help.pag
%{_libexecdir}/pcp/pmdas/root/pmdaroot
%{_libexecdir}/pcp/pmdas/root/root
%{_libexecdir}/pcp/pmdas/root/root_root
%{_libexecdir}/pcp/pmdas/sockets/Install
%{_libexecdir}/pcp/pmdas/sockets/Remove
%{_libexecdir}/pcp/pmdas/sockets/domain.h
%{_libexecdir}/pcp/pmdas/sockets/help
%{_libexecdir}/pcp/pmdas/sockets/pmda_sockets.so
%{_libexecdir}/pcp/pmdas/sockets/pmdasockets
%{_libexecdir}/pcp/pmdas/sockets/pmns
%{_libexecdir}/pcp/pmdas/sockets/root
%{_libexecdir}/pcp/pmdas/sockets/Upgrade
%{_libexecdir}/pcp/pmdas/xfs/Install
%{_libexecdir}/pcp/pmdas/xfs/Remove
%{_libexecdir}/pcp/pmdas/xfs/domain.h
%{_libexecdir}/pcp/pmdas/xfs/help
%{_libexecdir}/pcp/pmdas/xfs/help.dir
%{_libexecdir}/pcp/pmdas/xfs/help.pag
%{_libexecdir}/pcp/pmdas/xfs/pmda_xfs.so
%{_libexecdir}/pcp/pmdas/xfs/pmdaxfs
%{_libexecdir}/pcp/pmdas/xfs/root
%{_libexecdir}/pcp/pmdas/xfs/root_xfs
%{_libexecdir}/pcp/pmdas/zfs/Install
%{_libexecdir}/pcp/pmdas/zfs/Remove
%{_libexecdir}/pcp/pmdas/zfs/domain.h
%{_libexecdir}/pcp/pmdas/zfs/help
%{_libexecdir}/pcp/pmdas/zfs/help.dir
%{_libexecdir}/pcp/pmdas/zfs/help.pag
%{_libexecdir}/pcp/pmdas/zfs/pmda_zfs.so
%{_libexecdir}/pcp/pmdas/zfs/pmdazfs
%{_libexecdir}/pcp/pmdas/zfs/root
%{_libexecdir}/pcp/pmdas/zfs/root_zfs
%{_libexecdir}/pcp/pmns/Make.stdpmid
%{_libexecdir}/pcp/pmns/Makefile
%{_libexecdir}/pcp/pmns/Rebuild
%{_libexecdir}/pcp/pmns/ReplacePmnsSubtree
%{_libexecdir}/pcp/pmns/lockpmns
%{_libexecdir}/pcp/pmns/root_denki
%{_libexecdir}/pcp/pmns/root_jbd2
%{_libexecdir}/pcp/pmns/root_kvm
%{_libexecdir}/pcp/pmns/root_linux
%{_libexecdir}/pcp/pmns/root_mmv
%{_libexecdir}/pcp/pmns/root_pmcd
%{_libexecdir}/pcp/pmns/root_pmproxy
%{_libexecdir}/pcp/pmns/root_podman
%{_libexecdir}/pcp/pmns/root_proc
%{_libexecdir}/pcp/pmns/root_root
%{_libexecdir}/pcp/pmns/root_xfs
%{_libexecdir}/pcp/pmns/root_zfs
%{_libexecdir}/pcp/pmns/stdpmid.local
%{_libexecdir}/pcp/pmns/stdpmid.pcp
%{_libexecdir}/pcp/pmns/unlockpmns
%dir %attr(0775,pcp,pcp) %{_logsdir}
%attr(0775,pcp,pcp) %{_logsdir}/pmcd
%attr(0775,pcp,pcp) %{_logsdir}/pmlogger
%attr(0775,pcp,pcp) %{_logsdir}/pmie
%attr(0775,pcp,pcp) %{_logsdir}/pmproxy
%{_localstatedir}/lib/pcp/pmns
%{_unitdir}/pmcd.service
%{_unitdir}/pmlogger.service
%{_unitdir}/pmie.service
%{_unitdir}/pmproxy.service
# services and timers replacing the old cron scripts
%{_unitdir}/pmlogger_check.service
%{_unitdir}/pmlogger_check.timer
%{_unitdir}/pmlogger_daily.service
%{_unitdir}/pmlogger_daily.timer
%{_unitdir}/pmlogger_daily-poll.service
%{_unitdir}/pmlogger_daily-poll.timer
%{_unitdir}/pmie_check.service
%{_unitdir}/pmie_check.timer
%{_unitdir}/pmie_daily.service
%{_unitdir}/pmie_daily.timer
%config(noreplace) %{_sysconfdir}/sysconfig/pmie_timers
%config(noreplace) %{_sysconfdir}/sysconfig/pmlogger_timers
%config(noreplace) %{_sysconfdir}/sasl2/pmcd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/pmlogger
%config(noreplace) %{_sysconfdir}/sysconfig/pmproxy
%config(noreplace) %{_sysconfdir}/sysconfig/pmcd
%config %{_sysconfdir}/pcp.env
%dir %{_confdir}/pipe.conf.d
%config(noreplace) %{_confdir}/pipe/sample.conf
%dir %{_confdir}/labels
%config(noreplace) %{_confdir}/labels.conf
%dir %{_confdir}/linux
%config(noreplace) %{_confdir}/linux/interfaces.conf
%config(noreplace) %{_confdir}/linux/samplebandwidth.conf
%dir %{_confdir}/pmcd
%config(noreplace) %{_confdir}/pmcd/pmcd.conf
%config(noreplace) %{_confdir}/pmcd/pmcd.options
%config(noreplace) %{_confdir}/pmcd/rc.local
%dir %{_confdir}/pmproxy
%config(noreplace) %{_confdir}/pmproxy/pmproxy.options
%config(noreplace) %{_confdir}/pmproxy/pmproxy.conf
%dir %{_confdir}/pmie
%dir %{_confdir}/pmie/control.d
%{_confdir}/pmie/class.d/pmfind
%config(noreplace) %{_confdir}/pmie/control
%config(noreplace) %{_confdir}/pmie/control.d/local
%dir %{_confdir}/pmlogger
%dir %{_confdir}/pmlogger/control.d
%config(noreplace) %{_confdir}/pmlogger/control
%config(noreplace) %{_confdir}/pmlogger/control.d/local
%dir %attr(0775,pcp,pcp) %{_confdir}/nssdb
%dir %{_confdir}/discover
%config(noreplace) %{_confdir}/discover/pcp-kube-pods.conf
%if %{with libuv}
%dir %{_confdir}/pmseries
%config(noreplace) %{_confdir}/pmseries/pmseries.conf
%endif
%config(noreplace) %{_confdir}/kvm/kvm.conf
%{_confdir}/pmafm/pcp
%{_confdir}/pmieconf/cpu/context_switch
%{_confdir}/pmieconf/cpu/load_average
%{_confdir}/pmieconf/cpu/low_util
%{_confdir}/pmieconf/cpu/system
%{_confdir}/pmieconf/cpu/util
%{_confdir}/pmieconf/entropy/available
%{_confdir}/pmieconf/filesys/filling
%{_confdir}/pmieconf/global/parameters
%{_confdir}/pmieconf/global/pcp_actions
%{_confdir}/pmieconf/memory/exhausted
%{_confdir}/pmieconf/memory/oom_kill
%{_confdir}/pmieconf/memory/swap_low
%{_confdir}/pmieconf/mssql/stolen_node_memory
%{_confdir}/pmieconf/network/tcplistenoverflows
%{_confdir}/pmieconf/network/tcpqfulldocookies
%{_confdir}/pmieconf/network/tcpqfulldrops
%{_confdir}/pmieconf/percpu/many_util
%{_confdir}/pmieconf/percpu/some_util
%{_confdir}/pmieconf/percpu/system
%{_confdir}/pmieconf/pernetif/collisions
%{_confdir}/pmieconf/pernetif/errors
%{_confdir}/pmieconf/pernetif/packets
%{_confdir}/pmieconf/pernetif/util
%{_confdir}/pmieconf/power/thermal_throttle
%{_confdir}/pmieconf/primary/pmda_status
%{_confdir}/pmlogconf/cpu/percpu
%{_confdir}/pmlogconf/cpu/summary
%{_confdir}/pmlogconf/disk/percontroller
%{_confdir}/pmlogconf/disk/perdisk
%{_confdir}/pmlogconf/disk/perpartition
%{_confdir}/pmlogconf/disk/summary
%{_confdir}/pmlogconf/filesystem/all
%{_confdir}/pmlogconf/filesystem/rpc-server
%{_confdir}/pmlogconf/filesystem/summary
%{_confdir}/pmlogconf/filesystem/xfs-all
%{_confdir}/pmlogconf/filesystem/xfs-io-linux
%{_confdir}/pmlogconf/kernel/bufcache-activity
%{_confdir}/pmlogconf/kernel/bufcache-all
%{_confdir}/pmlogconf/kernel/inode-cache
%{_confdir}/pmlogconf/kernel/load
%{_confdir}/pmlogconf/kernel/memory-linux
%{_confdir}/pmlogconf/kernel/read-write-data
%{_confdir}/pmlogconf/kernel/summary-linux
%{_confdir}/pmlogconf/kernel/summary-windows
%{_confdir}/pmlogconf/kernel/syscalls-linux
%{_confdir}/pmlogconf/kernel/vnodes
%{_confdir}/pmlogconf/kvm/kvm
%{_confdir}/pmlogconf/memory/buddyinfo
%{_confdir}/pmlogconf/memory/ksminfo
%{_confdir}/pmlogconf/memory/meminfo
%{_confdir}/pmlogconf/memory/proc-linux
%{_confdir}/pmlogconf/memory/slabinfo
%{_confdir}/pmlogconf/memory/swap-activity
%{_confdir}/pmlogconf/memory/swap-all
%{_confdir}/pmlogconf/memory/swap-config
%{_confdir}/pmlogconf/memory/vmstat
%{_confdir}/pmlogconf/memory/zoneinfo
%{_confdir}/pmlogconf/networking/icmp6
%{_confdir}/pmlogconf/networking/interface-all
%{_confdir}/pmlogconf/networking/interface-summary
%{_confdir}/pmlogconf/networking/ip6
%{_confdir}/pmlogconf/networking/mbufs
%{_confdir}/pmlogconf/networking/multicast
%{_confdir}/pmlogconf/networking/nfs2-client
%{_confdir}/pmlogconf/networking/nfs2-server
%{_confdir}/pmlogconf/networking/nfs3-client
%{_confdir}/pmlogconf/networking/nfs3-server
%{_confdir}/pmlogconf/networking/nfs4-client
%{_confdir}/pmlogconf/networking/nfs4-server
%{_confdir}/pmlogconf/networking/other-protocols
%{_confdir}/pmlogconf/networking/perprocess-linux
%{_confdir}/pmlogconf/networking/persocket-linux
%{_confdir}/pmlogconf/networking/rpc
%{_confdir}/pmlogconf/networking/socket-linux
%{_confdir}/pmlogconf/networking/softnet
%{_confdir}/pmlogconf/networking/streams
%{_confdir}/pmlogconf/networking/tcp-activity-linux
%{_confdir}/pmlogconf/networking/tcp-all
%{_confdir}/pmlogconf/networking/udp-all
%{_confdir}/pmlogconf/networking/udp-packets-linux
%{_confdir}/pmlogconf/networking/udp6
%{_confdir}/pmlogconf/platform/hinv
%{_confdir}/pmlogconf/platform/linux
%{_confdir}/pmlogconf/services/pmproxy
%{_confdir}/pmlogconf/services/redis
%{_confdir}/pmlogconf/sqlserver/summary
%{_confdir}/pmlogconf/storage/vdo
%{_confdir}/pmlogconf/storage/vdo-summary
%{_confdir}/pmlogconf/tools/atop-zfs
%{_confdir}/pmlogconf/tools/atop-zswap
%{_confdir}/pmlogconf/tools/htop-zfs
%{_confdir}/pmlogger/class.d/pmfind
%{_confdir}/pmlogger/config.pmstat
%ifnarch %{ix86} %{riscv64} %{e2k}
%config(noreplace) %{_confdir}/pmlogrewrite/bcc_migrate.conf
%endif
%config(noreplace) %{_confdir}/pmlogrewrite/cgroup_units.conf
%config(noreplace) %{_confdir}/pmlogrewrite/jbd2_kernel_ulong.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_disk_all_fixups.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_kernel_fixups.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_kernel_ulong.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_proc_fs_nfsd_fixups.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_proc_migrate.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_proc_net_snmp_migrate.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_proc_net_tcp_migrate.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_xfs_migrate.conf
%config(noreplace) %{_confdir}/pmlogrewrite/linux_xfs_perdev_buffer.conf
%config(noreplace) %{_confdir}/pmlogrewrite/mysql_migrate.conf
%config(noreplace) %{_confdir}/pmlogrewrite/nfsclient_migrate.conf
%config(noreplace) %{_confdir}/pmlogrewrite/pmcd_migrate.conf
%config(noreplace) %{_confdir}/pmlogrewrite/proc_discrete_strings.conf
%config(noreplace) %{_confdir}/pmlogrewrite/proc_jiffies.conf
%config(noreplace) %{_confdir}/pmlogrewrite/proc_kernel_ulong.conf
%config(noreplace) %{_confdir}/pmlogrewrite/proc_kernel_ulong_migrate.conf
%config(noreplace) %{_confdir}/pmlogrewrite/proc_scheduler.conf
%config(noreplace) %{_confdir}/pmsearch/pmsearch.conf
%config(noreplace) %{_confdir}/proc/samplehotproc.conf
%config(noreplace) %{_confdir}/sockets/filter.conf
%ghost %dir %attr(0775,pcp,pcp) %{_localstatedir}/run/pcp
%{_localstatedir}/lib/pcp/config/pmafm
%dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmie
%{_localstatedir}/lib/pcp/config/pmieconf
%dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmlogger
%{_localstatedir}/lib/pcp/config/pmlogger/*
%{_localstatedir}/lib/pcp/config/pmlogrewrite
%dir %attr(0775,pcp,pcp) %{_localstatedir}/lib/pcp/config/pmda

%{_datadir}/zsh/site-functions/_pcp
%if %{with sdt}
%{_tapsetdir}/pmcd.stp
%endif

%{_sysusersdir}/pcp.conf
%config(noreplace) %{_sysconfdir}/sysconfig/pmfind
%{_unitdir}/pmfind.service
%{_unitdir}/pmfind.timer

%pre
%sysusers_create_package pcp %{SOURCE1}
exit 0

%post
PCP_PMNS_DIR=%{_pmnsdir}
%{install_file "$PCP_PMNS_DIR" .NeedRebuild}
%systemd_post pmcd.service
%systemd_post pmlogger.service
%systemd_post pmie.service
%systemd_post pmproxy.service
%systemd_post pmfind.service
%{rebuild_pmns "$PCP_PMNS_DIR" .NeedRebuild}

%postun
%systemd_postun_with_restart pmcd.service
%systemd_postun_with_restart pmlogger.service
%systemd_postun_with_restart pmie.service
%systemd_postun_with_restart pmproxy.service
%systemd_postun_with_restart pmfind.service

%preun
if [ "$1" -eq 0 ]
then
    # stop daemons before erasing the package
       %systemd_preun pmlogger.service
       %systemd_preun pmie.service
       %systemd_preun pmproxy.service
       %systemd_preun pmcd.service
       %systemd_preun pmfind.service
	systemctl stop pmlogger.service >/dev/null 2>&1
	systemctl stop pmie.service >/dev/null 2>&1
	systemctl stop pmproxy.service >/dev/null 2>&1
	systemctl stop pmcd.service >/dev/null 2>&1
	systemctl stop pmfind.service >/dev/null 2>&1
    # cleanup namespace state/flag, may still exist
    PCP_PMNS_DIR=%{_pmnsdir}
    rm -f "$PCP_PMNS_DIR/.NeedRebuild" >/dev/null 2>&1
fi

#-----------------------------------------------------------------------
# pcp-conf
#
%package conf
Summary:	Performance Co-Pilot run-time configuration

%description conf
Performance Co-Pilot (PCP) run-time configuration

%files conf
%dir %{_includedir}/pcp
%{_includedir}/pcp/builddefs
%{_includedir}/pcp/buildrules
%config %{_sysconfdir}/pcp.conf
%dir %{_localstatedir}/lib/pcp/config/derived
%config %{_localstatedir}/lib/pcp/config/derived/*
%config(noreplace) %{_confdir}/derived/cpu-util.conf
%config(noreplace) %{_confdir}/derived/iostat.conf
%config(noreplace) %{_confdir}/derived/mssql.conf
%config(noreplace) %{_confdir}/derived/proc.conf

#-----------------------------------------------------------------------

%package -n	%{devname}
Summary:	Performance Co-Pilot (PCP) development headers
Requires:	pcp = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libgui} = %{EVRD}
Requires:	%{libimport} = %{EVRD}
Requires:	%{libmmv} = %{EVRD}
Requires:	%{libpmda} = %{EVRD}
Requires:	%{libtrace} = %{EVRD}
Requires:	%{libweb} = %{EVRD}

%description -n %{devname}
Performance Co-Pilot (PCP) headers for development.

%files -n %{devname}
%{_libdir}/libpcp.so
%{_libdir}/libpcp_gui.so
%{_libdir}/libpcp_mmv.so
%{_libdir}/libpcp_pmda.so
%{_libdir}/libpcp_trace.so
%{_libdir}/libpcp_import.so
%{_libdir}/libpcp_web.so
%{_libdir}/pkgconfig/libpcp.pc
%{_libdir}/pkgconfig/libpcp_pmda.pc
%{_libdir}/pkgconfig/libpcp_import.pc
%{_includedir}/pcp/*.h

#-----------------------------------------------------------------------
# pcp-devel
#
%package develtools
Summary:	Performance Co-Pilot (PCP) development tools and documentation
Requires:	%{devname} = %{EVRD}

%description develtools
Performance Co-Pilot (PCP) documentation and tools for development.

%files develtools -f devel.list
%{_datadir}/pcp/examples

# PMDAs that ship src and are not for production use
# straight out-of-the-box, for devel or QA use only.
%{_pmdasdir}/simple
%{_pmdasdir}/sample
%{_pmdasdir}/trivial
%{_pmdasdir}/txmon
%config(noreplace) %{_confdir}/simple/simple.conf
%{_libexecdir}/pcp/pmdas/denki/Install
%{_libexecdir}/pcp/pmdas/denki/README
%{_libexecdir}/pcp/pmdas/denki/Remove
%{_libexecdir}/pcp/pmdas/denki/domain.h
%{_libexecdir}/pcp/pmdas/denki/help
%{_libexecdir}/pcp/pmdas/denki/help.dir
%{_libexecdir}/pcp/pmdas/denki/help.pag
%{_libexecdir}/pcp/pmdas/denki/pmda_denki.so
%{_libexecdir}/pcp/pmdas/denki/pmdadenki
%{_libexecdir}/pcp/pmdas/denki/root
%{_libexecdir}/pcp/pmdas/denki/root_denki
%{_libexecdir}/pcp/pmdas/sample/Install
%{_libexecdir}/pcp/pmdas/sample/Makefile
%{_libexecdir}/pcp/pmdas/sample/README
%{_libexecdir}/pcp/pmdas/sample/Remove
%{_libexecdir}/pcp/pmdas/sample/domain.h
%{_libexecdir}/pcp/pmdas/sample/events.c
%{_libexecdir}/pcp/pmdas/sample/events.h
%{_libexecdir}/pcp/pmdas/sample/help
%{_libexecdir}/pcp/pmdas/sample/libpcp.h
%{_libexecdir}/pcp/pmdas/sample/percontext.c
%{_libexecdir}/pcp/pmdas/sample/percontext.h
%{_libexecdir}/pcp/pmdas/sample/pmda.c
%{_libexecdir}/pcp/pmdas/sample/pmda_sample.so
%{_libexecdir}/pcp/pmdas/sample/pmdasample
%{_libexecdir}/pcp/pmdas/sample/pmns
%{_libexecdir}/pcp/pmdas/sample/root
%{_libexecdir}/pcp/pmdas/sample/sample.c
%{_libexecdir}/pcp/pmdas/simple/Install
%{_libexecdir}/pcp/pmdas/simple/Makefile
%{_libexecdir}/pcp/pmdas/simple/README
%{_libexecdir}/pcp/pmdas/simple/Remove
%{_libexecdir}/pcp/pmdas/simple/domain.h
%{_libexecdir}/pcp/pmdas/simple/help
%{_libexecdir}/pcp/pmdas/simple/pmdasimple.perl
%{_libexecdir}/pcp/pmdas/simple/pmdasimple.python
%{_libexecdir}/pcp/pmdas/simple/pmns
%{_libexecdir}/pcp/pmdas/simple/root
%{_libexecdir}/pcp/pmdas/simple/simple.c
%{_libexecdir}/pcp/pmdas/trivial/Install
%{_libexecdir}/pcp/pmdas/trivial/Makefile
%{_libexecdir}/pcp/pmdas/trivial/README
%{_libexecdir}/pcp/pmdas/trivial/Remove
%{_libexecdir}/pcp/pmdas/trivial/domain.h
%{_libexecdir}/pcp/pmdas/trivial/help
%{_libexecdir}/pcp/pmdas/trivial/pmdatrivial.perl
%{_libexecdir}/pcp/pmdas/trivial/pmdatrivial.python
%{_libexecdir}/pcp/pmdas/trivial/pmns
%{_libexecdir}/pcp/pmdas/trivial/root
%{_libexecdir}/pcp/pmdas/trivial/trivial.c
%{_libexecdir}/pcp/pmdas/txmon/Install
%{_libexecdir}/pcp/pmdas/txmon/Makefile
%{_libexecdir}/pcp/pmdas/txmon/README
%{_libexecdir}/pcp/pmdas/txmon/Remove
%{_libexecdir}/pcp/pmdas/txmon/domain.h
%{_libexecdir}/pcp/pmdas/txmon/genload
%{_libexecdir}/pcp/pmdas/txmon/help
%{_libexecdir}/pcp/pmdas/txmon/pmns
%{_libexecdir}/pcp/pmdas/txmon/root
%{_libexecdir}/pcp/pmdas/txmon/txmon.c
%{_libexecdir}/pcp/pmdas/txmon/txmon.h
%{_libexecdir}/pcp/pmdas/txmon/txrecord.c

#-----------------------------------------------------------------------
# pcp-testsuite
#
%package testsuite
Summary:	Performance Co-Pilot (PCP) test suite
Requires:	%{devname} = %{EVRD}
Requires:	%{name}-develtools = %{EVRD}
Obsoletes:	pcp-gui-testsuite < 3.9.5
# The following are inherited from pcp-collector and pcp-monitor,
# both of which are now obsoleted by the base pcp package
Requires:	pcp-pmda-activemq pcp-pmda-bonding pcp-pmda-dbping pcp-pmda-ds389 pcp-pmda-ds389log
Requires:	pcp-pmda-elasticsearch pcp-pmda-gpfs pcp-pmda-gpsd pcp-pmda-hacluster pcp-pmda-lustre
Requires:	pcp-pmda-memcache pcp-pmda-mysql pcp-pmda-named pcp-pmda-netfilter pcp-pmda-news
Requires:	pcp-pmda-nginx pcp-pmda-nfsclient pcp-pmda-pdns pcp-pmda-postfix pcp-pmda-postgresql pcp-pmda-oracle
Requires:	pcp-pmda-openvswitch pcp-pmda-samba pcp-pmda-slurm pcp-pmda-vmware pcp-pmda-zimbra
Requires:	pcp-pmda-dm pcp-pmda-apache pcp-pmda-jbd2
Requires:	pcp-pmda-bash pcp-pmda-cisco pcp-pmda-gfs2 pcp-pmda-mailq pcp-pmda-mounts
Requires:	pcp-pmda-nvidia-gpu pcp-pmda-roomtemp pcp-pmda-sendmail pcp-pmda-shping pcp-pmda-smart
Requires:	pcp-pmda-lustrecomm pcp-pmda-logger pcp-pmda-docker
Obsoletes:	pcp-pmda-bind2 < %{EVRD}
%if %{with podman}
Requires:	pcp-pmda-podman
%endif
%if %{with statsd}
Requires:	pcp-pmda-statsd
%endif
%if %{with nutcracker}
Requires:	pcp-pmda-nutcracker
%endif
%if %{with bcc}
Requires:	pcp-pmda-bcc
%endif
%if %{with bpftrace}
Requires:	pcp-pmda-bpftrace
%endif
%if %{with python2} || %{with python3}
Requires:	pcp-pmda-gluster pcp-pmda-zswap pcp-pmda-unbound pcp-pmda-mic
Requires:	pcp-pmda-libvirt pcp-pmda-lio pcp-pmda-openmetrics pcp-pmda-haproxy
Requires:	pcp-pmda-lmsensors pcp-pmda-mssql pcp-pmda-netcheck pcp-pmda-rabbitmq
%endif
%if %{with mssql}
Requires:	pcp-pmda-mssql
%endif
%if %{with snmp}
Requires:	pcp-pmda-snmp
%endif
%if %{with json}
Requires:	pcp-pmda-json
%endif
Obsoletes:	pcp-pmda-rpm < %{EVRD}
Requires:	pcp-pmda-summary pcp-pmda-trace pcp-pmda-weblog
%if %{with python2} || %{with python3}
Requires:	pcp-system-tools
%endif
Requires:	pcp-gui
Requires:	bc gcc gzip bzip2

%description testsuite
Quality assurance test suite for Performance Co-Pilot (PCP).

%files testsuite
%defattr(-,pcpqa,pcpqa)
%{_testsdir}
%{_sysusersdir}/pcpqa.conf

%pre testsuite
test -d %{_testsdir} || mkdir -p -m 755 %{_testsdir}
%sysusers_create_package pcpqa %{SOURCE2}
#chown -R pcpqa:pcpqa %{_testsdir} 2>/dev/null
exit 0

%post testsuite
#chown -R pcpqa:pcpqa %{_testsdir} 2>/dev/null
    systemctl restart pmcd >/dev/null 2>&1
    systemctl restart pmlogger >/dev/null 2>&1
    systemctl enable pmcd >/dev/null 2>&1
    systemctl enable pmlogger >/dev/null 2>&1
exit 0

#-----------------------------------------------------------------------
# perl-PCP-PMDA. This is the PCP agent perl binding.
#
%package -n perl-PCP-PMDA
Summary:	Performance Co-Pilot (PCP) Perl bindings and documentation
Requires:	%{perl_interpreter}

%description -n perl-PCP-PMDA
The PCP::PMDA Perl module contains the language bindings for
building Performance Metric Domain Agents (PMDAs) using Perl.
Each PMDA exports performance data for one specific domain, for
example the operating system kernel, Cisco routers, a database,
an application, etc.

%files -n perl-PCP-PMDA -f perl-pcp-pmda.list

#-----------------------------------------------------------------------
# perl-PCP-MMV
#
%package -n perl-PCP-MMV
Summary:	Performance Co-Pilot (PCP) Perl bindings for PCP Memory Mapped Values
Requires:	%{perl_interpreter}

%description -n perl-PCP-MMV
The PCP::MMV module contains the Perl language bindings for
building scripts instrumented with the Performance Co-Pilot
(PCP) Memory Mapped Value (MMV) mechanism.
This mechanism allows arbitrary values to be exported from an
instrumented script into the PCP infrastructure for monitoring
and analysis with pmchart, pmie, pmlogger and other PCP tools.

%files -n perl-PCP-MMV -f perl-pcp-mmv.list
%{_confdir}/pmlogconf/mmv/summary

#-----------------------------------------------------------------------
# perl-PCP-LogImport
#
%package -n perl-PCP-LogImport
Summary:	Performance Co-Pilot (PCP) Perl bindings for importing external data into PCP archives
Requires:	%{perl_interpreter}

%description -n perl-PCP-LogImport
The PCP::LogImport module contains the Perl language bindings for
importing data in various 3rd party formats into PCP archives so
they can be replayed with standard PCP monitoring tools.

%files -n perl-PCP-LogImport -f perl-pcp-logimport.list

#-----------------------------------------------------------------------
# perl-PCP-LogSummary
#
%package -n perl-PCP-LogSummary
Summary:	Performance Co-Pilot (PCP) Perl bindings for post-processing output of pmlogsummary
Requires:	%{perl_interpreter}

%description -n perl-PCP-LogSummary
The PCP::LogSummary module provides a Perl module for using the
statistical summary data produced by the Performance Co-Pilot
pmlogsummary utility.  This utility produces various averages,
minima, maxima, and other calculations based on the performance
data stored in a PCP archive.  The Perl interface is ideal for
exporting this data into third-party tools (e.g. spreadsheets).

%files -n perl-PCP-LogSummary -f perl-pcp-logsummary.list

#-----------------------------------------------------------------------
# pcp-import-sar2pcp
#
%package import-sar2pcp
Summary:	Performance Co-Pilot tools for importing sar data into PCP archive logs
Requires:	perl-PCP-LogImport = %{EVRD}
Requires:	perl(XML::TokeParser)

%description import-sar2pcp
Performance Co-Pilot (PCP) front-end tools for importing sar data
into standard PCP archive logs for replay with any PCP monitoring tool.

%files import-sar2pcp
%{_bindir}/sar2pcp

#-----------------------------------------------------------------------
# pcp-import-iostat2pcp
#
%package import-iostat2pcp
Summary:	Performance Co-Pilot tools for importing iostat data into PCP archive logs
Requires:	perl-PCP-LogImport = %{EVRD}

%description import-iostat2pcp
Performance Co-Pilot (PCP) front-end tools for importing iostat data
into standard PCP archive logs for replay with any PCP monitoring tool.

%files import-iostat2pcp
%{_bindir}/iostat2pcp

#-----------------------------------------------------------------------
# pcp-import-mrtg2pcp
#
%package import-mrtg2pcp
Summary:	Performance Co-Pilot tools for importing MTRG data into PCP archive logs
Requires:	perl-PCP-LogImport = %{EVRD}

%description import-mrtg2pcp
Performance Co-Pilot (PCP) front-end tools for importing MTRG data
into standard PCP archive logs for replay with any PCP monitoring tool.

%files import-mrtg2pcp
%{_bindir}/mrtg2pcp

#-----------------------------------------------------------------------
# pcp-import-ganglia2pcp
#
%package import-ganglia2pcp
Summary:	Performance Co-Pilot tools for importing ganglia data into PCP archive logs
Requires:	perl-PCP-LogImport = %{EVRD}

%description import-ganglia2pcp
Performance Co-Pilot (PCP) front-end tools for importing ganglia data
into standard PCP archive logs for replay with any PCP monitoring tool.

%files import-ganglia2pcp
%{_bindir}/ganglia2pcp

#-----------------------------------------------------------------------
# pcp-import-collectl2pcp
#
%package import-collectl2pcp
Summary:	Performance Co-Pilot tools for importing collectl log files into PCP archive logs

%description import-collectl2pcp
Performance Co-Pilot (PCP) front-end tools for importing collectl data
into standard PCP archive logs for replay with any PCP monitoring tool.

%files import-collectl2pcp
%{_bindir}/collectl2pcp

#-----------------------------------------------------------------------
# pcp-export-zabbix-agent
#
%package export-zabbix-agent
Summary:	Module for exporting PCP metrics to Zabbix agent

%description export-zabbix-agent
Performance Co-Pilot (PCP) module for exporting metrics from PCP to
Zabbix via the Zabbix agent - see zbxpcp(3) for further details.

%files export-zabbix-agent
%{_libdir}/zabbix
%{_sysconfdir}/zabbix/zabbix_agentd.d/zbxpcp.conf

#-----------------------------------------------------------------------
%if %{with python2} || %{with python3}
#
# pcp-export-pcp2elasticsearch
#
%package export-pcp2elasticsearch
Summary:	Performance Co-Pilot tools for exporting PCP metrics to ElasticSearch
Requires:	python3-pcp = %{EVRD}
Requires:	python3-requests
BuildRequires:	python3-requests

%description export-pcp2elasticsearch
Performance Co-Pilot (PCP) front-end tools for exporting metric values
to Elasticsearch - a distributed, RESTful search and analytics engine.
See https://www.elastic.co/community for further details.

%files export-pcp2elasticsearch
%{_bindir}/pcp2elasticsearch
%{_bashcompdir}/pcp2elasticsearch
%config(noreplace) %{_confdir}/elasticsearch/elasticsearch.conf

#-----------------------------------------------------------------------
# pcp-export-pcp2graphite
#
%package export-pcp2graphite
Summary:	Performance Co-Pilot tools for exporting PCP metrics to Graphite
Requires:	python3-pcp = %{EVRD}

%description export-pcp2graphite
Performance Co-Pilot (PCP) front-end tools for exporting metric values
to graphite (http://graphite.readthedocs.org).

%files export-pcp2graphite
%{_bindir}/pcp2graphite
%{_bashcompdir}/pcp2graphite

#-----------------------------------------------------------------------
# pcp-export-pcp2influxdb
#
%package export-pcp2influxdb
Summary:	Performance Co-Pilot tools for exporting PCP metrics to InfluxDB
Requires:	python3-pcp = %{EVRD}
Requires:	python3-requests

%description export-pcp2influxdb
Performance Co-Pilot (PCP) front-end tools for exporting metric values
to InfluxDB (https://influxdata.com/time-series-platform/influxdb).

%files export-pcp2influxdb
%{_bindir}/pcp2influxdb
%{_bashcompdir}/pcp2influxdb

#-----------------------------------------------------------------------
# pcp-export-pcp2json
#
%package export-pcp2json
Summary:	Performance Co-Pilot tools for exporting PCP metrics in JSON format
Requires:	python3-pcp = %{EVRD}

%description export-pcp2json
Performance Co-Pilot (PCP) front-end tools for exporting metric values
in JSON format.

%files export-pcp2json
%{_bindir}/pcp2json
%{_bashcompdir}/pcp2json

#-----------------------------------------------------------------------
# pcp-export-pcp2spark
#
%package export-pcp2spark
Summary:	Performance Co-Pilot tools for exporting PCP metrics to Apache Spark
Requires:	python3-pcp = %{EVRD}

%description export-pcp2spark
Performance Co-Pilot (PCP) front-end tools for exporting metric values
in JSON format to Apache Spark. See https://spark.apache.org/ for
further details on Apache Spark.

%files export-pcp2spark
%{_bindir}/pcp2spark
%{_bashcompdir}/pcp2spark

#-----------------------------------------------------------------------
# pcp-export-pcp2xlsx
#
%if %{with xlsx}
%package export-pcp2xlsx
Summary:	Performance Co-Pilot tools for exporting PCP metrics to Excel
Requires:	python3-pcp = %{EVRD}
Requires:	python3-openpyxl
BuildRequires:	python3-openpyxl

%description export-pcp2xlsx
Performance Co-Pilot (PCP) front-end tools for exporting metric values
in Excel spreadsheet format.

%files export-pcp2xlsx
%{_bindir}/pcp2xlsx
%{_bashcompdir}/pcp2xlsx

%endif
#-----------------------------------------------------------------------
# pcp-export-pcp2xml
#
%package export-pcp2xml
Summary:	Performance Co-Pilot tools for exporting PCP metrics in XML format
Requires:	python3-pcp = %{EVRD}

%description export-pcp2xml
Performance Co-Pilot (PCP) front-end tools for exporting metric values
in XML format.

%files export-pcp2xml
%{_bindir}/pcp2xml
%{_bashcompdir}/pcp2xml

#-----------------------------------------------------------------------
# pcp-export-pcp2zabbix
#
%package export-pcp2zabbix
Summary:	Performance Co-Pilot tools for exporting PCP metrics to Zabbix
Requires:	python3-pcp = %{EVRD}

%description export-pcp2zabbix
Performance Co-Pilot (PCP) front-end tools for exporting metric values
to the Zabbix (https://www.zabbix.org/) monitoring software.

%files export-pcp2zabbix
%{_bindir}/pcp2zabbix
%{_bashcompdir}/pcp2zabbix

%endif

%if %{with podman}
#-----------------------------------------------------------------------
# pcp-pmda-podman
#
%package pmda-podman
Summary:	Performance Co-Pilot (PCP) metrics for podman containers
Requires:	pcp = %{EVRD}
BuildRequires:	pkgconfig(libvarlink)

%description pmda-podman
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting podman container and pod statistics through libvarlink.

%files pmda-podman
%{_pmdasdir}/podman
%{_libexecdir}/pcp/pmdas/podman/Install
%{_libexecdir}/pcp/pmdas/podman/Remove
%{_libexecdir}/pcp/pmdas/podman/domain.h
%{_libexecdir}/pcp/pmdas/podman/help
%{_libexecdir}/pcp/pmdas/podman/help.dir
%{_libexecdir}/pcp/pmdas/podman/help.pag
%{_libexecdir}/pcp/pmdas/podman/pmda_podman.so
%{_libexecdir}/pcp/pmdas/podman/pmdapodman
%{_libexecdir}/pcp/pmdas/podman/root
%{_libexecdir}/pcp/pmdas/podman/root_podman

%preun pmda-podman
%{pmda_remove "$1" "podman"}

%endif

%if %{with statsd}
#-----------------------------------------------------------------------
# pcp-pmda-statsd
#
%package pmda-statsd
Summary:	Performance Co-Pilot (PCP) metrics from statsd
Requires:	pcp = %{EVRD}

%description pmda-statsd
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting statistics from the statsd daemon.

%files pmda-statsd
%{_pmdasdir}/statsd
%config(noreplace) %{_pmdasdir}/statsd/pmdastatsd.ini
%config(noreplace) %{_confdir}/statsd/pmdastatsd.ini
%{_libexecdir}/pcp/pmdas/statsd/Install
%{_libexecdir}/pcp/pmdas/statsd/README.md
%{_libexecdir}/pcp/pmdas/statsd/Remove
%{_libexecdir}/pcp/pmdas/statsd/domain.h
%{_libexecdir}/pcp/pmdas/statsd/pmda_statsd.so
%{_libexecdir}/pcp/pmdas/statsd/pmdastatsd
%{_libexecdir}/pcp/pmdas/statsd/root_statsd
%{_confdir}/pmlogconf/statsd/statsd

%preun pmda-statsd
%{pmda_remove "$1" "statsd"}

%endif

%if %{with perfevent}
#-----------------------------------------------------------------------
# pcp-pmda-perfevent
#
%package pmda-perfevent
Summary:	Performance Co-Pilot (PCP) metrics for hardware counters
Requires:	pcp = %{EVRD}
BuildRequires:	libpfm-devel >= 4
Obsoletes:	pcp-pmda-papi < 5.0.0
Obsoletes:	pcp-pmda-papi-debuginfo < 5.0.0

%description pmda-perfevent
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting hardware counters statistics through libpfm.

%files pmda-perfevent
%{_pmdasdir}/perfevent
%config(noreplace) %{_pmdasdir}/perfevent/perfevent.conf
%config(noreplace) %{_confdir}/perfevent/perfevent.conf
%{_libexecdir}/pcp/pmdas/perfevent/Install
%{_libexecdir}/pcp/pmdas/perfevent/Remove
%{_libexecdir}/pcp/pmdas/perfevent/Upgrade
%{_libexecdir}/pcp/pmdas/perfevent/domain.h
%{_libexecdir}/pcp/pmdas/perfevent/help
%{_libexecdir}/pcp/pmdas/perfevent/perfalloc
%{_libexecdir}/pcp/pmdas/perfevent/perfevent-makerewrite.pl
%{_libexecdir}/pcp/pmdas/perfevent/pmda_perfevent.so
%{_libexecdir}/pcp/pmdas/perfevent/pmdaperfevent
%{_libexecdir}/pcp/pmdas/perfevent/pmns
%{_libexecdir}/pcp/pmdas/perfevent/root

%preun pmda-perfevent
%{pmda_remove "$1" "perfevent"}

%endif

%if %{with infiniband}
#-----------------------------------------------------------------------
# pcp-pmda-infiniband
#
%package pmda-infiniband
Summary:	Performance Co-Pilot (PCP) metrics for Infiniband HCAs and switches
Requires:	pcp = %{EVRD}
BuildRequires:	pkgconfig(libibmad)
BuildRequires:	pkgconfig(libibumad)

%description pmda-infiniband
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting Infiniband statistics.  By default, it monitors the local HCAs
but can also be configured to monitor remote GUIDs such as IB switches.

%files pmda-infiniband
%{_pmdasdir}/infiniband
%{_libexecdir}/pcp/pmdas/infiniband/Install
%{_libexecdir}/pcp/pmdas/infiniband/Remove
%{_libexecdir}/pcp/pmdas/infiniband/Upgrade
%{_libexecdir}/pcp/pmdas/infiniband/domain.h
%{_libexecdir}/pcp/pmdas/infiniband/help
%{_libexecdir}/pcp/pmdas/infiniband/pmdaib
%{_libexecdir}/pcp/pmdas/infiniband/pmns
%{_libexecdir}/pcp/pmdas/infiniband/root

%preun pmda-infiniband
%{pmda_remove "$1" "infiniband"}

%endif

#-----------------------------------------------------------------------
# pcp-pmda-activemq
#
%package pmda-activemq
Summary:	Performance Co-Pilot (PCP) metrics for ActiveMQ
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl(LWP::UserAgent)

%description pmda-activemq
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the ActiveMQ message broker.

%files pmda-activemq
%{_pmdasdir}/activemq
%{_libexecdir}/pcp/pmdas/activemq/Install
%{_libexecdir}/pcp/pmdas/activemq/PCP/ActiveMQ.pm
%{_libexecdir}/pcp/pmdas/activemq/PCP/Cache.pm
%{_libexecdir}/pcp/pmdas/activemq/PCP/JVMGarbageCollection.pm
%{_libexecdir}/pcp/pmdas/activemq/PCP/JVMMemory.pm
%{_libexecdir}/pcp/pmdas/activemq/PCP/JVMMemoryPool.pm
%{_libexecdir}/pcp/pmdas/activemq/PCP/Queue.pm
%{_libexecdir}/pcp/pmdas/activemq/PCP/RESTClient.pm
%{_libexecdir}/pcp/pmdas/activemq/PCP/TimeSource.pm
%{_libexecdir}/pcp/pmdas/activemq/Remove
%{_libexecdir}/pcp/pmdas/activemq/pmdaactivemq.pl

%preun pmda-activemq
%{pmda_remove "$1" "activemq"}

#-----------------------------------------------------------------------
# pcp-pmda-redis
#
%package pmda-redis
Summary:	Performance Co-Pilot (PCP) metrics for Redis
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl-autodie
Requires:	perl-Time-HiRes
Requires:	perl-Data-Dumper

%description pmda-redis
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from Redis servers (redis.io).

%files pmda-redis
%{_pmdasdir}/redis
%config(noreplace) %{_confdir}/redis/redis.conf
%{_libexecdir}/pcp/pmdas/redis/Install
%{_libexecdir}/pcp/pmdas/redis/Remove
%{_libexecdir}/pcp/pmdas/redis/pmdaredis.pl

%preun pmda-redis
%{pmda_remove "$1" "redis"}

%if %{with nutcracker}
#-----------------------------------------------------------------------
# pcp-pmda-nutcracker
#
%package pmda-nutcracker
Summary:	Performance Co-Pilot (PCP) metrics for NutCracker (TwemCache)
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl(YAML::XS::LibYAML)
Requires:	perl(JSON)

%description pmda-nutcracker
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from NutCracker (TwemCache).

%files pmda-nutcracker
%{_pmdasdir}/nutcracker
%config(noreplace) %{_confdir}/nutcracker/nutcracker.conf
%{_libexecdir}/pcp/pmdas/nutcracker/Install
%{_libexecdir}/pcp/pmdas/nutcracker/Remove
%{_libexecdir}/pcp/pmdas/nutcracker/pmdanutcracker.pl

%preun pmda-nutcracker
%{pmda_remove "$1" "nutcracker"}

%endif

#-----------------------------------------------------------------------
# pcp-pmda-bonding
#
%package pmda-bonding
Summary:	Performance Co-Pilot (PCP) metrics for Bonded network interfaces
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-bonding
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about bonded network interfaces.

%files pmda-bonding
%{_pmdasdir}/bonding
%{_libexecdir}/pcp/pmdas/bonding/Install
%{_libexecdir}/pcp/pmdas/bonding/Remove
%{_libexecdir}/pcp/pmdas/bonding/pmdabonding.pl

%preun pmda-bonding
%{pmda_remove "$1" "bonding"}

#-----------------------------------------------------------------------
# pcp-pmda-dbping
#
%package pmda-dbping
Summary:	Performance Co-Pilot (PCP) metrics for Database response times and Availablility
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl-DBI

%description pmda-dbping
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Database response times and Availablility.

%files pmda-dbping
%{_pmdasdir}/dbping
%{_libexecdir}/pcp/pmdas/dbping/Install
%{_libexecdir}/pcp/pmdas/dbping/Remove
%{_libexecdir}/pcp/pmdas/dbping/dbprobe.pl
%{_libexecdir}/pcp/pmdas/dbping/pmdadbping.pl

%preun pmda-dbping
%{pmda_remove "$1" "dbping"}

#-----------------------------------------------------------------------
# pcp-pmda-ds389
#
%package pmda-ds389
Summary:	Performance Co-Pilot (PCP) metrics for 389 Directory Servers
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-ds389
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about a 389 Directory Server.

%files pmda-ds389
%{_pmdasdir}/ds389
%{_libexecdir}/pcp/pmdas/ds389/ds389.conf.example
%{_libexecdir}/pcp/pmdas/ds389/Install
%{_libexecdir}/pcp/pmdas/ds389/Remove
%{_libexecdir}/pcp/pmdas/ds389/pmdads389.pl

%preun pmda-ds389
%{pmda_remove "$1" "ds389"}

#-----------------------------------------------------------------------
# pcp-pmda-ds389log
#
%package pmda-ds389log
Summary:	Performance Co-Pilot (PCP) metrics for 389 Directory Server Loggers
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl-Date-Manip
Requires:	389-ds-base

%description pmda-ds389log
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from a 389 Directory Server log.

%files pmda-ds389log
%{_pmdasdir}/ds389log
%{_libexecdir}/pcp/pmdas/ds389log/Install
%{_libexecdir}/pcp/pmdas/ds389log/Remove
%{_libexecdir}/pcp/pmdas/ds389log/pmdads389log.pl

%preun pmda-ds389log
%{pmda_remove "$1" "ds389log"}

#-----------------------------------------------------------------------
# pcp-pmda-gpfs
#
%package pmda-gpfs
Summary:	Performance Co-Pilot (PCP) metrics for GPFS Filesystem
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-gpfs
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the GPFS filesystem.

%files pmda-gpfs
%{_pmdasdir}/gpfs
%{_libexecdir}/pcp/pmdas/gpfs/Install
%{_libexecdir}/pcp/pmdas/gpfs/Remove
%{_libexecdir}/pcp/pmdas/gpfs/pmdagpfs.pl

%preun pmda-gpfs
%{pmda_remove "$1" "gpfs"}

#-----------------------------------------------------------------------
# pcp-pmda-gpsd
#
%package pmda-gpsd
Summary:	Performance Co-Pilot (PCP) metrics for a GPS Daemon
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl-Time-HiRes
Requires:	perl-JSON

%description pmda-gpsd
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about a GPS Daemon.

%files pmda-gpsd
%{_pmdasdir}/gpsd
%{_libexecdir}/pcp/pmdas/gpsd/Install
%{_libexecdir}/pcp/pmdas/gpsd/Remove
%{_libexecdir}/pcp/pmdas/gpsd/pmdagpsd.pl

%preun pmda-gpsd
%{pmda_remove "$1" "gpsd"}

#-----------------------------------------------------------------------
# pcp-pmda-hacluster
#
%package pmda-hacluster
Summary:	Performance Co-Pilot (PCP) metrics for a hacluster
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-hacluster
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about a hacluster.

%files pmda-hacluster
%{_pmdasdir}/hacluster
%{_libexecdir}/pcp/pmdas/hacluster/Install
%{_libexecdir}/pcp/pmdas/hacluster/Remove
%{_libexecdir}/pcp/pmdas/hacluster/domain.h
%{_libexecdir}/pcp/pmdas/hacluster/help
%{_libexecdir}/pcp/pmdas/hacluster/pmda_hacluster.so
%{_libexecdir}/pcp/pmdas/hacluster/pmdahacluster
%{_libexecdir}/pcp/pmdas/hacluster/pmns
%{_libexecdir}/pcp/pmdas/hacluster/root

%preun pmda-hacluster
%{pmda_remove "$1" "hacluster"}

#-----------------------------------------------------------------------
# pcp-pmda-docker
#
%package pmda-docker
Summary:	Performance Co-Pilot (PCP) metrics from the Docker daemon
Requires:	pcp = %{EVRD}

%description pmda-docker
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics using the Docker daemon REST API.

%files pmda-docker
%{_pmdasdir}/docker
%{_libexecdir}/pcp/pmdas/docker/Install
%{_libexecdir}/pcp/pmdas/docker/Remove
%{_libexecdir}/pcp/pmdas/docker/domain.h
%{_libexecdir}/pcp/pmdas/docker/help
%{_libexecdir}/pcp/pmdas/docker/pmda_docker.so
%{_libexecdir}/pcp/pmdas/docker/pmdadocker
%{_libexecdir}/pcp/pmdas/docker/pmns
%{_libexecdir}/pcp/pmdas/docker/root

%preun pmda-docker
%{pmda_remove "$1" "docker"}

#-----------------------------------------------------------------------
# pcp-pmda-lustre
#
%package pmda-lustre
Summary:	Performance Co-Pilot (PCP) metrics for the Lustre Filesytem
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-lustre
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Lustre Filesystem.

%files pmda-lustre
%{_pmdasdir}/lustre
%config(noreplace) %{_confdir}/lustre/lustre.conf
%{_libexecdir}/pcp/pmdas/lustre/Install
%{_libexecdir}/pcp/pmdas/lustre/Remove
%{_libexecdir}/pcp/pmdas/lustre/pmdalustre.pl

%preun pmda-lustre
%{pmda_remove "$1" "lustre"}

#-----------------------------------------------------------------------
# pcp-pmda-lustrecomm
#
%package pmda-lustrecomm
Summary:	Performance Co-Pilot (PCP) metrics for the Lustre Filesytem Comms
Requires:	pcp = %{EVRD}

%description pmda-lustrecomm
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Lustre Filesystem Comms.

%files pmda-lustrecomm
%{_pmdasdir}/lustrecomm
%{_libexecdir}/pcp/pmdas/lustrecomm/Install
%{_libexecdir}/pcp/pmdas/lustrecomm/README
%{_libexecdir}/pcp/pmdas/lustrecomm/Remove
%{_libexecdir}/pcp/pmdas/lustrecomm/domain.h
%{_libexecdir}/pcp/pmdas/lustrecomm/help
%{_libexecdir}/pcp/pmdas/lustrecomm/pmdalustrecomm
%{_libexecdir}/pcp/pmdas/lustrecomm/pmns
%{_libexecdir}/pcp/pmdas/lustrecomm/root

%preun pmda-lustrecomm
%{pmda_remove "$1" "lustrecomm"}

#-----------------------------------------------------------------------
# pcp-pmda-memcache
#
%package pmda-memcache
Summary:	Performance Co-Pilot (PCP) metrics for Memcached
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-memcache
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Memcached.

%files pmda-memcache
%{_pmdasdir}/memcache
%{_libexecdir}/pcp/pmdas/memcache/Install
%{_libexecdir}/pcp/pmdas/memcache/Remove
%{_libexecdir}/pcp/pmdas/memcache/pmdamemcache.pl
%{_confdir}/pmlogconf/memcache/summary

%preun pmda-memcache
%{pmda_remove "$1" "memcache"}

#-----------------------------------------------------------------------
# pcp-pmda-mysql
#
%package pmda-mysql
Summary:	Performance Co-Pilot (PCP) metrics for MySQL
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl(DBI) perl(DBD::mysql)
BuildRequires:	perl(DBI) perl(DBD::mysql)

%description pmda-mysql
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the MySQL database.

%files pmda-mysql
%{_pmdasdir}/mysql
%{_libexecdir}/pcp/pmdas/mysql/Install
%{_libexecdir}/pcp/pmdas/mysql/README
%{_libexecdir}/pcp/pmdas/mysql/Remove
%{_libexecdir}/pcp/pmdas/mysql/pmdamysql.pl
%{_confdir}/pmlogconf/mysql/summary

%preun pmda-mysql
%{pmda_remove "$1" "mysql"}

#-----------------------------------------------------------------------
# pcp-pmda-named
#
%package pmda-named
Summary:	Performance Co-Pilot (PCP) metrics for Named
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-named
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Named nameserver.

%files pmda-named
%{_pmdasdir}/named
%{_libexecdir}/pcp/pmdas/named/Install
%{_libexecdir}/pcp/pmdas/named/Remove
%{_libexecdir}/pcp/pmdas/named/pmdanamed.pl

%preun pmda-named
%{pmda_remove "$1" "named"}

#-----------------------------------------------------------------------
# pcp-pmda-netfilter
#
%package pmda-netfilter
Summary:	Performance Co-Pilot (PCP) metrics for Netfilter framework
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-netfilter
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Netfilter packet filtering framework.

%files pmda-netfilter
%{_pmdasdir}/netfilter
%{_libexecdir}/pcp/pmdas/netfilter/Install
%{_libexecdir}/pcp/pmdas/netfilter/Remove
%{_libexecdir}/pcp/pmdas/netfilter/pmdanetfilter.pl
%{_confdir}/pmlogconf/netfilter/config
%{_confdir}/pmlogconf/netfilter/summary

%preun pmda-netfilter
%{pmda_remove "$1" "netfilter"}

#-----------------------------------------------------------------------
# pcp-pmda-news
#
%package pmda-news
Summary:	Performance Co-Pilot (PCP) metrics for Usenet News
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-news
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Usenet News.

%files pmda-news
%{_pmdasdir}/news
%{_libexecdir}/pcp/pmdas/news/Install
%{_libexecdir}/pcp/pmdas/news/README
%{_libexecdir}/pcp/pmdas/news/Remove
%{_libexecdir}/pcp/pmdas/news/active
%{_libexecdir}/pcp/pmdas/news/pmdanews.pl

%preun pmda-news
%{pmda_remove "$1" "news"}

#-----------------------------------------------------------------------
# pcp-pmda-nginx
#
%package pmda-nginx
Summary:	Performance Co-Pilot (PCP) metrics for the Nginx Webserver
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl(LWP::UserAgent)
BuildRequires:	perl(LWP::UserAgent)

%description pmda-nginx
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Nginx Webserver.

%files pmda-nginx
%{_pmdasdir}/nginx
%config(noreplace) %{_confdir}/nginx/nginx.conf
%{_libexecdir}/pcp/pmdas/nginx/Install
%{_libexecdir}/pcp/pmdas/nginx/Remove
%{_libexecdir}/pcp/pmdas/nginx/pmdanginx.pl
%{_confdir}/pmlogconf/nginx/summary

%preun pmda-nginx
%{pmda_remove "$1" "nginx"}

#-----------------------------------------------------------------------
# pcp-pmda-oracle
#
%package pmda-oracle
Summary:	Performance Co-Pilot (PCP) metrics for the Oracle database
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl(DBI)
BuildRequires:	perl(DBI)

%description pmda-oracle
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Oracle database.

%files pmda-oracle
%{_pmdasdir}/oracle
%config(noreplace) %{_confdir}/oracle/sample.conf
%{_libexecdir}/pcp/pmdas/oracle/Install
%{_libexecdir}/pcp/pmdas/oracle/Remove
%{_libexecdir}/pcp/pmdas/oracle/connect.pl
%{_libexecdir}/pcp/pmdas/oracle/pmdaoracle.pl
%{_confdir}/pmlogconf/oracle/summary

%preun pmda-oracle
%{pmda_remove "$1" "oracle"}

#-----------------------------------------------------------------------
# pcp-pmda-pdns
#
%package pmda-pdns
Summary:	Performance Co-Pilot (PCP) metrics for PowerDNS
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl-Time-HiRes

%description pmda-pdns
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the PowerDNS.

%files pmda-pdns
%{_pmdasdir}/pdns
%{_libexecdir}/pcp/pmdas/pdns/Install
%{_libexecdir}/pcp/pmdas/pdns/Remove
%{_libexecdir}/pcp/pmdas/pdns/pmdapdns.pl

%preun pmda-pdns
%{pmda_remove "$1" "pdns"}

#-----------------------------------------------------------------------
# pcp-pmda-postfix
#
%package pmda-postfix
Summary:	Performance Co-Pilot (PCP) metrics for the Postfix (MTA)
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}
Requires:	perl-Time-HiRes
Requires:	postfix
# need qshape from here
BuildRequires:	postfix

%description pmda-postfix
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Postfix (MTA).

%files pmda-postfix
%{_pmdasdir}/postfix
%{_libexecdir}/pcp/pmdas/postfix/Install
%{_libexecdir}/pcp/pmdas/postfix/Remove
%{_libexecdir}/pcp/pmdas/postfix/pmdapostfix.pl

%preun pmda-postfix
%{pmda_remove "$1" "postfix"}

#-----------------------------------------------------------------------
# pcp-pmda-rsyslog
#
%package pmda-rsyslog
Summary:	Performance Co-Pilot (PCP) metrics for Rsyslog
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-rsyslog
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Rsyslog.

%files pmda-rsyslog
%{_pmdasdir}/rsyslog
%{_libexecdir}/pcp/pmdas/rsyslog/Install
%{_libexecdir}/pcp/pmdas/rsyslog/Remove
%{_libexecdir}/pcp/pmdas/rsyslog/pmdarsyslog.pl

%preun pmda-rsyslog
%{pmda_remove "$1" "rsyslog"}

#-----------------------------------------------------------------------
# pcp-pmda-openvswitch
#
%package pmda-openvswitch
Summary:	Performance Co-Pilot (PCP) metrics for openvswitch
Requires:	pcp = %{EVRD}
Requires:	python3-pcp

%description pmda-openvswitch
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about openvswitch.

%files pmda-openvswitch
%{_pmdasdir}/openvswitch
%{_libexecdir}/pcp/pmdas/openvswitch/Install
%{_libexecdir}/pcp/pmdas/openvswitch/Remove
%{_libexecdir}/pcp/pmdas/openvswitch/pmdaopenvswitch.python
%{_confdir}/pmlogconf/openvswitch/summary

%preun pmda-openvswitch
%{pmda_remove "$1" "openvswitch"}

#-----------------------------------------------------------------------
# pcp-pmda-samba
#
%package pmda-samba
Summary:	Performance Co-Pilot (PCP) metrics for Samba
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-samba
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Samba.

%files pmda-samba
%{_pmdasdir}/samba
%{_libexecdir}/pcp/pmdas/samba/Install
%{_libexecdir}/pcp/pmdas/samba/Remove
%{_libexecdir}/pcp/pmdas/samba/pmdasamba.pl

%preun pmda-samba
%{pmda_remove "$1" "samba"}

#-----------------------------------------------------------------------
# pcp-pmda-slurm
#
%package pmda-slurm
Summary:	Performance Co-Pilot (PCP) metrics for the SLURM Workload Manager
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-slurm
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from the SLURM Workload Manager.

%files pmda-slurm
%{_pmdasdir}/slurm
%{_libexecdir}/pcp/pmdas/slurm/Install
%{_libexecdir}/pcp/pmdas/slurm/Remove
%{_libexecdir}/pcp/pmdas/slurm/pmdaslurm.pl

%if %{with snmp}
#-----------------------------------------------------------------------
# pcp-pmda-snmp
#
%package pmda-snmp
Summary:	Performance Co-Pilot (PCP) metrics for Simple Network Management Protocol
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-snmp
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about SNMP.

%files pmda-snmp
%{_pmdasdir}/snmp
%config(noreplace) %{_confdir}/snmp/snmp.conf
%{_libexecdir}/pcp/pmdas/snmp/Install
%{_libexecdir}/pcp/pmdas/snmp/Remove
%{_libexecdir}/pcp/pmdas/snmp/pmdasnmp.pl

%preun pmda-snmp
%{pmda_remove "$1" "snmp"}

%endif

#-----------------------------------------------------------------------
# pcp-pmda-vmware
#
%package pmda-vmware
Summary:	Performance Co-Pilot (PCP) metrics for VMware
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-vmware
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics for VMware.

%files pmda-vmware
%{_pmdasdir}/vmware
%{_libexecdir}/pcp/pmdas/vmware/Install
%{_libexecdir}/pcp/pmdas/vmware/Remove
%{_libexecdir}/pcp/pmdas/vmware/pmdavmware.pl

%preun pmda-vmware
%{pmda_remove "$1" "vmware"}

#-----------------------------------------------------------------------
# pcp-pmda-zimbra
#
%package pmda-zimbra
Summary:	Performance Co-Pilot (PCP) metrics for Zimbra
Requires:	pcp = %{EVRD}
Requires:	perl-PCP-PMDA = %{EVRD}

%description pmda-zimbra
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Zimbra.

%files pmda-zimbra
%{_pmdasdir}/zimbra
%{_libexecdir}/pcp/pmdas/zimbra/Install
%{_libexecdir}/pcp/pmdas/zimbra/Remove
%{_libexecdir}/pcp/pmdas/zimbra/pmdazimbra.pl
%{_libexecdir}/pcp/pmdas/zimbra/zimbraprobe
%{_confdir}/pmlogconf/zimbra/all

%preun pmda-zimbra
%{pmda_remove "$1" "zimbra"}

#-----------------------------------------------------------------------
# pcp-pmda-dm
#
%package pmda-dm
Summary:	Performance Co-Pilot (PCP) metrics for the Device Mapper Cache and Thin Client
Requires:	pcp = %{EVRD}
BuildRequires:	device-mapper-devel

%description pmda-dm
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Device Mapper Cache and Thin Client.

%files pmda-dm
%{_pmdasdir}/dm
%{_ieconfdir}/dm
%{_libexecdir}/pcp/pmdas/dm/Install
%{_libexecdir}/pcp/pmdas/dm/Remove
%{_libexecdir}/pcp/pmdas/dm/Upgrade
%{_libexecdir}/pcp/pmdas/dm/domain.h
%{_libexecdir}/pcp/pmdas/dm/help
%{_libexecdir}/pcp/pmdas/dm/pmda_dm.so
%{_libexecdir}/pcp/pmdas/dm/pmdadm
%{_libexecdir}/pcp/pmdas/dm/pmns.dmcache
%{_libexecdir}/pcp/pmdas/dm/pmns.dmstats
%{_libexecdir}/pcp/pmdas/dm/pmns.dmthin
%{_libexecdir}/pcp/pmdas/dm/pmns.vdo
%{_libexecdir}/pcp/pmdas/dm/root
%{_confdir}/pmieconf/dm/data_high_util
%{_confdir}/pmieconf/dm/metadata_high_util

%preun pmda-dm
%{pmda_remove "$1" "dm"}

%if %{with bcc}
#-----------------------------------------------------------------------
# pcp-pmda-bcc
#
%package pmda-bcc
Summary:	Performance Co-Pilot (PCP) metrics from eBPF/BCC modules
Requires:	pcp = %{EVRD}
Requires:	python3-bcc
Requires:	python3-pcp

%description pmda-bcc
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
extracting performance metrics from eBPF/BCC Python modules.

%files pmda-bcc
%{_pmdasdir}/bcc
%config(noreplace) %{_confdir}/bcc/bcc-tracepoint.conf
%config(noreplace) %{_confdir}/bcc/bcc-uprobe.conf
%config(noreplace) %{_confdir}/bcc/bcc-usdt.conf
%config(noreplace) %{_confdir}/bcc/bcc.conf
%{_libexecdir}/pcp/pmdas/bcc/Install
%{_libexecdir}/pcp/pmdas/bcc/README.md
%{_libexecdir}/pcp/pmdas/bcc/Remove
%{_libexecdir}/pcp/pmdas/bcc/Upgrade
%{_libexecdir}/pcp/pmdas/bcc/modules/__init__.python
%{_libexecdir}/pcp/pmdas/bcc/modules/biolatency.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/biolatency.python
%{_libexecdir}/pcp/pmdas/bcc/modules/bioperpid.python
%{_libexecdir}/pcp/pmdas/bcc/modules/biotop.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/biotop.python
%{_libexecdir}/pcp/pmdas/bcc/modules/cachestat.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/cachestat.python
%{_libexecdir}/pcp/pmdas/bcc/modules/execsnoop.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/execsnoop.python
%{_libexecdir}/pcp/pmdas/bcc/modules/exectop.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/exectop.python
%{_libexecdir}/pcp/pmdas/bcc/modules/fs/__init__.python
%{_libexecdir}/pcp/pmdas/bcc/modules/fs/ext4dist.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/fs/ext4dist.python
%{_libexecdir}/pcp/pmdas/bcc/modules/fs/xfsdist.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/fs/xfsdist.python
%{_libexecdir}/pcp/pmdas/bcc/modules/fs/zfsdist.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/fs/zfsdist.python
%{_libexecdir}/pcp/pmdas/bcc/modules/klockstat.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/klockstat.python
%{_libexecdir}/pcp/pmdas/bcc/modules/kprobe_hits.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/kprobe_hits.python
%{_libexecdir}/pcp/pmdas/bcc/modules/netproc.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/netproc.python
%{_libexecdir}/pcp/pmdas/bcc/modules/pcpbcc.python
%{_libexecdir}/pcp/pmdas/bcc/modules/profile.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/profile.python
%{_libexecdir}/pcp/pmdas/bcc/modules/runqlat.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/runqlat.python
%{_libexecdir}/pcp/pmdas/bcc/modules/syscount.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/syscount.python
%{_libexecdir}/pcp/pmdas/bcc/modules/sysfork.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/sysfork.python
%{_libexecdir}/pcp/pmdas/bcc/modules/tcplife.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/tcplife.python
%{_libexecdir}/pcp/pmdas/bcc/modules/tcplife_old_kb.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/tcplife_old_tp.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/tcpperpid.python
%{_libexecdir}/pcp/pmdas/bcc/modules/tcpretrans.python
%{_libexecdir}/pcp/pmdas/bcc/modules/tcpretrans_count.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/tcptop.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/tcptop.python
%{_libexecdir}/pcp/pmdas/bcc/modules/tracepoint_hits.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/tracepoint_hits.python
%{_libexecdir}/pcp/pmdas/bcc/modules/ucalls.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/ucalls.python
%{_libexecdir}/pcp/pmdas/bcc/modules/uprobe_hits.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/uprobe_hits.python
%{_libexecdir}/pcp/pmdas/bcc/modules/usdt_hits.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/usdt_hits.python
%{_libexecdir}/pcp/pmdas/bcc/modules/usdt_jvm_threads.bpf
%{_libexecdir}/pcp/pmdas/bcc/modules/usdt_jvm_threads.python
%{_libexecdir}/pcp/pmdas/bcc/modules/ustat.python
%{_libexecdir}/pcp/pmdas/bcc/pmdabcc.python
%{_libexecdir}/pcp/pmdas/bcc/pmdautil.python

%preun pmda-bcc
%{pmda_remove "$1" "bcc"}

%endif

%if %{with bpftrace}
#-----------------------------------------------------------------------
# pcp-pmda-bpftrace
#
%package pmda-bpftrace
Summary:	Performance Co-Pilot (PCP) metrics from bpftrace scripts
Requires:	pcp = %{EVRD}
# need to rework libbpf from kernel-release package to import/libbpf
#Requires:	bpftrace >= 0.9.2
Requires:	python3-pcp
Requires:	python3 >= 3.6

%description pmda-bpftrace
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
extracting performance metrics from bpftrace scripts.

%files pmda-bpftrace
%{_pmdasdir}/bpftrace
%config(noreplace) %{_confdir}/bpftrace/autostart/biolatency.bt
%config(noreplace) %{_confdir}/bpftrace/autostart/runqlat.bt
%config(noreplace) %{_confdir}/bpftrace/bpftrace.conf
%{_libexecdir}/pcp/pmdas/bpftrace/Install
%{_libexecdir}/pcp/pmdas/bpftrace/README.md
%{_libexecdir}/pcp/pmdas/bpftrace/Remove
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/__init__.py
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/__pycache__
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/cluster.py
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/models.py
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/parser.py
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/pmda.py
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/process_manager.py
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/service.py
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/uncached_indom.py
%{_libexecdir}/pcp/pmdas/bpftrace/bpftrace/utils.py
%{_libexecdir}/pcp/pmdas/bpftrace/pmdabpftrace.python

%preun pmda-bpftrace
%{pmda_remove "$1" "bpftrace"}

%endif

%if %{with python2} || %{with python3}
#-----------------------------------------------------------------------
# pcp-pmda-gluster
#
%package pmda-gluster
Summary:	Performance Co-Pilot (PCP) metrics for the Gluster filesystem
Requires:	pcp = %{EVRD}
Requires:	python3-pcp

%description pmda-gluster
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the gluster filesystem.

%files pmda-gluster
%{_pmdasdir}/gluster
%{_libexecdir}/pcp/pmdas/gluster/Install
%{_libexecdir}/pcp/pmdas/gluster/Remove
%{_libexecdir}/pcp/pmdas/gluster/pmdagluster.python

%preun pmda-gluster
%{pmda_remove "$1" "gluster"}
#-----------------------------------------------------------------------
# pcp-pmda-nfsclient
#
%package pmda-nfsclient
Summary:	Performance Co-Pilot (PCP) metrics for NFS Clients
Requires:	pcp = %{EVRD}
Requires:	python3-pcp

%description pmda-nfsclient
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics for NFS Clients.

%files pmda-nfsclient
%{_pmdasdir}/nfsclient
%{_libexecdir}/pcp/pmdas/nfsclient/Install
%{_libexecdir}/pcp/pmdas/nfsclient/Remove
%{_libexecdir}/pcp/pmdas/nfsclient/Upgrade
%{_libexecdir}/pcp/pmdas/nfsclient/pmdanfsclient.python

%preun pmda-nfsclient
%{pmda_remove "$1" "nfsclient"}

#-----------------------------------------------------------------------
# pcp-pmda-postgresql
#
%package pmda-postgresql
Summary:	Performance Co-Pilot (PCP) metrics for PostgreSQL
Requires:	pcp = %{EVRD}
Requires:	python3-pcp
Requires:	python3-psycopg2
BuildRequires:	python3-psycopg2

%description pmda-postgresql
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the PostgreSQL database.

%files pmda-postgresql
%{_pmdasdir}/postgresql
%config(noreplace) %{_pmdasdir}/postgresql/pmdapostgresql.conf
%config(noreplace) %{_confdir}/postgresql/pmdapostgresql.conf
%{_libexecdir}/pcp/pmdas/postgresql/Install
%{_libexecdir}/pcp/pmdas/postgresql/Remove
%{_libexecdir}/pcp/pmdas/postgresql/Upgrade
%{_libexecdir}/pcp/pmdas/postgresql/pmdapostgresql.python
%{_confdir}/pmlogconf/postgresql/summary

%preun pmda-postgresql
%{pmda_remove "$1" "postgresql"}

#-----------------------------------------------------------------------
# pcp-pmda-zswap
#
%package pmda-zswap
Summary:	Performance Co-Pilot (PCP) metrics for compressed swap
Requires:	pcp = %{EVRD}
Requires:	python3-pcp

%description pmda-zswap
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about compressed swap.

%files pmda-zswap
%{_pmdasdir}/zswap
%{_libexecdir}/pcp/pmdas/zswap/Install
%{_libexecdir}/pcp/pmdas/zswap/Remove
%{_libexecdir}/pcp/pmdas/zswap/pmdazswap.python

%preun pmda-zswap
%{pmda_remove "$1" "zswap"}

#-----------------------------------------------------------------------
# pcp-pmda-unbound
#
%package pmda-unbound
Summary:	Performance Co-Pilot (PCP) metrics for the Unbound DNS Resolver
Requires:	pcp = %{EVRD}
Requires:	python3-pcp

%description pmda-unbound
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Unbound DNS Resolver.

%files pmda-unbound
%{_pmdasdir}/unbound
%{_libexecdir}/pcp/pmdas/unbound/Install
%{_libexecdir}/pcp/pmdas/unbound/Remove
%{_libexecdir}/pcp/pmdas/unbound/pmdaunbound.python

%preun pmda-unbound
%{pmda_remove "$1" "unbound"}

#-----------------------------------------------------------------------
# pcp-pmda-mic
#
%package pmda-mic
Summary:	Performance Co-Pilot (PCP) metrics for Intel MIC cards
Requires:	pcp = %{EVRD}
Requires:	python3-pcp

%description pmda-mic
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Intel MIC cards.

%files pmda-mic
%{_pmdasdir}/mic
%{_libexecdir}/pcp/pmdas/mic/Install
%{_libexecdir}/pcp/pmdas/mic/Remove
%{_libexecdir}/pcp/pmdas/mic/pmdamic.python

%preun pmda-mic
%{pmda_remove "$1" "mic"}

#-----------------------------------------------------------------------
# pcp-pmda-haproxy
#
%package pmda-haproxy
Summary:	Performance Co-Pilot (PCP) metrics for HAProxy
Requires:	pcp = %{EVRD}
Requires:	python3-pcp

%description pmda-haproxy
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
extracting performance metrics from HAProxy over the HAProxy stats socket.

%files pmda-haproxy
%{_pmdasdir}/haproxy
%config(noreplace) %{_confdir}/haproxy/haproxy.conf
%{_libexecdir}/pcp/pmdas/haproxy/Install
%{_libexecdir}/pcp/pmdas/haproxy/Remove
%{_libexecdir}/pcp/pmdas/haproxy/connect
%{_libexecdir}/pcp/pmdas/haproxy/pmdahaproxy.python

%preun pmda-haproxy
%{pmda_remove "$1" "haproxy"}

#-----------------------------------------------------------------------
# pcp-pmda-libvirt
#
%package pmda-libvirt
Summary:	Performance Co-Pilot (PCP) metrics for virtual machines
Requires:	pcp = %{EVRD}
%if %{with python3}
Requires:	python3-pcp
Requires:	python3-libvirt python3-lxml
BuildRequires:	python3-libvirt python3-lxml
%endif

%description pmda-libvirt
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
extracting virtualisation statistics from libvirt about behaviour of guest
and hypervisor machines.

%files pmda-libvirt
%{_pmdasdir}/libvirt
%config(noreplace) %{_confdir}/libvirt/libvirt.conf
%{_libexecdir}/pcp/pmdas/libvirt/Install
%{_libexecdir}/pcp/pmdas/libvirt/Remove
%{_libexecdir}/pcp/pmdas/libvirt/connect
%{_libexecdir}/pcp/pmdas/libvirt/pmdalibvirt.python
%{_confdir}/pmlogconf/libvirt/libvirt

%preun pmda-libvirt
%{pmda_remove "$1" "libvirt"}

#-----------------------------------------------------------------------
# pcp-pmda-elasticsearch
#
%package pmda-elasticsearch
Summary:	Performance Co-Pilot (PCP) metrics for Elasticsearch
Requires:	pcp = %{EVRD}
%if %{with python3}
Requires:	python3-pcp
%endif
%description pmda-elasticsearch
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Elasticsearch.

%files pmda-elasticsearch
%{_pmdasdir}/elasticsearch
%{_libexecdir}/pcp/pmdas/elasticsearch/Install
%{_libexecdir}/pcp/pmdas/elasticsearch/Remove
%{_libexecdir}/pcp/pmdas/elasticsearch/Upgrade
%{_libexecdir}/pcp/pmdas/elasticsearch/pmdaelasticsearch.python
%{_confdir}/pmlogconf/elasticsearch/summary

%preun pmda-elasticsearch
%{pmda_remove "$1" "elasticsearch"}

#-----------------------------------------------------------------------
# pcp-pmda-rabbitmq
#
%package pmda-rabbitmq
Summary:	Performance Co-Pilot (PCP) metrics for RabbitMQ queues
Requires:	pcp = %{EVRD}
%if %{with python3}
Requires:	python3-pcp
%endif
%description pmda-rabbitmq
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about RabbitMQ message queues.

%files pmda-rabbitmq
%{_pmdasdir}/rabbitmq
%config(noreplace) %{_confdir}/rabbitmq/rabbitmq.conf
%{_libexecdir}/pcp/pmdas/rabbitmq/Install
%{_libexecdir}/pcp/pmdas/rabbitmq/Remove
%{_libexecdir}/pcp/pmdas/rabbitmq/pmdarabbitmq.python
%{_confdir}/pmlogconf/rabbitmq/summary

%preun pmda-rabbitmq
%{pmda_remove "$1" "rabbitmq"}

#-----------------------------------------------------------------------
# pcp-pmda-lio
#
%package pmda-lio
Summary:	Performance Co-Pilot (PCP) metrics for the LIO subsystem
Requires:	pcp = %{EVRD}
%if %{with python3}
Requires:	python3-pcp
Requires:	python3-rtslib
BuildRequires:	python3-rtslib
%endif
%description pmda-lio
This package provides a PMDA to gather performance metrics from the kernels
iSCSI target interface (LIO). The metrics are stored by LIO within the Linux
kernels configfs filesystem. The PMDA provides per LUN level stats, and a
summary instance per iSCSI target, which aggregates all LUN metrics within the
target.

%files pmda-lio
%{_pmdasdir}/lio
%{_libexecdir}/pcp/pmdas/lio/Install
%{_libexecdir}/pcp/pmdas/lio/README.md
%{_libexecdir}/pcp/pmdas/lio/Remove
%{_libexecdir}/pcp/pmdas/lio/pmdalio.python

%preun pmda-lio
%{pmda_remove "$1" "lio"}

#-----------------------------------------------------------------------
# pcp-pmda-openmetrics
#
%package pmda-openmetrics
Summary:	Performance Co-Pilot (PCP) metrics from OpenMetrics endpoints
Requires:	pcp = %{EVRD}
%if %{with python3}
Requires:	python3-pcp
Requires:	python3-requests
BuildRequires:	python3-requests
%endif
Obsoletes:	pcp-pmda-prometheus < 5.0.0
Provides:	pcp-pmda-prometheus < 5.0.0

%description pmda-openmetrics
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
extracting metrics from OpenMetrics (https://openmetrics.io/) endpoints.

%files pmda-openmetrics
%{_pmdasdir}/openmetrics
%config(noreplace) %{_confdir}/openmetrics/collectd.url
%config(noreplace) %{_confdir}/openmetrics/etcd.url
%config(noreplace) %{_confdir}/openmetrics/grafana.url
%config(noreplace) %{_confdir}/openmetrics/spark.url
%{_libexecdir}/pcp/pmdas/openmetrics/Install
%{_libexecdir}/pcp/pmdas/openmetrics/Remove
%{_libexecdir}/pcp/pmdas/openmetrics/Upgrade
%{_libexecdir}/pcp/pmdas/openmetrics/pmdaopenmetrics.python
%{_confdir}/pmlogconf/openmetrics/summary

%preun pmda-openmetrics
%{pmda_remove "$1" "openmetrics"}

#-----------------------------------------------------------------------
# pcp-pmda-lmsensors
#
%package pmda-lmsensors
Summary:	Performance Co-Pilot (PCP) metrics for hardware sensors
Requires:	pcp = %{EVRD}
Requires:	lm_sensors
%if %{with python3}
Requires:	python3-pcp
%endif
# rewritten in python, so there is no longer a debuginfo package
Obsoletes:	pcp-pmda-lmsensors-debuginfo < 4.2.0
%description pmda-lmsensors
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Linux hardware monitoring sensors.

%files pmda-lmsensors
%{_pmdasdir}/lmsensors
%{_libexecdir}/pcp/pmdas/lmsensors/Install
%{_libexecdir}/pcp/pmdas/lmsensors/README
%{_libexecdir}/pcp/pmdas/lmsensors/Remove
%{_libexecdir}/pcp/pmdas/lmsensors/help
%{_libexecdir}/pcp/pmdas/lmsensors/pmdalmsensors.python
%{_libexecdir}/pcp/pmdas/lmsensors/pmns
%{_libexecdir}/pcp/pmdas/lmsensors/root

%preun pmda-lmsensors
%{pmda_remove "$1" "lmsensors"}

#-----------------------------------------------------------------------
# pcp-pmda-netcheck
#
%package pmda-netcheck
Summary:	Performance Co-Pilot (PCP) metrics for simple network checks
Requires:	pcp = %{EVRD}
%if %{with python3}
Requires:	python3-pcp
%endif
%description pmda-netcheck
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from simple network checks.

%files pmda-netcheck
%{_pmdasdir}/netcheck
%config(noreplace) %{_confdir}/netcheck/netcheck.conf
%{_libexecdir}/pcp/pmdas/netcheck/Install
%{_libexecdir}/pcp/pmdas/netcheck/Remove
%{_libexecdir}/pcp/pmdas/netcheck/modules/__init__.python
%{_libexecdir}/pcp/pmdas/netcheck/modules/dns_lookup.python
%{_libexecdir}/pcp/pmdas/netcheck/modules/dns_reverse.python
%{_libexecdir}/pcp/pmdas/netcheck/modules/pcpnetcheck.python
%{_libexecdir}/pcp/pmdas/netcheck/modules/ping.python
%{_libexecdir}/pcp/pmdas/netcheck/modules/ping_latency.python
%{_libexecdir}/pcp/pmdas/netcheck/modules/ping_loss.python
%{_libexecdir}/pcp/pmdas/netcheck/modules/port_open.python
%{_libexecdir}/pcp/pmdas/netcheck/modules/url_get.python
%{_libexecdir}/pcp/pmdas/netcheck/pmdanetcheck.python
%{_libexecdir}/pcp/pmdas/netcheck/pmdautil.python
%{_libexecdir}/pcp/pmdas/netcheck/pyprep
%{_confdir}/pmlogconf/netcheck/summary

%preun pmda-netcheck
%{pmda_remove "$1" "netcheck"}

%endif

%if %{with mssql}
#-----------------------------------------------------------------------
# pcp-pmda-mssql
#
%package pmda-mssql
Summary:	Performance Co-Pilot (PCP) metrics for Microsoft SQL Server
Requires:	pcp = %{EVRD}
%if %{with python3}
Requires:	python3-pcp
%endif
%description pmda-mssql
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from Microsoft SQL Server.

%files pmda-mssql
%{_pmdasdir}/mssql
%config(noreplace) %{_confdir}/mssql/mssql.conf
%{_libexecdir}/pcp/pmdas/mssql/Install
%{_libexecdir}/pcp/pmdas/mssql/Remove
%{_libexecdir}/pcp/pmdas/mssql/Upgrade
%{_libexecdir}/pcp/pmdas/mssql/pmdamssql.python
%{_confdir}/pmlogconf/mssql/summary

%preun pmda-mssql
%{pmda_remove "$1" "mssql"}

%endif

#-----------------------------------------------------------------------
# pcp-pmda-jbd2
#
%package pmda-jbd2
Summary:	Performance Co-Pilot (PCP) metrics for jbd2
Requires:	pcp = %{EVRD}

%description pmda-jbd2
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics output in jbd2.

%files pmda-jbd2
%{_pmdasdir}/jbd2
%{_libexecdir}/pcp/pmdas/jbd2/Install
%{_libexecdir}/pcp/pmdas/jbd2/Remove
%{_libexecdir}/pcp/pmdas/jbd2/domain.h
%{_libexecdir}/pcp/pmdas/jbd2/help
%{_libexecdir}/pcp/pmdas/jbd2/help.dir
%{_libexecdir}/pcp/pmdas/jbd2/help.pag
%{_libexecdir}/pcp/pmdas/jbd2/pmda_jbd2.so
%{_libexecdir}/pcp/pmdas/jbd2/pmdajbd2
%{_libexecdir}/pcp/pmdas/jbd2/root
%{_libexecdir}/pcp/pmdas/jbd2/root_jbd2

%preun pmda-jbd2
%{pmda_remove "$1" "jbd2"}

%if %{with json}
#-----------------------------------------------------------------------
# pcp-pmda-json
#
%package pmda-json
Summary:	Performance Co-Pilot (PCP) metrics for JSON data
Requires:	pcp = %{EVRD}
%if %{with python3}
Requires:	python3-pcp
Requires:	python3-jsonpointer python3-six
BuildRequires:	python3-jsonpointer python3-six
%endif
%description pmda-json
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics output in JSON.

%files pmda-json
%{_pmdasdir}/json
%config(noreplace) %{_confdir}/json/config.json
%{_libexecdir}/pcp/pmdas/json/Install
%{_libexecdir}/pcp/pmdas/json/README
%{_libexecdir}/pcp/pmdas/json/Remove
%{_libexecdir}/pcp/pmdas/json/generate_ceph_metadata
%{_libexecdir}/pcp/pmdas/json/pmdajson.python

%preun pmda-json
%{pmda_remove "$1" "json"}

%endif

#-----------------------------------------------------------------------
# C pmdas
# pcp-pmda-apache
#
%package pmda-apache
Summary:	Performance Co-Pilot (PCP) metrics for the Apache webserver
Requires:	pcp = %{EVRD}
%description pmda-apache
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Apache webserver.

%files pmda-apache
%{_pmdasdir}/apache
%{_libexecdir}/pcp/pmdas/apache/Install
%{_libexecdir}/pcp/pmdas/apache/README
%{_libexecdir}/pcp/pmdas/apache/Remove
%{_libexecdir}/pcp/pmdas/apache/domain.h
%{_libexecdir}/pcp/pmdas/apache/help
%{_libexecdir}/pcp/pmdas/apache/pmdaapache
%{_libexecdir}/pcp/pmdas/apache/pmns
%{_libexecdir}/pcp/pmdas/apache/root
%{_confdir}/pmlogconf/apache/processes
%{_confdir}/pmlogconf/apache/summary
%{_confdir}/pmlogconf/apache/uptime

%preun pmda-apache
%{pmda_remove "$1" "apache"}

#-----------------------------------------------------------------------
# pcp-pmda-bash
#
%package pmda-bash
Summary:	Performance Co-Pilot (PCP) metrics for the Bash shell
Requires:	pcp = %{EVRD}
%description pmda-bash
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Bash shell.

%files pmda-bash
%{_pmdasdir}/bash
%{_libexecdir}/pcp/pmdas/bash/Install
%{_libexecdir}/pcp/pmdas/bash/Remove
%{_libexecdir}/pcp/pmdas/bash/domain.h
%{_libexecdir}/pcp/pmdas/bash/help
%{_libexecdir}/pcp/pmdas/bash/pmdabash
%{_libexecdir}/pcp/pmdas/bash/pmns
%{_libexecdir}/pcp/pmdas/bash/root
%{_libexecdir}/pcp/pmdas/bash/test-child.sh
%{_libexecdir}/pcp/pmdas/bash/test-trace.sh

%preun pmda-bash
%{pmda_remove "$1" "bash"}

#-----------------------------------------------------------------------
# pcp-pmda-cifs
#
%package pmda-cifs
Summary:	Performance Co-Pilot (PCP) metrics for the CIFS protocol
Requires:	pcp = %{EVRD}
%description pmda-cifs
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Common Internet Filesytem.

%files pmda-cifs
%{_pmdasdir}/cifs
%{_libexecdir}/pcp/pmdas/cifs/Install
%{_libexecdir}/pcp/pmdas/cifs/Remove
%{_libexecdir}/pcp/pmdas/cifs/domain.h
%{_libexecdir}/pcp/pmdas/cifs/help
%{_libexecdir}/pcp/pmdas/cifs/pmda_cifs.so
%{_libexecdir}/pcp/pmdas/cifs/pmdacifs
%{_libexecdir}/pcp/pmdas/cifs/pmns
%{_libexecdir}/pcp/pmdas/cifs/root

%preun pmda-cifs
%{pmda_remove "$1" "cifs"}

#-----------------------------------------------------------------------
# pcp-pmda-cisco
#
%package pmda-cisco
Summary:	Performance Co-Pilot (PCP) metrics for Cisco routers
Requires:	pcp = %{EVRD}
%description pmda-cisco
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Cisco routers.

%files pmda-cisco
%{_pmdasdir}/cisco
%{_libexecdir}/pcp/pmdas/cisco/Install
%{_libexecdir}/pcp/pmdas/cisco/README
%{_libexecdir}/pcp/pmdas/cisco/Remove
%{_libexecdir}/pcp/pmdas/cisco/domain.h
%{_libexecdir}/pcp/pmdas/cisco/help
%{_libexecdir}/pcp/pmdas/cisco/parse
%{_libexecdir}/pcp/pmdas/cisco/pmdacisco
%{_libexecdir}/pcp/pmdas/cisco/pmns
%{_libexecdir}/pcp/pmdas/cisco/probe
%{_libexecdir}/pcp/pmdas/cisco/root
%{_confdir}/pmieconf/cisco/in_util
%{_confdir}/pmieconf/cisco/out_util

%preun pmda-cisco
%{pmda_remove "$1" "cisco"}

#-----------------------------------------------------------------------
# pcp-pmda-gfs2
#
%package pmda-gfs2
Summary:	Performance Co-Pilot (PCP) metrics for the GFS2 filesystem
Requires:	pcp = %{EVRD}
%description pmda-gfs2
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the Global Filesystem v2.

%files pmda-gfs2
%{_pmdasdir}/gfs2
%{_libexecdir}/pcp/pmdas/gfs2/Install
%{_libexecdir}/pcp/pmdas/gfs2/Remove
%{_libexecdir}/pcp/pmdas/gfs2/domain.h
%{_libexecdir}/pcp/pmdas/gfs2/help
%{_libexecdir}/pcp/pmdas/gfs2/pmdagfs2
%{_libexecdir}/pcp/pmdas/gfs2/pmns
%{_libexecdir}/pcp/pmdas/gfs2/root
%{_confdir}/pmlogconf/gfs2/gfs2-all
%{_confdir}/pmlogconf/gfs2/gfs2-base

%preun pmda-gfs2
%{pmda_remove "$1" "gfs2"}

#-----------------------------------------------------------------------
# pcp-pmda-logger
#
%package pmda-logger
Summary:	Performance Co-Pilot (PCP) metrics from arbitrary log files
Requires:	pcp = %{EVRD}
%description pmda-logger
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from a specified set of log files (or pipes).  The PMDA
supports both sampled and event-style metrics.

%files pmda-logger
%{_pmdasdir}/logger

%preun pmda-logger
%{pmda_remove "$1" "logger"}

#-----------------------------------------------------------------------
# pcp-pmda-mailq
#
%package pmda-mailq
Summary:	Performance Co-Pilot (PCP) metrics for the sendmail queue
Requires:	pcp = %{EVRD}
%description pmda-mailq
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about email queues managed by sendmail.

%files pmda-mailq
%{_pmdasdir}/mailq
%{_libexecdir}/pcp/pmdas/mailq/Install
%{_libexecdir}/pcp/pmdas/mailq/README
%{_libexecdir}/pcp/pmdas/mailq/Remove
%{_libexecdir}/pcp/pmdas/mailq/domain.h
%{_libexecdir}/pcp/pmdas/mailq/help
%{_libexecdir}/pcp/pmdas/mailq/pmdamailq
%{_libexecdir}/pcp/pmdas/mailq/pmns
%{_libexecdir}/pcp/pmdas/mailq/root
%{_confdir}/pmlogconf/mailq/summary

%preun pmda-mailq
%{pmda_remove "$1" "mailq"}

#-----------------------------------------------------------------------
# pcp-pmda-mounts
#
%package pmda-mounts
Summary:	Performance Co-Pilot (PCP) metrics for filesystem mounts
Requires:	pcp = %{EVRD}
%description pmda-mounts
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about filesystem mounts.

%files pmda-mounts
%{_pmdasdir}/mounts
%config(noreplace) %{_confdir}/mounts/mounts.conf
%{_libexecdir}/pcp/pmdas/mounts/Install
%{_libexecdir}/pcp/pmdas/mounts/README
%{_libexecdir}/pcp/pmdas/mounts/Remove
%{_libexecdir}/pcp/pmdas/mounts/domain.h
%{_libexecdir}/pcp/pmdas/mounts/help
%{_libexecdir}/pcp/pmdas/mounts/pmdamounts
%{_libexecdir}/pcp/pmdas/mounts/pmns
%{_libexecdir}/pcp/pmdas/mounts/root

%preun pmda-mounts
%{pmda_remove "$1" "mounts"}

#-----------------------------------------------------------------------
# pcp-pmda-nvidia-gpu
#
%package pmda-nvidia-gpu
Summary:	Performance Co-Pilot (PCP) metrics for the Nvidia GPU
Requires:	pcp = %{EVRD}
%description pmda-nvidia-gpu
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Nvidia GPUs.

%files pmda-nvidia-gpu
%{_pmdasdir}/nvidia
%{_libexecdir}/pcp/pmdas/nvidia/Install
%{_libexecdir}/pcp/pmdas/nvidia/README
%{_libexecdir}/pcp/pmdas/nvidia/Remove
%{_libexecdir}/pcp/pmdas/nvidia/domain.h
%{_libexecdir}/pcp/pmdas/nvidia/help
%{_libexecdir}/pcp/pmdas/nvidia/pmda_nvidia.so
%{_libexecdir}/pcp/pmdas/nvidia/pmdanvidia
%{_libexecdir}/pcp/pmdas/nvidia/pmns
%{_libexecdir}/pcp/pmdas/nvidia/root

%preun pmda-nvidia-gpu
%{pmda_remove "$1" "nvidia"}

#-----------------------------------------------------------------------
# pcp-pmda-roomtemp
#
%package pmda-roomtemp
Summary:	Performance Co-Pilot (PCP) metrics for the room temperature
Requires:	pcp = %{EVRD}
%description pmda-roomtemp
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about the room temperature.

%files pmda-roomtemp
%{_pmdasdir}/roomtemp
%{_libexecdir}/pcp/pmdas/roomtemp/Install
%{_libexecdir}/pcp/pmdas/roomtemp/README
%{_libexecdir}/pcp/pmdas/roomtemp/Remove
%{_libexecdir}/pcp/pmdas/roomtemp/domain.h
%{_libexecdir}/pcp/pmdas/roomtemp/help
%{_libexecdir}/pcp/pmdas/roomtemp/pmdaroomtemp
%{_libexecdir}/pcp/pmdas/roomtemp/pmns
%{_libexecdir}/pcp/pmdas/roomtemp/root

%preun pmda-roomtemp
%{pmda_remove "$1" "roomtemp"}

#-----------------------------------------------------------------------
# pcp-pmda-sendmail
#
%package pmda-sendmail
Summary:	Performance Co-Pilot (PCP) metrics for Sendmail
Requires:	pcp = %{EVRD}
%description pmda-sendmail
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about Sendmail traffic.

%files pmda-sendmail
%{_pmdasdir}/sendmail
%{_libexecdir}/pcp/pmdas/sendmail/Install
%{_libexecdir}/pcp/pmdas/sendmail/README
%{_libexecdir}/pcp/pmdas/sendmail/Remove
%{_libexecdir}/pcp/pmdas/sendmail/domain.h
%{_libexecdir}/pcp/pmdas/sendmail/help
%{_libexecdir}/pcp/pmdas/sendmail/pmda_sendmail.so
%{_libexecdir}/pcp/pmdas/sendmail/pmdasendmail
%{_libexecdir}/pcp/pmdas/sendmail/pmns
%{_libexecdir}/pcp/pmdas/sendmail/root

%preun pmda-sendmail
%{pmda_remove "$1" "sendmail"}

#-----------------------------------------------------------------------
# pcp-pmda-shping
#
%package pmda-shping
Summary:	Performance Co-Pilot (PCP) metrics for shell command responses
Requires:	pcp = %{EVRD}
%description pmda-shping
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about quality of service and response time measurements of
arbitrary shell commands.

%files pmda-shping
%{_pmdasdir}/shping
%config(noreplace) %{_confdir}/shping/sample.conf
%{_libexecdir}/pcp/pmdas/shping/Install
%{_libexecdir}/pcp/pmdas/shping/README
%{_libexecdir}/pcp/pmdas/shping/Remove
%{_libexecdir}/pcp/pmdas/shping/domain.h
%{_libexecdir}/pcp/pmdas/shping/help
%{_libexecdir}/pcp/pmdas/shping/pmdashping
%{_libexecdir}/pcp/pmdas/shping/pmns
%{_libexecdir}/pcp/pmdas/shping/root
%{_confdir}/pmieconf/shping/response
%{_confdir}/pmieconf/shping/status
%{_confdir}/pmlogconf/shping/summary

%preun pmda-shping
%{pmda_remove "$1" "shping"}

#-----------------------------------------------------------------------
# pcp-pmda-smart
#
%package pmda-smart
Summary:	Performance Co-Pilot (PCP) metrics for S.M.A.R.T values
Requires:	pcp = %{EVRD}
Requires:	smartmontools
%description pmda-smart
This package contains the PCP Performance Metric Domain Agent (PMDA) for
collecting metrics of disk S.M.A.R.T values making use of data from the
smartmontools package.

%files pmda-smart
%{_pmdasdir}/smart
%{_libexecdir}/pcp/pmdas/smart/Install
%{_libexecdir}/pcp/pmdas/smart/Remove
%{_libexecdir}/pcp/pmdas/smart/domain.h
%{_libexecdir}/pcp/pmdas/smart/help
%{_libexecdir}/pcp/pmdas/smart/pmda_smart.so
%{_libexecdir}/pcp/pmdas/smart/pmdasmart
%{_libexecdir}/pcp/pmdas/smart/pmns
%{_libexecdir}/pcp/pmdas/smart/root

%preun pmda-smart
%{pmda_remove "$1" "smart"}

#-----------------------------------------------------------------------
# pcp-pmda-summary
#
%package pmda-summary
Summary:	Performance Co-Pilot (PCP) summary metrics from pmie
Requires:	pcp = %{EVRD}
%description pmda-summary
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about other installed PMDAs.

%files pmda-summary
%{_pmdasdir}/summary
%config(noreplace) %{_confdir}/summary/expr.pmie
%{_libexecdir}/pcp/pmdas/summary/Install
%{_libexecdir}/pcp/pmdas/summary/README
%{_libexecdir}/pcp/pmdas/summary/Remove
%{_libexecdir}/pcp/pmdas/summary/domain.h
%{_libexecdir}/pcp/pmdas/summary/help
%{_libexecdir}/pcp/pmdas/summary/pmdasummary
%{_libexecdir}/pcp/pmdas/summary/pmns
%{_libexecdir}/pcp/pmdas/summary/root

%preun pmda-summary
%{pmda_remove "$1" "summary"}

#-----------------------------------------------------------------------
# pcp-pmda-systemd
#
%package pmda-systemd
Summary:	Performance Co-Pilot (PCP) metrics from the Systemd journal
Requires:	pcp = %{EVRD}
%description pmda-systemd
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics from the Systemd journal.

%files pmda-systemd
%{_pmdasdir}/systemd
%{_libexecdir}/pcp/pmdas/systemd/Install
%{_libexecdir}/pcp/pmdas/systemd/README
%{_libexecdir}/pcp/pmdas/systemd/Remove
%{_libexecdir}/pcp/pmdas/systemd/domain.h
%{_libexecdir}/pcp/pmdas/systemd/help
%{_libexecdir}/pcp/pmdas/systemd/pmdasystemd
%{_libexecdir}/pcp/pmdas/systemd/pmns
%{_libexecdir}/pcp/pmdas/systemd/root

%preun pmda-systemd
%{pmda_remove "$1" "systemd"}

#-----------------------------------------------------------------------
# pcp-pmda-trace
#
%package pmda-trace
Summary:	Performance Co-Pilot (PCP) metrics for application tracing
Requires:	pcp = %{EVRD}
%description pmda-trace
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about trace performance data in applications.

%files pmda-trace
%{_pmdasdir}/trace
%{_libexecdir}/pcp/pmdas/trace/Install
%{_libexecdir}/pcp/pmdas/trace/README
%{_libexecdir}/pcp/pmdas/trace/Remove
%{_libexecdir}/pcp/pmdas/trace/domain.h
%{_libexecdir}/pcp/pmdas/trace/help
%{_libexecdir}/pcp/pmdas/trace/pmdatrace
%{_libexecdir}/pcp/pmdas/trace/pmns
%{_libexecdir}/pcp/pmdas/trace/root

%preun pmda-trace
%{pmda_remove "$1" "trace"}

#-----------------------------------------------------------------------
# pcp-pmda-weblog
#
%package pmda-weblog
Summary:	Performance Co-Pilot (PCP) metrics from web server logs
Requires:	pcp = %{EVRD}
%description pmda-weblog
This package contains the PCP Performance Metrics Domain Agent (PMDA) for
collecting metrics about web server logs.

%files pmda-weblog
%{_pmdasdir}/weblog
%{_libexecdir}/pcp/pmdas/weblog/Install
%{_libexecdir}/pcp/pmdas/weblog/README
%{_libexecdir}/pcp/pmdas/weblog/Remove
%{_libexecdir}/pcp/pmdas/weblog/check_match
%{_libexecdir}/pcp/pmdas/weblog/domain.h
%{_libexecdir}/pcp/pmdas/weblog/help
%{_libexecdir}/pcp/pmdas/weblog/pmdaweblog
%{_libexecdir}/pcp/pmdas/weblog/pmns
%{_libexecdir}/pcp/pmdas/weblog/root
%{_libexecdir}/pcp/pmdas/weblog/server.sh
%{_libexecdir}/pcp/pmdas/weblog/weblogconv.sh

%preun pmda-weblog
%{pmda_remove "$1" "weblog"}

#-----------------------------------------------------------------------
%package zeroconf
Summary:	Performance Co-Pilot (PCP) Zeroconf Package
Requires:	pcp pcp-doc pcp-system-tools
Requires:	pcp-pmda-dm pcp-pmda-nfsclient
%description zeroconf
This package contains configuration tweaks and files to increase metrics
gathering frequency, several extended pmlogger configurations, as well as
automated pmie diagnosis, alerting and self-healing for the localhost.
A cron script also writes daily performance summary reports similar to
those written by sysstat.

%files zeroconf
%{_libexecdir}/pcp/bin/pmlogger_daily_report
# systemd services for pmlogger_daily_report to replace the cron script
%{_unitdir}/pmlogger_daily_report.service
%{_unitdir}/pmlogger_daily_report.timer
%{_unitdir}/pmlogger_daily_report-poll.service
%{_unitdir}/pmlogger_daily_report-poll.timer
%{_ieconfdir}/zeroconf
%{_logconfdir}/zeroconf
%{_confdir}/pmieconf/zeroconf/all_threads
%{_confdir}/pmlogconf/zeroconf/atop-proc
%{_confdir}/pmlogconf/zeroconf/interrupts
%{_confdir}/pmlogconf/zeroconf/nfsclient
%{_confdir}/pmlogconf/zeroconf/numastat
%{_confdir}/pmlogconf/zeroconf/pidstat
%{_confdir}/pmlogconf/zeroconf/pidstat-summary
%{_confdir}/pmlogconf/zeroconf/tapestat
%{_confdir}/pmlogconf/zeroconf/xfs-perdev

%post zeroconf
PCP_PMDAS_DIR=%{_pmdasdir}
PCP_SYSCONFIG_DIR=%{_sysconfdir}/sysconfig
PCP_PMCDCONF_PATH=%{_confdir}/pmcd/pmcd.conf
# auto-install important PMDAs for RH Support (if not present already)
for PMDA in dm nfsclient ; do
    if ! grep -q "$PMDA/pmda$PMDA" "$PCP_PMCDCONF_PATH"
    then
	%{install_file "$PCP_PMDAS_DIR/$PMDA" .NeedInstall}
    fi
done
# increase default pmlogger recording frequency
sed -i 's/^\#\ PMLOGGER_INTERVAL.*/PMLOGGER_INTERVAL=10/g' "$PCP_SYSCONFIG_DIR/pmlogger"
# auto-enable these usually optional pmie rules
pmieconf -c enable dmthin
systemctl restart pmcd >/dev/null 2>&1
systemctl restart pmlogger >/dev/null 2>&1
systemctl restart pmie >/dev/null 2>&1
systemctl enable pmcd >/dev/null 2>&1
systemctl enable pmlogger >/dev/null 2>&1
systemctl enable pmie >/dev/null 2>&1

%preun zeroconf
if [ "$1" -eq 0 ]
then
    %systemd_preun pmlogger_daily_report.timer
    %systemd_preun pmlogger_daily_report.service
    %systemd_preun pmlogger_daily_report-poll.timer
    %systemd_preun pmlogger_daily_report-poll.service
fi

%if %{with python3}
#-----------------------------------------------------------------------
# python3-pcp. This is the PCP library bindings for python3.
#
%package -n python3-pcp
Summary:	Performance Co-Pilot (PCP) Python3 bindings and documentation
Requires:	pcp = %{EVRD}
Requires:	python3

%description -n python3-pcp
This python PCP module contains the language bindings for
Performance Metric API (PMAPI) monitor tools and Performance
Metric Domain Agent (PMDA) collector tools written in Python3.

%files -n python3-pcp -f python3-pcp.list.rpm

%endif

#-----------------------------------------------------------------------
# pcp-system-tools
%package system-tools
Summary:	Performance Co-Pilot (PCP) System and Monitoring Tools
Requires:	python3-pcp = %{EVRD}
Requires:	pcp = %{EVRD}
%if %{with dstat}
# https://fedoraproject.org/wiki/Packaging:Guidelines "Renaming/Replacing Existing Packages"
Provides:	dstat = %{EVRD}
Provides:	/usr/bin/dstat
Obsoletes:	dstat <= 0.8
%endif

%description system-tools
This PCP module contains additional system monitoring tools written
in the Python language.

%if %{with python2} || %{with python3}
%files system-tools -f pcp-system-tools.list
%dir %{_confdir}/dstat
%dir %{_confdir}/pmrep
%config(noreplace) %{_confdir}/dstat/*
%config(noreplace) %{_confdir}/pmrep/*
%{_bashcompdir}/pmrep
%{_confdir}/htop
%{_confdir}/pmlogconf/tools/atop
%{_confdir}/pmlogconf/tools/atop-gpustats
%{_confdir}/pmlogconf/tools/atop-hotproc
%{_confdir}/pmlogconf/tools/atop-httpstats
%{_confdir}/pmlogconf/tools/atop-infiniband
%{_confdir}/pmlogconf/tools/atop-nfsclient
%{_confdir}/pmlogconf/tools/atop-perfevent
%{_confdir}/pmlogconf/tools/atop-proc
%{_confdir}/pmlogconf/tools/atop-summary
%{_confdir}/pmlogconf/tools/collectl
%{_confdir}/pmlogconf/tools/collectl-interrupts
%{_confdir}/pmlogconf/tools/collectl-summary
%{_confdir}/pmlogconf/tools/dmcache
%{_confdir}/pmlogconf/tools/dstat
%{_confdir}/pmlogconf/tools/dstat-summary
%{_confdir}/pmlogconf/tools/free
%{_confdir}/pmlogconf/tools/free-summary
%{_confdir}/pmlogconf/tools/hotproc
%{_confdir}/pmlogconf/tools/htop
%{_confdir}/pmlogconf/tools/htop-proc
%{_confdir}/pmlogconf/tools/htop-summary
%{_confdir}/pmlogconf/tools/iostat
%{_confdir}/pmlogconf/tools/ip
%{_confdir}/pmlogconf/tools/ipcs
%{_confdir}/pmlogconf/tools/mpstat
%{_confdir}/pmlogconf/tools/mpstat-interrupts
%{_confdir}/pmlogconf/tools/mpstat-summary
%{_confdir}/pmlogconf/tools/numastat
%{_confdir}/pmlogconf/tools/pcp-summary
%{_confdir}/pmlogconf/tools/pidstat
%{_confdir}/pmlogconf/tools/pidstat-summary
%{_confdir}/pmlogconf/tools/pmclient
%{_confdir}/pmlogconf/tools/pmclient-summary
%{_confdir}/pmlogconf/tools/pmieconf
%{_confdir}/pmlogconf/tools/pmstat
%{_confdir}/pmlogconf/tools/sar
%{_confdir}/pmlogconf/tools/sar-summary
%{_confdir}/pmlogconf/tools/tapestat
%{_confdir}/pmlogconf/tools/uptime
%{_confdir}/pmlogconf/tools/vector
%{_confdir}/pmlogconf/tools/vector-summary
%{_confdir}/pmlogconf/tools/vmstat
%{_confdir}/pmlogconf/tools/vmstat-summary

%endif

#-----------------------------------------------------------------------
# pcp-gui package for Qt tools
#
%package gui
Summary:	Visualization tools for the Performance Co-Pilot toolkit
Requires:	pcp = %{EVRD}
Requires:	open-sans-fonts
BuildRequires:	hicolor-icon-theme

%description gui
Visualization tools for the Performance Co-Pilot toolkit.
The pcp-gui package primarily includes visualization tools for
monitoring systems using live and archived Performance Co-Pilot
(PCP) sources.

%files gui -f pcp-gui.list
%{_confdir}/pmsnap
%config(noreplace) %{_confdir}/pmafm/pcp-gui
%config(noreplace) %{_confdir}/pmsnap/control
%{_localstatedir}/lib/pcp/config/pmsnap
%{_localstatedir}/lib/pcp/config/pmchart
%{_localstatedir}/lib/pcp/config/pmafm/pcp-gui
%{_datadir}/applications/pmchart.desktop
%{_bashcompdir}/pmdumptext
/etc/pcp/pmchart/Apache
%{_confdir}/pmchart/ApacheServer
%{_confdir}/pmchart/BusyCPU
%{_confdir}/pmchart/CPU
%{_confdir}/pmchart/Cisco
%{_confdir}/pmchart/Disk
%{_confdir}/pmchart/Diskbytes
%{_confdir}/pmchart/ElasticsearchServer
%{_confdir}/pmchart/Filesystem
%{_confdir}/pmchart/Iostat
%{_confdir}/pmchart/Iostat.DM
%{_confdir}/pmchart/Iostat.MD
%{_confdir}/pmchart/Loadavg
%{_confdir}/pmchart/MemAvailable
%{_confdir}/pmchart/Memory
%{_confdir}/pmchart/NFS2
%{_confdir}/pmchart/NFS3
%{_confdir}/pmchart/Netbytes
%{_confdir}/pmchart/Netpackets
%{_confdir}/pmchart/Overview
%{_confdir}/pmchart/PMCD
%{_confdir}/pmchart/Paging
%{_confdir}/pmchart/Sample
%{_confdir}/pmchart/Schemes
%{_confdir}/pmchart/Sendmail
%{_confdir}/pmchart/Sockets
%{_confdir}/pmchart/Swap
%{_confdir}/pmchart/Syscalls
%{_confdir}/pmchart/Web.Alarms
%{_confdir}/pmchart/Web.Allservers
%{_confdir}/pmchart/Web.Perserver.Bytes
%{_confdir}/pmchart/Web.Perserver.Requests
%{_confdir}/pmchart/Web.Requests
%{_confdir}/pmchart/Web.Volume
%{_confdir}/pmchart/shping.CPUTime
%{_confdir}/pmchart/shping.RealTime
%{_confdir}/pmchart/vCPU

#-----------------------------------------------------------------------
%package -n %{libtrace}
Summary:	Libraries files for %{name}
Group:		System/Libraries

%description -n %{libtrace}
%{summary}.

%files -n %{libtrace}
%{_libdir}/libpcp_trace.so.%{trace_major}*

#-----------------------------------------------------------------------
%package -n %{libweb}
Summary:	Libraries files for %{name}
Group:		System/Libraries

%description -n %{libweb}
%{summary}.

%files -n %{libweb}
%{_libdir}/libpcp_web.so.%{web_major}*

#-----------------------------------------------------------------------
%package -n %{libname}
Summary:	Libraries files for %{name}
Group:		System/Libraries

%description -n %{libname}
%{summary}.

%files -n %{libname}
%{_libdir}/libpcp.so.%{pcp_major}*

#-----------------------------------------------------------------------

%package -n %{libgui}
Summary:	Libraries files for %{name}
Group:		System/Libraries

%description -n %{libgui}
%{summary}.

%files -n %{libgui}
%{_libdir}/libpcp_gui.so.%{gui_major}*

#-----------------------------------------------------------------------

%package -n %{libpmda}
Summary:	Libraries files for %{name}
Group:		System/Libraries

%description -n %{libpmda}
%{summary}.

%files -n %{libpmda}
%{_libdir}/libpcp_pmda.so.%{pmda_major}*

#-----------------------------------------------------------------------

%package -n %{libmmv}
Summary:	Libraries files for %{name}
Group:		System/Libraries

%description -n %{libmmv}
%{summary}.

%files -n %{libmmv}
%{_libdir}/libpcp_mmv.so.%{mmv_major}*

#-----------------------------------------------------------------------

%package -n %{libimport}
Summary:	Libraries files for %{name}
Group:		System/Libraries

%description -n %{libimport}
%{summary}.

%files -n %{libimport}
%{_libdir}/libpcp_import.so.%{import_major}*

#-----------------------------------------------------------------------
# pcp-doc package
#
%package doc
Summary:	Documentation and tutorial for the Performance Co-Pilot
# http://fedoraproject.org/wiki/Packaging:Conflicts "Splitting Packages"
# (all man pages migrated to pcp-doc during great package split of '15)
Conflicts:	pcp-pmda-infiniband < 3.10.5

%description doc
Documentation and tutorial for the Performance Co-Pilot
Performance Co-Pilot (PCP) provides a framework and services to support
system-level performance monitoring and performance management.

The pcp-doc package provides useful information on using and
configuring the Performance Co-Pilot (PCP) toolkit for system
level performance management.  It includes tutorials, HOWTOs,
and other detailed documentation about the internals of core
PCP utilities and daemons, and the PCP graphical tools.

%files doc -f pcp-doc.list
%{_mandir}/man1/dstat.1.*

#-----------------------------------------------------------------------
# pcp-selinux package
#
%if %{with selinux}
%package selinux
Summary:	Selinux policy package
BuildRequires:	selinux-policy-devel
BuildRequires:	selinux-policy-mls
BuildRequires:	setools-console
Requires:	policycoreutils
Requires:	selinux-policy-mls

%description selinux
This package contains SELinux support for PCP.  The package contains
interface rules, type enforcement and file context adjustments for an
updated policy package.

%files selinux -f pcp-selinux.list
%dir %{_selinuxdir}
%{_libexecdir}/pcp/selinux/pcpupstream-container.pp
%{_libexecdir}/pcp/selinux/pcpupstream-container.te
%{_libexecdir}/pcp/selinux/pcpupstream.pp
%{_libexecdir}/pcp/selinux/pcpupstream.te

%preun selinux
%{selinux_handle_policy "$1" "pcpupstream"}
%triggerun selinux -- docker-selinux
%{selinux_handle_policy "$1" "pcpupstream-docker"}
%triggerun selinux -- container-selinux
%{selinux_handle_policy "$1" "pcpupstream-container"}

%post selinux
%{selinux_handle_policy "$1" "pcpupstream"}
%triggerin selinux -- docker-selinux
%{selinux_handle_policy "$1" "pcpupstream-docker"}
%triggerin selinux -- container-selinux
%{selinux_handle_policy "$1" "pcpupstream-container"}

%endif

#========================================================================
%prep
%autosetup -p1

%build
export PYTHON=%{__python3}
%configure \
    --with-docdir=%{_docdir}/%{name} \
%if %{without dstat}
    --with-dstat-symlink=no \
%endif
%if %{with infiniband}
    --with-infiniband \
%endif
%if %{without podman}
    --with-pmdapodman=no \
%else
    --with-pmdapodman \
%endif
%if %{without statsd}
    --with-pmdastatsd=no \
%else
    --with-pmdastatsd \
%endif
%if %{without perfevent}
    --with-perfevent=no \
%else
    --with-perfevent \
%endif
%if %{without bcc}
    --with-pmdabcc=no \
%else
    --with-pmdabcc=yes \
%endif
%if %{without bpftrace}
    --with-pmdabpftrace=no \
%else
    --with-pmdabpftrace \
%endif
%if %{without json}
    --with-pmdajson=no \
%else
    --with-pmdajson=yes \
%endif
%if %{without snmp}
    --with-pmdasnmp=no \
%else
    --with-pmdasnmp \
%endif
%if %{without nutcracker}
    --with-pmdanutcracker=no \
%else
    --with-pmdanutcracker \
%endif
    --with-python=no \
    --with-python3

# build selinux first
# race condition in common queue
pushd src/selinux/
%make_build
popd
#make %{?_smp_mflags} default_pcp
%make_build default_pcp

%install
export NO_CHOWN=true DIST_ROOT=%{buildroot}
mkdir -p %{buildroot}/%{python3_sitearch}/pcp/__pycache__
make install_pcp

PCP_GUI='pmchart|pmconfirm|pmdumptext|pmmessage|pmquery|pmsnap|pmtime'

# Fix stuff we do/don't want to ship
rm -f %{buildroot}/%{_libdir}/*.a

# remove sheet2pcp until BZ 830923 and BZ 754678 are resolved.
rm -f %{buildroot}/%{_bindir}/sheet2pcp %{buildroot}/%{_mandir}/man1/sheet2pcp.1*

# remove {config,platform}sz.h as these are not multilib friendly.
rm -f %{buildroot}/%{_includedir}/pcp/configsz.h
rm -f %{buildroot}/%{_includedir}/pcp/platformsz.h

%if %{without infiniband}
# remove pmdainfiniband on platforms lacking IB devel packages.
rm -f %{buildroot}/%{_pmdasdir}/ib
rm -fr %{buildroot}/%{_pmdasdir}/infiniband
%endif

%if %{without mssql}
# remove pmdamssql on platforms lacking MSODBC driver packages.
rm -fr %{buildroot}/%{_pmdasdir}/mssql
%endif

%if %{without selinux}
rm -fr %{buildroot}/%{_selinuxdir}
%endif

rm -rf %{buildroot}/usr/share/doc/pcp-gui
desktop-file-validate %{buildroot}/%{_datadir}/applications/pmchart.desktop

%if %{without xlsx}
rm -f %{buildroot}/%{_bashcompdir}/pcp2xlsx
rm -f %{buildroot}/%{_bindir}/pcp2xlsx
%endif

# Fedora and RHEL default local only access for pmcd and pmlogger
sed -i -e '/^# .*_LOCAL=1/s/^# //' %{buildroot}/%{_sysconfdir}/sysconfig/{pmcd,pmlogger}

# default chkconfig off (all RPM platforms)
for f in %{buildroot}/%{_libexecdir}/{pcp,pmcd,pmlogger,pmie,pmproxy}; do
	test -f "$f" || continue
	sed -i -e '/^# chkconfig/s/:.*$/: - 95 05/' -e '/^# Default-Start:/s/:.*$/:/' $f
done

# list of PMDAs in the base pkg
ls -1 %{buildroot}/%{_pmdasdir} |\
  grep -E -v '^simple|sample|trivial|txmon' |\
  grep -E -v '^perfevent|perfalloc.1' |\
  grep -E -v '^ib$|^infiniband' |\
  grep -E -v '^activemq' |\
  grep -E -v '^bonding' |\
  grep -E -v '^bind2' |\
  grep -E -v '^dbping' |\
  grep -E -v '^docker' |\
  grep -E -v '^ds389log'|\
  grep -E -v '^ds389' |\
  grep -E -v '^elasticsearch' |\
  grep -E -v '^gpfs' |\
  grep -E -v '^gpsd' |\
  grep -E -v '^lio' |\
  grep -E -v '^lustre' |\
  grep -E -v '^lustrecomm' |\
  grep -E -v '^memcache' |\
  grep -E -v '^mysql' |\
  grep -E -v '^named' |\
  grep -E -v '^netfilter' |\
  grep -E -v '^news' |\
  grep -E -v '^nfsclient' |\
  grep -E -v '^nginx' |\
  grep -E -v '^nutcracker' |\
  grep -E -v '^oracle' |\
  grep -E -v '^openmetrics' |\
  grep -E -v '^pdns' |\
  grep -E -v '^podman' |\
  grep -E -v '^postfix' |\
  grep -E -v '^postgresql' |\
  grep -E -v '^redis' |\
  grep -E -v '^rsyslog' |\
  grep -E -v '^samba' |\
  grep -E -v '^slurm' |\
  grep -E -v '^snmp' |\
  grep -E -v '^statsd' |\
  grep -E -v '^vmware' |\
  grep -E -v '^zimbra' |\
  grep -E -v '^dm' |\
  grep -E -v '^apache' |\
  grep -E -v '^bash' |\
  grep -E -v '^cifs' |\
  grep -E -v '^cisco' |\
  grep -E -v '^gfs2' |\
  grep -E -v '^libvirt' |\
  grep -E -v '^lmsensors' |\
  grep -E -v '^logger' |\
  grep -E -v '^mailq' |\
  grep -E -v '^mounts' |\
  grep -E -v '^mssql' |\
  grep -E -v '^netcheck' |\
  grep -E -v '^openvswitch' |\
  grep -E -v '^nvidia' |\
  grep -E -v '^rabbitmq' |\
  grep -E -v '^roomtemp' |\
  grep -E -v '^sendmail' |\
  grep -E -v '^shping' |\
  grep -E -v '^smart' |\
  grep -E -v '^summary' |\
  grep -E -v '^trace' |\
  grep -E -v '^weblog' |\
  grep -E -v '^rpm' |\
  grep -E -v '^json' |\
  grep -E -v '^jbd2' |\
  grep -E -v '^mic' |\
  grep -E -v '^bcc' |\
  grep -E -v '^bpftrace' |\
  grep -E -v '^gluster' |\
  grep -E -v '^zswap' |\
  grep -E -v '^unbound' |\
  grep -E -v '^haproxy' |\
  grep -E -v '^hacluster' |\
  sed -e 's#^#'%{_pmdasdir}'\/#' >base_pmdas.list

# all base pcp package files except those split out into sub-packages
ls -1 %{buildroot}/%{_bindir} |\
  grep -E -v 'pmiostat|zabbix|zbxpcp|dstat|pmrep|pcp2csv' |\
  grep -E -v 'pcp2spark|pcp2graphite|pcp2influxdb|pcp2zabbix' |\
  grep -E -v 'pcp2elasticsearch|pcp2json|pcp2xlsx|pcp2xml' |\
  grep -E -v 'pmdbg|pmclient|pmerr|genpmda' |\
sed -e 's#^#'%{_bindir}'\/#' >base_bin.list
ls -1 %{buildroot}/%{_bashcompdir} |\
  grep -E -v 'pcp2spark|pcp2graphite|pcp2influxdb|pcp2zabbix' |\
  grep -E -v 'pcp2elasticsearch|pcp2json|pcp2xlsx|pcp2xml' |\
  grep -E -v 'pcp2csv|pmrep|pmdumptext' |\
sed -e 's#^#'%{_bashcompdir}'\/#' >base_bashcomp.list

# Separate the pcp-system-tools package files.
# pmiostat is a back-compat symlink to its pcp(1) sub-command variant
# so its also in pcp-system-tools.
%if %{with python2} || %{with python3}
ls -1 %{buildroot}/%{_bindir} |\
  egrep -e 'pmiostat|pmrep|dstat|pcp2csv' |\
  sed -e 's#^#'%{_bindir}'\/#' >pcp-system-tools.list
ls -1 %{buildroot}/%{_libexecdir}/pcp/bin |\
  egrep -e 'atop|dmcache|dstat|free|iostat|ipcs|lvmcache|mpstat' \
        -e 'numastat|pidstat|shping|tapestat|uptime|verify' |\
  sed -e 's#^#'%{_libexecdir}/pcp/bin'\/#' >>pcp-system-tools.list
%endif
# Separate the pcp-selinux package files.
%if %{with selinux}
ls -1 %{buildroot}/%{_selinuxdir} |\
  sed -e 's#^#'%{_selinuxdir}'\/#' > pcp-selinux.list
ls -1 %{buildroot}/%{_libexecdir}/pcp/bin |\
  grep -E 'selinux-setup' |\
  sed -e 's#^#'%{_libexecdir}/pcp/bin'\/#' >> pcp-selinux.list
%endif

ls -1 %{buildroot}/%{_libexecdir}/pcp/bin |\
%if %{with python2} || %{with python3}
  grep -E -v 'atop|dmcache|dstat|free|iostat|ipcs|lvmcache|mpstat' |\
  grep -E -v 'numastat|shping|tapestat|uptime|verify|selinux-setup' |\
%endif
  grep -E -v 'pmlogger_daily_report' |\
  sed -e 's#^#'%{_libexecdir}/pcp/bin'\/#' >base_exec.list
ls -1 %{buildroot}/%{_booksdir} |\
  sed -e 's#^#'%{_booksdir}'\/#' > pcp-doc.list
ls -1 %{buildroot}/%{_mandir}/man1 |grep -v 'dstat.1' |\
  sed -e 's#^#'%{_mandir}'\/man1\/#' >>pcp-doc.list
ls -1 %{buildroot}/%{_datadir}/pcp/demos/tutorials |\
  sed -e 's#^#'%{_datadir}/pcp/demos/tutorials'\/#' >>pcp-doc.list
ls -1 %{buildroot}/%{_pixmapdir} |\
  sed -e 's#^#'%{_pixmapdir}'\/#' > pcp-gui.list
cat base_bin.list base_exec.list base_bashcomp.list |\
  grep -E "$PCP_GUI" >> pcp-gui.list
ls -1 %{buildroot}/%{_logconfdir}/ |\
    sed -e 's#^#'%{_logconfdir}'\/#' |\
    grep -E -v 'zeroconf' >pcp-logconf.list
ls -1 %{buildroot}/%{_ieconfdir}/ |\
    sed -e 's#^#'%{_ieconfdir}'\/#' |\
    grep -E -v 'zeroconf' >pcp-ieconf.list
cat base_pmdas.list base_bin.list base_exec.list base_bashcomp.list \
    pcp-logconf.list pcp-ieconf.list |\
  grep -E -v 'pmdaib|pmsnap|2pcp|pmdas/systemd|zeroconf' |\
  grep -E -v "$PCP_GUI|pixmaps|hicolor|pcp-doc|tutorials|selinux" |\
  grep -E -v %{_confdir} | grep -E -v %{_logsdir} > base.list

# all devel pcp package files except those split out into sub packages
ls -1 %{buildroot}/%{_datadir}/pcp/demos |\
sed -e 's#^#'%{_datadir}'\/pcp\/demos\/#' | grep -E -v tutorials >> devel.list
ls -1 %{buildroot}/%{_bindir} |\
grep -E 'pmdbg|pmclient|pmerr|genpmda' |\
sed -e 's#^#'%{_bindir}'\/#' >>devel.list

#install sysuser configs
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/pcp.conf
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/pcpqa.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15175 |21mr|pcre2-10.36-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define posixmajor 2
%define libname8 %mklibname pcre2-8_ %{major}
%define libname16 %mklibname pcre2-16_ %{major}
%define libname32 %mklibname pcre2-32_ %{major}
%define libnameposix %mklibname pcre2posix %{posixmajor}
%define devname %mklibname %{name} -d

Summary:	Perl-compatible regular expression library
Name:		pcre2
Version:	10.36
Release:	4
License:	BSD
Group:		System/Libraries
Url:		http://www.pcre.org/
Source0:    https://github.com/PhilipHazel/pcre2/releases/download/%{name}-%{version}/%{name}-%{version}.tar.bz2
# Do no set RPATH if libdir is not /usr/lib
Patch0:     pcre2-10.10-Fix-multilib.patch
# CVE-2022-1586 CVE-2022-1587
Patch1:     pcre2_jit_compile.c.diff
Patch2:     pcre2_jit_test.c.diff
Patch3:		CVE-2022-41409.patch
BuildRequires:	readline-devel

%description
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
expression) library to provide an entirely new API.

PCRE2 is written in C, and it has its own API. There are three sets of
functions, one for the 8-bit library, which processes strings of bytes, one
for the 16-bit library, which processes strings of 16-bit values, and one for
the 32-bit library, which processes strings of 32-bit values. There are no C++
wrappers.

The distribution does contain a set of C wrapper functions for the 8-bit
library that are based on the POSIX regular expression API (see the pcre2posix
man page). These can be found in a library called libpcre2posix. Note that
this just provides a POSIX calling interface to PCRE2; the regular expressions
themselves still follow Perl syntax and semantics. The POSIX API is
restricted, and does not give full access to all of PCRE2's facilities.

#----------------------------------------------------------------------------

%package -n %{libname8}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries

%description -n %{libname8}
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
expression) library to provide an entirely new API.

%files -n %{libname8}
%{_libdir}/libpcre2-8.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname16}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries

%description -n %{libname16}
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
expression) library to provide an entirely new API.

%files -n %{libname16}
%{_libdir}/libpcre2-16.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname32}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries

%description -n %{libname32}
PCRE2 is a re-working of the original PCRE (Perl-compatible regular
expression) library to provide an entirely new API.

%files -n %{libname32}
%{_libdir}/libpcre2-32.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameposix}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries

%description -n %{libnameposix}
This package contains the shared library libpcre2-posix.

%files -n %{libnameposix}
%{_libdir}/libpcre2-posix.so.%{posixmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname8} = %{EVRD}
Requires:	%{libname16} = %{EVRD}
Requires:	%{libname32} = %{EVRD}
Requires:	%{libnameposix} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files (headers, libraries for dynamic linking, documentation)
for %{name}. The header file for the POSIX-style functions is called
pcre2posix.h.

%files -n %{devname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_includedir}/*.h
%{_mandir}/man1/pcre2-config.*
%{_mandir}/man3/*
%{_bindir}/pcre2-config

#----------------------------------------------------------------------------

%package tools
Summary:	Auxiliary utilities for %{name}
Group:		Development/Tools

%description tools
Utilities demonstrating PCRE2 capabilities like pcre2grep or pcre2test.

%files tools
%{_bindir}/pcre2grep
%{_bindir}/pcre2test
%{_mandir}/man1/pcre2grep.*
%{_mandir}/man1/pcre2test.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
# Because of multilib patch
libtoolize --copy --force
autoreconf -vif

%configure \
%ifnarch %{e2k} %{riscv}
	--enable-jit \
	--enable-pcre2grep-jit \
%endif
	--disable-bsr-anycrlf \
	--disable-coverage \
	--disable-ebcdic \
	--disable-never-backslash-C \
	--enable-newline-is-lf \
	--enable-pcre2-8 \
	--enable-pcre2-16 \
	--enable-pcre2-32 \
	--disable-pcre2test-libedit \
	--enable-pcre2test-libreadline \
	--disable-pcre2grep-libbz2 \
	--disable-pcre2grep-libz \
	--disable-rebuild-chartables \
	--enable-shared \
	--enable-stack-for-recursion \
	--disable-static \
	--enable-unicode \
	--disable-valgrind
%make

%install
%makeinstall_std
# These are handled by %%doc in %%files
rm -rf %{buildroot}%{_docdir}/pcre2

%check
make check VERBOSE=yes


# CVE-2016-3191 CVE-2017-8399 CVE-2017-8786

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15176 |21mr|pcre-8.45-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pcre_major 1
%define pcre16_major 0
%define pcre32_major 0
%define pcrecpp_major 0
%define pcreposix1_major 1
%define pcreposix0_major 0

%define libname %mklibname pcre %{pcre_major}
%define libname16 %mklibname pcre16_ %{pcre16_major}
%define libname32 %mklibname pcre32_ %{pcre32_major}
%define libnamecpp %mklibname pcrecpp %{pcrecpp_major}
%define libnameposix1 %mklibname pcreposix %{pcreposix1_major}
%define libnameposix0 %mklibname pcreposix %{pcreposix0_major}
%define devname %mklibname pcre -d
%define sdevname %mklibname pcre -d -s

%define build_pcreposix_compat 1
%bcond_with crosscompile

%ifnarch %{ix86}
# (tpg) optimize it a bit
%global optflags %optflags -O3
%endif

Summary:	Perl-compatible regular expression library
Name:		pcre
Version:	8.45
Release:	1
License:	BSD-Style
Group:		File tools
Url:		http://www.pcre.org/
Source0:    https://sourceforge.net/projects/pcre/files/pcre/%{version}/%{name}-%{version}.tar.bz2
Patch0:		pcre-0.6.5-fix-detect-into-kdelibs.patch
Patch1:		pcre-linkage_fix.diff
Patch2:		pcre-8.21-multilib.patch
# from debian:
Patch3:		pcre-pcreposix-glibc-conflict.patch
Patch6:		bug2173.patch
# from fedora:
Patch10:     pcre-8.32-refused_spelling_terminated.patch
# Fix recursion stack estimator, upstream bug #2173, refused by upstream
Patch11:     pcre-8.41-fix_stack_estimator.patch
BuildRequires:	libtool
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(libedit)

%description
PCRE has its own native API, but a set of "wrapper" functions that are based on
the POSIX API are also supplied in the library libpcreposix. Note that this
just provides a POSIX calling interface to PCRE: the regular expressions
themselves still follow Perl syntax and semantics.

This package contains a grep variant based on the PCRE library.

%files
%{_bindir}/pcregrep
%{_bindir}/pcretest
%{_mandir}/man1/pcregrep.1*
%{_mandir}/man1/pcretest.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library libpcre.

%files -n %{libname}
/%{_lib}/libpcre.so.%{pcre_major}*

#----------------------------------------------------------------------------

%package -n %{libname16}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries
Conflicts:	%{_lib}pcre1 < 8.30-3

%description -n %{libname16}
This package contains the shared library libpcre16.

%files -n %{libname16}
%{_libdir}/libpcre16.so.%{pcre16_major}*

#----------------------------------------------------------------------------

%package -n %{libname32}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries

%description -n %{libname32}
This package contains the shared library libpcre32.

%files -n %{libname32}
%{_libdir}/libpcre32.so.%{pcre32_major}*

#----------------------------------------------------------------------------

%package -n %{libnamecpp}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries
Conflicts:	%{_lib}pcre1 < 8.30-3

%description -n %{libnamecpp}
This package contains the shared library libpcrecpp.

%files -n %{libnamecpp}
%{_libdir}/libpcrecpp.so.%{pcrecpp_major}*

#----------------------------------------------------------------------------

%package -n %{libnameposix1}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries
Conflicts:	%{_lib}pcre1 < 8.30-3

%description -n %{libnameposix1}
This package contains the shared library libpcreposix.

%files -n %{libnameposix1}
/%{_lib}/libpcreposix.so.%{pcreposix1_major}*

#----------------------------------------------------------------------------

%package -n %{libnameposix0}
Summary:	Perl-compatible regular expression library
Group:		System/Libraries
Conflicts:	%{_lib}pcre1 < 8.30-3
Conflicts:	%{_lib}pcre0 < 8.21

%description -n %{libnameposix0}
This package contains the shared library libpcreposix compat.

%files -n %{libnameposix0}
%{_libdir}/libpcreposix.so.%{pcreposix0_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for pcre development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libname16} = %{EVRD}
Requires:	%{libname32} = %{EVRD}
Requires:	%{libnamecpp} = %{EVRD}
Requires:	%{libnameposix1} = %{EVRD}
Requires:	%{libnameposix0} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Install this package if you want do compile applications using the PCRE
library.

The header file for the POSIX-style functions is called pcreposix.h. The
official POSIX name is regex.h, but I didn't want to risk possible problems
with existing files of that name by distributing it that way. To use it with an
existing program that uses the POSIX API, it will have to be renamed or pointed
at by a link.

%files -n %{devname}

%{_bindir}/pcre-config
%{_libdir}/lib*.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/libpcre16.pc
%{_libdir}/pkgconfig/libpcre32.pc
%{_libdir}/pkgconfig/libpcrecpp.pc
%{_libdir}/pkgconfig/libpcre.pc
%{_libdir}/pkgconfig/libpcreposix.pc
%{_mandir}/man1/pcre-config.1*
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Library file for linking statically to PCRE
Group:		Development/C
Provides:	%{name}-static-devel = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
Library file for linking statically to PCRE.

%files -n %{sdevname}
%{_libdir}/*.a

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Conflicts:	%{mklibname -d %{name}} < 2.54.3-2

%description doc
Documentation for %{name}.

%files doc
%doc AUTHORS COPYING LICENCE NEWS README
%doc doc/html

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .detect_into_kdelibs
%patch1 -p1
%patch2 -p1

# bork
sed -i -e "s|ln -s|ln -snf|g" Makefile.am

%if %{build_pcreposix_compat}
  # pcre-pcreposix-glibc-conflict patch below breaks compatibility,
  # create a libpcreposix.so.0 without the patch
  cp -a . ../pcre-with-pcreposix_compat && mv ../pcre-with-pcreposix_compat .
%endif
%patch3 -p1 -b .symbol-conflict
%patch10 -p1
%patch11 -p2

# Because of rpath patch
libtoolize --copy --force

%build
%if %{build_pcreposix_compat}
dirs="pcre-with-pcreposix_compat ."
%else
dirs="."
%endif
for i in $dirs; do
  cd $i
  mkdir -p m4
  autoreconf -fi
  # The static lib is needed for qemu-static-* targets.
  # Please don't remove it.
  %configure \
	--enable-static \
%ifarch %{ix86} %{x86_64} %{arm}
	--enable-jit \
%endif
	--enable-utf \
	--enable-pcre16 \
	--enable-pcre32 \
	--enable-unicode-properties
  %make_build
  cd -
done

%install
%if %{build_pcreposix_compat}
%make_install -C pcre-with-pcreposix_compat
%endif
%make_install

install -d %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libpcre.so.%{pcre_major}.* %{buildroot}/%{_lib}
# strange thing
# see https://issues.openmandriva.org/show_bug.cgi?id=389
%if %{with crosscompile}
ln -srf %{buildroot}/%{_lib}/libpcre.so.%{pcre_major}.*.* %{buildroot}/%{_lib}/libpcre.so.1
%endif
ln -srf %{buildroot}/%{_lib}/libpcre.so.%{pcre_major}.*.* %{buildroot}%{_libdir}/libpcre.so
mv %{buildroot}%{_libdir}/libpcreposix.so.%{pcreposix1_major}.* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libpcreposix.so.%{pcreposix1_major}.*.* %{buildroot}%{_libdir}/libpcreposix.so

# Remove unwanted files
rm -rf %{buildroot}%{_docdir}/pcre*

%check
export LC_ALL=C
# Tests, patch out actual pcre_study_size in expected results
#echo 'int main() { printf("%d", sizeof(pcre_study_data)); return 0; }' | \
#%{__cc} -xc - -include "pcre_internal.h" -I. -o study_size
#STUDY_SIZE=`./study_size`
#perl -pi -e "s,(Study size\s+=\s+)\d+,\${1}$STUDY_SIZE," testdata/testoutput*
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15177 |21mr|pcs-0.10.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#some tests fail on mock build
%bcond_with tests

%global version_or_commit %{version}
# %%global version_or_commit 67591ed1487cb0aefa181fdfc166c8a66b55d25a
%global pcs_source_name %{name}-%{version_or_commit}

# ui_commit can be determined by hash, tag or branch
%global ui_commit 0.1.4
%global node_modules 0.1.3
%global ui_src_name pcs-web-ui-%{ui_commit}

%global pcs_snmp_pkg_name  pcs-snmp

%global pyagentx_version 0.4.pcs.2
%global dacite_version 1.6.0

# We do not use _libdir macro because upstream is not prepared for it.
# Pcs does not include binaries and thus it should live in /usr/lib. Tornado
# and gems include binaries and thus it should live in /usr/lib64. But the
# path to tornado/gems is hardcoded in pcs sources. Modify hard links in pcs
# sources is not the way since then rpmdiff complains that the same file has
# different content in different architectures.
%global pcs_libdir %{_prefix}/lib
%global bundled_src_dir pcs/bundled
%global pcsd_public_dir pcsd/public

#part after last slash is recognized as filename in look-aside repository
#desired name is achived by trick with hash anchor

Name:		pcs
Version:	0.10.7
Release:	5
Summary:	Pacemaker Configuration System
Group:		System/Base
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
# GPLv2: pcs
# MIT: handlebars
License:	GPLv2 and MIT
URL:		https://github.com/ClusterLabs/pcs
Source0: %{url}/archive/%{version_or_commit}/%{pcs_source_name}.tar.gz
Source41: https://github.com/ondrejmular/pyagentx/archive/v%{pyagentx_version}/pyagentx-%{pyagentx_version}.tar.gz
Source44: https://github.com/konradhalas/dacite/archive/v%{dacite_version}/dacite-%{dacite_version}.tar.gz
Source100: https://github.com/idevat/pcs-web-ui/archive/%{ui_commit}/%{ui_src_name}.tar.gz
Source101: https://github.com/idevat/pcs-web-ui/releases/download/%{node_modules}/pcs-web-ui-node-modules-%{node_modules}.tar.xz

# Patch0: name.patch
Patch1:		CVE-2022-2735.patch
Patch2:		CVE-2022-1049.patch
# git for patches
BuildRequires:	git
#printf from coreutils is used in makefile
BuildRequires:	coreutils
# python for pcs
BuildRequires:	python3 >= 3.6
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pycurl
BuildRequires:	python3-tornado
# ruby and gems for pcsd
BuildRequires:	ruby >= 2.2.0
BuildRequires:	ruby-devel
BuildRequires:	rubygem-backports
BuildRequires:	rubygem-ethon
BuildRequires:	rubygem-ffi
BuildRequires:	rubygem-io-console
BuildRequires:	rubygem-json
BuildRequires:	rubygem-open4
BuildRequires:	rubygem-rack
BuildRequires:	rubygem-rack-protection
BuildRequires:	rubygem-rack-test
BuildRequires:	rubygem-sinatra
BuildRequires:	rubygem-tilt
%if %{with tests}
# ruby libraries for tests
BuildRequires:	rubygem-test-unit
%endif
# for touching patch files (sanitization function)
BuildRequires:	diffstat
# for post, preun and postun macros
BuildRequires:	systemd
# for tests
BuildRequires:	python3-lxml
BuildRequires:	python3-pyOpenSSL
# pcsd fonts and font management tools for creating symlinks to fonts
BuildRequires:	fontconfig
BuildRequires:	fonts-ttf-liberation
BuildRequires:	fonts-ttf-overpass

# for building web ui
BuildRequires:	npm

# python and libraries for pcs, setuptools for pcs entrypoint
Requires:	python3 >= 3.6
Requires:	python3-lxml
Requires:	python3-setuptools
Requires:	python3-clufter => 0.70.0
Requires:	python3-pycurl
Requires:	python3-tornado
# ruby and gems for pcsd
Requires:	ruby >= 2.2.0
Requires:	rubygem-backports
Requires:	rubygem-ethon
Requires:	rubygem-ffi
Requires:	rubygem-json
Requires:	rubygem-open4
Requires:	rubygem-rack
Requires:	rubygem-rack-protection
Requires:	rubygem-rack-test
Requires:	rubygem-sinatra
Requires:	rubygem-tilt
# ruby and gems for pcsd-ruby
Requires:	rubygem-daemons
Requires:	rubygem-eventmachine
Requires:	rubygem-thin
# for killall
Requires:	psmisc
# for working with certificates (validation etc.)
Requires:	openssl
Requires:	python3-pyOpenSSL
# cluster stack and related packages
Suggests:	pacemaker
Requires:	(corosync >= 2.99 if pacemaker)
# pcs enables corosync encryption by default so we require libknet1-plugins-all
Requires:	(libknet1-plugins-all if corosync)
Requires:	pacemaker-cli >= 2.0.0
# for post, preun and postun macros
Requires(post):	systemd
Requires(preun): systemd
Requires(postun): systemd
# pam is used for authentication inside daemon (python ctypes)
# more details: https://bugzilla.redhat.com/show_bug.cgi?id=1717113
Requires:	pam
# pcsd fonts
Requires:	fonts-ttf-liberation
Requires:	fonts-ttf-overpass

Provides:	bundled(dacite) = %{dacite_version}

%description
pcs is a corosync and pacemaker configuration tool.  It permits users to
easily view, modify and create pacemaker based clusters.

%files
%doc CHANGELOG.md
%doc README.md
%doc dacite_README.md
%license dacite_LICENSE
%license COPYING
%{python3_sitelib}/pcs
%{python3_sitelib}/pcs-%{version}-py3.*.egg-info
%{_sbindir}/pcs
%{_sbindir}/pcsd
%{pcs_libdir}/pcs/pcs_internal
%{pcs_libdir}/pcsd/*
%{pcs_libdir}/pcs/bundled/packages/dacite*
%{_unitdir}/pcsd.service
%{_unitdir}/pcsd-ruby.service
%{_datadir}/bash-completion/completions/pcs
%{_sharedstatedir}/pcsd
%{_sysconfdir}/pam.d/pcsd
%dir %{_var}/log/pcsd
%config(noreplace) %{_sysconfdir}/logrotate.d/pcsd
%config(noreplace) %{_sysconfdir}/sysconfig/pcsd
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/cfgsync_ctl
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/known-hosts
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/pcsd.cookiesecret
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/pcsd.crt
%ghost %config(noreplace) %attr(0600,root,root) %{_sharedstatedir}/pcsd/pcsd.key
%ghost %config(noreplace) %attr(0644,root,root) %{_sharedstatedir}/pcsd/pcs_settings.conf
%ghost %config(noreplace) %attr(0644,root,root) %{_sharedstatedir}/pcsd/pcs_users.conf
%{_mandir}/man8/pcs.*
%{_mandir}/man8/pcsd.*
%exclude %{pcs_libdir}/pcsd/*.debian
%exclude %{pcs_libdir}/pcsd/Gemfile
%exclude %{pcs_libdir}/pcsd/Gemfile.lock
%exclude %{pcs_libdir}/pcsd/Makefile
%exclude %{pcs_libdir}/pcsd/pcsd.conf
%exclude %{pcs_libdir}/pcsd/pcsd.service
%exclude %{pcs_libdir}/pcsd/pcsd-ruby.service
%exclude %{pcs_libdir}/pcsd/pcsd.8
%exclude %{pcs_libdir}/pcsd/public/js/dev/*
%exclude %{python3_sitelib}/pcs/bash_completion
%exclude %{python3_sitelib}/pcs/pcs.8
%exclude %{python3_sitelib}/pcs/pcs

%post
%systemd_post pcsd.service
%systemd_post pcsd-ruby.service

%preun
%systemd_preun pcsd.service
%systemd_preun pcsd-ruby.service

%postun
%systemd_postun_with_restart pcsd.service
%systemd_postun_with_restart pcsd-ruby.service

#----------------------------------------------------------------------------
# pcs-snmp package definition
%package -n %{pcs_snmp_pkg_name}
Summary:	Pacemaker cluster SNMP agent
Group:		System/Base
# tar for unpacking pyagetx source tar ball
BuildRequires:	tar

Requires:	pcs = %{version}-%{release}
Requires:	pacemaker
Requires:	net-snmp

Provides:	bundled(pyagentx) = %{pyagentx_version}

%description -n %{pcs_snmp_pkg_name}
SNMP agent that provides information about pacemaker cluster to the master agent (snmpd)

%files -n %{pcs_snmp_pkg_name}
%{pcs_libdir}/pcs/pcs_snmp_agent
%{pcs_libdir}/pcs/bundled/packages/pyagentx*
%{_unitdir}/pcs_snmp_agent.service
%{_datadir}/snmp/mibs/PCMK-PCS*-MIB.txt
%{_mandir}/man8/pcs_snmp_agent.*
%config(noreplace) %{_sysconfdir}/sysconfig/pcs_snmp_agent
%doc CHANGELOG.md
%doc pyagentx_CONTRIBUTORS.txt
%doc pyagentx_README.md
%license COPYING
%license pyagentx_LICENSE.txt

%post -n %{pcs_snmp_pkg_name}
%systemd_post pcs_snmp_agent.service

%preun -n %{pcs_snmp_pkg_name}
%systemd_preun pcs_snmp_agent.service

%postun -n %{pcs_snmp_pkg_name}
%systemd_postun_with_restart pcs_snmp_agent.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -S git -n %{pcs_source_name}

# -- following is inspired by python-simplejon.el5 --
# Update timestamps on the files touched by a patch, to avoid non-equal
# .pyc/.pyo files across the multilib peers within a build

update_times(){
  # update_times <reference_file> <file_to_touch> ...
  # set the access and modification times of each file_to_touch to the times
  # of reference_file

  # put all args to file_list
  file_list=("$@")
  # first argument is reference_file: so take it and remove from file_list
  reference_file=${file_list[0]}
  unset file_list[0]

  for fname in ${file_list[@]}; do
    touch -r $reference_file $fname
  done
}

update_times_patch(){
  # update_times_patch <patch_file_name>
  # set the access and modification times of each file in patch to the times
  # of patch_file_name

  patch_file_name=$1

  # diffstat
  # -l lists only the filenames. No histogram is generated.
  # -p override the logic that strips common pathnames,
  #    simulating the patch "-p" option. (Strip the smallest prefix containing
  #    num leading slashes from each file name found in the patch file)
  update_times ${patch_file_name} `diffstat -p1 -l ${patch_file_name}`
}

# update_times_patch %%{PATCH0}

# prepare dirs/files necessary for building web ui
# inside SOURCE100 is only directory %%{ui_src_name}
tar -xzf %{SOURCE100} -C %{pcsd_public_dir}
tar -xf %{SOURCE101} -C %{pcsd_public_dir}/%{ui_src_name}

# 3) dir for python bundles
mkdir -p %{bundled_src_dir}

# 4) sources for pyagentx
tar -xzf %{SOURCE41} -C %{bundled_src_dir}
mv %{bundled_src_dir}/pyagentx-%{pyagentx_version} %{bundled_src_dir}/pyagentx
update_times %{SOURCE41} `find %{bundled_src_dir}/pyagentx -follow`
cp %{bundled_src_dir}/pyagentx/LICENSE.txt pyagentx_LICENSE.txt
cp %{bundled_src_dir}/pyagentx/CONTRIBUTORS.txt pyagentx_CONTRIBUTORS.txt
cp %{bundled_src_dir}/pyagentx/README.md pyagentx_README.md

# 7) sources for python dacite
tar -xzf %{SOURCE44} -C %{bundled_src_dir}
mv %{bundled_src_dir}/dacite-%{dacite_version} %{bundled_src_dir}/dacite
cp %{bundled_src_dir}/dacite/LICENSE dacite_LICENSE
cp %{bundled_src_dir}/dacite/README.md dacite_README.md

%build
%define debug_package %{nil}

%install
# build web ui and put it to pcsd
make -C %{pcsd_public_dir}/%{ui_src_name} build
mv %{pcsd_public_dir}/%{ui_src_name}/build  pcsd/public/ui
rm -r %{pcsd_public_dir}/%{ui_src_name}

# main pcs install
%make_install \
  PREFIX=%{_prefix} \
  SYSTEMD_UNIT_DIR=%{_unitdir} \
  LIB_DIR=%{pcs_libdir} \
  PYTHON=%{__python3} \
  PYTHON_SITELIB=%{python3_sitelib} \
  BASH_COMPLETION_DIR=%{_datadir}/bash-completion/completions \
  BUNDLE_PYAGENTX_SRC_DIR=`readlink -f %{bundled_src_dir}/pyagentx` \
  BUNDLE_DACITE_SRC_DIR=`readlink -f %{bundled_src_dir}/dacite` \
  BUILD_GEMS=false \
  SYSTEMCTL_OVERRIDE=true \
  hdrdir="%{_includedir}" \
  rubyhdrdir="%{_includedir}" \
  includedir="%{_includedir}"

%if %{with tests}
%check
# In the building environment LC_CTYPE is set to C which causes tests to fail
# due to python prints a warning about it to stderr. The following environment
# variable disables the warning.
# On the live system either UTF8 locale is set or the warning is emmited
# which breaks pcs. That is the correct behavior since with wrong locales it
# would be probably broken anyway.
# The main concern here is to make the tests pass.
# See https://fedoraproject.org/wiki/Changes/python3_c.utf-8_locale for details.
export PYTHONCOERCECLOCALE=0

run_all_tests(){
  #run pcs tests

  # disabled tests:
  #
  BUNDLED_LIB_LOCATION=%{buildroot}%{pcs_libdir}/pcs/bundled/packages \
    %{__python3} pcs_test/suite.py --tier0 -v --vanilla --all-but \
    pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_get_not_locked \
    pcs_test.tier0.daemon.app.test_app_remote.SyncConfigMutualExclusive.test_post_not_locked \

  test_result_python=$?

  #run pcsd tests and remove them
  pcsd_dir=%{buildroot}%{pcs_libdir}/pcsd
  # GEM_HOME is not needed anymore since all required gems are in fedora
  ruby \
    -I${pcsd_dir} \
    -I${pcsd_dir}/test \
    ${pcsd_dir}/test/test_all_suite.rb
  test_result_ruby=$?

  if [ $test_result_python -ne 0 ]; then
    return $test_result_python
  fi
  return $test_result_ruby
}

remove_all_tests() {
  pcsd_dir=%{buildroot}%{pcs_libdir}/pcsd
  #remove pcsd tests, we do not distribute them in the rpm
  rm -r -v ${pcsd_dir}/test

  # remove javascript testing files
  rm -r -v ${pcsd_dir}/public/js/dev
}

run_all_tests
remove_all_tests

%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15178 |21mr|pcsc-lite-1.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	pcscspy_major 0
%define	libname %mklibname pcsclite %{major}
%define	libpcscspy %mklibname pcscspy %{pcscspy_major}
%define	devname %mklibname pcsclite -d

# XXX not rebuildable
%define _disable_rebuild_configure 1

Summary:	PC/SC Framework for Linux
Name:		pcsc-lite
Version:	1.9.5
Release:	1
License:	BSD-like and GPLv3+
Group:		System/Servers
Url:		https://pcsclite.apdu.fr
Source0:	https://pcsclite.apdu.fr/files/%{name}-%{version}.tar.bz2
BuildRequires:	flex
BuildRequires:	doxygen
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(polkit-agent-1)
Provides:	pcscd = %{EVRD}
Provides:	pcscd%{_isa} = %{EVRD}
#Requires:	ccid
Requires:	%{libname} = %{EVRD}
Recommends:	polkit

%description
The purpose of PC/SC Lite is to provide a Windows(R) SCard interface in a very
small form factor for communicating to smartcards and readers. It uses the
same winscard API as used under Windows(R).  This package includes the daemon,
a resource manager that coordinates communications with smart card readers and
smart cards that are connected to the system, as well as other command line
tools.

%files
%license COPYING
%doc AUTHORS ChangeLog
%dir %{_sysconfdir}/reader.conf.d/
%dir %{_libdir}/pcsc/
%dir %{_libdir}/pcsc/drivers/
%{_unitdir}/pcscd.service
%{_unitdir}/pcscd.socket
%{_presetdir}/86-pcsc-lite.preset
%{_sbindir}/pcscd
%{_datadir}/polkit-1/actions/*.policy
%{_mandir}/man5/reader.conf.5.*
%{_mandir}/man8/pcscd.8.*

%post
%systemd_post pcscd.socket pcscd.service

%preun
%systemd_preun pcscd.socket pcscd.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Muscle PCSC Framework for Linux libraries
Group:		System/Libraries
Provides:	libpcsclite%{major} = %{EVRD}

%description -n %{libname}
The purpose of PCSC Lite is to provide a Windows(R) SCard interface in a very
small form factor for communicating to smartcards and readers. PCSC Lite uses
the same winscard api as used under Windows(R).
This package contains the main PCSC Lite library. It was tested to work with
A.E.T. Europe B.V. SafeSign: it is supported by A.E.T. Europe B.V. when used
in combination with SafeSign.

%files -n %{libname}
%license COPYING
%doc AUTHORS ChangeLog
%{_libdir}/libpcsc*.so.%{major}*

#----------------------------------------------------------------------------

%package -n pcsc-spy
Summary:	Spy all the calls between the PC/SC client and the PC/SC library
Requires:	python3
Requires:	%{name} = %{EVRD}
Requires:	%{libpcscspy} = %{EVRD}

%description -n pcsc-spy
The purpose of pcsc-spy is to spy all the calls between the PC/SC client and
the PC/SC library.

%files -n pcsc-spy
%license COPYING
%doc AUTHORS ChangeLog
%{_bindir}/pcsc-spy
%{_mandir}/man1/pcsc-spy.1.*

#----------------------------------------------------------------------------

%package -n %{libpcscspy}
Summary:	PCSC Smart Card Library
Group:		System/Libraries

%description -n %{libpcscspy}
Supporting library for the PC/SC spy tool.

%files -n %{libpcscspy}
%license COPYING
%doc AUTHORS ChangeLog
%{_libdir}/libpcscspy.so.%{pcscspy_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Muscle PCSC Framework for Linux development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libpcscspy} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libpcsclite-devel = %{EVRD}

%description -n %{devname}
The purpose of PCSC Lite is to provide a Windows(R) SCard interface in a very
small form factor for communicating to smartcards and readers. PCSC Lite uses
the same winscard api as used under Windows(R).
The %{name}-devel package contains the header files and libraries needed
for compiling PCSC Lite programs. If you want to develop PCSC Lite-aware
programs, you'll need to install this package.

%files -n %{devname}
%license COPYING
%doc AUTHORS ChangeLog
%{_includedir}/PCSC/
%{_libdir}/*.so
%{_libdir}/pkgconfig/libpcsclite.pc

#----------------------------------------------------------------------------

%package doc
Summary:	PC/SC Lite developer documentation
Group:		Documentation
BuildArch:	noarch

%description doc
PC/SC Lite developer documentation.

%files doc
%license COPYING
%doc AUTHORS ChangeLog HELP NEWS README SECURITY
%doc doc/README*
%doc doc/example/pcsc_demo.c

#----------------------------------------------------------------------------


%prep
%autosetup -p1


%build
%serverbuild
#autoreconf -vfi
%configure \
	--disable-static \
	--enable-ipcdir=%{_rundir}/pcscd \
	--enable-polkit \
	--enable-libudev \
	--with-systemdsystemunitdir=%{_unitdir} \
	--enable-usbdropdir=%{_libdir}/pcsc/drivers

%make_build
%make -C doc
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" src/spy/pcsc-spy


%install
%make_install
%make_install -C doc

# Create empty directories
mkdir -p %{buildroot}%{_sysconfdir}/reader.conf.d
mkdir -p %{buildroot}%{_libdir}/pcsc/drivers

mkdir -p %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-pcsc-lite.preset << 'EOF'
enable pcscd.socket
EOF

# Remove not needed docs
rm -rf %{buildroot}%{_docdir}/pcsc-lite

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15179 |21mr|pcsc-tools-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PCSC tools useful for a PC/SC user
Name:		pcsc-tools
Version:	1.7.0
Release:	1
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://ludovic.rousseau.free.fr/softwares/pcsc-tools/
Source0:	https://pcsc-tools.apdu.fr/%{name}-%{version}.tar.bz2
Patch1:		pcsc-tools-1.5.4-desktop-category.patch
BuildRequires:	autoconf-archive
BuildRequires:	pkgconfig(libpcsclite)
Requires:	ccid

%description
This package contains some tools useful for a PC/SC user:
- pcsc_scan (Ludovic Rousseau <ludovic.rousseau@free.fr>)
    regularly scans every PC/SC reader connected to the host
    if a card is inserted or removed a "line" is printed
- ATR_analysis (Christophe Levantis and Ludovic Rousseau)
    Perl script used to parse the smart card ATR.
    This script is called (by default) by pcsc_scan
- smartcard_list.txt (Ludovic Rousseau)
    This list contains ATR of some cards. The list is used by
    ATR_analysis to find a card model corresponding to the ATR.
- scriptor (Lionel Victor <lionel.victor@unforgettable.com>)
    A Perl script to send commands to a smart card. You can use a file
    containing the commands or stdin.
- gscriptor (Lionel Victor <lionel.victor@unforgettable.com>)
    A Perl script to send commands to a smart card with GTK-based
    graphical interface.

%files -f %{name}.lang
%doc Changelog README
%{_bindir}/*
%{_mandir}/man1/pcsc_scan.1.*
%{_mandir}/man1/*.1p.*
%{_datadir}/applications/gscriptor.desktop
%dir %{_datadir}/pcsc
%{_datadir}/pcsc/smartcard_list.txt
%{_datadir}/pcsc/gscriptor.png

#----------------------------------------------------------------------------

%prep
%setup -q
%if %{mdvver} == 201900
%patch1 -p1
%endif

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15180 |21mr|pd-0.52.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rver	0.52-1
%define ver	%(echo %rver|tr '-' '.')

Summary:	Real-time patchable audio and multimedia processor
Name:		pd
Version:	%{ver}
Release:	1
License:	BSD
Group:		Sciences/Other
Url:			http://www.puredata.org
Source0:	http://msp.ucsd.edu/Software/pd-%{rver}.src.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	gettext
BuildRequires:	tcl >= 8.5
BuildRequires:	tk >= 8.5
BuildRequires:	portmidi-devel
BuildRequires:	tcl-devel >= 8.5
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(tk) >= 8.5
Requires:	tcl >= 8.5
Requires:	tk >= 8.5
# PD expects quite a few files from the docs to be present for various
# things to work, so there's really no point in separating them out
# - AdamW 2008/12
%rename	%{name}-doc

%description
Pd gives you a canvas for patching together modules that analyze, process,
and synthesize sounds, together with a rich palette of real-time control
and I/O possibilities.  Similar to Max (Cycling74) and JMAX (IRCAM).
A related software package named Gem extends Pd's capabilities to include
graphical rendering.

%files
%doc README.txt LICENSE.txt
%{_bindir}/pd*
%{_mandir}/man1/pd*
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Pure Data
Group:		Development/Other

%description devel
Development files for Pure Data.

%files devel
%{_includedir}/%{name}
%{_includedir}/m_pd.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{rver}

sed -i -e 's|doc/|share/%{name}/doc/|g' src/s_main.c


%build
./autogen.sh
export CPPFLAGS="%{optflags}"
%configure \
	--enable-jack \
	--enable-alsa \
	--enable-fftw \
	--enable-portaudio \
	--disable-portmidi

%make LDFLAGS="%{ldflags}"


%install
%make_install

# Fix absolute symlink
rm -f %{buildroot}%{_libdir}/%{name}/bin/pd
ln -s ../../../bin/pd %{buildroot}%{_libdir}/%{name}/bin/pd

# Fix perms
chmod +x %{buildroot}%{_libdir}/%{name}/tcl/pkg_mkIndex.tcl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15181 |21mr|pdfbox-2.0.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          pdfbox
Version:       2.0.24
Release:       1
Summary:       Apache PDFBox library for working with PDF documents
License:       ASL 2.0
URL:           http://pdfbox.apache.org/
Source0:       http://archive.apache.org/dist/pdfbox/%{version}/pdfbox-%{version}-src.zip

# Use system font instead of bundled font
Patch0:        pdfbox-use-system-liberation-font.patch
# Use system icc profiles
Patch1:        pdfbox-use-system-icc-profiles-openicc.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:1.2.17)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.bouncycastle:bcmail-jdk15on)
BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires:  mvn(org.mockito:mockito-core)

BuildRequires: fonts-ttf-dejavu
BuildRequires: fonts-ttf-google-noto-emoji
BuildRequires: fonts-ttf-liberation
BuildRequires: fontconfig
Requires:      fonts-ttf-liberation

# TODO: Require fonts-ttf-liberation >= 2 and don't ignore test failures

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Ant support was removed by upstream (Obsoletes added in F28)
Obsoletes:     %{name}-ant < %{version}-%{release}
# Jempbox subproject was removed by upstream (Obsoletes added in F28)
Obsoletes:     jempbox < %{version}-%{release}
# Examples package was dropped due to requiring too old lucene (Obsoletes added in F29)
Obsoletes:     %{name}-examples < %{version}-%{release}

%description
Apache PDFBox is an open source Java PDF library for working with PDF
documents. This project allows creation of new PDF documents, manipulation of
existing documents and the ability to extract content from documents. Apache
PDFBox also includes several command line utilities. Apache PDFBox is
published under the Apache License v2.0.

%package debugger
Summary:       Apache PDFBox Debugger

%description debugger
This package contains the PDF debugger for Apache PDFBox.

%package tools
Summary:       Apache PDFBox Tools

%description tools
This package contains command line tools for Apache PDFBox.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%package -n fontbox
Summary:        Apache FontBox

%description -n fontbox
FontBox is a Java library used to obtain low level information from font
files. FontBox is a subproject of Apache PDFBox.

%package parent
Summary:        Apache PDFBox Parent POM

%description parent
Apache PDFBox Parent POM.

%package reactor
Summary:        Apache PDFBox Reactor POM

%description reactor
Apache PDFBox Reactor POM.

%package -n preflight
Summary:        Apache Preflight

%description -n preflight
The Apache Preflight library is an open source Java tool that implements 
a parser compliant with the ISO-19005 (PDF/A) specification. Preflight is a 
subproject of Apache PDFBox.

%package -n xmpbox
Summary:        Apache XmpBox

%description -n xmpbox
The Apache XmpBox library is an open source Java tool that implements Adobe's
XMP(TM) specification.  It can be used to parse, validate and create xmp
contents.  It is mainly used by subproject preflight of Apache PDFBox. 
XmpBox is a subproject of Apache PDFBox.

%prep
%setup -q
find -name '*.class' -delete
find -name '*.jar' -delete
find -name 'sRGB.icc*' -print -delete
find -name '*.icm' -print -delete
find -name '*.ttf' -print -delete

%patch0 -p1 -b .font
%patch1 -b .openicc

# Don't build apps (it's just a bundle of everything)
%pom_disable_module preflight-app
%pom_disable_module debugger-app
%pom_disable_module app

# Don't build examples, they require ancient version of lucene
%pom_disable_module examples

# Disable plugins not needed for RPM builds
%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin -r :maven-deploy-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin

# Some test resources are not okay to distribute with the source, upstream
# downloads them at build time, but we can't, so we either remove or fix
# the affected tests
%pom_remove_plugin -r :download-maven-plugin
rm fontbox/src/test/java/org/apache/fontbox/cff/CFFParserTest.java \
   pdfbox/src/test/java/org/apache/pdfbox/pdfparser/TestPDFParser.java \
   pdfbox/src/test/resources/input/rendering/{FANTASTICCMYK.ai,HOTRODCMYK.ai} \
   preflight/src/test/java/org/apache/pdfbox/preflight/TestIsartorBavaria.java
ln -s %{_datadir}/fonts/liberation/LiberationSans-Regular.ttf pdfbox/src/test/resources/org/apache/pdfbox/ttf/LiberationSans-Regular.ttf
sed -i -e 's/\(testCIDFontType2VerticalSubset\)/ignore_\1/' pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/TestFontEmbedding.java
sed -i -e 's/\(testStructureTreeMerge\)/ignore_\1/'  pdfbox/src/test/java/org/apache/pdfbox/multipdf/PDFMergerUtilityTest.java
sed -i -e '/testPDFBOX4115/i\@org.junit.Ignore' pdfbox/src/test/java/org/apache/pdfbox/pdmodel/font/PDFontTest.java

# Remove unpackaged test deps and tests that rely on them
%pom_remove_dep -r com.github.jai-imageio:
%pom_remove_dep -r :jbig2-imageio
rm tools/src/test/java/org/apache/pdfbox/tools/imageio/TestImageIOUtils.java
%pom_remove_dep :diffutils pdfbox
rm pdfbox/src/test/java/org/apache/pdfbox/text/TestTextStripper.java
sed -i -e 's/TestTextStripper/BidiTest/' pdfbox/src/test/java/org/apache/pdfbox/text/BidiTest.java

# Remove tests that otherwise require net connectivity
rm pdfbox/src/test/java/org/apache/pdfbox/multipdf/MergeAcroFormsTest.java \
   pdfbox/src/test/java/org/apache/pdfbox/multipdf/MergeAnnotationsTest.java
sed -i -e '/\(OptionsAndNamesNotNumbers\|RadioButtonWithOptions\)/i\@org.junit.Ignore' \
  pdfbox/src/test/java/org/apache/pdfbox/pdmodel/interactive/form/PDButtonTest.java

# These test fail for unknown reasons
rm pdfbox/src/test/java/org/apache/pdfbox/pdmodel/graphics/image/CCITTFactoryTest.java

# install all libraries in _javadir
%mvn_file :%{name} %{name}
%mvn_file :%{name}-debugger %{name}-debugger
%mvn_file :%{name}-examples %{name}-examples
%mvn_file :%{name}-tools %{name}-tools
%mvn_file :preflight preflight
%mvn_file :xmpbox xmpbox
%mvn_file :fontbox fontbox

%build
# Integration tests all require internet access to download test resources, so skip
# Use compat version of lucene
# Ignore test failures on F28 and earlier due to liberation fonts being too old
%mvn_build -s -- -DskipITs -Dlucene.version=4 -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md RELEASE-NOTES.txt

%files debugger -f .mfiles-%{name}-debugger

%files tools -f .mfiles-%{name}-tools

%files -n fontbox -f .mfiles-fontbox
%doc fontbox/README.txt
%license LICENSE.txt NOTICE.txt

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt NOTICE.txt

%files reactor -f .mfiles-%{name}-reactor
%license LICENSE.txt NOTICE.txt

%files -n preflight -f .mfiles-preflight
%doc preflight/README.txt

%files -n xmpbox -f .mfiles-xmpbox
%doc xmpbox/README.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15182 |21mr|pdf-renderer-0.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define alternate_name PDFRenderer

Summary:        A 100% Java PDF renderer and viewer
Name:           pdf-renderer
Version:        0.9.1
Release:        4
License:        LGPLv2+
URL:            https://pdf-renderer.dev.java.net/
Group:          Development/Java
Source0:        https://java.net/projects/%{name}/downloads/download/%{alternate_name}-full-%{version}.zip
BuildRequires:  ant
BuildRequires:  ant-apache-regexp
BuildRequires:  java-devel >= 0:1.6.0
BuildRequires:  jpackage-utils
BuildRequires:  ghostscript-fonts
BuildRequires:  unzip
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Requires:       java
Requires:       jpackage-utils >= 1.5
Requires:       ghostscript-fonts
Provides:       %{alternate_name} == %{version}-%{release}

%description
The PDF Renderer is just what the name implies: an open source,
all Java library which renders PDF documents to the screen using 
Java2D. Typically this means drawing into a Swing panel, but it 
could also draw to other Graphics2D implementations. It could be 
used to draw on top of PDFs, share them over a network, convert 
PDFs to PNG images, or maybe even project PDFs into a 3D scene.

%package javadoc
Summary:        Javadoc for %{alternate_name}
Group:          Development/Java
Requires:       %{name} = %{version}-%{release}
Requires:       jpackage-utils

%description javadoc
API documentation for the %{alternate_name} package.

%prep
%setup -qc

# Remove preshipped binaries
find . -name "*.jar" -exec rm {} \;

# Fix encoding issues
find . -name "*.java" -exec native2ascii {} {} \;

# Remove preshipped fonts and ...
find . -name "*.pfb" -exec rm {} \;

# ... tell the program to use system-fonts instead.
# Script provided by Mamoru Tasaka:
# https://bugzilla.redhat.com/show_bug.cgi?id=466394#c4
# -------------------------------------------------------------
pushd src/com/sun/pdfview/font/res/
INPUT=BaseFonts.properties
OUTPUT=BaseFonts.properties.1
FONTDIR=%{_datadir}/fonts/default/Type1

rm -f $OUTPUT
cat $INPUT | while read line
 do
 newline=$line
 if echo $newline | grep -q 'file=.*pfb'
  then
  pfbname=$(echo $newline | sed -e 's|^.*file=||')
  newline=$(echo $newline | sed -e "s|file=|file=${FONTDIR}/|")
 elif echo $newline | grep -q 'length='
  then
  size=$(ls -al ${FONTDIR}/$pfbname | awk '{print $5}')
  newline=$(echo $newline | sed -e "s|length=.*|length=$size|")
 fi
 echo $newline >> $OUTPUT
done
mv -f $OUTPUT $INPUT
popd
# -------------------------------------------------------------

%build
%ant -Djavadoc.additionalparam="-Xdoclint:none"

%install
mkdir -p %{buildroot}%{_javadir}
install -m 644 dist/%{alternate_name}.jar \
      %{buildroot}%{_javadir}/%{name}.jar

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr dist/javadoc/* %{buildroot}%{_javadocdir}/%{name}

%files
%defattr(0644,root,root,0755)
%doc demos
%{_javadir}/%{name}.jar

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}

# -----------------------------------------------------------------------------

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15183 |21mr|pdksh-5.2.14-38
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A public domain clone of the Korn shell (ksh)
Name:		pdksh
Version:	5.2.14
Release:	38
License:	Public Domain and BSD-like and GPLv2+
Group:		Shells
Url:		http://www.cs.mun.ca/~michael/pdksh
Source0:	ftp://ftp.cs.mun.ca/pub/pdksh/%{name}-%{version}.tar.bz2
Patch0:		pdksh-5.2.14-manloc.patch
# debian patch
Patch1:		pdksh-5.2.14-debian.patch
Patch2:		pdksh-child_max.patch
Patch3:		pdksh-5.2.14-fix-str-fmt.patch
# for rpm5
Provides:	/usr/bin/ksh
Provides:	/bin/ksh
# TODO: maybe no sense in it?
Requires(post):	rpm-helper
Requires(postun):	rpm-helper

%description
The pdksh package contains PD-ksh, a clone of the Korn shell (ksh).
The ksh shell is a command interpreter intended for both interactive
and shell script use.  Ksh's command language is a superset of the
sh shell language.

Install the pdksh package if you want to use a version of the ksh
shell.

%files
%doc LEGAL README NOTES PROJECTS NEWS BUG-REPORTS
/bin/ksh
%{_bindir}/ksh
%{_bindir}/pdksh
%{_mandir}/*/*

%post
/usr/share/rpm-helper/add-shell %{name} $1 /bin/ksh

%postun
/usr/share/rpm-helper/del-shell %{name} $1 /bin/ksh

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .manloc
%patch1 -p1 -b .debian
%patch2 -p1 -b .jobs
%patch3 -p0 -b .str

%build
CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -DDEBIAN " %configure
# Disable linemarkers to avoid confusing the script generating this
%make siglist.out CPPFLAGS=-P
%make

%install
%makeinstall
# Move ksh to /bin and create a symlink in /usr/bin
mkdir -p %{buildroot}/bin
mv %{buildroot}%{_bindir}/ksh %{buildroot}/bin/ksh
ln -s /bin/ksh %{buildroot}%{_bindir}/ksh
# Create symlinks for pdksh
ln -s /bin/ksh %{buildroot}%{_bindir}/pdksh
ln -s ksh.1 %{buildroot}%{_mandir}/man1/pdksh.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15184 |21mr|pegdown-1.4.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          pegdown
Version:       1.4.2
Release:       15
Summary:       Java library for Markdown processing
License:       ASL 2.0
URL:           http://pegdown.org
Source0:       https://github.com/sirthias/pegdown/archive/%{version}.tar.gz
# Newer release use sbt builder
Source1:       http://repo1.maven.org/maven2/org/pegdown/pegdown/%{version}/pegdown-%{version}.pom
# Forwarded upstream: https://github.com/sirthias/pegdown/pull/130
Patch0:        %{name}-rhbz1096735.patch

BuildRequires: maven-local
BuildRequires: mvn(net.sf.jtidy:jtidy)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.parboiled:parboiled-java)
%if 0
# test deps
BuildRequires: mvn(org.specs2:specs2_2.9.3)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A pure-Java Markdown processor based on a parboiled PEG parser
supporting a number of extensions.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.class" -delete
find . -name "*.jar" -delete
%patch0 -p1

cp -p %{SOURCE1} pom.xml

%pom_xpath_inject "pom:project" "
<build>
  <plugins>

  </plugins>
</build>"

%pom_xpath_inject "pom:build" "
<resources>
  <resource>
    <directory>.</directory>
    <targetPath>\${project.build.outputDirectory}/META-INF</targetPath>
    <includes>
      <include>LICENSE</include>
      <include>NOTICE</include>
    </includes>
  </resource>
</resources>"

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin . "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <manifest>
      <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
      <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
    </manifest>
  </archive>
</configuration>"

%pom_add_plugin org.apache.felix:maven-bundle-plugin . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Built-By>\${user.name}</Built-By>
    <Bundle-SymbolicName>org.pegdown</Bundle-SymbolicName>
    <Bundle-Name>pegdown</Bundle-Name>
    <Bundle-Vendor>pegdown.org</Bundle-Vendor>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

rm -r src/test/scala/*
%pom_remove_dep org.specs2:specs2_2.9.3

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG README.markdown
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15185 |21mr|PEGTL-2.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package   %{nil}

Name:		PEGTL
Version:	2.8.3
Release:	1
Summary:	Parsing Expression Grammar Template Library
Group:		Development/Other
License:	MIT
URL:		https://github.com/taocpp/%{name}/
Source0:	https://github.com/taocpp/%{name}/archive/%{version}.tar.gz
Patch0: PEGTL-compiler-warning.patch

BuildRequires: /usr/bin/make

%description
The Parsing Expression Grammar Template Library (PEGTL) is a zero-dependency
C++11 header-only library for creating parsers according to a Parsing
Expression Grammar (PEG).

#---------------------------------------------------------------------------
%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Provides:	%{name}-static = %{EVRD}
Provides:	%{name} = %{EVRD}
Requires:	libstdc++-devel

%description devel
The %{name}-devel package contains C++ header files for developing
applications that use %{name}.

%files devel
%doc README.md doc/
%license LICENSE
%{_includedir}/tao/pegtl.hpp
%{_includedir}/tao/pegtl

#---------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{version}

%check
make

%install
install -d -m 0755 %{buildroot}%{_includedir}
pushd include/
cp -R tao/ %{buildroot}%{_includedir}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15186 |21mr|pentaho-libxml-1.1.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name libxml

Summary:	Namespace aware SAX-Parser utility library
Name:		pentaho-libxml
Version:	1.1.6
Release:	11
License:	LGPLv2+
Group:		System/Libraries 
Url:		http://reporting.pentaho.org/
Source0:	http://downloads.sourceforge.net/jfreereport/%{upstream_name}-%{version}.zip
Patch0:		pentaho-libxml-1.1.2-fix-build.patch
BuildArch:	noarch
BuildRequires:	ant
BuildRequires:	ant-contrib
BuildRequires:	java-devel >= 0:1.6.0
BuildRequires:	javapackages-tools
BuildRequires:	libbase
BuildRequires:	libloader
BuildRequires:	java-rpmbuild
Requires:	javapackages-filesystem
Requires:	libbase >= 1.1.2
Requires:	libloader >= 1.1.2

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Pentaho LibXML is a namespace aware SAX-Parser utility library. It eases the
pain of implementing non-trivial SAX input handlers.

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java	
Requires:	%{name} = %{version}-%{release}
Requires:	javapackages-filesystem

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
%patch0 -p0
find . -name "*.jar" -exec rm -f {} \;
mkdir -p lib
build-jar-repository -s -p lib commons-logging-api libbase libloader
cd lib
ln -s %{_javadir}/ant ant-contrib

%build
ant jar javadoc
for file in README.txt licence-LGPL.txt ChangeLog.txt; do
    tr -d '\r' < $file > $file.new
    mv $file.new $file
done

%install
mkdir -p %{buildroot}%{_javadir}
cp -p ./dist/%{upstream_name}-%{version}.jar %{buildroot}%{_javadir}
pushd %{buildroot}%{_javadir}
ln -s %{upstream_name}-%{version}.jar %{upstream_name}.jar
popd

mkdir -p %{buildroot}%{_javadocdir}/%{upstream_name}
cp -rp bin/javadoc/docs/api %{buildroot}%{_javadocdir}/%{upstream_name}

%files
%doc licence-LGPL.txt README.txt ChangeLog.txt
%{_javadir}/%{upstream_name}-%{version}.jar
%{_javadir}/%{upstream_name}.jar

%files javadoc
%{_javadocdir}/%{upstream_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15187 |21mr|pentaho-reporting-flow-engine-0.9.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pentaho Flow Reporting Engine
Name:		pentaho-reporting-flow-engine
Version:	0.9.4
Release:	11
License:	LGPLv2+
Group:		System/Libraries
Url:		http://reporting.pentaho.org/
Source0:	http://downloads.sourceforge.net/jfreereport/flow-engine-%{version}.zip
BuildRequires:	ant
BuildRequires:	flute
BuildRequires:	java-devel
BuildRequires:	javapackages-tools
BuildRequires:	libbase
BuildRequires:	libfonts
BuildRequires:	libformula
BuildRequires:	liblayout
BuildRequires:	libloader
BuildRequires:	librepository
BuildRequires:	libserializer
BuildRequires:	pentaho-libxml
BuildRequires:	sac
BuildRequires:	xml-commons >= 1.4.01
Requires:	javapackages-filesystem
Requires:	libbase >= 1.1.3
Requires:	libfonts >= 1.1.3
Requires:	pentaho-libxml
Requires:	libformula >= 1.1.3
Requires:	librepository >= 1.1.3
Requires:	sac
Requires:	flute
Requires:	liblayout >= 0.2.10
Requires:	libserializer
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Pentaho Reporting Flow Engine is a free Java report library, formerly
known as 'JFreeReport'

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java
Requires:	%{name} = %{version}-%{release}
Requires:	javapackages-filesystem

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -c
mkdir -p lib
find . -name "*.jar" -exec rm -f {} \;
build-jar-repository -s -p lib commons-logging-api libbase libloader \
    libfonts libxml jaxp libformula librepository sac flute liblayout \
    libserializer

%build
ant jar javadoc

%install
mkdir -p %{buildroot}%{_javadir}
cp -p build/lib/flow-engine.jar %{buildroot}%{_javadir}/flow-engine.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -rp build/api %{buildroot}%{_javadocdir}/%{name}

%files
%doc licence-LGPL.txt README.txt ChangeLog.txt
%{_javadir}/*.jar

%files javadoc
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15188 |21mr|pentaxpj-1.0.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Pentax PocketJet Printer Driver
Name:		pentaxpj
Version:	1.0.0
Release:	19
License:	GPLv2+
Group:		System/Printing
Url:		http://www.pragana.net/gdiprinters.html
Source0:	http://www.pragana.net/%{name}-%{version}.tar.gz
Patch0:		pentaxpj-glibc28_fix.diff
Patch1:		pentaxpj-1.0.0-LDFLAGS.diff

%description
Pentax PocketJet Printer Driver for the families:

 o PocketJet II
 o PocketJet 200.

%files
%doc README
%{_libdir}/pentaxpj
%config(noreplace) %{_sysconfdir}/pentaxpj.conf
%defattr(0755,root,root,0755)
%{_bindir}/pentaxpj
%{_sbindir}/pentaxsetup

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p0
%patch1 -p0

find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;

for i in `find . -type d -name CVS`  `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%build
%make CFLAGS="%{optflags} -DLONG_FORM_FEED" LDFLAGS="%{ldflags}"

%install
rm -rf %{buildroot}

install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}/pentaxpj
install -d %{buildroot}%{_sysconfdir}

cp -a BWidget-1.3.1 pentaxpj pentaxsetup pentax.xpm test-page.ps.gz %{buildroot}%{_libdir}/pentaxpj
ln -s %{_libdir}/pentaxpj/pentaxsetup %{buildroot}%{_sbindir}
ln -s %{_libdir}/pentaxpj/pentaxpj %{buildroot}%{_bindir}
cat > %{buildroot}%{_sysconfdir}/pentaxpj.conf <<EOF
#
set settings(driverpath) %{_libdir}/pentaxpj
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15189 |21mr|perl-5.30.3-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# ******************************************************************
# *** IMPORTANT: When upgrading to a newer, incompatible release ***
# *** (e.g. 5.26.x -> 5.27, not 5.26.1 -> 5.26.2), a number of   ***
# *** package builds will break due to the gprintify script in   ***
# *** spec-helper requiring some extra modules that can be       ***
# *** run by /usr/bin/perl.                                      ***
# *** Please make sure that after building the new perl package, ***
# *** you rebuild (in that order):                               ***
# *** perl-File-Slurp                                            ***
# *** perl-Test-Pod                                              ***
# *** perl-Devel-Symdump                                         ***
# *** perl-PathTools                                             ***
# *** perl-Pod-Coverage                                          ***
# *** perl-Test-Pod-Coverage                                     ***
# *** perl-Try-Tiny                                              ***
# *** perl-Test-Fatal                                            ***
# *** perl-Test-Nowarnings                                       ***
# *** perl-Test-Deep                                             ***
# *** perl-Test-Warnings                                         ***
# *** perl-Exporter-Tiny                                         ***
# *** perl-List-MoreUtils                                        ***
# *** perl-IPC-Run                                               ***
# ***                                                            ***
# *** gprintify is disabled for those packages; they will not    ***
# *** fail because of its dependencies.                          ***
# ***                                                            ***
# *** Due to other dependency issues in build roots, you will    ***
# *** also want to rebuild (in that order):                      ***
# *** perl-HTML-Tagset                                           ***
# *** perl-HTML-Parser                                           ***
# *** perl-Sub-Install                                           ***
# *** perl-Params-Util                                           ***
# *** perl-Data-OptList                                          ***
# *** perl-Test-Requires                                         ***
# *** perl-Spiffy                                                ***
# *** perl-Test-Base                                             ***
# *** perl-YAML                                                  ***
# *** perl-Module-Build                                          ***
# *** perl-DynaLoader-Functions                                  ***
# *** perl-Devel-CallChecker                                     ***
# *** perl-Params-Classify                                       ***
# *** perl-Module-Runtime                                        ***
# *** perl-Sub-Exporter                                          ***
# *** perl-Dist-CheckConflicts                                   ***
# *** perl-Module-Implementation                                 ***
# *** perl-Sub-Uplevel                                           ***
# *** perl-Test-Exception                                        ***
# *** perl-Test-Needs                                            ***
# *** perl-Capture-Tiny                                          ***
# *** perl-Test-Output                                           ***
# *** perl-Sub-Name                                              ***
# *** perl-Package-Stash-XS                                      ***
# *** perl-Package-Stash                                         ***
# *** perl-Package-DeprecationManager                            ***
# *** perl-Sub-Identify                                          ***
# *** perl-Scope-Guard                                           ***
# *** perl-Sub-Exporter-Progressive                              ***
# *** perl-B-Hooks-EndOfScope                                    ***
# *** perl-namespace-clean                                       ***
# *** perl-Class-Load                                            ***
# *** perl-Devel-GlobalDestruction                               ***
# *** perl-Devel-StackTrace                                      ***
# *** perl-Eval-Closure                                          ***
# *** perl-Class-C3-XS                                           ***
# *** perl-Algorithm-C3                                          ***
# *** perl-Class-C3                                              ***
# *** perl-File-Remove                                           ***
# *** perl-JSON                                                  ***
# *** perl-Module-ScanDeps                                       ***
# *** perl-Probe-Perl                                            ***
# *** perl-IPC-Run3                                              ***
# *** perl-Test-Script                                           ***
# *** perl-File-Which                                            ***
# *** perl-SUPER                                                 ***
# *** perl-Test-MockModule                                       ***
# *** perl-Archive-Zip                                           ***
# *** perl-PAR-Dist                                              ***
# *** perl-Module-Install                                        ***
# *** perl-MRO-Compat                                            ***
# *** perl-Task-Weaken                                           ***
# *** perl-Test-LongString                                       ***
# *** perl-Devel-OverloadInfo                                    ***
# *** perl-Moose                                                 ***
# *** perl-strictures                                            ***
# *** perl-Class-Method-Modifiers                                ***
# *** perl-Role-Tiny                                             ***
# *** perl-Sub-Quote                                             ***
# *** perl-Moo                                                   ***
# *** perl-PerlIO-utf8_strict                                    ***
# *** perl-IO-String                                             ***
# *** perl-Mixin-Linewise                                        ***
# *** perl-Config-INI                                            ***
# *** perl-Type-Tiny                                             ***
# *** perl-Array-Compare                                         ***
# *** perl-File-Slurp-Tiny                                       ***
# *** perl-Tree-DAG_Node                                         ***
# *** perl-Test-Warn                                             ***
# *** perl-Algorithm-Diff                                        ***
# *** perl-Text-Diff                                             ***
# *** perl-Test-Differences                                      ***
# *** perl-File-Slurper                                          ***
# *** perl-Pod-POM                                               ***
# *** perl-File-HomeDir                                          ***
# *** perl-AppConfig                                             ***
# *** perl-Text-Reform                                           ***
# *** perl-Text-Autoformat                                       ***
# *** perl-Template-Toolkit (force installation -- circular dep) ***
# *** perl-CGI                                                   ***
# *** perl-SGMLSpm                                               ***
# *** git                                                        ***
# *** perl-YAML-Tiny                                             ***
# ******************************************************************

%global perl_version    5.30.3
%global perl_epoch      4
%global perl_arch_stem -thread-multi
%global perl_archname %{_arch}-%{_os}%{perl_arch_stem}

# Avoid nasty circular dependency loop -- gprintify uses perl
# and various perl-modules not in the perl core distro
%define dont_gprintify 1

# (tpg) without this other perl modules fails to build
# do NOT remove it unless you want to fix all the perl crazy world
%define _disable_ld_no_undefined 1

# And don't run perl_cleaner -- we want to own some directories even
# if they're empty.
%define dont_cleanup_perl 1

%global multilib_64_archs aarch64 %{power64} s390x sparc64 %{x86_64} riscv64
%global parallel_tests 0
%global tapsetdir   %{_datadir}/systemtap/tapset

%define perl_bootstrap 0

%global dual_life 1
%global rebuild_from_scratch %{defined perl_bootstrap}

# This is to emulate the perl_archlib macro but of the newly installed perl
# which may be different
%define this_perl_archlib %{_prefix}/lib/perl5/%{version}/%{perl_archname}

# This overrides filters from build root (/usr/lib/rpm/macros.d/macros.perl)
# intentionally (unversioned perl(DB) is removed and versioned one is kept).
# Filter provides from *.pl files, bug #924938
%global __provides_exclude_from .*%{_docdir}|.*%{this_perl_archlib}/.*\\.pl$|.*%{perl_privlib}/.*\\.pl$
%global __requires_exclude_from %{_docdir}
%global __provides_exclude perl\\((VMS|Win32|BSD::|DB\\)$)
%global __requires_exclude perl\\((VMS|BSD::|Win32|Tk|Mac::|Your::Module::Here|unicore::Name|FCGI|Locale::Codes::.*(Code|Retired))

# Filter dependencies on private modules. Generator:
# for F in $(find lib -type f); do perl -e '$/ = undef; $_ = <>; if (/^package #\R([\w:]*);/m) { print qq{|^perl\\\\($1\\\\)} }' "$F"; done
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^perl\\(Locale::Codes::Country_Retired\\)|^perl\\(Locale::Codes::LangFam_Retired\\)|^perl\\(Locale::Codes::Script_Retired\\)|^perl\\(Locale::Codes::LangExt_Codes\\)|^perl\\(Locale::Codes::LangFam_Codes\\)|^perl\\(Locale::Codes::Script_Codes\\)|^perl\\(Locale::Codes::Language_Codes\\)|^perl\\(Locale::Codes::LangExt_Retired\\)|^perl\\(Locale::Codes::Currency_Codes\\)|^perl\\(Locale::Codes::LangVar_Retired\\)|^perl\\(Locale::Codes::Language_Retired\\)|^perl\\(Locale::Codes::Country_Codes\\)|^perl\\(Locale::Codes::LangVar_Codes\\)|^perl\\(Locale::Codes::Currency_Retired\\)

# same as we provide in /usr/lib/rpm/macros.d/macros.perl
%global perl5_testdir   %{_libexecdir}/perl5-tests

# Optional features
# We can bootstrap without gdbm
%bcond_without gdbm
# Support for groff, bug #135101
%bcond_without perl_enables_groff
# Run syslog tests
%bcond_with perl_enables_syslog_test
# SystemTap support
%bcond_without perl_enables_systemtap
# <> operator uses File::Glob nowadays. CSH is not needed.
%bcond_with perl_enables_tcsh
# We can skip %%check phase
# (tpg) 2018-09-10 only two tests fails
#   op/sprintf2.t --> https://rt.perl.org/Public/Bug/Display.html?id=131388
#   run/dtrace.t --> ??
%bcond_with test

Name:           perl
# These are all found licenses. They are distributed among various
# subpackages.
# dist/Tie-File/lib/Tie/File.pm:        GPLv2+ or Artistic
# cpan/Getopt-Long/lib/Getopt/Long.pm:  GPLv2+ or Artistic
# cpan/Compress-Raw-Zlib/Zlib.xs:       (GPL+ or Artistic) and zlib
# cpan/Digest-MD5/MD5.xs:               (GPL+ or Artistic) and BSD
# cpan/Time-Piece/Piece.xs:             (GPL+ or Artistic) and BSD
# dist/PathTools/Cwd.xs:                (GPL+ or Artistic) and BSD
# util.c:                               (GPL+ or Artistic) and BSD
# cpan/perlfaq/lib/perlfaq4.pod:        (GPL+ or Artistic) and Public Domain
# cpan/Test-Simple/lib/Test/Tutorial.pod:   (GPL+ or Artistic) and
#                                           Public Domain
# cpan/MIME-Base64/Base64.xs:           (GPL+ or Artistic) and MIT
# cpan/Test-Simple/lib/ok.pm:           CC0
# cpan/Text-Tabs/lib/Text/Wrap.pm:      TTWL
# cpan/Encode/bin/encguess:             Artistic 2.0
# cpan/libnet/lib/Net/libnetFAQ.pod:    Artistic    (CPAN RT#117888)
# cpan/Unicode-Collate/Collate/allkeys.txt:     Unicode
# lib/unicore:                          UCD
# ext/SDBM_File/sdbm.{c,h}:             Public domain
# regexec.c, regcomp.c:                 HSLR
# cpan/Locale-Maketext-Simple/lib/Locale/Maketext/Simple.pm:    MIT (with
#                                       exception for Perl)
# time64.c:                             MIT
# pod/perlpodstyle.pod:                 MIT
# pod/perlunicook.pod:                  (GPL+ or Artistic) and Public Domain
# pod/perlgpl.pod:                      GPL text
# pod/perlartistic.pod:                 Artistic text
# ext/File-Glob/bsd_glob.{c,h}:         BSD
# Other files:                          GPL+ or Artistic
## Not is a binary package
# cpan/podlators/t/style/minimum-version.t          MIT
# cpan/Term-ANSIColor/t/lib/Test/RRA/Config.pm:     MIT
## Unbundled
# cpan/Compress-Raw-Bzip2/bzip2-src:    BSD
# cpan/Compress-Raw-Zlib/zlib-src:      zlib
## perl sub-package notice
# perluniprops.pod is generated from lib/unicore sources:   UCD
#
# This sub-subpackage doesn't contain any copyrightable material.
# Nevertheless, it needs a License tag, so we'll use the generic
# "perl" license.
License:        GPL+ or Artistic
Epoch:          %{perl_epoch}
Version:        %{perl_version}
# release number must be even higher, because dual-lived modules will be broken otherwise
# (tpg) for now keep at least 13 - 2019-11-11
Release:        23
Group:          Development/Perl
Summary:        Practical Extraction and Report Language
Url:            http://www.perl.org/
Source0:        http://www.cpan.org/src/5.0/perl-%{perl_version}.tar.xz
Source3:        macros.perl
#Systemtap tapset and example that make use of systemtap-sdt-devel
# build requirement. Written by lberk; Not yet upstream.
Source4:        perl.stp
Source5:        perl-example.stp
# Tom Christiansen confirms Pod::Html uses the same license as perl
Source6:        Pod-Html-license-clarification
# Pregenerated dependencies for bootstrap.
# If your RPM tool fails on including the source file, then you forgot to
# define _sourcedir macro to point to the directory with the sources.
Source7:        gendep.macros
%if %{defined perl_bootstrap}
%include %{SOURCE7}
%endif
Source100:	perl.rpmlintrc

# Removes date check, Fedora/RHEL specific
Patch1:         perl-perlbug-tag.patch

# Fedora/RHEL only (64bit only)
Patch3:         perl-5.8.0-libdir64.patch

# Fedora/RHEL specific (use libresolv instead of libbind), bug #151127
Patch4:         perl-5.10.0-libresolv.patch

# FIXME: May need the "Fedora" references removed before upstreaming
# patches ExtUtils-MakeMaker
Patch5:         perl-USE_MM_LD_RUN_PATH.patch

# Provide maybe_command independently, bug #1129443
Patch6:         perl-5.22.1-Provide-ExtUtils-MM-methods-as-standalone-ExtUtils-M.patch

# The Fedora builders started randomly failing this futime test
# only on x86_64, so we just don't run it. Works fine on normal
# systems.
Patch7:         perl-5.10.0-x86_64-io-test-failure.patch

# switch off test, which is failing only on koji (fork)
Patch8:         perl-5.14.1-offtest.patch

# Define SONAME for libperl.so
Patch15:        perl-5.16.3-create_libperl_soname.patch

# Install libperl.so to -Dshrpdir value
Patch16:        perl-5.22.0-Install-libperl.so-to-shrpdir-on-Linux.patch

# Make *DBM_File desctructors thread-safe, bug #1107543, RT#61912
Patch26:        https://src.fedoraproject.org/rpms/perl/raw/master/f/perl-5.18.2-Destroy-GDBM-NDBM-ODBM-SDBM-_File-objects-only-from-.patch

# Replace ExtUtils::MakeMaker dependency with ExtUtils::MM::Utils.
# This allows not to require perl-devel. Bug #1129443
Patch30:        perl-5.22.1-Replace-EU-MM-dependnecy-with-EU-MM-Utils-in-IPC-Cmd.patch

# Link XS modules to pthread library to fix linking with -z defs,
# <https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/message/3RHZEHLRUHJFF2XGHI5RB6YPDNLDR4HG/>
Patch79:        perl-5.27.8-hints-linux-Add-lphtread-to-lddlflags.patch

# Link XS modules to libperl.so with EU::CBuilder on Linux, bug #960048
Patch200:       perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-CBuilder-on-Li.patch

# Link XS modules to libperl.so with EU::MM on Linux, bug #960048
Patch201:       perl-5.16.3-Link-XS-modules-to-libperl.so-with-EU-MM-on-Linux.patch

# https://rt.perl.org/Public/Bug/Display.html?id=131388
Patch205:       0001-toke.c-Cast-I32-to-NV-in-Perl_pow-call.patch

Patch206:       CVE-2023-31484.patch
Patch207:       CVE-2023-31486.patch
Patch208:       CVE-2021-36770.patch
# CVE-2023-47100 is a duplicate of CVE-2023-47038
Patch209:       CVE-2023-47038.patch

BuildRequires:  bash
BuildRequires:  pkgconfig(bzip2)
BuildRequires:  coreutils
BuildRequires:  findutils
BuildRequires:  bison
BuildRequires:  byacc
BuildRequires:  less
BuildRequires:  zip
BuildRequires:  gcc
BuildRequires:  binutils-devel
%if %{with gdbm}
BuildRequires:  gdbm-devel
%endif
# for iconv
BuildRequires:  glibc
%if %{with perl_enables_groff}
# Build-require groff tools for populating %%Config correctly, bug #135101
BuildRequires:  groff-base
%endif
BuildRequires:  db-devel
BuildRequires:  make
%if !%{defined perl_bootstrap}
BuildRequires:  perl
%endif
BuildRequires:  sed
%if %{with perl_enables_systemtap}
BuildRequires:  systemtap-devel
%endif
BuildRequires:  tar
%if %{with perl_enables_tcsh}
BuildRequires:  tcsh
%endif
BuildRequires:  pkgconfig(zlib)

# For tests
%if %{with test}
BuildRequires:  procps
%if %{with perl_enables_syslog_test}
BuildRequires:  rsyslog
%endif
%endif

# compat macro needed for rebuild
%global perl_compat perl(:MODULE_COMPAT_5.28.0)

Requires:       %perl_compat
Requires:       perl-base%{?_isa} = %{perl_epoch}:%{perl_version}-%{release}
Requires:       perl-libs%{?_isa} = %{perl_epoch}:%{perl_version}-%{release}
### FIXME enable once macros.perl is removed from rpm-openmandriva-macros
#Requires:       perl-macros
Requires:       perl-utils
%if %{defined perl_bootstrap}
%gendep_perl
%endif

Requires:       perl-File-Fetch
Requires:       perl-File-Path
Requires:       perl-File-Temp
Requires:       perl-Getopt-Long
Requires:       perl-Encode
Requires:       perl-IO-Compress
Requires:       perl-IO-Zlib
Requires:       perl-Compress-Raw-Zlib
Requires:       perl-Compress-Raw-Bzip2
Requires:       perl-Carp
Requires:       perl-Exporter
Requires:       perl-IPC-Cmd
Requires:       perl-Data-Dumper
Requires:       perl-Digest
Requires:       perl-Digest-MD5
Requires:       perl-Digest-SHA
Requires:       perl-MIME-Base64
Requires:       perl-Module-CoreList
Requires:       perl-Thread-Queue
Requires:       perl-version
Requires:       perl-threads
Requires:       perl-threads-shared
Requires:       perl-parent
Requires:       perl-autodie
Requires:       perl-constant
Requires:       perl-encoding

# For compatibility with Fedora packages
Provides:       perl-core = %{perl_version}-%{release}
Provides:       perl-core%{?_isa} = %{perl_version}-%{release}

Provides:       perl(version) = %{EVRD}

%description
Perl is a high-level programming language with roots in C, sed, awk and shell
scripting. Perl is good at handling processes and files, and is especially
good at handling text. Perl's hallmarks are practicality and efficiency.
While it is used to do a lot of different things, Perl's most common
applications are system administration utilities and web programming.

This is a metapackage with all the Perl bits and core modules that can be
found in the upstream tarball from perl.org.

If you need only a specific feature, you can install a specific package
instead. E.g. to handle Perl scripts with %{_bindir}/perl interpreter,
install perl-base package. See perl-base description for more
details on the Perl decomposition into packages.


%package base
Summary:        Standalone executable Perl interpreter
License:        (GPL+ or Artistic) and (GPLv2+ or Artistic) and BSD and Public Domain and UCD
# perl-base denotes a package with the perl executable.
# Full EVR is for compatibility with systems that swapped perl and perl-core
# <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules>,
# bug #1464903.
Version:        %{perl_version}
Epoch:          %{perl_epoch}

# For compatibility with Fedora packages
Provides: perl-interpreter = %{perl_epoch}:%{perl_version}-%{release}

Requires:       perl-libs%{?_isa} = %{perl_epoch}:%{perl_version}-%{release}
# Require this till perl-interpreter sub-package provides any modules
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_interpreter
%endif

# We need this to break the dependency loop, and ensure that perl-libs 
# gets installed before perl-interpreter.
Requires(post): perl-libs
# Same as perl-libs. We need macros in basic buildroot, where Perl is only
# because of git.
### FIXME enable once macros.perl is removed from rpm-openmandriva-macros
#Requires(post): perl-macros

# File provides
Provides:       perl(bytes_heavy.pl)
Provides:       perl(dumpvar.pl)
Provides:       perl(perl5db.pl)

# suidperl isn't created by upstream since 5.12.0
Obsoletes:      perl-suidperl <= 4:5.12.2
# perl was renamed to perl-interpreter and perl-core renamed to perl
# <https://fedoraproject.org/wiki/Changes/perl_Package_to_Install_Core_Modules>,
# bug #1464903.
Obsoletes:      perl < 4:5.26.0-395
%rename perl-base

%description base
This is a Perl interpreter as a standalone executable %{_bindir}/perl
required for handling Perl scripts. It does not provide all the other Perl
modules or tools.

Install this package if you want to program in Perl or enable your system to
handle Perl scripts with %{_bindir}/perl interpreter.

If your script requires some Perl modules, you can install them with
"perl(MODULE)" where "MODULE" is a name of required module. E.g. install
"perl(Test::More)" to make Test::More Perl module available.

If you need all the Perl modules that come with upstream Perl sources, so
called core modules, install perl package.

If you only need perl run-time as a shared library, i.e. Perl interpreter
embedded into another application, the only essential package is perl-libs.

Perl header files can be found in perl-devel package.

Perl utils like "splain" or "perlbug" can be found in perl-utils package.


%package libs
Summary:        The libraries for the perl run-time
License:        (GPL+ or Artistic) and HSLR and MIT and UCD
# Compat provides
Provides:       %perl_compat
Provides:       perl(:MODULE_COMPAT_5.26.1)
Provides:       perl(:MODULE_COMPAT_5.26.0)
Provides:       perl(:MODULE_COMPAT_5.28.0)
Provides:       perl(:MODULE_COMPAT_%{version})
# Interpreter version to fulfil required genersted from "require 5.006;"
Provides:       perl(:VERSION) = %{perl_version}
# Integeres are 64-bit on all platforms
Provides:       perl(:WITH_64BIT)
# Threading provides
Provides:       perl(:WITH_ITHREADS)
Provides:       perl(:WITH_THREADS)
# Largefile provides
Provides:       perl(:WITH_LARGEFILES)
# PerlIO provides
Provides:       perl(:WITH_PERLIO)
# Loaded by charnames, unicore/Name.pm does not declare unicore::Name module
Provides:       perl(unicore::Name)
# Keep utf8 modules in perl-libs because a sole regular expression like /\pN/
# causes loading utf8 and unicore/Heave.pl and unicore/lib files.
Provides:       perl(utf8_heavy.pl)
# utf8 and utf8_heavy.pl require Carp, re, strict, warnings, XSLoader
Requires:       perl(Carp)
Requires:       perl(Exporter)
# Term::Cap is optional
Requires:       perl(XSLoader)
Requires:	%{_lib}perl5 = %{perl_epoch}:%{perl_version}-%{release}
%if %{defined perl_bootstrap}
%gendep_perl_libs
%endif

# Remove private redefinitions
# XSLoader redefines DynaLoader name space for compatibility, but does not
# load the DynaLoader.pm (though the DynaLoader.xs is compiled into libperl).
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\((charnames|DynaLoader)\\)$

%description libs
The is a perl run-time (interpreter as a shared library and include
directories).


%package devel
Summary:        Header #files for use in perl development
# l1_char_class_tab.h is generated from lib/unicore sources:    UCD
License:        (GPL+ or Artistic) and UCD
%if %{with perl_enables_systemtap}
Requires:       systemtap-devel
%endif
Requires:       perl(ExtUtils::ParseXS)
# needed for check section
%if %{dual_life} || %{rebuild_from_scratch}
Requires:	perl(Test::More)
Requires:	perl(ExtUtils::Manifest)
%endif
Requires:	perl-srpm-macros
Requires:       %perl_compat
# Match library and header files when downgrading releases
Requires:       perl-libs%{?_isa} = %{perl_epoch}:%{perl_version}-%{release}
%if %{defined perl_bootstrap}
%gendep_perl_devel
%endif

%description devel
This package contains header files and development modules.
Most perl packages will need to install perl-devel to build.


%package macros
Summary:        Macros for rpmbuild
License:        GPL+ or Artistic
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_macros
%endif

%description macros
Macros for rpmbuild are needed during build of srpm in koji. This
sub-package must be installed into buildroot, so it will be needed
by perl. Perl is needed because of git.


%package tests
Summary:        The Perl test suite
License:        GPL+ or Artistic
# right?
AutoReqProv:    0
Requires:       %perl_compat
# FIXME - note this will need to change when doing the core/minimal swizzle
Requires:       perl
%if %{defined perl_bootstrap}
%gendep_perl_tests
%endif

%description tests
This package contains the test suite included with Perl %{perl_version}.

Install this if you want to test your Perl installation (binary and core
modules).


%package utils
Summary:        Utilities packaged with the Perl distribution
License:        GPL+ or Artistic
Epoch:          0
Version:        %{perl_version}
BuildArch:      noarch
# Match library exactly for splain messages
Requires:       perl-libs = %{perl_epoch}:%{perl_version}-%{release}
# Keep /usr/sbin/sendmail and Module::CoreList optional for the perlbug tool
%if %{defined perl_bootstrap}
%gendep_perl_utils
%endif
Conflicts:      perl < 4:5.22.0-351

%description utils
Several utilities which come with Perl distribution like h2ph, perlbug,
perlthanks, pl2pm, and splain. Some utilities are provided by more specific
packages like perldoc by perl-Pod-Perldoc.


%if %{dual_life} || %{rebuild_from_scratch}
%package Archive-Tar
Summary:        A module for Perl manipulation of .tar files
License:        GPL+ or Artistic
Epoch:          0
Version:        2.32
BuildArch:      noarch
Requires:       %perl_compat
Requires:       perl(IO::Zlib) >= 1.01
# Optional run-time:
Requires:       perl(IO::Compress::Bzip2) >= 2.015
# IO::String not used if perl supports useperlio which is true
# Use Compress::Zlib's version for IO::Uncompress::Bunzip2
Requires:       perl(IO::Uncompress::Bunzip2) >= 2.015
%if !%{defined perl_bootstrap}
Requires:       perl(Text::Diff)
%endif
%if %{defined perl_bootstrap}
%gendep_perl_Archive_Tar
%endif

%description Archive-Tar
Archive::Tar provides an object oriented mechanism for handling tar files.  It
provides class methods for quick and easy files handling while also allowing
for the creation of tar file objects for custom manipulation.  If you have the
IO::Zlib module installed, Archive::Tar will also support compressed or
gzipped tar files.
%endif

%package Attribute-Handlers
Summary:        Simpler definition of attribute handlers
License:        GPL+ or Artistic
Epoch:          0
Version:        1.01
BuildArch:      noarch
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Attribute_Handlers
%endif
Conflicts:      perl < 4:5.22.0-351

%description Attribute-Handlers
This Perl module, when inherited by a package, allows that package's class to
define attribute handler subroutines for specific attributes. Variables and
subroutines subsequently defined in that package, or in packages derived from
that package may be given attributes with the same names as the attribute
handler subroutines, which will then be called in one of the compilation
phases (i.e. in a "BEGIN", "CHECK", "INIT", or "END" block).

%if %{dual_life} || %{rebuild_from_scratch}
%package autodie
Summary:        Replace functions with ones that succeed or die
License:        GPL+ or Artistic
Epoch:          0
Version:        2.29
Requires:       %perl_compat
BuildArch:      noarch
Requires:       perl(B)
Requires:       perl(Fcntl)
Requires:       perl(overload)
Requires:       perl(POSIX)
%if %{defined perl_bootstrap}
%gendep_perl_autodie
%endif
Conflicts:      perl < 4:5.16.2-259

%description autodie
The "autodie" and "Fatal" pragma provides a convenient way to replace
functions that normally return false on failure with equivalents that throw an
exception on failure.

However "Fatal" has been obsoleted by the new autodie pragma. Please use
autodie in preference to "Fatal".
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package bignum
Summary:        Transparent big number support for Perl
License:        GPL+ or Artistic
Epoch:          0
Version:        0.51
Requires:       %perl_compat
Requires:       perl(Carp)
# Math::BigInt::Lite is optional
Requires:       perl(Math::BigRat)
Requires:       perl(warnings)
BuildArch:      noarch
%if %{defined perl_bootstrap}
%gendep_perl_bignum
%endif

%description bignum
This package attempts to make it easier to write scripts that use BigInts and
BigFloats in a transparent way.

%package Carp
Summary:        Alternative warn and die for modules
Epoch:          0
# Real version 1.50
Version:        1.50
License:        GPL+ or Artistic
Requires:       %perl_compat
Provides:       perl(Carp::Heavy) = %{version}
%if %{defined perl_bootstrap}
%gendep_perl_Carp
%endif
BuildArch:      noarch

# Do not export unversioned module
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Carp\\)\\s*$

%description Carp
The Carp routines are useful in your own modules because they act like
die() or warn(), but with a message which is more likely to be useful to a
user of your module. In the case of cluck, confess, and longmess that
context is a summary of every call in the call-stack. For a shorter message
you can use carp or croak which report the error as being from where your
module was called. There is no guarantee that that is where the error was,
but it is a good educated guess.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Compress-Raw-Bzip2
Summary:        Low-Level Interface to bzip2 compression library
License:        GPL+ or Artistic
Epoch:          0
Version:        2.084
Requires:       perl(Exporter), perl(File::Temp)
%if %{defined perl_bootstrap}
%gendep_perl_Compress_Raw_Bzip2
%endif

%description Compress-Raw-Bzip2
This module provides a Perl interface to the bzip2 compression library.
It is used by IO::Compress::Bzip2.

%package Compress-Raw-Zlib
Summary:        Low-Level Interface to the zlib compression library
License:        (GPL+ or Artistic) and zlib
Epoch:          0
Version:        2.084
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Compress_Raw_Zlib
%endif

%description Compress-Raw-Zlib
This module provides a Perl interface to the zlib compression library.
It is used by IO::Compress::Zlib.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Config-Perl-V
Summary:        Structured data retrieval of perl -V output
License:        GPL+ or Artistic
Epoch:          0
Version:        0.32
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Config_Perl_V
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-347

%description Config-Perl-V
The command "perl -V" will return you an excerpt from the %%Config::Config
hash combined with the output of "perl -V" that is not stored inside the hash,
but only available to the perl binary itself. This package provides Perl
module that will return you the output of "perl -V" in a structure.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package constant
Summary:        Perl pragma to declare constants
License:        GPL+ or Artistic
Epoch:          0
Version:        1.33
Requires:       %perl_compat
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_constant
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.3-264

%description constant
This pragma allows you to declare constants at compile-time:

use constant PI => 4 * atan2(1, 1);

When you declare a constant such as "PI" using the method shown above,
each machine your script runs upon can have as many digits of accuracy
as it can use. Also, your program will be easier to read, more likely
to be maintained (and maintained correctly), and far less likely to
send a space probe to the wrong planet because nobody noticed the one
equation in which you wrote 3.14195.

When a constant is used in an expression, Perl replaces it with its
value at compile time, and may then optimize the expression further.
In particular, any code in an "if (CONSTANT)" block will be optimized
away if the constant is false.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package CPAN
Summary:        Query, download and build perl modules from CPAN sites
License:        GPL+ or Artistic
Epoch:          0
Version:        2.22
Requires:       make
# Prefer Archive::Tar and Compress::Zlib over tar and gzip
Requires:       perl(Archive::Tar) >= 1.50
Requires:       perl(base)
Requires:       perl(Data::Dumper)
%if !%{defined perl_bootstrap}
Requires:       perl(Devel::Size)
%endif
Requires:       perl(ExtUtils::Manifest)
%if !%{defined perl_bootstrap}
Requires:       perl(File::HomeDir) >= 0.65
%endif
Requires:       perl(File::Temp) >= 0.16
Requires:       perl(lib)
Requires:       perl(Net::Config)
Requires:       perl(Net::FTP)
Requires:       perl(POSIX)
Requires:       perl(Term::ReadLine)
%if !%{defined perl_bootstrap}
Requires:       perl(URI)
Requires:       perl(URI::Escape)
%endif
Requires:       perl(User::pwent)
# Optional but higly recommended:
%if !%{defined perl_bootstrap}
Requires:       perl(Archive::Zip)
Requires:       perl(Compress::Bzip2)
Requires:       perl(CPAN::Meta) >= 2.110350
%endif
Requires:       perl(Compress::Zlib)
Requires:       perl(Digest::MD5)
# CPAN encourages Digest::SHA strongly because of integrity checks
Requires:       perl(Digest::SHA)
Requires:       perl(Dumpvalue)
Requires:       perl(ExtUtils::CBuilder)
%if ! %{defined perl_bootstrap}
# Avoid circular deps local::lib -> Module::Install -> CPAN when bootstraping
# local::lib recommended by CPAN::FirstTime default choice, bug #1122498
Requires:       perl(local::lib)
%endif
# FIXME is this actually a hard requirement?
Requires:       perl(Module::Build)
%if ! %{defined perl_bootstrap}
Requires:       perl(Text::Glob)
%endif
Requires:       %perl_compat
Provides:       cpan = %{version}
%if %{defined perl_bootstrap}
%gendep_perl_CPAN
%endif
BuildArch:      noarch

%description CPAN
The CPAN module automates or at least simplifies the make and install of
perl modules and extensions. It includes some primitive searching
capabilities and knows how to use LWP, HTTP::Tiny, Net::FTP and certain
external download clients to fetch distributions from the net.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package CPAN-Meta
Summary:        Distribution metadata for a CPAN dist
Epoch:          0
Version:        2.150010
License:        GPL+ or Artistic
Requires:       %perl_compat
Requires:       perl(CPAN::Meta::YAML) >= 0.011
Requires:       perl(Encode)
Requires:       perl(JSON::PP) >= 2.27300
%if %{defined perl_bootstrap}
%gendep_perl_CPAN_Meta
%endif
BuildArch:      noarch

%description CPAN-Meta
Software distributions released to the CPAN include a META.json or, for
older distributions, META.yml, which describes the distribution, its
contents, and the requirements for building and installing the
distribution. The data structure stored in the META.json file is described
in CPAN::Meta::Spec.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package CPAN-Meta-Requirements
Summary:        Set of version requirements for a CPAN dist
Epoch:          0
# Real version 2.140
Version:        2.140
License:        GPL+ or Artistic
Requires:       %perl_compat
BuildArch:      noarch
# CPAN-Meta-Requirements used to have six decimal places
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(CPAN::Meta::Requirements\\)
Provides:       perl(CPAN::Meta::Requirements) = %{version}000
%if %{defined perl_bootstrap}
%gendep_perl_CPAN_Meta_Requirements
%endif

%description CPAN-Meta-Requirements
A CPAN::Meta::Requirements object models a set of version constraints like
those specified in the META.yml or META.json files in CPAN distributions.
It can be built up by adding more and more constraints, and it will reduce
them to the simplest representation.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package CPAN-Meta-YAML
Version:        0.018
Epoch:          0
Summary:        Read and write a subset of YAML for CPAN Meta files
License:        GPL+ or Artistic
BuildArch:      noarch
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_CPAN_Meta_YAML
%endif

%description CPAN-Meta-YAML
This module implements a subset of the YAML specification for use in reading
and writing CPAN metadata files like META.yml and MYMETA.yml. It should not be
used for any other general YAML parsing or generation task.
%endif


%if %{dual_life} || %{rebuild_from_scratch}
%package Data-Dumper
Summary:        Stringify perl data structures, suitable for printing and eval
License:        GPL+ or Artistic
Epoch:          0
Version:        2.174
Requires:       %perl_compat
Requires:       perl(Scalar::Util)
Requires:       perl(XSLoader)
%if %{defined perl_bootstrap}
%gendep_perl_Data_Dumper
%endif

%description Data-Dumper
Given a list of scalars or reference variables, writes out their contents
in perl syntax. The references can also be objects. The content of each
variable is output in a single Perl statement. Handles self-referential
structures correctly.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package DB_File
Summary:        Perl5 access to Berkeley DB version 1.x
License:        GPL+ or Artistic
Epoch:          0
Version:        1.843
Requires:       %perl_compat
Requires:       perl(Fcntl)
Requires:       perl(XSLoader)
%if %{defined perl_bootstrap}
%gendep_perl_DB_File
%endif
Conflicts:      perl < 4:5.16.3-264

%description DB_File
DB_File is a module which allows Perl programs to make use of the facilities
provided by Berkeley DB version 1.x (if you have a newer version of DB, you
will be limited to functionality provided by interface of version 1.x). The
interface defined here mirrors the Berkeley DB interface closely.
%endif

%package Devel-Peek
Summary:        A data debugging tool for the XS programmer
License:        GPL+ or Artistic
Epoch:          0
Version:        1.28
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Devel_Peek
%endif
Conflicts:      perl < 4:5.22.0-351

%description Devel-Peek
Devel::Peek contains functions which allows raw Perl datatypes to be
manipulated from a Perl script. This is used by those who do XS programming to
check that the data they are sending from C to Perl looks as they think it
should look.

%if %{dual_life} || %{rebuild_from_scratch}
%package Devel-PPPort
Summary:        Perl Pollution Portability header generator
License:        GPL+ or Artistic
Epoch:          0
Version:        3.52
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Devel_PPPort
%endif
Conflicts:      perl < 4:5.20.1-310

%description Devel-PPPort
Perl's API has changed over time, gaining new features, new functions,
increasing its flexibility, and reducing the impact on the C name space
environment (reduced pollution). The header file written by this module,
typically ppport.h, attempts to bring some of the newer Perl API features
to older versions of Perl, so that you can worry less about keeping track
of old releases, but users can still reap the benefit.
%endif

%package Devel-SelfStubber
Summary:        Generate stubs for a SelfLoading module
License:        GPL+ or Artistic
Epoch:          0
Version:        1.06
BuildArch:      noarch
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Devel_SelfStubber
%endif
Conflicts:      perl < 4:5.22.0-351

%description Devel-SelfStubber
Devel::SelfStubber prints the stubs you need to put in the module before the
__DATA__ token (or you can get it to print the entire module with stubs
correctly placed). The stubs ensure that if a method is called, it will get
loaded. They are needed specifically for inherited autoloaded methods.

%if %{dual_life} || %{rebuild_from_scratch}
%package Digest
Summary:        Modules that calculate message digests
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          0
Version:        1.17.01
BuildArch:      noarch
Requires:       %perl_compat
Requires:       perl(MIME::Base64)
%if %{defined perl_bootstrap}
%gendep_perl_Digest
%endif

%description Digest
The Digest:: modules calculate digests, also called "fingerprints" or
"hashes", of some data, called a message. The digest is (usually)
some small/fixed size string. The actual size of the digest depend of
the algorithm used. The message is simply a sequence of arbitrary
bytes or bits.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Digest-MD5
Summary:        Perl interface to the MD5 Algorithm
License:        (GPL+ or Artistic) and BSD
# Epoch bump for clean upgrade over old standalone package
Epoch:          0
Version:        2.55
Requires:       %perl_compat
Requires:       perl(XSLoader)
# Recommended
Requires:       perl(Digest::base) >= 1.00
%if %{defined perl_bootstrap}
%gendep_perl_Digest_MD5
%endif

%description Digest-MD5
The Digest::MD5 module allows you to use the RSA Data Security Inc. MD5
Message Digest algorithm from within Perl programs. The algorithm takes as
input a message of arbitrary length and produces as output a 128-bit
"fingerprint" or "message digest" of the input.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Digest-SHA
Summary:        Perl extension for SHA-1/224/256/384/512
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        6.02
Requires:       %perl_compat
Requires:       perl(Carp)
# Recommended
Requires:       perl(Digest::base)
%if %{defined perl_bootstrap}
%gendep_perl_Digest_SHA
%endif

%description Digest-SHA
Digest::SHA is a complete implementation of the NIST Secure Hash
Standard.  It gives Perl programmers a convenient way to calculate
SHA-1, SHA-224, SHA-256, SHA-384, and SHA-512 message digests.  The
module can handle all types of input, including partial-byte data.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Encode
Summary:        Character encodings in Perl
License:        (GPL+ or Artistic) and Artistic 2.0 and UCD
Epoch:          4
Version:        3.01
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Encode
%endif

%description Encode
The Encode module provides the interface between Perl strings and the rest
of the system. Perl strings are sequences of characters.

%package encoding
Summary:        Write your Perl script in non-ASCII or non-UTF-8
License:        GPL+ or Artistic
Epoch:          4
Version:        2.22
# Keeping this sub-package arch-specific because it installs files into
# arch-specific directories.
Requires:       %perl_compat
Requires:       perl(Carp)
# Config not needed on perl ≥ 5.008
# Consider Filter::Util::Call as mandatory, bug #1165183, CPAN RT#100427
Requires:       perl(Filter::Util::Call)
# I18N::Langinfo is optional
# PerlIO::encoding is optional
Requires:       perl(utf8)
%if %{defined perl_bootstrap}
%gendep_perl_encoding
%endif
Conflicts:      perl-Encode < 2:2.60-314

%description encoding
With the encoding pragma, you can write your Perl script in any encoding you
like (so long as the Encode module supports it) and still enjoy Unicode
support.

However, this encoding module is deprecated under perl 5.18. It uses
a mechanism provided by perl that is deprecated under 5.18 and higher, and may
be removed in a future version.

The easiest and the best alternative is to write your script in UTF-8.

%package Encode-devel
Summary:        Character encodings in Perl
License:        (GPL+ or Artistic) and UCD
Epoch:          4
Version:        3.01
Requires:       %perl_compat
Requires:       %{name}-Encode = %{epoch}:%{version}-%{release}
Recommends:     perl-devel
%if %{defined perl_bootstrap}
%gendep_perl_Encode_devel
%endif
BuildArch:      noarch

%description Encode-devel
enc2xs builds a Perl extension for use by Encode from either Unicode Character
Mapping files (.ucm) or Tcl Encoding Files (.enc). You can use enc2xs to add
your own encoding to perl. No knowledge of XS is necessary.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Env
Summary:        Perl module that imports environment variables as scalars or arrays
License:        GPL+ or Artistic
Epoch:          0
Version:        1.04
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Env
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.2-265

%description Env
Perl maintains environment variables in a special hash named %%ENV. For when
this access method is inconvenient, the Perl module Env allows environment
variables to be treated as scalar or array variables.
%endif

%package Errno
Summary:        System errno constants
License:        GPL+ or Artistic
Epoch:          0
Version:        1.30
Requires:       %perl_compat
# Errno.pm bakes in kernel version at build time and compares it against
# $Config{osvers} at run time. Match exact interpreter build. Bug #1393421.
Requires:       perl-libs%{?_isa} = %{perl_epoch}:%{perl_version}-%{release}
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_Errno
%endif
Conflicts:      perl < 4:5.22.0-351

%description Errno
"Errno" defines and conditionally exports all the error constants defined in
your system "errno.h" include file. It has a single export tag, ":POSIX",
which will export all POSIX defined error numbers.

%if %{dual_life} || %{rebuild_from_scratch}
%package experimental
Summary:        Experimental features made easy
License:        GPL+ or Artistic
Epoch:          0
Version:        0.020
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_experimental
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.20.0-303

%description experimental
This pragma provides an easy and convenient way to enable or disable
experimental features.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Exporter
Summary:        Implements default import method for modules
License:        GPL+ or Artistic
Epoch:          0
Version:        5.73
Requires:       %perl_compat
Requires:       perl(Carp) >= 1.05
%if %{defined perl_bootstrap}
%gendep_perl_Exporter
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.2-265

%description Exporter
The Exporter module implements an import method which allows a module to
export functions and variables to its users' name spaces. Many modules use
Exporter rather than implementing their own import method because Exporter
provides a highly flexible interface, with an implementation optimized for
the common case.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package ExtUtils-CBuilder
Summary:        Compile and link C code for Perl modules
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        0.280231
BuildArch:      noarch
# C and C++ compilers are highly recommended because compiling code is the
# purpose of ExtUtils::CBuilder, bug #1547165
Requires:       gcc
Requires:       gcc-c++
Requires:       perl-devel
Requires:       %perl_compat
Requires:       perl(DynaLoader)
Requires:       perl(ExtUtils::Mksymlists)
Requires:       perl(File::Spec) >= 3.13
Requires:       perl(Perl::OSType) >= 1
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_CBuilder
%endif

%description ExtUtils-CBuilder
This module can build the C portions of Perl modules by invoking the
appropriate compilers and linkers in a cross-platform manner. It was motivated
by the Module::Build project, but may be useful for other purposes as well.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package ExtUtils-Command
Summary:        Perl routines to replace common UNIX commands in Makefiles
License:        GPL+ or Artistic
Epoch:          1
Version:        7.34
BuildArch:      noarch
Requires:       %perl_compat
Conflicts:      perl < 4:5.20.1-312
Requires:       perl(File::Find)
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_Command
%endif

%description ExtUtils-Command
This Perl module is used to replace common UNIX commands. In all cases the
functions work with @ARGV rather than taking arguments. This makes them
easier to deal with in Makefiles.
%endif

%package ExtUtils-Embed
Summary:        Utilities for embedding Perl in C/C++ applications
License:        GPL+ or Artistic
Epoch:          0
Version:        1.35
Requires:       perl-devel
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_Embed
%endif
BuildArch:      noarch

%description ExtUtils-Embed
Utilities for embedding Perl in C/C++ applications.


%if %{dual_life} || %{rebuild_from_scratch}
%package ExtUtils-Install
Summary:        Install files from here to there
License:        GPL+ or Artistic
Epoch:          0
Version:        2.14
BuildArch:      noarch
Requires:       %perl_compat
Requires:       perl(Data::Dumper)
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_Install
%endif

%description ExtUtils-Install
Handles the installing and uninstalling of perl modules, scripts, man
pages, etc.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package ExtUtils-MakeMaker
Summary:        Create a module Makefile
License:        GPL+ or Artistic
Epoch:          1
Version:        7.34
# These dependencies are weak in order to relieve building noarch
# packages from perl-devel and gcc. See bug #1547165.
# If an XS module is built, the generated Makefile executes gcc.
Recommends:     gcc
# If an XS module is built, code generated from XS will be compiled and it
# includes Perl header files.
Recommends:     perl-devel
Requires:       %perl_compat
Requires:       perl(Data::Dumper)
Requires:       perl(DynaLoader)
Requires:       perl(ExtUtils::Command)
Requires:       perl(ExtUtils::Install)
Requires:       perl(ExtUtils::Manifest)
Requires:       perl(File::Find)
Requires:       perl(Getopt::Long)
# Optional Pod::Man is needed for generating manual pages from POD
Requires:       perl(Pod::Man)
Requires:       perl(POSIX)
Requires:       perl(Test::Harness)
Requires:       perl(version)
# If an XS module is compiled, xsubpp(1) is needed
Requires:       perl-ExtUtils-ParseXS
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_MakeMaker
%endif
BuildArch:      noarch

# Filter false DynaLoader provides. Versioned perl(DynaLoader) keeps
# unfiltered on perl package, no need to reinject it.
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(DynaLoader\\)\\s*$
%global __provides_exclude %__provides_exclude|^perl\\(ExtUtils::MakeMaker::_version\\)

%description ExtUtils-MakeMaker
Create a module Makefile.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package ExtUtils-Manifest
Summary:        Utilities to write and check a MANIFEST file
License:        GPL+ or Artistic
Epoch:          0
Version:        1.70
Requires:       %perl_compat
Requires:       perl(File::Path)
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_Manifest
%endif
BuildArch:      noarch

%description ExtUtils-Manifest
%{summary}.
%endif

%package ExtUtils-Miniperl
Summary:        Write the C code for perlmain.c
License:        GPL+ or Artistic
Epoch:          0
Version:        1.09
Requires:       perl-devel
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_Miniperl
%endif
BuildArch:      noarch

%description ExtUtils-Miniperl
writemain() takes an argument list of directories containing archive libraries
that relate to perl modules and should be linked into a new perl binary. It
writes a corresponding perlmain.c file that is a plain C file containing all
the bootstrap code to make the If the first argument to writemain() is a
reference to a scalar it is used as the filename to open for ouput. Any other
reference is used as the filehandle to write to. Otherwise output defaults to
STDOUT.

%if %{dual_life} || %{rebuild_from_scratch}
%package ExtUtils-MM-Utils
Summary:        ExtUtils::MM methods without dependency on ExtUtils::MakeMaker
License:        GPL+ or Artistic
Epoch:          1
# Real version 7.11_06
# Dual-life ExtUtils-MakeMaker generate it with its version
Version:        7.24
BuildArch:      noarch
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_MM_Utils
%endif

%description ExtUtils-MM-Utils
This is a collection of ExtUtils::MM subroutines that are used by many
other modules but that do not need full-featured ExtUtils::MakeMaker. The
issue with ExtUtils::MakeMaker is it pulls in Perl header files and that
is an overkill for small subroutines.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package ExtUtils-ParseXS
Summary:        Module and a script for converting Perl XS code into C code
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        3.40
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_ExtUtils_ParseXS
%endif
BuildArch:      noarch

%description ExtUtils-ParseXS
ExtUtils::ParseXS will compile XS code into C code by embedding the constructs
necessary to let C functions manipulate Perl values and creates the glue
necessary to let Perl access those functions.
%endif


%if %{dual_life} || %{rebuild_from_scratch}
%package File-Fetch
Summary:        Generic file fetching mechanism
License:        GPL+ or Artistic
Epoch:          0
Version:        0.56
Requires:       perl(IPC::Cmd) >= 0.36
Requires:       perl(Module::Load::Conditional) >= 0.04
Requires:       perl(Params::Check) >= 0.07
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_File_Fetch
%endif
BuildArch:      noarch

%description File-Fetch
File::Fetch is a generic file fetching mechanism.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package File-Path
Summary:        Create or remove directory trees
License:        GPL+ or Artistic
Epoch:          0
Version:        2.16
Requires:       %perl_compat
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_File_Path
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.2-265

%description File-Path
This module provides a convenient way to create directories of arbitrary
depth and to delete an entire directory subtree from the file system.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package File-Temp
Summary:        Return name and handle of a temporary file safely
License:        GPL+ or Artistic
Epoch:          0
Version:        0.2309
Requires:       %perl_compat
BuildArch:      noarch
Requires:       perl(File::Path) >= 2.06
Requires:       perl(POSIX)
%if %{defined perl_bootstrap}
%gendep_perl_File_Temp
%endif
Conflicts:      perl < 4:5.16.2-265

%description File-Temp
File::Temp can be used to create and open temporary files in a safe way.
There is both a function interface and an object-oriented interface. The
File::Temp constructor or the tempfile() function can be used to return the
name and the open file handle of a temporary file. The tempdir() function
can be used to create a temporary directory.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
# FIXME Filter-Simple? version?
%package Filter
Summary:        Perl source filters
License:        GPL+ or Artistic
Epoch:          2
Version:        1.55
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Filter
%endif

%description Filter
Source filters alter the program text of a module before Perl sees it, much as
a C preprocessor alters the source text of a C program before the compiler
sees it.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Filter-Simple
Summary:        Simplified Perl source filtering
License:        GPL+ or Artistic
Epoch:          0
Version:        0.95
BuildArch:      noarch
Requires:       %perl_compat
Conflicts:      perl < 4:5.20.1-312
Requires:       perl(Text::Balanced) >= 1.97
Requires:       perl(warnings)
%if %{defined perl_bootstrap}
%gendep_perl_Filter_Simple
%endif

%description Filter-Simple
The Filter::Simple Perl module provides a simplified interface to
Filter::Util::Call; one that is sufficient for most common cases.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Getopt-Long
Summary:        Extended processing of command line options
License:        GPLv2+ or Artistic
Epoch:          1
Version:        2.50
Requires:       %perl_compat
Requires:       perl(overload)
Requires:       perl(Text::ParseWords)
# Recommended:
Requires:       perl(Pod::Usage) >= 1.14
%if %{defined perl_bootstrap}
%gendep_perl_Getopt_Long
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.3-268

%description Getopt-Long
The Getopt::Long module implements an extended getopt function called
GetOptions(). It parses the command line from @ARGV, recognizing and removing
specified options and their possible values.  It adheres to the POSIX syntax
for command line options, with GNU extensions. In general, this means that
options have long names instead of single letters, and are introduced with
a double dash "--". Support for bundling of command line options, as was the
case with the more traditional single-letter approach, is provided but not
enabled by default.
%endif

%package IO
Summary:        Perl input/output modules
License:        GPL+ or Artistic
Epoch:          0
Version:        1.40
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_IO
%endif

%description IO
This is a collection of Perl input/output modules.

%if %{dual_life} || %{rebuild_from_scratch}
%package IO-Compress
Summary:        IO::Compress wrapper for modules
License:        GPL+ or Artistic
Epoch:          0
Version:        2.084
Requires:       %perl_compat
Obsoletes:      perl-Compress-Zlib <= 2.020
Provides:       perl(IO::Uncompress::Bunzip2)
%if %{defined perl_bootstrap}
%gendep_perl_IO_Compress
%endif
BuildArch:      noarch

%description IO-Compress
This module is the base class for all IO::Compress and IO::Uncompress modules.
This module is not intended for direct use in application code. Its sole
purpose is to to be sub-classed by IO::Compress modules.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package IO-Socket-IP
Summary:        Drop-in replacement for IO::Socket::INET supporting both IPv4 and IPv6
License:        GPL+ or Artistic
Epoch:          0
Version:        0.39
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_IO_Socket_IP
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.20.0-303

%description IO-Socket-IP
This module provides a protocol-independent way to use IPv4 and IPv6
sockets, as a drop-in replacement for IO::Socket::INET. Most constructor
arguments and methods are provided in a backward-compatible way.
%endif

%package IO-Zlib
Summary:        Perl IO:: style interface to Compress::Zlib
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        1.10
Requires:       perl(Compress::Zlib)
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_IO_Zlib
%endif
BuildArch:      noarch

%description IO-Zlib
This modules provides an IO:: style interface to the Compress::Zlib package.
The main advantage is that you can use an IO::Zlib object in much the same way
as an IO::File object so you can have common code that doesn't know which sort
of file it is using.


%if %{dual_life} || %{rebuild_from_scratch}
%package IPC-Cmd
Summary:        Finding and running system commands made easy
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          2
Version:        1.02
Requires:       perl(ExtUtils::MM::Utils)
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_IPC_Cmd
%endif
BuildArch:      noarch

%description IPC-Cmd
IPC::Cmd allows you to run commands, interactively if desired, in a platform
independent way, but have them still work.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package IPC-SysV
Summary:        Object interface to System V IPC
License:        GPL+ or Artistic
Epoch:          0
Version:        2.07
Requires:       %perl_compat
Requires:       perl(DynaLoader)
%if %{defined perl_bootstrap}
%gendep_perl_IPC_SysV
%endif
Conflicts:      perl < 4:5.22.0-351

%description IPC-SysV
This is an object interface for System V messages, semaphores, and
inter-process calls.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package HTTP-Tiny
Summary:        A small, simple, correct HTTP/1.1 client
License:        GPL+ or Artistic
Epoch:          0
Version:        0.076
Requires:       perl(bytes)
Requires:       perl(Carp)
Requires:       perl(IO::Socket)
Requires:       perl(Time::Local)
%if %{defined perl_bootstrap}
%gendep_perl_HTTP_Tiny
%endif
BuildArch:      noarch

%description HTTP-Tiny
This is a very simple HTTP/1.1 client, designed primarily for doing simple GET 
requests without the overhead of a large framework like LWP::UserAgent.
It is more correct and more complete than HTTP::Lite. It supports proxies 
(currently only non-authenticating ones) and redirection. It also correctly 
resumes after EINTR.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package JSON-PP
Summary:        JSON::XS compatible pure-Perl module
Epoch:          1
Version:        4.02
License:        GPL+ or Artistic
BuildArch:      noarch
Requires:       %perl_compat 
Requires:       perl(Data::Dumper)
Requires:       perl(Encode)
Requires:       perl(Math::BigFloat)
Requires:       perl(Math::BigInt)
Requires:       perl(Scalar::Util)
Requires:       perl(subs)
%if %{defined perl_bootstrap}
%gendep_perl_JSON_PP
%endif
Conflicts:      perl-JSON < 2.50

%description JSON-PP
JSON::XS is the fastest and most proper JSON module on CPAN. It is written by
Marc Lehmann in C, so must be compiled and installed in the used environment.
JSON::PP is a pure-Perl module and is compatible with JSON::XS.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package libnet
Summary:        Perl clients for various network protocols
License:        (GPL+ or Artistic) and Artistic
Epoch:          0
Version:        3.11
Requires:       %perl_compat
Requires:       perl(File::Basename)
Requires:       perl(IO::Socket) >= 1.05
# Prefer IO::Socket::IP over IO::Socket::INET6 and IO::Socket::INET
Requires:       perl(IO::Socket::IP) >= 0.20
Requires:       perl(POSIX)
Requires:       perl(Socket) >= 2.016
Requires:       perl(utf8)
%if %{defined perl_bootstrap}
%gendep_perl_libnet
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-347

%description libnet
This is a collection of Perl modules which provides a simple and
consistent programming interface (API) to the client side of various
protocols used in the internet community.
%endif

%package libnetcfg
Summary:        Configure libnet
License:        GPL+ or Artistic
Epoch:          %perl_epoch
Version:        %perl_version
# Net::Config is optional
BuildArch:      noarch
%if %{defined perl_bootstrap}
%gendep_perl_libnetcfg
%endif
Conflicts:      perl-devel < 4:5.22.0-347

%description libnetcfg
The libnetcfg utility can be used to configure the libnet.

%if %{dual_life} || %{rebuild_from_scratch}
%package Locale-Maketext
Summary:        Framework for localization
License:        GPL+ or Artistic
Epoch:          0
Version:        1.29
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Locale_Maketext
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.3-268

%description Locale-Maketext
It is a common feature of applications (whether run directly, or via the Web)
for them to be "localized" -- i.e., for them to present an English interface
to an English-speaker, a German interface to a German-speaker, and so on for
all languages it's programmed with. Locale::Maketext is a framework for
software localization; it provides you with the tools for organizing and
accessing the bits of text and text-processing code that you need for
producing localized applications.
%endif

%package Locale-Maketext-Simple
Summary:        Simple interface to Locale::Maketext::Lexicon
License:        MIT
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        0.21.01
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Locale_Maketext_Simple
%endif
BuildArch:      noarch

%description Locale-Maketext-Simple
This module is a simple wrapper around Locale::Maketext::Lexicon, designed
to alleviate the need of creating Language Classes for module authors.

%if %{dual_life} || %{rebuild_from_scratch}
%package Math-BigInt
Summary:        Arbitrary-size integer and float mathematics
License:        GPL+ or Artistic
Epoch:          1
# Real version 1.999816
Version:        1.9998.16
Requires:       %perl_compat
Requires:       perl(Carp)
# File::Spec not used on recent perl
%if %{defined perl_bootstrap}
%gendep_perl_Math_BigInt
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-347

# Do not export unversioned module
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Math::BigInt\\)\\s*$

%description Math-BigInt
This provides Perl modules for arbitrary-size integer and float mathematics.

%package Math-BigInt-FastCalc
Summary:        Math::BigInt::Calc XS implementation
License:        GPL+ or Artistic
Epoch:          0
# Version normalized to dot format
# Real version 0.5008
Version:        0.500.800
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Math_BigInt_FastCalc
%endif
Conflicts:      perl < 4:5.22.0-348

%description Math-BigInt-FastCalc
This package provides support for faster big integer calculations.

%package Math-BigRat
Summary:        Arbitrary big rational numbers
License:        GPL+ or Artistic
Epoch:          0
Version:        0.2614
Requires:       %perl_compat
Requires:       perl(Math::BigInt)
%if %{defined perl_bootstrap}
%gendep_perl_Math_BigRat
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-348

%description Math-BigRat
Math::BigRat complements Math::BigInt and Math::BigFloat by providing support
for arbitrary big rational numbers.
%endif

%package Math-Complex
Summary:        Complex numbers and trigonometric functions
License:        GPL+ or Artistic
Epoch:          0
Version:        1.59.01
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Math_Complex
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-348

%description Math-Complex
This package lets you create and manipulate complex numbers. By default, Perl
limits itself to real numbers, but an extra "use" statement brings full
complex support, along with a full set of mathematical functions typically
associated with and/or extended to complex numbers.

%package Memoize
Summary:        Transparently speed up functions by caching return values
License:        GPL+ or Artistic
Epoch:          0
Version:        1.03.01
Requires:       %perl_compat
# Keep Time::HiRes optional
%if %{defined perl_bootstrap}
%gendep_perl_Memoize
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-350

%description Memoize
Memoizing a function makes it faster by trading space for time. It does
this by caching the return values of the function in a table. If you call
the function again with the same arguments, memoize jumps in and gives
you the value out of the table, instead of letting the function compute
the value all over again.

%if %{dual_life} || %{rebuild_from_scratch}
%package MIME-Base64
Summary:        Encoding and decoding of Base64 and quoted-printable strings
# cpan/MIME-Base64/Base64.xs:   (GPL+ or Artistic) and MIT (Bellcore's part)
# Other files:                  GPL+ or Artistic
License:        (GPL+ or Artistic) and MIT
Epoch:          0
Version:        3.15
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_MIME_Base64
%endif
Conflicts:      perl < 4:5.22.0-347

%description MIME-Base64
This package contains a Base64 encoder/decoder and a quoted-printable
encoder/decoder. These encoding methods are specified in RFC 2045 - MIME
(Multipurpose Internet Mail Extensions).
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Module-CoreList
Summary:        What modules are shipped with versions of perl
License:        GPL+ or Artistic
Epoch:          1
Version:        5.20190522
Requires:       %perl_compat
Requires:       perl(List::Util)
Requires:       perl(version) >= 0.88
%if %{defined perl_bootstrap}
%gendep_perl_Module_CoreList
%endif
BuildArch:      noarch

%description Module-CoreList
Module::CoreList provides information on which core and dual-life modules
are shipped with each version of perl.


%package Module-CoreList-tools
Summary:        Tool for listing modules shipped with perl
License:        GPL+ or Artistic
Epoch:          1
Version:        5.20190522
Requires:       %perl_compat
Requires:       perl(feature)
Requires:       perl(version) >= 0.88
Requires:       perl-Module-CoreList = %{epoch}:%{version}-%{release}
%if %{defined perl_bootstrap}
%gendep_perl_Module_CoreList_tools
%endif
# The files were distributed with perl.spec's subpackage
# perl-Module-CoreList <= 1:5.020001-309
Conflicts:      perl-Module-CoreList < 1:5.020001-310
BuildArch:      noarch

%description Module-CoreList-tools
This package provides a corelist(1) tool which can be used to query what
modules were shipped with given perl version.
%endif


%if %{dual_life} || %{rebuild_from_scratch}
%package Module-Load
Summary:        Runtime require of both modules and files
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        0.34
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Module_Load
%endif
BuildArch:      noarch

%description Module-Load
Module::Load eliminates the need to know whether you are trying to require
either a file or a module.
%endif


%if %{dual_life} || %{rebuild_from_scratch}
%package Module-Load-Conditional
Summary:        Looking up module information / loading at runtime
License:        GPL+ or Artistic
Epoch:          0
Version:        0.68
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Module_Load_Conditional
%endif
BuildArch:      noarch

%description Module-Load-Conditional
Module::Load::Conditional provides simple ways to query and possibly load any
of the modules you have installed on your system during runtime.
%endif


%package Module-Loaded
Summary:        Mark modules as loaded or unloaded
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        0.08
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Module_Loaded
%endif
BuildArch:      noarch

%description Module-Loaded
When testing applications, often you find yourself needing to provide
functionality in your test environment that would usually be provided by
external modules. Rather than munging the %%INC by hand to mark these external
modules as loaded, so they are not attempted to be loaded by perl, this module
offers you a very simple way to mark modules as loaded and/or unloaded.


%if %{dual_life} || %{rebuild_from_scratch}
%package Module-Metadata
Summary:        Gather package and POD information from perl module files
Epoch:          0
Version:        1.000036
License:        GPL+ or Artistic
BuildArch:      noarch
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Module_Metadata
%endif

%description Module-Metadata
Gather package and POD information from perl module files
%endif

%package Net-Ping
Summary:        Check a remote host for reachability
License:        GPL+ or Artistic
Epoch:          0
Version:        2.71
Requires:       %perl_compat
# Keep Net::Ping::External optional
%if %{defined perl_bootstrap}
%gendep_perl_Net_Ping
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-350

%description Net-Ping
Net::Ping module contains methods to test the reachability of remote hosts on
a network.

%package open
Summary:        Perl pragma to set default PerlIO layers for input and output
License:        GPL+ or Artistic
Epoch:          0
Version:        1.11
Requires:       %perl_compat
Requires:       perl(Carp)
Requires:       perl(Encode)
Requires:       perl(encoding)
%if %{defined perl_bootstrap}
%gendep_perl_open
%endif
Conflicts:      perl < 4:5.20.2-326
BuildArch:      noarch

%description open
The "open" pragma serves as one of the interfaces to declare default "layers"
(also known as "disciplines") for all I/O.

%if %{dual_life} || %{rebuild_from_scratch}
%package parent
Summary:        Establish an ISA relationship with base classes at compile time
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        0.237
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_parent
%endif
BuildArch:      noarch

%description parent
parent allows you to both load one or more modules, while setting up
inheritance from those modules at the same time. Mostly similar in effect to:

    package Baz;

    BEGIN {
        require Foo;
        require Bar;

        push @ISA, qw(Foo Bar);
    }
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Params-Check
Summary:        Generic input parsing/checking mechanism
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        0.38
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Params_Check
%endif
BuildArch:      noarch

%description Params-Check
Params::Check is a generic input parsing/checking mechanism.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package PathTools
Summary:        PathTools Perl module (Cwd, File::Spec)
License:        (GPL+ or Artistic) and BSD
Epoch:          0
# Converted from 3.76
Version:        3.760
Requires:       %perl_compat
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_PathTools
%endif

%description PathTools
PathTools Perl module (Cwd, File::Spec).
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package perlfaq
Summary:        Frequently asked questions about Perl
# Code examples are Public Domain
License:        (GPL+ or Artistic) and Public Domain
Epoch:          0
Version:        5.20190126
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_perlfaq
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-347

%description perlfaq
The perlfaq comprises several documents that answer the most commonly asked
questions about Perl and Perl programming.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package PerlIO-via-QuotedPrint
Summary:        PerlIO layer for quoted-printable strings
License:        GPL+ or Artistic
Epoch:          0
Version:        0.08
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_PerlIO_via_QuotedPrint
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-347

%description PerlIO-via-QuotedPrint
This module implements a PerlIO layer that works on files encoded in the
quoted-printable format. It will decode from quoted-printable while
reading from a handle, and it will encode as quoted-printable while
writing to a handle.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Perl-OSType
Summary:        Map Perl operating system names to generic types
Version:        1.010
Epoch:          0
License:        GPL+ or Artistic
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Perl_OSType
%endif
BuildArch:      noarch

%description Perl-OSType
Modules that provide OS-specific behaviors often need to know if the current
operating system matches a more generic type of operating systems. For example,
'linux' is a type of 'Unix' operating system and so is 'freebsd'.
This module provides a mapping between an operating system name as given by $^O
and a more generic type. The initial version is based on the OS type mappings
provided in Module::Build and ExtUtils::CBuilder (thus, Microsoft operating
systems are given the type 'Windows' rather than 'Win32').
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Pod-Checker
Summary:        Check POD documents for syntax errors
Epoch:          4
Version:        1.73
License:        GPL+ or Artistic
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Pod_Checker
%endif
BuildArch:      noarch

%description Pod-Checker
Module and tools to verify POD documentation contents for compliance with the
Plain Old Documentation format specifications.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Pod-Escapes
Summary:        Resolve POD escape sequences
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        1.07
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Pod_Escapes
%endif
BuildArch:      noarch

%description Pod-Escapes
This module provides things that are useful in decoding Pod E<...> sequences.
%endif

%package Pod-Html
Summary:        Convert POD files to HTML
License:        GPL+ or Artistic
Epoch:          0
# Real version 1.24
Version:        1.24
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Pod_Html
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-350

%description Pod-Html
This package converts files from POD format (see perlpod) to HTML format. It
can automatically generate indexes and cross-references, and it keeps a cache
of things it knows how to cross-reference.

%if %{dual_life} || %{rebuild_from_scratch}
%package Pod-Parser
Summary:        Basic perl modules for handling Plain Old Documentation (POD)
License:        GPL+ or Artistic
Epoch:          0
Version:        1.63
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Pod_Parser
%endif
BuildArch:      noarch

%description Pod-Parser
This software distribution contains the packages for using Perl5 POD (Plain
Old Documentation). See the "perlpod" and "perlsyn" manual pages from your
Perl5 distribution for more information about POD.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Pod-Perldoc
Summary:        Look up Perl documentation in Pod format
License:        GPL+ or Artistic
Epoch:          0
Version:        3.2801
%if %{with perl_enables_groff}
# Pod::Perldoc::ToMan executes roff
Requires:       groff-base
%endif
Requires:       %perl_compat
Requires:       perl(File::Temp) >= 0.22
Requires:       perl(HTTP::Tiny)
Requires:       perl(IO::Handle)
Requires:       perl(IPC::Open3)
# POD2::Base is optional
# Pod::Checker is not needed if Pod::Simple::Checker is available
Requires:       perl(Pod::Simple::Checker)
Requires:       perl(Pod::Simple::RTF) >= 3.16
Requires:       perl(Pod::Simple::XMLOutStream) >= 3.16
Requires:       perl(Text::ParseWords)
# Tk is optional
Requires:       perl(Symbol)
%if %{defined perl_bootstrap}
%gendep_perl_Pod_Perldoc
%endif
BuildArch:      noarch

%description Pod-Perldoc
perldoc looks up a piece of documentation in .pod format that is embedded
in the perl installation tree or in a perl script, and displays it via
"groff -man | $PAGER". This is primarily used for the documentation for
the perl library modules.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Pod-Simple
Summary:        Framework for parsing POD documentation
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          1
Version:        3.35
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Pod_Simple
%endif
BuildArch:      noarch

%description Pod-Simple
Pod::Simple is a Perl library for parsing text in the Pod ("plain old
documentation") markup language that is typically used for writing
documentation for Perl and for Perl modules.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Pod-Usage
Summary:        Print a usage message from embedded pod documentation
License:        GPL+ or Artistic
Epoch:          4
Version:        1.69
Requires:       %perl_compat
# Pod::Usage executes perldoc from perl-Pod-Perldoc by default
Requires:       perl-Pod-Perldoc
Requires:       perl(Pod::Text)
%if %{defined perl_bootstrap}
%gendep_perl_Pod_Usage
%endif
BuildArch:      noarch

%description Pod-Usage
pod2usage will print a usage message for the invoking script (using its
embedded POD documentation) and then exit the script with the desired exit
status. The usage message printed may have any one of three levels of
"verboseness": If the verbose level is 0, then only a synopsis is printed.
If the verbose level is 1, then the synopsis is printed along with a
description (if present) of the command line options and arguments. If the
verbose level is 2, then the entire manual page is printed.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package podlators
Summary:        Format POD source into various output formats
License:        (GPL+ or Artistic) and MIT
Epoch:          0
Version:        4.11
BuildArch:      noarch
Requires:       %perl_compat
Requires:       perl(File::Spec) >= 0.8
Requires:       perl(Pod::Simple) >= 3.06
%if %{defined perl_bootstrap}
%gendep_perl_podlators
%endif
Conflicts:      perl < 4:5.16.1-234

%description podlators
This package contains Pod::Man and Pod::Text modules which convert POD input
to *roff source output, suitable for man pages, or plain text.  It also
includes several sub-classes of Pod::Text for formatted output to terminals
with various capabilities.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Scalar-List-Utils
Summary:        A selection of general-utility scalar and list subroutines
License:        GPL+ or Artistic
Epoch:          3
# Real version 1.50
Version:        1.50
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Scalar_List_Utils
%endif

%description Scalar-List-Utils
Scalar::Util and List::Util contain a selection of subroutines that people have
expressed would be nice to have in the perl core, but the usage would not
really be high enough to warrant the use of a keyword, and the size so small
such that being individual extensions would be wasteful.
%endif

%package SelfLoader
Summary:        Load functions only on demand
License:        GPL+ or Artistic
Epoch:          0
Version:        1.25
BuildArch:      noarch
Requires:       %perl_compat
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_SelfLoader
%endif
Conflicts:      perl < 4:5.22.0-351

%description SelfLoader
This Perl module tells its users that functions in a package are to be
autoloaded from after the "__DATA__" token. See also "Autoloading" in
perlsub.

%if %{dual_life} || %{rebuild_from_scratch}
%package Socket
Summary:        C socket.h defines and structure manipulators
License:        GPL+ or Artistic
Epoch:          4
Version:        2.027
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Socket
%endif

%description Socket
This module is just a translation of the C socket.h file.  Unlike the old
mechanism of requiring a translated socket.ph file, this uses the h2xs program
(see the Perl source distribution) and your native C compiler.  This means
that it has a far more likely chance of getting the numbers right.  This
includes all of the commonly used pound-defines like AF_INET, SOCK_STREAM, etc.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Storable
Summary:        Persistence for Perl data structures
License:        GPL+ or Artistic
Epoch:          1
Version:        3.15
Requires:       %perl_compat
# Carp substitutes missing Log::Agent
Requires:       perl(Carp)
Requires:       perl(Config)
# Fcntl is optional, but locking is good
Requires:       perl(Fcntl)
Requires:       perl(IO::File)
%if %{defined perl_bootstrap}
%gendep_perl_Storable
%endif
Conflicts:      perl < 4:5.16.3-274

%description Storable
The Storable package brings persistence to your Perl data structures
containing scalar, array, hash or reference objects, i.e. anything that
can be conveniently stored to disk and retrieved at a later time.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Sys-Syslog
Summary:        Perl interface to the UNIX syslog(3) calls
License:        GPL+ or Artistic
Epoch:          0
Version:        0.35
Requires:       %perl_compat
Requires:       perl(XSLoader)
%if %{defined perl_bootstrap}
%gendep_perl_Sys_Syslog
%endif
Conflicts:      perl < 4:5.16.3-269

%description Sys-Syslog
Sys::Syslog is an interface to the UNIX syslog(3) function. Call syslog() with
a string priority and a list of printf() arguments just like at syslog(3).
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Term-ANSIColor
Summary:        Color screen output using ANSI escape sequences
License:        GPL+ or Artistic
Epoch:          0
Version:        4.06
Requires:       %perl_compat
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_Term_ANSIColor
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.18.2-302

%description Term-ANSIColor
This module has two interfaces, one through color() and colored() and the
other through constants. It also offers the utility functions uncolor(),
colorstrip(), colorvalid(), and coloralias(), which have to be explicitly
imported to be used.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Term-Cap
Summary:        Perl termcap interface
License:        GPL+ or Artistic
Epoch:          0
Version:        1.17
Requires:       %perl_compat
# ncurses for infocmp tool
Requires:       ncurses
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_Term_Cap
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-347

%description Term-Cap
These are low-level functions to extract and use capabilities from a terminal
capability (termcap) database.
%endif

%package Test
Summary:        Simple framework for writing test scripts
License:        GPL+ or Artistic
Epoch:          0
Version:        1.31
Requires:       %perl_compat
# Algorithm::Diff 1.15 is optional
Requires:       perl(File::Temp)
%if %{defined perl_bootstrap}
%gendep_perl_Test
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-351

%description Test
The Test Perl module simplifies the task of writing test files for Perl modules,
such that their output is in the format that Test::Harness expects to see.

%if %{dual_life} || %{rebuild_from_scratch}
%package Test-Harness
Summary:        Run Perl standard test scripts with statistics
License:        GPL+ or Artistic
Epoch:          1
Version:        3.42
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Test_Harness
%endif
BuildArch:      noarch

%description Test-Harness
Run Perl standard test scripts with statistics.
Use TAP::Parser, Test::Harness package was whole rewritten.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Test-Simple
Summary:        Basic utilities for writing tests
License:        (GPL+ or Artistic) and CC0 and Public Domain
Epoch:          1
Version:        1.302162
Requires:       %perl_compat
Requires:       perl(Data::Dumper)
%if %{defined perl_bootstrap}
%gendep_perl_Test_Simple
%endif
BuildArch:      noarch

%description Test-Simple
Basic utilities for writing tests.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Text-Balanced
Summary:        Extract delimited text sequences from strings
License:        GPL+ or Artistic
Epoch:          0
Version:        2.03
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Text_Balanced
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.22.0-347

%description Text-Balanced
These Perl subroutines may be used to extract a delimited substring, possibly
after skipping a specified prefix string.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Text-ParseWords
Summary:        Parse text into an array of tokens or array of arrays
License:        GPL+ or Artistic
Epoch:          0
Version:        3.30
Requires:       %perl_compat
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_Text_ParseWords
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.2-256

%description Text-ParseWords
Parse text into an array of tokens or array of arrays.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Text-Tabs+Wrap
Summary:        Expand tabs and do simple line wrapping
License:        TTWL
Epoch:          0
Version:        2013.0523
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Text_Tabs_Wrap
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.20.2-325

%description Text-Tabs+Wrap
Text::Tabs performs the same job that the UNIX expand(1) and unexpand(1)
commands do: adding or removing tabs from a document.

Text::Wrap::wrap() will reformat lines into paragraphs. All it does is break
up long lines, it will not join short lines together.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Thread-Queue
Summary:        Thread-safe queues
License:        GPL+ or Artistic
Epoch:          0
Version:        3.13
Requires:       %perl_compat
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_Thread_Queue
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.2-257

%description Thread-Queue
This module provides thread-safe FIFO queues that can be accessed safely by
any number of threads.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Time-HiRes
Summary:        High resolution alarm, sleep, gettimeofday, interval timers
License:        GPL+ or Artistic
Epoch:          1
Version:        1.9760
Requires:       %perl_compat
Requires:       perl(Carp)
%if %{defined perl_bootstrap}
%gendep_perl_Time_HiRes
%endif
Conflicts:      perl < 4:5.16.3-271

%description Time-HiRes
The Time::HiRes module implements a Perl interface to the usleep, nanosleep,
ualarm, gettimeofday, and setitimer/getitimer system calls, in other words,
high resolution time and timers.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Time-Local
Summary:        Efficiently compute time from local and GMT time
License:        GPL+ or Artistic
Epoch:          0
# Real version 1.28
Version:        1.280
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Time_Local
%endif
BuildArch:      noarch
Conflicts:      perl < 4:5.16.3-262

%description Time-Local
This module provides functions that are the inverse of built-in perl functions
localtime() and gmtime(). They accept a date as a six-element array, and
return the corresponding time(2) value in seconds since the system epoch
(Midnight, January 1, 1970 GMT on Unix, for example). This value can be
positive or negative, though POSIX only requires support for positive values,
so dates before the system's epoch may not work on all operating systems.
%endif

%package Time-Piece
Summary:        Time objects from localtime and gmtime
License:        (GPL+ or Artistic) and BSD
Epoch:          0
# Really 1.34
Version:        1.340
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_Time_Piece
%endif

%description Time-Piece
The Time::Piece module replaces the standard localtime and gmtime functions
with implementations that return objects.  It does so in a backwards compatible
manner, so that using localtime or gmtime as documented in perlfunc still
behave as expected.

%if %{dual_life} || %{rebuild_from_scratch}
%package threads
Summary:        Perl interpreter-based threads
License:        GPL+ or Artistic
Epoch:          1
Version:        2.22
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_threads
%endif

%description threads
Since Perl 5.8, thread programming has been available using a model called
interpreter threads  which provides a new Perl interpreter for each thread,
and, by default, results in no data or state information being shared between
threads.

(Prior to Perl 5.8, 5005threads was available through the Thread.pm API. This
threading model has been deprecated, and was removed as of Perl 5.10.0.)

As just mentioned, all variables are, by default, thread local. To use shared
variables, you need to also load threads::shared.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package threads-shared
Summary:        Perl extension for sharing data structures between threads
License:        GPL+ or Artistic
Epoch:          0
Version:        1.60
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_threads_shared
%endif

%description threads-shared
By default, variables are private to each thread, and each newly created thread
gets a private copy of each existing variable. This module allows you to share
variables across different threads (and pseudo-forks on Win32). It is used
together with the threads module.  This module supports the sharing of the
following data types only: scalars and scalar refs, arrays and array refs, and
hashes and hash refs.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Unicode-Collate
Summary:        Unicode Collation Algorithm
License:        (GPL+ or Artistic) and Unicode
Epoch:          0
Version:        1.27
Requires:       %perl_compat
Requires:       perl(Unicode::Normalize)
%if %{defined perl_bootstrap}
%gendep_perl_Unicode_Collate
%endif
Conflicts:      perl < 4:5.22.0-347

%description Unicode-Collate
This package is Perl implementation of Unicode Technical Standard #10 (Unicode
Collation Algorithm).
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package Unicode-Normalize
Summary:        Unicode Normalization Forms
License:        GPL+ or Artistic
Epoch:          0
Version:        1.26
Requires:       %perl_compat
# unicore/CombiningClass.pl and unicore/Decomposition.pl from perl, perl is
# auto-detected.
%if %{defined perl_bootstrap}
%gendep_perl_Unicode_Normalize
%endif
Conflicts:      perl < 4:5.22.0-347

%description Unicode-Normalize
This package provides Perl functions that can convert strings into various
Unicode normalization forms as defined in Unicode Standard Annex #15.
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%package version
Summary:        Perl extension for Version Objects
License:        GPL+ or Artistic
# Epoch bump for clean upgrade over old standalone package
Epoch:          6
# real version 0.9924
Version:        0.99.24
Requires:       %perl_compat
%if %{defined perl_bootstrap}
%gendep_perl_version
%endif
BuildArch:      noarch

%description version
Perl extension for Version Objects.
%endif

%prep
%setup -q -n perl-%{perl_version}
%patch1 -p1 -b .0001~
%ifarch %{multilib_64_archs}
%patch3 -p1 -b .0003~
%endif
%patch4 -p1 -b .0004~
%patch5 -p1 -b .0005~
%patch6 -p1 -b .0006~
%patch7 -p1 -b .0007~
%patch8 -p1 -b .0008~
%patch15 -p1 -b .0015~
%patch16 -p1 -b .0016~
%patch26 -p1 -b .0026~
%patch30 -p1 -b .0030~
%patch79 -p1 -b .0079~
%patch200 -p1 -b .0200~
%patch201 -p1 -b .0201~
%patch205 -p1 -b .0205~
%patch206 -p1 -b .0206~
%patch207 -p1 -b .0207~
%patch208 -p1 -b .0208~
%patch209 -p1 -b .0209~

%if !%{defined perl_bootstrap}
# Local patch tracking
perl -x patchlevel.h \
    'Fedora Patch1: Removes date check, Fedora/RHEL specific' \
%ifarch %{multilib_64_archs}
    'Fedora Patch3: support for libdir64' \
%endif
    'Fedora Patch4: use libresolv instead of libbind' \
    'Fedora Patch5: USE_MM_LD_RUN_PATH' \
    'Fedora Patch6: Provide MM::maybe_command independently (bug #1129443)' \
    'Fedora Patch7: Dont run one io test due to random builder failures' \
    'Fedora Patch15: Define SONAME for libperl.so' \
    'Fedora Patch16: Install libperl.so to -Dshrpdir value' \
    'Fedora Patch26: Make *DBM_File desctructors thread-safe (RT#61912)' \
    'Fedora Patch27: Make PadlistNAMES() lvalue again (CPAN RT#101063)' \
    'Fedora Patch30: Replace EU::MakeMaker dependency with EU::MM::Utils in IPC::Cmd (bug #1129443)' \
    'Fedora Patch31: Make File::Glob more resistant against degenerative matching (RT#131211)' \
    'Fedora Patch34: Fix cloning :via handles on thread creation (RT#131221)' \
    'Fedora Patch45: Fix File::Glob rt131211.t test random failures' \
    'Fedora Patch46: Fix t/op/hash.t test random failures' \
    'Fedora Patch47: Parse caret variables with subscripts as normal variables inside ${...} escaping (RT#131664)' \
    'Fedora Patch49: Do not display too many bytes when reporting malformed UTF-8 character' \
    'Fedora Patch51: Fix error message for "our sub foo::bar" (RT#131679)' \
    'Fedora Patch52: Fix executing arybase::_tie_it() in Safe compartement (RT#131588)' \
    'Fedora Patch59: Fix an overflow in the lexer when reading a new line (RT#131793)' \
    'Fedora Patch60: Fix Term::ReadLine not to create spurious &STDERR files (RT#132008)' \
    'Fedora Patch63: Fix a crash when a match for inversely repeated group fails (RT#132017)' \
    'Fedora Patch79: Link XS modules to pthread library to fix linking with -z defs' \
    'Fedora Patch81: Fix a heap use after free when moving a stack (RT#131954)' \
    'Fedora Patch200: Link XS modules to libperl.so with EU::CBuilder on Linux' \
    'Fedora Patch201: Link XS modules to libperl.so with EU::MM on Linux' \
    %{nil}
%endif

#copy the example script
cp -a %{SOURCE5} .

#copy Pod-Html license clarification
cp %{SOURCE6} .

#
# Candidates for doc recoding (need case by case review):
# find . -name "*.pod" -o -name "README*" -o -name "*.pm" | xargs file -i | grep charset= | grep -v '\(us-ascii\|utf-8\)'
recode()
{
    iconv -f "${2:-iso-8859-1}" -t utf-8 < "$1" > "${1}_"
    touch -r "$1" "${1}_"
    mv -f "${1}_" "$1"
}
# TODO iconv fail on this one
##recode README.tw big5
#recode pod/perlebcdic.pod
#recode pod/perlhack.pod
#recode pod/perlhist.pod
#recode pod/perlthrtut.pod
#recode AUTHORS

find . -name \*.orig -exec rm -fv {} \;

# Configure Compress::Zlib to use system zlib
sed -i 's|BUILD_ZLIB      = True|BUILD_ZLIB      = False|
    s|INCLUDE         = ./zlib-src|INCLUDE         = %{_includedir}|
    s|LIB             = ./zlib-src|LIB             = %{_libdir}|' \
    cpan/Compress-Raw-Zlib/config.in

# Ensure that we never accidentally bundle zlib or bzip2
rm -rf cpan/Compress-Raw-Zlib/zlib-src
rm -rf cpan/Compress-Raw-Bzip2/bzip2-src
sed -i '/\(bzip2\|zlib\)-src/d' MANIFEST

%if !%{with gdbm}
# Do not install anything requiring NDBM_File if NDBM is not available.
rm -rf 'cpan/Memoize/Memoize/NDBM_File.pm'
sed -i '\|cpan/Memoize/Memoize/NDBM_File.pm|d' MANIFEST
%endif

%build
echo "RPM Build arch: %{_arch}"

# use "lib", not %%{_lib}, for privlib, sitelib, and vendorlib
# To build production version, we would need -DDEBUGGING=-g

# Perl INC path (perl -V) in search order:
# - /usr/local/share/perl5            -- for CPAN     (site lib)
# - /usr/local/lib[64]/perl5          -- for CPAN     (site arch)
# - /usr/share/perl5/vendor_perl      -- 3rd party    (vendor lib)
# - /usr/lib[64]/perl5/vendor_perl    -- 3rd party    (vendor arch)
# - /usr/share/perl5                  -- Fedora       (priv lib)
# - /usr/lib[64]/perl5                -- Fedora       (arch lib)

%global privlib     %{_prefix}/share/perl5
%global archlib     %{_libdir}/perl5

%global perl_vendorlib  %{privlib}/vendor_perl
%global perl_vendorarch %{archlib}/vendor_perl

BUILD_BZIP2=0
BZIP2_LIB=%{_libdir}
export BUILD_BZIP2 BZIP2_LIB

# ldflags is not used when linking XS modules.
# Only ldflags is used when linking miniperl.
# Only ccflags and ldflags are used for Configure's compiler checks.
# Set optimize=none to prevent from injecting upstream's value.
/bin/sh Configure -des \
        -Doptimize="none" \
        -Dccflags="${CFLAGS}" \
        -Dldflags="${CFLAGS} ${LDFLAGS}" \
        -Dccdlflags="-Wl,--enable-new-dtags ${CFLAGS} ${LDFLAGS}" \
        -Dlddlflags="-shared ${CFLAGS} ${LDFLAGS}" \
        -Dshrpdir="%{_libdir}" \
        -DDEBUGGING=-g \
        -Dversion=%{perl_version} \
        -Dmyhostname=localhost \
        -Dperladmin=root@localhost \
        -Dcc='%{__cc}' \
        -Dcf_by="%{vendor}" \
        -Dprefix=%{_prefix} \
%if %{without perl_enables_groff}
        -Dman1dir="%{_mandir}/man1" \
        -Dman3dir="%{_mandir}/man3" \
%endif
        -Dvendorprefix=%{_prefix} \
        -Dsiteprefix=%{_prefix}/local \
        -Dsitelib="%{_prefix}/local/share/perl5" \
        -Dsitearch="%{_prefix}/local/%{_lib}/perl5" \
        -Dprivlib="%{privlib}" \
        -Dvendorlib="%{perl_vendorlib}" \
        -Darchlib="%{archlib}" \
        -Dvendorarch="%{perl_vendorarch}" \
        -Darchname=%{perl_archname} \
%ifarch %{multilib_64_archs}
        -Dlibpth="/usr/local/lib64 /lib64 %{_prefix}/lib64" \
%endif
%ifarch sparc sparcv9
        -Ud_longdbl \
%endif
        -Duseshrplib \
        -Dusethreads \
        -Duseithreads \
%if %{with perl_enables_systemtap}
        -Dusedtrace='/usr/bin/dtrace' \
%else
        -Uusedtrace \
%endif
        -Duselargefiles \
        -Dd_semctl_semun \
        -Di_db \
%if %{with gdbm}
        -Ui_ndbm \
        -Di_gdbm \
%endif
        -Di_shadow \
        -Di_syslog \
        -Dman3ext=3pm \
        -Duseperlio \
        -Dinstallusrbinperl=n \
        -Ubincompat5005 \
        -Uversiononly \
        -Dpager='/usr/bin/less -isr' \
        -Dd_gethostent_r_proto -Ud_endhostent_r_proto -Ud_sethostent_r_proto \
        -Ud_endprotoent_r_proto -Ud_setprotoent_r_proto \
        -Ud_endservent_r_proto -Ud_setservent_r_proto \
        -Dscriptdir='%{_bindir}' \
        -Dusesitecustomize \
        -Duse64bitint

# -Duseshrplib creates libperl.so, -Ubincompat5005 help create DSO -> libperl.so

BUILD_BZIP2=0
BZIP2_LIB=%{_libdir}
export BUILD_BZIP2 BZIP2_LIB

# Prepapre a symlink from proper DSO name to libperl.so now so that new perl
# can be executed from make.
%global soname libperl.so.%(echo '%{perl_version}' | sed 's/^\\([^.]*\\.[^.]*\\).*/\\1/')
test -L %soname || ln -s libperl.so %soname

%ifarch sparc64 %{arm}
%make_build -j1
%else
%make_build
%endif

%install
%make_install DESTDIR=%{buildroot}

%global build_archlib %{buildroot}%{archlib}
%global build_privlib %{buildroot}%{privlib}
%global build_bindir  %{buildroot}%{_bindir}
%global new_perl LD_PRELOAD="%{build_archlib}/CORE/libperl.so" \\\
    LD_LIBRARY_PATH="%{build_archlib}/CORE" \\\
    PERL5LIB="%{build_archlib}:%{build_privlib}" \\\
    %{build_bindir}/perl

# Make proper DSO names, move libperl to standard path.
mv "%{build_archlib}/CORE/libperl.so" \
    "%{buildroot}%{_libdir}/libperl.so.%{perl_version}"
ln -s "libperl.so.%{perl_version}" "%{buildroot}%{_libdir}/%{soname}"
ln -s "libperl.so.%{perl_version}" "%{buildroot}%{_libdir}/libperl.so"
# XXX: Keep symlink from original location because various code glues
# $archlib/CORE/$libperl to get the DSO.
ln -s "../../libperl.so.%{perl_version}" "%{build_archlib}/CORE/libperl.so"
# XXX: Remove the soname named file from CORE directory that was created as
# a symlink in build section and installed as a regular file by perl build
# system.
rm -f "%{build_archlib}/CORE/%{soname}"

install -p -m 755 utils/pl2pm %{build_bindir}/pl2pm

for i in asm/termios.h syscall.h syslimits.h syslog.h \
    sys/ioctl.h sys/socket.h sys/time.h wait.h
do
    %{new_perl} %{build_bindir}/h2ph -a -d %{build_archlib} $i || true
done

# vendor directories (in this case for third party rpms)
# perl doesn't create the auto subdirectory, but modules put things in it,
# so we need to own it.

# i don't like hardlinks, having symlinks instead:
ln -sf perl5 %{buildroot}%{_bindir}/perl
ln -s perl%{perl_version} %{buildroot}%{_bindir}/perl5

mkdir -p %{buildroot}%{perl_vendorarch}/auto
mkdir -p %{buildroot}%{perl_vendorlib}

#
# perl RPM macros
### FIXME enable once macros.perl is removed from rpm-openmandriva-macros
#
#mkdir -p ${RPM_BUILD_ROOT}%{_rpmconfigdir}/macros.d
#install -p -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_rpmconfigdir}/macros.d/

#
# Core modules removal
#
# Dual-living binaries clashes on debuginfo files between perl and standalone
# packages. Excluding is not enough, we need to remove them. This is
# a work-around for rpmbuild bug #878863.
find %{buildroot} -type f -name '*.bs' -empty -delete
chmod -R u+w %{buildroot}/*

# miniperl? As an interpreter? How odd. Anyway, a symlink does it:
rm %{build_privlib}/ExtUtils/xsubpp
ln -s ../../../bin/xsubpp %{build_privlib}/ExtUtils/

# Don't need the .packlist
rm %{build_archlib}/.packlist

# Do not distribute File::Spec::VMS as it works on VMS only (bug #973713)
# We cannot remove it in %%prep because dist/Cwd/t/Spec.t test needs it.
rm %{build_archlib}/File/Spec/VMS.pm
rm %{buildroot}%{_mandir}/man3/File::Spec::VMS.3*

# Fix some manpages to be UTF-8
mkdir -p %{buildroot}%{_mandir}/man1/
cd %{buildroot}%{_mandir}/man1/
  for i in perl588delta.1 perldelta.1 ; do
    iconv -f MS-ANSI -t UTF-8 $i --output new-$i
    rm $i
    mv new-$i $i
  done
cd -

# for now, remove Bzip2:
# Why? Now is missing Bzip2 files and provides
##find %{buildroot} -name Bzip2 | xargs rm -r
##find %{buildroot} -name '*B*zip2*'| xargs rm

# tests -- FIXME need to validate that this all works as expected
mkdir -p %{buildroot}%{perl5_testdir}/perl-tests

# "core"
tar -cf - t/ | ( cd %{buildroot}%{perl5_testdir}/perl-tests && tar -xf - )

# "dual-lifed"
for dir in `find ext/ -type d -name t -maxdepth 2` ; do

    tar -cf - $dir | ( cd %{buildroot}%{perl5_testdir}/perl-tests/t && tar -xf - )
done

# Normalize shell bangs in tests.
# brp-mangle-shebangs executed by rpm-build chokes on t/TEST.
%{new_perl} -MConfig -i -pn \
    -e 's"\A#!(?:perl|\./perl|/usr/bin/perl|/usr/bin/env perl)\b"$Config{startperl}"' \
    $(find %{buildroot}%{perl5_testdir}/perl-tests -type f)

%if %{with perl_enables_systemtap}
# Systemtap tapset install
mkdir -p %{buildroot}%{tapsetdir}
%ifarch %{multilib_64_archs}
%global libperl_stp libperl%{perl_version}-64.stp
%else
%global libperl_stp libperl%{perl_version}-32.stp
%endif

sed \
  -e "s|LIBRARY_PATH|%{_libdir}/%{soname}|" \
  %{SOURCE4} \
  > %{buildroot}%{tapsetdir}/%{libperl_stp}
%endif

# TODO: Canonicalize test files (rewrite intrerpreter path, fix permissions)
# XXX: We cannot rewrite ./perl before %%check phase. Otherwise the test
# would run against system perl at build-time.
# See __spec_check_pre global macro in macros.perl.
#T_FILES=`find %%{buildroot}%%{perl5_testdir} -type f -name '*.t'`
#%%fix_shbang_line $T_FILES
#%%{__chmod} +x $T_FILES
#%%{_fixperms} %%{buildroot}%%{perl5_testdir}
#
# lib/perl5db.t will fail if Term::ReadLine::Gnu is available
%check
%if %{with test}
%{new_perl} -I/lib regen/lib_cleanup.pl
cd t
%{new_perl} -I../lib porting/customized.t --regen
cd -
%if %{parallel_tests}
    JOBS=$(printf '%%s' "%{?_smp_mflags}" | sed 's/.*-j\([0-9][0-9]*\).*/\1/')
    LC_ALL=C TEST_JOBS=$JOBS make test_harness
%else
    LC_ALL=C make test
%endif
%endif

%files
# We sub-package modules from perl-base subpackage. Main perl package
# is a meta package.

%files base
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%{_bindir}/*
%{archlib}/*
%{privlib}/*


# libs
%exclude %dir %{archlib}
%exclude %dir %{archlib}/auto
%exclude %{archlib}/auto/re
%exclude %dir %{archlib}/CORE
%exclude %{archlib}/CORE/libperl.so
%exclude %{archlib}/re.pm
%exclude %{_libdir}/libperl.so.*
%exclude %dir %{perl_vendorarch}
%exclude %dir %{perl_vendorarch}/auto
%exclude %dir %{privlib}
%exclude %{privlib}/integer.pm
%exclude %{privlib}/strict.pm
%exclude %{privlib}/unicore
%exclude %{privlib}/utf8.pm
%exclude %{privlib}/utf8_heavy.pl
%exclude %{privlib}/warnings.pm
%exclude %{privlib}/XSLoader.pm
%exclude %dir %{perl_vendorlib}
%exclude %{_mandir}/man3/integer.*
%exclude %{_mandir}/man3/re.*
%exclude %{_mandir}/man3/strict.*
%exclude %{_mandir}/man3/utf8.*
%exclude %{_mandir}/man3/warnings.*
%exclude %{_mandir}/man3/XSLoader.*

# devel
%exclude %{_bindir}/h2xs
%exclude %{_mandir}/man1/h2xs*
%exclude %{_bindir}/perlivp
%exclude %{_mandir}/man1/perlivp*
%exclude %{archlib}/CORE/*.h
%exclude %{_libdir}/libperl.so
%exclude %{_mandir}/man1/perlxs*
%if %{with perl_enables_systemtap}
%exclude %dir %{_datadir}/systemtap
%exclude %dir %{_datadir}/systemtap/tapset
%endif

# utils
%exclude %{_bindir}/h2ph
%exclude %{_bindir}/perlbug
%exclude %{_bindir}/perlthanks
%exclude %{_bindir}/pl2pm
%exclude %{_bindir}/splain
%exclude %{privlib}/pod/perlutil.pod
%exclude %{_mandir}/man1/h2ph.*
%exclude %{_mandir}/man1/perlbug.*
%exclude %{_mandir}/man1/perlthanks.*
%exclude %{_mandir}/man1/perlutil.*
%exclude %{_mandir}/man1/pl2pm.*
%exclude %{_mandir}/man1/splain.*

# Archive-Tar
%exclude %{_bindir}/ptar
%exclude %{_bindir}/ptardiff
%exclude %{_bindir}/ptargrep
%exclude %dir %{privlib}/Archive
%exclude %{privlib}/Archive/Tar
%exclude %{privlib}/Archive/Tar.pm
%exclude %{_mandir}/man1/ptar.1*
%exclude %{_mandir}/man1/ptardiff.1*
%exclude %{_mandir}/man1/ptargrep.1*
%exclude %{_mandir}/man3/Archive::Tar*

# Attribute-Handlers
%exclude %{privlib}/Attribute
%exclude %{_mandir}/man3/Attribute::Handlers.*

# autodie
%exclude %{privlib}/autodie/
%exclude %{privlib}/autodie.pm
%exclude %{privlib}/Fatal.pm
%exclude %{_mandir}/man3/autodie.3*
%exclude %{_mandir}/man3/autodie::*
%exclude %{_mandir}/man3/Fatal.3*

# bignum
%exclude %{privlib}/bigint.pm
%exclude %{privlib}/bignum.pm
%exclude %{privlib}/bigrat.pm
%exclude %{privlib}/Math/BigFloat
%exclude %{privlib}/Math/BigInt/Trace.pm
%exclude %{_mandir}/man3/bigint.*
%exclude %{_mandir}/man3/bignum.*
%exclude %{_mandir}/man3/bigrat.*

# Carp
%exclude %{privlib}/Carp
%exclude %{privlib}/Carp.*
%exclude %{_mandir}/man3/Carp.*

# Config-Perl-V
%exclude %{privlib}/Config/Perl
%exclude %{_mandir}/man3/Config::Perl::V.*

# constant
%exclude %{privlib}/constant.pm
%exclude %{_mandir}/man3/constant.3*

# CPAN
%exclude %{_bindir}/cpan
%exclude %dir %{privlib}/App
%exclude %{privlib}/App/Cpan.pm
%exclude %{privlib}/CPAN
%exclude %{privlib}/CPAN.pm
%exclude %{_mandir}/man1/cpan.1*
%exclude %{_mandir}/man3/App::Cpan.*
%exclude %{_mandir}/man3/CPAN.*
%exclude %{_mandir}/man3/CPAN:*

# CPAN-Meta
%exclude %dir %{privlib}/CPAN
%exclude %{privlib}/CPAN/Meta.pm
%exclude %dir %{privlib}/CPAN/Meta
%exclude %{privlib}/CPAN/Meta/Converter.pm
%exclude %{privlib}/CPAN/Meta/Feature.pm
%exclude %dir %{privlib}/CPAN/Meta/History
%exclude %{privlib}/CPAN/Meta/History.pm
%exclude %{privlib}/CPAN/Meta/Merge.pm
%exclude %{privlib}/CPAN/Meta/Prereqs.pm
%exclude %{privlib}/CPAN/Meta/Spec.pm
%exclude %{privlib}/CPAN/Meta/Validator.pm
%exclude %dir %{privlib}/Parse
%exclude %dir %{privlib}/Parse/CPAN
%exclude %{privlib}/Parse/CPAN/Meta.pm
%exclude %{_mandir}/man3/CPAN::Meta*
%exclude %{_mandir}/man3/Parse::CPAN::Meta.3*

# CPAN-Meta-Requirements
%exclude %dir %{privlib}/CPAN
%exclude %dir %{privlib}/CPAN/Meta
%exclude %{privlib}/CPAN/Meta/Requirements.pm
%exclude %{_mandir}/man3/CPAN::Meta::Requirements.3*

# CPAN-Meta-YAML
%exclude %dir %{privlib}/CPAN
%exclude %dir %{privlib}/CPAN/Meta
%exclude %{privlib}/CPAN/Meta/YAML.pm
%exclude %{_mandir}/man3/CPAN::Meta::YAML*

# Compress-Raw-Bzip2
%exclude %dir %{archlib}/Compress
%exclude %dir %{archlib}/Compress/Raw
%exclude %{archlib}/Compress/Raw/Bzip2.pm
%exclude %dir %{archlib}/auto/Compress
%exclude %dir %{archlib}/auto/Compress/Raw
%exclude %{archlib}/auto/Compress/Raw/Bzip2
%exclude %{_mandir}/man3/Compress::Raw::Bzip2*

# Compress-Raw-Zlib
%exclude %dir %{archlib}/Compress
%exclude %dir %{archlib}/Compress/Raw
%exclude %{archlib}/Compress/Raw/Zlib.pm
%exclude %dir %{archlib}/auto/Compress
%exclude %dir %{archlib}/auto/Compress/Raw
%exclude %{archlib}/auto/Compress/Raw/Zlib
%exclude %{_mandir}/man3/Compress::Raw::Zlib*

# Data-Dumper
%exclude %dir %{archlib}/auto/Data
%exclude %dir %{archlib}/auto/Data/Dumper
%exclude %{archlib}/auto/Data/Dumper/Dumper.so
%exclude %dir %{archlib}/Data
%exclude %{archlib}/Data/Dumper.pm
%exclude %{_mandir}/man3/Data::Dumper.3*

# DB_File
%exclude %{archlib}/DB_File.pm
%exclude %dir %{archlib}/auto/DB_File
%exclude %{archlib}/auto/DB_File/DB_File.so
%exclude %{_mandir}/man3/DB_File*

# Devel-Peek
%dir %exclude %{archlib}/Devel
%exclude %{archlib}/Devel/Peek.pm
%dir %exclude %{archlib}/auto/Devel
%exclude %{archlib}/auto/Devel/Peek
%exclude %{_mandir}/man3/Devel::Peek.*

# Devel-PPPort
%exclude %{archlib}/Devel/PPPort.pm
%exclude %{_mandir}/man3/Devel::PPPort.3*

# Devel-SelfStubber
%exclude %dir %{privlib}/Devel
%exclude %{privlib}/Devel/SelfStubber.pm
%exclude %{_mandir}/man3/Devel::SelfStubber.*

# Digest
%exclude %{privlib}/Digest.pm
%exclude %dir %{privlib}/Digest
%exclude %{privlib}/Digest/base.pm
%exclude %{privlib}/Digest/file.pm
%exclude %{_mandir}/man3/Digest.3*
%exclude %{_mandir}/man3/Digest::base.3*
%exclude %{_mandir}/man3/Digest::file.3*

# Digest-MD5
%exclude %dir %{archlib}/Digest
%exclude %{archlib}/Digest/MD5.pm
%exclude %dir %{archlib}/auto/Digest
%exclude %{archlib}/auto/Digest/MD5
%exclude %{_mandir}/man3/Digest::MD5.3*

# Digest-SHA
%exclude %{_bindir}/shasum
%exclude %dir %{archlib}/Digest
%exclude %{archlib}/Digest/SHA.pm
%exclude %dir %{archlib}/auto/Digest
%exclude %{archlib}/auto/Digest/SHA
%exclude %{_mandir}/man1/shasum.1*
%exclude %{_mandir}/man3/Digest::SHA.3*

# Encode
%exclude %{_bindir}/encguess
%exclude %{_bindir}/piconv
%exclude %{archlib}/Encode*
%exclude %{archlib}/auto/Encode*
%exclude %{privlib}/Encode
%exclude %{_mandir}/man1/encguess.1*
%exclude %{_mandir}/man1/piconv.1*
%exclude %{_mandir}/man3/Encode*.3*

# encoding
%exclude %{archlib}/encoding.pm
%exclude %{_mandir}/man3/encoding.3*

# Encode-devel
%exclude %{_bindir}/enc2xs
%exclude %dir %{privlib}/Encode
%exclude %{privlib}/Encode/*.e2x
%exclude %{privlib}/Encode/encode.h
%exclude %{_mandir}/man1/enc2xs.1*

# Env
%exclude %{privlib}/Env.pm
%exclude %{_mandir}/man3/Env.3*

# Errno
%exclude %{archlib}/Errno.pm
%exclude %{_mandir}/man3/Errno.*

# Exporter
%exclude %{privlib}/Exporter*
%exclude %{_mandir}/man3/Exporter*

# experimental
%exclude %{privlib}/experimental*
%exclude %{_mandir}/man3/experimental*

# ExtUtils-CBuilder
%exclude %{privlib}/ExtUtils/CBuilder
%exclude %{privlib}/ExtUtils/CBuilder.pm
%exclude %{_mandir}/man3/ExtUtils::CBuilder*

# ExtUtils-Command
%exclude %{privlib}/ExtUtils/Command.pm
%exclude %{_mandir}/man3/ExtUtils::Command.*

# ExtUtils-Embed
%exclude %{privlib}/ExtUtils/Embed.pm
%exclude %{_mandir}/man3/ExtUtils::Embed*

# ExtUtils-Install
%exclude %{privlib}/ExtUtils/Install.pm
%exclude %{privlib}/ExtUtils/Installed.pm
%exclude %{privlib}/ExtUtils/Packlist.pm
%exclude %{_mandir}/man3/ExtUtils::Install.3*
%exclude %{_mandir}/man3/ExtUtils::Installed.3*
%exclude %{_mandir}/man3/ExtUtils::Packlist.3*

# ExtUtils-Manifest
%exclude %{privlib}/ExtUtils/Manifest.pm
%exclude %{privlib}/ExtUtils/MANIFEST.SKIP
%exclude %{_mandir}/man3/ExtUtils::Manifest.3*

# ExtUtils-MakeMaker
%exclude %{_bindir}/instmodsh
%exclude %{privlib}/ExtUtils/Command
%exclude %{privlib}/ExtUtils/Liblist
%exclude %{privlib}/ExtUtils/Liblist.pm
%exclude %{privlib}/ExtUtils/MakeMaker
%exclude %{privlib}/ExtUtils/MakeMaker.pm
%exclude %{privlib}/ExtUtils/MM.pm
%exclude %{privlib}/ExtUtils/MM_*.pm
%exclude %{privlib}/ExtUtils/MY.pm
%exclude %{privlib}/ExtUtils/Mkbootstrap.pm
%exclude %{privlib}/ExtUtils/Mksymlists.pm
%exclude %{privlib}/ExtUtils/testlib.pm
%exclude %{_mandir}/man1/instmodsh.1*
%exclude %{_mandir}/man3/ExtUtils::Command::MM*
%exclude %{_mandir}/man3/ExtUtils::Liblist.3*
%exclude %{_mandir}/man3/ExtUtils::MM.3*
%exclude %{_mandir}/man3/ExtUtils::MM_*
%exclude %{_mandir}/man3/ExtUtils::MY.3*
%exclude %{_mandir}/man3/ExtUtils::MakeMaker*
%exclude %{_mandir}/man3/ExtUtils::Mkbootstrap.3*
%exclude %{_mandir}/man3/ExtUtils::Mksymlists.3*
%exclude %{_mandir}/man3/ExtUtils::testlib.3*

# ExtUtils-Miniperl
%exclude %{privlib}/ExtUtils/Miniperl.pm
%exclude %{_mandir}/man3/ExtUtils::Miniperl.3*

# ExtUtils-MM-Utils
%exclude %dir %{privlib}/ExtUtils/MM
%exclude %{privlib}/ExtUtils/MM/Utils.pm
%exclude %{_mandir}/man3/ExtUtils::MM::Utils.*

# ExtUtils-ParseXS
%exclude %dir %{privlib}/ExtUtils/ParseXS
%exclude %{privlib}/ExtUtils/ParseXS.pm
%exclude %{privlib}/ExtUtils/ParseXS.pod
%exclude %{privlib}/ExtUtils/ParseXS/Constants.pm
%exclude %{privlib}/ExtUtils/ParseXS/CountLines.pm
%exclude %{privlib}/ExtUtils/ParseXS/Eval.pm
%exclude %{privlib}/ExtUtils/ParseXS/Utilities.pm
%exclude %dir %{privlib}/ExtUtils/Typemaps
%exclude %{privlib}/ExtUtils/Typemaps.pm
%exclude %{privlib}/ExtUtils/Typemaps/Cmd.pm
%exclude %{privlib}/ExtUtils/Typemaps/InputMap.pm
%exclude %{privlib}/ExtUtils/Typemaps/OutputMap.pm
%exclude %{privlib}/ExtUtils/Typemaps/Type.pm
%exclude %{privlib}/ExtUtils/xsubpp
%exclude %{_bindir}/xsubpp
%exclude %{_mandir}/man1/xsubpp*
%exclude %{_mandir}/man3/ExtUtils::ParseXS.3*
%exclude %{_mandir}/man3/ExtUtils::ParseXS::Constants.3*
%exclude %{_mandir}/man3/ExtUtils::ParseXS::Eval.3*
%exclude %{_mandir}/man3/ExtUtils::ParseXS::Utilities.3*
%exclude %{_mandir}/man3/ExtUtils::Typemaps.3*
%exclude %{_mandir}/man3/ExtUtils::Typemaps::Cmd.3*
%exclude %{_mandir}/man3/ExtUtils::Typemaps::InputMap.3*
%exclude %{_mandir}/man3/ExtUtils::Typemaps::OutputMap.3*
%exclude %{_mandir}/man3/ExtUtils::Typemaps::Type.3*

# File-Fetch
%exclude %{privlib}/File/Fetch.pm
%exclude %{_mandir}/man3/File::Fetch.3*

# File-Path
%exclude %{privlib}/File/Path.pm
%exclude %{_mandir}/man3/File::Path.3*

# File-Temp
%exclude %{privlib}/File/Temp.pm
%exclude %{_mandir}/man3/File::Temp.3*

# Filter
%exclude %dir %{archlib}/auto/Filter
%exclude %{archlib}/auto/Filter/Util
%exclude %dir %{archlib}/Filter
%exclude %{archlib}/Filter/Util
%exclude %{privlib}/pod/perlfilter.pod
%exclude %{_mandir}/man1/perlfilter.*
%exclude %{_mandir}/man3/Filter::Util::*

# Filter-Simple
%exclude %dir %{privlib}/Filter
%exclude %{privlib}/Filter/Simple.pm
%exclude %{_mandir}/man3/Filter::Simple.3*

# Getopt-Long
%exclude %{privlib}/Getopt/Long.pm
%exclude %{_mandir}/man3/Getopt::Long.3*

# IO
%exclude %dir %{archlib}/IO
%exclude %{archlib}/IO.pm
%exclude %{archlib}/IO/Dir.pm
%exclude %{archlib}/IO/File.pm
%exclude %{archlib}/IO/Handle.pm
%exclude %{archlib}/IO/Pipe.pm
%exclude %{archlib}/IO/Poll.pm
%exclude %{archlib}/IO/Seekable.pm
%exclude %{archlib}/IO/Select.pm
%exclude %dir %{archlib}/IO/Socket
%exclude %{archlib}/IO/Socket/INET.pm
%exclude %{archlib}/IO/Socket/UNIX.pm
%exclude %{archlib}/IO/Socket.pm
%exclude %dir %{archlib}/auto/IO
%exclude %{archlib}/auto/IO/IO.so
%exclude %{_mandir}/man3/IO.*
%exclude %{_mandir}/man3/IO::Dir.*
%exclude %{_mandir}/man3/IO::File.*
%exclude %{_mandir}/man3/IO::Handle.*
%exclude %{_mandir}/man3/IO::Pipe.*
%exclude %{_mandir}/man3/IO::Poll.*
%exclude %{_mandir}/man3/IO::Seekable.*
%exclude %{_mandir}/man3/IO::Select.*
%exclude %{_mandir}/man3/IO::Socket::INET.*
%exclude %{_mandir}/man3/IO::Socket::UNIX.*
%exclude %{_mandir}/man3/IO::Socket.*

# IO-Compress
%exclude %{_bindir}/zipdetails
%exclude %dir %{privlib}/IO
%exclude %dir %{privlib}/IO/Compress
%exclude %{privlib}/IO/Compress/FAQ.pod
%exclude %{_mandir}/man1/zipdetails.*
%exclude %{_mandir}/man3/IO::Compress::FAQ.*
# Compress-Zlib
%exclude %dir %{privlib}/Compress
%exclude %{privlib}/Compress/Zlib.pm
%exclude %{_mandir}/man3/Compress::Zlib*
# IO-Compress-Base
%exclude %{privlib}/File/GlobMapper.pm
%exclude %dir %{privlib}/IO
%exclude %dir %{privlib}/IO/Compress
%exclude %{privlib}/IO/Compress/Base
%exclude %{privlib}/IO/Compress/Base.pm
%exclude %dir %{privlib}/IO/Uncompress
%exclude %{privlib}/IO/Uncompress/AnyUncompress.pm
%exclude %{privlib}/IO/Uncompress/Base.pm
%exclude %{_mandir}/man3/File::GlobMapper.*
%exclude %{_mandir}/man3/IO::Compress::Base.*
%exclude %{_mandir}/man3/IO::Uncompress::AnyUncompress.*
%exclude %{_mandir}/man3/IO::Uncompress::Base.*
# IO-Compress-Zlib
%exclude %dir %{privlib}/IO
%exclude %dir %{privlib}/IO/Compress
%exclude %{privlib}/IO/Compress/Adapter
%exclude %{privlib}/IO/Compress/Deflate.pm
%exclude %{privlib}/IO/Compress/Gzip
%exclude %{privlib}/IO/Compress/Gzip.pm
%exclude %{privlib}/IO/Compress/RawDeflate.pm
%exclude %{privlib}/IO/Compress/Bzip2.pm
%exclude %{privlib}/IO/Compress/Zip
%exclude %{privlib}/IO/Compress/Zip.pm
%exclude %{privlib}/IO/Compress/Zlib
%exclude %dir %{privlib}/IO/Uncompress
%exclude %{privlib}/IO/Uncompress/Adapter
%exclude %{privlib}/IO/Uncompress/AnyInflate.pm
%exclude %{privlib}/IO/Uncompress/Bunzip2.pm
%exclude %{privlib}/IO/Uncompress/Gunzip.pm
%exclude %{privlib}/IO/Uncompress/Inflate.pm
%exclude %{privlib}/IO/Uncompress/RawInflate.pm
%exclude %{privlib}/IO/Uncompress/Unzip.pm
%exclude %{_mandir}/man3/IO::Compress::Deflate*
%exclude %{_mandir}/man3/IO::Compress::Bzip2*
%exclude %{_mandir}/man3/IO::Compress::Gzip*
%exclude %{_mandir}/man3/IO::Compress::RawDeflate*
%exclude %{_mandir}/man3/IO::Compress::Zip*
%exclude %{_mandir}/man3/IO::Uncompress::AnyInflate*
%exclude %{_mandir}/man3/IO::Uncompress::Bunzip2*
%exclude %{_mandir}/man3/IO::Uncompress::Gunzip*
%exclude %{_mandir}/man3/IO::Uncompress::Inflate*
%exclude %{_mandir}/man3/IO::Uncompress::RawInflate*
%exclude %{_mandir}/man3/IO::Uncompress::Unzip*

# IO-Socket-IP
%exclude %dir %{privlib}/IO
%exclude %dir %{privlib}/IO/Socket
%exclude %{privlib}/IO/Socket/IP.pm
%exclude %{_mandir}/man3/IO::Socket::IP.*

# IO-Zlib
%exclude %dir %{privlib}/IO
%exclude %{privlib}/IO/Zlib.pm
%exclude %{_mandir}/man3/IO::Zlib.*

# HTTP-Tiny
%exclude %dir %{privlib}/HTTP
%exclude %{privlib}/HTTP/Tiny.pm
%exclude %{_mandir}/man3/HTTP::Tiny*

# IPC-Cmd
%exclude %{privlib}/IPC/Cmd.pm
%exclude %{_mandir}/man3/IPC::Cmd.3*

# IPC-SysV
%exclude %{archlib}/auto/IPC
%exclude %{archlib}/IPC/Msg.pm
%exclude %{archlib}/IPC/Semaphore.pm
%exclude %{archlib}/IPC/SharedMem.pm
%exclude %{archlib}/IPC/SysV.pm
%exclude %{_mandir}/man3/IPC::Msg.*
%exclude %{_mandir}/man3/IPC::Semaphore.*
%exclude %{_mandir}/man3/IPC::SharedMem.*
%exclude %{_mandir}/man3/IPC::SysV.*

# JSON-PP
%exclude %{_bindir}/json_pp
%exclude %dir %{privlib}/JSON
%exclude %{privlib}/JSON/PP
%exclude %{privlib}/JSON/PP.pm
%exclude %{_mandir}/man1/json_pp.1*
%exclude %{_mandir}/man3/JSON::PP.3*
%exclude %{_mandir}/man3/JSON::PP::Boolean.3pm*

# libnet
%exclude %{privlib}/Net/Cmd.pm
%exclude %{privlib}/Net/Config.pm
%exclude %{privlib}/Net/Domain.pm
%exclude %{privlib}/Net/FTP
%exclude %{privlib}/Net/FTP.pm
%exclude %{privlib}/Net/libnetFAQ.pod
%exclude %{privlib}/Net/NNTP.pm
%exclude %{privlib}/Net/Netrc.pm
%exclude %{privlib}/Net/POP3.pm
%exclude %{privlib}/Net/SMTP.pm
%exclude %{privlib}/Net/Time.pm
%exclude %{_mandir}/man3/Net::Cmd.*
%exclude %{_mandir}/man3/Net::Config.*
%exclude %{_mandir}/man3/Net::Domain.*
%exclude %{_mandir}/man3/Net::FTP.*
%exclude %{_mandir}/man3/Net::libnetFAQ.*
%exclude %{_mandir}/man3/Net::NNTP.*
%exclude %{_mandir}/man3/Net::Netrc.*
%exclude %{_mandir}/man3/Net::POP3.*
%exclude %{_mandir}/man3/Net::SMTP.*
%exclude %{_mandir}/man3/Net::Time.*

# libnetcfg
%exclude %{_bindir}/libnetcfg
%exclude %{_mandir}/man1/libnetcfg*

# Locale-Maketext
%exclude %dir %{privlib}/Locale
%exclude %dir %{privlib}/Locale/Maketext
%exclude %{privlib}/Locale/Maketext.*
%exclude %{privlib}/Locale/Maketext/Cookbook.*
%exclude %{privlib}/Locale/Maketext/Guts.*
%exclude %{privlib}/Locale/Maketext/GutsLoader.*
%exclude %{privlib}/Locale/Maketext/TPJ13.*
%exclude %{_mandir}/man3/Locale::Maketext.*
%exclude %{_mandir}/man3/Locale::Maketext::Cookbook.*
%exclude %{_mandir}/man3/Locale::Maketext::Guts.*
%exclude %{_mandir}/man3/Locale::Maketext::GutsLoader.*
%exclude %{_mandir}/man3/Locale::Maketext::TPJ13.*

# Locale-Maketext-Simple
%exclude %dir %{privlib}/Locale
%exclude %dir %{privlib}/Locale/Maketext
%exclude %{privlib}/Locale/Maketext/Simple.pm
%exclude %{_mandir}/man3/Locale::Maketext::Simple.*

# Math-BigInt
%exclude %{privlib}/Math/BigFloat.pm
%exclude %{privlib}/Math/BigInt.pm
%exclude %dir %exclude %{privlib}/Math/BigInt
%exclude %{privlib}/Math/BigInt/Calc.pm
%exclude %{privlib}/Math/BigInt/Lib.pm
%exclude %{_mandir}/man3/Math::BigFloat.*
%exclude %{_mandir}/man3/Math::BigInt.*
%exclude %{_mandir}/man3/Math::BigInt::Calc.*
%exclude %{_mandir}/man3/Math::BigInt::Lib.*

# Math-BigInt-FastCalc
%exclude %{archlib}/Math
%exclude %{archlib}/auto/Math
%exclude %{_mandir}/man3/Math::BigInt::FastCalc.*

# Math-BigRat
%exclude %{privlib}/Math/BigRat.pm
%exclude %{_mandir}/man3/Math::BigRat.*

# Math-Complex
%dir %exclude %{privlib}/Math
%exclude %{privlib}/Math/Complex.pm
%exclude %{privlib}/Math/Trig.pm
%exclude %{_mandir}/man3/Math::Complex.*
%exclude %{_mandir}/man3/Math::Trig.*

# Memoize
%exclude %{privlib}/Memoize
%exclude %{privlib}/Memoize.pm
%exclude %{_mandir}/man3/Memoize::*
%exclude %{_mandir}/man3/Memoize.*

# MIME-Base64
%exclude %{archlib}/auto/MIME
%exclude %{archlib}/MIME
%exclude %{_mandir}/man3/MIME::*

# Module-CoreList
%exclude %dir %{privlib}/Module
%exclude %{privlib}/Module/CoreList
%exclude %{privlib}/Module/CoreList.pm
%exclude %{privlib}/Module/CoreList.pod
%exclude %{_mandir}/man3/Module::CoreList*

# Module-CoreList-tools
%exclude %{_bindir}/corelist
%exclude %{_mandir}/man1/corelist*

# Module-Load
%exclude %dir %{privlib}/Module
%exclude %{privlib}/Module/Load.pm
%exclude %{_mandir}/man3/Module::Load.*

# Module-Load-Conditional
%exclude %dir %{privlib}/Module
%exclude %{privlib}/Module/Load
%exclude %{_mandir}/man3/Module::Load::Conditional*

# Module-Loaded
%exclude %dir %{privlib}/Module
%exclude %{privlib}/Module/Loaded.pm
%exclude %{_mandir}/man3/Module::Loaded*

# Module-Metadata
%exclude %dir %{privlib}/Module
%exclude %{privlib}/Module/Metadata.pm
%exclude %{_mandir}/man3/Module::Metadata.3pm*

# Net-Ping
%exclude %{privlib}/Net/Ping.pm
%exclude %{_mandir}/man3/Net::Ping.*

# PathTools
%exclude %{archlib}/Cwd.pm
%exclude %{archlib}/File/Spec*
%exclude %{archlib}/auto/Cwd/
%exclude %{_mandir}/man3/Cwd*
%exclude %{_mandir}/man3/File::Spec*

# Params-Check
%exclude %{privlib}/Params/
%exclude %{_mandir}/man3/Params::Check*

# perlfaq
%exclude %{privlib}/perlfaq.pm
%exclude %{privlib}/pod/perlfaq*
%exclude %{privlib}/pod/perlglossary.pod
%exclude %{_mandir}/man1/perlfaq*
%exclude %{_mandir}/man1/perlglossary.*

# PerlIO-via-QuotedPrint
%exclude %{privlib}/PerlIO
%exclude %{_mandir}/man3/PerlIO::via::QuotedPrint.*

# Perl-OSType
%exclude %dir %{privlib}/Perl
%exclude %{privlib}/Perl/OSType.pm
%exclude %{_mandir}/man3/Perl::OSType.3pm*

# open
%exclude %{privlib}/open.pm
%exclude %{_mandir}/man3/open.3*

# parent
%exclude %{privlib}/parent.pm
%exclude %{_mandir}/man3/parent.3*

# Pod-Checker
%exclude %{_bindir}/podchecker
%exclude %{privlib}/Pod/Checker.pm
%exclude %{_mandir}/man1/podchecker.*
%exclude %{_mandir}/man3/Pod::Checker.*

# Pod-Escapes
%exclude %{privlib}/Pod/Escapes.pm
%exclude %{_mandir}/man3/Pod::Escapes.*

# Pod-Html
%exclude %{_bindir}/pod2html
%exclude %{privlib}/Pod/Html.pm
%exclude %{_mandir}/man1/pod2html.1*
%exclude %{_mandir}/man3/Pod::Html.*

# Pod-Parser
%exclude %{_bindir}/podselect
%exclude %{privlib}/Pod/Find.pm
%exclude %{privlib}/Pod/InputObjects.pm
%exclude %{privlib}/Pod/ParseUtils.pm
%exclude %{privlib}/Pod/Parser.pm
%exclude %{privlib}/Pod/PlainText.pm
%exclude %{privlib}/Pod/Select.pm
%exclude %{_mandir}/man1/podselect.1*
%exclude %{_mandir}/man3/Pod::Find.*
%exclude %{_mandir}/man3/Pod::InputObjects.*
%exclude %{_mandir}/man3/Pod::ParseUtils.*
%exclude %{_mandir}/man3/Pod::Parser.*
%exclude %{_mandir}/man3/Pod::PlainText.*
%exclude %{_mandir}/man3/Pod::Select.*

# Pod-Perldoc
%exclude %{_bindir}/perldoc
%exclude %{privlib}/pod/perldoc.pod
%exclude %{privlib}/Pod/Perldoc.pm
%exclude %{privlib}/Pod/Perldoc/
%exclude %{_mandir}/man1/perldoc.1*
%exclude %{_mandir}/man3/Pod::Perldoc*

# Pod-Usage
%exclude %{_bindir}/pod2usage
%exclude %{privlib}/Pod/Usage.pm
%exclude %{_mandir}/man1/pod2usage.*
%exclude %{_mandir}/man3/Pod::Usage.*

# podlators
%exclude %{_bindir}/pod2man
%exclude %{_bindir}/pod2text
%exclude %{privlib}/pod/perlpodstyle.pod
%exclude %{privlib}/Pod/Man.pm
%exclude %{privlib}/Pod/ParseLink.pm
%exclude %{privlib}/Pod/Text
%exclude %{privlib}/Pod/Text.pm
%exclude %{_mandir}/man1/pod2man.1*
%exclude %{_mandir}/man1/pod2text.1*
%exclude %{_mandir}/man1/perlpodstyle.1*
%exclude %{_mandir}/man3/Pod::Man*
%exclude %{_mandir}/man3/Pod::ParseLink*
%exclude %{_mandir}/man3/Pod::Text*

# Pod-Simple
%exclude %{privlib}/Pod/Simple/
%exclude %{privlib}/Pod/Simple.pm
%exclude %{privlib}/Pod/Simple.pod
%exclude %{_mandir}/man3/Pod::Simple*

# Scalar-List-Utils
%exclude %{archlib}/List/
%exclude %{archlib}/Scalar/
%exclude %{archlib}/Sub/
%exclude %{archlib}/auto/List/
%exclude %{_mandir}/man3/List::Util*
%exclude %{_mandir}/man3/Scalar::Util*
%exclude %{_mandir}/man3/Sub::Util*

# SelfLoader
%exclude %{privlib}/SelfLoader.pm
%exclude %{_mandir}/man3/SelfLoader*

# Storable
%exclude %{archlib}/Storable.pm
%exclude %{archlib}/auto/Storable/
%exclude %{_mandir}/man3/Storable.*

# Sys-Syslog
%exclude %{archlib}/Sys/Syslog.pm
%exclude %{archlib}/auto/Sys/Syslog/
%exclude %{_mandir}/man3/Sys::Syslog.*

# Term-ANSIColor
%exclude %{privlib}/Term/ANSIColor.pm
%exclude %{_mandir}/man3/Term::ANSIColor*

# Term-Cap
%exclude %{privlib}/Term/Cap.pm
%exclude %{_mandir}/man3/Term::Cap.*

# Test
%exclude %{privlib}/Test.pm
%exclude %{_mandir}/man3/Test.*

# Test-Harness
%exclude %{_bindir}/prove
%exclude %dir %{privlib}/App
%exclude %{privlib}/App/Prove*
%exclude %{privlib}/TAP*
%exclude %dir %{privlib}/Test
%exclude %{privlib}/Test/Harness*
%exclude %{_mandir}/man1/prove.1*
%exclude %{_mandir}/man3/App::Prove*
%exclude %{_mandir}/man3/TAP*
%exclude %{_mandir}/man3/Test::Harness*

# Test-Simple
%exclude %{privlib}/ok*
%exclude %dir %{privlib}/Test
%exclude %{privlib}/Test/More*
%exclude %{privlib}/Test/Builder*
%exclude %{privlib}/Test/Tester*
%exclude %{privlib}/Test/Simple*
%exclude %{privlib}/Test/Tutorial*
%exclude %{privlib}/Test/use
%exclude %{privlib}/Test2*
%exclude %{_mandir}/man3/ok*
%exclude %{_mandir}/man3/Test::More*
%exclude %{_mandir}/man3/Test::Builder*
%exclude %{_mandir}/man3/Test::Tester*
%exclude %{_mandir}/man3/Test::Simple*
%exclude %{_mandir}/man3/Test::Tutorial*
%exclude %{_mandir}/man3/Test::use::*
%exclude %{_mandir}/man3/Test2*

# Text-Balanced
%exclude %{privlib}/Text/Balanced.pm
%exclude %{_mandir}/man3/Text::Balanced.*

# Text-ParseWords
%exclude %{privlib}/Text/ParseWords.pm
%exclude %{_mandir}/man3/Text::ParseWords.*

# Text-Tabs+Wrap
%exclude %{privlib}/Text/Tabs.pm
%exclude %{privlib}/Text/Wrap.pm
%exclude %{_mandir}/man3/Text::Tabs.*
%exclude %{_mandir}/man3/Text::Wrap.*

# Thread-Queue
%exclude %{privlib}/Thread/Queue.pm
%exclude %{_mandir}/man3/Thread::Queue.*

# Time-HiRes
%exclude %dir %{archlib}/Time
%exclude %{archlib}/Time/HiRes.pm
%exclude %dir %{archlib}/auto/Time
%exclude %{archlib}/auto/Time/HiRes
%exclude %{_mandir}/man3/Time::HiRes.*

# Time-Local
%exclude %{privlib}/Time/Local.pm
%exclude %{_mandir}/man3/Time::Local.*

# Time-Piece
%exclude %dir %{archlib}/Time
%exclude %{archlib}/Time/Piece.pm
%exclude %{archlib}/Time/Seconds.pm
%exclude %dir %{archlib}/auto/Time
%exclude %{archlib}/auto/Time/Piece
%exclude %{_mandir}/man3/Time::Piece.3*
%exclude %{_mandir}/man3/Time::Seconds.3*

# Socket
%exclude %dir %{archlib}/auto/Socket
%exclude %{archlib}/auto/Socket/Socket.*
%exclude %{archlib}/Socket.pm
%exclude %{_mandir}/man3/Socket.3*

# threads
%dir %exclude %{archlib}/auto/threads
%exclude %{archlib}/auto/threads/threads*
%exclude %{archlib}/threads.pm
%exclude %{_mandir}/man3/threads.3*

# threads-shared
%exclude %{archlib}/auto/threads/shared*
%exclude %dir %{archlib}/threads
%exclude %{archlib}/threads/shared*
%exclude %{_mandir}/man3/threads::shared*

# Unicode-Collate
%dir %exclude %{archlib}/auto/Unicode
%exclude %{archlib}/auto/Unicode/Collate
%dir %exclude %{archlib}/Unicode
%exclude %{archlib}/Unicode/Collate
%exclude %{archlib}/Unicode/Collate.pm
%exclude %{privlib}/Unicode/Collate
%exclude %{_mandir}/man3/Unicode::Collate.*
%exclude %{_mandir}/man3/Unicode::Collate::*

# Unicode-Normalize
%exclude %{archlib}/auto/Unicode/Normalize
%exclude %{archlib}/Unicode/Normalize.pm
%exclude %{_mandir}/man3/Unicode::Normalize.*

# version
%exclude %{privlib}/version.pm
%exclude %{privlib}/version.pod
%exclude %{privlib}/version/
%exclude %{_mandir}/man3/version.3*
%exclude %{_mandir}/man3/version::Internals.3*

%libpackage perl 5

%files libs
%license Artistic Copying
%doc AUTHORS README Changes
%dir %{archlib}
%dir %{archlib}/auto
%{archlib}/auto/re
%dir %{archlib}/CORE
%{archlib}/CORE/libperl.so
%{archlib}/re.pm
%dir %{perl_vendorarch}
%dir %{perl_vendorarch}/auto
%dir %{privlib}
%{privlib}/integer.pm
%{privlib}/strict.pm
%{privlib}/unicore
%{privlib}/utf8.pm
%{privlib}/utf8_heavy.pl
%{privlib}/warnings.pm
%{privlib}/XSLoader.pm
%dir %{perl_vendorlib}
%{_mandir}/man3/integer.*
%{_mandir}/man3/re.*
%{_mandir}/man3/strict.*
%{_mandir}/man3/utf8.*
%{_mandir}/man3/warnings.*
%{_mandir}/man3/XSLoader.*

%files devel
%{_bindir}/h2xs
%{_mandir}/man1/h2xs*
%{_bindir}/perlivp
%{_mandir}/man1/perlivp*
%{archlib}/CORE/*.h
%{_libdir}/libperl.so
%{_mandir}/man1/perlxs*
%if %{with perl_enables_systemtap}
%{tapsetdir}/%{libperl_stp}
%doc perl-example.stp
%endif

### FIXME enable once macros.perl is removed from rpm-openmandriva-macros
#files macros
#{_rpmconfigdir}/macros.d/macros.perl

%files tests
%{perl5_testdir}/

%files utils
%{_bindir}/h2ph
%{_bindir}/perlbug
%{_bindir}/perlthanks
%{_bindir}/pl2pm
%{_bindir}/splain
%dir %{privlib}/pod
%{privlib}/pod/perlutil.pod
%{_mandir}/man1/h2ph.*
%{_mandir}/man1/perlbug.*
%{_mandir}/man1/perlthanks.*
%{_mandir}/man1/perlutil.*
%{_mandir}/man1/pl2pm.*
%{_mandir}/man1/splain.*

%if %{dual_life} || %{rebuild_from_scratch}
%files Archive-Tar
%{_bindir}/ptar
%{_bindir}/ptardiff
%{_bindir}/ptargrep
%dir %{privlib}/Archive
%{privlib}/Archive/Tar 
%{privlib}/Archive/Tar.pm
%{_mandir}/man1/ptar.1*
%{_mandir}/man1/ptardiff.1*
%{_mandir}/man1/ptargrep.1*
%{_mandir}/man3/Archive::Tar* 
%endif

%files Attribute-Handlers
%{privlib}/Attribute
%{_mandir}/man3/Attribute::Handlers.*

%if %{dual_life} || %{rebuild_from_scratch}
%files autodie
%{privlib}/autodie/
%{privlib}/autodie.pm
%{privlib}/Fatal.pm
%{_mandir}/man3/autodie.3*
%{_mandir}/man3/autodie::*
%{_mandir}/man3/Fatal.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files bignum
%{privlib}/bigint.pm
%{privlib}/bignum.pm
%{privlib}/bigrat.pm
%dir %{privlib}/Math
%{privlib}/Math/BigFloat
%dir %{privlib}/Math/BigInt
%{privlib}/Math/BigInt/Trace.pm
%{_mandir}/man3/bigint.*
%{_mandir}/man3/bignum.*
%{_mandir}/man3/bigrat.*

%files Carp
%{privlib}/Carp
%{privlib}/Carp.*
%{_mandir}/man3/Carp.*

%files Compress-Raw-Bzip2
%dir %{archlib}/Compress
%dir %{archlib}/Compress/Raw
%{archlib}/Compress/Raw/Bzip2.pm
%dir %{archlib}/auto/Compress
%dir %{archlib}/auto/Compress/Raw
%{archlib}/auto/Compress/Raw/Bzip2
%{_mandir}/man3/Compress::Raw::Bzip2*

%files Compress-Raw-Zlib
%dir %{archlib}/Compress
%dir %{archlib}/Compress/Raw
%{archlib}/Compress/Raw/Zlib.pm
%dir %{archlib}/auto/Compress
%dir %{archlib}/auto/Compress/Raw
%{archlib}/auto/Compress/Raw/Zlib
%{_mandir}/man3/Compress::Raw::Zlib*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Config-Perl-V
%dir %{privlib}/Config
%{privlib}/Config/Perl
%{_mandir}/man3/Config::Perl::V.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files constant
%{privlib}/constant.pm
%{_mandir}/man3/constant.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files CPAN
%{_bindir}/cpan
%dir %{privlib}/App
%{privlib}/App/Cpan.pm
%{privlib}/CPAN
%{privlib}/CPAN.pm
%{_mandir}/man1/cpan.1*
%{_mandir}/man3/App::Cpan.*
%{_mandir}/man3/CPAN.*
%{_mandir}/man3/CPAN:*
%exclude %{privlib}/CPAN/Meta/
%exclude %{privlib}/CPAN/Meta.pm
%exclude %{_mandir}/man3/CPAN::Meta*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files CPAN-Meta
%dir %{privlib}/CPAN/Meta
%{privlib}/CPAN/Meta.pm
%{privlib}/CPAN/Meta/Converter.pm
%{privlib}/CPAN/Meta/Feature.pm
%dir %{privlib}/CPAN/Meta/History
%{privlib}/CPAN/Meta/History.pm
%{privlib}/CPAN/Meta/Merge.pm
%{privlib}/CPAN/Meta/Prereqs.pm
%{privlib}/CPAN/Meta/Spec.pm
%{privlib}/CPAN/Meta/Validator.pm
%dir %{privlib}/Parse/
%dir %{privlib}/Parse/CPAN/
%{privlib}/Parse/CPAN/Meta.pm
%{_mandir}/man3/CPAN::Meta*
%{_mandir}/man3/Parse::CPAN::Meta.3*
%exclude %{_mandir}/man3/CPAN::Meta::YAML*
%exclude %{_mandir}/man3/CPAN::Meta::Requirements*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files CPAN-Meta-Requirements
%dir %{privlib}/CPAN
%dir %{privlib}/CPAN/Meta
%{privlib}/CPAN/Meta/Requirements.pm
%{_mandir}/man3/CPAN::Meta::Requirements.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files CPAN-Meta-YAML
%dir %{privlib}/CPAN
%dir %{privlib}/CPAN/Meta
%{privlib}/CPAN/Meta/YAML.pm
%{_mandir}/man3/CPAN::Meta::YAML*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Data-Dumper
%dir %{archlib}/auto/Data
%dir %{archlib}/auto/Data/Dumper
%{archlib}/auto/Data/Dumper/Dumper.so
%dir %{archlib}/Data
%{archlib}/Data/Dumper.pm
%{_mandir}/man3/Data::Dumper.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files DB_File
%{archlib}/DB_File.pm
%dir %{archlib}/auto/DB_File
%{archlib}/auto/DB_File/DB_File.so
%{_mandir}/man3/DB_File*
%endif

%files Devel-Peek
%dir %{archlib}/Devel
%{archlib}/Devel/Peek.pm
%dir %{archlib}/auto/Devel
%{archlib}/auto/Devel/Peek
%{_mandir}/man3/Devel::Peek.*

%if %{dual_life} || %{rebuild_from_scratch}
%files Devel-PPPort
%dir %{archlib}/Devel
%{archlib}/Devel/PPPort.pm
%{_mandir}/man3/Devel::PPPort.3*
%endif

%files Devel-SelfStubber
%dir %{privlib}/Devel
%{privlib}/Devel/SelfStubber.pm
%{_mandir}/man3/Devel::SelfStubber.*

%if %{dual_life} || %{rebuild_from_scratch}
%files Digest
%{privlib}/Digest.pm
%dir %{privlib}/Digest
%{privlib}/Digest/base.pm
%{privlib}/Digest/file.pm
%{_mandir}/man3/Digest.3*
%{_mandir}/man3/Digest::base.3*
%{_mandir}/man3/Digest::file.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Digest-MD5
%dir %{archlib}/Digest
%{archlib}/Digest/MD5.pm
%dir %{archlib}/auto/Digest
%{archlib}/auto/Digest/MD5
%{_mandir}/man3/Digest::MD5.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Digest-SHA
%{_bindir}/shasum
%dir %{archlib}/Digest
%{archlib}/Digest/SHA.pm
%dir %{archlib}/auto/Digest
%{archlib}/auto/Digest/SHA
%{_mandir}/man1/shasum.1*
%{_mandir}/man3/Digest::SHA.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Encode
%{_bindir}/encguess
%{_bindir}/piconv
%{archlib}/Encode*
%{archlib}/auto/Encode*
%{privlib}/Encode
%exclude %{privlib}/Encode/*.e2x
%exclude %{privlib}/Encode/encode.h
%{_mandir}/man1/encguess.1*
%{_mandir}/man1/piconv.1*
%{_mandir}/man3/Encode*.3*

%files encoding
%{archlib}/encoding.pm
%{_mandir}/man3/encoding.3*

%files Encode-devel
%{_bindir}/enc2xs
%dir %{privlib}/Encode
%{privlib}/Encode/*.e2x
%{privlib}/Encode/encode.h
%{_mandir}/man1/enc2xs.1*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Env
%{privlib}/Env.pm
%{_mandir}/man3/Env.3*
%endif

%files Errno
%{archlib}/Errno.pm
%{_mandir}/man3/Errno.*

%if %{dual_life} || %{rebuild_from_scratch}
%files Exporter
%{privlib}/Exporter*
%{_mandir}/man3/Exporter*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files experimental
%{privlib}/experimental*
%{_mandir}/man3/experimental*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files ExtUtils-CBuilder
%dir %{privlib}/ExtUtils
%{privlib}/ExtUtils/CBuilder
%{privlib}/ExtUtils/CBuilder.pm
%{_mandir}/man3/ExtUtils::CBuilder*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files ExtUtils-Command
%dir %{privlib}/ExtUtils
%{privlib}/ExtUtils/Command.pm
%{_mandir}/man3/ExtUtils::Command.*
%endif

%files ExtUtils-Embed
%dir %{privlib}/ExtUtils
%{privlib}/ExtUtils/Embed.pm
%{_mandir}/man3/ExtUtils::Embed*

%if %{dual_life} || %{rebuild_from_scratch}
%files ExtUtils-Install
%dir %{privlib}/ExtUtils
%{privlib}/ExtUtils/Install.pm
%{privlib}/ExtUtils/Installed.pm
%{privlib}/ExtUtils/Packlist.pm
%{_mandir}/man3/ExtUtils::Install.3*
%{_mandir}/man3/ExtUtils::Installed.3*
%{_mandir}/man3/ExtUtils::Packlist.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files ExtUtils-Manifest
%dir %{privlib}/ExtUtils
%{privlib}/ExtUtils/Manifest.pm
%{privlib}/ExtUtils/MANIFEST.SKIP
%{_mandir}/man3/ExtUtils::Manifest.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files ExtUtils-MakeMaker
%{_bindir}/instmodsh
%dir %{privlib}/ExtUtils
%{privlib}/ExtUtils/Command/
%{privlib}/ExtUtils/Liblist
%{privlib}/ExtUtils/Liblist.pm
%{privlib}/ExtUtils/MakeMaker
%{privlib}/ExtUtils/MakeMaker.pm
%{privlib}/ExtUtils/MM.pm
%{privlib}/ExtUtils/MM_*.pm
%{privlib}/ExtUtils/MY.pm
%{privlib}/ExtUtils/Mkbootstrap.pm
%{privlib}/ExtUtils/Mksymlists.pm
%{privlib}/ExtUtils/testlib.pm
%{_mandir}/man1/instmodsh.1*
%{_mandir}/man3/ExtUtils::Command::MM*
%{_mandir}/man3/ExtUtils::Liblist.3*
%{_mandir}/man3/ExtUtils::MM.3*
%{_mandir}/man3/ExtUtils::MM_*
%{_mandir}/man3/ExtUtils::MY.3*
%{_mandir}/man3/ExtUtils::MakeMaker*
%{_mandir}/man3/ExtUtils::Mkbootstrap.3*
%{_mandir}/man3/ExtUtils::Mksymlists.3*
%{_mandir}/man3/ExtUtils::testlib.3*
%endif

%files ExtUtils-Miniperl
%dir %{privlib}/ExtUtils
%{privlib}/ExtUtils/Miniperl.pm
%{_mandir}/man3/ExtUtils::Miniperl.3*

%if %{dual_life} || %{rebuild_from_scratch}
%files ExtUtils-MM-Utils
%dir %{privlib}/ExtUtils
%dir %{privlib}/ExtUtils/MM
%{privlib}/ExtUtils/MM/Utils.pm
%{_mandir}/man3/ExtUtils::MM::Utils.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files ExtUtils-ParseXS
%dir %{privlib}/ExtUtils
%dir %{privlib}/ExtUtils/ParseXS
%{privlib}/ExtUtils/ParseXS.pm
%{privlib}/ExtUtils/ParseXS.pod
%{privlib}/ExtUtils/ParseXS/Constants.pm
%{privlib}/ExtUtils/ParseXS/CountLines.pm
%{privlib}/ExtUtils/ParseXS/Eval.pm
%{privlib}/ExtUtils/ParseXS/Utilities.pm
%dir %{privlib}/ExtUtils/Typemaps
%{privlib}/ExtUtils/Typemaps.pm
%{privlib}/ExtUtils/Typemaps/Cmd.pm
%{privlib}/ExtUtils/Typemaps/InputMap.pm
%{privlib}/ExtUtils/Typemaps/OutputMap.pm
%{privlib}/ExtUtils/Typemaps/Type.pm
%{privlib}/ExtUtils/xsubpp
%{_bindir}/xsubpp
%{_mandir}/man1/xsubpp*
%{_mandir}/man3/ExtUtils::ParseXS.3*
%{_mandir}/man3/ExtUtils::ParseXS::Constants.3*
%{_mandir}/man3/ExtUtils::ParseXS::Eval.3*
%{_mandir}/man3/ExtUtils::ParseXS::Utilities.3*
%{_mandir}/man3/ExtUtils::Typemaps.3*
%{_mandir}/man3/ExtUtils::Typemaps::Cmd.3*
%{_mandir}/man3/ExtUtils::Typemaps::InputMap.3*
%{_mandir}/man3/ExtUtils::Typemaps::OutputMap.3*
%{_mandir}/man3/ExtUtils::Typemaps::Type.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files File-Fetch
%dir %{privlib}/File
%{privlib}/File/Fetch.pm
%{_mandir}/man3/File::Fetch.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files File-Path
%dir %{privlib}/File
%{privlib}/File/Path.pm
%{_mandir}/man3/File::Path.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files File-Temp
%dir %{privlib}/File
%{privlib}/File/Temp.pm
%{_mandir}/man3/File::Temp.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Filter
%dir %{archlib}/auto/Filter
%{archlib}/auto/Filter/Util
%dir %{archlib}/Filter
%{archlib}/Filter/Util
%{privlib}/pod/perlfilter.pod
%{_mandir}/man1/perlfilter.*
%{_mandir}/man3/Filter::Util::*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Filter-Simple
%dir %{privlib}/Filter
%{privlib}/Filter/Simple.pm
%{_mandir}/man3/Filter::Simple.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Getopt-Long
%dir %{privlib}/Getopt
%{privlib}/Getopt/Long.pm
%{_mandir}/man3/Getopt::Long.3*
%endif

%files IO
%dir %{archlib}/IO
%{archlib}/IO.pm
%{archlib}/IO/Dir.pm
%{archlib}/IO/File.pm
%{archlib}/IO/Handle.pm
%{archlib}/IO/Pipe.pm
%{archlib}/IO/Poll.pm
%{archlib}/IO/Seekable.pm
%{archlib}/IO/Select.pm
%dir %{archlib}/IO/Socket
%{archlib}/IO/Socket/INET.pm
%{archlib}/IO/Socket/UNIX.pm
%{archlib}/IO/Socket.pm
%dir %{archlib}/auto/IO
%{archlib}/auto/IO/IO.so
%{_mandir}/man3/IO.*
%{_mandir}/man3/IO::Dir.*
%{_mandir}/man3/IO::File.*
%{_mandir}/man3/IO::Handle.*
%{_mandir}/man3/IO::Pipe.*
%{_mandir}/man3/IO::Poll.*
%{_mandir}/man3/IO::Seekable.*
%{_mandir}/man3/IO::Select.*
%{_mandir}/man3/IO::Socket::INET.*
%{_mandir}/man3/IO::Socket::UNIX.*
%{_mandir}/man3/IO::Socket.*

%if %{dual_life} || %{rebuild_from_scratch}
%files IO-Compress
# IO-Compress
%{_bindir}/zipdetails
%dir %{privlib}/IO
%dir %{privlib}/IO/Compress
%{privlib}/IO/Compress/FAQ.pod
%{_mandir}/man1/zipdetails.*
%{_mandir}/man3/IO::Compress::FAQ.*
# Compress-Zlib
%dir %{privlib}/Compress
%{privlib}/Compress/Zlib.pm
%{_mandir}/man3/Compress::Zlib*
#IO-Compress-Base
%dir %{privlib}/File
%{privlib}/File/GlobMapper.pm
%{privlib}/IO/Compress/Base
%{privlib}/IO/Compress/Base.pm
%dir %{privlib}/IO/Uncompress
%{privlib}/IO/Uncompress/AnyUncompress.pm
%{privlib}/IO/Uncompress/Base.pm
%{_mandir}/man3/File::GlobMapper.*
%{_mandir}/man3/IO::Compress::Base.*
%{_mandir}/man3/IO::Uncompress::AnyUncompress.*
%{_mandir}/man3/IO::Uncompress::Base.*
# IO-Compress-Zlib
%{privlib}/IO/Compress/Adapter
%{privlib}/IO/Compress/Deflate.pm
%{privlib}/IO/Compress/Bzip2.pm
%{privlib}/IO/Compress/Gzip
%{privlib}/IO/Compress/Gzip.pm
%{privlib}/IO/Compress/RawDeflate.pm
%{privlib}/IO/Compress/Zip
%{privlib}/IO/Compress/Zip.pm
%{privlib}/IO/Compress/Zlib
%{privlib}/IO/Uncompress/Adapter/
%{privlib}/IO/Uncompress/AnyInflate.pm
%{privlib}/IO/Uncompress/Bunzip2.pm
%{privlib}/IO/Uncompress/Gunzip.pm
%{privlib}/IO/Uncompress/Inflate.pm
%{privlib}/IO/Uncompress/RawInflate.pm
%{privlib}/IO/Uncompress/Unzip.pm
%{_mandir}/man3/IO::Compress::Deflate*
%{_mandir}/man3/IO::Compress::Gzip*
%{_mandir}/man3/IO::Compress::Bzip2*
%{_mandir}/man3/IO::Compress::RawDeflate*
%{_mandir}/man3/IO::Compress::Zip*
%{_mandir}/man3/IO::Uncompress::AnyInflate*
%{_mandir}/man3/IO::Uncompress::Bunzip2*
%{_mandir}/man3/IO::Uncompress::Gunzip*
%{_mandir}/man3/IO::Uncompress::Inflate*
%{_mandir}/man3/IO::Uncompress::RawInflate*
%{_mandir}/man3/IO::Uncompress::Unzip*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files IO-Socket-IP
%dir %{privlib}/IO
%dir %{privlib}/IO/Socket
%{privlib}/IO/Socket/IP.pm
%{_mandir}/man3/IO::Socket::IP.*
%endif

%files IO-Zlib
%dir %{privlib}/IO
%{privlib}/IO/Zlib.pm
%{_mandir}/man3/IO::Zlib.*

%if %{dual_life} || %{rebuild_from_scratch}
%files HTTP-Tiny
%dir %{privlib}/HTTP
%{privlib}/HTTP/Tiny.pm
%{_mandir}/man3/HTTP::Tiny*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files IPC-Cmd
%dir %{privlib}/IPC
%{privlib}/IPC/Cmd.pm
%{_mandir}/man3/IPC::Cmd.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files IPC-SysV
%{archlib}/auto/IPC
%dir %{archlib}/IPC
%{archlib}/IPC/Msg.pm
%{archlib}/IPC/Semaphore.pm
%{archlib}/IPC/SharedMem.pm
%{archlib}/IPC/SysV.pm
%{_mandir}/man3/IPC::Msg.*
%{_mandir}/man3/IPC::Semaphore.*
%{_mandir}/man3/IPC::SharedMem.*
%{_mandir}/man3/IPC::SysV.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files JSON-PP
%{_bindir}/json_pp
%dir %{privlib}/JSON
%{privlib}/JSON/PP
%{privlib}/JSON/PP.pm
%{_mandir}/man1/json_pp.1*
%{_mandir}/man3/JSON::PP.3*
%{_mandir}/man3/JSON::PP::Boolean.3pm*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files libnet
%dir %{privlib}/Net
%{privlib}/Net/Cmd.pm
%{privlib}/Net/Config.pm
%{privlib}/Net/Domain.pm
%{privlib}/Net/FTP
%{privlib}/Net/FTP.pm
%{privlib}/Net/libnetFAQ.pod
%{privlib}/Net/NNTP.pm
%{privlib}/Net/Netrc.pm
%{privlib}/Net/POP3.pm
%{privlib}/Net/SMTP.pm
%{privlib}/Net/Time.pm
%{_mandir}/man3/Net::Cmd.*
%{_mandir}/man3/Net::Config.*
%{_mandir}/man3/Net::Domain.*
%{_mandir}/man3/Net::FTP.*
%{_mandir}/man3/Net::libnetFAQ.*
%{_mandir}/man3/Net::NNTP.*
%{_mandir}/man3/Net::Netrc.*
%{_mandir}/man3/Net::POP3.*
%{_mandir}/man3/Net::SMTP.*
%{_mandir}/man3/Net::Time.*
%endif

%files libnetcfg
%{_bindir}/libnetcfg
%{_mandir}/man1/libnetcfg*

%if %{dual_life} || %{rebuild_from_scratch}
%files Locale-Maketext
%dir %{privlib}/Locale
%dir %{privlib}/Locale/Maketext
%{privlib}/Locale/Maketext.*
%{privlib}/Locale/Maketext/Cookbook.*
%{privlib}/Locale/Maketext/Guts.*
%{privlib}/Locale/Maketext/GutsLoader.*
%{privlib}/Locale/Maketext/TPJ13.*
%{_mandir}/man3/Locale::Maketext.*
%{_mandir}/man3/Locale::Maketext::Cookbook.*
%{_mandir}/man3/Locale::Maketext::Guts.*
%{_mandir}/man3/Locale::Maketext::GutsLoader.*
%{_mandir}/man3/Locale::Maketext::TPJ13.*
%endif

%files Locale-Maketext-Simple
%dir %{privlib}/Locale
%dir %{privlib}/Locale/Maketext
%{privlib}/Locale/Maketext/Simple.pm
%{_mandir}/man3/Locale::Maketext::Simple.*

%if %{dual_life} || %{rebuild_from_scratch}
%files Math-BigInt
%dir %{privlib}/Math
%{privlib}/Math/BigFloat.pm
%{privlib}/Math/BigInt.pm
%dir %{privlib}/Math/BigInt
%{privlib}/Math/BigInt/Calc.pm
%{privlib}/Math/BigInt/Lib.pm
%{_mandir}/man3/Math::BigFloat.*
%{_mandir}/man3/Math::BigInt.*
%{_mandir}/man3/Math::BigInt::Calc.*
%{_mandir}/man3/Math::BigInt::Lib.*

%files Math-BigInt-FastCalc
%{archlib}/Math
%{archlib}/auto/Math
%{_mandir}/man3/Math::BigInt::FastCalc.*

%files Math-BigRat
%dir %{privlib}/Math
%{privlib}/Math/BigRat.pm
%{_mandir}/man3/Math::BigRat.*
%endif

%files Math-Complex
%dir %{privlib}/Math
%{privlib}/Math/Complex.pm
%{privlib}/Math/Trig.pm
%{_mandir}/man3/Math::Complex.*
%{_mandir}/man3/Math::Trig.*

%files Memoize
%{privlib}/Memoize
%{privlib}/Memoize.pm
%{_mandir}/man3/Memoize::*
%{_mandir}/man3/Memoize.*

%if %{dual_life} || %{rebuild_from_scratch}
%files MIME-Base64
%{archlib}/auto/MIME
%{archlib}/MIME
%{_mandir}/man3/MIME::*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Module-CoreList
%dir %{privlib}/Module
%{privlib}/Module/CoreList
%{privlib}/Module/CoreList.pm
%{privlib}/Module/CoreList.pod
%{_mandir}/man3/Module::CoreList*

%files Module-CoreList-tools
%{_bindir}/corelist
%{_mandir}/man1/corelist*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Module-Load
%dir %{privlib}/Module
%{privlib}/Module/Load.pm
%{_mandir}/man3/Module::Load.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Module-Load-Conditional
%dir %{privlib}/Module
%{privlib}/Module/Load
%{_mandir}/man3/Module::Load::Conditional* 
%endif

%files Module-Loaded
%dir %{privlib}/Module
%{privlib}/Module/Loaded.pm
%{_mandir}/man3/Module::Loaded*

%if %{dual_life} || %{rebuild_from_scratch}
%files Module-Metadata
%dir %{privlib}/Module
%{privlib}/Module/Metadata.pm
%{_mandir}/man3/Module::Metadata.3pm*
%endif

%files Net-Ping
%dir %{privlib}/Net
%{privlib}/Net/Ping.pm
%{_mandir}/man3/Net::Ping.*

%if %{dual_life} || %{rebuild_from_scratch}
%files PathTools
%{archlib}/Cwd.pm
%dir %{archlib}/File
%{archlib}/File/Spec*
%{archlib}/auto/Cwd
%{_mandir}/man3/Cwd*
%{_mandir}/man3/File::Spec*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Params-Check
%{privlib}/Params/
%{_mandir}/man3/Params::Check*
%endif

%files open
%{privlib}/open.pm
%{_mandir}/man3/open.3*

%if %{dual_life} || %{rebuild_from_scratch}
%files parent
%{privlib}/parent.pm
%{_mandir}/man3/parent.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files perlfaq
%{privlib}/perlfaq.pm
%dir %{privlib}/pod
%{privlib}/pod/perlfaq*
%{privlib}/pod/perlglossary.pod
%{_mandir}/man1/perlfaq*
%{_mandir}/man1/perlglossary.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files PerlIO-via-QuotedPrint
%{privlib}/PerlIO
%{_mandir}/man3/PerlIO::via::QuotedPrint.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Perl-OSType
%dir %{privlib}/Perl
%{privlib}/Perl/OSType.pm
%{_mandir}/man3/Perl::OSType.3pm*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Pod-Checker
%{_bindir}/podchecker
%dir %{privlib}/Pod
%{privlib}/Pod/Checker.pm
%{_mandir}/man1/podchecker.*
%{_mandir}/man3/Pod::Checker.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Pod-Escapes
%dir %{privlib}/Pod
%{privlib}/Pod/Escapes.pm
%{_mandir}/man3/Pod::Escapes.*
%endif

%files Pod-Html
%license Pod-Html-license-clarification
%dir %{privlib}/Pod
%{_bindir}/pod2html
%{privlib}/Pod/Html.pm
%{_mandir}/man1/pod2html.1*
%{_mandir}/man3/Pod::Html.*

%if %{dual_life} || %{rebuild_from_scratch}
%files Pod-Parser
%{_bindir}/podselect
%dir %{privlib}/Pod
%{privlib}/Pod/Find.pm
%{privlib}/Pod/InputObjects.pm
%{privlib}/Pod/ParseUtils.pm
%{privlib}/Pod/Parser.pm
%{privlib}/Pod/PlainText.pm
%{privlib}/Pod/Select.pm
%{_mandir}/man1/podselect.1*
%{_mandir}/man3/Pod::Find.*
%{_mandir}/man3/Pod::InputObjects.*
%{_mandir}/man3/Pod::ParseUtils.*
%{_mandir}/man3/Pod::Parser.*
%{_mandir}/man3/Pod::PlainText.*
%{_mandir}/man3/Pod::Select.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Pod-Perldoc
%{_bindir}/perldoc
%{privlib}/pod/perldoc.pod
%dir %{privlib}/Pod
%{privlib}/Pod/Perldoc
%{privlib}/Pod/Perldoc.pm
%{_mandir}/man1/perldoc.1*
%{_mandir}/man3/Pod::Perldoc*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Pod-Usage
%{_bindir}/pod2usage
%dir %{privlib}/Pod
%{privlib}/Pod/Usage.pm
%{_mandir}/man1/pod2usage.*
%{_mandir}/man3/Pod::Usage.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files podlators
%{_bindir}/pod2man
%{_bindir}/pod2text
%{privlib}/pod/perlpodstyle.pod
%dir %{privlib}/Pod
%{privlib}/Pod/Man.pm
%{privlib}/Pod/ParseLink.pm
%{privlib}/Pod/Text
%{privlib}/Pod/Text.pm
%{_mandir}/man1/pod2man.1*
%{_mandir}/man1/pod2text.1*
%{_mandir}/man1/perlpodstyle.1*
%{_mandir}/man3/Pod::Man*
%{_mandir}/man3/Pod::ParseLink*
%{_mandir}/man3/Pod::Text*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Pod-Simple
%dir %{privlib}/Pod
%{privlib}/Pod/Simple
%{privlib}/Pod/Simple.pm
%{privlib}/Pod/Simple.pod
%{_mandir}/man3/Pod::Simple*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Scalar-List-Utils
%{archlib}/List
%{archlib}/Scalar
%{archlib}/Sub
%{archlib}/auto/List
%{_mandir}/man3/List::Util*
%{_mandir}/man3/Scalar::Util*
%{_mandir}/man3/Sub::Util*
%endif

%files SelfLoader
%{privlib}/SelfLoader.pm
%{_mandir}/man3/SelfLoader*

%if %{dual_life} || %{rebuild_from_scratch}
%files Sys-Syslog
%dir %{archlib}/Sys
%{archlib}/Sys/Syslog.pm
%dir %{archlib}/auto/Sys
%{archlib}/auto/Sys/Syslog
%{_mandir}/man3/Sys::Syslog.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Socket
%dir %{archlib}/auto/Socket
%{archlib}/auto/Socket/Socket.*
%{archlib}/Socket.pm
%{_mandir}/man3/Socket.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Storable
%{archlib}/Storable.pm
%{archlib}/auto/Storable
%{_mandir}/man3/Storable.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Term-ANSIColor
%dir %{privlib}/Term
%{privlib}/Term/ANSIColor.pm
%{_mandir}/man3/Term::ANSIColor*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Term-Cap
%dir %{privlib}/Term
%{privlib}/Term/Cap.pm
%{_mandir}/man3/Term::Cap.*
%endif

%files Test
%{privlib}/Test.pm
%{_mandir}/man3/Test.*

%if %{dual_life} || %{rebuild_from_scratch}
%files Test-Harness
%{_bindir}/prove
%dir %{privlib}/App
%{privlib}/App/Prove*
%{privlib}/TAP*
%dir %{privlib}/Test
%{privlib}/Test/Harness*
%{_mandir}/man1/prove.1*
%{_mandir}/man3/App::Prove*
%{_mandir}/man3/TAP*
%{_mandir}/man3/Test::Harness*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Test-Simple
%{privlib}/ok*
%dir %{privlib}/Test
%{privlib}/Test/More*
%{privlib}/Test/Builder*
%{privlib}/Test/Tester*
%{privlib}/Test/Simple*
%{privlib}/Test/Tutorial*
%{privlib}/Test/use
%{privlib}/Test2*
%{_mandir}/man3/ok*
%{_mandir}/man3/Test::More*
%{_mandir}/man3/Test::Builder*
%{_mandir}/man3/Test::Tester*
%{_mandir}/man3/Test::Simple*
%{_mandir}/man3/Test::Tutorial*
%{_mandir}/man3/Test::use::*
%{_mandir}/man3/Test2*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Text-Balanced
%dir %{privlib}/Text
%{privlib}/Text/Balanced.pm
%{_mandir}/man3/Text::Balanced.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Text-ParseWords
%dir %{privlib}/Text
%{privlib}/Text/ParseWords.pm
%{_mandir}/man3/Text::ParseWords.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Text-Tabs+Wrap
%dir %{privlib}/Text
%{privlib}/Text/Tabs.pm
%{privlib}/Text/Wrap.pm
%{_mandir}/man3/Text::Tabs.*
%{_mandir}/man3/Text::Wrap.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Thread-Queue
%dir %{privlib}/Thread
%{privlib}/Thread/Queue.pm
%{_mandir}/man3/Thread::Queue.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Time-HiRes
%dir %{archlib}/Time
%{archlib}/Time/HiRes.pm
%dir %{archlib}/auto/Time
%{archlib}/auto/Time/HiRes
%{_mandir}/man3/Time::HiRes.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Time-Local
%dir %{privlib}/Time
%{privlib}/Time/Local.pm
%{_mandir}/man3/Time::Local.*
%endif

%files Time-Piece
%dir %{archlib}/Time
%{archlib}/Time/Piece.pm 
%{archlib}/Time/Seconds.pm
%dir %{archlib}/auto/Time
%{archlib}/auto/Time/Piece
%{_mandir}/man3/Time::Piece.3*
%{_mandir}/man3/Time::Seconds.3*

%if %{dual_life} || %{rebuild_from_scratch}
%files threads
%dir %{archlib}/auto/threads
%{archlib}/auto/threads/threads*
%{archlib}/threads.pm
%{_mandir}/man3/threads.3*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files threads-shared
%dir %{archlib}/auto/threads
%{archlib}/auto/threads/shared*
%dir %{archlib}/threads
%{archlib}/threads/shared*
%{_mandir}/man3/threads::shared*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Unicode-Collate
%dir %{archlib}/auto/Unicode
%{archlib}/auto/Unicode/Collate
%dir %{archlib}/Unicode
%{archlib}/Unicode/Collate
%{archlib}/Unicode/Collate.pm
%dir %{privlib}/Unicode
%{privlib}/Unicode/Collate
%{_mandir}/man3/Unicode::Collate.*
%{_mandir}/man3/Unicode::Collate::*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files Unicode-Normalize
%dir %{archlib}/auto/Unicode
%{archlib}/auto/Unicode/Normalize
%dir %{archlib}/Unicode
%{archlib}/Unicode/Normalize.pm
%{_mandir}/man3/Unicode::Normalize.*
%endif

%if %{dual_life} || %{rebuild_from_scratch}
%files version
%{privlib}/version.pm
%{privlib}/version.pod
%{privlib}/version/
%{_mandir}/man3/version.3*
%{_mandir}/man3/version::Internals.3*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15190 |21mr|perl-Algorithm-C3-0.100.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Algorithm-C3
%define upstream_version 0.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:	A module for merging hierarchies using the C3 algorithm

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp) >= 0.01
BuildRequires:  perl(Module::Build)
BuildRequires:	perl(Test::More) >= 0.47
BuildArch:	noarch

%description
This module implements the C3 algorithm. Most of the uses for C3
revolve around class building and metamodels, but it could also be
used for things like dependency resolution as well since it tends to
do such a nice job of preserving local precendence orderings.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor destdir=%{buildroot}
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%{perl_vendorlib}/Algorithm
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15191 |21mr|perl-Algorithm-Dependency-1.110.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Algorithm-Dependency
%define upstream_version 1.110

Summary:	Algorithmic framework for implementing dependency tree
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9
License:	GPLv1+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Class::Inspector) >= 1.06
BuildRequires:	perl(Config::Tiny) >= 2.0
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Test::ClassAPI) >= 0.6
BuildRequires:	perl(inc::Module::Install::DSL)
BuildArch:	noarch

%description
Algorithm::Dependency is a framework for creating simple read-only
dependency hierachies, where you have a set of items that rely on other
items in the set, and require actions on them as well.

Despite the most visible of these being software installation systems
like the CPAN installer, or debian apt-get, they are useful in others
situations. This module intentionally uses implementation-neutral words,
to avoid confusion.

%files
%doc Changes README
%{perl_vendorlib}/Algorithm
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15192 |21mr|perl-Algorithm-Diff-1.190.300-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Algorithm-Diff
%define upstream_version 1.1903

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5
Epoch:      1

Summary:    Compute `intelligent' differences between two files / lists

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Algorithm/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  perl-devel
BuildRequires:	perl-Test
Buildarch:      noarch

%description
This module compute `intelligent' differences between two files / lists.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%clean 

%files 
%doc README Changes
%{perl_vendorlib}/Algorithm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15193 |21mr|perl-aliased-0.340.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    aliased
%define upstream_version 0.34

Summary:	Use shorter versions of class names
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz
# Minimum BR are below those but higher then
# our perl provides. Symbianflo
BuildRequires:	perl-devel
BuildRequires:	perl(B)
BuildRequires:	perl(Carp)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(Exporter)
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
Provides:	perl(aliased) = %{EVRD}
BuildArch:	noarch

%description
'aliased' is simple in concept but is a rather handy module. It loads the
class you specify and exports into your namespace a subroutine that returns
the class name. You can explicitly alias the class to another name or, if
you prefer, you can do so implicitly. In the latter case, the name of the
subroutine is the last part of the class name.

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15194 |21mr|perl-Alien-Build-2.460.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Alien-Build
%define upstream_version 2.46

#global __requires_exclude ^perl(Alien::xz)$
#global __requires_exclude ^perl(FFI::Platypus)$
%global __requires_exclude perl\\((Alien::xz|FFI::Platypus)\\)

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Build external dependencies for use in CPAN
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Alien/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.640.0
BuildRequires: perl(ExtUtils::ParseXS) >= 3.300.0
BuildRequires: perl(File::Which) >= 1.100.0
#BuildRequires: perl(File::chdir)
#BuildRequires: perl(JSON::PP)
#BuildRequires: perl(FFI::CheckLib) >= 0.110.0
#BuildRequires: perl(Capture::Tiny) >= 0.170.0
#BuildRequires: perl(Path::Tiny) >= 0.77.0
BuildRequires: perl(Module::Load)
BuildRequires: perl(Test2::API) >= 1.302.15
#BuildRequires: perl(Test2::Mock) >= 0.0.60
#BuildRequires: perl(Test2::Require) >= 0.0.60
#BuildRequires: perl(Test2::Require::Module) >= 0.0.60
#BuildRequires: perl(Test2::V0) >= 0.0.60
BuildRequires: perl(Text::ParseWords) >= 3.260.0
BuildRequires: perl-devel
BuildArch:  noarch

%description
This module provides tools for building external (non-CPAN) dependencies for
CPAN. It is mainly designed to be used at install time of a CPAN client, and
work closely with Alien::Base which is used at runtime.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build CFLAGS="%{optflags}"

%install
%make_install

%files
%doc Changes INSTALL LICENSE META.json META.yml README SUPPORT example
%{_mandir}/man3/*
%perl_vendorlib/alienfile.pm
%perl_vendorlib/Alien/Build
%perl_vendorlib/Alien/Build.pm
%perl_vendorlib/Alien/Base
%perl_vendorlib/Alien/Base.pm
%perl_vendorlib/Alien/Role.pm
%perl_vendorlib/Test/Alien.pm
%perl_vendorlib/Test/Alien

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15195 |21mr|perl-Alien-Libxml2-0.160.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Alien-Libxml2
%define upstream_version 0.16

%define debug_package %{nil}
%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Alien package for libxml2
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Alien/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Alien::Base)
BuildRequires: perl(Alien::Build)
BuildRequires: perl(Alien::Build::MM)
BuildRequires: perl(Alien::Build::Plugin::Build::SearchDep)
BuildRequires: perl(Alien::Build::Plugin::Prefer::BadVersion)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::MakeMaker)
#BuildRequires: perl(Test2::V0)
#BuildRequires: perl(Test::Alien)
BuildRequires: pkgconfig(libxml-2.0)

%description
Alien::Libxml2 - Download and install libxml2

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make_build

%install
%make_install

%files
%doc Changes INSTALL LICENSE META.json META.yml README
%{_mandir}/man3/*
%perl_vendorarch/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15196 |21mr|perl-AnyEvent-7.170.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname AnyEvent
%define filelist %{pkgname}-%{version}-filelist
%define maketest 1
%define upstream_version 7.17

%define debug_package %{nil}

%global __requires_exclude perl\\(AnyEvent:.*

Name:		perl-%{pkgname}
Summary:	Provide framework for multiple event loops

Version:	%perl_convert_version %{upstream_version}
Release:	3
Epoch:		3
License:	Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/~mlehmann/AnyEvent/
Source0:	http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/AnyEvent-%{upstream_version}.tar.gz
Source1:	perl-AnyEvent.rpmlintrc
BuildRequires:	perl-devel
BuildRequires:	perl(Event)
BuildRequires:	perl-POE
BuildRequires:	perl(IO::Async)
BuildRequires:	perl(Canary::Stability)

%description
AnyEvent - provide framework for multiple event loops
Event, Glib, Tk, Perl, - various supported event loops.

%package EV
Group:		Development/Perl
Summary:	Provide framework for multiple event loops - EV integration


%description EV
AnyEvent - provide framework for multiple event loops
EV event loop integration.

%package Event-Lib
Group:		Development/Perl
Summary:	Provide framework for multiple event loops - Event::Lib integration

%description Event-Lib
AnyEvent - provide framework for multiple event loops
Event::Lib event loop integration.

%package Tk
Group:		Development/Perl
Summary:	Provide framework for multiple event loops - Tk integration


%description Tk
AnyEvent - provide framework for multiple event loops
Tk event loop integration.

%package POE
Group:		Development/Perl
Summary:	Provide framework for multiple event loops - POE integration

%description POE
AnyEvent - provide framework for multiple event loops
POE event loop integration.

%package IOAsync
Group:		Development/Perl
Summary:	Provide framework for multiple event loops - IO::Async integration

%description IOAsync
AnyEvent - provide framework for multiple event loops
IO::Async event loop integration.

%package Irssi
Group:		Development/Perl
Summary:	Provide framework for multiple event loops - Irssi integration


%description Irssi
AnyEvent - provide framework for multiple event loops
Irssi event loop integration.

#%package UV
#Group:      Development/Perl
#Summary:    Provide framework for multiple event loops - UV integration

#%description UV
#AnyEvent - provide framework for multiple event loops
#UV event loop integration

%prep
%setup -q -n %{pkgname}-%{upstream_version}
chmod -R u+w %{_builddir}/%{pkgname}-%{upstream_version}

%build
#grep -rsl '^#!.*perl' . |
#grep -v '.bak$' |xargs --no-run-if-empty \
#perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
#CFLAGS="%{optflags}"
#perl Makefile.PL `perl -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` INSTALLDIRS=vendor
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
#%makeinstall `perl -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`
%make_install

# remove special files
find %{buildroot} -name "perllocal.pod" \
    -o -name ".packlist"                \
    -o -name "*.bs"                     \
    |xargs -i rm -f {}

# no empty directories
find %{buildroot}%{_prefix}             \
    -type d -depth                      \
    -exec rmdir {} \; 2>/dev/null

#we don't have perl-Qt anymore:
rm -f %{buildroot}%{perl_vendorarch}/AnyEvent/Impl/Qt.pm
rm -f %{buildroot}%{_mandir}/man3/AnyEvent::Impl::Qt*
#we don't have perl-FLTK (yet):
rm -f %{buildroot}%{perl_vendorarch}/AnyEvent/Impl/FLTK.pm
rm -f %{buildroot}%{_mandir}/man3/AnyEvent::Impl::FLTK*
#we don't have perl-UV (yet):
rm -f %{buildroot}%{perl_vendorarch}/AnyEvent/Impl/UV.pm
rm -f %{buildroot}%{_mandir}/man3/AnyEvent::Impl::UV*
#only for Mac:
rm -f %{buildroot}%{perl_vendorarch}/AnyEvent/Impl/Cocoa.pm
rm -f %{buildroot}%{_mandir}/man3/AnyEvent::Impl::Cocoa*

%files
%doc README Changes
%{perl_vendorarch}/AE.pm
%{perl_vendorarch}/AnyEvent.pm
%dir %{perl_vendorarch}/AnyEvent
%dir %{perl_vendorarch}/AnyEvent/Impl
%{perl_vendorarch}/AnyEvent/Debug.pm
%{perl_vendorarch}/AnyEvent/DNS.pm
%{perl_vendorarch}/AnyEvent/FAQ.pod
%{perl_vendorarch}/AnyEvent/Handle.pm
%{perl_vendorarch}/AnyEvent/Log.pm
%{perl_vendorarch}/AnyEvent/Loop.pm
%{perl_vendorarch}/AnyEvent/Socket.pm
%{perl_vendorarch}/AnyEvent/Strict.pm
%{perl_vendorarch}/AnyEvent/Intro.pod
%{perl_vendorarch}/AnyEvent/TLS.pm
%{perl_vendorarch}/AnyEvent/Util.pm
%{perl_vendorarch}/AnyEvent/Util/
%{perl_vendorarch}/AnyEvent/IO.pm
%{perl_vendorarch}/AnyEvent/IO/
%{perl_vendorarch}/AnyEvent/Impl/Event.pm
%{perl_vendorarch}/AnyEvent/Impl/Glib.pm
%{perl_vendorarch}/AnyEvent/Impl/Perl.pm
%{perl_vendorarch}/AnyEvent/constants.pl
%{_mandir}/man3/AE.3pm*
%{_mandir}/man3/AnyEvent.3pm*
%{_mandir}/man3/AnyEvent::Debug*
%{_mandir}/man3/AnyEvent::DNS*
%{_mandir}/man3/AnyEvent::FAQ*
%{_mandir}/man3/AnyEvent::Handle*
%{_mandir}/man3/AnyEvent::Socket.*
%{_mandir}/man3/AnyEvent::Strict.*
%{_mandir}/man3/AnyEvent::Util.*
%{_mandir}/man3/AnyEvent::Intro.*
%{_mandir}/man3/AnyEvent::IO*
%{_mandir}/man3/AnyEvent::Impl::Event.*
%{_mandir}/man3/AnyEvent::Impl::Glib.*
%{_mandir}/man3/AnyEvent::Impl::Perl*
%{_mandir}/man3/AnyEvent::Log.*
%{_mandir}/man3/AnyEvent::Loop.*
%{_mandir}/man3/AnyEvent::TLS*

%files EV
%{perl_vendorarch}/AnyEvent/Impl/EV.pm
%{_mandir}/man3/AnyEvent::Impl::EV.3pm*

%files Event-Lib
%{perl_vendorarch}/AnyEvent/Impl/EventLib.pm
%{_mandir}/man3/AnyEvent::Impl::EventLib.3pm*

%files Tk
%{perl_vendorarch}/AnyEvent/Impl/Tk.pm
%{_mandir}/man3/AnyEvent::Impl::Tk*

%files POE
%{perl_vendorarch}/AnyEvent/Impl/POE.pm
%{_mandir}/man3/AnyEvent::Impl::POE*

%files IOAsync
%{perl_vendorarch}/AnyEvent/Impl/IOAsync.pm
%{_mandir}/man3/AnyEvent::Impl::IOAsync*

%files Irssi
%{perl_vendorarch}/AnyEvent/Impl/Irssi.pm
%{_mandir}/man3/AnyEvent::Impl::Irssi*

#%files UV
#%{perl_vendorarch}/AnyEvent/Impl/UV.pm
#%{_mandir}/man3/AnyEvent::Impl::UV.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15197 |21mr|perl-AnyEvent-AIO-1.100.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AnyEvent-AIO
%define upstream_version 1.1

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Exporter(.*)\\)
%else
%define _requires_exceptions Exporter
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary: 	Truly asynchronous file and directrory I/O

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/AnyEvent/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(AnyEvent)
BuildRequires:	perl(IO::AIO)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
This module is an the AnyEvent manpage user, you need to make sure that you
use and run a supported event loop.

Loading this module will install the necessary magic to seamlessly
integrate the IO::AIO manpage into the AnyEvent manpage, i.e. you no longer
need to concern yourself with calling 'IO::AIO::poll_cb' or any of that
stuff (you still can, but this module will do it in case you don't).

The AnyEvent watcher can be disabled by executing 'undef
$AnyEvent::AIO::WATCHER'. Please notify the author of when and why you
think this was necessary.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15198 |21mr|perl-AnyEvent-BDB-1.100.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AnyEvent-BDB
%define upstream_version 1.1

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Exporter(.*)\\)
%else
%define _requires_exceptions Exporter::
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Truly asynchronous berkeley db access

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/AnyEvent/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-AnyEvent
BuildRequires:	perl-BDB >= 1.5

BuildArch: noarch

%description
This module is an the AnyEvent manpage user, you need to make sure that you
use and run a supported event loop.

Loading this module will install the necessary magic to seamlessly
integrate the BDB manpage into the AnyEvent manpage, i.e. you no longer
need to concern yourself with calling 'BDB::poll_cb' or any of that stuff
(you still can, but this module will do it in case you don't).

The AnyEvent watcher can be disabled by executing 'undef
$AnyEvent::BDB::WATCHER'. Please notify the author of when and why you
think this was necessary.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15199 |21mr|perl-Apache-Test-1.400.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# XXX How did these provides appear?
# perl(HTTP::Request::Common) is provided by perl-HTTP-Message
%global __provides_exclude ^perl\\((HTTP::Request::Common|warnings)\\)

%define upstream_name Apache-Test
%define upstream_version 1.40

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Test.pm wrapper with helpers for testing Apache

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Apache/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:	noarch
Provides:	perl(Apache::TestConfigParse)
Provides:	perl(Apache::TestConfigPerl)
BuildRequires:	perl-devel
BuildRequires:	perl-Test

%description
Apache::Test is a test toolkit for testing an Apache server with any
configuration. It works with Apache 1.3 and Apache 2.0 and any of its modules,
including mod_perl 1.0 and 2.0. It was originally developed for testing
mod_perl 2.0.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install

%makeinstall_std

%files
%doc CONTRIBUTORS Changes INSTALL LICENSE README SUPPORT ToDo
%{perl_vendorlib}/Apache
%{perl_vendorlib}/Bundle
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15200 |21mr|perl-AppConfig-1.710.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AppConfig
%define upstream_version 1.71

Summary:	Perl5 modules for reading configuration
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/AppConfig/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-File-HomeDir
BuildArch:	noarch

%description
AppConfig has a powerful but easy to use module for parsing configuration
files. It also has a simple and efficient module for parsing command line
arguments.

%files
%doc README
%{perl_vendorlib}/AppConfig
%{perl_vendorlib}/AppConfig.pm
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%__make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15201 |21mr|perl-App-Nopaste-1.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name App-Nopaste
%define upstream_version 1.013

Summary:	Easy access to any pastebin
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/App/App-Nopaste-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Browser::Open)
BuildRequires:	perl(Clipboard)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(JSON::MaybeXS)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(Getopt::Long::Descriptive)
BuildRequires:	perl(YAML)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(WWW::Mechanize)
BuildRequires:	perl(WWW::Pastebin::PastebinCom::Create)
BuildArch:	noarch

%description
Pastebins (also known as nopaste sites) let you post text, usually code,
for public viewing. They're used a lot in IRC channels to show code that
would normally be too long to give directly in the channel (hence the name
nopaste).

Each pastebin is slightly different. When one pastebin goes down (I'm
looking at you, the http://paste.husk.org manpage), then you have to find a
new one. And if you usually use a script to publish text, then it's too
much hassle.

This module aims to smooth out the differences between pastebins, and
provides redundancy: if one site doesn't work, it just tries a different
one.

%files
%doc Changes
%{perl_vendorlib}/App
%{_bindir}/nopaste
%{_mandir}/man1/nopaste.1*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15202 |21mr|perl-Archive-Cpio-0.100.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Archive-Cpio
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Manipulations of cpio archives

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/P/PI/PIXEL/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl-Test

%description
Archive::Cpio provides a few functions to read and write cpio files.

cpio-filter is a script using Archive::Cpio that transforms a cpio archive on
the fly

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes
%{perl_vendorlib}/Archive/Cpio*
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15203 |21mr|perl-Archive-Extract-0.800.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Archive-Extract
%define upstream_version 0.80

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A generic archive extracting mechanism

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Archive/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IPC::Cmd)                  >= 0.360.0
BuildRequires:	perl(Module::Load::Conditional) >= 0.40.0
BuildRequires:	perl-version
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
Archive::Extract is a generic archive extraction mechanism.

It allows you to extract any archive file of the type .tar, .tar.gz, .gz, .Z,
tar.bz2, .tbz, .bz2 or .zip without having to worry how it does so, or use
different interfaces for each type by using either perl modules, or commandline
tools on your system.

%prep
%setup -qn  %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%__make test

%install
%makeinstall_std

%files
%doc README CHANGES
%{perl_vendorlib}/Archive/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15204 |21mr|perl-Archive-Zip-1.530.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Archive-Zip
%define upstream_version 1.53

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Provide an interface to ZIP archive files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Archive/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	zlib-devel
BuildRequires:	perl-devel
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(File::Which)
BuildRequires:	perl-Test-Simple

BuildArch:	noarch


%description
A Perl module that provides an interface to ZIP archive files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
%make CFLAGS="%{optflags}"

%check
%__make test

%install
%makeinstall_std

%files
%doc  Changes 
%doc examples
%{_bindir}/crc32
%{perl_vendorlib}/Archive
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15205 |21mr|perl-Array-Compare-2.110.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Array-Compare
%define upstream_version 2.11

Summary:	Perl extension for comparing arrays
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Array/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Moo)
BuildRequires:	perl(strictures)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Types::Standard)
BuildArch: 	noarch

%description
If you have two arrays and you want to know if they are the same or different,
then Array::Compare will be useful to you.

%files
%doc Changes README
%{perl_vendorlib}/Array
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15206 |21mr|perl-Astro-FITS-Header-3.70.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude ^perl\\((Starlink::AST|NDF|Astro::FITS::CFITSIO|GSD)
%else
%define _requires_exceptions Starlink::AST\\|NDF|Astro::FITS::CFITSIO\\|GSD
%endif

%define upstream_name    Astro-FITS-Header
%define upstream_version 3.07

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Interface to FITS headers

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Astro/Astro-FITS-Header-%{upstream_version}.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildArch: noarch

%description
Stores information about a FITS header block in an object. Takes an hash
with an array reference as an arguement. The array should contain a list of
FITS header cards as input.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15207 |21mr|perl-Authen-PAM-0.160.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Authen-PAM
%define upstream_version 0.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    13
Summary:	Perl interface to the PAM library
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Authen/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	pam-devel
BuildRequires:  perl-devel

%description
The Authen::PAM module provides a Perl interface to the PAM library.
The only difference with the standard PAM interface is that the perl
one is simpler.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

#https://rt.cpan.org/Public/Bug/Display.html?id=120930
sed -i -e "s|pam.cfg|./pam.cfg|" Makefile.PL

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/auto/Authen/*
%{perl_vendorarch}/Authen/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15208 |21mr|perl-Authen-Radius-0.240.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Authen-Radius
%define upstream_version 0.24
%define tarname RadiusPerl 

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	4

Summary:	Radius authentication interface to Perl 5	

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Authen/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch


%description
RadiusPerl is a Perl 5 module (Radius.pm) which allows you to 
communicate with a Radius server from Perl. You can just authenticate 
usernames/passwords via Radius, or comletely imitate AAA requests 
and process server response.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
make OPTIMIZE="%{optflags}" 
# (sb) can't really do this - need a Radius server
#make test

%install
%makeinstall_std 

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/Authen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15209 |21mr|perl-Authen-SASL-2.150.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Authen-SASL
%define upstream_version 2.15

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(GSSAPI\\)
%else
%define _requires_exceptions perl\(GSSAPI\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	15

Summary:	SASL Authentication framework

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/G/GB/GBARR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Digest::HMAC_MD5)
BuildRequires:  perl(Module::Install)
BuildRequires:  perl(Test::More)
BuildArch:	noarch

%description
SASL is a generic mechanism for authentication used by several network
protocols. Authen::SASL provides an implementation framework that all protocols
should be able to share.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
%__make test

%install
%makeinstall_std

%files
%doc Changes api.txt
%{_mandir}/*/*
%{perl_vendorlib}/Authen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15210 |21mr|perl-Authen-Smb-0.910.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		upstream_name	 Authen-Smb
%define		upstream_version 0.91

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    14
Summary:	Perl extension to authenticate against an SMB server
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Authen/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Authen-Smb-0.91-64bit-fixes.patch

BuildRequires:	perl-devel >= 5.6

%description
Authen::Smb is a Perl module to authenticate against an SMB server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1 -b .64bit-fixes

%build
CFLAGS="%{optflags}" %{__perl} Makefile.PL INSTALLDIRS=vendor
make
make test

%install
%makeinstall_std

%clean

%files
%defattr(644,root,root,755)
%doc Changes README
%{perl_vendorarch}/Authen/*
%{perl_vendorarch}/auto/Authen/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15211 |21mr|perl-AutoXS-Header-1.20.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    AutoXS-Header
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Container for the AutoXS header files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SM/SMUELLER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
This module is a simple container for the newest version of the the AutoXS
manpage header file 'AutoXS.h'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15212 |21mr|perl-B-Compiling-0.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name B-Compiling
%define upstream_version 0.06

%global __provides_exclude Compiling.so

Summary:	Expose PL_compiling to perl
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/B/B-Compiling-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl-Test-Simple
BuildRequires:	perl(XSLoader)

%description
This module exposes the perl interpreter's PL_compiling variable to perl.

%files
%doc Changes README LICENSE META.json META.yml
%{_mandir}/man3/*
%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes Compiling.xs

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15213 |21mr|perl-BDB-1.920.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    BDB
%define upstream_version 1.92

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	2

Summary:    Asynchronous Berkeley DB access


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/BDB
Source0:    http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: db-devel
BuildRequires: perl(common::sense)
BuildRequires: perl-devel


Requires: perl(common::sense)

%description
This is the Asynchronous Berkeley DB access API for Perl and DB 4.6.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15214 |21mr|perl-BerkeleyDB-0.550.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 BerkeleyDB
%define upstream_version 0.55

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6
Summary:	Perl module for BerkeleyDB 2.x and greater
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	db-devel
BuildRequires:	perl-devel

%description
BerkeleyDB is a module which allows Perl programs to make use of the
facilities provided by Berkeley DB version 2 or greater. (Note: if
you want to use version 1 of Berkeley DB with Perl you need the DB_File
module).

Berkeley DB is a C library which provides a consistent interface to a
number of database formats. BerkeleyDB provides an interface to all
four of the database types (hash, btree, queue and recno) currently
supported by Berkeley DB.

For further details see the documentation in the file BerkeleyDB.pod.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes README
# ignore pod test failure
rm -f t/pod.t

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%clean 

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorarch}/BerkeleyDB*
%{perl_vendorarch}/*.pl
%{perl_vendorarch}/auto/BerkeleyDB
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15215 |21mr|perl-B-Hooks-EndOfScope-0.240.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    B-Hooks-EndOfScope
%define upstream_version 0.24

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Execute code after a scope finished compilation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/B/B-Hooks-EndOfScope-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Sub::Exporter::Progressive) >= 0.1.11
BuildRequires:	perl(Module::Runtime) >= 0.14.0
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(Scope::Guard)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Variable::Magic)
BuildRequires:	perl-devel
BuildRequires:	perl(File::Glob)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IPC::Open2)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
  
BuildArch:	noarch

%description
This module allows you to execute code when perl finished compiling the
surrounding scope.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15216 |21mr|perl-B-Hooks-OP-Check-0.190.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name B-Hooks-OP-Check
%define upstream_version 0.19
%define debug_package %{nil}

Summary:	Wrap OP check callbacks
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.19
Release:	7
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/B/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl-Test-Simple
BuildRequires:	perl(parent)
Requires:	perl(parent)

%description
This module provides a c api for XS modules to hook into the callbacks of
'PL_check'.

the ExtUtils::Depends manpage is used to export all functions for other XS
modules to use. Include the following in your Makefile.PL:

    my $pkg = ExtUtils::Depends->new('Your::XSModule', 'B::Hooks::OP::Check');
    WriteMakefile(
        ... # your normal makefile flags
        $pkg->get_makefile_vars,
    );

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/B
%{perl_vendorarch}/auto/B

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15217 |21mr|perl-Bit-Vector-7.400.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Bit-Vector
%define upstream_version 7.4

%global __requires_exclude ^/usr/local/bin/perl$

%define TEST 1
%{?_with_test: %{expand: %%global TEST 1}}
%{?_without_test: %{expand: %%global TEST 0}}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6
Summary: 	%{upstream_name} module for perl
License: 	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Bit/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Carp::Clan)
BuildRequires:	perl(Storable) >= 2.210.0
BuildRequires:	perl-devel


%description
%{upstream_name} module for perl.
Bit::Vector is an efficient C library which allows you to handle
bit vectors, sets (of integers), "big integer arithmetic" and
boolean matrices, all of arbitrary sizes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod -R u+w examples

%build
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%if %{TEST}
LANG=C %make test
%endif

%install
%makeinstall_std

%clean 

%files
%defattr(-,root,root,755)
%doc CHANGES.txt CREDITS.txt INSTALL.txt README.txt examples
%{_mandir}/man3/Bit::Vector*
%dir %{perl_vendorarch}/Bit
%{perl_vendorarch}/Bit/Vector*
%dir %{perl_vendorarch}/auto/Bit
%{perl_vendorarch}/auto/Bit/Vector*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15218 |21mr|perl-B-Keywords-1.180.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name B-Keywords
%define upstream_version 1.18

Summary:	Lists of reserved barewords and symbol names
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/B/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
B::Keywords supplies seven arrays of keywords: @Scalars, @Arrays,
@Hashes, @Filehandles, @Symbols, @Functions, and @Barewords. The
@Symbols array includes the contents of each of @Scalars, @Arrays,
@Hashes, and @Filehandles. Similarly, @Barewords adds a few
non-function keywords and operators to the @Functions array.

All additions and modifications are welcome.

%files
%doc Changes README LICENSE
%{perl_vendorlib}/B
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15219 |21mr|perl-Browser-Open-0.40.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Browser-Open
%define upstream_version 0.04

Summary:	Open a browser in a given URL
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/C/CF/CFRANKS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(parent)
BuildArch:	noarch

%description
The functions optionaly exported by this module allows you to open URLs in
the user browser.

A set of known commands per OS-name is tested for presence, and the first
one found is executed. With an optional parameter, all known commands are
checked.

The the "open_browser" manpage uses the 'system()' function to execute the
command. If you want more control, you can get the command with the the
"open_browser_cmd" manpage or the "open_browser_cmd_all" manpage functions
and then use whatever method you want to execute it.

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*


#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15220 |21mr|perl-BSD-Resource-1.291.100-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 BSD-Resource
%define upstream_version 1.2911

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	BSD process resource limit and priority functions

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/BSD/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel


%description
%{upstream_name} module for perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog README
%{perl_vendorarch}/BSD
%{perl_vendorarch}/auto/BSD
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15221 |21mr|perl-B-Utils-0.270.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name B-Utils
%define upstream_version 0.27
%global __provides_exclude Utils.so

Summary:	Easily build XS extensions that depend on XS extensions
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/B/%{upstream_name}-%{upstream_version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	perl-devel
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Scalar::Util)

%description
  sub foo {
    dothis(1);
    find_things();
    return;
  }

has the following optree:

 d  <1> leavesub[1 ref] K/REFC,1 ->(end)
 -     <@> lineseq KP ->d
 1        <;> nextstate(main -371 bah.pl:8) v/2 ->2
 5        <1> entersub[t2] vKS/TARG,3 ->6
 -           <1> ex-list K ->5
 2              <0> pushmark s ->3
 3              <$> const[IV 1] sM ->4
 -              <1> ex-rv2cv sK/3 ->-
 4                 <#> gv[*dothis] s ->5
 6        <;> nextstate(main -371 bah.pl:9) v/2 ->7

%files
%doc Changes README LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes BUtils.h Utils.xs OP.xs

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15222 |21mr|perl-Cairo-1.106.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modname	Cairo
%define modver 1.106

Summary:	Perl module for the Cairo library
Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	7
License:	GPLv2+ or Artistic
Group:		Development/GNOME and GTK+
Url:		http://gtk2-perl.sf.net/
# http://sourceforge.net/project/showfiles.php?group_id=64773&package_id=160888
Source0:	http://sourceforge.net/projects/gtk2-perl/files/%{modname}/%{modver}/%{modname}-%{modver}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::PkgConfig)
BuildRequires:	perl(Test::Number::Delta)
BuildRequires:	pkgconfig(cairo)

%description
This module provides perl access to the Cairo library.

Cairo provides anti-aliased vector-based rendering for X. Paths
consist of line segments and cubic splines and can be rendered at any
width with various join and cap styles. All colors may be specified
with optional translucence (opacity/alpha) and combined using the
extended Porter/Duff compositing algebra as found in the X Render
Extension.

%prep
%setup -qn %{modname}-%{modver}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# XXX tests freeze
#make test

%install
%makeinstall_std

%files
%doc LICENSE examples README NEWS TODO 
%{perl_vendorarch}/%{modname}
%{perl_vendorarch}/%{modname}.pm
%{perl_vendorarch}/auto/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15223 |21mr|perl-Cairo-GObject-1.4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modname	Cairo-GObject
%define	modver	1.004

Summary:	Integrate Cairo into the Glib type system
Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	7
License:	LGPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{modname}
Source0:	https://cpan.metacpan.org/authors/id/X/XA/XAOC/%{modname}-%{modver}.tar.gz
BuildRequires:	perl(Cairo) >= 1.80.0
BuildRequires:	perl(ExtUtils::Depends) >= 0.200.0
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(ExtUtils::PkgConfig) >= 1.0.0
BuildRequires:	perl-Glib-devel >= 1.224.0
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(cairo)

%description
Integrate Cairo into the Glib type system.

%prep
%setup -q -n %{modname}-%{modver}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
#make test

%install
%makeinstall_std

%files
%doc LICENSE META.json META.yml NEWS README examples
%{_mandir}/man3/*
%{perl_vendorarch}/Cairo/*.pm
%{perl_vendorarch}/Cairo/GObject/Install/*.pm
%{perl_vendorarch}/auto/Cairo/GObject/*.so*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15224 |21mr|perl-Canary-Stability-2012.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Canary-Stability
%define upstream_version 2012

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Canary to check perl compatibility for schmorp's modules
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Canary/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl-devel

BuildArch: noarch

%description
This module is used by Schmorp's modules during configuration stage to test
the installed perl for compatibility with his modules.

It's not, at this stage, meant as a tool for other module authors, although
in principle nothing prevents them from subscribing to the same ideas.

See the _Makefile.PL_ in the Coro manpage or the AnyEvent manpage for usage
examples.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15225 |21mr|perl-Capture-Tiny-0.480.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Capture-Tiny
%define upstream_version 0.48

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Capture STDOUT and STDERR from Perl, XS or external programs

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-Test-Simple
BuildRequires: perl-devel

BuildArch: noarch

%description
Capture::Tiny provides a simple, portable way to capture anything sent to
STDOUT or STDERR, regardless of whether it comes from Perl, from XS code or
from an external program. Optionally, output can be teed so that it is
captured while being passed through to the original handles. Yes, it even
works on Windows. Stop guessing which of a dozen capturing modules to use
in any particular situation and just use this one.

This module was heavily inspired by the IO::CaptureOutput manpage, which
provides similar functionality without the ability to tee output and with
more complicated code and API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15226 |21mr|perl-Carp-Assert-0.210.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Carp-Assert
%define upstream_version 0.21

Summary:	Carp::Assert - executable comments
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Carp/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::More) >= 0.40
BuildArch:	noarch

%description
Carp::Assert is intended for a purpose like the ANSI C library assert.h.
If you're already familiar with assert.h, then you can probably skip
this and go straight to the FUNCTIONS section.

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/Carp

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15227 |21mr|perl-Carp-Clan-6.60.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Carp-Clan
%define upstream_version 6.06

%define TEST	1
%{?_with_test: %{expand: %%global TEST 1}}
%{?_without_test: %{expand: %%global TEST 0}}

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Carp/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Exception)

BuildArch:	noarch

%description
%{upstream_name} module for perl.
This module reports errors from the perspective of the caller of a
"clan" of modules, similar to "Carp.pm" itself. But instead of giving
it a number of levels to skip on the calling stack, you give it a
pattern to characterize the package names of the "clan" of modules
which shall never be blamed for any error.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%if %{TEST}
LANG=C %make test
%endif

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%{_mandir}/*/*
%{perl_vendorlib}/Carp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15228 |21mr|perl-CGI-4.540.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 CGI
%define upstream_version 4.54

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Epoch:      1

Summary:    Simple Common Gateway Interface class for Perl

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/module/CGI
Source0:    https://cpan.metacpan.org/authors/id/L/LE/LEEJO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec) >= 0.820.0
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl-devel
# for test
BuildRequires: perl(Test::More) >= 0.980.0
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::Warn)
BuildRequires: perl(HTML::Entities)
BuildArch:  noarch

%description
This perl library uses perl5 objects to make it easy to create
Web fill-out forms and parse their contents.  This package
defines CGI objects, entities that contain the values of the
current query string and other state variables.  Using a CGI
object's methods, you can examine keywords and parameters
passed to your script, and create forms whose initial values
are taken from the current query (thereby preserving state
information).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e s,/usr/local/bin/perl,/usr/bin/perl, examples/*.{cgi,pl}
chmod 755 examples

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README.md examples
%{perl_vendorlib}/CGI
%{perl_vendorlib}/*.pm
%{perl_vendorlib}/CGI.pod
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15229 |21mr|perl_checker-1.2.42-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Verify Perl code
Name:		perl_checker
Version:	1.2.42
Release:	1
License:	GPLv2+
Group:		Development/Perl
Requires:	perl-base >= 2:5.8.0
Requires:	perl-MDK-Common
Url:		http://rosalab.ru
Source0:	perl_checker-%{version}.tar.xz
BuildRequires:	ocaml >= 3.06
BuildRequires:	perl-MDK-Common
# for the faked packages:
%global __requires_exclude_from ^%{_datadir}/%{name}/fake_packages/
%global __provides_exclude_from ^%{_datadir}/%{name}/fake_packages/

%rename	perl-MDK-Common-devel

%description
Various verifying scripts created for DrakX

%prep
%autosetup -p1

sed -ie 's/\(^all.*\) test/\1/' Makefile

%build
#export OCAMLPARAM="safe-string=0,_"
export PERL_USE_UNSAFE_INC=1
make

%install
#export OCAMLPARAM="safe-string=0,_"
%makeinstall_std

%files
%doc src/perl_checker.html
%{_bindir}/*
%{_datadir}/perl_checker
%{_datadir}/vim/ftplugin/*
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15230 |21mr|perl-Class-Accessor-0.510.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Class-Accessor
%define upstream_version 0.51

Summary:	Automated accessor generation
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
This module automagically generates accessor/mutators for your class.

%files
%doc README Changes
%{perl_vendorlib}/Class
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15231 |21mr|perl-Class-Accessor-Grouped-0.100.140-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Accessor-Grouped
%define upstream_version 0.10014

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11
Epoch:		1

Summary:	Lets you build groups of accessors

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl-CPAN
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Algorithm::C3)
BuildRequires: perl(Class::XSAccessor)
BuildRequires: perl(Class::C3)
BuildRequires: perl(Class::Inspector)
BuildRequires: perl(Module::AutoInstall)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Sub::Identify)
BuildRequires: perl(Sub::Name)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Digest::SHA)
BuildArch:		noarch

%description
This class lets you build groups of accessors that will call different getters
and setters.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 README Changes

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15232 |21mr|perl-Class-Autouse-2.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Class-Autouse
%define upstream_version 2.01

Summary:	Run-time class loading on first method call in Perl
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 2.01
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Class/Class-Autouse-2.01.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(inc::Module::Install::DSL)
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
Class::Autouse allows you to specify a class that will only load when a method
of that class is called. For large classes that might not be used during the
running of a program, such as Date::Manip, this can save you large amounts of
memory, and decrease the script load time.

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
find lib -name \*.pm | xargs chmod 644
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15233 |21mr|perl-Class-C3-0.350.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-C3
%define upstream_version 0.35

Summary:	A pragma to use the C3 method resolution order algortihm

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	Artistic/GPLv2
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::C3) >= 0.05
BuildRequires:	perl(Scalar::Util) >= 1.10
BuildRequires:	perl(Test::More) >= 0.47
BuildRequires:	perl(Test::Exception) >= 0.15
BuildRequires:	perl(Class::C3::XS) >= 0.07
Requires:	perl(Algorithm::C3)

%description
This is pragma to change Perl 5's standard method resolution order
from depth-first left-to-right (a.k.a - pre-order) to the more
sophisticated C3 method resolution order.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc  README
%{perl_vendorlib}/Class
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15234 |21mr|perl-Class-C3-XS-0.140.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-C3-XS
%define upstream_version 0.14

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary:	XS speedups for Class::C3 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:	perl-devel
Buildrequires:	perl-Test-Simple

%description
This contains XS performance enhancers for Class::C3 version 0.16 and higher.
The main Class::C3 package will use this package automatically if it can find
it. Do not use this package directly, use Class::C3 instead.

The test suite here is not complete, although it does verify a few basic
things. The best testing comes from running the Class::C3 test suite *after*
this module is installed.

This module won't do anything for you if you're running a version of Class::C3
older than 0.16. (It's not a dependency because it would be circular with the
optional dep from that package to this one).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc README
%{perl_vendorarch}/Class
%{perl_vendorarch}/auto/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15235 |21mr|perl-Class-Data-Inheritable-0.80.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Data-Inheritable
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	13

Summary:	Inheritable, overridable class data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Class::Data::Inheritable is for creating accessor/mutators to class data. That
is, if you want to store something about your class as a whole (instead of
about a single object). This data is then inherited by your subclasses and can
be overriden.

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15236 |21mr|perl-Class-Factory-Util-1.700.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-Factory-Util
%define upstream_version 1.7

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:	Provide utility methods for factory classes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(Module::Build)
BuildRequires:  perl-Test
BuildRequires:  perl(Test::More)
BuildArch:	noarch

%description
This module exports a method that is useful for factory classes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes
%{perl_vendorlib}/Class/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15237 |21mr|perl-Class-Inner-0.200.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Inner
%define upstream_version 0.200001

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Class-Inner module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Class-Inner/
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Class-Inner module for perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

# perl path hack
find . -type f | xargs perl -p -i -e "s|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|g"

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15238 |21mr|perl-Class-Inspector-1.320.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-Inspector
%define upstream_version 1.32

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Get information about a class and its structure 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Config::Tiny)
BuildRequires:  perl-Test-Simple
BuildArch:	noarch

%description
Class::Inspector allows you to get information about a loaded class.
Most or all of this information can be found in other ways, but they
arn't always very friendly, and usually involve a relatively high level
of Perl wizardry, or strange and unusual looking code. Class::Inspector
attempts to provide an easier, more friendly interface to this
information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15239 |21mr|perl-Class-ISA-0.360.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-ISA
%define upstream_version 0.36

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	14

Summary:	Report the search path thru an ISA tree

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Test)
BuildArch:	noarch

%description
Suppose you have a class (like Food::Fish::Fishstick) that is derived, via
its @ISA, from one or more superclasses (as Food::Fish::Fishstick is from
Food::Fish, Life::Fungus, and Chemicals), and some of those superclasses
may themselves each be derived, via its @ISA, from one or more superclasses
(as above).

When, then, you call a method in that class ($fishstick->calories), Perl
first searches there for that method, but if it's not there, it goes
searching in its superclasses, and so on, in a depth-first (or maybe
"height-first" is the word) search. In the above example, it'd first look
in Food::Fish, then Food, then Matter, then Life::Fungus, then Life, then
Chemicals.

This library, Class::ISA, provides functions that return that list -- the
list (in order) of names of classes Perl would search to find a method,
with no duplicates.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README ChangeLog
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15240 |21mr|perl-Class-Load-0.230.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Load
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	A working (require "Class::Name") and more

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz
Source1:	perl-Class-Load.rpmlintrc

BuildRequires:  perl(Data::OptList)
BuildRequires: perl(namespace::clean)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(Module::Implementation)
BuildRequires:  perl(Module::Runtime)
BuildRequires:  perl(Package::Stash)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::Fatal)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Requires)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
'require EXPR' only accepts 'Class/Name.pm' style module names, not
'Class::Name'. How frustrating! For that, we provide 'load_class
'Class::Name''.

It's often useful to test whether a module can be loaded, instead of
throwing an error when it's not available. For that, we provide
'try_load_class 'Class::Name''.

Finally, sometimes we need to know whether a particular class has been
loaded. Asking '%INC' is an option, but that will miss inner packages and
any class for which the filename does not correspond to the package name.
For that, we provide 'is_class_loaded 'Class::Name''.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15241 |21mr|perl-Class-Load-XS-0.90.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Load-XS
%define upstream_version 0.09

Summary:	XS implementation of parts of Class::Load
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Without::Module)
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(constant)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(strict)
BuildRequires:	perl(version)
BuildRequires:	perl(warnings)

%description
This module provides an XS implementation for portions of the Class::Load
manpage. See the Class::Load manpage for API details.

%files
%doc README LICENSE META.yml Changes META.json
%{_mandir}/man3/*

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15242 |21mr|perl-Class-Method-Modifiers-2.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Method-Modifiers
%define upstream_version 2.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Provides Moose-like method modifiers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Requires)
# Required for one of the tests, but it is a contrib package with a ton of dependencies
#BuildRequires:	perl(Moose)

BuildArch:	noarch

%description
Method modifiers are a powerful feature from the CLOS (Common Lisp Object
System) world.

In its most basic form, a method modifier is just a method that calls
'$self->SUPER::foo(@_)'. I for one have trouble remembering that exact
invocation, so my classes seldom re-dispatch to their base classes. Very
bad!

'Class::Method::Modifiers' provides three modifiers: 'before', 'around',
and 'after'. 'before' and 'after' are run just before and after the method
they modify, but can not really affect that original method. 'around' is
run in place of the original method, with a hook to easily call that
original method. See the 'MODIFIERS' section for more details on how the
particular modifiers work.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Class

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15243 |21mr|perl-Class-Refresh-0.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Refresh
%define upstream_version 0.07

Summary:	Refresh your classes during runtime
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B)
BuildRequires:	perl(Carp)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Class::Unload)
BuildRequires:	perl(Devel::OverrideGlobalRequire)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
During development, it is fairly common to cycle between writing code and
testing that code. Generally the testing happens within the test suite, but
frequently it is more convenient to test things by hand when tracking down
a bug, or when doing some exploratory coding. In many situations, however,
this becomes inconvenient - for instance, in a REPL, or in a stateful web
application, restarting from the beginning after every code change can get
pretty tedious. This module allows you to reload your application classes
on the fly, so that the code/test cycle becomes a lot easier.

This module takes a hash of import arguments, which can include:

* track_require

%files
%doc META.json META.yml LICENSE Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
rm -fr t/other-api.t

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15244 |21mr|perl-Class-Singleton-1.500.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Class-Singleton
%define upstream_version 1.5

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	A Singleton class for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is the Class::Singleton module. A Singleton describes an object class that
can have only one instance in any system. This module implements a Singleton
class from which other classes can be derived.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Class
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15245 |21mr|perl-Class-Tiny-1.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Class-Tiny
%define upstream_version 1.008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Minimalist class construction
License:    ASL 2.0
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Class/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::More) >= 0.960.0
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This module offers a minimalist class construction kit in around 120
lines of code. Here is a list of features:

*   defines attributes via import arguments
*   generates read-write accessors
*   supports lazy attribute defaults
*   supports custom accessors
*   superclass provides a standard "new" constructor
*   "new" takes a hash reference or list of key/value pairs
*   "new" has heuristics to catch constructor attribute typos
*   "new" calls "BUILD" for each class from parent to child
*   superclass provides a "DESTROY" method
*   "DESTROY" calls "DEMOLISH" for each class from child to parent

It uses no non-core modules for any recent Perl. On Perls older than
v5.10 it requires MRO::Compat. On Perls older than v5.14, it requires
Devel::GlobalDestruction.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CONTRIBUTING.mkdn Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15246 |21mr|perl-Class-Unload-0.90.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Class-Unload
%define upstream_version 0.09

Summary:	Unload a class
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/Class-Unload-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
Unload a class.

%files
%doc README Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15247 |21mr|perl-Class-XSAccessor-1.190.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define upstream_name Class-XSAccessor
%define upstream_version 1.19

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Class::XSAccessor::Heavy\\)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Generate fast XS accessors without runtime compilation
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Class/Class-XSAccessor-%{upstream_version}.tar.gz

BuildRequires:	perl(AutoXS::Header)
%if %rpm4
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Test::More)
Provides:      perl(Class::XSAccessor::Heavy) = %{version}-%{release}
%endif
BuildRequires:	perl-devel
Provides:	perl-Class-XSAccessor-Array = %{version}-%{release}

%description
Class::XSAccessor implements fast read, write and read/write accessors in
XS. Additionally, it can provide predicates such as 'has_foo()' for testing
whether the attribute 'foo' is defined in the object. It only works with
objects that are implemented as ordinary hashes. the
Class::XSAccessor::Array manpage implements the same interface for objects
that use arrays for their internal representation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%if %rpm4
%{perl_vendorarch}/*
%else
%{perl_vendorlib}/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15248 |21mr|perl-Clipboard-0.13-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Clipboard

%if %{_use_internal_dependency_generator}
%global __requires_exclude ^perl\\((Mac::Pasteboard|Win32::Clipboard)
%endif

Summary:	Copy and paste with any OS
Name:		perl-%{module}
Version:	0.13
Release:	9
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source0:	https://cpan.metacpan.org/authors/id/K/KI/KING/%{module}-%{version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Spiffy)
BuildRequires:	perl-Test-Simple
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Who doesn't remember the first time they learned to copy and paste, and
generated an exponentially growing text document? Yes, that's right,
clipboards are magical.

With Clipboard.pm, this magic is now trivial to access, cross-platformly,
from your Perl code.

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Clipboard.pm
%{perl_vendorlib}/Clipboard
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15249 |21mr|perl-Clone-0.310.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define upstream_name    Clone
%define upstream_version 0.31

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    16
Summary: 	Recursively copy Perl datatypes
License: 	GPL+ or Artistic
Group: 		Development/Perl
Url: 		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/R/RD/RDF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

%description
This module provides a clone() method which makes recursive
copies of nested hash, array, scalar and reference types, 
including tied variables and objects.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes
%{perl_vendorarch}/Clone.pm
%{perl_vendorarch}/auto/Clone
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15250 |21mr|perl-Clone-PP-1.60.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Clone-PP
%define upstream_version 1.06

Summary:	Recursively copy Perl datatypes
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Clone/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides a general-purpose clone function to make deep
copies of Perl data structures. It calls itself recursively to copy
nested hash, array, scalar and reference types, including tied
variables and objects.

%files
%doc README
%{_mandir}/*/*
%{perl_vendorlib}/Clone

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15251 |21mr|perl-common-sense-3.740.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    common-sense
%define upstream_version 3.74

# Not noarch, installs files to arch-dependent folders
%define debug_package %{nil}

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Save a tree AND a kitten, use common::sense!

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/common/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

Provides:	perl(common::sense)

%description
This module implements some sane defaults for Perl programs, as defined by
two typical (or not so typical - use your common sense) specimens of Perl
coders.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/common/*.pm
%{perl_vendorarch}/common/*.pod

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15252 |21mr|perl-Compiler-Lexer-0.230.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Compiler-Lexer
%define upstream_version 0.23

Name:		perl-Compiler-Lexer
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Lexical Analyzer for Perl5
License:	perl
Group:		Development/Perl
URL:		http://search.cpan.org/dist/Compiler-Lexer/
Source0:	https://cpan.metacpan.org/authors/id/G/GO/GOCCY/Compiler-Lexer-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	gcc-c++
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(Module::Build::XSUtil)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Devel::PPPort)
# autoprovide bug?
Provides:	perl(Compiler::Lexer::Constants)

%files
%{perl_vendorarch}/*
%{_mandir}/man3/*
#-------------------------------------------------------
%description
Perl module Compiler::Lexer is a Lexical Analyzer for Perl5.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15253 |21mr|perl-Config-General-2.630.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Config-General
%define upstream_version 2.63

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Generic Config perl module


License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module opens a config file and parses it's contents for you. The
method new requires one parameter which needs to be a filename. The
method getall returns a hash which contains all options and it's
associated values of your config file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changelog README

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changelog README
%{perl_vendorlib}/Config
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15254 |21mr|perl-Config-GitLike-1.160.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Config-GitLike
%define upstream_version 1.16

Summary:	Git-like config file parsing with cascaded inheritance
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Moo) >= 2.0.1
BuildRequires:	perl(MooX::Types::MooseLike::Base) >= 0.280.0
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(strictures)
BuildArch:	noarch

%description
This module handles interaction with configuration files of the style used
by the version control system Git. It can both parse and modify these
files, as well as create entirely new ones.

You only need to know a few things about the configuration format in order
to use this module. First, a configuration file is made up of key/value
pairs. Every key must be contained in a section. Sections can have
subsections, but they don't have to. For the purposes of setting and
getting configuration variables, we join the section name, subsection name,
and variable name together with dots to get a key name that looks like
"section.subsection.variable". These are the strings that you'll be passing
in to 'key' arguments.

Configuration files inherit from each other. By default, 'Config::GitLike'
loads data from a system-wide configuration file, a per-user configuration
file, and a per-directory configuration file, but by subclassing and
overriding methods you can obtain any combination of configuration files.
By default, configuration files that don't exist are just skipped.

%files
%doc META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/Config/

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15255 |21mr|perl-Config-INI-0.27.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-INI
%define upstream_version 0.027

Summary:	A subclassable .ini-file emitter
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Mixin::Linewise::Readers)
BuildRequires:	perl(Mixin::Linewise::Writers)

BuildArch:	noarch

%description
Config::INI::Reader is _yet another_ config module implementing _yet
another_ slightly different take on the undeniably easy to read the ".ini"
file format|Config::INI manpage. Its default behavior is quite similar to
that of the Config::Tiny manpage, on which it is based.

The chief difference is that Config::INI::Reader is designed to be
subclassed to allow for side-effects and self-reconfiguration to occur
during the course of reading its input.

%files
%doc Changes LICENSE README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15256 |21mr|perl-Config-IniFiles-2.980.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Config-IniFiles
%define upstream_version 2.98

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A module for reading .ini-style configuration files

License: 	GPL
Group: 		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Module::Build)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl-devel
BuildRequires:	perl-Scalar-List-Utils
BuildRequires:  perl(Test::More)
BuildRequires:  perl(IO::Scalar)
BuildRequires:	perl(Test::Pod::Coverage)
# These would be useful for tests but they are in contrib now
# BuildRequires:	perl(Test::TrailingSpace)
# BuildRequires:	perl(Test::CPAN::Changes)
# We need version of perl(List::Util) higher than the one provided by current perl-base
Requires:	perl-Scalar-List-Utils
BuildArch: noarch

%description
This perl module allows you to access to config files written in the
.ini style.

%prep
%setup -q -n Config-IniFiles-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README
%{perl_vendorlib}/Config
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15257 |21mr|perl-Config-IniFiles-3.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Config-IniFiles
%define upstream_version 3.000003

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A module for reading .ini-style configuration files

License: 	GPL
Group: 		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Module::Build)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl-devel
BuildRequires:	perl-Scalar-List-Utils
BuildRequires:  perl(Test::More)
BuildRequires:  perl(IO::Scalar)
BuildRequires:	perl(Test::Pod::Coverage)
# These would be useful for tests but they are in contrib now
# BuildRequires:	perl(Test::TrailingSpace)
# BuildRequires:	perl(Test::CPAN::Changes)
# We need version of perl(List::Util) higher than the one provided by current perl-base
Requires:	perl-Scalar-List-Utils
BuildArch: noarch

%description
This perl module allows you to access to config files written in the
.ini style.

%prep
%setup -q -n Config-IniFiles-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc README
%{perl_vendorlib}/Config
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15258 |21mr|perl-Config-INI-Reader-Ordered-0.11.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-INI-Reader-Ordered
%define upstream_version 0.011

Summary:	Subclass of the Config::INI::Reader manpage which preserves section order
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Config::INI::Reader)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Config::INI::Reader::Ordered is a subclass of the Config::INI::Reader
manpage which preserves section order. See the Config::INI::Reader manpage
for all documentation; the only difference is as presented in the the
/SYNOPSIS manpage.

%files
%doc README Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15259 |21mr|perl-Config-Simple-4.590.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Simple
%define upstream_version 4.59

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Config-Simple module for perl 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildArch:	noarch

%description
Reading and writing configuration files is one of the most frequent
aspects of any software design. Config::Simple is the library to help
you with it.

Config::Simple is a class representing configuration file object. It
supports several configuration file syntax and tries to identify the
file syntax to parse them accordingly. Library supports parsing,
updating and creating configuration files.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find . -type f -exec chmod 0644 {} \;

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Config/Simple.pm
%{perl_vendorlib}/auto/Config/Simple
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15260 |21mr|perl-Config-Tiny-2.230.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Config-Tiny
%define upstream_version 2.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Read/Write .ini style files with as little code as possible

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Config/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
"Config::Tiny" is a perl class to read and write .ini style
configuration files with as little code as possible, reducing load time
and memory overhead. Most of the time it is accepted that Perl
applications use a lot of memory and modules. The "::Tiny" family of
modules is specifically intended to provide an ultralight alternative to
the standard modules.

This module is primarily for reading human written files, and anything
we write shouldn't need to have documentation/comments. If you need
something with more power move up to Config::Simple, Config::General or
one of the many other "Config::" modules. To rephrase, Config::Tiny does
not preserve your comments, whitespace, or the order of your config
file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
chmod 644 Changes lib/Config/Tiny.pm
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Config
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15261 |21mr|perl-Convert-ASN1-0.260.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Convert-ASN1
%define upstream_version 0.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	ASN.1 Encode/Decode library for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/G/GB/GBARR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl module used to encode and decode ASN.1 data structures using
BER/DER rules.

Needed by webmin to handle the OpenLDAP modules properly.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc ChangeLog  examples/*
%{perl_vendorlib}/Convert/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15262 |21mr|perl-Convert-BER-1.310.100-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Convert-BER
%define upstream_version 1.3101

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10
Epoch:		1

Summary:	Convert-BER (module for perl)

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Convert/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Convert::BER is a perl object class implementation to encode
and decode objects as described by ITU-T standard X.209 (ASN.1)
using Basic Encoding Rules (BER)
	
%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc MANIFEST README ChangeLog
%{perl_vendorlib}/Convert
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15263 |21mr|perl-Convert-BinHex-1.119-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Convert-BinHex

Summary:	Extract data from Macintosh BinHex files
Name:		perl-%{module}
Version:	1.119
Release:	16
License:	GPL
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Convert::BinHex is used to extract data from Macintosh BinHex files

%prep
%setup -q -n %{module}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make OPTIMIZE="%{optflags}"
# (sb) can't really do this - need a Radius server
#make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorlib}/Convert

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15264 |21mr|perl-Convert-TNEF-0.180.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Convert-TNEF
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	%{upstream_name} module for perl
License:	GPL
Group:		Development/Perl
Url:		http://www.cpan.org/modules/by-module/Convert/
Source0:	%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-MIME-tools
BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} module for perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Convert/*
%{_mandir}/*/*
%doc MANIFEST README Changes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15265 |21mr|perl-Convert-UU-0.520.100-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Convert-UU
%define upstream_version 0.5201

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	UUencode and UUdecode

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Convert/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl-Test-Simple
BuildArch:	noarch

%description
* * uuencode

  uuencode() takes as the first argument a string that is to be uuencoded.
  Note, that it is the string that is encoded, not a filename.
  Alternatively a filehandle may be passed that must be opened for reading.
  It returns the uuencoded string including 'begin' and 'end'. Second and
  third argument are optional and specify filename and mode. If unspecified
  these default to "uuencode.uu" and 644.

* * uudecode

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*
%{_bindir}/puudecode
%{_bindir}/puuencode
%{_mandir}/man1/puudecode.1*
%{_mandir}/man1/puuencode.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15266 |21mr|perl-Convert-UUlib-1.500.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Convert-UUlib
%define upstream_version 1.5

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5
Epoch:		2
Summary:	%{upstream_name} module for perl
License: 	GPL
Group: 		Development/Perl
Url: 		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Convert/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Canary::Stability)

%description
Convert::UUlib is a Perl interface to the uulib library (a.k.a.
uudeview/uuenview).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor 
%make

%check
%__make test

%install
%makeinstall_std

%clean

%files
%doc README Changes COPYING doc
%{perl_vendorarch}/auto/Convert
%{perl_vendorarch}/Convert
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15267 |21mr|perl-Coro-6.570.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Coro
%define upstream_version 6.57
%global __provides_exclude State.so|Event.so|EV.so
%global __requires_exclude Exporter::|Coro::Socket::

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Summary:	Coroutine process abstraction
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source0:	http://search.cpan.org/CPAN/authors/id/M/ML/MLEHMANN/Coro-%{upstream_version}.tar.gz

BuildRequires: perl(AnyEvent) >= 7.70.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Guard) >= 1.23.0
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Storable) >= 2.300.0
BuildRequires: perl(common::sense)
BuildRequires: perl-devel
BuildRequires: perl(EV)
BuildRequires: perl(Event) >= 1.240.0
BuildRequires: perl(IO::AIO)
BuildRequires: perl(Canary::Stability) >= 2001.0.0


%description
This module collection manages coroutines. Coroutines are similar to
threads but don't run in parallel.

%files
%doc README.linux-glibc README Changes COPYING META.json META.yml
%dir %{perl_vendorarch}/Coro
%{perl_vendorarch}/Coro/AIO.pm
%{perl_vendorarch}/Coro/Channel.pm
%{perl_vendorarch}/Coro/CoroAPI.h
%{perl_vendorarch}/Coro/Debug.pm
%{perl_vendorarch}/Coro/Event.pm
%{perl_vendorarch}/Coro/EV.pm
%{perl_vendorarch}/Coro/Handle.pm
%{perl_vendorarch}/Coro/Intro.pod
%{perl_vendorarch}/Coro/LWP.pm
%{perl_vendorarch}/Coro/MakeMaker.pm
%{perl_vendorarch}/Coro/RWLock.pm
%{perl_vendorarch}/Coro/Select.pm
%{perl_vendorarch}/Coro/Semaphore.pm
%{perl_vendorarch}/Coro/SemaphoreSet.pm
%{perl_vendorarch}/Coro/Signal.pm
%{perl_vendorarch}/Coro/Socket.pm
%{perl_vendorarch}/Coro/Specific.pm
%{perl_vendorarch}/Coro/State.pm
%{perl_vendorarch}/Coro/Storable.pm
%{perl_vendorarch}/Coro/Timer.pm
%{perl_vendorarch}/Coro/Util.pm
%{perl_vendorarch}/Coro/jit-*.pl
%{perl_vendorarch}/Coro.pm
%{perl_vendorarch}/auto
%{_mandir}/man3/Coro.3pm*
%{_mandir}/man3/Coro::AIO.3pm*
%{_mandir}/man3/Coro::Channel.3pm*
%{_mandir}/man3/Coro::Debug.3pm*
%{_mandir}/man3/Coro::Event.3pm*
%{_mandir}/man3/Coro::EV.3pm.*
%{_mandir}/man3/Coro::Handle.3pm*
%{_mandir}/man3/Coro::Intro.3pm*
%{_mandir}/man3/Coro::LWP.3pm*
%{_mandir}/man3/Coro::MakeMaker.3pm*
%{_mandir}/man3/Coro::RWLock.3pm*
%{_mandir}/man3/Coro::Select.3pm*
%{_mandir}/man3/Coro::Semaphore.3pm*
%{_mandir}/man3/Coro::SemaphoreSet.3pm*
%{_mandir}/man3/Coro::Signal.3pm*
%{_mandir}/man3/Coro::Socket.3pm*
%{_mandir}/man3/Coro::Specific.3pm*
%{_mandir}/man3/Coro::State.3pm*
%{_mandir}/man3/Coro::Storable.3pm*
%{_mandir}/man3/Coro::Timer.3pm*
%{_mandir}/man3/Coro::Util.3pm*

#---------------------------------------
%package	AnyEvent
Summary:	Use Coro within an AnyEvent environment
Group:		Development/Perl

%description	AnyEvent
This module integrates coroutines into any event loop supported by
AnyEvent, combining event-based programming with coroutine-based
programming in a natural way.

%files AnyEvent
%doc README Changes COPYING META.json META.yml
%{perl_vendorarch}/Coro/AnyEvent.pm
%{_mandir}/man3/Coro::AnyEvent*
#---------------------------------------
%global __requires_exclude Exporter::|Coro::Socket::

%package	BDB
Summary:	Truly asynchronous bdb access
Group:		Development/Perl

%description	BDB
This module implements a thin wrapper around the BDB module.

Each BDB request that could block and doesn't get passed a callback
will normally block all coroutines. after loading this module, this
will no longer be the case.

%files BDB
%doc README Changes COPYING META.json META.yml
%{perl_vendorarch}/Coro/BDB.pm
%{_mandir}/man3/Coro::BDB*
#---------------------------------------

%prep
%setup -qn %{module}-%{upstream_version} 
perl -pi -e 's|/opt/bin/perl|%{__perl}|' eg/* Coro/*

# remove failing test - http://rt.cpan.org/Ticket/Display.html?id=32475
rm EV/t/01_unblock.t

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%check
make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15268 |21mr|perl-Cpanel-JSON-XS-4.270.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cpanel-JSON-XS
%define upstream_version 4.27
%global __provides_exclude XS.so
%global __requires_exclude perl\\(JSON::PC\\)

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Dummy module providing Cpanel::JSON::XS::Boolean
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/R/RU/RURBAN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Devel::Peek)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Pod::Text) >= 2.80.0
BuildRequires: perl(Pod::Usage) >= 1.330.0
BuildRequires: perl(Test)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(JSON::XS) 
BuildRequires: perl(JSON)
BuildRequires: perl(Test::LeakTrace) 
BuildRequires: perl(Mojo::JSON)
BuildRequires: perl-devel

%description
This module converts Perl data structures to JSON and vice versa. Its
primary goal is to be _correct_ and its secondary goal is to be _fast_. To
reach the latter goal it was written in C.

As this is the n-th-something JSON module on CPAN, what was the reason to
write yet another JSON module? While it seems there are many JSON modules,
none of them correctly handle all corner cases, and in most cases their
maintainers are unresponsive, gone missing, or not listening to bug reports
for other reasons.

See below for the Cpanel fork.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
perl -pi -e "s|/opt/bin/perl|%{__perl}|" eg/bench

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc COPYING Changes META.json META.yml README SIGNATURE XS eg
%{_bindir}/*
%{_mandir}/man?/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15269 |21mr|perl-CPAN-Meta-Check-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    CPAN-Meta-Check
%define upstream_version 0.014

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Verify requirements in a CPAN::Meta object
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/CPAN/CPAN-Meta-Check-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(CPAN::Meta) >= 2.150.1
BuildRequires:	perl(CPAN::Meta::Requirements) >= 2.133.0
BuildRequires:	perl(CPAN::Meta::Prereqs)
BuildRequires:	perl(Exporter) >= 5.700.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Metadata)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl(Env)
BuildRequires:	perl(Module::Metadata) >= 1.0.27

BuildArch:	noarch

%description
This module verifies if requirements described in a CPAN::Meta object are
present.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15270 |21mr|perl-CPANPLUS-0.917.600-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 CPANPLUS
%define upstream_version 0.9176

%if %{_use_internal_dependency_generator}
%global __requires_exclude ^perl\\((Your::Module::Here)
%else
%define _requires_exceptions perl(Your::Module::Here)
%endif

Summary:	API & CLI access to the CPAN mirrors


Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Archive::Extract)          >=  0.160.0
BuildRequires:	perl(Archive::Tar)
BuildRequires:	perl(File::Fetch)               >= 0.160.0
BuildRequires:	perl(IO::Zlib)
BuildRequires:	perl(IPC::Cmd)                  >= 0.420.0
BuildRequires:	perl(Locale::Maketext::Simple)  >= 0.10.0
BuildRequires:	perl(Log::Message)              >= 0.10.0
BuildRequires:	perl(Log::Message::Simple)
BuildRequires:	perl(Module::CoreList)          >= 2.90.0
BuildRequires:	perl(Module::Load)              >= 0.100.0
BuildRequires:	perl(Module::Load::Conditional) >= 0.280.0
BuildRequires:	perl(Module::Loaded)            >= 0.10.0
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(Object::Accessor)          >= 0.340.0
BuildRequires:	perl(Package::Constants)        >= 0.10.0
BuildRequires:	perl(Params::Check)             >= 0.220.0
BuildRequires:	perl(Parse::CPAN::Meta)         >= 0.20.0
BuildRequires:	perl(Term::UI)                  >= 0.50.0
BuildRequires:	perl(Test::Harness)             >= 2.620.0
BuildArch:	noarch

# (misc) not detected automatically, needed by CPANPLUS/Module.pm line 450
Requires:	perl(Module::CoreList)
Requires:	perl(Module::Pluggable)
Requires:	perl(Module::Signature)

%description
The CPANPLUS library is an API to the CPAN mirrors and a collection of
interactive shells, commandline programs, etc, that use this API.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# wants to write to the root fs
rm -f t/20_CPANPLUS-Dist-MM.t

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README ChangeLog
%{_bindir}/cpan2dist
%{_bindir}/cpanp
%{_bindir}/cpanp-run-perl
%{perl_vendorlib}/CPANPLUS*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15271 |21mr|perl-CPANPLUS-Dist-Build-0.760.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       CPANPLUS-Dist-Build
%define upstream_version 0.76

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Constants for CPANPLUS::Dist::Build

Url:        http://search.cpan.org/dist/%{upstream_name}
Source:     https://cpan.metacpan.org/authors/id/B/BI/BINGOS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(CPANPLUS)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IPC::Cmd)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl(Locale::Maketext::Simple)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Load)
BuildRequires: perl(Module::Load::Conditional)
BuildRequires: perl(Module::Pluggable)
BuildRequires: perl(Object::Accessor)
BuildRequires: perl(Params::Check)
BuildRequires: perl(Test::Harness)
BuildRequires: perl(Test::More)
# versionning the corresponding virtual package is not enough
BuildRequires: perl-Module-Load-Conditional
BuildArch: noarch

%description
'CPANPLUS::Dist::Build' is a distribution class for 'Module::Build' related
modules. Using this package, you can create, install and uninstall perl
modules. It inherits from 'CPANPLUS::Dist'.

Normal users won't have to worry about the interface to this module, as it
functions transparently as a plug-in to 'CPANPLUS' and will just 'Do The
Right Thing' when it's loaded.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/CPANPLUS

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15272 |21mr|perl-Crypt-Cracklib-1.700.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Crypt-Cracklib
%define upstream_version 1.7

Summary:	Perl interface to Alec Muffett's Cracklib
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Crypt-Cracklib-1.6-fix-path.patch
Patch1:		Crypt-Cracklib-1.7-no-werror.patch
BuildRequires:	libcrack-devel
BuildRequires:	perl-CPAN
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl-devel

%description
This is a simple interface to the cracklib library.

%files
%doc Changes README
%{_mandir}/man3/*

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

#---------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
%patch0 -p1
%patch1 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15273 |21mr|perl-Crypt-OpenSSL-Guess-0.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-OpenSSL-Guess
%define upstream_version 0.11

%{?perl_default_filter}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Guess OpenSSL include path
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Config)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Symbol)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
Crypt::OpenSSL::Guess provides helpers to guess OpenSSL include path on any
platforms.

Often MacOS's homebrew OpenSSL cause a problem on installation due to
include path is not added. Some CPAN module provides to modify include path
with configure-args, but the Carton manpage or the Module::CPANfile manpage
is not supported to pass configure-args to each modules. Crypt::OpenSSL::*
modules should use it on your the Makefile.PL manpage.

This module resolves the include path by the Net::SSLeay manpage's
workaround. Original code is taken from
'inc/Module/Install/PRIVATE/Net/SSLeay.pm' by the Net::SSLeay manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15274 |21mr|perl-Crypt-OpenSSL-Random-0.110.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-OpenSSL-Random
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5
Summary:	Crypt-OpenSSL-Random module for perl 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		Crypt-OpenSSL-Random-0.10-link.patch
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(openssl)

%description
Crypt-OpenSSL-Random module for perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1
# perl path hack
find . -type f | xargs %__perl -p -i -e "s|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|g"

%build
perl Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix} </dev/null
%__make

%check
%__make test

%install
%makeinstall_std

%files
%doc Changes

%if %rpm5
%{perl_vendorlib}/*/auto/Crypt/OpenSSL/Random/Random.so
%{perl_vendorlib}/*/Crypt/OpenSSL/Random.pm
%else
%{perl_vendorarch}/*
%endif

%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15275 |21mr|perl-Crypt-OpenSSL-RSA-0.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Crypt-OpenSSL-RSA
%define upstream_version 0.31

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:	%{upstream_name} module for perl 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildRequires:	perl-Crypt-OpenSSL-Random
BuildRequires:	perl(Crypt::OpenSSL::Guess)
BuildRequires:	pkgconfig(openssl)

%description
%{upstream_name} module for perl

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%__make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorarch}/auto/Crypt
%{perl_vendorarch}/Crypt
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15276 |21mr|perl-Crypt-OpenSSL-X509-1.812.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Crypt-OpenSSL-X509
%define upstream_version 1.812
%define uname perl-crypt-openssl-x509
%define uversion 1.8.12

Summary:	Perl extension to OpenSSL's X509 API
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
#Source0:	http://search.cpan.org/CPAN/authors/id/D/DA/DANIEL/%{upstream_name}-%{upstream_version}.tar.gz
Source0:	https://github.com/dsully/perl-crypt-openssl-x509/archive/%{uversion}.tar.gz?/%{uname}-%{uversion}.tar.gz
Patch0:		perl-crypt-openssl-x509-1.8.12-no-werro.patch
BuildRequires:	perl-devel
BuildRequires:  perl-Test-Simple
BuildRequires:	pkgconfig(openssl)
BuildRequires:	perl(Module::Install)
BuildRequires:	perl(YAML)

%description
This is a Perl extension to OpenSSL's X509 API. It implements a large majority
of OpenSSL's useful X509 API.

%files
%doc Changes README TODO certs
%{perl_vendorarch}/Crypt
%{perl_vendorarch}/auto/Crypt
%{_mandir}/*/*

#---------------------------------------------------------------------------

%prep
#%setup -q -n %{upstream_name}-%{upstream_version}
%setup -qn %{uname}-%{uversion}
%patch0 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15277 |21mr|perl-Crypt-PasswdMD5-1.400.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Crypt-PasswdMD5
%define upstream_version 1.40

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Perl extension for crypt()-compatible interfaces to the MD5-based crypt()

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.cpan.org:21/pub/CPAN/modules/by-module/Crypt/Crypt-PasswdMD5-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This  code  provides  various  crypt()-compatible  interfaces  to  the
MD5-based crypt() function found in  various *nixes. It's based on the
implementation  found  on FreeBSD  2.2.[56]-RELEASE

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 's,(SSL_DIR.*)/lib\b,\1/%{_lib},g' Makefile.PL

%build
CFLAGS="%{optflags}" echo | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Crypt/PasswdMD5.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15278 |21mr|perl-Crypt-SmbHash-0.120.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Crypt-SmbHash
%define upstream_version 0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Crypt::SmbHash Perl module - generate LM/NT hashes like smbpasswd

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Crypt-SmbHash/
Source0:	http://www.cpan.org/modules/by-module/Crypt/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This module provides functions to generate LM/NT hashes used in
Samba's 'password' files, like smbpasswd.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
%{!?_without_tests:make test}

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc Changes README
%{perl_vendorlib}/Crypt/SmbHash.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15279 |21mr|perl-Curses-1.360.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Curses
%define upstream_version 1.36

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3
Summary:	Perl module for character screen handling and windowing
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/G/GI/GIRAFFED/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple

%description
Curses is the interface between Perl and your system's curses(3) library. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"
chmod 644 Artistic Copying INSTALL README

%check
%make test

%install
%makeinstall_std

%files
%doc Artistic Copying INSTALL README
%{perl_vendorarch}/auto/Curses
%{perl_vendorarch}/Curses*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15280 |21mr|perl-Curses-UI-0.960.900-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Curses-UI
%define upstream_version 0.9609

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	A curses based perl OO user interface framework

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Curses/Curses-UI-%{upstream_version}.tar.gz
Patch0:		Curses-UI-0.95-more-Listbox-alike-Popupmenu.patch
Patch2:		Curses-UI-0.95-add-method-to-modify-button-label.patch
Patch3:		Curses-UI-0.95-allow-setting-active-line.patch
Patch4:		Curses-UI-0.9607-focus-up-and-focus-down.patch
Patch5:		Curses-UI-0.95-make-dialog-message-focusable-if-scrolled.patch
Patch6:		Curses-UI-0.95-new-Container-method--delete_object.patch
Patch7:		Curses-UI-0.95-do-not-replace-last-char-with-overflow-char.patch
Patch8:		Curses-UI-0.9607-gpm-does-not-work--hide-error-for-now.patch
Patch9:		Curses-UI-0.95-only-redraw-Listbox-when-needed-otherwise-it-occurs-after-focus-next.patch

BuildRequires:	perl(Curses)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl-CPAN
BuildRequires:	perl-Test
BuildRequires:	perl-devel
BuildArch:	noarch
Requires:	perl(Curses)
Requires:	perl(Term::ReadKey)
# temporary dep due to the perl-5.14 bump
BuildRequires:	perl-Curses >= 1.280.0-6

%description
A UI framework based on the curses library. Curses::UI contains
several widgets which can be used to build a user interface.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1

# perl path hack
find . -type f | xargs perl -p -i -e "s|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|g"

%build
perl Makefile.PL INSTALLDIRS=vendor

%make OPTIMIZE="%{optflags}"

%check
# need setting COLUMNS and LINES to help it getting "Terminal Size" under nohup or iurt
COLUMNS=80 LINES=25 make test

%install
%makeinstall_std

%files
%doc README examples CREDITS Changes
%{perl_vendorlib}/Curses
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15281 |21mr|perl-Cwd-Guard-0.40.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Cwd-Guard
%define upstream_version 0.04

Summary:	Temporary changing working directory (chdir)
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Cwd/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::Meta) >= 2.150.10
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(base)
BuildRequires:	perl(parent)
BuildArch:	noarch

%description
CORE::chdir Cwd:: Guard can change the current directory (chdir) using a
limited scope.

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15282 |21mr|perl-Data-Dump-1.230.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Data-Dump
%define upstream_version 1.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Pretty printing of data structures

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source:		ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl-Test
BuildRequires:  perl-Test-Simple
BuildArch:	noarch

%description
This module provides a single function called dump() that takes a list
of values as its argument and produces a string as its result. The
string contains Perl code that, when evaled, produces a deep copy of
the original arguments. The string is formatted for easy reading.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/Data

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15283 |21mr|perl-Data-Dump-Streamer-2.390.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Data-Dump-Streamer
%define upstream_version 2.39

Summary:	Accurately serialize a data structure as Perl code
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::Diff)
BuildRequires:	perl(B::Deparse)
BuildRequires:	perl(B::Utils)
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(JSON::XS)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Abbrev)
BuildRequires:	perl(Text::Balanced)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl-Devel-Peek
Requires:	perl(B::Utils)
Provides:	perl(Data::Dump::Streamer::_::Printers) = %{version}

%description
Given a list of scalars or reference variables, writes out their contents in
perl syntax. The references can also be objects. The contents of each variable
is output using the least number of Perl statements as convenient, usually only
one. Self-referential structures, closures, and objects are output correctly.

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/Data
%{perl_vendorarch}/DDS.pm
%{perl_vendorarch}/auto/Data

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
yes | perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15284 |21mr|perl-Data-Flow-1.20.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Flow
%define upstream_version 1.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Simple-minded recipe-controlled build of data

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:	noarch
BuildRequires:	perl-devel

%description
Perl extension for simple-minded recipe-controlled build of data.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Data
%{perl_vendorlib}/auto/Data
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15285 |21mr|perl-Data-HexDump-0.20.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Data-HexDump
%define upstream_version 0.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	A Simple Hexadecimal Dumper	

License:	GPL
Group:		Development/Perl
Requires:	perl
Url:		http://www.cpan.org/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/F/FT/FTASSIN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Dump in hexadecimal the content of a scalar. The result is returned 
in a string. Each line of the result consists of the offset in the
source in the leftmost column of each line, followed by one or more
columns of data from the source in hexadecimal. The rightmost column
of each line shows the printable characters (all others are shown
as single dots)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor 
make OPTIMIZE="%{optflags}"
make test

%install
%makeinstall_std 

# (sb) conflicts with util-linux
mv %{buildroot}%{_bindir}/hexdump %{buildroot}%{_bindir}/perl-hexdump

%files
%{_mandir}/man3/Data::HexDump.3pm*
%dir %{perl_vendorlib}/Data
%{perl_vendorlib}/Data/HexDump.pm
%{_bindir}/perl-hexdump

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15286 |21mr|perl-Data-OptList-0.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-OptList
%define upstream_version 0.110

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Parse and validate simple name/value option pairs

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Sub::Install)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl-Test-Simple
BuildRequires:	perl-devel

BuildArch:	noarch

%description 
Hashes are great for storing named data, but if you want more than one entry
for a name, you have to use a list of pairs.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Data
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15287 |21mr|perl-Data-Printer-1.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Data-Printer
%define upstream_version 1.000004

%bcond_with tests

Summary:	Pretty-printing date and time objects (not just DateTime!)
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
%if %{with tests}
BuildRequires:	perl(Carp)
BuildRequires:	perl(Clone::PP)
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Pty::Easy)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sort::Naturally)
BuildRequires:	perl(Term::ANSIColor)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(version)
%endif
BuildArch:	noarch

%description
Tired of typing 'use Data::Printer' every time? 'DDP' lets you quickly call
your favorite variable dumper!

It behaves exacly like the Data::Printer manpage - it is, indeed, just an
alias to it :)

Happy debugging!

%files
%doc Changes META.json META.yml README*
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%if %{with tests}
%check
%make test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15288 |21mr|perl-Data-Section-Simple-0.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Data-Section-Simple
%define upstream_version 0.07

Summary:	Read data from __DATA__
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Data/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildArch:	noarch

%description
Data::Section::Simple is a simple module to extract data from '__DATA__'
section of the file.

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15289 |21mr|perl-Date-Calc-6.400.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Date-Calc
%define upstream_version 6.4

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary: 	Gregorian calendar date calculations

License: 	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Date/%{upstream_name}-%{upstream_version}.tar.gz

# these versioned requires are expressed in Makefile.PL, but not in module
BuildRequires:	perl(Bit::Vector) >= 6.400.0
BuildRequires:	perl(Carp::Clan)  >= 5.3
BuildRequires:	perl-devel

BuildArch: noarch
Obsoletes:	%{name} < %{version}-%{release}

%description
This library provides all sorts of date calculations based on the Gregorian
calendar (the one used in all western countries today), thereby complying
with all relevant norms and standards: ISO/R 2015-1971, DIN 1355 and, to
some extent, ISO 8601 (where applicable).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} -pi -e 's,^#!perl,#!/usr/bin/perl,' examples/*.{pl,cgi}
perl Makefile.PL INSTALLDIRS=vendor
%make  CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%clean 

%files
%defattr(-,root,root,755)
%doc README.txt CHANGES.txt CREDITS.txt META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/Date

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15290 |21mr|perl-Date-ISO8601-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Date-ISO8601
%define upstream_version 0.005

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    The three ISO 8601 numerical calendars
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Date/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(constant)
BuildRequires: perl(integer)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildArch: noarch

%description
The international standard ISO 8601 "Data elements and interchange formats
- Information interchange - Representation of dates and times" defines
three distinct calendars by which days can be labelled. It also defines
textual formats for the representation of dates in these calendars. This
module provides functions to convert dates between these three calendars
and Chronological Julian Day Numbers, which is a suitable format to do
arithmetic with. It also supplies functions that describe the shape of
these calendars, to assist in calendrical calculations. It also supplies
functions to represent dates textually in the ISO 8601 formats. ISO 8601
also covers time of day and time periods, but this module does nothing
relating to those parts of the standard; this is only about labelling days.

The first ISO 8601 calendar divides time up into years, months, and days.
It corresponds exactly to the Gregorian calendar, invented by Aloysius
Lilius and promulgated by Pope Gregory XIII in the late sixteenth century,
with AD (CE) year numbering. This calendar is applied to all time, not just
to dates after its invention nor just to years 1 and later. Thus for
ancient dates it is the proleptic Gregorian calendar with astronomical year
numbering.

The second ISO 8601 calendar divides time up into the same years as the
first, but divides the year directly into days, with no months. The
standard calls this "ordinal dates". Ordinal dates are commonly referred to
as "Julian dates", a mistake apparently deriving from true Julian Day
Numbers, which divide time up solely into linearly counted days.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} ./Build.PL installdirs=vendor

./Build

%check
./Build test

%install
%{__perl} ./Build install destdir=%{buildroot} 

%files
%doc META.yml Changes README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15291 |21mr|perl-Date-Manip-6.820.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Date-Manip
%define upstream_version 6.82

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	%{upstream_name} upstream_name for Perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Date/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::Inter)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(YAML::Syck)
BuildRequires: perl(Module::Build)
BuildArch:	noarch


%description
This is a set of routines designed to make any common date/time
manipulation easy to do. Operations such as comparing two times,
calculating a time a given amount of time from another, or parsing
international times are all easily done.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL installdirs=vendor
%make

%install
%makeinstall_std

%check
%make test

%files
%doc  INSTALL README
%{_mandir}/man*/*
%{perl_vendorlib}/Date
%{_bindir}/dm_date
%{_bindir}/dm_zdump

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15292 |21mr|perl-DateTime-1.550.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DateTime
%define upstream_version 1.55

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		2
Summary:	A date and time object in Perl
License:	Artistic
Group:		Development/Perl
URL:		http://datetime.perl.org/
Source0:	https://cpan.metacpan.org/authors/id/D/DR/DROLSKY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(DateTime::Locale) >= 0.21
BuildRequires:	perl(Exception::Class)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(CPAN::Meta::Requirements)
BuildRequires:	perl(CPAN::Meta::Check)
BuildRequires:	perl(DateTime::TimeZone) >= 0.38
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(Params::Validate) >= 0.76
BuildRequires:	perl(Pod::Man) >= 1.14
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 0.34
BuildRequires:	perl(Time::Local) >= 1.04
BuildRequires:	perl(Math::Round)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl-devel >= 2:5.14
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl-List-MoreUtils >= 0.320.0-3
BuildRequires:	perl(ExtUtils::CBuilder)


Provides:	perl(DateTimePP)
Provides:	perl(DateTimePPExtra)

%description
DateTime is a class for the representation of date/time combinations, and is
part of the Perl DateTime project.

It represents the Gregorian calendar, extended backwards in time before its
creation (in 1582). This is sometimes known as the "proleptic Gregorian
calendar". In this calendar, the first day of the calendar (the epoch), is the
first day of year 1, which corresponds to the date which was (incorrectly)
believed to be the birth of Jesus Christ.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes  CREDITS
%{perl_vendorarch}/DateTime*
%{perl_vendorarch}/auto/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15293 |21mr|perl-DateTime-Calendar-Mayan-0.60.100-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name DateTime-Calendar-Mayan
%define upstream_version 0.0601

Summary:	Mayan Long Count Calendar
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/DateTime-Calendar-Mayan
Source0:	http://search.cpan.org/CPAN/authors/id/J/JH/JHOBLITT/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(DateTime)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
An implementation of the Mayan Long Count, Haab, and Tzolkin calendars
as defined in "Calendrical Calculations The Millennium Edition".
Supplemented by "Frequently Asked Questions about Calendars".

%files
%doc README Changes LICENSE Todo META.yml
%{perl_vendorlib}/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -qn  %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15294 |21mr|perl-DateTime-Format-Builder-0.810.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-Builder
%define upstream_version 0.81

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Create DateTime parser classes and objects

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/DateTime-Format-Builder-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Factory::Util)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Strptime)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(Package::Stash)
# This dependency is missing so we specify it explicitly.
Requires:	perl(Class::Factory::Util)
BuildArch:	noarch

%description
This module understands the formats used by MySQL for its DATE, DATETIME,
TIME, and TIMESTAMP data types. It can be used to parse these formats in
order to create DateTime objects, and it can take a DateTime object and
produce a string representing it in the MySQL format.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15295 |21mr|perl-DateTime-Format-ISO8601-0.70.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DateTime-Format-ISO8601
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Parses almost all ISO8601 date and time formats

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/RPM4/
Source0:	%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Builder)
BuildRequires:	perl(Class::Factory::Util)
BuildRequires:	perl(Module::Build)
BuildRequires:  perl(namespace::autoclean)
BuildRequires:  perl(Package::Stash)
Requires:	perl(Class::Factory::Util)
BuildArch:	noarch

%description
Parse and format W3CDTF datetime strings.
ISO8601 time-intervals will be supported in a later release.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15296 |21mr|perl-DateTime-Format-MySQL-0.60.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name DateTime-Format-MySQL
%define upstream_version 0.06

Summary:	Parse and format MySQL dates and times
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Class::Factory::Util)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Builder) >= 0.810.0
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch
Requires:	perl(Class::Factory::Util)
Requires:	perl(DateTime::Format::Builder)

%description
This module understands the formats used by MySQL for its DATE, DATETIME,
TIME, and TIMESTAMP data types. It can be used to parse these formats in
order to create DateTime objects, and it can take a DateTime object and
produce a string representing it in the MySQL format.

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15297 |21mr|perl-DateTime-Format-Strptime-1.510.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-Format-Strptime
%define upstream_version 1.51

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Epoch:		1

Summary:	Parse and format strp and strf time patterns

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(DateTime)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements most of strptime(3), the POSIX function that is the
reverse of strftime(3), for DateTime. While strftime takes a DateTime and a
pattern and returns a string, strptime takes a string and a pattern and returns
the DateTime object associated.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#make test

%files 
%doc Changes README
%{perl_vendorlib}/DateTime
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15298 |21mr|perl-DateTime-Locale-1.160.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name DateTime-Locale
%define upstream_version 1.16

Summary:	Localization support for DateTime
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Epoch:		2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Carp)
BuildRequires:	perl(Dist::CheckConflicts) >= 0.20.0
BuildRequires:	perl(File::ShareDir::Install)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 0.960.0
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(warnings)
BuildRequires: perl(CPAN::Meta)
BuildRequires:	perl-devel
Requires:	perl(namespace::autoclean)
BuildArch:	noarch

%description
The DateTime::Locale perl module is primarily a factory for the various locale
subclasses used by DateTime. It also provides some functions for getting
information on available locales.

If you want to know what methods are available for locale objects, then please
read the DateTime::Locale::Base documentation.

%files
%doc Changes INSTALL LICENSE META.json META.yml MYMETA.yml
%{perl_vendorlib}/DateTime
%{perl_vendorlib}/auto/share/dist/DateTime-Locale
%{_mandir}/*/*


#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor destdir=%{buildroot}
%make

%install
%makeinstall_std

# for e2k
[ -f %{buildroot}%{perl_archlib}/perllocal.pod ] && \
rm -f %{buildroot}%{perl_archlib}/perllocal.pod
[ -f %{buildroot}%{perl_vendorarch}/auto/DateTime/Locale/.packlist ] && \
rm -f %{buildroot}%{perl_vendorarch}/auto/DateTime/Locale/.packlist

# Need to move more pakcages from contrib for tests
#%check
#%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15299 |21mr|perl-DateTime-TimeZone-2.510.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    DateTime-TimeZone
%define upstream_version 2.51

%global __requires_exclude ^perl\\((DateTime::Duration|Win32::TieRegistry|DateTime)

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1

Summary:	Time zone object base class and factory
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{upstream_name}
Source0:	https://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Class::Singleton) >= 1.03
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Params::Validate) >= 0.72
BuildRequires:	perl(Params::ValidationCompiler) >= 0.72
#BuildRequires:	perl(Pod::Man) >= 1.14
BuildRequires:	perl(Specio::Library::Builtins)
BuildRequires:	perl(Specio::Library::String)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(namespace::autoclean)
#BuildRequires:	perl(DateTime::TimeZone::Tzfile)
BuildRequires:	perl(Test::Taint)

BuildArch:	noarch

Provides:	perl(DateTime::TimeZoneCatalog)
Requires:	perl(namespace::clean)
#Requires:	perl(DateTime::TimeZone::Tzfile)

%description
This perl module defines the base class for all time zone objects. A time zone
is represented internally as a set of observances, each of which describes the
offset from GMT for a given time period.

Note that without the DateTime.pm module, this module does not do much. Its
primary interface is through a DateTime object, and most users will not need to
directly use DateTime::TimeZone methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL installdirs=vendor destdir=%{buildroot}
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes 
%{perl_vendorlib}/DateTime
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15300 |21mr|perl-DateTime-TimeZone-SystemV-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-TimeZone-SystemV
%define upstream_version 0.010

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    System V and POSIX timezone strings
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Date::ISO8601)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Params::Classify)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)

BuildArch: noarch

%description
An instance of this class represents a timezone that was specified by means
of a System V timezone recipe or an extended form of the same syntax (such
as that specified by POSIX). These can express a plain offset from
Universal Time, or a system of two offsets (standard and daylight saving
time) switching on a yearly cycle according to certain types of rule.

This class implements the the DateTime::TimeZone manpage interface, so that
its instances can be used with the DateTime manpage objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc META.json META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15301 |21mr|perl-DateTime-TimeZone-SystemV-0.9.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-TimeZone-SystemV
%define upstream_version 0.009

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    System V and POSIX timezone strings
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Date::ISO8601)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Params::Classify)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)

BuildArch: noarch

%description
An instance of this class represents a timezone that was specified by means
of a System V timezone recipe or an extended form of the same syntax (such
as that specified by POSIX). These can express a plain offset from
Universal Time, or a system of two offsets (standard and daylight saving
time) switching on a yearly cycle according to certain types of rule.

This class implements the the DateTime::TimeZone manpage interface, so that
its instances can be used with the DateTime manpage objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.json META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15302 |21mr|perl-DateTime-TimeZone-Tzfile-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-TimeZone-Tzfile
%define upstream_version 0.010

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Tzfile (zoneinfo) timezone files
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Date::ISO8601)
BuildRequires: perl(DateTime::TimeZone::SystemV)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Params::Classify)
BuildRequires: perl(Test::More)
BuildRequires: perl(integer)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)

BuildArch: noarch

%description
An instance of this class represents a timezone that was encoded in a file
in the the tzfile(5) manpage format. These can express arbitrary patterns
of offsets from Universal Time, changing over time. Offsets and change
times are limited to a resolution of one second.

This class implements the the DateTime::TimeZone manpage interface, so that
its instances can be used with the DateTime manpage objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.json META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15303 |21mr|perl-DateTime-TimeZone-Tzfile-0.11.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DateTime-TimeZone-Tzfile
%define upstream_version 0.011

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Tzfile (zoneinfo) timezone files
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/DateTime/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Date::ISO8601)
BuildRequires: perl(DateTime::TimeZone::SystemV)
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Params::Classify)
BuildRequires: perl(Test::More)
BuildRequires: perl(integer)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Test::Pod::Coverage)
BuildRequires: perl(Test::Pod)

BuildArch: noarch

%description
An instance of this class represents a timezone that was encoded in a file
in the the tzfile(5) manpage format. These can express arbitrary patterns
of offsets from Universal Time, changing over time. Offsets and change
times are limited to a resolution of one second.

This class implements the the DateTime::TimeZone manpage interface, so that
its instances can be used with the DateTime manpage objects.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
%{__perl} Build

%check
%{__perl} Build test

%install
%{__perl} Build install --destdir=%{buildroot}

%files
%doc META.json META.yml README Changes
%{perl_vendorlib}/DateTime/
%{_mandir}/man3/DateTime::TimeZone::Tzfile*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15304 |21mr|perl-DBD-mysql-4.46.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define upstream_name    DBD-mysql
%define upstream_version 4.046

Summary:	MySQL-Perl bindings
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBD/%{upstream_name}-%{upstream_version}.tar.gz
Patch4:		https://github.com/perl5-dbi/DBD-mysql/commit/0f0cebe87fab335873fd3701bc304922da826940.patch
Patch5:		DBD-mysql-4.043-Add-new-database-handle-attribute-mysql_ssl_cipher.patch
BuildRequires:	perl(DBI)
BuildRequires:	mysql-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Provides:	perl-Mysql = %{EVRD}

%description
DBD::mysql is an interface driver for connecting the DBMS independent Perl API
DBI to the MySQL DBMS. When you want to use MySQL from within perl, DBI and
DBD::mysql are your best choice: Unlike "mysqlperl", another option, this is
based on a common standard, so your sources will easily be portable to other
DBMS's.

%files
%{perl_vendorarch}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%autopatch -p1

%build
%serverbuild

# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

perl Makefile.PL INSTALLDIRS=vendor
#--testhost=127.0.0.1 --testport=22222

%make OPTIMIZE="$CFLAGS"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15305 |21mr|perl-DBD-Pg-3.5.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	DBD-Pg
%define upstream_version 3.5.3
%global __provides_exclude Pg.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	PostgreSQL database driver for the DBI module
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/authors/id/T/TU/TURNSTEP/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libpq)
BuildRequires:  postgresql-server
BuildRequires:  perl(Carp)
BuildRequires:  perl(Config)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Spec)
BuildRequires:  perl(base)
BuildRequires:  perl(strict)
BuildRequires:  perl(vars)
BuildRequires:  perl(warnings)
BuildRequires:  perl(DBI)
BuildRequires:  perl(DynaLoader)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(version)
BuildRequires:  perl(constant)
BuildRequires:  perl(Cwd)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test::Simple)
BuildRequires:  perl(Time::HiRes)
BuildRequires:  perl(utf8)
BuildRequires:  perl(Encode)
BuildRequires:  perl(File::Temp)

%description
PostgreSQL database driver for the DBI module

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
export POSTGRES_INCLUDE=%{_includedir}
export POSTGRES_LIB=%{_libdir}
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# this wil produce a lot of noise, Symbianflo
make test

%install
%makeinstall_std

%files
%{perl_vendorarch}/auto/DBD
%{perl_vendorarch}/DBD
%{perl_vendorarch}/Bundle
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15306 |21mr|perl-DBD-SQLite-1.700.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name DBD-SQLite
%define upstream_version 1.70

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Self Contained RDBMS in a DBI Driver

License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/I/IS/ISHIGAKI/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(DBI) >= 1.616.0-5
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec) >= 0.820.0
BuildRequires:	perl(Test::Builder) >= 0.860.0
BuildRequires:	perl(Test::More) >= 0.470.0
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Tie::Hash)
BuildRequires:	sqlite3-devel >= 3.6.0

%description
SQLite is a small fast embedded SQL database engine.

DBD::SQLite embeds that database engine into a DBD driver, so
if you want a relational database for your project, but don't
want to install a large RDBMS system like MySQL or PostgreSQL,
then DBD::SQLite may be just what you need.

It supports quite a lot of features, such as transactions (atomic
commit and rollback), indexes, DBA-free operation, a large subset
of SQL92 supported, and more.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

# useless content
rm -f %{buildroot}%{perl_vendorarch}/auto/share/dist/DBD-SQLite/sqlite3.c
rm -f %{buildroot}%{perl_vendorarch}/auto/share/dist/DBD-SQLite/sqlite3.h
rm -f %{buildroot}%{perl_vendorarch}/auto/share/dist/DBD-SQLite/sqlite3ext.h

%files
%doc README* Changes
%{perl_vendorarch}/DBD
%{perl_vendorarch}/auto/DBD
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15307 |21mr|perl-DBI-1.643.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 DBI
%define upstream_version 1.643

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	The Perl Database Interface

License:	GPL
Group:		Development/Perl
URL:		http://dbi.perl.org/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz
Source1:	%{name}.rpmlintrc

BuildRequires:	perl(Storable) >= 1
BuildRequires:	perl(Test::Simple) >= 0.400.0
BuildRequires:	perl-devel >= 2:5.14
BuildRequires:	perl-List-MoreUtils >= 0.320.0-3

%description
The Perl Database Interface (DBI) is a database access Application Programming
Interface (API) for the Perl Language. The Perl DBI API specification defines a
set of functions, variables and conventions that provide a consistent database
interface independent of the actual database being used.

%package	proxy
Group:		Development/Perl
Summary: 	DBI proxy server and client

Requires:	%{name} = %{version}

%description	proxy
DBI::ProxyServer is a module for implementing a proxy for the DBI
proxy driver, DBD::Proxy.
DBD::Proxy is a Perl module for connecting to a database via a remote
DBI driver.

%package	ProfileDumper-Apache
Group:		Development/Perl
Summary: 	DBI profiling data for mod_perl

Requires:	%{name} = %{version}

%description ProfileDumper-Apache
This module interfaces DBI::ProfileDumper to Apache/mod_perl. Using this
module you can collect profiling data from mod_perl applications. It
works by creating a DBI::ProfileDumper data file for each Apache
process. These files are created in your Apache log directory. You can
then use dbiprof to analyze the profile files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%__make CFLAGS="%{optflags}"

%check
rm -f t/zvg_85gofer
%__make test

%install
%makeinstall_std

# remove Win32 stuff
rm -rf %{buildroot}%{perl_vendorarch}/Win32
rm -f %{buildroot}%{perl_vendorarch}/DBI/W32ODBC.pm
rm -f %{buildroot}%{perl_vendorarch}/Roadmap.pod
rm -f %{buildroot}%{perl_vendorarch}/DBI/Roadmap.pm
rm -f %{buildroot}%{perl_vendorarch}/TASKS.pod
rm -f %{buildroot}%{perl_vendorarch}/DBI/TASKS.pm
rm -f %{buildroot}%{_mandir}/man3*/Win32::DBIODBC.3pm*
rm -f %{buildroot}%{_mandir}/man3*/DBI::W32ODBC.3pm*
rm -f %{buildroot}%{_mandir}/man3*/Roadmap.3pm*
rm -f %{buildroot}%{_mandir}/man3*/TASKS.3pm*

# we don't want requires on Coro which is not even really used
rm -f %{buildroot}%{perl_vendorarch}/DBD/Gofer/Transport/corostream.pm

%files
%doc Changes  META.yml
%{_bindir}/dbiprof
%{_bindir}/dbilogstrip
%{_mandir}/*/*
%exclude %{_mandir}/man1/dbiproxy.1*
%exclude %{_mandir}/man3*/DBD::Proxy.3pm*
%exclude %{_mandir}/man3*/DBI::ProxyServer.3pm*
%exclude %{_mandir}/man3*/DBI::ProfileDumper::Apache.3pm*
%{perl_vendorarch}/Bundle
%{perl_vendorarch}/DBD
%{perl_vendorarch}/dbixs_rev.pl
%exclude %{perl_vendorarch}/DBD/Proxy.pm
%{perl_vendorarch}/DBI.pm
%{perl_vendorarch}/DBI
%exclude %{perl_vendorarch}/DBI/ProfileDumper
%exclude %{perl_vendorarch}/DBI/ProfileDumper.pm
%exclude %{perl_vendorarch}/DBI/ProxyServer.pm
%{perl_vendorarch}/auto/DBI

%files proxy
%{_bindir}/dbiproxy
%{perl_vendorarch}/DBD/Proxy.pm
%{perl_vendorarch}/DBI/ProxyServer.pm
%{_mandir}/man1/dbiproxy.1.*
%{_mandir}/man3*/DBI::ProxyServer.3pm.*
%{_mandir}/man3*/DBD::Proxy.3pm.*

%files ProfileDumper-Apache
%{perl_vendorarch}/DBI/ProfileDumper
%{perl_vendorarch}/DBI/ProfileDumper.pm
%{_mandir}/man3*/DBI::ProfileDumper::Apache.3pm.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15308 |21mr|perl-DBIx-Simple-1.370.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    DBIx-Simple
%define upstream_version 1.37

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Easy-to-use OO interface to DBI

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBIx/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(DBI)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
DBIx::Simple provides a simplified interface to DBI, Perl's powerful
database module.

This module is aimed at rapid development and easy maintenance. Query
preparation and execution are combined in a single method, the result
object (which is a wrapper around the statement handle) provides easy
row-by-row and slurping methods.

The 'query' method returns either a result object, or a dummy object. The
dummy object returns undef (or an empty list) for all methods and when used
in boolean context, is false. The dummy object lets you postpone (or skip)
error checking, but it also makes immediate error checking simply
'$db->query(...) or die $db->error'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15309 |21mr|perl-DBM-Deep-2.1.600-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name DBM-Deep
%define upstream_version 2.0016

Summary:	A pure perl multi-level hash/array DBM that supports transactions
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DBM/DBM-Deep-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(FileHandle::Fmode) >= 0.140.0
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Warn)
BuildArch:	noarch

%description
A unique flat-file database module, written in pure perl. True multi-level
hash/array support (unlike MLDBM, which is faked), hybrid OO / tie()
interface, cross-platform FTPable files, ACID transactions, and is quite
fast. Can handle millions of keys and unlimited levels without significant
slow-down. Written from the ground-up in pure perl -- this is NOT a wrapper
around a C-based DBM. Out-of-the-box compatibility with Unix, Mac OS X and
Windows.

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15310 |21mr|perl-Declare-Constraints-Simple-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Declare-Constraints-Simple
%define upstream_version 0.03

%global __requires_exclude perl\\(Declare::Constraints::Simple-Library\\)

Summary:	Declarative Validation of Data Structures
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/P/PH/PHAYLON/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp::Clan)
BuildRequires:	perl(Class::Inspector)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(aliased)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch
Requires:	perl(aliased)

%description
The main purpose of this module is to provide an easy way to build a
profile to validate a data structure. It does this by giving you a set of
declarative keywords in the importing namespace.

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/Declare

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15311 |21mr|perl-Devel-CallChecker-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Devel-CallChecker
%define upstream_version 0.008

Summary:	Custom op checking attached to subroutines
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/Z/ZE/ZEFRAM/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(DynaLoader)
BuildRequires:	perl(DynaLoader::Functions)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(ExtUtils::ParseXS)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)

%description
This module makes some new features of the Perl 5.14.0 C API available to
XS modules running on older versions of Perl. The features are centred
around the function 'cv_set_call_checker', which allows XS code to attach a
magical annotation to a Perl subroutine, resulting in resolvable calls to
that subroutine being mutated at compile time by arbitrary C code. This
module makes 'cv_set_call_checker' and several supporting functions
available. (It is possible to achieve the effect of 'cv_set_call_checker'
from XS code on much earlier Perl versions, but it is painful to achieve
without the centralised facility.)

This module provides the implementation of the functions at runtime (on
Perls where they are not provided by the core). It also, at compile time,
supplies the C header file and link library which provide access to the
functions. In normal use, the /callchecker0_h manpage and the
/callchecker_linkable manpage should be called at build time (not authoring
time) for the module that wishes to use the C functions.

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15312 |21mr|perl-Devel-Caller-2.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Caller
%define upstream_version 2.06

Summary:	Meatier versions of caller()
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/Devel-Caller-%{upstream_version}.tar.gz
BuildRequires:	perl(PadWalker)
BuildRequires:	perl-devel

%description
This module provides various improvements over the built-in caller()
primitive.

%files
%doc Changes
%{_mandir}/*/*
%{perl_vendorarch}/Devel
%{perl_vendorarch}/auto/Devel


#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15313 |21mr|perl-Devel-CallParser-0.2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Devel-CallParser
%define upstream_version 0.002

%bcond_without bootstrap

Summary:	Custom parsing attached to subroutines
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Devel::CallChecker)
BuildRequires:	perl(DynaLoader)
BuildRequires:	perl(DynaLoader::Functions)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(ExtUtils::ParseXS)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
%if %{without bootstrap}
#circular deps, to be build first without:
BuildRequires:	perl(Data::Alias)
BuildRequires:	perl(Devel::Declare)
BuildRequires:	perl(Lexical::Sub)
BuildRequires:	perl(Sub::StrictDecl)
BuildRequires:	perl(indirect)
%endif

%description
This module provides a C API, for XS modules, concerned with custom
parsing. It is centred around the function 'cv_set_call_parser', which
allows XS code to attach a magical annotation to a Perl subroutine,
resulting in resolvable calls to that subroutine having their arguments
parsed by arbitrary C code. (This is a more conveniently structured
facility than the core's 'PL_keyword_plugin' API.) This module makes
'cv_set_call_parser' and several supporting functions available.

This module provides the implementation of the functions at runtime. It
also, at compile time, supplies the C header file and link library which
provide access to the functions. In normal use, the /callparser0_h
manpage/the /callparser1_h manpage and the /callparser_linkable manpage
should be called at build time (not authoring time) for the module that
wishes to use the C functions.

%files
%doc META.json META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%if %{without bootstrap}
%check
%make test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15314 |21mr|perl-Devel-CheckBin-0.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-CheckBin
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Check that a command is available
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Module::Build)
BuildRequires: perl(CPAN::Meta) >= 2.150.10
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl-Test-Simple
BuildArch: noarch

%description
Devel::CheckBin is a perl module that checks whether a particular command
is available.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15315 |21mr|perl-Devel-CheckCompiler-0.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-CheckCompiler
%define upstream_version 0.05

Summary:	Check the compiler's availability
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(CPAN::Meta) >= 2.150.10
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(parent)
BuildArch:	noarch

%description
This module checks C99 compiler's availability. If it's not available, exit
with code 0.

It makes CPAN testers status as N/A.

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15316 |21mr|perl-Devel-Cycle-1.120.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Devel-Cycle
%define upstream_version 1.12

Summary:	Find memory cycles in objects
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
Requires:	perl(PadWalker)
BuildArch:	noarch

%description
This is a simple developer's tool for finding circular references in objects
and other types of references. Because of Perl's reference-count based
memory management, circular references will cause memory leaks.

%files
%doc Changes README
%{perl_vendorlib}/Devel
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15317 |21mr|perl-Devel-Declare-0.6.18-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Devel-Declare
%define upstream_version 0.006018

Summary:	Adding keywords to perl, in perl
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Epoch:		1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B::Compiling)
BuildRequires:	perl(B::Hooks::EndOfScope)
BuildRequires:	perl(B::Hooks::OP::Check)
BuildRequires:	perl(Devel::CallParser)
BuildRequires:	perl(DynaLoader::Functions)
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Test::More) >= 0.880.0
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Warn)

%description
Devel::Declare can install subroutines called declarators which locally
take over Perl's parser, allowing the creation of new syntax.

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/Devel
%{perl_vendorarch}/auto/Devel

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15318 |21mr|perl-Devel-Declare-0.6.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Devel-Declare
%define upstream_version 0.006022

Summary:	Adding keywords to perl, in perl
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B::Compiling)
BuildRequires:	perl(B::Hooks::EndOfScope)
BuildRequires:	perl(B::Hooks::OP::Check)
BuildRequires:	perl(Devel::CallParser)
BuildRequires:	perl(DynaLoader::Functions)
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Test::More) >= 0.880.0
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Warn)

%description
Devel::Declare can install subroutines called declarators which locally
take over Perl's parser, allowing the creation of new syntax.

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/Devel
%{perl_vendorarch}/auto/Devel

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15319 |21mr|perl-Devel-FindRef-1.460.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-FindRef
%define upstream_version 1.46

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Where is that reference to my variable hiding?

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(common::sense)
BuildRequires: perl(Canary::Stability)
BuildRequires: perl-devel


%description
Tracking down reference problems (e.g. you expect some object to be
destroyed, but there are still references to it that keep it alive) can be
very hard. Fortunately, perl keeps track of all its values, so tracking
references "backwards" is usually possible.

The 'track' function can help track down some of those references back to
the variables containing them.

For example, for this fragment:

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/Devel/FindRef.pm
%{perl_vendorarch}/auto/Devel/FindRef/FindRef.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15320 |21mr|perl-Devel-GlobalDestruction-0.140.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-GlobalDestruction
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Expose PL_dirty, the flag which marks global

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Scope::Guard)
BuildRequires:	perl(Sub::Exporter::Progressive)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl's global destruction is a little tricky to deal with WRT finalizers
because it's not ordered and objects can sometimes disappear.

Writing defensive destructors is hard and annoying, and usually if global
destruction is happenning you only need the destructors that free up non
process local resources to actually execute.

For these constructors you can avoid the mess by simply bailing out if
global destruction is in effect.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15321 |21mr|perl-Devel-LexAlias-0.50.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-LexAlias
%define upstream_version 0.05

Summary:	Alias lexical variables
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Devel/Devel-LexAlias-%{upstream_version}.tar.gz
BuildRequires:	perl(Devel::Caller)
BuildRequires:	perl-devel

%description
Devel::LexAlias provides the ability to alias a lexical variable in a
subroutines scope to one of your choosing.

%files
%{_mandir}/*/*
%{perl_vendorarch}/Devel/*
%{perl_vendorarch}/auto/Devel/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15322 |21mr|perl-Devel-OverloadInfo-0.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-OverloadInfo
%define upstream_version 0.005

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Introspect overloaded operators
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(MRO::Compat)
BuildRequires: perl(Package::Stash)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Sub::Identify)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(overload)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
Devel::OverloadInfo returns information about overload operators for a
given class (or object), including where in the inheritance hierarchy the
overloads are declared and where the code implementing them is.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
rm -rf %buildroot
%makeinstall_std

%clean
rm -rf %buildroot

%files
%defattr(-,root,root)
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%perl_vendorlib/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15323 |21mr|perl-Devel-OverrideGlobalRequire-0.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-OverrideGlobalRequire
%define upstream_version 0.001

Summary:	Override CORE::GLOBAL::require safely
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
This module overrides 'CORE::GLOBAL::require' with a code reference in a
way that plays nice with any existing overloading and ensures the right
calling package is in scope.

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15324 |21mr|perl-Devel-PartialDump-0.180.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-PartialDump
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Partial dumping of data structures, optimized for argument

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Class::Tiny)
#BuildRequires:	perl(Moose)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Exporter)
#BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::use::ok)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(Carp)
BuildRequires:	perl(warnings)
BuildRequires:	perl(strict)
BuildRequires:	perl(CPAN::Meta) >= 2.141.520

BuildArch:	noarch

%description
This module is a data dumper optimized for logging of arbitrary parameters.

It attempts to truncate overly verbose data, in a way that is hopefully
more useful for diagnostics warnings than

	warn Dumper(@stuff);

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# Check requires perl-Moose, perl-Test-Warn and a ton of other pkgs from contrib
# % check
# % make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml LICENSE CONTRIBUTING
%{_mandir}/man3/*
%{perl_vendorlib}/Devel

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15325 |21mr|perl-Devel-Refcount-0.100.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Devel-Refcount
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Obtain the REFCNT value of a referent

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Devel/Devel-Refcount-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel

%description
This module provides a single function which obtains the reference count of
the object being pointed to by the passed reference value.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15326 |21mr|perl-Devel-StackTrace-2.30.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Devel-StackTrace
%define upstream_version 2.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Stack trace and stack trace frame objects 


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
%{upstream_name} module for perl.  Simple objects to deal with stack traces.
The parent object, Devel::StackTrace, holds a number of
Devel::StackTraceFrame objects (which have the same information as is
returned from caller()).  You can step through these frames forwards
and backwards as you want or retrieve specific frames.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 lib/Devel/StackTrace.pm

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE 
%{perl_vendorlib}/Devel
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15327 |21mr|perl-Devel-Symdump-2.180.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Devel-Symdump
%define upstream_version 2.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Dump symbol names or the symbol table

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Devel/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
This little package serves to access the symbol table of perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc  README
%{perl_vendorlib}/Devel
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15328 |21mr|perl-Device-SerialPort-1.40.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Device-SerialPort
%define upstream_version 1.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	10
Summary:    POSIX clone of Win32::SerialPort
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Device/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::More)
BuildRequires: perl-devel

%description
This module provides an object-based user interface essentially identical
to the one provided by the Win32::SerialPort module.

Initialization
    The primary constructor is *new* with either a _PortName_, or a
    _Configuretion File_ specified. With a _PortName_, this will open the
    port and create the object. The port is not yet ready for read/write
    access. First, the desired _parameter settings_ must be established.
    Since these are tuning constants for an underlying hardware driver in
    the Operating System, they are all checked for validity by the methods
    that set them. The *write_settings* method updates the port (and will
    return True under POSIX). Ports are opened for binary transfers. A
    separate 'binmode' is not needed.

      $PortObj = new Device::SerialPort ($PortName, $quiet, $lockfile)
           || die "Can't open $PortName: $!\n";

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_mandir}/man?/*
%{_bindir}/modemtest
%{perl_vendorarch}/Device/*.pm
%{perl_vendorarch}/auto/Device/SerialPort/*.so*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15329 |21mr|perl-Digest-HMAC-1.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Digest-HMAC
%define upstream_version 1.03

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:	Keyed-Hashing for Message Authentication

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	https://cpan.metacpan.org/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:	noarch
BuildRequires:  perl-devel
BuildRequires:  perl(Digest::SHA1)
Requires:	perl(Digest::SHA1)
Provides:	perl-HMAC

%description
Digest-HMAC module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/Digest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15330 |21mr|perl-Digest-SHA1-2.130.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Digest-SHA1
%define upstream_version 2.13

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    18

Summary:	Perl interface to the SHA1 Algorithm
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Digest/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test

%description
Digest-SHA1 module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/Digest
%{perl_vendorarch}/auto

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15331 |21mr|perl-Dist-CheckConflicts-0.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Dist-CheckConflicts
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Declare version conflicts for your dist


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Dist/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(List::MoreUtils)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
One shortcoming of the CPAN clients that currently exist is that they have
no way of specifying conflicting downstream dependencies of modules. This
module attempts to work around this issue by allowing you to specify
conflicting versions of modules separately, and deal with them after the
module is done installing.

For instance, say you have a module 'Foo', and some other module 'Bar' uses
'Foo'. If 'Foo' were to change its API in a non-backwards-compatible way,
this would cause 'Bar' to break until it is updated to use the new API.
'Foo' can't just depend on the fixed version of 'Bar', because this will
cause a circular dependency (because 'Bar' is already depending on 'Foo'),
and this doesn't express intent properly anyway - 'Foo' doesn't use 'Bar'
at all. The ideal solution would be for there to be a way to specify
conflicting versions of modules in a way that would let CPAN clients update
conflicting modules automatically after an existing module is upgraded, but
until that happens, this module will allow users to do this manually.

This module accepts a hash of options passed to its 'use' statement, with
these keys being valid:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15332 |21mr|perl-DynaLoader-Functions-0.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name DynaLoader-Functions
%define upstream_version 0.003

%global __requires_exclude ^perl\\((VMS::Filespec)

Summary:	Deconstructed dynamic C library loading
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/DynaLoader/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(DynaLoader)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(parent)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
This module provides a function-based interface to dynamic loading as used
by Perl. Some details of dynamic loading are very platform-dependent, so
correct use of these functions requires the programmer to be mindful of the
space of platform variations.

%files
%doc META.json META.yml README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15333 |21mr|perl-Email-Abstract-3.8.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-Abstract
%define upstream_version 3.008

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Unified interface to mail representations

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(MIME::Entity) >= 5.501.0
BuildRequires:	perl(Email::Simple)
BuildRequires:	perl(Module::Pluggable)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Class::Accessor::Grouped)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Email::Abstract provides module writers with the ability to write
representation-independent mail handling code. For instance, in the cases of
Mail::Thread or Mail::ListDetector, a key part of the code involves reading the
headers from a mail object. Where previously one would either have to specify
the mail class required, or to build a new object from scratch, Email::Abstract
can be used to perform certain simple operations on an object regardless of its
underlying representation.

Email::Abstract currently supports Mail::Internet, MIME::Entity, Mail::Message,
Email::Simple and Email::MIME. Other representations are encouraged to create
their own Email::Abstract::* class by copying Email::Abstract::EmailSimple. All
modules installed under the Email::Abstract hierarchy will be automatically
picked up and used.

For this reason, the tedious process of looking for a valid date has been
encapsulated in this software. Further, the process of creating RFC compliant
date strings is also found in this software.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Email
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15334 |21mr|perl-Email-Date-1.104.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-Date
%define upstream_version 1.104

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Find and Format Date Headers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Time::Piece)
BuildRequires: perl(Capture::Tiny)
BuildRequires:	perl(Email::Abstract)
BuildRequires:	perl(Email::Date::Format)
BuildRequires:	perl(Date::Parse)
BuildRequires:	perl-devel

BuildArch:	noarch


%description
RFC 2822 defines the Date: header. It declares the header a required part of an
email message. The syntax for date headers is clearly laid out. Stil, even a
perfectly planned world has storms. The truth is, many programs get it wrong.
Very wrong. Or, they don't include a Date: header at all. This often forces you
to look elsewhere for the date, and hoping to find something.

For this reason, the tedious process of looking for a valid date has been
encapsulated in this software. Further, the process of creating RFC compliant
date strings is also found in this software.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Email
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15335 |21mr|perl-Email-Date-Format-1.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-Date-Format
%define upstream_version 1.005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Produce RFC 2822 date strings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::More)
BuildRequires: perl(Capture::Tiny)
BuildRequires:	perl(Time::Local)
BuildRequires:	perl-devel

BuildArch:		noarch

%description
This module provides a simple means for generating an RFC 2822 compliant
datetime string.  (In case you care, they're not RFC 822 dates, because they
use a four digit year, which is not allowed in RFC 822.)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/Email

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15336 |21mr|perl-Email-MIME-RFC2047-0.970.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Email-MIME-RFC2047
%define upstream_version 0.97

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Handling of MIME encoded mailbox lists
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

BuildArch: noarch

%description
This set of modules tries to provide a correct and usable implementation of
RFC 2047 "MIME Part Three: Message Header Extensions for Non-ASCII Text".
The the Encode manpage module also provides RFC 2047 encoding and decoding
but it still has some bugs regarding strict standards compatibility. More
importantly, a useful API should handle the different situations where RFC
2047 encoded headers are used. Section 5 of the RFC defines three use cases
for 'encoded-words':

(1) As a replacement of 'text' tokens, for example in a Subject header

(2) In comments, this case isn't handled by this module

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README.pod Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15337 |21mr|perl-Email-Simple-2.216.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name     Email-Simple
%define upstream_version 2.216

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Simple parsing of RFC2822 message format and headers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Email/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Email::Date::Format)
BuildRequires: perl(Capture::Tiny)
BuildRequires:	perl-devel

BuildArch:	noarch

Obsoletes:	perl-Email-Simple-Creator <= 1.424.0
Provides:	perl-Email-Simple-Creator  = 1.424.0

%description
Email::Simple is the first deliverable of the "Perl Email Project", a reaction
against the complexity and increasing bugginess of the Mail::* modules. In
contrast, Email::* modules are meant to be simple to use and to maintain, pared
to the bone, fast, minimal in their external dependencies, and correct.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Email
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15338 |21mr|perl-Encode-Detect-1.10.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Encode-Detect
%define upstream_version 1.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    13
Summary:    An Encode::Encoding subclass that detects the encoding of data
License:    GPL
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Encode/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:  perl-devel
Buildrequires:  perl(Module::Build)
Buildrequires:  perl(ExtUtils::CBuilder)
Buildrequires:  perl(Data::Dump)

%description
This Perl module is an Encode::Encoding subclass that uses
Encode::Detect::Detector to determine the charset of the input data and then
decodes it using the encoder of the detected charset.

It is similar to Encode::Guess, but does not require the configuration of a set
of expected encodings. Like Encode::Guess, it only supports decoding--it cannot
encode.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE
%{perl_vendorarch}/Encode
%{perl_vendorarch}/auto/Encode
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15339 |21mr|perl-Encode-Locale-1.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Encode-Locale
%define upstream_version 1.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Determine the locale encoding

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Encode/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Encode)
BuildRequires: perl(Encode::Alias)
BuildRequires: perl(Test)
BuildRequires: perl-devel
BuildArch: noarch

%description
In many applications it's wise to let Perl use Unicode for the strings it
processes. Most of the interfaces Perl has to the outside world is still
byte based. Programs therefore needs to decode byte strings that enter the
program from the outside and encode them again on the way out.

The POSIX locale system is used to specify both the language conventions
requested by the user and the preferred character set to consume and
output. The 'Encode::Locale' module looks up the charset and encoding
(called a CODESET in the locale jargon) and arrange for the the Encode
manpage module to know this encoding under the name "locale". It means
bytes obtained from the environment can be converted to Unicode strings by
calling 'Encode::encode(locale => $bytes)' and converted back again with
'Encode::decode(locale => $string)'.

Where file systems interfaces pass file names in and out of the program we
also need care. The trend is for operating systems to use a fixed file
encoding that don't actually depend on the locale; and this module
determines the most appropriate encoding for file names. The the Encode
manpage module will know this encoding under the name "locale_fs". For
traditional Unix systems this will be an alias to the same encoding as
"locale".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15340 |21mr|perl-Error-0.170.290-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Error
%define upstream_version 0.17029

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Epoch:		1

Summary:	Error/exception handling in an OO-ish way

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SH/SHLOMIF/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Test::More)
BuildRequires:  perl-JSON-PP
BuildArch:	noarch

%description
The Error package provides two interfaces. Firstly Error
provides a procedural interface to exception handling.
Secondly Error is a base class for errors/exceptions that
can either be thrown, for subsequent catch, or can simply
be recorded.
Errors in the class Error should not be thrown directly,
but the user should throw errors from a sub-class of Error.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog README examples
%{perl_vendorlib}/Error
%{perl_vendorlib}/Error.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15341 |21mr|perl-EV-4.330.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    EV
%define upstream_version 4.33

%define filelist %{upstream_name}-%{upstream_version}-filelist
%define maketest 1

Name:      perl-%{upstream_name}
Version:   %perl_convert_version %{upstream_version}
Release:	2
Summary:   Wrapper for the libev high-performance event loop library
License:   Artistic
Group:     Development/Perl
Url:       http://software.schmorp.de/pkg/EV.html
Source0:   http://www.cpan.org/authors/id/M/ML/MLEHMANN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Canary::Stability)
BuildRequires: perl-AnyEvent >= 1:2.6
BuildRequires: perl(common::sense)

%description
A thin wrapper around libev, a high-performance event loop. Intended
as a faster and less buggy replacement for the Event perl
module. Efficiently supports very high number of timers, scalable
operating system APIs such as epoll, kqueue and solaris's ports,
child/pid watchers and more.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 
chmod -R u+w %{_builddir}/%{upstream_name}-%{upstream_version}

%build
grep -rsl '^#!.*perl' . |
grep -v '.bak$' |xargs --no-run-if-empty \
perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="%{optflags}"
echo | perl Makefile.PL `perl -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` INSTALLDIRS=vendor
%make 

%check
%make test

%install
%makeinstall `perl -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`

# remove special files
find %{buildroot} -name "perllocal.pod" \
    -o -name ".packlist"                \
    -o -name "*.bs"                     \
    |xargs -i rm -f {}

# no empty directories
find %{buildroot}%{_prefix}             \
    -type d -depth                      \
    -exec rmdir {} \; 2>/dev/null


%files
%doc README Changes
%{perl_vendorarch}/EV.pm
%{perl_vendorarch}/EV
%{perl_vendorarch}/auto/EV
%{_mandir}/man3/EV*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15342 |21mr|perl-Eval-Closure-0.140.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Eval-Closure
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Safely and cleanly create closures via string eval

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/~doy/Eval-Closure-0.04/lib/Eval/Closure.pm
Source0:	http://search.cpan.org/CPAN/authors/id/D/DO/DOY/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
String eval is often used for dynamic code generation. For instance, Moose uses
it heavily, to generate inlined versions of accessors and constructors, which
speeds code up at runtime by a significant amount. String eval is not without
its issues however - it's difficult to control the scope it's used in (which
determines which variables are in scope inside the eval), and it can be quite
slow, especially if doing a large number of evals.

This module attempts to solve both of those problems. It provides an
eval_closure function, which evals a string in a clean environment, other than
a fixed list of specified variables. It also caches the result of the eval, so
that doing repeated evals of the same source, even with a different
environment, will be much faster (but note that the description is part of the
string to be evaled, so it must also be the same (or non-existent) if caching
is to work properly).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE MANIFEST README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15343 |21mr|perl-Event-1.270.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Event
%define upstream_version 1.27

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)

%description
Fast, generic event loop

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%clean 

%install
%makeinstall_std

%files
%doc ANNOUNCE INSTALL README TODO Tutorial.pdf Changes
%{perl_vendorarch}/Event*
%{perl_vendorarch}/auto/Event
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15344 |21mr|perl-Event-File-0.1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Event-File

Summary:	Mimic the 'tail -f' behaviour using Event
Name:		perl-%{module}
Version:	0.1.1
Release:	8
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Event/%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module tries to mimic the 'tail -f' behaviour
using Event.

It detects file deletion, rename, rotation providing a simple way to keep 
track of files like log files.

%prep
%setup -q -n %{module}-%{version}
find -type f | xargs chmod 0644
find -type d | xargs chmod 0755

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%clean

%files
%doc README Changes demo
%{perl_vendorlib}/Event
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15345 |21mr|perl-Event-Lib-1.40.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname   Event-Lib
%define upstream_version    1.04

Name:       perl-%{realname}
Version:    %perl_convert_version %upstream_version
Release:    2
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Perl extentions for event-based programming

Source:     http://www.cpan.org/modules/by-module/Event/%{realname}-%{upstream_version}.tar.gz
Patch0:		Event-Lib-1.04_libevent2_1_8-buildfix.patch
Url:        http://search.cpan.org/dist/%{realname}
BuildRequires: perl-devel
BuildRequires: libevent-devel

%description
This module is a Perl wrapper around libevent(3) as available from the
http://www.monkey.org/~provos/libevent/ manpage. It allows to execute a
function whenever a given event on a filehandle happens, a timeout occurs
or a signal is received.

Under the hood, one of the available mechanisms for asynchronously dealing
with events is used. This could be 'select', 'poll', 'epoll', 'devpoll' or
'kqueue'. The idea is that you don't have to worry about those details and
the various interfaces they offer. _Event::Lib_ offers a unified interface
to all of them (but see the "CONFIGURATION" manpage further below).

Once you've skimmed through the next two sections (or maybe even now), you
should have a look at the "EXAMPLE: A SIMPLE TCP SERVER" manpage to get a
feeling about how it all fits together.

%prep
%setup -q -n %{realname}-%{upstream_version} 
%apply_patches

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
# those tests fail with test::harness 3.x
# cf  https://rt.cpan.org/Ticket/Display.html?id=35355
# and http://rt.cpan.org/Public/Bug/Display.html?id=36130
#rm t/20_signal.t t/51_cleanup_persistent.t
# %make test

%install
%makeinstall_std

%clean

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15346 |21mr|perl-Exception-Class-1.440.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Exception-Class
%define upstream_version 1.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A module that allows you to declare real exception classes in Perl


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/D/DR/DROLSKY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-Class-Data-Inheritable
BuildRequires:	perl(Devel::StackTrace) >= 1.20
BuildRequires:	perl-Test-Simple
BuildRequires:	perl-devel

BuildArch: 	noarch

Requires: 	perl-Class-Data-Inheritable >= 0.02
Requires:	perl-Devel-StackTrace >= 0.9

%description
This module allows you to declare hierarchies of exception classes for use
in your code. It also provides a simple exception class that it uses as the
default base class for all other exceptions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes LICENSE lib/Exception/Class.pm

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE
%{perl_vendorlib}/Exception
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15347 |21mr|perl-Expect-1.350.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname Expect
%define modver 1.35

%global __requires_exclude ^/usr/local/bin/perl$

Summary:	Expect for Perl
Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	2
License:	GPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{modname}
Source0:	http://www.cpan.org/modules/by-module/%{modname}/%{modname}-%{modver}.tar.gz
Patch0:		%{name}-paths.patch
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(IO::Tty) >= 1.02
# temporary dep due to the perl-5.14 bump
BuildRequires:	perl-List-MoreUtils >= 0.320.0-4
BuildArch:	noarch

%description
The Expect module is a successor of Comm.pl and a descendent of Chat.pl. It
more closely ressembles the Tcl Expect language than its predecessors. It does
not contain any of the networking code found in Comm.pl. I suspect this would
be obsolete anyway given the advent of IO::Socket and external tools such as
netcat.

Expect.pm is an attempt to have more of a switch() & case feeling to make
decision processing more fluid. Three separate types of debugging have been
implemented to make code production easier.

It is now possible to interconnect multiple file handles (and processes) much
like Tcl's Expect. An attempt was made to enable all the features of Tcl's
Expect without forcing Tcl on the victim programmer :-) .

%prep
%setup -qn %{modname}-%{modver}
%apply_patches
perl -pi -e 's|/usr/local/bin/perl|perl|' examples/kibitz/kibitz

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes  examples tutorial
%{perl_vendorlib}/*.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15348 |21mr|perl-Exporter-Lite-0.80.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Exporter-Lite
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Exporter-Lite perl module
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Exporter/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is an alternative to Exporter intended to provide a lightweight
subset of its functionality.  It supports "import()", @EXPORT and
@EXPORT_OK and not a whole lot else.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Exporter/Lite.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15349 |21mr|perl-Exporter-Tiny-0.42.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Exporter-Tiny
%define upstream_version 0.042

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Shortcut for Exporter::Tiny
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Exporter/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Test::Fatal)

BuildArch: noarch

%description
Exporter::Tiny supports many of Sub::Exporter's external-facing features
including renaming imported functions with the '-as', '-prefix' and
'-suffix' options; explicit destinations with the 'into' option; and
alternative installers with the 'installler' option. But it's written in
only about 40% as many lines of code and with zero non-core dependencies.

Its internal-facing interface is closer to Exporter.pm, with configuration
done through the '@EXPORT', '@EXPORT_OK' and 
#'%EXPORT_TAGS' package (is being seen asunexpanded macro in linting, sflo)
variables.

Exporter::Tiny performs most of its internal duties (including resolution
of tag names to sub names, resolution of sub names to coderefs, and
installation of coderefs into the target package) as method calls, which
means they can be overridden to provide interesting behaviour.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15350 |21mr|perl-Exporter-Tiny-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Exporter-Tiny
%define upstream_version 1.002002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Shortcut for Exporter::Tiny
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Exporter/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(Test::Fatal)

BuildArch: noarch

%description
Exporter::Tiny supports many of Sub::Exporter's external-facing features
including renaming imported functions with the '-as', '-prefix' and
'-suffix' options; explicit destinations with the 'into' option; and
alternative installers with the 'installler' option. But it's written in
only about 40% as many lines of code and with zero non-core dependencies.

Its internal-facing interface is closer to Exporter.pm, with configuration
done through the '@EXPORT', '@EXPORT_OK' and 
#'%EXPORT_TAGS' package (is being seen asunexpanded macro in linting, sflo)
variables.

Exporter::Tiny performs most of its internal duties (including resolution
of tag names to sub names, resolution of sub names to coderefs, and
installation of coderefs into the target package) as method calls, which
means they can be overridden to provide interesting behaviour.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15351 |21mr|perl-ExtUtils-CChecker-0.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-CChecker
%define upstream_version 0.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Configure-time utilities for using C headers,

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/ExtUtils-CChecker-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl-devel

BuildArch: noarch

%description
Often Perl modules are written to wrap functionallity found in existing C
headers, libraries, or to use OS-specific features. It is useful in the
_Build.PL_ or _Makefile.PL_ file to check for the existance of these
requirements before attempting to actually build the module.

Objects in this class provide an extension around the ExtUtils::CBuilder
manpage to simplify the creation of a _.c_ file, compiling, linking and
running it, to test if a certain feature is present.

It may also be necessary to search for the correct library to link against,
or for the right include directories to find header files in. This class
also provides assistance here.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL INSTALLDIRS=vendor
./Build CFLAGS="%{optflags}"

%check
./Build test

%install
./Build install destdir=%{buildroot} prefix=%{_prefix}

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_privlib}/ExtUtils/CChecker.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15352 |21mr|perl-ExtUtils-Config-0.8.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  	    ExtUtils-Config
%define upstream_version 0.008

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	A wrapper for perl's configuration

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test)
BuildRequires:	perl(Text::ParseWords)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl-Test-Simple
BuildRequires:	perl-devel
BuildArch:	noarch

%description
A wrapper for perl's configuration.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes
%{perl_vendorlib}/ExtUtils
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15353 |21mr|perl-ExtUtils-Depends-0.800.100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-Depends
%define upstream_version 0.8001

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Perl module for further extending extensions


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch: noarch
BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple

%description
This module tries to make it easy to build Perl extensions that use
functions and typemaps provided by other perl extensions. This means
that a perl extension is treated like a shared library that provides
also a C and an XS interface besides the perl one.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find -type d -name CVS | rm -fr
perl Makefile.PL INSTALLDIRS=vendor

%build
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%defattr(-, root, root)
%doc Changes
%{_mandir}/*/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15354 |21mr|perl-ExtUtils-F77-1.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 ExtUtils-F77
%define upstream_version 1.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Simple interface to F77 libs

License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/ExtUtils-F77/
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETJ/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	gcc-gfortran
# for test
BuildRequires:	perl(File::Which)
Requires:	gcc-gfortran
BuildArch:	noarch

%description
Simple interface to F77 libs.  Used to be in perl-PDL, but isn't anymore.

This module tries to figure out how to link C programs with
Fortran subroutines on your system. Basically one must add a list
of Fortran runtime libraries. The problem is their location
and name varies with each OS/compiler combination!

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/*/*
%doc README CHANGES

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15355 |21mr|perl-ExtUtils-Helpers-0.26.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  	    ExtUtils-Helpers
%define upstream_version 0.026

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Various portability utilities for module builders

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test)
BuildRequires:	perl(Text::ParseWords)
BuildRequires:  perl-Test-Simple
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Various portability utilities for module builders.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes
%{perl_vendorlib}/ExtUtils
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15356 |21mr|perl-ExtUtils-InstallPaths-0.12.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  	    ExtUtils-InstallPaths
%define upstream_version 0.012

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Build.PL install path logic made easy

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test)
BuildRequires:	perl(Text::ParseWords)
BuildRequires:	perl(ExtUtils::Config)
BuildRequires:  perl-Test-Simple
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Build.PL install path logic made easy.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes
%{perl_vendorlib}/ExtUtils
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15357 |21mr|perl-ExtUtils-PkgConfig-1.160.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-PkgConfig
%define upstream_version 1.16

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Perl module for further extending extensions

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: pkgconfig
BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildArch: noarch

%description
This module tries to make it easy to build Perl extensions that use
functions and typemaps provided by other perl extensions. This means
that a perl extension is treated like a shared library that provides
also a C and an XS interface besides the perl one.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
#find -type d -name CVS | rm -fr
perl Makefile.PL INSTALLDIRS=vendor

%build
make

%check
%make test

%install
%makeinstall_std

%clean


%files
%defattr(-, root, root)
%doc Changes
%{_mandir}/*/*
%{perl_vendorlib}/ExtUtils/*.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15358 |21mr|perl-ExtUtils-PL2Bat-0.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ExtUtils-PL2Bat
%define upstream_version 0.001

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Batch file creation to run perl scripts on Windows
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        http://metacpan.org/release/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/ExtUtils/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
Batch file creation to run perl scripts on Windows

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.json META.yml LICENSE Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15359 |21mr|perl-FCGI-0.780.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 FCGI
%define upstream_version 0.78

Summary:	A Fast CGI module for Perl

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	Distributable
Group:		Development/Perl
URL:		http://search.cpan.org/~flora/
Source0:	http://search.cpan.org/CPAN/authors/id/F/FL/FLORA/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		perl-FCGI-0.71-CVE-2012-6687.patch
BuildRequires:	perl-devel

%description
This is a Fast CGI module for perl. It's based on the FCGI module that
comes with Open Market's FastCGI Developer's Kit, but does not require
you to recompile perl.

See <http://www.fastcgi.com/> for more information about fastcgi.
Lincoln D. Stein's perl CGI module also contains some information
about fastcgi programming.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 0644 LICENSE META.json META.yml
%apply_patches

%build
# Choose not to build a pure Perl implementation
# (default answer [n] -> return)
perl Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%install
%makeinstall_std

%files
%doc ChangeLog META.json META.yml README
%{_mandir}/*/*
%{perl_vendorarch}/FCGI*
%{perl_vendorarch}/auto/FCGI

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15360 |21mr|perl-File-BaseDir-0.80.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 File-BaseDir
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl module to use the freedesktop basedir spec

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Module::Build)
BuildRequires:	perl(IPC::System::Simple)
BuildRequires:	perl(File::Which)
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
Perl module to use the freedesktop basedir spec.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc README Changes
%{perl_vendorlib}/File/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15361 |21mr|perl-File-chdir-0.101.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-chdir
%define upstream_version 0.1010

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	A more sensible way to change directories

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl's chdir() has the unfortunate problem of being very, very, very
global.  If any part of your program calls chdir() or if any library
you use calls chdir(), it changes the current working directory for
the B<whole> program.

File::chdir gives you an alternative, $CWD and @CWD.  These two
variables combine all the power of C<chdir()>, File::Spec and Cwd.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml README examples/
%dir %{perl_vendorlib}/File
%{perl_vendorlib}/File/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15362 |21mr|perl-File-chdir-0.101.100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-chdir
%define upstream_version 0.1011

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A more sensible way to change directories

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/D/DA/DAGOLDEN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl's chdir() has the unfortunate problem of being very, very, very
global.  If any part of your program calls chdir() or if any library
you use calls chdir(), it changes the current working directory for
the B<whole> program.

File::chdir gives you an alternative, $CWD and @CWD.  These two
variables combine all the power of C<chdir()>, File::Spec and Cwd.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%check
%make test

%install
%make_install

%files
%doc Changes LICENSE META.json META.yml README examples/
%dir %{perl_vendorlib}/File
%{perl_vendorlib}/File/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15363 |21mr|perl-File-chmod-0.420.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name File-chmod
%define upstream_version 0.42

Summary:	Implements symbolic and ls chmod modes  
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/File/File-chmod-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(Exporter) >= 5.720.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec) >= 3.470.0
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(autodie)
BuildRequires:	perl(base)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(vars)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
File::chmod is a utility that allows you to bypass system calls or bit
processing of a file's permissions. It overloads the chmod() function with its
own that gets an octal mode, a symbolic mode (see below), or an "ls" mode (see
below). If you wish not to overload chmod(), you can export symchmod() and
lschmod(), which take, respectively, a symbolic mode and an "ls" mode.

%files
%doc Changes CONTRIBUTING META.json META.yml README
%{_mandir}/man3*/*
%{perl_vendorlib}/File

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15364 |21mr|perl-File-Copy-Recursive-0.440.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-Copy-Recursive
%define upstream_version 0.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl module for recursively copying files and directories

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Path::Tiny)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::File)
BuildRequires:	perl(Test::Warnings)
BuildArch:	noarch

%description
This module copies and moves directories recursively (or single files, well...
singley) to an optional depth and attempts to preserve each file or directory's
mode.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc README Changes
%{perl_vendorlib}/File
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15365 |21mr|perl-File-DesktopEntry-0.220.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname	File-DesktopEntry
%define modver 0.22

Summary:	Object to handle .desktop files
Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	2
License:	GPLv2
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{modname}/
Source0:	http://www.cpan.org/modules/by-module/File/%{modname}-%{modver}.tar.gz
BuildArch:	noarch
BuildRequires:	perl(File::BaseDir)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(JSON::PP)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl-devel

%description
This module is used to work with .desktop files. The format of these files is
specified by the freedesktop "Desktop Entry" specification.

%prep
%setup -qn %{modname}-%{modver}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/File/DesktopEntry.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15366 |21mr|perl-File-Find-Rule-0.340.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-Find-Rule
%define upstream_version 0.34

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Alternative interface to File::Find

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Text::Glob)
BuildRequires:	perl(Number::Compare)
BuildRequires:  perl-Test-Simple
BuildArch:	noarch

%description 
File::Find::Rule is a friendlier interface to File::Find. It allows you to
build rules which specify the desired files and directories.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes 
%{perl_vendorlib}/File
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15367 |21mr|perl-File-Find-Rule-Perl-1.150.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Find-Rule-Perl
%define upstream_version 1.15

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Common rules for searching for Perl things

Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Parse::CPAN::Meta)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
I write a lot of things that muck with Perl files. And it always annoyed me
that finding "perl files" requires a moderately complex the
File::Find::Rule manpage pattern.

*File::Find::Rule::Perl* provides methods for finding various Perl-related
files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc   Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15368 |21mr|perl-File-Flat-1.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Flat
%define upstream_version 1.04

Summary:	Perl module that implements a flat filesystem
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl-prefork >= 0.02
#BuildRequires:	perl(ExtUtils::AutoInstall) # Contrib
BuildRequires:	perl(File::Copy) >= 2.08
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(File::Find) >= 1.0
BuildRequires:	perl(File::NCopy)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(File::Spec) >= 0.85
BuildRequires:	perl(File::Remove) >= 0.21
BuildRequires:	perl(File::Temp) >= 0.14
BuildRequires:	perl(IO::File) >= 1.10
BuildRequires:	perl(Test::ClassAPI) >= 1.02
BuildRequires:	perl(Test::More) >= 0.47
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch
Requires:	perl-prefork >= 0.02

%description
File::Flat implements a flat filesystem. A flat filesystem is a
filesystem in which directories do not exist. It provides an abstraction
over any normal filesystem which makes it appear as if directories do
not exist. In effect, it will automatically create directories as
needed. This is create for things like install scripts and such, as you
never need to worry about the existance of directories, just write to a
file, no matter where it is.

%files
%doc Changes README
%{perl_vendorlib}/File/Flat.pm
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15369 |21mr|perl-File-FnMatch-0.20.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-FnMatch
%define upstream_version 0.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    17
Summary:	Simple filename and pathname matching
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/~mjp/%{upstream_name}-%{upstream_version}/FnMatch.pm
Source0:	http://search.cpan.org//CPAN/authors/id/M/MJ/MJP/File-FnMatch-0.02.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test

%description
File::FnMatch::fnmatch() provides simple, shell-like pattern matching.

Though considerably less powerful than regular expressions, shell patterns
are nonetheless useful and familiar to a large audience of end-users.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc Changes README

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15370 |21mr|perl-FileHandle-Fmode-0.140.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name FileHandle-Fmode
%define upstream_version 0.14

%global __provides_exclude Fmode.so

Summary:	Determine whether a filehandle is opened for reading, writing, or both
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/FileHandle/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)

%description
Use this module to check whether a filehandle is readable, writable
or readable/writable.

%files
%doc CHANGES META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/FileHandle/*.pm
%{perl_vendorarch}/auto/FileHandle/Fmode/*.so*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15371 |21mr|perl-File-HomeDir-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-HomeDir
%define upstream_version 1.00

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Get home directory for self or other users

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/File/File-HomeDir-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Which)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	xdg-user-dirs

BuildArch:	noarch

%description
A Perl module to get home directory portably for self or other users.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find lib -name *.pm | xargs chmod 644 
chmod 644 Changes

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests require that user dirs exist, which is not the case within bs
#make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15372 |21mr|perl-File-HomeDir-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-HomeDir
%define upstream_version 1.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Get home directory for self or other users

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/File/File-HomeDir-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Which)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	xdg-user-dirs

BuildArch:	noarch

%description
A Perl module to get home directory portably for self or other users.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
find lib -name *.pm | xargs chmod 644 
chmod 644 Changes

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# tests require that user dirs exist, which is not the case within bs
#make test

%install
%makeinstall_std

%files
%doc README.md Changes
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15373 |21mr|perl-File-Listing-6.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Listing
%define upstream_version 6.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Parse directory listings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/File-Listing-%{upstream_version}.tar.gz

BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(Test)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module exports a single function called parse_dir(), which can be used
to parse directory listings.

The first parameter to parse_dir() is the directory listing to parse. It
can be a scalar, a reference to an array of directory lines or a glob
representing a filehandle to read the directory listing from.

The second parameter is the time zone to use when parsing time stamps in
the listing. If this value is undefined, then the local time zone is
assumed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15374 |21mr|perl-File-MimeInfo-0.270.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name File-MimeInfo
%define upstream_version 0.27

Summary:	Determine file type
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/P/PA/PARDUS/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Carp)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(File::BaseDir) >= 0.30.0
BuildRequires:	perl(File::DesktopEntry) >= 0.40.0
BuildRequires:	perl(Pod::Usage)
BuildRequires:	perl-devel
Requires:	perl(File::BaseDir) >= 0.30.0
BuildArch:	noarch

%description
This module can be used to determine the mime type of a file; it's a
replacement for File::MMagic trying to implement the freedesktop
specification for using the shared mime-info database. The package
comes with a script called 'mimetype' that can be used as a file(1)
work-alike.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml
%{_bindir}/mimeopen
%{_bindir}/mimetype
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15375 |21mr|perl-File-MMagic-1.300.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-MMagic
%define upstream_version 1.30

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Guess file type from filename and/or filehandle

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/File/File-MMagic-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
This perl library uses perl5 objects to guess file type from filename and/or
filehandle.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc README.en 
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15376 |21mr|perl-File-NCopy-0.360.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name File-NCopy
%define upstream_version 0.36

Summary:	Copies files to directories, or a single file to another file
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/C/CH/CHORNY/%{upstream_name}-%{upstream_version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
Copies files to directories, or a single file to another file.

%files
%doc Changes
%{_mandir}/*/*
%{perl_vendorlib}/File

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15377 |21mr|perl-File-pushd-1.9.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-pushd
%define upstream_version 1.009

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Change directory temporarily for a limited scope
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Cwd)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(CPAN::Meta::Requirements)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(version)
BuildRequires:	perl(warnings)

BuildArch:	noarch

%description
File::pushd does a temporary 'chdir' that is easily and automatically
reverted, similar to 'pushd' in some Unix command shells. It works by
creating an object that caches the original working directory. When the
object is destroyed, the destructor calls 'chdir' to revert to the original
working directory. By storing the object in a lexical variable with a
limited scope, this happens automatically at the end of the scope.

This is very handy when working with temporary directories for tasks like
testing; a function is provided to streamline getting a temporary directory
from the File::Temp manpage.

For convenience, the object stringifies as the canonical form of the
absolute pathname of the directory entered.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15378 |21mr|perl-File-Remove-1.570.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-Remove
%define upstream_version 1.57

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:	Remove files and directories

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
A Perl module to remove files and directories.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README Changes
%{perl_vendorlib}/File
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15379 |21mr|perl-File-ShareDir-1.104.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-ShareDir
%define upstream_version 1.104

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Locate per-dist and per-module shared files  

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RE/REHSACK/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Class::Inspector)
BuildRequires:  perl(Test::More)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Locate per-dist and per-module shared files  

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15380 |21mr|perl-File-ShareDir-Install-0.130.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-ShareDir-Install
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Install shared files
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/File-ShareDir-Install-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO::Dir)
BuildRequires:	perl(CPAN::Meta::YAML)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
File::ShareDir::Install allows you to install read-only data files from a
distribution. It is a companion module to the File::ShareDir manpage, which
allows you to locate these files after installation.

It is a port the Module::Install::Share manpage to the ExtUtils::MakeMaker
manpage with the improvement of only installing the files you want; '.svn'
and other source-control junk will be ignored.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15381 |21mr|perl-File-Slurp-9999.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-Slurp
%define	upstream_version 9999.30

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:	Efficient Reading/Writing of Complete Files

Group:		Development/Perl
License:	GPL+ or Artistic
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:        http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildArch:	noarch

%description
This module provides subs that allow you to read or write entire files with one
simple call. They are designed to be simple to use, have flexible ways to pass
in or get the file contents and to be very efficient. There is also a sub to
read in all the files in a directory other than . and ..

These slurp/spew subs work for files, pipes and sockets, and stdio,
pseudo-files, and DATA.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 lib/File/Slurp.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
find %{buildroot} -name "perllocal.pod" | xargs -i rm -f {}

%clean

%files
%doc README* Changes
%{_mandir}/man3*/*
%{perl_vendorlib}/File

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15382 |21mr|perl-File-Slurper-0.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name File-Slurper
%define upstream_version 0.012

Summary:	A simple, sane and efficient module to slurp a file
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildArch:	noarch

%description
A simple, sane and efficient module to slurp a file.

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15383 |21mr|perl-File-Slurp-Tiny-0.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Slurp-Tiny
%define upstream_version 0.004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    A simple, sane and efficient file slurper
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(FileHandle)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl-devel
BuildRequires: perl(warnings)
BuildArch: noarch

%description
This module provides functions for fast and correct slurping and spewing.
All functions are optionally exported.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc INSTALL LICENSE META.json Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15384 |21mr|perl-File-Sync-0.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    File-Sync
%define upstream_version 0.11

Name:      perl-%{upstream_name}
Version:   %perl_convert_version %{upstream_version}
Release:   2

Summary:   Perl access to fsync() and sync() function calls
License:   Artistic
Group:     Development/Perl
Url:       http://search.cpan.org/dist/%{upstream_name}
Source0:   http://search.cpan.org//CPAN/authors/id/C/CE/CEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel


%description
The fsync() function takes a Perl file handle as its only argument, and
passes its fileno() to the C function fsync().  It returns I<undef> on
failure, or I<true> on success.

The fsync_fd() function is used internally by fsync(); it takes a file
descriptor as its only argument.

The sync() function is identical to the C function sync().

This module does B<not> export any methods by default, but fsync() is
made available as a method of the I<FileHandle> and I<IO::Handle>
classes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%__make test

%install
%makeinstall_std

%clean

%files
%{perl_vendorarch}/File
%{perl_vendorarch}/auto/File
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15385 |21mr|perl-Filesys-Df-0.920.0-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Filesys-Df
%define upstream_version 0.92

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    22

Summary:    Disk free based on Filesys::Statvfs
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Filesys/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel

%description
This module provides a way to obtain filesystem disk space information.
This is a Unix only distribution. If you want to gather this information
for Unix and Windows, use 'Filesys::DfPortable'. The only major benefit of
using 'Filesys::Df' over 'Filesys::DfPortable', is that 'Filesys::Df'
supports the use of open filehandles as arguments.

The module should work with all flavors of Unix that implement the
'statvfs()' and 'fstatvfs()' calls, or the 'statfs()' and 'fstatfs()'
calls. This would include Linux, *BSD, HP-UX, AIX, Solaris, Mac OS X, Irix,
Cygwin, etc ...

'df()' requires a argument that represents the filesystem you want to
query. The argument can be either a scalar directory/file name or a open
filehandle. There is also an optional block size argument so you can tailor
the size of the values returned. The default block size is 1024. This will
cause the function to return the values in 1k blocks. If you want bytes,
set the block size to 1.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%{make}

%check
%{make} test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorarch}/auto/Filesys/Df/*.so*
%{perl_vendorarch}/Filesys/*.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15386 |21mr|perl-File-Which-1.230.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 File-Which
%define upstream_version 1.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Portable implementation of the `which' utility

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/File/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple

BuildArch:	noarch

%description
File::Which was created to be able to get the paths to executable programs on
systems under which the `which' program wasn't implemented in the shell.

File::Which searches the directories of the user's PATH (as returned by
File::Spec->path()), looking for executable files having the name specified as
a parameter to which(). Under Win32 systems, which do not have a notion of
directly executable files, but uses special extensions such as .exe and .bat to
identify them, File::Which takes extra steps to assure that you will find the
correct file (so for example, you might be searching for perl, it'll try
perl.exe, perl.bat, etc.)

These slurp/spew subs work for files, pipes and sockets, and stdio,
pseudo-files, and DATA.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3*/*
%{perl_vendorlib}/File

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15387 |21mr|perl-Font-AFM-1.200.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Font-AFM
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Interface to Adobe Font Metrics files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.bz2 

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements the Font::AFM class. Objects of this
class are initialised from an AFM-file and allows you to obtain
information about the font and the metrics of the various glyphs
in the font.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}/%{perl_vendorarch}

%files
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15388 |21mr|perl-Font-TTF-1.50.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Font-TTF
%define upstream_version 1.05

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Perl module for TrueType Font hacking
License:	Artistic 2.0
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Font/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perl module to manipulate TTF fonts, needed by perl-Text-PDF.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
rm -f lib/Font/TTF/Win32.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTORS LICENSE META.json  META.yml README.* TODO
%{_mandir}/*/*
%{perl_vendorlib}/Font/
%{perl_vendorlib}/ttfmod.pl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15389 |21mr|perl-Future-0.470.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Future
%define upstream_version 0.47

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Represent an operation awaiting completion
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Linux/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp) >= 1.250.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Identity)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Test::Refcount)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Module::Build)
BuildArch:  noarch

%description
A `Future' object represents an operation that is currently in progress,
or has recently completed. It can be used in a variety of ways to manage
the flow of control, and data, through an asynchronous program.

Some futures represent a single operation and are explicitly marked as
ready by calling the `done' or `fail' methods. These are called "leaf"
futures here, and are returned by the `new' constructor.

Other futures represent a collection sub-tasks, and are implicitly
marked as ready depending on the readiness of their component futures as
required. These are called "dependent" futures here, and are returned by
the various `wait_*' and `need_*' constructors.

It is intended that library functions that perform asynchonous
operations would use `Future' objects to represent outstanding
operations, and allow their calling programs to control or wait for
these operations to complete. The implementation and the user of such an
interface would typically make use of different methods on the class.
The methods below are documented in two sections; those of interest to
each side of the interface.

See also Future::Utils which contains useful loop-constructing
functions, to run a `Future'-returning function repeatedly in a loop.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL --installdirs=vendor

./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes LICENSE META.json *META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15390 |21mr|perl-Future-IO-0.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    Future-IO
%define	upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Future::IO::ImplBase - base class for Future::IO implementations

License:	Perl_5
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/P/PE/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Future)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Struct::Dumb)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Test::Identity)
BuildRequires: perl(Test::More) >= 0.880.0

BuildArch:	noarch

%description
This package provides a few utility methods that may help writing 
actual Future::IO implementation classes. It is entirely optional; 
implementations are not required to use it.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
#test 41 failed if build on ABF, local build test passed
#rm -f t/41routine.t
#./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15391 |21mr|perl-GD-2.730.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    GD
%define upstream_version 2.73
%global __provides_exclude GD.so

Summary:	A perl5 interface to Thomas Boutell's gd library

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz

Patch0:		GD-2.56-utf8.patch
Patch1:		GD-2.70-cflags.patch
BuildRequires:	gd-devel >= 2.0.28
BuildRequires:	perl-devel
BuildRequires:	perl(base)
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(ExtUtils::PkgConfig)
BuildRequires:	perl(AutoLoader)
BuildRequires:	perl(Carp)
BuildRequires:	perl(DynaLoader)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(FileHandle)
BuildRequires:	perl(Math::Trig)
BuildRequires:	perl(strict)
BuildRequires:	perl(vars)
BuildRequires:	perl(constant)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(IO::Dir)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(warnings)

### only when will become contrib.Symbianflo
#BuildRequires:  perl(CPAN::Meta::YAML) > 0.016

%description
GD.pm is a autoloadable interface module for libgd, a popular library
for creating and manipulating PNG files.  With this library you can
create PNG images on the fly or modify existing files.  Features
include:

a.  lines, polygons, rectangles and arcs, both filled and unfilled
b.  flood fills
c.  the use of arbitrary images as brushes and as tiled fill patterns
d.  line styling (dashed lines and the like)
e.  horizontal and vertical text rendering
f.  support for transparency and interlacing

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 ChangeLog t/GD.t
# Re-code documentation as UTF8
%patch0 -p0

# Upstream wants -Wformat=1 but we don't
%patch1 -p0


# Remove Local from path
perl -pi -e 's|/usr/local/bin/perl\b|%{__perl}|' \
      demos/{*.{pl,cgi},truetype_test}
# fix linting 
chmod -x demos/{*.{pl,cgi},truetype_test,fonttest}

# lib64 fixes, don't add /usr/lib/X11 to linker search path
perl -pi \
    -e "s|-L/usr/lib/X11||g;" \
    -e "s|-L/usr/X11/lib||g;" \
    -e "s|-L/usr/lib||g" \
    Makefile.PL

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make

%check
make test

%install
make install DESTDIR=%{buildroot}
find %{buildroot} -type f -name '*.bs' -empty -exec rm -f {} ';'
find %{buildroot} -type f -name .packlist -delete

%files
%doc ChangeLog README README.QUICKDRAW demos
%{perl_vendorarch}/GD*
%{perl_vendorarch}/auto/GD*
%{_bindir}/bdf2gdfont.pl
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15392 |21mr|perl-Geography-Countries-2009041301.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Geography-Countries
%define upstream_version 2009041301

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Maps 2-letter, 3-letter, and numerical codes for countries

License:	MIT
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Geography/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module maps country names, and their 2-letter, 3-letter and
numerical codes, as defined by the ISO-3166 maintenance agency,
and defined by the UNSD.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/Geography
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15393 |21mr|perl-Geo-IP-1.450.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Geo-IP
%define upstream_version 1.45

%global __requires_exclude ^/usr/local/bin/perl$

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7
Summary:    Look up country by IP Address
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Geo/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel
BuildRequires: pkgconfig(geoip)
BuildRequires: geoip

%description
This module uses a file based database. This database simply contains 
IP blocks as keys, and countries as values. This database should be 
more complete and accurate than reverse DNS lookups.
This module can be used to automatically select the geographically 
closest mirror, to analyze your web server logs to determine the 
countries of your visiters, for credit card fraud detection, and for 
software export controls.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes INSTALL META.json META.yml MYMETA.yml README example
%{perl_vendorarch}/Geo
%{perl_vendorarch}/auto/Geo
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15394 |21mr|perl-Getopt-Long-Descriptive-0.105.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Getopt-Long-Descriptive
%define upstream_version 0.105

Summary:	Getopt::Long with usage text and validation
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Getopt/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(CPAN::Meta::Check)
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Params::Validate)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Sub::Exporter::Util)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Convenient wrapper for Getopt::Long and program usage output.

%files
%doc README Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15395 |21mr|perl-Getopt-Tabular-0.300.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Getopt-Tabular
%define upstream_version 0.3

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Table-driven argument parsing for Perl 5

License:	GPL+ or Artistic
Group:		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/G/GW/GWARD/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Getopt::Tabular is a Perl 5 module for table-driven argument parsing, vaguely
inspired by John Ousterhout's Tk_ParseArgv. All you really need to do to use
the package is set up a table describing all your command-line options, and
call &GetOptions with three arguments: a reference to your option table, a
reference to @ARGV (or something like it), and an optional third array
reference (say, to @newARGV). &GetOptions will process all arguments in @ARGV,
and copy any leftover arguments (i.e. those that are not options or arguments
to some option) to the @newARGV array. (If the @newARGV argument is not
supplied, GetOptions will replace @ARGV with the stripped-down argument list.)
If there are any invalid options, GetOptions will print an error message and
return 0.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Getopt
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15396 |21mr|perl-Glib-1.329.300-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Glib
%define upstream_version 1.3293

%define Werror_cflags %nil

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Perl module for the glib-2.x library
License:	GPL+ or Artistic
Group:		Development/GNOME and GTK+
Url:		http://gtk2-perl.sf.net/
# https://sourceforge.net/project/showfiles.php?group_id=64773&package_id=91217
#Source0:	http://sourceforge.net/projects/gtk2-perl/files/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz
Source0:	https://cpan.metacpan.org/authors/id/X/XA/XAOC/Glib-%{upstream_version}.tar.gz
# BUG: we do not hanble exceptions out of Gtk2->main loop
# we should just horribly die in that case
Patch0:		Glib-1.210-exception-trapping.patch

BuildRequires: glib2-devel >= 2.6.0
BuildRequires: perl(ExtUtils::Depends) >= 0.300.0
BuildRequires: perl(ExtUtils::PkgConfig)
BuildRequires: perl-devel

Conflicts: perl-Gtk2 <= 1

%description
This module provides perl access to Glib and GLib's GObject libraries.
It is mainly used by perl-GTK2 applications.

Glib is a handy library of portability and utility functions. This C library
is designed to solve some portability problems and provide other useful
functionality which most programs require.

GObject provides a generic type system with inheritance and a powerful signal
system.

Together these libraries are used as the foundation for many of the libraries
that make up the Gnome environment, and are used in many unrelated
projects.

%package doc
Summary: Glib documentation

Group: Books/Computer books
Obsoletes: %{name}-doc < 1.230.0-9

%description doc
This package contains documentation of the Glib module.


%package devel
Summary:    Development part of Perl interface to GLib
Group:      Development/Perl
Requires:   %{name} = %{EVRD}

%description devel
Development part of package perl-Glib, the Perl module providing interface
to GLib and GObject libraries.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p0 -b .ex
find -type d -name CVS | rm -rf 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
# disabled due to long time faillures
#%make test

%install
%makeinstall_std

%files
%doc AUTHORS LICENSE
%dir %{perl_vendorarch}/%{upstream_name}/
%{perl_vendorarch}/%{upstream_name}.pm
%{perl_vendorarch}/%{upstream_name}/*.pm
%{perl_vendorarch}/%{upstream_name}/*/*.pm
%exclude %{perl_vendorarch}/Glib/Install
%exclude %{perl_vendorarch}/Glib/MakeHelper.pm
%{perl_vendorarch}/auto/*

%files doc

%dir %{perl_vendorarch}/%{upstream_name}
%{perl_vendorarch}/%{upstream_name}/*.pod
%{perl_vendorarch}/%{upstream_name}/*/*.pod

%files devel
%{perl_vendorarch}/Glib/Install
%{perl_vendorarch}/Glib/MakeHelper.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15397 |21mr|perl-Glib-Object-Introspection-0.49.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modname	Glib-Object-Introspection
%define	modver	0.049

Summary:	Dynamically create Perl language bindings

Name:		perl-%{modname}
Version:	%{perl_convert_version %{modver}}
Release:	1
License:	LGPLv2+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{modname}
Source0:	http://www.cpan.org/modules/by-module/Glib/%{modname}-%{modver}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::Depends) >= 0.300.0
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(ExtUtils::PkgConfig) >= 1.0.0
BuildRequires:	perl-Glib-devel >= 1.270.0
BuildRequires:	pkgconfig(gobject-introspection-1.0)
# For tests:
BuildRequires:	perl(Cairo::GObject)
BuildRequires:	pkgconfig(cairo-gobject)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libffi)
# (tv) t/00-basic-types.t line 51 failed with C locale
BuildRequires:	locales-en
Requires:	perl(Glib) >= 1.270.0

%description
To allow Glib::Object::Introspection to create bindings for a library, it
must have installed a typelib file, for example
'$prefix/lib/girepository-1.0/Gtk-3.0.typelib'. In your code you then
simply call 'Glib::Object::Introspection->setup' to set everything up. This
method takes a couple of key-value pairs as arguments. These three are
mandatory:

* basename => $basename

  The basename of the library that should be wrapped. If your typelib is
  called 'Gtk-3.0.typelib', then the basename is 'Gtk'.

%files
%doc LICENSE META.json META.yml NEWS README
%{_bindir}/perli11ndoc
%{_mandir}/man3/*
%{perl_vendorarch}/*

#--------------------------------------------------------------------------
%prep
%setup -q -n %{modname}-%{modver}
%apply_patches

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
exit 0
LC_ALL=en_US.UTF-8 make test

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15398 |21mr|perl-GSSAPI-0.280.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 GSSAPI
%define upstream_version 0.28

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    16
Summary:	Perl extension providing access to the GSSAPIv2 library
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	krb5-devel
BuildRequires:	perl-devel

%description
This module gives access to the routines of the GSSAPI library, as described
in rfc2743 and rfc2744 and implemented by the Kerberos-1.2 distribution from
MIT.

Since 0.14 it also compiles and works with Heimdal. Lacks of Heimdal support
are gss_release_oid(), gss_str_to_oid() and fail of some tests. Have a look
at the tests in t/ directory too see what tests fail on Heimdal ( the *.t tests
are just skipping them at the moment)

The API presented by this module is a mildly object oriented reinterpretation
of the C API, where opaque C structures are Perl objects, but the style of
function call has been left mostly untouched. As a result, most routines modify
one or more of the parameters passed to them, reflecting the C call-by-
reference (or call-by-value-return) semantics.

All users of this module are therefore strongly advised to localize all usage
of these routines to minimize pain if and when the API changes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
# Looks like latest krb5 is not fully supported :-/
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man?/*
%{perl_vendorarch}/*.pm
%{perl_vendorarch}/GSSAPI/*.pm
%{perl_vendorarch}/GSSAPI/OID/*.pm
%{perl_vendorarch}/auto/GSSAPI/*.so*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15399 |21mr|perl-Gtk2-1.249.930-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	Gtk2
%define upstream_version 1.24993

%define Werror_cflags %{nil}

%global debug_package %{nil}

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	14

Summary:	Perl module for the gtk+-2.x library

License:	GPL or Artistic
Group:		Development/GNOME and GTK+
Url:		http://gtk2-perl.sf.net/
Source0:	http://sourceforge.net/projects/gtk2-perl/files/%{upstream_name}/%{upstream_version}/%{upstream_name}-%{upstream_version}.tar.gz
Patch7:		Gtk2-1.244-gtk_exit.patch
Patch21:	Gtk2-1.038-xset_input_focus.patch
Patch23:	Gtk2-1.023-exception-trapping.patch 

BuildRequires:	perl(Cairo) >= 1.0.0
BuildRequires:	perl(ExtUtils::Depends) >= 0.300.0
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(ExtUtils::PkgConfig) >= 1.120
BuildRequires:	perl(Glib) >= 1.240.0
BuildRequires:	perl(Pango) >= 1.220.0
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	perl-devel
BuildRequires:	perl-Glib-devel
# for test suite:
BuildRequires:	fontconfig
BuildRequires:	fonts-ttf-dejavu
BuildRequires:	x11-server-xvfb
Requires:	gtk+2
Requires:	perl(Glib)
Requires:	perl(Cairo)
Requires:	perl(Pango)
#	(misc) needed by /usr/lib/perl5/vendor_perl/5.8.7/i386-linux/Gtk2/Install/Files.pm
# required to avoid warnings when loading
Recommends:	canberra-gtk
# (tv) libegg's code for status icon was merged in gtk+2.9.x:
Provides:	perl-Gtk2-StatusIcon = %{version}-%{release}
Obsoletes:	perl-Gtk2-StatusIcon <= 0.010

# rpm bug, FIXME!
%global __requires_exclude_from	%{_docdir}

%description
This module provides perl access to the gtk+-2.x library.

Gtk+ is the GIMP ToolKit (GTK+), a library for creating graphical user
interfaces for the X Window System.  GTK+ was originally written for the GIMP
(GNU Image Manipulation Program) image processing program, but is now used by
several other programs as well.

%package	doc
%global __requires_exclude ^perl\\((Gtk2::HBox|Gtk2::ScrolledWindow|Gtk2::SimpleList|Gtk2::Gdk::Keysyms|Gtk2::Entry)

Summary:	Gtk2 documentation

Group:		Books/Computer books
BuildArch:	noarch

%description	doc
This package contains documentation of the Gtk2 module.

%global __requires_exclude ^perl\\((Gtk2::ScrolledWindow|Gtk2::HBox)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch7 -p1 -b .gtk_exit~
%patch21 -p0 -b .tv~
%patch23 -p0 -b .except~
perl Makefile.PL INSTALLDIRS=vendor
chmod 755 gtk-demo/*.pl examples/*.pl

%build
%make OPTIMIZE="%{optflags}"

%check
#xvfb-run %make test

%install
%makeinstall_std

%files
%doc AUTHORS LICENSE META.yml NEWS README TODO
%{perl_vendorarch}/%{upstream_name}/
%{perl_vendorarch}/%{upstream_name}.pm
%exclude %{perl_vendorarch}/%{upstream_name}/*.pod
%exclude %{perl_vendorarch}/%{upstream_name}/*/*.pod
%exclude %{perl_vendorarch}/%{upstream_name}/*/*/*.pod
%{perl_vendorarch}/auto/*

%files doc
%doc gtk-demo examples
%{_mandir}/*/*
%dir %{perl_vendorarch}/%{upstream_name}
%{perl_vendorarch}/%{upstream_name}/*.pod
%{perl_vendorarch}/%{upstream_name}/*/*.pod
%{perl_vendorarch}/%{upstream_name}/*/*/*.pod

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15400 |21mr|perl-Gtk2-Ex-FormFactory-0.670.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pkgname Gtk2-Ex-FormFactory
%define NVR %{pkgname}-%{version}-%{release}
%define maketest 1
%define upstream_version 0.67

Name:      perl-Gtk2-Ex-FormFactory
Summary:   Gtk2-Ex-FormFactory - Makes building complex GUI's easy

Version:   %perl_convert_version %{upstream_version}
Release:   8
License:   LGPLv2+
Group:     Development/GNOME and GTK+
Url:       http://www.exit1.org/download/ff
BuildArch: noarch
Source:    https://cpan.metacpan.org/authors/id/J/JR/JRED/Gtk2-Ex-FormFactory-%{upstream_version}.tar.gz
BuildRequires: perl-Gtk2 perl-devel

%description
This is a framework which tries to make building complex GUI's easy, by
offering these two main features:

  * Consistent looking GUI without the need to code resp. tune
    each widget by hand. Instead you declare the structure of your
    GUI, connect it to the data of your program (which should be
    a well defined set of objects) and control how this structure
    is transformed into a specific layout in a very generic way.

  * Automatically keep widget and object states in sync (in both
    directions), even with complex data structures with a lot of
    internal dependencies, object nesting etc.

This manpage describes the facilities of Gtk2::Ex::FormFactory objects
which are only a small part of the whole framework. To get a full
introduction and overview of how this framework works refer to
Gtk2::Ex::FormFactory::Intro.

%prep
%setup -q -n %{pkgname}-%{upstream_version} 
chmod -R u+w %{_builddir}/%{pkgname}-%{upstream_version}

%build
grep -rsl '^#!.*perl' . |
grep -v '.bak$' |xargs --no-run-if-empty \
%__perl -MExtUtils::MakeMaker -e 'MY->fixin(@ARGV)'
CFLAGS="%{optflags}"
%{__perl} Makefile.PL `%{__perl} -MExtUtils::MakeMaker -e ' print qq|PREFIX=%{buildroot}%{_prefix}| if \$ExtUtils::MakeMaker::VERSION =~ /5\.9[1-6]|6\.0[0-5]/ '` INSTALLDIRS=vendor
%make
%if %maketest
%make test
%endif

%install
%{makeinstall} `%{__perl} -MExtUtils::MakeMaker -e ' print \$ExtUtils::MakeMaker::VERSION <= 6.05 ? qq|PREFIX=%{buildroot}%{_prefix}| : qq|DESTDIR=%{buildroot}| '`

# remove special files
find %{buildroot} -name "perllocal.pod" \
    -o -name ".packlist"                \
    -o -name "*.bs"                     \
    |xargs -i rm -f {}

# no empty directories
find %{buildroot}%{_prefix}             \
    -type d -depth                      \
    -exec rmdir {} \; 2>/dev/null

%files
%doc Changes README
%{perl_vendorlib}/Gtk2/Ex/
%{_mandir}/man3/Gtk2::Ex*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15401 |21mr|perl-Gtk2-WebKit-0.90.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname	Gtk2-WebKit
%define modver	0.09

Summary:	Web content engine library for Gtk2

Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	20
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{modname}
Source0:	http://www.cpan.org/modules/by-module/Gtk2/%{modname}-%{modver}.tar.gz
BuildRequires:	gsettings-desktop-schemas
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::PkgConfig)
BuildRequires:	perl-Glib-devel
BuildRequires:	perl(Gtk2)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	webkitgtk-devel >= 1.2.0-3
# for tests:
BuildRequires:	x11-server-xvfb
BuildRequires:	perl-devel

%description
WebKit is a web content engine, derived from KHTML and KJS from KDE, and
used primarily in Apple's Safari browser. It is made to be embedded in
other applications, such as mail readers, or web browsers.

It is able to display content such as HTML, SVG, XML, and others. It also
supports DOM, XMLHttpRequest, XSLT, CSS, Javascript/ECMAscript and more.

%prep
%setup -qn %{modname}-%{modver}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make OTHERLDFLAGS="-Wl,--as-needed"

#%check
#XDISPLAY=$(i=1; while [ -f /tmp/.X$i-lock ]; do i=$(($i+1)); done; echo $i)
#%{_bindir}/Xvfb -screen 0 1600x1200x24 :$XDISPLAY &
#export DISPLAY=:$XDISPLAY
#make test
#kill $(cat /tmp/.X$XDISPLAY-lock)

%install
%makeinstall_std

%files
%doc Changes

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15402 |21mr|perl-Gtk3-0.38.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname Gtk3
%define modver 0.038

Summary:	Perl module for the GTK+-3.x library
Name:		perl-%{modname}
Version:	%{perl_convert_version %{modver}}
Release:	1
License:	LGPLv2+
Group:		Development/GNOME and GTK+
Url:		http://gtk2-perl.sf.net/
Source0:	http://prdownloads.sourceforge.net/gtk2-perl/%{modname}-%{modver}.tar.gz
# helper for exception management:
Patch1:		exceptions.diff
# set up GdkX11:
Patch6:		GdkX11.diff
BuildRequires:	perl-devel
BuildRequires:	perl(Cairo::GObject) >= 1.0.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires:	perl(ExtUtils::Depends) >= 0.300
BuildRequires:	perl(ExtUtils::PkgConfig) >= 1.03
BuildRequires:	perl(Glib) >= 1.302.0-6
BuildRequires:	perl(Glib::Object::Introspection) >= 0.9.0
BuildRequires:	perl(Test::Simple)
BuildRequires: perl(CPAN::Meta)
# for test suite:
#BuildRequires:	x11-server-xvfb
BuildRequires:	typelib(Gtk) = 3.0
Requires:	typelib(Gdk) = 3.0
Requires:	typelib(GdkX11) = 3.0
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(Pango) = 1.0
# For exception handling:
Requires:	perl(Glib) >= 1.302.0-6
BuildArch:	noarch

%description
This module provides perl access to the GTK+-3.x library.

GTK+ is the GIMP ToolKit, a library for creating graphical user
interfaces for the X Window System.  GTK+ was originally written for the GIMP
(GNU Image Manipulation Program) image processing program, but is now used by
several other programs as well.

%files
%doc LICENSE META.yml MYMETA.yml NEWS README
%{perl_vendorlib}/%{modname}.pm
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{modname}-%{modver}
%apply_patches
rm -f lib/Gtk3.pm.*
perl Makefile.PL INSTALLDIRS=vendor

%build
%make OPTIMIZE="%{optflags}"

%install
%makeinstall_std

%check
# (TV) Test suite won't work in iurt (not enough stuff configured):
exit 0
xvfb-run %make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15403 |21mr|perl-Gtk3-SimpleList-0.150.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname	Gtk3-SimpleList
%define	modver	0.15

Name:		perl-%{modname}
Version:	%{perl_convert_version %{modver}}
Release:	4

Summary:	Perl helper module for Gtk3
License:	LGPLv2+ or Artistic
Group:		Development/GNOME and GTK+
Url:		http://gtk2-perl.sf.net/
Source0:	%{modname}-%{modver}.tar.gz

BuildArch:	noarch

BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Gtk3)
BuildRequires:	perl-devel
BuildRequires:	perl-ExtUtils-Depends >= 0.300
BuildRequires:  perl(CPAN::Meta)

%description
This module provides a helper for Gtk3.

%prep
%setup -q -n %{modname}-%{modver}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%install
%makeinstall_std

%files
%doc COPYING Changes META.json META.yml MYMETA.yml README
%{perl_vendorlib}/Gtk3/SimpleList*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15404 |21mr|perl-Guard-1.23.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Guard
%define upstream_version 1.023
%global __provides_exclude Guard.so

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Safe cleanup blocks

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0

%description
This module implements so-called "guards". A guard is something (usually an
object) that "guards" a resource, ensuring that it is cleaned up when
expected.

Specifically, this module supports two different types of guards: guard
objects, which execute a given code block when destroyed, and scoped
guards, which are tied to the scope exit.


%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes COPYING META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15405 |21mr|perl-Hash-SafeKeys-0.40.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hash-SafeKeys
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Get hash contents without resetting each iterator
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://cpan.metacpan.org/modules/by-module/Hash/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl-devel

%description
Every hash variable in Perl has its own internal iterator, accessed by the
builtin 'each', 'keys', and 'values' functions. The iterator is also
implicitly used whenever the hash is evaluated in list context. The
iterator is "reset" whenever 'keys' or 'values' is called on a hash,
including the implicit calls when the hash is evaluated in list context.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make_build

%check
%make_build test

%install
%make_install

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15406 |21mr|perl-Hook-LexWrap-0.260.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Hook-LexWrap
%define upstream_version 0.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Lexically scoped subroutine wrappers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Hook/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Hook::LexWrap allows you to install a pre- or post-wrapper (or both)
around an existing subroutine. Unlike other modules that provide this
capacity (e.g. Hook::PreAndPost and Hook::WrapSub), Hook::LexWrap
implements wrappers in such a way that the standard `caller' function
works correctly within the wrapped subroutine.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Hook
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15407 |21mr|perl-HTML-Clean-0.800.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-Clean
%define upstream_version 0.8

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	HTML shrinker

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The HTML::Clean module encapsulates a number of HTML optimizations
and cleanups.  The end result is HTML that loads faster, displays
properly in more browsers.  Think of it as a compiler that
translates HTML input into optimized machine readable code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README TODO
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/HTML
%{perl_vendorlib}/auto

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15408 |21mr|perl-HTML-Clean-1.400.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-Clean
%define upstream_version 1.4

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	HTML shrinker

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The HTML::Clean module encapsulates a number of HTML optimizations
and cleanups.  The end result is HTML that loads faster, displays
properly in more browsers.  Think of it as a compiler that
translates HTML input into optimized machine readable code.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README TODO
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/HTML
%{perl_vendorlib}/auto

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15409 |21mr|perl-HTML-Element-Extended-1.180.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Element-Extended
%define upstream_version 1.18

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    9

Summary:    Tables as easy HTML element structures
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Data::Dumper)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(HTML::Element)

BuildArch: noarch

%description
Provides a way to graft raw HTML strings into your HTML::Element(3)
structures. Since they represent raw text, these can only be leaves in your
HTML element tree. The only methods that are of any real use in this
degenerate element are push_content() and as_HTML(). The push_content()
method will simply prepend the provided text to the current content. If you
happen to pass an HTML::element to push_content, the output of the
as_HTML() method in that element will be prepended.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15410 |21mr|perl-HTML-Form-6.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTML-Form
%define upstream_version 6.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Class that represents an HTML form element

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Encode)
BuildRequires:	perl(HTML::TokeParser)
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Request::Common) >= 6.30.0
BuildRequires:  perl(LWP::MediaTypes)
BuildRequires:	perl-Test
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
Objects of the 'HTML::Form' class represents a single HTML '<form> ...
</form>' instance. A form consists of a sequence of inputs that usually
have names, and which can take on various values. The state of a form can
be tweaked and it can then be asked to provide 'HTTP::Request' objects that
can be passed to the request() method of 'LWP::UserAgent'.

The following methods are available:

* @forms = HTML::Form->parse( $html_document, $base_uri )

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15411 |21mr|perl-HTML-Format-2.110.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    HTML-Format
%define upstream_version 2.11

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:	CPAN %{upstream_name} perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/HTML-Format/
Source:     http://www.cpan.org/modules/by-module/HTML/HTML-Format-%{upstream_version}.tar.gz
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(Font::AFM) >= 1.17
BuildRequires:	perl(HTML::Tree) >= 3.15
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More) >= 0.960.0
BuildArch:	noarch

%description
This is a collection of modules that formats HTML as plaintext,
PostScript or RTF.

The modules present in this package are:

  HTML::FormatText - Formatter that converts a syntax tree to plain
        readable text.

  HTML::FormatPS - Formatter that outputs PostScript code.

  HTML::FormatRTF - Formatter that outputs RTF code.

  HTML::Formatter - Base class for various formatters.  Formatters
        traverse a syntax tree and produce some textual output.  None
        of the current formatters handle tables or forms yet.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean 

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/HTML/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15412 |21mr|perl-HTML-Parser-3.780.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 HTML-Parser
%define upstream_version 3.78

%define Werror_cflags %nil

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Perl module to parse HTML documents

License:	GPL+ or Artistic
Group:		Development/Perl
Url: 		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Tagset)
BuildRequires:	perl(HTTP::Headers)
BuildRequires:	perl(Test)
Requires:	perl(HTML::Tagset)

%description
HTML::Parser module for Perl to parse and extract information from
HTML documents.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
# compile with default options (prompt() checks for STDIN being a terminal).
# yes to not ask for automate rebuild
yes | perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
make test

%install
%makeinstall_std

%files
%doc README TODO Changes
%{perl_vendorarch}/auto/HTML
%{perl_vendorarch}/HTML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15413 |21mr|perl-HTML-TableExtract-2.130.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-TableExtract
%define upstream_version 2.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTML::ElementTable)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0

BuildArch:	noarch

%description
HTML::TableExtract is a module that simplifies the extraction
of information contained in tables within HTML documents.

Tables of note may be specified using Headers, Depth, Count,
or some combination of the three. See the module documentation
for details.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%doc Changes META.json META.yml LICENSE README 
%{perl_vendorlib}/HTML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15414 |21mr|perl-HTML-Tagset-3.200.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 HTML-Tagset
%define	upstream_version 3.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	13

Summary:	This module contains data tables useful in dealing with HTML

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/HTML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildArch:	noarch

%description
This module contains data tables useful in dealing with HTML.
It provides no functions or methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/HTML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15415 |21mr|perl-HTML-Tree-4.200.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 HTML-Tree
%define upstream_version 4.2

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10
Epoch:		1

Summary:	Build and scan parse-trees of HTML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/C/CJ/CJM/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-HTML-Parser
BuildRequires:	perl(HTML::Tagset)

BuildArch:	noarch

%description
This distribution contains a suite of modules for representing,
creating, and extracting information from HTML syntax trees; there is
also relevent documentation.  These modules used to be part of the
libwww-perl distribution, but are now unbundled in order to facilitate
a separate development track.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/HTML
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15416 |21mr|perl-HTTP-Cookies-6.40.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Win32\\)
%else
%define _requires_exceptions Win32
%endif

%define upstream_name    HTTP-Cookies
%define upstream_version 6.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Storage of cookies

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(HTTP::Headers::Util)
BuildRequires:	perl(Time::Local)
BuildRequires:	perl(Test)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This class is for objects that represent a "cookie jar" -- that is, a
database of all the HTTP cookies that a given LWP::UserAgent object knows
about.

Cookies are a general mechanism which server side connections can use to
both store and retrieve information on the client side of the connection.
For more information about cookies refer to
<URL:http://curl.haxx.se/rfc/cookie_spec.html> and
<URL:http://www.cookiecentral.com/>. This module also implements the new
style cookies described in _RFC 2965_. The two variants of cookies are
supposed to be able to coexist happily.

Instances of the class _HTTP::Cookies_ are able to store a collection of
Set-Cookie2: and Set-Cookie: headers and are able to use this information
to initialize Cookie-headers in _HTTP::Request_ objects. The state of a
_HTTP::Cookies_ object can be saved in and restored from files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm lib/HTTP/Cookies/Microsoft.pm
sed -i -e '/Microsoft.pm/d' MANIFEST

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml 
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15417 |21mr|perl-HTTP-Daemon-6.120.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Daemon
%define upstream_version 6.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Base class for simple HTTP servers

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/HTTP-Daemon-%{upstream_version}.tar.gz

BuildRequires:	perl(HTTP::Date)
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(HTTP::Status)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(LWP::MediaTypes)
BuildRequires:	perl(Sys::Hostname)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Instances of the 'HTTP::Daemon' class are HTTP/1.1 servers that listen on a
socket for incoming requests. The 'HTTP::Daemon' is a subclass of
'IO::Socket::INET', so you can perform socket operations directly on it
too.

The accept() method will return when a connection from a client is
available. The returned value will be an 'HTTP::Daemon::ClientConn' object
which is another 'IO::Socket::INET' subclass. Calling the get_request()
method on this object will read data from the client and return an
'HTTP::Request' object. The ClientConn object also provide methods to send
back various responses.

This HTTP daemon does not fork(2) for you. Your application, i.e. the user
of the 'HTTP::Daemon' is responsible for forking if that is desirable. Also
note that the user is responsible for generating responses that conform to
the HTTP/1.1 protocol.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#% make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15418 |21mr|perl-HTTP-Date-6.20.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Date
%define upstream_version 6.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    Date conversion for HTTP date formats

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTTP/HTTP-Date-%{upstream_version}.tar.gz

BuildRequires: perl(Time::Local)
BuildRequires: perl-devel
Conflicts:	perl-libwww-perl < 6
BuildArch: noarch

%description
This module provides functions that deal the date formats used by the HTTP
protocol (and then some more). Only the first two functions, time2str() and
str2time(), are exported by default.

* time2str( [$time] )

  The time2str() function converts a machine time (seconds since epoch) to
  a string. If the function is called without an argument or with an
  undefined argument, it will use the current time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15419 |21mr|perl-HTTP-Message-6.350.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Message
%define upstream_version 6.35

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Base class for Request/Response

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Compress::Raw::Zlib)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(IO::HTML)
BuildRequires: perl(Encode)
BuildRequires: perl(Encode::Locale)
BuildRequires: perl(HTML::Parser)
BuildRequires: perl(HTTP::Date)
BuildRequires: perl(IO::Compress::Bzip2)
BuildRequires: perl(IO::Compress::Deflate)
BuildRequires: perl(IO::Compress::Gzip)
BuildRequires: perl(IO::Uncompress::Bunzip2)
BuildRequires: perl(IO::Uncompress::Gunzip)
BuildRequires: perl(IO::Uncompress::Inflate)
BuildRequires: perl(IO::Uncompress::RawInflate)
BuildRequires: perl(LWP::MediaTypes)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(MIME::QuotedPrint)
BuildRequires: perl(URI)
BuildRequires: perl-devel
BuildArch: noarch

%description
An 'HTTP::Config' object is a list of entries that can be matched against
request or request/response pairs. Its purpose is to hold configuration
data that can be looked up given a request or response object.

Each configuration entry is a hash. Some keys specify matching to occur
against attributes of request/response objects. Other keys can be used to
hold user data.

The following methods are provided:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15420 |21mr|perl-HTTP-Negotiate-6.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Negotiate
%define upstream_version 6.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	HTTP content negotiation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/HTTP-Negotiate-%{upstream_version}.tar.gz

BuildRequires:	perl(HTTP::Headers)
BuildRequires:	perl-Test
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides a complete implementation of the HTTP content
negotiation algorithm specified in _draft-ietf-http-v11-spec-00.ps_ chapter
12. Content negotiation allows for the selection of a preferred content
representation based upon attributes of the negotiable variants and the
value of the various Accept* header fields in the request.

The variants are ordered by preference by calling the function choose().

The first parameter is reference to an array of the variants to choose
among. Each element in this array is an array with the values [$id, $qs,
$content_type, $content_encoding, $charset, $content_language,
$content_length] whose meanings are described below. The $content_encoding
and $content_language can be either a single scalar value or an array
reference if there are several values.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15421 |21mr|perl-HTTP-Response-Encoding-0.60.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Response-Encoding
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Adds encoding() to HTTP::Response

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Encode)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Adds encoding() to HTTP::Response.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15422 |21mr|perl-HTTP-Server-Simple-0.520.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    HTTP-Server-Simple
%define upstream_version 0.52

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Perl module to write simple standalone http daemons

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/HTTP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl-Test-Simple
Requires:	perl(CGI)
BuildArch:	noarch

%description
This module is a simple standalone http dameon. It doesn't thread. It doesn't
fork. It does, however, act as a simple frontend which can turn a CGI into a
standalone web-based application.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc ex README Changes
%{perl_vendorlib}/HTTP
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15423 |21mr|perl-Image-ExifTool-11.10.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Image-ExifTool
%define upstream_version 11.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Epoch:		1

Summary:	Read and write meta information


License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Image/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildArch:	noarch
Provides:	Image-ExifTool

%description
ExifTool provides an extensible set of perl modules to read and write meta
information in image, audio and video files, including the maker note
information of many digital cameras by various manufacturers such as Canon,
Casio, FujiFilm, JVC/Victor, Kodak, Leaf, Minolta/Konica-Minolta, Nikon,
Olympus/Epson, Panasonic/Leica, Pentax/Asahi, Ricoh, Sanyo and Sigma/Foveon.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}} -DENGLISH"

%check
make test

%install
%makeinstall_std

%files
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/Image
%{perl_vendorlib}/File

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15424 |21mr|perl-Image-Size-3.300.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Image-Size
%define upstream_version 3.300

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Epoch:		1

Summary:	Read the dimensions of an image in several popular formats

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Image/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Image::Size is a library based on the image-sizing code in the wwwimagesize
script, a tool that analyzes HTML files and adds HEIGHT and WIDTH tags to
IMG directives.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{_bindir}/imgsize
%{_mandir}/*/*
%{perl_vendorlib}/Image

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15425 |21mr|perl-Importer-0.24.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Importer
%define upstream_version 0.024

Name:      	perl-%{upstream_name}
Version:    	%perl_convert_version %{upstream_version}
Release:        4
Summary:        Alternative interface to modules that export symbols
License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/Importer/
Source0:        http://search.cpan.org/CPAN/authors/id/E/EX/EXODIST/Importer-%{upstream_version}.tar.gz
BuildArch:      noarch
BuildRequires:  findutils
BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Tests:
BuildRequires:  perl(base)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(Test::More) >= 0.98

%description
This Perl module acts as a layer between Exporter and modules which consume
exports. It is feature-compatible with Exporter, plus some much needed
extras. You can use this to import symbols from any exporter that follows
Exporters specification. The exporter modules themselves do not need to use
or inherit from the Exporter module, they just need to set @EXPORT and/or
other variables.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
find %{buildroot} -type f -name .packlist -delete

%check
make test

%files
%doc Changes README LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15426 |21mr|perl-Import-Into-1.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Import-Into
%define upstream_version 1.002005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Import packages into other packages
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  perl(CPAN::Meta)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Writing exporters is a pain. Some use the Exporter manpage, some use the
Sub::Exporter manpage, some use the Moose::Exporter manpage, some use the
Exporter::Declare manpage ... and some things are pragmas.

If you want to re-export other things, you have to know which is which. the
Exporter manpage subclasses provide export_to_level, but if they overrode
their import method all bets are off. the Sub::Exporter manpage provides an
into parameter but figuring out something used it isn't trivial. Pragmas
need to have their 'import' method called directly since they affect the
current unit of compilation.

It's ... annoying.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15427 |21mr|perl-Inline-0.860.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Inline
%define upstream_version 0.86

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Write Perl subroutines in other programming languages


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl-devel
# for test
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(JSON::PP)
BuildArch:	noarch

Requires:	perl(Parse::RecDescent)

%description
The Inline module allows you to put source code from other programming
languages directly "inline" in a Perl script or module. The code is
automatically compiled as needed, and then loaded for immediate access
from Perl.

Inline saves you from the hassle of having to write and compile your
own glue code using facilities like XS or SWIG. Simply type the code
where you want it and run your Perl as normal. All the hairy details
are handled for you. The compilation and installation of your code
chunks all happen transparently; all you will notice is the delay of
compilation on the first run.

The Inline code only gets compiled the first time you run it (or
whenever it is modified) so you only take the performance hit
once. Code that is Inlined into distributed modules (like on the CPAN)
will get compiled when the module is installed, so the end user will
never notice the compilation time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/*/*
%{perl_vendorlib}/Inline*
# %{perl_vendorlib}/auto/Inline*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15428 |21mr|perl-IO-AIO-4.720.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 IO-AIO
%define upstream_version 4.72

Name:       	perl-%{upstream_name}
Version:    	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Asynchronous Input/Output 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz
Requires:	perl(common::sense)
BuildRequires:	db5-devel
BuildRequires:	gdbm-devel
BuildRequires:	perl(common::sense)
BuildRequires:	perl(Canary::Stability)
BuildRequires:	perl(Test)
BuildRequires:	perl-devel

%description
This module implements asynchronous I/O using whatever means your operating
system supports.

Currently, a number of threads are started that execute your read/writes and
signal their completion. You don't need thread support in your libc or perl,
and the threads created by this module will not be visible to the pthreads
library. In the future, this module might make use of the native aio functions
available on many operating systems. However, they are often not well-supported
(Linux doesn't allow them on normal files currently, for example), and they
would only support aio_read and aio_write, so the remaining functionality would
have to be implemented using threads anyway.

Although the module will work with in the presence of other threads, it is
currently not reentrant, so use appropriate locking yourself, always call
poll_cb from within the same thread, or never call poll_cb (or other aio_
functions) recursively.

After creating a new Gtk2::Ex::Simple::List object with the desired columns you
may set the list data with a simple Perl array assignment. Rows may be added or
deleted with all of the normal array operations. You can treat the data member
of the Simple::List object as an array reference, and manipulate the list data
with perl's normal array operators.

A mechanism has also been put into place allowing columns to be Perl scalars.
The scalar is converted to text through Perl's normal mechanisms and then
displayed in the list. This same mechanism can be expanded by defining
arbitrary new column types before calling the new function.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%clean

%files
%{_mandir}/*/*
%{_bindir}/treescan
%{perl_vendorarch}/IO
%{perl_vendorarch}/auto/IO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15429 |21mr|perl-IO-Async-0.801.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Async
%define upstream_version 0.801

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	A Loop using an C<IO::Poll> object

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/P/PE/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter) >= 5.570.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(File::Temp)
BuildRequires: perl(File::stat)
BuildRequires: perl(Future) >= 0.120.0
BuildRequires: perl(Future::Utils) >= 0.180.0
BuildRequires: perl(IO::Poll)
BuildRequires: perl(IO::Socket::IP)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Socket) >= 2.7.0
BuildRequires: perl(Storable)
BuildRequires: perl(Struct::Dumb)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Future::IO::Impl)
BuildRequires: perl(Test::Identity)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Test::Metrics::Any)
BuildRequires: perl(Test::Refcount)
BuildRequires: perl(Test::Pod) >= 1.500.0
BuildRequires: perl(Test::Warn)
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(common::sense)

BuildArch:	noarch

%description
This collection of modules allows programs to be written that perform
asynchronous filehandle IO operations. A typical program using them would
consist of a single subclass of 'IO::Async::Loop' to act as a container o
other objects, which perform the actual IO work required by the program. As
as IO handles, the loop also supports timers and signal handlers, and
includes more higher-level functionallity built on top of these basic
parts.

Because there are a lot of classes in this collection, the following
overview gives a brief description of each.

File Handle IO
    A the IO::Async::Handle manpage object represents a single IO handle
    that is being managed. While in most cases it will represent a single
    filehandle, such as a socket (for example, an 'IO::Socket::INET'
    connection), it is possible to have separate reading and writing
    handles (most likely for a program's 'STDIN' and 'STDOUT' streams, or a
    pair of pipes connected to a child process).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
#test 41 failed if build on ABF, local build test passed
#rm -f t/41routine.t
#./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15430 |21mr|perl-IO-HTML-1.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-HTML
%define upstream_version 1.001

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Open an HTML file with automatic charset detection
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Encode) >= 2.100.0
BuildRequires: perl(Exporter) >= 5.570.0
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Temp)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl-devel
BuildArch:  noarch

%description
IO::HTML provides an easy way to open a file containing HTML while
automatically determining its encoding. It uses the HTML5 encoding sniffing
algorithm specified in section 8.2.2.1 of the draft standard.

The algorithm as implemented here is:

* 1.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15431 |21mr|perl-IO-Multiplex-1.160.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 IO-Multiplex
%define upstream_version 1.16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Manage IO on many file handles

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl-Test
BuildArch:	noarch

%description
IO::Multiplex is designed to take the effort out of managing
multiple file handles.  It is essentially a really fancy front end to
the C<select> system call.  In addition to maintaining the C<select>
loop, it buffers all input and output to/from the file handles.  It
can also accept incoming connections on one or more listen sockets.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc Changes README TODO
%{perl_vendorlib}/IO
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15432 |21mr|perl-IO-Pipely-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name IO-Pipely
%define upstream_version 0.006

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Portably create pipe() or pipe-like handles, one way or another

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:	noarch
BuildRequires:  perl-devel

%description
Pipes are troublesome beasts because there are a few different,
incompatible ways to create them. Not all platforms support all ways,
and some platforms may have hidden difficulties like incomplete or buggy
support.

IO::Pipely provides a couple functions to portably create one- and
two-way pipes and pipe-like socket pairs. It acknowledges and works
around known platform issues so you don't have to.

On the other hand, it doesn't work around unknown issues, so please
report any problems early and often.

IO::Pipely currently understands pipe(), UNIX-domain socketpair() and
regular IPv4 localhost sockets. This covers every platform tested so
far, but it's hardly complete. Please help support other mechanisms,
such as INET-domain socketpair() and IPv6 localhost sockets.

IO::Pipely will use different kinds of pipes or sockets depending on the
operating system's capabilities and the number of directions requested.
The autodetection may be overridden by specifying a particular pipe
type.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15433 |21mr|perl-IO-SessionData-1.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name IO-SessionData
%define upstream_version 1.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Supporting module for SOAP::Lite

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Supporting module for SOAP::Lite.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15434 |21mr|perl-IO-Socket-INET6-2.720.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  IO-Socket-INET6
%define upstream_version 2.72

Summary:	Object interface for AF_INET|AF_INET6 domain sockets
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9
License:	BSD-like
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/IO-Socket-INET6-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-Socket6
BuildArch:	noarch

%description
IO::Socket::INET6 provides an object interface to creating and using sockets in
both AF_INET|AF_INET6 domain. It is built upon the IO::Socket interface and
inherits all the methods defined by IO::Socket.

%files
%doc ChangeLog README
%{perl_vendorlib}/IO
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#ABF doesn't have IPv6 support
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15435 |21mr|perl-IO-Socket-SSL-2.56.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Socket-SSL
%define upstream_version 2.056

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        2

Summary:        Nearly transparent SSL encapsulation for IO::Socket::INET





License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/%{upstream_name}/
Source0:        http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  perl-devel
BuildRequires:  perl(Net::SSLeay) >= 1.21
BuildRequires:  perl(IO::Socket::INET6)
BuildArch:      noarch
Requires:       perl(Net::SSLeay) >= 1.21

%description
IO::Socket::SSL is a class implementing an object oriented
interface to SSL sockets. The class is a descendent of
IO::Socket::INET and provides a subset of the base class's
interface methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
export SKIP_RNG_TEST=1
perl Makefile.PL INSTALLDIRS=vendor
%make

# %%check
# export SKIP_RNG_TEST=1
# %{__make} test

%install
%makeinstall_std

%clean

%files
%doc README Changes  docs certs
%{_mandir}/*/*
%{perl_vendorlib}/IO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15436 |21mr|perl-IO-Socket-SSL-2.74.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Socket-SSL
%define upstream_version 2.074

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        1

Summary:        Nearly transparent SSL encapsulation for IO::Socket::INET





License:        GPL+ or Artistic
Group:          Development/Perl
URL:            http://search.cpan.org/dist/%{upstream_name}/
Source0:        http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:  perl-devel
BuildRequires:  perl(Net::SSLeay) >= 1.21
BuildRequires:  perl(IO::Socket::INET6)
BuildArch:      noarch
Requires:       perl(Net::SSLeay) >= 1.21

%description
IO::Socket::SSL is a class implementing an object oriented
interface to SSL sockets. The class is a descendent of
IO::Socket::INET and provides a subset of the base class's
interface methods.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
export SKIP_RNG_TEST=1
perl Makefile.PL INSTALLDIRS=vendor
%make

# %%check
# export SKIP_RNG_TEST=1
# %{__make} test

%install
%makeinstall_std

%clean

%files
%doc README Changes  docs certs
%{_mandir}/*/*
%{perl_vendorlib}/IO

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15437 |21mr|perl-IO-String-1.80.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 IO-String
%define upstream_version 1.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	A Perl module to read from strings

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildArch:	noarch

%description
IO::String is an IO::File (and IO::Handle) compatible class that read or
write data from in-core strings.  It is really just a simplification of
what I needed from Eryq's IO-stringy modules.  As such IO::String is a
replacement for IO::Scalar.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/IO
%{_mandir}/man3/IO::String.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15438 |21mr|perl-IO-stringy-2.111.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname IO-stringy
%define upstream_version 2.111

Summary:	Perl module for I/O on in-core objects like strings and arrays

Name:		perl-%{realname}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	Artistic/GPLv2
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{realname}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/IO/IO-stringy-%{upstream_version}.tar.gz
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl

%description
This toolkit primarily provides modules for performing both traditional
and object-oriented i/o) on things *other* than normal filehandles; in
particular, the IO::Scalar manpage, the IO::ScalarArray manpage, and the
IO::Lines manpage.

If you have access to tie(), these classes will make use of the the
IO::WrapTie manpage module to inherit a convenient new_tie()
constructor. It also exports a nice wraptie() function.

In the more-traditional IO::Handle front, we have the IO::AtomicFile
manpage which may be used to painlessly create files which are updated
atomically.

And in the "this-may-prove-useful" corner, we have the IO::Wrap manpage,
whose exported wraphandle() function will clothe anything that's not a
blessed object in an IO::Handle-like wrapper... so you can just use OO
syntax and stop worrying about whether your function's caller handed you
a string, a globref, or a FileHandle.

%prep
%setup -q -n %{realname}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/IO
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15439 |21mr|perl-IO-Tty-1.120.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IO-Tty
%define upstream_version 1.12

Summary:	Pseudo TTY object class
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IO/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

%description
The IO::Tty and IO::Pty modules provide an interface to pseudo tty's.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%files
%doc ChangeLog README
%{perl_vendorarch}/auto/IO
%{perl_vendorarch}/IO
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15440 |21mr|perl-IP-Country-2.280.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 IP-Country
%define upstream_version 2.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Fast lookup of country codes from IP addresses

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/IP/IP-Country-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Geography::Countries)
BuildRequires:	perl-Test
BuildArch:	noarch

%description
IP lookup modules for Perl. This package also provides the ip2cc utility, to
lookup country from IP address or hostname.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README
%{perl_vendorlib}/IP
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15441 |21mr|perl-IPC-Run-0.990.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 IPC-Run
%define upstream_version 0.99

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	%{upstream_name} module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/IPC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
IPC::Run allows you run and interact with child processes using files,
pipes, and pseudo-ttys. Both system()-style and scripted usages are
supported and may be mixed. Likewise, functional and OO API styles are
both supported and may be mixed.

Various redirection operators reminiscent of those seen on common Unix
and DOS command lines are provided.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes
chmod 755 eg/*
perl -pi -e 's|^#!/usr/local/bin/perl|#!/usr/bin/perl|' eg/*

rm -f lib/IPC/Run/Win32Helper.pm \
      lib/IPC/Run/Win32IO.pm \
      lib/IPC/Run/Win32Pump.pm

sed -i -e '/Win32Helper.pm/d;/Win32IO.pm/d;/Win32Pump.pm/d' MANIFEST

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes TODO eg
%{perl_vendorlib}/IPC
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15442 |21mr|perl-IPC-Run3-0.48.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IPC-Run3
%define upstream_version 0.048

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Run a subprocess in batch mode (a la system)


License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IPC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildRequires:	perl-Test-Simple
BuildRequires:  perl(Time::HiRes)
BuildArch:	noarch

%description
IPC::Run3 allows you run and interact with child processes using files,
pipes, and pseudo-ttys. Both system()-style and scripted usages are
supported and may be mixed. Likewise, functional and OO API styles are
both supported and may be mixed. 

Various redirection operators reminiscent of those seen on common Unix
and DOS command lines are provided. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -pi -e 's#/usr/local/bin/#%{_bindir}/#' bin/run3profpp

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
mkdir -p %{buildroot}/%{_bindir}
cp bin/* %{buildroot}/%{_bindir}
chmod 0755 %{buildroot}/%{_bindir}/*

%files
%doc Changes META.yml
%{perl_vendorlib}/IPC
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15443 |21mr|perl-IPC-Signal-1.00-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module IPC-Signal

Summary:	IPC::Signal - Utility functions dealing with signals

Name:		perl-%{module}
Version:	1.00
Release:	11
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/~rosch/IPC-Signal/
Source0:	http://search.cpan.org/CPAN/authors/id/R/RO/ROSCH/%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl-File-Path

BuildArch:	noarch

%description
This module contains utility functions for dealing with signals.

%prep
%setup -q -n %{module}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/IPC/Signal.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15444 |21mr|perl-IPC-System-Simple-1.250.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    IPC-System-Simple
%define upstream_version 1.25

# find-requires extracts too much, cf https://qa.mandriva.com/show_bug.cgi?id=47678
# therefore, forcing explicit require skipping of Win32
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Win32(.*)\\)
%else
%define _requires_exceptions perl.Win32.
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Run commands simply, with detailed diagnostics

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/IPC/IPC-System-Simple-%{upstream_version}.tar.gz

BuildRequires:	perl(Config)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Calling Perl's in-built 'system()' function is easy, determining if it was
successful is _hard_. Let's face it, '$?' isn't the nicest variable in the
world to play with, and even if you _do_ check it, producing a
well-formatted error string takes a lot of work.

'IPC::System::Simple' takes the hard work out of calling external commands.
In fact, if you want to be really lazy, you can just write:

    use IPC::System::Simple qw(system);

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15445 |21mr|perl-IPTables-ChainMgr-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		perl-IPTables-ChainMgr
Version:	1.6
Release:	1
Summary:	Perl extension for manipulating iptables policies
Group:		Development/Perl
License:	Artistic 2.0
URL:		http://www.cipherdyne.org/modules/
Source0:	http://www.cipherdyne.org/modules/IPTables-ChainMgr-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(IPTables::Parse)
BuildRequires:	perl(NetAddr::IP)
BuildRequires:	perl(strict)
BuildRequires:	perl(Test)
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
The IPTables::ChainMgr package provides an interface to manipulate iptables
policies on Linux systems through the direct execution of iptables
commands. Although making a perl extension of libiptc provided by the iptables
project is possible, it is easy to just execute iptables commands directly in
order to both parse and change the configuration of the policy. Further, this
simplifies installation since the only external requirement is (in the spirit
of scripting) to be able to point IPTables::ChainMgr at an installed iptables
binary instead of having to compile against a library.

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

#-------------------------------------------------------------------------
%prep
%setup -q -n IPTables-ChainMgr-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15446 |21mr|perl-IPTables-Parse-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		perl-IPTables-Parse
Version:	1.6.1
Release:	1
Summary:	Perl extension for parsing iptables firewall rulesets
Group:		Development/Perl
License:	Artistic 2.0
URL:		http://www.cipherdyne.org/modules/
Source0:	http://www.cipherdyne.org/modules/IPTables-Parse-%{version}.tar.bz2
BuildArch:	noarch
BuildRequires:	make
BuildRequires:	perl-generators
BuildRequires:	perl-interpreter
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(strict)
BuildRequires:	perl(Test)
Requires:	perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))

%description
The IPTables::Parse package provides an interface to parse iptables rules
on Linux systems through the direct execution of iptables commands, or from
parsing a file that contains an iptables policy listing. You can get the
current policy applied to a table/chain, look for a specific user-defined
chain, check for a default DROP policy, or determing whether or not logging
rules exist.

%files
%doc Changes README
%{perl_vendorlib}/*
%{_mandir}/man3/*

#--------------------------------------------------------------------
%prep
%setup -q -n IPTables-Parse-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
make %{?_smp_mflags}

%install
make pure_install DESTDIR=%{buildroot}
%{_fixperms} %{buildroot}/*

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15447 |21mr|perl-JSON-2.900.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname	JSON
%define modver 2.90

Summary:	Parse and convert to JSON (JavaScript Object Notation)

Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	7
License:	Artistic/GPLv2
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{modname}/
Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MAKAMAKA/JSON-%{modver}.tar.gz
BuildArch:	noarch
BuildRequires:	perl(Test::More)
BuildRequires:	perl(CGI)
BuildRequires:	perl-devel
#BuildRequires:	perl-JSON-PP
#BuildRequires:	perl-JSON-XS
# This is (and should be) provided by perl-JSON-PP. We provide JSON::backportPP
# instead.
%global __provides_exclude perl\\(JSON::PP\\)
Provides:	perl(JSON::backportPP)

%description
This module converts between JSON (JavaScript Object Notation) and
Perl data structure into each other.

%prep
%setup -qn %{modname}-%{modver}
sed -i.DOS -e 's/\r//g' README

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/JSON*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15448 |21mr|perl-JSON-DWIW-0.470.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JSON-DWIW
%define upstream_version 0.47

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9

Summary:    Return a true or false value when

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/JSON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Test)
BuildRequires: libtool

%description
Other JSON modules require setting several parameters before calling the
conversion methods to do what I want. This module does things by default
that I think should be done when working with JSON in Perl. This module
also encodes and decodes faster than JSON.pm and JSON::Syck in my
benchmarks.

This means that any piece of data in Perl (assuming it's valid unicode)
will get converted to something in JSON instead of throwing an exception.
It also means that output will be strict JSON, while accepted input will be
flexible, without having to set any options.

Encoding
    Perl objects get encoded as their underlying data structure, with the
    exception of Math::BigInt and Math::BigFloat, which will be output as
    numbers, and JSON::DWIW::Boolean, which will get output as a true or
    false value (see the true() and false() methods). For example, a
    blessed hash ref will be represented as an object in JSON, a blessed
    array will be represented as an array. etc. A reference to a scalar is
    dereferenced and represented as the scalar itself. Globs, Code refs,
    etc., get stringified, and undef becomes null.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# fix build on aarch64
cp -r %{_datadir}/libtool/config/config.{guess,sub} libjsonevt/

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc README
%{_mandir}/man3/*
%{perl_vendorarch}/JSON
%{perl_vendorarch}/auto/JSON

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15449 |21mr|perl-JSON-MaybeXS-1.4.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    JSON-MaybeXS
%define upstream_version 1.004003

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Use L<Cpanel::JSON::XS> with a fallback to L<JSON::XS> and L<JSON::PP>
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/JSON/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Cpanel::JSON::XS)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Test::Without::Module)
BuildRequires: perl(JSON::XS)


BuildArch: noarch

%description
This module first checks to see if either the Cpanel::JSON::XS manpage or
the JSON::XS manpage is already loaded, in which case it uses that module.
Otherwise it tries to load the Cpanel::JSON::XS manpage, then the JSON::XS
manpage, then the JSON::PP manpage in order, and either uses the first
module it finds or throws an error.

It then exports the 'encode_json' and 'decode_json' functions from the
loaded module, along with a 'JSON' constant that returns the class name for
calling 'new' on.

If you're writing fresh code rather than replacing JSON usage, you might
want to pass options as constructor args rather than calling mutators, so
we provide our own 'new' method that supports that.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15450 |21mr|perl-JSON-XS-3.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name JSON-XS
%define upstream_version 3.01

Summary:	JSON (JavaScript Object Notation) serialization
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Epoch:		1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/JSON/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildRequires:	perl(CGI)
BuildRequires:	perl(HTTP::Request)
BuildRequires:	perl(HTTP::Response)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Types::Serialiser)
BuildRequires:	perl(common::sense)
Requires:	perl(common::sense)

%description
JSON serialising/deserialising, done correctly and fast.

%files
%defattr(0644,root,root,0755)
%doc Changes README
%{_mandir}/*/*
%{_bindir}/json_xs
%{perl_vendorarch}/JSON*
%{perl_vendorarch}/auto/JSON/XS/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15451 |21mr|perl-ldap-0.650.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    ldap
%define upstream_version 0.65

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Perl modules for ldap
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{name}/
Source0:    ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{name}-%{upstream_version}.tar.gz

BuildRequires: openldap-servers
BuildRequires: perl-devel >= 5.8.0
BuildRequires:	perl-Module-Install
BuildRequires:	perl-CPAN
BuildRequires:  perl(Authen::SASL) >= 2.00
BuildRequires:  perl(Carp)
BuildRequires:  perl(Convert::ASN1)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.420.0
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Compare)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(GSSAPI)
BuildRequires:  perl(HTTP::Status)
BuildRequires:  perl(HTTP::Negotiate)
BuildRequires:  perl(HTTP::Response)
BuildRequires:  perl(IO::File)
BuildRequires:  perl(IO::Select)
BuildRequires:  perl(IO::Socket)
BuildRequires:  perl(IO::Socket::SSL)
BuildRequires:  perl(IO::Socket::INET6)
BuildRequires:  perl(LWP::MediaTypes)
BuildRequires:  perl(LWP::Protocol)
BuildRequires:  perl(LWP::UserAgent)
BuildRequires:  perl(MIME::Base64)
BuildRequires:  perl(Test::More)
BuildRequires:	perl(Text::Soundex)
BuildRequires:  perl(URI::ldap) >= 1.1
BuildRequires:  perl(XML::SAX::Base)
BuildRequires:  perl(XML::SAX::Writer)
BuildArch:	noarch

Requires:	perl(Authen::SASL)  >= 2.0.0
Requires:	perl(Convert::ASN1) >= 0.70.0
Requires:	perl(XML::Parser)


%description
The perl-ldap distribution is a collection of perl modules
which provide an object-oriented interface to LDAP servers.

%prep
%setup -q -n %{name}-%{upstream_version}

# perl path
find -type f | xargs perl -pi -e "s|/usr/local/bin/perl|%{_bindir}/perl|g"
chmod 644 contrib/*

cat > test.cfg << EOF
\$SERVER_EXE = "%{_sbindir}/slapd";
\$SERVER_TYPE = "openldap2+ssl+ipc+sasl";
\$SLAPD_DB = "bdb";
\$HOST = "127.0.0.1";
\$SCHEMA_DIR = "%{_datadir}/openldap/schema";
\$EXTERNAL_TESTS = 0;
1;
EOF

%build
find -name \*.pm | xargs chmod 644
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc CREDITS Changes INSTALL META.json README SIGNATURE TODO
%{perl_vendorlib}/LWP
%{perl_vendorlib}/Bundle
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15452 |21mr|perl-Libconf-0.42.10-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Configuration file abstraction layer

Name:		perl-Libconf
Version:	0.42.10
Release:	16
License:	GPLv2+
Group:		Development/Perl
URL:		http://www.libconf.net/
Source0:	http://libconf.net/download/%{name}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Patch0:		perl-Libconf-0.39.9-fix-drakups.patch
Patch1:		perl-Libconf-fix-doc-build.patch
# Fix build for perl 5.10: suggested by http://patches.ubuntu.com/by-release/extracted/debian/o/openser/1.3.0-3/04_perl_for_perl5.10.dpatch
# for a similar issue in openser, from Ubuntu - AdamW 2008/07
Patch2:		perl-Libconf-0.42.10-perl510.patch
Patch3:		perl-Libconf-0.42.10-buildfix.diff
BuildRequires:	perl-XML-LibXML
BuildRequires:	perl-Text-DelimMatch
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	perl-Pod-Html
BuildRequires:	pkgconfig(python2)
BuildRequires:	perl-devel

%description
Libconf is a wrapper to the main configuration files of the system.
It's mainly a generic parser plus many templates.

%package gui
%global __requires_exclude perl\\((common|ugtk2)

Summary:	Graphic User Interface generator for any libconf module

Group:		Development/Perl

%description gui
This module is able to generate a standard GTK+ 2 interface
representing any high level libconf module, that can be used in other
GTK+ 2 programs.

%package samples
Summary:	Set of examples programs using libconf

Group:		Development/Perl
Requires:	%{name}

%description samples
This module is a set of programs, using libconf. Its goal is to give
example and proof of concept around the libconf project.

%package devel
Summary:	Libconf devel

Group:		Development/Perl
Requires:	%{name}

%description devel
Libconf devel files.

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1 -b .perl510
%patch3 -p0


%build
%make all CFLAGS="%{optflags} -I/usr/include/python2.7 -Wall -O2 -fpic" BINDINGS="bash c"
%make -s check

%install
%makeinstall PREFIX="%{buildroot}%{_prefix}" LIB_DIR="%{buildroot}%{_libdir}" NAME=%{name}

%files
%doc ChangeLog
%{perl_vendorlib}/Libconf.pm
%{perl_vendorlib}/Libconf/*
%exclude %{perl_vendorlib}/Libconf/GUI
%{_defaultdocdir}/%{name}/html

%files gui
%doc ChangeLog
%{perl_vendorlib}/Libconf/GUI

%files samples
%doc ChangeLog
%{_bindir}/*

%files devel
%{_libdir}/libconf2xml.so
%{_includedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15453 |21mr|perl-libintl-perl-1.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    libintl-perl
%define upstream_version 1.31
%global __requires_exclude /bin/false

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	A localization library for Perl
License:	LGPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/G/GU/GUIDO/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	gettext-devel
BuildRequires:	perl-devel
BuildRequires:	perl-Test
#gw yes, this is required by the tests
BuildRequires:	locales-de

%description
libintl-perl is a library that supports message translation for
Perl, written in pure Perl (version 5.004 or better). A faster C
version is also built and installed if the system fulfills all
requirements. Its interface is very similar to the gettext family
of functions in C, and it uses the same file formats as GNU
gettext, making it possible to use all tools available for gettext
itself and to seamlessly integrate internationalized Perl code
into mixed-language projects. An alternative library with a
similar purpose is available as Locale::MakeText. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc NEWS README THANKS TODO
%{perl_vendorlib}/Locale
%{perl_vendorarch}/auto/Locale
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15454 |21mr|perl-libwww-perl-6.570.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  libwww-perl
%define modver 6.57

%define __requires_exclude ^perl\\(Authen::NTLM\\)|perl\\(HTTP::GHTTP\\)$

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{modver}
Release:	2
Summary:	The World-Wide Web library for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/O/OA/OALDERS/libwww-perl-%{modver}.tar.gz
BuildRequires:	perl(CPAN::Meta::Requirements)
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(Encode) >= 2.120.0
BuildRequires:	perl(Encode::Locale)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Listing) >= 6.0.0
BuildRequires:	perl(HTML::Entities)
BuildRequires:	perl(HTML::HeadParser)
BuildRequires:	perl(HTTP::Cookies) >= 6.0.0
BuildRequires:	perl(HTTP::Daemon) >= 6.0.0
BuildRequires:	perl(HTTP::Date) >= 6.0.0
BuildRequires:	perl(HTTP::Negotiate) >= 6.0.0
BuildRequires:	perl(HTTP::Request) >= 6.0.0
BuildRequires:	perl(HTTP::Request::Common) >= 6.0.0
BuildRequires:	perl(HTTP::Response) >= 6.0.0
BuildRequires:	perl(HTTP::Status) >= 6.0.0
BuildRequires:	perl(IO::Select)
BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(LWP::MediaTypes) >= 6.0.0
BuildRequires:	perl(MIME::Base64) >= 2.100.0
BuildRequires:	perl(Net::FTP) >= 2.580.0
BuildRequires:	perl(Net::HTTP) >= 6.0.0
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::Needs)
BuildRequires:	perl(Test::RequiresInternet)
BuildRequires:	perl(URI) >= 1.100.0
BuildRequires:	perl(URI::Escape)
BuildRequires:	perl(WWW::RobotRules) >= 6.0.0
BuildRequires:	perl-devel
Requires:	perl(Net::HTTP)
Requires:	perl(HTTP::Cookies)
Provides:	perl(LWP::Debug::TraceHTTP::Socket) = %{version}
Provides:	perl(LWP::Protocol::http::Socket) = %{version}
Provides:	perl(LWP::Protocol::http::SocketMethods) = %{version}
BuildArch:	noarch

%description
The libwww-perl collection is a set of Perl modules which provides a simple and
consistent application programming interface (API) to the World-Wide Web. The
main focus of the library is to provide classes and functions that allow you to
write WWW clients. The library also contain modules that are of more general
use and even classes that help you implement simple HTTP servers.

%prep
%setup -q -n %{upstream_name}-%{modver}

%build
/usr/bin/yes | %__perl Makefile.PL --aliases INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%files
%doc README.SSL Changes
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15455 |21mr|perl-libxml-perl-0.80.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 libxml-perl
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Various perl modules and script for working with XML

License:	Artistic
Group:		Development/Perl
Url:		http://www.cpan.org
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-XML-Parser
BuildRequires:	perl-devel
BuildArch:	noarch
Requires:	perl-XML-Parser

%description
The %{upstream_name} perl module is a collection of smaller Perl modules, scripts,
and documents for working with XML in Perl.  libxml-perl software works
in combination with XML::Parser, PerlSAX, XML::DOM, XML::Grove and others. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc Change* README
%{perl_vendorlib}/Data/*
%{perl_vendorlib}/XML/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15456 |21mr|perl-Lingua-EN-Inflect-1.905.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Lingua-EN-Inflect
%define upstream_version 1.905

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl module to find English word inflections

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/D/DC/DCONWAY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9

BuildArch:	noarch

%description
The exportable subroutines of Lingua::EN::Inflect provide plural inflections,
"a"/"an" selection for English words, and manipulation of numbers as words.
Plural forms of all nouns, most verbs, and some adjectives are provided. Where
appropriate, "classical" variants (for example: "brother" -> "brethren",
"dogma" -> "dogmata", etc.) are also provided.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 README Changes lib/Lingua/EN/Inflect.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.json META.yml
%{perl_vendorlib}/Lingua/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15457 |21mr|perl-List-AllUtils-0.90.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    List-AllUtils
%define upstream_version 0.09

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Combines List::Util and List::MoreUtils in one bite-sized package
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/List/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Warnings)
BuildRequires: perl(base)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
Are you sick of trying to remember whether a particular helper is defined
in the List::Util manpage or the List::MoreUtils manpage? I sure am. Now
you don't have to remember. This module will export all of the functions
that either of those two modules defines.

Note that all function documentation has been shamelessly copied from the
List::Util manpage and the List::MoreUtils manpage.

Which One Wins?
    Recently, the List::Util manpage has started including some of the subs
    that used to only be in the List::MoreUtils manpage. This module always
    exports the version provided by the List::Util manpage.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
# need List::Util 1.31, we have 1.27 in perl-base.Sflo
rm -fr t/00-compile.t
rm -fr t/01-basic.t
%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml LICENSE META.json Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15458 |21mr|perl-List-MoreUtils-0.428.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %nil

%define upstream_name	 List-MoreUtils
%define upstream_version 0.428
# Fix circular build dependency:
# gprintify requires perl-List-MoreUtils
%define dont_gprintify 1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Provide the stuff missing in List::Util 
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/List/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::Pod)
BuildRequires:  perl(Exporter::Tiny)
BuildRequires:  perl(Math::Trig)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl-devel 

%description
List::MoreUtils provides some trivial but commonly needed functionality on
lists which is not going to go into List::Util.

All of its functions are implementable in one line of Perl code. Using
the functions from this module however should give slightly better performance
as everything is implemented in C.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%check
%make test

%files 
%doc Changes
%{perl_vendorlib}/List
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15459 |21mr|perl-Locale-gettext-1.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name gettext
%define upstream_version 1.07

Name:       perl-Locale-gettext
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:	Message handling functions for Perl
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Locale/%{upstream_name}-%{upstream_version}.tar.gz
Patch1:		gettext-1.05-SvUTF8_on-on-strings-when-bind_textdomain_codeset-utf8.patch
Patch2:		gettext-1.05-add-iconv.patch

BuildRequires:	gettext-devel
BuildRequires:	perl-devel
BuildRequires:	perl-List-MoreUtils >= 0.320.0-4

%description
The gettext module permits access from perl to the gettext() family of
functions for retrieving message strings from databases constructed to
internationalize software.

It provides gettext(), dgettext(), dcgettext(), textdomain() and
bindtextdomain().

%prep
%setup -qn Locale-%{upstream_name}-%{upstream_version}
%patch1 -p1
%patch2 -p1

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README
%{perl_vendorarch}/Locale
%{perl_vendorarch}/auto/Locale
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15460 |21mr|perl-Locale-US-2.112.150-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Locale-US
%define upstream_version 2.112150

Summary:	Two letter codes for state identification in the United States and vice versa
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Locale/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Data::Section::Simple)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
MAPPING
    $self->{code2state}
        This is a hashref which has two-letter state names as the key and
        the long name as the value.

    $self->{state2code}
        This is a hashref which has the long nameas the key and the
        two-letter state name as the value.

DUMPING
    $self->all_state_names
        Returns an array (not arrayref) of all state names in alphabetical
        form.

%files
%doc README Changes LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std
chmod +x %{buildroot}%{perl_vendorlib}/Locale/kruft2codes.pl

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15461 |21mr|perl-Log-Message-0.80.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Log-Message
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.08
Release:	7

Summary:	Log Message

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Log/Log-Message-0.08.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IPC::Cmd)                  >= 0.360.0
BuildRequires:  perl(Module::Load::Conditional) >= 0.40.0
BuildRequires:	perl-version
BuildArch:	noarch

%description
Log::Message is a generic message storage mechanism.  It allows you to store
messages on a stack -- either shared or private -- and assign meta-data to it.
Some meta-data will automatically be added for you, like a timestamp and a
stack trace, but some can be filled in by the user, like a tag by which to
identify it or group it, and a level at which to handle the message (for
example, log it, or die with it)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%defattr(644,root,root,755)
%doc README
%{perl_vendorlib}/Log
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15462 |21mr|perl-Log-Message-Simple-0.100.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Log-Message-Simple
%define upstream_version 0.10
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.10
Release:	7

Summary:	Standardized logging facilities using the "Log::Message" module

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Log/Log-Message-Simple-0.10.tar.gz

BuildRequires:	perl-devel
#BuildRequires:	perl(Log::Message)
BuildArch:	noarch

%description
Provides standardized logging facilities using the "Log::Message" module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

#%check
#make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Log/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15463 |21mr|perl-LWP-MediaTypes-6.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LWP-MediaTypes
%define upstream_version 6.02

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Media types and mailcap processing

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/LWP/LWP-MediaTypes-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildArch: noarch


%description
This module provides functions for handling media (also known as MIME)
types and encodings. The mapping from file extensions to media types is
defined by the _media.types_ file. If the _~/.media.types_ file exists it
is used instead. For backwards compatibility we will also look for
_~/.mime.types_.

The following functions are exported by default:

* guess_media_type( $filename )

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15464 |21mr|perl-LWP-Protocol-https-6.100.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    LWP-Protocol-https
%define upstream_version 6.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Provide https support for LWP::UserAgent
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/LWP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::Socket::SSL)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(Mozilla::CA)
BuildRequires: perl(Net::HTTPS)
BuildRequires: perl(HTML::HeadParser)
# for tests
#BuildRequires: perl(Test::RequiresInternet)
BuildArch: noarch

%description
The LWP::Protocol::https module provides support for using https schemed
URLs with LWP. This module is a plug-in to the LWP protocol handling, so
you don't use it directly. Once the module is installed LWP is able to
access sites using HTTP over SSL/TLS.

If hostname verification is requested by LWP::UserAgent's 'ssl_opts', and
neither 'SSL_ca_file' nor 'SSL_ca_path' is set, then 'SSL_ca_file' is
implied to be the one provided by Mozilla::CA. If the Mozilla::CA module
isn't available SSL requests will fail. Either install this module, set up
an alternative 'SSL_ca_file' or disable hostname verification.

This module used to be bundled with the libwww-perl, but it was unbundled
in v6.02 in order to be able to declare its dependencies properly for the
CPAN tool-chain. Applications that need https support can just declare
their dependency on LWP::Protocol::https and will no longer need to know
what underlying modules to install.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
# tests need internet connection, build on abf fail
#%%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15465 |21mr|perl-Mail-DKIM-0.410.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mail-DKIM
%define upstream_version 0.41

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Implements DomainKeys Identified Mail (DKIM)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Mail/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-Module-Build
BuildRequires:	perl-Test-Pod
BuildRequires:	perl(Crypt::OpenSSL::RSA)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(Mail::Address)
BuildRequires:	perl(MIME::Base64)
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements the various components of the DKIM and DomainKeys
message-signing and verifying standards for Internet mail. It currently
tries to implement these specifications:
 * RFC4871, for DKIM
 * RFC4870, for DomainKeys

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

#%check
#%make test

%install
%makeinstall_std

%files
%doc scripts Changes TODO
%dir %{perl_vendorlib}/Mail/DKIM
%dir %{perl_vendorlib}/Mail/DKIM/Algorithm
%dir %{perl_vendorlib}/Mail/DKIM/Canonicalization
%{perl_vendorlib}/Mail/DKIM/*.pm
%{perl_vendorlib}/Mail/DKIM/Algorithm/*.pm
%{perl_vendorlib}/Mail/DKIM/Canonicalization/*.pm
%{perl_vendorlib}/Mail/DKIM.pm
%{perl_vendorlib}/Mail/sample_mime_lite.pl
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15466 |21mr|perl-Mail-POP3Client-2.190.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mail-POP3Client
%define upstream_version 2.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	POP3Client module for perl (Mail_and_Usenet_News/Mail)

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/S/SD/SDOWD/Mail-POP3Client-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch
Obsoletes:	perl-POP3Client <= 2.13
Provides:	POP3Client = %{version}

%description
POP3Client is a Perl module to provide an object-oriented interface to a
POP3 server.

%prep 
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc Changes  MANIFEST README
%{perl_vendorlib}/Mail/
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15467 |21mr|perl-Mail-Sender-0.8.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mail-Sender
%define upstream_version 0.8.23

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:	Module for sending mails with attachments through an SMTP server 

License:	GPL
Group:		Development/Perl
Source:		http://search.cpan.org/CPAN/authors/id/J/JE/JENDA/%{upstream_name}-%{upstream_version}.tar.gz
Url:            http://search.cpan.org/dist/%{upstream_name}/
BuildRequires:	perl-devel
Buildarch:	noarch

%description
Mail-Sender is a Perl module for sending mail with attachments through an
SMTP server.  This module will not work with qmail servers, however.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm -f Sender/CType/Win32.pm
sed -i -e '/Win32.pm/d' MANIFEST

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
echo "N
" | %make

%check
%make test

%install
%makeinstall_std

%clean

%files
%{perl_vendorlib}/Mail
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15468 |21mr|perl-Mail-Sender-0.8.23-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Mail-Sender

Name:		perl-%module
Version:	%perl_convert_version 0.8.23
Release:	4
Summary:	Module for sending mails with attachments through an SMTP server 

License:	GPL
Group:		Development/Perl
Source:		http://search.cpan.org/CPAN/authors/id/J/JE/JENDA/Mail-Sender-%{version}.tar.gz
Url:            http://search.cpan.org/dist/%{module}/
BuildRequires:	perl-devel
Buildarch:	noarch

%description
Mail-Sender is a Perl module for sending mail with attachments through an
SMTP server.  This module will not work with qmail servers, however.


%prep
%setup -q -n %{module}-%{version}
rm -f Sender/CType/Win32.pm
sed -i -e '/Win32.pm/d' MANIFEST

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
echo "N
" | %make

%check
%make test

%install
%makeinstall_std

%clean

%files
%{perl_vendorlib}/Mail
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15469 |21mr|perl-Mail-Sendmail-0.791.600-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name 	 Mail-Sendmail
%define	upstream_version 0.79_16

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Simple platform-independent mailer

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/authors/id/M/MI/MIVKOVIC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Mail-Sendmail is a Perl module for sending mail through a sendmail SMTP
server.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%files
%doc Changes README Todo
%{_mandir}/*/*
%{perl_vendorlib}/Mail

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15470 |21mr|perl-Mail-SPF-2.9.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mail-SPF
%define upstream_version 2.9.0

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:	Perl implementation of Sender Policy Framework and Sender ID

License:	BSD
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:     http://www.cpan.org/modules/by-module/Mail/Mail-SPF-v%{upstream_version}.tar.gz
BuildRequires:	perl(Error)
BuildRequires:	perl(Mail::SPF::Test)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(NetAddr::IP)
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(Net::DNS::Resolver::Programmable)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(URI)
BuildRequires:	perl(YAML)
BuildRequires:	perl-version
BuildArch:	noarch

%description
Mail::SPF is an object-oriented Perl implementation of the Sender Policy
Framework (SPF) e-mail sender authentication system <http://www.openspf.org>.

It supports both the TXT and SPF RR types as well as both SPFv1 (v=spf1) and
Sender ID (spf2.0) records, and it is fully compliant to RFCs 4408 and 4406.
(It does not however implement the patented PRA address selection algorithm
described in RFC 4407.)

%package -n	spf-tools
Summary:	SPF tools (spfquery, spfd) based on the Mail::SPF Perl module

Group:		Development/Perl

%description -n	spf-tools
A collection of Sender Policy Framework (SPF) tools that are based on the
fully RFC-conforming Mail::SPF Perl module.  The following tools are included
in this package:

 * mail-spfquery:  A command-line tool for performing SPF checks.
 * mail-spfd:      A daemon for services that perform SPF checks frequently.

%prep
%setup -q -n %{upstream_name}-v%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

#%%check
#./Build test

%install
./Build install destdir=%{buildroot}

# fix file clash with perl-Mail-SPF-Query
mv %{buildroot}%{_bindir}/spfquery %{buildroot}%{_bindir}/mail-spfquery
mv %{buildroot}%{_sbindir}/spfd %{buildroot}%{_sbindir}/mail-spfd
mv %{buildroot}%{_mandir}/man1/spfquery.1 %{buildroot}%{_mandir}/man1/mail-spfquery.1 

%clean 

%files
%doc CHANGES README TODO
%{perl_vendorlib}/Mail/*.pm
%{perl_vendorlib}/Mail/SPF/Mech/*.pm
%{perl_vendorlib}/Mail/SPF/Mod/*.pm
%{perl_vendorlib}/Mail/SPF/*.pm
%{perl_vendorlib}/Mail/SPF/v1/*.pm
%{perl_vendorlib}/Mail/SPF/v2/*.pm
%{_mandir}/man3/*

%files -n spf-tools
%{_bindir}/mail-spfquery
%{_sbindir}/mail-spfd
%{_mandir}/man1/mail-spfquery.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15471 |21mr|perl-Mail-SPF-Test-1.1.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Mail-SPF-Test
%define upstream_version 1.001

Summary:	SPF test-suite class

Name:		perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Mail/%{upstream_name}-v%{upstream_version}.tar.gz
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(NetAddr::IP)
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(YAML)
BuildArch:	noarch

%description
Mail::SPF::Test is a class for reading and manipulating SPF test-suite data.

%prep
%setup -q -n %{upstream_name}-v%{upstream_version} 

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean 

%files
%doc CHANGES LICENSE README TODO
%{perl_vendorlib}/Mail/SPF/*.pm
%{perl_vendorlib}/Mail/SPF/Test/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15472 |21mr|perl-MailTools-2.210.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    MailTools
%define upstream_version 2.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A set of perl modules related to mail applications

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Mail/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is MailTools, a set of perl modules related to mail applications.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README ChangeLog
%{perl_vendorlib}/Mail
%{perl_vendorlib}/MailTools*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15473 |21mr|perl-Math-Round-0.70.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Math-Round
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Round numbers in different ways

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Math/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Math::Round supplies functions that will round numbers in different ways.
The functions round and nearest are exported by default; others are available
as described below. "use ... qw(:all)" exports all functions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Math
%{perl_vendorlib}/auto/Math
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15474 |21mr|perl-MD5-2.03-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	MD5

Summary:	The Perl interface to the RSA Message Digest Algorithm

Name:		perl-%{module}
Version:	2.03
Release:	15
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/author/GAAS/%{module}-%{version}/
Source0:	ftp://ftp.perl.org//pub/CPAN/modules/by-module/%{module}/%{module}-%{version}.tar.bz2
Buildrequires:	perl-devel
Buildarch:	noarch

%description
The perl-MD5 package provides the MD5 module for the Perl
programming language.  MD5 is a Perl interface to the RSA Data
Security Inc. Message Digest Algorithm, which allows Perl
programs to use the algorithm.

The perl-MD5 package should be installed if any Perl programs
on your system are going to use RSA's Message Digest Algorithm.

%prep
%setup -q -n %{module}-%{version}

%build

%{__perl} Makefile.PL INSTALLDIRS=vendor --defaultdeps
%make

%install
%makeinstall_std
rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%clean

%files
%doc MANIFEST README
%{perl_vendorlib}/*.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15475 |21mr|perl-MDK-Common-1.2.34.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Various simple functions

Name:		perl-MDK-Common
Version:	1.2.34.2
Release:	13
URL:		http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/perl-MDK-Common/
Source0:	MDK-Common-%{version}.tar.gz
License:	GPLv2+
Group:		Development/Perl
BuildRequires:	perl-devel
BuildRequires:	perl(File::Sync)
BuildArch:	noarch

%description
Various simple functions created for DrakX

%prep
%setup -q -n MDK-Common-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc COPYING tutorial.html 
%{perl_vendorlib}/MDK
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15476 |21mr|perl-MDV-Distribconf-4.03-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dist	MDV-Distribconf

Summary:	Read and write config of a Mandriva Linux distribution tree

Name:		perl-%{dist}
Version:	4.03
Release:	12
License:	GPLv2+
Group:		Development/Perl
Source0:	%{dist}-%{version}.tar.xz
Url:		http://search.cpan.org/dist/%{dist}/
BuildArch:	noarch
BuildRequires:	perl perl-Config-IniFiles perl-MDV-Packdrakeng
BuildRequires:  perl-Test-Simple
BuildRequires:  perl(Devel::Peek)
BuildRequires:  perl-devel

%description
MDV::Distribconf is a module to get/write the configuration of a Mandriva Linux
distribution tree.

%package -n	mdv-distrib-tools
Summary:	Tools use to maintains Mandriva distrib tree

Group:		Development/Perl

%description -n	mdv-distrib-tools
Tools use to maintains Mandriva distrib tree.

This include:
- gendistrib (experimental)
- checkdistrib

%prep
%setup -q -n %{dist}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog
%{_mandir}/*/MDV::Distribconf.*
%dir %{perl_vendorlib}/MDV/Distribconf
%{perl_vendorlib}/MDV/Distribconf.pm

%files -n mdv-distrib-tools
%{_bindir}/*
%{perl_vendorlib}/MDV/Distribconf/*
%{_mandir}/*/MDV::Distribconf::*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15477 |21mr|perl-MDV-Packdrakeng-1.14-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dist MDV-Packdrakeng

# perl-Compress-Zlib is only "suggested"
%global __requires_exclude perl\\(Compress::Zlib\\)

Name:		perl-%{dist}
Version:	1.14
Release:	9
Summary:	Simple Archive Extractor/Builder
License:	GPLv2+
Group:		Development/Perl
Source0:	%{dist}-%{version}.tar.xz
Url:		http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/rpm/MDV-Packdrakeng/
BuildRequires:	perl(Compress::Zlib)
BuildRequires: perl-Test-Simple
BuildRequires:	perl-devel
BuildArch:	noarch
Recommends:	perl(Compress::Zlib)

%description
MDV::Packdrakeng is a simple indexed archive builder and extractor using
standard compression methods.

%prep
%setup -q -n %{dist}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%{__make}

%check
%{__make} test

%install
%makeinstall_std

%files
%doc ChangeLog README
%{_mandir}/*/*
%{perl_vendorlib}/MDV/Packdrakeng
%{perl_vendorlib}/MDV/Packdrakeng.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15478 |21mr|perl-Metrics-Any-0.70.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Metrics-Any
%define upstream_version 0.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Metrics::Any - abstract collection of monitoring metrics

License:	Perl_5
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/P/PE/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Module::Build)

BuildArch:	noarch

%description
Provides a central location for modules to report monitoring metrics, 
such as counters of the number of times interesting events have happened, 
and programs to collect up and send those metrics to monitoring services.

Inspired by Log::Any, this module splits the overall problem into two sides. 
Modules wishing to provide metrics for monitoring purposes can use 
the use Metrics::Any statement to obtain a collector into which they 
can report metric events. By default this collector doesn't actually 
do anything, so modules can easily use it without adding extra specific 
dependencies for specific reporting.

A program using one or more such modules can apply a different policy 
and request a particular adapter implementation in order to actually 
report these metrics to some external system, by using the use 
Metrics::Any::Adapter statement.

This separation of concerns allows module authors to write code 
which will report metrics without needing to care about the exact 
mechanism of that reporting (as well as to write code which does 
not itself depend on the code required to perform that reporting).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15479 |21mr|perl-MIME-Charset-1.12.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MIME-Charset
%define upstream_version 1.012.2

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Charset Informations for MIME

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MIME/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-CPAN
BuildArch:	noarch

%description
MIME::Charset provides informations about character sets used for MIME messages
on Internet.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make_build

%install
%make_install

%files
%doc README
%{perl_vendorlib}/MIME
%{perl_vendorlib}/POD2/JA/MIME/Charset.pod
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15480 |21mr|perl-MIME-Lite-3.30.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MIME-Lite
%define upstream_version 3.030

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Low-calorie MIME generator 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MIME/MIME-Lite-%{upstream_version}.tar.gz

BuildRequires:	perl(Email::Date)
BuildRequires:	perl(MIME::Types)
BuildRequires:	perl(Mail::Address)
BuildRequires:	perl(Email::Date::Format)
BuildRequires:	perl-devel
BuildRequires:	sendmail-command

BuildArch:	noarch

%description
MIME::Lite is intended as a simple, standalone module for generating
(not parsing!) MIME messages... specifically, it allows you to output a
simple, decent single- or multi-part message with text or binary
attachments. It does not require that you have the Mail:: or MIME::
modules installed. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
chmod 644 README changes.pod lib/MIME/* examples/*
%__perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%check
make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_vendorlib}/MIME/changes.pod

%files
%doc COPYING INSTALLING README changes.pod
%{perl_vendorlib}/MIME
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15481 |21mr|perl-MIME-Lite-3.33.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MIME-Lite
%define upstream_version 3.033

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Low-calorie MIME generator 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MIME/MIME-Lite-%{upstream_version}.tar.gz

BuildRequires:	perl(Email::Date)
BuildRequires:	perl(MIME::Types)
BuildRequires:	perl(Mail::Address)
BuildRequires:	perl(Email::Date::Format)
BuildRequires:	perl-devel
BuildRequires:	sendmail-command

BuildArch:	noarch

%description
MIME::Lite is intended as a simple, standalone module for generating
(not parsing!) MIME messages... specifically, it allows you to output a
simple, decent single- or multi-part message with text or binary
attachments. It does not require that you have the Mail:: or MIME::
modules installed. 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
chmod 644 README changes.pod lib/MIME/* examples/*
%__perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%check
make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_vendorlib}/MIME/changes.pod

%files
%doc COPYING INSTALLING README changes.pod
%{perl_vendorlib}/MIME
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15482 |21mr|perl-MIME-tools-5.509.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 MIME-tools
%define upstream_version 5.509

Summary:	Perl modules for parsing (and creating!) MIME entities
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MIME/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(File::Temp)   >= 0.17
BuildRequires:	perl(IO::Stringy)  >= 1.211
BuildRequires:	perl(Mail::Util)   >= 1.15
BuildRequires:	perl(MIME::Base64) >= 3.03
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl-devel
Requires:	perl(File::Temp)   >= 0.17
Requires:	perl(IO::Stringy)  >= 1.211
Requires:	perl(MIME::Base64) >= 3.03
Requires:	perl(Mail::Util)   >= 1.15
BuildArch:	noarch

%description
MIME-tools - modules for parsing (and creating!) MIME entities Modules in this
toolkit : Abstract message holder (file, scalar, etc.), OO interface for
decoding MIME messages, an extracted and decoded MIME entity, Mail::Field
subclasses for parsing fields, a parsed MIME header (Mail::Header subclass),
parser and tool for building your own MIME parser, and utilities.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
rm -f set-version.pl
perl Makefile.PL INSTALLDIRS=vendor
%make

# check
# make test

%install
%makeinstall_std

%files
%doc README COPYING ChangeLog
%{perl_vendorlib}/MIME
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15483 |21mr|perl-MIME-Types-2.170.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 MIME-Types
%define upstream_version 2.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	MIME::Types module for Perl

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/MIME/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::More) >= 0.47

BuildArch:	noarch

%description
This Perl module maintains a set of MIME::Type objects, which each describe one
known mime type.  There are many types defined by RFCs and vendors, so the list
is long but not complete.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
rm -rf %{buildroot}%{perl_vendorlib}/MojoX

%files
%doc README ChangeLog
%{perl_vendorlib}/MIME
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15484 |21mr|perl-Mixin-Linewise-0.110.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mixin-Linewise
%define upstream_version 0.110

Summary:	Get linewise writeers for strings and filenames
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RJ/RJBS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(IO::File)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(PerlIO::utf8_strict) >= 0.6.0
BuildRequires:	perl(Encode)
BuildRequires:	perl(Test::More) >= 1.1.9  
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
It's boring to deal with opening files for IO, converting strings to
handle-like objects, and all that. With the Mixin::Linewise::Readers
manpage and the Mixin::Linewise::Writers manpage, you can just write a
method to handle handles, and methods for handling strings and filenames
are added for you.

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15485 |21mr|perl-Module-Build-0.423.100-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname Module-Build
%define modver 0.4231

Summary:	Build and install Perl modules
Name:		perl-%{modname}
Epoch:		1
Version:	%perl_convert_version %{modver}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{modname}
Source0:	https://www.cpan.org/modules/by-module/Module/%{modname}-%{modver}.tar.gz
BuildArch:	noarch

BuildRequires:	perl(Archive::Tar)
BuildRequires:	perl(CPAN::Meta) >= 2.110.420
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(ExtUtils::CBuilder) >= 0.270
BuildRequires:	perl(ExtUtils::Install)
BuildRequires:	perl(ExtUtils::Manifest)
BuildRequires:	perl(ExtUtils::Mkbootstrap)
BuildRequires:	perl(ExtUtils::ParseXS) >= 2.210
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Compare)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec) >= 0.820
BuildRequires:	perl(File::Temp) >= 0.150
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Module::Metadata) >= 1.000.002
BuildRequires:	perl(Parse::CPAN::Meta)
BuildRequires:	perl(Perl::OSType) >= 1
BuildRequires:	perl(Test::Harness) >= 3.160
BuildRequires:	perl(Test::More) >= 0.490
BuildRequires:	perl(Text::Abbrev)
BuildRequires:	perl(Text::ParseWords)
BuildRequires:	perl(YAML)
BuildRequires:	perl(version)
BuildRequires:	perl(CPAN::Meta::YAML)
BuildRequires:	perl(JSON::PP)
# for %%check
BuildRequires:	perl-devel
Recommends:	perl-ExtUtils-CBuilder

%description
Module::Build is a system for building, testing, and installing Perl modules.
It is meant to be a replacement for ExtUtils::MakeMaker. Developers may alter
the behavior of the module through subclassing in a much more straightforward
way than with MakeMaker. It also does not require a make on your system - most
of the Module::Build code is pure-perl and written in a very cross-platform
way. In fact, you don't even need a shell, so even platforms like MacOS
(traditional) can use it fairly easily. Its only prerequisites are modules that
are included with perl 5.6.0, and it works fine on perl 5.005 if you can
install a few additional modules.

%prep
%setup -qn %{modname}-%{modver}
%apply_patches

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

%files 
%doc Changes README
%{_bindir}/config_data
# % {perl_vendorlib}/inc
%{perl_vendorlib}/Module
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15486 |21mr|perl-Module-Build-Tiny-0.39.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Build-Tiny
%define upstream_version 0.039

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    A tiny replacement for Module::Build

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
BuildRequires: perl(Data::Dumper)
BuildRequires: perl(DynaLoader)
BuildRequires: perl(Exporter) >= 5.570.0
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(ExtUtils::Config) >= 0.3.0
BuildRequires: perl(ExtUtils::Helpers) >= 0.20.0
BuildRequires: perl(ExtUtils::Install)
BuildRequires: perl(ExtUtils::InstallPaths) >= 0.2.0
BuildRequires: perl(ExtUtils::ParseXS)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Getopt::Long) >= 2.360.0
BuildRequires: perl(IO::File)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open2)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(JSON::PP) >= 2.0.0
BuildRequires: perl(Pod::Man)
BuildRequires: perl(TAP::Harness::Env)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(XSLoader)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
Many Perl distributions use a Build.PL file instead of a Makefile.PL file
to drive distribution configuration, build, test and installation.
Traditionally, Build.PL uses Module::Build as the underlying build system.
This module provides a simple, lightweight, drop-in replacement.

Whereas Module::Build has over 6,700 lines of code; this module has less
than 120, yet supports the features needed by most distributions.

Supported
    * * Pure Perl distributions

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor

./Build

# %check
# ./Build test

%install
./Build install --destdir=%{buildroot}

%files
%doc Changes INSTALL LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15487 |21mr|perl-Module-Build-XSUtil-0.140.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Build-XSUtil
%define upstream_version 0.14

Summary:	A Module::Build class for building XS modules
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Cwd::Guard) >= 0.40.0
BuildRequires:	perl(Devel::CheckCompiler) >= 0.50.0
BuildRequires:	perl(Devel::PPPort)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy::Recursive)
BuildRequires:	perl(File::Path)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(parent)
BuildArch:	noarch

%description
A Module::Build class for building XS modules.

%files
%doc Changes LICENSE META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15488 |21mr|perl-Module-Implementation-0.90.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Implementation
%define upstream_version 0.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Loads one of several alternate underlying implementations for a module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Carp)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module abstracts out the process of choosing one of several underlying
implementations for a module. This can be used to provide XS and pure Perl
implementations of a module, or it could be used to load an implementation
for a given OS or any other case of needing to provide multiple
implementations.

This module is only useful when you know all the implementations ahead of
time. If you want to load arbitrary implementations then you probably want
something like a plugin system, not this module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc  LICENSE META.yml Changes META.json INSTALL
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15489 |21mr|perl-Module-Install-1.190.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Module-Install
%define upstream_version 1.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Standalone, extensible Perl module installer
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Archive::Tar) >= 1.440.0
BuildRequires:  perl(CPAN::Meta::YAML) >= 0.011
BuildRequires:	perl(Devel::PPPort) >= 3.160.0
BuildRequires:	perl(ExtUtils::Install) >= 1.520.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires:	perl(ExtUtils::ParseXS) >= 2.190.0
BuildRequires:	perl(File::Remove) >= 1.420.0
BuildRequires:	perl(File::Spec) >= 3.280.0
BuildRequires:	perl(JSON) >= 2.140.0
BuildRequires:	perl(Module::Build) >= 0.290.0
BuildRequires:	perl(Module::CoreList) >= 2.170.0
BuildRequires:	perl(Module::ScanDeps) >= 1.90.0
BuildRequires:	perl(PAR::Dist) >= 0.290.0
BuildRequires:	perl(Parse::CPAN::Meta) >= 1.441.300
BuildRequires:	perl(Test::Harness) >= 3.130.0
BuildRequires:	perl(Test::More) >= 0.860.0
BuildRequires:	perl(YAML::Tiny) >= 1.380.0
BuildRequires:  perl(YAML)
BuildRequires:	perl-PathTools >= 3.270.100
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides a drop-in replacement for ExtUtils::MakeMaker. For
first-time users, Brian Ingerson's Creating Module Distributions with
Module::Install in June 2003 issue of The Perl Journal
(http://www.tpj.com/issues/) provides a gentle introduction to how this
module works.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
chmod 644 Changes
find lib -type f | xargs chmod 644
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# this one requires a working CPAN configuration
rm -f t/03_autoinstall.t
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml MYMETA.yml README
%{perl_vendorlib}/Module
%{perl_vendorlib}/inc/Module
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15490 |21mr|perl-Module-Pluggable-5.200.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Module-Pluggable
%define upstream_version 5.2

%define debug_package %{nil}

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Simple plugins for Perl modules

License:    Artistic/GPL
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec) >= 3.0.0
BuildRequires: perl(Module::Build) >= 0.380.0
BuildRequires: perl(Test::More) >= 0.620.0
BuildRequires: perl-devel

%description
This Perl module provides a simple but, hopefully, extensible way of having
'plugins' for your module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes INSTALL META.json META.yml README
%{perl_vendorlib}/Module
%{perl_vendorlib}/Devel
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15491 |21mr|perl-Module-Refresh-0.170.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Module-Refresh
%define upstream_version 0.17

Summary:	Refresh INC files when the module is updated on disk
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
This module is a generalization of the functionality provided by
Apache::StatINC. It's designed to make it easy to do simple iterative
development when working in a persistent environment.

%files
%doc Changes
%{perl_vendorlib}/Module
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15492 |21mr|perl-Module-Runtime-0.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Module-Runtime
%define upstream_version 0.016

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Runtime module handling

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Exporter)
BuildRequires: perl(Math::BigInt)
BuildRequires: perl(Math::Complex)
BuildRequires: perl(Math::Trig)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Params::Classify)
BuildArch: noarch

%description
The functions exported by this module deal with runtime handling of Perl
modules, which are normally handled at compile time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15493 |21mr|perl-Module-Runtime-Conflicts-0.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Module-Runtime-Conflicts
%define upstream_version 0.002

Summary:	Provide information on conflicts for Module::Runtime
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/Module-Runtime-Conflicts/
Source0:	http://www.cpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(strict)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
This module provides conflicts checking for Module::Runtime, which had a
recent release that broke some versions of Moose. It is called from
Moose::Conflicts and moose-outdated.

%files
%doc Changes CONTRIBUTING README META.json META.yml LICENSE
%{perl_vendorlib}/Module*
%{_mandir}/man3/Module*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 Changes

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15494 |21mr|perl-Module-ScanDeps-1.250.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Module-ScanDeps
%define upstream_version 1.25

Summary:	Recursively scan Perl code for dependencies
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(File::Temp)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a module to recursively scan Perl programs for dependencies.

An application of Module::ScanDeps is to generate executables from scripts
that contains necessary modules; this module supports two such projects, PAR
and App::Packer.  Please see their respective documentations on CPAN for
further information.

%files
%doc AUTHORS Changes README
%{_bindir}/*
%{_mandir}/man*/*
%{perl_vendorlib}/Module

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15495 |21mr|perl-Module-Signature-0.870.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Module-Signature
%define upstream_version 0.87

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Check and create SIGNATURE files for CPAN distributions

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Digest::SHA1)
BuildRequires:	perl(PAR::Dist)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(IPC::Run)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a perl module to check and create SIGNATURE files
for CPAN distributions.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps </dev/null
%make

%check
%make test

%install
%makeinstall_std

%files
%doc AUTHORS Changes README
%{_bindir}/*
%{_mandir}/man*/*
%{perl_vendorlib}/Module

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15496 |21mr|perl-Module-Starter-1.770.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	Module-Starter
%define upstream_version 1.77

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Epoch:		1
Summary:	A simple starter kit for any module 
Group:		Development/Perl
License:	GPL+ or Artistic
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Module/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
#for tests
#BuildRequires:	perl(Module::Runtime)
#BuildRequires:	perl(Software::License)
BuildArch:	noarch

%description
This is the core module for Module::Starter. If you're not looking to extend or
alter the behavior of this module, you probably want to look at module-starter
instead.

Module::Starter is used to create a skeletal CPAN distribution, including basic
builder scripts, tests, documentation, and module code. This is done through
just one method, create_distro.

%files 
%doc Changes README META.json META.yml
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/*/*

#------------------------------------------------------------------------------
%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15497 |21mr|perl-Mojolicious-9.220.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mojolicious
%define upstream_version 9.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A next generation web framework for Perl
License:    Artistic 2.0
Group:      Development/Perl
Url:        http://mojolicious.org/
Source0:    http://www.cpan.org/authors/id/S/SR/SRI/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Pod::Simple) >= 3.90.0
BuildRequires: perl(Time::Local) >= 1.200.0
BuildRequires: perl(Time::HiRes)
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Compress::Raw::Zlib)
BuildRequires: perl(IO::Compress::Gzip)
BuildRequires: perl(IO::Socket::IP)
BuildRequires: perl(JSON::PP)
BuildRequires: perl(experimental)
# See META.yml Symbianflo
BuildRequires: perl(CPAN::Meta::YAML) >= 0.16.0


BuildArch:  noarch


%description
Back in the early day of the web there was this wonderful Perl library
called CGI, many people only learned Perl because of it. It was simple
enough to get started without knowing much about the language and powerful
enough to keep you going, learning by doing was much fun. While most of the
techniques used are outdated now, the idea behind it is not. Mojolicious is
a new attempt at implementing this idea using state of the art technology.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml examples
%{_bindir}/*
%{perl_vendorlib}/*
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15498 |21mr|perl-Mon-0.110.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Mon
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Perl-Mon module

License:	GPL
Group:		Development/Perl
Url:		http://www.kernel.org/software/mon/
Source0:	ftp://ftp.kernel.org/pub/software/admin/mon/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch
   
%description
This is the Perl5 module for interfacing with the Mon system monitoring
package. Currently only the client interface is implemented, but more
things like special logging routines and persistent monitors are being
considered.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES  COPYRIGHT COPYING README VERSION
%{perl_vendorlib}/Mon
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15499 |21mr|perl-Moo-2.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Moo
%define upstream_version 2.005004

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Efficient generation of subroutines via string eval

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Class::XSAccessor)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Sub::Quote)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Class::Method::Modifiers)
BuildRequires:	perl(Devel::GlobalDestruction)
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl(Import::Into)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Role::Tiny) >= 2.0.1
BuildRequires:	perl(strictures)
BuildRequires:	perl(Module::Runtime)

BuildArch:	noarch

Provides:       perl(Moo::Conflicts)

%description
This module is an extremely light-weight, high-performance the Moose
manpage replacement. It also avoids depending on any XS modules to allow
simple deployments. The name 'Moo' is based on the idea that it provides
almost -but not quite- two thirds of the Moose manpage.

Unlike 'Mouse' this module does not aim at full the Moose manpage
compatibility. See the /INCOMPATIBILITIES manpage for more details.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

#%%check
#make test

%install
%makeinstall_std

%files
%doc README META.yml META.json Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15500 |21mr|perl-Moose-2.220.100-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^perl\\((Moose::Conflicts)
%global __provides_exclude Moose.so

%define upstream_name  Moose
%define upstream_version 2.2201

%bcond_without bootstrap

Summary:	A complete modern object system for Perl 5
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Algorithm::C3)
BuildRequires:	perl(Class::Load)
BuildRequires:	perl(Class::Load::XS)
BuildRequires:	perl(CPAN::Meta::Check)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Data::OptList)
BuildRequires:	perl(DateTime::Calendar::Mayan)
BuildRequires:	perl(DateTime::Format::MySQL)
BuildRequires:	perl(DBM::Deep)
BuildRequires:	perl(Declare::Constraints::Simple)
BuildRequires:	perl(Devel::GlobalDestruction)
BuildRequires:	perl(Devel::OverloadInfo) >= 0.4.0
BuildRequires:	perl(Devel::StackTrace)
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl(Eval::Closure)
BuildRequires:	perl(List::MoreUtils) >= 0.120.0
BuildRequires:	perl(Locale::US)
BuildRequires:	perl(Module::Refresh)
BuildRequires:	perl(Module::Runtime::Conflicts)
BuildRequires:	perl(MRO::Compat)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Package::DeprecationManager) >= 0.070.0
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(Package::Stash::XS)
BuildRequires:	perl(Params::Coerce)
BuildRequires:	perl(Params::Util) >= 1.000.0
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Scalar::Util) >= 1.190.0
BuildRequires:	perl(Sub::Exporter) >= 0.098.0
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Task::Weaken)
BuildRequires:	perl(Test::CleanNamespaces)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception) >= 0.270
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::LeakTrace)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(Test::Requires) >= 0.050
BuildRequires:	perl(Test::LongString)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(Try::Tiny) >= 0.020.0
BuildRequires:	perl(SUPER)
BuildRequires:	perl(namespace::clean)
%if %{without bootstrap}
BuildRequires:	perl(Data::Visitor)
BuildRequires:	perl(MooseX::MarkAsMethods)
BuildRequires:	perl(MooseX::NonMoose)
BuildRequires:	perl-Module-Metadata
%endif
Requires:	perl(Sub::Name)
Provides:	perl-Moose-implementation
Obsoletes:	perl-Class-MOP < 1.120.0
Provides:	perl-Class-MOP = 1.120.0

%description
Moose is an extension of the Perl 5 object system.

%files
%doc Changes META.json META.yml LICENSE TODO
%{_bindir}/moose-outdated
%{perl_vendorarch}/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

find . -type f -exec chmod 644 {} \;

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std


%if %{without bootstrap}
%check
make test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15501 |21mr|perl-MooX-Types-MooseLike-0.290.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name MooX-Types-MooseLike
%define upstream_version 0.29

Summary:	A set of basic Moose-like types for Moo
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MA/MATEU/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(CPAN::Meta) >= 2.150.5
BuildRequires:	perl(CPAN::Meta::Requirements) >= 2.133.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Moo) >= 2.0.1
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(strictures)
# Need to be added explicitly because it breaks builds
Requires:	perl(Moo) >= 2.0.1
BuildArch:	noarch

%description
This module provides a possibility to build your own set of Moose-like
types. These custom types can then be used to describe fields in Moo-based
classes.

See the MooX::Types::MooseLike::Base manpage for a list of available base
types. Its source also provides an example of how to build base types,
along with both parameterizable and non-parameterizable.

%files
%doc META.yml META.json README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15502 |21mr|perl-Mouse-2.5.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude Mouse.so

%define upstream_name    Mouse
%define upstream_version 2.5.10

Summary:	Moose minus the antlers
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/S/SK/SKAJI/%{upstream_name}-v%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B)
BuildRequires:	perl(Carp)
BuildRequires:	perl(CPAN::Meta::YAML) >= 0.16.0
BuildRequires:	perl(Config)
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Data::Dump::Streamer)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Declare::Constraints::Simple)
BuildRequires:	perl(Devel::PPPort)
BuildRequires:	perl(ExtUtils::ParseXS) >= 3.240.0
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Fatal)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Copy)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Filter::Simple)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(HTTP::Headers)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IO::String)
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Locale::US)
BuildRequires:	perl(Module::Build::XSUtil)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Params::Coerce)
BuildRequires:	perl(Path::Class)
BuildRequires:	perl(Pod::Coverage::Moose)
BuildRequires:	perl(Regexp::Common)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::LeakTrace)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Output)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Tie::Array)
BuildRequires:	perl(Tie::Hash)
BuildRequires:	perl(Tie::Scalar)
BuildRequires:	perl(URI)
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(base)
BuildRequires:	perl(constant)
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(warnings)
Provides:	perl-Moose-implementation = %{EVRD}

%description
The Moose manpage is wonderful.

Unfortunately, it's a little slow. Though significant progress has been
made over the years, the compile time penalty is a non-starter for some
applications.

Mouse aims to alleviate this by providing a subset of Moose's
functionality, faster. In particular, the Moose/has manpage is missing only
a few expert-level features.

%files
%doc Changes LICENSE META.json META.yml example
%{_mandir}/man3/*
%{perl_vendorarch}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-v%{upstream_version}
find . -type f -exec chmod -c -x {} ';'
find t/ xt/ benchmarks/ example/ tool/ -type f -print0 |
  xargs -0 sed -i '1s|^#!.*perl|#!%{__perl}|'

%build
%__perl Build.PL --installdirs=vendor
./Build

%install
./Build install --destdir=%{buildroot}

%check
./Build test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15503 |21mr|perl-Mozilla-CA-20130114.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Mozilla-CA
%define upstream_version 20130114

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Mozilla's CA cert bundle in PEM format

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Mozilla/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(CPAN::Meta)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
Mozilla::CA provides a copy of Mozilla's bundle of Certificate Authority
certificates in a form that can be consumed by modules and libraries based
on OpenSSL.

The module provide a single function:

* SSL_ca_file()

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15504 |21mr|perl-Mozilla-LDAP-1.5.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude API.so

Summary:	LDAP Perl module that wraps the OpenLDAP C SDK
Name:		perl-Mozilla-LDAP
Version:	1.5.3
Release:	13
License:	GPLv2+ and LGPLv2+ and MPLv1.1
Group:		Development/Perl
Url:		http://www.mozilla.org/directory/perldap.html
Source0:	ftp://ftp.mozilla.org/pub/mozilla.org/directory/perldap/releases/%{version}/src/perl-mozldap-%{version}.tar.gz
Source1:	ftp://ftp.mozilla.org/pub/mozilla.org/directory/perldap/releases/1.5/src/Makefile.PL.rpm
BuildRequires:	openldap-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)

%description
LDAP Perl module that wraps the OpenLDAP C SDK.

%files
%doc CREDITS ChangeLog README MPL-1.1.txt
%{_mandir}/man3/Mozilla*.3pm*
%{perl_vendorarch}/Mozilla/LDAP/*.pm
%{perl_vendorarch}/auto/Mozilla/LDAP/API/*.so*
%{perl_vendorarch}/auto/Mozilla/LDAP/API/*.ix

#------------------------------------------------------------------

%prep
%setup -qn perl-mozldap-%{version}

%build
LDAPPKGNAME=openldap CFLAGS="%{optflags}" %__perl %{SOURCE1} PREFIX=%{_prefix} INSTALLDIRS=vendor < /dev/null
make OPTIMIZE="%{optflags}" CFLAGS="%{optflags}"

%install
eval `perl '-V:installarchlib'`

%makeinstall_std

# remove files we don't want to package
rm -f `find %{buildroot} -type f -name perllocal.pod -o -name .packlist`

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15505 |21mr|perl-MP3-Info-1.260.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    MP3-Info
%define upstream_version 1.26

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl module to manipulate / fetch info from MP3 audio files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/MP3/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Manipulate / fetch info from MP3 audio files : winamp genres, mp3tag, mp3info.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc README.md Changes eg
%{_mandir}/*/*
%{perl_vendorlib}/MP3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15506 |21mr|perl-MRO-Compat-0.120.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	MRO-Compat
%define upstream_version    0.12

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Mro::** interface compatibility for Perls < 5.9.5

License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://search.cpan.org/CPAN/authors/id/B/BL/BLBLACK/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Module::AutoInstall)
BuildRequires:	perl(Class::C3) >= 0.19
BuildRequires:	perl(Class::C3::XS) >= 0.19
BuildRequires:	perl-Test-Simple
BuildRequires:	perl-devel
BuildArch:	noarch

%description
The "mro" namespace provides several utilities for dealing with method
resolution order and method caching in general in Perl 5.9.5 and higher.

This upstream_name provides those interfaces for earlier versions of Perl
(back to 5.6.0 anyways).

It is a harmless no-op to use this upstream_name on 5.9.5+. If you're
writing a piece of software that would like to use the parts of 5.9.5+'s
mro:: interfaces that are supported here, and you want compatibility with
older Perls, this is the upstream_name for you.

Some parts of this interface will work better with Class::C3::XS installed,
but it's not a requirement.

This upstream_name never exports any functions. All calls must be fully
qualified with the mro:: prefix.

The interface documentation here serves only as a quick reference of what
the function basically does, and what differences between MRO::Compat and
5.9.5+ one should look out for. The main docs in 5.9.5's mro are the real
interface docs, and contain a lot of other

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc ChangeLog README
%{perl_vendorlib}/MRO
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15507 |21mr|perl-namespace-autoclean-0.280.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name namespace-autoclean
%define upstream_version 0.28

Summary:	Keep imports out of your namespace
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/namespace/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B::Hooks::EndOfScope)
BuildRequires:	perl(Carp) >= 1.360.0
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(List::Util)
BuildRequires:	perl(Moo)
BuildRequires:	perl(Module::Build::Tiny)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::Requires)
# Contrib packages required for some tests
#BuildRequires:	perl(Class::MOP)
#BuildRequires:	perl(MooseX::Role::WithOverloading)
#BuildRequires:	perl(Mouse)
#BuildRequires:	perl(Mouse::PurePerl)
Requires:	perl(namespace::clean)
Requires:	perl(Sub::Identify)
Provides:	perl(namespace::autoclean) = %{version}
BuildArch:	noarch

%description
When you import a function into a Perl package, it will naturally also be
available as a method.

The 'namespace::autoclean' pragma will remove all imported symbols at the
end of the current package's compile cycle. Functions called in the package
itself will still be bound by their name, but they won't show up as methods
on your class or instances.

This module is very similar to namespace::clean, except it will clean all
imported functions, no matter if you imported them before or after you
'use'd the pagma. It will also not touch anything that looks like a method,
according to 'Class::MOP::Class::get_method_list'.

%files
%doc Changes  META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version} 
chmod 644 Changes

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15508 |21mr|perl-namespace-clean-0.270.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name namespace-clean
%define upstream_version 0.27

%global __requires_exclude ^perl\\((namespace::clean::_Util)

Summary:	Keep imports and functions out of your namespace
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/namespace/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(B::Hooks::EndOfScope)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(Scope::Guard)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Symbol)
BuildRequires:	perl(Test::More)
Requires:	perl(Package::Stash)
BuildArch:	noarch
Provides:	perl(namespace::clean) = %{version}

%description
When you define a function, or import one, into a Perl package, it will
naturally also be available as a method. This does not per se cause
problems, but it can complicate subclassing and, for example, plugin
classes that are included via multiple inheritance by loading them as
base classes.

The 'namespace::clean' pragma will remove all previously declared or
imported symbols at the end of the current package's compile cycle.
Functions called in the package itself will still be bound by their
name, but they won't show up as methods on your class or instances.

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15509 |21mr|perl-NetAddr-IP-4.79.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    NetAddr-IP
%define upstream_version 4.079

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary:        Manage IPv4 and IPv6 addresses and subnets in Perl
License:        Artistic
Group:          Development/Perl
Url:            http://search.cpan.org/dist/%{upstream_name}/
Source0:        http://www.cpan.org/modules/by-module/NetAddr/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel

%description
This module provides an object-oriented abstraction on top of IP
addresses or IP subnets, that allows for easy manipulations.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
rm -f t/00-Sign.t # debug files make it fails

%build
perl Makefile.PL  INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%{perl_vendorarch}/NetAddr
%{perl_vendorarch}/auto/NetAddr
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15510 |21mr|perl-Net-CIDR-0.180.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-CIDR
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Manipulate IPv4/IPv6 netblocks in CIDR notation

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/M/MR/MRSAM/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(CPAN::Meta) >= 2.150.5
BuildRequires: perl(Carp) >= 1.360.0

BuildArch:	noarch

%description
With this module, you can manipulate IPv4/IPv6 netblocks in CIDR notation.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes COPYING README META.json META.yml
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15511 |21mr|perl-Net-CIDR-Lite-0.210.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-CIDR-Lite
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Perl extension for merging IPv4 or IPv6 CIDR addresses

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildRequires:  perl-Test-Simple

BuildArch:	noarch

%description
Faster alternative to Net::CIDR when merging a large number of CIDR address
ranges. Works for IPv4 and IPv6 addresses.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%files
%doc Changes README
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15512 |21mr|perl-Net-Daemon-0.480.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 Net-Daemon
%define upstream_version 0.48

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Perl extension for portable daemons

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/J/JW/JWIED/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Net::Daemon is an abstract base class for implementing portable server
applications in a very simple way. The module is designed for Perl 5.005 and
threads, but can work with fork() and Perl 5.004.

The Net::Daemon class offers methods for the most common tasks a daemon needs:
Starting up, logging, accepting clients, authorization, restricting its own
environment for security and doing the true work. You only have to override
those methods that aren't appropriate for you, but typically inheriting will
safe you a lot of work anyways.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# don't work on the cluster
# %{__make} test

%install
%makeinstall_std

%files 
%doc README
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15513 |21mr|perl-Net-DBus-1.1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name Net-DBus
%define upstream_version 1.1.0
%define debug_package %nil

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
Summary:	Perl API to the DBus message system
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	dbus-devel
# For tests
BuildRequires:	perl(XML::Twig)
BuildRequires:	perl-Test-Simple
BuildRequires:	perl-Time-HiRes

%description
Net::DBus provides a Perl API for the DBus message system. The DBus Perl
interface is currently operating against the 0.32 development version of DBus,
but should work with later versions too, providing the API changes have not
been too drastic.

Users of this package are either typically, service providers in which case the
Net::DBus::Service and Net::DBus::Object modules are of most relevance, or are
client consumers, in which case Net::DBus::RemoteService and
Net::DBus::RemoteObject are of most relevance.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/*/*
%{perl_vendorarch}/Net
%{perl_vendorarch}/auto/Net

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15514 |21mr|perl-Net-DNS-1.190.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-DNS
%define upstream_version 1.19

%global __requires_exclude perl\\(Digest::HMAC\\)|perl\\(Digest::MD5\\)|perl\\(Digest::SHA\\)|perl\\(MIME::Base64\\)|perl\\(CONFIG\\)|perl\\(OS_CONF\\)

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3
Summary:    Perl interface to the DNS resolver
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Digest::HMAC) >= 1.10.0
BuildRequires: perl(Digest::MD5) >= 2.130.0
BuildRequires: perl(Digest::SHA) >= 5.230.0
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::Socket) >= 1.240.0
BuildRequires: perl(MIME::Base64) >= 2.110.0
BuildRequires: perl(Test::More) >= 0.520.0
BuildRequires: perl-devel
BuildArch:     noarch

%description
Net::DNS is a collection of Perl modules that act as a Domain Name System (DNS)
resolver. It allows the programmer to perform DNS queries that are beyond the
capabilities of gethostbyname and gethostbyaddr.

The programmer should be somewhat familiar with the format of a DNS packet and
its various sections. See RFC 1035 or DNS and BIND (Albitz & Liu) for details.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
sed -i 's#/usr/local/bin/perl#/usr/bin/perl#' demo/*


%build
perl Makefile.PL INSTALLDIRS=vendor < /dev/null
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes *META.yml README  demo
%{_mandir}/*/*
%{perl_vendorlib}/Net

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15515 |21mr|perl-Net-DNS-Resolver-Programmable-0.003-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name Net-DNS-Resolver-Programmable

Summary:	Programmable DNS resolver class for offline emulation of DNS

Name:		perl-%{real_name}
Version:	0.003
Release:	12
License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{real_name}
Source0:	http://search.cpan.org/CPAN/authors/id/J/JM/JMEHNLE/net-dns-resolver-programmable/%{real_name}-v%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl-Module-Build
BuildRequires:	perl-Net-DNS
BuildRequires:	perl-version
BuildArch:	noarch

%description
Net::DNS::Resolver::Programmable is a Net::DNS::Resolver descendant class that
allows a virtual DNS to be emulated instead of querying the real DNS. A set of
static DNS records may be supplied, or arbitrary code may be specified as a
means for retrieving DNS records, or even generating them on the fly.

%prep

%setup -q -n %{real_name}-v%{version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install

%makeinstall_std

%clean 

%files
%doc CHANGES LICENSE README TODO
%{perl_vendorlib}/Net/DNS/Resolver/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15516 |21mr|perl-Net-HTTP-6.180.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-HTTP
%define upstream_version 6.18

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Non-blocking HTTP client

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Compress::Raw::Zlib)
BuildRequires: perl(IO::Compress::Gzip)
BuildRequires: perl(IO::Select)
BuildRequires: perl(IO::Socket::INET)
BuildRequires: perl(URI)
BuildRequires: perl-devel
BuildArch: noarch

%description
The 'Net::HTTP' class is a low-level HTTP client. An instance of the
'Net::HTTP' class represents a connection to an HTTP server. The HTTP
protocol is described in RFC 2616. The 'Net::HTTP' class supports
'HTTP/1.0' and 'HTTP/1.1'.

'Net::HTTP' is a sub-class of 'IO::Socket::INET'. You can mix the methods
described below with reading and writing from the socket directly. This is
not necessary a good idea, unless you know what you are doing.

The following methods are provided (in addition to those of
'IO::Socket::INET'):

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15517 |21mr|perl-Net-Ident-1.240.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-Ident
%define upstream_version 1.24

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(FileHandle\\)
%global __provides_exclude perl\\(FileHandle\\)
%else
%define _provides_exceptions perl(FileHandle)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Net::Ident - lookup the username on the remote end of a TCP/IP connection

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Net::Ident is a module that looks up the username on the remote
side of a TCP/IP connection through the ident (auth/tap) protocol
described in RFC1413 (which supersedes RFC931). Note that this
requires the remote site to run a daemon (often called identd) to
provide the requested information, so it is not always available
for all TCP/IP connections.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# fix attribs
find . -type d -exec chmod 755 {} \;
find . -type f -exec chmod 644 {} \;
	
# cleanup
for i in `find . -type d -name CVS`  `find . -type d -name .svn` `find . -type f -name .cvs\*` `find . -type f -name .#\*`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
yes "" | perl Makefile.PL INSTALLDIRS=vendor
%make
# tests are borked...
#make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Net/Ident.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15518 |21mr|perl-Net-IMAP-Simple-1.220.600-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-IMAP-Simple
%define upstream_version 1.2206

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Simple IMAP interface to Perl 5

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Class::Accessor)
BuildRequires:	perl(DateTime)
BuildRequires:	perl(DateTime::Format::Strptime)
BuildRequires:	perl(Parse::RecDescent)
BuildRequires:	perl(Regexp::Common)
# check
#BuildRequires:	perl(DateTime::Format::Mail)
#BuildRequires:	perl(Email::Address)
#BuildRequires:	perl(Email::MIME)

BuildArch:	noarch

%description
Perl extension for simple IMAP account handling,
mostly compatible with Net::POP.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 META.json META.yml

%build
yes | %{__perl} Makefile.PL INSTALLDIRS=vendor
%make_build

%install
%make_install

%files
%doc Changes README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/Net

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15519 |21mr|perl-Net-IMAP-Simple-SSL-1.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname Net-IMAP-Simple-SSL

Summary:	SSL support for Net::IMAP::Simple

Name:		perl-%{realname}
Version:	1.3
Release:	14
License:	Artistic/GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{realname}/
Source:		ftp://ftp.perl.org/pub/CPAN/modules/by-module/Net/%{realname}-%{version}.tar.bz2

BuildRequires: perl-devel
BuildRequires: perl(IO::Socket::SSL)
Requires:	perl(Net::IMAP::Simple)
BuildArch:	noarch

%description
This module is a subclass of Net::IMAP::SImple that includes SSL support.
The interface is identical.

%prep
%setup -q -n %{realname}-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Net/IMAP/Simple/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15520 |21mr|perl-Net-IP-1.260.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-IP
%define upstream_version 1.26

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:	Perl extension for manipulating IPv4/IPv6 addresses

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/Net-IP-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
#for tests
BuildRequires:	perl(Math::BigInt)
BuildArch:	noarch

%description
This module provides functions to deal with IPv4/IPv6 addresses.
The module can be used as a class, allowing the user to instantiate
IP objects, which can be single IP addresses, prefixes, or ranges of
addresses. There is also a procedural way of accessing most of the
functions. Most subroutines can take either IPv4 or IPv6 addresses
transparently.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_bindir}/*
%{perl_vendorlib}/Net
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15521 |21mr|perl-Net-Patricia-1.220.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-Patricia
%define upstream_version 1.22

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9
Summary:	Patricia Trie perl module for fast IP address lookups
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/modules/by-module/Net/Net-Patricia-%{upstream_version}.tar.gz
BuildRequires:	pkgconfig(libnsl)
BuildRequires:  perl(Socket6)
BuildRequires:	perl-devel
BuildRequires:	perl-Net-CIDR-Lite


%description
This module uses a Patricia Trie data structure to quickly perform IP address
prefix matching for applications such as IP subnet, network or routing table
lookups. The data structure is based on a radix tree using a radix of two, so
sometimes you see patricia implementations called "radix" as well. The term
"Trie" is derived from the word "retrieval" but is pronounced like "try".
Patricia stands for "Practical Algorithm to Retrieve Information Coded as
Alphanumeric", and was first suggested for routing table lookups by Van
Jacobsen. Patricia Trie performance characteristics are well-known as it has
been employed for routing table lookups within the BSD kernel since the 4.3
Reno release.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL
%make

%check
%make test

%install
rm -Rf %{buildroot}
%make DESTDIR=%{buildroot} pure_vendor_install \
INSTALLSITELIB=%{perl_vendorlib} \
INSTALLSITEMAN1DIR=%{_mandir}/man1 \
INSTALLSITEMAN3DIR=%{_mandir}/man3
find %{buildroot} -type f -name .packlist -exec rm -f {} ';'

%clean
rm -Rf %{buildroot}

%files
%{perl_vendorarch}/Net*
%{perl_vendorarch}/auto/Net*
%{_mandir}/man?/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15522 |21mr|perl-Net-Server-2.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Net-Server
%define upstream_version 2.009

%if %{_use_internal_dependency_generator}
%global __provides_exclude perl\\(My(.*)\\)|perl\\(Sample(.*)\\)
%else
%define	_provides_exceptions perl(My\\|perl(Sample
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Extensible, general Perl server engine

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(IO::Socket)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Socket)
BuildRequires:  perl(Time::HiRes)
BuildRequires:	perl-devel
Requires:	perl-IO-Multiplex
BuildArch:	noarch

%description
Net::Server is an extensible, generic Perl server engine.  Net::Server combines
the good properties from Net::Daemon (0.34), NetServer::Generic (1.03), and
Net::FTPServer (1.0), and also from various concepts in the Apache Webserver.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes examples README
%{_mandir}/*/*
%{perl_vendorlib}/Net
%{_bindir}/net-server

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15523 |21mr|perl-Net-SMTP-SSL-1.40.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Net-SMTP-SSL
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	SSL support for Net::SMTP

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl(Net::SMTP)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-Net-SSLeay
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Implements the same API as Net::SMTP, but uses IO::Socket::SSL for its
network operations. Due to the nature of 'Net::SMTP''s 'new' method, it is
not overridden to make use of a default port for the SMTPS service. Perhaps
future versions will be smart like that. Port '465' is usually what you
want, and it's not a pain to specify that.

For interface documentation, please see Net::SMTP.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15524 |21mr|perl-Net-SSLeay-1.850.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Net-SSLeay
%define upstream_version 1.85

Summary:	Perl extension for using OpenSSL
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	BSD-like
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Net/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	openssl
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
Requires:	openssl
Provides:	perl-Net_SSLeay = %{version}-%{release}
Provides:	perl-Net_SSLeay.pm = %{version}-%{release}

%description
Perl extension for using OpenSSL.

%files
%doc Changes Credits README examples QuickRef
%{perl_vendorarch}/auto/Net
%{perl_vendorarch}/Net
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 755 examples

%build
# note the %{_prefix} which must passed to Makefile.PL, weird but necessary :-(
echo | perl Makefile.PL %{_prefix} INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"
perl -p -i -e 's|/usr/local/bin|/usr/bin|g;' *.pm examples/*

%install
%makeinstall_std

%check
# testing the package implies contacting external sites (some are down ?)
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15525 |21mr|perl-Net-Telnet-3.30.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Net-Telnet
%define upstream_version 3.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	13

Summary:	Net::Telnet perl module

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%upstream_name
Source0:	%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Net::Telnet allows you to make client connections to a TCP port and do network
I/O, especially to a port using the TELNET protocol.  Simple I/O methods such
as print, get, and getline are provided.  More sophisticated interactive
features are provided because connecting to a TELNET port ultimately means
communicating with a program designed for human interaction.  These interactive
features include the ability to specify a timeout and to wait for patterns to
appear in the input stream, such as the prompt from a shell.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README ChangeLog
%{_mandir}/*/*
%{perl_vendorlib}/Net

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15526 |21mr|perl-Number-Compare-0.30.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Number-Compare
%define upstream_version 0.03

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

Summary:	Numeric comparisons

License:	GPL+ or Artistic
Group:		Development/Perl
Source0:	http://search.cpan.org/CPAN/authors/id/R/RC/RCLAMP/Number-Compare-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{upstream_name}

BuildRequires:	perl-devel
BuildRequires:  perl-Test-Simple
BuildArch:	noarch

%description 
Number::Compare compiles a simple comparison to an anonymous subroutine, which
you can call with a value to be tested again.

Now this would be very pointless, if Number::Compare didn't understand
magnitudes.

The target value may use magnitudes of kilobytes (k, ki), megabytes (m, mi), or
gigabytes (g, gi). Those suffixed with an i use the appropriate 2**n version in
accordance with the IEC standard: http://physics.nist.gov/cuu/Units/binary.html

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Number
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15527 |21mr|perl-Object-Accessor-0.480.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Object-Accessor
%define upstream_version 0.48

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.48
Release:	7
Summary:	Add a Makefile target to determine test coverage using Devel::Cover

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Object/Object-Accessor-0.48.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Params::Check)
BuildArch:	noarch

%description
Object::Accessor provides an interface to create per object accessors (as
opposed to per Class accessors, as, for example, Class::Accessor provides).

You can choose to either subclass this module, and thus using its accessors on
your own module, or to store an Object::Accessor object inside your own object,
and access the accessors from there. See the SYNOPSIS for examples.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Object
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15528 |21mr|perl-OLE-Storage_Lite-0.190.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    OLE-Storage_Lite
%define upstream_version 0.19

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Simple Class for OLE document interface

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/OLE/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
OLE::Storage_Lite allows you to read and write an OLE structured file. Please
refer OLE::Storage by Martin Schwartz.

OLE::Storage_Lite::PPS is a class representing PPS.
OLE::Storage_Lite::PPS::Root, OLE::Storage_Lite::PPS::File and
OLE::Storage_Lite::PPS::Dir are subclasses of OLE::Storage_Lite::PPS.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# perl path hack
find . -type f | xargs perl -p -i -e "s|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|g"

%build
%__perl Makefile.PL INSTALLDIRS=vendor 
%make OPTIMIZE="%{optflags}"

%install
%makeinstall_std

%files
%doc Changes README sample
%{perl_vendorlib}/OLE
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15529 |21mr|perl-OpenGL-0.700.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    OpenGL
%define upstream_version 0.70

%global __requires_exclude ^perl\\((OpenGL::Config)

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1
Summary:    Interface to OpenGL drawing/imaging library
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/C/CH/CHM/%{upstream_name}-%{upstream_version}.tar.gz
# Patch from Fedora
Patch0:     0001-Don-t-check-current-display-for-extensions.patch
BuildRequires: mesa-common-devel
BuildRequires: pkgconfig(glu)
BuildRequires: pkgconfig(glut)
BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xi)
BuildRequires: perl-devel

%description
Naming convention:
    Virtually all of the OpenGL 1.0, and 1.1 functions are available, and
    most of 1.2. In general, the calling sequence is identical in Perl as
    in C.

    Most functions that have no pointer arguments are called identically in
    Perl as in C, and the same name is used.

    Functions that use Perl array arguments and have been changed in "the
    obvious way" -- to take a variable number of arguments and/or to return
    an array -- have the the same names as their C counterparts, but with a
    _p suffix.

%prep
%autosetup -p1 -n %{upstream_name}-%{upstream_version}

# test.pl requires interaction, prefer using tests in t/
rm test.pl

# fix shebang in examples
find examples/ -name '*.pl' -exec sed -i 's|/usr/local/bin/perl|%{__perl}|' {} \;

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor dist=NO_EXCLUSIONS
sed 's/PERL_DL_NONLAZY=1//' -i Makefile
%make

# since we're building without exclusion, test fail
# % check
# % {make} test

%install
%makeinstall_std

%files
%doc CHANGES COPYRIGHT INSTALL META.yml README SUPPORTS TODO examples
%{_mandir}/man3/*

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15530 |21mr|perl-Package-Constants-0.60.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Package-Constants
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Package Constants

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Package/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:  perl(Test::More) >= 1.1.9


BuildArch:	noarch

%description
"Package::Constants" lists all the constants defined in a certain pack- age.
This can be useful for, among others, setting up an autogenerated
"@EXPORT/@EXPORT_OK" for a Constants.pm file.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README CHANGES META.json META.yml
%{perl_vendorlib}/Package/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15531 |21mr|perl-Package-DeprecationManager-0.170.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Package-DeprecationManager
%define upstream_version 0.17

Summary:	Manage deprecation warnings for your distribution
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Package/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(Sub::Install)
BuildRequires:	perl(Sub::Name)
BuildRequires:	perl(Sub::Util)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::Warnings)
BuildArch:	noarch

%description
This module allows you to manage a set of deprecations for one or more
modules.

When you import 'Package::DeprecationManager', you must provide a set of
'-deprecations' as a hash ref. The keys are "feature" names, and the values
are the version when that feature was deprecated.

In many cases, you can simply use the fully qualified name of a subroutine
or method as the feature name. This works for cases where the whole
subroutine is deprecated. However, the feature names can be any string.
This is useful if you don't want to deprecate an entire subroutine, just a
certain usage.

%files
%doc Changes META.yml LICENSE  META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15532 |21mr|perl-Package-Stash-0.370.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Package-Stash
%define upstream_version 0.37

%if %{_use_internal_dependency_generator}
%global __requires_exclude ^perl\\((Package::Stash::Conflicts)
%else
%define _requires_exceptions perl(Package::Stash::Conflicts)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Routines for manipulating stashes

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Package/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Scalar::Util)
BuildRequires: perl(Module::Implementation)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Dist::CheckConflicts)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Manipulating stashes (Perl's symbol tables) is occasionally necessary, but
incredibly messy, and easy to get wrong. This module hides all of that
behind a simple API.

NOTE: Most methods in this class require a variable specification that
includes a sigil. If this sigil is absent, it is assumed to represent the
IO slot.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml LICENSE README META.json
%{_mandir}/man3/*
%{perl_vendorlib}/Package
%{_bindir}/package-stash-conflicts
%{_mandir}/man1/package-stash-conflicts.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15533 |21mr|perl-Package-Stash-XS-0.280.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Package-Stash-XS
%define upstream_version 0.28

Summary:	Faster and more correct implementation of the Package::Stash API
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Package/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Requires)

%description
This is a backend for the Package::Stash manpage, which provides the
functionality in a way that's less buggy and much faster. It will be used
by default if it's installed, and should be preferred in all environments
with a compiler.

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15534 |21mr|perl-PadWalker-2.300.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name  PadWalker
%define upstream_version 2.3

Summary:	Play with other peoples' lexical variables
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/R/RO/ROBIN/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

%description
PadWalker is a module which allows you to inspect (and even change!) lexical
variables in any subroutine which called you. It will only show those variables
which are in scope at the point of the call.

%files
%doc README Changes
%{perl_vendorarch}/PadWalker.pm
%{perl_vendorarch}/auto/PadWalker
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15535 |21mr|perl-Pango-1.227.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Pango
%define perl_glib_require 1.220
%define upstream_version 1.227

Summary:	Perl module for the Pango library
Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	3
License:	GPL or Artistic
Group:		Development/GNOME and GTK+
Source0:	http://sourceforge.net/projects/gtk2-perl/files/Pango/%{upstream_version}/Pango-%{upstream_version}.tar.gz
Url:		http://gtk2-perl.sf.net/
BuildRequires:	perl-devel
BuildRequires:	perl-Cairo
BuildRequires:	perl-ExtUtils-Depends >= 0.300
BuildRequires:	perl-ExtUtils-PkgConfig >= 1.03
BuildRequires:	perl(Glib::MakeHelper) >= %{perl_glib_require}
BuildRequires:	pkgconfig(pangocairo)
# for test suite:
#BuildRequires:	fontconfig
#BuildRequires:	fonts-ttf-dejavu
Requires:	perl-Glib >= %{perl_glib_require}

%description
This module provides perl access to the gtk+-2.x library.

Pango is a library for laying out and rendering text, with an emphasis on
internationalization. Pango can be used anywhere that text layout is needed,
but using Pango in conjunction with Cairo and/or Gtk2 provides a complete
solution with high quality text handling and graphics rendering.

%files
%doc AUTHORS LICENSE
%{perl_vendorarch}/%{module}
%{perl_vendorarch}/%{module}.pm
%exclude %{perl_vendorarch}/%{module}/*.pod
%exclude %{perl_vendorarch}/%{module}/*/*.pod
%{perl_vendorarch}/auto/*

#----------------------------------------------------------------------------

%package doc
Summary:	Pango documentation
Group:		Books/Computer books

%description doc
This package contains documentation of the Pango module.

%files doc
%doc examples
%{_mandir}/*/*
%dir %{perl_vendorarch}/%{module}
%{perl_vendorarch}/%{module}/*.pod
%{perl_vendorarch}/%{module}/*/*.pod

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{upstream_version}
perl Makefile.PL INSTALLDIRS=vendor

%build
%make OPTIMIZE="%{optflags}"

%install
%makeinstall_std

%check
#xvfb-run %make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15536 |21mr|perl-Parallel-Iterator-1.00-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define realname   Parallel-Iterator

Name:		perl-%{realname}
Version:	1.00
Release:	10
License:	GPL or Artistic
Group:		Development/Perl
Summary:	Simple parallel execution

Source:		http://www.cpan.org/modules/by-module/Parallel/%{realname}-%{version}.tar.gz
Url:		http://search.cpan.org/dist/%{realname}
BuildRequires:	perl-devel
BuildRequires:	perl(Config)

BuildArch:	noarch

%description
The 'map' function applies a user supplied transformation function to each
element in a list, returning a new list containing the transformed
elements.

This module provides a 'parallel map'. Multiple worker processes are forked
so that many instances of the transformation function may be executed
simultaneously.

For time consuming operations, particularly operations that spend most of
their time waiting for I/O, this is a big performance win. It also provides
a simple idiom to make effective use of multi CPU systems.

%prep
%setup -q -n %{realname}-%{version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15537 |21mr|perl-Params-Classify-0.15.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define upstream_name    Params-Classify
%define upstream_version 0.015

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary:    Argument type classification
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Params/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl(Module::Build)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::More)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel

%description
This module provides various type-testing functions. These are intended for
functions that, unlike most Perl code, care what type of data they are
operating on. For example, some functions wish to behave differently
depending on the type of their arguments (like overloaded functions in
C++).

There are two flavours of function in this module. Functions of the first
flavour only provide type classification, to allow code to discriminate
between argument types. Functions of the second flavour package up the most
common type of type discrimination: checking that an argument is of an
expected type. The functions come in matched pairs, of the two flavours,
and so the type enforcement functions handle only the simplest requirements
for arguments of the types handled by the classification functions.
Enforcement of more complex types may, of course, be built using the
classification functions, or it may be more convenient to use a module
designed for the more complex job, such as the Params::Validate manpage.

This module is implemented in XS, with a pure Perl backup version for
systems that can't handle XS.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor

./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%clean

%files
%doc Changes README
%{_mandir}/man3/*

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15538 |21mr|perl-Params-Coerce-0.140.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Params-Coerce
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Allows your classes to do coercion of parameters

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Params/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Params::Util)
BuildRequires:	perl(inc::Module::Install)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
A big part of good API design is that we should be able to be flexible in
the ways that we take parameters.

Params::Coerce attempts to encourage this, by making it easier to take a
variety of different arguments, while adding negligable additional
complexity to your code.

What is Coercion
    "Coercion" in computing terms generally referse to "implicit type
    conversion". This is where data and object are converted from one type
    to another behind the scenes, and you just just magically get what you
    need.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/Params

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15539 |21mr|perl-Params-Util-1.70.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Params-Util
%define upstream_version 1.07

Name:		    perl-%{upstream_name}
Version:	    %perl_convert_version %{upstream_version}
Release:	    12
Summary:	    Simple standalone param-checking functions
License:	    GPL+ or Artistic
Group:		    Development/Perl
Url:		    http://search.cpan.org/dist/%{upstream_name}/
Source0:	    http://www.cpan.org/modules/by-module/Params/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires:  perl-Test-Simple

%description
Params::Util provides a basic set of importable functions that makes checking
parameters a hell of a lot easier.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes README lib/Params/Util.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%{perl_vendorarch}/Params
%{perl_vendorarch}/auto/Params
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15540 |21mr|perl-Params-Validate-1.290.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Params-Validate
%define upstream_version 1.29

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary:	Validate method/function call parameters
License:	GPL+ or Artistic
Group:		Development/Other
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Params/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Attribute::Handlers)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Module::Implementation)
BuildRequires:	perl(ExtUtils::CBuilder)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Fatal)
BuildRequires:	perl-devel >= 2:5.14
BuildRequires:	perl-List-MoreUtils >= 0.320.0-3

%description
The Params::Validate module provides a flexible system for validation
method/function call parameters.

The validation can be as simple as checking for the presence of required
parameters or as complex as validating object classes (via isa) or capabilities
(via can), checking parameter types, and using customized callbacks to ensure
data integrity.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Build.PL installdirs=vendor
./Build CFLAGS="%{optflags}"

%check
# avoid strange unlinking error
rm -f t/28-readonly-return.t
./Build test

%install
rm -fr %{buildroot}
./Build install destdir=%{buildroot}

%files
%doc  Changes
%{_mandir}/*/*

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15541 |21mr|perl-Params-ValidationCompiler-0.300.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Params-ValidationCompiler
%define upstream_version 0.30

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Defines exceptions thrown by Params::ValidationCompiler
License:    GPLv1+ or Artistic
Group:      Development/Perl
Url:        https://metacpan.org/release/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Params/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(B)
BuildRequires: perl(Carp)
BuildRequires: perl(Eval::Closure)
BuildRequires: perl(Exception::Class)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(Hash::Util)
BuildRequires: perl(List::Util)
BuildRequires: perl(Scalar::Util)
#BuildRequires: perl(Specio)
#BuildRequires: perl(Test2::Bundle::Extended)
#BuildRequires: perl(Test2::Plugin::NoWarnings)
#BuildRequires: perl(Test2::Require::Module)
BuildRequires: perl(Test::More)
BuildRequires: perl(overload)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildArch: noarch

%description
This module creates a customized, highly efficient parameter checking
subroutine. It can handle named or positional parameters, and can return
the parameters as key/value pairs or a list of values.

In addition to type checks, it also supports parameter defaults, optional
parameters, and extra "slurpy" parameters.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
true #make test

%install
%makeinstall_std

%files
%doc INSTALL LICENSE Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15542 |21mr|perl-PAR-Dist-0.510.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 PAR-Dist
%define upstream_version 0.51

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Create and manipulate PAR distributions

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/PAR/PAR-Dist-%{upstream_version}.tar.gz

BuildRequires:	perl-YAML-parser
BuildRequires:	perl(Archive::Zip)
BuildRequires:	perl(Test)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module creates and manipulates *PAR distributions*. They are
architecture-specific PAR files, containing everything under blib/ of CPAN
distributions after their "make" or "Build" stage, a META.yml describing
metadata of the original CPAN distribution, and a MANIFEST detailing all files
within it. Digitally signed PAR distributions will also contain a SIGNATURE
file.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/*/*
%{perl_vendorlib}/PAR

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15543 |21mr|perl-Parse-RecDescent-1.967.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Parse-RecDescent
%define upstream_version 1.967015

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    A recursive descent parser generator for Perl
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Parse/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.570.200
BuildRequires: perl(Test::More)
BuildRequires: perl(Text::Balanced) >= 1.950.0
BuildRequires: perl-devel
BuildArch:  noarch

%description
The Parse::RecDescent perl module is used to generate recursive descent
parsers from powerful grammar specifications.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
perl -p -i -e 's|#!.*/usr/local/bin/perl|#!/usr/bin/perl|' `find . -name '*.pl'`
find -type f | xargs chmod 644

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

# now in perl
rm -f %{buildroot}%{_mandir}/*/Text*

%files
%doc Changes META.json META.yml MYMETA.yml README demo
%{perl_vendorlib}/Parse
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15544 |21mr|perl-Parse-Yapp-1.210.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Parse-Yapp
%define upstream_version 1.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Fully reentrant perl OO LALR(1) parser creator

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%upstream_name/
Source0:	https://cpan.metacpan.org/authors/id/W/WB/WBRASWELL/Parse-Yapp-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The Parse::Yapp module enables to create Perl OO fully reentrant
LALR(1) parser modules (see the Yapp.pm pod pages for more details)
and has been designed to be functionally as close as possible to yacc,
but using the full power of Perl and open to enhancements.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
find -type f | xargs chmod 644
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/Parse

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15545 |21mr|perl-Path-Class-0.370.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	Path-Class
%define upstream_version 0.37

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Cross-platform path specification manipulation

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/K/KW/KWILLIAMS/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(Test)
BuildRequires: perl(Perl::OSType)
BuildArch:	noarch

%description
Path::Class is a module for manipulation of file and directory specifications
(strings describing their locations, like '/home/ken/foo.txt' or
'C:\Windows\Foo.txt') in a cross-platform manner. It supports pretty much every
platform Perl runs on, including Unix, Windows, Mac, VMS, Epoc, Cygwin, OS/2,
and NetWare.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/Path/Class/*
%{perl_vendorlib}/Path/Class.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15546 |21mr|perl-Path-Tiny-0.108.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Path-Tiny
%define upstream_version 0.108

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3
Summary:    File path utility
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Path/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Cwd)
#BuildRequires: perl(Devel::Hide) # Contrib
BuildRequires: perl(Digest::SHA)
BuildRequires: perl(Exporter) >= 5.570.0
BuildRequires: perl(Fcntl)
BuildRequires: perl(File::Copy)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Path) >= 2.70.0
BuildRequires: perl(File::Spec) >= 3.400.0
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Spec::Unix)
BuildRequires: perl(File::Temp) >= 0.180.0
BuildRequires: perl(File::pushd)
BuildRequires: perl(File::stat)
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::FailWarnings)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(autodie) >= 2.140.0
BuildRequires: perl(strict)
BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Unicode::UTF8) >= 0.600.0
BuildRequires: perl(Test::MockRandom)
BuildRequires: perl-open

BuildArch:  noarch

%description
This module attempts to provide a small, fast utility for working with file
paths. It is friendlier to use than the File::Spec manpage and provides
easy access to functions from several other core file handling modules.

It doesn't attempt to be as full-featured as the IO::All manpage or the
Path::Class manpage, nor does it try to work for anything except Unix-like
and Win32 platforms. Even then, it might break if you try something
particularly obscure or tortuous. (Quick! What does this mean:
'///../../..//./././a//b/.././c/././'? And how does it differ on Win32?)

All paths are forced to have Unix-style forward slashes. Stringifying the
object gives you back the path (after some clean up).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15547 |21mr|perl-pcsc-perl-1.4.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name pcsc-perl

Summary:	Perl interface to the PC/SC smart card library

Name:		perl-%{module_name}
Version:	%perl_convert_version 1.4.14
Release:	5
URL:		http://ludovic.rousseau.free.fr/softwares/pcsc-perl/
Source0:	http://ludovic.rousseau.free.fr/softwares/pcsc-perl/pcsc-perl-%{version}.tar.bz2

License:	GPL
Group:		Development/Perl
BuildRequires:	perl-devel >= 5.8.0
BuildRequires:  libpcsclite-devel

%description
This package contains a Perl wrapper to the PC/SC smartcard library
(pcsc-lite) from MUSCLE together with some small examples.

%prep
%setup -q -n %{module_name}-%{version}

%build
find -name \*.pm | xargs chmod 644
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# this needs a smart card reader configured and with a
# card inserted
#%%make test

%install
%makeinstall_std

%clean

%files
%doc LICENCE README* examples Changelog
%{_mandir}/*/*
%{perl_vendorarch}/Chipcard
%{perl_vendorarch}/auto/Chipcard

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15548 |21mr|perl-Period-1.200.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Period
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Time::Period module for perl

License:	GPL
Group:		Development/Perl
Url:		http://search.perl.com/dist/%{upstream_name}
Source0:	ftp://ftp.cpan.org/pub/CPAN/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Period.pm is a Perl module that contains code to deal with time periods.
Currently, there is only a function in this module.  That function is
called inPeriod().

inPeriod() determines if a given time is within a given time period.
It will return 1 if it is, 0 if not, and -1 if either the time or the
period passed to it were malformed.  The time is specified in non-leap
year seconds past January 1, 1970, as per the time() function.  The period
is a string which is of the form described in Period's man page.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 README Period.html

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Period.html README
%{perl_vendorlib}/Time/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15549 |21mr|perl-Perl6-Junction-1.60000-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Version Not converted before , I won't epoch.Symbianflo

%define upstream_name    Perl6-Junction
%define upstream_version 1.60000

Summary:	Perl6 style Junction operators in Perl5
Name:		perl-%{upstream_name}
Version:	%{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Perl6/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a lightweight module which provides 'Junction' operators, the most
commonly used being any and all.

Inspired by the Perl6 design docs,
http://dev.perl.org/perl6/doc/design/exe/E06.html.

%files
%doc README Changes META.json META.yml
%{_mandir}/*/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL installdirs=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15550 |21mr|perl-PerlIO-utf8_strict-0.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    PerlIO-utf8_strict
%define upstream_version 0.007
%global __provides_exclude utf8_strict.so

Summary:	Fast and correct UTF-8 IO
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/PerlIO/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Carp)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(strict)
BuildRequires:	perl(utf8)
BuildRequires:	perl(warnings)
BuildRequires:	perl-devel

%description
This module provides a fast and correct UTF-8 PerlIO layer. Unlike perl's
default ':utf8' layer it checks the input for correctness.

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorarch}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15551 |21mr|perl-Perl-LanguageServer-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Perl-LanguageServer
%define upstream_version 2.6.1

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Language Server for Perl
Group:		Development/Perl
License:	artistic2
Url:		https://metacpan.org/dist/Perl-LanguageServer
Source0:	https://cpan.metacpan.org/authors/id/G/GR/GRICHTER/Perl-LanguageServer-%{upstream_version}.tar.gz

BuildRequires:	perl(AnyEvent)
BuildRequires:	perl(AnyEvent::AIO)
BuildRequires:	perl(Class::Refresh)
BuildRequires:	perl(Compiler::Lexer)
BuildRequires:	perl(Coro)
BuildRequires:	perl(Data::Dump)
BuildRequires:	perl(Encode)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(IO::AIO)
BuildRequires:	perl(JSON)
BuildRequires:	perl(Moose)
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is a Language Server for Perl

It implements the Language Server Protocol which provides
syntax-checking, symbol search, etc. Perl to various editors, for
example Visual Stuido Code or Atom.

https://microsoft.github.io/language-server-protocol/specification

To use it with Visual Studio Code, install the extention "perl"

This is an early version, but already working version.
Any comments and patches are welcome.

NOTE: This module uses Compiler::Lexer. The version on cpan (0.22) is buggy
crashes from time to time. Please use the version from github 
(https://github.com/goccy/p5-Compiler-Lexer) until
a new version is published to cpan.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std


%check
make test

%files
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15552 |21mr|perl-PlRPC-0.2020-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module 	PlRPC

Summary:	%{module} perl module

Name: 		perl-%{module}
Version: 	0.2020
Release: 	13
License: 	GPL or Artistic
Group:		Development/Perl
URL:		ftp://ftp.funet.fi/pub/languages/perl/CPAN/authors/id/JWIED
Source0:	%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl(Net::Daemon)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Sys::Syslog)
Buildarch:	noarch

%description
%{module} - module for perl

%files
%doc README ChangeLog
%{perl_vendorlib}/Bundle/*
%{perl_vendorlib}/RPC/*
%{_mandir}/man3*/*

#----------------------------------------------------------------------------
%prep
%setup -q -n %{module}

%build

%{__perl} Makefile.PL INSTALLDIRS=vendor --defaultdeps
%make

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15553 |21mr|perl-Pod-Coverage-0.230.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Pod-Coverage
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Checks if the documentation of a perl module is comprehensive

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-Coverage-%{upstream_version}.tar.gz

BuildRequires:  perl(Pod::Find)
BuildRequires:	perl-Module-Build
BuildRequires:	perl-Devel-Symdump
BuildRequires:	perl-Test-Simple
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Developers hate writing documentation. They'd hate it even more if their
computer tattled on them, but maybe they'll be even more thankful in the long
run. Even if not, perlmodstyle tells you to, so you must obey. This perl module
provides a mechanism for determining if the pod for a given module is
comprehensive.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor DESTDIR=%{buildroot}
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Pod/*
%{_bindir}/pod_cover
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15554 |21mr|perl-Pod-Coverage-Moose-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Coverage-Moose
%define upstream_version 0.05

Summary:	L<Pod::Coverage> extension for L<Moose>
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Class::MOP)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Moose)
BuildRequires:	perl(Perl6::Junction)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(namespace::autoclean)
BuildRequires:	perl(namespace::clean)
BuildArch:	noarch

%description
When using the Pod::Coverage manpage in combination with the Moose manpage,
it will report any method imported from a Role. This is especially bad when
used in combination with the Test::Pod::Coverage manpage, since it takes
away its ease of use.

To use this module in combination with the Test::Pod::Coverage manpage, use
something like this:

  use Test::Pod::Coverage;
  all_pod_coverage_ok({ coverage_class => 'Pod::Coverage::Moose'});

%files
%doc META.yml Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15555 |21mr|perl-Pod-Plainer-1.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Pod-Plainer
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	To convert POD to old-style plainer POD

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Pod::Parser)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Pod::Plainer uses Pod::Parser which takes Pod with the (new) 'C<< .. >>'
constructs and returns the old(er) style with just 'C<>'; '<' and '>' are
replaced by 'E<lt>' and 'E<gt>'.

This can be used to pre-process Pod before using tools which do not
recognise the new style Pods.

METHODS
    * escape_ltgt

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15556 |21mr|perl-Pod-POM-2.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name  Pod-POM
%define upstream_version 2.01

Summary:	POD Object Model
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Pod/Pod-POM-%{upstream_version}.tar.gz
BuildRequires:	perl(Cwd)
BuildRequires:	perl(Encode)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(File::Slurper) >= 0.4.0
BuildRequires:	perl(FindBin)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(Getopt::Std)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Text::Diff)
BuildRequires:	perl(Text::Wrap)
BuildRequires:	perl(Test::Differences)
BuildRequires:	perl(YAML::Any)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module implements a parser to convert Pod documents into a simple object
model form known hereafter as the Pod Object Model. The object model is
generated as a hierarchical tree of nodes, each of which represents a different
element of the original document. The tree can be walked manually and the nodes
examined, printed or otherwise manipulated. In addition, Pod::POM supports and
provides view objects which can automatically traverse the tree, or section
thereof, and generate an output representation in one form or another.

%files
%doc Changes TODO
%{_bindir}/*
%{perl_vendorlib}/Pod
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15557 |21mr|perl-POE-1.368.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 POE
%define upstream_version 1.368
%bcond_with perl_POE_enables_optional_test

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3
Epoch:		2

Summary:	Portable multitasking and networking framework for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/POE/%{upstream_name}-%{upstream_version}.tar.gz
# This upstream_name naming scheme does not follow path names...

BuildRequires:	perl-devel
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(Carp)
BuildRequires:	perl(Errno)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(IO)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Storable)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Curses)
BuildRequires:	perl(IO::Pipely)
BuildRequires:	perl(IO::Pty)
BuildRequires:	perl(IO::Tty)
%if %{with perl_POE_enables_optional_test}
BuildRequires:	perl(POE::Test::Loops) >= 1.360.0
%endif
BuildRequires:	perl(Socket6)
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(LWP)
BuildRequires:	perl(Test::Simple)
BuildRequires:	perl(Email::MIME::RFC2047)
BuildRequires:	perl(Term::Size)
BuildRequires:	perl(Socket::GetAddrInfo)
BuildRequires:	perl(Compress::Zlib)
BuildRequires:	perl(Socket)

BuildArch:	noarch

Provides:	perl(POE::Resource::Controls)

%description
POE is a framework for cooperative, event driven multitasking in Perl.

POE originally was developed as the core of a persistent object server and
runtime environment. It has evolved into a general purpose multitasking and
networking framework, encompassing and providing a consistent interface to
other event loops such as Event and the Tk and Gtk toolkits.

POE is a mature framework for creating multitasking programs in Perl.  It has
been in active development since 1998.  It has been used in mission-critical
systems such as internetworked financial markets, file systems, commerce and
application servers.

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 755 examples
chmod 755 examples/*.perl

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor --default
%make

%check
DISPLAY= make test

%install
%makeinstall_std

%files
%doc CHANGES HISTORY README examples TODO META.yml META.json
%{perl_vendorlib}/POE
%{perl_vendorlib}/*.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15558 |21mr|perl-prefork-1.40.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    prefork
%define upstream_version 1.04

Summary:	Optimize module loading across forking and non-forking scenarios
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/A/AD/ADAMK/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
#BuildRequires:	perl(ExtUtils::AutoInstall) # Contrib
BuildRequires:	perl(File::Spec) >= 0.82
BuildRequires:	perl(Scalar::Util) >= 1.10
BuildRequires:	perl(Test::More) >= 0.47
BuildRequires:	perl(inc::Module::Install::DSL)
BuildArch:	noarch
Provides:	perl(prefork) = %{version}

%description
The prefork pragma is intended to allow module writers to optimise
module loading for both scenarios with as little additional code as
possible.

The prefork.pm is intended to serve as a central and optional
marshalling point for state detection (are we running in procedural or
pre-forking mode) and to act as a relatively light-weight module loader.

Loaders and Forkers
prefork is intended to be used in two different ways.

The first is by a module that wants to indicate that another module
should be loaded before forking. This is known as a "Loader".

The other is a script or module that will be initiating the forking. It
will tell prefork.pm that it is either going to fork, or is about to
fork, and that the modules previously mentioned by the Loaders should be
loaded immediately.

%files
%doc Changes README
%{perl_vendorlib}/prefork.pm
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15559 |21mr|perl-Probe-Perl-0.10.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Probe-Perl
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Information about the currently running perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/K/KW/KWILLIAMS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Config)
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Test)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
This module provides methods for obtaining information about the currently
running perl interpreter. It originally began life as code in the
'Module::Build' project, but has been externalized here for general use.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15560 |21mr|perl-Proc-Daemon-0.230.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Proc-Daemon
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Run a perl program as a daemon process

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Proc/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel
BuildRequires: perl(Proc::ProcessTable)
BuildArch:	noarch

%description
Proc::Daemon provides the capability for a Perl program to run
as a Unix daemon process.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc 
%{_mandir}/man3/*
%{perl_vendorlib}/Proc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15561 |21mr|perl-Proc-InvokeEditor-1.70.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Proc-InvokeEditor
%define upstream_version 1.07

Summary:	Perl extension for starting a text editor
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Proc/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Carp::Assert)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(File::Temp)
BuildArch:	noarch

%description
This module provides the ability to supply some text to an external text
editor, have it edited by the user, and retrieve the results.

The File::Temp module is used to provide secure, safe temporary files, and
File::Temp is set to its highest available level of security. This may
cause problems on some systems where no secure temporary directory is
available.

When the editor is started, no subshell is used. Your path will be scanned
to find the binary to use for each editor if the string given does not
exist as a file, and if a named editor contains whitespace, eg) if you try
to use the editor 'xemacs -nw', then the string will be split on whitespace
and anything after the editor name will be passed as arguments to your
editor. A shell is not used but this should cover most simple cases.

%files
%doc META.yml Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/Proc/

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}
chmod 644 META.yml

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15562 |21mr|perl-Proc-PID-File-1.280.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Proc-PID-File
%define upstream_version 1.28

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A module to manage process id files

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Proc/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch: noarch

%description
This Perl module is useful for writers of daemons and other processes that
need to tell whether they are already running, in order to prevent multiple
process instances. The module accomplishes this via *nix-style _pidfiles_,
which are files that store a process identifier.

The module provides two interfaces: 1) a simple call, and 2) an
object-oriented interface

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml Changes LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15563 |21mr|perl-Proc-ProcessTable-0.500.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Proc-ProcessTable
%define upstream_version 0.50

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9
Summary:	Interface to process table information
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Proc/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

%description
This module is a first crack at providing a consistent interface to
Unix (and maybe other multitasking OS's) process table information.
The impetus for this came about with my frustration at having to parse
the output of various systems' ps commands to check whether specific
processes were running on different boxes at a larged mixed Unix site.
The output format of ps was different on each OS, and sometimes
changed with each new release of an OS. Also, running a ps subprocess
from within a perl or shell script and parsing the output was not a
very efficient or aesthetic way to do things.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc README README.linux Changes TODO contrib example.pl
%{perl_vendorarch}/Proc
%{perl_vendorarch}/auto/Proc
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15564 |21mr|perl-Proc-WaitStat-1.0.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Proc-WaitStat
%define upstream_version 1.00

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    13
Summary:	Proc::WaitStat - Interpret and act on wait() status values
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/Proc/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(IPC::Signal)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
This module contains functions for interpreting and acting on wait
status values.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Proc/WaitStat.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15565 |21mr|perl-Regexp-Common-2013031301.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Regexp-Common
%define upstream_version 2013031301

Summary:	%{upstream_name} module for perl
Name:		perl-%{upstream_name}
Version:	%perl_convert_version 2013031301
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Regexp/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
%{upstream_name} module for perl provides commonly requested regular
expressions.

%files
%defattr(644,root,root,755)
%doc README TODO
%{_mandir}/man*/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15566 |21mr|perl-Reply-0.370.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Reply
%define upstream_version 0.37

Summary:	Tab completion for function names
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Config::INI::Reader::Ordered)
BuildRequires:	perl(Data::Dumper)
BuildRequires:	perl(Devel::LexAlias)
BuildRequires:	perl(Eval::Closure)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::HomeDir)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Term::ANSIColor)
BuildRequires:	perl(Term::ReadLine)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(base)
BuildRequires:	perl(overload)
BuildRequires:	perl(strict)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
NOTE: This is an early release, and implementation details of this module
are still very much in flux. Feedback is welcome!

Reply is a lightweight, extensible REPL for Perl. It is plugin-based (see
the Reply::Plugin manpage), and through plugins supports many advanced
features such as coloring and pretty printing, readline support, and
pluggable commands.

%files
%doc README Changes LICENSE META.yml META.json
%{_bindir}/reply
%{_mandir}/man3/*
%{_mandir}/man1/reply.1*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15567 |21mr|perl-Role-Tiny-2.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Role-Tiny
%define upstream_version 2.002004

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Minimal try/catch with proper localization of $@

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/H/HA/HAARG/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Fatal) >= 0.3.0
BuildRequires: perl(Test::More) >= 0.960.0
BuildRequires: perl-devel
BuildArch:  noarch

%description
'Role::Tiny' is a minimalist role composition tool.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15568 |21mr|perl-RPC-XML-0.800.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_apache_perl}%{?!build_apache_perl:%bcond_without apache_perl}

%define upstream_name	 RPC-XML
%define upstream_version 0.80

Name: 		perl-%{upstream_name}
Version: 	%perl_convert_version %{upstream_version}
Release:	2

Summary:	A set of classes for core data, message and XML handling

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/RPC/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	perl(Net::Server)
BuildRequires:  perl(LWP::UserAgent)
BuildArch:	noarch

%description
The RPC::XML package is a reference implementation of the XML-RPC
standard. As a reference implementation, it is geared more towards clarity and
readability than efficiency.

The package provides a set of classes for creating values to pass to the
constructors for requests and responses. These are lightweight objects, most
of which are implemented as tied scalars so as to associate specific type
information with the value. Classes are also provided for requests, responses,
faults (errors) and a parser based on the XML::Parser package from CPAN.

This module does not actually provide any transport implementation or
server basis. For these, see RPC::XML::Client and RPC::XML::Server,
respectively.

%if %{with apache_perl}
%package	Apache
Summary:	RPC server as an Apache/mod_perl content handler

Group:		Development/Perl

%description	Apache
RPC server as an Apache/mod_perl content handler.
%endif

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

# %check
# make tests don't work
# make test

%install
%makeinstall_std
%if %{without apache_perl}
rm -rf %{buildroot}/%{perl_vendorlib}/Apache
rm -rf %{buildroot}/%{_mandir}/man3/Apache*
%endif

%files
%doc ChangeLog README*
%{_bindir}/*
%{perl_vendorlib}/RPC
%{_mandir}/man3/*
%if %{with apache_perl}
%exclude %{_mandir}/man3/Apache*
%endif
%{_mandir}/man1/*

%if %{with apache_perl}
%files Apache
%doc README.apache2
%{perl_vendorlib}/Apache
%{_mandir}/man3/Apache*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15569 |21mr|perl-Safe-2.350.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Safe
%define upstream_version 2.35

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	8

License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Restrict eval'd code to safe subset of ops

Source0:	http://www.cpan.org/modules/by-module/Safe/Safe-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{upstream_name}

BuildRequires:	perl-devel
BuildRequires:  perl-Test-Simple

BuildArch:	noarch

%description
The Safe extension module allows the creation of compartments in which perl
code can be evaluated. Each compartment has

* a new namespace

  The "root" of the namespace (i.e. "main::") is changed to a different
  package and code evaluated in the compartment cannot refer to variables
  outside this namespace, even with run-time glob lookups and other tricks.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15570 |21mr|perl-Scope-Guard-0.210.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Scope-Guard
%define upstream_version 0.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Lexically scoped resource management 

License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Scope/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel

BuildArch:	noarch

%description
This module provides a convenient way to perform cleanup or other forms of
resource management at the end of a scope. It is particularly useful when
dealing with exceptions: the Scope::Guard constructor takes a reference to a
subroutine that is guaranteed to be called even if the thread of execution is
aborted prematurely. This effectively allows lexically-scoped "promises" to be
made that are automatically honoured by perl's garbage collector.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Scope
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15571 |21mr|perl-SGMLSpm-1.03ii-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:        	perl-SGMLSpm
Version:     	1.03ii
Release:     	22
Group:       	Publishing
Summary:     	Perl library for parsing the output of nsgmls

License:   	GPL
URL:         	http://www.uottawa.ca/~dmeggins
Requires:    	jade >= 1.2.1
Requires:	perl
BuildArch:	noarch
Source0:	ftp://cpan.perl.org/pub/perl/CPAN/modules/by-module/SGMLS/SGMLSpm-%{version}.tar.bz2

%description
Perl programs can use the SGMLSpm module to help convert SGML, HTML or XML
documents into new formats.

%prep
%setup -q -n SGMLSpm
find -type d | xargs chmod a+rx
find -type f | xargs chmod a+r

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{perl_vendorlib}
make install_system BINDIR=%{buildroot}%{_bindir} PERL5DIR=%{buildroot}%{perl_vendorlib}

%clean

%files 
%defattr (-,root,root)  
%doc BUGS COPYING ChangeLog DOC/ README TODO elisp
%{_bindir}/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15572 |21mr|perl-SOAP-Lite-1.270.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SOAP-Lite
%define upstream_version 1.27

%global __requires_exclude perl\\(SOAP::Transport::TCP\\)
%global __provides_exclude perl\\(LWP::Protocol\\)

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Client and server side SOAP implementation

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/SOAP/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Class::Inspector)
BuildRequires: perl(XML::Parser::Lite)
#BuildRequires: perl(Test::Warn)
BuildRequires: perl(HTTP::Daemon)
BuildRequires: perl(Compress::Zlib)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(IO::SessionData) >= 1.30.0
BuildRequires: perl(IO::Socket::SSL)
BuildRequires: perl(LWP::UserAgent)
BuildRequires: perl(MIME::Base64)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Task::Weaken)
BuildRequires: perl(Test)
BuildRequires: perl(Test::More)
BuildRequires: perl(URI)
BuildRequires: perl(XML::Parser) >= 2.230.0
BuildRequires: perl(constant)
BuildRequires: perl-devel
BuildArch:  noarch

%description
SOAP::Lite for Perl is a collection of Perl modules which provides a simple and
lightweight interface to the Simple Object Access Protocol (SOAP) both on
client and server side.

To learn about SOAP, go to http://www.soaplite.com/#LINKS for more
information.

This version of SOAP::Lite supports a subset of the SOAP 1.1
specification and has initial support for SOAP 1.2 specification.  See
http://www.w3.org/TR/SOAP for details.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find examples -type f | xargs perl -pi \
    -e 's|^#!perl -w|#!%__perl -w|;' \
    -e 's|^#!d:\\perl\\bin\\perl.exe ||;'
find examples -type f -name *.bat | xargs rm -f 

%build
perl Makefile.PL INSTALLDIRS=vendor --noprompt
%make

%check
# Requires Test::Warn which is in contrib
rm -f t/Issues/rt88915.t
%make test

%install
%makeinstall_std

%files
%doc Changes HACKING META.json META.yml MYMETA.yml README examples
%{_mandir}/*/*
%{_bindir}/*.pl
%{perl_vendorlib}/Apache
%{perl_vendorlib}/SOAP

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15573 |21mr|perl-Socket6-0.280.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Socket6
%define upstream_version 0.28

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary:	IPv6 related part of the C socket.h defines and structure manipulators
License:	BSD-like
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:    http://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-Test

%description
This module provides glue routines to the various IPv6 functions.

If you use the Socket6 module, be sure to specify "use Socket" as
well as "use Socket6".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}"
%make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc ChangeLog README
%{perl_vendorarch}/auto/Socket6
%{perl_vendorarch}/Socket6.pm
%{_mandir}/man3/Socket6.3pm*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15574 |21mr|perl-Socket-GetAddrInfo-0.220.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Socket-GetAddrInfo
%define upstream_version 0.22

%define debug_package %{nil}

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	RFC 2553's C<getaddrinfo> and C<getnameinfo>

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/P/PE/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::CBuilder)
BuildRequires: perl-ExtUtils-CChecker
BuildRequires: perl(Module::Build)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel
BuildRequires: perl-Test-Warn
#gw for getaddrinfo:
Conflicts: ruli-tools

%description
The RFC 2553 functions 'getaddrinfo' and 'getnameinfo' provide an
abstracted way to convert between a pair of host name/service name and
socket addresses, or vice versa. 'getaddrinfo' converts names into a set of
arguments to pass to the 'socket()' and 'connect()' syscalls, and
'getnameinfo' converts a socket address back into its host name/service
name pair.

These functions provide a useful interface for performing either of these
name resolution operation, without having to deal with IPv4/IPv6
transparency, or whether the underlying host can support IPv6 at all, or
other such issues. However, not all platforms can support the underlying
calls at the C layer, which means a dilema for authors wishing to write
forward-compatible code. Either to support these functions, and cause the
code not to work on older platforms, or stick to the older "legacy"
resolvers such as 'gethostbyname()', which means the code becomes more
portable.

This module attempts to solve this problem, by detecting at compiletime
whether the underlying OS will support these functions, and only compiling
the XS code if it can. At runtime, when the module is loaded, if the XS
implementation is not available, emulations of the functions using the
legacy resolver functions instead. The emulations support the same
interface as the real functions, and behave as close as is resonably
possible to emulate using the legacy resolvers. See below for details on
the limits of this emulation.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes LICENSE README
%{_mandir}/man3/*
%{_mandir}/man1/*
%{perl_vendorlib}/*
%{_bindir}/getaddrinfo
%{_bindir}/getnameinfo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15575 |21mr|perl-Sort-Naturally-1.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Sort-Naturally
%define upstream_version 1.03

Summary:	Sort lexically, but sort numeral parts numerically
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Sort/Sort-Naturally-1.03.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-Test
BuildArch:	noarch

%description
This module exports two functions, 'nsort' and 'ncmp'; they are used in
implementing my idea of a "natural sorting" algorithm. Under natural
sorting, numeric substrings are compared numerically, and other
word-characters are compared lexically.

%files
%doc ChangeLog README
%{_mandir}/man3/*
%{perl_vendorlib}/Sort

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15576 |21mr|perl-Sort-Versions-1.620.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version 1.62
%define upstream_name    Sort-Versions

Name:           perl-Sort-Versions
Version:        %perl_convert_version %{upstream_version}
Release:        3
License:        GPL or Artistic

Group:          Development/Perl
Summary:        A perl 5 module for sorting of revision-like numbers


Source0:        ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Sort/%{upstream_name}-%{upstream_version}.tar.gz
Url:            http://www.cpan.org
BuildRequires:  perl-devel
BuildArch:      noarch

%description 
Sort::Versions allows easy sorting of mixed non-numeric and
numeric strings, like the "version numbers" that many
shared library systems and revision control packages use.
This is quite useful if you are trying to deal with shared
libraries. It can also be applied to applications that
intersperse variable-width numeric fields within text.
Other applications can undoubtedly be found.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
CFLAGS="%{optflags}" echo | perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%doc README
%{perl_vendorlib}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15577 |21mr|perl-Specio-0.460.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Specio
%define upstream_version 0.46

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Type constraints and coercions for Perl
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://github.com/houseabsolute/%{upstream_name}
Source0:    https://github.com/houseabsolute/%{upstream_name}/archive/v%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(B)
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Load)
#BuildRequires: perl(Class::Method::Modifiers)
BuildRequires: perl(Devel::PartialDump)
BuildRequires: perl(Devel::StackTrace)
BuildRequires: perl(Eval::Closure)
BuildRequires: perl(Exporter)
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::File)
BuildRequires: perl(Lingua::EN::Inflect)
BuildRequires: perl(List::MoreUtils)
BuildRequires: perl(Module::Runtime)
BuildRequires: perl(Moo)
BuildRequires: perl(MRO::Compat)
# Moose is a circular BR 
#BuildRequires: perl(Moose)
#
BuildRequires: perl(Params::Util)
BuildRequires: perl(Role::Tiny)
BuildRequires: perl(Role::Tiny::With)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Storable)
BuildRequires: perl(Sub::Quote)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::Needs)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Try::Tiny)
BuildRequires: perl(base)
BuildRequires: perl(open)
BuildRequires: perl(namespace::autoclean)
BuildRequires: perl(overload)
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(utf8)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
The Specio distribution provides classes for representing
type constraints and coercion, along with syntax sugar 
for declaring them.

Note that this is not a proper type system for Perl. 
Nothing in this distribution will magically make the Perl
interpreter start checking a value's type on assignment
to a variable. In fact, there's no built-in way to apply
a type to a variable at all.

Instead, you can explicitly check a value against a type,
and optionally coerce values to that type.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15578 |21mr|perl-Spiffy-0.460.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Spiffy
%define upstream_version 0.46

Version:	%perl_convert_version %{upstream_version}
Name:		perl-%{module}
Release:	5
Summary:	Spiffy Perl Interface Framework For You


License:	GPL or Artistic
Group:		Development/Perl
Source0:	http://search.cpan.org/CPAN/authors/id/I/IN/INGY/Spiffy-%{upstream_version}.tar.gz
URL:		http://search.cpan.org/dist/%{module}/
BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
"Spiffy" is a framework and methodology for doing object oriented (OO)
programming in Perl. Spiffy combines the best parts of Exporter.pm,
base.pm, mixin.pm and SUPER.pm into one magic foundation class. It
attempts to fix all the nits and warts of traditional Perl OO, in a clean,
straightforward and (perhaps someday) standard way.

Spiffy borrows ideas from other OO languages like Python, Ruby, Java and
Perl 6. It also adds a few tricks of its own.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make 

%check
%__make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man*/*
%{perl_vendorlib}/Spiffy*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15579 |21mr|perl-Spreadsheet-ParseExcel-0.580.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(Jcode\\)

%define upstream_name		Spreadsheet-ParseExcel
%define upstream_version 0.58

Summary:	Spreadsheet::ParseExcel - Get information from Excel file
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Epoch:		1
License:	GPL
Group:		Office
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Spreadsheet/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(IO::Scalar)
BuildRequires:	perl(OLE::Storage_Lite)
BuildRequires:	perl-devel
Recommends:	perl(Jcode)
BuildArch:	noarch

%description
Spreadsheet::ParseExcel makes you to get information
from Excel95, Excel97, Excel2000 file.

%files
%doc Changes
%{perl_vendorlib}/Spreadsheet
%{_mandir}/*/*

#------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15580 |21mr|perl-Spreadsheet-WriteExcel-2.400.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Spreadsheet-WriteExcel
%define upstream_version 2.40

%if %{_use_internal_dependency_generator}
%global __requires_exclude ^perl\\((Win32(.*))
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Write cross-platform Excel binary file

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Spreadsheet/Spreadsheet-WriteExcel-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl-Parse-RecDescent
BuildRequires:	perl-OLE-Storage_Lite
BuildArch:	noarch
Requires:	perl-Parse-RecDescent

%description
This package contains the Spreadsheet::WriteExcel perl5 module which
can be used to write (not read) Excel95 binary spreadsheets. It supports
multiple workbook, cell formatting, formulas, hyperlinks and more.

Those spreadsheets will be compatible with Excel 5, 95, 97, 2000,
2002. The generated spreadsheets can also be imported in OpenOffice or
Gnumeric.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# fix perms
chmod 755 examples/*.pl external_charts/*.pl

%build
%__perl Makefile.PL INSTALLDIRS=vendor 
%make

%check
%make test

%install
%makeinstall_std

find %{buildroot} -name 'perllocal.pod' -o -name '.packlist' | xargs rm -f

rm -rf %{buildroot}%{perl_vendorlib}/Spreadsheet/WriteExcel/doc
rm -rf %{buildroot}%{perl_vendorlib}/Spreadsheet/WriteExcel/examples

%files
%doc README Changes examples external_charts
%{_bindir}/chartex
%{perl_vendorlib}/Spreadsheet
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15581 |21mr|perl-srpm-macros-1-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       perl-srpm-macros    
Version:    1
Release:    33%{?dist}
Group:      System/Base
Summary:    RPM macros for building Perl source package from source repository
License:    GPLv3+
Source0:    macros.perl-srpm
BuildArch:  noarch

%description
These RPM macros are used for building Perl source packages from source
repositories. They influence build-requires set into the source package.

%install
install -m 644 -D "%{SOURCE0}" \
    '%{buildroot}%{_rpmconfigdir}/macros.d/macros.perl-srpm'

%files
%{_rpmconfigdir}/macros.d/macros.perl-srpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15582 |21mr|perl-strictures-2.0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    strictures
%define upstream_version 2.000005

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Strictures perl module

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Test::More)
Provides:	perl(strictures)
BuildArch:	noarch

%description
I've been writing the equivalent of this module at the top of my code for
about a year now. I figured it was time to make it shorter.

Things like the importer in 'use Moose' don't help me because they turn
warnings on but don't make them fatal - which from my point of view is
useless because I want an exception to tell me my code isn't warnings
clean.

Any time I see a warning from my code, that indicates a mistake.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15583 |21mr|perl-String-CRC32-1.500.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  String-CRC32
%define upstream_version 1.5

Name: 		perl-%{module}
Version: 	%perl_convert_version %{upstream_version}
Release: 	8
Summary: 	Perl interface for cyclic redundency check generation

License: 	GPL or Artistic
Group: 		Development/Perl
Source:		ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/String/String-CRC32-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{module}
BuildRequires:	perl-devel

%description 
This packages provides a perl module to generate checksums from strings
and from files.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make CFLAGS="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/*/*
%{perl_vendorarch}/String
%{perl_vendorarch}/auto/String

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15584 |21mr|perl-String-ShellQuote-1.40.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    String-ShellQuote
%define upstream_version 1.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    14

Summary:	Quote strings for passing through the shell

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/R/RO/ROSCH/%{upstream_name}-%{upstream_version}.tar.gz

BuildArch:	noarch
BuildRequires:  perl-devel

%description
This perl module contains some functions which are useful for quoting strings
which are going to pass through the shell or a shell-like object.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc README Changes
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/String/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15585 |21mr|perl-Struct-Dumb-0.120.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Struct-Dumb
%define upstream_version 0.12

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Make simple lightweight record-like structures
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    https://cpan.metacpan.org/authors/id/P/PE/PEVANS/Struct-Dumb-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build)
BuildRequires: perl(File::Basename)
BuildRequires: perl(File::Spec)

BuildArch: noarch

%description
'Struct::Dumb' creates record-like structure types, similar to the 'struct'
keyword in C, C++ or C#, or 'Record' in Pascal. An invocation of this
module will create a construction function which returns new object
references with the given field values. These references all respond to
lvalue methods that access or modify the values stored.

It's specifically and intentionally not meant to be an object class. You
cannot subclass it. You cannot provide additional methods. You cannot apply
roles or mixins or metaclasses or traits or antlers or whatever else is in
fashion this week.

On the other hand, it is tiny, creates cheap lightweight array-backed
structures, uses nothing outside of core. It's intended simply to be a
slightly nicer way to store data structures, where otherwise you might be
tempted to abuse a hash, complete with the risk of typoing key names. The
constructor will 'croak' if passed the wrong number of arguments, as will
attempts to refer to fields that don't exist.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL --installdirs=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%files
%doc Changes META.json README LICENSE META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15586 |21mr|perl-Sub-Exporter-0.987.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  Sub-Exporter
%define upstream_version 0.987

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	A sophisticated exporter for custom-built routines

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Sub/Sub-Exporter-%{upstream_version}.tar.gz
BuildRequires:	perl(Data::OptList)
BuildRequires:	perl-Test-Simple
BuildRequires:	perl-devel
BuildArch:	noarch

%description 
This module allows to (re)name a sub.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/Sub
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15587 |21mr|perl-Sub-Exporter-Progressive-0.1.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-Exporter-Progressive
%define upstream_version 0.001013

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Only use Sub::Exporter if you need it

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sub/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl-devel
BuildArch:  noarch

%description
the Sub::Exporter manpage is an incredibly powerful module, but with that
power comes great responsibility, er- as well as some runtime penalties.
This module is a 'Sub::Exporter' wrapper that will let your users just use
the Exporter manpage if all they are doing is picking exports, but use
'Sub::Exporter' if your users try to use 'Sub::Exporter''s more advanced
features features, like renaming exports, if they try to use them.

Note that this module will export '@EXPORT' and '@EXPORT_OK' package
variables for 'Exporter' to work. Additionally, if your package uses
advanced 'Sub::Exporter' features like currying, this module will only ever
use 'Sub::Exporter', so you might as well use it directly.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15588 |21mr|perl-Sub-Identify-0.140.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Sub-Identify
%define upstream_version 0.14

Summary:	Retrieve names of code references
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Sub/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple

%description
Sub::Identify allows you to retrieve the real name of code references. For
this, it uses perl's introspection mechanism, provided by the B module.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorarch}/Sub
%{perl_vendorarch}/auto/Sub
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15589 |21mr|perl-Sub-Install-0.928.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  Sub-Install
%define upstream_version 0.928

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Install subroutines into packages easily

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Sub/Sub-Install-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description 
This module makes it easy to install subroutines into packages without the
unslightly mess of no strict or typeglobs lying about where just anyone can see
them.

%prep
%setup -q -n %{module}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/Sub
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15590 |21mr|perl-Sub-Name-0.210.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-Name
%define upstream_version 0.21

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary: 	Allows to (re)name a sub
License: 	GPL+ or Artistic
Group: 		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sub/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Devel::CheckBin)
BuildRequires: perl-Test-Simple

%description 
This module allows to (re)name a sub.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%clean 

%files
%doc Changes README
%{perl_vendorarch}/Sub
%{perl_vendorarch}/auto/Sub
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15591 |21mr|perl-Sub-Quote-2.6.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-Quote
%define upstream_version 2.006006

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    Defer generation of subroutines until they are first called
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Sub/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildArch: noarch

%description
This package provides performant ways to generate subroutines from strings.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15592 |21mr|perl-Sub-Uplevel-0.280.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Sub-Uplevel
%define upstream_version 0.2800

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Apparently run a function in a higher stack frame

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0:    ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Sub/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Test::More)
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description 
Apparently run a function in a higher stack frame.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std
rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%check
%make test

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README examples
%{perl_vendorlib}/Sub
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15593 |21mr|perl-SUPER-1.201.411.170-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    SUPER
%define upstream_version 1.20141117

Summary:	Internal class to access superclass methods
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module//%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:  perl(CPAN::Meta)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires:	perl(Scalar::Util) >= 1.200.0
BuildRequires:	perl(Sub::Identify) >= 0.30.0
BuildRequires:	perl(Test::Simple) >= 0.610.0
BuildArch:	noarch

%description
When subclassing a class, you occasionally want to dispatch control to the
superclass -- at least conditionally and temporarily. The Perl syntax for
calling your superclass is ugly and unwieldy:

    $self->SUPER::method(@_);

especially when compared to its Ruby equivalent.

%files
%doc Changes LICENSE META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15594 |21mr|perl-Switch-2.170.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Switch
%define upstream_version 2.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	A switch statement for Perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/C/CH/CHORNY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Filter::Util::Call)
BuildRequires: perl(Text::Balanced) >= 2.0.0
BuildRequires: perl(base)

BuildArch:	noarch

%description
The Switch.pm module implements a generalized case mechanism that covers
most (but not all) of the numerous possible combinations of switch and case
values described above.

The module augments the standard Perl syntax with two new control
statements: 'switch' and 'case'. The 'switch' statement takes a single
scalar argument of any type, specified in parentheses. 'switch' stores this
value as the current switch value in a (localized) control variable. The
value is followed by a block which may contain one or more Perl statements
(including the 'case' statement described below). The block is
unconditionally executed once the switch value has been cached.

A 'case' statement takes a single scalar argument (in mandatory parentheses
if it's a variable; otherwise the parens are optional) and selects the
appropriate type of matching between that argument and the current switch
value. The type of matching used is determined by the respective types of
the switch value and the 'case' argument, as specified in Table 1. If the
match is successful, the mandatory block associated with the 'case'
statement is executed.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15595 |21mr|perl-Sys-Hostname-Long-1.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Sys-Hostname-Long

Name:		perl-%{module}
Version:	1.4
Release:	16
Summary:	Try every conceivable way to get full hostname

License:	GPL or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{module}/
Source0:	%{module}-%{version}.tar.bz2
Patch0:		Sys-Hostname-Long-1.4-no_win32.diff
BuildArch:	noarch
BuildRequires:	perl-devel
BuildRequires:	perl-Test
%description
How to get the host full name in perl on multiple operating systems.

%prep

%setup -q -n %{module}-%{version}
%patch0 -p0

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%{perl_vendorlib}/Sys/Hostname/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15596 |21mr|perl-Sys-Virt-6.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Sys-Virt

Summary:	Interface to libvirt virtual machine management API
Name:		perl-%{upstream_name}
Version:	6.3.0
Release:	2
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:        https://cpan.metacpan.org/authors/id/D/DA/DANBERR/Sys-Virt-v%{version}.tar.gz
BuildRequires:	pkgconfig(libvirt) >= %{version}
BuildRequires:	perl(XML::XPath)
BuildRequires:	perl-devel
BuildRequires:  perl(Module::Build)
BuildRequires:  perl-ExtUtils-CBuilder
BuildRequires:	gettext-devel

%description
Sys::Virt is an interface to libvirt virtual machine management API.
The Sys::Virt::Domain module represents a guest domain managed by
the virtual machine monitor.

%files
%doc AUTHORS README LICENSE
%{perl_vendorarch}/Sys
%{perl_vendorarch}/auto/Sys
%{_mandir}/man3/Sys::Virt*3pm*

#--------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-v%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15597 |21mr|perl-Task-Weaken-1.60.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Task-Weaken
%define upstream_version 1.06

Summary:	Ensure that a platform has weaken support
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Task/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
One recurring problem in modules that use the Scalar::Util manpage's
'weaken' function is that it is not present in the pure-perl variant.

While this isn't necesarily always a problem in a straight CPAN-based Perl
environment, some operating system distributions only include the pure-Perl
versions, don't include the XS version, and so weaken is then "missing"
from the platform, *despite* passing a dependency on the Scalar::Util
manpage successfully.

Most notably this is RedHat Linux at time of writing, but other come and go
and do the same thing, hence "recurring problem".

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15598 |21mr|perl-Template-Toolkit-3.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname Template-Toolkit
%define modver 3.009

%global __requires_exclude perl\\(CGI\\)

Summary:	%{modname} module for perl
Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	1
License:	GPL
Group:		Development/Perl
URL:		http://www.template-toolkit.org
Source0:	http://www.cpan.org/modules/by-module/Template/%{modname}-%{modver}.tar.gz
BuildRequires:	perl-devel >= 0:5.600
BuildRequires:	perl(AppConfig) >= 1.56
BuildRequires:	perl(File::Spec) >= 0.8
BuildRequires:	perl(File::Temp) >= 0.12

%description
The Template Toolkit is a collection of modules which implement a
fast, flexible, powerful and extensible template processing system.
It was originally designed and remains primarily useful for generating
dynamic web content, but it can be used equally well for processing
any other kind of text based documents: HTML, XML, POD, PostScript,
LaTeX, and so on.

%files
%doc README.md Changes TODO HACKING
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorarch}/Template*
%{perl_vendorarch}/auto/Template

#----------------------------------------------------------------------------

%prep
%setup -q -n %{modname}-%{modver}

# perl path hack
find ./ -type f | \
    xargs perl -pi -e 's|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|'

%build
perl Makefile.PL \
    TT_XS_ENABLE="y" \
    TT_XS_DEFAULT="y" \
    INSTALLDIRS=vendor </dev/null
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15599 |21mr|perl-Term-ReadKey-2.370.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_version 2.37

Summary:	Term::ReadKey Perl module

Name:		perl-Term-ReadKey
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL
Group:		Development/Perl
Source0:	http://search.cpan.org/CPAN/authors/id/J/JS/JSTOWE/TermReadKey-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/TermReadKey/
BuildRequires:	perl-devel
BuildRequires:	perl-List-MoreUtils >= 0.320.0-3

%description
This module, ReadKey, provides ioctl control for terminals so the
input modes can be changed (thus allowing reads of a single character
at a time), and also provides non-blocking reads of stdin, as well as
several other terminal related features, including
retrieval/modification of the screen size, and retrieval/modification
of the control characters.

%prep
%setup -qn TermReadKey-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
# Parallel build is broken - https://rt.cpan.org/Public/Bug/Display.html?id=100932
make

%install
%makeinstall_std

%files
%doc README
%{perl_vendorarch}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15600 |21mr|perl-Term-ReadLine-Gnu-1.350.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-ReadLine-Gnu
%define upstream_version 1.35

Summary:	Perl extension for the GNU Readline/History Library
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)

%description
This is an implementation of the interface to the GNU Readline
Library. This module gives you input line editing facility, input
history management facility, word completion facility, etc. It
uses the real GNU Readline Library. And this module has the
interface with the almost all variables and functions which are
documented in the GNU Readline/History Library. So you can program
your custom editing function, your custom completion function, and
so on with Perl. This may be useful for prototyping before
programming with C.

%files
%doc README
%{perl_vendorarch}/Term
%{perl_vendorarch}/auto/Term
%{_mandir}/*/*
%{_bindir}/perlsh

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 README
# Fix bogus dependency on /usr/local/bin/perl:
perl -pi -e 's!/usr/local/bin/perl!/usr/bin/perl!g' Gnu/{euc_jp,XS}.pm

%build
perl Makefile.PL INSTALLDIRS=vendor
%make "CFLAGS=%{optflags}"

%install
%makeinstall_std

%check
if [ -n "$DISPLAY" ] ; then
	TERM=linux make test
else
	echo "***************************************************"
	echo " make test not done because DISPLAY var is not set "
	echo "***************************************************"
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15601 |21mr|perl-Term-Size-0.211.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Size
%define upstream_version 0.211

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perl extension for retrieving terminal size

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:    	https://cpan.metacpan.org/authors/id/F/FE/FERREIRA/Term-Size-%{upstream_version}.tar.gz

BuildRequires: perl-devel

%description
Term::Size is a Perl module which provides a straightforward way to get
the size of the terminal (or window) on which a script is running.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes README
%dir %{perl_vendorarch}/auto/Term/Size
%{perl_vendorarch}/auto/Term/Size/Size.so
%{perl_vendorarch}/Term/Size.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15602 |21mr|perl-Term-Size-Any-0.2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Term-Size-Any
%define upstream_version 0.002

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Retrieve terminal size

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Term::Size::Perl)
BuildRequires: perl-devel

BuildArch: noarch

%description
This is a unified interface to retrieve terminal size. It loads one module
of a list of known alternatives, each implementing some way to get the
desired terminal information. This loaded module will actually do the job
on behalf of 'Term::Size::Any'.

Thus, 'Term::Size::Any' depends on the availability of one of these
modules:

    Term::Size           (soon to be supported)
    Term::Size::Perl
    Term::Size::ReadKey  (soon to be supported)
    Term::Size::Win32

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15603 |21mr|perl-Term-Size-Perl-0.29.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname   Term-Size-Perl
%define upstream_version    0.029

Name:       perl-%{realname}
Version:    %perl_convert_version %{upstream_version}
Release:    9
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Probes some machine configuration parameters for Term::Size::Perl's sake

Source:     http://www.cpan.org/modules/by-module/Term/%{realname}-%{upstream_version}.tar.gz
Url:        http://search.cpan.org/dist/%{realname}
BuildRequires: perl-devel
BuildRequires: perl(ExtUtils::CBuilder)

BuildArch: noarch

%description
Yet another implementation of 'Term::Size'. Now in pure Perl, with the
exception of a C probe run on build time.

FUNCTIONS
    * *chars*

          ($columns, $rows) = chars($h);
          $columns = chars($h);

%prep
%setup -q -n %{realname}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15604 |21mr|perl-Term-Table-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Term-Table
%define upstream_version 0.015

Name:		perl-Term-Table
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Format a header and rows into a table
Group:		Development/Perl
License:	GPL+ or Artistic
URL:		http://search.cpan.org/dist/Term-Table/
Source0:	http://www.cpan.org/authors/id/E/EX/EXODIST/Term-Table-%{upstream_version}.tar.gz
BuildArch:	noarch

BuildRequires:  make
BuildRequires:  perl
BuildRequires:  perl(ExtUtils::MakeMaker) >= 6.76
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
# Run-time:
BuildRequires:  perl(Importer)
BuildRequires:  perl(Carp)
BuildRequires:  perl(List::Util)
BuildRequires:  perl(Scalar::Util)
# Optional run-time:
# Term::ReadKey 2.32 not used if Term::Size::Any is available
# Prefer Term::Size::Any over Term::ReadKey
BuildRequires:  perl(Term::Size::Any)
BuildRequires:  perl(Unicode::GCString)
# Tests:
BuildRequires:  perl(base)
BuildRequires:  perl(Test2::API)
BuildRequires:  perl(Test2::Tools::Tiny)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(utf8)
Requires:       perl(Importer) >= 0.024
Recommends:       perl(Term::ReadKey) 
# Prefer Term::Size::Any over Term::ReadKey
Recommends:     perl(Term::Size::Any) >= 0.002
Recommends:     perl(Unicode::GCString)

%description
This Perl module is able to format rows of data into tables.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor NO_PACKLIST=1
%make

%install
%makeinstall_std

%check
make test

%files
%doc Changes README LICENSE
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15605 |21mr|perl-Term-UI-0.460.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Term-UI
%define upstream_version 0.46

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Term::ReadLine UI made easy

License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Term/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Log::Message::Simple)
BuildArch:	noarch

%description
"Term::UI" is a transparent way of eliminating the overhead of having to format
a question and then validate the reply, informing the user if the answer was
not proper and re-issuing the question.

Simply give it the question you want to ask, optionally with choices the user
can pick from and a default and "Term::UI" will DWYM.

For asking a yes or no question, there's even a shortcut.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README
%{perl_vendorlib}/Term/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15606 |21mr|perl-Test-Base-0.890.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Test-Base
%define upstream_version 0.89

%if %{_use_internal_dependency_generator}
%global __requires_exclude Module::Install.*
%else
%define _requires_exceptions Module::Install
%endif

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:	A Data Driven Testing Framework

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:    ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl(Spiffy) >= 0.29
BuildRequires:  perl(Test::More) >= 0.62
BuildRequires:  perl(Test::Deep)
BuildRequires:  perl-devel
BuildArch:	noarch

%description
Perl gives you a standard way to run tests with Test::Harness, and basic
testing primitives with Test::More. After that you are pretty much on your own
to develop a testing framework and philosophy. Test::More encourages you to
make your own framework by subclassing Test::Builder, but that is not trivial.
Test::Base gives you a way to write your own test framework base class that is
trivial.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%__make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Test
# %{perl_vendorlib}/Module
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15607 |21mr|perl-Test-ClassAPI-1.70.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-ClassAPI
%define upstream_version 1.07

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Test::ClassAPI - Provides basic first-pass API testing for large class trees

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Class::Inspector) >= 1.06
BuildRequires:	perl(Config::Tiny) >= 2.0
BuildRequires:	perl(Params::Util)
BuildRequires:	perl-Test-Simple
BuildRequires:	perl-devel
BuildArch:	noarch

%description
For many APIs with large numbers of classes, it can be very useful to be
able to do a quick once-over to make sure that classes, methods, and
inheritance is correct, before doing more comprehensive testing. This
module aims to provide such a capability.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Test/ClassAPI.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15608 |21mr|perl-Test-CleanNamespaces-0.180.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-CleanNamespaces
%define upstream_version 0.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Check for uncleaned imports
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(File::Find::Rule::Perl)
BuildRequires:	perl(Module::Runtime)
BuildRequires:	perl(Package::Stash)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Sub::Identify)
BuildRequires:	perl(Test::Deep)
BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(Test::Tester)
BuildRequires:	perl(Test::Warnings)
BuildRequires:	perl(namespace::clean)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Check for uncleaned imports.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15609 |21mr|perl-Test-CPAN-Meta-0.250.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-CPAN-Meta
%define upstream_version 0.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Validation of META.yml specification elements

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Parse::CPAN::Meta)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module was written to ensure that a META.yml file, provided with a
standard distribution uploaded to CPAN, meets the specifications that are
slowly being introduced to module uploads, via the use of package makers
and installers such as the ExtUtils::MakeMaker manpage, the Module::Build
manpage and the Module::Install manpage.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15610 |21mr|perl-Test-Deep-1.128.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Test-Deep
%define upstream_version 1.128

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:	Extremely flexible deep comparison

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:	perl-devel
BuildRequires:	perl(Test::NoWarnings)
BuildRequires:	perl(Test::Tester)
BuildArch:	noarch

%description
Test::Deep gives you very flexible ways to check that the result you got is the
result you were expecting. At it's simplest it compares two structures by going
through each level, ensuring that the values match, that arrays and hashes have
the same elements and that references are blessed into the correct class. It
also handles circular data structures without getting caught in an infinite
loop.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%doc  README TODO
%{_mandir}/*/*
%{perl_vendorlib}/Test/Deep
%{perl_vendorlib}/Test/Deep.pm
# %{perl_vendorlib}/Test/Deep.pod

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15611 |21mr|perl-Test-Differences-0.640.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Test-Differences
%define upstream_version 0.64

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Test strings and data structures and show differences if not ok 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-Text-Diff
BuildRequires:	perl(Capture::Tiny)
BuildRequires:  perl(Test::More)
BuildRequires:  perl(Test)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
When the code you're testing returns multiple lines, records or data structures
and they're just plain wrong, an equivalent to the Unix diff utility may be
just what's needed.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15612 |21mr|perl-Test-Exception-0.430.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Exception
%define upstream_version 0.43

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Test exception based code

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Builder) >= 0.13
BuildRequires:	perl(Test::Harness) >= 2.03
BuildRequires:	perl(Test::More) >= 0.44
BuildRequires:	perl(Sub::Uplevel) >= 0.06
BuildRequires:	perl(Test::Builder::Tester) >= 1.01
BuildArch:		noarch

%description 
This module provides a few convenience methods for testing
exception-based code. It is built with Test::Builder and
plays happily with Test::Simple, Test::More and friends.

If you are not familiar with Test::Simple or Test::More
now would be the time to go take a look.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std
rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc Changes 
%{perl_vendorlib}/Test
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15613 |21mr|perl-Test-FailWarnings-0.8.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-FailWarnings
%define upstream_version 0.008

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Add test failures if warnings are caught

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Capture::Tiny) >= 0.120.0
BuildRequires: perl(Carp)
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(File::Temp)
BuildRequires: perl(IO::Handle)
BuildRequires: perl(IPC::Open3)
BuildRequires: perl(List::Util)
BuildRequires: perl(Test::More) >= 0.860.0
BuildRequires: perl(constant)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This module hooks '$SIG{__WARN__}' and converts warnings to the Test::More
manpage's 'fail()' calls. It is designed to be used with 'done_testing',
when you don't need to know the test count in advance.

Just as with the Test::NoWarnings manpage, this does not catch warnings if
other things localize '$SIG{__WARN__}', as this is designed to catch
_unhandled_ warnings.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CONTRIBUTING Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15614 |21mr|perl-Test-Fatal-0.14.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Fatal
%define upstream_version 0.014

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
Summary:	Incredibly simple helpers for testing code with exceptions
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Carp)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Try::Tiny)
BuildRequires:	perl(overload)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Test::Fatal is an alternative to the popular the Test::Exception manpage.
It does much less, but should allow greater flexibility in testing
exception-throwing code with about the same amount of typing.

It exports one routine by default: 'exception'.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15615 |21mr|perl-Test-File-1.993.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-File
%define upstream_version 1.993

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Test file attributes

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/B/BD/BDFOY/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(File::Spec::Functions)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(Test::utf8)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)

BuildArch:	noarch

%description
This modules provides a collection of test utilities for file
attributes.

%prep
%setup -qn %{upstream_name}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README.* LICENSE META.yml META.json
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15616 |21mr|perl-Test-File-ShareDir-1.0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-File-ShareDir
%define upstream_version 1.000005

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    5

Summary:    Object Oriented ShareDir creation for modules
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl-devel
BuildRequires: perl(Carp)
BuildRequires: perl(Class::Tiny)
BuildRequires: perl(Cwd)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Copy::Recursive)
BuildRequires: perl(File::ShareDir)
BuildRequires: perl(File::Spec)
BuildRequires: perl(FindBin)
BuildRequires: perl(Path::Tiny)
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)

BuildArch: noarch

%description
This module only has support for creating 'new' style share dirs and are
NOT compatible with old File::ShareDirs.

For this reason, unless you have File::ShareDir 1.00 or later installed,
this module will not be usable by you.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc LICENSE Changes README META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15617 |21mr|perl-Test-Identity-0.10.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Identity
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	9

Summary:	Assert the referential identity of a reference

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Module::Build::Compat)
BuildArch:	noarch

%description
This module provides a single testing function, 'identical'. It asserts
that a given reference is as expected; that is, it either refers to the
same object or is 'undef'. It is similar to 'Test::More::is' except that it
uses 'refaddr', ensuring that it behaves correctly even if the references
under test are objects that overload stringification or numification.

It also provides better diagnostics if the test fails:

 $ perl -MTest::More=tests,1 -MTest::Identity -e'identical [], {}'
 1..1
 not ok 1
 #   Failed test at -e line 1.
 # Expected an anonymous HASH ref, got an anonymous ARRAY ref
 # Looks like you failed 1 test of 1.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc META.yml Changes LICENSE README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15618 |21mr|perl-Test-Inline-2.213.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module Test-Inline
%define upstream_version 2.213

Summary:	Inlining your tests next to the code being tested
Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}
Source:		http://www.cpan.org/modules/by-module/Test/Test-Inline-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl-prefork
BuildRequires:	perl(Algorithm::Dependency) >= 1.02
BuildRequires:	perl(Class::Autouse) >= 1.15
BuildRequires:	perl(Config::Tiny) >= 2.00
BuildRequires:	perl(File::chmod)
BuildRequires:	perl(File::Spec) >= 0.82
BuildRequires:	perl(File::Find::Rule) >= 0.26
BuildRequires:	perl(File::Flat) >= 0.95
BuildRequires:	perl(File::Remove)
BuildRequires:	perl(File::Slurp) >= 9999.04
BuildRequires:	perl(Getopt::Long) >= 2.34
BuildRequires:	perl(List::Util) >= 1.11
#BuildRequires:	perl(Pod::Tests) >= 0.18 # Contrib
BuildRequires:	perl(Test::ClassAPI) >= 1.02
BuildRequires:	perl(Test::More) >= 0.47
BuildRequires:	perl(Test::Script)
BuildRequires:	perl(inc::Module::Install)
BuildArch:	noarch

%description
Embedding tests allows tests to be placed near the code it's
testing. This is a nice supplement to the traditional .t files.
It's like XUnit, Perl-style.

%files
%doc Changes README
%{_bindir}/inline2test
%{perl_vendorlib}/Test
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{upstream_version}

%build
chmod 644 Changes README
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15619 |21mr|perl-Test-Inter-1.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Inter
%define upstream_version 1.09

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Framework for more readable interactive test scripts
Group:		Development/Perl
License:	GPL+ or Artistic
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(File::Basename)
BuildRequires:	perl(IO::File)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Pod::Coverage)
BuildRequires:	perl(File::Find::Rule)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This is another framework for writing test scripts. It is loosely inspired
by Test::More, and has most of it's functionality, but it is not a drop-in
replacement.

Test::More (and other existing test frameworks) suffer from two weaknesses,
both of which have prevented me from ever using them:

   None offer the ability to access specific tests in
   a reasonably interactive fashion

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README LICENSE  META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15620 |21mr|perl-Test-LeakTrace-0.150.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-LeakTrace
%define upstream_version 0.15

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    8

Summary:    A LeakTrace interface for whole scripts
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::More)
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl-devel

%description
'Test::LeakTrace' provides several functions that trace memory leaks. This
module scans arenas, the memory allocation system, so it can detect any
leaked SVs in given blocks.

*Leaked SVs* are SVs which are not released after the end of the scope they
have been created. These SVs include global variables and internal caches.
For example, if you call a method in a tracing block, perl might prepare a
cache for the method. Thus, to trace true leaks, 'no_leaks_ok()' and
'leaks_cmp_ok()' executes a block more than once.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15621 |21mr|perl-Test-LongString-0.170.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Test-LongString
%define upstream_version 0.17

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Perl module to test strings for equality

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
This module provides some drop-in replacements for the string comparison
functions of Test::More, but which are more suitable when you test against long
strings. If you've ever had to search for text in a multi-line string like an
HTML document, or find specific items in binary data, this is the module for
you.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Test/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15622 |21mr|perl-Test-Manifest-2.20.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Test-Manifest
%define upstream_version 2.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	Interact with a t/test_manifest file

License:	GPL or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source:		http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-Test-Pod
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Test::Harness assumes that you want to run all of the .t files in the
t/ directory in ascii-betical order during make test unless you say
otherwise.  This leads to some interesting naming schemes for test
files to get them in the desired order. This interesting names ossify
when they get into source control, and get even more interesting as
more tests show up.

Test::Manifest overrides the default behaviour by replacing the
test_via_harness target in the Makefile.  Instead of running at the
t/*.t files in ascii-betical order, it looks in the t/test_manifest
file to find out which tests you want to run and the order in which
you want to run them.  It constructs the right value for MakeMaker to
do the right thing.

%prep
%setup -q -n %{upstream_name}-%{upstream_version} 

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Test
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15623 |21mr|perl-Test-Memory-Cycle-1.60.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-Memory-Cycle
%define upstream_version 1.06

Summary:	Check for memory leaks and circular memory references
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(Devel::Cycle) >= 1.07
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Simple) >= 0.62
Requires:	perl(Devel::Cycle) >= 1.07
BuildArch: 	noarch

%description 
Perl's garbage collection has one big problem: Circular references can't get
cleaned up. A circular reference can be as simple as two objects that refer to
each other. Test::Memory::Cycle is built on top of Devel::Cycle to give you an
easy way to check for these circular references.

%files
%doc Changes
%{perl_vendorlib}/Test
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15624 |21mr|perl-Test-Memory-Cycle-1.60.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-Memory-Cycle
%define upstream_version 1.06

Summary:	Check for memory leaks and circular memory references
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(Devel::Cycle) >= 1.07
BuildRequires:	perl(Getopt::Long)
BuildRequires:	perl(PadWalker)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Simple) >= 0.62
Requires:	perl(Devel::Cycle) >= 1.07
BuildArch:	noarch

%description
Perl's garbage collection has one big problem: Circular references can't get
cleaned up. A circular reference can be as simple as two objects that refer to
each other. Test::Memory::Cycle is built on top of Devel::Cycle to give you an
easy way to check for these circular references.

%files
%doc Changes
%{perl_vendorlib}/Test
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15625 |21mr|perl-Test-Metrics-Any-0.10.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Metrics-Any
%define upstream_version 0.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Metrics::Any - abstract collection of monitoring metrics

License:	Perl_5
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/authors/id/P/PE/PEVANS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More) >= 0.880.0
BuildRequires: perl(Module::Build)
BuildRequires: perl(Metrics::Any)

BuildArch:	noarch

%description
Provides a central location for modules to report monitoring metrics, 
such as counters of the number of times interesting events have happened, 
and programs to collect up and send those metrics to monitoring services.

Inspired by Log::Any, this module splits the overall problem into two sides. 
Modules wishing to provide metrics for monitoring purposes can use 
the use Metrics::Any statement to obtain a collector into which they 
can report metric events. By default this collector doesn't actually 
do anything, so modules can easily use it without adding extra specific 
dependencies for specific reporting.

A program using one or more such modules can apply a different policy 
and request a particular adapter implementation in order to actually 
report these metrics to some external system, by using the use 
Metrics::Any::Adapter statement.

This separation of concerns allows module authors to write code 
which will report metrics without needing to care about the exact 
mechanism of that reporting (as well as to write code which does 
not itself depend on the code required to perform that reporting).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL installdirs=vendor
./Build

%check
./Build test

%install
./Build install destdir=%{buildroot}

%files
%doc Changes LICENSE README META.json META.yml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15626 |21mr|perl-Test-MockObject-1.202.1.220-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-MockObject
%define upstream_version 1.20200122

Summary:	Perl extension for emulating troublesome interfaces
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(CPAN)
BuildRequires:	perl(Devel::Peek)
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::More) >= 0.980
BuildRequires:	perl(Test::Warn) >= 0.230
BuildRequires:	perl(UNIVERSAL::can)
BuildRequires:	perl(UNIVERSAL::isa)
BuildArch:	noarch

%description 
It's a simple program that doesn't use any other modules, and those are easy to
test. More often, testing a program completely means faking up input to another
module, trying to coax the right output from something you're not supposed to
be testing anyway.

Testing is a lot easier when you can control the entire environment. With
Test::MockObject, you can get a lot closer.

Test::MockObject allows you to create objects that conform to particular
interfaces with very little code. You don't have to reimplement the behavior,
just the input and the output.

%files
%doc Changes README LICENSE META.yml
%{perl_vendorlib}/Test
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

#%%check
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15627 |21mr|perl-Test-MockRandom-1.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname   Test-MockRandom
%define upstream_version 1.01

Name:       perl-%{realname}
Version:    %perl_convert_version %{upstream_version}
Release:    7
License:    GPL or Artistic
Group:      Development/Perl
Summary:    Override randoms with non-random behavior

Source:     http://www.cpan.org/modules/by-module/Test/Test-MockRandom-%{upstream_version}.tar.gz
Url:        http://search.cpan.org/dist/%{realname}
BuildRequires: perl-devel
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-Test-Simple

BuildArch: noarch

%description
This perhaps ridiculous-seeming module was created to test routines that
manipulate random numbers by providing a known output from 'rand'. Given a
list of seeds with 'srand', it will return each in turn. After seeded
random numbers are exhausted, it will always return 0. Seed numbers must be
of a form that meets the expected output from 'rand' as called with no
arguments -- i.e. they must be between 0 (inclusive) and 1 (exclusive). In
order to facilitate generating and testing a nearly-one number, this module
exports the function 'oneish', which returns a number just fractionally
less than one. 

Depending on how this module is called with 'use', it will export 'rand' to
a specified package (e.g. a class being tested) effectively overriding and
intercepting calls in that package to the built-in 'rand'. It can also
override 'rand' in the current package or even globally. In all of these
cases, it also exports 'srand' and 'oneish' to the current package in order
to control the output of 'rand'. See the /USAGE manpage for details.

Alternatively, this module can be used to generate objects, with each
object maintaining its own distinct seed array.

%prep
%setup -q -n %{realname}-%{upstream_version} 

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15628 |21mr|perl-Test-Needs-0.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Needs
%define upstream_version 0.002005

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2
Summary:    Skip tests when modules not available
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl(Test::More) >= 1.1.9
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test2::Event) >= 1.302.30

BuildArch: noarch

%description
Skip test scripts if modules are not available. The requested modules will
be loaded, and optionally have their versions checked. If the module is
missing, the test script will be skipped. Modules that are found but fail
to compile will exit with an error rather than skip.

If used in a subtest, the remainder of the subtest will be skipped.

Skipping will work even if some tests have already been run, or if a plan
has been declared.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15629 |21mr|perl-Test-NoWarnings-1.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 Test-NoWarnings
%define upstream_version 1.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Make sure you didn't emit any warnings while testing

License:	LGPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test::Tester) >= 0.103

BuildArch:	noarch

%description
In general, your tests shouldn't produce warnings. This modules causes
any warnings to be captured and stored. It automatically adds an extra
test that will run when your script ends to check that there were no
warnings. If there were any warings, the test will give a "not ok" and
diagnostics of where, when and what the warning was, including a stack
trace of what was going on when the it occurred.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README
%{_mandir}/*/*
%{perl_vendorlib}/Test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15630 |21mr|perl-Test-Number-Delta-1.60.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Number-Delta
%define upstream_version 1.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	Test-Number-Delta - Perl module

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Test::Number::Delta compare the difference between numbers against a given
tolerance.


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files 
%{perl_vendorlib}/Test
%{_mandir}/man3/Test::Number::Delta.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15631 |21mr|perl-Test-Object-0.80.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Object
%define upstream_version 0.08

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Thoroughly testing objects via registered handlers 

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Test::More)
BuildArch:	noarch

%description 
In situations where you have deep trees of classes, there is a common situation
in which you test a module 4 or 5 subclasses down, which should follow the
correct behaviour of not just the subclass, but of all the parent classes.

This should be done to ensure that the implementation of a subclass has not
somehow "broken" the object's behaviour in a more general sense.

Test::Object is a testing package designed to allow you to easily test what you
believe is a valid object against the expected behaviour of all of the classes
in its inheritance tree in one single call.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

%files
%doc Changes README LICENSE
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15632 |21mr|perl-Test-Output-1.30.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-Output
%define upstream_version 1.03

Summary:	Utilities to test STDOUT and STDERR messages
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Output-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Capture::Tiny)
BuildRequires:	perl(Sub::Exporter)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Tester)
BuildArch:	noarch

%description
Test::Output provides a simple interface for testing output sent to STDOUT
or STDERR. A number of different utilies are included to try and be as
flexible as possible to the tester.

Originally this module was designed not to have external requirements,
however, the features provided by L<Sub::Exporter> over what L<Exporter>
provides is just to great to pass up.

Test::Output ties STDOUT and STDERR using Test::Output::Tie.

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15633 |21mr|perl-Test-Pod-1.520.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name       Test-Pod
%define upstream_version 1.52

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary: 	Check for POD errors in files
License: 	GPL+ or Artistic
Group: 		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Pod::Simple) >= 3.07
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl-devel
BuildArch:	noarch

%description 
Check POD files for errors or warnings in a test file, using Pod::Simple to do
the heavy lifting.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean 

%files
%doc Changes
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15634 |21mr|perl-Test-Pod-Coverage-1.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Test-Pod-Coverage
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Check for POD coverage in your Perl modules
Group:		Development/Perl
License:	GPL+ or Artistic
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/N/NE/NEILB/Test-Pod-Coverage-%{upstream_version}.tar.gz

BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This Perl module checks for POD coverage in files for your distribution.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/Test/Pod/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15635 |21mr|perl-Test-Portability-Files-0.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Portability-Files
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version 0.06
Release:	7

Summary:	Check file names portability

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/Test-Portability-Files-0.06.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(File::Basename)
BuildRequires:	perl(File::Find)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::Builder)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
This module is used to check the portability across operating systems of
the names of the files present in the distribution of a module. The tests
use the advices given in the perlport/"Files and Filesystems" manpage. The
author of a distribution can select which tests to execute.

To use this module, simply copy the code from the synopsis in a test file
named _t/portfs.t_ for example, and add it to your _MANIFEST_. You can
delete the call to 'options()' to enable only most common tests.

By default, not all tests are enabled because some are judged too
cumbersome to be practical, especially since some of the most limited
platforms (like MS-DOS) seem to be no longer supported. Here are the
default options:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15636 |21mr|perl-Test-Refcount-0.100.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Refcount
%define upstream_version 0.10

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:    Assert reference counts on objects


License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Devel::FindRef)
BuildRequires: perl(Devel::Refcount)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester)
BuildRequires: perl(Test::More)
BuildRequires: perl(Module::Build::Compat)
BuildRequires: perl-devel
BuildArch: noarch

%description
The Perl garbage collector uses simple reference counting during the normal
execution of a program. This means that cycles or unweakened references in
other parts of code can keep an object around for longer than intended. To
help avoid this problem, the reference count of a new object from its class
constructor ought to be 1. This way, the caller can know the object will be
properly DESTROYed when it drops all of its references to it.

This module provides two test functions to help ensure this property holds
for an object class, so as to be polite to its callers.

If the assertion fails; that is, if the actual reference count is different
to what was expected, a trace of references to the object is printed, using
Marc Lehmann's the Devel::FindRef manpage module. See the examples below
for more information.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Build.PL INSTALLDIRS=vendor
./Build

%check
./Build test

%install
./Build install --destdir=%{buildroot} --installdirs=vendor

%clean

%files

%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15637 |21mr|perl-Test-Requires-0.100.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Requires
%define upstream_version 0.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Checks to see if the module can be loaded

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires: perl(Module::Build)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel

BuildArch:	noarch

%description
Test::Requires checks to see if the module can be loaded.

If this fails rather than failing tests this *skips all tests*.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc  META.yml Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15638 |21mr|perl-Test-RequiresInternet-0.50.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-RequiresInternet
%define upstream_version 0.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4

Summary:    Easily test network connectivity
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        https://search.cpan.org/dist/%{upstream_name}
Source0:    https://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Socket)
BuildRequires: perl(Test::More)
BuildRequires: perl(strict)
BuildRequires: perl(warnings)
BuildRequires: perl-devel

BuildArch: noarch

%description
This module is intended to easily test network connectivity before
functional tests begin to non-local Internet resources. It does not
require any modules beyond those supplied in core Perl.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes LICENSE META.yml META.json
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15639 |21mr|perl-Test-Script-1.180.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Script
%define upstream_version 1.18

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Cross-platform basic tests for scripts

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires: perl(Test::Tester)
BuildRequires:	perl(IPC::Run3)
BuildRequires:	perl(Probe::Perl)

BuildArch:	noarch

%description
The intent of this module is to provide a series of basic tests for scripts in
the bin directory of your Perl distribution.

Further, it aims to provide them with perfect platform-compatibility and in a
way that is as unobtrusive as possible.

That is, if the program works on a platform, then Test::Script should also work
on that platform.

In doing so, it is hoped that Test::Script can become a module that you can
safely make a dependency of your module, without risking your module not
working on some platform because of the dependency.

Where a clash exists between wanting more functionality and maintaining
platform safety, this module will err on the side of platform safety.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README LICENSE
%{perl_vendorlib}/Test
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15640 |21mr|perl-Test-SubCalls-1.100.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-SubCalls
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Track the number of times subs are called

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Hook::LexWrap)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
There are a number of different situations (like testing caching code)
where you want to want to do a number of tests, and then verify that some
underlying subroutine deep within the code was called a specific number of
times.

This module provides a number of functions for doing testing in this way in
association with your normal the Test::More manpage (or similar) test
scripts.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README LICENSE Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15641 |21mr|perl-Test-Taint-1.80.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Taint
%define upstream_version 1.08

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %upstream_version
Release:	11
Summary:    Tools to test taintedness
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%upstream_name-%upstream_version.tar.gz

BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::More)
BuildRequires: perl(Tie::Array)
BuildRequires: perl(Tie::Hash)
BuildRequires: perl(Tie::Scalar)
BuildRequires: perl(overload)
BuildRequires: perl-devel

%description
Tainted data is data that comes from an unsafe source, such as the command
line, or, in the case of web apps, any GET or POST transactions. Read the
the perlsec manpage man page for details on why tainted data is bad, and
how to untaint the data.

When you're writing unit tests for code that deals with tainted data,
you'll want to have a way to provide tainted data for your routines to
handle, and easy ways to check and report on the taintedness of your data,
in standard the Test::More manpage style.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%clean

%files
%doc META.yml Changes
%{_mandir}/man3/*
%{perl_vendorarch}/Test/*.pm
%{perl_vendorarch}/auto/Test/Taint/*.so*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15642 |21mr|perl-Test-Tester-0.109.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	Test-Tester
%define upstream_version 0.109

Summary:	Ease testing test modules built with Test::Builder

Name:		perl-%{module}
Version:	%perl_convert_version %{upstream_version}
Release:	7
License:	GPL or Artistic
Group:		Development/Perl
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Test/Test-Tester-%{upstream_version}.tar.gz
Url:		http://search.cpan.org/dist/%{module}/

BuildRequires:	perl-devel
BuildArch:	noarch

%description
If you have written a test module based on Test::Builder then Test::Tester
allows you to test it with the minimum of effort.

%prep
%setup -qn %{module}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc CHANGES README TODO
%{_mandir}/*/*
%{perl_vendorlib}/Test/Tester
%{perl_vendorlib}/Test/Tester.pm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15643 |21mr|perl-Test-Unit-0.250.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Unit
%define upstream_version 0.25

%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Error\\)
%else
%define _requires_exceptions perl(Error)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Test::Unit::TestCase - unit testing framework base class

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Test::Unit::TestCase is the 'workhorse' of the PerlUnit framework.
When writing tests, you generally subclass Test::Unit::TestCase,
write set_up and tear_down functions if you need them, a bunch of
test_* test methods, then do

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# perl path hack
find . -type f | xargs perl -p -i -e "s|^#\!/usr/local/bin/perl|#\!/usr/bin/perl|g"

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%install
%makeinstall_std

%files
%doc AUTHORS ChangeLog Changes README doc examples
%{perl_vendorlib}/Test/*.p*
%{perl_vendorlib}/Test/Unit
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15644 |21mr|perl-Test-utf8-1.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-utf8
%define upstream_version 1.01

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Handy utf8 tests
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Builder::Tester) >= 0.90.0
BuildRequires: perl(inc::Module::Install)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This module is a collection of tests useful for dealing with utf8 strings
in Perl.

This module has two types of tests: The validity tests check if a string is
valid and not corrupt, whereas the characteristics tests will check that
string has a given set of characteristics.

Validity Tests
    * is_valid_string($string, $testname)

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CHANGES META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15645 |21mr|perl-Test-Version-1.3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Version
%define upstream_version 1.003001

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Check for VERSION information in modules
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(English)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 6.300.0
BuildRequires: perl(File::Find)
BuildRequires: perl(File::Find::Rule::Perl)
BuildRequires: perl(File::Temp)
BuildRequires: perl(Module::Metadata) >= 1.0.27
BuildRequires: perl(Scalar::Util)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Exception)
BuildRequires: perl(Test::More)
BuildRequires: perl(Test::Requires)
BuildRequires: perl(Test::Tester)
BuildRequires: perl-devel
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(version) >= 0.860.0
BuildRequires: perl(warnings)
Requires: perl(Module::Metadata) >= 1.0.27
BuildArch:  noarch

%description
This module's goal is to be a one stop shop for checking to see that your
versions across your dist are sane. Please ensure that you use version
'0.04' or later only, as earlier versions are old code and may not work
correctly. Current feature list:

* module has a version

  Tests to insure that all modules checked have a VERSION defined, Can
  replace the Test::HasVersion manpage

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15646 |21mr|perl-Test-Warn-0.360.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-Warn
%define upstream_version 0.36

Summary:	Perl extension to test methods for warnings
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Array::Compare)
BuildRequires:	perl(Test)
BuildRequires:	perl(Test::Builder::Tester)
BuildRequires:	perl(Tree::DAG_Node)
BuildRequires:	perl(Test::Exception)
Requires:	perl(Tree::DAG_Node)
BuildArch:	noarch

%description 
This module provides a few convenience methods for testing warning based code.

If you are not already familiar with the Test::More manpage now would be the
time to go take a look.

%files
%doc Changes README
%{perl_vendorlib}/Test
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15647 |21mr|perl-Test-Warnings-0.21.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-Warnings
%define upstream_version 0.021

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    4
Summary:    Test for warnings and the lack of them

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://search.cpan.org/CPAN/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(CPAN::Meta::Check)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(File::Spec::Functions)
BuildRequires: perl(List::Util)
BuildRequires: perl(Module::Build::Tiny) >= 0.35.0
BuildRequires: perl(TAP::Harness::Env)
BuildRequires: perl(Test::Builder)
BuildRequires: perl(Test::Deep)
BuildRequires: perl(Test::More) >= 0.940.0
BuildRequires: perl(Test::Tester) >= 0.108.0
BuildRequires: perl(parent)
BuildRequires: perl(strict)
BuildRequires: perl(version)
BuildRequires: perl(warnings)
BuildRequires: perl-devel
BuildArch:  noarch

%description
This module is intended to be used as a drop-in replacement for
Test::NoWarnings: it also adds an extra test, but runs this test
before done_testing calculates the test count, rather than after.
It does this by hooking into done_testing as well as via an END
block. You can declare a plan, or not, and things will still Just
Work.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CONTRIBUTING Changes INSTALL LICENSE META.json META.yml MYMETA.yml README examples
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15648 |21mr|perl-Test-Without-Module-0.180.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Test-Without-Module
%define upstream_version 0.18

Summary:	Test::Without::Module - Test fallback behaviour in absence of modules
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Inline)
BuildRequires:	perl-Test-Simple
BuildArch:	noarch

%description
This module allows you to deliberately hide modules from a program
even though they are installed. This is mostly useful for testing modules
that have a fallback when a certain dependency module is not installed.

%files
%doc Changes README
%dir %{perl_vendorlib}/Test/Without
%{perl_vendorlib}/Test/Without/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

# pod2test is gone from perl-Test-Inline
perl -pi -e "s|pod2test|/bin/true|g" Makefile.PL
chmod -x Changes README lib/Test/Without/Module.pm

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15649 |21mr|perl-Test-YAML-1.50.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Test-YAML
%define upstream_version 1.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary:    Testing Module for YAML Implementations
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Test/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(Test::Base) >= 0.740.0
BuildRequires: perl(CPAN::Meta)
BuildRequires: perl-devel
BuildArch:  noarch

%description
Test::YAML is a subclass of Test::Base with YAML specific support.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc CONTRIBUTING Changes LICENSE META.json META.yml MYMETA.yml README
%{_bindir}/test-yaml
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15650 |21mr|perl-Text-Autoformat-1.669.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Text-Autoformat
%define upstream_version 1.669002

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Automatic text wrapping and reformatting

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz
Source1:	dot-vimrc.bz2
Source2:	dot-emacs.bz2

BuildRequires:	perl-devel
BuildRequires:  perl-Test-Simple
BuildRequires:	perl(Text::Reform)

BuildArch:	noarch

%description
Text::Autoformat  provides  intelligent  formatting   of   plaintext
without the need for  any  kind  of  embedded  mark-up.  The  module
recognizes Internet quoting conventions, a wide range  of  bulleting
and  number  schemes,  centred  text,  and  block  quotations,   and
reformats each appropriately. Other options allow the user to adjust
inter-word and inter-paragraph spacing,  justify  text,  and  impose
various capitalization schemes.

The  module  also  supplies  a   re-entrant,   highly   configurable
replacement for the built-in Perl format() mechanism.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
bzcat %{SOURCE1} > dot-vimrc
bzcat %{SOURCE2} > dot-emacs

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes dot-vimrc dot-emacs META.yml
%{perl_vendorlib}/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15651 |21mr|perl-Text-CharWidth-0.40.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-CharWidth
%define upstream_version 0.04

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:	9
Summary:	Text-CharWidth module for perl 
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

%description
Text::CharWidth - Get number of occupied columns of a string on
terminal

This module supplies features similar as wcwidth(3) and wcswidth(3) in
C language.

Characters have its own width on terminal depending on locale. For
example, ASCII characters occupy one column per character, east Asian
fullwidth characters (like Hiragana or Han Ideograph) occupy two
columns per character, and combining characters (apperaring in
ISO-8859-11 Thai, Unicode, and so on) occupy zero columns per
character. mbwidth() gives the width of the first character of the
given string and mbswidth() gives the width of the whole given string.

The names of mbwidth and mbswidth came from ``multibyte'' versions of
wcwidth and wcswidth which are ``wide character'' versions.

mblen(string) returns number of bytes of the first character of the
string. Please note that a character may consist of multiple bytes in
multibyte encodings such as UTF-8, EUC-JP, EUC-KR, GB2312, or Big5.

mbwidth(string) returns the width of the first character of the
string. mbswidth(string) returns the width of the whole string.

Parameters are to be given in locale encodings, not always in UTF-8.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# perl path hack
find . -type f | xargs %{__perl} -p -i -e "s|^#!/usr/local/bin/perl|#!%{_bindir}/perl|g"

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
%make

%install

%makeinstall_std

%files
%doc Changes README
%{perl_vendorarch}/Text/CharWidth.pm
%{perl_vendorarch}/auto/Text/CharWidth/CharWidth.so
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15652 |21mr|perl-Text-CSV-1.210.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-CSV
%define upstream_version 1.21

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Manipulate comma-separated value strings

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(Test::Harness)
BuildRequires:	perl(Test::More)
BuildArch:	noarch

%description
Text::CSV provides facilities for the composition and decomposition of
comma-separated values using the Text::CSV_XS manpage or its pure Perl
version.

An instance of the Text::CSV class can combine fields into a CSV string and
parse a CSV string into fields.

The module accepts either strings or files as input and can utilize any
user-specified characters as delimiters, separators, and escapes so it is
perhaps better called ASV (anything separated values) rather than just CSV.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15653 |21mr|perl-Text-CSV_XS-1.440.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-CSV_XS
%define upstream_version 1.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
Summary:	Comma-separated values manipulation routines
License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tgz

BuildRequires: perl-devel

%description
Text-CSV_XS is a Perl module that provides facilities for the composition
and decomposition of comma-separated values.  An instance of the Text::CSV
class can combine fields into a CSV string and parse a CSV string into
fields.

%files
%doc MANIFEST ChangeLog README
%{perl_vendorarch}/Text
%{perl_vendorarch}/auto/Text
%{_mandir}/*/*

#-----------------------------------------------------------------------------
%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15654 |21mr|perl-Text-DelimMatch-1.06-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname  Text-DelimMatch
%define preversion a

Name:		perl-%{realname}
Version:    1.06
Release:    16
License:	GPL
Group:		Development/Perl
Summary:    Perl extension to find regexp delimited strings with proper nesting

Source0:    http://search.cpan.org/CPAN/authors/id/N/NW/NWALSH/DelimMatch-%{version}%{preversion}.tar.bz2
Url:		http://search.cpan.org/dis/DelimMatch
BuildRequires:	perl-devel
BuildArch: noarch

%description
These routines allow you to match delimited substrings in a buffer.
The delimiters can be specified with any regular expression and the
start and end delimiters need not be the same. If the delimited text
is properly nested, entire nested groups are returned.

In addition, you may specify quoting and escaping characters that 
contribute to the recognition of start and end delimiters.

%prep
%setup -q -n DelimMatch-%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%clean

%files
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15655 |21mr|perl-Text-Diff-1.450.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Text-Diff
%define upstream_version 1.45

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	Perform diffs on files and record sets

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		https://www.cpan.org
Source0:	https://cpan.metacpan.org/authors/id/N/NE/NEILB/%{upstream_name}-%{upstream_version}.tar.gz 

BuildRequires:	perl-devel
BuildRequires:	perl-Algorithm-Diff
BuildRequires:	perl-Test
BuildArch:	noarch

%description
%{name} provides a basic set of services akin to the GNU diff utility.
It is not anywhere near as feature complete as GNU diff, but it is 
better integrated with Perl and available on all platforms. 

It is often faster than shelling out to a system's diff
executable for small files, and generally slower on larger files.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%{perl_vendorlib}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15656 |21mr|perl-Text-Glob-0.110.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Text-Glob
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Match globbing patterns against text

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl-Test-Simple
BuildArch:	noarch

%description
Text::Glob implements glob(3) style matching that can be used to match against
text, rather than fetching names from a filesystem. If you want to do full file
globbing use the File::Glob module instead.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc Changes
%{perl_vendorlib}/Text
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15657 |21mr|perl-Text-Iconv-1.7-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  %pdir-%pnam
%define	pdir	Text
%define	pnam	Iconv

Summary:	Text::Iconv perl module
Name:		perl-%pdir-%pnam
Version:	1.7
Release:	17
License:	GPL
Group:		Development/Perl
Source0:	ftp://ftp.cpan.org/pub/CPAN/modules/by-module/%{pdir}/%{module}-%{version}.tar.bz2
BuildRequires:	perl-devel >= 5.6.1
Url:		http://search.cpan.org/dist/%{module}

%description
This module provides a Perl interface to the iconv() codeset
conversion function, as defined by the Single UNIX Specification. For
more details see the POD documentation embedded in the file Iconv.pm,
which will also be installed as Text::Iconv(3) man page.

%prep
%setup -q -n %{pdir}-%{pnam}-%{version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std INSTALLDIRS=vendor

rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%clean

%files
%doc Changes README
%dir %{perl_vendorarch}/Text
%{perl_vendorarch}/Text/Iconv.pm
%dir %{perl_vendorarch}/auto/Text
%dir %{perl_vendorarch}/auto/Text/Iconv
%{perl_vendorarch}/auto/Text/Iconv/autosplit.ix
%{perl_vendorarch}/auto/Text/Iconv/*.so
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15658 |21mr|perl-Text-Reform-1.200.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Text-Reform
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	10

Summary:	Manual text wrapping and reformatting

License:	Artistic
Group:		Text tools
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl-Test-Simple
BuildArch:	noarch

%description
The form() subroutine may be exported from the module. It takes a series
of format (or "picture") strings followed by replacement values, inter-
polates those values into each picture string, and returns the result.
The effect is similar to the inbuilt perl format mechanism, although the
field specification syntax is simpler and some of the formatting beha-
viour is more sophisticated.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%__perl -pi -e "s,/usr/local/bin/perl,%__perl," *.pl
# muhahahah

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc README MANIFEST Changes
%{perl_vendorlib}/Text/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15659 |21mr|perl-Text-Soundex-3.50.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Soundex
%define upstream_version 3.05

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    3

Summary:    Encode a string as a soundex value
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-devel

%description
Soundex is a phonetic algorithm for indexing names by sound, as pronounced
in English. The goal is for names with the same pronunciation to be encoded
to the same representation so that they can be matched despite minor
differences in spelling. Soundex is the most widely known of all phonetic
algorithms and is often used (incorrectly) as a synonym for "phonetic
algorithm". Improvements to Soundex are the basis for many modern phonetic
algorithms. (Wikipedia, 2007)

This module implements the original soundex algorithm developed by Robert
Russell and Margaret Odell, patented in 1918 and 1922, as well as a
variation called "American Soundex" used for US census data, and current
maintained by the National Archives and Records Administration (NARA).

The soundex algorithm may be recognized from Donald Knuth's *The Art of
Computer Programming*. The algorithm described by Knuth is the NARA
algorithm.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorarch}/Text/*.pm
%{perl_vendorarch}/auto/Text/Soundex/*.so*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15660 |21mr|perl-Text-Unidecode-1.300.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-Unidecode
%define upstream_version 1.30

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Represent Unicode data in US-ASCII characters

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildArch:	noarch

%description
It often happens that you have non-Roman text data in Unicode, but you
can't display it -- usually because you're trying to show it to a user via
an application that doesn't support Unicode, or because the fonts you need
aren't accessible. You could represent the Unicode characters as "???????"
or "\15BA\15A0\1610...", but that's nearly useless to the user who actually
wants to read what the text says.

What Text::Unidecode provides is a function, 'unidecode(...)' that takes
Unicode data and tries to represent it in US-ASCII characters (i.e., the
universally displayable characters between 0x00 and 0x7F). The
representation is almost always an attempt at _transliteration_ -- i.e.,
conveying, in Roman letters, the pronunciation expressed by the text in
some other writing system. (See the example in the synopsis.)

Unidecode's ability to transliterate is limited by two factors:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README ChangeLog
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15661 |21mr|perl-Text-WrapI18N-0.60.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Text-WrapI18N
%define upstream_version 0.06

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Text-WrapI18N module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Text/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Text::CharWidth)
BuildArch:	noarch

%description
Text::WrapI18N - Line wrapping module with support for multibyte, fullwidth,
and combining characters and languages without whitespaces between words.

This module intends to be a better Text::Wrap module. This module is needed to
support multibyte character encodings such as UTF-8, EUC-JP, EUC-KR, GB2312,
and Big5. This module also supports characters with irregular widths, such as
combining characters (which occupy zero columns on terminal, like diacritical
marks in UTF-8) and fullwidth characters (which occupy two columns on terminal,
like most of east Asian characters). Also, minimal handling of languages which
doesn't use whitespaces between words (like Chinese and Japanese) is supported.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

# perl path hack
find . -type f | xargs perl -p -i -e "s|^#!/usr/local/bin/perl|#!%{_bindir}/perl|g"

%build
perl Makefile.PL INSTALLDIRS=vendor </dev/null
make
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/Text/WrapI18N.pm
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15662 |21mr|perltidy-20170521-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Script which indents and reformats Perl script
Name:		perltidy
Version:	20170521
Release:	2
License:	GPLv2+
Group:		Text tools
Url:		http://perltidy.sourceforge.net
Source0:	http://prdownloads.sourceforge.net/perltidy/Perl-Tidy-%{version}.tar.gz
BuildRequires:	perl-devel
BuildArch:	noarch

%description
Perltidy is a Perl script which indents and reformats Perl scripts to
make them easier to read. If you write Perl scripts, or spend much time
reading them, you will probably find it useful.

%files
%doc README COPYING docs
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/Perl

#----------------------------------------------------------------------------

%prep
%setup -qn Perl-Tidy-%{version}
# fix  perms
#chmod -R go=u-w *

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15663 |21mr|perl-Tie-IxHash-1.230.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Tie-IxHash
%define upstream_version 1.23

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    7

Summary: 	%{upstream_name} module for perl

License: 	GPL+ or Artistic
Group: 		Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}/
Source0: 	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Tie/Tie-IxHash-%{upstream_version}.tar.gz

BuildArch: 	noarch
BuildRequires:  perl-devel

%description
%{upstream_name} module for perl.  This Perl module implements ordered
in-memory associative arrays.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%clean 

%files
%defattr(644,root,root,755)
%doc Changes README
%{perl_vendorlib}/Tie/IxHash.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15664 |21mr|perl-TimeDate-1.200.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 TimeDate
%define upstream_version 1.20

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	%{upstream_name} module for perl (Data_Type_Utilities/Time)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/TimeDate/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
Simple Time and Date module for perl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

#https://github.com/gbarr/perl-TimeDate/issues/20
%__sed -i -e "s@timegm(0,0,0,1,0,70)@timegm(0,0,0,1,0,1970)@" t/getdate.t

%build
%__perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc MANIFEST README ChangeLog
%{perl_vendorlib}/Date
%{perl_vendorlib}/Time
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15665 |21mr|perl-Time-ZoneInfo-0.300.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Time-ZoneInfo
%define upstream_version 0.3

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    17
Epoch:      1
Summary:    Perl extension for returning a list of Time Zones

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Time/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildRequires: perl-Test
Patch0:	    Time-ZoneInfo-0.3-geolocalisation.patch

BuildArch: noarch

%description
An OO interface to accessing a list of timezones. This is useful if you
want to provide an interface for your user to choose one of the available
time zones.

Version 0.3.1 also gives the geolocalisation for a time zone.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%patch0 -p1 -b .geo

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15666 |21mr|perl-Tk-804.36.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(Tk.*\\)|perl\\(WidgetDemo\\)|perl\\(Tie::Watch\\)|perl\\(ExtUtils::MakeMaker\\)

%define	modname	Tk
%define modver 804.036

Summary:	Tk modules for Perl
Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	2
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		https://search.cpan.org/dist/%{modname}
Source0:	https://www.cpan.org/modules/by-module/%{modname}/%{modname}-%{modver}.tar.gz
# modified version of http://ftp.de.debian.org/debian/pool/main/p/perl-tk/perl-tk_804.027-8.diff.gz
Patch1:		perl-Tk-debian.patch
# fix segfaults as in #235666 because of broken cashing code
Patch2:		perl-Tk-seg.patch
Patch3:		Tk-804.030-xlib.patch
BuildRequires:	perl-devel
BuildRequires:	jpeg-devel
BuildRequires:	perl(open)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
Provides:	perl-Tie-Watch
Provides:	perl(Tk::LabRadio)
Provides:	perl(Tk::TextReindex)

%description
This package provides the modules and Tk code for Perl/Tk,
as written by Nick Ing-Simmons (pTk), John Ousterhout(Tk),
and Ioi Kim Lam(Tix).
It gives you the ability to develop perl applications using the Tk GUI.
It includes the source code for the Tk and Tix elements it uses.
The licences for the various components differ, so check the copyright.

%files
%doc ToDo Changes README README.linux
%license COPYING
%{_bindir}/*
%dir %{perl_vendorarch}/Tk
%{_mandir}/man1/*
%{_mandir}/man3/*
%{perl_vendorarch}/auto/Tk
%{perl_vendorarch}/Tie/Watch.pm
%{perl_vendorarch}/Tk/*.gif
%{perl_vendorarch}/Tk/*.pm*
%{perl_vendorarch}/Tk/*.xbm
%{perl_vendorarch}/Tk/*.xpm
%{perl_vendorarch}/Tk/Credits
%{perl_vendorarch}/Tk/demos
%{perl_vendorarch}/Tk/DragDrop
%{perl_vendorarch}/Tk/Event
%{perl_vendorarch}/Tk/license.terms
%{perl_vendorarch}/Tk/Menu
%{perl_vendorarch}/Tk.pm*
%{perl_vendorarch}/Tk/Text

#----------------------------------------------------------------------------

%package devel
Summary:	Tk modules for Perl (development package)
Group:		Development/C
Requires:	perl-Tk = %{EVRD}

%description devel
This package provides the modules and Tk code for Perl/Tk,
as written by Nick Ing-Simmons (pTk), John Ousterhout(Tk),
and Ioi Kim Lam(Tix).
It gives you the ability to develop perl applications using the Tk GUI.
It includes the source code for the Tk and Tix elements it uses.
The licences for the various components differ, so check the copyright.

This is the development package.

%files devel
%doc Funcs.doc INSTALL
%license COPYING
%{perl_vendorarch}/Tk/*.def
%{perl_vendorarch}/Tk/*.h
%{perl_vendorarch}/Tk/*.m
%{perl_vendorarch}/Tk/*.t
%{perl_vendorarch}/Tk/pTk
%{perl_vendorarch}/Tk/typemap

#----------------------------------------------------------------------------

%package doc
Summary:	Tk modules for Perl (documentation package)
Group:		Development/Perl
Requires:	perl-Tk = %{EVRD}

%description	doc
This package provides the modules and Tk code for Perl/Tk,
as written by Nick Ing-Simmons (pTk), John Ousterhout(Tk),
and Ioi Kim Lam(Tix).
It gives you the ability to develop perl applications using the Tk GUI.
It includes the source code for the Tk and Tix elements it uses.
The licences for the various components differ, so check the copyright.

This is the documentation package.

%files doc
%license COPYING
%{perl_vendorarch}/Tk.pod
%{perl_vendorarch}/Tk/*.pod
%{perl_vendorarch}/Tk/README.Adjust

#----------------------------------------------------------------------------

%prep
%setup -qn %{modname}-%{modver}
chmod -x pod/Popup.pod Tixish/lib/Tk/balArrow.xbm
# debian patch
%patch1 -p1
# patch to fix #235666 ... seems like caching code is broken
%patch2 -p0
%patch3 -p0 -b .xlib

find . -type f | xargs perl -pi -e 's|^#!.*/bin/perl\S*|#!/usr/bin/perl|'
# Make it lib64 aware, avoid patch
perl -pi -e "s,(/usr/X11(R6|\\*)|\\\$X11|\(\?:)/lib,\1/%{_lib},g" \
	myConfig pTk/mTk/{unix,tixUnix/{itcl2.0,tk4.0}}/configure
#(peroyvind) --center does no longer seem to be working, obsoleted by -c
perl -pi -e "s#--center#-c#" ./Tk/MMutil.pm

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor X11LIB=%{_libdir} XFT=1
find . -name Makefile | xargs %{__perl} -pi -e 's/^\tLD_RUN_PATH=[^\s]+\s*/\t/'
%make_build

%install
%makeinstall_std
chmod 644 %{buildroot}%{_mandir}/man3*/*

# Remove unpackaged files, add them if you find a use
# Tie::Watch is packaged separately
rm %{buildroot}%{perl_vendorarch}/Tk/prolog.ps
rm %{buildroot}%{_mandir}/man1/{ptk{ed,sh},widget}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15667 |21mr|perl-Tree-DAG_Node-1.310.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Tree-DAG_Node
%define upstream_version 1.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	Class for representing nodes in a tre

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Tree/%{upstream_name}-%{upstream_version}.tgz

BuildRequires:	perl-devel
BuildRequires: perl(File::Slurp::Tiny)
BuildRequires: perl-Test-Simple
BuildArch:	noarch

%description
This class encapsulates/makes/manipulates objects that represent nodes in a
tree structure. The tree structure is not an object itself, but is emergent
from the linkages you create between nodes. This class provides the methods for
making linkages that can be used to build up a tree, while preventing you from
ever making any kinds of linkages which are not allowed in a tree (such as
having a node be its own mother or ancestor, or having a node have two
mothers).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files 
%doc  README
%{perl_vendorlib}/Tree
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15668 |21mr|perl-Try-Tiny-0.310.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Try-Tiny
%define upstream_version 0.31

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Minimal try/catch with proper localization of $@
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/E/ET/ETHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides bare bones 'try'/'catch' statements that are designed
to minimize common mistakes with eval blocks, and NOTHING else.

This is unlike the TryCatch manpage which provides a nice syntax and avoids
adding another call stack layer, and supports calling 'return' from the try
block to return from the parent subroutine. These extra features come at a
cost of a few dependencies, namely the Devel::Declare manpage and the
Scope::Upper manpage which are occasionally problematic, and the additional
catch filtering uses the Moose manpage type constraints which may not be
desirable either.

The main focus of this module is to provide simple and reliable error
handling for those having a hard time installing the TryCatch manpage, but
who still want to write correct 'eval' blocks without 5 lines of
boilerplate each time.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15669 |21mr|perl-Types-Serialiser-1.0.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Types-Serialiser
%define upstream_version 1.0

Summary:	Dummy module for Types::Serialiser
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(common::sense)
BuildArch:	noarch

%description
This module provides some extra datatypes that are used by common
serialisation formats such as JSON or CBOR. The idea is to have a
repository of simple/small constants and containers that can be shared by
different implementations so they become interoperable between each other.

%files
%doc META.yml Changes META.json README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15670 |21mr|perl-Type-Tiny-1.12.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Type-Tiny
%define upstream_version 1.012004

Summary:	Exception for Type::Params
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	https://cpan.metacpan.org/authors/id/T/TO/TOBYINK/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Exporter::Tiny)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Test::Tester)
BuildArch:	noarch

%description
This module provides bare bones 'try'/'catch'/'finally' statements that are
designed to minimize common mistakes with eval blocks, and NOTHING else.

This is unlike the TryCatch manpage which provides a nice syntax and avoids
adding another call stack layer, and supports calling 'return' from the
'try' block to return from the parent subroutine. These extra features come
at a cost of a few dependencies, namely the Devel::Declare manpage and the
Scope::Upper manpage which are occasionally problematic, and the additional
catch filtering uses the Moose manpage type constraints which may not be
desirable either.

The main focus of this module is to provide simple and reliable error
handling for those having a hard time installing the TryCatch manpage, but
who still want to write correct 'eval' blocks without 5 lines of
boilerplate each time.

%files
%doc Changes LICENSE META.json META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor

%make

%install
%makeinstall_std

#needed perl-text-Balanced in contrib
#%%check
#%%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15671 |21mr|perl-Unicode-LineBreak-2019.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modname	Unicode-LineBreak
%define modver 2019.001

%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}perl\\(Unicode::LineBreak::Constants\\)
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}^perl\\(Unicode::LineBreak\\)$


Summary:	UAX #14 Unicode Line Breaking Algorithm

Name:		perl-%{modname}
Version:	%perl_convert_version %{modver}
Release:	1
License:	GPLv2+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{modname}
Source0:	http://www.cpan.org/modules/by-module/Unicode/%{modname}-%{modver}.tar.gz
BuildRequires:	perl(Encode)
BuildRequires:	perl(MIME::Charset)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel

%description
Text::LineFold folds or unfolds lines of plain text. As it mainly focuses
on plain text e-mail messages, RFC 3676 flowed format is also supported.

%prep
%setup -qn %{modname}-%{modver}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorarch}/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15672 |21mr|perl-Unicode-Map-0.112.0-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name Unicode-Map
%define upstream_version 0.112

Summary:	Maps charsets from and to utf16 unicode

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	31
License:	GPLv2 or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Unicode/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel

%description
This module converts strings from and to 2-byte Unicode UCS2 format. All
mappings happen via 2 byte UTF16 encodings, not via 1 byte UTF8 encoding. To
transform these use Unicode::String.

For historical reasons this module coexists with Unicode::Map8. Please use
Unicode::Map8 unless you need to care for two byte character sets, e.g. chinese
GB2312. Anyway, if you stick to the basic functionality (see documentation) you
can use both modules equivalently.


Practically this module will disappear from earth sooner or later as Unicode
mapping support needs somehow to get into perl's core. If you like to work on
this field please don't hesitate contacting Gisle Aas!

This module can't deal directly with utf8. Use Unicode::String to convert utf8
to utf16 and vice versa.

Character mapping is according to the data of binary mapfiles in Unicode::Map
hierarchy. Binary mapfiles can also be created with this module, enabling you
to install own specific character sets. Refer to mkmapfile or file REGISTRY in
the Unicode::Map hierarchy

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files 
%doc README
%{_bindir}/*
%{perl_vendorarch}/Unicode
%{perl_vendorarch}/auto/Unicode
%{_mandir}/man1/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15673 |21mr|perl-Unicode-Map8-0.130.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 Unicode-Map8
%define upstream_version 0.13

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	14
Summary:	Mapping table between 8-bit chars and Unicode
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/G/GA/GAAS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
# (tv) for test suite:
BuildRequires:	perl-Unicode-String

%description
The Unicode::Map8 class implement efficient mapping tables between 8-bit
character sets and 16 bit character sets like Unicode. The tables are efficient
both in terms of space allocated and translation speed. The 16-bit strings is
assumed to use network byte order.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# (tv) test suite failed in iurt but success with iurt --shell :-(
#%make test

%install
%makeinstall_std

%files 
%doc README Changes
%{perl_vendorarch}/auto/Unicode
%{perl_vendorarch}/Unicode
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15674 |21mr|perl-Unicode-MapUTF8-1.110.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\(Jcode\\)

%define upstream_name	 Unicode-MapUTF8
%define upstream_version 1.11

Summary:	Conversions to and from arbitrary character sets and UTF8
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://search.cpan.org/CPAN/authors/id/S/SN/SNOWHARE/%{upstream_name}-%{upstream_version}.tar.bz2
BuildRequires:	perl-devel
BuildRequires:	perl(Unicode::Map)
BuildRequires:	perl(Unicode::Map8)
Recommends:	perl(Jcode)
BuildArch:	noarch

%description
Provides an adapter layer between core routines for converting to and from UTF8
and other encodings. In essence, a way to give multiple existing Unicode
modules a single common interface so you don't have to know the underlaying
implementations to do simple UTF8 to-from other character set encoding
conversions. As such, it wraps the Unicode::String, Unicode::Map8, Unicode::Map
and Jcode modules in a standardized and simple API.

This also provides general character set conversion operation based on UTF8 -
it is possible to convert between any two compatible and supported character
sets via a simple two step chaining of conversions.

As with most things Perlish - if you give it a few big chunks of text to chew
on instead of lots of small ones it will handle many more characters per
second.

By design, it can be easily extended to encompass any new charset encoding
conversion modules that arrive on the scene.

%files 
%doc README
%{perl_vendorlib}/Unicode
%{_mandir}/*/*

#------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
#make test

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15675 |21mr|perl-Unicode-String-2.100.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Unicode-String
%define upstream_version 2.10

Name:           perl-%{upstream_name}
Version:        %perl_convert_version %{upstream_version}
Release:        2
Summary:        Unicode-String module for perl
License:        GPL+ or Artistic
Group:          Development/Perl
Url:            http://search.cpan.org/dist/%{upstream_name}/
Source0:        ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/Unicode/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:  perl-devel >= 5.8.0
BuildRequires:  perl-Test
Requires:       perl

%description
These are experimental modules to handle various Unicode issues.  They
were made before perl included native UTF8 support.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%check
make test

%install
%makeinstall_std

%clean

%files
%doc Changes README
%{perl_vendorarch}/auto/Unicode/String
%{perl_vendorarch}/Unicode/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15676 |21mr|perl-Unicode-UTF8-0.600.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Unicode-UTF8
%define upstream_version 0.60
%global __provides_exclude UTF8.so


Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    6

Summary:    Encoding and decoding of UTF-8 encoding form
License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/Unicode/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires: perl(Carp)
BuildRequires: perl(Encode)
BuildRequires: perl(Exporter)
BuildRequires: perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires: perl(Test::Fatal)
BuildRequires: perl(Test::More)
BuildRequires: perl(XSLoader)
BuildRequires: perl-devel
BuildRequires: perl(Test::LeakTrace)
BuildRequires: perl(Variable::Magic)
BuildRequires: perl(Test::Pod)
BuildRequires: perl(inc::Module::Install)

%description
This module provides functions to encode and decode UTF-8 encoding form as
specified by Unicode and ISO/IEC 10646:2011.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*

%if %rpm5
%{perl_vendorlib}/*
%else
%{perl_vendorarch}/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15677 |21mr|perl-UNIVERSAL-can-1.201.403.280-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name UNIVERSAL-can
%define upstream_version 1.20140328

Summary:	Hack around calling UNIVERSAL::can() as a function
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/UNIVERSAL/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Warn)
BuildArch:	noarch

%description
The UNIVERSAL class provides a few default methods so that all objects can use
them. Object orientation allows programmers to override these methods in
subclasses to provide more specific and appropriate behavior.

Some authors call methods in the UNIVERSAL class on potential invocants as
functions, bypassing any possible overriding. This is wrong and you should not
do it. Unfortunately, not everyone heeds this warning and their bad code can
break your good code.

Fortunately, this upstream_name replaces UNIVERSAL::can() with a method that
checks to
see if the first argument is a valid invocant (whether an object -- a blessed
referent -- or the name of a class). If so, and if the invocant's class has its
own can() method, it calls that as a method. Otherwise, everything works as you
might expect.

If someone attempts to call UNIVERSAL::can() as a function, this module
will emit a lexical warning (see perllexwarn) to that effect. You can disable
it with no warnings; or no warnings 'UNIVERSAL::isa';, but don't do that; fix
the code instead.

%files
%doc README
%{perl_vendorlib}/UNIVERSAL
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL installdirs=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15678 |21mr|perl-UNIVERSAL-isa-1.201.506.140-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name UNIVERSAL-isa
%define upstream_version 1.20150614

Summary:	Hack around calling UNIVERSAL::isa() as a function
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/UNIVERSAL/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Module::Build)
BuildRequires:	perl(Pod::Coverage)
BuildRequires:	perl(Scalar::Util)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(strict)
BuildRequires:	perl(overload)
BuildRequires:	perl(warnings)
BuildArch:	noarch

%description
Whenever you use "isa" in UNIVERSAL as a function, a kitten using
Test::MockObject dies. Normally, the kittens would be helpless, but if they use
UNIVERSAL::isa (the module whose docs you are reading), the kittens can live
long and prosper.

This module replaces UNIVERSAL::isa with a version that makes sure that if it's
called as a function on objects which override isa, isa will be called on those
objects as a method.

In all other cases the real UNIVERSAL::isa is just called directly.

%files
%doc Changes CONTRIBUTING LICENSE META.json META.yml README
%{perl_vendorlib}/UNIVERSAL
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL installdirs=vendor
%make

%install
%makeinstall_std

%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15679 |21mr|perl-URI-5.100.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 URI
%define upstream_version 5.10

%define _requires_exceptions perl(Business::ISBN)

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:	URI module for perl

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	https://cpan.metacpan.org/authors/id/O/OA/OALDERS/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Test)
BuildRequires:	perl(Net::Domain)
BuildRequires:	perl(Test::Needs)

BuildArch:	noarch

%description
This Perl module implements the URI class. Objects of this class represent
Uniform Resource Identifier (URI) references as specified in RFC 2396.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%__make

%check
%__make test

%install
%makeinstall_std

%files
%doc Changes
%{perl_vendorlib}/URI.pm
%{perl_vendorlib}/URI
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15680 |21mr|perl-URPM-5.24.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name URPM

%define rpm_version %(rpm -q --queryformat '%%|EPOCH?{[%%{EPOCH}:%%{VERSION}]}:{%%{VERSION}}|' rpm)

%{expand:%%global compat_perl_vendorarch %(perl -MConfig -e 'printf "%%s\n", "%{?perl_vendorarch:1}" ? "%%{perl_vendorarch}" : "$Config{installvendorarch}"')}

Summary:	Librpm perl bindings for urpmi
Name:		perl-URPM
Version:	5.24.1
Release:	2
Epoch:    2
License:	GPL or Artistic
Group:		Development/Perl
Source:		%{real_name}-v%{version}.tar.xz
URL:		http://gitweb.mageia.org/software/rpm/perl-URPM/
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(rpm) >= 4.11.0
BuildRequires:	perl(ExtUtils::Depends)
BuildRequires:	perl(ExtUtils::PkgConfig)
BuildRequires:	perl(MDV::Packdrakeng)
# For tests:
BuildRequires:	perl(Test::Pod)

# we can now expect librpm API to be backward compatible
Requires:	rpm >= %{rpm_version}
Requires:	perl(MDV::Packdrakeng)
Provides:	perl(URPM::Build) = %{EVRD}
Provides:	perl(URPM::Resolve) = %{EVRD}
Provides:	perl(URPM::Signature) = %{EVRD}
Conflicts:	urpmi < 8.102


%global __requires_exclude perl\\(URPM::DB\\)|perl\\(URPM::Package\\)|perl\\(URPM::Transaction\\)

%description
The URPM module allows you to manipulate rpm files, rpm header files and
hdlist files and manage them in memory.

%prep
%setup -q -n %{real_name}-v%{version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%{__make} OPTIMIZE="%{optflags}"

# TODO: reenable and fix tests
#%%check
#%%{__make} test

%install
%make_install

%files
%doc README NEWS
%{_mandir}/man3/*
%{compat_perl_vendorarch}/URPM.pm
%{compat_perl_vendorarch}/URPM
%dir %{compat_perl_vendorarch}/auto/URPM
%{compat_perl_vendorarch}/auto/URPM/URPM.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15681 |21mr|perl-Variable-Magic-0.620.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    Variable-Magic
%define upstream_version 0.62
%global __provides_exclude Magic.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5
License:	GPL+ or Artistic
Group:		Development/Perl
Summary:	Associate magic to variables from Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/Variable/Variable-Magic-%{upstream_version}.tar.gz

BuildRequires:	perl(Carp)
BuildRequires:	perl(Config)
BuildRequires:	perl(Exporter)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 7.40.0
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(IO::Handle)
BuildRequires:	perl(IO::Select)
BuildRequires:	perl(IPC::Open3)
BuildRequires:	perl(POSIX)
BuildRequires:	perl(Test::More) >= 1.1.9
BuildRequires:	perl(XSLoader)
BuildRequires:	perl(base)
BuildRequires:	perl-devel


%description
Magic is Perl's way of enhancing objects. This mechanism lets the user add
extra data to any variable and hook syntactical operations (such as access,
assignation or destruction) that can be applied to it. With this module,
you can add your own magic to any variable without the pain of the C API.

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes META.json META.yml
%{_mandir}/man3/*
%{perl_vendorarch}/Variable
%{perl_vendorarch}/auto/Variable

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15682 |21mr|perl-WWW-Curl-4.170.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name WWW-Curl
%define upstream_version 4.17

Summary:	Perl extension interface for libcurl
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11
License:	Artistic/GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz
Patch0:		perl-WWW-Curl-fix-CURL_STRICTER-undeclared.patch
Patch1:		WWW-Curl-4.17-RT117793-1.patch
# https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=941915
Patch2:         WWW-Curl-4.17-define-CURL-as-void.patch
Patch3:		WWW-Curl-4.150.0-curl-7.50.2.patch
Patch4:		WWW-Curl-4.17-RT130591.patch
Patch5:		WWW-Curl-4.17-RT120736.patch
Patch6:		fixed-curlopt-udnef.patch
Patch7:		WWW-Curl-4.17-Work-around-a-macro-bug-in-curl-7.87.0.patch
PAtch8:		WWW-Curl-4.17-Adapt-to-curl-7.87.0.patch
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	perl-devel
BuildRequires:	perl-Module-Install

%description
WWW::Curl is a Perl extension interface for libcurl.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
%apply_patches

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# yes, some tests are interactive. that's Evil.
# no point in running them, then: they'll be skipped
# make test < /dev/null

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorarch}/WWW
%{perl_vendorarch}/auto/WWW
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15683 |21mr|perl-WWW-Mechanize-1.880.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name WWW-Mechanize
%define upstream_version 1.88

%bcond_with tests

Summary:	Handy web browsing in a Perl object
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(CGI)
BuildRequires:	perl(HTML::Form)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(HTTP::Daemon)
BuildRequires:	perl(HTTP::Response::Encoding)
BuildRequires:	perl(HTTP::Server::Simple::CGI)
BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl(LWP::UserAgent)
%if %{with tests}
BuildRequires:	perl(Test::Exception)
BuildRequires:	perl(Test::Memory::Cycle)
BuildRequires:	perl(Test::Pod)
BuildRequires:	perl(Test::Warn)
BuildRequires:	perl(Test::LongString)
%endif
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
WWW::Mechanize, or Mech for short, helps you automate interaction with a
website. It supports performing a sequence of page fetches including following
links and submitting forms. Each fetched page is parsed and its links and forms
are extracted. A link or a form can be selected, form fields can be filled and
the next page can be fetched. Mech also stores a history of the URLs you've
visited, which can be queried and revisited.

%files
%doc Changes etc/www-mechanize-logo.png
%{perl_vendorlib}/WWW
%{_mandir}/*/*
%{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%install
%makeinstall_std

%if %{with tests}
%check
make test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15684 |21mr|perl-WWW-Pastebin-PastebinCom-Create-1.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name WWW-Pastebin-PastebinCom-Create
%define upstream_version 1.003

Summary:	Paste to http://pastebin.com from Perl
Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/WWW-Pastebin-PastebinCom-Create-%{upstream_version}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	perl(Module::Build::Compat)
BuildRequires:	perl(Moo)
BuildRequires:	perl(WWW::Mechanize)
BuildRequires:	perl(overload)
BuildRequires:	perl(strictures)
BuildArch:	noarch

%description
The module provides means of pasting large texts into the
http://pastebin.com manpage pastebin site.

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/WWW

#----------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
#make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15685 |21mr|perl-WWW-RobotRules-6.20.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    WWW-RobotRules
%define upstream_version 6.02

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	Parse /robots.txt file

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/WWW/WWW-RobotRules-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(AnyDBM_File)
BuildRequires:	perl(Fcntl)
BuildRequires:	perl(URI)
BuildArch:	noarch

%description
This module parses _/robots.txt_ files as specified in "A Standard for
Robot Exclusion", at <http://www.robotstxt.org/wc/norobots.html> Webmasters
can use the _/robots.txt_ file to forbid conforming robots from accessing
parts of their web site.

The parsed files are kept in a WWW::RobotRules object, and this object
provides methods to check if access to a given URL is prohibited. The same
WWW::RobotRules object can be used for one or more parsed _/robots.txt_
files on any number of hosts.

The following methods are provided:

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15686 |21mr|perl-XML-DOM-1.460.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-DOM
%define upstream_version 1.46

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	5

Summary:	XML::DOM - build DOM Level 1 compliant document structures

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TJ/TJMATHER/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser) >= 2.30
BuildRequires:	perl(XML::RegExp)
BuildRequires:	perl-libwww-perl
BuildRequires:	perl-libxml-perl >= 0.07
BuildRequires:	perl(Test)
BuildArch:	noarch
Provides:	perl-libxml-enno = %{version}-%{release}

%description
This is a Perl extension to XML::Parser. It adds a new 'Style' to
XML::Parser, called 'Dom', that allows XML::Parser to build an Object
Oriented datastructure with a DOM Level 1 compliant interface.
However, there is a new DOM module, XML::GDOME which is under active
development and significantly faster than XML::DOM, since it is based
on the libgdome C library.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
# some old'ish utf8 stuff, nuke it (rgs)
rm -f t/dom_jp_attr.t
rm -f t/dom_jp_cdata.t
rm -f t/dom_jp_example.t
rm -f t/dom_jp_minus.t
rm -f t/dom_jp_modify.t
rm -f t/dom_jp_print.t
make test


%install
%makeinstall_std

%files
%doc Changes README
%dir %{perl_vendorlib}/XML/DOM
%{perl_vendorlib}/XML/DOM.pm
%{perl_vendorlib}/XML/DOM/*.pod
%{perl_vendorlib}/XML/DOM/*.pm
%{perl_vendorlib}/XML/Handler/*
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15687 |21mr|perl-XML-Filter-BufferText-1.10.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Filter-BufferText
%define upstream_version 1.01

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Filter to put all characters() in one event

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::SAX)
BuildArch:	noarch

%description
This is a very simple filter. One common cause of grief (and programmer error)
is that XML parsers aren't required to provide character events in one chunk.
They can, but are not forced to, and most don't. This filter does the trivial
but oft-repeated task of putting all characters into a single event.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 BufferText.pm Changes README

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%check
make test

%files
%doc Changes README
%{perl_vendorlib}/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15688 |21mr|perl-XML-Handler-YAWriter-0.230.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Handler-YAWriter
%define upstream_version 0.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	XML::Handler::YAWriter perl module

License:	GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.cpan.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl-libxml-perl >= 0.06
BuildArch:	noarch

Provides:	XML-Handler-YAWriter = %{version}-%{release}

%description
YAWriter implements Yet Another XML::Handler::Writer. The reasons for
this one are that I needed a flexible escaping technique, and want
some kind of pretty printing.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%install
%makeinstall_std

%__rm -f %{buildroot}%{perl_archlib}/perllocal.pod

%files
%doc README
%{_bindir}/*
%{perl_vendorlib}/XML/Handler/*
%{_mandir}/man[13]/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15689 |21mr|perl-XML-LibXML-2.20.700-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module XML-LibXML
%define modver 2.0207

Summary:	Perl Binding for libxml2
Name:		perl-%{module}
Version:	%perl_convert_version %{modver}
Release:	1
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{module}/
Source0:	http://www.cpan.org/modules/by-module/XML/XML-LibXML-%{modver}.tar.gz
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	perl-Alien-Build
BuildRequires:	perl-Alien-Libxml2
BuildRequires:	perl(XML::NamespaceSupport)
BuildRequires:	perl(XML::SAX)
Requires(post,preun):	perl-XML-SAX

%description
This module implements much of the DOM Level 2 API as an
interface to the Gnome libxml2 library. This makes it a fast
and highly capable validating XML parser library, as well as
a high performance DOM.

%files
%doc Changes README example/*
%{perl_vendorarch}/auto/XML/LibXML
%{perl_vendorarch}/XML/LibXML*
%{_mandir}/*/*

%preun -p %{__perl}
use XML::SAX;
XML::SAX->remove_parser(q(XML::LibXML::SAX::Parser))->save_parsers();

%post -p %{__perl}
use XML::SAX;
XML::SAX->add_parser(q(XML::LibXML::SAX::Parser))->save_parsers();

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{modver}
%autopatch -p1

%build
perl Makefile.PL INSTALLDIRS=vendor OPTIMIZE="%{optflags}" SKIP_SAX_INSTALL=1
%make_build

%install
%make_install

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15690 |21mr|perl-XML-NamespaceSupport-1.120.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-NamespaceSupport
%define upstream_version 1.12

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:	%{upstream_name} module for perl

License:	MPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz
BuildRequires: perl-devel
BuildArch:	noarch


%description
This module offers a simple to process namespaced XML names (unames) from
within any application that may need them. It also helps maintain a prefix
to namespace URI map, and provides a number of basic checks.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes README

%build
perl Makefile.PL INSTALLDIRS=vendor --skipdeps
%make

%check
%make test

%clean

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML/*.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15691 |21mr|perl-XML-Node-0.110.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-Node
%define upstream_version 0.11

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	6

Summary:	Node-based XML parsing: an simplified interface to XML::Parser

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)
BuildArch:	noarch

%description
Using XML::Node, you can easily ignore the parts of XML files that you
are not interested in, thus helping in simplify Perl scripts
significantly.

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix} 
make

%install
make PREFIX=%{buildroot}%{_prefix} install

%files
%doc README MANIFEST Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15692 |21mr|perl-XML-Parser-2.440.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name	 XML-Parser
%define	modver 2.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{modver}
Release:	14

Summary:	A perl module for parsing XML documents

License:	GPL
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{modver}.tar.gz
Source1:	http://uucode.com/xml/perl/enc.tar.bz2
Patch0:		XML-Parser-2.36-use_filehandle.patch

BuildRequires:	chrpath
BuildRequires:	libexpat-devel >= 2.0.1
BuildRequires:	perl(Encode::Locale)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl-devel >= 2:5.14
BuildRequires:	perl-List-MoreUtils >= 0.320.0-3
BuildRequires:	perl-libwww-perl
BuildRequires:	perl-Test

%description
A perl module for parsing XML documents.

%prep
%setup -q -n %{upstream_name}-%{modver}
%setup -q -n %{upstream_name}-%{modver} -T -D -a 1
%patch0 -p0 -b .filehandle

%build
%define Werror_cflags %{nil}
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
make test

%install
%makeinstall_std
install -m 644 enc/koi8-r.enc %{buildroot}%{perl_vendorarch}/XML/Parser/Encodings
chmod +w   %{buildroot}%{perl_vendorarch}/auto/XML/Parser/Expat/Expat.so
chrpath -d %{buildroot}%{perl_vendorarch}/auto/XML/Parser/Expat/Expat.so

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorarch}/XML/Parser*
%{perl_vendorarch}/auto/XML/Parser*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15693 |21mr|perl-XML-Parser-Lite-0.721.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name XML-Parser-Lite
%define upstream_version 0.721

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Lightweight pure-perl XML Parser (based on regexps)
License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(Test::Requires)
BuildRequires:	perl(CPAN::Meta)
BuildRequires:	perl-Test
BuildRequires:	perl-devel

BuildArch:	noarch

%description
This Perl implements an XML parser with a interface similar to
XML::Parser. Though not all callbacks are supported, you should be able
to use it in the same way you use XML::Parser. Due to using experimental
regexp features it'll work only on Perl 5.6 and above and may behave
differently on different platforms.

Note that you cannot use regular expressions or split in callbacks. This
is due to a limitation of perl's regular expression implementation
(which is not re-entrant).

%prep
%setup -qn %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor

%make

%check
%make test

%install
%makeinstall_std

%files
%doc Changes META.json META.yml MYMETA.yml README
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15694 |21mr|perl-XML-RegExp-0.40.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-RegExp
%define upstream_version 0.04

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	XML::RegExp - regular expressions for XML tokens

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TJ/TJMATHER/XML-RegExp-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This package contains regular expressions for the following XML
tokens: BaseChar, Ideographic, Letter, Digit, Extender, CombiningChar,
NameChar, EntityRef, CharRef, Reference, Name, NmToken, and AttValue.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/XML/RegExp.pm
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15695 |21mr|perl-XML-SAX-1.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-SAX
%define upstream_version 1.00

# skipping requires on perl modules not in perl-base but in perl pkg
# those requires are only used by PurePerl module, whereas we often use perl-XML-LibXML
# this is useful to ensure urpmi only need perl-base, not perl
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(File::Temp\\)|perl\\(Encode\\)
%else
%define _requires_exceptions perl(File::Temp)\\|perl(Encode)
%endif

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4

Summary:	Simple API for XML

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:  perl(Test)
BuildRequires:	perl(XML::NamespaceSupport)
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(File::Temp)
BuildRequires:  perl(XML::SAX::Base) >= 1.50.0
BuildRequires:  perl(JSON::PP)
Provides:	perl(XML::SAX::PurePerl::DTDDecls)
Provides:	perl(XML::SAX::PurePerl::DocType)
Provides:	perl(XML::SAX::PurePerl::EncodingDetect)
Provides:	perl(XML::SAX::PurePerl::XMLDecl)
BuildArch:	noarch

%description
XML::SAX consists of several framework classes for using and building
Perl SAX2 XML parsers, filters, and drivers. It is designed around the
need to be able to "plug in" different SAX parsers to an application
without requiring programmer intervention. Those of you familiar with
the DBI will be right at home. Some of the designs come from the Java
JAXP specification (SAX part), only without the javaness.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes LICENSE README

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOF
N
EOF
%make

%check
make test

%install
%makeinstall_std PERL="perl -I%{buildroot}%{perl_vendorlib}/"
touch %{buildroot}%{perl_vendorlib}/XML/SAX/ParserDetails.ini

rm -f %{buildroot}%{perl_vendorlib}/XML/SAX/placeholder.pl

%post
perl -MXML::SAX -e \
  'XML::SAX->add_parser(q(XML::SAX::PurePerl))->save_parsers()' 2>/dev/null

%preun
if [ $1 -eq 0 ]; then
  perl -MXML::SAX -e \
    'XML::SAX->remove_parser(q(XML::SAX::PurePerl))->save_parsers()'
fi

%files
%doc Changes LICENSE README
%{perl_vendorlib}/XML
%{_mandir}/man3/XML::*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15696 |21mr|perl-XML-SAX-Base-1.90.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name	 XML-SAX-Base
%define upstream_version 1.09

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    2

Summary:	Simple API for XML Base

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

Buildrequires:	perl-devel
Buildrequires:	perl-Test
BuildRequires:	perl(XML::NamespaceSupport)
BuildArch:	noarch

%description
This module has a very simple task - to be a base class for 
PerlSAX drivers and filters.  It's default behaviour is to 
pass the input directly to the output unchanged. It can be 
useful to use this module as a base class so you don't 
have to, for example, implement the characters() callback.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 Changes README

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOF
N
EOF
%make

%check
%make test

%install
%makeinstall_std PERL="perl -I%{buildroot}%{perl_vendorlib}/"

%clean 

%files
%doc Changes README
%{perl_vendorlib}/XML
%{_mandir}/man3/XML::*.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15697 |21mr|perl-XML-SAX-Expat-0.510.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-SAX-Expat
%define upstream_version 0.51

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7
Summary:	SAX2 Driver for perl Expat Module


License:	Artistic or GPL+
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org:21/pub/CPAN/modules/by-module/XML/XML-SAX-Expat-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::SAX::Base)
BuildRequires:	perl(XML::Parser)         
BuildRequires:	perl(XML::NamespaceSupport)
BuildRequires:	perl(XML::SAX)            
BuildArch:	noarch

%description
An implementation of a SAX2 driver sitting on top of Expat (XML::Parser). 

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
# some autoregistration stufif, moved to %post
perl -pi -e 'm/^sub MY/ and exit' Makefile.PL
chmod -x Changes

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std
chmod -x %{buildroot}%{perl_vendorlib}/XML/SAX/Expat.pm

%post 
# directly taken from Makefile
perl -MXML::SAX -e "XML::SAX->add_parser(q(XML::SAX::Expat))->save_parsers()"

%files
%doc Changes
%{perl_vendorlib}/XML
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15698 |21mr|perl-XML-SAX-Writer-0.570.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-SAX-Writer
%define upstream_version 0.57

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	SAX2 Writer

License:	Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Text::Iconv)
BuildRequires:	perl(XML::Filter::BufferText)
BuildRequires:	perl(XML::SAX)
BuildArch:	noarch

%description
A new XML Writer was needed to match the SAX2 effort because quite naturally no
existing writer understood SAX2. My first intention had been to start patching
XML::Handler::YAWriter as it had previously been my favourite writer in the
SAX1 world.

However the more I patched it the more I realised that what I thought was going
to be a simple patch (mostly adding a few event handlers and changing the
attribute syntax) was turning out to be a rewrite due to various ideas I'd been
collecting along the way. Besides, I couldn't find a way to elegantly make it
work with SAX2 without breaking the SAX1 compatibility which people are
probably still using. There are of course ways to do that, but most require
user interaction which is something I wanted to avoid.

So in the end there was a new writer. I think it's in fact better this way as
it helps keep SAX1 and SAX2 separated.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
chmod 644 README Changes lib/XML/SAX/Writer/XML.pm

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15699 |21mr|perl-XML-Simple-2.250.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-Simple
%define upstream_version 2.25

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	3

Summary:	Easy API to maintain XML (esp config files)

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::SAX)
BuildRequires:  perl(Test)
BuildRequires:  perl(Test::Simple)
BuildArch:	noarch

%description
XML::Simple is a trivial perl API to manipulate XML.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/XML
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15700 |21mr|perl-XML-TokeParser-0.50.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-TokeParser
%define upstream_version 0.05

Name: 		perl-%{upstream_name}
Version: 	%perl_convert_version %{upstream_version}
Release: 	6

Summary:	Simplified interface to XML::Parser

License: 	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	ftp://ftp.perl.org/pub/CPAN/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildArch:	noarch

%description
The XML::TokeParser perl module provides a procedural ("pull mode")
interface to XML::Parser in much the same way that HTML::TokeParser
provides a procedural interface to HTML::Parser.

XML::TokeParser splits its XML input up into "tokens," each
corresponding to an XML::Parser event.

A token is a reference to an array whose first element is an event-type
string and whose last element is the literal text of the XML input that
generated the event, with intermediate elements varying according to the
event type:


%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor PREFIX=%{_prefix}
%make

%install
%make PREFIX=%{buildroot}%{_prefix} install


%files
%doc README MANIFEST Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15701 |21mr|perl-XML-Twig-3.520.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Twig
%define upstream_version 3.52

# like Fedora
%global __requires_exclude ^perl\\(xml_split::state\\)$

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    1

Summary:    A perl module for processing huge XML documents in tree mode

License:    Artistic
Group:      Development/Perl
Url:        http://www.xmltwig.com/xmltwig/
Source0:    https://cpan.metacpan.org/authors/id/M/MI/MIROD/%{upstream_name}-%{upstream_version}.tar.gz

# for tests
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl(XML::Parser) >= 2.230.0
BuildRequires: perl-Test-Simple
BuildRequires: perl-devel
BuildArch:  noarch

%description
XML::Twig is a Perl module that subclasses XML-Parser to allow easy
processing of XML documents of all sizes.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL -y INSTALLDIRS=vendor NO_PACKLIST=1 NO_PERLLOCAL=1
%make

%install
%makeinstall_std

%files
%doc Changes META.json META.yml README
%{perl_vendorlib}/XML
%{_mandir}/*/*
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15702 |21mr|perl-XML-Validator-Schema-1.100.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-Validator-Schema
%define upstream_version 1.10

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	Validate XML with a subset of W3C XML Schema

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/XML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(Carp)
BuildRequires:	perl(Test::More)
BuildRequires:	perl(Tree::DAG_Node)
BuildRequires:	perl(XML::Filter::BufferText)
BuildRequires:	perl(XML::SAX)
BuildArch:	noarch

%description
This module allows you to validate XML documents against a W3C XML Schema.
This module does not implement the full W3C XML Schema recommendation
(http://www.w3.org/XML/Schema), but a useful subset. See the "SCHEMA
SUPPORT" section below.

*IMPORTANT NOTE*: To get line and column numbers in the error messages
generated by this module you must install XML::Filter::ExceptionLocator and
use XML::SAX::ExpatXS as your SAX parser. This module is much more useful
if you can tell where your errors are, so using these modules is highly
recommeded!

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15703 |21mr|perl-XML-Writer-0.612.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-Writer
%define upstream_version 0.612

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	12

Summary:	Module for writing XML documents

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)

BuildArch:	noarch

%description
XML::Writer is a simple Perl module for writing XML documents: it
takes care of constructing markup and escaping data correctly, and by
default, it also performs a significant amount of well-formedness
checking on the output, to make certain (for example) that start and
end tags match, that there is exactly one document element, and that
there are not duplicate attribute names.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%doc README Changes
%{perl_vendorlib}/XML/Writer*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15704 |21mr|perl-XML-XPath-1.440.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name 	 XML-XPath
%define upstream_version 1.44

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1

Summary:	XML::XPath - a set of modules for parsing and evaluating XPath statements

License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://sergeant.org
Source0:	https://cpan.metacpan.org/authors/id/M/MA/MANWAR/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildRequires:	perl(XML::Parser)

BuildArch:	noarch

%description
This module aims to comply exactly to the XPath specification 
at http://www.w3.org/TR/xpath and yet allow extensions to be 
added in the form of functions. Modules such as XSLT and 
XPointer may need to do this as they support functionality 
beyond XPath.

%prep
%setup -q  -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make_build

%install
%make_install

%files
%doc README TODO examples
%{_bindir}/*
%{_mandir}/*/*
%{perl_vendorlib}/XML/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15705 |21mr|perl-XML-XPathEngine-0.140.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-XPathEngine
%define upstream_version 0.14

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	7

Summary:	A re-usable XPath engine for DOM-like trees

License:	Artistic and GPL
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/XML/XML-XPathEngine-%{upstream_version}.tar.gz

BuildRequires:	perl-devel
BuildArch:	noarch

%description
This module provides an XPath engine, that can be re-used by other
module/classes that implement trees.

In order to use the XPath engine, nodes in the user module need to mimick DOM
nodes. The degree of similitude between the user tree and a DOM dictates how
much of the XPath features can be used. A module implementing all of the DOM
should be able to use this module very easily (you might need to add the cmp
method on nodes in order to get ordered result sets).

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc README Changes
%{_mandir}/*/*
%{perl_vendorlib}/XML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15706 |21mr|perl-XML-XQL-0.680.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    XML-XQL
%define upstream_version 0.68

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	11

Summary:	XML::XQL - query XML tree structures with XQL

License:	GPL+ or Artistic
Group:		Development/Perl
URL:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://search.cpan.org/CPAN/authors/id/T/TJ/TJMATHER/%{upstream_name}-%{upstream_version}.tar.bz2

BuildRequires:	perl-devel
BuildRequires:	perl-XML-DOM >= 1.29
BuildRequires:	perl(Date::Manip) >= 5.33
BuildRequires:	perl-Parse-Yapp
BuildRequires:	perl-XML-Parser >= 2.30
BuildArch:	noarch

%description
This is a Perl extension that allows you to perform XQL queries on XML
object trees. Currently only the XML::DOM module is supported, but
other implementations, like XML::Grove, may soon follow.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make
make test

%install
%makeinstall_std

%files
%doc Changes README
%attr(755,root,root) %{_bindir}/*
%dir %{perl_vendorlib}/XML/XQL
%{perl_vendorlib}/XML/XQL.pm
%{perl_vendorlib}/XML/XQL/*.pm
%{perl_vendorlib}/XML/XQL/*.pod
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15707 |21mr|perl-YAML-1.230.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name YAML
%define upstream_version 1.23

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	2

Summary:	YAML Ain't Markup Language (tm)



License:	GPL+ or Artistic
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}/
Source0:	http://www.cpan.org/modules/by-module/%{upstream_name}/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl-Test-Base >= 0.47
BuildRequires: perl(Test::YAML)
BuildRequires:	perl-devel
Provides:	perl-YAML-parser
Buildarch:	noarch

%description
The YAML.pm module implements a YAML Loader and Dumper based on the YAML 1.0
specification. http://www.yaml.org/spec/

YAML is a generic data serialization language that is optimized for human
readability. It can be used to express the data structures of most modern
programming languages. (Including Perl!!!)

For information on the YAML syntax, please refer to the YAML specification.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor <<EOF
EOF
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes README
%{perl_vendorlib}/YAML*
# %{perl_vendorlib}/Test/YAML*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15708 |21mr|perl-YAML-LibYAML-0.820.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    YAML-LibYAML
%define upstream_version 0.82
# private-shared-object-provides
%global __provides_exclude LibYAML.so

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	4
Summary:	An XS Wrapper Module of libyaml
Group:		Development/Perl
License:	GPL+ or Artistic
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/YAML/%{upstream_name}-%{upstream_version}.tar.gz
### Reversed (or previously applied) patch detected! ###
# Patch0:     YAML-LibYAML-0.35-fix-format-errors.patch

BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  perl(B::Deparse)
BuildRequires:  perl(base)
BuildRequires:  perl(constant)
BuildRequires:  perl(Exporter)
BuildRequires:  perl(strict)
BuildRequires:  perl(warnings)
BuildRequires:  perl(XSLoader)
BuildRequires:  perl(Carp)
BuildRequires:  perl(Data::Dumper)
BuildRequires:  perl(Devel::Peek)
BuildRequires:  perl(File::Find)
BuildRequires:  perl(File::Path)
BuildRequires:  perl(Filter::Util::Call)
BuildRequires:  perl(Scalar::Util)
BuildRequires:  perl(Test::Builder)
BuildRequires:  perl(Test::More) >= 0.88
BuildRequires:  perl(Tie::Array)
BuildRequires:  perl(Tie::Hash)
BuildRequires:  perl(utf8)
BuildRequires:  perl-devel
BuildRequires:  pkgconfig(yaml-0.1)

%description
Kirill Siminov's 'libyaml' is arguably the best YAML implementation. The C
library is written precisely to the YAML 1.1 specification. It was
originally bound to Python and was later bound to Ruby.

This module is a Perl XS binding to libyaml which offers Perl the best YAML
support to date.

This module exports the functions 'Dump' and 'Load'. These functions are
intended to work exactly like 'YAML.pm''s corresponding functions.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}
### Reversed (or previously applied) patch detected! ###
# patch0 -p1 -b .format-error

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc Changes CONTRIBUTING README LICENSE
%{perl_vendorarch}/auto/YAML/
%{perl_vendorarch}/YAML/
%{_mandir}/man3/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15709 |21mr|perl-YAML-Syck-1.320.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name    YAML-Syck
%define upstream_version 1.32

%define Werror_cflags %{nil}

Name:		perl-%{upstream_name}
Version:	%perl_convert_version %{upstream_version}
Release:	1
Summary:	Fast, lightweight YAML loader and dumper
License:	MIT
Group:		Development/Perl
Url:		http://search.cpan.org/dist/%{upstream_name}
Source0:	http://www.cpan.org/modules/by-module/YAML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.590.0
BuildRequires:	perl-devel
Provides:	perl-YAML-parser

%description
This module provides a Perl interface to the libsyck data
serialization library. It exports the Dump and Load functions for
converting Perl data structures to YAML strings, and the other way
around.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
perl Makefile.PL INSTALLDIRS=vendor
%make OPTIMIZE="%{optflags}"

%check
%make test

%install
%makeinstall_std

%files
%doc COMPATIBILITY COPYING Changes META.yml
%{_mandir}/*/*
%{perl_vendorarch}/JSON
%{perl_vendorarch}/YAML
%{perl_vendorarch}/auto/YAML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15710 |21mr|perl-YAML-Tiny-1.500.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name    YAML-Tiny
%define upstream_version 1.50

Name:       perl-%{upstream_name}
Version:    %perl_convert_version %{upstream_version}
Release:    10

Summary:    Read/Write YAML files with as little code as possible

License:    GPL+ or Artistic
Group:      Development/Perl
Url:        http://search.cpan.org/dist/%{upstream_name}
Source0:    http://www.cpan.org/modules/by-module/YAML/%{upstream_name}-%{upstream_version}.tar.gz

BuildRequires:	perl(File::Spec)
BuildRequires:	perl(Test::More)
BuildRequires:	perl-devel
BuildArch: noarch

%description
*YAML::Tiny* is a perl class for reading and writing YAML-style files,
written with as little code as possible, reducing load time and memory
overhead.

Most of the time it is accepted that Perl applications use a lot of memory
and modules. The *::Tiny* family of modules is specifically intended to
provide an ultralight and zero-dependency alternative to many more-thorough
standard modules.

This module is primarily for reading human-written files (like simple
config files) and generating very simple human-readable files. Note that I
said *human-readable* and not *geek-readable*. The sort of files that your
average manager or secretary should be able to look at and make sense of.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

%build
%__perl Makefile.PL INSTALLDIRS=vendor
%make

%check
make test

%install
%makeinstall_std

%files
%doc LICENSE README Changes
%{_mandir}/man3/*
%{perl_vendorlib}/YAML

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15711 |21mr|pesign-116-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Signing utility for UEFI binaries
Name:		pesign
Version:	116
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		https://github.com/vathpela/pesign
Source0:    https://github.com/rhboot/pesign/releases/download/%{version}/pesign-%{version}.tar.bz2
BuildRequires:	gnu-efi
BuildRequires:	nspr
BuildRequires:	nss
BuildRequires:	mandoc
BuildRequires:	popt-devel
BuildRequires:	pkgconfig(efivar)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(uuid)
Requires:	nspr
Requires:	nss
Requires:	popt
Requires:	rpm
Requires:	pkgconfig(nss)
Requires(pre):	shadow-utils
Requires(post,preun,postun):	systemd

%description
This package contains the pesign utility for signing UEFI binaries, as
well as other associated tools.

%files
%doc README.md TODO
%license COPYING
%{_bindir}/authvar
%{_bindir}/pesign
%{_bindir}/pesign-client
%{_bindir}/pesigcheck
%{_bindir}/pesum
%{_bindir}/efikeygen
%{_prefix}/libexec/pesign/pesign-authorize
%{_prefix}/libexec/pesign/pesign-rpmbuild-helper
%{_sysconfdir}/pesign/groups
%{_sysconfdir}/pesign/users
%{_sysconfdir}/popt.d/pesign.popt
%{_rpmmacrodir}/*%{name}*
%{_mandir}/man*/*
%dir %attr(0775,pesign,pesign) %{_sysconfdir}/pki/pesign
%ghost %dir %attr(0770, pesign, pesign) %{_localstatedir}/run/%{name}
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/pesign.service

%pre
getent group pesign >/dev/null || groupadd -r pesign
getent passwd pesign >/dev/null || \
	useradd -r -g pesign -d /var/run/pesign -s /sbin/nologin \
		-c "Group for the pesign signing daemon" pesign
exit 0

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post pesign.service

%preun
%systemd_preun pesign.service

%postun
%systemd_postun_with_restart pesign.service

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%make

%install
mkdir -p %{buildroot}/%{_libdir}
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} \
	install
make PREFIX=%{_prefix} LIBDIR=%{_libdir} INSTALLROOT=%{buildroot} \
	install_systemd

# there's some stuff that's not really meant to be shipped yet
rm -rf %{buildroot}/boot %{buildroot}/usr/include
rm -rf %{buildroot}%{_libdir}/libdpe*

# rpm5 and rpm4 macros install
%install_macro %{name} src/macros.%{name}
rm -rf %{buildroot}%{_sysconfdir}/rpm

# confusion due to fedora /lib == /usr/lib
mkdir -p %{buildroot}%{_unitdir}
mv %{buildroot}/usr/lib/systemd/system/*.service %{buildroot}%{_unitdir}

rm -rf %{buildroot}%{_datadir}/doc/%{name}-%{version}/COPYING

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15712 |21mr|phodav-2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.0
%define major 0
%define libname %mklibname phodav %{api} %{major}
%define devname %mklibname phodav -d

Summary:	A WebDAV server using libsoup
Name:		phodav
Version:	2.2
Release:	3
License:	LGPLv2+
Group:		System/Servers
Url:		https://wiki.gnome.org/phodav
Source0:	http://download.gnome.org/sources/%{name}/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	asciidoc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	xmlto
BuildRequires:	pkgconfig(avahi-gobject)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(systemd)

%description
phodav is a WebDAV server implementation using libsoup (RFC 4918).

#----------------------------------------------------------------------------

%package i18n
Summary:	Translation files for %{name}
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
phodav is a WebDAV server implementation using libsoup (RFC 4918).

%files i18n -f %{name}-%{api}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library to serve files with WebDAV
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
phodav is a WebDAV server implementation using libsoup (RFC 4918).
This package provides the library.

%files -n %{libname}
%{_libdir}/libphodav-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc NEWS COPYING
%{_includedir}/libphodav-%{api}
%{_libdir}/libphodav-%{api}.so
%{_libdir}/pkgconfig/libphodav-%{api}.pc
%{_datadir}/gtk-doc/html/phodav-%{api}

#----------------------------------------------------------------------------

%package -n chezdav
Summary:	A simple WebDAV server program
Group:		System/Servers

%description -n chezdav
The chezdav package contains a simple tool to share a directory
with WebDAV. The service is announced over mDNS for clients to discover.

%files -n chezdav
%{_bindir}/chezdav
%{_mandir}/man1/chezdav.1*

#----------------------------------------------------------------------------

%package -n spice-webdavd
Summary:	Spice daemon for the DAV channel
Group:		System/Servers
Requires(post,preun):	rpm-helper

%description -n spice-webdavd
The spice-webdavd package contains a daemon to proxy WebDAV request to
the Spice virtio channel.

%files -n spice-webdavd
%{_sbindir}/spice-webdavd
%{_udevrulesdir}/70-spice-webdavd.rules
%{_unitdir}/spice-webdavd.service

%post -n spice-webdavd
%_post_service spice-webdavd

%preun -n spice-webdavd
%_preun_service spice-webdavd

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-avahi \
	--with-udevdir=/lib/udev/ \
	--with-systemdsystemunitdir=%{_unitdir} \
	--disable-static
%make

%install
%makeinstall_std

%find_lang %{name}-%{api} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15713 |21mr|phonon-4.11.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define major 4

Summary:	KDE multimedia framework
Name:		phonon
Version:	4.11.1
Release:	4
Epoch:		2
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		http://phonon.kde.org/
Source0:	https://download.kde.org/stable/phonon/%{version}/%{name}-%{version}.tar.xz
Source1:	phonon-4.11.1_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	imagemagick
BuildRequires:	qmake5
BuildRequires:	qt5-designer
BuildRequires:	qt5-qml-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Designer)

%description
Phonon is the KDE multimedia framework.

#--------------------------------------------------------------------

%package qt5
Summary:	Multimedia framework api for Qt5
Group:		Graphical desktop/KDE
Requires:	%{name}-i18n
Recommends:	phonon-qt5-backend-gstreamer%{?_isa}
%description	qt5
%{summary}.

%files qt5
%{_bindir}/phononsettings

#--------------------------------------------------------------------

%define libphonon4qt5experimental %mklibname phonon4qt5experimental %{major}

%package -n %{libphonon4qt5experimental}
Summary:	Phonon shared library
Group:		System/Libraries

%description -n %{libphonon4qt5experimental}
Library for Phonon.

%files -n %{libphonon4qt5experimental}
%{_libdir}/libphonon4qt5experimental.so.%{major}*

#--------------------------------------------------------------------

%define libphonon4qt5 %mklibname phonon4qt5_ %{major}

%package -n %{libphonon4qt5}
Summary:	Phonon shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libphonon4qt5}
Library for Phonon.

%files -n %{libphonon4qt5}
%{_libdir}/libphonon4qt5.so.%{major}*

#--------------------------------------------------------------------

%package i18n
Summary:	Phonon translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Phonon translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n phonon4qt5-designer-plugin
Summary:	Phonon Designer plugin
Group:		System/Libraries

%description -n phonon4qt5-designer-plugin
Designer plugin for Phonon for Qt5.

%files -n phonon4qt5-designer-plugin
%{_qt5_plugindir}/designer/phononwidgets.so

#--------------------------------------------------------------------

%package -n phonon4qt5-devel
Summary:	Phonon Qt5 development files
Group:		Development/KDE and Qt
Requires:	%{libphonon4qt5experimental} = %{EVRD}
Requires:	%{libphonon4qt5} = %{EVRD}
Requires:	phonon4qt5-designer-plugin = %{EVRD}

%description -n phonon4qt5-devel
Phonon Qt5 development files.

%files -n phonon4qt5-devel
%{_libdir}/qt5/mkspecs/modules/qt_phonon4qt5.pri
%{_datadir}/phonon4qt5/buildsystem/
%{_includedir}/phonon4qt5/
%{_libdir}/libphonon4qt5.so
%{_libdir}/libphonon4qt5experimental.so
%{_libdir}/pkgconfig/phonon4qt5.pc
%{_libdir}/cmake/phonon4qt5

#--------------------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

mkdir Qt5
mv `ls -1 |grep -v Qt5` Qt5

%build
pushd Qt5
%cmake \
	-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON \
	-DKDE_INSTALL_USE_QT_SYS_PATHS:BOOL=ON \
	-DPHONON_BUILD_PHONON4QT5=ON
%make
popd

%install
%makeinstall_std -C Qt5/build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15714 |21mr|phonon-gstreamer-4.10.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0

Summary:	GStreamer backend to Phonon
Name:		phonon-gstreamer
Version:	4.10.0
Release:	2
Epoch:		2
License:	LGPLv2.1+
Group:		Sound
Url:		http://phonon.kde.org/
Source0:	https://ftp.up.pt/pub/kde/stable/phonon/phonon-backend-gstreamer/%{version}/phonon-backend-gstreamer-%{version}.tar.xz
Patch0:		phonon-4.7.80-flac_mimetype.patch
BuildRequires:	automoc4
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	imagemagick
BuildRequires:	qmake5
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-%{api})
BuildRequires:	pkgconfig(gstreamer-audio-%{api})
BuildRequires:	pkgconfig(gstreamer-pbutils-%{api})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api})
BuildRequires:	pkgconfig(gstreamer-riff-%{api})
BuildRequires:	pkgconfig(gstreamer-rtp-%{api})
BuildRequires:	pkgconfig(gstreamer-rtsp-%{api})
BuildRequires:	pkgconfig(gstreamer-sdp-%{api})
BuildRequires:	pkgconfig(gstreamer-tag-%{api})
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:	gstreamer%{api}-libav
Requires:	gstreamer%{api}-pulse
Requires:	gstreamer%{api}-plugins-bad
Requires:	gstreamer%{api}-plugins-base
Requires:	gstreamer%{api}-plugins-good
Requires:	gstreamer%{api}-plugins-ugly
Requires:	gstreamer%{api}-soup
Recommends:	gstreamer%{api}-ffmpeg
Provides:	phonon-backend = %{EVRD}
Provides:	phonon4qt5-backend = %{EVRD}
Provides:	phonon4qt5-gstreamer = %{EVRD}
Obsoletes:	%{name}-common <= %{EVRD}
Obsoletes:	phonon4qt5-gstreamer < %{EVRD}

%description
GStreamer backend to Phonon.

%files -f phonon_gstreamer.lang
%license COPYING.LIB
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_qt5_plugindir}/phonon4qt5_backend/phonon_gstreamer.so

#----------------------------------------------------------------------------

%prep
%setup -qn phonon-backend-gstreamer-%{version}
%apply_patches

%build
%cmake_qt5 \
	-DCMAKE_BUILD_TYPE:STRING="Release"	\
	-DUSE_INSTALL_PLUGIN:BOOL=ON		\
	-DPHONON_BUILD_PHONON4QT5:BOOL=ON
%make

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_qt5_plugindir}/phonon4qt5_backend
mv -f %{buildroot}%{_libdir}/plugins/phonon4qt5_backend/phonon_gstreamer.so %{buildroot}%{_qt5_plugindir}/phonon4qt5_backend

%find_lang phonon_gstreamer --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15715 |21mr|phonon-qt4-4.10.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4

Summary:	KDE multimedia framework
Name:		phonon-qt4
Version:	4.10.3
Release:	3
Epoch:		2
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		http://phonon.kde.org/
Source0:	https://download.kde.org/stable/phonon/%{version}/phonon-%{version}.tar.xz
Patch0:		phonon-4.6.50-phonon-allow-stop-empty-source.patch
# from Fedora
Patch1:		phonon-DEFAULT_SOURCE.patch
Patch2:		phonon-rpath_use_link_path.patch
BuildRequires:	automoc4
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	imagemagick
BuildRequires:	qt4-devel
BuildRequires:	qt4-qmlviewer
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpulse)

%description
Phonon is the KDE multimedia framework.

#--------------------------------------------------------------------

%define libphononexperimental %mklibname phononexperimental %{major}

%package -n %{libphononexperimental}
Summary:	Phonon shared library
Group:		System/Libraries

%description -n %{libphononexperimental}
Library for Phonon.

%files -n %{libphononexperimental}
%{_libdir}/libphononexperimental.so.%{major}*

#--------------------------------------------------------------------

%define libphonon %mklibname phonon %{major}

%package -n %{libphonon}
Summary:	Phonon shared library
Group:		System/Libraries

%description -n %{libphonon}
Library for Phonon.

%files -n %{libphonon}
%{_libdir}/libphonon.so.%{major}*

#--------------------------------------------------------------------

%package designer-plugin
Summary:	Phonon Designer plugin
Group:		System/Libraries
Conflicts:	qt4-designer-plugin-phonon <= 5:4.7.4

%description designer-plugin
Designer plugin for Phonon Qt4.

%files designer-plugin
%{_qt_plugindir}/designer/libphononwidgets.so

#--------------------------------------------------------------------
%package devel
Summary:	Phonon Qt4 development files
Group:		Development/KDE and Qt
Requires:	%{libphononexperimental} = %{EVRD}
Requires:	%{libphonon} = %{EVRD}
Requires:	%{name}-designer-plugin = %{EVRD}

%description devel
Phonon Qt4 development files.

%files devel
%{_qt_datadir}/mkspecs/modules/qt_phonon.pri
%{_datadir}/dbus-1/interfaces/org.kde.Phonon.AudioOutput.xml
%{_datadir}/phonon/buildsystem/
%{_includedir}/phonon/
%{_includedir}/KDE/
%{_libdir}/libphonon.so
%{_libdir}/libphononexperimental.so
%{_libdir}/pkgconfig/phonon.pc
%{_libdir}/cmake/phonon

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n phonon-%{version}

mkdir Qt4
mv `ls -1 |grep -v Qt4` Qt4

%build
pushd Qt4
%cmake \
	-DPHONON_INSTALL_QT_EXTENSIONS_INTO_SYSTEM_QT=ON

%make
popd


%install
%makeinstall_std -C Qt4/build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15716 |21mr|php-7.4.33-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _build_pkgcheck_srpm %{nil}

# LTO causes a build failure because something forces a linking step of
# libphp7_common to barf because libtool foolishly takes -flto out of
# compiler flags
#define _disable_lto 1

%define build_test 0
%{?_with_test: %{expand: %%global build_test 1}}
%{?_without_test: %{expand: %%global build_test 0}}

%define build_libmagic 0
%{?_with_libmagic: %{expand: %%global build_libmagic 1}}
%{?_without_libmagic: %{expand: %%global build_libmagic 0}}

%define php7_common_major 5
%define libname %mklibname php7_common %{php7_common_major}

%global __requires_exclude '.*/bin/awk|.*/bin/gawk'

# API/ABI check
%define apiver 20190902
%define zendver 20190902
%define pdover 20170320

Summary:	The PHP7 scripting language
Name:		php
Version:	7.4.33
Release:	11
Source0:	http://ch1.php.net/distributions/php-%{version}.tar.gz
Source1:	macros.php
Group:		Development/PHP
License:	PHP License
URL:		http://www.php.net
Source2:	maxlifetime
Source3:	php.crond
Source4:	php-fpm.service
Source5:	php-fpm.sysconf
Source6:	php-fpm.logrotate
# S7 comes from ext/fileinfo/create_data_file.php but could be removed someday
Source7:	create_data_file.php
Source9:        php-fpm-tmpfiles.conf
Source10:	php.ini
Patch0:		php-7.3.4-libtool-2.4.6.patch
Patch1:		php-shared.diff
Patch3:		php-7.4.1-missing-symbols.patch
Patch4:		https://src.fedoraproject.org/rpms/php/raw/master/f/php-7.4.0-phpize.patch
Patch5:		php-phpbuilddir.diff
# http://www.outoforder.cc/projects/apache/mod_transform/
# http://www.outoforder.cc/projects/apache/mod_transform/patches/php7-apache2-filters.patch
Patch6:		php5-apache2-filters.diff
Patch8:		php-xmlrpc_epi.patch
Patch10:	php-7.3.0rc1-compile.patch
Patch11:	php-5.3.8-bdb-5.2.diff
Patch12:	php-5.5.6-db-6.0.patch
Patch13:	php-7.0.1-clang-warnings.patch
Patch14:	php-7.2.0-visibility.patch
#####################################################################
# Stolen from PLD
Patch20:	php-mail.diff
Patch22:	php-dba-link.patch
Patch23:	php-zlib-for-getimagesize.patch
# for kolab2
# P50 was rediffed from PLD (php-5.3.3-8.src.rpm) which merges the annotation and status-current patches
Patch27:	php-imap-annotation+status-current.diff
# P51 was taken from http://kolab.org/cgi-bin/viewcvs-kolab.cgi/server/php/patches/php-5.3.2/
Patch28:	php-imap-myrights.diff
Patch29:	php-5.3.x-fpm-0.6.5-shared.diff
Patch30:	php-5.3.x-fpm-0.6.5-mdv_conf.diff
#####################################################################
# stolen from debian
Patch50:	php-session.save_path.diff
#####################################################################
# Stolen from fedora
Patch102:	php-install.diff
Patch105:	php-umask.diff
# Fixes for extension modules
Patch113:	php-libc-client.diff
Patch114:	php-no_pam_in_c-client.diff
# Fix bugs
Patch121:	php-bug43221.diff
Patch122:	php-not-use-libgd-const.patch 
# Sauce fixes
Patch127:	php-7.4.30-svace-fixes.patch
Patch128:	0001-Revert-Throw-notice-on-array-access-on-illegal-type.patch
Patch200:	fix-include-e2k.patch
# fix for openssl3, rediff from https://git.remirepo.net/cgit/rpms/scl-php74/php.git/plain/php-7.4.26-openssl3.patch
Patch201:	php-7.4.33-openssl3.patch
Patch202:	CVE-2022-4900.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	file
BuildRequires:	flex
BuildRequires:	lemon
BuildRequires:	libtool
BuildRequires:	openssl
BuildRequires:	systemd
BuildRequires:	re2c >= 0.13.4

BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(libxcrypt)
BuildRequires:	pkgconfig(libpcre2-posix)
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(libpcre2-16)
BuildRequires:	pkgconfig(libpcre2-32)
BuildRequires:	pkgconfig(xmlrpc)

BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	aspell-devel
BuildRequires:	bzip2-devel
BuildRequires:	c-client-devel >= 2007
BuildRequires:	db-devel
BuildRequires:	elfutils-devel
BuildRequires:	freetds-devel >= 0.63
BuildRequires:	gdbm-devel
BuildRequires:	gd-devel >= 2.0.33
BuildRequires:	gettext-devel
BuildRequires:	gmp-devel
BuildRequires:	gpm-devel
BuildRequires:	icu-devel >= 49.0
BuildRequires:	jpeg-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
BuildRequires:	libtool-devel
BuildRequires:	mysql-devel >= 4.1.7
BuildRequires:	lm_sensors-devel
BuildRequires:	net-snmp-devel
BuildRequires:	net-snmp-mibs
BuildRequires:	onig-devel >= 5.9.2
BuildRequires:	pam-devel
BuildRequires:	postgresql-devel
BuildRequires:	readline-devel
BuildRequires:	recode-devel
BuildRequires:	tidy-devel
BuildRequires:	unixODBC-devel >= 2.2.1
BuildRequires:	xmlrpc-epi-devel
%if %{build_libmagic}
BuildRequires:	magic-devel
%endif
Epoch: 3

# stupid postgresql... stupid build system...
# this is needed due to the postgresql packaging and due to bugs like this:
# https://qa.mandriva.com/show_bug.cgi?id=52527
%define postgresql_version %(pg_config &>/dev/null && pg_config 2>/dev/null | grep "^VERSION" | awk '{ print $4 }' 2>/dev/null || echo 0)

%description
PHP7 is an HTML-embeddable scripting language. PHP7 offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP7 is fairly simple. The
most common use of PHP7 coding is probably as a replacement for CGI scripts.

%package	cli
Summary:	PHP7 CLI interface
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-ctype >= %{EVRD}
Requires:	%{name}-filter >= %{EVRD}
Requires:	%{name}-ftp >= %{EVRD}
Requires:	%{name}-gettext >= %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-json >= %{EVRD}
Requires:	%{name}-openssl >= %{EVRD}
Requires:	%{name}-posix >= %{EVRD}
Requires:	%{name}-session >= %{EVRD}
# Suggests:	%{name}-suhosin >= 0.9.33
Requires:	%{name}-sysvsem >= %{EVRD}
Requires:	%{name}-sysvshm >= %{EVRD}
Requires:	%{name}-timezonedb >= 3:2009.10
Requires:	%{name}-tokenizer >= %{EVRD}
Requires:	%{name}-xmlreader >= %{EVRD}
Requires:	%{name}-xmlwriter >= %{EVRD}
Requires:	%{name}-zlib >= %{EVRD}
Requires:	%{name}-xml >= %{EVRD}
Provides:	%{name} = %{EVRD}
Provides:	/usr/bin/php

%description	cli
PHP7 is an HTML-embeddable scripting language. PHP7 offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP7 is fairly simple. The
most common use of PHP7 coding is probably as a replacement for CGI scripts.

This package contains a command-line (CLI) version of php. You must also
install libphp7_common. If you need apache module support, you also need to
install the apache-mod_php package.

%package	dbg
Summary:	Debugging version of the PHP7 CLI interface
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-ctype >= %{EVRD}
Requires:	%{name}-filter >= %{EVRD}
Requires:	%{name}-ftp >= %{EVRD}
Requires:	%{name}-gettext >= %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-json >= %{EVRD}
Requires:	%{name}-openssl >= %{EVRD}
Requires:	%{name}-posix >= %{EVRD}
Requires:	%{name}-session >= %{EVRD}
# Suggests:	%{name}-suhosin >= 0.9.33
Requires:	%{name}-sysvsem >= %{EVRD}
Requires:	%{name}-sysvshm >= %{EVRD}
Requires:	%{name}-timezonedb >= 3:2009.10
Requires:	%{name}-tokenizer >= %{EVRD}
Requires:	%{name}-xmlreader >= %{EVRD}
Requires:	%{name}-xmlwriter >= %{EVRD}
Requires:	%{name}-zlib >= %{EVRD}
Requires:	%{name}-xml >= %{EVRD}
Provides:	%{name} = %{EVRD}

%description	dbg
PHP7 is an HTML-embeddable scripting language. PHP7 offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP7 is fairly simple. The
most common use of PHP7 coding is probably as a replacement for CGI scripts.

This package contains a debugging version of php. You must also
install libphp7_common. If you need apache module support, you also need to
install the apache-mod_php package.

%package	cgi
Summary:	PHP7 CGI interface
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-ctype >= %{EVRD}
Requires:	%{name}-filter >= %{EVRD}
Requires:	%{name}-ftp >= %{EVRD}
Requires:	%{name}-gettext >= %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-json >= %{EVRD}
Requires:	%{name}-openssl >= %{EVRD}
Requires:	%{name}-posix >= %{EVRD}
Requires:	%{name}-session >= %{EVRD}
# Suggests:	%{name}-suhosin >= 0.9.33
Requires:	%{name}-sysvsem >= %{EVRD}
Requires:	%{name}-sysvshm >= %{EVRD}
Requires:	%{name}-timezonedb >= 3:2009.10
Requires:	%{name}-tokenizer >= %{EVRD}
Requires:	%{name}-xmlreader >= %{EVRD}
Requires:	%{name}-xmlwriter >= %{EVRD}
Requires:	%{name}-zlib >= %{EVRD}
Requires:	%{name}-xml >= %{EVRD}
Provides:	%{name} = %{EVRD}
Provides:	%{name}-fcgi = %{EVRD}
Obsoletes:	%{name}-fcgi < %{EVRD}

%description	cgi
PHP7 is an HTML-embeddable scripting language. PHP7 offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP7 is fairly simple. The
most common use of PHP7 coding is probably as a replacement for CGI scripts.

This package contains a standalone (CGI) version of php with FastCGI support.
You must also install libphp7_common. If you need apache module support, you
also need to install the apache-mod_php package.

%package -n	%{libname}
Summary:	Shared library for PHP7
Group:		Development/Other
Provides:	%{name}-pcre = %{EVRD}
Provides:	%{name}-simplexml = %{EVRD}
Provides:	php(api) = %{apiver}
Provides:	php(zend-abi) = %{zendver}
Requires:	systemd-units
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

%description -n	%{libname}
This package provides the common files to run with different implementations of
PHP7. You need this package if you install the php standalone package or a
webserver with php support (ie: apache-mod_php).

%package	devel
Summary:	Development package for PHP7
Group:		Development/C
Requires:	%{libname} >= %{EVRD}
Requires:	autoconf automake libtool
Requires:	bison
Requires:	byacc
Requires:	chrpath
Requires:	dos2unix
Requires:	flex
Requires:	openssl
Requires:	re2c >= 0.9.11
Requires:	tcl
Requires:	pam-devel
Requires:	pkgconfig(libpcre)
Requires:	pkgconfig(libxml-2.0)
Requires:	pkgconfig(libxslt)
Requires:	pkgconfig(openssl)


%description	devel
The php-devel package lets you compile dynamic extensions to PHP7. Included
here is the source for the php extensions. Instead of recompiling the whole php
binary to add support for, say, oracle, install this package and use the new
self-contained extensions support. For more information, read the file
SELF-CONTAINED-EXTENSIONS.

%package	openssl
Summary:	OpenSSL extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	openssl
This is a dynamic shared object (DSO) for PHP that will add OpenSSL support.

%package	zlib
Summary:	Zlib extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	zlib
This is a dynamic shared object (DSO) for PHP that will add zlib compression
support to PHP.

%package	doc
Summary:	Documentation for PHP
Group:		Development/PHP

%description	doc
Documentation for php.

%package	bcmath
Summary:	The bcmath module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	bcmath
This is a dynamic shared object (DSO) for PHP that will add bc style precision
math functions support.

For arbitrary precision mathematics PHP offers the Binary Calculator which
supports numbers of any size and precision, represented as strings.

%package	bz2
Summary:	Bzip2 extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	bz2
This is a dynamic shared object (DSO) for PHP that will add bzip2 compression
support to PHP.

The bzip2 functions are used to transparently read and write bzip2 (.bz2)
compressed files.

%package	calendar
Summary:	Calendar extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	calendar
This is a dynamic shared object (DSO) for PHP that will add calendar support.

The calendar extension presents a series of functions to simplify converting
between different calendar formats. The intermediary or standard it is based on
is the Julian Day Count. The Julian Day Count is a count of days starting from
January 1st, 4713 B.C. To convert between calendar systems, you must first
convert to Julian Day Count, then to the calendar system of your choice. Julian
Day Count is very different from the Julian Calendar! For more information on
Julian Day Count, visit http://www.hermetic.ch/cal_stud/jdn.htm. For more
information on calendar systems visit
http://www.boogle.com/info/cal-overview.html. Excerpts from this page are
included in these instructions, and are in quotes.

%package	ctype
Summary:	Ctype extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	ctype
This is a dynamic shared object (DSO) for PHP that will add ctype support.

The functions provided by this extension check whether a character or string
falls into a certain character class according to the current locale (see also
setlocale()).

%package	curl
Summary:	Curl extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	curl
This is a dynamic shared object (DSO) for PHP that will add curl support.

PHP supports libcurl, a library created by Daniel Stenberg, that allows you to
connect and communicate to many different types of servers with many different
types of protocols. libcurl currently supports the http, https, ftp, gopher,
telnet, dict, file, and ldap protocols. libcurl also supports HTTPS
certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with
PHP's ftp extension), HTTP form based upload, proxies, cookies, and
user+password authentication.

%package	dba
Summary:	DBA extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	dba
This is a dynamic shared object (DSO) for PHP that will add flat-file databases
(DBA) support.

These functions build the foundation for accessing Berkeley DB style databases.

This is a general abstraction layer for several file-based databases. As such,
functionality is limited to a common subset of features supported by modern
databases such as Sleepycat Software's DB2. (This is not to be confused with
IBM's DB2 software, which is supported through the ODBC functions.)

%package	dom
Summary:	Dom extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	dom
This is a dynamic shared object (DSO) for PHP that will add dom support.

The DOM extension is the replacement for the DOM XML extension from PHP 4. The
extension still contains many old functions, but they should no longer be used.
In particular, functions that are not object-oriented should be avoided.

The extension allows you to operate on an XML document with the DOM API.

%package	enchant
Summary:	Libenchant binder, support near all spelling tools
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	enchant
Enchant is a binder for libenchant. Libenchant provides a common API for many
spell libraries:

 - aspell/pspell (intended to replace ispell)
 - hspell (hebrew)
 - ispell
 - myspell (OpenOffice project, mozilla)
 - uspell (primarily Yiddish, Hebrew, and Eastern European languages)
   A plugin system allows to add custom spell support.
   see www.abisource.com/enchant/

%package	sodium
Summary:	Wrapper for the Sodium cryptographic library
Provides:	php-pecl(libsodium) = %{version}
Provides:	php-pecl(libsodium)%{?_isa} = %{version}

%description sodium
The php-sodium package provides a simple,
low-level PHP extension for the libsodium cryptographic library.

%package	exif
Summary:	EXIF extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-mbstring >= %{EVRD}

%description	exif
This is a dynamic shared object (DSO) for PHP that will add EXIF tags support
in image files.

With the exif extension you are able to work with image meta data. For example,
you may use exif functions to read meta data of pictures taken from digital
cameras by working with information stored in the headers of the JPEG and TIFF
images.

%package	fileinfo
Summary:	Fileinfo extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	fileinfo
This extension allows retrieval of information regarding vast majority of file.
This information may include dimensions, quality, length etc...

Additionally it can also be used to retrieve the mime type for a particular
file and for text files proper language encoding.

%package	filter
Summary:	Extension for safely dealing with input parameters
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	filter
The Input Filter extension is meant to address this issue by implementing a set
of filters and mechanisms that users can use to safely access their input data.

%package	ftp
Summary:	FTP extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	ftp
This is a dynamic shared object (DSO) for PHP that will add FTP support.

The functions in this extension implement client access to file servers
speaking the File Transfer Protocol (FTP) as defined in
http://www.faqs.org/rfcs/rfc959. This extension is meant for detailed access to
an FTP server providing a wide range of control to the executing script. If you
only wish to read from or write to a file on an FTP server, consider using the
ftp:// wrapper  with the filesystem functions  which provide a simpler and more
intuitive interface.

%package	gd
Summary:	GD extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	gd
This is a dynamic shared object (DSO) for PHP that will add GD support,
allowing you to create and manipulate images with PHP using the gd library.

PHP is not limited to creating just HTML output. It can also be used to create
and manipulate image files in a variety of different image formats, including
gif, png, jpg, wbmp, and xpm. Even more convenient, PHP can output image
streams directly to a browser. You will need to compile PHP with the GD library
of image functions for this to work. GD and PHP may also require other
libraries, depending on which image formats you want to work with.

You can use the image functions in PHP to get the size of JPEG, GIF, PNG, SWF,
TIFF and JPEG2000 images.

%package	gettext
Summary:	Gettext extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	gettext
This is a dynamic shared object (DSO) for PHP that will add gettext support.

The gettext functions implement an NLS (Native Language Support) API which can
be used to internationalize your PHP applications. Please see the gettext
documentation for your system for a thorough explanation of these functions or
view the docs at http://www.gnu.org/software/gettext/manual/gettext.html.

%package	gmp
Summary:	Gmp extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	gmp
This is a dynamic shared object (DSO) for PHP that will add arbitrary length
number support using the GNU MP library.

%package	hash
Summary:	HASH Message Digest Framework
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	hash
Native implementations of common message digest algorithms using a generic
factory method.

Message Digest (hash) engine. Allows direct or incremental processing of
arbitrary length messages using a variety of hashing algorithms.

%package	iconv
Summary:	Iconv extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	iconv
This is a dynamic shared object (DSO) for PHP that will add iconv support.

This module contains an interface to iconv character set conversion facility.
With this module, you can turn a string represented by a local character set
into the one represented by another character set, which may be the Unicode
character set. Supported character sets depend on the iconv implementation of
your system. Note that the iconv function on some systems may not work as you
expect. In such case, it'd be a good idea to install the GNU libiconv library.
It will most likely end up with more consistent results.

%package	imap
Summary:	IMAP extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	imap
This is a dynamic shared object (DSO) for PHP that will add IMAP support.

These functions are not limited to the IMAP protocol, despite their name. The
underlying c-client library also supports NNTP, POP3 and local mailbox access
methods.

%package	intl
Summary:	Internationalization extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	intl
This is a dynamic shared object (DSO) for PHP that will add
Internationalization support.

Internationalization extension implements ICU library functionality in PHP.

%package	json
Summary:	JavaScript Object Notation
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	json
Support for JSON (JavaScript Object Notation) serialization.

%package	ldap
Summary:	LDAP extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	ldap
This is a dynamic shared object (DSO) for PHP that will add LDAP support.

LDAP is the Lightweight Directory Access Protocol, and is a protocol used to
access "Directory Servers". The Directory is a special kind of database that
holds information in a tree structure.

The concept is similar to your hard disk directory structure, except that in
this context, the root directory is "The world" and the first level
subdirectories are "countries". Lower levels of the directory structure contain
entries for companies, organisations or places, while yet lower still we find
directory entries for people, and perhaps equipment or documents.

%package	mbstring
Summary:	MBstring extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
# To make it easier to find for e.g. Roundcube requesting php-multibyte
Provides:	%{name}-multibyte = %{EVRD}

%description	mbstring
This is a dynamic shared object (DSO) for PHP that will add multibyte string
support.

mbstring provides multibyte specific string functions that help you deal with
multibyte encodings in PHP. In addition to that, mbstring handles character
encoding conversion between the possible encoding pairs. mbstring is designed
to handle Unicode-based encodings such as UTF-8 and UCS-2 and many single-byte
encodings for convenience.

%package	mysqli
Summary:	MySQL database module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
# mysqlnd must be loaded before mysqli (undefined symbol: mysqlnd_global_stats)
Requires:	%{name}-mysqlnd = %{EVRD}
Provides:	%{name}-mysql = %{EVRD}
Obsoletes:	%{name}-mysql < %{EVRD}

%description	mysqli
This is a dynamic shared object (DSO) for PHP that will add MySQL database
support.

The mysqli extension allows you to access the functionality provided by MySQL
4.1 and above. It is an improved version of the older PHP MySQL driver,
offering various benefits. The developers of the PHP programming language
recommend using MySQLi when dealing with MySQL server versions 4.1.3 and newer
(takes advantage of new functionality)

More information about the MySQL Database server can be found at
http://www.mysql.com/

Documentation for MySQL can be found at http://dev.mysql.com/doc/.

Documentation for MySQLi can be found at http://www.php.net/manual/en/mysqli.overview.php.

%package	mysqlnd
Summary:	MySQL native database module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	mysqlnd
This is a dynamic shared object (DSO) for PHP that will add MySQL native
database support.

These functions allow you to access MySQL database servers. More information
about MySQL can be found at http://www.mysql.com/.

Documentation for MySQL can be found at http://dev.mysql.com/doc/.

%package	odbc
Summary:	ODBC extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	odbc
This is a dynamic shared object (DSO) for PHP that will add ODBC support.

In addition to normal ODBC support, the Unified ODBC functions in PHP allow you
to access several databases that have borrowed the semantics of the ODBC API to
implement their own API. Instead of maintaining multiple database drivers that
were all nearly identical, these drivers have been unified into a single set of
ODBC functions.

%package	opcache
Summary:	Opcode cache for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	opcache
Opcode cache for PHP

%package	pcntl
Summary:	Process Control extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	pcntl
This is a dynamic shared object (DSO) for PHP that will add process spawning
and control support. It supports functions like fork(), waitpid(), signal()
etc.

Process Control support in PHP implements the Unix style of process creation,
program execution, signal handling and process termination. Process Control
should not be enabled within a webserver environment and unexpected results may
happen if any Process Control functions are used within a webserver
environment.

%package	pdo
Summary:	PHP Data Objects Interface
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
Provides:	%{name}-pdo-abi  = %{pdover}
Provides:	php(pdo-abi) = %{pdover}

%description	pdo
PDO provides a uniform data access interface, sporting advanced features such
as prepared statements and bound parameters. PDO drivers are dynamically
loadable and may be developed independently from the core, but still accessed
using the same API.

Read the documentation at http://www.php.net/pdo for more information.

%package	pdo_dblib
Summary:	Sybase Interface driver for PDO
Group:		Development/PHP
Requires:       freetds >= 0.63
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}

%description	pdo_dblib
PDO_DBLIB is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to Microsoft SQL Server and Sybase databases through the
FreeTDS libary.

%package	pdo_mysql
Summary:	MySQL Interface driver for PDO
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}

%description	pdo_mysql
PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to MySQL 3.x and 4.x databases.

PDO_MYSQL will take advantage of native prepared statement support present in
MySQL 4.1 and higher. If you're using an older version of the mysql client
libraries, PDO will emulate them for you.

%package	pdo_odbc
Summary:	ODBC v3 Interface driver for PDO
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}

%description	pdo_odbc
PDO_ODBC is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to databases through ODBC drivers or through the IBM DB2
Call Level Interface (DB2 CLI) library. PDO_ODBC currently supports three
different "flavours" of database drivers:

 o ibm-db2  - Supports access to IBM DB2 Universal Database, Cloudscape, and
              Apache Derby servers through the free DB2 client.

 o unixODBC - Supports access to database servers through the unixODBC driver
              manager and the database's own ODBC drivers.

 o generic  - Offers a compile option for ODBC driver managers that are not
              explicitly supported by PDO_ODBC.

%package	pdo_pgsql
Summary:	PostgreSQL interface driver for PDO
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}
Requires:	postgresql-libs >= %{postgresql_version}

%description	pdo_pgsql
PDO_PGSQL is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to PostgreSQL databases.

%package	pdo_sqlite
Summary:	SQLite v3 Interface driver for PDO
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}

%description	pdo_sqlite
PDO_SQLITE is a driver that implements the PHP Data Objects (PDO) interface to
enable access to SQLite 3 databases.

This extension provides an SQLite v3 driver for PDO. SQLite V3 is NOT
compatible with the bundled SQLite 2 in PHP 7, but is a significant step
forwards, featuring complete utf-8 support, native support for blobs, native
support for prepared statements with bound parameters and improved concurrency.

%package	pgsql
Summary:	PostgreSQL database module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
Requires:	postgresql-libs >= %{postgresql_version}

%description	pgsql
This is a dynamic shared object (DSO) for PHP that will add PostgreSQL database
support.

PostgreSQL database is Open Source product and available without cost.
Postgres, developed originally in the UC Berkeley Computer Science Department,
pioneered many of the object-relational concepts now becoming available in some
commercial databases. It provides SQL92/SQL99 language support, transactions,
referential integrity, stored procedures and type extensibility. PostgreSQL is
an open source descendant of this original Berkeley code.

%package	phar
Summary:	Allows running of complete applications out of .phar files
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-bz2

%description	phar
This is the extension version of PEAR's PHP_Archive package. Support for
zlib, bz2 and crc32 is achieved without any dependency other than the external
zlib or bz2 extension.

.phar files can be read using the phar stream, or with the Phar class. If the
SPL extension is available, a Phar object can be used as an array to iterate
over a phar's contents or to read files directly from the phar.

Phar archives can be created using the streams API or with the Phar class, if
the phar.readonly ini variable is set to false.

Full support for MD5 and SHA1 signatures is possible. Signatures can be
required if the ini variable phar.require_hash is set to true. When PECL
extension hash is avaiable then SHA-256 and SHA-512 signatures are supported as
well.

%package	posix
Summary:	POSIX extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	posix
This is a dynamic shared object (DSO) for PHP that will add POSIX functions
support to PHP.

This module contains an interface to those functions defined in the IEEE 1003.1
(POSIX.1) standards document which are not accessible through other means.
POSIX.1 for example defined the open(), read(), write() and close() functions,
too, which traditionally have been part of PHP 3 for a long time. Some more
system specific functions have not been available before, though, and this
module tries to remedy this by providing easy access to these functions.

%package	pspell
Summary:	Pspell extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	pspell
This is a dynamic shared object (DSO) for PHP that will add pspell support to
PHP.

These functions allow you to check the spelling of a word and offer
suggestions.

%package	readline
Summary:	Readline extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	readline
This PHP module adds support for readline functions (only for cli and cgi
SAPIs).

The readline() functions implement an interface to the GNU Readline library.
These are functions that provide editable command lines. An example being the
way Bash allows you to use the arrow keys to insert characters or scroll
through command history. Because of the interactive nature of this library, it
will be of little use for writing Web applications, but may be useful when
writing scripts used from a command line.

%package	recode
Summary:	Recode extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	recode
This is a dynamic shared object (DSO) for PHP that will add recode support
using the recode library.

This module contains an interface to the GNU Recode library. The GNU Recode
library converts files between various coded character sets and surface
encodings. When this cannot be achieved exactly, it may get rid of the
offending characters or fall back on approximations. The library recognises or
produces nearly 150 different character sets and is able to convert files
between almost any pair. Most RFC 1345 character sets are supported.

%package	session
Summary:	Session extension module for PHP
Group:		Development/PHP
Requires(pre):	user(apache)
Requires(pre):	group(apache)
Requires:	%{libname} >= %{EVRD}

%description	session
This is a dynamic shared object (DSO) for PHP that will add session support.

Session support in PHP consists of a way to preserve certain data across
subsequent accesses. This enables you to build more customized applications and
increase the appeal of your web site.

A visitor accessing your web site is assigned a unique id, the so-called
session id. This is either stored in a cookie on the user side or is propagated
in the URL.

%package	shmop
Summary:	Shared Memory Operations extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	shmop
This is a dynamic shared object (DSO) for PHP that will add Shared Memory
Operations support.

Shmop is an easy to use set of functions that allows PHP to read, write, create
and delete Unix shared memory segments.

%package	snmp
Summary:	NET-SNMP extension module for PHP
Group:		Development/PHP
Requires:	net-snmp-mibs
Requires:	%{libname} >= %{EVRD}

%description	snmp
This is a dynamic shared object (DSO) for PHP that will add SNMP support using
the NET-SNMP libraries.

In order to use the SNMP functions you need to install the NET-SNMP package.

%package	soap
Summary:	Soap extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	soap
This is a dynamic shared object (DSO) for PHP that will add soap support.

The SOAP extension can be used to write SOAP Servers and Clients. It supports
subsets of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications.

%package	sockets
Summary:	Sockets extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	sockets
This is a dynamic shared object (DSO) for PHP that will add sockets support.

The socket extension implements a low-level interface to the socket
communication functions based on the popular BSD sockets, providing the
possibility to act as a socket server as well as a client.

%package	sqlite3
Summary:	SQLite database bindings for PHP
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}
Obsoletes:	%name-sqlite < %{EVRD}

%description	sqlite3
This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a
C library that implements an embeddable SQL database engine. Programs that link
with the SQLite library can have SQL database access without running a separate
RDBMS process.

SQLite is not a client library used to connect to a big database server. SQLite
is the server. The SQLite library reads and writes directly to and from the
database files on disk.

%package	sysvmsg
Summary:	SysV msg extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	sysvmsg
This is a dynamic shared object (DSO) for PHP that will add SysV message queues
support.

%package	sysvsem
Summary:	SysV sem extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	sysvsem
This is a dynamic shared object (DSO) for PHP that will add SysV semaphores
support.

%package	sysvshm
Summary:	SysV shm extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	sysvshm
This is a dynamic shared object (DSO) for PHP that will add SysV Shared Memory
support.

%package	tidy
Summary:	Tidy HTML Repairing and Parsing for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	tidy
Tidy is a binding for the Tidy HTML clean and repair utility which allows you
to not only clean and otherwise manipluate HTML documents, but also traverse
the document tree using the Zend Engine 2 OO semantics.

%package	tokenizer
Summary:	Tokenizer extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	tokenizer
This is a dynamic shared object (DSO) for PHP that will add Tokenizer support.

The tokenizer functions provide an interface to the PHP tokenizer embedded in
the Zend Engine. Using these functions you may write your own PHP source
analyzing or modification tools without having to deal with the language
specification at the lexical level.

%package	xml
Summary:	XML extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	xml
This is a dynamic shared object (DSO) for PHP that will add XML support. This
extension lets you create XML parsers and then define handlers for different
XML events.

%package	xmlreader
Summary:	Xmlreader extension module for PHP
Group:		Development/PHP
Requires:	%{name}-dom
Requires:	%{libname} >= %{EVRD}

%description	xmlreader
XMLReader represents a reader that provides non-cached, forward-only access to
XML data. It is based upon the xmlTextReader api from libxml

%package	xmlrpc
Summary:	Xmlrpc extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	xmlrpc
This is a dynamic shared object (DSO) for PHP that will add XMLRPC support.

These functions can be used to write XML-RPC servers and clients. You can find
more information about XML-RPC at http://www.xmlrpc.com/, and more
documentation on this extension and its functions at
http://xmlrpc-epi.sourceforge.net/.

%package	xmlwriter
Summary:	Provides fast, non-cached, forward-only means to write XML data
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	xmlwriter
This extension wraps the libxml xmlWriter API. Represents a writer that
provides a non-cached, forward-only means of generating streams or files
containing XML data.

%package	xsl
Summary:	Xsl extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	xsl
This is a dynamic shared object (DSO) for PHP that will add xsl support.

The XSL extension implements the XSL standard, performing XSLT transformations
using the libxslt library

%package	zip
Summary:	A zip management extension for PHP
Group:		Development/PHP

%description	zip
This is a dynamic shared object (DSO) for PHP that will add zip support to
create and read zip files using the libzip library.

%package	fpm
Summary:	PHP7 FastCGI Process Manager
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-ctype >= %{EVRD}
Requires:	%{name}-filter >= %{EVRD}
#Requires:	%{name}-ftp >= %{EVRD}
Requires:	%{name}-gettext >= %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-json >= %{EVRD}
Requires:	%{name}-openssl >= %{EVRD}
Requires:	%{name}-posix >= %{EVRD}
Requires:	%{name}-session >= %{EVRD}
# Suggests:	%{name}-suhosin >= 0.9.33
Requires:	%{name}-sysvsem >= %{EVRD}
Requires:	%{name}-sysvshm >= %{EVRD}
Requires:	%{name}-timezonedb >= 3:2009.10
Requires:	%{name}-tokenizer >= %{EVRD}
Requires:	%{name}-xmlreader >= %{EVRD}
Requires:	%{name}-xmlwriter >= %{EVRD}
Requires:	%{name}-zlib >= %{EVRD}
Requires:	%{name}-xml >= %{EVRD}
Requires(pre):	user(apache)
Requires(pre):	group(apache)
%if %{mdvver} >= 202310
Requires(post):	/usr/bin/systemd-tmpfiles
%else
Requires(post):	/bin/systemd-tmpfiles
%endif
Provides:	%{name} = %{EVRD}

%description	fpm
PHP7 is an HTML-embeddable scripting language. PHP7 offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP7 is fairly simple. The
most common use of PHP7 coding is probably as a replacement for CGI scripts.

This package contains the FastCGI Process Manager. You must also install
libphp7_common.

%package -n	apache-mod_php
Summary:	The PHP HTML-embedded scripting language for use with apache
Group:		System/Servers
Requires:	%{libname} = %{EVRD}
Requires:	apache-base >= 2.4.0
Requires:	apache-modules >= 2.4.0
Requires:	apache-mpm >= 2.4.0
Requires:	%{name}-ctype = %{EVRD}
Requires:	%{name}-filter = %{EVRD}
#Requires:	%{name}-ftp = %{EVRD}
Requires:	%{name}-gettext = %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-json = %{EVRD}
Requires:	%{name}-openssl = %{EVRD}
Requires:	%{name}-pcre = %{EVRD}
Requires:	%{name}-posix = %{EVRD}
Requires:	%{name}-session = %{EVRD}
Requires:	%{name}-sysvsem = %{EVRD}
Requires:	%{name}-tokenizer = %{EVRD}
Requires:	%{name}-xmlreader = %{EVRD}
Requires:	%{name}-xmlwriter = %{EVRD}
Requires:	%{name}-zlib = %{EVRD}
Requires:	%{name}-xml = %{EVRD}
Requires:	%{name}-timezonedb >= 3:2009.10
# Suggests:	%{name}-suhosin >= 0.9.29
Conflicts:	%{name}-suhosin < 0.9.29
Conflicts:	apache-mpm-worker >= 2.4.0
# mod_php with the event mpm is not an recommended by php devs, but
# is (at least somewhat) working. Let's not do a hard conflict.
# Conflicts:	apache-mpm-event >= 2.4.0
Provides:	mod_php = %{EVRD}
BuildRequires:	dos2unix

%description -n apache-mod_php
PHP7 is an HTML-embedded scripting language. PHP7 attempts to make it easy for
developers to write dynamically generated web pages. PHP7 also offers built-in
database integration for several commercial and non-commercial database
management systems, so writing a database-enabled web page with PHP7 is fairly
simple. The most common use of PHP coding is probably as a replacement for CGI
scripts. The %{name} module enables the apache web server to understand
and process the embedded PHP language in web pages.

This package contains PHP version 7. You'll also need to install the apache web
server.


%package -n	php-ini
Summary:	INI files for PHP
Group:		Development/Other

%description -n	php-ini
The php-ini package contains the ini file required for PHP.


%prep
export LC_ALL=en_US.utf-8
export LANG=en_US.utf-8
export LANGUAGE=en_US.utf-8
export LANGUAGES=en_US.utf-8
%setup -qn %{name}-%{version}

# Safety check for API version change.
vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
if test "x${vapi}" != "x%{apiver}"; then
   : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
   : Update the apiver macro and rebuild.
   exit 1
fi

vzend=`sed -n '/#define ZEND_MODULE_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_modules.h`
if test "x${vzend}" != "x%{zendver}"; then
   : Error: Upstream Zend ABI version is now ${vzend}, expecting %{zendver}.
   : Update the zendver macro and rebuild.
   exit 1
fi

# Safety check for PDO ABI version change
vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[	]//;p}' ext/pdo/php_pdo_driver.h`
if test "x${vpdo}" != "x%{pdover}"; then
   : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
   : Update the pdover macro and rebuild.
   exit 1
fi

%if %{build_libmagic}
if ! [ -f %{_datadir}/misc/magic.mgc ]; then
    echo "ERROR: the %{_datadir}/misc/magic.mgc file is needed"
    exit 1
fi
%endif

# the ".droplet" suffix is here to nuke the backups later..., we don't want those in php-devel
# (same goes for the more common "~" suffix)

%patch0 -p1 -b .libtool246~
%patch1 -p1 -b .shared.droplet
%patch3 -p1 -b .missingsym~
%patch4 -p1 -b .phpize~
%patch5 -p1 -b .phpbuilddir.droplet
%patch6 -p1 -b .apache2-filters.droplet
%patch8 -p1 -b .xmlrpc_epi_header
%patch10 -p1 -b .compile~
%patch11 -p1 -b .bdb-5.2.droplet
%patch12 -p1 -b .db60~
%patch13 -p1 -b .clangwarn~
%patch14 -p1 -b .0014~

#####################################################################
# Stolen from PLD
# FIXME needs porting
#patch20 -p1 -b .mail.droplet
%patch22 -p1 -b .dba-link.droplet
%patch23 -p1 -b .zlib-for-getimagesize.droplet
# for kolab2
# FIXME needs porting
#patch27 -p1 -b .imap-annotation.droplet
#patch28 -p1 -b .imap-myrights.droplet
# fpm stuff
%patch29 -p1 -b .shared-fpm.droplet
%patch30 -p1 -b .fpmmdv.droplet

#####################################################################
# stolen from debian
%patch50 -p1 -b .session.save_path.droplet

#####################################################################
# Stolen from fedora
%patch102 -p1 -b .install.droplet
%patch105 -p1 -b .umask.droplet
%patch113 -p1 -b .libc-client-php.droplet
%patch114 -p1 -b .no_pam_in_c-client.droplet

# upstream fixes
%patch121 -p0 -b .bug43221.droplet
%patch122 -p1

%patch127 -p1
%patch128 -p1

%ifarch %{e2k}
%patch200 -p1
%endif
%patch201 -p1
%patch202 -p1

cp %{SOURCE2} maxlifetime
cp %{SOURCE3} php.crond
cp %{SOURCE4} php-fpm.service
cp %{SOURCE5} php-fpm.sysconf
cp %{SOURCE6} php-fpm.logrotate
cp %{SOURCE7} create_data_file.php

# lib64 hack
perl -p -i -e "s|/usr/lib|%{_libdir}|" php.crond

# nuke bogus checks becuase i fixed this years ago in our recode package
rm -f ext/recode/config9.m4

# Change perms otherwise rpm would get fooled while finding requires
find -name "*.inc" | xargs chmod 644
find -name "*.php*" | xargs chmod 644
find -name "*README*" | xargs chmod 644

# php7_module -> php_module to ease upgrades
find -type f |xargs sed -i -e 's,php7_module,php_module,g'
sed -i -e 's,APLOG_USE_MODULE(php7,APLOG_USE_MODULE(php,g' sapi/apache2handler/*

mkdir -p php-devel/extensions
mkdir -p php-devel/sapi

# Install test files in php-devel
cp -a tests php-devel

cp -dpR ext/* php-devel/extensions/
rm -f php-devel/extensions/informix/stub.c
rm -f php-devel/extensions/standard/.deps
rm -f php-devel/extensions/skeleton/EXPERIMENTAL

# SAPI
cp -dpR sapi/* php-devel/sapi/
rm -f php-devel/sapi/thttpd/stub.c
rm -f php-devel/sapi/cgi/php.sym
rm -f php-devel/sapi/fastcgi/php.sym
rm -f php-devel/sapi/pi3web/php.sym

# cleanup
find php-devel -name "*.droplet" -o -name "*~" | xargs rm -f

# don't ship MS Windows source
rm -rf php-devel/extensions/com_dotnet

# likewise with these:
find php-devel -name "*.dsp" | xargs rm -f
find php-devel -name "*.mak" | xargs rm -f
find php-devel -name "*.w32" | xargs rm

# maek sure using system libs
rm -rf ext/pcre/pcrelib
rm -rf ext/pdo_sqlite/sqlite
rm -rf ext/xmlrpc/libxmlrpc

# Included ltmain.sh is obsolete and breaks lto
rm -f ltmain.sh
libtoolize --force
aclocal

%build
%config_update
%serverbuild

cp -f %{_datadir}/libtool/build-aux/config.* .

# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

#export CFLAGS="`echo ${CFLAGS} | sed s/O2/O0/` -fPIC -L%{_libdir} -fno-strict-aliasing"
export CFLAGS="${CFLAGS} -fPIC -L%{_libdir} -fno-strict-aliasing -Wno-incompatible-pointer-types"
export CXXFLAGS="${CFLAGS}"
export RPM_OPT_FLAGS="${CFLAGS}"

cat > php-devel/buildext <<EOF
#!/bin/bash
exec %{__cc} -Wall -fPIC -shared $CFLAGS \\
    -I. \`%{_bindir}/php-config --includes\` \\
    -I%{_includedir}/libxml2 \\
    -I%{_includedir}/freetype \\
    -I%{_includedir}/openssl \\
    -I%{_usrsrc}/php-devel/ext \\
    -I%{_includedir}/\$1 \\
    \$4 \$2 -o \$1.so \$3 -lc
EOF

chmod 755 php-devel/buildext

rm -f configure
rm -rf autom4te.cache
./buildconf --force
cp -f %{_bindir}/libtool .

# Do this patch with a perl hack...
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh

export oldstyleextdir=yes
export EXTENSION_DIR="%{_libdir}/php/extensions"
export PROG_SENDMAIL="%{_sbindir}/sendmail"
export GD_SHARED_LIBADD="$GD_SHARED_LIBADD -lm"
# FIXME
# -fuse-ld=gold is a workaround for a very weird bug showing with lld 9.0.1
# and php 7.4.1: "cannot apply additional memory protection after relocation"
# Check if we can get rid of this after lld 10 is released.
%ifarch %{x86_64} %{ix86} %{armx}
SAFE_LDFLAGS=`echo %{ldflags} -fuse-ld=gold|sed -e 's|-Wl,--no-undefined||g'`
export LDFLAGS="$SAFE_LDFLAGS"
%endif
export EXTRA_LIBS="-lz"

# never use "--disable-rpath", it does the opposite

# Configure php7
# FIXME switch to external gd (--with-gd=shared,%_prefix) once php bug #60108 is fixed
for i in fpm cgi cli apxs; do
./configure \
    `[ $i = fpm ] && echo --disable-cli --enable-fpm --with-fpm-user=apache --with-fpm-group=apache` \
    `[ $i = cgi ] && echo --disable-cli` \
    `[ $i = cli ] && echo --disable-cgi --enable-cli` \
    `[ $i = apxs ] && echo --with-apxs2=%{_bindir}/apxs` \
    --build=%{_build} \
    --prefix=%{_prefix} \
    --exec-prefix=%{_prefix} \
    --bindir=%{_bindir} \
    --sbindir=%{_sbindir} \
    --sysconfdir=%{_sysconfdir} \
    --datadir=%{_datadir} \
    --includedir=%{_includedir} \
    --libdir=%{_libdir} \
    --libexecdir=%{_libexecdir} \
    --localstatedir=/var/lib \
    --mandir=%{_mandir} \
    --enable-rtld-now \
    --enable-shared=yes \
    --enable-static=no \
    --with-external-pcre \
    --with-libdir=%{_lib} \
    --with-config-file-path=%{_sysconfdir} \
    --with-config-file-scan-dir=%{_sysconfdir}/php.d \
    --disable-debug  \
    --enable-inline-optimization \
    --with-zlib=%{_prefix} \
    --with-openssl=shared,%{_prefix} \
    --with-openssl-dir=%{_prefix} --enable-ftp=shared \
    --with-pdo-odbc=unixODBC \
    --with-zlib=shared,%{_prefix} --with-zlib-dir=%{_prefix} \
    --without-pear \
    --enable-bcmath=shared \
    --with-bz2=shared,%{_prefix} \
    --enable-calendar=shared \
    --enable-ctype=shared \
    --with-curl=shared,%{_prefix} \
    --enable-dba=shared --with-gdbm --with-db4 --with-cdb  \
    --enable-dom=shared,%{_prefix} \
    --with-enchant=shared,%{_prefix} \
    --enable-exif=shared \
    --enable-fileinfo=shared \
    --enable-filter=shared \
    --enable-intl=shared \
    --enable-json=shared \
    --with-zlib-dir=%{_prefix} \
    --with-gettext=shared,%{_prefix} \
    --with-gmp=shared,%{_prefix} \
    --with-iconv=shared \
    --with-imap=shared,%{_prefix} --with-imap-ssl=%{_prefix} \
    --with-ldap=shared,%{_prefix} --with-ldap-sasl=%{_prefix} \
    --enable-mbstring=shared,%{_prefix} --enable-mbregex \
    --with-mysql-sock=%{_rundir}/mysql/mysql.sock --with-zlib-dir=%{_prefix} \
    --with-mysqli=shared,mysqlnd \
    --enable-mysqlnd=shared,%{_prefix} \
    --with-unixODBC=shared,%{_prefix} \
    --enable-pcntl=shared \
    --enable-pdo=shared,%{_prefix} --with-pdo-dblib=shared,%{_prefix} --with-pdo-mysql=shared,%{_prefix} --with-pdo-odbc=shared,unixODBC,%{_prefix} --with-pdo-pgsql=shared,%{_prefix} --with-pdo-sqlite=shared,%{_prefix} \
    --with-pgsql=shared,%{_prefix} \
    --enable-phar=shared \
    --enable-posix=shared \
    --with-pspell=shared,%{_prefix} \
    --with-readline=shared,%{_prefix} \
    --enable-session=shared,%{_prefix} \
    --enable-shmop=shared,%{_prefix} \
    --enable-simplexml \
    --with-snmp=shared,%{_prefix} \
    --enable-soap=shared,%{_prefix} \
    --enable-sockets=shared,%{_prefix} \
    --with-sqlite3=shared,%{_prefix} \
    --enable-sysvmsg=shared,%{_prefix} \
    --enable-sysvsem=shared,%{_prefix} \
    --enable-sysvshm=shared,%{_prefix} \
    --with-tidy=shared,%{_prefix} \
    --enable-tokenizer=shared,%{_prefix} \
    --enable-xml=shared,%{_prefix} \
    --enable-xmlreader=shared,%{_prefix} \
    --with-xmlrpc=shared,%{_prefix} \
    --enable-xmlwriter=shared,%{_prefix} \
    --with-xsl=shared,%{_prefix} \
    --enable-gd=shared --with-external-gd \
    --with-zip=shared,%{_prefix} \
    --with-mhash=shared \
    --with-sodium=shared \
    || (cat config.log && exit 1)

cp -f Makefile Makefile.$i
cp -f %{_bindir}/libtool .

# left for debugging purposes
cp -f main/php_config.h php_config.h.$i

# when all else failed...
perl -pi -e "s|-prefer-non-pic -static||g" Makefile.$i

done

# remove all confusion...
perl -pi -e "s|^#define CONFIGURE_COMMAND .*|#define CONFIGURE_COMMAND \"This is irrelevant, look inside the %{_docdir}/php-doc/configure_command file. urpmi is your friend, use it to install extensions not shown below.\"|g" main/build-defs.h
cp config.nice configure_command; chmod 644 configure_command

%make PHPDBG_EXTRA_LIBS="-lreadline" CXX=%{__cxx}

%if %{build_libmagic}
# keep in sync with latest system magic, the next best thing when system libmagic can't be used...
sapi/cli/php create_data_file.php %{_datadir}/misc/magic.mgc > ext/fileinfo/data_file.c
rm -rf ext/fileinfo/.libs ext/fileinfo/*.lo ext/fileinfo/*.la modules/fileinfo.so modules/fileinfo.la
cp -p ext/fileinfo/data_file.c php-devel/extensions/fileinfo/data_file.c
%make CXX=%{__cxx} PHPDBG_EXTRA_LIBS="-lreadline"
%endif

# make php-cgi
cp -af php_config.h.cgi main/php_config.h
make -f Makefile.cgi sapi/cgi/php-cgi CXX=%{__cxx} PHPDBG_EXTRA_LIBS="-lreadline"
cp -af php_config.h.apxs main/php_config.h

# make php-fpm
cp -af php_config.h.fpm main/php_config.h
make -f Makefile.fpm sapi/fpm/php-fpm CXX=%{__cxx} PHPDBG_EXTRA_LIBS="-lreadline"
cp -af php_config.h.apxs main/php_config.h

# make apache-mod_php
mkdir mod_php
cd mod_php
cp -dpR ../php-devel/sapi/apache2handler/* .
cp ../main/internal_functions.c .
cp ../ext/date/lib/timelib_config.h .
mv mod_php7.c mod_php.c
find . -type f |xargs dos2unix
apxs \
	`apr-1-config --link-ld --libs` \
	`xml2-config --cflags` \
	-I. -I.. -I../main -I../Zend -I../TSRM \
	-L../libs -lphp7_common \
	-c mod_php.c sapi_apache2.c apache_config.c \
	php_functions.c internal_functions.c

%install

install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}/php.d
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_usrsrc}/php-devel
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_sysconfdir}/cron.d
install -d %{buildroot}/var/lib/php

make -f Makefile.apxs install \
	PHPDBG_EXTRA_LIBS="-lreadline" \
	INSTALL_ROOT=%{buildroot} \
	INSTALL_IT="\$(LIBTOOL) --mode=install install libphp7_common.la %{buildroot}%{_libdir}/"

# borked autopoo
rm -f %{buildroot}%{_bindir}/php %{buildroot}%{_bindir}/php-cgi
./libtool --silent --mode=install install sapi/cli/php %{buildroot}%{_bindir}/php
./libtool --silent --mode=install install sapi/cgi/php-cgi %{buildroot}%{_bindir}/php-cgi

# compat php-fcgi symink
ln -s php-cgi %{buildroot}%{_bindir}/php-fcgi

cp -dpR php-devel/* %{buildroot}%{_usrsrc}/php-devel/
install -m0644 run-tests*.php %{buildroot}%{_usrsrc}/php-devel/
install -m0644 main/internal_functions.c %{buildroot}%{_usrsrc}/php-devel/

install -m0644 sapi/cli/php.1 %{buildroot}%{_mandir}/man1/
install -m0644 scripts/man1/phpize.1 %{buildroot}%{_mandir}/man1/
install -m0644 scripts/man1/php-config.1 %{buildroot}%{_mandir}/man1/

# fpm
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/php-fpm.d
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}/var/lib/php-fpm
install -d %{buildroot}/var/log/php-fpm
install -d %{buildroot}/run/php-fpm
install -D -p -m 0644 %{SOURCE9} %{buildroot}%{_tmpfilesdir}/php-fpm.conf
# a small bug here...
echo "; place your config here" > %{buildroot}%{_sysconfdir}/php-fpm.d/default.conf

./libtool --silent --mode=install install sapi/fpm/php-fpm %{buildroot}%{_sbindir}/php-fpm
install -m0644 sapi/fpm/php-fpm.8 %{buildroot}%{_mandir}/man8/
install -m0644 sapi/fpm/php-fpm.conf %{buildroot}%{_sysconfdir}/
install -m0644 php-fpm.service %{buildroot}%{_unitdir}/
install -m0644 php-fpm.sysconf %{buildroot}%{_sysconfdir}/sysconfig/php-fpm
install -m0644 php-fpm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/php-fpm

perl -pi -e "s|^pid.*|pid = /run/php-fpm/php-fpm.pid|g" %{buildroot}%{_sysconfdir}/php-fpm.conf

ln -snf extensions %{buildroot}%{_usrsrc}/php-devel/ext

# extensions
echo "extension = openssl.so"		> %{buildroot}%{_sysconfdir}/php.d/21_openssl.ini
echo "extension = zlib.so"		> %{buildroot}%{_sysconfdir}/php.d/21_zlib.ini
echo "extension = bcmath.so"		> %{buildroot}%{_sysconfdir}/php.d/66_bcmath.ini
echo "extension = bz2.so"		> %{buildroot}%{_sysconfdir}/php.d/10_bz2.ini
echo "extension = calendar.so"		> %{buildroot}%{_sysconfdir}/php.d/11_calendar.ini
echo "extension = ctype.so"		> %{buildroot}%{_sysconfdir}/php.d/12_ctype.ini
echo "extension = curl.so"		> %{buildroot}%{_sysconfdir}/php.d/13_curl.ini
echo "extension = dba.so"		> %{buildroot}%{_sysconfdir}/php.d/14_dba.ini
echo "extension = dom.so"		> %{buildroot}%{_sysconfdir}/php.d/18_dom.ini
echo "extension = exif.so"		> %{buildroot}%{_sysconfdir}/php.d/19_exif.ini
echo "extension = filter.so"		> %{buildroot}%{_sysconfdir}/php.d/81_filter.ini
echo "extension = ftp.so"		> %{buildroot}%{_sysconfdir}/php.d/22_ftp.ini
echo "extension = gd.so"		> %{buildroot}%{_sysconfdir}/php.d/23_gd.ini
echo "extension = gettext.so"		> %{buildroot}%{_sysconfdir}/php.d/24_gettext.ini
echo "extension = gmp.so"		> %{buildroot}%{_sysconfdir}/php.d/25_gmp.ini
#echo "extension = hash.so"		> %{buildroot}%{_sysconfdir}/php.d/54_hash.ini
echo "extension = iconv.so"		> %{buildroot}%{_sysconfdir}/php.d/26_iconv.ini
echo "extension = imap.so"		> %{buildroot}%{_sysconfdir}/php.d/27_imap.ini
echo "extension = intl.so"		> %{buildroot}%{_sysconfdir}/php.d/27_intl.ini
echo "extension = ldap.so"		> %{buildroot}%{_sysconfdir}/php.d/28_ldap.ini
echo "extension = mbstring.so"		> %{buildroot}%{_sysconfdir}/php.d/29_mbstring.ini
echo "extension = fileinfo.so"		> %{buildroot}%{_sysconfdir}/php.d/32_fileinfo.ini
# mysqlnd must be loaded before mysqli (undefined symbol: mysqlnd_global_stats)
echo "extension = mysqlnd.so"		> %{buildroot}%{_sysconfdir}/php.d/36_mysqlnd.ini
echo "extension = mysqli.so"		> %{buildroot}%{_sysconfdir}/php.d/37_mysqli.ini
echo "extension = enchant.so"		> %{buildroot}%{_sysconfdir}/php.d/38_enchant.ini
echo "extension = odbc.so"		> %{buildroot}%{_sysconfdir}/php.d/39_odbc.ini
echo "extension = pcntl.so"		> %{buildroot}%{_sysconfdir}/php.d/40_pcntl.ini
echo "extension = pdo.so"		> %{buildroot}%{_sysconfdir}/php.d/70_pdo.ini
echo "extension = pdo_dblib.so"		> %{buildroot}%{_sysconfdir}/php.d/71_pdo_dblib.ini
echo "extension = pdo_mysql.so"		> %{buildroot}%{_sysconfdir}/php.d/73_pdo_mysql.ini
echo "extension = pdo_odbc.so"		> %{buildroot}%{_sysconfdir}/php.d/75_pdo_odbc.ini
echo "extension = pdo_pgsql.so"		> %{buildroot}%{_sysconfdir}/php.d/76_pdo_pgsql.ini
echo "extension = pdo_sqlite.so"	> %{buildroot}%{_sysconfdir}/php.d/77_pdo_sqlite.ini
echo "extension = pgsql.so"		> %{buildroot}%{_sysconfdir}/php.d/42_pgsql.ini
echo "extension = posix.so"		> %{buildroot}%{_sysconfdir}/php.d/43_posix.ini
echo "extension = pspell.so"		> %{buildroot}%{_sysconfdir}/php.d/44_pspell.ini
echo "extension = readline.so"		> %{buildroot}%{_sysconfdir}/php.d/45_readline.ini
#echo "extension = recode.so"		> %{buildroot}%{_sysconfdir}/php.d/46_recode.ini
echo "extension = session.so"		> %{buildroot}%{_sysconfdir}/php.d/47_session.ini
echo "extension = shmop.so"		> %{buildroot}%{_sysconfdir}/php.d/48_shmop.ini
echo "extension = snmp.so"		> %{buildroot}%{_sysconfdir}/php.d/50_snmp.ini
echo "extension = soap.so"		> %{buildroot}%{_sysconfdir}/php.d/51_soap.ini
echo "extension = sockets.so"		> %{buildroot}%{_sysconfdir}/php.d/52_sockets.ini
echo "extension = sodium.so"		> %{buildroot}%{_sysconfdir}/php.d/85_sodium.ini
echo "extension = sqlite3.so"		> %{buildroot}%{_sysconfdir}/php.d/78_sqlite3.ini
echo "extension = sysvmsg.so"		> %{buildroot}%{_sysconfdir}/php.d/56_sysvmsg.ini
echo "extension = sysvsem.so"		> %{buildroot}%{_sysconfdir}/php.d/57_sysvsem.ini
echo "extension = sysvshm.so"		> %{buildroot}%{_sysconfdir}/php.d/58_sysvshm.ini
echo "extension = tidy.so"		> %{buildroot}%{_sysconfdir}/php.d/59_tidy.ini
echo "extension = tokenizer.so"		> %{buildroot}%{_sysconfdir}/php.d/60_tokenizer.ini
echo "extension = xml.so"		> %{buildroot}%{_sysconfdir}/php.d/62_xml.ini
echo "extension = xmlreader.so"		> %{buildroot}%{_sysconfdir}/php.d/63_xmlreader.ini
echo "extension = xmlrpc.so"		> %{buildroot}%{_sysconfdir}/php.d/62_xmlrpc.ini
echo "extension = xmlwriter.so"		> %{buildroot}%{_sysconfdir}/php.d/64_xmlwriter.ini
echo "extension = xsl.so"		> %{buildroot}%{_sysconfdir}/php.d/63_xsl.ini
echo "extension = json.so"		> %{buildroot}%{_sysconfdir}/php.d/82_json.ini
echo "extension = zip.so"		> %{buildroot}%{_sysconfdir}/php.d/83_zip.ini
echo "extension = phar.so"		> %{buildroot}%{_sysconfdir}/php.d/84_phar.ini
cat >%{buildroot}%{_sysconfdir}/php.d/85_opcache.ini <<"EOF"
zend_extension = %{_libdir}/php/extensions/opcache.so
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
EOF

install -m0755 maxlifetime %{buildroot}%{_libdir}/php/maxlifetime
install -m0644 php.crond %{buildroot}%{_sysconfdir}/cron.d/php

# mod_php
install -d %{buildroot}%{_libdir}/apache
install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
install -m 755 mod_php/.libs/*.so %{buildroot}%{_libdir}/apache/

cat > %{buildroot}%{_sysconfdir}/httpd/modules.d/170_mod_php.conf << EOF
LoadModule php_module %{_libdir}/apache/mod_php.so

AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps

DirectoryIndex index.php index.phtml
EOF

# phar fixes
if [ -L %{buildroot}%{_bindir}/phar ]; then
    rm -f %{buildroot}%{_bindir}/phar
    mv %{buildroot}%{_bindir}/phar.phar %{buildroot}%{_bindir}/phar
fi

# inis
install -d -m 755 %{buildroot}%{_sysconfdir}/php.d
install -d -m 755 %{buildroot}%{_libdir}/php/extensions
install -d -m 755 %{buildroot}%{_datadir}/php

sed -e 's,/usr/lib,%{_libdir},g' %{SOURCE10} >%{buildroot}%{_sysconfdir}/php.ini
cp %{buildroot}%{_sysconfdir}/php.ini %{buildroot}%{_sysconfdir}/php-cgi-fcgi.ini

# house cleaning
rm -f %{buildroot}%{_bindir}/pear
rm -f %{buildroot}%{_libdir}/*.*a

# don't pack useless stuff
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/bcmath
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/bz2
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/calendar
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/ctype
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/curl
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/dba
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/dom
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/enchant
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/ereg
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/exif
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/fileinfo
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/filter
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/ftp
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/gettext
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/gmp
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/hash
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/iconv
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/imap
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/intl
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/json
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/ldap
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/libxml
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mbstring
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mysql
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mysqli
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/mysqlnd
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/odbc
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/openssl
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pcntl
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pcre
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_dblib
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_mysql
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_odbc
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_pgsql
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pdo_sqlite
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pgsql
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/phar
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/posix
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/pspell
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/readline
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/recode
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/shmop
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/snmp
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/soap
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sockets
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/spl
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sqlite
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sqlite3
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/standard
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sysvmsg
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sysvsem
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/sysvshm
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/tidy
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/tokenizer
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xml
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xmlreader
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xmlrpc
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xmlwriter
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/xsl
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/zip
rm -rf %{buildroot}%{_usrsrc}/php-devel/extensions/zlib

# php-devel.i586: E: zero-length /usr/src/php-devel/extensions/pdo_firebird/EXPERIMENTAL
find %{buildroot}%{_usrsrc}/php-devel -type f -size 0 -exec rm -f {} \;

mkdir -p %{buildroot}%{_sysconfdir}/rpm/macros.d/

# Install the macros file:
sed -e "s/@PHP_APIVER@/%{apiver}/" \
    -e "s/@PHP_ZENDVER@/%{zendver}/g" \
    -e "s/@PHP_PDOVER@/%{pdover}/" \
    -e "s/@PHP_VERSION@/%{version}/" \
    < %{SOURCE1} > macros.php
%install_macro %{name} macros.php

# update libtool.m4 file
cp -f %{_datadir}/aclocal/libtool.m4 %{buildroot}%{_libdir}/php/build
cat %{_datadir}/aclocal/ltoptions.m4 %{_datadir}/aclocal/ltversion.m4 \
    %{_datadir}/aclocal/ltsugar.m4 %{_datadir}/aclocal/lt~obsolete.m4 >> %{buildroot}%{_libdir}/php/build/libtool.m4

%if %{build_test}
# do a make test
export NO_INTERACTION=1
export PHPRC="."
export REPORT_EXIT_STATUS=2
export TEST_PHP_DETAILED=0
export TEST_PHP_ERROR_STYLE=EMACS
export TEST_PHP_LOG_FORMAT=LEODC
export PHP_INI_SCAN_DIR=/dev/null

# FAILING TESTS:
# unknown errors with ext/date/tests/oo_002.phpt probably because of php-5.2.5-systzdata.patch
# http://bugs.php.net/bug.php?id=22414 (claimed to be fixed in 2003, but seems not)
# unknown errors with ext/standard/tests/general_functions/phpinfo.phpt
# unknown errors with ext/standard/tests/strings/setlocale_*
disable_tests="ext/date/tests/oo_002.phpt \
ext/standard/tests/file/bug22414.phpt \
ext/standard/tests/general_functions/phpinfo.phpt \
ext/standard/tests/strings/setlocale_basic1.phpt \
ext/standard/tests/strings/setlocale_basic2.phpt \
ext/standard/tests/strings/setlocale_basic3.phpt \
ext/standard/tests/strings/setlocale_variation1.phpt \
ext/standard/tests/strings/setlocale_variation3.phpt \
ext/standard/tests/strings/setlocale_variation4.phpt \
ext/standard/tests/strings/setlocale_variation5.phpt"

[[ -n "$disable_tests" ]] && \
for f in $disable_tests; do
  [[ -f "$f" ]] && mv $f $f.disabled
done

cat >php-test.ini <<EOF
[PHP]
extension_dir="`pwd`/modules"
EOF
for i in modules/*.so; do
	B="`basename $i`"
	case "$B" in
	opcache.so)
		echo zend_extension=$B >>php-test.ini
		;;
	xsl.so)
		# Unresolved symbols, need fixing
		;;
#	ctype.so|dom.so|openssl.so|ftp.so|zlib.so|gettext.so|posix.so|session.so|hash.so|sysvsem.so|sysvshm.so|tokenizer.so|xml.so|xmlreader.so|xmlwriter.so|filter.so|json.so)
		# Apparently loaded by default without a need to mention them in the ini file
#		;;
	*)
		echo extension=$B >>php-test.ini
		;;
	esac
done
cat >>php-test.ini <<EOF
open_basedir="`pwd`"
safe_mode=0
output_buffering=0
output_handler=0
magic_quotes_runtime=0
memory_limit=1G

[Session]
session.save_path="`pwd`"
EOF

TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php -n -c ./php-test.ini run-tests.php
%endif

%post fpm
%tmpfiles_create php-fpm.conf
%systemd_post php-fpm.service

%preun fpm
%systemd_preun php-fpm.service

%files doc
%doc php.ini-production php.ini-development configure_command

%files -n %{libname}
%{_libdir}/libphp7_common.so.%{php7_common_major}*

%files cli
%attr(0755,root,root) %{_bindir}/php
%attr(0644,root,root) %{_mandir}/man1/php.1*

%files dbg
%attr(0755,root,root) %{_bindir}/phpdbg
%attr(0644,root,root) %{_mandir}/man1/phpdbg.1*

%files cgi
%attr(0755,root,root) %{_bindir}/php-cgi
%attr(0755,root,root) %{_bindir}/php-fcgi
%{_mandir}/man1/php-cgi.1*

%files devel
%doc README.* EXTENSIONS
%attr(0755,root,root) %{_bindir}/php-config
%attr(0755,root,root) %{_bindir}/phpize
%attr(0755,root,root) %{_libdir}/libphp7_common.so
%{_libdir}/php/build
%{_usrsrc}/php-devel
%{_includedir}/php
%attr(0644,root,root) %{_mandir}/man1/php-config.1*
%attr(0644,root,root) %{_mandir}/man1/phpize.1*
%{_rpmmacrodir}/*%{name}*

%files openssl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/21_openssl.ini
%attr(0755,root,root) %{_libdir}/php/extensions/openssl.so

%files zlib
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/21_zlib.ini
%attr(0755,root,root) %{_libdir}/php/extensions/zlib.so

%files bcmath
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/66_bcmath.ini
%attr(0755,root,root) %{_libdir}/php/extensions/bcmath.so

%files bz2
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/10_bz2.ini
%attr(0755,root,root) %{_libdir}/php/extensions/bz2.so

%files calendar
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/11_calendar.ini
%attr(0755,root,root) %{_libdir}/php/extensions/calendar.so

%files ctype
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/12_ctype.ini
%attr(0755,root,root) %{_libdir}/php/extensions/ctype.so

%files curl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/13_curl.ini
%attr(0755,root,root) %{_libdir}/php/extensions/curl.so

%files dba
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/14_dba.ini
%attr(0755,root,root) %{_libdir}/php/extensions/dba.so

%files dom
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/18_dom.ini
%attr(0755,root,root) %{_libdir}/php/extensions/dom.so

%files enchant
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/38_enchant.ini
%attr(0755,root,root) %{_libdir}/php/extensions/enchant.so

%files exif
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/19_exif.ini
%attr(0755,root,root) %{_libdir}/php/extensions/exif.so

%files fileinfo
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/32_fileinfo.ini
%attr(0755,root,root) %{_libdir}/php/extensions/fileinfo.so

%files filter
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/81_filter.ini
%attr(0755,root,root) %{_libdir}/php/extensions/filter.so

%files ftp
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/22_ftp.ini
%attr(0755,root,root) %{_libdir}/php/extensions/ftp.so

%files gd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/23_gd.ini
%attr(0755,root,root) %{_libdir}/php/extensions/gd.so

%files gettext
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/24_gettext.ini
%attr(0755,root,root) %{_libdir}/php/extensions/gettext.so

%files gmp
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/25_gmp.ini
%attr(0755,root,root) %{_libdir}/php/extensions/gmp.so

#files hash
#attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/54_hash.ini
#attr(0755,root,root) %{_libdir}/php/extensions/hash.so

%files iconv
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/26_iconv.ini
%attr(0755,root,root) %{_libdir}/php/extensions/iconv.so

%files imap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/27_imap.ini
%attr(0755,root,root) %{_libdir}/php/extensions/imap.so

%files intl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/27_intl.ini
%attr(0755,root,root) %{_libdir}/php/extensions/intl.so

%files json
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/82_json.ini
%attr(0755,root,root) %{_libdir}/php/extensions/json.so

%files ldap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/28_ldap.ini
%attr(0755,root,root) %{_libdir}/php/extensions/ldap.so

%files mbstring
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/29_mbstring.ini
%attr(0755,root,root) %{_libdir}/php/extensions/mbstring.so

%files mysqlnd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/36_mysqlnd.ini
%attr(0755,root,root) %{_libdir}/php/extensions/mysqlnd.so

%files mysqli
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/37_mysqli.ini
%attr(0755,root,root) %{_libdir}/php/extensions/mysqli.so

%files odbc
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/39_odbc.ini
%attr(0755,root,root) %{_libdir}/php/extensions/odbc.so

%files opcache
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/85_opcache.ini
%attr(0755,root,root) %{_libdir}/php/extensions/opcache.so

%files pcntl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/40_pcntl.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pcntl.so

%files pdo
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/70_pdo.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pdo.so

%files pdo_dblib
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/71_pdo_dblib.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_dblib.so

%files pdo_mysql
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/73_pdo_mysql.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_mysql.so

%files pdo_odbc
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/php.d/75_pdo_odbc.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_odbc.so

%files pdo_pgsql
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/76_pdo_pgsql.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_pgsql.so

%files pdo_sqlite
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/77_pdo_sqlite.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pdo_sqlite.so

%files pgsql
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/42_pgsql.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pgsql.so

%files phar
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/84_phar.ini
%attr(0755,root,root) %{_libdir}/php/extensions/phar.so
%attr(0755,root,root) %{_bindir}/phar
%{_mandir}/man1/phar.1*
%{_mandir}/man1/phar.phar.1*

%files posix
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/43_posix.ini
%attr(0755,root,root) %{_libdir}/php/extensions/posix.so

%files pspell
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/44_pspell.ini
%attr(0755,root,root) %{_libdir}/php/extensions/pspell.so

%files readline
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/45_readline.ini
%attr(0755,root,root) %{_libdir}/php/extensions/readline.so

#files recode
#attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/46_recode.ini
#attr(0755,root,root) %{_libdir}/php/extensions/recode.so

%files session
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/47_session.ini
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/php
%attr(0755,root,root) %{_libdir}/php/extensions/session.so
%attr(0755,root,root) %{_libdir}/php/maxlifetime
%attr(01733,apache,apache) %dir /var/lib/php

%files shmop
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/48_shmop.ini
%attr(0755,root,root) %{_libdir}/php/extensions/shmop.so

%files snmp
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/50_snmp.ini
%attr(0755,root,root) %{_libdir}/php/extensions/snmp.so

%files soap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/51_soap.ini
%attr(0755,root,root) %{_libdir}/php/extensions/soap.so

%files sockets
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/52_sockets.ini
%attr(0755,root,root) %{_libdir}/php/extensions/sockets.so

%files sodium
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/85_sodium.ini
%attr(0755,root,root) %{_libdir}/php/extensions/sodium.so

%files sqlite3
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/78_sqlite3.ini
%attr(0755,root,root) %{_libdir}/php/extensions/sqlite3.so

%files sysvmsg
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/56_sysvmsg.ini
%attr(0755,root,root) %{_libdir}/php/extensions/sysvmsg.so

%files sysvsem
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/57_sysvsem.ini
%attr(0755,root,root) %{_libdir}/php/extensions/sysvsem.so

%files sysvshm
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/58_sysvshm.ini
%attr(0755,root,root) %{_libdir}/php/extensions/sysvshm.so

%files tidy
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/59_tidy.ini
%attr(0755,root,root) %{_libdir}/php/extensions/tidy.so

%files tokenizer
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/60_tokenizer.ini
%attr(0755,root,root) %{_libdir}/php/extensions/tokenizer.so

%files xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/62_xml.ini
%attr(0755,root,root) %{_libdir}/php/extensions/xml.so

%files xmlreader
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/63_xmlreader.ini
%attr(0755,root,root) %{_libdir}/php/extensions/xmlreader.so

%files xmlrpc
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/62_xmlrpc.ini
%attr(0755,root,root) %{_libdir}/php/extensions/xmlrpc.so

%files xmlwriter
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/64_xmlwriter.ini
%attr(0755,root,root) %{_libdir}/php/extensions/xmlwriter.so

%files xsl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/63_xsl.ini
%attr(0755,root,root) %{_libdir}/php/extensions/xsl.so

%files zip
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/83_zip.ini
%attr(0755,root,root) %{_libdir}/php/extensions/zip.so

%files fpm
%doc sapi/fpm/LICENSE
%{_unitdir}/php-fpm.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php-fpm.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/php-fpm
%attr(0644,root,root) %{_sysconfdir}/logrotate.d/php-fpm
%attr(0755,root,root) %dir %{_sysconfdir}/php-fpm.d
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php-fpm.d/default.conf
%attr(0755,root,root) %{_sbindir}/php-fpm
%attr(0644,root,root) %{_mandir}/man8/php-fpm.8*
%attr(0711,apache,apache) %dir /var/lib/php-fpm
%attr(0711,apache,apache) %dir /var/log/php-fpm
%attr(0711,apache,apache) %dir /run/php-fpm
%{_tmpfilesdir}/php-fpm.conf

%files -n apache-mod_php
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*.conf
%attr(0755,root,root) %{_libdir}/apache/*.so

%files -n php-ini
%config(noreplace) %{_sysconfdir}/php.ini
%config(noreplace) %{_sysconfdir}/php-cgi-fcgi.ini
%dir %{_sysconfdir}/php.d
%dir %{_libdir}/php
%dir %{_libdir}/php/extensions
%dir %{_datadir}/php


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15717 |21mr|php8-8.3.14-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _build_pkgcheck_srpm %{nil}

# LTO causes a build failure because something forces a linking step of
# libphp8_common to barf because libtool foolishly takes -flto out of
# compiler flags
#define _disable_lto 1

%define build_test 0
%{?_with_test: %{expand: %%global build_test 1}}
%{?_without_test: %{expand: %%global build_test 0}}

%define build_libmagic 0
%{?_with_libmagic: %{expand: %%global build_libmagic 1}}
%{?_without_libmagic: %{expand: %%global build_libmagic 0}}

%define php_branch 8

%define php8_common_major 5
%define libname %mklibname php8_common %{php8_common_major}

%global __requires_exclude '.*/bin/awk|.*/bin/gawk'

# API/ABI check
%define apiver  20230831
%define zendver 20230831
%define pdover 20170320

Summary:	The PHP scripting language
Name:		php%{php_branch}
Version:	8.3.14
Release:	3
Source0:	http://ch1.php.net/distributions/php-%{version}.tar.gz
Source1:	macros.php
Group:		Development/PHP
License:	PHP License
URL:		http://www.php.net
Source2:	maxlifetime
Source3:	php.crond
Source4:	php-fpm.service
Source5:	php-fpm.sysconf
Source6:	php-fpm.logrotate
# S7 comes from ext/fileinfo/create_data_file.php but could be removed someday
Source7:	create_data_file.php
Source9:        php-fpm-tmpfiles.conf
Source10:	php.ini
Patch4:		https://src.fedoraproject.org/rpms/php/raw/master/f/php-7.4.0-phpize.patch
Patch5:		php-phpbuilddir.diff
Patch11:	php-5.3.8-bdb-5.2.diff
Patch12:	php-5.5.6-db-6.0.patch
Patch13:	php-7.0.1-clang-warnings.patch
Patch14:	php-7.2.0-visibility.patch
# use system tzdata
Patch15:	php-8.2.23-systzdata-v24.patch
#####################################################################
# Stolen from PLD
Patch22:	php-dba-link.patch
Patch23:	php-zlib-for-getimagesize.patch
Patch30:	php-5.3.x-fpm-0.6.5-mdv_conf.diff
#####################################################################
# stolen from debian
Patch50:	php-session.save_path.diff
#####################################################################
# Stolen from fedora
Patch102:	php-install.diff
Patch105:	php-umask.diff
# Fixes for extension modules
Patch113:	php-libc-client.diff
Patch114:	php-no_pam_in_c-client.diff
# Sauce fixes
#Patch127:	php-7.4.30-svace-fixes.patch
#Patch128:	0001-Revert-Throw-notice-on-array-access-on-illegal-type.patch
Patch200:	fix-include-e2k.patch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	file
BuildRequires:	flex
BuildRequires:	lemon
BuildRequires:	libtool
BuildRequires:	openssl
BuildRequires:	systemd
BuildRequires:	re2c >= 0.13.4

BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(libxcrypt)
BuildRequires:	pkgconfig(libpcre2-posix)
BuildRequires:	pkgconfig(libpcre2-8)
BuildRequires:	pkgconfig(libpcre2-16)
BuildRequires:	pkgconfig(libpcre2-32)
BuildRequires:	pkgconfig(libacl)
BuildRequires:	apache-base

BuildRequires:	apache-devel >= 2.2.0
BuildRequires:	aspell-devel
BuildRequires:	bzip2-devel
BuildRequires:	c-client-devel >= 2007
BuildRequires:	db-devel
BuildRequires:	elfutils-devel
BuildRequires:	freetds-devel >= 0.63
BuildRequires:	gdbm-devel
BuildRequires:	gd-devel >= 2.0.33
BuildRequires:	gettext-devel
BuildRequires:	gmp-devel
BuildRequires:	gpm-devel
BuildRequires:	icu-devel >= 49.0
BuildRequires:	jpeg-devel
BuildRequires:	openldap-devel
BuildRequires:	sasl-devel
BuildRequires:	libtool-devel
BuildRequires:	mysql-devel >= 4.1.7
BuildRequires:	lm_sensors-devel
BuildRequires:	net-snmp-devel
BuildRequires:	net-snmp-mibs
BuildRequires:	onig-devel >= 5.9.2
BuildRequires:	pam-devel
BuildRequires:	postgresql-devel
BuildRequires:	readline-devel
BuildRequires:	recode-devel
BuildRequires:	tidy-devel
BuildRequires:	unixODBC-devel >= 2.2.1
%if %{build_libmagic}
BuildRequires:	magic-devel
%endif
Epoch: 3
Provides:	%{name}-json >= %{EVRD}

# stupid postgresql... stupid build system...
# this is needed due to the postgresql packaging and due to bugs like this:
# https://qa.mandriva.com/show_bug.cgi?id=52527
%define postgresql_version %(pg_config &>/dev/null && pg_config 2>/dev/null | grep "^VERSION" | awk '{ print $4 }' 2>/dev/null || echo 0)

%description
PHP is an HTML-embeddable scripting language. PHP offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP is fairly simple. The
most common use of PHP coding is probably as a replacement for CGI scripts.

%package	cli
Summary:	PHP CLI interface
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-ctype >= %{EVRD}
Requires:	%{name}-filter >= %{EVRD}
Requires:	%{name}-ftp >= %{EVRD}
Requires:	%{name}-gettext >= %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-openssl >= %{EVRD}
Requires:	%{name}-posix >= %{EVRD}
Requires:	%{name}-session >= %{EVRD}
# Suggests:	%{name}-suhosin >= 0.9.33
Requires:	%{name}-sysvsem >= %{EVRD}
Requires:	%{name}-sysvshm >= %{EVRD}
Requires:	php-timezonedb >= 3:2009.10
Requires:	%{name}-tokenizer >= %{EVRD}
Requires:	%{name}-xmlreader >= %{EVRD}
Requires:	%{name}-xmlwriter >= %{EVRD}
Requires:	%{name}-zlib >= %{EVRD}
Requires:	%{name}-xml >= %{EVRD}
Provides:	%{name} = %{EVRD}
Provides:	/usr/bin/%{name}

%description	cli
PHP is an HTML-embeddable scripting language. PHP offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP is fairly simple. The
most common use of PHP coding is probably as a replacement for CGI scripts.

This package contains a command-line (CLI) version of php. You must also
install libphp8_common. If you need apache module support, you also need to
install the apache-mod_%{name} package.

%package	dbg
Summary:	Debugging version of the PHP CLI interface
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-ctype >= %{EVRD}
Requires:	%{name}-filter >= %{EVRD}
Requires:	%{name}-ftp >= %{EVRD}
Requires:	%{name}-gettext >= %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-openssl >= %{EVRD}
Requires:	%{name}-posix >= %{EVRD}
Requires:	%{name}-session >= %{EVRD}
# Suggests:	%{name}-suhosin >= 0.9.33
Requires:	%{name}-sysvsem >= %{EVRD}
Requires:	%{name}-sysvshm >= %{EVRD}
Requires:	php-timezonedb >= 3:2009.10
Requires:	%{name}-tokenizer >= %{EVRD}
Requires:	%{name}-xmlreader >= %{EVRD}
Requires:	%{name}-xmlwriter >= %{EVRD}
Requires:	%{name}-zlib >= %{EVRD}
Requires:	%{name}-xml >= %{EVRD}
Provides:	%{name} = %{EVRD}

%description	dbg
PHP is an HTML-embeddable scripting language. PHP offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP is fairly simple. The
most common use of PHP coding is probably as a replacement for CGI scripts.

This package contains a debugging version of php. You must also
install libphp8_common. If you need apache module support, you also need to
install the apache-mod_%{name} package.

%package	cgi
Summary:	PHP CGI interface
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-ctype >= %{EVRD}
Requires:	%{name}-filter >= %{EVRD}
Requires:	%{name}-ftp >= %{EVRD}
Requires:	%{name}-gettext >= %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-openssl >= %{EVRD}
Requires:	%{name}-posix >= %{EVRD}
Requires:	%{name}-session >= %{EVRD}
# Suggests:	%{name}-suhosin >= 0.9.33
Requires:	%{name}-sysvsem >= %{EVRD}
Requires:	%{name}-sysvshm >= %{EVRD}
Requires:	php-timezonedb >= 3:2009.10
Requires:	%{name}-tokenizer >= %{EVRD}
Requires:	%{name}-xmlreader >= %{EVRD}
Requires:	%{name}-xmlwriter >= %{EVRD}
Requires:	%{name}-zlib >= %{EVRD}
Requires:	%{name}-xml >= %{EVRD}
Provides:	%{name} = %{EVRD}

%description	cgi
PHP is an HTML-embeddable scripting language. PHP offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP is fairly simple. The
most common use of PHP coding is probably as a replacement for CGI scripts.

This package contains a standalone (CGI) version of php with FastCGI support.
You must also install libphp8_common. If you need apache module support, you
also need to install the apache-mod_%{name} package.

%package -n	%{libname}
Summary:	Shared library for PHP
Group:		Development/Other
Provides:	%{name}-pcre = %{EVRD}
Provides:	%{name}-simplexml = %{EVRD}
Provides:	php8(api) = %{apiver}
Provides:	php8(zend-abi) = %{zendver}
Requires:	systemd-units
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units

%description -n	%{libname}
This package provides the common files to run with different implementations of
PHP. You need this package if you install the php standalone package or a
webserver with php support (ie: apache-mod_%{name}).

%package	devel
Summary:	Development package for PHP
Group:		Development/C
Requires:	%{libname} >= %{EVRD}
Requires:	autoconf automake libtool
Requires:	bison
Requires:	byacc
Requires:	chrpath
Requires:	dos2unix
Requires:	flex
Requires:	openssl
Requires:	re2c >= 0.9.11
Requires:	tcl
Requires:	pam-devel
Requires:	pcre2-devel
Requires:	pkgconfig(libxml-2.0)
Requires:	pkgconfig(libxslt)
Requires:	pkgconfig(openssl)
Recommends:	%{name}-rpm-macros = %{EVRD}


%description	devel
This package lets you compile dynamic extensions to PHP. Included
here is the source for the php extensions. Instead of recompiling the whole php
binary to add support for, say, oracle, install this package and use the new
self-contained extensions support. For more information, read the file
SELF-CONTAINED-EXTENSIONS.

%package	rpm-macros
Summary:	PHP %{php_branch} RPM macros
Conflicts:	php-devel < 8.3

%description	rpm-macros
%{summary}

%package	openssl
Summary:	OpenSSL extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	openssl
This is a dynamic shared object (DSO) for PHP that will add OpenSSL support.

%package	zlib
Summary:	Zlib extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	zlib
This is a dynamic shared object (DSO) for PHP that will add zlib compression
support to PHP.

%package	doc
Summary:	Documentation for PHP
Group:		Development/PHP

%description	doc
Documentation for php.

%package	bcmath
Summary:	The bcmath module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	bcmath
This is a dynamic shared object (DSO) for PHP that will add bc style precision
math functions support.

For arbitrary precision mathematics PHP offers the Binary Calculator which
supports numbers of any size and precision, represented as strings.

%package	bz2
Summary:	Bzip2 extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	bz2
This is a dynamic shared object (DSO) for PHP that will add bzip2 compression
support to PHP.

The bzip2 functions are used to transparently read and write bzip2 (.bz2)
compressed files.

%package	calendar
Summary:	Calendar extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	calendar
This is a dynamic shared object (DSO) for PHP that will add calendar support.

The calendar extension presents a series of functions to simplify converting
between different calendar formats. The intermediary or standard it is based on
is the Julian Day Count. The Julian Day Count is a count of days starting from
January 1st, 4713 B.C. To convert between calendar systems, you must first
convert to Julian Day Count, then to the calendar system of your choice. Julian
Day Count is very different from the Julian Calendar! For more information on
Julian Day Count, visit http://www.hermetic.ch/cal_stud/jdn.htm. For more
information on calendar systems visit
http://www.boogle.com/info/cal-overview.html. Excerpts from this page are
included in these instructions, and are in quotes.

%package	ctype
Summary:	Ctype extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	ctype
This is a dynamic shared object (DSO) for PHP that will add ctype support.

The functions provided by this extension check whether a character or string
falls into a certain character class according to the current locale (see also
setlocale()).

%package	curl
Summary:	Curl extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	curl
This is a dynamic shared object (DSO) for PHP that will add curl support.

PHP supports libcurl, a library created by Daniel Stenberg, that allows you to
connect and communicate to many different types of servers with many different
types of protocols. libcurl currently supports the http, https, ftp, gopher,
telnet, dict, file, and ldap protocols. libcurl also supports HTTPS
certificates, HTTP POST, HTTP PUT, FTP uploading (this can also be done with
PHP's ftp extension), HTTP form based upload, proxies, cookies, and
user+password authentication.

%package	dba
Summary:	DBA extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	dba
This is a dynamic shared object (DSO) for PHP that will add flat-file databases
(DBA) support.

These functions build the foundation for accessing Berkeley DB style databases.

This is a general abstraction layer for several file-based databases. As such,
functionality is limited to a common subset of features supported by modern
databases such as Sleepycat Software's DB2. (This is not to be confused with
IBM's DB2 software, which is supported through the ODBC functions.)

%package	dom
Summary:	Dom extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	dom
This is a dynamic shared object (DSO) for PHP that will add dom support.

The DOM extension is the replacement for the DOM XML extension from PHP 4. The
extension still contains many old functions, but they should no longer be used.
In particular, functions that are not object-oriented should be avoided.

The extension allows you to operate on an XML document with the DOM API.

%package	enchant
Summary:	Libenchant binder, support near all spelling tools
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	enchant
Enchant is a binder for libenchant. Libenchant provides a common API for many
spell libraries:

 - aspell/pspell (intended to replace ispell)
 - hspell (hebrew)
 - ispell
 - myspell (OpenOffice project, mozilla)
 - uspell (primarily Yiddish, Hebrew, and Eastern European languages)
   A plugin system allows to add custom spell support.
   see www.abisource.com/enchant/

%package	sodium
Summary:	Wrapper for the Sodium cryptographic library
Provides:	php8-pecl(libsodium) = %{version}
Provides:	php8-pecl(libsodium)%{?_isa} = %{version}

%description sodium
The php-sodium package provides a simple,
low-level PHP extension for the libsodium cryptographic library.

%package	exif
Summary:	EXIF extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-mbstring >= %{EVRD}

%description	exif
This is a dynamic shared object (DSO) for PHP that will add EXIF tags support
in image files.

With the exif extension you are able to work with image meta data. For example,
you may use exif functions to read meta data of pictures taken from digital
cameras by working with information stored in the headers of the JPEG and TIFF
images.

%package	fileinfo
Summary:	Fileinfo extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	fileinfo
This extension allows retrieval of information regarding vast majority of file.
This information may include dimensions, quality, length etc...

Additionally it can also be used to retrieve the mime type for a particular
file and for text files proper language encoding.

%package	filter
Summary:	Extension for safely dealing with input parameters
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	filter
The Input Filter extension is meant to address this issue by implementing a set
of filters and mechanisms that users can use to safely access their input data.

%package	ftp
Summary:	FTP extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	ftp
This is a dynamic shared object (DSO) for PHP that will add FTP support.

The functions in this extension implement client access to file servers
speaking the File Transfer Protocol (FTP) as defined in
http://www.faqs.org/rfcs/rfc959. This extension is meant for detailed access to
an FTP server providing a wide range of control to the executing script. If you
only wish to read from or write to a file on an FTP server, consider using the
ftp:// wrapper  with the filesystem functions  which provide a simpler and more
intuitive interface.

%package	gd
Summary:	GD extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	gd
This is a dynamic shared object (DSO) for PHP that will add GD support,
allowing you to create and manipulate images with PHP using the gd library.

PHP is not limited to creating just HTML output. It can also be used to create
and manipulate image files in a variety of different image formats, including
gif, png, jpg, wbmp, and xpm. Even more convenient, PHP can output image
streams directly to a browser. You will need to compile PHP with the GD library
of image functions for this to work. GD and PHP may also require other
libraries, depending on which image formats you want to work with.

You can use the image functions in PHP to get the size of JPEG, GIF, PNG, SWF,
TIFF and JPEG2000 images.

%package	gettext
Summary:	Gettext extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	gettext
This is a dynamic shared object (DSO) for PHP that will add gettext support.

The gettext functions implement an NLS (Native Language Support) API which can
be used to internationalize your PHP applications. Please see the gettext
documentation for your system for a thorough explanation of these functions or
view the docs at http://www.gnu.org/software/gettext/manual/gettext.html.

%package	gmp
Summary:	Gmp extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	gmp
This is a dynamic shared object (DSO) for PHP that will add arbitrary length
number support using the GNU MP library.

%package	hash
Summary:	HASH Message Digest Framework
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	hash
Native implementations of common message digest algorithms using a generic
factory method.

Message Digest (hash) engine. Allows direct or incremental processing of
arbitrary length messages using a variety of hashing algorithms.

%package	iconv
Summary:	Iconv extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	iconv
This is a dynamic shared object (DSO) for PHP that will add iconv support.

This module contains an interface to iconv character set conversion facility.
With this module, you can turn a string represented by a local character set
into the one represented by another character set, which may be the Unicode
character set. Supported character sets depend on the iconv implementation of
your system. Note that the iconv function on some systems may not work as you
expect. In such case, it'd be a good idea to install the GNU libiconv library.
It will most likely end up with more consistent results.

%package	imap
Summary:	IMAP extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	imap
This is a dynamic shared object (DSO) for PHP that will add IMAP support.

These functions are not limited to the IMAP protocol, despite their name. The
underlying c-client library also supports NNTP, POP3 and local mailbox access
methods.

%package	intl
Summary:	Internationalization extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	intl
This is a dynamic shared object (DSO) for PHP that will add
Internationalization support.

Internationalization extension implements ICU library functionality in PHP.

%package	ldap
Summary:	LDAP extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	ldap
This is a dynamic shared object (DSO) for PHP that will add LDAP support.

LDAP is the Lightweight Directory Access Protocol, and is a protocol used to
access "Directory Servers". The Directory is a special kind of database that
holds information in a tree structure.

The concept is similar to your hard disk directory structure, except that in
this context, the root directory is "The world" and the first level
subdirectories are "countries". Lower levels of the directory structure contain
entries for companies, organisations or places, while yet lower still we find
directory entries for people, and perhaps equipment or documents.

%package	mbstring
Summary:	MBstring extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
# To make it easier to find for e.g. Roundcube requesting php-multibyte
Provides:	%{name}-multibyte = %{EVRD}

%description	mbstring
This is a dynamic shared object (DSO) for PHP that will add multibyte string
support.

mbstring provides multibyte specific string functions that help you deal with
multibyte encodings in PHP. In addition to that, mbstring handles character
encoding conversion between the possible encoding pairs. mbstring is designed
to handle Unicode-based encodings such as UTF-8 and UCS-2 and many single-byte
encodings for convenience.

%package	mysqli
Summary:	MySQL database module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
# mysqlnd must be loaded before mysqli (undefined symbol: mysqlnd_global_stats)
Requires:	%{name}-mysqlnd = %{EVRD}
Provides:	%{name}-mysql = %{EVRD}
Obsoletes:	%{name}-mysql < %{EVRD}

%description	mysqli
This is a dynamic shared object (DSO) for PHP that will add MySQL database
support.

The mysqli extension allows you to access the functionality provided by MySQL
4.1 and above. It is an improved version of the older PHP MySQL driver,
offering various benefits. The developers of the PHP programming language
recommend using MySQLi when dealing with MySQL server versions 4.1.3 and newer
(takes advantage of new functionality)

More information about the MySQL Database server can be found at
http://www.mysql.com/

Documentation for MySQL can be found at http://dev.mysql.com/doc/.

Documentation for MySQLi can be found at http://www.php.net/manual/en/mysqli.overview.php.

%package	mysqlnd
Summary:	MySQL native database module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	mysqlnd
This is a dynamic shared object (DSO) for PHP that will add MySQL native
database support.

These functions allow you to access MySQL database servers. More information
about MySQL can be found at http://www.mysql.com/.

Documentation for MySQL can be found at http://dev.mysql.com/doc/.

%package	odbc
Summary:	ODBC extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	odbc
This is a dynamic shared object (DSO) for PHP that will add ODBC support.

In addition to normal ODBC support, the Unified ODBC functions in PHP allow you
to access several databases that have borrowed the semantics of the ODBC API to
implement their own API. Instead of maintaining multiple database drivers that
were all nearly identical, these drivers have been unified into a single set of
ODBC functions.

%package	opcache
Summary:	Opcode cache for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	opcache
Opcode cache for PHP

%package	pcntl
Summary:	Process Control extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	pcntl
This is a dynamic shared object (DSO) for PHP that will add process spawning
and control support. It supports functions like fork(), waitpid(), signal()
etc.

Process Control support in PHP implements the Unix style of process creation,
program execution, signal handling and process termination. Process Control
should not be enabled within a webserver environment and unexpected results may
happen if any Process Control functions are used within a webserver
environment.

%package	pdo
Summary:	PHP Data Objects Interface
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
Provides:	%{name}-pdo-abi  = %{pdover}
Provides:	php8(pdo-abi) = %{pdover}

%description	pdo
PDO provides a uniform data access interface, sporting advanced features such
as prepared statements and bound parameters. PDO drivers are dynamically
loadable and may be developed independently from the core, but still accessed
using the same API.

Read the documentation at http://www.php.net/pdo for more information.

%package	pdo_dblib
Summary:	Sybase Interface driver for PDO
Group:		Development/PHP
Requires:       freetds >= 0.63
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}

%description	pdo_dblib
PDO_DBLIB is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to Microsoft SQL Server and Sybase databases through the
FreeTDS libary.

%package	pdo_mysql
Summary:	MySQL Interface driver for PDO
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}

%description	pdo_mysql
PDO_MYSQL is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to MySQL 3.x and 4.x databases.

PDO_MYSQL will take advantage of native prepared statement support present in
MySQL 4.1 and higher. If you're using an older version of the mysql client
libraries, PDO will emulate them for you.

%package	pdo_odbc
Summary:	ODBC v3 Interface driver for PDO
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}

%description	pdo_odbc
PDO_ODBC is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to databases through ODBC drivers or through the IBM DB2
Call Level Interface (DB2 CLI) library. PDO_ODBC currently supports three
different "flavours" of database drivers:

 o ibm-db2  - Supports access to IBM DB2 Universal Database, Cloudscape, and
              Apache Derby servers through the free DB2 client.

 o unixODBC - Supports access to database servers through the unixODBC driver
              manager and the database's own ODBC drivers.

 o generic  - Offers a compile option for ODBC driver managers that are not
              explicitly supported by PDO_ODBC.

%package	pdo_pgsql
Summary:	PostgreSQL interface driver for PDO
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}
Requires:	postgresql-libs >= %{postgresql_version}

%description	pdo_pgsql
PDO_PGSQL is a driver that implements the PHP Data Objects (PDO) interface to
enable access from PHP to PostgreSQL databases.

%package	pdo_sqlite
Summary:	SQLite v3 Interface driver for PDO
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}

%description	pdo_sqlite
PDO_SQLITE is a driver that implements the PHP Data Objects (PDO) interface to
enable access to SQLite 3 databases.

This extension provides an SQLite v3 driver for PDO. SQLite V3 is NOT
compatible with the bundled SQLite 2 in PHP 7, but is a significant step
forwards, featuring complete utf-8 support, native support for blobs, native
support for prepared statements with bound parameters and improved concurrency.

%package	pgsql
Summary:	PostgreSQL database module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
Requires:	postgresql-libs >= %{postgresql_version}

%description	pgsql
This is a dynamic shared object (DSO) for PHP that will add PostgreSQL database
support.

PostgreSQL database is Open Source product and available without cost.
Postgres, developed originally in the UC Berkeley Computer Science Department,
pioneered many of the object-relational concepts now becoming available in some
commercial databases. It provides SQL92/SQL99 language support, transactions,
referential integrity, stored procedures and type extensibility. PostgreSQL is
an open source descendant of this original Berkeley code.

%package	phar
Summary:	Allows running of complete applications out of .phar files
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-bz2

%description	phar
This is the extension version of PEAR's PHP_Archive package. Support for
zlib, bz2 and crc32 is achieved without any dependency other than the external
zlib or bz2 extension.

.phar files can be read using the phar stream, or with the Phar class. If the
SPL extension is available, a Phar object can be used as an array to iterate
over a phar's contents or to read files directly from the phar.

Phar archives can be created using the streams API or with the Phar class, if
the phar.readonly ini variable is set to false.

Full support for MD5 and SHA1 signatures is possible. Signatures can be
required if the ini variable phar.require_hash is set to true. When PECL
extension hash is avaiable then SHA-256 and SHA-512 signatures are supported as
well.

%package	posix
Summary:	POSIX extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	posix
This is a dynamic shared object (DSO) for PHP that will add POSIX functions
support to PHP.

This module contains an interface to those functions defined in the IEEE 1003.1
(POSIX.1) standards document which are not accessible through other means.
POSIX.1 for example defined the open(), read(), write() and close() functions,
too, which traditionally have been part of PHP 3 for a long time. Some more
system specific functions have not been available before, though, and this
module tries to remedy this by providing easy access to these functions.

%package	pspell
Summary:	Pspell extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	pspell
This is a dynamic shared object (DSO) for PHP that will add pspell support to
PHP.

These functions allow you to check the spelling of a word and offer
suggestions.

%package	readline
Summary:	Readline extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	readline
This PHP module adds support for readline functions (only for cli and cgi
SAPIs).

The readline() functions implement an interface to the GNU Readline library.
These are functions that provide editable command lines. An example being the
way Bash allows you to use the arrow keys to insert characters or scroll
through command history. Because of the interactive nature of this library, it
will be of little use for writing Web applications, but may be useful when
writing scripts used from a command line.

%package	recode
Summary:	Recode extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	recode
This is a dynamic shared object (DSO) for PHP that will add recode support
using the recode library.

This module contains an interface to the GNU Recode library. The GNU Recode
library converts files between various coded character sets and surface
encodings. When this cannot be achieved exactly, it may get rid of the
offending characters or fall back on approximations. The library recognises or
produces nearly 150 different character sets and is able to convert files
between almost any pair. Most RFC 1345 character sets are supported.

%package	session
Summary:	Session extension module for PHP
Group:		Development/PHP
Requires(pre):	user(apache)
Requires(pre):	group(apache)
Requires:	%{libname} >= %{EVRD}

%description	session
This is a dynamic shared object (DSO) for PHP that will add session support.

Session support in PHP consists of a way to preserve certain data across
subsequent accesses. This enables you to build more customized applications and
increase the appeal of your web site.

A visitor accessing your web site is assigned a unique id, the so-called
session id. This is either stored in a cookie on the user side or is propagated
in the URL.

%package	shmop
Summary:	Shared Memory Operations extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	shmop
This is a dynamic shared object (DSO) for PHP that will add Shared Memory
Operations support.

Shmop is an easy to use set of functions that allows PHP to read, write, create
and delete Unix shared memory segments.

%package	snmp
Summary:	NET-SNMP extension module for PHP
Group:		Development/PHP
Requires:	net-snmp-mibs
Requires:	%{libname} >= %{EVRD}

%description	snmp
This is a dynamic shared object (DSO) for PHP that will add SNMP support using
the NET-SNMP libraries.

In order to use the SNMP functions you need to install the NET-SNMP package.

%package	soap
Summary:	Soap extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	soap
This is a dynamic shared object (DSO) for PHP that will add soap support.

The SOAP extension can be used to write SOAP Servers and Clients. It supports
subsets of SOAP 1.1, SOAP 1.2 and WSDL 1.1 specifications.

%package	sockets
Summary:	Sockets extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	sockets
This is a dynamic shared object (DSO) for PHP that will add sockets support.

The socket extension implements a low-level interface to the socket
communication functions based on the popular BSD sockets, providing the
possibility to act as a socket server as well as a client.

%package	sqlite3
Summary:	SQLite database bindings for PHP
Group:		Development/PHP
Requires:	%{name}-pdo >= %{EVRD}
Requires:	%{libname} >= %{EVRD}
Obsoletes:	%name-sqlite < %{EVRD}

%description	sqlite3
This is an extension for the SQLite Embeddable SQL Database Engine. SQLite is a
C library that implements an embeddable SQL database engine. Programs that link
with the SQLite library can have SQL database access without running a separate
RDBMS process.

SQLite is not a client library used to connect to a big database server. SQLite
is the server. The SQLite library reads and writes directly to and from the
database files on disk.

%package	sysvmsg
Summary:	SysV msg extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	sysvmsg
This is a dynamic shared object (DSO) for PHP that will add SysV message queues
support.

%package	sysvsem
Summary:	SysV sem extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	sysvsem
This is a dynamic shared object (DSO) for PHP that will add SysV semaphores
support.

%package	sysvshm
Summary:	SysV shm extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	sysvshm
This is a dynamic shared object (DSO) for PHP that will add SysV Shared Memory
support.

%package	tidy
Summary:	Tidy HTML Repairing and Parsing for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	tidy
Tidy is a binding for the Tidy HTML clean and repair utility which allows you
to not only clean and otherwise manipluate HTML documents, but also traverse
the document tree using the Zend Engine 2 OO semantics.

%package	tokenizer
Summary:	Tokenizer extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	tokenizer
This is a dynamic shared object (DSO) for PHP that will add Tokenizer support.

The tokenizer functions provide an interface to the PHP tokenizer embedded in
the Zend Engine. Using these functions you may write your own PHP source
analyzing or modification tools without having to deal with the language
specification at the lexical level.

%package	xml
Summary:	XML extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	xml
This is a dynamic shared object (DSO) for PHP that will add XML support. This
extension lets you create XML parsers and then define handlers for different
XML events.

%package	xmlreader
Summary:	Xmlreader extension module for PHP
Group:		Development/PHP
Requires:	%{name}-dom
Requires:	%{libname} >= %{EVRD}

%description	xmlreader
XMLReader represents a reader that provides non-cached, forward-only access to
XML data. It is based upon the xmlTextReader api from libxml

%package	xmlwriter
Summary:	Provides fast, non-cached, forward-only means to write XML data
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	xmlwriter
This extension wraps the libxml xmlWriter API. Represents a writer that
provides a non-cached, forward-only means of generating streams or files
containing XML data.

%package	xsl
Summary:	Xsl extension module for PHP
Group:		Development/PHP
Requires:	%{libname} >= %{EVRD}

%description	xsl
This is a dynamic shared object (DSO) for PHP that will add xsl support.

The XSL extension implements the XSL standard, performing XSLT transformations
using the libxslt library

%package	zip
Summary:	A zip management extension for PHP
Group:		Development/PHP

%description	zip
This is a dynamic shared object (DSO) for PHP that will add zip support to
create and read zip files using the libzip library.

%package	fpm
Summary:	PHP FastCGI Process Manager
Group:		Development/Other
Requires:	%{libname} >= %{EVRD}
Requires:	%{name}-ctype >= %{EVRD}
Requires:	%{name}-filter >= %{EVRD}
#Requires:	%{name}-ftp >= %{EVRD}
Requires:	%{name}-gettext >= %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-openssl >= %{EVRD}
Requires:	%{name}-posix >= %{EVRD}
Requires:	%{name}-session >= %{EVRD}
# Suggests:	%{name}-suhosin >= 0.9.33
Requires:	%{name}-sysvsem >= %{EVRD}
Requires:	%{name}-sysvshm >= %{EVRD}
Requires:	php-timezonedb >= 3:2009.10
Requires:	%{name}-tokenizer >= %{EVRD}
Requires:	%{name}-xmlreader >= %{EVRD}
Requires:	%{name}-xmlwriter >= %{EVRD}
Requires:	%{name}-zlib >= %{EVRD}
Requires:	%{name}-xml >= %{EVRD}
Requires(pre):	user(apache)
Requires(pre):	group(apache)
%if %{mdvver} >= 202310
Requires(post):	/usr/bin/systemd-tmpfiles
%else
Requires(post):	/bin/systemd-tmpfiles
%endif
Provides:	%{name} = %{EVRD}

%description	fpm
PHP is an HTML-embeddable scripting language. PHP offers built-in database
integration for several commercial and non-commercial database management
systems, so writing a database-enabled script with PHP is fairly simple. The
most common use of PHP coding is probably as a replacement for CGI scripts.

This package contains the FastCGI Process Manager. You must also install
libphp8_common.

%package -n	apache-mod_%{name}
Summary:	The PHP HTML-embedded scripting language for use with apache
Group:		System/Servers
Requires:	%{libname} = %{EVRD}
Requires:	apache-base >= 2.4.0
Requires:	apache-modules >= 2.4.0
Requires:	apache-mpm >= 2.4.0
Requires:	%{name}-ctype = %{EVRD}
Requires:	%{name}-filter = %{EVRD}
#Requires:	%{name}-ftp = %{EVRD}
Requires:	%{name}-gettext = %{EVRD}
Requires:	%{name}-ini >= %{version}
Requires:	%{name}-openssl = %{EVRD}
Requires:	%{name}-pcre = %{EVRD}
Requires:	%{name}-posix = %{EVRD}
Requires:	%{name}-session = %{EVRD}
Requires:	%{name}-sysvsem = %{EVRD}
Requires:	%{name}-tokenizer = %{EVRD}
Requires:	%{name}-xmlreader = %{EVRD}
Requires:	%{name}-xmlwriter = %{EVRD}
Requires:	%{name}-zlib = %{EVRD}
Requires:	%{name}-xml = %{EVRD}
Requires:	php-timezonedb >= 3:2009.10
# Suggests:	%{name}-suhosin >= 0.9.29
Conflicts:	%{name}-suhosin < 0.9.29
Conflicts:	apache-mpm-worker >= 2.4.0
# mod_php with the event mpm is not an recommended by php devs, but
# is (at least somewhat) working. Let's not do a hard conflict.
# Conflicts:	apache-mpm-event >= 2.4.0
BuildRequires:	dos2unix

%description -n apache-mod_%{name}
PHP is an HTML-embedded scripting language. PHP attempts to make it easy for
developers to write dynamically generated web pages. PHP also offers built-in
database integration for several commercial and non-commercial database
management systems, so writing a database-enabled web page with PHP is fairly
simple. The most common use of PHP coding is probably as a replacement for CGI
scripts. The %{name} module enables the apache web server to understand
and process the embedded PHP language in web pages.

This package contains PHP version 7. You'll also need to install the apache web
server.


%package	ini
Summary:	INI files for PHP
Group:		Development/Other

%description	ini
The php-ini package contains the ini file required for PHP.


%prep
export LC_ALL=en_US.utf-8
export LANG=en_US.utf-8
export LANGUAGE=en_US.utf-8
export LANGUAGES=en_US.utf-8
%setup -qn php-%{version}

# Safety check for API version change.
vapi=`sed -n '/#define PHP_API_VERSION/{s/.* //;p}' main/php.h`
if test "x${vapi}" != "x%{apiver}"; then
   : Error: Upstream API version is now ${vapi}, expecting %{apiver}.
   : Update the apiver macro and rebuild.
   exit 1
fi

vzend=`sed -n '/#define ZEND_MODULE_API_NO/{s/^[^0-9]*//;p;}' Zend/zend_modules.h`
if test "x${vzend}" != "x%{zendver}"; then
   : Error: Upstream Zend ABI version is now ${vzend}, expecting %{zendver}.
   : Update the zendver macro and rebuild.
   exit 1
fi

# Safety check for PDO ABI version change
vpdo=`sed -n '/#define PDO_DRIVER_API/{s/.*[	]//;p}' ext/pdo/php_pdo_driver.h`
if test "x${vpdo}" != "x%{pdover}"; then
   : Error: Upstream PDO ABI version is now ${vpdo}, expecting %{pdover}.
   : Update the pdover macro and rebuild.
   exit 1
fi

%if %{build_libmagic}
if ! [ -f %{_datadir}/misc/magic.mgc ]; then
    echo "ERROR: the %{_datadir}/misc/magic.mgc file is needed"
    exit 1
fi
%endif

# the ".droplet" suffix is here to nuke the backups later..., we don't want those in php-devel
# (same goes for the more common "~" suffix)

%patch4 -p1 -b .phpize~
%patch5 -p1 -b .phpbuilddir.droplet
%patch11 -p1 -b .bdb-5.2.droplet
%patch12 -p1 -b .db60~
%patch13 -p1 -b .clangwarn~
%patch14 -p1 -b .0014~
%patch15 -p1 -b .systzdata~

#####################################################################
# Stolen from PLD
%patch22 -p1 -b .dba-link.droplet
%patch23 -p1 -b .zlib-for-getimagesize.droplet
# fpm stuff
%patch30 -p1 -b .fpmmdv.droplet

#####################################################################
# stolen from debian
%patch50 -p1 -b .session.save_path.droplet

#####################################################################
# Stolen from fedora
%patch102 -p1 -b .install.droplet
%patch105 -p1 -b .umask.droplet
%patch113 -p1 -b .libc-client-php.droplet
%patch114 -p1 -b .no_pam_in_c-client.droplet

#patch127 -p1
#patch128 -p1

%ifarch %{e2k}
%patch200 -p1
%endif

cp %{SOURCE2} maxlifetime
cp %{SOURCE3} php.crond
cp %{SOURCE4} php-fpm.service
cp %{SOURCE5} php-fpm.sysconf
cp %{SOURCE6} php-fpm.logrotate
cp %{SOURCE7} create_data_file.php
cp %{SOURCE9} php-fpm-tmpfiles.conf

sed -i maxlifetime php.crond php-fpm.service php-fpm.sysconf \
	php-fpm.logrotate create_data_file.php php-fpm-tmpfiles.conf \
	-e 's,@PHP@,%{name},' \
	-e 's,@PHP_CONFDIR@,%{name}/conf.d,' \
	-e 's,@PHP_FPM@,%{name}-fpm,' \
	-e 's,@BRANCH@,%{php_branch},'

# Change perms otherwise rpm would get fooled while finding requires
find -name "*.inc" | xargs chmod 644
find -name "*.php*" | xargs chmod 644
find -name "*README*" | xargs chmod 644

mkdir -p php-devel/extensions
mkdir -p php-devel/sapi

# Install test files in php-devel
cp -a tests php-devel

cp -dpR ext/* php-devel/extensions/

# SAPI
cp -dpR sapi/* php-devel/sapi/
rm -f php-devel/sapi/cgi/php.sym

# cleanup
find php-devel -name "*.droplet" -o -name "*~" | xargs rm -f

# don't ship MS Windows source
rm -rf php-devel/extensions/com_dotnet

# likewise with these:
find php-devel -name "*.dsp" | xargs rm -f
find php-devel -name "*.mak" | xargs rm -f
find php-devel -name "*.w32" | xargs rm

# maek sure using system libs
rm -rf ext/pcre/pcre2lib

%build
%config_update
%serverbuild

# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

export CFLAGS="${CFLAGS} -fPIC -L%{_libdir} -fno-strict-aliasing -Wno-incompatible-pointer-types"
export CXXFLAGS="${CFLAGS}"
export RPM_OPT_FLAGS="${CFLAGS}"

cat > php-devel/buildext <<EOF
#!/bin/bash
exec %{__cc} -Wall -fPIC -shared $CFLAGS \\
    -I. \`%{_bindir}/%{name}-config --includes\` \\
    -I%{_includedir}/libxml2 \\
    -I%{_includedir}/freetype \\
    -I%{_includedir}/openssl \\
    -I%{_usrsrc}/%{name}-devel/ext \\
    -I%{_includedir}/\$1 \\
    \$4 \$2 -o \$1.so \$3 -lc
EOF

chmod 755 php-devel/buildext

libtoolize --force --copy
cat `aclocal --print-ac-dir`/{libtool,ltoptions,ltsugar,ltversion,lt~obsolete}.m4 >build/libtool.m4
touch configure.ac
./buildconf --force

# Do this patch with a perl hack...
perl -pi -e "s|'\\\$install_libdir'|'%{_libdir}'|" ltmain.sh

export oldstyleextdir=yes
export EXTENSION_DIR="%{_libdir}/%{name}/extensions"
export PROG_SENDMAIL="%{_sbindir}/sendmail"
export GD_SHARED_LIBADD="$GD_SHARED_LIBADD -lm"
# FIXME
# -fuse-ld=gold is a workaround for a very weird bug showing with lld 9.0.1
# and php 7.4.1: "cannot apply additional memory protection after relocation"
# Check if we can get rid of this after lld 10 is released.
%ifarch %{x86_64} %{ix86} %{armx}
SAFE_LDFLAGS=`echo %{ldflags} -fuse-ld=gold|sed -e 's|-Wl,--no-undefined||g'`
export LDFLAGS="$SAFE_LDFLAGS"
%endif
export EXTRA_LIBS="-lz"

# never use "--disable-rpath", it does the opposite

# Configure php8
# FIXME switch to external gd (--with-gd=shared,%_prefix) once php bug #60108 is fixed
for i in fpm cgi cli embed apxs; do
    mkdir build-$i
    pushd build-$i
    ln -s %{_bindir}/libtool .
../configure \
    `[ $i = fpm ] && echo --disable-cli --enable-fpm --with-fpm-user=apache --with-fpm-group=apache --with-fpm-systemd --with-fpm-acl` \
    `[ $i = cgi ] && echo --disable-cli` \
    `[ $i = cli ] && echo --disable-cgi --enable-cli` \
    `[ $i = embed ] && echo --disable-cli --enable-embed=shared` \
    `[ $i = apxs ] && echo --with-apxs2=%{_bindir}/apxs` \
    --build=%{_build} \
    --prefix=%{_prefix} \
    --exec-prefix=%{_prefix} \
    --bindir=%{_bindir} \
    --sbindir=%{_sbindir} \
    --sysconfdir=%{_sysconfdir} \
    --datadir=%{_datadir} \
    --includedir=%{_includedir} \
    --libdir=%{_libdir} \
    --libexecdir=%{_libexecdir} \
    --localstatedir=%{_localstatedir} \
    --mandir=%{_mandir} \
    --enable-rtld-now \
    --enable-shared=yes \
    --enable-static=no \
    --with-external-pcre \
    --with-libdir=%{_lib} \
    --with-config-file-path=%{_sysconfdir}/%{name} \
    --with-config-file-scan-dir=%{_sysconfdir}/%{name}/conf.d \
    --disable-debug  \
    --enable-inline-optimization \
    --with-zlib=%{_prefix} \
    --with-pdo-odbc=unixODBC \
    --with-zlib=shared,%{_prefix} --with-zlib-dir=%{_prefix} \
    --with-openssl=shared,%{_prefix} \
    --without-pear \
    --enable-bcmath=shared \
    --with-bz2=shared,%{_prefix} \
    --enable-calendar=shared \
    --enable-ctype=shared \
    --with-curl=shared,%{_prefix} \
    --enable-dba=shared --with-gdbm --with-db4 --with-cdb  \
    --enable-dom=shared,%{_prefix} \
    --with-enchant=shared,%{_prefix} \
    --enable-exif=shared \
    --enable-fileinfo=shared \
    --enable-filter=shared \
    --enable-intl=shared \
    --with-openssl-dir=%{_prefix} --enable-ftp=shared \
    --with-zlib-dir=%{_prefix} \
    --with-gettext=shared,%{_prefix} \
    --with-gmp=shared,%{_prefix} \
    --with-iconv=shared \
    --with-imap=shared,%{_prefix} --with-imap-ssl=%{_prefix} \
    --with-ldap=shared,%{_prefix} --with-ldap-sasl=%{_prefix} \
    --enable-mbstring=shared,%{_prefix} --enable-mbregex \
    --with-mysql-sock=%{_rundir}/mysql/mysql.sock --with-zlib-dir=%{_prefix} \
    --with-mysqli=shared,mysqlnd \
    --enable-mysqlnd=shared,%{_prefix} \
    --with-unixODBC=shared,%{_prefix} \
    --enable-pcntl=shared \
    --enable-pdo=shared,%{_prefix} --with-pdo-dblib=shared,%{_prefix} --with-pdo-mysql=shared,%{_prefix} --with-pdo-odbc=shared,unixODBC,%{_prefix} --with-pdo-pgsql=shared,%{_prefix} --with-pdo-sqlite=shared,%{_prefix} \
    --with-pgsql=shared,%{_prefix} \
    --enable-phar=shared \
    --enable-posix=shared \
    --with-pspell=shared,%{_prefix} \
    --with-readline=shared,%{_prefix} \
    --enable-session=shared,%{_prefix} \
    --enable-shmop=shared,%{_prefix} \
    --enable-simplexml \
    --with-snmp=shared,%{_prefix} \
    --enable-soap=shared,%{_prefix} \
    --enable-sockets=shared,%{_prefix} \
    --with-sqlite3=shared,%{_prefix} \
    --enable-sysvmsg=shared,%{_prefix} \
    --enable-sysvsem=shared,%{_prefix} \
    --enable-sysvshm=shared,%{_prefix} \
    --with-tidy=shared,%{_prefix} \
    --enable-tokenizer=shared,%{_prefix} \
    --enable-xml=shared,%{_prefix} \
    --enable-xmlreader=shared,%{_prefix} \
    --enable-xmlwriter=shared,%{_prefix} \
    --with-xsl=shared,%{_prefix} \
    --enable-gd=shared --with-external-gd \
    --with-zip=shared,%{_prefix} \
    --with-mhash=shared \
    --with-sodium=shared \
    || (cat config.log && exit 1)

# when all else failed...
perl -pi -e "s|-prefer-non-pic -static||g" Makefile
%make_build

popd
done

%install

install -d %{buildroot}%{_localstatedir}/%{name}
install -d %{buildroot}%{_sysconfdir}/%{name}/conf.d
install -d %{buildroot}%{_sysconfdir}/cron.d
install -d %{buildroot}%{_usrsrc}/%{name}-devel

mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf
cp %{_sysconfdir}/httpd/conf/httpd.conf %{buildroot}%{_sysconfdir}/httpd/conf/httpd.conf

for i in fpm cgi cli embed apxs; do
	make -C build-$i install \
		INSTALL_ROOT=%{buildroot}
done

# This was only needed for make install - so drop it
rm -rf %{buildroot}%{_sysconfdir}/httpd/conf/

# Install binaries with original names to _libexecdir and create versioned symlinks in _bindir
install -d %{buildroot}%{_libexecdir}/%{name}
mv %{buildroot}%{_bindir}/* %{buildroot}%{_libexecdir}/%{name}/
pushd %{buildroot}%{_libexecdir}/%{name}
for file in $(find * -type f); do
	case $file in
		php-*) symlink="${file/php-/%{name}-}" ;;
		phar*) symlink="${file/phar/phar%{php_branch}}" ;;
		*)     symlink="${file}%{php_branch}" ;;
	esac
	ln -s "%{_libexecdir}/%{name}/$file" "%{buildroot}%{_bindir}/$symlink"
done
ln -s "%{_libexecdir}/%{name}/phar.phar" "%{buildroot}%{_bindir}/phar%{php_branch}"
popd

# Rename man pages to include version
pushd %{buildroot}%{_mandir}/man1
for file in *; do
	case $file in
		php-*) new_name="${file/php-/%{name}-}" ;;
		phar*) new_name="${file/phar/phar%{php_branch}}" ;;
		*)     new_name="${file%%.1}%{php_branch}.1" ;;
	esac
	mv "$file" "$new_name"
done
popd

# fpm
install -d %{buildroot}%{_unitdir}
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_localstatedir}/%{name}-fpm
install -d %{buildroot}%{_localstatedir}/log/%{name}-fpm
install -d %{buildroot}/run/%{name}-fpm
install -D -p -m 0644 php-fpm-tmpfiles.conf %{buildroot}%{_tmpfilesdir}/%{name}-fpm.conf
install -m0644 php-fpm.service %{buildroot}%{_unitdir}/%{name}-fpm.service
install -m0644 php-fpm.sysconf %{buildroot}%{_sysconfdir}/sysconfig/%{name}-fpm
install -m0644 php-fpm.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/%{name}-fpm
mv %{buildroot}%{_sbindir}/php-fpm %{buildroot}%{_libexecdir}/%{name}/
ln -s %{_libexecdir}/%{name}/php-fpm %{buildroot}%{_sbindir}/%{name}-fpm
mv %{buildroot}%{_mandir}/man8/{php,%{name}}-fpm.8
mv %{buildroot}%{_datadir}/fpm{,%{php_branch}}

mv %{buildroot}%{_sysconfdir}/php-fpm.conf.default %{buildroot}%{_sysconfdir}/%{name}
mv %{buildroot}%{_sysconfdir}/php-fpm.d %{buildroot}%{_sysconfdir}/%{name}/fpm.d
cp %{buildroot}%{_sysconfdir}/%{name}/php-fpm.conf.default %{buildroot}%{_sysconfdir}/%{name}/php-fpm.conf
cp %{buildroot}%{_sysconfdir}/%{name}/fpm.d/www.conf.default %{buildroot}%{_sysconfdir}/%{name}/fpm.d/www.conf
sed -i %{buildroot}%{_sysconfdir}/%{name}/php-fpm.conf{,.default} \
	-e 's,@PHP@,%{name},' \
	-e 's,@PHP_FPM@,%{name}-fpm,'

cp -dpR php-devel/* %{buildroot}%{_usrsrc}/%{name}-devel/
install -m0644 run-tests*.php %{buildroot}%{_usrsrc}/%{name}-devel/
ln -snf extensions %{buildroot}%{_usrsrc}/%{name}-devel/ext
mv %{buildroot}%{_includedir}/{php,%{name}}
mv %{buildroot}%{_prefix}/lib/libphp.so %{buildroot}%{_libdir}/lib%{name}.so

# extensions
echo "extension = openssl.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/21_openssl.ini
echo "extension = zlib.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/21_zlib.ini
echo "extension = bcmath.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/66_bcmath.ini
echo "extension = bz2.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/10_bz2.ini
echo "extension = calendar.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/11_calendar.ini
echo "extension = ctype.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/12_ctype.ini
echo "extension = curl.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/13_curl.ini
echo "extension = dba.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/14_dba.ini
echo "extension = dom.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/18_dom.ini
echo "extension = exif.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/19_exif.ini
echo "extension = filter.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/81_filter.ini
echo "extension = ftp.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/22_ftp.ini
echo "extension = gd.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/23_gd.ini
echo "extension = gettext.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/24_gettext.ini
echo "extension = gmp.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/25_gmp.ini
#echo "extension = hash.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/54_hash.ini
echo "extension = iconv.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/26_iconv.ini
echo "extension = imap.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/27_imap.ini
echo "extension = intl.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/27_intl.ini
echo "extension = ldap.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/28_ldap.ini
echo "extension = mbstring.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/29_mbstring.ini
echo "extension = fileinfo.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/32_fileinfo.ini
# mysqlnd must be loaded before mysqli (undefined symbol: mysqlnd_global_sta/confts)
echo "extension = mysqlnd.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/36_mysqlnd.ini
echo "extension = mysqli.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/37_mysqli.ini
echo "extension = enchant.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/38_enchant.ini
echo "extension = odbc.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/39_odbc.ini
echo "extension = pcntl.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/40_pcntl.ini
echo "extension = pdo.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/70_pdo.ini
echo "extension = pdo_dblib.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/71_pdo_dblib.ini
echo "extension = pdo_mysql.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/73_pdo_mysql.ini
echo "extension = pdo_odbc.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/75_pdo_odbc.ini
echo "extension = pdo_pgsql.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/76_pdo_pgsql.ini
echo "extension = pdo_sqlite.so"	> %{buildroot}%{_sysconfdir}/%{name}/conf.d/77_pdo_sqlite.ini
echo "extension = pgsql.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/42_pgsql.ini
echo "extension = posix.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/43_posix.ini
echo "extension = pspell.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/44_pspell.ini
echo "extension = readline.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/45_readline.ini
#echo "extension = recode.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/46_recode.ini
echo "extension = session.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/47_session.ini
echo "extension = shmop.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/48_shmop.ini
echo "extension = snmp.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/50_snmp.ini
echo "extension = soap.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/51_soap.ini
echo "extension = sockets.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/52_sockets.ini
echo "extension = sodium.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/85_sodium.ini
echo "extension = sqlite3.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/78_sqlite3.ini
echo "extension = sysvmsg.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/56_sysvmsg.ini
echo "extension = sysvsem.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/57_sysvsem.ini
echo "extension = sysvshm.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/58_sysvshm.ini
echo "extension = tidy.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/59_tidy.ini
echo "extension = tokenizer.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/60_tokenizer.ini
echo "extension = xml.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/62_xml.ini
echo "extension = xmlreader.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/63_xmlreader.ini
echo "extension = xmlwriter.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/64_xmlwriter.ini
echo "extension = xsl.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/63_xsl.ini
echo "extension = zip.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/83_zip.ini
echo "extension = phar.so"		> %{buildroot}%{_sysconfdir}/%{name}/conf.d/84_phar.ini
cat >%{buildroot}%{_sysconfdir}/%{name}/conf.d/85_opcache.ini <<"EOF"
zend_extension = %{_libdir}/%{name}/extensions/opcache.so
opcache.memory_consumption=128
opcache.interned_strings_buffer=8
opcache.max_accelerated_files=4000
opcache.revalidate_freq=60
opcache.fast_shutdown=1
opcache.enable_cli=1
EOF

install -m0755 maxlifetime %{buildroot}%{_libdir}/%{name}/maxlifetime
install -m0644 php.crond %{buildroot}%{_sysconfdir}/cron.d/%{name}

# mod_php
# Follow naming conventions
mv %{buildroot}%{_libdir}/apache/libphp.so %{buildroot}%{_libdir}/apache/mod_%{name}.so

install -d %{buildroot}%{_sysconfdir}/httpd/modules.d
cat > %{buildroot}%{_sysconfdir}/httpd/modules.d/170_mod_%{name}.conf << EOF
LoadModule php_module %{_libdir}/apache/mod_%{name}.so

AddType application/x-httpd-php .php
AddType application/x-httpd-php .phtml
AddType application/x-httpd-php-source .phps

DirectoryIndex index.php index.phtml
EOF

# inis
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -d -m 755 %{buildroot}%{_libdir}/%{name}/extensions
install -d -m 755 %{buildroot}%{_datadir}/%{name}

sed -e 's,/lib/php,/%{_lib}/%{name},g' %{SOURCE10} > %{buildroot}%{_sysconfdir}/%{name}/php.ini

# house cleaning
rm -f %{buildroot}%{_bindir}/pear
rm -f %{buildroot}%{_libdir}/*.*a

# don't pack useless stuff
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/bcmath
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/bz2
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/calendar
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/ctype
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/curl
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/dba
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/dom
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/enchant
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/ereg
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/exif
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/fileinfo
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/filter
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/ftp
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/gettext
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/gmp
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/hash
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/iconv
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/imap
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/intl
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/ldap
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/libxml
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/mbstring
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/mysql
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/mysqli
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/mysqlnd
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/odbc
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/openssl
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pcntl
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pcre
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pdo
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pdo_dblib
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pdo_mysql
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pdo_odbc
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pdo_pgsql
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pdo_sqlite
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pgsql
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/phar
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/posix
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/pspell
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/readline
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/recode
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/shmop
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/snmp
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/soap
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/sockets
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/spl
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/sqlite
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/sqlite3
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/standard
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/sysvmsg
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/sysvsem
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/sysvshm
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/tidy
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/tokenizer
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/xml
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/xmlreader
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/xmlwriter
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/xsl
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/zip
rm -rf %{buildroot}%{_usrsrc}/%{name}-devel/extensions/zlib

# php-devel.i586: E: zero-length /usr/src/php-devel/extensions/pdo_firebird/EXPERIMENTAL
find %{buildroot}%{_usrsrc}/%{name}-devel -type f -size 0 -exec rm -f {} \;

# Install the macros file:
sed -e "s/@PHP_APIVER@/%{apiver}/" \
    -e "s/@PHP_ZENDVER@/%{zendver}/g" \
    -e "s/@PHP_PDOVER@/%{pdover}/" \
    -e "s/@PHP_VERSION@/%{version}/" \
    -e "s/@PHP_CONFDIR@/%{name}\/conf.d/" \
    -e "s/@PHP@/%{name}/" \
    < %{SOURCE1} > macros.php
%install_macro php macros.php

# Fix shebangs to use %{name}
find %{buildroot} -type f -exec sed -i \
	-e '1s,^#!/usr/bin/env\s\+php[^ ]*,#!/usr/bin/%{name},' \
	-e '1s,^#!/usr/bin/php[^ ]*,#!/usr/bin/%{name},' {} +

%if %{build_test}
# do a make test
export NO_INTERACTION=1
export PHPRC="."
export REPORT_EXIT_STATUS=2
export TEST_PHP_DETAILED=0
export TEST_PHP_ERROR_STYLE=EMACS
export TEST_PHP_LOG_FORMAT=LEODC
export PHP_INI_SCAN_DIR=/dev/null

# FAILING TESTS:
# unknown errors with ext/date/tests/oo_002.phpt probably because of php-5.2.5-systzdata.patch
# http://bugs.php.net/bug.php?id=22414 (claimed to be fixed in 2003, but seems not)
# unknown errors with ext/standard/tests/general_functions/phpinfo.phpt
# unknown errors with ext/standard/tests/strings/setlocale_*
disable_tests="ext/date/tests/oo_002.phpt \
ext/standard/tests/file/bug22414.phpt \
ext/standard/tests/general_functions/phpinfo.phpt \
ext/standard/tests/strings/setlocale_basic1.phpt \
ext/standard/tests/strings/setlocale_basic2.phpt \
ext/standard/tests/strings/setlocale_basic3.phpt \
ext/standard/tests/strings/setlocale_variation1.phpt \
ext/standard/tests/strings/setlocale_variation3.phpt \
ext/standard/tests/strings/setlocale_variation4.phpt \
ext/standard/tests/strings/setlocale_variation5.phpt"

[[ -n "$disable_tests" ]] && \
for f in $disable_tests; do
  [[ -f "$f" ]] && mv $f $f.disabled
done

cat >php-test.ini <<EOF
[PHP]
extension_dir="`pwd`/modules"
EOF
for i in modules/*.so; do
	B="`basename $i`"
	case "$B" in
	opcache.so)
		echo zend_extension=$B >>php-test.ini
		;;
	xsl.so)
		# Unresolved symbols, need fixing
		;;
#	ctype.so|dom.so|openssl.so|ftp.so|zlib.so|gettext.so|posix.so|session.so|hash.so|sysvsem.so|sysvshm.so|tokenizer.so|xml.so|xmlreader.so|xmlwriter.so|filter.so)
		# Apparently loaded by default without a need to mention them in the ini file
#		;;
	*)
		echo extension=$B >>php-test.ini
		;;
	esac
done
cat >>php-test.ini <<EOF
open_basedir="`pwd`"
safe_mode=0
output_buffering=0
output_handler=0
magic_quotes_runtime=0
memory_limit=1G

[Session]
session.save_path="`pwd`"
EOF

TEST_PHP_EXECUTABLE=sapi/cli/php sapi/cli/php -n -c ./php-test.ini run-tests.php
%endif

%post fpm
%tmpfiles_create %{name}-fpm.conf
%systemd_post %{name}-fpm.service

%preun fpm
%systemd_preun %{name}-fpm.service

%files doc
%doc php.ini-production php.ini-development

%files -n %{libname}

%files cli
%attr(0755,root,root) %{_libexecdir}/%{name}/php
%{_bindir}/%{name}
%attr(0644,root,root) %{_mandir}/man1/%{name}.1*

%files dbg
%attr(0755,root,root) %{_libexecdir}/%{name}/phpdbg
%{_bindir}/phpdbg%{php_branch}
%attr(0644,root,root) %{_mandir}/man1/phpdbg%{php_branch}.1*

%files cgi
%attr(0755,root,root) %{_libexecdir}/%{name}/php-cgi
%{_bindir}/%{name}-cgi
%{_mandir}/man1/%{name}-cgi.1*

%files devel
%doc README.* EXTENSIONS
%attr(0755,root,root) %{_libexecdir}/%{name}/php-config
%{_bindir}/%{name}-config
%attr(0755,root,root) %{_libexecdir}/%{name}/phpize
%{_bindir}/phpize%{php_branch}
%{_libdir}/lib%{name}.so
%exclude %{_libdir}/libphp.so
%{_libdir}/%{name}/build
%{_usrsrc}/%{name}-devel
%{_includedir}/%{name}
%attr(0644,root,root) %{_mandir}/man1/%{name}-config.1*
%attr(0644,root,root) %{_mandir}/man1/phpize%{php_branch}.1*

%files rpm-macros
%{_rpmmacrodir}/*php*

%files openssl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/21_openssl.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/openssl.so

%files zlib
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/21_zlib.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/zlib.so

%files bcmath
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/66_bcmath.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/bcmath.so

%files bz2
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/10_bz2.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/bz2.so

%files calendar
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/11_calendar.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/calendar.so

%files ctype
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/12_ctype.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/ctype.so

%files curl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/13_curl.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/curl.so

%files dba
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/14_dba.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/dba.so

%files dom
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/18_dom.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/dom.so

%files enchant
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/38_enchant.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/enchant.so

%files exif
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/19_exif.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/exif.so

%files fileinfo
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/32_fileinfo.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/fileinfo.so

%files filter
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/81_filter.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/filter.so

%files ftp
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/22_ftp.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/ftp.so

%files gd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/23_gd.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/gd.so

%files gettext
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/24_gettext.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/gettext.so

%files gmp
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/25_gmp.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/gmp.so

#files hash
#attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/54_hash.ini
#attr(0755,root,root) %{_libdir}/%{name}/extensions/hash.so

%files iconv
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/26_iconv.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/iconv.so

%files imap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/27_imap.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/imap.so

%files intl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/27_intl.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/intl.so

%files ldap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/28_ldap.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/ldap.so

%files mbstring
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/29_mbstring.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/mbstring.so

%files mysqlnd
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/36_mysqlnd.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/mysqlnd.so

%files mysqli
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/37_mysqli.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/mysqli.so

%files odbc
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/39_odbc.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/odbc.so

%files opcache
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/85_opcache.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/opcache.so

%files pcntl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/40_pcntl.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pcntl.so

%files pdo
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/70_pdo.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pdo.so

%files pdo_dblib
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/71_pdo_dblib.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pdo_dblib.so

%files pdo_mysql
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}/conf.d/73_pdo_mysql.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pdo_mysql.so

%files pdo_odbc
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/%{name}/conf.d/75_pdo_odbc.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pdo_odbc.so

%files pdo_pgsql
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/76_pdo_pgsql.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pdo_pgsql.so

%files pdo_sqlite
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/77_pdo_sqlite.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pdo_sqlite.so

%files pgsql
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/42_pgsql.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pgsql.so

%files phar
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/84_phar.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/phar.so
%attr(0755,root,root) %{_libexecdir}/%{name}/phar.phar
%{_libexecdir}/%{name}/phar
%{_bindir}/phar%{php_branch}
%{_bindir}/phar%{php_branch}.phar
%{_mandir}/man1/phar%{php_branch}.1*
%{_mandir}/man1/phar%{php_branch}.phar.1*

%files posix
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/43_posix.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/posix.so

%files pspell
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/44_pspell.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/pspell.so

%files readline
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/45_readline.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/readline.so

#files recode
#attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/46_recode.ini
#attr(0755,root,root) %{_libdir}/%{name}/extensions/recode.so

%files session
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/47_session.ini
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/cron.d/%{name}
%attr(0755,root,root) %{_libdir}/%{name}/extensions/session.so
%attr(0755,root,root) %{_libdir}/%{name}/maxlifetime
%attr(01733,apache,apache) %dir %{_localstatedir}/%{name}

%files shmop
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/48_shmop.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/shmop.so

%files snmp
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/50_snmp.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/snmp.so

%files soap
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/51_soap.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/soap.so

%files sockets
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/52_sockets.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/sockets.so

%files sodium
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/85_sodium.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/sodium.so

%files sqlite3
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/78_sqlite3.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/sqlite3.so

%files sysvmsg
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/56_sysvmsg.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/sysvmsg.so

%files sysvsem
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/57_sysvsem.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/sysvsem.so

%files sysvshm
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/58_sysvshm.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/sysvshm.so

%files tidy
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/59_tidy.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/tidy.so

%files tokenizer
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/60_tokenizer.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/tokenizer.so

%files xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/62_xml.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/xml.so

%files xmlreader
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/63_xmlreader.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/xmlreader.so

%files xmlwriter
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/64_xmlwriter.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/xmlwriter.so

%files xsl
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/63_xsl.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/xsl.so

%files zip
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/conf.d/83_zip.ini
%attr(0755,root,root) %{_libdir}/%{name}/extensions/zip.so

%files fpm
%doc sapi/fpm/LICENSE
%{_unitdir}/%{name}-fpm.service
%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/fpm.d
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/php-fpm.conf
%attr(0644,root,root) %config %{_sysconfdir}/%{name}/php-fpm.conf.default
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/fpm.d/www.conf
%attr(0644,root,root) %config %{_sysconfdir}/%{name}/fpm.d/www.conf.default
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}-fpm
%attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}-fpm
%attr(0755,root,root) %{_libexecdir}/%{name}/php-fpm
%{_sbindir}/%{name}-fpm
%attr(0644,root,root) %{_mandir}/man8/%{name}-fpm.8*
%attr(0711,apache,apache) %dir %{_localstatedir}/%{name}-fpm
%attr(0711,apache,apache) %dir /var/log/%{name}-fpm
%attr(0711,apache,apache) %dir /run/%{name}-fpm
%{_tmpfilesdir}/%{name}-fpm.conf
%{_datadir}/fpm%{php_branch}

%files -n apache-mod_%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/httpd/modules.d/*.conf
%attr(0755,root,root) %{_libdir}/apache/*.so

%files ini
%config(noreplace) %{_sysconfdir}/%{name}/php.ini
%dir %{_sysconfdir}/%{name}/conf.d
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/extensions
%dir %{_libexecdir}/%{name}
%dir %{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15718 |21mr|php-timezonedb-2020.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname timezonedb
%define soname %{modname}.so
%define inifile A60_%{modname}.ini

Summary:	Timezone Database to be used with PHP's date and time functions
Name:		php-%{modname}
Epoch:		3
Version:	2020.2
Release:	4
License:	PHP License
Group:		Development/PHP
Url:		http://pecl.php.net/package/timezonedb/
Source0:	http://pecl.php.net/get/%{modname}-%{version}.tgz
Source1:	A60_timezonedb.ini
BuildRequires:	file
BuildRequires:	php-devel >= 3:5.5.0
Requires:	php(zend-abi)

%description
This extension is a drop-in replacement for the builtin timezone database that
comes with PHP. You should only install this extension in case you need to get
a later version of the timezone database than the one that ships with PHP.

The data that this extension uses comes from the "Olson" database, which is
located at ftp://elsie.nci.nih.gov/pub/.

%files
%doc CREDITS package*.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}

#-----------------------------------------------------------------

%prep
%setup -qn %{modname}-%{version}
[ "../package*.xml" != "/" ] && mv ../package*.xml .

cp %{SOURCE1} %{inifile}

# fix permissions
find . -type f | xargs chmod 644

# strip away annoying ^M
find . -type f|xargs file|grep 'CRLF'|cut -d: -f1|xargs perl -p -i -e 's/\r//'
find . -type f|xargs file|grep 'text'|cut -d: -f1|xargs perl -p -i -e 's/\r//'

%build
%serverbuild
phpize
autoconf
%configure \
	--with-libdir=%{_lib} \
	--with-%{modname}=shared,%{_prefix}
cp -fv %{_bindir}/libtool libtool
%make_build

mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m0755 %{soname} %{buildroot}%{_libdir}/php/extensions/
install -m0644 %{inifile} %{buildroot}%{_sysconfdir}/php.d/%{inifile}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15719 |21mr|php-translit-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname translit
%define soname %{modname}.so
%define inifile A33_%{modname}.ini

Summary:	Transliterates non-latin character sets to latin
Name:		php-%{modname}
Version:	0.7.1
Release:	1
Epoch:		1
License:	PHP License
Group:		Development/PHP
Url:		http://derickrethans.nl/translit.php
Source0:	http://pecl.php.net/get/translit-%{version}.tgz
BuildRequires:	php-devel

%description
This extension allows you to transliterate text in non-latin characters (such
as Chinese, Cyrillic, Greek etc) to latin characters. Besides the
transliteration the extension also contains filters to upper- and lowercase
latin, cyrillic and greek, and perform special forms of transliteration such as
converting ligatures and normalizing punctuation and spacing.

%files
%doc package.xml
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/php.d/%{inifile}
%attr(0755,root,root) %{_libdir}/php/extensions/%{soname}


#----------------------------------------------------------------------------

%prep
%setup -q -n translit-%{version}
[ "../package.xml" != "/" ] && mv ../package.xml .

%build
%serverbuild

phpize
%configure \
	--enable-%{modname}=shared,%{_prefix}
ln -sf %{_bindir}/libtool libtool
%make
mv modules/*.so .

%install
install -d %{buildroot}%{_libdir}/php/extensions
install -d %{buildroot}%{_sysconfdir}/php.d

install -m755 %{soname} %{buildroot}%{_libdir}/php/extensions/

cat > %{buildroot}%{_sysconfdir}/php.d/%{inifile} << EOF
extension = %{soname}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15720 |21mr|physfs-3.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	A library to provide abstract access to various archives
Name:		physfs
Version:	3.0.2
Release:	1
License:	zlib
Group:		System/Libraries
Url:		http://www.icculus.org/physfs/
Source0:	http://www.icculus.org/physfs/downloads/%{name}-%{version}.tar.bz2
Patch0:		physfs-3.0.2-fix-pkgconfig-file-on-x64_64.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(zlib)

%description
A library to provide abstract access to various archives. It is intended for
use in video games.
The programmer defines a "write directory" on the physical filesystem: no file
writing done through the PhysicsFS API can leave that directory.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for physfs
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Conflicts:	%{_lib}physfs2 < 2.0.3-4
%rename	%{_lib}physfs2

%description -n %{libname}
This package contains the library needed to run programs dynamically linked
with %{name}.

%files -n %{libname}
%doc LICENSE.txt README.txt
%{_libdir}/libphysfs.so.%{major}
%{_libdir}/libphysfs.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use physfs
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(zlib)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc build/docs/html/* docs/TODO.txt
%{_bindir}/test_%{name}
%{_includedir}/%{name}.h
%{_libdir}/libphysfs.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/%{name}.h.3*

#----------------------------------------------------------------------------

%prep
%setup -q
# Fix 64 bits lib path in pkgconfig file
%ifarch x86_64
%patch0 -p1
%endif



%build
%cmake -DPHYSFS_ARCHIVE_7Z=OFF -DPHYSFS_BUILD_STATIC=OFF
%make
# Produce also dev docs
%make docs


%install
%makeinstall_std -C build

# Install devel man page
mkdir -p %{buildroot}%{_mandir}/man3
install -m 0644 build/docs/man/man3/%{name}.h.3 %{buildroot}%{_mandir}/man3/%{name}.h.3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15721 |21mr|physlock-13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight Linux console locking tool
Name:		physlock
Version:	13
Release:	2
License:	GPLv2
Group:		System/Libraries
Url:		https://github.com/muennich/physlock
Source0:	https://github.com/muennich/physlock/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	glibc-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libsystemd)

%description
Control physical access to a linux computer by locking all of its virtual
terminals. physlock only allows the user of the active session (the user
logged in on the foreground virtual terminal) and the root user to unlock
the computer and uses PAM for authentication.

%files
%doc LICENSE README.md
%attr(4755,root,root) %{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i 's/-o root -g root //' Makefile

%build
%make \
	CPPFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}" \
	V=1

%install
%makeinstall_std PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15722 |21mr|picketbox-4.9.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

%define _duplicate_files_terminate_build 0

Name:             picketbox
Version:          4.9.6
Release:          9
Summary:          Security framework for Java Applications
License:          LGPLv2+
URL:              http://picketbox.jboss.org

Source0:          https://github.com/picketbox/picketbox/archive/v%{namedversion}.tar.gz
Source1:          picketbox-%{namedversion}-pom.xml

# Until this is merged: https://github.com/picketbox/picketbox/pull/61
Patch0:           picketbox-assembly.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(javax.persistence:persistence-api)
BuildRequires:    mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:    mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires:    mvn(org.hibernate:hibernate-core:3)
BuildRequires:    mvn(org.hibernate:hibernate-entitymanager:3)
BuildRequires:    mvn(org.infinispan:infinispan-core)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires:    mvn(org.jboss.modules:jboss-modules)
BuildRequires:    mvn(org.jboss.security:jbossxacml)
BuildRequires:    mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.6_spec)
BuildRequires:    mvn(org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.5_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires:    mvn(org.picketbox:picketbox-commons)
BuildRequires:    xmvn

%description
Java Security Framework that provides Java developers the following
functionality:

- Authentication Support
- Authorization Support
- Audit Support
- Security Mapping Support
- An Oasis XACML v2.0 compliant engine

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%patch0 -p1

# Change hibernate version
%pom_change_dep org.hibernate: ::3 security-jboss-sx/acl

%pom_remove_dep "org.hibernate:hibernate-annotations" security-jboss-sx/acl/pom.xml
%pom_change_dep :servlet-api org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec security-spi/spi
%pom_change_dep :servlet-api org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec:1.0.2.Final security-spi/parent

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
<execution>
  <id>default-jar</id>
  <phase>skip</phase>
</execution>" security-jboss-sx/jbosssx-client

%pom_remove_dep org.jboss.modules:jboss-modules security-jboss-sx/parent
%pom_add_dep_mgmt org.jboss.modules:jboss-modules:1.3.4.Final:compile security-jboss-sx/parent

# Don't use deprecated "attached" goal of Maven Assembly Plugin, which
# was removed in version 3.0.0.
%pom_xpath_set -r "pom:plugin[pom:artifactId='maven-assembly-plugin']/pom:executions/pom:execution/pom:goals/pom:goal[text()='attached']" single

%pom_remove_dep org.picketbox:common-spi security-jboss-sx/identity
%pom_add_dep org.picketbox:common-spi:'${project.version}':compile security-jboss-sx/identity

%build

%mvn_build -f

%install
%mvn_install

# Assembly jar
install -pm 644  assembly/target/picketbox-%{namedversion}-bin.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/%{name}.jar
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-%{name}.pom
%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15723 |21mr|picketbox-commons-1.0.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .final
%global namedversion %{version}%{?namedreltag}

Name:           picketbox-commons
Version:        1.0.0
Release:        19
Summary:        Common classes for security projects
License:        LGPLv2+
URL:            http://www.jboss.org/picketbox

# svn export http://anonsvn.jboss.org/repos/picketbox/commons/tags/1.0.0.final/picketbox-commons/ picketbox-commons-1.0.0.final
# tar cJf picketbox-commons-1.0.0.final.tar.xz picketbox-commons-1.0.0.final
Source0:        %{name}-%{namedversion}.tar.xz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  maven-local
BuildRequires:  mvn(org.jboss:jboss-parent:pom:)

%description
Common classes for security projects.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15724 |21mr|picketbox-xacml-2.0.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          picketbox-xacml
# Newer release are available here https://github.com/picketbox/security-xacml/tags
Version:       2.0.8
Release:       7
Summary:       JBoss XACML
# BSD: most of the code in ./jboss-sunxacml
# see ./jboss-sunxacml/src/main/java/org/jboss/security/xacml/sunxacml/AbstractPolicy.java as example
License:       BSD and LGPLv2+
URL:           http://picketbox.jboss.org/
# svn export http://anonsvn.jboss.org/repos/jbossas/projects/security/security-xacml/tags/2.0.8.Final/ picketbox-xacml-2.0.8.Final
# tar cafJ picketbox-xacml-2.0.8.Final.tar.xz picketbox-xacml-2.0.8.Final
Source0:       %{name}-%{namedversion}.tar.xz

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.picketbox:picketbox-commons)

%description
JBoss XACML Library

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_disable_module assembly

%pom_change_dep -r :xml-apis xml-apis: jboss-sunxacml jboss-xacml

# https://issues.jboss.org/browse/SECURITY-949
cp -p jboss-sunxacml/src/main/resources/licenses/JBossORG-EULA.txt .
cp -p jboss-sunxacml/src/main/resources/licenses/sunxacml-license.txt .

rm .classpath

%mvn_file :jboss-xacml %{name}
%mvn_file :jboss-sunxacml picketbox-sunxacml
%mvn_alias :jboss-xacml org.jboss.security:jbossxacml
%mvn_package ::pom: __noinstall

%build
# Disabled tests because OpenDS is needed
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license JBossORG-EULA.txt 

%files javadoc -f .mfiles-javadoc
%license JBossORG-EULA.txt sunxacml-license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15725 |21mr|picketlink-2.7.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          picketlink
Version:       2.7.1
Release:       7
Summary:       Features for securing Java EE6 applications
# W3C: modules/federation/src/main/resources/schema modules/federation/src/main/resources/wsdl
License:       ASL 2.0 and W3C
URL:           http://picketlink.org/
Source0:       https://github.com/picketlink/picketlink/archive/v%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.h2database:h2)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.json:javax.json-api)
BuildRequires: mvn(javax.persistence:persistence-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.deltaspike.core:deltaspike-core-api)
BuildRequires: mvn(org.apache.deltaspike.core:deltaspike-core-impl)
BuildRequires: mvn(org.apache.deltaspike.modules:deltaspike-security-module-api)
BuildRequires: mvn(org.apache.deltaspike.modules:deltaspike-security-module-impl)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires: mvn(org.apache.santuario:xmlsec)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires: mvn(org.codehaus.jackson:jackson-jaxrs)
BuildRequires: mvn(org.codehaus.jettison:jettison)
BuildRequires: mvn(org.glassfish:javax.json)
BuildRequires: mvn(org.glassfish.web:javax.el)
BuildRequires: mvn(org.hibernate:hibernate-core)
BuildRequires: mvn(org.hibernate:hibernate-entitymanager)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires: mvn(org.jboss.arquillian:arquillian-bom:pom:)
BuildRequires: mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations:1)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor:1)
BuildRequires: mvn(org.jboss.resteasy:resteasy-cdi)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)
BuildRequires: mvn(org.jboss.security:jbossxacml)
BuildRequires: mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.0_spec)
BuildRequires: mvn(org.jboss.weld:weld-core)
BuildRequires: mvn(org.jboss.weld.servlet:weld-servlet)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.picketbox:picketbox)
BuildRequires: mvn(org.slf4j:slf4j-ext)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.slf4j:slf4j-simple)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
PicketLink is an open source project for simplified security and
identity management for Java Applications.

%package api
Summary:       PicketLink API

%description api
PicketLink API.

%package base-parent
Summary:       PicketLink Base Parent POM

%description base-parent
PicketLink Base Parent POM.

%package bom-parent
Summary:       PicketLink BOM Parent POM

%description bom-parent
Dependency Management for PicketLink.

%package common
Summary:       PicketLink Common

%description common
PicketLink Common Code.

%package config
Summary:       PicketLink Config

%description config
PicketLink Config.

%package deltaspike
Summary:       PicketLink DeltaSpike

%description deltaspike
PicketLink Apache DeltaSpike Extensions.

%package dist-parent
Summary:       PicketLink Distribution POM

%description dist-parent
PicketLink Distribution POM.

%package federation
Summary:       PicketLink Federation Core

%description federation
PicketLink Federation Core contains the
core infrastructure code.

%package idm-api
Summary:       PicketLink Identity Management API

%description idm-api
PicketLink Identity Management API.

%package idm-impl
Summary:       PicketLink Identity Management Implementation

%description idm-impl
PicketLink Identity Management Implementation.

%package idm-parent
Summary:       PicketLink IDM Parent POM

%description idm-parent
PicketLink IDM Parent POM.

%package idm-simple-schema
Summary:       PicketLink Identity Management - Simple JPA Entity Model

%description idm-simple-schema
PicketLink Identity Management - Simple JPA Entity Model.

%package impl
Summary:       PicketLink Main Implementation

%description impl
PicketLink Main Implementation.

%package javaee-6.0
Summary:       PicketLink Java EE 6 BOM POM

%description javaee-6.0
Java EE 6 Dependency Management for PicketLink.

%package javaee-7.0
Summary:       PicketLink Java EE 7 BOM POM

%description javaee-7.0
Java EE 7 Dependency Management for PicketLink.

%package json
Summary:       PicketLink JSON

%description json
PicketLink JSON provides an API and implementation
for JSON based on related specifications such as JWT,
JWS and JWE.

%package oauth
Summary:       PicketLink OAuth

%description oauth
PicketLink OAuth contains OAuth Implementation
for v1.0 and v2.0.

%package parent
Summary:       PicketLink Parent POM

%description parent
PicketLink Parent POM.

%package rest
Summary:       PicketLink REST

%description rest
PicketLink REST provides a set of RESTful identity services and
clients, including support for SCIM 1.1.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
# Cleanup
find . -name '*.class' -print -delete
find . -name '*.jar' -print -delete
find . -name '*.zip' -print -delete

# org.jboss.spec:jboss-javaee-6.0:pom:2.0.0.Final
%pom_remove_dep -r :jboss-javaee-6.0
# org.jboss.spec:jboss-javaee-7.0:pom:1.0.1.Final
%pom_remove_dep -r :jboss-javaee-7.0
# org.jboss.weld:weld-core-bom:pom:1.2.0.Beta1
%pom_remove_dep -r :weld-core-bom
# org.drools:drools-bom:pom:6.0.0.CR4
%pom_remove_dep -r :drools-bom

%pom_remove_plugin -r :maven-checkstyle-plugin

%pom_xpath_inject pom:properties "
 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
 <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>"

%pom_disable_module build-config
%pom_disable_module tests modules/idm

# NON available deps
# org.drools:drools-compiler:6.0.0.CR4
%pom_disable_module drools modules/idm
# com.google.oauth-client:google-oauth-client:1.14.1-beta
# com.google.api-client:google-api-client:1.14.1-beta
# com.google.http-client:google-http-client,google-http-client-jackson:1.14.1-beta
# com.google.apis:google-api-services-oauth2:v2-rev36-1.14.2-beta
# Use NON free: org.json:json:20090211 org.twitter4j:twitter4j-core:3.0.3
%pom_disable_module modules/social

# Use glassfish jsonp apis
%pom_change_dep -r org.jboss.spec.javax.json:jboss-json-api_1.0_spec javax.json:javax.json-api:1.0

# Use too old weld (core) version: 1.1.23.Final
# package org.jboss.weld.environment.se.discovery does not exist
rm -r modules/base/impl/src/test/java/org/picketlink/test/weld \
 modules/base/impl/src/test/java/org/picketlink/http/test
%pom_remove_dep org.jboss.weld.se:weld-se modules/base/impl

# Use web connections for vailadate xsd files
rm -r modules/federation/src/test/java
# Unavailable test dep: apache-xalan:xalan,serializer:2.7.1.patch01-brew
%pom_remove_dep apache-xalan: modules/federation

# org.picketbox:picketbox-ldap:1.0.2.Final
# org.picketbox:picketbox-ldap::tests:1.0.2.Final
%pom_xpath_remove "pom:dependency[pom:scope = 'test']" modules/oauth
rm -r modules/oauth/src/test/java
%pom_remove_plugin :maven-war-plugin modules/oauth

%pom_remove_dep :jboss-ejb3-api modules/rest
# org.eclipse.jetty:8.1.8.v20121106
%pom_remove_dep org.eclipse.jetty: modules/rest
rm -r modules/rest/src/test/java/org/picketlink/test/scim/EmbeddedWebServerBase.java \
 modules/rest/src/test/java/org/picketlink/test/scim/endpoints

# Disable copy of deltaspike
%pom_remove_dep org.picketlink:picketlink-deltaspike dist/full

%pom_add_dep org.jboss.logging:jboss-logging:'${jboss.logging.version}' modules/oauth "<optional>true</optional>"

sed -i 's/createSourcesJar>true/createSourcesJar>false/' dist/full/pom.xml

%build

%mvn_build -f -s -- -Ppicketbox4

%install
%mvn_install

%files -f .mfiles-picketlink
%files api -f .mfiles-picketlink-api
%files base-parent -f .mfiles-picketlink-base-parent
%license LICENSE.TXT

%files bom-parent -f .mfiles-picketlink-bom-parent
%license LICENSE.TXT

%files common -f .mfiles-picketlink-common
%doc README.md
%license LICENSE.TXT

%files config -f .mfiles-picketlink-config
%files deltaspike -f .mfiles-picketlink-deltaspike
%files dist-parent -f .mfiles-picketlink-dist-parent
%license LICENSE.TXT

%files federation -f .mfiles-picketlink-federation
%files idm-api -f .mfiles-picketlink-idm-api
%files idm-impl -f .mfiles-picketlink-idm-impl
%files idm-parent -f .mfiles-picketlink-idm-parent
%license LICENSE.TXT

%files idm-simple-schema -f .mfiles-picketlink-idm-simple-schema
%files impl -f .mfiles-picketlink-impl
%files javaee-6.0 -f .mfiles-picketlink-javaee-6.0
%license LICENSE.TXT

%files javaee-7.0 -f .mfiles-picketlink-javaee-7.0
%license LICENSE.TXT

%files json -f .mfiles-picketlink-json
%files oauth -f .mfiles-picketlink-oauth
%files parent -f .mfiles-picketlink-parent
%license LICENSE.TXT

%files rest -f .mfiles-picketlink-rest

%files javadoc -f .mfiles-javadoc
%license LICENSE.TXT


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15726 |21mr|picketlink-bindings-2.7.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

# Conditionals to help breaking picketlink-wildfly-common <-> wildfly-undertow:8.1.0.Final dependency cycle
%if 0%{?fedora}
%bcond_with wildfly
%endif

Name:          picketlink-bindings
Version:       2.7.1
Release:       6
Summary:       PicketLink Container Bindings
# Not available license file: https://github.com/picketlink/picketlink-bindings/issues/132 https://issues.jboss.org/browse/PLINK-755
# LGPLv2.1: ./picketlink-wildfly-common/src/main/java/org/picketlink/identity/federation/bindings/wildfly/SAML2LoginModule.java
# ./picketlink-wildfly-common/src/main/java/org/picketlink/identity/federation/bindings/wildfly/ServiceProviderSAMLContext.java
# ./picketlink-wildfly-common/src/main/java/org/picketlink/identity/federation/bindings/wildfly/sp/SecurityActions.java
# ./picketlink-wildfly-common/src/main/java/org/picketlink/identity/federation/bindings/wildfly/sp/SPServletExtension.java
License:       ASL 2.0 and LGPLv2+
URL:           http://picketlink.org/
Source0:       https://github.com/picketlink/picketlink-bindings/archive/v%{namedversion}/%{name}-%{namedversion}.tar.gz

Patch0:        picketlink-bindings-2.7.1-remove-wildfly8-support.patch
Patch1:        picketlink-bindings-2.7.1-disable-picketlink-core-copy.patch

BuildRequires: maven-local
BuildRequires: mvn(io.undertow:undertow-core)
BuildRequires: mvn(io.undertow:undertow-servlet)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.codehaus.jackson:jackson-jaxrs)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.modules:jboss-modules)
BuildRequires: mvn(org.jboss.security:jbossxacml)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec)
BuildRequires: mvn(org.picketlink:picketlink-federation)
BuildRequires: mvn(org.picketlink:picketlink-parent:pom:)

# Required by picketlink-parent
BuildRequires: mvn(org.jboss.arquillian:arquillian-bom:pom:)
# Required by arquillian-bom
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)

%if %{with wildfly}
BuildRequires: mvn(org.wildfly:wildfly-undertow)
%endif

# test deps
BuildRequires: mvn(httpunit:httpunit)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpmime)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs)
BuildRequires: mvn(org.jboss.resteasy:resteasy-undertow)
BuildRequires: mvn(rhino:js)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
PicketLink Federation bindings for different containers.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package -n picketlink-wildfly-common
Summary:       PicketLink Common Server Bindings for WildFly

%description -n picketlink-wildfly-common
PicketLink Common Server Bindings for WildFly.

%package -n picketlink-wildfly8
Summary:       PicketLink Distribution - WildFly8

%description -n picketlink-wildfly8
PicketLink Distribution - WildFly8.

%package parent
Summary:       PicketLink Container Bindings Parent POM

%description parent
PicketLink Container Bindings Parent POM.

%prep
%setup -q -n %{name}-%{namedversion}

%if %{without wildfly}
%patch0 -p1
%pom_remove_dep org.wildfly:wildfly-undertow picketlink-wildfly-common
%endif
%patch1 -p1

# Use org.picketlink:picketlink-build-config:2.7.1.Final
%pom_remove_plugin -r :maven-checkstyle-plugin

# Useless modules
%pom_disable_module build-tomcat5
%pom_disable_module build-tomcat7
%pom_disable_module picketlink-tomcat-common
%pom_disable_module picketlink-tomcat5
%pom_disable_module picketlink-tomcat7
%pom_disable_module build-jbas5
%pom_disable_module build-jbas7
%pom_disable_module picketlink-jbas-common
%pom_disable_module picketlink-jbas5
%pom_disable_module picketlink-jbas7
%pom_disable_module picketlink-jetty-common

%pom_xpath_inject "pom:dependencies/pom:dependency[pom:groupId = 'httpunit']" "
 <exclusions>
   <exclusion>
     <groupId>javax.servlet</groupId>
     <artifactId>servlet-api</artifactId>
   </exclusion>
   <exclusion>
     <groupId>jtidy</groupId>
     <artifactId>jtidy</artifactId>
   </exclusion>
 </exclusions>" picketlink-wildfly-common

# Use rhino == 1.6R7
find ./picketlink-wildfly-common -name "SPInitiatedPostBindingSSOWorkflowTestCase.java" -print -delete
find ./picketlink-wildfly-common -name "SPInitiatedSSOWorkflowTestCase.java" -print -delete

%build

%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files javadoc -f .mfiles-javadoc

%files -n picketlink-wildfly-common -f .mfiles-picketlink-wildfly-common
%doc README.md

%files -n picketlink-wildfly8 -f .mfiles-picketlink-wildfly8
%files parent -f .mfiles-picketlink-bindings-parent


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15727 |21mr|picmi-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A nonogram logic game for KDE
Name:		picmi
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://games.kde.org/game.php?game=picmi
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdegames-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Picmi is a number logic game in which cells in a grid have to be colored or
left blank according to numbers given at the side of the grid to reveal a
hidden picture.

%files -f %{name}.lang
%{_kde5_bindir}/picmi
%{_kde5_applicationsdir}/org.kde.picmi.desktop
%{_kde5_datadir}/picmi/
%{_kde5_datadir}/qlogging-categories5/picmi.categories
%{_kde5_iconsdir}/hicolor/*/apps/picmi.*
%{_appdatadir}/org.kde.picmi.appdata.xml

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15728 |21mr|picocontainer-2.15-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          picocontainer
Version:       2.15
Release:       12
Summary:       Java library implementing the Dependency Injection pattern
License:       BSD
Url:           http://picocontainer.codehaus.org/
# svn export http://svn.codehaus.org/picocontainer/java/2.x/tags/picocontainer-2.15
# tar cJf picocontainer-2.15.tar.xz picocontainer-2.15
Source0:       %{name}-%{version}.tar.xz

BuildRequires: mvn(asm:asm)
BuildRequires: mvn(com.thoughtworks.paranamer:paranamer)
BuildRequires: mvn(com.thoughtworks.xstream:xstream)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.jmock:jmock-junit4)
BuildRequires: mvn(xpp3:xpp3_min)
%if 0
# picocontainer-gems deps
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(mx4j:mx4j-impl)
BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires: mvn(org.prefuse:prefuse)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(proxytoys:proxytoys)
%endif

# test deps
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(simple-jndi:simple-jndi)

BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(xpp3:xpp3)

BuildRequires: maven-local
# https://bugzilla.redhat.com/show_bug.cgi?id=1191694
# BuildRequires: mvn(com.thoughtworks.paranamer:paranamer-maven-plugin)
BuildRequires: mvn(org.codehaus:codehaus-parent:pom:)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
PicoContainer is a highly embeddable full service Inversion of Control
(IoC) container for components honor the Dependency Injection pattern.
It can be used as a lightweight alternative to Sun's J2EE patterns for
web applications or general solutions.

Despite it being very compact in size (the core is ~128K and it has no
mandatory dependencies outside the JDK), PicoContainer supports
different dependency injection types (Constructor, Setter, Annotated
Field and Method) and offers multiple lifecycle and monitoring
strategies.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

# remove wagon-webdav-jackrabbit
%pom_xpath_remove "pom:project/pom:build/pom:extensions"
%pom_remove_plugin :xsite-maven-plugin
# Unwanted source jar
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-shade-plugin container

%pom_xpath_remove "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

sed -i "s|junit-dep|junit|" pom.xml

%pom_xpath_remove "pom:dependencyManagement/pom:dependencies/pom:dependency[pom:groupId='cglib']/pom:artifactId"
%pom_xpath_inject "pom:dependencyManagement/pom:dependencies/pom:dependency[pom:groupId='cglib']" "<artifactId>cglib</artifactId>"
%if 0
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:groupId='cglib']/pom:artifactId" gems
%pom_xpath_inject "pom:dependencies/pom:dependency[pom:groupId='cglib']" "<artifactId>cglib</artifactId>" gems

%pom_remove_dep javax.servlet:servlet-api gems
%pom_xpath_inject "pom:project/pom:dependencies" "
<dependency>
  <groupId>org.apache.tomcat</groupId>
  <artifactId>tomcat-servlet-api</artifactId>
  <version>any</version>
  <optional>true</optional>
</dependency>" gems
%else
# missing BR
%pom_disable_module gems
%endif

# https://bugzilla.redhat.com/show_bug.cgi?id=1191694
%pom_remove_plugin :paranamer-maven-plugin
%pom_remove_plugin :paranamer-maven-plugin container
%pom_remove_plugin :paranamer-maven-plugin container-debug

# these test fails for various reason
rm -r container/src/test/org/picocontainer/PicoVisitorTestCase.java \
 container/src/test/org/picocontainer/behaviors/BehaviorAdapterTestCase.java \
 container/src/test/org/picocontainer/behaviors/CachedTestCase.java \
 container/src/test/org/picocontainer/classname/DefaultClassLoadingPicoContainerTestCase.java \
 container/src/test/org/picocontainer/containers/ImmutablePicoContainerTestCase.java \
 container/src/test/org/picocontainer/defaults/AbstractComponentMonitorTestCase.java \
 container/src/test/org/picocontainer/defaults/CollectionComponentParameterTestCase.java \
 container/src/test/org/picocontainer/defaults/DefaultPicoContainerLifecycleTestCase.java \
 container/src/test/org/picocontainer/defaults/issues/Issue0265TestCase.java \
 container/src/test/org/picocontainer/injectors/ConstructorInjectorTestCase.java \
 container/src/test/org/picocontainer/injectors/ReinjectionTestCase.java \
 container/src/test/org/picocontainer/injectors/SetterInjectorTestCase.java \
 container/src/test/org/picocontainer/lifecycle/ReflectionLifecycleStrategyTestCase.java \
 container/src/test/org/picocontainer/lifecycle/StartableLifecycleStrategyTestCase.java \
 container/src/test/org/picocontainer/monitors/RegexComposerTestCase.java \
 container/src/test/org/picocontainer/visitors/MethodCallingVisitorTest.java \
 container/src/test/org/picocontainer/defaults/XStreamSerialisationTestCase.java \
 container/src/test/org/picocontainer/converters/BuiltInConverterTestCase.java \
 container/src/test/org/picocontainer/defaults/DefaultMultipleConstructorTestCase.java \
%if 0
 gems/src/test/org/picocontainer/gems/constraints/AndOrNotTestCase.java \
 gems/src/test/org/picocontainer/gems/constraints/ConstraintsTestCase.java \
 gems/src/test/org/picocontainer/gems/containers/CommonsLoggingTracingContainerDecoratorTestCase.java \
 gems/src/test/org/picocontainer/gems/containers/Log4jTracingContainerDecoratorTestCase.java \
 gems/src/test/org/picocontainer/gems/jmx/AbstractConstructingProviderTest.java \
 gems/src/test/org/picocontainer/gems/jmx/ComponentKeyConventionMBeanInfoProviderTest.java \
 gems/src/test/org/picocontainer/gems/jmx/ComponentTypeConventionMBeanInfoProviderTest.java \
 gems/src/test/org/picocontainer/gems/jmx/DynamicMBeanComponentProviderTest.java \
 gems/src/test/org/picocontainer/gems/jmx/JMXExposedTestCase.java \
 gems/src/test/org/picocontainer/gems/jmx/JMXExposingTestCase.java \
 gems/src/test/org/picocontainer/gems/jmx/JMXVisitorTestCase.java \
 gems/src/test/org/picocontainer/gems/jmx/RegisteredMBeanConstructingProviderTest.java
%endif

# NoClassDefFoundError: org/xmlpull/v1/XmlPullParserFactory
%pom_add_dep xpp3:xpp3::test container
%pom_add_dep xpp3:xpp3::test container-debug

%build

%mvn_build

%install
%mvn_install

sed -i 's/\r//' %{buildroot}%{_javadocdir}/%{name}/stylesheet.css

%files -f .mfiles
%doc README.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15729 |21mr|picom-10.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight compositor for X11
Name:		picom
Version:	10.2
Release:	2
License:	MIT
Group:		Graphical desktop/Other
Url:		https://github.com/yshui/picom
Source0:	https://github.com/yshui/picom/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		Fix-unrecognized-optimize-flag-on-e2k.patch
BuildRequires:	asciidoc
BuildRequires:	a2x
BuildRequires:	docbook-dtd45-xml
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	uthash-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libconfig)
BuildRequires:	pkgconfig(libev)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libxdg-basedir)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-renderutil)
BuildRequires:	pkgconfig(xext)

%description
Picom is a compositor for X11. It is a сompton fork,
which is a fork of xcompmgr-dana.

%files
%doc CONTRIBUTORS README.md
%license COPYING LICENSE.spdx LICENSES/MIT LICENSES/MPL-2.0
%config(noreplace) %{_sysconfdir}/xdg/autostart/lxqt-%{name}-autostart.desktop
%attr(0755,root,root) %{_bindir}/%{name}d
%{_bindir}/%{name}
%{_bindir}/%{name}-trans
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-trans.1.*
%{_sysconfdir}/xdg/autostart/picom.desktop
#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%meson \
	-Dvsync_drm=true	\
	-Dwith_docs=true	\
	-Dunittest=true

%meson_build

%install
%meson_install

rm %{buildroot}%{_bindir}/compton*
rm -rf %{buildroot}%{_datadir}/applications
rm -rf %{buildroot}%{_iconsdir}

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name}d <<EOF
#!/bin/bash

if [ -f %{_bindir}/%{name} ]; then
	%{_bindir}/%{name} -b	\\
	--backend glx		\\
	--vsync			\\
	--xrender-sync-fence	\\
	--glx-no-rebind-pixmap	\\
	--use-damage		\\
	--glx-no-stencil	\\
	--use-ewmh-active-win &>/dev/null || :

	killall picom &>/dev/null || :

	echo "Use %{name} without --backend glx and --vsync"
	%{_bindir}/%{name} -b	\\
	--xrender-sync-fence	\\
	--glx-no-rebind-pixmap	\\
	--use-damage		\\
	--glx-no-stencil	\\
	--use-ewmh-active-win
fi
EOF

mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart/
cat > %{buildroot}%{_sysconfdir}/xdg/autostart/lxqt-%{name}-autostart.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=Eliminating tering
Name[ru]=Устранение тиринга
Comment=Autostart picom
Comment[ru]=Автозапуск picom
Exec=%{name}d
Type=Application
Categories=X-LXQt;
OnlyShowIn=LXQt;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15730 |21mr|pidgin-2.14.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname purple %{major}
%define	libclient %mklibname purple-client %{major}
%define	devname %mklibname purple -d

# (gw) 2.7.0, the yahoo plugin does not build otherwise
%global	_disable_ld_no_undefined 1

%bcond_with	evolution
# Configure check is used unless explicit --with-* options are used.
# (gw) Pidgin's internal libgadu was updated recently.
# Build against external version if possible, keep in mind older distros
# might have an older libgadu
%bcond_without	libgadu
%bcond_without	meanwhile
# (gw) See: https://developer.pidgin.im/ticket/11936#comment:1
%bcond_with	mono
%bcond_without	networkmanager
%bcond_without	perl
%bcond_without	silc
%bcond_without	vv
%bcond_without	finch

Summary:	A GTK+ based multi-protocol instant messaging client
Name:		pidgin
Version:	2.14.12
Release:	1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://www.pidgin.im/
Source0:	https://sourceforge.net/projects/pidgin/files/Pidgin/%{version}/%{name}-%{version}.tar.bz2
Patch0:		pidgin-2.7.0-smiley.patch
# (gw) Fix build with mono 2.6.4 which does not have the necessary glib dep
# in the pkgconfig file; also add missing include
Patch6:		pidgin-2.7.0-mono-build.patch
Patch109:	pidgin-2.14-remove-oldNM.patch
Patch110:	pidgin-2.14-use-libnm.patch
Patch115:	pidgin-2.10.0-gg-search-by-uin.patch
Patch116:	pidgin-2.8.0-gg-disconnect.patch
Patch117:	pidgin-2.14.6-fix-perl-module-build.patch
# Since libtool drops soname for unversioned modules now, we need to explicitly
# add a soname to the plugins which other plugins link against to
Patch118:	pidgin-2.14.4-explicitly-add-soname-to-libjabber.patch
Patch119:	pidgin-2.14.1-intltool.patch
BuildRequires:	desktop-file-utils
BuildRequires:	doxygen
BuildRequires:	GConf2
BuildRequires:	graphviz
BuildRequires:	intltool
BuildRequires:	openssl
BuildRequires:	xsltproc
BuildRequires:	avahi-common-devel
BuildRequires:	gettext-devel
%if %{with perl}
BuildRequires:	perl-devel >= 5.8.1
BuildRequires:	perl(ExtUtils::Embed)
%endif
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(dbus-glib-1) >= 0.60
%if %{with evolution}
BuildRequires:	pkgconfig(evolution-data-server-1.2)
BuildRequires:	pkgconfig(libebook-1.2)
BuildRequires:	pkgconfig(libedata-book-1.2)
%endif
BuildRequires:	pkgconfig(expat)
%if %{with vv}
BuildRequires:	pkgconfig(farstream-0.2) >= 0.2.7
%endif
BuildRequires:	pkgconfig(glib-2.0) >= 2.26
%if %{with finch}
BuildRequires:	pkgconfig(gnt) >= 2.14.1
%endif
BuildRequires:	pkgconfig(gnutls) >= 2.10.0
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-2.0) >= 2.10.0
BuildRequires:	pkgconfig(gtkspell-2.0) >= 2.0.2
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(krb5)
%if %{with libgadu}
BuildRequires:	pkgconfig(libgadu) >= 1.12.0
%endif
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libidn)
%if %{with networkmanager}
BuildRequires:	pkgconfig(libnm)
%endif
BuildRequires:	pkgconfig(libstartup-notification-1.0) >= 0.5
BuildRequires:	pkgconfig(libxml-2.0) >= 2.6.0
%if %{with meanwhile}
BuildRequires:	pkgconfig(meanwhile) >= 1.0.0
%endif
%if %{with mono}
BuildRequires:	pkgconfig(mono)
%endif
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(pango) >= 1.4.0
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(samplerate)
%if %{with silc}
BuildRequires:	pkgconfig(silc) >= 0.9.12
BuildRequires:	pkgconfig(silcclient) >= 0.9.12
%endif
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(sqlite3) >= 3.3
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xscrnsaver)
%if %{with vv}
Suggests:	gstreamer1.0-farstream
%endif
Suggests:	pidgin-plugin-mrim

Requires:	%{name}-client = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{name}-plugins = %{EVRD}
Requires:	rootcerts
Requires:	xdg-utils

%description
Pidgin allows you to talk to anyone using a variety of messaging protocols
including AIM, MSN, Yahoo!, Jabber, Bonjour, Gadu-Gadu, ICQ, IRC, Novell
Groupwise, QQ, Lotus Sametime, SILC, Simple and Zephyr. These protocols are
implemented using a modular, easy to use design. To use a protocol, just add
an account using the account editor.

Pidgin supports many common features of other clients, as well as many unique
features, such as perl scripting, TCL scripting and C plugins.

Pidgin is not affiliated with or endorsed by America Online, Inc., Microsoft
Corporation, Yahoo! Inc., or ICQ Inc.

%files
%doc AUTHORS ChangeLog COPYING COPYRIGHT
%doc NEWS README doc/the_penguin.txt
%{_mandir}/man1/%{name}.*
%{_sysconfdir}/gconf/schemas/purple.schemas
%{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/*
%{_datadir}/icons/*
%{_datadir}/sounds/purple
%{_libdir}/%{name}/cap.so
%{_libdir}/%{name}/convcolors.so
%{_libdir}/%{name}/extplacement.so
%{_libdir}/%{name}/gestures.so
%{_libdir}/%{name}/gtkbuddynote.so
%{_libdir}/%{name}/history.so
%{_libdir}/%{name}/iconaway.so
%{_libdir}/%{name}/markerline.so
%{_libdir}/%{name}/musicmessaging.so
%{_libdir}/%{name}/notify.so
%{_libdir}/%{name}/pidginrc.so
%{_libdir}/%{name}/relnot.so
%{_libdir}/%{name}/sendbutton.so
%{_libdir}/%{name}/spellchk.so
%{_libdir}/%{name}/themeedit.so
%{_libdir}/%{name}/ticker.so
%{_libdir}/%{name}/timestamp.so
%{_libdir}/%{name}/timestamp_format.so
%{_libdir}/%{name}/transparency.so
%if %{with vv}
%{_libdir}/%{name}/vvconfig.so
%endif
%{_libdir}/%{name}/xmppconsole.so
%{_libdir}/%{name}/xmppdisco.so

#----------------------------------------------------------------------------

%package bonjour
Summary:	Bonjour plugin for Purple
Group:		Networking/Instant messaging
Requires:	%{name} >= %{EVRD}

%description bonjour
Bonjour plugin for purple.

%files bonjour
%doc COPYING
%{_libdir}/purple-2/libbonjour.so

#----------------------------------------------------------------------------

%package client
Summary:	Plugin and sample client to control purple clients
Group:		Networking/Instant messaging
Requires:	python3-dbus

%description client
Applications and library to control purple clients remotely.

%files client
%doc COPYING
%{_bindir}/purple-remote
%{_bindir}/purple-send
%{_bindir}/purple-send-async
%{_bindir}/purple-client-example
%{_bindir}/purple-url-handler
%{_libdir}/purple-2/dbus-example.so

#----------------------------------------------------------------------------

%if %{with finch}
%package -n finch
Summary:	A text-based user interface for Pidgin
Group:		Networking/Instant messaging
Requires:	%{name}-i18n >= %{EVRD}
Requires:	%{name}-plugins >= %{EVRD}
Requires:	%{name}-client >= %{EVRD}

%description -n finch
A text-based user interface for using libpurple. This can be run from a
standard text console or from a terminal within X Windows. It uses ncurses
and the homegrown gnt library for drawing windows and text.

%files -n finch
%doc %{_mandir}/man1/finch.*
%{_bindir}/finch
%{_libdir}/finch/
%endif

#----------------------------------------------------------------------------

%if %{with evolution}
%package gevolution
Summary:	Pidgin extension, for Evolution integration
Group:		Networking/Instant messaging
Requires:	%{name} >= %{EVRD}

%description gevolution
This pidgin plugin allows you to have pidgin working together with evolution.

%files gevolution
%doc COPYING
%{_libdir}/%{name}/gevolution.so
%endif

#----------------------------------------------------------------------------

%package i18n
Summary:	Translation files for Pidgin/Finch
Group:		Networking/Instant messaging

%description i18n
This package contains translation files for Pidgin/Finch.

%files i18n -f %{name}.lang
%doc COPYING

#----------------------------------------------------------------------------

%if %{with meanwhile}
%package meanwhile
Summary:	Lotus Sametime Community Client plugin for Purple
Group:		Networking/Instant messaging
Requires:	%{name} >= %{EVRD}

%description meanwhile
Lotus Sametime Community Client plugin for purple.

%files meanwhile
%doc COPYING
%{_libdir}/purple-2/libsametime.so
%endif

#----------------------------------------------------------------------------

%if %{with mono}
%package mono
Summary:	Purple extension to use Mono plugins
Group:		Networking/Instant messaging
Requires:	%{name} >= %{EVRD}

%description mono
Purple can use plugins developed with Mono.

%files mono
%doc COPYING
%{_libdir}/purple-2/mono.so
%{_libdir}/purple-2/*.dll
%endif

#----------------------------------------------------------------------------

%package plugins
Summary:	Pidgin plugins shared by the Purple and Finch
Group:		Networking/Instant messaging
Conflicts:	%{name} < 2.4.1-3

%description plugins
This package contains the parts of Pidgin that are shared between the Purple
and Finch Instant Messengers.

%files plugins
%doc COPYING
%dir %{_libdir}/purple-2
%{_libdir}/purple-2/autoaccept.so
%{_libdir}/purple-2/buddynote.so
%{_libdir}/purple-2/idle.so
%{_libdir}/purple-2/joinpart.so
#{_libdir}/purple-2/libaim.so
%{_libdir}/purple-2/libgg.so
#{_libdir}/purple-2/libicq.so
%{_libdir}/purple-2/libirc.so
%{_libdir}/purple-2/libjabber.so
%{_libdir}/purple-2/libnovell.so
#{_libdir}/purple-2/liboscar.so
%{_libdir}/purple-2/libsimple.so
%{_libdir}/purple-2/libxmpp.so
%{_libdir}/purple-2/libxmpp.so.%{major}*
%{_libdir}/purple-2/libzephyr.so
%{_libdir}/purple-2/log_reader.so
%{_libdir}/purple-2/newline.so
%{_libdir}/purple-2/nss-prefs.so
%{_libdir}/purple-2/offlinemsg.so
#{_libdir}/purple-2/one_time_password.so
%{_libdir}/purple-2/psychic.so
%{_libdir}/purple-2/ssl-gnutls.so
%{_libdir}/purple-2/ssl-nss.so
%{_libdir}/purple-2/ssl.so
%{_libdir}/purple-2/statenotify.so
%{_datadir}/metainfo/%{name}.appdata.xml

#----------------------------------------------------------------------------

%if %{with perl}
%package perl
Summary:	Purple extension enabling perl scripting
Group:		Networking/Instant messaging
Requires:	%{name} >= %{EVRD}
Requires:	perl-Carp
Requires:	perl-Exporter

%description perl
Purple can use perl scripts as plugin, this plugin enable them.

%files perl
%doc doc/PERL-HOWTO.dox
%dir %{_libdir}/%{name}/perl
%{_libdir}/%{name}/perl/Pidgin.pm
%dir %{_libdir}/%{name}/perl/auto
%dir %{_libdir}/%{name}/perl/auto/Pidgin/
%{_libdir}/%{name}/perl/auto/Pidgin/Pidgin.so
%dir %{_libdir}/purple-2/perl
%{_libdir}/purple-2/perl/Purple.pm
%dir %{_libdir}/purple-2/perl/auto
%dir %{_libdir}/purple-2/perl/auto/Purple/
%{_libdir}/purple-2/perl/auto/Purple/Purple.so
%{_libdir}/purple-2/perl.so
%{_mandir}/man3*/*
%endif

#----------------------------------------------------------------------------

%package tcl
Summary:	Purple extension, to use tcl scripting
Group:		Networking/Instant messaging
Requires:	%{name} >= %{EVRD}

%description tcl
Purple can use tcl script as plugins, this plugin enable them.

%files tcl
%doc doc/TCL-HOWTO.dox
%{_libdir}/purple-2/tcl.so

#----------------------------------------------------------------------------

%package silc
Summary:	Purple extension, to use SILC (Secure Internet Live Conferencing)
Group:		Networking/Instant messaging
Requires:	%{name} >= %{EVRD}

%description silc
This purple plugin allows you to use SILC (Secure Internet Live Conferencing)
plugin for live video conference.

%if %{with silc}
%files silc
%doc libpurple/protocols/silc/README
%{_libdir}/purple-2/libsilcpurple.so
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The libpurple library for IM clients like Pidgin and Finch
Group:		System/Libraries

%description -n %{libname}
This package contains the core IM support for IM clients such as Pidgin and
Finch.

%files -n %{libname}
%doc COPYING
%{_libdir}/libpurple.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libclient}
Summary:	The libpurple-client library for %{name}-client
Group:		System/Libraries
Conflicts:	%{name}-client < 2.10.1-1

%description -n %{libclient}
This package contains the shared library for %{name}-client.

%files -n %{libclient}
%doc COPYING
%{_libdir}/libpurple-client.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for pidgin
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
%if %{with finch}
Requires:	pkgconfig(gnt) >= 2.14.1
%endif
Requires:	%{libclient} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the header files, developer documentation and libraries
required for development of Pidgin scripts and plugins.

%files -n %{devname}
%doc ChangeLog.API HACKING PLUGIN_HOWTO
%{_includedir}/*
%{_datadir}/aclocal/purple.m4
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libpurple.so
%{_libdir}/libpurple-client.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
autoreconf -vfi -Im4macros
%configure2_5x \
	--enable-gnutls=yes \
%if %{with perl}
	--enable-perl \
%else
	--disable-perl \
%endif
%if %{with mono}
	--enable-mono \
%else
	--disable-mono \
%endif
%if %{with networkmanager}
	--enable-nm \
%else
	--disable-nm \
%endif
%if %{with evolution}
	--enable-gevolution \
%else
	--disable-gevolution \
%endif
%if %{without vv}
	--disable-vv \
%endif
%if %{without finch}
	--disable-consoleui \
%endif
	--without-krb4 \
	--enable-cap \
	--with-system-ssl-certs=%{_sysconfdir}/pki/tls/rootcerts/ \
	--disable-static \
	--disable-schemas-install

%make


%install
%makeinstall_std mkinstalldirs='mkdir -p'

# Massage the provided .desktop file
desktop-file-install \
	--remove-category="Application" \
	--add-category="GTK" \
	--add-category="Network" \
	--add-category="InstantMessaging" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*

# Remove unwanted files
rm -f %{buildroot}%{_prefix}/*/perl5/*/perllocal.pod
rm -f %{buildroot}%{_libdir}/*/perl/auto/*/{.packlist,*.bs,autosplit.ix}

# Add a python3 shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/{purple-url-handler,purple-remote}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15731 |21mr|pigz-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           pigz
Version:	2.7
Release:	1
Summary:        Parallel implementation of gzip
Group:          Archiving/Compression
License:        zlib
URL:            http://www.zlib.net/pigz/
Source0:        http://www.zlib.net/%{name}/%{name}-%{version}.tar.gz
Patch0:		pigz-2.4-Makefile.patch
BuildRequires:  zlib-devel

%description
pigz, which stands for parallel implementation of gzip,
is a fully functional replacement for gzip that exploits
multiple processors and multiple cores to the hilt when compressing data.

%prep
%autosetup -p1

%build
%make_build CC="%{__cc}" AR="%{__ar}" RANLIB="%{__ranlib}" CFLAGS="%{optflags} -O3" LDFLAGS="%{ldflags} -lz -lm"

%install
install -p -m755 pigz -D %{buildroot}%{_bindir}/pigz
install -p -m755 unpigz -D %{buildroot}%{_bindir}/unpigz
install -p -m644 pigz.1 -D %{buildroot}%{_datadir}/man/man1/pigz.1

%files
%doc pigz.pdf README
%{_bindir}/pigz
%{_bindir}/unpigz
%{_datadir}/man/man1/pigz.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15732 |21mr|pimcommon-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 PIM library
Name:		pimcommon
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
# Drop support for KTextAddons 1.2. We ship >= 1.3
# and supporting both causes the cmake dependency generator
# to require 2 conflicting versions
Patch0: pimcommon-drop-ktextaddons-1.2.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadisearch-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5designerplugin-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5imap-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5ldap-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5textaddons-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kcmutils-devel > 5.0.0
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Conflicts:	storageservicemanager < 3:16.08.2

%description
Plasma 5 PIM library.

%files
%{_kde5_datadir}/qlogging-categories5/pimcommon.categories
%{_kde5_datadir}/qlogging-categories5/pimcommon.renamecategories

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 PIM library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 PIM library translations.

%files i18n -f libpimcommon.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-pimcommonwidgets
Summary:	Qt5 Designer plugin for KDE PIM Common
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-pimcommonwidgets
Qt5 Designer plugin for KDE PIM Common.

%files -n qt5-designer-plugin-pimcommonwidgets
%{_qt5_plugindir}/designer/pimcommon5widgets.so

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-pimcommonakonadiwidgets
Summary:	Qt5 Designer plugin for KDE PIM Common Akonadi
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-pimcommonakonadiwidgets
Qt5 Designer plugin for KDE PIM Common Akonadi.

%files -n qt5-designer-plugin-pimcommonakonadiwidgets
%{_qt5_plugindir}/designer/pimcommon5akonadiwidgets.so

#----------------------------------------------------------------------------

%define kf5pimcommon_major 5
%define libkf5pimcommon %mklibname kf5pimcommon %{kf5pimcommon_major}

%package -n %{libkf5pimcommon}
Summary:	Plasma 5 PIM shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5pimcommon}
Plasma 5 PIM shared library.

%files -n %{libkf5pimcommon}
%{_kde5_libdir}/libKPim5PimCommon.so.%{kf5pimcommon_major}*

#----------------------------------------------------------------------------

%define kf5pimcommonakonadi_major 5
%define libkf5pimcommonakonadi %mklibname kf5pimcommonakonadi %{kf5pimcommonakonadi_major}

%package -n %{libkf5pimcommonakonadi}
Summary:	Plasma 5 PIM Akonadi shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5pimcommonakonadi}
Plasma 5 PIM Akonadi shared library.

%files -n %{libkf5pimcommonakonadi}
%{_kde5_libdir}/libKPim5PimCommonAkonadi.so.%{kf5pimcommonakonadi_major}*

#----------------------------------------------------------------------------

%define devkf5pimcommon %mklibname kf5pimcommon -d

%package -n %{devkf5pimcommon}
Summary:	Development files for Plasma 5 PIM library
Group:		Development/KDE and Qt
Requires:	%{libkf5pimcommon} = %{EVRD}
Requires:	%{libkf5pimcommonakonadi} = %{EVRD}
Provides:	kf5pimcommon-devel = %{version}
Provides:	kf5pimcommonakonadi-devel = %{version}
Recommends:	qt5-designer-plugin-pimcommonwidgets
Recommends:	qt5-designer-plugin-pimcommonakonadiwidgets

%description -n %{devkf5pimcommon}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5pimcommon}
%dir %{_kde5_includedir}/KPim5/PimCommon
%{_kde5_includedir}/KPim5/PimCommon/*
%dir %{_kde5_includedir}/KPim5/PimCommonAkonadi
%{_kde5_includedir}/KPim5/PimCommonAkonadi/*
%{_kde5_libdir}/cmake/KPim5PimCommon
%{_kde5_libdir}/cmake/KPim5PimCommonAkonadi
%{_kde5_libdir}/libKPim5PimCommon.so
%{_kde5_libdir}/libKPim5PimCommonAkonadi.so
%{_kde5_mkspecsdir}/qt_PimCommon.pri
%{_kde5_mkspecsdir}/qt_PimCommonAkonadi.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libpimcommon --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15733 |21mr|pim-data-exporter-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Allows to save data from KDE PIM applications and restore them in other systems
Name:		pim-data-exporter
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		pim-data-exporter-categories.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarsupport-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Provides:	pimdataexporter = %{EVRD}
Provides:	pimsettingexporter = %{EVRD}

%description
PIM data exporter allows to save data from KDE PIM applications and restore
them in other systems.

%files -f pimdataexporter.lang
%{_kde5_applicationsdir}/org.kde.pimdataexporter.desktop
%{_kde5_bindir}/pimdataexporter
%{_kde5_bindir}/pimdataexporterconsole
%{_kde5_datadir}/config.kcfg/pimdataexporterglobalconfig.kcfg
%{_kde5_datadir}/qlogging-categories5/pimdataexporter.categories
%{_kde5_datadir}/qlogging-categories5/pimdataexporter.renamecategories
%{_appdatadir}/org.kde.pimdataexporter.appdata.xml
%{_kde5_docdir}/HTML/*/pimsettingexporter
#----------------------------------------------------------------------------

%define pimdataexporterprivate_major 5
%define libpimdataexporterprivate %mklibname pimdataexporterprivate %{pimdataexporterprivate_major}

%package -n %{libpimdataexporterprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libpimdataexporterprivate}
KDE PIM shared library.

%files -n %{libpimdataexporterprivate}
%{_kde5_libdir}/libpimdataexporterprivate.so.%{pimdataexporterprivate_major}*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang pimdataexporter --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15734 |21mr|pim-sieve-editor-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Sieve editor for KDE PIM applications
Name:		pim-sieve-editor
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		pim-sieve-editor-categories.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5libksieve-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	sieveeditor = %{EVRD}

%description
Sieve editor for KDE PIM applications.

%files -f sieveeditor.lang
%{_kde5_applicationsdir}/org.kde.sieveeditor.desktop
%{_kde5_bindir}/sieveeditor
%{_kde5_datadir}/config.kcfg/sieveeditorglobalconfig.kcfg
%{_kde5_datadir}/qlogging-categories5/sieveeditor.categories
%{_kde5_datadir}/qlogging-categories5/sieveeditor.renamecategories
%{_appdatadir}/org.kde.sieveeditor.appdata.xml

#----------------------------------------------------------------------------

%define sieveeditor_major 5
%define libsieveeditor %mklibname sieveeditor %{sieveeditor_major}

%package -n %{libsieveeditor}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libsieveeditor}
KDE PIM shared library.

%files -n %{libsieveeditor}
%{_kde5_libdir}/libsieveeditor.so.%{sieveeditor_major}*

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang sieveeditor --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15735 |21mr|pinentry-1.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without qt5
%bcond_without ncurses
%bcond_without gtk2
%bcond_without gnome3

Summary:	Collection of simple PIN or passphrase entry dialogs
Name:		pinentry
Version:	1.1.1
Release:	3
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.gnupg.org/
Source0:	ftp://ftp.gnupg.org/gcrypt/%{name}/%{name}-%{version}.tar.bz2
Source2:	pinentry-wrapper
BuildRequires:	cap-devel
BuildRequires:	gettext-devel
BuildRequires:	libassuan-devel
%if %{with gnome3}
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(gcr-base-3)
%endif
BuildRequires:	pkgconfig(libsecret-1)
# gtk2
%if %{with gtk2}
BuildRequires:	pkgconfig(gtk+-2.0)
%endif
# ncurses
%if %{with ncurses}
BuildRequires:	pkgconfig(ncurses)
%endif

# qt5
%if %{with qt5}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
# Prefer qt5 version if none of GUI packages has been selected explicitly
# XXX Duplication with rosa-repos-pkgsprefs
Suggests: %{name}-qt5
%endif
# avoid pulling gui to server ISOs
Recommends:	(%{name}-gui if x11-server-xorg)

%description
%{name} is a collection of simple PIN or passphrase entry dialogs which
utilize the Assuan protocol as described by the aegypten project.

%files
%doc README TODO ChangeLog NEWS AUTHORS THANKS
%{_bindir}/pinentry
%if %{with ncurses}
%{_bindir}/pinentry-curses
%endif
%{_bindir}/pinentry-tty
%{_infodir}/*.info*

#----------------------------------------------------------------------------

%if %{with gnome3}
%package gnome3
Summary:	Passphrase/PIN entry dialog for GNOME 3
Requires:	%{name}
Provides:	%{name}-gui = %{EVRD}
Provides:	%{name}-gtk3 = %{EVRD}

%description gnome3
Pinentry is a collection of simple PIN or passphrase entry dialogs which
utilize the Assuan protocol as described by the aegypten project; see
http://www.gnupg.org/aegypten/ for details.

This package contains the GTK+3 version of the PIN entry dialog.

%files gnome3
%{_bindir}/pinentry-gnome3
%endif

#----------------------------------------------------------------------------
%if %{with gtk2}
%package gtk2
Summary:	GTK+ interface of pinentry
Requires:	%{name}
Provides:	%{name}-gui = %{EVRD}
Provides:	pinentry-gnome2 = %{EVRD}

%description gtk2
%{name} is a collection of simple PIN or passphrase entry dialogs which
utilize the Assuan protocol as described by the aegypten project.

This package provides GTK+2 interface of the dialog.

%files gtk2
%{_bindir}/pinentry-gtk-2
%endif

#-----------------------------------------------------------------------------------------

%package emacs
Summary:	Emacs interface of pinentry
Requires:	%{name}

%description emacs
%{name} is a collection of simple PIN or passphrase entry dialogs which
utilize the Assuan protocol as described by the aegypten project.

This package provides Emacs interface of the dialog.

%files emacs
%{_bindir}/pinentry-emacs

#----------------------------------------------------------------------------
%if %{with qt5}
%package qt5
Summary:	Qt 5 interface of pinentry
Requires:	%{name}
Provides:	%{name}-gui = %{EVRD}
Provides:	%{name}-qt = %{EVRD}
Conflicts:	%{name}-qt4 < 1.1
Obsoletes:	%{name}-qt < 1.1
Obsoletes:	%{name}-qt4 < 1.1

%description qt5
%{name} is a collection of simple PIN or passphrase entry dialogs which
utilize the Assuan protocol as described by the aegypten project.

This package provides Qt 5 interface of the dialog.

%files qt5
%{_bindir}/pinentry-qt
%{_bindir}/pinentry-qt5
%endif

#---------------------------------------------------------------------------=

%prep
%setup -q

%build
./autogen.sh

%configure \
	--enable-pinentry-curses \
	--enable-fallback-curses \
	--enable-pinentry-emacs \
%if %{with gnome3}
	--enable-pinentry-gnome3 \
%endif
%if %{with gtk2}
	--enable-pinentry-gtk2 \
%endif
%if %{with qt5}
	--enable-pinentry-qt5 \
%endif
	--enable-pinentry-tty \
	--enable-libsecret \
	--disable-rpath

%make
%install
%makeinstall_std

install -p -m755 -D %{SOURCE2} %{buildroot}%{_bindir}/pinentry
%if %{with qt5}
ln -s pinentry-qt %{buildroot}%{_bindir}/pinentry-qt5
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15736 |21mr|pipewire-0.3.71-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# For spec-helper
%define dont_remove_rpath 1

%define api	0.3
%define spa_api	0.2
%define major	0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

# Some packages depend from "pulseaudio" or "jack",
# satisfy such dependencies but be sure to prive a much lower version
# to avoid taking priority over real pulseaudio or jack when
# version of PipeWire becomes higher.
%define fake_version 0.%{version}.fake

# (mikhailnov) rosa-repos-pkgprefs (rosa-repos SRPM) makes dependency solvers
# prefer real jack libraries over these ones.
# We do NOT filter provides from %%_libdir/*/ (Fedora does filter them)
# because we have preferences set in rosa-repos-pkgprefs and pull
# /etc/ld.so.conf.d/*.conf configs if jack libraries from pipewire are installed.
%define libjack %mklibname jack_pipewire 0
%define libjacknet %mklibname jacknet_pipewire 0
%define libjackserver %mklibname jackserver_pipewire 0

# (mikhailnov) If someone needs both 32 and 64 bit pipewire-jack or pipewire-alsa,
# dnf will allow him to run:
# dnf install 'pipewire-jack(x86-64)' 'pipewire-jack(x86-32)'
# RPM file coloring will do the magic of dealing with same files in both packages.
# I do not see sense in inventing strange subpackages to avoid this.

# Do not process tons of files by typelib() generatir
# XXX Paths in typelib() generator must be fixed
%global __requires_exclude_from %{_datadir}/doc
%global __provides_exclude_from %{_datadir}/doc

Summary:	Media Sharing Server
Name:		pipewire
Version:	0.3.71
Release:	2
License:	MIT
Group:		Sound
Url:		https://pipewire.org/
Source0:    https://gitlab.freedesktop.org/pipewire/pipewire/-/archive/%{version}/pipewire-%{version}.tar.gz
Source1:	%{name}.sysusers.conf
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	meson
BuildRequires:	xmltoman
BuildRequires:	python3-docutils
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-allocators-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-net-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:  pkgconfig(fdk-aac)
%ifnarch %e2k riscv64
BuildRequires:  roc-toolkit-devel
%endif
%ifnarch %e2k
BuildRequires:	pkgconfig(libcamera)
BuildRequires:  libunwind-devel
%endif
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libmysofa)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(sbc)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(opus)
BuildRequires:	libfreeaptx-devel
BuildRequires:	libldac-devel
BuildRequires:	lilv-devel
BuildRequires:  sndfile-devel
BuildRequires:  speexdsp-devel
BuildRequires:  sox-devel
BuildRequires:  openfec-devel
# to render text in pictures inside devel docs
BuildRequires:	fonts-ttf-freefont
Requires:	%{libname} = %{EVRD}
Requires:	rtkit
# There are multiple implementations of media session server for pipewire:
# * pipewire-media-session (a minimal example)
# * wireplumber
# Wireplumber is being developed actively,
# upstream of pipewire is depreceating pipewire-media-session.
Requires:	pipewire-session-manager
Suggests:	wireplumber
Recommends:	%{name}-utils = %{EVRD}
Recommends:	%{name}-alsa = %{EVRD}
Recommends:	%{name}-jack = %{EVRD}
Recommends:	%{name}-gstreamer = %{EVRD}
Recommends:	%{name}-pulseaudio = %{EVRD}
Requires(post):	/bin/systemd-sysusers

%description
PipeWire is a multimedia server for Linux and other Unix like operating
systems.

%files -f pipewire.lang
%license COPYING LICENSE
%doc README.md
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*.conf
%{_bindir}/%{name}*
%{_bindir}/pw-cli
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.conf.5*
%{_sysusersdir}/%{name}.conf
%{_userunitdir}/%{name}.socket
%{_userunitdir}/%{name}.service
%{_userunitdir}/filter-chain.service
%dir %{_datadir}/alsa-card-profile
%dir %{_datadir}/alsa-card-profile/mixer
%dir %{_datadir}/alsa-card-profile/mixer/paths
%dir %{_datadir}/alsa-card-profile/mixer/profile-sets
%{_datadir}/alsa-card-profile/mixer/paths/*
%{_datadir}/alsa-card-profile/mixer/profile-sets/*
%{_udevrulesdir}/90-%{name}-alsa.rules
%dir %{_libdir}/%{name}-%{api}
%{_libdir}/%{name}-%{api}/lib%{name}-*.so
%dir %{_libdir}/%{name}-%{api}/v4l2
%{_libdir}/%{name}-%{api}/v4l2/libpw-v4l2.so
%{_libdir}/spa-%{spa_api}
%{_datadir}/pipewire/filter-chain
%{_datadir}/pipewire/client-rt.conf.avail/20-upmix.conf
%{_datadir}/pipewire/client.conf.avail/20-upmix.conf
%{_datadir}/pipewire/pipewire-pulse.conf.avail/20-upmix.conf
%{_datadir}/pipewire/pipewire.conf.avail/10-rates.conf
%{_datadir}/pipewire/pipewire.conf.avail/20-upmix.conf
%{_datadir}/spa-0.2/bluez5/bluez-hardware.conf
%{_sysconfdir}/security/limits.d/25-pw-rlimits.conf

%post
%sysusers_create %{name}.conf
%systemd_user_post %{name}.service
%systemd_user_post %{name}.socket

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for PipeWire clients
Group:		System/Libraries

%description -n %{libname}
This package contains the runtime libraries for any application that wishes
to interface with a PipeWire media server.

%files -n %{libname}
%license COPYING LICENSE
%doc README.md
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and libraries for PipeWire client development
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-alsa = %{EVRD}
Requires:	%{name}-jack = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and libraries for developing applications that can communicate with
a PipeWire media server.

%files -n %{devname}
%license COPYING LICENSE
%doc README.md
%{_includedir}/%{name}-%{api}
%{_includedir}/spa-%{spa_api}
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/lib%{name}-%{api}.pc
%{_libdir}/pkgconfig/libspa-%{spa_api}.pc
%{_libdir}/%{name}-%{api}/jack/libjack*.so
%{_defaultdocdir}/%{name}/html

#-------------------------------------------------------------------------

%package utils
Summary:	PipeWire media server utilities
Group:		Sound
Requires:	%{name} = %{EVRD}

%description utils
This package contains command line utilities for the PipeWire media server.

%files utils
%license COPYING LICENSE
%doc README.md
%{_bindir}/pw-cat
%{_bindir}/pw-config
%{_bindir}/pw-encplay
%{_bindir}/pw-link
%{_bindir}/pw-loopback
%{_bindir}/pw-mon
%{_bindir}/pw-metadata
%{_bindir}/pw-dsdplay
%{_bindir}/pw-mididump
%{_bindir}/pw-midiplay
%{_bindir}/pw-midirecord
%{_bindir}/pw-dot
%{_bindir}/pw-top
%{_bindir}/pw-play
%{_bindir}/pw-profiler
%{_bindir}/pw-record
%{_bindir}/pw-reserve
%{_bindir}/pw-dump
%{_bindir}/pw-v4l2
%{_bindir}/spa-acp-tool
%{_bindir}/spa-inspect
%{_bindir}/spa-monitor
%{_bindir}/spa-resample
%{_bindir}/spa-json-dump
%{_mandir}/man1/pw-cat.1*
%{_mandir}/man1/pw-config.1*
%{_mandir}/man1/pw-cli.1*
%{_mandir}/man1/pw-dot.1*
%{_mandir}/man1/pw-link.1*
%{_mandir}/man1/pw-metadata.1*
%{_mandir}/man1/pw-mididump.1*
%{_mandir}/man1/pw-mon.1*
%{_mandir}/man1/pw-profiler.1*
%{_mandir}/man1/pw-top.1*

#-------------------------------------------------------------------------

%package jack
Summary:	PipeWire JACK implementation
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
# XXX cycled deps...
Requires:	%{libjack}%{_isa} = %{EVRD}
Requires:	%{libjacknet}%{_isa} = %{EVRD}
Requires:	%{libjackserver}%{_isa} = %{EVRD}
Provides:	jack = %{fake_version}
Provides:	jack%{_isa} = %{fake_version}
# jackit is a provide of jack
Provides:	jackit = %{fake_version}
Provides:	jackit%{_isa} = %{fake_version}

%description jack
This package provides a JACK implementation based on PipeWire.

%files jack
%license COPYING LICENSE
%doc README.md
%{_bindir}/pw-jack
%{_mandir}/man1/pw-jack.1*
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/pipewire-jack-%{_arch}.conf
%{_datadir}/pipewire/jack.conf

#-------------------------------------------------------------------------

%package -n %{libjack}
Summary:	PipeWire Jack implementation
Group:		System/Libraries
Requires:	%{name}-jack%{_isa} = %{EVRD}
# prefer it over native Jack library if pipewire is installed
Enhances:	pipewire

%description -n %{libjack}
libjack.so.0 from PipeWire, ABI-compatible with libjack.so.0 from Jack

%files -n %{libjack}
%license COPYING LICENSE
%doc README.md
%{_libdir}/pipewire-%{api}/jack/libjack.so.0*

#-------------------------------------------------------------------------

%package -n %{libjacknet}
Summary:	PipeWire Jack implementation
Group:		System/Libraries
Requires:	%{name}-jack%{_isa} = %{EVRD}
# prefer it over native Jack library if pipewire is installed
Enhances:	pipewire

%description -n %{libjacknet}
libjacknet.so.0 from PipeWire, ABI-compatible with libjacknet.so.0 from Jack

%files -n %{libjacknet}
%license COPYING LICENSE
%doc README.md
%{_libdir}/pipewire-%{api}/jack/libjacknet.so.0*

#-------------------------------------------------------------------------

%package -n %{libjackserver}
Summary:	PipeWire Jack implementation
Group:		System/Libraries
Requires:	%{name}-jack%{_isa} = %{EVRD}
# prefer it over native Jack library if pipewire is installed
Enhances:	pipewire

%description -n %{libjackserver}
libjackserver.so.0 from PipeWire, ABI-compatible with libjackserver.so.0 from Jack

%files -n %{libjackserver}
%license COPYING LICENSE
%doc README.md
%{_libdir}/pipewire-%{api}/jack/libjackserver.so.0*

#-------------------------------------------------------------------------

%package pulseaudio
Summary:	PipeWire PulseAudio implementation
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
# compat with Fedora
Provides:	%{name}-pulse = %{EVRD}
Provides:	%{name}-pulse%{_isa} = %{EVRD}
Provides:	pulseaudio = %{fake_version}
Provides:	pulseaudio%{_isa} = %{fake_version}

# Files in %%_userunitdir were moved to here,
# make upgrades smooth
OrderWithRequires(pre): %{name} >= 0.3.23-2.gitcc1275.2

%description pulseaudio
This package provides a PulseAudio implementation based on PipeWire.
Native PulseAudio libraries (libpulse.so.0 etc.) from PulseAudio
communicate with a replacement of PulseAudio daemon from this package.

%files pulseaudio
%license COPYING LICENSE
%doc README.md
# pipewire-pulse imitates real pulseaudio, libpulse.so.0 from pulseaudio
# is used by applications to work with this fake PulseAudio server
%{_bindir}/pipewire-pulse
%{_userunitdir}/%{name}-pulse.service
%{_userunitdir}/%{name}-pulse.socket
%{_datadir}/pipewire/pipewire-pulse.conf
%{_mandir}/man1/pipewire-pulse.1*

%post pulseaudio
%systemd_user_post pipewire-pulse.service
%systemd_user_post pipewire-pulse.socket

#-------------------------------------------------------------------------

%package alsa
Summary:	PipeWire media server ALSA support
Group:		Sound
Requires:	%{name} = %{EVRD}

%description alsa
This package contains an ALSA plugin for the PipeWire media server.

%files alsa
%license COPYING LICENSE
%doc README.md
%config(noreplace) %{_sysconfdir}/alsa/conf.d/50-%{name}.conf
%config(noreplace) %{_sysconfdir}/alsa/conf.d/99-%{name}-default.conf
%{_datadir}/alsa/alsa.conf.d/50-%{name}.conf
%{_datadir}/alsa/alsa.conf.d/99-%{name}-default.conf
%{_libdir}/alsa-lib/libasound_module_ctl_%{name}.so
%{_libdir}/alsa-lib/libasound_module_pcm_%{name}.so

#-------------------------------------------------------------------------

%package gstreamer
Summary:	GStreamer elements for PipeWire
Group:		Sound
Requires:	%{name} = %{EVRD}

%description gstreamer
This package contains GStreamer elements to interface with a
PipeWire media server.

%files gstreamer
%license COPYING LICENSE
%doc README.md
%{_libdir}/gstreamer-1.0/libgstpipewire.so

#-------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dsession-managers="[]" \
	-Ddbus="enabled" \
	-Dudev="enabled" \
	-Dpipewire-v4l2="enabled" \
	-Dbluez5="enabled" \
	-Dffmpeg="enabled" \
%ifnarch %e2k
	-Dlibcamera="enabled" \
%endif
	-Dsdl2="disabled" \
	-Dvolume="disabled" \
	-Davb="enabled" \
	-Dreadline="enabled" \
	-Ddocs="enabled" \
	-Dman="enabled" \
	-Dgstreamer="enabled" \
	-Dgstreamer-device-provider="disabled" \
	-Daudiotestsrc="disabled" \
	-Dbluez5-codec-aptx="enabled" \
	-Dbluez5-codec-lc3plus="disabled" \
	-Dsystemd="enabled" \
	-Dvulkan="enabled" \
	-Davahi="enabled" \
	-Dpw-cat-ffmpeg="enabled" \
	-Dpw-cat="enabled" \
	-Dv4l2="enabled" \
	-Dsndfile="enabled" \
	-Dlibmysofa="enabled" \
	-Dlv2="enabled" \
	-Dflatpak="enabled" \
	-Dopus="enabled" \
%ifnarch %e2k riscv64
    -Droc="enabled" \
%endif
	-Dlibusb="enabled"
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}/alsa/conf.d/
cp %{buildroot}%{_datadir}/alsa/alsa.conf.d/50-%{name}.conf %{buildroot}%{_sysconfdir}/alsa/conf.d/50-%{name}.conf
cp %{buildroot}%{_datadir}/alsa/alsa.conf.d/99-%{name}-default.conf %{buildroot}%{_sysconfdir}/alsa/conf.d/99-%{name}-default.conf

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf

# Load PipeWire's ABI compatible libraries instead of native ones
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo "%{_libdir}/pipewire-%{api}/jack" > %{buildroot}%{_sysconfdir}/ld.so.conf.d/pipewire-jack-%{_arch}.conf

%find_lang pipewire


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15737 |21mr|pipewire-media-session-0.4.1-2.gitf71506.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit f71506321393a0f85f6da0427cd99efa99f2d1e2
%define commit_short %(echo %{commit} | head -c6)

Summary:	Example session manager for PipeWire
Name:		pipewire-media-session
Version:	0.4.1
Release:	2.git%{commit_short}.1
License:	MIT
Group:		Sound
Url:		https://pipewire.org/
Source0:	https://gitlab.freedesktop.org/pipewire/media-session/-/archive/%{commit}/media-session-%{commit}.tar.gz
BuildRequires:	gcc
BuildRequires:	meson
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	doxygen
# to render text in pictures inside devel docs
BuildRequires:	fonts-ttf-freefont
# XXX Cycled deps :(
Requires:		pipewire
Requires:		(%{name}-jack if pipewire-jack)
Requires:		(%{name}-pulseaudio if pipewire-pulse)
# Virtual Provides to support swapping between PipeWire session manager implementations
# (pipewire-media-session, wireplumber etc.)
Provides:		pipewire-session-manager
Conflicts:		pipewire-session-manager
# media-session parts were moved into this separate package
Conflicts:		pipewire < 0.3.39

%description
Example session manager for PipeWire

%files -f media-session.lang
%{_datadir}/doc/%{name}
%{_bindir}/pipewire-media-session
%{_userunitdir}/pipewire-media-session.service
%dir %{_datadir}/pipewire/media-session.d
%{_datadir}/pipewire/media-session.d/alsa-monitor.conf
%{_datadir}/pipewire/media-session.d/bluez-monitor.conf
%{_datadir}/pipewire/media-session.d/media-session.conf
%{_datadir}/pipewire/media-session.d/v4l2-monitor.conf

%posttrans
# https://bugzilla.redhat.com/show_bug.cgi?id=2022584
%systemd_user_post pipewire-media-session.service

%preun
%systemd_user_preun pipewire-media-session.service

#-------------------------------------------------

%package jack
Summary:	%{name} config for Jack
# XXX cycled deps :(
Requires:	%{name}
Requires:	pipewire-jack

%description jack
%{name} config for Jack

%files jack
%{_datadir}/pipewire/media-session.d/with-jack

#-------------------------------------------------

%package pulseaudio
Summary:	%{name} config for PulseAudio
# XXX cycled deps :(
Requires:	%{name}
Requires:	pipewire-pulseaudio

%description pulseaudio
%{name} config for PulseAudio

%files pulseaudio
%{_datadir}/pipewire/media-session.d/with-pulseaudio

#-------------------------------------------------

%prep
%autosetup -p1 -n media-session-%{commit}

%build
%meson \
	-Ddocs="enabled"
%meson_build

%install
%meson_install

mv %{buildroot}%{_datadir}/doc/media-session %{buildroot}%{_datadir}/doc/%{name}

%find_lang media-session

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15738 |21mr|pixelfun3-cursor-theme-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pixelfun3

Summary:	White modern-looking cursor theme with a piece of nostalgia
Name:		%{oname}-cursor-theme
Version:	1.3
Release:	2
License:	GPL
Group:		Graphical desktop/Other
Url:		https://www.gnome-look.org/p/1190830/
Source0:	%{oname}.tar.gz
Source1:	left_ptr
BuildArch:	noarch

%description
White modern-looking cursor theme with a piece of nostalgia.

%files
%dir %{_iconsdir}/%{oname}
%{_iconsdir}/%{oname}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}

%build

%install
install -d %{buildroot}%{_iconsdir}/%{oname}
cp -R * %{buildroot}%{_iconsdir}/%{oname}/
cp -f %{SOURCE1} %{buildroot}%{_iconsdir}/%{oname}/cursors/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15739 |21mr|pixman-0.38.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define apiver 1
%define major 0
%define libname %mklibname %{name} %{apiver} %{major}
%define devname %mklibname %{name} -d

Summary:	A pixel manipulation library
Name:		pixman
Version:	0.38.4
Release:	3
License:	MIT
Group:		System/Libraries
Url:		http://gitweb.freedesktop.org/?p=pixman.git
Source0:	http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.bz2
BuildRequires:	meson
Patch0:		add-e2k-support.patch
# https://www.opennet.ru/opennews/art.shtml?num=58049
Patch1:		CVE-2022-44638.patch

%description
Pixel manipulation Library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Pixel manipulation library
Group:		System/Libraries

%description -n %{libname}
A library for manipulating pixel regions -- a set of Y-X banded
rectangles, image compositing using the Porter/Duff model
and implicit mask generation for geometric primitives including
trapezoids, triangles, and rectangles.

%files -n %{libname}
%{_libdir}/libpixman-%{apiver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing with libpixman
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with pixman.

%files -n %{devname}
%doc README AUTHORS
%{_libdir}/libpixman-%{apiver}.so
%dir %{_includedir}/pixman-1
%{_includedir}/pixman-1/*.h
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# drop tests
# it is useless
sed -i "s!subdir('test')!!g" meson.build

%build
%meson --auto-features=auto \
  -Dgtk=disabled \
%ifarch %{arm} %{e2k}
  -Diwmmxt=disabled -Diwmmxt2=false
%endif
  %nil
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15740 |21mr|pixman-0.42.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define apiver 1
%define major 0
%define libname %mklibname %{name} %{apiver} %{major}
%define devname %mklibname %{name} -d

Summary:	A pixel manipulation library
Name:		pixman
Version:	0.42.0
Release:	1
License:	MIT
Group:		System/Libraries
Url:		http://gitweb.freedesktop.org/?p=pixman.git
Source0:	http://xorg.freedesktop.org/releases/individual/lib/%{name}-%{version}.tar.xz
BuildRequires:	meson
Patch0:		add-e2k-support.patch

%description
Pixel manipulation Library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Pixel manipulation library
Group:		System/Libraries

%description -n %{libname}
A library for manipulating pixel regions -- a set of Y-X banded
rectangles, image compositing using the Porter/Duff model
and implicit mask generation for geometric primitives including
trapezoids, triangles, and rectangles.

%files -n %{libname}
%{_libdir}/libpixman-%{apiver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and include files for developing with libpixman
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides the necessary development libraries and include
files to allow you to develop with pixman.

%files -n %{devname}
%doc README AUTHORS
%{_libdir}/libpixman-%{apiver}.so
%dir %{_includedir}/pixman-1
%{_includedir}/pixman-1/*.h
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# drop tests
# it is useless
sed -i "s!subdir('test')!!g" meson.build

%build
%meson --auto-features=auto \
  -Dgtk=disabled \
%ifarch %{arm} %{e2k}
  -Diwmmxt=disabled -Diwmmxt2=false
%endif
  %nil
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15741 |21mr|pkcs11-helper-1.27-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname pcks11-helper %{major}
%define develname %mklibname -d %{name}

Name: pkcs11-helper
Version: 1.27
Release: 2
Summary: A library that simplifies the interaction with PKCS#11
License: GPL
Group: System/Libraries
URL: http://www.opensc-project.org
Source0: https://github.com/OpenSC/pkcs11-helper/archive/pkcs11-helper-%{version}.tar.gz
# From ALT Linux, https://packages.altlinux.org/ru/sisyphus/srpms/libpkcs11-helper
# Autogenerated, real source is at http://git.altlinux.org/gears/l/libpkcs11-helper.git
Patch0: libpkcs11-helper-1.25.1-gost-derive.patch
BuildRequires: pkgconfig(openssl)
BuildRequires: doxygen graphviz

%description
pkcs11-helper is a library that simplifies the interaction with PKCS#11
providers for end-user applications.

#-------------------------------------------------------------

%package -n %{libname}
Summary: Dynamic libraries from %name
Group: System/Libraries

%description -n %{libname}
Dynamic libraries from %name.

%files -n %{libname}
%{_docdir}/pkcs11-helper
%{_libdir}/*.so.%{major}*

#-------------------------------------------------------------

%package -n %{develname}
Summary: Header files and static libraries from %name
Group: Development/C
Requires: %{libname} = %{version}
Provides: pkcs11-helper-devel
Provides: libpkcs11-helper-devel = %version

%description -n %{develname}
Libraries and includes files for developing programs based on %name.

%files -n %{develname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man8/*
%{_datadir}/aclocal/*

#-------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}
autoreconf -fiv

%build
%configure \
    --disable-debug \
    --disable-static

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15742 |21mr|pkgconf-1.7.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	An API-driven pkg-config replacement
Name:		pkgconf
Version:	1.7.3
Release:	2
License:	GPLv2+
Group:		Development/Other
Url:		https://github.com/pkgconf
Source0:	https://distfiles.dereferenced.org/pkgconf/%{name}-%{version}.tar.xz
# (fhimpe) Otherwise packages with pc files having
# Requires: pkg-config > X are not installable
Provides:	pkgconfig(pkg-config) = 0.29.2
Provides:	pkgconfig = 0.29.2
Obsoletes:	pkgconfig < 0.29.2
Conflicts:	pkgconfig < 0.29.2

%description
pkgconf is a program which helps to configure compiler
and linker flags for development frameworks.

It is similar to pkg-config, but was written from scratch
in the summer of 2011 to replace pkg-config, which for a 
while needed itself to build itself (they have since included 
a 'stripped down copy of glib 2.0') Since then we have worked 
on improving pkg-config for embedded use.

%libpackage %{name} %{major}

%package -n %{develname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
Libraries and includes files for
developing programs based on %{name}.

%prep
%autosetup -p1

%build
%configure \
	--with-system-includedir=%{_includedir} \
	--with-system-libdir=%{_libdir} \
	--with-pkg-config-dir="%{_libdir}/pkgconfig:%{_datadir}/pkgconfig"

%make_build

%install
%make_install

# (tpg) enable it when we obsolete pkg-config
# these compat links and direcotries are needed
ln -sf %{_bindir}/pkgconf %{buildroot}%{_bindir}/pkg-config
ln -sf %{_bindir}/pkgconf %{buildroot}%{_bindir}/%{_target_platform}-pkg-config

mkdir -p %{buildroot}%{_libdir}/pkgconfig
%if "%{_lib}" != "lib"
mkdir -p %{buildroot}%{_prefix}/lib/pkgconfig
ln -s ../../lib/pkgconfig %{buildroot}%{_libdir}/pkgconfig/32
%endif

mkdir -p %{buildroot}%{_datadir}/pkgconfig

%files
%doc AUTHORS COPYING README.md
%{_bindir}/pkgconf
%{_bindir}/pkg-config
%{_bindir}/%{_target_platform}-pkg-config
%dir %{_libdir}/pkgconfig
%if "%{_lib}" != "lib"
%dir %{_prefix}/lib/pkgconfig
%{_libdir}/pkgconfig/32
%endif
%dir %{_datadir}/pkgconfig
%{_datadir}/aclocal/pkg.m4
%{_mandir}/man1/pkgconf.1.*
%{_mandir}/man5/pc.*
%{_mandir}/man5/pkgconf-personality.5.*
%{_mandir}/man7/pkg.m4.*

%files -n %{develname}
%dir %{_includedir}/%{name}
%dir %{_includedir}/%{name}/libpkgconf
%{_includedir}/%{name}/libpkgconf/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/libpkgconf.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15743 |21mr|pki-core-10.8.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global brand dogtag
%global with_test 1
%global nss_default_db_type sql
%global python_executable %{__python3}
%define java_home /usr/lib/jvm/jre-1.8.0-openjdk
%define jaxrs_api_jar /usr/share/java/jboss-jaxrs-2.0-api.jar
%define resteasy_lib /usr/share/java/resteasy

# By default all packages will be built except the ones specified with
# --without <package> option (exclusion method).
# If --with pkgs option is specified, only packages specified with
# --with <package> will be built (inclusion method).
# bcond_with pkgs
%global with_pkgs 1
# Define package_option macro to wrap bcond_with or bcond_without macro
# depending on package selection method.
%if %{with pkgs}
%define package_option() %bcond_with %1
%else
%define package_option() %bcond_without %1
%endif
# Define --with <package> or --without <package> options depending on
# package selection method.
# package_option base
%global with_base 1
# package_option server
%global with_server 1
# package_option ca
%global with_ca 1
# package_option kra
%global with_kra 1
# package_option ocsp
%global with_ocsp 1
# package_option tks
%global with_tks 1
# package_option tps
%global with_tps 1
# package_option javadoc
%global with_javadoc 1
# package_option console
%global with_console 1
# package_option theme
%global with_theme 1
# package_option meta
%global with_meta 1
# package_option debug
%global with_debug 1
%if ! %{with debug}
%define debug_package %{nil}
%endif

%bcond_with engine
%bcond_with tests

# off this generator which is useless here
%global __typelib_requires %{nil}
%global __typelib_provides %{nil}

Summary:	PKI Core Package
Name:		pki-core
Version:	10.8.3
Release:	8
# The entire source code is GPLv2 except for 'pki-tps' which is LGPLv2
License:	GPLv2 and LGPLv2
Group:		Development/Java
URL:		http://www.dogtagpki.org/
Source0:	https://github.com/dogtagpki/pki/archive/v%{version}.tar.gz?/pki-%{version}.tar.gz
Source20:	pki-server.sysusers.conf
#patches from tag v10.9 remove his after update to new version
Patch1:		0001-Removed-dependency-on-pytest-runner.patch
Patch2:		0002-Patch-ECAdminCertProfile-upgrade-script.patch

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# autosetup
BuildRequires:    git-core
BuildRequires:    make
BuildRequires:    cmake
BuildRequires:    gcc-c++
BuildRequires:    zip
BuildRequires:    java-1.8.0-openjdk-devel
BuildRequires:    javapackages-tools
BuildRequires:    ldapjdk >= 4.21.0
BuildRequires:    apache-commons-cli
BuildRequires:    apache-commons-codec
BuildRequires:    apache-commons-io
BuildRequires:    apache-commons-lang
BuildRequires:    apache-commons-net
BuildRequires:    jakarta-commons-httpclient
BuildRequires:    glassfish-jaxb-api
BuildRequires:    slf4j
BuildRequires:    slf4j-jdk14
BuildRequires:    nspr-devel
BuildRequires:    nss-devel
BuildRequires:    openldap-devel
BuildRequires:    pkgconfig
BuildRequires:    policycoreutils
BuildRequires:    python3-lxml
BuildRequires:    python3-sphinx
BuildRequires:    velocity
BuildRequires:    xalan-j2
BuildRequires:    xerces-j2
%if 0%{?rhel}
BuildRequires:    resteasy >= 3.0.26
%else
BuildRequires:    jboss-annotations-1.2-api
BuildRequires:    jboss-jaxrs-2.0-api
BuildRequires:    jboss-logging
BuildRequires:    resteasy-atom-provider >= 3.0.17-1
BuildRequires:    resteasy-client >= 3.0.17-1
BuildRequires:    resteasy-jaxb-provider >= 3.0.17-1
BuildRequires:    resteasy-core >= 3.0.17-1
BuildRequires:    resteasy-jackson2-provider >= 3.0.17-1
%endif
BuildRequires:    python3
BuildRequires:    python3-devel
BuildRequires:    python3-setuptools
BuildRequires:    python3-cryptography
BuildRequires:    python3-lxml
BuildRequires:    python3-ldap
BuildRequires:    python3-libselinux
BuildRequires:    python3-nss
BuildRequires:    python3-requests
BuildRequires:    python3-six
%if 0%{?rhel}
# no python3-pytest-runner
%else
BuildRequires:    python3-pytest-runner
%endif
BuildRequires:    junit
BuildRequires:    jpackage-utils >= 0:1.7.5-10
BuildRequires:    jss >= 4.6.0
BuildRequires:    tomcatjss >= 7.4.1
BuildRequires:    systemd-units
%if %{with engine}
BuildRequires:    pki-servlet-engine
%else
BuildRequires:    tomcat >= 1:9.0.7
%endif
# additional build requirements needed to build native 'tpsclient'
# REMINDER:  Revisit these once 'tpsclient' is rewritten as a Java app
BuildRequires:    apr-devel
BuildRequires:    apr-util-devel
BuildRequires:    cyrus-sasl-devel
BuildRequires:    apache-devel
BuildRequires:    pcre-devel
BuildRequires:    systemd
BuildRequires:    zlib
BuildRequires:    zlib-devel
BuildRequires:    golang-github-cpuguy83-md2man
BuildRequires:    freeipa-healthcheck-core
# PKICertImport depends on certutil and openssl
BuildRequires:    nss
BuildRequires:    openssl
# description for top-level package (if there is a separate meta package)
%if "%{name}" != "%{brand}-pki"
%description

Dogtag PKI is an enterprise software system designed
to manage enterprise Public Key Infrastructure deployments.

PKI consists of the following components:

  * Certificate Authority (CA)
  * Key Recovery Authority (KRA)
  * Online Certificate Status Protocol (OCSP) Manager
  * Token Key Service (TKS)
  * Token Processing Service (TPS)

%endif

%if %{with meta}
%if "%{name}" != "%{brand}-pki"
################################################################################
%package -n       %{brand}-pki
################################################################################

Summary:          Dogtag PKI Package
%endif

# Make certain that this 'meta' package requires the latest version(s)
# of ALL PKI theme packages
Requires:         %{brand}-pki-server-theme = %{EVRD}
Requires:         %{brand}-pki-console-theme = %{EVRD}

# Make certain that this 'meta' package requires the latest version(s)
# of ALL PKI core packages
Requires:         pki-ca = %{EVRD}
Requires:         pki-kra = %{EVRD}
Requires:         pki-ocsp = %{EVRD}
Requires:         pki-tks = %{EVRD}
Requires:         pki-tps = %{EVRD}

# Make certain that this 'meta' package requires the latest version(s)
# of PKI console
Requires:         pki-console = %{EVRD}
Requires:         pki-javadoc = %{EVRD}

# Make certain that this 'meta' package requires the latest version(s)
# of ALL PKI clients
# esc is not packaged and tested in ROSA
#Requires:         esc >= 1.1.1

# description for top-level package (unless there is a separate meta package)
%if "%{name}" == "%{brand}-pki"
%description
%else
%description -n   %{brand}-pki
%endif

Dogtag PKI is an enterprise software system designed
to manage enterprise Public Key Infrastructure deployments.

PKI consists of the following components:

  * Certificate Authority (CA)
  * Key Recovery Authority (KRA)
  * Online Certificate Status Protocol (OCSP) Manager
  * Token Key Service (TKS)
  * Token Processing Service (TPS)

%if "%{name}" != "%{brand}-pki"
%files -n %{brand}-pki
%else
%files
%endif
%doc %{_datadir}/doc/pki/README

# with meta
%endif

#-------------------------------------------------------------------------------

%if %{with base}
%package -n pki-symkey
Summary:          PKI Symmetric Key Package
Requires:         java-1.8.0-openjdk-headless
Requires:         jpackage-utils >= 0:1.7.5-10
Requires:         jss >= 4.6.0
Requires:         nss >= 3.38.0

%description -n pki-symkey
The PKI Symmetric Key Java Package supplies various native
symmetric key operations to Java programs.

%files -n pki-symkey
%license base/symkey/LICENSE
%{_jnidir}/symkey.jar
%{_libdir}/symkey/

#-------------------------------------------------------------------------------

%package -n pki-base
Summary:          PKI Base Package
Group:          Development/Java
BuildArch:        noarch
Requires:         nss >= 3.36.1
Requires:         python3-pki = %{EVRD}
Requires(post):   python3-pki = %{EVRD}

%description -n pki-base
The PKI Base Package contains the common and client libraries and utilities
written in Python.

%files -n pki-base
%license base/common/LICENSE
%license base/common/LICENSE.LESSER
%doc %{_datadir}/doc/pki-base/html
%dir %{_datadir}/pki
%{_datadir}/pki/VERSION
%{_datadir}/pki/pom.xml
%dir %{_datadir}/pki/etc
%{_datadir}/pki/etc/pki.conf
%{_datadir}/pki/etc/logging.properties
%dir %{_datadir}/pki/lib
%dir %{_datadir}/pki/scripts
%{_datadir}/pki/scripts/config
%{_datadir}/pki/upgrade/
%{_datadir}/pki/key/templates
%dir %{_sysconfdir}/pki
%config(noreplace) %{_sysconfdir}/pki/pki.conf
%dir %{_localstatedir}/log/pki
%{_sbindir}/pki-upgrade
%{_mandir}/man1/pki-python-client.1*
%{_mandir}/man5/pki-logging.5*
%{_mandir}/man8/pki-upgrade.8*

%post -n pki-base
if [ $1 -eq 1 ]
then
    # On RPM installation create system upgrade tracker
    echo "Configuration-Version: %{version}" > %{_sysconfdir}/pki/pki.version

else
    # On RPM upgrade run system upgrade
    echo >> /var/log/pki/pki-upgrade-%{version}.log
    echo "Upgrading PKI system configuration at `date`" >> /var/log/pki/pki-upgrade-%{version}.log
    pki-upgrade --silent 2>&1 >> /var/log/pki/pki-upgrade-%{version}.log
fi

%postun -n pki-base
if [ $1 -eq 0 ]
then
    # On RPM uninstallation remove system upgrade tracker
    rm -f %{_sysconfdir}/pki/pki.version
fi

#-------------------------------------------------------------------------------

%package -n       python3-pki
Summary:          PKI Python 3 Package
Group:            Development/Java
BuildArch:        noarch
Obsoletes:        pki-base-python3 < %{version}
Provides:         pki-base-python3 = %{EVRD}
Requires:         pki-base = %{EVRD}
Requires:         python3 >= 3.5
Requires:         python3-cryptography
Requires:         python3-lxml
Requires:         python3-nss
Requires:         python3-requests >= 2.6.0
Requires:         python3-six

%description -n python3-pki
This package contains PKI client library for Python 3.

%files -n python3-pki
%license base/common/LICENSE
%license base/common/LICENSE.LESSER
%if %{with server}
%exclude %{python3_sitelib}/pki/server
%endif
%{python3_sitelib}/pki

#-------------------------------------------------------------------------------

%package -n pki-base-java
Summary:          PKI Base Java Package
Group:            Development/Java
BuildArch:        noarch
Requires:         java-1.8.0-openjdk-headless
Requires:         apache-commons-cli
Requires:         apache-commons-codec
Requires:         apache-commons-io
Requires:         apache-commons-lang
Requires:         apache-commons-logging
Requires:         apache-commons-net
Requires:         jakarta-commons-httpclient
Requires:         glassfish-jaxb-api
Requires:         slf4j
Requires:         slf4j-jdk14
Requires:         jpackage-utils >= 0:1.7.5-10
Requires:         jss >= 4.6.0
Requires:         ldapjdk >= 4.21.0
Requires:         pki-base = %{EVRD}
%if 0%{?rhel}
Requires:         resteasy >= 3.0.26
%else
Requires:         resteasy-atom-provider >= 3.0.17-1
Requires:         resteasy-client >= 3.0.17-1
Requires:         resteasy-jaxb-provider >= 3.0.17-1
Requires:         resteasy-core >= 3.0.17-1
Requires:         resteasy-jackson2-provider >= 3.0.17-1
%endif
Requires:         xalan-j2
Requires:         xerces-j2
Requires:         xml-commons-apis
Requires:         xml-commons-resolver

%description -n pki-base-java
The PKI Base Java Package contains the common and client libraries and utilities
written in Java.

%files -n pki-base-java
%license base/common/LICENSE
%license base/common/LICENSE.LESSER
%{_datadir}/pki/examples/java/
%{_datadir}/pki/lib/*.jar
%dir %{_javadir}/pki
%{_javadir}/pki/pki-cmsutil.jar
%{_javadir}/pki/pki-nsutil.jar
%{_javadir}/pki/pki-certsrv.jar

#-------------------------------------------------------------------------------

%package -n pki-tools
Summary:          PKI Tools Package
Requires:         openldap-clients
Requires:         nss-tools >= 3.36.1
Requires:         pki-base-java = %{EVRD}
Requires:         p11-kit-trust
# PKICertImport depends on certutil and openssl
Requires:         nss-tools
Requires:         openssl

%description -n pki-tools
This package contains PKI executables that can be used to help make
Certificate System into a more complete and robust PKI solution.

%files -n pki-tools
%doc base/native-tools/LICENSE base/native-tools/doc/README
%{_bindir}/p7tool
%{_bindir}/pistool
%{_bindir}/pki
%{_bindir}/revoker
%{_bindir}/setpin
%{_bindir}/sslget
%{_bindir}/tkstool
%{_datadir}/pki/native-tools/
%{_bindir}/AtoB
%{_bindir}/AuditVerify
%{_bindir}/BtoA
%{_bindir}/CMCEnroll
%{_bindir}/CMCRequest
%{_bindir}/CMCResponse
%{_bindir}/CMCRevoke
%{_bindir}/CMCSharedToken
%{_bindir}/CRMFPopClient
%{_bindir}/DRMTool
%{_bindir}/ExtJoiner
%{_bindir}/GenExtKeyUsage
%{_bindir}/GenIssuerAltNameExt
%{_bindir}/GenSubjectAltNameExt
%{_bindir}/HttpClient
%{_bindir}/KRATool
%{_bindir}/OCSPClient
%{_bindir}/PKCS10Client
%{_bindir}/PKCS12Export
%{_bindir}/PKICertImport
%{_bindir}/PrettyPrintCert
%{_bindir}/PrettyPrintCrl
%{_bindir}/TokenInfo
%{_javadir}/pki/pki-tools.jar
%{_datadir}/pki/java-tools/
%{_datadir}/pki/lib/p11-kit-trust.so
%{_mandir}/man1/AtoB.1*
%{_mandir}/man1/AuditVerify.1*
%{_mandir}/man1/BtoA.1*
%{_mandir}/man1/CMCEnroll.1*
%{_mandir}/man1/CMCRequest.1*
%{_mandir}/man1/CMCSharedToken.1*
%{_mandir}/man1/CMCResponse.1*
%{_mandir}/man1/DRMTool.1*
%{_mandir}/man1/KRATool.1*
%{_mandir}/man1/PrettyPrintCert.1*
%{_mandir}/man1/PrettyPrintCrl.1*
%{_mandir}/man1/pki.1*
%{_mandir}/man1/pki-audit.1*
%{_mandir}/man1/pki-ca-cert.1*
%{_mandir}/man1/pki-ca-kraconnector.1*
%{_mandir}/man1/pki-ca-profile.1*
%{_mandir}/man1/pki-client.1*
%{_mandir}/man1/pki-group.1*
%{_mandir}/man1/pki-group-member.1*
%{_mandir}/man1/pki-kra-key.1*
%{_mandir}/man1/pki-pkcs12-cert.1*
%{_mandir}/man1/pki-pkcs12-key.1*
%{_mandir}/man1/pki-pkcs12.1*
%{_mandir}/man1/pki-securitydomain.1*
%{_mandir}/man1/pki-tps-profile.1*
%{_mandir}/man1/pki-user.1*
%{_mandir}/man1/pki-user-cert.1*
%{_mandir}/man1/pki-user-membership.1*
%{_mandir}/man1/PKCS10Client.1*
%{_mandir}/man1/PKICertImport.1*
# with base
%endif

#-------------------------------------------------------------------------------

%if %{with server}
%package -n pki-server
Summary:          PKI Server Package
Group:            Development/Java
BuildArch:        noarch
Requires:         hostname
Requires:         net-tools
Requires:         policycoreutils
Requires:         procps-ng
Requires:         openldap-clients
Requires:         openssl
Requires:         pki-symkey = %{EVRD}
Requires:         pki-tools = %{EVRD}
Requires:         keyutils
Requires:         policycoreutils-python-utils
Requires:         python3-ldap
Requires:         python3-lxml
Requires:         python3-libselinux
Requires:         python3-policycoreutils
%if %{with engine}
Requires:         pki-servlet-engine >= 1:9.0.7
%else
Requires:         tomcat >= 1:9.0.7
%endif
Requires:         velocity
Requires(post):   /bin/systemd-sysusers
Requires:         tomcatjss >= 7.4.1
# pki-healthcheck depends on the following library
Requires:         freeipa-healthcheck-core
Provides:	bundled(js-backbone) = 1.4.0
Provides:	bundled(js-bootstrap) = 3.4.1
Provides:	bundled(js-jquery) = 3.5.1
Provides:	bundled(js-jquery-i18n-properties) = 1.2.7
Provides:	bundled(js-patternfly) = 3.59.1
Provides:	bundled(js-uderscore) = 1.9.2

%description -n pki-server
The PKI Server Package contains libraries and utilities needed by the
following PKI subsystems:

    the Certificate Authority (CA),
    the Key Recovery Authority (KRA),
    the Online Certificate Status Protocol (OCSP) Manager,
    the Token Key Service (TKS), and
    the Token Processing Service (TPS).

%files -n pki-server
%license base/common/THIRD_PARTY_LICENSES
%license base/server/LICENSE
%doc base/server/README
%attr(755,-,-) %dir %{_sysconfdir}/sysconfig/pki
%attr(755,-,-) %dir %{_sysconfdir}/sysconfig/pki/tomcat
%{_sbindir}/pkispawn
%{_sbindir}/pkidestroy
%{_sbindir}/pki-server
%{_sbindir}/pki-server-upgrade
%dir %{python3_sitelib}/pki/server/
%{python3_sitelib}/pki/server/__init__.py
%{python3_sitelib}/pki/server/__pycache__
%{python3_sitelib}/pki/server/cli
%{python3_sitelib}/pki/server/deployment
%{python3_sitelib}/pki/server/healthcheck
%{python3_sitelib}/pki/server/instance.py
%{python3_sitelib}/pki/server/pkidestroy.py
%{python3_sitelib}/pki/server/pkiserver.py
%{python3_sitelib}/pki/server/pkispawn.py
%{python3_sitelib}/pki/server/subsystem.py
%{python3_sitelib}/pki/server/upgrade.py
%{python3_sitelib}/pkihealthcheck-*.egg-info/
%{_sbindir}/pki-healthcheck
%config(noreplace) %{_sysconfdir}/pki/healthcheck.conf
%{_datadir}/pki/etc/tomcat.conf
%dir %{_datadir}/pki/deployment
%{_datadir}/pki/deployment/config/
%{_datadir}/pki/scripts/operations
%{_bindir}/pkidaemon
%{_bindir}/pki-server-nuxwdog
%dir %{_sysconfdir}/systemd/system/pki-tomcatd.target.wants
%attr(644,-,-) %{_unitdir}/pki-tomcatd@.service
%attr(644,-,-) %{_unitdir}/pki-tomcatd.target
%dir %{_sysconfdir}/systemd/system/pki-tomcatd-nuxwdog.target.wants
%attr(644,-,-) %{_unitdir}/pki-tomcatd-nuxwdog@.service
%attr(644,-,-) %{_unitdir}/pki-tomcatd-nuxwdog.target
%{_sysusersdir}/pki-server.conf
%{_javadir}/pki/pki-cms.jar
%{_javadir}/pki/pki-cmsbundle.jar
%{_javadir}/pki/pki-tomcat.jar
%dir %{_sharedstatedir}/pki
%{_mandir}/man1/pkidaemon.1*
%{_mandir}/man5/pki_default.cfg.5*
%{_mandir}/man5/pki-server-logging.5*
#%%{_mandir}/man5/pki_healthcheck.conf.5*
%{_mandir}/man8/pki-server-upgrade.8*
%{_mandir}/man8/pkidestroy.8*
%{_mandir}/man8/pkispawn.8*
%{_mandir}/man8/pki-server.8*
%{_mandir}/man8/pki-server-instance.8*
%{_mandir}/man8/pki-server-subsystem.8*
%{_mandir}/man8/pki-server-nuxwdog.8*
%{_mandir}/man8/pki-server-migrate.8*
%{_mandir}/man8/pki-server-cert.8*
%{_mandir}/man8/pki-server-ca.8*
%{_mandir}/man8/pki-server-kra.8*
%{_mandir}/man8/pki-server-ocsp.8*
%{_mandir}/man8/pki-server-tks.8*
%{_mandir}/man8/pki-server-tps.8*
#%%{_mandir}/man8/pki-server-acme.8*
%{_mandir}/man8/pki-healthcheck.8*
%{_datadir}/pki/setup/
%{_datadir}/pki/server/
%{_datadir}/pki/acme/
%{_javadir}/pki/pki-acme.jar
# with server
%endif

%post -n pki-server
## NOTE:  At this time, NO attempt has been made to update ANY PKI subsystem
##        from EITHER 'sysVinit' OR previous 'systemd' processes to the new
##        PKI deployment process

%sysusers_create pki-server.conf

echo >> /var/log/pki/pki-server-upgrade-%{version}.log
echo "Upgrading PKI server configuration on `date`." 2>&1 >> /var/log/pki/pki-server-upgrade-%{version}.log
pki-server upgrade 2>&1 >> /var/log/pki/pki-server-upgrade-%{version}.log

# Reload systemd daemons on upgrade only
if [ "$1" == "2" ]
then
    systemctl daemon-reload
fi

#-------------------------------------------------------------------------------

%if %{with ca}
%package -n       pki-ca
Summary:          PKI CA Package
Group:            Development/Java
BuildArch:        noarch
Requires:         pki-server = %{EVRD}

%description -n pki-ca
The Certificate Authority (CA) is a required PKI subsystem which issues,
renews, revokes, and publishes certificates as well as compiling and
publishing Certificate Revocation Lists (CRLs).
The Certificate Authority can be configured as a self-signing Certificate
Authority, where it is the root CA, or it can act as a subordinate CA,
where it obtains its own signing certificate from a public CA.

%files -n pki-ca
%license base/ca/LICENSE
%{_javadir}/pki/pki-ca.jar
%dir %{_datadir}/pki/ca
%{_datadir}/pki/ca/conf/
%{_datadir}/pki/ca/emails/
%{_datadir}/pki/ca/profiles/
%{_datadir}/pki/ca/setup/
%{_datadir}/pki/ca/webapps/
# with ca
%endif

#-------------------------------------------------------------------------------

%if %{with kra}
%package -n pki-kra
Summary:          PKI KRA Package
Group:            Development/Java
BuildArch:        noarch
Requires:         pki-server = %{EVRD}

%description -n pki-kra
The Key Recovery Authority (KRA) is an optional PKI subsystem that can act
as a key archival facility.  When configured in conjunction with the
Certificate Authority (CA), the KRA stores private encryption keys as part of
the certificate enrollment process.  The key archival mechanism is triggered
when a user enrolls in the PKI and creates the certificate request.  Using the
Certificate Request Message Format (CRMF) request format, a request is
generated for the user's private encryption key.  This key is then stored in
the KRA which is configured to store keys in an encrypted format that can only
be decrypted by several agents requesting the key at one time, providing for
protection of the public encryption keys for the users in the PKI deployment.
Note that the KRA archives encryption keys; it does NOT archive signing keys,
since such archival would undermine non-repudiation properties of signing keys.

%files -n pki-kra
%license base/kra/LICENSE
%{_javadir}/pki/pki-kra.jar
%dir %{_datadir}/pki/kra
%{_datadir}/pki/kra/conf/
%{_datadir}/pki/kra/setup/
%{_datadir}/pki/kra/webapps/
# with kra
%endif

#-------------------------------------------------------------------------------

%if %{with ocsp}
%package -n pki-ocsp
Summary:          PKI OCSP Package
Group:            Development/Java
BuildArch:        noarch
Requires:         pki-server = %{EVRD}

%description -n pki-ocsp
The Online Certificate Status Protocol (OCSP) Manager is an optional PKI
subsystem that can act as a stand-alone OCSP service.  The OCSP Manager
performs the task of an online certificate validation authority by enabling
OCSP-compliant clients to do real-time verification of certificates.  Note
that an online certificate-validation authority is often referred to as an
OCSP Responder.

Although the Certificate Authority (CA) is already configured with an
internal OCSP service.  An external OCSP Responder is offered as a separate
subsystem in case the user wants the OCSP service provided outside of a
firewall while the CA resides inside of a firewall, or to take the load of
requests off of the CA.

The OCSP Manager can receive Certificate Revocation Lists (CRLs) from
multiple CA servers, and clients can query the OCSP Manager for the
revocation status of certificates issued by all of these CA servers.

When an instance of OCSP Manager is set up with an instance of CA, and
publishing is set up to this OCSP Manager, CRLs are published to it
whenever they are issued or updated.

%files -n pki-ocsp
%license base/ocsp/LICENSE
%{_javadir}/pki/pki-ocsp.jar
%dir %{_datadir}/pki/ocsp
%{_datadir}/pki/ocsp/conf/
%{_datadir}/pki/ocsp/setup/
%{_datadir}/pki/ocsp/webapps/

# with ocsp
%endif

#-------------------------------------------------------------------------------

%if %{with tks}
%package -n pki-tks
Summary:          PKI TKS Package
Group:            Development/Java
BuildArch:        noarch
Requires:         pki-server = %{EVRD}

%description -n pki-tks
The Token Key Service (TKS) is an optional PKI subsystem that manages the
master key(s) and the transport key(s) required to generate and distribute
keys for hardware tokens.  TKS provides the security between tokens and an
instance of Token Processing System (TPS), where the security relies upon the
relationship between the master key and the token keys.  A TPS communicates
with a TKS over SSL using client authentication.

TKS helps establish a secure channel (signed and encrypted) between the token
and the TPS, provides proof of presence of the security token during
enrollment, and supports key changeover when the master key changes on the
TKS.  Tokens with older keys will get new token keys.

Because of the sensitivity of the data that TKS manages, TKS should be set up
behind the firewall with restricted access.

%files -n pki-tks
%license base/tks/LICENSE
%{_javadir}/pki/pki-tks.jar
%dir %{_datadir}/pki/tks
%{_datadir}/pki/tks/conf/
%{_datadir}/pki/tks/setup/
%{_datadir}/pki/tks/webapps/
# with tks
%endif

#-------------------------------------------------------------------------------

%if %{with tps}
%package -n pki-tps
Summary:          PKI TPS Package
Requires:         pki-server = %{EVRD}
# additional runtime requirements needed to run native 'tpsclient'
# REMINDER:  Revisit these once 'tpsclient' is rewritten as a Java app
Requires:         nss-tools >= 3.36.1
Requires:         openldap-clients

%description -n pki-tps
The Token Processing System (TPS) is an optional PKI subsystem that acts
as a Registration Authority (RA) for authenticating and processing
enrollment requests, PIN reset requests, and formatting requests from
the Enterprise Security Client (ESC).

TPS is designed to communicate with tokens that conform to
Global Platform's Open Platform Specification.

TPS communicates over SSL with various PKI backend subsystems (including
the Certificate Authority (CA), the Key Recovery Authority (KRA), and the
Token Key Service (TKS)) to fulfill the user's requests.

TPS also interacts with the token database, an LDAP server that stores
information about individual tokens.

The utility "tpsclient" is a test tool that interacts with TPS.  This
tool is useful to test TPS server configs without risking an actual
smart card.

%files -n pki-tps
%license base/tps/LICENSE
%{_javadir}/pki/pki-tps.jar
%dir %{_datadir}/pki/tps
%{_datadir}/pki/tps/applets/
%{_datadir}/pki/tps/conf/
%{_datadir}/pki/tps/setup/
%{_datadir}/pki/tps/webapps/
%{_mandir}/man5/pki-tps-connector.5*
%{_mandir}/man5/pki-tps-profile.5*
%{_mandir}/man1/tpsclient.1*
# files for native 'tpsclient'
# REMINDER:  Remove this comment once 'tpsclient' is rewritten as a Java app
%{_bindir}/tpsclient
%{_libdir}/tps/libtps.so
%{_libdir}/tps/libtokendb.so
# with tps
%endif

#-------------------------------------------------------------------------------

%if %{with javadoc}
%package -n pki-javadoc
Summary:          PKI Javadoc Package
Group:            Development/Java
BuildArch:        noarch

%description -n pki-javadoc
This package contains PKI API documentation.

%files -n pki-javadoc
%{_javadocdir}/pki-%{version}/
# with javadoc
%endif

#-------------------------------------------------------------------------------

%if %{with console}
%package -n pki-console
Summary:          PKI Console Package
Group:            Development/Java
BuildArch:        noarch
BuildRequires:    idm-console-framework >= 1.2.0
Requires:         idm-console-framework >= 1.2.0
Requires:         pki-base-java = %{EVRD}
Requires:         pki-console-theme = %{EVRD}

%description -n pki-console
The PKI Console is a Java application used to administer PKI server.

%files -n pki-console
%license base/console/LICENSE
%{_bindir}/pkiconsole
%{_javadir}/pki/pki-console.jar

# with console
%endif

#-------------------------------------------------------------------------------

%if %{with theme}
%package -n %{brand}-pki-server-theme
Summary:          Dogtag PKI Server Theme Package
Group:            Development/Java
BuildArch:        noarch
Provides:         pki-server-theme = %{EVRD}

%description -n %{brand}-pki-server-theme
This PKI Server Theme Package contains
Dogtag textual and graphical user interface for PKI Server.

%files -n %{brand}-pki-server-theme
%license themes/%{brand}/common-ui/LICENSE
%dir %{_datadir}/pki
%{_datadir}/pki/CS_SERVER_VERSION
%{_datadir}/pki/common-ui/
%{_datadir}/pki/server/webapps/pki/ca
%{_datadir}/pki/server/webapps/pki/css
%{_datadir}/pki/server/webapps/pki/esc
%{_datadir}/pki/server/webapps/pki/fonts
%{_datadir}/pki/server/webapps/pki/images
%{_datadir}/pki/server/webapps/pki/kra
%{_datadir}/pki/server/webapps/pki/ocsp
%{_datadir}/pki/server/webapps/pki/pki.properties
%{_datadir}/pki/server/webapps/pki/tks

#-------------------------------------------------------------------------------

%package -n %{brand}-pki-console-theme
Summary:          Dogtag PKI Console Theme Package
Group:            Development/Java
BuildArch:        noarch
Provides:         pki-console-theme = %{EVRD}

%description -n %{brand}-pki-console-theme
This PKI Console Theme Package contains
Dogtag textual and graphical user interface for PKI Console.

%files -n %{brand}-pki-console-theme
%license themes/%{brand}/console-ui/LICENSE
%{_javadir}/pki/pki-console-theme.jar

# with theme
%endif

#-------------------------------------------------------------------------------

%if %{with tests}
%package -n pki-tests
Summary:	PKI Tests
Group:		Development/Java
BuildArch:	noarch

%description -n pki-tests
This package contains PKI test suite.

%files -n pki-tests
%{_datadir}/pki/tests/

# with tests
%endif

#-------------------------------------------------------------------------------

%prep
%autosetup -n pki-%{version} -p 1 -S git

%build
# get Tomcat <major>.<minor> version number
tomcat_version=`/usr/sbin/tomcat version | sed -n 's/Server number: *\([0-9]\+\.[0-9]\+\).*/\1/p'`

if [ $tomcat_version == "9.0" ]; then
    app_server=tomcat-8.5
else
    app_server=tomcat-$tomcat_version
fi

%cmake \
    -DVERSION=%{version}-%{release} \
    -DVAR_INSTALL_DIR:PATH=/var \
    -DP11_KIT_TRUST=/etc/alternatives/libnssckbi.so.%{_arch} \
    -DJAVA_HOME=%{java_home} \
    -DJAVA_AWT_LIBRARY=%{_jvmdir}/java \
    -DJAVA_JVM_LIBRARY=%{_jvmdir}/java \
    -DJAVA_LIB_INSTALL_DIR=%{_jnidir} \
    -DSYSTEMD_LIB_INSTALL_DIR=%{_unitdir} \
    -DAPP_SERVER=$app_server \
    -DJAXRS_API_JAR=%{jaxrs_api_jar} \
    -DRESTEASY_LIB=%{resteasy_lib} \
    -DNSS_DEFAULT_DB_TYPE=%{nss_default_db_type} \
    -DBUILD_PKI_CORE:BOOL=ON \
    -DPYTHON_EXECUTABLE=%{python_executable} \
    -DWITH_TEST:BOOL=%{?with_test:ON}%{!?with_test:OFF} \
%if ! %{with server} && ! %{with ca} && ! %{with kra} && ! %{with ocsp} && ! %{with tks} && ! %{with tps}
    -DWITH_SERVER:BOOL=OFF \
%endif
    -DWITH_JAVADOC:BOOL=%{?with_javadoc:ON}%{!?with_javadoc:OFF} \
    -DBUILD_PKI_CONSOLE:BOOL=%{?with_console:ON}%{!?with_console:OFF} \
    -DTHEME=%{?with_theme:%{brand}}

%install
cd build
# Do not use _smp_mflags to preserve build order
%{__make} \
    VERBOSE=%{?_verbose} \
    CMAKE_NO_VERBOSE=1 \
    DESTDIR=%{buildroot} \
    INSTALL="install -p" \
    --no-print-directory \
    all install

%if %{with_test}
ctest --output-on-failure
%endif

%if %{with meta}
%{__mkdir_p} %{buildroot}%{_datadir}/doc/pki

cat > %{buildroot}%{_datadir}/doc/pki/README << EOF
This package is a "meta-package" whose dependencies pull in all of the
packages comprising the Dogtag Public Key Infrastructure (PKI) Suite.
EOF

# with meta
%endif

# Customize client library links in /usr/share/pki/lib
ln -sf /usr/share/java/jboss-logging/jboss-logging.jar %{buildroot}%{_datadir}/pki/lib/jboss-logging.jar
ln -sf /usr/share/java/jboss-annotations-1.2-api/jboss-annotations-api_1.2_spec.jar %{buildroot}%{_datadir}/pki/lib/jboss-annotations-api_1.2_spec.jar

%if %{with server}

# Customize server common library links in /usr/share/pki/server/common/lib
ln -sf %{jaxrs_api_jar} %{buildroot}%{_datadir}/pki/server/common/lib/jboss-jaxrs-2.0-api.jar
ln -sf /usr/share/java/jboss-logging/jboss-logging.jar %{buildroot}%{_datadir}/pki/server/common/lib/jboss-logging.jar
ln -sf /usr/share/java/jboss-annotations-1.2-api/jboss-annotations-api_1.2_spec.jar %{buildroot}%{_datadir}/pki/server/common/lib/jboss-annotations-api_1.2_spec.jar

mkdir -p %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE20} %{buildroot}%{_sysusersdir}/pki-server.conf

# with server
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15744 |21mr|pki-servlet-engine-9.0.7-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global major_version 9
%global minor_version 0
%global micro_version 7
%global redhat_version 16
%global packdname apache-tomcat-%{version}.redhat-%{redhat_version}-src

# Specification versions
%global servletspec 4.0
%global jspspec 2.3
%global elspec 3.0

%global tcuid 91

# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
%global basedir %{_var}/lib/tomcat
%global appdir %{basedir}/webapps
%global homedir %{_datadir}/tomcat
%global bindir %{homedir}/bin
%global confdir %{_sysconfdir}/tomcat
%global libdir %{_javadir}/tomcat
%global logdir %{_var}/log/tomcat
%global cachedir %{_var}/cache/tomcat
%global tempdir %{cachedir}/temp
%global workdir %{cachedir}/work
%global _initrddir %{_sysconfdir}/init.d
%global _systemddir /lib/systemd/system

Name:          pki-servlet-engine
Epoch:         1
Version:       %{major_version}.%{minor_version}.%{micro_version}
Release:       16
Summary:       Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
Group:         Development/Java
License:       ASL 2.0
URL:           http://tomcat.apache.org/

#Source0:       http://www.apache.org/dist/tomcat/tomcat-%%{major_version}/v%%{version}/src/%%{packdname}.tar.gz
Source0:       tomcat-%{version}.redhat-%{redhat_version}-src.zip
Source1:       tomcat-%{major_version}.%{minor_version}.conf
Source3:       tomcat-%{major_version}.%{minor_version}.sysconfig
Source4:       tomcat-%{major_version}.%{minor_version}.wrapper
Source6:       tomcat-%{major_version}.%{minor_version}-digest.script
Source7:       tomcat-%{major_version}.%{minor_version}-tool-wrapper.script
Source8:       tomcat-%{major_version}.%{minor_version}.service
Source21:      tomcat-functions
Source30:      tomcat-preamble
Source31:      tomcat-server
Source32:      tomcat-named.service

Patch0:        tomcat-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
Patch1:        tomcat-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
Patch2:        tomcat-8.0.36-CompilerOptionsV9.patch
Patch3:        tomcat-%{major_version}.%{minor_version}-catalina-policy.patch

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: ant
BuildRequires: findutils
BuildRequires: java-devel >= 1:1.8.0
BuildRequires: jpackage-utils >= 0:1.7.0
BuildRequires: maven-local
BuildRequires: systemd-units

Requires:      ant
Requires:      java-headless >= 1:1.8.0
Requires:      java-devel >= 1:1.8.0
Requires:      jpackage-utils
Requires:      procps
Requires(pre):    shadow-utils
Requires(post):   chkconfig
Requires(postun): chkconfig
Requires(preun):  chkconfig
Requires(post):   systemd-units
Requires(preun):  systemd-units
Requires(postun): systemd-units
Requires(preun): coreutils
Requires: pki-servlet-%{servletspec}-api = %{epoch}:%{version}-%{release}

# Add bundled so that everyone knows this is Tomcat
Provides: bundled(tomcat) = 9.0.7.redhat-%{redhat_version}

Obsoletes:        pki-servlet-container

%description
Tomcat is the servlet engine that is used in the official Reference
Implementation for the Java Servlet and JavaServer Pages technologies.
The Java Servlet and JavaServer Pages specifications are developed by
Sun under the Java Community Process.

Tomcat is developed in an open and participatory environment and
released under the Apache Software License version 2.0. Tomcat is intended
to be a collaboration of the best-of-breed developers from around the world.

%package -n pki-servlet-%{servletspec}-api
Group: System/Libraries
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
Requires(post): chkconfig
Requires(postun): chkconfig

%description -n pki-servlet-%{servletspec}-api
Apache Tomcat Servlet API Implementation Classes.

%prep
%setup -q -n %{packdname}

# remove pre-built binaries and windows files
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
   -name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete

%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0

# Since we don't support ECJ in RHEL anymore, remove the class that requires it
%{__rm} -f java/org/apache/jasper/compiler/JDTCompiler.java

%build
export OPT_JAR_LIST="xalan-j2-serializer"

# Create a dummy file for later removal
touch HACK

# who needs a build.properties file anyway
%{ant} -Dbase.path="." \
  -Dbuild.compiler="modern" \
  -Dcommons-daemon.jar="HACK" \
  -Dcommons-daemon.native.src.tgz="HACK" \
  -Djdt.jar="HACK" \
  -Dtomcat-native.tar.gz="HACK" \
  -Dtomcat-native.home="." \
  -Dcommons-daemon.native.win.mgr.exe="HACK" \
  -Dnsis.exe="HACK" \
  deploy dist-prepare dist-source

# remove some jars that we don't need
%{__rm} output/build/bin/commons-daemon.jar

%install
# build initial path structure
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_bindir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sbindir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_initrddir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_systemddir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{appdir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{bindir}
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/Catalina/localhost
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{confdir}/conf.d
/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > ${RPM_BUILD_ROOT}%{confdir}/conf.d/README
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{libdir}
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{logdir}
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{_localstatedir}/lib/tomcats
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{homedir}
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{tempdir}
%{__install} -d -m 0775 ${RPM_BUILD_ROOT}%{workdir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_unitdir}
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_libexecdir}/tomcat

# move things into place
# First copy supporting libs to tomcat lib
pushd output/build
    %{__cp} -a bin/*.{jar,xml} ${RPM_BUILD_ROOT}%{bindir}
    %{__cp} -a conf/*.{policy,properties,xml,xsd} ${RPM_BUILD_ROOT}%{confdir}
    %{__cp} -a lib/*.jar ${RPM_BUILD_ROOT}%{libdir}
popd

%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
    > ${RPM_BUILD_ROOT}%{confdir}/tomcat.conf
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
    > ${RPM_BUILD_ROOT}%{_sysconfdir}/sysconfig/tomcat
%{__install} -m 0644 %{SOURCE4} \
    ${RPM_BUILD_ROOT}%{_sbindir}/tomcat
%{__install} -m 0644 %{SOURCE8} \
    ${RPM_BUILD_ROOT}%{_unitdir}/tomcat.service
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
    > ${RPM_BUILD_ROOT}%{_bindir}/tomcat-digest
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
    > ${RPM_BUILD_ROOT}%{_bindir}/tomcat-tool-wrapper

%{__install} -m 0644 %{SOURCE21} \
    ${RPM_BUILD_ROOT}%{_libexecdir}/tomcat/functions
%{__install} -m 0755 %{SOURCE30} \
    ${RPM_BUILD_ROOT}%{_libexecdir}/tomcat/preamble
%{__install} -m 0755 %{SOURCE31} \
    ${RPM_BUILD_ROOT}%{_libexecdir}/tomcat/server
%{__install} -m 0644 %{SOURCE32} \
    ${RPM_BUILD_ROOT}%{_unitdir}/tomcat@.service

# Substitute libnames in catalina-tasks.xml
sed -i \
   "s,el-api.jar,tomcat-el-%{elspec}-api.jar,;
    s,servlet-api.jar,tomcat-servlet-%{servletspec}-api.jar,;
    s,jsp-api.jar,tomcat-jsp-%{jspspec}-api.jar,;" \
    ${RPM_BUILD_ROOT}%{bindir}/catalina-tasks.xml

# create jsp and servlet API symlinks
pushd ${RPM_BUILD_ROOT}%{_javadir}
   %{__mv} tomcat/jsp-api.jar tomcat-jsp-%{jspspec}-api.jar
   %{__ln_s} tomcat-jsp-%{jspspec}-api.jar tomcat-jsp-api.jar
   %{__mv} tomcat/servlet-api.jar tomcat-servlet-%{servletspec}-api.jar
   %{__ln_s} tomcat-servlet-%{servletspec}-api.jar tomcat-servlet-api.jar
   %{__mv} tomcat/el-api.jar tomcat-el-%{elspec}-api.jar
   %{__ln_s} tomcat-el-%{elspec}-api.jar tomcat-el-api.jar
popd

pushd ${RPM_BUILD_ROOT}%{libdir}
    # symlink JSP and servlet API jars
    %{__ln_s} ../../java/tomcat-jsp-%{jspspec}-api.jar .
    %{__ln_s} ../../java/tomcat-servlet-%{servletspec}-api.jar .
    %{__ln_s} ../../java/tomcat-el-%{elspec}-api.jar .

    # Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
    %{__cp} -a ${RPM_BUILD_ROOT}%{bindir}/tomcat-juli.jar ./
popd

# symlink to the FHS locations where we've installed things
pushd ${RPM_BUILD_ROOT}%{homedir}
    %{__ln_s} %{appdir} webapps
    %{__ln_s} %{confdir} conf
    %{__ln_s} %{libdir} lib
    %{__ln_s} %{logdir} logs
    %{__ln_s} %{tempdir} temp
    %{__ln_s} %{workdir} work
popd

# Install the maven metadata
%{__install} -d -m 0755 ${RPM_BUILD_ROOT}%{_mavenpomdir}
pushd output/dist/src/res/maven
for pom in *.pom; do
    # fix-up version in all pom files
    sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
done

# we won't install dbcp, juli-adapters and juli-extras pom files
for libname in annotations-api catalina jasper-el jasper catalina-ha; do
    %{__cp} -a tomcat-$libname.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-$libname.pom
    %add_maven_depmap JPP.tomcat-$libname.pom tomcat/$libname.jar
done

# tomcat-util-scan
%{__cp} -a tomcat-util-scan.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-util-scan.pom
%add_maven_depmap JPP.tomcat-util-scan.pom tomcat/tomcat-util-scan.jar

# tomcat-jni
%{__cp} -a tomcat-jni.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-jni.pom
%add_maven_depmap JPP.tomcat-jni.pom tomcat/tomcat-jni.jar

# servlet-api jsp-api and el-api are not in tomcat subdir, since they are widely re-used elsewhere
%{__cp} -a tomcat-jsp-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
%add_maven_depmap JPP-tomcat-jsp-api.pom tomcat-jsp-api.jar -a "org.eclipse.jetty.orbit:javax.servlet.jsp"

%{__cp} -a tomcat-el-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-el-api.pom
%add_maven_depmap JPP-tomcat-el-api.pom tomcat-el-api.jar -a "org.eclipse.jetty.orbit:javax.el"

%{__cp} -a tomcat-servlet-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
# Generate a depmap fragment javax.servlet:servlet-api pointing to
# tomcat-servlet-3.0-api for backwards compatibility
# also provide jetty depmap (originally in jetty package, but it's cleaner to have it here
%add_maven_depmap JPP-tomcat-servlet-api.pom tomcat-servlet-%{servletspec}-api.jar -f "tomcat-servlet-api"

# replace temporary copy with link
%{__ln_s} -f $(abs2rel %{bindir}/tomcat-juli.jar %{libdir}) ${RPM_BUILD_ROOT}%{libdir}/

# two special pom where jar files have different names
%{__cp} -a tomcat-tribes.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-catalina-tribes.pom
%add_maven_depmap JPP.tomcat-catalina-tribes.pom tomcat/catalina-tribes.jar

%{__cp} -a tomcat-coyote.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-coyote.pom
%add_maven_depmap JPP.tomcat-tomcat-coyote.pom tomcat/tomcat-coyote.jar

%{__cp} -a tomcat-juli.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-juli.pom
%add_maven_depmap JPP.tomcat-tomcat-juli.pom tomcat/tomcat-juli.jar

%{__cp} -a tomcat-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-api.pom
%add_maven_depmap JPP.tomcat-tomcat-api.pom tomcat/tomcat-api.jar

%{__cp} -a tomcat-util.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-util.pom
%add_maven_depmap JPP.tomcat-tomcat-util.pom tomcat/tomcat-util.jar

%{__cp} -a tomcat-jdbc.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-jdbc.pom
%add_maven_depmap JPP.tomcat-tomcat-jdbc.pom tomcat/tomcat-jdbc.jar

# tomcat-websocket-api
%{__cp} -a tomcat-websocket-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-websocket-api.pom
%add_maven_depmap JPP.tomcat-websocket-api.pom tomcat/websocket-api.jar

# tomcat-tomcat-websocket
%{__cp} -a tomcat-websocket.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-tomcat-websocket.pom
%add_maven_depmap JPP.tomcat-tomcat-websocket.pom tomcat/tomcat-websocket.jar

# tomcat-jaspic-api
%{__cp} -a tomcat-jaspic-api.pom ${RPM_BUILD_ROOT}%{_mavenpomdir}/JPP.tomcat-jaspic-api.pom
%add_maven_depmap JPP.tomcat-jaspic-api.pom tomcat/jaspic-api.jar

# Manually change the metadata filenames
%{__mv} ${RPM_BUILD_ROOT}%{_datadir}/maven-metadata/%{name}.xml ${RPM_BUILD_ROOT}%{_datadir}/maven-metadata/tomcat.xml
%{__mv} ${RPM_BUILD_ROOT}%{_datadir}/maven-metadata/%{name}-tomcat-servlet-api.xml ${RPM_BUILD_ROOT}%{_datadir}/maven-metadata/tomcat-servlet-api.xml

%pre
# add the tomcat user and group
%{_sbindir}/groupadd -g %{tcuid} -r tomcat 2>/dev/null || :
%{_sbindir}/useradd -c "Apache Tomcat" -u %{tcuid} -g tomcat \
    -s /sbin/nologin -r -d %{homedir} tomcat 2>/dev/null || :

%post
# install but don't activate
%systemd_post tomcat.service

# Collapse all of the alternatives installations into one
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
    %{_javadir}/tomcat-jsp-%{jspspec}-api.jar 20200
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
    %{_javadir}/tomcat-servlet-%{servletspec}-api.jar 30000
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
   %{_javadir}/tomcat-el-%{elspec}-api.jar 20300

%preun
# clean tempdir and workdir on removal or upgrade
%{__rm} -rf %{workdir}/* %{tempdir}/*
%systemd_preun tomcat.service

%postun
%systemd_postun_with_restart tomcat.service

# Collapse all of the alternatives removals into one
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jsp \
        %{_javadir}/tomcat-jsp-%{jspspec}-api.jar
    %{_sbindir}/update-alternatives --remove servlet \
        %{_javadir}/tomcat-servlet-%{servletspec}-api.jar
    %{_sbindir}/update-alternatives --remove elspec \
        %{_javadir}/tomcat-el-%{elspec}-api.jar
fi

%files 
%defattr(0664,root,tomcat,0755)
%doc {LICENSE,NOTICE,RELEASE*}
%attr(0755,root,root) %{_bindir}/tomcat-digest
%attr(0755,root,root) %{_bindir}/tomcat-tool-wrapper
%attr(0755,root,root) %{_sbindir}/tomcat
%attr(0644,root,root) %{_unitdir}/tomcat.service
%attr(0644,root,root) %{_unitdir}/tomcat@.service
%attr(0755,root,root) %dir %{_libexecdir}/tomcat
%attr(0755,root,root) %dir %{_localstatedir}/lib/tomcats
%attr(0644,root,root) %{_libexecdir}/tomcat/functions
%attr(0755,root,root) %{_libexecdir}/tomcat/preamble
%attr(0755,root,root) %{_libexecdir}/tomcat/server
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/tomcat
%attr(0755,root,tomcat) %dir %{basedir}
%attr(0755,root,tomcat) %dir %{confdir}

%defattr(0664,tomcat,root,0770)
%attr(0770,tomcat,root) %dir %{logdir}

%defattr(0664,root,tomcat,0770)
%attr(0770,root,tomcat) %dir %{cachedir}
%attr(0770,root,tomcat) %dir %{tempdir}
%attr(0770,root,tomcat) %dir %{workdir}

%defattr(0644,root,tomcat,0775)
%attr(0775,root,tomcat) %dir %{appdir}
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
%{confdir}/conf.d/README
%config(noreplace) %{confdir}/tomcat.conf
%config(noreplace) %{confdir}/*.policy
%config(noreplace) %{confdir}/*.properties
%config(noreplace) %{confdir}/context.xml
%config(noreplace) %{confdir}/server.xml
%attr(0640,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml
%attr(0664,root,tomcat) %{confdir}/tomcat-users.xsd
%attr(0664,root,tomcat) %config(noreplace) %{confdir}/jaspic-providers.xml
%attr(0664,root,tomcat) %{confdir}/jaspic-providers.xsd
%config(noreplace) %{confdir}/web.xml
%dir %{homedir}
%{bindir}/bootstrap.jar
%{bindir}/catalina-tasks.xml
%{homedir}/lib
%{homedir}/temp
%{homedir}/webapps
%{homedir}/work
%{homedir}/logs
%{homedir}/conf

%defattr(-,root,root,-)
%dir %{libdir}
%{libdir}/*.jar
%{_javadir}/*.jar
%{bindir}/tomcat-juli.jar
%{_mavenpomdir}/JPP.tomcat-annotations-api.pom
%{_mavenpomdir}/JPP.tomcat-catalina-ha.pom
%{_mavenpomdir}/JPP.tomcat-catalina-tribes.pom
%{_mavenpomdir}/JPP.tomcat-catalina.pom
%{_mavenpomdir}/JPP.tomcat-jasper-el.pom
%{_mavenpomdir}/JPP.tomcat-jasper.pom
%{_mavenpomdir}/JPP.tomcat-tomcat-api.pom
%{_mavenpomdir}/JPP.tomcat-tomcat-juli.pom
%{_mavenpomdir}/JPP.tomcat-tomcat-coyote.pom
%{_mavenpomdir}/JPP.tomcat-tomcat-util.pom
%{_mavenpomdir}/JPP.tomcat-tomcat-jdbc.pom
%{_mavenpomdir}/JPP.tomcat-websocket-api.pom
%{_mavenpomdir}/JPP.tomcat-tomcat-websocket.pom
%{_mavenpomdir}/JPP.tomcat-jaspic-api.pom
%{_mavenpomdir}/JPP.tomcat-jni.pom
%{_mavenpomdir}/JPP.tomcat-util-scan.pom
%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
%{_mavenpomdir}/JPP-tomcat-el-api.pom
%{_datadir}/maven-metadata/tomcat.xml
%exclude %{_javadir}/tomcat-servlet-%{servletspec}*.jar

%files -n pki-servlet-%{servletspec}-api
%defattr(-,root,root,-)
%doc LICENSE
%{_javadir}/tomcat-servlet-%{servletspec}*.jar
%{_datadir}/maven-metadata/tomcat-servlet-api.xml
%{_mavenpomdir}/JPP-tomcat-servlet-api.pom


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15745 |21mr|plasma5-akonadi-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname akonadi

# temp solution untill boost is updated
%global __requires_exclude ^cmake\\(Boost\\).*$

Summary:	An extensible cross-desktop storage service for Plasma 5 PIM
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	xsltproc
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	mariadb-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5designerplugin-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:  libxml2-utils
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(sqlite3)
Requires:	mariadb
# Needed for mysqlcheck which is used in akonadi
Requires:	mariadb-client
Requires:	mariadb-server
Requires:	qt5-database-plugin-mysql
Conflicts:	akonadi

%description
An extensible cross-desktop storage service for Plasma 5 PIM data and meta data
providing concurrent read, write, and query access.

%files -f libakonadi5.lang
%{_kde5_bindir}/akonadi_agent_launcher
%{_kde5_bindir}/akonadi_agent_server
%{_kde5_bindir}/akonadi_control
%{_kde5_bindir}/akonadi_rds
%{_kde5_bindir}/akonadictl
%{_kde5_bindir}/akonadiserver
%{_kde5_bindir}/asapcat
%{_kde5_iconsdir}/hicolor/*/apps/akonadi.*
%{_kde5_sysconfdir}/apparmor.d/mariadbd_akonadi
%{_kde5_sysconfdir}/apparmor.d/mysqld_akonadi
%{_kde5_sysconfdir}/apparmor.d/postgresql_akonadi
%{_kde5_sysconfdir}/apparmor.d/usr.bin.akonadiserver
%{_kde5_sysconfdir}/xdg/akonadi/*.conf
%{_datadir}/dbus-1/services/org.freedesktop.Akonadi.Control.service
%{_datadir}/mime/packages/akonadi-mime.xml
%{_kde5_datadir}/qlogging-categories5/akonadi.categories
%{_kde5_datadir}/qlogging-categories5/akonadi.renamecategories
%{_kde5_datadir}/kdevappwizard/templates/akonadiresource.tar.bz2
%{_kde5_datadir}/kdevappwizard/templates/akonadiserializer.tar.bz2

#----------------------------------------------------------------------------

%package -n plasma5-akonadi-client
Summary:	Plasma 5 Akonadi Client
Group:		Graphical desktop/KDE
Conflicts:	kdepimlibs4-core

%description -n plasma5-akonadi-client
Plasma 5 Akonadi Client.

%files -n plasma5-akonadi-client -f akonadi_knut_resource.lang
%{_kde5_bindir}/akonadi2xml
%{_kde5_bindir}/akonadiselftest
%{_kde5_bindir}/akonaditest
%{_kde5_bindir}/akonadi_knut_resource
%{_kde5_datadir}/akonadi/agents/knutresource.desktop
%{_kde5_datadir}/config.kcfg/resourcebase.kcfg
%{_kde5_datadir}/kf5/akonadi_knut_resource/knut-template.xml
%{_qt5_plugindir}/pim5/akonadi/akonadi_test_searchplugin.so

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-akonadi5widgets
Summary:	Qt5 Designer plugin for Akonadi Widgets
Group:	Development/KDE and Qt

%description -n qt5-designer-plugin-akonadi5widgets
Qt5 Designer plugin for Akonadi Widgets.

%files -n qt5-designer-plugin-akonadi5widgets
%{_qt5_plugindir}/designer/akonadi5widgets.so

#----------------------------------------------------------------------------

%define kf5akonadiprivate_major 5
%define libkf5akonadiprivate %mklibname kf5akonadiprivate %{kf5akonadiprivate_major}

%package -n %{libkf5akonadiprivate}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadiprivate}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadiprivate}
%{_kde5_libdir}/libKPim5AkonadiPrivate.so.%{kf5akonadiprivate_major}*

#----------------------------------------------------------------------------

%define devkf5akonadiserver %mklibname kf5akonadiserver -d

%package -n %{devkf5akonadiserver}
Summary:	Development files for Plasma 5 Akonadi Server
Group:		Development/KDE and Qt
Requires:	%{libkf5akonadiprivate} = %{EVRD}
Provides:	kf5akonadiserver-devel = %{version}
Conflicts:	akonadi-devel

%description -n %{devkf5akonadiserver}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5akonadiserver}
%dir %{_kde5_includedir}/KPim5/Akonadi
%{_kde5_includedir}/KPim5/Akonadi/*
%{_kde5_libdir}/libKPim5AkonadiPrivate.so
%{_datadir}/dbus-1/interfaces/org.freedesktop.Akonadi.*.xml

#----------------------------------------------------------------------------

%define kf5akonadiagentbase_major 5
%define libkf5akonadiagentbase %mklibname kf5akonadiagentbase %{kf5akonadiagentbase_major}

%package -n %{libkf5akonadiagentbase}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadiagentbase}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadiagentbase}
%{_kde5_libdir}/libKPim5AkonadiAgentBase.so.%{kf5akonadiagentbase_major}*

#----------------------------------------------------------------------------

%define kf5akonadicore_major 5
%define libkf5akonadicore %mklibname kf5akonadicore %{kf5akonadicore_major}

%package -n %{libkf5akonadicore}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadicore}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadicore}
%{_kde5_libdir}/libKPim5AkonadiCore.so.%{kf5akonadicore_major}*

#----------------------------------------------------------------------------

%define kf5akonadiwidgets_major 5
%define libkf5akonadiwidgets %mklibname kf5akonadiwidgets %{kf5akonadiwidgets_major}

%package -n %{libkf5akonadiwidgets}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadiwidgets}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadiwidgets}
%{_kde5_libdir}/libKPim5AkonadiWidgets.so.%{kf5akonadiwidgets_major}*

#----------------------------------------------------------------------------

%define kf5akonadixml_major 5
%define libkf5akonadixml %mklibname kf5akonadixml %{kf5akonadixml_major}

%package -n %{libkf5akonadixml}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadixml}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadixml}
%{_kde5_libdir}/libKPim5AkonadiXml.so.%{kf5akonadixml_major}*

#----------------------------------------------------------------------------

%define devkf5akonadi %mklibname kf5akonadi -d

%package -n %{devkf5akonadi}
Summary:	Development files for Plasma 5 Akonadi
Group:		Development/KDE and Qt
Requires:	%{libkf5akonadiagentbase} = %{EVRD}
Requires:	%{libkf5akonadicore} = %{EVRD}
Requires:	%{libkf5akonadiwidgets} = %{EVRD}
Requires:	%{libkf5akonadixml} = %{EVRD}
Requires:	qt5-designer-plugin-akonadi5widgets
Requires:	boost-devel
Provides:	kf5akonadi-devel = %{version}
Conflicts:	kapptemplate < 1:17.12.3
Conflicts:	plasma5-akonadi-client < 16.04.2-2

%description -n %{devkf5akonadi}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5akonadi}
%{_kde5_datadir}/kf5/akonadi/akonadi-xml.xsd
%{_kde5_datadir}/kf5/akonadi/kcfg2dbus.xsl
%dir %{_kde5_includedir}/KPim5/AkonadiAgentBase
%{_kde5_includedir}/KPim5/AkonadiAgentBase/*
%dir %{_kde5_includedir}/KPim5/AkonadiCore
%{_kde5_includedir}/KPim5/AkonadiCore/*
%dir %{_kde5_includedir}/KPim5/AkonadiWidgets
%{_kde5_includedir}/KPim5/AkonadiWidgets/*
%dir %{_kde5_includedir}/KPim5/AkonadiXml
%{_kde5_includedir}/KPim5/AkonadiXml/*
%{_kde5_libdir}/cmake/KF5Akonadi
%{_kde5_libdir}/cmake/KPim5Akonadi
%{_kde5_libdir}/libKPim5AkonadiAgentBase.so
%{_kde5_libdir}/libKPim5AkonadiCore.so
%{_kde5_libdir}/libKPim5AkonadiWidgets.so
%{_kde5_libdir}/libKPim5AkonadiXml.so
%{_kde5_mkspecsdir}/qt_AkonadiAgentBase.pri
%{_kde5_mkspecsdir}/qt_AkonadiCore.pri
%{_kde5_mkspecsdir}/qt_AkonadiWidgets.pri
%{_kde5_mkspecsdir}/qt_AkonadiXml.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libakonadi5 --with-kde

%find_lang akonadi_knut_resource --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15746 |21mr|plasma5-akonadi-calendar-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname akonadi-calendar

Summary:	Plasma 5 Akonadi calendar
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5messagecore-devel
BuildRequires:	kf5messagecomposer-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	sasl-devel
BuildRequires:	libxml2-utils
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl
BuildRequires:	grantlee-qt5-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)

%description
Plasma 5 Akonadi calendar.

%files -f libakonadi-calendar5-serializer.lang
%{_kde5_bindir}/kalendarac
%{_kde5_datadir}/qlogging-categories5/akonadi-calendar.categories
%{_kde5_datadir}/qlogging-categories5/akonadi-calendar.renamecategories
%{_kde5_datadir}/akonadi/plugins/serializer/akonadi_serializer_kcalcore.desktop
%{_qt5_plugindir}/akonadi_serializer_kcalcore.so
%{_qt5_plugindir}/kf5/org.kde.kcalendarcore.calendars/libakonadicalendarplugin.so
%{_kde5_datadir}/dbus-1/services/org.kde.kalendarac.service
%{_kde5_datadir}/qlogging-categories5/org_kde_kalendarac.categories
%{_kde5_notificationsdir}/kalendarac.notifyrc
%{_sysconfdir}/xdg/autostart/org.kde.kalendarac.desktop

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 Akonadi calendar library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 Akonadi calendar library translations.

%files i18n -f libakonadi-calendar5.lang -f kalendarac.lang

#----------------------------------------------------------------------------

%define kf5akonadicalendar_major 5
%define libkf5akonadicalendar %mklibname kf5akonadicalendar %{kf5akonadicalendar_major}

%package -n %{libkf5akonadicalendar}
Summary:	Plasma 5 Akonadi calendar shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5akonadicalendar}
Plasma 5 Akonadi calendar shared library.

%files -n %{libkf5akonadicalendar}
%{_kde5_libdir}/libKPim5AkonadiCalendar.so.%{kf5akonadicalendar_major}*

#----------------------------------------------------------------------------

%define devkf5akonadicalendar %mklibname kf5akonadicalendar -d

%package -n %{devkf5akonadicalendar}
Summary:	Development files for Plasma 5 Akonadi calendar
Group:		Development/KDE and Qt
Requires:	%{libkf5akonadicalendar} = %{EVRD}
Provides:	kf5akonadicalendar-devel = %{version}

%description -n %{devkf5akonadicalendar}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5akonadicalendar}
%dir %{_kde5_includedir}/KPim5/AkonadiCalendar
%{_kde5_includedir}/KPim5/AkonadiCalendar/*
%{_kde5_libdir}/cmake/KF5AkonadiCalendar
%{_kde5_libdir}/cmake/KPim5AkonadiCalendar
%{_kde5_libdir}/libKPim5AkonadiCalendar.so
%{_kde5_mkspecsdir}/qt_AkonadiCalendar.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libakonadi-calendar5
%find_lang libakonadi-calendar5-serializer
%find_lang kalendarac

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15747 |21mr|plasma5-akonadi-contacts-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname akonadi-contacts

Summary:	Plasma 5 Akonadi Contacts
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5grantleetheme-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5prison-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	plasma5-akonadi-contact = %{EVRD}
Conflicts:	plasma5-akonadi-contact < 16.08.2
Obsoletes:	plasma5-akonadi-contact < 16.08.2

%description
Plasma 5 Akonadi Contacts.

%files -f %{name}.lang
%{_kde5_datadir}/qlogging-categories5/akonadi-contacts.categories
%{_kde5_datadir}/qlogging-categories5/akonadi-contacts.renamecategories
%{_kde5_datadir}/akonadi/plugins/serializer/akonadi_serializer_addressee.desktop
%{_kde5_datadir}/akonadi/plugins/serializer/akonadi_serializer_contactgroup.desktop
%{_kde5_datadir}/kf5/akonadi/contact/pics/world.jpg
%{_kde5_datadir}/kf5/akonadi/contact/data/zone.tab
%{_qt5_plugindir}/akonadi_serializer_addressee.so
%{_qt5_plugindir}/akonadi_serializer_contactgroup.so

#----------------------------------------------------------------------------

%define kf5akonadicontact_major 5
%define libkf5akonadicontact %mklibname kf5akonadicontact %{kf5akonadicontact_major}

%package -n %{libkf5akonadicontact}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadicontact}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadicontact}
%{_kde5_libdir}/libKPim5AkonadiContact.so.%{kf5akonadicontact_major}*

#----------------------------------------------------------------------------

%define devkf5akonadicontact %mklibname kf5akonadicontact -d

%package -n %{devkf5akonadicontact}
Summary:	Development files for Plasma 5 Akonadi
Group:		Development/KDE and Qt
Requires:	%{libkf5akonadicontact} = %{EVRD}
Provides:	kf5akonadicontact-devel = %{version}

%description -n %{devkf5akonadicontact}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5akonadicontact}
%dir %{_kde5_includedir}/KPim5/AkonadiContact
%{_kde5_includedir}/KPim5/AkonadiContact/*
%{_kde5_libdir}/cmake/KPim5AkonadiContact
%{_kde5_libdir}/libKPim5AkonadiContact.so
%{_kde5_mkspecsdir}/qt_AkonadiContact.pri

#----------------------------------------------------------------------------

%define kf5contacteditor_major 5
%define libkf5contacteditor %mklibname kf5contacteditor %{kf5contacteditor_major}

%package -n %{libkf5contacteditor}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5contacteditor}
Plasma 5 Akonadi shared library.

%files -n %{libkf5contacteditor}
%{_kde5_libdir}/libKPim5ContactEditor.so.%{kf5contacteditor_major}*

#----------------------------------------------------------------------------

%define devkf5contacteditor %mklibname kf5contacteditor -d

%package -n %{devkf5contacteditor}
Summary:	Development files for Plasma 5 Akonadi
Group:		Development/KDE and Qt
Requires:	%{libkf5contacteditor} = %{EVRD}
Provides:	kf5contacteditor-devel = %{version}

%description -n %{devkf5contacteditor}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5contacteditor}
%dir %{_kde5_includedir}/KPim5/AkonadiContactEditor/
%{_kde5_includedir}/KPim5/AkonadiContactEditor/*
%{_kde5_libdir}/cmake/KF5AkonadiContactEditor
%{_kde5_libdir}/cmake/KPim5ContactEditor
%{_kde5_libdir}/libKPim5ContactEditor.so
%{_kde5_mkspecsdir}/qt_ContactEditor.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang akonadicontact5 akonadicontact5-serializer kcm_akonadicontact_actions %{name}.lang --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15748 |21mr|plasma5-akonadi-mime-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname akonadi-mime

Summary:	Plasma 5 Akonadi MIME
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(shared-mime-info)
Conflicts:	kdepimlibs4-core

%description
Plasma 5 Akonadi MIME.

%files
%{_kde5_bindir}/akonadi_benchmarker
%{_kde5_datadir}/qlogging-categories5/akonadi-mime.categories
%{_kde5_datadir}/akonadi/plugins/serializer/akonadi_serializer_mail.desktop
%{_kde5_datadir}/config.kcfg/specialmailcollections.kcfg
%{_datadir}/mime/packages/x-vnd.kde.contactgroup.xml
%{_qt5_plugindir}/akonadi_serializer_mail.so

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 Akonadi MIME library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 Akonadi MIME library translations

%files i18n -f libakonadi-kmime5.lang

#----------------------------------------------------------------------------

%define kf5akonadimime_major 5
%define libkf5akonadimime %mklibname kf5akonadimime %{kf5akonadimime_major}

%package -n %{libkf5akonadimime}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libkf5akonadimime}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadimime}
%{_kde5_libdir}/libKPim5AkonadiMime.so.%{kf5akonadimime_major}*

#----------------------------------------------------------------------------

%define devkf5akonadimime %mklibname kf5akonadimime -d

%package -n %{devkf5akonadimime}
Summary:	Development files for Plasma 5 Akonadi
Group:		Development/KDE and Qt
Requires:	%{libkf5akonadimime} = %{EVRD}
Provides:	kf5akonadimime-devel = %{version}

%description -n %{devkf5akonadimime}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5akonadimime}
%dir %{_kde5_includedir}/KPim5/AkonadiMime
%{_kde5_includedir}/KPim5/AkonadiMime/*
%{_kde5_libdir}/cmake/KF5AkonadiMime
%{_kde5_libdir}/cmake/KPim5AkonadiMime
%{_kde5_libdir}/libKPim5AkonadiMime.so
%{_kde5_mkspecsdir}/qt_AkonadiMime.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libakonadi-kmime5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15749 |21mr|plasma5-akonadi-notes-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname akonadi-notes

Summary:	Plasma 5 Akonadi notes
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5mime-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Plasma 5 Akonadi notes.

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 Akonadi notes library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 Akonadi notes library translations

%files i18n -f akonadinotes5.lang

#----------------------------------------------------------------------------

%define kf5akonadinotes_major 5
%define libkf5akonadinotes %mklibname kf5akonadinotes %{kf5akonadinotes_major}

%package -n %{libkf5akonadinotes}
Summary:	Plasma 5 Akonadi notes shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libkf5akonadinotes}
Plasma 5 Akonadi notes shared library.

%files -n %{libkf5akonadinotes}
%{_kde5_libdir}/libKPim5AkonadiNotes.so.%{kf5akonadinotes_major}*

#----------------------------------------------------------------------------

%define devkf5akonadinotes %mklibname kf5akonadinotes -d

%package -n %{devkf5akonadinotes}
Summary:	Development files for Plasma 5 Akonadi notes library
Group:		Development/KDE and Qt
Requires:	%{libkf5akonadinotes} = %{EVRD}
Provides:	kf5akonadinotes-devel = %{version}

%description -n %{devkf5akonadinotes}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5akonadinotes}
%dir %{_kde5_includedir}/KPim5/AkonadiNotes
%{_kde5_includedir}/KPim5/AkonadiNotes/*
%{_kde5_libdir}/cmake/KF5AkonadiNotes
%{_kde5_libdir}/cmake/KPim5AkonadiNotes
%{_kde5_libdir}/libKPim5AkonadiNotes.so
%{_kde5_mkspecsdir}/qt_AkonadiNotes.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang akonadinotes5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15750 |21mr|plasma5-akonadi-search-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname akonadi-search

Summary:	Plasma 5 Akonadi search
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5runner-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(xapian-core)
Requires:	plasma5-runner-pimcontacts

%description
Plasma 5 Akonadi search.

%files -f akonadi_search.lang
%{_kde5_bindir}/akonadi_indexing_agent
%{_kde5_bindir}/akonadi_html_to_text
%{_kde5_datadir}/akonadi/agents/akonadiindexingagent.desktop
%{_kde5_datadir}/qlogging-categories5/akonadi-search.categories
%{_kde5_datadir}/qlogging-categories5/akonadi-search.renamecategories
%{_qt5_plugindir}/pim5/akonadi/akonadi_search_plugin.so
%{_qt5_plugindir}/pim5/akonadi/calendarsearchstore.so
%{_qt5_plugindir}/pim5/akonadi/contactsearchstore.so
%{_qt5_plugindir}/pim5/akonadi/emailsearchstore.so
%{_qt5_plugindir}/pim5/akonadi/notesearchstore.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-pimcontacts
Summary:	Plasma 5 PIM contacts runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-pimcontacts
Plasma 5 PIM contacts runner.

%files -n plasma5-runner-pimcontacts
%{_qt5_plugindir}/kf5/krunner/kcms/kcm_krunner_pimcontacts.so
%{_qt5_plugindir}/kf5/krunner/krunner_pimcontacts.so

#----------------------------------------------------------------------------

%define kf5akonadisearchcore_major 5
%define libkf5akonadisearchcore %mklibname kf5akonadisearchcore %{kf5akonadisearchcore_major}

%package -n %{libkf5akonadisearchcore}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadisearchcore}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadisearchcore}
%{_kde5_libdir}/libKPim5AkonadiSearchCore.so.%{kf5akonadisearchcore_major}*

#----------------------------------------------------------------------------

%define kf5akonadisearchdebug_major 5
%define libkf5akonadisearchdebug %mklibname kf5akonadisearchdebug %{kf5akonadisearchdebug_major}

%package -n %{libkf5akonadisearchdebug}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadisearchdebug}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadisearchdebug}
%{_kde5_libdir}/libKPim5AkonadiSearchDebug.so.%{kf5akonadisearchdebug_major}*

#----------------------------------------------------------------------------

%define kf5akonadisearchpim_major 5
%define libkf5akonadisearchpim %mklibname kf5akonadisearchpim %{kf5akonadisearchpim_major}

%package -n %{libkf5akonadisearchpim}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadisearchpim}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadisearchpim}
%{_kde5_libdir}/libKPim5AkonadiSearchPIM.so.%{kf5akonadisearchpim_major}*

#----------------------------------------------------------------------------

%define kf5akonadisearchxapian_major 5
%define libkf5akonadisearchxapian %mklibname kf5akonadisearchxapian %{kf5akonadisearchxapian_major}

%package -n %{libkf5akonadisearchxapian}
Summary:	Plasma 5 Akonadi shared library
Group:		System/Libraries

%description -n %{libkf5akonadisearchxapian}
Plasma 5 Akonadi shared library.

%files -n %{libkf5akonadisearchxapian}
%{_kde5_libdir}/libKPim5AkonadiSearchXapian.so.%{kf5akonadisearchxapian_major}*

#----------------------------------------------------------------------------

%define devkf5akonadisearch %mklibname kf5akonadisearch -d

%package -n %{devkf5akonadisearch}
Summary:	Development files for Plasma 5 Akonadi
Group:		Development/KDE and Qt
Requires:	%{libkf5akonadisearchcore} = %{EVRD}
Requires:	%{libkf5akonadisearchdebug} = %{EVRD}
Requires:	%{libkf5akonadisearchpim} = %{EVRD}
Requires:	%{libkf5akonadisearchxapian} = %{EVRD}
Provides:	kf5akonadisearch-devel = %{version}

%description -n %{devkf5akonadisearch}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5akonadisearch}
%dir %{_kde5_includedir}/KPim5/AkonadiSearch
%{_kde5_includedir}/KPim5/AkonadiSearch/*
%{_kde5_libdir}/cmake/KPim5AkonadiSearch
%{_kde5_libdir}/libKPim5AkonadiSearchCore.so
%{_kde5_libdir}/libKPim5AkonadiSearchDebug.so
%{_kde5_libdir}/libKPim5AkonadiSearchPIM.so
%{_kde5_libdir}/libKPim5AkonadiSearchXapian.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang akonadi_search

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15751 |21mr|plasma5-applet-minimizeall-0-0.20160531.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20160531

Summary:	Plasma 5 minimize all windows applet
Name:		plasma5-applet-minimizeall
Version:	0
Release:	0.%{git}.4
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://github.com/bvbfan/Minimize-All
# Snapshot from github
Source0:	%{name}-%{git}.tar.bz2
Patch0:		plasma5-applet-minimizeall-20160531-ru.patch
Patch1:		plasma5-applet-minimizeall-20160531-applet-name.patch
Patch2:		plasma5-applet-minimizeall-20160531-accept-keyboard-shortcuts.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)

%description
Plasma 5 minimize all windows applet.

%files -f plasma_applet_org.kde.minimizeall.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.minimizeall/
%{_kde5_datadir}/plasma/plasmoids/org.kde.minimizeall/*
%dir %{_kde5_qmldir}/org/kde/private/minimizeall/
%{_kde5_qmldir}/org/kde/private/minimizeall/*
%{_kde5_services}/plasma-applet-org.kde.minimizeall.desktop

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{git}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_kde5_datadir}/plasma/plasmoids/org.kde.minimizeall/
cp -r package/* %{buildroot}%{_kde5_datadir}/plasma/plasmoids/org.kde.minimizeall/

mkdir -p %{buildroot}%{_kde5_services}/
install -m 644 package/metadata.desktop %{buildroot}%{_kde5_services}/plasma-applet-org.kde.minimizeall.desktop

%find_lang plasma_applet_org.kde.minimizeall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15752 |21mr|plasma5-ark-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ark

Summary:	Archive manager for Plasma 5
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Patch0:		ark-zip-encoding.patch
Patch1:		ark-action_compress.patch
Patch2:		ark-extract_service_menu.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	bzip2-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5pty-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libzip)
Recommends:	p7zip
Recommends:	unzip
Conflicts:	ark

%description
Archive manager for Plasma 5.

%files -f %{oname}.lang
%doc COPYING.icons
%{_kde5_applicationsdir}/org.kde.ark.desktop
%{_kde5_bindir}/ark
%{_kde5_datadir}/config.kcfg/ark.kcfg
%{_kde5_datadir}/kconf_update/
%{_kde5_iconsdir}/hicolor/*/apps/ark.*
%{_kde5_mandir}/man1/ark.1*
%{_kde5_plugindir}/kio_dnd/extracthere.so
%{_kde5_services}/ark_part.desktop
%{_appdatadir}/org.kde.ark.appdata.xml
%{_kde5_plugindir}/parts/arkpart.so
%{_qt5_plugindir}/kerfuffle/kerfuffle_cli7z.so
%{_qt5_plugindir}/kerfuffle/kerfuffle_cliarj.so
%{_qt5_plugindir}/kerfuffle/kerfuffle_clirar.so
%{_qt5_plugindir}/kerfuffle/kerfuffle_cliunarchiver.so
%{_qt5_plugindir}/kerfuffle/kerfuffle_clizip.so
%{_qt5_plugindir}/kerfuffle/kerfuffle_libarchive.so
%{_qt5_plugindir}/kerfuffle/kerfuffle_libarchive_readonly.so
%{_qt5_plugindir}/kf5/kfileitemaction/compressfileitemaction.so
%{_qt5_plugindir}/kf5/kfileitemaction/extractfileitemaction.so
%{_kde5_datadir}/qlogging-categories5/ark.categories
%{_sysconfdir}/xdg/arkrc

#----------------------------------------------------------------------------

%define kerfuffle_major 23
%define libkerfuffle %mklibname kerfuffle %{kerfuffle_major}

%package -n %{libkerfuffle}
Summary:	Shared library for Ark
Group:		System/Libraries

%description -n %{libkerfuffle}
Shared library for Ark.

%files -n %{libkerfuffle}
%{_kde5_libdir}/libkerfuffle.so.%{kerfuffle_major}*

#----------------------------------------------------------------------------

%prep
%setup  -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

# disable libzip, fix zip encoding
sed -i '/^find_package.*LibZip/s|LibZip|LibZip_DISABLED|' CMakeLists.txt

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_kde5_libdir}/libkerfuffle.so

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

#mkdir -p %{buildroot}%{_kde5_services}/ServiceMenus
#install -Dpm 644 %{SOURCE1} %{buildroot}%{_kde5_services}/ServiceMenus/ark_addtoservicemenu.desktop

%find_lang %{oname} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15753 |21mr|plasma5-aurorae-theme-rosa-1.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname aurorae-theme-rosa

Summary:	Plasma 5 Rosa Aurorae theme
Name:		plasma5-%{oname}
Version:	1.0.1
Release:	4
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
Source0:	%{oname}-%{version}.tar.bz2
BuildRequires:	extra-cmake-modules
BuildArch:	noarch

%description
Plasma 5 Rosa Aurorae theme.

%files
%dir %{_kde5_datadir}/aurorae/themes/rosa/
%{_kde5_datadir}/aurorae/themes/rosa/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build

%install
mkdir -p %{buildroot}%{_kde5_datadir}/aurorae/themes/rosa
cp * %{buildroot}%{_kde5_datadir}/aurorae/themes/rosa/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15754 |21mr|plasma5-baloo-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)
%define oname baloo

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	Plasma 5 searching and managing metadata framework
Name:		plasma5-%{oname}
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{oname}-%{version}.tar.xz
Patch0:		baloo-5.83.0-pkgconfig.patch
# Needed to fix "unsatisfied devel(libKF5BalooEngine)" issue for development package
Patch1:		baloo-library-install.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5auth-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5crash-devel = %{version}
BuildRequires:	kf5filemetadata-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5idletime-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5solid-devel = %{version}
BuildRequires:	kf5dbusaddons-devel = %{version}
BuildRequires:	lmdb-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	plasma5-kfilemetadata
Conflicts:	baloo
# Prefer plasma5 prefix for Plasma 5 core packages
Obsoletes:	baloo-kf5 < 5.6.1-2

%description
Plasma 5 searching and managing metadata framework.

%files -f %{name}.lang
%{_kde5_bindir}/baloo_file
%{_kde5_bindir}/baloo_file_extractor
%{_kde5_bindir}/balooctl
%{_kde5_bindir}/baloosearch
%{_kde5_bindir}/balooshow
%{_kde5_datadir}/qlogging-categories5/baloo.categories
%{_kde5_datadir}/qlogging-categories5/baloo.renamecategories
%{_kde5_plugindir}/kded/baloosearchmodule.so
%{_kde5_plugindir}/kio/baloosearch.so
%{_kde5_plugindir}/kio/tags.so
%{_kde5_plugindir}/kio/timeline.so
%{_kde5_sysconfdir}/xdg/autostart/baloo_file.desktop
%{_prefix}/lib/systemd/user/kde-baloo.service
%{_kde5_libexecdir}/baloo_file
%{_kde5_libexecdir}/baloo_file_extractor


#----------------------------------------------------------------------------

%define qmlkf5baloo %mklibname kf5baloo-qml

%package -n %{qmlkf5baloo}
Summary:	QML plugin for Plasma 5 searching and managing metadata framework
Group:		System/Libraries
Provides:	kf5baloo-qml = %{EVRD}

%description -n %{qmlkf5baloo}
QML plugin for Plasma 5 searching and managing metadata framework.

%files -n %{qmlkf5baloo}
%dir %{_kde5_qmldir}/org/kde/baloo/
%{_kde5_qmldir}/org/kde/baloo/*

#----------------------------------------------------------------------------

%define kf5baloo_major 5
%define libkf5baloo %mklibname kf5baloo %{kf5baloo_major}

%package -n %{libkf5baloo}
Summary:	Plasma 5 searching and managing metadata shared library
Group:		System/Libraries
Requires:	%{qmlkf5baloo}

%description -n %{libkf5baloo}
Plasma 5 searching and managing metadata shared library.

%files -n %{libkf5baloo}
%{_kde5_libdir}/libKF5Baloo.so.%{kf5baloo_major}
%{_kde5_libdir}/libKF5Baloo.so.%{version}

#----------------------------------------------------------------------------

%define kf5balooengine_major 5
%define libkf5balooengine %mklibname kf5balooengine %{kf5balooengine_major}

%package -n %{libkf5balooengine}
Summary:	Plasma 5 searching and managing metadata shared library
Group:		System/Libraries

%description -n %{libkf5balooengine}
Plasma 5 searching and managing metadata shared library.

%files -n %{libkf5balooengine}
%{_kde5_libdir}/libKF5BalooEngine.so.%{kf5balooengine_major}
%{_kde5_libdir}/libKF5BalooEngine.so.%{version}

#----------------------------------------------------------------------------

%define devkf5baloo %mklibname kf5baloo -d

%package -n %{devkf5baloo}
Summary:	Development files for Plasma 5 searching and managing metadata framework
Group:		Development/KDE and Qt
Requires:	%{libkf5baloo} = %{EVRD}
Requires:	%{libkf5balooengine} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5baloo-devel = %{version}
Conflicts:	baloo-devel

%description -n %{devkf5baloo}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5baloo}
%{_kde5_includedir}/KF5/Baloo
%{_kde5_libdir}/cmake/KF5Baloo
%{_kde5_libdir}/pkgconfig/Baloo.pc
%{_kde5_libdir}/libKF5Baloo.so
%{_kde5_libdir}/libKF5BalooEngine.so
%{_kde5_mkspecsdir}/qt_Baloo.pri
%{_datadir}/dbus-1/interfaces/org.kde.baloo.file.indexer.xml
%{_datadir}/dbus-1/interfaces/org.kde.baloo.fileindexer.xml
%{_datadir}/dbus-1/interfaces/org.kde.baloo.main.xml
%{_datadir}/dbus-1/interfaces/org.kde.baloo.scheduler.xml
%{_datadir}/dbus-1/interfaces/org.kde.BalooWatcherApplication.xml

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1
%patch1 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang balooctl5 baloodb5 balooengine5 baloo_file5 baloo_file_extractor5 baloomonitorplugin baloosearch5 balooshow5 kio5_baloosearch kio5_tags kio5_timeline %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15755 |21mr|plasma5-baloo-widgets-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname baloo-widgets

Summary:	Plasma 5 Baloo Widgets
Name:		plasma5-%{oname}
Version:	23.08.4
Release: 	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Plasma 5 Baloo Widgets support files.

%files
%{_kde5_bindir}/baloo_filemetadata_temp_extractor
%{_kde5_plugindir}/propertiesdialog/baloofilepropertiesplugin.so
%{_kde5_plugindir}/kfileitemaction/tagsfileitemaction.so
%{_kde5_datadir}/qlogging-categories5/baloo-widgets.categories

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma 5 Baloo Widgets library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma 5 Baloo Widgets library translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5baloowidgets_major 5
%define libkf5baloowidgets %mklibname kf5baloowidgets %{kf5baloowidgets_major}

%package -n %{libkf5baloowidgets}
Summary:	Plasma 5 Baloo Widgets shared library
Group:		System/Libraries
Requires:	(plasma5-baloo-widgets if plasma5-baloo)
Requires:	%{name}-i18n

%description -n %{libkf5baloowidgets}
Plasma 5 Baloo Widgets shared library.

%files -n %{libkf5baloowidgets}
%{_kde5_libdir}/libKF5BalooWidgets.so.%{kf5baloowidgets_major}*
%{_kde5_libdir}/libKF5BalooWidgets.so.%{version}

#----------------------------------------------------------------------------

%define devkf5baloowidgets %mklibname kf5baloowidgets -d

%package -n %{devkf5baloowidgets}
Summary:	Development files for Plasma 5 Baloo widgets
Group:		Development/KDE and Qt
Requires:	%{libkf5baloowidgets} = %{EVRD}
Provides:	kf5baloowidgets-devel = %{version}

%description -n %{devkf5baloowidgets}
This package contains header files needed if you wish to build release-service
based on %{name}.

%files -n %{devkf5baloowidgets}
%dir %{_kde5_includedir}/KF5/BalooWidgets
%{_kde5_includedir}/KF5/BalooWidgets/*
%{_kde5_libdir}/cmake/KF5BalooWidgets
%{_kde5_libdir}/libKF5BalooWidgets.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang baloo_naturalqueryparser baloowidgets5 %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15756 |21mr|plasma5-bluedevil-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname bluedevil

Summary:	Plasma 5 Bluetooth module
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5bluezqt-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kded-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(shared-mime-info)
Requires:	kirigami2
Requires:	bluez
Recommends:	plasma5-applet-bluetooth = %{EVRD}
Recommends:	(pulseaudio-module-bluetooth if pulseaudio-real)

%description
Plasma 5 Bluetooth module.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kcm_bluetooth.desktop
%{_kde5_applicationsdir}/org.kde.bluedevilsendfile.desktop
%{_kde5_applicationsdir}/org.kde.bluedevilwizard.desktop
%{_kde5_bindir}/bluedevil-*
%dir %{_kde5_datadir}/bluedevilwizard
%{_kde5_datadir}/bluedevilwizard/*
%{_kde5_datadir}/remoteview/bluetooth-network.desktop
%{_kde5_notificationsdir}/bluedevil.notifyrc
%{_kde5_plugindir}/kded/bluedevil.so
%{_kde5_plugindir}/kio/kio_bluetooth.so
%{_kde5_plugindir}/kio/kio_obexftp.so
%{_kde5_services}/plasma-applet-org.kde.plasma.bluetooth.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_bluetooth.so
%{_appdatadir}/org.kde.plasma.bluetooth.appdata.xml
%{_datadir}/mime/packages/bluedevil-mime.xml
%{_kde5_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/Device.qml
%{_kde5_datadir}/kpackage/kcms/kcm_bluetooth/contents/ui/General.qml
%{_kde5_datadir}/qlogging-categories5/bluedevil.categories
%{_kde5_docdir}/HTML/*/kcontrol/bluedevil

#----------------------------------------------------------------------------

%package -n plasma5-applet-bluetooth
Summary:	Plasma 5 bluetooth plasmoid
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description -n plasma5-applet-bluetooth
Plasma 5 bluetooth plasmoid.

%files -n plasma5-applet-bluetooth -f plasma_applet_org.kde.plasma.bluetooth.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.bluetooth/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/bluetooth/
%{_kde5_qmldir}/org/kde/plasma/private/bluetooth/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} kcm_bluetooth %{oname}.lang
%find_lang plasma_applet_org.kde.plasma.bluetooth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15757 |21mr|plasma5-browser-integration-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-browser-integration

Summary:	Components necessary to integrate browsers into the Plasma Desktop
Name:		plasma5-browser-integration
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://cgit.kde.org/%{oname}.git
Source0:	http://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	plasma5-workspace-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
plasma-browser-integration coupled with a browser plugin provides
integration of the browser in the desktop.

%files -f %{name}.lang
%doc COPYING-GPL3
%{_kde5_applicationsdir}/org.kde.plasma.browser_integration.host.desktop
%{_kde5_sysconfdir}/chromium/native-messaging-hosts/*.json
%{_kde5_sysconfdir}/opt/chrome/native-messaging-hosts/*.json
%{_kde5_bindir}/plasma-browser-integration-host
%{_kde5_plugindir}/kded/browserintegrationreminder.so
%{_libdir}/mozilla/native-messaging-hosts/*.json
%{_sysconfdir}/opt/edge/native-messaging-hosts/org.kde.plasma.browser_integration.json
%{_kde5_datadir}/krunner/dbusplugins/plasma-runner-browserhistory.desktop
%{_kde5_datadir}/krunner/dbusplugins/plasma-runner-browsertabs.desktop

#-----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5 \
	-DMOZILLA_DIR:PATH=%{_libdir}/mozilla
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15758 |21mr|plasma5-colord-kde-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname colord-kde

Summary:	Colord support for Plasma 5
Name:		plasma5-colord-kde
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://github.com/KDE/colord-kde
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-randr)
BuildRequires:	pkgconfig(xrandr)
Requires:	colord
Requires:	kirigami-addons
Conflicts:	%{oname}

%description
Plasma 5 support for colord including KDE Daemon module and
System Settings module.

%files -f %{oname}.lang
%doc COPYING MAINTAINERS TODO
%{_kde5_applicationsdir}/colordkdeiccimporter.desktop
%{_kde5_bindir}/colord-kde-icc-importer
%{_kde5_datadir}/kpackage/kcms/kcm_colord
%{_kde5_plugindir}/kded/colord.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_colord.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15759 |21mr|plasma5-color-scheme-rosa-5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Rosa color scheme
Name:		plasma5-color-scheme-rosa
Version:	5.3
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
Source0:	ROSALight.colors
Source1:	ROSACleanlooks.colors
Source2:	ROSADark.colors
BuildRequires:	extra-cmake-modules
BuildArch:	noarch

%description
Plasma 5 Rosa color scheme.

%files
%{_kde5_datadir}/color-schemes/ROSALight.colors
%{_kde5_datadir}/color-schemes/ROSACleanlooks.colors
%{_kde5_datadir}/color-schemes/ROSADark.colors

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_datadir}/color-schemes/
install -m 0644 %{SOURCE0} %{buildroot}%{_kde5_datadir}/color-schemes/ROSALight.colors
install -m 0644 %{SOURCE1} %{buildroot}%{_kde5_datadir}/color-schemes/ROSACleanlooks.colors
install -m 0644 %{SOURCE2} %{buildroot}%{_kde5_datadir}/color-schemes/ROSADark.colors

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15760 |21mr|plasma5-config-fresh-8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

Summary:	Plasma 5 Rosa Desktop Fresh config
Name:		plasma5-config-fresh
Version:	8.1
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru/
Source0:	kdeglobals
Source1:	kwinrc
Source2:	ksmserverrc
Source3:	kscreenlockerrc
Source4:	dolphinrc
Source6:	kwalletrc
Source7:	plasmarc
Source9:	kuriikwsfilterrc
Source10:	kxkbrc
# Modified versions of file from plasma5-desktop
Source100:	default-panel-layout.js
BuildRequires:	extra-cmake-modules
Provides:	plasma5-config
Requires:	plasma5-look-and-feel-default
BuildArch:	noarch

%description
Plasma 5 Rosa config (KF5 files).

%files
%{_kde5_sysconfdir}/xdg/dolphinrc
%{_kde5_sysconfdir}/xdg/kwalletrc
%{_kde5_sysconfdir}/xdg/kdeglobals
#{_kde5_sysconfdir}/xdg/kscreenlockerrc
%{_kde5_sysconfdir}/xdg/ksmserverrc
%{_kde5_sysconfdir}/xdg/kuriikwsfilterrc
%{_kde5_sysconfdir}/xdg/kxkbrc
%{_kde5_sysconfdir}/xdg/kwinrc
%{_kde5_sysconfdir}/xdg/plasmarc

#----------------------------------------------------------------------------

%package -n plasma5-config-plasma-fresh
Summary:	Plasma 5 Rosa Desktop Fresh config (Plasma files)
Group:		Graphical desktop/KDE
Requires:	plasma5-applet-appmenu
# Used in default panel layout.js
Requires:	plasma5-applet-digitalclock
Requires:	plasma5-applet-kicker
Requires:	plasma5-applet-systemtray
Requires:	plasma5-applet-taskmanager
Provides:	plasma5-config-plasma

%description -n plasma5-config-plasma-fresh
Plasma 5 Rosa config (Plasma files).

%files -n plasma5-config-plasma-fresh
%{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_sysconfdir}/xdg/xsettingsd/
install -m 0644 %{SOURCE0} %{buildroot}%{_kde5_sysconfdir}/xdg/kdeglobals
install -m 0644 %{SOURCE1} %{buildroot}%{_kde5_sysconfdir}/xdg/kwinrc
install -m 0644 %{SOURCE2} %{buildroot}%{_kde5_sysconfdir}/xdg/ksmserverrc
#install -m 0644 %{SOURCE3} %{buildroot}%{_kde5_sysconfdir}/xdg/kscreenlockerrc
install -m 0644 %{SOURCE4} %{buildroot}%{_kde5_sysconfdir}/xdg/dolphinrc
install -m 0644 %{SOURCE6} %{buildroot}%{_kde5_sysconfdir}/xdg/kwalletrc
install -m 0644 %{SOURCE7} %{buildroot}%{_kde5_sysconfdir}/xdg/plasmarc
install -m 0644 %{SOURCE9} %{buildroot}%{_kde5_sysconfdir}/xdg/kuriikwsfilterrc
install -m 0644 %{SOURCE10} %{buildroot}%{_kde5_sysconfdir}/xdg/kxkbrc

mkdir -p %{buildroot}%{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/
install -m 0644 %{SOURCE100} %{buildroot}%{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15761 |21mr|plasma5-decoration-rosa-5.9.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 ROSA window decoration
Name:		plasma5-decoration-rosa
Version:	5.9.10
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
Source0:	https://abf.io/uxteam/%{name}-devel/archive/%{name}-devel-%{version}.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kdecoration2-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)

%description
Plasma 5 ROSA window decoration.

%files -f rosa_kwin_deco.lang
%{_kde5_services}/rosadecorationconfig.desktop
%{_qt5_plugindir}/org.kde.kdecoration2/rosadecoration.so
%dir %{_datadir}/themes/rosa/assets/
%{_datadir}/themes/rosa/assets/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-devel-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang rosa_kwin_deco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15762 |21mr|plasma5-desktop-5.27.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0
%define oname plasma-desktop

Summary:	Plasma 5 desktop module
Name:		plasma5-desktop
Version:	5.27.11
Release:	7
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source1:	plasma-desktop-5.27_ru.tar.gz
Source10:	plasma5-desktop.rpmlintrc
# Move date and time to more obvious place in system settings
Patch0:		plasma-desktop-dateandtime-category.patch
# Replace dolphin with rpmdrake in kicker and kickoff favorites
# We have dolphin on panel, no use to have it in menu favorites
# Delete label from panel
Patch1:		clean_panel.patch
Patch2:		favorite.patch
# ComponentChooser: Add more default applications and categories
# https://invent.kde.org/plasma/plasma-desktop/-/commit/9a86591ae66a4fc6587bf5ebfa2c9da1db7e8225
Patch4:		Add_more_default_applications_and_categories.patch
# Disable default switch virtual desktop by mouse wheel
Patch6:		dis-wheel-switch-desktop.patch
# Fix the width of the grid cells when using icon view
Patch7:		rosa-desktop-icons.patch
# Backport patches for fixing desktop icon positioner:
# https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2607
# https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2631
# https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2641
# https://invent.kde.org/plasma/plasma-desktop/-/merge_requests/2652
Patch8:		fix-icon-positioner.patch
# uppstream patches
Patch100:	0001-kcms-mouse-Fix-m_dpy-check.patch
Patch101:	0002-Task-Manager-Emit-contextualActionsAboutToShow-when-context-menu-opens.patch
Patch102:	0003-Folder-Model-Handle-invalid-URL-in-desktop-file.patch
Patch103:	0004-kcms_Add-Notifiers-for-kactivitymanagerd_plugins_settings.patch
Patch104:	0005-applets-taskmanager-Skip-querying-KActivitiesStats-if-recentdocs-is-disabled.patch
Patch105:	0006-applets-taskmanager-Dont-try-to-find-service-for-application-octet-stream.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	breeze-devel
BuildRequires:	kaccounts-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5activitiesstats-devel
BuildRequires:	kf5attica-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kded-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5people-devel
BuildRequires:	kf5pipewire-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5sysguard-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kscreenlocker-devel
BuildRequires:	plasma5-kwin-devel
BuildRequires:	plasma5-workspace-devel
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	qqc2-breeze-style-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(ibus-1.0)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(packagekitqt5)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-shm)
# Don't have it
# BuildRequires:	pkgconfig(xcb-xinput)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xcb-xkb)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xkeyboard-config)
BuildRequires:	pkgconfig(xorg-evdev)
BuildRequires:	pkgconfig(xorg-libinput)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xorg-synaptics)
BuildRequires:	xdg-user-dirs
# Internal required packages (require them all for now)
Requires:	plasma5-applet-icontasks
Requires:	plasma5-applet-keyboardlayout
Requires:	plasma5-applet-kicker
Requires:	plasma5-applet-kickoff
Recommends:	plasma5-applet-kimpanel
Requires:	plasma5-applet-marginsseparator
Requires:	plasma5-applet-pager
Requires:	plasma5-applet-showactivitymanager
Requires:	plasma5-applet-taskmanager
Requires:	plasma5-applet-touchpad
Requires:	plasma5-applet-trash
Requires:	plasma5-applet-windowlist
Requires:	plasma5-containment-desktop
Requires:	plasma5-containment-folder
Requires:	plasma5-containment-panel
Requires:	plasma5-layout-template-appmenubar
Requires:	plasma5-layout-template-default-panel
Requires:	plasma5-layout-template-empty-panel
# Rosa theme for global settings
Recommends:	plasma5-look-and-feel-rosa
Recommends:	plasma5-look-and-feel-rosa-fresh
Requires:	plasma5-runner-kwin
Requires:	plasma5-runner-plasma-desktop
Requires:	plasma5-shell-desktop
Requires:	plasma5-toolbox-desktop
Requires:	plasma5-toolbox-panel

Requires:	plasma5-applet-minimizeall
Requires:	plasma5-applet-showdesktop
# External KF5 and Plasma 5 required packages
Requires:	drkonqi
Requires:	plasma5-workspace
Requires:	qqc2-desktop-style
Requires:	qqc2-breeze-style
# Other required packages
Requires:	mandriva-kde-translation
#Conflicts:	plasma5-applet-touchpad < 5.23.0
#Obsoletes:	plasma5-applet-touchpad < 5.23.0

%description
Plasma 5 desktop module.

%files -f %{name}.lang
%{_datadir}/doc5/HTML
%{_sysconfdir}/xdg/autostart/kaccess.desktop
%{_kde5_applicationsdir}/kcm_access.desktop
%{_kde5_applicationsdir}/kcm_activities.desktop
%{_kde5_applicationsdir}/kcm_baloofile.desktop
%{_kde5_applicationsdir}/kcm_clock.desktop
%{_kde5_applicationsdir}/kcm_componentchooser.desktop
%{_kde5_applicationsdir}/kcm_desktoppaths.desktop
%{_kde5_applicationsdir}/kcm_joystick.desktop
%{_kde5_applicationsdir}/kcm_kded.desktop
%{_kde5_applicationsdir}/kcm_keyboard.desktop
%{_kde5_applicationsdir}/kcm_keys.desktop
%{_kde5_applicationsdir}/kcm_krunnersettings.desktop
%{_kde5_applicationsdir}/kcm_landingpage.desktop
%{_kde5_applicationsdir}/kcm_mouse.desktop
%{_kde5_applicationsdir}/kcm_plasmasearch.desktop
%{_kde5_applicationsdir}/kcm_recentFiles.desktop
%{_kde5_applicationsdir}/kcm_qtquicksettings.desktop
%{_kde5_applicationsdir}/kcm_smserver.desktop
%{_kde5_applicationsdir}/kcm_solid_actions.desktop
%{_kde5_applicationsdir}/kcm_splashscreen.desktop
%{_kde5_applicationsdir}/kcm_tablet.desktop
%{_kde5_applicationsdir}/kcm_touchpad.desktop
%{_kde5_applicationsdir}/kcm_touchscreen.desktop
%{_kde5_applicationsdir}/kcm_workspace.desktop
%{_kde5_applicationsdir}/kcmspellchecking.desktop
%{_kde5_bindir}/kaccess
%{_kde5_bindir}/kapplymousetheme
%{_kde5_bindir}/kcm-touchpad-list-devices
%{_kde5_bindir}/knetattach
%{_kde5_bindir}/krunner-plugininstaller
%{_kde5_bindir}/solid-action-desktop-gen
%{_kde5_bindir}/plasma-emojier
%{_kde5_bindir}/tastenbrett
%{_kde5_datadir}/knsrcfiles/ksplash.knsrc
%{_kde5_datadir}/knsrcfiles/krunner.knsrc
%{_kde5_datadir}/applications/org.kde.knetattach.desktop
%{_kde5_datadir}/kcmkeys/*.kksrc
%{_kde5_datadir}/kcmmouse/*
%{_kde5_datadir}/kcmsolidactions/solid-action-template.desktop
%dir %{_kde5_datadir}/kf5/kactivitymanagerd/
%{_kde5_datadir}/kf5/kactivitymanagerd/*
%{_kde5_datadir}/kpackage/kcms/kcm_access/
%{_kde5_datadir}/kpackage/kcms/kcm_componentchooser/
%{_kde5_datadir}/kpackage/kcms/kcm_krunnersettings/
%{_kde5_datadir}/kpackage/kcms/kcm_landingpage/
%{_kde5_datadir}/kpackage/kcms/kcm_splashscreen/
%{_kde5_datadir}/kpackage/kcms/kcm_smserver/
%{_kde5_datadir}/kpackage/kcms/kcm_touchscreen/
%{_kde5_datadir}/kpackage/kcms/kcm_workspace/
%{_kde5_datadir}/solid/devices/solid-device-*.desktop
%{_kde5_iconsdir}/hicolor/*/devices/input-touchpad.*
%{_kde5_libexecdir}/kauth/kcmdatetimehelper
%{_kde5_notificationsdir}/kaccess.notifyrc
%{_kde5_notificationsdir}/kcm_touchpad.notifyrc
%{_kde5_plugindir}/kded/device_automounter.so
%{_kde5_plugindir}/kded/keyboard.so
%{_kde5_plugindir}/kded/kded_touchpad.so
%dir %{_kde5_qmldir}/org/kde/activities/settings/
%{_kde5_qmldir}/org/kde/activities/settings/*
%dir %{_kde5_qmldir}/org/kde/plasma/emoji/
%{_kde5_qmldir}/org/kde/plasma/emoji/*
#{_kde5_services}/kcm_tablet.desktop
%{_kde5_servicetypes}/solid-device-type.desktop
%{_qt5_plugindir}/attica_kde.so
#{_qt5_plugindir}/kcms/kcm_tablet.so
%{_qt5_plugindir}/plasma/kcms/desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_plasmasearch.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_recentFiles.so
%{_qt5_plugindir}/plasma/kcminit/kcm_mouse_init.so
%{_qt5_plugindir}/plasma/kcminit/kcm_touchpad_init.so
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmclock.service
%{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmclock.conf
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmclock.policy
# likely should be in a development package
%{_datadir}/dbus-1/interfaces/org.kde.touchpad.xml
%{_kde5_datadir}/config.kcfg/*
%{_kde5_datadir}/applications/kde5/org.kde.plasma.emojier.desktop
%{_kde5_datadir}/kglobalaccel/org.kde.plasma.emojier.desktop
%{_kde5_datadir}/kconf_update/*
%{_kde5_datadir}/kpackage/kcms/kcm5_kded
%{_kde5_datadir}/kpackage/kcms/kcm_baloofile
%{_kde5_datadir}/kpackage/kcms/kcm_tablet
%{_kde5_datadir}/kpackage/kcms/kcm_keys
%{_kde5_datadir}/kpackage/kcms/kcm_plasmasearch
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.activitypager
%{_kde5_datadir}/plasma/emoji/*.dict
%{_kde5_datadir}/qlogging-categories5/kcmkeys.categories
%{_kde5_datadir}/qlogging-categories5/kcm_kded.categories
%{_kde5_datadir}/qlogging-categories5/kcm_keyboard.categories
%{_kde5_datadir}/qlogging-categories5/kcm_mouse.categories
%{_kde5_datadir}/qlogging-categories5/kcm_tablet.categories
%{_kde5_datadir}/qlogging-categories5/kcm_touchscreen.categories
%{_kde5_datadir}/accounts/providers/kde/opendesktop.provider
%{_kde5_datadir}/accounts/services/kde/opendesktop-rating.service
%{_localedir}/*/LC_SCRIPTS/kfontinst/kfontinst.js
%{_appdatadir}/org.kde.plasmashell.metainfo.xml
%{_appdatadir}/org.kde.plasma.activitypager.appdata.xml
%{_kde5_datadir}/kf5/kcm_recentFiles

#----------------------------------------------------------------------------

%package -n plasma5-applet-keyboardlayout
Summary:	Plasma 5 icon tasks plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-keyboardlayout
Plasma 5 icon tasks plasmoid.

%files -n plasma5-applet-keyboardlayout -f plasma_applet_org.kde.plasma.keyboardlayout.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.keyboardlayout/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.keyboardlayout/*
%{_appdatadir}/org.kde.plasma.keyboardlayout.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-marginsseparator
Summary:	Plasma 5 icon tasks plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-marginsseparator
Plasma 5 icon tasks plasmoid.

%files -n plasma5-applet-marginsseparator
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.marginsseparator/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.marginsseparator/*
%{_appdatadir}/org.kde.plasma.marginsseparator.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-icontasks
Summary:	Plasma 5 icon tasks plasmoid
Group:		Graphical desktop/KDE
Requires:	plasma5-applet-taskmanager

%description -n plasma5-applet-icontasks
Plasma 5 icon tasks plasmoid.

%files -n plasma5-applet-icontasks
# Seems to be part of plasma5-applet-taskmanager
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.icontasks/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.icontasks/*
%{_appdatadir}/org.kde.plasma.icontasks.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-kicker
Summary:	Plasma 5 kicker plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-kicker
Plasma 5 kicker plasmoid.

%files -n plasma5-applet-kicker -f plasma_applet_org.kde.plasma.kicker.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kicker/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kicker/*
%{_appdatadir}/org.kde.plasma.kicker.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-kickoff
Summary:	Plasma 5 kickoff plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-kickoff
Plasma 5 kickoff plasmoid.

%files -n plasma5-applet-kickoff -f plasma_applet_org.kde.plasma.kickoff.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kickoff/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kickoff/*
%{_appdatadir}/org.kde.plasma.kickoff.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-kimpanel
Summary:	Plasma 5 kimpanel (input method panel) plasmoid
Group:		Graphical desktop/KDE
Requires:	ibus
Requires:	fonts-ttf-google-noto-emoji
Requires:	fonts-ttf-google-noto-emoji-color

%description -n plasma5-applet-kimpanel
Plasma 5 kimpanel (input method panel) plasmoid.

%files -n plasma5-applet-kimpanel -f plasma_applet_org.kde.plasma.kimpanel.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kimpanel/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kimpanel/*
%{_kde5_libexecdir}/kimpanel-ibus-panel
%{_kde5_libexecdir}/kimpanel-ibus-panel-launcher
%dir %{_kde5_qmldir}/org/kde/plasma/private/kimpanel/
%{_kde5_qmldir}/org/kde/plasma/private/kimpanel/*
%{_appdatadir}/org.kde.plasma.kimpanel.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-pager
Summary:	Plasma 5 pager plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-pager
Plasma 5 pager plasmoid.

%files -n plasma5-applet-pager -f plasma_applet_org.kde.plasma.pager.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.pager/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.pager/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/pager/
%{_kde5_qmldir}/org/kde/plasma/private/pager/*
%{_appdatadir}/org.kde.plasma.pager.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-showactivitymanager
Summary:	Plasma 5 show activity manager plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-showactivitymanager
Plasma 5 show activity manager plasmoid.

%files -n plasma5-applet-showactivitymanager -f plasma_applet_org.kde.plasma.showActivityManager.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.showActivityManager/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.showActivityManager/*
%{_appdatadir}/org.kde.plasma.showActivityManager.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-taskmanager
Summary:	Plasma 5 task manager plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-taskmanager
Plasma 5 task manager plasmoid.

%files -n plasma5-applet-taskmanager -f plasma_applet_org.kde.plasma.taskmanager.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.taskmanager/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.taskmanager/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/taskmanager/
%{_kde5_qmldir}/org/kde/plasma/private/taskmanager/*
%{_appdatadir}/org.kde.plasma.taskmanager.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-touchpad
Summary:	Plasma 5 touchpad plasmoid
Group:		Graphical desktop/KDE
Requires:	plasma5-dataengine-touchpad

%description -n plasma5-applet-touchpad
Plasma 5 touchpad plasmoid.

%files -n plasma5-applet-touchpad
%{_kde5_datadir}/plasma/desktoptheme/default/icons/touchpad.svg
%dir %{_kde5_datadir}/plasma/plasmoids/touchpad/
%{_kde5_datadir}/plasma/plasmoids/touchpad/*

#-------------------------------------------------------------------------

%package -n plasma5-applet-trash
Summary:	Plasma 5 trash plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-trash
Plasma 5 trash plasmoid.

%files -n plasma5-applet-trash -f plasma_applet_org.kde.plasma.trash.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.trash/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.trash/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/trash/
%{_kde5_qmldir}/org/kde/plasma/private/trash/*
%{_appdatadir}/org.kde.plasma.trash.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-windowlist
Summary:	Plasma 5 window list plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-windowlist
Plasma 5 window list plasmoid.

%files -n plasma5-applet-windowlist -f plasma_applet_org.kde.plasma.windowlist.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.windowlist/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.windowlist/*
%{_appdatadir}/org.kde.plasma.windowlist.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-minimizeall
Summary:	Plasma 5 minimizeall plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-minimizeall
Plasma 5 minimizeall plasmoid.

%files -n plasma5-applet-minimizeall
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.minimizeall/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.minimizeall/*
%{_appdatadir}/org.kde.plasma.minimizeall.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-showdesktop
Summary:	Plasma 5 showdesktop plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-showdesktop
Plasma 5 showdesktop plasmoid.

%files -n plasma5-applet-showdesktop -f plasma_applet_org.kde.plasma.showdesktop.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.showdesktop/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.showdesktop/*
%{_appdatadir}/org.kde.plasma.showdesktop.appdata.xml
%{_kde5_qmldir}/org/kde/plasma/private/showdesktop/libshowdesktopplugin.so
%{_kde5_qmldir}/org/kde/plasma/private/showdesktop/qmldir

#----------------------------------------------------------------------------

%package -n plasma5-containment-desktop
Summary:	Plasma 5 desktop containment
Group:		Graphical desktop/KDE

%description -n plasma5-containment-desktop
Plasma 5 desktop containment.

%files -n plasma5-containment-desktop -f plasma_applet_org.kde.desktopcontainment.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.desktopcontainment/
%{_kde5_datadir}/plasma/plasmoids/org.kde.desktopcontainment/*
%dir %{_kde5_qmldir}/org/kde/private/desktopcontainment/desktop/
%{_kde5_qmldir}/org/kde/private/desktopcontainment/desktop/*
%{_appdatadir}/org.kde.desktopcontainment.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-containment-folder
Summary:	Plasma 5 folder containment
Group:		Graphical desktop/KDE

%description -n plasma5-containment-folder
Plasma 5 folder containment.

%files -n plasma5-containment-folder
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.folder/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.folder/*
%dir %{_kde5_qmldir}/org/kde/private/desktopcontainment/folder/
%{_kde5_qmldir}/org/kde/private/desktopcontainment/folder/*
%{_appdatadir}/org.kde.plasma.folder.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-containment-panel
Summary:	Plasma 5 panel containment
Group:		Graphical desktop/KDE

%description -n plasma5-containment-panel
Plasma 5 panel containment.

%files -n plasma5-containment-panel -f plasma_applet_org.kde.panel.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.panel/
%{_kde5_datadir}/plasma/plasmoids/org.kde.panel/*

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-touchpad
Summary:	Plasma 5 touchpad dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-touchpad
Plasma 5 touchpad dataengine.

%files -n plasma5-dataengine-touchpad
%{_kde5_datadir}/plasma/services/touchpad.operations
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_touchpad.so

#----------------------------------------------------------------------------

%package -n plasma5-layout-template-appmenubar
Summary:	Plasma 5 appmenubar layout template
Group:		Graphical desktop/KDE
Conflicts:	plasma5-config-plasma-fresh < 8.0
Obsoletes:	plasma5-config-plasma-fresh < 8.0

%description -n plasma5-layout-template-appmenubar
Plasma 5 default panel layout template.

%files -n plasma5-layout-template-appmenubar
%dir %{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.appmenubar/
%dir %{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.appmenubar/contents/
%{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.appmenubar/contents/layout.js
%{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.appmenubar/metadata.json
%{_appdatadir}/org.kde.plasma.desktop.appmenubar.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-layout-template-default-panel
Summary:	Plasma 5 default panel layout template
Group:		Graphical desktop/KDE
# For layout.js
Requires:	plasma5-config-plasma

%description -n plasma5-layout-template-default-panel
Plasma 5 default panel layout template.

%files -n plasma5-layout-template-default-panel
%dir %{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/
%dir %{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/
%{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/metadata.json
%{_appdatadir}/org.kde.plasma.desktop.defaultPanel.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-layout-template-empty-panel
Summary:	Plasma 5 empty panel layout template
Group:		Graphical desktop/KDE

%description -n plasma5-layout-template-empty-panel
Plasma 5 empty panel layout template.

%files -n plasma5-layout-template-empty-panel
%dir %{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.emptyPanel/
%{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.emptyPanel/*
%{_appdatadir}/org.kde.plasma.desktop.emptyPanel.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-runner-kwin
Summary:	Plasma 5 kwin runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-kwin
Plasma 5 kwin runner.

%files -n plasma5-runner-kwin -f plasma_runner_kwin.lang
%{_qt5_plugindir}/kf5/krunner/krunner_kwin.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-plasma-desktop
Summary:	Plasma 5 plasma desktop runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-plasma-desktop
Plasma 5 plasma desktop runner.

%files -n plasma5-runner-plasma-desktop
%{_qt5_plugindir}/kf5/krunner/krunner_plasma-desktop.so

#----------------------------------------------------------------------------

%package -n plasma5-shell-desktop
Summary:	Plasma 5 desktop shell
Group:		Graphical desktop/KDE
Requires:	plasma-activityswitcher-qml
Conflicts:	plasma5-config-plasma-fresh < 8.0
Obsoletes:	plasma5-config-plasma-fresh < 8.0

%description -n plasma5-shell-desktop
Plasma 5 desktop shell.

%files -n plasma5-shell-desktop -f plasma_shell_org.kde.plasma.desktop.lang
%dir %{_kde5_datadir}/plasma/shells/org.kde.plasma.desktop/
%{_kde5_datadir}/plasma/shells/org.kde.plasma.desktop/*
%{_appdatadir}/org.kde.plasma.desktop.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-toolbox-desktop
Summary:	Plasma 5 desktop toolbox
Group:		Graphical desktop/KDE

%description -n plasma5-toolbox-desktop
Plasma 5 desktop toolbox.

%files -n plasma5-toolbox-desktop -f plasma_toolbox_org.kde.desktoptoolbox.lang
%dir %{_kde5_datadir}/plasma/packages/org.kde.desktoptoolbox/
%{_kde5_datadir}/plasma/packages/org.kde.desktoptoolbox/*
%{_appdatadir}/org.kde.desktoptoolbox.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-toolbox-panel
Summary:	Plasma 5 panel toolbox
Group:		Graphical desktop/KDE

%description -n plasma5-toolbox-panel
Plasma 5 panel toolbox.

%files -n plasma5-toolbox-panel
%dir %{_kde5_datadir}/plasma/packages/org.kde.paneltoolbox/
%{_kde5_datadir}/plasma/packages/org.kde.paneltoolbox/*
%{_appdatadir}/org.kde.paneltoolbox.appdata.xml

#----------------------------------------------------------------------------

%define qmlplasma_activityswitcher %mklibname plasma-activityswitcher-qml

%package -n %{qmlplasma_activityswitcher}
Summary:	QML plugins for Plasma 5 activity switcher
Group:		System/Libraries
Provides:	plasma-activityswitcher-qml = %{EVRD}

%description -n %{qmlplasma_activityswitcher}
QML plugins for Plasma 5 activity switcher.

%files -n %{qmlplasma_activityswitcher}
%dir %{_kde5_qmldir}/org/kde/plasma/activityswitcher/
%{_kde5_qmldir}/org/kde/plasma/activityswitcher/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch4 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1

pushd po
tar -xvzf %{SOURCE1}
popd

rm -f po/*/plasma_runner_plasma-desktop.po

%build
%cmake_kde5
# ?Too greedy for resources
%make -s

%install
%makeinstall_std -C build

# Moved to plasma5-config-* package
rm -f %{buildroot}%{_kde5_datadir}/plasma/layout-templates/org.kde.plasma.desktop.defaultPanel/contents/layout.js

# Some kio modules hardcode search path to /usr/share/applications
mv %{buildroot}%{_kde5_applicationsdir}/org.kde.knetattach.desktop %{buildroot}%{_kde5_datadir}/applications/org.kde.knetattach.desktop

%find_lang %{oname} attica_kde_plugin autostart baloo bell bookmarks cache clock colors componentchooser cookies joystick kaccess \
           kcm_activities kcm_activities5 kcm_access kcm5_baloofile kcm_desktoppaths kcm_desktoptheme kcm_desktopthemedetails \
           kcm5_device_automounter kcm5_emoticons kcmlaunchfeedback kcm_landingpage kcm_launchfeedback kcm_workspace \
           kcm_lookandfeel kcm5_phonon kcm_search kcm_solid_actions kcm_splashscreen kcm_standard_actions kcm_touchpad \
           kcmbell kcm5_componentchooser kcminput kcmkclock kcm5_joystick kcmmouse kcmqtquicksettings kcm_touchscreen \
           kcm5_kded kcmkeyboard kcmkeys kcmlaunch kcm5_notify kcm_krunnersettings kcmsmserver kcmtranslations kcmworkspaceoptions \
           kfontinst knetattach knetattach5 krdb ktouchpadenabler useraccount plasmaactivitymanager \
           desktopthemedetails ebrowsing emoticons filemanager filetypes fontinst fonts history icons kcmcss kded \
           keyboard keys kfontview mouse netpref paths performance phonon proxy solid-device-automounter spellchecking translations \
           khtml-adblock khtml-behavior khtml-general khtml-java-js khtml-plugins smb solid-actions splashscreen useragent workspaceoptions \
           kcmstyle notifications kcm_componentchooser kcm_smserver kcm_tablet kcm_plasmasearch kcm_recentFiles \
           kcm_style kcm_baloofile kcm_keys plasma_applet_touchpad \
           org.kde.plasma.emojier plasma_toolbox_org.kde.paneltoolbox \
           %{name}.lang --with-html --with-kde

%find_lang plasma_applet_org.kde.plasma.keyboardlayout

%find_lang plasma_applet_org.kde.plasma.kicker

%find_lang plasma_applet_org.kde.plasma.kimpanel

%find_lang plasma_applet_org.kde.plasma.kickoff

%find_lang plasma_applet_org.kde.plasma.pager

%find_lang plasma_applet_org.kde.panel

%find_lang plasma_applet_org.kde.plasma.showActivityManager

%find_lang plasma_applet_org.kde.plasma.taskmanager

%find_lang plasma_applet_org.kde.plasma.trash

%find_lang plasma_applet_org.kde.plasma.windowlist

%find_lang plasma_applet_org.kde.desktopcontainment

%find_lang plasma_applet_org.kde.plasma.showdesktop

%find_lang plasma_runner_kwin

%find_lang plasma_shell_org.kde.plasma.desktop

%find_lang plasma_toolbox_org.kde.desktoptoolbox

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15763 |21mr|plasma5-desktoptheme-rosa-fresh-6.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 ROSA Desktop Fresh desktop theme
Name:		plasma5-desktoptheme-rosa-fresh
Version:	6.2.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5plasma-devel
Provides:	plasma5-desktoptheme-default = %{EVRD}
BuildArch:	noarch

%description
Plasma 5 ROSA Desktop Fresh desktop theme.

%files
%dir %{_kde5_datadir}/plasma/desktoptheme/ROSA-Light
%{_kde5_datadir}/plasma/desktoptheme/ROSA-Light/*
%dir %{_kde5_datadir}/plasma/desktoptheme/ROSA-Dark
%{_kde5_datadir}/plasma/desktoptheme/ROSA-Dark/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15764 |21mr|plasma5-disks-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-disks

Name:		plasma5-disks
Version:	5.27.11
Release:	2
Summary:	Plasma storage device health monitoring
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
License:	GPLv2+
Group:		Graphical desktop/KDE
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5auth-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5service-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:  smartmontools
Requires:       smartmontools

%description
Plasma storage device health monitoring.

%files -f plasma-disks.lang
%{_kde5_libexecdir}/kauth/kded-smart-helper
%{_qt5_plugindir}/plasma/kcms/kinfocenter/smart.so
%{_qt5_plugindir}/kf5/kded/smart.so
%{_kde5_datadir}/dbus-1/system-services/org.kde.kded.smart.service
%{_kde5_datadir}/dbus-1/system.d/org.kde.kded.smart.conf
%{_kde5_datadir}/kpackage/kcms/plasma_disks/*
%{_kde5_datadir}/polkit-1/actions/org.kde.kded.smart.policy
%{_kde5_notificationsdir}/org.kde.kded.smart.notifyrc
%{_appdatadir}/org.kde.plasma.disks.metainfo.xml

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang plasma-disks --all-name --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15765 |21mr|plasma5-dolphin-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname dolphin

Summary:	File manager for Plasma 5 focusing on usability
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/applications/system/dolphin/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
# Keep it possible to run from root
Patch0:		dolphin-enable_rootactions.patch
# Option to enable/disable indexed search
Patch1:		indexed-search-option.patch
# Backports for fix: https://bugs.kde.org/show_bug.cgi?id=473999
Patch2:		fix-expand-wrong-position.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activities-devel
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5baloowidgets-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	kde-cli-tools
Conflicts:	dolphin

%description
Dolphin is a file manager for Plasma 5 focusing on usability.
The main features of Dolphin are:
- Navigation bar for URLs, which allows to navigate quickly
     through the file hierarchy.
- View properties are remembered for each folder.
- Split of views is supported.
- Network transparency.
- Undo/redo functionality.
- Renaming of a variable number of selected items in one step.

Dolphin is not intended to be a competitor to Konqueror: Konqueror
acts as universal viewer being able to show HTML pages, text documents,
directories and a lot more, whereas Dolphin focuses on being only a file
manager. This approach allows to optimize the user interface for the task
of file management.

%files -f %{oname}.lang
%doc README.md COPYING COPYING.DOC
%{_kde5_applicationsdir}/org.kde.dolphin.desktop
%{_kde5_bindir}/dolphin
%{_kde5_bindir}/servicemenuinstaller
%{_kde5_datadir}/config.kcfg/dolphin_*.kcfg
%{_kde5_datadir}/dolphin/dolphinpartactions.desktop
%{_kde5_datadir}/knsrcfiles/servicemenu.knsrc
%{_kde5_datadir}/qlogging-categories5/dolphin.categories
%{_kde5_datadir}/kglobalaccel/org.kde.dolphin.desktop
%{_kde5_datadir}/kconf_update/dolphin_detailsmodesettings.upd
%{_kde5_datadir}/zsh/site-functions/_dolphin
%{_appdatadir}/org.kde.dolphin.appdata.xml
%{_datadir}/dbus-1/services/org.kde.dolphin.FileManager1.service
%{_qt5_plugindir}/dolphin/kcms/kcm_dolphingeneral.so
%{_qt5_plugindir}/dolphin/kcms/kcm_dolphinnavigation.so
%{_qt5_plugindir}/dolphin/kcms/kcm_dolphinviewmodes.so
%{_qt5_plugindir}/kf5/parts/dolphinpart.so
%{_prefix}/lib/systemd/user/plasma-dolphin.service
%lang(fi) %{_localedir}/fi/LC_SCRIPTS/dolphin

#----------------------------------------------------------------------------

%define dolphinprivate_major 5
%define libdolphinprivate %mklibname dolphinprivate %{dolphinprivate_major}

%package -n %{libdolphinprivate}
Summary:	Shared library for Dolphin
Group:		System/Libraries

%description -n %{libdolphinprivate}
Shared library for Dolphin.

%files -n %{libdolphinprivate}
%{_kde5_libdir}/libdolphinprivate.so.%{dolphinprivate_major}*

#----------------------------------------------------------------------------

%define dolphinvcs_major 5
%define libdolphinvcs %mklibname dolphinvcs %{dolphinvcs_major}

%package -n %{libdolphinvcs}
Summary:	Shared library for Dolphin
Group:		System/Libraries

%description -n %{libdolphinvcs}
Shared library for Dolphin.

%files -n %{libdolphinvcs}
%{_kde5_libdir}/libdolphinvcs.so.%{dolphinprivate_major}*

#----------------------------------------------------------------------------

%define devdolphin %mklibname dolphin -d

%package -n %{devdolphin}
Summary:	Development files for Dolphin
Group:		Development/KDE and Qt
Requires:	%{libdolphinvcs} = %{EVRD}
Provides:	dolphin-devel = %{EVRD}

%description -n %{devdolphin}
Development files for Dolphin.

%files -n %{devdolphin}
%dir %{_kde5_includedir}/Dolphin/
%{_kde5_includedir}/Dolphin/*
%{_kde5_includedir}/dolphin_export.h
%{_kde5_includedir}/dolphinvcs_export.h
%dir %{_kde5_libdir}/cmake/DolphinVcs/
%{_kde5_libdir}/cmake/DolphinVcs/*.cmake
%{_kde5_libdir}/libdolphinvcs.so
%{_datadir}/dbus-1/interfaces/org.freedesktop.FileManager1.xml

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

%build
%cmake_kde5 -DBUILD_TESTING=OFF
%make

%install
%makeinstall_std -C build

# Don't ship development file for private library
rm -rf %{buildroot}%{_kde5_libdir}/libdolphinprivate.so

%find_lang dolphin_servicemenuinstaller %{oname} %{oname}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15766 |21mr|plasma5-ffmpegthumbs-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ffmpegthumbs

Summary:	Video thumbnail generator for Plasma 5 file managers
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)

%description
Video thumbnail generator for Plasma 5 file managers.

%files
%doc
%{_kde5_datadir}/config.kcfg/ffmpegthumbnailersettings5.kcfg
%{_kde5_datadir}/qlogging-categories5/ffmpegthumbs.categories
%{_kde5_plugindir}/thumbcreator/ffmpegthumbs.so
%{_appdatadir}/org.kde.ffmpegthumbs.metainfo.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15767 |21mr|plasma5-firewall-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-firewall

Summary:	Firewall KCM that provides users with a graphical user interface (GUI) for the ufw (Uncomplicated Firewall)
Name:		plasma5-firewall
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source5:	plasma5-firewall.rpmlintrc
Patch0:     ufw_enable.diff
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5auth-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5X11Extras)
Requires:	ufw

%description
Firewall KCM that provides users with a graphical user interface (GUI) for the ufw (Uncomplicated Firewall).

%files -f kcm_firewall.lang
%{_kde5_applicationsdir}/kcm_firewall.desktop
%{_kde5_libexecdir}/__pycache__/kde_ufw_plugin_helper.cpython-*
%{_kde5_libexecdir}/kauth/kde_ufw_plugin_helper
%{_kde5_libexecdir}/kde_ufw_plugin_helper.py
%{_kde5_libdir}/libkcm_firewall_core.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_firewall.so
%{_kde5_plugindir}/plasma_firewall/firewalldbackend.so
%{_kde5_plugindir}/plasma_firewall/ufwbackend.so
%{_kde5_datadir}/dbus-1/system-services/org.kde.ufw.service
%{_kde5_datadir}/dbus-1/system.d/org.kde.ufw.conf
%{_kde5_datadir}/kcm_ufw/defaults
%{_kde5_datadir}/kpackage/kcms/kcm_firewall/*
%{_kde5_datadir}/polkit-1/actions/org.kde.ufw.policy
%{_appdatadir}/org.kde.plasma.firewall.metainfo.xml

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
  sed -i 's|findExecutable("ss")|findExecutable("/usr/sbin/ss")|' kcm/backends/netstat/netstathelper.cpp
  sed -i 's|QStringLiteral("ss")|QStringLiteral("/usr/sbin/ss")|' kcm/backends/netstat/netstathelper.cpp

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_firewall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15768 |21mr|plasma5-integration-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-integration

Summary:	Plasma 5 workspace and cross-framework integration module
Name:		plasma5-integration
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Patch0:		plasma-integration-default-fonts.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	breeze-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	plasma-wayland-protocols-devel

%description
Plasma 5 workspace and cross-framework integration module.

#----------------------------------------------------------------------------

%package -n qt5-platformtheme-plasma5
Summary:	Plasma 5 platform theme for Qt 5
Group:		Graphical desktop/KDE
Requires:	frameworkintegration
Obsoletes:	qt5-platformtheme-kde5 < 5.23.0

%description -n qt5-platformtheme-plasma5
Plasma 5 platform theme for Qt 5.

%files -n qt5-platformtheme-plasma5 -f plasmaintegration5.lang
%{_qt5_plugindir}/platformthemes/KDEPlasmaPlatformTheme.so
%{_qt5_plugindir}/platforminputcontexts/plasmaimplatforminputcontextplugin.so
%{_kde5_includedir}/PlasmaKeyData/plasmakeydata.h
%{_kde5_libdir}/pkgconfig/plasma-key-data.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%cmake_kde5 \
	-DCMAKE_DISABLE_FIND_PACKAGE_FontNotoSans=true \
	-DCMAKE_DISABLE_FIND_PACKAGE_FontHack=true
%make

%install
%makeinstall_std -C build

%find_lang plasmaintegration5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15769 |21mr|plasma5-kamera-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kamera

Summary:	Plasma 5 Kamera ioslave
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
Conflicts:	kamera < 3:4.14.3

%description
Plasma 5 Kamera ioslave.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kcm_kamera.desktop
%{_kde5_datadir}/solid/actions/solid_camera.desktop
%{_kde5_datadir}/qlogging-categories5/kamera.categories
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kamera.so
%{_kde5_plugindir}/kio/kio_kamera.so
%{_appdatadir}/org.kde.kamera.metainfo.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} kcmkamera kio5_kamera %{oname}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15770 |21mr|plasma5-kate-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kate

Summary:	Plasma 5 advanced text editor
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/release-service/multimedia/kmix/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Source1:	org.kde.kwriteroot.desktop
Source2:	plasma5-kate.rpmlintrc
Patch0:		allow-root.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	%{name}-l10n-common = %{EVRD}
Recommends:	%{name}-plugins = %{EVRD}
Conflicts:	kate

%description
A fast and advanced text editor with nice plugins for Plasma 5.

%files
%{_kde5_applicationsdir}/org.kde.kate.desktop
%{_kde5_bindir}/kate
%{_kde5_datadir}/kconf_update/katesession_migration.upd
%{_kde5_datadir}/kconf_update/migrate_kate_sessions_applet_to_kdeplasma-addons.sh
%dir %{_kde5_datadir}/kateproject/
%{_kde5_datadir}/kateproject/kateproject.example
%dir %{_kde5_datadir}/katexmltools/
%{_kde5_datadir}/katexmltools/*
%{_kde5_iconsdir}/*/*/*/kate.*
%{_kde5_mandir}/man1/kate.1*
%{_appdatadir}/org.kde.kate.appdata.xml
%{_kde5_docdir}/*/*/kate
%{_kde5_docdir}/*/*/katepart

#----------------------------------------------------------------------------

%package -n plasma5-kwrite
Summary:	Simple text editor for Plasma 5
Group:		Graphical desktop/KDE
Requires:	%{name}-l10n-common = %{EVRD}
Recommends:	%{name}-plugins = %{EVRD}
Conflicts:	kwrite

%description -n plasma5-kwrite
KWrite is a text editor for Plasma 5, based on the Kate's editor component.
Features :
    Syntax highlighting according to the file type
    Word completion
    Auto-identation
    Plugin support
    Vi input mode

%files -n plasma5-kwrite
%{_kde5_applicationsdir}/org.kde.kwrite.desktop
%{_kde5_bindir}/kwrite
%{_kde5_iconsdir}/*/*/*/kwrite.*
%{_appdatadir}/org.kde.kwrite.appdata.xml
%{_kde5_docdir}/*/*/kwrite

#----------------------------------------------------------------------------

%package -n plasma5-kwrite-root
Summary:	Root mode for kwrite
Group:		Graphical desktop/KDE
Requires:	plasma5-kwrite = %{EVRD}

%description -n plasma5-kwrite-root
Root mode for kwrite.

%files -n plasma5-kwrite-root
%{_datadir}/applications/org.kde.kwriteroot.desktop

#----------------------------------------------------------------------------

%package -n %{name}-plugins
Summary:        Ktexteditor interfaces
Group:          Graphical desktop/KDE
Requires:	%{name}-l10n-common = %{EVRD}
Conflicts:	plasma5-kate < 23.08.0-2

%description -n %{name}-plugins
The KTextEditor interfaces - also called KTE interfaces - are a set of
well-defined interfaces which an application or library can implement to
provide advanced plain text editing services.

%files -n %{name}-plugins
%{_qt5_plugindir}/ktexteditor/externaltoolsplugin.so
%{_qt5_plugindir}/ktexteditor/eslintplugin.so
%{_qt5_plugindir}/ktexteditor/cmaketoolsplugin.so
%{_qt5_plugindir}/ktexteditor/compilerexplorer.so
%{_qt5_plugindir}/ktexteditor/formatplugin.so
%{_qt5_plugindir}/ktexteditor/katebacktracebrowserplugin.so
%{_qt5_plugindir}/ktexteditor/katebuildplugin.so
%{_qt5_plugindir}/ktexteditor/katecloseexceptplugin.so
%{_qt5_plugindir}/ktexteditor/katecolorpickerplugin.so
%{_qt5_plugindir}/ktexteditor/katectagsplugin.so
%{_qt5_plugindir}/ktexteditor/katefilebrowserplugin.so
%{_qt5_plugindir}/ktexteditor/katefiletreeplugin.so
%{_qt5_plugindir}/ktexteditor/kategdbplugin.so
%{_qt5_plugindir}/ktexteditor/kategitblameplugin.so
%{_qt5_plugindir}/ktexteditor/katekonsoleplugin.so
%{_qt5_plugindir}/ktexteditor/kateprojectplugin.so
%{_qt5_plugindir}/ktexteditor/katereplicodeplugin.so
%{_qt5_plugindir}/ktexteditor/katesearchplugin.so
%{_qt5_plugindir}/ktexteditor/katesnippetsplugin.so
%{_qt5_plugindir}/ktexteditor/katesqlplugin.so
%{_qt5_plugindir}/ktexteditor/katesymbolviewerplugin.so
%{_qt5_plugindir}/ktexteditor/latexcompletionplugin.so
%{_qt5_plugindir}/ktexteditor/katexmlcheckplugin.so
%{_qt5_plugindir}/ktexteditor/katexmltoolsplugin.so
%{_qt5_plugindir}/ktexteditor/keyboardmacrosplugin.so
%{_qt5_plugindir}/ktexteditor/ktexteditorpreviewplugin.so
%{_qt5_plugindir}/ktexteditor/tabswitcherplugin.so
%{_qt5_plugindir}/ktexteditor/textfilterplugin.so
%{_qt5_plugindir}/ktexteditor/lspclientplugin.so
%{_qt5_plugindir}/ktexteditor/openlinkplugin.so
%{_qt5_plugindir}/ktexteditor/rainbowparens.so

#------------------------------------------------------------------------------

%define kateprivate_major 23
%define libkateprivate %mklibname kateprivate %{kateprivate_major}

%package -n %{libkateprivate}
Summary:	A library for %name
Group:		System/Libraries
Conflicts:	plasma5-kate < 23.08.0-2

%description -n %{libkateprivate}
A library for %name

%files -n %{libkateprivate}
%{_kde5_libdir}/libkateprivate.so.%{kateprivate_major}*

#----------------------------------------------------------------------------

%package -n %{name}-l10n-common
Summary:	Kate Ktexteditor-plugins and Kwrite Common Translations
Group:		Documentation
BuildArch:	noarch
Conflicts:	plasma5-kate < 23.08.0-2

%description -n %{name}-l10n-common
This package provides Kate Ktexteditor-plugins and Kwrite Common Translations.

%files -n %{name}-l10n-common -f %{name}-l10n-common.lang


#------------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/org.kde.kwriteroot.desktop

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

rm -f %{name}-l10n.lang
touch %{name}-l10n.lang
for n in \
		   kate-ctags-plugin \
		   kate-replicode-plugin \
		   kate \
		   katebacktracebrowserplugin \
		   katebuild-plugin \
		   katecloseexceptplugin \
		   katecolorpickerplugin \
		   kateexternaltoolsplugin \
		   katefilebrowserplugin \
		   katefiletree \
		   kategdbplugin \
		   kategitblameplugin \
		   katekeyboardmacros \
		   katekonsoleplugin \
		   kateproject \
		   katesearch \
		   katesnippetsplugin \
		   katesql \
		   katesymbolviewer \
		   katetextfilter \
		   katexmlcheck \
		   katexmltools \
		   lspclient \
		   tabswitcherplugin \
		   ktexteditorpreviewplugin
do
		   %find_lang $n
		   cat ${n}.lang >>%{name}-l10n-common.lang
		   rm -f ${n}.lang
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15771 |21mr|plasma5-kcm-drakauth-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching DrakAuth
Name:		plasma5-kcm-drakauth
Version:	1.0
Release:	7
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_drakauth.desktop
BuildRequires:	kde5-macros
Requires:	drakxtools-curses
Requires:	urpmi
BuildArch:	noarch

%description
DrakAuth launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_drakauth.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15772 |21mr|plasma5-kcm-drakdvb-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching DrakDVB
Name:		plasma5-kcm-drakdvb
Version:	1.0
Release:	6
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_drakdvb.desktop
BuildRequires:	kde5-macros
Requires:	drakxtools
Recommends:	dvbsubs
BuildArch:	noarch

%description
DrakDVB launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_drakdvb.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15773 |21mr|plasma5-kcm-drakfirewall-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching DrakFirewall
Name:		plasma5-kcm-drakfirewall
Version:	1.0
Release:	7
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_drakfirewall.desktop
BuildRequires:	kde5-macros
Requires:	drakx-net-text
BuildArch:	noarch

%description
DrakFirewall launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_drakfirewall.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15774 |21mr|plasma5-kcm-draksec-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching DrakSec
Name:		plasma5-kcm-draksec
Version:	1.0
Release:	6
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_draksec.desktop
BuildRequires:	kde5-macros
Requires:	drakxtools
BuildArch:	noarch

%description
DrakSec launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_draksec.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15775 |21mr|plasma5-kcm-drakxservices-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching DrakXServices
Name:		plasma5-kcm-drakxservices
Version:	1.0
Release:	8
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_drakxservices.desktop
Source1:	kcm5-drakxservices.png
BuildRequires:	kde5-macros
Requires:	drakxtools-curses
BuildArch:	noarch

%description
DrakXServices launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_drakxservices.desktop
%{_kde5_iconsdir}/hicolor/48x48/apps/kcm5-drakxservices.png

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/
install -m 644 %{SOURCE1} %{buildroot}%{_kde5_iconsdir}/hicolor/48x48/apps/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15776 |21mr|plasma5-kcm-grub2-0.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname grub2-editor

Summary:	Plasma 5 control module for Grub2
Name:		plasma5-kcm-grub2
Version:	0.7.1
Release:	2
License:	GPLv2
Group:		Graphical desktop/KDE
Url:		https://github.com/maz-1/grub2-editor
Source0:	https://github.com/maz-1/grub2-editor/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Source1:	kcm-grub2.po
Patch0:		grub2-editor-0.7.0-l10n.patch
Patch1:		grub2-editor-0.7.0-null-pointer-check.patch
Patch2:		grub2-editor-0.7.0-qt5.11.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	grub2
BuildRequires:	kf5auth-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(hwinfo)
BuildRequires:	pkgconfig(MagickCore)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
Conflicts:	kcm-grub2

%description
Plasma 5 control podule for configuring the GRUB2 bootloader.
Unofficial KF5 port.

%files -f kcm-grub2.lang
%{_kde5_libexecdir}/kauth/kcmgrub2helper
%{_kde5_services}/kcm_grub2.desktop
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmgrub2.service
%{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmgrub2.conf
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmgrub2.policy
%{_qt5_plugindir}/kcm_grub2.so
%{_datadir}/kcm-grub2/config/languages

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}
cp -f %{SOURCE1} po/ru/kcm-grub2.po

%build
%cmake_kde5 \
	-DGRUB_INSTALL_EXE="%{_sbindir}/grub2-install" \
	-DGRUB_MKCONFIG_EXE="%{_sbindir}/grub2-mkconfig" \
	-DGRUB_PROBE_EXE="%{_sbindir}/grub2-probe" \
	-DGRUB_SET_DEFAULT_EXE="%{_sbindir}/grub2-set-default" \
	-DGRUB_MAKE_PASSWD_EXE="%{_bindir}/grub2-mkpasswd-pbkdf2" \
	-DGRUB_MENU="/boot/grub2/grub.cfg" \
	-DGRUB_ENV="/boot/grub2/grubenv" \
	-DGRUB_CONFIG="%{_sysconfdir}/default/grub" \
	-DGRUB_MEMTEST="%{_sysconfdir}/grub.d/20_memtest86+" \
	-DGRUB_CONFIGDIR="%{_sysconfdir}/grub.d" \
	-DGRUB_SECURITY="01_header_passwd"
%make

%install
%makeinstall_std -C build

%find_lang kcm-grub2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15777 |21mr|plasma5-kcm-harddrake-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching HardDrake
Name:		plasma5-kcm-harddrake
Version:	1.0
Release:	7
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_harddrake.desktop
BuildRequires:	kde5-macros
Requires:	harddrake-ui
Requires:	urpmi
BuildArch:	noarch

%description
HardDrake launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_harddrake.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15778 |21mr|plasma5-kcm-license-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kcm_license

Summary:	ROSA license plugin for Plasma 5 Control Centre
Name:		plasma5-kcm-license
Version:	1.0
Release:	3
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		https://abf.rosalinux.ru/uxteam/%{oname}-devel
Source0:	%{url}/archive/%{oname}-devel-%{version}.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
Conflicts:	kcm_license

%description
ROSA license plugin for Plasma 5 Control Centre.

%files -f %{oname}.lang
%{_kde5_datadir}/kcm_license/license_files/license_English.html
%{_kde5_datadir}/kcm_license/license_files/license_Russian.html
%{_kde5_services}/kcm_license.desktop
%{_qt5_plugindir}/kcm_license.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-devel-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15779 |21mr|plasma5-kcm-printer-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching system-config-printer
Name:		plasma5-kcm-printer
Version:	1.0
Release:	5
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_printer.desktop
BuildRequires:	kde5-macros
Requires:	system-config-printer
BuildArch:	noarch

%description
system-config-printer launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_printer.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15780 |21mr|plasma5-kcm-userdrake-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching UserDrake
Name:		plasma5-kcm-userdrake
Version:	1.0
Release:	5
License:	GPLv3+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru
Source0:	kcm5_userdrake.desktop
BuildRequires:	kde5-macros
Requires:	userdrake
BuildArch:	noarch

%description
UserDrake launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_userdrake.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15781 |21mr|plasma5-kcm-XFdrake-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Control Module for launching XFdrake
Name:		plasma5-kcm-XFdrake
Version:	1.0
Release:	14
License:	GPLv3+
Url:		http://rosalinux.ru
Group:		Graphical desktop/KDE
Source0:	kcm5_XFdrake.desktop
BuildRequires:	kde5-macros
Requires:	drakx-kbd-mouse-x11
BuildArch:	noarch

%description
XFdrake launcher for Plasma 5 Control Center.

%files
%{_kde5_services}/kcm5_XFdrake.desktop

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_kde5_services}
install -m 644 %{SOURCE0} %{buildroot}%{_kde5_services}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15782 |21mr|plasma5-kdeconnect-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname kdeconnect-kde

Summary:	Android integration with Plasma 5 desktop
Name:		plasma5-kdeconnect
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/base/kdeconnect-kde
Source0:	https://download.kde.org/stable/release-service/20.12.3/src/%{oname}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
Patch0:		kdeconnect-kde-soversion.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	gettext
BuildRequires:	kde5-macros
BuildRequires:	qt5-macros
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5people-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kpeoplevcard-devel
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libfakekey)
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Bluetooth)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pulseaudio-qt-devel
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	plasma-wayland-protocols-devel
Recommends:	plasma5-applet-kdeconnect
Requires:	plasma5-kio-kdeconnect
Requires:	libkcore = %{version}
Requires:	libkinterfaces = %{version}
Requires:	qca2-qt5
Requires:	qca2-qt5-plugin-openssl
Requires:	qca2-qt5-plugin-gnupg
Requires:	sshfs-fuse
Conflicts:	kdeconnect

%description
Android integration with Plasma 5 desktop.

%files -f %{oname}.lang
%{_kde5_bindir}/kdeconnect-app
%{_kde5_bindir}/kdeconnect-settings
%{_kde5_bindir}/kdeconnect-sms
%{_kde5_bindir}/kdeconnect-cli
%{_kde5_bindir}/kdeconnect-handler
%{_kde5_bindir}/kdeconnect-indicator
%{_kde5_applicationsdir}/*.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kdeconnect.*
%{_kde5_iconsdir}/hicolor/*/status/*.svg
%{_kde5_iconsdir}/hicolor/scalable/apps/kdeconnectindicator.svg
%{_kde5_iconsdir}/hicolor/scalable/apps/kdeconnectindicatordark.svg
%{_kde5_libexecdir}/kdeconnectd
%{_kde5_notificationsdir}/kdeconnect.notifyrc
%{_datadir}/dbus-1/services/org.kde.kdeconnect.service
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kdeconnect.so
%{_qt5_plugindir}/kdeconnect/kdeconnect_*.so
%{_qt5_plugindir}/kdeconnect/kcms/kdeconnect_clipboard_config.so
%{_qt5_plugindir}/kdeconnect/kcms/kdeconnect_pausemusic_config.so
%{_qt5_plugindir}/kdeconnect/kcms/kdeconnect_share_config.so
%{_qt5_plugindir}/kdeconnect/kcms/kdeconnect_runcommand_config.so
%{_qt5_plugindir}/kdeconnect/kcms/kdeconnect_sendnotifications_config.so
%{_qt5_plugindir}/kdeconnect/kcms/kdeconnect_findthisdevice_config.so
%{_qt5_plugindir}/kf5/kfileitemaction/kdeconnectfileitemaction.so
%{_kde5_docdir}/HTML/*
%{_datadir}/Thunar/sendto/kdeconnect-thunar.desktop
%{_datadir}/contractor/kdeconnect.contract
%{_datadir}/deepin/dde-file-manager/oem-menuextensions/kdeconnect-dde.desktop
%{_datadir}/zsh/site-functions/_kdeconnect
%{_kde5_datadir}/kdeconnect/kdeconnect_clipboard_config.qml
%{_kde5_datadir}/kdeconnect/kdeconnect_findthisdevice_config.qml
%{_kde5_datadir}/kdeconnect/kdeconnect_pausemusic_config.qml
%{_kde5_datadir}/kdeconnect/kdeconnect_runcommand_config.qml
%{_kde5_datadir}/kdeconnect/kdeconnect_sendnotifications_config.qml
%{_kde5_datadir}/kdeconnect/kdeconnect_share_config.qml
%{_kde5_datadir}/qlogging-categories5/kdeconnect-kde.categories
%{_appdatadir}/org.kde.kdeconnect.appdata.xml
%{_sysconfdir}/xdg/autostart/org.kde.kdeconnect.daemon.desktop

#----------------------------------------------------------------------------

%package -n plasma5-applet-kdeconnect
Summary:	Plasma 5 kdeconnect plasmoid
Group:		Graphical desktop/KDE
Requires:	%{name}

%description -n plasma5-applet-kdeconnect
Plasma 5 kdeconnect plasmoid.

%files -n plasma5-applet-kdeconnect -f plasma_applet_org.kde.kdeconnect.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.kdeconnect/
%{_kde5_datadir}/plasma/plasmoids/org.kde.kdeconnect/*
%{_kde5_services}/plasma-kdeconnect.desktop
%dir %{_kde5_qmldir}/org/kde/kdeconnect
%{_kde5_qmldir}/org/kde/kdeconnect/*
%{_appdatadir}/org.kde.kdeconnect.metainfo.xml

#----------------------------------------------------------------------------

%package -n plasma5-nautilus-kdeconnect
Summary:	Plasma 5 kdeconnect extension for nautilus
Group:		Graphical desktop/KDE
BuildArch:	noarch
Requires:	nautilus-python
Requires:	%{name} >= %{version}

%description -n plasma5-nautilus-kdeconnect
Plasma 5 kdeconnect extension for nautilus.

%files -n plasma5-nautilus-kdeconnect -f kdeconnect-nautilus-extension.lang
%{_kde5_datadir}/nautilus-python/extensions/kdeconnect-share.py
%{_kde5_datadir}/nautilus-python/extensions/__pycache__

#----------------------------------------------------------------------------

%package -n plasma5-kio-kdeconnect
Summary:	Plasma 5 kdeconnect kio slave
Group:		Graphical desktop/KDE

%description -n plasma5-kio-kdeconnect
Plasma 5 kdeconnect kio slave.

%files -n plasma5-kio-kdeconnect -f kdeconnect-kio.lang
#{_kde5_services}/kdeconnect.protocol
%{_kde5_plugindir}/kio/kdeconnect.so

#----------------------------------------------------------------------------

# Make sure to avoid 1, it's reserved for KDE4 version
%define	kcore_major 5
%define	libkcore %mklibname kkdeconnectcore %{kcore_major}

%package -n %{libkcore}
Summary:	Shared library for %{name}
Group:		System/Libraries
Provides:	libkcore = %{version}
Conflicts:	libkcore < %{version}

%description -n %{libkcore}
Shared library for %{name}.

%files -n %{libkcore}
%{_kde5_libdir}/libkdeconnectcore.so.%{kcore_major}
%{_kde5_libdir}/libkdeconnectcore.so.%{version}

#----------------------------------------------------------------------------

# Make sure to avoid 1, it's reserved for KDE4 version
%define	kinterfaces_major 5
%define	libkinterfaces %mklibname kkdeconnectinterfaces %{kinterfaces_major}

%package -n %{libkinterfaces}
Summary:	Shared library for %{name}
Group:		System/Libraries
Provides:	libkinterfaces = %{version}
Conflicts:	libkinterfaces < %{version}

%description -n %{libkinterfaces}
Shared library for %{name}.

%files -n %{libkinterfaces}
%{_kde5_libdir}/libkdeconnectinterfaces.so.%{kinterfaces_major}
%{_kde5_libdir}/libkdeconnectinterfaces.so.%{version}

#----------------------------------------------------------------------------

%define	kplugin_major 5
%define	libkplugin %mklibname kkdeconnectpluginkcm %{kplugin_major}

%package -n %{libkplugin}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libkplugin}
Shared library for %{name}.

%files -n %{libkplugin}
%{_kde5_libdir}/libkdeconnectpluginkcm.so.%{kplugin_major}
%{_kde5_libdir}/libkdeconnectpluginkcm.so.%{version}

#----------------------------------------------------------------------------


%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make


%install
%makeinstall_std -C build


# Fix perms
chmod +x %{buildroot}%{_kde5_datadir}/nautilus-python/extensions/kdeconnect-share.py
chmod -x %{buildroot}%{_kde5_applicationsdir}/org.kde.kdeconnect.*


# Install all the lang support files
%find_lang kdeconnect-cli kdeconnect-core kdeconnect-fileitemaction kdeconnect-kcm \
           kdeconnect-kded kdeconnect-plugins kdeconnect-urlhandler kdeconnect-app \
           kdeconnect-interfaces kdeconnect-settings kdeconnect-sms kdeconnect-indicator \
           %{oname}.lang

%find_lang kdeconnect-kio

%find_lang plasma_applet_org.kde.kdeconnect

%find_lang kdeconnect-nautilus-extension

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15783 |21mr|plasma5-kde-gtk-config-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kde-gtk-config

Summary:	Plasma 5 GTK2 and GTK3 configuration module
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Patch0:		fix.fonts.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	gsettings-desktop-schemas
BuildRequires:	kf5archive-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kdecoration2-devel >= %{version}
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(pango)
BuildRequires:	sassc
BuildRequires:	xsettingsd
Requires:	xsettingsd
Conflicts:	kde-gtk-config < 5.0
# Prefer plasma5 prefix for Plasma 5 core packages
Obsoletes:	kde-gtk-config-kf5 < 5.2.1-2

%description
Plasma 5 GTK2 and GTK3 configuration module.

Configuration dialog to adapt GTK applications appearance to your taste
under Plasma 5. Among its many features, it lets you:
- Choose which theme is used for GTK2 and GTK3 applications.
- Tweak some GTK applications behaviour.
- Select what icon theme to use in GTK applications.
- Select GTK applications default fonts.
- Easily browse and install new GTK2 and GTK3 themes.

%files
%{_kde5_datadir}/kconf_update/gtkconfig.upd
%{_kde5_libdir}/kconf_update_bin/gtk_theme
%{_kde5_libdir}/kconf_update_bin/remove_deprecated_gtk4_option
%{_kde5_libexecdir}/gtk3_preview
%{_kde5_plugindir}/kded/gtkconfig.so
%{_libdir}/gtk-3.0/modules/libcolorreload-gtk-module.so
%{_libdir}/gtk-3.0/modules/libwindow-decorations-gtk-module.so
%{_kde5_datadir}/kconf_update/remove_window_decorations_from_gtk_css.sh
%{_kde5_datadir}/themes/Breeze/window_decorations.css
%{_kde5_datadir}/kcm-gtk-module/preview.ui

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15784 |21mr|plasma5-kdenetwork-filesharing-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kdenetwork-filesharing

Summary:	Samba filesharing dialog for Plasma 5
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Patch10:	default_group.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	qcoro-qt5-devel
BuildRequires:	pkgconfig(packagekitqt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	samba-client
Requires:	samba-client


%description
Samba filesharing dialog for Plasma 5.

%files -f kfileshare.lang
%{_kde5_plugindir}/propertiesdialog/sambausershareplugin.so
%{_kde5_plugindir}/propertiesdialog/SambaAcl.so
%{_kde5_libexecdir}/kauth/authhelper
%{_datadir}/dbus-1/system-services/org.kde.filesharing.samba.service
%{_datadir}/dbus-1/system.d/org.kde.filesharing.samba.conf
%{_datadir}/metainfo/org.kde.kdenetwork-filesharing.metainfo.xml
%{_datadir}/polkit-1/actions/org.kde.filesharing.samba.policy

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kfileshare --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15785 |21mr|plasma5-kdepim-addons-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kdepim-addons

Summary:	Plasma 5 PIM addons module
Name:		plasma5-%{oname}
Version:	23.08.4
Release: 	1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicalendar-devel
BuildRequires:	kf5akonadinotes-devel
BuildRequires:	kf5calendarsupport-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5eventviews-devel
BuildRequires:	kf5grantleetheme-devel
BuildRequires:	kf5gravatar-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5incidenceeditor-devel
BuildRequires:	kf5grantleetheme-devel
BuildRequires:	kf5kontactinterface-devel
BuildRequires:	kf5libkdepim-devel
BuildRequires:	kf5libkleo-devel
BuildRequires:	kf5libksieve-devel
BuildRequires:	kf5mailcommon-devel
BuildRequires:	kf5messagecomposer-devel
BuildRequires:	kf5messagecore-devel
BuildRequires:	kf5messagelist-devel
BuildRequires:	kf5messageviewer-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5tnef-devel >= %{version}
BuildRequires:	kf5webengineviewer-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kitinerary-devel
BuildRequires:	KPimAddressbookImportExport-devel
BuildRequires:	kpimimportwizard-devel
BuildRequires:	kpimpkpass-devel
BuildRequires:	qgpgme-devel
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(libical)
BuildRequires:	pkgconfig(libmarkdown)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	pimcalendars-qml = %{EVRD}

%description
Plasma 5 PIM addons module.

%files -f %{name}.lang
%{_kde5_bindir}/kmail_*.sh
%{_kde5_datadir}/qlogging-categories5/kdepim-addons.categories
%{_kde5_datadir}/qlogging-categories5/kdepim-addons.renamecategories
%{_kde5_configdir}/kmail.antispamrc
%{_kde5_configdir}/kmail.antivirusrc
%{_kde5_datadir}/kconf_update/webengineurlinterceptoradblock.upd
%{_kde5_datadir}/messageviewerplugins/externalscriptexample.desktop
%{_kde5_datadir}/qtcreator/templates/kmaileditorconvertertextplugins/
%{_kde5_datadir}/qtcreator/templates/kmaileditorplugins/
%{_kde5_iconsdir}/hicolor/scalable/status/moon-phase*
%{_qt5_plugindir}/plasmacalendarplugins/*
%{_qt5_plugindir}/pim5/mailtransport/mailtransport_sendplugin.so
%{_qt5_plugindir}/pim5/contacteditor/editorpageplugins/cryptopageplugin.so
%{_qt5_plugindir}/pim5/akonadi/emailaddressselectionldapdialogplugin.so
%{_qt5_plugindir}/pim5/importwizard/*.so
%{_qt5_plugindir}/pim5/kaddressbook/*/kaddressbook_*.so
%{_qt5_plugindir}/pim5/kmail/*/kmail_*.so
%{_qt5_plugindir}/pim5/korganizer/datenums.so
%{_qt5_plugindir}/pim5/korganizer/lunarphases.so
%{_qt5_plugindir}/pim5/korganizer/picoftheday.so
%{_qt5_plugindir}/pim5/korganizer/thisdayinhistory.so
%{_qt5_plugindir}/pim5/libksieve/emaillineeditplugin.so
%{_qt5_plugindir}/pim5/libksieve/imapfoldercompletionplugin.so
%{_qt5_plugindir}/pim5/messageviewer/checkbeforedeleting/kmail_confirmbeforedeletingplugin.so
%{_qt5_plugindir}/pim5/messageviewer/*/messageviewer_*.so
%{_qt5_plugindir}/pim5/messageviewer/*/5.0/kitinerary_grantlee_extension.so
%{_qt5_plugindir}/pim5/pimcommon/*/pimcommon_*.so
%{_qt5_plugindir}/pim5/templateparser/templateparseraddressrequesterplugin.so
%{_qt5_plugindir}/pim5/webengineviewer/*/webengineviewer_*.so

#----------------------------------------------------------------------------

%define qmlpimcalendars %mklibname pimcalendars-qml

%package -n %{qmlpimcalendars}
Summary:	QML plugin for Plasma 5 PIM addons module
Group:		System/Libraries
Provides:	pimcalendars-qml = %{EVRD}

%description -n %{qmlpimcalendars}
QML plugin for Plasma 5 PIM addons module.

%files -n %{qmlpimcalendars}
%dir %{_kde5_qmldir}/org/kde/plasma/PimCalendars/
%{_kde5_qmldir}/org/kde/plasma/PimCalendars/*

#----------------------------------------------------------------------------

%define adblocklibprivate_major 5
%define libadblocklibprivate %mklibname adblocklibprivate %{adblocklibprivate_major}

%package -n %{libadblocklibprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libadblocklibprivate}
KDE PIM shared library.

%files -n %{libadblocklibprivate}
%{_kde5_libdir}/libadblocklibprivate.so.%{adblocklibprivate_major}*

#----------------------------------------------------------------------------

%define akonadidatasetools_major 5
%define libakonadidatasetools %mklibname akonadidatasetools %{akonadidatasetools_major}

%package -n %{libakonadidatasetools}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libakonadidatasetools}
KDE PIM shared library.

%files -n %{libakonadidatasetools}
%{_kde5_libdir}/libakonadidatasetools.so.%{akonadidatasetools_major}*

#----------------------------------------------------------------------------

%define dkimverifyconfigure_major 5
%define libdkimverifyconfigure %mklibname dkimverifyconfigure %{dkimverifyconfigure_major}

%package -n %{libdkimverifyconfigure}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libdkimverifyconfigure}
KDE PIM shared library.

%files -n %{libdkimverifyconfigure}
%{_kde5_libdir}/libdkimverifyconfigure.so.%{dkimverifyconfigure_major}*

#----------------------------------------------------------------------------

%define expireaccounttrashfolderconfig_major 5
%define libexpireaccounttrashfolderconfig %mklibname expireaccounttrashfolderconfig %{expireaccounttrashfolderconfig_major}

%package -n %{libexpireaccounttrashfolderconfig}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libexpireaccounttrashfolderconfig}
KDE PIM shared library.

%files -n %{libexpireaccounttrashfolderconfig}
%{_kde5_libdir}/libexpireaccounttrashfolderconfig.so.%{expireaccounttrashfolderconfig_major}*

#----------------------------------------------------------------------------


%define folderconfiguresettings_major 5
%define libfolderconfiguresettings %mklibname folderconfiguresettings %{folderconfiguresettings_major}

%package -n %{libfolderconfiguresettings}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libfolderconfiguresettings}
KDE PIM shared library.

%files -n %{libfolderconfiguresettings}
%{_kde5_libdir}/libfolderconfiguresettings.so.%{folderconfiguresettings_major}*

#----------------------------------------------------------------------------

%define kaddressbookmergelibprivate_major 5
%define libkaddressbookmergelibprivate %mklibname kaddressbookmergelibprivate %{kaddressbookmergelibprivate_major}

%package -n %{libkaddressbookmergelibprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkaddressbookmergelibprivate}
KDE PIM shared library.

%files -n %{libkaddressbookmergelibprivate}
%{_kde5_libdir}/libkaddressbookmergelibprivate.so.%{kaddressbookmergelibprivate_major}*

#----------------------------------------------------------------------------

%define kmailconfirmbeforedeleting_major 5
%define libkmailconfirmbeforedeleting %mklibname kmailconfirmbeforedeleting %{kmailconfirmbeforedeleting_major}

%package -n %{libkmailconfirmbeforedeleting}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkmailconfirmbeforedeleting}
KDE PIM shared library.

%files -n %{libkmailconfirmbeforedeleting}
%{_kde5_libdir}/libkmailconfirmbeforedeleting.so.%{kmailconfirmbeforedeleting_major}*

#----------------------------------------------------------------------------

%define kmailquicktextpluginprivate_major 5
%define libkmailquicktextpluginprivate %mklibname kmailquicktextpluginprivate %{kmailquicktextpluginprivate_major}

%package -n %{libkmailquicktextpluginprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkmailquicktextpluginprivate}
KDE PIM shared library.

%files -n %{libkmailquicktextpluginprivate}
%{_kde5_libdir}/libkmailquicktextpluginprivate.so.%{kmailquicktextpluginprivate_major}*

#----------------------------------------------------------------------------

%define openurlwithconfigure_major 5
%define libopenurlwithconfigure %mklibname openurlwithconfigure %{openurlwithconfigure_major}

%package -n %{libopenurlwithconfigure}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libopenurlwithconfigure}
KDE PIM shared library.

%files -n %{libopenurlwithconfigure}
%{_kde5_libdir}/libopenurlwithconfigure.so.%{openurlwithconfigure_major}*

#----------------------------------------------------------------------------

%define scamconfiguresettings_major 5
%define libscamconfiguresettings %mklibname scamconfiguresettings %{scamconfiguresettings_major}

%package -n %{libscamconfiguresettings}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libscamconfiguresettings}
KDE PIM shared library.

%files -n %{libscamconfiguresettings}
%{_kde5_libdir}/libscamconfiguresettings.so.%{scamconfiguresettings_major}*

#----------------------------------------------------------------------------

%define shorturlpluginprivate_major 5
%define libshorturlpluginprivate %mklibname shorturlpluginprivate %{shorturlpluginprivate_major}

%package -n %{libshorturlpluginprivate}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libshorturlpluginprivate}
KDE PIM shared library.

%files -n %{libshorturlpluginprivate}
%{_kde5_libdir}/libshorturlpluginprivate.so.%{shorturlpluginprivate_major}*

#----------------------------------------------------------------------------

%define kmailmarkdown_major 5
%define libkmailmarkdown %mklibname kmailmarkdown %{kmailmarkdown_major}

%package -n %{libkmailmarkdown}
Summary:	KDE PIM shared library
Group:		System/Libraries

%description -n %{libkmailmarkdown}
KDE PIM shared library.

%files -n %{libkmailmarkdown}
%{_kde5_libdir}/libkmailmarkdown.so.%{kmailmarkdown_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5 \
	-DKDEPIMADDONS_BUILD_EXAMPLES:BOOL=ON \
	-DBUILD_TESTING:BOOL=OFF
%make

%install
%makeinstall_std -C build

%find_lang cryptopageplugin customtoolsplugin importwizard_plugins kaddressbook_importexportplugins kaddressbook_plugins \
	kaddressbook_contacteditor kmail_editor_plugins kmail_checkbeforedeleting_plugins kmail_editorconvertertext_plugins kmail_editorinit_plugins \
	kmail_editorsendcheck_plugins kmail_editorgrammar_plugins kmail_plugins kmailtransport_plugins korganizer_plugins mailreader \
	messageviewer_application_gnupgwks_plugin messageviewer_application_mstnef_plugin  messageviewer_bodypartformatter_pkpass \
	messageviewer_text_calendar_plugin messageviewer_text_vcard_plugin messageviewer_semantic_plugin messageviewerheaderplugins \
	messageviewerplugins messageviewerconfiguresettingsplugins pimeventsplugin sieveeditor_plugins webengineurlinterceptor %{name}.lang --with-kde



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15786 |21mr|plasma5-kdepim-runtime-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kdepim-runtime

Summary:	Plasma 5 PIM runtime files
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	xsltproc
BuildRequires:	boost-devel
BuildRequires:	kf5akonadi-devel
BuildRequires:	kf5akonadicalendar-devel
BuildRequires:	kf5akonadicontact-devel
BuildRequires:	kf5akonadimime-devel
BuildRequires:	kf5akonadinotes-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5calendarutils-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5identitymanagement-devel
BuildRequires:	kf5imap-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5mailtransport-devel
BuildRequires:	kf5mbox-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5pimcommon-devel
BuildRequires:	kf5pimtextedit-devel
BuildRequires:	kf5syndication-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kpimgapi-devel
BuildRequires:	kf5dav-devel
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5NetworkAuth)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
Requires:	plasma5-akonadi
Conflicts:	akonadi-kde
Conflicts:	plasma5-kio-kdepimlibs < 16.08.2

%description
Plasma 5 PIM runtime files.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.akonadi_contacts_resource.desktop
%{_kde5_applicationsdir}/org.kde.akonadi_ews_resource.desktop
%{_kde5_applicationsdir}/org.kde.akonadi_openxchange_resource.desktop
%{_kde5_applicationsdir}/org.kde.akonadi_vcard_resource.desktop
%{_kde5_applicationsdir}/org.kde.akonadi_vcarddir_resource.desktop
%{_kde5_applicationsdir}/org.kde.akonadi_davgroupware_resource.desktop
%{_kde5_applicationsdir}/org.kde.akonadi_google_resource.desktop
%{_kde5_applicationsdir}/org.kde.akonadi_imap_resource.desktop
%{_kde5_bindir}/akonadi_akonotes_resource
%{_kde5_bindir}/akonadi_birthdays_resource
%{_kde5_bindir}/akonadi_contacts_resource
%{_kde5_bindir}/akonadi_ews_resource
%{_kde5_bindir}/akonadi_ewsmta_resource
%{_kde5_bindir}/akonadi_davgroupware_resource
%{_kde5_bindir}/akonadi_google_resource
%{_kde5_bindir}/akonadi_ical_resource
%{_kde5_bindir}/akonadi_icaldir_resource
%{_kde5_bindir}/akonadi_imap_resource
%{_kde5_bindir}/akonadi_maildir_resource
%{_kde5_bindir}/akonadi_maildispatcher_agent
%{_kde5_bindir}/akonadi_mbox_resource
%{_kde5_bindir}/akonadi_migration_agent
%{_kde5_bindir}/akonadi_mixedmaildir_resource
%{_kde5_bindir}/akonadi_newmailnotifier_agent
%{_kde5_bindir}/akonadi_notes_resource
%{_kde5_bindir}/akonadi_openxchange_resource
%{_kde5_bindir}/akonadi_pop3_resource
%{_kde5_bindir}/akonadi_tomboynotes_resource
%{_kde5_bindir}/akonadi_vcard_resource
%{_kde5_bindir}/akonadi_vcarddir_resource
%{_kde5_bindir}/gidmigrator
%{_kde5_datadir}/akonadi/accountwizard/*
%{_kde5_datadir}/akonadi/agents/*.desktop
%{_kde5_datadir}/akonadi/firstrun/*
%{_kde5_iconsdir}/hicolor/*/apps/akonadi-ews.*
%{_kde5_iconsdir}/hicolor/*/apps/ox.*
%{_kde5_notificationsdir}/akonadi_ews_resource.notifyrc
%{_kde5_notificationsdir}/akonadi_maildispatcher_agent.notifyrc
%{_kde5_notificationsdir}/akonadi_newmailnotifier_agent.notifyrc
%{_kde5_notificationsdir}/akonadi_pop3_resource.notifyrc
%{_kde5_notificationsdir}/akonadi_google_resource.notifyrc
%{_kde5_services}/akonadi/davgroupware-providers/*.desktop
%{_kde5_datadir}/qlogging-categories5/kdepim-runtime.categories
%{_kde5_datadir}/qlogging-categories5/kdepim-runtime.renamecategories
%{_datadir}/mime/packages/kdepim-mime.xml
%{_qt5_plugindir}/kf5/kio/akonadi.so
%{_qt5_plugindir}/pim5/akonadi/config
%{_qt5_plugindir}/pim5/kcms/kaddressbook/kcm_ldap.so
%{_qt5_plugindir}/pim5/mailtransport/mailtransport_akonadiplugin.so

#----------------------------------------------------------------------------

%define filestore_major 5
%define libfilestore %mklibname akonadi-filestore %{filestore_major}

%package -n %{libfilestore}
Summary:	Plasma 5 PIM runtime shared library
Group:		System/Libraries

%description -n %{libfilestore}
Plasma 5 PIM runtime shared library.

%files -n %{libfilestore}
%{_kde5_libdir}/libakonadi-filestore.so.%{filestore_major}*

#----------------------------------------------------------------------------

%define singlefileresource_major 5
%define libsinglefileresource %mklibname akonadi-singlefileresource %{singlefileresource_major}

%package -n %{libsinglefileresource}
Summary:	Plasma 5 PIM runtime shared library
Group:		System/Libraries

%description -n %{libsinglefileresource}
Plasma 5 PIM runtime shared library.

%files -n %{libsinglefileresource}
%{_kde5_libdir}/libakonadi-singlefileresource.so.%{singlefileresource_major}*

#----------------------------------------------------------------------------

%define folderarchivesettings_major 5
%define libfolderarchivesettings %mklibname folderarchivesettings %{folderarchivesettings_major}

%package -n %{libfolderarchivesettings}
Summary:	Plasma 5 PIM runtime shared library
Group:		System/Libraries

%description -n %{libfolderarchivesettings}
Plasma 5 PIM runtime shared library.

%files -n %{libfolderarchivesettings}
%{_kde5_libdir}/libfolderarchivesettings.so.%{folderarchivesettings_major}*

#----------------------------------------------------------------------------

%define kmindexreader_major 5
%define libkmindexreader %mklibname kmindexreader %{kmindexreader_major}

%package -n %{libkmindexreader}
Summary:	Plasma 5 PIM runtime shared library
Group:		System/Libraries

%description -n %{libkmindexreader}
Plasma 5 PIM runtime shared library.

%files -n %{libkmindexreader}
%{_kde5_libdir}/libkmindexreader.so.%{kmindexreader_major}*

#----------------------------------------------------------------------------

%define maildir_major 5
%define libmaildir %mklibname maildir %{maildir_major}

%package -n %{libmaildir}
Summary:	Plasma 5 PIM runtime shared library
Group:		System/Libraries

%description -n %{libmaildir}
Plasma 5 PIM runtime shared library.

%files -n %{libmaildir}
%{_kde5_libdir}/libmaildir.so.%{maildir_major}*

#----------------------------------------------------------------------------

%define devkf5kdepimruntime %mklibname kf5kdepim-runtime -d

%package -n %{devkf5kdepimruntime}
Summary:	Development files for Plasma 5 PIM library
Group:		Development/KDE and Qt
Provides:	kf5kdepim-runtime-devel = %{version}
Conflicts:	akonadi-kde

%description -n %{devkf5kdepimruntime}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5kdepimruntime}
%{_datadir}/dbus-1/interfaces/org.kde.Akonadi.Maildir.Settings.xml
%{_datadir}/dbus-1/interfaces/org.kde.Akonadi.MixedMaildir.Settings.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang accountwizard_contacts accountwizard_ews accountwizard_ical accountwizard_imap accountwizard_kolab \
	accountwizard_mailbox accountwizard_maildir accountwizard_pop3 accountwizard_vcard accountwizard_vcarddir \
	akonadi_ews_resource akonadi-filestore akonadi_birthdays_resource akonadi_contacts_resource akonadi_davgroupware_resource \
	akonadi_facebook_resource akonadi_gmail_resource akonadi_googlecalendar_resource akonadi_googlecontacts_resource \
	akonadi_ical_resource akonadi_icaldir_resource akonadi_imap_resource akonadi_invitations_agent \
	akonadi_kalarm_resource akonadi_maildir_resource akonadi_maildispatcher_agent akonadi_mbox_resource \
	akonadi_migration_agent akonadi_mixedmaildir_resource akonadi_newmailnotifier_agent \
	akonadi_openxchange_resource akonadi_pop3_resource akonadi_serializer_plugins akonadi_singlefile_resource \
	akonadi_tomboynotes_resource akonadi_vcard_resource akonadi_vcarddir_resource \
	gid-migrator kio_akonadi kio_pop3 libfolderarchivesettings pop3 akonadi_google_resource \
	akonadi_etesync_resource %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15787 |21mr|plasma5-kdeplasma-addons-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kdeplasma-addons
%bcond_without webkit

Summary:	Plasma 5 various add-ons
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source8:	plasma5-kdeplasma-addons.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kross-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5unitconversion-devel
BuildRequires:	plasma5-workspace-devel >= %{version}
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
%if %{with webkit}
BuildRequires:	pkgconfig(Qt5WebEngine)
%endif
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)
# Must have stuff
Requires:	plasma5-applet-quicklaunch
Requires:	plasma5-desktopswitcher-previews
Requires:	plasma5-windowswitcher-big_icons
Requires:	plasma5-windowswitcher-compact
Requires:	plasma5-windowswitcher-coverswitch
Requires:	plasma5-windowswitcher-flipswitch
Requires:	plasma5-windowswitcher-informative
Requires:	plasma5-windowswitcher-present_windows
Requires:	plasma5-windowswitcher-small_icons
Requires:	plasma5-windowswitcher-text
Requires:	plasma5-windowswitcher-thumbnail_grid
Requires:	plasma5-windowswitcher-thumbnails
# Optional stuff
Recommends:	plasma5-applet-binaryclock
Recommends:	plasma5-applet-calculator
Recommends:	plasma5-applet-colorpicker
Recommends:	plasma5-applet-comic
Recommends:	plasma5-applet-dict
Recommends:	plasma5-applet-diskquota
Recommends:	plasma5-applet-fifteenpuzzle
Recommends:	plasma5-applet-fuzzyclock
Recommends:	plasma5-applet-grouping
Recommends:	plasma5-applet-keyboardindicator
Recommends:	plasma5-applet-kickerdash
Recommends:	plasma5-applet-konsoleprofiles
Recommends:	plasma5-applet-mediaframe
Recommends:	plasma5-applet-nightcolorcontrol
Recommends:	plasma5-applet-notes
Recommends:	plasma5-applet-quickshare
Recommends:	plasma5-applet-systemloadviewer
Recommends:	plasma5-applet-timer/
Recommends:	plasma5-applet-userswitcher
Recommends:	plasma5-applet-weather
Recommends:	plasma5-applet-webbrowser
Recommends:	plasma5-calendar-astronomicalevents
# Not used by any plasmoid yet, they need porting
Recommends:	plasma5-runner-character
Recommends:	plasma5-runner-converter
Recommends:	plasma5-runner-datetime
Recommends:	plasma5-runner-dictionary
Recommends:	plasma5-runner-katesessions
Recommends:	plasma5-runner-spellchecker
# Prefer plasma5 prefix for Plasma 5 core packages
Obsoletes:	kdeplasma-addons-kf5 < 5.2.1-2
# Removed in 5.26
Obsoletes:	plasma5-applet-activitypager < 5.27.4
Obsoletes:	plasma5-dataengine-konsoleprofiles < 5.27.4

%description
Plasma 5 various add-ons.

%files

#----------------------------------------------------------------------------

%package -n plasma5-applet-binaryclock
Summary:	Plasma 5 binaryclock plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-binaryclock
Plasma 5 fuzzyclock plasmoid.

%files -n plasma5-applet-binaryclock -f plasma_applet_org.kde.plasma.binaryclock.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.binaryclock/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.binaryclock/*
%{_appdatadir}/org.kde.plasma.binaryclock.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-calculator
Summary:	Plasma 5 calculator plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-calculator
Plasma 5 calculator plasmoid.

%files -n plasma5-applet-calculator -f plasma_applet_org.kde.plasma.calculator.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.calculator/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.calculator/*
%{_appdatadir}/org.kde.plasma.calculator.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-colorpicker
Summary:	Plasma 5 color picker plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-colorpicker
Plasma 5 color picker plasmoid.

%files -n plasma5-applet-colorpicker -f plasma_applet_org.kde.plasma.colorpicker.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.colorpicker/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.colorpicker/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/colorpicker/
%{_kde5_qmldir}/org/kde/plasma/private/colorpicker/*
%{_appdatadir}/org.kde.plasma.colorpicker.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-comic
Summary:	Plasma 5 comic plasmoid
Group:		Graphical desktop/KDE
Requires:	plasma5-dataengine-comic

%description -n plasma5-applet-comic
Plasma 5 comic plasmoid.

%files -n plasma5-applet-comic -f plasma_applet_org.kde.plasma.comic.lang
%{_kde5_datadir}/knsrcfiles/comic.knsrc
%{_kde5_datadir}/qlogging-categories5/plasma_comic.categories
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.comic/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.comic/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.comic.so
%{_appdatadir}/org.kde.plasma.comic.appdata.xml


#----------------------------------------------------------------------------

%package -n plasma5-applet-diskquota
Summary:	Plasma 5 disk quota plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-diskquota
Plasma 5 disk quota plasmoid.

%files -n plasma5-applet-diskquota -f plasma_applet_org.kde.plasma.diskquota.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.diskquota/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.diskquota/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/diskquota/
%{_kde5_qmldir}/org/kde/plasma/private/diskquota/*
%{_appdatadir}/org.kde.plasma.diskquota.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-fifteenpuzzle
Summary:	Plasma 5 fifteenpuzzle plasmoid
Group:		Graphical desktop/KDE
# Icon conflict
Conflicts:	plasma-applet-fifteenpuzzle

%description -n plasma5-applet-fifteenpuzzle
Plasma 5 fifteenpuzzle plasmoid.

%files -n plasma5-applet-fifteenpuzzle -f plasma_applet_org.kde.plasma.fifteenpuzzle.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.fifteenpuzzle/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.fifteenpuzzle/*
%{_kde5_iconsdir}/hicolor/scalable/apps/fifteenpuzzle.svgz
%dir %{_kde5_qmldir}/org/kde/plasma/private/fifteenpuzzle/
%{_kde5_qmldir}/org/kde/plasma/private/fifteenpuzzle/*
%{_appdatadir}/org.kde.plasma.fifteenpuzzle.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-fuzzyclock
Summary:	Plasma 5 fuzzyclock plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-fuzzyclock
Plasma 5 fuzzyclock plasmoid.

%files -n plasma5-applet-fuzzyclock -f plasma_applet_org.kde.plasma.fuzzyclock.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.fuzzyclock/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.fuzzyclock/*
%{_appdatadir}/org.kde.plasma.fuzzyclock.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-grouping
Summary:	Plasma 5 grouping plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-grouping
Plasma 5 grouping plasmoid.

It's somewhat similar to the system tray internally, it creates a containment
then has a thin wrapper to display plasmoids in a tab. Plasmoids will display
their compact/full representation depending on the size of the tab, if
compacted, the full representation will appear as a dialog just outside the
tab area.

%files -n plasma5-applet-grouping -f plasma_applet_org.kde.plasma.grouping.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.grouping/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.grouping/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.private.grouping/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.private.grouping/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.grouping.so
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.private.grouping.so
%{_appdatadir}/org.kde.plasma.grouping.appdata.xml
#{_appdatadir}/org.kde.plasma.private.grouping.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-keyboardindicator
Summary:	Plasma 5 keyboard indicator plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-keyboardindicator
Plasma 5 keyboard indicator plasmoid.

%files -n plasma5-applet-keyboardindicator -f plasma_applet_org.kde.plasma.keyboardindicator.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.keyboardindicator
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.keyboardindicator/*
%{_appdatadir}/org.kde.plasma.keyboardindicator.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-kickerdash
Summary:	Plasma 5 Kicker Dash plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-kickerdash
Plasma 5 Kicker Dash plasmoid.

%files -n plasma5-applet-kickerdash
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kickerdash/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.kickerdash/*
%{_appdatadir}/org.kde.plasma.kickerdash.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-konsoleprofiles
Summary:	Plasma 5 Konsole profiles plasmoid
Group:		Graphical desktop/KDE
Requires:	plasma5-runner-konsoleprofiles

%description -n plasma5-applet-konsoleprofiles
Plasma 5 Konsole profiles plasmoid.

%files -n plasma5-applet-konsoleprofiles -f plasma_applet_org.kde.plasma.konsoleprofiles.lang -f plasma_addons_profiles_utility.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.konsoleprofiles/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.konsoleprofiles/*
%{_appdatadir}/org.kde.plasma.konsoleprofiles.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-mediaframe
Summary:	Plasma 5 mediaframe plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-mediaframe
Plasma 5 mediaframe plasmoid.

%files -n plasma5-applet-mediaframe -f plasma_applet_org.kde.plasma.mediaframe.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.mediaframe/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.mediaframe/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/mediaframe/
%{_kde5_qmldir}/org/kde/plasma/private/mediaframe/*
%{_appdatadir}/org.kde.plasma.mediaframe.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-nightcolorcontrol
Summary:	Plasma 5 nightcolorcontrol plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-nightcolorcontrol
Plasma 5 Night Color controlling plasmoid.

%files -n plasma5-applet-nightcolorcontrol -f plasma_applet_org.kde.plasma.nightcolorcontrol.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.nightcolorcontrol/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.nightcolorcontrol/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/nightcolorcontrol/
%{_kde5_qmldir}/org/kde/plasma/private/nightcolorcontrol/*
%{_appdatadir}/org.kde.plasma.nightcolorcontrol.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-notes
Summary:	Plasma 5 notes plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-notes
Plasma 5 notes plasmoid.

%files -n plasma5-applet-notes -f plasma_applet_org.kde.plasma.notes.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.notes/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.notes/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/notes/
%{_kde5_qmldir}/org/kde/plasma/private/notes/*
%{_appdatadir}/org.kde.plasma.notes.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-quicklaunch
Summary:	Plasma 5 quicklaunch plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-quicklaunch
Plasma 5 quicklaunch plasmoid.

%files -n plasma5-applet-quicklaunch -f plasma_applet_org.kde.plasma.quicklaunch.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.quicklaunch/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.quicklaunch/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/quicklaunch/
%{_kde5_qmldir}/org/kde/plasma/private/quicklaunch/*
%{_appdatadir}/org.kde.plasma.quicklaunch.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-quickshare
Summary:	Plasma 5 quickshare plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-quickshare
Plasma 5 quickshare plasmoid.

%files -n plasma5-applet-quickshare -f plasma_applet_org.kde.plasma.quickshare.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.quickshare/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.quickshare/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/purpose/
%{_kde5_qmldir}/org/kde/plasma/private/purpose/*
%{_appdatadir}/org.kde.plasma.quickshare.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-timer
Summary:	Plasma 5 timer plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-timer
Plasma 5 timer plasmoid.

%files -n plasma5-applet-timer -f plasma_applet_org.kde.plasma.timer.lang
%{_kde5_datadir}/plasma/desktoptheme/default/widgets/timer.*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.timer/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.timer/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/timer/
%{_kde5_qmldir}/org/kde/plasma/private/timer/*
%{_appdatadir}/org.kde.plasma.timer.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-userswitcher
Summary:	Plasma 5 users witcher plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-userswitcher
Plasma 5 user switcher plasmoid.

%files -n plasma5-applet-userswitcher -f plasma_applet_org.kde.plasma.userswitcher.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.userswitcher/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.userswitcher/*
%{_appdatadir}/org.kde.plasma.userswitcher.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-weather
Summary:	Plasma 5 weather plasmoid
Group:		Graphical desktop/KDE
Obsoletes:	%{_lib}plasmaweather5 < 5.14.4

%description -n plasma5-applet-weather
Plasma 5 weather plasmoid.

%files -n plasma5-applet-weather -f plasma_applet_org.kde.plasma.weather.lang
%{_kde5_datadir}/plasma/desktoptheme/default/weather/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.weather/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.weather/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/weather/
%{_kde5_qmldir}/org/kde/plasma/private/weather/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.weather.so
%{_appdatadir}/org.kde.plasma.weather.appdata.xml
%{_kde5_qmldir}/org/kde/plasma/private/profiles/libprofiles_qml_plugin.so
%{_kde5_qmldir}/org/kde/plasma/private/profiles/qmldir

#----------------------------------------------------------------------------
%package -n plasma5-applet-webbrowser
Summary:	Plasma 5 webbrowser plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-webbrowser
Plasma 5 webbrowser plasmoid.

%files -n plasma5-applet-webbrowser -f plasma_applet_org.kde.plasma.webbrowser.lang
%if %{with webkit}
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.webbrowser/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.webbrowser/*
%{_appdatadir}/org.kde.plasma.webbrowser.appdata.xml
%endif

#----------------------------------------------------------------------------

%package -n plasma5-applet-dict
Summary:	Plasma 5 dictionary plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-dict
Plasma 5 dictionary plasmoid.

%files -n plasma5-applet-dict -f plasma_applet_org.kde.plasma_applet_dict.lang -f plasma_addons_engine_dict.lang
%if %{with webkit}
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma_applet_dict/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma_applet_dict/*
%{_kde5_iconsdir}/*/scalable/apps/accessories-dictionary.*
%dir %{_kde5_qmldir}/org/kde/plasma/private/dict/
%{_kde5_qmldir}/org/kde/plasma/private/dict/*
%{_appdatadir}/org.kde.plasma_applet_dict.appdata.xml
%endif

#----------------------------------------------------------------------------

%package -n plasma5-calendar-astronomicalevents
Summary:	Plasma 5 astronomical events calendar plugin
Group:		Graphical desktop/KDE

%description -n plasma5-calendar-astronomicalevents
Plasma 5 astronomical events calendar plugin.

%files -n plasma5-calendar-astronomicalevents -f plasma_calendar_astronomicalevents.lang -f plasma_calendar_alternatecalendar.lang
%dir %{_kde5_qmldir}/org/kde/plasmacalendar/astronomicaleventsconfig/
%{_kde5_qmldir}/org/kde/plasmacalendar/astronomicaleventsconfig/*
%{_qt5_plugindir}/plasmacalendarplugins/astronomicalevents/AstronomicalEventsConfig.qml
%{_qt5_plugindir}/plasmacalendarplugins/astronomicalevents.so
%{_qt5_plugindir}/plasmacalendarplugins/alternatecalendar.so
%{_qt5_plugindir}/plasmacalendarplugins/alternatecalendar/AlternateCalendarConfig.qml
%{_kde5_qmldir}/org/kde/plasmacalendar/alternatecalendarconfig/libplasmacalendaralternatecalendarconfig.so
%{_kde5_qmldir}/org/kde/plasmacalendar/alternatecalendarconfig/qmldir

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-comic
Summary:	Plasma 5 comic dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-comic
Plasma 5 comic dataengine.

%files -n plasma5-dataengine-comic -f plasma_packagestructure_comic.lang
%{_qt5_plugindir}/kpackage/packagestructure/plasma_comic.so
%{_kde5_servicetypes}/plasma-comic.desktop

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-potd
Summary:	Plasma 5 Picture Of The Day dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-potd
Plasma 5 Picture Of The Day dataengine.

%files -n plasma5-dataengine-potd
%{_qt5_plugindir}/potd/plasma_potd_*provider.so
%{_kde5_qmldir}/org/kde/plasma/wallpapers/potd/libplasma_wallpaper_potdplugin.so
%{_kde5_qmldir}/org/kde/plasma/wallpapers/potd/qmldir

#----------------------------------------------------------------------------

%package -n plasma5-desktopswitcher-previews
Summary:	Plasma 5 previews desktop switcher
Group:		Graphical desktop/KDE

%description -n plasma5-desktopswitcher-previews
Plasma 5 previews desktop switcher.

%files -n plasma5-desktopswitcher-previews
%dir %{_kde5_datadir}/kwin/desktoptabbox/previews/
%{_kde5_datadir}/kwin/desktoptabbox/previews/*

#----------------------------------------------------------------------------

%package -n plasma5-runner-character
Summary:	Plasma 5 character runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-character
Plasma 5 character runner.

%files -n plasma5-runner-character -f plasma_runner_CharacterRunner.lang
%{_kde5_plugindir}/krunner/krunner_charrunner.so
%{_kde5_plugindir}/krunner/kcms/kcm_krunner_charrunner.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-converter
Summary:	Plasma 5 unit converter runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-converter
Plasma 5 unit converter runner.

%files -n plasma5-runner-converter -f plasma_runner_converterrunner.lang
%{_qt5_plugindir}/kf5/krunner/unitconverter.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-datetime
Summary:	Plasma 5 date and time runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-datetime
Plasma 5 date and time runner.

%files -n plasma5-runner-datetime -f plasma_runner_datetime.lang
%{_kde5_plugindir}/krunner/org.kde.datetime.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-dictionary
Summary:	Plasma 5 dictionary runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-dictionary
Plasma 5 dictionary runner.

%files -n plasma5-runner-dictionary -f plasma_runner_krunner_dictionary.lang
%{_kde5_plugindir}/krunner/krunner_dictionary.so
%{_kde5_plugindir}/krunner/kcms/kcm_krunner_dictionary.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-katesessions
Summary:	Plasma 5 katesessions runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-katesessions
Plasma 5 katesessions runner.

%files -n plasma5-runner-katesessions -f plasma_runner_katesessions.lang  -f plasma_applet_org.kde.plasma.addons.katesessions.lang
%{_qt5_plugindir}/kf5/krunner/krunner_katesessions.so
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.addons.katesessions/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.addons.katesessions/*
%{_appdatadir}/org.kde.plasma.addons.katesessions.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-runner-konsoleprofiles
Summary:	Plasma 5 konsoleprofiles runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-konsoleprofiles
Plasma 5 konsoleprofiles runner.

%files -n plasma5-runner-konsoleprofiles -f plasma_runner_konsoleprofiles.lang
%{_qt5_plugindir}/kf5/krunner/krunner_konsoleprofiles.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-spellchecker
Summary:	Plasma 5 spell checker runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-spellchecker
Plasma 5 spell checker runner.

%files -n plasma5-runner-spellchecker -f plasma_runner_spellcheckrunner.lang
%{_kde5_plugindir}/krunner/krunner_spellcheck.so
%{_kde5_plugindir}/krunner/kcms/kcm_krunner_spellcheck.so

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-haenau
Summary:	Plasma 5 haenau wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-haenau
Plasma 5 haenau wallpaper.

%files -n plasma5-wallpaper-haenau
%{_kde5_datadir}/plasma/wallpapers/org.kde.haenau
%{_appdatadir}/org.kde.haenau.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-hunyango
Summary:	Plasma 5 hunyango wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-hunyango
Plasma 5 hunyango wallpaper.

%files -n plasma5-wallpaper-hunyango
%{_kde5_datadir}/plasma/wallpapers/org.kde.hunyango
%{_appdatadir}/org.kde.hunyango.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-potd
Summary:	Plasma 5 Picture Of The Day wallpaper
Group:		Graphical desktop/KDE
Requires:	plasma5-dataengine-potd

%description -n plasma5-wallpaper-potd
Plasma 5 Picture Of The Day wallpaper.

%files -n plasma5-wallpaper-potd -f plasma_wallpaper_org.kde.potd.lang
%{_kde5_datadir}/plasma/wallpapers/org.kde.potd
%{_appdatadir}/org.kde.potd.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-big_icons
Summary:	Plasma 5 big icons window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-big_icons
Plasma 5 big icons window switcher.

%files -n plasma5-windowswitcher-big_icons
%dir %{_kde5_datadir}/kwin/tabbox/big_icons/
%{_kde5_datadir}/kwin/tabbox/big_icons/*

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-compact
Summary:	Plasma 5 compact window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-compact
Plasma 5 compact window switcher.

%files -n plasma5-windowswitcher-compact
%dir %{_kde5_datadir}/kwin/tabbox/compact/
%{_kde5_datadir}/kwin/tabbox/compact/*

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-coverswitch
Summary:	Plasma 5 coverswitch window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-coverswitch
Plasma 5 coverswitch window switcher.

%files -n plasma5-windowswitcher-coverswitch
%dir %{_kde5_datadir}/kwin/tabbox/coverswitch/
%{_kde5_datadir}/kwin/tabbox/coverswitch/*

#----------------------------------------------------------------------------
%package -n plasma5-windowswitcher-flipswitch
Summary:	Plasma 5 flipswitch window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-flipswitch
Plasma 5 flipswitch window switcher.

%files -n plasma5-windowswitcher-flipswitch
%dir %{_kde5_datadir}/kwin/tabbox/flipswitch/
%{_kde5_datadir}/kwin/tabbox/flipswitch/*

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-informative
Summary:	Plasma 5 informative window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-informative
Plasma 5 informative window switcher.

%files -n plasma5-windowswitcher-informative
%dir %{_kde5_datadir}/kwin/tabbox/informative/
%{_kde5_datadir}/kwin/tabbox/informative/*

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-present_windows
Summary:	Plasma 5 present windows window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-present_windows
Plasma 5 present windows window switcher.

%files -n plasma5-windowswitcher-present_windows
%dir %{_kde5_datadir}/kwin/tabbox/present_windows/
%{_kde5_datadir}/kwin/tabbox/present_windows/*

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-small_icons
Summary:	Plasma 5 small icons window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-small_icons
Plasma 5 small icons window switcher.

%files -n plasma5-windowswitcher-small_icons
%dir %{_kde5_datadir}/kwin/tabbox/small_icons/
%{_kde5_datadir}/kwin/tabbox/small_icons/*

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-text
Summary:	Plasma 5 text window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-text
Plasma 5 text window switcher.

%files -n plasma5-windowswitcher-text
%dir %{_kde5_datadir}/kwin/tabbox/text/
%{_kde5_datadir}/kwin/tabbox/text/*

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-thumbnail_grid
Summary:	Plasma 5 thumbnail grid switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-thumbnail_grid
Plasma 5 window switcher layout using a small grid of thumbnails.

%files -n plasma5-windowswitcher-thumbnail_grid
%dir %{_kde5_datadir}/kwin/tabbox/thumbnail_grid/
%{_kde5_datadir}/kwin/tabbox/thumbnail_grid/*

#----------------------------------------------------------------------------

%package -n plasma5-windowswitcher-thumbnails
Summary:	Plasma 5 thumbnails window switcher
Group:		Graphical desktop/KDE

%description -n plasma5-windowswitcher-thumbnails
Plasma 5 thumbnails window switcher.

%files -n plasma5-windowswitcher-thumbnails
%dir %{_kde5_datadir}/kwin/tabbox/thumbnails/
%{_kde5_datadir}/kwin/tabbox/thumbnails/*

#----------------------------------------------------------------------------

%define plasmapotdprovidercore_major 1
%define libplasmapotdprovidercore %mklibname plasmapotdprovidercore %{plasmapotdprovidercore_major}

%package -n %{libplasmapotdprovidercore}
Summary:	Plasma 5 Picture Of The Day dataengine shared library
Group:		System/Libraries

%description -n %{libplasmapotdprovidercore}
Plasma 5 Picture Of The Day dataengine shared library.

%files -n %{libplasmapotdprovidercore}
%{_kde5_libdir}/libplasmapotdprovidercore.so.%{plasmapotdprovidercore_major}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# (tpg) not needed
rm -rf	%{buildroot}%{_kde5_libdir}/libplasmapotdprovidercore.so \
	%{buildroot}%{_includedir} \
	%{buildroot}%{_kde5_libdir}/cmake/PlasmaPotdProvider \
	%{buildroot}%{_datadir}/kdevappwizard/templates/plasmapotdprovider.tar.bz2
%find_lang plasma_addons_engine_dict
%find_lang plasma_addons_profiles_utility
%find_lang plasma_applet_org.kde.plasma.binaryclock
%find_lang plasma_applet_org.kde.plasma.calculator
%find_lang plasma_applet_org.kde.plasma.colorpicker
%find_lang plasma_applet_org.kde.plasma.comic
%find_lang plasma_applet_org.kde.plasma.diskquota
%find_lang plasma_applet_org.kde.plasma.fifteenpuzzle
%find_lang plasma_applet_org.kde.plasma.fuzzyclock
%find_lang plasma_applet_org.kde.plasma.private.grouping plasma_applet_org.kde.plasma.grouping.lang
%find_lang plasma_applet_org.kde.plasma.addons.katesessions
%find_lang plasma_applet_org.kde.plasma.keyboardindicator
%find_lang plasma_applet_org.kde.plasma.konsoleprofiles
%find_lang plasma_applet_org.kde.plasma.mediaframe
%find_lang plasma_applet_org.kde.plasma.nightcolorcontrol
%find_lang plasma_applet_org.kde.plasma.notes
%find_lang plasma_applet_org.kde.plasma.quicklaunch
%find_lang plasma_applet_org.kde.plasma.quickshare
%find_lang plasma_applet_org.kde.plasma.timer
%find_lang plasma_applet_org.kde.plasma.userswitcher
%find_lang plasma_applet_org.kde.plasma.webbrowser
%find_lang plasma_applet_org.kde.plasma_applet_dict
%find_lang plasma_applet_org.kde.plasma.weather plasma_applet_org.kde.plasma.weather.lang
%find_lang plasma_calendar_alternatecalendar
%find_lang plasma_calendar_astronomicalevents
%find_lang plasma_packagestructure_comic
%find_lang plasma_runner_konsoleprofiles
%find_lang plasma_runner_CharacterRunner
%find_lang plasma_runner_converterrunner
%find_lang plasma_runner_datetime
%find_lang plasma_runner_krunner_dictionary
%find_lang plasma_runner_katesessions
%find_lang plasma_runner_spellcheckrunner
%find_lang plasma_wallpaper_org.kde.potd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15788 |21mr|plasma5-kfilemetadata-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# CMake files check for Qt 6.x already, but it's not used yet,
# so let's not make it a hard dependency
%global __requires_exclude ^.*qt6.*$

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

%define fw_version %(echo %{version} | cut -d. -f1,2)
%define oname kfilemetadata

Summary:	Plasma 5 file metadata and text extraction library
Name:		plasma5-%{oname}
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{oname}-%{version}.tar.xz
# It doesn't really need 1.11.1, it needs 1.11+
Patch0:		kfilemetadata-5.75.0-taglib-version.patch
Patch1:		search-non-utf-content.patch
Patch2:		rtf-extractor.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	attr-devel
BuildRequires:	ebook-tools-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	kf5archive-devel = %{version}
BuildRequires:	kf5codecs-devel = %{version}
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	libappimage-static-devel
Recommends:	catdoc
# Prefer plasma5 prefix for Plasma 5 core packages
Obsoletes:	kfilemetadata-kf5 < 5.6.1-2

%description
Plasma 5 file metadata and text extraction library.

KFileMetaData provides a simple library for extracting the text and metadata
from a number of different files. This library is typically used by file
indexers to retreive the metadata.

%files
%{_kde5_datadir}/qlogging-categories5/kfilemetadata.categories
%{_kde5_datadir}/qlogging-categories5/kfilemetadata.renamecategories
%{_kde5_plugindir}/kfilemetadata/kfilemetadata_*.so
%{_kde5_plugindir}/kfilemetadata/writers/kfilemetadata_taglibwriter.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KFileMetaData translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KFileMetaData translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5filemetadata_major 3
%define libkf5filemetadata %mklibname kf5filemetadata %{kf5filemetadata_major}

%package -n %{libkf5filemetadata}
Summary:	Plasma 5 file metadata and text extraction shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5filemetadata}
Plasma 5 file metadata and text extraction shared library.

%files -n %{libkf5filemetadata}
%{_kde5_libdir}/libKF5FileMetaData.so.%{kf5filemetadata_major}*
%{_kde5_libdir}/libKF5FileMetaData.so.%{version}*

#----------------------------------------------------------------------------

%define devkf5filemetadata %mklibname kf5filemetadata -d

%package -n %{devkf5filemetadata}
Summary:	Development files for Plasma 5 file metadata and text extraction library
Group:		Development/KDE and Qt
Requires:	%{libkf5filemetadata} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5filemetadata-devel = %{version}

%description -n %{devkf5filemetadata}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5filemetadata}
%{_kde5_mkspecsdir}/qt_KFileMetaData.pri
%{_kde5_includedir}/KF5/KFileMetaData
%{_kde5_libdir}/cmake/KF5FileMetaData
%{_kde5_libdir}/libKF5FileMetaData.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15789 |21mr|plasma5-kfilemetadata-5.92.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)
%define oname kfilemetadata

Summary:	Plasma 5 file metadata and text extraction library
Name:		plasma5-%{oname}
Version:	5.92.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{oname}-%{version}.tar.xz
# It doesn't really need 1.11.1, it needs 1.11+
Patch0:		kfilemetadata-5.75.0-taglib-version.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	attr-devel
BuildRequires:	ebook-tools-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	kf5archive-devel >= %{version}
BuildRequires:	kf5config-devel >= %{version}
BuildRequires:	kf5coreaddons-devel >= %{version}
BuildRequires:	kf5i18n-devel >= %{version}
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	libappimage-static-devel
Recommends:	catdoc
# Prefer plasma5 prefix for Plasma 5 core packages
Obsoletes:	kfilemetadata-kf5 < 5.6.1-2

%description
Plasma 5 file metadata and text extraction library.

KFileMetaData provides a simple library for extracting the text and metadata
from a number of different files. This library is typically used by file
indexers to retreive the metadata.

%files
%{_kde5_datadir}/qlogging-categories5/kfilemetadata.categories
%{_kde5_datadir}/qlogging-categories5/kfilemetadata.renamecategories
%{_kde5_plugindir}/kfilemetadata/kfilemetadata_*.so
%{_kde5_plugindir}/kfilemetadata/writers/kfilemetadata_taglibwriter.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KFileMetaData translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KFileMetaData translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define kf5filemetadata_major 3
%define libkf5filemetadata %mklibname kf5filemetadata %{kf5filemetadata_major}

%package -n %{libkf5filemetadata}
Summary:	Plasma 5 file metadata and text extraction shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5filemetadata}
Plasma 5 file metadata and text extraction shared library.

%files -n %{libkf5filemetadata}
%{_kde5_libdir}/libKF5FileMetaData.so.%{kf5filemetadata_major}*
%{_kde5_libdir}/libKF5FileMetaData.so.%{version}*

#----------------------------------------------------------------------------

%define devkf5filemetadata %mklibname kf5filemetadata -d

%package -n %{devkf5filemetadata}
Summary:	Development files for Plasma 5 file metadata and text extraction library
Group:		Development/KDE and Qt
Requires:	%{libkf5filemetadata} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5filemetadata-devel = %{version}

%description -n %{devkf5filemetadata}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5filemetadata}
%{_kde5_mkspecsdir}/qt_KFileMetaData.pri
%{_kde5_includedir}/KF5/KFileMetaData
%{_kde5_libdir}/cmake/KF5FileMetaData
%{_kde5_libdir}/libKF5FileMetaData.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15790 |21mr|plasma5-kgamma-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kgamma

Summary:	Plasma 5 monitor calibration module
Name:		plasma5-kgamma
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xxf86vm)

%description
Plasma 5 monitor calibration module.

%files -f %{name}.lang
%dir %{_kde5_datadir}/kgamma/
%{_kde5_datadir}/kgamma/pics/*.png
%{_qt5_plugindir}/plasma/kcminit/kcm_kgamma_init.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kgamma.so
%{_kde5_docdir}/HTML/*/kcontrol/kgamma5/

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcmkgamma %{name}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15791 |21mr|plasma5-kget-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kget

Summary:	Versatile and user-friendly download manager for Plasma 5
Name:		plasma5-kget
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	gmp-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	libktorrent-devel >= 2.1
BuildRequires:	plasma5-workspace-devel
BuildRequires:	qgpgme-devel
BuildRequires:	pkgconfig(libmms)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Conflicts:	kget

%description
KGet is a versatile and user-friendly download manager.
Features:
- Downloading files from FTP and HTTP(S) sources.
- Pausing and resuming of downloading files, as well as the ability
  to restart   a download.
- Tells lots of information about current and pending downloads.
- Embedding into system tray.
- Integration with the Konqueror web browser.
- Metalink support which contains multiple URLs for downloads, along
  with checksums and other information.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/org.kde.kget.desktop
%{_kde5_bindir}/kget
%{_kde5_datadir}/config.kcfg/kget.kcfg
%{_kde5_datadir}/config.kcfg/kget_checksumsearchfactory.kcfg
%{_kde5_datadir}/config.kcfg/kget_mirrorsearchfactory.kcfg
%{_kde5_datadir}/config.kcfg/kget_mmsfactory.kcfg
%{_kde5_datadir}/config.kcfg/kget_multisegkiofactory.kcfg
%{_kde5_datadir}/kget/pics/kget_splash.png
%{_kde5_datadir}/qlogging-categories5/kget.categories
%{_kde5_datadir}/kio/servicemenus/kget_download.desktop
%{_kde5_iconsdir}/*/*/apps/kget.*
%{_kde5_notificationsdir}/kget.notifyrc
%{_kde5_servicetypes}/kget_plugin.desktop
%{_kde5_xmlguidir}/kget/kgetui.rc
%{_appdatadir}/org.kde.kget.appdata.xml
%{_datadir}/dbus-1/services/org.kde.kget.service
%{_qt5_plugindir}/kget_kcms/kcm_kget_bittorrentfactory.so
%{_qt5_plugindir}/kget_kcms/kcm_kget_checksumsearchfactory.so
%{_qt5_plugindir}/kget_kcms/kcm_kget_metalinkfactory.so
%{_qt5_plugindir}/kget_kcms/kcm_kget_mirrorsearchfactory.so
%{_qt5_plugindir}/kget_kcms/kcm_kget_mmsfactory.so
%{_qt5_plugindir}/kget_kcms/kcm_kget_multisegkiofactory.so
%{_qt5_plugindir}/kget/kget_bittorrent.so
%{_qt5_plugindir}/kget/kget_checksumsearchfactory.so
%{_qt5_plugindir}/kget/kget_kio.so
%{_qt5_plugindir}/kget/kget_metalinkfactory.so
%{_qt5_plugindir}/kget/kget_mirrorsearchfactory.so
%{_qt5_plugindir}/kget/kget_mmsfactory.so
%{_qt5_plugindir}/kget/kget_multisegkiofactory.so

#----------------------------------------------------------------------------

%define kgetcore_major 5
%define libkgetcore %mklibname kgetcore %{kgetcore_major}

%package -n %{libkgetcore}
Summary:	Shared library for KGet
Group:		System/Libraries

%description -n %{libkgetcore}
Shared library for KGet.

%files -n %{libkgetcore}
%{_kde5_libdir}/libkgetcore.so.%{kgetcore_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# We don't need it because there are no headers anyway
rm -f %{buildroot}%{_kde5_libdir}/libkgetcore.so

%find_lang %{oname} kgetplugin plasma_applet_kget plasma_runner_kget \
           %{oname}.lang --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15792 |21mr|plasma5-khelpcenter-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname khelpcenter

Summary:	Plasma 5 help center
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	grantlee-qt5-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(xapian-core)
Conflicts:	khelpcenter
Obsoletes:	%{_lib}plasma5-khelpcenter-devel < 16.04.2

%description
Plasma 5 help center.

%files -f %{name}.lang
%{_kde5_bindir}/khelpcenter
%{_kde5_applicationsdir}/org.kde.khelpcenter.desktop
%{_kde5_datadir}/config.kcfg/khelpcenter.kcfg
%dir %{_kde5_datadir}/khelpcenter/
# KDE4 service seems to be kept for a reason...
%{_kde5_datadir}/kde4/services/khelpcenter.desktop
%{_kde5_datadir}/khelpcenter/*
%{_kde5_datadir}/dbus-1/services/org.kde.khelpcenter.service
%{_kde5_libexecdir}/khc_*
%{_kde5_services}/khelpcenter.desktop
%{_appdatadir}/org.kde.khelpcenter.metainfo.xml
%{_kde5_datadir}/qlogging-categories5/khelpcenter.categories

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang fundamentals khelpcenter khelpcenter5 onlinehelp %{name}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15793 |21mr|plasma5-khotkeys-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname khotkeys

Summary:	Plasma 5 input actions module
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	plasma5-workspace-devel >= %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)

%description
Plasma 5 input actions module.

%files -f %{oname}.lang
%{_kde5_datadir}/khotkeys/*.khotkeys
%{_kde5_plugindir}/kded/khotkeys.so
%{_kde5_services}/khotkeys.desktop
%{_qt5_plugindir}/kcm_hotkeys.so

#----------------------------------------------------------------------------

%define khotkeysprivate_major 5
%define libkhotkeysprivate %mklibname khotkeysprivate %{khotkeysprivate_major}

%package -n %{libkhotkeysprivate}
Summary:	Plasma 5 input actions shared library
Group:		System/Libraries

%description -n %{libkhotkeysprivate}
Plasma 5 input actions shared library.

%files -n %{libkhotkeysprivate}
%{_kde5_libdir}/libkhotkeysprivate.so.%{khotkeysprivate_major}*

#----------------------------------------------------------------------------

%define devplasma5_khotkeys %mklibname plasma5-khotkeys -d

%package -n %{devplasma5_khotkeys}
Summary:	Development files for Plasma 5 input actions library
Group:		Development/KDE and Qt
Provides:	%{name}-devel = %{EVRD}
Provides:	khotkeysdbusinterface-devel = %{version}
Conflicts:	kdebase4-workspace-devel

%description -n %{devplasma5_khotkeys}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devplasma5_khotkeys}
%{_kde5_libdir}/cmake/KHotKeysDBusInterface
%{_datadir}/dbus-1/interfaces/org.kde.khotkeys.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15794 |21mr|plasma5-kinfocenter-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kinfocenter

Summary:	Plasma 5 module that provides information about computer
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source2:	plasma5-kinfocenter.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libraw1394)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	kirigami2
Requires:	kirigami2
Recommends:	clinfo
Recommends:	mesa-demos
Recommends:	plasma5-disks
Recommends:	wayland-utils
Recommends:	vulkan-tools

%description
Plasma 5 module that provides information about computer.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/org.kde.kinfocenter.desktop
%{_kde5_applicationsdir}/kcm_about-distro.desktop
%{_kde5_bindir}/kinfocenter
%dir %{_kde5_datadir}/kpackage/kcms/kcm_energyinfo/
%{_kde5_datadir}/kpackage/kcms/kcm_energyinfo/*
%{_appdatadir}/org.kde.kinfocenter.appdata.xml
# Possibly should be rather dropped
%{_datadir}/desktop-directories/kinfocenter.directory
%{_qt5_plugindir}/plasma/kcms/kcm_about-distro.so
%{_qt5_plugindir}/plasma/kcms/kcm_energyinfo.so
%{_qt5_plugindir}/plasma/kcms/kinfocenter/
%{_kde5_libdir}/libKInfoCenterInternal.so
%{_kde5_libexecdir}/kauth/kinfocenter-dmidecode-helper
%{_kde5_qmldir}/org/kde/kinfocenter/private/CommandOutputKCM.qml
%{_kde5_qmldir}/org/kde/kinfocenter/private/qmldir
%{_kde5_datadir}/kpackage/kcms/kcm_about-distro/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_cpu/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_egl/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_glx/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_interrupts/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_opencl/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_pci/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_vulkan/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_wayland/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_xserver/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcmsamba/contents/ui/ShareListItem.qml
%{_kde5_datadir}/kpackage/kcms/kcmsamba/contents/ui/main.qml
%{_kde5_datadir}/kpackage/kcms/kcm_kwinsupportinfo/contents/ui/main.qml
%{_kde5_datadir}/kinfocenter/categories/basicinformation.desktop
%{_kde5_datadir}/kinfocenter/categories/detailedinformation.desktop
%{_kde5_datadir}/kinfocenter/categories/deviceinfocategory.desktop
%{_kde5_datadir}/kinfocenter/categories/graphicalinfocategory.desktop
%{_kde5_datadir}/kinfocenter/categories/lostfoundcategory.desktop
%{_kde5_datadir}/kinfocenter/categories/networkinfocategory.desktop
%{_kde5_datadir}/kpackage/kcms/kcm_nic/contents/ui/main.qml
%{_kde5_datadir}/dbus-1/system-services/org.kde.kinfocenter.dmidecode.service
%{_kde5_datadir}/dbus-1/system.d/org.kde.kinfocenter.dmidecode.conf
%{_kde5_datadir}/polkit-1/actions/org.kde.kinfocenter.dmidecode.policy
%{_kde5_datadir}/kpackage/kcms/kcm_firmware_security/contents/code/fwupdmgr.sh
%{_kde5_datadir}/kpackage/kcms/kcm_firmware_security/contents/ui/main.qml

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# Should be rather merged to system config later
rm -rf %{buildroot}%{_kde5_sysconfdir}/xdg/menus/kinfocenter.menu

%find_lang %{oname} --all-name --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15795 |21mr|plasma5-kio-audiocd-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname audiocd-kio

Summary:	Plasma 5 audio CDs KIO
Name:		plasma5-kio-audiocd
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	cdda-devel
BuildRequires:	kf5cddb-devel
BuildRequires:	kf5compactdisc-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(libcdio_paranoia)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(vorbis)
Conflicts:	kde4-audiocd

%description
Plasma 5 audio CDs KIO.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kcm_audiocd.desktop
%{_kde5_datadir}/config.kcfg/audiocd_flac_encoder.kcfg
%{_kde5_datadir}/config.kcfg/audiocd_lame_encoder.kcfg
%{_kde5_datadir}/config.kcfg/audiocd_vorbis_encoder.kcfg
%{_kde5_datadir}/config.kcfg/audiocd_opus_encoder.kcfg
%{_kde5_datadir}/konqsidebartng/virtual_folders/services/audiocd.desktop
%{_kde5_datadir}/solid/actions/solid_audiocd.desktop
%{_kde5_datadir}/qlogging-categories5/kio_audiocd.categories
%{_kde5_datadir}/qlogging-categories5/kio_audiocd.renamecategories
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_audiocd.so
%{_qt5_plugindir}/libaudiocd_encoder_flac.so
%{_qt5_plugindir}/libaudiocd_encoder_lame.so
%{_qt5_plugindir}/libaudiocd_encoder_vorbis.so
%{_qt5_plugindir}/libaudiocd_encoder_wav.so
%{_qt5_plugindir}/kf5/kio/audiocd.so
%{_qt5_plugindir}/libaudiocd_encoder_opus.so
%{_appdatadir}/org.kde.kio_audiocd.metainfo.xml

#----------------------------------------------------------------------------

%define audiocdplugins_major 5
%define libaudiocdplugins %mklibname audiocdplugins %{audiocdplugins_major}

%package -n %{libaudiocdplugins}
Summary:	Shared library for Plasma 5 audio CDs KIO
Group:		System/Libraries

%description -n %{libaudiocdplugins}
Shared library for Plasma 5 audio CDs KIO.

%files -n %{libaudiocdplugins}
%{_kde5_libdir}/libaudiocdplugins.so.%{audiocdplugins_major}*

#----------------------------------------------------------------------------

%define devname %mklibname audiocdplugins -d

%package -n %{devname}
Summary:	Development files for Plasma 5 audio CDs KIO
Group:		System/Libraries
Conflicts:	kde4-audiocd-devel < 3:16.08
Obsoletes:	kde4-audiocd-devel < 3:16.08

%description -n %{devname}
Development files for Plasma 5 audio CDs KIO.

%files -n %{devname}
%dir %{_kde5_includedir}/audiocdplugins
%{_kde5_includedir}/audiocdplugins/*
%{_kde5_libdir}/libaudiocdplugins.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang audiocd audiocd_encoder_flac audiocd_encoder_lame audiocd_encoder_vorbis \
	kcmaudiocd audiocd_encoder_opus kio_audiocd %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15796 |21mr|plasma5-kio-extras-23.08.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kio-extras

Summary:	Plasma 5 extra kio slaves module
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	7
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Patch1:		po.name.patch
Patch2:		filenamesearch-improvements.patch
# MR: https://invent.kde.org/network/kio-extras/-/merge_requests/337
Patch3:		remote-limits-if-remote-dir.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	gperf
BuildRequires:	jpeg-devel
BuildRequires:	kdsoap-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5activitiesstats-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5filemetadata-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5pty-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	libappimage-static-devel
BuildRequires:	openslp-devel
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	%{_lib}imobiledevice-devel
BuildRequires:	%{_lib}plist-devel
Requires:	plasma5-kio-applications
Requires:	plasma5-kio-desktop
Requires:	plasma5-kfilemetadata

%description
Plasma 5 extra kio slaves module.

%files -f %{name}.lang
%{_kde5_datadir}/config.kcfg/jpegcreatorsettings5.kcfg
%{_kde5_datadir}/kio_bookmarks/
%{_kde5_datadir}/kio_docfilter/
%{_kde5_datadir}/kio_info/
%{_kde5_datadir}/konqueror/dirtree/remote/mtp-network.desktop
%{_kde5_datadir}/konqueror/dirtree/remote/smb-network.desktop
%{_kde5_datadir}/mime/packages/org.kde.kio.smb.xml
%{_kde5_datadir}/remoteview/afc-network.desktop
%{_kde5_datadir}/remoteview/mtp-network.desktop
%{_kde5_datadir}/remoteview/smb-network.desktop
%{_kde5_datadir}/solid/actions/solid_afc.desktop
%{_kde5_datadir}/solid/actions/solid_mtp.desktop
%{_kde5_datadir}/qlogging-categories5/kio-extras.categories
%{_kde5_libexecdir}/kf5/smbnotifier
%{_kde5_plugindir}/kded/filenamesearchmodule.so
%{_kde5_plugindir}/kded/recentdocumentsnotifier.so
%{_kde5_plugindir}/kio/activities.so
%{_kde5_plugindir}/kio/afc.so
%{_kde5_plugindir}/kio/archive.so
%{_kde5_plugindir}/kio/bookmarks.so
%{_kde5_plugindir}/kio/kio_filenamesearch.so
%{_kde5_plugindir}/kio/filter.so
%{_kde5_plugindir}/kio/fish.so
%{_kde5_plugindir}/kio/info.so
%{_kde5_plugindir}/kio/man.so
%{_kde5_plugindir}/kio/mtp.so
%{_kde5_plugindir}/kio/nfs.so
%{_kde5_plugindir}/kio/recentdocuments.so
%{_kde5_plugindir}/kio/recentlyused.so
%{_kde5_plugindir}/kio/sftp.so
%{_kde5_plugindir}/kio/smb.so
%{_kde5_plugindir}/kio/thumbnail.so
%{_kde5_plugindir}/kded/smbwatcher.so
%{_kde5_plugindir}/kfileitemaction/kactivitymanagerd_fileitem_linking_plugin.so
%{_kde5_plugindir}/thumbcreator/appimagethumbnail.so
%{_kde5_plugindir}/thumbcreator/audiothumbnail.so
%{_kde5_plugindir}/thumbcreator/comicbookthumbnail.so
%{_kde5_plugindir}/thumbcreator/cursorthumbnail.so
%{_kde5_plugindir}/thumbcreator/djvuthumbnail.so
%{_kde5_plugindir}/thumbcreator/ebookthumbnail.so
%{_kde5_plugindir}/thumbcreator/exrthumbnail.so
%{_kde5_plugindir}/thumbcreator/imagethumbnail.so
%{_kde5_plugindir}/thumbcreator/jpegthumbnail.so
%{_kde5_plugindir}/thumbcreator/kraorathumbnail.so
%{_kde5_plugindir}/thumbcreator/opendocumentthumbnail.so
%{_kde5_plugindir}/thumbcreator/svgthumbnail.so
%{_kde5_plugindir}/thumbcreator/textthumbnail.so
%{_kde5_plugindir}/thumbcreator/windowsexethumbnail.so
%{_kde5_plugindir}/thumbcreator/windowsimagethumbnail.so
%{_kde5_plugindir}/kfileitemaction/forgetfileitemaction.so
%{_kde5_plugindir}/kiod/kmtpd.so
%{_kde5_services}/directorythumbnail.desktop
%{_kde5_servicetypes}/thumbcreator.desktop
%{_kde5_datadir}/qlogging-categories5/kio-extras.renamecategories
%{_qt5_plugindir}/kfileaudiopreview.so
%{_datadir}/dbus-1/services/org.kde.kmtpd5.service


#----------------------------------------------------------------------------

%define kioarchive_major 5
%define libkioarchive %mklibname kioarchive %{kioarchive_major}

%package -n %{libkioarchive}
Summary:	Plasma 5 extra kio slaves shared library
Group:		System/Libraries

%description -n %{libkioarchive}
Plasma 5 extra kio slaves shared library.

%files -n %{libkioarchive}
%{_kde5_libdir}/libkioarchive.so.%{kioarchive_major}*

#----------------------------------------------------------------------------

%define devplasma5_kio_extras %mklibname plasma5-kio-extras -d

%package -n %{devplasma5_kio_extras}
Summary:	Development files for Plasma 5 extra kio slaves module
Group:		Development/KDE and Qt
Requires:	%{libkioarchive} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devplasma5_kio_extras}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devplasma5_kio_extras}
%{_kde5_includedir}/KioArchive/
%{_kde5_libdir}/cmake/KioArchive/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

find . -name "kio5_afc.po" -exec rename -- kio5_afc.po kio_afc.po '{}' +

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-html --with-kde


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15797 |21mr|plasma5-kio-zeroconf-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kio-zeroconf

Summary:	DNS-SD Service Discovery Monitor for Plasma 5
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
#Patch0:		0001-Enable-SMB-Zeroconf-discovery.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
Requires:	nss_mdns
Conflicts:	plasma5-zeroconf-ioslave < 23.08.4
Obsoletes:	plasma5-zeroconf-ioslave < 23.08.4


%description
DNS-SD Service Discovery Monitor for Plasma 5.

%files -f kio5_zeroconf.lang
%{_kde5_datadir}/remoteview/zeroconf.desktop
%{_datadir}/dbus-1/interfaces/org.kde.kdnssd.xml
%{_kde5_plugindir}/kded/dnssdwatcher.so
%{_qt5_plugindir}/kf5/kio/zeroconf.so
%{_appdatadir}/org.kde.kio_zeroconf.metainfo.xml
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kio5_zeroconf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15798 |21mr|plasma5-kmenuedit-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kmenuedit

Summary:	Plasma 5 menu editor
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Xml)
Conflicts:	kdebase4-workspace

%description
Plasma 5 menu editor.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/org.kde.kmenuedit.desktop
%{_kde5_bindir}/kmenuedit
%{_kde5_datadir}/kmenuedit/icons/hicolor/*
%{_kde5_datadir}/qlogging-categories5/kmenuedit.categories
%{_kde5_iconsdir}/hicolor/*/apps/kmenuedit.*
%{_kde5_xmlguidir}/kmenuedit/kmenueditui.rc
%{_kde5_libdir}/kconf_update_bin/kmenuedit_globalaccel
%{_appdatadir}/org.kde.kmenuedit.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15799 |21mr|plasma5-kmix-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kmix

Summary:	Plasma 5 Digital Mixer
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
Epoch:		3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/multimedia/kmix/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Patch1:		kmix-17.12.3-popup-margins.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
Conflicts:	kmix

%description
KMix is an application to allow you to change the volume of your sound
card. Though small, it is full-featured, and it supports several
platforms and sound drivers.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/org.kde.kmix.desktop
%{_kde5_autostart}/kmix_autostart.desktop
%{_kde5_autostart}/restore_kmix_volumes.desktop
%{_kde5_bindir}/kmix
%{_kde5_bindir}/kmixctrl
%{_kde5_bindir}/kmixremote
%{_kde5_datadir}/qlogging-categories5/kmix.categories
%{_kde5_datadir}/config.kcfg/kmixsettings.kcfg
%{_kde5_datadir}/kmix
%{_kde5_iconsdir}/*/*/*/*
%{_kde5_notificationsdir}/kmix.notifyrc
%{_kde5_plugindir}/kded/kmixd.so
%{_kde5_services}/kmixctrl_restore.desktop
%{_kde5_xmlguidir}/kmix/kmixui.rc
%{_datadir}/dbus-1/interfaces/org.kde.kmix.control.xml
%{_datadir}/dbus-1/interfaces/org.kde.kmix.mixer.xml
%{_datadir}/dbus-1/interfaces/org.kde.kmix.mixset.xml
%{_appdatadir}/org.kde.kmix.appdata.xml

#----------------------------------------------------------------------------

%define kmixcore_major 5
%define libkmixcore %mklibname kmixcore %{kmixcore_major}

%package -n %{libkmixcore}
Summary:	Shared library for Plasma 5 KMix
Group:		System/Libraries

%description -n %{libkmixcore}
Shared library for Plasma 5 KMix.

%files -n %{libkmixcore}
%{_kde5_libdir}/libkmixcore.so.%{kmixcore_major}*
%{_kde5_libdir}/libkmixcore.so.%{version}

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5 -DKMIX_KF5_BUILD:BOOL=ON
%make

%install
%makeinstall_std -C build

%find_lang %{oname} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15800 |21mr|plasma5-konsole-23.08.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname konsole

Summary:	A terminal emulator similar to xterm for Plasma 5
Name:		plasma5-%{oname}
Version:	23.08.5
Release: 	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://konsole.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Source2:	%{name}.rpmlintrc
Patch0:		fix_default_color.patch
Patch1:		fix.i18n.patch
Patch2:		fix.ru.text.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5pty-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)
Requires:	keditbookmarks
Requires:	x11-font-misc-misc
Conflicts:	konsole

%description
A terminal emulator, similar to xterm, for Plasma 5.

%files -f %{oname}.lang
%doc README.md COPYING COPYING.DOC COPYING.LIB doc/*
%{_kde5_applicationsdir}/org.kde.konsole.desktop
%{_kde5_bindir}/konsole
%{_kde5_bindir}/konsoleprofile
%{_kde5_datadir}/qlogging-categories5/konsole.categories
%{_kde5_datadir}/kglobalaccel/org.kde.konsole.desktop
%{_kde5_datadir}/knsrcfiles/konsole.knsrc
%{_kde5_datadir}/kconf_update/konsole.upd
%{_kde5_datadir}/kconf_update/konsole_add_hamburgermenu_to_toolbar.sh
%{_kde5_datadir}/konsole
%{_kde5_datadir}/kio/servicemenus/konsolerun.desktop
%{_kde5_datadir}/zsh/site-functions/_konsole
%{_kde5_notificationsdir}/konsole.notifyrc
%{_kde5_services}/konsolepart.desktop
%{_kde5_servicetypes}/terminalemulator.desktop
%{_appdatadir}/org.kde.konsole.appdata.xml
%{_qt5_plugindir}/konsoleplugins/konsole_sshmanagerplugin.so
%{_qt5_plugindir}/konsoleplugins/konsole_quickcommandsplugin.so
%{_qt5_plugindir}/konsolepart.so
%{_kde5_libdir}/kconf_update_bin/konsole_globalaccel
%{_kde5_libdir}/kconf_update_bin/konsole_show_menubar
#{_sysconfdir}/xdg/konsolerc

#----------------------------------------------------------------------------

%define konsoleprivate_major 1
%define libkonsoleprivate %mklibname konsoleprivate %{konsoleprivate_major}

%package -n %{libkonsoleprivate}
Summary:	Shared library for Konsole
Group:		System/Libraries

%description -n %{libkonsoleprivate}
Shared library for Konsole.

%files -n %{libkonsoleprivate}
%{_kde5_libdir}/libkonsoleprivate.so.%{konsoleprivate_major}*
%{_kde5_libdir}/libkonsoleprivate.so.%{version}

#----------------------------------------------------------------------------

%define konsoleapp_major 1
%define libkonsoleapp %mklibname konsoleapp %{konsoleapp_major}

%package -n %{libkonsoleapp}
Summary:	Shared library for Konsole
Group:		System/Libraries

%description -n %{libkonsoleapp}
Shared library for Konsole.

%files -n %{libkonsoleapp}
%{_kde5_libdir}/libkonsoleapp.so.%{konsoleapp_major}
%{_kde5_libdir}/libkonsoleapp.so.%{version}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make_build

%install
%make_install -C build

rm -f %{buildroot}%{_sysconfdir}/xdg/konsolerc

%find_lang %{oname} --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15801 |21mr|plasma5-kscreen-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kscreen

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	Plasma 5 display management module
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	layershellqt-devel
BuildRequires:	pkgconfig(kscreen2) >= %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sensors)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xi)
Requires:	plasma5-applet-kscreen = %{EVRD}
Conflicts:	kscreen
Conflicts:	plasma-applet-kscreen

%description
Plasma 5 display management module.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kcm_kscreen.desktop
%{_kde5_bindir}/kscreen-console
%dir %{_kde5_datadir}/kpackage/kcms/kcm_kscreen/
%{_kde5_datadir}/kpackage/kcms/kcm_kscreen/*
%{_kde5_services}/plasma-applet-org.kde.kscreen.desktop
%{_kde5_datadir}/qlogging-categories5/kscreen.categories
%{_kde5_datadir}/dbus-1/services/org.kde.kscreen.osdService.service
%{_kde5_plugindir}/kded/kscreen.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kscreen.so
%{_kde5_libexecdir}/kscreen_osd_service
%{_userunitdir}/plasma-kscreen-osd.service

#----------------------------------------------------------------------------

%package -n plasma5-applet-kscreen
Summary:	Plasma 5 display management plasmoid
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description -n plasma5-applet-kscreen
Plasma 5 display management plasmoid.

%files -n plasma5-applet-kscreen -f plasma_applet_org.kde.kscreen.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.kscreen/
%{_kde5_datadir}/plasma/plasmoids/org.kde.kscreen/*
%{_appdatadir}/org.kde.kscreen.appdata.xml
%{_qt5_plugindir}/plasma/applets/plasma_applet_kscreen.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} kcm_kscreen kscreen_common %{oname}.lang
%find_lang plasma_applet_org.kde.kscreen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15802 |21mr|plasma5-ksysguard-5.22.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ksysguard

Summary:	Plasma 5 system monitoring module
Name:		plasma5-%{oname}
Version:	5.22.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
# Translation of additional lines to sensors
Source1:	ksysguard_5.21_ru.tar.gz
# Patch for extra lines to sensors
Patch1:     sensors.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5sysguard-devel >= %{version}
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(libnl-3.0)
# optional, need for per-application network usage
BuildRequires:	pcap-devel
Requires:	kglobalaccel
# For scripts
Requires:	libksysguard
Conflicts:	kdebase4-workspace

%description
Plasma 5 system monitoring module.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/org.kde.ksysguard.desktop
%{_kde5_bindir}/ksysguard
%{_kde5_bindir}/ksysguardd
%{_kde5_datadir}/knsrcfiles/ksysguard.knsrc
%{_kde5_datadir}/ksysguard/*.sgrd
%{_kde5_iconsdir}/hicolor/16x16/apps/*.png
%{_kde5_notificationsdir}/ksysguard.notifyrc
%{_kde5_xmlguidir}/ksysguard/ksysguardui.rc
%{_kde5_sysconfdir}/ksysguarddrc
%{_appdatadir}/org.kde.ksysguard.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} --all-name --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15803 |21mr|plasma5-kup-0.9.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kup

Summary:	A KDE-based frontend for the very excellent backup software
Name:		plasma5-kup
Version:	0.9.1
Release:	5
License:	GPLv2+
Group:		Archiving/Backup
# Also https://github.com/spersson/Kup
Url:		http://kde-apps.org/content/show.php/Kup+Backup+System?content=147465
Source0:	https://download.kde.org/stable/kup/kup-%{version}.tar.xz
Source10:	kup-0.9.1-ru.po
Patch1:		kup-0.9.1-desktop_rus.patch
Patch2:		kup-i18n.patch
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libgit2)
Requires:	bup
Requires:	parchive2
Requires:	rsync

%description
Kup is created for helping people to keep up-to-date backups of their personal
files.

Backup types:
 - Synchronized folders with the use of "rsync".
 - Incremental backup archive with the use of "bup"
Backup destinations:
 - local filesystem, monitored for availability. That means you can set
   a destination folder which only exist when perhaps a network shared drive
   is mounted and Kup will detect when it becomes available.
 - external storage, like usb hard drives. Also monitored for availability.
Schedules:
 - manual only (triggered from tray icon popup menu)
 - interval (suggests new backup after some time has passed since last backup)
 - usage based (suggests new backup after you have been active on your computer
   for some hours since last backup).

%files -f %{oname}.lang
%doc MAINTAINER README.md
%{_kde5_autostart}/kup-daemon.desktop
%{_kde5_bindir}/kup-daemon
%{_kde5_bindir}/kup-filedigger
%{_kde5_bindir}/kup-purger
%{_kde5_iconsdir}/hicolor/*/*/*
%{_kde5_libdir}/libkdeinit5_kup-daemon.so
%{_kde5_notificationsdir}/kupdaemon.notifyrc
%{_kde5_services}/bup.protocol
%{_kde5_services}/kcm_kup.desktop
%{_kde5_services}/plasma-applet-org.kde.kupapplet.desktop
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_kup.so
%{_kde5_services}/plasma-dataengine-kup.desktop
%{_qt5_plugindir}/kcm_kup.so
%{_qt5_plugindir}/kio_bup.so
%{_kde5_datadir}/plasma/services/kupdaemonservice.operations
%{_kde5_datadir}/plasma/plasmoids/org.kde.kupapplet/contents/ui/FullRepresentation.qml
%{_kde5_datadir}/plasma/plasmoids/org.kde.kupapplet/contents/ui/Main.qml
%{_kde5_datadir}/plasma/plasmoids/org.kde.kupapplet/metadata.desktop
%{_kde5_datadir}/plasma/plasmoids/org.kde.kupapplet/metadata.json
%{_kde5_datadir}/plasma/services/kupservice.operations
%{_kde5_datadir}/qlogging-categories5/kup.categories
%{_appdatadir}/org.kde.kupapplet.appdata.xml
%{_datadir}/metainfo/org.kde.kup.appdata.xml


#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}
cp %{SOURCE10} po/ru/kup.po

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15804 |21mr|plasma5-kwalletmanager-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kwalletmanager

Summary:	Plasma 5 password wallet manager
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
## upstreamable patches
# better/sane defaults (no autoclose mostly)
Patch0:	 kwalletmanager-15.12.1-defaults.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	desktop-file-utils
BuildRequires:	kf5archive-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Conflicts:	kwallet-kde4

%description
Plasma 5 password wallet manager.

%files -f %{oname}.lang
%{_kde5_datadir}/applications/kwalletmanager5-kwalletd.desktop
%{_kde5_datadir}/applications/org.kde.kwalletmanager5.desktop
%{_kde5_bindir}/kwalletmanager5
%{_kde5_datadir}/qlogging-categories5/kwalletmanager.categories
%{_kde5_iconsdir}/hicolor/*/actions/wallet-closed.*
%{_kde5_iconsdir}/hicolor/*/actions/wallet-open.*
%{_kde5_iconsdir}/hicolor/*/apps/kwalletmanager.*
%{_kde5_iconsdir}/hicolor/*/apps/kwalletmanager2.*
%{_kde5_libexecdir}/kauth/kcm_kwallet_helper5
%{_kde5_services}/kwalletmanager5_show.desktop
%{_appdatadir}/org.kde.kwalletmanager5.appdata.xml
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmkwallet5.service
%{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmkwallet5.conf
%{_datadir}/dbus-1/services/org.kde.kwalletmanager5.service
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmkwallet5.policy
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kwallet5.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} kcmkwallet kwallet5 %{oname}.lang --with-kde --with-html

mv %{buildroot}%{_kde5_applicationsdir}/kwalletmanager5-kwalletd.desktop %{buildroot}%{_kde5_datadir}/applications/
mv %{buildroot}%{_kde5_applicationsdir}/org.kde.kwalletmanager5.desktop %{buildroot}%{_kde5_datadir}/applications/

%check
desktop-file-validate %{buildroot}%{_kde5_datadir}/applications/org.kde.kwalletmanager5.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15805 |21mr|plasma5-kwin-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname kwin

Summary:	Plasma 5 window manager module
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source1:	kwin-5.27.0+ru.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	libcap-utils
BuildRequires:	breeze-devel >= %{version}
BuildRequires:	kdecoration2-devel >= %{version}
BuildRequires:	kscreenlocker-devel >= %{version}
BuildRequires:	kf5activities-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libxcvt)
BuildRequires:	pkgconfig(libcap)
%if %{mdvver} >= 201610
BuildRequires:	pkgconfig(libinput)
%endif
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
# Runtime (needs check later):
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sensors)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-composite)
BuildRequires:	pkgconfig(xcb-cursor)
BuildRequires:	pkgconfig(xcb-damage)
BuildRequires:	pkgconfig(xcb-event)
BuildRequires:	pkgconfig(xcb-glx)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-randr)
BuildRequires:	pkgconfig(xcb-render)
BuildRequires:	pkgconfig(xcb-shape)
BuildRequires:	pkgconfig(xcb-shm)
BuildRequires:	pkgconfig(xcb-sync)
BuildRequires:	pkgconfig(xcb-xfixes)
BuildRequires:	pkgconfig(xcb-xtest)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	qaccessibilityclient-devel
BuildRequires:	hwdata
BuildRequires:	mesa-common-devel
BuildRequires:	x11-server-xvfb
BuildRequires:	x11-server-xwayland
BuildRequires:	x11-server-devel
BuildRequires:	qt5-qtvirtualkeyboard
BuildRequires:	%{_lib}gbm-devel
BuildRequires:	%{_lib}qt5-qtquickcontrols-qml
Requires:	%{_lib}qt5-qtquickcontrols-qml
Requires:	kirigami2
Requires:	hwdata
Requires:	glib-networking
Recommends:	qt5-qtvirtualkeyboard
Recommends:	plasma5-decoration-aurorae = %{EVRD}
Obsoletes:	%{_lib}kwineffects13 < 5.27.0
Obsoletes:	%{_lib}kwinglutils13 < 5.27.0
Obsoletes:	%{_lib}kwinxrenderutils13 < 5.27.0
Obsoletes:	%{_lib}kwin4_effect_builtins1 < 5.27.0

%description
Plasma 5 window manager module.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kcm_kwintabbox.desktop
%{_kde5_applicationsdir}/kcm_kwinxwayland.desktop
%{_kde5_bindir}/kwin_wayland
%{_kde5_bindir}/kwin_wayland_wrapper
%{_kde5_bindir}/kwin_x11
%{_kde5_applicationsdir}/org.kde.kwin_rules_dialog.desktop
%{_kde5_applicationsdir}/kcm_kwin_effects.desktop
%{_kde5_applicationsdir}/kcm_kwin_virtualdesktops.desktop
%{_kde5_applicationsdir}/kcm_kwinrules.desktop
%{_kde5_applicationsdir}/kcm_virtualkeyboard.desktop
%{_kde5_applicationsdir}/kwincompositing.desktop
%{_kde5_applicationsdir}/kcm_kwindecoration.desktop
%{_kde5_applicationsdir}/kcm_kwinoptions.desktop
%{_kde5_applicationsdir}/kcm_kwin_scripts.desktop
%{_kde5_datadir}/config.kcfg/nightcolorsettings.kcfg
%{_kde5_datadir}/config.kcfg/kwin.kcfg
%{_kde5_datadir}/config.kcfg/kwindecorationsettings.kcfg
%{_kde5_datadir}/config.kcfg/virtualdesktopssettings.kcfg
%{_kde5_datadir}/kconf_update/kwin.upd
%{_kde5_datadir}/kconf_update/kwin-5.16-auto-bordersize.sh
%{_kde5_datadir}/kconf_update/kwin-5.18-move-animspeed.py
%{_kde5_datadir}/kconf_update/kwinrules-5.19-placement.pl
%{_kde5_datadir}/kconf_update/kwinrules-5.23-virtual-desktop-ids.py
%{_kde5_datadir}/kconf_update/kwin-5.25-effect-pluginid-config-group.py
%{_kde5_datadir}/kconf_update/kwinrules.upd
%{_kde5_datadir}/kconf_update/__pycache__
%{_kde5_datadir}/kconf_update/kwin-5.23-disable-translucency-effect.sh
%{_kde5_datadir}/kconf_update/kwin-5.23-remove-cover-switch.py
%{_kde5_datadir}/kconf_update/kwin-5.23-remove-cubeslide.py
%{_kde5_datadir}/kconf_update/kwin-5.23-remove-flip-switch.py
%{_kde5_datadir}/kconf_update/kwin-5.23-remove-xrender-backend.py
%{_kde5_datadir}/kconf_update/kwin-5.27-replace-cascaded-zerocornered.sh
%{_kde5_datadir}/knsrcfiles/kwineffect.knsrc
%{_kde5_datadir}/knsrcfiles/kwinscripts.knsrc
%{_kde5_datadir}/knsrcfiles/kwinswitcher.knsrc
%{_kde5_datadir}/knsrcfiles/window-decorations.knsrc
%{_kde5_datadir}/kpackage/kcms/kcm_kwin_effects/
%{_kde5_datadir}/kpackage/kcms/kcm_kwin_scripts/
%{_kde5_datadir}/kpackage/kcms/kcm_kwin_virtualdesktops/
%{_kde5_datadir}/kpackage/kcms/kcm_kwindecoration/
%{_kde5_datadir}/kpackage/kcms/kcm_kwinxwayland/
%{_kde5_datadir}/kpackage/kcms/kcm_kwinrules/
%{_kde5_datadir}/kpackage/kcms/kcm_virtualkeyboard/
%{_kde5_datadir}/kwin/*.png
%{_kde5_datadir}/kwin/builtin-effects/
%{_kde5_datadir}/kwin/effects/windowview/qml/main.qml
%{_kde5_datadir}/kwin/decorations/kwin4_decoration_qml_plastik/
%{_kde5_datadir}/kwin/effects/desktopgrid/
%{_kde5_datadir}/kwin/effects/kwin4_effect_dialogparent/
%{_kde5_datadir}/kwin/effects/kwin4_effect_dimscreen/
%{_kde5_datadir}/kwin/effects/kwin4_effect_eyeonscreen/
%{_kde5_datadir}/kwin/effects/kwin4_effect_fade/
%{_kde5_datadir}/kwin/effects/kwin4_effect_fadedesktop/
%{_kde5_datadir}/kwin/effects/kwin4_effect_fadingpopups/
%{_kde5_datadir}/kwin/effects/kwin4_effect_frozenapp/
%{_kde5_datadir}/kwin/effects/kwin4_effect_login/
%{_kde5_datadir}/kwin/effects/kwin4_effect_logout/
%{_kde5_datadir}/kwin/effects/kwin4_effect_maximize/
%{_kde5_datadir}/kwin/effects/kwin4_effect_morphingpopups/
%{_kde5_datadir}/kwin/effects/kwin4_effect_scale/
%{_kde5_datadir}/kwin/effects/kwin4_effect_sessionquit/
%{_kde5_datadir}/kwin/effects/kwin4_effect_squash/
%{_kde5_datadir}/kwin/effects/kwin4_effect_translucency/
%{_kde5_datadir}/kwin/effects/kwin4_effect_windowaperture/
%{_kde5_datadir}/kwin/effects/kwin4_effect_fullscreen/
%{_kde5_datadir}/kwin/effects/overview/
%{_kde5_datadir}/kwin/effects/outputlocator/qml/OutputLabel.qml
%{_kde5_datadir}/kwin/effects/showfps/qml/main.qml
%{_kde5_datadir}/kwin/frames/plasma/frame_*.qml
%{_kde5_datadir}/kwin/effects/tileseditor/
%{_kde5_datadir}/kwin/kcm_kwintabbox/
%{_kde5_datadir}/kwin/onscreennotification/
%{_kde5_datadir}/kwin/outline/plasma/outline.qml
%{_kde5_datadir}/kwin/scripts/desktopchangeosd/
%{_kde5_datadir}/kwin/scripts/minimizeall/
%{_kde5_datadir}/kwin/scripts/synchronizeskipswitcher/
%{_kde5_datadir}/kwin/scripts/videowall/
%{_kde5_datadir}/qlogging-categories5/org_kde_kwin.categories
%{_kde5_datadir}/kconf_update/kwin-5.21-desktop-grid-click-behavior.py
%{_kde5_datadir}/kconf_update/kwin-5.21-no-swap-encourage.py
%{_kde5_datadir}/krunner/dbusplugins/kwin-runner-windows.desktop
%{_kde5_iconsdir}/hicolor/*/apps/kwin.*
%{_kde5_libdir}/kconf_update_bin/kwin5_update_default_rules
%{_kde5_libexecdir}/kwin-applywindowdecoration
%{_kde5_libexecdir}/kwin_killer_helper
%{_kde5_libexecdir}/kwin_rules_dialog
%{_kde5_notificationsdir}/kwin.notifyrc
%{_kde5_servicetypes}/kwindecoration.desktop
%{_kde5_servicetypes}/kwindesktopswitcher.desktop
%{_kde5_servicetypes}/kwineffect.desktop
%{_kde5_servicetypes}/kwinscript.desktop
%{_kde5_servicetypes}/kwinwindowswitcher.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kwin_effects.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kwin_scripts.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kwin_virtualdesktops.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kwindecoration.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kwinrules.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_kwinxwayland.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_virtualkeyboard.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kwinoptions.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kwinscreenedges.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kwintabbox.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_kwintouchscreen.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kwincompositing.so
%{_qt5_plugindir}/kpackage/packagestructure/*.so
%{_qt5_plugindir}/kwin/effects/configs/*.so
%{_qt5_plugindir}/kwin/plugins/krunnerintegration.so
%{_qt5_plugindir}/kwin/plugins/colordintegration.so
%{_qt5_plugindir}/kwin/plugins/libKWinNightColorPlugin.so
%{_qt5_plugindir}/kwin/plugins/MouseButtonToKeyPlugin.so
%{_kde5_qmldir}/org/kde/kwin.2/DesktopThumbnailItem.qml
%{_kde5_qmldir}/org/kde/kwin.2/qmldir
%{_userunitdir}/plasma-kwin_x11.service
%{_userunitdir}/plasma-kwin_wayland.service

#----------------------------------------------------------------------------
%package -n plasma5-decoration-aurorae
Summary:	Plasma 5 Aurorae window decoration
Group:		Graphical desktop/KDE
Conflicts:	kdebase4-workspace

%description -n plasma5-decoration-aurorae
Plasma 5 Aurorae window decoration.

%files -n plasma5-decoration-aurorae
%{_kde5_datadir}/kwin/aurorae/
%{_kde5_datadir}/knsrcfiles/aurorae.knsrc
%{_qt5_plugindir}/org.kde.kdecoration2/kwin5_aurorae.so

#--------------------------------------------------------------------

%package	wayland-nvidia
Summary:	KDE Window Manager with Wayland support for NVIDIA driver
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{_lib}nvidia-egl-wayland1
BuildArch:	noarch

%description    wayland-nvidia
KDE Window Manager with Wayland support for NVIDIA driver.

%files wayland-nvidia

#--------------------------------------------------------------------

%define qmlkwin %mklibname kwin-qml

%package -n %{qmlkwin}
Summary:	QML plugin for Plasma 5 KWin
Group:		System/Libraries
Provides:	kwin-qml = %{EVRD}

%description -n %{qmlkwin}
QML plugin for Plasma 5 KWin.

%files -n %{qmlkwin}
%dir %{_kde5_qmldir}/org/kde/kwin/
%{_kde5_qmldir}/org/kde/kwin/*

#----------------------------------------------------------------------------

%define kcmkwincommon_major 5
%define libkcmkwincommon %mklibname kcmkwincommon %{kcmkwincommon_major}

%package -n %{libkcmkwincommon}
Summary:	Plasma 5 window manager shared library
Group:		System/Libraries

%description -n %{libkcmkwincommon}
Plasma 5 window manager shared library.

%files -n %{libkcmkwincommon}
%{_kde5_libdir}/libkcmkwincommon.so.%{kcmkwincommon_major}
%{_kde5_libdir}/libkcmkwincommon.so.%{version}*

#----------------------------------------------------------------------------

%define kwin_major 5
%define libkwin %mklibname kwin %{kwin_major}

%package -n %{libkwin}
Summary:	Plasma 5 window manager shared library
Group:		System/Libraries
Requires:	%{qmlkwin} = %{EVRD}

%description -n %{libkwin}
Plasma 5 window manager shared library.

%files -n %{libkwin}
%{_kde5_libdir}/libkwin.so.%{kwin_major}
%{_kde5_libdir}/libkwin.so.%{version}*

#----------------------------------------------------------------------------

%define kwineffects_major 14
%define libkwineffects %mklibname kwineffects %{kwineffects_major}

%package -n %{libkwineffects}
Summary:	Plasma 5 window manager shared library
Group:		System/Libraries

%description -n %{libkwineffects}
Plasma 5 window manager shared library.

%files -n %{libkwineffects}
%{_kde5_libdir}/libkwineffects.so.%{kwineffects_major}
%{_kde5_libdir}/libkwineffects.so.%{version}*

#----------------------------------------------------------------------------

%define kwinglutils_major 14
%define libkwinglutils %mklibname kwinglutils %{kwinglutils_major}

%package -n %{libkwinglutils}
Summary:	Plasma 5 window manager shared library
Group:		System/Libraries

%description -n %{libkwinglutils}
Plasma 5 window manager shared library.

%files -n %{libkwinglutils}
%{_kde5_libdir}/libkwinglutils.so.%{kwinglutils_major}
%{_kde5_libdir}/libkwinglutils.so.%{version}*

#----------------------------------------------------------------------------

%define devkwin %mklibname kwin -d

%package -n %{devkwin}
Summary:	Development files for Plasma 5 window manager module
Group:		Development/KDE and Qt
Requires:	%{libkwineffects} = %{EVRD}
Requires:	%{libkwinglutils} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	kdebase4-workspace-devel

%description -n %{devkwin}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkwin}
%{_kde5_includedir}/kwin*.h
%{_kde5_libdir}/cmake/KWinDBusInterface
%{_kde5_libdir}/cmake/KWinEffects/KWinEffectsConfig.cmake
%{_kde5_libdir}/cmake/KWinEffects/KWinEffectsConfigVersion.cmake
%{_kde5_libdir}/cmake/KWinEffects/KWinEffectsTargets-release.cmake
%{_kde5_libdir}/cmake/KWinEffects/KWinEffectsTargets.cmake
%{_kde5_libdir}/libkwineffects.so
%{_kde5_libdir}/libkwinglutils.so
%{_datadir}/dbus-1/interfaces/org.kde.*.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} --all-name --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15806 |21mr|plasma5-libkcddb-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libkcddb

Summary:	KDE Frameworks 5 library for retrieving and sending CDDB information
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 library for retrieving and sending CDDB information.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kcm_cddb.desktop
%{_kde5_datadir}/config.kcfg/libkcddb5.kcfg
%{_kde5_datadir}/qlogging-categories5/libkcddb.categories
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_cddb.so

#----------------------------------------------------------------------------

%define kf5cddb_major 5
%define libkf5cddb %mklibname kf5cddb %{kf5cddb_major}

%package -n %{libkf5cddb}
Summary:	KDE Frameworks 5 CDDB shared library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libkf5cddb}
KDE Frameworks 5 CDDB shared library.

%files -n %{libkf5cddb}
%{_kde5_libdir}/libKF5Cddb.so.%{kf5cddb_major}*

#----------------------------------------------------------------------------

%define devkf5cddb %mklibname kf5cddb -d

%package -n %{devkf5cddb}
Summary:	Development files for KDE Frameworks 5 CDDB library
Group:		Development/KDE and Qt
Requires:	%{libkf5cddb} = %{EVRD}
Provides:	kf5cddb-devel = %{version}

%description -n %{devkf5cddb}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5cddb}
%dir %{_kde5_includedir}/KF5/KCddb
%{_kde5_includedir}/KF5/KCddb/*
%dir %{_kde5_includedir}/KCddb5/KCDDB
%{_kde5_includedir}/KCddb5/KCDDB/*
%dir %{_kde5_includedir}/KCddb5/kcddb
%{_kde5_includedir}/KCddb5/kcddb/*
%{_kde5_includedir}/KCddb5/kcddb_version.h
%{_kde5_libdir}/cmake/KF5Cddb
%{_kde5_libdir}/libKF5Cddb.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} cddbretrieval5 kcmcddb %{oname}.lang --with-kde --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15807 |21mr|plasma5-libkcompactdisc-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libkcompactdisc

Summary:	KDE Frameworks 5 library for playing & ripping CDs
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Frameworks 5 library for playing & ripping CDs.

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 playing & ripping CDs library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 playing & ripping CDs library translations

%files i18n -f %{oname}.lang

#----------------------------------------------------------------------------

%define kf5compactdisc_major 5
%define libkf5compactdisc %mklibname kf5compactdisc %{kf5compactdisc_major}

%package -n %{libkf5compactdisc}
Summary:	KDE Frameworks 5 playing & ripping CDs shared library
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libkf5compactdisc}
KDE Frameworks 5 playing & ripping CDs shared library.

%files -n %{libkf5compactdisc}
%{_kde5_libdir}/libKF5CompactDisc.so.%{kf5compactdisc_major}*

#----------------------------------------------------------------------------

%define devkf5compactdisc %mklibname kf5compactdisc -d

%package -n %{devkf5compactdisc}
Summary:	Development files for KDE Frameworks 5 playing & ripping CDs library
Group:		Development/KDE and Qt
Requires:	%{libkf5compactdisc} = %{EVRD}
Requires:	pkgconfig(alsa)
Provides:	kf5compactdisc-devel = %{version}

%description -n %{devkf5compactdisc}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5compactdisc}
%dir %{_kde5_includedir}/KF5/KCompactDisc
%{_kde5_includedir}/KF5/KCompactDisc/*
%{_kde5_libdir}/cmake/KF5CompactDisc
%{_kde5_libdir}/libKF5CompactDisc.so
%{_kde5_libdir}/qt5/mkspecs/modules/qt_KCompactDisc.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15808 |21mr|plasma5-libkdegames-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname libkdegames

Summary:	KDE Frameworks 5 games library
Name:		plasma5-%{oname}
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sndfile)

%description
KDE Frameworks 5 games library.

%files
%dir %{_kde5_datadir}/carddecks/
%{_kde5_datadir}/carddecks/*
%{_kde5_datadir}/kconf_update/kgthemeprovider-migration.upd
%{_kde5_datadir}/qlogging-categories5/libkdegames.categories
#----------------------------------------------------------------------------

%package i18n
Summary:	The Analitza library translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
The Analitza library translations.

%files i18n -f libkdegames5.lang

#----------------------------------------------------------------------------

%define qmlkf5kdegames %mklibname kf5kdegames-qml

%package -n %{qmlkf5kdegames}
Summary:	QML plugin for KDE Frameworks 5 games
Group:		System/Libraries
Provides:	kf5kdegames-qml = %{EVRD}

%description -n %{qmlkf5kdegames}
QML plugin for KDE Frameworks 5 games.

%files -n %{qmlkf5kdegames}
%dir %{_kde5_qmldir}/org/kde/games/
%{_kde5_qmldir}/org/kde/games/*

#----------------------------------------------------------------------------

%define kf5kdegames_major 7
%define libkf5kdegames %mklibname kf5kdegames %{kf5kdegames_major}

%package -n %{libkf5kdegames}
Summary:	KDE Frameworks 5 games shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n
Requires:	kf5kdegames-qml

%description -n %{libkf5kdegames}
KDE Frameworks 5 games shared library.

%files -n %{libkf5kdegames}
%{_kde5_libdir}/libKF5KDEGames.so.%{kf5kdegames_major}*

#----------------------------------------------------------------------------

%define kf5kdegamesprivate_major 7
%define libkf5kdegamesprivate %mklibname kf5kdegamesprivate %{kf5kdegamesprivate_major}

%package -n %{libkf5kdegamesprivate}
Summary:	KDE Frameworks 5 games shared library
Group:		System/Libraries

%description -n %{libkf5kdegamesprivate}
KDE Frameworks 5 games shared library.

%files -n %{libkf5kdegamesprivate}
%{_kde5_libdir}/libKF5KDEGamesPrivate.so.%{kf5kdegamesprivate_major}*

#----------------------------------------------------------------------------

%define devkf5kdegames %mklibname kf5kdegames -d

%package -n %{devkf5kdegames}
Summary:	Development files for KDE Frameworks 5 games library
Group:		Development/KDE and Qt
Requires:	%{libkf5kdegames} = %{EVRD}
Requires:	%{libkf5kdegamesprivate} = %{EVRD}
Provides:	kf5kdegames-devel = %{version}

%description -n %{devkf5kdegames}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5kdegames}
%dir %{_kde5_includedir}/KF5/KDEGames
%{_kde5_includedir}/KF5/KDEGames/*
%{_kde5_libdir}/cmake/KF5KDEGames
%{_kde5_libdir}/libKF5KDEGames.so
%{_kde5_libdir}/libKF5KDEGamesPrivate.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libkdegames5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15809 |21mr|plasma5-look-and-feel-rosa-fresh-6.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA Desktop Fresh look and feel for Plasma 5
Name:		plasma5-look-and-feel-rosa-fresh
Version:	6.2.5
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
Source0:	https://abf.io/uxteam/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5plasma-devel
Requires:	plasma5-color-scheme-rosa
Requires:	plasma5-desktoptheme-rosa-fresh
Requires:	plasma5-wallpaper-rosa-fresh
Requires:	plasma5-rosa-icons
Requires:	plasma5-rosa-icons-dark
Provides:	plasma5-look-and-feel-default = %{EVRD}
BuildArch:	noarch

%description
ROSA look and feel for Plasma 5.

%files
%dir %{_kde5_datadir}/plasma/look-and-feel/org.kde.rosalight.desktop/
%{_kde5_datadir}/plasma/look-and-feel/org.kde.rosalight.desktop/*
%dir %{_kde5_datadir}/plasma/look-and-feel/org.kde.rosadark.desktop/
%{_kde5_datadir}/plasma/look-and-feel/org.kde.rosadark.desktop/*
%{_appdatadir}/org.kde.rosalight.desktop.appdata.xml
%{_appdatadir}/org.kde.rosadark.desktop.appdata.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15810 |21mr|plasma5-mobile-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-mobile

Summary:	Plasma components for mobile phones
Name:		plasma5-mobile
Version:	5.27.11
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv2+
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source1:	plasma-mobile-5.27_ru.tar.gz
#Patch0:		plasma-mobile.desktop.rus.patch
Patch1:		plasma-mobile_pot.patch
#Patch2:		plasma-mobile_cmake.patch
Patch3:		locale_string.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kde-cli-tools
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	plasma-framework
BuildRequires:	plasma5-kwin-devel
BuildRequires:	plasma5-workspace-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	pkgconfig(gstreamer-1.0)
Requires:	plasma5-workspace
Requires:	plasma5-nano
Requires:	plasma5-kwin
Requires:	plasma5-pulseaudio
Requires:	plasma5-nm-mobile
Requires:	qt5-qtquickcontrols2
Requires:	qt5-qtvirtualkeyboard
Requires:	qt5-wayland-client
Requires:	qt5-wayland-compositor
Requires:	kwayland-integration
# Used by the screenshot button
Requires:	spectacle
Provides:   plasma-mobile-wayland = %{EVRD}

%description
Plasma components for mobile phones.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kcm_mobileshell.desktop
%{_kde5_bindir}/startplasmamobile
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_mobileshell.so
%{_qt5_plugindir}/plasma/applets/plasma_applet_phonepanel.so
%{_qt5_plugindir}/plasma/applets/plasma_containment_phone_homescreen.so
%{_qt5_plugindir}/plasma/applets/plasma_containment_phone_homescreen_halcyon.so
%{_qt5_plugindir}/plasma/applets/plasma_containment_phone_taskpanel.so
%{_kde5_qmldir}/org/kde/plasma/mm
%{_kde5_qmldir}/org/kde/plasma/private/mobileshell
%{_kde5_qmldir}/org/kde/plasma/quicksetting/
%{_appdatadir}/org.kde.plasma.phone.appdata.xml
%{_appdatadir}/org.kde.plasma.phoneshell.appdata.xml
%{_kde5_datadir}/kpackage/kcms/kcm_mobileshell
%{_kde5_datadir}/plasma/look-and-feel/org.kde.plasma.phone
%{_kde5_datadir}/plasma/plasmoids/org.kde.phone.homescreen
%{_kde5_datadir}/plasma/plasmoids/org.kde.phone.homescreen.halcyon
%{_kde5_datadir}/plasma/plasmoids/org.kde.phone.panel
%{_kde5_datadir}/plasma/plasmoids/org.kde.phone.taskpanel
%{_kde5_datadir}/plasma/shells/org.kde.plasma.phoneshell
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.airplanemode
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.audio
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.battery
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.bluetooth
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.caffeine
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.donotdisturb
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.flashlight
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.keyboardtoggle
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.mobiledata
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.nightcolor
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.powermenu
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.record
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.screenrotation
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.screenshot
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.settingsapp
%{_kde5_datadir}/plasma/quicksettings/org.kde.plasma.quicksetting.wifi
%{_kde5_datadir}/wayland-sessions/plasma-mobile.desktop
%{_kde5_services}/plasma-applet-org.kde.plasma.phone.desktop
%{_kde5_notificationsdir}/plasma_phone_components.notifyrc
%{_appdatadir}/org.kde.phone.homescreen.appdata.xml
%{_appdatadir}/org.kde.phone.homescreen.halcyon.appdata.xml
%{_appdatadir}/org.kde.phone.panel.appdata.xml
%{_appdatadir}/org.kde.phone.taskpanel.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.airplanemode.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.audio.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.battery.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.bluetooth.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.caffeine.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.donotdisturb.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.flashlight.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.keyboardtoggle.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.mobiledata.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.nightcolor.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.powermenu.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.record.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.screenrotation.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.screenshot.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.settingsapp.appdata.xml
%{_appdatadir}/org.kde.plasma.quicksetting.wifi.appdata.xml


#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n plasma-mobile-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15811 |21mr|plasma5-mobile-config-0.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

Summary:	Plasma 5 Rosa Desktop Fresh config
Name:		plasma5-mobile-config
Version:	0.0.2
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.ru/
Source0:	kcmfonts
Source1:	kdeglobals
Source2:	kscreenlockerrc
Source3:	kscreensaverrc
Source4:	ksmserverrc
Source6:	kwinrc
Source7:	plasma-nm
Source8:	plasmarc
Source9:	plasmashellrc
BuildRequires:	extra-cmake-modules
Provides:	plasma5-config
# compat with OMV
Provides:	distro-release-desktop-Plasma-Mobile
Conflicts:	plasma5-config-fresh
BuildArch:	noarch

%description
Plasma 5 Rosa config mobile.

%files
%{_kde5_sysconfdir}/xdg/kcmfonts
%{_kde5_sysconfdir}/xdg/kdeglobals
%{_kde5_sysconfdir}/xdg/kscreenlockerrc
%{_kde5_sysconfdir}/xdg/kscreensaverrc
%{_kde5_sysconfdir}/xdg/ksmserverrc
%{_kde5_sysconfdir}/xdg/kwinrc
%{_kde5_sysconfdir}/xdg/plasma-nm
%{_kde5_sysconfdir}/xdg/plasmarc
%{_kde5_sysconfdir}/xdg/plasmashellrc

#----------------------------------------------------------------------------

%prep

%build

%install

mkdir -p %{buildroot}%{_kde5_sysconfdir}/xdg
install -m 0644 %{SOURCE0} %{buildroot}%{_kde5_sysconfdir}/xdg/kcmfonts
install -m 0644 %{SOURCE1} %{buildroot}%{_kde5_sysconfdir}/xdg/kdeglobals
install -m 0644 %{SOURCE2} %{buildroot}%{_kde5_sysconfdir}/xdg/kscreenlockerrc
install -m 0644 %{SOURCE3} %{buildroot}%{_kde5_sysconfdir}/xdg/kscreensaverrc
install -m 0644 %{SOURCE4} %{buildroot}%{_kde5_sysconfdir}/xdg/ksmserverrc
install -m 0644 %{SOURCE6} %{buildroot}%{_kde5_sysconfdir}/xdg/kwinrc
install -m 0644 %{SOURCE7} %{buildroot}%{_kde5_sysconfdir}/xdg/plasma-nm
install -m 0644 %{SOURCE8} %{buildroot}%{_kde5_sysconfdir}/xdg/plasmarc
install -m 0755 %{SOURCE9} %{buildroot}%{_kde5_sysconfdir}/xdg/plasmashellrc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15812 |21mr|plasma5-nano-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-nano

Summary:	Plasma interface for embedded devices
Name:		plasma5-nano
Version:	5.27.11
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv2/LGPLv2/LGPLv2.1
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	plasma-framework
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5windowsystem-devel

%description
Plasma interface for embedded devices.

%files -f plasma-nano.lang
%{_kde5_qmldir}/org/kde/plasma/private/nanoshell
%{_appdatadir}/org.kde.plasma.nano.desktoptoolbox.appdata.xml
%{_kde5_datadir}/plasma/packages/org.kde.plasma.nano.desktoptoolbox
%{_kde5_datadir}/plasma/shells/org.kde.plasma.nano
%{_kde5_services}/plasma-applet-org.kde.plasma.nano.desktop
%{_kde5_services}/plasma-package-org.kde.plasma.nano.desktoptoolbox.desktop

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang plasma-nano --all-name --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15813 |21mr|plasma5-nm-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%define oname plasma-nm

Summary:	Plasma 5 applet network management module
Name:		plasma5-nm
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Patch1:	    dtranslation_domain.patch
Patch2:	    fix-min-uid.patch
# Related MR: https://invent.kde.org/plasma/plasma-nm/-/merge_requests/364
Patch3:	    fix-all-active-wireless.patch
# Related MR: https://invent.kde.org/plasma/plasma-nm/-/merge_requests/368
Patch4:	    fix-uri-in-path.patch
Source100:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5completion-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(mobile-broadband-provider-info)
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	pkgconfig(openconnect)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5prison-devel
Requires:	prison
Requires:	kirigami2
Requires:	networkmanager
Requires:	qca2-qt5-plugin-openssl
Recommends:	mobile-broadband-provider-info
Recommends:	modemmanager
Conflicts:	plasma-applet-networkmanagement
Conflicts:	plasma-nm
Conflicts:	knetworkmanager-common

%description
Plasma 5 applet network management module. It provides plasma applet and
editor for managing your network connections in Plasma 5 using the default
NetworkManager service.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kcm_networkmanagement.desktop
%dir %{_kde5_datadir}/kcm_networkmanagement/
%{_kde5_datadir}/kcm_networkmanagement/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.networkmanagement/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.networkmanagement/*
%{_kde5_libdir}/libplasmanm_editor.so
%{_kde5_libdir}/libplasmanm_internal.so
%{_kde5_notificationsdir}/networkmanagement.notifyrc
%dir %{_kde5_qmldir}/org/kde/plasma/networkmanagement/
%{_kde5_qmldir}/org/kde/plasma/networkmanagement/*
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_networkmanagement.so
%{_kde5_plugindir}/kded/networkmanagement.so
%{_qt5_plugindir}/plasma/network/vpn/*
%{_appdatadir}/org.kde.plasma.networkmanagement.appdata.xml
%{_kde5_datadir}/qlogging-categories5/plasma-nm.categories

#----------------------------------------------------------------------------

%package mobile
Summary:	Plasma Mobile interface to NetworkManager
Group:		Graphical desktop/KDE

%description mobile
Plasma Mobile interface to NetworkManager

%files mobile -f %{name}-mobile.lang
%{_qt5_plugindir}/kcms/kcm_mobile_*.so
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_hotspot
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_wifi

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%cmake_kde5 -DBUILD_MOBILE:BOOL=ON
%make

%install
%makeinstall_std -C build

for i in plasma_applet_org.kde.plasma.networkmanagement \
    plasmanetworkmanagement-kcm plasmanetworkmanagement-kded \
    plasmanetworkmanagement-libs plasmanetworkmanagement_fortisslvpnui \
    plasmanetworkmanagement_iodineui plasmanetworkmanagement_l2tpui \
    plasmanetworkmanagement_libreswanui plasmanetworkmanagement_openconnectui \
    plasmanetworkmanagement_openvpnui plasmanetworkmanagement_pptpui \
    plasmanetworkmanagement_sshui plasmanetworkmanagement_sstpui \
    plasmanetworkmanagement_strongswanui plasmanetworkmanagement_vpncui; do
	%find_lang $i --with-html --with-man
	cat $i.lang >>%{oname}.lang
done

for i in kcm_mobile_hotspot kcm_mobile_wifi; do
    %find_lang $i --with-html --with-man
    cat $i.lang >>%{name}-mobile.lang
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15814 |21mr|plasma5-powerdevil-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname powerdevil

Summary:	Plasma 5 power management module
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source1:	powerdevil-switch-to-ignore.conf
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5auth-devel
BuildRequires:	kf5bluezqt-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	plasma5-workspace-devel >= %{version}
BuildRequires:	pkgconfig(kscreen2)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-randr)
BuildRequires:	pkgconfig(xrandr)
Recommends: power-profiles-daemon

%description
Plasma 5 power management module.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kcm_powerdevilactivitiesconfig.desktop
%{_kde5_applicationsdir}/kcm_powerdevilglobalconfig.desktop
%{_kde5_applicationsdir}/kcm_powerdevilprofilesconfig.desktop
%{_kde5_autostart}/powerdevil.desktop
%{_kde5_libexecdir}/org_kde_powerdevil
%{_kde5_libexecdir}/kauth/backlighthelper
%{_kde5_libexecdir}/kauth/discretegpuhelper
%{_kde5_libexecdir}/kauth/chargethresholdhelper
%{_kde5_notificationsdir}/powerdevil.notifyrc
%{_kde5_plugindir}/powerdevil/powerdevilupowerbackend.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_powerdevilactivitiesconfig.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_powerdevilglobalconfig.so
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_powerdevilprofilesconfig.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_brightnesscontrolaction.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_dimdisplayaction.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_dpmsaction.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_handlebuttoneventsaction.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_keyboardbrightnesscontrolaction.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_powerprofileaction.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_runscriptaction.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_suspendsessionaction.so
%{_qt5_plugindir}/powerdevil/action/powerdevil_wirelesspowersavingaction.so
%{_qt5_plugindir}/powerdevil*.so
%{_datadir}/dbus-1/system-services/org.kde.powerdevil.backlighthelper.service
%{_datadir}/dbus-1/system-services/org.kde.powerdevil.discretegpuhelper.service
%{_datadir}/dbus-1/system.d/org.kde.powerdevil.backlighthelper.conf
%{_datadir}/dbus-1/system.d/org.kde.powerdevil.discretegpuhelper.conf
%{_datadir}/dbus-1/system-services/org.kde.powerdevil.chargethresholdhelper.service
%{_datadir}/dbus-1/system.d/org.kde.powerdevil.chargethresholdhelper.conf
%{_datadir}/polkit-1/actions/org.kde.powerdevil.backlighthelper.policy
%{_datadir}/polkit-1/actions/org.kde.powerdevil.discretegpuhelper.policy
%{_datadir}/polkit-1/actions/org.kde.powerdevil.chargethresholdhelper.policy
%{_userunitdir}/plasma-powerdevil.service
%{_kde5_datadir}/qlogging-categories5/powerdevil.categories
%{_systemd_util_dir}/logind.conf.d/powerdevil-switch-to-ignore.conf

#----------------------------------------------------------------------------

%define powerdevilconfigcommonprivate_major 5
%define libpowerdevilconfigcommonprivate %mklibname powerdevilconfigcommonprivate %{powerdevilconfigcommonprivate_major}

%package -n %{libpowerdevilconfigcommonprivate}
Summary:	Plasma 5 power management shared library
Group:		System/Libraries

%description -n %{libpowerdevilconfigcommonprivate}
Plasma 5 power management shared library.

%files -n %{libpowerdevilconfigcommonprivate}
%{_kde5_libdir}/libpowerdevilconfigcommonprivate.so.%{powerdevilconfigcommonprivate_major}*

#----------------------------------------------------------------------------

%define powerdevilcore_major 2
%define libpowerdevilcore %mklibname powerdevilcore %{powerdevilcore_major}

%package -n %{libpowerdevilcore}
Summary:	Plasma 5 power management shared library
Group:		System/Libraries

%description -n %{libpowerdevilcore}
Plasma 5 power management shared library.

%files -n %{libpowerdevilcore}
%{_kde5_libdir}/libpowerdevilcore.so.%{powerdevilcore_major}*
%{_kde5_libdir}/libpowerdevilcore.so.%{version}

#----------------------------------------------------------------------------

%define powerdevilui_major 5
%define libpowerdevilui %mklibname powerdevilui %{powerdevilui_major}

%package -n %{libpowerdevilui}
Summary:	Plasma 5 power management shared library
Group:		System/Libraries

%description -n %{libpowerdevilui}
Plasma 5 power management shared library.

%files -n %{libpowerdevilui}
%{_kde5_libdir}/libpowerdevilui.so.%{powerdevilui_major}*

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# We don't have headers
rm -f %{buildroot}%{_libdir}/libpowerdevilconfigcommonprivate.so
rm -f %{buildroot}%{_libdir}/libpowerdevilcore.so
rm -f %{buildroot}%{_libdir}/libpowerdevilui.so

mkdir -p %{buildroot}%{_systemd_util_dir}/logind.conf.d

install -pm644 %{SOURCE1} %{buildroot}%{_systemd_util_dir}/logind.conf.d

%find_lang %{oname} libpowerdevilcommonconfig powerdevilactivitiesconfig powerdevilglobalconfig powerdevilprofilesconfig \
           %{oname}.lang --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15815 |21mr|plasma5-pulseaudio-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-pa

Summary:	Plasma 5 PulseAudio configuration module
Name:		plasma5-pulseaudio
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Patch0:		plasma-pa-5.14.4-kde4-path.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libcanberra)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	kf5kirigami2-devel
BuildRequires:	sound-theme-freedesktop
Requires:	sound-theme-freedesktop
Requires:	kirigami2
Requires:	plasma5-applet-plasma-volume
Requires:	plasmavolume-qml
Conflicts:	plasma5-kmix

%description
Plasma 5 PulseAudio configuration module.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kcm_pulseaudio.desktop
%dir %{_kde5_datadir}/kpackage/kcms/kcm_pulseaudio/
%{_kde5_datadir}/kpackage/kcms/kcm_pulseaudio/*
%{_kde5_datadir}/kconf_update/disable_kmix.upd
%{_kde5_datadir}/kconf_update/plasmaVolumeDisableKMixAutostart.pl
%{_kde5_services}/plasma-applet-org.kde.plasma.volume.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_pulseaudio.so
# KDE4 files
%{_datadir}/apps/kconf_update/disable_kmix.upd
%{_datadir}/apps/kconf_update/plasmaVolumeDisableKMixAutostart.pl

#----------------------------------------------------------------------------

%package -n plasma5-applet-plasma-volume
Summary:	Plasma 5 volume plasmoid
Group:		Graphical desktop/KDE
Requires:	plasmavolume-qml

%description -n plasma5-applet-plasma-volume
Plasma 5 volume plasmoid.

%files -n plasma5-applet-plasma-volume -f plasma_applet_org.kde.plasma.volume.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.volume/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.volume/*
%{_appdatadir}/org.kde.plasma.volume.appdata.xml

#----------------------------------------------------------------------------

%define qmlplasmavolume %mklibname plasmavolume-qml

%package -n %{qmlplasmavolume}
Summary:	QML plugin for Plasma 5 volume shared library
Group:		System/Libraries
Requires:	kf5plasma-qml
Provides:	plasmavolume-qml = %{EVRD}

%description -n %{qmlplasmavolume}
QML plugin for Plasma 5 volume shared library.

%files -n %{qmlplasmavolume}
%dir %{_kde5_qmldir}/org/kde/plasma/private/volume/
%{_kde5_qmldir}/org/kde/plasma/private/volume/*

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}
%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

rm -f %{buildroot}%{_kde5_libdir}/libQPulseAudioPrivate.so

%find_lang kcm_pulseaudio plasma-pa %{name}.lang --with-html --with-kde
%find_lang plasma_applet_org.kde.plasma.volume

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15816 |21mr|plasma5-rosa-icons-0.0.22-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NOTE: rebuild rosa-icons-2021 after changing icons here

%define oname rosa5-icons

Summary:	KDE Frameworks 5 Rosa icons
Name:		plasma5-rosa-icons
Version:	0.0.22
Release:	3
License:	LGPLv3+
Group:		Graphical desktop/KDE
# Tarball is packed manually
# To repack it:
# tar -xvf <original tarball>
# edit icons
# mv rosa-icons-<previous version> mv rosa-icons-<version+1>
# tar -czvf rosa5-icons-<version+1>.tar.xz -C . rosa5-icons-<version+1>
# abf put
Source0:	%{oname}-%{version}.tar.xz
Source2:	yandex-browser.svg
BuildRequires:	extra-cmake-modules
BuildRequires:	libxml2-utils
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Test)
BuildArch:	noarch

%description
KDE Frameworks 5 Rosa icons.
Fork of breeze icon theme.

%files
%dir %{_kde5_iconsdir}/rosa5
%{_kde5_iconsdir}/rosa5/*

#----------------------------------------------------------------------------

%package -n plasma5-rosa-icons-dark
Summary:	Plasma 5 Rosa Dark icon theme
Group:		Graphical desktop/KDE

%description -n plasma5-rosa-icons-dark
Plasma 5 Rosa Dark icon theme.

%files -n plasma5-rosa-icons-dark
%dir %{_kde5_iconsdir}/rosa5-dark
%{_kde5_iconsdir}/rosa5-dark/*

#----------------------------------------------------------------------------


%prep
%autosetup -p1 -n %{oname}-%{version}

# update yandex-browser icon
rm ./icons/apps/48/yandex-browser.svg
rm ./icons-dark/apps/48/yandex-browser.svg
cp %{SOURCE2} ./icons/apps/48/
cp %{SOURCE2} ./icons-dark/apps/48/

%build
%cmake_kde5 \
	-DBINARY_ICONS_RESOURCE:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15817 |21mr|plasma5-sdk-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-sdk

Summary:	Plasma 5 SDK
Name:		plasma5-sdk
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Patch0:		fix.build.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	plasma-framework
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	kf5kirigami2-devel
Requires:	kirigami2
Requires:	plasma5-cuttlefish
Requires:	plasma5-engineexplorer
Requires:	plasma5-lookandfeelexplorer
Requires:	plasma5-plasmoidviewer
Requires:	plasma5-themeexplorer

%description
Plasma 5 SDK.

%files

#----------------------------------------------------------------------------

%package -n plasma5-cuttlefish
Summary:	Plasma 5 icon browser
Group:		Graphical desktop/KDE

%description -n plasma5-cuttlefish
Plasma 5 icon browser.

%files -n plasma5-cuttlefish -f cuttlefish.lang
%{_kde5_applicationsdir}/org.kde.plasma.cuttlefish.desktop
%{_kde5_bindir}/cuttlefish
%{_qt5_plugindir}/ktexteditor/cuttlefishplugin.so
%{_appdatadir}/org.kde.plasma.cuttlefish.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-engineexplorer
Summary:	Plasma 5 engine explorer
Group:		Graphical desktop/KDE
Conflicts:	plasmate

%description -n plasma5-engineexplorer
Plasma 5 engine explorer. It's used to explore plasma data engines.

%files -n plasma5-engineexplorer -f plasmaengineexplorer.lang
%{_kde5_applicationsdir}/org.kde.plasmaengineexplorer.desktop
%{_kde5_bindir}/plasmaengineexplorer
%{_kde5_services}/plasma-shell-org.kde.plasma.plasmoidviewershell.desktop
%{_kde5_mandir}/man1/plasmaengineexplorer.1*
%{_kde5_mandir}/*/man1/plasmaengineexplorer.1*
%{_appdatadir}/org.kde.plasmaengineexplorer.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-lookandfeelexplorer
Summary:	Plasma 5 look-and-feel explorer
Group:		Graphical desktop/KDE

%description -n plasma5-lookandfeelexplorer
Plasma 5 look-and-feel explorer. It's used to explore plasma look-and-feel
styles.

%files -n plasma5-lookandfeelexplorer -f org.kde.plasma.lookandfeelexplorer.lang
%{_kde5_applicationsdir}/org.kde.plasma.lookandfeelexplorer.desktop
%{_kde5_bindir}/lookandfeelexplorer
%dir %{_kde5_datadir}/kpackage/genericqml/org.kde.plasma.lookandfeelexplorer/
%{_kde5_datadir}/kpackage/genericqml/org.kde.plasma.lookandfeelexplorer/*
%{_appdatadir}/org.kde.plasma.lookandfeelexplorer.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-plasmoidviewer
Summary:	Plasma 5 plasmoid viewer
Group:		Graphical desktop/KDE
Requires:	plasma5-shell-plasmoidviewer
Conflicts:	plasmate

%description -n plasma5-plasmoidviewer
Plasma 5 plasmoid viewer. It's used to run plasmoids in their own window.

%files -n plasma5-plasmoidviewer -f plasmoidviewer.lang
%{_kde5_applicationsdir}/org.kde.plasmoidviewer.desktop
%{_kde5_bindir}/plasmoidviewer
%{_kde5_datadir}/zsh/site-functions/_plasmoidviewer
%{_kde5_mandir}/man1/plasmoidviewer.1*
%{_kde5_mandir}/*/man1/plasmoidviewer.1*
%{_appdatadir}/org.kde.plasmoidviewer.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-shell-plasmoidviewer
Summary:	Plasma 5 plasmoid viewer shell
Group:		Graphical desktop/KDE
# Not sure if it's required
Recommends:	plasma5-plasmoidviewer

%description -n plasma5-shell-plasmoidviewer
Plasma 5 plasmoid viewer shell.

%files -n plasma5-shell-plasmoidviewer -f plasma_shell_org.kde.plasmoidviewershell.lang
%dir %{_kde5_datadir}/plasma/shells/org.kde.plasma.plasmoidviewershell/
%{_kde5_datadir}/plasma/shells/org.kde.plasma.plasmoidviewershell/*
%{_appdatadir}/org.kde.plasma.plasmoidviewershell.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-themeexplorer
Summary:	Plasma 5 theme explorer
Group:		Graphical desktop/KDE

%description -n plasma5-themeexplorer
Plasma 5 theme explorer. It's used to explore and edit plasma themes.

%files -n plasma5-themeexplorer -f org.kde.plasma.themeexplorer.lang
%{_kde5_applicationsdir}/org.kde.plasma.themeexplorer.desktop
%{_kde5_bindir}/plasmathemeexplorer
%dir %{_kde5_datadir}/kpackage/genericqml/org.kde.plasma.themeexplorer/
%{_kde5_datadir}/kpackage/genericqml/org.kde.plasma.themeexplorer/*
%{_appdatadir}/org.kde.plasma.themeexplorer.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}
# Must not be plasma_shell_org.kde.desktop, should be checked if fixed
rm -f po/*/plasma_shell_org.kde.desktop.po
# Don't ship translations if we don't ship package itself
rm -f po/*/kdevpackagemanagerview.po
rm -f po/*/plasmate.po
rm -f po/*/plasmawallpaperviewer.po
rm -f po/*/remote-widgets-browser.po

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang cuttlefish cuttlefish_editorplugin cuttlefish.lang
%find_lang plasmaengineexplorer
%find_lang plasmoidviewer
%find_lang org.kde.plasma.lookandfeelexplorer
%find_lang org.kde.plasma.themeexplorer
%find_lang plasma_shell_org.kde.plasmoidviewershell

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15818 |21mr|plasma5-systemd-kcm-1.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname systemd-kcm

Summary:	Plasma 5 systemd control module
Name:		plasma5-%{oname}
Version:	1.2.1
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://github.com/rthomsen/kcmsystemd
Source0:	ftp://ftp.kde.org/pub/kde/stable/%{oname}/%{oname}-%{version}.tar.xz
Patch0:		systemd-kcm-1.2.1-desktop-localization.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5service-devel
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(systemd)
Conflicts:	kcmsystemd

%description
Plasma 5 systemd control module.

%files -f %{oname}.lang
%{_kde5_services}/kcm_systemd.desktop
%{_kde5_libexecdir}/kauth/kcmsystemdhelper
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmsystemd.service
%{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmsystemd.conf
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmsystemd.policy
%{_qt5_plugindir}/kcm_systemd.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# We ship it in plasma5-systemsettings package
rm -rf %{buildroot}%{_kde5_services}/settings-system-administration.desktop

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15819 |21mr|plasma5-systemmonitor-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-systemmonitor

Summary:	Plasma 5 system monitoring module
Name:		plasma5-systemmonitor
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5init-devel
BuildRequires:	kf5itemmodels-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5sysguard-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	lm_sensors-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)
# For scripts
Requires:	ksystemstats = %{version}
Requires:	libksysguard = %{version}
%description
Plasma 5 system monitoring module.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/org.kde.plasma-systemmonitor.desktop
%{_kde5_bindir}/plasma-systemmonitor
%{_kde5_qmldir}/org/kde/ksysguard/
%{_kde5_datadir}/config.kcfg/systemmonitor.kcfg
%{_kde5_datadir}/ksysguard/sensorfaces/*
%{_kde5_datadir}/plasma/kinfocenter/externalmodules/kcm_external_plasma-systemmonitor.desktop
%{_kde5_datadir}/plasma-systemmonitor/*.page
%{_kde5_datadir}/knsrcfiles/plasma-systemmonitor.knsrc
%{_appdatadir}/org.kde.plasma-systemmonitor.metainfo.xml

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} --all-name --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15820 |21mr|plasma5-systemsettings-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0
%define oname systemsettings

Summary(ru_RU.UTF-8):	Модуль системных настроек Plasma 5
Summary:	Plasma 5 System Settings module
Name:		plasma5-%{oname}
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
# Add "System" to desktop categories
Patch0:		systemsettings-5.21.3-desktop-categories.patch
Patch1:		0001-Fix-name-systemsettings-kcm-modules.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activitiesstats-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kirigami2-devel
BuildRequires:	plasma5-workspace-devel >= %{version}
Requires:	kirigami2
Requires:	qml(org.kde.kcm)
Conflicts:	kdebase4-workspace

%description
Plasma 5 System Settings module. It provides the user with a centralized
and convenient way to configure all of the settings for your desktop.

%description -l ru_RU.UTF-8
Модуль системных настроек Plasma 5. Пользователю предоставляется
централизованный и удобный способ настройки всех параметров рабочего стола.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/kdesystemsettings.desktop
%{_kde5_applicationsdir}/systemsettings.desktop
%{_kde5_bindir}/systemsettings5
%{_kde5_bindir}/systemsettings
%dir %{_kde5_datadir}/systemsettings/
%{_kde5_datadir}/systemsettings/*
%{_kde5_datadir}/kglobalaccel/systemsettings.desktop
%{_kde5_datadir}/kpackage/genericqml/org.kde.systemsettings.sidebar/
%{_kde5_datadir}/qlogging-categories5/systemsettings.categories
%{_kde5_datadir}/zsh/site-functions/_systemsettings
%{_kde5_servicetypes}/systemsettings*.desktop
%{_kde5_servicetypes}/infocenterexternalapp.desktop
%{_kde5_xmlguidir}/systemsettings/systemsettingsui.rc
%{_kde5_plugindir}/krunner/krunner_systemsettings.so
%{_qt5_plugindir}/systemsettingsview/icon_mode.so
%{_qt5_plugindir}/systemsettingsview/systemsettings_sidebar_mode.so
%{_appdatadir}/org.kde.systemsettings.metainfo.xml

#----------------------------------------------------------------------------

%define systemsettingsview_major 3
%define libsystemsettingsview %mklibname systemsettingsview %{systemsettingsview_major}

%package -n %{libsystemsettingsview}
Summary:	Plasma 5 System Settings shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libsystemsettingsview}
Plasma 5 System Settings shared library.

%files -n %{libsystemsettingsview}
%{_kde5_libdir}/libsystemsettingsview.so.%{systemsettingsview_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
export PATH=%{_qt5_bindir}:$PATH
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname} %{oname} %{oname}.lang --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15821 |21mr|plasma5-thunderbolt-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-thunderbolt

Summary:	Plasma addons for managing Thunderbolt devices
Name:		plasma5-thunderbolt
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source1:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:		bolt

%description
Plasma Sytem settings module and a KDED module to handle authorization
of Thunderbolt devices connected to the computer.

%files -f %{name}.lang
%{_kde5_applicationsdir}/kcm_bolt.desktop
%{_kde5_libdir}/libkbolt.so
%{_kde5_plugindir}/kded/kded_bolt.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_bolt.so
%{_kde5_datadir}/kpackage/kcms/kcm_bolt/
%{_kde5_notificationsdir}/kded_bolt.notifyrc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15822 |21mr|plasma5-vault-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-vault

Summary:	Plasma 5 Vault applet
Name:		plasma5-vault
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	http://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kded-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5sysguard-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	encfs
#Requires:	cryfs
Requires:	kirigami2

%description
Plasma Vault allows to lock and encrypt sets of documents and hide them from
prying eyes even when the user is logged in.

%files -f plasmavault-kde.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.vault/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.vault/*
%{_kde5_services}/plasma-applet-org.kde.plasma.vault.desktop
%{_appdatadir}/org.kde.plasma.vault.appdata.xml
%{_kde5_plugindir}/kded/plasmavault.so
%{_kde5_plugindir}/kfileitemaction/plasmavaultfileitemaction.so
%{_qt5_plugindir}/plasma/applets/plasma_applet_vault.so

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasmavault-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15823 |21mr|plasma5-wallpaper-rosa-fresh-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 ROSA wallpaper support
Name:		plasma5-wallpaper-rosa-fresh
Version:	3.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
Source0:	%{name}-%{version}.tar.gz
BuildRequires:	extra-cmake-modules
Requires:	rosa-wallpapers-2021
Provides:	plasma5-wallpaper-default = %{EVRD}
BuildArch:	noarch

%description
Plasma 5 ROSA wallpaper support

%files
%dir %{_kde5_datadir}/wallpapers/ROSA-Light/
%{_kde5_datadir}/wallpapers/ROSA-Light/*

%dir %{_kde5_datadir}/wallpapers/ROSA-Dark/
%{_kde5_datadir}/wallpapers/ROSA-Dark/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_kde5

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15824 |21mr|plasma5-welcome-5.25.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-welcome

Summary:	A Friendly onboarding wizard for Plasma
Name:		plasma5-welcome
Version:	5.25.5
Release:	5
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
# #Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
Source0:	plasma-welcome-Plasma-5.27.tar.bz2
Source1:	01-dragora.qml
Patch1:		fix.version.patch
Patch2:		fix.rus.patch
Patch3:		0001-removed-Discover.qml.patch
Patch4:		0002-russian-po-fixed-for-01-dragora.qml.patch
Patch5:		0003-russian-krunner-examples-fixed.patch 
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kaccounts-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)

%description
Welcome Center is the perfect introduction to KDE Plasma.
It can help you learn how to connect to the internet,
install apps, customize the system, and more.

%files -f %{oname}.lang
%{_kde5_applicationsdir}/org.kde.plasma-welcome.desktop
%{_kde5_bindir}/plasma-welcome
%{_kde5_qmldir}/org/kde/plasma/welcome
%{_sysconfdir}/xdg/autostart/org.kde.plasma-welcome.desktop
%{_appdatadir}/org.kde.plasma-welcome.appdata.xml
%dir %{_datadir}/plasma-welcome-extra-pages/
%{_datadir}/plasma-welcome-extra-pages/*.qml
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-Plasma-5.27

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
mkdir -p %{buildroot}%{_datadir}/plasma-welcome-extra-pages/
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/plasma-welcome-extra-pages/

%find_lang %{oname} %{oname}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15825 |21mr|plasma5-workspace-5.27.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0
%define oname plasma-workspace

%bcond_with wayland_default
%bcond_with sddm_wayland_default

Summary:	Plasma 5 Workspace module
Name:		plasma5-workspace
Version:	5.27.11
Release:	7
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.1.tar.xz
Source1:	kde.pam
Source2:	plasma-workspace-5.26.8_ru.tar.gz
Source4:	splash_rosa.tar.gz
Source6:	splash_previews.tar.gz
Source100:	plasma5-workspace.rpmlintrc
Patch0:		plasma-workspace-splash.patch
Patch1:		plasma-workspace-5.21.3-klipper-hide.patch
Patch2:		plasma-workspace-5.21.3-default-fonts.patch
Patch3:		colorsheme.patch
## downstream Patches from Fedora
# default to folderview (instead of desktop) containment, see also
# https://mail.kde.org/pipermail/distributions/2016-July/000133.html
# and example,
# https://github.com/notmart/artwork-lnf-netrunner-core/blob/master/usr/share/plasma/look-and-feel/org.kde.netrunner-core.desktop/contents/defaults
Patch105:	plasma-workspace-5.21.90-folderview_layout.patch
# default to enable open terminal action
Patch106:	plasma-workspace-5.25.90-enable-open-terminal-action.patch
# default to enable the lock/logout actions
Patch107:	plasma-workspace-5.25.90-enable-lock-logout-action.patch
# New features to runner
# https://bugs.kde.org/show_bug.cgi?id=474573
# https://bugs.kde.org/show_bug.cgi?id=474574
# https://hub.mos.ru/mos/src/plasma-workspace/-/commit/ba67ab41d49e500e9aebc9cecef3c198d7b94d1f
# https://hub.mos.ru/mos/src/plasma-workspace/-/commit/946b2b2e7ba4a2e4c6596ca183dee5e1d394ecaa
Patch108:	0001-Search-by-Exec-field.patch
Patch109:	0002-Convert-layout-ru-en-of-search-query.patch
# Add message about the need to restart the session
# when changing the look-and-feel theme
Patch110:	look-and-feel-restart-session-msg.patch
# Support new option for KScreenlocker
# (it is needed in order to make auto-switching
# from KScreenlocker to DM)
Patch200:	force-new-session-when-switch-user.patch
# Fixes loading of design from the network
Patch300:	fix.lookandfeel.knsrc.patch
# upstream patches
Patch400:	0001-Check_actual_battery_for_charge_state-workaround.patch
Patch401:	0002-Fix_writing_ICEAuthority_file.patch
Patch402:	0003-Remove_file_system_not_responding_notification.patch
BuildRequires:	breeze-devel
BuildRequires:	extra-cmake-modules
BuildRequires:	plasma-framework
BuildRequires:	appstream-qt5-devel
BuildRequires:	kf5activities-devel
BuildRequires:	kf5activitiesstats-devel
BuildRequires:	kf5auth-devel
BuildRequires:	kf5baloo-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5holidays-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5jsembed-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kded-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kexiv2-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5people-devel
BuildRequires:	kf5pipewire-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5quickcharts-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5su-devel
BuildRequires:	kf5sysguard-devel >= %{version}
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5xmlrpcclient-devel
BuildRequires:	kio-fuse
BuildRequires:	kscreenlocker-devel >= %{version}
BuildRequires:	layershellqt-devel
BuildRequires:	pam-devel
BuildRequires:	plasma5-kio-extras-devel
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	prison-devel
BuildRequires:	plasma5-kwin-devel >= %{version}
BuildRequires:	polkit-qt5-1-devel
BuildRequires:	pkgconfig(dbusmenu-qt5)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(kscreen2) >= %{version}
BuildRequires:	pkgconfig(libqalculate)
BuildRequires:	pkgconfig(libgps)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(packagekitqt5)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(sm)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
# Internal required packages (require them all for now)
Requires:	plasma5-applet-activitybar
Requires:	plasma5-applet-analogclock
Requires:	plasma5-applet-appmenu
Recommends:	plasma5-applet-battery
Requires:	plasma5-applet-calendar
Requires:	plasma5-applet-clipboard
Requires:	plasma5-applet-devicenotifier
Requires:	plasma5-applet-digitalclock
Requires:	plasma5-applet-icon
Requires:	plasma5-applet-lock_logout
# Doesn't look good when there's already player's icon in system tray
Requires:	plasma5-applet-manageinputmethod
Requires:	plasma5-applet-notifications
Requires:	plasma5-applet-panelspacer
Requires:	plasma5-applet-systemmonitor
Requires:	plasma5-applet-systemtray
# Looks bad as for Plasma 5.8
Requires:	plasma5-dataengine-activities
Requires:	plasma5-dataengine-applicationjobs
Requires:	plasma5-dataengine-apps
Requires:	plasma5-dataengine-clipboard
Requires:	plasma5-dataengine-devicenotifications
Requires:	plasma5-dataengine-dict
Requires:	plasma5-dataengine-executable
Requires:	plasma5-dataengine-favicons
Requires:	plasma5-dataengine-filebrowser
Requires:	plasma5-dataengine-geolocation
Requires:	plasma5-dataengine-hotplug
Requires:	plasma5-dataengine-keystate
Requires:	plasma5-dataengine-mouse
Requires:	plasma5-dataengine-mpris2
Requires:	plasma5-dataengine-notifications
Requires:	plasma5-dataengine-packagekit
Requires:	plasma5-dataengine-places
Requires:	plasma5-dataengine-powermanagement
Requires:	plasma5-dataengine-soliddevice
Requires:	plasma5-dataengine-statusnotifieritem
Requires:	plasma5-dataengine-systemmonitor
Requires:	plasma5-dataengine-time
Requires:	plasma5-dataengine-weather
Requires:	plasma5-klipper
Requires:	plasma5-look-and-feel-breeze
Requires:	plasma5-look-and-feel-breeze-dark
Requires:	plasma5-look-and-feel-breeze-twilight
Requires:	plasma5-kcm-colors
Requires:	plasma5-kcm-cursortheme
Requires:	plasma5-kcm-fonts
Requires:	plasma5-kcm-icons
Requires:	plasma5-kcm-style
Requires:	plasma5-kcm-fontinst
Requires:	plasma5-kcm-desktoptheme
Requires:	plasma5-kcm-lookandfeel
# Likely useless for now
Requires:	plasma5-runner-baloosearch
Requires:	plasma5-runner-bookmarks
Requires:	plasma5-runner-calculator
Requires:	plasma5-runner-kill
Requires:	plasma5-runner-locations
Requires:	plasma5-runner-places
Requires:	plasma5-runner-powerdevil
Requires:	plasma5-runner-recentdocuments
Requires:	plasma5-runner-services
Requires:	plasma5-runner-sessions
Requires:	plasma5-runner-shell
Requires:	plasma5-runner-webshortcuts
Requires:	plasma5-runner-windowedwidgets
Requires:	plasma5-wallpaper-color
Requires:	plasma5-wallpaper-image
Requires:	plasma5-wallpaper-slideshow
# External KF5 and Plasma 5 required packages
Requires:	kactivitymanagerd
Requires:	kde-cli-tools
Requires:	kded
Requires:	kimageformats
Requires:	kinit
Requires:	kirigami2
Requires:	kquickcharts
Requires:	kwallet
Requires:	plasma-framework
# Useless without desktop but cannot require it as desktop builds after workspace
Recommends:	plasma5-desktop
Requires:	plasma5-kwin
Requires:	polkit-kde-agent-1-kf5
# Other external requires
Requires:	qt5-tools
# Makes Plasma more stable (user reports
Requires:	x11-server-xwayland
Requires:	layer-shell-qt
Requires:	plasma5-kio-extras
Requires:	kio-fuse
Requires:	%{_lib}milou-qml
# Require X11/Wayland sessions appropriately
%if ! %{with wayland_default}
Recommends: %{name}-wayland = %{EVRD}
Requires:   %{name}-x11 = %{EVRD}
%else
Requires:   %{name}-wayland = %{EVRD}
Recommends: %{name}-x11 = %{EVRD}
%endif
Requires:	accountsservice
# Because of pam file
Conflicts:	plasma5-desktop < 5.22.0
Obsoletes:	plasma5-desktop < 5.22.0
Obsoletes:	plasma5-ksysguard < 5.22.0
Obsoletes:	plasma5-runner-activities < 5.22.0
Obsoletes:	plasma5-ksplash-theme-classic < 5.27.0
Obsoletes:	plasma5-ksplash-theme-minimalistic < 5.27.0
Obsoletes:	plasma5-ksplash-theme-none < 5.27.0
Obsoletes:	plasma5-kcm-translations < 5.27.0
Conflicts:	plasma5-workspace < 5.27.0
Obsoletes:	plasma5-workspace < 5.27.0

%description
Plasma 5 Workspace module.

%files -f %{name}.lang
%{_kde5_datadir}/doc5/HTML
%{_kde5_applicationsdir}/org.kde.plasmashell.desktop
%{_kde5_applicationsdir}/org.kde.systemmonitor.desktop
%{_kde5_applicationsdir}/org.kde.plasmawindowed.desktop
%{_kde5_applicationsdir}/kcm_autostart.desktop
%{_kde5_applicationsdir}/kcm_nightcolor.desktop
%{_kde5_applicationsdir}/kcm_notifications.desktop
%{_kde5_applicationsdir}/kcm_regionandlang.desktop
%{_kde5_applicationsdir}/kcm_users.desktop
%{_kde5_datadir}/applications/org.kde.kfontview.desktop
%{_kde5_autostart}/gmenudbusmenuproxy.desktop
%{_kde5_autostart}/org.kde.plasmashell.desktop
%{_kde5_autostart}/xembedsniproxy.desktop
%{_kde5_bindir}/plasma-apply-colorscheme
%{_kde5_bindir}/plasma-apply-cursortheme
%{_kde5_bindir}/plasma-apply-desktoptheme
%{_kde5_bindir}/plasma-apply-lookandfeel
%{_kde5_bindir}/plasma-apply-wallpaperimage
%{_kde5_bindir}/plasma-interactiveconsole
%{_kde5_bindir}/gmenudbusmenuproxy
%{_kde5_bindir}/kcminit
%{_kde5_bindir}/kcminit_startup
%{_kde5_bindir}/krunner
%{_kde5_bindir}/ksmserver
%{_kde5_bindir}/ksplashqml
%{_kde5_bindir}/plasma-localegen-helper
%{_kde5_bindir}/plasma-shutdown
%{_kde5_bindir}/plasma_session
%{_kde5_bindir}/plasma_waitforname
%{_kde5_bindir}/plasmashell
%{_kde5_bindir}/plasmawindowed
%{_kde5_bindir}/systemmonitor
%{_kde5_bindir}/xembedsniproxy
%{_kde5_bindir}/kde-systemd-start-condition
%{_kde5_bindir}/kfontinst
%{_kde5_bindir}/kfontview
%{_kde5_bindir}/lookandfeeltool
%{_kde5_datadir}/config.kcfg/freespacenotifier.kcfg
%{_kde5_datadir}/config.kcfg/colorssettings.kcfg
%{_kde5_datadir}/config.kcfg/cursorthemesettings.kcfg
%{_kde5_datadir}/config.kcfg/fontssettings.kcfg
%{_kde5_datadir}/config.kcfg/iconssettingsbase.kcfg
%{_kde5_datadir}/config.kcfg/launchfeedbacksettings.kcfg
%{_kde5_datadir}/config.kcfg/lookandfeelsettings.kcfg
%{_kde5_datadir}/config.kcfg/stylesettings.kcfg
%{_kde5_datadir}/desktop-directories/kf5-*.directory
%{_kde5_datadir}/kconf_update/krunnerglobalshortcuts2.upd
%{_kde5_datadir}/kconf_update/delete_cursor_old_default_size.pl
%{_kde5_datadir}/kconf_update/delete_cursor_old_default_size.upd
%{_kde5_datadir}/kconf_update/icons_remove_effects.upd
%{_kde5_datadir}/kconf_update/krunnerhistory.upd
%{_kde5_datadir}/kconf_update/plasmashell-5.27-use-panel-thickness-in-default-group.upd
%{_kde5_datadir}/kconf_update/style_widgetstyle_default_breeze.pl
%{_kde5_datadir}/kconf_update/style_widgetstyle_default_breeze.upd
%{_kde5_datadir}/kglobalaccel/org.kde.krunner.desktop
%{_kde5_datadir}/knsrcfiles/plasmoids.knsrc
%{_kde5_datadir}/knsrcfiles/wallpaper.knsrc
%{_kde5_datadir}/knsrcfiles/wallpaperplugin.knsrc
# These kstyle themes require external qt5-style plugins
%{_kde5_datadir}/kstyle/themes/*.themerc
%{_kde5_datadir}/qlogging-categories5/kcm_regionandlang.categories
%{_kde5_datadir}/qlogging-categories5/klipper.categories
%{_kde5_datadir}/qlogging-categories5/libnotificationmanager.categories
%{_kde5_datadir}/qlogging-categories5/plasma-workspace.categories
%{_kde5_datadir}/dbus-1/services/org.kde.krunner.service
%{_kde5_datadir}/dbus-1/services/org.kde.KSplash.service
%{_kde5_datadir}/dbus-1/services/org.kde.LogoutPrompt.service
%{_kde5_datadir}/dbus-1/services/org.kde.plasma.Notifications.service
%{_kde5_datadir}/dbus-1/services/org.kde.Shutdown.service
%{_kde5_datadir}/dbus-1/services/org.kde.fontinst.service
%{_kde5_datadir}/dbus-1/services/org.kde.runners.baloo.service
%{_kde5_datadir}/dbus-1/system-services/org.kde.fontinst.service
%{_kde5_datadir}/dbus-1/system.d/org.kde.fontinst.conf
%{_kde5_datadir}/kpackage/kcms/kcm_autostart/
%{_kde5_datadir}/kpackage/kcms/kcm_nightcolor/
%{_kde5_datadir}/kpackage/kcms/kcm_notifications/
%{_kde5_datadir}/kpackage/kcms/kcm_users/
%{_kde5_datadir}/plasma/services/*.operations
%{_kde5_datadir}/solid/actions/test-predicate-openinwindow.desktop
%{_kde5_datadir}/zsh/site-functions/_plasmashell
%{_kde5_libdir}/libkrdb.so
%{_kde5_libdir}/kconf_update_bin/krunnerglobalshortcuts
%{_kde5_libdir}/kconf_update_bin/krunnerhistory
%{_kde5_libdir}/kconf_update_bin/plasmashell-5.27-use-panel-thickness-in-default-group
%{_kde5_libexecdir}/ksmserver-logout-greeter
%{_kde5_libexecdir}/baloorunner
%{_kde5_libexecdir}/plasma-sourceenv.sh
%{_kde5_libexecdir}/kfontprint
%{_kde5_libexecdir}/plasma-changeicons
%{_kde5_libexecdir}/plasma-dbus-run-session-if-needed
%{_kde5_libexecdir}/kauth/fontinst
%{_kde5_libexecdir}/kauth/fontinst_helper
%{_kde5_libexecdir}/kauth/fontinst_x11
%{_kde5_notificationsdir}/devicenotifications.notifyrc
%{_kde5_notificationsdir}/freespacenotifier.notifyrc
%{_kde5_notificationsdir}/phonon.notifyrc
%{_kde5_plugindir}/kded/appmenu.so
%{_kde5_plugindir}/kded/colorcorrectlocationupdater.so
%{_kde5_plugindir}/kded/freespacenotifier.so
%{_kde5_plugindir}/kded/ksysguard.so
%{_kde5_plugindir}/kded/ktimezoned.so
%{_kde5_plugindir}/kded/plasma_accentcolor_service.so
%{_kde5_plugindir}/kded/soliduiserver.so
%{_kde5_plugindir}/kded/statusnotifierwatcher.so
%{_kde5_plugindir}/krunner/kcms/kcm_krunner_kill.so
%{_kde5_plugindir}/krunner/helprunner.so
%dir %{_kde5_qmldir}/org/kde/notificationmanager/
%{_kde5_qmldir}/org/kde/notificationmanager/*
%dir %{_kde5_qmldir}/org/kde/plasma/lookandfeel/
%{_kde5_qmldir}/org/kde/plasma/lookandfeel/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/containmentlayoutmanager/
%{_kde5_qmldir}/org/kde/plasma/private/containmentlayoutmanager/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/kicker/
%{_kde5_qmldir}/org/kde/plasma/private/kicker/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/mediacontroller/
%{_kde5_qmldir}/org/kde/plasma/private/mediacontroller/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/shell/
%{_kde5_qmldir}/org/kde/plasma/private/shell/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/sessions/
%{_kde5_qmldir}/org/kde/plasma/private/sessions/*
%{_kde5_servicetypes}/plasma-layouttemplate.desktop
%{_kde5_plugindir}/parts/kfontviewpart.so
%{_kde5_plugindir}/kio/kio_fonts.so
%{_kde5_plugindir}/thumbcreator/fontthumbnail.so
%{_qt5_plugindir}/plasma/geolocationprovider/plasma-geolocation*
%{_qt5_plugindir}/kpackage/packagestructure/*.so
%{_qt5_plugindir}/phonon_platform/kde.so
%{_qt5_plugindir}/plasma/containmentactions/plasma_containmentactions_*.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_nightcolor.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_notifications.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_users.so
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_autostart.so
%{_sysconfdir}/pam.d/kde
%{_sysconfdir}/xdg/plasmanotifyrc
%{_sysconfdir}/xdg/taskmanagerrulesrc
%{_sysconfdir}/xdg/QtProject/qtlogging.ini
%{_userunitdir}/plasma-baloorunner.service
%{_userunitdir}/plasma-core.target
%{_userunitdir}/plasma-gmenudbusmenuproxy.service
%{_userunitdir}/plasma-kcminit-phase1.service
%{_userunitdir}/plasma-kcminit.service
%{_userunitdir}/plasma-krunner.service
%{_userunitdir}/plasma-ksmserver.service
%{_userunitdir}/plasma-ksplash.service
%{_userunitdir}/plasma-ksplash-ready.service
%{_userunitdir}/plasma-plasmashell.service
%{_userunitdir}/plasma-restoresession.service
%{_userunitdir}/plasma-xembedsniproxy.service
%{_userunitdir}/plasma-workspace-wayland.target
%{_userunitdir}/plasma-workspace-x11.target
%{_userunitdir}/plasma-workspace.target
# icons
%{_kde5_iconsdir}/hicolor/128x128/mimetypes/fonts-package.png
%{_kde5_iconsdir}/hicolor/16x16/apps/kfontview.png
%{_kde5_iconsdir}/hicolor/16x16/mimetypes/fonts-package.png
%{_kde5_iconsdir}/hicolor/22x22/apps/kfontview.png
%{_kde5_iconsdir}/hicolor/22x22/mimetypes/fonts-package.png
%{_kde5_iconsdir}/hicolor/32x32/apps/kfontview.png
%{_kde5_iconsdir}/hicolor/32x32/mimetypes/fonts-package.png
%{_kde5_iconsdir}/hicolor/48x48/apps/kfontview.png
%{_kde5_iconsdir}/hicolor/48x48/mimetypes/fonts-package.png
%{_kde5_iconsdir}/hicolor/64x64/apps/kfontview.png
%{_kde5_iconsdir}/hicolor/64x64/mimetypes/fonts-package.png
%{_kde5_iconsdir}/hicolor/scalable/apps/preferences-desktop-font-installer.svgz
%{_kde5_datadir}/kfontinst/icons/hicolor/16x16/actions/addfont.png
%{_kde5_datadir}/kfontinst/icons/hicolor/16x16/actions/font-disable.png
%{_kde5_datadir}/kfontinst/icons/hicolor/16x16/actions/font-enable.png
%{_kde5_datadir}/kfontinst/icons/hicolor/16x16/actions/fontstatus.png
%{_kde5_datadir}/kfontinst/icons/hicolor/22x22/actions/addfont.png
%{_kde5_datadir}/kfontinst/icons/hicolor/22x22/actions/font-disable.png
%{_kde5_datadir}/kfontinst/icons/hicolor/22x22/actions/font-enable.png
%{_kde5_datadir}/kfontinst/icons/hicolor/22x22/actions/fontstatus.png
%{_kde5_datadir}/plasma/avatars/
%{_kde5_datadir}/knsrcfiles/gtk_themes.knsrc
%{_kde5_datadir}/knsrcfiles/icons.knsrc
%{_kde5_datadir}/knsrcfiles/kfontinst.knsrc
%{_kde5_datadir}/knsrcfiles/lookandfeel.knsrc
%{_kde5_datadir}/knsrcfiles/plasma-themes.knsrc
%{_kde5_datadir}/knsrcfiles/xcursor.knsrc
%{_kde5_datadir}/knsrcfiles/wallpaper-mobile.knsrc
%{_kde5_datadir}/konqsidebartng/virtual_folders/services/fonts.desktop
%{_kde5_services}/ServiceMenus/installfont.desktop
%{_kde5_xmlguidir}/kfontview/kfontviewpart.rc
%{_kde5_xmlguidir}/kfontview/kfontviewui.rc
%{_kde5_datadir}/polkit-1/actions/org.kde.fontinst.policy
%{_kde5_datadir}/qlogging-categories5/kcmusers.categories
%{_kde5_datadir}/qlogging-categories5/myproject.categories
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_regionandlang.so
%{_kde5_datadir}/dbus-1/system-services/org.kde.localegenhelper.service
%{_kde5_datadir}/dbus-1/system.d/org.kde.localegenhelper.conf
%{_kde5_datadir}/kio/servicemenus/setaswallpaper.desktop
%{_kde5_datadir}/kpackage/kcms/kcm_regionandlang
%{_kde5_datadir}/plasma/nightcolor/worldmap.png
%{_kde5_datadir}/polkit-1/actions/org.kde.localegenhelper.policy

#----------------------------------------------------------------------------
%package -n plasma5-kcm-colors
Summary:	Plasma 5 control module for colors
Group:		Graphical desktop/KDE

%description -n plasma5-kcm-colors
Plasma 5 control module for colors.

%files -n plasma5-kcm-colors -f kcm_colors.lang
%{_kde5_applicationsdir}/org.kde.kcolorschemeeditor.desktop
%{_kde5_bindir}/kcolorschemeeditor
%{_kde5_datadir}/knsrcfiles/colorschemes.knsrc
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_colors.so
%{_kde5_datadir}/kpackage/kcms/kcm_colors/contents/ui/main.qml
%{_kde5_applicationsdir}/kcm_colors.desktop

#----------------------------------------------------------------------------

%package -n plasma5-kcm-cursortheme
Summary:	Plasma 5 control module for cursor theme
Group:		Graphical desktop/KDE

%description -n plasma5-kcm-cursortheme
Plasma 5 control module for cursor theme.

%files -n plasma5-kcm-cursortheme -f cursortheme.lang
%dir %{_kde5_datadir}/kpackage/kcms/kcm_cursortheme/
%{_kde5_datadir}/kpackage/kcms/kcm_cursortheme/*
%{_kde5_applicationsdir}/kcm_cursortheme.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_cursortheme.so

#----------------------------------------------------------------------------

%package -n plasma5-kcm-fonts
Summary:	Plasma 5 control module for fonts
Group:		Graphical desktop/KDE

%description -n plasma5-kcm-fonts
Plasma 5 control module for fonts.

%files -n plasma5-kcm-fonts -f kcm_fonts.lang
%dir %{_kde5_datadir}/kpackage/kcms/kcm_fonts/
%{_kde5_datadir}/kpackage/kcms/kcm_fonts/*
%{_kde5_applicationsdir}/kcm_fonts.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_fonts.so
%{_qt5_plugindir}/plasma/kcminit/kcm_fonts_init.so

#----------------------------------------------------------------------------

%package -n plasma5-kcm-icons
Summary:	Plasma 5 control module for icons
Group:		Graphical desktop/KDE

%description -n plasma5-kcm-icons
Plasma 5 control module for icons.

%files -n plasma5-kcm-icons -f kcm_icons.lang
%dir %{_kde5_datadir}/kpackage/kcms/kcm_icons/
%{_kde5_datadir}/kpackage/kcms/kcm_icons/*
%{_kde5_libexecdir}/plasma-changeicons
%{_kde5_applicationsdir}/kcm_icons.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_icons.so

#----------------------------------------------------------------------------

%package -n plasma5-kcm-style
Summary:	Plasma 5 control module for style
Group:		Graphical desktop/KDE

%description -n plasma5-kcm-style
Plasma 5 control module for style.

%files -n plasma5-kcm-style -f kcm_style.lang
%{_kde5_datadir}/kpackage/kcms/kcm_style
%{_kde5_applicationsdir}/kcm_style.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_style.so
%{_qt5_plugindir}/plasma/kcminit/kcm_style_init.so

#----------------------------------------------------------------------------

%package -n plasma5-kcm-fontinst
Summary:	Plasma 5 control module for font install
Group:		Graphical desktop/KDE

%description -n plasma5-kcm-fontinst
Plasma 5 control module for font install.

%files -n plasma5-kcm-fontinst
%{_kde5_applicationsdir}/kcm_fontinst.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings_qwidgets/kcm_fontinst.so

#----------------------------------------------------------------------------

%package -n plasma5-kcm-desktoptheme
Summary:	Plasma 5 control module for desktoptheme
Group:		Graphical desktop/KDE

%description -n plasma5-kcm-desktoptheme
Plasma 5 control module for desktoptheme.

%files -n plasma5-kcm-desktoptheme -f kcm_desktoptheme.lang
%dir %{_kde5_datadir}/kpackage/kcms/kcm_desktoptheme/
%{_kde5_datadir}/kpackage/kcms/kcm_desktoptheme/*
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_desktoptheme.so

#----------------------------------------------------------------------------

%package -n plasma5-kcm-lookandfeel
Summary:	Plasma 5 control module for lookandfeel
Group:		Graphical desktop/KDE

%description -n plasma5-kcm-lookandfeel
Plasma 5 control module for lookandfeel.

%files -n plasma5-kcm-lookandfeel -f kcm_lookandfeel.lang
%dir %{_kde5_datadir}/kpackage/kcms/kcm_lookandfeel/
%{_kde5_datadir}/kpackage/kcms/kcm_lookandfeel/*
%{_kde5_applicationsdir}/kcm_lookandfeel.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_lookandfeel.so

#----------------------------------------------------------------------------

%package -n plasma5-applet-activitybar
Summary:	Plasma 5 activity bar plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-activitybar
Plasma 5 activity bar plasmoid.

%files -n plasma5-applet-activitybar -f plasma_applet_org.kde.plasma.activitybar.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.activitybar/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.activitybar/*
%{_appdatadir}/org.kde.plasma.activitybar.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-analogclock
Summary:	Plasma 5 analog clock plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-analogclock
Plasma 5 analog clock plasmoid.

%files -n plasma5-applet-analogclock -f plasma_applet_org.kde.plasma.analogclock.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.analogclock/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.analogclock/*
%{_appdatadir}/org.kde.plasma.analogclock.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-appmenu
Summary:	Plasma 5 appmenu plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-appmenu
Plasma 5 appmenu plasmoid.

%files -n plasma5-applet-appmenu -f plasma_applet_org.kde.plasma.appmenu.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.appmenu/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.appmenu/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/appmenu/
%{_kde5_qmldir}/org/kde/plasma/private/appmenu/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.appmenu.so
%{_appdatadir}/org.kde.plasma.appmenu.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-battery
Summary:	Plasma 5 battery plasmoid
Group:		Graphical desktop/KDE
Requires:	upower

%description -n plasma5-applet-battery
Plasma 5 battery plasmoid.

%files -n plasma5-applet-battery -f plasma_applet_org.kde.plasma.battery.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.battery/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.battery/*
%{_appdatadir}/org.kde.plasma.battery.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-calendar
Summary:	Plasma 5 calendar plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-calendar
Plasma 5 calendar plasmoid.

%files -n plasma5-applet-calendar -f plasma_applet_org.kde.plasma.calendar.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.calendar/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.calendar/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.calendar.so
%{_appdatadir}/org.kde.plasma.calendar.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-clipboard
Summary:	Plasma 5 clipboard plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-clipboard
Plasma 5 clipboard plasmoid.

%files -n plasma5-applet-clipboard -f plasma_applet_org.kde.plasma.clipboard.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.clipboard/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.clipboard/*
%{_appdatadir}/org.kde.plasma.clipboard.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-devicenotifier
Summary:	Plasma 5 device notifier plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-devicenotifier
Plasma 5 device notifier plasmoid.

%files -n plasma5-applet-devicenotifier -f plasma_applet_org.kde.plasma.devicenotifier.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.devicenotifier/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.devicenotifier/*
%{_appdatadir}/org.kde.plasma.devicenotifier.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-digitalclock
Summary:	Plasma 5 digital clock plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-digitalclock
Plasma 5 digital clock plasmoid.

%files -n plasma5-applet-digitalclock -f plasma_applet_org.kde.plasma.digitalclock.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.digitalclock/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.digitalclock/*
%dir %{_kde5_qmldir}/org/kde/plasma/private/digitalclock/
%{_kde5_qmldir}/org/kde/plasma/private/digitalclock/*
%{_appdatadir}/org.kde.plasma.digitalclock.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-icon
Summary:	Plasma 5 icon plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-icon
Plasma 5 icon plasmoid.

%files -n plasma5-applet-icon -f plasma_applet_org.kde.plasma.icon.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.icon/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.icon/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.icon.so

#----------------------------------------------------------------------------

%package -n plasma5-applet-lock_logout
Summary:	Plasma 5 lock and logout plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-lock_logout
Plasma 5 lock and logout plasmoid.

%files -n plasma5-applet-lock_logout -f plasma_applet_org.kde.plasma.lock_logout.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.lock_logout/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.lock_logout/*
%{_appdatadir}/org.kde.plasma.lock_logout.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-manageinputmethod
Summary:	Plasma 5 media manage inputmethod plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-manageinputmethod
Plasma 5 media anage inputmethod plasmoid.

%files -n plasma5-applet-manageinputmethod -f plasma_applet_org.kde.plasma.manageinputmethod.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.manage-inputmethod/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.manage-inputmethod/*
%{_appdatadir}/org.kde.plasma.manage-inputmethod.appdata.xml

#----------------------------------------------------------------------------


%package -n plasma5-applet-mediacontroller
Summary:	Plasma 5 media controller plasmoid
Group:		Graphical desktop/KDE
Requires:	plasma5-dataengine-mpris2

%description -n plasma5-applet-mediacontroller
Plasma 5 media controller plasmoid.

%files -n plasma5-applet-mediacontroller -f plasma_applet_org.kde.plasma.mediacontroller.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.mediacontroller/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.mediacontroller/*
%{_appdatadir}/org.kde.plasma.mediacontroller.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-notifications
Summary:	Plasma 5 notifications plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-notifications
Plasma 5 notifications plasmoid.

%files -n plasma5-applet-notifications -f plasma_applet_org.kde.plasma.notifications.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.notifications/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.notifications/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.notifications.so
%{_appdatadir}/org.kde.plasma.notifications.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-panelspacer
Summary:	Plasma 5 panel spacer plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-panelspacer
Plasma 5 panel spacer plasmoid.

%files -n plasma5-applet-panelspacer -f plasma_applet_org.kde.plasma.panelspacer.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.panelspacer/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.panelspacer/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.panelspacer.so

#----------------------------------------------------------------------------

%package -n plasma5-applet-systemmonitor
Summary:	Plasma 5 system monitor plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-systemmonitor
Plasma 5 system monitor plasmoid.

%files -n plasma5-applet-systemmonitor -f plasma_applet_org.kde.plasma.systemmonitor.lang
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.systemmonitor.so
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.cpu/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.cpu/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.cpucore/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.cpucore/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.diskactivity/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.diskactivity/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.diskusage/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.diskusage/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.memory/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.memory/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.net/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor.net/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemmonitor/*
%{_appdatadir}/org.kde.plasma.systemmonitor.appdata.xml
%{_appdatadir}/org.kde.plasma.systemmonitor.cpu.appdata.xml
%{_appdatadir}/org.kde.plasma.systemmonitor.cpucore.appdata.xml
%{_appdatadir}/org.kde.plasma.systemmonitor.diskactivity.appdata.xml
%{_appdatadir}/org.kde.plasma.systemmonitor.diskusage.appdata.xml
%{_appdatadir}/org.kde.plasma.systemmonitor.memory.appdata.xml
%{_appdatadir}/org.kde.plasma.systemmonitor.net.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-applet-systemtray
Summary:	Plasma 5 systemtray plasmoid
Group:		Graphical desktop/KDE

%description -n plasma5-applet-systemtray
Plasma 5 systemtray plasmoid.

%files -n plasma5-applet-systemtray -f plasma_applet_org.kde.plasma.private.systemtray.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemtray/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.systemtray/*
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.private.systemtray/
%{_kde5_datadir}/plasma/plasmoids/org.kde.plasma.private.systemtray/*
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.systemtray.so
%{_qt5_plugindir}/plasma/applets/org.kde.plasma.private.systemtray.so
%{_appdatadir}/org.kde.plasma.systemtray.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-calendar-holidays
Summary:	Plasma 5 holidays calendar plugin
Group:		Graphical desktop/KDE

%description -n plasma5-calendar-holidays
Plasma 5 holidays calendar plugin.

%files -n plasma5-calendar-holidays -f kholidays_calendar_plugin.lang
%dir %{_kde5_qmldir}/org/kde/holidayeventshelperplugin/
%{_kde5_qmldir}/org/kde/holidayeventshelperplugin/*
%{_qt5_plugindir}/plasmacalendarplugins/holidays/HolidaysConfig.qml
%{_qt5_plugindir}/plasmacalendarplugins/holidaysevents.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-activities
Summary:	Plasma 5 activities dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-activities
Plasma 5 activities dataengine.

%files -n plasma5-dataengine-activities
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_activities.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-applicationjobs
Summary:	Plasma 5 application jobs dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-applicationjobs
Plasma 5 application jobs dataengine.

%files -n plasma5-dataengine-applicationjobs -f plasma_engine_applicationjobs.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_applicationjobs.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-apps
Summary:	Plasma 5 apps dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-apps
Plasma 5 apps dataengine.

%files -n plasma5-dataengine-apps
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_apps.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-clipboard
Summary:	Plasma 5 clipboard dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-clipboard
Plasma 5 clipboard dataengine.

%files -n plasma5-dataengine-clipboard
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_clipboard.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-devicenotifications
Summary:	Plasma 5 device notifications dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-devicenotifications
Plasma 5 device notifications dataengine.

%files -n plasma5-dataengine-devicenotifications -f plasma_engine_devicenotifications.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_devicenotifications.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-dict
Summary:	Plasma 5 dict dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-dict
Plasma 5 dict dataengine.

%files -n plasma5-dataengine-dict -f plasma_engine_dict.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_dict.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-executable
Summary:	Plasma 5 executable dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-executable
Plasma 5 executable dataengine.

%files -n plasma5-dataengine-executable
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_executable.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-favicons
Summary:	Plasma 5 favicons dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-favicons
Plasma 5 favicons dataengine.

%files -n plasma5-dataengine-favicons
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_favicons.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-filebrowser
Summary:	Plasma 5 filebrowser dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-filebrowser
Plasma 5 filebrowser dataengine.

%files -n plasma5-dataengine-filebrowser
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_filebrowser.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-geolocation
Summary:	Plasma 5 geolocation dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-geolocation
Plasma 5 geolocation dataengine.

%files -n plasma5-dataengine-geolocation
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_geolocation.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-hotplug
Summary:	Plasma 5 hotplug dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-hotplug
Plasma 5 hotplug dataengine.

%files -n plasma5-dataengine-hotplug -f plasma_engine_hotplug.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_hotplug.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-keystate
Summary:	Plasma 5 keystate dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-keystate
Plasma 5 keystate dataengine.

%files -n plasma5-dataengine-keystate -f plasma_engine_keystate.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_keystate.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-mouse
Summary:	Plasma 5 mouse dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-mouse
Plasma 5 mouse dataengine.

%files -n plasma5-dataengine-mouse
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_mouse.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-mpris2
Summary:	Plasma 5 mpris2 dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-mpris2
Plasma 5 mpris2 dataengine.

%files -n plasma5-dataengine-mpris2 -f plasma_engine_mpris2.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_mpris2.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-notifications
Summary:	Plasma 5 notifications dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-notifications
Plasma 5 notifications dataengine.

%files -n plasma5-dataengine-notifications -f plasma_engine_notifications.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_notifications.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-packagekit
Summary:	Plasma 5 packagekit dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-packagekit
Plasma 5 packagekit dataengine.

%files -n plasma5-dataengine-packagekit
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_packagekit.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-places
Summary:	Plasma 5 places dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-places
Plasma 5 places dataengine.

%files -n plasma5-dataengine-places
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_places.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-powermanagement
Summary:	Plasma 5 power management dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-powermanagement
Plasma 5 power management dataengine.

%files -n plasma5-dataengine-powermanagement -f plasma_engine_powermanagement.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_powermanagement.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-soliddevice
Summary:	Plasma 5 solid device dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-soliddevice
Plasma 5 solid device dataengine.

%files -n plasma5-dataengine-soliddevice -f plasma_engine_soliddevice.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_soliddevice.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-statusnotifieritem
Summary:	Plasma 5 status notifier item dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-statusnotifieritem
Plasma 5 status notifier item dataengine.

%files -n plasma5-dataengine-statusnotifieritem
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_statusnotifieritem.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-systemmonitor
Summary:	Plasma 5 system monitor dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-systemmonitor
Plasma 5 system monitor dataengine.

%files -n plasma5-dataengine-systemmonitor
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_systemmonitor.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-time
Summary:	Plasma 5 time dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-time
Plasma 5 time dataengine.

%files -n plasma5-dataengine-time -f plasma_engine_time.lang
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_time.so

#----------------------------------------------------------------------------

%package -n plasma5-dataengine-weather
Summary:	Plasma 5 weather dataengine
Group:		Graphical desktop/KDE

%description -n plasma5-dataengine-weather
Plasma 5 weather dataengine.

%files -n plasma5-dataengine-weather -f plasma_engine_weather.lang
%{_qt5_plugindir}/plasma/dataengine/ion_bbcukmet.so
%{_qt5_plugindir}/plasma/dataengine/ion_dwd.so
%{_qt5_plugindir}/plasma/dataengine/ion_envcan.so
%{_qt5_plugindir}/plasma/dataengine/ion_noaa.so
%{_qt5_plugindir}/plasma/dataengine/ion_wettercom.so
%{_qt5_plugindir}/plasma/dataengine/plasma_engine_weather.so

#----------------------------------------------------------------------------

%package -n plasma5-kio-applications
Summary:	Plasma 5 applications kio slave
Group:		Graphical desktop/KDE

%description -n plasma5-kio-applications
Plasma 5 applications kio slave.

%files -n plasma5-kio-applications -f kio5_applications.lang
%{_kde5_plugindir}/kio/applications.so

#----------------------------------------------------------------------------

%package -n plasma5-kio-desktop
Summary:	Plasma 5 desktop kio slave
Group:		Graphical desktop/KDE

%description -n plasma5-kio-desktop
Plasma 5 desktop kio slave.

%files -n plasma5-kio-desktop -f kio_desktop.lang
%{_kde5_datadir}/kio_desktop/
%{_kde5_plugindir}/kded/desktopnotifier.so
%{_kde5_plugindir}/kio/desktop.so

#----------------------------------------------------------------------------

%package -n plasma5-klipper
Summary:	Plasma 5 clipboard manager
Group:		Graphical desktop/KDE
Conflicts:	klipper

%description -n plasma5-klipper
Plasma 5 clipboard manager.

%files -n plasma5-klipper -f klipper.lang
%{_kde5_applicationsdir}/org.kde.klipper.desktop
%{_kde5_autostart}/klipper.desktop
%{_kde5_bindir}/klipper

#----------------------------------------------------------------------------

%package -n plasma5-look-and-feel-breeze
Summary:	Breeze look and feel for Plasma 5
Group:		Graphical desktop/KDE
Requires:	breeze-cursor-theme
Requires:	breeze-icon-theme
Requires:	plasma5-color-scheme-breeze
Requires:	plasma5-desktoptheme-breeze
Requires:	plasma5-style-breeze

%description -n plasma5-look-and-feel-breeze
Breeze look and feel for Plasma 5.

%files -n plasma5-look-and-feel-breeze
%dir %{_kde5_datadir}/plasma/look-and-feel/org.kde.breeze.desktop/
%{_kde5_datadir}/plasma/look-and-feel/org.kde.breeze.desktop/*
%{_appdatadir}/org.kde.breeze.desktop.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-look-and-feel-breeze-dark
Summary:	Breeze Dark look and feel for Plasma 5
Group:		Graphical desktop/KDE
Requires:	breeze-cursor-theme
Requires:	breeze-icon-theme-dark
Requires:	plasma5-color-scheme-breeze-dark
Requires:	plasma5-style-breeze

%description -n plasma5-look-and-feel-breeze-dark
Breeze Dark look and feel for Plasma 5.

%files -n plasma5-look-and-feel-breeze-dark
%dir %{_kde5_datadir}/plasma/look-and-feel/org.kde.breezedark.desktop/
%{_kde5_datadir}/plasma/look-and-feel/org.kde.breezedark.desktop/*
%{_appdatadir}/org.kde.breezedark.desktop.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-look-and-feel-breeze-twilight
Summary:	Breeze Twilight look and feel for Plasma 5
Group:		Graphical desktop/KDE
Requires:	breeze-cursor-theme
Requires:	breeze-icon-theme-dark
Requires:	plasma5-color-scheme-breeze-light
Requires:	plasma5-style-breeze

%description -n plasma5-look-and-feel-breeze-twilight
Breeze Twilight look and feel for Plasma 5.

%files -n plasma5-look-and-feel-breeze-twilight
%dir %{_kde5_datadir}/plasma/look-and-feel/org.kde.breezetwilight.desktop/
%{_kde5_datadir}/plasma/look-and-feel/org.kde.breezetwilight.desktop/*
%{_appdatadir}/org.kde.breezetwilight.desktop.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-runner-appstream
Summary:	Plasma 5 appstream runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-appstream
Plasma 5 appstream runner.

%files -n plasma5-runner-appstream -f plasma_runner_appstream.lang
%{_kde5_plugindir}/krunner/krunner_appstream.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-baloosearch
Summary:	Plasma 5 baloo search runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-baloosearch
Plasma 5 baloo search runner.

%files -n plasma5-runner-baloosearch -f plasma_runner_baloosearch5.lang
%{_kde5_datadir}/krunner/dbusplugins/plasma-runner-baloosearch.desktop

#----------------------------------------------------------------------------

%package -n plasma5-runner-bookmarks
Summary:	Plasma 5 bookmarks runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-bookmarks
Plasma 5 bookmarks runner.

%files -n plasma5-runner-bookmarks -f plasma_runner_bookmarksrunner.lang
%{_kde5_plugindir}/krunner/krunner_bookmarksrunner.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-calculator
Summary:	Plasma 5 calculator runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-calculator
Plasma 5 calculator runner.

%files -n plasma5-runner-calculator -f plasma_runner_calculatorrunner.lang
%{_kde5_plugindir}/krunner/calculator.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-kill
Summary:	Plasma 5 kill runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-kill
Plasma 5 kill runner.

%files -n plasma5-runner-kill -f plasma_runner_kill.lang
%{_kde5_plugindir}/krunner/krunner_kill.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-locations
Summary:	Plasma 5 locations runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-locations
Plasma 5 locations runner.

%files -n plasma5-runner-locations -f plasma_runner_locations.lang
%{_kde5_plugindir}/krunner/locations.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-places
Summary:	Plasma 5 places runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-places
Plasma 5 places runner.

%files -n plasma5-runner-places -f plasma_runner_placesrunner.lang
%{_kde5_plugindir}/krunner/krunner_placesrunner.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-powerdevil
Summary:	Plasma 5 powerdevil runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-powerdevil
Plasma 5 powerdevil runner.

%files -n plasma5-runner-powerdevil -f plasma_runner_powerdevil.lang
%{_kde5_plugindir}/krunner/krunner_powerdevil.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-recentdocuments
Summary:	Plasma 5 recent documents runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-recentdocuments
Plasma 5 recent documents runner.

%files -n plasma5-runner-recentdocuments -f plasma_runner_recentdocuments.lang
%{_kde5_plugindir}/krunner/krunner_recentdocuments.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-services
Summary:	Plasma 5 services runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-services
Plasma 5 services runner.

%files -n plasma5-runner-services -f plasma_runner_services.lang
%{_kde5_plugindir}/krunner/krunner_services.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-sessions
Summary:	Plasma 5 sessions runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-sessions
Plasma 5 sessions runner.

%files -n plasma5-runner-sessions -f plasma_runner_sessions.lang
%{_kde5_plugindir}/krunner/krunner_sessions.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-shell
Summary:	Plasma 5 shell runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-shell
Plasma 5 shell runner.

%files -n plasma5-runner-shell -f plasma_runner_shell.lang
%{_kde5_plugindir}/krunner/krunner_shell.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-webshortcuts
Summary:	Plasma 5 web shortcuts runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-webshortcuts
Plasma 5 web shortcuts runner.

%files -n plasma5-runner-webshortcuts -f plasma_runner_webshortcuts.lang
#{_kde5_services}/plasma-runner-webshortcuts_config.desktop
%{_kde5_plugindir}/krunner/krunner_webshortcuts.so

#----------------------------------------------------------------------------

%package -n plasma5-runner-windowedwidgets
Summary:	Plasma 5 windowed widgets runner
Group:		Graphical desktop/KDE

%description -n plasma5-runner-windowedwidgets
Plasma 5 windowed widgets runner.

%files -n plasma5-runner-windowedwidgets -f plasma_runner_windowedwidgets.lang
%{_kde5_plugindir}/krunner/krunner_windowedwidgets.so

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-color
Summary:	Plasma 5 color wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-color
Plasma 5 color wallpaper.

%files -n plasma5-wallpaper-color -f plasma_wallpaper_org.kde.color.lang
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.color/
%{_kde5_datadir}/plasma/wallpapers/org.kde.color/*
%{_appdatadir}/org.kde.color.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-image
Summary:	Plasma 5 image wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-image
Plasma 5 image wallpaper.

%files -n plasma5-wallpaper-image -f plasma_wallpaper_org.kde.image.lang
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.image/
%{_kde5_datadir}/plasma/wallpapers/org.kde.image/*
%dir %{_kde5_qmldir}/org/kde/plasma/wallpapers/image/
%{_kde5_qmldir}/org/kde/plasma/wallpapers/image/*
#{_kde5_services}/plasma-wallpaper-org.kde.image.desktop
%{_appdatadir}/org.kde.image.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-slideshow
Summary:	Plasma 5 slideshow wallpaper
Group:		Graphical desktop/KDE
Requires:	plasma5-wallpaper-image

%description -n plasma5-wallpaper-slideshow
Plasma 5 slideshow wallpaper.

%files -n plasma5-wallpaper-slideshow
%dir %{_kde5_datadir}/plasma/wallpapers/org.kde.slideshow/
%{_kde5_datadir}/plasma/wallpapers/org.kde.slideshow/*
#{_kde5_services}/plasma-wallpaper-org.kde.slideshow.desktop
%{_appdatadir}/org.kde.slideshow.appdata.xml

#----------------------------------------------------------------------------

%package -n plasma5-workspace-x11
Summary:	Plasma 5 x11 session
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description -n plasma5-workspace-x11
Plasma 5 Wayland session.

%files -n plasma5-workspace-x11
%{_kde5_bindir}/startplasma-x11
%{_kde5_bindir}/startkde
%if ! %{with wayland_default}
%{_kde5_datadir}/xsessions/01plasma.desktop
%else
%{_kde5_datadir}/xsessions/01plasmax11.desktop
%endif

#----------------------------------------------------------------------------

%package -n plasma5-workspace-wayland
Summary:	Plasma 5 Wayland session
Group:		Graphical desktop/KDE
# compat with omv
Provides:   plasma-workspace-wayland = %{EVRD}
Requires:	%{name} = %{EVRD}
Recommends:	qt5-qtvirtualkeyboard
Requires:	qt5-wayland-client
Requires:	qt5-wayland-compositor
Requires:	kwayland-integration
Recommends:	xdg-desktop-portal-kde

%description -n plasma5-workspace-wayland
Plasma 5 Wayland session.

%files -n plasma5-workspace-wayland
%{_kde5_bindir}/startplasma-wayland
%if ! %{with wayland_default}
%{_kde5_datadir}/wayland-sessions/plasmawayland.desktop
%else
%{_kde5_datadir}/wayland-sessions/plasma.desktop
%endif

#----------------------------------------------------------------------------

%package -n sddm-theme-breeze
Summary:	Breeze theme for SDDM
Group:		Graphical desktop/KDE
Requires:	kf5plasma-qml
Requires:	plasma-workspace-qml
BuildArch:	noarch

%description -n sddm-theme-breeze
Breeze theme for SDDM.

%files -n sddm-theme-breeze
%dir %{_kde5_datadir}/sddm/themes/breeze/
%{_kde5_datadir}/sddm/themes/breeze/*

#----------------------------------------------------------------------------

%if %{with sddm_wayland_default}

%package -n sddm-wayland-plasma
Summary:	 Plasma Wayland SDDM greeter configuration
Requires:	maliit-keyboard
Requires:    (sddm and plasma5-workspace-wayland)
BuildArch:      noarch

%description -n sddm-wayland-plasma
This package contains configuration and dependencies for SDDM
to use KWin for the Wayland compositor for the greeter.

%files -n sddm-wayland-plasma
%{_sysconfdir}/sddm.conf.d/plasma-wayland.conf

%endif

#----------------------------------------------------------------------------

%define qmlcolorcorrect %mklibname colorcorrect-qml

%package -n %{qmlcolorcorrect}
Summary:	QML plugins for colorcorrect library
Group:		System/Libraries
Provides:	colorcorrect-qml = %{EVRD}

%description -n %{qmlcolorcorrect}
QML plugins for Plasma 5 colorcorrect library.

%files -n %{qmlcolorcorrect}
%dir %{_kde5_qmldir}/org/kde/colorcorrect/
%{_kde5_qmldir}/org/kde/colorcorrect/*

#----------------------------------------------------------------------------

%define qmlplasma_workspace %mklibname plasma-workspace-qml

%package -n %{qmlplasma_workspace}
Summary:	QML plugins for Plasma 5 Workspace
Group:		System/Libraries
Provides:	plasma-workspace-qml = %{EVRD}

%description -n %{qmlplasma_workspace}
QML plugins for Plasma 5 Workspace.

%files -n %{qmlplasma_workspace}
%dir %{_kde5_qmldir}/org/kde/plasma/workspace/
%{_kde5_qmldir}/org/kde/plasma/workspace/*
%dir %{_kde5_qmldir}/org/kde/taskmanager/
%{_kde5_qmldir}/org/kde/taskmanager/*

#----------------------------------------------------------------------------

%define colorcorrect_major 5
%define libcolorcorrect %mklibname colorcorrect %{colorcorrect_major}

%package -n %{libcolorcorrect}
Summary:	Plasma 5 colorcorrect shared library
Group:		System/Libraries
Requires:	%{qmlcolorcorrect}

%description -n %{libcolorcorrect}
Plasma 5 colorcorrect shared library.

%files -n %{libcolorcorrect}
%{_kde5_libdir}/libcolorcorrect.so.%{colorcorrect_major}*

#----------------------------------------------------------------------------

%define kworkspace5_major 5
%define libkworkspace5 %mklibname kworkspace5_ %{kworkspace5_major}

%package -n %{libkworkspace5}
Summary:	Plasma 5 Workspace shared library
Group:		System/Libraries
Requires:	%{qmlplasma_workspace}

%description -n %{libkworkspace5}
Plasma 5 Workspace shared library.

%files -n %{libkworkspace5}
%{_kde5_libdir}/libkworkspace5.so.%{kworkspace5_major}*

#----------------------------------------------------------------------------

%define notificationmanager_major 1
%define libnotificationmanager %mklibname notificationmanager %{notificationmanager_major}

%package -n %{libnotificationmanager}
Summary:	Plasma 5 Workspace shared library
Group:		System/Libraries

%description -n %{libnotificationmanager}
Plasma 5 Workspace shared library.

%files -n %{libnotificationmanager}
%{_kde5_libdir}/libnotificationmanager.so.%{notificationmanager_major}*
%{_kde5_libdir}/libnotificationmanager.so.%{version}

#----------------------------------------------------------------------------

%define plasma_geolocation_interface_major 5
%define libplasma_geolocation_interface %mklibname plasma-geolocation-interface %{plasma_geolocation_interface_major}

%package -n %{libplasma_geolocation_interface}
Summary:	Plasma 5 Workspace shared library
Group:		System/Libraries

%description -n %{libplasma_geolocation_interface}
Plasma 5 Workspace shared library.

%files -n %{libplasma_geolocation_interface}
%{_kde5_libdir}/libplasma-geolocation-interface.so.%{plasma_geolocation_interface_major}*

#----------------------------------------------------------------------------

%define taskmanager_major 6
%define libtaskmanager %mklibname taskmanager %{taskmanager_major}

%package -n %{libtaskmanager}
Summary:	Plasma 5 Workspace shared library
Group:		System/Libraries

%description -n %{libtaskmanager}
Plasma 5 Workspace shared library.

%files -n %{libtaskmanager}
%{_kde5_libdir}/libtaskmanager.so.%{taskmanager_major}*
%{_kde5_libdir}/libtaskmanager.so.%{version}

#----------------------------------------------------------------------------

%define weather_ion_major 7
%define libweather_ion %mklibname weather_ion %{weather_ion_major}

%package -n %{libweather_ion}
Summary:	Plasma 5 Workspace shared library
Group:		System/Libraries

%description -n %{libweather_ion}
Plasma 5 Workspace shared library.

%files -n %{libweather_ion}
%{_kde5_libdir}/libweather_ion.so.%{weather_ion_major}*

#----------------------------------------------------------------------------

%define kfontinst_major 5
%define libkfontinst %mklibname kfontinst %{kfontinst_major}

%package -n %{libkfontinst}
Summary:	Plasma 5 Workspace shared library
Group:		System/Libraries

%description -n %{libkfontinst}
Plasma 5 Workspace shared library.

%files -n %{libkfontinst}
%{_kde5_libdir}/libkfontinst.so.%{kfontinst_major}*

#----------------------------------------------------------------------------

%define kfontinstui_major 5
%define libkfontinstui %mklibname kfontinstui %{kfontinstui_major}

%package -n %{libkfontinstui}
Summary:	Plasma 5 Workspace shared library
Group:		System/Libraries

%description -n %{libkfontinstui}
Plasma 5 Workspace shared library.

%files -n %{libkfontinstui}
%{_kde5_libdir}/libkfontinstui.so.%{kfontinstui_major}*

#----------------------------------------------------------------------------

%define devplasma5_workspace %mklibname plasma5-workspace -d

%package -n %{devplasma5_workspace}
Summary:	Development files for Plasma 5 Workspace libraries
Group:		Development/KDE and Qt
Requires:	%{libcolorcorrect} = %{EVRD}
Requires:	%{libkworkspace5} = %{EVRD}
Requires:	%{libnotificationmanager} = %{EVRD}
Requires:	%{libplasma_geolocation_interface} = %{EVRD}
Requires:	%{libtaskmanager} = %{EVRD}
Requires:	%{libweather_ion} = %{EVRD}
Requires:	%{libkfontinst} = %{EVRD}
Requires:	%{libkfontinstui} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devplasma5_workspace}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devplasma5_workspace}
#{_kde5_datadir}/kdevappwizard/templates/ion-dataengine.*
%{_kde5_includedir}/colorcorrect/
%{_kde5_includedir}/kworkspace5/
%{_kde5_includedir}/notificationmanager/
%{_kde5_includedir}/plasma/geolocation/
%{_kde5_includedir}/plasma/weather/
%{_kde5_includedir}/taskmanager/
%{_kde5_libdir}/cmake/KRunnerAppDBusInterface/
%{_kde5_libdir}/cmake/KSMServerDBusInterface/
%{_kde5_libdir}/cmake/LibColorCorrect/
%{_kde5_libdir}/cmake/LibKWorkspace/
%{_kde5_libdir}/cmake/LibNotificationManager/
%{_kde5_libdir}/cmake/LibTaskManager/
%{_kde5_libdir}/libcolorcorrect.so
%{_kde5_libdir}/libkworkspace5.so
%{_kde5_libdir}/libnotificationmanager.so
%{_kde5_libdir}/libplasma-geolocation-interface.so
%{_kde5_libdir}/libtaskmanager.so
%{_kde5_libdir}/libweather_ion.so
%{_kde5_libdir}/libkfontinst.so
%{_kde5_libdir}/libkfontinstui.so
%{_kde5_datadir}/dbus-1/interfaces/com.canonical.AppMenu.Registrar.xml
%{_kde5_datadir}/dbus-1/interfaces/org.kde.KSMServerInterface.xml
%{_kde5_datadir}/dbus-1/interfaces/org.kde.KSplash.xml
%{_kde5_datadir}/dbus-1/interfaces/org.kde.PlasmaShell.xml
%{_kde5_datadir}/dbus-1/interfaces/org.kde.kappmenu.xml
%{_kde5_datadir}/dbus-1/interfaces/org.kde.krunner.App.xml

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}.1

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch105 -p1
%patch106 -p1
%patch107 -p1
%patch108 -p1
%patch109 -p1
%patch110 -p1
%patch200 -p1
%patch300 -p1
%patch400 -p1
%patch401 -p1
%patch402 -p1

pushd po
tar -xvzf %{SOURCE2}
popd

pushd lookandfeel/org.kde.breeze/contents/splash/images
tar -xvzf %{SOURCE4}
popd

pushd lookandfeel/org.kde.breeze/contents/previews
tar -xvzf %{SOURCE6}
popd

# Not ported yet
rm -f po/*/kcm_feedback.po

%build
%cmake_kde5 \
	-DBUILD_TESTING=OFF \
	%{?sddm_wayland_default:-DINSTALL_SDDM_WAYLAND_SESSION:BOOL=ON} \
	%{?with_wayland_default:-DPLASMA_WAYLAND_DEFAULT_SESSION:BOOL=ON}
%make

%install
%makeinstall_std -C build

install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/kde

# fix autostart permissions
chmod 644 %{buildroot}%{_sysconfdir}/xdg/autostart/*

mkdir -p %{buildroot}%{_sysconfdir}/xdg/QtProject/
cat > %{buildroot}%{_sysconfdir}/xdg/QtProject/qtlogging.ini << EOF
[Rules]
qt.qpa.xcb.warning=false
qt.qml.connections.warning=false
EOF

%if ! %{with wayland_default}
mv %{buildroot}%{_kde5_datadir}/xsessions/plasma.desktop %{buildroot}%{_kde5_datadir}/xsessions/01plasma.desktop
%else
mv %{buildroot}%{_kde5_datadir}/xsessions/plasmax11.desktop %{buildroot}%{_kde5_datadir}/xsessions/01plasmax11.desktop
%endif

# compat symlink
ln -s startplasma-x11 %{buildroot}%{_kde5_bindir}/startkde

# Some kio modules hardcode search path to /usr/share/applications
mv %{buildroot}%{_kde5_applicationsdir}/org.kde.kfontview.desktop %{buildroot}%{_kde5_datadir}/applications/org.kde.kfontview.desktop

%find_lang freespacenotifier kcminit kglobalaccel5 krunner \
           ksmserver kuiserver5 libkicker libkworkspace libnotificationmanager libtaskmanager \
           plasma_containmentactions_applauncher kcm_autostart kcm_nightcolor kcm_notifications \
           plasma_containmentactions_contextmenu plasma_containmentactions_switchwindow \
           plasma_lookandfeel_org.kde.lookandfeel kcmformats kcm_users kcm_regionandlang \
           phonon_kde_plugin plasma_package_plasmashell plasmashell plasmashellprivateplugin PolicyKit-kde \
           screenlocker soliduiserver5 systemmonitor translations kfontinst krdb   \
           %{name}.lang --with-kde

%find_lang kcm_colors

%find_lang kcm_fonts

%find_lang kcm_icons

%find_lang cursortheme kcmmousetheme kcm_cursortheme cursortheme.lang --with-html --with-kde

%find_lang kcm_style --with-html --with-kde

%find_lang kcm_desktoptheme

%find_lang kcm_lookandfeel

%find_lang kholidays_calendar_plugin

%find_lang kio5_applications

%find_lang kio_desktop

%find_lang klipper --with-kde --with-html

%find_lang plasma_wallpaper_org.kde.color

%find_lang plasma_wallpaper_org.kde.image

%find_lang plasma_applet_org.kde.plasma.activitybar

%find_lang plasma_applet_org.kde.plasma.analogclock

%find_lang plasma_applet_org.kde.plasma.appmenu

%find_lang plasma_applet_org.kde.plasma.battery

%find_lang plasma_applet_org.kde.plasma.calendar

%find_lang plasma_applet_org.kde.plasma.clipboard

%find_lang plasma_applet_org.kde.plasma.devicenotifier

%find_lang plasma_applet_org.kde.plasma.digitalclock

%find_lang plasma_applet_org.kde.plasma.icon

%find_lang plasma_applet_org.kde.plasma.lock_logout

%find_lang plasma_applet_org.kde.plasma.manageinputmethod

%find_lang plasma_applet_org.kde.plasma.mediacontroller

%find_lang plasma_applet_org.kde.plasma.notifications

%find_lang plasma_applet_org.kde.plasma.panelspacer

%find_lang plasma_applet_org.kde.plasma.systemmonitor

%find_lang plasma_applet_org.kde.plasma.private.systemtray

%find_lang plasma_engine_applicationjobs

%find_lang plasma_engine_devicenotifications

%find_lang plasma_engine_dict

%find_lang plasma_engine_hotplug

%find_lang plasma_engine_keystate

%find_lang plasma_engine_mpris2

%find_lang plasma_engine_notifications

%find_lang plasma_engine_powermanagement

%find_lang plasma_engine_soliddevice

%find_lang plasma_engine_time

%find_lang plasma_engine_weather

%find_lang plasma_runner_appstream

%find_lang plasma_runner_baloosearch5

%find_lang plasma_runner_bookmarksrunner

%find_lang plasma_runner_calculatorrunner

%find_lang plasma_runner_kill

%find_lang plasma_runner_locations

%find_lang plasma_runner_placesrunner

%find_lang plasma_runner_powerdevil

%find_lang plasma_runner_recentdocuments

%find_lang plasma_runner_services

%find_lang plasma_runner_sessions

%find_lang plasma_runner_shell

%find_lang plasma_runner_webshortcuts

%find_lang plasma_runner_windowedwidgets

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15826 |21mr|plasma5-workspace-wallpapers-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname plasma-workspace-wallpapers

Summary:	Plasma 5 wallpapers
Name:		plasma5-workspace-wallpapers
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
Recommends:	plasma5-wallpaper-altai
Recommends:	plasma5-wallpaper-autumn
Recommends:	plasma5-wallpaper-bythewater
Recommends:	plasma5-wallpaper-canopee
Recommends:	plasma5-wallpaper-cascade
Recommends:	plasma5-wallpaper-cluster
Recommends:	plasma5-wallpaper-coldripple
Recommends:	plasma5-wallpaper-colorfulcups
Recommends:	plasma5-wallpaper-darkesthour
Recommends:	plasma5-wallpaper-elarun
Recommends:	plasma5-wallpaper-eveningglow
Recommends:	plasma5-wallpaper-fallenleaf
Recommends:	plasma5-wallpaper-flow
Recommends:	plasma5-wallpaper-flyingkonqui
Recommends:	plasma5-wallpaper-grey
Recommends:	plasma5-wallpaper-honeywave
Recommends:	plasma5-wallpaper-icecold
Recommends:	plasma5-wallpaper-kay
Recommends:	plasma5-wallpaper-kite
Recommends:	plasma5-wallpaper-kokkini
Recommends:	plasma5-wallpaper-milkyway
Recommends:	plasma5-wallpaper-onestandsout
Recommends:	plasma5-wallpaper-opal
Recommends:	plasma5-wallpaper-pastelhills
Recommends:	plasma5-wallpaper-path
Recommends:	plasma5-wallpaper-patak
Recommends:	plasma5-wallpaper-safelanding
Recommends:	plasma5-wallpaper-shell
Recommends:	plasma5-wallpaper-summer_1am
Recommends:	plasma5-wallpaper-volna
BuildArch:	noarch

%description
Plasma 5 wallpapers.

%files

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-altai
Summary:	Plasma 5 Altai wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-altai
Plasma 5 Altai wallpaper.

%files -n plasma5-wallpaper-altai
%dir %{_kde5_datadir}/wallpapers/Altai/
%{_kde5_datadir}/wallpapers/Altai/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-autumn
Summary:	Plasma 5 Autumn wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-autumn
Plasma 5 Autumn wallpaper.

%files -n plasma5-wallpaper-autumn
%dir %{_kde5_datadir}/wallpapers/Autumn/
%{_kde5_datadir}/wallpapers/Autumn/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-bythewater
Summary:	Plasma 5 Bythe Water wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-bythewater
Plasma 5 Bythe Water wallpaper.

%files -n plasma5-wallpaper-bythewater
%dir %{_kde5_datadir}/wallpapers/BytheWater/
%{_kde5_datadir}/wallpapers/BytheWater/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-canopee
Summary:	Plasma 5 Canopee wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-canopee
Plasma 5 Canopee wallpaper.

%files -n plasma5-wallpaper-canopee
%dir %{_kde5_datadir}/wallpapers/Canopee/
%{_kde5_datadir}/wallpapers/Canopee/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-cascade
Summary:	Plasma 5 Cascade wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-cascade
Plasma 5 Cascade wallpaper.

%files -n plasma5-wallpaper-cascade
%dir %{_kde5_datadir}/wallpapers/Cascade/
%{_kde5_datadir}/wallpapers/Cascade/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-cluster
Summary:	Plasma 5 Cluster wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-cluster
Plasma 5 Cluster wallpaper.

%files -n plasma5-wallpaper-cluster
%dir %{_kde5_datadir}/wallpapers/Cluster/
%{_kde5_datadir}/wallpapers/Cluster/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-coldripple
Summary:	Plasma 5 Cold Ripple wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-coldripple
Plasma 5 Cold Ripple wallpaper.

%files -n plasma5-wallpaper-coldripple
%dir %{_kde5_datadir}/wallpapers/ColdRipple/
%{_kde5_datadir}/wallpapers/ColdRipple/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-elarun
Summary:	Plasma 5 Elarun wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-elarun
Plasma 5 Elarun wallpaper.

%files -n plasma5-wallpaper-elarun
%dir %{_kde5_datadir}/wallpapers/Elarun/
%{_kde5_datadir}/wallpapers/Elarun/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-eveningglow
Summary:	Plasma 5 Evening Glow wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-eveningglow
Plasma 5 Evening Glow wallpaper.

%files -n plasma5-wallpaper-eveningglow
%dir %{_kde5_datadir}/wallpapers/EveningGlow/
%{_kde5_datadir}/wallpapers/EveningGlow/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-colorfulcups
Summary:	Plasma 5 Colorful Cups wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-colorfulcups
Plasma 5 Colorful Cups wallpaper.

%files -n plasma5-wallpaper-colorfulcups
%dir %{_kde5_datadir}/wallpapers/ColorfulCups/
%{_kde5_datadir}/wallpapers/ColorfulCups/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-darkesthour
Summary:	Plasma 5 Darkest Hour wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-darkesthour
Plasma 5 Darkest Hour wallpaper.

%files -n plasma5-wallpaper-darkesthour
%dir %{_kde5_datadir}/wallpapers/DarkestHour/
%{_kde5_datadir}/wallpapers/DarkestHour/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-fallenleaf
Summary:	Plasma 5 Fallen Leaf wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-fallenleaf
Plasma 5 Fallen Leaf wallpaper.

%files -n plasma5-wallpaper-fallenleaf
%dir %{_kde5_datadir}/wallpapers/FallenLeaf/
%{_kde5_datadir}/wallpapers/FallenLeaf/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-flyingkonqui
Summary:	Plasma 5 Flying Konqui wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-flyingkonqui
Plasma 5 Flying Konqui wallpaper.

%files -n plasma5-wallpaper-flyingkonqui
%dir %{_kde5_datadir}/wallpapers/FlyingKonqui/
%{_kde5_datadir}/wallpapers/FlyingKonqui/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-grey
Summary:	Plasma 5 Grey wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-grey
Plasma 5 Grey wallpaper.

%files -n plasma5-wallpaper-grey
%dir %{_kde5_datadir}/wallpapers/Grey/
%{_kde5_datadir}/wallpapers/Grey/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-honeywave
Summary:	Plasma 5 Honeywave wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-honeywave
Plasma 5 Honeywave wallpaper.

%files -n plasma5-wallpaper-honeywave
%dir %{_kde5_datadir}/wallpapers/Honeywave/
%{_kde5_datadir}/wallpapers/Honeywave/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-icecold
Summary:	Plasma 5 IceCold wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-icecold
Plasma 5 IceCold wallpaper.

%files -n plasma5-wallpaper-icecold
%dir %{_kde5_datadir}/wallpapers/IceCold/
%{_kde5_datadir}/wallpapers/IceCold/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-kay
Summary:	Plasma 5 Kay wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-kay
Plasma 5 Kay wallpaper.

%files -n plasma5-wallpaper-kay
%dir %{_kde5_datadir}/wallpapers/Kay/
%{_kde5_datadir}/wallpapers/Kay/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-kite
Summary:	Plasma 5 Kite wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-kite
Plasma 5 Kite wallpaper.

%files -n plasma5-wallpaper-kite
%dir %{_kde5_datadir}/wallpapers/Kite/
%{_kde5_datadir}/wallpapers/Kite/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-kokkini
Summary:	Plasma 5 Kokkini wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-kokkini
Plasma 5 Kokkini wallpaper.

%files -n plasma5-wallpaper-kokkini
%dir %{_kde5_datadir}/wallpapers/Kokkini/
%{_kde5_datadir}/wallpapers/Kokkini/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-milkyway
Summary:	Plasma 5 MilkyWay wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-milkyway
Plasma 5 MilkyWay wallpaper.

%files -n plasma5-wallpaper-milkyway
%dir %{_kde5_datadir}/wallpapers/MilkyWay/
%{_kde5_datadir}/wallpapers/MilkyWay/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-onestandsout
Summary:	Plasma 5 One Stands Out wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-onestandsout
Plasma 5 One Stands Out wallpaper.

%files -n plasma5-wallpaper-onestandsout
%dir %{_kde5_datadir}/wallpapers/OneStandsOut/
%{_kde5_datadir}/wallpapers/OneStandsOut/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-opal
Summary:	Plasma 5 Opal wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-opal
Plasma 5 Opal wallpaper.

%files -n plasma5-wallpaper-opal
%dir %{_kde5_datadir}/wallpapers/Opal/
%{_kde5_datadir}/wallpapers/Opal/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-pastelhills
Summary:	Plasma 5 Pastel Hills wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-pastelhills
Plasma 5 Pastel Hills wallpaper.

%files -n plasma5-wallpaper-pastelhills
%dir %{_kde5_datadir}/wallpapers/PastelHills/
%{_kde5_datadir}/wallpapers/PastelHills/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-path
Summary:	Plasma 5 Path wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-path
Plasma 5 Path wallpaper.

%files -n plasma5-wallpaper-path
%dir %{_kde5_datadir}/wallpapers/Path/
%{_kde5_datadir}/wallpapers/Path/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-patak
Summary:	Plasma 5 Patak wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-patak
Plasma 5 Patak wallpaper.

%files -n plasma5-wallpaper-patak
%dir %{_kde5_datadir}/wallpapers/Patak/
%{_kde5_datadir}/wallpapers/Patak/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-summer_1am
Summary:	Plasma 5 Summer 1AM wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-summer_1am
Plasma 5 Summer 1AM wallpaper.

%files -n plasma5-wallpaper-summer_1am
%dir %{_kde5_datadir}/wallpapers/summer_1am/
%{_kde5_datadir}/wallpapers/summer_1am/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-volna
Summary:	Plasma 5 Volna wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-volna
Plasma 5 Volna wallpaper.

%files -n plasma5-wallpaper-volna
%dir %{_kde5_datadir}/wallpapers/Volna/
%{_kde5_datadir}/wallpapers/Volna/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-flow
Summary:	Plasma 5 Flow wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-flow
Plasma 5 Flow wallpaper.

%files -n plasma5-wallpaper-flow
%dir %{_kde5_datadir}/wallpapers/Flow/
%{_kde5_datadir}/wallpapers/Flow/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-shell
Summary:	Plasma 5 Shell wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-shell
Plasma 5 Shell wallpaper.

%files -n plasma5-wallpaper-shell
%dir %{_kde5_datadir}/wallpapers/Shell/
%{_kde5_datadir}/wallpapers/Shell/*

#----------------------------------------------------------------------------

%package -n plasma5-wallpaper-safelanding
Summary:	Plasma 5 SafeLanding wallpaper
Group:		Graphical desktop/KDE

%description -n plasma5-wallpaper-safelanding
Plasma 5 Shell wallpaper.

%files -n plasma5-wallpaper-safelanding
%dir %{_kde5_datadir}/wallpapers/SafeLanding/
%{_kde5_datadir}/wallpapers/SafeLanding/*

#----------------------------------------------------------------------------

%prep
%autosetup -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15827 |21mr|plasma5-zeroconf-ioslave-21.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname zeroconf-ioslave

Summary:	DNS-SD Service Discovery Monitor for Plasma 5
Name:		plasma5-%{oname}
Version:	21.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Patch0:		0001-Enable-SMB-Zeroconf-discovery.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
Requires:	nss_mdns
# Because of dbus interface
Conflicts:	kdnssd < 1:17.04.3-2

%description
DNS-SD Service Discovery Monitor for Plasma 5.

%files -f kio5_zeroconf.lang
%{_kde5_datadir}/remoteview/zeroconf.desktop
%{_datadir}/dbus-1/interfaces/org.kde.kdnssd.xml
%{_kde5_plugindir}/kded/dnssdwatcher.so
%{_qt5_plugindir}/kf5/kio/zeroconf.so
%{_appdatadir}/org.kde.zeroconf-ioslave.metainfo.xml
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kio5_zeroconf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15828 |21mr|plasma-camera-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Camera app for Plasma Mobile
Name:		plasma-camera
Version:	1.0
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://invent.kde.org/plasma-mobile/plasma-camera/-/archive/master/plasma-camera-master.tar.bz2
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel

%description
Camera app for Plasma Mobile.

%files
%{_kde5_bindir}/plasma-camera
%{_kde5_applicationsdir}/org.kde.plasma.camera.desktop
%{_appdatadir}/org.kde.plasma.camera.appdata.xml

#----------------------------------------

%prep
%autosetup -p1 -n plasma-camera-master

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15829 |21mr|plasma-dialer-23.01.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dialer for Plasma Mobile
Name:		plasma-dialer
Version:	23.01.0
Release:	3
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	plasma-dialer-22.11_ru.tar.gz
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5people-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	%{_lib}kf5pulseaudioqt-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Feedback)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(mpris-qt5)
BuildRequires:	pkgconfig(libcallaudio-0.1)
BuildRequires:	phonenumber-devel
BuildRequires:	plasma-wayland-protocols-devel
Requires:  kirigami-addons

%description
Dialer for Plasma Mobile.

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name} --all-name

# Not currently used by anything, so no need for
# a -devel package so far
rm -rf %{buildroot}%{_includedir} %{buildroot}%{_libdir}/*.a

%files -f %{name}.lang
%{_kde5_bindir}/plasmaphonedialer
%{_kde5_applicationsdir}/org.kde.phone.dialer.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/dialer.svg
%{_kde5_notificationsdir}/plasma_dialer.notifyrc
%{_appdatadir}/org.kde.phone.dialer.appdata.xml
%{_sysconfdir}/xdg/autostart/org.kde.modem.daemon.desktop
%{_sysconfdir}/xdg/autostart/org.kde.telephony.daemon.desktop
%{_kde5_libexecdir}/kde-telephony-daemon
%{_kde5_libexecdir}/modem-daemon
%{_kde5_qmldir}/org/kde/telephony
%{_datadir}/dbus-1/interfaces/org.kde.telephony.*.xml
%{_datadir}/dbus-1/services/org.kde.modemdaemon.service
%{_datadir}/dbus-1/services/org.kde.telephony.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15830 |21mr|plasma-framework-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

# Disabled since 5.11.0
%bcond_with ruby

Summary:	KDE Frameworks 5 plugin based UI runtime module
Name:		plasma-framework
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Source1:	start.svgz
Source2:	icons.tar.gz
Source3:	start.tar.gz
Patch0:		build-e2k.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5activities-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5globalaccel-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5package-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-composite)
BuildRequires:	pkgconfig(xcb-damage)
BuildRequires:	pkgconfig(xcb-render)
BuildRequires:	pkgconfig(xcb-shape)
BuildRequires:	pkgconfig(xcb-xfixes)
Recommends:	plasma5-desktoptheme-air
Requires:	plasma5-desktoptheme-breeze
Requires:	plasma5-desktoptheme-breeze-dark
Requires:	plasma5-desktoptheme-breeze-light
Recommends:	plasma5-desktoptheme-oxygen
Requires:	plasma5-scriptengine-declarative
%if %{with ruby}
Requires:	plasma5-scriptengine-ruby
%else
Obsoletes:	plasma5-dataengine-testengine < 5.73.0
Obsoletes:	plasma5-scriptengine-ruby < %{EVRD}
%endif
Conflicts:	kirigami2 < 5.43

%description
KDE Frameworks 5 plugin based UI runtime module.

The plasma framework provides the foundations that can be used to build
a primary user interface, from graphical to logical components.

%files
%{_kde5_bindir}/plasmapkg2
%{_kde5_datadir}/plasma/services/*.operations
%{_kde5_datadir}/qlogging-categories5/plasma-framework.categories
%{_kde5_datadir}/qlogging-categories5/plasma-framework.renamecategories
%{_kde5_mandir}/man1/plasmapkg2.1*
%{_kde5_qmldir}/org/kde/kirigami.2/styles/Plasma/AbstractApplicationHeader.qml
%{_kde5_qmldir}/org/kde/kirigami.2/styles/Plasma/Icon.qml
%{_kde5_qmldir}/org/kde/kirigami.2/styles/Plasma/Theme.qml
%{_kde5_servicetypes}/plasma-*.desktop
%{_kde5_plugindir}/kirigami/KirigamiPlasmaStyle.so
%{_qt5_plugindir}/kpackage/packagestructure/*

#----------------------------------------------------------------------------

%package -n plasma5-desktoptheme-air
Summary:	Air plasma desktop theme
Group:		Graphical desktop/KDE
BuildArch:	noarch

%description -n plasma5-desktoptheme-air
Air plasma desktop theme.

%files -n plasma5-desktoptheme-air
%dir %{_kde5_datadir}/plasma/desktoptheme/air/
%{_kde5_datadir}/plasma/desktoptheme/air/*

#----------------------------------------------------------------------------

%package -n plasma5-desktoptheme-breeze
Summary:	Breeze plasma desktop theme
Group:		Graphical desktop/KDE
Conflicts:	plasma5-applet-notes < 5.4.3-2
BuildArch:	noarch

%description -n plasma5-desktoptheme-breeze
Breeze plasma desktop theme.

%files -n plasma5-desktoptheme-breeze
%dir %{_kde5_datadir}/plasma/desktoptheme/default/
%{_kde5_datadir}/plasma/desktoptheme/default/*

#----------------------------------------------------------------------------

%package -n plasma5-desktoptheme-breeze-dark
Summary:	Breeze Dark plasma desktop theme
Group:		Graphical desktop/KDE
BuildArch:	noarch

%description -n plasma5-desktoptheme-breeze-dark
Breeze Dark plasma desktop theme.

%files -n plasma5-desktoptheme-breeze-dark
%dir %{_kde5_datadir}/plasma/desktoptheme/breeze-dark/
%{_kde5_datadir}/plasma/desktoptheme/breeze-dark/*

#----------------------------------------------------------------------------

%package -n plasma5-desktoptheme-breeze-light
Summary:	Breeze Light plasma desktop theme
Group:		Graphical desktop/KDE
BuildArch:	noarch

%description -n plasma5-desktoptheme-breeze-light
Breeze Light plasma desktop theme.

%files -n plasma5-desktoptheme-breeze-light
%dir %{_kde5_datadir}/plasma/desktoptheme/breeze-light/
%{_kde5_datadir}/plasma/desktoptheme/breeze-light/*

#----------------------------------------------------------------------------

%package -n plasma5-desktoptheme-oxygen
Summary:	Oxygen plasma desktop theme
Group:		Graphical desktop/KDE
BuildArch:	noarch

%description -n plasma5-desktoptheme-oxygen
Oxygen plasma desktop theme.

%files -n plasma5-desktoptheme-oxygen
%dir %{_kde5_datadir}/plasma/desktoptheme/oxygen/
%{_kde5_datadir}/plasma/desktoptheme/oxygen/*

#----------------------------------------------------------------------------

%package -n plasma5-scriptengine-declarative
Summary:	Support for QML and JavaScript plasma applets
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}

%description -n plasma5-scriptengine-declarative
Support for QML and JavaScript plasma applets.

%files -n plasma5-scriptengine-declarative
%{_qt5_plugindir}/plasma/scriptengines/plasma_appletscript_declarative.so

#----------------------------------------------------------------------------

%if %{with ruby}
%package -n plasma5-scriptengine-ruby
Summary:	Support for ruby plasma applets
Group:		Graphical desktop/KDE
Requires:	%{name} = %{EVRD}
Requires:	ruby

%description -n plasma5-scriptengine-ruby
Support for ruby plasma applets.

%files -n plasma5-scriptengine-ruby
%{_kde5_services}/plasma-scriptengine-ruby-dataengine.desktop
%dir %{_kde5_datadir}/plasma/plasma_scriptengine_ruby/
%{_kde5_datadir}/plasma/plasma_scriptengine_ruby/*
%endif

#----------------------------------------------------------------------------

%package i18n
Summary:	Plasma Framework translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Plasma Framework translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define qmlkf5plasma %mklibname kf5plasma-qml

%package -n %{qmlkf5plasma}
Summary:	QML plugin for KDE Frameworks 5 Plasma Framework
Group:		System/Libraries
Provides:	kf5plasma-qml = %{EVRD}

%description -n %{qmlkf5plasma}
QML plugin for KDE Frameworks 5 Plasma Framework.

%files -n %{qmlkf5plasma}
%dir %{_kde5_qmldir}/org/kde/plasma/
%{_kde5_qmldir}/org/kde/plasma/*
%dir %{_kde5_qmldir}/QtQuick/Controls/Styles/Plasma/
%{_kde5_qmldir}/QtQuick/Controls/Styles/Plasma/*
%dir %{_kde5_qmldir}/QtQuick/Controls.2/Plasma/
%{_kde5_qmldir}/QtQuick/Controls.2/Plasma/*

#----------------------------------------------------------------------------

%define kf5plasma_major 5
%define libkf5plasma %mklibname kf5plasma %{kf5plasma_major}

%package -n %{libkf5plasma}
Summary:	KDE Frameworks 5 plugin based UI runtime shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5plasma} = %{EVRD}

%description -n %{libkf5plasma}
KDE Frameworks 5 plugin based UI runtime shared library.

%files -n %{libkf5plasma}
%{_kde5_libdir}/libKF5Plasma.so.%{kf5plasma_major}*

#----------------------------------------------------------------------------

%define kf5plasmaquick_major 5
%define libkf5plasmaquick %mklibname kf5plasmaquick %{kf5plasmaquick_major}

%package -n %{libkf5plasmaquick}
Summary:	KDE Frameworks 5 plugin based UI runtime shared library
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5plasma} = %{EVRD}

%description -n %{libkf5plasmaquick}
KDE Frameworks 5 plugin based UI runtime shared library.

%files -n %{libkf5plasmaquick}
%{_kde5_libdir}/libKF5PlasmaQuick.so.%{kf5plasmaquick_major}*

#----------------------------------------------------------------------------

%define devkf5plasma %mklibname kf5plasma -d

%package -n %{devkf5plasma}
Summary:	Development files for KDE Frameworks 5 plugin based UI runtime module
Group:		Development/KDE and Qt
Requires:	%{libkf5plasma} = %{EVRD}
Requires:	%{libkf5plasmaquick} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5plasma-devel = %{version}
Provides:	kf5plasmaquick-devel = %{version}

%description -n %{devkf5plasma}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5plasma}
%{_kde5_datadir}/kdevappwizard/templates/*
%{_kde5_includedir}/KF5/Plasma
%{_kde5_includedir}/KF5/plasma
%{_kde5_includedir}/KF5/PlasmaQuick/
%{_kde5_includedir}/KF5/plasmaquick
%{_kde5_libdir}/cmake/KF5Plasma
%{_kde5_libdir}/cmake/KF5PlasmaQuick
%{_kde5_libdir}/libKF5Plasma.so
%{_kde5_libdir}/libKF5PlasmaQuick.so

#----------------------------------------------------------------------------

%prep
%setup -q

%ifarch %e2k
# remove after update to LCC 1.27
%patch0 -p2
%endif

pushd src/desktoptheme/breeze/icons
tar -xvzf %{SOURCE3}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15831 |21mr|plasma-nano-5.25.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define stable %([ "`echo %{version} |cut -d. -f3`" -ge 80 ] && echo -n un; echo -n stable)

Name:		plasma-nano
Version:	5.25.5
Release:	1
Summary:	Plasma interface for embedded devices
Source0:	http://download.kde.org/%{stable}/plasma/%(echo %{version} |cut -d. -f1-3)/%{name}-%{version}.tar.xz
License:	GPLv2/LGPLv2/LGPLv2.1
Group:		Graphical desktop/KDE
BuildRequires:	cmake(ECM)
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5Gui)
BuildRequires:	cmake(Qt5Quick)
BuildRequires:	cmake(Qt5Qml)
BuildRequires:	cmake(Qt5Test)
BuildRequires:	cmake(KF5Plasma)
BuildRequires:	cmake(KF5WindowSystem)
BuildRequires:	cmake(KF5Wayland)
BuildRequires:	cmake(KF5I18n)

%description
Plasma interface for embedded devices.

%prep
%autosetup -p1

%build
%cmake_kde5
%make_build

%install
%make_install -C build
%find_lang plasma-nano --all-name --with-html

%files -f plasma-nano.lang
%{_libdir}/qt5/qml/org/kde/plasma/private/nanoshell
%{_datadir}/metainfo/org.kde.plasma.nano.desktoptoolbox.appdata.xml
%{_datadir}/plasma/packages/org.kde.plasma.nano.desktoptoolbox
%{_datadir}/plasma/shells/org.kde.plasma.nano
%{_datadir}/kservices5/plasma-applet-org.kde.plasma.nano.desktop
%{_datadir}/kservices5/plasma-package-org.kde.plasma.nano.desktoptoolbox.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15832 |21mr|plasma-phonebook-23.01.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Phone book application for Plasma Mobile
Name:		plasma-phonebook
Version:	23.01.0
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5people-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	kpeoplevcard-devel

%description
Phone book application for Plasma Mobile.


%files -f plasma-phonebook.lang
%{_kde5_bindir}/plasma-phonebook
%{_qt5_plugindir}/kpeople/actions/phonebook_kpeople_plugin.so
%{_kde5_applicationsdir}/org.kde.phonebook.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.phonebook.svg
%{_appdatadir}/org.kde.phonebook.metainfo.xml

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang plasma-phonebook


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15833 |21mr|plasma-settings-22.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Settings application for Plasma Mobile
Name:		plasma-settings
Version:	22.11
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	plasma-settings-22.11_ru.tar.gz
Patch0:	    plasma-settings-string_locale.patch
Patch1:	    plasma-settings-pot.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	cmake
BuildRequires:	kf5auth-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	kf5networkmanagerqt-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(gobject-2.0)

%description
Settings application for Plasma Mobile

%files -f kcm_cellular_network.lang -f kcm_mobile_info.lang -f kcm_mobile_power.lang -f kcm_mobile_time.lang -f kcm_mobile_virtualkeyboard.lang -f kcm_password.lang -f mobile.plasmasettings.lang
%{_kde5_applicationsdir}/org.kde.mobile.plasmasettings.desktop
%{_kde5_bindir}/plasma-settings
%{_qt5_plugindir}/kcms/kcm_cellular_network.so
%{_qt5_plugindir}/kcms/kcm_mobile_info.so
%{_qt5_plugindir}/kcms/kcm_mobile_time.so
%{_qt5_plugindir}/kcms/kcm_password.so
%{_qt5_plugindir}/kcms/kcm_mobile_onscreenkeyboard.so
%{_qt5_plugindir}/kcms/kcm_mobile_power.so
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_info
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_time
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_virtualkeyboard
%{_kde5_datadir}/kpackage/kcms/kcm_password
%{_kde5_datadir}/kpackage/kcms/kcm_mobile_power
%{_kde5_datadir}/kpackage/kcms/kcm_cellular_network


%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

# Not ported yet
rm -f po/*/kcm_mobile_powermanagement.po

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang kcm_cellular_network
%find_lang kcm_mobile_info
%find_lang kcm_mobile_power
%find_lang kcm_mobile_time
%find_lang kcm_mobile_virtualkeyboard
%find_lang kcm_password
%find_lang mobile.plasmasettings

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15834 |21mr|plasma-wayland-protocols-1.10.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

Summary:	Plasma Wayland Protocols that adds functionality
Name:		plasma-wayland-protocols
Version:	1.10.0
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)

%description
This project should be installing only the xml files of the
non-standard wayland protocols we use in Plasma.

%files
%dir %{_kde5_datadir}/plasma-wayland-protocols
%{_kde5_datadir}/plasma-wayland-protocols/*.xml

#----------------------------------------------------------------------------

%package devel
Summary:	Plasma Wayland Protocols that adds functionality
Group:		Development/KDE and Qt
Requires:	%{name}

%description devel
This project should be installing only the xml files of the
non-standard wayland protocols we use in Plasma.

%files devel
%dir %{_kde5_libdir}/cmake/PlasmaWaylandProtocols
%{_kde5_libdir}/cmake/PlasmaWaylandProtocols/PlasmaWaylandProtocolsConfig.cmake
%{_kde5_libdir}/cmake/PlasmaWaylandProtocols/PlasmaWaylandProtocolsConfigVersion.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15835 |21mr|plexus-active-collections-1.0-0.26.beta2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global project_version 1.0-beta-2

Name:           plexus-active-collections
Version:        1.0
Release:        0.26.beta2
Summary:        Plexus Container-Backed Active Collections

License:        ASL 2.0
URL:            http://plexus.codehaus.org/
#svn export http://svn.codehaus.org/plexus/tags/plexus-active-collections-1.0-beta-2/
#tar zcf plexus-active-collections-1.0-beta-2.tar.gz plexus-active-collections-1.0-beta-2/
Source0:        plexus-active-collections-1.0-beta-2.tar.gz
Source1:        http://apache.org/licenses/LICENSE-2.0.txt

Patch0:         %{name}-migration-to-component-metadata.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)


%description
Plexus Container-Backed Active Collections

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{project_version}
%patch0 -p1
cp %{SOURCE1} .

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15836 |21mr|plexus-ant-factory-1.0-0.23.a2.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global parent plexus
%global subname ant-factory

Name:           %{parent}-%{subname}
Version:        1.0
Release:        0.23.a2.2
Epoch:          0
Summary:        Plexus Ant component factory
# Email from copyright holder confirms license.
# See plexus-ant-factory_license_and_copyright.txt
License:        ASL 2.0
URL:            http://plexus.codehaus.org/
Source0:        %{name}-src.tar.bz2
# svn export http://svn.codehaus.org/plexus/tags/plexus-ant-factory-1.0-alpha-2.1/ plexus-ant-factory/
# tar cjf plexus-ant-factory-src.tar.bz2 plexus-ant-factory/
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local

BuildRequires:  ant
BuildRequires:  plexus-classworlds
BuildRequires:  plexus-containers-container-default
BuildRequires:  plexus-utils
BuildRequires:  plexus-component-factories-pom


%description
Ant component class creator for Plexus.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}
cp %{SOURCE1} LICENSE


%build
%mvn_file  : %{parent}/%{subname}
%mvn_build

%install
%mvn_install


%pre javadoc
# workaround for rpm bug, can be removed in F-20
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :

%files -f .mfiles
%doc LICENSE

%files javadoc -f .mfiles-javadoc
%doc LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15837 |21mr|plexus-archiver-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without snappy

Name:           plexus-archiver
Version:        4.1.0
Release:        1
Epoch:          0
Summary:        Plexus Archiver Component
License:        ASL 2.0
URL:            http://codehaus-plexus.github.io/plexus-archiver
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/codehaus-plexus/plexus-archiver/archive/plexus-archiver-%{version}.tar.gz

Patch0:         0001-Remove-support-for-snappy.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-io)
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
%if %{with snappy}
BuildRequires:  mvn(org.iq80.snappy:snappy)
%endif

# Missing from xmvn-builddep
BuildRequires:  mvn(org.tukaani:xz)

%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.


%prep
%setup -q -n %{name}-%{name}-%{version}
%mvn_file :%{name} plexus/archiver

%if %{without snappy}
%patch0 -p1
%pom_remove_dep org.iq80.snappy:snappy
rm -rf src/main/java/org/codehaus/plexus/archiver/snappy
rm -f src/main/java/org/codehaus/plexus/archiver/tar/SnappyTarFile.java
rm -f src/main/java/org/codehaus/plexus/archiver/tar/PlexusIoTarSnappyFileResourceCollection.java
%endif

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15838 |21mr|plexus-bsh-factory-1.0-0.22.a7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define parent plexus
%define subname bsh-factory

Name:           %{parent}-%{subname}
Version:        1.0
Release:        0.22.a7
Epoch:          0
Summary:        Plexus Bsh component factory
License:        MIT
URL:            http://plexus.codehaus.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
# svn export svn://svn.plexus.codehaus.org/plexus/tags/plexus-bsh-factory-1.0-alpha-7-SNAPSHOT plexus-bsh-factory/
# tar czf plexus-bsh-factory-src.tar.gz plexus-bsh-factory/
Source0:        %{name}-src.tar.gz
Source3:	plexus-bsh-factory-license.txt

Patch1:         %{name}-encodingfix.patch
Patch2:         0001-Migrate-to-plexus-containers-container-default.patch

BuildRequires:  maven-local
BuildRequires:  mvn(bsh:bsh)
BuildRequires:  mvn(classworlds:classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
Bsh component class creator for Plexus.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}

%patch1 -b .sav
%patch2 -p1
cp release-pom.xml pom.xml
cp -p %{SOURCE3} .

%build
%mvn_file  : %{parent}/%{subname}
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc plexus-bsh-factory-license.txt

%files javadoc -f .mfiles-javadoc
%doc plexus-bsh-factory-license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15839 |21mr|plexus-build-api-0.0.7-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-build-api
Version:        0.0.7
Release:        23
Summary:        Plexus Build API
License:        ASL 2.0
URL:            https://github.com/sonatype/sisu-build-api
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

#Fetched from https://github.com/sonatype/sisu-build-api/tarball/plexus-build-api-0.0.7
Source0:        sonatype-sisu-build-api-plexus-build-api-0.0.7-0-g883ea67.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

# Forwarded upstream: https://github.com/sonatype/sisu-build-api/pull/2
Patch0:         %{name}-migration-to-component-metadata.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.sonatype.spice:spice-parent:pom:)

%description
Plexus Build API

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n sonatype-sisu-build-api-f1f8849
cp -p %{SOURCE1} .

%patch0 -p1

%mvn_file : plexus/%{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15840 |21mr|plexus-cipher-1.7-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-cipher
Version:        1.7
Release:        17
Summary:        Plexus Cipher: encryption/decryption Component
License:        ASL 2.0
# project moved to GitHub and it looks like there is no official website anymore
URL:            https://github.com/codehaus-plexus/plexus-cipher
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# git clone https://github.com/sonatype/plexus-cipher.git
# cd plexus-cipher/
# note this is version 1.7 + our patches which were incorporated by upstream maintainer
# git archive --format tar --prefix=plexus-cipher-1.7/ 0cff29e6b2e | gzip -9 > plexus-cipher-1.7.tar.gz
Source0:        %{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(javax.enterprise:cdi-api)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.sonatype.plugins:sisu-maven-plugin)
BuildRequires:  mvn(org.sonatype.spice:spice-parent:pom:)

%description
Plexus Cipher: encryption/decryption Component

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

# replace %{version}-SNAPSHOT with %{version}
%pom_xpath_replace pom:project/pom:version "<version>%{version}</version>"

# fedora moved from sonatype sisu to eclipse sisu. sisu-inject-bean artifact
# doesn't exist in eclipse sisu. this artifact contains nothing but
# bundled classes from atinject, cdi-api, aopalliance and maybe others.
%pom_remove_dep org.sonatype.sisu:sisu-inject-bean
%pom_add_dep javax.inject:javax.inject:1:provided
%pom_add_dep javax.enterprise:cdi-api:1.0:provided

%mvn_file : plexus/%{name}

%build
# Tests depend on sisu-guice
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15841 |21mr|plexus-classworlds-2.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-classworlds
Version:        2.6.0
Release:        2
Summary:        Plexus Classworlds Classloader Framework
License:        ASL 2.0 and Plexus
URL:            https://github.com/codehaus-plexus/plexus-classworlds
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)

# test deps missed by builddep
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(xml-apis:xml-apis)


%description
Classworlds is a framework for container developers
who require complex manipulation of Java's ClassLoaders.
Java's native ClassLoader mechanisms and classes can cause
much headache and confusion for certain types of
application developers. Projects which involve dynamic
loading of components or otherwise represent a 'container'
can benefit from the classloading control provided by
classworlds.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%mvn_file : %{name} plexus/classworlds
%mvn_alias : classworlds:classworlds

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15842 |21mr|plexus-cli-1.6-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-cli
Version:        1.6
Release:        9
Epoch:          0
Summary:        Command Line Interface facilitator for Plexus
License:        ASL 2.0
URL:            https://github.com/codehaus-plexus/plexus-cli
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# git clone git://github.com/codehaus-plexus/plexus-cli.git
# git --git-dir plexus-cli/.git archive --prefix plexus-cli-1.6/ 8927458e81 | xz >plexus-cli-1.6.tar.xz
Source0:        %{name}-%{version}.tar.xz
Source1:        LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(org.codehaus.plexus:plexus-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
cp -p %{SOURCE1} .

%mvn_file : plexus/cli

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15843 |21mr|plexus-compiler-2.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without eclipse

Name:       plexus-compiler
Epoch:      0
Version:    2.8.5
Release:    1
Summary:    Compiler call initiators for Plexus
# extras subpackage has a bit different licensing
# parts of compiler-api are ASL2.0/MIT
License:    MIT and ASL 2.0
URL:        https://github.com/codehaus-plexus/plexus-compiler
Group:          Development/Java
BuildArch:  noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:    https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz
Source1:    http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:    LICENSE.MIT

BuildRequires:  maven-local
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
%if %{with eclipse}
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.jdt.core)
%endif


%description
Plexus Compiler adds support for using various compilers from a
unified api. Support for javac is available in main package. For
additional compilers see %{name}-extras package.

%package extras
Summary:        Extra compiler support for %{name}
# ASL 2.0: src/main/java/org/codehaus/plexus/compiler/util/scan/
#          ...codehaus/plexus/compiler/csharp/CSharpCompiler.java
# ASL 1.1/MIT: ...codehaus/plexus/compiler/jikes/JikesCompiler.java
License:        MIT and ASL 2.0 and ASL 1.1

%description extras
Additional support for csharp, eclipse and jikes compilers

%package pom
Summary:        Maven POM files for %{name}

%description pom
This package provides %{summary}.

%package javadoc
Summary:        Javadoc for %{name}
License:        MIT and ASL 2.0 and ASL 1.1

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp %{SOURCE1} LICENSE
cp %{SOURCE2} LICENSE.MIT

%pom_disable_module plexus-compiler-aspectj plexus-compilers
# missing com.google.errorprone:error_prone_core
%pom_disable_module plexus-compiler-javac-errorprone plexus-compilers

%if %{without eclipse}
%pom_disable_module plexus-compiler-eclipse plexus-compilers
%endif

# don't build/install compiler-test module, it needs maven2 test harness
%pom_disable_module plexus-compiler-test

# don't install sources jars
%mvn_package ":*::sources:" __noinstall

%mvn_package ":plexus-compiler{,s}" pom
%mvn_package ":*{csharp,eclipse,jikes}*" extras

# don't generate requires on test dependency (see #1007498)
%pom_xpath_remove "pom:dependency[pom:artifactId[text()='plexus-compiler-test']]" plexus-compilers

%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin

%build
# Tests are skipped because of unavailable plexus-compiler-test artifact
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE LICENSE.MIT
%files extras -f .mfiles-extras
%files pom -f .mfiles-pom

%files javadoc -f .mfiles-javadoc
%doc LICENSE LICENSE.MIT


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15844 |21mr|plexus-component-api-1.0-0.27.alpha15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define project_version 1.0-alpha-15

Name:           plexus-component-api
Version:        1.0
Release:        0.27.alpha15
Summary:        Plexus Component API

License:        ASL 2.0
URL:            http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-15/plexus-component-api/
#svn export http://svn.codehaus.org/plexus/plexus-containers/tags/plexus-containers-1.0-alpha-15/plexus-component-api/ plexus-component-api-1.0-alpha-15
#tar zcf plexus-component-api-1.0-alpha-15.tar.gz plexus-component-api-1.0-alpha-15/
Source0:        %{name}-%{project_version}.tar.gz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  maven-local
BuildRequires:  maven-assembly-plugin
BuildRequires:  maven-resources-plugin
BuildRequires:  maven-plugin-plugin
BuildRequires:  plexus-classworlds
# requires as parent pom
BuildRequires:  plexus-containers

%description
Plexus Component API

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.


%prep
%setup -q -n %{name}-%{project_version}

%build
%mvn_build

%install
%mvn_install

%pre javadoc
# workaround for rpm bug, can be removed in F-20
[ $1 -gt 1 ] && [ -L %{_javadocdir}/%{name} ] && \
rm -rf $(readlink -f %{_javadocdir}/%{name}) %{_javadocdir}/%{name} || :

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15845 |21mr|plexus-component-factories-pom-1.0-0.18.alpha11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global artifactId plexus-component-factories

Name:		plexus-component-factories-pom
Version:	1.0
Release:	0.18.alpha11
Summary:	Plexus Component Factories POM
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
License:	ASL 2.0
URL:		https://github.com/codehaus-plexus/plexus-component-factories
Source0:	http://repo1.maven.org/maven2/org/codehaus/plexus/%{artifactId}/%{version}-alpha-11/%{artifactId}-%{version}-alpha-11.pom
Source1:	http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)


%description
This package provides Plexus Component Factories parent POM used by different
Plexus packages.

%prep
%setup -cT
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} LICENSE

%pom_xpath_remove pom:modules

%build
%mvn_alias : plexus:
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15846 |21mr|plexus-components-pom-4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-components-pom
Summary:        Plexus Components POM
Version:        4.0
Release:        1
License:        ASL 2.0

URL:            https://github.com/codehaus-plexus/plexus-components
Source0:        http://repo.maven.apache.org/maven2/org/codehaus/plexus/plexus-components/%{version}/plexus-components-%{version}.pom
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)

%description
This package provides Plexus Components parent POM used by different
Plexus packages.

%prep
%setup -qcT
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15847 |21mr|plexus-containers-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-containers
Summary:        Containers for Plexus
Version:        2.0.0
Release:        1
# Most of the files are either under ASL 2.0 or MIT
# The following files are under xpp:
# plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/Driver.java
# plexus-component-metadata/src/main/java/org/codehaus/plexus/metadata/merge/MXParser.java
License:        ASL 2.0 and MIT and xpp

URL:            https://github.com/codehaus-plexus/%{name}
Source0:        %{url}/archive/%{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:        LICENSE.MIT

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(com.thoughtworks.qdox:qdox)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.xbean:xbean-reflect)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.jdom:jdom2)
BuildRequires:  mvn(org.ow2.asm:asm)

Obsoletes:      plexus-containers-component-javadoc < 2.0.0-1


%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.

%package component-metadata
Summary:        Component metadata from %{name}

%description component-metadata
%{summary}.

%package component-annotations
Summary:        Component API from %{name}

%description component-annotations
%{summary}.

%package container-default
Summary:        Default Container from %{name}

%description container-default
%{summary}.

%package javadoc
Summary:        API documentation for all plexus-containers packages

%description javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp %{SOURCE1} .
cp %{SOURCE2} .

%pom_remove_plugin -r :maven-site-plugin

%pom_change_dep -r :google-collections com.google.guava:guava

# Generate OSGI info
%pom_xpath_inject "pom:project" "
    <packaging>bundle</packaging>
    <build>
      <plugins>
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <extensions>true</extensions>
          <configuration>
            <instructions>
              <_nouses>true</_nouses>
              <Export-Package>org.codehaus.plexus.component.annotations.*</Export-Package>
            </instructions>
          </configuration>
        </plugin>
      </plugins>
    </build>" plexus-component-annotations

# plexus-component-api has been merged into plexus-container-default
%mvn_alias ":plexus-container-default" "org.codehaus.plexus:containers-component-api"

# keep compat symlink for maven's sake
%mvn_file ":plexus-component-annotations" %{name}/plexus-component-annotations plexus/containers-component-annotations


%build
%mvn_build -f -s


%install
%mvn_install


# plexus-containers pom goes into main package
%files -f .mfiles-plexus-containers
%license LICENSE-2.0.txt LICENSE.MIT

%files component-annotations -f .mfiles-plexus-component-annotations
%license LICENSE-2.0.txt LICENSE.MIT

%files container-default -f .mfiles-plexus-container-default
%license LICENSE-2.0.txt LICENSE.MIT

%files component-metadata -f .mfiles-plexus-component-metadata
%license LICENSE-2.0.txt LICENSE.MIT

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt LICENSE.MIT



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15848 |21mr|plexus-i18n-1.0-0.14.b10.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define parent plexus
%define subname i18n

Name:           plexus-i18n
Version:        1.0
Release:        0.14.b10.4
Summary:        Plexus I18N Component
License:        ASL 2.0
URL:            https://github.com/codehaus-plexus/plexus-i18n
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export http://svn.codehaus.org/plexus/plexus-components/tags/plexus-i18n-1.0-beta-10/
# tar cjf plexus-i18n-1.0-beta-10-src.tar.bz2 plexus-i18n-1.0-beta-10/
Source0:        plexus-i18n-1.0-beta-10-src.tar.bz2

Patch0:         %{name}-migration-to-component-metadata.patch
Patch1:         %{name}-plexus-container-default-missing.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Plexus project seeks to create end-to-end developer tools for 
writing applications. At the core is the container, which can be 
embedded or for a full scale application server. There are many 
reusable components for hibernate, form processing, jndi, i18n, 
velocity, etc. Plexus also includes an application server which 
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n plexus-i18n-1.0-beta-10
%patch0 -p1
%patch1 -p1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15849 |21mr|plexus-interactivity-1.0-0.29.alpha6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-interactivity
Version:        1.0
Release:        0.29.alpha6
Epoch:          0
Summary:        Plexus Interactivity Handler Component
License:        MIT
URL:            https://github.com/codehaus-plexus/plexus-interactivity
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
# svn export \
#   http://svn.codehaus.org/plexus/plexus-components/tags/plexus-interactivity-1.0-alpha-6/
# tar caf plexus-interactivity-1.0-alpha-6-src.tar.xz \
#   plexus-interactivity-1.0-alpha-6
Source0:        plexus-interactivity-1.0-alpha-6-src.tar.xz
Source1:        LICENSE.MIT
Patch1:         plexus-interactivity-dependencies.patch
Patch2:         plexus-interactivity-jline2.patch

BuildRequires:  maven-local
BuildRequires:  mvn(jline:jline) >= 2
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%package api
Summary:        API for %{name}

%description api
API module for %{name}.

%package jline
Summary:        jline module for %{name}

%description jline
jline module for %{name}.

%prep
%setup -q -n plexus-interactivity-1.0-alpha-6
%patch1 -p1
%patch2 -p1

cp %{SOURCE1} .

%mvn_file ":{plexus}-{*}" @1/@2

%build
%mvn_package ":plexus-interactivity"

%mvn_build -f -s

%install
%mvn_install

%files -f .mfiles
%license LICENSE.MIT
%files api -f .mfiles-plexus-interactivity-api
%license LICENSE.MIT
%files jline -f .mfiles-plexus-interactivity-jline
%license LICENSE.MIT

%files javadoc -f .mfiles-javadoc
%license LICENSE.MIT



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15850 |21mr|plexus-interpolation-1.26-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-interpolation
Version:        1.26
Release:        2
Summary:        Plexus Interpolation API
License:        ASL 2.0 and ASL 1.1 and MIT
URL:            https://github.com/codehaus-plexus/%{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        %{url}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-components:pom:)

%description
Plexus interpolator is the outgrowth of multiple iterations of development
focused on providing a more modular, flexible interpolation framework for
the expression language style commonly seen in Maven, Plexus, and other
related projects.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%pom_remove_plugin :maven-release-plugin

%build
%mvn_file : plexus/interpolation
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15851 |21mr|plexus-io-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-io
Summary:        Plexus IO Components
Version:        3.1.1
Release:        1
License:        ASL 2.0

URL:            https://github.com/codehaus-plexus/%{name}
Source0:        %{url}/archive/%{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
Plexus IO is a set of plexus components, which are designed for use
in I/O operations.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
API documentation for %{name}.


%prep
%setup -q -n plexus-io-plexus-io-%{version}
cp %{SOURCE1} .

%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin

# junit isn't actually used
%pom_remove_dep :junit


%build
%mvn_file  : plexus/io
%mvn_build


%install
%mvn_install


%files -f .mfiles
%license NOTICE.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license NOTICE.txt LICENSE-2.0.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15852 |21mr|plexus-languages-0.9.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-languages
Version:        0.9.10
Release:        5
Summary:        Plexus Languages
License:        ASL 2.0
URL:            https://github.com/codehaus-plexus/plexus-languages
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
# Sources contain bundled jars that we cannot verify for licensing
Source2:        generate-tarball.sh

BuildRequires:  maven-local
BuildRequires:  mvn(com.thoughtworks.qdox:qdox)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)
BuildRequires:  mvn(org.ow2.asm:asm)

%description
Plexus Languages is a set of Plexus components that maintain shared
language features.

%{?javadoc_package}

%prep
%setup -q -n plexus-languages-plexus-languages-%{version}

cp %{SOURCE1} .

%build
# we don't have mockito 2 yet + many tests rely on bundled test jars/classes
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15853 |21mr|plexus-pom-5.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          plexus-pom
Version:       5.0
Release:       6
Summary:       Root Plexus Projects POM
License:       ASL 2.0
URL:           https://github.com/codehaus-plexus/plexus-pom
Source0:       https://github.com/codehaus-plexus/plexus-pom/archive/plexus-%{version}.tar.gz
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin

%description
The Plexus project provides a full software stack for creating and
executing software projects.  This package provides parent POM for
Plexus packages.

%prep
%setup -q -n plexus-pom-plexus-%{version}
# * require: org.codehaus.plexus plexus-stylus-skin 1.0
# org.apache.maven.wagon wagon-webdav-jackrabbit 1.0
%pom_remove_plugin :maven-site-plugin

%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%pom_remove_plugin org.codehaus.mojo:taglist-maven-plugin
cp -p %{SOURCE1} LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15854 |21mr|plexus-resources-1.0-0.26.a7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedversion 1.0-alpha-7

Name:           plexus-resources
Version:        1.0
Release:        0.26.a7
Summary:        Plexus Resource Manager
License:        MIT
URL:            https://github.com/codehaus-plexus/plexus-resources
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export http://svn.codehaus.org/plexus/plexus-components/tags/plexus-resources-1.0-alpha-7/
# tar caf plexus-resources-1.0-alpha-7-src.tar.xz plexus-resources-1.0-alpha-7
Source0:        %{name}-%{version}-alpha-7-src.tar.xz

BuildRequires:  maven-local
BuildRequires:  mvn(org.codehaus.plexus:plexus-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)

%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build
%mvn_file  : plexus/resources
%mvn_build -f

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15855 |21mr|plexus-sec-dispatcher-1.4-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-sec-dispatcher
Version:        1.4
Release:        28
Summary:        Plexus Security Dispatcher Component
License:        ASL 2.0
URL:            https://github.com/codehaus-plexus/plexus-sec-dispatcher
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# svn export http://svn.sonatype.org/spice/tags/plexus-sec-dispatcher-1.4/
# tar jcf plexus-sec-dispatcher-1.4.tar.bz2 plexus-sec-dispatcher-1.4/
Source0:        %{name}-%{version}.tar.bz2
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

# Removed maven-compiler-plugin configuration version in the pom as annotations isn't available in version 1.4.
Patch0:         %{name}-pom.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.sonatype.plexus:plexus-cipher)
BuildRequires:  mvn(org.sonatype.spice:spice-parent:pom:)

%description
Plexus Security Dispatcher Component

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%patch0 -p1

cp %{SOURCE1} .

%mvn_file : plexus/%{name}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15856 |21mr|plexus-utils-3.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-utils
Version:        3.2.0
Release:        2
Summary:        Plexus Common Utilities
# ASL 1.1: several files in src/main/java/org/codehaus/plexus/util/ 
# xpp: src/main/java/org/codehaus/plexus/util/xml/pull directory
# ASL 2.0 and BSD:
#      src/main/java/org/codehaus/plexus/util/cli/StreamConsumer
#      src/main/java/org/codehaus/plexus/util/cli/StreamPumper
#      src/main/java/org/codehaus/plexus/util/cli/Commandline            
# Public domain: src/main/java/org/codehaus/plexus/util/TypeFormat.java
# rest is ASL 2.0
License:        ASL 1.1 and ASL 2.0 and xpp and BSD and Public Domain
URL:            https://codehaus-plexus.github.io/plexus-utils/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz
Source1:        http://apache.org/licenses/LICENSE-2.0.txt

# https://github.com/codehaus-plexus/plexus-utils/issues/45
Patch1:         0001-Follow-symlinks-in-NioFiles.copy.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus:pom:)

%description
The Plexus project seeks to create end-to-end developer tools for
writing applications. At the core is the container, which can be
embedded or for a full scale application server. There are many
reusable components for hibernate, form processing, jndi, i18n,
velocity, etc. Plexus also includes an application server which
is like a J2EE application server, without all the baggage.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%patch1 -p1

cp %{SOURCE1} .

%mvn_file : plexus/utils
%mvn_alias : plexus:plexus-utils

# Generate OSGI info
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_xpath_inject "pom:build/pom:plugins" "
        <plugin>
          <groupId>org.apache.felix</groupId>
          <artifactId>maven-bundle-plugin</artifactId>
          <extensions>true</extensions>
          <configuration>
            <instructions>
              <_nouses>true</_nouses>
              <Export-Package>org.codehaus.plexus.util.*;org.codehaus.plexus.util.cli.*;org.codehaus.plexus.util.cli.shell.*;org.codehaus.plexus.util.dag.*;org.codehaus.plexus.util.introspection.*;org.codehaus.plexus.util.io.*;org.codehaus.plexus.util.reflection.*;org.codehaus.plexus.util.xml.*;org.codehaus.plexus.util.xml.pull.*</Export-Package>
            </instructions>
          </configuration>
        </plugin>"

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc NOTICE.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%doc NOTICE.txt LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15857 |21mr|plexus-velocity-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           plexus-velocity
Version:        1.2
Release:        7
Summary:        Plexus Velocity Component
License:        ASL 2.0
URL:            https://codehaus-plexus.github.io/plexus-velocity/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/codehaus-plexus/%{name}/archive/%{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(commons-collections:commons-collections)
BuildRequires:  mvn(org.codehaus.plexus:plexus-components:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(velocity:velocity)

%description
This package provides Plexus Velocity component - a wrapper for
Apache Velocity template engine, which allows easy use of Velocity
by applications built on top of Plexus container.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -n %{name}-%{name}-%{version}

find -name '*.jar' -delete

cp -p %{SOURCE1} LICENSE

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15858 |21mr|plotutils-2.6-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define xmi_major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GNU Plotting Utilities
Name:		plotutils
Version:	2.6
Release:	21
License:	GPLv2+
Group:		Graphics
Url:		http://www.gnu.org/software/%{name}/plotutils.html
Source:		ftp://ftp.gnu.org/gnu/%{name}/%{name}-%{version}.tar.gz
Patch0:		plotutils-2.5.1-fix-str-fmt.patch
Patch1:		plotutils-2.6-libpng-1.5.patch
Patch2:		plotutils-aarch64.patch
Patch3:		plotutils-cxx.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(zlib)
Requires:	ghostscript-fonts
Requires:	texinfo

%description 
The GNU plotting utilities, sometimes called 'plotutils', include: 
(1) GNU libplot, a shared library for exporting 2-D vector graphics files
and for performing vector graphics animation under the X Window System.
Its output file formats include the new WebCGM format, pseudo-GIF, PNM,
Adobe Illustrator, Postscript (editable with the free 'idraw' drawing
editor), Fig (editable with the free 'xfig' drawing editor), PCL 5, HP-GL
and HP-GL/2, Tektronix, and GNU metafile format. Many Postscript, PCL, and
Hershey fonts are supported. A separate class library, 'libplotter',
provides a C++ binding to libplot's functionality. (2) Sample command-line
applications 'graph', 'plot', 'tek2plot', 'pic2plot', and 'plotfont', which
are built on top of GNU libplot. 'graph' is a powerful utility for XY
plotting, 'plot' translates GNU metafiles to other formats, 'tek2plot'
translates legacy Tektronix data, 'pic2plot' translates box-and-arrow
diagrams in the pic language, and 'plotfont' plots character maps.
(3) Command-line applications 'spline', 'double', and 'ode', which are useful
in scientific plotting. 'spline' does spline interpolation of input data
of arbitrary dimensionality. It uses cubic splines, splines under tension,
or cubic Bessel interpolation. 'ode' is an interactive program that can
integrate a user-specified system of ordinary differential equations.

%files
%doc AUTHORS INSTALL.fonts KNOWN_BUGS NEWS ONEWS PROBLEMS README THANKS
%{_bindir}/*
%{_libdir}/X11/fonts/misc/*
%{_mandir}/man1/*
%{_infodir}/*
%dir %{_datadir}/ode
%{_datadir}/ode/*
%dir %{_datadir}/tek2plot
%{_datadir}/tek2plot/*
%dir %{_datadir}/pic2plot
%{_datadir}/pic2plot/*

%post
export PATH=/sbin:/usr/bin/X11:/usr/X11/bin:/usr/bin:$PATH

cd %{_libdir}/X11/fonts/misc
mkfontdir
if ! test -f %{_libdir}/X11/fonts/Type1/a010013l.pfb ; then
if test -f %{_datadir}/ghostscript/fonts/a010013l.pfb ; then
cd %{_datadir}/ghostscript/fonts
for i in *.pfb ; do
ln -s %{_datadir}/ghostscript/fonts/$i %{_libdir}/X11/fonts/Type1/$i
done
cd %{_libdir}/X11/fonts/Type1
echo 'a010013l.pfb -adobe-itc avant garde gothic-book-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'a010015l.pfb -adobe-itc avant garde gothic-demi-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'a010033l.pfb -adobe-itc avant garde gothic-book-o-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'a010035l.pfb -adobe-itc avant garde gothic-demi-o-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'b018012l.pfb -adobe-itc bookman-light-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'b018015l.pfb -adobe-itc bookman-demi-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'b018032l.pfb -adobe-itc bookman-light-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'b018035l.pfb -adobe-itc bookman-demi-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'c059013l.pfb -adobe-new century schoolbook-medium-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'c059016l.pfb -adobe-new century schoolbook-bold-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'c059033l.pfb -adobe-new century schoolbook-medium-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'c059036l.pfb -adobe-new century schoolbook-bold-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'd050000l.pfb -adobe-itc zapf dingbats-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific' >> fonts.scale
echo 'n019003l.pfb -adobe-helvetica-medium-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n019004l.pfb -adobe-helvetica-bold-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n019023l.pfb -adobe-helvetica-medium-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n019024l.pfb -adobe-helvetica-bold-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n019043l.pfb -adobe-helvetica-medium-r-narrow--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n019044l.pfb -adobe-helvetica-bold-r-narrow--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n019063l.pfb -adobe-helvetica-medium-i-narrow--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n019064l.pfb -adobe-helvetica-bold-i-narrow--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n021003l.pfb -adobe-times-medium-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n021004l.pfb -adobe-times-bold-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n021023l.pfb -adobe-times-medium-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n021024l.pfb -adobe-times-bold-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'n022003l.pfb -adobe-courier-medium-r-normal--0-0-0-0-m-0-iso8859-1' >> fonts.scale
echo 'n022004l.pfb -adobe-courier-bold-r-normal--0-0-0-0-m-0-iso8859-1' >> fonts.scale
echo 'n022023l.pfb -adobe-courier-medium-o-normal--0-0-0-0-m-0-iso8859-1' >> fonts.scale
echo 'n022024l.pfb -adobe-courier-bold-o-normal--0-0-0-0-m-0-iso8859-1' >> fonts.scale
echo 'p052003l.pfb -adobe-palatino-medium-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'p052004l.pfb -adobe-palatino-bold-r-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'p052023l.pfb -adobe-palatino-medium-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 'p052024l.pfb -adobe-palatino-bold-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
echo 's050000l.pfb -adobe-symbol-medium-r-normal--0-0-0-0-p-0-adobe-fontspecific' >> fonts.scale
echo 'z003034l.pfb -adobe-itc zapf chancery-medium-i-normal--0-0-0-0-p-0-iso8859-1' >> fonts.scale
mkfontdir
fi
fi
if test "$DISPLAY" != "" ; then xset fp rehash 2> /dev/null ; fi

%preun
export PATH=/sbin:/usr/bin:$PATH

%postun
export PATH=/sbin:/usr/bin/X11:/usr/X11/bin:$PATH
cd %{_libdir}/X11/fonts/misc
mkfontdir
if test "$DISPLAY" != "" ; then xset fp rehash 2> /dev/null ; fi

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		Graphics
Provides:	lib%{name} = %{EVRD}
Obsoletes:	%{_lib}xmi0 < 2.6-15

%description -n %libname
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libplot.so.%{major}*
%{_libdir}/libplotter.so.%{major}*
%{_libdir}/libxmi.so.%{xmi_major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	libxmi-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README
%{_includedir}/*
%{_libdir}/*.so
%dir %{_datadir}/libplot
%{_datadir}/libplot/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
%configure \
	--enable-libplotter \
	--enable-libxmi \
	--enable-ps-fonts-in-pcl

# fix rpath handling
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_libdir}/X11/fonts/misc
cp -p fonts/pcf/*.pcf %{buildroot}%{_libdir}/X11/fonts/misc

# We don't want .la files
find %{buildroot} -name *.la -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15859 |21mr|plymouth-0.9.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define plymouthdaemon_execdir /sbin
%define plymouthclient_execdir /bin
%define plymouth_libdir /%{_lib}

%define _libexecdir %{_prefix}/libexec

%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Graphical Boot Animation and Logger
Name:		plymouth
Version:	0.9.5
Release:	4
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.freedesktop.org/wiki/Software/Plymouth
Source0:	http://www.freedesktop.org/software/plymouth/releases/%{name}-%{version}.tar.xz
Source1:	boot-duration
Source2:	charge.plymouth

Patch0:		0005-cmdline.patch

# UPSTREAM GIT PATCHES
Patch2:		git_screens_resolution.patch
Patch3:		git_set_translations.patch
Patch4:		gitlab_correct_keynames.patch
Patch105:	0005-drm-Honor-modes-selected-by-the-user-through-video-k.patch
Patch106:	0006-NL-translation-update.patch
Patch107:	0007-Update-translations-from-Zanata.patch
Patch108:	0008-boot-server-Ref-count-the-connections.patch
Patch109:	0009-boot-server-Handle-client-disconnecting-while-trigge.patch
Patch110:	0010-Update-translation-files.patch
Patch111:	0011-Translated-using-Weblate-Turkish.patch
Patch112:	0012-Translated-using-Weblate-Polish.patch
Patch113:	0013-Translated-using-Weblate-Ukrainian.patch
Patch114:	0014-Translated-using-Weblate-Chinese-Simplified.patch
Patch115:	0015-Translated-using-Weblate-Portuguese-Brazil.patch
Patch116:	0016-Don-t-wait-forever-for-a-ping-reply.patch
Patch117:	0017-Revert-Don-t-wait-forever-for-a-ping-reply.patch
Patch118:	0018-client-Don-t-wait-forever-for-a-ping-reply.patch

BuildRequires:	gettext-devel
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	systemd-units
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(systemd)
Requires:	desktop-common-data
Requires:	rosa-kernel-tools
Requires(post):	plymouth-scripts = %{EVRD}
Provides:	splashy = %{EVRD}

%description
Plymouth provides an attractive graphical boot animation in place of the text
messages that normally get shown. Text messages are instead redirected to a log
file for viewing after boot.

%files -f plymouth.lang
%doc AUTHORS NEWS README
%config(noreplace) %{_sysconfdir}/plymouth
%dir %{_datadir}/plymouth
%dir %{_datadir}/plymouth/themes
%dir %{_libdir}/plymouth
%{_datadir}/plymouth/default-boot-duration
%dir %{_localstatedir}/lib/plymouth
%{plymouthdaemon_execdir}/plymouthd
%{plymouthclient_execdir}/plymouth
%{_libdir}/plymouth/details.so
%{_libdir}/plymouth/text.so
/lib/systemd/system/*plymouth*.service
/lib/systemd/system/systemd-*.path
/lib/systemd/system/*.wants/plymouth-*.service
%dir %{_libdir}/plymouth/renderers
%{_libdir}/plymouth/renderers/drm*
%{_libdir}/plymouth/renderers/frame-buffer*
%ghost %{_datadir}/plymouth/themes/default.plymouth
%{_datadir}/plymouth/plymouthd.defaults
%{_datadir}/plymouth/themes/details
%{_datadir}/plymouth/themes/text
%{_sysconfdir}/logrotate.d/bootlog
%{_mandir}/man1/plymouth.1*
%ghost %{_localstatedir}/run/plymouth
%ghost %{_localstatedir}/spool/plymouth
%ghost %{_localstatedir}/lib/plymouth/shutdown-duration
%ghost %{_localstatedir}/lib/plymouth/boot-duration
%{_mandir}/man8/*
/var/spool/initramfs-regen/%{name}

%post
[ -f %{_localstatedir}/lib/plymouth/boot-duration ] || cp -f %{_datadir}/plymouth/default-boot-duration %{_localstatedir}/lib/plymouth/boot-duration

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Plymouth libraries
Group:		System/Libraries

%description -n %{libname}
This package contains shared libraries used by Plymouth.

%files -n %{libname}
%{plymouth_libdir}/libply.so.%{major}*
%{_libdir}/libply-boot-client.so.%{major}*
%{_libdir}/libply-splash-graphics.so.%{major}*
/%{_lib}/libply-splash-core.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and headers for writing Plymouth splash plugins
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the libply and libplybootsplash libraries and headers
needed to develop 3rd party splash plugins for Plymouth.

%files -n %{devname}
%{plymouth_libdir}/libply.so
%{_libdir}/libply-boot-client.so
%{_libdir}/libply-splash-graphics.so
%{_libdir}/plymouth/renderers/x11*
/%{_lib}/libply-splash-core.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/plymouth-1

#----------------------------------------------------------------------------

%package system-theme
Summary:	Plymouth default theme
Group:		System/Kernel and hardware
Requires:	plymouth(system-theme)
Requires:	plymouth = %{EVRD}

%description system-theme
This metapackage tracks the current distribution default theme.

%files system-theme

#----------------------------------------------------------------------------

%package utils
Summary:	Plymouth related utilities
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description utils
This package contains utilities that integrate with Plymouth including
a boot log viewing application.

#----------------------------------------------------------------------------

%package scripts
Summary:	Plymouth related scripts
Group:		System/Kernel and hardware
Requires:	plymouth = %{EVRD}

%description scripts
This package contains scripts that help integrate Plymouth with the system.

%files scripts
%{_sbindir}/plymouth-set-default-theme
%{_libexecdir}/plymouth
%{_mandir}/man1/plymouth-set-default-theme.1*

#----------------------------------------------------------------------------

%package plugin-fade-throbber
Summary:	Plymouth "Fade-Throbber" plugin
Group:		System/Kernel and hardware
Requires:	%{libname} = %{EVRD}

%description plugin-fade-throbber
This package contains the "Fade-In" boot splash plugin for Plymouth.
It features a centered image that fades in and out while other images
pulsate around during system boot up.

%files plugin-fade-throbber
%{_libdir}/plymouth/fade-throbber.so

#----------------------------------------------------------------------------

%package plugin-label
Summary:	Plymouth label plugin
Group:		System/Kernel and hardware
Requires:	%{libname} = %{EVRD}

%description plugin-label
This package contains the label control plugin for Plymouth. It provides
the ability to render text on graphical boot splashes using pango and cairo.

%files plugin-label
%{_libdir}/plymouth/label.so

#----------------------------------------------------------------------------

%package plugin-script
Summary:	Plymouth "Script" plugin
Group:		System/Kernel and hardware
Requires:	%{libname} = %{EVRD}
Requires:	plymouth-plugin-label = %{EVRD}

%description plugin-script
This package contains the "Script" plugin for Plymouth.

%files plugin-script
%{_libdir}/plymouth/script.so

#----------------------------------------------------------------------------

%package plugin-space-flares
Summary:	Plymouth "space-flares" plugin
Group:		System/Kernel and hardware
Requires:	%{libname} = %{EVRD}
Requires:	plymouth-plugin-label = %{EVRD}

%description plugin-space-flares
This package contains the "space-flares" boot splash plugin for Plymouth.
It features a corner image with animated flares.

%files plugin-space-flares
%{_libdir}/plymouth/space-flares.so

#----------------------------------------------------------------------------

%package plugin-tribar
Summary:	Plymouth "tribar" plugin
Group:		System/Kernel and hardware
Requires:	%{libname} = %{EVRD}
Requires:	plymouth-plugin-label = %{EVRD}

%description plugin-tribar
This package contains the "tribar" boot splash plugin for Plymouth.

%files plugin-tribar
%{_libdir}/plymouth/tribar.so

#----------------------------------------------------------------------------

%package plugin-two-step
Summary:	Plymouth "two-step" plugin
Group:		System/Kernel and hardware
Requires:	%{libname} = %{EVRD}
Requires:	plymouth-plugin-label = %{EVRD}

%description plugin-two-step
This package contains the "two-step" boot splash plugin for Plymouth.
It features a two phased boot process that starts with a progressing
animation synced to boot time and finishes with a short, fast one-shot
animation.

%files plugin-two-step
%{_libdir}/plymouth/two-step.so

#----------------------------------------------------------------------------

%package theme-bgrt
Summary:	Plymouth "Bgrt" plugin
Group:		System/Kernel and hardware
Requires:	%{name}-plugin-two-step = %{EVRD}
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-bgrt
This package contains the "bgrt" boot splash theme for Plymouth.
It features the shadowy hull of a logo charge up and and finally burst
into full form.

%files theme-bgrt
%{_datadir}/plymouth/themes/bgrt

#----------------------------------------------------------------------------

%package theme-charge
Summary:	Plymouth "Charge" plugin
Group:		System/Kernel and hardware
Requires:	%{name}-plugin-two-step = %{EVRD}
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-charge
This package contains the "charge" boot splash theme for Plymouth.
It features the shadowy hull of a logo charge up and and finally burst
into full form.

%files theme-charge
%{_datadir}/plymouth/themes/charge

#----------------------------------------------------------------------------

%package theme-fade-in
Summary:	Plymouth "Fade-In" theme
Group:		System/Kernel and hardware
Requires:	%{name}-plugin-fade-throbber = %{EVRD}
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-fade-in
This package contains the "Fade-In" boot splash theme for Plymouth.
It features a centered logo that fades in and out while stars twinkle
around the logo during system boot up.

%files theme-fade-in
%{_datadir}/plymouth/themes/fade-in

#----------------------------------------------------------------------------

%package theme-glow
Summary:	Plymouth "Glow" plugin
Group:		System/Kernel and hardware
Requires:	plymouth-plugin-two-step = %{EVRD}
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-glow
This package contains the "Glow" boot splash theme for Plymouth.

%files theme-glow
%{_datadir}/plymouth/themes/glow

#----------------------------------------------------------------------------

%package theme-script
Summary:	Plymouth "Script" theme
Group:		System/Kernel and hardware
Requires:	%{name}-plugin-script = %{EVRD}
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-script
This package contains the "Script" boot splash theme for Plymouth.

%files theme-script
%{_datadir}/plymouth/themes/script

#----------------------------------------------------------------------------

%package theme-solar
Summary:	Plymouth "Solar" theme
Group:		System/Kernel and hardware
Requires:	%{name}-plugin-space-flares = %{EVRD}
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-solar
This package contains the "Solar" boot splash theme for Plymouth.
It features a blue flamed sun with animated solar flares.

%files theme-solar
%{_datadir}/plymouth/themes/solar

#----------------------------------------------------------------------------

%package theme-spinfinity
Summary:	Plymouth "Spinfinity" theme
Group:		System/Kernel and hardware
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-spinfinity
This package contains the "Spinfinity" boot splash theme for Plymouth.
It features a centered logo and animated spinner that spins in the shape
of an infinity sign.

%files theme-spinfinity
%{_datadir}/plymouth/themes/spinfinity

#----------------------------------------------------------------------------

%package theme-spinner
Summary:	Plymouth "Spinner" theme
Group:		System/Kernel and hardware
Requires:	%{name}-plugin-two-step = %{EVRD}
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-spinner
This package contains the "Spinner" boot splash theme for Plymouth.

%files theme-spinner
%{_datadir}/plymouth/themes/spinner

#----------------------------------------------------------------------------

%package theme-tribar
Summary:	Plymouth "Tribar" theme
Group:		System/Kernel and hardware
Requires:	%{name}-plugin-tribar = %{EVRD}
Requires(post):	plymouth-scripts = %{EVRD}

%description theme-tribar
This package contains the "Tribar" boot splash theme for Plymouth.

%files theme-tribar
%{_datadir}/plymouth/themes/tribar

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,^#include <sys/types.h>,#include <sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-tracing \
	--disable-tests \
	--with-logo=%{_datadir}/icons/large/mandriva.png \
	--with-background-start-color-stop=0x0073B3 \
	--with-background-end-color-stop=0x00457E \
	--with-background-color=0x3391cd \
	--disable-gdm-transition \
	--enable-systemd-integration \
	--with-system-root-install \
	--without-log-viewer \
	--disable-libkms

%make

%install
%makeinstall_std

touch %{buildroot}%{_datadir}/plymouth/themes/default.plymouth

mkdir -p %{buildroot}%{_localstatedir}/lib/plymouth
cp %{SOURCE1} %{buildroot}%{_datadir}/plymouth/default-boot-duration
touch %{buildroot}%{_localstatedir}/lib/plymouth/{boot,shutdown}-duration

# Add charge
mkdir -p %{buildroot}%{_datadir}/plymouth/themes/charge
cp %{SOURCE2} %{buildroot}%{_datadir}/plymouth/themes/charge
cp %{buildroot}%{_datadir}/plymouth/themes/glow/{box,bullet,entry,lock}.png %{buildroot}%{_datadir}/plymouth/themes/charge

# (tpg) add watermark to all the themes that relies on two-step plugin
for i in bgrt charge glow spinfinity spinner; do
    ln -s /usr/share/pixmaps/system-logo-white.png %{buildroot}%{_datadir}/plymouth/themes/$i/watermark.png
done

# regenerate initrd on isntallation, updates and removal of plymouth
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/%{name}

%find_lang %{name} --all-name

#----------------------------------------------------------------------------

%define theme_scripts() \
%post -n %{name}-theme-%{1} \
if [ -x %{_sbindir}/plymouth-set-default-theme ]; then \
  export LIB=%{_lib} \
  if [ $1 -eq 1 ]; then \
      %{_sbindir}/plymouth-set-default-theme --rebuild-initrd %{1} \
  else \
      THEME=$(%{_sbindir}/plymouth-set-default-theme) \
      if [ "$THEME" == "text" -o "$THEME" == "%{1}" ]; then \
          %{_sbindir}/plymouth-set-default-theme --rebuild-initrd %{1} \
      fi \
  fi \
fi \
\
%postun -n %{name}-theme-%{1} \
export LIB=%{_lib} \
if [ $1 -eq 0 -a -x %{_sbindir}/plymouth-set-default-theme ]; then \
    if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "%{1}" ]; then \
        %{_sbindir}/plymouth-set-default-theme --reset --rebuild-initrd \
    fi \
fi \


%theme_scripts spinfinity
%theme_scripts fade-in
%theme_scripts solar
%theme_scripts charge
%theme_scripts glow
%theme_scripts script

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15860 |21mr|plymouth-kcm-5.24.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 Plymouth configuration module
Name:		plymouth-kcm
Version:	5.24.6
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Patch0:		plymouth-kcm-5.22-rosa.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	pkgconfig(ply-splash-core)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	plymouth-plugin-fade-throbber
Requires:	plymouth-plugin-label
Requires:	plymouth-plugin-script
Requires:	plymouth-plugin-space-flares
Requires:	plymouth-plugin-tribar
Requires:	plymouth-plugin-two-step

%description
Plasma 5 Plymouth configuration module.

%files -f kcm_plymouth.lang
%{_kde5_applicationsdir}/kcm_plymouth.desktop
%{_kde5_bindir}/kplymouththemeinstaller
%{_kde5_libexecdir}/kauth/plymouthhelper
%{_kde5_datadir}/kpackage/kcms/kcm_plymouth/
%{_kde5_datadir}/knsrcfiles/plymouth.knsrc
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmplymouth.service
%{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmplymouth.conf
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmplymouth.policy
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_plymouth.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_plymouth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15861 |21mr|plymouth-theme-breeze-5.24.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname breeze-plymouth

Summary:	Breeze Plymouth theme
Name:		plymouth-theme-breeze
Version:	5.24.6
Release:	1
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
# Requires ROSA logo to be added
Patch0:		breeze-plymouth-rosa-defaults.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(ply-splash-core)
Requires:	plymouth
Requires(post,postun):	plymouth-scripts

%description
This package contains Breeze Plymouth theme.

%files
%{_datadir}/plymouth/themes/breeze

%post
if [ -x %{_sbindir}/plymouth-set-default-theme ]; then
    export LIB=%{_lib}
    if [ $1 -eq 1 ]; then
        %{_sbindir}/plymouth-set-default-theme --rebuild-initrd breeze
    else
        THEME=$(%{_sbindir}/plymouth-set-default-theme)
        if [ "$THEME" == "text" -o "$THEME" == "breeze" ]; then
            %{_sbindir}/plymouth-set-default-theme --rebuild-initrd breeze
        fi
    fi
fi

%postun
export LIB=%{_lib}
if [ $1 -eq 0 -a -x %{_sbindir}/plymouth-set-default-theme ]; then
    if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "breeze" ]; then
        %{_sbindir}/plymouth-set-default-theme --reset --rebuild-initrd
    fi
fi

#----------------------------------------------------------------------------

%package -n plymouth-theme-breeze-text
Summary:	Text Breeze Plymouth theme
Group:		System/Kernel and hardware
Requires:	plymouth
Requires(post,postun):	plymouth-scripts

%description -n plymouth-theme-breeze-text
This package contains text Breeze Plymouth theme.

%files -n plymouth-theme-breeze-text
%{_datadir}/plymouth/themes/breeze-text
%{_libdir}/plymouth/breeze-text.so

%post -n plymouth-theme-breeze-text
if [ -x %{_sbindir}/plymouth-set-default-theme ]; then
    export LIB=%{_lib}
    if [ $1 -eq 1 ]; then
        %{_sbindir}/plymouth-set-default-theme --rebuild-initrd breeze-text
    else
        THEME=$(%{_sbindir}/plymouth-set-default-theme)
        if [ "$THEME" == "text" -o "$THEME" == "breeze-text" ]; then
            %{_sbindir}/plymouth-set-default-theme --rebuild-initrd breeze-text
        fi
    fi
fi

%postun -n plymouth-theme-breeze-text
export LIB=%{_lib}
if [ $1 -eq 0 -a -x %{_sbindir}/plymouth-set-default-theme ]; then
    if [ "$(%{_sbindir}/plymouth-set-default-theme)" == "breeze-text" ]; then
        %{_sbindir}/plymouth-set-default-theme --reset --rebuild-initrd
    fi
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15862 |21mr|pm-fallback-policy-0.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name pm-fallback-policy
%define version 0.1
%define release 15

Summary: Power management fallback policy
Name: %{name}
Version: %{version}
Release: %{release}
Source0: power-event
Source1: sleep-event
Source2: pm-fallback-shutdown
Source3: pm-fallback-suspend
License: GPL
Group: System/Kernel and hardware
Url: http://wiki.mandriva.com/Docs/Hardware/PowerManagement
BuildArch: noarch
Conflicts: suspend-scripts < 1.27

%description
This package provides a set of scripts to implement a power management
fallback policy. They will be used as fallback when no power
management tool is running.

%prep
%setup -q -c -T

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{_sysconfdir}/acpi/events
install %{SOURCE0} %{buildroot}%{_sysconfdir}/acpi/events/power
install %{SOURCE1} %{buildroot}%{_sysconfdir}/acpi/events/sleep
install -d %{buildroot}%{_sysconfdir}/acpi/actions
install -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/acpi/actions/pm-fallback-shutdown
install -m 755 %{SOURCE3} %{buildroot}%{_sysconfdir}/acpi/actions/pm-fallback-suspend

%clean
rm -rf %{buildroot}

%post
[ -x /etc/init.d/acpid ] && service acpid condrestart || :

%files
%defattr(-,root,root)
%{_sysconfdir}/acpi/actions/*
%{_sysconfdir}/acpi/events/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15863 |21mr|pnm2ppa-1.13-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	PNM2PPA GhostScript Print Filter
Name:		pnm2ppa
Version:	1.13
Release:	19
License:	GPLv2+
Group:		System/Printing
Url:		http://pnm2ppa.sourceforge.net/
Source0:	http://downloads.sourceforge.net/pnm2ppa/%{name}-%{version}.tar.gz
#Source1:	http://www.httptech.com/ppa/files/ppa-0.8.6.tar.bz2
Source1:	http://fresh.t-systems-sfr.com/linux/src/ppa-0.8.6.tar.gz
Patch0:         pbm2ppa-20000205.diff
Patch1:         pnm2ppa-1.13-fix_signedness.diff
Patch2:         pbm2ppa-mdv_conf.diff
Patch3:         pbm2ppa-LDFLAGS.diff

%description
PPA (Printing Performance Architecture) is a closed, proprietary protocol
developed by Hewlett Packard for a short-lived series of DeskJet printers. In
essence, the PPA protocol moves the low-level processing of the data to the
host computer rather than the printer. This allows for a low-cost (to produce)
printer with a small amount of memory and computing power. However, in practice
the printer was often as expensive as more capable printers and HP has since
discontinued the use of PPA in favour of returning to PCL3e in their latest
USB-based printers.

%files
%defattr(0644,root,root,0755)
%doc Changelog README.calibration README.security test.ps testpage-a4.ps testpage.ps
%doc docs/en/CALIBRATION.txt docs/en/COLOR.txt docs/en/CREDITS docs/en/INSTALL docs/en/INSTALL.MANDRAKE.txt
%doc docs/en/LICENSE docs/en/PPA_networking.txt docs/en/README docs/en/RELEASE-NOTES docs/en/TODO *.pbm2ppa
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pnm2ppa.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pbm2ppa.conf
%attr(0755,root,root) %{_bindir}/calibrate_ppa
%attr(0755,root,root) %{_bindir}/detect_ppa
%attr(0755,root,root) %{_bindir}/pbm2ppa
%attr(0755,root,root) %{_bindir}/pbmtpg
%attr(0755,root,root) %{_bindir}/pnm2ppa
%attr(0755,root,root) %{_bindir}/test_ppa
%attr(0644,root,root) %{_mandir}/man1/pnm2ppa.1*
%attr(0644,root,root) %{_mandir}/man1/pbm2ppa.1*

#----------------------------------------------------------------------------

%prep
%setup -q -a1

# fix attribs
find -type f | xargs chmod 644

%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p1

# remove "version ERROR" line from pnm2ppa.conf
perl -n -i -e 'if ( !m/^\s*version\s*0\s*(|\#.*)$/ ) { print "$_";}' pnm2ppa-*/pnm2ppa.conf

# Generate README file
cat > README.calibration << EOF

Colour calibration for PPA printers
-----------------------------------

If you have an HP DeskJet PPA printer (very cheap models: 710C, 712C,
720C, 722C, 820C, 1000C, or a newer printer which works with one of
these model entries) you can optionally do a colour correction. Do the
following:

Some of the printing modes offer optional colour correction. See the
option "Printing Mode" which is offered to you in the option window of
"printerdrake" and if you use CUPS also in "qtcups" or "kprinter"
("Properties" button, "Advanced" tab), "xpp" ("Options" button,
"Extra" tab), "kups" (right click on printer, "Configure printer" in
menu), or the WWW interface ("Configure printer" button) and if you
use PDQ in "xpdq" ("Driver options"). Choose a setting with "optional
colour correction" and save your settings. Read the file

    %{_docdir}/%{name}*/COLOR.txt

and follow the instructions there, but use the name

   /etc/pnm2ppa.gamma_normal

for the colour correction file for the "normal quality" modes and

   /etc/pnm2ppa.gamma_best

for the colour correction file for the "best quality" modes. So you
can do the colour correction independently in both normal and best
quality modes. The files are automatically taken into account by the
appropriate modes as soon as they are created.
EOF

%build
chmod a+x configure
%configure
%make

%make -C pbm2ppa-* RPM_OPT_FLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

%makeinstall_std

install -m 0755 utils/Linux/detect_ppa %{buildroot}%{_bindir}/
install -m 0755 utils/Linux/test_ppa %{buildroot}%{_bindir}/

install -m 0755 pbm2ppa-*/pbm2ppa %{buildroot}%{_bindir}/
install -m 0755 pbm2ppa-*/pbmtpg %{buildroot}%{_bindir}/
install -m 0644 pbm2ppa-*/pbm2ppa.conf %{buildroot}%{_sysconfdir}/
install -m 0644 pbm2ppa-*/pbm2ppa.1 %{buildroot}%{_mandir}/man1/

for i in CALIBRATION CREDITS INSTALL INSTALL-MORE README; do
    cp pbm2ppa-*/$i $i.pbm2ppa
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15864 |21mr|pnputils-0.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dump resource information for PnP devices
Name:		pnputils
Version:	0.1
Release:	14
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		ftp://ftp.kernel.org/pub/linux/kernel/people/helgaas/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		pnputils-0.1-destdir.patch
Requires:	ldetect-lst

%description
A utility for dumping resource information for PnP devices.

%files
%doc ChangeLog
/sbin/lspnp
/sbin/setpnp
%{_mandir}/man8/*.8*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .destdir

%build
%make CFLAGS="%{optflags}"

%install
%makeinstall_std

#packaged as part of ldetect-lst
rm -f %{buildroot}%{_datadir}/misc/pnp.ids

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15865 |21mr|po4a-0.66-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool maintaining translations anywhere
Name:		po4a
Version:	0.66
Release:	1
Group:		System/Internationalization
License:	GPLv2+
Url:		https://github.com/mquinson/po4a
Source0:	https://github.com/mquinson/po4a/archive/v%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:	perl(Locale::gettext) >= 1.01
BuildRequires:	perl(Module::Build)
BuildRequires:	perl-SGMLSpm
# FIXME: duplicated in texlive-latex-web-companion
#BuildRequires:	perl(SGMLS) >= 1.03ii
BuildRequires:	perl(Term::ReadKey)
BuildRequires:	perl(Text::WrapI18N)
BuildRequires:	perl(YAML::Tiny)
BuildRequires:	perl(Unicode::GCString)
BuildRequires:	perl-Unicode-LineBreak
BuildRequires:	perl-devel
BuildRequires:	perl-Pod-Parser
BuildRequires:	xsltproc docbook-style-xsl
BuildRequires:	gettext
Requires:	gettext
BuildArch:	noarch

%description
The po4a (po for anything) project goal is to ease translations (and
more interestingly, the maintenance of translations) using gettext
tools on areas where they were not expected like documentation.

%prep
%setup -q

%build
perl Build.PL installdirs=vendor
./Build

%install
./Build install destdir=%{buildroot}

%find_lang %{name} --with-man --all-name

%files -f %{name}.lang
%doc README* COPYING TODO
%{_bindir}/po4a*
%{_bindir}/msguntypot
%{perl_vendorlib}/Locale/Po4a
%{_mandir}/man[1375]/*.[1375]*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15866 |21mr|podman-4.9.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _find_debuginfo_dwz_opts %{nil}
%global _dwz_low_mem_die_limit 0

%global commit_plugins bdc4ab85266ade865a7c398336e98721e62ef6b2
%global commit_gvproxy 21140a576cd4044d372f0b66f9a9e913df02020a

Summary:	Manage Pods, Containers and Container Images
Name:		podman
Version:	4.9.5
Release:	1
License:	ASL 2.0
Group:		Development/Other
Url:		https://%{name}.io/
Source0:	https://github.com/containers/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/containers/dnsname/archive/%{commit_plugins}/dnsname-%{commit_plugins}.tar.gz
Source2:	https://github.com/containers/gvisor-tap-vsock/archive/%{commit_gvproxy}/gvisor-tap-vsock-%{commit_gvproxy}.tar.gz
BuildRequires:	git-core
BuildRequires:	golang
BuildRequires:	go-md2man
BuildRequires:	go-rpm-macros
BuildRequires:	shadow-utils-subid-devel
BuildRequires:	systemd
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gpg-error)
BuildRequires:	pkgconfig(gpgme)
BuildRequires:	pkgconfig(libassuan)
BuildRequires:	pkgconfig(libbtrfsutil)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(systemd)
Requires:	conmon
Requires:	containers-common
# containernetworking-plugins
Requires:	cni-plugins
Requires:	iptables
Requires:	nftables
Recommends:	%{name}-plugins = %{EVRD}
ExclusiveArch:	%{golang_arches}
Provides:	%{name}-manpages = %{EVRD}

%description
Podman (Pod Manager) is a fully featured container engine that is a simple
daemonless tool. Podman provides a Docker-CLI comparable command line that
eases the transition from other container engines and allows the management of
pods, containers and images. Simply put: alias docker=%{name}.
Most %{name} commands can be run as a regular user, without requiring
additional privileges.

Podman uses Buildah(1) internally to create container images.
Both tools share image (not container) storage, hence each can use or
manipulate images (but not containers) created by the other.

Manage Pods, Containers and Container Images.
Podman Simple management tool for pods, containers and images.

%files
%doc README.md CONTRIBUTING.md install.md transfer.md
%license LICENSE
%{_bindir}/%{name}
%{_bindir}/%{name}sh
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/fish/vendor_completions.d/%{name}.fish
%{_datadir}/zsh/site-functions/_%{name}
%dir %{_datadir}/fish/vendor_completions.d
# By "owning" the site-functions dir, we don't need to Require zsh
%dir %{_datadir}/zsh/site-functions
%{_libexecdir}/%{name}/quadlet
%{_libexecdir}/%{name}/rootlessport
%{_modulesloaddir}/%{name}-iptables.conf
%{_systemdgeneratordir}/%{name}-system-generator
%{_systemdusergeneratordir}/%{name}-user-generator
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}-auto-update.service
%{_unitdir}/%{name}-auto-update.timer
%{_unitdir}/%{name}-clean-transient.service
%{_unitdir}/%{name}-kube@.service
%{_unitdir}/%{name}-restart.service
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.socket
%{_userunitdir}/%{name}-auto-update.service
%{_userunitdir}/%{name}-auto-update.timer
%{_userunitdir}/%{name}-kube@.service
%{_userunitdir}/%{name}-restart.service
%{_userunitdir}/%{name}.service
%{_userunitdir}/%{name}.socket

%post
%systemd_post %{name}.service
%systemd_post %{name}-auto-update.service
%systemd_post %{name}-restart.service
%systemd_post %{name}-auto-update.timer
%systemd_post %{name}.socket
%systemd_post %{name}-kube@.service
%systemd_post %{name}-clean-transient.service
%tmpfiles_create %{name}.conf

%preun
%systemd_preun %{name}.service
%systemd_preun %{name}-auto-update.service
%systemd_preun %{name}-restart.service
%systemd_preun %{name}-auto-update.timer
%systemd_preun %{name}.socket
%systemd_preun %{name}-kube@.service
%systemd_preun %{name}-clean-transient.service

#-------------------------------------------------------------------------

%package docker
Summary:	Emulate Docker CLI using %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Conflicts:	docker
Conflicts:	docker-ce
Conflicts:	docker-ee
Conflicts:	docker-latest
Conflicts:	moby-engine
BuildArch:	noarch

%description docker
This package installs a script named docker that emulates the Docker CLI by
executes %{name} commands, it also creates links between all Docker CLI man
pages and %{name}.

%files docker
%{_bindir}/docker
%{_tmpfilesdir}/%{name}-docker.conf

%post docker
%tmpfiles_create %{name}-docker.conf

#---------------------------------------------------------------

%package remote
Summary:	(Experimental) Remote client for managing %{name} containers
Group:		Development/Other

%description remote
Remote client for managing %{name} containers.

This experimental remote client is under heavy development. Please do not
run %{name}-remote in production.

Podman-remote uses the version 2 API to connect to a %{name} client to
manage pods, containers and container images. %{name}-remote supports ssh
connections as well.

%files remote
%license LICENSE
%{_bindir}/%{name}-remote
%{_datadir}/bash-completion/completions/%{name}-remote
%{_datadir}/fish/vendor_completions.d/%{name}-remote.fish
%{_datadir}/zsh/site-functions/_%{name}-remote
%dir %{_datadir}/fish/vendor_completions.d
%dir %{_datadir}/zsh/site-functions

#---------------------------------------------------------------

%package plugins
Summary:	Plugins for %{name}
Group:		Development/Other
Requires:	dnsmasq
Recommends:	%{name}-gvproxy = %{EVRD}

%description plugins
This plugin sets up the use of dnsmasq on a given CNI network so
that Pods can resolve each other by name. When configured,
the pod and its IP address are added to a network specific hosts file
that dnsmasq will read in. Similarly, when a pod
is removed from the network, it will remove the entry from the hosts
file. Each CNI network will have its own dnsmasq instance.

%files plugins
%doc dnsname-%{commit_plugins}/{README.md,README_PODMAN.md}
%license dnsname-%{commit_plugins}/LICENSE
%dir %{_libexecdir}/cni
%{_libexecdir}/cni/dnsname

#---------------------------------------------------------------

%package gvproxy
Summary:	Go replacement for libslirp and VPNKit
Group:		Development/Other

%description gvproxy
A replacement for libslirp and VPNKit, written in pure Go.
It is based on the network stack of gVisor. Compared to libslirp,
gvisor-tap-vsock brings a configurable DNS server and
dynamic port forwarding.

%files gvproxy
%doc gvisor-tap-vsock-%{commit_gvproxy}/README.md
%license gvisor-tap-vsock-%{commit_gvproxy}/LICENSE
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/gvproxy

#---------------------------------------------------------------

%prep
%autosetup -p1
sed -i 's;@@PODMAN@@\;$(BINDIR);@@PODMAN@@\;%{_bindir};' Makefile

# untar dnsname
tar zxf %{SOURCE1}

# untar %%{name}-gvproxy
tar zxf %{SOURCE2}

%build
%set_build_flags
export GO111MODULE=off
export GOPATH=$(pwd)/_build:$(pwd)
export CGO_CFLAGS=$CFLAGS

# These extra flags present in $CFLAGS have been skipped for now as they break the build
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-flto=auto//g')
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-Wp,D_GLIBCXX_ASSERTIONS//g')
CGO_CFLAGS=$(echo $CGO_CFLAGS | sed 's/-specs=\/usr\/lib\/rpm\/redhat\/redhat-annobin-cc1//g')

%ifarch x86_64
export CGO_CFLAGS+=" -m64 -mtune=generic -fcf-protection=full"
%endif

mkdir -p _build/src/github.com/containers
ln -s ../../../../ _build/src/github.com/containers/%{name}
ln -s vendor src

# build date. FIXME: Makefile uses '/v2/libpod', that doesn't work here?
LDFLAGS="-X github.com/containers/%{name}/libpod/define.buildInfo=$(date +%s)"

# build rootlessport first
%gobuild -o bin/rootlessport github.com/containers/%{name}/cmd/rootlessport

# set basebuildtags common
export BASEBUILDTAGS="seccomp exclude_graphdriver_devicemapper $(hack/selinux_tag.sh) $(hack/systemd_tag.sh) $(hack/libsubid_tag.sh)"

# build %%{name}
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh)"
%gobuild -o bin/%{name} github.com/containers/%{name}/cmd/%{name}

# build %%{name}-remote
export BUILDTAGS="$BASEBUILDTAGS exclude_graphdriver_btrfs btrfs_noversion remote"
%gobuild -o bin/%{name}-remote github.com/containers/%{name}/cmd/%{name}

# build quadlet
export BUILDTAGS="$BASEBUILDTAGS $(hack/btrfs_installed_tag.sh) $(hack/btrfs_tag.sh)"
%gobuild -o bin/quadlet github.com/containers/%{name}/cmd/quadlet

mkdir -p dnsname-%{commit_plugins}/_build/src/github.com/containers
ln -s ../../../../ dnsname-%{commit_plugins}/_build/src/github.com/containers/dnsname
pushd dnsname-%{commit_plugins}
ln -s vendor src
export GOPATH=$(pwd)/_build:$(pwd)
%gobuild -o bin/dnsname github.com/containers/dnsname/plugins/meta/dnsname
popd

mkdir -p gvisor-tap-vsock-%{commit_gvproxy}/_build/src/github.com/containers
ln -s ../../../../ gvisor-tap-vsock-%{commit_gvproxy}/_build/src/github.com/containers/gvisor-tap-vsock
pushd gvisor-tap-vsock-%{commit_gvproxy}
ln -s vendor src
export GOPATH=$(pwd)/_build:$(pwd)
%gobuild -o bin/gvproxy github.com/containers/gvisor-tap-vsock/cmd/gvproxy
popd

#{__make} docs docker-docs

%install
install -dp %{buildroot}%{_unitdir}
PODMAN_VERSION=%{version}
%{__make}	\
	DESTDIR=%{buildroot}	\
	ETCDIR=%{_sysconfdir}	\
	PREFIX=%{_prefix}	\
	SYSTEMDDIR=%{_unitdir}	\
	SYSTEMDGENERATORSDIR=%{_systemdgeneratordir}	\
	install.bin		\
	install.completions	\
	install.docker		\
	install.modules-load	\
	install.remote		\
	install.systemd

# install dnsname plugin
pushd dnsname-%{commit_plugins}
%{__make}	\
	DESTDIR=%{buildroot}	\
	PREFIX=%{_prefix}	\
	install
popd

# install gvproxy
pushd gvisor-tap-vsock-%{commit_gvproxy}
install -dp %{buildroot}%{_libexecdir}/%{name}
install -p -m0755 bin/gvproxy %{buildroot}%{_libexecdir}/%{name}
popd

# See: https://github.com/containers/podman/pull/15457#discussion_r955423853
rm -f %{buildroot}%{_datadir}/user-tmpfiles.d/%{name}-docker.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15867 |21mr|polari-42.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Internet Relay Chat client for GNOME
Name:		polari
Version:	42.1
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/polari
Source0:	https://download.gnome.org/sources/polari/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	desktop-file-utils
BuildRequires:	gjs
BuildRequires:	gsettings-desktop-schemas
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	typelib(Secret)
BuildRequires:	typelib(Soup)
BuildRequires:	typelib(TelepathyLogger)
Requires:	gjs
Requires:	gsettings-desktop-schemas
Requires:	telepathy-logger
Requires:	telepathy-mission-control
Requires:	telepathy-idle
Requires:	typelib(Secret)
Requires:	typelib(Soup)
Requires:	typelib(TelepathyLogger)

%description
Polari is an Internet Relay Chat client for the GNOME desktop.

%files -f %{name}.lang
%doc COPYING AUTHORS NEWS
%{_appdatadir}/org.gnome.Polari.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.Polari.desktop
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Polari.service
%{_datadir}/dbus-1/services/org.gnome.Polari.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/telepathy/clients/Polari.client
%{_datadir}/%{name}
%{_iconsdir}/*/*/*/*
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15868 |21mr|polarssl-1.3.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	7
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d

%define debug_package %{nil}

Summary:	An SSL library
Name:		polarssl
Version:	1.3.9
Release:	6
License:	GPLv2+
Group:		System/Libraries
Url:		http://polarssl.org
Source0:	http://polarssl.org/code/releases/%{name}-%{version}-gpl.tgz
Patch1:		CVE-2015-1182.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libpkcs11-helper-1)

%description
PolarSSL is an SSL library written in ANSI C. PolarSSL makes it easy
for developers to include cryptographic and SSL/TLS capabilities in their
(embedded) products with as little hassle as possible. It is designed to be
readable, documented, tested, loosely coupled and portable.

This package contains PolarSSL programs.

%files
%doc ChangeLog
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PolarSSL library
Group:		System/Libraries

%description -n %{libname}
PolarSSL is an SSL library written in ANSI C. PolarSSL makes it easy
for developers to include cryptographic and SSL/TLS capabilities in their
(embedded) products with as little hassle as possible. It is designed to be
readable, documented, tested, loosely coupled and portable.

This package contains the library itself.

%files -n %{libname}
%{_libdir}/libpolarssl.so.%{major}*
%{_libdir}/libpolarssl.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	PolarSSL development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	polarssl-devel = %{EVRD}

%description -n %{devname}
PolarSSL is an SSL library written in ANSI C. PolarSSL makes it easy
for developers to include cryptographic and SSL/TLS capabilities in their
(embedded) products with as little hassle as possible. It is designed to be
readable, documented, tested, loosely coupled and portable.

This package contains development files.

%files -n %{devname}
%doc apidoc
%{_libdir}/libpolarssl.so
%{_includedir}/polarssl

#----------------------------------------------------------------------------

%prep
%autosetup -p1

enable_polarssl_option() {
    local myopt="$@"
    # check that config.h syntax is the same at version bump
    sed -i \
        -e "s://#define ${myopt}:#define ${myopt}:" \
        include/polarssl/config.h || die
}

enable_polarssl_option POLARSSL_ZLIB_SUPPORT
enable_polarssl_option POLARSSL_HAVEGE_C

%build

%cmake \
	-DUSE_SHARED_POLARSSL_LIBRARY=ON \
	-DENABLE_ZLIB_SUPPORT=ON \
	-DUSE_PKCS11_HELPER_LIBRARY=ON
%make
%make apidoc

%check
LD_LIBRARY_PATH=$PWD/library ctest --output-on-failure -V

%install
%makeinstall_std -C build

for file in benchmark md5sum sha1sum
do
	mv %{buildroot}%{_bindir}/${file} %{buildroot}%{_bindir}/${file}.polarssl
done

rm -f %{buildroot}%{_libdir}/libpolarssl.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15869 |21mr|policycoreutils-3.0-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global generatorsdir /lib/systemd/system-generators

# TODO: sync version with libselinux
%global optflags %{optflags} -Wno-error=deprecated-declarations

Summary:	SELinux policy core utilities
Name:		policycoreutils
Version:	3.0
Release:	28
License:	GPLv2
Group:		System/Base
Url:		https://github.com/SELinuxProject/selinux
# https://github.com/SELinuxProject/selinux/wiki/Releases
Source0:	https://github.com/SELinuxProject/selinux/releases/download/20191204/%{name}-%{version}.tar.gz
Source1:	https://github.com/SELinuxProject/selinux/releases/download/20191204/selinux-python-%{version}.tar.gz
Source2:	https://github.com/SELinuxProject/selinux/releases/download/20191204/selinux-gui-%{version}.tar.gz
Source3:	https://github.com/SELinuxProject/selinux/releases/download/20191204/selinux-sandbox-%{version}.tar.gz
Source4:	https://github.com/SELinuxProject/selinux/releases/download/20191204/selinux-dbus-%{version}.tar.gz
Source5:	https://github.com/SELinuxProject/selinux/releases/download/20191204/semodule-utils-%{version}.tar.gz
Source6:	https://github.com/SELinuxProject/selinux/releases/download/20191204/restorecond-%{version}.tar.gz
Source13:	system-config-selinux.png
Source14:	sepolicy-icons.tgz
Source15:	selinux-autorelabel
Source16:	selinux-autorelabel.service
Source17:	selinux-autorelabel-mark.service
Source18:	selinux-autorelabel.target
Source19:	selinux-autorelabel-generator.sh
Source20:	policycoreutils-po.tgz
Source21:	python-po.tgz
Source22:	gui-po.tgz
Source23:	sandbox-po.tgz
Source100:	policycoreutils.rpmlintrc
# https://github.com/fedora-selinux/selinux
# $ git format-patch -N 20191204 -- policycoreutils python gui sandbox dbus semodule-utils restorecond
# $ for j in [0-9]*.patch; do printf "Patch%s: %s\n" ${j/-*/} $j; done
# Patch list start
Patch0001:	0001-sandbox-add-reset-to-Xephyr-as-it-works-better-with-.patch
Patch0002:	0002-Fix-STANDARD_FILE_CONTEXT-section-in-man-pages.patch
Patch0003:	0003-If-there-is-no-executable-we-don-t-want-to-print-a-p.patch
Patch0004:	0004-Simplication-of-sepolicy-manpage-web-functionality.-.patch
Patch0005:	0005-We-want-to-remove-the-trailing-newline-for-etc-syste.patch
Patch0006:	0006-Fix-title-in-manpage.py-to-not-contain-online.patch
Patch0007:	0007-Don-t-be-verbose-if-you-are-not-on-a-tty.patch
Patch0008:	0008-sepolicy-Drop-old-interface-file_type_is_executable-.patch
Patch0009:	0009-sepolicy-Another-small-optimization-for-mcs-types.patch
Patch0010:	0010-Move-po-translation-files-into-the-right-sub-directo.patch
Patch0011:	0011-Use-correct-gettext-domains-in-python-gui-sandbox.patch
Patch0012:	0012-Initial-.pot-files-for-gui-python-sandbox.patch
Patch0013:	0013-policycoreutils-setfiles-Improve-description-of-d-sw.patch
Patch0014:	0014-sepolicy-generate-Handle-more-reserved-port-types.patch
Patch0015:	0015-semodule-utils-Fix-RESOURCE_LEAK-coverity-scan-defec.patch
Patch0016:	0016-sandbox-Use-matchbox-window-manager-instead-of-openb.patch
Patch0017:	0017-python-Use-ipaddress-instead-of-IPy.patch
# Patch list end
# Don't loose it when syncing with Fedora
# Separate git am in %%prep is needed
Patch1001:	ROSA-0001-policycoreutils-setfiles-add-option-to-disable-expan.patch
Patch1002:	ROSA-0002-policycoreutils-fixfiles-allow-to-disable-cleaning-t.patch
Patch1003:	ROSA-0003-policycoreutils-semodule-verbosity.patch
Patch1004:	ROSA-0004-policycoreutils-2.9-add-height-select-button.patch
Patch1005:	ROSA-0005-gui-2.9-disable-types-localization.patch
# https://github.com/SELinuxProject/selinux/pull/345
Patch1006:	ROSA-0006-gui-do-not-recreate-etc-selinux-config.patch
BuildRequires:	desktop-file-utils
BuildRequires:	git
BuildRequires:	systemd
BuildRequires:	systemd-units
BuildRequires:	pam-devel
BuildRequires:	semanage-static-devel 
BuildRequires:	sepol-static-devel
BuildRequires:	pkgconfig(audit)
BuildRequires:	pkgconfig(dbus-1) 
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(libcap) 
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(python3)
Requires:	coreutils
Requires:	diffutils
Requires:	gawk
Requires:	libselinux-utils
Requires:	libsepol
Requires:	util-linux

%description
Security-enhanced Linux is a feature of the Linux® kernel and a number
of utilities with enhanced security functionality designed to add
mandatory access controls to Linux. The Security-enhanced Linux
kernel contains new architectural components originally developed to
improve the security of the Flask operating system. These
architectural components provide general support for the enforcement
of many kinds of mandatory access control policies, including those
based on the concepts of Type Enforcement®, Role-based Access
Control, and Multi-level Security.

policycoreutils contains the policy core utilities that are required
for basic operation of a SELinux system. These utilities include
load_policy to load policies, setfiles to label filesystems, newrole
to switch roles.

%files -f %{name}.lang
%{_sbindir}/restorecon
%{_sbindir}/restorecon_xattr
%{_sbindir}/fixfiles
# compat links
/sbin/fixfiles
/sbin/restorecon
/sbin/restorecon_xattr
/sbin/load_policy
/sbin/setfiles
%{_sbindir}/setfiles
%{_sbindir}/load_policy
%{_sbindir}/genhomedircon
%{_sbindir}/setsebool
%{_sbindir}/semodule
%{_sbindir}/sestatus
%{_bindir}/secon
%{_bindir}/semodule_expand
%{_bindir}/semodule_link
%{_bindir}/semodule_package
%{_bindir}/semodule_unpackage
%{_prefix}/libexec/selinux/hll
%{_prefix}/libexec/selinux/selinux-autorelabel
%{_unitdir}/selinux-autorelabel-mark.service
%{_unitdir}/selinux-autorelabel.service
%{_unitdir}/selinux-autorelabel.target
/lib/systemd/system-generators/selinux-autorelabel-generator.sh
%config(noreplace) %{_sysconfdir}/sestatus.conf
%{_mandir}/man5/selinux_config.5.*
%{_mandir}/man5/sestatus.conf.5.*
%{_mandir}/man8/fixfiles.8*
%{_mandir}/ru/man8/fixfiles.8*
%{_mandir}/man8/load_policy.8*
%{_mandir}/ru/man8/load_policy.8*
%{_mandir}/man8/restorecon.8*
%{_mandir}/ru/man8/restorecon.8*
%{_mandir}/man8/restorecon_xattr.8*
%{_mandir}/man8/semodule.8*
%{_mandir}/ru/man8/semodule.8*
%{_mandir}/man8/sestatus.8*
%{_mandir}/ru/man8/sestatus.8*
%{_mandir}/man8/setfiles.8*
%{_mandir}/ru/man8/setfiles.8*
%{_mandir}/man8/setsebool.8*
%{_mandir}/ru/man8/setsebool.8*
%{_mandir}/man1/secon.1*
%{_mandir}/ru/man1/secon.1*
%{_mandir}/man8/genhomedircon.8*
%{_mandir}/man8/semodule_expand.8*
%{_mandir}/ru/man8/semodule_expand.8*
%{_mandir}/man8/semodule_link.8*
%{_mandir}/ru/man8/semodule_link.8*
%{_mandir}/man8/semodule_unpackage.8*
%{_mandir}/man8/semodule_package.8*
%{_mandir}/ru/man8/semodule_package.8*
%{_datadir}/bash-completion/completions/setsebool

%post
%systemd_post selinux-autorelabel-mark.service

%preun
%systemd_preun selinux-autorelabel-mark.service

#------------------------------------------------------------------

%package python-utils
Summary:	SELinux policy core python utilities
Group:		Development/Python
Requires:	python3-libsemanage
Requires:	python3-policycoreutils = %{EVRD}
Provides:	policycoreutils-python = %{EVRD}
BuildArch:	noarch

%description python-utils
The policycoreutils-python-utils package contains
the management tools use to manage an SELinux environment.

%files python-utils
%{_sbindir}/semanage
%{_bindir}/chcat
%{_bindir}/sandbox
%{_bindir}/audit2allow
%{_bindir}/audit2why
%{_mandir}/man1/audit2allow.1*
%{_mandir}/ru/man1/audit2allow.1*
%{_mandir}/man1/audit2why.1*
%{_mandir}/man8/chcat.8*
%{_mandir}/ru/man8/chcat.8*
%{_mandir}/man8/sandbox.8*
%{_mandir}/man8/semanage*.8*
%{_mandir}/ru/man8/semanage.8*
%{_datadir}/bash-completion/completions/semanage

#------------------------------------------------------------------

%package dbus
Summary:	SELinux policy core DBUS api
Group:		System/Libraries
Requires:	python3-policycoreutils = %{EVRD}
Requires:	python3egg(slip.dbus)
BuildArch:	noarch

%description dbus
The policycoreutils-dbus package contains the management DBUS API use to manage
an SELinux environment.

%files dbus
%{_sysconfdir}/dbus-1/system.d/org.selinux.conf
%{_datadir}/dbus-1/system-services/org.selinux.service
%{_datadir}/polkit-1/actions/org.selinux.policy
%{_datadir}/polkit-1/actions/org.selinux.config.policy
%{_datadir}/system-config-selinux/selinux_server.py
%{_datadir}/system-config-selinux/__pycache__/selinux_server.*

#------------------------------------------------------------------

%package -n python3-policycoreutils
Summary:	SELinux policy core python3 interfaces
Group:		Development/Python
Requires:	checkpolicy
Requires:	policycoreutils = %{EVRD}
Requires:	python3-libsemanage
Requires:	python3-audit
Provides:	python3-policycoreutils = %{EVRD}
Requires:	python3egg(selinux)
Requires:	python3egg(setools)
BuildArch:	noarch

%description -n python3-policycoreutils
The python3-policycoreutils package contains the interfaces that can be used
by python 3 in an SELinux environment.

%files -n python3-policycoreutils -f selinux-python.lang
%{python3_sitelib}/seobject.py*
%{python3_sitelib}/__pycache__/seobject*
%{python3_sitelib}/sepolgen
%{python3_sitelib}/sepolicy/templates
%{python3_sitelib}/sepolicy/help/*
%{python3_sitelib}/sepolicy/__init__.py*
%{python3_sitelib}/sepolicy/booleans.py*
%{python3_sitelib}/sepolicy/communicate.py*
%{python3_sitelib}/sepolicy/generate.py*
%{python3_sitelib}/sepolicy/interface.py*
%{python3_sitelib}/sepolicy/manpage.py*
%{python3_sitelib}/sepolicy/network.py*
%{python3_sitelib}/sepolicy/transition.py*
%{python3_sitelib}/sepolicy/sedbus.py*
%{python3_sitelib}/sepolicy*.egg-info
%{python3_sitelib}/sepolicy/__pycache__/*

#------------------------------------------------------------------

%package devel
Summary:	SELinux policy core policy devel utilities
Group:		Development/Python
Requires:	policycoreutils-python-utils = %{EVRD}
Requires:	make
# break dependency hell
#Requires:	selinux-policy-devel

%description devel
The policycoreutils-devel package contains the management
tools use to develop policy in an SELinux environment.

%files devel
%{_bindir}/sepolgen
%{_bindir}/sepolgen-ifgen
%{_bindir}/sepolgen-ifgen-attr-helper
%{_localstatedir}/lib/sepolgen/perm_map
%{_bindir}/sepolicy
%{_mandir}/man8/sepolgen.8*
%{_mandir}/man8/sepolicy-booleans.8*
%{_mandir}/man8/sepolicy-generate.8*
%{_mandir}/man8/sepolicy-interface.8*
%{_mandir}/man8/sepolicy-network.8*
%{_mandir}/man8/sepolicy.8*
%{_mandir}/man8/sepolicy-communicate.8*
%{_mandir}/man8/sepolicy-manpage.8*
%{_mandir}/man8/sepolicy-transition.8*
%{_datadir}/bash-completion/completions/sepolicy

#------------------------------------------------------------------

%package sandbox
Summary:	SELinux sandbox utilities
Group:		Development/Python
Requires:	python3-policycoreutils = %{EVRD}
Requires:	x11-server-xephyr
Requires:	xmodmap
Requires:	rsync
Requires(pre):	libcap-utils

%description sandbox
The policycoreutils-sandbox package contains the scripts to create graphical
sandboxes

%files -f selinux-sandbox.lang sandbox
%config(noreplace) %{_sysconfdir}/sysconfig/sandbox
%{_datadir}/sandbox/sandboxX.sh
%{_datadir}/sandbox/start
%{_sbindir}/seunshare
%{_mandir}/man8/seunshare.8*
%{_mandir}/man5/sandbox.5*

%post sandbox
%{_sbindir}/setcap cap_setpcap,cap_setuid,cap_fowner,cap_dac_override,cap_sys_admin,cap_sys_nice=pe %{_sbindir}/seunshare

#------------------------------------------------------------------

%package newrole
Summary:	The newrole application for RBAC/MLS
Group:		Development/Python
Requires:	policycoreutils = %{EVRD}
Requires(pre):	libcap-utils

%description newrole
RBAC/MLS policy machines require newrole as a way of changing the role
or level of a logged in user.

%files newrole
%attr(0755,root,root) %{_bindir}/newrole
%{_mandir}/man1/newrole.1.*
%{_mandir}/ru/man1/newrole.1.*
%config(noreplace) %{_sysconfdir}/pam.d/newrole

%post newrole
%{_sbindir}/setcap cap_dac_read_search,cap_setpcap,cap_audit_write,cap_sys_admin,cap_fowner,cap_chown,cap_dac_override=pe %{_bindir}/newrole

#------------------------------------------------------------------

%package gui
Summary:	SELinux configuration GUI
Group:		Development/Python
Requires:	policycoreutils-dbus = %{EVRD}
Requires:	policycoreutils-devel = %{EVRD}
Requires:	python3-policycoreutils = %{EVRD}
BuildArch:	noarch

%description gui
system-config-selinux is a utility for managing the SELinux environment

%files -f selinux-gui.lang gui
%{_bindir}/system-config-selinux
%{_bindir}/selinux-polgengui
#{_datadir}/applications/sepolicy.desktop #don't work with config
%{_datadir}/applications/system-config-selinux.desktop
%{_datadir}/applications/selinux-polgengui.desktop
%dir %attr(755,root,root) %{_localstatedir}/lib/sepolgen
%ghost %attr(646,root,root) %{_localstatedir}/lib/sepolgen/interface_info
%{_datadir}/icons/hicolor/*/apps/system-config-selinux.png
%{_datadir}/pixmaps/system-config-selinux.png
%{_datadir}/system-config-selinux/*.png
%{_datadir}/system-config-selinux/*Page.py
%{_datadir}/system-config-selinux/__pycache__/*Page.*
%{_datadir}/system-config-selinux/system-config-selinux.py
%{_datadir}/system-config-selinux/__pycache__/system-config-selinux.*
%{_datadir}/system-config-selinux/*.ui
%{python3_sitelib}/sepolicy/gui.py*
%{python3_sitelib}/sepolicy/sepolicy.glade
%{_datadir}/icons/hicolor/*/apps/sepolicy.png
%{_datadir}/applications/sepolicy.desktop
%{_datadir}/pixmaps/sepolicy.png
%{_mandir}/man8/system-config-selinux.8*
%{_mandir}/man8/selinux-polgengui.8*
%{_mandir}/man8/sepolicy-gui.8*

%post gui
touch %{_localstatedir}/lib/sepolgen/interface_info
chmod 646 %{_localstatedir}/lib/sepolgen/interface_info

#------------------------------------------------------------------

%package restorecond
Summary:	SELinux restorecond utilities
Group:		Development/Python

%description restorecond
The policycoreutils-restorecond package contains the restorecond service.

%files restorecond
%{_sbindir}/restorecond
%{_unitdir}/restorecond.service
%config(noreplace) %{_sysconfdir}/selinux/restorecond.conf
%config(noreplace) %{_sysconfdir}/selinux/restorecond_user.conf
%{_sysconfdir}/xdg/autostart/restorecond.desktop
%{_datadir}/dbus-1/services/org.selinux.Restorecond.service
%{_mandir}/man8/restorecond.8*
%{_mandir}/ru/man8/restorecond.8*
%{_mandir}/ru/man1/audit2why.1.*
%{_mandir}/ru/man5/sandbox.5.*
%{_mandir}/ru/man5/selinux_config.5.*
%{_mandir}/ru/man5/sestatus.conf.5.*
%{_mandir}/ru/man8/genhomedircon.8.*
%{_mandir}/ru/man8/restorecon_xattr.8.*
%{_mandir}/ru/man8/sandbox.8.*
%{_mandir}/ru/man8/selinux-polgengui.8.*
%{_mandir}/ru/man8/semanage-boolean.8.*
%{_mandir}/ru/man8/semanage-dontaudit.8.*
%{_mandir}/ru/man8/semanage-export.8.*
%{_mandir}/ru/man8/semanage-fcontext.8.*
%{_mandir}/ru/man8/semanage-ibendport.8.*
%{_mandir}/ru/man8/semanage-ibpkey.8.*
%{_mandir}/ru/man8/semanage-import.8.*
%{_mandir}/ru/man8/semanage-interface.8.*
%{_mandir}/ru/man8/semanage-login.8.*
%{_mandir}/ru/man8/semanage-module.8.*
%{_mandir}/ru/man8/semanage-node.8.*
%{_mandir}/ru/man8/semanage-permissive.8.*
%{_mandir}/ru/man8/semanage-port.8.*
%{_mandir}/ru/man8/semanage-user.8.*
%{_mandir}/ru/man8/semodule_unpackage.8.*
%{_mandir}/ru/man8/sepolgen.8.*
%{_mandir}/ru/man8/sepolicy-booleans.8.*
%{_mandir}/ru/man8/sepolicy-communicate.8.*
%{_mandir}/ru/man8/sepolicy-generate.8.*
%{_mandir}/ru/man8/sepolicy-gui.8.*
%{_mandir}/ru/man8/sepolicy-interface.8.*
%{_mandir}/ru/man8/sepolicy-manpage.8.*
%{_mandir}/ru/man8/sepolicy-network.8.*
%{_mandir}/ru/man8/sepolicy-transition.8.*
%{_mandir}/ru/man8/sepolicy.8.*
%{_mandir}/ru/man8/seunshare.8.*
%{_mandir}/ru/man8/system-config-selinux.8.*

%post restorecond
%systemd_post restorecond.service

%preun restorecond
%systemd_preun restorecond.service

%postun restorecond
%systemd_postun_with_restart restorecond.service

#------------------------------------------------------------------

%prep
# create selinux/ directory and extract sources
%autosetup -S git -N -c -n selinux
%autosetup -S git -N -T -D -a 1 -n selinux
%autosetup -S git -N -T -D -a 2 -n selinux
%autosetup -S git -N -T -D -a 3 -n selinux
%autosetup -S git -N -T -D -a 4 -n selinux
%autosetup -S git -N -T -D -a 5 -n selinux
%autosetup -S git -N -T -D -a 6 -n selinux

for i in *; do
    git mv $i ${i/-%{version}/}
    git commit -q --allow-empty -a --author 'rpm-build <rpm-build>' -m "$i -> ${i/-%{version}/}"
done

for i in selinux-*; do
    git mv $i ${i#selinux-}
    git commit -q --allow-empty -a --author 'rpm-build <rpm-build>' -m "$i -> ${i#selinux-}"
done

git am %{_sourcedir}/[0-9]*.patch

cp %{SOURCE13} gui/
tar -xvf %{SOURCE14} -C python/sepolicy/

# Since patches containing translation changes were too big, translations were moved to separate tarballs
# For more information see README.translations
tar -x -f %{SOURCE20} -C policycoreutils -z
tar -x -f %{SOURCE21} -C python -z
tar -x -f %{SOURCE22} -C gui -z
tar -x -f %{SOURCE23} -C sandbox -z

%build
%set_build_flags
export PYTHON=%{__python3}

make -C policycoreutils LSPP_PRIV=y SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" SEMODULE_PATH="/usr/sbin" LIBSEPOLA="%{_libdir}/libsepol.a" all
make -C python SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
make -C gui SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
make -C sandbox SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
make -C dbus SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
make -C semodule-utils SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all
make -C restorecond SBINDIR="%{_sbindir}" LSPP_PRIV=y LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" all

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
mkdir -p %{buildroot}%{_mandir}/man8
%{__mkdir} -p %{buildroot}/%{_usr}/share/doc/%{name}/

make -C policycoreutils LSPP_PRIV=y  DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" SEMODULE_PATH="/usr/sbin" LIBSEPOLA="%{_libdir}/libsepol.a" install

make -C python PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install

make -C gui PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install

make -C sandbox PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install

make -C dbus PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install

make -C semodule-utils PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install

make -C restorecond PYTHON=%{__python3} DESTDIR="%{buildroot}" SBINDIR="%{_sbindir}" SYSTEMDDIR="/lib/systemd" LIBDIR="%{_libdir}" LIBSEPOLA="%{_libdir}/libsepol.a" install

# Fix perms on newrole so that objcopy can process it
chmod 0755 %{buildroot}%{_bindir}/newrole

# Systemd
rm -rf %{buildroot}/%{_sysconfdir}/rc.d/init.d/restorecond

rm -f %{buildroot}/usr/share/man/ru/man8/genhomedircon.8.gz
rm -f %{buildroot}/usr/share/man/ru/man8/open_init_pty.8*
rm -f %{buildroot}/usr/share/man/ru/man8/semodule_deps.8.gz
rm -f %{buildroot}/usr/share/man/man8/open_init_pty.8
rm -f %{buildroot}/usr/sbin/open_init_pty
rm -f %{buildroot}/usr/sbin/run_init
rm -f %{buildroot}/usr/share/man/ru/man8/run_init.8*
rm -f %{buildroot}/usr/share/man/man8/run_init.8*
rm -f %{buildroot}/etc/pam.d/run_init*

mkdir   -m 755 -p %{buildroot}/%{generatorsdir}
install -m 644 -p %{SOURCE16} %{buildroot}/%{_unitdir}/
install -m 644 -p %{SOURCE17} %{buildroot}/%{_unitdir}/
install -m 644 -p %{SOURCE18} %{buildroot}/%{_unitdir}/
install -m 755 -p %{SOURCE19} %{buildroot}/%{generatorsdir}/
install -m 755 -p %{SOURCE15} %{buildroot}/%{_libexecdir}/selinux/

# change /usr/bin/python to %%{__python3} in policycoreutils-python3
pathfix.py -i "%{__python3} -Es" -p %{buildroot}%{python3_sitelib}

# change /usr/bin/python to %%{__python3} in policycoreutils-python-utils
pathfix.py -i "%{__python3} -Es" -p \
    %{buildroot}%{_sbindir}/semanage \
    %{buildroot}%{_bindir}/chcat \
    %{buildroot}%{_bindir}/sandbox \
    %{buildroot}%{_datadir}/sandbox/start \
    %{buildroot}%{_bindir}/audit2allow \
    %{buildroot}%{_bindir}/sepolicy \
    %{buildroot}%{_bindir}/sepolgen-ifgen \
    %{buildroot}%{_datadir}/system-config-selinux/system-config-selinux.py \
    %{buildroot}%{_datadir}/system-config-selinux/selinux_server.py \
    %nil

# ROSA CHANGES
mkdir -p %{buildroot}/sbin/
for binary in setfiles fixfiles restorecon restorecon_xattr load_policy; do
	ln -sf ../..%{_sbindir}/$binary %{buildroot}/sbin/$binary
done
cp %{name}/setfiles/{restorecon,restorecon_xattr,setfiles} %{buildroot}%{_sbindir}/
# end ROSA CHANGES

# clean up ~ files from pathfix - https://bugzilla.redhat.com/show_bug.cgi?id=1546990
find %{buildroot}%{python3_sitelib} %{buildroot}%{python3_sitearch} \
     %{buildroot}%{_sbindir} %{buildroot}%{_bindir} %{buildroot}%{_datadir} \
     -type f -name '*~' | xargs rm -f

# Manually invoke the python byte compile macro for each path that needs byte
# compilation.
%py_byte_compile %{__python3} %{buildroot}%{_datadir}/system-config-selinux

%find_lang policycoreutils
%find_lang selinux-python
%find_lang selinux-gui
%find_lang selinux-sandbox

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15870 |21mr|polkit-0.120-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 0
%define gir_major 1.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{gir_major}
%define devname %mklibname %{name} %{api} -d
%ifarch %{e2k} 
%bcond_with mozjs
%endif
# end
%ifarch %{x86_64} %{ix86} %{armx} riscv64
%bcond_without mozjs
%endif

Summary:	PolicyKit Authorization Framework
Name:		polkit
Version:	0.120
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/PolicyKit
#Source0:	http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
# https://gitlab.freedesktop.org/polkit/polkit/-/issues/143
Source0:	https://gitlab.freedesktop.org/polkit/polkit/-/archive/%{version}/polkit-%{version}.tar.gz
Source1:	polkit.sysusers.conf
# Russian tranlations file
Source2:	polkit-ru.tar.gz
# Russian man
Source3:	pkexec.1.xz
# (tpg) export environemt vars
Patch20:        x11vars.patch
# Adds Russian build locale
Patch21:        add.locale.ru.patch
# https://www.openwall.com/lists/oss-security/2022/01/25/11
# https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
Patch22:		CVE-2021-4034.patch
# https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/105
Patch23:		0001-docs-fix-building-with-meson-0.61.1.patch
Patch24:		polkit-0.120-duktape-1.patch
Patch26:		polkit-meson-120.patch
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
# (cg) Only needed due to patches+autoconf
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
%if %{with mozjs}
BuildRequires:	pkgconfig(mozjs-78)
%else
BuildRequires:	duktape-devel
%endif
BuildRequires:	pkgconfig(libsystemd)
Requires:	dbus
Requires(pre):  /bin/systemd-sysusers
Provides:	PolicyKit = %{EVRD}

%description
PolicyKit is a toolkit for defining and handling authorizations.
It is used for allowing unprivileged processes to speak to privileged
processes.

%files -f polkit-1.lang
%{_sysconfdir}/pam.d/polkit-1
%{_bindir}/pkaction
%{_bindir}/pkcheck
%{_bindir}/pkttyagent
%{_bindir}/pk-example-frobnicate
%{_unitdir}/polkit.service
%{_sysusersdir}/polkit.conf
%dir %{_prefix}/lib/polkit-1
%{_prefix}/lib/polkit-1/polkitd
%{_datadir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
%{_datadir}/dbus-1/system-services/*
%dir %{_datadir}/polkit-1/
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy
%{_datadir}/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
%attr(700,polkitd,root) %dir %{_datadir}/polkit-1/rules.d
%attr(700,polkitd,root) %{_sysconfdir}/polkit-1/rules.d
%dir %{_sysconfdir}/polkit-1
%{_mandir}/man1/*
%{_mandir}/man8/*
%{_mandir}/ru/man1/*

# see upstream docs for why these permissions are necessary
%attr(4755,root,root) %{_bindir}/pkexec
%attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1

%pre
%sysusers_create_package polkit %{SOURCE1}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PolicyKit Authorization Framework
Group:		System/Libraries

%description -n %{libname}
This package contains the shared libraries of %{name}.

%files -n %{libname}
%{_libdir}/lib*-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Polkit*-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for PolicyKit
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(glib-2.0)
Provides:	polkit-%{api}-devel = %{EVRD}

%description -n %{devname}
Development files for PolicyKit.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gettext/its/polkit.its
%{_datadir}/gettext/its/polkit.loc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%ifarch %{e2k}
#sed -i '/mozjs_dep = dependency/d' meson.build
#sed -i -e 's/mozjs_dep,//; /polkitbackendjsauthority.cpp/d' src/polkitbackend/meson.build
#sed -i 's/POLKIT_BACKEND_TYPE_JS_AUTHORITY/POLKIT_BACKEND_TYPE_AUTHORITY/' src/polkitbackend/polkitbackendauthority.c
%endif


pushd po
tar -xvzf %{SOURCE2}
popd

%build
%meson \
	-Dsession_tracking="libsystemd-login" \
	-Dsystemdsystemunitdir="%{_unitdir}" \
	-Dpolkitd_user="polkitd" \
	-Dauthfw="pam" \
	-Dos_type="redhat" \
%if %{with mozjs}
	-Djs_engine=mozjs \
%else
	-Djs_engine=duktape \
%endif
	-Dexamples=true \
	-Dintrospection=true \
	-Dgtk_doc=true \
	-Dman=true

%install
%meson_install

# (cg) Make the rules dir (this is where other packages should ship their rules)
mkdir -p %{buildroot}%{_datadir}/polkit-1/rules.d

install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/polkit.conf

mkdir -p %{buildroot}%{_mandir}/ru/man1
install -m 644 %{SOURCE3} %{buildroot}%{_mandir}/ru/man1

%find_lang polkit-1 polkit-1.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15871 |21mr|polkit-0.120-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 0
%define gir_major 1.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{gir_major}
%define devname %mklibname %{name} %{api} -d
%ifarch %{e2k} 
%bcond_with mozjs
%endif
# end
%ifarch %{x86_64} %{ix86} %{armx} riscv64
%bcond_without mozjs
%endif

Summary:	PolicyKit Authorization Framework
Name:		polkit
Version:	0.120
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/PolicyKit
#Source0:	http://www.freedesktop.org/software/polkit/releases/%{name}-%{version}.tar.gz
# https://gitlab.freedesktop.org/polkit/polkit/-/issues/143
Source0:	https://gitlab.freedesktop.org/polkit/polkit/-/archive/%{version}/polkit-%{version}.tar.gz
Source1:	polkit.sysusers.conf
# Russian tranlations file
Source2:	polkit-ru.tar.gz
# Russian man
Source3:	pkexec.1.xz
# (tpg) export environemt vars
Patch20:        x11vars.patch
# Adds Russian build locale
Patch21:        add.locale.ru.patch
# https://www.openwall.com/lists/oss-security/2022/01/25/11
# https://gitlab.freedesktop.org/polkit/polkit/-/commit/a2bf5c9c83b6ae46cbd5c779d3055bff81ded683
Patch22:	CVE-2021-4034.patch
# https://gitlab.freedesktop.org/polkit/polkit/-/merge_requests/105
Patch23:	0001-docs-fix-building-with-meson-0.61.1.patch
Patch24:	polkit-0.120-duktape-1.patch
Patch26:	polkit-meson-120.patch
Patch27:	polkit-0.120-mozjs-91-upstream.patch
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
# (cg) Only needed due to patches+autoconf
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
%if %{with mozjs}
BuildRequires:	pkgconfig(mozjs-91)
%else
BuildRequires:	duktape-devel
%endif
BuildRequires:	pkgconfig(libsystemd)
Requires:	dbus
Requires(pre):  /bin/systemd-sysusers
Provides:	PolicyKit = %{EVRD}

%description
PolicyKit is a toolkit for defining and handling authorizations.
It is used for allowing unprivileged processes to speak to privileged
processes.

%files -f polkit-1.lang
%{_sysconfdir}/pam.d/polkit-1
%{_bindir}/pkaction
%{_bindir}/pkcheck
%{_bindir}/pkttyagent
%{_bindir}/pk-example-frobnicate
%{_unitdir}/polkit.service
%{_sysusersdir}/polkit.conf
%dir %{_prefix}/lib/polkit-1
%{_prefix}/lib/polkit-1/polkitd
%{_datadir}/dbus-1/system.d/org.freedesktop.PolicyKit1.conf
%{_datadir}/dbus-1/system-services/*
%dir %{_datadir}/polkit-1/
%dir %{_datadir}/polkit-1/actions
%{_datadir}/polkit-1/actions/org.freedesktop.policykit.policy
%{_datadir}/polkit-1/actions/org.freedesktop.policykit.examples.pkexec.policy
%attr(700,polkitd,root) %dir %{_datadir}/polkit-1/rules.d
%attr(700,polkitd,root) %{_sysconfdir}/polkit-1/rules.d
%dir %{_sysconfdir}/polkit-1
%{_mandir}/man1/*
%{_mandir}/man8/*
%{_mandir}/ru/man1/*

# see upstream docs for why these permissions are necessary
%attr(4755,root,root) %{_bindir}/pkexec
%attr(4755,root,root) %{_prefix}/lib/polkit-1/polkit-agent-helper-1

%pre
%sysusers_create_package polkit %{SOURCE1}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PolicyKit Authorization Framework
Group:		System/Libraries

%description -n %{libname}
This package contains the shared libraries of %{name}.

%files -n %{libname}
%{_libdir}/lib*-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Polkit*-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for PolicyKit
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(glib-2.0)
Provides:	polkit-%{api}-devel = %{EVRD}

%description -n %{devname}
Development files for PolicyKit.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gettext/its/polkit.its
%{_datadir}/gettext/its/polkit.loc
%{_datadir}/gir-1.0/*.gir
%{_datadir}/gtk-doc/html/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%ifarch %{e2k}
#sed -i '/mozjs_dep = dependency/d' meson.build
#sed -i -e 's/mozjs_dep,//; /polkitbackendjsauthority.cpp/d' src/polkitbackend/meson.build
#sed -i 's/POLKIT_BACKEND_TYPE_JS_AUTHORITY/POLKIT_BACKEND_TYPE_AUTHORITY/' src/polkitbackend/polkitbackendauthority.c
%endif


pushd po
tar -xvzf %{SOURCE2}
popd

%build
%meson \
	-Dsession_tracking="libsystemd-login" \
	-Dsystemdsystemunitdir="%{_unitdir}" \
	-Dpolkitd_user="polkitd" \
	-Dauthfw="pam" \
	-Dos_type="redhat" \
%if %{with mozjs}
	-Djs_engine=mozjs \
%else
	-Djs_engine=duktape \
%endif
	-Dexamples=true \
	-Dintrospection=true \
	-Dgtk_doc=true \
	-Dman=true

%install
%meson_install

# (cg) Make the rules dir (this is where other packages should ship their rules)
mkdir -p %{buildroot}%{_datadir}/polkit-1/rules.d

install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/polkit.conf

mkdir -p %{buildroot}%{_mandir}/ru/man1
install -m 644 %{SOURCE3} %{buildroot}%{_mandir}/ru/man1

%find_lang polkit-1 polkit-1.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15872 |21mr|polkit-gnome-0.105-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PolicyKit integration for the GNOME desktop
Name:		polkit-gnome
Version:	0.105
Release:	9
License:	LGPLv2+
Url:		http://www.freedesktop.org/wiki/Software/PolicyKit
Group:		System/Libraries
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/polkit-gnome/0.105/%{name}-%{version}.tar.xz
Source1:	polkit-gnome-authentication-agent-1.desktop.in
BuildRequires:	gtk-doc
BuildRequires:	gnome-common
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 0.6.2
BuildRequires:	pkgconfig(gtk+-3.0) >= 3.0.0
BuildRequires:	pkgconfig(polkit-agent-1) >= 0.97
BuildRequires:	pkgconfig(polkit-gobject-1) >= 0.97
Buildrequires:	intltool >= 0.35.0

Provides:	polkit-agent

Obsoletes:	%{_lib}polkit-gtk1_0 < 0.104
Obsoletes:	%{_lib}polkit-gtk1-devel < 0.104
Obsoletes:	%{_lib}polkitgtk-gir1.0 < 0.104
Obsoletes:	polkit-gnome-docs < 0.104

%description
polkit-gnome provides an authentication agent for PolicyKit
that matches the look and feel of the GNOME desktop.

%files -f polkit-gnome-1.lang
%doc COPYING AUTHORS README
%{_libexecdir}/polkit-gnome-authentication-agent-1
%config(noreplace) %{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop


%prep
%setup -q

%build
%configure \
	--disable-static
%make_build

%install
%make_install

install -D -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop

sed -i 's,@FULL_LIBEXECDIR@,%{_libexecdir},' %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop
desktop-file-validate %{buildroot}%{_sysconfdir}/xdg/autostart/polkit-gnome-authentication-agent-1.desktop

%find_lang polkit-gnome-1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15873 |21mr|polkit-kde-agent-1-kf5-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname polkit-kde-agent-1

Summary:	Plasma 5 PolicyKit authentication agent
Name:		%{oname}-kf5
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5crash-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(polkit-qt5-1)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Provides:	polkit-agent

%description
Plasma 5 PolicyKit authentication agent.

%files -f polkit-kde-authentication-agent-1.lang
%{_kde5_applicationsdir}/org.kde.polkit-kde-authentication-agent-1.desktop
%{_kde5_autostart}/polkit-kde-authentication-agent-1.desktop
%{_kde5_libexecdir}/polkit-kde-authentication-agent-1
%{_kde5_notificationsdir}/policykit1-kde.notifyrc
%{_userunitdir}/plasma-polkit-agent.service

#----------------------------------------------------------------------------

%prep
%setup -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang polkit-kde-authentication-agent-1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15874 |21mr|polkit-qt5-1-0.114.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1

Summary:	Library that allows developer to access PolicyKit-1 API
Name:		polkit-qt5-1
Version:	0.114.0
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/kdesupport/polkit-qt-1
Source0:	https://download.kde.org/stable/polkit-qt-1/polkit-qt-1-0.114.0.tar.xz
BuildRequires:	cmake
BuildRequires:	qmake5
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	qt5-devel

%description
Polkit-qt is a library that allows developer to access PolicyKit-1
API with a nice Qt-style API.

#-----------------------------------------------------------------------------
%define libpolkit_qt5_core_1 %mklibname polkit-qt5-core-1_ %{major}

%package -n %{libpolkit_qt5_core_1}
Summary:	Polkit-Qt core library
Group:		System/Libraries

%description -n %{libpolkit_qt5_core_1}
Polkit-Qt core library.

%files -n %{libpolkit_qt5_core_1}
%{_libdir}/libpolkit-qt5-core-1.so.%{major}*

#-----------------------------------------------------------------------------
%define libpolkit_qt5_gui_1 %mklibname polkit-qt5-gui-1_ %{major}

%package -n %{libpolkit_qt5_gui_1}
Summary:	Polkit-Qt core library
Group:		System/Libraries

%description -n %{libpolkit_qt5_gui_1}
Polkit-Qt core library.

%files -n %{libpolkit_qt5_gui_1}
%{_libdir}/libpolkit-qt5-gui-1.so.%{major}*

#-----------------------------------------------------------------------------
%define libpolkit_qt5_agent_1 %mklibname polkit-qt5-agent-1_ %{major}

%package -n %{libpolkit_qt5_agent_1}
Summary:	Polkit-Qt core library
Group:		System/Libraries

%description -n %{libpolkit_qt5_agent_1}
Polkit-Qt core library.

%files -n %{libpolkit_qt5_agent_1}
%{_libdir}/libpolkit-qt5-agent-1.so.%{major}*

#-----------------------------------------------------------------------------

%package devel
Summary:	Devel stuff for polkit-Qt
Group:		Development/KDE and Qt
Requires:	%{libpolkit_qt5_core_1} = %{EVRD}
Requires:	%{libpolkit_qt5_gui_1} = %{EVRD}
Requires:	%{libpolkit_qt5_agent_1} = %{EVRD}
Conflicts:	polkit-qt-1-devel

%description devel
This package contains header files needed if you wish to build applications
based on %{name}.

%files devel
%{_includedir}/polkit-qt5-1
%{_libdir}/libpolkit-qt5-agent-1.so
%{_libdir}/libpolkit-qt5-core-1.so
%{_libdir}/libpolkit-qt5-gui-1.so
%{_libdir}/pkgconfig/polkit-qt5-1.pc
%{_libdir}/pkgconfig/polkit-qt5-agent-1.pc
%{_libdir}/pkgconfig/polkit-qt5-core-1.pc
%{_libdir}/pkgconfig/polkit-qt5-gui-1.pc
%{_libdir}/cmake/PolkitQt5-1/*.cmake

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n polkit-qt-1-%{version}

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15875 |21mr|poly2tri-1.0-0.20130501.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date    20130501

%define major   1
%define minor   0
%define soname  %{major}.%{minor}
%define libname %mklibname %{name} %{soname}
%define devname %mklibname %{name} -d

Summary:	A 2D constrained Delaunay triangulation library
Name:		poly2tri
Version:	1.0
Release:	0.%{date}.7
License:	BSD
Group:		Development/Other
Url:		https://code.google.com/p/%{name}
# hg clone %%{url}
# rm -rf %%{name}/.hg
# tar -pczf %%{name}-%%{date}.tar.gz %%{name}
Source0:	%{name}-%{date}.tar.gz
# The Makefile was created for purposes of this package
# Upstream provides WAF, but it builds example apps and not the library
Source1:	%{name}-Makefile
BuildRequires:	pkgconfig(gl)

%description
Library based on the paper "Sweep-line algorithm for constrained Delaunay
triangulation" by V. Domiter and and B. Zalik.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A 2D constrained Delaunay triangulation library
Group:		System/Libraries

%description -n %{libname}
Library based on the paper "Sweep-line algorithm for constrained Delaunay
triangulation" by V. Domiter and and B. Zalik.

%files -n %{libname}
%doc AUTHORS LICENSE README
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc AUTHORS LICENSE README
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
cp %{SOURCE1} %{name}/Makefile

iconv -f iso8859-1 -t utf-8 AUTHORS > AUTHORS.conv && \
touch -r AUTHORS AUTHORS.conv && \
mv AUTHORS.conv AUTHORS

%build
CFLAGS="%{optflags}" %make -C %{name}

%install
install -Dpm0755 %{name}/lib%{name}.so.%{soname} %{buildroot}%{_libdir}/lib%{name}.so.%{soname}
ln -s lib%{name}.so.%{soname} %{buildroot}%{_libdir}/lib%{name}.so.%{major}
ln -s lib%{name}.so.%{soname} %{buildroot}%{_libdir}/lib%{name}.so

for H in %{name}/*/*.h %{name}/*.h; do
  install -Dpm0644 $H %{buildroot}%{_includedir}/$H
done

# Add a pkgconfig entry
cat > %{name}.pc << EOF
prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}

Name: %{name}
Description: A 2D constrained Delaunay triangulation library
Version: 1.0-%{date}

Requires:
Libs: -L\${libdir} -l%{name}
Cflags: -I\${includedir}/%{name}
EOF

install -D -m644 %{name}.pc %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15876 |21mr|poly2tri-c-0.1.0-0.20140215.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitdate 20140215

%define api 0.1
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Fast and powerful library for computing 2D constrained Delaunay triangulations
Name:		poly2tri-c
Version:	0.1.0
Release:	0.%{gitdate}.2
Group:		System/Libraries
License:	BSD 3-Clause License
Url:		http://code.google.com/p/poly2tri-c/
# git clone https://code.google.com/p/poly2tri-c/
Source0:	%{name}-%{version}.tar.xz
Patch0:		poly2tri-c-0.1.0-no-werror.patch
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(glib-2.0)

%description
This is a C port of the poly2tri library - a fast and powerful library for
computing 2D constrained Delaunay triangulations. Instead of the standard C++
library (which included some utilities and template-based data structures),
this port depends on GLib for it's data structures and some of it's utilities.

%files
%doc COPYING README
%{_bindir}/p2tc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast and powerful library for computing 2D constrained Delaunay triangulations
Group:		System/Libraries

%description -n %{libname}
This is a C port of the poly2tri library - a fast and powerful library for
computing 2D constrained Delaunay triangulations. Instead of the standard C++
library (which included some utilities and template-based data structures),
this port depends on GLib for it's data structures and some of it's utilities.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%{_libdir}/lib%{name}-%{api}.so
%{_includedir}/%{name}-%{api}/
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15877 |21mr|polyclipping-6.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The Clipper C++ crystallographic library already uses the name "clipper".
# The developer is fine with the choosen name.

# API monitoring
# http://upstream-tracker.org/versions/clipper.html

%define major   22
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:           polyclipping
Version:        6.4.2
Release:        1
Summary:        Polygon clipping library
Group:          Development/C++
License:        Boost
URL:            http://sourceforge.net/projects/polyclipping
Source0:        http://downloads.sourceforge.net/%{name}/clipper_ver%{version}.zip
BuildRequires:  cmake
BuildRequires:  dos2unix

%description
This library primarily performs the boolean clipping operations -
intersection, union, difference & xor - on 2D polygons. It also performs
polygon offsetting. The library handles complex (self-intersecting) polygons,
polygons with holes and polygons with overlapping co-linear edges.
Input polygons for clipping can use EvenOdd, NonZero, Positive and Negative
filling modes. The clipping code is based on the Vatti clipping algorithm,
and outperforms other clipping libraries.

%package -n     %{libname}
Summary:        %{summary}
Group:          System/Libraries
Provides:       %{name} = %{version}-%{release}


%description -n %{libname}
This library primarily performs the boolean clipping operations -
intersection, union, difference & xor - on 2D polygons. It also performs
polygon offsetting. The library handles complex (self-intersecting) polygons,
polygons with holes and polygons with overlapping co-linear edges.
Input polygons for clipping can use EvenOdd, NonZero, Positive and Negative
filling modes. The clipping code is based on the Vatti clipping algorithm,
and outperforms other clipping libraries.

%package -n     %{devname}
Summary:        Development files for %{name}
Group:          Development/C++
Requires:       %{libname} = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}


%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.


%prep
%setup -qc

# Delete binaries
find . \( -name "*.exe" -o -name "*.dll" \) -delete

# Correct line ends and encodings
find . -type f -exec dos2unix -k {} \;

for filename in perl/perl_readme.txt README; do
  iconv -f iso8859-1 -t utf-8 "${filename}" > "${filename}".conv && \
    touch -r "${filename}" "${filename}".conv && \
    mv "${filename}".conv "${filename}"
done

# Enable use_lines
sed -i 's|^//#define use_lines$|#define use_lines|' cpp/clipper.hpp

%build
pushd cpp
# Use VERSION argument so that it's added to the pkgconfig file
  %cmake -DVERSION=%{version}
  %make
popd


%install
%makeinstall_std -C cpp/build
# from Fedora, but I can't see any need for this
# Install agg header with corrected include statement
# sed -e 's/\.\.\/clipper\.hpp/clipper.hpp/' < cpp/build/cpp_agg/agg_conv_clipper.h > %%{buildroot}%%{_includedir}/%%{name}/agg_conv_clipper.h

mv -f %{buildroot}%{_datadir}/pkgconfig/ %{buildroot}%{_libdir}/

%files -n       %{libname}
%doc License.txt README
%{_libdir}/lib%{name}.so.%{major}*

%files -n       %{devname}
%{_includedir}/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15878 |21mr|poppler117-22.01.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname poppler

%define major		117
%define libname		%mklibname %{name}
%define devname		%mklibname -d %{name}

Summary:	PDF rendering library
Name:		poppler117
Version:	22.01.0
Release:	2
License:	GPLv2+
Group:		Office
Url:		https://poppler.freedesktop.org
Source0:	https://poppler.freedesktop.org/%{oname}-%{version}.tar.xz
Patch0:		poppler-0.84.0-non-c++.patch
BuildRequires:	boost-devel
BuildRequires:	curl-devel
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(nss)
BuildRequires:	tiff-devel
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	openjpeg2

%description
Poppler is a PDF rendering library based on the xpdf-3.0 code base.
Use for texlive.

#-----------------------------------------------------------------

%package -n %{libname}
Summary:	PDF rendering library
Group:		System/Libraries
Recommends:	poppler-data

%description -n %{libname}
Poppler is a PDF rendering library based on the xpdf-3.0 code base.

%files -n %{libname}
%{_libdir}/lib%{oname}.so.%{major}*

#-----------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Conflicts:	%{mklibname -d %{oname}}

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%{_libdir}/lib%{oname}.so
%dir %{_includedir}/%{oname}
%{_includedir}/%{oname}/config.h
%{_includedir}/%{oname}/[A-Z]*
%{_includedir}/%{oname}/fofi
%{_includedir}/%{oname}/goo
%{_includedir}/%{oname}/splash
%{_includedir}/%{oname}/%{oname}-config.h
%{_includedir}/%{oname}/%{oname}_private_export.h
%{_libdir}/pkgconfig/%{oname}.pc

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

find . -type f |xargs chmod 0644
chmod 0755 make-glib-api-docs

%build
export CPPFLAGS="-I%{_includedir}/freetype2"

sed -i -e '/CXX_STANDARD/iadd_definitions(-fno-lto)' CMakeLists.txt

%cmake	\
	-DENABLE_CMS=lcms2			\
	-DENABLE_DCTDECODER=libjpeg		\
	-DENABLE_LIBOPENJPEG=openjpeg2		\
	-DENABLE_UNSTABLE_API_ABI_HEADERS:BOOL=ON	\
	-DENABLE_XPDF_HEADERS:BOOL=ON		\
	-DSPLASH_CMYK:BOOL=ON			\
	-G Ninja

export LD_LIBRARY_PATH=$(pwd)
%ninja_build

%install
%ninja_install -C build

cp -a build/config.h %{buildroot}%{_includedir}/%{oname}/

# No need now
rm -rf %{buildroot}%{_bindir}
rm -rf %{buildroot}%{_includedir}/%{oname}/cpp
rm -rf %{buildroot}%{_libdir}/lib%{oname}-cpp.so*
rm -rf %{buildroot}%{_libdir}/pkgconfig/%{oname}-cpp.pc
rm -rf %{buildroot}%{_mandir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15879 |21mr|poppler-22.05.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with	bootstrap

%if !%{with bootstrap}
%bcond_without	qt5
%bcond_without	cairo
%bcond_without	gtk
%else
%bcond_with	qt5
%bcond_with	cairo
%bcond_with	gtk
%endif

%define major		121
%define glibmajor	8
%define qt5major	1
%define cppmajor	0
%define girmajor	0.18
%define libname		%mklibname %{name} %{major}
%define libnameglib	%mklibname %{name}-glib %{glibmajor}
%define libnameqt5	%mklibname %{name}-qt5- %{qt5major}
%define libnamecpp	%mklibname %{name}-cpp %{cppmajor}
%define girname		%mklibname %{name}-gir %{girmajor}
%define devname		%mklibname -d %{name}
%define devnameglib	%mklibname -d %{name}-glib
%define devnameqt5	%mklibname -d %{name}-qt5
%define devnamecpp	%mklibname -d %{name}-cpp

Summary:	PDF rendering library
Name:		poppler
Version:	22.05.0
Release:	7
License:	GPLv2+
Group:		Office
Url:		https://poppler.freedesktop.org
Source0:	https://poppler.freedesktop.org/%{name}-%{version}.tar.xz
Patch0:		poppler-0.84.0-non-c++.patch
# CVE-2022-38784 CVE-2021-30860 CVE-2022-38171
Patch1:		https://gitlab.freedesktop.org/poppler/poppler/-/commit/27354e9d9696ee2bc063910a6c9a6b27c5184a52.patch
# CVE-2023-34872
Patch2:		https://gitlab.freedesktop.org/poppler/poppler/-/commit/591235c8b6c65a2eee88991b9ae73490fd9afdfe.patch
BuildRequires:	boost-devel
BuildRequires:	curl-devel
BuildRequires:	gtk-doc
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
%if %{with cairo}
BuildRequires:	pkgconfig(cairo) >= 1.8.4
%endif
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fontconfig)
%if %{with gtk}
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(gdk-pixbuf-2.0)
BuildRequires:  pkgconfig(gtk+-3.0)
%endif
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(nss)
BuildRequires:	tiff-devel
%if %{with qt5}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	qmake5
BuildRequires:	pkgconfig(zlib)
%endif
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	openjpeg2

%description
Poppler is a PDF rendering library based on the xpdf-3.0 code base.

%files
%doc AUTHORS COPYING NEWS README*
%{_bindir}/*
%{_mandir}/man1/*

#-----------------------------------------------------------------

%package -n %{libname}
Summary:	PDF rendering library
Group:		System/Libraries
Conflicts:	%{_lib}poppler12
Recommends:	poppler-data

%description -n %{libname}
Poppler is a PDF rendering library based on the xpdf-3.0 code base.

%files -n %{libname}
%{_libdir}/libpoppler.so.%{major}*

#-----------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Provides:	lib%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
%if %{with gtk}
Requires:	%{girname} = %{EVRD}
%endif
Obsoletes:	%{libname}-devel < 0.20.2

%description -n %{devname}
Development files for %{name}

%files -n %{devname}
%{_libdir}/libpoppler.so
%dir %{_includedir}/poppler
%{_includedir}/poppler/config.h
%{_includedir}/poppler/[A-Z]*
%{_includedir}/poppler/fofi
%{_includedir}/poppler/goo
%{_includedir}/poppler/splash
%{_includedir}/poppler/poppler-config.h
%{_includedir}/poppler/poppler_private_export.h
%{_libdir}/pkgconfig/poppler.pc

#-----------------------------------------------------------------
%if %{with qt5}
%package  -n %{devnameqt5}
Summary:	Development files for %{name}-qt5
Group:		Development/C++
Provides:	lib%{name}-qt5-devel = %{EVRD}
Requires:	%{libnameqt5} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Obsoletes:	%{libnameqt5}-devel < 0.20.2

%description -n %{devnameqt5}
Development files for %{name}-qt5

%files -n %{devnameqt5}
%{_includedir}/poppler/qt5
%{_libdir}/pkgconfig/poppler-qt5.pc
%{_libdir}/libpoppler-qt5.so

#-----------------------------------------------------------------

%package -n %{libnameqt5}
Summary:	PDF rendering library - QT5 backend
Group:		System/Libraries

%description -n %{libnameqt5}
Poppler is a PDF rendering library based on the xpdf-3.0 code base.
This is the QT5 backend version.

%files -n %{libnameqt5}
%{_libdir}/libpoppler-qt5.so.%{qt5major}*
%endif
#-----------------------------------------------------------------

%package -n %{libnamecpp}
Summary:	PDF rendering library - C++ backend
Group:		System/Libraries

%description -n %{libnamecpp}
Poppler is a PDF rendering library based on the xpdf-3.0 code base.
This is the C++ backend version.

%files -n %{libnamecpp}
%{_libdir}/libpoppler-cpp.so.%{cppmajor}*

#-----------------------------------------------------------------

%if %{with gtk}
%package -n %{libnameglib}
Summary:	PDF rendering library - glib binding
Group:		System/Libraries
Conflicts:	%{libname} < %{EVRD}

%description -n %{libnameglib}
Poppler is a PDF rendering library based on the xpdf-3.0 code base.

%files -n %{libnameglib}
%{_libdir}/libpoppler-glib.so.%{glibmajor}*

#-----------------------------------------------------------------

%package -n %{devnameglib}
Summary:	Development files for %{name}'s glib binding
Group:		Development/C++
Provides:	lib%{name}-glib-devel = %{EVRD}
Requires:	%{girname} = %{EVRD}
Requires:	%{libnameglib} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Conflicts:	%{devname} < %{EVRD}
Obsoletes:	%{libnameglib}-devel < 0.20.2

%description -n %{devnameglib}
Development files for %{name}'s glib binding.

%files -n %{devnameglib}
%{_libdir}/libpoppler-glib.so
%{_libdir}/pkgconfig/poppler-glib.pc
%{_includedir}/poppler/glib

#-----------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}poppler25 < 0.20.0-1
Conflicts:	%{_lib}poppler19 < 0.18.4-3

%description -n %{girname}
GObject Introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Poppler-0.18.typelib
%{_datadir}/gir-1.0/Poppler-0.18.gir

# end of gtk
%endif

#-----------------------------------------------------------------

%package -n %{devnamecpp}
Summary:	Development files for %{name}-cpp
Group:		Development/C++
Provides:	lib%{name}-cpp-devel = %{EVRD}
Requires:	%{libnamecpp} = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{devnamecpp}
Development files for %{name}-cpp

%files -n %{devnamecpp}
%{_libdir}/libpoppler-cpp.so
%{_libdir}/pkgconfig/poppler-cpp.pc
%{_includedir}/poppler/cpp

#-----------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation

%description doc
Documentation for %{name}.

%files doc
# not persist in bootstap builds
%optional %{_datadir}/gtk-doc/html/poppler

#-----------------------------------------------------------------

%prep
%autosetup -p1

find . -type f |xargs chmod 0644
chmod 0755 make-glib-api-docs

%build
export CPPFLAGS="-I%{_includedir}/freetype2"
export PATH="%_libdir/qt5/bin:${PATH}"

sed -i -e '/CXX_STANDARD/iadd_definitions(-fno-lto)' CMakeLists.txt

%cmake \
        -DENABLE_XPDF_HEADERS:BOOL=ON \
        -DENABLE_UNSTABLE_API_ABI_HEADERS:BOOL=ON \
        -DQT_QMAKE_EXECUTABLE=%{_libdir}/qt5/bin/qmake \
%if %{with cairo}
        -DWITH_Cairo:BOOL=ON \
%endif
	-DENABLE_GTK_DOC:BOOL=ON \
        -DENABLE_GOBJECT_INTROSPECTION:BOOL=ON \
%if !%{with gtk}
        -DENABLE_GLIB:BOOL=ON \
%endif
        -DSPLASH_CMYK:BOOL=ON \
        -DENABLE_CMS=lcms2 \
        -DENABLE_DCTDECODER=libjpeg \
        -DENABLE_LIBOPENJPEG=openjpeg2 \
        -G Ninja

export LD_LIBRARY_PATH=$(pwd)
%ninja_build

%install
%ninja_install -C build

cp -a build/config.h %{buildroot}%{_includedir}/poppler/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15880 |21mr|poppler-data-0.4.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Encoding files for poppler
Name:		poppler-data
Version:	0.4.11
Release:	1
License:	Distributable
Group:		Development/X11
Url:		http://poppler.freedesktop.org
Source0:	http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
This package consists of encoding files for use with poppler.  The
encoding files are optional and poppler will automatically read them
if they are present.  When installed, the encoding files enables
poppler to correctly render CJK and Cyrillic properly.  While poppler
is licensed under the GPL, these encoding files are copyright Adobe
and licensed much more strictly, and thus distributed separately.

%files
%doc README
%license COPYING
%{_datadir}/poppler/

#---------------------------------------------------------------

%package devel
Summary:	Developer files for %{name}
Requires:	%{name} = %{EVRD}
Group:		Development/Other

%description devel
%{summary}.

%files devel
%license COPYING
%{_datadir}/pkgconfig/%{name}.pc

#---------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
%makeinstall_std datadir=%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15881 |21mr|poppler-data-0.4.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Encoding files for poppler
Name:		poppler-data
Version:	0.4.11
Release:	4
License:	Distributable
Group:		Development/X11
Url:		http://poppler.freedesktop.org
Source0:	http://poppler.freedesktop.org/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
This package consists of encoding files for use with poppler.  The
encoding files are optional and poppler will automatically read them
if they are present.  When installed, the encoding files enables
poppler to correctly render CJK and Cyrillic properly.  While poppler
is licensed under the GPL, these encoding files are copyright Adobe
and licensed much more strictly, and thus distributed separately.

%files
%doc README
%license COPYING
%{_datadir}/poppler/

#---------------------------------------------------------------

%package devel
Summary:	Developer files for %{name}
Requires:	%{name} = %{EVRD}
Group:		Development/Other

%description devel
%{summary}.

%files devel
%license COPYING
%{_datadir}/pkgconfig/%{name}.pc

#---------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
%makeinstall_std datadir=%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15882 |21mr|popt-1.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname %{name} -d

Summary:	C library for parsing command line parameters
Name:		popt
Version:	1.18
Release:	1
Epoch:		1
License:	MIT
Group:		System/Libraries
Url:		http://rpm5.org/files/popt/
Source0:    http://ftp.rpm.org/popt/releases/popt-1.x/popt-%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	gettext-devel

%description
Popt is a C library for parsing command line parameters. Popt was
heavily influenced by the getopt() and getopt_long() functions, but
it improves on them by allowing more powerful argument expansion.
Popt can parse arbitrary argv[] style arrays and automatically set
variables based on command line arguments. Popt allows command line
arguments to be aliased via configuration files and includes utility
functions for parsing arbitrary strings into argv[] arrays using
shell-like rules.

%package -n	%{libname}
Summary:	Main %{name} library
Group:		System/Libraries
Requires:	%{name}-data = %{EVRD}
Provides:	%{name} = %{EVRD}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with the %{name} library.

%package -n	%{devname}
Summary:	Development headers and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
This package contains the header files and libraries needed for
developing programs using the %{name} library.

%package	data
Summary:	Data files for %{name}
Group:		System/Libraries
BuildArch:	noarch

%description	data
This package contains popt data files like locales.

%prep
%autosetup -p1
autoheader
aclocal
automake -a
autoconf
autoreconf -fi

%build
CONFIGURE_TOP="$PWD"

mkdir -p system
pushd system
%configure \
	--disable-rpath \
	--enable-static
%make_build
popd

%install
%makeinstall_std -C system
mkdir -p %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/libpopt.so.%{major}* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libpopt.so.%{major}.* %{buildroot}%{_libdir}/libpopt.so

%find_lang %{name}

%files -n %{libname}
%doc README CHANGES
/%{_lib}/libpopt.so.%{major}*

%files -n %{devname}
%{_includedir}/popt.h
%{_libdir}/pkgconfig/popt.pc
%{_libdir}/libpopt.a
%{_libdir}/libpopt.so
%{_mandir}/man3/popt.3*

%files data -f %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15883 |21mr|portals-pom-1.3-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          portals-pom
Version:       1.3
Release:       20
Summary:       Apache Portals parent pom
License:       ASL 2.0
Url:           http://portals.apache.org/
# svn export http://svn.apache.org/repos/asf/portals/portals-pom/tags/portals-pom-1.3
# tar czf portals-pom-1.3-src-svn.tar.gz portals-pom-1.3
Source0:       %{name}-%{version}-src-svn.tar.gz
BuildRequires: maven-local
BuildRequires: maven-install-plugin
BuildRequires: maven-plugins-pom
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Portals is a collaborative software development project
dedicated to providing robust, full-featured, commercial-quality,
and freely available Portal related software on a wide variety of
platforms and programming languages. This project is managed in
cooperation with various individuals worldwide (both independent and
company-affiliated experts), who use the Internet to communicate, plan,
and develop Portal software and related documentation.

%prep
%setup -q

%pom_remove_plugin :ianal-maven-plugin

for d in LICENSE NOTICE ; do
  iconv -f iso8859-1 -t utf-8 $d > $d.conv && mv -f $d.conv $d
  sed -i 's/\r//' $d
done

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15884 |21mr|portaudio-19.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	cppmajor 0
%define	libname %mklibname portaudio %{major}
%define	devname %mklibname portaudio -d

%define	snapshot 20210406
%define	oversion 190700

Summary:	Cross platform audio I/O library
Name:		portaudio
Version:	19.7.0
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.portaudio.com/
Source0:	http://files.portaudio.com/archives/pa_stable_v%{oversion}_%{snapshot}.tgz
Patch0:		portaudio-19.7.0-fix-parallel-build.patch
# Add some extra API needed by audacity:
# https://audacity.googlecode.com/svn/audacity-src/trunk/lib-src/portmixer/portaudio.patch
Patch1:		portaudio-19.7.0-make-portmixer-work-with-audacity.patch
Patch2:		portaudio-19.7.0-fix-pkgconfig-file.patch
Patch3:		portaudio-19.7.0-no-date-in-doxygen-docs.patch
BuildRequires:	doxygen
BuildRequires:	alsa-oss-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(celt)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(samplerate)

%description
PortAudio is a free, cross platform, open-source, audio I/O library. It lets
you write simple audio programs in 'C' that will compile and run on many
platforms including Windows, Macintosh (8,9,X), Unix (OSS), SGI, and BeOS.
PortAudio is intended to promote the exchange of audio synthesis software
between developers on different platforms, and was recently selected as the
audio component of a larger PortMusic project that includes MIDI and sound
file support.

PortAudio provides a very simple API for recording and/or playing sound using
a simple callback function. Example programs are included that synthesize sine
waves and pink noise, perform fuzz distortion on a guitar, list available audio
devices, etc.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cross platform audio I/O library
Group:		System/Libraries
Provides:	libportaudio2 = %{EVRD}
# TODO: Make a proper sub-package for c++ bindings
Provides:	libportaudiocpp0 = %{EVRD}

%description -n %{libname}
PortAudio is a free, cross platform, open-source, audio I/O library. It lets
you write simple audio programs in 'C' that will compile and run on many
platforms including Windows, Macintosh (8,9,X), Unix (OSS), SGI, and BeOS.
PortAudio is intended to promote the exchange of audio synthesis software
between developers on different platforms, and was recently selected as the
audio component of a larger PortMusic project that includes MIDI and sound
file support.

PortAudio provides a very simple API for recording and/or playing sound using
a simple callback function. Example programs are included that synthesize sine
waves and pink noise, perform fuzz distortion on a guitar, list available audio
devices, etc.

%files -n %{libname}
%doc LICENSE.txt README.md
%{_libdir}/libportaudio.so.%{major}*
%{_libdir}/libportaudiocpp.so.%{cppmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the PortAudio library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n	%{devname}
PortAudio is a free, cross platform, open-source, audio I/O library. It lets
you write simple audio programs in 'C' that will compile and run on many
platforms including Windows, Macintosh (8,9,X), Unix (OSS), SGI, and BeOS.
PortAudio is intended to promote the exchange of audio synthesis software
between developers on different platforms, and was recently selected as the
audio component of a larger PortMusic project that includes MIDI and sound
file support.

PortAudio provides a very simple API for recording and/or playing sound using
a simple callback function. Example programs are included that synthesize sine
waves and pink noise, perform fuzz distortion on a guitar, list available audio
devices, etc.

This package contains development files for the PortAudio library.

%files -n %{devname}
%doc doc/html/*
%{_includedir}/*
%{_libdir}/libportaudio.so
%{_libdir}/libportaudiocpp.so
%{_libdir}/pkgconfig/%{name}-*.pc
%{_libdir}/pkgconfig/portaudiocpp.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%apply_patches

# Fix perms
find . -type d | xargs chmod 755
find . -type f | xargs chmod 644

# Strip away annoying ^M
find . -type f | xargs perl -p -i -e 's/\r//'


%build
autoreconf -vfi

# Fix cxx lib overlinking issue
pushd bindings/cpp
	autoreconf -vfi
popd

# Why does autoreconf drop the executable bit?
chmod +x configure bindings/cpp/configure 

%configure --disable-static \
	--enable-cxx \
	--with-alsa \
	--with-oss \
	--with-jack

%make

# Build html devel documentation
doxygen


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15885 |21mr|portlet-2.0-api-1.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global api_version 2.0
%global pkg_name portlet-api_%{api_version}_spec
Name:          portlet-2.0-api
Version:       1.0
Release:       18
Summary:       Java Portlet Specification V2.0
License:       ASL 2.0
Url:           http://portals.apache.org/
# svn export http://svn.apache.org/repos/asf/portals/portlet-spec/tags/portlet-api_2.0_spec-1.0 portlet-2.0-api-1.0
# tar czf portlet-2.0-api-1.0-src-svn.tar.gz portlet-2.0-api-1.0
Source0:       %{name}-%{version}-src-svn.tar.gz

BuildRequires: mvn(org.apache.portals:portals-pom:pom:)
BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Java Portlet API version 2.0 developed by the
Java Community Process JSR-286 Expert Group.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# cleanup
find . -name '*.class' -delete
find . -name '*.jar' -delete

for p in LICENSE NOTICE;do
  iconv -f iso8859-1 -t utf-8 ${p} > ${p}.conv && mv -f ${p}.conv ${p}
  sed -i 's/\r//' ${p}
done

# change apis version
sed -i "s|javax.servlet.http;version=2.4,*|javax.servlet.http;version=3.0,*|" pom.xml

# Force tomcat apis
%pom_remove_dep javax.servlet:servlet-api
%pom_add_dep org.apache.tomcat:tomcat-servlet-api::provided

%mvn_file :%{pkg_name} %{name}
%mvn_alias :%{pkg_name} javax.portlet:portlet-api

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15886 |21mr|portmidi-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
#undefine _find_debuginfo_dwz_opts

%define	major	2
%define	libname	%mklibname %{name} %{major}
%define	develname	%mklibname -d %{name}

Summary:	Real-time MIDI input/output, audio I/O library
Name:		portmidi
Epoch:		2
Version:	2.0.3
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/PortMidi/portmidi
Source0:	https://github.com/PortMidi/portmidi/archive/refs/tags/%{name}-%{version}.tar.gz
Patch0:		portmidi-2.0.3-disable-missing-test-program.patch
BuildRequires:	cmake >= 3.21
BuildRequires:	doxygen
BuildRequires:	pkgconfig(alsa)

%description
PortMidi -- real-time MIDI input/output. This package provides test
applications that utilize the shared portmidi and porttime libraries; among
them:
 * portmidi-latency;
 * portmidi-midithread;
 * portmidi-midithru;
 * portmidi-mm;
 * portmidi-sysex;
 * portmidi-testio;
 * portmidi-virttest.

%files
%doc CHANGELOG.txt license.txt
%{_bindir}/portmidi-fast
%{_bindir}/portmidi-fastrcv
%{_bindir}/portmidi-latency
%{_bindir}/portmidi-midiclock
%{_bindir}/portmidi-midithread
%{_bindir}/portmidi-midithru
%{_bindir}/portmidi-mm
%{_bindir}/portmidi-multivirtual
%{_bindir}/portmidi-recvvirtual
%{_bindir}/portmidi-sendvirtual
%{_bindir}/portmidi-sysex
%{_bindir}/portmidi-testio
%{_bindir}/portmidi-virttest
	
#-----------------------------------------------------------------------------
 
%package -n	%{libname}
Summary:	Real-time MIDI input/output, audio I/O library
Group:		System/Libraries
Conflicts:	%{_lib}portmidi-devel < %{EVRD}

%description -n	%{libname}
PortMidi -- real-time MIDI input/output.
This package provides the shared libraries portmidi and porttime.

%files -n %{libname}
%doc CHANGELOG.txt README.md license.txt portmusic_logo.png pm_linux/README_LINUX.txt
%{_libdir}/libportmidi.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for PortMidi
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}

%description -n	%{develname}
PortMidi -- real-time MIDI input/output.
This package provides the development libraries and headers for portmidi and
porttime.

%files -n %{develname}
%doc CHANGELOG.txt license.txt
%doc github-portmidi-portmidi_docs/docs/*
%{_includedir}/*.h
%{_libdir}/libportmidi.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/PortMidi/*.cmake

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%patch0 -p1

# Fix permissons issues:
find -name "*.c" -o -name "*.h" -exec chmod -x {} \;
chmod -x pm_linux/README_LINUX.txt

# Fix libdir in pkgconfig file template
sed -i 's|${prefix}\/lib|${prefixr}\/%{_lib}|g' packaging/%{name}.pc.in


%build
%cmake	-DCMAKE_CACHEFILE_DIR=`pwd`	\
			-DBUILD_JAVA_NATIVE_INTERFACE="OFF" \
			-DBUILD_PORTMIDI_TESTS="ON"

%make

# Make devel docs
doxygen ../Doxyfile


%install
%makeinstall_std -C build

install -d %{buildroot}%{_bindir}
pushd build/pm_test
	install -m0755 fast %{buildroot}%{_bindir}/portmidi-fast
	install -m0755 fastrcv %{buildroot}%{_bindir}/portmidi-fastrcv
	install -m0755 latency %{buildroot}%{_bindir}/portmidi-latency
	install -m0755 midiclock %{buildroot}%{_bindir}/portmidi-midiclock
	install -m0755 midithread %{buildroot}%{_bindir}/portmidi-midithread
	install -m0755 midithru %{buildroot}%{_bindir}/portmidi-midithru
	install -m0755 mm %{buildroot}%{_bindir}/portmidi-mm
	install -m0755 multivirtual %{buildroot}%{_bindir}/portmidi-multivirtual
	install -m0755 recvvirtual %{buildroot}%{_bindir}/portmidi-recvvirtual
	install -m0755 sendvirtual %{buildroot}%{_bindir}/portmidi-sendvirtual
	install -m0755 sysex %{buildroot}%{_bindir}/portmidi-sysex
	install -m0755 testio %{buildroot}%{_bindir}/portmidi-testio
	install -m0755 virttest %{buildroot}%{_bindir}/portmidi-virttest
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15887 |21mr|portmidi-217-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname	%mklibname %{name} %{major}
%define	develname %mklibname -d %{name}

Summary:	Real-time MIDI input/output, audio I/O library
Name:		portmidi
Epoch:		1
Version:	217
Release:	7
License:	GPLv2+
Group:		System/Libraries
Url:		http://portmedia.sourceforge.net
Source0:	http://downloads.sourceforge.net/portmedia/%{name}-src-%{version}.zip
Patch0:		%{name}-217-cmake-libdir-java-opts.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(alsa)

%description
PortMidi -- real-time MIDI input/output.
This package provides test applications that utilizes the shared portmidi and
porttime libraries.
 * %{_bindir}/portmidi-latency
 * %{_bindir}/portmidi-midithread
 * %{_bindir}/portmidi-midithru
 * %{_bindir}/portmidi-sysex
 * %{_bindir}/portmidi-test.

%files
%doc CHANGELOG.txt license.txt
%{_bindir}/portmidi-latency
%{_bindir}/portmidi-midithread
%{_bindir}/portmidi-midithru
%{_bindir}/portmidi-sysex
%{_bindir}/portmidi-test

#-----------------------------------------------------------------------------
 
%package -n	%{libname}
Summary:	Real-time MIDI input/output, audio I/O library
Group:		System/Libraries
Conflicts:	%{_lib}portmidi-devel < %{epoch}:%{version}

%description -n	%{libname}
PortMidi -- real-time MIDI input/output.
This package provides the shared libraries for portmidi and porttime.

%files -n %{libname}
%doc CHANGELOG.txt README.txt license.txt portmusic_logo.png pm_cl/* pm_linux/README_LINUX.txt
%{_libdir}/*.so

#-----------------------------------------------------------------------------

%package -n	%{develname}
Summary:	Development files for PortMidi
Group:		Development/C
Requires:	%{libname} = %{epoch}:%{version}-%{release}
Obsoletes:	%{name}-devel < %{epoch}:%{version}
Provides:	%{name}-devel = %{epoch}:%{version}-%{release}

%description -n	%{develname}
PortMidi -- real-time MIDI input/output.
This package provides the development libraries and headers for portmidi and
porttime.

%files -n %{develname}
%doc CHANGELOG.txt license.txt
%{_includedir}/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1 -b .java


%build
%define Werror_cflags %{nil}
%cmake -DPORTMIDI_ENABLE_JAVA=OFF -DCMAKE_CACHEFILE_DIR=`pwd`
%make


%install
%makeinstall_std -C build

install -d %{buildroot}%{_bindir}
pushd build/Release
install -m0755 latency %{buildroot}%{_bindir}/portmidi-latency
install -m0755 midithread %{buildroot}%{_bindir}/portmidi-midithread
install -m0755 midithru %{buildroot}%{_bindir}/portmidi-midithru
install -m0755 sysex %{buildroot}%{_bindir}/portmidi-sysex
install -m0755 test %{buildroot}%{_bindir}/portmidi-test
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15888 |21mr|portreserve-0.0.5-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	TCP port reservation utility
Name:		portreserve
Version:	0.0.5
Release:	13
License:	GPLv2+
Group:		System/Base
Url:		http://cyberelk.net/tim/portreserve/
Source0:	http://cyberelk.net/tim/data/portreserve/stable/%{name}-%{version}.tar.bz2
Source1:	http://cyberelk.net/tim/data/portreserve/stable/%{name}-%{version}.tar.bz2.sig
Source2:	portreserve.service
Patch0:		portreserve-pid-file.patch
Patch1:		portreserve-0.0.0-socket_dir.diff
Patch2:		portreserve-0.0.5-docbook-dtd45.patch
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	xmlto
Requires(preun,post):	rpm-helper

%description
The portreserve program aims to help services with well-known ports that lie in
the portmap range.  It prevents portmap from a real service's port by occupying
it itself, until the real service tells it to release the port (generally in
the init script).

%files
%doc AUTHORS COPYING ChangeLog NEWS README
%dir %attr(0711,root,root) %{_localstatedir}/lib/%{name}
%dir %attr(0711,root,root) %{_sysconfdir}/%{name}
%{_unitdir}/%{name}.service
%attr(0755,root,root) /sbin/*
%{_mandir}/man1/*

%preun
%_preun_service %{name}

%post
%_post_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

cp %{SOURCE2} portreserve-mandriva.init
autoreconf -i

%build
%configure \
	--sbindir=/sbin

%make

%install
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}%{_sysconfdir}/%{name}
install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -d %{buildroot}%{_mandir}/man1

%makeinstall_std
install -m644 %{SOURCE2} -D %{buildroot}%{_unitdir}/%{name}.service
install -m0644 doc/portrelease.1 %{buildroot}%{_mandir}/man1/
install -m0644 doc/portreserve.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15889 |21mr|poster-20060221-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PostScript Utilities
Name:		poster
Version:	20060221
Release:	2
License:	GPL
Group:		System/Printing
Source0:	ftp://ftp.kde.org/pub/kde/printing/poster.tar.bz2
Patch0:		poster-LDFLAGS.diff
Conflicts:	printer-utils = 2007
Conflicts:	printer-filters = 2007

%description
Poster can be used to create a large poster by building it from multiple pages
and/or printing it on large media. It expects as input a generic (encapsulated)
postscript file, normally printing on a single page. The output is again a
postscript file, maybe containing multiple pages together building the poster.
The output pages bear cutmarks and have slightly overlapping images for easier
assembling. The input picture will be scaled to obtain the desired size.

%prep

%autosetup -p0

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 poster %{buildroot}%{_bindir}/
install -m0644 poster.1 %{buildroot}%{_mandir}/man1/

%files
%defattr(644,root,root,755)
%doc COPYING ChangeLog README manual.ps
%attr(0755,root,root) %{_bindir}/poster
%attr(0644,root,root) %{_mandir}/man1/poster.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15890 |21mr|postfix-3.5.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define sendmail_command %{_sbindir}/sendmail.postfix

%define post_install_parameters	daemon_directory=%{_libexecdir}/postfix command_directory=%{_sbindir} queue_directory=%{queue_directory} sendmail_path=%{sendmail_command} newaliases_path=%{_bindir}/newaliases mailq_path=%{_bindir}/mailq mail_owner=postfix setgid_group=%{maildrop_group} manpage_directory=%{_mandir} readme_directory=%{_docdir}/%{name}/README_FILES html_directory=%{_docdir}/%{name}/html data_directory=/var/lib/postfix

# use bcond_with if default is disabled
# use bcond_without if default is enabled
# built
%bcond_without ldap
%bcond_without mysql
%bcond_without pgsql
%bcond_without sdbm
%bcond_without sqlite
%bcond_without pcre
%bcond_without sasl
%bcond_without tls
%bcond_without ipv6
%bcond_without cdb
%bcond_without chroot

# Postfix requires one exlusive uid/gid and a 2nd exclusive gid for its own use.
%define maildrop_group postdrop
%define queue_directory %{_var}/spool/postfix
%define postfix_shlib_dir %{_libdir}/postfix

# Macro: %%{dynmap_add_cmd <name> [<soname>] [-m]}
%define dynmap_add_cmd(m) FILE=%{_sysconfdir}/postfix/dynamicmaps.cf; if ! grep -q "^%{1}[[:space:]]" ${FILE}; then echo "%{1}	%{_libdir}/postfix/postfix-%{?2:%{2}}%{?!2:%{1}}.so	dict_%{1}_open%{-m:	mkmap_%{1}_open}" >> ${FILE}; fi;
%define dynmap_rm_cmd() FILE=%{_sysconfdir}/postfix/dynamicmaps.cf; if [ $1 = 0 -a -s $FILE ]; then  cp -p ${FILE} ${FILE}.$$; grep -v "^%{1}[[:space:]]" ${FILE}.$$ > ${FILE}; rm -f ${FILE}.$$; fi;

Summary:	Postfix Mail Transport Agent
Name:		postfix
Version:	3.5.25
Release:	1
Epoch:		1
License:	IBM Public License
Group:		System/Servers
Url:		http://www.postfix.org/
Source0:	ftp://ftp.porcupine.org/mirrors/postfix-release/official/%{name}-%{version}.tar.gz
Source2:	postfix-main.cf
Source4:	postfix-etc-pam.d-smtp
Source5:	postfix-aliases
Source6:	postfix-ip-up
Source7:	postfix-ip-down
Source8:	postfix-ifup-d
Source10:	postfix-README.MDK
Source11:	postfix-README.MDK.update
Source12:	postfix-bash-completion
Source13:	http://www.seaglass.com/postfix/faq.html
Source14:	postfix-chroot.sh
Source15:	postfix-smtpd.conf
# Simon J. Mudd stuff
Source21:	ftp://ftp.wl0.org/postfinger/postfinger-1.30
# Jim Seymour stuff
Source25:	http://jimsun.LinxNet.com/misc/postfix-anti-UCE.txt
Source26:	http://jimsun.LinxNet.com/misc/header_checks.txt
Source27:	http://jimsun.LinxNet.com/misc/body_checks.txt
# systemd integration
Source100:	postfix.service
Source101:	postfix.aliasesdb
Source102:	postfix-chroot-update
Patch1:		postfix-3.5.7-mdkconfig.diff
Patch2:		postfix-alternatives-mdk.patch
# dbupgrade patch patch split from dynamicmaps one
Patch3:		postfix-3.0.0-dbupgrade.diff
# sdbm patch patch split from dynamicmaps one
Patch4:		postfix-3.0.0-sdbm.patch
# Don't warn about symlinks being group- or other-writable
# (they always are)
Patch5:		postfix-3.1.2-dont-warn-about-symlinks.patch
# Shamelessy stolen from debian
Patch6:		postfix-2.2.4-smtpstone.patch
# Teach postfix about dovecot delivery
# (in most cases, using lmtp is preferable though...)
Patch7:		postfix-3.1.2-dovecot-delivery.patch
# Patches from Gentoo (where they came from FreeBSD/OpenBSD)
Patch9:		postfix-libressl-certkey.patch
Patch10:	postfix-libressl-server.patch
# add more system type for linux on kernel 6.1
Patch13:	postfix-linux-system-type.patch
# rediff from https://github.com/gentoo/libressl/blob/f8f62d49e32ad4163a4af551dca978afc24dd743/mail-mta/postfix/files/postfix-3.5.8-libressl.patch
Patch14:	postfix-3.5.8-libressl.patch
BuildRequires:	gawk
BuildRequires:	html2text
BuildRequires:	perl-base
BuildRequires:	pkgconfig
BuildRequires:	db-devel
BuildRequires:	pkgconfig(zlib)
%if %{with sasl}
BuildRequires:	sasl-devel >= 2.0
%endif
BuildRequires:	pkgconfig(icu-uc)
%if %{mdvver} > 201610
BuildRequires: pkgconfig(libnsl)
%endif
BuildRequires:	pkgconfig(libtirpc)
%if %{with tls}
# Using LibreSLS instead of OpenSSL here to enable GOST TLS
# By default Postfix enables all "HIGH" TLS Ciphers:
# $ postconf -d | grep HIGH
# <...>
# tls_medium_cipherlist = aNULL:-aNULL:HIGH:MEDIUM:+RC4:@STRENGTH
# And LibreSSL has GOST in the list of HIGH ciphers:
# $ libressl ciphers HIGH | grep GOST
# Note: upstream does not want to support LibreSSL
# http://postfix.1071664.n5.nabble.com/Postfix-3-2-snapshots-1227-amp-1231-td88067.html
# We take patches from BSDs/Gentoo
BuildRequires:	pkgconfig(libressl)
%endif
Requires:	coreutils
Requires:	diffutils
Requires:	gawk
Requires:	initscripts
Requires:	syslog-daemon
%if %{with tls}
Requires:	cert-sh-functions
# cert-sh-functions must exist before first start of postfix.service
Requires(post):	cert-sh-functions
%endif
Requires(pre,post,postun,preun):	rpm-helper
Requires(pre,post):	sed
Requires(post,preun):	update-alternatives
Requires(pre):	%{name}-config
Requires:	%{name}-config
Provides:	mail-server
Provides:	sendmail-command
# syslog-ng before this version needed a different chroot script,
# which was bug-prone
Conflicts:	syslog-ng < 3.1-0.beta2.2
%systemd_ordering

%description
Postfix is a Mail Transport Agent (MTA), supporting LDAP, SMTP AUTH (SASL),
TLS and running in a chroot environment.

Postfix is Wietse Venema's mailer that started life as an alternative
to the widely-used Sendmail program.

Postfix attempts to be fast, easy to administer, and secure, while at
the same time being sendmail compatible enough to not upset existing
users. Thus, the outside has a sendmail-ish flavor, but the inside is
completely different.

This software was formerly known as VMailer. It was released by the end
of 1998 as the IBM Secure Mailer. From then on it has lived on as Postfix.

PLEASE READ THE %{_defaultdocdir}/%{name}/README.MDK FILE.

%files
%doc AAAREADME
%doc US_PATENT_6321267
%doc examples/smtpd-policy
%doc COMPATIBILITY
%doc COPYRIGHT
%doc HISTORY
%doc LICENSE
%doc PORTING
%doc RELEASE_NOTES*
%doc IPv6-ChangeLog
%doc TLS_*
%doc DOC/html
%doc DOC/README_FILES
%doc README.MDK README.MDK.update
%doc postfix-users-faq.html
%doc UCE

%dir %{_sysconfdir}/postfix
%config(noreplace) %{_sysconfdir}/sasl2/smtpd.conf
%config(noreplace) %{_sysconfdir}/postfix/access
%config(noreplace) %{_sysconfdir}/postfix/aliases
%ghost %{_sysconfdir}/postfix/aliases.db
%config(noreplace) %{_sysconfdir}/postfix/canonical
%config(noreplace) %{_sysconfdir}/postfix/generic
%config(noreplace) %{_sysconfdir}/postfix/header_checks
%config(noreplace) %{_sysconfdir}/postfix/relocated
%config(noreplace) %{_sysconfdir}/postfix/transport
%config(noreplace) %{_sysconfdir}/postfix/virtual
%config(noreplace) %{_sysconfdir}/postfix/domains
%{_sysconfdir}/postfix/chroot-update
%{_sysconfdir}/postfix/aliasesdb
%{_sysconfdir}/postfix/makedefs.out
%dir %{_sysconfdir}/postfix/dynamicmaps.cf.d/
%config(noreplace) %{_sysconfdir}/postfix/dynamicmaps.cf
%attr(0644,root,root) %{_unitdir}/%{name}.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/pam.d/smtp
%attr(0755,root,root) %config(noreplace) %{_sysconfdir}/ppp/ip-up.d/postfix
%attr(0755,root,root) %config(noreplace) %{_sysconfdir}/ppp/ip-down.d/postfix
%attr(0755,root,root) %config(noreplace) %{_sysconfdir}/resolvconf/update-libc.d/postfix
%ghost %{_sysconfdir}/sysconfig/postfix

%dir %attr(0700,postfix,root) /var/lib/postfix

# For correct directory permissions check postfix-install script
%dir %{queue_directory}
%dir %attr(0700,postfix,root) %{queue_directory}/active
%dir %attr(0700,postfix,root) %{queue_directory}/bounce
%dir %attr(0700,postfix,root) %{queue_directory}/corrupt
%dir %attr(0700,postfix,root) %{queue_directory}/defer
%dir %attr(0700,postfix,root) %{queue_directory}/deferred
%dir %attr(0700,postfix,root) %{queue_directory}/flush
%dir %attr(0700,postfix,root) %{queue_directory}/hold
%dir %attr(0700,postfix,root) %{queue_directory}/incoming
%dir %attr(0700,postfix,root) %{queue_directory}/private
%dir %attr(0700,postfix,root) %{queue_directory}/trace
%dir %attr(0730,postfix,%{maildrop_group}) %{queue_directory}/maildrop
%dir %attr(0710,postfix,%{maildrop_group}) %{queue_directory}/public
%dir %attr(0755,root,root) %{queue_directory}/pid
%dir %attr(0755,root,root) %{queue_directory}/extern

%dir %{_libexecdir}/postfix
%dir %{_sysconfdir}/postfix/postfix-files.d/
%attr(0644,root,root) %{_sysconfdir}/postfix/postfix-files
%attr(0755,root,root) %{_libexecdir}/postfix/anvil
%attr(0755,root,root) %{_libexecdir}/postfix/bounce
%attr(0755,root,root) %{_libexecdir}/postfix/cleanup
%attr(0755,root,root) %{_libexecdir}/postfix/discard
%attr(0755,root,root) %{_libexecdir}/postfix/dnsblog
%attr(0755,root,root) %{_libexecdir}/postfix/error
%attr(0755,root,root) %{_libexecdir}/postfix/flush
%attr(0755,root,root) %{_libexecdir}/postfix/lmtp
%attr(0755,root,root) %{_libexecdir}/postfix/local
%attr(0755,root,root) %{_libexecdir}/postfix/master
%attr(0755,root,root) %{_libexecdir}/postfix/nqmgr
%attr(0755,root,root) %{_libexecdir}/postfix/oqmgr
%attr(0755,root,root) %{_libexecdir}/postfix/pickup
%attr(0755,root,root) %{_libexecdir}/postfix/pipe
%attr(0755,root,root) %{_libexecdir}/postfix/postlogd
%attr(0755,root,root) %{_libexecdir}/postfix/postfix-script
%attr(0755,root,root) %{_libexecdir}/postfix/postfix-tls-script
%attr(0755,root,root) %{_libexecdir}/postfix/postfix-wrapper
%attr(0755,root,root) %{_libexecdir}/postfix/post-install
%attr(0755,root,root) %{_libexecdir}/postfix/postmulti-script
%attr(0755,root,root) %{_libexecdir}/postfix/postscreen
%attr(0755,root,root) %{_libexecdir}/postfix/proxymap
%attr(0755,root,root) %{_libexecdir}/postfix/qmgr
%attr(0755,root,root) %{_libexecdir}/postfix/qmqpd
%attr(0755,root,root) %{_libexecdir}/postfix/scache
%attr(0755,root,root) %{_libexecdir}/postfix/showq
%attr(0755,root,root) %{_libexecdir}/postfix/smtp
%attr(0755,root,root) %{_libexecdir}/postfix/smtpd
%attr(0755,root,root) %{_libexecdir}/postfix/spawn
%attr(0755,root,root) %{_libexecdir}/postfix/tlsmgr
%attr(0755,root,root) %{_libexecdir}/postfix/tlsproxy
%attr(0755,root,root) %{_libexecdir}/postfix/trivial-rewrite
%attr(0755,root,root) %{_libexecdir}/postfix/verify
%attr(0755,root,root) %{_libexecdir}/postfix/virtual

%attr(0755,root,root) %{_sbindir}/postalias
%attr(0755,root,root) %{_sbindir}/postcat
%attr(0755,root,root) %{_sbindir}/postconf
%attr(2755,root,%{maildrop_group}) %{_sbindir}/postdrop
%attr(2755,root,%{maildrop_group}) %{_sbindir}/postqueue
%attr(0755,root,root) %{_sbindir}/postfix
%attr(0755,root,root) %{_sbindir}/postkick
%attr(0755,root,root) %{_sbindir}/postlock
%attr(0755,root,root) %{_sbindir}/postlog
%attr(0755,root,root) %{_sbindir}/postmap
%attr(0755,root,root) %{_sbindir}/postmulti
%attr(0755,root,root) %{_sbindir}/postsuper
%attr(0755,root,root) %{_sbindir}/qmqp-sink
%attr(0755,root,root) %{_sbindir}/qmqp-source
%attr(0755,root,root) %{_sbindir}/smtp-sink
%attr(0755,root,root) %{_sbindir}/smtp-source
%attr(0755,root,root) %{_sbindir}/postfinger
%attr(0755,root,root) %{_sbindir}/postfix-chroot.sh
%attr(0755,root,root) %{_sbindir}/qshape
%attr(0755,root,root) %{sendmail_command}
%attr(0755,root,root) %{_bindir}/mailq
%attr(0755,root,root) %{_bindir}/newaliases
%attr(0755,root,root) %{_bindir}/rmail
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*

%{_libdir}/postfix/libpostfix-dns.so
%{_libdir}/postfix/libpostfix-global.so
%{_libdir}/postfix/libpostfix-master.so
%{_libdir}/postfix/libpostfix-util.so
%{_libdir}/postfix/libpostfix-tls.so

%pre
%_pre_useradd postfix %{queue_directory} /bin/false
%_pre_groupadd %{maildrop_group} postfix
# disable chroot of spawn service in /etc/sysconfig/postfix, 
# but do it only once and only if user did not
# modify /etc/sysconfig/postfix manually
if grep -qs "^NEVER_CHROOT_PROGRAM='^(proxymap|local|pipe|virtual)$'$" /etc/sysconfig/postfix; then
	if ! grep -qs "^NEVER_CHROOT_PROGRAM='^(proxymap|local|pipe|virtual|spawn)$'$" /usr/sbin/postfix-chroot.sh; then
		perl -pi -e "s/^NEVER_CHROOT_PROGRAM=.*\$/NEVER_CHROOT_PROGRAM=\'^(proxymap|local|pipe|virtual|spawn)\\\$\'/" /etc/sysconfig/postfix
	fi
fi
# disable some unneeded and potentially harmful nss libraries in 
# /etc/sysconfig/postfix, but do it only once and only if user did not
# modify /etc/sysconfig/postfix manually
if grep -qs "^IGNORE_NSS_LIBS='^$'$" /etc/sysconfig/postfix; then
	if ! grep -qs "^IGNORE_NSS_LIBS='^(mdns.*|ldap|db|wins)$'$" /usr/sbin/postfix-chroot.sh; then
		perl -pi -e "s/^IGNORE_NSS_LIBS=.*\$/IGNORE_NSS_LIBS=\'^(mdns.*|ldap|db|wins)\\\$\'/" /etc/sysconfig/postfix
	fi
fi

%post
#ensure the db files are created
%{_sbindir}/postmap /etc/postfix/virtual
%{_sbindir}/postmap /etc/postfix/domains
%systemd_post %{name}.service

# we don't have these maps anymore as separate packages/plugins:
# cidr, tcp and sdbm (2007.0)
if [ "$1" -eq "2" ]; then
	sed -i "/^cidr/d;/^sdbm/d;/^tcp/d" %{_sysconfdir}/postfix/dynamicmaps.cf
fi

# upgrade configuration files if necessary
%{_sbindir}/postfix \
	set-permissions \
	upgrade-configuration \
	config_directory=%{_sysconfdir}/postfix \
	%post_install_parameters

# move previous sasl configuration files to new location if applicable
# have to go through many loops to prevent damaging user configuration
# this changed around 2007.0 so it should go away soon
saslpath=`postconf -h smtpd_sasl_path`
if [ "${saslpath}" != "${saslpath##*:}" -o "${saslpath}" != "${saslpath##*/usr/lib}" ]; then
	postconf -e smtpd_sasl_path=smtpd
fi

for old_smtpd_conf in /etc/postfix/sasl/smtpd.conf %{_libdir}/sasl2/smtpd.conf; do
	if [ -e ${old_smtpd_conf} ]; then
		if ! grep -qsve '^\(#.*\|[[:space:]]*\)$' /etc/sasl2/smtpd.conf; then
			# /etc/sasl2/smtpd.conf missing or just comments
			if [ -s /etc/sasl2/smtpd.conf ] && [ ! -e /etc/sasl2/smtpd.conf.rpmnew -o /etc/sasl2/smtpd.conf -nt /etc/sasl2/smtpd.conf.rpmnew ]; then
				mv /etc/sasl2/smtpd.conf /etc/sasl2/smtpd.conf.rpmnew
			fi
			mv ${old_smtpd_conf} /etc/sasl2/smtpd.conf
		else
			echo "warning: existing ${old_smtpd_conf} will be ignored"
		fi
	fi
done

if [ -e /etc/sysconfig/postfix ]; then
	%{_sbindir}/postfix-chroot.sh -q update
else
%if %{with chroot}
	%{_sbindir}/postfix-chroot.sh -q enable
%else
	%{_sbindir}/postfix-chroot.sh -q create_sysconfig
%endif
fi
%_post_service postfix

/usr/sbin/update-alternatives --install %{_sbindir}/sendmail sendmail-command %{sendmail_command} 30 --slave %{_prefix}/lib/sendmail sendmail-command-in_libdir %{sendmail_command}

%triggerin -- glibc setup nss_ldap nss_db nss_wins nss_mdns
# Generate chroot jails on the fly when needed things are installed/upgraded
%{_sbindir}/postfix-chroot.sh -q update

%preun
rmqueue() {
	[ $2 -gt 0 ] || return
	local i
	for i in 0 1 2 3 4 5 6 7 8 9 A B C D E F; do
		if [ -d $1/$i ]; then
			rmqueue $1/$i $(( $2 - 1 ))
			rm -f $1/$i/*
			rmdir $1/$i
		fi
	done
}

# selectively remove the queue directory structure
queue_directory_remove () {
# first remove the "queues"
local IFS=', '
for dir in `%{_sbindir}/postconf -h hash_queue_names`; do
	test -d $dir && rmqueue %{queue_directory}/$dir `%{_sbindir}/postconf -h hash_queue_depth`
done

# now remove the other directories
for dir in corrupt maildrop pid private public trace; do
	test -d $dir && /bin/rm -f $dir/*
done
}

%systemd_preun %{name}.service

if [ $1 = 0 ]; then
	# Clean up chroot environment and spool directory
	%{_sbindir}/postfix-chroot.sh -q remove
	cd %{queue_directory} && queue_directory_remove || true
fi

%postun
%_postun_userdel postfix
%_postun_groupdel %{maildrop_group}
if [ ! -e %{sendmail_command} ]; then
	/usr/sbin/update-alternatives --remove sendmail-command %{sendmail_command} 
fi
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%if %{with cdb}
%package cdb
Summary:	CDB map support for Postfix
Group:		System/Servers
BuildRequires:	pkgconfig(libcdb)
Requires:	%{name} = %{EVRD}

%description cdb
This package provides support for CDB maps in Postfix.

%files cdb
%attr(755,root,root) %{_libdir}/postfix/postfix-cdb.so

%post cdb
%dynmap_add_cmd cdb -m
%postun cdb
%dynmap_rm_cmd cdb
%endif

#----------------------------------------------------------------------------

%if %{with ldap}
%package ldap
Summary:	LDAP map support for Postfix
Group:		System/Servers
BuildRequires:	openldap-devel
Requires:	%{name} = %{EVRD}

%description ldap
This package provides support for LDAP maps in Postfix.

%files ldap
%attr(755,root,root) %{_libdir}/postfix/postfix-ldap.so

%post ldap
%dynmap_add_cmd ldap
%postun ldap
%dynmap_rm_cmd ldap
%endif

#----------------------------------------------------------------------------

%if %{with mysql}
%package mysql
Summary:	MYSQL map support for Postfix
Group:		System/Servers
BuildRequires:	pkgconfig(mariadb)
Requires:	%{name} = %{EVRD}

%description mysql
This package provides support for MYSQL maps in Postfix.

%files mysql
%attr(755,root,root) %{_libdir}/postfix/postfix-mysql.so

%post mysql
%dynmap_add_cmd mysql
%postun mysql
%dynmap_rm_cmd mysql
%endif

#----------------------------------------------------------------------------

%if %{with pcre}
%package pcre
Summary:	PCRE map support for Postfix
Group:		System/Servers
BuildRequires:	pkgconfig(libpcre)
Requires:	%{name} = %{EVRD}

%description pcre
This package provides support for PCRE (perl compatible regular expression)
maps in Postfix.

%files pcre
%attr(755,root,root) %{_libdir}/postfix/postfix-pcre.so

%post pcre
%dynmap_add_cmd pcre
%postun pcre
%dynmap_rm_cmd pcre
%endif

#----------------------------------------------------------------------------

%if %{with pgsql}
%package pgsql
Summary:	Postgres SQL map support for Postfix
Group:		System/Servers
BuildRequires:	postgresql-devel
Requires:	%{name} = %{EVRD}

%description pgsql
This package provides support for Postgres SQL maps in Postfix.

%files pgsql
%attr(755,root,root) %{_libdir}/postfix/postfix-pgsql.so

%post pgsql
%dynmap_add_cmd pgsql
%postun pgsql
%dynmap_rm_cmd pgsql
%endif

#----------------------------------------------------------------------------

%if %{with sdbm}
%package sdbm
Summary:	SDBM map support for Postfix
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description sdbm
This package provides support for SDBM maps in Postfix.

%files sdbm
%attr(755,root,root) %{_libdir}/postfix/postfix-sdbm.so

%post sdbm
%dynmap_add_cmd sdbm
%postun sdbm
%dynmap_rm_cmd sdbm
%endif

#----------------------------------------------------------------------------

%if %{with sqlite}
%package sqlite
Summary:	SQLite map support for Postfix
Group:		System/Servers
BuildRequires:	pkgconfig(sqlite3)
Requires:	%{name} = %{EVRD}

%description sqlite
This package provides support for SQLite maps in Postfix.

%files sqlite
%attr(755,root,root) %{_libdir}/postfix/postfix-sqlite.so

%post sqlite
%dynmap_add_cmd sqlite
%postun sqlite
%dynmap_rm_cmd sqlite
%endif

#----------------------------------------------------------------------------

%package config-standalone
Summary:	Default configuration files for running Postfix standalone
Provides:	%{name}-config = %{EVRD}
Conflicts:	%{name}-config-dovecot

%description config-standalone
Default configuration files for running Postfix standalone.

Use this config if you intend to run Postfix without dovecot.
Alternatively, install %{name}-config-dovecot for the
postfix/dovecot combo.

%files config-standalone
%config(noreplace) %{_sysconfdir}/postfix/main.cf
%{_sysconfdir}/postfix/main.cf.dist
%{_sysconfdir}/postfix/main.cf.default
%{_sysconfdir}/postfix/main.cf.proto
%{_sysconfdir}/postfix/bounce.cf.default
%config(noreplace) %{_sysconfdir}/postfix/master.cf
%attr(0644, root, root) %{_sysconfdir}/postfix/master.cf.proto

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# no backup files here, otherwise they get included in %%doc
find . -name \*.orig -exec rm {} \;

mkdir -p conf/dist
mv conf/main.cf conf/dist
cp %{SOURCE2} conf/main.cf

# Change DEF_SHLIB_DIR according to build host
sed -i \
's|^\(\s*#define\s\+DEF_SHLIB_DIR\s\+\)"/usr/lib/postfix"|\1"%{postfix_shlib_dir}"|' \
src/global/mail_params.h

# ugly hack for 32/64 arches
if [ %{_lib} != lib ]; then
	sed -i -e 's@^/usr/lib/@%{_libdir}/@' conf/postfix-files
	sed -i -e "s@/lib/@/%{_lib}/@g" conf/main.cf
fi

install -m644 %{SOURCE10} README.MDK
install -m644 %{SOURCE11} README.MDK.update
install -m644 %{SOURCE13} postfix-users-faq.html

mkdir UCE
install -m644 %{SOURCE25} UCE
install -m644 %{SOURCE26} UCE
install -m644 %{SOURCE27} UCE

%if %{with chroot}
cp -p conf/master.cf conf/master.cf.chroot
awk -v NEVER_CHROOT_PROGRAM='^(proxymap|local|pipe|virtual|spawn)$' \
	-v NEVER_CHROOT_SERVICE='^cyrus$' '
		BEGIN                   { IFS="[ \t]+"; OFS="\t"; }
		/^#/                    { print; next; }
		/^ /                    { print; next; }
		$1 ~ NEVER_CHROOT_SERVICE    { print; next; }
		$8 ~ NEVER_CHROOT_PROGRAM    { print; next; }
		$5 == "n"               { $5="y"; print $0; next; }
								{ print; }
	' conf/master.cf.chroot > conf/master.cf
%endif

# use sed to fix mantools/postlink for our non posix sed
#cp -p mantools/postlink mantools/postlink.posix
#sed -e 's/\[\[:<:\]\]/\\</g; s/\[\[:>:\]\]/\\>/g' mantools/postlink.posix > mantools/postlink
# XXX - andreas - original postlink with perl is segfaulting
cp -p mantools/postlink.sed mantools/postlink.posix
sed -e 's/\[\[:<:\]\]/\\</g; s/\[\[:>:\]\]/\\>/g' mantools/postlink.posix > mantools/postlink

%build
%serverbuild
# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`
RPM_OPT_FLAGS=`echo $RPM_OPT_FLAGS|sed -e 's|-fPIE||g'`

OPT="$RPM_OPT_FLAGS"
DEBUG=
CCARGS=
AUXLIBS="%{ldflags}"
AUXLIBS=`echo $AUXLIBS|sed -e 's|-fPIE||g'`

# the patch is mixed with SDBM support :(
  CCARGS="${CCARGS} -DHAS_SDBM -DHAS_DLOPEN"

%if %{with ldap}
  CCARGS="${CCARGS} -DHAS_LDAP"
  AUXLIBS_LDAP="-lldap -llber"
%endif
%if %{with pcre}
  CCARGS="${CCARGS} -DHAS_PCRE"
  AUXLIBS_PCRE="$(pcre-config --libs)"
%endif
%if %{with mysql}
  # libressl is here because mariadb depends from -lssl -lcrypto
  # which are otherwise not found by the linker
  CCARGS="${CCARGS} -DHAS_MYSQL $(pkg-config --cflags-only-I libressl) $(pkg-config --cflags-only-I mariadb)"
  AUXLIBS_MYSQL="$(pkg-config --libs-only-L libressl) $(pkg-config --libs mariadb)"
%endif
%if %{with pgsql}
  CCARGS="${CCARGS} -DHAS_PGSQL -I/usr/include/pgsql"
  AUXLIBS_PGSQL="$(pkg-config --libs libpq)"
%endif
%if %{with sqlite}
  CCARGS="${CCARGS} -DHAS_SQLITE `pkg-config --cflags sqlite3`"
  AUXLIBS_SQLITE="`pkg-config --libs sqlite3`"
%endif
%if %{with sasl}
  CCARGS="${CCARGS} -DUSE_SASL_AUTH -DUSE_CYRUS_SASL -I/usr/include/sasl"
  AUXLIBS="${AUXLIBS} -lsasl2"
%endif
%if ! %{with ipv6}
  CCARGS="${CCARGS} -DNO_IPV6"
%endif
%if %{with tls}
  # proto/TLS_README.html
  CCARGS="${CCARGS} -DUSE_TLS $(pkg-config --cflags-only-I libressl)"
  AUXLIBS="${AUXLIBS} $(pkg-config --libs-only-L libressl) -lssl -lcrypto"
%endif
%if %{with cdb}
  CCARGS="${CCARGS} -DHAS_CDB"
  AUXLIBS="${AUXLIBS} -lcdb"
%endif

export CCARGS AUXLIBS AUXLIBS_PCRE AUXLIBS_LDAP AUXLIBS_MYSQL AUXLIBS_PGSQL OPT DEBUG
make -f Makefile.init makefiles dynamicmaps=yes \
	shlib_directory="%{postfix_shlib_dir}" \
	SHLIB_RPATH="-Wl,-rpath,%{postfix_shlib_dir} %{ldflags}" \
	OPT="$RPM_OPT_FLAGS -fno-strict-aliasing -Wno-comment" \
	POSTFIX_INSTALL_OPTS=-keep-build-mtime

unset CCARGS AUXLIBS AUXLIBS_PCRE AUXLIBS_LDAP AUXLIBS_MYSQL AUXLIBS_PGSQL OPT DEBUG
make
make manpages

# generate main.cf.default here, since in make it will fail
cat > conf/main.cf.default << EOF
# DO NOT EDIT THIS FILE. EDIT THE MAIN.CF FILE INSTEAD. THE
# TEXT HERE JUST SHOWS DEFAULT SETTINGS BUILT INTO POSTFIX.
#
EOF
LD_LIBRARY_PATH=$PWD/lib${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH} \
	./src/postconf/postconf -d | \
	egrep -v '^(myhostname|mydomain|mynetworks) ' >> conf/main.cf.default

# add correct parameters to main.cf.dist
LD_LIBRARY_PATH=$PWD/lib${LD_LIBRARY_PATH:+:}${LD_LIBRARY_PATH} \
	./src/postconf/postconf -c ./conf/dist -e \
	%post_install_parameters
mv conf/dist/main.cf conf/main.cf.dist

%install
# install postfix into the build root
LD_LIBRARY_PATH=$PWD/lib${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH} \
make non-interactive-package \
	install_root=%{buildroot} \
	shlib_directory=%{postfix_shlib_dir} \
	config_directory=%{_sysconfdir}/postfix \
	%post_install_parameters \
	|| exit 1

mkdir -p %{buildroot}/var/lib/postfix

mkdir -p %{buildroot}%{_sysconfdir}/postfix/dynamicmaps.cf.d
mkdir -p %{buildroot}%{_sysconfdir}/postfix/postfix-files.d

# rpm %%doc macro wants to take his files in buildroot
rm -fr DOC
mkdir DOC
mv %{buildroot}%{_docdir}/%{name}/html DOC/html
mv %{buildroot}%{_docdir}/%{name}/README_FILES DOC/README_FILES

# for sasl configuration
mkdir -p %{buildroot}%{_sysconfdir}/sasl2
cp %{SOURCE15} %{buildroot}%{_sysconfdir}/sasl2/smtpd.conf

mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -c %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/smtp

mkdir -p %{buildroot}%{_sysconfdir}/ppp/ip-{up,down}.d
install -c %{SOURCE6} %{buildroot}%{_sysconfdir}/ppp/ip-up.d/postfix
install -c %{SOURCE7} %{buildroot}%{_sysconfdir}/ppp/ip-down.d/postfix

mkdir -p %{buildroot}%{_sysconfdir}/resolvconf/update-libc.d/
install -c %{SOURCE8} %{buildroot}%{_sysconfdir}/resolvconf/update-libc.d/postfix

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
touch %{buildroot}%{_sysconfdir}/sysconfig/postfix

# this is used by some examples (cyrus)
mkdir -p %{buildroot}%{queue_directory}/extern

install -c auxiliary/rmail/rmail %{buildroot}%{_bindir}/rmail

# copy new aliases files and generate a ghost aliases.db file
cp -f %{SOURCE5} %{buildroot}%{_sysconfdir}/postfix/aliases
chmod 644 %{buildroot}%{_sysconfdir}/postfix/aliases
touch %{buildroot}%{_sysconfdir}/postfix/aliases.db

touch %{buildroot}%{_sysconfdir}/postfix/domains

# install chroot script and postfinger
install -m 0755 %{SOURCE14} %{buildroot}%{_sbindir}/postfix-chroot.sh
install -m 0755 %{SOURCE21} %{buildroot}%{_sbindir}/postfinger

# install qshape
install -m755 auxiliary/qshape/qshape.pl %{buildroot}%{_sbindir}/qshape
cp man/man1/qshape.1 %{buildroot}%{_mandir}/man1/qshape.1

# systemd
mkdir -p %{buildroot}%{_unitdir}
install -c -m 644 %{SOURCE100} %{buildroot}%{_unitdir}
install -m 755 %{SOURCE101} %{buildroot}%{_sysconfdir}/postfix/aliasesdb
install -m 755 %{SOURCE102} %{buildroot}%{_sysconfdir}/postfix/chroot-update
%if !%{with tls}
sed -i -e '/cert-sh generate/d' %{buildroot}%{_unitdir}/postfix.service
%endif

# RPM compresses man pages automatically.
# - Edit postfix-files to reflect this, so post-install won't get confused
#   when called during package installation.
sed -i -e "s@\(/man[158]/.*\.[158]\):@\1%{_extension}:@" %{buildroot}%{_sysconfdir}/postfix/postfix-files

# remove files that are not in the main package
sed -i -e "/\/postfix-.*\.so/d" %{buildroot}%{_sysconfdir}/postfix/postfix-files

# install the base configuration file
echo -e "# dict-type\tso-name (pathname)\tdict-function\tmkmap-function" > %{buildroot}%{_sysconfdir}/postfix/dynamicmaps.cf

# remove sample_directory from main.cf (#15297)
# the default is /etc/postfix
sed -i -e "/^sample_directory/d" %{buildroot}%{_sysconfdir}/postfix/main.cf

%check
# Check that it was linked with LibreSSL (and built with TLS support)
readelf -a "%{buildroot}%{_libdir}/postfix/libpostfix-tls.so" | grep NEEDED | grep libcrypto.so.%{libressl_libcrypto_sover}
for i in lmtp smtp tlsmgr
do
  readelf -a "%{buildroot}%{_libexecdir}/postfix/${i}" | grep NEEDED | grep libcrypto.so.%{libressl_libcrypto_sover}
done
# Ensure that our assumption that GOST ciphers are "HIGH" ones (see the comment near BuildRequires) keeps to be true
libressl ciphers HIGH | grep GOST

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15891 |21mr|postgresql-12.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude devel\\(libtcl)

%define major 5
%define major_ecpg 6
%define libname %mklibname pq %{major}
%define libecpg %mklibname ecpg %{major_ecpg}

%define majorver %(echo %{version} | cut -d. -f1)
%define minorver %(echo %{version} | cut -d. -f2)

%bcond_without uuid

Summary:	PostgreSQL client programs and libraries
Name:		postgresql
Version:	12.20
Release:	1
Epoch:		1
License:	BSD
Group:		Databases
Url:		http://www.postgresql.org/
Source0:	https://ftp.postgresql.org/pub/source/v%{version}/%{name}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Source10:	postgres.profile
Source11:	%{name}.service
Source12:	%{name}.tmpfiles.d
Source14:	%{name}_initdb.sh
Patch0:		postgresql-9.6.2-ossp-uuid-dir.patch
Patch1:		e2k-spinlock.patch
# CVE-2024-0985 fixed
# CVE-2024-7348 fixed
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	perl-devel
BuildRequires:	readline-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(openssl)
%if %{with uuid}
BuildRequires:	pkgconfig(ossp-uuid)
%endif
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(zlib)
# Need to build doc
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-dtd42-sgml
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-utils
BuildRequires:	openjade
BuildRequires:	xmlto
BuildRequires:	xsltproc
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-clients = %{EVRD}

%description
PostgreSQL is an advanced Object-Relational database management system (DBMS)
that supports almost all SQL constructs (including transactions, subselects and
user-defined types and functions). The postgresql package includes the client
programs and libraries that you'll need to access a PostgreSQL DBMS server.
These PostgreSQL client programs are programs that directly manipulate the
internal structure of PostgreSQL databases on a PostgreSQL server. These client
programs can be located on the same machine with the PostgreSQL server, or may
be on a remote machine which accesses a PostgreSQL server over a network
connection. This package contains the client libraries for C and C++, as well
as command-line utilities for managing PostgreSQL databases on a PostgreSQL
server.

If you want to manipulate a PostgreSQL database on a remote PostgreSQL server,
you need this package. You also need to install this package if you're
installing the postgresql-server package.

%files -f main.lst
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES
%doc README HISTORY
%license COPYRIGHT
%{_bindir}/clusterdb
%{_bindir}/createdb
%{_bindir}/createuser
%{_bindir}/dropdb
%{_bindir}/dropuser
%{_bindir}/pg_basebackup
%{_bindir}/pg_dump
%{_bindir}/pg_dumpall
%{_bindir}/pg_isready
%{_bindir}/pg_restore
%{_bindir}/pg_rewind
%{_bindir}/pg_test_fsync
%{_bindir}/pg_test_timing
%{_bindir}/psql
%{_bindir}/reindexdb
%{_bindir}/vacuumdb
%{_mandir}/man1/clusterdb.*
%{_mandir}/man1/createdb.*
%{_mandir}/man1/createuser.*
%{_mandir}/man1/dropdb.*
%{_mandir}/man1/dropuser.*
%{_mandir}/man1/pg_basebackup.*
%{_mandir}/man1/pg_dump.*
%{_mandir}/man1/pg_dumpall.*
%{_mandir}/man1/pg_isready.1*
%{_mandir}/man1/pg_restore.1*
%{_mandir}/man1/pg_rewind.1*
%{_mandir}/man1/pg_test_fsync.1*
%{_mandir}/man1/pg_test_timing.1*
%{_mandir}/man1/psql.*
%{_mandir}/man1/reindexdb.*
%{_mandir}/man1/vacuumdb.*
%{_mandir}/man7/*
%{_rpmmacrodir}/*%{name}*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The shared libraries required for any PostgreSQL clients
Group:		System/Libraries
Provides:	%{name}-libs = %{EVRD}
%rename	%{_lib}pq9.0_5

%description -n %{libname}
C and C++ libraries to enable user programs to communicate with the PostgreSQL
database backend. The backend can be on another machine and accessed through
TCP/IP.

%files -n %{libname} -f %{libname}.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/libpq.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libecpg}
Summary:	Shared library libecpg for PostgreSQL
Group:		System/Libraries
Conflicts:	%{_lib}ecpg5
%rename	%{_lib}ecpg9.0_6

%description -n %{libecpg}
Libecpg is used by programs built with ecpg (Embedded PostgreSQL for C) Use
postgresql-dev to develop such programs.

%files -n %{libecpg} -f %{libecpg}.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/libecpg_compat.so.*
%{_libdir}/libecpg.so.%{major_ecpg}*
%{_libdir}/libpgtypes.so.*

#----------------------------------------------------------------------------

%package server
Summary:	The programs needed to create and run a PostgreSQL server
Group:		Databases
Provides:	%{name}-server = %{EVRD}
# the client bins are needed for upgrading
Requires:	%{name} >= %{EVRD}
Requires:	%{name}-plpgsql >= %{EVRD}
# add/remove services
Requires(post,preun):	rpm-helper
# add/del user
Requires(pre,postun):	rpm-helper
Requires(post,preun):	update-alternatives

%description server
The postgresql-server package includes the programs needed to create and run a
PostgreSQL server, which will in turn allow you to create and maintain
PostgreSQL databases.  PostgreSQL is an advanced Object-Relational database
management system (DBMS) that supports almost all SQL constructs (including
transactions, subselects and user-defined types and functions). You should
install postgresql-server if you want to create and maintain your own
PostgreSQL databases and/or your own PostgreSQL server. You also need to
install the postgresql and postgresql-devel packages.

%files server -f server.lst
%doc README HISTORY
%license COPYRIGHT
%attr(644,postgres,postgres) %config(noreplace) %{_localstatedir}/lib/pgsql/.bashrc
%attr(700,postgres,postgres) %dir %{_localstatedir}/lib/pgsql
%attr(700,postgres,postgres) %dir %{_localstatedir}/lib/pgsql/backups
%attr(700,postgres,postgres) %dir /var/log/postgres
%attr(-,postgres,postgres) %{_localstatedir}/lib/pgsql/data
%attr(-,postgres,postgres) %{_localstatedir}/lib/pgsql/.profile
%{_bindir}/initdb
%{_bindir}/pg_archivecleanup
%{_bindir}/pg_checksums
%{_bindir}/pg_controldata
%{_bindir}/pg_ctl
%{_bindir}/pg_receivewal
%{_bindir}/pg_resetwal
%{_bindir}/pg_standby
%{_bindir}/pg_upgrade
%{_bindir}/postgres
%{_bindir}/postmaster
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_datadir}/%{name}/errcodes.txt
%{_datadir}/%{name}/extension/*
%{_datadir}/%{name}/information_schema.sql
%{_datadir}/%{name}/postgres.bki
%{_datadir}/%{name}/postgres.description
%{_datadir}/%{name}/postgres.shdescription
%{_datadir}/%{name}/*.sample
%{_datadir}/%{name}/snowball_create.sql
%{_datadir}/%{name}/sql_features.txt
%{_datadir}/%{name}/system_views.sql
%{_datadir}/%{name}/timezone
%{_datadir}/%{name}/timezonesets/Africa.txt
%{_datadir}/%{name}/timezonesets/America.txt
%{_datadir}/%{name}/timezonesets/Antarctica.txt
%{_datadir}/%{name}/timezonesets/Asia.txt
%{_datadir}/%{name}/timezonesets/Atlantic.txt
%{_datadir}/%{name}/timezonesets/Australia
%{_datadir}/%{name}/timezonesets/Australia.txt
%{_datadir}/%{name}/timezonesets/Default
%{_datadir}/%{name}/timezonesets/Etc.txt
%{_datadir}/%{name}/timezonesets/Europe.txt
%{_datadir}/%{name}/timezonesets/India
%{_datadir}/%{name}/timezonesets/Indian.txt
%{_datadir}/%{name}/timezonesets/Pacific.txt
%{_datadir}/%{name}/tsearch_data
%{_defaultdocdir}/%{name}/extension/*.example
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/extension
%dir %{_datadir}/%{name}/timezonesets
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*_and_*.so
%{_libdir}/%{name}/auth_delay.so
%{_libdir}/%{name}/auto_explain.so
%{_libdir}/%{name}/btree_gin.so
%{_libdir}/%{name}/citext.so
%{_libdir}/%{name}/dict_int.so
%{_libdir}/%{name}/dict_snowball.so
%{_libdir}/%{name}/dict_xsyn.so
%{_libdir}/%{name}/euc2004_sjis2004.so
%{_libdir}/%{name}/file_fdw.so
%{_libdir}/%{name}_initdb.sh
%{_libdir}/%{name}/libpqwalreceiver.so
%{_libdir}/%{name}/passwordcheck.so
%{_libdir}/%{name}/pgoutput.so
%{_libdir}/%{name}/pg_stat_statements.so
%{_libdir}/%{name}/pgxml.so
%{_libdir}/%{name}/sepgsql.so
%{_libdir}/%{name}/unaccent.so
%if %{with uuid}
%{_libdir}/%{name}/uuid-ossp.so
%endif
%{_mandir}/man1/initdb.1*
%{_mandir}/man1/pg_archivecleanup.1*
%{_mandir}/man1/pg_checksums.1*
%{_mandir}/man1/pg_controldata.*
%{_mandir}/man1/pg_ctl.1*
%{_mandir}/man1/pg_receivewal.1*
%{_mandir}/man1/pg_resetwal.*
%{_mandir}/man1/pg_standby.1*
%{_mandir}/man1/pg_upgrade.1*
%{_mandir}/man1/postgres.1*
%{_mandir}/man1/postmaster.1*
%{_sysconfdir}/logrotate.d/%{name}
%{_tmpfilesdir}/%{name}%{majorver}.conf
%{_unitdir}/%{name}%{majorver}.service

%pre server
%_pre_useradd postgres %{_localstatedir}/lib/pgsql /bin/bash
# if upgrade

[ ! -f %{_localstatedir}/lib/pgsql/data/PG_VERSION ] && exit 0
mypgversion=`cat %{_localstatedir}/lib/pgsql/data/PG_VERSION`
[ $mypgversion = %{majorver} ] && exit 0

echo ""
echo "You currently have database tree for Postgresql $mypgversion"
echo "You must use postgresql${mypgversion}-server"
echo "To update you Postgresql server, dump your databases"
echo "delete /var/lib/pgsql/data/ content, upgrade the server, then"
echo "restore your databases from your backup"
echo ""

exit 1

%posttrans server
%_post_service %{name}%{majorver}
%tmpfiles_create %{name}%{majorver}.conf

%preun server
%_preun_service %{name}%{majorver}

%postun server
%_postun_userdel postgres

#----------------------------------------------------------------------------

%package docs
Summary:	Extra documentation for PostgreSQL
Group:		Documentation

%description docs
The postgresql-docs package includes the SGML source for the documentation as
well as the documentation in other formats, and some extra documentation.
Install this package if you want to help with the PostgreSQL documentation
project, or if you want to generate printed documentation.

%files docs
%doc %{_docdir}/%{name}-docs-%{version}

#----------------------------------------------------------------------------

%package contrib
Summary:	Contributed binaries distributed with PostgreSQL
Group:		Databases

%description contrib
The postgresql-contrib package includes the contrib tree distributed with the
PostgreSQL tarball. Selected contrib modules are prebuilt.

%files contrib -f contrib.lst
%doc README HISTORY
%license COPYRIGHT
%{_bindir}/oid2name
%{_bindir}/pgbench
%{_bindir}/pg_recvlogical
%{_bindir}/pg_waldump
%{_bindir}/vacuumlo
%{_datadir}/%{name}/contrib/sepgsql.sql
%{_libdir}/%{name}/adminpack.so
%{_libdir}/%{name}/amcheck.so
%{_libdir}/%{name}/autoinc.so
%{_libdir}/%{name}/bloom.so
%{_libdir}/%{name}/btree_gist.so
%{_libdir}/%{name}/cube.so
%{_libdir}/%{name}/dblink.so
%{_libdir}/%{name}/earthdistance.so
%{_libdir}/%{name}/fuzzystrmatch.so
%{_libdir}/%{name}/hstore.so
%{_libdir}/%{name}/insert_username.so
%{_libdir}/%{name}/_int.so
%{_libdir}/%{name}/isn.so
%{_libdir}/%{name}/lo.so
%{_libdir}/%{name}/ltree.so
%{_libdir}/%{name}/moddatetime.so
%{_libdir}/%{name}/pageinspect.so
%{_libdir}/%{name}/pg_buffercache.so
%{_libdir}/%{name}/pgcrypto.so
%{_libdir}/%{name}/pg_freespacemap.so
%{_libdir}/%{name}/pg_prewarm.so
%{_libdir}/%{name}/pgrowlocks.so
%{_libdir}/%{name}/pgstattuple.so
%{_libdir}/%{name}/pg_trgm.so
%{_libdir}/%{name}/pg_visibility.so
%{_libdir}/%{name}/postgres_fdw.so
%{_libdir}/%{name}/refint.so
%{_libdir}/%{name}/seg.so
%{_libdir}/%{name}/sslinfo.so
%{_libdir}/%{name}/tablefunc.so
%{_libdir}/%{name}/tcn.so
%{_libdir}/%{name}/test_decoding.so
%{_libdir}/%{name}/tsm_system_rows.so
%{_libdir}/%{name}/tsm_system_time.so
%{_mandir}/man1/oid2name.1*
%{_mandir}/man1/pgbench.1*
%{_mandir}/man1/pg_recvlogical.1*
%{_mandir}/man1/pg_waldump.1*
%{_mandir}/man1/vacuumlo.1*

#----------------------------------------------------------------------------

%package devel
Summary:	PostgreSQL development header files and libraries
Group:		Development/Databases
Requires:	%{libname} = %{EVRD}
Requires:	%{libecpg} = %{EVRD}

%description devel
The postgresql-devel package contains the header files and libraries needed to
compile C or C++ applications which will directly interact with a PostgreSQL
database management server and the ecpg Embedded C Postgres preprocessor. You
need to install this package if you want to develop applications which will
interact with a PostgreSQL server. If you're installing postgresql-server, you
need to install this package.

%files devel -f devel.lst
%doc README HISTORY
%license COPYRIGHT
%{_bindir}/ecpg
%{_bindir}/pg_config
%{_includedir}/*
%{_libdir}/libecpg_compat.so
%{_libdir}/libecpg.so
%{_libdir}/libpgtypes.so
%{_libdir}/libpq.so
%{_libdir}/%{name}/pgxs/
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man1/ecpg.1*
%{_mandir}/man1/pg_config.1*
%{_mandir}/man3/dblink*.3*
%{_mandir}/man3/SPI_*.3*

#----------------------------------------------------------------------------

%package pl
Summary:	Procedurals languages for PostgreSQL
Group:		Databases
Provides:	%{name}-pl = %{EVRD}
Requires:	%{name}-plpython >= %{EVRD}
Requires:	%{name}-plperl >= %{EVRD}
Requires:	%{name}-pltcl >= %{EVRD}
Requires:	%{name}-plpgsql >= %{EVRD}

%description pl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-pl will install the the PL/Perl, PL/Tcl, and PL/Python procedural
languages for the backend. PL/Pgsql is part of the core server package.

%files pl
%doc COPYRIGHT
# metapkg

#----------------------------------------------------------------------------

%package plpython
Summary:	The PL/Python procedural language for PostgreSQL
Group:		Databases

%description plpython
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plpython package contains the the PL/Python procedural languages for
the backend. PL/Python is part of the core server package.

%files plpython -f plpython.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{name}/*python*.so

#----------------------------------------------------------------------------

%package plperl
Summary:	The PL/Perl procedural language for PostgreSQL
Group:		Databases

%description plperl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plperl package contains the the PL/Perl procedural languages for the
backend. PL/Perl is part of the core server package.

%files plperl -f plperl.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{name}/*perl.so

#----------------------------------------------------------------------------

%package pltcl
Summary:	The PL/Tcl procedural language for PostgreSQL
Group:		Databases

%description pltcl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-pltcl package contains the the PL/Tcl procedural languages for the
backend. PL/Tcl is part of the core server package.

%files pltcl -f pltcl.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{name}/pltcl.so

#----------------------------------------------------------------------------

%package plpgsql
Summary:	The PL/PgSQL procedural language for PostgreSQL
Group:		Databases

%description plpgsql
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plpgsql package contains the the PL/PgSQL procedural languages for
the backend. PL/PgSQL is part of the core server package.

%files plpgsql -f plpgsql.lst
%doc README HISTORY
%license COPYRIGHT
%{_libdir}/%{name}/plpgsql.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%serverbuild
# it does not work with -fPIE and someone added that to the serverbuild macro...
CFLAGS=`echo $CFLAGS|sed -e 's|-fPIE||g'`
CXXFLAGS=`echo $CXXFLAGS|sed -e 's|-fPIE||g'`

%configure	\
	--disable-rpath		\
	--enable-nls		\
	--libdir=%{_libdir}	\
	--libexecdir=%{_libexecdir}		\
	--mandir=%{_mandir}	\
	--prefix=%{_prefix}	\
	--sysconfdir=%{_sysconfdir}/pgsql	\
	--with-gssapi		\
	--with-icu		\
	--with-ldap		\
	--with-libxml		\
	--with-libxslt		\
	--with-openssl		\
%if %{with uuid}
	--with-ossp-uuid	\
%endif
	--with-pam		\
	--with-perl		\
	--with-python		\
	--with-selinux		\
	--with-systemd		\
	--with-tcl		\
	--with-tclconfig=%{_libdir}

# nuke -Wl,--no-undefined
perl -pi -e "s|-Wl,--no-undefined||g" src/Makefile.global

%if %{with uuid}
# bork...
echo "#define HAVE_OSSP_UUID_H 1" >> src/include/pg_config.h
%endif

%make world

pushd src/test
%make all
popd

%check
cp -f %{buildroot}%{_localedir}/ru/LC_MESSAGES/pg_reset{wal,xlog}-%{majorver}.mo
make check || :
rm -f %{buildroot}%{_localedir}/ru/LC_MESSAGES/pg_resetxlog-%{majorver}.mo

%install
make DESTDIR=%{buildroot} install-world install-docs

# install odbcinst.ini
mkdir -p %{buildroot}%{_sysconfdir}/pgsql

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -d -m 700 %{buildroot}%{_localstatedir}/lib/pgsql/data

# backups of data go here...
install -d -m 700 %{buildroot}%{_localstatedir}/lib/pgsql/backups

# Create the multiple postmaster startup directory
install -d -m 700 %{buildroot}/etc/sysconfig/pgsql

# install systemd units
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}%{majorver}.service
sed -i "s|/usr/libexec|%{_libdir}|" %{buildroot}%{_unitdir}/%{name}%{majorver}.service

# Create the directory for sockets.
install -d -m 755 %{buildroot}/var/run/%{name}

# ... and make a tmpfiles script to recreate it at reboot.
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE12} %{buildroot}%{_tmpfilesdir}/%{name}%{majorver}.conf

# install helper script for env initialisation
install -m 755 %{SOURCE14} %{buildroot}%{_libdir}

mkdir -p %{buildroot}/var/log/postgres

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
/var/log/postgres/%{name} {
    notifempty
    missingok
    copytruncate
}
EOF

mv %{buildroot}%{_docdir}/%{name}/html %{buildroot}%{_docdir}/%{name}-docs-%{version}

echo -n "" > %{libname}.lst
echo -n "" > %{libecpg}.lst
echo -n "" > server.lst
echo -n "" > main.lst
echo -n "" > contrib.lst
echo -n "" > devel.lst
echo -n "" > plperl.lst
echo -n "" > plpython.lst
echo -n "" > pltcl.lst
echo -n "" > plpgsql.lst

# libs
%find_lang libpq%{major}-%{majorver}
cat libpq%{major}-%{majorver}.lang >> %{libname}.lst
%find_lang ecpglib%{major_ecpg}-%{majorver}
cat ecpglib%{major_ecpg}-%{majorver}.lang >> %{libecpg}.lst

# server
%find_lang initdb-%{majorver}
cat initdb-%{majorver}.lang >> server.lst
%find_lang pg_archivecleanup-%{majorver}
cat pg_archivecleanup-%{majorver}.lang >> server.lst
%find_lang pg_basebackup-%{majorver}
cat pg_basebackup-%{majorver}.lang >> server.lst
%find_lang pg_controldata-%{majorver}
cat pg_controldata-%{majorver}.lang >> server.lst
%find_lang pg_ctl-%{majorver}
cat pg_ctl-%{majorver}.lang >> server.lst
%find_lang pg_resetwal-%{majorver}
cat pg_resetwal-%{majorver}.lang >> server.lst
%find_lang pg_upgrade-%{majorver}
cat pg_upgrade-%{majorver}.lang >> server.lst
%find_lang pg_checksums-%{majorver}
cat pg_checksums-%{majorver}.lang >> server.lst
%find_lang postgres-%{majorver}
cat postgres-%{majorver}.lang >> server.lst

# main
%find_lang pg_config-%{majorver}
cat pg_config-%{majorver}.lang >> main.lst
%find_lang pg_dump-%{majorver}
cat pg_dump-%{majorver}.lang >> main.lst
%find_lang pg_rewind-%{majorver}
cat pg_rewind-%{majorver}.lang >> main.lst
%find_lang pg_test_fsync-%{majorver}
cat pg_test_fsync-%{majorver}.lang >> main.lst
%find_lang pg_test_timing-%{majorver}
cat pg_test_timing-%{majorver}.lang >> main.lst
%find_lang pgscripts-%{majorver}
cat pgscripts-%{majorver}.lang >> main.lst
%find_lang psql-%{majorver}
cat psql-%{majorver}.lang >>main.lst

#contrib
%find_lang pg_waldump-%{majorver}
cat pg_waldump-%{majorver}.lang >>contrib.lst

# devel
%find_lang ecpg-%{majorver}
cat ecpg-%{majorver}.lang >> devel.lst

# perl
%find_lang plperl-%{majorver}
cat plperl-%{majorver}.lang >> plperl.lst

# python
%find_lang plpython-%{majorver}
cat plpython-%{majorver}.lang >> plpython.lst

# tcl
%find_lang pltcl-%{majorver}
cat pltcl-%{majorver}.lang >> pltcl.lst

# plpgsql
%find_lang plpgsql-%{majorver}
cat plpgsql-%{majorver}.lang >> plpgsql.lst

# taken directly in build dir.
rm -fr %{buildroot}%{_datadir}/doc/%{name}/contrib/

cat > macro <<EOF
%%postgresql_version %{version}
%%postgresql_major   %{majorver}
%%postgresql_minor   %{minorver}
%%pgmodules_req Requires: %{?arch_tagged:%{arch_tagged} %{name}-server-ABI}%{?!arch_tagged:%{name}-server-ABI} >= %{majorver}
EOF

%install_macro %{name} macro

# postgres' .profile and .bashrc
install -D -m 700 %{SOURCE10} %{buildroot}%{_localstatedir}/lib/pgsql/.profile
(
cd %{buildroot}%{_localstatedir}/lib/pgsql/
ln -s .profile .bashrc
)

cat > %{buildroot}%{_sysconfdir}/sysconfig/%{name} <<EOF
# Olivier Thauvin <nanardon@mandriva.org>

# The database location:
# You probably won't change this
PGDATA=%{_localstatedir}/lib/pgsql/data

# What is the based locales for postgresql
# Setting locales to C allow to use any encoding
# ISO or UTF, any other choice will restrict you
# either ISO or UTF.
LC_ALL=UTF-8

# These are additional to pass to pg_ctl when starting/restarting postgresql.
# PGOPTIONS=
EOF

# cleanup
find %{buildroot} -type f -name "*.a" -exec rm -f {} ';'


### CVE's
# fixed CVE-2023-5868
# fixed CVE-2023-5869
# fixed CVE-2023-5870
# version 2.17 -----^

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15892 |21mr|postgresql16-16.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude devel\\(libtcl)|pkgconfig\\(libecpg|libecpg_compat|libpgtypes|libpq|libecpg.so(.*)
%global __provides_exclude devel\\(libtcl)|pkgconfig\\(libecpg|libecpg_compat|libpgtypes|libpq|libecpg.so(.*)

%define major 5
%define major_ecpg 6
%define libname %mklibname pq %{major}
%define libecpg %mklibname ecpg-private%{branch}%{?with_1c:-1C-} %{major_ecpg}

%define branch 16
%define majorver %(echo %{version} | cut -d. -f1)
%define minorver %(echo %{version} | cut -d. -f2)

%bcond_without system_timezone
%bcond_without uuid
%bcond_with alt_ver

%ifarch %{x86_64} aarch64
%bcond_without llvm
%else
%bcond_with llvm
%endif

%global RealName postgresql

%global oname %{RealName}%{branch}
%global bindir %{_libexecdir}/%{name}
%global libdir %{_libdir}/%{name}
%global datadir %{_datadir}/%{name}
%global mandir %{_datadir}/%{name}/man
%global includedir %{_includedir}/%{name}
%global pgdatadir /var/lib/%{name}
# exists only as a home directory of user and as in docs
# https://www.postgresql.org/docs/current/storage-file-layout.html
%global pgdatadir_universal /var/lib/pgsql

%bcond_with	man_gen
%global		man_list %include %{SOURCE5}

%bcond_with 1c
# %%postun of removed package is run after %%post of installed package,
# do not break alternatives on 'dnf swap postgresqlX postgresqlX-1C'
%if %{with 1c}
%global alternatives_priority %{branch}1
%else
%global alternatives_priority %{branch}0
%endif

%if %{with llvm}
%if %{mdvver} >= 202310
%global llvm_req llvm-devel clang
%global llvm_prefix /usr
%else
%global llvm_req llvm17
%global llvm_prefix /opt/llvm17
%endif
%endif

Summary:	PostgreSQL %{branch} database
Name:		%{oname}%{?with_1c:-1C}
Version:	%{branch}.4
Release:	1
License:	BSD
Group:		Databases
Url:		http://www.postgresql.org/
Source0:	https://ftp.postgresql.org/pub/source/v%{version}/%{RealName}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Source2:	%{oname}_man3_files
Source3:	%{oname}_man7_files
Source5:	generate_man_list
Source10:	postgres.profile
Source11:	postgresql.service
Source12:	postgresql.tmpfiles.d
Source14:	postgresql_initdb.sh
Patch0:		postgresql-14.2-ossp-uuid-dir.patch
Patch1:		e2k-spinlock.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	perl-devel
BuildRequires:	readline-devel
BuildRequires:	perl(ExtUtils::Embed)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl)
%if %{with uuid}
BuildRequires:	pkgconfig(ossp-uuid)
%endif
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(zlib)
# Need to build doc
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-dtd42-sgml
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-utils
BuildRequires:	openjade
BuildRequires:	xmlto
BuildRequires:	xsltproc
%if %{with llvm}
BuildRequires:	%{llvm_req}
%endif

%description
PostgreSQL %{branch} database

#----------------------------------------------------------------------------

%package client
Summary:	Client programs of PostgreSQL %{branch}
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
#Obsoletes:	%{RealName} < %{EVRD}
#Obsoletes:	%{_lib}pq5 < %{EVRD}
Provides:	%{name}-clients = %{EVRD}
Provides:	%{RealName}-clients = %{EVRD}
Provides:	%{name} = %{EVRD}
Provides:	%{RealName} = %{EVRD}

%description client
PostgreSQL is an advanced Object-Relational database management system (DBMS)
that supports almost all SQL constructs (including transactions, subselects and
user-defined types and functions). The postgresql package includes the client
programs and libraries that you'll need to access a PostgreSQL DBMS server.
These PostgreSQL client programs are programs that directly manipulate the
internal structure of PostgreSQL databases on a PostgreSQL server. These client
programs can be located on the same machine with the PostgreSQL server, or may
be on a remote machine which accesses a PostgreSQL server over a network
connection. This package contains the client libraries for C and C++, as well
as command-line utilities for managing PostgreSQL databases on a PostgreSQL
server.

If you want to manipulate a PostgreSQL database on a remote PostgreSQL server,
you need this package. You also need to install this package if you're
installing the postgresql-server package.

%files client -f main.lst -f %{libname}.lst
%doc doc/KNOWN_BUGS doc/MISSING_FEATURES
%doc README HISTORY
%license COPYRIGHT
%{bindir}/clusterdb
%{bindir}/createdb
%{bindir}/createuser
%{bindir}/dropdb
%{bindir}/dropuser
%{bindir}/pg_basebackup
%{bindir}/pg_dump
%{bindir}/pg_dumpall
%{bindir}/pg_isready
%{bindir}/pg_restore
%{bindir}/pg_rewind
%{bindir}/pg_test_fsync
%{bindir}/pg_test_timing
%{bindir}/psql
%{bindir}/reindexdb
%{bindir}/vacuumdb
%{bindir}/pg_verifybackup
%ghost %{_bindir}/clusterdb
%ghost %{_bindir}/createdb
%ghost %{_bindir}/createuser
%ghost %{_bindir}/dropdb
%ghost %{_bindir}/dropuser
%ghost %{_bindir}/pg_basebackup
%ghost %{_bindir}/pg_dump
%ghost %{_bindir}/pg_dumpall
%ghost %{_bindir}/pg_isready
%ghost %{_bindir}/pg_restore
%ghost %{_bindir}/pg_rewind
%ghost %{_bindir}/pg_test_fsync
%ghost %{_bindir}/pg_test_timing
%ghost %{_bindir}/psql
%ghost %{_bindir}/reindexdb
%ghost %{_bindir}/vacuumdb
%ghost %{_bindir}/pg_verifybackup
# XXX where to own this directory?
%dir %{libdir}
%{libdir}/libpq.so.%{major}*
%{mandir}/man1/clusterdb.*
%{mandir}/man1/createdb.*
%{mandir}/man1/createuser.*
%{mandir}/man1/dropdb.*
%{mandir}/man1/dropuser.*
%{mandir}/man1/pg_basebackup.*
%{mandir}/man1/pg_dump.*
%{mandir}/man1/pg_dumpall.*
%{mandir}/man1/pg_isready.1*
%{mandir}/man1/pg_restore.1*
%{mandir}/man1/pg_rewind.1*
%{mandir}/man1/pg_test_fsync.1*
%{mandir}/man1/pg_test_timing.1*
%{mandir}/man1/psql.*
%{mandir}/man1/reindexdb.*
%{mandir}/man1/vacuumdb.*
%{mandir}/man1/pg_verifybackup.1.*
%{mandir}/man7/*.xz

%post client
%{_sbindir}/update-alternatives --install %{_bindir}/psql psql %{bindir}/psql %{alternatives_priority} \
	--slave %{_bindir}/clusterdb clusterdb %{bindir}/clusterdb	\
	--slave %{_bindir}/createdb createdb %{bindir}/createdb		\
	--slave %{_bindir}/createuser createuser %{bindir}/createuser	\
	--slave %{_bindir}/dropdb dropdb %{bindir}/dropdb		\
	--slave %{_bindir}/dropuser dropuser %{bindir}/dropuser		\
	--slave %{_bindir}/pg_basebackup pg_basebackup %{bindir}/pg_basebackup	\
	--slave %{_bindir}/pg_dump pg_dump %{bindir}/pg_dump			\
	--slave %{_bindir}/pg_dumpall pg_dumpall %{bindir}/pg_dumpall		\
	--slave %{_bindir}/pg_isready pg_isready %{bindir}/pg_isready		\
	--slave %{_bindir}/pg_restore pg_restore %{bindir}/pg_restore		\
	--slave %{_bindir}/pg_rewind pg_rewind %{bindir}/pg_rewind		\
	--slave %{_bindir}/pg_test_fsync pg_test_fsync %{bindir}/pg_test_fsync	\
	--slave %{_bindir}/pg_test_timing pg_test_timing %{bindir}/pg_test_timing	\
	--slave %{_bindir}/reindexdb reindexdb %{bindir}/reindexdb		\
	--slave %{_bindir}/pg_verifybackup pg_verifybackup %{bindir}/pg_verifybackup	\
	--slave %{_mandir}/man1/pg_verifybackup.1.xz pg_verifybackup.1.xz %{mandir}/man1/pg_verifybackup.1.xz	\
	--slave %{_bindir}/vacuumdb vacuumdb %{bindir}/vacuumdb		\
	--slave %{_mandir}/man1/clusterdb.1.xz clusterdb.1.xz %{mandir}/man1/clusterdb.1.xz	\
	--slave %{_mandir}/man1/createdb.1.xz createdb.xz %{mandir}/man1/createdb.1.xz		\
	--slave %{_mandir}/man1/createuser.1.xz createuser.1.xz	%{mandir}/man1/createuser.1.xz	\
	--slave %{_mandir}/man1/dropdb.1.xz dropdb.1.xz %{mandir}/man1/dropdb.1.xz		\
	--slave %{_mandir}/man1/dropuser.1.xz dropuser.1.xz %{mandir}/man1/dropuser.1.xz	\
	--slave %{_mandir}/man1/pg_basebackup.1.xz pg_basebackup.1.xz %{mandir}/man1/pg_basebackup.1.xz	\
	--slave %{_mandir}/man1/pg_dump.1.xz pg_dump.1.xz %{mandir}/man1/pg_dump.1.xz		\
	--slave %{_mandir}/man1/pg_dumpall.1.xz pg_dumpall.1.xz	%{mandir}/man1/pg_dumpall.1.xz	\
	--slave %{_mandir}/man1/pg_isready.1.xz pg_isready.1.xz %{mandir}/man1/pg_isready.1.xz	\
	--slave %{_mandir}/man1/pg_restore.1.xz pg_restore.1.xz	%{mandir}/man1/pg_restore.1.xz	\
	--slave %{_mandir}/man1/pg_rewind.1.xz pg_rewind.1.xz %{mandir}/man1/pg_rewind.1.xz	\
	--slave %{_mandir}/man1/pg_test_fsync.1.xz pg_test_fsync.1.xz %{mandir}/man1/pg_test_fsync.1.xz	\
	--slave %{_mandir}/man1/pg_test_timing.1.xz pg_test_timing.1.xz %{mandir}/man1/pg_test_timing.1.xz	\
	--slave %{_mandir}/man1/psql.1.xz psql.1.xz %{mandir}/man1/psql.1.xz			\
	--slave %{_mandir}/man1/reindexdb.1.xz reindexdb.1.xz %{mandir}/man1/reindexdb.1.xz	\
	--slave %{_mandir}/man1/vacuumdb.1.xz vacuumdb.1.xz %{mandir}/man1/vacuumdb.1.xz	\
	%include %{SOURCE3}

%postun client
if [ $1 -eq 0 ] ; then
	%{_sbindir}/update-alternatives --remove psql %{bindir}/psql
fi

#----------------------------------------------------------------------------

%package -n %{libecpg}
Summary:	Shared library libecpg for PostgreSQL
Group:		System/Libraries

%description -n %{libecpg}
Libecpg is used by programs built with ecpg (Embedded PostgreSQL for C) Use
postgresql-dev to develop such programs.

%files -n %{libecpg} -f %{libecpg}.lst
%doc README HISTORY
%license COPYRIGHT
%{libdir}/libecpg_compat.so.*
%{libdir}/libecpg.so.%{major_ecpg}*
%{libdir}/libpgtypes.so.*

#----------------------------------------------------------------------------

%package server
Summary:	The programs needed to create and run a PostgreSQL server
Group:		Databases
Provides:	%{name}-server = %{EVRD}
# the client bins are needed for upgrading
Requires:	%{name}-client = %{EVRD}
Requires:	%{name}-plpgsql = %{EVRD}
%if %{with system_timezone}
Requires:	timezone
%endif
%if %{with 1c}
# 1C patch adds files into contrib directory
Requires:	%{name}-contrib = %{EVRD}
%endif
Requires(pre):	rpm-helper
Requires(post):	%{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives
#Obsoletes:	%{RealName}-server < %{EVRD}

%description server
The postgresql-server package includes the programs needed to create and run a
PostgreSQL server, which will in turn allow you to create and maintain
PostgreSQL databases.  PostgreSQL is an advanced Object-Relational database
management system (DBMS) that supports almost all SQL constructs (including
transactions, subselects and user-defined types and functions). You should
install postgresql-server if you want to create and maintain your own
PostgreSQL databases and/or your own PostgreSQL server. You also need to
install the postgresql and postgresql-devel packages.

%files server -f server.lst
%doc README HISTORY
%license COPYRIGHT
%attr(700,postgres,postgres) %dir %{pgdatadir}
%attr(700,postgres,postgres) %dir %{pgdatadir}/backups
%attr(700,postgres,postgres) %dir /var/log/postgres
%attr(-,postgres,postgres) %{pgdatadir}/data
%attr(644,postgres,postgres) %{pgdatadir}/.profile
# .bashrc is symlink to .profile
%config(noreplace) %{pgdatadir}/.bashrc
%ghost %{pgdatadir_universal}

%{bindir}/%{RealName}_initdb.sh
%{bindir}/initdb
%{bindir}/pg_archivecleanup
%{bindir}/pg_checksums
%{bindir}/pg_controldata
%{bindir}/pg_ctl
%{bindir}/pg_receivewal
%{bindir}/pg_resetwal
%{bindir}/pg_upgrade
%{bindir}/postgres
%ghost %{_bindir}/initdb
%ghost %{_bindir}/pg_archivecleanup
%ghost %{_bindir}/pg_checksums
%ghost %{_bindir}/pg_controldata
%ghost %{_bindir}/pg_ctl
%ghost %{_bindir}/pg_receivewal
%ghost %{_bindir}/pg_resetwal
%ghost %{_bindir}/pg_upgrade
%ghost %{_bindir}/postgres
%ghost %{_datadir}/%{RealName}

%{_datadir}/%{name}/errcodes.txt
%{_datadir}/%{name}/extension/*
%{_datadir}/%{name}/information_schema.sql
%{_datadir}/%{name}/fix-CVE-2024-4317.sql
%{_datadir}/%{name}/postgres.bki
%{_datadir}/%{name}/system_constraints.sql
%{_datadir}/%{name}/system_functions.sql
%{_datadir}/%{name}/*.sample
%{_datadir}/%{name}/snowball_create.sql
%{_datadir}/%{name}/sql_features.txt
%{_datadir}/%{name}/system_views.sql
%{_datadir}/%{name}/timezonesets/Africa.txt
%{_datadir}/%{name}/timezonesets/America.txt
%{_datadir}/%{name}/timezonesets/Antarctica.txt
%{_datadir}/%{name}/timezonesets/Asia.txt
%{_datadir}/%{name}/timezonesets/Atlantic.txt
%{_datadir}/%{name}/timezonesets/Australia
%{_datadir}/%{name}/timezonesets/Australia.txt
%{_datadir}/%{name}/timezonesets/Default
%{_datadir}/%{name}/timezonesets/Etc.txt
%{_datadir}/%{name}/timezonesets/Europe.txt
%{_datadir}/%{name}/timezonesets/India
%{_datadir}/%{name}/timezonesets/Indian.txt
%{_datadir}/%{name}/timezonesets/Pacific.txt
%{_datadir}/%{name}/tsearch_data
%if %{without system_timezone}
%{_datadir}/%{name}/timezone
%endif
%{_defaultdocdir}/%{name}/extension/*.example
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/man
%dir %{_datadir}/%{name}/extension
%dir %{_datadir}/%{name}/timezonesets
%dir %{libdir}
%{libdir}/*_and_*.so
%{libdir}/auth_delay.so
%{libdir}/auto_explain.so
%{libdir}/btree_gin.so
%{libdir}/citext.so
%{libdir}/dict_int.so
%{libdir}/dict_snowball.so
%{libdir}/dict_xsyn.so
%{libdir}/euc2004_sjis2004.so
%{libdir}/file_fdw.so
%{libdir}/libpqwalreceiver.so
%{libdir}/passwordcheck.so
%{libdir}/pgoutput.so
%{libdir}/pg_stat_statements.so
%{libdir}/pgxml.so
%{libdir}/sepgsql.so
%{libdir}/unaccent.so
%if %{with uuid}
%{libdir}/uuid-ossp.so
%endif
%{mandir}/man1/initdb.1*
%{mandir}/man1/pg_archivecleanup.1*
%{mandir}/man1/pg_checksums.1*
%{mandir}/man1/pg_controldata.*
%{mandir}/man1/pg_ctl.1*
%{mandir}/man1/pg_receivewal.1*
%{mandir}/man1/pg_resetwal.*
%{mandir}/man1/pg_upgrade.1*
%{mandir}/man1/postgres.1*
%{_sysconfdir}/logrotate.d/%{name}
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service

%pre server
# TODO: use systemd-sysusers, but think, how different postgresqlXX will
# provide (in rpm) the same user(postgres) and group(postgres)
%_pre_useradd postgres %{pgdatadir_universal} /bin/bash

%post server
%{_sbindir}/update-alternatives --install %{_bindir}/initdb initdb %{bindir}/initdb %{alternatives_priority} \
	--slave %{_bindir}/pg_archivecleanup pg_archivecleanup %{bindir}/pg_archivecleanup \
	--slave %{_bindir}/pg_checksums pg_checksums %{bindir}/pg_checksums 		\
	--slave %{_bindir}/pg_controldata pg_controldata %{bindir}/pg_controldata 	\
	--slave %{_bindir}/pg_ctl pg_ctl %{bindir}/pg_ctl 				\
	--slave %{_bindir}/pg_receivewal pg_receivewal %{bindir}/pg_receivewal 		\
	--slave %{_bindir}/pg_resetwal pg_resetwal %{bindir}/pg_resetwal 		\
	--slave %{_bindir}/pg_upgrade pg_upgrade %{bindir}/pg_upgrade			\
	--slave %{_bindir}/postgres postgres %{bindir}/postgres				\
	--slave %{_datadir}/%{RealName} %{RealName} %{_datadir}/%{name}			\
	--slave %{pgdatadir_universal} pgsql %{pgdatadir}	\
	--slave %{_mandir}/man1/initdb.1.xz initdb.1.xz %{mandir}/man1/initdb.1.xz	\
	--slave %{_mandir}/man1/pg_archivecleanup.1.xz pg_archivecleanup.1.xz %{mandir}/man1/pg_archivecleanup.1.xz \
	--slave %{_mandir}/man1/pg_checksums.1.xz pg_checksums.1.xz %{mandir}/man1/pg_checksums.1.xz		\
	--slave %{_mandir}/man1/pg_controldata.1.xz pg_controldata.1.xz	%{mandir}/man1/pg_controldata.1.xz	\
	--slave %{_mandir}/man1/pg_ctl.1.xz pg_ctl.1.xz %{mandir}/man1/pg_ctl.1.xz				\
	--slave %{_mandir}/man1/pg_receivewal.1.xz pg_receivewal.1.xz %{mandir}/man1/pg_receivewal.1.xz		\
	--slave %{_mandir}/man1/pg_resetwal.1.xz pg_resetwal.1.xz %{mandir}/man1/pg_resetwal.1.xz		\
	--slave %{_mandir}/man1/pg_upgrade.1.xz pg_upgrade.1.xz	%{mandir}/man1/pg_upgrade.1.xz			\
	--slave %{_mandir}/man1/postgres.1.xz postgres.1.xz %{mandir}/man1/postgres.1.xz			\
%tmpfiles_create %{name}.conf
%systemd_post %{name}.service

%postun server
%systemd_postun %{name}.service
if [ $1 -eq 0 ] ; then
	%{_sbindir}/update-alternatives --remove initdb %{bindir}/initdb
fi

#----------------------------------------------------------------------------

%package docs
Summary:	Extra documentation for PostgreSQL
Group:		Documentation
#Obsoletes:	%{RealName}-docs < %{EVRD}

%description docs
The postgresql-docs package includes the SGML source for the documentation as
well as the documentation in other formats, and some extra documentation.
Install this package if you want to help with the PostgreSQL documentation
project, or if you want to generate printed documentation.

%files docs
%doc %{_docdir}/%{name}-docs-%{version}

#----------------------------------------------------------------------------

%package contrib
Summary:	Contributed binaries distributed with PostgreSQL
Group:		Databases
#Obsoletes:	%{RealName}-contrib < %{EVRD}
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives

%description contrib
The postgresql-contrib package includes the contrib tree distributed with the
PostgreSQL tarball. Selected contrib modules are prebuilt.

%files contrib -f contrib.lst
%doc README HISTORY
%license COPYRIGHT
%{bindir}/oid2name
%{bindir}/pgbench
%{bindir}/pg_recvlogical
%{bindir}/pg_waldump
%{bindir}/vacuumlo
%{bindir}/pg_amcheck
%ghost %{_bindir}/pg_amcheck
%ghost %{_bindir}/oid2name
%ghost %{_bindir}/pgbench
%ghost %{_bindir}/pg_recvlogical
%ghost %{_bindir}/pg_waldump
%ghost %{_bindir}/vacuumlo
%{_datadir}/%{name}/contrib/sepgsql.sql
%{libdir}/adminpack.so
%{libdir}/amcheck.so
%{libdir}/autoinc.so
%{libdir}/bloom.so
%{libdir}/btree_gist.so
%{libdir}/cube.so
%{libdir}/dblink.so
%{libdir}/earthdistance.so
%{libdir}/fuzzystrmatch.so
%{libdir}/hstore.so
%{libdir}/insert_username.so
%{libdir}/_int.so
%{libdir}/isn.so
%{libdir}/lo.so
%{libdir}/ltree.so
%{libdir}/moddatetime.so
%{libdir}/pageinspect.so
%{libdir}/pg_buffercache.so
%{libdir}/pgcrypto.so
%{libdir}/pg_freespacemap.so
%{libdir}/pg_prewarm.so
%{libdir}/pgrowlocks.so
%{libdir}/pgstattuple.so
%{libdir}/pg_trgm.so
%{libdir}/pg_visibility.so
%{libdir}/postgres_fdw.so
%{libdir}/refint.so
%{libdir}/seg.so
%{libdir}/sslinfo.so
%{libdir}/tablefunc.so
%{libdir}/tcn.so
%{libdir}/test_decoding.so
%{libdir}/tsm_system_rows.so
%{libdir}/tsm_system_time.so
%{libdir}/basic_archive.so
%{libdir}/old_snapshot.so
%{libdir}/pg_surgery.so
%{libdir}/pg_walinspect.so
%{libdir}/basebackup_to_shell.so
%if %{with 1c}
%{libdir}/dbcopies_decoding.so
%{libdir}/fasttrun.so
%{libdir}/fulleq.so
%{libdir}/mchar.so
%{libdir}/online_analyze.so
%{libdir}/plantuner.so
%{_defaultdocdir}/%{name}/extension/README.fasttrun
%{_defaultdocdir}/%{name}/extension/README.fulleq
%{_defaultdocdir}/%{name}/extension/README.mchar
%endif
%{mandir}/man1/oid2name.1*
%{mandir}/man1/pgbench.1*
%{mandir}/man1/pg_recvlogical.1*
%{mandir}/man1/pg_waldump.1*
%{mandir}/man1/vacuumlo.1*
%{mandir}/man1/pg_amcheck.1*

%post contrib
%{_sbindir}/update-alternatives --install %{_bindir}/oid2name oid2name %{bindir}/oid2name %{alternatives_priority} \
	--slave %{_bindir}/pgbench pgbench %{bindir}/pgbench				\
	--slave %{_bindir}/pg_recvlogical pg_recvlogical %{bindir}/pg_recvlogical	\
	--slave %{_bindir}/pg_waldump pg_waldump %{bindir}/pg_waldump			\
	--slave %{_bindir}/vacuumlo vacuumlo %{bindir}/vacuumlo				\
	--slave %{_bindir}/pg_amcheck pg_amcheck %{bindir}/pg_amcheck			\
	--slave %{_mandir}/man1/pg_amcheck.1.xz pg_amcheck.1.xz %{mandir}/man1/pg_amcheck.1.xz \
	--slave %{_mandir}/man1/oid2name.1.xz oid2name.1.xz %{mandir}/man1/oid2name.1.xz	\
	--slave %{_mandir}/man1/pgbench.1.xz pgbench.1.xz %{mandir}/man1/pgbench.1.xz		\
	--slave %{_mandir}/man1/pg_recvlogical.1.xz pg_recvlogical.1.xz %{mandir}/man1/pg_recvlogical.1.xz \
	--slave %{_mandir}/man1/pg_waldump.1.xz pg_waldump.1.xz %{mandir}/man1/pg_waldump.1.xz	\
	--slave %{_mandir}/man1/vacuumlo.1.xz vacuumlo.1.xz %{mandir}/man1/vacuumlo.1.xz

%postun contrib
if [ $1 -eq 0 ] ; then
	%{_sbindir}/update-alternatives --remove oid2name %{bindir}/oid2name
fi

#----------------------------------------------------------------------------
%if %{with llvm}

%package jit
Summary:	Support of JIT compilation for PostgreSQL %{branch}
# TODO: is this Req needed? I think yes, because llvmjit.so is not linked to libllvm
Requires:	%{llvm_req}

%description jit
Support of JIT compilation for PostgreSQL %{branch}

%files jit
%{libdir}/llvmjit.so
%{libdir}/llvmjit_types.bc
%{libdir}/bitcode

%endif
#----------------------------------------------------------------------------

%package devel
Summary:	PostgreSQL development header files and libraries
Group:		Development/Databases
#Obsoletes:	%{RealName}-devel < %{EVRD}
Requires:	%{name} = %{EVRD}
Requires:	%{libecpg} = %{EVRD}
Requires(post): %{_sbindir}/update-alternatives
Requires(postun): %{_sbindir}/update-alternatives

%description devel
The postgresql-devel package contains the header files and libraries needed to
compile C or C++ applications which will directly interact with a PostgreSQL
database management server and the ecpg Embedded C Postgres preprocessor. You
need to install this package if you want to develop applications which will
interact with a PostgreSQL server. If you're installing postgresql-server, you
need to install this package.

%files devel -f devel.lst
%doc README HISTORY
%license COPYRIGHT
%{bindir}/ecpg
%{bindir}/pg_config
%ghost %{_bindir}/ecpg
%ghost %{_bindir}/pg_config
%{_rpmmacrodir}/*%{name}*
%dir %{includedir}
%{includedir}/*
%{libdir}/libecpg_compat.so
%{libdir}/libecpg.so
%{libdir}/libpgtypes.so
%{libdir}/libpq.so
%dir %{libdir}/pkgconfig
%{libdir}/pkgconfig/*.pc
%{libdir}/pgxs/
%{mandir}/man1/ecpg.1*
%{mandir}/man1/pg_config.1*
%{mandir}/man3/dblink*.3*
%{mandir}/man3/SPI_*.3*

%post devel
%{_sbindir}/update-alternatives --install %{_bindir}/ecpg ecpg %{bindir}/ecpg %{alternatives_priority} \
	--slave %{_bindir}/pg_config pg_config %{bindir}/pg_config		\
	--slave %{_mandir}/man1/ecpg.1.xz ecpg.1.xz %{mandir}/man1/ecpg.1.xz	\
	--slave %{_mandir}/man1/pg_config.1.xz pg_config.1.xz %{mandir}/man1/pg_config.1.xz \
	%include %{SOURCE2}

%postun devel
if [ $1 -eq 0 ] ; then
	%{_sbindir}/update-alternatives --remove ecpg %{bindir}/ecpg
fi

#----------------------------------------------------------------------------

%package pl
Summary:	Procedurals languages for PostgreSQL
Group:		Databases
#Obsoletes:	%{RealName}-pl < %{EVRD}
Provides:	%{RealName}-pl = %{EVRD}
Requires:	%{name}-plpython = %{EVRD}
Requires:	%{name}-plperl = %{EVRD}
Requires:	%{name}-pltcl = %{EVRD}
Requires:	%{name}-plpgsql = %{EVRD}

%description pl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-pl will install the the PL/Perl, PL/Tcl, and PL/Python procedural
languages for the backend. PL/Pgsql is part of the core server package.

%files pl
%doc COPYRIGHT
# metapkg

#----------------------------------------------------------------------------

%package plpython
Summary:	The PL/Python procedural language for PostgreSQL
Group:		Databases
Provides:	%{RealName}-plpython = %{EVRD}
#Obsoletes:	%{RealName}-plpython < %{EVRD}

%description plpython
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plpython package contains the the PL/Python procedural languages for
the backend. PL/Python is part of the core server package.

%files plpython -f plpython.lst
%doc README HISTORY
%license COPYRIGHT
%{libdir}/*python*.so

#----------------------------------------------------------------------------

%package plperl
Summary:	The PL/Perl procedural language for PostgreSQL
Group:		Databases
#Obsoletes:	%{RealName}-plperl < %{EVRD}

%description plperl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plperl package contains the the PL/Perl procedural languages for the
backend. PL/Perl is part of the core server package.

%files plperl -f plperl.lst
%doc README HISTORY
%license COPYRIGHT
%{libdir}/*perl.so

#----------------------------------------------------------------------------

%package pltcl
Summary:	The PL/Tcl procedural language for PostgreSQL
Group:		Databases
#Obsoletes:	%{RealName}-pltcl < %{EVRD}

%description pltcl
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-pltcl package contains the the PL/Tcl procedural languages for the
backend. PL/Tcl is part of the core server package.

%files pltcl -f pltcl.lst
%doc README HISTORY
%license COPYRIGHT
%{libdir}/pltcl.so

#----------------------------------------------------------------------------

%package plpgsql
Summary:	The PL/PgSQL procedural language for PostgreSQL
Group:		Databases
#Obsoletes:	%{RealName}-plpgsql < %{EVRD}

%description plpgsql
PostgreSQL is an advanced Object-Relational database management system. The
postgresql-plpgsql package contains the the PL/PgSQL procedural languages for
the backend. PL/PgSQL is part of the core server package.

%files plpgsql -f plpgsql.lst
%doc README HISTORY
%license COPYRIGHT
%{libdir}/plpgsql.so

#----------------------------------------------------------------------------

%prep
%autosetup -n %{RealName}-%{version} -p1

%generate_buildrequires

%if %{with man_gen}
%(echo %{man_list})
.
%endif

%build
%serverbuild

# to build with ccache locally:
# rpmbuild --define '__cc ccache gcc'
export CC='%__cc'

%if %{with llvm}
# https://postgrespro.ru/docs/postgresql/16/jit
# CXX=g++ is also possible
export CXX=%{llvm_prefix}/bin/clang++
export CLANG=%{llvm_prefix}/bin/clang
export LLVM_CONFIG=%{llvm_prefix}/bin/llvm-config
%endif

%configure				\
	--enable-rpath			\
	--docdir=%{_docdir}/%{name}	\
	--htmldir=%{_docdir}/%{name}	\
	--enable-nls			\
	--bindir=%{bindir}	\
	--datadir=%{datadir}	\
	--includedir=%{includedir}	\
	--libdir=%{libdir}	\
	--libexecdir=%{bindir}	\
	--mandir=%{mandir}	\
	--prefix=%{_prefix}	\
%if %{with system_timezone}
	--with-system-tzdata=/usr/share/zoneinfo	\
%endif
	--with-gssapi		\
	--with-icu		\
	--with-ldap		\
	--with-libxml		\
	--with-libxslt		\
	--with-openssl		\
%if %{with llvm}
	--with-llvm	\
%endif
%if %{with uuid}
	--with-ossp-uuid	\
%endif
	--with-pam		\
	--with-perl		\
	--with-python		\
	--with-selinux		\
	--with-systemd		\
	--with-lz4		\
	--with-zstd		\
	--with-tcl		\
	--with-tclconfig=%{_libdir}

# nuke -Wl,--no-undefined
perl -pi -e "s|-Wl,--no-undefined||g" src/Makefile.global

%if %{with uuid}
# bork...
echo "#define HAVE_OSSP_UUID_H 1" >> src/include/pg_config.h
%endif

%make world

pushd src/test
%make all
popd

%check
%if 0
cp -f %{buildroot}%{_localedir}/ru/LC_MESSAGES/pg_reset{wal,xlog}-%{majorver}.mo
make check || :
rm -f %{buildroot}%{_localedir}/ru/LC_MESSAGES/pg_resetxlog-%{majorver}.mo
%endif
readelf -d %{buildroot}%{bindir}/* | grep %{name}



%install
make DESTDIR=%{buildroot} install-world install-docs

# PGDATA needs removal of group and world permissions due to pg_pwd hole.
install -d -m 700 %{buildroot}%{pgdatadir}/data

# backups of data go here...
install -d -m 700 %{buildroot}%{pgdatadir}/backups

# install systemd units
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}/%{name}.service

sed -i \
	-e "s|@BINDIR@|%{bindir}|" \
	-e "s|@PGDATA@|%{pgdatadir}|" \
	%{buildroot}%{_unitdir}/%{name}.service

# ... and make a tmpfiles script to recreate it at reboot.
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE12} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# install helper script for env initialisation
install -m 755 %{SOURCE14} %{buildroot}%{bindir}/%{RealName}_initdb.sh
sed -i \
    -e "s|@BINDIR@|%{bindir}|" \
    -e "s|@NAME@|%{name}|" \
    %{buildroot}%{bindir}/%{RealName}_initdb.sh

mkdir -p %{buildroot}/var/log/postgres

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
/var/log/postgres/%{name} {
    notifempty
    missingok
    copytruncate
}
EOF

mv %{buildroot}%{_docdir}/%{name}/html %{buildroot}%{_docdir}/%{name}-docs-%{version}

echo -n "" > %{libname}.lst
echo -n "" > %{libecpg}.lst
echo -n "" > server.lst
echo -n "" > main.lst
echo -n "" > contrib.lst
echo -n "" > devel.lst
echo -n "" > plperl.lst
echo -n "" > plpython.lst
echo -n "" > pltcl.lst
echo -n "" > plpgsql.lst

# libs
%find_lang libpq%{major}-%{majorver}
cat libpq%{major}-%{majorver}.lang >> %{libname}.lst
%find_lang ecpglib%{major_ecpg}-%{majorver}
cat ecpglib%{major_ecpg}-%{majorver}.lang >> %{libecpg}.lst

# server
%find_lang initdb-%{majorver}
cat initdb-%{majorver}.lang >> server.lst
%find_lang pg_archivecleanup-%{majorver}
cat pg_archivecleanup-%{majorver}.lang >> server.lst
%find_lang pg_basebackup-%{majorver}
cat pg_basebackup-%{majorver}.lang >> server.lst
%find_lang pg_verifybackup-%{majorver}
cat pg_verifybackup-%{majorver}.lang >> server.lst
%find_lang pg_controldata-%{majorver}
cat pg_controldata-%{majorver}.lang >> server.lst
%find_lang pg_ctl-%{majorver}
cat pg_ctl-%{majorver}.lang >> server.lst
%find_lang pg_resetwal-%{majorver}
cat pg_resetwal-%{majorver}.lang >> server.lst
%find_lang pg_upgrade-%{majorver}
cat pg_upgrade-%{majorver}.lang >> server.lst
%find_lang pg_checksums-%{majorver}
cat pg_checksums-%{majorver}.lang >> server.lst
%find_lang postgres-%{majorver}
cat postgres-%{majorver}.lang >> server.lst

# main
%find_lang pg_config-%{majorver}
cat pg_config-%{majorver}.lang >> main.lst
%find_lang pg_dump-%{majorver}
cat pg_dump-%{majorver}.lang >> main.lst
%find_lang pg_rewind-%{majorver}
cat pg_rewind-%{majorver}.lang >> main.lst
%find_lang pg_test_fsync-%{majorver}
cat pg_test_fsync-%{majorver}.lang >> main.lst
%find_lang pg_test_timing-%{majorver}
cat pg_test_timing-%{majorver}.lang >> main.lst
%find_lang pgscripts-%{majorver}
cat pgscripts-%{majorver}.lang >> main.lst
%find_lang psql-%{majorver}
cat psql-%{majorver}.lang >>main.lst

#contrib
%find_lang pg_waldump-%{majorver}
cat pg_waldump-%{majorver}.lang >>contrib.lst
%find_lang pg_amcheck-%{majorver}
cat pg_amcheck-%{majorver}.lang >>contrib.lst

# devel
%find_lang ecpg-%{majorver}
cat ecpg-%{majorver}.lang >> devel.lst

# perl
%find_lang plperl-%{majorver}
cat plperl-%{majorver}.lang >> plperl.lst

# python
%find_lang plpython-%{majorver}
cat plpython-%{majorver}.lang >> plpython.lst

# tcl
%find_lang pltcl-%{majorver}
cat pltcl-%{majorver}.lang >> pltcl.lst

# plpgsql
%find_lang plpgsql-%{majorver}
cat plpgsql-%{majorver}.lang >> plpgsql.lst

# taken directly in build dir.
rm -fr %{buildroot}%{_datadir}/doc/%{name}/contrib/

cat > macro <<EOF
%%postgresql_version %{version}
%%postgresql_major   %{majorver}
%%postgresql_minor   %{minorver}
%%pgmodules_req Requires: %{?arch_tagged:%{arch_tagged} %{name}-server-ABI}%{?!arch_tagged:%{name}-server-ABI} >= %{majorver}
EOF

%install_macro %{name} macro

# postgres' .profile and .bashrc
install -D -m 700 %{SOURCE10} %{buildroot}%{pgdatadir}/.profile

sed -i -e "s|%{RealName}|%{name}|g" \
	%{buildroot}%{pgdatadir}/.profile

ln -s .profile %{buildroot}%{pgdatadir}/.bashrc

# update-alternatives --------------------------------------\/

mkdir -p %{buildroot}%{_bindir}
touch %{buildroot}%{_bindir}/psql
touch %{buildroot}%{_bindir}/initdb
touch %{buildroot}%{_bindir}/oid2name
touch %{buildroot}%{_bindir}/ecpg

# man compress
%{_compress} %{buildroot}%{mandir}/man[0-9]/*

# ----------------------------------------------------------/\

# cleanup
find %{buildroot} -type f -name "*.a" -exec rm -f {} ';'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15893 |21mr|postgresql-jdbc-42.2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.


# Configuration for rpmbuild, might be specified by options
# like e.g. 'rpmbuild --define "runselftest 0"'.

# =============================================================================
# IMPORTANT NOTE: This spec file is maintained on two places -- in native
# Fedora repo [1] and in pgjdbc upstream [2].  Please, keep that in sync
# (manual effort!) so both Fedora and Upstream can benefit from automatic
# packaging CI, this is now done in [3] Copr project.
# [1] https://src.fedoraproject.org/rpms/postgresql-jdbc
# [2] https://github.com/pgjdbc/pgjdbc/tree/master/packaging/rpm
# [3] https://copr.fedorainfracloud.org/coprs/g/pgjdbc/pgjdbc-travis/
# ============================================================================

#{!?runselftest:%global runselftest 1}
%global runselftest 0

%global section		devel
%global source_path	pgjdbc/src/main/java/org/postgresql
%global parent_ver	1.1.6
%global parent_poms_builddir	./pgjdbc-parent-poms

%global pgjdbc_mvn_options -DwaffleEnabled=false -DosgiEnabled=false \\\
	-DexcludePackageNames=org.postgresql.osgi:org.postgresql.sspi

Summary:	JDBC driver for PostgreSQL
Name:		postgresql-jdbc
Version:	42.2.8
Release:	1
License:	BSD
URL:		http://jdbc.postgresql.org/

Source0:	https://github.com/pgjdbc/pgjdbc/archive/REL%{version}/pgjdbc-REL%{version}.tar.gz
Provides:	pgjdbc = %version-%release

# Upstream moved parent pom.xml into separate project (even though there is only
# one dependant project on it?).  Let's try to not complicate packaging by
# having separate spec file for it, too.
Source1:	https://github.com/pgjdbc/pgjdbc-parent-poms/archive/REL%parent_ver/pgjdbc-parent-poms-REL%{parent_ver}.tar.gz

# disable test that makes unpredictable assumptions about non-routable IPs
# See https://github.com/pgjdbc/pgjdbc/issues/556
Patch0:		disable-ConnectTimeoutTest.patch

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:	java-devel >= 1.8
BuildRequires:	maven-local
BuildRequires:	java-comment-preprocessor
BuildRequires:	maven-enforcer-plugin
BuildRequires:	maven-plugin-bundle
BuildRequires:	maven-plugin-build-helper
BuildRequires:	classloader-leak-test-framework

BuildRequires:	mvn(com.ongres.scram:client)
BuildRequires:	mvn(org.apache.maven.plugins:maven-clean-plugin)

%if %runselftest
BuildRequires:	postgresql-contrib
BuildRequires:	postgresql-test-rpm-macros
%endif

# gettext is only needed if we try to update translations
#BuildRequires:	gettext

Obsoletes:	%{name}-parent-poms < 42.2.2-2

%description
PostgreSQL is an advanced Object-Relational database management
system. The postgresql-jdbc package includes the .jar files needed for
Java programs to access a PostgreSQL database.


%package javadoc
Summary:	API docs for %{name}

%description javadoc
This package contains the API Documentation for %{name}.


%prep
%setup -c -q -a 1

mv pgjdbc-REL%version/* .
mv pgjdbc-parent-poms-REL%parent_ver pgjdbc-parent-poms

%patch0 -p1

# remove any binary libs
find -name "*.jar" -or -name "*.class" | xargs rm -f

# Build parent POMs in the same Maven call.
%pom_xpath_inject pom:modules "<module>%parent_poms_builddir</module>"
%pom_xpath_inject pom:parent "<relativePath>pgjdbc-parent-poms/pgjdbc-versions</relativePath>"
%pom_xpath_set pom:relativePath ../pgjdbc-parent-poms/pgjdbc-core-parent pgjdbc
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-shade-plugin']" pgjdbc
%pom_remove_plugin :karaf-maven-plugin pgjdbc
%pom_remove_plugin :properties-maven-plugin pgjdbc-parent-poms/pgjdbc-core-parent
%pom_remove_plugin :properties-maven-plugin pgjdbc-parent-poms/pgjdbc-versions


# compat symlink: requested by dtardon (libreoffice), reverts part of
# 0af97ce32de877 commit.
%mvn_file org.postgresql:postgresql %{name}/postgresql %{name} postgresql

# Parent POMs should not be installed.
%mvn_package ":*{parent,versions,prevjre}*" __noinstall

# For compat reasons, make Maven artifact available under older coordinates.
%mvn_alias org.postgresql:postgresql postgresql:postgresql

# Hack #1!  This directory is missing for some reason, it is most probably some
# misunderstanding between maven, maven-compiler-plugin and
# java-comment-preprocessor?  Not solved yet.  See rhbz#1325060.
mkdir -p pgjdbc/target/generated-sources/annotations


%build
# Ideally we would run "sh update-translations.sh" here, but that results
# in inserting the build timestamp into the generated messages_*.class
# files, which makes rpmdiff complain about multilib conflicts if the
# different platforms don't build in the same minute.  For now, rely on
# upstream to have updated the translations files before packaging.

# Include PostgreSQL testing methods and variables.
%if %runselftest
%postgresql_tests_init

PGTESTS_LOCALE=C.UTF-8

cat <<EOF > build.local.properties
server=localhost
port=$PGTESTS_PORT
database=test
username=test
password=test
privilegedUser=$PGTESTS_ADMIN
privilegedPassword=$PGTESTS_ADMINPASS
preparethreshold=5
loglevel=0
protocolVersion=0
EOF

# Start the local PG cluster.
%postgresql_tests_start
%else
# -f is equal to -Dmaven.test.skip=true
opts="-f"
%endif

%mvn_build $opts -- %pgjdbc_mvn_options


%install
%mvn_install


%files -f .mfiles
%license LICENSE
%doc README.md


%files javadoc -f .mfiles-javadoc
%license LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15894 |21mr|postscript-ppds-2006-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	PPD files for PostScript printers
Name:		postscript-ppds
Version:	2006
Release:	18
License:	Distributable
Group:		Publishing
Url:		http://cups.sourceforge.net/
# CUPS-Drivers package from Sourceforge, only PPD files for native 
# PostScript printers used
Source200:	ftp://cups.sourceforge.net/pub/cups/cups-drivers/0.3.6/cups-drivers-all-0.3.6.tar.bz2
# Perl script to clean up Manufacturer entries in the PPD files, so that
# drivers are sorted by the printer manufacturer in the graphical frontends
Source201:	cleanppd.pl.bz2
# PPD file for a generic PostScript printer (taken from KUPS)
Source203:	postscript.ppd.bz2
# Fix buggy PPD file
Patch200:	cups-drivers-hplj5m_4.ppd.patch
BuildRequires:	cups-common
Requires:	foomatic-filters
Requires:	ghostscript
BuildArch:	noarch

%description
This package contains PPD files for older PostScript printers.

The PPD files for recent printers are in the foomatic-db package.

Setting up print queues with CUPS or foomatic-rip and these PPD files
makes all features of the printer available, therefore its use is
highly recommended. printerdrake will choose a manufacturer-supplied
PPD file automatically if one for your printer is found.

%prep
rm -fr %{name}-%{version}
mkdir %{name}-%{version}
# PPD files for old PostScript printers
%setup -q -T -D -a 200

# Apply patch for buggy ppd file
%patch200 -p0

# Remove CUPS-O-MATIC PPDs
rm -rf cups-drivers-0.3.6/usr/share/cups/model/cups-o-matic

# Remove pstogstoraster-based PPD files, they do not work 
# when printing via Samba. There are other, better PPDs for 
# these printers.
rm -f cups-drivers-0.3.6/usr/share/cups/model/canon/bj10.ppd
rm -f cups-drivers-0.3.6/usr/share/cups/model/hp/djet_890c.ppd
rm -f cups-drivers-0.3.6/usr/share/cups/model/hp/laserjet_gs.ppd

# Remove CUPS PPD files, there are newer versions of them in the CUPS
# package
rm -f cups-drivers-0.3.6/usr/share/cups/model/hp/laserjet.ppd
rm -f cups-drivers-0.3.6/usr/share/cups/model/hp/deskjet.ppd

%build

%install
# Make directories
install -d %{buildroot}%{_datadir}/cups/model

# Put the Sourceforge PPDs into CUPS PPD directory
cp -a cups-drivers-0.3.6/usr/share/cups/model/* %{buildroot}%{_datadir}/cups/model/

# Install PPD file for a generic PostScript printer
bzcat %{SOURCE203} > %{buildroot}%{_datadir}/cups/model/postscript.ppd

# Correct permissions of PPD file directory
chmod -R u+w,a+rX %{buildroot}%{_datadir}/cups/model

# "cleanppd.pl" removes unwished PPD files (currently the ones for Birmy
# PowerRIP), fixes broken manufacturer entries, and cleans lines which
# contain only spaces and tabs.

# Uncompress Perl script for cleaning up the PPD files
bzcat %{SOURCE201} > ./cleanppd.pl
chmod a+rx ./cleanppd.pl
# Do the clean-up
find %{buildroot}%{_datadir}/cups/model -name "*.ppd" -exec ./cleanppd.pl '{}' \;
# Remove PPDs which are not Adobe-compliant and therefore not working with
# CUPS 1.1.20
for ppd in `find %{buildroot}%{_datadir}/cups/model -name "*.ppd.gz" -print`; do cupstestppd -q $ppd || (rm -f $ppd && echo "$ppd not Adobe-compliant. Deleted."); done

# Correct permissions for all documentation files
for f in %{buildroot}%{_datadir}/cups/model/*/*; do
  chmod a-x $f
done

%files
%{_datadir}/cups/model/*

# Restart the CUPS daemon when it is running, but do not start it when it
# is not running. The restart of the CUPS daemon updates the CUPS-internal
# PPD index

%post
/sbin/service cups condrestart > /dev/null 2>/dev/null || :

%postun
/sbin/service cups condrestart > /dev/null 2>/dev/null || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15895 |21mr|potrace-1.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Utility for transforming a bitmap into a scalable image
Name:		potrace
Version:	1.16
Release:	2
License:	GPLv2+
Group:		Graphics
Url:		http://potrace.sourceforge.net/
Source0:	http://potrace.sourceforge.net/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(zlib)
Provides:	fonttracer = %{EVRD}

%description
potrace is a utility for tracing a bitmap, which means, transforming a bitmap
into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP
format), and the output can be EPS (default), Postscript, SVG ou PGM (for easy
antialiasing). A typical use is to create EPS files from scanned data, such as
company or university logos, handwritten notes, etc. The resulting image is not
"jaggy" like a bitmap, but smooth. It can then be rendered at any resolution.

%files
%doc AUTHORS COPYING ChangeLog README NEWS
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The %{name} shared library package
Group:		System/Libraries
Recommends:	%{name}

%description -n %{libname}
potrace is a utility for tracing a bitmap, which means, transforming a bitmap
into a smooth, scalable image. The input is a bitmap (PBM, PGM, PPM, or BMP
format), and the output can be EPS (default), Postscript, SVG ou PGM (for easy
antialiasing). This is the %{name} library package: it is not needed for the
normal use of %{name}, but only for programs integrating its functionalities.

%files -n %{libname}
%doc COPYING ChangeLog
%{_libdir}/libpotrace.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The %{name} development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	potrace-devel = %{EVRD}

%description -n %{devname}
This package includes the development files required to build software against
%{libname}.

%files -n %{devname}
%doc %{_docdir}/potrace*
%{_includedir}/potracelib.h
%{_libdir}/libpotrace.so

#----------------------------------------------------------------------------
%prep
%setup -q
%apply_patches

# fix file perm
chmod -R go+rX .

%build
%configure \
	--enable-a4 \
	--disable-static \
	--with-libpotrace
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15896 |21mr|powerman-2.3.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%undefine _disable_rebuild_configure

%define major 0
%define libname %mklibname powerman  %{major}
%define devname %mklibname powerman -d

%bcond_with genders

Summary:	Power to the Cluster
Name:		powerman
Version:	2.3.26
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://code.google.com/p/powerman/
Source0:	http://powerman.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:	powerman-tmpfiles.conf
Patch0:		powerman-2.3.26-version.patch
BuildRequires:	bison
BuildRequires:	flex
%if %{with genders}
BuildRequires:	genders-devel
%endif
BuildRequires:	net-snmp-devel
BuildRequires:	readline-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(systemd)
Requires(post):	systemd
Requires(pre,post,preun,postun):	rpm-helper

%description
PowerMan is a tool for manipulating remote power control (RPC) devices from a
central location. Several RPC varieties are supported natively by PowerMan and
Expect-like configurability simplifies the addition of new devices.

%files
%doc ChangeLog DISCLAIMER COPYING NEWS TODO
%{_unitdir}/%{name}.service
%{_bindir}/pm
%{_bindir}/powerman
%{_sbindir}/httppower
%{_sbindir}/plmpower
%{_sbindir}/powermand
%{_sbindir}/snmppower
%{_sbindir}/vpcd
%dir %{_sysconfdir}/%{name}/
%config(noreplace) %{_sysconfdir}/%{name}/*
%{_mandir}/man*/*
%ghost %attr(0755,powerman,powerman) %dir /var/run/%{name}
%{_tmpfilesdir}/%{name}.conf

%pre
%_pre_useradd powerman /var/empty /bin/sh

%postun
%_postun_userdel powerman

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service powerman

%preun
%_preun_service powerman

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PowerMan library
Group:		System/Libraries

%description -n %{libname}
PowerMan is a tool for manipulating remote power control (RPC) devices from a 
central location. Several RPC varieties are supported natively by PowerMan and 
Expect-like configurability simplifies the addition of new devices.

%files -n %{libname}
%doc COPYING
%{_libdir}/libpowerman.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the PowerMan library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
PowerMan is a tool for manipulating remote power control (RPC) devices from a 
central location. Several RPC varieties are supported natively by PowerMan and 
Expect-like configurability simplifies the addition of new devices.

This package contains the static genders library and its header files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libpowerman.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
# Avoid git usage in autoreconf
%patch0 -p1
sed s,"@VERSION@","%{version}",g -i configure.ac

%build
autoreconf -fi
#sh ./autogen.sh
%serverbuild

%configure \
    --disable-static \
    --with-snmppower \
    --with-httppower \
    --with-ncurses \
    --with-user=powerman \
    --with-systemdsystemunitdir=%{_unitdir}

# parallel makes often fail
make -e VERSION=%{version} EXTRA_CFLAGS="$CFLAGS"

%install
%makeinstall_std mandir=%{_mandir}

# work around a problem in the install make file target
rm %{buildroot}%{_bindir}/pm
pushd %{buildroot}%{_bindir}
    ln -s powerman pm
popd

# get rid of execute bit on powerman script files to fix rpmlint errror
chmod -x %{buildroot}%{_sysconfdir}/%{name}/*

# don't package this for now
rm -rf %{buildroot}%{_libdir}/stonith

# install tmpfiles conf
install -m644 -D %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15897 |21mr|powermock-2.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           powermock
Version:        2.0.0
Release:        3
Summary:        A Java mocking framework

# Note: api-mockito subpackage is ASL 2.0 and MIT, the rest is ASL 2.0
License:        ASL 2.0
Group:          Development/Java
URL:            https://github.com/jayway/powermock
Source0:        https://github.com/jayway/%{name}/archive/%{name}-%{version}.tar.gz
# Script to fetch poms and generate the sources list below
Source1:        get-poms.sh
Source10:       https://repo1.maven.org/maven2/org/powermock/powermock-api-support/%{version}/powermock-api-support-%{version}.pom
Source11:       https://repo1.maven.org/maven2/org/powermock/powermock-api-easymock/%{version}/powermock-api-easymock-%{version}.pom
Source12:       https://repo1.maven.org/maven2/org/powermock/powermock-api-mockito2/%{version}/powermock-api-mockito2-%{version}.pom
Source13:       https://repo1.maven.org/maven2/org/powermock/powermock-classloading-base/%{version}/powermock-classloading-base-%{version}.pom
Source14:       https://repo1.maven.org/maven2/org/powermock/powermock-classloading-xstream/%{version}/powermock-classloading-xstream-%{version}.pom
Source15:       https://repo1.maven.org/maven2/org/powermock/powermock-classloading-objenesis/%{version}/powermock-classloading-objenesis-%{version}.pom
Source16:       https://repo1.maven.org/maven2/org/powermock/powermock-core/%{version}/powermock-core-%{version}.pom
Source17:       https://repo1.maven.org/maven2/org/powermock/powermock-module-junit4-legacy/%{version}/powermock-module-junit4-legacy-%{version}.pom
Source18:       https://repo1.maven.org/maven2/org/powermock/powermock-module-testng-common/%{version}/powermock-module-testng-common-%{version}.pom
Source19:       https://repo1.maven.org/maven2/org/powermock/powermock-module-javaagent/%{version}/powermock-module-javaagent-%{version}.pom
Source20:       https://repo1.maven.org/maven2/org/powermock/powermock-module-junit4-rule/%{version}/powermock-module-junit4-rule-%{version}.pom
Source21:       https://repo1.maven.org/maven2/org/powermock/powermock-module-testng-agent/%{version}/powermock-module-testng-agent-%{version}.pom
Source22:       https://repo1.maven.org/maven2/org/powermock/powermock-module-junit4-rule-agent/%{version}/powermock-module-junit4-rule-agent-%{version}.pom
Source23:       https://repo1.maven.org/maven2/org/powermock/powermock-module-junit4/%{version}/powermock-module-junit4-%{version}.pom
Source24:       https://repo1.maven.org/maven2/org/powermock/powermock-module-testng/%{version}/powermock-module-testng-%{version}.pom
Source25:       https://repo1.maven.org/maven2/org/powermock/powermock-module-junit4-common/%{version}/powermock-module-junit4-common-%{version}.pom
Source26:       https://repo1.maven.org/maven2/org/powermock/powermock-reflect/%{version}/powermock-reflect-%{version}.pom

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(cglib:cglib-nodep)
BuildRequires:  mvn(com.thoughtworks.xstream:xstream) >= 1.4.10
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.bytebuddy:byte-buddy)
BuildRequires:  mvn(net.bytebuddy:byte-buddy-agent)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.javassist:javassist)
BuildRequires:  mvn(org.mockito:mockito-core) >= 2.23.0
BuildRequires:  mvn(org.objenesis:objenesis)
BuildRequires:  mvn(org.testng:testng)

%global desc \
PowerMock is a framework that extend other mock libraries\
such as EasyMock with more powerful capabilities. PowerMock uses a\
custom classloader and bytecode manipulation to enable mocking of\
static methods, constructors, final classes and methods, private\
methods, removal of static initializers and more.

%description
%{desc}

%package reflect
Summary:        Reflection module of PowerMock

%description reflect
%{desc}

This package contains the reflection module of PowerMock.

%package javaagent
Summary:        PowerMock Java agent support

%description javaagent
%{desc}

This package contains the Java agent support for PowerMock.

%package core
Summary:        Core module of PowerMock
Obsoletes:      %{name}-common < %{version}-%{release}
Provides:       %{name}-common = %{version}-%{release}
Requires:       mvn(com.thoughtworks.xstream:xstream) >= 1.4.10

%description core
%{desc}

This package contains the core module of PowerMock.

%package junit4
Summary:        JUnit4 common module of PowerMock

%description junit4
%{desc}

This package contains the JUnit4 module of PowerMock.

%package api-support
Summary:        PowerMock API support module

%description api-support
%{desc}

This package contains support code for the PowerMock API extensions.

%package api-mockito
Summary:        PowerMock Mockito API module
Requires:       mvn(org.mockito:mockito-core) >= 2.23.0

%description api-mockito
%{desc}

This package contains the PowerMock Mockito API extension.

%package api-easymock
Summary:        PowerMock EasyMock API module

%description api-easymock
%{desc}

This package contains the PowerMock EasyMock API extension.

%package testng
Summary:        PowerMock module for TestNG

%description testng
%{desc}

This package contains the PowerMock TestNG extension.

%package javadoc
Summary:        JavaDocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# Inject pom files
modules=
for src in $(find powermock* -name src -type d) ; do
  dir=$(dirname $src)
  aid=$(basename $dir)
  cp %{_sourcedir}/$aid-%{version}.pom $dir/pom.xml
  modules="$modules<module>$dir</module>"
done

# Generate build aggregator pom
cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.powermock</groupId>
  <artifactId>parent</artifactId>
  <packaging>pom</packaging>
  <version>%{version}</version>
  <modules>
    $modules
    <module>tests/utils</module>
  </modules>
</project>
EOF

# Generate test utils pom
cat > tests/utils/pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
  <modelVersion>4.0.0</modelVersion>
  <groupId>org.powermock.tests</groupId>
  <artifactId>powermock-tests-utils</artifactId>
  <version>%{version}</version>
  <dependencies>
    <dependency>
      <groupId>org.powermock</groupId>
      <artifactId>powermock-core</artifactId>
      <version>%{version}</version>
    </dependency>
    <dependency>
      <groupId>javax.servlet</groupId>
      <artifactId>servlet-api</artifactId>
      <version>2.5</version>
    </dependency>
  </dependencies>
  <build>
    <plugins>
      <plugin>
          <groupId>org.apache.maven.plugins</groupId>
          <artifactId>maven-surefire-plugin</artifactId>
          <version>2.19.1</version>
          <configuration><skip>true</skip></configuration>
      </plugin>
    </plugins>
  </build>
</project>
EOF

# Fix references to ASM, which is not bundled by bytebuddy
sed -i -e 's/net\.bytebuddy\.jar\.asm/org.objectweb.asm/g;'  \
  $(find powermock-reflect/src/test/java/org/powermock/reflect/internal/proxy powermock-core/src/main/java/org/powermock/core/bytebuddy powermock-modules/powermock-module-javaagent/src/main/java/org/powermock/modules/agent -name '*.java')

# Inject test deps not present in published poms
%pom_add_dep "junit:junit:4.12:test" powermock-{core,reflect} \
  powermock-api/powermock-api-{support,easymock,mockito2} powermock-classloading/powermock-classloading-{objenesis,xstream}
%pom_add_dep "org.assertj:assertj-core:2.6.0:test" powermock-{core,reflect} \
  powermock-api/powermock-api-{support,easymock,mockito2} powermock-classloading/powermock-classloading-{objenesis,xstream} \
  powermock-modules/powermock-module-junit4{,-common,-rule,-rule-agent}
%pom_add_dep "org.hamcrest:hamcrest-core:1.3:test" powermock-{core,reflect} \
  powermock-api/powermock-api-{support,easymock,mockito2} powermock-classloading/powermock-classloading-{objenesis,xstream}
%pom_add_dep "cglib:cglib-nodep:3.2.9:test" powermock-reflect
%pom_add_dep "org.mockito:mockito-core:2.23.0:test" powermock-core
%pom_add_dep "org.powermock.tests:powermock-tests-utils:%{version}:test" powermock-api/powermock-api-mockito2
%pom_add_dep "org.easymock:easymock:4.0.1:test" powermock-modules/powermock-module-junit4

# Fix needed for using old easymock
sed -i -e 's/PowerMockTestNotifier, PowerMockTestNotifier/PowerMockTestNotifier/' \
  powermock-modules/powermock-module-junit4/src/test/java/org/powermock/modules/junit4/internal/impl/PowerMockRunNotifierTest.java

# Missing junit rules from com.github.stefanbirkner:system-rules
rm powermock-core/src/test/java/org/powermock/configuration/support/ConfigurationFactoryImplTest.java

# Junit4 in Fedora is too new, don't build legacy module
%pom_disable_module powermock-modules/powermock-module-junit4-legacy

%mvn_package ":powermock-core" core
%mvn_package ":powermock-classloading*" core
%mvn_package ":powermock-module-junit4*" junit4
%mvn_package ":powermock-module-testng*" testng
%mvn_package ":powermock-module-javaagent" javaagent
%mvn_package ":powermock-api-mockito2" api-mockito
%mvn_package ":powermock-api-support" api-support
%mvn_package ":powermock-api-easymock" api-easymock
%mvn_package ":powermock-reflect" reflect

# Compat alias for mockito support
%mvn_alias :powermock-api-mockito2 :powermock-api-mockito :powermock-api-mockito-common

# Don't install internal test stuff
%mvn_package org.powermock.tests: __noinstall

# No need to install the parent pom
%mvn_package :parent __noinstall

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files core -f .mfiles-core
%doc README.md CONTRIBUTING.md
%license LICENSE.txt
%files reflect -f .mfiles-reflect
%files junit4 -f .mfiles-junit4
%files api-support -f .mfiles-api-support
%files api-mockito -f .mfiles-api-mockito
%files api-easymock -f .mfiles-api-easymock
%files testng -f .mfiles-testng
%files javaagent -f .mfiles-javaagent
%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15898 |21mr|powertop-2.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# https://github.com/fenrus75/powertop/issues/99
%global ldflags %{ldflags} -lpthread

Summary:	Power saving diagnostic tool
Name:		powertop
Version:	2.15
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.lesswatts.org/
Source0:	https://github.com/fenrus75/powertop/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	autoconf-archive
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(zlib)

%description
PowerTOP tool is a program that collects the various pieces of
information from a system and presents an overview of how well a
laptop is doing in terms of power savings. In addition, PowerTOP will
provide an indication of which tunables and software components are
the biggest offenders in slurping up battery time. PowerTOP will
update it's display frequently so that the impact of any changes can
be seen directly.

%files -f %{name}.lang
%license COPYING
%doc README* TODO
%{_sbindir}/%{name}
%{_unitdir}/powertop.service
%{_mandir}/*/*.*
%{_datadir}/bash-completion/completions/%{name}

%post
%systemd_post powertop.service

%preun
%systemd_preun powertop.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1
find . -name "*.o" -exec rm {} \;

%build
./autogen.sh
%configure
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_unitdir}
install -m0644 powertop.service %{buildroot}%{_unitdir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15899 |21mr|poxml-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Xml2po and vice versa converters for KDE
Name:		poxml
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	gettext-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Xml)
Recommends:	md5deep

%description
Xml2po and vice versa converters for KDE.

%files
%{_kde5_bindir}/po2xml
%{_kde5_bindir}/split2po
%{_kde5_bindir}/swappo
%{_kde5_bindir}/xml2pot
%{_kde5_mandir}/man1/po2xml.1.*
%{_kde5_mandir}/man1/split2po.1.*
%{_kde5_mandir}/man1/swappo.1.*
%{_kde5_mandir}/man1/xml2pot.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

# To avoid conflicts with kde-l10n
rm -rf %{buildroot}%{_kde5_mandir}/*/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15900 |21mr|ppl-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ppl_major 14
%define libppl %mklibname ppl %{ppl_major}
%define devppl %mklibname ppl -d
%define sdevppl %mklibname ppl -d -s

%define ppl_c_major 4
%define libppl_c %mklibname ppl_c %{ppl_c_major}
%define devppl_c %mklibname ppl_c -d
%define sdevppl_c %mklibname ppl_c -d -s

%bcond_with java
%bcond_with crosscompile

%define _disable_rebuild_configure 1

Summary:	The Parma Polyhedra Library: a library of numerical abstractions
Name:		ppl
Version:	1.2
Release:	2
License:	GPLv3+
Group:		Development/C
Url:		https://www.bugseng.com/parma-polyhedra-library
Source0:	ftp://ftp.cs.unipr.it/pub/ppl/releases/%{version}/%{name}-%{version}.tar.bz2
Source1:	ppl.hh
Source2:	ppl_c.h
# Debian patches
Patch1:		link-tests-with-libmpq.patch
Patch2:		reproducible_builds_gzip_n.patch
Patch3:		fix_latex_build.patch
Patch4:		fix_AC_CHECK_SWI_PROLOG.patch
Patch5:		latex_include_ifthen_package.patch
# Gentoo/*BSD patch
Patch6:		fix-clang-build.patch
BuildRequires:	m4 >= 1.4.8
BuildRequires:	glpk-devel >= 4.13
BuildRequires:	gmp-devel >= 4.1.3
BuildRequires:	gmpxx-devel >= 4.1.3

%description
The Parma Polyhedra Library (PPL) is a library for the manipulation of
(not necessarily closed) convex polyhedra and other numerical
abstractions.  The applications of convex polyhedra include program
analysis, optimized compilation, integer and combinatorial
optimization and statistical data-editing.  The Parma Polyhedra
Library comes with several user friendly interfaces, is fully dynamic
(available virtual memory is the only limitation to the dimension of
anything), written in accordance to all the applicable standards,
exception-safe, rather efficient, thoroughly documented, and free
software.  This package provides all what is necessary to run
applications using the PPL through its C and C++ interfaces.

#-----------------------------------------------------------------------

%package -n %{libppl}
Summary:	The Parma Polyhedra Library: a library of numerical abstractions
Group:		Development/C

%description -n %{libppl}
The Parma Polyhedra Library (PPL) is a library for the manipulation of
(not necessarily closed) convex polyhedra and other numerical
abstractions.  The applications of convex polyhedra include program
analysis, optimized compilation, integer and combinatorial
optimization and statistical data-editing.  The Parma Polyhedra
Library comes with several user friendly interfaces, is fully dynamic
(available virtual memory is the only limitation to the dimension of
anything), written in accordance to all the applicable standards,
exception-safe, rather efficient, thoroughly documented, and free
software.  This package provides all what is necessary to run
applications using the PPL through its C and C++ interfaces.

%files -n %{libppl}
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/BUGS
%doc %{_docdir}/%{name}/COPYING
%doc %{_docdir}/%{name}/CREDITS
%doc %{_docdir}/%{name}/NEWS
%doc %{_docdir}/%{name}/README
%doc %{_docdir}/%{name}/README.configure
%doc %{_docdir}/%{name}/TODO
%doc %{_docdir}/%{name}/gpl.txt
%{_libdir}/libppl.so.%{ppl_major}*
%if !%{with crosscompile}
%ifnarch %armx %{riscv} %{e2k}
%dir %{_libdir}/%{name}
%endif
%endif

#-----------------------------------------------------------------------

%package -n %{devppl}
Summary:	Development tools for the Parma Polyhedra Library C and C++ interfaces
Group:		Development/C
Requires:	%{libppl} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}ppl7-devel < 0.11-3

%description -n %{devppl}
The header files, Autoconf macro and minimal documentation for
developing applications using the Parma Polyhedra Library through
its C and C++ interfaces.

%files -n %{devppl}
%{_bindir}/ppl-config
%{_includedir}/ppl*.hh
%{_libdir}/libppl.so
%{_mandir}/man1/ppl-config.1*
%{_mandir}/man3/libppl.3*
%{_datadir}/aclocal/ppl.m4

#-----------------------------------------------------------------------

%package -n %{sdevppl}
Summary:	Static archives for the Parma Polyhedra Library C and C++ interfaces
Group:		Development/C
Requires:	%{name}-devel = %{EVRD}
Provides:	libppl-static-devel = %{EVRD}

%description -n %{sdevppl}
The static archives for the Parma Polyhedra Library C and C++ interfaces.

%files -n %{sdevppl}
%{_libdir}/libppl.a

#-----------------------------------------------------------------------

%package -n %{libppl_c}
Summary:	The Parma Polyhedra Library: a library of numerical abstractions
Group:		Development/C

%description -n %{libppl_c}
The Parma Polyhedra Library (PPL) is a library for the manipulation of
(not necessarily closed) convex polyhedra and other numerical
abstractions.  The applications of convex polyhedra include program
analysis, optimized compilation, integer and combinatorial
optimization and statistical data-editing.  The Parma Polyhedra
Library comes with several user friendly interfaces, is fully dynamic
(available virtual memory is the only limitation to the dimension of
anything), written in accordance to all the applicable standards,
exception-safe, rather efficient, thoroughly documented, and free
software.  This package provides all what is necessary to run
applications using the PPL through its C and C++ interfaces.

%files -n %{libppl_c}
%{_libdir}/libppl_c.so.%{ppl_c_major}*

#-----------------------------------------------------------------------

%package -n %{devppl_c}
Summary:	Development tools for the Parma Polyhedra Library C and C++ interfaces
Group:		Development/C
Requires:	%{libppl_c} = %{EVRD}
Conflicts:	%{_lib}ppl-devel < 0.11-3
Provides:	ppl_c-devel = %{EVRD}

%description -n %{devppl_c}
The header files, Autoconf macro and minimal documentation for
developing applications using the Parma Polyhedra Library through
its C and C++ interfaces.

%files -n %{devppl_c}
%{_includedir}/ppl_c*.h
%{_libdir}/libppl_c.so
%{_mandir}/man3/libppl_c.3.*
%{_datadir}/aclocal/ppl_c.m4

#-----------------------------------------------------------------------

%package -n %{sdevppl_c}
Summary:	Static archives for the Parma Polyhedra Library C and C++ interfaces
Group:		Development/C
Requires:	%{devppl_c} = %{EVRD}
Provides:	libppl_c-static-devel = %{EVRD}
Provides:	ppl_c-static-devel = %{EVRD}
Conflicts:	%{_lib}ppl7-static-devel

%description -n %{sdevppl_c}
The static archives for the Parma Polyhedra Library C and C++ interfaces.

%files -n %{sdevppl_c}
%{_libdir}/libppl_c.a

#-----------------------------------------------------------------------

%package utils
Summary:	Utilities using the Parma Polyhedra Library
Group:		Development/C
Requires:	%{libppl} = %{EVRD}

%description utils
This package contains the mixed integer linear programming solver ppl_lpsol
and the program ppl_lcdd for vertex/facet enumeration of convex polyhedra.

%files utils
%{_bindir}/ppl_lcdd
%{_bindir}/ppl_lpsol
%{_bindir}/ppl_pips
%{_mandir}/man1/ppl_lcdd.1*
%{_mandir}/man1/ppl_lpsol.1*
%{_mandir}/man1/ppl_pips.1*

#-----------------------------------------------------------------------

%ifarch x86_64 %{ix86} ppc alpha aarch64
%package gprolog
# The `gprolog' package is not available on ppc64:
# the GNU Prolog interface must thus be disabled for that architecture.
Summary:	The GNU Prolog interface of the Parma Polyhedra Library
Group:		Development/Other
BuildRequires:	gprolog >= 1.2.19
Requires:	gprolog >= 1.2.19

%description gprolog
This package adds GNU Prolog support to the Parma Polyhedra Library (PPL).
Install this package if you want to use the library in GNU Prolog programs.

%files gprolog
%doc interfaces/Prolog/GNU/README.gprolog
%{_bindir}/ppl_gprolog
%{_datadir}/%{name}/ppl_gprolog.pl
%{_libdir}/%{name}/libppl_gprolog.so

#-----------------------------------------------------------------------

%package gprolog-static
Summary:	The static archive for the GNU Prolog interface of the Parma Polyhedra Library
Group:		Development/Other
Requires:	%{name}-gprolog = %{EVRD}

%description gprolog-static
This package contains the static archive for the GNU Prolog interface
of the Parma Polyhedra Library.

%files gprolog-static
%{_libdir}/%{name}/libppl_gprolog.a
%endif

#-----------------------------------------------------------------------

%if %{with java}
%package java
Summary:	The Java interface of the Parma Polyhedra Library
Group:		Development/Java
BuildRequires:	java-1.8.0-openjdk-devel
#java-devel >= 0:1.6.0
BuildRequires:	jpackage-utils
Requires:	java >= 1.6.0
Requires:	jpackage-utils
Requires:	%{libppl} = %{EVRD}

%description java
This package adds Java support to the Parma Polyhedra Library.
Install this package if you want to use the library in Java programs.

%files java
%doc interfaces/Java/README.java
%{_libdir}/%{name}/libppl_java.so
%{_libdir}/%{name}/ppl_java.jar

#-----------------------------------------------------------------------

%package java-javadoc
Summary:	Javadocs for %{name}-java
Group:		Development/Java
Requires:	%{name}-java = %{EVRD}
Requires:	jpackage-utils

%description java-javadoc
This package contains the API documentation for Java interface
of the Parma Polyhedra Library.

%files java-javadoc
%{_javadocdir}/%{name}-java
%endif

#-----------------------------------------------------------------------

%package docs
Summary:	Documentation for the Parma Polyhedra Library
Group:		Documentation
Requires:	%{libppl} = %{EVRD}

%description docs
This package contains all the documentations required by programmers
using the Parma Polyhedra Library (PPL).
Install this package if you want to program with the PPL.

%files docs
%doc %{_docdir}/%{name}/ChangeLog*
%doc %{_docdir}/%{name}/README.doc
%doc %{_docdir}/%{name}/fdl.*
%doc %{_docdir}/%{name}/gpl.pdf
%doc %{_docdir}/%{name}/gpl.ps.gz
%doc %{_docdir}/%{name}/ppl-user-%{version}-html/
%doc %{_docdir}/%{name}/ppl-user-*-interface-%{version}-html/
%doc %{_docdir}/%{name}/ppl-user-%{version}.pdf
%doc %{_docdir}/%{name}/ppl-user-*-interface-%{version}.pdf
%doc %{_docdir}/%{name}/ppl-user-%{version}.ps.gz
%doc %{_docdir}/%{name}/ppl-user-*-interface-%{version}.ps.gz

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
autoreconf -if
CPPFLAGS="$CPPFLAGS -I`swipl -dump-runtime-variables | grep PLBASE= | sed 's/PLBASE="\(.*\)";/\1/'`/include -I%{_includedir}/glpk"
# This is the explicit list of arches gprolog supports
%ifarch x86_64 %{ix86} ppc alpha aarch64
CPPFLAGS="$CPPFLAGS -I%{_libdir}/gprolog-`gprolog --version 2>&1 | head -1 | sed -e "s/.* \([^ ]*\)$/\1/g"`/include"
%endif
%configure \
	--docdir=%{_docdir}/%{name} \
	--enable-shared \
	--enable-static \
	--disable-rpath \
	--enable-interfaces="c++ c gnu_prolog swi_prolog yap_prolog java" \
	CPPFLAGS="$CPPFLAGS"
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make_build

%install
%make_install

# In order to avoid multiarch conflicts when installed for multiple
# architectures (e.g., i386 and x86_64), we rename the header files
# of the ppl-devel and ppl-pwl-devel packages.  They are substituted with
# ad-hoc switchers that select the appropriate header file depending on
# the architecture for which the compiler is compiling.

# Since our header files only depend on the sizeof things, we smash
# ix86 onto i386 and arm* onto arm.  For the SuperH RISC engine family,
# we smash sh3 and sh4 onto sh.
normalized_arch=%{_arch}
%ifarch %{ix86}
normalized_arch=i386
%endif
%ifarch %{arm}
normalized_arch=arm
%endif
%ifarch sh3 sh4
normalized_arch=sh
%endif

mv %{buildroot}/%{_includedir}/ppl.hh %{buildroot}/%{_includedir}/ppl-${normalized_arch}.hh
install -m644 %{SOURCE1} %{buildroot}/%{_includedir}/ppl.hh
mv %{buildroot}/%{_includedir}/ppl_c.h %{buildroot}/%{_includedir}/ppl_c-${normalized_arch}.h
install -m644 %{SOURCE2} %{buildroot}/%{_includedir}/ppl_c.h

%if %{with java}
# Install the Javadocs for ppl-java.
mkdir -p %{buildroot}%{_javadocdir}
mv \
%{buildroot}/%{_docdir}/%{name}/ppl-user-java-interface-%{version}-html \
%{buildroot}%{_javadocdir}/%{name}-java
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15901 |21mr|ppmtocpva-1.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts PPM files to the format used by the Citizen Printiva series printers
Name:		ppmtocpva
Version:	1.0
Release:	21
License:	GPLv2+
Group:		System/Printing
Url:		http://www.stevens-bradfield.com/ppmtomd/
Source0:	http://www.dcs.ed.ac.uk/home/jcb/ppmtocpva-%{version}.tar.bz2
Patch0:		ppmtocpva-1.0-includes.patch
Patch1:		ppmtocpva-1.0-netpbm.patch
Patch2:		ppmtocpva-1.0-LDFLAGS.diff
BuildRequires:	netpbm-devel

%description
This program converts PPM files to the format used by the Citizen Printiva
series printers and some printers of the Alps MD series.

%files
%doc README
%attr(0755,root,root) %{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .includes
%patch1 -p1
%patch2 -p0

# fix attribs
chmod 644 *

%build

%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}

install -m0755 ppmtocpva %{buildroot}%{_bindir}/
install -m0755 cpva-colour %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15902 |21mr|ppmtomd-1.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Driver for the Alps Micro-Dry printers and similars
Name:		ppmtomd
Version:	1.6
Release:	8
License:	GPLv2+
Group:		System/Printing
Url:		http://www.stevens-bradfield.com/ppmtomd/
Source0:	http://www.stevens-bradfield.com/ppmtomd/%{name}-%{version}.tar.gz
Patch0:		ppmtomd-mdv_conf.diff
Patch1:		ppmtomd-1.5-LDFLAGS.diff
Patch2:		ppmtomd-1.6-mdv-fix-netpbm-includes.patch
BuildRequires:	netpbm-devel

%description
A program to convert images from PPM format into the control language for the
Alps Micro-Dry printers, at various times sold by Citizen, Alps and Okidata.

This program drives the Alps Micro-Dry series of printers, including the
Citizen Printiva series, Alps MD series, and Oki DP series (but not yet the
DP-7000).

In the current release, the program drives the standard mode fairly well; the
dye sublimation mode very well; and the VPhoto mode reasonably well.

It supports all the colours available up to the DP-5000, including the foil
colours.

%files
%doc LICENCE README
%attr(0755,root,root) %{_bindir}/*
%attr(0644,root,root) %{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p0
%patch2 -p1

# fix attribs
chmod 644 *

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1

install -m0755 ppmtomd %{buildroot}%{_bindir}/
install -m0644 ppmtomd.man %{buildroot}%{_mandir}/man1/ppmtomd.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15903 |21mr|ppp-2.4.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined %nil

Summary:	The PPP daemon and documentation
Name:		ppp
Version:	2.4.9
Release:	3
License:	BSD-like
Group:		System/Servers
Url:		http://www.samba.org/ppp/
Source0:	https://github.com/paulusmack/ppp/archive/%{version}.tar.gz
Source1:	ppp-pam.conf
Source2:	ppp-logrotate.conf
Source3:	ppp-tmpfiles.conf
Source4:	ip-down
Source5:	ip-down.ipv6to4
Source6:	ip-up
Source7:	ip-up.ipv6to4
Source8:	ipv6-down
Source9:	ipv6-up
Source10:	ifup-ppp
Source11:	ifdown-ppp
Source12:	ppp-watch.tar.xz

Patch0002:	ppp-2.4.9-config.patch
Patch0004:	0004-doc-add-configuration-samples.patch
Patch0005:	ppp-2.4.9-build-sys-don-t-hardcode-LIBDIR-but-set-it-according.patch
Patch0006:	0006-scritps-use-change_resolv_conf-function.patch
Patch0011:	0011-build-sys-don-t-put-connect-errors-log-to-etc-ppp.patch
Patch0012:	ppp-2.4.8-pppd-we-don-t-want-to-accidentally-leak-fds.patch
Patch0013:	ppp-2.4.9-everywhere-O_CLOEXEC-harder.patch
Patch0014:	0014-everywhere-use-SOCK_CLOEXEC-when-creating-socket.patch
Patch0015:	0015-pppd-move-pppd-database-to-var-run-ppp.patch
Patch0016:	0016-rp-pppoe-add-manpage-for-pppoe-discovery.patch
Patch0018:	0018-scritps-fix-ip-up.local-sample.patch
Patch0020:	0020-pppd-put-lock-files-in-var-lock-ppp.patch
Patch0023:	0023-build-sys-install-rp-pppoe-plugin-files-with-standar.patch
Patch0024:	0024-build-sys-install-pppoatm-plugin-files-with-standard.patch
Patch0025:	ppp-2.4.8-pppd-install-pppd-binary-using-standard-perms-755.patch
Patch0026:	ppp-2.4.9-configure-cflags-allow-commas.patch
Patch0027:	fix-eap-tls-nested-e2k.patch

Patch100:	CVE-2022-4603.patch

BuildRequires:	libtool
%ifnarch %{e2k}
BuildRequires:	atm-devel
%endif
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pam-devel
BuildRequires:	openssl-devel
BuildRequires:	pkgconfig(systemd)
BuildRequires:	glib2-devel
Requires(post):	systemd
Requires:	glibc >= 2.0.6
Requires:	initscripts >= 9.54
Conflicts:	%{name} < 2.4.9
Obsoletes:	%{name} < 2.4.9
Conflicts:	%{name}-dhcp < 2.4.9
Obsoletes:	%{name}-dhcp < 2.4.9

%description
The ppp package contains the PPP (Point-to-Point Protocol) daemon
and documentation for PPP support.  The PPP protocol provides a
method for transmitting datagrams over serial point-to-point links.

The ppp package should be installed if your machine need to support
the PPP protocol.

%files
%doc FAQ README README.cbcp README.linux README.MPPE README.MSCHAP80 README.MSCHAP81 README.pwfd README.pppoe scripts sample README.eap-tls
%{_sbindir}/chat
%{_sbindir}/pppd
%{_sbindir}/pppdump
%{_sbindir}/pppoe-discovery
%{_sbindir}/pppstats
%{_sbindir}/ppp-watch
%dir %{_sysconfdir}/ppp
%{_sysconfdir}/ppp/ip-up
%{_sysconfdir}/ppp/ip-down
%{_sysconfdir}/ppp/ip-up.ipv6to4
%{_sysconfdir}/ppp/ip-down.ipv6to4
%{_sysconfdir}/ppp/ipv6-up
%{_sysconfdir}/ppp/ipv6-down
%{_mandir}/man8/chat.8*
%{_mandir}/man8/pppd.8*
%{_mandir}/man8/pppdump.8*
%{_mandir}/man8/pppd-radattr.8*
%{_mandir}/man8/pppd-radius.8*
%{_mandir}/man8/pppstats.8*
%{_mandir}/man8/pppoe-discovery.8*
%{_mandir}/man8/ppp-watch.8*
%{_libdir}/pppd
%ghost %dir %{_rundir}/ppp
%ghost %dir %{_rundir}/lock/ppp
%dir %{_sysconfdir}/logrotate.d
%attr(700, root, root) %dir %{_localstatedir}/log/ppp
%config(noreplace) %{_sysconfdir}/ppp/eaptls-client
%config(noreplace) %{_sysconfdir}/ppp/eaptls-server
%config(noreplace) %{_sysconfdir}/ppp/chap-secrets
%config(noreplace) %{_sysconfdir}/ppp/options
%config(noreplace) %{_sysconfdir}/ppp/pap-secrets
%config(noreplace) %{_sysconfdir}/pam.d/ppp
%config(noreplace) %{_sysconfdir}/logrotate.d/ppp
%{_tmpfilesdir}/ppp.conf
%{_sysconfdir}/sysconfig/network-scripts/ifdown-ppp
%{_sysconfdir}/sysconfig/network-scripts/ifup-ppp

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf

#----------------------------------------------------------------------------

%package devel
Summary:	PPP devel files
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
PPP over ATM plugin for %{name}.

%files devel
%doc README*
%{_includedir}/pppd/*

#----------------------------------------------------------------------------

%package pppoatm
Summary:	PPP over ATM plugin for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description pppoatm
PPP over ATM plugin for %{name}.

%files pppoatm
%doc README
%{_libdir}/pppd/%{version}/pppoatm.so

#----------------------------------------------------------------------------

%package pppoe
Summary:	PPP over ethernet plugin for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description pppoe
PPP over ethernet plugin for %{name}.

%files pppoe
%doc README
%{_libdir}/pppd/%{version}/rp-pppoe.so
%{_sbindir}/pppoe-discovery

#----------------------------------------------------------------------------

%package radius
Summary:	Radius plugin for %{name}
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	radiusclient-ng

%description radius
Radius plugin for %{name}.

%files radius
%doc README
%{_libdir}/pppd/%{version}/rad*.so
%{_mandir}/man8/*rad*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

tar -xJf %{SOURCE12}

%build
%configure --cflags="$RPM_OPT_FLAGS -fPIC -Wall -fno-strict-aliasing"
%make_build LDFLAGS="%{ldflags} -pie"
%make_build -C ppp-watch LDFLAGS="%{ldflags} -pie"

%install
make LIBDIR=%{buildroot}/%{_libdir}/pppd/%{version}/ INSTROOT=%{buildroot} install install-etcppp
find scripts -type f | xargs chmod a-x
make ROOT=%{buildroot} -C ppp-watch install
# create log files dir
install -d %{buildroot}%{_localstatedir}/log/ppp
# install pam config
install -d %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/ppp
# install logrotate script
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 -p %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/ppp
# install tmpfiles drop-in
install -d %{buildroot}%{_tmpfilesdir}
install -m 644 -p %{SOURCE3} %{buildroot}%{_tmpfilesdir}/ppp.conf
# install scripts (previously owned by initscripts package)
install -d %{buildroot}%{_sysconfdir}/ppp
install -p %{SOURCE4} %{buildroot}%{_sysconfdir}/ppp/ip-down
install -p %{SOURCE5} %{buildroot}%{_sysconfdir}/ppp/ip-down.ipv6to4
install -p %{SOURCE6} %{buildroot}%{_sysconfdir}/ppp/ip-up
install -p %{SOURCE7} %{buildroot}%{_sysconfdir}/ppp/ip-up.ipv6to4
install -p %{SOURCE8} %{buildroot}%{_sysconfdir}/ppp/ipv6-down
install -p %{SOURCE9} %{buildroot}%{_sysconfdir}/ppp/ipv6-up
install -d %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/
install -p %{SOURCE10} %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifup-ppp
install -p %{SOURCE11} %{buildroot}%{_sysconfdir}/sysconfig/network-scripts/ifdown-ppp
# ghosts
mkdir -p %{buildroot}%{_rundir}/ppp
mkdir -p %{buildroot}%{_rundir}/lock/ppp


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15904 |21mr|pps-tools-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	LinuxPPS user-space tools
Name:		pps-tools
Version:	1.0.2
Release:	1
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/redlab-i/pps-tools
Source0:	https://github.com/redlab-i/pps-tools/archive/v1.0.2.tar.gz?/%{name}-%{version}.tar.gz

%description
This package includes the LinuxPPS user-space tools.

%files
%doc COPYING
%{_bindir}/pps*

#------------------------------------------------------------------

%package devel
Summary:	LinuxPPS PPSAPI header file
Group:		Development/C

%description devel
This package includes the header needed to compile PPSAPI (RFC-2783)
applications.

%files devel
%doc COPYING
%{_includedir}/sys/timepps.h

#------------------------------------------------------------------

%prep
%setup -q

%build
%make 

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_includedir}/sys
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15905 |21mr|pptp-linux-1.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	VPN client 
Name:		pptp-linux
Version:	1.10.0
Release:	6
License:	GPLv2+
Group:		Networking/Other
Url:		http://pptpclient.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/pptpclient/pptp-%{version}.tar.gz
Source1:	pptp-command
Source2:	options.pptp
Source3:	pptp_fe.pl
Source4:	xpptp_fe.pl
Source6:	pptp-tmpfs.conf
Requires:	ppp >= 2.4.3
Conflicts:	pptp-adsl-alcatel
%rename		pptp-client

%description
PPTP-linux allows you to connect to a PPTP server from a Linux or other
Unix box (ports of pptp-linuxto other Unix variants should be trivial,
but have not yet been performed). See the IPfwd page
(http://www.pdos.lcs.mit.edu/~cananian/Projects/IPfwd) for information
on tunnelling PPTP through Linux firewalls.

%files
%doc AUTHORS NEWS README TODO USING Documentation/[D,P]*
%{_sbindir}/pptp
%{_mandir}/man8/pptp.8*
%{_prefix}/lib/tmpfiles.d/pptp.conf
%config(noreplace) %attr(0600,root,root) %{_sysconfdir}/ppp/options.pptp
%attr(0755,root,root) %dir %{_sysconfdir}/pptp.d

#------------------------------------------------------------------

%package setup
Summary:	PPTP Tunnel Configuration Script
Group:		Networking/Other
Requires:	%{name} = %{EVRD}

%description setup
This package provides a simple configuration script for setting up PPTP
tunnels.

%files setup
%{_sbindir}/pptpsetup
%{_mandir}/man8/pptpsetup.8*

#------------------------------------------------------------------

%package -n pptp-command
Summary:       PPTP Tunnel Command Line Script
Group:         Networking/Other
Requires:      %{name} = %{EVRD}
Conflicts:     %{name} < 1.10.0-3

%description -n pptp-command
This package provides a command line tool for using PPTP.

%files -n pptp-command
%{_sbindir}/pptp-command

#------------------------------------------------------------------

%prep
%setup -qn pptp-%{version}
%autopatch -p1

# Pacify rpmlint
perl -pi -e 's/install -o root -m 555 pptp/install -m 755 pptp/;' Makefile
# use our CFLAGS and LDFLAGS
sed -i -e "/CFLAGS  =/ c\CFLAGS = %{optflags}" Makefile
sed -i -e "/LDFLAGS =/ c\LDFLAGS = %{ldflags}" Makefile
sed -i "s!gcc!%{__cc}!g" Makefile
# adjust ip path
sed -i 's#/bin/ip#/sbin/ip#' routing.c Makefile

%build
%make_build

%install
%make_install

install -d -m 750 %{buildroot}%{_localstatedir}/run/pptp
install -d %{buildroot}%{_sysconfdir}/pptp.d
install -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/ppp/options.pptp
install -m644 pptp.8 -D %{buildroot}%{_mandir}/man8/pptp.8
install -d -m 755 %{buildroot}%{_prefix}/lib/tmpfiles.d
install -p -m 644 %{SOURCE6} %{buildroot}%{_prefix}/lib/tmpfiles.d/pptp.conf
install -m755 %{SOURCE1} -D %{buildroot}%{_sbindir}/pptp-command

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15906 |21mr|prelink-20130503-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 20130503

Summary:	An ELF prelinking utility
Name:		prelink
Epoch:		1
Version:	20130503
Release:	1
License:	GPLv2+
Group:		System/Base
# actually, ripped from latest srpm from
# http://mirrors.kernel.org/fedora/development/15/source/SRPMS/prelink-0.4.4-1.fc15.src.rpm
Source0:	http://people.redhat.com/jakub/prelink/%{name}-%{date}.tar.bz2
Source2:	prelink.conf
Source3:	prelink.cron
Source4:	prelink.sysconfig
Source5:	prelink.macros
Source6:	prelink.logrotate
Patch0:		prelink-0.5.0-init.patch
Patch1:		fix-libgelf-linking.patch
BuildRequires:	perl
BuildRequires:	elfutils-static-devel
BuildRequires:	glibc-static-devel
Requires:	coreutils
Requires:	gawk
Requires:	grep
Requires:	findutils
Requires:	util-linux
Requires(post):	rpm-helper

%description
The prelink package contains a utility which modifies ELF shared libraries
and executables, so that far fewer relocations need to be resolved at runtime
and thus programs come up faster.

%files
%doc doc/prelink.pdf
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/prelink.conf
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/sysconfig/prelink
%verify(not md5 size mtime) %{_sysconfdir}/prelink.cache
%dir %{_sysconfdir}/prelink.conf.d
%config(noreplace) %{_rpmmacrodir}/*%{name}*
%{_sysconfdir}/cron.daily/prelink
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_sbindir}/prelink
%{_bindir}/execstack
%{_mandir}/man8/prelink.8*
%{_mandir}/man8/execstack.8*
%dir %{_var}/log/prelink
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_localstatedir}/lib/misc/prelink.full
%attr(0644,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_localstatedir}/lib/misc/prelink.force
%attr(0600,root,root) %verify(not md5 size mtime) %ghost %config(missingok,noreplace) %{_var}/log/prelink/prelink.log

%post
%create_ghostfile %{_localstatedir}/lib/misc/prelink.full root root 644
%create_ghostfile %{_localstatedir}/lib/misc/prelink.force root root 644
%create_ghostfile %{_var}/log/prelink/prelink.log root root 600

%preun
if [ "$1" = "0" ]; then
 echo undo prelinking, it might take some time
 %{_sbindir}/prelink -ua 2> /dev/null
fi

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}
%patch0 -p1 -b .init
%patch1 -p1 -b .libgelf~
cp -a %{SOURCE2} %{SOURCE3} %{SOURCE4} .
perl -MConfig -e 'print "-l $Config{archlib}\n-l $Config{installvendorarch}\n"' >> prelink.conf
echo -e "-l %{py2_platsitedir}\\n-l %{py2_platlibdir}/lib-dynload\\n"|sed -e 's#%{py2_ver}#*#g' >> prelink.conf
sed -i -e '/^prelink_LDADD/s/$/ -lpthread/' src/Makefile.{am,in}

%build
%configure --disable-shared
%make

%install
%makeinstall_std
install -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/prelink.conf
install -m755 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/cron.daily/prelink
install -m644 %{SOURCE4} -D %{buildroot}%{_sysconfdir}/sysconfig/prelink
%install_macro %{name} %{SOURCE5}
install -m644 %{SOURCE6} -D %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

mkdir -p %{buildroot}{%{_localstatedir}/lib/misc,%{_var}/log/prelink}
touch %{buildroot}%{_localstatedir}/lib/misc/prelink.full
touch %{buildroot}%{_localstatedir}/lib/misc/prelink.force
touch %{buildroot}%{_var}/log/prelink/prelink.log

mkdir -p %{buildroot}%{_sysconfdir}/prelink.conf.d
touch %{buildroot}%{_sysconfdir}/prelink.cache

%check
%define testcc CC='gcc -Wl,--add-needed' CXX='g++ -Wl,--add-needed'
echo ====================TESTING=========================
#make -C testsuite check-harder %{testcc}
#make -C testsuite check-cycle %{testcc}
echo ====================TESTING END=====================
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15907 |21mr|preload-0.6.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Adaptive readahead daemon
Name:		preload
Version:	0.6.4
Release:	16
License:	GPLv2+
Group:		System/Base
Url:		http://preload.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}.service
# (fc) 0.6.3-2mdv start after dm and only in graphical login
Patch0:		preload-0.6.3-prcsys.patch
BuildRequires:	help2man
BuildRequires:	pkgconfig(glib-2.0)
Requires:	logrotate
Requires(post,preun,postun):	systemd

%description
preload is an adaptive readahead daemon that prefetches files mapped by
applications from the disk to reduce application startup time. It runs as a
daemon and gathers information about processes running on the system and
shared-objects that they use. This information is saved in a file to keep
across runs of preload.

%files
%doc README AUTHORS ChangeLog TODO THANKS NEWS
%doc doc/index.txt doc/proposal.txt
%{_sbindir}/preload
%{_datadir}/man/man8/preload.8*
%{_unitdir}/%{name}.service
%config(noreplace) %{_sysconfdir}/preload.conf
%config(noreplace) %{_sysconfdir}/sysconfig/preload
%config(noreplace) %{_sysconfdir}/logrotate.d/preload
%attr(0644,root,root) %ghost %config(missingok,noreplace) %{_var}/log/preload.log
%attr(0644,root,root) %ghost %config(missingok,noreplace) %{_var}/lib/preload/preload.state
%attr(0755,root,root) %dir %{_var}/lib/preload

%post
%systemd_post %{name}

%preun
%systemd_preun %{name}

%postun
%systemd_postun_with_restart %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .prcsys

%build
%configure

#parallel build is broken
%make -j1

%install
%makeinstall_std

# already as %%doc
rm -f %{buildroot}/%{_docdir}/preload-%{version}/index.txt
rm -f %{buildroot}/%{_docdir}/preload-%{version}/proposal.txt

# Use systemd service instead
rm -rf %{buildroot}%{_sysconfdir}/rc.d
install -Dm644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15908 |21mr|prelude-lml-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _localstatedir %{_var}
%define _disable_ld_no_undefined 1

Summary:	Prelude Hybrid Intrusion Detection System - Log Analyzer Sensor
Name:		prelude-lml
Version:	5.2.0
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.prelude-siem.org/
Source0:	https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz
Source2:	%{name}.service
BuildRequires:	chrpath
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libprelude)
Requires(post,preun):	rpm-helper
%rename		prelude-nids

%description
The Prelude Log Monitoring Lackey (LML) is the host-based sensor program part
of the Prelude Hybrid IDS suite. It can act as a centralized log collector for
local or remote systems, or as a simple log analyzer (such as swatch). It can
run as a network server listening on a syslog port or analyze log files. It
supports logfiles in the BSD syslog format and is able to analyze any logfile
by using the PCRE library. It can apply logfile-specific analysis through
plugins such as PAX. It can send an alert to the Prelude Manager when a
suspicious log entry is detected.

%files
%doc AUTHORS COPYING ChangeLog HACKING.README NEWS README
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0755,root,root) %{_unitdir}/%{name}.service
%dir %{_libdir}/%{name}
%attr(0755,root,root) %{_libdir}/%{name}/*.so
%dir %{_localstatedir}/lib/%{name}
%dir %{_sysconfdir}/%{name}
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}/*.rules
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}/*.conf

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%package devel
Summary:	Libraries, includes, etc. to develop Prelude Log Analyzer Sensor
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
The Prelude Log Monitoring Lackey (LML) is the host-based sensor program part
of the Prelude Hybrid IDS suite. It can act as a centralized log collector for
local or remote systems, or as a simple log analyzer (such as swatch). It can
run as a network server listening on a syslog port or analyze log files. It
supports logfiles in the BSD syslog format and is able to analyze any logfile
by using the PCRE library. It can apply logfile-specific analysis through
plugins such as PAX. It can send an alert to the Prelude Manager when a
suspicious log entry is detected. 
The devel headers.

%files devel
%doc AUTHORS COPYING ChangeLog HACKING.README NEWS README
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
perl -pi -e 's|/var/log/apache2|%{_logdir}/httpd|g' prelude-lml.conf.in
cp %{SOURCE2} %{name}.service

%build
%configure \
	--bindir=%{_sbindir} \
	--enable-shared \
	--disable-static
%make

%install
install -d %{buildroot}%{_localstatedir}/%{name}
%makeinstall_std

install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -d %{buildroot}%{_unitdir}
install -m0755 prelude-lml.service %{buildroot}%{_unitdir}/%{name}.service

chrpath -d %{buildroot}%{_sbindir}/prelude-lml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15909 |21mr|prelude-manager-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Prelude Hybrid Intrusion Detection System Manager
Name:		prelude-manager
Version:	5.2.0
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.prelude-siem.org/
Source0:	https://www.prelude-siem.org/pkg/src/%{version}/%{name}-%{version}.tar.gz
Source2:	%{name}-tmpfiles.conf
Source3:	prelude-manager.sysusers.conf
Source4:	prelude-manager.service
BuildRequires:	chrpath
BuildRequires:	libtool
BuildRequires:	preludedb-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libprelude)
BuildRequires:	pkgconfig(libxml-2.0)
Requires:	prelude-tools
Requires:	tcp_wrappers
Requires:	python3-prelude
Requires(pre):	/bin/systemd-sysusers
Obsoletes:	prelude-doc < 1.0.2-7
%rename		prelude

%description
Prelude Manager is the main program of the Prelude Hybrid IDS
suite. It is a multithreaded server which handles connections from
the Prelude sensors. It is able to register local or remote
sensors, let the operator configure them remotely, receive alerts,
and store alerts in a database or any format supported by
reporting plugins, thus providing centralized logging and
analysis. It also provides relaying capabilities for failover and
replication. The IDMEF standard is used for alert representation.
Support for filtering plugins allows you to hook in different
places in the Manager to define custom criteria for alert relaying
and logging.

%files
%doc AUTHORS COPYING ChangeLog HACKING.README NEWS README README.urpmi
%attr(0755,root,root) %{_unitdir}/%{name}.service
%attr(0755,root,root) %{_sbindir}/%{name}
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/decodes
%dir %{_libdir}/%{name}/filters
%dir %{_libdir}/%{name}/reports
%attr(0755,root,root) %{_libdir}/%{name}/filters/idmef-criteria.so
%attr(0755,root,root) %{_libdir}/%{name}/filters/thresholding.so
%attr(0755,root,root) %{_libdir}/%{name}/reports/debug.so
%attr(0755,root,root) %{_libdir}/%{name}/reports/smtp.so
%attr(0755,root,root) %{_libdir}/%{name}/reports/textmod.so
%attr(0755,root,root) %{_libdir}/%{name}/reports/relaying.so
%attr(0755,root,root) %{_libdir}/%{name}/reports/script.so
%attr(0755,root,root) %{_libdir}/%{name}/decodes/normalize.so
%attr(0750,prelude-manager,prelude-manager) %dir %{_var}/spool/%{name}
%attr(0750,prelude-manager,prelude-manager) %dir %{_var}/spool/%{name}/scheduler
%dir %attr(0750,prelude-manager,prelude-manager) %{_logdir}/%{name}
%ghost %attr(0640,prelude-manager,prelude-manager) %{_logdir}/%{name}/prelude.log
%ghost %attr(0640,prelude-manager,prelude-manager) %{_logdir}/%{name}/prelude-xml.log
%dir %attr(0750,prelude-manager,prelude-manager) %{_localstatedir}/lib/%{name}
%dir %attr(0750,prelude-manager,prelude-manager) %{_sysconfdir}/prelude/profile/%{name}
%dir %{_sysconfdir}/%{name}
%attr(0640,root,prelude-manager) %config(noreplace) %{_sysconfdir}/%{name}/*.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%{_mandir}/man1/prelude-manager.1*
%{_tmpfilesdir}/%{name}.conf
%{_docdir}/prelude-manager/smtp/template.example
%{_sysusersdir}/%{name}.conf

%pre
%sysusers_create_package %{name} %{SOURCE3}

%post
%tmpfiles_create %{name}
%create_ghostfile %{_logdir}/prelude-manager/prelude.log prelude-manager prelude-manager 640
%create_ghostfile %{_logdir}/prelude-manager/prelude-xml.log prelude-manager prelude-manager 640
[ ! -f %{_sysconfdir}/prelude/profile/%{name}/analyzerid ] && [ -x %{_bindir}/prelude-adduser ] && \
  %{_bindir}/prelude-adduser add prelude-manager --uid `%{__id} -u prelude-manager` --gid `%{__id} -g prelude-manager` >/dev/null 2>&1 || :
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service

#----------------------------------------------------------------------------

%package db-plugin
Summary:	Database report plugin for Prelude IDS Manager
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description db-plugin
Prelude Manager is the main program of the Prelude Hybrid IDS
suite. It is a multithreaded server which handles connections from
the Prelude sensors. It is able to register local or remote
sensors, let the operator configure them remotely, receive alerts,
and store alerts in a database or any format supported by
reporting plugins, thus providing centralized logging and
analysis. It also provides relaying capabilities for failover and
replication. The IDMEF standard is used for alert representation.
Support for filtering plugins allows you to hook in different
places in the Manager to define custom criteria for alert relaying
and logging.

This plugin authorize prelude-manager to write to database

%files db-plugin
%attr(0755,root,root) %{_libdir}/%{name}/reports/db.so

#----------------------------------------------------------------------------

%package xml-plugin
Summary:	XML report plugin for Prelude IDS Manager
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description xml-plugin
Prelude Manager is the main program of the Prelude Hybrid IDS
suite. It is a multithreaded server which handles connections from
the Prelude sensors. It is able to register local or remote
sensors, let the operator configure them remotely, receive alerts,
and store alerts in a database or any format supported by
reporting plugins, thus providing centralized logging and
analysis. It also provides relaying capabilities for failover and
replication. The IDMEF standard is used for alert representation.
Support for filtering plugins allows you to hook in different
places in the Manager to define custom criteria for alert relaying
and logging.

This plugin adds XML logging capabilities to the Prelude IDS
Manager.

%files xml-plugin
%attr(0755,root,root) %{_libdir}/%{name}/reports/xmlmod.so
%{_datadir}/%{name}/xmlmod/idmef-message.dtd

#----------------------------------------------------------------------------

%package devel
Summary:	Libraries, includes, etc. to develop Prelude IDS Manager plugins
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{name}-db-plugin = %{EVRD}
Requires:	%{name}-xml-plugin = %{EVRD}

%description devel
Prelude Manager is the main program of the Prelude Hybrid IDS
suite. It is a multithreaded server which handles connections from
the Prelude sensors. It is able to register local or remote
sensors, let the operator configure them remotely, receive alerts,
and store alerts in a database or any format supported by
reporting plugins, thus providing centralized logging and
analysis. It also provides relaying capabilities for failover and
replication. The IDMEF standard is used for alert representation.
Support for filtering plugins allows you to hook in different
places in the Manager to define custom criteria for alert relaying
and logging.

Install this package if you want to build Prelude IDS Manager
Plugins.

%files devel
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
perl -pi -e "s|\@prefix\@%{_logdir}/|%{_logdir}/%{name}/|g" %{name}.conf*
perl -pi -e "s|/lib\b|/%{_lib}|g" configure.in

cp %{SOURCE4} prelude-manager.service

%build
autoreconf -fi
%configure \
	--disable-static \
	--enable-shared \
	--localstatedir=%{_var}

# fix linkage to the shared wrapper libs
find -name "Makefile" | %{_bindir}/xargs %{__perl} -pi -e "s|^LIBWRAP_LIBS.*|LIBWRAP_LIBS = -L%{_libdir} -lwrap -lnsl|g"
find -name "Makefile" | %{_bindir}/xargs %{__perl} -pi -e "s|-L%{_libdir} %{_libdir}/libwrap\.a -lnsl|-L%{_libdir} -lwrap -lnsl|g"

%make

%install
%makeinstall_std

install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -d %{buildroot}%{_sysconfdir}/prelude/profile/%{name}
install -d %{buildroot}%{_var}/spool/%{name}/scheduler

install -d %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_sbindir}/%{name}

%{_bindir}/chrpath -d %{buildroot}%{_libdir}/%{name}/reports/db.so

# install init script
install -d %{buildroot}%{_unitdir}
install -m0755 prelude-manager.service %{buildroot}%{_unitdir}/%{name}.service

# tmpfiles
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# fix logrotate stuff
install -d %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} << EOF
%{_logdir}/%{name}/prelude.log %{_logdir}/%{name}/prelude-xml.log {
    missingok
    postrotate
        [ -f %{_var}/lock/subsys/%{name} ] && %{_unitdir}/%{name} restart
    endscript
}
EOF

# make the logdir
install -d %{buildroot}%{_logdir}/%{name}
touch %{buildroot}%{_logdir}/%{name}/prelude.log
touch %{buildroot}%{_logdir}/%{name}/prelude-xml.log

# fix a README.urpmi
cat > README.urpmi << EOF
If you want database support (required for prewikka),
you should install a preludedb package such as preludedb-mysql and
then do something like the following:

%{_bindir}/mysqladmin create prelude
echo "GRANT ALL PRIVILEGES ON prelude.* TO prelude@'localhost' IDENTIFIED BY 'prelude';" | %{_bindir}/mysql -h localhost
%{_bindir}/mysql -h localhost -u prelude prelude -p < %{_datadir}/libpreludedb/classic/mysql.sql
%{_bindir}/mysql -h localhost -u prelude prelude -p < %{_datadir}/libpreludedb/classic/addIndices.sql
EOF

rm -f %{buildroot}%{_libdir}/%{name}/filters/*.*a
rm -f %{buildroot}%{_libdir}/%{name}/reports/*.*a
rm -f %{buildroot}%{_libdir}/%{name}/decodes/*.*a

# install sysuser config
install -d %{buildroot}/%{_sysusersdir}
install -m0644 %{SOURCE3} %{buildroot}/%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15910 |21mr|primitive-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          primitive
Version:       1.3
Release:       7
Summary:       Utility methods for Java's primitive types
# DualPivotQuicksorts.java.ft is also Copyright 2009, 2015, Oracle and/or its 
# affiliates.
# TimSorts.java.ft is also Copyright 2009, 2013, Oracle and/or its affiliates,
# and Copyright 2009 Google Inc.
# GNU General Public License v2.0 or later, with Classpath exception
License:       GPLv2 with exceptions
URL:           https://github.com/mintern-java/%{name}/
Source0:       https://github.com/mintern-java/%{name}/archive/%{version}.tar.gz
# https://bugzilla.redhat.com/show_bug.cgi?id=1212672
Source1:       fmpp.sh

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
# BuildRequires: mvn(com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin)
BuildRequires: mvn(net.sourceforge.fmpp:fmpp)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Primitive provides utility methods for functionality related to
primitive types. Currently, the only functionality is the
ability to sort primitive arrays using custom comparators.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -qn %{name}-%{version}

%pom_remove_plugin com.googlecode.fmpp-maven-plugin:fmpp-maven-plugin

%mvn_file :%{name} %{name}

%build
# Task info: http://koji.fedoraproject.org/koji/taskinfo?taskID=13658423
mkdir src/main/java
sh %{SOURCE1} -C src/main/fmpp/Primitive.fmpp -S src/main/fmpp/templates -O src/main/java
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.md README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15911 |21mr|printer-driver-oki-1.0.1-1.git9f48d.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 9f48d5a6c5938126a5aa91a902668aa877c3c22b
%define commit_short %(echo %{commit} | head -c 5)

# Shell built-in `command -v` is called in %%prep, ensure that shell is the same as shebangs
# in scripts where we change paths to the result of shell built-in `command -v`
%global __spec_prep_shell /bin/sh

Name: printer-driver-oki
Summary: CUPS filters and drivers supporting OKI Data printers
Group: System/Printing
License: GPL-2.0
Version: 1.0.1
Release: 1.git%{commit_short}.4
Url: https://github.com/rbalint/printer-driver-oki
Source0: https://github.com/rbalint/printer-driver-oki/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# see comment in %%prep
Source1: pcl.diff
BuildArch: noarch
BuildRequires: /bin/sh
BuildRequires: coreutils
# alternatives symlink /usr/bin/gs -> gsc
Requires: /usr/bin/gsc
Requires: coreutils
Requires: grep
Requires: sed
# this is cups itself, paths are hardcoded, ensure that they exist
Requires: /usr/lib/cups/filter/rastertohp
# XXX Hardcoded but seems to not exist in modern CUPS
# Used to set $GSCRIPT_LIB in rastertookidotmatrix
#Requires: /usr/share/cups/fonts

%description
%{summary}

%files
/usr/lib/cups/filter/okijobaccounting
/usr/lib/cups/filter/rastertookidotmatrix
/usr/lib/cups/filter/rastertookimonochrome
# not upstream, rastertookidotmatrix + pcl.diff, for Kraftway KRP472 (OKI MFP472)
/usr/lib/cups/filter/rastertookipcl
%dir %{_datadir}/cups/model/oki
%{_datadir}/cups/model/oki/B2200PCL.ppd
%{_datadir}/cups/model/oki/B6300PS.ppd
%{_datadir}/cups/model/oki/B6500PS.ppd
%{_datadir}/cups/model/oki/B700PS.ppd
%{_datadir}/cups/model/oki/B930PS.ppd
%{_datadir}/cups/model/oki/C330PS.ppd
%{_datadir}/cups/model/oki/C3600PS.ppd
%{_datadir}/cups/model/oki/C6000PS.ppd
%{_datadir}/cups/model/oki/C610PS.ppd
%{_datadir}/cups/model/oki/C800PS.ppd
%{_datadir}/cups/model/oki/C900PS.ppd
%{_datadir}/cups/model/oki/MC56XPS.ppd
%{_datadir}/cups/model/oki/OK400PCL.ppd
%{_datadir}/cups/model/oki/OK400PS.ppd
%{_datadir}/cups/model/oki/OK4X1PSBR.ppd
%{_datadir}/cups/model/oki/ok361u1.ppd
%{_datadir}/cups/model/oki/ok400PSBP.ppd
%{_datadir}/cups/model/oki/okdotmatrix24.ppd
# not upstream, okdotmatrix24 + pcl.diff
%{_datadir}/cups/model/oki/okdotmatrix-pcl.ppd
%{_datadir}/cups/model/oki/okdotmatrix9.ppd
%{_datadir}/cups/model/oki/KRP472PCL.ppd

#---------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}

# OKI MFP472/Kraftway KRP472 supports PCL 6/5 only, does not support PostScript.
# Most filters produce postscript, but there is rastertookidotmatrix which calls gs
# to make a document in "epson" format. pcl.diff changes this script to produce PCL
# and removes settings of resolution from the PPD because small resolution
# do not make sense on non-matrix printers.

# make backups of original files
cp filters/rastertookidotmatrix filters/rastertookidotmatrix.orig
cp SFP/dotmatrix/dotmatrix/okdotmatrix24.ppd SFP/dotmatrix/dotmatrix/okdotmatrix24.ppd.orig
cp SFP/monochrome/desktop/MB400PCL/OK400PCL.ppd SFP/monochrome/desktop/MB400PCL/OK400PCL.ppd.orig
# patch them
patch -p1 < %{SOURCE1}
# rename patched ones to new files and move old ones back
mv filters/rastertookidotmatrix filters/rastertookipcl
mv SFP/dotmatrix/dotmatrix/okdotmatrix24.ppd SFP/dotmatrix/dotmatrix/okdotmatrix-pcl.ppd
mv filters/rastertookidotmatrix.orig filters/rastertookidotmatrix
cp SFP/dotmatrix/dotmatrix/okdotmatrix24.ppd.orig SFP/dotmatrix/dotmatrix/okdotmatrix24.ppd
mv SFP/monochrome/desktop/MB400PCL/OK400PCL.ppd SFP/monochrome/desktop/MB400PCL/KRP472PCL.ppd
mv SFP/monochrome/desktop/MB400PCL/OK400PCL.ppd.orig SFP/monochrome/desktop/MB400PCL/OK400PCL.ppd

# ensure working paths in filters/*
find . -type f | xargs sed -i \
	-e "s,/bin/cat,$(command -v cat),g" \
	-e "s,/usr/bin/cut,$(command -v cut),g" \
	-e "s,/bin/echo,$(command -v echo),g" \
	-e "s,/bin/grep,$(command -v grep),g" \
	-e "s,/bin/mktemp,$(command -v mktemp),g" \
	-e "s,/bin/rm,$(command -v rm),g" \
	-e "s,/bin/sed,$(command -v sed),g" \
	-e "s,/usr/bin/tr,$(command -v tr),g"

# XXX TODO
# filters/okijobaccounting parses /etc/group, how will it work with domain users?!

%build

%install
mkdir -p %{buildroot}/usr/lib/cups/filter
%makeinstall_std PREFIX=%{_prefix}
chmod 755 %{buildroot}/usr/lib/cups/filter/*
# move files to enable automatic detection in CUPS/system-config-printer/etc
mkdir -p %{buildroot}%{_datadir}/cups/model/oki
mv -v %{buildroot}%{_datadir}/ppd/okidata/* %{buildroot}%{_datadir}/cups/model/oki

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15912 |21mr|printer-driver-pstoricohddst-gdi-0-0.git505af9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 505af9a28e8504c448027c493525f094684ffe9d
%define commit_short %(echo %{commit} | head -c6)

Summary:	Printer driver for Ricoh printers understanding PJL+JBig
Name:		printer-driver-pstoricohddst-gdi
Version:	0
Release:	0.git%{commit_short}.1
License:	Public Domain
Group:		System/Printing
Url:		https://github.com/revisitor/ricoh-sp100
Source0:	https://github.com/revisitor/ricoh-sp100/archive/%{commit}.tar.gz?/ricoh-sp100-%{commit}.tar.gz
# https://github.com/revisitor/ricoh-sp100/pull/5
Patch0001:	0001-Safe-temporary-directory.patch
# Generate RPM provides
# 1284DeviceID seem to be incorrect either here or in printer-driver-rastertosag-gdi,
# the same provides are generated, but it should not cause problems
BuildRequires:	python3-cups
BuildArch:	noarch

# deps of bash script pstoricohddst-gdi
Requires:	bash
Requires:	/usr/bin/identify
Requires:	/usr/bin/inotifywait
Requires:	/usr/bin/gsc
Requires:	/usr/bin/pbmtojbg

%description
Printer driver for Ricoh printers understanding PJL+JBig:
* Ricoh Aficio SP 100
* Ricoh SP 112
* Ricoh SP 202SN
* Ricoh SP 204

%files
%license LICENSE
/usr/lib/cups/filter/pstoricohddst-gdi
# co-owned with other packages
%dir %{_datadir}/cups/model/ricoh
%{_datadir}/cups/model/ricoh/RICOH_Aficio_SP_100.ppd
%{_datadir}/cups/model/ricoh/RICOH_SP_112.ppd
%{_datadir}/cups/model/ricoh/RICOH_SP_202SN.ppd
%{_datadir}/cups/model/ricoh/RICOH_SP_204.ppd

#------------------------------------------------------------------

%prep
%autosetup -p1 -n ricoh-sp100-%{commit}
# remove blob driver and PPDs that use it
unlink rastertolilo
unlink ppd/RICOH_SP_210.ppd
unlink ppd/RICOH_SP_211.ppd

%install
mkdir -p %{buildroot}%{_datadir}/cups/model/ricoh
install -m644 ppd/* %{buildroot}%{_datadir}/cups/model/ricoh/
mkdir -p %{buildroot}/usr/lib/cups/filter
install -m755 pstoricohddst-gdi %{buildroot}/usr/lib/cups/filter/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15913 |21mr|printer-driver-rastertosag-gdi-3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Driver for printers with Sagem (SAG) hardware
Name:		printer-driver-rastertosag-gdi
Version:	3
Release:	3
License:	GPL
Group:		System/Printing
# Forked from https://www.openprinting.org/download/printing/rastertosag-gdi
# See also: https://salsa.debian.org/printing-team/rastertosag-gdi
Url:		https://abf.rosalinux.ru/import/printer-driver-rastertosag-gdi
Source10:	rastertosag-gdi.py
Source11:	rastertosag-gdi.drv
Source12:	rsp1100s.ppd
Source13:	rsp1000s.ppd
Source14:	xerox-template.ppd
Source15:	README.txt
# generator of provides postsriptdriver(), python3-cups
BuildRequires:	/usr/lib/rpm/postscriptdriver.prov
# it's a python script
BuildArch:	noarch
Provides:	rastertosag-gdi = %{EVRD}

%description
Driver for printers with Sagem (SAG) hardware

%files
%doc README.txt
/usr/lib/cups/filter/rastertosag-gdi
%{_datadir}/cups/drv/rastertosag-gdi.drv
# co-owned with postscript-ppds
%dir %{_datadir}/cups/model/ricoh
%{_datadir}/cups/model/ricoh/rsp1000s.ppd
%{_datadir}/cups/model/ricoh/rsp1100s.ppd
# co-owned with postscript-ppds
%dir %{_datadir}/cups/model/xerox
%{_datadir}/cups/model/xerox/Phaser_3100MFP.ppd
#------------------------------------------------------------------

%prep
%setup -T -c
cp %sources .

%install
mkdir -p %{buildroot}/usr/lib/cups/filter/
install -D -m755 rastertosag-gdi.py %{buildroot}/usr/lib/cups/filter/rastertosag-gdi
mkdir -p %{buildroot}%{_datadir}/cups/drv/
install -D -m 644 rastertosag-gdi.drv %{buildroot}%{_datadir}/cups/drv/
mkdir -p %{buildroot}%{_datadir}/cups/model/ricoh/
install -m 644 rsp*.ppd %{buildroot}%{_datadir}/cups/model/ricoh/

mkdir -p %{buildroot}%{_datadir}/cups/model/xerox
for i in "Phaser 3100MFP"
do
	model="$i"
	# Phaser 3100MPF -> Phaser_3100MFP.ppd
	filename="$(echo "$i" | tr ' ' _).ppd"
	sed xerox-template.ppd -e "s,@MODEL@,${model},g" -e "s,@FILENAME@,${filename},g" \
	> %{buildroot}%{_datadir}/cups/model/xerox/"$filename"
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15914 |21mr|printer-filters-utils-2008-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug 0
%define debug_package %{nil}

Summary:	Filter-style and IJS printer drivers, printer maintenance utilities
Name:		printer-filters-utils
Version:	2008
Release:	21
License:	GPLv2+
Group:		Publishing
Url:		http://www.linuxprinting.org/
# Apple StyleWriter
Source50:	http://homepage.mac.com/monroe/styl/stylewriter.tar.bz2
# Canon CaPSL
Source51:	ftp://metalab.unc.edu/pub/Linux/system/printing/cjet089.tar.bz2
# Lexmark 1100
Source52:	http://www.linuxprinting.org/download/printing/lm1100/lm1100.1.0.2a.tar.bz2
# Lexmark 2070 colour
Source53:	http://www.kornblum.i-p.com/2070/Lexmark2070.html/c2070-0.99.tar.bz2
# Lexmark 2070 grayscale
Source54:	http://www.kornblum.i-p.com/2070/Lexmark2070.html/Lexmark2070.latest.tar.bz2
# Lexmark 7xxx, 57xx, Z51
Source55:	http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/lexmark7000linux-990516.tar.bz2
# Lexmark Z11
Source56:	http://sourceforge.net/projects/lz11/lz11-V2-1.2.tar.bz2
#Source56:	http://sourceforge.net/projects/lz11/lz11-cvs20030907.tar.bz2
# HP DeskJet PPA printers
Source62:	http://download.sourceforge.net/pnm2ppa/pnm2ppa-1.12.tar.bz2
Source63:	http://www.httptech.com/ppa/files/ppa-0.8.6.tar.bz2
# Lexmark 2050
Source64:	http://www.prato.linux.it/~mnencia/lexmark2050/c2050-0.4.tar.bz2
# Lexmark 2030
Source65:	pbm2l2030-1.4.tar.bz2
# Okipage 4w and compatible winprinters
Source66:	http://www.linuxprinting.org/download/printing/oki4linux-2.0.tar.bz2
Source67:	oki4w.startup.bz2
Source68:	oki4w_install.bz2
# Citizen Printiva 600C
Source69:	http://www.dcs.ed.ac.uk/home/jcb/ppmtocpva-1.0.tar.bz2
# CoStar and compatible label printers
Source70:	http://www.freelabs.com/~whitis/software/pbm2lwxl/pbm2lwxl.tar.bz2
# Driver for the Samsung ML-85G and QL-85G winprinters
Source71:	http://www.pragana.net/ml85p-0.2.0.tar.bz2
# Filter for the Lexmark Z42
Source73:	http://www.xs4all.nl/~pastolk/drv_z42-0.4.3.tar.bz2
# GhostScript wrapper for the Pentax PocketJet printers
Source74:	http://www.pragana.net/pentaxpj-1.0.0.tar.bz2
# Unix driver for MicroDry Printers
Source76:	http://www.dcs.ed.ac.uk/home/jcb/ppmtomd/ppmtomd-1.5.tar.bz2
# Driver for the HP LaserJet 1000
Source82:	http://www.linuxprinting.org/download/printing/pbmtozjs.c.bz2
# Driver for Zenographics-based printers (Minolta magicolor DL series, HP
# LaserJet 1000, 1005, 1018, 1020, 1022, Color LaserJet 1600, 2600)
Source83:	http://foo2zjs.rkkda.com/foo2zjs.tar.bz2
Source830:	foo2zjs-foomatic-data-20060608.tar.bz2
# Driver for Epson EPL "L" series
Source84:	http://cesnet.dl.sourceforge.net/sourceforge/epsonepl/epsoneplijs-0.4.0.tar.bz2
#Source84:	http://cesnet.dl.sourceforge.net/sourceforge/epsonepl/epsoneplijs-cvs20040128.tar.bz2
# Driver for Lexmark X125 (only printing)
Source1000:	http://heanet.dl.sourceforge.net/sourceforge/x125-linux/x125-drv-0.2.3.tar.bz2
Source1001:	http://heanet.dl.sourceforge.net/sourceforge/x125-linux/x125-drv-network-0.2.0.tar.bz2
# Driver for Canon LBP-460/660
Source1010:	http://www.boichat.ch/nicolas/lbp660/lbp660-0.2.4.tar.bz2
# Driver for Lexmark X74/X75
Source1020:	http://home.online.no/~enrio/lxx74-cups-0.8.4.1.tar.bz2
# Driver for Minolta magicolor 2300W
Source1030:	http://heanet.dl.sourceforge.net/sourceforge/m2300w/m2300w-0.51.tar.bz2
# Driver for Minolta PagePro 12xxW, 13xxW, and 14xxW
Source1035:	http://www.hinterbergen.de/mala/min12xxw/min12xxw-0.0.9.tar.bz2
# Driver for Casio USB label printers
Source1040:	http://www.tu-harburg.de/~soda0231/pegg/files/pegg-0.23.tar.bz2
Source1041:	http://www.tu-harburg.de/~soda0231/pegg/files/xbm2crw-0.4.tar.bz2
Source1042:	http://www.tu-harburg.de/~soda0231/pegg/files/cups2pegg-0.21a.tar.bz2
Source1043:	http://www.tu-harburg.de/~soda0231/pegg/files/pegg_el-0.11.tar.bz2
# Perl script to clean up Manufacturer entries in the PPD files, so that
# drivers are sorted by the printer Manufacturer in the graphical frontends
Source201: 	cleanppd.pl.bz2
# Drivers for the Konica Minolta magicolor DL series supplied by Konica
# Minolta
# Available on: http://printer.konicaminolta.com/support/index_ds.html
# (Choose printer model under "Color Laser", then choose "Linux" under
# "Drivers, PPDs, & Utilities")
Source1050:	magicolor2430DL-1.6.0.tar.bz2
Source1051:	magicolor5430DL-1.8.0.tar.bz2
Source1052:	magicolor5440DL-1.2.0.tar.bz2
# Driver for Canon LBP-810/1120
Source1060:	http://www.boichat.ch/nicolas/capt/capt-0.1.tar.bz2
# Driver for Brother P-Touch label printers
Source1070:	http://www.diku.dk/~panic/P-touch/ptouch-driver-1.0.tar.bz2
# Driver for Kyocera GDI printers: Kyocera FS-1016MFP
Source1080:	http://sourceforge.net/projects/kyo-fs1016mfp/foo2kyo-0.1.0a.tar.bz2
# Driver for Samsung SPL2 printers
Source1090:	splix-0.0.1.tar.bz2
# Apple StyleWriter
Patch1040:	stylewriter-gcc4.patch
# Lexmark 1100
Patch50:	lexmark2ppm.pl.patch
Patch1002:	lm1100.1.0.2a-fix-compile-gcc-3.4.patch
# HP DeskJet PPA printers
Patch52:	pbm2ppa-20000205.diff
# Okipage 4w and compatible winprinters
Patch54:	http://www.linuxprinting.org/download/printing/oki4linux-2.0-daemon-patch
Patch55:	oki4linux-2.0-daemon-mdk-patch
# "-fPIC" for Epson EPL xxxxL driver (Gwenole)
Patch1001:	epsoneplijs-0.3.0-fPIC.patch
# Deactivate checks for installed Foomatic in "./configure" of "m2300w"
Patch1030:	m2300w-0.3-noppdbuild.patch
Patch1031:	m2300w-0.2-ppc-build-fix.patch
# Correct "Duplex" option in Foomatic data of "foo2zjs"
Patch1050:	foo2zjs-Duplex.patch
# Add support for Minolta magicolor 2430 to "foo2zjs"
Patch1051:	foo2zjs-foomatic-magicolor-2430-dl.patch
# Driver for Samsung SPL2 printers: correction for CUPS 1.2 compatibility
Patch1060:	splix-0.0.1-cups-1.2.patch

# Printer maintenance (All PJL and some Lexmark Optra)
#Source57:	http://pup.sourceforge.net/pup_1.1_src.tar.bz2
# Lexmark printer maintenance
Source58:	http://www.powerup.com.au/~pbwest/lexmark/lexmark.html/lxcontrol.tar.bz2
Source59:	lm1100maint.tar.bz2
Source60:	http://bimbo.fjfi.cvut.cz/~paluch/l7kdriver/changecartridge.bz2
Source61:	printutils.png.bz2
# Script to adjust margins and offsets of printed pages
Source75:	alignmargins.bz2
Source175:	align.ps.bz2
# mtink - Graphical maintenance/ink monitoring tool for Epson inkjets
Source77:	http://xwtools.automatix.de/files/mtink-1.0.14.tar.gz
# mtink - Do not request koi8-ru, but koi8-r instead. Fixes mdv#25315
Patch70:	mtink-1.0.14-ru_font.patch
# poster - Print big posters to be assambled out of many standard sized
#          (A4, Letter, A3, ...) sheets, also used by KDE Print.
Source78:	http://printing.kde.org/downloads/poster-1.0.1.tar.bz2
# Tool for uploading the firmware on the HP LaserJet 1000S
Source85:	http://www.linuxprinting.org/download/printing/hp1000fw.bz2
Source86:	udev-hp1000fw.rules.bz2
# Tools for reading USB device ID strings
Source87:	http://www.linuxprinting.org/download/printing/usb_id_test.c.bz2
Source88:	http://www.linuxprinting.org/download/printing/getusbprinterid.pl.bz2
# ppmtocpva & ppmtomd fixes
Patch100:	ppmtocpva-1.0-includes.patch
Patch101:	ppmtocpva-1.0-netpbm.patch
Patch102:	ppmtomd-1.3-netpbm.patch

BuildRequires:	cups-common
BuildRequires:	ghostscript
BuildRequires:	gmp-devel
BuildRequires:	jbig-devel
BuildRequires:	lesstif-devel
BuildRequires:	netpbm-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ijs)
BuildRequires:	pkgconfig(libusb)

%description
This source RPM builds the printer-filters and printer-utils
packages. These two packages are built by one source RPM, as many
upstream source packages contain both a filter and a utility.

#----------------------------------------------------------------------------

%package -n printer-filters
Summary:	Filters to support additional printers
Group:		Publishing
# psutils, unzip, and mscompress needed by the foo2zjs driver
Requires:	psutils
Requires:	unzip
Requires:	mscompress
# "convert" needed by "pegg"
Requires:	imagemagick
# <mrl> Requires for the packages that are obsoleting this one.
Recommends:	c2050
Recommends:	c2070
Recommends:	cjet
Recommends:	cups-drivers-capt
Recommends:	cups-drivers-foo2kyo
Recommends:	cups-drivers-foo2zjs
%ifarch %{ix86} %{x86_64}
Recommends:	ml85p
%endif
Recommends:	cups-drivers-lz11
Recommends:	cups-drivers-m2300w
Recommends:	cups-drivers-pegg
Recommends:	cups-drivers-ptouch
Recommends:	epsoneplijs
#Requires:	foomatic-db-foo2zjs
#Requires:	foomatic-db-m2300w
Recommends:	lexmark2070
Recommends:	lm1100
Recommends:	min12xxw
Recommends:	oki4linux
Recommends:	pbm2l2030
Recommends:	pbmtozjs
Recommends:	pnm2ppa
Recommends:	ppmtomd
Recommends:	printer-filters
Recommends:	stylewriter

%description -n printer-filters
This package contains filters which transfer the raw bitmap of
GhostScript into the protocol of some additional printer models. There
are standalone filter executables which get GhostScripts bitmap output
as standard input via a pipe or IJS plug-ins for GhostScript.

Note: HPIJS and Gimp-Print are in separate packages.

%files -n printer-filters

#----------------------------------------------------------------------------

%package -n printer-filters-doc
Summary:	Documentation for printer filters (to support additional printers)
Group: 		Publishing

%description -n printer-filters-doc
This package contains documentation about printer filters.

These filters transfer the raw bitmap of GhostScript into the protocol
of some additional printer models. There are standalone filter
executables which get GhostScripts bitmap output as standard input via
a pipe or IJS plug-ins for GhostScript.

%files -n printer-filters-doc

#----------------------------------------------------------------------------

%package -n printer-utils
Summary:	Additional tools for configuring and maintaining printers (meta package)
Group: 		Publishing
Provides:	ghostscript-utils = %{EVRD}
Provides:	Lexmark-printer-maintenance = %{EVRD}
Recommends:	lesstif

# <mrl> Requires for the packages that are obsoleting this one.
Recommends:	lm1100
Recommends:	poster
Recommends:	printer-utils
Recommends:	mtink

%description -n printer-utils
Tools for printer maintenance: Setting default options for most laser
printers (PJL-capable printers), cartridge changing, head aligning,
ink level checking for inkjet printers. Printing big posters on many 
sheets of standard sized paper (A4, A3, Letter, ...) to be assambled
together (also used by KDE Print to print posters).

%files -n printer-utils

#----------------------------------------------------------------------------

%package -n cups-drivers
Summary:	Special CUPS printer drivers
Group: 		Publishing
Requires:	cups
Requires:	ghostscript
# "convert" needed by "pegg"
Requires:	imagemagick

# <mrl> Requires for the packages that are obsoleting this one.
Recommends:	cups-drivers-lxx74
Recommends:	cups-drivers-pegg
Recommends:	cups-drivers-splix
Recommends:	mtink

%description -n cups-drivers
This package contains special printer drivers to be used with CUPS and
their appropriate PPD files.

%files -n cups-drivers

#----------------------------------------------------------------------------

%prep
%setup -q -T -c
mkdir printer-filters
echo > printer-filters/debugfiles.list
exit 0

# remove old directory
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
mkdir $RPM_BUILD_DIR/%{name}-%{version}

mkdir $RPM_BUILD_DIR/%{name}-%{version}/printer-filters

# Apple StyleWriter
%setup -q -T -D -a 50 -n %{name}-%{version}/printer-filters
cd stylewriter
%patch1040 -p0
cd ..

# Canon CaPSL
%setup -q -T -D -a 51 -n %{name}-%{version}/printer-filters

# Lexmark 1100
%setup -q -T -D -a 52 -n %{name}-%{version}/printer-filters
# fix to make it compiling with gcc 2.96
# Patch to make LM 1100 printer emulator script to work
cd lm1100*
%patch50 -p0
%patch1002 -p0
cd ..

# Lexmark 2070 colour
%setup -q -T -D -a 53 -c -n %{name}-%{version}/printer-filters/c2070-0.99

# Lexmark 2070 grayscale
%setup -q -T -D -a 54 -c -n %{name}-%{version}/printer-filters/Lexmark2070.latest

# Lexmark 7xxx, 57xx, Z51
%setup -q -T -D -a 55 -n %{name}-%{version}/printer-filters
# Fix Makefile
cd lexmark7000linux-990516
sed "s/-o root -g root//" Makefile > Makefile.new
chmod --reference=Makefile Makefile.new
mv -f Makefile.new Makefile
cd ..

# Lexmark Z11
%setup -q -T -D -a 56 -n %{name}-%{version}/printer-filters
#setup -q -T -D -a 56 -n %{name}-%{version}/printer-filters
#bzcat %SOURCE72 > $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/LexZ11-distro/cZ11.c
perl -p -i -e "s/gcc/gcc $RPM_OPT_FLAGS/" lx11*/makefile

# Printer Utility Program
#setup -q -T -D -a 57 -n %{name}-%{version}/printer-filters

# Lexmark printer maintenance
%setup -q -T -D -a 58 -n %{name}-%{version}/printer-filters
%setup -q -T -D -a 59 -n %{name}-%{version}/printer-filters
bzcat %{SOURCE60} > $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/changecartridge
#cp $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/pup_1.1/README \
#	$RPM_BUILD_DIR/%{name}-%{version}/printer-filters/README.LexmarkOptra40_45
mv $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/lxcontrol/README.Lexmark \
	$RPM_BUILD_DIR/%{name}-%{version}/printer-filters/lxcontrol/README.Lexmark5xxx_7xxx
mv $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/lm1100maint/README \
	$RPM_BUILD_DIR/%{name}-%{version}/printer-filters/lm1100maint/README.Lexmark1xxx

# Generate doc file for "changecartridge"
cat << EOF > $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/README.changecartridge

changecartridge - a program for changing the ink cartridges
                  in the Lexmark 5xxx and 7xxx printers.

(C) 1999 Henryk Paluch, paluch@bimbo.fjfi.cvut.cz

To change the ink cartridges in a Lexmark printer you must move the
print head out of its parking corner, so that you can reach the
cartridges. Lexmark only provides a Windows program for doing this. To
not need to boot Windows for changing the cartridges there is this
script. Simply call it with:

   changecartridge

on the command line and follow the steps described on the screen.
The printer is assumed to be at the parallel port #1 (/dev/lp0), but
this setting can be changed by editing the definition of the PORT
variable in /usr/bin/changecartridge.



EOF
# Generate doc file for "README.Lexmark-Maintenance"
cat << EOF > $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/README.Lexmark-Maintenance

Lexmark Printer Maintenance Tools
---------------------------------

Programs for maintanance of Lexmark inkjet printers: Moving out the print
head to change the cartridges, adjusting the print heads, cleaning the
nozzles ...

showcartridges
hidecartridges
headalign
headclean     - Command line programs for the Lexmark 5xxx and 7xxx

changecartridge - Another command line tool for changing the
                ink cartridges in the Lexmark 5xxx and 7xxx 

lm1100change,
lm1100back    - Command line tools for changing the cartridge in Lexmark
                1xxx printers

Since Lexmark will not release protocol specifications the authors had
to dissassemble the byte codes sent by their Windows printer maintenance
programs to create this.



EOF

# Load menu icon
bzcat %{SOURCE61} > $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/printutils.png

# HP DeskJet PPA printers
%setup -q -T -D -a 62 -n %{name}-%{version}/printer-filters
# remove "version ERROR" line from pnm2ppa.conf
perl -n -i -e 'if ( !m/^\s*version\s*0\s*(|\#.*)$/ ) { print "$_";}' pnm2ppa-*/pnm2ppa.conf

# Generate README file
cat <<EOF >README.calibration

Colour calibration for PPA printers
-----------------------------------

If you have an HP DeskJet PPA printer (very cheap models: 710C, 712C,
720C, 722C, 820C, 1000C, or a newer printer which works with one of
these model entries) you can optionally do a colour correction. Do the
following:

Some of the printing modes offer optional colour correction. See the
option "Printing Mode" which is offered to you in the option window of
"printerdrake" and if you use CUPS also in "qtcups" or "kprinter"
("Properties" button, "Advanced" tab), "xpp" ("Options" button,
"Extra" tab), "kups" (right click on printer, "Configure printer" in
menu), or the WWW interface ("Configure printer" button) and if you
use PDQ in "xpdq" ("Driver options"). Choose a setting with "optional
colour correction" and save your settings. Read the file

   /usr/share/doc/printer-filters-1.0/HPDeskJetPPA/pnm2ppa/COLOR.txt

and follow the instructions there, but use the name

   /etc/pnm2ppa.gamma_normal

for the colour correction file for the "normal quality" modes and

   /etc/pnm2ppa.gamma_best

for the colour correction file for the "best quality" modes. So you
can do the colour correction independently in both normal and best
quality modes. The files are automatically taken into account by the
appropriate modes as soon as they are created.



EOF


# pbm2ppa source
%setup -q -T -D -a 63 -n %{name}-%{version}/printer-filters
%patch52 -p0

# Lexmark 2050
%setup -q -T -D -a 64 -n %{name}-%{version}/printer-filters

# Lexmark 2030
%setup -q -T -D -a 65 -c -n %{name}-%{version}/printer-filters/pbm2l2030

# Okipage 4w and compatible winprinters
%setup -T -D -a 66 -n %{name}-%{version}/printer-filters
cd oki4linux-2.0
%patch54 -p1
%patch55 -p1

# Do some small corrections in the daemon script:
# - The daemon crashes with "setlogsock('unix');"
# - Correct the path for the driver
cd src
mv oki4daemon oki4daemon.pre
sed "s/setlogsock('unix');/setlogsock('inet');/" oki4daemon.pre | sed "s:/usr/local/sbin/oki4drv:/usr/bin/oki4drv:" > oki4daemon
cd ../..
# Mandrivized startup script for the daemon
bzcat %{SOURCE67} > $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/oki4daemon
%if 0
# Installer for a CUPS queue for an OKI winprinter
bzcat %{SOURCE68} > $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/oki4w_install
# Generate doc file for "README.OKI-Winprinters"
cat << EOF > $RPM_BUILD_DIR/%{name}-%{version}/printer-filters/README.OKI-Winprinters

Driver for the OKI 4w and compatible winprinters
------------------------------------------------

These laser printers have neither memory nor a processor and therefore
they must get their data in an absolutely continuous stream (because
they cannot buffer data). This cannot be made sure by usual printing
spoolers (as CUPS or LPD). The only possibility is running a special
driver program which connects directly to the printer. But this is
very unconvenient, because many Linux applications can only print
through a spooler. To solve this, Grant Taylor has created a special
daemon acting between the printing program and the spooler, the
"oki4daemon". It provides a named pipe ("/dev/oki4drv") which accepts
PostScript and renders it for being understood by the printer.

Because "kups" and the web interface of CUPS cannot start an extra
daemon and also cannot set up a queue with "/dev/oki4drv" as
destination, you have to install your OKI printer with a special
installation program. Call it by entering

   oki4w_install

on the command line or by choosing "Configuration"/"Printing"/"Install
OKI 4w or compatible" in the desktop menues.

NOTE: These printers should not be used on machines which are often
under high loads (because of the timing requirements) or on machines
with high security demands (because of the additional daemon).



EOF
%endif

# CoStar and compatible label printers
%setup -q -T -D -a 70 -c -n %{name}-%{version}/printer-filters/pbm2lwxl

# Citizen Printiva 600C
%setup -q -T -D -a 69 -n %{name}-%{version}/printer-filters
cd ppmtocpva-*
%patch100 -p1
%patch101 -p1
cd ..

# Samsung ML-85G and QL-85G winprinters
%setup -q -T -D -a 71 -n %{name}-%{version}/printer-filters
#patch58 -p0

# Filter for the Lexmark Z42
%setup -q -T -D -a 73 -n %{name}-%{version}/printer-filters

# GhostScript wrapper for the Pentax PocketJet printers
%setup -q -T -D -a 74 -n %{name}-%{version}/printer-filters

# Unix driver for MicroDry Printers
%setup -q -T -D -a 76 -n %{name}-%{version}/printer-filters
cd ppmtomd-*
%patch102 -p1
cd ..

# Mtink - Printer maintenance/ink monitoring for Epson inkjets
%setup -q -T -D -a 77 -n %{name}-%{version}/printer-filters
cd mtink-1*
%patch70 -p3
cd ..

# Poster - Poster-printing on stndard sized paper 
%setup -q -T -D -a 78 -n %{name}-%{version}/printer-filters

# Driver for the HP LaserJet 1000
bzcat %{SOURCE82} > pbmtozjs.c

# Driver for Zenographics-based printers (Minolta magicolor DL series, HP
# LaserJet 1000, 1005, 1018, 1020, 1022, Color LaserJet 1600, 2600)
%setup -q -T -D -a 83 -n %{name}-%{version}/printer-filters
cd foo2zjs*/foomatic-db
rm -rf *
%setup -q -T -D -a 830 -n %{name}-%{version}/printer-filters/foo2zjs/foomatic-db
cd ../..
# Fit udev rules to stricter syntax of new udev
# (blino) don't try to rename the device,
#         it has already been renamed to the exact same name in 50-mdk.rules
#         so udev would skip the rule
perl -p -i -e 's:(KERNEL|BUS|SYSFS.*?)=([^=]):$1==$2:g;s{SYMLINK=}{SYMLINK+=}g;s{(?:NAME|MODE)=.*?,\s*}{}g' foo2zjs*/hplj10xx.rules

# Driver for Epson EPL "L" series
%setup -q -T -D -a 84 -n %{name}-%{version}/printer-filters
cd epsonepl*
perl -p -i -e "s/-g -O2 -Wall -ansi -pedantic -Wmissing-prototypes/-fPIC/" Makefile.in
#patch1001 -p1 -b .fPIC
cd ..

# Driver for Lexmark X125 (only printing)
%setup -q -T -D -a 1000 -n %{name}-%{version}/printer-filters
%setup -q -T -D -a 1001 -n %{name}-%{version}/printer-filters
perl -p -i -e "s/gcc/gcc $RPM_OPT_FLAGS/" drv_x125*/src/Makefile

%ifarch %{ix86}
# Driver for Canon LBP-460/660
%setup -q -T -D -a 1010 -n %{name}-%{version}/printer-filters
perl -p -i -e "s/gcc/gcc $RPM_OPT_FLAGS/" lbp660*/Makefile
%endif

# Driver for Canon LBP-810/1120
%setup -q -T -D -a 1060 -n %{name}-%{version}/printer-filters
perl -p -i -e "s/gcc/gcc $RPM_OPT_FLAGS/" cast*/Makefile

# Driver for Lexmark X74/X75
%setup -q -T -D -a 1020 -n %{name}-%{version}/printer-filters
perl -p -i -e "s/gcc/gcc $RPM_OPT_FLAGS/" lxx74*/Makefile

# Driver for Minolta magicolor 2300W
%setup -q -T -D -a 1030 -n %{name}-%{version}/printer-filters
cd m2300w*
# Deactivate checks for installed Foomatic in "./configure"
%patch1030 -p0
%patch1031 -p1 -b .ppc
cd ..

# Driver for Minolta PagePro 12xxW, 13xxW, and 14xxW
%setup -q -T -D -a 1035 -n %{name}-%{version}/printer-filters
#perl -p -i -e "s/gcc/gcc $RPM_OPT_FLAGS/" min12xxw*/Makefile

# Driver for Casio USB label printers
%setup -q -T -D -a 1040 -n %{name}-%{version}/printer-filters
%setup -q -T -D -a 1041 -n %{name}-%{version}/printer-filters
%setup -q -T -D -a 1042 -n %{name}-%{version}/printer-filters
%setup -q -T -D -a 1043 -n %{name}-%{version}/printer-filters

# Drivers for the Konica Minolta magicolor DL series supplied by Konica
# Minolta
%setup -q -T -D -a 1050 -n %{name}-%{version}/printer-filters
%setup -q -T -D -a 1051 -n %{name}-%{version}/printer-filters
%setup -q -T -D -a 1052 -n %{name}-%{version}/printer-filters
# Fix copy of CUPS headers in kmlf.h
perl -p -i -e 's:\bcups_strlcpy:_cups_strlcpy:g' magicolor????DL*/src/kmlf.h
# Remove asterisks from group names in PPD file
for d in magicolor????DL*; do
	cd $d*
	gzip -dc src/km_en.ppd.gz | perl -p -e 's/(Group:\s+)\*/$1/g' | gzip > src/km_en.tmp.ppd.gz && mv -f src/km_en.tmp.ppd.gz src/km_en.ppd.gz
	cd ..
done
# Determine the directory for the CUPS filters using the correct method
perl -p -i -e 's:(CUPS_SERVERBIN=)"\$libdir/cups":$1`cups-config --serverbin`:' magicolor????DL*/configure

# Driver for Brother P-Touch label printers
%setup -q -T -D -a 1070 -n %{name}-%{version}/printer-filters

# Driver for Kyocera GDI printers: Kyocera FS-1016MFP
%setup -q -T -D -a 1080 -n %{name}-%{version}/printer-filters
perl -p -i -e 's/Kyocera-Mita-FS-1016/Kyocera-FS-1016/g' foo2kyo*/foomatic-db/driver/foo2kyo.xml

# Driver for Samsung SPL2 printers
%setup -q -T -D -a 1090 -n %{name}-%{version}/printer-filters
cd splix*
%patch1060 -p1 -b .cups12
cd ..


# Tool for uploading the firmware on the HP LaserJet 1000S
bzcat %{SOURCE85} > hp1000fw
bzcat %{SOURCE86} > udev-hp1000fw.rules

# Tools for reading USB device ID strings
bzcat %{SOURCE87} > usb_id_test.c
bzcat %{SOURCE88} > getusbprinterid



%build
exit 0

# Change compiler flags for debugging when in debug mode
%if %debug
export DONT_STRIP=1
export CFLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
export CXXFLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
export RPM_OPT_FLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
%endif

##### PRINTER FILTERS AND OTHER STUFF

cd $RPM_BUILD_DIR/%{name}-%{version}/printer-filters

# Apple StyleWriter
cd stylewriter
gcc ${CFLAGS:-%optflags} -o lpstyl lpstyl.c
cd ..

# Canon CaPSL
cd cjet089
%make
cd ..

# Lexmark 1100
cd lm1100*
# Correct "friend" declarations for gcc 3.1
perl -p -i -e 's/friend Lexmark/friend class Lexmark/' *.h
# Remove extra qualifications '<class>::<member>' on class members, to make
# code compiling with gcc 4.1.1.
perl -p -i -e 's/\b[^\s:]+:://' *.h
%make
cd ..

# Lexmark 2070 colour
cd c2070-0.99
%make
cd ..

# Lexmark 2070 grayscale
cd Lexmark2070.latest
%make
cd ..

# Lexmark 7xxx, 57xx, Z51
cd lexmark7000linux-990516
%make
cd ..

# Lexmark Z11
#cd LexZ11-distro
cd lz11*
%make
cd ..

# Printer Utility Program
#cd pup_1.1
#make CC="gcc $CFLAGS -Wall -O2 -I/usr/include/glib-1.2"
#cd ..

# HP DeskJet PPA printers
cd pnm2ppa*
make BINDIR=%{_bindir} CONFDIR=%{_sysconfdir} MANDIR=%{_mandir}/man1
cd ..
cd pbm2ppa-0.8.6
make
cd ..

# Lexmark 2050
cd c2050-0.4
%make
cd ..

# Lexmark 2030
cd pbm2l2030
%make
cd ..

# Okipage 4w and compatible winprinters
cd oki4linux-2.0/src
%make
cd ../..

# Citizen Printiva 600C
cd ppmtocpva-1.0
%make
cd ..

# CoStar and compatible label printers
cd pbm2lwxl
gcc $CFLAGS -o pbm2lwxl pbm2lwxl.c
cd ..

%ifarch %{ix86}
# Samsung ML-85G and QL-85G winprinters
cd ml85p*
make
[ -e printer-test.ps.gz ] && gunzip printer-test.ps.gz
cd ..
%endif

# Filter for the Lexmark Z42
cd drv_z42/src
gcc $CFLAGS -o z42_cmyk z42_cmyk.c
cd ../z42tool/
%configure
%make
cd ../..

# GhostScript wrapper for the Pentax PocketJet printers
cd pentaxpj
%make
cd ..

# Unix driver for MicroDry Printers
cd ppmtomd*
%make
cd ..

# Mtink - Printer maintenance/ink monitoring for Epson inkjets
cd mtink*
perl -p -i -e 's|(/usr/X11R6)/lib\b|\1/%{_lib}|g' Makefile.ORG
perl -p -i -e 's|(/usr)/lib\b|\1/%{_lib}|g' Makefile.ORG
perl -p -i -e 's|(/usr)/lib$|\1/%{_lib}|g' Configure
perl -p -i -e 's|(''/usr/)lib('')|$1%{_lib}$2|g' checkMotifVersion.sh
./Configure --no-suid --prefix /usr
%make
# Fix some small bugs
#perl -p -i -e "s/START_LEVEL=S99mtink/START_LEVEL=S59mtink/" etc/installInitScript.sh
#perl -p -i -e "s/STOP_LEVEL=K02mtink/START_LEVEL=K61mtink/" etc/installInitScript.sh
#perl -p -i -e "s/for d in 2 3 4 5/XXXXXXXXXX/" etc/installInitScript.sh
#perl -p -i -e "s/for d in 0 1 6/for d in 2 3 4 5/" etc/installInitScript.sh
#perl -p -i -e "s/XXXXXXXXXX/for d in 0 1 6/" etc/installInitScript.sh
#perl -p -i -e "s!cp mtink /etc/init.d!!" etc/installInitScript.sh
perl -p -i -e "s!chmod 744 /etc/init.d/mtink!!" etc/installInitScript.sh
perl -p -i -e "s!/dev/lp;!/dev/lp\*;!" etc/mtink
perl -p -i -e 's=(\#!/bin/sh)=$1\n\#   chkconfig: 2345 14 61
\#   description: The MTink daemon allows printing on Epson inkjets in
\#                in packet mode. This way simultaneas printing and
\#                ink level readout or scanning (on multi-function devices)
\#                is possible.=' etc/mtink
cd ..

# Poster - Poster-printing on stndard sized paper 
cd poster*
%make
cd ..

# HP LaserJet 1000
ln -s %{_libdir}/libjbig.a .
ln -s /usr/include/jbig.h .
gcc -O2 -W -o pbmtozjs pbmtozjs.c libjbig.a
head -34 pbmtozjs.c | tail -33 > pbmtozjs.txt

# Driver for Zenographics-based printers (Minolta magicolor DL series, HP
# LaserJet 1000, 1005, 1018, 1020, 1022, Color LaserJet 1600, 2600)
cd foo2zjs*
# Suppress generation of PDF doc file, it needs GhostScript and GhostScript
# is introduced by this package
#perl -p -i -e "s/all-icc2ps man doc/all-icc2ps man/" Makefile
%make
cd ..

# Driver for Epson EPL "L" series
cd epsonepl*
%configure
%make
cd ..

# Driver for Lexmark X125 (only printing)
cd drv_x125/src
%make
cd ../..
cd drv_x125_network/src
%make
cd ../..

%ifarch %{ix86}
# Driver for Canon LBP-460/660
cd lbp660*
%make
# Correct PPD files to pass "cupstestppd"
perl -p -i -e "s/DefaultNoReset/DefaultAlwaysReset/" ppd/*.ppd
# Do not generate a log file with fixed name, security problem!
perl -p -i -e "s:/tmp/lbp.60.log:/dev/null:" ppd/*.ppd
cd ..
%endif

# Driver for Canon LBP-810/1120
cd capt*
%make
# Correct PPD files to pass "cupstestppd"
perl -p -i -e "s/DefaultNoReset/DefaultAlwaysReset/g" ppd/*.ppd
# Do not generate a log file with fixed name, security problem!
perl -p -i -e "s:/tmp/capt.log:/dev/null:g" ppd/*.ppd
# Create PPD file for LBP-1120
cp ppd/Canon-LBP-810-capt.ppd ppd/Canon-LBP-1120-capt.ppd
perl -p -i -e "s:LBP-810:LBP-1120:g" ppd/Canon-LBP-1120-capt.ppd
perl -p -i -e "s:lbp810:lbp1120:g" ppd/Canon-LBP-1120-capt.ppd
cd ..

# Driver for Lexmark X74/X75
cd lxx74*
# The source tarball has already all the stuff compiled, but we want to have
# our Mandriva Linux optimizations
%make clean
%make
gunzip lxx74.ppd.gz
cp lxx74.ppd Compaq-IJ670-lxx74.ppd
perl -p -i -e 's/All In One/IJ670/gi' Compaq-IJ670-lxx74.ppd
cp lxx74.ppd Compaq-Inkjet_Printer-lxx74.ppd
perl -p -i -e 's/All In One/Inkjet Printer/gi' Compaq-Inkjet_Printer-lxx74.ppd
perl -p -i -e 's/Lexmark/Compaq/gi' Compaq-*-lxx74.ppd
cp lxx74.ppd Lexmark-X74-lxx74.ppd
perl -p -i -e 's/All In One/X74/gi' Lexmark-X74-lxx74.ppd
cp lxx74.ppd Lexmark-X75-lxx74.ppd
perl -p -i -e 's/All In One/X75/gi' Lexmark-X75-lxx74.ppd
cp lxx74.ppd Lexmark-X76-lxx74.ppd
perl -p -i -e 's/All In One/X76/gi' Lexmark-X76-lxx74.ppd
cp lxx74.ppd Lexmark-Z13-lxx74.ppd
perl -p -i -e 's/All In One/Z13/gi' Lexmark-Z13-lxx74.ppd
cp lxx74.ppd Lexmark-Z14-lxx74.ppd
perl -p -i -e 's/All In One/Z14/gi' Lexmark-Z14-lxx74.ppd
cp lxx74.ppd Lexmark-Z23-lxx74.ppd
perl -p -i -e 's/All In One/Z23/gi' Lexmark-Z23-lxx74.ppd
cp lxx74.ppd Lexmark-Z33-lxx74.ppd
perl -p -i -e 's/All In One/Z33/gi' Lexmark-Z33-lxx74.ppd
cp lxx74.ppd Lexmark-Z24-lxx74.ppd
perl -p -i -e 's/All In One/Z24/gi' Lexmark-Z24-lxx74.ppd
cp lxx74.ppd Lexmark-Z34-lxx74.ppd
perl -p -i -e 's/All In One/Z34/gi' Lexmark-Z34-lxx74.ppd
cp lxx74.ppd Lexmark-Z25-lxx74.ppd
perl -p -i -e 's/All In One/Z25/gi' Lexmark-Z25-lxx74.ppd
cp lxx74.ppd Lexmark-Z35-lxx74.ppd
perl -p -i -e 's/All In One/Z35/gi' Lexmark-Z35-lxx74.ppd
cp lxx74.ppd Lexmark-Inkjet_Printer-lxx74.ppd
perl -p -i -e 's/All In One/Inkjet Printer/gi' Lexmark-Inkjet_Printer-lxx74.ppd
cp lxx74.ppd Lexmark-InkJet_4104-lxx74.ppd
perl -p -i -e 's/All In One/Inkjet 4104/gi' Lexmark-Inkjet_4104-lxx74.ppd
cp lxx74.ppd Samsung-MJC-940-lxx74.ppd
perl -p -i -e 's/All In One/MJC-940/gi' Samsung-MJC-940-lxx74.ppd
cp lxx74.ppd Samsung-MJC-950-lxx74.ppd
perl -p -i -e 's/All In One/MJC-950/gi' Samsung-MJC-950-lxx74.ppd
cp lxx74.ppd Samsung-MJC-2200-lxx74.ppd
perl -p -i -e 's/All In One/MJC-2200/gi' Samsung-MJC-2200-lxx74.ppd
cp lxx74.ppd Samsung-MJC-2130-lxx74.ppd
perl -p -i -e 's/All In One/MJC-2130/gi' Samsung-MJC-2130-lxx74.ppd
cp lxx74.ppd Samsung-MJC-530-lxx74.ppd
perl -p -i -e 's/All In One/MJC-530/gi' Samsung-MJC-530-lxx74.ppd
perl -p -i -e 's/Lexmark/Samsung/gi' Samsung-*-lxx74.ppd
gzip -9 *.ppd
cd ..

# Driver for Minolta magicolor 2300W
cd m2300w*
autoconf
%configure
# Omit the installation of the PPD in the Makefile, we use the Foomatic
# XML data
perl -p -i -e "s/src psfiles foomatic ppd/src psfiles/" Makefile
%make
cd ..

# Driver for Minolta PagePro 12xxW, 13xxW, and 14xxW
cd min12xxw*
%configure
%make
cd ..

# Driver for Casio USB label printers
cd pegg-*
%make
cd ..
cd pegg_el-*/src
%make
cd ../..
cd xbm2crw*
# Nothing to be done
cd ..
cd cups2pegg*/src
# Suppress logging in cups2pegg backend
perl -p -i -e "s:/var/log/cups/cups2pegg.log:/dev/null:" cups2pegg
# Fix PPD file
perl -p -i -e 's/^(\*ModelName:).*$/$1 "CASIO Computer CO. LTD. EL-700 EL-5000W"/' ppd/casio_el.ppd
perl -p -i -e 's/^(\*ShortNickName:).*$/$1 "CASIO EL-700 EL-5000W"/' ppd/casio_el.ppd
perl -p -i -e 's/^(\*ModelName:).*$/$1 "CASIO Computer CO. LTD. KL-P1000 KL-E11"/' ppd/casio_kl.ppd
perl -p -i -e 's/^(\*ShortNickName:).*$/$1 "CASIO KL-P1000 KL-E11"/' ppd/casio_kl.ppd
perl -p -i -e 's/: Letter/: 128_64/' ppd/casio_kl.ppd
perl -p -i -e 's/^(\*ModelName:).*$/$1 "CASIO Computer CO. LTD. KP-C10 KP-C50"/' ppd/casio_kp.ppd
perl -p -i -e 's/^(\*ShortNickName:).*$/$1 "CASIO KP-C10 KP-C50"/' ppd/casio_kp.ppd
perl -p -i -e 's/: Letter/: 512_64/' ppd/casio_kp.ppd
cd ../..

# Drivers for the Konica Minolta magicolor DL series supplied by Konica
# Minolta
for d in magicolor????DL*; do
	cd $d
	%configure
	%make
	cd ..
done
# Add support for the magicolor 2300 DL
cd magicolor2430DL*
gzip -dc src/km_en.ppd.gz | perl -p -e 's:2430(\s*DL):2300$1:g' | gzip > src/km2300dl.ppd.gz
cd ..

# Driver for Brother P-Touch label printers
cd ptouch-driver*
%configure
%make
cd ..

# Driver for Kyocera GDI printers: Kyocera FS-1016MFP
cd foo2kyo*
%make
cd ..

# Driver for Samsung SPL2 printers
cd splix*
%make
# Generate PPD files for each supported printer
cd ppd
for ext in '' 'fr'; do
  cp ml1710$ext.ppd Samsung-SPL2-ml1510$ext.ppd
  perl -p -i -e 's/(ml-?)1710/${1}1510/gi' Samsung-SPL2-ml1510$ext.ppd
  cp ml1710$ext.ppd Samsung-SPL2-ml1520$ext.ppd
  perl -p -i -e 's/(ml-?)1710/${1}1520/gi' Samsung-SPL2-ml1520$ext.ppd
  cp ml1710$ext.ppd Samsung-SPL2-ml1610$ext.ppd
  perl -p -i -e 's/(ml-?)1710/${1}1610/gi' Samsung-SPL2-ml1610$ext.ppd
  cp ml1710$ext.ppd Samsung-SPL2-ml1740$ext.ppd
  perl -p -i -e 's/(ml-?)1710/${1}1740/gi' Samsung-SPL2-ml1740$ext.ppd
  cp ml1710$ext.ppd Samsung-SPL2-ml1750$ext.ppd
  perl -p -i -e 's/(ml-?)1710/${1}1750/gi' Samsung-SPL2-ml1750$ext.ppd
  cp ml2250$ext.ppd Samsung-SPL2-ml2150$ext.ppd
  perl -p -i -e 's/(ml-?)2250/${1}2150/gi' Samsung-SPL2-ml2150$ext.ppd
  cp ml2250$ext.ppd Samsung-SPL2-ml2550$ext.ppd
  perl -p -i -e 's/(ml-?)2250/${1}2550/gi' Samsung-SPL2-ml2550$ext.ppd
  mv ml1710$ext.ppd Samsung-SPL2-ml1710$ext.ppd
  mv ml2010$ext.ppd Samsung-SPL2-ml2010$ext.ppd
  mv ml2250$ext.ppd Samsung-SPL2-ml2250$ext.ppd
done
# Add driver name to NickName in the PPDs
perl -p -i -e 's/(\*NickName:\s*\"[^\,]+)(\,\s*.*?)?/$1, CUPS + SpliX$2/i' *.ppd
cd ..
cd ..


# Tool for reading USB device ID strings
gcc -o usb_id_test usb_id_test.c



%install

rm -rf %{buildroot}
mkdir -p %{buildroot}
exit 0

# Change compiler flags for debugging when in debug mode
%if %debug
export DONT_STRIP=1
export CFLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
export CXXFLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
export RPM_OPT_FLAGS="`echo %optflags |sed -e 's/-O3/-g/' |sed -e 's/-O2/-g/'`"
%endif


# Make directories
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}%{_libdir}/gimp/2.0/plug-ins
install -d %{buildroot}%{_prefix}/lib/cups/filter
install -d %{buildroot}%{_prefix}/lib/cups/backend
install -d %{buildroot}%{_datadir}/cups/data
install -d %{buildroot}%{_datadir}/cups/model
install -d %{buildroot}%{_sysconfdir}/cups
install -d %{buildroot}%{_datadir}/foomatic/db/source/printer
install -d %{buildroot}%{_datadir}/foomatic/db/source/driver
install -d %{buildroot}%{_datadir}/foomatic/db/source/opt


##### PRINTER FILTERS AND OTHER STUFF

cd $RPM_BUILD_DIR/%{name}-%{version}/printer-filters

# Apple StyleWriter
cd stylewriter
# Program files
install -m 755 lpstyl %{buildroot}%{_bindir}
# Documentation
chmod -R a+rX *
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/AppleStyleWriter
cp -ax scripts Makefile.atalk README* adsp.* printcap.* styl.ppd \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/AppleStyleWriter
cd ..

# Canon CaPSL
cd cjet089
# Program files
install -m 755 cjet %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/CanonCaPSL
cp -ax README INSTALL COPYING TODO ChangeLog samples \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/CanonCaPSL
cd ..

# Lexmark 1100
cd lm1100*
# Executables (filter for usage with CUPS and printer emulator script for
# development and debugging (also debugging this RPM w/o Lexmark 1100).
install -m 0755 lm1100 %{buildroot}%{_bindir}
install -m 0755 lexmark2ppm.pl %{buildroot}%{_bindir}
install -m 0755 byteutil.pl %{buildroot}%{_bindir}
# LPD support
install -d %{buildroot}%{_libdir}/rhs/rhs-printfilters
[ -e ps-to-lm1100.fpi ] || mv ps-to-printer.fpi ps-to-lm1100.fpi # file name conflict
install -m 0755 ps-to-lm1100.fpi %{buildroot}%{_libdir}/rhs/rhs-printfilters
ln -s %{_bindir}/lm1100 \
	%{buildroot}%{_libdir}/rhs/rhs-printfilters
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark1100
install -m 0644 LICENSE %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark1100
install -m 0644 README %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark1100
install -m 0644 RELEASE.txt %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark1100
install -m 0644 cmy.txt %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark1100
cd ..

# Lexmark 2070 colour
cd c2070-0.99
# Program files
install -m 755 c2070 %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark2070colour
cp -ax README LICENSE \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark2070colour
cd ..

# Lexmark 2070 grayscale
cd Lexmark2070.latest
# Program files
install -m 755 Lexmark2070 %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark2070gray
cp -ax README LICENSE \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark2070gray
cd ..

# Lexmark 7xxx, 57xx, Z51
cd lexmark7000linux-990516
# Program and data files
%old_makeinstall
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark7xxx_57xx_Z51
install -m 0644 CHANGES %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark7xxx_57xx_Z51
install -m 0644 README %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark7xxx_57xx_Z51
install -m 0644 lexmark5700-filter %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark7xxx_57xx_Z51
install -m 0644 lexmark7000-filter %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark7xxx_57xx_Z51
install -m 0644 lexmark7000linux-990516.lsm %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark7xxx_57xx_Z51
install -m 0644 lexmarkprotocol.txt %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark7xxx_57xx_Z51
install -m 0644 *.p?? %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark7xxx_57xx_Z51
cd ..

# Lexmark Z11
cd lz11*
# Program and data files
install -m 755 cZ11-V2 %{buildroot}%{_bindir}
install -m 755 cZ11 %{buildroot}%{_bindir}
#ln -s %{_bindir}/cZ11-V2 %{buildroot}%{_bindir}/cZ11
install -m 755 cZ11-bit* %{buildroot}%{_bindir}
install -m 755 lz11.[^c]* %{buildroot}%{_bindir}
install -d %{buildroot}/etc/LexmarkZ11/
install -m 644 lz11.conf %{buildroot}/etc/LexmarkZ11/
install -m 644 *.ppd %{buildroot}%{_datadir}/cups/model/
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkZ11
cp -ax README ChangeLog INSTALL \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkZ11
cd ..

# Printer Utility Program
# Program file
#install -m 755 pup_1.1/pup %{buildroot}%{_bindir}
# Documentation
#install -d %{buildroot}%{_docdir}/printer-utils-%{version}/
#install -d %{buildroot}%{_docdir}/printer-utils-%{version}/PUP
#cp -ax pup_1.1/README \
#	%{buildroot}%{_docdir}/printer-utils-%{version}/PUP

# Lexmark printer maintenance
# Program and data files
install -m 755 lxcontrol/lx.control %{buildroot}%{_bindir}
install -m 755 lm1100maint/lm1100change %{buildroot}%{_bindir}
install -m 755 lm1100maint/lm1100back %{buildroot}%{_bindir}
install -m 755 changecartridge %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/lxcontrol
cp -f lxcontrol/*.out %{buildroot}%{_datadir}/lxcontrol/
( cd %{buildroot}%{_bindir}
  ln -s lx.control headclean
  ln -s lx.control headalign
  ln -s lx.control showcartridges
  ln -s lx.control hidecartridges
)
mkdir -p %{buildroot}%{_datadir}/lm1100maint
cp -f lm1100maint/lexmark* \
	%{buildroot}%{_datadir}/lm1100maint/
# Documentation
install -d %{buildroot}%{_docdir}/printer-utils-%{version}/
install -d %{buildroot}%{_docdir}/printer-utils-%{version}/LexmarkMaintenance
cp -ax lxcontrol/README.* lm1100maint/README.* \
	README.changecartridge README.Lexmark-Maintenance \
	%{buildroot}%{_docdir}/printer-utils-%{version}/LexmarkMaintenance

# Install margin and offset adjustment script in /usr/sbin
bzcat %{SOURCE75} > %{buildroot}%{_sbindir}/alignmargins
# Adjust path to improved align.ps 
perl -p -i -e 's:/usr/share/ghostscript/\*/lib/align.ps:%{_datadir}/alignmargins/align.ps:' %{buildroot}%{_sbindir}/alignmargins
# Install improved align.ps
install -d %{buildroot}%{_datadir}/alignmargins/
bzcat %{SOURCE175} > %{buildroot}%{_datadir}/alignmargins/align.ps

# Install a script to display the test page on the screen for colour
# adjustment
cat <<EOF > %{buildroot}%{_bindir}/displaytestpage
#!/bin/sh
ps2img="gs -dQUIET -dNOPAUSE -dBATCH -sDEVICE=pnm -r75x75 -sOUTPUTFILE=- -"
testpage=/usr/share/cups/data/testprint.ps

TMPFILE=~/.displaytestpage.pnm
if [ -x /usr/bin/kview ]; then
  cat \$testpage | \$ps2img > \$TMPFILE 
  /usr/bin/kview \$TMPFILE
elif [ -x /usr/bin/ee ]; then
  cat \$testpage | \$ps2img > \$TMPFILE 
  /usr/bin/ee \$TMPFILE
elif [ -x /usr/bin/gqview ]; then
  cat \$testpage | \$ps2img > \$TMPFILE 
  /usr/bin/gqview \$TMPFILE
elif [ -x /usr/bin/xv ]; then
  cat \$testpage | \$ps2img | /usr/bin/xv -
elif [ -x /usr/bin/kghostview ]; then
  /usr/bin/kghostview \$testpage
elif [ -x /usr/X11R6/bin/gv ]; then
  /usr/X11R6/bin/gv \$testpage
elif [ -x /usr/X11R6/bin/ghostview ]; then
  /usr/X11R6/bin/ghostview \$testpage
else
  xmessage "No suitable program for viewing PostScript found, install GhostView, gv, or similar."
  exit 1
fi
rm \$TMPFILE
EOF
chmod a+rx %{buildroot}/usr/bin/displaytestpage

# Menu entries for printer-utils package
# Menu icon
mkdir -p %{buildroot}%{_datadir}/icons/locolor/16x16/apps/
install -m 644 printutils.png %{buildroot}%{_datadir}/icons/locolor/16x16/apps/
# Menu entries

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-mtink.desktop << EOF
[Desktop Entry]
Name=Mtink - Epson Inkjet Printer Tools
Comment=Epson inkjet printer maintenance (Head cleaning and alignment, ink level display, cartridge change, ...)
Exec=/usr/bin/mtink
Icon=printutils
Terminal=false
Type=Application
Categories=System;Monitor;
EOF

# HP DeskJet PPA printers
cd pnm2ppa-*
install -m 0644  docs/en/pnm2ppa.1 %{buildroot}%{_mandir}/man1
%old_makeinstall BINDIR=%{buildroot}%{_bindir} CONFDIR=%{buildroot}%{_sysconfdir} MANDIR=%{buildroot}%{_mandir}/man1
install -m 0755 utils/Linux/detect_ppa %{buildroot}%{_bindir}
install -m 0755 utils/Linux/test_ppa %{buildroot}%{_bindir}
install -d  %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPDeskJetPPA/pnm2ppa
install -m 0644 *.ps %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPDeskJetPPA/pnm2ppa
cd docs/en
for file in * ; do
  if  [ -f $file ] ; then
     install -m 0644  $file %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPDeskJetPPA/pnm2ppa
  fi
done
rm -f %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPDeskJetPPA/pnm2ppa/pnm2ppa.1
cd ../..
cp -ax ppa_protocol rhs-printfilters sample_scripts README.security Changelog %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPDeskJetPPA/pnm2ppa
cd ..
cd pbm2ppa-0.8.6
install -m 0755 pbm2ppa  %{buildroot}%{_bindir}
install -m 0755 pbmtpg   %{buildroot}%{_bindir}
install -m 0644 pbm2ppa.conf   %{buildroot}%{_sysconfdir}
install -m 0644 pbm2ppa.1   %{buildroot}%{_mandir}/man1
install -d  %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPDeskJetPPA/pbm2ppa
for file in CALIBRATION CREDITS INSTALL INSTALL-MORE LICENSE README ; do
  if [ -f $file ] ; then
    install -m 0644  $file %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPDeskJetPPA/pbm2ppa
  fi
done
cd ..
install -m 0644 README.calibration %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPDeskJetPPA

# Lexmark 2050
cd c2050-0.4
# Program file
install -m 0755 c2050 %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark2050
cp -ax README COPYING ps2lexmark \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark2050
cd ..

# Lexmark 2030
cd pbm2l2030
# Program file
install -m 0755 pbm2l2030 %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark2030
cp -ax README.TXT LICENSE \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/Lexmark2030
cd ..

# Okipage 4w and compatible winprinters
cd oki4linux-2.0/src
# Program files
install -m 0755 oki4drv %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -m 0755 oki4daemon %{buildroot}%{_sbindir}
cd ../..
install -d %{buildroot}%{_initrddir}
install -m 0755 oki4daemon %{buildroot}%{_initrddir}
#install -m 0755 oki4w_install %{buildroot}%{_sbindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/OKI-Winprinters
#cp -ax README.OKI-Winprinters \
#	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/OKI-Winprinters
cd oki4linux-2.0
cp -ax COPYING ChangeLog README crack doc samples \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/OKI-Winprinters
cd src
cp -ax README.oki4daemon align.ps oki4daemon.init \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/OKI-Winprinters
install -m 0644 oki4drv.man %{buildroot}%{_mandir}/man1/oki4drv.1
cd ../..

# Citizen Printiva 600C
cd ppmtocpva-1.0
# Program files
install -m 0755 ppmtocpva %{buildroot}%{_bindir}
install -m 0755 cpva-colour %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/CitizenPrintiva600C
cp -ax README \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/CitizenPrintiva600C
cd ..

# CoStar and compatible label printers
cd pbm2lwxl
# Program file
install -m 0755 *2lwxl %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/DymoCoStarAvery-LabelPrinters
cp -ax README *.html \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/DymoCoStarAvery-LabelPrinters
cd ..

%ifarch %{ix86}
# Samsung ML-85G and QL-85G winprinters
cd ml85p-*
# Program file
install -m 4750 ml85p %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/SamsungML-85G
cp -ax COPYING NEWS README THANKS ml85-print ml85-test ml85p-*.lsm \
	printcap \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/SamsungML-85G
cd ..
%endif

# Filter for the Lexmark Z42
cd drv_z42/src
# Program file
install -s -m 755 z42_cmyk %{buildroot}%{_bindir}
cd ../z42tool/
%makeinstall
cd ..
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkZ42
cp -ax COPYING README FAQ ChangeLog \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkZ42
cp -ax z42tool/README \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkZ42/README.z42tool
cd ..

# GhostScript wrapper for the Pentax PocketJet printers
cd pentaxpj
# Program files
install -d %{buildroot}%{_libdir}/pentaxpj
cp -a BWidget-1.3.1 pentaxpj pentaxsetup pentax.xpm test-page.ps.gz\
	%{buildroot}%{_libdir}/pentaxpj
ln -s %{_libdir}/pentaxpj/pentaxsetup %{buildroot}%{_sbindir}
ln -s %{_libdir}/pentaxpj/pentaxpj %{buildroot}%{_bindir}
cat > %{buildroot}%{_sysconfdir}/pentaxpj.conf <<EOF
#
set settings(driverpath) %{_libdir}/pentaxpj
EOF
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/PentaxPocketJet
cp -ax README \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/PentaxPocketJet
cd ..

# Unix driver for MicroDry Printers
cd ppmtomd*
# Program files
install -m 0755 ppmtomd %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/MicroDryPrinters
cp -ax LICENCE \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/MicroDryPrinters
cp ppmtomd.man %{buildroot}%{_mandir}/man1/ppmtomd.1
cd ..

# Mtink - Printer maintenance/ink monitoring for Epson inkjets
cd mtink*
# Program files
install -d %{buildroot}%{_prefix}/lib/cups/backend
install -m 0755 mtink %{buildroot}%{_bindir}
install -m 0755 ttink %{buildroot}%{_bindir}
install -m 0755 mtinkc %{buildroot}%{_bindir}
install -m 0755 mtinkd %{buildroot}%{_sbindir}
install -m 0755 etc/mtink %{buildroot}%{_initrddir}
install -m 0755 etc/installInitScript.sh %{buildroot}%{_sbindir}/mtink-installInitScript
install -m 0755 detect/askPrinter %{buildroot}%{_sbindir}
install -m 0755 etc/mtink-cups %{buildroot}%{_prefix}/lib/cups/backend/mtink
install -m 0755 gimp-mtink %{buildroot}%{_libdir}/gimp/2.0/plug-ins/
install -d %{buildroot}/var/mtink
# Documentation
install -d %{buildroot}%{_docdir}/printer-utils-%{version}/EpsonInkjetMaintenance
cp -ax CHANGE.LOG doc/* \
	%{buildroot}%{_docdir}/printer-utils-%{version}/EpsonInkjetMaintenance
cp -ax etc/readme %{buildroot}%{_docdir}/printer-utils-%{version}/EpsonInkjetMaintenance/README.mtinkd.startup
cd ..

# Poster - Poster-printing on stndard sized paper 
cd poster*
# Program files
install -m 0755 poster %{buildroot}%{_bindir}
# Documentation
cp poster.1 %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_docdir}/printer-utils-%{version}/PosterPrinting
cp -ax ChangeLog README COPYING \
	%{buildroot}%{_docdir}/printer-utils-%{version}/PosterPrinting
cd ..

# Driver for HP LaserJet 1000

# Program files
install -m 0755 pbmtozjs %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPLaserJet1000
cp -ax pbmtozjs.txt \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/HPLaserJet1000

# Driver for Zenographics-based printers (Minolta magicolor DL series, HP
# LaserJet 1000, 1005, 1018, 1020, 1022, Color LaserJet 1600, 2600)
cd foo2zjs*
# Program files
install -m 0755 foo2zjs %{buildroot}%{_bindir}
install -m 0755 foo2zjs-wrapper %{buildroot}%{_bindir}
install -m 0755 foo2hp %{buildroot}%{_bindir}
install -m 0755 foo2hp2600-wrapper %{buildroot}%{_bindir}
install -m 0755 zjsdecode %{buildroot}%{_bindir}
install -m 0755 arm2hpdl %{buildroot}%{_bindir}
install -m 0755 okidecode %{buildroot}%{_bindir}
#install -m 0755 jbg2pbm %{buildroot}%{_bindir}
install -m 0755 getweb %{buildroot}%{_bindir}/foo2zjs-getweb
install -m 0755 icc2ps/foo2zjs-icc2ps %{buildroot}%{_bindir}
install -d %{buildroot}%{_datadir}/foo2zjs
install -d %{buildroot}%{_datadir}/foo2hp
install -d %{buildroot}%{_datadir}/foo2zjs/crd
install -d %{buildroot}%{_datadir}/foo2hp/psfiles
install -m 0644 gamma*.ps %{buildroot}%{_datadir}/foo2zjs
cp crd/*.* %{buildroot}%{_datadir}/foo2zjs/crd
cp crd/*.ps %{buildroot}%{_datadir}/foo2hp/psfiles
install -m 0755 usb_printerid %{buildroot}%{_sbindir}
install -m 0755 hplj1000 %{buildroot}%{_sbindir}
perl -p -i -e 's:\./(getweb):foo2zjs-$1:g' %{buildroot}%{_sbindir}/hplj1000
perl -p -i -e 's:/bin(/usb_printerid):%{_sbindir}$1:g' %{buildroot}%{_sbindir}/hplj1000
ln -s %{_sbindir}/hplj1000 %{buildroot}%{_sbindir}/hplj1005
ln -s %{_sbindir}/hplj1000 %{buildroot}%{_sbindir}/hplj1018
ln -s %{_sbindir}/hplj1000 %{buildroot}%{_sbindir}/hplj1020
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
install -m 0644 hplj10xx.rules %{buildroot}%{_sysconfdir}/udev/rules.d/70-hplj10xx.rules
perl -p -i -e 's:/etc/hotplug/usb:%{_sbindir}:' %{buildroot}%{_sysconfdir}/udev/rules.d/70-hplj10xx.rules
for dir in driver opt; do \
install -c -m 644 foomatic-db/$dir/foo2[hz]*.xml \
	%{buildroot}%{_datadir}/foomatic/db/source/$dir/; \
done
install -d %{buildroot}%{_datadir}/foo2zjs/icm
install -d %{buildroot}%{_datadir}/foo2hp/icm
ln -s /etc/printer %{buildroot}%{_datadir}/foo2zjs/firmware
ln -s /etc/printer %{buildroot}%{_datadir}/firmware
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/foo2zjs
cp -ax COPYING ChangeLog INSTALL INSTALL.usb README \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/foo2zjs
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/foo2zjs/icc2ps
cp -ax icc2ps/[ACR]* \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/foo2zjs/icc2ps
cp foo2[hz]*.1 zjs*.1 %{buildroot}%{_mandir}/man1/
cd ..

# Driver for Epson EPL "L" series
cd epsonepl*
# Program files
%makeinstall
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/EpsonEPL_L_Series
cp -ax ChangeLog epl_docs FAQ LIMITATIONS README \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/EpsonEPL_L_Series
cd ..

# Driver for Lexmark X125 (only printing)
# Program files
install -m 0755 drv_x125/src/x125_cmyk %{buildroot}%{_bindir}
install -m 0755 drv_x125/src/x125_cmyk_print.sh %{buildroot}%{_bindir}
install -m 0755 drv_x125_network/src/x125_network %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkX125
cd drv_x125
cp -ax ChangeLog FAQ INSTALL LICENSE README src/*.ps \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkX125
cd ..
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkX125/drv_x125_network
cd drv_x125_network
cp -ax ChangeLog FAQ INSTALL LICENSE README \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/LexmarkX125/drv_x125_network
cd ..

%ifarch %{ix86}
# Driver for Canon LBP-460/660
cd lbp660*
# Program files
install -m 0755 lbp660 %{buildroot}%{_bindir}
install -m 0755 lbp[46]60-* %{buildroot}%{_bindir}
# PPD files
install -d %{buildroot}%{_datadir}/cups/model/lbp660
cp ppd/*.ppd %{buildroot}%{_datadir}/cups/model/lbp660
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/CanonLBP-460-660
cp -ax COPYING NEWS README THANKS TODO \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/CanonLBP-460-660
cd ..
%endif

# Driver for Canon LBP-810/1120
cd capt*
# Program files
install -m 0755 capt %{buildroot}%{_bindir}
install -m 0755 capt-* %{buildroot}%{_bindir}
# PPD files
install -d %{buildroot}%{_datadir}/cups/model/capt
cp ppd/*.ppd %{buildroot}%{_datadir}/cups/model/capt
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/CanonLBP-810-1120
cp -ax COPYING NEWS README SPECS THANKS TODO \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/CanonLBP-810-1120
cd ..

# Driver for Lexmark X74/X75
cd lxx74*
# Program files
install -m 0755 rastertolxx74 %{buildroot}%{_prefix}/lib/cups/filter/rastertolxx74.bin
install -m 0644 self-portrait.out.gz %{buildroot}%{_datadir}/cups/data/self-portrait.out.gz
cat << EOF > %{buildroot}%{_prefix}/lib/cups/filter/rastertolxx74
#!/bin/bash
export self_portrait="%{_datadir}/cups/data/self-portrait.out.gz"
exec %{_prefix}/lib/cups/filter/rastertolxx74.bin "\$@"
EOF
chmod 755 %{buildroot}%{_prefix}/lib/cups/filter/rastertolxx74
install -m 0644 lxx74.types %{buildroot}%{_sysconfdir}/cups
install -m 0644 lxx74.convs %{buildroot}%{_sysconfdir}/cups
# PPD files
install -d %{buildroot}%{_datadir}/cups/model/lxx74
cp *.ppd* %{buildroot}%{_datadir}/cups/model/lxx74
# Documentation
#install -d %{buildroot}%{_docdir}/cups-drivers-%{version}/LexmarkX74X75
#cp -ax INSTALL LICENSE README lpoptions \
#	%{buildroot}%{_docdir}/cups-drivers-%{version}/LexmarkX74X75
cd ..

# Driver for Minolta magicolor 2300W
cd m2300w*
%makeinstall INSTROOT=%{buildroot}
for dir in driver opt; do \
install -c -m 644 foomatic/$dir/*.xml \
	%{buildroot}%{_datadir}/foomatic/db/source/$dir/; \
done
# Move documentation to the correct place
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/
mv %{buildroot}%{_docdir}/m2300w* %{buildroot}%{_docdir}/printer-filters-doc-%{version}/MinoltaMagicolor2300W
cd ..

# Driver for Minolta PagePro 12xxW, 13xxW, and 14xxW
cd min12xxw*
# Program files
install -m 0755 min12xxw %{buildroot}%{_bindir}
install -m 0755 esc-m %{buildroot}%{_bindir}
# Documentation
install -m 0644 min12xxw.1* %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/MinoltaPagePro12xxW_13xxW_14xxW
cp -ax COPYING README ChangeLog FAQ INSTALL NEWS format.txt usblogs \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/MinoltaPagePro12xxW_13xxW_14xxW
cd ..

# Driver for Casio USB label printers
cd pegg-*
# Program files
install -m 0755 pegg %{buildroot}%{_bindir}
# Documentation
install -m 0644 pegg.1.gz %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/CasioUSBLabelPrinters/pegg
cp -ax LICENSE README CHANGELOG INSTALL test_raw \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/CasioUSBLabelPrinters/pegg
cd ..
cd pegg_el-*/src
# Program files
install -m 0755 pegg_el %{buildroot}%{_bindir}
# Documentation
install -m 0644 pegg_el.1.gz %{buildroot}%{_mandir}/man1
cd ..
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/CasioUSBLabelPrinters/pegg_el
cp -ax TODO LICENSE README INSTALL src/test_raw \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/CasioUSBLabelPrinters/pegg_el
cd ..
cd xbm2crw*
# Program files
install -m 0755 xbm2crw %{buildroot}%{_bindir}
#install -m 0755 html2crw.sh %{buildroot}%{_bindir}
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/CasioUSBLabelPrinters/xbm2crw
cp -ax LICENSE README template.xbm \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/CasioUSBLabelPrinters/xbm2crw
cd ..
cd cups2pegg*/src
# Program files
install -m 0755 cups2pegg %{buildroot}%{_prefix}/lib/cups/backend
# PPD files
install -d %{buildroot}%{_datadir}/cups/model/pegg
cp ppd/*.ppd* %{buildroot}%{_datadir}/cups/model/pegg
cd ..
# Documentation
install -d %{buildroot}%{_docdir}/cups-drivers-%{version}/CasioUSBLabelPrinters/cups2pegg
cp -ax LICENSE *.html *.png \
	%{buildroot}%{_docdir}/cups-drivers-%{version}/CasioUSBLabelPrinters/cups2pegg
cd ..

# Drivers for the Konica Minolta magicolor DL series supplied by Konica
# Minolta
for d in magicolor????DL*; do
	cd $d
	# Program files
	make DESTDIR=%{buildroot} install
	# Documentation
	n=`echo $d | perl -e '$s = <>; $s =~ /magicolor(\d+)DL/i; print "$1"'`
	install -d %{buildroot}%{_docdir}/cups-drivers-%{version}/KonicaMinoltaMagicolor${n}DL
	cp -ax AUTHORS COPYING ChangeLog kmlf.spec \
	%{buildroot}%{_docdir}/cups-drivers-%{version}/KonicaMinoltaMagicolor${n}DL
	cd ..
done
rm -f %{buildroot}%{_datadir}/KONICA_MINOLTA/*/COPYING
install -m 644 magicolor2430DL*/src/km2300dl.ppd.gz %{buildroot}%{_datadir}/cups/model/KONICA_MINOLTA

# Driver for Brother P-Touch label printers
cd ptouch-driver*
# Program files
install -m 0755 rastertoptch %{buildroot}%{_bindir}
# Foomatic data
for dir in driver opt; do \
install -c -m 644 $dir/*.xml \
	%{buildroot}%{_datadir}/foomatic/db/source/$dir/; \
done
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/BrotherPTouch
cp AUTHORS ChangeLog COPYING INSTALL NEWS README %{buildroot}%{_docdir}/printer-filters-doc-%{version}/BrotherPTouch
cd ..

# Driver for Kyocera GDI printers: Kyocera FS-1016MFP
cd foo2kyo*
# Program files
install -m 0755 foo2kyo %{buildroot}%{_bindir}
install -m 0755 foo2kyo-wrapper %{buildroot}%{_bindir}
for dir in driver opt; do \
install -c -m 644 foomatic-db/$dir/foo2kyo*.xml \
	%{buildroot}%{_datadir}/foomatic/db/source/$dir/; \
done
# Documentation
install -d %{buildroot}%{_docdir}/printer-filters-doc-%{version}/foo2kyo
cp -ax COPYING jbig.doc \
	%{buildroot}%{_docdir}/printer-filters-doc-%{version}/foo2kyo
cd ..

# Driver for Samsung SPL2 printers
cd splix*
# Program files
install -m 755 -s src/rastertospl2 %{buildroot}%{_prefix}/lib/cups/filter/
# PPD files
install -d %{buildroot}%{_datadir}/cups/model/samsung
cp ppd/*.ppd* %{buildroot}%{_datadir}/cups/model/samsung
# Documentation
install -d %{buildroot}%{_docdir}/cups-drivers-%{version}/SamsungSPL2
cp -ax AUTHORS ChangeLog COPYING INSTALL README TODO \
	%{buildroot}%{_docdir}/cups-drivers-%{version}/SamsungSPL2
cd ..


# Tool for uploading the firmware on the HP LaserJet 1000S
install -m 0755 hp1000fw %{buildroot}%{_bindir}
# Make hp1000fw called by udev
#mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
#install -m 0644 udev-hp1000fw.rules %{buildroot}%{_sysconfdir}/udev/rules.d/70-hp1000fw.rules

install -d %{buildroot}%{_sysconfdir}/printer
# Tools for reading USB device ID strings
install -m 0755 usb_id_test %{buildroot}%{_bindir}
install -m 0755 getusbprinterid %{buildroot}%{_bindir}

# Correct permissions of PPD file directory
chmod -R u+w,a+rX %{buildroot}%{_datadir}/cups/model

# "cleanppd.pl" removes unwished PPD files fixes broken manufacturer
# entries, and cleans lines which contain only spaces and tabs.

# Uncompress Perl script for cleaning up the PPD files
bzcat %{SOURCE201} > ./cleanppd.pl
chmod a+rx ./cleanppd.pl
# Do the clean-up
find %{buildroot}%{_datadir}/cups/model -name "*.ppd" -exec ./cleanppd.pl '{}' \;
# Remove PPDs which are not Adobe-compliant and therefore not working with
# CUPS 1.1.20
for ppd in `find %{buildroot}%{_datadir}/cups/model -name "*.ppd.gz" -print`; do cupstestppd -q $ppd || (rm -f $ppd && echo "$ppd not Adobe-compliant. Deleted."); done

# Correct permissions for all documentation files
chmod -R a+rX %{buildroot}%{_docdir}
chmod -R go-w %{buildroot}%{_docdir}
chmod -R u+w %{buildroot}%{_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15915 |21mr|printer-testpages-2021-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Test pages to check the output quality of printers
Name:		printer-testpages
Version:	2021
Release:	18
License:	GPLv2+
Group:		Publishing
Url:		https://www.rosalinux.ru/
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	transfig
BuildArch:	noarch

%description
These are sample files to check the output quality of printers

%files
%{_datadir}/printer-testpages/

#----------------------------------------------------------------------------


%prep
%setup -q

# Photo test page
mv cups-profile.jpg photo-testpage.jpg

%build
cat testprint.prolog.ps.in rosa.eps testprint.epilog.ps.in > testprint.ps

# Red Hat test pages: Generate PS files of the XFig drawings
fig2dev -Lps -zLetter testpage.fig testpage.ps
fig2dev -Lps -zA4 testpage-a4.fig testpage-a4.ps

%install
install -d %{buildroot}%{_datadir}/%{name}

cp *.ps *.jpg *.asc %{buildroot}%{_datadir}/printer-testpages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15916 |21mr|printer-tools-2008-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Filter-style and IJS printer drivers, printer maintenance utilities
Name:		printer-tools
Version:	2008
Release:	17
License:	GPL
Group:		Publishing
Url:		http://www.linuxprinting.org/
# Perl script to clean up Manufacturer entries in the PPD files, so that
# drivers are sorted by the printer Manufacturer in the graphical frontends
Source201: 	cleanppd.pl
# Script to adjust margins and offsets of printed pages
Source75: 	alignmargins
Source175:	align.ps
# Tool for uploading the firmware on the HP LaserJet 1000S
Source85:	http://www.linuxprinting.org/download/printing/hp1000fw
# Tools for reading USB device ID strings
Source87:	http://www.linuxprinting.org/download/printing/usb_id_test.c
Source88:	http://www.linuxprinting.org/download/printing/getusbprinterid.pl
Provides:	ghostscript-utils = %{EVRD}
Provides:	Lexmark-printer-maintenance = %{EVRD}

%description
Tools for printer maintenance: Setting default options for most laser
printers (PJL-capable printers), cartridge changing, head aligning,
ink level checking for inkjet printers. Printing big posters on many 
sheets of standard sized paper (A4, A3, Letter, ...) to be assambled
together (also used by KDE Print to print posters).

%files
%attr(0755,root,root) %{_sbindir}/alignmargins
%attr(0755,root,root) %{_bindir}/hp1000fw
%attr(0755,root,root) %{_bindir}/displaytestpage
%attr(0755,root,root) %{_bindir}/usb_id_test
%attr(0755,root,root) %{_bindir}/getusbprinterid
%{_datadir}/alignmargins

#----------------------------------------------------------------------------

%prep
%setup -q -c -T

# Tool for uploading the firmware on the HP LaserJet 1000S
cp %{SOURCE85} hp1000fw

# Tools for reading USB device ID strings
cp %{SOURCE87} usb_id_test.c
cp %{SOURCE88} getusbprinterid

%build
# Tool for reading USB device ID strings
gcc %{optflags} %{ldflags} -o usb_id_test usb_id_test.c

%install
# Make directories
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_includedir}
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_mandir}/man8
install -d %{buildroot}%{_libdir}/gimp/2.0/plug-ins
install -d %{buildroot}%{_prefix}/lib/cups/filter
install -d %{buildroot}%{_prefix}/lib/cups/backend
install -d %{buildroot}%{_datadir}/cups/data
install -d %{buildroot}%{_datadir}/cups/model
install -d %{buildroot}%{_sysconfdir}/cups
install -d %{buildroot}%{_datadir}/foomatic/db/source/printer
install -d %{buildroot}%{_datadir}/foomatic/db/source/driver
install -d %{buildroot}%{_datadir}/foomatic/db/source/opt


# Install margin and offset adjustment script in /usr/sbin
cp %{SOURCE75} %{buildroot}%{_sbindir}/alignmargins

# Adjust path to improved align.ps 
perl -p -i -e 's:/usr/share/ghostscript/\*/lib/align.ps:%{_datadir}/alignmargins/align.ps:' %{buildroot}%{_sbindir}/alignmargins

# Install improved align.ps
install -d %{buildroot}%{_datadir}/alignmargins/
cp %{SOURCE175} %{buildroot}%{_datadir}/alignmargins/align.ps

# Install a script to display the test page on the screen for colour
# adjustment
cat <<EOF > %{buildroot}%{_bindir}/displaytestpage
#!/bin/sh
ps2img="gs -dQUIET -dNOPAUSE -dBATCH -sDEVICE=pnm -r75x75 -sOUTPUTFILE=- -"
testpage=/usr/share/cups/data/testprint.ps

TMPFILE=~/.displaytestpage.pnm
if [ -x /usr/bin/kview ]; then
  cat \$testpage | \$ps2img > \$TMPFILE 
  /usr/bin/kview \$TMPFILE
elif [ -x /usr/bin/ee ]; then
  cat \$testpage | \$ps2img > \$TMPFILE 
  /usr/bin/ee \$TMPFILE
elif [ -x /usr/bin/gqview ]; then
  cat \$testpage | \$ps2img > \$TMPFILE 
  /usr/bin/gqview \$TMPFILE
elif [ -x /usr/bin/xv ]; then
  cat \$testpage | \$ps2img | /usr/bin/xv -
elif [ -x /usr/bin/kghostview ]; then
  /usr/bin/kghostview \$testpage
elif [ -x /usr/X11R6/bin/gv ]; then
  /usr/X11R6/bin/gv \$testpage
elif [ -x /usr/X11R6/bin/ghostview ]; then
  /usr/X11R6/bin/ghostview \$testpage
else
  xmessage "No suitable program for viewing PostScript found, install GhostView, gv, or similar."
  exit 1
fi
rm \$TMPFILE
EOF
chmod a+rx %{buildroot}/usr/bin/displaytestpage

# Tool for uploading the firmware on the HP LaserJet 1000S
install -m 0755 hp1000fw %{buildroot}%{_bindir}

install -d %{buildroot}%{_sysconfdir}/printer

# Tools for reading USB device ID strings
install -m0755 usb_id_test %{buildroot}%{_bindir}
install -m0755 getusbprinterid %{buildroot}%{_bindir}

# "cleanppd.pl" removes unwished PPD files fixes broken manufacturer
# entries, and cleans lines which contain only spaces and tabs.

# Uncompress Perl script for cleaning up the PPD files
#cp %{SOURCE201} ./cleanppd.pl
#chmod a+rx ./cleanppd.pl

# Do the clean-up
#find %{buildroot}%{_datadir}/cups/model -name "*.ppd" -exec ./cleanppd.pl '{}' \;

# Remove PPDs which are not Adobe-compliant and therefore not working with
# CUPS 1.1.20
#for ppd in `find %{buildroot}%{_datadir}/cups/model -name "*.ppd.gz" -print`; do cupstestppd -q $ppd || (rm -f $ppd && echo "$ppd not Adobe-compliant. Deleted."); done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15917 |21mr|prison-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 barcode abstraction layer
Name:		prison
Version:	5.116.0
Release:	3
License:	MIT
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/kdesupport/prison
Source0:	http://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(libqrencode)
BuildRequires:	pkgconfig(libdmtx)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(zxing)

%description
KDE Frameworks 5 barcode abstraction layer.

Prison has a Prison::AbstractBarcode, which is the base class for
the actual barcode generators, currently Prison::QRCodeBarcode and
Prison::DataMatrixBarcode are the two implemented barcode generators.

%files
%{_kde5_datadir}/qlogging-categories5/prison.categories
%{_kde5_datadir}/qlogging-categories5/prison.renamecategories

#--------------------------------------------------------------------

%define qmlkf5prison %mklibname kf5prison-qml

%package -n %{qmlkf5prison}
Summary:	QML plugin for KDE Frameworks 5 Qt Prison module
Group:		System/Libraries
Provides:	kf5prison-qml = %{EVRD}

%description -n %{qmlkf5prison}
QML plugin for KDE Frameworks 5 Qt Prison module.

%files -n %{qmlkf5prison}
%dir %{_kde5_qmldir}/org/kde/prison/
%{_kde5_qmldir}/org/kde/prison/*

#----------------------------------------------------------------------------

%define kf5prison_major 5
%define libkf5prison %mklibname kf5prison %{kf5prison_major}

%package -n %{libkf5prison}
Summary:	KDE Frameworks 5 barcode abstraction layer shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{qmlkf5prison} = %{EVRD}

%description -n %{libkf5prison}
KDE Frameworks 5 barcode abstraction layer shared library.

%files -n %{libkf5prison}
%{_libdir}/libKF5Prison.so.%{kf5prison_major}*

#----------------------------------------------------------------------------

%define kf5prisonscanner_major 5
%define libkf5prisonscanner %mklibname kf5prisonscanner %{kf5prisonscanner_major}

%package -n %{libkf5prisonscanner}
Summary:	KDE Frameworks 5 barcode abstraction layer shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5prisonscanner}
KDE Frameworks 5 barcode abstraction layer shared library.

%files -n %{libkf5prisonscanner}
%{_libdir}/libKF5PrisonScanner.so.%{kf5prisonscanner_major}*

#----------------------------------------------------------------------------

%define devkf5prison %mklibname kf5prison -d

%package -n %{devkf5prison}
Summary:	Development files for KDE Frameworks 5 barcode abstraction layer module
Group:		Development/KDE and Qt
Requires:	%{libkf5prison} = %{EVRD}
Requires:	%{libkf5prisonscanner} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5prison-devel = %{version}

%description -n %{devkf5prison}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5prison}
%{_includedir}/KF5/Prison
%{_includedir}/KF5/PrisonScanner
%{_libdir}/libKF5Prison.so
%{_libdir}/libKF5PrisonScanner.so
%{_libdir}/cmake/KF5Prison
%{_libdir}/qt5/mkspecs/modules/qt_Prison.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15918 |21mr|procinfo-18-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: 	A tool for gathering and displaying system information
Name: 		procinfo
Version:	18
Release:	19
License: 	GPL
Group: 		Monitoring
Url:		http://freshmeat.net/projects/procinfo
Source: 	ftp://ftp.cistron.nl/pub/people/svm/procinfo-%{version}.tar.bz2
Patch0:		procinfo-14-misc.patch
Patch3:		procinfo-17-mandir.patch
Patch5:		procinfo-17-uptime.patch
Patch6:		procinfo-17-lsdev.patch
Patch7:		procinfo-18-acct.patch
Patch8:		procinfo-18-mharris-use-sysconf.patch
Patch9:		procinfo-18-maxdev.patch
Patch10:	procinfo-18-ranges.patch
Patch11:	procinfo-18-cpu-steal.patch
Patch12:	procinfo-18-intr.patch
Patch13:	procinfo-18-sys_siglist.patch
BuildRequires: 	ncurses-devel

%description
The procinfo command gets system data from the /proc directory (the kernel
filesystem), formats it and displays it on standard output. You can use
procinfo to acquire information about your system from the kernel as it is
running.

Install procinfo if you'd like to use it to gather and display system data.

%files
%doc README CHANGES
%{_bindir}/procinfo
%{_bindir}/lsdev
%{_bindir}/socklist
%{_mandir}/man8/procinfo.8*
%{_mandir}/man8/lsdev.8*
%{_mandir}/man8/socklist.8*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%make RPM_OPT_FLAGS="%{optflags} -I/usr/include/ncurses" LDFLAGS="%{ldflags}" LDLIBS="-lncurses"

%install
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man8}
perl -p -i -e 's/-o 0 -g 0//g' Makefile
perl -p -i -e 's!/man/!/share/man/!g' Makefile
perl -p -i -e 's!$(prefix)/man!'%{buildroot}'%{_mandir}!g' Makefile

%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15919 |21mr|procmail-3.22-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The procmail mail processing program
Name:		procmail
Version:	3.22
Release:	24
License:	GPL/Artistic
Group:		System/Servers
URL:		http://www.procmail.org
Source0:	ftp://ftp.procmail.org/pub/procmail/%{name}-%{version}.tar.bz2
Patch1:		%{name}-3.22-lockf.patch
Patch2:		%{name}-3.22-pixelpb.patch
Patch3:		%{name}-3.22-benchmark.patch
# Fix #27484: explictly define sendmail's location as it's not
# installed when we build procmail so it can't detect it - AdamW
# 2008/03 (thanks Snowbat)
Patch4:		procmail-3.22-defsendmail.patch
# patch from fedora
Patch5:		procmail-3.22-getline.patch
Patch6:		procmail-3.22-CVE-2014-3618.patch
Patch7:		procmail-3.22-crash-fix.patch
Patch9:		procmail-3.22-CVE-2017-16844.patch
Provides:	MailTransportAgent

%description
The procmail program is used by Mandriva Linux for all local mail
delivery. In addition to just delivering mail, procmail can be used
for automatic filtering, presorting and other mail handling jobs.
Procmail is also the basis for the SmartList mailing list processor.

%prep

%setup -q
%patch1 -p1 -b .lockf
%patch2 -p1 -b .warly
%patch3 -p1 -b .bench
%patch4 -p1 -b .defsendmail
%patch5 -p1 -b .readline
%patch6 -p1 -b .CVE-2014-3618
%patch7 -p1 -b .crash-fix
%patch9 -p1 -b .CVE-2017-16844

find . -type d -exec chmod 755 {} \;

%build
echo -n -e "\n"|  %make CFLAGS0="%{optflags}" LDFLAGS0="%{ldflags}"

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/{man1,man5}

make \
    BASENAME=%{buildroot}%{_prefix} \
    install.bin install.man

#move the man pages
mv %{buildroot}/usr/man/man1/* %{buildroot}%{_mandir}/man1/
mv %{buildroot}/usr/man/man5/* %{buildroot}%{_mandir}/man5/

## duplicate in /usr/bin
rm -f examples/mailstat

%clean

%files
%doc FAQ HISTORY README KNOWN_BUGS FEATURES examples
%attr(6755,root,mail) %{_bindir}/procmail
%attr(2755,root,mail) %{_bindir}/lockfile
%{_bindir}/formail
%{_bindir}/mailstat
%{_mandir}/man1/*1*
%{_mandir}/man5/*5*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15920 |21mr|procps-ng-3.3.17-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname procps %{major}
%define devname %mklibname procps -d

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Utilities for monitoring your system and processes on your system
Name:		procps-ng
Version:	3.3.17
Release:	4
License:	GPLv2+
Group:		Monitoring
Url:		http://sourceforge.net/projects/procps-ng/
Source0:	http://downloads.sourceforge.net/project/procps-ng/Production/%{name}-%{version}.tar.xz
# from https://launchpad.net/ubuntu/+source/procps/2:3.3.17-6ubuntu2.1
Patch1:		CVE-2023-4016.patch
BuildRequires:	libtool
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(libsystemd)
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
Provides:	procps = %{EVRD}
Provides:	procps3 = %{EVRD}
Conflicts:	procps < 3.3.10
Obsoletes:	procps < 3.3.10

%description
The procps package contains a set of system utilities which provide system
information.

%files -f %{name}.lang
%doc NEWS AUTHORS
/bin/free
/bin/ps
/sbin/sysctl
%{_bindir}/pgrep
%{_bindir}/pwait
%{_bindir}/pmap
%{_bindir}/pwdx
%{_bindir}/pkill
%{_bindir}/skill
%{_bindir}/slabtop
%{_bindir}/snice
%{_bindir}/tload
%{_bindir}/top
%{_bindir}/uptime
%{_bindir}/vmstat
%{_bindir}/w
%{_bindir}/watch
%{_mandir}/man1/*.1*
%{_mandir}/man3/*.3*
%{_mandir}/man5/*.5*
%{_mandir}/man8/*.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
License:	LGPLv2+

%description -n %{libname}
Main library for %{name}.

%files -n %{libname}
/%{_lib}/libprocps.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
License:	LGPLv2+
Requires:	%{libname} = %{EVRD}
Provides:	procps-devel = %{EVRD}
Conflicts:	procps-devel < 3.3.10
Obsoletes:	procps-devel < 3.3.10

%description -n %{devname}
Development headers and library for the %{name} library.

%files -n %{devname}
%doc Documentation/FAQ Documentation/bugs.md
%dir %{_includedir}/proc
%{_includedir}/proc/*.h
%{_libdir}/libprocps.so
%{_libdir}/pkgconfig/libprocps.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n procps-%{version}
sed -e 's#${exec_prefix}/usr/bin#${bindir}#' -i configure.ac

%build
autoreconf -fiv
%serverbuild_hardened
%configure \
	--sbindir=/sbin \
	--disable-static \
	--enable-watch8bit \
	--disable-kill \
	--disable-pidof \
	--enable-wide-percent \
	--enable-skill \
	--enable-sigwinch \
	--with-systemd \
%if %{with selinux}
	--enable-libselinux \
%else
	--disable-libselinux \
%endif
	--enable-w-from

%make_build

%install
%make_install

mkdir %{buildroot}/bin
mkdir %{buildroot}/%{_lib}
mv %{buildroot}%{_bindir}/free %{buildroot}/bin
mv %{buildroot}%{_bindir}/ps %{buildroot}/bin

rm -rf %{buildroot}%{_docdir}/%{name}

mv %{buildroot}%{_libdir}/libprocps.so.%{major}* %{buildroot}/%{_lib}
ln -srf %{buildroot}/%{_lib}/libprocps.so.%{major}.*.* %{buildroot}%{_libdir}/libprocps.so

%find_lang %{name} --with-man --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15921 |21mr|proguard-5.3.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           proguard
Version:        5.3.3
Release:        7
Summary:        Java class file shrinker, optimizer, obfuscator and preverifier
Group:          Development/Java
License:        GPLv2+
URL:            https://www.guardsquare.com/en/proguard
Source0:        http://downloads.sourceforge.net/%{name}/%{name}%{version}.tar.gz
Source1:        %{name}.desktop
Source2:        README.dist

BuildRequires:  jpackage-utils
BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  ant
Requires:       jpackage-utils
Requires:       java >= 1:1.6.0

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ProGuard is a free Java class file shrinker, optimizer, obfuscator and 
preverifier. It detects and removes unused classes, fields, methods, and 
attributes. It optimizes bytecode and removes unused instructions. It 
renames the remaining classes, fields, and methods using short meaningless 
names. Finally, it preverifies the processed code for Java 6 or for Java 
Micro Edition. 

%package manual
Summary:        Manual for %{name}
Requires:       jpackage-utils

%description manual
The manual for %{name}.

%package gui
Summary:        GUI for %{name}
# we convert the favicon.ico to png files of different sizes, so we require
# ImageMagick
BuildRequires:  imagemagick
BuildRequires:  desktop-file-utils
Requires:       jpackage-utils
Requires:       %{name} = %{version}-%{release}

%description gui
A GUI for %{name}.

%prep
%setup -qn %{name}%{version}

# remove all jar and class files, the snippet from Packaging:Java does 
# not work
find -name '*.jar' -exec rm -f '{}' \;
find -name '*.class' -exec rm -f '{}' \;

# remove the Class-Path from MANIFESTs
sed -i '/class-path/I d' src/%{name}/gui/MANIFEST.MF
sed -i '/class-path/I d' src/%{name}/retrace/MANIFEST.MF

# this will create three png files from the favicon that contains multiple size 
# icons: 0: 48x48, 1: 32x32, 2: 16x16
convert docs/favicon.ico %{name}.png
cp -p %{name}-0.png %{name}48.png
cp -p %{name}-1.png %{name}32.png
cp -p %{name}-2.png %{name}16.png

# add README.dist
cp -p %{SOURCE2} .

%build
cd buildscripts/
# build ProGuard, ProGuardGUI, retrace and anttask
ant -Dant.jar=%{_javadir}/ant.jar basic anttask

%install
mkdir -p ${RPM_BUILD_ROOT}%{_javadir}/%{name}/
cp -p lib/%{name}.jar ${RPM_BUILD_ROOT}%{_javadir}/%{name}/%{name}.jar
cp -p lib/%{name}gui.jar ${RPM_BUILD_ROOT}%{_javadir}/%{name}/%{name}gui.jar
cp -p lib/retrace.jar ${RPM_BUILD_ROOT}%{_javadir}/%{name}/retrace.jar

mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
%jpackage_script proguard.ProGuard "" "" proguard proguard true
%jpackage_script proguard.gui.ProGuardGUI "" "" proguard proguard-gui true
%jpackage_script proguard.retrace.ReTrace "" "" proguard proguard-retrace true

#install the desktop file for proguard-gui
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{SOURCE1}

#copy icons
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/48x48/apps
cp -p %{name}48.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/32x32/apps
cp -p %{name}32.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/16x16/apps
cp -p %{name}16.png ${RPM_BUILD_ROOT}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png

%files
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/proguard.jar
%{_javadir}/%{name}/retrace.jar
%{_bindir}/proguard
%{_bindir}/proguard-retrace
%doc README examples/ README.dist

%files manual
%doc docs/*

%files gui
%{_bindir}/%{name}-gui
%{_javadir}/%{name}/proguardgui.jar
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/*/*/apps/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15922 |21mr|proj-8.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 22
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	Cartographic projection software
Name:		proj
Version:	8.2.1
Release:	3
License:	MIT
Group:		Sciences/Geosciences
Url:		http://trac.osgeo.org/proj/
Source0:	https://download.osgeo.org/proj/%{name}-%{version}.tar.gz
Source1:	https://download.osgeo.org/proj/proj-datumgrid-1.8.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	unzip
BuildRequires:	tiff-devel
BuildRequires:	curl-devel
BuildRequires:	gtest-devel
BuildRequires:	gmock-devel
BuildRequires:	sqlite-tools
BuildRequires:	pkgconfig(sqlite3)
Provides:	proj4 = %{EVRD}

%description
Cartographic projection software and libraries.

%files
%doc AUTHORS COPYING ChangeLog README 
%{_docdir}/proj/NEWS
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/proj

#-------------------------------------------------------------------------

%package -n %{libname}
Summary:	Cartographic projection software - Libraries
Group:		System/Libraries

%description -n %{libname}
Cartographic projection software and libraries.

%files -n %{libname}
%{_libdir}/libproj.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Cartographic projection software - Development files
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}

%description -n %{devname}
Cartographic projection development files.

%files -n %{devname}
%{_includedir}/*.h
%{_includedir}/proj/*.hpp
%{_libdir}/*.so
%{_libdir}/pkgconfig/proj.pc
%{_libdir}/cmake/proj
%{_libdir}/cmake/proj4

#-------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Cartographic projection software - Development files
Group:		Development/Other
Provides:	%{name}-static-devel = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
Cartographic projection development files (static).

#-------------------------------------------------------------------------

%prep
%setup -D -q
find . -name "*.c" -exec chmod 644 {} \;
pushd data
tar xf %{SOURCE1}
popd

%build
%cmake -G Ninja \
	-DUSE_EXTERNAL_GTEST=ON

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15923 |21mr|projectlibre-1.9.3-0.git20814e.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 20814e88dc83694f9fc6780c2550ca5c8a87aa16
%define commit_short %(echo %{commit} | head -c 6)
%define java_version 1.8

Summary:	The open source replacement of Microsoft Project
Name:		projectlibre

Version:	1.9.3
Release:	0.git%{commit_short}.2

License:	Common Public Attribution License
Group:		Office
Url:		http://www.projectlibre.org

Source0:	https://sourceforge.net/code-snapshots/git/p/pr/%{name}/code.git/%{name}-code-%{commit}.zip

Patch1:		%{name}-alt-fix-help-browser-list.patch

BuildRequires:	ant
BuildRequires:  javapackages-local
BuildRequires:	java-devel >= %{java_version}
BuildRequires: mvn(ant-contrib:ant-contrib)
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-digester:commons-digester)
BuildRequires: mvn(org.apache.commons:commons-lang)
BuildRequires: mvn(apache:commons-logging-api)
BuildRequires: mvn(commons-pool:commons-pool)
BuildRequires: mvn(com.lowagie:itext)
BuildRequires: mvn(org.jfree:jcommon)
BuildRequires: mvn(org.jfree:jfreechart)
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: proguard
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.commons:commons-collections4)
BuildRequires: mvn(javax.xml.bind:jaxb-api)
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(bsf:bsf)
BuildRequires: mvn(commons-cli:commons-cli)
BuildRequires: mvn(org.codehaus.groovy:groovy)
BuildRequires: mvn(apache:xerces-j2)
BuildRequires: mvn(com.thoughtworks.xstream:xstream)
BuildRequires: mvn(bsh:bsh)

Requires:	java >= %{java_version}
BuildArch:	noarch

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ProjectLibre is an open source alternative to Microsoft Project.  It is
also the new updated version of OpenProj. We were the developers of
OpenProj A compliment to Apache OpenOffice and LibreOffice.  We have a
community site as well at http://www.projectlibre.org It has been
downloaded over 500,000 times in 200 countries and was just won
InfoWorld "Best of Open Source" award. ProjectLibre is compatible
with Microsoft Project 2003, 2007 and 2010 files. You can simply open
them on Linux, Mac OS or Windows. ProjectLibre has been rewritten and
added key features:

* Compatibility with Microsoft Project 2010
* User Interface improvement
* Printing (does not allow printing)
* Bug fixes

%files
%license %{name}_build/license/*
%doc %{name}_build/doc/*

#%%{_libexecdir}/%%{name}
%{_bindir}/%{name}
#%%{_datadir}/pixmaps/%%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_datadir}/pixmaps/%{name}.png
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/%{name}.jar
%dir %{_datadir}/%{name}/lib
%{_datadir}/%{name}/lib/%{name}-*.jar
%dir %{_datadir}/%{name}/samples
%{_datadir}/%{name}/samples/* 

#--------------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-code-%{commit}
find . -name "%{name}*.jar" -exec rm -fvr {} \;

rm -fvr %{name}_contrib/ant-lib/{ant-contrib-1.jar,proguard.jar}
ln -sfvr $(build-classpath ant-contrib/ant-contrib.jar) %{name}_contrib/ant-lib/ant-contrib-1.jar
ln -sfvr $(build-classpath proguard/proguard.jar) %{name}_contrib/ant-lib/proguard.jar

rm -fvr %{name}_contrib/{commons-*.jar,itext.jar,jcommon.jar}
ln -sfvr $(build-classpath apache-commons-beanutils) %{name}_contrib/commons-beanutils.jar
ln -sfvr $(build-classpath apache-commons-collections) %{name}_contrib/commons-collections.jar
ln -sfvr $(build-classpath commons-digester) %{name}_contrib/commons-digester.jar
ln -sfvr $(build-classpath apache-commons-lang) %{name}_contrib/commons-lang.jar
ln -sfvr $(build-classpath apache-commons-logging-api)  %{name}_contrib/commons-logging-api.jar
ln -sfvr $(build-classpath apache-commons-pool) %{name}_contrib/commons-pool.jar
ln -sfvr $(build-classpath itext) %{name}_contrib/itext.jar
ln -sfvr $(build-classpath jcommon) %{name}_contrib/jcommon.jar

rm -fvr %{name}_contrib/lib/{commons-*.jar,itext.jar,jcommon.jar,junit.jar}
ln -sfvr $(build-classpath apache-commons-beanutils) %{name}_contrib/lib/commons-beanutils.jar
ln -sfvr $(build-classpath apache-commons-collections) %{name}_contrib/lib/commons-collections.jar
ln -sfvr $(build-classpath commons-digester) %{name}_contrib/lib/commons-digester.jar
ln -sfvr $(build-classpath apache-commons-lang) %{name}_contrib/lib/commons-lang.jar
ln -sfvr $(build-classpath apache-commons-logging-api)  %{name}_contrib/lib/commons-logging-api.jar
ln -sfvr $(build-classpath apache-commons-pool) %{name}_contrib/lib/commons-pool.jar
ln -sfvr $(build-classpath itext) %{name}_contrib/lib/itext.jar
ln -sfvr $(build-classpath jcommon) %{name}_contrib/lib/jcommon.jar
ln -sfvr $(build-classpath jfreechart) %{name}_contrib/lib/jfreechart.jar
ln -sfvr $(build-classpath junit) %{name}_contrib/lib/junit.jar

rm -fvr %{name}_contrib/lib/exchange/{commons-collections4.jar,jaxb-api}
ln -sfvr $(build-classpath commons-collections4) %{name}_contrib/lib/exchange/commons-collections4.jar
ln -sfvr $(build-classpath jaxb-api) %{name}_contrib/lib/exchange/jaxb-api.jar

rm -fvr %{name}_contrib/lib/groovy/{ant-*.jar,antlr.jar,bsf-2.3.0-rc1.jar,commons-cli-1.0.jar,xerces-2.4.0.jar,xstream-1.1.1.jar}
ln -sfvr $(build-classpath ant) %{name}_contrib/lib/groovy/ant-1.6.5.jar
ln -sfvr $(build-classpath antlr) %{name}_contrib/lib/groovy/antlr.jar
ln -sfvr $(build-classpath bsf) %{name}_contrib/lib/groovy/bsf-2.3.0-rc1.jar
ln -sfvr $(build-classpath commons-cli) %{name}_contrib/lib/groovy/commons-cli-1.0.jar
ln -sfvr $(build-classpath groovy/groovy.jar) %{name}_contrib/lib/groovy/groovy.jar
ln -sfvr $(build-classpath xerces-j2) %{name}_contrib/lib/groovy/xerces-2.4.0.jar
ln -sfvr $(build-classpath xstream) %{name}_contrib/lib/groovy/xstream-1.1.1.jar

rm -vfr %{name}_contrib/lib/jasperreports/{bsh.jar,itext-1.3.1.jar,xalan.jar}
ln -sfvr $(build-classpath bsh) %{name}_contrib/lib/jasperreports/bsh.jar
ln -sfvr $(build-classpath itext) %{name}_contrib/lib/jasperreports/itext-1.3.1.jar
ln -sfvr $(build-classpath xalan-j2) %{name}_contrib/lib/jasperreports/xalan.jar

%build
pushd %{name}_build
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8
%ant
popd

%install
#mkdir -p %%{buildroot}/%%{_libexecdir}/%%{name}/lib
#install -Dm0755  projectlibre_build/dist/%%{name}.jar %%{buildroot}/%%{_libexecdir}/%%{name}/
#install -Dm0755 projectlibre_contrib/*.jar %%{buildroot}/%%{_libexecdir}/%%{name}/lib/

# startscript
#cat > %%{name} << EOF
#!/bin/sh
#
#echo Starting %%{name} version %%{version} ...
#echo with options : \${@}

#java -jar %%{_libexecdir}/%%{name}/%%{name}.jar \${@}

#EOF

# Install startscript
#install -Dm0755 %%{name} %%{buildroot}%%{_bindir}/%%{name}

#install -Dm0644 projectlibre_build/resources/%%name.desktop %%{buildroot}%%{_datadir}/applications/%%{name}.desktop
#install -Dm0644 projectlibre_build/resources/%%{name}.png %%{buildroot}%%{_datadir}/pixmaps/%%{name}.png


# ===========================

mkdir -p %{buildroot}%{_bindir}
install -Dm 0755 %{name}_build/resources/%{name} %{buildroot}/%{_bindir}

mkdir -p %{buildroot}%{_datadir}/{applications,\
mime/packages,\
pixmaps,\
%{name}/{lib,samples}}

install -Dm 0644 %{name}_build/resources/%{name}.desktop \
    %{buildroot}%{_datadir}/applications

install -Dm 0644 %{name}_build/resources/%{name}.xml \
    %{buildroot}%{_datadir}/mime/packages

install -Dm 0644 %{name}_build/resources/%{name}.png \
    %{buildroot}%{_datadir}/pixmaps

install -Dm 0644 %{name}_build/dist/%{name}.jar \
    %{buildroot}%{_datadir}/%{name}

install -Dm 0644 %{name}_build/dist/lib/%{name}-*.jar \
    %{buildroot}%{_datadir}/%{name}/lib
 
install -Dm 0644 %{name}_build/resources/samples/* \
    %{buildroot}%{_datadir}/%{name}/samples

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15924 |21mr|properties-maven-plugin-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          properties-maven-plugin
Version:       1.0.0
Release:       8
Summary:       Properties Maven Plugin
License:       ASL 2.0
URL:           http://www.mojohaus.org/properties-maven-plugin/
Source0:       https://github.com/mojohaus/properties-maven-plugin/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Properties Maven Plugin is here to make life a little easier when dealing
with properties. It provides goals to read and write properties from files.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# use maven 3.x apis
%pom_xpath_set pom:properties/pom:maven.api.version 3.0.3
%pom_change_dep :maven-project :maven-core:'${maven.api.version}'

%pom_remove_plugin :plexus-maven-plugin
%pom_add_plugin org.codehaus.plexus:plexus-component-metadata:1.5.5 . '
<executions>
 <execution>
  <goals>
   <goal>generate-metadata</goal>
  </goals>
 </execution>
</executions>'

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15925 |21mr|protobuf-3.12.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gtest_version 1.7.0
%global _disable_rebuild_configure 1

# w/a problems with GCC 10
# https://lists.altlinux.org/pipermail/devel/2020-December/212848.html
%global optflags %{optflags} -fcommon

# Major
%define major 23

# Library names
%define libname		%mklibname %{name} %{major}
%define liblite		%mklibname %{name}-lite %{major}
%define libcompiler	%mklibname protoc %{major}
%define devname		%mklibname %{name} -d
%define sdevname	%mklibname %{name} -d -s

# python and python3 subpackages
%bcond_without python2
%bcond_without python3

# Java stack is not supported on x86_32
%ifarch %{ix86} %{e2k} %{riscv}
%bcond_with java
%else
%bcond_without java
%endif

%bcond_with gtest

Summary:	Protocol Buffers - Google's data interchange format
Name:		protobuf
Version:	3.12.3
Release:	4
License:	BSD
Group:		Development/Other
Url:		https://github.com/google/protobuf
Source0:	https://github.com/google/protobuf/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	ftdetect-proto.vim
# For tests
Source3:	https://github.com/google/googlemock/archive/release-%{gtest_version}.tar.gz?/googlemock-%{gtest_version}.tar.gz
Source4:	https://github.com/google/googletest/archive/release-%{gtest_version}.tar.gz?/googletest-%{gtest_version}.tar.gz
Patch0:		CVE-2021-22570.patch
BuildRequires:	pkgconfig(zlib)
%if %{with gtest}
BuildRequires:	gtest-devel
%endif
%if %{with python2}
BuildRequires:	pkgconfig(python2)
BuildRequires:	%{python2}-setuptools
%endif
%if %{with python3}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
%endif
%if %{with java}
BuildRequires:	java-devel >= 1.6
BuildRequires:	jpackage-utils
BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.gson:gson)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:	maven-compiler-plugin
BuildRequires:	maven-install-plugin
BuildRequires:	maven-jar-plugin
BuildRequires:	maven-javadoc-plugin
BuildRequires:	maven-release-plugin
BuildRequires:	maven-resources-plugin
BuildRequires:	maven-surefire-plugin
BuildRequires:	maven-antrun-plugin
%endif

%description
Protocol Buffers are a way of encoding structured data in an efficient
yet extensible format. Google uses Protocol Buffers for almost all of
its internal RPC protocols and file formats.

Protocol buffers are a flexible, efficient, automated mechanism for
serializing structured data - think XML, but smaller, faster, and
simpler. You define how you want your data to be structured once, then
you can use special generated source code to easily write and read
your structured data to and from a variety of data streams and using a
variety of languages. You can even update your data structure without
breaking deployed programs that are compiled against the "old" format.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime library for %{name}
Group:		System/Libraries

%description -n %{libname}
Protocol Buffers are a way of encoding structured data in an efficient
yet extensible format. Google uses Protocol Buffers for almost all of
its internal RPC protocols and file formats.

Protocol buffers are a flexible, efficient, automated mechanism for
serializing structured data - think XML, but smaller, faster, and
simpler. You define how you want your data to be structured once, then
you can use special generated source code to easily write and read
your structured data to and from a variety of data streams and using a
variety of languages. You can even update your data structure without
breaking deployed programs that are compiled against the "old" format.

This package contains the shared %{name} library.

%files -n %{libname}
%doc CHANGES.txt CONTRIBUTORS.txt LICENSE README.md
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{liblite}
Summary:	Protocol Buffers lite version
Group:		Development/Other

%description -n %{liblite}
This package contains a compiled with "optimize_for = LITE_RUNTIME" 
version of Google's Protocol Buffers library.

The "optimize_for = LITE_RUNTIME" option causes the compiler to 
generate code which only depends libprotobuf-lite, which is much 
smaller than libprotobuf but lacks descriptors, reflection, and some 
other features.

%files -n %{liblite}
%doc LICENSE README.md
%{_libdir}/lib%{name}-lite.so.%{major}*

#----------------------------------------------------------------------------

%package compiler
Summary:	Protocol Buffers compiler
Group:		Development/Other
Recommends:	%{libname}
Recommends:	%{liblite}

%description compiler
This package contains Protocol Buffers compiler for all programming
languages.

%files compiler
%doc LICENSE README.md
%{_bindir}/protoc

#----------------------------------------------------------------------------

%package -n %{libcompiler}
Summary:	Protocol Buffers compiler shared library
Group:		System/Libraries

%description -n %{libcompiler}
This package contains the Protocol Buffers compiler shared library.

%files -n %{libcompiler}
%{_libdir}/libprotoc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Protocol Buffers C++ headers and libraries
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{liblite} = %{EVRD}
Requires:	%{name}-compiler = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains Protocol Buffers compiler for all languages and
C++ headers and libraries.

%files -n %{devname}
%doc examples/add_person.cc examples/addressbook.proto
%doc examples/list_people.cc examples/Makefile examples/README.md
%dir %{_includedir}/google
%{_includedir}/google/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}-lite.so
%{_libdir}/libprotoc.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/pkgconfig/%{name}-lite.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{liblite} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains static libraries for Protocol Buffers.

%files -n %{sdevname}
%{_libdir}/lib%{name}.a
%{_libdir}/lib%{name}-lite.a
%{_libdir}/libprotoc.a

#----------------------------------------------------------------------------

%if %{with python2}
%package -n %{python2}-%{name}
%py2_migration_meta %{python2}-%{name}
Summary:	Python bindings for Google Protocol Buffers
Group:		Development/Python
Requires:	%{name}-compiler = %{EVRD}

%description -n %{python2}-%{name}
This package contains Python bindings for Google Protocol Buffers.

%files -n %{python2}-%{name}
%doc python/README.md
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
%dir %{python2_sitelib}/google
%{python2_sitelib}/google/%{name}/
%{python2_sitelib}/%{name}-%{version}-py%{python2_version}.egg-info/
%{python2_sitelib}/%{name}-%{version}-py%{python2_version}-nspkg.pth
%endif

#----------------------------------------------------------------------------

%if %{with python3}
%package -n python3-%{name}
Summary:	Python 3 bindings for Google Protocol Buffers
Group:		Development/Python
Requires:	%{name}-compiler = %{EVRD}

%description -n python3-%{name}
This package contains Python 3 bindings for Google Protocol Buffers.

%files -n python3-%{name}
%doc python/README.md
%doc examples/add_person.py examples/list_people.py examples/addressbook.proto
%dir %{python3_sitelib}/google
%{python3_sitelib}/google/%{name}/
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}-nspkg.pth
%endif

#----------------------------------------------------------------------------

%package vim
Summary:	Vim syntax highlighting for Google Protocol Buffers
Group:		Development/Other
Requires:	vim-enhanced

%description vim
This package contains syntax highlighting for Google Protocol Buffers
descriptions in Vim editor.

%files vim
%{_datadir}/vim/vimfiles/ftdetect/proto.vim
%{_datadir}/vim/vimfiles/syntax/proto.vim

#----------------------------------------------------------------------------

%if %{with java}
%package java
Summary:	Java Protocol Buffers runtime library
Group:		Development/Java
Requires:	java
Requires:	jpackage-utils
Requires(post,postun):	jpackage-utils
Requires:	%{name}-compiler = %{EVRD}

%description java
This package contains Java Protocol Buffers runtime library.

%files java -f .mfiles-protobuf-java
%doc examples/AddPerson.java examples/ListPeople.java
%doc java/README.md
%doc LICENSE

#----------------------------------------------------------------------------

%package javalite
Summary:        Java Protocol Buffers lite runtime library
BuildArch:      noarch

%description javalite
This package contains Java Protocol Buffers lite runtime library.

%files javalite -f .mfiles-protobuf-javalite
%doc LICENSE

#----------------------------------------------------------------------------

%package java-util
Summary:        Utilities for Protocol Buffers
BuildArch:      noarch

%description java-util
Utilities to work with protos. It contains JSON support
as well as utilities to work with proto3 well-known types.

%files java-util -f .mfiles-protobuf-java-util

#----------------------------------------------------------------------------

%package javadoc
Summary:        Javadoc for %{name}-java
BuildArch:      noarch

%description javadoc
This package contains the API documentation for %{name}-java.

%files javadoc -f .mfiles-javadoc
%doc LICENSE

#----------------------------------------------------------------------------

%package parent
Summary:        Protocol Buffer Parent POM
BuildArch:      noarch

%description parent
Protocol Buffer Parent POM.

%files parent -f .mfiles-protobuf-parent
%doc LICENSE

#----------------------------------------------------------------------------


%package bom
Summary:        Protocol Buffer BOM POM
BuildArch:      noarch

%description bom
Protocol Buffer BOM POM.

%files bom -f .mfiles-protobuf-bom
%doc LICENSE

%endif
#----------------------------------------------------------------------------

%prep
%setup -q -a3 -a4
%patch0 -p1

%if %{with java}
%pom_remove_dep org.easymock:easymockclassextension java/pom.xml java/core/pom.xml java/lite/pom.xml java/util/pom.xml
%pom_remove_dep com.google.truth:truth java/pom.xml java/core/pom.xml java/lite/pom.xml java/util/pom.xml
%pom_remove_dep com.google.errorprone:error_prone_annotations java/util/pom.xml
%pom_remove_dep com.google.guava:guava-testlib java/pom.xml java/util/pom.xml
# These use easymockclassextension
rm java/core/src/test/java/com/google/protobuf/ServiceTest.java
# These use truth or error_prone_annotations or guava-testlib
rm java/core/src/test/java/com/google/protobuf/LiteralByteStringTest.java
rm java/core/src/test/java/com/google/protobuf/BoundedByteStringTest.java
rm java/core/src/test/java/com/google/protobuf/RopeByteStringTest.java
rm java/core/src/test/java/com/google/protobuf/RopeByteStringSubstringTest.java
rm -r java/util/src/test/java/com/google/protobuf/util
rm -r java/util/src/main/java/com/google/protobuf/util

# Make OSGi dependency on sun.misc package optional
%pom_xpath_inject "pom:configuration/pom:instructions" "<Import-Package>sun.misc;resolution:=optional,*</Import-Package>" java/core

# Backward compatibility symlink
%mvn_file :protobuf-java:jar: %{name}/%{name}-java %{name}
%endif

mv googlemock-release-%{gtest_version} gmock
mv googletest-release-%{gtest_version} gmock/gtest
chmod 644 examples/*

cp -r python python3

%build
export PTHREAD_LIBS="-lpthread"
./autogen.sh
%configure --enable-static
automake --add-missing
%make

%if %{with python2}
pushd python
%__python2 ./setup.py build
sed -i -e 1d build/lib/google/protobuf/descriptor_pb2.py
popd
%endif

%if %{with python3}
pushd python3
%__python3 ./setup.py build
sed -i -e 1d build/lib/google/protobuf/descriptor_pb2.py
popd
%endif

%if %{with java}
%mvn_build -s -- -f java/pom.xml
%endif

%install
%makeinstall

%if %{with python2}
pushd python
%__python2 ./setup.py install --root=%{buildroot} --single-version-externally-managed --record=INSTALLED_FILES --optimize=1
popd
%endif

%if %{with python3}
pushd python3
%__python3 ./setup.py install --root=%{buildroot} --single-version-externally-managed --record=INSTALLED_FILES --optimize=1
popd
%endif

install -p -m 644 -D %{SOURCE1} %{buildroot}%{_datadir}/vim/vimfiles/ftdetect/proto.vim
install -p -m 644 -D editors/proto.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/proto.vim

%if %{with java}
%mvn_install
%endif

%check
# Tests are broken with gcc 4.7
#make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15926 |21mr|protobuf-c-1.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C bindings for Google's Protocol Buffers
Name:		protobuf-c
Version:	1.4.1
Release:	2
License:	ASL 2.0
Group:		System/Libraries
Url:		https://github.com/protobuf-c
Source0:	https://github.com/protobuf-c/protobuf-c/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(protobuf) < 4.0.0

%description
Protocol Buffers are a way of encoding structured data in an efficient yet
extensible format. This package provides a code generator and run-time
libraries to use Protocol Buffers from pure C (not C++).

It uses a modified version of protoc called protoc-c.

%files
%doc TODO LICENSE ChangeLog
%{_bindir}/protoc-c
%{_bindir}/protoc-gen-c

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C bindings for Google's Protocol Buffers
Group:		System/Libraries

%description -n %{libname}
This package contains protobuf-c libraries.

%files -n %{libname}
%{_libdir}/libprotobuf-c.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Protocol Buffers C headers and libraries
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains protobuf-c headers and libraries.

%files -n %{devname}
%dir %{_includedir}/google
%{_includedir}/google/protobuf-c
%{_includedir}/protobuf-c/protobuf-c.h
%{_includedir}/protobuf-c/protobuf-c.proto
%{_libdir}/libprotobuf-c.so
%{_libdir}/pkgconfig/libprotobuf-c.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static
%make_build

%install
%make_install

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15927 |21mr|protoparser-3.1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          protoparser
Version:       3.1.5
Release:       7
Summary:       Java parser for .proto schema declarations
# Source files without license headers https://github.com/square/protoparser/issues/105
License:       ASL 2.0
URL:           https://github.com/square/protoparser
Source0:       https://github.com/square/protoparser/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.auto.value:auto-value)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.assertj:assertj-core)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ProtoParser will parse a standalone File or schema data directly and
return an object representation as a ProtoFile instance.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin :maven-checkstyle-plugin

%pom_change_dep org.easytesting:fest-assert-core org.assertj:assertj-core:2.0.0
find ./ -name "*.java" -exec sed -i "s/org.fest.assertions/org.assertj.core/g" {} +

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG.md CONTRIBUTING.md README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15928 |21mr|protostream-3.0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

%global debug_package %{nil}

Name:             protostream
Version:          3.0.4
Release:          7
Summary:          Infinispan ProtoStream
Group:            Development/Java
License:          ASL 2.0 and BSD
Url:              http://infinispan.org/
Source0:          https://github.com/infinispan/protostream/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(commons-cli:commons-cli)
BuildRequires:    mvn(com.google.protobuf:protobuf-java)
BuildRequires:    mvn(com.squareup:protoparser)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(log4j:log4j:12)
BuildRequires:    mvn(net.jcip:jcip-annotations)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-surefire-report-plugin)
BuildRequires:    mvn(org.assertj:assertj-core)
BuildRequires:    mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:    mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:    mvn(org.javassist:javassist)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires:    mvn(org.jboss.marshalling:jboss-marshalling-river)
BuildRequires:    protobuf-compiler

%description
The Infinispan ProtoStream project

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_xpath_set "pom:properties/pom:version.log4j" 12 parent
%pom_change_dep :log4j ::'${version.log4j}' core
%pom_remove_plugin -r :maven-source-plugin
# Break build, use system setting
%pom_remove_plugin -r :maven-compiler-plugin
# Disable system libraries copies
%pom_remove_plugin :maven-shade-plugin core
%pom_remove_plugin :maven-bundle-plugin core
%pom_xpath_set "pom:project/pom:packaging" bundle core
%pom_add_plugin org.apache.felix:maven-bundle-plugin core '
<extensions>true</extensions>
<configuration>
  <excludeDependencies>true</excludeDependencies>
  <instructions>
    <Export-Package>
      ${project.groupId}.sampledomain.*;version=${project.version};-split-package:=error
    </Export-Package>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_change_dep org.easytesting:fest-assert-core org.assertj:assertj-core:2.0.0  core
find ./core -name "*.java" -exec sed -i "s/org.fest.assertions/org.assertj.core/g" {} +

# java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
rm core/src/test/java/org/infinispan/protostream/impl/parser/impl/DescriptorsTest.java \
 core/src/test/java/org/infinispan/protostream/annotations/impl/ProtoSchemaBuilderTest.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE PROTOPARSER_LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE PROTOPARSER_LICENSE.txt





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15929 |21mr|proximity-0.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		proximity
Summary:	Proximity controller, primarily for Plasma Mobile
Version:	0.0.1
Group:      System/Base
Release:	1
License:	GPLv3
Source0:	proximity.tar.gz
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5DBus)
BuildRequires:	cmake(Qt5Sensors)
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	qmake5

%description
Proximity controller, primarily for Plasma Mobile

%prep
%autosetup -p1 -n proximity

%build
%cmake \
	-G Ninja
%ninja_build

%install
%ninja_install -C build
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart
cat >%{buildroot}%{_sysconfdir}/xdg/autostart/ch.lindev.proximity.desktop <<'EOF'
[Desktop Entry]
Type=Application
Icon=proximity
Name=Proximity
Exec=%{_bindir}/proximity
NoDisplay=true
X-KDE-autostart-phase=2
EOF

%files
%{_bindir}/proximity
%{_sysconfdir}/xdg/autostart/ch.lindev.proximity.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15930 |21mr|proxool-0.9.1-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global git_commit 659fc71

Summary:       Java connection pool library
Name:          proxool
Version:       0.9.1
Release:       23
Epoch:         0
License:       ASL 2.0
URL:           http://proxool.sourceforge.net/
# Grabbing a newer version from git due to license change
# https://github.com/proxool/proxool/tarball/master
# (commit 659fc71e617151327779802a5171f0da8205918d)
Source0:       proxool-proxool-%{git_commit}.tar.gz
Source1:       proxool.pom
Patch0:        proxool-no-embedded-cglib.patch

BuildRequires: ant >= 0:1.7.1
BuildRequires: ant-junit
BuildRequires: java-devel >= 0:1.6.0
BuildRequires: javapackages-local
BuildRequires: mvn(avalon-framework:avalon-framework-api)
BuildRequires: mvn(avalon-framework:avalon-framework-impl)
BuildRequires: mvn(avalon-logkit:avalon-logkit)
BuildRequires: mvn(com.puppycrawl.tools:checkstyle)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(hsqldb:hsqldb:1)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.transaction:jta)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sf.cglib:cglib)

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Transparently adds connection pooling to your existing JDBC driver.
Complies with the J2SE API, giving you the confidence to develop to
standards. You can monitor the performance of your database
connections and listen to connection events.
It's easy to configure using the JDBC API, XML, or Java property
files - you decide.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{git_commit}
#find . -name "*.jar" -exec rm {} \;
find . -type f -a -executable -exec chmod -x {} \;
rm -rf lib jarjar

%patch0 -p1 -b .sav0

sed -i.new_checkstyle "s|com.puppycrawl.tools.checkstyle.CheckStyleTask|com.puppycrawl.tools.checkstyle.ant.CheckstyleAntTask|" build.xml

sed -i.doclint "s|public="true"|public="true" additionalparam="-Xdoclint:none"|" build.xml

%mvn_file %{name}:%{name} %{name}

%build
CLASSPATH=$(build-classpath cglib avalon-framework glassfish-servlet-api) ant build-jar javadoc

%install
%mvn_artifact %{SOURCE1} build/%{name}-%{version}.jar
%mvn_install -J build/api

%files -f .mfiles
%doc CHANGES.txt README.txt
%license LICENCE.txt

%files javadoc -f .mfiles-javadoc
%license LICENCE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15931 |21mr|proxytoys-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 6f4d22725ef28f09bfd5422939b83e1865b5daef
Name:          proxytoys
Version:       1.0
Release:       14
Summary:       An implementation neutral API for creation of dynamic proxies
License:       BSD
Url:           http://proxytoys.github.io/
# svn export http://svn.codehaus.org/proxytoys/tags/1.0/ proxytoys-1.0
# tar cJf proxytoys-1.0.tar.xz proxytoys-1.0
Source0:       https://github.com/proxytoys/proxytoys/archive/%{githash}/%{name}-%{githash}.tar.gz
# initializationError
# java.lang.Exception:
# The class com.thoughtworks.proxy.AllTests$StandardSuite is not public.
# The class com.thoughtworks.proxy.AllTests$CglibSuite is not public.
Patch0:        proxytoys-1.0-tests.patch

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.jvnet.hudson:xstream)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(xpp3:xpp3)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ProxyToys provides a collection of toys acting as factories for
creating "special" proxies such as:

* Decorators - for simple AOP-like chained method interception
* Delegates - for method invocation on a delegate object,
  that might have different type
* Dispatcher proxy - single proxy instance dispatching method
  calls to different object with separate types
* Echo proxy - for tracing method calls
* Failover objects - fails over to a next object in case of
  exception
* Hot swapping proxy - allows implementation hiding that
  can be swapped, and mutual dependencies
* Multicasting objects - for multicasting a method invocation
  to multiple objects
* Null objects - for default implementations of classes that
  do nothing at all
* Pool - for a pool implementation with proxied objects that
  return automatically to the pool

%package example-code
Summary:       ProxyToys Example Code

%description example-code
This package contains ProxyToys example code.

%package parent
Summary:       ProxyToys parent POM

%description parent
ProxyToys parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
find -name '*.class' -delete
find -name '*.jar' -print -delete
%patch0 -p0

# require xsite-maven-plugin
%pom_disable_module website

# remove wagon-webdav-jackrabbit
%pom_xpath_remove "pom:build/pom:extensions"

%pom_remove_plugin :xsite-maven-plugin
# Unwanted source jar
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-source-plugin example-code
%pom_remove_plugin :maven-source-plugin %{name}
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin %{name}
# Unwanted javadoc jar. required only for build website module
%pom_remove_plugin :maven-javadoc-plugin %{name}

%pom_remove_plugin :findbugs-maven-plugin %{name}
%pom_remove_plugin :javancss-maven-plugin %{name}
%pom_remove_plugin :jdepend-maven-plugin %{name}
%pom_remove_plugin :jxr-maven-plugin %{name}
%pom_remove_plugin :maven-pmd-plugin %{name}

%pom_xpath_remove "pom:dependency[pom:classifier='javadoc']"

%pom_change_dep cglib: :cglib
%pom_change_dep cglib: :cglib %{name}
# cglib is not an optional dep
%pom_xpath_set "pom:dependency[pom:groupId='cglib']/pom:optional" false %{name}

# Fix test deps
# see https://issues.jenkins-ci.org/browse/JENKINS-4752
# solved in https://kenai.com/projects/hudson/sources/xstream/revision/23
# com.thoughtworks.xstream.converters.ConversionException:
# java.lang.Class cannot be cast to java.lang.ref.WeakReference
%pom_change_dep :xstream org.jvnet.hudson:
%pom_change_dep :xstream org.jvnet.hudson: %{name}
# NoClassDefFoundError: org/xmlpull/v1/XmlPullParserFactory
%pom_add_dep xpp3:xpp3:1.1.4c:test %{name}

%mvn_file :%{name} %{name}
%mvn_file :%{name}-example-code %{name}-example-code
%mvn_alias :%{name} "proxytoys:proxytoys"

%build
# Disable test suite incompatibility with newer cglib
%mvn_build -sf -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}
%license LICENSE.txt

%files example-code -f .mfiles-%{name}-example-code
%license LICENSE.txt

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15932 |21mr|psacct-6.6.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _libexecdir /usr/libexec

Summary:	Utilities for monitoring process activities
Name:		psacct
Version:	6.6.4
Release:	4
License:	GPLv2+
Group:		Monitoring
Url:		ftp://ftp.gnu.org/pub/gnu/acct
Source0:	ftp://ftp.gnu.org/pub/gnu/acct/acct-%{version}.tar.gz
Source1:	psacct.service
Source2:	psacct-logrotate.in
Source3:	accton-create
Patch0:		acct-6.6.1-texinfo5.1.patch
Patch1:		psacct-6.6.2-unnumberedsubsubsec.patch
Patch2:		psacct-6.6.1-SEGV-when-record-incomplete.patch
Patch3:		psacct-6.6.4-lastcomm-manpage-pid-twice.patch
BuildRequires:	texinfo
Requires(post,preun):	rpm-helper

%description
The psacct package contains several utilities for monitoring process
activities, including ac, lastcomm, accton and sa.  The ac command
displays statistics about how long users have been logged on.  The
lastcomm command displays information about previous executed commands.
The accton command turns process accounting on or off.  The sa command
summarizes information about previously executed commmands.

Install the psacct package if you'd like to use its utilities for
monitoring process activities on your system.

%files
%doc README NEWS INSTALL AUTHORS ChangeLog COPYING
%dir /var/account
%{_unitdir}/psacct.service
%attr(0600,root,root)   %ghost %config /var/account/pacct
%attr(0644,root,root)   %config(noreplace) /etc/logrotate.d/*
%{_sbindir}/accton
%{_sbindir}/sa
%{_sbindir}/dump-utmp
%{_sbindir}/dump-acct
%{_libexecdir}/psacct/accton-create
%{_bindir}/ac
%{_bindir}/lastcomm
%{_mandir}/man1/ac.1*
%{_mandir}/man1/lastcomm.1*
%{_mandir}/man8/sa.8*
%{_mandir}/man8/accton.8*
%{_mandir}/man8/dump-acct.8*
%{_mandir}/man8/dump-utmp.8*
%{_infodir}/accounting.info.*

%post
%systemd_post psacct.service
touch /var/account/pacct && chmod 0600 /var/account/pacct

%preun
%systemd_preun psacct.service

%postun
%systemd_postun_with_restart psacct.service

#----------------------------------------------------------------------------

%prep
%setup -qn acct-%{version}
%apply_patches

# fixing 'gets' undeclared
sed -i 's|.*(gets,.*||g' lib/stdio.in.h

# workaround for broken autotools stuff
sed -i 's|@ACCT_FILE_LOC@|/var/account/pacct|g'      files.h.in
sed -i 's|@SAVACCT_FILE_LOC@|/var/account/savacct|g' files.h.in
sed -i 's|@USRACCT_FILE_LOC@|/var/account/usracct|g' files.h.in

%build
%serverbuild
%configure --enable-linux-multiformat

%make

%install
mkdir -p %{buildroot}{/sbin,%{_bindir},%{_mandir},%{_sbindir}}
make install prefix=%{buildroot}%{_prefix} \
        bindir=%{buildroot}%{_bindir} sbindir=%{buildroot}%{_sbindir} \
        infodir=%{buildroot}%{_datadir}/info mandir=%{buildroot}%{_mandir}
cp dump-acct.8 %{buildroot}%{_mandir}/man8/

# remove unwanted file
rm -f %{buildroot}%{_infodir}/dir

mkdir -p %{buildroot}/var/account
touch %{buildroot}/var/account/pacct && chmod 0600 %{buildroot}/var/account/pacct

# create logrotate config file
mkdir -p %{buildroot}/etc/logrotate.d
sed -e 's|%%{_bindir}|%{_bindir}|g' -e 's|%%{_sbindir}|%{_sbindir}|g' %{SOURCE2} > %{buildroot}/etc/logrotate.d/psacct

# install systemd unit file
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE1} %{buildroot}%{_unitdir}

# install accton-create script
install -d -m 0755 %{buildroot}%{_libexecdir}/psacct
install -m 755 %{SOURCE3} %{buildroot}%{_libexecdir}/psacct/

rm -f %{buildroot}%{_bindir}/last %{buildroot}%{_mandir}/man1/last.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15933 |21mr|psautohint-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		psautohint
Summary:	A standalone version of AFDKO’s autohinter
Version:	2.4.0
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/adobe-type-tools/psautohint
Source0:	https://github.com/adobe-type-tools/psautohint/releases/download/v%{version}/psautohint-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-scm)

%description
psautohint is a standalone version of the autohinter from the Adobe Font
Development Kit for OpenType (AFDKO).

%package -n python3-psautohint
Summary:	Python library for standalone version of the AFDKO autohinter
Group:		Development/Python
Provides:	%{name} = %{EVRD}
Provides:	python-%{name} = %{EVRD}

%description -n python3-psautohint
psautohint is a standalone version of the autohinter from the Adobe Font
Development Kit for OpenType (AFDKO).

%prep
%autosetup -p1

# re-generate egg-info
rm -rf python/*.egg-info/

%build
%py3_build

%install
%py3_install

%files -n python3-psautohint
%license COPYING LICENSE
%doc README.md
%{_bindir}/psautohint
%{_bindir}/psstemhist
%{python3_sitearch}/psautohint/
%{python3_sitearch}/psautohint-%{version}-py*.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15934 |21mr|psiconv-0.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 6
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	PSION 5(MX) file format data conversion utilities
Name:		psiconv
Version:	0.9.9
Release:	1
License:	GPLv2+
Group:		File tools
Url:		http://software.frodo.looijaard.name/psiconv/
Source0:	http://frodo.looijaard.name/system/files/software/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	bc
BuildRequires:	pkgconfig(ImageMagick)

%description
The Psion 5 has several built-in applications. They use their own file
formats to save data files. Psion has written file conversion
utilities for Windows 95, in the form of their PsiWin program. But
there are no conversion utilities for other operating systems. Also,
Psion is not able to or does not want to release enough data for
others to write their own conversion programs. At least, that is what
I have gathered through the newsgroups and from other sources.

%files
%doc TODO README NEWS AUTHORS ChangeLog
%dir %{_sysconfdir}/psiconv/
%config(noreplace) %{_sysconfdir}/psiconv/*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.conf.5*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PSION 5(MX) file format data conversion library
Group:		System/Libraries

%description -n %{libname}
This contains a shared library that can be used by programs to convert
PSION files.

%files -n %{libname}
%{_libdir}/libpsiconv.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	PSION 5(MX) file format data conversion library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package includes the development files for %{name}.

%files -n %{devname}
%{_libdir}/libpsiconv.so
%{_includedir}/%{name}
%{_bindir}/psiconv-config
%{_mandir}/man1/psiconv-config.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_datadir}/psiconv/xhtml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15935 |21mr|psmisc-23.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Utilities for managing processes on your system
Name:		psmisc
Version:	23.4
Release:	2
License:	GPLv2+
Group:		Monitoring
Url:		http://psmisc.sourceforge.net/
Source0:	https://sourceforge.net/projects/psmisc/files/%{name}/%{name}-%{version}.tar.xz
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(ncurses)

%description
The psmisc package contains utilities for managing processes on your
system: pstree, killall and fuser. The pstree command displays a tree
structure of all of the running processes on your system. The killall
command sends a specified signal (SIGTERM if nothing is specified) to
processes identified by name.  The fuser command identifies the PIDs
of processes that are using specified files or filesystems.

%files -f %{name}.lang
%doc AUTHORS README
/sbin/fuser
%{_bindir}/fuser
%{_bindir}/killall
# peekfd not available on e2k
%optional %{_bindir}/peekfd
%{_bindir}/prtstat
%{_bindir}/pslog
%{_bindir}/pstree*
%{_mandir}/man1/fuser.1*
%{_mandir}/man1/killall.1*
%{_mandir}/man1/peekfd.1*
%{_mandir}/man1/prtstat.1*
%{_mandir}/man1/pslog.1*
%{_mandir}/man1/pstree.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -D_GNU_SOURCE"

%configure \
%if %{with selinux}
	--enable-selinux \
%endif
	--disable-rpath
%make_build

%install
%make_install

mkdir -p %{buildroot}/sbin
pushd %{buildroot}/sbin
ln -s ../%{_bindir}/fuser fuser
popd

%find_lang %{name} --all-name --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15936 |21mr|pstoedit-3.75-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname pstoedit %{major}
%define	devname %mklibname pstoedit -d

Summary:	Translates PostScript/PDF graphics into other vector formats
Name:		pstoedit
Version:	3.75
Release:	3
License:	GPLv2+
Group:		Graphics
Url:		http://www.pstoedit.net/pstoedit
Source0:	http://sourceforge.net/projects/pstoedit/files/pstoedit/%{version}/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch1:		pstoedit-pkglibdir.patch
BuildRequires:	bison
BuildRequires:	ghostscript
BuildRequires:	multiarch-utils >= 1.0.3
BuildRequires:	plotutils-devel
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(libming)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libzip)

%description
pstoedit translates PostScript and PDF graphics into other vector formats.
Currently it can generate the following formats:
	- Tgif .obj format (for tgif version >= 3)
	- fig format for xfig
	- pdf Adobe Portable Document Format
	- gnuplot format
	- Flattened PostScript (with or without Bezier curves)
	- DXF - CAD exchange format
	- LWO - LightWave 3D
	- RIB - RenderMan
	- RPL - Real3D
	- Idraw format (a special format of EPS that Idraw can read)
	- Tcl/Tk
	- HPGL
	- AI - Adobe Illustrator Format (based on ps2ai.ps, not a real pstoedit)
	- WMF - Windows Meta Files
	- PIC format for troff/groff
	- MetaPost format per usage with TeX/LaTeX
	- LaTeX2e picture
	- Kontour
	- GNU Metafile (plotutils/libplot)
	- Sketch (http://sketch.sourceforge.net)
	- Mathematica
	- Trough GraphicsMagick to any format supported by GraphicsMagick.

%files
%doc doc/changelog.htm doc/readme.txt doc/pstoedit.htm doc/pstoedit.pdf
%doc readme.install examples copying
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Pstoedit libraries
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries needed to run programs dynamically
linked with %{name} libraries.

%files -n %{libname}
%doc copying
%{_libdir}/libpstoedit.so.%{major}*
%{_libdir}/%{name}/libp2edrvlplot.so
#%%{_libdir}/%{name}/libp2edrvmagick++.so
%{_libdir}/%{name}/libp2edrvpptx.so
%{_libdir}/%{name}/libp2edrvstd.so
%{_libdir}/%{name}/libp2edrvswf.so
%{_libdir}/%{name}/libp2edrvlplot.so.%{major}*
#%%{_libdir}/%{name}/libp2edrvmagick++.so.%{major}*
%{_libdir}/%{name}/libp2edrvpptx.so.%{major}*
%{_libdir}/%{name}/libp2edrvstd.so.%{major}*
%{_libdir}/%{name}/libp2edrvswf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static libraries and header files for pstoedit development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{_lib}pstoedit0-devel

%description -n %{devname}
If you want to create applications that will use pstoedit code or
APIs, you'll need to install these packages as well as pstoedit. This
additional package isn't necessary if you simply want to use pstoedit.

%files -n %{devname}
%doc doc/%{name}.htm
%{_includedir}/%{name}
%{_libdir}/libpstoedit.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/*.m4

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fix perms
chmod 0644 readme.install
chmod 0644 copying

%build
autoreconf -vfi
%configure
%make


%install
%makeinstall_std

install -m644 doc/%{name}.1 -D %{buildroot}%{_mandir}/man1/%{name}.1

rm -f %{buildroot}%{_libdir}/%{name}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15937 |21mr|psutils-p17-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package	%nil
Summary:	PostScript utilities
Name:		psutils
Version:	p17
Release:	27

URL:		http://www.tardis.ed.ac.uk/~ajcd/psutils/index.html
Source0:	ftp://ftp.knackered.org/pub/psutils/%{name}-%{version}.tar.bz2
Patch0:		psutils-make.patch
Patch1:		psutils-maketext.patch

License:	BSD-like
Group:		Publishing
Requires:	perl

%description
psutils contains some utilities for manipulating PostScript documents.
Page selections and rearrangement are supported, including arrengement
into signatures for booklet printing, and page merging for n-up printing.

%prep

%setup -q -n psutils
%patch0 -p1
%patch1 -p1

%build
make -f Makefile.unix RPM_OPT_FLAGS="$RPM_OPT_FLAGS" \
	BUILDROOT="%{buildroot}" PERL=%{_bindir}/perl

%install
mkdir -p %{buildroot}/usr/{bin,man,share/psutils}
make -f Makefile.unix install BUILDROOT="$RPM_BUILD_ROOT"
strip %{buildroot}/%{_bindir}/{epsffit,psbook,psnup,psresize,pstops,psselect}
#move the man page
mv %{buildroot}/usr/man %{buildroot}/%{_datadir}

%files
%defattr(-,root,root,0755)
%doc LICENSE README
%attr(755,root,root) %_bindir/*
%dir %_datadir/%{name}
%_mandir/man1/*
%_datadir/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15938 |21mr|ptlib-2.18.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname pt

%bcond_with avc

%define major %{version}
%define libname %mklibname %{fname} %{major}
%define devname %mklibname %{fname} -d

Summary:	Portable Tool Library
Name:		ptlib
Version:	2.18.6
Release:	1
License:	MPL
Group:		System/Libraries
Url:		http://www.opalvoip.org
Source0:	http://downloads.sourceforge.net/opalvoip/%{name}-%{version}.tar.bz2
Patch0:		ptlib-2.18.6-linking.patch
BuildRequires:	autoconf
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gcc-c++
BuildRequires:	openldap-devel
BuildRequires:	sed
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
%if %{with avc}
BuildRequires:	pkgconfig(libavc1394)
BuildRequires:	pkgconfig(libdc1394-2)
%endif
BuildRequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libraw1394)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(sdl)

%description
PTLib is a C++ multi-platform abstraction library that has its genesis
many years ago as a method to produce applications to run on both
Microsoft Windows and Unix systems. It also was to have a Macintosh
port but this never eventuated.

This is the GNOME.org version of ptlib.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Portable Windows Libary
Group:		System/Libraries
Requires:	%{libname}-plugins >= %{EVRD}

%description -n %{libname}
PTLib is a C++ multi-platform abstraction library that has its genesis
many years ago as a method to produce applications to run on both
Microsoft Windows and Unix systems. It also was to have a Macintosh
port but this never eventuated.

This is the GNOME.org version of ptlib.

%files -n %{libname}
%doc *.txt
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Portable Windows Libary development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{mklibname pwlib -d}

%description -n %{devname}
Header files and libraries for developing applications that use ptlib.

%files -n %{devname}
%doc *.txt
%attr(0755,root,root) %{_bindir}/ptlib-config
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/*
%{_datadir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n %{libname}-plugins
Summary:	Main plugins for ptlib
Group:		System/Libraries
Provides:	%{name}-plugins = %{EVRD}
Provides:	%{name}-plugins-alsa = %{EVRD}
Provides:	%{name}-plugins-oss = %{EVRD}
Provides:	%{name}-plugins-pulseaudio = %{EVRD}
Provides:	%{name}-plugins-v4l2 = %{EVRD}

%description -n %{libname}-plugins
This package contains the oss, alsa, pulseaudio and v4l2 plugins for ptlib.

%files -n %{libname}-plugins
%doc *.txt
%dir %{_libdir}/%{name}-%{version}/
%dir %{_libdir}/%{name}-%{version}/device/
%dir %{_libdir}/%{name}-%{version}/device/sound
%{_libdir}/%{name}-%{version}/device/sound/alsa_ptplugin.so
%{_libdir}/%{name}-%{version}/device/sound/oss_ptplugin.so
%{_libdir}/%{name}-%{version}/device/sound/pulse_ptplugin.so
%dir %{_libdir}/%{name}-%{version}/device/videoinput
%{_libdir}/%{name}-%{version}/device/videoinput/v4l2_ptplugin.so

#----------------------------------------------------------------------------
%if %{with avc}

%package -n %{libname}-plugins-dc
Summary:	Dc plugin for ptlib
Group:		System/Libraries
Provides:	%{name}-plugins-dc = %{EVRD}

%description -n %{libname}-plugins-dc
This package contains the dc plugin for ptlib.

%files -n %{libname}-plugins-dc
%doc *.txt
%dir %{_libdir}/%{name}-%{version}/device/videoinput
%{_libdir}/%{name}-%{version}/device/videoinput/dc_ptplugin.so

#----------------------------------------------------------------------------
%package -n %{libname}-plugins-avc
Summary:	AVC plugin for ptlib
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-plugins-avc = %{EVRD}

%description -n %{libname}-plugins-avc
This package contains the AVC plugin for ptlib.

%files -n %{libname}-plugins-avc
%doc *.txt
%dir %{_libdir}/%{name}-%{version}/device/videoinput
%{_libdir}/%{name}-%{version}/device/videoinput/avc_ptplugin.so

%endif
#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
aclocal --force -Imake
autoconf -f

export CFLAGS="%{optflags} -pthread"
export CXXFLAGS="%{optflags} -pthread"

%configure \
	--disable-odbc \
%if %{with avc}
	--enable-avc \
	--enable-dc \
%else
	--disable-avc \
	--disable-dc \
%endif
	--enable-oss \
	--enable-plugins \
	--enable-pulse \
	--enable-v4l2

%make STRIP=''

%install
%makeinstall_std

#fix doc perms
chmod a+r *.txt

#remove unpackaged files
rm -f %{buildroot}%{_datadir}/ptlib/make/*.{pat,in,lib64,libname,ptlibdir,includesdir}

# fix ptlib-config
install -d %{buildroot}%{_bindir}
ln -snf %{_datadir}/ptlib/make/ptlib-config %{buildroot}%{_bindir}/ptlib-config

# fix strange perms
find %{buildroot} -type d -perm 0700 -exec chmod 755 {} \;
find %{buildroot} -type f -perm 0555 -exec chmod 755 {} \;
find %{buildroot} -type f -perm 0444 -exec chmod 644 {} \;
find %{buildroot}%{_libdir} -type f -name '*.so*' -exec chmod 755 {} \;

# it's not stable at major version level...
rm -f %{buildroot}%{_libdir}/libpt.so.?
rm -f %{buildroot}%{_libdir}/libpt.so.?.?

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15939 |21mr|publicsuffix-list-20181012-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without dafsa

Summary:	Cross-vendor public domain suffix database
Name:		publicsuffix-list
Version:	20181012
Release:	6
License:	MPLv2.0
Group:		Development/Java
Url:		https://publicsuffix.org/
Source0:	public_suffix_list.dat
#https://publicsuffix.org/list/public_suffix_list.dat
Source1:	index.txt
#https://www.mozilla.org/media/MPL/2.0/index.txt
Source2:	test_psl.txt
#https://github.com/publicsuffix/list/raw/master/tests/test_psl.txt
%if %{with dafsa}
BuildRequires:	psl-make-dafsa
%endif
BuildArch:	noarch

%description
The Public Suffix List is a cross-vendor initiative to provide
an accurate list of domain name suffixes, maintained by the hard work
of Mozilla volunteers and by submissions from registries.
Software using the Public Suffix List will be able to determine where
cookies may and may not be set, protecting the user from being
tracked across sites.

%files
%doc COPYING
%dir %{_datadir}/publicsuffix
%{_datadir}/publicsuffix/effective_tld_names.dat
%{_datadir}/publicsuffix/public_suffix_list.dat
%{_datadir}/publicsuffix/test_psl.txt

#----------------------------------------------------------------------------

%if %{with dafsa}
%package dafsa
Summary:	Cross-vendor public domain suffix database in DAFSA form
Group:		Development/Java

%description dafsa
The Public Suffix List is a cross-vendor initiative to provide
an accurate list of domain name suffixes, maintained by the hard work 
of Mozilla volunteers and by submissions from registries.
Software using the Public Suffix List will be able to determine where 
cookies may and may not be set, protecting the user from being 
tracked across sites.

This package includes a DAFSA representation of the Public Suffix List
for runtime loading.

%files dafsa
%doc COPYING
%dir %{_datadir}/publicsuffix
%{_datadir}/publicsuffix/public_suffix_list.dafsa
%endif

#----------------------------------------------------------------------------

%prep
%setup -c -T
cp -av %{SOURCE0} .
cp -av %{SOURCE1} COPYING

%build
%if %{with dafsa}
LC_CTYPE=C.UTF-8 \
psl-make-dafsa --output-format=binary \
	public_suffix_list.dat \
	public_suffix_list.dafsa
%endif

%install
%if %{with dafsa}
install -m 644 -p -D public_suffix_list.dafsa %{buildroot}%{_datadir}/publicsuffix/public_suffix_list.dafsa
%endif
install -m 644 -p -D %{SOURCE0} %{buildroot}%{_datadir}/publicsuffix/public_suffix_list.dat
install -m 644 -p -D %{SOURCE2} %{buildroot}%{_datadir}/publicsuffix/test_psl.txt
ln -s public_suffix_list.dat %{buildroot}%{_datadir}/publicsuffix/effective_tld_names.dat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15940 |21mr|pugixml-1.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		major 1
%define		libname		%mklibname pugixml %{major}
%define		develname	%mklibname pugixml -d

Name:		pugixml
Version:	1.12
Release:	1
Summary:	A light-weight C++ XML processing library
Group:		System/Libraries
License:	MIT
URL:		http://pugixml.org
Source0:	http://github.com/zeux/pugixml/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
pugixml is a light-weight C++ XML processing library.
It features:
- DOM-like interface with rich traversal/modification capabilities
- Extremely fast non-validating XML parser which constructs the DOM tree from
  an XML file/buffer
- XPath 1.0 implementation for complex data-driven tree queries
- Full Unicode support with Unicode interface variants and automatic encoding
  conversions

%package -n %{libname}
Summary:	A light-weight C++ XML processing library
Group:		System/Libraries

%description -n %{libname}
pugixml is a light-weight C++ XML processing library.
It features:
- DOM-like interface with rich traversal/modification capabilities
- Extremely fast non-validating XML parser which constructs the DOM tree from
  an XML file/buffer
- XPath 1.0 implementation for complex data-driven tree queries
- Full Unicode support with Unicode interface variants and automatic encoding
  conversions

%package -n %{develname}
Summary:	Development files for %{name} library
Group:		Development/C++
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description -n %{develname}
Development files for package %{name} library

%prep
%setup -q -n %{name}-%{version}

%build
%cmake
%make_build

%install
%make_install -C build

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_libdir}/*.so
%{_libdir}/cmake/pugixml/
%{_libdir}/pkgconfig/pugixml.pc
%{_includedir}/*.hpp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15941 |21mr|pulseaudio-14.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#{?build_gdm}%{?!build_gdm:%bcond_without gdm}

%bcond_without webrtc

%bcond_with bootstrap

# (cg) Lennart has introduced a circular dependancy in the libraries
# libpulse requires libpulsecommon but libpulsecommon requires libpulse.
# This breaks no-undefined.
# Further issues in some test apps (maybe more) require that disabling
# as-needed is also required.
%define _disable_ld_no_undefined 1
%define _disable_ld_as_needed 1

%global __requires_exclude devel\\(libpulsecommon.*\\)

# Majors
%define major 0
%define zeroconfmajor 0
%define glib2major 0
%define apiver %{version}

# Library names
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define glib2libname %mklibname pulseglib2 %{glib2major}

# API libs (not real shared libs - mostly private but needed by other libs and server)
%define corelibname %mklibname pulsecore %{apiver}
%define commonlibname %mklibname pulsecommon %{apiver}

Summary:	Sound server for Linux
Name:		pulseaudio
Version:	14.2
Release:	10
# Airtunes links to OpenSSL which is BSD-like and should be reflected here
License:	LGPL and BSD-like
Group:		Sound
Url:		http://pulseaudio.org/
Source0:	http://freedesktop.org/software/pulseaudio/releases/%{name}-%{version}.tar.xz
Source1:	%{name}.sysconfig
Source3:	esd.conf
Source4:	%{name}.svg
Source5:	default.pa-for-gdm
Source6:	pulse.sysusers.conf
# Load more modules if they are available
Patch0:		pulseaudio-10.0-defaults.patch
Patch1:		0030-load-module-switch-on-connect.patch
Patch2:		pulseaudio-webrtc.patch
Patch3:		pulseaudio-14.2-skip-start-for-lightdm.patch
# revert upstream commit to rely solely on autospawn for autostart, instead
# include a fallback to manual launch when autospawn fails, like when
# user disables autospawn, or logging in as root
# valid even when using systemd socket activation too
Patch201: pulseaudio-autostart.patch

BuildRequires:	automake1.8
BuildRequires:	avahi-common-devel
BuildRequires:	doxygen
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	cap-devel
BuildRequires:	gettext-devel
BuildRequires:	libltdl-devel
BuildRequires:	libwrap-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atomic_ops)
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(bash-completion)
%if %{without bootstrap}
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(sbc)
%endif
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libasyncns)
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(orc-0.4)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(sndfile)
%ifnarch %{e2k}
BuildRequires:	pkgconfig(soxr)
%endif
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(tdb)
BuildRequires:	pkgconfig(udev)
%if %{with webrtc}
BuildRequires:	pkgconfig(webrtc-audio-processing-1)
BuildRequires:	abseil-cpp-devel
%endif
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(x11-xcb)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xtst)
Requires:	udev >= 143
Requires:	rtkit
Requires:	%{name}-i18n = %{EVRD}
Requires(pre):	/bin/systemd-sysusers
# pipewire also provides pulseaudio, easify writing boolean deps like:
# "Recommends: (pulseaudio-module-bluetooth if pulseaudio-real)"
Provides:	pulseaudio-real = %{EVRD}

%description
pulseaudio is a sound server for Linux and other Unix like operating
systems. It is intended to be an improved drop-in replacement for the
Enlightened Sound Daemon (EsounD). In addition to the features EsounD
provides pulseaudio has:
     * Extensible plugin architecture (by loading dynamic loadable
       modules with dlopen())
     * Support for more than one sink/source
     * Better low latency behaviour
     * Embedabble into other software (the core is available as C
       library)
     * Completely asynchronous C API
     * Simple command line interface for reconfiguring the daemon while
       running
     * Flexible, implicit sample type conversion and resampling
     * "Zero-Copy" architecture
     * Module autoloading
     * Very accurate latency measurement for playback and recording.
     * May be used to combine multiple sound cards to one (with sample
       rate adjustment)
     * Client side latency interpolation

%files
%doc README
%dir %{_sysconfdir}/pulse/
%config(noreplace) %{_sysconfdir}/pulse/daemon.conf
%config(noreplace) %{_sysconfdir}/pulse/default.pa
%config(noreplace) %{_sysconfdir}/pulse/system.pa
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_sysusersdir}/pulse.conf
%{_bindir}/%{name}
%{_bindir}/pa-info
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man5/pulse-client.conf.5.*
%{_mandir}/man5/pulse-daemon.conf.5.*
%{_mandir}/man5/default.pa.5.*
%{_mandir}/man5/pulse-cli-syntax.5.*
%{_iconsdir}/hicolor/*
%dir %{_datadir}/%{name}/
%{_datadir}/%{name}/alsa-mixer
%{_datadir}/zsh/site-functions/_pulseaudio
/lib/udev/rules.d/90-pulseaudio.rules
%dir %{_libdir}/pulse-%{apiver}
%dir %{_libdir}/pulse-%{apiver}/modules
%{_libdir}/pulse-%{apiver}/modules/libalsa-util.so
%{_libdir}/pulse-%{apiver}/modules/libcli.so
%{_libdir}/pulse-%{apiver}/modules/liboss-util.so
%{_libdir}/pulse-%{apiver}/modules/libprotocol-cli.so
%{_libdir}/pulse-%{apiver}/modules/libprotocol-esound.so
%{_libdir}/pulse-%{apiver}/modules/libprotocol-http.so
%{_libdir}/pulse-%{apiver}/modules/libprotocol-native.so
%{_libdir}/pulse-%{apiver}/modules/libprotocol-simple.so
%{_libdir}/pulse-%{apiver}/modules/libraop.so
%{_libdir}/pulse-%{apiver}/modules/librtp.so
%if %{with webrtc}
%{_libdir}/pulse-%{apiver}/modules/libwebrtc-util.so
%endif
%{_libdir}/pulse-%{apiver}/modules/module-allow-passthrough.so
%{_libdir}/pulse-%{apiver}/modules/module-alsa-card.so
%{_libdir}/pulse-%{apiver}/modules/module-alsa-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-alsa-source.so
%{_libdir}/pulse-%{apiver}/modules/module-always-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-always-source.so
%{_libdir}/pulse-%{apiver}/modules/module-augment-properties.so
%{_libdir}/pulse-%{apiver}/modules/module-card-restore.so
%{_libdir}/pulse-%{apiver}/modules/module-cli-protocol-tcp.so
%{_libdir}/pulse-%{apiver}/modules/module-cli-protocol-unix.so
%{_libdir}/pulse-%{apiver}/modules/module-cli.so
%{_libdir}/pulse-%{apiver}/modules/module-combine.so
%{_libdir}/pulse-%{apiver}/modules/module-combine-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-role-cork.so
%{_libdir}/pulse-%{apiver}/modules/module-systemd-login.so
%{_libdir}/pulse-%{apiver}/modules/module-dbus-protocol.so
%{_libdir}/pulse-%{apiver}/modules/module-detect.so
%{_libdir}/pulse-%{apiver}/modules/module-device-manager.so
%{_libdir}/pulse-%{apiver}/modules/module-device-restore.so
%{_libdir}/pulse-%{apiver}/modules/module-echo-cancel.so
%{_libdir}/pulse-%{apiver}/modules/module-esound-compat-spawnfd.so
%{_libdir}/pulse-%{apiver}/modules/module-esound-compat-spawnpid.so
%{_libdir}/pulse-%{apiver}/modules/module-esound-protocol-tcp.so
%{_libdir}/pulse-%{apiver}/modules/module-esound-protocol-unix.so
%{_libdir}/pulse-%{apiver}/modules/module-esound-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-http-protocol-tcp.so
%{_libdir}/pulse-%{apiver}/modules/module-http-protocol-unix.so
%{_libdir}/pulse-%{apiver}/modules/module-intended-roles.so
%{_libdir}/pulse-%{apiver}/modules/module-loopback.so
%{_libdir}/pulse-%{apiver}/modules/module-match.so
%{_libdir}/pulse-%{apiver}/modules/module-mmkbd-evdev.so
%{_libdir}/pulse-%{apiver}/modules/module-native-protocol-fd.so
%{_libdir}/pulse-%{apiver}/modules/module-native-protocol-tcp.so
%{_libdir}/pulse-%{apiver}/modules/module-native-protocol-unix.so
%{_libdir}/pulse-%{apiver}/modules/module-null-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-null-source.so
%{_libdir}/pulse-%{apiver}/modules/module-oss.so
%{_libdir}/pulse-%{apiver}/modules/module-pipe-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-pipe-source.so
%{_libdir}/pulse-%{apiver}/modules/module-raop-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-rygel-media-server.so
%{_libdir}/pulse-%{apiver}/modules/module-position-event-sounds.so
%{_libdir}/pulse-%{apiver}/modules/module-rescue-streams.so
%{_libdir}/pulse-%{apiver}/modules/module-rtp-recv.so
%{_libdir}/pulse-%{apiver}/modules/module-rtp-send.so
%{_libdir}/pulse-%{apiver}/modules/module-simple-protocol-tcp.so
%{_libdir}/pulse-%{apiver}/modules/module-simple-protocol-unix.so
%{_libdir}/pulse-%{apiver}/modules/module-sine.so
%{_libdir}/pulse-%{apiver}/modules/module-sine-source.so
%{_libdir}/pulse-%{apiver}/modules/module-tunnel-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-tunnel-source.so
%{_libdir}/pulse-%{apiver}/modules/module-udev-detect.so
%{_libdir}/pulse-%{apiver}/modules/module-volume-restore.so
%{_libdir}/pulse-%{apiver}/modules/module-virtual-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-virtual-source.so
%{_libdir}/pulse-%{apiver}/modules/module-stream-restore.so
%{_libdir}/pulse-%{apiver}/modules/module-suspend-on-idle.so
%{_libdir}/pulse-%{apiver}/modules/module-default-device-restore.so
%{_libdir}/pulse-%{apiver}/modules/module-ladspa-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-remap-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-switch-on-connect.so
%{_libdir}/pulse-%{apiver}/modules/module-filter-apply.so
%{_libdir}/pulse-%{apiver}/modules/module-filter-heuristics.so
%{_libdir}/pulse-%{apiver}/modules/module-virtual-surround-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-switch-on-port-available.so
%{_libdir}/pulse-%{apiver}/modules/module-remap-source.so
%{_libdir}/pulse-%{apiver}/modules/module-role-ducking.so
%{_libdir}/pulse-%{apiver}/modules/module-tunnel-sink-new.so
%{_libdir}/pulse-%{apiver}/modules/module-tunnel-source-new.so
%{_datadir}/bash-completion/completions/pulseaudio
%{_userunitdir}/pulseaudio.service
%{_userunitdir}/pulseaudio.socket

%pre
%sysusers_create_package pulse %{SOURCE6}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for PulseAudio clients
Group:		System/Libraries
Requires:	%{name}-client-config
Requires:	%{name}-i18n = %{EVRD}
Recommends:	%{_lib}alsa-plugins-pulseaudio
%ifarch x86_64
# (cg) Suggest the 32 bit library on 64 bits to ensure compatibility
#      with (typically closed source) 32 bit apps.
Recommends:	libpulse.so.%{major}(x86-32)
%endif

%description -n %{libname}
This package contains the runtime libraries for any application that wishes
to interface with a PulseAudio sound server.

%files -n %{libname}
%{_libdir}/libpulse.so.%{major}*
%{_libdir}/libpulse-simple.so.%{major}*
%dir %{_libdir}/%{name}
# (cg) Although the following is not a shared library, putting this file here
# will allow padsp to work on dual arch machines... (e.g. using padsp to start
# a 32-bit app).
%{_libdir}/%{name}/libpulsedsp.so

#----------------------------------------------------------------------------

%package -n %{corelibname}
Summary:	Core Library for PulseAudio
Group:		System/Libraries
Obsoletes:	%{_lib}pulsecore5.0 < 6.0
Obsoletes:	%{_lib}pulsecore6.0 < 7.0
Obsoletes:	%{_lib}pulsecore7.1 < 8.0
Obsoletes:	%{_lib}pulsecore8.0 < 10.0

%description -n %{corelibname}
This package contains a library needed by the PulseAudio sound server
and modules.

%files -n %{corelibname}
%{_libdir}/%{name}/libpulsecore-%{apiver}.so

#----------------------------------------------------------------------------

%package -n %{commonlibname}
Summary:	Common Library for PulseAudio
Group:		System/Libraries
Obsoletes:	%{_lib}pulsecommon5.0 < 6.0
Obsoletes:	%{_lib}pulsecommon6.0 < 7.0
Obsoletes:	%{_lib}pulsecommon7.1 < 8.0
Obsoletes:	%{_lib}pulsecommon8.0 < 10.0

%description -n %{commonlibname}
This package contains a library needed by the PulseAudio sound server,
modules and clients.

%files -n %{commonlibname}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/libpulsecommon-%{apiver}.so

#----------------------------------------------------------------------------

%define alt_name soundprofile
%define alt_priority 20

%package client-config
Summary:	Client configuration for PulseAudio clients
Group:		System/Libraries
# (eatdirt) Otherwise may trigger bug 2966
Requires:	alsa-plugins-pulse-config
Requires(post,postun):	update-alternatives

%description client-config
This package contains the client configuration files for any application
that wishes to interface with a PulseAudio sound server.

%files client-config
%config(noreplace) %{_sysconfdir}/pulse/client.conf
%dir %{_sysconfdir}/sound/profiles/pulse
%{_sysconfdir}/sound/profiles/pulse/profile.conf

%post client-config
%{_sbindir}/update-alternatives \
  --install %{_sysconfdir}/sound/profiles/current %{alt_name} %{_sysconfdir}/sound/profiles/pulse %{alt_priority}

%postun client-config
if [ ! -f %{_sysconfdir}/sound/profiles/pulse/profile.conf ]; then
  /usr/sbin/update-alternatives --remove %{alt_name} %{_sysconfdir}/sound/profiles/pulse
fi

#----------------------------------------------------------------------------

%package -n %{glib2libname}
Summary:	GLIB 2.x bindings for PulseAudio clients
Group:		System/Libraries

%description -n %{glib2libname}
This package contains bindings to integrate the PulseAudio client library with
a GLIB 2.x based application.

%files -n %{glib2libname}
%{_libdir}/libpulse-mainloop-glib.so.%{glib2major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and libraries for PulseAudio client development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{glib2libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and libraries for developing applications that can communicate with
a PulseAudio sound server.

%files -n %{devname}
%doc doxygen/html
%{_libdir}/libpulse.so
%{_libdir}/libpulse-mainloop-glib.so
%{_libdir}/libpulse-simple.so
%dir %{_includedir}/pulse
%{_includedir}/pulse/*.h
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/PulseAudio
%{_datadir}/vala/vapi/libpulse.deps
%{_datadir}/vala/vapi/libpulse.vapi
%{_datadir}/vala/vapi/libpulse-mainloop-glib.deps
%{_datadir}/vala/vapi/libpulse-mainloop-glib.vapi
%{_datadir}/vala/vapi/libpulse-simple.deps
%{_datadir}/vala/vapi/libpulse-simple.vapi

#----------------------------------------------------------------------------

%package esound-compat
Summary:	PulseAudio EsounD daemon compatibility script
Group:		Sound
Requires:	%{name} = %{EVRD}
Provides:	esound = %{EVRD}

%description esound-compat
A compatibility script that allows applications to call /usr/bin/esd
and start PulseAudio with EsounD protocol modules.

%files esound-compat
%config(noreplace) %{_sysconfdir}/esd.conf
%{_bindir}/esdcompat
%{_bindir}/esd
%{_mandir}/man1/esdcompat.1.*

#----------------------------------------------------------------------------

%if %{without bootstrap}
%package module-bluetooth
Summary:	Bluetooth support for the PulseAudio sound server
Group:		Sound
Requires:	%{name} = %{EVRD}
Requires:	sbc

%description module-bluetooth
Bluetooth modules for the PulseAudio sound server to provide support
for headsets and proximity detection.

%files module-bluetooth
%{_libdir}/pulse-%{apiver}/modules/libbluez*-util.so
%{_libdir}/pulse-%{apiver}/modules/module-bluez*-device.so
%{_libdir}/pulse-%{apiver}/modules/module-bluez*-discover.so
%{_libdir}/pulse-%{apiver}/modules/module-bluetooth-discover.so
%{_libdir}/pulse-%{apiver}/modules/module-bluetooth-policy.so
%endif

#----------------------------------------------------------------------------

%package module-equalizer
Summary:	Equalizer support for the PulseAudio sound server
Group:		Sound
Requires:	%{name} = %{EVRD}
Requires:	python3-dbus
Requires:	python3-qt5-core
Requires:	python3-qt5-dbus
Requires:	python3-qt5-widgets

%description module-equalizer
Equalizer module for the PulseAudio sound server.

%files module-equalizer
%{_bindir}/qpaeq
%{_libdir}/pulse-%{apiver}/modules/module-equalizer-sink.so

#----------------------------------------------------------------------------

%package module-gsettings
Summary:	Gsettings support for the PulseAudio sound server
Group:		Sound
Requires:	%{name} = %{EVRD}

%description module-gsettings
Gsettings configuration backend for the PulseAudio sound server.

%files module-gsettings
%{_libexecdir}/pulse/gsettings-helper
%{_libdir}/pulse-%{apiver}/modules/module-gsettings.so
%{_datadir}/GConf/gsettings/pulseaudio.convert
%{_datadir}/glib-2.0/schemas/org.freedesktop.pulseaudio.gschema.xml

#----------------------------------------------------------------------------

%package module-jack
Summary:	JACK support for the PulseAudio sound server
Group:		Sound
Requires:	%{name} = %{EVRD}

%description module-jack
JACK sink and source modules for the PulseAudio sound server.

%files module-jack
%{_libdir}/pulse-%{apiver}/modules/module-jack-sink.so
%{_libdir}/pulse-%{apiver}/modules/module-jack-source.so
%{_libdir}/pulse-%{apiver}/modules/module-jackdbus-detect.so

#----------------------------------------------------------------------------

%package module-lirc
Summary:	LIRC support for the PulseAudio sound server
Group:		Sound
Requires:	%{name} = %{EVRD}

%description module-lirc
LIRC volume control module for the PulseAudio sound server.

%files module-lirc
%{_libdir}/pulse-%{apiver}/modules/module-lirc.so

#----------------------------------------------------------------------------

%package module-x11
Summary:	X11 support for the PulseAudio sound server
Group:		Sound
Requires:	%{name} = %{EVRD}

%description module-x11
X11 bell and security modules for the PulseAudio sound server.

%files module-x11
%{_bindir}/pax11publish
%{_bindir}/start-pulseaudio-x11
%{_mandir}/man1/pax11publish.1.*
%{_mandir}/man1/start-pulseaudio-x11.1.*
%{_libdir}/pulse-%{apiver}/modules/module-x11-bell.so
%{_libdir}/pulse-%{apiver}/modules/module-x11-cork-request.so
%{_libdir}/pulse-%{apiver}/modules/module-x11-publish.so
%{_libdir}/pulse-%{apiver}/modules/module-x11-xsmp.so
%{_sysconfdir}/xdg/autostart/pulseaudio.desktop

#----------------------------------------------------------------------------

%package module-zeroconf
Summary:	Zeroconf support for the PulseAudio sound server
Group:		Sound
Requires:	%{name} = %{EVRD}

%description module-zeroconf
Zeroconf publishing module for the PulseAudio sound server.

%files module-zeroconf
%{_libdir}/pulse-%{apiver}/modules/libavahi-wrap.so
%{_libdir}/pulse-%{apiver}/modules/module-zeroconf-discover.so
%{_libdir}/pulse-%{apiver}/modules/module-zeroconf-publish.so
%{_libdir}/pulse-%{apiver}/modules/module-raop-discover.so

#----------------------------------------------------------------------------

%package i18n
Summary:	PulseAudio translations
Group:		System/Internationalization
#Conflicts:	pulseaudio < 14.2-5
BuildArch:	noarch

%description i18n
PulseAudio translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package utils
Summary:	PulseAudio sound server utilities
Group:		Sound

%description utils
This package contains command line utilities for the PulseAudio sound server.

%files utils
%{_bindir}/pacat
%{_bindir}/pacmd
%{_bindir}/pactl
%{_bindir}/padsp
%{_bindir}/pamon
%{_bindir}/paplay
%{_bindir}/parec
%{_bindir}/parecord
%{_bindir}/pasuspender
%{_mandir}/man1/pacat.1.*
%{_mandir}/man1/pacmd.1.*
%{_mandir}/man1/pactl.1.*
%{_mandir}/man1/padsp.1.*
%{_mandir}/man1/pamon.1.*
%{_mandir}/man1/paplay.1.*
%{_mandir}/man1/parec.1.*
%{_mandir}/man1/parecord.1.*
%{_mandir}/man1/pasuspender.1.*
%{_datadir}/bash-completion/completions/pacat
%{_datadir}/bash-completion/completions/pacmd
%{_datadir}/bash-completion/completions/pactl
%{_datadir}/bash-completion/completions/padsp
%{_datadir}/bash-completion/completions/paplay
%{_datadir}/bash-completion/completions/parec
%{_datadir}/bash-completion/completions/parecord
%{_datadir}/bash-completion/completions/pasuspender

#----------------------------------------------------------------------------

%if %{with gdm}
%package gdm-hooks
Summary:	PulseAudio GDM integration
Group:		Sound
Requires:	gdm
# for the gdm user
Requires(pre):	gdm

%description gdm-hooks
This package contains GDM integration hooks for the PulseAudio sound server.

%files gdm-hooks
%attr(0700, gdm, gdm) %dir %{_localstatedir}/lib/gdm/.pulse
%attr(0600, gdm, gdm) %{_localstatedir}/lib/gdm/.pulse/default.pa
%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# (cg) If autoconf is retriggered (which can happen automatically) we need this file.
cat >git-version-gen <<EOF
#!/bin/bash
echo -n %{version}.0-%{release}
EOF
chmod a+x git-version-gen

echo "clean:" > Makefile
./bootstrap.sh -V

%build
%configure \
	--disable-hal-compat \
	--enable-systemd-daemon \
	--enable-systemd-journal \
	--enable-systemd-login \
	--enable-gsettings \
	--disable-bluez4 \
	--enable-bluez5 \
	--with-fftw \
	--disable-static \
	--with-system-user=pulse \
	--with-system-group=pulse \
	--with-access-group=pulse-access \
%ifarch %{arm}
	--disable-neon-opt \
%endif
%if %{with webrtc}
	--enable-webrtc-aec
%endif

%make
make doxygen

%install
%makeinstall_std

install -D -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -D -m 0755 %{SOURCE3} %{buildroot}%{_sysconfdir}/

install -D -m 0644 %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/scalable/devices
ln -s ../apps/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/devices/audio-backend-pulseaudio.svg
for size in 16 22 32 48 64 128; do
  mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/{apps,devices}
  convert -geometry ${size}x${size} %{SOURCE4} %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/apps/%{name}.png
  ln -s ../apps/%{name}.png %{buildroot}%{_datadir}/icons/hicolor/${size}x${size}/devices/audio-backend-pulseaudio.png
done

# Fix esd
ln -s esdcompat %{buildroot}%{_bindir}/esd

# (cg) For sound profile support
mkdir -p %{buildroot}%{_sysconfdir}/sound/profiles/pulse
echo "SOUNDPROFILE=pulse" >%{buildroot}%{_sysconfdir}/sound/profiles/pulse/profile.conf

# (cg) HAL support is no longer the default, and we don't officially support system wide, so
# System Wide + HAL is pretty unlikely.
rm -f %{buildroot}%{_sysconfdir}/dbus-1/system.d/%{name}-system.conf

# (cg) We require systemd now, so no point in using CK
rm -f %{buildroot}%{_libdir}/pulse-%{apiver}/modules/module-console-kit.so

%if %{with gdm}
# Add gdm hook from Ubuntu 18.04
# https://bugs.launchpad.net/ubuntu/+source/gdm3/+bug/1703415
mkdir -p %{buildroot}%{_localstatedir}/lib/gdm/.pulse/
install -p -m644 -D %{SOURCE5} %{buildroot}%{_localstatedir}/lib/gdm/.pulse/default.pa
%endif

%find_lang %{name}

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/pulse.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15942 |21mr|pulseaudio-qt-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname kf5pulseaudioqt %{major}
%define devname %mklibname kf5pulseaudioqt -d

Summary:	Qt 5 bindings for Pulseaudio
Name:		pulseaudio-qt
Version:	1.3
Release:	2
License:	LGPLv2+
Group:		Development/KDE and Qt
Url:		https://community.kde.org/Frameworks
Source0:	https://download.kde.org/stable/pulseaudio-qt/%{name}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Pulseaudio-qt is a Qt framework C++ bindings library for the PulseAudio
sound system.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Pulseaudio-qt is a Qt framework C++ bindings library for the PulseAudio
sound system.

%files -n %{libname}
%doc README.md
%license LICENSES/*
%{_kde5_libdir}/libKF5PulseAudioQt.so.%{major}
%{_kde5_libdir}/libKF5PulseAudioQt.so.%{version}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files needed if you wish to build
applications based on %{name}.

%files -n %{devname}
%{_kde5_includedir}/KF5/KF5PulseAudioQt/
%{_kde5_includedir}/KF5/pulseaudioqt_version.h
%{_kde5_libdir}/libKF5PulseAudioQt.so
%{_kde5_libdir}/cmake/KF5PulseAudioQt/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15943 |21mr|puppet-7.25.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	System Automation and Configuration Management Software
Name:		puppet
Version:	7.25.0
Release:	1
License:	Apache Software License 2.0
Group:		Monitoring
Url:		https://www.puppetlabs.com/
Source0:	https://downloads.puppetlabs.com/puppet/%{name}-%{version}.tar.gz
Source2:	puppet-tmpfiles.conf
# Get these by checking out the right tag from https://github.com/puppetlabs/puppet-agent and:
# sed -E 's|.+/(.+)\.git.+tags/v(.+)"}|https://forge.puppet.com/v3/files/\1-\2.tar.gz|' configs/components/module-puppetlabs-*.json
Source3:	https://forge.puppet.com/v3/files/puppetlabs-augeas_core-1.3.0.tar.gz
Source4:	https://forge.puppet.com/v3/files/puppetlabs-cron_core-1.2.0.tar.gz
Source5:	https://forge.puppet.com/v3/files/puppetlabs-host_core-1.2.0.tar.gz
Source6:	https://forge.puppet.com/v3/files/puppetlabs-mount_core-1.2.0.tar.gz
Source7:	https://forge.puppet.com/v3/files/puppetlabs-scheduled_task-3.1.1.tar.gz
Source8:	https://forge.puppet.com/v3/files/puppetlabs-selinux_core-1.3.0.tar.gz
Source9:	https://forge.puppet.com/v3/files/puppetlabs-sshkeys_core-2.4.0.tar.gz
Source10:	https://forge.puppet.com/v3/files/puppetlabs-yumrepo_core-1.2.0.tar.gz
Source11:	https://forge.puppet.com/v3/files/puppetlabs-zfs_core-1.4.0.tar.gz
Source12:	https://forge.puppet.com/v3/files/puppetlabs-zone_core-1.1.0.tar.gz
Source100:	puppet.rpmlintrc
BuildArch:	noarch
BuildRequires:	ruby-devel
BuildRequires:	facter
BuildRequires:	hiera
Requires:	facter
Requires:	hiera
Requires:	rubygem-concurrent-ruby
Requires:	rubygem-semantic_puppet
Requires:	rubygem-deep_merge
Requires(pre,post,preun):	rpm-helper
%rename	puppet-agent
%rename	vim-puppet
%rename	emacs-puppet
Obsoletes:	puppet-server < 7.0.0

%description
Puppet lets you centrally manage every important aspect of your system using a
cross-platform specification language that manages all the separate elements
normally aggregated in different files, like users, cron jobs, and hosts,
along with obviously discrete elements like packages, services, and files.
This package provide the puppet client daemon.

%files
%doc README.md examples
%license LICENSE
%config(noreplace) %dir %{_sysconfdir}/%{name}
%config(noreplace) %dir %{_sysconfdir}/%{name}/code
%config(noreplace) %dir %{_sysconfdir}/%{name}/code/environments
%config(noreplace) %dir %{_sysconfdir}/%{name}/code/environments/production
%config(noreplace) %dir %{_sysconfdir}/%{name}/code/environments/production/manifests
%config(noreplace) %dir %{_sysconfdir}/%{name}/code/environments/production/modules
%config(noreplace) %dir %attr(-,puppet,puppet) %{_sysconfdir}/%{name}/ssl
%config(noreplace) %{_sysconfdir}/%{name}/*.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(-,puppet,puppet) %{_localstatedir}/lib/%{name}
%attr(-,puppet,puppet) %{_localstatedir}/log/%{name}
%attr(-,puppet,puppet) %{_tmpfilesdir}/%{name}.conf
%ghost %attr(755, puppet, puppet) %{_rundir}/%{name}
%{_unitdir}/%{name}.service
%{_bindir}/%{name}
%{_datadir}/%{name}
# Strip development files
%exclude %{_datadir}/%{name}/vendor_modules/*/.{github,puppet-lint.rc,sync.yml}
%exclude %{_datadir}/%{name}/vendor_modules/*/{CODEOWNERS,Gemfile,appveyor.yml,spec}
%{ruby_vendorlibdir}/hiera
%{ruby_vendorlibdir}/hiera_puppet.rb
%{ruby_vendorlibdir}/%{name}
%{ruby_vendorlibdir}/%{name}.rb
%{ruby_vendorlibdir}/%{name}_pal.rb
%{ruby_vendorlibdir}/%{name}_x.rb
%{_localedir}/*/%{name}.po
%{_mandir}/man5/puppet.conf.5.*
%{_mandir}/man8/puppet.8.*
%{_mandir}/man8/puppet-agent.8.*
%{_mandir}/man8/puppet-apply.8.*
%{_mandir}/man8/puppet-catalog.8.*
%{_mandir}/man8/puppet-describe.8.*
%{_mandir}/man8/puppet-epp.8.xz
%{_mandir}/man8/puppet-config.8.*
%{_mandir}/man8/puppet-device.8.*
%{_mandir}/man8/puppet-doc.8.*
%{_mandir}/man8/puppet-facts.8.*
%{_mandir}/man8/puppet-filebucket.8.*
%{_mandir}/man8/puppet-generate.8.*
%{_mandir}/man8/puppet-help.8.*
%{_mandir}/man8/puppet-lookup.8.*
%{_mandir}/man8/puppet-module.8.*
%{_mandir}/man8/puppet-node.8.*
%{_mandir}/man8/puppet-parser.8.*
%{_mandir}/man8/puppet-plugin.8.*
%{_mandir}/man8/puppet-report.8.*
%{_mandir}/man8/puppet-resource.8.*
%{_mandir}/man8/puppet-script.8.*
%{_mandir}/man8/puppet-ssl.8.*


%pre
%_pre_useradd %{name} %{_localstatedir}/lib/%{name} /sbin/nologin

%post
%tmpfiles_create %{name}
%_post_service %{name}

%preun
%_preun_service %{name}

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


cp -a %{sources} .
for f in puppetlabs-*.tar*; do
    tar xvf $f
done


# Puppetlabs messed up with default paths
find -type f -exec \
  sed -i \
    -e 's|/etc/puppetlabs/puppet|%{_sysconfdir}/%{name}|' \
    -e 's|/etc/puppetlabs/code|%{_sysconfdir}/%{name}/code|' \
    -e 's|/opt/puppetlabs/puppet/bin|%{_bindir}|' \
    -e 's|/opt/puppetlabs/puppet/cache|%{_sharedstatedir}/%{name}|' \
    -e 's|/opt/puppetlabs/puppet/public|%{_sharedstatedir}/%{name}/public|' \
    -e 's|/opt/puppetlabs/puppet/share/locale|%{_datadir}/%{name}/locale|' \
    -e 's|/opt/puppetlabs/puppet/modules|%{_datadir}/%{name}/modules|' \
    -e 's|/opt/puppetlabs/puppet/vendor_modules|%{_datadir}/%{name}/vendor_modules|' \
    -e 's|/var/log/puppetlabs/puppet|%{_localstatedir}/log/%{name}|' \
    -e 's|/var/run/puppetlabs|%{_rundir}/%{name}|' \
  '{}' +


%build
# Nothing to do


%install
ruby install.rb \
    --destdir=%{buildroot} \
    --sitelibdir=%{ruby_vendorlibdir} \
    --localedir=%{_localedir} \
    --vardir=%{_localstatedir}/lib/%{name} \
    --publicdir=%{_localstatedir}/lib/%{name}/public \
    --logdir=%{_localstatedir}/log/%{name} \
    --configdir="%{_sysconfdir}/%{name}" \
    --codedir="%{_sysconfdir}/%{name}/code" \
    --rundir="%{_rundir}/%{name}" \
    --quick \
    --no-rdoc


# Prepare the needed directories
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/%{name}
install -d -m 0755 %{buildroot}%{_localstatedir}/log/%{name}
install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}/code/environments/production/{manifests,modules}
install -d -m 0771 %{buildroot}%{_sysconfdir}/%{name}/ssl


# Copy all ext files
install -d %{buildroot}%{_datadir}/%{name}
cp -a ext/ %{buildroot}%{_datadir}/%{name}


# Install systemd unit
install -D -m 644 ext/systemd/%{name}.service %{buildroot}%{_unitdir}/%{name}.service


# Install also tmpfiles config
install -D -m 644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf


# Install vendor modules
mkdir -p %{buildroot}%{_datadir}/%{name}/vendor_modules
for d in $(find -mindepth 1 -maxdepth 1 -type d -name 'puppetlabs-*'); do
  modver=${d#*-}
  mod=${modver%-*}
  cp -a $d %{buildroot}%{_datadir}/%{name}/vendor_modules/$mod
done


# Provide our logrotate config files since the one in ext/redhat
# is not useful for us
install -d  %{buildroot}%{_sysconfdir}/logrotate.d
cat > %{buildroot}%{_sysconfdir}/logrotate.d/%{name} <<EOF
/var/log/puppet/*log {
    create 0644 puppet puppet
    sharedscripts
    postrotate
        /bin/systemctl reload puppet.service > /dev/null 2>&1 || true
    endscript
}
EOF


# Remove misc packaging artifacts in source, not applicables to rpm
rm -rf %{buildroot}%{_datadir}/puppet/ext/{gentoo,freebsd,solaris,suse,windows,osx,ips,debian}
rm -f %{buildroot}%{_datadir}/puppet/ext/{build_defaults.yaml,project_data.yaml}
rm -f %{buildroot}%{_datadir}/puppet/ext/hiera/hiera.yaml
rm -f %{buildroot}%{_sysconfdir}/puppet/hiera.yaml
rm -f %{buildroot}%{_datadir}/puppet/ext/redhat/*.init
rm -f %{buildroot}%{_datadir}/locale/config.yaml
rm -f %{buildroot}%{_datadir}/locale/puppet.pot

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15944 |21mr|puppet-apache-5.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-apache
#%%global commit e587f2af793111adab04bb776808f99a09ca092b
#%%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
#%%global alphatag .%{shortcommit}git


Name:		puppet-apache
Version:	5.5.0
Release:	1
Summary:	Installs, configures, and manages Apache virtual hosts, web services, and modules
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetlabs-apache
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet-concat
Requires:	puppet >= 2.7.0

%description
Installs, configures, and manages Apache virtual hosts, web services, and modules.

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/apache/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/apache/

%files
%{_datadir}/puppet/modules/apache/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15945 |21mr|puppet-archive-4.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		puppet-archive
Version:	4.6.0
Release:	1
Summary:	Compressed archive file download and extraction with native types/providers for Windows and Unix
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/voxpupuli/puppet-archive
Source0:	https://github.com/voxpupuli/%{name}/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 4.6.1

%description
The archive module provides native puppet resources for managing compressed file download and extraction with optional checksum verification and cleanup.

%prep
%setup -q -n %{name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

# puppet-archive includes a cacert file used when running in windows
# this cacert file is not needed for linux and it's not recommended to
# ship certificates in packages out of system ones so we are removing it
find . -name cacert.pem -exec rm {} +

%build

%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/archive/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/archive/

%files
%{_datadir}/puppet/modules/archive/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15946 |21mr|puppet-auditd-2.2.1-0.20210325110021.189b22b
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 2.2.1-0.20210325110021.189b22b
%global dlrn 1
%define upstream_version 2.2.1
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}

Name:                   puppet-auditd
Version: 2.2.1
Release: 0.20210325110021.189b22b%{?dist}
Summary:                Manage the audit daemon and it's rules
Group:		Development/Ruby
License:                BSD

URL:                    https://github.com/kemra102/puppet-auditd

Source0: 2.2.1-0.20210325110021.189b22b.tar.gz

BuildArch:              noarch

Requires:               puppet-stdlib
Requires:               puppet-concat

Requires:               puppet >= 2.7.0

%description
This module handles installation of the auditd daemon, manages its main
configuration file as well as the user specified rules that auditd uses.

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/auditd/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/auditd/



%files
%{_datadir}/puppet/modules/auditd/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15947 |21mr|puppet-augeasproviders_core-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name augeasproviders_core

Name:		puppet-augeasproviders_core
Version:	2.6.0
Release:	1
Summary:	Alternative Augeas-based providers for Puppet
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/hercules-team/augeasproviders_core
Source0:	https://github.com/hercules-team/%{upstream_name}/archive/%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
Alternative Augeas-based providers for Puppet

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/augeasproviders_core/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/augeasproviders_core/

%files
%{_datadir}/puppet/modules/augeasproviders_core/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15948 |21mr|puppet-augeasproviders_sysctl-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name augeasproviders_sysctl

Name:		puppet-augeasproviders_sysctl
Version:	2.5.0
Release:	1
Summary:	Augeas-based sysctl type and provider for Puppet
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/hercules-team/augeasproviders_core
Source0:	https://github.com/hercules-team/%{upstream_name}/archive/%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-augeasproviders_core
Requires:	puppet >= 2.7.0

%description
Augeas-based sysctl type and provider for Puppet.

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/augeasproviders_sysctl/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/augeasproviders_sysctl/

%files
%{_datadir}/puppet/modules/augeasproviders_sysctl/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15949 |21mr|puppet-cassandra-3.1.1-0.20210326064915.542df57
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 3.1.1-0.20210326064915.542df57
%global dlrn 1
%define upstream_version 3.1.1-rc0
%global milestone .0rc0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-cassandra
%global commit 542df57c7f5db932fee80041998aa57d5fcc0cba
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-cassandra
Version: 3.1.1
Release: 0.20210326064915.542df57%{?dist}
Summary:        Installs Cassandra, DataStax Agent & OpsCenter on RHEL/Ubuntu/Debian
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/voxpupuli/puppet-cassandra

Source0: 3.1.1-0.20210326064915.542df57.tar.gz

BuildArch:      noarch

#Requires:       puppet-apt
Requires:       puppet-firewall
Requires:       puppet-inifile
Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Installs Cassandra, DataStax Agent & OpsCenter on RHEL/Ubuntu/Debian.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/cassandra/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/cassandra/



%files
%{_datadir}/puppet/modules/cassandra/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15950 |21mr|puppet-certmonger-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-certmonger
%global commit a19887066c4978ad2567c881d60c14fcf0737bb2
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git

Name:		puppet-certmonger
Version:	2.3.0
Release:	1
Summary:	Certmonger Puppet Module
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/saltedsignal/puppet-certmonger
Source0:	http://github.com/saltedsignal/%{upstream_name}/archive/%{commit}.tar.gz#/%{upstream_name}-%{shortcommit}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
Certmonger puppet module for integration with IPA CAs.

%prep
%setup -q -n %{name}-%{commit}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build

%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/certmonger/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/certmonger/

%files
%{_datadir}/puppet/modules/certmonger/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15951 |21mr|puppet-collectd-12.2.1-0.20210326044159.60d656a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 12.2.1-0.20210326044159.60d656a
%global dlrn 1
%define upstream_version 12.2.1-rc0
%global milestone .0rc0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-collectd
%global commit 60d656ab1063b30f7617caf6e4115cc0050ca2eb
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-collectd
Version: 12.2.1
Release: 0.20210326044159.60d656a%{?dist}
Summary:        Puppet module for Collectd
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/voxpupuli/%{upstream_name}

Source0: 12.2.1-0.20210326044159.60d656a.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet-concat
Requires:       puppet >= 2.7.0

%description
Puppet module for Collectd

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/collectd/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/collectd/



%files
%{_datadir}/puppet/modules/collectd/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15952 |21mr|puppet-concat-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-concat

Name:		puppet-concat
Version:	6.2.0
Release:	1
Summary:	Construct files from multiple fragments
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetlabs-concat
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
Construct files from multiple fragments.

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build

%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/concat/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/concat/

%files
%{_datadir}/puppet/modules/concat/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15953 |21mr|puppet-contrail-1.0.1-0.20210325113629.6f87929
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 1.0.1-0.20210325113629.6f87929
%global dlrn 1
%define upstream_version 1.0.1
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-contrail
%global commit 22558d68034c05eb48d0b2ad2aa6f2964521ca0e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-contrail
Version: 1.0.1
Release: 0.20210325113629.6f87929%{?dist}
Summary:        Puppet module for Juniper OpenContrail
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/Juniper/puppet-contrail

Source0: 1.0.1-0.20210325113629.6f87929.tar.gz

BuildArch:      noarch

Requires:       puppet-inifile
Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Puppet module for Juniper OpenContrail

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/contrail/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/contrail/



%files
%{_datadir}/puppet/modules/contrail/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15954 |21mr|puppet-corosync-6.0.1-0.a2aef8cgit
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global commit a2aef8cbdd265d2143a87cf9c23f323369307ea4
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:		puppet-corosync
Version:	6.0.1
Release:	0%{?alphatag}
Summary:	This module is a set of manifests and types/providers for quickly setting up highly available clusters using Corosync
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/voxpupuli/puppet-corosync
Source0:	https://github.com/voxpupuli/%{name}/archive/%{commit}.tar.gz#/%{name}-%{shortcommit}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
This module is a set of manifests and types/providers for quickly setting up highly available clusters using Corosync

%prep
%setup -q -n %{name}-%{commit}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/corosync/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/corosync/

%files
%{_datadir}/puppet/modules/corosync/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15955 |21mr|puppet-datacat-0.6.3-0.20210325112937.5cce8f2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.6.3-0.20210325112937.5cce8f2
%global dlrn 1
%define upstream_version 0.6.3
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-datacat
%global commit 10f6dde9a3c3c47c06a6322d22d7723685d9976a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-datacat
Version: 0.6.3
Release: 0.20210325112937.5cce8f2%{?dist}
Summary:        Puppet type for handling data fragments
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/richardc/puppet-datacat

Source0: 0.6.3-0.20210325112937.5cce8f2.tar.gz

BuildArch:      noarch

Requires:       puppet >= 2.7.0

%description
Puppet type for handling data fragments

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/datacat/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/datacat/



%files
%{_datadir}/puppet/modules/datacat/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15956 |21mr|puppet-dns-8.1.1-0.20210326044536.43e446a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 8.1.1-0.20210326044536.43e446a
%global dlrn 1
%define upstream_version 8.1.1
%{!?upstream_version: %global upstream_version %{commit}}

%define upstream_name puppet-dns
%global commit 43e446a9d517a336b07b0304633bb1380d0422fc
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:                   puppet-dns
Version: 8.1.1
Release: 0.20210326044536.43e446a%{?dist}
Summary:                Manage the ISC BIND daemon
Group:		Development/Ruby
License:                Apache-2.0

URL:                    https://github.com/theforeman/puppet-dns

Source0: 8.1.1-0.20210326044536.43e446a.tar.gz

BuildArch:              noarch

Requires:               puppet-concat
Requires:               puppet-stdlib

Requires:               puppet >= 2.7.0

%description
Puppet module for configuring the ISC BIND server for Foreman.

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/dns/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/dns/



%files
%{_datadir}/puppet/modules/dns/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15957 |21mr|puppet-elasticsearch-7.0.0-0.20210326042849.62cf708
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 7.0.0-0.20210326042849.62cf708
%global dlrn 1
%define upstream_version 7.0.0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-elasticsearch
%global commit 62cf708eda8f2074c6233c301a947a3289ca91d6
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-elasticsearch
Version: 7.0.0
Release: 0.20210326042849.62cf708%{?dist}
Summary:        Module for managing and configuring Elasticsearch nodes
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/elastic/puppet-elasticsearch

Source0: 7.0.0-0.20210326042849.62cf708.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
#Requires:       puppet-apt
#Requires:       puppet-yum
Requires:       puppet-datacat
Requires:       puppet >= 2.7.0

%description
Module for managing and configuring Elasticsearch nodes

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/elasticsearch/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/elasticsearch/



%files
%{_datadir}/puppet/modules/elasticsearch/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15958 |21mr|puppet-etcd-1.12.3-0.20210325114554.e143c2d
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 1.12.3-0.20210325114554.e143c2d
%global dlrn 1
%define upstream_version 1.12.3
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}

Name:                   puppet-etcd
Version: 1.12.3
Release: 0.20210325114554.e143c2d%{?dist}
Summary:                Installs and configures etcd
Group:		Development/Ruby
License:                ASL 2.0

URL:                    https://github.com/puppet-etcd/puppet-etcd

Source0: 1.12.3-0.20210325114554.e143c2d.tar.gz

BuildArch:              noarch

Requires:               puppet-stdlib

Requires:               puppet >= 2.7.0

%description
Installs and configures etcd

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/etcd/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/etcd/



%files
%{_datadir}/puppet/modules/etcd/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15959 |21mr|puppet-fdio-18.2-0.20210325114125.6fd1c8e
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 18.2-0.20210325114125.6fd1c8e
%global dlrn 1
%define upstream_version 18.2
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}

Name:                   puppet-fdio
Version: 18.2
Release: 0.20210325114125.6fd1c8e%{?dist}
Summary:                Puppet module for fdio projects
Group:		Development/Ruby
License:                ASL 2.0

URL:                    https://github.com/FDio/puppet-fdio

Source0: 18.2-0.20210325114125.6fd1c8e.tar.gz

BuildArch:              noarch

Requires:               puppet-stdlib

Requires:               puppet >= 2.7.0

%description
Installs and configures FD.io projects like VPP and Honeycomb agent.

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/fdio/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/fdio/



%files
%{_datadir}/puppet/modules/fdio/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15960 |21mr|puppet-firewall-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-firewall

Name:		puppet-firewall
Version:	2.5.0
Release:	1
Summary:	Manages Firewalls such as iptables
License:	ASL 2.0
Group:		Development/Ruby
URL:		http://github.com/puppetlabs/puppetlabs-firewall
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet >= 2.7.0

%description
Manages Firewalls such as iptables

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/firewall/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/firewall/



%files
%{_datadir}/puppet/modules/firewall/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15961 |21mr|puppet-fluentd-0.10.0-0.20210325113155.4dfc15a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.10.0-0.20210325113155.4dfc15a
%global dlrn 1
%define upstream_version 0.10.0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name konstantin-fluentd
%global commit 0400aafa8f23971485b838750d41928585cf3547
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-fluentd
Version: 0.10.0
Release: 0.20210325113155.4dfc15a%{?dist}
Summary:        Installs, configures, and manages Fluentd data collector
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/soylent/konstantin-fluentd

Source0: 0.10.0-0.20210325113155.4dfc15a.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Installs, configures, and manages Fluentd data collector

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/fluentd/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/fluentd/



%files
%{_datadir}/puppet/modules/fluentd/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15962 |21mr|puppet-git-0.5.0-0.20210325112249.4e4498e
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.5.0-0.20210325112249.4e4498e
%global dlrn 1
%define upstream_version 0.5.0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppetlabs-git
%global commit 5e862242466de4ae654a5de5ef4c1bc4e4b9f92e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git

%global __brp_mangle_shebangs_exclude_from  /usr/share/puppet/modules/git/files/subtree/bash_completion.sh

Name:           puppet-git
Version: 0.5.0
Release: 0.20210325112249.4e4498e%{?dist}
Summary:        Module for installing Git or Gitosis
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/puppetlabs/puppetlabs-git

Source0: 0.5.0-0.20210325112249.4e4498e.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Module for installing Git or Gitosis.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/git/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/git/



%files
%{_datadir}/puppet/modules/git/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15963 |21mr|puppet-haproxy-4.2.2-0.20210325115438.a797b8c
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 4.2.2-0.20210325115438.a797b8c
%global dlrn 1
%define upstream_version 4.2.2
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppetlabs-haproxy
%global commit f8c5f2774f78fec9c2ee5b88d3e1c89e4013bd0a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-haproxy
Version: 4.2.2
Release: 0.20210325115438.a797b8c%{?dist}
Summary:        Configures HAProxy servers and manages the configuration of backend member servers
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/puppetlabs/puppetlabs-haproxy

Source0: 4.2.2-0.20210325115438.a797b8c.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet-concat
Requires:       puppet >= 2.7.0

%description
Configures HAProxy servers and manages the configuration of backend member servers.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/haproxy/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/haproxy/



%files
%{_datadir}/puppet/modules/haproxy/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15964 |21mr|puppet-inifile-4.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-inifile

Name:		puppet-inifile
Version:	4.2.0
Release:	1
Summary:	Resource types for managing settings in INI files
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetlabs-inifile
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
Resource types for managing settings in INI files

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/inifile/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/inifile/



%files
%{_datadir}/puppet/modules/inifile/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15965 |21mr|puppet-ipaclient-2.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-ipaclient
%global commit b086731d5f1c0129db3cd8e3ebdc1acd649ebfce
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git

Name:		puppet-ipaclient
Version:	2.5.2
Release:	1
Summary:	IPA Client Puppet Module
License:	MIT
Group:		Development/Ruby
URL:		https://github.com/joshuabaird/puppet-ipaclient
Source0:	http://github.com/joshuabaird/%{upstream_name}/archive/%{commit}.tar.gz#/%{upstream_name}-%{shortcommit}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
IPA client puppet module for integration with IPA servers.

%prep
%setup -q -n %{name}-%{commit}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/ipaclient/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/ipaclient/


%files
%{_datadir}/puppet/modules/ipaclient/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15966 |21mr|puppet-java-6.3.1-0.20210325120346.f991317
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 6.3.1-0.20210325120346.f991317
%global dlrn 1
%define upstream_version 6.3.1
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppetlabs-java
%global commit 2b0bd48cb5140c49501e90387a4a8ea9268fd681
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-java
Version: 6.3.1
Release: 0.20210325120346.f991317%{?dist}
Summary:        Installs the correct Java package on various platforms
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/puppetlabs/puppetlabs-java

Source0: 6.3.1-0.20210325120346.f991317.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Installs the correct Java package on various platforms.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/java/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/java/



%files
%{_datadir}/puppet/modules/java/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15967 |21mr|puppet-kafka-7.0.1-0.20210326042942.3546820
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 7.0.1-0.20210326042942.3546820
%global dlrn 1
%define upstream_version 7.0.1-rc0
%global milestone .0rc0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-kafka
%global commit 35468206e7cdf6abdf86cc7481281b6597cd9f68
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-kafka
Version: 7.0.1
Release: 0.20210326042942.3546820%{?dist}
Summary:        Module for managing apache kafka
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/puppet-community/puppet-kafka

Source0: 7.0.1-0.20210326042942.3546820.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet-java
Requires:       puppet >= 2.7.0

%description
Module for managing apache kafka

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/kafka/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/kafka/



%files
%{_datadir}/puppet/modules/kafka/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15968 |21mr|puppet-keepalived-0.0.2-0.20210325112027.bbca37a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.0.2-0.20210325112027.bbca37a
%global dlrn 1
%define upstream_version 0.0.2
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-module-keepalived
%global commit bbca37ade629a9178f09366fd0368187fb645f4e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-keepalived
Version: 0.0.2
Release: 0.20210325112027.bbca37a%{?dist}
Summary:        Keepalived Puppet Module
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/Unyonsys/puppet-module-keepalived

Source0: 0.0.2-0.20210325112027.bbca37a.tar.gz

BuildArch:      noarch

Requires:       puppet-concat
Requires:       puppet >= 2.7.0

%description
This Puppet Module manages keepalived instances.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/keepalived/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/keepalived/



%files
%{_datadir}/puppet/modules/keepalived/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15969 |21mr|puppet-kibana3-0.0.5-0.20210325111027.6ca9631
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.0.5-0.20210325111027.6ca9631
%global dlrn 1
%define upstream_version 0.0.5
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-kibana3
%global commit 6ca9631fbe82766134f98e2e8780bb91e7cd3f0e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-kibana3
Version: 0.0.5
Release: 0.20210325111027.6ca9631%{?dist}
Summary:        Installs and configures kibana3
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/thejandroman/puppet-kibana3

Source0: 0.0.5-0.20210325111027.6ca9631.tar.gz

BuildArch:      noarch

Requires:       puppet-git
Requires:       puppet-vcsrepo
Requires:       puppet-apache
Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Installs and configures kibana3.

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/kibana3/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/kibana3/



%files
%{_datadir}/puppet/modules/kibana3/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15970 |21mr|puppet-kmod-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstream_name puppet-kmod

Name:		puppet-kmod
Version:	2.5.0
Release:	1
Summary:	Manage Linux kernel modules with Puppet
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/camptocamp/puppet-kmod
Source0:	https://github.com/camptocamp/%{upstream_name}/archive/%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz
BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
Manage Linux kernel modules with Puppet

%prep
%setup -q -n %{name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/kmod/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/kmod/

%files
%{_datadir}/puppet/modules/kmod/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15971 |21mr|puppet-lib-file_concat-1.0.2-0.20210325111254.813132b
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 1.0.2-0.20210325111254.813132b
%global dlrn 1
%define upstream_version 1.0.2
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}

Name:                   puppet-lib-file_concat
Version: 1.0.2
Release: 0.20210325111254.813132b%{?dist}
Summary:                Library for concatenating multiple files into 1
Group:		Development/Ruby
License:                ASL 2.0

URL:                    https://github.com/electrical/puppet-lib-file_concat

Source0: 1.0.2-0.20210325111254.813132b.tar.gz

BuildArch:              noarch


Requires:               puppet >= 2.7.0

%description
Library for concatenating multiple files into 1

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/file_concat/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/file_concat/



%files
%{_datadir}/puppet/modules/file_concat/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15972 |21mr|puppet-memcached-3.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-memcached

Name:		puppet-memcached
Version:	3.5.0
Release:	1
Summary:	Manage memcached via Puppet
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/saz/puppet-memcached
Source0:	https://github.com/saz/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
Manage memcached via Puppet

%prep
%setup -q -n %{name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/memcached/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/memcached/



%files
%{_datadir}/puppet/modules/memcached/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15973 |21mr|puppet-midonet-1.0.0-0.20210329111841.a8cec1d
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 1.0.0-0.20210329111841.a8cec1d
%global dlrn 1
%define upstream_version 1.0.0
%{!?upstream_version: %global upstream_version %{commit}}
%if 0%{?dlrn}
%define upstream_name openstack-midonet
%else
%define upstream_name puppet-midonet
%endif
%global commit bafa9e9bc3e683cd3ceb2650eb174cf707a2837e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-midonet
# Bumped epoch after repo movement from github.com/midonet to github.com/openstack
Epoch:          1
Version: 1.0.0
Release: 0.20210329111841.a8cec1d%{?dist}
Summary:        Configure and install MidoNet components
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/openstack/puppet-midonet

Source0: 1.0.0-0.20210329111841.a8cec1d.tar.gz

BuildArch:      noarch

Requires:       puppet-module-data
Requires:       puppet-inifile
Requires:       puppet-zookeeper
Requires:       puppet-cassandra
#Requires:       puppet-apt
Requires:       puppet-java
Requires:       puppet-tomcat
Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Configure and install MidoNet components

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/midonet/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/midonet/



%files
%{_datadir}/puppet/modules/midonet/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15974 |21mr|puppet-module-data-0.5.1-0.20210325111525.28dafce
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.5.1-0.20210325111525.28dafce
%global dlrn 1
%define upstream_version 0.5.1
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-module-data
%global commit 28dafce3a70b35364d33f64d9f518e1adffef242
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-module-data
Version: 0.5.1
Release: 0.20210325111525.28dafce%{?dist}
Summary:        A hiera backend to allow the use of data while writing sharable modules
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/ripienaar/puppet-module-data

Source0: 0.5.1-0.20210325111525.28dafce.tar.gz

BuildArch:      noarch

Requires:       puppet >= 2.7.0

%description
A hiera backend to allow the use of data while writing sharable modules

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/module-data/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/module-data/



%files
%{_datadir}/puppet/modules/module-data/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15975 |21mr|puppet-mongodb-3.1.1-0.20210326063900.a59b99e
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 3.1.1-0.20210326063900.a59b99e
%global dlrn 1
%define upstream_version 3.1.1-rc0
%global milestone .0rc0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-mongodb
%global commit a59b99ed9df3796b64c42bc4e499fdef53b3c39a
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-mongodb
Version: 3.1.1
Release: 0.20210326063900.a59b99e%{?dist}
Summary:        Installs MongoDB on RHEL/Ubuntu/Debian
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/voxpupuli/puppet-mongodb

Source0: 3.1.1-0.20210326063900.a59b99e.tar.gz

BuildArch:      noarch

#Requires:       puppet-apt
Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Installs MongoDB on RHEL/Ubuntu/Debian.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/mongodb/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/mongodb/


%files
%{_datadir}/puppet/modules/mongodb/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15976 |21mr|puppet-mysql-10.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-mysql

Name:		puppet-mysql
Version:	10.7.0
Release:	2
Summary:	Installs, configures, and manages the MySQL service
License:	ASL 2.0
Group:		Development/Ruby
URL:		http://github.com/puppetlabs/puppetlabs-mysql
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz#/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet-translate
Requires:	puppet-resource_api
Requires:	puppet >= 2.7.0

%description
Installs, configures, and manages the MySQL service.

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/mysql/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/mysql/



%files
%{_datadir}/puppet/modules/mysql/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15977 |21mr|puppet-n1k-vsm-0.0.2-0.20210329111932.92401b8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.0.2-0.20210329111932.92401b8
%global dlrn 1
%define upstream_version 0.0.2
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-n1k-vsm
%global commit 91772fa53dd3ed2686d2e8b0303c77ea6faefe68
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-n1k-vsm
Version: 0.0.2
Release: 0.20210329111932.92401b8%{?dist}
Summary:        Puppet module for Cisco Nexus1000v VSM
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://launchpad.net/puppet-n1k-vsm

Source0: 0.0.2-0.20210329111932.92401b8.tar.gz

BuildArch:      noarch

Requires:       puppet-vswitch
Requires:       puppet >= 2.7.0

%description
Puppet module for Cisco Nexus1000v VSM

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/n1k_vsm/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/n1k_vsm/



%files
%{_datadir}/puppet/modules/n1k_vsm/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15978 |21mr|puppet-nssdb-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-nssdb
%global commit 2ed2a2df59bbeaf9cf628e1a4a499476842282fd
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git

Name:		puppet-nssdb
Version:	1.0.1
Release:	1
Summary:	NSS databse Puppet Module
License:	Apache-2.0
Group:		Development/Ruby
URL:		https://github.com/rcritten/puppet-nssdb
Source0:	http://github.com/rcritten/%{upstream_name}/archive/%{commit}.tar.gz?/%{upstream_name}-%{shortcommit}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
This Puppet Module manages NSS Databases.

%prep
%setup -q -n %{name}-%{commit}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/nssdb/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/nssdb/


%files
%{_datadir}/puppet/modules/nssdb/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15979 |21mr|puppet-ntp-4.2.0-0.20210325153421.93da3bd
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 4.2.0-0.20210325153421.93da3bd
%global dlrn 1
%define upstream_version 4.2.0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppetlabs-ntp
%global commit d93d4b66c6818c9a7281d5af173bbde582fd299c
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-ntp
Version: 4.2.0
Release: 0.20210325153421.93da3bd%{?dist}
Summary:        Installs, configures, and manages the NTP service
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/puppetlabs/puppetlabs-ntp

Source0: 4.2.0-0.20210325153421.93da3bd.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Installs, configures, and manages the NTP service.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/ntp/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/ntp/



%files
%{_datadir}/puppet/modules/ntp/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15980 |21mr|puppet-powerdns-0.0.6-0.20210325114344.d3d9b3a
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.0.6-0.20210325114344.d3d9b3a
%global dlrn 1
%define upstream_version 0.0.6
%{!?upstream_version: %global upstream_version %{version}%{?milestone}}

%define upstream_name puppet-powerdns
%global commit 899651549b6d57470d233321265ace862270e154
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git

Name:                   puppet-powerdns
Version: 0.0.6
Release: 0.20210325114344.d3d9b3a%{?dist}
Summary:                Module for managing PowerDNS
Group:		Development/Ruby
License:                GPLv2

URL:                    https://github.com/antonlindstrom/puppet-powerdns

Source0: 0.0.6-0.20210325114344.d3d9b3a.tar.gz

BuildArch:              noarch

Requires:               puppet-stdlib

Requires:               puppet >= 2.7.0

%description
Puppet module to install and configure PowerDNS

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/powerdns/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/powerdns/



%files
%{_datadir}/puppet/modules/powerdns/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15981 |21mr|puppet-rabbitmq-10.1.1-0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-rabbitmq

Name:		puppet-rabbitmq
Version:	10.1.1
Release:	0
Summary:	Installs, configures, and manages RabbitMQ
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/voxpupuli/puppet-rabbitmq
Source0:	https://github.com/voxpupuli/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet-archive
Requires:	puppet >= 2.7.0

%description
Installs, configures, and manages RabbitMQ.

%prep
%autosetup -n %{upstream_name}-%{version} -p1

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/rabbitmq/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/rabbitmq/



%files
%{_datadir}/puppet/modules/rabbitmq/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15982 |21mr|puppet-redis-6.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-redis

Name:		puppet-redis
Version:	6.0.0
Release:	1
Summary:	Redis module
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/voxpupuli/puppet-redis
Source0:	https://github.com/voxpupuli/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-augeasproviders_sysctl
Requires:	puppet-augeasproviders_core
Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
Redis module

%prep
%setup -q -n %{name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/redis/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/redis/

%files
%{_datadir}/puppet/modules/redis/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15983 |21mr|puppet-remote-0.0.1-1.7420908git
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-remote
%global commit 7420908328b832f4b20e1eba44bcccd926da8faa
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:		puppet-remote
Version:	0.0.1
Release:	1%{?alphatag}
Summary:	Remote Puppet Module
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/paramite/puppet-remote
Source0:	http://github.com/paramite/%{upstream_name}/archive/%{commit}.tar.gz#/%{upstream_name}-%{shortcommit}.tar.gz

BuildArch:	noarch

Requires:	puppet >= 2.7.0

%description
This Puppet Module provides types and providers for managing
remote resources.

%prep
%setup -q -n %{name}-%{commit}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/remote/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/remote/


%files
%{_datadir}/puppet/modules/remote/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15984 |21mr|puppet-resource_api-1.8.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-resource_api

Name:		puppet-resource_api
Version:	1.8.13
Release:	1
Summary:	This is an implementation of the Resource API specification
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppet-resource_api
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz
BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 6.0.0

%description
This is an implementation of the Resource API specification. The puppet-resource_api is part of the Puppet 6 Platform.

%prep
%setup -q -n %{name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/resource_api/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/resource_api/

%files
%{_datadir}/puppet/modules/resource_api/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15985 |21mr|puppet-rsync-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-rsync

Name:		puppet-rsync
Version:	1.1.1
Release:	1
Summary:	Manages rsync clients, repositories, and servers, & providies defines to easily grab data via rsync
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetlabs-rsync

Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet-xinetd
Requires:	puppet-concat
Requires:	puppet >= 2.7.0

%description
Manages rsync clients, repositories, and servers, & providies defines to easily grab data via rsync.

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/rsync/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/rsync/



%files
%{_datadir}/puppet/modules/rsync/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15986 |21mr|puppet-rsyslog-4.0.1-0.20210325154211.2548a0d
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 4.0.1-0.20210325154211.2548a0d
%global dlrn 1
%define upstream_version 4.0.1-rc0
%global milestone .0rc0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-rsyslog
%global commit d42f3dcf61c64c2b8cf7677dde8feced45689c14
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-rsyslog
Version: 4.0.1
Release: 0.20210325154211.2548a0d%{?dist}
Summary:        Puppet module for rsyslog
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/voxpupuli/%{upstream_name}

Source0: 4.0.1-0.20210325154211.2548a0d.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet-concat
Requires:       puppet >= 2.7.0

%description
Puppet module for rsyslog

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/rsyslog/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/rsyslog/



%files
%{_datadir}/puppet/modules/rsyslog/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15987 |21mr|puppet-sensu-2.62.4-0.20210325153911.20361a4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 2.62.4-0.20210325153911.20361a4
%global dlrn 1
%define upstream_version 2.62.4
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name sensu-puppet
%global commit 7f60b2c5f708ed03b7769b69a1e86018db598aa9
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-sensu
Version: 2.62.4
Release: 0.20210325153911.20361a4%{?dist}
Summary:        A module to install the Sensu monitoring framework
Group:		Development/Ruby
License:        MIT

URL:            https://github.com/sensu/sensu-puppet

Source0: 2.62.4-0.20210325153911.20361a4.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
A module to install the Sensu monitoring framework

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/sensu/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/sensu/



%files
%{_datadir}/puppet/modules/sensu/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15988 |21mr|puppetserver-7.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A network tool for managing many disparate systems
Name:		puppetserver
Version:	7.12.0
Release:	1
License:	ASL 2.0
Group:		System/Servers
URL:		http://puppetlabs.com
Source0:	http://downloads.puppetlabs.com/puppet/%{name}-%{version}.tar.gz
# https://github.com/puppetlabs/puppetserver/tree/7.x
Source1:	README.md
Source2:	LICENSE.md
Source100:	puppetserver.rpmlintrc
Patch0:		fix-paths.patch
BuildArch:	noarch
# no java on e2k
ExcludeArch:	%{e2k}

Requires:	java-openjdk
Requires:	java-openjdk-headless
Requires:	puppet
Requires:	rubygem-concurrent-ruby
Requires:	rubygem-deep_merge
Requires:	rubygem-facter
Requires:	rubygem-fast_gettext
Requires:	rubygem-gettext
Requires:	rubygem-hocon
Requires:	rubygem-locale
Requires:	rubygem-puppetserver-ca
Requires:	rubygem-semantic_puppet
Requires:	rubygem-text

Provides:	puppet-server = %{EVRD}

%description
Puppet Server implements Puppet's server-side components for managing Puppet
agents in a distributed, service-oriented architecture. Puppet Server is
built on top of the same technologies that make PuppetDB successful,
and which allow us to greatly improve performance, scalability, advanced
metrics collection, and fine-grained control over the Ruby runtime.

%files
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_unitdir}/%{name}.service
%config(noreplace) %dir %attr(-, puppet, puppet) %{_sysconfdir}/%{name}
%config(noreplace) %dir %attr(-, puppet, puppet) %{_sysconfdir}/%{name}/conf.d
%config(noreplace) %attr(0644, puppet, puppet) %{_sysconfdir}/%{name}/conf.d/*.conf
%config(noreplace) %attr(0644, puppet, puppet) %{_sysconfdir}/%{name}/logback.xml
%config(noreplace) %attr(0644, puppet, puppet) %{_sysconfdir}/%{name}/request-logging.xml
%config(noreplace) %dir %attr(-, puppet, puppet) %{_sysconfdir}/%{name}/services.d
%config(noreplace) %attr(0644, puppet, puppet) %{_sysconfdir}/%{name}/services.d/ca.cfg
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(-,puppet,puppet) %{_tmpfilesdir}/%{name}.conf
%dir %attr(0770, puppet, puppet) %{_sharedstatedir}/%{name}
%dir %attr(0700, puppet, puppet) %{_sharedstatedir}/%{name}/jars
%dir %attr(0700, puppet, puppet) %{_localstatedir}/log/%{name}
%ghost %dir %attr(0755, puppet, puppet) %{_rundir}/%{name}
%doc README.md
%license LICENSE.md

#------------------------------------------------------------------

%prep
%autosetup -p1

sed -i install.sh \
	-e '/install-vendored-gems.sh/d' \
	-e '/install.*scripts"/d' \
	-e '/symbindir/d' \
	-e '/uxbindir/d'
sed -i '1s,/usr/bin/env bash,/bin/bash,' ext/cli/*

cp %{SOURCE1} %{SOURCE2} ./

%build
# Nothing to build

%install
export app_data=%{_sharedstatedir}/%{name}
export app_prefix=%{_datadir}/%{name}
export bindir=%{_bindir}
export projconfdir=%{_sysconfdir}/%{name}
export rundir=%{_rundir}/%{name}
export tmpfilesdir=%{_tmpfilesdir}
export unitdir=%{_unitdir}

export DESTDIR=%{buildroot}
bash install.sh install_redhat
bash install.sh systemd_redhat

install -Dm0644 ext/%{name}.logrotate.conf \
		%{buildroot}%{_sysconfdir}/logrotate.d/%{name}
mkdir -p %{buildroot}%{_localstatedir}/log/%{name}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}/jars

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15989 |21mr|puppet-snmp-3.9.1-0.20210325153551.5d73485
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 3.9.1-0.20210325153551.5d73485
%global dlrn 1
%define upstream_version 3.9.1
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-snmp
%global commit 7d4c97c5b6bf8756db8515355d4aac9ffd524569
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-snmp
Version: 3.9.1
Release: 0.20210325153551.5d73485%{?dist}
Summary:        Simple Network Management Protocol is for monitoring network and computer equipment
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/razorsedge/puppet-snmp

Source0: 3.9.1-0.20210325153551.5d73485.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Simple Network Management Protocol is for monitoring network and computer equipment. Net-SNMP implements v1, v2c, and v3 on both IPv4 and IPv6.

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/snmp/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/snmp/



%files
%{_datadir}/puppet/modules/snmp/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15990 |21mr|puppet-ssh-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-ssh

Name:		puppet-ssh
Version:	6.2.0
Release:	1
Summary:	Manage SSH client and server via Puppet
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/saz/puppet-ssh
Source0:	https://github.com/saz/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet-concat
Requires:	puppet >= 2.7.0

%description
Manage SSH client and server via Puppet.

%prep
%setup -q -n %{name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/ssh/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/ssh/



%files
%{_datadir}/puppet/modules/ssh/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15991 |21mr|puppet-staging-1.0.4-1.b466d93git
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-staging
%global commit b466d93f8deb0ed4d9762a17c3c38f356aa833ee
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git

Name:		puppet-staging
Version:	1.0.4
Release:	1%{?alphatag}%{?dist}
Summary:	Compressed file staging and deployment
License:	Apache-2.0
Group:		Development/Ruby
URL:		https://github.com/nanliu/puppet-staging
Source0:	https://github.com/nanliu/%{upstream_name}/archive/%{commit}.tar.gz#/%{upstream_name}-%{shortcommit}.tar.gz

BuildArch:	noarch

Requires:	puppet >= 2.7.0

%description
Compressed file staging and deployment

%prep
%setup -q -n %{name}-%{commit}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/staging/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/staging/

%files
%{_datadir}/puppet/modules/staging/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15992 |21mr|puppet-stdlib-6.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-stdlib

Name:		puppet-stdlib
Version:	6.4.0
Release:	1
Summary:	Standard library of resources for Puppet modules
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetlabs-stdlib
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet >= 2.7.0

%description
Standard library of resources for Puppet modules.

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build

%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/stdlib/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/stdlib/

%files
%{_datadir}/puppet/modules/stdlib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15993 |21mr|puppet-sysctl-0.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppet-sysctl

Name:		puppet-sysctl
Version:	0.0.12
Release:	1
Summary:	This modules allows you to configure sysctl
License:	GPL-2.0
Group:		Development/Ruby
URL:		https://github.com/duritong/puppet-sysctl
Source0:	https://github.com/duritong/%{upstream_name}/archive/v%{version}.tar.gz#/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet >= 2.7.0

%description
This modules allows you to configure sysctl.

%prep
%setup -q -n %{name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/sysctl/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/sysctl/

%files
%{_datadir}/puppet/modules/sysctl/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15994 |21mr|puppet-systemd-2.12.1-0.20210326043132.8f68b0d
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 2.12.1-0.20210326043132.8f68b0d
%global dlrn 1
%define upstream_version 2.12.1
%{!?upstream_version: %global upstream_version %{commit}}
%global commit 8f68b0dcf3bbbafc60c025879a28004fc9815aab
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git

Name:                   puppet-systemd
Version: 2.12.1
Release: 0.20210326043132.8f68b0d%{?dist}
Summary:                Puppet Systemd module
Group:		Development/Ruby
License:                Apache-2.0

URL:                    https://github.com/camptocamp/puppet-systemd

Source0: 2.12.1-0.20210326043132.8f68b0d.tar.gz

BuildArch:              noarch


Requires:               puppet >= 2.7.0

%description
Puppet module that configures systemd.

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/systemd/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/systemd/



%files
%{_datadir}/puppet/modules/systemd/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15995 |21mr|puppet-timezone-6.1.0-0.20210326044002.13ece6b
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 6.1.0-0.20210326044002.13ece6b
%global dlrn 1
%define upstream_version 6.1.0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-timezone
%global commit 13ece6b14033d9defdddec3c3535568f58bb1750
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-timezone
Version: 6.1.0
Release: 0.20210326044002.13ece6b%{?dist}
Summary:        Manage timezone settings via Puppet
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/saz/puppet-timezone

Source0: 6.1.0-0.20210326044002.13ece6b.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Manage timezone settings via Puppet.

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/timezone/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/timezone/



%files
%{_datadir}/puppet/modules/timezone/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15996 |21mr|puppet-tomcat-4.1.1-0.20210325120815.6add7e4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 4.1.1-0.20210325120815.6add7e4
%global dlrn 1
%define upstream_version 4.1.1
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppetlabs-tomcat
%global commit c8c66135f7140b91a2bb4e59672a067678cfa782
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-tomcat
Version: 4.1.1
Release: 0.20210325120815.6add7e4%{?dist}
Summary:        Installs, deploys, and configures Apache Tomcat web services
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/puppetlabs/puppetlabs-tomcat

Source0: 4.1.1-0.20210325120815.6add7e4.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet-concat
Requires:       puppet-staging
Requires:       puppet >= 2.7.0

%description
Installs, deploys, and configures Apache Tomcat web services.

%prep
%setup -q -n %{upstream_name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/tomcat/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/tomcat/



%files
%{_datadir}/puppet/modules/tomcat/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15997 |21mr|puppet-translate-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-translate

Name:		puppet-translate
Version:	2.2.0
Release:	1
Summary:	Provides the translate function for Puppet
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetlabs-translate
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet >= 2.7.0

%description
provides the translate function for Puppet.

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/translate/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/translate/



%files
%{_datadir}/puppet/modules/translate/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15998 |21mr|puppet-uchiwa-2.1.1-0.20210325113909.837c669
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 2.1.1-0.20210325113909.837c669
%global dlrn 1
%define upstream_version 2.1.1
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-uchiwa
%global commit 64ce619c26995bc270aa762e24ca298b9787bc3e
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-uchiwa
Version: 2.1.1
Release: 0.20210325113909.837c669%{?dist}
Summary:        Puppet module for installing Uchiwa
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/yelp/puppet-uchiwa

Source0: 2.1.1-0.20210325113909.837c669.tar.gz

BuildArch:      noarch

#Requires:       puppet-apt
Requires:       puppet-stdlib
Requires:       puppet >= 2.7.0

%description
Puppet module for installing Uchiwa

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/uchiwa/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/uchiwa/



%files
%{_datadir}/puppet/modules/uchiwa/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 15999 |21mr|puppet-vcsrepo-3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-vcsrepo

Name:		puppet-vcsrepo
Version:	3.1.1
Release:	1
Summary:	Puppet module providing a type to manage repositories from various version control systems
License:	GPLv2
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetlabs-vcsrepo
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz?/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet >= 2.7.0

%description
Puppet module providing a type to manage repositories from various version control systems

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/vcsrepo/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/vcsrepo/



%files
%{_datadir}/puppet/modules/vcsrepo/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16000 |21mr|puppet-vlan-0.1.0-0.20210325110907.c937de7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 0.1.0-0.20210325110907.c937de7
%global dlrn 1
%define upstream_version 0.1.0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-vlan
%global commit c937de75c28e63fba8d8738ad6a5f2ede517e53d
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-vlan
Version: 0.1.0
Release: 0.20210325110907.c937de7%{?dist}
Summary:        Vlan Puppet Module
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/derekhiggins/puppet-vlan

Source0: 0.1.0-0.20210325110907.c937de7.tar.gz

BuildArch:      noarch

Requires:       puppet >= 2.7.0

%description
Very simple puppet module to install a vlan.

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/vlan/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/vlan/



%files
%{_datadir}/puppet/modules/vlan/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16001 |21mr|puppet-xinetd-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name puppetlabs-xinetd

Name:		puppet-xinetd
Version:	3.3.0
Release:	1
Summary:	Configures xinetd and exposes the xinetd::service definition for adding new services
License:	ASL 2.0
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetlabs-xinetd
Source0:	https://github.com/puppetlabs/%{upstream_name}/archive/v%{version}.tar.gz#/%{upstream_name}-%{version}.tar.gz

BuildArch:	noarch

Requires:	puppet-stdlib
Requires:	puppet >= 2.7.0

%description
Configures xinetd and exposes the xinetd::service definition for adding new services.

%prep
%setup -q -n %{upstream_name}-%{version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build

%install
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/xinetd/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/xinetd/

%files
%{_datadir}/puppet/modules/xinetd/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16002 |21mr|puppet-zookeeper-1.1.0-0.20210326043330.18a5101
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global dlrn_nvr 1.1.0-0.20210326043330.18a5101
%global dlrn 1
%define upstream_version 1.1.0
%{!?upstream_version: %global upstream_version %{commit}}
%define upstream_name puppet-zookeeper
%global commit 18a5101a9619cba9b82d6ec3de49af4363db8b5d
%global shortcommit %(c=%{commit}; echo ${c:0:7})
# DO NOT REMOVE ALPHATAG
%global alphatag .%{shortcommit}git


Name:           puppet-zookeeper
Version: 1.1.0
Release: 0.20210326043330.18a5101%{?dist}
Summary:        Module for managing Apache Zookeeper
Group:		Development/Ruby
License:        ASL 2.0

URL:            https://github.com/deric/puppet-zookeeper

Source0: 1.1.0-0.20210326043330.18a5101.tar.gz

BuildArch:      noarch

Requires:       puppet-stdlib
Requires:       puppet-datacat
Requires:       puppet >= 2.7.0

%description
Module for managing Apache Zookeeper

%prep
%setup -q -n %{name}-%{upstream_version}

find . -type f -name ".*" -exec rm {} +
find . -size 0 -exec rm {} +
find . \( -name "*.pl" -o -name "*.sh"  \) -exec chmod +x {} +
find . \( -name "*.pp" -o -name "*.py"  \) -exec chmod -x {} +
find . \( -name "*.rb" -o -name "*.erb" \) -exec chmod -x {} +
find . \( -name spec -o -name ext \) | xargs rm -rf

%build


%install
rm -rf %{buildroot}
install -d -m 0755 %{buildroot}/%{_datadir}/puppet/modules/zookeeper/
cp -rp * %{buildroot}/%{_datadir}/puppet/modules/zookeeper/



%files
%{_datadir}/puppet/modules/zookeeper/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16003 |21mr|pure-ftpd-1.0.51-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags} %(mysql_config --cflags ||: )

Summary:	Lightweight, fast and secure FTP server
Name:		pure-ftpd
Version:	1.0.51
Release:	1
License:	GPL
Group:		System/Servers
URL:		http://www.pureftpd.org
Source0:	http://download.pureftpd.org/pub/pure-ftpd/releases/%{name}-%{version}.tar.bz2
Source1:	pure-ftpd.init
Source2:	pure-ftpd.logrotate
Source3:	pure-ftpd-xinetd
Source4:	pure-ftpd.service
Source5:	pure-ftpd.pam-0.77
Source6:	pure-ftpd.pam
Source7:	pure-ftpd-1.0.47-tmpfiles.conf
Patch0:		pure-ftpd-1.0.49-rosaconf.patch
Patch1:		pure-ftpd-1.0.47-fedora-both-options-on-command.patch
Patch2:		pure-ftpd-1.0.47-rosa-minuid-1000.patch
Patch3:		pure-ftpd-1.0.47-set-pidfile-path.patch
BuildRequires:	pam-devel
BuildRequires:	openldap-devel
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(openssl)
Provides:	ftp-server
Provides:	ftpserver
Requires(post,pre,preun,postun):	rpm-helper
Conflicts:	anonftp
Conflicts:	ncftpd
Conflicts:	proftpd
Conflicts:	vsftpd
Conflicts:	wu-ftpd

%description
Pure-FTPd is a fast, production-quality, standard-comformant FTP server,
based upon Troll-FTPd. Unlike other popular FTP servers, it has no known
security flaw, it is really trivial to set up and it is especially designed
for modern Linux and FreeBSD kernels (setfsuid, sendfile, capabilities) .
Features include PAM support, IPv6, chroot()ed home directories, virtual
domains, built-in LS, anti-warez system, bandwidth throttling, FXP, bounded
ports for passive downloads, UL/DL ratios, native LDAP and SQL support,
Apache log files and more.

%files
%doc FAQ THANKS README.Windows
%doc README AUTHORS HISTORY NEWS
%doc pure-ftpd.png
%doc pureftpd.schema README.RPM
%attr(0755,root,root) %{_initrddir}/pure-ftpd
%{_tmpfilesdir}/%{name}.conf

%config(noreplace) %{_sysconfdir}/%{name}/pure-ftpd.conf
%config(noreplace) %{_sysconfdir}/%{name}/pureftpd-ldap.conf
%config(noreplace) %{_sysconfdir}/%{name}/pureftpd-mysql.conf
%config(noreplace) %{_sysconfdir}/%{name}/pureftpd-pgsql.conf
%config(noreplace) %{_sysconfdir}/pam.d/pure-ftpd
%config(noreplace) %{_sysconfdir}/logrotate.d/pure-ftpd
%config(noreplace) %{_sysconfdir}/xinetd.d/pure-ftpd-xinetd
%config(noreplace) %{_sysconfdir}/avahi/services/%{name}.service

%{_bindir}/pure-pw
%{_bindir}/pure-pwconvert
%{_bindir}/pure-statsdecode
%{_sbindir}/pure-certd
%{_sbindir}/pure-ftpd
%{_sbindir}/pure-ftpwho
%{_sbindir}/pure-uploadscript
%{_sbindir}/pure-mrtginfo
%{_sbindir}/pure-quotacheck
%{_sbindir}/pure-authd

%attr(644,root,root)%{_mandir}/man8/*

%if %{rpm4}
%doc %{_datadir}/doc/pure-ftpd/README*
%doc %{_datadir}/doc/pure-ftpd/*.conf
%endif

%post
# ftpusers creation
if [ ! -f %{_sysconfdir}/ftpusers ]; then
	touch %{_sysconfdir}/ftpusers
fi

USERS="root bin daemon adm lp sync shutdown halt mail news uucp operator games nobody"
for i in $USERS ;do
    cat %{_sysconfdir}/ftpusers | grep -q "^$i$" || echo $i >> %{_sysconfdir}/ftpusers
done

%_post_service pure-ftpd

%pre
%_pre_useradd ftp /var/ftp /bin/false

%postun
%_postun_userdel ftp

%preun
%_preun_service pure-ftpd

#----------------------------------------------------------------------------

%package anonymous
Summary:	Anonymous support for pure-ftpd
Group:		System/Servers
Requires:	pure-ftpd

%description anonymous
This package provides anonymous support for pure-ftpd.

%files anonymous
%dir /var/ftp/pub/

#----------------------------------------------------------------------------

%package anon-upload
Summary:	Anonymous upload support for pure-ftpd
Group:		System/Servers
Requires:	pure-ftpd

%description anon-upload
This package provides anonymous upload support for pure-ftpd.

%files anon-upload
%defattr(777, root, root)
%dir /var/ftp/incoming/

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# nuke mac files
find -name "\._*" | xargs rm -f

# make README.RPM:

COMPILER="Compiler:               $(gcc -v 2>& 1|tail -1)"
HARDWARE="Hardware platform:      $(uname -m)"
LIBRARY="Library:                $(rpm -q glibc)"
OSVERSION="Linux Kernel:           $(uname -sr)"
PACKAGER="Packager:               %{packager}"
PKGRELEASE="ROSA release: $(cat /etc/release)"
RPMVERSION="RPM Version:            $(rpm -q rpm)"

cat <<EOF >>$RPM_BUILD_DIR/%{name}-%{version}/README.RPM
The pure-ftpd rpm packages were created in the following build environment:

$MDKRELEASE
$HARDWARE
$OSVERSION
$LIBRARY
$COMPILER
$RPMVERSION
$PACKAGER

EOF

cp %{SOURCE3} pure-ftpd-xinetd
cp %{SOURCE4} pure-ftpd.service
cp %{SOURCE6} pure-ftpd.pam

%build
%configure \
    --sysconfdir=%{_sysconfdir}/%{name} \
    --with-paranoidmsg \
    --without-capabilities \
    --with-pam \
    --with-ldap \
    --with-mysql \
    --with-pgsql \
    --with-puredb \
    --without-sendfile \
    --with-altlog \
    --with-cookie \
    --with-diraliases \
    --with-throttling \
    --with-ratios \
    --with-quotas \
    --with-ftpwho \
    --with-welcomemsg \
    --with-uploadscript \
    --with-peruserlimits \
    --with-virtualhosts \
    --with-virtualchroot \
    --with-extauth \
    --with-rfc2640 \
    --with-standalone \
    --with-tls

%make

%install
%makeinstall_std

install -d -m 755 %{buildroot}%{_mandir}/man8/
install -d -m 755 %{buildroot}%{_sbindir}
install -d -m 755 %{buildroot}%{_sysconfdir}/rc.d/init.d/
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -D -p -m 644 %{SOURCE7} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# Conf
install -m 644 pure-ftpd.conf %{buildroot}%{_sysconfdir}/%{name}
install -m 644 pureftpd-ldap.conf %{buildroot}%{_sysconfdir}/%{name}
install -m 644 pureftpd-mysql.conf %{buildroot}%{_sysconfdir}/%{name}
install -m 644 pureftpd-pgsql.conf %{buildroot}%{_sysconfdir}/%{name}

# Man
install -m 644 man/pure-ftpd.8 %{buildroot}%{_mandir}/man8/
install -m 644 man/pure-ftpwho.8 %{buildroot}%{_mandir}/man8/
install -m 644 man/pure-mrtginfo.8 %{buildroot}%{_mandir}/man8/
install -m 644 man/pure-uploadscript.8 %{buildroot}%{_mandir}/man8/
install -m 644 man/pure-pw.8 %{buildroot}%{_mandir}/man8/
install -m 644 man/pure-pwconvert.8 %{buildroot}%{_mandir}/man8/
install -m 644 man/pure-statsdecode.8 %{buildroot}%{_mandir}/man8/
install -m 644 man/pure-quotacheck.8 %{buildroot}%{_mandir}/man8/
install -m 644 man/pure-authd.8 %{buildroot}%{_mandir}/man8/

install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/pure-ftpd

# Pam 
install -d -m 755 %{buildroot}%{_sysconfdir}/pam.d/
install -m 0644 pure-ftpd.pam %{buildroot}%{_sysconfdir}/pam.d/%{name}

# Logrotate
install -d %{buildroot}%{_sysconfdir}/logrotate.d/
install -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

#anonymous ftp
mkdir -p %{buildroot}/var/ftp/pub/
mkdir -p %{buildroot}/var/ftp/incoming/

# xinetd support (tv)
mkdir -p %{buildroot}%{_sysconfdir}/xinetd.d
install -m0644 pure-ftpd-xinetd %{buildroot}%{_sysconfdir}/xinetd.d/pure-ftpd-xinetd

# avahi support (misc)
mkdir -p %{buildroot}%{_sysconfdir}/avahi/services/
install -m0644 pure-ftpd.service %{buildroot}%{_sysconfdir}/avahi/services/%{name}.service


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16004 |21mr|purpose-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 abstraction to provide and leverage actions of a specific kind
Name:		purpose
Version:	5.116.0
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kaccounts-devel
BuildRequires:	kf5config-devel = %{version}
BuildRequires:	kf5coreaddons-devel = %{version}
BuildRequires:	kf5declarative-devel = %{version}
BuildRequires:	kf5i18n-devel = %{version}
BuildRequires:	kf5kio-devel = %{version}
BuildRequires:	kf5kirigami2-devel = %{version}
BuildRequires:	kf5notifications-devel = %{version}
BuildRequires:	pkgconfig(libaccounts-glib)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
# Runtime libraries check in cmake
BuildRequires:	kf5declarative-qml
BuildRequires:	ubuntuonlineaccounts-qml
Requires:	kf5declarative-qml
Requires:	ubuntuonlineaccounts-qml
Conflicts:	kamoso < 2.0.2-7.20140902.5

%description
Purpose offers the possibility to create integrate services and actions on
any application without having to implement them specifically. Purpose will
offer them mechanisms to list the different alternatives to execute given the
requested action type and will facilitate components so that all the plugins
can receive all the information they need.

%files
%{_kde5_datadir}/qlogging-categories5/purpose.categories
%{_kde5_datadir}/qlogging-categories5/purpose.renamecategories
%{_kde5_datadir}/accounts/services/kde/google-youtube.service
%{_kde5_datadir}/accounts/services/kde/nextcloud-upload.service
%{_kde5_datadir}/purpose/barcodeplugin_config.qml
%{_kde5_datadir}/purpose/bluetoothplugin_config.qml
%{_kde5_datadir}/purpose/kdeconnectplugin_config.qml
%{_kde5_datadir}/purpose/nextcloudplugin_config.qml
%{_kde5_datadir}/purpose/phabricatorplugin_config.qml
%{_kde5_datadir}/purpose/reviewboardplugin_config.qml
%{_kde5_datadir}/purpose/saveasplugin_config.qml
%{_kde5_datadir}/purpose/youtubeplugin_config.qml
%{_kde5_iconsdir}/hicolor/*/actions/kipiplugin_youtube.png
%{_kde5_iconsdir}/hicolor/*/apps/phabricator-purpose.png
%{_kde5_iconsdir}/hicolor/*/apps/reviewboard-purpose.png
%{_kde5_libexecdir}/kf5/purposeprocess
%{_qt5_plugindir}/kf5/kfileitemaction/sharefileitemaction.so
%{_qt5_plugindir}/kf5/purpose/barcodeplugin.so
%{_qt5_plugindir}/kf5/purpose/bluetoothplugin.so
%{_qt5_plugindir}/kf5/purpose/emailplugin.so
%{_qt5_plugindir}/kf5/purpose/imgurplugin.so
%{_qt5_plugindir}/kf5/purpose/kdeconnectplugin.so
%{_qt5_plugindir}/kf5/purpose/kdeconnectsmsplugin.so
%{_qt5_plugindir}/kf5/purpose/ktpsendfileplugin.so
%{_qt5_plugindir}/kf5/purpose/nextcloudplugin.so
%{_qt5_plugindir}/kf5/purpose/pastebinplugin.so
%{_qt5_plugindir}/kf5/purpose/phabricatorplugin.so
%{_qt5_plugindir}/kf5/purpose/reviewboardplugin.so
%{_qt5_plugindir}/kf5/purpose/saveasplugin.so
%{_qt5_plugindir}/kf5/purpose/telegramplugin.so
%{_qt5_plugindir}/kf5/purpose/twitterplugin.so
%{_qt5_plugindir}/kf5/purpose/youtubeplugin.so

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 abstractions module translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 abstractions module translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define qmlkf5purpose %mklibname kf5purpose-qml

%package -n %{qmlkf5purpose}
Summary:	QML plugin for KDE Frameworks 5 abstractions module
Group:		System/Libraries
Provides:	kf5purpose-qml = %{EVRD}

%description -n %{qmlkf5purpose}
QML plugin for KDE Frameworks 5 abstractions module.

%files -n %{qmlkf5purpose}
%dir %{_kde5_qmldir}/org/kde/purpose/
%{_kde5_qmldir}/org/kde/purpose/*

#----------------------------------------------------------------------------

%define phhelpers_major 5
%define libphhelpers %mklibname phabricatorhelpers %{phhelpers_major}

%package -n %{libphhelpers}
Summary:	KDE Frameworks 5 abstractions shared library
Group:		System/Libraries

%description -n %{libphhelpers}
KDE Frameworks 5 abstractions shared library.

%files -n %{libphhelpers}
%{_kde5_libdir}/libPhabricatorHelpers.so.%{phhelpers_major}*

#----------------------------------------------------------------------------

%define rbhelpers_major 5
%define librbhelpers %mklibname reviewboardhelpers %{rbhelpers_major}

%package -n %{librbhelpers}
Summary:	KDE Frameworks 5 abstractions shared library
Group:		System/Libraries

%description -n %{librbhelpers}
KDE Frameworks 5 abstractions shared library.

%files -n %{librbhelpers}
%{_kde5_libdir}/libReviewboardHelpers.so.%{rbhelpers_major}*

#----------------------------------------------------------------------------

%define kf5purpose_major 5
%define libkf5purpose %mklibname kf5purpose %{kf5purpose_major}

%package -n %{libkf5purpose}
Summary:	KDE Frameworks 5 abstractions shared library
Group:		System/Libraries
Requires:	%{name}-i18n
Requires:	%{qmlkf5purpose}

%description -n %{libkf5purpose}
KDE Frameworks 5 abstractions shared library.

%files -n %{libkf5purpose}
%{_kde5_libdir}/libKF5Purpose.so.%{kf5purpose_major}*

#----------------------------------------------------------------------------

%define kf5purposewidgets_major 5
%define libkf5purposewidgets %mklibname kf5purposewidgets %{kf5purposewidgets_major}

%package -n %{libkf5purposewidgets}
Summary:	KDE Frameworks 5 abstractions shared library
Group:		System/Libraries

%description -n %{libkf5purposewidgets}
KDE Frameworks 5 abstractions shared library.

%files -n %{libkf5purposewidgets}
%{_kde5_libdir}/libKF5PurposeWidgets.so.%{kf5purposewidgets_major}*

#----------------------------------------------------------------------------

%define devkf5purpose %mklibname kf5purpose -d

%package -n %{devkf5purpose}
Summary:	Development files for KDE Frameworks 5 abstactions module
Group:		Development/KDE and Qt
Requires:	%{libkf5purpose} = %{EVRD}
Requires:	%{libkf5purposewidgets} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5purpose-devel = %{version}

%description -n %{devkf5purpose}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5purpose}
%{_kde5_includedir}/KF5/purpose
%{_kde5_includedir}/KF5/purposewidgets
%{_kde5_libdir}/cmake/KDEExperimentalPurpose
%{_kde5_libdir}/cmake/KF5Purpose
%{_kde5_libdir}/libKF5Purpose.so
%{_kde5_libdir}/libKF5PurposeWidgets.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export PATH=%{_qt5_bindir}:$PATH
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang libpurpose_quick libpurpose_widgets \
           purpose_bluetooth purpose_email purpose_kdeconnect purpose_kdeconnectsms purpose_nextcloud \
           purpose_phabricator purpose-fileitemaction purpose_barcode \
           purpose_imgur purpose_ktp-sendfile purpose_pastebin purpose_reviewboard purpose_saveas purpose_youtube \
           %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16005 |21mr|pv-1.6.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Monitor the progress of data through a pipe

Name:		pv
Version:	1.6.6
Release:	2
Group:		Development/Other
License:	Artistic
URL:		http://www.ivarch.com/programs/pv.shtml
Source0:	http://www.ivarch.com/programs/sources/%{name}-%{version}.tar.bz2
BuildRequires:	gettext-devel
BuildRequires:	gettext
#BuildRequires:	tetex
BuildRequires:	texinfo

%description
PV ("Pipe Viewer") is a tool for monitoring the progress of data
through a pipeline.  It can be inserted into any normal pipeline
between two processes to give a visual indication of how quickly
data is passing through, how long it has taken, how near to
completion it is, and an estimate of how long it will be until
completion.

%prep
%setup -q
# Sometimes fails in ABF
rm -f tests/017-numeric-bytes

%build
%configure
%make

%check
%make test

%install
%makeinstall_std

%find_lang %{name}

# note; the nls files should probably be added also somehow in the future...
%files -f %{name}.lang
%doc README
%{_bindir}/pv
%{_mandir}/man1/pv.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16006 |21mr|pxe-1.4.2-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name    pxe 
%define version 1.4.2

%define tftpbase /var/lib/tftpboot

Name:           %{name}
Summary:        A Linux PXE (Preboot eXecution Environment) package
Group:          System/Servers
Version:        %{version}
Release:        26
License:        GPL
URL: 		http://www.kano.org.uk/projects/pxe
Source:		http://www.kano.org.uk/projects/pxe/%{name}-%{version}.tar.gz
Source1: 	pxe
Source2: 	pxe.conf
Source3:	dhcpd.conf.pxe
Source5:	pxe-linux.tar.bz2
Source6:	grubNBI.tar.bz2
Source7:	pxedoc.tar.bz2
#Source8:	default
#Source9:	messages
Source10:	elilo.efi
Source11:	elilo.txt
Source12:	elilovars.txt
Source13:	elilo.conf
#Source14:	help.txt
Patch0:		pxe-1.4.patch
Patch1:		pxe-1.0-cmdlinearg.patch
Patch2:	 	pxe-linux-config.patch
Patch3:		pxe-autoconf.patch
Patch4:		pxe-mtftp.patch
Patch5:		pxe-1.4.2-arch_id.patch
Patch7:		pxe-segfault_on_exit.patch
%ifarch %{ix86}
BuildRequires:	dev86-devel
%endif
Requires:	chkconfig
Requires:	dhcp-server
Requires:	coreutils
Requires:	grep
Requires:	tftp-server
%ifnarch aarch64
#syslinux not available on aarch64
Requires:	pxelinux
%endif
Provides:	pxeserver
Requires(post): rpm-helper
Requires(preun): rpm-helper

%description
The pxe package contains the PXE (Preboot eXecution Environment)
server and code needed for Linux to boot from a boot disk image on a
Linux PXE server.

%post
%_post_service pxe
mkdir -p %{tftpbase}/X86PC/linux

%preun
%_preun_service pxe

%files
%defattr(-,root,root)
%doc README LICENCE INSTALL Changes pxedoc/*
%attr(755,root,root) %{_sbindir}/pxe
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/pxe.conf
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/dhcpd.conf.pxe
#%attr(644,root,root) %config(noreplace) %{tftpbase}/X86PC/linux//pxelinux.cfg/default
#%attr(644,root,root) %config(noreplace) %{tftpbase}/X86PC/linux//messages
#%attr(644,root,root) %config(noreplace) %{tftpbase}/X86PC/linux/help.txt
%attr(755,root,root) %{_initrddir}/pxe
%{tftpbase}/IA64PC/linux

#------------------------------------------------------------------------------
%package	bootstraps
Summary:	A compilation of Linux PXE (Preboot eXecution Environment) Bootstraps
Group:		System/Servers
%ifnarch aarch64
#syslinux not available on aarch64
Requires:	syslinux >= 1.67
%endif

%description bootstraps
This package contains a compiltation of PXE bootstraps.

%files bootstraps
%defattr(-,root,root)
%doc grubNBI/*

#------------------------------------------------------------------------------
%prep
rm -rf ${RPM_BUILD_ROOT}
%setup -q -n %{name}-%{version}
%setup -q -T -D -a 5
%setup -q -T -D -a 6
%setup -q -T -D -a 7
%patch0 -p1
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
%patch5 -p1 -b .arch_id
%patch7 -p0

%build
%configure
%make

%install
myname=`id -un`
mygroup=`id -gn`
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_sysconfdir}
mkdir -p %{buildroot}%{_sbindir}
#mkdir -p %{buildroot}%{tftpbase}/X86PC/linux/pxelinux.cfg
mkdir -p %{buildroot}%{tftpbase}/IA64PC/linux/

install -m755 %{_builddir}/%{name}-%{version}/pxe %{buildroot}%{_sbindir}
install -m755 %{SOURCE1} %{buildroot}%{_initrddir}/pxe
install -m755 %{SOURCE2} %{buildroot}%{_sysconfdir}/pxe.conf
install -m755 %{SOURCE3} %{buildroot}%{_sysconfdir}/dhcpd.conf.pxe
#install -m644 %{SOURCE8} %{buildroot}%{tftpbase}/X86PC/linux/pxelinux.cfg/default
#install -m644 %{SOURCE9} %{buildroot}%{tftpbase}/X86PC/linux/messages
install -m644 %{SOURCE10} %{buildroot}%{tftpbase}/IA64PC/linux/linux.0
install -m644 %{SOURCE11} %{buildroot}%{tftpbase}/IA64PC/linux/
install -m644 %{SOURCE12} %{buildroot}%{tftpbase}/IA64PC/linux/
install -m644 %{SOURCE13} %{buildroot}%{tftpbase}/IA64PC/linux/linux.1
#install -m644 %{SOURCE14} %{buildroot}%{tftpbase}/X86PC/linux/help.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16007 |21mr|pxlib-0.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname px %{major}
%define devname %mklibname px -d

Summary:	A library to read Paradox DB files
Name:		pxlib
Version:	0.6.8
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://pxlib.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/pxlib/%{name}-%{version}.tar.gz
BuildRequires:	intltool
BuildRequires:	docbook-to-man
BuildRequires:	docbook-utils
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(glib-2.0)

%description
pxlib is a simply and still small C library to read Paradox DB files. It
supports all versions starting from 3.0. It currently has a very limited set of
functions like to open a DB file, read its header and read every single record.

%files -f %{name}.lang
%doc README AUTHORS ChangeLog

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library to read Paradox DB files
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
pxlib is a simply and still small C library to read Paradox DB files. It
supports all versions starting from 3.0. It currently has a very limited set of
functions like to open a DB file, read its header and read every single record.

%files -n %{libname}
%{_libdir}/libpx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A library to read Paradox DB files (development files)
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libpx-devel = %{EVRD}

%description -n %{devname}
pxlib is a simply and still small C library to read Paradox DB files. It
supports all versions starting from 3.0. It currently has a very limited set of
functions like to open a DB file, read its header and read every single record.

%files -n %{devname}
%{_libdir}/libpx.so
%{_libdir}/pkgconfig/pxlib.pc
%{_includedir}/*.h
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CPPFLAGS=`pkg-config --cflags glib-2.0`
%configure \
	--disable-static \
	--with-gsf

%make LIBS=-lm

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16008 |21mr|py3c-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Guide and compatibility macros for porting extensions to Python 3
Name:		py3c
Version:	1.4
Release:	1
License:	MIT
Group:		Development/Python
URL:		http://py3c.readthedocs.io/
Source0:	https://github.com/encukou/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
py3c helps you port C extensions to Python 3.

It provides a detailed guide, and a set of macros to make porting easy
and reduce boilerplate.

%package	devel
License:	MIT
Summary:	Header files for py3c
Requires:	python3-devel

%description devel
py3c-devel is only required for building software that uses py3c.
Because py3c is a header-only library, there is no matching run-time package.

%prep
%setup -q

%build
%make py3c.pc includedir=%{_includedir}

%check
export CFLAGS="%{optflags}"
%make test-python3

%install
%make_install prefix=%{_prefix}

%files devel
%license LICENSE.MIT
%doc README.rst
%{_includedir}/py3c.h
%{_includedir}/py3c/
%{_datadir}/pkgconfig/py3c.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16009 |21mr|pyatspi-2.45.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Python bindings for at-spi
Name:		pyatspi
Version:	2.45.1
Release:	2
License:	LGPLv2+ and GPLv2+
Group:		Development/Python
Url:		https://download.gnome.org/sources/pyatspi
Source0:	https://download.gnome.org/sources/pyatspi/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(pygobject-3.0)
Requires:	at-spi2-core
Requires:	python2-dbus
Provides:	python-pyatspi = %{EVRD}
BuildArch:	noarch

%description
at-spi allows assistive technologies to access GTK-based
applications. Essentially it exposes the internals of applications for
automation, so tools such as screen readers, magnifiers, or even
scripting interfaces can query and interact with GUI controls.

This version of at-spi is a major break from previous versions.
It has been completely rewritten to use D-Bus rather than
ORBIT / CORBA for its transport protocol.

This package includes a python client library for at-spi.

%files
%doc AUTHORS README
%doc examples/magFocusTracker.py
%license COPYING COPYING.GPL 
%{python2_sitelib}/pyatspi

#----------------------------------------------------------------------------

%package -n python3-pyatspi
Summary:	Python3 bindings for at-spi
Group:		Development/Python
Requires:	at-spi2-core
Requires:	python3-gi

%description -n python3-pyatspi
at-spi allows assistive technologies to access GTK-based
applications. Essentially it exposes the internals of applications for
automation, so tools such as screen readers, magnifiers, or even
scripting interfaces can query and interact with GUI controls.

This package includes a python3 client library for at-spi.

%files -n python3-pyatspi
%doc COPYING COPYING.GPL AUTHORS README
%{python3_sitelib}/pyatspi/

#----------------------------------------------------------------------------

%prep
%setup -q

rm -rf /tmp/py3
cp -a . /tmp/py3/

%build
%configure \
	--build=%{_build}	\
	--with-python=python2
%make

# Build the python3 module
pushd /tmp/py3
%configure --with-python=python3
%make
popd

%install
%makeinstall_std

pushd /tmp/py3
%makeinstall_std
popd

rm -f %{buildroot}%{_bindir}/magFocusTracker.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16010 |21mr|pybind11-2.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# While the headers are architecture independent, the package must be
# built separately on all architectures so that the tests are run
# properly. See also
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries
%global debug_package %{nil}

# Whether to run the tests, enabled by default
%bcond_without tests

Name:    pybind11
Version: 2.9.0
Release: 1
Group:   Development/Python
Summary: Seamless operability between C++11 and Python
License: BSD
URL:	 https://github.com/pybind/pybind11
Source0: https://github.com/pybind/pybind11/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

# Patch out header path
Patch1:  pybind11-2.9.0-hpath.patch

# Needed to build the python libraries
BuildRequires: python3-devel
BuildRequires: python3-setuptools
# These are only needed for the checks
%if %{with tests}
BuildRequires: python3-pytest
BuildRequires: python3-numpy
BuildRequires: python3-scipy
%endif

BuildRequires: eigen3-devel
BuildRequires: cmake

%global base_description \
pybind11 is a lightweight header-only library that exposes C++ types \
in Python and vice versa, mainly to create Python bindings of existing \
C++ code.

%description
%{base_description}

#------------------------------------------------------------

%package devel
Summary:	Development headers for pybind11
Group:		Development/Other
# https://fedoraproject.org/wiki/Packaging:Guidelines#Packaging_Header_Only_Libraries
Provides:	%{name}-static = %{EVRD}
# For dir ownership
Requires:	cmake

%description devel
%{base_description}

This package contains the development headers for pybind11.

%files devel
%license LICENSE
%doc README*
%{_bindir}/pybind11-config
%{_includedir}/pybind11/
%{_datadir}/cmake/pybind11/

#------------------------------------------------------------

%package -n python3-%{name}
Summary:	%{summary}
Group:		Development/Python
Requires:	%{name}-devel = %{EVRD}

%description -n python3-%{name}
%{base_description}

This package contains the Python 3 files.

%files -n python3-%{name}
%{python3_sitearch}/%{name}/
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------
%prep
%autosetup -p1

%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DPYTHON_EXECUTABLE=%{__python3} \
	-DPYBIND11_INSTALL=TRUE \
	-DUSE_PYTHON_INCLUDE_DIR=FALSE %{!?with_tests:-DPYBIND11_TEST=OFF}

%make_build

cd ..
%py3_build

%if %{with tests}
%check
make -C build check %{?_smp_mflags}
%endif

%install
# Doesn't matter if both installs run
%make_install -C build
# Force install to arch-ful directories instead.
PYBIND11_USE_CMAKE=true %py3_install "--install-purelib" "%{python3_sitearch}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16011 |21mr|pyhoca-cli-0.6.1.3-20211125
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev	22b8402
%define gitdate 20211125

Name:           pyhoca-cli
Version:	0.6.1.3
Release:	20211125
Summary:        PyHoca-CLI is a client implementation for X2Go
License:        GPLv3
Group:          Development/Python
Url:            git://code.x2go.org/pyhoca-cli
Source0:        %{name}-%{gitdate}-git%{gitrev}.tar.gz
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(python-xlib)
BuildRequires:  python3egg(gevent)
BuildRequires:  python3egg(greenlet)
BuildRequires:  python3egg(paramiko)

BuildArch:      noarch

# Run command from next line to update source and spec
# bash <(cat ./pyhoca-cli.spec |sed -e '/^###/!d' -e 's/^###[[:space:]]*//')

### #!/bin/bash
### git clone git://code.x2go.org/pyhoca-cli
### pushd ./pyhoca-cli
### hash="$(git log -1 --format='%h')" 
### date="$(git log -1 --format='%cd' --date=short | tr -d -)"
### version="$(./setup.py --version)"
### rm -rf .git
### tar czf ../pyhoca-cli-${date}-git${hash}.tar.gz ../pyhoca-cli
### popd
### sed -i '/^.define/s/gitdate.*/gitdate '"$date"'/' ./pyhoca-cli.spec
### sed -i '/^.define/s/gitrev.*/gitrev	'"$hash"'/' ./pyhoca-cli.spec
### sed -i 's/^Release.*/Release:	'"$date"'/' ./pyhoca-cli.spec
### sed -i 's/^Version.*/Version:	'"$version"'/' ./pyhoca-cli.spec
### rm -rf pyhoca-cli

%description
PyHoca-CLI is a client implementation for X2Go using the project's Python API
(Python module). PyHoca-CLI can be operated completely from the command line
and the goal is to reflect the full functionality spectrum of Python X2Go.

#============================================================================
%package -n python3-%{name}
Summary:        PyHoca-CLI is a client implementation for X2Go
Group:          Development/Python
Provides:	pyhoca-cli = %{EVRD}
Requires:	python3-x2go
Requires:	python3-setproctitle

%description -n python3-%{name}
Python X2Go provides a client-side X2go API for the Python programming
language.
Python X2go is mostly interesting for developers who want to incorporate X2go
client support into their own Python applications.
Python X2Go forms the core (heart) of the X2Go client-side applications:
PyHoca-GUI and PyHoca-CLI.

%files -n python3-%{name}
%{python3_sitelib}/*
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*
#===========================================================================
%prep
%setup -qn %{name}

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}/%{_bindir}/
cp -p %{name} %{buildroot}/%{_bindir}/
mkdir -p %{buildroot}/%{_mandir}/
cp -rp man/* %{buildroot}/%{_mandir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16012 |21mr|pyid3lib-0.5.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python module for editing ID3v2 tags of MP3 audio files
Name:		pyid3lib
Version:    0.5.1
Release:    20
License:	LGPL
Group:		Sound
URL:		http://pyid3lib.sourceforge.net/
Source:		http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.bz2
Patch0: pyid3lib-0.5.1-64bit.patch
Patch1: pyid3lib-0.5.1-gcc-4.4.patch
BuildRequires:	libid3-devel
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(python2)

%description
%{name} is a Python module for editing ID3v2 tags of MP3 audio files.

%prep
%setup -q
%patch0 -p1
%patch1 -p0
chmod -R go+rX .

%build
%py2_build

%install
%py2_install

%clean

%files
%doc COPYING doc.html README
%python2_sitearch/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16013 |21mr|pylint-2.10.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pylint

Summary: 	Extensible Python source code checker
Name:		pylint
Version:	2.10.2
Release:	2
Url:		http://www.logilab.org/project/pylint
Source0:	https://pypi.io/packages/source/p/pylint/pylint-%{version}.tar.gz
License:	GPLv2+
Group:		Development/Python
BuildRequires:	python3-singledispatch
BuildRequires:	python3dist(astroid)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	python3dist(logilab-common)
#Requires:	python3dist(logilab-astng)
Requires:	tkinter3
Provides:	python3-pylint = %{EVRD}
BuildArch:	noarch

%description
PyLint is an extensible tool for checking whether Python
code satisfies a specified coding standard. It is similar to PyChecker
insofar that it can perform nearly all tests supported by
PyChecker. Pylint, however, can check many other things such as
line-code length, variable name adherence to a coding standard,
whether interfaces defined in code are actually implemented, and much
more. One can easily extend PyLint with plugins.

%files
%{_bindir}/pylint
%{_bindir}/epylint
%{_bindir}/pyreverse
%{_bindir}/symilar
%{python3_sitelib}/pylint*

#----------------------------------------------------------------

%prep
%autosetup -n %{name}-%{version} -p1

%build
%py3_build

%install
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/pylint/test

chmod +x %{buildroot}%{python3_sitelib}/pylint/__main__.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16014 |21mr|pynest2d-4.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CPython bindings for LibNest2D
Name:		pynest2d
Version:	4.13.2
Release:	1
License:	LGPLv3+
Group:		System/Libraries
Url:		https://github.com/Ultimaker/pynest2d
Source0:	https://github.com/Ultimaker/pynest2d/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Downstream patch: add PyQt5 namespace
Patch0:         pynest2d-PyQt5.sip.patch
# Retrieve required flags from Libnest2D target
# https://github.com/Ultimaker/pynest2d/pull/3
Patch1:         Retrieve-required-flags-from-Libnest2D-target.patch
BuildRequires:  cmake
BuildRequires:	python3-sip4-qt5
BuildRequires:	python3-sip4
BuildRequires:	cmake(Libnest2D)

%description
CPython bindings for LibNest2D, a library
to pack 2D polygons into a small space.

#------------------------------------------------------------------

%package -n python3-%{name}
Summary:        CPython bindings for LibNest2D
Group:		Development/Python

%description -n python3-%{name}
CPython bindings for LibNest2D, a library
to pack 2D polygons into a small space.

%files -n python3-%{name}
%license LICENSE
%doc README.md
%{python3_sitearch}/pynest2d.so

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16015 |21mr|pyproject-rpm-macros-1.0.0_rc2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with tests

Name:		pyproject-rpm-macros
# Keep the version at zero and increment only release
Version:	1.0.0~rc2
Release:	1
Summary:	RPM macros for PEP 517 Python packages
Group:		Development/Python
License:	MIT
URL:		https://src.fedoraproject.org/rpms/pyproject-rpm-macros

# Macro files
Source001:	macros.pyproject

# Implementation files
Source101:	pyproject_buildrequires.py
Source102:	pyproject_save_files.py
Source103:	pyproject_convert.py
Source104:	pyproject_preprocess_record.py
Source105:	pyproject_construct_toxenv.py
Source106:	pyproject_requirements_txt.py

# Tests
Source201:	test_pyproject_buildrequires.py
Source202:	test_pyproject_save_files.py
Source203:	test_pyproject_requirements_txt.py
Source204:	compare_mandata.py

# Test data
Source301:	pyproject_buildrequires_testcases.yaml
Source302:	pyproject_save_files_test_data.yaml
Source303:	test_RECORD

# Metadata
Source901:	README.md
Source902:	LICENSE

BuildArch:	noarch

%if %{with tests}
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(pyyaml)
BuildRequires:	python3dist(packaging)
BuildRequires:	python3dist(pip)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(toml)
BuildRequires:	python3dist(tox-current-env) >= 0.0.6
BuildRequires:	python3dist(wheel)
%endif

# We build on top of those:
#Requires:	python-rpm-macros
#Requires:	python-srpm-macros
#Requires:	python3-rpm-macros

Requires:	python3-toml

# We use the following tools outside of coreutils
Requires:	/usr/bin/find
Requires:	/usr/bin/sed

%description
These macros allow projects that follow the Python packaging specifications
to be packaged as RPMs.

They work for:

* traditional Setuptools-based projects that use the setup.py file,
* newer Setuptools-based projects that have a setup.cfg file,
* general Python projects that use the PEP 517 pyproject.toml file
  (which allows using any build system, such as setuptools, flit or poetry).

These macros replace py3_build and py3_install,
which only work with setup.py.

%files
%doc README.md
%license LICENSE
%{_rpmmacrodir}/macros.pyproject
%{_rpmconfigdir}/redhat/pyproject_buildrequires.py
%{_rpmconfigdir}/redhat/pyproject_convert.py
%{_rpmconfigdir}/redhat/pyproject_save_files.py
%{_rpmconfigdir}/redhat/pyproject_preprocess_record.py
%{_rpmconfigdir}/redhat/pyproject_construct_toxenv.py
%{_rpmconfigdir}/redhat/pyproject_requirements_txt.py
%{_rpmconfigdir}/redhat/__pycache__

#------------------------------------------------------------------
%prep
# Not strictly necessary but allows working on file names instead
# of source numbers in install section
%setup -c -T
cp -p %{sources} .

%build
# nothing to do, sources are not buildable

%install
mkdir -p %{buildroot}%{_rpmmacrodir}
mkdir -p %{buildroot}%{_rpmconfigdir}/redhat
install -m 644 macros.pyproject %{buildroot}%{_rpmmacrodir}/
install -m 644 pyproject_buildrequires.py %{buildroot}%{_rpmconfigdir}/redhat/
install -m 644 pyproject_convert.py %{buildroot}%{_rpmconfigdir}/redhat/
install -m 644 pyproject_save_files.py %{buildroot}%{_rpmconfigdir}/redhat/
install -m 644 pyproject_preprocess_record.py %{buildroot}%{_rpmconfigdir}/redhat/
install -m 644 pyproject_construct_toxenv.py %{buildroot}%{_rpmconfigdir}/redhat/
install -m 644 pyproject_requirements_txt.py %{buildroot}%{_rpmconfigdir}/redhat/

%if %{with tests}
%check
export HOSTNAME="rpmbuild"  # to speedup tox in network-less mock, see rhbz#1856356
%{python3} -m pytest -vv --doctest-modules
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16016 |21mr|pyproject-rpm-macros-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# WARNING! not forgot implement changes from this commit:
# https://abf.io/import/pyproject-rpm-macros/commit/4ade91e2a17917fb1bebf10d6f3d45749206d62f
# https://abf.io/import/pyproject-rpm-macros/commit/d262949e2f85e28d9ad513b55433ad025905ca01
# and set %python3_version_nodots in macros.pyproject

%bcond_with tests

Name:		pyproject-rpm-macros
Version:	1.3.2
Release:	1
Summary:	RPM macros for PEP 517 Python packages
Group:		Development/Python
License:	MIT
URL:		https://src.fedoraproject.org/rpms/pyproject-rpm-macros

# Macro files
Source001:	macros.pyproject

# Implementation files
Source101:	pyproject_buildrequires.py
Source102:	pyproject_save_files.py
Source103:	pyproject_convert.py
Source104:	pyproject_preprocess_record.py
Source105:	pyproject_construct_toxenv.py
Source106:	pyproject_requirements_txt.py
Source107:	pyproject_wheel.py

# Tests
Source201:	test_pyproject_buildrequires.py
Source202:	test_pyproject_save_files.py
Source203:	test_pyproject_requirements_txt.py
Source204:	compare_mandata.py

# Test data
Source301:	pyproject_buildrequires_testcases.yaml
Source302:	pyproject_save_files_test_data.yaml
Source303:	test_RECORD

# Metadata
Source901:	README.md
Source902:	LICENSE

BuildArch:	noarch

%if %{with tests}
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(pyyaml)
BuildRequires:	python3dist(packaging)
BuildRequires:	python3dist(pip)
BuildRequires:	python3dist(setuptools)
BuildRequires:	(python3dist(toml) if python3-devel < 3.11)
BuildRequires:	python3dist(tox-current-env) >= 0.0.6
BuildRequires:	python3dist(wheel)
%endif

# We build on top of those:
#Requires:	python-rpm-macros
#Requires:	python-srpm-macros
#Requires:	python3-rpm-macros

Requires:	python3-toml

# We use the following tools outside of coreutils
Requires:	/usr/bin/find
Requires:	/usr/bin/sed

%description
These macros allow projects that follow the Python packaging specifications
to be packaged as RPMs.

They work for:

* traditional Setuptools-based projects that use the setup.py file,
* newer Setuptools-based projects that have a setup.cfg file,
* general Python projects that use the PEP 517 pyproject.toml file
  (which allows using any build system, such as setuptools, flit or poetry).

These macros replace py3_build and py3_install,
which only work with setup.py.

%files
%doc README.md
%license LICENSE
%{_rpmmacrodir}/macros.pyproject
%{_rpmconfigdir}/redhat/pyproject_buildrequires.py
%{_rpmconfigdir}/redhat/pyproject_convert.py
%{_rpmconfigdir}/redhat/pyproject_save_files.py
%{_rpmconfigdir}/redhat/pyproject_preprocess_record.py
%{_rpmconfigdir}/redhat/pyproject_construct_toxenv.py
%{_rpmconfigdir}/redhat/pyproject_requirements_txt.py
%{_rpmconfigdir}/redhat/pyproject_wheel.py
%{_rpmconfigdir}/redhat/__pycache__

#------------------------------------------------------------------
%prep
# Not strictly necessary but allows working on file names instead
# of source numbers in install section
%setup -c -T
cp -p %{sources} .

%build
# nothing to do, sources are not buildable

%install
mkdir -p %{buildroot}%{_rpmmacrodir}
mkdir -p %{buildroot}%{_rpmconfigdir}/redhat
install -pm 644 macros.pyproject %{buildroot}%{_rpmmacrodir}/
install -pm 644 pyproject_buildrequires.py %{buildroot}%{_rpmconfigdir}/redhat/
install -pm 644 pyproject_convert.py %{buildroot}%{_rpmconfigdir}/redhat/
install -pm 644 pyproject_save_files.py %{buildroot}%{_rpmconfigdir}/redhat/
install -pm 644 pyproject_preprocess_record.py %{buildroot}%{_rpmconfigdir}/redhat/
install -pm 644 pyproject_construct_toxenv.py %{buildroot}%{_rpmconfigdir}/redhat/
install -pm 644 pyproject_requirements_txt.py %{buildroot}%{_rpmconfigdir}/redhat/
install -pm 644 pyproject_wheel.py %{buildroot}%{_rpmconfigdir}/redhat/

%if %{with tests}
%check
export HOSTNAME="rpmbuild"  # to speedup tox in network-less mock, see rhbz#1856356
%{python3} -m pytest -vv --doctest-modules

# brp-compress is provided as an argument to get the right directory macro expansion
%{python3} compare_mandata.py -f %{_rpmconfigdir}/brp-compress
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16017 |21mr|pyside-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

#%%define qtver 4.8
%define pyver python2.7

Summary:	The PySide project provides LGPL-licensed Python bindings for the Qt
Name:		pyside
Version:	1.2.4
Release:	1
License:	LGPLv2+
Group:		Development/KDE and Qt
Url:		http://www.pyside.org
Source0:	https://pypi.io/packages/source/P/PySide/PySide-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
#Patch0:		%{name}-1.2.2-drop-QGtkStyle.patch
BuildRequires:	cmake
BuildRequires:	graphviz
BuildRequires:	python3egg(sphinx)
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(shiboken) >= 1.2.0
Requires:	pyside-phonon
Requires:	pyside-core
Requires:	pyside-declarative
Requires:	pyside-gui
Requires:	pyside-help
Requires:	pyside-multimedia
Requires:	pyside-network
Requires:	pyside-opengl
Requires:	pyside-script
Requires:	pyside-scripttools
Requires:	pyside-sql
Requires:	pyside-test
Requires:	pyside-xmlpatterns
Requires:	pyside-xml
Requires:	pyside-uitools
Requires:	pyside-svg
Requires:	pyside-webkit

%description
The PySide project provides LGPL-licensed Python bindings for the Qt
cross-platform application and UI framework. PySide Qt bindings allow both free
open source and proprietary software development and ultimately aim to support
all of the platforms as Qt itself.

%files

#------------------------------------------------------------------------------

%package phonon
Summary:	PySide phonon module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description phonon
PySide phonon module.

%files phonon
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/phonon.so
%{_datadir}/PySide/typesystems/typesystem_phonon.*

#------------------------------------------------------------------------------

%package core
Summary:	PySide core module
Group:		Development/KDE and Qt

%description core
PySide core module.

%files core
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtCore.so
%{python2_sitearch}/PySide/__init__.py*
%{python2_sitearch}/PySide/_utils.py*
%{_datadir}/PySide/typesystems/typesystem_core*
%{_datadir}/PySide/typesystems/typesystem_templates.*

#------------------------------------------------------------------------------

%package declarative
Summary:	PySide declarative module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description declarative
PySide declarative module.

%files declarative
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtDeclarative.so
%{_datadir}/PySide/typesystems/typesystem_declarative.*

#------------------------------------------------------------------------------

%package gui
Summary:	PySide gui module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description gui
PySide gui module.

%files gui
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtGui.so
%{_datadir}/PySide/typesystems/typesystem_gui*

#------------------------------------------------------------------------------

%package help
Summary:	PySide help module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description help
PySide help module.

%files help
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtHelp.so
%{_datadir}/PySide/typesystems/typesystem_help.*

#------------------------------------------------------------------------------

%package multimedia
Summary:	PySide multimedia module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description multimedia
PySide multimedia module.

%files multimedia
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtMultimedia.so
%{_datadir}/PySide/typesystems/typesystem_multimedia*

#------------------------------------------------------------------------------

%package network
Summary:	PySide network module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description network
PySide network module.

%files network
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtNetwork.so
%{_datadir}/PySide/typesystems/typesystem_network.*

#------------------------------------------------------------------------------

%package opengl
Summary:	PySide opengl module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description opengl
PySide opengl module.

%files opengl
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtOpenGL.so
%{_datadir}/PySide/typesystems/typesystem_opengl*

#------------------------------------------------------------------------------

%package script
Summary:	PySide script module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description script
PySide script module.

%files script
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtScript.so
%{_datadir}/PySide/typesystems/typesystem_script.*

#------------------------------------------------------------------------------

%package scripttools
Summary:	PySide scripttool module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description scripttools
PySide scripttool module.

%files scripttools
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtScriptTools.so
%{_datadir}/PySide/typesystems/typesystem_scripttools.*

#------------------------------------------------------------------------------

%package sql
Summary:	PySide sql module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description sql
PySide sql module.

%files sql
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtSql.so
%{_datadir}/PySide/typesystems/typesystem_sql.*

#------------------------------------------------------------------------------

%package svg
Summary:	PySide svg module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description svg
PySide svg module.

%files svg
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtSvg.so
%{_datadir}/PySide/typesystems/typesystem_svg.*

#------------------------------------------------------------------------------

%package test
Summary:	PySide test module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description test
PySide test module.

%files test
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtTest.so
%{_datadir}/PySide/typesystems/typesystem_test.*

#------------------------------------------------------------------------------

%package uitools
Summary:	PySide uitools module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description uitools
PySide uitools module.

%files uitools
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtUiTools.so
%{_datadir}/PySide/typesystems/typesystem_uitools.*

#------------------------------------------------------------------------------

%package webkit
Summary:	PySide webkit module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description webkit
PySide webkit module.

%files webkit
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtWebKit.so
%{_datadir}/PySide/typesystems/typesystem_webkit*

#------------------------------------------------------------------------------

%package xmlpatterns
Summary:	PySide xmlpatterns module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description xmlpatterns
PySide xmlpatterns module.

%files xmlpatterns
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtXmlPatterns.so
%{_datadir}/PySide/typesystems/typesystem_xmlpatterns*

#------------------------------------------------------------------------------

%package xml
Summary:	PySide xml module
Group:		Development/KDE and Qt
Requires:	pyside-core = %{version}

%description xml
PySide xml module.

%files xml
%doc sources/pyside/COPYING
%{python2_sitearch}/PySide/QtXml.so
%{_datadir}/PySide/typesystems/typesystem_xml.*

#------------------------------------------------------------------------------

%define major 1
%define libname %mklibname pyside %{pyver} %{major}

%package -n %{libname}
Summary:	PySide core library
Group:		System/Libraries
Conflicts:	%{_lib}pyside1 < 1.2.2-3
Obsoletes:	%{_lib}pyside1 < 1.2.2-3

%description -n %{libname}
PySide core library.

%files -n %{libname}
%doc sources/pyside/COPYING
%{_libdir}/libpyside-%{pyver}.so.%{major}*

#------------------------------------------------------------------------------

%package devel
Summary:	PySide development files
Group:		Development/KDE and Qt
Requires:	%{name} = %{version}
Requires:	%{libname} = %{version}

%description devel
PySide development files.

%files devel
%doc sources/pyside/COPYING
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/*

#------------------------------------------------------------------------------

%prep
%setup -q -n PySide-%{version}
cd sources/pyside
%apply_patches

%build
cd sources/pyside
sed 's/-Wno-strict-aliasing/-fno-strict-aliasing/' -i CMakeLists.txt
%cmake \
	-DQT_SRC_DIR=%{buildroot}%{qt4dir} \
	-DQT_PHONON_INCLUDE_DIR=%{_includedir}/phonon \
	-DPYTHON_BASENAME=%{pyver}
%make

%install
cd sources/pyside
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16018 |21mr|pysnmp-4.4.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pysnmp
Version:	4.4.12
Release:	1
Summary:	An SNMP engine written in Python
Group:		Development/Python
License:	BSD
URL:		http://pysnmp.sourceforge.net/
Source0:	https://github.com/etingof/pysnmp/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
This is a Python implementation of SNMP v.1/v.2c engine. It's
general functionality is to assemble/disassemble SNMP messages
from/into given SNMP Object IDs along with associated values.
PySNMP also provides a few transport methods specific to TCP/IP
networking.

#----------------------------------------------------------------

%package -n python3-%{name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Requires:	net-snmp

%description -n python3-%{name}
This is a Python implementation of SNMP v.1/v.2c engine. It's
general functionality is to assemble/disassemble SNMP messages
from/into given SNMP Object IDs along with associated values.
PySNMP also provides a few transport methods specific to TCP/IP
networking.

%files -n python3-%{name}
%doc CHANGES.txt README.md THANKS.txt TODO.txt examples/ docs/
%license LICENSE.rst
%{python3_sitelib}/%{name}/
%{python3_sitelib}/%{name}*.egg-info

#----------------------------------------------------------------

%prep
%autosetup -n %{name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16019 |21mr|pysol-4.82-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pssver	3.01

Summary:	Provides several solitaire card games
Name:		pysol
Version:        4.82
Release:        22
License:	GPL
Group:		Games/Cards
URL:		http://www.oberhumer.com/opensource/pysol/
Source0:	%{name}-%{version}.tar.bz2
Source1: 	http://www.oberhumer.com/opensource/pysol/download/pysol-sound-server-%{pssver}.tar.bz2
Source2:	%{name}-%{version}-src.tar.bz2
#gw use the pysol.py from the source release instead of the bytecode
Patch0:		pysol-4.81-srcrelease.patch
Patch1:		pysol-4.82-sound.patch
Patch2:		pysol-4.82-tk-geometry-fix.patch
Patch3:		fix_print.patch
Requires:	tkinter >= 1.5.2
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	smpeg-devel

%description
PySol has several solitaire card games, written in 100%% pure
Python. It has many features: unlimited undo and redo, load & save
games, player statistics, hint system, game plug-ins, and more!
Contains: klondike, freecel, spider, golf, etc.

%prep
%setup -q -a 1 -a 2
%patch0 -p1
%patch1
%patch2

cp pysol-sound-server-%{pssver}/NEWS NEWS.pysol-sound-server
cp pysol-sound-server-%{pssver}/README README.pysol-sound-server
cd pysol-sound-server-%{pssver}
%patch3 -p1
cd ..


%build
cd pysol-sound-server-%{pssver}/src
./configure --libdir=%{_libdir}
%py2_build


%install
rm -fr %{buildroot}
make prefix=%{_prefix} bindir=%{buildroot}%{_gamesbindir} pkgdatadir=%{buildroot}%{_gamesdatadir}/%{name} install-bin install-data install-man mandir=%{buildroot}/%{_mandir}
perl -pi -e "s%%{buildroot}/usr%/usr%" %{buildroot}%{_gamesbindir}/pysol
cd pysol-sound-server-%{pssver}/src
%py2_install
cd ../..
# they don't support python 2.4 yet
rm -f %{buildroot}%{_gamesdatadir}/%{name}/*pyc
mkdir %{buildroot}%{_gamesdatadir}/%{name}/BINARIES
cp -r %{name}-%{version}/src/* %{buildroot}%{_gamesdatadir}/%{name}/BINARIES
cat > %{buildroot}/%{_gamesbindir}/pysol << EOF
#!/bin/sh
exec python2 %{_gamesdatadir}/%{name}/BINARIES/pysol.py --pkgdatadir=%{_gamesdatadir}/%{name}/ --bindir=%{_gamesdatadir}/%{name}/BINARIES/ ${1+"$@"}

echo "$0: running $PYTHON failed !"
exit 1
EOF
chmod 755 %{buildroot}/%{_gamesbindir}/pysol

# Menu support
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=PySOL
Comment=All solitaire cards games
Comment[ru]=Набор всевозможных пасьянсов
Exec=%{name}
Icon=cards_section
Terminal=false
Type=Application
StartupNotify=true
Categories=X-MandrivaLinux-MoreApplications-Games-Cards;Game;CardGame;
EOF

%clean

%files
%doc NEWS* README*
%{_gamesdatadir}/pysol/
%{_gamesbindir}/pysol
%{_mandir}/man6/pysol.6*
%{_datadir}/applications/mandriva*
%{python2_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16020 |21mr|pystring-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Collection of C++ functions emulating Python's string class methods
Name:		pystring
Version:	1.1.3
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://github.com/imageworks/pystring
Source0:	https://github.com/imageworks/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
# 281419d on 4 Feb 2020
Patch0:		pystring-1.1.3-upstream.patch

%description
Pystring is a collection of C++ functions which match the interface and
behavior of Python's string class methods using std::string. Implemented in
C++, it does not require or make use of a Python interpreter. It provides
convenience and familiarity for common string operations not included in the
standard C++ library. It's also useful in environments where both C++ and
Python are used.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	PCManFM Qt backend library
Group:		System/Libraries

%description -n %{libname}
Collection of C++ functions emulating Python's string class methods.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Pystring is a collection of C++ functions which match the interface and
behavior of Python's string class methods using std::string. Implemented in
C++, it does not require or make use of a Python interpreter. It provides
convenience and familiarity for common string operations not included in the
standard C++ library. It's also useful in environments where both C++ and
Python are used.

%files -n %{devname}
%doc README
%license LICENSE
%{_libdir}/lib%{name}.so
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%make

%install
mkdir -p %{buildroot}%{_libdir}
%makeinstall_std LIBDIR=%{buildroot}%{_libdir}

mkdir -p %{buildroot}%{_includedir}/%{name}
cp %{name}.h %{buildroot}%{_includedir}/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16021 |21mr|python2-2.7.18-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Patching guideline for python :
# - no big patch with invasive change not
#     approved by upstream ( ie not coming from upstream svn )
# - small bugfix must be sent to upstream and approved if they
#     change any interface
# - all patchs should be commented ( unless for security,
#     as they are usually easy to spot )
%bcond_with tests

%define docver 2.7.18
%define dirver 2.7

%define major %{dirver}
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%ifarch %{ix86} %{x86_64} ppc
%bcond_without valgrind
%else
%bcond_with valgrind
%endif

# For RPM4 from OpenMandriva
%define _python_bytecompile_build 0

Summary:	An interpreted, interactive object-oriented programming language
Name:		python2
Version:	2.7.18
Release:	7
License:	Modified CNRI Open Source License
Group:		Development/Python
Url:		http://www.python.org/
Source0:	http://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
Source1:	http://www.python.org/ftp/python/doc/%{docver}/python-%{docver}-docs-html.tar.bz2
Source2:	bdist_rpm5.py
Source3:	python2.macros
Source100:	%{name}.rpmlintrc
Patch0:		python-2.7.15-module-linkage.patch
# Don't include /usr/local/* in search path
Patch3:		Python-2.7.6-no-local-incpath.patch

# Support */lib64 convention on x86_64, sparc64, etc.
# similar patches reported upstream on http://bugs.python.org/issue1294959
Patch4:		python-2.7.4-lib64.patch

Patch6:		python-2.7-016-cross-compile-getaddrinfo.patch

# add rosaa to the list of supported distribution, prefer it to redhat
# (since we have both redhat-release and rosa-release files)
Patch10:	python-2.5.1-detect-rosa.patch

# adds xz support to distutils targets: 'sdist', 'bdist' & 'bdist_rpm'
# sent upstream : http://bugs.python.org/issue5411
# DO NOT REMOVE, IT DOESN'T TOUCH *ANY* public interfaces and has been
# accepted by upstream
#Patch14:	Python-2.7.2-distutils-xz-support.patch

# from Fedora, fixes gettext.py parsing of Plural-Forms: header (fixes mdv bugs #49475, #44088)
# to send upstream
Patch16:	python-2.7.10-plural-fix.patch

# skip semaphore test, as it requires /dev/shm
Patch23:	python-2.7.1-skip-shm-test.patch

# add support for berkeley db <= 5.1
# sent upstream: http://bugs.python.org/issue11817
Patch24:	Python-2.7.4-berkeley-db-5.3.patch

# do not use uname -m to get the exact name on mips/arm
Patch25:	python-2.7.4-arch.patch

Patch26:	Python-2.7.4-berkeley-db-5.3-2.patch

# Avoid error in tests if built inside LXC with kerneles which differs
# from the target system's one
#Patch27:	python-2.7.3-workaround-ENOPROTOOPT-in-bind_port.patch

# Add flags for statvfs.f_flag to the constant list in posixmodule (i.e. "os")
# (rhbz:553020); partially upstream as http://bugs.python.org/issue7647
Patch28:	python-2.7.7-statvfs-f_flag-constants.patch

# From upstream
Patch500:	CVE-2017-18207.patch
Patch501:	CVE-2019-20907.patch
Patch502:	CVE-2020-8492.patch
Patch503:	CVE-2021-3177.patch
Patch504:	CVE-2021-23336.patch
Patch505:	CVE-2022-0391.patch
Patch506:	CVE-2022-45061.patch
Patch507:	CVE-2022-48560.patch
Patch508:	CVE-2022-48565.patch
Patch509:	CVE-2022-48566.patch
Patch510:	CVE-2023-24329.patch
Patch511:	CVE-2023-40217.patch
Patch512:	CVE-2021-3733.patch

BuildRequires:	blt
BuildRequires:	chrpath
BuildRequires:	tcl
BuildRequires:	tix
BuildRequires:	tk
BuildRequires:	db5-devel
BuildRequires:	gdbm-devel
BuildRequires:	gmp-devel
BuildRequires:	readline-devel
%if %{with valgrind}
BuildRequires:	valgrind-devel
%endif
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	%{_lib}bzip2-devel
# (2010/03/21, misc: interfere with test__all )
# backwards compatibility for unfixed packages
Provides:	python(abi) = %{major}
Provides:	python2 = %{version}-%{release}
Provides:	pythonegg(python) = %{version}-%{release}
Provides:	/usr/bin/python2

Conflicts:	tkinter < %{EVRD}
Conflicts:	python-devel < 2.7-6
%rename		python-ctypes
%rename		python-elementtree
%rename		python-base
%rename		python-pyxml

%description
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).

Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that
need a programmable interface. This package contains most of the
standard Python modules, as well as modules for interfacing to the
Tix widget set for Tk and RPM.

Note that documentation for Python is provided in the python-docs
package.

%files
%doc README.omv
%{_sysconfdir}/profile.d/*
%{_rpmmacrodir}/*python2*
%config(noreplace) %{_sysconfdir}/pythonrc.py
%if "%{_lib}" != "lib"
%dir %{_prefix}/lib/python%{dirver}
%endif
%dir %{_libdir}/python%{dirver}
%{_libdir}/python%{dirver}/*.doc
%{_libdir}/python%{dirver}/*.egg-info
%{_libdir}/python%{dirver}/*.py*
%{_libdir}/python%{dirver}/*.txt
%{_libdir}/python%{dirver}/bsddb
%{_libdir}/python%{dirver}/compiler
# "Makefile" and the config.h file are needed by
# distutils/sysconfig.py:_init_posix(), so we include them in the libs
# package, along with their parent directories (RH bug#531901):
%dir %{_libdir}/python%{dirver}/config
%{_libdir}/python%{dirver}/config/Makefile
%{_libdir}/python%{dirver}/ctypes
%{_libdir}/python%{dirver}/curses
%{_libdir}/python%{dirver}/distutils
%{_libdir}/python%{dirver}/email
%{_libdir}/python%{dirver}/ensurepip
%{_libdir}/python%{dirver}/encodings
%{_libdir}/python%{dirver}/hotshot
%{_libdir}/python%{dirver}/importlib
%{_libdir}/python%{dirver}/json
%{_libdir}/python%{dirver}/lib-dynload
%exclude %{_libdir}/python%{dirver}/lib-dynload/_tkinter.so
%{_libdir}/python%{dirver}/logging
%{_libdir}/python%{dirver}/multiprocessing
%{_libdir}/python%{dirver}/plat-linux2
%{_libdir}/python%{dirver}/pydoc_data
%if "%{_lib}" != "lib"
%dir %{_prefix}/lib/python%{dirver}/site-packages
%endif
%dir %{_libdir}/python%{dirver}/site-packages
%{_libdir}/python%{dirver}/site-packages/README
%{_libdir}/python%{dirver}/sqlite3
%{_libdir}/python%{dirver}/unittest
%{_libdir}/python%{dirver}/wsgiref
%{_libdir}/python%{dirver}/xml

%dir %{_includedir}/python%{dirver}
%{_includedir}/python%{dirver}/pyconfig.h

%{_bindir}/python%{dirver}
%{_bindir}/pydoc2
%{_bindir}/python2
%{_mandir}/man*/*
%if %{with valgrind}
%{_libdir}/valgrind/valgrind-python.supp
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for Python %{version}
Group:		System/Libraries

%description -n %{libname}
This packages contains Python shared object library.  Python is an
interpreted, interactive, object-oriented programming language often
compared to Tcl, Perl, Scheme or Java.

%files -n %{libname}
%{_libdir}/libpython*.so.1*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The libraries and header files needed for Python development
Group:		Development/Python
Provides:	python2-devel = %{EVRD}
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}
# (misc) needed to ease upgrade , see #47803
Obsoletes:	%{mklibname -d %{name} 2.5} < 2.7
Obsoletes:	%{mklibname -d %{name} 2.6} < 2.7
Obsoletes:	%{mklibname -d %{name} 2.7} < 2.7-4

%description -n %{devname}
The Python programming language's interpreter can be extended with
dynamically loaded extensions and can be embedded in other programs.
This package contains the header files and libraries needed to do
these types of tasks.

Install %{devname} if you want to develop Python extensions.  The
python package will also need to be installed.  You'll probably also
want to install the python-docs package, which contains Python
documentation.

%files -n %{devname}
%{_libdir}/libpython*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/python%{dirver}
%{_libdir}/python%{dirver}/config/*
%{_libdir}/python%{dirver}/test/
%{_bindir}/python%{dirver}-config
%{_bindir}/python2-config
%exclude %{_libdir}/python%{dirver}/config/Makefile
%exclude %{_includedir}/python%{dirver}/pyconfig.h

#----------------------------------------------------------------------------

%package docs
Summary:	Documentation for the Python programming language
Group:		Documentation
Requires:	%{name} = %{EVRD}
Requires:	xdg-utils

%description docs
The python-docs package contains documentation on the Python
programming language and interpreter.  The documentation is provided
in ASCII text files and in LaTeX source files.

Install the python-docs package if you'd like to use the documentation
for the Python language.

%files docs
%doc html/*/*
%{_datadir}/applications/rosa-%{name}-docs.desktop

#----------------------------------------------------------------------------

%package -n tkinter
Summary:	A graphical user interface for the Python scripting language
Group:		Development/Python
Requires:	%{name} = %{EVRD}
Requires:	tcl
Requires:	tk
Obsoletes:	tkinter-apps < %{EVRD}

%description -n tkinter
The Tkinter (Tk interface) program is an graphical user interface for
the Python scripting language.

You should install the tkinter package if you'd like to use a graphical
user interface for Python programming.

%files -n tkinter
%dir %{_libdir}/python%{dirver}/lib-tk
%{_libdir}/python%{dirver}/lib-tk/*.py*
%{_libdir}/python%{dirver}/lib-tk/test/
%{_libdir}/python%{dirver}/lib-dynload/_tkinter.so

#----------------------------------------------------------------------------

%package -n idle
Summary:	Python IDE
Group:		Development/Python
Requires:	tkinter
Conflicts:	tkinter-apps < %{EVRD}

%description -n idle
Python IDE.

%files -n idle
%{_bindir}/idle2
%{_datadir}/applications/idle.desktop
%{_libdir}/python%{dirver}/idlelib

#----------------------------------------------------------------------------

%package -n pynche
Summary:	Color and Hue editor
Group:		Development/Python
Requires:	tkinter
Conflicts:	tkinter-apps < %{EVRD}

%description -n pynche
Color and Hue editor.

%files -n pynche
%{_bindir}/pynche
%{_datadir}/applications/pynche.desktop
%{_libdir}/python%{dirver}/site-packages/pynche

#----------------------------------------------------------------------------

%prep
%setup -qn Python-%{version}
%patch0 -p1
# local include
%patch3 -p1
# lib64
%patch4 -p1 -b .lib64

#disable buggy getaddr check
%patch6 -p1

# add mandriva to the list of supported distribution
%patch10 -p0
# must fix tararchive first..
#patch14 -p1 .xz~

%patch16 -p1 -b .plural-fix

%patch23 -p1
%patch24 -p1 -b .db5~
%patch25 -p1 -b .arch
%patch26 -p1 -b .db5-2

#%%patch27 -p1 -b .bind_port
%patch28 -p1 -b .statvfs-f_flag-constants

%patch500 -p1
%patch501 -p1
%patch502 -p1
%patch503 -p1
%patch504 -p1
%patch505 -p1
%patch506 -p1
%patch507 -p1
%patch508 -p1
%patch509 -p1
%patch510 -p1
%patch511 -p1
%patch512 -p1

autoconf

mkdir html
tar xf %{SOURCE1} -C html
find html -type d |xargs chmod 755
find html -type f |xargs chmod 644

find . -type f -print0 | xargs -0 perl -p -i -e 's@/usr/local/bin/python@/usr/bin/python@'

cat > README.omv << EOF
Python interpreter support readline completion by default.
This is only used with the interpreter. In order to remove it,
you can :
1) unset PYTHONSTARTUP when you login
2) create a empty file \$HOME/.pythonrc.py
3) change %{_sysconfdir}/pythonrc.py
EOF

%build
rm -f Modules/Setup.local
cat > Modules/Setup.local << EOF
linuxaudiodev linuxaudiodev.c
EOF

export OPT="%{optflags}"
export CCSHARED="-fno-PIE -fPIC"
export ac_cv_have_long_long_format=yes

# fix building bz2 module
export LDFLAGS="-L/%{_lib}"

# see https://qa.mandriva.com/show_bug.cgi?id=48570
# for wide unicode support
%configure \
	--with-threads \
	--with-system-expat \
	--with-system-ffi \
	--enable-unicode=ucs4 \
	--enable-ipv6 \
	--enable-shared \
	--with-dbmliborder=gdbm:ndbm:bdb \
%if %{with valgrind}
	--with-valgrind
%endif

# fix build
#perl -pi -e 's/^(LDFLAGS=.*)/$1 -lstdc++/' Makefile
# (misc) if the home is nfs mounted, rmdir fails due to delay
export TMP="/tmp" TMPDIR="/tmp"
# Parallel make fails sometimes inside lxc in ABF
make

%install
mkdir -p %{buildroot}%{_prefix}/lib/python%{dirver}/site-packages

# fix Makefile to get rid of reference to distcc
perl -pi -e "/^CC=/ and s/distcc/gcc/" Makefile

# set the install path
echo '[install_scripts]' >setup.cfg
echo 'install_dir='"%{buildroot}/usr/bin" >>setup.cfg

# python is not GNU and does not know fsstd
mkdir -p %{buildroot}%{_mandir}
%makeinstall_std

ln -sf libpython%{major}.so.* %{buildroot}/%{_libdir}/libpython%{major}.so

# Provide a libpython%{dirver}.so symlink in /usr/lib/puthon*/config, so that
# the shared library could be found when -L/usr/lib/python*/config is specified
ln -sf ../../libpython%{major}.so %{buildroot}%{_libdir}/python%{dirver}/config; ln -sf ../../libpython%{major}.so .

#"  this comment is just here because vim syntax higlighting is confused by the previous snippet of lisp

# smtpd proxy
mv -f %{buildroot}%{_bindir}/smtpd.py %{buildroot}%{_libdir}/python%{dirver}/

# idle
cp Tools/scripts/idle %{buildroot}%{_bindir}/idle


# pynche
cat << EOF > %{buildroot}%{_bindir}/pynche
#!/bin/bash
exec %{_libdir}/python%{dirver}/site-packages/pynche/pynche
EOF
rm -f Tools/pynche/*.pyw
cp -r Tools/pynche %{buildroot}%{_libdir}/python%{dirver}/site-packages/

chmod 755 %{buildroot}%{_bindir}/{idle,pynche}

ln -f Tools/pynche/README Tools/pynche/README.pynche

%if %{with valgrind}
install Misc/valgrind-python.supp -D %{buildroot}%{_libdir}/valgrind/valgrind-python.supp
%endif

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/idle.desktop << EOF
[Desktop Entry]
Name=IDLE
Name[ru]=IDLE
Comment=IDE for Python
Comment[ru]=IDE для Python
Exec=%{_bindir}/idle
Icon=development_environment_section
Terminal=false
Type=Application
Categories=Development;IDE;
EOF

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/pynche.desktop << EOF
[Desktop Entry]
Name=Pynche
Name[ru]=Pynche
Comment=Color and Hue editor
Comment[ru]=Редактор цветов
Exec=%{_bindir}/pynche
Icon=development_environment_section
Terminal=false
Type=Application
Categories=Development;
EOF


cat > %{buildroot}%{_datadir}/applications/rosa-%{name}-docs.desktop << EOF
[Desktop Entry]
Name=Python documentation
Name[ru]=Документация Python
Comment=Python complete reference
Comment[ru]=Полная документация Python
Exec=%{_bindir}/xdg-open %{_defaultdocdir}/%{name}-docs/index.html
Icon=documentation_section
Terminal=false
Type=Application
Categories=Documentation;
EOF


# fix python library not stripped
chmod u+w %{buildroot}%{_libdir}/libpython%{major}.so.1.0


mkdir -p %{buildroot}%{_sysconfdir}/profile.d/

cat > %{buildroot}%{_sysconfdir}/profile.d/30python.sh << 'EOF'
if [ -f $HOME/.pythonrc.py ] ; then
	export PYTHONSTARTUP=$HOME/.pythonrc.py
else
	export PYTHONSTARTUP=/etc/pythonrc.py
fi

export PYTHONDONTWRITEBYTECODE=1
EOF

cat > %{buildroot}/%{_sysconfdir}/profile.d/30python.csh << 'EOF'
if ( -f ${HOME}/.pythonrc.py ) then
	setenv PYTHONSTARTUP ${HOME}/.pythonrc.py
else
	setenv PYTHONSTARTUP /etc/pythonrc.py
endif
setenv PYTHONDONTWRITEBYTECODE 1
EOF

cat > %{buildroot}%{_sysconfdir}/pythonrc.py << EOF
try:
    # this add completion to python interpreter
    import readline
    import rlcompleter
    # see readline man page for this
    readline.parse_and_bind("set show-all-if-ambiguous on")
    readline.parse_and_bind("tab: complete")
except:
    pass
# you can place a file .pythonrc.py in your home to overrides this one
# but then, this file will not be sourced
EOF

install -m644 %{SOURCE2} -D %{buildroot}%{_libdir}/python%{dirver}/distutils/command/bdist_rpm5.py

%install_macro python2 %{SOURCE3}

# Don't conflict with bits now provided by Python 3.x
# We don't strictly have to remove lib2to3, but I don't think it's
# used anywhere outside the 2to3 tool (which is provided by
# python 3.x)

rm -rf \
	%{buildroot}%{_bindir}/python \
	%{buildroot}%{_bindir}/python-config \
	%{buildroot}%{_bindir}/2to3 \
	%{buildroot}%{_libdir}/python%{dirver}/lib2to3

mv %{buildroot}%{_bindir}/pydoc %{buildroot}%{_bindir}/pydoc2
mv %{buildroot}%{_bindir}/idle %{buildroot}%{_bindir}/idle2

# Versionize python shebangs
sed '1 s,^.*$,#!%{_bindir}/python2,' -i %{buildroot}%{_bindir}/idle2

%if %{with tests}
%check
# (misc) if the home is nfs mounted, rmdir fails
export TMP="/tmp" TMPDIR="/tmp"

# all tests must pass
%ifarch %{arm}
# don't know if it's a python issue or a toolchain issue :(
# test test_float failed -- Traceback (most recent call last):
#  File "/home/rtp/deb/python2.6-2.6.4/Lib/test/test_float.py", line 665, in test_from_hex
#    self.identical(fromHex('0x0.ffffffffffffd6p-1022'), MIN-3*TINY)
#  File "/home/rtp/deb/python2.6-2.6.4/Lib/test/test_float.py", line 375, in identical
#    self.fail('%r not identical to %r' % (x, y))
# AssertionError: 2.2250738585071999e-308 not identical to 2.2250738585071984e-308
%define custom_test -x test_float
%else
%define custom_test ""
%endif
# if a test doesn't pass, it can be disabled with -x test, but this should be documented in the
# spec file, and a bug should be reported if possible ( on python side )
# (misc, 28/10/2010) test_gdb fail, didn't time too look
# (misc, 29/10/2010) test_site fail due to one of our patch, will fix later
#   test_distutils, fail because of lib64 patch ( like test_site ), and because it requires libpython2.7 to be installed
#   test_io, blocks on my computer on 2nd run
# (misc, 17/01/2013) test_cmath fails when run as part of the full test suite,
#   but succeeds when run by itself. Needs further investigation, for now, let's
#   just make it an extra step. Same goes for test_math, test_float, test_strtod
# (arisel, 04/02/2013) disabling test_file and test_file2k. This might be a problem with
#   --enable-shared as modules already installed on the system are used.
# (bero, 19/06/2013) disabling test_pydoc, fails with 'NoneType' object has no attribute 'get_source'
# (bero, 19/06/2013) Network related tests fail in ABF - probably new security features not allowing package
# builds to access the net?
WITHIN_PYTHON_RPM_BUILD=1 make test TESTOPTS="-w -l -x test_file -x test_file2k -x test_gdb -x test_site -x test_io -x test_distutils -x test_urllib2 -x test_cmath -x test_math -x test_float -x test_strtod -x test_pydoc -x test_ftplib -x test_httplib -x test_poplib -x test_telnetlib -x test_smtplib -x test_asynchat -x test_asyncore -x test_socket %{custom_test}"
WITHIN_PYTHON_RPM_BUILD=1 make test TESTOPTS="-w -l test_cmath test_math test_float test_strtod"
#make test TESTOPTS="-w -l test_pydoc"
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16022 |21mr|python2-cairo-1.18.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pycairo

Summary:	A python wrapper for the Cairo libraries
Name:		python2-cairo
Version:	1.18.2
Release:	5
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/pygobject/pycairo
Source0:	https://github.com/pygobject/pycairo/releases/download/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(python2)
BuildRequires:	python2dist(setuptools)
Provides:	py2cairo = %{EVRD}

%description
A set of Python2 bindings for the cairo graphics library.

%files
%{py2_platsitedir}/cairo
%{py2_platsitedir}/%{oname}-%{version}-py%{python2_version}.egg-info

#----------------------------------------------------------------------------

%package -n python2-cairo-devel
Summary:	Development files for %{name}
Group:		Development/Python
Requires:	python2-cairo = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n python2-cairo-devel
Development files for %{name}.

%files -n python2-cairo-devel
%{_includedir}/pycairo/pycairo.h
%{_libdir}/pkgconfig/pycairo.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%py2_build

%install
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16023 |21mr|python2-parsing-2.4.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#last version with python2 support, need for python2-setuptools work.

%define module	parsing
%define omodule	pyparsing

Summary:	An object-oriented approach to text processing
Name:		python2-%{module}
Version:	2.4.7
Release:	3
Group:		Development/Python
License:	MIT
URL:		https://github.com/pyparsing/pyparsing/
Source0:	https://files.pythonhosted.org/packages/c1/47/dfc9c342c9842bbe0036c7f763d2d6686bcf5eb1808ba3e170afdb282210/pyparsing-2.4.7.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description
The pyparsing module provides an alternative approach to creating and
executing simple grammars in Python versus the traditional lex/yacc
approach or the use of regular expressions. It provides a library of
classes that client code can use to construct a grammar directly.

%files
%{python2_sitelib}/*

#----------------------------------------------------------------------
%prep
%setup -q -n py%{module}-%{version}

%build
%py2_build

%install
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16024 |21mr|python2-setuptools-41.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname setuptools
# WARNING!!!
# IT IS LATEST version that supports python2
# do not update
Name:           python2-setuptools
# When updating, update the bundled libraries versions bellow!
Version:        41.2.0
Group:		Development/Python
Release:        1
Summary:        Easily build and distribute Python packages
# setuptools is MIT
# packaging is BSD or ASL 2.0
# pyparsing is MIT
# six is MIT
License:        MIT and (BSD or ASL 2.0)
URL:            https://pypi.python.org/pypi/%{srcname}
Source0:        %{pypi_source %{srcname} %{version} zip}
BuildArch:      noarch
BuildRequires:  python2-devel
%rename python2-distribute
# Virtual provides for the packages bundled by setuptools.
# You can find the versions in setuptools/setuptools/_vendor/vendored.txt
Provides:	bundled(python2dist(packaging)) = 16.8
Provides:	bundled(python2dist(pyparsing)) = 2.2.1
Provides:	bundled(python2dist(six)) = 1.10.0
Provides:	pythonegg(setuptools)
Provides:	pythonegg(distribute)
Provides:	python2-pkg-resources = %{EVRD}
Requires:	python2-packaging
Requires:	python2-appdirs

%{?python_provide:%python_provide python2-setuptools}

%description
Setuptools is a collection of enhancements to the Python distutils that allow
you to more easily build and distribute Python packages, especially ones that
have dependencies on other packages.

This package also contains the runtime components of setuptools, necessary to
execute the software that requires pkg_resources.py.

%prep
%autosetup -p1 -n %{srcname}-%{version}
rm -r %{srcname}.egg-info

# Strip shbang
find setuptools pkg_resources -name \*.py | xargs sed -i -e '1 {/^#!\//d}'
# Remove bundled exes
rm -f setuptools/*.exe
# These tests require internet connection
rm setuptools/tests/test_integration.py
# Spurious executable perm https://github.com/pypa/setuptools/pull/1441
chmod -x README.rst

%build
# Warning, different bootstrap meaning here, has nothing to do with our bcond
# This bootstraps .egg-info directory needed to build setuptools
%{__python2} bootstrap.py
%py2_build

%install
%py2_install

rm %{buildroot}%{_bindir}/easy_install
rm -rf %{buildroot}%{python2_sitelib}/setuptools/tests

find %{buildroot}%{python2_sitelib} -name '*.exe' | xargs rm -f

# Don't ship these
rm -r docs/{Makefile,conf.py,_*}

%files -n python2-setuptools
%license LICENSE
%doc docs/* CHANGES.rst README.rst
%{python2_sitelib}/setuptools-%{version}-py%{python2_version}.egg-info/
%{python2_sitelib}/setuptools/
%{python2_sitelib}/easy_install*
%{python2_sitelib}/pkg_resources/
%{_bindir}/easy_install-2.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16025 |21mr|python3.11-3.11.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

#define docver  3.11.4
%define dirver  3.11
%define familyver 3

%define lib_major       %{dirver}
%define lib_name_orig   libpython%{familyver}.11
%define lib_name        %mklibname python %{lib_major}
%define develname       %mklibname python3.11 -d

%ifarch %{ix86} %{x86_64} ppc
%bcond_with  valgrind
%else
%bcond_with     valgrind
%endif

%bcond_without	rewheel

# We want to byte-compile the .py files within the packages using the new
# python3 binary.
#
# Unfortunately, rpmbuild's infrastructure requires us to jump through some
# hoops to avoid byte-compiling with the system python 2 version:
#   /usr/lib/rpm/mandriva/macros sets up build policy that (amongst other things)
# defines __os_install_post.  In particular, "brp-python-bytecompile" is
# invoked without an argument thus using the wrong version of python
# (/usr/bin/python, rather than the freshly built python), thus leading to
# numerous syntax errors, and incorrect magic numbers in the .pyc files.  We
# thus remove the invocation of brp-python-bytecompile, whilst keeping the
# invocation of brp-python-hardlink (since this should still work for python3
# pyc/pyo files)
%define _python_bytecompile_build 0

Summary:        An interpreted, interactive object-oriented programming language
Name:           python3.11
Version:        3.11.4
Release:        3
License:        Modified CNRI Open Source License
Group:          Development/Python

Source0:         https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
Source1:        https://docs.python.org/3/archives/python-%{version}-docs-html.tar.bz2
Source2:        python3.11.macros
Source4:        import_all_modules.py
Source5:	python3.11-shebang-sanity.sh
Source100:	%{name}.rpmlintrc

# 00001 #
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
# Was Patch0 in ivazquez' python3000 specfile:
Patch1:         00001-rpath.patch
Patch2:		Python-3.8.0-c++.patch
Patch3:		python-3.8.0-c++atomics.patch
Patch4:		0005-Improve-distutils-C-support.patch
Patch5:		00201-fix-memory-leak-in-gdbm.patch

# 00251
# Set values of prefix and exec_prefix in distutils install command
# to /usr/local if executable is /usr/bin/python* and RPM build
# is not detected to make pip and distutils install into separate location
# Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
Patch251: 00251-change-user-install-location.patch

# 00328 #
# Restore pyc to TIMESTAMP invalidation mode as default in rpmbubild
# See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/57#comment-27426
Patch328: 00328-pyc-timestamp-invalidation-mode.patch

# For more info see:
# https://bodhi.fedoraproject.org/updates/FEDORA-2021-e152ce5f31
# https://github.com/GrahamDumpleton/mod_wsgi/issues/730
Patch371: 00371-revert-bpo-1596321-fix-threading-_shutdown-for-the-main-thread-gh-28549-gh-28589.patch

#
# Mageia patches
#
Patch501:	python3-3.5.2-skip-distutils-tests-that-fail-in-rpmbuild.patch
Patch503:	python3-3.5.2-dont-raise-from-py_compile.patch
Patch506:	python3-3.6.2-python3-config-LIBPLUSED-cmp0004-error.patch

Patch508:	fix-attribute-e2k.patch

URL:            http://www.python.org/
Requires:       %{lib_name} = %{EVRD}
BuildRequires:  automake
BuildRequires:  autoconf-archive
BuildRequires:  gcc-c++
BuildRequires:  blt
BuildRequires:  db-devel
BuildRequires:  expat-devel
BuildRequires:  gdbm-devel
BuildRequires:  gmp-devel
BuildRequires:  ffi-devel
BuildRequires:  pkgconfig(ncursesw)
BuildRequires:  pkgconfig(libnsl)
# build ssl module fail with error SSLV3_method not found
#BuildRequires:  pkgconfig(openssl)
BuildRequires:  openssl-devel
BuildRequires:  readline-devel
BuildRequires:  tcl tcl-devel
BuildRequires:  tk tk-devel
BuildRequires:  autoconf
BuildRequires:  bzip2-devel
BuildRequires:  sqlite3-devel
BuildRequires:  xz-devel
BuildRequires:  uuid-devel
%if %{with valgrind}
BuildRequires:  valgrind-devel
%endif
%if %{with rewheel}
BuildRequires:  python3-setuptools
BuildRequires:  python3-pip
%endif
Provides:       python(abi) = %{dirver}

%description
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).

Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that
need a programmable interface. This package contains most of the
standard Python modules, as well as modules for interfacing to the
Tix widget set for Tk and RPM.

Note that documentation for Python is provided in the python-docs
package.

#------------------------------------------------------------------------------

%package -n     %{lib_name}
Summary:        Shared libraries for Python %{version}
Group:          System/Libraries

%description -n %{lib_name}
This packages contains Python shared object library.  Python is an
interpreted, interactive, object-oriented programming language often
compared to Tcl, Perl, Scheme or Java.

#------------------------------------------------------------------------------

%package -n     %{develname}
Summary:        The libraries and header files needed for Python development
Group:          Development/Python
Requires:       %{name} = %{EVRD}
Requires:       %{lib_name} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}
Provides:       %{lib_name_orig}-devel = %{EVRD}

%description -n %{develname}
The Python programming language's interpreter can be extended with
dynamically loaded extensions and can be embedded in other programs.
This package contains the header files and libraries needed to do
these types of tasks.

Install %{develname} if you want to develop Python extensions.  The
python package will also need to be installed.  You'll probably also
want to install the python-docs package, which contains Python
documentation.

#------------------------------------------------------------------------------

%package        docs
Summary:        Documentation for the Python programming language
Requires:       %{name} = %{EVRD}
Requires:       xdg-utils
Group:          Development/Python
BuildArch:      noarch

%description    docs
The python-docs package contains documentation on the Python
programming language and interpreter.  The documentation is provided
in ASCII text files and in LaTeX source files.

Install the python-docs package if you'd like to use the documentation
for the Python language.

#------------------------------------------------------------------------------

%package -n     tkinter3.11
Summary:        A graphical user interface for the Python scripting language
Group:          Development/Python
Requires:       %{name} = %{EVRD}
Requires:       tcl
Requires:       tk
Provides:       python3.11-tkinter = %{EVRD}

%description -n tkinter3.11
The Tkinter (Tk interface) program is an graphical user interface for
the Python scripting language.

You should install the tkinter package if you'd like to use a graphical
user interface for Python programming.

#------------------------------------------------------------------------------

%package idle
Summary:        IDLE (Python IDE) for Python %{dirver}
Group:          Development/Python
Requires:       tkinter3.11
Provides:		tkinter3.11-apps = %{EVRD}

%description idle
IDLE (Python IDE) for Python %{dirver}

#------------------------------------------------------------------------------

%prep
%setup -qn Python-%{version}
%autopatch -p1

# drop Autoconf version requirement
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac

# Why we need this in 3.8? Won't work in any case
rm -f Lib/test/test_importlib/data/example-21.12-py3.6.egg

# docs
mkdir html
tar xf %{SOURCE1} -C html

find . -type f -print0 | xargs -0 perl -p -i -e 's@/usr/local/bin/python@/usr/bin/python3@'


%build
rm -f Modules/Setup.local

export OPT="%{optflags} -g"

# to fix curses module build
export CFLAGS="%{optflags} -I/usr/include/ncursesw"
export CPPFLAGS="%{optflags} -I/usr/include/ncursesw"

autoreconf -vfi
# Remove -Wl,--no-undefined
%define _disable_ld_no_undefined 1
%configure  --with-threads \
                --enable-ipv6 \
                --with-dbmliborder=gdbm \
                --with-system-expat \
                --with-system-ffi \
                --enable-shared \
                --without-ensurepip \
                --without-static-libpython \
                --with-platlibdir=%{_lib} \
                --with-ssl-default-suites=openssl \
%if %{with valgrind}
                --with-valgrind
%endif


# fix build
#perl -pi -e 's/^(LDFLAGS=.*)/$1 -lstdc++/' Makefile
# (misc) if the home is nfs mounted, rmdir fails due to delay
export TMP="/tmp" TMPDIR="/tmp"
#%make LN="ln -sf"
make EXTRA_CFLAGS="$CFLAGS" LN="ln -sf"

%install
mkdir -p %{buildroot}%{_prefix}/lib/python%{dirver}

# fix Makefile to get rid of reference to distcc
perl -pi -e "/^CC=/ and s/distcc/gcc/" Makefile

# set the install path
echo '[install_scripts]' >setup.cfg
echo 'install_dir='"${RPM_BUILD_ROOT}/usr/bin" >>setup.cfg

# python is not GNU and does not know fsstd
mkdir -p %{buildroot}%{_mandir}
%makeinstall_std LN="ln -sf"

# overwrite the copied binary with a link
pushd %{buildroot}%{_bindir} 
#ln -sf python%{dirver}m python%{dirver}
ln -sf python%{dirver} python%{familyver}
popd

(cd %{buildroot}%{_libdir}; ln -sf `ls libpython%{lib_major}*.so.*` libpython%{lib_major}.so)

%if %{with valgrind}
install Misc/valgrind-python.supp -D %{buildroot}%{_libdir}/valgrind/valgrind-python3.supp
%endif

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/idle%{dirver}.desktop << EOF
[Desktop Entry]
Name=IDLE (Python %{dirver})
Name[ru]=IDLE (Python %{dirver})
Comment=IDE for Python %{dirver}
Comment[ru]=IDE для Python %{dirver}
Exec=%{_bindir}/idle%{dirver}
Icon=development_environment_section
Terminal=false
Type=Application
Categories=Development;IDE;
EOF


cat > %{buildroot}%{_datadir}/applications/rosa-%{name}-docs.desktop << EOF
[Desktop Entry]
Name=Python documentation
Name[ru]=Документация Python %{dirver}
Comment=Python complete reference
Comment[ru]=Полное руководство по языку Python %{dirver}
Exec=%{_bindir}/xdg-open %{_defaultdocdir}/%{name}-docs/index.html
Icon=documentation_section
Terminal=false
Type=Application
Categories=Documentation;
EOF

# fix non real scripts
#chmod 644 %{buildroot}%{_libdir}/python*/test/test_{binascii,grp,htmlparser}.py*
find %{buildroot} -type f \( -name "test_binascii.py*" -o -name "test_grp.py*" -o -name "test_htmlparser.py*" \) -exec chmod 644 {} \;
# fix python library not stripped
chmod u+w %{buildroot}%{_libdir}/libpython%{lib_major}*.so.1.0 %{buildroot}%{_libdir}/libpython3.so


%install_macro python311 %{SOURCE2}
# Script to perform import of each module given to %%py_check_import
install -D -m644 %{SOURCE4} %{buildroot}%{_rpmconfigdir}/redhat/import_all_modules.py

# Install pathfix.py to bindir
# See https://github.com/fedora-python/python-rpm-porting/issues/24
cp -p Tools/scripts/pathfix.py %{buildroot}%{_bindir}/pathfix3.11.py


install -m0755 %{SOURCE5} %{buildroot}%{_bindir}/python3.11-shebang-sanity

# conflict with main python
[ -L %{buildroot}%{_mandir}/man1/python3.11 ] && rm -fv %{buildroot}%{_mandir}/man1/python3.11

# Build scripts of many packages try to use the highest version of Python that they find
# That is why we have to relocate python3.8 out of $PATH
mkdir -p %{buildroot}%{_libexecdir}
mv %{buildroot}%{_bindir}/python3.11 %{buildroot}%{_libexecdir}/python3.11

# Remove shebang lines from .py files that aren't executable, and
# remove executability from .py files that don't have a shebang line:
find %{buildroot} -name \*.py \
  \( \( \! -perm /u+x,g+x,o+x -exec sed -e '/^#!/Q 0' -e 'Q 1' {} \; \
  -print -exec sed -i '1d' {} \; \) -o \( \
  -perm /u+x,g+x,o+x ! -exec grep -m 1 -q '^#!' {} \; \
  -exec chmod a-x {} \; \) \)

########## shebang py3 > py3.11 ##################
sh %{SOURCE5}

# When packaging a not system version of Python, these files are named like e.g. 2to3-3.11
# These files must not be packaged to avoid conflicts with system python3
rm -fr %{buildroot}%{_bindir}/{2to3,idle3,pydoc,pydoc3,python,python3,python3-config,python-config}
rm -fr %{buildroot}%{_libdir}/libpython3.so
rm -fr %{buildroot}%{_libdir}/pkgconfig/python3.pc
rm -fr %{buildroot}%{_libdir}/pkgconfig/python3-embed.pc

# Fix permissions on docs
find html -type d -exec chmod 755 {} +
find html -type f -exec chmod 644 {} +

%check
# (misc) if the home is nfs mounted, rmdir fails
export TMP="/tmp" TMPDIR="/tmp"

# all tests must pass
# but we disable network on BS
#WITHIN_PYTHON_RPM_BUILD= make test TESTOPTS="-u none -x $EXCLUDE"
# consider use network on local build
#WITHIN_PYTHON_RPM_BUILD= make test TESTOPTS="-u network -x $EXCLUDE"

%files
%{_rpmmacrodir}/*python311*
%{_rpmconfigdir}/redhat/import_all_modules.py
%{_includedir}/python*/pyconfig.h
%{_libdir}/python*/config*/Makefile
%exclude %{_libdir}/python*/lib-dynload/_tkinter.*.so

%dir %{_libdir}/python*
%{_libdir}/python*/LICENSE.txt
%{_libdir}/python%{dirver}/*.py
%{_libdir}/python%{dirver}/__phello__
%{_libdir}/python%{dirver}/__pycache__
%{_libdir}/python%{dirver}/collections
%{_libdir}/python%{dirver}/concurrent
%{_libdir}/python%{dirver}/ctypes
%{_libdir}/python%{dirver}/curses
%{_libdir}/python%{dirver}/dbm
%{_libdir}/python%{dirver}/distutils
%{_libdir}/python%{dirver}/email
%{_libdir}/python%{dirver}/encodings
%{_libdir}/python%{dirver}/html
%{_libdir}/python%{dirver}/http
%{_libdir}/python%{dirver}/importlib
%{_libdir}/python%{dirver}/json
%{_libdir}/python%{dirver}/lib-dynload
%{_libdir}/python%{dirver}/lib2to3
%{_libdir}/python%{dirver}/logging
%{_libdir}/python%{dirver}/multiprocessing
%{_libdir}/python%{dirver}/pydoc_data
%{_libdir}/python%{dirver}/re
%{_libdir}/python%{dirver}/site-packages
%{_libdir}/python%{dirver}/sqlite3
%{_libdir}/python%{dirver}/tomllib
%{_libdir}/python%{dirver}/turtledemo
%{_libdir}/python%{dirver}/unittest
%{_libdir}/python%{dirver}/urllib
%{_libdir}/python%{dirver}/venv
%{_libdir}/python%{dirver}/wsgiref*
%{_libdir}/python%{dirver}/xml
%{_libdir}/python%{dirver}/xmlrpc
%{_libdir}/python%{dirver}/asyncio
%{_libdir}/python%{dirver}/ensurepip
%{_libdir}/python%{dirver}/zoneinfo
%{_bindir}/pathfix3.11.py
%{_bindir}/pydoc3*
%{_bindir}/python%{dirver}-shebang*
%{_bindir}/2to3-%{dirver}
%{_mandir}/man*/*
%if %{with valgrind}
%{_libdir}/valgrind/valgrind-python3.supp
%endif
%{_libexecdir}/python3*

%files -n %{lib_name}
%{_libdir}/libpython*.so.1*

%files -n %{develname}
%{_libdir}/libpython*.so
%{_includedir}/python*
%{_libdir}/python*/config-*
%{_libdir}/python*/test/
%{_bindir}/python%{dirver}*-config
%{_libdir}/pkgconfig/*.pc
%exclude %{_includedir}/python*/pyconfig.h
%exclude %{_libdir}/python*/config*/Makefile

%files docs
%doc html/*/*
%{_datadir}/applications/rosa-%{name}-docs.desktop

%files -n tkinter3.11
%{_libdir}/python*/tkinter/
%{_libdir}/python*/idlelib
%{_libdir}/python*/lib-dynload/_tkinter.*.so

%files idle
%{_bindir}/idle%{dirver}
%{_datadir}/applications/idle%{dirver}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16026 |21mr|python3.11-pip-23.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module pip

%global __provides_exclude ^python3dist(.*)|^python3egg(.*)

Summary:	A tool for installing and managing Python packages (easy_install replacement)
Name:		python3.11-%{module}
Version:	23.0.1
Release:	1
Group:		Development/Python
License:	MIT
URL:		https://pip.pypa.io/
Source0:	https://github.com/pypa/pip/archive/%{version}.tar.gz?/pip-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python-3.11)
BuildRequires:	python3.11dist(setuptools)
Provides:	python3.11egg(pip) = %{version}

%description
Pip is a replacement for `easy_install
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_.  It uses mostly the
same techniques for finding packages, so packages that were made
easy_installable should be pip-installable as well.

%files
%license LICENSE.txt
%doc docs
%exclude %{_bindir}/pip3
%{_bindir}/pip%{py311_ver}
%attr(755,root,root) %{_bindir}/python%{py311_ver}-pip

%dir %{python311_sitelib}/%{module}-%{version}-py%{py311_ver}.egg-info
%{python311_sitelib}/%{module}-%{version}-py%{py311_ver}.egg-info/*
%dir %{python311_sitelib}/%{module}
%{python311_sitelib}/%{module}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

%build
%py311_build

%install
%py311_install

# Change the name of the python3 pip executable in order to not conflict with
# the python3 executable
mv %{buildroot}%{_bindir}/pip %{buildroot}%{_bindir}/python3.11-pip




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16027 |21mr|python3.11-setuptools-67.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module setuptools
%define		test 0
%global __provides_exclude ^python3dist(.*)|^python3egg(.*)

Summary:	Python Distutils Enhancements
Name:		python3.11-%{module}
Version:	67.7.2
Release:	1
License:	Zope Public License (ZPL)
Group:		Development/Python
Url:		https://pypi.org/project/setuptools/
Source0:    %{pypi_source %{module} %{version}}
BuildArch:	noarch
BuildRequires:	pkgconfig(python-3.11)
Requires:	python3.11-pkg-resources
Provides:	python3.11-%{module} = %{EVRD}
Provides:	python3.11-distribute
Provides:	python3.11egg(setuptools) = %{version}
Provides:	python3.11egg(distribute) = %{version}

%description
A collection of enhancements to the Python distutils that allow
you to more easily build and distribute Python packages, especially
ones that have dependencies on other packages.

%files
%{py311_puresitedir}/*
%exclude %{py311_puresitedir}/pkg_resources

#-------------------------------------------------------------------

%package -n python3.11-pkg-resources
Summary:	Runtime module to access python resources
Group:		Development/Python

%description -n python3.11-pkg-resources
Module used to find and manage Python package/version dependencies and access
bundled files and resources, including those inside of zipped .egg files.

%files -n python3.11-pkg-resources
%{py311_puresitedir}/pkg_resources

#-------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
export CFLAGS="%{optflags}"

%py311_build

%if %{test}
%check
%py311_test
%endif

%install
%py311_install

find %{buildroot}%{python311_sitelib} -name '*.exe' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16028 |21mr|python3-3.8.13-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%define docver  3.8.6
%define dirver  3.8
%define familyver 3

%define lib_major       %{dirver}
%define lib_name_orig   libpython%{familyver}
%define lib_name        %mklibname python %{lib_major}
%define develname       %mklibname python3 -d

%ifarch %{ix86} %{x86_64} ppc
%bcond_with  valgrind
%else
%bcond_with     valgrind
%endif

%bcond_without	rewheel

# We want to byte-compile the .py files within the packages using the new
# python3 binary.
#
# Unfortunately, rpmbuild's infrastructure requires us to jump through some
# hoops to avoid byte-compiling with the system python 2 version:
#   /usr/lib/rpm/mandriva/macros sets up build policy that (amongst other things)
# defines __os_install_post.  In particular, "brp-python-bytecompile" is
# invoked without an argument thus using the wrong version of python
# (/usr/bin/python, rather than the freshly built python), thus leading to
# numerous syntax errors, and incorrect magic numbers in the .pyc files.  We
# thus remove the invocation of brp-python-bytecompile, whilst keeping the
# invocation of brp-python-hardlink (since this should still work for python3
# pyc/pyo files)
%define _python_bytecompile_build 0

Summary:        An interpreted, interactive object-oriented programming language
Name:           python3
Version:        3.8.13
Release:        7
License:        Modified CNRI Open Source License
Group:          Development/Python

Source0:         https://www.python.org/ftp/python/%{version}/Python-%{version}.tar.xz
Source1:        https://docs.python.org/3/archives/python-%{docver}-docs-html.tar.bz2
Source2:        python3.macros
Source3:        pybytecompile.macros
Source100:	%{name}.rpmlintrc

# 00001 #
# Fixup distutils/unixccompiler.py to remove standard library path from rpath:
# Was Patch0 in ivazquez' python3000 specfile:
Patch1:         00001-rpath.patch

# 00102 #
# Change the various install paths to use /usr/lib64/ instead or /usr/lib
# Only used when "%%{_lib}" == "lib64"
# Not yet sent upstream.
Patch102: 00102-lib64.patch

# 00111 #
# Patch the Makefile.pre.in so that the generated Makefile doesn't try to build
# a libpythonMAJOR.MINOR.a
# See https://bugzilla.redhat.com/show_bug.cgi?id=556092
# Downstream only: not appropriate for upstream
Patch111: 00111-no-static-lib.patch

# 00205 #
# LIBPL variable in makefile takes LIBPL from configure.ac
# but the LIBPL variable defined there doesn't respect libdir macro
Patch205: 00205-make-libpl-respect-lib64.patch

# 00251
# Set values of prefix and exec_prefix in distutils install command
# to /usr/local if executable is /usr/bin/python* and RPM build
# is not detected to make pip and distutils install into separate location
# Fedora Change: https://fedoraproject.org/wiki/Changes/Making_sudo_pip_safe
Patch251: 00251-change-user-install-location.patch

# 00274 #
# Upstream uses Debian-style architecture naming. Change to match Fedora.
Patch274: 00274-fix-arch-names.patch

# 00328 #
# Restore pyc to TIMESTAMP invalidation mode as default in rpmbubild
# See https://src.fedoraproject.org/rpms/redhat-rpm-config/pull-request/57#comment-27426
Patch328: 00328-pyc-timestamp-invalidation-mode.patch

#
# Mageia patches
#
Patch501:	python3-3.5.2-skip-distutils-tests-that-fail-in-rpmbuild.patch
Patch502:	python3-3.7.1-uid-gid-overflows.patch
Patch503:	python3-3.5.2-dont-raise-from-py_compile.patch
Patch506:	python3-3.6.2-python3-config-LIBPLUSED-cmp0004-error.patch
Patch507:	link-C-modules-with-libpython.patch

Patch508:	fix-attribute-e2k.patch
Patch509:	python-3.8.13-svace.patch

Patch1000:	CVE-2020-10735.patch
Patch1001:	CVE-2021-28861.patch
Patch1002:	CVE-2022-37454.patch
Patch1003:	CVE-2022-45061.patch
# CVE-2023-40217
Patch1004:	0001-3.8-gh-108310-Fix-CVE-2023-40217-Check-for-avoid-the.patch
# CVE-2023-24329
Patch1005:      0001-3.8-gh-102153-Start-stripping-C0-control-and-space-c.patch
Patch1006:	CVE-2015-20107.patch

URL:            http://www.python.org/
Requires:       %{lib_name} = %{EVRD}
BuildRequires:  automake
BuildRequires:  autoconf-archive
BuildRequires:  gcc-c++
BuildRequires:  blt
BuildRequires:  db-devel
BuildRequires:  expat-devel
BuildRequires:  gdbm-devel
BuildRequires:  gmp-devel
BuildRequires:  ffi-devel
BuildRequires:  pkgconfig(ncursesw)
BuildRequires:  pkgconfig(libnsl)
# build ssl module fail with error SSLV3_method not found
#BuildRequires:  pkgconfig(openssl)
BuildRequires:  openssl-devel
BuildRequires:  readline-devel
BuildRequires:  tcl tcl-devel
BuildRequires:  tk tk-devel
BuildRequires:  autoconf
BuildRequires:  bzip2-devel
BuildRequires:  sqlite3-devel
BuildRequires:  xz-devel
BuildRequires:  uuid-devel
%if %{with valgrind}
BuildRequires:  valgrind-devel
%endif
%if %{with rewheel}
BuildRequires:  python3-setuptools
BuildRequires:  python3-pip
%endif
Provides:       python(abi) = %{dirver}
Provides:	python = %{EVRD}

%description
Python is an interpreted, interactive, object-oriented programming
language often compared to Tcl, Perl, Scheme or Java. Python includes
modules, classes, exceptions, very high level dynamic data types and
dynamic typing. Python supports interfaces to many system calls and
libraries, as well as to various windowing systems (X11, Motif, Tk,
Mac and MFC).

Programmers can write new built-in modules for Python in C or C++.
Python can be used as an extension language for applications that
need a programmable interface. This package contains most of the
standard Python modules, as well as modules for interfacing to the
Tix widget set for Tk and RPM.

Note that documentation for Python is provided in the python-docs
package.

#------------------------------------------------------------------------------

%package -n     %{lib_name}
Summary:        Shared libraries for Python %{version}
Group:          System/Libraries

%description -n %{lib_name}
This packages contains Python shared object library.  Python is an
interpreted, interactive, object-oriented programming language often
compared to Tcl, Perl, Scheme or Java.

#------------------------------------------------------------------------------

%package -n     %{develname}
Summary:        The libraries and header files needed for Python development
Group:          Development/Python
Requires:       %{name} = %{EVRD}
Requires:       %{lib_name} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}
Provides:       %{lib_name_orig}-devel = %{EVRD}

%description -n %{develname}
The Python programming language's interpreter can be extended with
dynamically loaded extensions and can be embedded in other programs.
This package contains the header files and libraries needed to do
these types of tasks.

Install %{develname} if you want to develop Python extensions.  The
python package will also need to be installed.  You'll probably also
want to install the python-docs package, which contains Python
documentation.

#------------------------------------------------------------------------------

%package        docs
Summary:        Documentation for the Python programming language
Requires:       %{name} = %{EVRD}
Requires:       xdg-utils
Group:          Development/Python
BuildArch:      noarch

%description    docs
The python-docs package contains documentation on the Python
programming language and interpreter.  The documentation is provided
in ASCII text files and in LaTeX source files.

Install the python-docs package if you'd like to use the documentation
for the Python language.

#------------------------------------------------------------------------------

%package -n     tkinter3
Summary:        A graphical user interface for the Python scripting language
Group:          Development/Python
Requires:       %{name} = %{EVRD}
Requires:       tcl
Requires:       tk
Provides:       python3-tkinter = %{EVRD}

%description -n tkinter3
The Tkinter (Tk interface) program is an graphical user interface for
the Python scripting language.

You should install the tkinter package if you'd like to use a graphical
user interface for Python programming.

#------------------------------------------------------------------------------

%package -n     tkinter3-apps
Summary:        Various applications written using tkinter
Group:          Development/Python
Requires:       tkinter3

%description -n tkinter3-apps
Various applications written using tkinter

#------------------------------------------------------------------------------

%prep
%setup -qn Python-%{version}
%autopatch -p1

%if "%{_lib}" != "lib64"
%patch102 -p1 -R
%endif

# drop Autoconf version requirement
sed -i 's/^AC_PREREQ/dnl AC_PREREQ/' configure.ac

# Why we need this in 3.8? Won't work in any case
rm -f Lib/test/test_importlib/data/example-21.12-py3.6.egg

# docs
mkdir html
tar xf %{SOURCE1} -C html

find . -type f -print0 | xargs -0 perl -p -i -e 's@/usr/local/bin/python@/usr/bin/python3@'


%build
rm -f Modules/Setup.local

export OPT="%{optflags} -g"

# to fix curses module build
export CFLAGS="%{optflags} -I/usr/include/ncursesw"
export CPPFLAGS="%{optflags} -I/usr/include/ncursesw"

autoreconf -vfi
# Remove -Wl,--no-undefined
%define _disable_ld_no_undefined 1
%configure  --with-threads \
                --enable-ipv6 \
                --with-dbmliborder=gdbm \
                --with-system-expat \
                --with-system-ffi \
                --enable-shared \
                --without-ensurepip \
%if %{with valgrind}
                --with-valgrind
%endif


# fix build
#perl -pi -e 's/^(LDFLAGS=.*)/$1 -lstdc++/' Makefile
# (misc) if the home is nfs mounted, rmdir fails due to delay
export TMP="/tmp" TMPDIR="/tmp"
#%make LN="ln -sf"
make EXTRA_CFLAGS="$CFLAGS" LN="ln -sf"

%install
mkdir -p %{buildroot}%{_prefix}/lib/python%{dirver}

# fix Makefile to get rid of reference to distcc
perl -pi -e "/^CC=/ and s/distcc/gcc/" Makefile

# set the install path
echo '[install_scripts]' >setup.cfg
echo 'install_dir='"${RPM_BUILD_ROOT}/usr/bin" >>setup.cfg

# python is not GNU and does not know fsstd
mkdir -p %{buildroot}%{_mandir}
%makeinstall_std LN="ln -sf"

# overwrite the copied binary with a link
pushd %{buildroot}%{_bindir} 
#ln -sf python%{dirver}m python%{dirver}
ln -sf python%{dirver} python%{familyver}
popd

(cd %{buildroot}%{_libdir}; ln -sf `ls libpython%{lib_major}*.so.*` libpython%{lib_major}.so)

# install pynche as pynche3
cat << EOF > %{buildroot}%{_bindir}/pynche3
#!/bin/bash
exec %{_libdir}/python%{dirver}/site-packages/pynche/pynche
EOF
rm -f Tools/pynche/*.pyw
cp -r Tools/pynche %{buildroot}%{_libdir}/python%{dirver}/site-packages/

chmod 755 %{buildroot}%{_bindir}/{idle3,pynche3}

ln -f Tools/pynche/README Tools/pynche/README.pynche

%if %{with valgrind}
install Misc/valgrind-python.supp -D %{buildroot}%{_libdir}/valgrind/valgrind-python3.supp
%endif

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-tkinter3.desktop << EOF
[Desktop Entry]
Name=IDLE
Name[ru]=IDLE
Comment=IDE for Python3
Comment[ru]=IDE для Python3
Exec=%{_bindir}/idle3
Icon=development_environment_section
Terminal=false
Type=Application
Categories=Development;IDE;
EOF


cat > %{buildroot}%{_datadir}/applications/rosa-%{name}-docs.desktop << EOF
[Desktop Entry]
Name=Python documentation
Name[ru]=Документация Python
Comment=Python complete reference
Comment[ru]=Полное руководство по языку Python
Exec=%{_bindir}/xdg-open %{_defaultdocdir}/%{name}-docs/index.html
Icon=documentation_section
Terminal=false
Type=Application
Categories=Documentation;
EOF

# fix non real scripts
#chmod 644 %{buildroot}%{_libdir}/python*/test/test_{binascii,grp,htmlparser}.py*
find %{buildroot} -type f \( -name "test_binascii.py*" -o -name "test_grp.py*" -o -name "test_htmlparser.py*" \) -exec chmod 644 {} \;
# fix python library not stripped
chmod u+w %{buildroot}%{_libdir}/libpython%{lib_major}*.so.1.0 %{buildroot}%{_libdir}/libpython3.so


%install_macro python3 %{SOURCE2}
%install_macro pybytecompile %{SOURCE3}

ln -s python3 %{buildroot}%{_bindir}/python
ln -s pydoc3 %{buildroot}%{_bindir}/pydoc
ln -s python3-config %{buildroot}%{_bindir}/python-config

# Install pathfix.py to bindir
# See https://github.com/fedora-python/python-rpm-porting/issues/24
cp -p Tools/scripts/pathfix.py %{buildroot}%{_bindir}/

%check
# (misc) if the home is nfs mounted, rmdir fails
export TMP="/tmp" TMPDIR="/tmp"

# all tests must pass
# but we disable network on BS
#WITHIN_PYTHON_RPM_BUILD= make test TESTOPTS="-u none -x $EXCLUDE"
# consider use network on local build
#WITHIN_PYTHON_RPM_BUILD= make test TESTOPTS="-u network -x $EXCLUDE"

%files
%{_rpmmacrodir}/*python3*
%{_rpmmacrodir}/*pybytecompile*
%{_includedir}/python*/pyconfig.h
%{_libdir}/python*/config*/Makefile
%exclude %{_libdir}/python*/site-packages/pynche
%exclude %{_libdir}/python*/lib-dynload/_tkinter.*.so

%dir %{_libdir}/python*
%{_libdir}/python*/LICENSE.txt
%{_libdir}/python%{dirver}/*.py
%{_libdir}/python%{dirver}/__pycache__
%{_libdir}/python%{dirver}/collections
%{_libdir}/python%{dirver}/concurrent
%{_libdir}/python%{dirver}/ctypes
%{_libdir}/python%{dirver}/curses
%{_libdir}/python%{dirver}/dbm
%{_libdir}/python%{dirver}/distutils
%{_libdir}/python%{dirver}/email
%{_libdir}/python%{dirver}/encodings
%{_libdir}/python%{dirver}/html
%{_libdir}/python%{dirver}/http
%{_libdir}/python%{dirver}/importlib
%{_libdir}/python%{dirver}/json
%{_libdir}/python%{dirver}/lib-dynload
%{_libdir}/python%{dirver}/lib2to3
%{_libdir}/python%{dirver}/logging
%{_libdir}/python%{dirver}/multiprocessing
%{_libdir}/python%{dirver}/pydoc_data
%{_libdir}/python%{dirver}/site-packages
%{_libdir}/python%{dirver}/sqlite3
%{_libdir}/python%{dirver}/turtledemo
%{_libdir}/python%{dirver}/unittest
%{_libdir}/python%{dirver}/urllib
%{_libdir}/python%{dirver}/venv
%{_libdir}/python%{dirver}/wsgiref*
%{_libdir}/python%{dirver}/xml
%{_libdir}/python%{dirver}/xmlrpc
%{_libdir}/python%{dirver}/asyncio
%{_libdir}/python%{dirver}/ensurepip
# %exclude %{_libdir}/python%{dirver}/ensurepip/_bundled
%{_bindir}/pathfix.py
%{_bindir}/pydoc3*
%{_bindir}/python3*
%{_bindir}/pydoc
%{_bindir}/python
%{_bindir}/2to3
%{_bindir}/2to3-%{dirver}
# do not exclude it
# requires by systemtap
%{_bindir}/python*config
#%{_datadir}/emacs/site-lisp/*
%{_mandir}/man*/*
%if %{with valgrind}
%{_libdir}/valgrind/valgrind-python3.supp
%endif

%files -n %{lib_name}
%{_libdir}/libpython*.so.1*

%files -n %{develname}
%{_libdir}/libpython*.so
%{_includedir}/python*
%{_libdir}/python*/config-*
%{_libdir}/python*/test/
%{_bindir}/python%{dirver}*-config
%{_bindir}/python%{familyver}-config
%{_libdir}/pkgconfig/python*.pc
#%{_libdir}/python*/config-*
%exclude %{_includedir}/python*/pyconfig.h
%exclude %{_libdir}/python*/config*/Makefile

%files docs
%doc html/*/*
%{_datadir}/applications/rosa-%{name}-docs.desktop

%files -n tkinter3
%{_libdir}/python*/tkinter/
%{_libdir}/python*/idlelib
%{_libdir}/python*/site-packages/pynche
%{_libdir}/python*/lib-dynload/_tkinter.*.so

%files -n tkinter3-apps
%{_bindir}/idle3*
%{_bindir}/pynche3
%{_datadir}/applications/rosa-tkinter3.desktop




# --- > CVE
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14108
# CVE-2023-27043 < not completed
# CVE-2023-36632 < a controversial issue
# --------------------------------------------------/\
# CVE-2022-42919



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16029 |21mr|python3-google-auth-httplib2-0.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name google-auth-httplib2

Name:		python3-%{pypi_name}
Version:	0.1.0
Release:	1
Summary:	Google Authentication Library: httplib2 transport
Group:		Development/Python
License:	Apache 2.0
URL:		https://github.com/GoogleCloudPlatform/google-auth-library-python-httplib2
Source0:	https://pypi.io/packages/source/g/google-auth-httplib2/google-auth-httplib2-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	python3-devel
BuildRequires:	python3dist(google-auth)
BuildRequires:	python3dist(httplib2) >= 0.9.1
BuildRequires:	python3dist(setuptools)
Requires:	python3dist(google-auth)
Requires:	python3dist(httplib2) >= 0.9.1

%description
httplib2 Transport for Google Auth |pypi|This library provides an httplib2_
transport for google-auth_... note:: httplib has lots of problems such as lack
of threadsafety and insecure usage of TLS. Using it is highly discouraged. This
library is intended to help existing users of oauth2client migrate to google-
auth... |pyp .. _httplib2: .. _google-auth:

%prep
%setup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || true

%files
%doc LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/google_auth_httplib2.py*
%{python3_sitelib}/google_auth_httplib2-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16030 |21mr|python3-google-cloud-core-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Defines common helpers used by all Google API clients
Name:		python3-google-cloud-core
Version:	2.0.0
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/GoogleCloudPlatform/google-cloud-python
Source0:	https://files.pythonhosted.org/packages/44/eb/d385ac156af85a18870839a8c9402055b83189a97bef486585822a8eb1dc/google-cloud-core-2.0.0.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This library is not meant to stand-alone. Instead it defines 
common helpers used by all Google API clients.

%files
%{python3_sitelib}/*

#----------------------------------------------------------------------
%prep
%autosetup -p1 -n google-cloud-core-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16031 |21mr|python3-google-resumable-media-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Utilities for Google Media Downloads and Resumable Uploads
Name:		python3-google-resumable-media
Version:	2.0.0
Release:	1
License:	ASLv2
Group:		Development/Python
Url:		https://github.com/GoogleCloudPlatform/google-resumable-media-python
Source0:	https://files.pythonhosted.org/packages/b1/ff/a6b7112fd2d6a09bb09479d2cd9c2eef8bd04cf6793e6144a3bb7434b1f9/google-resumable-media-2.0.0.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)

%description
Utilities for Google Media Downloads and Resumable Uploads

%prep
%setup -qn google-resumable-media-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

%files
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16032 |21mr|python3-h11-0.12.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	h11

Summary:	A pure-Python, bring-your-own-I/O implementation of HTTP/1.1
Name:		python3-%{module}
Version:	0.12.0
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://github.com/python-hyper/h11
Source0:	https://pypi.python.org/packages/source/h/%{module}/%{module}-%{version}.tar.gz

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)

Provides:	    python-%{module} = %{EVRD}

BuildArch:	noarch

%description
This is a little HTTP/1.1 library written from scratch in Python,
heavily inspired by hyper-h2.
It is a "bring-your-own-I/O" library; h11 contains no IO
code whatsoever.  This means you can hook h11 up to your
favorite network API, and that could be anything you want:
synchronous, threaded, asynchronous, or
your own implementation of RFC 6214 -- h11 will not judge you.
This also means that h11 is not immediately useful out of the box:
it is a toolkit for building
programs that speak HTTP, not something that could
directly replace requests or
twisted.web or whatever.  But h11 makes it much
easier to implement something
like requests or twisted.web.

%files
%doc LICENSE.txt README.rst
%{py3_puresitedir}/h11
%{py3_puresitedir}/h11*.egg-info
#----------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%check
pytest-3 --verbose


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16033 |21mr|python3-lxc-3.0.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude %{?__provides_exclude:%__provides_exclude|}_lxc\\..*\\.so

Name:           python3-lxc
Version:        3.0.4
Epoch:          2
Release:        10
Summary:        Python binding for LXC
Group:          Development/Python
License:        LGPLv2+
URL:            https://linuxcontainers.org/lxc
Source0:        https://linuxcontainers.org/downloads/lxc/%{name}-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  pkgconfig(lxc)

%global desc Linux Resource Containers provide process and resource isolation\
without the overhead of full virtualization.\
\
The python3-lxc package contains the Python3\
binding for LXC.

%description
%{desc}

%files
%license COPYING
%doc README.md examples
%{python3_sitearch}/*
############################################################

%prep
%autosetup

%build
%py3_build

%install
%py3_install

# fix examples
chmod -x examples/*.py
sed -i -e '1 s@^#!.*@#!%{__python3}@' examples/*.py

%check
%{__python3} setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16034 |21mr|python3-sgmllib3k-1.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.2.2
%global pypi_name sgmllib3k
%define version 1.0.0

Name:           python3-sgmllib3k
Version:        1.0.0
Release:        2
Group:          Development/Python
Summary:        Py3k port of sgmllib

License:        BSD License
URL:            http://hg.hardcoded.net/sgmllib
Source0:        https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools


%description
 sgmllib3k -- Py3k port of the old stdlib module sgmllib was dropped in Python
3. For those depending on it, that's somewhat infortunate. This is a quick and
dirty port of this old module. I just ran 2to3 on it and published it. I don't
indend to maintain it, so it might be a good idea to eventually think about
finding another module to use.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files
%doc
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/sgmllib.py*
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16035 |21mr|python3-sqlite3-0.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname pysqlite3

Name:		python3-sqlite3
Version:	0.4.5
Release:	1
License:	zlib
Group:		Development/Python
Summary:	Python3 bindings for sqlite3
Url:		https://github.com/coleifer/pysqlite3
Source0:	https://github.com/coleifer/pysqlite3/archive/%{version}.tar.gz?/pysqlite3-%{version}.tar.gz
BuildRequires:	pkgconfig(python3) 
BuildRequires:	sqlite3-devel 
BuildRequires:	python3egg(setuptools) 
Provides:	python3egg(sqlite3) = %{version} 

%description
This library takes the SQLite module from Python 3 and packages it as a 
separately-installable module.
This may be useful for creating SQLite modules capable of working with other 
versions of SQLite (via the amalgamation option).

#=======================================================================
%files
%doc LICENSE README.md
%{python3_sitearch}/*.egg-info/*
%{python3_sitearch}/pysqlite3/*
#=======================================================================
%prep
%setup -q -n %{realname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16036 |21mr|python3-twine-3.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	twine

Summary:	Collection of utilities for publishing packages on PyPI
Name:		python3-%{module}
Version:	3.4.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://%{module}.readthedocs.io/
Source0:	https://pypi.io/packages/source/t/%{module}/%{module}-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(wheel)
BuildArch:	noarch

%description
Twine is `a utility`_ for `publishing`_ Python packages on `PyPI`_.
It provides build system independent uploads of source and binary
`distribution artifacts <distributions>`_ for both new and existing
`projects`_.

%files
%doc AUTHORS LICENSE README.rst docs/changelog.rst docs/requirements.txt
%{_bindir}/%{module} 
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}*.egg-info
#--------------------------------------------
%prep
%autosetup -p1 -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16037 |21mr|python3-unittest2-1.1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname unittest2

Name:           python3-%{oname}
Version:        1.1.0
Release:        8
Url:            http://pypi.python.org/pypi/unittest2
Summary:        Backport ofunittest2 to Python3
License:        BSD
Group:          Development/Python
Source:         http://pypi.python.org/packages/source/u/%{oname}/%{oname}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(argparse)
BuildRequires:  python3egg(six)
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(traceback2)
BuildRequires:  python3egg(linecache2)
BuildRequires:  python3egg(pip)
Requires:       python3
BuildArch:	noarch



%description
unittest2 is a backport of the new features added to the unittest
testing framework in Python 2.7. It has been tested to on Python 2.4 -
2.6.

To use unittest2 instead of unittest simply replace ``import
unittest`` with ``import unittest2``.

Classes in unittest2 derive from the equivalent classes in unittest,
so it should be possible to use the unittest2 test running infra-
structure without having to switch all your tests to using unittest2
immediately. Similarly, you can use the new assert methods on
``unittest2.TestCase`` with the standard unittest test running
infrastructure. Not all of the new features in unittest2 will work
with the standard unittest test loaders and runners, however.
This is python3 module.

%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}

# rename py3 binaries for coexsistance
mv %{buildroot}%{_bindir}/unit2 %{buildroot}%{_bindir}/unit2-python%{py3_ver}


%files
%doc README.txt
%{_bindir}/*
%{py3_puresitedir}/unittest2/
%{py3_puresitedir}/unittest2-%{version}-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16038 |21mr|python-actdiag-2.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname actdiag
%global srcdesc \
actdiag and its family generate diagram images from simply text file.\
\
Features:\
- Generates beautiful diagram images from simple text format (similar to\
  graphviz’s DOT format)\
- Layouts diagram elements automatically\
- Embeds to many documentations; Sphinx, Trac, Redmine and some wikis\
\
- Supports many types of diagrams\
  - activity diagram (with this package)\
  - block diagram (with the blockdiag package)\
  - sequence diagram (with the seqdiag package)\
  - logical network diagram (with the nwdiag package)\
\
Enjoy documentation with actdiag !

Name:           python-%{srcname}
Version:        2.0.0
Release:        4
Summary:        Actdiag generates activity-diagram images from text
Group:		Development/Python
License:        ASL 2.0
URL:            http://blockdiag.com/
Source:         %pypi_source

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-docutils
BuildRequires:  python3-nose
BuildRequires:  python3-pillow
BuildRequires:  python3-reportlab
BuildRequires:  python3-setuptools


%description %{srcdesc}


%package -n %{srcname}
Summary:        %{summary}
Requires:       python3-%{srcname} = %{version}-%{release}


%description -n %{srcname} %{srcdesc}


%package -n python3-%{srcname}
Summary:        Python 3 module for %{srcname}
%{?python_provide:%python_provide python3-%{srcname}}


%description -n python3-%{srcname}
%{summary}.


%prep
%autosetup -n %{srcname}-%{version} -p1


%build
%py3_build


%install
%py3_install
install -m 0644 -D %{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1


%if 0
%check
%{__python3} setup.py test
%endif


%files -n %{srcname}
%license LICENSE
%doc README.rst
%{_bindir}/%{srcname}
%{_mandir}/man1/%{srcname}.1*


%files -n python3-%{srcname}
%license LICENSE
%doc PKG-INFO README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{srcname}*
%exclude %{python3_sitelib}/%{srcname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16039 |21mr|python-aeidon-1.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)
%define module	aeidon

Summary:	Python package for reading, writing and manipulating text-based subtitle files
Name:		python-%{module}
Version:	1.9
Release:	1
License:	GPLv3+
Group:		Development/Python
Url:		http://download.gna.org/gaupol/doc/api/aeidon.html
Source0:	https://pypi.io/packages/source/a/aeidon/aeidon-%{version}.tar.gz
Patch1:		aeidon-setup.patch
BuildArch:	noarch
BuildRequires:	intltool
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
Recommends:	iso-codes
Recommends:	python3-chardet
Recommends:	python3-enchant >= 1.4.0

%description
aeidon is a Python package that provides classes and functions for dealing
with text-based subtitle files of many different formats. Functions exist
for reading and writing subtitle files as well as manipulating subtitle data,
i.e. positions (times or frames) and texts.

#----------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Python package for reading, writing and manipulating text-based subtitle files
Group:		Development/Python

%description -n python3-%{module}
aeidon is a Python package that provides classes and functions for dealing
with text-based subtitle files of many different formats. Functions exist
for reading and writing subtitle files as well as manipulating subtitle data,
i.e. positions (times or frames) and texts.

%files -n python3-%{module}
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}
sed -i 's/get_aeidon_version()/"%{version}"/' setup-aeidon.py

%build
%{__python3} setup-aeidon.py build '--executable=%{__python3} -s'

%install
%{__python3} setup-aeidon.py install -O1 --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16040 |21mr|python-alembic-1.6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname alembic
%global python_version 3

Name:             python-alembic
Version:	1.6.5
Release:	1
Summary:          Database migration tool for SQLAlchemy

Group:		Development/Python
License:          MIT
URL:              https://pypi.io/project/alembic
Source0:	https://files.pythonhosted.org/packages/2b/cc/5e450e60509b9a68fd761f2fa9ccb6fb9e63d7f9c2b60703bec2e5fd1840/alembic-1.6.5.tar.gz

BuildArch:        noarch

BuildRequires:    help2man

BuildRequires:    python3-devel
BuildRequires:    python3-sqlalchemy >= 1.1
BuildRequires:    python3-mako
BuildRequires:    python3-nose
BuildRequires:    python3-setuptools
BuildRequires:    python3-mock
BuildRequires:    python3-dateutil
BuildRequires:    python3-pytest


%global _description\
Alembic is a new database migrations tool, written by the author of\
SQLAlchemy.  A migrations tool offers the following functionality:\
\
* Can emit ALTER statements to a database in order to change the structure\
  of tables and other constructs.\
* Provides a system whereby "migration scripts" may be constructed; each script\
  indicates a particular series of steps that can "upgrade" a target database\
  to a new version, and optionally a series of steps that can "downgrade"\
  similarly, doing the same steps in reverse.\
* Allows the scripts to execute in some sequential manner.\
\
Documentation and status of Alembic is at http://readthedocs.org/docs/alembic/

%description %_description


%package -n python3-alembic
Summary:          %summary

Requires:         python3-sqlalchemy >= 1.1
Requires:         python3-mako
Requires:         python3-setuptools
Requires:         python3-editor
Requires:         python3-dateutil
%{?python_provide:%python_provide python3-alembic}


%description -n python3-alembic %_description

%prep
%autosetup -p1 -n %{modname}-%{version}


%build
%py3_build

%{__mkdir_p} bin
echo 'python3 -c "import alembic.config; alembic.config.main()" $*' > bin/alembic
chmod 0755 bin/alembic
help2man --version-string %{version} --no-info -s 1 bin/alembic > alembic.1


%install

install -d -m 0755 %{buildroot}%{_mandir}/man1

%py3_install
mv %{buildroot}/%{_bindir}/%{modname} %{buildroot}/%{_bindir}/%{modname}-3
ln -s %{modname}-3 %{buildroot}/%{_bindir}/%{modname}-%{python3_version}
install -m 0644 alembic.1 %{buildroot}%{_mandir}/man1/alembic-3.1
ln -s alembic-3.1 %{buildroot}%{_mandir}/man1/alembic-%{python3_version}.1

ln -s %{modname}-%{python_version} %{buildroot}/%{_bindir}/%{modname}
ln -s alembic-%{python_version}.1 %{buildroot}%{_mandir}/man1/alembic.1


%files -n python3-%{modname}
%doc LICENSE README.rst CHANGES docs
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}-*
%{_bindir}/%{modname}
%{_mandir}/man1/alembic.1*
%{_bindir}/%{modname}-3
%{_bindir}/%{modname}-%{python3_version}
%{_mandir}/man1/alembic-3.1*
%{_mandir}/man1/alembic-%{python3_version}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16041 |21mr|python-amqp-5.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name amqp

Name:		python-%{pypi_name}
Version:	5.1.0
Release:	1
Summary:	Low-level AMQP client for Python (fork of amqplib)
Group:		Development/Python
License:	LGPLv2+
URL:		https://pypi.python.org/pypi/amqp
Source0:	%{pypi_source}
BuildArch:	noarch

%description
Low-level AMQP client for Python

This is a fork of amqplib, maintained by the Celery project.

This library should be API compatible with librabbitmq.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Client library for AMQP

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(nose)

%description -n python3-%{pypi_name}
Low-level AMQP client for Python
This is a fork of amqplib, maintained by the Celery project.
This library should be API compatible with librabbitmq.

%files -n python3-%{pypi_name}
%doc Changelog LICENSE README.rst
%{py3_puresitedir}/%{pypi_name}/
%{py3_puresitedir}/%{pypi_name}*.egg-info

#---------------------------------------------------------------------------

%package doc
Summary:        Documentation for python-amqp
Group:          Books/Computer books
License:        LGPLv2+
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(sphinx-celery)
BuildRequires:  python3egg(vine)
Requires:       python3-%{pypi_name} = %{version}-%{release}

%description doc
Documentation for python-amqp

%files doc
%doc LICENSE
%doc docs/build/html docs/reference

#---------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

#export PYTHONPATH="$( pwd ):$PYTHONPATH"
#chmod -x demo/*.py

pushd docs
sed -i s/^extensions/disable_extensions/ conf.py
SPHINX_DEBUG=1 sphinx-build -b html . build/html
rm -rf build/html/.doctrees build/html/.buildinfo
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16042 |21mr|python-aniso8601-9.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname aniso8601

Name:		python-%{srcname}
Version:	9.0.1
Release:	1
Summary:	Another ISO 8601 parser for Python
Group:		Development/Python
License:	GPLv3+
URL:		https://bitbucket.org/nielsenb/%{srcname}
Source0:	https://pypi.io/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(python-dateutil)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Python library for parsing date strings
in ISO 8601 format into datetime format.

#------------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	Another ISO 8601 parser for Python
Group:		Development/Python
Requires:	python3-dateutil

%description -n python3-%{srcname}
Python 3 library for parsing date strings
in ISO 8601 format into datetime format.

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/*

#------------------------------------------------------------------------------
%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{srcname}.egg-info

%build
%py3_build

%install
%py3_install

%check
%__python3 -m unittest discover aniso8601/tests/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16043 |21mr|python-ansible-runner-2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ansible-runner

Name:		python-%{pypi_name}
Version:	2.0.2
Release:	1
Summary:	A tool and python library to interface with Ansible
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/ansible/ansible-runner
# ansible-runner doesn't include the LICENSE file in the tarball on pythonhosted yet.
# pulling from github intil the pythonhosted tarball is updated
Source0:	https://files.pythonhosted.org/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# Source0:	https://github.com/ansible/%%{pypi_name}/archive/%%{version}/%%{pypi_name}-%%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	python3-devel
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(pbr)
BuildRequires:	python3egg(psutil)
BuildRequires:	python3egg(pexpect) >= 4.6
BuildRequires:	python3egg(pyyaml)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(python-daemon)

%description
Ansible Runner is a tool and python library that helps when interfacing with
Ansible from other systems whether through a container image interface, as a
standalone tool, or imported into a python project.

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

Requires:	ansible >= 2.6
Requires:	python3-daemon
Requires:	python3dist(pexpect) >= 4.6
Requires:	python3dist(psutil)
Requires:	python3dist(pyyaml)
Requires:	python3dist(setuptools)
Requires:	python3dist(six)

%description -n python3-%{pypi_name}
Ansible Runner is a tool and python library that helps when interfacing with
Ansible from other systems whether through a container image interface, as a
standalone tool, or imported into a python project.

%files -n python3-%{pypi_name}
%license LICENSE.md
%doc README.md
%{_bindir}/ansible-runner
%{python3_sitelib}/ansible_runner
%{python3_sitelib}/ansible_runner-%{version}-py%{python3_version}.egg-info
%{_datadir}/ansible-runner/utils

#--------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16044 |21mr|python-anyio-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name anyio

Summary:	Compatibility layer for multiple asynchronous event loop implementations
Name:		python-%{pypi_name}
Version:	3.4.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/agronholm/%{pypi_name}
Source0:	https://pypi.io/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
AnyIO is a asynchronous compatibility API that allows applications and
libraries written against it to run unmodified on asyncio, curio and trio.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Compatibility layer for multiple asynchronous event loop implementations
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pip
BuildRequires:	python3-setuptools_scm
BuildRequires:	python3-wheel
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(curio)

%description -n python3-%{pypi_name}
AnyIO is a asynchronous compatibility API that allows applications and
libraries written against it to run unmodified on asyncio, curio and trio.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16045 |21mr|python-anyjson-0.3.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  anyjson

Summary:	Python wrapper for JSON implementations
Name:		python-%{module}
Version:	0.3.3
Release:	9
Source0:	http://pypi.python.org/packages/source/a/anyjson/anyjson-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://bitbucket.org/runeh/anyjson
Recommends:	python3-json
Recommends:	python3-cjson
Recommends:	python3-simplejson
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Anyjson loads whichever is the fastest JSON module installed and provides
a uniform API regardless of which JSON implementation is used.

Originally part of carrot (http://github.com/ask/carrot/)

#---------------------------------------------------------------------------
%package -n python3-anyjson
Summary:        Python wrapper for JSON implementations
Group:          Development/Python

%description -n python3-anyjson
Anyjson loads whichever is the fastest JSON module installed and provides
a uniform API regardless of which JSON implementation is used.

Originally part of carrot (http://github.com/ask/carrot/)

%files -n python3-anyjson
%doc README
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/%{module}

#----------------------------------------------------------------------------
%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16046 |21mr|python-apache-libcloud-3.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module apache-libcloud

Summary:       Abstract away differences among multiple cloud provider APIs
Name:          python-%{module}
Version:       3.3.1
Release:       3
License:       ASL 2.0
Group:         Development/Python
Url:           https://libcloud.apache.org
Source0:       https://apache-mirror.rbc.ru/pub/apache/libcloud/%{module}-%{version}.tar.gz
Patch1:        0001-no-pytest-runner.patch
BuildRequires: python3-setuptools
BuildRequires: pkgconfig(python3)
Requires:      python3-simplejson
Provides:      python3-libcloud = %{EVRD}
BuildArch:     noarch

%description
Apache Libcloud is a standard Python library that abstracts away differences
among multiple cloud provider APIs.

#====================================================================
%package -n python3-%{module}
Summary: Abstract away differences among multiple cloud provider APIs
Group:   Development/Python

%description -n python3-%{module}
Apache Libcloud is a standard Python library that abstracts away differences
among multiple cloud provider APIs.

%files -n python3-%{module}
%dir %{python3_sitelib}/libcloud/
%{python3_sitelib}/libcloud/*
%{python3_sitelib}/apache_libcloud-*.egg-info
#====================================================================
%prep
%setup -qn apache-libcloud-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16047 |21mr|python-apipkg-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname apipkg
%global sum A Python namespace control and lazy-import mechanism

Name:		python-%{srcname}
Version:	1.5
Release:	1
Summary:	%{sum}
Group:		Development/Python
License:	MIT
URL:		https://pypi.org/project/apipkg/
Source0:	https://pypi.io/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)

%description
With apipkg you can control the exported namespace of a python package and
greatly reduce the number of imports for your users. It is a small python
module that works on virtually all Python versions, including CPython2.3 to
Python3.1, Jython and PyPy. It co-operates well with Python's help() system,
custom importers (PEP302) and common command line completion tools.

#--------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	%{sum}
Group:		Development/Python

%description -n python3-%{srcname}
With apipkg you can control the exported namespace of a python package and
greatly reduce the number of imports for your users. It is a small python
module that works on virtually all Python versions, including CPython2.3 to
Python3.1, Jython and PyPy. It co-operates well with Python's help() system,
custom importers (PEP302) and common command line completion tools.

%files -n python3-%{srcname}
%doc CHANGELOG README.rst
%{python3_sitelib}/*

#--------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%py3_build

%install
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16048 |21mr|python-appdirs-1.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	appdirs

Name:		python-%{module}
Summary:	A small Python module for determining appropriate platform-specific dirs
Version:	1.4.4
Release:	2
Group:		Development/Python
License:	MIT
Url:		http://github.com/ActiveState/appdirs
Source0:	https://github.com/ActiveState/appdirs/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)

%description
What directory should your app use for storing user data?

This kind of thing is what the ``appdirs`` module is for.
``appdirs`` will help you choose an appropriate:

- user data dir (``user_data_dir``)
- user config dir (``user_config_dir``)
- user cache dir (``user_cache_dir``)
- site data dir (``site_data_dir``)
- site config dir (``site_config_dir``)
- user log dir (``user_log_dir``)

and also:

- is a single module so other Python packages can include their own
  private copy
- is slightly opinionated on the directory names used. Look for "OPINION" in
  documentation and code for when an opinion is being applied.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}

Summary:	A small Python module for determining appropriate platform-specific dirs
Group:		Development/Python
BuildRequires:	pythonegg(setuptools)	
BuildRequires:	python2-pkg-resources

%description -n python2-%{module}
What directory should your app use for storing user data?
  
%files -n python2-%{module}
%doc CHANGES.rst
%doc LICENSE.txt
%doc README.rst
%{py2_puresitedir}/appdirs.py*
%{py2_puresitedir}/appdirs*.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{module}

Summary:	A small Python module for determining appropriate platform-specific dirs
Group:		Development/Python
BuildRequires: python3egg(setuptools)	

%description -n python3-%{module}
What directory should your app use for storing user data?

This kind of thing is what the ``appdirs`` module is for.
``appdirs`` will help you choose an appropriate:

- user data dir (``user_data_dir``)
- user config dir (``user_config_dir``)
- user cache dir (``user_cache_dir``)
- site data dir (``site_data_dir``)
- site config dir (``site_config_dir``)
- user log dir (``user_log_dir``)

and also:

- is a single module so other Python packages can include their own
  private copy
- is slightly opinionated on the directory names used. Look for "OPINION" in
  documentation and code for when an opinion is being applied.

%files -n python3-%{module}
%doc CHANGES.rst
%doc LICENSE.txt
%doc README.rst
%{py3_puresitedir}/appdirs.py*
%{py3_puresitedir}/appdirs*.egg-info
%{py3_puresitedir}/__pycache__/appdirs.*.pyc

#----------------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

cp -a . %{py3dir}

%build
%{__python2} setup.py build

pushd %{py3dir}
%{__python3} setup.py build
popd

%install
%{__python2} setup.py install --root=%{buildroot}

pushd %{py3dir}
%{__python3} setup.py install --root=%{buildroot}
popd

%check
%{__python2} setup.py test   

pushd %{py3dir}
%{__python2} setup.py test   
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16049 |21mr|python-app_version-1.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name app_version

Name:           python-%{pypi_name}
Version:        1.0.1
Release:        4
Summary:        A tiny utility to get application version from pkg_resouces
Group:          Development/Python
License:        MIT
URL:            https://github.com/lambdalisue/app_version
Source0:        https://files.pythonhosted.org/packages/7d/07/1089c21119a1ea49326779d9e89dc57845a785f91cd52561f3492def4049/app_version-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(pytest-runner)

%description
This tiny application allow you to access version information of setup.py from __init__.py

#----------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
This tiny application allow you to access version information of setup.py from __init__.py

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/app_version*

#----------------------------------------------------------------------

%prep
%autosetup -n app_version-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16050 |21mr|python-APScheduler-3.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname APScheduler
%global _description %{expand:
Advanced Python Scheduler (APScheduler) is a Python library that lets you
schedule your Python code to be executed later, either just once or
periodically. You can add new jobs or remove old ones on the fly as you
please. If you store your jobs in a database, they will also survive
scheduler restarts and maintain their state. When the scheduler is
restarted, it will then run all the jobs it should have run while it was
offline.}

Name:		python-APScheduler
Version:	3.7.0
Release:	1
Summary:	In-process task scheduler with Cron-like capabilities
Group:		Development/Python
License:	MIT
URL:		https://github.com/agronholm/apscheduler
Source0:	%pypi_source
BuildArch:      noarch

%description %_description

#----------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-setuptools_scm
BuildRequires:	python3-pytest
BuildRequires:	python3-pytest-asyncio
BuildRequires:	python3-pytest-tornado
BuildRequires:	python3-pytest-cov
BuildRequires:	python3-tornado
BuildRequires:	python3-twisted
BuildRequires:	python3-redis
BuildRequires:	python3-kazoo
BuildRequires:	python3-gevent
BuildRequires:	python3-sqlalchemy
BuildRequires:	python3-pymongo
BuildRequires:	python3-pytz
BuildRequires:	python3-tzlocal

%description -n python3-%{srcname} %_description

%files -n python3-%{srcname}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/apscheduler/

#----------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1
# Remove that test as it require services (redis, zookeeper, ...)
# up and running. Upstream provides a docker compose to spawn
# services before running these tests.
rm tests/test_jobstores.py

%build
%py3_build

%install
%py3_install

%check
# Default timezone to UTC otherwise unit tests fail.
export TZ=UTC
%__python3 -m pytest -s tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16051 |21mr|python-argcomplete-1.12.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname argcomplete

# Currently it's broken: https://github.com/kislyuk/argcomplete/issues/174
%bcond_with check

Name:		python-%{modname}
Summary:	Bash tab completion for argparse
Version:	1.12.3
Release:	1
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/kislyuk/argcomplete
Source0:	%{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
BuildArch:      noarch

%global _description \
Argcomplete provides easy, extensible command line tab completion of\
arguments for your Python script.\
\
It makes two assumptions:\
\
 * You are using bash as your shell\
 * You are using argparse to manage your command line arguments/options\
\
Argcomplete is particularly useful if your program has lots of\
options or subparsers, and if your program can dynamically suggest\
completions for your argument/option values (for example, if the user\
is browsing resources over the network).

%description %{_description}


#-----------------------------------------------------------------------------
%package -n python3-%{modname}
Summary:        %{summary}
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%if %{with check}
BuildRequires:  python3egg(3)(pexpect)
BuildRequires:  tcsh
%endif

# pkg_resources module is used from python-argcomplete-check-easy-install-script
Requires:       python3-setuptools

%description -n python3-%{modname} %{_description}

%files -n python3-%{modname}
%doc LICENSE.rst
%doc README.rst
%{python3_sitelib}/%{modname}-*.egg-info/
%{python3_sitelib}/%{modname}/
%{_bindir}/activate-global-python-argcomplete
%{_bindir}/python-argcomplete-check-easy-install-script
%{_bindir}/python-argcomplete-tcsh
%{_bindir}/register-python-argcomplete
%{_sysconfdir}/bash_completion.d/python-argcomplete

#-----------------------------------------------------------------------------

%prep
%setup -n %{modname}-%{version}
# Remove useless BRs
sed -i -r -e '/tests_require = /s/"(coverage|flake8|wheel)"[, ]*//g' setup.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
install -p -m0644 %{buildroot}%{python3_sitelib}/%{modname}/bash_completion.d/python-argcomplete %{buildroot}%{_sysconfdir}/bash_completion.d/

%if %{with check}
%check
export LC_ALL=C.UTF-8
%__python3 setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16052 |21mr|python-argparse-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	argparse

Summary:	A Python command line parser inspired by optparse
Name:		python-%{module}
Version:	1.4.0
Release:	1
Url:		http://argparse.python-hosting.com/
Source0:	https://files.pythonhosted.org/packages/18/dd/e617cfc3f6210ae183374cd9f6a26b20514bbb5a792af97949c5aacddf0f/argparse-1.4.0.tar.gz
License:	BSD
Group:		Development/Python
Requires:	python >= 2.3
BuildRequires:	pkgconfig(python2) >= 2.3
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description
The argparse module makes writing command line tools in Python easy.
Just briefly describe your command line interface and argparse will
take care of the rest, including:

* parsing the arguments and flags from ``sys.argv``
* converting arg strings into objects for your program
* formatting and printing any help messages
* and much more ... 

For those familiar with the optparse module from the Python standard
library, argparse improves on this module in a number of ways,
including:

* handling positional arguments
* supporting sub-commands
* allowing alternative option prefixes like ``+`` and ``/``
* handling zero-or-more and one-or-more style arguments
* producing more informative usage messages
* providing a much simpler interface for custom types and actions

%files
%doc *.txt doc/*
%{python2_sitelib}/*

%package -n python3-%{module}
Summary:	A Python command line parser inspired by optparse
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
The argparse module makes writing command line tools in Python easy.
Just briefly describe your command line interface and argparse will
take care of the rest, including:

* parsing the arguments and flags from ``sys.argv``
* converting arg strings into objects for your program
* formatting and printing any help messages
* and much more ... 

For those familiar with the optparse module from the Python standard
library, argparse improves on this module in a number of ways,
including:

* handling positional arguments
* supporting sub-commands
* allowing alternative option prefixes like ``+`` and ``/``
* handling zero-or-more and one-or-more style arguments
* producing more informative usage messages
* providing a much simpler interface for custom types and actions

%files -n python3-%{module}
%{python3_sitelib}/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

cp -a . %{py3dir}

%build
#nothing to do here.

%install
%__python2 setup.py install --root=%{buildroot} --record=FILE_LIST
chmod -R og-w *.txt doc/

pushd %{py3dir}
%__python3 setup.py install --root=%{buildroot} --record=FILE_LIST
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16053 |21mr|python-argparse-manpage-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	argparse-manpage

Summary:	Build manual page from python's ArgumentParser object
Name:		python-%{module}
Version:	1.5
Release:	1
Group:		Development/Python
License:	ASL 2.0
Url:		https://github.com/praiskup/argparse-manpage
Source0:	https://github.com/praiskup/argparse-manpage/archive/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
The initial code was developed for CrunchyFrog, a database query tool for Gnome. 
The frog is now retired and RunSQLRun is it's successor. Then, the build_manpage 
command was developed in andialbrecht and edited slightly in gabrielegiammatteo.
There's even an old blog post about this command.

#----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Build manual page from python's ArgumentParser object
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
The initial code was developed for CrunchyFrog, a database query tool for Gnome. 
The frog is now retired and RunSQLRun is it's successor. Then, the build_manpage 
command was developed in andialbrecht and edited slightly in gabrielegiammatteo.
There's even an old blog post about this command.

%files -n python3-%{module}
%{python3_sitelib}/*
%{_bindir}/argparse-manpage
%{_datadir}/man/man1/argparse-manpage.1.xz

#--------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16054 |21mr|python-asgiref-3.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module asgiref

%bcond_without  tests

Name:		python-%{module}
Version:	3.4.1
Release:	1
Summary:	ASGI specs, helper code, and adapters
Group:		Development/Python
# This is BSD + bundled async-timeout ASL 2.0
License:	BSD and ASL 2.0
URL:		https://github.com/django/asgiref
# PyPI tarball doesn't have tests
Source0:	https://github.com/django/%{module}/archive/%{version}/%{module}-%{version}.tar.gz
BuildArch:	noarch


%description
ASGI is a standard for Python asynchronous web apps and servers to communicate
with each other, and positioned as an asynchronous successor to WSGI.  This
package includes ASGI base libraries, such as:

* Sync-to-async and async-to-sync function wrappers, asgiref.sync
* Server base classes, asgiref.server
* A WSGI-to-ASGI adapter, in asgiref.wsgi

#-----------------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	%{summary}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
%if %{with tests}
BuildRequires:	python3egg(pytest)
%endif
# https://github.com/django/asgiref/commit/9c6df6e02700092eb19adefff3552d44388f69b8
Provides:	python3dist(async-timeout) == 3.0.1
Provides:	python3egg(async-timeout) == 3.0.1

%description -n python3-%{module}
ASGI is a standard for Python asynchronous web apps and servers to communicate
with each other, and positioned as an asynchronous successor to WSGI.  This
package includes ASGI base libraries, such as:

* Sync-to-async and async-to-sync function wrappers, asgiref.sync
* Server base classes, asgiref.server
* A WSGI-to-ASGI adapter, in asgiref.wsgi

%files -n python3-%{module}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py%{python3_version}.egg-info

#-----------------------------------------------------------------------------------

%prep
%autosetup -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose tests
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16055 |21mr|python-asn1crypto-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	asn1crypto

Name:		python-%{oname}
Version:	1.4.0
Release:	1
Summary:	Fast ASN.1 parser and serializer 
Source0:	https://files.pythonhosted.org/packages/6b/b4/42f0e52ac2184a8abb31f0a6f98111ceee1aac0b473cee063882436e0e09/asn1crypto-1.4.0.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/wbond/asn1crypto
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel
BuildRequires:	python2-devel

%description
Docs for this project are maintained
 at https://github.com/wbond/asn1crypto#readme.

#-----------------------------------------------------------

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:    Fast ASN.1 parser and serializer

%description -n python2-%{oname}
Docs for this project are maintained
 at https://github.com/wbond/asn1crypto#readme.

%files -n python2-%{oname}
%doc LICENSE
%doc changelog.md
%doc readme.md
%{py2_puresitedir}/asn1crypto
%{py2_puresitedir}/asn1crypto*.egg-info

#-----------------------------------------------------------

%package -n python3-%{oname}
Summary:    Fast ASN.1 parser and serializer

%description -n python3-%{oname}
Docs for this project are maintained
 at https://github.com/wbond/asn1crypto#readme.

%files -n python3-%{oname}
%doc LICENSE
%doc changelog.md
%doc readme.md
%{py3_puresitedir}/asn1crypto
%{py3_puresitedir}/asn1crypto*.egg-info

#-----------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
cp -a . %{py3dir}

%build
%py2_build
pushd %{py3dir}
%py3_build
popd

%install
%py2_install
pushd %{py3dir}
%py3_install
popd

%check
#python setup.py test
#pushd %{py3dir}
#python3 setup.py test
#popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16056 |21mr|python-astroid-2.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name astroid

%global __requires_exclude enum34|backports.functools-lru-cache|lazy-object-proxy

Summary:       Extension of compiler.ast Python pypi_name
Name:          python-%{pypi_name}
Version:	2.7.2
Release:	1
License:       GPLv2+
Group:         Development/Python
Url:           http://www.pylint.org/astroid
Source0:	https://files.pythonhosted.org/packages/6f/94/88d24ff14d5e00e78ad7f940dec22d9e95234a2bbf1c16ebcfa19d761ac6/astroid-2.7.2.tar.gz
BuildRequires: python3-setuptools
BuildRequires: python3-wheel
BuildArch:     noarch

%description
This pypi_name provides a common base representation of Python source
code for Logilab projects such as pylint. It extends class defined in
the compiler.ast pypi_name with some additional methods and attributes
#-------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:   Extension of compiler.ast Python pypi_name
Group:     Development/Python
Requires:  python3-lazy-object-proxy >= 1.4.0
Requires:  python3-wrapt >= 1.11
Requires:  python3-logilab-common >= 0.62.0
Provides:  python3-logilab-astng = %{EVRD}
Provides:  python3egg(logilab-astng) = %{EVRD}
Obsoletes: python3-logilab-astng < 0.25

%description -n python3-%{pypi_name}
This pypi_name provides a common base representation of Python source
code for Logilab projects such as pylint. It extends class defined in
the compiler.ast pypi_name with some additional methods and attributes

%files -n python3-%{pypi_name}
%{python3_sitelib}/astroid*
#-------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}
%apply_patches

%build

NO_SETUPTOOLS=1 %__python3 setup.py build

%install

NO_SETUPTOOLS=1 %__python3 setup.py install -O1 --root %{buildroot}
rm -rf %{buildroot}%{python3_sitelib}/astroid/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16057 |21mr|python-async-0.6.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-async
Version:	0.6.2
Release:	5
Summary:	A framework to process interdependent tasks in a pool of workers
Group:		Development/Python
License:	BSD
URL:		https://github.com/gitpython-developers/async
Source:		http://pypi.python.org/packages/source/a/async/async-%{version}.tar.gz
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Async aims to make writing asyncronous processing easier. It provides a
task-graph with interdependent tasks that communicate using blocking channels,
allowing to delay actual computations until items are requested. Tasks will
automatically be distributed among 0 or more threads for the actual
computation.

#---------------------------------------------

%package -n python2-async
%py2_migration_meta python2-async
Summary: A framework to process interdependent tasks in a pool of workers
Group: Development/Python

%description -n python2-async
Async aims to make writing asyncronous processing easier. It provides a
task-graph with interdependent tasks that communicate using blocking channels,
allowing to delay actual computations until items are requested. Tasks will
automatically be distributed among 0 or more threads for the actual
computation.


%files -n python2-async
%doc AUTHORS
%{py2_puresitedir}/*

#---------------------------------------------

%package -n python3-async
Summary: A framework to process interdependent tasks in a pool of workers
Group: Development/Python

%description -n python3-async
Async aims to make writing asyncronous processing easier. It provides a
task-graph with interdependent tasks that communicate using blocking channels,
allowing to delay actual computations until items are requested. Tasks will
automatically be distributed among 0 or more threads for the actual
computation.

This is the Python 3 package.

%files -n python3-async
%doc AUTHORS
%{py3_puresitedir}/*

#---------------------------------------------

%prep
%setup -qn async-%{version}
cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

pushd %{py3dir}
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16058 |21mr|python-atomicwrites-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with tests
%bcond_without docs

Name:       python-atomicwrites
Version:	1.4.0
Release:	1
Summary:    Python Atomic file writes on POSIX 
Group:      Development/Python
License:    MIT
URL:        https://github.com/untitaker/%{name}
Source0:    https://github.com/untitaker/%{name}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildArch:  noarch

%global short_name atomicwrites

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
%if %{with docs}
BuildRequires:  python3-sphinx
%endif
%if %{with tests}
BuildRequires:  python3-pytest
%endif

%description
This Python module provides atomic file writes on POSIX operating systems.
It sports:
* Race-free assertion that the target file doesn't yet exist
* Windows support
* Simple high-level API that wraps a very flexible class-based API

%package -n python3-atomicwrites
Summary:    Python Atomic file writes on POSIX 

%description -n python3-atomicwrites
This Python module provides atomic file writes on POSIX operating systems.
It sports:
* Race-free assertion that the target file doesn't yet exist
* Windows support
* Simple high-level API that wraps a very flexible class-based API

%prep
%setup -q

%build
%py3_build

%if %{with docs}
export PYTHONPATH=`pwd`
cd docs
%make SPHINXBUILD=sphinx-build man
cd ..
unset PYTHONPATH
%endif


%install
%py3_install

%if %{with docs}
install -d "%{buildroot}%{_mandir}/man1"
cp -r docs/_build/man/*.1 "%{buildroot}%{_mandir}/man1"
%endif

%check
%if %{with tests}
python3 -m pytest -v
%endif

%files -n python3-atomicwrites
%doc README.rst LICENSE
%{py3_puresitedir}/*
%if %{with docs}
%{_mandir}/man1/atomicwrites.1.*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16059 |21mr|python-attrdict-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name attrdict

Summary:	A dict with attribute-style access
Name:		python-%{pypi_name}
Version:	2.0.1
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		https://pypi.org/project/attrdict/
Source0:	%pypi_source
BuildRequires:	python2dist(setuptools)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%define _description \
A dict with attribute-style access.

%description
%{_description}

#----------------------------------------------------------------------------

%package -n python2-%{pypi_name}
Summary:	A dict with attribute-style access
Group:		Development/Python
%py2_migration_meta python-%{pypi_name}

%description -n python2-%{pypi_name}
%{_description}

%files -n python2-%{pypi_name}
%{py2_puresitedir}/*

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A dict with attribute-style access
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name}
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16060 |21mr|python-attrs-21.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name attrs

Name:		python-%{pypi_name}
Version:	21.4.0
Release:	1
Group:		Development/Python
Summary:	Attributes without boilerplate
License:	MIT
URL:		https://attrs.readthedocs.org/
Source0:	https://github.com/python-attrs/attrs/archive/%{version}%{?rctag:%{rctag}}/%{pypi_name}-%{version}%{?rctag:%{rctag}}.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
attrs is an MIT-licensed Python package with class decorators
that ease the chores of implementing the most common 
attribute-related object protocols.

#-------------------------------------------------------------
%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:	Attributes without boilerplate
Group:		Development/Python

%description -n python2-%{pypi_name}
attrs is an MIT-licensed Python package with class decorators
that ease the chores of implementing the most common 
attribute-related object protocols.

%files -n python2-%{pypi_name}
%doc LICENSE README.rst
%{python2_sitelib}/%{pypi_name}-%{version}-py*.egg-info
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/attr

#-------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Attributes without boilerplate
Group:		Development/Python

%description -n python3-%{pypi_name}
attrs is an MIT-licensed Python package with class decorators 
that ease the chores of implementing the most common 
attribute-related object protocols.

%files -n python3-%{pypi_name}
%doc LICENSE README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/attr

#-------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}


%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16061 |21mr|python-augeas-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Noarch python module but with archful dependency
%define debug_package %nil

Name:		python-augeas
Version:	1.1.0
Release:	1
Summary:	Python bindings for augeas
Group:		Development/Python
License:	LGPLv2+
Url:		http://augeas.net/
Source0:	https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz

BuildRequires:	pkgconfig(augeas)
BuildRequires:	python2dist(setuptools)
BuildRequires:	python2-pkg-resources
BuildRequires:	pkgconfig(python2)
BuildRequires:	python2dist(cffi)

%description
python-augeas is a set of Python bindings around augeas.

#--------------------------------------------------------
%package -n python2-augeas
%py2_migration_meta python2-augeas
Summary:	Python bindings to augeas for Python 2
Group:		Development/Python
Provides:	python-augeas = %{EVRD}

%description -n python2-augeas
python2-augeas is a set of Python 2 bindings around augeas.

%files -n python2-augeas
%doc COPYING AUTHORS README.txt
%{python2_sitelib}/augeas.py*
%{python2_sitelib}/augeas/
%{python2_sitelib}/*.egg-info

#--------------------------------------------------------

%package -n python3-augeas
Summary:	Python bindings to augeas for Python 3
Group:		Development/Python
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(cffi)

Requires:	%{_lib}augeas0

%description -n python3-augeas
python3-augeas is a set of Python 3 bindings around augeas.

%files -n python3-augeas
%doc COPYING AUTHORS README.txt
%{python3_sitelib}/augeas.py*
%{python3_sitelib}/augeas/
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/__pycache__/*

#--------------------------------------------------------

%prep
%autosetup -p1

cp -a . %{py3dir}

%build
%py2_build
pushd %{py3dir}
%py3_build
popd

%install
%py2_install
pushd %{py3dir}
%py3_install
popd
rm -Rf %{buildroot}%{python2_sitelib}/test
rm -Rf %{buildroot}%{python3_sitelib}/test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16062 |21mr|python-augeas-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Noarch python module but with archful dependency
%define debug_package %nil

Name:		python-augeas
Version:	1.1.0
Release:	2
Summary:	Python bindings for augeas
Group:		Development/Python
License:	LGPLv2+
Url:		http://augeas.net/
Source0:	https://files.pythonhosted.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cffi)
BuildRequires:	pkgconfig(augeas)


%description
python-augeas is a set of Python bindings around augeas.

#--------------------------------------------------------

%package -n python3-augeas
Summary:	Python bindings to augeas for Python 3
Group:		Development/Python
Requires:	augeas

%description -n python3-augeas
python3-augeas is a set of Python 3 bindings around augeas.

%files -n python3-augeas
%doc COPYING AUTHORS README.txt
%{py3_puresitedir}/augeas.py*
%{py3_puresitedir}/augeas/
%{py3_puresitedir}/*.egg-info
%{py3_puresitedir}/__pycache__/*

#--------------------------------------------------------

%prep
%setup -q
rm -fr *.egg-info

%build
%py3_build


%install
%py3_install
rm -rf %{buildroot}%{py3_puresitedir}/test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16063 |21mr|python-autobahn-21.11.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global pypi_name autobahn

Summary:	Python networking library for WebSocket and WAMP
Name:		python-%{pypi_name}
Version:	21.11.1
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://autobahn.readthedocs.io/en/latest/
Source0:	https://github.com/crossbario/autobahn-python/archive/v%{version}/%{pypi_name}-%{version}.tar.gz

%description
Autobahn a networking library that is part of the Autobahn project and provides
implementations of
* The WebSocket Protocol http://tools.ietf.org/html/rfc6455_
* The Web Application Messaging Protocol (WAMP) http://wamp.ws
for Twisted and for writing servers and clients.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python networking library for WebSocket and WAMP
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-cbor2
BuildRequires:	python3-cffi
BuildRequires:	python3-cryptography
BuildRequires:	python3-hyperlink
BuildRequires:	python3-mock
BuildRequires:	python3-nacl
BuildRequires:	python3-pytest
BuildRequires:	python3-pytest-asyncio
BuildRequires:	python3-six
BuildRequires:	python3-txaio

%description -n python3-%{pypi_name}
Autobahn a networking library that is part of the Autobahn project and provides
implementations of
* The WebSocket Protocol http://tools.ietf.org/html/rfc6455_
* The Web Application Messaging Protocol (WAMP) http://wamp.ws
for Twisted and for writing servers and clients.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst DEVELOPERS.md
%{_bindir}/wamp
%{_bindir}/xbrnetwork
%{_bindir}/xbrnetwork-ui
%{python3_sitearch}/%{pypi_name}-%{version}*-py%{python3_version}.egg-info/
%{python3_sitearch}/%{pypi_name}/
%dir %{python3_sitearch}/twisted
%dir %{python3_sitearch}/twisted/plugins
%dir %{python3_sitearch}/twisted/plugins/__pycache__
%{python3_sitearch}/twisted/plugins/autobahn*.py
%{python3_sitearch}/twisted/plugins/__pycache__/autobahn*.py*
%ifnarch %{armx}
# x86intrin.h not avail in ARM
%{python3_sitearch}/_nvx_utf8validator.abi3.so
%endif
#----------------------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildRequires:	python3-sphinx
BuildRequires:	python3-sphinx_rtd_theme

%description -n python-%{pypi_name}-doc
Documentation for %{name}.

%files -n python-%{pypi_name}-doc
%doc docs/
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-python-%{version}
rm -rf %{pypi_name}.egg-info
# There is a requirement for pytest 6.2+ in pytest.ini and we don't have that yet
# it works with 6.0 just fine and the config file is not needed
rm pytest.ini

%build
%py3_build
#PYTHONPATH=${PWD} sphinx-build-3 docs html
#rm -rf html/.{doctrees,buildinfo}

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16064 |21mr|python-autocommand-2.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define    pypi_name    autocommand

Name:           python-%{pypi_name}
Version:        2.2.1
Release:        1
Summary:        A library to automatically generate and run simple argparse parsers from function signatures
Group:          Development/Python
License:        LGPLv3
Url:            https://github.com/Lucretiel/autocommand
Source0:        %{pypi_source}
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)

%description
A library to automatically generate and run simple argparse parsers 
from function signatures.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:    %{summary}
Group:      Development/Python

%description -n python3-%{pypi_name}
A library to automatically generate and run simple argparse parsers 
from function signatures.

%files -n python3-%{pypi_name}
%doc README*
%{python3_sitelib}/*
#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16065 |21mr|python-automat-20.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module automat

Summary:	Python library for finite-state machines
Name:		python-%{module}
Version:	20.2.0
Release:	3
License:	MIT
Group:		Development/Python
Url:		https://github.com/glyph/Automat
#Source0:	https://github.com/glyph/automat/archive/v%{version}.tar.gz?/automat-%{version}.tar.gz
Source0:	https://files.pythonhosted.org/packages/80/c5/82c63bad570f4ef745cc5c2f0713c8eddcd07153b4bee7f72a8dc9f9384b/Automat-20.2.0.tar.gz
Patch0:		Automat-20.2.0-rename-m2r.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(docutils)
BuildRequires:	python3egg(m2r2)
BuildArch:	noarch

%description
Python library for finite-state machines.

#------------------------------------------------------

%package -n python3-%{module}
Summary:	Python library for finite-state machines
Group:		Development/Python

%description -n python3-%{module}
Python library for finite-state machines.

%files -n python3-%{module}
%doc README.md LICENSE docs/*
%{_bindir}/python-automat-visualize
%{python3_sitelib}/%{module}/
%{python3_sitelib}/Automat-%{version}-py%{python3_version}.egg-info/

#------------------------------------------------------

%prep
%setup -qn Automat-%{version}
%patch0 -p1

# Remove bundled egg-info
rm -rf Automat.egg-info

%build
%py3_build

%install
%py3_install
mv %{buildroot}%{_bindir}/automat-visualize %{buildroot}%{_bindir}/python-automat-visualize

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16066 |21mr|python-autopep8-1.5.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	autopep8

Name:		python-%{oname}
Version:	1.5.7
Release:	1
Summary:	A tool that formats Python code to conform to the PEP 8 style
Source0:	https://files.pythonhosted.org/packages/77/63/e88f70a614c21c617df0ee3c4752fe7fb66653cba851301d3bcaee4b00ea/autopep8-1.5.7.tar.gz
License:	Expat
Group:		Development/Python
Url:		https://github.com/hhatto/autopep8
BuildArch:	noarch
# Ideally should also add python2-pycodestyle so that more tests are successful
BuildRequires:	python3-setuptools

%description
autopep8 automatically formats Python code to conform to the `PEP 8`_ style
guide. It uses the pycodestyle_ utility to determine what parts of the code
needs to be formatted. autopep8 is capable of fixing most of the formatting
issues_ that can be reported by pycodestyle.

%package -n python3-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	A tool that formats Python code to conform to the PEP 8 style

%description -n python3-%{oname}
autopep8 automatically formats Python code to conform to the `PEP 8`_ style
guide. It uses the pycodestyle_ utility to determine what parts of the code
needs to be formatted. autopep8 is capable of fixing most of the formatting
issues_ that can be reported by pycodestyle.


%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{oname}
%doc AUTHORS.rst
%doc LICENSE
%doc README.rst
%{_bindir}/autopep8
%{py3_puresitedir}/autopep8.py*
%{py3_puresitedir}/autopep8*.egg-info
%{py3_puresitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16067 |21mr|python-babel-2.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-babel
Version:	2.9.1
Release:	1
Summary:	Library for internationalizing Python applications

Group:		Development/Python
License:	BSD
URL:		http://babel.pocoo.org/
Source0:	https://files.pythonhosted.org/packages/17/e6/ec9aa6ac3d00c383a5731cc97ed7c619d3996232c977bb8326bcbb6c687e/Babel-2.9.1.tar.gz
BuildArch:	noarch

%description
Babel is composed of two major parts:

* tools to build and work with gettext message catalogs

* a Python interface to the CLDR (Common Locale Data Repository),
  providing access to various locale display names, localized number
  and date formatting, etc.

%package -n python3-babel
Summary:        Library for internationalizing Python applications
Group:          Development/Python
%{?python_provide:%python_provide python3-babel}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pytz)
Requires:       python3dist(setuptools)
Requires:       python3dist(pytz)
Provides:       pybabel = %{version}-%{release}
Obsoletes:      python2-babel < 2.6.0-3

%description -n python3-babel
Babel is composed of two major parts:

* tools to build and work with gettext message catalogs

* a Python interface to the CLDR (Common Locale Data Repository),
  providing access to various locale display names, localized number
  and date formatting, etc.

%prep
%autosetup -n Babel-%{version}

# drop bundled egg-info
rm -rf Babel.egg-info/

# drop shebang
%{__sed} -i -e '/^#!/,1d' babel/messages/frontend.py

%build
%py3_build

%install
%py3_install

%files -n python3-babel
%doc CHANGES AUTHORS
%license LICENSE
%{python3_sitelib}/Babel-%{version}-py*.egg-info
%{python3_sitelib}/babel
%{_bindir}/pybabel

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16068 |21mr|python-backcall-0.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	backcall

Name:		python-%{oname}
Version:	0.1.0
Release:	3
Summary:	Specifications for callback functions passed in to an API
Source0:	http://pypi.python.org/packages/source/b/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/takluyver/backcall
BuildArch:	noarch

%description
If your code lets other people supply callback functions, it’s important to
specify the function signature you expect, and check that functions support
that. Adding extra parameters later would break other peoples code unless
you’re careful.
backcall provides a way of specifying the callback signature using a prototype
function.
If the callback takes fewer parameters than your prototype, backcall will wrap
it in a function that discards the extra arguments. If the callback expects 
more arguments, a TypeError is thrown when it is registered.

%package -n python3-%{oname}
Summary:	Specifications for callback functions passed in to an API
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

%description -n python3-%{oname}
If your code lets other people supply callback functions, it’s important to
specify the function signature you expect, and check that functions support
that. Adding extra parameters later would break other peoples code unless
you’re careful.
backcall provides a way of specifying the callback signature using a prototype
function.
If the callback takes fewer parameters than your prototype, backcall will wrap
it in a function that discards the extra arguments. If the callback expects
more arguments, a TypeError is thrown when it is registered.

%files -n python3-%{oname}
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-%{version}-py%{py3_ver}.egg-info

%prep
%setup -q -n %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16069 |21mr|python-backports-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Namespace for backported Python features
Name:		python-backports
Version:	1.0
Release:	5
# Only code is sourced from http://www.python.org/dev/peps/pep-0382/
License:	Public Domain
Group:		Development/Python
Url:		https://pypi.python.org/pypi/backports
Source0:	backports.py
BuildRequires:	pkgconfig(python)

%description
The backports namespace is a namespace reserved for features backported from
the Python standard library to older versions of Python 2.

Packages that exist in the backports namespace in Fedora should not provide
their own backports/__init__.py, but instead require this package.

Backports to earlier versions of Python 3, if they exist, do not need this
package because of changes made in Python 3.3 in PEP 420
(http://www.python.org/dev/peps/pep-0420/).

%package -n python2-backports
%py2_migration_meta python2-backports
Summary:	Namespace for backported Python features

%description -n python2-backports
The backports namespace is a namespace reserved for features backported from
the Python standard library to older versions of Python 2.

Packages that exist in the backports namespace in Fedora should not provide
their own backports/__init__.py, but instead require this package.

Backports to earlier versions of Python 3, if they exist, do not need this
package because of changes made in Python 3.3 in PEP 420
(http://www.python.org/dev/peps/pep-0420/).


%files -n python2-backports
%{python2_sitelib}/backports
%if "%{python2_sitelib}" != "%{python2_sitearch}"
%{python2_sitearch}/backports
%endif

#----------------------------------------------------------------------------

%prep


%build

%install
mkdir -pm 755 %{buildroot}%{python2_sitelib}/backports
install -pm 644 %{SOURCE0} %{buildroot}%{python2_sitelib}/backports/__init__.py

%if "%{python2_sitelib}" != "%{python2_sitearch}"
mkdir -pm 755 %{buildroot}%{python2_sitearch}/backports
install -pm 644 %{SOURCE0} %{buildroot}%{python2_sitearch}/backports/__init__.py
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16070 |21mr|python-backports-abc-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.1.2
%global pypi_name backports_abc

Name:           python-backports-abc
Version:        0.5
Release:        1
Group:          Development/Python
Summary:        A backport of recent additions to the 'collections.abc' module

License:        Python
URL:            https://github.com/cython/backports_abc
Source0:        https://pypi.python.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
A backport of recent additions to the 'collections.abc' module

%package -n python3-%{pypi_name}
Summary:	Software library for fast, message-based applications
Group:		Development/Python
Provides:	python3-backports-abc = %{version}-%{release}

%description -n python3-%{pypi_name}

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


%files -n python3-%{pypi_name}
%doc README.rst
%{py3_puresitedir}/%{pypi_name}.py*
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info
%{py3_puresitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16071 |21mr|python-backports.entry-points-selectable-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name backports.entry_points_selectable
%global common_description %{expand:
Compatibility shim to ease adoption of importlib_metadata 3.6. Supplies
forward-compatibility of “selectable” entry points even on older versis
of importlib_metadata and importlib.metadata, and avoids usage that
triggers deprecation warnings.}

Name:		python-backports.entry-points-selectable
Version:	1.2.0
Release:	1
Summary:	Compatibility shim providing selectable entry points for older implementations
Group:		Development/Python
License:	MIT
URL:		https://github.com/jaraco/backports.entry_points_selectable
Source0:	https://pypi.io/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0:		backports.entry-points-requirements.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	pyproject-rpm-macros
BuildArch:	noarch

%description %{common_description}

#-------------------------------------------------------------------

%package -n python3-backports.entry-points-selectable
Summary:	%{summary}
Group:		Development/Python
Requires:	python3-backports-common

%description -n python3-backports.entry-points-selectable %{common_description}

%files -n python3-backports.entry-points-selectable
%license LICENSE*
%doc README.rst CHANGES.rst
%{python3_sitelib}/*

#------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel


%install
%pyproject_install

# provided in python3-backports-common
rm -f %{buildroot}%{python3_sitelib}/backports/__init__.py*
rm -f %{buildroot}%{python3_sitelib}/backports/__pycache__/__init__*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16072 |21mr|python-backports-functools_lru_cache-1.6.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name backports.functools_lru_cache
%global pkgname backports-functools_lru_cache
%global sum A backport of functools.lru_cache from Python 3.3 as published at ActiveState

Name:		python-%{pkgname}
Version:	1.6.4
Release:	3
Summary:	%{sum}
Group:		Development/Python
License:	MIT
URL:		https://github.com/jaraco/backports.functools_lru_cache
Source0:	%{pypi_source}
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(toml)

%description
%{sum}.
#--------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:	%{sum}
Group:		Development/Python
Requires:	python3-backports-common

%description -n python3-%{pkgname}
%{sum}.

%files -n python3-%{pkgname}
%doc CHANGES.rst README.rst
%{python3_sitelib}/*
#--------------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# provided in python3-backports-common
rm -f %{buildroot}%{python3_sitelib}/backports/__init__.py
rm -f %{buildroot}%{python3_sitelib}/backports/__pycache__/__init__*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16073 |21mr|python-backports.shutil_get_terminal_size-1.0.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname	backports.shutil_get_terminal_size

Name:		python-backports.shutil_get_terminal_size
Summary:	A backport of the get_terminal_size function from Python 3.3's shutil
Version:	1.0.0
Release:	8
Source0:	http://pypi.python.org/packages/source/b/%{fname}/%{fname}-%{version}.tar.gz
URL:		https://github.com/chrippa/backports.shutil_get_terminal_size
Group:		Development/Python
License:	BSD
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)

%description
A backport of the get_terminal_size function from Python 3.3's 
shutil.

#----------------------------------------------------------------------------------

%package -n python3-backports.shutil_get_terminal_size
Summary:	A backport of the get_terminal_size function from Python 3.3's shutil
Group:		Development/Python
Requires:	python3-backports-common

%description -n python3-backports.shutil_get_terminal_size
A backport of the get_terminal_size function from Python 3.3's 
shutil. 

%files -n python3-backports.shutil_get_terminal_size
%doc README.rst LICENSE
%{python3_sitelib}/

#----------------------------------------------------------------------------------

%prep
%setup -qn %{fname}-%{version}

%build
%py3_build

%install
%py3_install

# provided in python3-backports-common
rm -f %{buildroot}%{python3_sitelib}/backports/__init__.py*
rm -f %{buildroot}%{python3_sitelib}/backports/__pycache__/__init__*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16074 |21mr|python-backports-ssl_match_hostname-3.7.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module_name backports.ssl_match_hostname

Summary:	The ssl.match_hostname() function from Python 3
Name:		python-backports-ssl_match_hostname
Version:	3.7.0.1
Release:	3
License:	Python
Group:		Development/Python
Url:		https://bitbucket.org/brandon/backports.ssl_match_hostname
Source0:	https://files.pythonhosted.org/packages/ff/2b/8265224812912bc5b7a607c44bf7b027554e1b9775e9ee0de8032e3de4b2/backports.ssl_match_hostname-3.7.0.1.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python)
#Just to make sure we have it
BuildRequires:	python2-backports
BuildRequires:	python2-setuptools
Requires:	python2-backports

%description
The Secure Sockets layer is only actually secure if you check the hostname in
the certificate returned by the server to which you are connecting, and verify
that it matches to hostname that you are trying to reach.

But the matching logic, defined in RFC2818, can be a bit tricky to implement on
your own. So the ssl package in the Standard Library of Python 3.2 now includes
a match_hostname() function for performing this check instead of requiring
every application to implement the check separately.

This backport brings match_hostname() to users of earlier versions of Python.
The actual code inside comes verbatim from Python 3.2.
#----------------------------------------------------------------------------
%package -n python2-backports-ssl_match_hostname
%py2_migration_meta python2-backports-ssl_match_hostname
Summary:	The ssl.match_hostname() function from Python 3
Group:		Development/Python

%description -n python2-backports-ssl_match_hostname
The Secure Sockets layer is only actually secure if you check the hostname in
the certificate returned by the server to which you are connecting, and verify
that it matches to hostname that you are trying to reach.

But the matching logic, defined in RFC2818, can be a bit tricky to implement on
your own. So the ssl package in the Standard Library of Python 3.2 now includes
a match_hostname() function for performing this check instead of requiring
every application to implement the check separately.

This backport brings match_hostname() to users of earlier versions of Python.
The actual code inside comes verbatim from Python 3.2.

%files -n python2-backports-ssl_match_hostname
%doc README.txt
%{python2_sitelib}/backports/ssl_match_hostname/*.py*
%{python2_sitelib}/backports.ssl_match_hostname-%{version}-py%{py2_ver}.egg-info

#----------------------------------------------------------------------------
%prep
%setup -qn %{module_name}-%{version}

%build
%py2_build

%install
python2 setup.py install --skip-build --root %{buildroot}
rm %{buildroot}%{python2_sitelib}/backports/__init__.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16075 |21mr|python-backports-zoneinfo-0.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name backports.zoneinfo

Summary:	Backport of the standard library zoneinfo module
Name:		python-backports-zoneinfo
Version:	0.2.1
Release:	1
License:	ASL2.0
Group:		Development/Python
Url:		https://github.com/pganssle/zoneinfo
Source0:	https://pypi.io/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
This package was originally the reference implementation for PEP 615, 
which proposes support for the IANA time zone database in the standard 
library, and now serves as a backport to Python 3.6+ (including PyPy).

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Backport of the standard library zoneinfo module
Group:		Development/Python

%description -n python3-%{pypi_name}
This package was originally the reference implementation for PEP 615, 
which proposes support for the IANA time zone database in the standard 
library, and now serves as a backport to Python 3.6+ (including PyPy).

%files -n python3-%{pypi_name}
%doc README.md LICENSE CHANGELOG*
%{python3_sitearch}/backports/zoneinfo
%{python3_sitearch}/backports/__init__.py
%{python3_sitearch}/backports/__pycache__
%{python3_sitearch}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16076 |21mr|python-bcrypt-3.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name bcrypt

Name:           python-%{pypi_name}
Version:	3.2.0
Release:	2
Summary:        Modern password hashing for your software and your servers
Group:          Development/Python
#crypt_blowfish code is in Public domain and all other code in ASL 2.0
License:        ASL 2.0 and Public Domain and BSD
URL:            https://github.com/pyca/bcrypt/
Source0:	https://files.pythonhosted.org/packages/d8/ba/21c475ead997ee21502d30f76fd93ad8d5858d19a3fad7cd153de698c4dd/bcrypt-3.2.0.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(cffi) >= 1.1
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six) >= 1.4.1

%description
Modern password hashing for your software and your servers
#===========================================================
%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
Modern password hashing for your software and your servers

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitearch}/%{pypi_name}/
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info/

#===========================================================
%package -n     python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        %{summary}
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(cffi) >= 1.1
BuildRequires:  pythonegg(setuptools)

%description -n python2-%{pypi_name}
Modern password hashing for your software and your servers

%files -n python2-%{pypi_name}
%license LICENSE
%doc README.rst
%{python2_sitearch}/%{pypi_name}/
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info/
#===========================================================

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd
export PYTHON=%__python2
%py2_build

%install
pushd %{py3dir}
%py3_install
popd
%py2_install

%check
#% {__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16077 |21mr|python-beaker-1.11.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    python-beaker
Version: 1.11.0
Release: 2
Summary: WSGI middleware layer to provide sessions

Group:   Development/Python
License: BSD
URL:     http://beaker.groovie.org/
Source0:	https://files.pythonhosted.org/packages/04/7b/a3eb9939d931a55c69e4bcaa82dbc64f6df9612c374e782f4ab3c176910e/Beaker-%{version}.tar.gz
BuildArch:  noarch

%description
Beaker is a caching library that includes Session and Cache objects built on
Myghty's Container API used in MyghtyUtils. WSGI middleware is also included to
manage Session objects and signed cookies.

%package -n python2-beaker
%py2_migration_meta python2-beaker
Summary:        WSGI middleware layer to provide sessions
Group:          Development/Python
BuildRequires:  python2-setuptools
BuildRequires:  pkgconfig(python2)
 
%description -n python2-beaker
Beaker is a caching library that includes Session and Cache objects built on
Myghty's Container API used in MyghtyUtils. WSGI middleware is also included to
manage Session objects and signed cookies.

%package -n python3-beaker
Summary:        WSGI middleware layer to provide sessions
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
 
%description -n python3-beaker
Beaker is a caching library that includes Session and Cache objects built on
Myghty's Container API used in MyghtyUtils. WSGI middleware is also included to
manage Session objects and signed cookies.

%prep
%autosetup -n Beaker-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

%files -n python2-beaker
%{py2_puresitedir}/beaker/
%{py2_puresitedir}/Beaker*

%files -n python3-beaker
%{py3_puresitedir}/beaker/
%{py3_puresitedir}/Beaker*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16078 |21mr|python-beautifulsoup-3.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	BeautifulSoup 
  
Name:		python-beautifulsoup
Version:	3.2.2
Release:	1
Summary:	The Screen-Scraper's Friend 
Group:		Development/Python
License:	Python
URL:		http://www.crummy.com/software/BeautifulSoup 
Source0:	https://files.pythonhosted.org/packages/40/f2/6c9f2f3e696ee6a1fb0e4d7850617e224ed2b0b1e872110abffeca2a09d4/BeautifulSoup-3.2.2.tar.gz
BuildArch:	noarch 
BuildRequires:	python2-devel
BuildRequires:	python3-devel
BuildRequires:	python2-distribute
BuildRequires:	python3-distribute
  
%description 
The BeautifulSoup class turns arbitrarily bad HTML into a tree-like 
nested tag-soup list of Tag objects and text snippets. A Tag object 
corresponds to an HTML tag.  It knows about the HTML tag's attributes, 
and contains a representation of everything contained between the 
original tag and its closing tag (if any). It's easy to extract Tags 
that meet certain criteria. 

%package -n python2-beautifulsoup
%py2_migration_meta python2-beautifulsoup
Summary:        The Screen-Scraper's Friend 
Group:          Development/Python
Requires:       python2
 
%description -n python2-beautifulsoup
The BeautifulSoup class turns arbitrarily bad HTML into a tree-like 
nested tag-soup list of Tag objects and text snippets. A Tag object 
corresponds to an HTML tag.  It knows about the HTML tag's attributes, 
and contains a representation of everything contained between the 
original tag and its closing tag (if any). It's easy to extract Tags 
that meet certain criteria. 

%package -n python3-beautifulsoup
Summary:        The Screen-Scraper's Friend 
Group:          Development/Python
Requires:       python3
 
%description -n python3-beautifulsoup
The BeautifulSoup class turns arbitrarily bad HTML into a tree-like 
nested tag-soup list of Tag objects and text snippets. A Tag object 
corresponds to an HTML tag.  It knows about the HTML tag's attributes, 
and contains a representation of everything contained between the 
original tag and its closing tag (if any). It's easy to extract Tags 
that meet certain criteria. 
  
%prep
%setup -q -c

mv %{module}-%{version} python2
cp -r python2 python3
  
%install 
pushd python2
PYTHONDONTWRITEBYTECODE=  %{__python2} setup.py install --root=%{buildroot}
popd

# pushd python3
# %{__python3} setup.py install --root=%{buildroot} --record=FILE_LIST3
# popd 

%files -n python2-beautifulsoup
%{py2_puresitedir}/*

# %files -n python3-beautifulsoup -f FILE_LIST3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16079 |21mr|python-beautifulsoup4-4.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define urlver %(echo %{version}|cut -d. -f1,2)
%define oname beautifulsoup4

Summary:	The Screen-Scraper's Friend 
Name:		python-%{oname}
Version:	4.9.3
Release:	1
Group:		Development/Python
License:	MIT
Url:		http://www.crummy.com/software/BeautifulSoup 
Source0:	https://files.pythonhosted.org/packages/6b/c3/d31704ae558dcca862e4ee8e8388f357af6c9d9acb0cad4ba0fbbd350d9a/beautifulsoup4-4.9.3.tar.gz
#  pkgconfig and pythonegg style are more handy
# python2
#BuildRequires:	pkgconfig(python2)
#BuildRequires:	python2egg(setuptools)
# python3
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch 
#Requires:	python2egg(lxml)

%global _description \
The BeautifulSoup class turns arbitrarily bad HTML into a tree-like \
nested tag-soup list of Tag objects and text snippets. A Tag object \
corresponds to an HTML tag.  It knows about the HTML tag's attributes, \
and contains a representation of everything contained between the \
original tag and its closing tag (if any). It's easy to extract Tags \
that meet certain criteria.

%description
%_description

#------------------------------------------------------------------

#%%package -n python2-%%{oname}
#Summary:	%%{summary}

#%%description -n python2-%%{oname}
%_description

#%%files -n python2-%%{oname}
#%%doc python2/*.txt
#%%{py2_puresitedir}/bs4
#%%{py2_puresitedir}/beautifulsoup4*.egg-info

#------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	The Screen-Scraper's Friend 
Group:		Development/Python
Requires:	python(abi) = %{py3_ver}
Requires:	python3-lxml
Provides:	python3-beautifulsoup = %{version}-%{release}

%description -n python3-%{oname}
The BeautifulSoup class turns arbitrarily bad HTML into a tree-like 
nested tag-soup list of Tag objects and text snippets. A Tag object 
corresponds to an HTML tag.  It knows about the HTML tag's attributes, 
and contains a representation of everything contained between the 
original tag and its closing tag (if any). It's easy to extract Tags 
that meet certain criteria. 

%files -n python3-%{oname}
%doc python3/*.txt
%{py3_puresitedir}/bs4
%{py3_puresitedir}/beautifulsoup4*.egg-info

#------------------------------------------------------------------

%prep
%setup -q -c
mv %{oname}-%{version} python3
cp -r python3 python2

#%%build
#pushd python2
#%%py2_build
#popd

pushd python3
%py3_build
popd

%install 
#pushd python2
#%%py2_install
#iconv -f iso8859-1 -t utf-8 AUTHORS.txt > AUTHORS.txt.conv \
#	&& mv -f AUTHORS.txt.conv AUTHORS.txt
#popd

pushd python3
%py3_install
iconv -f iso8859-1 -t utf-8 AUTHORS.txt > AUTHORS.txt.conv \
	&& mv -f AUTHORS.txt.conv AUTHORS.txt
popd 

%check
# scam for some tests failed in py3
#pushd python2
#python2 -m unittest discover -s bs4 || :
#popd 

pushd python3
python3 -m unittest discover -s bs4 || :
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16080 |21mr|python-betamax-0.8.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname betamax

Name:           python-%{srcname}
Version:        0.8.1
Release:        11
Summary:        VCR imitation for python-requests
Group:		Development/Python
License:        ASL 2.0
URL:            https://github.com/sigmavirus24/%{srcname}
Source0:        %{url}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildArch:      noarch

%global _description \
Betamax is a VCR_ imitation for requests. This will make mocking out requests\
much easier.

%description %{_description}

%package -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
%if %{with tests}
BuildRequires:  python3-pytest
BuildRequires:  python3-requests >= 2.0
%endif
Requires:       python3-requests >= 2.0

%description -n python3-%{srcname} %{_description}

Python 3 version.

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16081 |21mr|python-bleach-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	bleach

Summary:	An easy safelist-based HTML-sanitizing tool
Name:		python-%{module}
Version:	4.1.0
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		http://github.com/mozilla/%{module}
Source0:	https://files.pythonhosted.org/packages/6a/a3/217842324374fd3fb33db0eb4c2909ccf3ecc5a94f458088ac68581f8314/bleach-4.1.0.tar.gz

BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description
Bleach is an allowed-list-based HTML sanitizing library that
escapes or strips markup and attributes.

Bleach can also linkify text safely, applying filters that
Django’s urlize filter cannot, and optionally setting rel attributes,
even on links already in the text.

Bleach is intended for sanitizing text from untrusted sources.
If you find yourself jumping through hoops to allow your
site administrators to do lots of things, you’re probably outside
the use cases. Either trust those users, or don’t.

#------------------------------------------------------------

%package -n python3-%{module}
Summary: %{summary}  
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Bleach is an allowed-list-based HTML sanitizing library that
escapes or strips markup and attributes.

Bleach can also linkify text safely, applying filters that
Django’s urlize filter cannot, and optionally setting rel attributes,
even on links already in the text.

Bleach is intended for sanitizing text from untrusted sources.
If you find yourself jumping through hoops to allow your
site administrators to do lots of things, you’re probably outside
the use cases. Either trust those users, or don’t.

%files -n python3-%{module}
%doc *.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info
#------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16082 |21mr|python-blinker-1.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	blinker

Name:		python-%{pypi_name}
Version:	1.4
Release:	3
Summary:	Fast, simple object-to-object and broadcast signaling
Group:		Development/Python
License:	MIT
Url:		http://pythonhosted.org/blinker/
Source0:	http://pypi.python.org/packages/source/b/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Blinker provides a fast dispatching system that allows any number of
interested parties to subscribe to events, or "signals".

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Fast, simple object-to-object and broadcast signaling
Group:		Development/Python

%description -n python3-%{pypi_name}
Blinker provides a fast dispatching system that allows any number of
interested parties to subscribe to events, or "signals".

%files -n python3-%{pypi_name}
%doc AUTHORS
%doc CHANGES
%doc LICENSE
%doc README.md
%doc docs/html
%doc docs/text
%{py3_puresitedir}/blinker
%{py3_puresitedir}/blinker*.egg-info

#--------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16083 |21mr|python-blivet-3.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global realname blivet

Summary: A python module for system storage configuration
Name:    python-blivet
Group:   Development/Python
Version: 3.6.0
Release: 1
License: LGPLv2+
Url: https://storageapis.wordpress.com/projects/blivet
Source0: https://github.com/storaged-project/blivet/releases/download/%{realname}-%{version}/%{realname}-%{version}.tar.gz
Source1: https://github.com/storaged-project/blivet/releases/download/%{realname}-%{version}/%{realname}-%{version}-tests.tar.gz
BuildRequires: gettext
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-libselinux
BuildArch: noarch

%description
The python-blivet package is a python module for examining and modifying
storage configuration.

%package -n %{realname}-data
Summary: Data for the %{realname} python module
BuildRequires: pkgconfig(systemd)

%description -n %{realname}-data
The %{realname}-data package provides data files required by the %{realname}
python module.

%files -n %{realname}-data -f %{realname}.lang
%{_sysconfdir}/dbus-1/system.d/*
%{_datadir}/dbus-1/system-services/*
%{_libexecdir}/*
%{_unitdir}/*

%package -n python3-%{realname}
Summary: A python3 package for examining and modifying storage configuration
Requires: python3
Requires: python3-six
Requires: python3-udev
Requires: parted
Requires: python3-parted
Requires: python3-libselinux
Requires: python3-blockdev
Requires: python3-bytesize
Requires: util-linux
Requires: lsof
Requires: systemd-units
Requires: %{realname}-data = %{EVRD}
Recommends: libblockdev-plugins-all
# Extract all possible utilities from source code.
# This makes sense only for Anaconda to avoid
# having utilities for some supported cases not installed
# (e.g. we had hfsutils not installed (need for macs)).
# https://t.me/rosalinux/132934
#grep '= application(' blivet/tasks/availability.py | \
#awk -F '(' '{print $2}' | \
#sed -e 's,",,g' -e 's,),,' | sort -u | \
#while read -r line; \
#do \
#sudo dnf repoquery --qf '%{name}' --file "*bin/$line"; \
#done | grep -vE '^coreutils$|busybox$|^embutils$' | sort -u | \
#while read -r line; do echo "Recommends: ($line if anaconda-core)"; done
Recommends: (btrfs-progs if anaconda-core)
Recommends: (dosfstools if anaconda-core)
Recommends: (gfs2-utils if anaconda-core)
Recommends: (hfsplus-tools if anaconda-core)
Recommends: (hfsutils if anaconda-core)
Recommends: (jfsutils if anaconda-core)
Recommends: (kpartx if anaconda-core)
Recommends: (mtools if anaconda-core)
Recommends: (multipath-tools if anaconda-core)
Recommends: (ntfs-3g if anaconda-core)
Recommends: (reiserfsprogs if anaconda-core)
Recommends: (util-linux if anaconda-core)
Recommends: (xfsprogs if anaconda-core)

%description -n python3-%{realname}
The python3-%{realname} is a python3 package for examining and modifying storage
configuration.

%files -n python3-%{realname}
%license COPYING
%doc ChangeLog examples
%{python3_sitelib}/*

%prep
%autosetup -p1 -n %{realname}-%{version} -b1

%build
make PYTHON=%{__python3}

%install
make PYTHON=%{__python3} DESTDIR=%{buildroot} install

mkdir -p %{buildroot}/lib
cd %{buildroot}%{_prefix}/lib
mv systemd ../../lib
cd -

%find_lang %{realname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16084 |21mr|python-blockdiag-2.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname blockdiag
%global srcdesc \
blockdiag and its family generate diagram images from simply text file.\
\
Features:\
- Generates beautiful diagram images from simple text format (similar to\
  graphviz’s DOT format)\
- Layouts diagram elements automatically\
- Embeds to many documentations; Sphinx, Trac, Redmine and some wikis\
\
- Supports many types of diagrams\
  - block diagram (with this package)\
  - sequence diagram (with the seqdiag package)\
  - activity diagram (with the actdiag package)\
  - logical network diagram (with the nwdiag package)\
\
Enjoy documentation with blockdiag !

Name:           python-%{srcname}
Version:        2.0.1
Release:        3
Summary:        Generate block-diagram images from text

Group:		Development/Python
License:        ASL 2.0
URL:            https://blockdiag.com/
Source:         %pypi_source

BuildArch:      noarch
# upstream uses ipagp.ttf as its default font
#BuildRequires:  ipa-pgothic-fonts
BuildRequires:  python3-devel
BuildRequires:  python3-docutils
BuildRequires:  python3-funcparserlib
BuildRequires:  python3-mock
BuildRequires:  python3-nose
BuildRequires:  python3-pillow
BuildRequires:  python3-reportlab
BuildRequires:  python3-setuptools
BuildRequires:  python3-webcolors


%description %{srcdesc}


%package -n %{srcname}
Summary:        %{summary}
Requires:       python3-%{srcname} = %{version}-%{release}


%description -n %{srcname} %{srcdesc}


%package -n python3-%{srcname}
Summary:        Python 3 module for %{srcname}
#Requires:       ipa-pgothic-fonts
Provides:       python3-%{srcname}-devel = %{version}-%{release}
%{?python_provide:%python_provide python3-%{srcname}}


%description -n python3-%{srcname}
%{summary}.


%prep
%autosetup -n %{srcname}-%{version}


%build
%py3_build


%install
%py3_install
install -pm 644 -D %{srcname}.1 %{buildroot}%{_mandir}/man1/%{srcname}.1


%check
%{__python3} setup.py test || :


%files -n %{srcname}
%license LICENSE
%{_bindir}/%{srcname}
%{_mandir}/man1/%{srcname}.1*


%files -n python3-%{srcname}
%license LICENSE
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{srcname}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16085 |21mr|python-booleanoperations-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name booleanoperations

Name:           python-%{pypi_name}
Version:        0.9.0
Release:        1
Summary:        Boolean operations on paths
Group:          Development/Python
License:        MIT
URL:            https://github.com/typemytype/booleanOperations
Source0:        https://files.pythonhosted.org/packages/source/b/%{pypi_name}/booleanOperations-%{version}.zip
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(fonttools)
BuildRequires:  python3dist(pyclipper)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-runner)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
BuildRequires:  python3dist(fontpens)
BuildRequires:  python3dist(fonttools)
BuildRequires:  python3dist(defcon)
BuildRequires:  python3dist(fs)
BuildRequires:  python3dist(wheel)

%description
Boolean operations on paths based on a super fast polygon clipper library.

#-----------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Boolean operations on paths based on a super fast polygon clipper library.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/booleanOperations/
%{python3_sitelib}/booleanOperations-%{version}-py%{python3_version}.egg-info

#-----------------------------------------------------------------------

%prep
%autosetup -n booleanOperations-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16086 |21mr|python-boto-2.49.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        A simple, lightweight interface to Amazon Web Services
Name:           python-boto
Version:        2.49.0
Group:		Development/Python
Release:        2
License:        MIT
URL:            https://github.com/boto/boto
Source0:        https://pypi.io/packages/source/b/boto/boto-%{version}.tar.gz
# Taken from sourcecode 2014-07-31
Source1:        boto-mit-license.txt

# Unbundle python-six
# https://github.com/boto/boto/pull/3086
Patch1:         boto-2.39.0-devendor.patch

# Add NAT gateway support
# https://github.com/boto/boto/pull/3472
Patch2:         boto-2.40.0-nat-gateway.patch

# Fix max_retry_delay config option
# https://github.com/boto/boto/pull/3506
# https://github.com/boto/boto/pull/3508
Patch4:         boto-2.40.0-retry-float.patch

# Add aws-exec-read to S3's canned ACL list
# https://github.com/boto/boto/pull/3332
Patch5:         boto-2.40.0-aws-exec-read.patch

# Add new instance attributes
# https://github.com/boto/boto/pull/3077
# https://github.com/boto/boto/pull/3131
Patch6:         boto-2.40.0-instance-attributes.patch

# Fix multi-VPC hosted zone parsing
# https://github.com/boto/boto/pull/2882
Patch7:         boto-2.40.0-multi-vpc-zone.patch

# Fix request logging for S3 requests
# https://github.com/boto/boto/issues/2722
# https://github.com/boto/boto/pull/2875
Patch8:         boto-2.40.0-s3-requestlog.patch

# Allow route53 health check resource paths to be none
# https://github.com/boto/boto/pull/2866
Patch9:         boto-2.40.0-route53-no-resourcepath.patch

# Add ModifySubnetAttribute support
# https://github.com/boto/boto/pull/3111
Patch10:        boto-2.45.0-modifysubnetattribute.patch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-six
BuildRequires:  python3-httpretty
BuildRequires:  python3-mock
BuildRequires:  python3-nose
BuildRequires:  python3-requests

BuildArch:      noarch


%description
Boto is a Python package that provides interfaces to Amazon Web Services.
It supports over thirty services, such as S3 (Simple Storage Service),
SQS (Simple Queue Service), and EC2 (Elastic Compute Cloud) via their
REST and Query APIs.  The goal of boto is to support the full breadth
and depth of Amazon Web Services.  In addition, boto provides support
for other public services such as Google Storage in addition to private
cloud systems like Eucalyptus, OpenStack and Open Nebula.


%package -n python3-boto
Summary:        A simple, lightweight interface to Amazon Web Services

Requires:       python3-requests
Requires:       python3-six
Requires:       python3-rsa


%description -n python3-boto
Boto is a Python package that provides interfaces to Amazon Web Services.
It supports over thirty services, such as S3 (Simple Storage Service),
SQS (Simple Queue Service), and EC2 (Elastic Compute Cloud) via their
REST and Query APIs.  The goal of boto is to support the full breadth
and depth of Amazon Web Services.  In addition, boto provides support
for other public services such as Google Storage in addition to private
cloud systems like Eucalyptus, OpenStack and Open Nebula.


%prep
%autosetup -p1 -n boto-%{version}

#rm -r boto/vendored

cp -p %{SOURCE1} .


%build
%{__python3} setup.py build


%install
%{__python3} setup.py install --skip-build --root $RPM_BUILD_ROOT
rm -f $RPM_BUILD_ROOT/%{_bindir}/*


#%check
#%{__python3} tests/test.py default


%files -n python3-boto
%license boto-mit-license.txt
%{python3_sitelib}/boto*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16087 |21mr|python-boto3-1.24.46-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name boto3

Name:       python-%{pypi_name}
Version:    1.24.46
Release:    1
Summary:    The AWS SDK for Python
Group:      Development/Python
License:    ASL 2.0
URL:        https://github.com/boto/boto3
Source0:    %{pypi_source}
BuildArch:  noarch

%description
Boto3 is the Amazon Web Services (AWS) Software Development
Kit (SDK) for Python, which allows Python developers to
write software that makes use of services like Amazon S3
and Amazon EC2.

#-------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        The AWS SDK for Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
Boto3 is the Amazon Web Services (AWS) Software Development
Kit (SDK) for Python, which allows Python developers to
write software that makes use of services like Amazon S3
and Amazon EC2.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info/

#-------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info
# Remove online tests
rm -rf tests/integration

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16088 |21mr|python-botocore-1.27.46-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name botocore

Name:       python-%{upstream_name}
Version:    1.27.46
Release:    1
Summary:    The low-level, core functionality of boto 3
Group:      Development/Python
License:    Apache License
URL:        https://github.com/boto/botocore
Source:     https://github.com/boto/botocore/archive/%{version}/botocore-%{version}.tar.gz
BuildArch:  noarch

%description
A low-level interface to a growing number of Amazon Web Services. The botocore
package is the foundation for the AWS CLI as well as boto3.

#--------------------------------------------------------------------------------------

%package -n python3-%{upstream_name}
License:       Apache License
Summary:       The low-level, core functionality of boto 3
Group:         Development/Python
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)

%description -n python3-%{upstream_name}
A low-level interface to a growing number of Amazon Web Services. The botocore
package is the foundation for the AWS CLI as well as boto3.

%files -n python3-%{upstream_name}
%{python3_sitelib}/*

#--------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16089 |21mr|python-breathe-4.31.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Adds support for Doxygen xml output to reStructuredText and Sphinx
Name:           python-breathe
License:        BSD
Group:          Development/Python
Version:        4.31.0
Release:        2
URL:            https://github.com/michaeljones/breathe
Source0:        https://github.com/michaeljones/breathe/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:  doxygen
BuildRequires:  which
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-six
BuildRequires:  python3-sphinx
BuildRequires:  python3-docutils
BuildRequires:  python3-pytest
# NOTE: git is only needed because part of the build process checks if it's in a git repo
BuildRequires:  %{_bindir}/git
BuildArch:      noarch

%define _description \
Breathe is an extension to reStructuredText and Sphinx to be able to read and \
render the Doxygen xml output.

%description %_description

#------------------------------------------------------------------------------

%package -n python3-breathe
Summary:        %{summary}
Group:          Development/Python
Requires:       python3-six
Requires:       doxygen

%description -n python3-breathe
%_description

%files -n python3-breathe
%license LICENSE
%doc README.rst
%{_bindir}/breathe-apidoc
%{python3_sitelib}/*

#------------------------------------------------------------------------------

%package doc
Summary:        Documentation files for breathe
Group:          Documentation
# tinyxml uses zlib license
License:        BSD and zlib

%description doc
This package contains documentation for developer documentation for breathe.

%files doc
%license LICENSE
%doc documentation/build/html

#------------------------------------------------------------------------------

%prep
%autosetup -n breathe-%{version} -p1

%build
%py3_build
# Build the documentation
%make_build DOXYGEN=$(which doxygen) PYTHONPATH=$(pwd) html
# Remove temporary build files
rm documentation/build/html/.buildinfo

%install
%py3_install

%check
%make_build dev-test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16090 |21mr|python-build-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name build

Name:           python-%{pypi_name}
Version:        0.8.0
Release:        1
Summary:        A simple, correct PEP517 package builder
Group:          Development/Python
License:        MIT
URL:            https://github.com/pypa/build
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description
A simple, correct PEP517 package builder.

#-----------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
A simple, correct PEP517 package builder.


%pyproject_extras_subpkg -n python3-%{pypi_name} virtualenv

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.md
%{_bindir}/pyproject-build


#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -x test,virtualenv

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%check
# The skipped tests require internet
%pytest -k "not (test_build_package or \
                 test_build_package_via_sdist or \
                 test_output[via-sdist-isolation] or \
                 test_output[wheel-direct-isolation] or \
                 test_wheel_metadata[True] or \
                 test_wheel_metadata_isolation or \
                 test_with_get_requires or \
                 test_build_sdist or \
                 test_build_wheel[from_sdist] or \
                 test_build_wheel[direct])"


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16091 |21mr|python-cachecontrol-0.12.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname CacheControl

Name:		python-cachecontrol
Version:	0.12.11
Release:	1
Summary:	Port of the caching algorithms in httplib2
Group:		Development/Python

License:	ASL
URL:		https://github.com/ionrock/cachecontrol
Source0:	%{pypi_source}

BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
CacheControl is a port of the caching algorithms in httplib2 for use with 
requests session object.
It was written because httplib2’s better support for caching is often 
mitigated by its lack of thread safety. The same is true of requests in terms of caching.

#----------------------------------------------------------------------
%package -n python3-cachecontrol
Summary:	Port of the caching algorithms in httplib2
Group:		Development/Python

%description -n python3-cachecontrol
CacheControl is a port of the caching algorithms in httplib2 for use with 
requests session object.
It was written because httplib2’s better support for caching is often 
mitigated by its lack of thread safety. The same is true of requests in terms of caching.

%files -n python3-cachecontrol
%doc README.rst
%{_bindir}/doesitcache
%{python3_sitelib}/*

#----------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

rm -rf *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16092 |21mr|python-cachetools-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name cachetools

Name:           python-cachetools
Version:	5.0.0
Release:	1
Group:          Development/Python
Summary:        Extensible memoizing collections and decorators

License:        MIT
URL:            https://github.com/tkem/cachetools
Source0:	https://files.pythonhosted.org/packages/ad/81/539036a8716b4e0a96f77540194bb1e863a24b8e9bc9ddd74e30f1653df5/cachetools-5.0.0.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)


%description
This module provides various memoizing collections and decorators,
including a variant of the Python 3 Standard Library `@lru_cache`_
function decorator.

%package -n     python3-%{pypi_name}
Summary:        Extensible memoizing collections and decorators
Group:          Development/Python

%description -n python3-%{pypi_name}
This module provides various memoizing collections and decorators,
including a variant of the Python 3 Standard Library `@lru_cache`_
function decorator.


%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc README.rst
%doc LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16093 |21mr|python-cachy-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cachy

Name:           python-%{pypi_name}
Version:        0.3.0
Release:        1
Summary:        Simple yet effective caching library
Group:          Development/Python
License:        MIT
URL:            https://github.com/sdispater/cachy
Source0:        %{pypi_source}
BuildArch:      noarch

%description
Cachy provides a simple yet effective caching library.

#-----------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

Recommends:     python3-msgpack >= 0.5.0
Recommends:     python3-redis >= 2.10.0

%description -n python3-%{pypi_name}
Cachy provides a simple yet effective caching library.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
%exclude %{python3_sitelib}/tests/

#-----------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16094 |21mr|python-cairo-1.20.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pycairo

Summary:	A python wrapper for the Cairo libraries
Name:		python-cairo
Version:	1.20.1
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/pygobject/pycairo
Source0:	https://github.com/pygobject/pycairo/releases/download/v%{version}/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(cairo)

%description
A set of Python bindings for the cairo graphics library.

%package -n python3-cairo
Summary:	A python wrapper for the Cairo libraries
Group:		Development/Python
Provides:	py3cairo = %{EVRD}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-cairo
A set of Python3 bindings for the cairo graphics library.

%files -n python3-cairo
%{py3_platsitedir}/cairo
%{py3_platsitedir}/%{oname}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%package -n python3-cairo-devel
Summary:	Development files for python3-cairo
Group:		Development/Python
Requires:	python3-cairo = %{EVRD}

%description -n python3-cairo-devel
Development files for python3-cairo.

%files -n python3-cairo-devel
%{_includedir}/pycairo/py3cairo.h
%{_libdir}/pkgconfig/py3cairo.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16095 |21mr|python-cairocffi-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cairocffi
%global pypi_oname cairocffi

Name:           python-%{pypi_name}
Version:	1.2.0
Release:	1
Group:          Development/Python
Summary:        cffi-based cairo bindings for Python

License:        MIT
URL:            http://pypi.python.org/pypi/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/84/ca/0bffed5116d21251469df200448667e90acaa5131edea869b44a3fbc73d0/cairocffi-1.2.0.tar.gz
BuildArch:      noarch
 
%description
cffi-based cairo bindings for Python

%package -n python3-%{pypi_name}
Summary:        cffi-based cairo bindings for Python
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools
BuildRequires:  python3egg(pytest-runner)
BuildRequires:  python3egg(cffi)

%description -n python3-%{pypi_name}
cffi-based cairo bindings for Python

%prep
%setup -q -n %{pypi_oname}-%{version}
%apply_patches

%build
LANG="en_US.UTF-8" %{__python3} setup.py build

%install
%{__python3} setup.py install --skip-build --root %{buildroot}

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16096 |21mr|python-cairosvg-2.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cairosvg
%global pypi_oname CairoSVG

Name:           python-%{pypi_name}
Version:	2.5.2
Release:	1
Group:          Development/Python
Summary:        A Simple SVG Converter for Cairo
License:        MIT
URL:            http://pypi.python.org/pypi/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/0e/8a/618700c8d6a1dbef8bbe6da97d57c47363aa14b486140a4df9f75f31ba4f/CairoSVG-2.5.2.tar.gz
BuildArch:      noarch

%description
A Simple SVG Converter for Cairo

%package -n %{pypi_name}
Summary:        A Simple SVG Converter for Cairo
Group:          Development/Python

%description -n %{pypi_name}
A Simple SVG Converter for Cairo

%package -n python3-%{pypi_name}
Summary:        A Simple SVG Converter for Cairo
Group:          Development/Python

Requires:       %{pypi_name}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest-runner

%description -n python3-%{pypi_name}
A Simple SVG Converter for Cairo

%prep
%setup -q -n %{pypi_oname}-%{version}


%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --skip-build --root %{buildroot}

%files -n %{pypi_name}
%_bindir/cairosvg

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}*
%{python3_sitelib}/%{pypi_oname}-%version-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16097 |21mr|python-case-1.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name case

# docs depend on package sphinx_celery
# https://github.com/celery/sphinx_celery
%bcond_with docs

Name:           python-%{pypi_name}
Version:	1.5.3
Release:	1
Summary:        Python unittest Utilities
Group:          Development/Python
License:        BSD
URL:            http://github.com/celery/case
Source0:	https://files.pythonhosted.org/packages/31/5a/9f1040ffb91e62c7ed6068dab6da5e1cb9ca3642d9b63c2254c3393af483/case-1.5.3.tar.gz
BuildArch:      noarch

%description
%{summary}


%package -n     python3-%{pypi_name}
Summary:        Python unittest Utilities
Group:          Development/Python
BuildRequires:  python3-sphinx

Requires:       python3-six
Requires:       python3-setuptools >= 0.7
Requires:       python3-nose >= 1.3.7
Requires:       python3-setuptools

BuildRequires:  python3-devel
BuildRequires:  python3-coverage >= 3.0
BuildRequires:  python3-setuptools
BuildRequires:  python3-unittest2
BuildRequires:  python3-nose
BuildRequires:	python3egg(mock)

%description -n python3-%{pypi_name}
%{summary}

%if %{with docs}
%package -n python-%{pypi_name}-doc
Summary:        case documentation
Group:          Development/Python
%description -n python-%{pypi_name}-doc
Documentation for case
%endif

%prep
%setup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%if %{with docs}
# generate html docs
sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install


%check
%{__python3} setup.py test

%files -n python3-%{pypi_name}
%doc LICENSE
%doc docs/templates/readme.txt README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

%if %{with docs}
%files -n python-%{pypi_name}-doc
%doc html
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16098 |21mr|python-cattrs-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cattrs

%bcond_with docs

Name:           python-%{pypi_name}
Version:        1.10.0
Release:        1
Summary:        Composable complex class support for attrs
Group:          Development/Python
License:        MIT license
URL:            https://github.com/Tinche/cattrs
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(sphinx)

%description
cattrs is an open source Python library for structuring and unstructuring data.
cattrs works best with attrs classes and the usual Python collections, but
other kinds of classes are supported by manually registering converters.

#--------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
cattrs is an open source Python library for structuring and unstructuring data.
cattrs works best with attrs classes and the usual Python collections, but
other kinds of classes are supported by manually registering converters.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%if %{with docs}
%doc html
%endif
%{python3_sitelib}/cattr
%{python3_sitelib}/cattrs
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf src/*.egg-info

%build
%py3_build

%if %{with docs}
# generate html docs
PYTHONPATH=${PWD}/src sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16099 |21mr|python-cbor2-5.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cbor2

Summary:	Python CBOR (de)serializer with extensive tag support
Name:		python-%{pypi_name}
Version:	5.4.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/agronholm/cbor2
Source0:	%pypi_source

%description
This library provides encoding and decoding for the Concise Binary Object
Representation (CBOR) (RFC 7049) serialization format.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python CBOR (de)serializer with extensive tag support
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(pytest-cov)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-scm)

%description -n python3-%{pypi_name}
This library provides encoding and decoding for the Concise Binary Object
Representation (CBOR) (RFC 7049) serialization format.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitearch}/%{pypi_name}/
%{python3_sitearch}/_%{pypi_name}.*.so
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:	cbor2 documentation
Group:		Documentation
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3dist(sphinx-rtd-theme)
BuildArch:	noarch

%description -n python-%{pypi_name}-doc
Documentation for cbor2.

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE.txt

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install
PYTHONPATH=${PWD} sphinx-build-3 docs html
rm -rf html/.{doctrees,buildinfo}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16100 |21mr|python-ceph-deploy-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name ceph-deploy

Summary:	Deploy Ceph with minimal infrastructure
Name:		python-%{pypi_name}
Version:	2.1.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/ceph/ceph-deploy
Source0:	https://github.com/ceph/ceph-deploy/archive/v%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sphinx)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
It is a way to deploy Ceph relying on just SSH access to the servers, sudo,
and some Python. It runs fully on your workstation, requiring no servers,
databases, or anything like that. If you set up and tear down Ceph clusters a lot,
and want minimal extra bureaucracy, this is for you.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Deploy Ceph with minimal infrastructure
Group:		Development/Python
Provides:	%{pypi_name} = %{EVRD}

%description -n python3-%{pypi_name}
It is a way to deploy Ceph relying on just SSH access to the servers, sudo,
and some Python. It runs fully on your workstation, requiring no servers,
databases, or anything like that. If you set up and tear down Ceph clusters a lot,
and want minimal extra bureaucracy, this is for you.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/%{pypi_name}
%{_mandir}/man1/%{pypi_name}.1.*
%{python3_sitelib}/ceph_deploy
%{python3_sitelib}/ceph_deploy-%{version}-py*.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build
%make man -C docs

%install
%py3_install

install -pDm644 docs/build/man/%{pypi_name}.1 %{buildroot}%{_mandir}/man1/%{pypi_name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16101 |21mr|python-certbot-apache-1.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname certbot-apache

Name:       python-%{srcname}
Version:    1.13.0
Release:    1
Summary:    The apache plugin for certbot
Group:      System/Servers
License:    ASL 2.0
# https://github.com/certbot/certbot
URL:        https://pypi.python.org/pypi/certbot-apache
Source0:        %{pypi_source}
Patch1:			0001-Detect-ROSA.patch
BuildArch:      noarch
BuildRequires:  python3-devel
# for macros
BuildRequires:  openssl-devel
BuildRequires: python3-acme
BuildRequires: python3-certbot
BuildRequires: python3-augeas
BuildRequires: python3-pytest
BuildRequires: python3-zope-component
BuildRequires: python3-zope-interface

%description
Plugin for certbot that allows for automatic configuration of apache

#--------------------------------------------------------------------------------

%package -n python3-%{srcname}
# Although a plugin for the certbot command it's technically
# an extension to the certbot python libraries
Requires:      python3-acme
Requires:      python3-certbot
Requires:      python3-augeas
Requires:      apache-mod_ssl
#Recommend the CLI as that will be the interface most use
Recommends:    certbot
# Provide the name users expect as a certbot plugin
Provides:      %{srcname} = %{version}-%{release}
Summary:       The apache plugin for certbot

%description -n python3-%{srcname}
Plugin for certbot that allows for automatic configuration of apache

%files -n python3-%{srcname}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/certbot_apache
%{python3_sitelib}/certbot_apache-%{version}*.egg-info

%post
# Scenario:
# - httpd is installed, apache-mod_ssl is not
# - this package is installed
# - running "certbot --apache -d domain.tld"
# - syntax error of httpd config is reported because this certificate
#   is generated on start of httpd.service when apache-mod_ssl is installed.
# So restart Apache to prevent this.
if [ ! -f %{_openssldir}/certs/localhost.cert ]; then
	systemctl try-restart httpd || :
fi

#--------------------------------------------------------------------------------

%prep
%autosetup -p2 -n %{srcname}-%{version}
# Remove bundled egg-info
rm -rf %{srcname}.egg-info

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16102 |21mr|python-certifi-2022.05.18.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name certifi

Name:           python-%{pypi_name}
Version:        2022.05.18.1
Release:        2
Summary:        Python package for providing Mozilla's CA Bundle
Group:          Development/Python
License:        MPLv2.0
#https://www.mozilla.org/MPL/2.0/
URL:            https://github.com/%{pypi_name}/%{name}
Source0:        https://github.com/certifi/python-certifi/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:         0001-Force-certifi-to-use-systems-certs-instead-of-own.patch
BuildArch:      noarch

# Require the system certificate bundle (/etc/pki/tls/certs/ca-bundle.crt)
BuildRequires: ca-certificates

%description
Certifi is a carefully curated collection of Root Certificates for validating
the trustworthiness of SSL certificates while verifying the identity of TLS
hosts. It has been extracted from the Requests project.

Please note that this Fedora package does not actually include a certificate
collection at all. It reads the system shared certificate trust collection
instead. For more details on this system, see the ca-certificates package.

#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       ca-certificates

%description -n python3-%{pypi_name}
Certifi is a carefully curated collection of Root Certificates for validating
the trustworthiness of SSL certificates while verifying the identity of TLS
hosts. It has been extracted from the Requests project.

Please note that this Fedora package does not actually include a certificate
collection at all. It reads the system shared certificate trust collection
instead. For more details on this system, see the ca-certificates package.

This package provides the Python 3 certifi library.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info

#-----------------------------------------------------------------------

%prep
%setup -n %{name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# Remove bundled Root Certificates collection
rm -rf certifi/*.pem
%patch1 -p1

#drop shebangs from python_sitearch
find %{_builddir}/%{name}-%{version} -name '*.py' \
    -exec sed -i '1s/^/\#!\/usr\/bin\/env python\n/' {} \;

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16103 |21mr|python-cffi-1.14.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_as_needed 1
%define pypi_name cffi
# we don't want to provide private python extension libs
%define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so

Summary:	Foreign Function Interface for Python calling C code
Name:		python-%{pypi_name}
Version:	1.14.6
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://cffi.readthedocs.org/
Source0:	https://files.pythonhosted.org/packages/2e/92/87bb61538d7e60da8a7ec247dc048f7671afe17016cd0008b3b710012804/cffi-1.14.6.tar.gz
Patch0:		cffi-1.12.3-linking.patch
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(libffi)
BuildRequires:	python3egg(sphinx)

%description
Foreign Function Interface for Python calling C code. The aim of this project
is to provide a convenient and reliable way of calling C code from Python.
The interface is based on LuaJIT’s FFI.

#----------------------------------------------------------------------------
%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:	Foreign Function Interface for Python 2 calling C code
Group:		Development/Python
BuildRequires:	python2-cparser
BuildRequires:	pythonegg(cython)
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)

%description -n python2-%{pypi_name}
Foreign Function Interface for Python calling C code. The aim of this project
is to provide a convenient and reliable way of calling C code from Python.
The interface is based on LuaJIT’s FFI.

%files -n python2-%{pypi_name}
%{python2_sitearch}/%{pypi_name}
%{python2_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%{python2_sitearch}/*.so

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for CFFI
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for CFFI, the Foreign Function Interface for Python.

%files doc
%doc doc/build/html

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Foreign Function Interface for Python 3 calling C code
Group:		Development/Python
BuildRequires:	python3-cparser
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{pypi_name}
Foreign Function Interface for Python calling C code. The aim of this project
is to provide a convenient and reliable way of calling C code from Python.
The interface is based on LuaJIT’s FFI

%files -n python3-%{pypi_name}
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info
%{python3_sitearch}/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
%patch0 -p1
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

cp -a . %{py3dir}

%build
pushd %{py3dir}
CFLAGS="%{optflags}" %__python3 setup.py build_ext --libraries="dl"
CFLAGS="%{optflags}" %__python3 setup.py build
popd

export PYTHON=%__python2
CFLAGS="%{optflags}" %__python2 setup.py build_ext --libraries="dl"
CFLAGS="%{optflags}" %__python2 setup.py build

pushd doc
make html
rm build/html/.buildinfo
popd

%install
pushd %{py3dir}
%__python3 setup.py install --skip-build --root %{buildroot}
popd

%__python2 setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16104 |21mr|python-cffsubr-0.2.9.post1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cffsubr

Name:           python-%{pypi_name}
Version:        0.2.9.post1
Release:        2
Summary:        Standalone CFF subroutinizer based on the AFDKO tx tool
Group:          Development/Python
# The entire source is ASL 2.0, except the following, which are OFL (but are
# not packaged, so they do not contribute to the overall package License
# field):
#   - tests/data/SourceSansPro-Regular.subset.ttx
#   - tests/data/SourceSansVariable-Regular.subset.ttx
# See NOTICE.
License:        ASL 2.0
URL:            https://pypi.org/project/%{pypi_name}
Source0:        %{pypi_source}
# Written for Fedora in groff_man(7) format based on the output of “cffsubr --help”
Source1:        %{pypi_name}.1

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
# From setup_requires in setup.py:
BuildRequires:  python3dist(setuptools-scm)

%global txbin /usr/bin/tx

BuildRequires:  adobe-afdko

%description
Standalone CFF subroutinizer based on the AFDKO tx tool.

%generate_buildrequires
%pyproject_buildrequires -x testing

%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       adobe-afdko

%description -n python3-%{pypi_name}
Standalone CFF subroutinizer based on the AFDKO tx tool.

%prep
%autosetup -n %{pypi_name}-%{version}

# Patch out setuptools-git-ls-files dependency
sed -r -i '/setuptools-git-ls-files/d' setup.py pyproject.toml

# Do not build the extension, which is a copy of the “tx” executable from
# adobe-afdko:
sed -r -i 's/(ext_modules=)/# \1/' setup.py

# Remove bundled adobe-afdko:
rm -rf external

cp -p '%{SOURCE1}' .

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

# Workaround to prevent a dangling symlink:
install -d "%{buildroot}$(dirname '%{txbin}')"
ln -s '%{txbin}' '%{buildroot}%{txbin}'

# Build a relative symbolic link:
ln -s '%{txbin}' %{buildroot}%{python3_sitelib}/%{pypi_name}/tx
install -t '%{buildroot}%{_mandir}/man1' -D -p -m 0644 '%{pypi_name}.1'

%files -n python3-%{pypi_name} -f %{pyproject_files}
# pyproject-rpm-macros handles the LICENSE file; verify with “rpm -qL -p …”
%doc README.md

# Symbolic link to the “tx” executable; we patched out building a separate copy
# for the Python package, so the Python build does not know about this and we
# must list it explicitly.
%{python3_sitelib}/%{pypi_name}/tx
# This was just a workaround:
%exclude %{txbin}

%{_bindir}/%{pypi_name}
%{_mandir}/man1/%{pypi_name}.1*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16105 |21mr|python-characteristic-14.3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname characteristic

Summary:	Python class decorators
Name:		python-%{oname}
Version:	14.3.0
Release:	7
License:	MIT
Group:		Development/Python
Url:		https://github.com/hynek/characteristic/
Source0:	http://pypi.python.org/packages/source/c/%{oname}/%{oname}-%{version}.tar.gz
BuildArch:	noarch

%description
"characteristic" is a MIT-licensed Python package with class decorators that
ease the chores of implementing the most common attribute-related object
protocols. You just specify the attributes to work with and it gives you:
- a nice human-readable "__repr__",
- a complete set of comparison methods,
- and a kwargs-based initializer (that cooperates with your existing one)
  *without* writing dull boilerplate code again and again.

#----------------------------------------------------------------------------

%package -n python2-%{oname}
Summary:	Python 2 class decorators
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
Provides:	python-%{oname} = %{EVRD}
Conflicts:	python-%{oname} < 14.3.0-7
Obsoletes:	python-%{oname} < 14.3.0-7
BuildArch:	noarch

%description -n python2-%{oname}
"characteristic" is a MIT-licensed Python 2 package with class decorators that
ease the chores of implementing the most common attribute-related object
protocols. You just specify the attributes to work with and it gives you:
- a nice human-readable "__repr__",
- a complete set of comparison methods,
- and a kwargs-based initializer (that cooperates with your existing one)
  *without* writing dull boilerplate code again and again.

%files -n python2-%{oname}
%doc AUTHORS.rst LICENSE README.rst
%{python2_sitelib}/characteristic.py*
%{python2_sitelib}/test_characteristic.py*
%{python2_sitelib}/characteristic*.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	Python 3 class decorators
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description -n python3-%{oname}
"characteristic" is a MIT-licensed Python 3 package with class decorators that
ease the chores of implementing the most common attribute-related object
protocols. You just specify the attributes to work with and it gives you:
- a nice human-readable "__repr__",
- a complete set of comparison methods,
- and a kwargs-based initializer (that cooperates with your existing one)
  *without* writing dull boilerplate code again and again.

%files -n python3-%{oname}
%doc AUTHORS.rst LICENSE README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/characteristic.py*
%{python3_sitelib}/test_characteristic.py*
%{python3_sitelib}/characteristic*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

cp -a . %{py3dir}

%build
%py2_build
pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
popd
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16106 |21mr|python-chardet-4.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module chardet

Summary:	Character encoding auto-detection in Python
Name:		python-%{module}
Version:	4.0.0
Release:	2
License:	LGPLv2+
Group:		Development/Python
Url:		http://chardet.feedparser.org/
Source0:	https://pypi.io/packages/source/c/chardet/chardet-%{version}.tar.gz
BuildArch:	noarch

%description
Character encoding auto-detection in Python. As smart as your browser.

%package -n python2-chardet
%py2_migration_meta python2-chardet
Summary:	Character encoding auto-detection in Python
Group:		Development/Python
BuildRequires:	python2-distribute
BuildRequires:	pkgconfig(python2)

%description -n python2-chardet
Character encoding auto-detection in Python. As smart as your browser.

%files -n python2-chardet
%{_bindir}/python2-chardetect
%{py2_puresitedir}/*.egg-info
%{py2_puresitedir}/%{module}

#----------------------------------------------------------------------------

%package -n python3-chardet
Summary:	Character encoding auto-detection in Python
Group:		Development/Python
BuildRequires:	python3-distribute
BuildRequires:	pkgconfig(python3)

%description -n python3-chardet
Character encoding auto-detection in Python. As smart as your browser.

%files -n python3-chardet
%{_bindir}/chardetect
%{py3_puresitedir}/*.egg-info
%{py3_puresitedir}/%{module}

#----------------------------------------------------------------------------

%prep
%setup -q -c

mv %{module}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
PYTHONDONTWRITEBYTECODE=  %py2_install
mv %{buildroot}%{_bindir}/chardetect %{buildroot}%{_bindir}/python2-chardetect

popd
pushd python3
PYTHONDONTWRITEBYTECODE=  %py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16107 |21mr|python-charset-normalizer-2.0.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-charset-normalizer
Version:        2.0.12
Release:        1
Summary:        The Real First Universal Charset Detector
Group:          Development/Python
License:        MIT
URL:            https://github.com/ousret/charset_normalizer
Source0:        %{url}/archive/refs/tags/%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3egg(pytest)

%description
A library that helps you read text from an unknown charset encoding.
Motivated by chardet, trying to resolve the issue by taking
a new approach. All IANA character set names for which the Python core
library provides codecs are supported.

#----------------------------------------------------------------------
%package -n     python3-charset-normalizer
Summary:        %{summary}
Group:          Development/Python

%description -n python3-charset-normalizer
A library that helps you read text from an unknown charset encoding.
Motivated by chardet, trying to resolve the issue by taking
a new approach. All IANA character set names for which the Python core
library provides codecs are supported.

%files -n python3-charset-normalizer
%license LICENSE
%doc README.md
%{_bindir}/normalizer
%{python3_sitelib}/*

#----------------------------------------------------------------------

%prep
%autosetup -n charset_normalizer-%{version}
# Remove pytest-cov settings from setup.cfg
sed -i "/addopts = --cov/d" setup.cfg

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16108 |21mr|python-cheetah-3.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python-powered template engine and code-generator
Name:		python-cheetah
Version:	3.1.0
Release:	3
License:	MIT
Group:		Development/Python
Url:		http://www.CheetahTemplate.org/
Source0:	https://pypi.python.org/packages/54/86/ea50bb5baf1daa8ca1a56774d48150a69376679d27c4130848702efc378c/Cheetah3-%{version}.tar.gz
BuildRequires:	pkgconfig(python)
Provides:	python-cheetah2 = %{EVRD}

%description
Python-cheetah:
* generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
  text-based format.
* cleanly separates content, graphic design, and program code. This leads to
  highly modular, flexible, and reusable site architectures; faster
  development time; and HTML and program code that is easier to understand and
  maintain. It is particularly well suited for team efforts.
* blends the power and flexibility of Python with a simple template language
  that non-programmers can understand.
* gives template writers full access to any Python data structure, module,
  function, object, or method in their templates.
* makes code reuse easy by providing an object-orientated interface to
  templates that is accessible from Python code or other Cheetah templates.
  One template can subclass another and selectively reimplement sections of it.
* provides a simple, yet powerful, caching mechanism that can dramatically
  improve the performance of a dynamic website.
* compiles templates into optimized, yet readable, Python code.

#----------------------------------------------------------------------------

%package -n python2-cheetah
%py2_migration_meta python2-cheetah
Summary: Python-powered template engine and code-generator

BuildRequires: pkgconfig(python2)
BuildRequires: pythonegg(setuptools)
BuildRequires: pythonegg(pygments)

%description -n python2-cheetah
Python-cheetah:
* generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
  text-based format.
* cleanly separates content, graphic design, and program code. This leads to
  highly modular, flexible, and reusable site architectures; faster
  development time; and HTML and program code that is easier to understand and
  maintain. It is particularly well suited for team efforts.
* blends the power and flexibility of Python with a simple template language
  that non-programmers can understand.
* gives template writers full access to any Python data structure, module,
  function, object, or method in their templates.
* makes code reuse easy by providing an object-orientated interface to
  templates that is accessible from Python code or other Cheetah templates.
  One template can subclass another and selectively reimplement sections of it.
* provides a simple, yet powerful, caching mechanism that can dramatically
  improve the performance of a dynamic website.
* compiles templates into optimized, yet readable, Python code.

%files -n python2-cheetah
%doc LICENSE TODO
%{py2_platsitedir}/Cheetah
%{py2_platsitedir}/*.egg-info

#----------------------------------------------------------------------------

%package -n python3-cheetah
Summary: Python-powered template engine and code-generator

BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(pygments)

%description -n python3-cheetah
Python-cheetah:
* generates HTML, SGML, XML, SQL, Postscript, form email, LaTeX, or any other
  text-based format.
* cleanly separates content, graphic design, and program code. This leads to
  highly modular, flexible, and reusable site architectures; faster
  development time; and HTML and program code that is easier to understand and
  maintain. It is particularly well suited for team efforts.
* blends the power and flexibility of Python with a simple template language
  that non-programmers can understand.
* gives template writers full access to any Python data structure, module,
  function, object, or method in their templates.
* makes code reuse easy by providing an object-orientated interface to
  templates that is accessible from Python code or other Cheetah templates.
  One template can subclass another and selectively reimplement sections of it.
* provides a simple, yet powerful, caching mechanism that can dramatically
  improve the performance of a dynamic website.
* compiles templates into optimized, yet readable, Python code.

%files -n python3-cheetah
%doc ANNOUNCE.rst README.rst TODO BUGS LICENSE
%{_bindir}/*
%{py3_platsitedir}/

#----------------------------------------------------------------------------

%prep
%setup -q -n Cheetah3-%{version}
# remove unnecessary shebang lines to silence rpmlint
sed -i -e '/^#!/,1d' Cheetah/Tests/* \
         Cheetah/DirectiveAnalyzer.py Cheetah/Utils/Misc.py

rm -rf %{py3dir}
cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd

%py2_build

%install
%py2_install
rm %{buildroot}%{_bindir}/*

pushd %{py3dir}
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16109 |21mr|python-cheroot-8.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cheroot
# sphinx-tabs not available in fedora for docs build
%bcond_with docs

Name:		python-%{pypi_name}
Version:	8.5.2
Release:	1
Summary:	Highly-optimized, pure-python HTTP server
Group:		Development/Python
License:	BSD
URL:		https://github.com/cherrypy/cheroot
Source0:	https://files.pythonhosted.org/packages/0e/77/0f823e39f78d97706b11cefc4b95829a2ca237a3021a37a6b7ec361b2113/cheroot-8.5.2.tar.gz
BuildArch:	noarch

%description
Cheroot is the high performance, pure Python HTTP server used by CherryPy.Status
The test suite currently relies on pytest. It's being run via Travis
CI.Contribute Cheroot.

#----------------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Requires:	python3egg(six) >= 1.11
Requires:	python3egg(more-itertools) >= 2.6
Requires:	python3-pyOpenSSL
Requires:	python3egg(trustme)
Requires:	python3egg(jaraco.functools)

BuildRequires:	python3-devel
BuildRequires:	python3-pyOpenSSL
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(pytest-cov)
BuildRequires:	python3egg(pytest-mock)
BuildRequires:	python3egg(jaraco.functools)
# testmon is not needed to tests to run successfully
# the f31 version of testmon requires pytest < 4
# which is not in f31
# BuildRequires:  python3dist(pytest-testmon)
BuildRequires:	python3egg(requests)
BuildRequires:	python3egg(requests-unixsocket)
BuildRequires:	python3egg(setuptools-scm-git-archive) >= 1.0
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(trustme)

%description -n python3-%{pypi_name}
Cheroot is the high performance, pure Python HTTP server used by CherryPy.Status
The test suite currently relies on pytest. It's being run via Travis
CI.Contribute Cheroot.

%files -n python3-%{pypi_name}
%license LICENSE.md
%doc README.rst
%{_bindir}/cheroot
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------
%if %{with docs}
%package -n python-%{pypi_name}-doc
Summary:	cheroot documentation
Group:		Documentation
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3-sphinx-theme-alabaster
BuildRequires:	python3dist(rst-linker)
BuildRequires:	python3dist(jaraco-packaging)
BuildRequires:	python3dist(docutils)

%description -n python-%{pypi_name}-doc
Documentation for cheroot

%files -n python-%{pypi_name}-doc
%license LICENSE.md
%doc html

%endif

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# remove backports.functools_lru_cache from setup.cfg. it's a py2 dep
sed -i '/backports.functools_lru_cache/d' setup.cfg

# testmon is not needed to tests to run successfully
# the f31 version of testmon requires pytest < 4
# which is not in f31
sed -i 's/ --testmon//' pytest.ini
sed -i 's/ -n auto//' pytest.ini
sed -i '/pytest-testmon/d' setup.cfg


%build
%py3_build
%if %{with docs}
sphinx-build -vvv docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install

%check
# checks fail currently
# LANG=C.utf-8 %{__python3} -m pytest --ignore=build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16110 |21mr|python-cherrypy-18.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname CherryPy-%{version}

Summary:        A Python-based framework for web application development
Name:           python-cherrypy
Version:	18.6.1
Release:	1
License:        BSD
Group:          Development/Python
URL:            http://www.cherrypy.org
Source0:	https://files.pythonhosted.org/packages/c6/0d/f6acfd12f098b9f05b9146b79b5a3fad02f4047a7831b5f5c9ee3fe54d56/CherryPy-18.6.1.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-nose
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildArch:      noarch

%description
A Python-based framework for web application development.

CheryPy allows you to write and easyly deploy web applications, thanks
to a bundled webserver. It features a automated way to map an url to a
mathod, allowing you to describe your site as a python class.

%package -n python3-cherrypy
Summary:        A Python-based framework for web application development
Group:          Development/Python
Requires:       python3

%description -n python3-cherrypy
A Python-based framework for web application development.

CheryPy allows you to write and easyly deploy web applications, thanks
to a bundled webserver. It features a automated way to map an url to a
mathod, allowing you to describe your site as a python class.

%prep
%setup -q -n %{tarname}

%build
cat > tutorial.conf << EOF
[server]
socketPort = 8080
threadPool = 10

[session]
storageType=ram
EOF

%py3_build


%install
%py3_install 
mv %{buildroot}/%{_bindir}/cherryd %{buildroot}/%{_bindir}/python3-cherryd

%files -n python3-cherrypy
%doc cherrypy/tutorial/*
%{python3_sitelib}/cherrypy/*
%{python3_sitelib}/*.egg-info
%{_bindir}/python3-cherryd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16111 |21mr|python-cleo-1.0.0a5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cleo

%global common_description %{expand:
Create beautiful and testable command-line interfaces.

Cleo is mostly a higher level wrapper for CliKit, so a lot of the
components and utilities comes from it. Refer to its documentation for
more information.}

Name:           python-%{pypi_name}
Summary:        Create beautiful and testable command-line interfaces
Group:          Development/Python
Version:        1.0.0a5
Release:        1
License:        MIT

URL:            https://github.com/sdispater/cleo
Source0:        https://github.com/python-poetry/cleo/archive/refs/tags/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(setuptools)

%description %{common_description}

#-------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{common_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README*

#-------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16112 |21mr|python-click-8.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	click

Name:		python-%{module}
Version:	8.0.3
Release:	1
Summary:	A simple wrapper around optparse for powerful command line utilities
Group:		Development/Python
License:	BSD
Url:		https://palletsprojects.com/p/click/
Source0:	https://pypi.io/packages/source/c/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary.  It's the "Command
Line Interface Creation Kit".  It's highly configurable but comes with
sensible defaults out of the box.

It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.

#-----------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A simple wrapper around optparse for powerful command line utilities
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Click is a Python package for creating beautiful command line interfaces
in a composable way with as little code as necessary.  It's the "Command
Line Interface Creation Kit".  It's highly configurable but comes with
sensible defaults out of the box.

It aims to make the process of writing command line tools quick and fun
while also preventing any frustration caused by the inability to
implement an intended CLI API.

%files -n python3-%{module}
%doc *.rst
%{python3_sitelib}/click/*.py*
%{python3_sitelib}/click/py.typed
%{python3_sitelib}/click/__pycache__
%{python3_sitelib}/click*.egg-info
#----------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16113 |21mr|python-cliff-3.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%{!?upstream_version: %global upstream_version %{version}%{?milestone}}

%global modname cliff

%global common_desc \
cliff is a framework for building command line programs. It uses setuptools \
entry points to provide subcommands, output formatters, and other \
extensions. \
\
Documentation for cliff is hosted on readthedocs.org at \
http://readthedocs.org/docs/cliff/en/latest/

%global common_desc_tests This package contains tests for the python cliff library.

Name:             python-%{modname}
Version:	3.8.0
Release:	1
Summary:          Command Line Interface Formulation Framework

Group:            Development/Python
License:          ASL 2.0
URL:              https://pypi.io/pypi/cliff
Source0:	https://files.pythonhosted.org/packages/cd/ba/da7f1c8f63e6171b3cdf38afc103574d27c885e007352e35bba01b235263/cliff-3.8.0.tar.gz

BuildArch:        noarch

%package -n python3-%{modname}
Summary:          Command Line Interface Formulation Framework
%{?python_provide:%python_provide python3-%{modname}}

BuildRequires:    python3-devel
BuildRequires:    python3-setuptools
BuildRequires:    python3-pbr
BuildRequires:    python3-prettytable
BuildRequires:    python3-stevedore
BuildRequires:    python3-six
BuildRequires:    python3-pyparsing
BuildRequires:    python3-cmd2 >= 0.8.0

Requires:         python3-prettytable
Requires:         python3-stevedore >= 1.20.0
Requires:         python3-six
Requires:         python3-cmd2 >= 0.8.0
Requires:         python3-pyparsing
Requires:         python3-PyYAML

%description -n python3-%{modname}
%{common_desc}

%package -n python3-%{modname}-tests
Summary:          Command Line Interface Formulation Framework
%{?python_provide:%python_provide python3-%{modname}-tests}

# Required for the test suite
BuildRequires:    python3-mock
BuildRequires:    bash
BuildRequires:    which
BuildRequires:    python3-subunit
BuildRequires:    python3-testtools
BuildRequires:    python3-testscenarios
BuildRequires:    python3-testrepository
BuildRequires:    python3-docutils
BuildRequires:    python3-PyYAML

Requires:         python3-%{modname} = %{version}-%{release}
Requires:         python3-mock
Requires:         bash
Requires:         which
Requires:         python3-subunit
Requires:         python3-testtools
Requires:         python3-testscenarios
Requires:         python3-testrepository
Requires:         python3-PyYAML

%description -n python3-%{modname}-tests
%{common_desc_tests}

%description
%{common_desc}

%prep
%setup -q -n %{modname}-%{upstream_version}
rm -rf {test-,}requirements.txt

# Remove bundled egg info
rm -rf *.egg-info

%build
%{py3_build}

%install
%{py3_install}

%check
PYTHON=python3 python3 setup.py test

%files -n python3-%{modname}
%license LICENSE
%doc doc/ README.rst ChangeLog AUTHORS CONTRIBUTING.rst
%{python3_sitelib}/%{modname}
%{python3_sitelib}/%{modname}-*.egg-info
%exclude %{python3_sitelib}/%{modname}/tests

%files -n python3-%{modname}-tests
%{python3_sitelib}/%{modname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16114 |21mr|python-clikit-0.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name clikit

%global common_description %{expand:
CliKit is a group of utilities to build beautiful and testable command
line interfaces. This is at the core of Cleo.}

Name:           python-%{pypi_name}
Summary:        Utilities to build beautiful and testable CLIs
Group:          Development/Python
Version:        0.6.2
Release:        1
License:        MIT

URL:            https://github.com/sdispater/clikit
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description %{common_description}

#-------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{common_description}

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/

#-------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version} -p1


%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16115 |21mr|python-cloudflare-2.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pyname python-cloudflare
%global pypi_name cloudflare

Name:           python-%{pypi_name}
Version:        2.11.1
Release:        1
Summary:        Python wrapper for the Cloudflare Client API v4
Group:          Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:        %{pypi_source}

# TODO: Remove this once jsonlines is packaged
Patch0:         remove-jsonlines.patch
Patch1:         remove-shebangs.patch

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# Used to verify OpenPGP signature
BuildRequires:  gnupg2
BuildRequires:  sed

%description
Python wrapper library for the Cloudflare Client API v4.

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Python wrapper library for the Cloudflare Client API v4.

This is the Python 3 version of the package.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md
%{_bindir}/cli4
%doc %attr(0644,root,root) %{_mandir}/man1/cli4.1*
%{python3_sitelib}/cli4
%exclude %{python3_sitelib}/examples

#------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
rm -rf *.egg-info
# Remove shebangs
sed -i -e '1!b' -e '\~^#!/usr/bin/env python~d' cli4/*.py

%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files CloudFlare

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16116 |21mr|python-cmd2-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global modname cmd2

Name:             python-cmd2
Version:	2.1.2
Release:	1
Summary:          Extra features for standard library's cmd module
Group:		Development/Python

License:          MIT
URL:              https://pypi.python.org/pypi/cmd2
Source0:	https://files.pythonhosted.org/packages/a6/93/adfe582bbb6123cbe3ae7214a3ba2688c51b42c7c39fa3fea6ab87bcfac1/cmd2-2.1.2.tar.gz
BuildArch:        noarch


%global _description\
Enhancements for standard library's cmd module.\
\
Drop-in replacement adds several features for command-prompt tools:\
\
 * Searchable command history (commands: "hi", "li", "run")\
 * Load commands from file, save to file, edit commands in file\
 * Multi-line commands\
 * Case-insensitive commands\
 * Special-character shortcut commands (beyond cmd's "@" and "!")\
 * Settable environment parameters\
 * Parsing commands with flags\
 * > (filename), >> (filename) redirect output to file\
 * < (filename) gets input from file\
 * bare >, >>, < redirect to/from paste buffer\
 * accepts abbreviated commands when unambiguous\
 * `py` enters interactive Python console\
 * test apps against sample session transcript (see example/example.py)\
\
Usable without modification anywhere cmd is used; simply import cmd2.Cmd\
in place of cmd.Cmd.\
\
See docs at http://packages.python.org/cmd2/

%description %_description

%package -n python3-cmd2
Summary:        Extra features for standard library's cmd module
BuildRequires:    python3-devel
BuildRequires:    python3-setuptools
BuildRequires:    python3-setuptools_scm
BuildRequires:    dos2unix

Requires:         python3-pyparsing
Requires:         python3-pyperclip
Requires:         python3-six
Requires:         python3-wcwidth
Requires:         /usr/bin/which
%{?python_provide:%python_provide python3-cmd2}

%description -n python3-cmd2
Enhancements for standard library's cmd module.

Drop-in replacement adds several features for command-prompt tools:

 * Searchable command history (commands: "hi", "li", "run")
 * Load commands from file, save to file, edit commands in file
 * Multi-line commands
 * Case-insensitive commands
 * Special-character shortcut commands (beyond cmd's "@" and "!")
 * Settable environment parameters
 * Parsing commands with flags
 * > (filename), >> (filename) redirect output to file
 * < (filename) gets input from file
 * bare >, >>, < redirect to/from paste buffer
 * accepts abbreviated commands when unambiguous
 * `py` enters interactive Python console
 * test apps against sample session transcript (see example/example.py)

Usable without modification anywhere cmd is used; simply import cmd2.Cmd
in place of cmd.Cmd.

See docs at http://packages.python.org/cmd2/

%prep
%setup -q -n %{modname}-%{version}

%build
%py3_build

%install
%py3_install


%files -n python3-%{modname}
%license LICENSE
%doc CHANGELOG.md README.md
%{python3_sitelib}/cmd2
%{python3_sitelib}/%{modname}-%{version}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16117 |21mr|python-colorama-0.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	colorama

Name:		python-%{module}
Version:	0.4.4
Release:	1
Summary:	Cross-platform colored terminal text
Source0:	https://files.pythonhosted.org/packages/1f/bb/5d3246097ab77fa083a61bd8d3d527b7ae063c7d8e8671b1cf8c4ec10cbe/colorama-0.4.4.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/tartley/colorama
BuildArch:	noarch

%description
Makes ANSI escape character sequences (for producing colored
terminal text and cursor positioning) work under MS Windows.

ANSI escape character sequences have long been used to produce
colored terminal text and cursor positioning on Unix and Macs. 
Colorama makes this work on Windows, too, by wrapping stdout,
stripping ANSI sequences it finds (which would appear as gobbledygook
in the output), and converting them into the appropriate win32 calls
to modify the state of the terminal. 
On other platforms, Colorama does nothing.

#---------------------------------------------------

%package -n python3-%{module}

Summary:        Cross-platform colored terminal text
BuildRequires:  pkgconfig(python3)
BuildRequires:  pythonegg(setuptools)

%description -n python3-%{module}
Makes ANSI escape character sequences (for producing colored
terminal text and cursor positioning) work under MS Windows.
ANSI escape character sequences have long been used to produce
colored terminal text and cursor positioning on Unix and Macs. 
Colorama makes this work on Windows, too, by wrapping stdout,
stripping ANSI sequences it finds (which would appear as gobbledygook
in the output), and converting them into the appropriate win32 calls
to modify the state of the terminal. 
On other platforms, Colorama does nothing.

%files -n python3-%{module}
%doc CHANGELOG.rst LICENSE.txt README.rst
%{py3_puresitedir}/colorama
%{py3_puresitedir}/colorama*.egg-info

#---------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16118 |21mr|python-commonmark-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module commonmark

Summary:	Python parser for the CommonMark Markdown spec
Name:		python-%{module}
Version:	0.9.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://pypi.python.org/pypi/%{module}
Source0:	https://files.pythonhosted.org/packages/60/48/a60f593447e8f0894ebb7f6e6c1f25dafc5e89c5879fdc9360ae93ff83f0/commonmark-0.9.1.tar.gz
BuildArch:	noarch

%description
Pure Python port of jgm’s stmd.js, a Markdown parser and renderer for the
CommonMark specification, using only native modules. Once both this project and
the CommonMark specification are stable we will release the first 1.0 version
and attempt to keep up to date with changes in stmd.js.


#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python parser for the CommonMark Markdown spec
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(future)
BuildRequires:	python3egg(hypothesis)
BuildRequires:	python3egg(setuptools)
Requires:	python3-future
# Binary files conflict
Conflicts:	cmark

%description -n python3-%{module}
Pure Python port of jgm’s stmd.js, a Markdown parser and renderer for the
CommonMark specification, using only native modules. Once both this project and
the CommonMark specification are stable we will release the first 1.0 version
and attempt to keep up to date with changes in stmd.js.

%files -n python3-%{module}
%doc LICENSE
%{_bindir}/cmark
%{python3_sitelib}/%{module}/
%{python3_sitelib}/%{module}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# Fix non executable scripts
sed -i '1{\@^#!/usr/bin/env python@d}' %{module}/tests/run_spec_tests.py
sed -i '1{\@^#!/usr/bin/env python@d}' %{module}/cmark.py


%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16119 |21mr|python-compreffor-0.5.1.post1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name compreffor

Name:           python-%{pypi_name}
Version:        0.5.1.post1
Release:        1
Summary:        A CFF subroutinizer for fontTools
Group:          Development/Python
License:        Apache 2.0
URL:            https://pypi.org/project/compreffor/
Source0:        https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  python3-cython
BuildRequires:  python3-devel
BuildRequires:  python3dist(fonttools) >= 3.1
BuildRequires:  python3dist(pytest) >= 2.8
BuildRequires:  python3dist(pytest-runner)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
BuildRequires:  python3dist(setuptools-git-ls-files)

%description
A CFF table subroutinizer for FontTools.

#---------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Provides:       compreffor = %{version}-%{release}
Requires:       python3dist(fonttools) >= 3.1
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
A CFF table subroutinizer for FontTools.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/compreffor
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/compreffor
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16120 |21mr|python-ConfigArgParse-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	srcname ConfigArgParse

Name:		python-%{srcname}
Version:	1.5.2
Release:	1
Summary:	A drop-in replacement for argparse
Url:		https://github.com/bw2/ConfigArgParse
Source0:	%{pypi_source}
License:	MIT
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-pytest
BuildRequires:	python3-setuptools
#for tests
BuildRequires:	python3-PyYAML
BuildRequires:	python3-wheel
BuildRequires:	python3-mock
BuildArch:	noarch

%define _description \
Applications with more than a handful of user-settable options are best\
configured through a combination of command line args, config files, hard\
coded defaults, and in some cases, environment variables.\
\
Python’s command line parsing modules such as argparse have very limited\
support for config files and environment variables, so this module extends\
argparse to add these features.\

%description
%{_description}

#--------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	%{summary}
Group:		%{group}
# in lowercase, compat with Fedora
Provides:	python3-configargparse = %{EVRD}

%description -n python3-%{srcname}
%{_description}

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/configargparse.py*
%{python3_sitelib}/%{srcname}*.egg-info
%{python3_sitelib}/__pycache__/configargparse*

#--------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16121 |21mr|python-configobj-5.0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	configobj

Summary:	Simple but powerful config file reader and writer
Name:		python-%{module}
Version:	5.0.6
Release:	7
License:	BSD
Group:		Development/Python 
Url:		http://www.voidspace.org.uk/python/configobj.html
Source0:	http://www.voidspace.org.uk/downloads/%{module}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
Provides:	ConfigObj = %{version}
Provides:	python-ConfigObj = %{version}

%description
ConfigObj is a simple but powerful config file reader and writer: an ini file
round tripper. Its main feature is that it is very easy to use, with a
straightforward programmer's interface and a simple syntax for config files.

#==========================================================================
%package -n python2-configobj
%py2_migration_meta python2-configobj
Summary:        Simple but powerful config file reader and writer
License:        BSD
Group:		Development/Python
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)

%description -n python2-configobj
ConfigObj is a simple but powerful config file reader and writer: an ini file
round tripper. Its main feature is that it is very easy to use, with a
straightforward programmer's interface and a simple syntax for config files.

%files -n python2-configobj
%{python2_sitelib}/*.py*
%{python2_sitelib}/*.egg-info

#==========================================================================
%package -n python3-configobj
Summary:        Simple but powerful config file reader and writer
License:        BSD
Group:		Development/Python

%description -n python3-configobj
ConfigObj is a simple but powerful config file reader and writer: an ini file
round tripper. Its main feature is that it is very easy to use, with a
straightforward programmer's interface and a simple syntax for config files.

%files -n python3-configobj
%{python3_sitelib}/*.py*
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/__pycache__/*

#==========================================================================

%prep
%setup -qc %{module}-%{version}
mv %{module}-%{version} python3
cp -a python3 python2

%build

pushd python3
%py3_build
popd

pushd python2
%py2_build
popd

%install
pushd python3
%py3_install
popd

pushd python2
%py2_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16122 |21mr|python-configparser-5.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name configparser

Summary:        Configparser module
Name:           python-%{pypi_name}
Version:        5.0.2
Release:        4
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/%{pypi_name}
Source0:        %{pypi_source %{pypi_name} %{version}}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)
Requires:       python3egg(setuptools)
Provides:       python3-%{pypi_name} = %{EVRD}
BuildArch:      noarch

%description
The ancient ConfigParser module available in the standard library 2.x
has seen a major update in Python 3.2. This package is a backport of
those changes so that they can be used directly in Python 2.6 - 3.5.
#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:      Configparser module
Group:        Development/Python
Requires:     python3-backports-common

%description -n python3-%{pypi_name}
The ancient ConfigParser module available in the standard library 2.x
has seen a major update in Python 3.2. This package is a backport of
those changes so that they can be used directly in Python 2.6 - 3.5.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/backports/%{pypi_name}
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/__pycache__/configparser.cpython-*
%{python3_sitelib}/configparser.py*
#--------------------------------------------------------------------
%package -n python3-backports-common
Summary:      Common files for all backports project
Group:        Development/Python

%description -n python3-backports-common
Common files for all backports project
Also used in:
python-backports-functools_lru_cache
python-backports.entry-points-selectable
python-backports.shutil_get_terminal_size

%files -n python3-backports-common
%{python3_sitelib}/backports/__init__.py
%{python3_sitelib}/backports/__pycache__/__init__*

#--------------------------------------------------------------------

%prep
%setup -q -n  %{pypi_name}-%{version}
rm -rf %{pypi_name}-%{version}/*.egg-info

%build
SETUPTOOLS_SCM_DEBUG=1 %py3_build


%install
%py3_install

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16123 |21mr|python-confluent-kafka-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name confluent-kafka

Name:		python-%{pypi_name}
Version:	1.7.0
Release:	1
Summary:	Confluent's Apache Kafka client for Python
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/confluentinc/confluent-kafka-python
Source0:	https://files.pythonhosted.org/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

%description
confluent-kafka-python is Confluent's Python client for Apache Kafka
and the Confluent Platform.

#-----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
BuildRequires:	librdkafka-devel >= 1.6.0
BuildRequires:	python3-devel
# Unit tests are present in the upstream repo, but not in the PyPi distribution
# https://github.com/confluentinc/confluent-kafka-python/issues/508
#BuildRequires:  python3dist(pytest)
BuildRequires:	python3-setuptools
BuildRequires:	/usr/bin/pathfix.py
Requires:	librdkafka

%description -n python3-%{pypi_name}
confluent-kafka-python is Confluent's Python client for Apache Kafka
and the Confluent Platform.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.md
%{python3_sitearch}/confluent_kafka
%{python3_sitearch}/confluent_kafka-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

# Fix ambiguous shebangs
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{python3_sitearch}/confluent_kafka

# Remove license file installed in weird place
rm  %{buildroot}/%{_prefix}/LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16124 |21mr|python-constantly-15.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name constantly

Summary:	Python library for symbolic constants
Name:		python-constantly
Version:	15.1.0
Release:	4
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/constantly/
Source0:	%pypi_source
BuildArch:	noarch

%description
Python library for symbolic constants.

#----------------------------------------------------------------------------

%package -n python3-constantly
Summary:	Python3 library for symbolic constants
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Provides:	python3egg(constantly) = %{EVRD}
Provides:	python3dist(constantly) = %{EVRD}
Provides:	python%{py3_ver}dist(constantly) = %{EVRD}
BuildArch:	noarch

%description -n python3-constantly
Python3 library for symbolic constants.

%files -n python3-constantly
%{python3_sitelib}/constantly
%{python3_sitelib}/constantly-%{version}-py%{py3_ver}.egg-info/*

#----------------------------------------------------------------------------

%prep
%setup -qn constantly-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16125 |21mr|python-construct-2.10.67-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	construct

Name:		python-%{module}
Version:	2.10.67
Release:	2
Summary:	A powerful declarative parser/builder for binary data
License:	MIT
Group:		Development/Python
URL:		http://construct.readthedocs.org
Source0:	https://github.com/construct/construct/archive/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
Construct is a powerful declarative parser (and builder) for binary
data.

Instead of writing imperative code to parse a piece of data, you
declaratively define a data structure that describes your data. As
this data structure is not code, you can use it in one direction to
parse data into Pythonic objects, and in the other direction, convert
(build) objects into binary data.

#---------------------------------------------------------------------
%package -n	python3-%{module}
Summary:	A powerful declarative parser/builder for binary data
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Construct is a powerful declarative parser (and builder) for binary
data.

Instead of writing imperative code to parse a piece of data, you
declaratively define a data structure that describes your data. As
this data structure is not code, you can use it in one direction to
parse data into Pythonic objects, and in the other direction, convert
(build) objects into binary data.

This is the Python 3 version of the package.

%files -n python3-%{module}
%doc README.rst LICENSE
%{python3_sitelib}/%{module}/
%{python3_sitelib}/%{module}-%{version}-*.egg-info

#---------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16126 |21mr|python-consul-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name %{name}

Name:           python-consul
Version:        1.1.0
Release:        2
Summary:        Python client for https://www.consul.io/
License:        MIT
Group:          Development/Python
URL:            https://github.com/cablehead/python-consul
Source:         %{pypi_source}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildArch:      noarch

%description
Python client for `Consul.io <http://www.consul.io/>`_

#---------------------------------------------------------
%package -n python3-consul
Summary:        Python client for https://www.consul.io/
Group:          Development/Python
Requires:       python3-requests >= 2.0
Requires:       python3-six >= 1.4
Suggests:       python3-aiohttp
Suggests:       python3-tornado
Suggests:       python3-treq
Suggests:       python3-twisted

%description -n python3-consul
Python client for `Consul.io <http://www.consul.io/>`_

%files -n python3-consul
%license LICENSE
%doc CHANGELOG.rst README.rst
%{python3_sitelib}/*

#---------------------------------------------------------

%prep
%setup -q -n python-consul-%{version}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16127 |21mr|python-contextlib2-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname contextlib2

Name:               python-contextlib2
Version:            0.6.0
Release:            1
Summary:            Backports and enhancements for the contextlib module
Group:              Development/Python
License:            Python
URL:                http://pypi.python.org/pypi/contextlib2
Source0:            https://pypi.python.org/packages/source/c/%{modname}/%{modname}-%{version}.tar.gz
BuildArch:          noarch
BuildRequires:      python3-devel

%description
contextlib2 is a backport of the standard library's contextlib module to
earlier Python versions.

It also serves as a real world proving ground for possible future
enhancements to the standard library version.

%package -n python3-contextlib2
Summary:            Backports and enhancements for the contextlib module
Group:              Development/Python

%description -n python3-contextlib2
contextlib2 is a backport of the standard library's contextlib module to
earlier Python versions.

It also serves as a real world proving ground for possible future
enhancements to the standard library version.

%prep
%setup -q -n %{modname}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 test_contextlib2.py

%files -n python3-contextlib2
%doc VERSION.txt NEWS.rst LICENSE.txt
%{py3_puresitedir}/%{modname}.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/%{modname}-%{version}-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16128 |21mr|python-contextvars-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name contextvars

Summary:	PEP 567 Backport
Name:		python-contextvars
Version:	2.4
Release:	1
License:	ASL2.0
Group:		Development/Python
Url:		https://github.com/pganssle/zoneinfo
Source0:	https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This package implements a backport of Python 3.7 contextvars module 
(see PEP 567) for Python 3.6.
Important: at this moment this package does not provide an asyncio event 
loop with PEP 567 support yet. Stay tuned for updates.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	PEP 567 Backport
Group:		Development/Python

%description -n python3-%{pypi_name}
This package implements a backport of Python 3.7 contextvars module 
(see PEP 567) for Python 3.6.
Important: at this moment this package does not provide an asyncio event 
loop with PEP 567 support yet. Stay tuned for updates.

%files -n python3-%{pypi_name}
%doc README.* LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16129 |21mr|python-cov-core-1.15.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name cov-core

Name:           python-%{pypi_name}
Version:        1.15.0
Release:        3
Summary:        Plugin core for use by pytest-cov, nose-cov and nose2-cov
Group:          Development/Python
License:        MIT
URL:            http://bitbucket.org/memedough/cov-core/overview
Source0:        https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
This is a lib package for use by pytest-cov, nose-cov and nose2-cov. If
you're developing a coverage plugin for a test framework then you probably
want one of those.

%package -n     python3-%{pypi_name}
Summary:        Plugin core for use by pytest-cov, nose-cov and nose2-cov
Group:          Development/Python

%description -n python3-%{pypi_name}
This is a lib package for use by pytest-cov, nose-cov and nose2-cov. If
you're developing a coverage plugin for a test framework then you probably
want one of those.

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc LICENSE.txt
%doc README*
%{py3_puresitedir}/cov_core*
%{py3_puresitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16130 |21mr|python-coverage-5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	coverage

Summary:	Code coverage measurement for Python
Name:		python-%{module}
Version:	5.5
Release:	1
Source0:	https://files.pythonhosted.org/packages/38/df/d5e67851e83948def768d7fb1a0fd373665b20f56ff63ed220c6cd16cb11/coverage-5.5.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://nedbatchelder.com/code/coverage/
BuildRequires:	python2-setuptools
BuildRequires:  python2-devel
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)

%description
Coverage measures code coverage, typically during test execution. It
uses the code analysis tools and tracing hooks provided in the Python
standard library to determine which lines are executable, and which
have been executed.

%package -n python2-coverage
%py2_migration_meta python2-coverage
Summary:        Code coverage measurement for Python
Group:          Development/Python
Requires:       python2
 
%description -n python2-coverage
Coverage measures code coverage, typically during test execution. It
uses the code analysis tools and tracing hooks provided in the Python
standard library to determine which lines are executable, and which
have been executed.

%package -n python3-coverage
Summary:        Code coverage measurement for Python
Group:          Development/Python
Requires:       python3
 
%description -n python3-coverage
Coverage measures code coverage, typically during test execution. It
uses the code analysis tools and tracing hooks provided in the Python
standard library to determine which lines are executable, and which
have been executed.

%prep
%setup -q -c

mv %{module}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
python3 setup.py build
popd

%install
pushd python2
%py2_install
popd

pushd python3
python3 setup.py install --root=%{buildroot}
popd

%files -n python2-coverage 
%doc python2/*.txt
%{py2_platsitedir}/coverage
%{py2_platsitedir}/coverage-%{version}-py%{py2_ver}.egg-info
/usr/bin/coverage2
/usr/bin/coverage-%{py2_ver}

%files -n python3-coverage
%doc python3/*.txt
%{py3_platsitedir}/coverage
%{py3_platsitedir}/coverage-%{version}-py%{py3_ver}.egg-info
/usr/bin/coverage
/usr/bin/coverage3
/usr/bin/coverage-%{py3_ver}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16131 |21mr|python-cparser-2.21-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pycparser
%define module cparser

Summary:	C parser in Python
Name:		python-%{module}
Version:	2.21
Release:	9
License:	BSD
Group:		Development/Python
Url:		https://github.com/eliben/pycparser
Source0:	%{URL}/archive/refs/tags/release_v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
pycparser is a complete parser of the C language, written in pure Python
using the PLY parsing library. It parses C code into an AST and can serve
as a front-end for C compilers or analysis tools.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	C parser in Python 2
Group:		Development/Python

%description -n python2-%{module}
pycparser is a complete parser of the C language, written in pure Python
using the PLY parsing library. It parses C code into an AST and can serve
as a front-end for C compilers or analysis tools.

%files -n python2-%{module}
%doc CHANGES LICENSE README.rst
%{py2_puresitedir}/pycparser/*.py*
%{py2_puresitedir}/pycparser/ply/*.py*
%{py2_puresitedir}/pycparser*.egg-info
%{py2_puresitedir}/pycparser/_c_ast.cfg

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	C parser in Python 3
Group:		Development/Python

%description -n python3-%{module}
pycparser is a complete parser of the C language, written in pure Python
using the PLY parsing library. It parses C code into an AST and can serve
as a front-end for C compilers or analysis tools.

%files -n python3-%{module}
%doc CHANGES LICENSE README.rst
%{py3_puresitedir}/pycparser/*.py*
%{py3_puresitedir}/pycparser/ply/*.py*
%{py3_puresitedir}/pycparser*.egg-info
%{py3_puresitedir}/pycparser/_c_ast.cfg
%{py3_puresitedir}/pycparser/__pycache__/*
%{py3_puresitedir}/pycparser/ply/__pycache__/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-release_v%{version}
perl -i -pe 's/\r\n/\n/gs' LICENSE

cp -a . %{py3dir}

%build
pushd %{py3dir}
%{__python3} setup.py build
popd

%{__python2} setup.py build

%install
pushd %{py3dir}
%{__python3} setup.py install --root=%{buildroot} --install-purelib=%{py3_puresitedir}
popd

%{__python2} setup.py install --root=%{buildroot} --install-purelib=%{py2_puresitedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16132 |21mr|python-cppy-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname cppy

Name:		python-%{srcname}
Version:	1.2.0
Release:	1
Summary:	C++ headers for C extension development
Group:		Development/Python
License:	BSD
URL:		https://github.com/nucleic/cppy
Source0:	https://pypi.io/packages/source/c/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-scm)
BuildRequires:	python3dist(pytest)
BuildArch:	noarch

%description
A small C++ header library which makes it easier to write Python extension
modules. The primary feature is a PyObject smart pointer which automatically
handles reference counting and provides convenience methods for performing
common object operations.

#-----------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{srcname}
A small C++ header library which makes it easier to write Python extension
modules. The primary feature is a PyObject smart pointer which automatically
handles reference counting and provides convenience methods for performing
common object operations.

%files -n python3-%{srcname}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py*.egg-info

#-----------------------------------------------------------------------------

%package -n python-%{srcname}-doc
Summary:	cppy documentation
Group:		Documentation

BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(sphinx-rtd-theme)

%description -n python-%{srcname}-doc
Documentation for cppy

%files -n python-%{srcname}-doc
%doc html
%license LICENSE

#-----------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

# Remove bundled egg-info
rm -rf %{srcname}.egg-info


%build
%py3_build

# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}


%install
%py3_install


%check
PYTHONPATH=%{buildroot}%{python3_sitelib} \
    pytest-3 tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16133 |21mr|python-crack-0.5.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name crack

Summary:	Crack tools 
Name:		python-%{pypi_name}
Version:	0.5.5
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://leesoar.com/
Source0:	https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pycrypto)
BuildRequires:	python3egg(pysodium)
BuildArch:	noarch

%description
Currently support custom aes, base58, base64, secrets, seal box and 
unsigned shift, other will be coming soon.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
Currently support custom aes, base58, base64, secrets, seal box and 
unsigned shift, other will be coming soon.

%files -n python3-%{pypi_name}
%{_bindir}/crack
%{python3_sitelib}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16134 |21mr|python-crashtest-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name crashtest

%global common_description %{expand:
Crashtest is a Python library that makes exceptions handling and
inspection easier.}

Name:           python-%{pypi_name}
Version:        0.3.1
Release:        1
Summary:        Manage Python errors with ease
Group:          Development/Python
License:        MIT

URL:            https://github.com/sdispater/crashtest
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-pytest
BuildRequires:  pyproject-rpm-macros

%description %{common_description}

#---------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{common_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.md

#---------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{pypi_name}


%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16135 |21mr|python-croniter-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name croniter

Name:           python-%{pypi_name}
Version:        1.2.0
Release:        1
Summary:        Iteration for datetime object with cron like format
Group:          Development/Python
License:        MIT
URL:            http://github.com/kiorky/%{pypi_name}
Source0:        https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
Croniter provides iteration for datetime object with cron like format.
#--------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Iteration for datetime object with cron like format
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(python-dateutil)
BuildRequires:  python3egg(pytz)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(tzlocal)
BuildRequires:  python3egg(future)


%description -n python3-%{pypi_name}
Croniter provides iteration for datetime object with cron like format.

%files -n python3-%{pypi_name}
%doc README.rst docs/LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info
#-------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf src/%{pypi_name}.egg-info

# Remove reundant script header to avoid rpmlint warnings
find -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +

%build
%py3_build

%install
%py3_install

%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
# we are not in JST timezone.
pytest-3 src -k 'not test_croniter.py'



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16136 |21mr|python-crypto-2.6.1-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Share docs between python2 and python3 packages
%global _docdir_fmt %{name}

# Single python3 version in Fedora, python3_pkgversion macro not available
%{!?python3_pkgversion:%global python3_pkgversion 3}

# For consistency and completeness
%global python2_pkgversion 2

Summary:	Cryptography library for Python
Name:		python-crypto
Version:	2.6.1
Release:	29
Group:		Development/Python
# Mostly Public Domain apart from parts of HMAC.py and setup.py, which are Python
License:	Public Domain and Python
URL:		http://www.pycrypto.org/
Source0:	http://ftp.dlitz.net/pub/dlitz/crypto/pycrypto/pycrypto-%{version}.tar.gz
Patch0:		python-crypto-2.4-optflags.patch
Patch1:		python-crypto-2.4-fix-pubkey-size-divisions.patch
Patch2:		pycrypto-2.6.1-CVE-2013-7459.patch
Patch3:		pycrypto-2.6.1-unbundle-libtomcrypt.patch
Patch4:		python-crypto-2.6.1-link.patch
Patch5:		pycrypto-2.6.1-CVE-2018-6594.patch
Patch6:		pycrypto-2.6.1-use-os-random.patch
Patch7:		pycrypto-2.6.1-drop-py2.1-support.patch
BuildRequires:	coreutils
BuildRequires:	findutils
BuildRequires:	gmp-devel >= 4.1
BuildRequires:	tomcrypt-devel >= 1.16
BuildRequires:	python%{python2_pkgversion}-devel >= 2.4
BuildRequires:	python%{python3_pkgversion}-devel
BuildRequires:	%{_bindir}/2to3

%description
PyCrypto is a collection of both secure hash functions (such as MD5 and
SHA), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).

%package -n python%{python2_pkgversion}-crypto
%py2_migration_meta python%{python2_pkgversion}-crypto
Summary:	Cryptography library for Python 2
Provides:	pycrypto = %{version}-%{release}
%{?python_provide:%python_provide python2-crypto}
%rename python2-pycrypto

%description -n python%{python2_pkgversion}-crypto
PyCrypto is a collection of both secure hash functions (such as MD5 and
SHA), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).

This is the Python 2 build of the package.

%package -n python%{python3_pkgversion}-crypto
Summary:	Cryptography library for Python 3
%{?python_provide:%python_provide python%{python3_pkgversion}-crypto}
%rename python3-pycrypto

%description -n python%{python3_pkgversion}-crypto
PyCrypto is a collection of both secure hash functions (such as MD5 and
SHA), and various encryption algorithms (AES, DES, RSA, ElGamal, etc.).

This is the Python 3 build of the package.

%prep
%setup -n pycrypto-%{version} -q

# Use distribution compiler flags rather than upstream's
%patch0 -p1

# Fix divisions within benchmarking suite:
%patch1 -p1

# AES.new with invalid parameter crashes python
# https://github.com/dlitz/pycrypto/issues/176
# CVE-2013-7459
%patch2 -p1

# Unbundle libtomcrypt (#1087557)
rm -rf src/libtom
%patch3

# log() not available in libgmp, need libm too
%patch4

# When creating ElGamal keys, the generator wasn't a square residue: ElGamal
# encryption done with those keys cannot be secure under the DDH assumption
# https://bugzilla.redhat.com/show_bug.cgi?id=1542313 (CVE-2018-6594)
# https://github.com/TElgamal/attack-on-pycrypto-elgamal
# https://github.com/Legrandin/pycryptodome/issues/90
# https://github.com/dlitz/pycrypto/issues/253
# Patch based on this commit from cryptodome:
# https://github.com/Legrandin/pycryptodome/commit/99c27a3b
# Converted to pull request for pycrypto:
# https://github.com/dlitz/pycrypto/pull/256
%patch5

# Replace the user-space RNG with a thin wrapper to os.urandom
# Based on https://github.com/Legrandin/pycryptodome/commit/afd6328f
# Fixes compatibility with Python 3.8 (#1718332)
%patch6

# We already require Python 2.4 or later, so drop support for Python 2.1
# in the code
%patch7

# setup.py doesn't run 2to3 on pct-speedtest.py
cp pct-speedtest.py pct-speedtest3.py
2to3 -wn pct-speedtest3.py

%build
%global optflags %{optflags} -fno-strict-aliasing
%py2_build
%py3_build

%install
%py2_install
%py3_install

# Remove group write permissions on shared objects
find %{buildroot}%{python2_sitearch} -name '*.so' -exec chmod -c g-w {} \;
find %{buildroot}%{python3_sitearch} -name '*.so' -exec chmod -c g-w {} \;

%check
%{__python2} setup.py test
%{__python3} setup.py test

# Benchmark
PYTHONPATH=%{buildroot}%{python2_sitearch} %{__python2} pct-speedtest.py
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} pct-speedtest3.py

%files -n python%{python2_pkgversion}-crypto
%license COPYRIGHT LEGAL/
%doc README TODO ACKS ChangeLog Doc/
%{python2_sitearch}/Crypto/
%{python2_sitearch}/pycrypto-%{version}-py2.*.egg-info

%files -n python%{python3_pkgversion}-crypto
%license COPYRIGHT LEGAL/
%doc README TODO ACKS ChangeLog Doc/
%{python3_sitearch}/Crypto/
%{python3_sitearch}/pycrypto-%{version}-py3.*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16137 |21mr|python-cryptodome-3.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pycryptodome
%define	module	cryptodome

Name:		python-%{module}
Version:	3.9.9
Release:	1
Summary:	Cryptographic library for Python
Source0:	https://files.pythonhosted.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
License:	Public Domain
Group:		Development/Python
Url:		http://www.pycryptodome.org
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel

%description
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.

PyCryptodome is a fork of PyCrypto. It brings several enhancements
with respect to the last official version of PyCrypto (2.6.1),
for instance:

* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)
* Accelerated AES on Intel platforms via AES-NI
* First class support for PyPy
* Elliptic curves cryptography (NIST P-256 curve only)
* Better and more compact API (`nonce` and `iv` attributes for ciphers,
  automatic generation of random nonces and IVs, simplified CTR cipher mode,
  and more)
* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms
* Salsa20 and ChaCha20 stream ciphers
* scrypt and HKDF
* Deterministic (EC)DSA
* Password-protected PKCS#8 key containers
* Shamir's Secret Sharing scheme
* Random numbers get sourced directly from the OS
  (and not from a CSPRNG in userspace)
* Simplified install process, including better support for Windows
* Cleaner RSA and DSA key generation (largely based on FIPS 186-4)
* Major clean ups and simplification of the code base

PyCryptodome is not a wrapper to a separate C library like OpenSSL.
To the largest possible extent, algorithms are implemented in pure Python.
Only the pieces that are extremely critical to performance (e.g. block ciphers)
are implemented as C extensions.

#--------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Cryptographic library for Python

%description -n python3-%{module}
PyCryptodome is a self-contained Python package of low-level
cryptographic primitives.

PyCryptodome is a fork of PyCrypto. It brings several enhancements
with respect to the last official version of PyCrypto (2.6.1),
for instance:

* Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)
* Accelerated AES on Intel platforms via AES-NI
* First class support for PyPy
* Elliptic curves cryptography (NIST P-256 curve only)
* Better and more compact API (`nonce` and `iv` attributes for ciphers,
  automatic generation of random nonces and IVs, simplified CTR cipher mode,
  and more)
* SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms
* Salsa20 and ChaCha20 stream ciphers
* scrypt and HKDF
* Deterministic (EC)DSA
* Password-protected PKCS#8 key containers
* Shamir's Secret Sharing scheme
* Random numbers get sourced directly from the OS
  (and not from a CSPRNG in userspace)
* Simplified install process, including better support for Windows
* Cleaner RSA and DSA key generation (largely based on FIPS 186-4)
* Major clean ups and simplification of the code base

PyCryptodome is not a wrapper to a separate C library like OpenSSL.
To the largest possible extent, algorithms are implemented in pure Python.
Only the pieces that are extremely critical to performance (e.g. block ciphers)
are implemented as C extensions.

%files -n python3-%{module}
%doc AUTHORS.rst Changelog.rst LICENSE.rst README.rst
%{py3_platsitedir}/Cryptodome
%{py3_platsitedir}/pycryptodome*.egg-info

#--------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install
mv %{buildroot}%{py3_platsitedir}/Crypto %{buildroot}%{py3_platsitedir}/Cryptodome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16138 |21mr|python-cryptography-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-cryptography
Version:	3.3.2
Release:	1
Summary:	PyCA's cryptography library
Group:		Development/Python
License:	ASL2.0 or BSD
Url:		https://cryptography.io/en/latest/
Source0:	https://github.com/pyca/cryptography/archive/refs/tags/%{version}.tar.gz?/cryptography-%{version}.tar.gz
BuildRequires:	python3-asn1crypto
BuildRequires:	python3-cffi >= 0.8
BuildRequires:	python3-cryptography-vectors = 1:%{version}
BuildRequires:	python3-hypothesis
BuildRequires:	python3-idna
BuildRequires:	python3-iso8601
BuildRequires:	python3-pretend
BuildRequires:	python3-pytest
BuildRequires:	python3-pytz
BuildRequires:	python3-setuptools
BuildRequires:	python3-setuptools-rust
BuildRequires:	python3-six
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)

%description
cryptography is a package designed to expose cryptographic primitives and
recipes to Python developers.

#----------------------------------------------------------------------------

%package -n python3-cryptography
Summary:	PyCA's cryptography library
Group:		Development/Python
Requires:	openssl
Requires:	python3-cffi >= 0.8
Requires:	python3-six >= 1.6.1
Requires:	openssl

%description  -n python3-cryptography
cryptography is a package designed to expose cryptographic primitives and
recipes to Python developers.

%files -n python3-cryptography
%doc LICENSE LICENSE.APACHE LICENSE.BSD README.rst docs
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n cryptography-%{version}

find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
# Having ipaddress in extras_require causes rpm tests
# fail on ABF
sed -i /ipaddress/d setup.py

%build
%py3_build

%install
# Actually other *.c and *.h are appropriate
# see https://github.com/pyca/cryptography/issues/1463
find . -name .keep -print -delete

%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16139 |21mr|python-cryptography-3.4.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{e2k}
%bcond_with rust
%else
%bcond_without rust
%endif

Name:		python-cryptography
Version:	3.4.8
Release:	2
Summary:	PyCA's cryptography library
Group:		Development/Python
License:	ASL2.0 or BSD
Url:		https://cryptography.io/en/latest/
Source0:	https://github.com/pyca/cryptography/archive/refs/tags/%{version}.tar.gz?/cryptography-%{version}.tar.gz
# make with command: 'cargo vendor' in src/rust dir and tar.gz vendor directory
Source1:	vendor.tar.gz
Source2:	config.toml
%if %{with rust}
BuildRequires:	cargo
BuildRequires:	rust
%endif
BuildRequires:	python3-asn1crypto
BuildRequires:	python3-cffi >= 0.8
BuildRequires:	python3-cryptography-vectors = 1:%{version}
BuildRequires:	python3-hypothesis
BuildRequires:	python3-idna
BuildRequires:	python3-iso8601
BuildRequires:	python3-pretend
BuildRequires:	python3-pytest
BuildRequires:	python3-pytz
BuildRequires:	python3-setuptools
BuildRequires:	python3-setuptools-rust
BuildRequires:	python3-six
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)

%description
cryptography is a package designed to expose cryptographic primitives and
recipes to Python developers.

#----------------------------------------------------------------------------

%package -n python3-cryptography
Summary:	PyCA's cryptography library
Group:		Development/Python
Requires:	openssl
Requires:	python3-cffi >= 0.8
Requires:	python3-six >= 1.6.1
Requires:	openssl

%description  -n python3-cryptography
cryptography is a package designed to expose cryptographic primitives and
recipes to Python developers.

%files -n python3-cryptography
%doc LICENSE LICENSE.APACHE LICENSE.BSD README.rst docs
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n cryptography-%{version}

find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
# Having ipaddress in extras_require causes rpm tests
# fail on ABF
sed -i /ipaddress/d setup.py

%if %{with rust}
# add vendor dependensy
tar -xf %{SOURCE1}
mkdir .cargo
cp %{SOURCE2} .cargo
%endif

%build
%if %{without rust}
export CRYPTOGRAPHY_DONT_BUILD_RUST=1
%endif
%py3_build

%install
# Actually other *.c and *.h are appropriate
# see https://github.com/pyca/cryptography/issues/1463
find . -name .keep -print -delete

%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16140 |21mr|python-cryptography-vectors-3.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname cryptography-vectors
%define pymodname cryptography_vectors

Summary:	Test vectors for the cryptography package
Name:		python-%{modname}
Version:	3.3.2
Release:	1
Epoch:		1
Group:		Development/Python
License:	ASL 2.0 or BSD
Url:		https://cryptography.io
Source0:	https://pypi.io/packages/source/c/cryptography-vectors/cryptography_vectors-%{version}.tar.gz
BuildArch:	noarch
ExclusiveArch:	%{e2k}

%description
Test vectors for the cryptography package.

The only purpose of this package is to be a building requirement for
python-cryptography, otherwise it has no use. Don’t install it unless
you really know what you are doing.

#----------------------------------------------------------------------------

%package -n python2-%{modname}
%py2_migration_meta python2-%{modname}
Summary:	Test vectors for the cryptography package
Group:		Development/Python
BuildRequires:	python2-setuptools
BuildRequires:	pkgconfig(python2)

%description -n python2-%{modname}
Test vectors for the cryptography package.

The only purpose of this package is to be a building requirement for
python-cryptography, otherwise it has no use. Don’t install it unless
you really know what you are doing.

%files -n python2-%{modname}
%doc LICENSE
%{py2_puresitedir}/%{pymodname}
%{py2_puresitedir}/%{pymodname}-%{version}*

#----------------------------------------------------------------------------

%package -n python3-%{modname}
Summary:	Test vectors for the cryptography package
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)

%description -n python3-%{modname}
Test vectors for the cryptography package.

The only purpose of this package is to be a building requirement for
python-cryptography, otherwise it has no use. Don’t install it unless
you really know what you are doing.

%files -n python3-%{modname}
%doc LICENSE
%{py3_puresitedir}/%{pymodname}/
%{py3_puresitedir}/%{pymodname}-%{version}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pymodname}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info

cp -a . %{py3dir}

%build
CFLAGS="%{optflags}" python2 setup.py build

pushd %{py3dir}
CFLAGS="%{optflags}" %__python3 setup.py build
popd

%install
python2 setup.py install -O1 --skip-build --root=%{buildroot}

pushd %{py3dir}
%__python3 setup.py install -O1 --skip-build --root=%{buildroot}
popd

%check
%py2_test
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16141 |21mr|python-cryptography-vectors-3.4.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modname cryptography-vectors
%define pymodname cryptography_vectors

Summary:	Test vectors for the cryptography package
Name:		python-%{modname}
Version:	3.4.8
Release:	1
Epoch:		1
Group:		Development/Python
License:	ASL 2.0 or BSD
Url:		https://cryptography.io
Source0:	https://files.pythonhosted.org/packages/e9/d1/91af613e55eaaba41a2b7daefce86cbb47d2ded527996b4f05294dda313a/cryptography_vectors-3.4.8.tar.gz
BuildArch:	noarch

%description
Test vectors for the cryptography package.

The only purpose of this package is to be a building requirement for
python-cryptography, otherwise it has no use. Don’t install it unless
you really know what you are doing.

#----------------------------------------------------------------------------

%package -n python2-%{modname}
%py2_migration_meta python2-%{modname}
Summary:	Test vectors for the cryptography package
Group:		Development/Python
BuildRequires:	python2-setuptools
BuildRequires:	pkgconfig(python2)

%description -n python2-%{modname}
Test vectors for the cryptography package.

The only purpose of this package is to be a building requirement for
python-cryptography, otherwise it has no use. Don’t install it unless
you really know what you are doing.

%files -n python2-%{modname}
%doc LICENSE
%{py2_puresitedir}/%{pymodname}
%{py2_puresitedir}/%{pymodname}-%{version}*

#----------------------------------------------------------------------------

%package -n python3-%{modname}
Summary:	Test vectors for the cryptography package
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)

%description -n python3-%{modname}
Test vectors for the cryptography package.

The only purpose of this package is to be a building requirement for
python-cryptography, otherwise it has no use. Don’t install it unless
you really know what you are doing.

%files -n python3-%{modname}
%doc LICENSE
%{py3_puresitedir}/%{pymodname}/
%{py3_puresitedir}/%{pymodname}-%{version}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{pymodname}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info

cp -a . %{py3dir}

%build
CFLAGS="%{optflags}" python2 setup.py build

pushd %{py3dir}
CFLAGS="%{optflags}" %__python3 setup.py build
popd

%install
python2 setup.py install -O1 --skip-build --root=%{buildroot}

pushd %{py3dir}
%__python3 setup.py install -O1 --skip-build --root=%{buildroot}
popd

%check
%py2_test
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16142 |21mr|python-cssselect-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	cssselect

Summary: Library for parsing CSS3 selectors and translating them to XPath 1.0
Name:	 python-cssselect
Version:	1.1.0
Release:	1
Source0:	https://files.pythonhosted.org/packages/70/54/37630f6eb2c214cdee2ae56b7287394c8aa2f3bafb8b4eb8c3791aae7a14/cssselect-1.1.0.tar.gz
License: BSD
Group:	 Development/Python
Url:	 http://packages.python.org/cssselect/

BuildArch: noarch
BuildRequires:	python3-setuptools

%description
cssselect parses CSS3 Selectors and translate them to XPath 1.0
expressions. Such expressions can be used in lxml or another XPath
engine to find the matching elements in an XML or HTML document.

%package -n python3-cssselect
%py2_migration_meta python2-cssselect
Summary: Library for parsing CSS3 selectors and translating them to XPath 1.0

%description -n python3-cssselect
cssselect parses CSS3 Selectors and translate them to XPath 1.0
expressions. Such expressions can be used in lxml or another XPath
engine to find the matching elements in an XML or HTML document.


%prep
%setup -q -n %{module}-%{version}

%install

PYTHONDONTWRITEBYTECODE= %__python3 setup.py install --root=%{buildroot}

%files -n python3-cssselect
%doc AUTHORS CHANGES LICENSE README.rst
%{py3_puresitedir}/%{module}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16143 |21mr|python-cssselect2-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	cssselect2

Summary:	Library for parsing CSS3 selectors and translating them to XPath 1.0
Name:		python-%{module}
Version:	0.4.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://pypi.org/project/cssselect2/
Source0:	https://files.pythonhosted.org/packages/source/c/%{module}/%{module}-%{version}.tar.gz
BuildRequires:	python3dist(pytest-cov)
BuildRequires:	python3dist(pytest-runner)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(tinycss2)
BuildArch:	noarch

%description
cssselect2 is a straightforward implementation of CSS3 Selectors for markup
documents (HTML, XML, etc.) that can be read by ElementTree-like parsers
such as cElementTree, lxml, html5lib, etc.
Unlike cssselect, it doesn't translate selectors to XPath and thus does
not have all the corner cases that are hard or impossible to fix in cssselect.

#------------------------------------------------------------

%package -n python3-%{module}
Summary:	Library for parsing CSS3 selectors and translating them to XPath 1.0
Group:		Development/Python

%description -n python3-%{module}
cssselect2 is a straightforward implementation of CSS3 Selectors for markup.
documents (HTML, XML, etc.) that can be read by ElementTree-like parsers.
such as cElementTree, lxml, html5lib, etc.
Unlike cssselect, it doesn't translate selectors to XPath and thus does.
not have all the corner cases that are hard or impossible to fix in cssselect.

%files -n python3-%{module}
%{py3_puresitedir}/%{module}*

#------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16144 |21mr|python-cu2qu-1.6.7.post1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name cu2qu

Name:           python-%{pypi_name}
Version:        1.6.7.post1
Release:        1
Summary:        Cubic-to-quadratic bezier curve conversion
Group:          Development/Python
License:        ASL2.0
URL:            https://pypi.org/project/cu2qu/
Source0:        https://pypi.io/packages/source/c/%{pypi_name}/%{pypi_name}-%{version}.zip
Patch0:         cu2qu-1.6.5-linking.patch

BuildRequires:  python3-devel
BuildRequires:  python3-cython
BuildRequires:  python3dist(defcon) >= 0.6.0
BuildRequires:  python3dist(fonttools) >= 3.32.0
BuildRequires:  python3dist(fs)
BuildRequires:  python3dist(pytest) >= 2.8
BuildRequires:  python3dist(pytest-runner)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
This library provides functions which take in UFO objects (Defcon Fonts or
Robofab RFonts) and converts any cubic curves to quadratic.

#------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Provides:       cu2qu = %{EVRD}
Requires:       python3dist(defcon) >= 0.6.0
Requires:       python3dist(fonttools) >= 3.32.0
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
This library provides functions which take in UFO objects (Defcon Fonts or
Robofab RFonts) and converts any cubic curves to quadratic.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/cu2qu
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info


#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

# Remove bundled egg-info
rm -rf Lib/*.egg-info

# Remove generated source file
rm -rf Lib/cu2qu/cu2qu.c

%build
%py3_build -- --with-cython

%install
%py3_install

%check
%{__python3} setup.py test || true


%changelog
* Mon Feb 21 2022 tv <tv> 1.6.7-3.mga9
+ Revision: 1782073
- Fix filelist for python-3.10
- Rebuild for python-3.10

* Tue Apr 20 2021 daviddavid <daviddavid> 1.6.7-2.mga9
+ Revision: 1717383
- rebuild for python 3.9

* Sun Jun 21 2020 wally <wally> 1.6.7-1.mga8
+ Revision: 1598202
- new version 1.6.7

* Tue Feb 18 2020 umeabot <umeabot> 1.6.6-2.mga8
+ Revision: 1541958
- Mageia 8 Mass Rebuild

* Fri Jan 03 2020 wally <wally> 1.6.6-1.mga8
+ Revision: 1475728
- new version 1.6.6

* Tue Sep 17 2019 daviddavid <daviddavid> 1.6.5-5.mga8
+ Revision: 1443103
- add patch to fix linking

* Tue Sep 17 2019 tv <tv> 1.6.5-4.mga8
+ Revision: 1442887
- "fix" underlinking which was the real (hidden) issue
- rebuild for python-3.8

* Mon Aug 19 2019 wally <wally> 1.6.5-3.mga8
+ Revision: 1430080
- drop python2 support
- provide cu2qu

* Thu Jan 10 2019 shlomif <shlomif> 1.6.5-2.mga7
+ Revision: 1354552
- bump rel for rebuild due to fail on i586
- fix tests
- add BRs
- add BRs
- add BRs
- add BRs
- add BRs
- Rebuild for python3 3.7

* Thu Sep 20 2018 umeabot <umeabot> 1.5.0-2.mga7
+ Revision: 1288559
- Mageia 7 Mass Rebuild

* Sun May 06 2018 wally <wally> 1.5.0-1.mga7
+ Revision: 1226767
- imported package python-cu2qu


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16145 |21mr|python-cups-1.9.74-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module cups
# we don't want to provide private python extension libs
%define _exclude_files_from_autoprov %{python_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so

Summary:       Python bindings for the CUPS API
Name:          python-%{module}
Version:       1.9.74
Release:       4
Source0:       http://cyberelk.net/tim/data/pycups/pycups-%{version}.tar.bz2
Patch0:	       python-3.8.patch
License:       BSD 
Group:         Development/Python
Url:           http://cyberelk.net/tim/software/pycups/
BuildRequires: cups-devel
BuildRequires: pkgconfig(python3)
Conflicts:     python3-%{module} < %{version}-%{release}

%description
Python bindings for the CUPS API.

%package doc
Summary:       Documentation for python-cups
Group:         Documentation

%description doc
Documentation for python-cups.

%package -n python3-%{module}
Group:         Development/Python
Summary:       Python 3 bindings for the CUPS API
Conflicts:     %{name} < %{version}-%{release}
%{?python_provide:%python_provide python3-%{module}}

%description -n python3-%{module}
Python 3 bindings for the CUPS API.

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n pycups-%version

%build
%py3_build
#make doc is broken because epydoc is python2 only:

%install
make install DESTDIR="%{buildroot}"

#py3_install
#chmod 755 %{buildroot}%{python3_sitearch}/cups*.so
export PYTHONPATH=%{buildroot}%{python3_sitearch}

pydoc3 -w cups
mkdir html
mv cups.html html

%files doc
%doc examples html

%files -n python3-%{module}
%{python3_sitearch}/cups.cpython-3*.so
%{python3_sitearch}/pycups*.egg-info
%{_rpmconfigdir}/fileattrs/psdriver.attr
%{_rpmconfigdir}/postscriptdriver.prov

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16146 |21mr|python-curio-1.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname curio
# what it's imported as
%global libname curio
# name of egg info directory
%global eggname curio
# package name fragment
%global pkgname curio

%global _description \
Curio is a library of building blocks for performing concurrent I/O and common\
system programming tasks such as launching subprocesses, working with files,\
and farming work out to thread and process pools.  It uses Python coroutines\
and the explicit async/await syntax introduced in Python 3.5.  Its programming\
model is based on cooperative multitasking and existing programming\
abstractions such as threads, sockets, files, subprocesses, locks, and queues.\
You'll find it to be small, fast, and fun.  Curio has no third-party\
dependencies and does not use the standard asyncio module.  Most users will\
probably find it to be a bit too-low level--it's probably best to think of it\
as a library for building libraries.  Although you might not use it directly,\
many of its ideas have influenced other libraries with similar functionality.

%bcond_without tests


Name:           python-%{pkgname}
Version:        1.5
Release:        5
Group:          Development/Python
Summary:        Building blocks for performing concurrent I/O
License:        BSD
URL:            https://github.com/dabeaz/curio
Source0:        %pypi_source
# https://github.com/dabeaz/curio/issues/320
BuildArch:      noarch


%description %{_description}


%package -n python3-%{pkgname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
%if %{with tests}
BuildRequires:  python3-pytest
%endif
%{?python_provide:%python_provide python3-%{pkgname}}


%description -n python3-%{pkgname} %{_description}


%prep
%autosetup -n %{srcname}-%{version} -p 1
rm -rf %{eggname}.egg-info


%build
%py3_build


%install
%py3_install


%if %{with tests}
%check
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} --verbose -m 'not internet'
%endif


%files -n python3-%{pkgname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16147 |21mr|python-curl-7.43.0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pycurl

# we don't want to provide private python extension libs
%global __provides_exclude_from ^(%{python2_sitearch}/.*\\.so\\|%{python3_sitearch}/.*\\.so)$

Summary:       A Python interface to libcurl
Name:          python-curl
Version:       7.43.0.2
Release:       3
Group:         Development/Python
License:       LGPLv2+
URL:           http://pycurl.sourceforge.net
Source0:       https://pypi.io/packages/source/p/pycurl/%{module}-%{version}.tar.gz
Patch0:        pycurl-7.19.5.3-link.patch
BuildRequires: pkgconfig(python2)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(libcurl) >= 7.21.5
BuildRequires: pkgconfig(openssl)

%description
PycURL is a Python interface to libcurl. PycURL can be used to fetch
objects identified by a URL from a Python program, similar to the
urllib Python module. PycURL is mature, very fast, and supports a lot
of features.

%package -n python2-curl
%py2_migration_meta python2-curl
Summary:       A Python 2 interface to libcurl for
Group:         Development/Python
Provides:      python2-pycurl = %{EVRD}

%description -n python2-curl
PycURL is a Python2 interface to libcurl. PycURL can be used to fetch
objects identified by a URL from a Python program, similar to the
urllib Python module. PycURL is mature, very fast, and supports a lot
of features.

%package -n python3-curl
Summary:       A Python 3 interface to libcurl
Group:         Development/Python
Provides:      python3-pycurl = %{EVRD}

%description -n python3-curl
PycURL is a Python3 interface to libcurl. PycURL can be used to fetch
objects identified by a URL from a Python program, similar to the
urllib Python module. PycURL is mature, very fast, and supports a lot
of features.

%prep
%setup -qn %{module}-%{version}
%patch0 -p1

cp -a . %{py3dir}

%build
%{__python2} setup.py docstrings
%py2_build -- --with-ssl build

pushd %{py3dir}
%{__python3} setup.py docstrings
%py3_build -- --with-ssl build
popd

%check
export PYTHONPATH=$RPM_BUILD_ROOT%{python2_sitearch}
%{__python2} -c 'import %{module}; print(%{module}.version)'
pushd %{py3dir}
export PYTHONPATH=$RPM_BUILD_ROOT%{python3_sitearch}
%{__python3} -c 'import %{module}; print(%{module}.version)'
popd

%install
%py2_install -- --with-ssl

pushd %{py3dir}
%py3_install -- --with-ssl
popd
rm -rf %{buildroot}%{_datadir}/doc/pycurl

%files -n python2-curl
%doc COPYING-LGPL COPYING-MIT ChangeLog README.rst examples doc
%{python2_sitearch}/*

%files -n python3-curl
%doc COPYING-LGPL COPYING-MIT ChangeLog README.rst examples doc
%{python3_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16148 |21mr|python-cxx-7.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-cxx
Version:        7.1.5
Release:        1
License:        BSD
Summary:        Write Python extensions in C++

Url:            http://CXX.sourceforge.net/
Group:          Development/Python
Source0:        http://downloads.sourceforge.net/project/cxx/CXX/PyCXX%20V%{version}/pycxx-%{version}.tar.gz
Patch0:         %{name}-6.2.3-change-include-paths.patch
BuildRequires:  python3-devel
BuildArch:      noarch

%description
PyCXX is a set of classes to help create extensions of Python in the C
language. The first part encapsulates the Python C API taking care of
exceptions and ref counting. The second part supports the building of Python
extension modules in C++.

%package -n python3-cxx
Summary: Write Python 2.x extensions in C++
Group: Development/Python

%description -n python3-cxx
PyCXX is a set of classes to help create extensions of Python in the C
language. The first part encapsulates the Python C API taking care of
exceptions and ref counting. The second part supports the building of Python
extension modules in C++.

%package -n python3-cxx-devel
Summary:        Python3-cxx Header files
Group:          Development/Python
Requires:       python3-cxx = %{EVRD}
Requires:       python3-devel

%description -n python3-cxx-devel
Header files and documentation for python3-cxx development.

%prep
%setup -q -n pycxx-%{version}
%apply_patches

2to3 -w Lib/__init__.py

%build
%py3_build

%install
PYTHONDONTWRITEBYTECODE=true %py3_install
install CXX/*.hxx %{buildroot}/%{_includedir}/python3*/CXX
install CXX/*.h %{buildroot}/%{_includedir}/python3*/CXX/
cp -R CXX/Python3 %{buildroot}/%{_includedir}/python3*/CXX/
#dh_link -ppython-cxx-dev /usr/include/$${i}/CXX/ /usr/include/$${i}_d/CXX; \
install Src/*.c %{buildroot}/%{_datadir}/python3*/CXX/
install Src/*.cxx %{buildroot}/%{_datadir}/python3*/CXX/
cp -R Src/Python3 %{buildroot}/%{_datadir}/python3*/CXX/
chmod -x %{buildroot}/%{_datadir}/python3*/CXX/*.*
chmod -x %{buildroot}/%{_includedir}/python3*/CXX/*.*

%files -n python3-cxx
%doc README.html COPYRIGHT
%{py3_puresitedir}/*

%files -n python3-cxx-devel
%doc Doc/Python3/
%dir %{_datadir}/python3*
%{_includedir}/python3*/CXX
%{_datadir}/python3*/CXX

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16149 |21mr|python-cycler-0.10.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module cycler

Summary:	Composable cycles Python module
Name:		python-%{module}
Version:	0.10.0
Release:	6
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/matplotlib/cycler
Source0:	https://github.com/matplotlib/cycler/releases/%{module}-%{version}.tar.gz
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Composable cycles Python module.

#----------------------------------------------------------------------------

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Composable cycles Python 2 module
Group:		Development/Python

%description -n python2-%{module}
Composable cycles Python 2 module.

%files -n python2-%{module}
%doc LICENSE README.rst
%{py2_puresitedir}/%{module}-*egg-info
%{py2_puresitedir}/%{module}.py*

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Composable cycles Python 3 module
Group:		Development/Python

%description -n python3-%{module}
Composable cycles Python 3 module.

%files -n python3-%{module}
%doc LICENSE README.rst
%{py3_puresitedir}/%{module}-*egg-info
%{py3_puresitedir}/%{module}.py*
%{py3_puresitedir}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

cp -a . %{py3dir}

%build
pushd %{py3dir}
python3 setup.py build
popd

python2 setup.py build

%install
pushd %{py3dir}
python3 setup.py install --root=%{buildroot} --install-purelib=%{py3_puresitedir}
popd

python2 setup.py install --root=%{buildroot} --install-purelib=%{py2_puresitedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16150 |21mr|python-cython-0.29.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Python module not linking to libpython
%global _disable_ld_no_undefined 1

%bcond_without	python2
%bcond_with	check
%define tarname cython
%define py2dir	python2

%global optflags %optflags -O3

Summary:	Language for writing C extensions to Python
Name:		python-cython
Version:	0.29.24
Release:	1
License:	Python
Group:		Development/Python
Url:		http://www.cython.org
Source0:	https://github.com/cython/cython/archive/%{version}.tar.gz?/cython-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
BuildRequires:	dos2unix
%if %{with check}
BuildRequires:	gdb
BuildRequires:	gomp-devel
BuildRequires:	python-numpy-devel
%endif

%description
Cython is a language that facilitates the writing of C extensions for
the Python language. It is based on Pyrex, but provides more cutting
edge functionality and optimizations.

#--------------------------------------------------------------------
%package -n python3-cython
Summary:	Language for writing C extensions to Python
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Provides:	python-cython = %{version}-%{release}

%description -n python3-cython
Cython is a language that facilitates the writing of C extensions for
the Python language. It is based on Pyrex, but provides more cutting
edge functionality and optimizations.

%files -n python3-cython
%{_bindir}/cython
%{_bindir}/cythonize
%{_bindir}/cygdb
%{py3_platsitedir}/Cython
%{py3_platsitedir}/Cython-%{version}-*.egg-info
%{py3_platsitedir}/cython*
%{py3_platsitedir}/pyximport
%{py3_platsitedir}/__pycache__/*.py?

#--------------------------------------------------------------------

%if %{with python2}
%package -n python2-cython
%py2_migration_meta python2-cython
Summary:	Language for writing C extensions to Python
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	python2-setuptools
%description -n python2-cython
Cython is a language that facilitates the writing of C extensions for
the Python language. It is based on Pyrex, but provides more cutting
edge functionality and optimizations.

%files -n python2-cython
%{_bindir}/cython2
%{_bindir}/cygdb2
%{py2_platsitedir}/Cython
%{py2_platsitedir}/Cython-%{version}-*.egg-info
%{py2_platsitedir}/cython*
%{py2_platsitedir}/pyximport

%endif

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{tarname}-%{version}

%if %{with python2}
rm -rf %{py2dir}
mkdir %{py2dir}
tar -xvf %{SOURCE0} -C %{py2dir}
find %{py2dir} -name '*.py' | xargs sed -i '1s|^#!python|#!python2|'
%endif

find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python}|'

%build
%setup_compile_flags
CFLAGS="%{optflags}" %{__python3} setup.py build

%if %{with python2}
cd %{py2dir}/%{tarname}-%{version}
CFLAGS="%{optflags}" %{__python2} setup.py build
cd -
%endif

%install
# Must do the python2 install first because the scripts in /usr/bin are
# overwritten with every setup.py install (and we want the python3 version
# to be the default).
%if %{with python2}
cd %{py2dir}/%{tarname}-%{version}
%{__python2} setup.py install --skip-build --root %{buildroot}
mv %{buildroot}/usr/bin/cython %{buildroot}/usr/bin/cython2
mv %{buildroot}/usr/bin/cygdb %{buildroot}/usr/bin/cygdb2
rm -rf %{buildroot}%{python2_sitelib}/setuptools/tests
cd -
%endif

%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
rm -rf %{buildroot}%{python3_sitelib}/setuptools/tests
rm -rf %{buildroot}/%{python3_sitearch}/__pycache__/

%if %{with check}
%check
python runtests.py

%if %{with python2}
cd %{py2dir}/%{tarname}-%{version}
python2 setup.py test
cd -
%endif
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16151 |21mr|python-d2to1-0.2.12-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname d2to1

Name: python-%{srcname}
Version: 0.2.12
Release: 13
Summary: Allows using distutils2-like setup.cfg files with setup.py
License: BSD
Group: Development/Python

URL: http://pypi.python.org/pypi/d2to1
#Source0: http://pypi.python.org/packages/source/d/d2to1/%{srcname}-%{version}.tar.gz
Source0: https://pypi.python.org/packages/source/d/d2to1/d2to1-0.2.12.post1.tar.gz

BuildArch: noarch

%global _description\
d2to1 allows using distutils2-like setup.cfg files for a package's metadata\
with a distribute/setuptools setup.py script. It works by providing a\
distutils2-formatted setup.cfg file containing all of a package's metadata,\
and a very minimal setup.py which will slurp its arguments from the setup.cfg.

%description %_description

%package -n python3-d2to1
Summary: Allows using distutils2-like setup.cfg files with setup.py
%{?python_provide:%python_provide python3-d2to1}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:  python3-setuptools

%description -n python3-d2to1 %_description

%prep
#%setup -q -n %{srcname}-%{version}
%setup -q -n %{srcname}-%{version}.post1

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install

%files -n python3-d2to1
%doc CHANGES.rst README.rst
%license LICENSE
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16152 |21mr|python-daemon-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		python-daemon
Version:	2.3.0
Release:	1
Summary:	Library to implement a well-behaved Unix daemon process
Group:		Development/Python
License:	Apache Software License and GPLv3+
URL:		https://pypi.python.org/pypi/python-daemon
Source0:	https://pypi.io/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
This library implements the well-behaved daemon specification of
PEP 3143, "Standard daemon process library".

#----------------------------------------------------------------------
%package -n python3-daemon
Summary:	Library to implement a well-behaved Unix daemon process
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(nose)
BuildRequires:	python3dist(lockfile)
BuildRequires:	python3dist(minimock)
BuildRequires:	python3dist(docutils)
BuildRequires:	python3dist(twine)

%description -n python3-daemon
This library implements the well-behaved daemon specification of
PEP 3143, "Standard daemon process library".

%files -n python3-daemon
%doc ChangeLog LICENSE.GPL-3 LICENSE.ASF-2 doc/*
%{py3_puresitedir}/daemon/
%{py3_puresitedir}/python_daemon-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------------

%prep
%setup -q

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16153 |21mr|python-daiquiri-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name daiquiri

Name:		python-%{pypi_name}
Version:	3.0.0
Release:	1
Summary:	Library to configure Python logging easily
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/jd/daiquiri
Source0:	https://files.pythonhosted.org/packages/29/df/b85ab597d3940d91830dc3ce3084c0d84ec27e1c16321d2ad33aea4a0f2f/daiquiri-3.0.0.tar.gz
BuildArch:	noarch

%description
The %{pypi_name} library provides an easy way to configure Python logging.
It also provides some custom formatters and handlers.

#--------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Library to configure Python logging easily
Group:		Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(pbr)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(six) >= 1.9.0
#fir tests
BuildRequires:  python3egg(mock)
BuildRequires:  python3egg(python-json-logger)
BuildRequires:  python3egg(testrepository)
BuildRequires:  python3egg(testtools)

Requires:       python3-json-logger

%description -n python3-%{pypi_name}
The %{pypi_name} library provides an easy way to configure Python logging.
It also provides some custom formatters and handlers.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info


#--------------------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:        daiquiri documentation
Group:		Documentation

BuildRequires:  python3egg(sphinx)

%description -n python-%{pypi_name}-doc
Documentation for daiquiri

%files -n python-%{pypi_name}-doc
%doc html 

#--------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build
# generate html docs 
sphinx-build doc/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
%__python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16154 |21mr|python-dasbus-1.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname dasbus
Summary:        DBus library in Python 3
Group:			Development/Python
Name:           python-%{srcname}
Version:        1.6
Release:        3
Epoch:			1
License:        LGPLv2+
URL:            https://pypi.python.org/pypi/dasbus
Source0:        https://pypi.python.org/packages/source/d/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch:      noarch

%description
Dasbus is a DBus library written in Python 3, based on
GLib and inspired by pydbus. It is designed to be easy
to use and extend.

#----------------------------------------------------------

%package -n python3-%{srcname}
Summary:        %{summary}
Group:			Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-gi-cairo
%{?python_provide:%python_provide python3-%{srcname}}
%{?python_provide:%python_provide python-%{srcname}}

%description -n python3-%{srcname}
Dasbus is a DBus library written in Python 3, based on
GLib and inspired by pydbus. It is designed to be easy
to use and extend.

%files -n python3-%{srcname}
%doc LICENSE README.md
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/

#----------------------------------------------------------

%prep
%setup -qn %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16155 |21mr|python-datadispatch-1.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define module	datadispatch

Summary:	Provides a dispatch mechanism
Name:		python-%{module}
Version:	1.0.0
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/datadispatch/
Source0:	%{module}-%{version}.tar.gz
Patch0:		datadispatch-1.0.0-ascii.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
Provides a dispatch mechanism (a.k.a. polymorphism) like
functools.singledispatch, but it operates on data instead of types.
This is useful if you are creating simple data-centric applications
where you want polymorphism a la carte without resorting to types or classes.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Provides a dispatch mechanism
Group:		Development/Python

%description -n python3-%{module}
Provides a dispatch mechanism (a.k.a. polymorphism) like
functools.singledispatch, but it operates on data instead of types.
This is useful if you are creating simple data-centric applications
where you want polymorphism a la carte without resorting to types or classes.

%files -n python3-%{module}
%doc PKG-INFO README.md
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-*

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
%patch0 -p1 -b .ascii~

%build

%install
PYTHONDONTWRITEBYTECODE=1 python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16156 |21mr|python-dateutil-2.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname dateutil

Name:		python-dateutil
Version:	2.8.2
Release:	1
License:	Python
Summary:	Provides powerful extensions to the standard datetime module
Group:		Development/Python
Url:		https://dateutil.readthedocs.io/en/stable/
Source0:	https://pypi.python.org/packages/source/p/python-dateutil/python-%{fname}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3-setuptools >= 3.0
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	pkgconfig(python3)

%description
The dateutil module provides powerful extensions to the standard
datetime module available in Python. Features include:

* Computing of relative deltas (next month, next year, next monday,
  last week of month, etc);
* Computing of relative deltas between two given date and/or datetime
  objects;
* Computing of dates based on very flexible recurrence rules, using a
  superset of the iCalendar specification. Parsing of RFC strings is
  supported as well;
* Generic parsing of dates in almost any string format;
* Timezone (tzinfo) implementations for tzfile(5) format files
  (/etc/localtime, /usr/share/zoneinfo, etc), TZ environment string
  (in all known formats), iCalendar format files, given ranges (with
  help from relative deltas), local machine timezone, fixed offset
  timezone, UTC timezone, and Windows registry-based time zones;
* Internal up-to-date world timezone information based on Olson's
  database;
* Computing of Easter Sunday dates for any given year, using Western,
  Orthodox or Julian algorithms;
* More than 400 test cases.

#----------------------------------------------------------------
%package -n python3-dateutil
Summary:	Provides powerful extensions to the standard datetime module
Group:		Development/Python
Requires:	python3 >= 3.0
Requires:	timezone
#Provides:	python3-dateutil
#Provides:	python3egg(dateutil)

%description -n python3-dateutil
The dateutil module provides powerful extensions to the standard
datetime module available in Python. Features include:

* Computing of relative deltas (next month, next year, next monday,
  last week of month, etc);
* Computing of relative deltas between two given date and/or datetime
  objects;
* Computing of dates based on very flexible recurrence rules, using a
  superset of the iCalendar specification. Parsing of RFC strings is
  supported as well;
* Generic parsing of dates in almost any string format;
* Timezone (tzinfo) implementations for tzfile(5) format files
  (/etc/localtime, /usr/share/zoneinfo, etc), TZ environment string
  (in all known formats), iCalendar format files, given ranges (with
  help from relative deltas), local machine timezone, fixed offset
  timezone, UTC timezone, and Windows registry-based time zones;
* Internal up-to-date world timezone information based on Olson's
  database;
* Computing of Easter Sunday dates for any given year, using Western,
  Orthodox or Julian algorithms;
* More than 400 test cases.


%files -n python3-dateutil
%doc LICENSE NEWS
%{python3_sitelib}/%{fname}
%{python3_sitelib}/python_%{fname}-%{version}-py%{py3_ver}.egg-info

#----------------------------------------------------------------
%prep
%setup -q -n python-%{fname}-%{version}
rm -rf python_dateutil.egg-info/

iconv --from=ISO-8859-1 --to=UTF-8 NEWS > NEWS.new
mv NEWS.new NEWS

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16157 |21mr|python-dbus-1.2.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module dbus

Summary:	D-Bus Python Bindings
Name:		python-%{module}
Version:	1.2.16
Release:	3
License:	MIT
Group:		Development/Python
Url:		http://www.freedesktop.org/wiki/Software/DBusBindings
Source0:	https://dbus.freedesktop.org/releases/dbus-python/%{module}-python-%{version}.tar.gz
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
#BuildRequires:	python3egg(sphinx)
BuildRequires:	pythonegg(setuptools)
#BuildRequires:	pythonegg(sphinx)
Requires:	dbus
Provides:	%{module}-python = %{EVRD}

%description
D-Bus python bindings for use with python programs.

#------------------------------------------------------------------

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	D-Bus Python Bindings
Group:		Development/Python
Requires:	dbus
Provides:	%{module}-python2 = %{EVRD}

%description -n python2-%{module}
D-Bus python3 bindings for use with python programs.

%files -n python2-%{module}
%doc AUTHORS ChangeLog COPYING NEWS README
%{py2_platsitedir}/_dbus_*
%{py2_platsitedir}/dbus
%{py2_platsitedir}/dbus_*

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	D-Bus Python Bindings
Group:		Development/Python
Requires:	dbus
Provides:	%{module}-python3 = %{EVRD}

%description -n python3-%{module}
D-Bus python3 bindings for use with python programs.

%files -n python3-%{module}
%doc AUTHORS ChangeLog COPYING NEWS README
%{py3_platsitedir}/_dbus_*
%{py3_platsitedir}/dbus
%{py3_platsitedir}/dbus_*

#------------------------------------------------------------------

%package devel
Summary:	D-Bus Python Bindings development files
Group:		Development/Python
# "Provides: pkgconfig(dbus-python)" is added automatically, but
# let's also have this provide for compatibility with common naming
# of Python modules
Provides:	pkgconfig(python-dbus)
Conflicts:	python-dbus < 1.2.8

%description devel
D-Bus Python Bindings development files.

%files devel
%{_includedir}/dbus-1.0/dbus/*.h
%{_libdir}/pkgconfig/*.pc

#------------------------------------------------------------------

%prep
%setup -qn %{module}-python-%{version}
rm -rf %{py3dir}
mkdir -p %{py3dir}
cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

mkdir -p %{buildroot}%{_libdir}/pkgconfig/
install -p -m 0644 build/temp.linux-*-%{py2_ver}/dbus-python.pc %{buildroot}%{_libdir}/pkgconfig/
sed -i 's\prefix=.*\prefix=%{_prefix}\g' %{buildroot}%{_libdir}/pkgconfig/dbus-python.pc
mkdir -p %{buildroot}%{_includedir}/dbus-1.0/dbus/
install -p -m 0444 include/dbus/dbus-python.h %{buildroot}%{_includedir}/dbus-1.0/dbus/

pushd %{py3dir}
%py3_install
popd

rm -rf %{buildroot}%{_datadir}/doc/dbus-python

find %{buildroot} -name '*.pyc' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16158 |21mr|python-dbusmock-0.27.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	dbusmock

Name:		python-%{pypi_name}
Version:	0.27.5
Release:	1
Summary:	Mock D-Bus objects
Group:		Development/Python
License:	LGPLv3+
URL:		http://pypi.python.org/pypi/python-dbusmock
# http://pypi.io/packages/source/p/%%{name}/%%{name}-%%{version}.tar.gz
Source0:	https://github.com/martinpitt/python-dbusmock/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	dbus-x11
BuildRequires:	upower

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(dbus-python)
BuildRequires:	python3-gobject3

%description
With this program/Python library you can easily create mock objects on
D-Bus. This is useful for writing tests for software which talks to
D-Bus services such as upower, systemd, ConsoleKit, gnome-session or
others, and it is hard (or impossible without root privileges) to set
the state of the real services to what you expect in your tests.

#------------------------------------------------
%package -n	python3-%{pypi_name}
Summary:	Mock D-Bus objects (in Python3)
Group:		Development/Python
Requires:	dbus-x11
Requires:	python3egg(dbus-python)
Requires:	python3egg(pygobject)

%description -n	python3-%{pypi_name}
With this program/Python3 library you can easily create mock objects on
D-Bus. This is useful for writing tests for software which talks to
D-Bus services such as upower, systemd, ConsoleKit, gnome-session or
others, and it is hard (or impossible without root privileges) to set
the state of the real services to what you expect in your tests.

This is the Python 3 version of the package.

%files -n python3-%{pypi_name}
%doc README* COPYING
%{py3_puresitedir}/%{pypi_name}/
%{py3_puresitedir}/python_%{pypi_name}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------

%prep
%setup -q

# Remove bundled egg-info
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

%check
%define enable_tests_python3 0
%if %{enable_tests_python3}
python3 setup.py test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16159 |21mr|python-ddt-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	ddt

Name:		python-%{oname}
Version:	1.4.2
Release:	1
Summary:	Data-Driven/Decorated Tests
Source0:	https://files.pythonhosted.org/packages/61/b0/1fdf4716bc34ecff19810a34e2e3511d60d632981cafa142eac52505aeac/ddt-1.4.2.tar.gz

License:	MIT
Group:		Development/Python
Url:		https://github.com/txels/ddt
BuildArch:	noarch

%description
A library to multiply test cases

#---------------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Data-Driven/Decorated Tests
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pyyaml)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(pytest)

%description -n python3-%{oname}
A library to multiply test cases

%files -n python3-%{oname}
%{py3_puresitedir}/ddt.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/ddt*.egg-info
#---------------------------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16160 |21mr|python-debtcollector-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%{!?upstream_version: %global upstream_version %{version}%{?milestone}}

%global pypi_name debtcollector
%global with_doc 0
%global common_desc \
It is a collection of functions/decorators which is used to signal a user when \
*  a method (static method, class method, or regular instance method) or a class \
    or function is going to be removed at some point in the future. \
* to move a instance method/property/class from an existing one to a new one \
* a keyword is renamed \
* further customizing the emitted messages

Name:        python-%{pypi_name}
Version:	2.5.0
Release:	1
Summary:     A collection of Python deprecation patterns and strategies
Group:       Development/Python
License:     ASL 2.0
URL:         https://pypi.python.org/pypi/%{pypi_name}
Source0:	%{pypi_source}

BuildArch:   noarch

BuildRequires: git

%description
%{common_desc}

%package -n python3-%{pypi_name}
Summary:     A collection of Python deprecation patterns and strategies
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-pbr

Requires:    python3-funcsigs
Requires:    python3-pbr
Requires:    python3-six
Requires:    python3-wrapt

%description -n python3-%{pypi_name}
%{common_desc}


%if 0%{?with_doc}
%package -n python-%{pypi_name}-doc
Summary:        Documentation for the debtcollector module

BuildRequires:  python3-sphinx
BuildRequires:  python3-openstackdocstheme
BuildRequires:  python3-fixtures
BuildRequires:  python3-six
BuildRequires:  python3-wrapt

%description -n python-%{pypi_name}-doc
Documentation for the debtcollector module
%endif


%prep
%autosetup -n %{pypi_name}-%{upstream_version} -S git

# let RPM handle deps
rm -rf *requirements.txt

%build
%py3_build

%if 0%{?with_doc}
# doc
sphinx-build-3 -b html doc/source doc/build/html
# Fix hidden-file-or-dir warnings
rm -fr doc/build/html/.{doctrees,buildinfo}
%endif

%install
%py3_install

%files -n python3-%{pypi_name}
%doc README.rst CONTRIBUTING.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}*.egg-info
%exclude %{python3_sitelib}/%{pypi_name}/tests

%if 0%{?with_doc}
%files -n python-%{pypi_name}-doc
%doc doc/build/html
%license LICENSE
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16161 |21mr|python-decorator-5.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module    decorator

Summary:        Python decorator utilities
Name:           python-%{module}
Version:	5.0.9
Release:	1
Url:            http://pypi.python.org/pypi/decorator/
Source0:	https://files.pythonhosted.org/packages/4f/51/15a4f6b8154d292e130e5e566c730d8ec6c9802563d58760666f1818ba58/decorator-5.0.9.tar.gz
License:        BSD
Group:          Development/Python
BuildArch:      noarch 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
The aim of the decorator module it to simplify the usage of decorators
for the average programmer, and to popularize decorators by showing
various non-trivial examples. Of course, as all techniques, decorators
can be abused and you should not try to solve every problem with a
decorator, just because you can.

%package -n     python3-%{module}
Summary:        Python decorator utilities

%description -n python3-%{module}
The aim of the decorator module it to simplify the usage of decorators
for the average programmer, and to popularize decorators by showing
various non-trivial examples. Of course, as all techniques, decorators
can be abused and you should not try to solve every problem with a
decorator, just because you can.

%files -n python3-%{module}
%doc LICENSE.txt README.rst
%{py3_puresitedir}/%{module}*
%{py3_puresitedir}/__pycache__/*

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16162 |21mr|python-defcon-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name defcon

Name:           python-%{pypi_name}
Version:        0.10.0
Release:        1
Summary:        A set of flexible objects for representing UFO data
Group:          Development/Python
License:        MIT
URL:            https://github.com/typesupply/defcon
Source0:        %{pypi_source %pypi_name %version zip}
Patch0:         utf-8.patch
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(fontpens)
BuildRequires:  python3dist(fonttools)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
Defcon is a set of UFO based objects optimized for use in font editing
applications. The objects are built to be lightweight, fast and flexible.

#----------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Defcon is a set of UFO based objects optimized for use in font editing
applications. The objects are built to be lightweight, fast and flexible.

%files -n python3-%{pypi_name}
%license License.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16163 |21mr|python-defusedxml-0.7.0_rc1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name    defusedxml
%global base_version 0.7.0
%global prerel       rc1
%global upstream_version %{base_version}%{?prerel}
Name:           python-%{pypi_name}
Version:        %{base_version}%{?prerel:~%{prerel}}
Release:        3
Summary:        XML bomb protection for Python stdlib modules
Group:		Development/Python
License:        Python
URL:            https://github.com/tiran/defusedxml
Source0:        %{pypi_source %{pypi_name} %{upstream_version}}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
The defusedxml package contains several Python-only workarounds and fixes for
denial of service and other vulnerabilities in Python's XML libraries. In order
to benefit from the protection you just have to import and use the listed
functions / classes from the right defusedxml module instead of the original
module.


%package -n python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
The defusedxml package contains several Python-only workarounds and fixes for
denial of service and other vulnerabilities in Python's XML libraries. In order
to benefit from the protection you just have to import and use the listed
functions / classes from the right defusedxml module instead of the original
module. This is the python3 build.


%prep
%autosetup -p1 -n %{pypi_name}-%{upstream_version}

%build
%py3_build

%install
%py3_install

%check
%{__python3} tests.py


%files -n python3-%{pypi_name}
%doc README.txt README.html CHANGES.txt
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{upstream_version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16164 |21mr|python-defusedxml-0.7.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name    defusedxml
%global base_version 0.7.1
#global prerel       rc1
%global upstream_version %{base_version}
Name:           python-%{pypi_name}
Version:        %{base_version}%{?prerel:~%{prerel}}
Release:        7
Summary:        XML bomb protection for Python stdlib modules
Group:          Development/Python
License:        Python
URL:            https://github.com/tiran/defusedxml
Source0:        %{pypi_source %{pypi_name} %{upstream_version}}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
The defusedxml package contains several Python-only workarounds and fixes for
denial of service and other vulnerabilities in Python's XML libraries. In order
to benefit from the protection you just have to import and use the listed
functions / classes from the right defusedxml module instead of the original
module.

#---------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
The defusedxml package contains several Python-only workarounds and fixes for
denial of service and other vulnerabilities in Python's XML libraries. In order
to benefit from the protection you just have to import and use the listed
functions / classes from the right defusedxml module instead of the original
module. This is the python3 build.

%files -n python3-%{pypi_name}
%doc README.txt CHANGES.txt
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{upstream_version}-py%{python3_version}.egg-info/

#---------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{upstream_version}

%build
%py3_build

%install
%py3_install

%check
%{__python3} tests.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16165 |21mr|python-defusedxml-0.7.1_rc1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name    defusedxml
%global base_version 0.7.1
%global prerel       rc1
%global upstream_version %{base_version}
Name:           python-%{pypi_name}
Version:        %{base_version}%{?prerel:~%{prerel}}
Release:        4
Summary:        XML bomb protection for Python stdlib modules
Group:          Development/Python
License:        Python
URL:            https://github.com/tiran/defusedxml
Source0:        %{pypi_source %{pypi_name} %{upstream_version}}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
The defusedxml package contains several Python-only workarounds and fixes for
denial of service and other vulnerabilities in Python's XML libraries. In order
to benefit from the protection you just have to import and use the listed
functions / classes from the right defusedxml module instead of the original
module.


%package -n python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
The defusedxml package contains several Python-only workarounds and fixes for
denial of service and other vulnerabilities in Python's XML libraries. In order
to benefit from the protection you just have to import and use the listed
functions / classes from the right defusedxml module instead of the original
module. This is the python3 build.


%prep
%autosetup -p1 -n %{pypi_name}-%{upstream_version}

%build
%py3_build

%install
%py3_install

%check
%{__python3} tests.py


%files -n python3-%{pypi_name}
%doc README.txt CHANGES.txt
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{upstream_version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16166 |21mr|python-deprecated-1.2.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname Deprecated
%global pkgname deprecated

Name:		python-%{pkgname}
Version:	1.2.12
Release:	1
Summary:	Python decorator to deprecate old python classes, functions or methods
Group:		Development/Python
License:	MIT
URL:		https://github.com/tantale/%{pkgname}
Source0:	%{pypi_source}
BuildArch:	noarch

%description
Python @deprecated decorator to deprecate old python classes,
functions or methods.

#--------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description -n python3-%{pkgname}
Python @deprecated decorator to deprecate old python classes,
functions or methods.

%files -n python3-%{pkgname}
%license LICENSE.rst
%doc README.md
%{python3_sitelib}/%{pkgname}/
%{python3_sitelib}/%{srcname}-*.egg-info/

#--------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{pkgname}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16167 |21mr|python-deprecation-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name deprecation

Name:		python-%{pypi_name}
Version:	2.1.0
Release:	1
Summary:	A library to handle automated deprecations
Group:		Development/Python
License:	ASL 2.0
URL:		http://deprecation.readthedocs.io/
Source0:	https://pypi.io/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
The deprecation library provides a deprecated decorator and a
fail_if_not_removed decorator for your tests.

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A library to handle automated deprecations
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
The deprecation library provides a deprecated decorator and a
fail_if_not_removed decorator for your tests.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/__pycache__/%{pypi_name}*
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
# Required to avoid error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1918"
export LANG=en_US.utf8
%py3_build

%install
# Required to avoid error "UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1918"
export LANG=en_US.utf8
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install.
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16168 |21mr|python-digitalocean-1.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name python-digitalocean
%global pkgname digitalocean

%bcond_without python3

Name:           python-%{pkgname}
Version:        1.17.0
Release:        1
Summary:        Easy access to Digital Ocean APIs to deploy droplets, images and more
Group:          Development/Python
License:        LGPLv3
URL:            https://pypi.python.org/pypi/python-digitalocean
Source0:        https://github.com/koalalorenzo/%{pypi_name}/archive/v%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-jsonpickle
BuildRequires:  python3-mock
BuildRequires:  python3-pytest
BuildRequires:  python3-requests
BuildRequires:  python3-responses
BuildRequires:  python3-setuptools

%description
Easy access to Digital Ocean APIs to deploy droplets, images and
more.

#-----------------------------------------------------------
%package -n python3-%{pkgname}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3-jsonpickle
Requires:       python3-requests


%description -n python3-%{pkgname}
Easy access to Digital Ocean APIs to deploy droplets, images and
more.

This is the Python 3 version of the package.

%files -n python3-%{pkgname}
%license LICENSE.txt
%doc README.md
%{python3_sitelib}/digitalocean
%{python3_sitelib}/python_digitalocean-%{version}*.egg-info

#-----------------------------------------------------------
%prep
%autosetup -p1

%build
%py3_build

%check
%__python3 setup.py test

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16169 |21mr|python-distlib-0.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module distlib
# tests require network access
%bcond_with check

Summary:	Low-level components of distutils2/packaging, augmented with higher-level APIs
Name:		python-distlib
Version:	0.3.2
Release:	1
License:	Python
Group:		Development/Python
Url:		https://readthedocs.org/projects/distlib/
Source0:	https://files.pythonhosted.org/packages/45/97/15fdbef466e12c890553cebb1d8b1995375202e30e0c83a1e51061556143/distlib-0.3.2.zip
Patch0:		distlib_unbundle.patch
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Distlib contains the implementations of the packaging PEPs and other low-level
features which relate to packaging, distribution and deployment of Python
software. If Distlib can be made genuinely useful, then it is possible for
third-party packaging tools to transition to using it. Their developers and
users then benefit from standardised implementation of low-level functions,
time saved by not having to reinvent wheels, and improved interoperability
between tools.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Low-level components of distutils2/packaging, augmented with higher-level APIs
Group:		Development/Python

%description -n python3-%{module}
Distlib contains the implementations of the packaging PEPs and other low-level
features which relate to packaging, distribution and deployment of Python
software. If Distlib can be made genuinely useful, then it is possible for
third-party packaging tools to transition to using it. Their developers and
users then benefit from standardised implementation of low-level functions,
time saved by not having to reinvent wheels, and improved interoperability
between tools.

%files -n python3-%{module}
%doc README.rst
%license LICENSE.txt
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
%patch0 -p1

rm distlib/*.exe
rm -rf distlib/_backport
rm tests/test_shutil.py*
rm tests/test_sysconfig.py*

%build
%py3_build

%install
%py3_install

%if %{with check}
%check
export PYTHONHASHSEED=0
%__python3 setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16170 |21mr|python-distro-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name distro

Name:		python-%{pypi_name}
Version:	1.7.0
Release:	1
Summary:	Linux Distribution - a Linux OS platform information API
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/nir0s/distro
Source0:	%{pypi_source}
BuildArch:	noarch

%global _description \
The distro (for: Linux Distribution) package provides information about the\
Linux distribution it runs on, such as a reliable machine-readable ID, or\
version information.\
\
It is a renewed alternative implementation for Python's original\
platform.linux_distribution function, but it also provides much more\
functionality. An alternative implementation became necessary because\
Python 3.5 deprecated this function, and Python 3.7 is expected to remove it\
altogether. Its predecessor function platform.dist was already deprecated since\
Python 2.6 and is also expected to be removed in Python 3.7. Still, there are\
many cases in which access to that information is needed. See Python issue 1322\
for more information.

%description %{_description}

#--------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Recommends:	lsb-release

%description -n python3-%{pypi_name} %{_description}

%files -n python3-%{pypi_name}
%doc *.md
%license LICENSE
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%{python3_sitelib}/distro/*.py
%{python3_sitelib}/distro/*.typed
%{python3_sitelib}/distro/__pycache__

#--------------------------------------------------------------

%package cli
Summary:	%{summary}
Group:		Development/Python
Requires:	python3-%{pypi_name} = %{EVRD}

%description cli %{_description}

This package provides the %{_bindir}/distro CLI utility.

%files cli
%{_bindir}/distro

#--------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16171 |21mr|python-distutils-extra-2.39-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-distutils-extra
Version:	2.39
Release:	4
Summary:	Enhancements to the Python build system
Group:		Development/Python
License:	GPLv2+
URL:		https://launchpad.net/python-distutils-extra
Source0:	https://launchpad.net/python-distutils-extra/trunk/%{version}/+download/%{name}-%{version}.tar.gz

BuildArch:	noarch
BuildRequires:	python3-setuptools

%description
python-distutils-extra allows you to easily integrate gettext, themed icons
and GNOME documentation into your build and installation process.

#-----------------------------------------------------------------
%package -n python3-distutils-extra
Summary:	Enhancements to the Python 3 build system
Group:		Development/Python
Provides:	python3-distutils-extra = %{version}-%{release}
BuildRequires:	python3-distribute
BuildRequires:	python3-devel

%description -n python3-distutils-extra
python3-distutils-extra allows you to easily integrate gettext, themed icons
and GNOME documentation into your build and installation process. 

%files -n python3-distutils-extra
%doc doc/*
%{python3_sitelib}/DistUtilsExtra/
%{python3_sitelib}/python_distutils_extra*.egg-info

#-----------------------------------------------------------------

%prep
%setup -q

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16172 |21mr|python-django-3.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module django
%define	tarname Django
%define	urlver %(echo %{version}|cut -d. -f1,2)

Name:		python-%{module}
Version:	3.2.6
Release:	1
Summary:	A high-level Python 3 Web framework
Group:		Development/Python
License:	BSD
Url:		http://www.djangoproject.com
#Source0:	https://files.pythonhosted.org/packages/68/3e/068446a8bf87199d0fec94f38569a8884a49fdf5811fe652f653218975f0/Django-3.2.6.tar.gz
Source0:	https://files.pythonhosted.org/packages/68/3e/068446a8bf87199d0fec94f38569a8884a49fdf5811fe652f653218975f0/Django-3.2.6.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)


BuildArch:	noarch
# This one is python 2 only
Conflicts:	python-django

%description
Django is a high-level Python 3 Web framework that encourages rapid
development and clean, pragmatic design.
Developed and used over the past two years by a fast-moving online-news
operation, Django was designed from scratch to handle two challenges: the
intensive deadlines of a newsroom and the stringent requirements of
experienced Web developers. It has convenient niceties for developing
content-management systems, but it's an excellent tool for building any Web
site.
Django focuses on automating as much as possible and adhering to the DRY
principle.

#-------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	A high-level Python 3 Web framework
Group:		Development/Python

%description -n python3-%{module}
Django is a high-level Python 3 Web framework that encourages rapid
development and clean, pragmatic design.
Developed and used over the past two years by a fast-moving online-news
operation, Django was designed from scratch to handle two challenges: the
intensive deadlines of a newsroom and the stringent requirements of
experienced Web developers. It has convenient niceties for developing
content-management systems, but it's an excellent tool for building any Web
site.
Django focuses on automating as much as possible and adhering to the DRY
principle.

%files -n python3-%{module} -f django.lang
%doc AUTHORS LICENSE README.rst
%license LICENSE
%{_datadir}/bash-completion/completions/*
%{_bindir}/django-admin.py
%{_bindir}/django-admin
%{_bindir}/django-admin-3
%{_bindir}/django-admin-%{python3_version}
%{_bindir}/python3-django-admin
%{_mandir}/man1/django-admin.1*
%attr(0755,root,root) %{python3_sitelib}/django/bin/django-admin.py*
# Include everything but the locale data ...
%dir %{python3_sitelib}/django
%dir %{python3_sitelib}/django/bin
%{python3_sitelib}/django/apps
%{python3_sitelib}/django/db/
%{python3_sitelib}/django/*.py*
%{python3_sitelib}/django/utils/
%{python3_sitelib}/django/dispatch/
%{python3_sitelib}/django/template/
%{python3_sitelib}/django/urls/
%{python3_sitelib}/django/views/
%dir %{python3_sitelib}/django/conf/
%dir %{python3_sitelib}/django/conf/locale/
%dir %{python3_sitelib}/django/conf/locale/??/
%dir %{python3_sitelib}/django/conf/locale/???/
%dir %{python3_sitelib}/django/conf/locale/??_*/
%dir %{python3_sitelib}/django/conf/locale/*/LC_MESSAGES
%dir %{python3_sitelib}/django/contrib/
%{python3_sitelib}/django/contrib/*.py*
%dir %{python3_sitelib}/django/contrib/admin/
%dir %{python3_sitelib}/django/contrib/admin/locale
%dir %{python3_sitelib}/django/contrib/admin/locale/??/
%dir %{python3_sitelib}/django/contrib/admin/locale/???/
%dir %{python3_sitelib}/django/contrib/admin/locale/??_*/
%dir %{python3_sitelib}/django/contrib/admin/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/admin/*.py*
%{python3_sitelib}/django/contrib/admin/migrations
%{python3_sitelib}/django/contrib/admin/views/
%{python3_sitelib}/django/contrib/admin/static/
%{python3_sitelib}/django/contrib/admin/templatetags/
%{python3_sitelib}/django/contrib/admin/templates/
%dir %{python3_sitelib}/django/contrib/admindocs/
%dir %{python3_sitelib}/django/contrib/admindocs/locale/
%dir %{python3_sitelib}/django/contrib/admindocs/locale/??/
%dir %{python3_sitelib}/django/contrib/admindocs/locale/???/
%dir %{python3_sitelib}/django/contrib/admindocs/locale/??_*/
%dir %{python3_sitelib}/django/contrib/admindocs/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/admindocs/*.py*
%{python3_sitelib}/django/contrib/admindocs/templates/
%dir %{python3_sitelib}/django/contrib/auth/
%dir %{python3_sitelib}/django/contrib/auth/locale/
%dir %{python3_sitelib}/django/contrib/auth/locale/??/
%dir %{python3_sitelib}/django/contrib/auth/locale/???/
%dir %{python3_sitelib}/django/contrib/auth/locale/??_*/
%dir %{python3_sitelib}/django/contrib/auth/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/auth/*.py*
%{python3_sitelib}/django/contrib/auth/common-passwords.txt.gz
%{python3_sitelib}/django/contrib/auth/handlers/
%{python3_sitelib}/django/contrib/auth/management/
%{python3_sitelib}/django/contrib/auth/migrations/
%{python3_sitelib}/django/contrib/auth/templates/
%dir %{python3_sitelib}/django/contrib/contenttypes/
%dir %{python3_sitelib}/django/contrib/contenttypes/locale
%dir %{python3_sitelib}/django/contrib/contenttypes/locale/??/
%dir %{python3_sitelib}/django/contrib/contenttypes/locale/???/
%dir %{python3_sitelib}/django/contrib/contenttypes/locale/??_*/
%dir %{python3_sitelib}/django/contrib/contenttypes/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/contenttypes/*.py*
%{python3_sitelib}/django/contrib/contenttypes/__pycache__
%{python3_sitelib}/django/contrib/contenttypes/management/
%{python3_sitelib}/django/contrib/contenttypes/migrations/
%dir %{python3_sitelib}/django/contrib/flatpages/
%dir %{python3_sitelib}/django/contrib/flatpages/locale/
%dir %{python3_sitelib}/django/contrib/flatpages/locale/??/
%dir %{python3_sitelib}/django/contrib/flatpages/locale/???/
%dir %{python3_sitelib}/django/contrib/flatpages/locale/??_*/
%dir %{python3_sitelib}/django/contrib/flatpages/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/flatpages/*.py*
%{python3_sitelib}/django/contrib/flatpages/migrations
%{python3_sitelib}/django/contrib/flatpages/templatetags
%dir %{python3_sitelib}/django/contrib/gis/
%dir %{python3_sitelib}/django/contrib/gis/locale/
%dir %{python3_sitelib}/django/contrib/gis/locale/??/
%dir %{python3_sitelib}/django/contrib/gis/locale/???/
%dir %{python3_sitelib}/django/contrib/gis/locale/??_*/
%dir %{python3_sitelib}/django/contrib/gis/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/gis/*.py*
%{python3_sitelib}/django/contrib/gis/geoip2/
%{python3_sitelib}/django/contrib/gis/serializers/
%{python3_sitelib}/django/contrib/gis/static/
%dir %{python3_sitelib}/django/contrib/humanize/
%dir %{python3_sitelib}/django/contrib/humanize/locale/
%dir %{python3_sitelib}/django/contrib/humanize/locale/??/
%dir %{python3_sitelib}/django/contrib/humanize/locale/???/
%dir %{python3_sitelib}/django/contrib/humanize/locale/??_*/
%dir %{python3_sitelib}/django/contrib/humanize/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/humanize/templatetags/
%{python3_sitelib}/django/contrib/humanize/*.py*
%dir %{python3_sitelib}/django/contrib/messages/
%{python3_sitelib}/django/contrib/messages/*.py*
%dir %{python3_sitelib}/django/contrib/postgres
%{python3_sitelib}/django/contrib/postgres/*.py*
%{python3_sitelib}/django/contrib/postgres/aggregates
%{python3_sitelib}/django/contrib/postgres/jinja2
%{python3_sitelib}/django/contrib/postgres/fields
%{python3_sitelib}/django/contrib/postgres/forms
%{python3_sitelib}/django/contrib/postgres/templates
%{python3_sitelib}/django/contrib/postgres/__pycache__
%dir %{python3_sitelib}/django/contrib/redirects
%dir %{python3_sitelib}/django/contrib/redirects/locale
%dir %{python3_sitelib}/django/contrib/redirects/locale/??/
%dir %{python3_sitelib}/django/contrib/redirects/locale/???/
%dir %{python3_sitelib}/django/contrib/redirects/locale/??_*/
%dir %{python3_sitelib}/django/contrib/redirects/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/redirects/*.py*
%{python3_sitelib}/django/contrib/redirects/migrations
%dir %{python3_sitelib}/django/contrib/sessions/
%dir %{python3_sitelib}/django/contrib/sessions/locale/
%dir %{python3_sitelib}/django/contrib/sessions/locale/??/
%dir %{python3_sitelib}/django/contrib/sessions/locale/???/
%dir %{python3_sitelib}/django/contrib/sessions/locale/??_*/
%dir %{python3_sitelib}/django/contrib/sessions/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/sessions/management/
%{python3_sitelib}/django/contrib/sessions/migrations/
%{python3_sitelib}/django/contrib/sessions/*.py*
%{python3_sitelib}/django/contrib/sitemaps/
%dir %{python3_sitelib}/django/contrib/sites/
%dir %{python3_sitelib}/django/contrib/sites/locale/
%dir %{python3_sitelib}/django/contrib/sites/locale/??/
%dir %{python3_sitelib}/django/contrib/sites/locale/???/
%dir %{python3_sitelib}/django/contrib/sites/locale/??_*/
%dir %{python3_sitelib}/django/contrib/sites/locale/*/LC_MESSAGES
%{python3_sitelib}/django/contrib/sites/*.py*
%{python3_sitelib}/django/contrib/sites/migrations
%{python3_sitelib}/django/contrib/staticfiles/
%{python3_sitelib}/django/contrib/syndication/
%{python3_sitelib}/django/contrib/gis/admin/
%{python3_sitelib}/django/contrib/gis/db/
%{python3_sitelib}/django/contrib/gis/forms/
%{python3_sitelib}/django/contrib/gis/gdal/
%{python3_sitelib}/django/contrib/gis/geos/
%{python3_sitelib}/django/contrib/gis/management/
%{python3_sitelib}/django/contrib/gis/sitemaps/
%{python3_sitelib}/django/contrib/gis/templates/
%{python3_sitelib}/django/contrib/gis/utils/
%{python3_sitelib}/django/contrib/messages/storage/
%{python3_sitelib}/django/contrib/sessions/backends/
%{python3_sitelib}/django/forms/
%{python3_sitelib}/django/templatetags/
%{python3_sitelib}/django/core/
%{python3_sitelib}/django/http/
%{python3_sitelib}/django/middleware/
%{python3_sitelib}/django/test/
%{python3_sitelib}/django/conf/*.py*
%{python3_sitelib}/django/conf/project_template/
%{python3_sitelib}/django/conf/app_template/
%{python3_sitelib}/django/conf/urls/
%{python3_sitelib}/django/conf/locale/*/*.py*
%{python3_sitelib}/django/conf/locale/*.py*
%{python3_sitelib}/Django-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/django/__pycache__
%{python3_sitelib}/django/bin/__pycache__
%{python3_sitelib}/django/conf/__pycache__
%{python3_sitelib}/django/conf/locale/*/__pycache__
%{python3_sitelib}/django/contrib/__pycache__
%{python3_sitelib}/django/contrib/admin/__pycache__
%{python3_sitelib}/django/contrib/admindocs/__pycache__
%{python3_sitelib}/django/contrib/auth/__pycache__
%{python3_sitelib}/django/contrib/flatpages/__pycache__
%{python3_sitelib}/django/contrib/gis/__pycache__
%{python3_sitelib}/django/contrib/humanize/__pycache__
%{python3_sitelib}/django/contrib/messages/__pycache__
%{python3_sitelib}/django/contrib/redirects/__pycache__
%{python3_sitelib}/django/contrib/sessions/__pycache__
%{python3_sitelib}/django/contrib/sites/__pycache__
#--------------------------------------------------------------
%package -n python3-django-doc
Summary:	Documentation for Django
Group:		Documentation
Suggests:	python3-django = %{EVRD}
BuildRequires:	python3egg(sphinx)

%description -n python3-django-doc
This package contains the documentation for the Django high-level
Python Web framework.

%files -n python3-django-doc
%doc docs/_build/html/*

#--------------------------------------------------------------

%prep
%setup -qn %{tarname}-%{version}
sed -i 's/^\(ez_setup.use_setuptools\)/#\1/' setup.py
# hard-code python3 in django-admin
pushd django
for file in bin/django-admin.py conf/project_template/manage.py-tpl ; do
    sed -i "s/\/env python/\/python3/" $file ;
done
popd

# Python RPM dependency generator doesn't support ~= yet
# https://bugzilla.redhat.com/show_bug.cgi?id=1758141
sed -i 's/asgiref ~= /asgiref >= /' setup.py

%build
%py3_build

%install
%py3_install

%find_lang django
%find_lang djangojs
# append djangojs.lang to django.lang
cat djangojs.lang >> django.lang

# build documentation
(cd docs && mkdir djangohtml && mkdir -p _build/{doctrees,html} && make html)
cp -ar docs ..

# install man pages (for the main executable only)
mkdir -p %{buildroot}%{_mandir}/man1/
cp -p docs/man/* %{buildroot}%{_mandir}/man1/

# install bash completion script
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions
install -m 0644 -p extras/django_bash_completion \
  %{buildroot}%{_datadir}/bash-completion/completions/django-admin.py

for file in django-admin django-admin-3 django-admin-%{python3_version} python3-django-admin manage.py ; do
   ln -s django-admin.py %{buildroot}%{_datadir}/bash-completion/completions/$file
done

# Add backward compatible links to %%{_bindir}
ln -s ./django-admin %{buildroot}%{_bindir}/django-admin-3
ln -s ./django-admin %{buildroot}%{_bindir}/django-admin-%{python3_version}
ln -s ./django-admin %{buildroot}%{_bindir}/python3-django-admin

# remove .po files
find %{buildroot} -name "*.po" | xargs rm -f

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16173 |21mr|python-django-appconf-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django-appconf

Name:		python-%{pypi_name}
Version:	1.0.4
Release:	1
Summary:	A helper class for handling configuration defaults of packaged apps gracefully
Group:		Development/Python
License:	BSD
URL:		http://pypi.python.org/pypi/django-appconf/0.5
Source0:	https://pypi.python.org/packages/source/d/django-appconf/django-appconf-%{version}.tar.gz
BuildArch:	noarch
 
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(setuptools)


%description
A helper class for handling configuration
defaults of packaged Django
apps gracefully.

#------------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A helper class for handling configuration defaults of packaged apps gracefully
Group:		Development/Python
Requires:	python3-django

%description -n python3-%{pypi_name}
A helper class for handling configuration
defaults of packaged Django
apps gracefully.

%files -n python3-%{pypi_name}
%doc html README.rst LICENSE
%{python3_sitelib}/appconf
%{python3_sitelib}/django_appconf-%{version}-py*.egg-info

#------------------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# generate html docs 
sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16174 |21mr|python-django-compressor-2.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django_compressor

Name:		python-django-compressor
Version:	2.4.1
Release:	1
Summary:	Compresses linked and inline JavaScript or CSS into single cached files
Group:		Development/Python
License:	MIT
URL:		https://pypi.python.org/pypi/django_compressor
Source0:	https://files.pythonhosted.org/packages/34/77/4352563ad70317ac021ba913c2f8cdb5b10cb35c70885d27f2c83cddff22/django_compressor-2.4.1.tar.gz
BuildArch:	noarch

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
Django Compressor combines and compresses linked and inline Javascript
or CSS in a Django templates into cacheable static files by using the
``compress`` template tag.  HTML in between
``{% compress js/css %}`` and ``{% endcompress %}`` is
parsed and searched for CSS or JS. These styles and scripts are subsequently
processed with optional, configurable compilers and filters.

#-----------------------------------------------------------------------------
%package -n python3-django-compressor
Summary:	Compresses linked and inline JavaScript or CSS into single cached files
Group:		Development/Python

%description -n python3-django-compressor
Django Compressor combines and compresses linked and inline Javascript
or CSS in a Django templates into cacheable static files by using the
``compress`` template tag.  HTML in between
``{% compress js/css %}`` and ``{% endcompress %}`` is
parsed and searched for CSS or JS. These styles and scripts are subsequently
processed with optional, configurable compilers and filters.

%files -n python3-django-compressor
%doc README.rst LICENSE
%{python3_sitelib}/compressor
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#-----------------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16175 |21mr|python-django-debreach-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django-debreach

Summary:	Basic/extra mitigation against the BREACH attack for Django projects
Name:		python-%{pypi_name}
Version:	2.0.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://github.com/lpomfrey/django-debreach
Source0:	https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(django)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sphinx)
BuildArch:	noarch

%description
Basic/extra mitigation against the BREACH attack for Django projects.

When combined with rate limiting in your web-server, or by using something
like django-ratelimit, the techniques here should provide at least some
protection against the BREACH attack.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Basic/extra mitigation against the BREACH attack for Django projects
Group:		Development/Python
Requires:	python3dist(django) >= 2.0

%description -n python3-%{pypi_name}
Basic/extra mitigation against the BREACH attack for Django projects.

When combined with rate limiting in your web-server, or by using something
like django-ratelimit, the techniques here should provide at least some
protection against the BREACH attack.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/debreach
%{python3_sitelib}/django_debreach-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=. %__python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16176 |21mr|python-django-pyscss-3.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with checks

%global pypi_name django-pyscss2

Name:		python-django-pyscss
Version:	3.0.0
Release:	3
Summary:	Makes it easier to use PySCSS in Django
Group:		Development/Python
License:	BSD
URL:		https://github.com/e0ne/django-pyscss
Source0:	https://pypi.io/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pillow)
BuildRequires:	python3egg(django-compressor) >= 1.3
# django-discover-runner is dead upstream
#BuildRequires:  python3-django-discover-runner
BuildRequires:	python3egg(pyscss2)
BuildRequires:	python3egg(django)
BuildRequires:	python3egg(mock)
BuildArch:	noarch

%description
A collection of tools for making it easier to use
pyScss within Django.

#-------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Makes it easier to use PySCSS in Django - Python 3 version
Group:		Development/Python
Requires:	python3-django >= 1.4
Requires:	python3-pyScss2
Provides:	python3egg(django-pyscss) = %{EVRD}

%description -n python3-%{pypi_name}
A collection of tools for making it easier to use
pyScss within Django.
This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/django_pyscss
%{python3_sitelib}/django_pyscss2-%{version}-py%{python3_version}.egg-info

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with checks}
%check
%{__python3} setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16177 |21mr|python-django-pyscss-3.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with checks

%global pypi_name django-pyscss2

Name:		python-django-pyscss
Version:	3.0.0
Release:	4
Summary:	Makes it easier to use PySCSS in Django
Group:		Development/Python
License:	BSD
URL:		https://github.com/e0ne/django-pyscss
Source0:	https://pypi.io/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pillow)
BuildRequires:	python3egg(django-compressor) >= 1.3
# django-discover-runner is dead upstream
#BuildRequires:  python3-django-discover-runner
BuildRequires:	python3egg(pyscss2)
BuildRequires:	python3egg(django)
BuildRequires:	python3egg(mock)
BuildArch:	noarch

%description
A collection of tools for making it easier to use
pyScss within Django.

#-------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Makes it easier to use PySCSS in Django - Python 3 version
Group:		Development/Python
Requires:	python3-django >= 1.4
Requires:	python3-pyScss2
Requires:	python3-django-utils-six
Provides:	python3egg(django-pyscss) = %{EVRD}

%description -n python3-%{pypi_name}
A collection of tools for making it easier to use
pyScss within Django.
This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/django_pyscss
%{python3_sitelib}/django_pyscss2-%{version}-py%{python3_version}.egg-info

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with checks}
%check
%{__python3} setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16178 |21mr|python-django-utils-six-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name django-utils-six

Summary:	Forward compatibility django.utils.six for Django 3
Name:		python-%{pypi_name}
Version:	2.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/whtsky/django-utils-six
Source0:	https://files.pythonhosted.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(django)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
Forward compatibility django.utils.six for Django 3.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Forward compatibility django.utils.six for Django 3
Group:		Development/Python
Requires:	python3dist(django) >= 3.0

%description -n python3-%{pypi_name}
Forward compatibility django.utils.six for Django 3.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/django
%{python3_sitelib}/django_utils_six-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16179 |21mr|python-dmidecode-3.12.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Python module to access DMI data
Name:    python-dmidecode
Version: 3.12.2
Release: 4
License: GPLv2+
Group:   Development/Python
URL:     http://projects.autonomy.net.au/python-dmidecode/
Source0: http://src.autonomy.net.au/python2-dmidecode/%{name}-%{version}.tar.gz
Requires: python3-libxml2
BuildRequires: python3-libxml2
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(zlib)
BuildRequires: pkgconfig(liblzma)


%description
python2-dmidecode is a python extension module that uses the
code-base of the 'dmidecode' utility, and presents the data
as python2 data structures or as XML data using libxml2.

%package -n python3-dmidecode
Summary: Python module to access DMI data

%description -n python3-dmidecode
python-dmidecode is a python extension module that uses the
code-base of the 'dmidecode' utility, and presents the data
as python data structures or as XML data using libxml2.


%prep
%setup -q
sed -i 's/python2/python3/g' Makefile unit-tests/Makefile

%build
export CFLAGS="${CFLAGS-} -std=gnu89"
make build

%install
%__python3 src/setup.py install --root %{buildroot} --prefix=%{_prefix}

%check
pushd unit-tests
make
popd

%files -n python3-dmidecode
%doc doc/LICENSE doc/AUTHORS doc/AUTHORS.upstream
%doc README doc/README.upstream
%{python3_sitearch}/dmidecodemod*.so
%{python3_sitearch}/dmidecode.py*
%{python3_sitearch}/*.egg-info
%{python3_sitearch}/__pycache__/*
%{_datadir}/python-dmidecode/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16180 |21mr|python-dns-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name dnspython
%global py_package_name dns

Name:		python-%{py_package_name}
Version:	2.1.0
Release:	2
Summary:	DNS toolkit for Python
Group:		Development/Python
# The entire package is licensed with both licenses, see LICENSE file
License:	ISC and MIT
URL:		http://www.dnspython.org
Source0:	https://github.com/rthalley/%{pypi_name}/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%global _description %{expand:
dnspython is a DNS toolkit for Python. It supports almost all record
types. It can be used for queries, zone transfers, and dynamic
updates. It supports TSIG authenticated messages and EDNS0.

dnspython provides both high and low level access to DNS. The high
level classes perform queries for data of a given name, type, and
class, and return an answer set. The low level classes allow direct
manipulation of DNS zones, messages, names, and records.
}

%description %_description

#--------------------------------------------------------------------
%package -n python3-%{py_package_name}
Summary:	%{summary}
Group:		Development/Python
Provides:	python3-dnspython = %{EVRD}

%description -n python3-%{py_package_name} %_description

# curio extras cannot be packages because nothing provides python3.9dist(curio) >= 1.2
%{?python_extras_subpkg:%python_extras_subpkg -n python3-dns -i %{python3_sitelib}/*.egg-info dnssec trio doh idna}

%files -n python3-%{py_package_name}
%license LICENSE
%doc README.md examples
%{python3_sitelib}/%{py_package_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# strip exec permissions so that we don't pick up dependencies from docs
find examples -type f | xargs chmod a-x

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16181 |21mr|python-dns-lexicon-3.11.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global forgeurl    https://github.com/AnalogJ/lexicon
Version:            3.11.7
%forgemeta

%global pypi_name dns-lexicon

Name:           python-%{pypi_name}
Release:        1
Summary:        Manipulate DNS records on various DNS providers in a standardized/agnostic way
Group:          Development/Python
License:        MIT
URL:            %{forgeurl}
# pypi releases don't contain necessary data to run the tests
Source0:        %{forgesource}
BuildArch:      noarch

Patch0:         0000-remove-shebang.patch

BuildRequires:  python3-devel
BuildRequires:  python3egg(tldextract)
BuildRequires:  pyproject-rpm-macros


%description
Lexicon provides a way to manipulate DNS records on multiple DNS providers in a
standardized way. Lexicon has a CLI but it can also be used as a python
library.

#---------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Lexicon provides a way to manipulate DNS records on multiple DNS providers in a
standardized way. Lexicon has a CLI but it can also be used as a python
library.

This is the Python 3 version of the package.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/lexicon
%{_bindir}/lexicon-3
%{_bindir}/lexicon-%{python3_version}
%{python3_sitelib}/lexicon
%{python3_sitelib}/dns_lexicon-%{version}.dist-info

#---------------------------------------------------------

%prep
%autosetup -n lexicon-%{version} -p1

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
rm setup.py

%generate_buildrequires
%pyproject_buildrequires -r -t -e light


%build
%pyproject_wheel

%install
%pyproject_install
install -pm 0755 %{buildroot}/%{_bindir}/lexicon %{buildroot}/%{_bindir}/lexicon-%{python3_version}
cd %{buildroot}/%{_bindir}
ln -s lexicon-%{python3_version} lexicon-3
rm -rf %{buildroot}%{python3_sitelib}/lexicon/tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16182 |21mr|python-doc8-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name doc8

%bcond_without docs
%bcond_with checks

Summary:	Style checker for Sphinx (or other) RST documentation
Name:		python-%{pypi_name}
Version:	0.8.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://launchpad.net/doc8
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(pbr)
%if %{with checks}
BuildRequires:	python3-mock
BuildRequires:	python3dist(chardet)
BuildRequires:	python3dist(fixtures)
BuildRequires:	python3dist(nose)
BuildRequires:	python3dist(pygments)
BuildRequires:	python3dist(restructuredtext-lint)
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3dist(stevedore)
BuildRequires:	python3dist(testtools)
%endif
BuildArch:	noarch

%description
Doc8 is an opinionated style checker for rst (with basic support for plain
text) styles of documentation.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Style checker for Sphinx (or other) RST documentation
Group:		Development/Python
Requires:	python3dist(chardet)
Requires:	python3dist(docutils)
Requires:	python3dist(pygments)
Requires:	python3dist(restructuredtext-lint)
Requires:	python3dist(six)
Requires:	python3dist(stevedore)

%description -n python3-%{pypi_name}
Doc8 is an opinionated style checker for rst (with basic support for plain
text) styles of documentation.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst doc/source/readme.rst
%{_bindir}/doc8
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%if %{with docs}
%package -n python-%{pypi_name}-doc
Summary:	doc8 documentation
Group:		Documentation
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3dist(sphinx-rtd-theme)

%description -n python-%{pypi_name}-doc
Documentation for doc8.

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%if %{with docs}
# generate html docs
PYTHONPATH=${PWD} sphinx-build doc/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install

%check
%if %{with checks}
%__python3 setup.py test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16183 |21mr|python-docker-4.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name docker

Name:           python-%{pypi_name}
Version:	4.4.3
Release:	1
Summary:        A Python library for the Docker Engine API
Group:          Development/Python

License:        MIT
URL:            https://pypi.python.org/pypi/docker
Source0:	https://files.pythonhosted.org/packages/fb/21/459639c32d19ee5bc3e49c066e8f90969e6aca38779df590b9555cb1d1fe/docker-4.4.3.tar.gz
BuildArch:      noarch

%description
A Python library for the Docker Engine API.

%package -n python3-%{pypi_name}
Summary:        A Python 3 library for the Docker Engine API
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pip)
Obsoletes:      python3-docker-py < 3.6.0-3
Provides:       python3-docker-py = %{version}-%{release}

%description -n python3-%{pypi_name}
A Python 3 library for the Docker Engine API.

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Remove reundant script header to avoid rpmlint warnings
find -name \*.py -exec sed -i '/\/usr\/bin\/env python/{d;q}' {} +

%build
%py3_build

%install
%py3_install

rm -f %{buildroot}/%{py3_puresitedir}/docker/api/mixin.py

%files -n python3-%{pypi_name}
%doc README.md
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16184 |21mr|python-docopt-0.6.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name docopt

Name:           python-docopt
Version:        0.6.2
Release:        10
Summary:        Pythonic argument parser, that will make you smile
Group:		Development/Python
License:        MIT
URL:            https://github.com/docopt/docopt
Source0:        %{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch

%description
Isn't it awesome how optparse and argparse generate help messages
based on your code?!

Hell no! You know what's awesome? It's when the option parser is
generated based on the beautiful help message that you write yourself!
This way you don't need to write thisstupid repeatable parser-code,
and instead can write only the help message--*the way you want it*.

%package -n python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%description -n python3-%{pypi_name}
Isn't it awesome how optparse and argparse generate help messages
based on your code?!

Hell no! You know what's awesome? It's when the option parser is
generated based on the beautiful help message that you write yourself!
This way you don't need to write thisstupid repeatable parser-code,
and instead can write only the help message--*the way you want it*.

Python 3 version.

%prep
%autosetup -n %{pypi_name}-%{version}

# A stopgap measure to work with pytest 6.0.
# This will no longer work with pytest 6.1.
echo "[pytest]" >> tox.ini
echo "filterwarnings =" >> tox.ini
echo "    ignore::pytest.PytestDeprecationWarning" >> tox.ini

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%license LICENSE-MIT
%doc README.rst
%{python3_sitelib}/%{pypi_name}-*.egg-info/
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/__pycache__/%{pypi_name}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16185 |21mr|python-docutils-0.17.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname docutils
%define enable_tests 1

Name:		python-%{srcname}
Summary:	Python Documentation Utilities
Version:	0.17.1
Release:	1
URL:		http://docutils.sourceforge.net/
License:	Public Domain and BSD and Python and GPLv3+
Group:		Development/Python
Source0:	https://files.pythonhosted.org/packages/4c/17/559b4d020f4b46e0287a2eddf2d8ebf76318fd3bd495f1625414b052fdc9/docutils-0.17.1.tar.gz

BuildArch:	noarch

%description
The Docutils project specifies a plaintext markup language, reStructuredText,
which is easy to read and quick to write.  The project includes a python
library to parse rST files and transform them into other useful formats such
as HTML, XML, and TeX as well as commandline tools that give the enduser
access to this functionality.

Currently, the library supports parsing rST that is in standalone files and
PEPs (Python Enhancement Proposals).  Work is underway to parse rST from
Python inline documentation modules and packages.

%package -n python2-%{srcname}
%py2_migration_meta python2-%{srcname}
Summary:	System for processing plaintext documentation for python2
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	python2dist(setuptools)
Recommends:	python2dist(pillow)
%{?python_provide:%python_provide python2-%{srcname}}

%description -n python2-%{srcname}
The Docutils project specifies a plaintext markup language, reStructuredText,
which is easy to read and quick to write.  The project includes a python
library to parse rST files and transform them into other useful formats such
as HTML, XML, and TeX as well as commandline tools that give the enduser
access to this functionality.

Currently, the library supports parsing rST that is in standalone files and
PEPs (Python Enhancement Proposals).  Work is underway to parse rST from
Python inline documentation modules and packages.

This package contains the module, ported to run under python2.

%package -n python3-%{srcname}
Summary:	System for processing plaintext documentation for python3
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
Recommends:	python3dist(pillow)
%{?python_provide:%python_provide python3-%{srcname}}
Conflicts:	python2-docutils < 0.14-3
Provides:	rst2html = %{version}-%{release}
Provides:	rst2man = %{version}-%{release}

%description -n python3-%{srcname}
The Docutils project specifies a plaintext markup language, reStructuredText,
which is easy to read and quick to write.  The project includes a python
library to parse rST files and transform them into other useful formats such
as HTML, XML, and TeX as well as commandline tools that give the enduser
access to this functionality.

Currently, the library supports parsing rST that is in standalone files and
PEPs (Python Enhancement Proposals).  Work is underway to parse rST from
Python inline documentation modules and packages.

This package contains the module, ported to run under python3.

%prep
%setup -q -n %{srcname}-%{version}

# Remove shebang from library files
for file in docutils/utils/{code_analyzer.py,punctuation_chars.py,error_reporting.py} docutils/utils/math/{latex2mathml.py,math2html.py} docutils/writers/xetex/__init__.py; do
sed -i -e '/#! *\/usr\/bin\/.*/{1D}' $file
done

iconv -f ISO88592 -t UTF8 tools/editors/emacs/IDEAS.rst > tmp
mv tmp tools/editors/emacs/IDEAS.rst

cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

rm -rf %{buildroot}%{_bindir}/*

pushd %{py3dir}
%py3_install
popd

# docutils setup.py runs 2to3 on a copy of the tests and puts it in sitelib.
rm -rf %{buildroot}%{python3_sitelib}/test


for file in %{buildroot}%_bindir/*.py; do
  mv $file %{buildroot}%_bindir/`basename $file .py`
done

# We want the licenses but don't need this build file
rm -f licenses/docutils.conf

%files -n python2-%{srcname}
%doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt
%doc THANKS.txt licenses docs tools/editors
%{python2_sitelib}/*

%files -n python3-%{srcname}
%doc BUGS.txt COPYING.txt FAQ.txt HISTORY.txt README.txt RELEASE-NOTES.txt
%doc THANKS.txt licenses docs tools/editors
%{python3_sitelib}/*
%{_bindir}/rst2html
%{_bindir}/rst2html4
%{_bindir}/rst2html5
%{_bindir}/rst2latex
%{_bindir}/rst2man
%{_bindir}/rst2odt
%{_bindir}/rst2odt_prepstyles
%{_bindir}/rst2pseudoxml
%{_bindir}/rst2s5
%{_bindir}/rst2xetex
%{_bindir}/rst2xml
%{_bindir}/rstpep2html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16186 |21mr|python-dogpile-cache-1.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	dogpile.cache
%global modname %{oname}

Name:		python-dogpile-cache
Version:	1.1.3
Release:	1
Summary:	A caching front-end based on the Dogpile lock
URL:		https://pypi.io/project/dogpile.cache
Source0:	https://files.pythonhosted.org/packages/99/d3/36efc44d13ec2eca3fb3aa918844a941a4d3bb6619d46d609a641c0ab3d6/dogpile.cache-1.1.3.tar.gz
License:	BSD
Group:		Development/Python
BuildArch:	noarch

%description
A caching API built around the concept of a "dogpile lock", which allows
continued access to an expiring data value while a single thread generates
a new value.
dogpile.cache builds on the `dogpile.core
<http://pypi.python.org/pypi/dogpile.core>`_ locking system, which
implements the idea of "allow one creator to write while others read" in
the abstract.
Overall, dogpile.cache is intended as a replacement to the
`Beaker <http://beaker.groovie.org>`_ caching system, the internals of
which are written by the same author.
All the ideas of Beaker which
"work" are re-implemented in dogpile.cache in a more efficient and succinct
manner, and all the cruft (Beaker's internals were first written in 2005)
relegated to the trash heap.

#------------------------------------------------------------------

%package -n python3-dogpile-cache
Summary:            A caching front-end based on the Dogpile lock
Group:              Development/Python
BuildRequires:	python3egg(setuptools)
Provides:	python3-dogpile-core = %{EVRD}
Obsoletes:	python3-dogpile-core < 0.8.0

%description -n python3-dogpile-cache
A caching API built around the concept of a "dogpile lock", which allows
continued access to an expiring data value while a single thread generates
a new value.
dogpile.cache builds on the `dogpile.core
<http://pypi.python.org/pypi/dogpile.core>`_ locking system, which
implements the idea of "allow one creator to write while others read" in
the abstract.
Overall, dogpile.cache is intended as a replacement to the
`Beaker <http://beaker.groovie.org>`_ caching system, the internals of
which are written by the same author.
All the ideas of Beaker which
"work" are re-implemented in dogpile.cache in a more efficient and succinct
manner, and all the cruft (Beaker's internals were first written in 2005)
relegated to the trash heap.

%files -n python3-dogpile-cache
%doc LICENSE
%doc README.rst
%doc docs
%{py3_puresitedir}/dogpile
%{py3_puresitedir}/dogpile.cache*.egg-info

#------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16187 |21mr|python-dotenv-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-dotenv
Version:        0.15.0
Release:        1
Summary:        Add .env support to your Django/Flask apps in development and deployments

License:        BSD
URL:            https://github.com/theskumar/python-dotenv
Source0:        %{url}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildArch:      noarch
Group:          Development/Python

BuildRequires:  python3-click
BuildRequires:  python3-devel
BuildRequires:  python3-ipython
BuildRequires:  python3-pytest
BuildRequires:  python3-setuptools
BuildRequires:  python3-sh

%description
Reads the key/value pair from .env file and adds them to environment variable.


%package -n     python3-dotenv
Summary:        %{summary}
Requires:       python3-click
Requires:       python3-setuptools
%{?python_provide:%python_provide python3-dotenv}

%description -n python3-dotenv
Reads the key/value pair from .env file and adds them to environment variable.


%prep
%autosetup
# Use the standard library mock
sed -i 's/import mock/from unittest import mock/' tests/test_*.py


%build
%py3_build


%install
%py3_install


%check
export PATH=%{buildroot}%{_bindir}:$PATH
export PYTHONPATH=%{buildroot}%{python3_sitelib}
#%{__python3} -m pytest -v tests


%files -n python3-dotenv
%license LICENSE
%doc README.md
%{_bindir}/dotenv
%{python3_sitelib}/dotenv/
%{python3_sitelib}/python_dotenv-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16188 |21mr|python-doxypypy-0.8.8.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module doxypypy

Summary:	A more Pythonic version of doxypy, a Doxygen filter for Python
Name:		python-%{module}
Version:	0.8.8.6
Release:	1
License:	GPLv2+
Group:		Development/Python
Url:		https://github.com/Feneric/doxypypy
Source0:	https://pypi.python.org/packages/source/d/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
A more Pythonic version of doxypy, a Doxygen filter for Python.

#----------------------------------------------------------------------------

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	A more Pythonic version of doxypy, a Doxygen filter for Python
Group:		Development/Python
BuildRequires:	python2-setuptools
BuildRequires:	pkgconfig(python2)

%description -n python2-%{module}
A more Pythonic version of doxypy, a Doxygen filter for Python.

%files -n python2-%{module}
%{_bindir}/python2-%{module}
%{python2_sitelib}/*.egg-info
%{python2_sitelib}/%{module}

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A more Pythonic version of doxypy, a Doxygen filter for Python
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
A more Pythonic version of doxypy, a Doxygen filter for Python.

%files -n python3-%{module}
%{_bindir}/%{module}
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/%{module}

#----------------------------------------------------------------------------

%prep
%setup -q -c

mv %{module}-%{version} python2
cp -r python2 python3

%build
pushd python2
%__python2 setup.py build
popd

pushd python3
%__python3 setup.py build
popd

%install
pushd python2
PYTHONDONTWRITEBYTECODE=  %__python2 setup.py install --root=%{buildroot}
mv %{buildroot}%{_bindir}/%{module} %{buildroot}%{_bindir}/python2-%{module}
popd

pushd python3
PYTHONDONTWRITEBYTECODE=  %__python3 setup.py install --root=%{buildroot}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16189 |21mr|python-doxyqml-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module doxyqml

Summary:	Doxyqml lets you use Doxygen to document your QML classes
Name:		python-%{module}
Version:	0.5.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://agateau.com/projects/doxyqml/
Source0:	https://files.pythonhosted.org/packages/30/a6/f364962ca393eb332d6d6756920b90151fcfc01f30e8513619d5769bba7b/doxyqml-0.5.1.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Doxyqml lets you use Doxygen to document your QML classes. It integrates
as a Doxygen input filter to turn .qml files into pseudo-C++ which Doxygen
can then use to generate documentation.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Doxyqml lets you use Doxygen to document your QML classes
Group:		Development/Python

%description -n python3-%{module}
Doxyqml lets you use Doxygen to document your QML classes. It integrates
as a Doxygen input filter to turn .qml files into pseudo-C++ which Doxygen
can then use to generate documentation.

%files -n python3-%{module}
%{_bindir}/%{module}
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/%{module}

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%__python3 setup.py build

%install
PYTHONDONTWRITEBYTECODE=  %__python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16190 |21mr|python-dulwich-0.20.46-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	dulwich

Name:		python-%{pypi_name}
Version:	0.20.46
Release:	1
Summary:	Python implementation of the Git file formats and protocols
Group:		Development/Python
License:	GPLv2
Url:		https://launchpad.net/dulwich/
Source0:	%{pypi_source}

BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(nose)
BuildRequires:	pkgconfig(python3)

%description
Dulwich is a pure-Python implementation of the Git file formats and protocols.

#------------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python implementation of the Git file formats and protocols
Group:		Development/Python

%description -n python3-%{pypi_name}
Dulwich is a pure-Python implementation of the Git file formats and protocols.

%files -n python3-%{pypi_name}
%doc  COPYING  NEWS  docs/tutorial
%{_bindir}/dul*
%{python3_sitearch}/%{pypi_name}*

#------------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

#remove unneeded git info
rm -f docs/tutorial/.gitignore

%build
%py3_build

%install
%py3_install

rm -rf %{buildroot}/%{python3_sitearch}/docs/tutorial

# Tests require unittest2 to run:
%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16191 |21mr|python-ecdsa-0.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name ecdsa

Summary:	ECDSA cryptographic signature library (pure python)
Name:		python-ecdsa
Version:	0.17.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://github.com/warner/python-ecdsa
Source0:	https://github.com/warner/python-ecdsa/archive/python-ecdsa-%{version}.tar.gz?/python-ecdsa-python-ecdsa-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python)
BuildRequires:	pythonegg(setuptools)

%description
This is an easy-to-use implementation of ECDSA cryptography
(Elliptic Curve Digital Signature Algorithm), implemented purely in Python,
released under the MIT license. With this library, you can quickly create
keypairs (signing key and verifying key), sign messages, and verify the
signatures. The keys and signatures are very short, making them easy to
handle and incorporate into other protocols.

%files
%doc python2/README.md python2/LICENSE
%{python2_sitelib}/%{pypi_name}*

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	ECDSA cryptographic signature library (pure python)
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{pypi_name}
This is an easy-to-use implementation of ECDSA cryptography
(Elliptic Curve Digital Signature Algorithm), implemented purely in Python,
released under the MIT license. With this library, you can quickly create
keypairs (signing key and verifying key), sign messages, and verify the
signatures. The keys and signatures are very short, making them easy to
handle and incorporate into other protocols.

%files -n python3-%{pypi_name}
%doc python3/README.md python3/LICENSE
%{python3_sitelib}/%{pypi_name}*

#----------------------------------------------------------------------------

%prep
%setup -qcn python-ecdsa-python-ecdsa-%{version}
mv python-ecdsa-python-ecdsa-%{version} python2
# Remove extraneous #!
find . -name \*.py | xargs sed -ie '/\/usr\/bin\/env/d'
cp -a python2 python3

%build
pushd python2
%py2_build
popd
pushd python3
%py3_build
popd

%install
pushd python3
%py3_install
popd
pushd python2
%py2_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16192 |21mr|python-edgegrid-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname edgegrid-python

Summary:	Open client authentication protocol for python-requests
Name:		python-edgegrid
Version:	1.2.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:	https://github.com/akamai-open/AkamaiOPEN-edgegrid-python
# pypi_source from Fedora package
Source0:	%{srcname}-%{version}.tar.gz
BuildArch:	noarch

%description
This library implements an Authentication handler for requests
that provides the Akamai Open Edgegrid Authentication scheme.

#----------------------------------------------------------------------------

%package -n python3-edgegrid
Summary:	Open client authentication protocol for python-requests
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
# Dependencies for tests
BuildRequires:	python3dist(requests)

%description -n python3-edgegrid
This library implements an Authentication handler for requests
that provides the Akamai Open Edgegrid Authentication scheme.

%files -n python3-edgegrid
%doc README.rst
%license LICENSE
%{python3_sitelib}/edgegrid_python*.egg-info/
%{python3_sitelib}/edgegrid_python*.pth
%dir %{python3_sitelib}/akamai
%{python3_sitelib}/akamai/edgegrid

#----------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

# Sources currently have some useless shebangs, and rpmlint
# doesn't like that.
# https://github.com/akamai/AkamaiOPEN-edgegrid-python/pull/35
# Let's patch them out for now.
find akamai -name '*.py' -exec sed -r -e 's|^#!/usr/bin/env.*|#|' -i '{}' ';'

%build
%py3_build

%install
%py3_install

%check
# upstream uses custom test runner in this module
%__python3 -m akamai.edgegrid.test.test_edgegrid



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16193 |21mr|python-editables-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Sphinx-generated HTML documentation is not suitable for packaging; see
# RHBZ#2006555 for discussion. Additionally, upstream uses the furo theme,
# which we would have to patch; see RHBZ#1910798.
#
# We could, in theory, generate PDF documentation as a substitute, but this
# would still require it requires python3dist(myst-parser), which is not
# currently packaged–and we are not willing to package it solely for this
# purpose.

Name:           python-editables
Version:        0.3
Release:        1
Summary:        Editable installations
Group:          Development/Python
License:        MIT
URL:            https://github.com/pfmoore/editables
# PyPI source distributions lack tests; use the GitHub archive
Source0:        %{url}/archive/%{version}/editables-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# Most of the dependencies, and all of the pytest options, in tox.ini are for
# coverage analysis and for installation with pip/virtualenv. Rather than
# working around all of these, it is simpler not to use tox for dependency
# generation or testing.
BuildRequires:  python3dist(pytest)

%global common_description %{expand:
A Python library for creating “editable wheels”

This library supports the building of wheels which, when installed, will expose
packages in a local directory on sys.path in “editable mode”. In other words,
changes to the package source will be reflected in the package visible to
Python, without needing a reinstall.}

%description %{common_description}

#-------------------------------------------------------------------
%package -n python3-editables
Summary:        %{summary}
Group:          Development/Python

%description -n python3-editables %{common_description}

%files -n python3-editables -f %{pyproject_files}
# pyproject-rpm-macros handles LICENSE.txt; verify with “rpm -qL -p …”
%doc CHANGELOG.md
%doc README.md

#-------------------------------------------------------------------
%prep
%autosetup -n editables-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files editables


%check
%pytest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16194 |21mr|python-editor-1.0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name python-editor

%{!?upstream_version: %global upstream_version %{version}%{?milestone}}

Name:           python-editor
Version:        1.0.4
Release:        6%{?dist}
Summary:        Programmatically open an editor, capture the result

Group:		Development/Python
License:        ASL 2.0
URL:            https://github.com/fmoo/python-editor
Source:         https://github.com/fmoo/python-editor/archive/%{version}.tar.gz
BuildArch:      noarch

%description
Programmatically open an editor, capture the result.

%package -n python3-editor
Summary:        Programmatically open an editor, capture the result
%{?python_provide:%python_provide python3-editor}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-editor
Programmatically open an editor, capture the result.

%prep
%setup -q -n %{pypi_name}-%{upstream_version}
rm -rf %{pypi_name}.egg-info
# Change shebang according to Python version
sed -i '1s=^#!/usr/bin/\(python\|env python\)[0-9.]*=#!%{__python3}=' editor.py

%build
%py3_build

%install
%py3_install
chmod a+x $RPM_BUILD_ROOT%{python3_sitelib}/editor.py

%files -n python3-editor
%doc README.md
%license LICENSE
%{python3_sitelib}/*.egg-info/
%{python3_sitelib}/editor.py*
%{python3_sitelib}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16195 |21mr|python-egenix-mx-base-3.2.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname egenix-mx-base

Name:		python-%{rname}
Version:	3.2.9
Release:	5
Summary:	Python extensions from eGenix
License:	eGenix.com Public License
Group:		Development/Python
URL:		http://www.egenix.com/files/python/eGenix-mx-Extensions.html
Source0:	http://downloads.egenix.com/python/egenix-mx-base-%{version}.tar.gz
Patch0:		egenix-mx-base-fix_underlinking.diff
Patch1:		mx-3.1.1-lib64.patch
Obsoletes:	%{rname} < %{version}-%{release}
Provides:	egenix-mx-base = %{version}-%{release}
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)

%description
The eGenix mx Extension Series are a collection of
Python extensions written in ANSI C and Python
which provide a large spectrum of useful additions
to everyday Python programming.

The BASE package includes the Open Source subpackages
of the series and is needed by all other add-on
packages of the series.

This software is brought to you by eGenix.com and
distributed under the eGenix.com Public License.

#---------------------------------------------------
%package -n python2-%{rname}
%py2_migration_meta python2-%{rname}
Summary:	Python extensions from eGenix

%description -n python2-%{rname}
The eGenix mx Extension Series are a collection of
Python extensions written in ANSI C and Python
which provide a large spectrum of useful additions
to everyday Python programming.

The BASE package includes the Open Source subpackages
of the series and is needed by all other add-on
packages of the series.

This software is brought to you by eGenix.com and
distributed under the eGenix.com Public License.

%files -n python2-%{rname}
%defattr(-,root,root,0755)
%doc mx/*/Doc/*
%doc README LICENSE COPYRIGHT
%{python2_sitearch}/mx
%{python2_sitearch}/*.egg-info
#------------------------------------------------------

%prep
%setup -q -n %{rname}-%{version}
%patch0 -p0
%patch1 -p1

%build
%py2_build

%install
%__python2 setup.py install --root=%{buildroot} --prefix=%{_prefix} --no-compile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16196 |21mr|python-elementpath-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name elementpath

Summary:	XPath 1.0/2.0 parsers and selectors for ElementTree and lxml
Name:		python-%{pypi_name}
Version:	2.4.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/elementpath
Source0:	https://pypi.io/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
The proposal of this package is to provide XPath 1.0 and 2.0 selectors
for Python's ElementTree XML data structures, both for the standard
ElementTree library and for the lxml.etree library.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	XPath 1.0/2.0 parsers and selectors for ElementTree and lxml
Group:		Development/Python

%description -n python3-%{pypi_name}
The proposal of this package is to provide XPath 1.0 and 2.0 selectors
for Python's ElementTree XML data structures, both for the standard
ElementTree library and for the lxml.etree library.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16197 |21mr|python-enchant-3.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pyenchant

Summary:	Python bindings for Enchant spellchecking library
Name:		python-enchant
Version:	3.0.1
Release:	5
Group:		Development/Python
License:	LGPL
URL:		https://pyenchant.github.io/pyenchant/
Source0:	%{pypi_source}
BuildArch:	noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%define _description %{expand:
PyEnchant is a spellchecking library for Python, based on the excellent Enchant
library.
PyEnchant combines all the functionality of the underlying Enchant library with
the flexibility of Python and a nice "Pythonic" object-oriented interface.
}

%description
%{_description}

#------------------------------------------------------------------------------
%package -n python3-enchant
Summary:	%{summary}
Provides:	PyEnchant = %{EVRD}
Provides:	python3-pyenchant = %{EVRD}
Provides:	python3egg(enchant) = %{version}
Requires:	enchant2 >= 1.5.0

%description -n python3-enchant
%{_description}

%files -n python3-enchant
%license LICENSE.txt
%doc README.rst Changelog
%{python3_sitelib}/enchant
%{python3_sitelib}/*.egg-info

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n pyenchant-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16198 |21mr|python-enmerkar-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name enmerkar

Name:		python-enmerkar
Version:	0.7.1
Release:	1
Summary:	Tools for using Babel with Django

Group:		Development/Python
License:	BSD
URL:		https://github.com/Zegocover/enmerkar
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
This package contains various utilities for integration of Babel into the Django 
web framework:
    A message extraction plugin for Django templates.
    A middleware class that adds the Babel Locale object to requests.
    A set of template tags for date and number formatting.

#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Tools for using Babel with Django
Group:          Development/Python

%description -n python3-%{pypi_name}
This package contains various utilities for integration of Babel into the Django 
web framework:
    A message extraction plugin for Django templates.
    A middleware class that adds the Babel Locale object to requests.
    A set of template tags for date and number formatting.

%files -n python3-%{pypi_name}
%doc CHANGELOG* README*
%license COPYING
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
%{python3_sitelib}/%{pypi_name}

#-----------------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}

# drop bundled egg-info
rm -rf *.egg-info/

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16199 |21mr|python-entrypoints-0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname entrypoints

Summary:	Discover and load entry points from installed packages
Name:		python-%{oname}
Version:	0.3
Release:	3
License:	MIT
Group:		Development/Python
Url:		https://github.com/takluyver/entrypoints
Source0:	http://pypi.python.org/packages/source/e/%{oname}/%{oname}-%{version}.tar.gz
BuildArch:	noarch

%description
The entrypoints module contains functions to find and load entry points.


#----------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	Discover and load entry points from installed packages
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

%description -n python3-%{oname}
The entrypoints module contains functions to find and load entry points.

%files -n python3-%{oname}
%doc LICENSE
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/%{oname}.py*
%{py3_puresitedir}/%{oname}*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16200 |21mr|python-enum34-1.1.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module enum34

Name:           python-%{module}
Version:        1.1.10
Release:        1
Group:          Development/Python
Summary:        Backport of Python 3.4 Enum
License:        BSD
BuildArch:      noarch
URL:            https://pypi.org/project/enum34/
Source0:        https://files.pythonhosted.org/packages/11/c4/2da1f4952ba476677a42f25cd32ab8aaf0e1c0d0e00b89822b835c7e654c/enum34-1.1.10.tar.gz


%description
Python 3.4 introduced official support for enumerations.  This is a
backport of that feature to Python 3.3, 3.2, 3.1, 2.7, 2.5, 2.5, and 2.4.

An enumeration is a set of symbolic names (members) bound to unique,
constant values. Within an enumeration, the members can be compared by
identity, and the enumeration itself can be iterated over.

This module defines two enumeration classes that can be used to define
unique sets of names and values: Enum and IntEnum. It also defines one
decorator, unique, that ensures only unique member names are present
in an enumeration.

#------------------------------------------------

%package -n     python2-%{module}
%py2_migration_meta python2-%{module}
Summary:        Backport of Python 3.4 Enum
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)

Obsoletes:      python-enum34 < 1.0.4-3
Provides:       python-enum34 = %{version}-%{release}

%description -n python2-%{module}
Python 3.4 introduced official support for enumerations.  This is a
backport of that feature to Python 3.3, 3.2, 3.1, 2.7, 2.5, 2.5, and 2.4.

An enumeration is a set of symbolic names (members) bound to unique,
constant values. Within an enumeration, the members can be compared by
identity, and the enumeration itself can be iterated over.

This module defines two enumeration classes that can be used to define
unique sets of names and values: Enum and IntEnum. It also defines one
decorator, unique, that ensures only unique member names are present
in an enumeration.
#------------------------------------------------


%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py2_build

%check
pushd %{buildroot}/%{python2_sitelib}
PYTHONPATH=".:${PYTHONPATH}" %{__python2} enum/test.py
popd


%install
%py2_install

# remove docs from sitelib, we'll put them in doc dir instead
rm -rf %{buildroot}%{python2_sitelib}/enum/{LICENSE,README,doc}

%files -n python2-%{module}
%doc PKG-INFO enum/LICENSE enum/README enum/doc/enum.rst
%{python2_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16201 |21mr|python-etcd-0.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname etcd
%global srcname python-%{modname}

Name:           %{srcname}
Version:        0.4.5
Release:        1
Summary:        A python client library for etcd
Group:          Development/Python
License:        MIT
URL:            http://pypi.python.org/pypi/%{srcname}

# Using the github URL because the tarball file at pypi excludes
# the license file. But github tarball files are named awkwardly.
Source0:        https://github.com/jplana/%{srcname}/archive/%{version}.tar.gz

# Python 3.12 compatibility
# Upstream PR: https://github.com/jplana/python-etcd/pull/282
Patch:          Replace-the-usage-of-assertEquals-unit-test-alias-re.patch

#VCS: git:https://github.com/jplana/python-etcd

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3-dns
BuildRequires:  python3dist(mock)
BuildRequires:  python3dist(urllib3)
BuildRequires:  python3-pyOpenSSL
BuildArch:      noarch


%description
Client library for interacting with an etcd service, providing Python
access to the full etcd REST API.  Includes authentication, accessing
and manipulating shared content, managing cluster members, and leader
election.

#-------------------------------------------------------------------
%package -n python3-%{modname}
Summary:        %summary
Group:          Development/Python
Requires:       python3-dns
Requires:       python3-urllib3

%description -n python3-%{modname}
Client library for interacting with an etcd service, providing Python
access to the full etcd REST API.  Includes authentication, accessing
and manipulating shared content, managing cluster members, and leader
election.

%files -n python3-%{modname}
%doc README.rst
%license LICENSE.txt
%{python3_sitelib}/*

#-------------------------------------------------------------------
%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16202 |21mr|python-ethtool-0.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The tests fail in mock
%bcond_with tests

# Created by pyp2rpm-3.2.2
%global pypi_name ethtool

Name:           python-%{pypi_name}
Version:	0.15
Release:	1
Summary:        Python module to interface with %{pypi_name}
Group:          Development/Python
License:        GPLv2
URL:            https://github.com/fedora-python/%{name}
Source0:	https://files.pythonhosted.org/packages/d2/59/2137996ee2da077e9369ac323830938bfc14083049081d89fdd7f3cf20a5/ethtool-0.15.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

BuildRequires:  libnl3-devel
BuildRequires:  asciidoc

%description
Python bindings for the ethtool kernel interface, that allows querying and
changing of Ethernet card settings, such as speed, port, auto-negotiation, and
PCI locations.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Conflicts:      python2-ethtool < 0.14

%description -n python3-%{pypi_name}
Python 3 bindings for the ethtool kernel interface, that allows querying and
changing of Ethernet card settings, such as speed, port, auto-negotiation, and
PCI locations.


%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info


%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}{%{_bindir},%{_sbindir}}/pifconfig
mv %{buildroot}{%{_bindir},%{_sbindir}}/pethtool

%if %{with tests}
%check
export PYTHONPATH=%{buildroot}%{python3_sitearch}
%{__python3} tests/parse_ifconfig.py -v
%{__python3}  -m unittest discover -v
%endif

%files -n python3-%{pypi_name}
%doc README.rst CHANGES.rst
%license COPYING
%{_sbindir}/pifconfig
%{_sbindir}/pethtool
%{python3_sitearch}/%{pypi_name}.cpython*
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16203 |21mr|python-et_xmlfile-1.0.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name et_xmlfile

Summary:	An implementation of lxml.xmlfile for the standard library
Name:		python-%{pypi_name}
Version:	1.0.1
Release:	13
License:	MIT
Group:		Development/Python
Url:		https://pypi.python.org/pypi/%{pypi_name}
Source0:	https://pypi.python.org/packages/source/e/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	https://bitbucket.org/openpyxl/et_xmlfile/raw/8c7ad6904ebe0ff98c204a3e77d7e78528b10ffe/LICENCE.rst
BuildArch:	noarch

%description
et_xmlfile is a low memory library for creating large XML files. It is based
upon the xmlfile module from lxml with the aim of allowing code to be developed
that will work with both libraries. It was developed initially for the openpyxl
project but is now a standalone module.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	An implementation of lxml.xmlfile for the standard library
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-lxml
BuildRequires:	python3-pathlib2
Requires:	python3-jdcal

%description -n python3-%{pypi_name}
et_xmlfile is a low memory library for creating large XML files. It is based
upon the xmlfile module from lxml with the aim of allowing code to be developed
that will work with both libraries. It was developed initially for the openpyxl
project but is now a standalone module.

%files -n python3-%{pypi_name}
%doc LICENCE.rst
%doc README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{py3_ver}.egg-info/
%{python3_sitelib}/%{pypi_name}/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf *.egg-info
cp -a %{SOURCE1} .

%build
%py3_build

%install
%py3_install

%check
cd et_xmlfile
py.test-%{py3_ver}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16204 |21mr|python-eventlet-0.33.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name eventlet
%{?python_enable_dependency_generator}

Name:		 python-%{pypi_name}
Version:	0.33.1
Release:	1
Group:		Development/Python
Summary:	Highly concurrent networking library
License:	MIT
URL:		http://eventlet.net
Source0:	%{pypi_source}
BuildArch:	noarch

%description
Eventlet is a networking library written in Python. It achieves high
scalability by using non-blocking io while at the same time retaining
high programmer usability by using coroutines to make the non-blocking
io operations appear blocking at the source code level.

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3dist(dnspython) >= 1.15
BuildRequires:	python3dist(greenlet) >= 0.3
BuildRequires:	python3dist(monotonic) >= 1.4
BuildRequires:	python3dist(six) >= 1.10
BuildRequires:	python3-nose
BuildRequires:	python3-pyOpenSSL
BuildArch:	noarch

%description -n python3-%{pypi_name}
Eventlet is a networking library written in Python. It achieves high
scalability by using non-blocking io while at the same time retaining
high programmer usability by using coroutines to make the non-blocking
io operations appear blocking at the source code level.

%files -n python3-%{pypi_name}
%doc README.rst AUTHORS LICENSE NEWS
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/

#----------------------------------------------------------------------

%package -n python3-%{pypi_name}-doc
Summary:	Documentation for python3-%{pypi_name}
Group:		Documentation
BuildRequires:	python3-sphinx
BuildRequires:	python3-zmq

%description -n python3-%{pypi_name}-doc
%{summary}.

%files -n python3-%{pypi_name}-doc
%license LICENSE
%doc html-3

#----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1
rm -vrf *.egg-info
# Remove dependency on enum-compat from setup.py
# enum-compat is not needed for Python 3
sed -i "/'enum-compat',/d" setup.py

%build
%py3_build

# Disable setting up dns (we have no /etc/resolv.conf in mock
export EVENTLET_NO_GREENDNS=yes
export PYTHONPATH=$(pwd)
sphinx-build-%{python3_version} -b html -d doctrees doc html-3

%install
%py3_install
rm -vrf %{buildroot}%{python3_sitelib}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16205 |21mr|python-exabgp-4.2.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname exabgp

Summary:	The BGP swiss army knife of networking (Library)
Name:		python-exabgp
Version:	4.2.11
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/Exa-Networks/exabgp
Source0:	https://github.com/Exa-Networks/%{srcname}/archive/%{version}.tar.gz
BuildArch:	noarch

%description
ExaBGP python module.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	The BGP swiss army knife of networking
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Requires:	python3-six

%description -n python3-%{srcname}
The BGP swiss army knife of networking.

%files -n python3-%{srcname}
%doc README.md
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%package -n exabgp
Summary:	The BGP swiss army knife of networking
Group:		Development/Python
BuildRequires:	systemd-units
Requires:	python3-%{srcname} = %{EVRD}

%description -n exabgp
The BGP swiss army knife of networking (exabgp systemd unit).

%files -n exabgp
%attr(755, root, root) %{_bindir}/exabgp-healthcheck
%attr(755, root, root) %{_sbindir}/exabgp-healthcheck
%attr(755, root, root) %{_sbindir}/%{srcname}
%attr(755, root, root) %{_bindir}/exabgpcli
%attr(755, root, root) %{_bindir}/exabgp-cli
%{_unitdir}/%{srcname}.service
%dir %{_libdir}/%{srcname}
%dir %{_sysconfdir}/%{srcname}
%{_mandir}/man1/*
%{_mandir}/man5/*

%post -n exabgp
%systemd_post %{srcname}.service

%preun -n exabgp
%systemd_preun %{srcname}.service

%postun -n exabgp
%systemd_postun_with_restart %{srcname}.service

#----------------------------------------------------------------------------

%prep
%setup -qn %{srcname}-%{version}
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" etc/exabgp/run/*

%build
%py3_build

%install
%py3_install

# XXX: setup.py installs binaries in /usr/bin but systemd unit expects it to be in /usr/sbin
mkdir -p %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_sbindir}/

# Install health check
install -p -D -m 0755 bin/healthcheck %{buildroot}%{_sbindir}
mv %{buildroot}%{_sbindir}/healthcheck %{buildroot}/%{_sbindir}/%{srcname}-healthcheck

# Install exabgpcli
install -p -D -m 0755 bin/exabgpcli %{buildroot}%{_bindir}

# Configure required directories for the exabgp service
mkdir -p %{buildroot}/%{_sysconfdir}/exabgp
mkdir -p %{buildroot}/%{_libdir}/exabgp
# Install exabgp systemd unit
mkdir -p %{buildroot}/%{_unitdir}
install -p -D -m 0644 etc/systemd/%{srcname}.service %{buildroot}/%{_unitdir}/%{srcname}.service

# Install man pages
mkdir -p %{buildroot}/%{_mandir}/man1
install doc/man/exabgp.1 %{buildroot}/%{_mandir}/man1
mkdir -p %{buildroot}/%{_mandir}/man5
install doc/man/exabgp.conf.5 %{buildroot}/%{_mandir}/man5

# remove examples
rm -rd %{buildroot}%{_prefix}/etc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16206 |21mr|python-execnet-1.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-2.0.0
%global pypi_name execnet

Name:		python-%{pypi_name}
Version:	1.9.0
Release:	1
Summary:	Interact with interpreters across version, platform and network barriers
Group:		Development/Python
License:	MIT
URL:		https://codespeak.net/execnet/
Source0:	https://files.pythonhosted.org/packages/7a/3c/b5ac9fc61e1e559ced3e40bf5b518a4142536b34eb274aa50dff29cb89f5/execnet-1.9.0.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3egg(setuptools-scm)
BuildArch:	noarch


%description
Execnet provides carefully tested means to ad-hoc interact with Python
interpreters across version, platform and network barriers. It provides
a minimal and fast API targetting the following uses:
To distribute tasks to local or remote processes, write and deploy
hybrid multi-process applications and to write scripts to administer
multiple hosts

#-----------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Interact with interpreters across version, platform and network barriers
Group:		Development/Python
Provides:	python3egg(execnet) = %{EVRD}
Provides:	python3dist(execnet) = %{EVRD}
Provides:	python%{py3_ver}dist(execnet) = %{EVRD}

%description -n python3-%{pypi_name}
Execnet provides carefully tested means to ad-hoc interact with Python
interpreters across version, platform and network barriers. It provides
a minimal and fast API targetting the following uses:
To distribute tasks to local or remote processes, write and deploy
hybrid multi-process applications and to write scripts to administer
multiple hosts

%files -n python3-%{pypi_name}
%doc ISSUES.txt README.rst CHANGELOG.rst LICENSE
%{python3_sitelib}/*

#-----------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16207 |21mr|python-extras-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.0.1
%global pypi_name extras

Name:           python-%{pypi_name}
Version:        1.0.0
Release:        1
Group:          Development/Python
Summary:        Useful extra bits for Python - things that should be in the standard library

License:        MIT
URL:            https://github.com/testing-cabal/extras
Source0:        https://pypi.io/packages/source/e/extras/extras-%{version}.tar.gz
BuildArch:      noarch

%description
extras is a set of extensions to the Python standard library, originally
written to make the code within testtools cleaner, but now split out for
general use outside of a testing context.

pydoc extras is your friend. extras currently contains the
following functions:

* try_import

* try_imports

* safe_hasattr

Which do
what their name ...

%package -n     python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        Useful extra bits for Python - things that should be in the standard library
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)

%description -n python2-%{pypi_name}
extras is a set of extensions to the Python standard library, originally
written to make the code within testtools cleaner, but now split out for
general use outside of a testing context.

pydoc extras is your friend. extras currently contains the
following functions:

* try_import

* try_imports

* safe_hasattr

Which do
what their name ...


%package -n     python3-%{pypi_name}
Summary:        Useful extra bits for Python - things that should be in the standard library
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{pypi_name}
extras is a set of extensions to the Python standard library, originally
written to make the code within testtools cleaner, but now split out for
general use outside of a testing context.

pydoc extras is your friend. extras currently contains the
following functions:

* try_import

* try_imports

* safe_hasattr

Which do
what their name ...


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

cp -a . %{py2dir}


%build
pushd %{py2dir}
%py2_build
popd

%py3_build

%install
pushd %{py2dir}
%py2_install
popd

%py3_install


%files -n python2-%{pypi_name}
%doc README.rst LICENSE
%{py2_puresitedir}/%{pypi_name}
%{py2_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16208 |21mr|python-falcon-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name falcon

%bcond_with tests

Summary:	An unladen web framework for building APIs and app backends
Name:		python-%{pypi_name}
Version:	3.0.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://falconframework.org
Source0:	%pypi_source
# downstream-only patch to remove bundled library
Patch0:		0001-Remove-vendored-mimeparse.patch

%description
Falcon is a reliable, high-performance Python web framework for building
large-scale app backends and microservices.  It encourages the REST
architectural style, and tries to do as little as possible while remaining
highly effective.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	An unladen web framework for building APIs and app backends
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-cython
BuildRequires:	python3-mimeparse
%if %{with tests}
# requirements/tests
BuildRequires:	python3-aiofiles
BuildRequires:	python3-cbor2
BuildRequires:	python3-httpx
BuildRequires:	python3-msgpack
BuildRequires:	python3-mujson
BuildRequires:	python3-pytest
BuildRequires:	python3-pytest-asyncio
BuildRequires:	python3-pyyaml
BuildRequires:	python3-requests
BuildRequires:	python3-testtools
BuildRequires:	python3-ujson
BuildRequires:	python3-uvicorn
BuildRequires:	python3-websockets
%endif

%description -n python3-%{pypi_name}
Falcon is a reliable, high-performance Python web framework for building
large-scale app backends and microservices.  It encourages the REST
architectural style, and tries to do as little as possible while remaining
highly effective.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/falcon-bench
%{_bindir}/falcon-inspect-app
%{_bindir}/falcon-print-routes
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
%patch0 -p1

rm -rf %{pypi_name}.egg-info

# related to Patch0
rm -rf falcon/vendor

%build
%py3_build

%install
%py3_install

rm -rf %{buildroot}%{python3_sitearch}/examples

%if %{with tests}
%check
# tests/asgi/test_cythonized_asgi.py fails when cython is installed
%pytest --verbose \
    --ignore tests/asgi/test_cythonized_asgi.py \
    tests
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16209 |21mr|python-fasteners-0.16.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name fasteners

Name:       python-%{pypi_name}
Version:	0.16.3
Release:	1
Group:      Development/Python
Summary:    A python package that provides useful locks
License:    ASL 2.0
URL:        https://github.com/harlowja/fasteners
Source0:	https://files.pythonhosted.org/packages/28/e4/2888d41cdbd405828ccdb9a8536c5919939c2f4c6ab9b2ba63e9bd2570d5/fasteners-0.16.3.tar.gz
BuildArch:  noarch

BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(six)
BuildRequires: python3egg(monotonic) >= 0.1
BuildRequires: python3egg(setuptools)

%description
Fasteners Overview A python package_ that provides useful locks.

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary: A python package that provides useful locks
Group:   Development/Python

%description -n python3-%{pypi_name}
Fasteners Overview A python package_ that provides useful locks.

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info/

#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16210 |21mr|python-feedparser-6.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modname	feedparser

Summary:	Parse RSS and Atom feeds in Python
Name:		python-%{modname}
Version:	6.0.8
Release:	1

Source0:	https://files.pythonhosted.org/packages/96/c2/5c5c266988142936ca81aaa22e5ef3750cce49e10c0ee9d0b9feda167491/feedparser-6.0.8.tar.gz
License:	BSD
URL:		http://code.google.com/p/feedparser/
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:  python3-devel
BuildRequires:	python2-setuptools
BuildRequires:  python3egg(setuptools)
BuildArch:	noarch

%description
Feedparser is the "Universal Feed Parser" library for python, which
handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds

%package -n python3-feedparser
Summary:        Python decorator utilities
Group:          Development/Python
Requires:       python3

%description -n python3-feedparser
Feedparser is the "Universal Feed Parser" library for python, which
handles RSS 0.9x, RSS 1.0, RSS 2.0, CDF, Atom 0.3, and Atom 1.0 feeds

%prep
%autosetup -n %{modname}-%{version}

%install
%py3_install

%files -n python3-feedparser
%defattr(644,root,root,755)
%{py3_puresitedir}/%{modname}*
#% {py3_puresitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16211 |21mr|python-filelock-3.8.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name filelock

Name:           python-%{pypi_name}
Version:        3.8.2
Release:        2
Summary:        A platform independent file lock
Group:          Development/Python
License:        Unlicense
URL:            https://github.com/benediktschmitt/py-filelock
Source0:        %{pypi_source}
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
BuildRequires:  python3dist(toml)

%description
This package contains a single module, which implements a platform independent
file locking mechanism for Python.

The lock includes a lock counter and is thread safe. This means, when locking
the same lock object twice, it will not block.

#-----------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
This package contains a single module, which implements a platform independent
file locking mechanism for Python.

The lock includes a lock counter and is thread safe. This means, when locking
the same lock object twice, it will not block.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}/*
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#-----------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16212 |21mr|python-firebase-admin-5.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module firebase_admin

Summary:	Firebase Admin Python SDK
Name:		python-firebase-admin
Version:	5.0.2
Release:	1
License:	ASLv2
Group:		Development/Python
Url:		https://firebase.google.com/docs/admin/setup/
Source0:	https://files.pythonhosted.org/packages/8f/15/c8543cb77ecb76e5468eeb31d25e6bfb056b4f43913fb05e4d253aca66d7/firebase_admin-5.0.2.tar.gz
Patch1:		firebase-admin-google-api-core-version.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
The Firebase Admin Python SDK enables server-side (backend) Python
developers to integrate Firebase into their services and applications.

%files
%doc README.md
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn firebase_admin-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16213 |21mr|python-fixtures-3.0.0-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name fixtures

%bcond_with tests

Name:           python-%{pypi_name}
Version:        3.0.0
Release:        18%{?dist}
Summary:        Fixtures, reusable state for writing clean tests and more
Group:		Development/Python

License:        ASL 2.0 or BSD
URL:            https://launchpad.net/python-fixtures
Source0:	https://files.pythonhosted.org/packages/84/be/94ecbc3f2487bd14aa8b44852f498086219b7cc0c8250ee65a03e2c63119/fixtures-%{version}.tar.gz
BuildArch:      noarch


%global _description\
Fixtures defines a Python contract for reusable state / support logic,\
primarily for unit testing. Helper and adaption logic is included to\
make it easy to write your own fixtures using the fixtures contract.\
Glue code is provided that makes using fixtures that meet the Fixtures\
contract in unit test compatible test cases easy and straight forward.

%description %_description


%package -n python3-%{pypi_name}
Summary:        Fixtures, reusable state for writing clean tests and more
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-pbr >= 0.11

%if %{with tests}
BuildRequires:  python3-mock
BuildRequires:  python3-testtools >= 0.9.22
%endif

Requires:       python3-testtools >= 0.9.22
Requires:       python3-six
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
Fixtures defines a Python contract for reusable state / support logic,
primarily for unit testing. Helper and adaption logic is included to
make it easy to write your own fixtures using the fixtures contract.
Glue code is provided that makes using fixtures that meet the Fixtures
contract in unit test compatible test cases easy and straight forward.


%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
%{__python3} -m testtools.run fixtures.test_suite
%endif # if with tests


%files -n python3-%{pypi_name}
%doc README GOALS NEWS Apache-2.0 BSD COPYING
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16214 |21mr|python-flake8-3.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude python3egg\\(enum34\\)|python3egg\\(functools32\\)

%define	oname	flake8

Summary:	The modular source code checker: pep8, pyflakes and co
Name:		python-%{oname}
Version:	3.9.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://gitlab.com/pycqa/flake8
Source0:	https://files.pythonhosted.org/packages/9e/47/15b267dfe7e03dca4c4c06e7eadbd55ef4dfd368b13a0bab36d708b14366/flake8-3.9.2.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(configparser)
BuildRequires:	python3egg(entrypoints)
BuildRequires:	python3egg(mccabe)
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(pbr)
BuildRequires:	python3egg(pycodestyle)
BuildRequires:	python3egg(pyflakes)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(wheel)
BuildRequires:	python3egg(typing)
BuildArch:	noarch

%description
Flake8 is a wrapper around these tools:
- PyFlakes
- pycodestyle
- Ned Batchelder's McCabe script
Flake8 runs all the tools by launching the single ``flake8`` command.
It displays the warnings in a per-file, merged output.

#-------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	The modular source code checker: pep8, pyflakes and co
Group:		Development/Python

%description -n python3-%{oname}
Flake8 is a wrapper around these tools:
- PyFlakes
- pycodestyle
- Ned Batchelder's McCabe script
Flake8 runs all the tools by launching the single ``flake8`` command.
It displays the warnings in a per-file, merged output.

%files -n python3-%{oname}
%doc {CONTRIBUTORS.txt,LICENSE,README.rst,docs/source/faq.rst}
%{_bindir}/*
%{python3_sitelib}/%{oname}-%{version}-py*.egg-info
%{python3_sitelib}/%{oname}/

#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

rm -rf *.egg-info

%build
%py3_build

%install
%py3_install
cp %{buildroot}%{_bindir}/flake8 %{buildroot}%{_bindir}/python3-flake8
cp %{buildroot}%{_bindir}/flake8 %{buildroot}%{_bindir}/python-flake8

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16215 |21mr|python-flake8-import-order-0.18.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name flake8-import-order

Summary:	Flake8 and pylama plugin that checks the ordering of import statements
Name:		python-%{pypi_name}
Version:	0.18.1
Release:	1
License:	LGPLv3
Group:		Development/Python
Url:		https://github.com/PyCQA/flake8-import-order
Source0:	%{pypi_source}
BuildArch:	noarch

%description
A flake8 and Pylama plugin that checks the ordering of your imports. It does
not check anything else about the imports. Merely that they are grouped and
ordered correctly.

In general stdlib comes first, then 3rd party, then local packages, and that
each group is individually alphabetized, however this depends on the style
used. Flake8-Import-Order supports a number of styles and is extensible
allowing for custom styles.

This plugin was originally developed to match the style preferences of the
cryptography project, with this style remaining the default.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Flake8 and pylama plugin that checks the ordering of import statements
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(flake8)
BuildRequires:	python3dist(pycodestyle)
BuildRequires:	python3dist(pylama)
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(setuptools)
Requires:	python3dist(pycodestyle)
Requires:	python3dist(setuptools)

%description -n python3-%{pypi_name}
A flake8 and Pylama plugin that checks the ordering of your imports. It does
not check anything else about the imports. Merely that they are grouped and
ordered correctly.

In general stdlib comes first, then 3rd party, then local packages, and that
each group is individually alphabetized, however this depends on the style
used. Flake8-Import-Order supports a number of styles and is extensible
allowing for custom styles.

This plugin was originally developed to match the style preferences of the
cryptography project, with this style remaining the default.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/flake8_import_order
%{python3_sitelib}/flake8_import_order-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf flake8_import_order.egg-info/

%build
%py3_build

%install
%py3_install

%check
%__python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16216 |21mr|python-flask-2.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	flask
%define	soname	Flask

Name:		python-%{oname}
Version:	2.2.2
Release:	1
Summary:	A microframework based on Werkzeug, Jinja2 and good intentions
Group:		Development/Python
License:	BSD
Url:		http://github.com/mitsuhiko/flask/
Source0:	https://pypi.python.org/packages/source/F/%{soname}/%{soname}-%{version}.tar.gz
BuildArch:	noarch

%description
Flask
-----
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good
intentions. 

#-------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	A microframework based on Werkzeug, Jinja2 and good intentions
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(click)
BuildRequires:	python3egg(itsdangerous) >= 2.0.0
BuildRequires:	python3egg(jinja2) >= 3.0
BuildRequires:	python3egg(werkzeug) >= 2.2
Requires:	python3egg(itsdangerous) >= 2.0.0
Requires:	python3egg(jinja2) >= 3.0
Requires:	python3egg(werkzeug) >= 2.0

%description -n python3-%{oname}
Flask
-----
Flask is a microframework for Python based on Werkzeug, Jinja 2 and good
intentions.

%files -n python3-%{oname}
%doc docs examples
%{_bindir}/*
%{python3_sitelib}/flask
%{python3_sitelib}/Flask*.egg-info
#-------------------------------------------------------------------

%prep
%setup -q -n %{soname}-%{version}

%build
%py3_build

%install
%py3_install

# clean
find %{buildroot} -size 0 -delete


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16217 |21mr|python-flask-restful-0.3.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	srcname	flask-restful

#some test need network connection
%bcond_with tests

Name:		python-%{srcname}
Version:	0.3.9
Release:	2
Summary:	Simple framework for creating REST APIs
Group:		Development/Python
License:	BSD
Url:		https://github.com/flask-restful/flask-restful/
Source0:	https://github.com/flask-restful/flask-restful/archive/v%{version}.tar.gz?/%{srcname}-%{version}.tar.gz
# From flask 2.1.0 the redirects are now relative
# Sent upstream: https://github.com/flask-restful/flask-restful/pull/942
Patch0:		fix-relative-redirect.patch
BuildArch:	noarch

%description
Flask-RESTful is an extension for Flask that adds support for quickly building REST APIs. 
It is a lightweight abstraction that works with your existing ORM/libraries. 
Flask-RESTful encourages best practices with minimal setup. If you are familiar with Flask, 
Flask-RESTful should be easy to pick up.

#-------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	Simple framework for creating REST APIs
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(pytz)
BuildRequires:	python3egg(flask)

%if %{with tests}
BuildRequires:	python3egg(aniso8601)
BuildRequires:	python3egg(blinker)
BuildRequires:	python3egg(multidict)
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(nosexcover)
BuildRequires:	python3egg(werkzeug)
%endif


%description -n python3-%{srcname}
Flask-RESTful is an extension for Flask that adds support for quickly building REST APIs. 
It is a lightweight abstraction that works with your existing ORM/libraries. 
Flask-RESTful encourages best practices with minimal setup. If you are familiar with Flask, 
Flask-RESTful should be easy to pick up.

%files -n python3-%{srcname}
%doc docs examples
#%%{_bindir}/*
%{python3_sitelib}/flask_restful
%{python3_sitelib}/Flask_RESTful*.egg-info
#-------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
#some test need network connection
%if %{with tests}
%__python3 setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16218 |21mr|python-flexmock-0.10.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-flexmock
Version:	0.10.7
Release:	1
Summary:        Testing library that makes it easy to create mocks, stubs and fakes
Group:		Development/Python
License:        BSD
URL:            https://flexmock.readthedocs.org
Source0:	https://files.pythonhosted.org/packages/db/0a/90bbc8b570d837afbb9fa3c8612bbcb8a6999f7dbdd2ab997d329de82efe/flexmock-0.10.7.tar.gz

BuildArch:      noarch

%global _description\
Flexmock is a testing library for Python that makes it easy to create mocks,\
stubs and fakes. The API is inspired by a Ruby library of the same name, but\
Python flexmock is not a clone of the Ruby version. It omits a number of\
redundancies in the Ruby flexmock API, alters some defaults, and introduces\
a number of Python-only features.\

%description %_description


%package -n python3-flexmock
Summary:        %{summary}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

# for testing with various runners (twisted contains trial)
BuildRequires:  python3-nose
BuildRequires:  python3-pytest
BuildRequires:  python3-twisted

%{?python_provide:%python_provide python3-flexmock}

%description -n python3-flexmock %_description

%prep
%setup -q -n flexmock-%{version}

%build
%py3_build

%install
%py3_install

%check
PYEXECS=%{__python3} ./tests/run_tests.sh

%files -n python3-flexmock
%license LICENSE
%doc README.rst CHANGELOG docs/
%{python3_sitelib}/flexmock*
%{python3_sitelib}/__pycache__/flexmock*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16219 |21mr|python-flit-3.7.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# circular build dependency on requests-download and testpath
%bcond_with tests

%global srcname flit

Name:		python-%{srcname}
Version:	3.7.1
Release:	3
Summary:	Simplified packaging of Python modules
Group:		Development/Python
# ./flit/log.py under ASL 2.0 license
# ./flit/upload.py under PSF license
License:	BSD and ASL 2.0 and Python

URL:		https://flit.readthedocs.io/en/latest/
Source0:	https://github.com/takluyver/flit/archive/%{version}/%{srcname}-%{version}.tar.gz

# For the tests
Source1:	https://pypi.org/pypi?%3Aaction=list_classifiers#/classifiers.lst

BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	pyproject-rpm-macros >= 0-40
BuildRequires:	python3-pip

# Runtime deps needed to build self
BuildRequires:	python3-tomli

%if %{with tests}
# Runtime deps, others
BuildRequires:	python3-requests
BuildRequires:	python3-docutils
BuildRequires:	python3-pygments
BuildRequires:	python3-tomli-w

# Test deps
BuildRequires:	/usr/bin/python
BuildRequires:	python3-pytest
BuildRequires:	python3-responses

# Test deps that require flit to build:
BuildRequires:	python3-testpath
BuildRequires:	python3-requests-download
%endif

%global _description %{expand:
Flit is a simple way to put Python packages and modules on PyPI.

Flit only creates packages in the new 'wheel' format. People using older
versions of pip (<1.5) or easy_install will not be able to install them.

Flit packages a single importable module or package at a time, using the import
name as the name on PyPI. All sub-packages and data files within a package are
included automatically.

Flit requires Python 3, but you can use it to distribute modules for Python 2,
so long as they can be imported on Python 3.}

%description %_description

#------------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python
Requires:	python3-%{srcname}-core = %{version}-%{release}

# https://pypi.python.org/pypi/tornado
# ./flit/log.py unknown version
Provides:	bundled(python3dist(tornado))

# soft dependency: (WARNING) Cannot analyze code. Pygments package not found.
Recommends:	python3-pygments

%description -n python3-%{srcname} %_description

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/flit-*.dist-info/
%{python3_sitelib}/flit/
%{_bindir}/flit

#------------------------------------------------------------------------------

%package -n python3-%{srcname}-core
Summary:	PEP 517 build backend for packages using Flit
Group:		Development/Python
Conflicts:	python3-%{srcname} < 2.1.0-2
# We manually specify this, because it's bundled upstream and not in the metadata
Requires:       python3-tomli

%description -n python3-%{srcname}-core
This provides a PEP 517 build backend for packages using Flit.
The only public interface is the API specified by PEP 517,
at flit_core.buildapi.

%files -n python3-%{srcname}-core
%license LICENSE
%doc flit_core/README.rst
%{python3_sitelib}/flit_core-*.dist-info/
%{python3_sitelib}/flit_core/

#------------------------------------------------------------------------------
%prep
%autosetup -p1 -n %{srcname}-%{version}

# Remove vendored tomli that flit_core includes to solve the circular dependency.
# (flit_core requires tomli, but flit_core is needed to build tomli).
# We don't use this, as python3-tomli already has its own bootstrap bcond
# to build without flit_core.
#
# flit's tests already require tomli, so we're pulling it in at buildtime anyways.
sed -i 's|from \.vendor import tomli|import tomli|' flit_core/flit_core/config.py
rm -rf flit_core/flit_core/vendor

%build
export FLIT_NO_NETWORK=1

# first, build flit_core with self
cd flit_core
%pyproject_wheel
cd -

# build of the main flit (needs flit_core)
export PYTHONPATH=$PWD:$PWD/flit_core
%pyproject_wheel

%install
%pyproject_install

# don't ship tests in flit_core package
# if upstream decides to change the installation, it can be removed:
# https://github.com/takluyver/flit/issues/403
rm -r %{buildroot}%{python3_sitelib}/flit_core/tests/

%if %{with tests}
%check
# flit attempts to download list of classifiers from PyPI, but not if it's cached
# test_invalid_classifier fails without the list
mkdir -p fake_cache/flit
cp %{SOURCE1} fake_cache/flit
export XDG_CACHE_HOME=$PWD/fake_cache

%pytest
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16220 |21mr|python-fontmath-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name fontmath

Name:           python-%{pypi_name}
Version:        0.9.1
Release:        1
Summary:        A set of objects for performing math operations on font data
Group:          Development/Python
License:        MIT
URL:            https://github.com/typesupply/fontMath
Source0:        https://files.pythonhosted.org/packages/source/f/%{pypi_name}/fontMath-%{version}.zip
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(fonttools)
BuildRequires:  python3dist(pytest) >= 3.0.3
BuildRequires:  python3dist(pytest-runner)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
A set of objects for performing math operations on font data.

#-----------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
A set of objects for performing math operations on font data.

%files -n python3-%{pypi_name}
%license License.txt
%{python3_sitelib}/fontMath/
%{python3_sitelib}/fontMath-%{version}-py%{python3_version}.egg-info

#-----------------------------------------------------------

%prep
%autosetup -n fontMath-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16221 |21mr|python-fontparts-0.10.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name fontparts
%global srcname fontParts

Name:           python-%{pypi_name}
Version:        0.10.4
Release:        1
Summary:        An API for interacting with the parts of fonts during the font development process
Group:          Development/Python
License:        OpenSource, MIT
URL:            https://github.com/robofab-developers/fontParts
Source0:        %{pypi_source %srcname %version zip}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(defcon) >= 0.6.0
BuildRequires:  python3dist(fontmath) >= 0.4.8
BuildRequires:  python3dist(fonttools) >= 3.32.0
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
#for tests
BuildRequires:  python3dist(booleanoperations)
BuildRequires:  python3dist(fontpens)
BuildRequires:  python3dist(fs) >= 2.1.2
BuildRequires:  python3dist(unicodedata2)
BuildRequires:  python3dist(lxml)
BuildRequires:  python3dist(future)
BuildRequires:  python3dist(pytz)
BuildRequires:  python3dist(appdirs)

%description
An API for interacting with the parts of fonts during the font development
process. FontParts is the replacement for RoboFab.

#------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
An API for interacting with the parts of fonts during the font development
process. FontParts is the replacement for RoboFab.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/fontParts/
%{python3_sitelib}/fontParts-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------------

%prep
%autosetup -n fontParts-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16222 |21mr|python-fontpens-0.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name fontpens

%bcond_with tests

Name:           python-%{pypi_name}
Version:        0.2.4
Release:        1
Summary:        A collection of classes implementing the pen protocol for manipulating glyphs
Group:          Development/Python
License:        OpenSource, BSD-style
URL:            https://github.com/robofab-developers/fontPens
Source0:        https://pypi.io/packages/source/f/%{pypi_name}/fontPens-%{version}.zip
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(fonttools) >= 3.20.0
%if %{with tests}
BuildRequires:  python3dist(pytest)
%endif
BuildRequires:  python3dist(setuptools)

%description
A collection of classes implementing the pen protocol for manipulating
glyphs.

#--------------------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3dist(fonttools) >= 3.20.0

%description -n python3-%{pypi_name}
A collection of classes implementing the pen protocol for manipulating
glyphs.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/fontPens/
%{python3_sitelib}/fontPens-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------
%prep
%autosetup -n fontPens-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
%{__python3} setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16223 |21mr|python-forbiddenfruit-0.1.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define module    forbiddenfruit

Summary:        Patch python built-in objects
Name:           python-%{module}
Version:        0.1.4
Release:        3
License:        GPLv3+
Group:          Development/Python
Url:            https://github.com/clarete/%{module}
Source0:        https://github.com/clarete/%{module}/archive/refs/tags/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description
Patch python built-in objects.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:  Patch python built-in objects
Group:    Development/Python

%description -n python3-%{module}
Patch python built-in objects.

%files -n python3-%{module}
%doc COPYING README.md
%dir %{py3_puresitedir}/%{module}-%{version}-*.egg-info/
%dir %{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-*.egg-info/*
%{py3_puresitedir}/%{module}/*

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build

%install
PYTHONDONTWRITEBYTECODE=1 python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16224 |21mr|python-formencode-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname formencode
%define installname FormEncode

Summary:       Python module to validate and generate form
Name:          python-%{srcname}
Version:       2.0.1
Release:       1
Url:           http://formencode.org
Source0:       %{pypi_source %{installname} %{version}}
Group:         Development/Python
License:       BSD
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(setuptools-scm-git-archive)
BuildRequires: python3egg(setuptools-scm)
BuildArch:     noarch


%description
FormEncode is a validation and form generation package. The validation can be
used separately from the form generation. The validation works on compound
data structures, with all parts being nestable. It is separate from HTTP or
any other input mechanism.

#--------------------------------------------------------------------------
%package -n python3-formencode
Summary:	HTML form validation, generation, and convertion package
Group:		Development/Python
Requires:	python3-setuptools
Requires:	python3-formencode-langpacks

%description -n python3-formencode
FormEncode validates and converts nested structures. It allows for a.
declarative form of defining the validation, and decoupled processes.
for filling and generating forms.
This package contains the python3 version of the module.

%files
%doc docs
%license LICENSE.txt
%{py3_puresitedir}/formencode/
%{py3_puresitedir}/%{installname}-%{version}-py%{python3_version}.egg-info/

#--------------------------------------------------------------------------

%package -n python3-formencode-langpacks
Summary:	Locale files for the python-formencode library
Group:		Development/Python

%description -n python3-formencode-langpacks
The FormEncode library validates and converts nested structures.  This package
contains the locale files for localizing the message strings in code within the
library.

%files -n python3-formencode-langpacks -f %{installname}.lang

#--------------------------------------------------------------------------

%prep
%setup -q -n %{installname}-%{version}

%build
%py3_build

%install
%py3_install

rm -rf %{buildroot}%{py3_puresitedir}/docs/
# bah.  setuptools resource badness
# Luckily ian bicking wrote the lookup for this to correctly fallback on the
# system catalog
for file in formencode/i18n/* ; do
    if [ -d $file ] ; then
        if [ -e $file/LC_MESSAGES/%{installname}.mo ] ; then
            mkdir -p %{buildroot}%{_datadir}/locale/`basename $file`/LC_MESSAGES/
            mv $file/LC_MESSAGES/%{installname}.mo %{buildroot}%{_datadir}/locale/`basename $file`/LC_MESSAGES/
        fi
    fi
done

rm -rf %{buildroot}%{py3_puresitedir}/formencode/i18n
mkdir -p %{buildroot}%{_defaultlicensedir}/%{name}
mv %{buildroot}/usr/LICENSE.txt %{buildroot}%{_defaultlicensedir}/%{name}/

%find_lang %{installname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16225 |21mr|python-freezegun-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	freezegun

Name:		python-%{module}
Version:	1.1.0
Release:	1
Summary:	Let your Python tests travel through time
Group:		Development/Python
License:	ASL 2.0
Url:		https://github.com/spulec/freezegun
Source0:	https://pypi.python.org/packages/source/f/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch


%description
FreezeGun is a library that allows your python tests
to travel through time by mocking the datetime module.

#------------------------------------------------------------------
%package -n python3-%{module}
Summary:Let your Python3 tests travel through time
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
FreezeGun is a library that allows your python3 tests
to travel through time by mocking the datetime module.

%files -n python3-%{module}
%doc *.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16226 |21mr|python-fs-2.4.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name fs

%bcond_with test

Name:           python-%{pypi_name}
Version:        2.4.15
Release:        1
Summary:        Python's filesystem abstraction layer
Group:          Development/Python
License:        MIT
URL:            https://www.pyfilesystem.org/
Source0:        https://files.pythonhosted.org/packages/source/f/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  locales
BuildRequires:  python3-devel
BuildRequires:  python3dist(psutil)
BuildRequires:  python3dist(setuptools)
%if %{with test}
BuildRequires:  python3dist(appdirs)
BuildRequires:  python3dist(mock)
BuildRequires:  python3dist(nose)
BuildRequires:  python3dist(pyftpdlib)
BuildRequires:  python3dist(pytz)
BuildRequires:  python3dist(pysendfile)
BuildRequires:  python3dist(parameterized)
BuildRequires:  python3dist(six)
BuildRequires:  python3dist(pytest)
%endif
%description
Work with files and directories in archives, memory, the cloud etc. as easily
as your local drive. Write code now, decide later where the data will be
stored; unit test without writing real files; upload files to the cloud
without learning a new API; sandbox your file writing code; etc.

#--------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Python's filesystem abstraction layer
Group:          Development/Python

%description -n python3-%{pypi_name}
Work with files and directories in archives, memory, the cloud etc. as easily
as your local drive. Write code now, decide later where the data will be
stored; unit test without writing real files; upload files to the cloud
without learning a new API; sandbox your file writing code; etc.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf *.egg-info

perl -pi -e 's/~=/>=/g' setup.py

%build
%py3_build

%install
%py3_install

%check
# abf build test fail, local build tests success
%if %{with test}
export LC_ALL=C.UTF-8
%pytest
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16227 |21mr|python-funcparserlib-0.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname funcparserlib

Name:		python-%{srcname}
Version:	0.3.6
Release:	1
Summary:	Recursive descent parsing library based on functional combinators
Group:		Development/Python
License:	MIT
URL:		https://github.com/vlasovskikh/funcparserlib
Source0:	https://pypi.python.org/packages/source/f/%{srcname}/%{srcname}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(nose)

%description
Parser combinators are just higher-order functions that take parsers as their
arguments and return them as result values. Parser combinators are:

    First-class values
    Extremely composable
    Tend to make the code quite compact
    Resemble the readable notation of xBNF grammars.

#----------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	Recursive descent parsing library based on functional combinators
Group:		Development/Python

%description -n python3-%{srcname}
Parser combinators are just higher-order functions that take parsers as their
arguments and return them as result values. Parser combinators are:

    First-class values
    Extremely composable
    Tend to make the code quite compact
    Resemble the readable notation of xBNF grammars.

%files -n python3-%{srcname}
%doc PKG-INFO LICENSE README CHANGES
%{python3_sitelib}/%{srcname}*
%exclude %{python3_sitelib}/%{srcname}/tests

#----------------------------------------------------------------
%prep
%setup -q -n %{srcname}-%{version}

find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install

%check
nosetests-%{python3_version} build/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16228 |21mr|python-funcsigs-1.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module funcsigs

Name:           python-funcsigs
Version:        1.0.2
Release:        4
Summary:        Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+
Group:          Development/Python
License:        ASL
URL:            http://funcsigs.readthedocs.org/
Source0:        http://pypi.python.org/packages/source/f/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(python2)
BuildRequires:  python3-setuptools
BuildRequires:  python2-setuptools

%description
funcsigs is a backport of the PEP 362 function signature features from
Python 3.3’s inspect module.

%package -n python3-funcsigs
Summary:        Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+
Group:          Development/Python

%description -n python3-funcsigs
funcsigs is a backport of the PEP 362 function signature features from
Python 3.3’s inspect module.

%files -n python3-funcsigs
%doc docs/ README.rst PKG-INFO
%{py3_puresitedir}/*

%package -n python2-funcsigs
%py2_migration_meta python2-funcsigs
Summary:        Python function signatures from PEP362 for Python 2.6, 2.7 and 3.2+
Group:          Development/Python

%description -n python2-funcsigs
funcsigs is a backport of the PEP 362 function signature features from
Python 3.3’s inspect module.

%files -n python2-funcsigs
%doc docs/ README.rst PKG-INFO
%{py2_puresitedir}/*

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build
%py2_build

%install
%py3_install
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16229 |21mr|python-functools32-3.2.3_2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	functools32
%define	oversion	3.2.3-2

Name:		python-%{oname}
Version:	3.2.3_2
Release:	5
Summary:	Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy
Source0:	http://pypi.python.org/packages/source/f/%{oname}/%{oname}-%{oversion}.tar.gz
License:	PSF license
Group:		Development/Python
Url:		https://github.com/MiCHiLU/python-functools32
BuildRequires:	python2-devel
BuildRequires:	python2-setuptools
BuildArch:	noarch

%description
This is a backport of the functools standard library module from
Python 3.2.3 for use on Python 2.7 and PyPy. It includes
new features `lru_cache` (Least-recently-used cache decorator).

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Backport of the functools module from Python 3.2.3 for use on 2.7 and PyPy

%description -n python2-%{oname}
This is a backport of the functools standard library module from
Python 3.2.3 for use on Python 2.7 and PyPy. It includes
new features `lru_cache` (Least-recently-used cache decorator).


%prep
%setup -qn %{oname}-%{oversion}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot}

%files -n python2-%{oname}
%doc ChangeLog
%doc LICENSE
%{py2_puresitedir}/functools32/*.py*
%{py2_puresitedir}/functools32*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16230 |21mr|python-fuse-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Python binding for Fuse (Filesystem in Userspace)
Name:		python-fuse
Version:	1.0.4
Release:	1
Epoch:		1
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/libfuse/python-fuse
Source0:	https://github.com/libfuse/python-fuse/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
Requires:	fuse

%description
Python binding for Fuse (Filesystem in Userspace).

#----------------------------------------------------------------------------

%package -n python2-fuse
%py2_migration_meta python2-fuse
Summary:	Python 2 binding for Fuse (Filesystem in Userspace)
Group:		Development/Python

%description -n python2-fuse
Python binding for Fuse (Filesystem in Userspace).

%files -n python2-fuse
%doc AUTHORS COPYING README.* FAQ
%{python2_sitearch}/*

#----------------------------------------------------------------------------
%package -n python3-fuse
Summary:	Python 3 binding for Fuse (Filesystem in Userspace)
Group:		Development/Python

%description -n python3-fuse
Python binding for Fuse (Filesystem in Userspace).

%files -n python3-fuse
%doc AUTHORS COPYING README.* FAQ
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build
export PYTHON=%__python2
%py2_build

%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16231 |21mr|python-future-0.18.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module future

Summary:	Clean single-source support for Python 3 and 2
Name:		python-future
Version:	0.18.2
Release:	2
License:	MIT
Group:		Development/Python
Source0:	https://files.pythonhosted.org/packages/45/0b/38b06fd9b92dc2b68d58b75f900e97884c45bedd2ff83203d933cf5851c9/future-0.18.2.tar.gz
BuildRequires:	pkgconfig(python)
BuildArch:	noarch

%description
Easy, safe support for Python 3/2 compatibility.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Clean single-source support for Python 3 and 2
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)

%description -n python2-%{module}
Easy, safe support for Python 2 compatibility.

%files -n python2-%{module}
%doc README.rst docs/_themes/LICENSE LICENSE.txt
%{_bindir}/python2-futurize
%{_bindir}/python2-pasteurize
%{python2_sitelib}/%{module}-%{version}-py?.?.egg-info
%{python2_sitelib}/%{module}
%{python2_sitelib}/past
%{python2_sitelib}/libfuturize
%{python2_sitelib}/libpasteurize
%{python2_sitelib}/builtins
%{python2_sitelib}/copyreg
%{python2_sitelib}/html
%{python2_sitelib}/http
%{python2_sitelib}/queue
%{python2_sitelib}/reprlib
%{python2_sitelib}/socketserver
%{python2_sitelib}/tkinter
%{python2_sitelib}/_dummy_thread
%{python2_sitelib}/_markupbase
%{python2_sitelib}/_thread
%{python2_sitelib}/winreg
%{python2_sitelib}/xmlrpc

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Clean single-source support for Python 3 and 2
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Easy, safe support for Python 3/2 compatibility.

%files -n python3-%{module}
%doc README.rst docs/_themes/LICENSE LICENSE.txt
%{_bindir}/futurize
%{_bindir}/pasteurize
%{python3_sitelib}/%{module}-%{version}-py?.?.egg-info
%{python3_sitelib}/%{module}
%{python3_sitelib}/past
%{python3_sitelib}/libfuturize
%{python3_sitelib}/libpasteurize

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
# Remove bundled egg-info
rm -rf %{module}.egg-info

cp -a . %{py3dir}

find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py2_build
pushd %{py3dir}
%py3_build
popd

%install
%py2_install
mv %{buildroot}%{_bindir}/futurize %{buildroot}%{_bindir}/python2-futurize
mv %{buildroot}%{_bindir}/pasteurize %{buildroot}%{_bindir}/python2-pasteurize
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install (and we want the python2 version
# to be the default for now).
pushd %{py3dir}
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16232 |21mr|python-future-fstrings-1.2.0-0.gite109c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit e109c459bf7c31022fc47ead0eabec1d8f4c04af
%define commit_short %(echo %commit | head -c 5)
%define debug_package %nil

Summary: A backport of fstrings to Python < 3.6
Name: python-future-fstrings
Version: 1.2.0
Release: 0.git%{commit_short}.1
License: MIT
Group: Development/Python
Url: https://github.com/asottile/future-fstrings
Source0: https://github.com/asottile/future-fstrings/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz

BuildRequires: python3egg(setuptools)

%description
%{summary}

#----------------------------------------

%package -n python3-future-fstrings
Summary: %{summary}
Group: Development/Python

%description -n python3-future-fstrings
%{summary}

%files -n python3-future-fstrings
%{python3_sitelib}/*
%{_bindir}/future-fstrings-show

#----------------------------------------

%prep
%setup -q -n future-fstrings-%{commit}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16233 |21mr|python-futures-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name futures

Name:           python-%{upstream_name}
Version:	3.3.0
Release:	1
Summary:        Backport of the concurrent.futures package from Python 3.2
Group:          Development/Python
License:        BSD
URL:            https://pypi.python.org/pypi/futures
Source0:	https://files.pythonhosted.org/packages/47/04/5fc6c74ad114032cd2c544c575bffc17582295e9cd6a851d6026ab4b2c00/futures-3.3.0.tar.gz
BuildArch:      noarch
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

%description
The concurrent.futures module provides a high-level interface for
asynchronously executing callables.

%package -n python2-%{upstream_name}
%py2_migration_meta python2-%{upstream_name}
Summary:        Backport of the concurrent.futures package from Python 3.2

%description -n python2-%{upstream_name}
The concurrent.futures module provides a high-level interface for
asynchronously executing callables.


%prep
%setup -q -n %{upstream_name}-%{version}

%build
CFLAGS="%{optflags}" python2 setup.py build

%install
python2 setup.py install --skip-build --root %{buildroot}

%files -n python2-%{upstream_name}
%{py2_puresitedir}/concurrent
%{py2_puresitedir}/futures-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16234 |21mr|python-gabbi-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#tests disabled, some tests fail on mock build
%bcond_with test

%global pypi_name gabbi
%global pypi gabbi-run

Name:		python-%{pypi_name}
Version:	2.3.0
Release:	1
Summary:	Declarative HTTP testing library
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/cdent/gabbi
Source0:	https://pypi.io/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Gabbi is a tool for running HTTP tests where requests and responses
are represented in a declarative YAML-based form.

#-------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Declarative HTTP testing library
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(pbr)
BuildRequires:	python3egg(wheel)
BuildRequires:	python3egg(httplib2)
BuildRequires:	python3egg(wsgi-intercept)
BuildRequires:	python3egg(colorama)
BuildRequires:	python3egg(jsonpath-rw-ext)

Requires:	python3-setuptools
Requires:	python3-six
Requires:	python3-pbr
Requires:	python3-wsgi_intercept
Requires:	python3-colorama
Requires:	python3-jsonpath-rw-ext
Requires:	python3-PyYAML
Requires:	python3-urllib3

%if %{with tests}
# test requirements
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(testrepository)
BuildRequires:	python3egg(coverage)
BuildRequires:	python3egg(certifi)
BuildRequires:	python3egg(urllib3)
BuildRequires:	python3egg(pyyaml)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(hacking)
BuildRequires:	python3egg(pytest-cov)
BuildRequires:	python3egg(stestr)
%endif

%description -n python3-%{pypi_name}
Gabbi is a tool for running HTTP tests where requests and responses
are represented in a declarative YAML-based form.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/%{pypi}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%exclude %{python3_sitelib}/gabbi/tests/gabbits_intercept/horse

#-------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
# some tests are broken so bypassing tests
export GABBI_SKIP_NETWORK=true
%__python3 setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16235 |21mr|python-gevent-21.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname gevent
%global optflags %(echo %{optflags} -I%{_includedir}/libev)

Name:		python-%{srcname}
Version:	21.8.0
Release:	1
Summary:	A coroutine-based Python networking library
License:	MIT
Group:		Development/Python
Url:		http://www.gevent.org/
Source0:	https://files.pythonhosted.org/packages/33/2e/49317db0bbd846720ce15fd43641b17a208e6466c582ecbe845e35092ea2/gevent-21.8.0.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
# Needed for tests
BuildRequires:	lsof
BuildRequires:	c-ares-devel
BuildRequires:	libev-devel
BuildRequires:	python3-cython
BuildRequires:	python3-greenlet

%description
Gevent is a coroutine-based Python networking library that uses greenlet to
provide a high-level synchronous API on top of the libevent event loop.

#===========================================================================
%package -n python3-%{srcname}
Summary: A coroutine-based Python3 networking library
Requires:   python3egg(greenlet)

%description -n python3-%{srcname}
Gevent is a coroutine-based Python3 networking library that uses greenlet to
provide a high-level synchronous API on top of the libevent event loop.

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitearch}/%{srcname}*
#===========================================================================
%prep
%setup -q -n %{srcname}-%{version}
# Remove bundled libraries
rm -r deps
# Upstream intentionally includes C extension sources in the built package,
# because... reasons (PyPy I think?) however we do not want that. Sources will
# go into debuginfo as normal.
sed -i -e 's/include_package_data=True/include_package_data=False/' setup.py

# Force re-cythonizing the sources
rm src/gevent/*.c src/gevent/libev/_*.c

%build
export LIBEV_EMBED=0
export CARES_EMBED=0
export GEVENT_NO_CFFI_BUILD=1
# Build Python 3 first to use Python 3 Cython
%py3_build

%install
export LIBEV_EMBED=0
export CARES_EMBED=0
export GEVENT_NO_CFFI_BUILD=1
%py3_install
rm -fv %{buildroot}%{python3_sitearch}/%{srcname}/_*2.py
rm -fv %{buildroot}%{python3_sitearch}/%{srcname}/__pycache__/_*2.*
find %{buildroot} -name '.buildinfo' -delete
# Correct the permissions.
find %{buildroot} -name '*.so' -exec chmod 755 {} ';'

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16236 |21mr|python-gitdb-4.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name gitdb
%define debug_package	%{nil}

Name:		python-%{pypi_name}
Version:	4.0.7
Release:	1
Summary:	Git Object Database
License:	BSD
Group:		Development/Python
Url:		https://pypi.python.org/pypi/gitdb
Source0:	https://pypi.io/packages/source/g/gitdb/gitdb-%{version}.tar.gz

%description
GitDB is a Python git object database.

#-----------------------------------------------------------

%package -n python3-gitdb
Summary:	A pure-Python 3 git object database
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(async)
BuildRequires:	python3egg(smmap)
#gitdb2 project its a mirror if gitdb
Provides:	python3egg(gitdb2) = %{EVRD}
Provides:	python3-gitdb2 = %{EVRD}
Requires:	python3egg(async)
BuildArch:	noarch

%description -n python3-gitdb
GitDB allows you to access bare git repositories for reading and writing. It
aims at allowing full access to loose objects as well as packs with performance
and scalability in mind. It operates exclusively on streams, allowing to
operate on large objects with a small memory footprint.

This is the Python 3 version of the package.

%files -n python3-gitdb
%doc AUTHORS LICENSE
%{python3_sitelib}/gitdb*

#-----------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16237 |21mr|python-gitpython-3.1.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name GitPython

Name:		python-gitpython
Version:	3.1.24
Release:	1
Summary:	Python Git library
License:	BSD
Group:		Development/Python
Url:		http://pypi.python.org/pypi/GitPython/
Source0:	https://pypi.io/packages/source/G/GitPython/GitPython-%{version}.tar.gz
BuildArch:	noarch

%description
GitPython is a python library used to interact with Git repositories.

GitPython provides object model access to your git repository. Once you have
created a repository object, you can traverse it to find parent commit(s),
trees, blobs, etc.

GitPython is a port of the grit library in Ruby created by Tom Preston-Werner
and Chris Wanstrath

#--------------------------------------------------------------------
%package -n python3-gitpython
Summary:	Python 3 Git Library
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	git-core
Requires:	python3egg(gitdb2)

%description -n python3-gitpython
GitPython is a python library used to interact with Git repositories.

GitPython provides object model access to your git repository. Once you have
created a repository object, you can traverse it to find parent commit(s),
trees, blobs, etc.

GitPython is a port of the grit library in Ruby created by Tom Preston-Werner
and Chris Wanstrath

%files -n python3-gitpython
%doc CHANGES AUTHORS LICENSE
%{py3_puresitedir}/GitPython-%{version}-py*.egg-info
%{py3_puresitedir}/git/

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16238 |21mr|python-gobject-2.28.7-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1
%define oname pygobject

%define api 2.0
%define major 0
%define libname %mklibname pyglib %{api} %{major}

Summary:	GObject Python bindings for GTK+2.0
Name:		python-gobject
Version:	2.28.7
Release:	16
License:	LGPLv2+
Group:		Development/Python
Url:		http://www.gnome.org
Source0:	http://ftp.gnome.org/pub/GNOME/sources/pygobject/2.28/pygobject-%{version}.tar.xz
Patch0:		pygobject-2.16.1-fixdetection.patch
Patch1:		pygobject-2.28.2-fix-link.patch
Patch2:		pygobject-2.28.7-python3.patch
Patch3:		pygobject-codegen.patch

BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-cairo-devel

%description
This archive contains bindings for the GObject, to be used in Python
It is a fairly complete set of bindings, it's already rather useful, 
and is usable to write moderately complex programs.  (see the
examples directory for some examples of the simpler programs you could
write).

#----------------------------------------------------------------------------

%package -n python3-gobject
Summary:	GObject Python bindings 
Group:		Development/Python
Provides:	python3-gobject2 = %{EVRD}

%description -n python3-gobject
This archive contains bindings for the GObject, to be used in Python
It is a fairly complete set of bindings, it's already rather useful, 
and is usable to write moderately complex programs.  (see the
examples directory for some examples of the simpler programs you could
write).

%files -n python3-gobject
%doc README NEWS AUTHORS ChangeLog
%{python3_sitearch}/pygtk*
%{python3_sitearch}/glib
%{python3_sitearch}/gobject
%{python3_sitearch}/gtk-2.0/
%{python3_sitearch}/__pycache__/
#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Python Glib bindings shared library
Group:		System/Libraries

%description -n %{libname}
This archive contains bindings for the GObject, to be used in Python
It is a fairly complete set of bindings, it's already rather useful, 
and is usable to write moderately complex programs.  (see the
examples directory for some examples of the simpler programs you could
write).

%files -n %{libname}
%{_libdir}/libpyglib-%{api}-python.so.%{major}*

#----------------------------------------------------------------------------

%package -n python3-gobject-devel
Summary:	Python-gobject development files
Group:		Development/C
Requires:	python3-gobject = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n python3-gobject-devel
This contains the python3-gobject development files, including C
header, pkg-config file, gtk-doc generated API documentation and a code
generation tool.

%files -n python3-gobject-devel
%{_libdir}/pkgconfig/*.pc
%{_libdir}/libpyglib-%{api}-python.so
%{_includedir}/pygtk-2.0/
%{_datadir}/gtk-doc/html/pygobject/
%{_datadir}/pygobject/
%exclude %{_datadir}/pygobject/2.0/codegen

#----------------------------------------------------------------------------

%package -n python2-gobject-codegen
%py2_migration_meta python2-gobject-codegen
Summary:	Python-gobject codegen development files
Group:		Development/C
Requires:	python2

%description -n python2-gobject-codegen
Optional Python2 codegen scripts.

%files -n python2-gobject-codegen
%{_bindir}/pygobject-codegen-2.0
%{_datadir}/pygobject/2.0/codegen

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%setup_compile_flags

%configure \
	--disable-introspection
%make LIBS='-lpython%{py3_ver}'

%install
%makeinstall_std
#gw this must be executable, it is used for building docs, e.g. in pyclutter
chmod 755 %{buildroot}%{_datadir}/pygobject/xsl/fixxref.py

#install codegen scripts
%makeinstall_std -C codegen
#fix shebang
sed '1 s,^.*$,#!/usr/bin/python2,' -i %{buildroot}%{_datadir}/pygobject/2.0/codegen/{code-coverage.py,codegen.py}
sed '1 s,^.*$,#!/usr/bin/python2,' -i %{buildroot}%{_datadir}/pygobject/2.0/codegen/{createdefs.py,defsconvert.py,defsgen.py,docextract_to_xml.py,docgen.py,h2def.py,mergedefs.py}
sed '1 s,^.*$,#!/usr/bin/python2,' -i %{buildroot}%{_datadir}/pygobject/2.0/codegen/{missingdefs.py,mkskel.py,scanvirtuals.py,scmexpr.py}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16239 |21mr|python-gobject3-3.42.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define oname pygobject

%define api 2.0
%define major 0

%global __provides_exclude_from ^%{py2_platsitedir}/gi/_gobject/__init__.py
# Disable useless provides ('_gi.so' and similar)
%global __provides_exclude .*_.*\.so
%global __requires_exclude typelib.*GIMarshallingTests.*|typelib.*Vte.*|typelib.*Gst.*|typelib.*WebKit.*
%global __provides_exclude_from ^(%{python3_sitearch})/(pygtkcompat|gi/pygtkcompat.py|gi/_gobject/__init__.py|gi/module.py|gi/__init__.py|gi/overrides/GIMarshallingTests.py)
%global __requires_exclude_from ^(%{python3_sitearch})/(pygtkcompat|gi/pygtkcompat.py|gi/_gobject/__init__.py|gi/module.py|gi/__init__.py|gi/overrides/GIMarshallingTests.py)

%bcond_without python3

Summary:	Python bindings for GObject Introspection
Name:		python-gobject3
Version:	3.42.2
Release:	2
License:	LGPLv2+ and MIT
Group:		Development/Python
Url:		https://download.gnome.org/sources/pygobject
Source0:	https://download.gnome.org/sources/pygobject/%{url_ver}/pygobject-%{version}.tar.xz
Patch1:		pygobject-goocanvas3.patch
BuildRequires:	meson
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(py3cairo)
BuildRequires:	pkgconfig(python3)

%description
The %{name} package provides a convenient wrapper for the GObject
library for use in Python programs.

#----------------------------------------------------------------------------

%package -n python3-gi
Summary:	Python 3 bindings for GObject Introspection
Group:		Development/Python
Provides:	python3-gobject-introspection = %{EVRD}
Provides:	python3-gobject3-introspection = %{EVRD}
Provides:	python3-gobject3 = %{EVRD}
Requires:	gobject-introspection
Requires:	typelib(Vte)
Requires:	typelib(WebKit2)

%description -n python3-gi
This package contains the Python 3 GObject Introspection bindings.

%files -n python3-gi
%ifnarch %{ix86}
%{py3_platsitedir}/gi
%endif
%{py3_puresitedir}/gi
%{py3_puresitedir}/pygtkcompat
%exclude %{py3_platsitedir}/gi/_gi_cairo*.so

#----------------------------------------------------------------------------

%package -n python3-gi-cairo
Summary:	Python3-gi bindings for Cairo
Group:		Development/Python
Requires:	python3-gi = %{EVRD}
Requires:	typelib(PangoCairo)
Requires:	python3-cairo
Provides:	python3-gobject-cairo = %{EVRD}

%description -n python3-gi-cairo
This package contains the Python-gi Cairo bindings.

%files -n python3-gi-cairo
%{py3_platsitedir}/gi/_gi_cairo*.so
%{py3_platsitedir}/PyGObject-%{version}.egg-info

#----------------------------------------------------------------------------

%package -n python3-gobject3-devel
Summary:	Python-gobject development files
Group:		Development/C
Requires:	python3-gi-cairo = %{EVRD}
Provides:	python3-gobject3-devel = %{EVRD}
Provides:	python3-gobject-devel = %{EVRD}

%description -n python3-gobject3-devel
This contains the python2-gobject development files, including C
header, pkg-config file.

%files -n python3-gobject3-devel
%{_libdir}/pkgconfig/pygobject-3.0.pc
%{_includedir}/pygobject-3.0/pygobject.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
export CFLAGS="%{optflags} -lpython%{py3_ver}"
export LDFLAGS="%{optflags} -lpython%{py3_ver}"
%meson -Dpython=%{__python3}
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16240 |21mr|python-google-api-core-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module google-api-core

Summary:	Defines common helpers used by all Google API clients
Name:		python-%{module}
Version:	2.0.0
Release:	1
License:	ASLv2
Group:		Development/Python
Url:		https://github.com/GoogleCloudPlatform/google-cloud-python
Source0:	https://files.pythonhosted.org/packages/ae/63/fa452e4eb5b3f2881ab8bb2faab6e5eda3a82c0631cd92560b3a3cabb976/google-api-core-2.0.0.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This library is not meant to stand-alone. Instead it defines common helpers
used by all Google API clients.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Defines common helpers used by all Google API clients
Group:		Development/Python

%description -n python3-%{module}
This library is not meant to stand-alone. Instead it defines common helpers
used by all Google API clients.

%files -n python3-%{module}
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16241 |21mr|python-googleapis-common-protos-1.51.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define pypi_name googleapis-common-protos

Summary:	Contains the python classes generated from the common protos
Name:		python-googleapis-common-protos
Version:	1.51.0
Release:	2
License:	ASLv2
Group:		Development/Python
Url:		https://github.com/googleapis/googleapis
Source0:	%{pypi_source}
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)

%description
googleapis-common-protos contains the python classes generated from the common protos 
in the googleapis repository.

#--------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Contains the python classes generated from the common protos
Group:		Development/Python

%description -n python3-%{pypi_name}
googleapis-common-protos contains the python classes generated from the common protos 
in the googleapis repository.

%files -n python3-%{pypi_name}
%{python3_sitelib}/*

#--------------------------------------------------------------
%prep
%setup -qn googleapis-common-protos-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16242 |21mr|python-google-auth-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module google-auth

Summary:	Google Authentication Library
Name:		python-google-auth
Version:	2.6.0
Release:	1
License:	ASLv2
Group:		Development/Python
Url:		https://github.com/googleapis/google-auth-library-python
Source0:	https://github.com/googleapis/google-auth-library-python/archive/v%{version}.tar.gz?/%{module}-library-python-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cachetools) >= 2.0.0
BuildRequires:	python3egg(mock)
BuildRequires:	python3egg(pyasn1-modules) >= 0.2.1
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(rsa) >= 3.1.4
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six) >= 1.9.0
Requires:	python3egg(cachetools) >= 2.0.0
Requires:	python3egg(pyasn1-modules) >= 0.2.1
Requires:	python3egg(rsa) >= 3.1.4
Requires:	python3egg(six) >= 1.9.0

%description
Google Auth Python Library simplifies using Google's various server-to-server
authentication mechanisms to access Google.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Google Authentication Library
Group:		Development/Python

%description -n python3-%{module}
Google Auth Python Library simplifies using Google's various server-to-server
authentication mechanisms to access Google.

%files -n python3-%{module}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/*.pth
%{py3_puresitedir}/google
%{py3_puresitedir}/google_auth-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-library-python-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16243 |21mr|python-google-cloud-firestore-2.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define pypi_name google-cloud-firestore

Summary:        Flexible, scalable database for mobile, web, and server development
Name:           python-google-cloud-firestore
Version:	2.3.0
Release:	2
License:        ASLv2
Group:          Development/Python
Url:            https://github.com/googleapis/python-firestore
Source0:	https://files.pythonhosted.org/packages/77/6e/46d9431948cd6fc73f741592e0403cbe21c64a519470265b6913b8b06ad8/google-cloud-firestore-2.3.0.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)

%description
The Google Cloud Firestore API is a flexible, scalable database for mobile, 
web, and server development from Firebase and Google Cloud Platform. 
Like Firebase Realtime Database, it keeps your data in sync across client 
apps through realtime listeners and offers offline support for mobile and web 
so you can build responsive apps that work regardless of network latency or 
Internet connectivity. Cloud Firestore also offers seamless integration with other 
Firebase and Google Cloud Platform products, including Cloud Functions.

#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Flexible, scalable database for mobile, web, and server development
Group:          Development/Python

%description -n python3-%{pypi_name}
The Google Cloud Firestore API is a flexible, scalable database for mobile, 
web, and server development from Firebase and Google Cloud Platform. 
Like Firebase Realtime Database, it keeps your data in sync across client 
apps through realtime listeners and offers offline support for mobile and web 
so you can build responsive apps that work regardless of network latency or 
Internet connectivity. Cloud Firestore also offers seamless integration with other 
Firebase and Google Cloud Platform products, including Cloud Functions.

%files -n python3-%{pypi_name}
%dir %{py3_puresitedir}/google_cloud_firestore-%{version}-py%{py3_ver}.egg-info/
%dir %{py3_puresitedir}/google/cloud/
%{py3_puresitedir}/google/cloud/*
%{py3_puresitedir}/google_cloud_firestore-%{version}-py%{py3_ver}.egg-info/*
%{py3_puresitedir}/google_cloud_firestore-%{version}-py%{py3_ver}-nspkg.pth
%{_bindir}/fixup_firestore_admin_v1_keywords.py
%{_bindir}/fixup_firestore_v1_keywords.py

#-----------------------------------------------------------------------
%prep
%setup -qn google-cloud-firestore-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

%files
%dir %{py3_puresitedir}/google_cloud_firestore-%{version}-py%{py3_ver}.egg-info/
%dir %{py3_puresitedir}/google/cloud/
%{py3_puresitedir}/google/cloud/*
%{py3_puresitedir}/google_cloud_firestore-%{version}-py%{py3_ver}.egg-info/*
%{py3_puresitedir}/google_cloud_firestore-%{version}-py%{py3_ver}-nspkg.pth
%{_bindir}/fixup_firestore_admin_v1_keywords.py
%{_bindir}/fixup_firestore_v1_keywords.py
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16244 |21mr|python-google-cloud-storage-1.42.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name google-cloud-storage
%global debug_package %nil

Summary:	Allows you to store data on Google infrastructure
Name:		python-%{pypi_name}
Version:	1.42.0
Release:	1
License:	ASLv2
Group:		Development/Python
Url:		https://github.com/googleapis/python-storage
Source0:	https://files.pythonhosted.org/packages/b4/8b/4eafe08a5e2d959369e6cd36119221140f5886790325a4c0f290faf8e734/google-cloud-storage-1.42.0.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
Google Cloud Storage allows you to store data on Google infrastructure
with very high reliability, performance and availability, and can be used
to distribute large data objects to users via direct download.

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Extensions to the Python standard library unit testing framework
Group:		Development/Python

%description -n python3-%{pypi_name}
Google Cloud Storage allows you to store data on Google infrastructure
with very high reliability, performance and availability, and can be used
to distribute large data objects to users via direct download.

%files -n python3-%{pypi_name}
%{python3_sitelib}/*

#-----------------------------------------------------------------------
%prep
%setup -qn google-cloud-storage-%{version}
%autopatch -p1

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16245 |21mr|python-google-crc32c-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define pypi_name google-crc32c

Name:		python-%{pypi_name}
Version:	1.0.0
Release:	1
License:	ASLv2
Summary:	Hardware-based implementation of the CRC32C hashing algorithm
Group:		Development/Python
Url:		https://github.com/googleapis/python-crc32c
Source0:	%pypi_source
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(cffi)

%description
This package wraps the google/crc32c hardware-based implementation of the 
CRC32C hashing algorithm. Multiple wheels are distributed as well as source. 
If a wheel is not published for the python version and platform you are using, 
you will need to compile crc32c using a C toolchain.

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Hardware-based implementation of the CRC32C hashing algorithm
Group:		Development/Python

%description -n python3-%{pypi_name}
This package wraps the google/crc32c hardware-based implementation of the 
CRC32C hashing algorithm. Multiple wheels are distributed as well as source. 
If a wheel is not published for the python version and platform you are using, 
you will need to compile crc32c using a C toolchain.

%files -n python3-%{pypi_name}
%{python3_sitearch}/*

#----------------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16246 |21mr|python-greenlet-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname greenlet

Name:		python-greenlet
Version:	1.1.1
Release:	1
Summary:	A spin-off of Stackless
License:	MIT
Group:		System/Libraries
Url:		http://pypi.python.org/pypi/greenlet
Source0:	https://files.pythonhosted.org/packages/72/7e/d8586068d47adba73afc085249712bd266cd7ffbf27d8bc260c33e9d6133/greenlet-1.1.1.tar.gz
BuildRequires:	glibc-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
The greenlet package is a spin-off of Stackless, a version of CPython that
supports micro-threads called "tasklets".

#--------------------------------------------------------------------------
%package -n python3-greenlet
Summary:	A spin-off of Stackless
Group:		System/Libraries
BuildRequires:	python3-devel
BuildRequires:  python3-setuptools
Provides:	python-%{srcname} = %{EVRD}
Obsoletes:	python-%{srcname} < %{EVRD}

%description -n python3-greenlet
The greenlet package is a spin-off of Stackless, a version of CPython that
supports micro-threads called "tasklets".

%files -n python3-greenlet
%{_includedir}/python3.*/%{srcname}
%{python3_sitearch}/%{srcname}*

#--------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
# Run the upstream test suite:
%__python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16247 |21mr|python-grpc-1.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%define pypi_name grpc

Summary:	Pure Python Gevent RPC & golang RPC
Name:		python-grpc
Version:	1.0.0
Release:	3
License:	MIT
Group:		Development/Python
Url:		https://bitbucket.org/seewind/grpc
Source0:	%{pypi_source %{pypi_name} %{version}}
Patch0:		0001-Remove-install-from-pip-protection.patch
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-grpcio

%description
Pure Python Gevent RPC & golang RPC

#------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
Pure Python Gevent RPC & golang RPC

%files -n python3-%{pypi_name}
%{python3_sitelib}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16248 |21mr|python-grpcio-1.37.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname grpcio

Name:          python-%{srcname}
Summary:       A high performance, open-source universal RPC framework
License:       ASL 2.0
Group:         Development/Python
Version:       1.37.0
Release:       1
URL:           https://pypi.org/project/%{srcname}
Source0:       %{pypi_source}

BuildRequires: gcc
BuildRequires: gcc-c++
BuildRequires: c-ares-devel
BuildRequires: openssl-devel
BuildRequires: zlib-devel

%description
A high performance, open-source universal RPC framework.

This package allows using gRPC in Python applications.


%package -n python3-%{srcname}
Summary:       %{summary}
BuildRequires: python3-devel >= 3.4
BuildRequires: python3-cython
BuildRequires: python3-setuptools
BuildRequires: python3-six >= 1.5.2
Requires:      python3-six >= 1.5.2
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}
A high performance, open-source universal RPC framework.

This package allows using gRPC in Python 3 applications.


%prep
%autosetup -n %{srcname}-%{version}


%build
# Build against system libraries
export GRPC_PYTHON_BUILD_SYSTEM_CARES=1
export GRPC_PYTHON_BUILD_SYSTEM_OPENSSL=1
export GRPC_PYTHON_BUILD_SYSTEM_ZLIB=1

# Don't use the pre-generated C files
export GRPC_PYTHON_BUILD_WITH_CYTHON=1

# Use the Fedora CFLAGS/LDFLAGS
export GRPC_PYTHON_CFLAGS="%{build_cflags} -lstdc++ -Wl,--no-as-needed -ldl"
export GRPC_PYTHON_LDFLAGS="%{build_ldflags} -lstdc++ -Wl,--no-as-needed -ldl"

%py3_build


%install
%py3_install


%files -n python3-%{srcname}
%doc README.md
%{python3_sitearch}/grpc/
%{python3_sitearch}/grpcio-%{version}-py*.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16249 |21mr|python-gssapi-1.7.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name gssapi

Summary:	Python Bindings for GSSAPI (RFC 2743/2744 and extensions)
Name:		python-%{pypi_name}
Version:	1.7.3
Release:	1
License:	ISC
Group:		Development/Python
Url:		https://github.com/pythongssapi/python-gssapi
Source0:	https://github.com/pythongssapi/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pyproject-rpm-macros

%description
A set of Python bindings to the GSSAPI C library providing both
a high-level pythonic interfaces and a low-level interfaces
which more closely matches RFC 2743.  Includes support for
RFC 2743, as well as multiple extensions.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python Bindings for GSSAPI (RFC 2743/2744 and extensions)
Group:		Development/Python
Requires:	krb5-libs
Requires:	python3-decorator
Requires:	python3-six

%description -n python3-%{pypi_name}
A set of Python bindings to the GSSAPI C library providing both
a high-level pythonic interfaces and a low-level interfaces
which more closely matches RFC 2743.  Includes support for
RFC 2743, as well as multiple extensions.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc LICENSE.txt README.txt

#------------------------------------------------------------------

%prep
%autosetup -p1

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install

%pyproject_save_files gssapi


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16250 |21mr|python-gstreamer1.0-1.18.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# gst1 api recall here
%define api 1.0
%define oname gst-python
%define _disable_ld_no_undefined 1
%global __provides_exclude _gi_gst.so

Summary:	Python bindings for GStreamer%{api}
Name:		python-gstreamer%{api}
Version:	1.18.4
Release:	1
License:	LGPLv2.1+
Group:		Development/Python
Url:		http://gstreamer.freedesktop.org/
Source0:	http://gstreamer.freedesktop.org/src/gst-python/gst-python-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	pkgconfig(gstreamer-%{api}) >= %{version}
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api}) >= %{version}
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	pkgconfig(python3)

%description
This module contains PyGObject overrides to make it easier to write
applications that use GStreamer 1.0 in Python.

#----------------------------------------------------------------------------

%package  -n python3-gstreamer%{api}
Summary:	Python3 bindings for GStreamer%{api}
Group:		Development/Python
Requires:	python3-gi
Requires:	gstreamer1.0-tools >= 1.2.0
Provides:	gstreamer%{api}-python3 = %{EVRD}
Provides:	gstreamer%{api}-python = %{EVRD}

%description -n python3-gstreamer%{api}
This module contains PyGObject overrides to make it easier to write
applications that use GStreamer 1.0 in Python3.

%files  -n python3-gstreamer%{api}
%doc AUTHORS COPYING ChangeLog NEWS README
%{_libdir}/gstreamer-1.0/libgstpython.so
%{python3_sitearch}/gi/overrides/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%meson \
	-Dpygi-overrides-dir=%{python3_sitearch}/gi/overrides/
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16251 |21mr|python-gunicorn-20.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name gunicorn

Name:		python-%{pypi_name}
Version:	20.1.0
Release:	2
Summary:	Python WSGI application server
Group:		Development/Python
License:	MIT
URL:		http://gunicorn.org/
Source0:	https://pypi.io/packages/source/g/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(nose)
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(pytest-cov)
BuildRequires:	python3dist(mock)
BuildArch:	noarch

%description
Gunicorn ("Green Unicorn") is a Python WSGI HTTP server for UNIX. It uses the
pre-fork worker model, ported from Ruby's Unicorn project. It supports WSGI,
Django, and Paster applications.

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python3 WSGI application server
Group:		Development/Python
Obsoletes:	python2-%{pypi_name} < 19.9.0-2

%description -n python3-%{pypi_name}
Gunicorn ("Green Unicorn") is a Python3 WSGI HTTP server for UNIX. It uses the
pre-fork worker model, ported from Ruby's Unicorn project. It supports WSGI,
Django, and Paster applications.

%files -n python3-%{pypi_name}
%doc LICENSE NOTICE README.rst THANKS
%{py3_puresitedir}/%{pypi_name}*
%{_bindir}/%{pypi_name}

#----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

# Tests requires a precise 2.8.3
perl -pi -e 's/pytest==2.8.3/pytest>=2.8.3/' requirements_test.txt
perl -pi -e 's/pytest-cov==1.7.0/pytest-cov>=1.7.0/' requirements_test.txt

%build
%py3_build

%install
%py3_install

%check
%if 0
python3 setup.py test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16252 |21mr|python-h2-4.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module h2

Name:       python-%{module}
Version:    4.0.0
Release:    3
Summary:    HTTP/2 State-Machine based protocol implementation
Group:      Development/Python
License:    MIT
URL:        https://pypi.python.org/pypi/h2
Source0:    https://pypi.io/packages/source/h/h2/%{module}-%{version}.tar.gz
BuildArch:  noarch

%description
This module contains a pure-Python implementation of a HTTP/2 protocol stack.
It’s written from the ground up to be embeddable in whatever program
you choose to use, ensuring that you can speak HTTP/2 regardless of
your programming paradigm.

%package -n python3-%{module}
Summary:        HTTP/2 State-Machine based protocol implementation
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description -n python3-%{module}
This module contains a pure-Python implementation of a HTTP/2 protocol stack.
It’s written from the ground up to be embeddable in whatever program
you choose to use, ensuring that you can speak HTTP/2 regardless of
your programming paradigm.

This is the Python 3 version of the package.

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc LICENSE README.rst
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16253 |21mr|python-hacking-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	hacking

Name:		python-%{oname}
Version:	4.1.0
Release:	1
Group:		Development/Python
Summary:	OpenStack Hacking Guideline Enforcement
License:	Apache Software License
Url:		https://docs.openstack.org/hacking/latest/
Source0:	https://pypi.io/packages/source/h/%{oname}/%{oname}-%{version}.tar.gz
Patch0:		hacking-4.1.0-flake8.patch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pbr)
BuildArch:	noarch

%description
hacking is a set of flake8 plugins that test and enforce the
:ref:StyleGuide.Hacking pins its dependencies, as a new release of some
dependency can break hacking based gating jobs. This is because new versions of
dependencies can introduce new rules, or make existing rules
stricter.

#------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	OpenStack Hacking Guideline Enforcement
Group:		Development/Python

%description -n python3-%{oname}
hacking is a set of flake8 plugins that test and enforce the
:ref:StyleGuide.Hacking pins its dependencies, as a new release of some
dependency can break hacking based gating jobs. This is because new versions of
dependencies can introduce new rules, or make existing rules
stricter.

%files -n python3-%{oname}
%doc AUTHORS
%doc ChangeLog
%doc README.rst
%doc requirements.txt
%doc test-requirements.txt
%doc hacking
%{python3_sitelib}/hacking
%{python3_sitelib}/hacking*.egg-info

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16254 |21mr|python-hamcrest-2.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname hamcrest
%global origname PyHamcrest

Name:           python-%{modname}
Version:        2.0.2
Release:        2
Summary:        Hamcrest matchers for Python
Group:          Development/Python
License:        BSD
URL:            https://github.com/hamcrest/PyHamcrest
Source0:        %{url}/archive/%{version}/%{origname}-%{version}.tar.gz

# https://github.com/hamcrest/PyHamcrest/commit/37a4d0dbeb9a92b959edfb9b1aceba4eaacf9f78
Patch0001:      0001-Add-boolean-matchers.patch

BuildArch:      noarch

%global _description \
PyHamcrest is a framework for writing matcher objects, allowing you to\
declaratively define "match" rules. There are a number of situations where\
matchers are invaluable, such as UI validation, or data filtering, but it is\
in the area of writing flexible tests that matchers are most commonly used.

%description %{_description}

%package -n python3-%{modname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{modname}}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest
BuildRequires:  python3-mock
BuildRequires:  python3-six
Requires:       python3-six

%description -n python3-%{modname} %{_description}

Python 3 version.

%prep
%autosetup -n %{origname}-%{version} -p1

%build
%py3_build

%install
%py3_install

%check
%{py3_test}

%files -n python3-%{modname}
%{python3_sitelib}/%{origname}-*.egg-info/
%{python3_sitelib}/%{modname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16255 |21mr|python-hatch-fancy-pypi-readme-23.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-hatch-fancy-pypi-readme
Version:        23.2.0
Release:        1
Summary:        Hatch plugin for writing fancy PyPI readmes
Group:          Development/Python
License:        MIT
URL:            https://github.com/hynek/hatch-fancy-pypi-readme
Source0:        %{pypi_source hatch_fancy_pypi_readme}

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%global common_description %{expand:
This provides a Hatch metadata plugin for everyone who cares about the
first impression of their project’s PyPI landing page. It allows you to
define your PyPI project description in terms of concatenated fragments
that are based on static strings, files, and most importantly: parts of
files defined using cut-off points or regular expressions.}

%description %{common_description}

#---------------------------------------------------------------
%package -n python3-hatch-fancy-pypi-readme
Summary:        %{summary}
Group:          Development/Python

%description -n python3-hatch-fancy-pypi-readme %{common_description}

%files -n python3-hatch-fancy-pypi-readme -f %{pyproject_files}
%license LICENSE.txt
%doc README.md
%{_bindir}/hatch-fancy-pypi-readme

#---------------------------------------------------------------
%prep
%autosetup -n hatch_fancy_pypi_readme-%{version} -p1

# https://github.com/hynek/hatch-fancy-pypi-readme/commit/6c06d7244183c5b71aed905c9950e3206e5f0a9e
# Drop unwanted build dependencies that upstream already dropped
sed -i 's/ \"pytest-icdiff\", \"coverage\[toml\]\", //g' pyproject.toml

%generate_buildrequires
%pyproject_buildrequires -x tests

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files hatch_fancy_pypi_readme

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16256 |21mr|python-hatchling-1.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           python-hatchling
Version:        1.11.1
Release:        1
Summary:        The build backend used by Hatch
Group:          Development/Python
# SPDX
License:        MIT
URL:            https://pypi.org/project/hatchling
Source0:        %{pypi_source hatchling}
# Man page in groff_man(7) format, hand-written for Fedora based on package
# metadata and --help output
Source1:        hatchling.1

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%global common_description %{expand:
This is the extensible, standards compliant build backend used by Hatch.}

%description %{common_description}

#----------------------------------------------------------------
%package -n python3-hatchling
Summary:        %{summary}
Group:          Development/Python

%description -n python3-hatchling %{common_description}

%files -n python3-hatchling -f %{pyproject_files}
%license LICENSE.txt
%doc README.md
%{_bindir}/hatchling
%{_mandir}/man1/hatchling.1*

#----------------------------------------------------------------
%prep
%autosetup -n hatchling-%{version}


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files hatchling
install -t '%{buildroot}/%{_mandir}/man1' -D -p -m 0644 '%{SOURCE1}'



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16257 |21mr|python-hatch-vcs-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

# Let’s try to build this as early as we can, since it’s a dependency for
# python-userpath.
%bcond_without bootstrap
%if %{without bootstrap}
%bcond_without tests
%else
%bcond_with tests
%endif

Name:           python-hatch-vcs
Version:        0.2.0
Release:        1
Summary:        Hatch plugin for versioning with your preferred VCS
Group:          Development/Python
License:        MIT
URL:            https://github.com/ofek/hatch-vcs
Source0:        %{pypi_source hatch_vcs}
Patch0:         hatch-vcs-requirements.patch
BuildArch:      noarch

# Fix test compatibility with setuptools_scm 7
# https://github.com/ofek/hatch-vcs/pull/9
#
# Fixes:
#
# Compatibility with setuptools_scm 7
# https://github.com/ofek/hatch-vcs/issues/8
Patch:          %{url}/pull/9.patch

BuildRequires:  python3-devel
# RHBZ#1985340, RHBZ#2076994
BuildRequires:  pyproject-rpm-macros >= 1.2.0

%if %{with tests}
BuildRequires:  python3dist(pytest)
BuildRequires:  git-core
%endif

%global common_description %{expand:
This provides a plugin for Hatch that uses your preferred version control
system (like Git) to determine project versions.}

%description %{common_description}

#--------------------------------------------------------------
%package -n python3-hatch-vcs
Summary:        %{summary}
Group:          Development/Python

%description -n python3-hatch-vcs %{common_description}

%files -n python3-hatch-vcs -f %{pyproject_files}
%license LICENSE.txt
%doc HISTORY.md
%doc README.md

#--------------------------------------------------------------
%prep
%autosetup -n hatch_vcs-%{version} -p1


%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files hatch_vcs


%check
%if %{with tests}
%pytest
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16258 |21mr|python-hpack-4.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module    hpack

Name:       python-%{module}
Version:    4.0.0
Release:    4
Summary:    Pure-Python HPACK header compression
Group:      Development/Python
License:    MIT
URL:        http://hyper.rtfd.org/
Source0:    https://pypi.io/packages/source/h/hpack/%{module}-%{version}.tar.gz
BuildArch:  noarch

%description
This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
for use in Python programs that implement HTTP/2. It also contains a
compatibility layer that automatically enables the use of nghttp2 if
it’s available.

%package -n python3-%{module}
Summary:        Pure-Python HPACK header compression
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description -n python3-%{module}
This module contains a pure-Python HTTP/2 header encoding (HPACK) logic
for use in Python programs that implement HTTP/2. It also contains a
compatibility layer that automatically enables the use of nghttp2 if
it’s available.

This is the Python 3 version of the package.

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc CONTRIBUTORS.rst LICENSE README.rst
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16259 |21mr|python-html5lib-1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define modulename html5lib

Summary:	A python2 based HTML parser/tokenizer based on the WHATWG HTML5 specification
Name:		python-%{modulename}
Version:	1.1
Release:	3
Group:		Development/Python
License:	MIT
Url:		https://pypi.python.org/pypi/%{modulename}
Source0:	https://github.com/html5lib/html5lib-python/archive/%{version}.tar.gz?/%{modulename}-python-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description
A python2 based HTML parser/tokenizer based on the WHATWG HTML5
specification for maximum compatibility with major desktop web browsers.

#------------------------------------------------------------------------- 

%package -n python2-%{modulename}
%py2_migration_meta python2-%{modulename}
Summary:	A python based HTML parser/tokenizer based on the WHATWG HTML5 specification
Group:		Development/Python

%description -n python2-%{modulename}
A python based HTML parser/tokenizer based on the WHATWG HTML5
specification for maximum compatibility with major desktop web browsers.

%files -n python2-html5lib
%{python2_sitelib}/%{modulename}*

#------------------------------------------------------------------------- 

%package -n python3-html5lib
Summary:	A python2 based HTML parser/tokenizer based on the WHATWG HTML5 specification
Group:		Development/Python
Requires:	python3
 
%description -n python3-html5lib
A python2 based HTML parser/tokenizer based on the WHATWG HTML5
specification for maximum compatibility with major desktop web browsers.

%files -n python3-html5lib
%{python3_sitelib}/%{modulename}*

#------------------------------------------------------------------------- 

%prep
%setup -q -c

mv %{modulename}-python-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
%py2_install
popd

pushd python3
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16260 |21mr|python-httpcore-0.14.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name httpcore

Summary:	Minimal low-level HTTP client
Name:		python-%{pypi_name}
Version:	0.14.3
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/encode/httpcore
Source0:	https://github.com/encode/httpcore/archive/refs/tags/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
The HTTP Core package provides a minimal low-level HTTP client, which does
one thing only: Sending HTTP requests. It does not provide any high level
model abstractions over the API, does not handle redirects, multipart uploads,
building authentication headers, transparent HTTP caching, URL parsing, etc.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Minimal low-level HTTP client
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools

%description -n python3-%{pypi_name}
The HTTP Core package provides a minimal low-level HTTP client, which does
one thing only: Sending HTTP requests. It does not provide any high level
model abstractions over the API, does not handle redirects, multipart uploads,
building authentication headers, transparent HTTP caching, URL parsing, etc.

%files -n python3-%{pypi_name}
%license LICENSE.md
%doc README.md
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16261 |21mr|python-httplib2-0.20.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	httplib2

Name:		python-httplib2
Summary:	Comprehensive HTTP client library for Python
Version:	0.20.4
Release:	1
Source0:	%{pypi_source}
URL:		http://code.google.com/p/httplib2
Group:		System/Libraries
License:	MIT
BuildArch:	noarch

%description
A comprehensive HTTP client library that supports many features left
out of other HTTP libraries.

#-------------------------------------------------------------------
%package -n python2-httplib2
%py2_migration_meta python2-httplib2
Summary:	Python 3 HTTP library module
Group:		System/Libraries
BuildRequires:	python2
BuildRequires:	python2-setuptools

%description -n python2-httplib2
A comprehensive HTTP client library that supports many features left
out of other HTTP libraries.

%files -n python2-httplib2
%{py2_puresitedir}/%{pypi_name}-*
%{py2_puresitedir}/%{pypi_name}/*

#-------------------------------------------------------------------

%package -n python3-httplib2
Summary:	Python 3 HTTP library module
Group:		System/Libraries
BuildRequires:	python3
BuildRequires:	python3-setuptools

%description -n python3-httplib2
A comprehensive HTTP client library that supports many features left
out of other HTTP libraries.

%files -n python3-httplib2
%{py3_puresitedir}/%{pypi_name}-*
%{py3_puresitedir}/%{pypi_name}/*

#-------------------------------------------------------------------

%prep
%setup -q -c
mv httplib2-%{version} python2
pushd python2
#%patch0 -p0 -b .certfile
popd
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
PYTHONDONTWRITEBYTECODE= %py2_install
chmod a+r %{buildroot}%{py2_puresitedir}/%{pypi_name}*egg-info/*
popd

pushd python3
PYTHONDONTWRITEBYTECODE= %py3_install
chmod a+r %{buildroot}%{py3_puresitedir}/%{pypi_name}*egg-info/*
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16262 |21mr|python-httpretty-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global github_owner    gabrielfalcao
%global github_name     HTTPretty
%global srcname         httpretty

Name:           python-httpretty
Version:	1.1.0
# If github_date is defined, assume a post-release snapshot
Release:	1
Summary:        HTTP request mock tool for Python
Group:		Development/Python
License:        MIT
URL:            https://github.com/%{github_owner}/%{github_name}
Source0:	https://files.pythonhosted.org/packages/fc/cd/21014a0068c5ef4b06805eda7b1dc7a1c8fac416b297ac134a09700b447b/httpretty-1.1.0.tar.gz
# Alternative for building from a github snapshot
#Source0:	https://files.pythonhosted.org/packages/fc/cd/21014a0068c5ef4b06805eda7b1dc7a1c8fac416b297ac134a09700b447b/httpretty-1.1.0.tar.gz

# Avoid unnecessary remote access requirement (note: test only actually
# does a remote connection after PR #313)
Patch1:         python-httpretty-fakesock_getpeercert_noconnect.patch

# Remote access (these tests were skipped upstream in <= 0.9.7)
Patch2:         skip-test_passthrough.patch

BuildArch:      noarch

%global _description\
Once upon a time a python developer wanted to use a RESTful API, everything was\
fine but until the day he needed to test the code that hits the RESTful API:\
what if the API server is down? What if its content has changed?\
\
Dont worry, HTTPretty is here for you.

%description %_description

%package -n python3-httpretty
Summary:        HTTP request mock tool for Python 3
Requires:       python3-six

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-httpretty
Once upon a time a python developer wanted to use a RESTful API, everything was
fine but until the day he needed to test the code that hits the RESTful API:
what if the API server is down? What if its content has changed?

Don't worry, HTTPretty is here for you.

%prep
%autosetup -n httpretty-%{version} -p1

# Alternative for building from commit tarball
#autosetup -n %%{github_name}-%%{github_commit} -p1

# nose plugins we don't have yet
sed -i 's/^with-randomly = 1$//' setup.cfg
sed -i 's/^rednose = 1$//' setup.cfg

%build
%py3_build

%install
%py3_install

%files -n python3-httpretty
%doc README.rst
%license COPYING
%{python3_sitelib}/httpretty
%{python3_sitelib}/httpretty-%{version}-py3.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16263 |21mr|python-httpx-0.21.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name httpx

Summary:	Python HTTP client
Name:		python-%{pypi_name}
Version:	0.21.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/encode/httpx
Source0:	https://github.com/encode/httpx/archive/refs/tags/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
HTTPX is a fully featured HTTP client for Python, which provides sync and
async APIs, and support for both HTTP/1.1 and HTTP/2.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python HTTP client
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools

%description -n python3-%{pypi_name}
HTTPX is a fully featured HTTP client for Python, which provides sync and
async APIs, and support for both HTTP/1.1 and HTTP/2.

%files -n python3-%{pypi_name}
%license LICENSE.md
%doc README.md
%{_bindir}/httpx
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16264 |21mr|python-hyperframe-6.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module hyperframe

Name:       python-%{module}
Version:	6.0.1
Release:	1
Summary:    HTTP/2 framing layer for Python
Group:      Development/Python
License:    MIT
URL:        http://hyper.rtfd.org/
Source0:	https://files.pythonhosted.org/packages/5a/2a/4747bff0a17f7281abe73e955d60d80aae537a5d203f417fa1c2e7578ebb/hyperframe-6.0.1.tar.gz
BuildArch:  noarch

%description
This library contains the HTTP/2 framing code used in the hyper project.
It provides a pure-Python codebase that is capable of decoding a binary
stream into HTTP/2 frames.

This library is used directly by hyper and a number of other projects
to provide HTTP/2 frame decoding logic.

%package -n python3-%{module}
Summary:        HTTP/2 framing layer for Python 3
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)

%description -n    python3-%{module}
This library contains the HTTP/2 framing code used in the hyper project.
It provides a pure-Python codebase that is capable of decoding a binary
stream into HTTP/2 frames.

This library is used directly by hyper and a number of other projects
to provide HTTP/2 frame decoding logic.

This is the Python 3 version of the package.

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc CONTRIBUTORS.rst LICENSE README.rst
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16265 |21mr|python-hyperlink-21.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module hyperlink

Summary:	A featureful, immutable, and correct URL for Python
Name:		python-%{module}
Version:	21.0.0
Release:	2
License:	BSD
Group:		Development/Python
Url:		https://pypi.org/project/hyperlink/
Source0:	https://files.pythonhosted.org/packages/3a/51/1947bd81d75af87e3bb9e34593a4cf118115a8feb451ce7a69044ef1412e/hyperlink-21.0.0.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description
Hyperlink is a featureful, pure-Python implementation of the URL,
with an emphasis on correctness.

#------------------------------------------------------

%package -n python3-%{module}
Summary:	A featureful, correct URL for Python
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description -n python3-%{module}
Hyperlink is a featureful, pure-Python implementation of the URL,
with an emphasis on correctness.

%files -n python3-%{module}
%doc CHANGELOG.md LICENSE README.md
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info/

#------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16266 |21mr|python-hypothesis-6.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname hypothesis
%global __requires_exclude python3egg\\(enum34\\)

Name:           python-%{srcname}
Version:	6.17.0
Release:	1
Summary:        A library for property based testing
Group:          Development/Python
License:        MPLv2.0
URL:            https://github.com/DRMacIver/hypothesis
Source0:	https://files.pythonhosted.org/packages/4c/17/67c010694e5ab0813005b356fff533b023f54ef7bf39679ae387cbb108ab/hypothesis-6.17.0.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
Hypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by
hand. It’s based on the Haskell library, Quickcheck, and is designed
to integrate seamlessly into your existing Python unit testing work
flow.
#-------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:     A library for property based testing
Group:       Development/Python
Recommends:  python3-numpy
Recommends:  python3-pytz

%description -n python3-%{srcname}
Hypothesis is a library for testing your Python code against a much
larger range of examples than you would ever want to write by
hand. It’s based on the Haskell library, Quickcheck, and is designed
to integrate seamlessly into your existing Python unit testing work
flow.

%files -n python3-%{srcname}
%doc README.rst
%dir %{py3_puresitedir}/%{srcname}
%dir %{py3_puresitedir}/%{srcname}-%{version}-py%{py3_ver}.egg-info/
%{py3_puresitedir}/%{srcname}-%{version}-py%{py3_ver}.egg-info/*
%{py3_puresitedir}/%{srcname}/*
%{_bindir}/%{srcname}
#====================================================================

%prep
%setup -qn %{srcname}-%{version}

rm -rf src/%{srcname}.egg-info

# remove Django tests for now
rm -rf tests/django

# remove fakefactory tests, not packaged yet
rm -rf tests/fakefactory

# remove slow tests
rm -rf tests/nocover

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16267 |21mr|python-icu-2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		realname PyICU
%define		module icu
%define debug_package %{nil}

Name:		python-%{module}
Version:	2.9
Release:	1
Summary:	Python extension wrapping IBM's ICU C++ libraries
Group:		Development/Python
License:	MIT
URL:		http://pyicu.osafoundation.org/
Source0:	https://pypi.python.org/packages/source/P/%{realname}/%{realname}-%{version}.tar.gz
Patch0:		python3.8.patch
BuildRequires:	pkgconfig(icu-i18n)

%description
PyICU is Python extension wrapping IBM's International Components
for Unicode C++ library (ICU). ICU is a mature, widely used set of
C/C++ and Java libraries providing Unicode and Globalization support
for software applications. ICU is widely portable and gives applications
the same results on all platforms and between C/C++ and Javasoftware.

#---------------------------------------------------------------
%package -n python3-%{module}

Summary:	Python extension wrapping IBM's ICU C++ libraries
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pytest)

%description -n python3-%{module}
PyICU is Python extension wrapping IBM's International Components
for Unicode C++ library (ICU). ICU is a mature, widely used set of
C/C++ and Java libraries providing Unicode and Globalization support
for software applications. ICU is widely portable and gives applications
the same results on all platforms and between C/C++ and Javasoftware.

%files -n python3-%{module}
%doc LICENSE CHANGES CREDITS
%{py3_platsitedir}/*
#-------------------------------------------------------------------------------
%prep
%setup -qn %{realname}-%{version}
%patch0 -p1

%build
%py3_build

%check
python3 setup.py test

%install
%py3_install
# Remove tests
rm -rf %{buildroot}%{py3_platsitedir}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16268 |21mr|python-icu-2.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		realname PyICU
%define		module icu
%define debug_package %{nil}

Name:		python-%{module}
Version:	2.9
Release:	3
Summary:	Python extension wrapping IBM's ICU C++ libraries
Group:		Development/Python
License:	MIT
URL:		http://pyicu.osafoundation.org/
Source0:	https://pypi.python.org/packages/source/P/%{realname}/%{realname}-%{version}.tar.gz
Patch0:		python3.8.patch
BuildRequires:	pkgconfig(icu-i18n)

%description
PyICU is Python extension wrapping IBM's International Components
for Unicode C++ library (ICU). ICU is a mature, widely used set of
C/C++ and Java libraries providing Unicode and Globalization support
for software applications. ICU is widely portable and gives applications
the same results on all platforms and between C/C++ and Javasoftware.

#---------------------------------------------------------------
%package -n python3-%{module}

Summary:	Python extension wrapping IBM's ICU C++ libraries
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pytest)

%description -n python3-%{module}
PyICU is Python extension wrapping IBM's International Components
for Unicode C++ library (ICU). ICU is a mature, widely used set of
C/C++ and Java libraries providing Unicode and Globalization support
for software applications. ICU is widely portable and gives applications
the same results on all platforms and between C/C++ and Javasoftware.

%files -n python3-%{module}
%doc LICENSE CHANGES CREDITS
%{py3_platsitedir}/*
#-------------------------------------------------------------------------------
%prep
%setup -qn %{realname}-%{version}
%patch0 -p1

%build
%py3_build

%check
python3 setup.py test

%install
%py3_install
# Remove tests
rm -rf %{buildroot}%{py3_platsitedir}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16269 |21mr|python-idna-3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name idna

Summary:	Internationalized Domain Names in Applications (IDNA)
Name:		python-%{pypi_name}
Version:	3.3
Release:	1
License:	BSD and Python and Unicode
Group:		Development/Python
Url:		https://github.com/kjd/idna
Source0:	https://pypi.io/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
A library to support the Internationalised Domain Names in Applications (IDNA)
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
version of the protocol is often referred to as "IDNA2008" and can produce
different results from the earlier standard from 2003.

The library is also intended to act as a suitable drop-in replacement for the
"encodings.idna" module that comes with the Python standard library but
currently only supports the older 2003 specification.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Internationalized Domain Names in Applications (IDNA)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
A library to support the Internationalised Domain Names in Applications (IDNA)
protocol as specified in RFC 5891 <http://tools.ietf.org/html/rfc5891>. This
version of the protocol is often referred to as "IDNA2008" and can produce
different results from the earlier standard from 2003.

The library is also intended to act as a suitable drop-in replacement for the
"encodings.idna" module that comes with the Python standard library but
currently only supports the older 2003 specification.

%files -n python3-%{pypi_name}
%doc README* HISTORY* LICENSE*
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16270 |21mr|python-ifaddr-0.1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ifaddr
%global _description \
ifaddr is a small Python library that allows you to find all the IP addresses\
of the computer.

Name:		python-%{pypi_name}
Version:	0.1.7
Release:	2
Summary:	Python library that allows you to find all the IP addresses of the computer
Group:		Development/Python
License:	MIT
URL:		https://pypi.org/project/ifaddr/
Source:		%{pypi_source}
BuildArch:      noarch

%description %{_description}

#------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description -n python3-%{pypi_name} %{_description}

Python 3 version.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-*.egg-info/

#------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16271 |21mr|python-imagesize-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname	imagesize

Name:		python-imagesize
Summary:	Getting image size from png/jpeg/jpeg2000/gif file
Version:	1.2.0
Release:	1
Group:		Development/Python
License:	MIT
URL:		https://github.com/shibukawa/imagesize_py
Source0:	http://pypi.io/packages/source/i/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

%description
It parses image files’ header and return image size.
    PNG
    JPEG
    JPEG2000
    GIF

%package -n python3-%{srcname}
Summary:	Getting image size from png/jpeg/jpeg2000/gif file
Group:		Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-imagesize
It parses image files’ header and return image size.
    PNG
    JPEG
    JPEG2000
    GIF

%prep
%autosetup -p1 -n %{srcname}-%{version}

# drop bundled egg-info
rm -rf %{srcname}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%doc README.rst
%{python3_sitelib}/%{srcname}*
%{python3_sitelib}/__pycache__/%{srcname}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16272 |21mr|python-immutables-0.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name immutables

Summary:	An immutable mapping type for Python
Name:		python-immutables
Version:	0.16
Release:	1
License:	ASL2.0
Group:		Development/Python
Url:		https://github.com/regebro/tzlocal
Source0:	https://pypi.io/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
An immutable mapping type for Python.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	An immutable mapping type for Python
Group:		Development/Python

%description -n python3-%{pypi_name}
An immutable mapping type for Python.

%files -n python3-%{pypi_name}
%doc LICENSE README.*
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

rm -rf *.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16273 |21mr|python-importlib-metadata-4.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name importlib_metadata
%global pkg_name  importlib-metadata

Name:           python-%{pkg_name}
Version:        4.12.0
Release:        1
Summary:        Read metadata from Python packages
Group:          Development/Python
License:        ASL 2.0
URL:            http://importlib-metadata.readthedocs.io/
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-packaging
BuildRequires:  python3-pip
BuildRequires:  python3-zipp >= 0.5
BuildRequires:  python3-toml
BuildRequires:  python3-wheel
BuildRequires:  pyproject-rpm-macros

%description
importlib_metadata is a library which provides an API for accessing an
installed package’s metadata, such as its entry points or its top-level name.
This functionality intends to replace most uses of pkg_resources entry point
API and metadata API. Along with importlib.resources in Python 3.7 and newer
(backported as importlib_resources for older versions of Python), this can
eliminate the need to use the older and less efficient pkg_resources package.

#-------------------------------------------------------------------------
%package -n     python3-%{pkg_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pkg_name}
importlib_metadata is a library which provides an API for accessing an
installed package’s metadata, such as its entry points or its top-level name.
This functionality intends to replace most uses of pkg_resources entry point
API and metadata API. Along with importlib.resources in Python 3.7 and newer
(backported as importlib_resources for older versions of Python), this can
eliminate the need to use the older and less efficient pkg_resources package.

%files -n python3-%{pkg_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst
#-------------------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}

#%%generate_buildrequires
#%%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

# Don't ship docs sources
#rm -r %{buildroot}/%{python3_sitelib}/%{pypi_name}/docs/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16274 |21mr|python-importlib-resources-5.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define module importlib-resources

Name:           python-%{module}
Version:	5.4.0
Release:	2
Summary:        Read resources from Python packages
Group:          Development/Python
License:        ASL 2.0
Url:            http://importlib-resources.readthedocs.io/
Source0:	https://files.pythonhosted.org/packages/b5/d8/51ace1c1ea6609c01c7f46ca2978e11821aa0efaaa7516002ef6df000731/importlib_resources-5.4.0.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)

BuildArch:      noarch

%description
importlib_resources is a backport of Python standard library
importlib.resources module for Python 2.7, and 3.4 through 3.8.
#-------------------------------------------------------------

%package -n     python3-%{module}
Summary:        %{summary}

%description -n python3-%{module}
importlib_resources is a backport of Python standard library
importlib.resources module for Python 2.7, and 3.4 through 3.8.


%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir }/importlib_resources/
%{py3_puresitedir }/importlib_resources-%{version}-py%{python3_version}.egg-info
#-------------------------------------------------------------

%prep
%setup -qn importlib_resources-%{version}

# Remove bundled egg-info
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16275 |21mr|python-incremental-21.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Library for versioning Python projects
Name:		python-incremental
Version:	21.3.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/incremental/
Source0:	https://files.pythonhosted.org/packages/4f/c5/430765c697afc217c8491785de321a21fa4d983dda14bcd82feb965b0593/incremental-21.3.0.tar.gz
BuildRequires:	pkgconfig(python)
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description
Library for versioning Python projects.

#----------------------------------------------------------------------------

%package -n python2-incremental
%py2_migration_meta python2-incremental
Summary:	Library for versioning Python 2 projects
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description -n python2-incremental
Library for versioning Python 2 projects.

%files -n python2-incremental
%{py2_puresitedir}/incremental
%{py2_puresitedir}/incremental-%{version}-py%{py2_ver}.egg-info/

#----------------------------------------------------------------------------

%package -n python3-incremental
Summary:	Library for versioning Python 3 projects
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description -n python3-incremental
Library for versioning Python 3 projects.

%files -n python3-incremental
%{py3_puresitedir}/incremental
%{py3_puresitedir}/incremental-%{version}-py%{py3_ver}.egg-info/

#----------------------------------------------------------------------------

%prep
%setup -qn incremental-%{version}
%apply_patches

cp -a . %{py3dir}

%build
%py2_build
pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
popd
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16276 |21mr|python-inflect-5.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	inflect

Name:		python-%{module}
Version:	5.3.0
Release:	2
Summary:	Does lots of grammar things
Source0:	http://pypi.python.org/packages/source/i/%{module}/%{module}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://pypi.python.org/pypi/inflect
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(wheel)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(toml)
Requires:       python3egg(toml)

BuildArch:	noarch

%description
The methods of the class ``engine`` in module ``inflect.py`` provide plural
inflections, singular noun inflections, "a"/"an" selection for English words,
and manipulation of numbers as words.

Plural forms of all nouns, most verbs, and some adjectives are
provided. Where appropriate, "classical" variants (for example: "brother" ->
"brethren", "dogma" -> "dogmata", etc.) are also provided.

Single forms of nouns are also provided. The gender of singular pronouns
can be chosen (for example "they" -> "it" or "she" or "he" or "they"). 

Pronunciation-based "a"/"an" selection is provided for all English
words, and most initialisms.

It is also possible to inflect numerals (1,2,3) to ordinals (1st, 2nd, 3rd)
and to english words ("one", "two", "three").

In generating these inflections, ``inflect.py`` follows the Oxford
English Dictionary and the guidelines in Fowler's Modern English
Usage, preferring the former where the two disagree.

The module is built around standard British spelling, but is designed
to cope with common American variants as well. Slang, jargon, and
other English dialects are *not* explicitly catered for.

Where two or more inflected forms exist for a single word (typically a
"classical" form and a "modern" form), ``inflect.py`` prefers the
more common form (typically the "modern" one), unless "classical"
processing has been specified

%files
%doc *.rst tests/words.txt LICENSE
%{py3_puresitedir}/inflect.py*
%{py3_puresitedir}/inflect*.egg-info
%{py3_puresitedir}/__pycache__
#------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf inflect.egg-info
sed -i 's/addopts=--doctest-modules --flake8 --black --cov/addopts=--doctest-modules/g' pytest.ini

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3 tests/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16277 |21mr|python-influxdb-5.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name influxdb

Name:		python-%{pypi_name}
Version:	5.2.0
Release:	1
Summary:	InfluxDB client
Group:		Development/Python
License:	MIT
URL:		https://github.com/influxdb/influxdb-python
Source0:	https://pypi.io/packages/source/i/%{pypi_name}/%{pypi_name}-%{version}.tar.gz 
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
BuildArch:	noarch

%description
InfluxDB Python is a client for interacting with InfluxDB.

#---------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
Requires:	python3-requests
Requires:	python3-dateutil
Requires:	python3-pytz
Requires:	python3-six

%description -n python3-%{pypi_name}
InfluxDB Python is a client for interacting with InfluxDB.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*egg-info

#---------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16278 |21mr|python-iniconfig-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name iniconfig

Name:		python-iniconfig
Version:	1.1.1
Release:	1
Summary:	Brain-dead simple parsing of ini files
Group:		Development/Python
License:	MIT
URL:		http://github.com/RonnyPfannschmidt/iniconfig
Source0:	https://pypi.io/packages/source/i/iniconfig/iniconfig-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%global _description %{expand:
iniconfig is a small and simple INI-file parser module
having a unique set of features:

* tested against Python2.4 across to Python3.2, Jython, PyPy
* maintains order of sections and entries
* supports multi-line values with or without line-continuations
* supports "#" comments everywhere
* raises errors with proper line-numbers
* no bells and whistles like automatic substitutions
* iniconfig raises an Error if two sections have the same name.}
%description %_description

#----------------------------------------------------------------
%package -n python3-iniconfig
Summary:            %{summary}
Group:		Development/Python

%description -n python3-iniconfig %_description

%files -n python3-iniconfig
%doc README.txt
%license LICENSE
%{python3_sitelib}/*

#---------------------------------------------------------------
%prep
%autosetup -n iniconfig-%{version} -p1

%build
%py3_build


%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16279 |21mr|python-iniparse-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname iniparse

Summary: INI parser for python
Name: python-%oname
Version: 0.5
Release: 1
Url: http://code.google.com/p/iniparse/
Source0: https://files.pythonhosted.org/packages/4c/9a/02beaf11fc9ea7829d3a9041536934cd03990e09c359724f99ee6bd2b41b/iniparse-0.5.tar.gz
License: MIT
Group: Development/Python
BuildArch: noarch
BuildRequires: python2-devel
BuildRequires: pythonegg(setuptools)

%description
iniparse is a INI parser for Python which is:

 * Compatiable with ConfigParser: Backward compatible implementations of 
   ConfigParser, RawConfigParser, and SafeConfigParser are included that 
   are API-compatible with the Python standard library. They pass all the 
   unit tests in Python-2.4.4.
 * Preserves structure of INI files: Order of sections & options, indentation, 
   comments, and blank lines are preserved as far as possible when data is 
   updated.
 * More convenient: Values can be accessed using dotted notation 
   (cfg.user.name), or using container syntax (cfg['user']['name']).

It is very useful for config files that are updated both by users and by 
programs, since it is very disorienting for a user to have her config 
file completely rearranged whenever a program changes it. iniparse also 
allows making the order of entries in a config file significant, which is 
desirable in applications like image galleries.

#==============================================================================
%package -n python2-%oname
%py2_migration_meta python2-%oname
Summary: INI parser for python
Group:		Development/Python

%description -n python2-%oname
iniparse is a INI parser for Python which is:

 * Compatiable with ConfigParser: Backward compatible implementations of 
   ConfigParser, RawConfigParser, and SafeConfigParser are included that 
   are API-compatible with the Python standard library. They pass all the 
   unit tests in Python-2.4.4.
 * Preserves structure of INI files: Order of sections & options, indentation, 
   comments, and blank lines are preserved as far as possible when data is 
   updated.
 * More convenient: Values can be accessed using dotted notation 
   (cfg.user.name), or using container syntax (cfg['user']['name']).

It is very useful for config files that are updated both by users and by 
programs, since it is very disorienting for a user to have her config 
file completely rearranged whenever a program changes it. iniparse also 
allows making the order of entries in a config file significant, which is 
desirable in applications like image galleries.

%files -n python2-%oname
%doc python2/Changelog python2/LICENSE python2/LICENSE-PSF python2/README.md python2/html/* 
%{python2_sitelib}/%{oname}*

#==============================================================================

%package -n python3-%oname
Summary: INI parser for python
Group:		Development/Python
BuildRequires: python3-devel
BuildRequires: python3egg(setuptools)

%description -n python3-%oname
iniparse is a INI parser for Python which is:

 * Compatiable with ConfigParser: Backward compatible implementations of 
   ConfigParser, RawConfigParser, and SafeConfigParser are included that 
   are API-compatible with the Python standard library.
 * Preserves structure of INI files: Order of sections & options, indentation, 
   comments, and blank lines are preserved as far as possible when data is 
   updated.
 * More convenient: Values can be accessed using dotted notation 
   (cfg.user.name), or using container syntax (cfg['user']['name']).

It is very useful for config files that are updated both by users and by 
programs, since it is very disorienting for a user to have her config 
file completely rearranged whenever a program changes it. iniparse also 
allows making the order of entries in a config file significant, which is 
desirable in applications like image galleries.

%files -n python3-%oname
%doc python3/Changelog python3/LICENSE python3/LICENSE-PSF python3/README.md python3/html/* 
%{python3_sitelib}/%{oname}*

#==============================================================================

%prep
%setup -qc -n %oname-%{version}
mv %oname-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python3
%py3_install
rm -Rf %{buildroot}/%{_prefix}/share/doc/*
popd

pushd python2
%py2_install
rm -Rf %{buildroot}/%{_prefix}/share/doc/*
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16280 |21mr|python-ipaddress-1.0.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pyname ipaddress

Summary:	Port of the python2 3.3+ ipaddress module to 2.6+
Name:		python-%{pyname}
Version:	1.0.23
Release:	1
License:	Python
Group:		Development/Python
Url:		https://pypi.python.org/pypi/%{pyname}/%{version}
Source0:	https://files.pythonhosted.org/packages/b9/9a/3e9da40ea28b8210dd6504d3fe9fe7e013b62bf45902b458d1cdc3c34ed9/ipaddress-1.0.23.tar.gz
BuildRequires:	pythonegg(python)
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description
ipaddress provides the capabilities to create, manipulate and operate
on IPv4 and IPv6 addresses and networks.

The functions and classes in this module make it straightforward to
handle various tasks related to IP addresses, including checking
whether or not two hosts are on the same subnet, iterating over all
hosts in a particular subnet, checking whether or not a string
represents a valid IP address or network definition, and so on.

%package -n python2-%{pyname}
%py2_migration_meta python2-%{pyname}
Summary:	Port of the python 3.3+ ipaddress module to 2.6+

%description -n python2-%{pyname}
ipaddress provides the capabilities to create, manipulate and operate
on IPv4 and IPv6 addresses and networks.

The functions and classes in this module make it straightforward to
handle various tasks related to IP addresses, including checking
whether or not two hosts are on the same subnet, iterating over all
hosts in a particular subnet, checking whether or not a string
represents a valid IP address or network definition, and so on.

%files -n python2-%{pyname}
%doc README.md
%{py2_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pyname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16281 |21mr|python-IPy-1.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname IPy
Summary:        Python module for handling IPv4 and IPv6 Addresses and Networks
Name:           python-%{oname}
Version:	1.01
Group:		Development/Python
Release:	1
URL:            https://github.com/haypo/python-ipy
Source0:        https://github.com/autocracy/python-ipy/archive/IPy-%{version}.tar.gz
License:        BSD
BuildRequires:  python3-devel
BuildRequires:	pkgconfig(python2)
BuildArch:      noarch

%description
IPy is a Python module for handling IPv4 and IPv6 Addresses and Networks 
in a fashion similar to perl's Net::IP and friends. The IP class allows 
a comfortable parsing and handling for most notations in use for IPv4 
and IPv6 Addresses and Networks.

%package -n python3-%{oname}
Summary: Python 2 module for handling IPv4 and IPv6 Addresses and Networks

%description -n python3-%{oname}
IPy is a Python 2 module for handling IPv4 and IPv6 Addresses and Networks 
in a fashion similar to perl's Net::IP and friends. The IP class allows 
a comfortable parsing and handling for most notations in use for IPv4 
and IPv6 Addresses and Networks.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary: Python 2 module for handling IPv4 and IPv6 Addresses and Networks

%description -n python2-%{oname}
IPy is a Python module for handling IPv4 and IPv6 Addresses and Networks 
in a fashion similar to perl's Net::IP and friends. The IP class allows 
a comfortable parsing and handling for most notations in use for IPv4 
and IPv6 Addresses and Networks.


IPy is a Python 2 module for handling IPv4 and IPv6 Addresses and Networks 
in a fashion similar to perl's Net::IP and friends. The IP class allows 
a comfortable parsing and handling for most notations in use for IPv4 
and IPv6 Addresses and Networks.


%prep
%setup -q -n python-ipy-%{oname}-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

%files -n python2-%{oname}
%doc AUTHORS ChangeLog README.rst
%{python2_sitelib}/%{oname}*

%files -n python3-%{oname}
%doc AUTHORS ChangeLog README.rst
%{python3_sitelib}/%{oname}*
%{python3_sitelib}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16282 |21mr|python-ipython_genutils-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname ipython_genutils	

Name:		python-%{fname}
Summary:	Vestigial utilities from IPython
Version:	0.2.0
Release:	2
Source0:	https://files.pythonhosted.org/packages/e8/69/fbeffffc05236398ebfcfb512b6d2511c622871dca1746361006da310399/ipython_genutils-0.2.0.tar.gz
URL:		http://ipython.org/
Group:		Development/Python
License:	BSD
BuildArch:	noarch
BuildRequires:  python3egg(setuptools)

%description
Pretend this doesn’t exist. Nobody should use it.
Only there as a dependency for ipython.

%package -n python3-%{fname}
Summary:	Vestigial utilities from IPython
Group:		Development/Python

%description -n python3-%{fname}
Pretend this doesn’t exist. Nobody should use it.
Only there as a dependency for ipython.

%prep
%setup -qn %{fname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{fname}
%doc README.md
%{py3_puresitedir}/*egg-info
%{py3_puresitedir}/%{fname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16283 |21mr|python-iso8601-0.1.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	iso8601
%define	tarname iso8601

Name:		python-%{oname}
Version:	0.1.16
Release:	1
Epoch:		1
Summary:	Simple module to parse ISO 8601 dates
Url:		https://bitbucket.org/micktwomey/pyiso8601
Source0:	https://files.pythonhosted.org/packages/45/66/a943f702763c879e2754b46089a136ee1e58f0f720c58fa640c00281d3fd/iso8601-0.1.16.tar.gz
License:	MIT
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)

%description
This module parses the most common
forms of ISO 8601 date strings.

#--------------------------------------------------------------------
%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Simple module to parse ISO 8601 dates
Group:		Development/Python

%description -n python2-%{oname}
This module parses the most common
forms of ISO 8601 date strings.

%files -n python2-%{oname}
%{python2_sitelib}/*
#--------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	Simple module to parse ISO 8601 dates
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{oname}
This module parses the most common
forms of ISO 8601 date strings.

%files -n python3-%{oname}
%{python3_sitelib}/*

#--------------------------------------------------------------------


%prep
%setup -qc -n %oname-%{version}
mv %oname-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python3
%py3_install
popd

pushd python2
%py2_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16284 |21mr|python-isodate-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-isodate
Version:	0.6.0
Release:	2
Summary:        An ISO 8601 date/time/duration parser and formater

Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/isodate
Source0:	https://files.pythonhosted.org/packages/b1/80/fb8c13a4cd38eb5021dc3741a9e588e4d1de88d895c1910c6fc8a08b7a70/isodate-0.6.0.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-distribute

%description
This module implements ISO 8601 date, time and duration parsing. The
implementation follows ISO8601:2004 standard, and implements only date/time
representations mentioned in the standard. If something is not mentioned there,
then it is treated as non existent, and not as an allowed option.

For instance, ISO8601:2004 never mentions 2 digit years. So, it is not intended
by this module to support 2 digit years. (while it may still be valid as ISO
date, because it is not explicitly forbidden.) Another example is, when no time
zone information is given for a time, then it should be interpreted as local
time, and not UTC.

As this module maps ISO 8601 dates/times to standard Python data types, like
date, time, datetime and timedelta, it is not possible to convert all possible
ISO 8601 dates/times. For instance, dates before 0001-01-01 are not allowed by
the Python date and datetime classes. Additionally fractional seconds are
limited to microseconds. That means if the parser finds for instance
nanoseconds it will round it to microseconds.

%package -n python3-isodate
Summary:        An ISO 8601 date/time/duration parser and formater

Group:          Development/Python
Requires:       python3

%description -n python3-isodate
This module implements ISO 8601 date, time and duration parsing. The
implementation follows ISO8601:2004 standard, and implements only date/time
representations mentioned in the standard. If something is not mentioned there,
then it is treated as non existent, and not as an allowed option.

For instance, ISO8601:2004 never mentions 2 digit years. So, it is not intended
by this module to support 2 digit years. (while it may still be valid as ISO
date, because it is not explicitly forbidden.) Another example is, when no time
zone information is given for a time, then it should be interpreted as local
time, and not UTC.

As this module maps ISO 8601 dates/times to standard Python data types, like
date, time, datetime and timedelta, it is not possible to convert all possible
ISO 8601 dates/times. For instance, dates before 0001-01-01 are not allowed by
the Python date and datetime classes. Additionally fractional seconds are
limited to microseconds. That means if the parser finds for instance
nanoseconds it will round it to microseconds.

%prep
%setup -qn isodate-%{version}

%build
%py3_build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}

%files -n python3-isodate
%{py3_puresitedir}/isodate
%{py3_puresitedir}/isodate*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16285 |21mr|python-isort-5.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname isort

Name:          python-%{modname}
Version:       5.8.0
Release:       2
Summary:       Python utility / library to sort Python imports
Group:         Development/Python
License:       MIT
URL:           https://github.com/timothycrosley/%{modname}
Source0:       %{url}/archive/%{version}/%{modname}-%{version}.tar.gz
BuildArch:     noarch

%description
%{summary}.

# -----------------------------------------------------------

%package -n python2-%{modname}
%py2_migration_meta python2-%{modname}
Summary:            %{summary}
Provides:           python-%{modname}}
BuildRequires:      pkgconfig(python2)
BuildRequires:      pythonegg(setuptools)
BuildRequires:      pythonegg(mock)

%description -n python2-%{modname}
%{summary}.

Python 2 version.

%files -n python2-%{modname}
%doc *.md LICENSE
%{_bindir}/%{modname}
%{_bindir}/%{modname}-2*
%{python2_sitelib}/%{modname}/
%{python2_sitelib}/%{modname}-*.egg-info/

# -----------------------------------------------------------

%package -n python3-%{modname}
Summary:            %{summary}
BuildRequires:      pkgconfig(python3)
BuildRequires:      python3egg(setuptools)
BuildRequires:      python3egg(mock)

%description -n python3-%{modname}
%{summary}.

Python 3 version.

%files -n python3-%{modname}
%doc *.md LICENSE
%{_bindir}/%{modname}-3*
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-*.egg-info/

# -----------------------------------------------------------

%prep
%setup -qn %{modname}-%{version}

# Drop shebang
sed -i -e '1{\@^#!.*@d}' %{modname}/main.py
chmod -x LICENSE

%build
%py2_build
%py3_build

%install
%py2_install
mv %{buildroot}%{_bindir}/%{modname}{,-%{python2_version}}
ln -s %{modname}-%{py2_ver} %{buildroot}%{_bindir}/%{modname}-2
%py3_install
mv %{buildroot}%{_bindir}/%{modname}{,-%{python3_version}}
ln -s %{modname}-%{py3_ver} %{buildroot}%{_bindir}/%{modname}-3

ln -s %{modname}-2 %{buildroot}%{_bindir}/%{modname}

%files
%{_bindir}/isort-identify-imports
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16286 |21mr|python-itsdangerous-2.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	itsdangerous

Name:		python-%{oname}
Version:	2.0.1
Release:	2
Summary:	Various helpers to pass trusted data to untrusted environments and back
Group:		Development/Python
License:	BSD
Url:		http://github.com/mitsuhiko/itsdangerous
Source0:	https://pypi.python.org/packages/source/i/itsdangerous/itsdangerous-%{version}.tar.gz
BuildArch:	noarch

%description
It's Dangerous
   ... so better sign this

Various helpers to pass data to untrusted environments and to get it back
safe and sound.

This repository provides a module that is a port of the django signing
module.  It's not directly copied but some changes were applied to
make it work better on its own.

#-------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Various helpers to pass trusted data to untrusted environments and back
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{oname}
It's Dangerous
   ... so better sign this

Various helpers to pass data to untrusted environments and to get it back
safe and sound.

This repository provides a module that is a port of the django signing
module.  It's not directly copied but some changes were applied to
make it work better on its own.

%files -n python3-%{oname}
%doc CHANGES.rst LICENSE.rst README.rst
%{python3_sitelib}/%{oname}
%{python3_sitelib}/%{oname}-*.egg-info

#-------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
rm -fr docs/_themes/.gitignore

%build
%py3_build

%install
%py3_install

%check
%__python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16287 |21mr|python-jaraco.classes-3.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define    oname    jaraco.classes

Name:           python-%{oname}
Version:        3.2.2
Release:        1
Summary:        jaraco.classes
Group:          Development/Python
License:        MIT License
Url:            https://github.com/jaraco/jaraco.classes
Source0:        https://pypi.io/packages/source/j/%{oname}/%{oname}-%{version}.tar.gz
Patch0:         jaraco.classes-requirements.patch
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%description
jaraco.classes

%generate_buildrequires
%pyproject_buildrequires -R
#-------------------------------------------------------
%package -n python3-%{oname}
Summary:     jaraco.classes
Group:       Development/Python
Requires:    python3-jaraco.functools

%description -n python3-%{oname}
jaraco.classes

%files -n python3-%{oname} -f %{pyproject_files}
%doc README*

#-------------------------------------------------------
%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files jaraco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16288 |21mr|python-jaraco.collections-3.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name jaraco.collections

Name:           python-%{pypi_name}
Version:        3.5.2
Release:        1
Summary:        jaraco.collections
Group:          Development/Python
License:        MIT License
Url:            https://github.com/jaraco/jaraco.collections
Source0:        %{pypi_source}
Patch0:         jaraco.collections-requirements.patch
BuildRequires:  python3egg(setuptools)
BuildRequires:  pyproject-rpm-macros
BuildArch:      noarch

%description
Models and classes to supplement the stdlib 'collections' module.

%generate_buildrequires
%pyproject_buildrequires -R
#-----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:    jaraco.collections
Group:        Development/Python

%description -n python3-%{pypi_name}
Models and classes to supplement the stdlib 'collections' module.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*

#-----------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files jaraco


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16289 |21mr|python-jaraco.context-4.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define    pypi_name    jaraco.context

Name:           python-%{pypi_name}
Version:        4.1.2
Release:        1
Summary:        Context managers by jaraco
Group:          Development/Python
License:        MIT License
Url:            https://github.com/jaraco/jaraco.text
Source0:        %{pypi_source}
Patch0:         jaraco.context-requirements.patch
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)
BuildRequires:  pyproject-rpm-macros

%description
jaraco.text

%generate_buildrequires
%pyproject_buildrequires -R
#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:    Context managers by jaraco
Group:      Development/Python

%description -n python3-%{pypi_name}
jaraco.text

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*

#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files jaraco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16290 |21mr|python-jaraco.functools-3.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	jaraco.functools

Name:		python-%{pypi_name}
Version:	3.5.1
Release:	1
Summary:	jaraco.functools
Group:		Development/Python
License:	MIT License
Url:		https://github.com/jaraco/jaraco.functools
Source0:	%{pypi_source}
Patch0:		jaraco.functools-requirements.patch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(toml)
BuildRequires:	pyproject-rpm-macros
BuildArch:	noarch

%description
Additional functools in the spirit of stdlib's functools.

%generate_buildrequires
%pyproject_buildrequires -R
#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	jaraco.functools
Group:		Development/Python

%description -n python3-%{pypi_name}
Additional functools in the spirit of stdlib's functools.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*

#---------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files jaraco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16291 |21mr|python-jaraco.itertools-6.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	jaraco.itertools

Name:		python-%{pypi_name}
Version:	6.2.1
Release:	1
Summary:	Jaraco.itertools
Source0:	%{pypi_source}
License:	MIT
Group:		Development/Python
Url:		https://github.com/jaraco/%{pypi_name}
Patch0:		jaraco.itertools-reauirements.patch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(jaraco.packaging)
BuildRequires:	python3egg(inflect)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(more-itertools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pyproject-rpm-macros
BuildArch:	noarch

%description
jaraco.itertools.

%generate_buildrequires
%pyproject_buildrequires -R
#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Jaraco.itertools
Group:		Development/Python

%description -n python3-%{pypi_name}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README*
#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
sed -i 's/--flake8//' pytest.ini
sed -i 's/--black --cov//' pytest.ini

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files jaraco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16292 |21mr|python-jaraco.packaging-8.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name jaraco.packaging

Name:           python-%{pypi_name}
Version:        8.2.1
Release:        2
Summary:        Base namespace for jaraco packages
License:        MIT
Group:          Development/Python
Url:            https://github.com/jaraco/%{pypi_name}
Source:         https://files.pythonhosted.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pip)
BuildRequires:  python3egg(wheel)
BuildRequires:  python3egg(toml)
BuildRequires:  python3egg(setuptools-scm)
BuildArch:      noarch


%description
This package provides a base namespace to guarantee
that other jaraco packages can be imported.

This should not be installed directly, all packages
using the  "jaraco" namespace should depend on it.
#--------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Base namespace for jaraco packages
Group:          Development/Python

%description -n python3-%{pypi_name}
This package provides a base namespace to guarantee
that other jaraco packages can be imported.

This should not be installed directly, all packages
using the  "jaraco" namespace should depend on it.

%files -n python3-%{pypi_name}
%doc LICENSE *.rst
%{_bindir}/dependency-tree
%{py3_puresitedir}/jaraco
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

#--------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16293 |21mr|python-jaraco.text-3.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define    pypi_name    jaraco.text

Name:           python-%{pypi_name}
Version:        3.9.0
Release:        1
Summary:        jaraco.text
Group:          Development/Python
License:        MIT License
Url:            https://github.com/jaraco/jaraco.text
Source0:        %{pypi_source}
Patch0:         jaraco.text-requirements.patch
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)
BuildRequires:  pyproject-rpm-macros

%description
jaraco.text

%generate_buildrequires
%pyproject_buildrequires -R
#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:    jaraco.text
Group:      Development/Python

%description -n python3-%{pypi_name}
jaraco.text

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.rst

#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files jaraco

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16294 |21mr|python-jdcal-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module jdcal

Summary:	Julian dates from proleptic Gregorian and Julian calendars
Name:		python-%{module}
Version:	1.4.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/phn/jdcal
Source0:	https://github.com/phn/jdcal/archive/v%{version}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
This module contains functions for converting between Julian dates and calendar
dates.

A function for converting Gregorian calendar dates to Julian dates, and another
function for converting Julian calendar dates to Julian dates are defined.
Two functions for the reverse calculations are also defined.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Julian dates from proleptic Gregorian and Julian calendars
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
This module contains functions for converting between Julian dates and calendar
dates.

A function for converting Gregorian calendar dates to Julian dates, and another
function for converting Julian calendar dates to Julian dates are defined.
Two functions for the reverse calculations are also defined.

%files -n python3-%{module}
%doc README.rst
%{python3_sitelib}/%{module}*
%{python3_sitelib}/__pycache__/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16295 |21mr|python-jeepney-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name jeepney

Summary:	Python DBus protocol client
Name:		python-jeepney
Version:	0.6.0
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://gitlab.com/takluyver/jeepney
Source0:	%{pypi_source}
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildArch:	noarch

%define _description %{expand:
This is a low-level, pure Python DBus protocol client. It has an I/O-free core, 
and integration modules for different event loops.
DBus is an inter-process communication system, mainly used in Linux.
}

%description
%{_description}

#------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name}
%doc LICENSE README.rst
%{python3_sitelib}/*

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n jeepney-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16296 |21mr|python-jinja2-3.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Jinja2
%define fname   jinja2

# jinja requires itself ( as python-sphinx use it ) to build doc
%bcond_without doc

Summary:	Python template engine
Name:		python-jinja2
Version:	3.0.3
Release:	2
License:	BSD
Group:		Development/Python
Url:		http://jinja.pocoo.org/
Source0:	https://pypi.io/packages/source/J/Jinja2/Jinja2-%{version}.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(markupsafe)
BuildRequires:	python3egg(pallets-sphinx-themes)
BuildRequires:	python3-sphinxcontrib-log-cabinet
%if %{with doc}
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(pallets-sphinx-themes)
BuildRequires:	python3egg(sphinx-issues)
%endif
Obsoletes:	python-jinja < 2.0
Recommends:	python3-markupsafe
BuildArch:	noarch

%description
Jinja2 is a library for Python 2.4 and onwards that is designed to be
flexible, fast and secure. If you have any exposure to other
text-based template languages, such as Smarty or Django, you should
feel right at home with Jinja2. It's both designer and developer
friendly by sticking to Python's principles and adding functionality
useful for templating environments.

#----------------------------------------------------------------------------

%package -n python3-jinja2
Summary:	Python template engine
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-distribute
BuildRequires:	python3-markupsafe
Recommends:	python3-markupsafe

%description -n python3-jinja2
Jinja2 is a library for Python 2.4 and onwards that is designed to be
flexible, fast and secure. If you have any exposure to other
text-based template languages, such as Smarty or Django, you should
feel right at home with Jinja2. It's both designer and developer
friendly by sticking to Python's principles and adding functionality
useful for templating environments.

%files -n python3-jinja2
%doc README.rst LICENSE.rst examples
%{python3_sitelib}/%{fname}/*
%{python3_sitelib}/%{pypi_name}-%{version}-py%{py3_ver}.egg-info
%if %{with doc}
%doc docs/_build/html
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%if %{with doc}
%make -C docs html
%endif

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16297 |21mr|python-jmespath-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	upstream_name jmespath

Name:		python-%{upstream_name}
Version:	0.10.0
Release:	1
Source0:	https://github.com/jmespath/jmespath.py/archive/%{version}/jmespath-%{version}.tar.gz
License:	Public Domain
Summary:	JMESPath is a query language for JSON
URL:		https://github.com/jmespath/jmespath.py
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
JMESPath (pronounced "james path") allows you to declaratively specify how to
extract elements from a JSON document.

For example, given this document:

{"foo": {"bar": "baz"}}

The jmespath expression foo.bar will return "baz".

%package -n python3-%{upstream_name}
License:	Public Domain
Summary:	JMESPath is a query language for JSON
Group:		Development/Python

%description -n python3-%{upstream_name}
A low-level interface to a growing number of Amazon Web Services. The botocore
package is the foundation for the AWS CLI as well as boto3.

%prep
%setup -qn %{upstream_name}.py-%{version}

%build
%py3_build

%install
%py3_install

%files
%{_bindir}/jp.py

%files -n python3-%{upstream_name}
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16298 |21mr|python-joblib-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	joblib

Name:		python-%{oname}
Version:	1.0.1
Release:	1
Summary:	Lightweight pipelining: using Python functions as pipeline jobs
Group:		Development/Python
License:	BSD
Url:		https://joblib.readthedocs.io
Source0:	https://files.pythonhosted.org/packages/6e/1b/b6705e67e288b4f66f99d362ffff0ac93bda3570b0fcb4a5a4e87172108d/joblib-1.0.1.tar.gz
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Joblib is a set of tools to provide **lightweight pipelining in
Python**. In particular:

1. transparent disk-caching of functions and lazy re-evaluation
   (memoize pattern)

2. easy simple parallel computing

Joblib is optimized to be **fast** and **robust** in particular on large
data and has specific optimizations for `numpy` arrays. It is
**BSD-licensed**.


    ==================== ===============================================
    **Documentation:**       https://joblib.readthedocs.io

    **Download:**            http://pypi.python.org/pypi/joblib#downloads

    **Source code:**         http://github.com/joblib/joblib

    **Report issues:**       http://github.com/joblib/joblib/issues
    ==================== ===============================================


Vision
--------

The vision is to provide tools to easily achieve better performance and
reproducibility when working with long running jobs.

 *  **Avoid computing twice the same thing**: code is rerun over an
    over, for instance when prototyping computational-heavy jobs (as in
    scientific development), but hand-crafted solution to alleviate this
    issue is error-prone and often leads to unreproducible results

 *  **Persist to disk transparently**: persisting in an efficient way
    arbitrary objects containing large data is hard. Using
    joblib's caching mechanism avoids hand-written persistence and
    implicitly links the file on disk to the execution context of
    the original Python object. As a result, joblib's persistence is
    good for resuming an application status or computational job, eg
    after a crash.

Joblib addresses these problems while **leaving your code and your flow
control as unmodified as possible** (no framework, no new paradigms).

Main features
------------------

1) **Transparent and fast disk-caching of output value:** a memoize or
   make-like functionality for Python functions that works well for
   arbitrary Python objects, including very large numpy arrays. Separate
   persistence and flow-execution logic from domain logic or algorithmic
   code by writing the operations as a set of steps with well-defined
   inputs and  outputs: Python functions. Joblib can save their
   computation to disk and rerun it only if necessary::

      >>> from joblib import Memory
      >>> cachedir = 'your_cache_dir_goes_here'
      >>> mem = Memory(cachedir)
      >>> import numpy as np
      >>> a = np.vander(np.arange(3)).astype(np.float)
      >>> square = mem.cache(np.square)
      >>> b = square(a) # doctest: +ELLIPSIS
      [Memory] Calling square...
      square(array([[0., 0., 1.],
             [1., 1., 1.],
             [4., 2., 1.]]))
     square - 0...s, 0.0min

      >>> c = square(a)
      >>> # The above call did not trigger an evaluation

2) **Embarrassingly parallel helper:** to make it easy to write readable
   parallel code and debug it quickly::

      >>> from joblib import Parallel, delayed
      >>> from math import sqrt
      >>> Parallel(n_jobs=1)(delayed(sqrt)(i**2) for i in range(10))
      [0.0, 1.0, 2.0, 3.0, 4.0, 5.0, 6.0, 7.0, 8.0, 9.0]


3) **Fast compressed Persistence**: a replacement for pickle to work
   efficiently on Python objects containing large data (
   *joblib.dump* & *joblib.load* ).

..
    >>> import shutil ; shutil.rmtree(cachedir)

#----------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Lightweight pipelining: using Python functions as pipeline jobs
Group:		Development/Python

%description -n python3-%{oname}
Joblib is a set of tools to provide **lightweight pipelining in
Python**. In particular:

1. transparent disk-caching of functions and lazy re-evaluation
   (memoize pattern)

2. easy simple parallel computing

Joblib is optimized to be **fast** and **robust** in particular on large
data and has specific optimizations for `numpy` arrays. It is
**BSD-licensed**.

%files -n python3-%{oname}
%doc .readthedocs-requirements.txt
%doc LICENSE.txt
%doc doc/_templates/layout.html
%{python3_sitelib}/joblib/__pycache__
%{python3_sitelib}/joblib/*.py*
%{python3_sitelib}/joblib/externals/__pycache__
%{python3_sitelib}/joblib/externals/*.py*
%{python3_sitelib}/joblib/externals/cloudpickle/__pycache__
%{python3_sitelib}/joblib/externals/cloudpickle/*.py*
%{python3_sitelib}/joblib/externals/loky/__pycache__
%{python3_sitelib}/joblib/externals/loky/*.py*
%{python3_sitelib}/joblib/externals/loky/backend/__pycache__
%{python3_sitelib}/joblib/externals/loky/backend/*.py*
%{python3_sitelib}/joblib/test/__pycache__
%{python3_sitelib}/joblib/test/*.py*
%{python3_sitelib}/joblib/test/data/*
%{python3_sitelib}/joblib*.egg-info

#----------------------------------------------------------------------
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16299 |21mr|python-josepy-1.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name josepy

%bcond_without docs

Name:           python-%{pypi_name}
Version:        1.13.0
Release:        1
Summary:        JOSE protocol implementation in Python
Group:          Development/Python
License:        ASL 2.0
URL:            https://pypi.python.org/pypi/josepy
Source0:        %{pypi_source}
BuildArch:      noarch

# Remove various unpackaged testing dependencies that are used only for linting
Patch0:         0000-ignore-missing-linters.patch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-pytest

# Used to verify OpenPGP signature
BuildRequires:  gnupg2

%if %{with docs}
BuildRequires:  make
BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme
%endif

%description
JOSE protocol implementation in Python using cryptography.

#-------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
%if %{with docs}
Recommends:     python-%{pypi_name}-doc
%endif

%description -n python3-%{pypi_name}
JOSE protocol implementation in Python using cryptography.

This is the Python 3 version of the package.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE.txt
%doc README.rst
%{_bindir}/jws

#-------------------------------------------------------

%if %{with docs}
%package -n python-%{pypi_name}-doc
Summary:        Documentation for python-%{pypi_name}
Group:          Documentation
Conflicts:      python2-%{pypi_name} < 1.1.0-9
Conflicts:      python3-%{pypi_name} < 1.1.0-9

%description -n python-%{pypi_name}-doc
Documentation for python-%{pypi_name}

%files -n python-%{pypi_name}-doc
%doc README.rst
%{_mandir}/man1/*

%endif

#-------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel

# Build documentation
%if %{with docs}
%__python3 setup.py install --user
make -C docs man PATH=${HOME}/.local/bin:$PATH SPHINXBUILD=sphinx-build-3
%endif

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%if %{with docs}
install -Dpm0644 -t %{buildroot}%{_mandir}/man1 docs/_build/man/*.1*
%endif

%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16300 |21mr|python-js2py-0.71-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module js2py

Summary:	Translates JavaScript to Python code
Name:		python-js2py
Version:	0.71
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/PiotrDabkowski/Js2Py
Source0:	https://files.pythonhosted.org/packages/36/61/3c6a930ffcee1026a495406dd3c156ae400cf7aa14d26bfbbd0df638b4b9/Js2Py-0.71.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Translates JavaScript to Python code. Js2Py is able to translate and execute
virtually any JavaScript code.
Js2Py is written in pure python and does not have any dependencies.
Basically an implementation of JavaScript core in pure python.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Translates JavaScript to Python code
Group:		Development/Python

%description -n python3-%{module}
Translates JavaScript to Python code. Js2Py is able to translate and execute
virtually any JavaScript code.
Js2Py is written in pure python and does not have any dependencies.
Basically an implementation of JavaScript core in pure python.

%files -n python3-%{module}
%{python3_sitelib}/*

#------------------------------------------------------------------

%prep
%setup -qn Js2Py-%{version}
%apply_patches
#remove bundled
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16301 |21mr|python-json-3.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-json
Version:        3.4
%define version_munge %(sed 's/\\./_/g' <<< %{version})
Release:        8
Summary:        A JSON reader and writer for Python

Group:          Development/Python
License:        LGPLv2+
URL:            https://sourceforge.net/projects/json-py/
Source0:        http://dl.sourceforge.net/json-py/json-py-%{version_munge}.zip

BuildArch:      noarch
BuildRequires:  pkgconfig(python2)

%description
json.py is an implementation of a JSON (http://json.org) reader and writer in
Python.

%prep
%setup -q -c
chmod a-x *

%build

%install
export PYTHON=%__python2
mkdir -p $RPM_BUILD_ROOT%{python2_sitelib}
install -p -m 0644 json.py minjson.py $RPM_BUILD_ROOT%{python2_sitelib}

%files
%doc changes.txt jsontest.py license.txt readme.txt
%{python2_sitelib}/*.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16302 |21mr|python-json-logger-0.1.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name python-json-logger

# Missing license file and tests
# https://github.com/madzak/python-json-logger/issues/50

Name:		python-json-logger
Version:	0.1.11
Release:	1
Summary:	A python library adding a json log formatter
Group:		Development/Python
License:	BSD
URL:		http://github.com/madzak/python-json-logger
Source0:	https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
A python library adding a json log formatter

#------------------------------------------------------------------
%package -n     python3-json-logger
Summary:        A python library adding a json log formatter
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
Requires:       python3-setuptools

%description -n python3-json-logger
A python library adding a json log formatter

%files -n python3-json-logger
%{python3_sitelib}/pythonjsonlogger
%{python3_sitelib}/python_json_logger-%{version}-py?.?.egg-info

#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16303 |21mr|python-jsonpatch-1.32-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name jsonpatch

Name:           python-jsonpatch
Version:	1.32
Release:	1
Group:          Development/Python
Summary:        Apply JSON-Patches (RFC 6902)
License:        Modified BSD License
URL:            https://github.com/stefankoegl/python-json-patch
Source0:	https://files.pythonhosted.org/packages/21/67/83452af2a6db7c4596d1e2ecaa841b9a900980103013b867f2865e5e1cf0/jsonpatch-1.32.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description
Library to apply JSON Patches according to RFC 6902.

#-----------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Apply JSON-Patches (RFC 6902)
Group:          Development/Python

%description -n python3-%{pypi_name}
Library to apply JSON Patches according to RFC 6902.

%files -n python3-%{pypi_name}
%doc README.md
%{_bindir}/jsondiff
%{_bindir}/jsonpatch
%{python3_sitelib}/

#-----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
#%apply_patches

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

# fix shebangs
sed -i 's#usr/bin/env python#usr/bin/python3#' %{buildroot}%{_bindir}/jsondiff %{buildroot}%{_bindir}/jsonpatch

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16304 |21mr|python-jsonpath-rw-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name jsonpath-rw
%global sname jsonpath_rw

Name:		python-%{pypi_name}
Version:	1.4.0
Release:	1
Summary:	Extended implementation of JSONPath for Python
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/sileht/python-jsonpath-rw
Source0:	https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
This library provides a robust and significantly extended implementation of
JSONPath for Python, with a clear AST for meta-programming.

This library differs from other JSONPath implementations in that it is a full
language implementation, meaning the JSONPath expressions are first class
objects, easy to analyze, transform, parse, print, and extend.

#---------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:	Extensions for JSONPath RW
Group:		Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{pypi_name}
This library provides a robust and significantly extended implementation of
JSONPath for Python, with a clear AST for meta-programming.

This library differs from other JSONPath implementations in that it is a full
language implementation, meaning the JSONPath expressions are first class
objects, easy to analyze, transform, parse, print, and extend.

%files -n python3-%{pypi_name}
%doc README.rst
%{_bindir}/jsonpath.py
%{python3_sitelib}/%{sname}
%{python3_sitelib}/*.egg-info

#---------------------------------------------------------------------


%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16305 |21mr|python-jsonpath-rw-ext-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name jsonpath-rw-ext
%global sname jsonpath_rw_ext

Name:		python-%{pypi_name}
Version:	1.2.2
Release:	1
Summary:	Extensions for JSONPath RW
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/sileht/python-jsonpath-rw-ext
Source0:	https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Extensions for JSONPath RW

#---------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:	Extensions for JSONPath RW
Group:		Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pbr)

%description -n python3-%{pypi_name}
Extensions for JSONPath RW

%files -n python3-%{pypi_name}
%license LICENSE
%doc doc/source/readme.rst README.rst
%{python3_sitelib}/%{sname}
%{python3_sitelib}/*.egg-info

#---------------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:	jsonpath-rw-ext documentation
Group:		Documentation
BuildRequires:  python3egg(sphinx)

%description -n python-%{pypi_name}-doc
Documentation for jsonpath-rw-ext

%files -n python-%{pypi_name}-doc
%doc html 

#---------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

# generate html docs 
sphinx-build doc/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16306 |21mr|python-jsonpickle-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name jsonpickle

Name:           python-jsonpickle
# version is inserted into setup.cfg manually (see %%prep). Please be careful
# to use a Python-compatible version number if you need to set an "uncommon"
# version for this RPM.
Version:        2.2.0
Release:        1
Summary:        A module that allows any object to be serialized into JSON
Group:          Development/Python
License:        BSD
URL:            https://pypi.io/project/jsonpickle/
Source0:        %{pypi_source}

# upstream ships a pytest.ini which also enables modules like cov/flake8.
# Some of these plugins are not available in Fedora and/or are just useful for
# developers (not distro releases).
Patch1:         jsonpickle-remove-pytest-modules.patch

# Ignore Python 3.11's default __getstate__ implementation
# Makes things still work as expected with Python 3.11
# https://bugzilla.redhat.com/show_bug.cgi?id=2098982
# https://github.com/jsonpickle/jsonpickle/issues/395
# https://github.com/jsonpickle/jsonpickle/pull/396
Patch3:         396.patch

%global _docdir_fmt %{name}

BuildArch:      noarch

%description
This module allows python objects to be serialized to JSON in a similar fashion
to the pickle module.

#----------------------------------------------------
%package -n python3-jsonpickle
Summary:        A module that allows any object to be serialized into JSON
Group:          Development/Python

BuildRequires:  gnupg2
BuildRequires:  python3-importlib-metadata
BuildRequires:  python3-setuptools_scm >= 3.4.1

BuildRequires:  make
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

# dependencies to test to run optional tests
BuildRequires:  python3-ecdsa
BuildRequires:  python3-numpy
BuildRequires:  python3-bson
# most of the test suite treats pandas as options but some test cases do not
BuildRequires:  python3-pandas
BuildRequires:  python3-pytest

BuildRequires:  python3-pymongo
BuildRequires:  python3-simplejson
BuildRequires:  python3-sqlalchemy
BuildRequires:  python3-toml
BuildRequires:  python3-ujson

Requires:  python3-importlib-metadata


%description -n python3-jsonpickle
This module allows python objects to be serialized to JSON in a similar fashion
to the pickle module.

This is the version for Python 3.

%files -n python3-jsonpickle
%license LICENSE
%{python3_sitelib}/*

#----------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

rm -r *.egg-info

%build
%py3_build

%install
%py3_install


%check
PYTHON=python3 make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16307 |21mr|python-jsonpointer-2.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name jsonpointer
%global github_name python-json-pointer

Summary:    Resolve JSON Pointers in Python
Name:       python-%{pypi_name}
Version:    2.1
Release:    21
License:    BSD
Group:      Development/Python
Url:        https://github.com/stefankoegl/%{github_name}
Source0:    https://pypi.io/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:  noarch

%description
Library to resolve JSON Pointers according to RFC 6901.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        Resolve JSON Pointers in Python
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools
Conflicts:      python-%{pypi_name} < 1.10-20
Obsoletes:      python-%{pypi_name} < 1.10-20

%description -n python3-%{pypi_name}
Library to resolve JSON Pointers according to RFC 6901.

%files -n python3-%{pypi_name}
%doc README.md AUTHORS
%{_bindir}/jsonpointer
%{_bindir}/jsonpointer-3*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install
mv %{buildroot}%{_bindir}/jsonpointer %{buildroot}%{_bindir}/jsonpointer-%{python3_version}
ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer-3
ln -s ./jsonpointer-%{python3_version} %{buildroot}%{_bindir}/jsonpointer

%check
%__python3 tests.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16308 |21mr|python-jsonschema-4.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	jsonschema

Name:		python-%{pypi_name}
Version:	4.16.0
Release:	2
Summary:	An implementation of JSON Schema validation for Python
Group:		Development/Python
License:	MIT
Url:		https://github.com/Julian/jsonschema
Source0:	https://pypi.io/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(wheel)
BuildRequires:	pyproject-rpm-macros
BuildArch:	noarch


%description
jsonschema is JSON Schema validator currently based on
http://tools.ietf.org/html/draft-zyp-json-schema-03

#----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	An implementation of JSON Schema validation for Python
Group:		Development/Python

%description -n python3-%{pypi_name}
jsonschema is JSON Schema validator currently based on
http://tools.ietf.org/html/draft-zyp-json-schema-03

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc CHANGELOG.rst COPYING README.rst
%{_bindir}/jsonschema

#----------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}


%check
%pytest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16309 |21mr|python-junitxml-0.7-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name junitxml

Name:           python-%{pypi_name}
Version:        0.7
Release:        22%{?dist}
Summary:        PyJUnitXML, a pyunit extension to output JUnit compatible XML
Group:		Development/Python

License:        LGPLv3
URL:            https://launchpad.net/pyjunitxml
Source0:        https://pypi.python.org/packages/source/j/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel


%global _description\
PyJUnitXML\
==========\
A Python unittest TestResult that outputs JUnit\
compatible XML.

%description %_description

%package -n python3-%{pypi_name}
Summary: PyJUnitXML, a pyunit extension to output JUnit compatible XML
BuildRequires: python3-devel

%description -n python3-%{pypi_name}
PyJUnitXML
==========
A Python unittest TestResult that outputs JUnit
compatible XML.


%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}

%build
pushd %{py3dir}
%{__python3} setup.py build
popd

%install
pushd %{py3dir}
%{__python3} setup.py install --skip-build --root %{buildroot}
popd
mv %{buildroot}%{_bindir}/pyjunitxml %{buildroot}%{_bindir}/pyjunitxml-%{python3_version}
ln -s ./pyjunitxml-%{python3_version} %{buildroot}%{_bindir}/pyjunitxml-3

%files -n python3-%{pypi_name}
%doc COPYING
%{_bindir}/pyjunitxml-3
%{_bindir}/pyjunitxml-%{python3_version}
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16310 |21mr|python-jwcrypto-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define module	jwcrypto

Summary:	Implements JWK,JWS,JWE specifications using python-cryptography
Name:		python-%{module}
Version:	1.0.0
Release:	1
License:	LGPLv3+
Group:		Development/Python
Url:		https://github.com/latchset/
Source0:	https://github.com/latchset/jwcrypto/archive/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cryptography)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(setuptools)

%description
Implements JWK,JWS,JWE specifications using python-cryptography.

#------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Implements JWK,JWS,JWE specifications using python-cryptography
Group:		Development/Python

%description -n python3-%{module}
Implements JWK,JWS,JWE specifications using python-cryptography.

%files -n python3-%{module}
%doc LICENSE README.md
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build

%install
PYTHONDONTWRITEBYTECODE=1 python3 setup.py install --root=%{buildroot}
rm -rf %{buildroot}%{_docdir}/%{module}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16311 |21mr|python-jwt-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname PyJWT
# what it's imported as
%global libname jwt
# name of egg info directory
%global eggname %{srcname}
# package name fragment
%global pkgname %{libname}

%global common_description %{expand:
A Python implementation of JSON Web Token draft 01. This library provides a
means of representing signed content using JSON data structures, including
claims to be transferred between two parties encoded as digitally signed and
encrypted JSON objects.}

Name:           python-%{pkgname}
Version:        1.7.1
Release:        1
Summary:        JSON Web Token implementation in Python
Group:		Development/Python
License:        MIT
URL:            https://github.com/jpadilla/pyjwt
Source0:        %pypi_source
BuildArch:      noarch


%description %{common_description}


%package -n python3-%{pkgname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-cryptography >= 1.4.0
BuildRequires:  python3-pytest

%description -n python3-%{pkgname} %{common_description}

%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info
# prevent pullng in `addopts` for pytest run later
rm setup.cfg


%build
%py3_build


%install
%py3_install


%files -n python3-%{pkgname}
%doc README.rst AUTHORS
%license LICENSE
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info
%{_bindir}/pyjwt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16312 |21mr|python-kafka-2.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name kafka-python

Name:		python-kafka
Version:	2.0.2
Release:	1
Summary:	Pure Python client for Apache Kafka
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/mumrah/%{pypi_name}
Source0:	https://pypi.io/packages/source/k/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:        noarch

%description
This module provides low-level protocol support for Apache Kafka as well as high-level
consumer and producer classes. Request batching is supported by the protocol as well as
broker-aware request routing. Gzip and Snappy compression is also supported for message
sets.

#-----------------------------------------------------------------
%package -n python3-kafka
Summary:	Pure Python client for Apache Kafka
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(sphinx)

%description -n python3-kafka
This module provides low-level protocol support for Apache Kafka as well as high-level
consumer and producer classes. Request batching is supported by the protocol as well as
broker-aware request routing. Gzip and Snappy compression is also supported for message
sets.

%files -n python3-kafka
%{python3_sitelib}/kafka
%{python3_sitelib}/kafka*.egg-info
%doc README.rst

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

rm -r *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16313 |21mr|python-kazoo-2.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name kazoo

Name:		python-%{pypi_name}
Version:	2.8.0
Release:	1
Summary:	Higher level Python Zookeeper client
Group:		Development/Python
License:	ASL 2.0
URL:		https://kazoo.readthedocs.org
Source0:	https://pypi.python.org/packages/source/k/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Kazoo is a Python library designed to make working with Zookeeper a more
hassle-free experience that is less prone to errors.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Higher level Python Zookeeper client
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
Kazoo is a Python library designed to make working with Zookeeper a more
hassle-free experience that is less prone to errors.

%files -n python3-%{pypi_name}
%doc README.md LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#---------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build
%py3_build


%install
%py3_install

#delete tests
rm -fr %{buildroot}%{python3_sitelib}/%{pypi_name}/tests/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16314 |21mr|python-kdcproxy-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name kdcproxy

Summary:	MS-KKDCP (kerberos proxy) WSGI module
Name:		python-%{pypi_name}
Version:	1.0.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/npmccallum/kdcproxy
Source0:	https://github.com/npmccallum/kdcproxy/archive/v%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pyasn1)
BuildRequires:	python3egg(dnspython)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This package contains a Python 2.x WSGI module for proxying KDC requests over
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
minimal configuration.

#-----------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	MS-KKDCP (kerberos proxy) WSGI module
Group:		Development/Python
Requires:	python3egg(pyasn1)
Requires:	python3egg(dnspython)

%description -n python3-%{pypi_name}
This package contains a Python 2.x WSGI module for proxying KDC requests over
HTTP by following the MS-KKDCP protocol. It aims to be simple to deploy, with
minimal configuration.

%files -n python3-%{pypi_name}
%doc COPYING README
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}


%build
%py3_build

%install
%py3_install
find %{buildroot}%{python3_sitelib}/%{pypi_name}/ -name '*.py' -exec chmod 755 '{}' \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16315 |21mr|python-kerberos-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname kerberos

Summary:	A high-level wrapper for Kerberos (GSSAPI) operations
Name:		python-kerberos
Version:	1.3.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://pypi.python.org/pypi/kerberos
Source0:	https://files.pythonhosted.org/packages/39/cd/f98699a6e806b9d974ea1d3376b91f09edcb90415adbf31e3b56ee99ba64/kerberos-1.3.1.tar.gz
# Accept principal=None in authGSSClientInit. Upstream ticket
# https://www.calendarserver.org/ticket/942
BuildRequires:	pythonegg(setuptools)
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
This Python package is a high-level wrapper for Kerberos (GSSAPI) operations.
The goal is to avoid having to build a module that wraps the entire
Kerberos.framework, and instead offer a limited set of functions that do what
is needed for client/serverKerberos authentication based on
<http://www.ietf.org/rfc/rfc4559.txt>.

Much of the C-code here is adapted from Apache's mod_auth_kerb-5.0rc7.

%files
%{python2_sitearch}/kerberos*.so
%{python2_sitearch}/kerberos-%{version}-*.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:        A high-level wrapper for Kerberos (GSSAPI) operations
Group:          Development/Python

%description -n python3-%{srcname}
This Python package is a high-level wrapper for Kerberos (GSSAPI) operations.
The goal is to avoid having to build a module that wraps the entire
Kerberos.framework, and instead offer a limited set of functions that do what
is needed for client/serverKerberos authentication based on
<http://www.ietf.org/rfc/rfc4559.txt>.

Much of the C-code here is adapted from Apache's mod_auth_kerb-5.0rc7.

%files -n python3-%{srcname}
%{python3_sitearch}/kerberos*.so
%{python3_sitearch}/kerberos-%{version}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{srcname}-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16316 |21mr|python-keyboard-0.13.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module keyboard

Summary:	Hook and simulate keyboard events
Name:		python-%{module}
Version:	0.13.5
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/boppreh/keyboard
Source0:	https://pypi.io/packages/source/k/%{module}/%{module}-%{version}.zip
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%define _description \
Take full control of your keyboard with this small Python library. \
Hook global events, register hotkeys, simulate key presses and much more.

%description
%{_description}

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{module}
%{_description} 

%files -n python3-%{module}
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py*.egg-info

#------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16317 |21mr|python-keyczar-0.71j-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module keyczar

Summary:	Toolkit for safe and simple cryptography
Name:		python-%{module}
Version:	0.71j
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		http://www.keyczar.org/
Source0:	https://github.com/google/keyczar/archive/Java_release_%{version}.tar.gz?/%{module}-Java_release_%{version}.tar.gz
BuildRequires:	pythonegg(pyasn1)
BuildRequires:	pythonegg(pycrypto)
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)
BuildArch:	noarch

%description
Keyczar is an open source cryptographic toolkit designed to make it easier and
safer for developers to use cryptography in their applications. Keyczar
supports authentication and encryption with both symmetric and asymmetric keys.

%files
%doc python/README python/LICENSE python/doc/pycrypt.pdf
%dir %{python2_sitelib}/%{module}/
%{python2_sitelib}/%{module}/*
%{python2_sitelib}/python_%{module}-*.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Toolkit for safe and simple cryptography
Group:		Development/Python
BuildRequires:	python3egg(pyasn1)
BuildRequires:	python3egg(pycrypto)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
Keyczar is an open source cryptographic toolkit designed to make it easier and
safer for developers to use cryptography in their applications. Keyczar
supports authentication and encryption with both symmetric and asymmetric keys.

%files -n python3-%{module}
%dir %{python3_sitelib}/%{module}/
%{python3_sitelib}/%{module}/*
%{python3_sitelib}/python_%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-Java_release_%{version}
pushd python
rm -rf python_%{module}.egg-info

cp -a . %{py3dir}
popd
%build
pushd python
%py2_build
popd

pushd %{py3dir}
%py3_build
popd

%install
pushd python
%py2_install
popd

pushd %{py3dir}
%py3_install
popd

rm -rf %{buildroot}/usr/bin/keyczart

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16318 |21mr|python-keyring-23.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname	keyring

Name:		python-keyring
Summary:	Python library to access the system keyring service
Version:	23.1.0
Release:	1
URL:		http://pypi.python.org/pypi/keyring
Source0:	https://files.pythonhosted.org/packages/cc/ff/89ec0e9c71181f631b7892a290b0a159875354b207b33e5012d3bcdf71b1/keyring-23.1.0.tar.gz
Group:		Development/Python
License:	MIT
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(toml)
Requires:	python3-gobject3
BuildArch:	noarch

%description
The Python keyring lib provides a easy way to access the system keyring
service from python. It can be used in any application that needs safe
password storage.

This package only provides file-based pseudo-keyrings. To interface with
gnome-keyring or KWallet, please install one of python-keyring-gnome or
python-keyring-kwallet.

#=========================================================================
%package -n python3-keyring
Summary:	Python library to access the system keyring service
Group:		Development/Python

%description -n python3-keyring
The Python keyring lib provides a easy way to access the system keyring
service from python. It can be used in any application that needs safe
password storage.

This package only provides file-based pseudo-keyrings. To interface with
gnome-keyring or KWallet, please install one of python-keyring-gnome or
python-keyring-kwallet.

%files -n python3-keyring
%doc README.rst CHANGES.rst 
%{python3_sitelib}/*egg-info
%{python3_sitelib}/%{fname}
%{_bindir}/python3-keyring
#=========================================================================
%prep
%setup -q -n %{fname}-%{version}

rm -rf %{fname}.egg-info
%apply_patches

%build
%py3_build


%install
%py3_install

# we don't ship tests they need a test environment
rm -rf %{buildroot}/%{python3_sitelib}/%{fname}/tests/
mv %{buildroot}/%{_bindir}/keyring %{buildroot}/%{_bindir}/python3-keyring

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16319 |21mr|python-kickstart-3.32-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname pykickstart

# Disable tests by default because they fail to run inside mock builds
# at the moment, but can run locally.  To build and run tests, do:
#     rpmbuild -ba --with runtests python-kickstart.spec
%bcond_with runtests

Name:		python-kickstart
Version:	3.32
Release:	3
License:	GPLv2 and MIT
Group:		Development/Python
Summary:	Python library and tools for manipulating kickstart files
Url:		http://fedoraproject.org/wiki/pykickstart
# This is a Red Hat maintained package. Thus the source is only available from
# within the srpm:
# https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/SRPMS/Packages/p/
# or git: git://github.com/rhinstaller/pykickstart.git
Source0:	https://github.com/pykickstart/pykickstart/releases/download/r%{version}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	gettext
BuildRequires:	python3-coverage
BuildRequires:	python3-devel
BuildRequires:	python3-nose
BuildRequires:	python3-ordered-set
BuildRequires:	python3-setuptools
BuildRequires:	python3-requests
BuildRequires:	python3-six


%description
Python library and tools for manipulating kickstart files

# Pykickstart utilities
%package -n pykickstart
Summary:	Python utilities for manipulating kickstart files
Group:		Development/Python
# Mageia package name for this subpackage...
Provides:	python-kickstart-utils = %{EVRD}
Requires:	python3-kickstart = %{EVRD}
# Deal with accidental breakage
Obsoletes:	%python2-utils < 3.21-3

%description -n pykickstart
Python utilities for manipulating kickstart files.

# Python 3 library
%package -n python3-kickstart
Summary:	Python 3 library for manipulating kickstart files
Group:		Development/Python
Provides:	python3-pykickstart = %{EVRD}
Requires: 	python3-six
Requires: 	python3-requests
Requires: 	python3-ordered-set

%description -n python3-kickstart
Python 3 library for manipulating kickstart files.
The binaries are found in the python-kickstart-utils package.

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
make PYTHON=%{__python3}


%install
%make_install PYTHON=%{__python3}

%if %{with runtests}
%check
make PYTHON=%{__python3} test
%endif

%files -n pykickstart
%license COPYING
%doc README.rst
%doc data/kickstart.vim
%{_bindir}/ksvalidator
%{_bindir}/ksflatten
%{_bindir}/ksverdiff
%{_bindir}/ksshell
%{_mandir}/man1/*

%files -n python3-kickstart
%license COPYING
%doc docs/2to3
%doc docs/programmers-guide
%doc docs/kickstart-docs.txt
%{python3_sitelib}/pykickstart/
%{python3_sitelib}/pykickstart*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16320 |21mr|python-kiwisolver-1.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module kiwisolver
%define	oname kiwi

%global __provides_exclude kiwisolver.so

Summary:	A fast implementation of the Cassowary constraint solver
Name:		python-%{module}
Version:	1.3.2
Release:	1
Group:		Development/Python
License:	BSD
Url:		https://github.com/nucleic/kiwi
Source0:	https://files.pythonhosted.org/packages/8e/87/259fde8cf07d06677f0a749cb157d079ebd00d40fe52faaab1a882a66159/kiwisolver-1.3.2.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pytest
BuildRequires:	python3-cppy
Provides:	python-%{module} = %{EVRD}

%description
Kiwi is an efficient C++ implementation of the Cassowary constraint solving
algorithm. Is is an implementation of the algorithm based on the seminal
Cassowary paper. It is *not* a refactoring of the original C++ solver. It has
been designed from the ground up to be lightweight and fast.
This package provides the module for Python 2.

#-----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A fast implementation of the Cassowary constraint solver
Group:		Development/Python
Provides:	python3-%{module} = %{EVRD}
Provides:	python3egg(kiwisolver) = %{EVRD}
Provides:	python%{py3_ver}dist(kiwisolver) = %{EVRD}

%description -n python3-%{module}
Kiwi is an efficient C++ implementation of the Cassowary constraint solving
algorithm. Is is an implementation of the algorithm based on the seminal
Cassowary paper. It is *not* a refactoring of the original C++ solver. It has
been designed from the ground up to be lightweight and fast.
This package provides the module for Python 3.

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_platsitedir}/%{module}.cpython-*.so
%{py3_platsitedir}/%{module}-%{version}-py3.?.egg-info/*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install


%check
PYTHONPATH="%{buildroot}%{py3_platsitedir}" py.test-%{py3_ver} py/tests/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16321 |21mr|python-kombu-5.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define srcname kombu

Name:		python-%{srcname}

Version:	5.2.4
Release:	1
Summary:	AMQP Messaging Framework for Python

Group:		Development/Python
License:	BSD
URL:		http://pypi.python.org/pypi/%{srcname}
Source0:	https://github.com/celery/kombu/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

# python3
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(setuptools)

%description
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
for message orientation, queuing, routing, reliability and security.
One of the most popular implementations of AMQP is RabbitMQ.
The aim of Kombu is to make messaging in Python as easy as possible by
providing an idiomatic high-level interface for the AMQP protocol, and
also provide proven and tested solutions to common messaging problems.

#---------------------------------------------------------------------
%package -n python3-kombu
Summary:	AMQP Messaging Framework for Python3
Group:		Development/Python
Requires:	python3
Requires:	python3egg(amqp) >= 1.4.2

%description -n python3-kombu
AMQP is the Advanced Message Queuing Protocol, an open standard protocol
for message orientation, queuing, routing, reliability and security.
One of the most popular implementations of AMQP is RabbitMQ.
The aim of Kombu is to make messaging in Python as easy as possible by
providing an idiomatic high-level interface for the AMQP protocol, and
also provide proven and tested solutions to common messaging problems.
Python3 module.

%files -n python3-kombu
%doc AUTHORS FAQ LICENSE READ* THANKS TODO examples/
%{py3_puresitedir}/%{srcname}/
%{py3_puresitedir}/%{srcname}*.egg-info

#---------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}
chmod 644 README.rst

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16322 |21mr|python-krbV-1.0.90-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python extension module for Kerberos 5
Name:		python-krbV
Version:	1.0.90
Release:	10
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/vijaykiran/python-krbv
Source0:	https://github.com/vijaykiran/python-krbv/archive/%{version}.tar.gz?/python-krbv-%{version}.tar.gz
Patch0:		krbv-remove-miss-krb5.patch
BuildRequires:	gawk
BuildRequires:	krb5-devel
BuildRequires:	pkgconfig(python2)

%description
python2-krbV allows python2 programs to use Kerberos 5 authentication and
security.

%package -n python2-krbV
%py2_migration_meta python2-krbV
Summary:	Python extension module for Kerberos 5

%description -n python2-krbV
python-krbV allows python programs to use Kerberos 5 authentication and
security.

%files -n python2-krbV
%doc README COPYING krbV-code-snippets.py
%{python2_sitearch}/krbVmodule.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n python-krbv-%{version}

%build
export PYTHON=%__python2
export LIBNAME="%{_lib}"
export CFLAGS="%{optflags} -Wextra"
./autogen.sh
%configure
%make LIBS='-lpython2.7'

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16323 |21mr|python-kubernetes-30.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global py3 python3
%global py3dev python3

%global library kubernetes
%global basehash a66f8df1dfc0e4f4a17093c7da273b9e485a55a0

Name:       python-%{library}
Version:	30.1.0
Release:	1
Summary:    Python client for the kubernetes API
License:    ASL 2.0
URL:        https://pypi.python.org/pypi/kubernetes
Group:      Development/Python
Source0:    https://github.com/kubernetes-client/python/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:    https://github.com/kubernetes-client/python-base/archive/%{basehash}.tar.gz
BuildArch:  noarch

#-----------------------------------------------------
%package -n %{py3}-%{library}
Summary:    Kubernetes Python Client
BuildRequires:  git
BuildRequires:  %{py3dev}-devel
BuildRequires:  %{py3}-setuptools
Requires:  %{py3}-certifi
Requires:  %{py3}-six
Requires:  %{py3}-dateutil
Requires:  %{py3}-setuptools
Requires:  %{py3}-urllib3
Requires:  %{py3}-PyYAML
Requires:  %{py3}-google-auth
Requires:  %{py3}-websocket-client

%description -n %{py3}-%{library}
Python client for the kubernetes API.

%files -n %{py3}-%{library}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{library}
%{python3_sitelib}/%{library}-*.egg-info
%exclude %{python3_sitelib}/%{library}/test
%exclude %{python3_sitelib}/%{library}/e2e_test

#-----------------------------------------------------

%package -n %{py3}-%{library}-tests
Summary:    Tests python-kubernetes library

Requires:  %{py3}-nose
Requires:  %{py3}-py
Requires:  %{py3}-mock
Requires:  %{py3}-%{library} = %{version}-%{release}

%description -n %{py3}-%{library}-tests
Tests python-kubernetes library

%description
Python client for the kubernetes API.

%files -n %{py3}-%{library}-tests
%license LICENSE
%{python3_sitelib}/%{library}/test
%{python3_sitelib}/%{library}/e2e_test

#-----------------------------------------------------

%prep
%autosetup -n python-%{version} -S git

sed -i 's/websocket-client.*/websocket-client>=0.43.0/g' requirements.txt

pushd kubernetes
rm -rf base
tar zxvf %{SOURCE1}
mv python-base-%{basehash} base
popd

%build
%py3_build

%install
%py3_install
cp -pr kubernetes/test %{buildroot}%{python3_sitelib}/%{library}/
cp -pr kubernetes/e2e_test %{buildroot}%{python3_sitelib}/%{library}/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16324 |21mr|python-lazy-object-proxy-1.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	lazy-object-proxy

Name:		python-%{module}
Summary:	A fast and thorough lazy object proxy
Version:	1.6.0
Release:	2
Url:		https://pypi.python.org/pypi/lazy-object-proxy
Source0:	https://files.pythonhosted.org/packages/bb/f5/646893a04dcf10d4acddb61c632fd53abb3e942e791317dcdd57f5800108/lazy-object-proxy-1.6.0.tar.gz
License:	GPLv2+
Group:		Development/Python
Patch0:		scmver.patch
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(setuptools-scm)

%description
A fast and thorough lazy object proxy
#==================================================================

%package -n python3-%{module}
Summary:	A fast and thorough lazy object proxy
Group:		Development/Python
Requires:	python3-logilab-common

%description -n python3-%{module}
A fast and thorough lazy object proxy

%files -n python3-%{module}
%{python3_sitearch}/lazy_object_proxy/*
%{python3_sitearch}/lazy_object_proxy*.egg-info/*
#==================================================================

%prep
%setup -qn %{module}-%{version}
%patch0 -p1

%build
%py3_build

%check
%define enable_tests_python3 0
%if %{enable_tests_python3}
PYTHONPATH=%{buildroot}%{py3_puresitedir} python3-pytest
%endif

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16325 |21mr|python-ldap3-2.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	ldap3

Name:		python-%{module}
Version:	2.9.1
Release:	1
Summary:	Strictly RFC 4510 conforming LDAP V3 pure Python client
Group:		Development/Python
License:	LGPLv2+
URL:		https://pypi.python.org/pypi/%{module}/%{version}
Source0:	https://files.pythonhosted.org/packages/43/ac/96bd5464e3edbc61595d0d69989f5d9969ae411866427b2500a8e5b812c0/ldap3-2.9.1.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
dap3 is a strictly RFC 4510 conforming LDAP V3 pure Python client library. 
The same codebase runs in Python 2, Python 3, PyPy and PyPy3.
#=========================================================================
%package -n python3-%{module}
Summary:	Strictly RFC 4510 conforming LDAP V3 pure Python client
Group:		Development/Python

%description -n python3-%{module}
dap3 is a strictly RFC 4510 conforming LDAP V3 pure Python client library. 
The same codebase runs in Python 2, Python 3, PyPy and PyPy3.

%files -n python3-%{module}
%doc README.rst _version.json
%doc COPYING.txt COPYING.LESSER.txt LICENSE.txt
%{python3_sitelib}/%{module}/
%{python3_sitelib}/%{module}-%{version}-py%{py3_ver}.egg-info
#=========================================================================
%prep
%setup -q -n %{module}-%{version}
%apply_patches

# Remove bundled egg-info
rm -r %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16326 |21mr|python-ldap-3.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	ldap

Summary:	Various LDAP-related Python modules
Name:		python-%{module}
Version:	3.4.3
Release:	1
Source0:	https://github.com/python-ldap/python-ldap/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
Patch0:		python-ldap-3.4.3-dirs.patch
License:	Modified CNRI Open Source License
Group:		Development/Python
Url:		http://python-ldap.sourceforge.net/
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	sasl-devel
BuildRequires:	pkgconfig(openssl)

%description
python2-ldap provides an object-oriented API to access LDAP directory 
servers from Python programs. Mainly it wraps the OpenLDAP 2.x libs 
for that purpose.

Additionally the package contains modules for other LDAP-related stuff 
(e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.).

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Various LDAP-related Python3 modules
Group:		Development/Python

%description -n python3-%{module}
python2-ldap provides an object-oriented API to access LDAP directory 
servers from Python programs. Mainly it wraps the OpenLDAP 2.x libs 
for that purpose.

Additionally the package contains modules for other LDAP-related stuff 
(e.g. processing LDIF, LDAPURLs, LDAPv3 schema, etc.).

%files -n python3-%{module}
%doc CHANGES README TODO Demo/
%{python3_sitearch}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build

%install
PYTHONDONTWRITEBYTECODE=1 %__python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16327 |21mr|python-ldappool-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname ldappool

Summary:	A connection pool for python-ldap
Name:		python-%{srcname}
Version:	3.0.0
Release:	1
License:	MPLv1.1 and GPLv2+ and LGPLv2+
Group:		Development/Python
Url:		https://github.com/openstack/ldappool
Source0:	https://files.pythonhosted.org/packages/source/l/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

%description
A simple connector pool for python-ldap.

The pool keeps LDAP connectors alive and let you reuse them,
drastically reducing the time spent to initiate a ldap connection.

The pool has useful features like:

- transparent re-connection on failures or server restarts
- configurable pool size and connectors timeouts
- configurable max lifetime for connectors
- a context manager to simplify acquiring and releasing a connector

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	A connection pool for python-ldap
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-ldap
BuildRequires:	python3-pbr
BuildRequires:	python3-stestr
BuildRequires:	python3-testtools
BuildRequires:	python3-testresources
Requires:	python3-ldap
Requires:	python3-prettytable

%description -n python3-%{srcname}
A simple connector pool for python-ldap.

The pool keeps LDAP connectors alive and let you reuse them,
drastically reducing the time spent to initiate a ldap connection.

The pool has useful features like:

- transparent re-connection on failures or server restarts
- configurable pool size and connectors timeouts
- configurable max lifetime for connectors
- a context manager to simplify acquiring and releasing a connector

%files -n python3-%{srcname}
%doc README.rst
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
PYTHON=python3 stestr-3 run


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16328 |21mr|python-lesscpy-0.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	lesscpy

Name:		python-%{pypi_name}
Version:	0.15.0
Release:	1
Summary:	Python LESS compiler
Group:		Development/Python
License:	MIT
Url:		https://github.com/lesscpy/lesscpy
Source0:	https://files.pythonhosted.org/packages/62/74/af0a9d0051857de9cae6e71468f697c3cb03141a12ea363583ac72bfa3c3/lesscpy-0.15.0.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-ply
BuildRequires:	python3-six
BuildRequires:	python3-nose
BuildRequires:	python3-coverage
BuildArch:	noarch

%description
LESSCPY
=======
Python LESS Compiler.

A compiler written in Python for the LESS language. For those of us not willing
or able to have node.js installed in our environment. Not all features of LESS
are supported (yet). Some features wil probably never be supported (JavaScript
evaluation). This program uses PLY (Python Lex-Yacc) to tokenize / parse the
input and is considerably slower than the NodeJS compiler. The plan is to
utilize this to build in proper syntax checking and perhaps YUI compressing.

#------------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python3 LESS Compiler
Group:		Development/Python

%description -n python3-%{pypi_name}
A compiler written in Python for the LESS language. For those of us not willing
or able to have node.js installed in our environment. Not all features of LESS
are supported (yet). Some features wil probably never be supported (JavaScript
evaluation). This program uses PLY (Python Lex-Yacc) to tokenize / parse the
input and is considerably slower than the NodeJS compiler. The plan is to
utilize this to build in proper syntax checking and perhaps YUI compressing.

%files -n python3-%{pypi_name}
%doc LICENSE README.rst
%{_bindir}/*lesscpy
%{python3_sitelib}/lesscpy
%{python3_sitelib}/lesscpy*.egg-info

#------------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install
cp %{buildroot}%{_bindir}/lesscpy %{buildroot}%{_bindir}/py3-lesscpy

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16329 |21mr|python-levenshtein-0.18.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define pypi_name Levenshtein

Summary:	Levenshtein Python extension and C library
Group:		Development/Python
Name:		python-levenshtein
Version:	0.18.1
Release:	1
License:	GPLv2+
Url:		https://github.com/ztane/python-Levenshtein
Source0:	https://pypi.io/packages/source/L/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0:		levenshtein-requires.patch
BuildRequires:	pyproject-rpm-macros
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-scikit-build

%description
The Levenshtein Python C extension module contains functions for fast
computation of
- Levenshtein (edit) distance, and edit operations
- string similarity
- approximate median strings, and generally string averaging
- string sequence and set similarity
It supports both normal and Unicode strings.

#----------------------------------------------------------------
%package -n python3-levenshtein
Summary:	Levenshtein Python extension and C library
Group:		Development/Python
Provides:	python3egg(levenshtein) = %{version}

%description -n python3-levenshtein
The Levenshtein Python C extension module contains functions for fast
computation of
- Levenshtein (edit) distance, and edit operations
- string similarity
- approximate median strings, and generally string averaging
- string sequence and set similarity
It supports both normal and Unicode strings.

%files -n python3-levenshtein -f %{pyproject_files}
%doc COPYING README*
%doc src/Levenshtein/StringMatcher.py
#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

#drop additional development rapidfuzz files
rm -r %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16330 |21mr|python-libvirt-9.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libvirt-python
%define debug_package %nil

%define module libvirt

Summary:	The libvirt virtualization API python 2 binding
Name:		python-%{module}
Version:	9.1.0
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		http://libvirt.org
Source0:	http://libvirt.org/sources/python/%{oname}-%{version}.tar.gz
BuildRequires:	python3-lxml
BuildRequires:	python3-nose
BuildRequires:	libvirt-utils
BuildRequires:	libvirt-devel
BuildRequires:	pkgconfig(python3)

%description
The libvirt-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	The libvirt virtualization API python 3 binding
Group:		Development/Python

%description -n python3-%{module}
The libvirt-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libvirt library to use the virtualization capabilities
of recent versions of Linux (and other OSes).

%files -n python3-%{module}
%doc AUTHORS
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%autopatch -p1

# Unset execute bit for example scripts; it can introduce spurious
# RPM dependencies, like /usr/bin/python which can pull in python2
# for the -python3 package
find examples -type f -exec chmod 0644 \{\} \;

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16331 |21mr|python-linecache2-1.0.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname linecache2

Name:           python-%{srcname}
Version:        1.0.0
Release:        7
Summary:        Backports of the linecache module

Group:          Development/Python
License:        Python Software Foundation License
URL:            https://github.com/testing-cabal/linecache2
Source0:        https://files.pythonhosted.org/packages/44/b0/963c352372c242f9e40db02bbc6a39ae51bde15dddee8523fe4aca94a97e/linecache2-1.0.0.tar.gz
BuildArch:      noarch

%description
A backport of linecache to older supported Pythons.

#=============================================================
%package -n     python3-%{srcname}
Summary:        Backports of the linecache module
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3-pkg-resources
BuildRequires:  python3-pbr

%description -n python3-%{srcname}
A backport of linecache to older supported Pythons.

%files -n python3-%{srcname}
%doc AUTHORS ChangeLog README.rst
%{py3_puresitedir}/%{srcname}
%{py3_puresitedir}/%{srcname}-%{version}-py%{py3_ver}.egg-info

#=============================================================
%prep
%setup -q -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install
rm -fr %{buildroot}%{py3_puresitedir}/%{srcname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16332 |21mr|python-lit-15.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	lit

Name:		python-%{oname}
Version:	15.0.7
Release:	2
Summary:	A Software Testing Tool
Source0:	https://pypi.python.org/packages/source/l/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		http://llvm.org
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-devel

%description
*lit* is a portable tool for executing LLVM and Clang style test suites,
summarizing their results, and providing indication of failures. *lit* is
designed to be a lightweight testing tool with as simple a user interface as
possible.

#----------------------------------------------------------------
%package -n python3-%{oname}
Summary:	A Software Testing Tool
Group:		Development/Python

%description -n python3-%{oname}
*lit* is a portable tool for executing LLVM and Clang style test suites,
summarizing their results, and providing indication of failures. *lit* is
designed to be a lightweight testing tool with as simple a user interface as
possible.

%files -n python3-%{oname}
%{_bindir}/lit
%{py3_puresitedir}/lit
%{py3_puresitedir}/lit*.egg-info

#----------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

# Strip out #!/usr/bin/env python
#sed -i -e '1{\@^#!/usr/bin/env python@d}' %{buildroot}%{python3_sitelib}/%{oname}/*.py


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16333 |21mr|python-lockfile-0.12.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module lockfile
%define debug_package %{nil}

Name:           python-%{module}
Version:        0.12.2
Release:        6
Summary:        Platform-independent file locking module
Group:          Development/Python
License:        MIT
URL:            http://smontanaro.dyndns.org/python/
Source0:        https://files.pythonhosted.org/packages/17/47/72cb04a58a35ec495f96984dddb48232b551aafb95bde614605b754fe6f7/lockfile-0.12.2.tar.gz

%description
The lockfile module exports a FileLock class which provides a simple API for
locking files. The lock mechanism relies on the atomic nature of the link
(on Unix) and mkdir (on Windows) system calls.

#===========================================================================
%package -n python3-%{module}
Summary:        Platform-independent file locking module
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pbr)

%description -n python3-%{module}
The lockfile module exports a FileLock class which provides a simple API for
locking files. The lock mechanism relies on the atomic nature of the link
(on Unix) and mkdir (on Windows) system calls.

%files -n python3-%{module}
%doc doc/* LICENSE   RELEASE-NOTES ACKS
%{python3_sitelib}/*
#============================================================================
%prep
%setup -q -n %{module}-%{version}

%build
:

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16334 |21mr|python-logilab-astng-0.24.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	logilab-astng

# Depenedency geenrator finds too many abi deps here
%global __requires_exclude 'python\\(abi\\).*'

Summary:	Extension of compiler.ast Python module
Name:		python-%{module}
Version:	0.24.3
Release:	4
Url:		http://www.logilab.org/
Source0:	https://files.pythonhosted.org/packages/39/ab/3ecd06a186cfc503d9554fdf858e9a320c747cb76432d02e0e802f9450f0/logilab-astng-0.24.3.tar.gz
License:	GPLv2+
Group:		Development/Python
BuildArch:	noarch


%description
This module provides a common base representation of Python source
code for Logilab projects such as pylint. It extends class defined in
the compiler.ast module with some additional methods and attributes
#====================================================================
%package -n python3-%{module}
Summary:	Extension of compiler.ast Python module
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	python3-logilab-common >= 0.53.0

%description -n python3-%{module}
This module provides a common base representation of Python source
code for Logilab projects such as pylint. It extends class defined in
the compiler.ast module with some additional methods and attributes

%files -n python3-%{module}
%defattr(-,root,root)
%doc README COPYING ChangeLog
%{python3_sitelib}/logilab*

#====================================================================
%prep
%setup -q -n %{module}-%{version}

%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16335 |21mr|python-logilab-common-1.8.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  logilab-common

Name:           python-%{module}
Summary:        Python modules used by Logilab software
Version:        1.8.1
Release:        3
License:        GPLv2+
Group:          Development/Python
Url:            http://www.logilab.org/
Source0:        %{pypi_source %module %version}
BuildRequires:  python3dist(setuptools)
# so that it's not d/l by testsuite:
BuildRequires:  python3dist(six)
BuildRequires:  python3dist(pytz)
BuildRequires:  python3-sphinx
BuildArch:      noarch

%description
This package contains a number of Python modules that provide low level
functionality used by various free software projects supported by Logilab.
This is a version for Python 3.
#=========================================================================
%package -n python3-%{module}
Summary:    Python modules used by Logilab software
Group:      Development/Python

%description -n python3-%{module}
This package contains a number of Python modules that provide low level
functionality used by various free software projects supported by Logilab.
This is a version for Python 3.

%files -n python3-%{module}
%doc COPYING ChangeLog
%{python3_sitelib}/logilab*
#=========================================================================
%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

for FILE in %{buildroot}%{_bindir}/*; do
    NAME=$(basename $FILE)
    mv $FILE %{buildroot}%{_bindir}/python3-$NAME
done

rm -f %{buildroot}%{_bindir}/{logilab-pytest,python3-logilab-pytest}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16336 |21mr|python-logutils-0.3.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	logutils

Name:		python-%{oname}
Version:	0.3.5
Release:	2
Summary:	Logging utilities
Source0:	https://files.pythonhosted.org/packages/source/l/%{oname}/%{oname}-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://bitbucket.org/vinay.sajip/%{oname}
BuildArch:	noarch
BuildRequires:	python3-devel
Provides:	python3-%{oname} = %{EVRD}

%description
The logutils package provides a set of handlers for the Python standard
library's logging package.

Some of these handlers are out-of-scope for the standard library, and
so they are packaged here. Others are updated versions which have
appeared in recent Python releases, but are usable with older versions
of Python and so are packaged here.

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files
%doc LICENSE.txt NEWS.txt README.rst
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16337 |21mr|python-looseversion-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name looseversion

Name:           python-%{pypi_name}
Version:        1.3.0
Release:        1
Summary:        Version numbering for anarchists and software realists
License:        PSF-2.0
Group:          Development/Python
URL:            https://pypi.org/pypi/looseversion
Source0:        %{pypi_source}
BuildArch:      noarch
BuildRequires:  pyproject-rpm-macros
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-pytest

%description
A backwards/forwards-compatible fork of distutils.version.LooseVersion, for
times when PEP-440 isnt what you need.

The goal of this package is to be a drop-in replacement for the original
LooseVersion. It implements an identical interface and comparison logic to
LooseVersion. The only major change is that a looseversion.LooseVersion is
comparable to a distutils.version.LooseVersion, which means tools should not
need to worry whether all dependencies that use LooseVersion have migrated.

If you are simply comparing versions of Python packages, consider moving to
packaging.version.Version, which follows PEP-440. LooseVersion is better suited
to interacting with heterogeneous version schemes that do not follow PEP-440.

#--------------------------------------------------------
%package -n python3-looseversion
Summary:        %{summary}
Group:          Development/Python

%description -n python3-looseversion
A backwards/forwards-compatible fork of distutils.version.LooseVersion, for
times when PEP-440 isnt what you need.

The goal of this package is to be a drop-in replacement for the original
LooseVersion. It implements an identical interface and comparison logic to
LooseVersion. The only major change is that a looseversion.LooseVersion is
comparable to a distutils.version.LooseVersion, which means tools should not
need to worry whether all dependencies that use LooseVersion have migrated.

If you are simply comparing versions of Python packages, consider moving to
packaging.version.Version, which follows PEP-440. LooseVersion is better suited
to interacting with heterogeneous version schemes that do not follow PEP-440.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md CHANGES.md

#--------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%check
%pytest -v tests.py



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16338 |21mr|python-lxml-4.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without python2

Name:		python-lxml
Version:	4.8.0
Release:	1
Summary:	ElementTree-like Python bindings for libxml2 and libxslt
Group:		Development/Python
License:	BSD
URL:		http://lxml.de
Source0:	https://files.pythonhosted.org/packages/3b/94/e2b1b3bad91d15526c7e38918795883cee18b93f6785ea8ecf13f8ffa01e/lxml-4.8.0.tar.gz
BuildRequires:	libxslt-devel
%if %{with python2}
BuildRequires:	pkgconfig(python2)
BuildRequires:	python2-setuptools
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3-setuptools
Requires:	python-cssselect

%description
lxml provides a Python binding to the libxslt and libxml2 libraries.
It follows the ElementTree API as much as possible in order to provide
a more Pythonic interface to libxml2 and libxslt than the default
bindings.  In particular, lxml deals with Python Unicode strings
rather than encoded UTF-8 and handles memory management automatically,
unlike the default bindings.

#--------------------------------------------------------------------
%package docs
Summary:	Documentation for %{name}
BuildArch:	noarch

%description docs
This package provides the documentation for %{name}, e.g. the API as html.

%files docs
%doc doc/*

#--------------------------------------------------------------------

%package -n python3-lxml
Summary:	ElementTree-like Python 2 bindings for libxml2 and libxslt
Provides:	python-lxml = %{EVRD}

%description -n python3-lxml
lxml provides a Python 3 binding to the libxslt and libxml2 libraries.
It follows the ElementTree API as much as possible in order to provide
a more Pythonic interface to libxml2 and libxslt than the default
bindings.  In particular, lxml deals with Python Unicode strings
rather than encoded UTF-8 and handles memory management automatically,
unlike the default bindings.

%files -n python3-lxml
%doc LICENSES.txt PKG-INFO CREDITS.txt CHANGES.txt
%{python3_sitearch}/lxml
%{python3_sitearch}/lxml-*.egg-info

#--------------------------------------------------------------------

%if %{with python2}
%package -n python2-lxml
%py2_migration_meta python2-lxml
Summary:	ElementTree-like Python 2 bindings for libxml2 and libxslt

%description -n python2-lxml
lxml provides a Python 2 binding to the libxslt and libxml2 libraries.
It follows the ElementTree API as much as possible in order to provide
a more Pythonic interface to libxml2 and libxslt than the default
bindings.  In particular, lxml deals with Python Unicode strings
rather than encoded UTF-8 and handles memory management automatically,
unlike the default bindings.

%files -n python2-lxml
%doc LICENSES.txt PKG-INFO CREDITS.txt CHANGES.txt
%{python2_sitearch}/lxml-*.egg-info
%{python2_sitearch}/lxml
%endif

#--------------------------------------------------------------------

%prep
%setup -q -n lxml-%{version}

%if 0%{?with_python2}
rm -rf ../py2
cp -r . ../py2
%endif

%build
CFLAGS="%{optflags}" %{__python3} setup.py build --without-cython

%if %{with python2}
pushd ../py2
CFLAGS="%{optflags}" %{__python2} setup.py build --without-cython
popd
%endif

%install
%{__python3} setup.py install --skip-build --no-compile --without-cython --root %{buildroot}

%if %{with python2}
pushd ../py2
%{__python2} setup.py install --skip-build --no-compile --without-cython --root %{buildroot}
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16339 |21mr|python-lz4-4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name lz4

Name:		python-%{pypi_name}
Version:	4.0.0
Release:	1
Summary:	LZ4 Bindings for Python
Group:		Development/Python
License:	BSD
URL:		https://github.com/python-lz4/python-lz4
Source0:	https://files.pythonhosted.org/packages/b1/e1/4527cb8ae9f087787b5014aec19645fe96b3056785fd7c0af3b944b6c55d/lz4-4.0.0.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(pkgconfig)


%description
This package provides python bindings for the LZ4 compression library.

The bindings provided in this package cover the frame format, the block format,
and the streaming format specifications. The frame format bindings are the
recommended ones to use, as this guarantees interoperability with other
implementations and language bindings.

The API provided by the frame format bindings follows that of the LZMA, zlib,
gzip and bzip2 compression libraries which are provided with the Python
standard library. As such, these LZ4 bindings should provide a drop-in
alternative to the compression libraries shipped with Python. The package
provides context managers and file handler support.

#--------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	LZ4 Bindings for Python
Group:		Development/Python

%description -n python3-%{pypi_name}
This package provides python bindings for the LZ4 compression library.

The bindings provided in this package cover the frame format, the block format,
and the streaming format specifications. The frame format bindings are the
recommended ones to use, as this guarantees interoperability with other
implementations and language bindings.

The API provided by the frame format bindings follows that of the LZMA, zlib,
gzip and bzip2 compression libraries which are provided with the Python
standard library. As such, these LZ4 bindings should provide a drop-in
alternative to the compression libraries shipped with Python. The package
provides context managers and file handler support.

%files -n python3-%{pypi_name}
%license docs/license.rst LICENSE
%doc README.rst
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16340 |21mr|python-lzma-0.5.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyliblzma
%define module lzma

Summary:	Python bindings for the LZMA compression library
Name:		python-%{module}
Version:	0.5.3
Release:	6
License:	LGPLv2+
Group:		Development/Python
Url:		http://www.joachim-bauch.de/projects/python/pylzma
Source0:	http://www.joachim-bauch.de/projects/python/pylzma/releases/%{oname}-%{version}.tar.bz2
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(python)
BuildRequires:	python2-setuptools
Provides:	%{oname} = %{EVRD}

%description
Python bindings for the LZMA compression library.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Python bindings for the LZMA compression library

%description -n python2-%{module}
Python bindings for the LZMA compression library.

%files -n python2-%{module}
%doc README NEWS COPYING ChangeLog
%{python2_sitearch}/*.py*
%{python2_sitearch}/pyliblzma*.egg-info
%{python2_sitearch}/lzma.so

#----------------------------------------------------------------------------

%prep
%setup -qn pyliblzma-%{version}

%build
env CFLAGS="%{optflags}" python2 setup.py build

%install
python2 setup.py install --root=%{buildroot} --record=INSTALLED_FILES

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16341 |21mr|python-m2crypto-0.37.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Crypto and SSL toolkit for Python
Name:		python-m2crypto
Version:	0.37.1
Release:	1
License:	MIT
Group: 		Development/Python
Url: 		http://chandlerproject.org/Projects/MeTooCrypto
Source0:	https://files.pythonhosted.org/packages/aa/36/9fef97358e378c1d3bd567c4e8f8ca0428a8d7e869852cef445ee6da91fd/M2Crypto-0.37.1.tar.gz
BuildRequires:	pythonegg(setuptools)
BuildRequires:	swig

%description
M2Crypto is a crypto and SSL toolkit for Python featuring the following:

    * RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES).
    * SSL functionality to implement clients and servers.
    * HTTPS extensions to Python's httplib, urllib, and xmlrpclib.
    * Unforgeable HMAC'ing AuthCookies for web session management.
    * FTP/TLS client and server.
    * S/MIME.
    * ZServerSSL: A HTTPS server for Zope.
    * ZSmime: An S/MIME messenger for Zope.

%package -n python2-m2crypto
%py2_migration_meta python2-m2crypto
Group:          Development/Python
Summary:        Crypto and SSL toolkit for Python2
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python2)

%description -n python2-m2crypto
M2Crypto is a crypto and SSL toolkit for Python featuring the following:

    * RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES).
    * SSL functionality to implement clients and servers.
    * HTTPS extensions to Python's httplib, urllib, and xmlrpclib.
    * Unforgeable HMAC'ing AuthCookies for web session management.
    * FTP/TLS client and server.
    * S/MIME.
    * ZServerSSL: A HTTPS server for Zope.
    * ZSmime: An S/MIME messenger for Zope.

%files -n python2-m2crypto
%doc CHANGES README.rst LICENCE
%{py2_platsitedir}/M2Crypto
%{py2_platsitedir}/*.egg-info


%package -n python3-m2crypto
Group:          Development/Python
Summary:        Crypto and SSL toolkit for Python3
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-m2crypto
M2Crypto is a crypto and SSL toolkit for Python featuring the following:

    * RSA, DSA, DH, HMACs, message digests, symmetric ciphers (including AES).
    * SSL functionality to implement clients and servers.
    * HTTPS extensions to Python's httplib, urllib, and xmlrpclib.
    * Unforgeable HMAC'ing AuthCookies for web session management.
    * FTP/TLS client and server.
    * S/MIME.
    * ZServerSSL: A HTTPS server for Zope.
    * ZSmime: An S/MIME messenger for Zope.

%files -n python3-m2crypto
%doc CHANGES README.rst LICENCE
%{py3_platsitedir}/M2Crypto
%{py3_platsitedir}/*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n M2Crypto-%{version}

# __REGISTER_PREFIX__ is defined to unquoted $ on some platforms; gcc handles
# this fine, but swig chokes on it.
# __GNUC__ really should be included in gcc_macros.h, but this currently breaks
# builds on ppc64: https://bugzilla.redhat.com/show_bug.cgi?id=1317553 .
gcc -E -dM - < /dev/null | grep -v __STDC__ | grep -v __REGISTER_PREFIX__ | grep -v __GNUC__ \
        | sed 's/^\(#define \([^ ]*\) .*\)$/#undef \2\n\1/' > SWIG/gcc_macros.h

cp -a . %{py3dir}

%build
pushd %{py3dir}
CFLAGS="%{optflags}" %{__python3} setup.py build
popd

env CFLAGS="%{optflags}" %{__python2} setup.py build
# test requires some files ( such as a certificat, so disabled for now )
#PYTHONPATH="./build/lib.linux-i686-2.4/M2Crypto/:." python tests/alltests.py

%install
pushd %{py3dir}
%{__python3} setup.py install --root %{buildroot} --skip-build
popd

%{__python2} setup.py install --root=%{buildroot} --record=INSTALLED_FILES

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16342 |21mr|python-m2r-0.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name m2r

Summary:	Markdown to reStructuredText converter
Name:		python-%{pypi_name}
Version:	0.2.1
Release:	3
License:	MIT
Group:		Development/Python
Url:		https://github.com/crossnox/m2r
Source0:	https://pypi.io/packages/source/m/m2r/m2r-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(docutils)
BuildRequires:	python3egg(mistune)
BuildRequires:	python3egg(pygments)
BuildRequires:	python3egg(mock)
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
M2R converts a markdown file including reST markups to a valid reST format.

#------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Markdown to reStructuredText converter
Group:		Development/Python
Provides:	m2r = %{EVRD}
BuildArch:	noarch

%description -n python3-%{pypi_name}
M2R converts a markdown file including reST markups to a valid reST format.

%files -n python3-%{pypi_name}
%doc LICENSE README.md
%{_bindir}/m2r
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}-%{version}*.egg-info

#------------------------------------------------

%prep
%autosetup -p1 -n m2r-%{version}

# Remove upstream's egg-info
rm -rf *.egg-info

# Remove shebang
sed -i '1{\@^#!/usr/bin/env python@d}' m2r.py

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16343 |21mr|python-m2r2-0.3.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name m2r2

Summary:	Markdown to reStructuredText converter
Name:		python-%{pypi_name}
Version:	0.3.2
Release:	3
License:	MIT
Group:		Development/Python
Url:		https://github.com/crossnox/m2r2
Source0:	https://pypi.io/packages/source/m/m2r2/m2r2-%{version}.tar.gz
Patch0:		m2r2-setup-error.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(docutils)
BuildRequires:	python3egg(mistune)
BuildRequires:	python3egg(pygments)
BuildRequires:	python3egg(mock)
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
M2R converts a markdown file including reST markups to a valid reST format.

#------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Markdown to reStructuredText converter
Group:		Development/Python
BuildArch:	noarch
Provides:	m2r2 = %{EVRD}

%description -n python3-%{pypi_name}
M2R converts a markdown file including reST markups to a valid reST format.

%files -n python3-%{pypi_name}
%doc LICENSE README.md
%{_bindir}/m2r2
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}-%{version}*-*.egg-info

#------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove upstream's egg-info
rm -rf *.egg-info

# Remove shebang
sed -i '1{\@^#!/usr/bin/env python@d}' m2r2.py

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16344 |21mr|python-mako-1.1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mako template library for Python
Name:		python-mako
Version:	1.1.6
Release:	1
Group:		Development/Python
License:	MIT
URL:		https://www.makotemplates.org/
Source0:	https://files.pythonhosted.org/packages/af/b6/42cd322ae555aa770d49e31b8c5c28a243ba1bbb57ad927e1a5f5b064811/Mako-1.1.6.tar.gz
BuildArch:	noarch

%description
Mako is a template library written in Python. It provides a familiar, non-XML
syntax which compiles into Python modules for maximum performance. Mako's
syntax and API borrows from the best ideas of many others, including Django
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
Python (i.e. Python Server Page) language, which refines the familiar ideas of
componentized layout and inheritance to produce one of the most straightforward
and flexible models available, while also maintaining close ties to Python
calling and scoping semantics.

#--------------------------------------------------------------------
%package -n python3-mako
Summary:	Mako template library for Python 3
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(nose)
BuildRequires:	python3dist(beaker)
BuildRequires:	python3dist(markupsafe)
BuildRequires:	python3dist(mock)
Provides:	python-mako = %{version}-%{release}
Requires:	python3dist(beaker)
Requires:	python3dist(markupsafe)

%description -n python3-mako
Mako is a template library written in Python. It provides a familiar, non-XML
syntax which compiles into Python modules for maximum performance. Mako's
syntax and API borrows from the best ideas of many others, including Django
templates, Cheetah, Myghty, and Genshi. Conceptually, Mako is an embedded
Python (i.e. Python Server Page) language, which refines the familiar ideas of
componentized layout and inheritance to produce one of the most straightforward
and flexible models available, while also maintaining close ties to Python
calling and scoping semantics.

%files -n python3-mako
%doc CHANGES LICENSE README.rst doc examples
%{_bindir}/mako-render
%{python3_sitelib}/*

#--------------------------------------------------------------------

%prep
%setup -q -n Mako-%{version}

%build
%py3_build

%install
%py3_install

rm -rf doc/build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16345 |21mr|python-manatools-0.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	module	manatools

Summary:	A python framework to build ManaTools application
Name:		python-%{module}
Version:	0.0.4
Release:	1
Group:		Development/Python
License:	LGPLv2+
Url:		https://github.com/manatools/python-manatools
Source0:	https://github.com/manatools/python-manatools/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3-yui
BuildArch:	noarch

%description
Python ManaTools starts from the experience of tools and framework written in
Perl, since most systemd and dbus API are python based instead a this way
seemed to be natural. Its aim is to help in writing tools based on libYui
(Suse widget abstraction library), to be collected under the same ManaTool hat
and hopefully with the same look and feel.
Every output modules can of course be run using QT, Gtk or ncurses interface.

#-----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A python framework to build ManaTools application
Group:		Development/Python
#Provides:	python3-%%{module} = %%{version}
Requires:	python3-dbus
Requires:	python3-yaml
Requires:	python3-yui

%description -n python3-%{module}
Python ManaTools aim is to help in writing tools based on libYui (Suse widget
abstraction library), to be collected under the same hat and hopefully with
the same look and feel. Every output module can of course be run using QT,
Gtk or ncurses interface.
This package contains the module for python 3.

%files -n python3-%{module}
%doc LICENSE README.md NEWS
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/python_manatools-%{version}-py%{py3_ver}.egg-info/*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16346 |21mr|python-marathon-0.8.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global pypi_name marathon

Name:		python-%{pypi_name}
Version:	0.8.8
Release:	1
Summary:	Python client library/interface to the Mesos Marathon REST API
Group:		Development/Python
License:	MIT
URL:		https://github.com/thefactory/marathon-python
Source0:	https://pypi.io/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/thefactory/marathon-python/%{version}/README.md
BuildArch:	noarch

%description
Marathon Client Library

Python interface to the Mesos Marathon REST API

#------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python interface to the Mesos Marathon REST API
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Requires:	python3-requests

%description -n python3-%{pypi_name}
Python client library/interface to the Mesos Marathon REST API

%files -n python3-%{pypi_name}
%doc README
%license LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info

#------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
cp %{SOURCE1} README

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16347 |21mr|python-markdown-3.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname Markdown
%global pkgname markdown

Name:           python-%{pkgname}
Version:	3.3.4
Release:	1
Group:		Development/Python
Summary:        Markdown implementation in Python
License:        BSD
URL:            https://python-markdown.github.io/
Source0:	https://files.pythonhosted.org/packages/49/02/37bd82ae255bb4dfef97a4b32d95906187b7a7a74970761fca1360c4ba22/Markdown-3.3.4.tar.gz
BuildArch:      noarch

%description
This is a Python implementation of John Gruber’s Markdown. It is
almost completely compliant with the reference implementation, though
there are a few very minor differences.


%package -n python3-%{pkgname}
Summary:        Markdown implementation in Python
BuildRequires:  python3-devel
BuildRequires:  python3-PyYAML
BuildRequires:  python3-tidy
BuildRequires:  python3-setuptools

Conflicts:      python2-%{pkgname} < 3.1-2
%{?python_provide:%python_provide python3-%{pkgname}}

%description -n python3-%{pkgname}
This is a Python implementation of John Gruber's Markdown. It is
almost completely compliant with the reference implementation, though
there are a few known issues.


%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

# process license file
PYTHONPATH=%{buildroot}%{python3_sitelib} \
  %{buildroot}%{_bindir}/markdown_py \
  LICENSE.md > LICENSE.html

%check
%{__python3} ./setup.py test

%files -n python3-%{pkgname}
# temporarily skip packaging docs - see also
# https://github.com/Python-Markdown/markdown/issues/621
#doc python3/build/docs/*
%license LICENSE.*
%{python3_sitelib}/*
%{_bindir}/markdown_py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16348 |21mr|python-markupsafe-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name MarkupSafe

%define enable_tests 0

Summary:	XML/HTML/XHTML markup safe string package for Python
Name:		python-markupsafe
Version:	2.1.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://pypi.python.org/pypi/MarkupSafe
Source0:	https://files.pythonhosted.org/packages/source/M/MarkupSafe/%{pypi_name}-%{version}.tar.gz
%if %enable_tests
BuildRequires:	python3-nose
%endif

%description
This package implements a XML/HTML/XHTML markup safe string for Python.

#---------------------------------------------------------------------
%package -n python3-markupsafe
Summary:	XML/HTML/XHTML markup safe string package for Python
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)

%description -n python3-markupsafe
This package implements a XML/HTML/XHTML markup safe string for Python3.

%files -n python3-markupsafe
%license LICENSE.rst
%doc README.rst
%{python3_sitearch}/*

#---------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# C code errantly gets installed
rm $RPM_BUILD_ROOT/%{python3_sitearch}/markupsafe/*.c

%check
%if %enable_tests
%{__python3} setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16349 |21mr|python-matplotlib-3.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module matplotlib

Summary:	Python 2D plotting library
Name:		python-%{module}
Version:	3.5.1
Release:	1
License:	Python license
Group:		Development/Python
Url:		http://matplotlib.sourceforge.net/
Source0:	https://pypi.io/packages/source/m/matplotlib/%{module}-%{version}.tar.gz
BuildRequires:	ghostscript
BuildRequires:	graphviz
BuildRequires:	gtk3
BuildRequires:	gtk4
BuildRequires:	imagemagick
BuildRequires:	inkscape
BuildRequires:	python-pillow-tk
BuildRequires:	python3-gobject
BuildRequires:	python3-pkg-resources
BuildRequires:	texlive
BuildRequires:	tkinter3
BuildRequires:	agg-devel
BuildRequires:	python3-cxx-devel
BuildRequires:	python3-qt5-devel
BuildRequires:	qhull-devel
BuildRequires:	python3dist(certifi)
BuildRequires:	python3dist(configobj)
BuildRequires:	python3dist(python-dateutil)
BuildRequires:	python3dist(docutils)
BuildRequires:	python3dist(numpy)
BuildRequires:	python3dist(numpydoc)
BuildRequires:	python3dist(pyparsing)
BuildRequires:	python3dist(pytz)
BuildRequires:	python3dist(pyqt5)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-scm)
BuildRequires:	python3dist(setuptools-scm-git-archive)
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3dist(wxpython)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(zlib)

%description
Matplotlib is a python 2D plotting library which produces publication
quality figures in a variety of hardcopy formats and interactive
environments across platforms. matplotlib can be used in python
scripts, the python and ipython shell, web application servers, and
six graphical user interface toolkits.

Matplotlib tries to make easy things easy and hard things possible.
You can generate plots, histograms, power spectra, bar charts,
errorcharts, scatterplots, etc, with just a few lines of code.

#---------------------------------------------------------------------------

%package -n	python3-%{module}
Summary:	Python 2D plotting library
Group:		Development/Python
Requires:	python3dist(configobj)
Requires:	python3dist(numpy)
Requires:	python3dist(python-dateutil)
Requires:	python3dist(pytz)
Provides:	python3-%{module}-data = %{EVRD}
Provides:	python3-%{module}-data-fonts = %{EVRD}
Obsoletes:	python3-%{module}-data < 3.5.1
Obsoletes:	python3-%{module}-data-fonts < 3.5.1

%description -n python3-%{module}
Matplotlib is a python 2D plotting library which produces publication
quality figures in a variety of hardcopy formats and interactive
environments across platforms. matplotlib can be used in python
scripts, the python and ipython shell, web application servers, and
six graphical user interface toolkits.

Matplotlib tries to make easy things easy and hard things possible.
You can generate plots, histograms, power spectra, bar charts,
errorcharts, scatterplots, etc, with just a few lines of code.

%files -n python3-%{module}
%doc README.rst
%doc LICENSE/
%{python3_sitearch}/*egg-info
%{python3_sitearch}/%{module}-*-nspkg.pth
%{python3_sitearch}/%{module}/
%{python3_sitearch}/mpl_toolkits/
%{python3_sitearch}/pylab.py*
%{python3_sitearch}/__pycache__/*
%exclude %{py3_platsitedir}/%{module}/backends/backend_cairo.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_gtk3.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_gtk3agg.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_gtk3cairo.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_qt5.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_qt5agg.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_qt5cairo.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_svg.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_tkagg.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_wx.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_wxagg.py*
%exclude %{py3_platsitedir}/%{module}/backends/backend_wxcairo.py*
%exclude %{py3_platsitedir}/%{module}/backends/_tkagg*.so

#----------------------------------------------------------------------------

%package -n python3-%{module}-cairo
Summary:	Cairo backend for %{module}
Group:		Development/Python
Requires:	python3dist(pycairo)
Requires:	python3dist(matplotlib) = %{EVRD}

%description -n python3-%{module}-cairo
This package contains the Cairo backend for %{module}.

%files -n python3-%{module}-cairo
%{py3_platsitedir}/%{module}/backends/backend_cairo.py*
%{py3_platsitedir}/%{module}/backends/backend_qt5cairo.py*

#----------------------------------------------------------------------------

%package -n python3-%{module}-qt5
Summary:	Qt5 backend for python3-%{module}
Group:		Development/Python
Requires:	python3dist(pyqt5)
Requires:	python3dist(matplotlib) = %{EVRD}

%description -n python3-%{module}-qt5
This package contains the Qt5 backend for %{module}.

%files -n python3-%{module}-qt5
%{py3_platsitedir}/%{module}/backends/backend_qt5agg.py*
%{py3_platsitedir}/%{module}/backends/backend_qt5.py*

#----------------------------------------------------------------------------

%package -n python3-%{module}-gtk3
Summary:	GDK and GTK3 backends for %{module}
Group:		Development/Python
Requires:	gtk3
Requires:       python3-gi
Requires:	python3dist(matplotlib) = %{EVRD}
Requires:	python3-%{module}-cairo = %{EVRD}

%description -n python3-%{module}-gtk3
This package contains the GDK and GTK3 backends for %{module}.

%files -n python3-%{module}-gtk3
%{py3_platsitedir}/%{module}/backends/backend_gtk3.py*
%{py3_platsitedir}/%{module}/backends/backend_gtk3agg.py*
%{py3_platsitedir}/%{module}/backends/backend_gtk3cairo.py*

#----------------------------------------------------------------------------

%package -n python3-%{module}-gtk4
Summary:	GDK and GTK4 backends for %{module}
Group:		Development/Python
Requires:	gtk4%{?_isa}
Requires:       python3-gi
Requires:	python3dist(matplotlib) = %{EVRD}
Requires:	python3-%{module}-cairo = %{EVRD}

%description -n python3-%{module}-gtk4
This package contains the GDK and GTK4 backends for %{module}.

%files -n python3-%{module}-gtk4
%{py3_platsitedir}/%{module}/backends/backend_gtk4.py*
%{py3_platsitedir}/%{module}/backends/backend_gtk4agg.py*
%{py3_platsitedir}/%{module}/backends/backend_gtk4cairo.py*

#----------------------------------------------------------------------------

%package -n python3-%{module}-svg
Summary:	SVG backend for %{module}
Group:		Development/Python
Requires:	python3dist(matplotlib) = %{EVRD}

%description -n python3-%{module}-svg
This package contains the SVG backend for %{module}.

%files -n python3-%{module}-svg
%{python3_sitearch}/%{module}/backends/backend_svg.py*

#----------------------------------------------------------------------------

%package -n python3-%{module}-tk
Summary:	Tk backend for %{module}
Group:		Development/Python
Requires:	python-pillow-tk
Requires:	python3dist(matplotlib) = %{EVRD}
Requires:	tkinter3

%description -n python3-%{module}-tk
This package contains the Tk backend for %{module}.

%files -n python3-%{module}-tk
%{python3_sitearch}/%{module}/backends/_backend_tk.py
%{python3_sitearch}/%{module}/backends/backend_tkagg.py*
%{python3_sitearch}/%{module}/backends/_tkagg*.so

#----------------------------------------------------------------------------

%package -n python3-%{module}-wx
Summary:	wxPython backend for %{module}
Group:		Development/Python
Requires:	python3dist(wxpython)
Requires:	python3dist(matplotlib) = %{EVRD}

%description -n python3-%{module}-wx
This package contains the wxPython backend for %{module}.

%files -n python3-%{module}-wx
%{py3_platsitedir}/%{module}/backends/backend_wx.py*
%{py3_platsitedir}/%{module}/backends/backend_wxagg.py*
%{py3_platsitedir}/%{module}/backends/backend_wxcairo.py*

#----------------------------------------------------------------------------

%package -n python3-%{module}-doc
Summary:	Documentation for %{module}
Group:		Documentation
BuildArch:	noarch

%description -n python3-%{module}-doc
This package contains documentation and sample code for %{module}.

%files -n python3-%{module}-doc
%doc examples/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

cat << EOF > mplsetup.cfg
[libs]
system_freetype = True
system_qhull = True

[packages]
tests = True
toolkits = True
toolkits_tests = True
EOF

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16350 |21mr|python-mccabe-0.6.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	mccabe

Name:		python-%{oname}
Version:	0.6.1
Release:	6
Summary:	McCabe checker, plugin for flake8
Source0:	http://pypi.python.org/packages/source/m/%{oname}/%{oname}-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		https://github.com/pycqa/mccabe
BuildArch:	noarch

%description
McCabe complexity checker
=========================
Ned's script to check McCabe complexity.
This module provides a plugin for ``flake8``, 
the Python code checker.

#------------------------------------------------------------
%package -n python3-%{oname}

Group:          Development/Python
Summary:        McCabe checker, plugin for flake8
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3-pytest-runner
BuildArch:      noarch

%description -n python3-%{oname}
McCabe complexity checker
=========================
Ned's script to check McCabe complexity.
This module provides a plugin for ``flake8``, 
the Python code checker.

%files -n python3-%{oname}
%{py3_puresitedir}/mccabe.py*
%{py3_puresitedir}/mccabe*.egg-info
%{py3_puresitedir}/__pycache__/*

#------------------------------------------------------------
%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%if %{mdvver} >= 201610
%py3_test
%else
python3 setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16351 |21mr|python-mechanize-0.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname mechanize

Summary:	Stateful programmatic web browsing
Name:		python-%{oname}
Version:	0.4.5
Release:	1
License:	BSD
Group:		Development/Python
URL:		http://wwwsearch.sourceforge.net/mechanize/
Source0:	https://files.pythonhosted.org/packages/77/1b/7e4b644108e4e99b136e52c6aae34873fcd267e3d2489f3bd2cff8655a59/mechanize-0.4.5.tar.gz
BuildArch:	noarch
BuildRequires:  pkgconfig(python3)
# for tests
BuildRequires:  python3-html5lib
#BuildRequires:  python3-twisted
BuildRequires:  python3-zope-interface

%description
Stateful programmatic web browsing, after Andy Lester's Perl module
WWW::Mechanize.

The library is layered: mechanize.Browser (stateful web browser),
mechanize.UserAgent (configurable URL opener), plus urllib2 handlers.

Features include: ftp:, http: and file: URL schemes, browser history,
high-level hyperlink and HTML form support, HTTP cookies, HTTP-EQUIV and
Refresh, Referer [sic] header, robots.txt, redirections, proxies, and
Basic and Digest HTTP authentication.  mechanize's response objects are
(lazily-) .seek()able and still work after .close().

Much of the code originally derived from Perl code by Gisle Aas
(libwww-perl), Johnny Lee (MSIE Cookie support) and last but not least
Andy Lester (WWW::Mechanize).  urllib2 was written by Jeremy Hylton.
#======================================================================
%package -n python3-%{oname}
Summary:	Stateful programmatic web browsing
Group:		Development/Python
%{?python_provide:%python_provide python3-%{oname}}
Obsoletes:	python-clientcookie < 1.3.0-2
Provides:	python-clientcookie

%description -n python3-%{oname}
Stateful programmatic web browsing, after Andy Lester's Perl module
WWW::Mechanize.

The library is layered: mechanize.Browser (stateful web browser),
mechanize.UserAgent (configurable URL opener), plus urllib2 handlers.

Features include: ftp:, http: and file: URL schemes, browser history,
high-level hyperlink and HTML form support, HTTP cookies, HTTP-EQUIV and
Refresh, Referer [sic] header, robots.txt, redirections, proxies, and
Basic and Digest HTTP authentication.  mechanize's response objects are
(lazily-) .seek()able and still work after .close().

Much of the code originally derived from Perl code by Gisle Aas
(libwww-perl), Johnny Lee (MSIE Cookie support) and last but not least
Andy Lester (WWW::Mechanize).  urllib2 was written by Jeremy Hylton.
#=======================================================================
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{oname}
%doc examples/*
%{python3_sitelib}/%{oname}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16352 |21mr|python-meh-0.46-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A python library for handling exceptions
Name:		python-meh
Version:	0.46
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/rhinstaller/python-meh
Source0:	https://github.com/rhinstaller/python-meh/archive/%{name}-%{version}.tar.gz
Source1:	locale.zip
BuildRequires:	pkgconfig(python3)
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	python3-dbus
BuildRequires:	libreport-gtk
BuildRequires:	libreport-cli
BuildArch:	noarch

%description
The python-meh package is a python library for handling, saving, and reporting
exceptions.

#------------------------------------------------------------------------------

%package -n python3-meh
Summary:	A python library for handling exceptions
Requires:	python3
Requires:	python3-dbus
Requires:	openssh-clients
Requires:	python3-rpm
Requires:	libreport-cli

%description -n python3-meh
The python-meh package is a python library for handling, saving, and reporting
exceptions.

%files -n python3-meh -f %{name}.lang
%doc COPYING
%{python3_sitelib}/*
%exclude %{python3_sitelib}/meh/ui/gui.py*

#------------------------------------------------------------------------------
 
%package -n python3-meh-gui
Summary:	Graphical user interface for the python-meh library
Requires:	python3-meh = %{EVRD}
Requires:	libreport-gtk
 
%description -n python3-meh-gui
The python-meh-gui package provides a GUI for the python-meh library.

%files -n python3-meh-gui
%{python3_sitelib}/meh/ui/gui.py*
%{_datadir}/python-meh

#------------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

%build
%make

%install
%makeinstall_std

unzip %{SOURCE1} -d %{buildroot}%{_datadir}

%find_lang %{name}

# TODO: python-pocketlint is needed
#%%check
#make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16353 |21mr|python-memcached-1.59-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-memcached
Version:	1.59
Release:	1
Summary:	Python interface to memcached

Group:		Development/Python
License:	Python Software Foundation License
URL:		http://www.tummy.com/Community/software/python-memcached/
Source0:	https://pypi.python.org/packages/source/p/python-memcached/%{name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python2-devel
BuildRequires:	python2-setuptools

%description
This software is a 100%% Python interface to the memcached memory cache
daemon.  It is the client side software which allows storing values in one
or more, possibly remote, memcached servers.  Search google for memcached
for more information.

%package -n python2-memcached
%py2_migration_meta python2-memcached
Summary:	Python interface to memcached

%description -n python2-memcached
This software is a 100%% Python interface to the memcached memory cache
daemon.  It is the client side software which allows storing values in one
or more, possibly remote, memcached servers.  Search google for memcached
for more information.


%package -n python3-memcached
Summary:	Python interface to memcached
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description -n python3-memcached
This software is a 100%% Python interface to the memcached memory cache
daemon.  It is the client side software which allows storing values in one
or more, possibly remote, memcached servers.  Search google for memcached
for more information.
This is a python2-3 package.

%prep
%setup -q -n %{name}-%{version}
rm -rf %{_builddir}/python3-%{module}
cp -a . %{_builddir}/python3-%{module}
pushd %{_builddir}/python3-%{module}
2to3 --write --nobackups .
sed -i "s/file(/open(/g" setup.py
popd

%build
python2 setup.py build
pushd %{_builddir}/python3-%{module}
python3 setup.py build
popd

%install
pushd %{_builddir}/python3-%{module}
%py3_install
popd
%py2_install

%clean

%files -n python2-memcached
%doc ChangeLog PKG-INFO 
%{py2_puresitedir}/*

%files -n python3-memcached
%doc ChangeLog PKG-INFO 
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16354 |21mr|python-mglob-0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-mglob
Version:        0.4
Release:        4
Summary:        Enhanced file name globbing module

Group:          Development/Python
License:        MIT
URL:            http://pypi.python.org/pypi/mglob
Source0:        http://pypi.python.org/packages/source/m/mglob/mglob-%{version}.zip
# sent upstream via mail
Patch0:         mglob-0.4-built-in-set.patch

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
Usable as stand-alone utility (for xargs, backticks etc.), or as a globbing
library for own python programs.
Some enhanced features are recursion, exclusion, and directory omission.

%package -n python3-mglob
Group:          Development/Python
Summary:        Enhanced file name globbing module

%description -n python3-mglob
Usable as stand-alone utility (for xargs, backticks etc.), or as a globbing
library for own python programs.
Some enhanced features are recursion, exclusion, and directory omission.

%prep
%setup -q -n mglob-%{version}
%patch0
sed -i -e '/^#!\//, 1d' mglob.py

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%{_bindir}/2to3 --write --nobackups .


%build
python3 setup.py build

%install
python3 setup.py install -O1 --skip-build --root %{buildroot}
cp %{buildroot}%{_bindir}/mglob %{buildroot}%{_bindir}/python3-mglob

%files -n python3-mglob
%{_bindir}/mglob
%{_bindir}/python3-mglob
%{py3_puresitedir}/mglob.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/mglob-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16355 |21mr|python-migrate-0.13.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname sqlalchemy-migrate

Name: python-migrate
Version: 0.13.0
Release: 4%{?dist}
Summary: Schema migration tools for SQLAlchemy
Group:	Development/Python
License: MIT
URL: https://github.com/openstack/%{srcname}
Source0: https://pypi.io/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
# Local patch to rename /usr/bin/migrate to sqlalchemy-migrate
Patch100: python-migrate-sqlalchemy-migrate.patch

BuildArch: noarch

%global _description\
Schema migration tools for SQLAlchemy designed to support an agile approach\
to database design and make it easier to keep development and production\
databases in sync as schema changes are required.  It allows you to manage\
database change sets and database repository versioning.

%description %_description

%package -n     python3-migrate
Summary: Schema migration tools for SQLAlchemy

BuildRequires: python3-devel
BuildRequires: python3-sqlalchemy >= 0.9.6
BuildRequires: python3-setuptools
BuildRequires: python3-nose
BuildRequires: python3-sphinx
BuildRequires: python3-decorator
BuildRequires: python3-tempita >= 0.4
BuildRequires: python3-pbr >= 1.3.0
BuildRequires: python3-six >= 1.9.0
BuildRequires: python3-sqlparse

Requires: python3-sqlalchemy >= 0.9.6
Requires: python3-setuptools
Requires: python3-decorator
Requires: python3-tempita >= 0.4
Requires: python3-pbr >= 1.3.0
Requires: python3-six >= 1.9.0
Requires: python3-sqlparse

%description -n python3-migrate
Schema migration tools for SQLAlchemy designed to support an agile approach
to database design and make it easier to keep development and production
databases in sync as schema changes are required.  It allows you to manage
database change sets and database repository versioning.

%prep
%setup -q -n %{srcname}-%{version}
%patch100 -p1 -b .rename

# use real unittest in python 2.7 and up
%if 0%{?fedora} || 0%{?rhel} > 6
sed -i "s/import unittest2/import unittest as unittest2/g" \
    migrate/tests/fixture/__init__.py \
    migrate/tests/fixture/base.py
%endif

%build
%py3_build

%install
%py3_install

%check
# Need to set PATH for two reasons:
# 1) Path isn't being cleared by mock so we have /root/bin/ in the PATH
# 2) Need to be able to find the newly installed migrate binaries
PATH=/bin:/usr/bin:%{buildroot}%{_bindir}
export PATH

PYTHONPATH=`pwd`
export PYTHONPATH
echo 'sqlite:///__tmp__' > test_db.cfg

# Disable temporarily until tests are adjusted to support testtools >= 0.9.36
#nosetests-3

%files -n python3-migrate
%doc README.rst doc/
%{_bindir}/sqlalchemy-migrate
%{_bindir}/sqlalchemy-migrate-repository
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16356 |21mr|python-mimeparse-1.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname python-mimeparse
# what it's imported as
%global libname mimeparse
# name of egg info directory
%global eggname python_mimeparse
# package name fragment
%global pkgname mimeparse

%global common_description %{expand:
This module provides basic functions for parsing mime-type names
and matching them against a list of media-ranges.}

%bcond_without  python2

Name:           python-%{pkgname}
Version:        1.6.0
Release:        1
Group:		Development/Python
Summary:        Python module for parsing mime-type names
License:        MIT
URL:            https://github.com/dbtsai/python-mimeparse
Source0:        %pypi_source
BuildArch:      noarch


%description %{common_description}


%if %{with python2}
%package -n python2-%{pkgname}
%py2_migration_meta python2-%{pkgname}
Summary:        %{summary}
BuildRequires:  python2-devel
BuildRequires:  python2-setuptools
%{?python_provide:%python_provide python2-%{pkgname}}


%description -n python2-%{pkgname} %{common_description}
%endif


%package -n python3-%{pkgname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
%{?python_provide:%python_provide python3-%{pkgname}}


%description -n python3-%{pkgname} %{common_description}


%prep
%setup -q -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info


%build
%if %{with python2}
%py2_build
%endif
%py3_build


%install
%if %{with python2}
%py2_install
%endif
%py3_install


%check
%if %{with python2}
PYTHONPATH=%{buildroot}%{python2_sitelib} %{__python2} mimeparse_test.py --verbose
%endif
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} mimeparse_test.py --verbose


%if %{with python2}
%files -n python2-%{pkgname}
%license LICENSE
%doc README.rst
%{python2_sitelib}/%{libname}.py*
%{python2_sitelib}/%{eggname}-%{version}-py%{python2_version}.egg-info
%endif


%files -n python3-%{pkgname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{libname}.py*
%{python3_sitelib}/__pycache__/%{libname}.cpython-*.py*
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16357 |21mr|python-minimock-1.2.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-minimock
Version:	1.2.8
Release:	7
Summary:	The simplest possible mock library
Group:		Development/Python
License:	MIT
URL:		http://pypi.python.org/pypi/MiniMock
Source0:	http://pypi.python.org/packages/source/M/MiniMock/MiniMock-%{version}.tar.gz
BuildArch:	noarch

%description
Minimock is a simple lbirary for doing Mock objects with doctest.

#----------------------------------------------------------------
%package -n python3-minimock
Summary:	The simplest possible mock library
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description -n python3-minimock
Minimock is a simple lbirary for doing Mock objects with doctest.

%files -n python3-minimock
%doc docs/*
%{py3_puresitedir}/MiniMock-%{version}-py?.?.egg-info
%{py3_puresitedir}/minimock*
%{py3_puresitedir}/__pycache__/*

#----------------------------------------------------------------

%prep
%setup -q -n MiniMock-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16358 |21mr|python-mistune-0.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name mistune

Summary:	Markdown parser
Name:		python-%{pypi_name}
Version:	0.8.4
Release:	1
Group:		Development/Python
License:	BSD
Url:		https://github.com/lepture/mistune
Source0:	https://files.pythonhosted.org/packages/2d/a4/509f6e7783ddd35482feda27bc7f72e65b5e7dc910eca4ab2164daf9c577/mistune-0.8.4.tar.gz
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python3egg(setuptools)
BuildArch:		noarch

%description
The fastest markdown parser in pure Python.

#------------------------------------------------------------------

%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:	Markdown parser
Group:		Development/Python

%description -n python2-%{pypi_name}
The fastest markdown parser in pure Python.

%files -n python2-%{pypi_name}
%doc README.rst CHANGES.rst LICENSE
%{python2_sitelib}/

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Markdown parser
Group:		Development/Python

%description -n python3-%{pypi_name}
The fastest markdown parser in pure Python.

%files -n python3-%{pypi_name}
%doc README.rst CHANGES.rst LICENSE
%{python3_sitelib}/

#------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd
%py2_build

%install
pushd %{py3dir}
%py3_install
popd
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16359 |21mr|python-mock-4.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global mod_name mock

Name:		python-mock
Version:	4.0.3
Release:	1
Summary:	A Python Mocking and Patching Library for Testing
Group:		Development/Python
License:	BSD
URL:		http://www.voidspace.org.uk/python/%{mod_name}/
Source0:	https://files.pythonhosted.org/packages/e2/be/3ea39a8fd4ed3f9a25aae18a1bff2df7a610bca93c8ede7475e32d8b73a0/mock-4.0.3.tar.gz

BuildArch:	noarch

BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(python2)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pythonegg(setuptools)


%description
Mock is a Python module that provides a core mock class. It removes the need
to create a host of stubs throughout your test suite. After performing an
action, you can make assertions about which methods / attributes were used and
arguments they were called with. You can also specify return values and set
needed attributes in the normal way.

#------------------------------------------------------------------------------
%package -n python3-mock
Summary:	A Python Mocking and Patching Library for Testing
Group:		Development/Python
Requires:	python3-six >= 1.9.0

%description -n python3-mock
Mock is a Python module that provides a core mock class. It removes the need
to create a host of stubs throughout your test suite. After performing an
action, you can make assertions about which methods / attributes were used and
arguments they were called with. You can also specify return values and set
needed attributes in the normal way.

%files -n python3-mock
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/*.egg-info/
%{python3_sitelib}/%{mod_name}

#------------------------------------------------------------------------------

%package -n python2-mock
%py2_migration_meta python2-mock
Summary:	A Python Mocking and Patching Library for Testing
Group:		Development/Python
Requires:	python2-six >= 1.9.0

%description -n python2-mock
Mock is a Python module that provides a core mock class. It removes the need
to create a host of stubs throughout your test suite. After performing an
action, you can make assertions about which methods / attributes were used and
arguments they were called with. You can also specify return values and set
needed attributes in the normal way.

%files -n python2-mock
%license LICENSE.txt
%doc README.rst
%{python2_sitelib}/*.egg-info/
%{python2_sitelib}/%{mod_name}

#------------------------------------------------------------------------------

%prep
%setup -q -n %{mod_name}-%{version}


%build
%{py3_build}
%{py2_build}

%install
%{py3_install}
%{py2_install}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16360 |21mr|python-monotonic-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name monotonic


Name:           python-%{pypi_name}
Version:	1.6
Release:	1
Summary:        An implementation of time.monotonic() for Python 2 & < 3.3
Group:		Development/Python
# Missing license file from source package
# https://github.com/atdt/monotonic/pull/4
License:        ASL 2.0
URL:            https://github.com/atdt/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/ea/ca/8e91948b782ddfbd194f323e7e7d9ba12e5877addf04fb2bf8fca38e86ac/monotonic-1.6.tar.gz
BuildArch:      noarch


%global _description\
This module provides a ``monotonic()`` function which\
returns the\
value (in fractional seconds) of a clock which never goes\
backwards.\
\
On Python 3.3 or newer, ``monotonic`` will be an alias of\
``time.monotonic`` from the standard library. On older versions,\
it will fall back to an equivalent platform specific implementation.\


%description %_description

%package -n python3-%{pypi_name}
Summary:        An implementation of time.monotonic() for Python 2 & < 3.3

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
This module provides a ``monotonic()`` function which
returns the
value (in fractional seconds) of a clock which never goes
backwards.

On Python 3.3 or newer, ``monotonic`` will be an alias of
``time.monotonic`` from the standard library. On older versions,
it will fall back to an equivalent platform specific implementation.


%prep
%autosetup -n %{pypi_name}-%{version}


%build
%py3_build

%install
%py3_install


%files -n python3-%{pypi_name}
%license LICENSE
%{python3_sitelib}/__pycache__/%{pypi_name}.*
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16361 |21mr|python-more-itertools-8.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	more-itertools

Name:		python-%{oname}
Version:	8.8.0
Release:	1
Summary:	More routines for operating on iterables, beyond itertools
Url:		https://github.com/erikrose/more-itertools
Source0:	https://files.pythonhosted.org/packages/03/0a/4769cc0557fbe690f86bc4c183faa116f1050e5c9296f1b7b5806f063cdb/more-itertools-8.8.0.tar.gz
License:	MIT
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Python's ``itertools`` library is a gem - you can compose elegant solutions
for a variety of problems with the functions it provides. In ``more-itertools``
we collect additional building blocks, recipes, and routines for working with
Python iterables.
#============================================================================
%package -n python3-%{oname}
Summary:	More routines for operating on iterables, beyond itertools
Group:		Development/Python

%description -n python3-%{oname}
Python's ``itertools`` library is a gem - you can compose elegant solutions
for a variety of problems with the functions it provides. In ``more-itertools``
we collect additional building blocks, recipes, and routines for working with
Python iterables.

%files -n python3-%{oname}
%doc LICENSE README.rst docs/license.rst
%{python3_sitelib}/more_itertools/*.py*
%{python3_sitelib}/more_itertools*.egg-info
%{python3_sitelib}/more_itertools/__pycache__/*.py*
#============================================================================
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16362 |21mr|python-mox3-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module mox3

Name:           python-%{module}
Version:	1.1.0
Release:	1
Group:          Development/Python
Summary:        Mock object framework for Python
License:        ASL 2.0
URL:            http://www.openstack.org/
Source0:	https://files.pythonhosted.org/packages/90/ac/2220e111a63e32872567d6e677b4b36163c0c5ac766ef76d00dee3eabdf9/mox3-1.1.0.tar.gz

BuildArch:	noarch

%description
Mox3 is an unofficial port of the Google mox framework to Python 3. It
was meant to be as compatible with mox as possible, but small enhancements
have been made.

#-------------------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Mock object framework for Python 3
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pbr)
BuildRequires:  python3egg(fixtures)
BuildRequires:  python3-pip
Requires:  python3egg(fixtures)
Requires:  python3egg(pbr)

%description -n python3-%{module}
Mox3 is an unofficial port of the Google mox framework to Python 3. It
was meant to be as compatible with mox as possible, but small enhancements
have been made.


%files -n python3-%{module}
%doc AUTHORS *.rst COPYING.txt
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info/
#-------------------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16363 |21mr|python-mpmath-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name mpmath

Name:		python-mpmath
Version:	1.2.1
Release:	1
Summary:	Python library for arbitrary-precision floating-point arithmetic
Group:		Development/Python
License:	BSD
URL:		http://mpmath.org/
Source0:	https://pypi.python.org/packages/source/m/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
A Python library for arbitrary-precision floating-point arithmetic.

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python library for arbitrary-precision floating-point arithmetic
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	python3-setuptools_scm
Recommends:	python3-matplotlib

%description -n python3-%{pypi_name}
A Python library for arbitrary-precision floating-point arithmetic.

%files -n python3-%{pypi_name}
%doc README.new CHANGES
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.*.egg-info

#----------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Convert line encodings
for doc in LICENSE CHANGES PKG-INFO README mpmath/tests/runtests.py; do
 sed "s|\r||g" $doc > $doc.new && \
 touch -r $doc $doc.new && \
 mv $doc.new $doc
done

# Get rid of unnecessary shebangs
for lib in mpmath/elliptic.py mpmath/tests/runtests.py; do
 sed '/#!\/usr\/bin\/env/d' $lib > $lib.new && \
 touch -r $lib $lib.new && \
 mv $lib.new $lib
done

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16364 |21mr|python-msgpack-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

%define pypi_name	msgpack

Name:		python-msgpack
Version:	1.0.2
Release:	1
Summary:	MessagePack (de)serializer for Python
Group:		Development/Python
License:	Apache License
Url:		http://msgpack.org/
Source0:	https://files.pythonhosted.org/packages/59/04/87fc6708659c2ed3b0b6d4954f270b6e931def707b227c4554f99bd5401e/msgpack-1.0.2.tar.gz


%description
MessagePack is an efficient binary serialization format. It lets you exchange 
data among multiple languages like JSON. But it's faster and smaller. This package 
provides CPython bindings for reading and writing MessagePack data.
#----------------------------------------------------------------------------------
%package -n python3-msgpack
Summary:	MessagePack (de)serializer for Python
Group:		Development/Python
BuildRequires:	python3-cython
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Provides:	python3dist(msgpack) = %{EVRD}
Provides:	python%{py3_ver}dist(msgpack) = %{EVRD}
Provides:	python3dist(msgpack-python) = %{EVRD}
Provides:	python%{py3_ver}dist(msgpack-python) = %{EVRD}
Provides:	python3egg(msgpack) = %{EVRD}
Provides:	python3egg(msgpack-python) = %{EVRD}

%description -n python3-msgpack
MessagePack is an efficient binary serialization format. It lets you exchange 
data among multiple languages like JSON. But it's faster and smaller. This package 
provides CPython bindings for reading and writing MessagePack data.

%files -n python3-msgpack
%doc COPYING README.md
%{python3_sitearch}/msgpack
%{python3_sitearch}/msgpack-%{version}-py%{python3_version}.egg-info/*
#----------------------------------------------------------------------------------
%prep
%setup -qn msgpack-%{version}

%build
%py3_build

%install
PYTHONDONTWRITEBYTECODE=  %py3_install

%clean

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16365 |21mr|python-multidict-5.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name  multidict

Name:		python-%{pypi_name}
Version:	5.1.0
Release:	1
Summary:	multidict implementation
Group:		Development/Python
License:	ASL 2.0
Url:		https://github.com/aio-libs/multidict/
Source0:	https://github.com/aio-libs/multidict/archive/v%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz

%description
Multidicts are useful for working with HTTP headers, URL query args etc.

The code was extracted from aiohttp library.

#-------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	multidict implementation
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
Multidicts are useful for working with HTTP headers, URL query args etc.

The code was extracted from aiohttp library.

%files -n python3-%{pypi_name}
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/%{pypi_name}-*.egg-info

#-------------------------------------------------------------------------
%prep
%setup -q -n  multidict-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16366 |21mr|python-munch-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname munch

Name:		python-munch
Version:	2.5.0
Release:	1
Summary:	A dot-accessible dictionary (a la JavaScript objects)
Group:		Development/Python
License:	MIT
URL:		https://pypi.io/project/munch
Source0:	https://pypi.io/packages/source/m/%{modname}/%{modname}-%{version}.tar.gz

BuildArch:	noarch

%description
munch is a fork of David Schoonover's **Bunch** package, providing similar
functionality. 99% of the work was done by him, and the fork was made
mainly for lack of responsiveness for fixes and maintenance on the original
code.

Munch is a dictionary that supports attribute-style access, a la
JavaScript.

#------------------------------------------------------------------------

%package -n python3-munch
Summary:	A dot-accessible dictionary (a la JavaScript objects)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(pbr)

%description -n python3-munch
munch is a fork of David Schoonover's **Bunch** package, providing similar
functionality. 99% of the work was done by him, and the fork was made
mainly for lack of responsiveness for fixes and maintenance on the original
code.

Munch is a dictionary that supports attribute-style access, a la
JavaScript.

%files -n python3-munch
%doc README.md
%doc LICENSE.txt
%{python3_sitelib}/%{modname}/
%{python3_sitelib}/%{modname}-%{version}*

#------------------------------------------------------------------------

%prep
%setup -q -n %{modname}-%{version}

# Remove shebang to make rpmlint happy.
sed -i '/\/usr\/bin\/python/d' munch/__init__.py

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16367 |21mr|python-mutatormath-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name mutatormath

Name:           python-%{pypi_name}
Version:        3.0.1
Release:        1
Summary:        Python for piecewise linear interpolation in multiple dimensions with multiple, arbitrarily placed, masters
Group:          Development/Python
License:        BSD 3 Clause
URL:            https://github.com/LettError/MutatorMath
Source0:        https://pypi.io/packages/source/m/%{pypi_name}/MutatorMath-%{version}.zip
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(defcon) >= 0.3.5
BuildRequires:  python3dist(fontmath) >= 0.4.8
BuildRequires:  python3dist(fonttools) >= 3.32.0
BuildRequires:  python3dist(fs)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(unicodedata2)

%description
MutatorMath is a Python library for the calculation of piecewise linear
interpolations in n-dimensions with any number of masters. It was
developed for interpolating data related to fonts, but if can handle any
arithmetic object.

#--------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
MutatorMath is a Python library for the calculation of piecewise linear
interpolations in n-dimensions with any number of masters. It was
developed for interpolating data related to fonts, but if can handle any
arithmetic object.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/mutatorMath/
%{python3_sitelib}/MutatorMath-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------------

%prep
%autosetup -n MutatorMath-%{version}

# Remove bundled egg-info
rm -rf Lib/*.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16368 |21mr|python-mwclient-0.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-mwclient
Version:	0.10.1
Release:	1
Summary:        Mwclient is a client to the MediaWiki API
Group:          Development/Python
License:        MIT
URL:            http://sourceforge.net/apps/mediawiki/mwclient/index.php?title=Main_Page
Source0:        https://github.com/mwclient/mwclient/archive/v%{version}.tar.gz?/mvclient-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(flake8)
Requires:       python3egg(simplejson)

%description
Mwclient is a client to the MediaWiki API <http://mediawiki.org/wiki/API>
and allows access to almost all implemented API functions

#--------------------------------------------------------------------
%package -n python3-mwclient
Summary:        Mwclient is a client to the MediaWiki API
Group:		Development/Python

%description -n python3-mwclient
Mwclient is a client to the MediaWiki API <http://mediawiki.org/wiki/API>
and allows access to almost all implemented API functions

%files  -n python3-mwclient
%{python3_sitelib}/mwclient

# -------------------------------------------------------------------

%prep
%setup -q -n mwclient-%{version}

%build
:

%install
install -d -m755 %{buildroot}%{python3_sitelib}/mwclient/
install -pm 0644 *.py %{buildroot}%{python3_sitelib}/mwclient/


%clean

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16369 |21mr|python-mypy_extensions-0.4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  mypy_extensions

Summary:        Experimental type system extensions for programs checked with the mypy typechecker
Name:           python-%{module}
Version:        0.4.3
Release:        2
License:        MIT
Group:          Development/Python
Url:            https://pypi.org/project/%{module}
Source0:        %{pypi_source %{module} %{version}}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
Experimental type system extensions for programs checked with the mypy typechecker.

The “mypy_extensions” module defines experimental extensions to the standard 
“typing” module that are supported by the mypy typechecker.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:      %{summary}
Group:        Development/Python

%description -n python3-%{module}
Experimental type system extensions for programs checked with the mypy typechecker.

The “mypy_extensions” module defines experimental extensions to the standard 
“typing” module that are supported by the mypy typechecker.

%files -n python3-%{module}
%{python3_sitelib}/%{module}.py
%{python3_sitelib}/__pycache__/%{module}*.py*
%{python3_sitelib}/%{module}-%{version}-py*.egg-info/

#------------------------------------------------------------------

%prep 
%autosetup -p1 -n %{module}-%{version}

%build
%{py3_build}

%install
%{py3_install}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16370 |21mr|python-mysql-2.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python interface to MySQL
Name:		python-mysql
Version:	2.0.3
Release:	1
License:	GPLv2
Group:		Development/Python
URL:		https://github.com/PyMySQL/mysqlclient-python
Source0:	https://files.pythonhosted.org/packages/3c/df/59cd2fa5e48d0804d213bdcb1acb4d08c403b61c7ff7ed4dd4a6a2deb3f7/mysqlclient-2.0.3.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	mariadb-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(openssl)

%description
Python interface to MySQL-3.2 and beyond

MySQLdb is an interface to the popular MySQL database server for Python.
The design goals are:

-     Compliance with Python database API version 2.0
-     Thread-safety
-     Thread-friendliness (threads will not block each other)
-     Compatibility with MySQL-3.23 and later

This module should be mostly compatible with an older interface written by Joe
Skinner and others. However, the older version is a) not thread-friendly, b)
written for MySQL 3.21, c) apparently t actively maintained. No code from that
version is used in MySQLdb. MySQLdb is free software.

%package -n python3-mysql
Summary:	Python interface to MySQL

%description -n python3-mysql
Python interface to MySQL-3.2 and beyond

MySQLdb is an interface to the popular MySQL database server for Python.
The design goals are:

-     Compliance with Python database API version 2.0
-     Thread-safety
-     Thread-friendliness (threads will not block each other)
-     Compatibility with MySQL-3.23 and later

This module should be mostly compatible with an older interface written by Joe
Skinner and others. However, the older version is a) not thread-friendly, b)
written for MySQL 3.21, c) apparently t actively maintained. No code from that
version is used in MySQLdb. MySQLdb is free software.


%prep
%autosetup -n mysqlclient-%{version} -p1

%build
%py3_build

%install
%py3_install

%files -n python3-mysql
%doc doc/*
%{python3_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16371 |21mr|python-mysqlclient-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name mysqlclient

Name:           python-%{pypi_name}
Version:        2.0.0
Release:        2
Summary:        MySQL/mariaDB database connector for Python
Group:          Development/Python
License:        GPLv2
URL:            https://github.com/PyMySQL/mysqlclient-python
Source0:        https://github.com/PyMySQL/mysqlclient-python/archive/v%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  gcc
# mariadb-connector-c
BuildRequires:  mysql-devel
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-sphinx

%description
MySQLdb is an interface to the popular MySQL database server that provides
the Python database API.

#--------------------------------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name}
MySQLdb is an interface to the popular MySQL database server that provides
the Python database API.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md HISTORY.rst
%{python3_sitearch}/MySQLdb/
%{python3_sitearch}/%{pypi_name}-%{version}-py*.egg-info/

#--------------------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:        Documentation for %{name}

%description -n python-%{pypi_name}-doc
Documentation for %{name}.

%files -n python-%{pypi_name}-doc
%license LICENSE
%doc html

#--------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build
PYTHONPATH=${PWD} sphinx-build-3 doc html
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16372 |21mr|python-nacl-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	PyNaCl
%define module	nacl

Name:		python-%{module}
Version:	1.3.0
Release:	1
Summary:	Python binding to the Networking and Cryptography (NaCl) library
Url:		https://github.com/pyca/%{module}
Source0:	https://github.com/pyca/pynacl/archive/%{version}.tar.gz?/pynacl-%{version}.tar.gz
License:	Apache License
Group:		Development/Python

%description
PyNaCl is a Python binding to libsodium,
which is a fork of the Networking and Cryptography library.
These libraries have a stated goal of improving usability, security and speed.
It supports Python 2.7 and 3.4+ as well as PyPy 2.6+.

#==============================================================================
%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:        Python binding to the Networking and Cryptography (NaCl) library
Group:		Development/Python
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(cffi)
Requires:	python2-cffi >= 1.4.1
Requires:	python2-six

%description -n python2-%{module}
PyNaCl is a Python binding to libsodium,
which is a fork of the Networking and Cryptography library.
These libraries have a stated goal of improving usability, security and speed.
It supports Python 2.7 and 3.4+ as well as PyPy 2.6+.

%files -n python2-%{module}
%doc CHANGELOG.rst LICENSE README.rst
%{python2_sitearch}/%{module}
%{python2_sitearch}/%{oname}-%{version}-py*.egg-info

#==============================================================================
%package -n python3-%{module}
Summary:        Python binding to the Networking and Cryptography (NaCl) library
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(cffi)
Requires:	python3-cffi >= 1.4.1
Requires:	python3-six

%description -n python3-%{module}
PyNaCl is a Python binding to libsodium,
which is a fork of the Networking and Cryptography library.
These libraries have a stated goal of improving usability, security and speed.
It supports Python 2.7 and 3.4+ as well as PyPy 2.6+.

%files -n python3-%{module}
%doc CHANGELOG.rst LICENSE README.rst
%{python3_sitearch}/%{module}
%{python3_sitearch}/%{oname}-%{version}-py*.egg-info

#=============================================================================
%prep
%setup -q -n pynacl-%{version}

%build
export PYTHON=%__python2
%py2_build
%py3_build

%install
%py2_install
%py3_install
rm --recursive --force %{buildroot}%{_lib}/debug
rm --recursive --force %{buildroot}%{_usrsrc}/debug/%{module}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16373 |21mr|python-naked-0.1.31-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module naked
%define realname Naked

Summary: 	A Python command line application framework
Name: 	 	python-%{module}
Version: 	0.1.31
Release: 	4
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/Naked/
Source0:        https://files.pythonhosted.org/packages/source/N/%{realname}/%{realname}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-pkg-resources
BuildArch:      noarch

%description
A Python command line application framework

#------------------------------------------------------------------

%package -n python3-%{module}
Summary: 	A Python3 command line application framework
Group:		Development/Python
Provides:	python3-%{module}
Provides:	python3-%{realname}
Provides:	%{realname}

%description -n python3-%{module}
A Python3 command line application framework

%files -n python3-%{module}
%doc docs/LICENSE lib/Naked/templates/licenses.py docs/README.rst lib/Naked/templates/readme_md_file.py
%{_bindir}/naked
%{python3_sitelib}/%{realname}
%{python3_sitelib}/%{realname}-%{version}-py?.?.egg-info

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{realname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16374 |21mr|python-ndg-httpsclient-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname ndg_httpsclient
%define	module	ndg-httpsclient

Name:		python-%{module}
Version:	0.5.1
Release:	1
Summary:	Provides enhanced HTTPS support for httplib and urllib2 using PyOpenSSL
Url:		https://github.com/cedadev/ndg_httpsclient/
Source0:	%{pypi_source}
License:	BSD - See ndg/httpsclient/LICENCE file for details
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-pyasn1
BuildRequires:	python3-pyOpenSSL
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
This is a HTTPS client implementation for httplib and urllib2 based on
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
over the default provided with Python and importantly enables full
verification of the SSL peer.

#------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	%{summary}
Group:		%{group}
# compat with Fedora
Provides:	python3-%{srcname} = %{EVRD}

%description -n python3-%{module}
This is a HTTPS client implementation for httplib and urllib2 based on
PyOpenSSL. PyOpenSSL provides a more fully featured SSL implementation
over the default provided with Python and importantly enables full
verification of the SSL peer.

%files -n python3-%{module}
%license ndg/httpsclient/LICENSE
%doc ndg/httpsclient/test/README
%{_bindir}/ndg_httpclient
%{python3_sitelib}/ndg/
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16375 |21mr|python-netaddr-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name netaddr

Summary:	Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
Name:		python-%{pypi_name}
Version:	0.8.0
Release:	2
License:	BSD3c
Group:		Development/Python
Url:		https://github.com/drkjam/netaddr
Source0:	https://pypi.io/packages/source/n/netaddr/netaddr-%{version}.tar.gz
BuildArch:	noarch

%description
A pure Python network address representation and manipulation library.

netaddr provides a Pythonic way of working with:
    - IPv4 and IPv6 addresses and subnets (including CIDR notation);
    - MAC (Media Access Control) addresses in multiple formats;
    - IEEE EUI-64, OUI and IAB identifiers;
    - a user friendly IP glob-style format.

Included are routines for:
    - generating, sorting and summarizing IP addresses;
    - converting IP addresses and ranges between various different formats;
    - performing set based operations on groups of IP addresses and subnets;
    - arbitrary IP address range calculations and conversions;
    - querying IEEE OUI and IAB organisational information;
    - querying of IP standards related data from key IANA data sources.

#------------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Pythonic manipulation of IPv4, IPv6, CIDR, EUI and MAC network addresses
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{pypi_name}
A pure Python network address representation and manipulation library.

netaddr provides a Pythonic way of working with:
    - IPv4 and IPv6 addresses and subnets (including CIDR notation);
    - MAC (Media Access Control) addresses in multiple formats;
    - IEEE EUI-64, OUI and IAB identifiers;
    - a user friendly IP glob-style format.

Included are routines for:
    - generating, sorting and summarizing IP addresses;
    - converting IP addresses and ranges between various different formats;
    - performing set based operations on groups of IP addresses and subnets;
    - arbitrary IP address range calculations and conversions;
    - querying IEEE OUI and IAB organisational information;
    - querying of IP standards related data from key IANA data sources.

%files -n python3-%{pypi_name}
%doc AUTHORS CHANGELOG COPYRIGHT LICENSE
%{_bindir}/%{pypi_name}
%{python3_sitelib}/*

#------------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
chmod -x AUTHORS CHANGELOG COPYRIGHT LICENSE # remove executable bit from docs

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16376 |21mr|python-netifaces-0_11_0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	netifaces
%define ver	%(echo %{version} |tr . _)

Name:		python-%{pypi_name}
Version:	0_11_0
Release:	1
Summary:	Portable network interface information
Group:		Development/Python
License:	MIT License
Url:		http://alastairs-place.net/netifaces
Source0:	https://github.com/al45tair/netifaces/archive/release_%{ver}.tar.gz?/%{pypi_name}-release_%{ver}.tar.gz

BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)

%description
netifaces provides a (hopefully portable-ish) way for Python programmers to
get access to a list of the network interfaces on the local machine, and to
obtain the addresses of those network interfaces.

The package has been tested on Mac OS X, Windows XP, Windows Vista, Linux
and Solaris.

It should work on other UNIX-like systems provided they implement
either getifaddrs() or support the SIOCGIFxxx socket options, although the
data provided by the socket options is normally less complete.

#----------------------------------------------------------------------------
%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:	Portable network interface information
Group:		Development/Python

%description -n python2-%{pypi_name}
netifaces provides a (hopefully portable-ish) way for Python programmers to
get access to a list of the network interfaces on the local machine, and to
obtain the addresses of those network interfaces.

The package has been tested on Mac OS X, Windows XP, Windows Vista, Linux
and Solaris.

It should work on other UNIX-like systems provided they implement
either getifaddrs() or support the SIOCGIFxxx socket options, although the
data provided by the socket options is normally less complete.

%files -n python2-%{pypi_name}
%{python2_sitearch}/netifaces*.so
%{python2_sitearch}/netifaces*.egg-info
#----------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Portable network interface information
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
netifaces provides a (hopefully portable-ish) way for Python programmers to
get access to a list of the network interfaces on the local machine, and to
obtain the addresses of those network interfaces.

The package has been tested on Mac OS X, Windows XP, Windows Vista, Linux
and Solaris.

It should work on other UNIX-like systems provided they implement
either getifaddrs() or support the SIOCGIFxxx socket options, although the
data provided by the socket options is normally less complete.

%files -n python3-%{pypi_name}
%{python3_sitearch}/netifaces*.so
%{python3_sitearch}/netifaces*.egg-info
#----------------------------------------------------------------------------

%prep
%setup -qc
mv %{pypi_name}-release_%{ver} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
%py2_install
popd

pushd python3
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16377 |21mr|python-netmiko-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname netmiko

Summary:	Multi-vendor library to simplify Paramiko SSH connections to network devices
Name:		python-%{srcname}
Version:	3.4.0
Release:	1
License:	MIT and ASL 2.0
Group:		Development/Python
Url:		https://pypi.org/project/%{srcname}
Source0:	https://files.pythonhosted.org/packages/source/n/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

%description
Multi-vendor library to simplify Paramiko SSH connections to network devices.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	Multi-vendor library to simplify Paramiko SSH connections to network devices
Group:		Development/Python
BuildRequires:	python3-devel
# For import test, keep the same as requirements
BuildRequires:	python3-paramiko
BuildRequires:	python3-scp
BuildRequires:	python3-serial
BuildRequires:	python3-tenacity
BuildRequires:	python3-textfsm
BuildRequires:	python3-setuptools
Requires:	python3-paramiko >= 2.6.0
Requires:	python3-scp >= 0.13.2
Requires:	python3-serial
Requires:	python3-tenacity
Requires:	python3-textfsm

%description -n python3-%{srcname}
Multi-vendor library to simplify Paramiko SSH connections to network devices.

%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/*

#----------------------------------------------------------------------------

# FIXME: build the documentation, when upstream starts shipping its sources:
# https://github.com/ktbyers/netmiko/issues/507

%prep
%autosetup -n %{srcname}-%{version}
# NOTE(dtantsur): ntc-templates is not packaged, we're using python3-textfsm
# instead. Fixes https://bugzilla.redhat.com/show_bug.cgi?id=1927400.
sed -i '/ntc-templates/d' setup.py

%build
%py3_build

%install
%py3_install

%check
# FIXME: run unit tests, when/if upstream creates them:
# https://github.com/ktbyers/netmiko/issues/509
%__python3 -c "from netmiko import ConnectHandler"


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16378 |21mr|python-network-runner-0.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name network-runner
%global ansible_role network-runner

Summary:	Abstraction and Python API for Ansible Networking
Name:		python-%{pypi_name}
Version:	0.3.6
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/ansible-network/%{pypi_name}
Source0:	https://github.com/ansible-network/%{pypi_name}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	ansible >= 2.6
BuildRequires:	python3-devel
BuildRequires:	python3dist(ansible-runner)
BuildRequires:	python3dist(mock)
BuildRequires:	python3dist(pytest)
BuildArch:	noarch

%description
Network Runner is a set of ansible roles and python library that
abstracts Ansible Networking operations. It interfaces
programatically through ansible-runner.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Abstraction and Python API for Ansible Networking
Group:		Development/Python
Requires:	python3dist(ansible-runner)
# Python code cannot work without the ansible roles
Requires:	ansible-role-%{ansible_role} = %{EVRD}

%description -n python3-%{pypi_name}
Network Runner is a set of ansible roles and python library that
abstracts Ansible Networking operations. It interfaces
programatically through ansible-runner.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/network_runner
%{python3_sitelib}/network_runner-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%package -n ansible-role-%{ansible_role}
Summary:	Role for Python Network Runner Library
Group:		Development/Python
Requires:	ansible >= 2.6
# No cross sub-package dependency.
# Can be installed and used without python package.

%description -n ansible-role-%{ansible_role}
Role for Python Network Runner Library.

%files -n ansible-role-%{ansible_role}
%license LICENSE
%doc %{_sysconfdir}/ansible/roles/%{ansible_role}/README.md
%{_sysconfdir}/ansible/roles/%{ansible_role}/defaults
%{_sysconfdir}/ansible/roles/%{ansible_role}/handlers
%{_sysconfdir}/ansible/roles/%{ansible_role}/meta
%{_sysconfdir}/ansible/roles/%{ansible_role}/providers
%{_sysconfdir}/ansible/roles/%{ansible_role}/tasks
%{_sysconfdir}/ansible/roles/%{ansible_role}/templates
%{_sysconfdir}/ansible/roles/%{ansible_role}/tests
%{_sysconfdir}/ansible/roles/%{ansible_role}/vars

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
LANG=C.utf-8 %{__python3} -m pytest --ignore=build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16379 |21mr|python-networkx-2.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	networkx

Name:		python-%{module}
Version:	2.6.2
Release:	1
Summary:	Python package for the study of complex networks
License:	BSD
Group:		Development/Python
Url:		http://networkx.github.io/
Source0:	https://files.pythonhosted.org/packages/4b/3b/4378599026b81d1987a6e0d6d3d677e8f26308a039491a6b8a1914e58a4c/networkx-2.6.2.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(matplotlib)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(nose)
Requires:	python3egg(matplotlib)
BuildArch:	noarch

%description
NetworkX (NX) is a Python package for the creation, manipulation, and
study of the structure, dynamics, and functions of complex networks.

Features:
* Includes standard graph-theoretic and statistical physics functions
* Easy exchange of network algorithms between applications, disciplines,
  and platforms
* Includes many classic graphs and synthetic networks
* Nodes and edges can be "anything" (e.g. time-series, text, images,
  XML records)
* Exploits existing code from high-quality legacy software in C, C++,
  Fortran, etc.
* Open source (encourages community input)
* Unit-tested

%package -n python3-%{module}
Summary:	Python package for the study of complex networks
Group:		Development/Python
Provides:	python3-networkx-core = %{EVRD}

%description -n python3-%{module}
SIP is a tool that makes it very easy to create Python bindings
for C and C++ libraries. It was originally developed to create PyQt,
the Python bindings for the Qt toolkit, but can be used to
create bindings for any C or C++ library.

%files -n python3-%{module}
%doc installed-docs/*
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py%{python3_version}.egg-info

#=======================================================================

%prep
%autosetup -p0 -n %{module}-%{version}
# Do not use env
for f in $(grep -FRl %{_bindir}/env .); do
  sed -e 's,%{_bindir}/env python[[:digit:]]*,%{__python3},' \
      -e 's,%{_bindir}/env ,%{_bindir},' \
      -i.orig $f
  touch -r $f.orig $f
  rm $f.orig
done

# Use local objects.inv for intersphinx
sed -e "s|'https://docs\.python\.org/2/': None|'https://docs.python.org/': '%{_docdir}/python3-docs/html/objects.inv'|" \
    -e "s|\('https://docs\.scipy\.org/doc/numpy/': \)None|\1'%{_docdir}/python3-numpy-doc/objects.inv'|" \
    -i doc/conf.py

# Use new decorator
sed -i 's/decorator>=4\.3,<5/decorator>=5.0.7/' setup.py

%build
%py3_build

%install
%py3_install

mv %{buildroot}%{_docdir}/networkx-%{version} ./installed-docs
rm -f installed-docs/INSTALL.txt

# Fix permissions and binary paths
for f in `grep -FRl /usr/bin/env %{buildroot}%{python2_sitelib}`; do
  sed 's|/usr/bin/env python|%{_bindir}/python|' $f > $f.new
  touch -r $f $f.new
  chmod a+x $f.new
  mv -f $f.new $f
done

for f in `grep -FRl /usr/bin/env %{buildroot}%{python3_sitelib}`; do
  sed 's|/usr/bin/env python|%{_bindir}/python3|' $f > $f.new
  touch -r $f $f.new
  chmod a+x $f.new
  mv -f $f.new $f
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16380 |21mr|python-nltk-3.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	nltk

Summary:	Natural Language Toolkit for Python
Name:		python-%{module}
Version:	3.6.2
Release:	1
Epoch:		0
License:	Apache License 2.0
Group:		Development/Python
Url:		http://www.nltk.org/
Source0:	https://files.pythonhosted.org/packages/fe/a5/b7931f2c2c3204c304e0a3a6396d7adeb15335b8d2ab46e5ca48666c9186/nltk-3.6.2.zip
BuildArch:	noarch
Requires:	python3-yaml >= 3.0.9
Recommends:	python3-numpy >= 1.5.1
Recommends:	python3-matplotlib >= 1.0.1
BuildRequires:	python3-yaml >= 3.0.9
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
NLTK (the Natural Language Toolkit) is a suite of open source Python
modules, data and documentation for research and development in
natural language processing.

%package -n python3-%{module}
Summary:	Natural Language Toolkit for Python

%description -n python3-%{module}
NLTK (the Natural Language Toolkit) is a suite of open source Python
modules, data and documentation for research and development in
natural language processing.


%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%{_bindir}/%{module}
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16381 |21mr|python-nose-1.3.7-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	nose

Summary:	Unittest-based testing framework for Python
Name:		python-%{module}
Version:	1.3.7
Release:	12
License:	LGPLv2+
Group:		Development/Python
Url:		http://readthedocs.org/docs/nose/
Source0:	https://pypi.io/packages/source/n/nose/%{module}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	dos2unix

%package -n %python2-%{module}
%py2_migration_meta %python2-%{module}
Summary:	Unittest-based testing framework for Python 2
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
Requires:	pythonegg(setuptools)

%description
nose extends the test loading and running features of unittest, making it easier
to write, find and run tests.

By default, nose will run tests in files or directories under the current
working directory whose names include "test" or "Test" at a word boundary (like
"test_this" or "functional_test" or "TestClass" but not "libtest"). Test output
is similar to that of unittest, but also includes captured stdout output from
failing tests, for easy print-style debugging.

These features, and many more, are customizable through the use of plugins.
Plugins included with nose provide support for doctest, code coverage and
profiling, flexible attribute-based test selection, output capture and more.

%description -n %python2-%{module}
nose extends the test loading and running features of unittest, making it easier
to write, find and run tests.

By default, nose will run tests in files or directories under the current
working directory whose names include "test" or "Test" at a word boundary (like
"test_this" or "functional_test" or "TestClass" but not "libtest"). Test output
is similar to that of unittest, but also includes captured stdout output from
failing tests, for easy print-style debugging.

These features, and many more, are customizable through the use of plugins.
Plugins included with nose provide support for doctest, code coverage and
profiling, flexible attribute-based test selection, output capture and more.

This is the Python 2 version.

%package -n python3-%{module}
Summary:	Discovery-based unittest extension for Python 3
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	python3egg(setuptools)

%description -n python3-%{module}
nose extends the test loading and running features of unittest, making it easier
to write, find and run tests.

By default, nose will run tests in files or directories under the current
working directory whose names include "test" or "Test" at a word boundary (like
"test_this" or "functional_test" or "TestClass" but not "libtest"). Test output
is similar to that of unittest, but also includes captured stdout output from
failing tests, for easy print-style debugging.

This package installs the nose module and nosetests3 program that can discover
python3 unittests.

%prep
%setup -q -n %{module}-%{version}
dos2unix examples/attrib_plugin.py

cp -a . %{py3dir}

%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
# Must do the python3 install first because the scripts in /usr/bin are
# overwritten with every setup.py install (and we want the python2 version
# to be the default for now).
pushd %{py3dir}
%py3_install -- --install-data=%{_datadir}
rm %{buildroot}%{_bindir}/nosetests
mv %{buildroot}%{_mandir}/man1/nosetests.1 %{buildroot}%{_mandir}/man1/nosetests-%{python3_version}.1
popd

%py2_install -- --install-data=%{_datadir}
rm %{buildroot}%{_bindir}/nosetests

( cd %{buildroot}%{_bindir}
  ln -s nosetests-%{python3_version} nosetests-3
  ln -s nosetests-%{python2_version} nosetests-2
  ln -s nosetests-%{python3_version} nosetests
)

%check
# Various selftests fail on our build system; skip them for now using "-e"
%{__python2} selftest.py -e test_multiprocessing -e test_coverage_plugin
exit 0 # disable python3 testsuite
pushd %{py3dir}
export PYTHONPATH=`pwd`/build/lib
%{__python3} setup.py build_tests
%{__python3} selftest.py -e test_multiprocessing -e test_coverage_plugin
popd

%files -n %python2-%{module}
%doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt
%{_bindir}/nosetests-2
%{_bindir}/nosetests-%{python2_version}
%{_mandir}/man1/nosetests.*
%{python2_sitelib}/nose*

%files -n python3-%{module}
%doc AUTHORS CHANGELOG lgpl.txt NEWS README.txt
%{_bindir}/nosetests-%{python3_version}
%{_bindir}/nosetests-3
%{_bindir}/nosetests
%{_mandir}/man1/nosetests-%{python3_version}.*
%{python3_sitelib}/nose*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16382 |21mr|python-nose2-0.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname nose2

Name:           python-%{srcname}
Version:        0.9.1
Release:        4
Summary:        Next generation of nicer testing for Python
Group:		Development/Python
License:        BSD
URL:            https://nose2.readthedocs.org
Source0:        %pypi_source

BuildArch:      noarch

BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-six
BuildRequires: python3-mock
BuildRequires: python3-cov-core

%description
nose2 is the next generation of nicer testing for Python, based on the plugins
branch of unittest2. nose2 aims to improve on nose by:
- providing a better plugin API
- being easier for users to configure
- simplifying internal interfaces and processes
- supporting Python 2 and 3 from the same codebase, without translation
- encouraging greater community involvement in its development

In service of some those goals, some features of nose will not be supported in
nose2. See the documentation for a thorough rundown.


%package -n python3-%{srcname}
Summary:        Next generation of nicer testing for Python
%{?python_provide:%python_provide python3-%{srcname}}
Requires:       python3-setuptools
Requires:       python3-six >= 1.6
Requires:       python3-cov-core >= 1.12
Conflicts:      python2-%{srcname} < 0.7.4-3

%description -n python3-%{srcname}
nose2 is the next generation of nicer testing for Python, based on the plugins
branch of unittest2. nose2 aims to improve on nose by:
- providing a better plugin API
- being easier for users to configure
- simplifying internal interfaces and processes
- supporting Python 2 and 3 from the same codebase, without translation
- encouraging greater community involvement in its development

In service of some those goals, some features of nose will not be supported in
nose2. See the documentation for a thorough rundown.

%prep
%autosetup -n %{srcname}-%{version} -p0

%build
%py3_build
%if 0%{?with_python3_other}
%py3_other_build
%endif

%install
%py3_install

%check
PYTHONPATH=`pwd` %{__python3} -m nose2.__main__ -v

%files -n python3-%{srcname}
%license license.txt
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/nose2-%{python3_version}
%{_bindir}/nose2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16383 |21mr|python-nose-exclude-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name nose-exclude

Summary:	Exclude specific directories from nosetests runs
Name:		python-%{pypi_name}
Version:	0.5.0
Release:	1
License:	LGPLv2
Group:		Development/Python
Url:		https://pypi.python.org/pypi/nose-exclude/%{version}
Source0:	https://pypi.python.org/packages/source/n/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
nose-exclude is a `Nose`_ plugin that allows you to easily specify directories
to be excluded from testing.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Exclude specific directories from nosetests runs
Group:		Development/Python
Requires:	python3-nose

%description -n python3-%{pypi_name}
nose-exclude is a `Nose`_ plugin that allows you to easily specify directories
to be excluded from testing.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/nose_exclude.py*
%{python3_sitelib}/nose_exclude-%{version}-py?.?.egg-info/
%{python3_sitelib}/__pycache__/nose_exclude*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16384 |21mr|python-nosexcover-1.0.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name nosexcover

Name:		python-%{pypi_name}
Version:	1.0.11
Release:	3
Summary:	Extends nose.plugins.cover to add Cobertura-style XML reports
Group:		Development/Python
License:	BSD
URL:		http://github.com/cmheisel/nose-xcover/
Source0:	https://github.com/cmheisel/nose-xcover/archive/v%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
 
BuildRequires:	python3-devel
BuildRequires:	python3egg(setuptools)

%description
A companion to the built-in nose.plugins.cover, this plugin will write out an
XML coverage report to a file named coverage.xml.

It will honor all the options you pass to the Nose coverage plugin, especially
--cover-package.

#-------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
Requires:	python3egg(coverage) >= 3.4
Requires:	python3egg(nose)
Requires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
A companion to the built-in nose.plugins.cover, this plugin will write out an
XML coverage report to a file named coverage.xml.

It will honor all the options you pass to the Nose coverage plugin, especially
--cover-package.

%files -n python3-%{pypi_name}
%doc README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

#-------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16385 |21mr|python-notify-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname notify
%define debug_package %nil

Summary:	Notification system based on libnotify
Name:		python-notify
Version:	0.3.1
Release:	2
License:	LGPLv2.1+
Group:		Development/Python
Url:		http://www.galago-project.org/news/index.php
Source0:	https://files.pythonhosted.org/packages/5e/ee/392ea0366a8d1389e6321697b26b3d98f0d828161a0a2ead4d1fa21dfc44/notify-0.3.1.tar.gz
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools

%description
This is the python3 version of the desktop notification framework.

%package -n python3-notify
Summary:	Notification system based on libnotify
Group:		Development/Python

%description -n python3-notify
This is the python version of the desktop notification framework.

%files -n python3-notify
%{_bindir}/notify
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16386 |21mr|python-notify2-0.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python interface to desktop notifications
Name:		python-notify2
Version:	0.3.1
Release:	2
License:	LGPLv2
Group:		Development/Python
Url:		https://pypi.org/project/notify2/
Source0:	https://files.pythonhosted.org/packages/aa/e8/d4b335aa739dc299a77766ecc5f1972d1de1993524aa94acef3219bba315/notify2-%{version}.tar.gz

%description
Python interface to desktop notifications

#-----------------------------------------------------------------

%package -n python3-notify2
Summary:        Python interface to desktop notifications
Group:          Development/Python
BuildRequires:  python3-setuptools

%description -n python3-notify2
Python interface to desktop notifications

%files -n python3-notify2
%{py3_puresitedir}/notify2.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/*.egg-info

#-----------------------------------------------------------------

%prep
%setup -qn notify2-%{version}
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16387 |21mr|python-nss-1.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	nss

Summary:	Python bindings for Network Security Services (NSS)
Name:		python-%{module}
Version:	1.0.1
Release:	3
License:	MPLv2.0 or GPLv2+ or LGPLv2+
Group:		Development/Python
Url:		https://pypi.org/project/python-nss
Source0:	https://pypi.io/packages/source/p/python-nss/python-nss-%{version}.tar.bz2
Patch0:		python-nss-0.16.0-linkage.patch
Patch1:		python-nss-1.0.1-nss-version.patch
Patch2:     0001-Rename-DSA-RSA-PublicKey-to-Py-DSA-RSA-PublicKey.patch
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pythonegg(docutils)
BuildRequires:	pythonegg(setuptools)
Recommends:	%{name}-doc = %{EVRD}

%description
This package provides Python bindings for Network Security Services
(NSS) and the Netscape Portable Runtime (NSPR).

NSS is a set of libraries supporting security-enabled client and
server applications. Applications built with NSS can support SSL v2
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
certificates, and other security standards. Specific NSS
implementations have been FIPS-140 certified.


#------------------------------------------------------------------

%package -n python2-%{module}
Summary:	Python3 bindings for Network Security Services (NSS)
Group:		Development/Python
BuildRequires:	python3egg(docutils)
BuildRequires:	python3egg(setuptools)
Recommends:	%{name}-doc = %{EVRD}

%description -n python2-%{module}
This package provides Python3 bindings for Network Security Services
(NSS) and the Netscape Portable Runtime (NSPR).

NSS is a set of libraries supporting security-enabled client and
server applications. Applications built with NSS can support SSL v2
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
certificates, and other security standards. Specific NSS
implementations have been FIPS-140 certified.

%files -n python2-%{module}
%doc %{_defaultdocdir}/ChangeLog
%doc %{_defaultdocdir}/LICENSE.gpl
%doc %{_defaultdocdir}/LICENSE.lgpl
%doc %{_defaultdocdir}/LICENSE.mpl
%doc %{_defaultdocdir}/README
%{python2_sitearch}/%{module}
%{python2_sitearch}/python_nss-%{version}-py*.egg-info

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python3 bindings for Network Security Services (NSS)
Group:		Development/Python
Recommends:	%{name}-doc = %{EVRD}

%description -n python3-%{module}
This package provides Python3 bindings for Network Security Services
(NSS) and the Netscape Portable Runtime (NSPR).

NSS is a set of libraries supporting security-enabled client and
server applications. Applications built with NSS can support SSL v2
and v3, TLS, PKCS #5, PKCS #7, PKCS #11, PKCS #12, S/MIME, X.509 v3
certificates, and other security standards. Specific NSS
implementations have been FIPS-140 certified.

%files -n python3-%{module}
%doc LICENSE.gpl LICENSE.lgpl LICENSE.mpl README
%{python3_sitearch}/%{module}
%{python3_sitearch}/python_nss-%{version}-py*.egg-info

#------------------------------------------------------------------

%package doc
Summary:	API documentation and examples for %{name}
Group:		Documentation
Requires:	python3-%{module} = %{EVRD}

%description doc
API documentation and examples for %{name}.

%files doc
%doc %{_defaultdocdir}/examples
%doc %{_defaultdocdir}/test

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build

%install
PYTHONDONTWRITEBYTECODE=1 %__python2 setup.py install -O1 --install-platlib %{python2_sitearch} --root %{buildroot}
PYTHONDONTWRITEBYTECODE=1 %__python3 setup.py install -O1 --install-platlib %{python3_sitearch} --root %{buildroot}
PYTHONDONTWRITEBYTECODE=1 %__python3 setup.py install_doc --docdir %{_defaultdocdir} --root %{buildroot}

# Remove execution permission from any example/test files in docdir
find %{buildroot}%{_defaultdocdir} -type f | xargs chmod a-x

# Set correct permissions on .so files
chmod 0755 %{buildroot}%{python2_sitearch}/%{module}/*.so
chmod 0755 %{buildroot}%{python3_sitearch}/%{module}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16388 |21mr|python-ntlm-auth-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname ntlm-auth

Summary:	Python 3 compatible NTLM library
Name:		python-%{srcname}
Version:	1.5.0
Release:	1
License:	LGPLv3+
Group:		Development/Python
Url:		https://pypi.python.org/pypi/ntlm-auth
Source0:	https://github.com/jborean93/ntlm-auth/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
# For tests
BuildRequires:	python3dist(cryptography)
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(requests)
BuildArch:	noarch

%description
This package allows Python clients running on any operating system to provide
NTLM authentication to a supporting server.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	Python 3 compatible NTLM library
Group:		Development/Python

%description -n python3-%{srcname}
This package allows Python clients running on any operating system to provide
NTLM authentication to a supporting server.

%files -n python3-%{srcname}
%doc CHANGES.md README.md
%license LICENSE
%{python3_sitelib}/ntlm_auth-*.egg-info/
%{python3_sitelib}/ntlm_auth/

#----------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%__python3 -m pytest -vv


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16389 |21mr|python-ntplib-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_tests 0

Name:           python-ntplib
Version:	0.4.0
Release:	1
Summary:        Python module that offers a simple interface to query NTP servers
Group:          Development/Python
License:        MIT
URL:            http://pypi.python.org/pypi/ntplib/
Source0:	https://files.pythonhosted.org/packages/b4/14/6b018fb602602d9f6cc7485cbad7c1be3a85d25cea18c233854f05284aed/ntplib-0.4.0.tar.gz
BuildArch:      noarch

%description
The ntplib is a python module that offers a simple interface to query NTP
servers. It also provides utility functions to translate NTP fields' values to
text (mode, leap indicator...). Since it's pure Python, and only depends on core
modules, it should work on any platform with a Python implementation.


%package -n python3-ntplib
Summary:        Python 3 module that offers a simple interface to query NTP servers

BuildRequires: python3-devel
BuildRequires: python3-setuptools

%description -n python3-ntplib
The ntplib is a python module that offers a simple interface to query NTP
servers. It also provides utility functions to translate NTP fields' values to
text (mode, leap indicator...). Since it's pure Python, and only depends on core
modules, it should work on any platform with a Python implementation.

%files -n python3-ntplib
%{python3_sitelib}/ntplib*
%{python3_sitelib}/__pycache__/*

%prep
%setup -q -n ntplib-%{version}

%build
%py3_build

%install
%py3_install

%if %{with_tests}
%check
%{__python3} test_ntplib.py
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16390 |21mr|python-numpy-1.21.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#test fail: pytest.PytestAssertRewriteWarning: Module already imported so cannot be rewritten
%bcond_with tests

%define enable_atlas 0
%{?_with_atlas: %global enable_atlas 1}

%define module	numpy

# disable this for bootstrapping nose and sphinx
%define enable_doc 0

Summary:	A fast multidimensional array facility for Python

Name:		python-%{module}
Epoch:		1
Version:	1.21.2
Release:	1
License:	BSD
Group:		Development/Python
Url: 		http://numpy.scipy.org
Source0:	https://github.com/%{module}/%{module}/releases/download/v%{version}/%{module}-%{version}%{?relc}.tar.gz
Patch0:		e2k-port.patch

%rename	f2py
%if %enable_atlas
BuildRequires:	libatlas-devel
%else
BuildRequires:	blas-devel
%endif
BuildRequires:	lapack-devel
BuildRequires:	gcc-gfortran >= 4.0
%if %enable_doc
BuildRequires:	python3-sphinx >= 1.0
BuildRequires:	python3-matplotlib
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pkg-resources
BuildRequires:	python3-cython
BuildRequires:	python3-nose
BuildRequires:	python3-pytest
BuildRequires:	python3-setuptools
%if %{with tests}
BuildRequires:	python3-hypothesis
%endif
%description
Numpy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays. Numpy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

Numpy also provides facilities for basic linear algebra routines,
basic Fourier transforms, and random number generation.

#----------------------------------------------------------------------
%package -n python3-numpy
Summary:        A fast multidimensional array facility for Python3
Provides:	python3-numpy-devel = %{version}-%{release}
Group:          Development/Python
License:        BSD

%description -n python3-numpy
Numpy is a general-purpose array-processing package designed to
efficiently manipulate large multi-dimensional arrays of arbitrary
records without sacrificing too much speed for small multi-dimensional
arrays. Numpy is built on the Numeric code base and adds features
introduced by numarray as well as an extended C-API and the ability to
create arrays of arbitrary type.

Numpy also provides facilities for basic linear algebra routines,
basic Fourier transforms, and random number generation.

%files -n python3-numpy
%license LICENSE.txt
%doc THANKS.txt site.cfg.example
%{python3_sitearch}/%{module}/__pycache__/*
%{python3_sitearch}/%{module}/__init__*.pxd
%dir %{python3_sitearch}/%{module}
%{python3_sitearch}/%{module}/*.py*
%{python3_sitearch}/%{module}/core
%{python3_sitearch}/%{module}/distutils
%{python3_sitearch}/%{module}/doc
%{python3_sitearch}/%{module}/fft
%{python3_sitearch}/%{module}/lib
%{python3_sitearch}/%{module}/linalg
%{python3_sitearch}/%{module}/ma
%{python3_sitearch}/%{module}/py.typed
%{python3_sitearch}/%{module}/random
%{python3_sitearch}/%{module}/testing
%{python3_sitearch}/%{module}/tests
%{python3_sitearch}/%{module}/typing
%{python3_sitearch}/%{module}/compat
%{python3_sitearch}/%{module}/matrixlib
%{python3_sitearch}/%{module}/polynomial
%{python3_sitearch}/%{module}-*.egg-info
%exclude %{python3_sitearch}/%{module}/LICENSE.txt
%{_includedir}/numpy

#----------------------------------------------------------------------

%package -n python3-numpy-f2py
Summary:        f2py for numpy
Requires:       python3-numpy = %{epoch}:%{version}-%{release}
Requires:       python3-devel
Provides:       python3-f2py = %{version}-%{release}
Obsoletes:      python3-f2py <= 2.45.241_1927

%description -n python3-numpy-f2py
This package includes a version of f2py that works properly with NumPy.

%files -n python3-numpy-f2py
%{_bindir}/f2py
%{_bindir}/f2py3
%{_bindir}/f2py.numpy
%{_bindir}/f2py%{python3_version}
%{python3_sitearch}/%{module}/f2py

#----------------------------------------------------------------------

%prep
%setup -qn numpy-%{version}
%autopatch -p1

# Atlas 3.10 library names
cat >> site.cfg <<EOF
[atlas]
library_dirs = %{_libdir}/atlas
atlas_libs = satlas
EOF

%build
env ATLAS=%{_libdir} BLAS=%{_libdir} \
    LAPACK=%{_libdir} CFLAGS="%{optflags}" \
    python3 setup.py build

%install
env ATLAS=%{_libdir} FFTW=%{_libdir} BLAS=%{_libdir} \
    LAPACK=%{_libdir} CFLAGS="%{optflags}" \
    %{__python3} setup.py install --root %{buildroot}


pushd %{buildroot}%{_bindir} &> /dev/null
ln -s f2py3 f2py.numpy
popd &> /dev/null

#symlink for includes, BZ 185079
mkdir -p %{buildroot}%{_includedir}
ln -s %{python3_sitearch}/%{module}/core/include/numpy/ %{buildroot}%{_includedir}/numpy

%check
%if %{with tests}
%ifarch ppc64le
# https://github.com/numpy/numpy/issues/14357
python3 runtests.py -- -k 'not test_einsum_sums_cfloat64'
%else
python3 runtests.py
%endif
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16391 |21mr|python-numpydoc-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-numpydoc
Version:	1.1.0
Release:	1
Summary:        Sphinx extension to support docstrings in Numpy format
Group:          Development/Python
License:        BSD
URL:            https://numpydoc.readthedocs.io/
Source0:	https://files.pythonhosted.org/packages/3d/fb/a70f636102045fc646656f2221c7fcdf92f7a9d71ba7c9875a949a58b3e8/numpydoc-1.1.0.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(matplotlib)
# for tests
BuildRequires:  python3egg(nose)
BuildRequires:	python3egg(pytest)

%description
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
following the Numpy/Scipy format to a form palatable to Sphinx.

%package -n python3-numpydoc
Summary:        Sphinx extension to support docstrings in Numpy format
Group:          Development/Python

%description -n python3-numpydoc
Numpydoc inserts a hook into Sphinx's autodoc that converts docstrings
following the Numpy/Scipy format to a form palatable to Sphinx.

%prep
%setup -q -n numpydoc-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-numpydoc
%doc LICENSE.txt
%doc README.rst
%{python3_sitelib}/numpydoc/
%{python3_sitelib}/numpydoc-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16392 |21mr|python-oauth-1.0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname oauth

Name:		python-%{fname}
Summary:	Python module for OAuth
Version:	1.0.1
Release:	8
Source0:	http://pypi.python.org/packages/source/o/%{fname}/%{fname}-%{version}.tar.gz
URL:		http://code.google.com/p/oauth/
Group:		Development/Python
License:	ASL 2.0

BuildRequires:	python
BuildRequires:	python2-devel
BuildRequires:	python2-setuptools
BuildRequires:	intltool

Requires:	python
BuildArch:	noarch

%description
An open protocol to allow API authentication in a simple and standard
method from desktop and web applications (this is the Python module only).

%package -n python2-%{fname}
%py2_migration_meta python2-%{fname}
Summary:	Python module for OAuth

%description -n python2-%{fname}
An open protocol to allow API authentication in a simple and standard
method from desktop and web applications (this is the Python module only).


%prep
%setup -q -n %{fname}-%{version}

%build
python2 setup.py build

%install
python2 setup.py install --root=%{buildroot} --compile --optimize=2

%files -n python2-%{fname}
%doc LICENSE.txt PKG-INFO
%{py2_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16393 |21mr|python-oauth2client-4.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname oauth2client

Name:           python-%{srcname}
Version:        4.1.3
Release:        1
Url:            https://github.com/google/oauth2client
Summary:        Python library for accessing resources protected by OAuth 2.0
License:        ASL 2.0
Group:          Networking/Other
Source:         https://github.com/google/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-setuptools
Conflicts:	python-google-api-python-client < 1.4

%description
This is a client library for accessing resources protected by OAuth 2.0.

%package -n python3-%{srcname}
Summary:        Python 3 library for accessing resources protected by OAuth 2.0
Group:          Networking/Other

%description -n python3-%{srcname}
This is a client library for accessing resources protected by OAuth 2.0.

%prep
%setup -q -n %{srcname}-%{version}
%autopatch -p1

%build
%py3_build

%install
%py3_install

# TODO: package tests into a separate package
rm -fr $(find %{_buildrootdir} -type d -name 'tests')

%files -n python3-%{srcname}
%{py3_puresitedir}/%{srcname}
%{py3_puresitedir}/%{srcname}-%{version}*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16394 |21mr|python-oauthlib-3.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	oauthlib

Name:		python-%{pypi_name}
Version:	3.2.2
Release:	1
Summary:	Spec-compliant, thorough OAuth request-signing logic
Group:		Development/Python
License:	BSD
Url:		https://github.com/idan/oauthlib
Source0:	%{pypi_source}
BuildArch:	noarch

%description
OAuthLib is a generic utility which implements the logic of OAuth without
assuming a specific HTTP request object or web framework. Use it to graft OAuth
client support onto your favorite HTTP library, or provider support onto your
favorite web framework. If you're a maintainer of such a library, write a thin
veneer on top of OAuthLib and get OAuth support for very little effort.

#------------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Spec-compliant, thorough OAuth request-signing logic
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
OAuthLib is a generic utility which implements the logic of OAuth without
assuming a specific HTTP request object or web framework. Use it to graft OAuth
client support onto your favorite HTTP library, or provider support onto your
favorite web framework. If you're a maintainer of such a library, write a thin
veneer on top of OAuthLib and get OAuth support for very little effort.

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}*-info

#------------------------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}
find . -type f -exec chmod 644 {} \;

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16395 |21mr|python-openpyxl-3.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name openpyxl

Summary:	Python library to read/write Excel 2010 xlsx/xlsm files
Name:		python-%{pypi_name}
Version:	3.0.7
Release:	1
License:	MIT and Python
Group:		Development/Python
Url:		https://openpyxl.readthedocs.io/
Source0:	https://files.pythonhosted.org/packages/f1/7d/fb475cd963bd9d244f95a90c98f518f5c834fefe749f25f9f479ca2d8a51/openpyxl-3.0.7.tar.gz
BuildArch:	noarch

%description
openpyxl is a Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm
files. It was born from lack of existing library to read/write natively
from Python the Office Open XML format.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python library to read/write Excel 2010 xlsx/xlsm files
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	python3-et_xmlfile
Requires:	python3-jdcal

%description -n python3-%{pypi_name}
openpyxl is a Python library to read/write Excel 2010 xlsx/xlsm/xltx/xltm
files. It was born from lack of existing library to read/write natively
from Python the Office Open XML format.

%files -n python3-%{pypi_name}
%doc LICENCE.rst
%doc README.rst AUTHORS.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{py3_ver}.egg-info/
%{python3_sitelib}/%{pypi_name}/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16396 |21mr|python-openshift-0.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name openshift

Summary:	Python client for the OpenShift API
Name:		python-%{pypi_name}
Version:	0.13.2
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/openshift/openshift-restclient-python
Source0:	%{pypi_source}
BuildRequires:	git
BuildArch:	noarch

%description
Python client for the OpenShift API

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python client for the OpenShift API
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-kubernetes >= 8.0.0
BuildRequires:	python3-setuptools
Requires:	python3-kubernetes
Requires:	python3-requests
Requires:	python3-ruamel-yaml
Requires:	python3-six
Requires:	python3-string_utils
Requires:	python3-jinja2

%description -n python3-%{pypi_name}
Python client for the OpenShift API.

%files -n python3-%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -S git

%build
%py3_build

%install
%py3_install

rm -f %{buildroot}%{_prefix}/requirements.txt/requirements.txt
rm -rf %{buildroot}%{python3_sitelib}/scripts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16397 |21mr|python-OpenSSL-20.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pname OpenSSL

Summary:	Python interface to the OpenSSL library
Name:		python-%{pname}
Version:	20.0.1
Release:	2
License:	LGPLv2.1+
Group:		Development/Python
Url:		https://github.com/pyca/pyopenssl
Source0:	https://github.com/pyca/pyopenssl/archive/%{version}.tar.gz?/pyopenssl-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	latex2html
BuildRequires:	python3-pkg-resources
BuildRequires:	texlive
BuildRequires:	texlive-babel
BuildRequires:	texlive-babel-english
BuildRequires:	texlive-courier
BuildRequires:	texlive-dehyph-exptl
BuildRequires:	texlive-ec
BuildRequires:	texlive-fancyhdr
BuildRequires:	texlive-helvetic
BuildRequires:	texlive-psnfss
BuildRequires:	texlive-times
BuildRequires:	texlive-tools
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	python3egg(idna)
BuildRequires:	python3egg(pyasn1)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)
Requires:	python3
Provides:	pyOpenSSL = %{EVRD}

%description
pyOpenSSL is a high-level Python wrapper around a subset of OpenSSL library.
It includes SSL Context objects, SSL Connection objects, using Python
sockets as a transport layer.

* SSL Context objects;
* SSL Connection objects, that use Python sockets as a transport layer;
* callbacks written in Python;
* an extensive error-handling mechanism that mirrors OpenSSL's error codes;
* and much more.

#----------------------------------------------------------------------------

%package -n python3-%{pname}
Summary:	Python wrapper module around the OpenSSL library
Group:		Development/Python
Provides:	python3-pyOpenSSL = %{EVRD}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cryptography)

%description -n python3-%{pname}
High-level wrapper around a subset of the OpenSSL library, includes among
others:
 * SSL.Connection objects, wrapping the methods of Python's portable
   sockets
 * Callbacks written in Python
 * Extensive error-handling mechanism, mirroring OpenSSL's error codes

%files -n python3-%{pname}
%{python3_sitelib}/OpenSSL/
%{python3_sitelib}/pyOpenSSL-*.egg-info/

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for python-%{pname}
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for python-OpenSSL

%files doc
%doc doc/_build/html

#----------------------------------------------------------------------------

%prep
%setup -qn pyopenssl-%{version}

find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build

%py3_build
%make -C doc html

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16398 |21mr|python-ordered-set-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name ordered-set
%global dir_name ordered_set

Name:           python-%{short_name}
Version:	4.1.0
Release:	1
Summary:        A Custom MutableSet that remembers its order
Group:          Development/Python
License:        MIT
URL:            https://github.com/LuminosoInsight/ordered-set
Source0:	https://files.pythonhosted.org/packages/4c/ca/bfac8bc689799bcca4157e0e0ced07e70ce125193fc2e166d2e685b7e2fe/ordered-set-4.1.0.tar.gz

BuildArch:      noarch
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)
BuildRequires:  pythonegg(nose)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(nose)

%description
An OrderedSet is a mutable data structure that is a hybrid of a list and a set. 
It remembers the order of its entries, and every entry has an index number 
that can be looked up.

#===============================================================================
%package -n %python2-%{short_name}
%py2_migration_meta %python2-%{short_name}
Summary:        A Custom MutableSet that remembers its order
Group:          Development/Python
Provides:       python-%{short_name} = %{EVRD}

%description -n %python2-%{short_name}
An OrderedSet is a mutable data structure that is a hybrid of a list and a set. 
It remembers the order of its entries, and every entry has an index number 
that can be looked up.

This package contains python2 bindings.

%files -n %python2-%{short_name}
%license MIT-LICENSE
%doc README.md
%{python2_sitelib}/%{dir_name}/*.py
%{python2_sitelib}/%{dir_name}-*.egg-info/
#===============================================================================

%package -n python3-%{short_name}
Summary:        A Custom MutableSet that remembers its order
Group:          Development/Python

%description -n python3-%{short_name}
An OrderedSet is a mutable data structure that is a hybrid of a list and a set. 
It remembers the order of its entries, and every entry has an index number 
that can be looked up.

This package contains python3 bindings.

%files -n python3-%{short_name}
%license MIT-LICENSE
%doc README.md
%dir %{python3_sitelib}/%{dir_name}
%{python3_sitelib}/%{dir_name}/*.py
%{python3_sitelib}/%{dir_name}-*.egg-info/
%if %{mdvver} < 202310
%dir %{python3_sitelib}/%{dir_name}/__pycache__
%{python3_sitelib}/%{dir_name}/__pycache__/*.pyc
%endif

#===============================================================================


%prep
%setup -q -n %{short_name}-%{version}


%build
%py2_build
%py3_build


%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16399 |21mr|python-ovirt-engine-sdk4-4.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name ovirt-engine-sdk4

Summary:	Python SDK for version 4 of the oVirt Engine API
Name:		python-ovirt-engine-sdk4
Version:	4.6.2
Release:	2
License:	ASL 2.0
Group:		Development/Python
Url:		https://www.ovirt.org
Source0:	https://github.com/oVirt/python-ovirt-engine-sdk4/releases/download/%{version}/ovirt-engine-sdk-python-%{version}.tar.gz
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)

%description
This package contains the Python SDK for version 4 of the oVirt Engine API.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python SDK for version 4 of the oVirt Engine API
Group:		Development/Python

%description -n python3-%{pypi_name}
This package contains the Python SDK for version 4 of the oVirt Engine API.

%files -n python3-%{pypi_name}
%doc examples README.adoc
%license LICENSE.txt
%{python3_sitearch}/ovirt_engine_sdk_python-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/ovirtsdk4

#------------------------------------------------------------------

%prep
%autosetup -p1 -c
chmod -x examples/register_vm.py
%py3_shebang_fix examples/*.py

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16400 |21mr|python-ovirt-imageio-2.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name ovirt-imageio

Summary:	Ovirt-imageio enables uploading and downloading using HTTPS
Name:		python-ovirt-imageio
Version:	2.5.0
Release:	1
License:	GPLv2+
Group:		Development/Python
Url:		https://www.ovirt.org
Source0:	%pypi_source
Source1:	groupadd.conf
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)

%description
Ovirt-imageio enables uploading and downloading of disks and snapshots using HTTPS.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Common resources for oVirt imageio
Group:		Development/Python
Provides:	%{pypi_name}-common = %{EVRD}
Provides:	python3-%{pypi_name}-common = %{EVRD}

%description -n python3-%{pypi_name}
Common resources used by oVirt imageio server and client.

%files -n python3-%{pypi_name}
%doc README.md
%license LICENSES/*.txt
%{python3_sitearch}/ovirt_imageio
%{python3_sitearch}/ovirt_imageio-%{version}-py*.egg-info
%exclude %{python3_sitearch}/ovirt_imageio/client
%exclude %{python3_sitearch}/ovirt_imageio/admin

#------------------------------------------------------------------

%package -n python3-%{pypi_name}-client
Summary:	Client library for oVirt imageio
Group:		Development/Python
Requires:	python3-%{pypi_name} = %{EVRD}
Requires:	qemu-img
Provides:	%{pypi_name}-client = %{EVRD}

%description -n python3-%{pypi_name}-client
Python client library for accessing imageio server on oVirt hosts.

%files -n python3-%{pypi_name}-client
%{_bindir}/ovirt-img
%{python3_sitearch}/ovirt_imageio/client

#------------------------------------------------------------------

%package -n python3-%{pypi_name}-daemon
Summary:	Daemon providing image transfer service on oVirt hosts
Group:		Development/Python
Requires:	python3-%{pypi_name} = %{EVRD}

%description -n python3-%{pypi_name}-daemon
Daemon providing image transfer service on oVirt hosts.

%files -n python3-%{pypi_name}-daemon
%doc %{_sysconfdir}/%{pypi_name}/README
%{_bindir}/%{pypi_name}
%{_bindir}/%{pypi_name}ctl
%dir %attr(775, root, ovirtimg) %{_logdir}/%{pypi_name}
%dir %{_prefix}/lib/%{pypi_name}
%dir %{_prefix}/lib/%{pypi_name}/conf.d
%dir %{_sysconfdir}/%{pypi_name}
%dir %{_sysconfdir}/%{pypi_name}/conf.d
%{python3_sitearch}/ovirt_imageio/admin
%{_unitdir}/%{pypi_name}.service
%ghost %attr(644, ovirtimg, ovirtimg) %{_logdir}/%{pypi_name}/daemon.log*

%pre -n python3-%{pypi_name}-daemon
%sysusers_create_package %{pypi_name} %{SOURCE1}

%post -n python3-%{pypi_name}-daemon
%systemd_post %{pypi_name}.service

%preun -n python3-%{pypi_name}-daemon
%systemd_preun %{pypi_name}.service

%postun -n python3-%{pypi_name}-daemon
%systemd_postun_with_restart %{pypi_name}.service

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_logdir}/%{pypi_name}
mkdir -p %{buildroot}%{_prefix}/lib/%{pypi_name}/conf.d
mkdir -p %{buildroot}%{_sysconfdir}/%{pypi_name}/conf.d
mkdir -p %{buildroot}%{_unitdir}
touch %{buildroot}%{_logdir}/%{pypi_name}/daemon.log
cp data/README %{buildroot}%{_sysconfdir}/%{pypi_name}
cp data/%{pypi_name}.service %{buildroot}%{_unitdir}/%{pypi_name}.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16401 |21mr|python-packaging-21.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module packaging

Name:		python-%{module}
Version:	21.3
Release:	1
Summary:	Core utilities for Python packages
License:	BSD or ASL 2.0
Group:		Development/Python
Url:		https://github.com/pypa/packaging
Source0:	https://github.com/pypa/packaging/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildArch:	noarch

%description
python-packaging provides core utilities for Python
packages like utilities for dealing with versions,
specifiers, markers etc.
#---------------------------------------------------------

%package -n %python2-%{module}
%py2_migration_meta %python2-%{module}
Summary:	%{summary}
Group:			Development/Python
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)
Requires:	python2egg(six)

%description -n %python2-%{module}
python-packaging provides core utilities for Python
packages like utilities for dealing with versions,
specifiers, markers etc.

%files -n %python2-%{module}
%doc LICENSE LICENSE.APACHE LICENSE.BSD
%{py2_puresitedir}/%{module}/
%{py2_puresitedir}/%{module}-*.egg-info/

#---------------------------------------------------------
%package -n python3-%{module}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	%python2-pkg-resources
Requires:	python3egg(six)

%description -n python3-%{module}
python3-packaging provides core utilities for Python
packages like utilities for dealing with versions,
specifiers, markers etc.

%files -n python3-%{module}
%{py3_puresitedir}/%{module}/
%{py3_puresitedir}/%{module}-*.egg-info/
#---------------------------------------------------------

%prep
%setup -n %{module}-%{version}
rm -rf %{module}.egg-info
cp -a . %{py3dir}

%build
%py2_build
pushd %{py3dir}
%py3_build
popd

rm -rf html/.{doctrees,buildinfo}
rm -rf html/_static/fonts/

%install
%py2_install
pushd %{py3dir}
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16402 |21mr|python-Pallets-Sphinx-Themes-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	Pallets-Sphinx-Themes

Name:		python-%{module}
Version:	2.0.1
Release:	1
Summary:	Sphinx themes for Pallets and related projects
Url:		https://github.com/pallets/pallets-sphinx-themes/
Source0:	https://files.pythonhosted.org/packages/da/ff/dc403f870b3e7886aabc4abab24feeeae0ca8b6278cca2a402d3249ed4f3/Pallets-Sphinx-Themes-2.0.1.tar.gz
License:	BSD
Group:		Development/Python
BuildArch:	noarch

%description
Themes for the Pallets projects. If you're writing an extension, use the
appropriate theme to make your documentation look consistent.

Available themes:

-   flask
-   jinja
-   werkzeug
-   click.

#-----------------------------------------------------

%package -n python3-%{module}
Summary:	Sphinx themes for Pallets and related projects
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Themes for the Pallets projects. If you're writing an extension, use the
appropriate theme to make your documentation look consistent.

Available themes:

-   flask
-   jinja
-   werkzeug
-   click.

%files -n python3-%{module}
%{py3_puresitedir}/pallets_sphinx_themes
%{py3_puresitedir}/Pallets_Sphinx_Themes*.egg-info

#-----------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf src/%{module}.egg-info

cp -a . %{py3dir}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16403 |21mr|python-pam-1.8.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-pam
Version:	1.8.4
Release:	1
Summary:	Pure Python interface to the Pluggable Authentication Modules system on Linux
Group:		Development/Python
License:	MIT
URL:		https://github.com/FirefighterBlu3/python-pam
Source0:	https://pypi.python.org/packages/source/p/%{name}/%{name}-%{version}.tar.gz
BuildArch:      noarch

%description
This module provides an authenticate function that allows the caller to
authenticate a given username / password against the PAM system on Linux.

#------------------------------------------------------------------------
%package -n python2-pam
Summary:	Pure Python interface to the Pluggable Authentication Modules system on Linux
Group:		Development/Python
BuildRequires:	python2-devel
BuildRequires:	python2-setuptools

%description -n python2-pam
This module provides an authenticate function that allows the caller to
authenticate a given username / password against the PAM system on Linux.

%files -n python2-pam
%doc README.md
%license LICENSE
%{python2_sitelib}/pam.py*
%{python2_sitelib}/python_pam*-%{version}-py*.egg-info

#------------------------------------------------------------------------
%package -n python3-pam
Summary:	Pure Python interface to the Pluggable Authentication Modules system on Linux
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description -n python3-pam
This module provides an authenticate function that allows the caller to
authenticate a given username / password against the PAM system on Linux.

%files -n python3-pam
%doc README.md
%license LICENSE
%{python3_sitelib}/pam.py*
%{python3_sitelib}/python_pam*-%{version}-py*.egg-info
%{python3_sitelib}/__pycache__/pam.cpython*

#------------------------------------------------------------------------

%prep
%autosetup

%build
%py3_build

PYTHON=%{__python2} %py2_build

%install
%py3_install

PYTHON=%{__python2} %py2_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16404 |21mr|python-pandas-1.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# filter provided private python extension libs
%define __noautoprov %{python3_sitearch}/.*\\.so
%define module pandas

 
Summary:        Powerful data structures for data analysis, time series,and statistics
Name:           python-%{module}
Version:        1.3.4
Release:        2
Group:          Development/Python
License:        BSD
URL:            http://%{module}.pydata.org/
Source0:        https://pypi.io/packages/source/p/%{module}/%{module}-%{version}.tar.gz

%description
%{module} is a Python package providing fast, flexible, and expressive data
structures designed to make working with structured (tabular, multidimensional,
potentially heterogeneous) and time series data both easy and intuitive. It
aims to be the fundamental high-level building block for doing practical,
real world data analysis in Python. 

#-------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	    Powerful data structures for data analysis, time series,and statistics
Group:		    Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(numpy)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(python-dateutil)
BuildRequires:	python3egg(cython)

Requires: 	python3egg(python-dateutil)
Requires: 	python3egg(xlrd)


%description -n python3-%{module}
%{module} is a Python package providing fast, flexible, and expressive data
structures designed to make working with structured (tabular, multidimensional,
potentially heterogeneous) and time series data both easy and intuitive. It
aims to be the fundamental high-level building block for doing practical,
real world data analysis in Python. 

%files -n python3-%{module}
%doc *.md LICENSE
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}-%{version}-*.egg-info/
#-------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16405 |21mr|python-parameterized-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname parameterized

Name:           python-%{srcname}
Version:	0.8.1
Release:	1
Summary:        Parameterized testing with any Python test framework
Group:		Development/Python

License:        BSD
URL:            https://pypi.python.org/pypi/parameterized
Source0:	https://files.pythonhosted.org/packages/c6/23/2288f308d238b4f261c039cafcd650435d624de97c6ffc903f06ea8af50f/parameterized-0.8.1.tar.gz

BuildArch:      noarch

%description
%{summary}.

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-nose
BuildRequires:  python3-pytest
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}
%{summary}.

Python 3 version.

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%license LICENSE.txt
%doc CHANGELOG.txt README.rst
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16406 |21mr|python-paramiko-2.8.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname paramiko

Summary:	SSH2 protocol for Python
Name:		python-paramiko
Version:	2.8.4
Release:	2
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/ploxiln/paramiko-ng/
Source0:	https://pypi.io/packages/source/p/%{oname}-ng/%{oname}-ng-%{version}.tar.gz

BuildArch:	noarch

%description
Paramiko is a module for python that implements the SSH2 protocol for secure
(encrypted and authenticated) connections to remote machines.  the module works
by taking a socket-like object that you pass in, negotiating with the remote
server, authenticating (using a password or a given private key), and opening
flow-controled "channels" to the server, which are returned as socket-like
objects. you are responsible for verifying that the server's host key is the
one you expected to see, and you have control over which kinds of encryption
or hashing you prefer (if you care), but all of the heavy lifting is done by
the paramiko module.

#---------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	SSH2 protocol for Python
Group:		Development/Python
BuildRequires:	python3egg(pycrypto)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	python3-ecdsa
Requires:	python3-pycrypto
Provides:	%{oname} = %{EVRD}
Provides:	paramiko = %{EVRD}

%description -n python3-%{oname}
Paramiko is a module for python that implements the SSH2 protocol for secure
(encrypted and authenticated) connections to remote machines.  the module works
by taking a socket-like object that you pass in, negotiating with the remote
server, authenticating (using a password or a given private key), and opening
flow-controled "channels" to the server, which are returned as socket-like
objects. you are responsible for verifying that the server's host key is the
one you expected to see, and you have control over which kinds of encryption
or hashing you prefer (if you care), but all of the heavy lifting is done by
the paramiko module.

%files -n python3-%{oname}
%doc PKG-INFO tests demo*
%{python3_sitelib}/paramiko-*.egg-info/
%{python3_sitelib}/paramiko/

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-ng-%{version}

%build
%py3_build

%install
export PARAMIKO_REPLACE=1
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16407 |21mr|python-parsedatetime-2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname parsedatetime

Name:           python-%{srcname}
Version:        2.6
Release:        1
Summary:        Parse human-readable date/time strings in Python
Group:          Development/Python
License:        ASL 2.0
URL:            https://github.com/bear/%{srcname}
Source0:        %{pypi_source}
BuildArch:      noarch
BuildRequires:  python3-coverage
BuildRequires:  python3-devel
BuildRequires:  python3-flake8
BuildRequires:  python3-mccabe
BuildRequires:  python3-icu
BuildRequires:  python3-setuptools

%description
parsedatetime is a python module that can parse human-readable date/time
strings.

#-----------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:        Parse human-readable date/time strings in Python

%description -n python3-%{srcname}
parsedatetime is a python module that can parse human-readable date/time
strings.

%files -n python3-%{srcname}
%license LICENSE.txt
%doc AUTHORS.txt CHANGES.txt README.rst
%{py3_puresitedir}/%{srcname}
%{py3_puresitedir}/%{srcname}*.egg-info

#-----------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16408 |21mr|python-parsing-3.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module parsing
%define pypi_name pyparsing

Summary:	An object-oriented approach to text processing
Name:		python-%{module}
Version:	3.0.9
Release:	1
Group:		Development/Python
License:	MIT
URL:		https://github.com/pyparsing/pyparsing/
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
%rename python-pyparsing

%description
The pyparsing module provides an alternative approach to creating and
executing simple grammars in Python versus the traditional lex/yacc
approach or the use of regular expressions. It provides a library of
classes that client code can use to construct a grammar directly.

#-------------------------------------------------------------------
%package -n python3-%{module}
Summary:	An object-oriented approach to text processing
Group:		Development/Python
Provides:	python3-pyparsing = %{EVRD}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)
BuildRequires:	pyproject-rpm-macros

%description -n python3-%{module}
The pyparsing module provides an alternative approach to creating and
executing simple grammars in Python versus the traditional lex/yacc
approach or the use of regular expressions. It provides a library of
classes that client code can use to construct a grammar directly.

%files -n python3-%{module} -f %{pyproject_files}
%doc CHANGES README.rst
%doc docs/html examples
%license LICENSE

#-------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

# build docs
pushd docs
# Theme is not available
sed -i '/alabaster/d' conf.py
sphinx-build -b html . html
popd

%install
%pyproject_install
%pyproject_save_files %{pypi_name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16409 |21mr|python-parted-3.11.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname pyparted

Summary: Python module for GNU parted
Name:    python-parted
Version:	3.11.7
Release:	3
License: GPLv2+
Group:   System/Configuration/Hardware
URL:     https://github.com/dcantrell/pyparted
Source0: https://github.com/dcantrell/pyparted/archive/v%{version}.tar.gz?/pyparted-%{version}.tar.gz
BuildRequires: parted-devel
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(decorator)

%description
Python module for the parted library. It is used for manipulating
partition tables.

#---------------------------------------------------------------------------
%package -n python3-parted
Summary: Python module for GNU parted
Group:   System/Configuration/Hardware
Provides:	python3-pyparted = %{EVRD}

%description -n python3-parted
Python module for the parted library. It is used for manipulating
partition tables.

%files -n python3-parted
%doc AUTHORS NEWS README TODO
%license COPYING
%{python3_sitearch}/_ped.*.so
%{python3_sitearch}/parted
%{python3_sitearch}/%{fname}-%{version}-*.egg-info

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{fname}-%{version}

%build
%make_build PYTHON=%{__python3}

%install
%make_install PYTHON=%{__python3}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16410 |21mr|python-passlib-1.7.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module passlib

Name:		python-passlib
Version:	1.7.4
Release:	2
Summary:	Comprehensive password hashing framework supporting over 20 schemes
Group:		Development/Python
License:	BSD and Beerware and Copyright only
URL:		http://passlib.googlecode.com
Source0:	https://files.pythonhosted.org/packages/b6/06/9da9ee59a67fae7761aab3ccc84fa4f3f33f125b370f1ccdb915bf967c11/passlib-1.7.4.tar.gz

BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

# docs generation requires python-cloud-sptheme, which isn't packaged yet.
# so we won't generate the docs yet.
#BuildRequires:	python-sphinx >= 1.0
#BuildRequires:	python-cloud-sptheme

%description
Passlib is a password hashing library for Python 2 & 3, which provides
cross-platform implementations of over 20 password hashing algorithms,
as well as a framework for managing existing password hashes. It's
designed to be useful for a wide range of tasks, from verifying a hash
found in /etc/shadow, to providing full-strength password hashing for
multi-user application.

#---------------------------------------------------------------------
%package -n python3-passlib
Summary:	Python library to display tabular data in tables
Group:		Development/Python

%description -n python3-passlib
Passlib is a password hashing library for Python 2 & 3, which provides
cross-platform implementations of over 20 password hashing algorithms,
as well as a framework for managing existing password hashes. It's
designed to be useful for a wide range of tasks, from verifying a hash
found in /etc/shadow, to providing full-strength password hashing for
multi-user application.

%files -n python3-passlib
%doc LICENSE README
%{python3_sitelib}/*

#---------------------------------------------------------------------

%prep
%setup -q -n passlib-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16411 |21mr|python-paste-3.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global desc These provide several pieces of "middleware" (or filters) that can be nested\
to build web applications.  Each piece of middleware uses the WSGI (PEP 333)\
interface, and should be compatible with other middleware based on those\
interfaces.
%global sum Tools for using a Web Server Gateway Interface stack

Name:		python-paste
Version:	3.5.0
Release:	1
BuildArch:	noarch
Group:		Development/Python
# Most of the code is MIT
# paste/exceptions/collector.py is ZPLv2.0
# paste/evalexception/media/MochiKit.packed.js AFL (2.1) or MIT
# paste/lint.py MIT or Apache v2
# PySourceColor.py, Python
License:	MIT and ZPLv2.0 and Python and (AFL or MIT) and (MIT or ASL 2.0)
Summary:	%sum
URL:		https://github.com/cdent/paste
Source0:	https://files.pythonhosted.org/packages/b7/e0/eb502f90e14570c88ed108a101ff223ccc853e2ba057ac4e7d6eb40c923e/Paste-3.5.0.tar.gz


BuildRequires:  python3-devel
BuildRequires:  python3-nose
BuildRequires:  python3-pyOpenSSL
BuildRequires:  python3-pytest
BuildRequires:  python3-setuptools
BuildRequires:  python3-six >= 1.4.0
BuildRequires:  python3-tempita

%description
%desc

#--------------------------------------------------------------------
%package -n python3-paste
Summary:	Tools for using a Web Server Gateway Interface stack
Group:		Development/Python
Requires: python3-pyOpenSSL
Requires: python3-setuptools
Requires: python3-six
Requires: python3-tempita

%description -n python3-paste
%{desc}

%files -n python3-paste
%license docs/license.txt
%doc docs/*
%{python3_sitelib}/paste
%{python3_sitelib}/Paste-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/Paste-%{version}-py%{python3_version}-nspkg.pth

#--------------------------------------------------------------------

%prep
%autosetup -n Paste-%{version} -p1

# Paste-2.0.3 seems to have a few .py.orig files that don't appear in upstream scm. Let's drop them.
find . -name "*.orig" -delete

# Strip #! lines that make these seem like scripts
sed -i -e '/^#!.*/,1 d' paste/util/scgiserver.py paste/debug/doctest_webapp.py

# clean docs directory
pushd docs
rm StyleGuide.txt
popd

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16412 |21mr|python-paste-deploy-2.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global desc This tool provides code to load WSGI applications and servers from\
URIs; these URIs can refer to Python Eggs for INI-style configuration\
files.  PasteScript provides commands to serve applications based on\
this configuration file.
%global sum Load, configure, and compose WSGI applications and servers
%global srcname PasteDeploy

Name:		python-paste-deploy
Version:	2.1.1
Release:	1
Summary:	%{sum}
Group:		Development/Python
License:	MIT
URL:		https://github.com/Pylons/pastedeploy
Source0:	%pypi_source
BuildRequires:	python3-devel
BuildRequires:	python3-pytest
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
%{desc}

#--------------------------------------------------------------
%package -n python3-paste-deploy
Summary:	%{sum}
Group:		Development/Python
Requires:	python3-paste
Requires:	python3-setuptools

%description -n python3-paste-deploy
%desc

%files -n python3-paste-deploy
%license license.txt
%{python3_sitelib}/*

#--------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

# Remove bundled egg-info if it exists
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install
rm -rf %{buildroot}%{python3_sitelib}/test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16413 |21mr|python-pastel-0.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pastel

%{?python_enable_dependency_generator}

%global common_description %{expand:
Pastel is a simple library to help you colorize strings in your
terminal.

It comes bundled with predefined styles:

- info: green
- comment: yellow
- question: black on cyan
- error: white on red

Features:

- Use predefined styles or add you own.
- Disable colors all together by calling with_colors(False).
- Automatically disables colors if the output is not a TTY.
- Used in cleo.}

Name:           python-%{pypi_name}
Summary:        Bring colors to your terminal
Group:          Development/Python
Version:        0.2.1
Release:        1
License:        MIT

URL:            https://github.com/sdispater/pastel
Source0:        %{pypi_source}

# do not install the "tests" package
Patch0:         00-dont-install-tests.patch

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pytest)

%description %{common_description}

#-----------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{common_description}

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info/

#-----------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info


%build
%py3_build


%install
%py3_install


%check
PYTHONPATH=. pytest-3 tests




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16414 |21mr|python-pathlib2-2.3.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pathlib2

Name:           python-pathlib2
Version:	2.3.6
Release:	1
Group:          Development/Python
Summary:        Object-oriented filesystem paths

License:        MIT
URL:            https://pypi.python.org/pypi/pathlib2
Source0:	https://files.pythonhosted.org/packages/df/16/e9d6bcf1aed52a55bc1696324ab22586716053b3e97b85266e0f3ad36bae/pathlib2-2.3.6.tar.gz
BuildArch:      noarch

%description
The goal of pathlib2 is to provide a backport of
`standard pathlib <http://docs.python.org/dev/library/pathlib.html>`_
module which tracks the standard library module,
so all the newest features of the standard pathlib can be
used also on older Python versions.

#-------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        Object-oriented filesystem paths
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)

%description -n python3-%{pypi_name}
The goal of pathlib2 is to provide a backport of standard pathlib module which
tracks the standard library module, so all the newest features of the standard
pathlib can be used also on older Python versions.


%files -n python3-%{pypi_name}
%doc README.rst LICENSE.rst
%{py3_puresitedir}/

#-------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16415 |21mr|python-pathspec-0.10.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pathspec

Name:           python-%{module}
Version:        0.10.1
Release:        2
Summary:        Utility library for gitignore style pattern matching of file paths
Group:          Development/Python
License:        MPLv2.0
URL:            https://github.com/cpburnz/python-path-specification
Source:         https://files.pythonhosted.org/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pytest)
Provides:       python3-%{module} = %{EVRD}

BuildArch:      noarch

%description
Utility library for gitignore style pattern matching of file paths.

%files
%doc *.rst LICENSE
%{py3_puresitedir}/pathspec
%{py3_puresitedir}/pathspec-%{version}-py%{python3_version}.egg-info

#-------------------------------------------------------------------


%prep
%setup -qn %{module}-%{version}
rm -fr *-egg.info

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{py3_puresitedir} pytest-3



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16416 |21mr|python-pbr-5.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	pbr

Name:		python-%{pypi_name}
Version:	5.6.0
Release:	1
Summary:	Python Build Reasonableness
Group:		Development/Python
License:	Apache Software License
Url:		http://pypi.python.org/pypi/pbr
Source0:	https://files.pythonhosted.org/packages/35/8c/69ed04ae31ad498c9bdea55766ed4c0c72de596e75ac0d70b58aa25e0acf/pbr-5.6.0.tar.gz
BuildRequires:	graphviz
BuildRequires:	python3egg(setuptools)
Requires: 	python3 >= 3.5
BuildArch:	noarch

%description

Introduction
============

PBR is a library that injects some useful and sensible default behaviors
into your setuptools run. It started off life as the chunks of code that
were copied between all of the OpenStack projects. Around the time that
OpenStack hit 18 different projects each with at least 3 active branches,
it seems like a good time to make that code into a proper re-usable library.

PBR is only mildly configurable. The basic idea is that there's a decent
way to run things and if you do, you should reap the rewards, because then
it's simple and repeatable. If you want to do things differently, cool! But
you've already got the power of python at your fingertips, so you don't
really need PBR.

PBR builds on top of the work that `d2to1` started to provide for declarative
configuration. `d2to1` is itself an implementation of the ideas behind
`distutils2`. Although `distutils2` is now abandoned in favor of work towards
PEP 426 and Metadata 2.0, declarative config is still a great idea and
specifically important in trying to distribute setup code as a library
when that library itself will alter how the setup is processed. As Metadata
2.0 and other modern Python packaging PEPs come out, `pbr` aims to support
them as quickly as possible.

#--------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python Build Reasonableness
Group:		Development/Python
Requires:	python3 >= 3.5
Requires:	python3egg(pip) >= 7.1.0

%description -n python3-%{pypi_name}

Introduction
============

PBR is a library that injects some useful and sensible default behaviors
into your setuptools run. It started off life as the chunks of code that
were copied between all of the OpenStack projects. Around the time that
OpenStack hit 18 different projects each with at least 3 active branches,
it seems like a good time to make that code into a proper re-usable library.

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{_bindir}/*
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info
%{python3_sitelib}/%{pypi_name}

#--------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf {test-,}requirements.txt
#remove bundled
rm -rf %{pypi_name}.egg-info


%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16417 |21mr|python-pdfrw-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pdfrw

Summary:	PDF file reader/writer library
Name:		python-%{oname}
Version:	0.4
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://github.com/pmaupin/pdfrw
Source0:	https://files.pythonhosted.org/packages/61/96/cbde98b96115d10694010e584d00d39f7b97905e1c8303e6ffbb84080e6a/pdfrw-0.4.tar.gz
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)
BuildArch:	noarch

%description
pdfrw lets you read and write PDF files, including compositing multiple
pages together (e.g. to do watermarking, or to copy an image or diagram
from one PDF to another), and can output by itself, or in conjunction
with reportlab.

pdfrw will faithfully reproduce vector formats without rasterization,
so the rst2pdf package has used pdfrw by default for PDF and SVG images
by default since March 2010. Several small examples are provided.

#======================================================================
%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	PDF file reader/writer library

%description -n python2-%{oname}
pdfrw lets you read and write PDF files, including compositing multiple
pages together (e.g. to do watermarking, or to copy an image or diagram
from one PDF to another), and can output by itself, or in conjunction
with reportlab.

pdfrw will faithfully reproduce vector formats without rasterization,
so the rst2pdf package has used pdfrw by default for PDF and SVG images
by default since March 2010. Several small examples are provided.

%files -n python2-%{oname}
%{python2_sitelib}/pdfrw/*.py*
%{python2_sitelib}/pdfrw/objects/*.py*
%{python2_sitelib}/pdfrw*.egg-info
%{python2_sitelib}/pdfrw/examples/

#======================================================================
%package -n python3-%{oname}
Summary:	PDF file reader/writer library
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{oname}
pdfrw lets you read and write PDF files, including compositing multiple
pages together (e.g. to do watermarking, or to copy an image or diagram
from one PDF to another), and can output by itself, or in conjunction
with reportlab.

pdfrw will faithfully reproduce vector formats without rasterization,
so the rst2pdf package has used pdfrw by default for PDF and SVG images
by default since March 2010. Several small examples are provided.

%files -n python3-%{oname}
%{python3_sitelib}/pdfrw/*.py*
%{python3_sitelib}/pdfrw/objects/*.py*
%{python3_sitelib}/pdfrw*.egg-info
%{python3_sitelib}/pdfrw/examples/
%{python3_sitelib}/pdfrw/__pycache__/*
%{python3_sitelib}/pdfrw/objects/__pycache__/*
#=======================================================================
%prep
%setup -qc -n %{oname}-%{version}
mv %{oname}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
%py2_install
cp -R examples %{buildroot}%{python2_sitelib}/pdfrw/
chmod +x %{buildroot}%{python2_sitelib}/pdfrw/pdfwriter.py
popd

pushd python3
%py3_install
cp -R examples %{buildroot}%{python3_sitelib}/pdfrw/
chmod +x %{buildroot}%{python3_sitelib}/pdfrw/pdfwriter.py
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16418 |21mr|python-pecan-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pecan

Name:		python-%{oname}
Version:	1.4.0
Release:	1
Summary:	A WSGI object-dispatching web framework
Source0:	https://files.pythonhosted.org/packages/4d/8e/da71e4e23b720805106b58e0351dcd75d8ffc7c7ac3ad2961b20b98a44a7/pecan-1.4.0.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://www.pecanpy.org/
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:		python3-logutils >= 0.3
BuildRequires:		python3-mako >= 0.4
BuildRequires:		python3-singledispatch
BuildRequires:		python3-six
BuildRequires:		python3-sqlalchemy
BuildRequires:		python3-webob >= 1.2
BuildRequires:		python3-webtest >= 1.3.3
Requires:		python3-logutils >= 0.3
Requires:		python3-mako >= 0.4
Requires:		python3-singledispatch
Requires:		python3-six
Requires:		python3-webob >= 1.2
Requires:		python3-webtest >= 1.3.3
Provides:		python3-%{oname} = %{EVRD}

%description
A WSGI object-dispatching web framework,
designed to be lean and fast, with few dependencies

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || :

%files
%doc LICENSE README.rst
%{_bindir}/%{oname}
%{_bindir}/gunicorn_pecan
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16419 |21mr|python-pep517-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pep517

%bcond_with tests

Name:           python-%{pypi_name}
Version:        0.13.0
Release:        1
Summary:        Wrappers to build Python packages using PEP 517 hooks
Group:          Development/Python

# colorlog.py is "copied from Tornado", Apache licensed
License:        MIT and ASL 2.0
URL:            https://github.com/takluyver/pep517
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%description
This package contains wrappers around the hooks of standard API
for systems which build Python packages, specified in PEP 517.

#-------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

# colorlog.py is "copied from Tornado", Apache licensed
Provides:       bundled(python3dist(tornado))

%description -n python3-%{pypi_name}
This package contains wrappers around the hooks of standard API
for systems which build Python packages, specified in PEP 517.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.rst

#-------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Don't run the linter as part of tests
sed -i '/--flake8$/d' pytest.ini
sed -i '/pytest-flake8/d' dev-requirements.txt

%generate_buildrequires
%pyproject_buildrequires %{?with_tests:-t}


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{pypi_name}


%if %{with tests}
%check
# "test_meta" skipped as it creates a venv and tries
# to install to it from PyPI
%tox -- -- -v -k "not test_meta"
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16420 |21mr|python-pexpect-4.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_python3}%{?!build_python3:%bcond_without python3}

%define module  pexpect

Summary:	An efficient, pure Python replacement for Expect
Name:		python-%{module}
Version:	4.8.0
Release:	3
Source0:	https://files.pythonhosted.org/packages/e5/9b/ff402e0e930e70467a7178abb7c128709a30dfb22d8777c043e501bc1b10/pexpect-4.8.0.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://pexpect.sourceforge.net/
BuildArch:	noarch

%description
Pexpect is a pure Python module for spawning child applications,
controlling them, and responding to expected patterns in their
output. Pexpect works like Don Libes' Expect. Pexpect allows your
script to spawn a child application and control it as if a human were
typing commands.

Pexpect can be used for automating interactive applications such as
ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different
servers. It can be used for automated software testing. Pexpect is in
the spirit of Don Libes' Expect, but Pexpect is pure Python. Unlike
other Expect-like modules for Python, Pexpect does not require TCL or
Expect, nor does it require C extensions to be compiled. It should work
on any platform that supports the standard Python pty module. The
Pexpect interface was designed to be easy to use.

#========================================================================
%package -n python3-pexpect
Summary:	Unicode-aware Pure Python Expect-like module for Python 3
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(ptyprocess)
Requires:	python3-ptyprocess

%description -n python3-pexpect
Pexpect is a pure Python module for spawning child applications,
controlling them, and responding to expected patterns in their
output. Pexpect works like Don Libes' Expect. Pexpect allows your
script to spawn a child application and control it as if a human were
typing commands.

Pexpect can be used for automating interactive applications such as
ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different
servers. It can be used for automated software testing. Pexpect is in
the spirit of Don Libes' Expect, but Pexpect is pure Python. Unlike
other Expect-like modules for Python, Pexpect does not require TCL or
Expect, nor does it require C extensions to be compiled. It should work
on any platform that supports the standard Python pty module. The
Pexpect interface was designed to be easy to use.

%files -n python3-pexpect
%doc python3/doc python3/examples python3/LICENSE
%{python3_sitelib}/*
#========================================================================
%package -n python2-pexpect
%py2_migration_meta python2-pexpect
Summary:	Unicode-aware Pure Python Expect-like module for Python 2
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(ptyprocess)
Requires:	python2-ptyprocess

%description -n python2-pexpect
Pexpect is a pure Python module for spawning child applications,
controlling them, and responding to expected patterns in their
output. Pexpect works like Don Libes' Expect. Pexpect allows your
script to spawn a child application and control it as if a human were
typing commands.

Pexpect can be used for automating interactive applications such as
ssh, ftp, passwd, telnet, etc. It can be used to a automate setup
scripts for duplicating software package installations on different
servers. It can be used for automated software testing. Pexpect is in
the spirit of Don Libes' Expect, but Pexpect is pure Python. Unlike
other Expect-like modules for Python, Pexpect does not require TCL or
Expect, nor does it require C extensions to be compiled. It should work
on any platform that supports the standard Python pty module. The
Pexpect interface was designed to be easy to use.

%files -n python2-pexpect
%doc python2/doc python2/examples python2/LICENSE
%{python2_sitelib}/*
#======================================================================


%prep
%setup -q -c
mv pexpect-%{version} python2
cp -r python2 python3
find python3 -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
pushd python2
%py2_build
popd

%if %{with python3}
pushd python3
%py3_build
popd
%endif

%install
pushd python2
%py2_install
popd

%if %{with python3}
pushd python3
%py3_install
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16421 |21mr|python-pgpy-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define  pypi_name PGPy

Name:    python-pgpy
Version: 0.6.0
Release: 1
Summary: Pretty Good Privacy for Python
Group:   Development/Python
License: BSD-3-Clause
URL:     https://github.com/SecurityInnovation/PGPy
Source:  %pypi_source
BuildRequires: pkgconfig(python3)
BuildRequires: python3dist(setuptools)
BuildRequires: python3dist(wheel)

BuildArch: noarch


%description
PGPy is a Python library for implementing Pretty Good Privacy into Python
programs, conforming to the OpenPGP specification per RFC 4880.

#--------------------------------------------------
%package -n python3-%{pypi_name}
Summary: Pretty Good Privacy for Python
Group:   Development/Python

%description -n python3-%{pypi_name}
PGPy is a Python library for implementing Pretty Good Privacy into Python
programs, conforming to the OpenPGP specification per RFC 4880.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/pgpy
%{python3_sitelib}/*.egg-info

#--------------------------------------------------
%prep
%setup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16422 |21mr|python-pickleshare-0.7.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pickleshare
%global __requires_exclude '.*pathlib2.*

Name:           python-%{pypi_name}
Version:	0.7.5
Release:	1
Group:          Development/Python
Summary:        Tiny 'shelve'-like database with concurrency support
License:        MIT
URL:            https://github.com/pickleshare/pickleshare
Source0:	https://files.pythonhosted.org/packages/d8/b6/df3c1c9b616e9c0edbc4fbab6ddd09df9535849c64ba51fcb6531c32d4d8/pickleshare-0.7.5.tar.gz
BuildArch:      noarch
BuildRequires:  python3egg(setuptools)

%description
PickleShare - a small 'shelve' like datastore with concurrency support

Like shelve, a PickleShareDB object acts like a normal dictionary.
Unlike shelve, many processes can access the database simultaneously.
Changing a value in database is immediately visible to other processes
accessing the same database.
Concurrency is possible because the values are stored in separate files.


%package -n     python3-%{pypi_name}
Group:          Development/Python
Summary:        Tiny 'shelve'-like database with concurrency support

%description -n python3-%{pypi_name}
PickleShare - a small 'shelve' like datastore with concurrency support

Like shelve, a PickleShareDB object acts like a normal dictionary.
Unlike shelve, many processes can access the database simultaneously.
Changing a value in database is immediately visible to other processes
accessing the same database.
Concurrency is possible because the values are stored in separate files.

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%{py3_puresitedir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16423 |21mr|python-pid-3.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pid

Summary: 	PID file management library
Name: 	 	python-%{module}
Version:	3.0.4
Release:	2
License:	Apache License
Group:		Development/Python
Url:			https://pypi.org/project/pid/
Source0:	https://files.pythonhosted.org/packages/46/45/9e551a0e30d68d18334bc6fd8971b3ab1485423877902eb4f26cc28d7bd5/pid-3.0.4.tar.gz
BuildRequires:	pkgconfig(python)
BuildRequires:	pythonegg(setuptools)
BuildRequires:  pythonegg(nose)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:  python3egg(nose)
BuildArch:		noarch

%global _description \
pid provides a PidFile class that manages PID files. PidFile features: \
  - stale detection \
  - locking using fcntl \
  - chmod (default is 0o644) \
  - chown \
  - custom exceptions \
PidFile can also be used as a context manager or a decorator.

%description
%_description

#------------------------------------------------------------------

%package -n %python2-%{module}
%py2_migration_meta %python2-%{module}
Summary:    %{summary}
Group:			Development/Python

%description -n %python2-%{module}
%_description

%files -n %python2-%{module}
%doc LICENSE AUTHORS CHANGELOG README.rst
%{python2_sitelib}/pid
%{python2_sitelib}/pid-*.egg-info

#------------------------------------------------------------------

%package -n python3-%{module}
Summary: 	PID file management library
Group:			Development/Python

%description -n python3-%{module}
%_description

%files -n python3-%{module}
%doc LICENSE AUTHORS CHANGELOG README.rst
%{python3_sitelib}/pid
%{python3_sitelib}/pid-*.egg-info

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf *.egg-info

mkdir -p ../py3 \
&& cp -rf * ../py3 \
&& mv ../py3 .

%build
%py2_build

cd py3
%py3_build
cd -

%install
%py2_install

cd py3
%py3_install
cd -

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16424 |21mr|python-pifpaf-3.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pifpaf

Name:		python-pifpaf
Version:	3.1.5
Release:	1
Summary:	Pifpaf is a suite of fixtures to manage daemons
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/jd/pifpaf
Source0:	https://files.pythonhosted.org/packages/0f/e6/07b4c25770ce4e64c816d8747ce25efaad0fa2c960c2eec0161784aff657/pifpaf-3.1.5.tar.gz
BuildArch:	noarch

%description
Pifpaf is a suite of fixtures and a command-line tool that allows to start and
stop daemons for a quick throw-away usage.

#------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Pifpaf is a suite of fixtures to manage daemons
Group:		Development/Python

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pbr)

Requires:	python3-cliff
Requires:	python3-stevedore
Requires:	python3-pbr
Requires:	python3-six
Requires:	python3-fixtures
Requires:	python3-pyxattr
Requires:	python3-click

%description -n python3-%{pypi_name}
Pifpaf is a suite of fixtures and a command-line tool that allows to start and
stop daemons for a quick throw-away usage.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{_bindir}/pifpaf*
%{python3_sitelib}/*

#-----------------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16425 |21mr|python-pillow-9.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global py3_incdir %(python3 -c 'import distutils.sysconfig; print(distutils.sysconfig.get_python_inc())')
%global py3_libbuilddir %(python3 -c 'import sys; import sysconfig; print("lib.{p}-{v[0]}.{v[1]}".format(p=sysconfig.get_platform(), v=sys.version_info))')

%bcond_without PyQt5
%bcond_with docs


Summary:	Python image processing library
Name:		python-pillow
Version:	9.2.0
Release:	1
License:	HPND
Group:		Development/Python
Url:		https://python-pillow.org/
Source0:	%{pypi_source Pillow}

BuildRequires:	python3egg(numpy)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)
BuildRequires:	tkinter
BuildRequires:	jpeg-devel
BuildRequires:	tk-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)

%description
Pillow is the friendly PIL fork by Alex Clark and Contributors.
PIL is the Python Imaging Library by Fredrik Lundh and Contributors.
As of 2019, Pillow development is supported by Tidelift.
#------------------------------------------------------------------
%package -n python3-pillow
Summary:	Python image processing library
Group:		Development/Python
Provides:	python-pillow = %{EVRD}
Provides:	python3egg(pil) = %{EVRD}
Provides:	python-imaging = %{EVRD}

%description -n python3-pillow
Pillow is the friendly PIL fork by Alex Clark and Contributors.
PIL is the Python Imaging Library by Fredrik Lundh and Contributors.
As of 2019, Pillow development is supported by Tidelift.

%files -n python3-pillow
%doc CHANGES.rst docs/COPYING
%{python3_sitearch}/*
# These are in subpackages
%exclude %{python3_sitearch}/PIL/_imagingtk*
%exclude %{python3_sitearch}/PIL/ImageTk*
%exclude %{python3_sitearch}/PIL/SpiderImagePlugin*
%exclude %{python3_sitearch}/PIL/ImageQt*
%exclude %{python3_sitearch}/PIL/__pycache__/ImageTk*
%exclude %{python3_sitearch}/PIL/__pycache__/SpiderImagePlugin*
%exclude %{python3_sitearch}/PIL/__pycache__/ImageQt*

#------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	jpeg-devel
Requires:	pkgconfig(python)
Requires:	pkgconfig(zlib)
Provides:	python-imaging-devel = %{EVRD}

%description devel
Development files for %{name}.

%files devel
%{py3_incdir}/Imaging/

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc docs/_build_py3/html
%endif

#----------------------------------------------------------------------------

%package tk
Summary:	Tk interface for %{name}
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	tkinter
Provides:	python-imaging-tk = %{EVRD}

%description tk
Tk interface for %{name}.

%files tk
%{python3_sitearch}/PIL/_imagingtk*
%{python3_sitearch}/PIL/ImageTk*
%{python3_sitearch}/PIL/SpiderImagePlugin*
%{python3_sitearch}/PIL/__pycache__/ImageTk*
%{python3_sitearch}/PIL/__pycache__/SpiderImagePlugin*

#----------------------------------------------------------------------------
%if %{with PyQt5}
%package qt5
Summary:	PIL image wrapper for Qt
Group:		System/Libraries
BuildRequires:	PyQt5
Requires:	%{name} = %{EVRD}
Requires:	PyQt5
Provides:	python3-imaging-qt = %{EVRD}
Provides:	python-imaging-qt = %{EVRD}

%description qt5
PIL image wrapper for Qt.

%files qt5
%doc CHANGES.rst docs/COPYING
%{python3_sitearch}/PIL/ImageQt*
%{python3_sitearch}/PIL/__pycache__/ImageQt*
%endif
#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Pillow-%{version}

%build
# Build Python 3 modules
%py3_build
%if %{with docs}
PYTHONPATH=$PWD/build/%py3_libbuilddir make -C docs html BUILDDIR=_build_py3 SPHINXBUILD=sphinx-build-%python3_version
rm -f docs/_build_py3/html/.buildinfo
%endif

%install
# Install Python 3 modules
install -d %{buildroot}/%{py3_incdir}/Imaging
install -m 644 src/libImaging/*.h %{buildroot}/%{py3_incdir}/Imaging
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16426 |21mr|python-pint-0.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pint
%bcond_with doc

Name:		python-pint
Version:	0.17
Release:	1
Summary:	Physical quantities module
Group:		Development/Python
License:	BSD
URL:		https://github.com/hgrecco/pint
Source0:	https://github.com/hgrecco/pint/archive/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz

BuildArch:	noarch


%description
Pint is Python module/package to define, operate and manipulate physical
quantities: the product of a numerical value and a unit of measurement.
It allows arithmetic operations between them and conversions from and
to different units.

It is distributed with a comprehensive list of physical units, prefixes
and constants.

#----------------------------------------------------------------------
%package -n python3-pint
Summary:	Physical quantities module
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(numpy)

%description -n python3-pint
Pint is Python module/package to define, operate and manipulate physical
quantities: the product of a numerical value and a unit of measurement.
It allows arithmetic operations between them and conversions from and
to different units.

It is distributed with a comprehensive list of physical units, prefixes
and constants.

%files -n python3-pint
%license LICENSE
%{_bindir}/pint-convert
%{python3_sitelib}/pint
%{python3_sitelib}/Pint-%{version}-py*.egg-info

#----------------------------------------------------------------------

%if %{with doc}
%package -n python3-pint-doc
Summary:	Documentation for the pint module
Group:		Documentation

BuildRequires:	pandoc
BuildRequires:	python3-graphviz
BuildRequires:	python3-ipykernel
BuildRequires:	python3-jupyter-client
BuildRequires:	python3-matplotlib
BuildRequires:	python3-nbsphinx
BuildRequires:	python3-sphinx
BuildRequires:	python3-xarray

%description -n python3-pint-doc
Documentation for the pint module

%files -n python3-pint-doc
%doc html
%license docs/_themes/LICENSE

%endif

#----------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%if %{with doc}
export PYTHONPATH="$( pwd ):$PYTHONPATH"
sphinx-build-3 docs html
# remove the sphinx-build leftovers

rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install

#fix version in egg-info dir
mv %{buildroot}%{python3_sitelib}/Pint-0.0.0-py%{python3_version}.egg-info %{buildroot}%{python3_sitelib}/Pint-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16427 |21mr|python-pip-21.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module pip

%global python2_wheelname %{module}-%{version}-py2.py3-none-any.whl
%global python3_wheelname %{python2_wheelname}

Name:           python-%{module}
Version:	21.1.3
Release:	1
Group:          Development/Python
Summary:        A tool for installing and managing Python packages (easy_install replacement)

License:        MIT
URL:            https://pip.pypa.io/
Source0:        https://github.com/pypa/pip/archive/%{version}.tar.gz?/pip-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

Requires:       python3-setuptools
Requires:       python3-pkg-resources
Provides:       pythonegg(pip)

%description
`pip` is a tool for installing and managing Python packages, such as
those found in the `Python Package Index`_. It's a replacement for
easy_install_.

%package -n python2-pip
%py2_migration_meta python2-pip
Summary:        A tool for installing and managing Python3 packages (easy_install replacement)
Group:          Development/Python
BuildRequires:  pkgconfig(python2)
BuildRequires:  python2-setuptools
Requires:  	python2-distribute
Requires:       python2-pkg-resources
Provides:       pythonegg(pip)

%description -n python2-pip
Pip is a replacement for `easy_install
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_.  It uses mostly the
same techniques for finding packages, so packages that were made
easy_installable should be pip-installable as well.

%package -n python3-pip
Summary:        A tool for installing and managing Python3 packages (easy_install replacement)

Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools
Requires:  	python3-distribute
Requires:       python3-pkg-resources
Provides:       python3egg(pip)

%description -n python3-pip
Pip is a replacement for `easy_install
<http://peak.telecommunity.com/DevCenter/EasyInstall>`_.  It uses mostly the
same techniques for finding packages, so packages that were made
easy_installable should be pip-installable as well.

%prep
%setup -q -c
# Remove bundled egg-info
rm -rf %{module}-%{version}/%{module}.egg-info

mv %{module}-%{version} python2
cp -r python2 python3

pushd python2
%apply_patches
#{__sed} -i '1d' pip/__init__.py
popd

pushd python3
%apply_patches
#{__sed} -i '1d' pip/__init__.py
popd

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python3
%py3_install
# Change the name of the python3 pip executable in order to not conflict with
# the python2 executable
mv %{buildroot}%{_bindir}/pip %{buildroot}%{_bindir}/python3-pip
# The install process creates both pip and pip-<python_abiversion> that seem to
# be the same. Remove the extra script
pushd %{buildroot}%{_bindir}
rm -rf pip-3*
popd
popd

pushd python2
%py2_install
# The install process creates both pip and pip-<python_abiversion> that seem to
# be the same. Since removing pip-* also clobbers pip-python3, just remove pip-2*
pushd %{buildroot}%{_bindir}
rm -rf pip-2*
popd
popd

%files -n python2-pip
%doc python2/LICENSE.txt python2/docs
%attr(755,root,root) %{_bindir}/pip
%{py2_puresitedir}/pip*
%{_bindir}/pip2
%{_bindir}/pip%{py2_ver}

%files -n python3-pip
%{_bindir}/pip3
%{_bindir}/pip%{py3_ver}
%doc python3/LICENSE.txt python3/docs
%attr(755,root,root) %{_bindir}/python3-pip
%{py3_puresitedir}/pip*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16428 |21mr|python-pkgconfig-1.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pkgconfig
%global _docdir_fmt %{name}

Name:		python-%{pypi_name}
Version:	1.5.1
Release:	1
Summary:	A Python interface to the pkg-config command line tool
Group:		Development/Python
License:	MIT
URL:		https://github.com/matze/%{pypi_name}
Source0:	%pypi_source
BuildArch:	noarch

%description
pkgconfig is a Python module to interface with the pkg-config command line
tool and supports Python 2.6+.

It can be used to

* check if a package exists
* check if a package meets certain version requirements
* query CFLAGS and LDFLAGS
* parse the output to build extensions with setup.py

If pkg-config is not on the path, raises EnvironmentError.

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        A Python3 interface to the pkg-config command line tool
Group:		Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
# For tests
BuildRequires:  python3-nose

%description -n python3-%{pypi_name}
pkgconfig is a Python3 module to interface with the pkg-config command line
tool and supports Python 2.6+.

It can be used to

* check if a package exists
* check if a package meets certain version requirements
* query CFLAGS and LDFLAGS
* parse the output to build extensions with setup.py

If pkg-config is not on the path, raises EnvironmentError.

%files -n python3-%{pypi_name}
%{python3_sitelib}/*

#--------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
# Strip shbang
find -name \*.py | xargs sed -i '/^#!\/usr\/bin\/.*python/d'

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16429 |21mr|python-pkginfo-1.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	pkginfo

Name:		python-%{pypi_name}
Version:	1.7.1
Release:	1
Summary:	Query metdata from Python packages
Group:		Development/Python
License:	MIT
Url:		https://github.com/jwilk-mirrors/python-%{pypi_name}
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
Requires:	python3-pkg-resources

%description
This package provides an API for querying the distutils metadata written in
the PKG-INFO file inside a source distriubtion (an sdist) or a
binary distribution (e.g., created by running bdist_egg).  It can
also query the EGG-INFO directory of an installed distribution, and
the *.egg-info stored in a "development checkout"
(e.g, created by running setup.py develop).

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Query metdata from Python packages
Group:		Development/Python
Requires:	python3-pkg-resources

%description -n python3-%{pypi_name}
This package provides an API for querying the distutils metadata written in
the PKG-INFO file inside a source distriubtion (an sdist) or a
binary distribution (e.g., created by running bdist_egg).  It can
also query the EGG-INFO directory of an installed distribution, and
the *.egg-info stored in a "development checkout"
(e.g, created by running setup.py develop).

%files -n python3-%{pypi_name}
%doc CHANGES.txt LICENSE.txt README.txt TODO.txt
%{_bindir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py*.egg-info

#---------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16430 |21mr|python-pkgutil-resolve-name-1.3.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# drop project after update python to >3.9

Name:           python-pkgutil-resolve-name
Version:        1.3.10
Release:        1
Summary:        Backport of Python 3.9's pkgutil.resolve_name
License:        Python-2.0 AND MIT
Group:          Development/Python
URL:            https://github.com/graingert/pkgutil-resolve-name
Source:         https://pypi.io/packages/source/p/pkgutil_resolve_name/pkgutil_resolve_name-%{version}.tar.gz
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
Backport of Python 3.9's pkgutil.resolve_name which
resolves a name to an object.

#---------------------------------------------------------------
%package -n python3-pkgutil-resolve-name
Summary:        Backport of Python 3.9's pkgutil.resolve_name
Group:          Development/Python

%description -n python3-pkgutil-resolve-name
Backport of Python 3.9's pkgutil.resolve_name which
resolves a name to an object.

%files -n python3-pkgutil-resolve-name
%doc README.rst
%license LICENSE
%{python3_sitelib}/*
#---------------------------------------------------------------
%prep
%setup -q -n pkgutil_resolve_name-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16431 |21mr|python-platformdirs-2.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname platformdirs
%global common_description %{expand:
A small Python module for determining appropriate platform-specific dirs, e.g.
a "user data dir".}

Name:		python-%{srcname}
Version:	2.5.2
Release:	1
Summary:	Python module for determining appropriate platform-specific dirs
Group:		Development/Python
License:	MIT
URL:		https://github.com/platformdirs/platformdirs
Source0:	https://pypi.io/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(wheel)
BuildRequires:	python3egg(toml)
#BuildRequires:	python3egg(hatchling)
BuildRequires:	python3egg(setuptools-scm)
#BuildRequires:	python3egg(pip)
BuildRequires:	pyproject-rpm-macros
BuildArch:	noarch

%description %{common_description}

#-------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python
Provides:	python%{py3_ver}dist(%{srcname}) = %{version}
Provides:	python3egg(%{srcname}) = %{version}
Provides:	python3dist(%{srcname}) = %{version}


%description -n python3-%{srcname} %{common_description}

%files -n python3-%{srcname} -f %{pyproject_files}
%license LICENSE.txt
%doc README.rst CHANGES.rst

#------------------------------------------------------------------
%prep
%autosetup -n %{srcname}-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{srcname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16432 |21mr|python-pluggy-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pluggy

Summary:	Plugin and hook calling mechanisms for python
Name:		python-%{module}
Version:	1.0.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/pytest-dev/pluggy
Source0:	%{url}/archive/%{version}/%{module}-%{version}.tar.gz
BuildRequires:	git
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildArch:	noarch

%description
This is the core framework used by the pytest, tox, and devpi projects.
Please read the docs to learn more - https://pluggy.readthedocs.io/en/latest/

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Plugin and hook calling mechanisms for python
Group:		Development/Python

%description -n python3-%{module}
This is the core framework used by the pytest, tox, and devpi projects.
Please read the docs to learn more - https://pluggy.readthedocs.io/en/latest/

%files -n python3-%{module}
%doc LICENSE README.rst
%{python3_sitelib}/pluggy*

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
git init -q
git config user.name "rpm-build"
git config user.email "<rpm-build>"
git add .
git commit -q -a\
        --author "rpm-build <rpm-build>" -m "%{name}-%{version} base"
git tag %{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16433 |21mr|python-ply-3.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name ply

Name:		python-ply
Version:	3.11
Release:	4
Group:		Development/Python
License:	BSD-like
Summary:	Python Lex-Yacc
Source0:	http://www.dabeaz.com/ply/ply-%{version}.tar.gz
URL:		http://www.dabeaz.com/ply/
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(python2)

%description
PLY is an implementation of lex and yacc parsing tools for Python.

In a nutshell, PLY is nothing more than a straightforward lex/yacc
implementation. Here is a list of its essential features:

 * It's implemented entirely in Python.
 * It uses LR-parsing which is reasonably efficient and well suited
   for larger grammars.
 * PLY provides most of the standard lex/yacc features including support
   for empty productions, precedence rules, error recovery, and support
   for ambiguous grammars.
 * PLY is straightforward to use and provides very extensive error checking.
 * PLY doesn't try to do anything more or less than provide the basic
   lex/yacc functionality. In other words, it's not a large parsing
   framework or a component of some larger system.

The original version of PLY was developed in 2001 for use in an
Introduction to Compilers course where students used it to build a
compiler for a simple Pascal-like language. Because of its use in an
instructional setting, a lot of work went into providing extensive
error checking. In addition, this experience was used to sort out
common usability problems. Since then, a variety of incremental
improvements have been made to the system. PLY-3.0 adds support for
Python 3.0 and gives PLY's internals a much needed overhaul.

#--------------------------------------------------------------------
%package -n	python2-ply
Summary:	Python 2.x version of the PLY lex/yacc implementation
Group:		Development/Python
BuildRequires:	pkgconfig(python2)

%description -n	python2-ply
Python 2.x version of ply.

PLY is an implementation of lex and yacc parsing tools for Python.

%files -n python2-ply
%doc python2/CHANGES python2/TODO python2/doc python2/example python2/test
%{python2_sitelib}/ply
%{python2_sitelib}/*.egg-info

#--------------------------------------------------------------------

%package -n	python3-ply
Summary:	Python 3.x version of the PLY lex/yacc implementation
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

%description -n	python3-ply
Python 3.x version of ply.

PLY is an implementation of lex and yacc parsing tools for Python.

%files -n python3-ply
%doc python3/CHANGES python3/TODO python3/doc python3/example python3/test
%{python3_sitelib}/ply
%{python3_sitelib}/*.egg-info

#--------------------------------------------------------------------

%prep
%setup -q -n ply-%{version}

mkdir python3
mv `ls |grep -v python3` python3
cp -a python3 python2

# Use the right python...
sed -i -e 's,/usr/local/bin/python,%{_bindir}/python3,g' python3/doc/makedoc.py python3/example/yply/yply.py
sed -i -e 's,/usr/local/bin/python,%{_bindir}/python2,g' python2/doc/makedoc.py python2/example/yply/yply.py

rm -rf *.egg-info

%build
cd python3
%py3_build

cd ../python2
%py2_build

%install
cd python2
%py2_install

cd ../python3
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16434 |21mr|python-poetry-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name poetry

Summary:	Python dependency management and packaging made easy
Name:		python-%{pypi_name}
Version:	1.2.1
Release:	1
License:	MIT and (ASL 2.0 or BSD)
Group:		Development/Python
Url:		https://python-poetry.org/
Source0:	https://github.com/python-poetry/poetry/archive/refs/tags/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3-poetry-core
BuildRequires:	python3-pip
BuildArch:	noarch

# for autoinstall BuildRequires
#%%generate_buildrequires
#%%pyproject_buildrequires -r

%define _description \
Poetry helps you declare, manage and install dependencies of Python \
projects, ensuring you have the right stack everywhere.

%description
%{_description}
#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README*
# (From Fedora)
# this is co-owned by poetry-core but we require poetry-core, so we get rid of it
# the file and its pycache might not be bit by bit identical
%exclude %dir %{python3_sitelib}/poetry
%exclude %{python3_sitelib}/poetry/__init__.py
%{_bindir}/poetry

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# remove vendored dependencies
rm -r src/poetry/_vendor

# compatibility with more pytest-mock versions
sed -i'' s/MockFixture/MockerFixture/ tests/repositories/test_installed_repository.py

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16435 |21mr|python-poetry-core-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-poetry-core
Version:        1.2.0
Release:        1
Summary:        Poetry PEP 517 Build Backend
Group:          Development/Python
# We bundle a lot of libraries with poetry, which itself is under MIT license.
# Here is the list of the libraries with corresponding licenses:

# attrs: MIT
# jsonschema: MIT
# lark-parser: MIT
# packaging: ASL 2.0 or BSD
# pyparsing: MIT
# pyrsistent: MIT
# six: MIT
# tomlkit: MIT

License:        MIT and (ASL 2.0 or BSD)
URL:            https://github.com/python-poetry/poetry-core
Source0:        %{url}/archive/%{version}/poetry-core-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# for tests (only specified via poetry poetry.dev-dependencies with pre-commit etc.)
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-mock
BuildRequires:  python3-virtualenv
BuildRequires:  gcc
BuildRequires:  git-core
BuildArch:      noarch


%global _description %{expand:
A PEP 517 build backend implementation developed for Poetry.
This project is intended to be a light weight, fully compliant, self-contained
package allowing PEP 517 compatible build frontends to build Poetry managed
projects.}

%description %_description

#----------------------------------------------------------------
%package -n python3-poetry-core
Summary:        %{summary}

# Previous versions of poetry included poetry-core in it
Conflicts:      python%{python3_version}dist(poetry) < 1.1
# The bundled versions are taken from poetry/core/_vendor/vendor.txt
Provides:       bundled(python3dist(attrs)) = 20.3
Provides:       bundled(python3dist(jsonschema)) = 3.2
Provides:       bundled(python3dist(lark-parser)) = 0.9
Provides:       bundled(python3dist(packaging)) = 20.9
Provides:       bundled(python3dist(pyparsing)) = 2.4.7
Provides:       bundled(python3dist(pyrsistent)) = 0.16.1
Provides:       bundled(python3dist(six)) = 1.15
Provides:       bundled(python3dist(tomlkit)) = 0.7

%description -n python3-poetry-core %_description

%files -n python3-poetry-core -f %{pyproject_files}
%doc README.md
%license LICENSE

#----------------------------------------------------------------

%prep
%autosetup -p1 -n poetry-core-%{version}

# We sed out shebang from non-execeutable-script to fix rpmlint error.
# This can be removed once we again devendor python-poetry-core and
# the Patch1 is enabled again.
# Upstream PR: https://github.com/Julian/jsonschema/pull/833
sed -i '1!b;/^#!/d' src/poetry/core/_vendor/jsonschema/benchmarks/issue232.py
sed -i '1!b;/^#!/d' src/poetry/core/_vendor/jsonschema/benchmarks/json_schema_test_suite.py

%generate_buildrequires
%pyproject_buildrequires -r


%build
# we debundle the deps after we use the bundled deps in previous step to parse the deps 🤯
#rm -r src/poetry/core/_vendor

%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files poetry


%check
# don't use %%tox here because tox.ini runs "poetry install"
# TODO investigate failures in test_default_with_excluded_data, test_default_src_with_excluded_data
%pytest -k "not with_excluded_data" --ignore=tests/integration/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16436 |21mr|python-poetry-plugin-export-1.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname	poetry-plugin-export

Name:		python-poetry-plugin-export
Version:	1.0.7
Release:	1
Summary:	Poetry plugin to export the dependencies to various formats
Group:		Development/Python
License:	GPLv2+
URL:		https://pypi.org/project/poetry-plugin-export/
Source0:	https://pypi.python.org/packages/source/p/%{srcname}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

%description
Poetry plugin to export the dependencies to various formats

#-------------------------------------------------------------------------
%package -n python3-poetry-plugin-export
Summary:	Poetry plugin to export the dependencies to various formats
Group:		Development/Python
BuildRequires:	pyproject-rpm-macros
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(poetry-core)
BuildRequires:	python3egg(pip)

%description -n python3-poetry-plugin-export
Poetry plugin to export the dependencies to various formats

%files -n python3-poetry-plugin-export -f %{pyproject_files}

#-------------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files poetry_plugin_export

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16437 |21mr|python-polib-1.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name polib

Name:		python-polib
Version:	1.1.1
Release:	2
Summary:	A library to parse and manage gettext catalogs
Group:		Development/Python
License:	MIT
URL:		http://bitbucket.org/izi/polib/
Source0:	https://files.pythonhosted.org/packages/de/37/88ad2639cb4396755e87e97229d268bfa8bae0aeb6c7f9b01e9f49e10dff/polib-1.1.1.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel

%description
polib allows you to manipulate, create, modify gettext files (pot, po and
mo files). You can load existing files, iterate through it's entries, add,
modify entries, comments or metadata, etc... or create new po files from
scratch.

polib provides a simple and pythonic API, exporting only three convenience
functions 'pofile', 'mofile' and 'detect_encoding', and the 4 core classes:
POFile, MOFile, POEntry and MOEntry for creating new files/entries.

#----------------------------------------------------------------------
%package -n python3-polib
Summary:        A library to parse and manage gettext catalogs
Group:          Development/Python
# for compat
Provides:       python-polib = %{EVRD}

%description -n python3-polib
polib allows you to manipulate, create, modify gettext files (pot, po and
mo files). You can load existing files, iterate through it's entries, add,
modify entries, comments or metadata, etc... or create new po files from
scratch.

polib provides a simple and pythonic API, exporting only three convenience
functions 'pofile', 'mofile' and 'detect_encoding', and the 4 core classes:
POFile, MOFile, POEntry and MOEntry for creating new files/entries.

%files -n python3-polib
%doc LICENSE
%{py3_puresitedir}/*

#----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16438 |21mr|python-portend-2.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name portend
%bcond_with docs
%bcond_with test

Name:		python-%{pypi_name}
Version:	2.7.1
Release:	1
Summary:	TCP port monitoring utilities
Group:		Development/Python
License:	MIT
URL:		https://github.com/jaraco/portend
Source0:	https://files.pythonhosted.org/packages/53/7f/dc51c3c73f1df9ae75e44a3f912147f0d83ef3a0999306e57ebd3ef2c738/portend-2.7.1.tar.gz
BuildArch:	noarch

%description
 por·tend pôrˈtend/ be a sign or warning that (something, especially something
momentous or calamitous) is likely to happen.

#--------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-scm) >= 1.15
BuildRequires:	python3dist(toml)
%if %{with test}
BuildRequires:	python3dist(jaraco.functools)
BuildRequires:	python3dist(pytest) >= 3.4
BuildRequires:	python3dist(pytest-cov)
BuildRequires:	python3dist(tempora) >= 1.8
#BuildRequires:	python3dist(pytest-sugar) >= 0.9.1
%endif

%description -n python3-%{pypi_name}
 por·tend pôrˈtend/ be a sign or warning that (something, especially something
momentous or calamitous) is likely to happen.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------

%if %{with docs}
%package -n python-%{pypi_name}-doc
Summary:	portend documentation
Group:		Documentation
BuildRequires:	python3dist(jaraco.packaging) >= 3.2
BuildRequires:	python3dist(rst.linker) >= 1.9
BuildRequires:	python3dist(sphinx)
BuildRequires:	python3-more-itertools

%description -n python-%{pypi_name}-doc
Documentation for portend

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE
%endif

#--------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# black is apparently not a valid option?
sed -i 's/ --black//' pytest.ini

%build
%py3_build

%if %{with docs}
# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install

%if %{with test}
%check
sed -i 's/ --flake8//' pytest.ini
LANG=C.utf-8 %{__python3} -m pytest --ignore=build
%endif
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16439 |21mr|python-pretend-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname pretend

Name:		python-pretend
Version:	1.0.9
Release:	1
Summary:	A library for stubbing in Python
Group:		Development/Python
License:	BSD
URL:		https://github.com/alex/pretend
Source0:	https://pypi.io/packages/source/p/pretend/pretend-%{version}.tar.gz
BuildRequires:	python2-devel
BuildRequires:	python2-setuptools
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
Pretend is a library to make stubbing with Python easier.

#----------------------------------------------------------------
%package -n python2-pretend
%py2_migration_meta python2-pretend
Summary:	A library for stubbing in Python
Group:		Development/Python

%description -n python2-pretend
Pretend is a library to make stubbing with Python3 easier.

%files -n python2-pretend
%doc PKG-INFO README.rst LICENSE.rst
%{python2_sitelib}/pretend.py*
%{python2_sitelib}/pretend-%{version}-py2.?.egg-info

#----------------------------------------------------------------

%package -n python3-pretend
Summary:	A library for stubbing in Python
Group:          Development/Python

%description -n python3-pretend
Pretend is a library to make stubbing with Python3 easier.

%files -n python3-pretend
%doc PKG-INFO README.rst LICENSE.rst
%{python3_sitelib}/pretend.py*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/pretend-%{version}-py*.egg-info

#----------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

# Delete upstream supplied egg-info
rm -rf *.egg-info

cp -a . %{py3dir}


%build
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
popd

%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16440 |21mr|python-prettytable-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module prettytable

Name:       python-prettytable
Version:	2.2.0
Release:	1
Summary:    Python library for displaying data in ASCII table format
License:    BSD
Group:      Development/Python
URL:        http://code.google.com/p/prettytable/
Source0:	https://files.pythonhosted.org/packages/00/8d/95441120aa870aa800f8b4c6cf650bf0739d7a41883fe81769ab593556c9/prettytable-2.2.0.tar.gz
BuildArch:  noarch

%description
PrettyTable is a simple Python library designed to make
 it quick and easy to represent tabular data in visually
appealing ASCII tables. It was inspired by the ASCII
tables used in the PostgreSQL shell psql. PrettyTable
allows for selection of which columns are to be printed,
independent alignment of columns (left or right justified
or centred) and printing of "sub-tables" by specifying a
row range.

%package -n python3-%{module}

Summary:        Python library for displaying data in ASCII table format
Group:          Development/Python

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm

%description -n python3-%{module}
PrettyTable is a simple Python library designed to make
 it quick and easy to represent tabular data in visually
appealing ASCII tables. It was inspired by the ASCII
tables used in the PostgreSQL shell psql. PrettyTable
allows for selection of which columns are to be printed,
independent alignment of columns (left or right justified
or centred) and printing of "sub-tables" by specifying a
row range.

%prep
%setup -q -n %{module}-%{version}

%build
CFLAGS="%{optflags}" python3 setup.py build

%install
python3 setup.py install --root %{buildroot} --install-purelib=%{py3_puresitedir}

%files -n python3-%{module}
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16441 |21mr|python-priority-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name priority

%global common_description %{expand:
A HTTP/2 Priority Implementation Priority is a pure-Python
implementation of the priority logic for HTTP/2, set out in RFC 7540 Section
5.3 (Stream Priority)_. This logic allows for clients to express a preference
for how the server allocates its (limited) resources to the many outstanding
HTTP requests that may be running over a single HTTP/2 connection.}

Name:           python-%{pypi_name}
Version:        1.3.0
Release:        1
Summary:        A pure-Python implementation of the HTTP/2 priority tree
Group:		Development/Python
License:        MIT
URL:            http://python-hyper.org/priority/
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

# Increase deadline for test_period_of_repetition
Patch1:         deadline.patch

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(hypothesis)

%description
%{common_description}


%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
%{common_description}

%prep
%autosetup -n %{pypi_name}-%{version} -p1
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{python3_sitelib}:$PYTHONPATH %{__python3} -m pytest


%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16442 |21mr|python-productmd-1.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname productmd

Summary:        Library providing parsers for metadata related to OS installation
Name:           python-productmd
Group:			Development/Python
Version:	1.33
Release:	1
License:        LGPLv2+
URL:            https://github.com/release-engineering/productmd
Source0:	https://files.pythonhosted.org/packages/ca/7e/ec67a73894c80e17f51d10ed59019ee0bb7eb9b58bf35809916b700b062e/productmd-1.33.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python)
BuildRequires:  pkgconfig(python3)
BuildRequires:  pythonegg(setuptools)
BuildRequires:  python3egg(setuptools)
BuildRequires:  %python2-six
BuildRequires:  python3-six
BuildRequires:  %python2-pkg-resources
BuildRequires:  python3-pkg-resources

%global _description \
Python library providing parsers for metadata related to composes \
and installation media.

%description
%_description

#-----------------------------------------------------------------------

%package -n %python2-productcmd
%py2_migration_meta %python2-productcmd
Summary:		%{summary}
Group:			Development/Python
Requires:       %python2-six

%description -n %python2-productcmd
%_description

%files -n %python2-productcmd
%doc AUTHORS LICENSE
%{python2_sitelib}/productmd/
%{python2_sitelib}/productmd-%{version}-py?.?.egg-info

#-----------------------------------------------------------------------

%package -n python3-productmd
Summary:        %{summary}
Group:			Development/Python
Requires:       python3-six

%description -n python3-productmd
%_description

%files -n python3-productmd
%doc AUTHORS LICENSE
%{python3_sitelib}/productmd/
%{python3_sitelib}/productmd-%{version}-py?.?.egg-info

#-----------------------------------------------------------------------

%prep
%setup -qn %{srcname}-%{version}

mkdir -p ../py3 \
&& cp -rf * ../py3 \
&& mv ../py3 .

%build
%py2_build

cd py3
%py3_build
cd -

%install
%py2_install

cd py3
%py3_install
cd -

%check
%py2_test

cd py3
%py3_test
cd -

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16443 |21mr|python-prometheus_client-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname prometheus_client

Name:		python-%{oname}
Version:	0.11.0
Release:	1
Summary:	Python client for the Prometheus monitoring system
Group:		Development/Python
License:	ASL 2.0
Url:		https://github.com/prometheus/client_python
Source0:	https://pypi.io/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
BuildArch:	noarch

%description
The official Python3 client for Prometheus (https://prometheus.io).

#--------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Python client for the Prometheus monitoring system
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description -n python3-%{oname}
The official Python3 client for Prometheus (https://prometheus.io).

%files -n python3-%{oname}
%doc README.md
%{python3_sitelib}/prometheus_client/*.py*
%{python3_sitelib}/prometheus_client/__pycache__
%{python3_sitelib}/prometheus_client/bridge/*.py*
%{python3_sitelib}/prometheus_client/bridge/__pycache__
%{python3_sitelib}/prometheus_client/openmetrics/*.py*
%{python3_sitelib}/prometheus_client/openmetrics/__pycache__
%{python3_sitelib}/prometheus_client/twisted/*.py*
%{python3_sitelib}/prometheus_client/twisted/__pycache__
%{python3_sitelib}/prometheus_client*.egg-info

#--------------------------------------------------------------------------
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16444 |21mr|python-prompt_toolkit-3.0.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name prompt_toolkit

Name:           python-%{pypi_name}
Version:	3.0.20
Release:	1
Group:          Development/Python
Summary:        Library for building powerful interactive command lines in Python
License:        BSD
URL:            https://github.com/jonathanslenders/python-prompt-toolkit
Source0:	https://files.pythonhosted.org/packages/b4/56/9ab5868f34ab2657fba7e2192f41316252ab04edbbeb2a8583759960a1a7/prompt_toolkit-3.0.20.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
prompt_toolkit is a library for building powerful interactive command lines
and terminal applications in Python.

%package -n     python3-%{pypi_name}
Summary:        Library for building powerful interactive command lines in Python
Requires:       python3-pygments
Requires:       python3-six >= 1.9.0
Requires:       python3-wcwidth

%description -n python3-%{pypi_name}
prompt_toolkit is a library for building powerful interactive command lines
and terminal applications in Python.

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name} 
%doc README.rst AUTHORS.rst CHANGELOG LICENSE
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16445 |21mr|python-proto-plus-1.18.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname proto-plus
%define module proto

Summary:        This is a wrapper around protocol buffers
Name:           python-%{srcname}
Version:        1.18.1
Release:        2
License:        MPLv2.0 or GPLv2+ or LGPLv2+
Group:          Development/Python
Url:            https://pypi.org/project/%{srcname}
Source0:        %{pypi_source %{srcname} %{version}}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%description
This is a wrapper around protocol buffers. 

Protocol buffers is a specification format for APIs, such as those inside Google. 
This library provides protocol buffer message classes and objects that largely behave 
like native Python types.

#------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:      %{summary}
Group:        Development/Python

%description -n python3-%{srcname}
This is a wrapper around protocol buffers. 

Protocol buffers is a specification format for APIs, such as those inside Google. 
This library provides protocol buffer message classes and objects that largely behave 
like native Python types.


%files -n python3-%{srcname}
%{python3_sitelib}/%{module}/
%{python3_sitelib}/%{module}_plus-%{version}-py*.egg-info/

#------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}

%build
%{py3_build}

%install
%{py3_install}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16446 |21mr|python-psutil-5.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module psutil

%global __provides_exclude (.*)\\.so(.*)

Summary:	A process utilities module for Python
Name:		python-psutil
Version:	5.9.1
Release:	1
License:	BSD
Group:		Development/Python
URL:		https://pypi.org/project/psutil
Source0:	https://github.com/giampaolo/psutil/archive/release-%{version}.tar.gz
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)

%description
psutil is a module providing an interface for retrieving information on running
processes and system utilization (CPU, memory) in a portable way by using
Python, implementing many functionalities offered by tools like ps, top and
Windows task manager.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	A process utilities module for Python 2
Group:		Development/Python

%description -n python2-%{module}
psutil is a module providing an interface for retrieving information on running
processes and system utilization (CPU, memory) in a portable way by using
Python, implementing many functionalities offered by tools like ps, top and
Windows task manager.

%files -n python2-%{module}
%doc CREDITS LICENSE docs/
%{py2_platsitedir}/%{module}/
%{py2_platsitedir}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A process utilities module for Python 3
Group:		Development/Python

%description -n python3-%{module}
psutil is a module providing an interface for retrieving information on running
processes and system utilization (CPU, memory) in a portable way by using
Python, implementing many functionalities offered by tools like ps, top and
Windows task manager.

%files -n python3-%{module}
%doc CREDITS LICENSE docs/
%dir %{py3_platsitedir}/%{module}/
%{py3_platsitedir}/%{module}/*
%{py3_platsitedir}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn psutil-release-%{version}

# Remove shebangs
for file in psutil/tests/*.py; do
  sed -i.orig -e 1d $file && \
  touch -r $file.orig $file && \
  rm $file.orig
done

cp -a . %{py3dir}

%build
export CFLAGS="%{optflags}"
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
%py2_install

pushd %{py3dir}
%py3_install
popd

sed -i '1s/^/# -*- coding: utf-8 -*-/' %{buildroot}%{py2_platsitedir}/psutil/__init__.py
sed -i '1s/^/# -*- coding: utf-8 -*-/' %{buildroot}%{py3_platsitedir}/psutil/__init__.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16447 |21mr|python-psycopg2-2.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name psycopg2

Summary:        PostgreSQL database adapter for Python
Name:           python-%{pypi_name}
Version:        2.9.3
Release:        1
Group:          Development/Python
License:        GPLv2 and ZPLv2.1 and BSD
URL:            https://pypi.org/project/psycopg2/
Source0:        %{pypi_source}
Patch0:         psycopg2-2.8.2-linking.patch
BuildRequires:  postgresql-devel

%description
psycopg is a PostgreSQL database adapter for the Python programming
language (just like pygresql and popy.) It was written from scratch with
the aim of being very small and fast, and stable as a rock. The main
advantages of psycopg are that it supports the full Python DBAPI-2.0 and
being thread safe at level 2.

psycopg2 is an almost complete rewrite of the psycopg 1.1.x branch.
#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        PostgreSQL database adapter for Python 3
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
Provides:       python3egg(psycopg2) = %{version}
Provides:       python3dist(psycopg2) = %{version}
Provides:       python%{py3_ver}dist(psycopg2) = %{version}


%description -n python3-%{pypi_name}
psycopg is a PostgreSQL database adapter for the Python programming
language (just like pygresql and popy.) It was written from scratch with
the aim of being very small and fast, and stable as a rock. The main
advantages of psycopg are that it supports the full Python DBAPI-2.0 and
being thread safe at level 2.

%files -n python3-%{pypi_name}
%doc AUTHORS LICENSE NEWS README.rst
%{python3_sitearch}/psycopg2/*
%{python3_sitearch}/psycopg2-*.egg-info/*

#----------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
export CFLAGS="%{optflags}"
%py3_build

# Fix for wrong-file-end-of-line-encoding problem; upstream also must fix this.
for i in `find doc -iname "*.html"`; do sed -i 's/\r//' $i; done
for i in `find doc -iname "*.css"`; do sed -i 's/\r//' $i; done

# Get rid of a "hidden" file that rpmlint complains about
rm -f doc/html/.buildinfo

%install
%py3_install
rm -rf %{buildroot}%{py3_platsitedir}/psycopg2/tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16448 |21mr|python-ptyprocess-0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ptyprocess

Name:           python-%{pypi_name}
Version:	0.7.0
Release:	1
Group:          Development/Python
Summary:        Run a subprocess in a pseudo terminal
License:        BSD
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/20/e5/16ff212c1e452235a90aeb09066144d0c5a6a8c0834397e03f5224495c4e/ptyprocess-0.7.0.tar.gz
BuildArch:      noarch

%description
Launch a subprocess in a pseudo terminal (pty), and interact with both
the process and its pty.
#=====================================================================
%package -n     python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        Run a subprocess in a pseudo terminal
Group:          Development/Python
BuildRequires:  pkgconfig(python2)

%description -n python2-%{pypi_name}
Launch a subprocess in a pseudo terminal (pty), and interact with both
the process and its pty.

%files -n python2-%{pypi_name}
%doc 
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info


#=====================================================================
%package -n     python3-%{pypi_name}
Summary:        Run a subprocess in a pseudo terminal
Group:          Development/Python
BuildRequires:  pkgconfig(python3)

%description -n python3-%{pypi_name}
Launch a subprocess in a pseudo terminal (pty), and interact with both
the process and its pty.

%files -n python3-%{pypi_name}
%doc 
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#====================================================================

%prep
%setup -qn %{pypi_name}-%{version}

rm -rf %{py3dir}
cp -a . %{py3dir}
find %{py3dir} -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build
%py2_build

pushd %{py3dir}
%py3_build
popd


%install
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install (and we want the python2 version
# to be the default for now).
pushd %{py3dir}
%py3_install
popd

export PYTHON=%__python2
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16449 |21mr|python-purestorage-1.19.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name purestorage

Summary:	Pure Storage FlashArray REST 1.X SDK
Name:		python-%{pypi_name}
Version:	1.19.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/purestorage/rest-client
# pypi_source
Source0:	%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
This library is designed to provide a simple interface for issuing commands
to a Pure Storage FlashArray using a REST API. It communicates with the array
using the python requests HTTP library.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Pure Storage FlashArray REST 1.X SDK
Group:		Development/Python

%description -n python3-%{pypi_name}
This library is designed to provide a simple interface for issuing commands
to a Pure Storage FlashArray using a REST API. It communicates with the array
using the python requests HTTP library.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16450 |21mr|python-py-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name  py

Name:		python-%{pypi_name}
Version:	1.10.0
Release:	1
Summary:	Library with cross-python path, ini-parsing, io, code, log facilities
Group:		Development/Python
Url:		http://py.readthedocs.org
License:	MIT
Source0:	https://pypi.io/packages/source/p/py/py-%{version}.tar.gz
BuildRequires:	python3-setuptools
BuildRequires:	python3-setuptools_scm
BuildArch:	noarch

%description
NOTE: this library is in maintenance mode and should not be used in new code.

The py lib is a development support library featuring these tools and
APIs:

* py.path: uniform local and svn path objects
* py.apipkg: explicit API control and lazy-importing
* py.iniconfig: easy parsing of .ini files
* py.code: dynamic code generation and introspection

NOTE: prior to the 1.4 release this distribution used
to contain py.test which is now its own package,
see http://pytest.org

#----------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Library with cross-python path, ini-parsing, io, code, log facilities
Group:		Development/Python

%description -n python3-%{pypi_name}
NOTE: this library is in maintenance mode and should
not be used in new code.

The py lib is a development support library featuring
these tools and APIs:

* py.path: uniform local and svn path objects
* py.apipkg: explicit API control and lazy-importing
* py.iniconfig: easy parsing of .ini files
* py.code: dynamic code generation and introspection
     

NOTE: prior to the 1.4 release this distribution used
to contain py.test which is now its own package,
see http://pytest.org

%files -n python3-%{pypi_name}
%doc CHANGELOG.rst LICENSE README.rst
%{python3_sitelib}/py*

#----------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16451 |21mr|python-pyasn1-0.4.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyasn1

Summary:	ASN.1 tools for Python
Name:		python-%{module}
Version:	0.4.8
Release:	6
License:	BSD
Group:		Development/Python
Url:		http://pyasn1.sourceforge.net/
Source0:	https://github.com/etingof/pyasn1/archive/v%{version}.tar.gz
Provides:	pyasn1 = %{EVRD}
BuildArch:	noarch

%description
This project is dedicated to implementation of ASN.1 types (concrete syntax)
and codecs (transfer syntaxes) for Python programming environment. ASN.1
compiler is planned for implementation in the future.

#----------------------------------------------------------------------------

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	ASN.1 tools for Python
Group:		Development/Python
BuildRequires:	python2-devel

%description -n python2-%{module}
This project is dedicated to implementation of ASN.1 types (concrete syntax)
and codecs (transfer syntaxes) for Python programming environment. ASN.1
compiler is planned for implementation in the future.

%files -n python2-%{module}
%{python2_sitelib}/%{module}
%{python2_sitelib}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	ASN.1 tools for Python
Group:		Development/Python
BuildRequires:	python3-devel

%description -n python3-%{module}
This project is dedicated to implementation of ASN.1 types (concrete syntax)
and codecs (transfer syntaxes) for Python programming environment. ASN.1
compiler is planned for implementation in the future.

%files -n python3-%{module}
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py2_build
%py3_build

%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16452 |21mr|python-pyasn1-modules-0.2.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyasn1-modules
%define omodule pyasn1_modules

Summary:	Collection of protocols modules written in ASN.1 language
Name:		python-%{module}
Version:	0.2.8
Release:	3
Epoch:		1
License:	BSD
Group:		Development/Python
Url:		http://pyasn1.sf.net/
Source0:	https://files.pythonhosted.org/packages/88/87/72eb9ccf8a58021c542de2588a867dbefc7556e14b2866d1e40e9e2b587e/pyasn1-modules-0.2.8.tar.gz
BuildArch:	noarch

%description
This is an implementation of ASN.1 types and codecs in Python programming
language. It has been first written to support particular protocol (SNMP) but
then generalized to be suitable for a wide range of protocols based on ASN.1
specification.

#----------------------------------------------------------------------------

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Collection of protocols modules written in ASN.1 language
Group:		Development/Python
BuildRequires:	python2-setuptools
BuildRequires:	pkgconfig(python2)
Requires:	python2-pyasn1

%description -n python2-%{module}
This is an implementation of ASN.1 types and codecs in Python 3 programming
language. It has been first written to support particular protocol (SNMP) but
then generalized to be suitable for a wide range of protocols based on ASN.1
specification.

%files -n python2-%{module}
%dir %{python2_sitelib}/%{omodule}/
%{python2_sitelib}/%{omodule}/*
%{python2_sitelib}/%{omodule}-*.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Collection of protocols modules written in ASN.1 language
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
Requires:	python3-pyasn1

%description -n python3-%{module}
This is an implementation of ASN.1 types and codecs in Python 3 programming
language. It has been first written to support particular protocol (SNMP) but
then generalized to be suitable for a wide range of protocols based on ASN.1
specification.

%files -n python3-%{module}
%dir %{python3_sitelib}/%{omodule}/
%{python3_sitelib}/%{omodule}/*
%{python3_sitelib}/%{omodule}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
cp -a . %{py3dir}

%build
export CFLAGS="%{optflags}"
%py2_build

pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
popd

%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16453 |21mr|python-pybluez-0.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pybluez

Summary:	Python wrappers around system Bluetooth resources
Name:		python-pybluez
Version:	0.23
Release:	1
License:	GPLv2+
Group:		Development/Python
Url:		https://pybluez.readthedocs.io/
Source0:	https://github.com/pybluez/pybluez/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)

%description
PyBluez is an effort to create python wrappers around system Bluetooth
resources to allow Python developers to easily and quickly create
Bluetooth applications.

#=======================================================================
%package -n python2-pybluez
%py2_migration_meta python2-pybluez
Summary:	Python2 wrappers around system Bluetooth resources
Group:		Development/Python
BuildRequires:	pythonegg(setuptools)

%description -n python2-pybluez
PyBluez is an effort to create python wrappers around system Bluetooth
resources to allow Python developers to easily and quickly create
Bluetooth applications.

%files -n python2-pybluez
%doc python2/CHANGELOG
%{python2_sitearch}/*.egg-info
%{python2_sitearch}/bluetooth/

#=======================================================================
%package -n python3-pybluez
Summary:	Python3 wrappers around system Bluetooth resources
Group:		Development/Python
BuildRequires:	python3egg(setuptools)

%description -n python3-pybluez
PyBluez is an effort to create python wrappers around system Bluetooth
resources to allow Python developers to easily and quickly create
Bluetooth applications.

%files -n python3-pybluez
%doc python3/CHANGELOG
%{python3_sitearch}/*.egg-info
%{python3_sitearch}/bluetooth/

#=======================================================================

%prep
%setup -qc -n %{oname}-%{version}
mv %{oname}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd
pushd python3
%py3_build
popd

%install
pushd python2
%py2_install
popd
pushd python3
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16454 |21mr|python-pycdlib-1.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pycdlib

Summary:    Library to parse
Name:       python-%{module}
Version:	1.12.0
Release:	1
License:    LGPLv2+
Group:      Development/Python
Url:        https://pypi.org/project/pycdlib/
Source0:	https://files.pythonhosted.org/packages/a2/15/9f0f0b4d97ea2fd4969207a89cf657d63ddee6fa8b972cd4e99ce28ea096/pycdlib-1.12.0.tar.gz
BuildArch:  noarch

%global _description PyCdlib is a pure python library to parse, write (master),\
                     and create ISO9660 files, suitable for writing to a CD or USB.\
                     The original ISO9660 (including ISO9660-1999) specification is \
                     supported, as well the El Torito, Joliet, Rock Ridge, and UDF extensions.
%description
%_description

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Library to parse
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools
BuildRequires:  python3-pkg-resources

%description -n python3-%{module}
%_description

%files -n python3-%{module}
%{_bindir}/pycdlib-explorer
%{_bindir}/pycdlib-extract-files
%{_bindir}/pycdlib-genisoimage
%{_mandir}/man1/pycdlib-explorer.?.xz
%{_mandir}/man1/pycdlib-extract-files.?.xz
%{_mandir}/man1/pycdlib-genisoimage.?.xz
%{python3_sitelib}/%{module}-%{version}-py?.?.egg-info
%{python3_sitelib}/%{module}/*.py*
%{python3_sitelib}/%{module}/__pycache__/*.py*

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16455 |21mr|python-pyclipper-1.3.0.post2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pyclipper

Name:           python-%{pypi_name}
Version:        1.3.0.post2
Release:        1
Summary:        Cython wrapper for the C++ translation of the Angus Johnson's Clipper library (ver
Group:          Development/Python
License:        MIT
URL:            https://github.com/greginvm/pyclipper
Source0:        https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3-cython
BuildRequires:  python3dist(funcsigs)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-runner)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm) >= 1.11.1
BuildRequires:  python3dist(setuptools-scm-git-archive) >= 1.0
BuildRequires:  python3dist(sympy)

%description
Pyclipper is a Cython wrapper exposing public functions and classes of the C++
translation of the Clipper library.

#--------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Pyclipper is a Cython wrapper exposing public functions and classes of the C++
translation of the Clipper library.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitearch}/*

#--------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Drop bundled source files
rm -rf pyclipper/pyclipper.cpp

# Regenerate source files
touch dev

sed -i "s/'unittest2', //" setup.py
sed -i s/unittest2/unittest/ tests/test_pyclipper.py

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16456 |21mr|python-pycodestyle-2.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pycodestyle

Summary:	Python style guide checker
Name:		python-%{module}
Version:	2.7.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/PyCQA/pycodestyle
Source0:	https://github.com/PyCQA/pycodestyle/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)
Requires:       pythonegg(setuptools)
Provides:       python-pep8 == %{EVRD}
Obsoletes:      python-pep8 < %{EVRD}

%description
pep8 is a tool to check your Python code against some of the style conventions
in PEP 8. It has a plug-in architecture, making new checks easy, and its output
is parse-able, making it easy to jump to an error location in your editor.
This package used to be called pep8 but was renamed to "pycodestyle"
to reduce confusion. Further discussion can be found:
https://github.com/PyCQA/pycodestyle/issues/466

%files
%doc LICENSE *.txt *.rst
%{_bindir}/pycodestyle
%{python2_sitelib}/*
%{_mandir}/man1/pycodestyle*

#---------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python style guide checker
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)
Requires:	python3egg(setuptools)
Provides:	python3-pep8 = %{EVRD}
Obsoletes:	python3-pep8 < 2.4.0
Obsoletes:	python3-codestyle < 2.4.0

%description -n python3-%{module}
pep8 is a tool to check your Python code against some of the style conventions
in PEP 8. It has a plug-in architecture, making new checks easy, and its output
is parse-able, making it easy to jump to an error location in your editor.
This package used to be called pep8 but was renamed to "pycodestyle"
to reduce confusion. Further discussion can be found:
https://github.com/PyCQA/pycodestyle/issues/466

%files -n python3-%{module}
%doc LICENSE *.txt *.rst
%{_bindir}/py3codestyle
%{_mandir}/man1/py3codestyle.1*
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
cp -a . %{py3dir}

%build
%py2_build
pushd docs
make man
popd

pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
chmod +x %{buildroot}%{python3_sitelib}/*.py
mv %{buildroot}%{_bindir}/%{module} %{buildroot}%{_bindir}/py3codestyle
popd

%py2_install
install -Dm644  docs/_build/man/%{module}.1 %{buildroot}%{_mandir}/man1/%{module}.1
install -Dm644  docs/_build/man/%{module}.1 %{buildroot}%{_mandir}/man1/py3codestyle.1
chmod +x %{buildroot}%{python2_sitelib}/*.py

%check
pushd %{py3dir}
%__python3 pycodestyle.py --max-doc-length=72 --testsuite testsuite
%__python3 pycodestyle.py --max-doc-length=72 --doctest
popd
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16457 |21mr|python-pycryptodomex-3.15.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pycryptodomex
%global common_description PyCryptodome is a self-contained Python package of low-level cryptographic\
primitives. It's a fork of PyCrypto. It brings several enhancements with respect\
to the last official version of PyCrypto (2.6.1), for instance:\
\
  * Authenticated encryption modes (GCM, CCM, EAX, SIV, OCB)\
  * Accelerated AES on Intel platforms via AES-NI\
  * Elliptic curves cryptography (NIST P-256 curve only)\
  * Better and more compact API (nonce and iv attributes for ciphers, automatic\
    generation of random nonces and IVs, simplified CTR cipher mode, and more)\
  * SHA-3 (including SHAKE XOFs) and BLAKE2 hash algorithms\
  * Salsa20 and ChaCha20 stream ciphers\
  * scrypt and HKDF\
  * Deterministic (EC)DSA\
  * Password-protected PKCS#8 key containers\
  * Shamir's Secret Sharing scheme\
  * Random numbers get sourced directly from the OS (and not from a CSPRNG in\
    userspace)\
  * Cleaner RSA and DSA key generation (largely based on FIPS 186-4)\
  * Major clean ups and simplification of the code base\
\
PyCryptodome is not a wrapper to a separate C library like OpenSSL. To the\
largest possible extent, algorithms are implemented in pure Python. Only the\
pieces that are extremely critical to performance (e.g. block ciphers) are\
implemented as C extensions.\
\
Note: all modules are installed under the Cryptodome package to avoid conflicts\
with the PyCrypto library.

%global _with_python2 1
%global _with_tests 1

Name:           python-%{srcname}
Version:        3.15.0
Release:        1
Summary:        A self-contained cryptographic library for Python
Group:          Development/Python

# PyCrypto-based code is public domain, further PyCryptodome contributions are
# BSD
License:        BSD and Public Domain
URL:            http://www.pycryptodome.org/
Source0:        https://github.com/Legrandin/pycryptodome/archive/v%{version}/%{srcname}-%{version}.tar.gz
# Use external libtomcrypt library
Patch0:         %{name}-3.15.0-use_external_libtomcrypt.patch
# Fix documentation build with Sphinx <= 1.2, especially on EL
Patch1:         %{name}-3.7.0-sphinx.patch

BuildRequires:  pkgconfig(libtomcrypt)
BuildRequires:  pkgconfig(libtommath)
%if 0%{?_with_python2}
BuildRequires:  %python2-devel
BuildRequires:  %python2-setuptools
%endif
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
# Needed for documentation
BuildRequires:  python3-sphinx

%description
%{common_description}

#------------------------------------------------
%if 0%{?_with_python2}
%package -n %python2-%{srcname}
%py2_migration_meta %python2-%{srcname}
Summary:        %{summary}
Group:			Development/Python
# GMP library is dl-opened
Requires:       gmp%{?_isa}
%{?python_provide:%python_provide %python2-%{srcname}}

%description -n %python2-%{srcname}
%{common_description}

%files -n %python2-%{srcname}
%doc AUTHORS.rst Changelog.rst README.rst
%license LICENSE.rst
%{python2_sitearch}/Cryptodome/
%exclude %{python2_sitearch}/Cryptodome/SelfTest/
%{python2_sitearch}/%{srcname}-*.egg-info/
%{_mandir}/man1/pycryptodome.1.*

#------------------------------------------------

%package -n %python2-%{srcname}-selftest
Summary:        PyCryptodome test suite module
Group:          Development/Python
Requires:       %python2-%{srcname}%{?_isa}

%description -n %python2-%{srcname}-selftest
%{common_description}

This package provides the PyCryptodome test suite module (Cryptodome.SelfTest).

%files -n %python2-%{srcname}-selftest
%{python2_sitearch}/Cryptodome/SelfTest/
%endif

#------------------------------------------------

%package -n python3-%{srcname}
Summary:        %{summary}
Group:			Development/Python
# GMP library is dl-opened
Requires:       gmp%{?_isa}

%description -n python3-%{srcname}
%{common_description}

%files -n python3-%{srcname}
%doc AUTHORS.rst Changelog.rst README.rst
%license LICENSE.rst
%{python3_sitearch}/Cryptodome/
%exclude %{python3_sitearch}/Cryptodome/SelfTest/
%{python3_sitearch}/%{srcname}-*.egg-info/
%{_mandir}/man1/pycryptodome.1.*

#------------------------------------------------

%package -n python3-%{srcname}-selftest
Summary:        PyCryptodome test suite module
Group:          Development/Python
Requires:       python3-%{srcname}%{?_isa}

%description -n python3-%{srcname}-selftest
%{common_description}

This package provides the PyCryptodome test suite module (Cryptodome.SelfTest).

%files -n python3-%{srcname}-selftest
%{python3_sitearch}/Cryptodome/SelfTest/

#------------------------------------------------

%prep
%autosetup -p1 -n pycryptodome-%{version}

# Drop bundled libraries
rm -r src/libtom/

# Remove shebang
sed '1{\@^#! /usr/bin/env python@d}' lib/Crypto/SelfTest/__main__.py >lib/Crypto/SelfTest/__main__.py.new && \
touch -r lib/Crypto/SelfTest/__main__.py lib/Crypto/SelfTest/__main__.py.new && \
mv lib/Crypto/SelfTest/__main__.py.new lib/Crypto/SelfTest/__main__.py


%build
touch .separate_namespace
%if 0%{?_with_python2}
%py2_build
%endif
%py3_build

# Build documentation
%make_build -C Doc/ man SPHINXBUILD=sphinx-build-3


%install
%if 0%{?_with_python2}
%py2_install
%endif
%py3_install


# Install man pages
install -Dpm 0644 Doc/_build/man/pycryptodome.1 %{buildroot}%{_mandir}/man1/pycryptodome.1

%check
%if 0%{?_with_tests}
%if 0%{?_with_python2}
%{__python2} setup.py test
%endif
%{__python3} setup.py test
%endif





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16458 |21mr|python-pydbus-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pydbus

Name:           python-%{srcname}
Version:        0.6.0
Release:        1
Group:          Development/Python
Summary:        Pythonic DBus library

License:        LGPLv2+
URL:            https://pypi.python.org/pypi/pydbus
Source0:        https://files.pythonhosted.org/packages/source/%(n=%{srcname}; echo ${n:0:1})/%{srcname}/%{srcname}-%{version}.tar.gz

# upstream fix, not yet in release
# https://github.com/LEW21/pydbus/commit/ff792feb45bbdc0dd6a9ff7453825e34b6554865
Patch1: 0001-make-direction-attribute-conforming-to-introspect.dt.patch

# patch submitted for upstream inclusion, not yet merged
# https://github.com/LEW21/pydbus/pull/63
Patch2: 0002-Support-asynchronous-calls-58.patch

# patch submitted for upstream inclusion, not yet merged
# https://github.com/LEW21/pydbus/pull/64
Patch3: 0003-Support-transformation-between-D-Bus-errors-and-exce.patch

BuildArch:      noarch

%global _description \
The pydbus module provides pythonic DBUS bindings.\
It is based on PyGI, the Python GObject Introspection bindings,\
which is the recommended way to use GLib from Python.

%description %{_description}

%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-gi

%description -n python3-%{srcname} %{_description}

Python 3 version.

%prep
%autosetup -n %{srcname}-%{version} -p1

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{srcname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16459 |21mr|python-pydocstyle-6.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pydocstyle

Name:           python-%{pypi_name}
Version:        6.1.1
Release:        2
Summary:        Python docstring style checker
Group:          Development/Python
License:        MIT
URL:            https://github.com/PyCQA/pydocstyle/
Source0:        %{pypi_source}
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
pydocstyle - docstring style checker (formerly pep257)**pydocstyle** is a
static analysis tool for checking compliance with Python docstring
conventions.**pydocstyle** supports most of PEP 257 < out of the box, but it
should not be considered a reference implementation.**pydocstyle** supports
Python 2.7, 3.3, 3.4, 3.5, 3.6 and pypy.Quick Start --Install .. code:: pip
install pydocstyle^^^^.....

%package -n     python3-%{pypi_name}
Summary:        %{summary}

Requires:       python3dist(setuptools)
Requires:       python3dist(six)
Requires:       python3dist(snowballstemmer)

%description -n python3-%{pypi_name}
pydocstyle - docstring style checker (formerly pep257)**pydocstyle** is a
static analysis tool for checking compliance with Python docstring
conventions.**pydocstyle** supports most of PEP 257 < out of the box, but it
should not be considered a reference implementation.**pydocstyle** supports
Python 2.7, 3.3, 3.4, 3.5, 3.6 and pypy.Quick Start --Install .. code:: pip
install pydocstyle^^^^.....

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc LICENSE-MIT
%doc README.rst
%{_bindir}/pydocstyle
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16460 |21mr|python-pydot-1.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	pydot

Name:		python-pydot
Version:	1.4.1
Release:	2
License:	MIT
Group:		Development/Python
Summary:	Python interface to Graphviz's Dot language
URL:		https://github.com/erocarrera/pydot
Source0:	https://pypi.io/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch
%rename	python-dot

%description
An interface for creating both directed and non directed graphs from Python.
Currently all attributes implemented in the Dot language are supported (up
to Graphviz 2.16).

Output can be inlined in Postscript into interactive scientific environments
like TeXmacs, or output in any of the format's supported by the Graphviz
tools dot, neato, twopi.

%package -n	python3-%{module}
Summary:	Python 3 interface to Graphviz's Dot language
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
Requires:	graphviz

%description -n python3-%{module}
An interface for creating both directed and non directed graphs from Python.
Currently all attributes implemented in the Dot language are supported (up
to Graphviz 2.16).

Output can be inlined in Postscript into interactive scientific environments
like TeXmacs, or output in any of the format's supported by the Graphviz
tools dot, neato, twopi.

This is the Python 3 version.

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc ChangeLog PKG-INFO README.md
%doc LICENSE
%{py3_puresitedir}/dot_parser.py*
%{py3_puresitedir}/pydot-%{version}-py%{python3_version}.egg-info
%{py3_puresitedir}/pydot.*
%{py3_puresitedir}/__pycache__/*.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16461 |21mr|python-pyelftools-0.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module  pyelftools

Name:           python-%{module}
Version:	0.27
Release:	1
Summary:        Pure-python library for parsing ELF and DWARF
Group:          Development/Python
License:        Public Domain
URL:            https://github.com/eliben/pyelftools
Source0:        https://github.com/eliben/pyelftools/archive/v%{version}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
pyelftools is a pure-Python library for parsing and analyzing ELF files
and DWARF debugging information.

%package -n     python3-%{module}
Summary:        Pure-python library for parsing ELF and DWARF for Python 3
Group:          Development/Python
BuildRequires:  python3-setuptools

%description -n python3-%{module}
pyelftools is a pure-Python library for parsing and analyzing ELF files
and DWARF debugging information.

This is the Python 3 module of pyelftools.

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

%files -n       python3-%{module}
%doc CHANGES README.rst
%doc LICENSE
%{_bindir}/readelf.py
%{py3_puresitedir}/elftools/
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16462 |21mr|python-pyflakes-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyflakes

Summary:	Simple program which checks Python source files for errors
Name:		python-%{oname}
Version:	2.3.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/PyCQA/pyflakes
Source0:	https://files.pythonhosted.org/packages/a8/0f/0dc480da9162749bf629dca76570972dd9cce5bedc60196a3c912875c87d/pyflakes-2.3.1.tar.gz
BuildRequires:  pythonegg(setuptools)
BuildRequires:	pkgconfig(python)
Provides:       pyflakes = %{EVRD}
Obsoletes:      pyflakes < %{EVRD}
BuildArch:	noarch

%description
Pyflakes is a simple program which checks Python source files for errors. It is
similar to PyChecker in scope, but differs in that it does not execute the
modules to check them. This is both safer and faster, although it does not
perform as many checks.

Unlike PyLint, Pyflakes checks only for logical errors in programs; it does
not perform any checks on style.

#----------------------------------------------------------------------------
%package -n python3-%{oname}
Summary:        Simple program which checks Python source files for errors
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
Provides:       py3flakes = %{EVRD}

%description -n python3-%{oname}
Pyflakes is a simple program which checks Python source files for errors. It is
similar to PyChecker in scope, but differs in that it does not execute the
modules to check them. This is both safer and faster, although it does not
perform as many checks.

Unlike PyLint, Pyflakes checks only for logical errors in programs; it does
not perform any checks on style.

%files -n python3-%{oname}
%license LICENSE
%doc AUTHORS NEWS.rst README.rst
%{_bindir}/pyflakes-%{python3_version}
%{_bindir}/pyflakes-3
%{_bindir}/pyflakes
%{python3_sitelib}/pyflakes*
%exclude %{python3_sitelib}/pyflakes/test/
#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

mv %{buildroot}%{_bindir}/pyflakes %{buildroot}%{_bindir}/pyflakes-%{python3_version}
ln -s pyflakes-%{python3_version} %{buildroot}%{_bindir}/pyflakes-3
ln -s pyflakes-3 %{buildroot}%{_bindir}/pyflakes

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16463 |21mr|python-pyftpdlib-1.5.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pyftpdlib

Name:		python-%{pypi_name}
Version:	1.5.6
Release:	2
Summary:	Python FTP server library
Group:		System/Libraries
License:	MIT
URL:		https://github.com/giampaolo/pyftpdlib
Source0:	%{pypi_source}
BuildArch:	noarch

%description
Python FTP server library provides a high-level portable interface to easily
write asynchronous FTP servers with Python. pyftpdlib is currently the most
complete RFC-959 FTP server implementation available for Python programming
language.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python FTP server library
Group:		System/Libraries
BuildRequires:	python3

%description -n python3-%{pypi_name}
Python FTP server library provides a high-level portable interface to easily
write asynchronous FTP servers with Python. pyftpdlib is currently the most
complete RFC-959 FTP server implementation available for Python programming
language.

%files -n python3-%{pypi_name}
%doc CREDITS HISTORY.rst LICENSE README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{_bindir}/ftpbench

#---------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
python3 setup.py install --root=%{buildroot} --compile --optimize=2


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16464 |21mr|python-pygame-2.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pygame
%ifnarch %{e2k}
# 0 is not supported by lcc for this option
%global optflags %{optflags} -Wstrict-aliasing=0
%endif
# private-shared-object-provides
%define _use_internal_dependency_generator 0

Name:		python-pygame
Version:	2.1.2
Release:	2
Summary:	Python module for interfacing with the SDL multimedia library
License:	LGPLv2+
Group:		System/Libraries
Url:		http://pygame.org/
Source:		https://files.pythonhosted.org/packages/source/p/pygame/%{pypi_name}-%{version}.tar.gz
BuildRequires:	portmidi-devel
BuildRequires:	smpeg-devel
BuildRequires:	python3dist(numpy)
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_ttf)

%description
pygame is a Python wrapper module for the SDL multimedia library,
written by Pete Shinners. It contains python functions and classes that
will allow you to use SDL's support for playing cdroms, audio and video
output, and keyboard, mouse and joystick input. pygame also includes
support for the Numerical Python extension. pygame is the successor to
the pySDL wrapper project, written by Mark Baker.

Install pygame if you would like to write or play SDL games written in
the python language.

#------------------------------------------------------------------

%package doc
Summary:	Pygame documentation and example programs
Group:		Development/Python
BuildArch:	noarch

%description doc
pygame is a Python wrapper module for the SDL multimedia library,
written by Pete Shinners. It contains python functions and classes that
will allow you to use SDL's support for playing cdroms, audio and video
output, and keyboard, mouse and joystick input. pygame also includes
support for the Numerical Python extension. pygame is the successor to
the pySDL wrapper project, written by Mark Baker.

Install pygame-doc if you need the API documentation and example
programs.

%files doc
%doc docs/
%doc examples/

#-------------------------------------------------------------

%package -n python3-%{pypi_name}-devel
Summary:	Pygame development headers
Group:		Development/Python
BuildArch:	noarch

%description -n python3-%{pypi_name}-devel
pygame is a Python3 wrapper module for the SDL multimedia library,
written by Pete Shinners. It contains python functions and classes that
will allow you to use SDL's support for playing cdroms, audio and video
output, and keyboard, mouse and joystick input. pygame also includes
support for the Numerical Python3 extension. pygame is the successor to
the pySDL wrapper project, written by Mark Baker.

Install the devel package if you want to build programs with pygame.

%files -n python3-%{pypi_name}-devel
%doc README.rst
%{_includedir}/python3*/pygame

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python 3 module for interfacing with the SDL multimedia library
Group:		Development/Python
Provides:	py3-pygame = %{EVRD}
Provides:	pygame = %{EVRD}

%description -n python3-%{pypi_name}
pygame is a Python3 wrapper module for the SDL multimedia library,
written by Pete Shinners. It contains python functions and classes that
will allow you to use SDL's support for playing cdroms, audio and video
output, and keyboard, mouse and joystick input. pygame also includes
support for the Numerical Python3 extension. pygame is the successor to
the pySDL wrapper project, written by Mark Baker.

Install pygame if you would like to write or play SDL games written in
the python language.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitearch}/pygame/
%{python3_sitearch}/pygame-%{version}-py*.egg-info/

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# rpmlint fixes
find examples/ -type f -print0 | xargs -0 chmod -x
find docs/ -type f -print0 | xargs -0 chmod -x
find src_c/ -type f -name '*.h' -print0 | xargs -0 chmod -x

iconv -f iso8859-1 -t utf-8 README.rst > README.rst.conv && mv -f README.rst.conv README.rst

%build
%py3_build

%install
%py3_install

# Fix permissions
chmod +x %{buildroot}%{python3_sitearch}/pygame/*.so
chmod +x %{buildroot}%{python3_sitearch}/pygame/tests/test_utils/png.py

# managed by doc package
rm -fr %{buildroot}%{python3_sitearch}/pygame/examples

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16465 |21mr|python-pygments-2.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname pygments

Summary:	Syntax highlighting package written in Python
Name:		python-pygments
Version:	2.10.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://pygments.org/
Source0:	https://github.com/pygments/pygments/archive/%{version}.tar.gz?/%{tarname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python3egg(setuptools)
Requires:	python-pkg-resources
BuildArch:	noarch

%description
Pygments is a syntax highlighting package written in Python.  It is a
generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to
prettify source code.  Highlights are:

* a wide range of common languages and markup formats is supported
* special attention is paid to details, increasing quality by a fair amount
* support for new languages and formats are added easily
* a number of output formats, presently HTML, LaTeX, RTF, SVG and ANSI
  sequences
* it is usable as a command-line tool and as a library
* ... and it highlights even Brainf*ck!

#--------------------------------------------------------------------

%package -n python2-pygments
%py2_migration_meta python2-pygments
Summary:	Syntax highlighting package written in Python3
Group:		Development/Python

%description -n python2-pygments
Pygments is a syntax highlighting package written in Python.  It is a
generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to
prettify source code.

%files -n python2-pygments
%doc AUTHORS CHANGES LICENSE
%{python2_sitelib}/*

#--------------------------------------------------------------------

%package -n python3-pygments
Summary:	Syntax highlighting package written in Python3
Group:		Development/Python

%description -n python3-pygments
Pygments is a syntax highlighting package written in Python.  It is a
generic syntax highlighter for general use in all kinds of software
such as forum systems, wikis or other applications that need to
prettify source code.

%files -n python3-pygments
%doc AUTHORS CHANGES LICENSE
%{python3_sitelib}/*
%{_bindir}/pygmentize
%{_mandir}/man1/pygmentize.*

#--------------------------------------------------------------------

%prep
%setup -qn %{tarname}-%{version}

cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd
%py2_build

%install
%py2_install
pushd %{py3dir}
%py3_install
popd

install -Dm0644 doc/pygmentize.1 %{buildroot}%{_mandir}/man1/pygmentize.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16466 |21mr|python-pyinotify-0.9.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyinotify

Summary:	Python module for monitoring filesystems changes
Name:		python-%{oname}
Version:	0.9.6
Release:	3
License:	MIT
Group:		Development/Python
Url:		http://github.com/seb-m/pyinotify
Source0:	https://files.pythonhosted.org/packages/e3/c0/fd5b18dde17c1249658521f69598f3252f11d9d7a980c5be8619970646e1/pyinotify-0.9.6.tar.gz
BuildRequires:	epydoc
Provides:	%{oname} = %{EVRD}
BuildArch:	noarch

%description
Pyinotify is a pure Python module for monitoring filesystems changes.
Pyinotify relies on inotify, a Linux Kernel functionality (since
kernel 2.6.13). inotify is an event-driven notification mechanism, its
notifications are exported to user space through three system calls.
Pyinotify binds these system calls and provides an implementation on
top of them.

#----------------------------------------------------------------------------

%package -n python2-pyinotify
%py2_migration_meta python2-pyinotify
Summary:	Python module for monitoring filesystems changes
Group:		Development/Python
BuildRequires:	pkgconfig(python2)

%description -n python2-pyinotify
Pyinotify is a pure Python module for monitoring filesystems changes.
Pyinotify relies on inotify, a Linux Kernel functionality (since
kernel 2.6.13). inotify is an event-driven notification mechanism, its
notifications are exported to user space through three system calls.
Pyinotify binds these system calls and provides an implementation on
top of them.

%files -n python2-pyinotify
%doc README* ACKS COPYING
%{python2_sitelib}/*

#----------------------------------------------------------------------------

%package -n python3-pyinotify
Summary:	Python module for monitoring filesystems changes
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
# Previous py3 subpackages were named in a wrong way
Obsoletes:	python3-pyinotify-0.9.4 < 0.9.5
Obsoletes:	python3-pyinotify-0.9.5 < 0.9.5-4

%description -n python3-pyinotify
Pyinotify is a pure Python module for monitoring filesystems changes.
Pyinotify relies on inotify, a Linux Kernel functionality (since
kernel 2.6.13). inotify is an event-driven notification mechanism, its
notifications are exported to user space through three system calls.
Pyinotify binds these system calls and provides an implementation on
top of them.

%files -n python3-pyinotify
%doc README* ACKS COPYING
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd
export PYTHON=%__python2
%py2_build

%install
pushd %{py3dir}
%py3_install
popd
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16467 |21mr|python-pyjsparser-2.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyjsparser

Summary:	Fast JavaScript parser - manual translation of esprima.js to python
Name:		python-pyjsparser
Version:	2.7.1
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://github.com/PiotrDabkowski/pyjsparser
Source0:	https://files.pythonhosted.org/packages/48/ef/c72abcfa2c6accd03e7c89c400790fc3d908c5804d50a7c4e9ceabd74d23/pyjsparser-2.7.1.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
Fast JavaScript parser - manual translation of esprima.js to python.
Takes 1 second to parse whole angular.js library so parsing speed is about
100k characters per second which makes it the fastest and most comprehensible
JavaScript parser for python out there.
Supports whole ECMAScript 5.1 and parts of ECMAScript 6.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Fast JavaScript parser - manual translation of esprima.js to python
Group:		Development/Python

%description -n python3-%{module}
Fast JavaScript parser - manual translation of esprima.js to python.
Takes 1 second to parse whole angular.js library so parsing speed is about
100k characters per second which makes it the fastest and most comprehensible
JavaScript parser for python out there.
Supports whole ECMAScript 5.1 and parts of ECMAScript 6.

%files -n python3-%{module}
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn pyjsparser-%{version}
%apply_patches

rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16468 |21mr|python-pykmip-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name PyKMIP
%global sname pykmip

Name:		python-%{sname}
Version:	0.10.0
Release:	1
Summary:	Python implementation of the Key Management Interoperability Protocol
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/OpenKMIP/PyKMIP
Source0:	https://pypi.python.org/packages/source/P/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Patch0:		enum34.patch
BuildArch:      noarch

%description
PyKMIP is a Python implementation of the Key Management Interoperability
Protocol (KMIP). KMIP is a client/server communication protocol for the
storage and maintenance of key, certificate, and secret objects. The
standard is governed by the `Organization for the Advancement of
Structured InformationStandards`_ (OASIS).

#---------------------------------------------------------------
%package -n python3-%{sname}
Summary:	Python implementation of the Key Management Interoperability Protocol
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-six
BuildRequires:	python3-setuptools
Requires:	python3-cryptography
Requires:	python3-requests
Requires:	python3-six
Requires:	python3-sqlalchemy

%description -n python3-%{sname}
PyKMIP is a Python implementation of the Key Management Interoperability
Protocol (KMIP). KMIP is a client/server communication protocol for the
storage and maintenance of key, certificate, and secret objects. The
standard is governed by the `Organization for the Advancement of
Structured InformationStandards`_ (OASIS).

%files -n python3-%{sname}
%doc README.rst
%license LICENSE.txt
%{_bindir}/pykmip-server
%{python3_sitelib}/kmip
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16469 |21mr|python-pylama-7.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pylama

Summary:	Code audit tool for Python and JavaScript
Name:		python-%{pypi_name}
Version:	7.7.1
Release:	1
License:	LGPLv2
Group:		Development/Python
Url:		https://github.com/klen/pylama
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
Code audit tool for Python and JavaScript.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Code audit tool for Python and JavaScript
Group:		Development/Python
Requires:	python3dist(mccabe) >= 0.5.2
Requires:	python3dist(pycodestyle) >= 2.3.1
Requires:	python3dist(pydocstyle) >= 2.0.0
Requires:	python3dist(pyflakes) >= 1.5.0
Requires:	python3dist(setuptools)

%description -n python3-%{pypi_name}
Code audit tool for Python and JavaScript.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/pylama
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

rm -rf %{buildroot}%{python3_sitelib}/tests/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16470 |21mr|python-pylev-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pylev

%global common_description %{expand:
A pure Python Levenshtein implementation that’s not freaking GPL’d.

Based off the Wikipedia code samples at
https://en.wikipedia.org/wiki/Levenshtein_distance.}

Name:           python-%{pypi_name}
Summary:        Liberally licensed, pure Python Levenshtein implementation
Group:          Development/Python
Version:        1.4.0
Release:        1
License:        BSD

URL:            http://github.com/toastdriven/pylev
Source0:        %{pypi_source}

# Include LICENSE file from upstream repository
Source1:        https://raw.githubusercontent.com/toastdriven/pylev/master/LICENSE

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description %{common_description}

#--------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{common_description}

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/%{pypi_name}/__pycache__/*
%{python3_sitelib}/%{pypi_name}/*.py
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#--------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

cp %{SOURCE1} .


%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16471 |21mr|python-pylibacl-0.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname pylibacl

Summary:        Posix ACL module for Python
Name:           python-%{rname}
Version:        0.6.0
Release:        2
License:        GPLv2+
Group:          Development/Python
Url:            http://%{rname}.sourceforge.net
Source0:        %{pypi_source %{rname} %{version}}
BuildRequires:  acl-devel
BuildRequires:  python3-devel
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
Provides:       %{rname} = %{EVRD}

%description
This is an extension for Python which implements POSIX ACLs (POSIX.1e).

#----------------------------------------------------------------------------

%package -n python3-%{rname}
Summary:    Posix ACL module for Python

%description -n python3-%{rname}
This is an extension for Python which implements POSIX ACLs (POSIX.1e).

%files -n python3-%{rname}
%dir %{py3_platsitedir}/%{rname}-%{version}-py%{py3_ver}.egg-info
%{py3_platsitedir}/%{rname}-%{version}-py%{py3_ver}.egg-info/*
%{py3_platsitedir}/posix1e.cpython-*.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{rname}-%{version}

%build
%{py3_build}

%install
%{py3_install}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16472 |21mr|python-pymongo-3.11.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global bootstrap 0

Name:		python-pymongo
Version:	3.11.3
Release:	1
Group:		Development/Python
# All code is ASL 2.0 except bson/time64*.{c,h} which is MIT
License:	ASL 2.0 and MIT
Summary:	Python driver for MongoDB
URL:		http://api.mongodb.org/python
Source0:	https://github.com/mongodb/mongo-python-driver/archive/%{version}/pymongo-%{version}.tar.gz
# This patch removes the bundled ssl.match_hostname library as it was vulnerable to CVE-2013-7440
# and CVE-2013-2099, and wasn't needed anyway since Fedora >= 22 has the needed module in the Python
# standard library. It also adjusts imports so that they exclusively use the code from Python.
Patch01:	0001-Use-ssl.match_hostname-from-the-Python-stdlib.patch

BuildRequires:	gcc
%if 0%{!?bootstrap:1}
BuildRequires:	python3-sphinx
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
The Python driver for MongoDB.

#---------------------------------------------------------------
%package doc
Summary:	Documentation for python-pymongo
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for python-pymongo.

%files doc
%license LICENSE
%if 0%{!?bootstrap:1}
%doc doc/_build/html/*
%endif

#---------------------------------------------------------------

%package -n python3-bson
Summary:	Python bson library
Group:		Development/Python

%description -n python3-bson
BSON is a binary-encoded serialization of JSON-like documents. BSON is designed
to be lightweight, traversable, and efficient. BSON, like JSON, supports the
embedding of objects and arrays within other objects and arrays.  This package
contains the python3 version of this module.

%files -n python3-bson
%license LICENSE
%doc README.rst
%{python3_sitearch}/bson

#---------------------------------------------------------------

%package -n python3-pymongo
Summary:	Python driver for MongoDB
Group:		Development/Python
Requires:	python3-bson%{?_isa} = %{EVRD}

%description -n python3-pymongo
The Python driver for MongoDB.  This package contains the python3 version of
this module.

%files -n python3-pymongo
%license LICENSE
%doc README.rst
%{python3_sitearch}/pymongo
%{python3_sitearch}/pymongo-%{version}-*.egg-info

#---------------------------------------------------------------

%package -n python3-pymongo-gridfs
Summary:	Python GridFS driver for MongoDB
Group:		Development/Python
Requires:	python3-pymongo%{?_isa} = %{EVRD}

%description -n python3-pymongo-gridfs
GridFS is a storage specification for large objects in MongoDB.  This package
contains the python3 version of this module.

%files -n python3-pymongo-gridfs
%license LICENSE
%doc README.rst
%{python3_sitearch}/gridfs

#---------------------------------------------------------------

%prep
%autosetup -p1 -n mongo-python-driver-%{version}

# Remove the bundled ssl.match_hostname library as it was vulnerable to CVE-2013-7440
# and CVE-2013-2099, and isn't needed anyway since Fedora >= 22 has the needed module in the Python
# standard library.
rm pymongo/ssl_match_hostname.py


%build
%py3_build

%if 0%{!?bootstrap:1}
pushd doc
make %{?_smp_mflags} html
popd
%endif


%install
%py3_install
# Fix permissions
chmod 755 %{buildroot}%{python3_sitearch}/bson/*.so
chmod 755 %{buildroot}%{python3_sitearch}/pymongo/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16473 |21mr|python-PyMySQL-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module PyMySQL

Name:           python-%{module}
Version:	1.0.2
Release:	1
Summary:        Pure-Python MySQL client library
Group:          Development/Python
License:        MIT
Url:            https://pypi.python.org/pypi/%{module}/
Source0:	https://files.pythonhosted.org/packages/60/ea/33b8430115d9b617b713959b21dfd5db1df77425e38efea08d121e83b712/PyMySQL-1.0.2.tar.gz
BuildArch:      noarch

%description
This package contains a pure-Python MySQL client library.
The goal of PyMySQL is to be a drop-in replacement for
MySQLdb and work on CPython, PyPy, IronPython
and Jython.

#-------------------------------------------------

%package -n     python3-%{module}
Summary:        %{summary}
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(cryptography)
Requires:       python3egg(cryptography)

%description -n python3-%{module}
This package contains a pure-Python3 MySQL client library.
The goal of PyMySQL is to be a drop-in replacement for
MySQLdb and work on CPython, PyPy, IronPython
and Jython.

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir}/%{module}-%{version}-*.egg-info
%{py3_puresitedir}/pymysql/
#--------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}
# tests require a mysqldb running on abf worker
rm -rf tests

%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16474 |21mr|python-pyngus-2.3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pyngus
%global proton_minimum_version 0.28.0

# Don't duplicate the same documentation
%global _docdir_fmt %{name}

Name:          python-%{srcname}
Version:       2.3.0
Release:       7%{?dist}
Summary:       Callback API implemented over Proton
Group:         Development/Python
License:       ASL 2.0
URL:           https://github.com/kgiusti/%{srcname}
Source0:       %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildArch:     noarch

%global _description \
A connection oriented messaging framework using QPID Proton.\
It provides a callback-based API for message passing.

%description %{_description}

%package -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-qpid-proton >= %{proton_minimum_version}
Requires:       python3-qpid-proton >= %{proton_minimum_version}

%description -n python3-%{srcname} %{_description}

Python 3 version.

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
#  PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} test-runner || :
#popd

%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16475 |21mr|python-pyperclip-1.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	pyperclip

Name:		python-%{module}
Version:	1.8.2
Release:	1
Summary:	A cross-platform clipboard module for Python
License:	MIT
Group:		Development/Python
Url:		https://github.com/asweigart/pyperclip
Source0:	https://files.pythonhosted.org/packages/a7/2c/4c64579f847bd5d539803c8b909e54ba087a79d01bb3aba433a95879a6c5/pyperclip-1.8.2.tar.gz
BuildArch:	noarch

%description
Pyperclip is a cross-platform Python module for copy and paste
clipboard functions.
#-----------------------------------------------------

%package -n	python3-%{module}
Summary:	A cross-platform clipboard module for Python 3
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-sphinx

Provides:	python3-pyperclip = %{EVRD}

%description -n python3-%{module}
Pyperclip is a cross-platform Python 3 module for copy and paste
clipboard functions.


%files -n python3-%{module}
%doc README.md
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py*.egg-info
%{_mandir}/man1/*

#-----------------------------------------------------

%prep
%setup -qn %{module}-%{version}

rm -rf %{module}.egg-info

%build
%py3_build
pushd docs
make man
popd


%install
%py3_install

install -D -m644 docs/_build/man/%{module}.1 %{buildroot}%{_mandir}/man1/%{name}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16476 |21mr|python-pyrfc3339-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name pyrfc3339
%define srcname pyRFC3339

Name:           python-%{upstream_name}
Version:        1.1
Release:        1
Summary:        Generate and parse RFC 3339 timestamps
Group:          Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/pyRFC3339
Source0:        %{pypi_source}
BuildArch:      noarch

%description
pyRFC3339 parses and generates RFC 3339-compliant timestamps using Python
datetime.datetime objects.

%package -n     python3-%{upstream_name}
Summary:        Generate and parse RFC 3339 timestamps
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description -n python3-%{upstream_name}
pyRFC3339 parses and generates RFC 3339-compliant timestamps using Python
datetime.datetime objects.

This is the Python 3 version of the package.

%prep
%setup -q -n pyRFC3339-%{version}

# Remove bundled egg-info
rm -rf pyRFC3339.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{upstream_name}
%{py3_puresitedir}/pyrfc3339
%{py3_puresitedir}/pyRFC3339-%{version}-*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16477 |21mr|python-pyroute2-0.5.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name pyroute2
%define	module	route2

Name:		python-%{pypi_name}
Version:	0.5.18
Release:	2
Summary:	Python Netlink library
Source0:	%pypi_source
License:	dual license GPLv2+ and Apache v2
Group:		Development/Python
Url:		https://github.com/svinota/pyroute2
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
Pyroute2
========

Pyroute2 is a pure Python **netlink** library. It requires only Python stdlib,
no 3rd party libraries. The library was started as an RTNL protocol
implementation, so the name is **pyroute2**, but now it supports many netlink
protocols. Some supported netlink families and protocols:

* **rtnl**, network settings --- addresses, routes, traffic controls
* **nfnetlink** --- netfilter API: **ipset**, **nftables**, ...
* **ipq** --- simplest userspace packet filtering, iptables QUEUE target
* **devlink** --- manage and monitor devlink-enabled hardware
* **generic** --- generic netlink families
    * **nl80211** --- wireless functions API (basic support)
    * **taskstats** --- extended process statistics
    * **acpi_events** --- ACPI events monitoring
    * **thermal_events** --- thermal events monitoring
    * **VFS_DQUOT** --- disk quota events monitoring

Starting with 0.5.2 the library supports also PF_ROUTE sockets on BSD systems.

Supported systems
-----------------

Pyroute2 runs natively on Linux and emulates some limited subset
of RTNL netlink API on BSD systems on top of PF_ROUTE notifications
and standard system tools.

%package -n python3-%{pypi_name}
Summary:	Python Netlink library
Group:		Development/Python

%description -n python3-%{pypi_name}
Pyroute2 is a pure Python **netlink** library.

%files -n python3-%{pypi_name}
%{_bindir}/pyroute2-cli
%{_bindir}/ss2
%{python3_sitelib}/pyroute2-%{version}*.egg-info
%{python3_sitelib}/pyroute2


%prep
%setup -q -n %{pypi_name}-%{version}
touch README.md

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16478 |21mr|python-pyrsistent-0.18.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name pyrsistent

Name:           python-%{pypi_name}
Version:	0.18.0
Release:	1
Summary:        Persistent/Functional/Immutable data structures
Group:          Development/Python
License:        MIT
URL:            https://github.com/tobgu/pyrsistent/
Source0:	https://files.pythonhosted.org/packages/f4/d7/0fa558c4fb00f15aabc6d42d365fcca7a15fcc1091cd0f5784a14f390b7f/pyrsistent-0.18.0.tar.gz
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six)
Requires:       python3egg(six)

%description
Pyrsistent is a number of persistent collections (by some referred to as
functional data structures). Persistent in the sense that they are immutable.

All methods on a data structure that would normally mutate it instead return
a new copy of the structure containing the requested updates. The original
structure is left untouched.

%prep
%setup -qn %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python-%{pypi_name}
%doc README.rst
%{py3_platsitedir}/pvectorc.*.so
%{py3_platsitedir}/_pyrsistent_version.py*
%{py3_platsitedir}/%{pypi_name}
%{py3_platsitedir}/__pycache__/*
%{py3_platsitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16479 |21mr|python-pysaml2-7.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pysaml2

Summary:	Python implementation of SAML Version 2
Name:		python-%{srcname}
Version:	7.1.0
Release:	2
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/IdentityPython/%{srcname}
Source0:	https://github.com/IdentityPython/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	git
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(defusedxml)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(importlib-resources)
BuildRequires:	python3egg(sphinx)
BuildArch:	noarch

%description
PySAML2 is a pure python implementation of SAML2. It contains all
necessary pieces for building a SAML2 service provider or an identity
provider.  The distribution contains examples of both.  Originally
written to work in a WSGI environment there are extensions that allow
you to use it with other frameworks.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	Python implementation of SAML Version 2
Group:		Development/Python
Requires:	python3-cryptography
Requires:	python3-dateutil
Requires:	python3-defusedxml
Requires:	python3-future
Requires:	python3-pyOpenSSL
Requires:	python3-pytz
Requires:	python3-requests >= 1.0.0
Requires:	python3-six

%description -n python3-%{srcname}
PySAML2 is a pure python implementation of SAML2. It contains all
necessary pieces for building a SAML2 service provider or an identity
provider.  The distribution contains examples of both.  Originally
written to work in a WSGI environment there are extensions that allow
you to use it with other frameworks.

%files -n python3-%{srcname}
%doc README.rst
%license LICENSE
%{_bindir}/parse_xsd2.py
%{_bindir}/make_metadata.py
%{_bindir}/mdexport.py
%{_bindir}/merge_metadata.py
%{python3_sitelib}/saml2
%{python3_sitelib}/*.egg-info

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for Python implementation of SAML Version 2
Group:		Documentation

%description doc
Documentation for Python implementation of SAML Version 2.

%files doc
%license LICENSE
%doc html

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version} -S git
sed -i '/argparse/d' setup.py

# Avoid non-executable-script rpmlint while maintaining timestamps
find src -name \*.py |
while read source; do
  if head -n1 "$source" | grep -F '/usr/bin/env'; then
    touch --ref="$source" "$source".ts
    sed -i '/\/usr\/bin\/env python/{d;q}' "$source"
    touch --ref="$source".ts "$source"
    rm "$source".ts
  fi
done
# special case for parse_xsd generated file which have lines like:
#!!!! 'NoneType' object has no attribute 'py_class'
source="src/saml2/schema/wsdl.py"
touch --ref="$source" "$source".ts
sed -i '1,3{d;q}' "$source"
touch --ref="$source".ts "$source"
rm "$source".ts

%build
%py3_build

# drop alabaster Sphinx theme, not packaged in Fedora yet
#sed -i '/alabaster/d' docs/conf.py
# generate html docs
export PYTHONPATH=./src
sphinx-build-3 docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16480 |21mr|python-pysendfile-2.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pysendfile

Name:           python-pysendfile
Version:        2.0.1
Release:        4
Summary:        Python interface to the sendfile(2) system call
Group:          Development/Python

License:        MIT
URL:            https://github.com/giampaolo/pysendfile
Source0:        https://github.com/giampaolo/pysendfile/archive/release-%{version}/%{pypi_name}-release-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description
sendfile(2) is a system call which provides a "zero-copy" way of copying data
from one file descriptor to another (a socket). The phrase "zero-copy" refers
to the fact that all of the copying of data between the two descriptors is done
entirely by the kernel, with no copying of data into user-space buffers. This is
particularly useful when sending a file over a socket (e.g. FTP).

%package -n python3-%{pypi_name}
Summary:        Python interface to the sendfile(2) system call
Group:          Development/Python
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
sendfile(2) is a system call which provides a "zero-copy" way of copying data
from one file descriptor to another (a socket). The phrase "zero-copy" refers
to the fact that all of the copying of data between the two descriptors is done
entirely by the kernel, with no copying of data into user-space buffers. This is
particularly useful when sending a file over a socket (e.g. FTP).

%prep
%setup -q -n %{pypi_name}-release-%{version}

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH="%{buildroot}%{python3_sitearch}" %{__python3} test/test_sendfile.py

%files -n python3-%{pypi_name}
%doc README.rst HISTORY.rst
%license LICENSE
%{python3_sitearch}/sendfile*.so
%{python3_sitearch}/pysendfile-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16481 |21mr|python-pyside2-5.15.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _lto_cflags %{nil}

%global pypi_name pyside2
%global camel_name PySide2
%global qt5ver 5.15

%define py3major   5.15
%define libname %mklibname pyside2 %{py3major}
%define py3libname %mklibname shiboken2 %{py3major}
%define py3libname_dev %mklibname shiboken2 -d

Name:		python-%{pypi_name}
Version:	5.15.5
Release:	3
Summary:	Python bindings for the Qt 5 cross-platform application and UI framework
Group:		Development/KDE and Qt
License:	BSD and GPLv2 and GPLv3 and LGPLv3
URL:		https://wiki.qt.io/Qt_for_Python
Source0:	https://download.qt.io/official_releases/QtForPython/pyside2/PySide2-%{version}-src/pyside-setup-opensource-src-%{version}.tar.xz

# PySide2 tools are "reinstalled" for pip installs but breaks distro builds.
Patch0:		pyside2-tools-obsolete.patch
Patch1:		shiboken2-5.12.2-python3-linking.patch
# avoid "option --reuse-build not recognized"
Patch2:		pyside2-reuse-build.patch

BuildRequires:	cmake
BuildRequires:	gcc graphviz
BuildRequires:	clang-devel
BuildRequires:	llvm-devel
BuildRequires:	/usr/bin/pathfix.py
BuildRequires:	libxml2-devel
BuildRequires:	libxslt-devel
BuildRequires:	python3-devel
BuildRequires:	python3-sphinx
BuildRequires:	python3-setuptools
BuildRequires:	python3-wheel
# Shiboken2
BuildRequires:	pkgconfig(Qt5Core) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Gui) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Xml) >= %{qt5ver}
BuildRequires:	qt5-tools >= %{qt5ver}
# Needed for Cmake UI Config
BuildRequires:	pkgconfig(Qt5UiTools) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5X11Extras) >= %{qt5ver}
# PySide2
BuildRequires:	qt5-qtbase-devel >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Charts) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5DataVisualization) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Location) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Multimedia) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5QuickControls2) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5RemoteObjects) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Script) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5ScriptTools) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Scxml) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Sensors) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5SerialPort) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Svg) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5TextToSpeech) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5XmlPatterns) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5WebEngine) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5WebEngineWidgets) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5QuickWidgets) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5WebSockets) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt53DCore) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt53DRender) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt53DInput) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt53DLogic) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt53DAnimation) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt53DExtras) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt53DRender) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Designer) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5Help) >= %{qt5ver}
BuildRequires:	pkgconfig(Qt5UiPlugin) >= %{qt5ver}

%description
PySide2 is the official Python module from the Qt for Python project, which
provides access to the complete Qt 5.13+ framework.

The name Shiboken2 and PySide2 make reference to the Qt 5 compatibility, since
the previous versions (without the 2) refer to Qt 4.

#--------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
Provides:	python3-%{camel_name} = %{EVRD}
Provides:	python3egg(%{camel_name}) = %{EVRD}
Provides:	python3dist(%{camel_name}) = %{EVRD}
Provides:	python%{py3_ver}dist(%{camel_name}) = %{EVRD}

%description -n python3-%{pypi_name}
PySide2 is the official Python module from the Qt for Python project, which
provides access to the complete Qt 5.13+ framework.

The name Shiboken2 and PySide2 make reference to the Qt 5 compatibility, since
the previous versions (without the 2) refer to Qt 4.

%files -n python3-%{pypi_name}
%license LICENSE.LGPLv3
%doc README.md
%{python3_sitearch}/%{camel_name}/
#%%{python3_sitearch}/%{camel_name}-%{version}-py%{python3_version}.egg-info/

#--------------------------------------------------------------

%package -n %{libname}
Summary:	PySide2 core library
Group:		System/Libraries
Conflicts:	%{_lib}pyside2 < %{EVRD}
Obsoletes:	%{_lib}pyside2 < %{EVRD}

%description -n %{libname}
PySide2 core library.

%files -n %{libname}
%{_libdir}/libpyside2*.so.%{py3major}*

#------------------------------------------------------------------------------

%package -n python3-%{pypi_name}-devel
Summary:	Development files related to %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}
Requires:	pyside2-tools = %{EVRD}
Requires:	shiboken2 = %{EVRD}
Requires:	python3-%{pypi_name} = %{EVRD}

%description -n python3-%{pypi_name}-devel
%{summary}.

%files -n python3-%{pypi_name}-devel
%{_datadir}/PySide2/
%{_includedir}/PySide2/
%{_libdir}/libpyside2*.so
%{_libdir}/cmake/PySide2*
%{_libdir}/pkgconfig/pyside2.pc

#--------------------------------------------------------------

%package -n pyside2-tools
Summary:	PySide2 tools for the Qt 5 framework
Group:		Development/KDE and Qt

%description -n pyside2-tools
PySide2 provides Python bindings for the Qt5 cross-platform application
and UI framework.

This package ships the following accompanying tools:
 * pyside2-rcc - PySide2 resource compiler
 * pyside2-uic - Python User Interface Compiler for PySide2
 * pyside2-lupdate - update Qt Linguist translation files for PySide2

The name Shiboken2 and PySide2 make reference to the Qt 5 compatibility, since
the previous versions (without the 2) refer to Qt 4.

%files -n pyside2-tools
%doc README.pyside*
%license LICENSE.GPL2
%{_bindir}/designer
%{_bindir}/pyside*
%{_mandir}/man1/pyside*.1*

#--------------------------------------------------------------

%package -n shiboken2
Summary:	Python / C++ bindings generator for %camel_name
Group:		Development/KDE and Qt

%description -n shiboken2
Shiboken is the Python binding generator that Qt for Python uses to create the
PySide module, in other words, is the system we use to expose the Qt C++ API to
Python.

The name Shiboken2 and PySide2 make reference to the Qt 5 compatibility, since
the previous versions (without the 2) refer to Qt 4.

%files -n shiboken2
%doc README.shiboken2-generator.md
%license LICENSE.GPLv3
%{_bindir}/shiboken2
%{_bindir}/shiboken_tool.py

#--------------------------------------------------------------

%package -n python3-shiboken2
Summary:	Python / C++ bindings libraries for %camel_name
Group:		Development/Python

%description -n python3-shiboken2
Shiboken is the Python binding generator that Qt for Python uses to create the
PySide module, in other words, is the system we use to expose the Qt C++ API to
Python.

The name Shiboken2 and PySide2 make reference to the Qt 5 compatibility, since
the previous versions (without the 2) refer to Qt 4.

%files -n python3-shiboken2
%doc README.shiboken2.md
%license LICENSE.LGPLv3
%{python3_sitearch}/shiboken2/
#%%{python3_sitearch}/shiboken2-%{version}-py%{python3_version}.egg-info/

#--------------------------------------------------------------

%package -n %{py3libname}
Summary:	Shiboken2 Generator core library
Group:		System/Libraries

%description -n %{py3libname}
Python3 Shiboken2 Generator core library.

%files -n %{py3libname}
%{_libdir}/libshiboken2.cpython-*.so.%{py3major}{,.*}

#------------------------------------------------------------------------------

%package -n %{py3libname_dev}
Summary:	Python / C++ bindings helper module for %camel_name
Group:		Development/Python
Requires:	shiboken2 = %{EVRD}
Requires:	python3-shiboken2 = %{EVRD}
Requires:	%{py3libname} = %{EVRD}
Provides:	python3egg(shiboken2_generator) = %{EVRD}
Provides:	python3dist(shiboken2_generator) = %{EVRD}
Provides:	python%{py3_ver}dist(shiboken2_generator) = %{EVRD}

%description -n %{py3libname_dev}
Shiboken is the Python binding generator that Qt for Python uses to create the
PySide module, in other words, is the system we use to expose the Qt C++ API to
Python.

The name Shiboken2 and PySide2 make reference to the Qt 5 compatibility, since
the previous versions (without the 2) refer to Qt 4.

%files -n %{py3libname_dev}
%doc README.shiboken2.md
%{_includedir}/shiboken2/
%{_libdir}/cmake/Shiboken2-%{version}/
%{_libdir}/libshiboken2*.so
%{_libdir}/pkgconfig/shiboken2.pc
%{python3_sitearch}/shiboken2_generator/
#%%{python3_sitearch}/shiboken2_generator-%{version}-py%{python3_version}.egg-info/

#--------------------------------------------------------------

%prep
%autosetup -p1 -n pyside-setup-opensource-src-%{version}

%build
%cmake -DUSE_PYTHON_VERSION=3
%make

%install
%makeinstall_std -C build

#-------------------------------------------------------------------------------

# NOT WORK NOW!!! FIXME!!!

# Generate egg-info manually and install since we're performing a cmake build.
#
# Copy CMake configuration files from the BINARY dir back to the SOURCE dir so
# setuptools can find them.
#cp build/sources/shiboken2/shibokenmodule/{*.py,*.txt} sources/shiboken2/shibokenmodule/
#cp build/sources/pyside2/PySide2/*.py sources/pyside2/PySide2/
#%%{__python3} setup.py develop
#for name in PySide2 shiboken2 shiboken2_generator; do
#  mkdir -p %{buildroot}%{python3_sitearch}/$name-%{version}-py%{python3_version}.egg-info
#  cp -p $name.egg-info/{PKG-INFO,not-zip-safe,top_level.txt} \
#        %{buildroot}%{python3_sitearch}/$name-%{version}-py%{python3_version}.egg-info/
#done

#-------------------------------------------------------------------------------

# Fix all Python shebangs recursively
# -p preserves timestamps
# -n prevents creating ~backup files
# -i specifies the interpreter for the shebang
# Need to list files that do not match ^[a-zA-Z0-9_]+\.py$ explicitly!
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_bindir}/*


%check
# Lots of tests fail currently
#{__python3} testrunner.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16482 |21mr|python-pysmi-0.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pysmi

Name:		python-%{pypi_name}
Version:	0.3.4
Release:	1
Summary:	SNMP SMI/MIB Parser
Group:		Development/Python
License:	BSD
URL:		https://github.com/etingof/pysmi
Source0:	https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch
 
BuildRequires:	python3-devel
BuildRequires:	python3dist(ply)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(sphinx)

%description
A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.

#---------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
Requires:	python3dist(ply)

%description -n python3-%{pypi_name}
A pure-Python implementation of SNMP/SMI MIB parsing and conversion library.

%files -n python3-%{pypi_name}
%license docs/source/license.rst LICENSE.rst
%doc docs/README.txt README.md
%{_bindir}/mibcopy.py
%{_bindir}/mibdump.py
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#---------------------------------------------------------------------

%package -n python-%{pypi_name}-doc
Summary:	pysmi documentation
Group:		Documentation

%description -n python-%{pypi_name}-doc
Documentation for pysmi

%files -n python-%{pypi_name}-doc
%doc html
%license docs/source/license.rst LICENSE.rst

#---------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build
# generate html docs
PYTHONPATH=${PWD} sphinx-build-3 docs/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16483 |21mr|python-pysodium-0.7.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pysodium

Summary:	Simple wrapper around libsodium
Name:		python-%{pypi_name}
Version:	0.7.7
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://leesoar.com/
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This is a very simple wrapper around libsodium masquerading as nacl.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{pypi_name}
This is a very simple wrapper around libsodium masquerading as nacl.

%files -n python3-%{pypi_name}
%{python3_sitelib}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16484 |21mr|python-pysol-cards-0.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pysol_cards

Name:		python-pysol-cards
Version:	0.10.2
Release:	1
Summary:	Deal PySol FC Cards
License:	MIT
Group:		Games/Cards
URL:		https://fc-solve.shlomifish.org/
Source0:	https://files.pythonhosted.org/packages/70/23/2d32ad1ad4106bf279a0d8c23a79c693989fc47d6feb3cca03d01ed0e136/pysol_cards-0.10.2.tar.gz

BuildRequires:	python3-devel
BuildRequires:	python3egg(pbr) >= 2.0
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildArch:	noarch

%description
The pysol-cards python module allows the python developer to generate the
initial deals of some PySol FC games.

#------------------------------------------------------------------------------

%package -n python3-pysol-cards
Summary:	%{summary}
Group:		Games/Cards

%description -n python3-pysol-cards
The pysol-cards python module allows the python developer to generate the
initial deals of some PySol FC games.

%files -n python3-pysol-cards
%license LICENSE
%doc README.rst doc/source/readme.rst
%{python3_sitelib}/pysol_cards
%{python3_sitelib}/pysol_cards-%{version}-py*.egg-info

#------------------------------------------------------------------------------

%prep
%autosetup -n pysol_cards-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
sed -i '/^#! \/usr\/bin\/env python$/d' pysol_cards/*.py


%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16485 |21mr|python-pystache-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	pystache

Name:		python-%{oname}
Version:	0.6.0
Release:	1
Summary:	Mustache in Python
Group:		Development/Python
License:	MIT
Url:		http://github.com/defunkt/%{oname}
#Source0:	https://files.pythonhosted.org/packages/source/p/%{oname}/%{oname}-%{version}.tar.gz
# Source with patch for python3 support, see https://github.com/defunkt/pystache/commit/d740bed97b157891d33f54514bba8af52eb55817.patch
Source0:	%{oname}-%{version}.tar.gz
BuildArch:	noarch

%description
Pystache is a Python implementation of Mustache.
Mustache is a framework-agnostic, logic-free templating system
inspired by ctemplate and et.
Like ctemplate, Mustache "emphasizes separating logic from presentation:
it is impossible to embed application logic in this template language."

#--------------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Mustache in Python
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{oname}
Pystache is a Python implementation of Mustache.
Mustache is a framework-agnostic, logic-free templating system
inspired by ctemplate and et.
Like ctemplate, Mustache "emphasizes separating logic from presentation:
it is impossible to embed application logic in this template language."

%files -n python3-%{oname}
%doc HISTORY.md LICENSE README.md TODO.md
%{_bindir}/%{oname}
%{_bindir}/%{oname}-test
%{py3_puresitedir}/%{oname}
%{py3_puresitedir}/%{oname}-%{version}-py*.egg-info

#--------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16486 |21mr|python-pystray-0.17.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Testsuite needs human interaction.
%bcond_with test

%global common_sum Provides system tray integration
%global common_desc This library allows you to create a system tray icon.

%global upname pystray


Name:		python-%{upname}
Version:	0.17.4
Release:	1
Summary:	%{common_sum}
Group:		Development/Python
License:	LGPLv3+
URL:		https://github.com/moses-palmer/%{upname}
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz

BuildArch:	noarch

%description
%{common_desc}


%package -n python3-%{upname}
Summary:	%{common_sum}

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pillow
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-six
BuildRequires:	python3-xlib

Requires:	python3-pillow
Requires:	python3-six
Requires:	python3-xlib

%{?python_provide:%python_provide python3-%{upname}}

%description -n python3-%{upname}
%{common_desc}


%package -n python3-%{upname}-doc
Summary:	Documentation-files for python3-%{upname}

BuildRequires:	fdupes
BuildRequires:	python3-sphinx

%description -n python3-%{upname}-doc
This package contains the Documentation-files for python3-%{upname}.


%prep
%autosetup -n %{upname}-%{version}

# Remove pre-built and bundled crap.
%{__rm} -fr *.egg*


%build
%py3_build
sphinx-build-3 docs docs/build-%{python3_version}/html
%fdupes -s docs/build-%{python3_version}
for f in .buildinfo .doctrees .inv ; do
	%{_bindir}/find docs/ -name "*${f}*" -print0 |			\
		%{_bindir}/xargs -0 %{__rm} -frv
done


%install
%py3_install

%if %{with test}
%check
%{__python3} setup.py test
%endif


%files -n python3-%{upname}
%doc COPYING* README.rst
%{python3_sitelib}/%{upname}
%{python3_sitelib}/%{upname}-%{version}-py%{python3_version}.egg-info

%files -n python3-%{upname}-doc
%doc CHANGES.rst docs/build-%{python3_version}/html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16487 |21mr|python-pysyncobj-0.3.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pysyncobj

Name:		python-%{pypi_name}
Version:	0.3.12
Release:	1
Summary:	A library for replicating your python class between multiple servers, based on raft protocol
Group:		Development/Python
License:	MIT
URL:		https://github.com/bakwc/PySyncObj
Source0:	%{pypi_source}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-wheel

BuildArch: noarch


%description
PySyncObj is a python library for building fault-tolerant distributed systems.
It provides the ability to replicate your application data between multiple
servers. It has following features:

* raft protocol for leader election and log replication
* Log compaction - it use fork for copy-on-write while serializing data on disk
* Dynamic membership changes - you can do it with syncobj_admin utility
  or directly from your code
* Zero downtime deploy - no need to stop cluster to update nodes
* In-memory and on-disk serialization - you can use in-memory mode for small
  data and on-disk for big one
* Encryption - you can set password and use it in external network
* Python2 and Python3 on linux, macos and windows - no dependencies required
  (only optional one, eg. cryptography)
* Configurable event loop - it can works in separate thread with it's own event
  loop - or you can call onTick function inside your own one
* Convenient interface - you can easily transform arbitrary class into a
  replicated one (see example below).

#--------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A library for replicating your python class between multiple servers, based on raft protocol
Group:		Development/Python

%description -n python3-%{pypi_name}
PySyncObj is a python library for building fault-tolerant distributed systems.
It provides the ability to replicate your application data between multiple
servers. It has following features:

* raft protocol for leader election and log replication
* Log compaction - it use fork for copy-on-write while serializing data on disk
* Dynamic membership changes - you can do it with syncobj_admin utility
  or directly from your code
* Zero downtime deploy - no need to stop cluster to update nodes
* In-memory and on-disk serialization - you can use in-memory mode for small
  data and on-disk for big one
* Encryption - you can set password and use it in external network
* Python2 and Python3 on linux, macos and windows - no dependencies required
  (only optional one, eg. cryptography)
* Configurable event loop - it can works in separate thread with it's own event
  loop - or you can call onTick function inside your own one
* Convenient interface - you can easily transform arbitrary class into a
  replicated one (see example below).

%files -n python3-%{pypi_name}
%doc *.md
%{_bindir}/*
%{python3_sitelib}/*
#--------------------------------------------------------
%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16488 |21mr|python-pytest-6.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	pytest

Summary:	Cross-project testing tool for Python
Name:		python-%{module}
Version:	6.2.4
Release:	2
License:	MIT
Group:		Development/Python
Url:		http://pytest.org
Source0:	https://files.pythonhosted.org/packages/5b/98/92bbda5f83ed995ef8953349ef30c77c934abcc251c42ab3d7787a40c49c/pytest-6.2.4.tar.gz
Patch0:		pytest-pluggy-version.patch
BuildRequires:	python3egg(attrs) >= 17.2.0
BuildRequires:	python3egg(pluggy) >= 0.12
BuildRequires:	python3egg(py) >= 1.5.0
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(more-itertools) >= 4.0.0
BuildRequires:	python3egg(wcwidth)
BuildRequires:	python3egg(toml)
BuildArch:	noarch

%description
The pytest framework makes it easy to write small tests, yet scales to support
complex functional testing for applications and libraries.

Features:
    - Detailed info on failing assert statements (no need to remember
       self.assert* names);
    - Auto-discovery of test modules and functions;
    - Modular fixtures for managing small or parametrized long-lived
       test resources;
    - Can run unittest (or trial), nose test suites out of the box;
    - Python 3.5+ and PyPy3;
    - Rich plugin architecture, with over 315+ external plugins and
       thriving community;

For full documentation, including installation, tutorials and PDF documents,
please see http://docs.pytest.org.

#----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Cross-project testing tool for Python
Group:		Development/Python
Requires:	python3egg(attrs) >= 17.0.0
Requires:	python3egg(pluggy) >= 0.5.0
Requires:	python3egg(py) >= 1.5.0
Requires:	python3egg(more-itertools) >= 4.0.0
Requires(post,preun):	update-alternatives

%description -n python3-%{module}
The pytest framework makes it easy to write small tests, yet scales to support
complex functional testing for applications and libraries.

Features:
    - Detailed info on failing assert statements (no need to remember
       self.assert* names);
    - Auto-discovery of test modules and functions;
    - Modular fixtures for managing small or parametrized long-lived
       test resources;
    - Can run unittest (or trial), nose test suites out of the box;
    - Python 3.5+ and PyPy3;
    - Rich plugin architecture, with over 315+ external plugins and
       thriving community;

For full documentation, including installation, tutorials and PDF documents,
please see http://docs.pytest.org.

%files -n python3-%{module}
#doc doc/en/_build/html
%{_bindir}/pytest-3
%{_bindir}/pytest-%{py3_ver}
%{_bindir}/py.test-%{py3_ver}
%{_bindir}/py.test-3
%{python3_sitelib}/*pytest*

%post
/usr/sbin/update-alternatives --install %{_bindir}/pytest pytest %{_bindir}/pytest-%{py3_ver} 10

%postun
[[ ! -f %{_bindir}/pytest-%{py3_ver} ]] && \
	/usr/sbin/update-alternatives --remove pytest %{_bindir}/pytest-%{py3_ver}|| :

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

# drop bundled egg-info
rm -r src/*.egg-info

%build
%py3_build

pushd doc/en
export PYTHONPATH=../../build/lib
#make html
rm -f _build/html/.buildinfo
popd

%install
%py3_install
mv %{buildroot}%{_bindir}/pytest %{buildroot}%{_bindir}/pytest-%{py3_ver}
mv %{buildroot}%{_bindir}/py.test %{buildroot}%{_bindir}/py.test-%{py3_ver}

pushd %{buildroot}%{_bindir}
ln -s pytest-%{py3_ver} pytest-3
ln -s py.test-%{py3_ver} py.test-3
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16489 |21mr|python-pytest-asyncio-0.15.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-asyncio
%global srcname pytest_asyncio
%global project_owner pytest-dev
%global github_name pytest-asyncio

%bcond_with  tests

Name:		python-%{pypi_name}
Version:	0.15.1
Release:	1
Summary:	Pytest support for asyncio
Group:		Development/Python
License:	ASL 2.0
URL:		https://pypi.python.org/pypi/%{pypi_name}
Source0:	https://github.com/%{project_owner}/%{github_name}/archive/v%{version}/%{github_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
%if %{with tests}
BuildRequires:	python3-pytest >= 5.4
BuildRequires:	python3-coverage
BuildRequires:	python3-async-generator >= 1.3
BuildRequires:	python3-hypothesis >= 5.7.1
%endif
BuildArch:	noarch

%description
pytest-asyncio is an Apache2 licensed library, written in Python, for testing
asyncio code with pytest.

asyncio code is usually written in the form of coroutines, which makes it
slightly more difficult to test using normal testing tools. pytest-asyncio
provides useful fixtures and markers to make testing easier.

#----------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Pytest support for asyncio
Group:		Development/Python

%description -n python3-%{pypi_name}
pytest-asyncio is an Apache2 licensed library, written in Python, for testing
asyncio code with pytest.

asyncio code is usually written in the form of coroutines, which makes it
slightly more difficult to test using normal testing tools. pytest-asyncio
provides useful fixtures and markers to make testing easier.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/%{srcname}/

#-------------------------------------------------------------------------
%prep
%setup -qn %{github_name}-%{version}

# Don't treat all warnings as errors, there are DeprecationWarnings on 3.8
sed -i '/filterwarnings = error/d' setup.cfg

%build
%py3_build


%install
%py3_install


%if %{with tests}
%check
%py3_test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16490 |21mr|python-pytest-cov-2.12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pytest-cov

Name:           python-%{srcname}
Version:	2.12.1
Release:	1
Summary:        Pytest plugin for coverage reporting
Group:          Development/Python

License:        MIT
URL:            https://pypi.python.org/pypi/pytest-cov
Source0:	https://files.pythonhosted.org/packages/63/3a/747e953051fd6eb5fb297907a825aad43d94c556d3b9938fc21f3172879f/pytest-cov-2.12.1.tar.gz
BuildArch:      noarch

%description
Py.test plugin for coverage reporting with support for both centralised and
distributed testing, including subprocesse and multiprocessing.

%package -n python3-%{srcname}
Summary:        Pytest plugin for coverage reporting
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3dist(funcsigs)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(cov-core)

%description -n python3-%{srcname}
Py.test plugin for coverage reporting with support for both centralised and
distributed testing, including subprocesses and multiprocessing.

%prep
%setup -q -n %{srcname}-%{version}

# drop bundled egg-info
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{srcname}
%doc PKG-INFO CHANGELOG.rst README.rst
%doc LICENSE
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16491 |21mr|python-pytest-cython-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-cython

Name:           python-%{pypi_name}
Version:        0.2.0
Release:        1
Summary:        A plugin for testing Cython extension modules
Group:          Development/Python
License:        MIT
URL:            https://github.com/lgpage/pytest-cython
Source0:        https://files.pythonhosted.org/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(pytest) >= 2.7.3
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(sphinx)

%description
This Pytest plugin allows for the doctesting of C extension modules for Python,
specifically created through Cython.

#----------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

Requires:       python3dist(pytest) >= 2.7.3
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
This Pytest plugin allows for the doctesting of C extension modules for Python,
specifically created through Cython.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/pytest_cython
%{python3_sitelib}/pytest_cython-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16492 |21mr|python-pytest-forked-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pytest-forked

Name:           python-%{pypi_name}
Version:        1.4.0
Release:        2
Summary:        Run tests in isolated forked subprocesses
Group:          Development/Python
License:        MIT
URL:            https://github.com/pytest-dev/%{pypi_name}
Source:         https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(py)
BuildRequires:  python3egg(pytest)

BuildArch:      noarch

%description
Run tests in isolated forked subprocesses.

#-------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Run tests in isolated forked subprocesses
Group:          Development/Python

%description -n python3-%{pypi_name}
Run tests in isolated forked subprocesses.

%files -n python3-%{pypi_name}
%doc CHANGELOG.rst README.rst LICENSE
%{py3_puresitedir}/pytest_forked
%{py3_puresitedir}/pytest_forked-%{version}-py*.egg-info
#---------------------------------------------------------
%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16493 |21mr|python-pytest-mock-3.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-mock
%global file_name pytest_mock
%global desc This plugin installs a mocker fixture which is a thin-wrapper around the \
patching API provided by the mock package, but with the benefit of not having \
to worry about undoing patches at the end of a test.

Name:		python-%{pypi_name}
Version:	3.6.1
Release:	1
Summary:	Thin-wrapper around the mock package for easier use with py.test
Group:		Development/Python
License:	MIT
URL:		https://github.com/pytest-dev/pytest-mock/
Source0:	https://files.pythonhosted.org/packages/b3/08/b131e1b5c628a7d46c9b8d676a86a8d235bced79b9d90845500e39df81b9/pytest-mock-3.6.1.tar.gz
BuildArch:	noarch

%description
%{desc}

#--------------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-pytest
BuildRequires:	python3-setuptools_scm
BuildRequires:	python3-pytest-asyncio

%description -n python3-%{pypi_name}
%{desc}

%files -n python3-%{pypi_name}
%doc CHANGELOG.rst README.rst
%license LICENSE
%{python3_sitelib}/%{file_name}/
%{python3_sitelib}/%{file_name}-%{version}-py%{python3_version}.egg-info/

#--------------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1
rm -rf *.egg-info
# Correct end of line encoding for README
sed -i 's/\r$//' README.rst

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{python3_sitelib} pytest-%{python3_version} -v tests \
  -k "not test_standalone_mock and not test_detailed_introspection and not test_detailed_introspection \
  and not test_assert_called_args_with_introspection and not test_assert_called_kwargs_with_introspection"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16494 |21mr|python-pytest-multihost-3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define module	pytest-multihost

Summary:	Utility for writing multi-host tests for pytest
Name:		python-%{module}
Version:	3.4
Release:	2
License:	GPLv3
Group:		Development/Python
Url:		https://pagure.io/python-pytest-multihost
Source0:	https://pagure.io/python-pytest-multihost/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
A pytest plugin for multi-host testing.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Utility for writing multi-host tests for pytest
Group:		Development/Python

%description -n python3-%{module}
A pytest plugin for multi-host testing.

%files -n python3-%{module}
%doc COPYING README.rst
%{python3_sitelib}/pytest_multihost
%{python3_sitelib}/pytest_multihost-%{version}-*

#------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}
# skip tests which require SSH connection
sed -iE '/commands = python.* -m pytest/s/$/ -m "not needs_ssh"/g' tox.ini

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16495 |21mr|python-pytest-randomly-3.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytest-randomly

Name:           python-%{pypi_name}
Version:        3.11.0
Release:        1
Summary:        Pytest plugin to randomly order tests and control random
Group:          Development/Python
License:        BSD
URL:            https://pypi.org/project/pytest-randomly
Source0:        %{pypi_source}
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
Pytest plugin to randomly order tests and control random.seed.

#----------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

Requires:       python3dist(pytest)
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
Pytest plugin to randomly order tests and control random.seed.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/pytest_randomly/compat.py
%{python3_sitelib}/pytest_randomly/__init__.py
%{python3_sitelib}/pytest_randomly/py.typed
%{python3_sitelib}/pytest_randomly/__pycache__/*
%{python3_sitelib}/pytest_randomly-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf src/*.egg-info/

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16496 |21mr|python-pytest-rerunfailures-10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pytest-rerunfailures

Name:           python-%{srcname}
Version:        10.2
Release:        1
Summary:        A py.test plugin that re-runs failed tests to eliminate flakey failures
Group:          Development/Python
License:        MPLv2.0
URL:            https://github.com/pytest-dev/%{srcname}
Source0:        https://github.com/pytest-dev/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz

BuildArch:      noarch

%description
pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate
intermittent failures.

#------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-pytest >= 5.3
BuildRequires:  python3-setuptools >= 40.0

%description -n python3-%{srcname}
pytest-rerunfailures is a plugin for py.test that re-runs tests to eliminate
intermittent failures.

%files -n python3-%{srcname}
%license LICENSE
%doc CHANGES.rst README.rst
%{python3_sitelib}/pytest_rerunfailures.py
%{python3_sitelib}/__pycache__/pytest_rerunfailures.cpython-*
%{python3_sitelib}/pytest_rerunfailures-%{version}-py*.egg-info/

#--------------------------------------------------------------------------
%prep
%autosetup -n %{srcname}-%{version}


%build
%py3_build


%install
%py3_install


%check
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -m pytest test_pytest_rerunfailures.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16497 |21mr|python-pytest-runner-5.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modulename pytest-runner
%global _modulename pytest_runner

Name:           python-%{modulename}
Version:	5.3.1
Release:	1
Summary:        Invoke py.test as distutils command with dependency resolution
Group:          Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/%{modulename}
# setuptools-scm requires a pypi tarball and doesn't like github tarball
Source0:	https://files.pythonhosted.org/packages/2a/04/c3223812b3427ffa95110c5781eae7fe8bc3e9e1fe4e2328bee17b9e5820/pytest-runner-5.3.1.tar.gz
BuildArch: noarch

%description
Setup scripts can use pytest-runner to add setup.py test support for pytest
runner.

%package -n python3-%{modulename}
Summary:        %{summary}
Requires:       python3-pytest
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-setuptools_scm
BuildRequires:  python3-pytest

%description -n python3-%{modulename}
Setup scripts can use pytest-runner to add setup.py test support for pytest
runner.

%prep
%setup -qn %{modulename}-%{version}

# drop bundled egg-info
rm -rf pytest_runner.egg-info/

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{modulename}
%doc README.rst
%doc LICENSE
%{py3_puresitedir}/ptr.py*
%{py3_puresitedir}/%{_modulename}-%{version}-py%{python3_version}.egg-info/
%{py3_puresitedir}/__pycache__/ptr.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16498 |21mr|python-pytest-tornado-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pytest-tornado
%global srcname_ pytest_tornado

Name:		python-%{srcname}
Version:	0.8.1
Release:	1
Summary:	Py.test plugin for testing of asynchronous tornado applications
Group:		Development/Python
License:	ASL 2.0
URL:		https://pypi.python.org/pypi/%{srcname}
Source0:	https://github.com/eugeniy/%{srcname}/archive/v%{version}/%{srcname}-%{version}.tar.gz

BuildArch:	noarch

%global _description \
A py.test plugin providing fixtures and markers to simplify testing of \
asynchronous tornado applications.

%description %{_description}

#--------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-pytest >= 3.6
BuildRequires:	python3-setuptools
BuildRequires:	python3-tornado >= 4.1

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname_}
%{python3_sitelib}/%{srcname_}-%{version}-py%{python3_version}.egg-info

#--------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}


%build
%py3_build


%install
%py3_install


%check
PYTHONPATH="%{buildroot}%{python3_sitelib}" PYTHONDONTWRITEBYTECODE=1 \
    py.test-%{python3_version}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16499 |21mr|python-pytest-xdist-2.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pytest-xdist

Name:           python-%{pypi_name}
Version:        2.5.0
Release:        2
Summary:        Pytest xdist plugin
License:        MIT
Group:          Development/Python
URL:            https://github.com/pytest-dev/%{pypi_name}
Source:         https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(execnet)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(pytest-forked)
BuildRequires:  python3egg(filelock)
BuildRequires:  python3egg(psutil)
BuildRequires:  python3egg(py)
BuildRequires:  python3egg(pexpect)

Provides:       python3-%{pypi_name} = %{EVRD}

BuildArch:      noarch

%description
pytest xdist plugin for distributed testing and loop-on-failing modes.

%files
%doc *.rst
%license LICENSE
%{py3_puresitedir}/pytest_xdist-%{version}-py?.?.egg-info
%{py3_puresitedir}/xdist/
#------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf src/*.egg-info

# wrong-file-end-of-line-encoding
sed -i 's/\r$//' README.rst

%build
%py3_build

%install
%py3_install


%check
export PYTHONPATH=%{buildroot}%{py3_puresitedir}
pytest-3 -v

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16500 |21mr|python-pytimeparse-1.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name pytimeparse

Summary:	Time expression parser
Name:		python-%{pypi_name}
Version:	1.1.8
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/wroberts/%{pypi_name}
Source0:	https://github.com/wroberts/pytimeparse/releases/download/%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(nose)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
A small Python module to parse various kinds of time expressions.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Time expression parser
Group:		Development/Python

%description -n python3-%{pypi_name}
A small Python module to parse various kinds of time expressions.

This is the Python 3 version of the package.

%files -n python3-%{pypi_name}
%license LICENSE.rst
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Remove shebangs from Python scripts
find . -name '*.py' -exec sed -i '1 { /^#!/ d }' {} \+

%build
%py3_build

%install
%py3_install

%check
%__python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16501 |21mr|python-pytools-2021.2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pytools

Summary:	A collection of tools for Python
Name:		python-%{module}
Version:	2021.2.8
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://mathema.tician.de/software/pytools
Source0:	https://files.pythonhosted.org/packages/d9/75/5aa0f6275da839b756e88107ea347d486877d69dd98840c824117d7d6c93/pytools-2021.2.8.tar.gz
BuildArch:	noarch
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	python3egg(appdirs) >= 1.4.0 
Requires:	python3egg(decorator) >= 3.2.0 
Requires:	python3egg(six)


%description
Pytools is a big bag of things that are "missing" from the Python
standard library. This is mainly a dependency of my other software
packages, and is probably of little interest to you unless you use
those. If you're curious nonetheless, here's what's on offer:

* A ton of small tool functions such as len_iterable, argmin, tuple
  generation, permutation generation, ASCII table pretty printing,
  GvR's mokeypatch_xxx() hack, the elusive flatten, and much more.
* Michele Simionato's decorator module.
* A time-series logging module, pytools.log.
* Batch job submission, pytools.batchjob.
* A lexer, pytools.lex.

#----------------------------------------------------------------------------
%package -n python3-%{module}
Summary:	A collection of tools for Python
Group:		Development/Python

%description -n python3-%{module}
Pytools is a big bag of things that are "missing" from the Python
standard library. This is mainly a dependency of my other software
packages, and is probably of little interest to you unless you use
those. If you're curious nonetheless, here's what's on offer:

* A ton of small tool functions such as len_iterable, argmin, tuple
  generation, permutation generation, ASCII table pretty printing,
  GvR's mokeypatch_xxx() hack, the elusive flatten, and much more.
* Michele Simionato's decorator module.
* A time-series logging module, pytools.log.
* Batch job submission, pytools.batchjob.
* A lexer, pytools.lex.

%files -n python3-%{module}
%doc README.rst
%dir %{python3_sitelib}/pytools/
%{python3_sitelib}/pytools/*
%{python3_sitelib}/pytools-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build

%install
%__python3 setup.py install --root=%{buildroot}  

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16502 |21mr|python-pytz-2022.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	pytz

Summary:	World timezone definitions for Python

Name:		python-%{pypi_name}
Version:	2022.4
Release:	1
Source0:	%{pypi_source}
License:	MIT
Group:		Development/Python
Url:		http://pytz.sourceforge.net/
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
pytz brings the Olson tz database into Python. This library allows
accurate and cross platform timezone calculations using Python 2.3 or
higher. It also solves the issue of ambiguous times at the end of
daylight savings, which you can read more about in the Python Library
Reference (datetime.tzinfo).

Amost all (over 540) of the Olson timezones are supported.

%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        World timezone definitions for Python3
Group:          Development/Python
Requires:       python2

%description -n python2-%{pypi_name}
pytz brings the Olson tz database into Python. This library allows
accurate and cross platform timezone calculations using Python 2.3 or
higher. It also solves the issue of ambiguous times at the end of
daylight savings, which you can read more about in the Python Library
Reference (datetime.tzinfo).

%package -n python3-%{pypi_name}
Summary:        World timezone definitions for Python3
Group:          Development/Python
Requires:       python3

%description -n python3-%{pypi_name}
pytz brings the Olson tz database into Python. This library allows
accurate and cross platform timezone calculations using Python 2.3 or
higher. It also solves the issue of ambiguous times at the end of
daylight savings, which you can read more about in the Python Library
Reference (datetime.tzinfo).

Amost all (over 540) of the Olson timezones are supported.

%prep
%setup -q -c

mv %{pypi_name}-%{version} python2
cp -r python2 python3

%install
pushd python2
PYTHONDONTWRITEBYTECODE= %__python2 setup.py install --root=%{buildroot}
popd

pushd python3
PYTHONDONTWRITEBYTECODE= %__python3 setup.py install --root=%{buildroot}
popd

%files -n python2-%{pypi_name}
%doc python2/*.txt
%{py2_puresitedir}/pytz
%{py2_puresitedir}/%{pypi_name}-%{version}-*.egg-info

%files -n python3-%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-*.egg-info
%{py3_puresitedir}/pytz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16503 |21mr|python-pyusb-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name pyusb
%define opypi_name usb

Summary:	Python bindings for libusb
Name:		python-%{pypi_name}
Version:	1.2.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://pyusb.sourceforge.net/
Source0:	https://files.pythonhosted.org/packages/d9/6e/433a5614132576289b8643fe598dd5d51b16e130fd591564be952e15bb45/pyusb-1.2.1.tar.gz
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
Conflicts:	pyusb < 1.0.0-2a1
Obsoletes:	pyusb < 1.0.0-2a1
Provides:	pyusb = %{EVRD}
BuildArch:	noarch

%description
PyUSB provides easy USB access to python. The pypi_name contains classes and
methods to support most USB operations.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python bindings for libusb
Group:		Development/Python

%description -n python3-%{pypi_name}
PyUSB provides easy USB access to python. The pypi_name contains classes and
methods to support most USB operations.

%files -n python3-%{pypi_name}
%dir %{python3_sitelib}/%{opypi_name}/
%{python3_sitelib}/%{opypi_name}/*
%{python3_sitelib}/%{pypi_name}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build

%install
PYTHONDONTWRITEBYTECODE= %__python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16504 |21mr|python-pyxdg-0.27-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname pyxdg
%define shortname xdg

Summary:        Python library to access freedesktop.org standards
Name:           python-pyxdg
Version:        0.27
Release:        4
License:        LGPLv2+
Group:          Development/Python
Url:            http://www.freedesktop.org/Software/pyxdg
Source0:        %{pypi_source %{oname} %{version}}
BuildRequires:  pkgconfig(python2)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  pythonegg(setuptools)
BuildArch:      noarch
%rename         pyxdg

%description
PyXDG is a python library to access freedesktop.org standards.
Currently supported are:
  * Base Directory Specification Version 0.6
  * Menu Specification Version 1.0
  * Desktop Entry Specification Version 1.0
  * Icon Theme Specification Version 0.8
  * Recent File Spec 0.2
  * Shared-MIME-Database Specification 0.13

#----------------------------------------------------------------------------

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:  Python 2 library to access freedesktop.org standards
Group:    Development/Python

%description -n python2-%{oname}
PyXDG is a python 2 library to access freedesktop.org standards.
Currently supported are:
  * Base Directory Specification Version 0.6
  * Menu Specification Version 1.0
  * Desktop Entry Specification Version 1.0
  * Icon Theme Specification Version 0.8
  * Recent File Spec 0.2
  * Shared-MIME-Database Specification 0.13

%files -n python2-%{oname}
%doc python2/AUTHORS python2/COPYING python2/ChangeLog python2/README python2/TODO
%dir %{python2_sitelib}/%{shortname}
%{python2_sitelib}/%{shortname}/*
%{python2_sitelib}/%{oname}-*-py%{python2_version}.egg-info/

#----------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:    Python 3 library to access freedesktop.org standards
Group:        Development/Python

%description -n python3-%{oname}
PyXDG is a python 3 library to access freedesktop.org standards.
Currently supported are:
  * Base Directory Specification Version 0.6
  * Menu Specification Version 1.0
  * Desktop Entry Specification Version 1.0
  * Icon Theme Specification Version 0.8
  * Recent File Spec 0.2
  * Shared-MIME-Database Specification 0.13

%files -n python3-%{oname}
%doc python3/AUTHORS python3/COPYING python3/ChangeLog python3/README python3/TODO
%dir %{python3_sitelib}/%{shortname}
%{python3_sitelib}/%{shortname}/*
%{python3_sitelib}/%{oname}-*-py%{python3_version}.egg-info/

#----------------------------------------------------------------------------

%prep
%setup -qcn %{oname}-%{version}
mv %{oname}-%{version} python2
cp -a python2 python3

%build
pushd python2
%{py2_build}
popd

pushd python3
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%{py3_build}
popd

%install
pushd python2
%{py2_install}
popd

pushd python3
%{py3_install}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16505 |21mr|python-pyzabbix-0.7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname pyzabbix
%global commit aed72dfe30cd5f8262013af73356a76924cbeb83

Name:		python-pyzabbix
Version:	0.7.4
Release:	1
Summary:	PyZabbix is a Python module for working with the Zabbix API
Group:		Development/Python
# license is in README.markdown
License:	LGPLv2+
URL:		https://github.com/lukecyca/pyzabbix
Source0:	https://github.com/lukecyca/pyzabbix/archive/%{commit}/%{srcname}-%{commit}.tar.gz#/%{srcname}-%{commit}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-httpretty
BuildRequires:	python3-requests
BuildRequires:	python3-setuptools
BuildRequires:	python3-nose
BuildArch:	noarch


%description
%{summary}.

#---------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	PyZabbix is a Python module for working with the Zabbix API
Group:		Development/Python
Requires:	python3-requests


%description -n python3-%{srcname}
%{summary}.

%files -n python3-%{srcname}
%doc README.markdown examples/
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{commit}
sed -i 's/"httpretty<0.8.7",/"httpretty",/' setup.py

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16506 |21mr|python-pyzmq-22.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module pyzmq

Summary:	Python bindings for zeromq
Name:		python-%{module}
Version:	22.2.1
Release:	2
License:	LGPLv3+ and ASL 2.0 and BSD
Group:		Development/Python
Url:		http://zguide.zeromq.org/py:all
Source0:	https://github.com/zeromq/pyzmq/archive/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(libzmq)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-nose
BuildRequires:	python3-tornado
BuildRequires:	python3egg(cython)
BuildRequires:	python3-backports-abc

%description
This package contains Python bindings for zeromq, a lightweight and
fast messaging implementation.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Software library for fast, message-based applications
Group:		Development/Python
Obsoletes:	python3-zmq <= 19.0.1
Conflicts:	python3-zmq <= 19.0.1

%description -n python3-%{module}
The 0MQ lightweight messaging kernel is a library which extends the
standard socket interfaces with features traditionally provided by
specialized messaging middle-ware products. 0MQ sockets provide an
abstraction of asynchronous message queues, multiple messaging
patterns, message filtering (subscriptions), seamless access to
multiple transport protocols and more.

This package contains the python 3 bindings.

%files -n python3-%{module}
%{py3_platsitedir}/%{module}-*.egg-info
%{py3_platsitedir}/zmq

#------------------------------------------------------------------

%prep
%setup -q -c

pushd %{module}-%{version}
# forcibly regenerate the Cython-generated .c files:
find zmq -name "*.c" -delete

# remove bundled libraries
rm -rf bundled
for lib in zmq/eventloop/*.py; do
	sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
	touch -r $lib $lib.new &&
	mv $lib.new $lib
done

# remove excecutable bits
chmod -x examples/pubsub/topics_pub.py
chmod -x examples/pubsub/topics_sub.py
popd

%build
pushd %{module}-%{version}
%py3_build
popd

%install
pushd %{module}-%{version}
%py3_install
popd

%check
rm -f python3/zmq/__*
rm -rf %{buildroot}%{py3_platsitedir}/zmq/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16507 |21mr|python-qrcode-7.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name qrcode

Summary:	Python QR Code image generator
Name:		python-%{pypi_name}
Version:	7.3.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/lincolnloop/python-qrcode
Source0:	https://github.com/lincolnloop/python-qrcode/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	python3egg(pillow)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
This module uses the Python Imaging Library (PIL) to allow for the
generation of QR Codes.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python QR Code image generator
Group:		Development/Python
Requires:	python3egg(pillow)
Requires:	python3-%{pypi_name}-core = %{EVRD}

%description -n python3-%{pypi_name}
This module uses the Python3 Imaging Library (PIL) to allow for the
generation of QR Codes

%files -n python3-%{pypi_name}
%{_bindir}/qr
%{_mandir}/man1/qr.1*
%{python3_sitelib}/%{pypi_name}/image/svg.py*
%{python3_sitelib}/%{pypi_name}/image/pil.py*

#----------------------------------------------------------------------------


%package -n python3-%{pypi_name}-core
Summary:	Python3 QR Code image generator (core library)
Group:		Development/Python
Requires:	python3egg(six)

%description -n python3-%{pypi_name}-core
Core Python3 module for QR code generation. Does not contain image rendering

%files -n python3-%{pypi_name}-core
%doc LICENSE README.rst CHANGES.rst
%dir %{python3_sitelib}/%{pypi_name}/
%dir %{python3_sitelib}/%{pypi_name}/image
%{python3_sitelib}/%{pypi_name}*.egg-info
%{python3_sitelib}/%{pypi_name}/*.py*
%{python3_sitelib}/%{pypi_name}/__pycache__/*
%{python3_sitelib}/%{pypi_name}/image/__init__.py*
%{python3_sitelib}/%{pypi_name}/image/base.py*
%{python3_sitelib}/%{pypi_name}/image/__pycache__/*
%{python3_sitelib}/%{pypi_name}/image/styles
%{python3_sitelib}/%{pypi_name}/image/styledpil.py
#----------------------------------------------------------------------------


%prep
%autosetup -p1 -n %{name}-%{version}
# The pure plugin requires pymaging which is not packaged in Fedora.
rm qrcode/image/pure.py*

%build
%py3_build

%install
%py3_install
rm -Rf %{buildroot}%{python3_sitelib}/%{pypi_name}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16508 |21mr|python-qt5-5.15.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}
%bcond_without	webkit

Summary:	Set of Python 3 bindings for the Qt application framework
Name:		python-qt5
Version:	5.15.7
Epoch:		3
Release:	2
License:	GPLv3
Group:		Development/KDE and Qt
Url:		http://www.riverbankcomputing.co.uk/software/pyqt/intro
Source0:	https://pypi.io/packages/source/P/PyQt5/PyQt5-%{version}.tar.gz

BuildRequires:	python3-dbus
BuildRequires:	python3-sip
BuildRequires:	qmake5
BuildRequires:	qt5-macros
BuildRequires:	sed
BuildRequires:	python3-qt-builder
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(dbus-python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Bluetooth)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Location)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5MultimediaWidgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5RemoteObjects)
BuildRequires:	pkgconfig(Qt5Nfc)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sensors)
BuildRequires:	pkgconfig(Qt5TextToSpeech)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
%if %{with webkit}
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
%endif
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(Qt5X11Extras)

%description
PyQt is a set of Python bindings for the Qt application framework.

#----------------------------------------------------------------------------

%package -n python3-qt5
Summary:	Set of Python3 bindings for the Qt application framework
Requires:	python3-qt5-core = %{EVRD}
Requires:	python3-qt5-dbus = %{EVRD}
Requires:	python3-qt5-bluetooth = %{EVRD}
Requires:	python3-qt5-designer = %{EVRD}
Requires:	python3-qt5-gui = %{EVRD}
Requires:	python3-qt5-location = %{EVRD}
Requires:	python3-qt5-multimedia = %{EVRD}
Requires:	python3-qt5-multimediawidgets = %{EVRD}
Requires:	python3-qt5-network = %{EVRD}
Requires:	python3-qt5-nfc = %{EVRD}
Requires:	python3-qt5-opengl = %{EVRD}
Requires:	python3-qt5-positioning = %{EVRD}
Requires:	python3-qt5-printsupport = %{EVRD}
Requires:	python3-qt5-qml = %{EVRD}
Requires:	python3-qt5-quick = %{EVRD}
Requires:	python3-qt5-quickwidgets = %{EVRD}
Requires:	python3-qt5-sensors = %{EVRD}
Requires:	python3-qt5-serialport = %{EVRD}
Requires:	python3-qt5-sql = %{EVRD}
Requires:	python3-qt5-svg = %{EVRD}
Requires:	python3-qt5-test = %{EVRD}
Requires:	python3-qt5-webchannel = %{EVRD}
%if %{with webkit}
Requires:	python3-qt5-webkit = %{EVRD}
Requires:	python3-qt5-webkitwidgets = %{EVRD}
%endif
Requires:	python3-qt5-websockets = %{EVRD}
Requires:	python3-qt5-widgets = %{EVRD}
Requires:	python3-qt5-xml = %{EVRD}
Requires:	python3-qt5-xmlpatterns = %{EVRD}
Requires:	python3-qt5-x11extras = %{EVRD}
Requires:	python3-qt5-texttospeech = %{EVRD}
Provides:	PyQt5 = %{EVRD}

%description -n python3-qt5
PyQt is a set of Python bindings for the Qt application framework.

%files -n python3-qt5
%dir %{python3_sitearch}/PyQt5-%{version}.dist-info
%{python3_sitearch}/PyQt5-%{version}.dist-info/*

#----------------------------------------------------------------------------

%package -n python3-qt5-core
Summary:	PyQt 5 core
Group:		Development/KDE and Qt
Requires:	python3-sip
Requires:	python3-sip-PyQt5

%description -n python3-qt5-core
PyQt 5 core.

%files -n python3-qt5-core
%dir %{python3_sitearch}/PyQt5
%{python3_sitearch}/PyQt5/uic
%{python3_sitearch}/PyQt5/__init__.py*
%{python3_sitearch}/PyQt5/pylupdate*
%{python3_sitearch}/PyQt5/pyrcc*
%{python3_sitearch}/PyQt5/__pycache__/
%{python3_sitearch}/PyQt5/Qt.*
%{python3_sitearch}/PyQt5/QtCore.*
%{python3_sitearch}/dbus/*
%{python3_sitearch}/PyQt5/bindings/QtCore

#----------------------------------------------------------------------------

%package -n python3-qt5-qsci_api
Summary:	PyQt 5 QScintilla API file
Group:		Development/KDE and Qt
Conflicts:	python3-qt5-qsci_api

%description -n python3-qt5-qsci_api
PyQt 5 QScintilla API file

%files -n python3-qt5-qsci_api
%{_qt5_datadir}/qsci/PyQt5.api

#----------------------------------------------------------------------------

%package -n python3-qt5-dbus
Summary:	PyQt 5 dbus
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-dbus
PyQt 5 dbus.

%files -n python3-qt5-dbus
%{python3_sitearch}/PyQt5/QtDBus.*
%{python3_sitearch}/PyQt5/bindings/QtDBus

%package -n python3-qt5-texttospeech
Summary:	PyQt 5 dbus
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-texttospeech
PyQt 5 text to speech module.

%files -n python3-qt5-texttospeech
%{python3_sitearch}/PyQt5/QtTextToSpeech.*
%{python3_sitearch}/PyQt5/bindings/QtTextToSpeech

#------------------------------------------------------------

%package -n    python3-qt5-remoteobjects
Summary:       Python 3 bindings for PyQt 5 remoteobjects
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-remoteobjects
Python 3 bindings for PyQt 5 remoteobjects.

%files -n python3-qt5-remoteobjects
%{python3_sitearch}/PyQt5/QtRemoteObjects.*
%{python3_sitearch}/PyQt5/bindings/QtRemoteObjects

#----------------------------------------------------------------------------

%package -n python3-qt5-designer
Summary:	PyQt 5 designer
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-designer
PyQt 5 designer.

%files -n python3-qt5-designer
%{python3_sitearch}/PyQt5/QtDesigner.*
%{python3_sitearch}/PyQt5/bindings/QtDesigner

#----------------------------------------------------------------------------

%package -n python3-qt5-bluetooth
Summary:	PyQt 5 bluetooth
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-bluetooth
PyQt 5 bluetooth.

%files -n python3-qt5-bluetooth
%{python3_sitearch}/PyQt5/bindings/QtBluetooth
%{python3_sitearch}/PyQt5/QtBluetooth.*

#----------------------------------------------------------------------------

%package -n python3-qt5-gui
Summary:	PyQt 5 gui
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-gui
PyQt 5 gui.

%files -n python3-qt5-gui
%{python3_sitearch}/PyQt5/QtGui.*
%{python3_sitearch}/PyQt5/_QOpenGLFunctions_2_0.*
%{python3_sitearch}/PyQt5/_QOpenGLFunctions_2_1.*
%{python3_sitearch}/PyQt5/_QOpenGLFunctions_4_1_Core.*
%{python3_sitearch}/PyQt5/bindings/QtGui

#----------------------------------------------------------------------------

%package -n python3-qt5-help
Summary:	PyQt 5 help
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-help
PyQt 5 help.

%files -n python3-qt5-help
%{python3_sitearch}/PyQt5/QtHelp.*
%{python3_sitearch}/PyQt5/bindings/QtHelp

#----------------------------------------------------------------------------

%package -n python3-qt5-location
Summary:	PyQt 5 location
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-location
PyQt 5 location.

%files -n python3-qt5-location
%{python3_sitearch}/PyQt5/QtLocation.*
%{python3_sitearch}/PyQt5/bindings/QtLocation

#----------------------------------------------------------------------------

%package -n python3-qt5-multimedia
Summary:	PyQt 5 multimedia
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-multimedia
PyQt 5 multimedia.

%files -n python3-qt5-multimedia
%{python3_sitearch}/PyQt5/QtMultimedia.*
%{python3_sitearch}/PyQt5/bindings/QtMultimedia

#----------------------------------------------------------------------------

%package -n python3-qt5-multimediawidgets
Summary:	PyQt 5 multimediawidgets
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-multimediawidgets
PyQt 5 multimediawidgets.

%files -n python3-qt5-multimediawidgets
%{python3_sitearch}/PyQt5/QtMultimediaWidgets.*
%{python3_sitearch}/PyQt5/bindings/QtMultimediaWidgets

#----------------------------------------------------------------------------

%package -n python3-qt5-network
Summary:	PyQt 5 network
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-network
PyQt 5 network.

%files -n python3-qt5-network
%{python3_sitearch}/PyQt5/QtNetwork.*
%{python3_sitearch}/PyQt5/bindings/QtNetwork

#----------------------------------------------------------------------------

%package -n python3-qt5-nfc
Summary:	PyQt 5 NFC
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-nfc
PyQt 5 NFC.

%files -n python3-qt5-nfc
%{python3_sitearch}/PyQt5/QtNfc.*
%{python3_sitearch}/PyQt5/bindings/QtNfc

#----------------------------------------------------------------------------

%package -n python3-qt5-opengl
Summary:	PyQt 5 opengl
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-opengl
PyQt 5 opengl.

%files -n python3-qt5-opengl
%{python3_sitearch}/PyQt5/QtOpenGL.*
%{python3_sitearch}/PyQt5/bindings/QtOpenGL

#----------------------------------------------------------------------------

%package -n python3-qt5-positioning
Summary:	PyQt 5 positioning
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-positioning
PyQt 5 positioning.

%files -n python3-qt5-positioning
%{python3_sitearch}/PyQt5/QtPositioning.*
%{python3_sitearch}/PyQt5/bindings/QtPositioning

#----------------------------------------------------------------------------

%package -n python3-qt5-printsupport
Summary:	PyQt 5 printsupport
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-printsupport
PyQt 5 printsupport.

%files -n python3-qt5-printsupport
%{python3_sitearch}/PyQt5/QtPrintSupport.*
%{python3_sitearch}/PyQt5/bindings/QtPrintSupport

#----------------------------------------------------------------------------

%package -n python3-qt5-qml
Summary:	PyQt 5 qml
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-qml
PyQt 5 qml.

%files -n python3-qt5-qml
%{python3_sitearch}/PyQt5/QtQml.*
%{_qt5_plugindir}/PyQt5/libpyqt5qmlplugin.so
%{python3_sitearch}/PyQt5/bindings/QtQml

#----------------------------------------------------------------------------

%package -n python3-qt5-quick
Summary:	PyQt 5 quick
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-quick
PyQt 5 quick.

%files -n python3-qt5-quick
%{python3_sitearch}/PyQt5/QtQuick.*
%{python3_sitearch}/PyQt5/bindings/QtQuick

#----------------------------------------------------------------------------

%package -n python3-qt5-quickwidgets
Summary:	PyQt 5 quickwidgets
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-quickwidgets
PyQt 5 quickwidgets.

%files -n python3-qt5-quickwidgets
%{python3_sitearch}/PyQt5/QtQuickWidgets.*
%{python3_sitearch}/PyQt5/bindings/QtQuickWidgets

#----------------------------------------------------------------------------

%package -n python3-qt5-sensors
Summary:	PyQt 5 sensors
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-sensors
PyQt 5 sensors.

%files -n python3-qt5-sensors
%{python3_sitearch}/PyQt5/QtSensors.*
%{python3_sitearch}/PyQt5/bindings/QtSensors

#----------------------------------------------------------------------------

%package -n python3-qt5-serialport
Summary:	PyQt 5 serialport
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-serialport
PyQt 5 serialport.

%files -n python3-qt5-serialport
%{python3_sitearch}/PyQt5/QtSerialPort.*
%{python3_sitearch}/PyQt5/bindings/QtSerialPort

#----------------------------------------------------------------------------

%package -n python3-qt5-sql
Summary:	PyQt 5 sql
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-sql
PyQt 5 sql.

%files -n python3-qt5-sql
%{python3_sitearch}/PyQt5/QtSql.*
%{python3_sitearch}/PyQt5/bindings/QtSql

#----------------------------------------------------------------------------

%package -n python3-qt5-svg
Summary:	PyQt 5 svg
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-svg
PyQt 5 svg.

%files -n python3-qt5-svg
%{python3_sitearch}/PyQt5/QtSvg.*
%{python3_sitearch}/PyQt5/bindings/QtSvg

#----------------------------------------------------------------------------

%package -n python3-qt5-test
Summary:	PyQt 5 test
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-test
PyQt 5 test.

%files -n python3-qt5-test
%{python3_sitearch}/PyQt5/QtTest.*
%{python3_sitearch}/PyQt5/bindings/QtTest

#----------------------------------------------------------------------------

%package -n python3-qt5-webchannel
Summary:	PyQt 5 WebChannel
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-webchannel
PyQt 5 WebChannel.

%files -n python3-qt5-webchannel
%{python3_sitearch}/PyQt5/QtWebChannel.*
%{python3_sitearch}/PyQt5/bindings/QtWebChannel

#----------------------------------------------------------------------------

%if %{with webkit}
%package -n python3-qt5-webkit
Summary:	PyQt 5 Webkit
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-webkit
PyQt 5 Webkit.

%files -n python3-qt5-webkit
%{python3_sitearch}/PyQt5/QtWebKit.*
%{python3_sitearch}/PyQt5/bindings/QtWebKit

#----------------------------------------------------------------------------

%package -n python3-qt5-webkitwidgets
Summary:	PyQt 5 webkitwidgets
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-webkitwidgets
PyQt 5 webkitwidgets.

%files -n python3-qt5-webkitwidgets
%{python3_sitearch}/PyQt5/QtWebKitWidgets.*
%{python3_sitearch}/PyQt5/bindings/QtWebKitWidgets
%endif

#----------------------------------------------------------------------------

%package -n python3-qt5-websockets
Summary:	PyQt 5 websockets
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-websockets
PyQt 5 websockets.

%files -n python3-qt5-websockets
%{python3_sitearch}/PyQt5/QtWebSockets.*
%{python3_sitearch}/PyQt5/bindings/QtWebSockets

#----------------------------------------------------------------------------

%package -n python3-qt5-widgets
Summary:	PyQt 5 widgets
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-widgets
PyQt 5 widgets.

%files -n python3-qt5-widgets
%{python3_sitearch}/PyQt5/QtWidgets.*
%{python3_sitearch}/PyQt5/bindings/QtWidgets

#----------------------------------------------------------------------------

%package -n python3-qt5-xml
Summary:	PyQt 5 XML
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-xml
PyQt 5 XML.

%files -n python3-qt5-xml
%{python3_sitearch}/PyQt5/QtXml.*
%{python3_sitearch}/PyQt5/bindings/QtXml

#----------------------------------------------------------------------------

%package -n python3-qt5-xmlpatterns
Summary:	PyQt 5 XMLPatterns
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-xmlpatterns
PyQt 5 XMLPatterns.

%files -n python3-qt5-xmlpatterns
%{python3_sitearch}/PyQt5/QtXmlPatterns.*
%{python3_sitearch}/PyQt5/bindings/QtXmlPatterns

#----------------------------------------------------------------------------

%package -n python3-qt5-x11extras
Summary:	PyQt 5 x11extras
Group:		Development/KDE and Qt
Requires:	python3-qt5-core = %{EVRD}

%description -n python3-qt5-x11extras
PyQt 5 x11extras.

%files -n python3-qt5-x11extras
%{python3_sitearch}/PyQt5/QtX11Extras.*
%{python3_sitearch}/PyQt5/bindings/QtX11Extras

#----------------------------------------------------------------------------

%package -n python3-qt5-devel
Summary:	PyQt 5 devel
Group:		Development/KDE and Qt
Requires:	python3-qt5 = %{EVRD}
Requires:	qt5-designer
Requires(post,preun):	update-alternatives

%description -n python3-qt5-devel
PyQt 5 devel utilities.

%files -n python3-qt5-devel
%{_bindir}/pylupdate5
%{_bindir}/pyrcc5
%{_bindir}/pyuic5
%{_qt5_plugindir}/designer/libpyqt5.so

#----------------------------------------------------------------------------

%package -n python3-qt5-examples
Summary:	PyQt 5 examples
Group:		Development/KDE and Qt
Obsoletes:	python-qt5-doc < 5.9
BuildArch:	noarch

%description -n python3-qt5-examples
PyQt 5 examples.

%files -n python3-qt5-examples
%doc %{_docdir}/%{name}/examples

#----------------------------------------------------------------------------

%prep
%setup -qn PyQt5-%{version}
%autopatch -p1

%build
sip-build \
    --no-make \
    --verbose \
    --build-dir=./build \
    --api-dir=%{_qt5_datadir}/qsci \
    --confirm-license \
    --qmake=%{_bindir}/qmake-qt5 \
    --dbus=%{_includedir}/dbus-1.0/ \
    --qmake-setting QMAKE_CFLAGS="%{optflags}" \
    --qmake-setting QMAKE_CXXFLAGS_RELEASE="%{optflags} `pkg-config --cflags dbus-python` -lpython%{py3_ver}" \
    --qmake-setting QMAKE_LFLAGS_RELEASE="%{ldflags} -lpython%{py3_ver}"
pushd build
make -j %{_smp_build_ncpus}
popd

%install
pushd build
%make_install INSTALL_ROOT=%{buildroot}
popd

# Get rid of bits and pieces that aren't useful on Linux
rm -rf	\
	 %{buildroot}%{python3_sitearch}/PyQt5/bindings/QAxContainer \
	 %{buildroot}%{python3_sitearch}/PyQt5/bindings/QtAndroidExtras \
	 %{buildroot}%{python3_sitearch}/PyQt5/bindings/QtMacExtras \
	 %{buildroot}%{python3_sitearch}/PyQt5/bindings/Enginio \
	 %{buildroot}%{python3_sitearch}/PyQt5/bindings/QtWinExtras


mkdir -p %{buildroot}%{_docdir}/%{name}/examples
cp -fr examples/* %{buildroot}%{_docdir}/%{name}/examples/
# Python shebang
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}%{_docdir}/%{name}/examples/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16509 |21mr|python-qt-builder-1.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

Summary:	Build system for PyQt and projects that extend it
Name:		python-qt-builder
Version:	1.13.0
Release:	1
Group:		Development/Python
License:	BSD
Url:		http://www.riverbankcomputing.co.uk/software/sip/intro
Source0:	https://files.pythonhosted.org/packages/source/P/PyQt-builder/PyQt-builder-%{version}.tar.gz
Requires:	python3-wheel
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-sip >= 5.6.0
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
PyQt-builder is the PEP 517 compliant build system for PyQt and projects that
extend PyQt.

It extends the sip build system and uses Qt’s qmake to perform the actual
compilation and installation of extension modules.

Projects that use PyQt-builder provide an appropriate pyproject.toml file
and an optional project.py script. Any PEP 517 compliant frontend, for
example sip-install or pip can then be used to build and install the project.

#------------------------------------------------------------
%package -n python3-qt-builder
Summary:	Build system for PyQt and projects that extend it
Group:		Development/Python
Provides:	pyqt-builder = %{EVRD}

%description -n python3-qt-builder
PyQt-builder is the PEP 517 compliant build system for PyQt and projects that
extend PyQt.

It extends the sip build system and uses Qt’s qmake to perform the actual
compilation and installation of extension modules.

Projects that use PyQt-builder provide an appropriate pyproject.toml file
and an optional project.py script. Any PEP 517 compliant frontend, for
example sip-install or pip can then be used to build and install the project.

%files -n python3-qt-builder -f %{name}.list
%{python3_sitelib}/pyqtbuild/__pycache__/*
%{python3_sitelib}/pyqtbuild/bundle/packages/__pycache__/*
%{python3_sitelib}/pyqtbuild/bundle/__pycache__/*

#------------------------------------------------------------
%prep
%setup -q -n PyQt-builder-%{version}

%build
%set_build_flags

#export LDFLAGS="%{ldflags} -lpython%{py3_ver}"
%py3_build

%install
%{__python3} setup.py \
	install \
	--root="%{buildroot}" \
	--record="%{name}.list"

%check
%{__python3} setup.py \
	check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16510 |21mr|python-random2-1.0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	random2

Name:		python-%{oname}
Version:	1.0.1
Release:	6
Summary:	Python 3 compatible Pytohn 2 `random` Module
Source0:	http://pypi.python.org/packages/source/r/%{oname}/%{oname}-%{version}.zip
License:	Python 
Group:		Development/Python
Url:		http://pypi.python.org/pypi/random2
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pythonegg(setuptools)
BuildArch:	noarch

%description
This package provides a Python 3 ported version of Python 2.7's ``random``
module. It has also been back-ported to work in Python 2.6.

In Python 3, the implementation of ``randrange()`` was changed, so that even
with the same seed you get different sequences in Python 2 and 3. Note that
several high-level functions such as ``randint()`` and ``choice()`` use
``randrange()``.

#------------------------------------------------------------------
%package -n     python3-%{oname}
Summary:	Python 3 compatible Pytohn 2 `random` Module
BuildArch:	noarch

%description -n python3-%{oname}
This package provides a Python 3 ported version of Python 2.7's ``random``
module. It has also been back-ported to work in Python 2.6.

In Python 3, the implementation of ``randrange()`` was changed, so that even
with the same seed you get different sequences in Python 2 and 3. Note that
several high-level functions such as ``randint()`` and ``choice()`` use
``randrange()``.

%files -n python3-%{oname}
%doc CHANGES.txt README.txt
%{py3_puresitedir}/random2.py*
%{py3_puresitedir}/random2*.egg-info
%{py3_puresitedir}/__pycache__/*
#------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
python3 setup.py build

%install
python3 setup.py install --root %{buildroot}

%check
python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16511 |21mr|python-rcssmin-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name rcssmin

Name:		python-%{pypi_name}
Version:	1.0.6
Release:	1
Summary:	CSS Minifier
Group:		Development/Python
License:        ASL 2.0
URL:            https://opensource.perlig.de/rcssmin/
Source0:        https://pypi.io/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildRequires:  gcc

%description
RCSSmin is a CSS minifier.

The minifier is based on the semantics of the YUI compressor, which itself
is based on the rule list by Isaac Schlueter.

This module is a re-implementation aiming for speed instead of maximum
compression, so it can be used at runtime (rather than during a preprocessing
step).

#----------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	CSS Minifier
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
RCSSmin is a CSS minifier.

The minifier is based on the semantics of the YUI compressor, which itself
is based on the rule list by Isaac Schlueter.

This module is a re-implementation aiming for speed instead of maximum
compression, so it can be used at runtime (rather than during a preprocessing
step).

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE bench/LICENSE.cssmin
%{python3_sitearch}/%{pypi_name}.py*
%{python3_sitearch}/_%{pypi_name}.cpython*
%{python3_sitearch}/__pycache__
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# strip bang path from rcssmin.py
sed -i '1d' rcssmin.py

%build
%py3_build
%install
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install.
%py3_install

# remove upstream developer documentation
rm -r %{buildroot}/%{_docdir}/%{pypi_name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16512 |21mr|python-rdflib-6.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname rdflib

Summary:	Python library for working with RDF
Name:		python-%{oname}
Version:	6.0.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/RDFLib/rdflib
Source0:	https://files.pythonhosted.org/packages/f5/7d/576c6c19a3edefbfac63d375ab5c821c178f9299e134cde252e495cba998/rdflib-6.0.0.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
RDFLib is a Python library for working with RDF, a simple yet powerful
language for representing information. The library contains parsers and
serializers for RDF/XML, N3, NTriples, Turtle, TriX and RDFa . It presents
a Graph interface which can be backed by any one of a number of Store
implementations, including, Memory, MySQL, Redland, SQLite, Sleepycat and
SQLObject.

#-----------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	Python 3 library for working with RDF
Group: 		Development/Python
Requires:	python3egg(requests)

%description -n python3-%{oname}
RDFLib is a Python library for working with RDF, a simple yet powerful
language for representing information. The library contains parsers and
serializers for RDF/XML, N3, NTriples, Turtle, TriX and RDFa . It presents
a Graph interface which can be backed by any one of a number of Store
implementations, including, Memory, MySQL, Redland, SQLite, Sleepycat and
SQLObject.

%files -n python3-%{oname}
%doc LICENSE
%{python3_sitelib}/*

#-----------------------------------------------------------------------------

# NOTE: While the library modules for both python versions could be installed
# together, the utility scripts have always the same names so that the ones for
# python 2 cannot be installed with the ones for python 3.
# Put those scripts in a separate sub-package and mark the package for
# python 3 as conflicting with the python 2 one.

%package -n python3-%{oname}-tools
Summary:	Utility scripts for %{name}
Group:		File tools
Requires:	python3-%{oname} = %{EVRD}
Conflicts:	%{name} < %{EVRD}
Conflicts:	python-%{oname}-tools
BuildArch:	noarch

%description -n python3-%{oname}-tools
Utility scripts for %{name}.

%files -n python3-%{oname}-tools
%doc LICENSE
%{_bindir}/csv2rdf
%{_bindir}/rdf*

#-----------------------------------------------------------------------------


%prep
%setup -q -n %{oname}-%{version}
find -name "*.pyc" -delete


%build
%py3_build


%install
%py3_install

# Drop the tests
rm -rf %{buildroot}%{python3_sitelib}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16513 |21mr|python-readme_renderer-29.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	readme_renderer

Summary:	Is a library for rendering "readme" descriptions for Warehouse
Name:		python-%{module}
Version:	29.0
Release:	1
Source0:	https://files.pythonhosted.org/packages/f4/be/09db3768f2f426c6427487c1b2d2de427f615bcb8d52aab3782124d4e57a/readme_renderer-29.0.tar.gz
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/pypa/%{module}
BuildArch:	noarch


%description
Readme Renderer
===============

Readme Renderer is a library that will safely render arbitrary
``README`` files into HTML. It is designed to be used in Warehouse_ to
render the ``long_description`` for packages. It can handle Markdown,
reStructuredText (``.rst``), and plain text.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary: %{summary}  
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
Readme Renderer
===============

Readme Renderer is a library that will safely render arbitrary
``README`` files into HTML. It is designed to be used in Warehouse_ to
render the ``long_description`` for packages. It can handle Markdown,
reStructuredText (``.rst``), and plain text.

%files -n python3-%{module}
%doc *.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}*.egg-info
#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
rm -rf %{module}.egg-info

%build
%py3_build


%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16514 |21mr|python-redis-3.5.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstream_name redis

Name:           python-%{upstream_name}
Version:	3.5.3
Release:	2
Summary:        Python interface to the Redis key-value store
Group:		Development/Python
License:        MIT
URL:            https://github.com/andymccurdy/redis-py
Source0:        https://github.com/andymccurdy/redis-py/archive/%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  redis

%global _description\
This is a Python interface to the Redis key-value store.

%description %_description

%package -n     python3-redis
Summary:        Python 3 interface to the Redis key-value store
%{?python_provide:%python_provide python3-redis}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-py
BuildRequires:  python3-pytest
BuildRequires:  python3-mock

%description -n python3-redis
This is a Python 3 interface to the Redis key-value store.

%prep
%setup -qn redis-py-%{version}
rm -frv %{upstream_name}.egg-info

# This test passes locally but fails in koji...
rm tests/test_commands.py*


%build
%py3_build

%install
%py3_install

#check
#redis-server &
#{__python3} -m pytest
#kill %%1

%files -n python3-redis
%doc CHANGES LICENSE README.rst
%{python3_sitelib}/%{upstream_name}
%{python3_sitelib}/%{upstream_name}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16515 |21mr|python-regex-2021.8.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module regex

Summary:	Alternative regular expression module, to replace re
Name:		python-%{module}
Version:	2021.8.28
Release:	1
License:	Python Software Foundation License
Group:		Development/Python
Url:		https://pypi.python.org/pypi/regex
Source0:	https://files.pythonhosted.org/packages/15/bd/88d793c2e39b1e91c070bf4d1317db599b1c22efbf6bd194bb568064af21/regex-2021.8.28.tar.gz

%description
This new regex implementation is intended eventually to replace
Python's current re module implementation.

#-----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Python 3 interface to Last.fm
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
This new regex implementation is intended eventually to replace
Python's 3 current re module implementation.

%files -n python3-%{module}
%{python3_sitearch}/*
#-----------------------------------------------------------------------
%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16516 |21mr|python-remoto-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name remoto

Name:		python-%{pypi_name}
Version:	1.2.1
Release:	1
Summary:	Execute remote commands or processes
Group:		Development/Python
License:	MIT
URL:		https://github.com/alfredodeza/remoto
Source0:	https://files.pythonhosted.org/packages/42/02/a9e5b25538bd12d98c7ea6d277c33e472d1d1d4ec50a4d42be3ca73f6023/remoto-1.2.1.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-pytest
BuildRequires:	python3-execnet >= 1.2.0
BuildRequires:	python3-mock
BuildRequires:	python3-setuptools
BuildArch:	noarch

%global _description\
Execute remote commands or processes.

%description %_description
#------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Execute remote commands or processes
Requires:	python3
Requires:	python3-execnet >= 1.2.0

%description -n python3-%{pypi_name} %_description

%files -n python3-%{pypi_name}
%{python3_sitelib}/*
%license LICENSE
%doc README.rst

#------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16517 |21mr|python-rencode-1.0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name rencode

Name:		python-rencode
Version:	1.0.6
Release:	3
Summary:	Web safe object pickling/unpickling
Group:		Development/Python
License:	GPLv3+ and BSD
URL:		https://github.com/aresch/rencode
Source0:	https://github.com/aresch/rencode/archive/v%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-cython
BuildRequires:	python3-wheel

%description
The rencode module is a modified version of bencode from the
BitTorrent project.  For complex, heterogeneous data structures with
many small elements, r-encodings take up significantly less space than
b-encodings.

#------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Web safe object pickling/unpickling
Group:		Development/Python

%description -n python3-%{pypi_name}
The rencode module is a modified version of bencode from the
BitTorrent project.  For complex, heterogeneous data structures with
many small elements, r-encodings take up significantly less space than
b-encodings.

%files -n python3-%{pypi_name}
%doc COPYING README.md
%{python3_sitearch}/rencode
%{python3_sitearch}/rencode*.egg-info

#------------------------------------------------------------------------
%prep
%setup -n rencode-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16518 |21mr|python-reportlab-3.5.68-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# dependency generator inserts "== 2.0.0" for pillow eggs, but we already have 2.6
%global __requires_exclude pillow

Summary:	ReportLab library to create PDF documents using Python
Name:		python-reportlab
Version:	3.5.68
Release:	1
URL:		http://www.reportlab.com/
Source0:	https://files.pythonhosted.org/packages/f8/3b/3684a3414cde1626be5245af21ace0629ceb1e38ff745a84e07349505827/reportlab-3.5.68.tar.gz
Patch0:		reportlab-font-locations.patch
Patch1:		reportlab_fix_build.patch
License:	BSD
Group:		Publishing
BuildRequires:	freetype-devel

%description
ReportLab is a library that lets you directly create documents in
Adobe's Portable Document Format (PDF) using the Python programming
language.

ReportLab library creates PDF based on graphics commands without
intervening steps. It's therefore extremely fast, and flexible (since
you're using a full-blown programming language).

Sample use cases are:

  * Dynamic PDF generation on the web
  * High-volume corporate reporting and database publishing
  * As embeddable print engine for other applications, including a
    'report language' so that users can customize their own reports.
  * As 'build system' for complex documents with charts, tables and text
    such as management accounts, statistical reports and scientific papers
  * from XML to PDF in one step
#------------------------------------------------------------------------

%package -n python3-reportlab
Summary:	ReportLab library to create PDF documents using Python 3
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pillow)
Requires:	fonts-ttf-dejavu
Requires:	python3egg(pillow)

%description -n python3-reportlab
ReportLab is a library that lets you directly create documents in
Adobe's Portable Document Format (PDF) using the Python programming
language.

ReportLab library creates PDF based on graphics commands without
intervening steps. It's therefore extremely fast, and flexible (since
you're using a full-blown programming language).

%files -n python3-reportlab
%doc README.txt CHANGES.md LICENSE.txt 
%{python3_sitearch}/reportlab
%{python3_sitearch}/reportlab*.egg-info

#------------------------------------------------------------------------
%package -n %{name}-docs
Summary:	Documentation files for %{name}
Requires:	python3-reportlab = %{version}-%{release}
Group:		Publishing
License:	BSD

%description -n %{name}-docs
Contains the documentation for ReportLab.

%files -n %{name}-docs
%doc docs/*.pdf demos tools LICENSE.txt
#-------------------------------------------------------------------------

%prep
%setup -q -n reportlab-%{version}
%patch0 -p1
%patch1 -p1
# clean up hashbangs from libraries
find src -name '*.py' | xargs sed -i -e '/^#!\//d'

%build
CFLAGS="%{optflags}" %__python3 setup.py build

# a bit of a horrible hack due to a chicken-and-egg problem. The docs
# require reportlab, which isn't yet installed, but is at least built.
PYTHONPATH="`pwd`/`ls -d build/lib*`" python3 docs/genAll.py


%install
%py3_install
rm -rf %{buildroot}%{python3_sitearch}/reportlab/fonts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16519 |21mr|python-repoze.lru-0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname repoze.lru

Summary:	A tiny LRU cache implementation and decorator
Name:		python-%{oname}
Version:	0.7
Release:	4
License:	BSD with attribution
Group:		Development/Python
Url:		http://www.repoze.org
Source0:	http://pypi.python.org/packages/source/r/%{oname}/%{oname}-%{version}.tar.gz
Provides:	python-repoze-lru = %{EVRD}
Conflicts:	python-repoze-lru < 0.7
Obsoletes:	python-repoze-lru < 0.7
BuildArch:	noarch

%description
repoze.lru is a LRU (least recently used) cache implementation. Keys and values
that are not used frequently will be evicted from the cache faster than keys
and values that are used frequently.

#----------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	A tiny LRU cache implementation and decorator
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Provides:	python3-repoze-lru = %{EVRD}
Conflicts:	python3-repoze-lru < 0.7
Obsoletes:	python3-repoze-lru < 0.7

%description -n python3-%{oname}
repoze.lru is a LRU (least recently used) cache implementation. Keys and values
that are not used frequently will be evicted from the cache faster than keys
and values that are used frequently.

%files -n python3-%{oname}
%doc README.rst LICENSE.txt
%{py3_puresitedir}/repoze/lru/
%{py3_puresitedir}/%{oname}-%{version}*

#----------------------------------------------------------------------------

%package -n python3-%{oname}-doc
Summary:	Documentation for python3-%{oname}
Group:		Development/Python
BuildRequires:	python3-sphinx

%description -n python3-%{oname}-doc
Documentation for python3-%{oname}

%files -n python3-%{oname}-doc
%doc README.rst LICENSE.txt
%doc docs/_build/html

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

# Build documentation
pushd docs
make html PYTHONPATH=..
rm _build/html/.buildinfo
rm _build/html/_static/placeholder.txt
popd

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16520 |21mr|python-repoze-sphinx-autointerface-0.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkgname repoze.sphinx.autointerface
%global srcname %(tr . - <<< %{pkgname})

Name:           python-%{srcname}
Version:        0.8
Release:        5
Group:          Development/Python
Summary:        Auto-generate Sphinx API docs from Zope interfaces

License:        BSD
URL:            https://github.com/repoze/%{pkgname}
Source0:        https://github.com/repoze/%{pkgname}/archive/%{version}/%{pkgname}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-sphinx
BuildRequires:  python3-zope.interface

%global common_desc                                                      \
This package defines an extension for the Sphinx documentation system.   \
The extension allows generation of API documentation by introspection of \
zope.interface instances in code.

%description
%{common_desc}

%package -n python3-%{srcname}
Group:          Development/Python
Summary:        Auto-generate Sphinx API docs from Zope interfaces
Requires:       python3-sphinx
Requires:       python3-zope.interface

%description -n python3-%{srcname}
%{common_desc}

%prep
%setup -q -c

cp -a %{pkgname}-%{version} python3-%{pkgname}-%{version}

%build

# Python 3 build
pushd python3-%{pkgname}-%{version}
%py3_build
popd

%install

# Python 3 install
pushd python3-%{pkgname}-%{version}
%py3_install
popd

%files -n python3-%{srcname}
%doc %{pkgname}-%{version}/CONTRIBUTORS.txt
%doc %{pkgname}-%{version}/COPYRIGHT.txt %{pkgname}-%{version}/LICENSE.txt
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16521 |21mr|python-requests-2.28.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	requests

Summary:	Python HTTP for Humans
Name:		python-%{module}
Version:	2.28.1
Release:	1
License:	Apache License
Group:		Development/Python
Url:		http://python-requests.org/
Source0:	https://github.com/psf/requests/archive/v%{version}.tar.gz
Source100:	%{name}.rpmlintrc
# Explicitly use the system certificates in ca-certificates.
# https://bugzilla.redhat.com/show_bug.cgi?id=904614
Patch0:     requests-2.28.1-system-certs.patch
BuildArch:	noarch

%description
This library is designed to make HTTP requests easy for developers. It allows
you to send HTTP/1.1 requests. You can add headers, form data, multipart
files, and parameters with simple Python dictionaries, and access the response
data in the same way. It's powered by httplib and urllib3, but it does all the
hard work and crazy hacks for you.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	HTTP library, written in Python, for human beings
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-chardet
BuildRequires:	python3-urllib3
BuildRequires:	python3-setuptools
Requires:	python3-chardet
Requires:	python3-urllib3
Requires:	rootcerts

%description -n python3-%{module}
This library is designed to make HTTP requests easy for developers. It allows
you to send HTTP/1.1 requests. You can add headers, form data, multipart
files, and parameters with simple Python dictionaries, and access the response
data in the same way. It's powered by httplib and urllib3, but it does all the
hard work and crazy hacks for you.

%files -n python3-%{module}
%doc LICENSE
%{py3_puresitedir}/%{module}-%{version}-py*.*.egg-info
%{py3_puresitedir}/%{module}/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

# Unbundle the certificate bundle from mozilla.
rm -rf requests/cacert.pem

%build
%py3_build


%install
%py3_install

# Fix perms
chmod +x %{buildroot}%{py3_puresitedir}/%{module}/certs.py


%pretrans -n python3-%{module} -p <lua>
st = posix.stat("%{py3_puresitedir}/%{module}/packages/chardet")
if st and st.type == "directory" then
  os.execute("rm -rf %{py3_puresitedir}/%{module}/packages/chardet")
end
st = posix.stat("%{py3_puresitedir}/%{module}/packages/urllib3")
if st and st.type == "directory" then
  os.execute("rm -rf %{py3_puresitedir}/%{module}/packages/urllib3")
end

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16522 |21mr|python-requests-file-1.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module requests-file

Summary:	Transport adapter for using file:// URLs with python-requests
Name:		python-%{module}
Version:	1.5.1
Release:	2
License:	ASL 2.0
Group:		Development/Python
Url:			https://github.com/dashea
Source0:	https://github.com/dashea/requests-file/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3-requests
BuildRequires:  python3-six
BuildRequires:  python3-pip

%description
Requests-File is a transport adapter for use with the Requests Python
library to allow local file system access via file:// URLs.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary: 	Transport adapter for using file:// URLs with python-requests
Group:		Development/Python
Requires:	python3-requests
Requires:	python3-six

%description -n python3-%{module}
Requests-File is a transport adapter for use with the Requests Python
library to allow local file system access via file:// URLs.

%files -n python3-%{module}
%doc LICENSE README.rst
%{python3_sitelib}/requests_file.py*
%{python3_sitelib}/requests_file*.egg-info*
%{python3_sitelib}/__pycache__/requests_file.*pyc

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16523 |21mr|python-requests-ftp-0.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname requests-ftp

Summary:	FTP transport adapter for python-requests
Name:		python-%{srcname}
Group:			Development/Python
Version:	0.3.1
Release:	3
License:	ASL 2.0
URL:		https://github.com/Lukasa/requests-ftp
Source0:	https://pypi.python.org/packages/source/r/%{srcname}/%{srcname}-%{version}.tar.gz
# from https://github.com/Lukasa/requests-ftp/pull/28, handle multi-line responses
# from 4090846
Patch1:		PR28-01-Adding-2-tests-and-updated-statud_code-build.patch
# from 4f6a9f5
Patch2:		PR28-02-Adding-code-3-to-retr4ieve-status_code.patch
# from 3fb2700
Patch3:		PR28-03-fix-warning-in-interpreting-ftp-status-codes-minor-d.patch
# 2caa427 is only test updates, tests not in pypi tarball
# from 7321ab3
Patch5:		PR28-05-Improve-logging-in-status-code-extraction.patch 
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildArch:	noarch

%description
Requests-FTP is an implementation of a very stupid FTP transport adapter for
use with the awesome Requests Python library.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	FTP transport adapter for python3-requests
Group:		Development/Python
Requires:	python3-requests

%description -n python3-requests-ftp
Requests-FTP is an implementation of a very stupid FTP transport adapter for
use with the awesome Requests Python library.

This is the Python 3 version of the transport adapter module.

%files -n python3-%{srcname}
%doc README.rst LICENSE
%{python3_sitelib}/requests_ftp/
%{python3_sitelib}/requests_ftp*.egg-info*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

rm -rf requests_ftp.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16524 |21mr|python-requests-mock-1.9.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without python3
%bcond_with tests
%define	python3_pkgversion 3

Name:           python-requests-mock
Version:	1.9.3
Release:	1
Summary:        A requests mocking tool for python

Group:		Development/Python
License:        ASL 2.0
URL:            https://requests-mock.readthedocs.io/
Source0:	https://files.pythonhosted.org/packages/71/1e/1680394d9ad02bf7fb34f6e161b6eff62c972f2c1e647389ce2d324b3c25/requests-mock-1.9.3.tar.gz

Patch0:         0002-Use-system-urllib3-package.patch
Patch1:         0003-Allow-skipping-purl-tests-if-it-is-not-present.patch

BuildArch:      noarch

%description
requests-mock provides a simple way to do HTTP mocking at the
python-requests layer.

%package -n python%{python3_pkgversion}-requests-mock
Summary:        A requests mocking tool for python

Requires:       python%{python3_pkgversion}-requests
Requires:       python%{python3_pkgversion}-six

# standard requirements needed for testing
BuildRequires:  python%{python3_pkgversion}-requests
BuildRequires:  python%{python3_pkgversion}-six
BuildRequires:  python%{python3_pkgversion}-urllib3

BuildRequires:  python%{python3_pkgversion}-devel
BuildRequires:  python%{python3_pkgversion}-pbr
BuildRequires:  python%{python3_pkgversion}-setuptools

%{?python_provide:%python_provide python3-requests-mock}

%if %{with tests}
BuildRequires:  python%{python3_pkgversion}-fixtures
BuildRequires:  python%{python3_pkgversion}-mock
BuildRequires:  python%{python3_pkgversion}-testtools
BuildRequires:  python%{python3_pkgversion}-pytest
%endif


%description -n python%{python3_pkgversion}-requests-mock
requests-mock provides a simple way to do HTTP mocking at the
python-requests layer.


%prep
%setup -q -n requests-mock-%{version}
%autopatch -p1

# Remove bundled egg-info
rm -rf requests_mock.egg-info


%build
%py3_build

%install
%py3_install

%check
%if %{with tests}
%{__python3} -m testtools.run discover
%{__python3} -m pytest tests/pytest
%endif


%files -n python%{python3_pkgversion}-requests-mock
%license LICENSE
%doc README.rst ChangeLog
%{python3_sitelib}/requests_mock
%{python3_sitelib}/requests_mock-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16525 |21mr|python-requests_ntlm-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname requests_ntlm

Summary:	NTLM module for python requests
Name:		python-%{srcname}
Version:	1.1.0
Release:	1
License:	ISC
Group:		Development/Python
Url:		https://pypi.python.org/pypi/requests_ntlm
Source0:	https://github.com/requests/requests-ntlm/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

%description
This package allows Python clients running on any operating system to provide
NTLM authentication to a supporting server.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	NTLM module for python requests
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(requests) >= 2
BuildRequires:	python3dist(ntlm-auth) >= 1.0.2
BuildRequires:	python3dist(cryptography) >= 1.3
BuildRequires:	python3dist(pytest)
BuildRequires:	python3dist(flask)

%description -n python3-%{srcname}
This package allows Python clients running on any operating system to provide
NTLM authentication to a supporting server.

Python 3 version.

%files -n python3-%{srcname}
%license LICENSE
%doc CONTRIBUTORS.rst README.rst
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info/

#----------------------------------------------------------------------------

%prep
%autosetup -n requests-ntlm-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16526 |21mr|python-requests-oauthlib-1.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name requests-oauthlib

Name:           python-requests-oauthlib
Version:	1.3.0
Release:	1
Group:          Development/Python
Summary:        OAuthlib authentication support for Requests

License:        ISC
URL:            https://github.com/requests/requests-oauthlib
Source0:	https://files.pythonhosted.org/packages/23/eb/68fc8fa86e0f5789832f275c8289257d8dc44dbe93fce7ff819112b9df8f/requests-oauthlib-1.3.0.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools


%description
This project provides first-class OAuth library support for Requests.


%package -n     python3-%{pypi_name}
Summary:        OAuthlib authentication support for Requests

%description -n python3-%{pypi_name}
This project provides first-class OAuth library support for Requests.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

find -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build
%py3_build


%install
%py3_install


%files -n python3-%{pypi_name}
%doc README.rst
%{py3_puresitedir}/requests_oauthlib-%{version}-py?.?.egg-info
%{py3_puresitedir}/requests_oauthlib

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16527 |21mr|python-requests-toolbelt-0.9.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname requests-toolbelt
%global altname requests_toolbelt

Name:           python-%{srcname}
Version:        0.9.1
Release:        8
Summary:        Utility belt for advanced users of python-requests
Group:		Development/Python
License:        ASL 2.0
URL:            https://toolbelt.readthedocs.io
Source0:        https://github.com/sigmavirus24/%{srcname}/archive/%{version}/%{srcname}-%{version}.tar.gz
# present in upstream master but not in a stable release yet
Patch0:         python-requests-toolbelt-fix-unhandled-exception-from-tests.patch
# upstream PR 261, currently the upstream tests are broken as some network
# resources vanished
Patch1:         python-requests-toolbelt-pass-session-into-tests.patch

BuildArch:      noarch

%global _description \
This is just a collection of utilities for python-requests, but don’t really\
belong in requests proper.

%description %{_description}

%package -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
%{?python_provide:%python_provide python3-%{altname}}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-betamax
BuildRequires:  python3-mock
BuildRequires:  python3-pyOpenSSL
BuildRequires:  python3-pytest
BuildRequires:  python3-requests
Requires:       python3-requests

%description -n python3-%{srcname} %{_description}

Python 3 version.

%prep
%autosetup -p1 -n toolbelt-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst HISTORY.rst
%{python3_sitelib}/%{altname}/
%{python3_sitelib}/%{altname}-*.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16528 |21mr|python-requests-unixsocket-0.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name requests-unixsocket

Name:		python-%{pypi_name}
Version:	0.2.0
Release:	1
Summary:	Use requests to talk HTTP via a UNIX domain socket
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/msabramo/requests-unixsocket
Source0:	https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
%{summary}.

#-----------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Use requests to talk HTTP via a UNIX domain socket
Group:		Development/Python

Requires:       python3dist(requests)

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(pbr)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(requests)
BuildRequires:  python3dist(urllib3)
BuildRequires:  python3dist(waitress)

%description -n python3-%{pypi_name}
%{summary}.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/requests_unixsocket
%{python3_sitelib}/requests_unixsocket-%{version}-py%{python3_version}.egg-info

#-----------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# Remove shebangs
sed -i '1d' requests_unixsocket/tests/test_requests_unixsocket.py
sed -i '1d' setup.py

# Remove pytest-pep8 invocation. Not packaged in Fedora
rm pytest.ini
sed -i '/pytest-pep8/d' test-requirements.txt
# pytest-capturelog isn't actually used, removing it. it's not in Fedora either
sed -i '/pytest-capturelog/d' test-requirements.txt

%build
%py3_build

%install
%py3_install


%check
%{__python3} -m pytest -v



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16529 |21mr|python-responses-0.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name responses

Summary:	A utility library for mocking out the `requests` Python library
Name:		python-%{pypi_name}
Version:	0.14.0
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://pypi.org/project/responses/
Source0:	https://github.com/getsentry/responses/releases/download/%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-requests
BuildRequires:	python3-six
BuildRequires:	python3-setuptools
BuildRequires:	python3-pytest
BuildRequires:	python3-coverage
BuildRequires:	python3-pytest-cov
BuildRequires:	python3-mock
BuildArch:	noarch

%description
A utility library for mocking out the requests Python library.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A utility library for mocking out the `requests` Python library
Group:		Development/Python
Requires:	python3-requests
Requires:	python3-six

%description -n python3-%{pypi_name}
A utility library for mocking out the requests Python library.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/responses
%{python3_sitelib}/responses-%{version}-py%{python3_version}.egg-info/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# skipping tests due to missing dependencies: python-pytest-localserver
#%%check
#%%__python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16530 |21mr|python-restructuredtext_lint-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name restructuredtext_lint

Summary:	reStructuredText linter
Name:		python-%{pypi_name}
Version:	1.2.2
Release:	1
License:	Public Domain
Group:		Development/Python
Url:		https://github.com/twolfson/restructuredtext-lint
Source0:	%{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
restructuredtext-lint reStructuredText_ linter_This was created out of
frustration with PyPI_; it sucks finding out your reST_ is invalid **after**
uploading it. It is being developed in junction with a Sublime Text_ linter...
_reStructuredText: .. _linter: .. _reST: reStructuredText_ .. _PyPI: ..
_Sublime Text:

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	reStructuredText linter
Group:		Development/Python

%description -n python3-%{pypi_name}
restructuredtext-lint reStructuredText_ linter_This was created out of
frustration with PyPI_; it sucks finding out your reST_ is invalid **after**
uploading it. It is being developed in junction with a Sublime Text_ linter...
_reStructuredText: .. _linter: .. _reST: reStructuredText_ .. _PyPI: ..
_Sublime Text:

%files -n python3-%{pypi_name}
%license UNLICENSE
%doc README.rst
%{_bindir}/restructuredtext-lint
%{_bindir}/rst-lint
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16531 |21mr|python-retrying-1.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.1.0b
%global pypi_name retrying


Name:           python-%{pypi_name}
Version:        1.3.3
Release:        1
Summary:        General-purpose retrying library in Python
Group:		Development/Python
License:        ASL 2.0
URL:            https://github.com/rholder/retrying
Source0:        https://pypi.python.org/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildArch:      noarch


%global _description\
Retrying is an Apache 2.0 licensed general-purpose retrying library,\
written in Python, to simplify the task of adding retry behavior to\
just about anything.\


%description %_description

%package -n python3-%{pypi_name}
Summary:        General-purpose retrying library in Python
BuildRequires:  python3-devel
Requires:       python3-six

%description -n python3-%{pypi_name}
Retrying is an Apache 2.0 licensed general-purpose retrying library,
written in Python, to simplify the task of adding retry behavior to
just about anything.

%prep
%setup -q -n %{pypi_name}-%{version}
%autopatch -p1

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{python3_sitelib}/%{pypi_name}.py*
%{python3_sitelib}/__pycache__/%{pypi_name}.*
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16532 |21mr|python-rfc3986-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-1.1.0b

%global pypi_name rfc3986

Name:           python-%{pypi_name}
Version:	1.5.0
Release:	1
Summary:        Validating URI References per RFC 3986
Group:		Development/Python

License:        ASL 2.0
URL:            https://pypi.python.org/pypi/rfc3986
Source0:	https://files.pythonhosted.org/packages/79/30/5b1b6c28c105629cc12b33bdcbb0b11b5bb1880c6cfbd955f9e792921aa8/rfc3986-1.5.0.tar.gz
BuildArch:      noarch

%package -n python3-%{pypi_name}
Summary:        Validating URI References per RFC 3986
%{?python_provide:%python_provide python3-%{pypi_name}}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%description -n python3-%{pypi_name}
A Python implementation of RFC 3986 including validation and authority parsing.


%description
A Python implementation of RFC 3986 including validation and authority parsing.


%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build

%py3_build

%install

%py3_install

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16533 |21mr|python-rjsmin-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name rjsmin

Name:		python-%{pypi_name}
Version:	1.1.0
Release:	1
Summary:	Javascript Minifier
Group:		Development/Python
License:	ASL 2.0
URL:		http://opensource.perlig.de/rjsmin/
Source0:	https://pypi.io/packages/source/r/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description
rJSmin is a javascript minifier written in python.

The minifier is based on the semantics
of jsmin.c by Douglas Crockford.

The module is a re-implementation aiming
for speed, so it can be used at
runtime (rather than during a preprocessing
step). Usually it produces the
same results as the original jsmin.c.

#---------------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        Javascript Minifier
Group:		Development/Python

%description -n python3-%{pypi_name}
rJSmin is a javascript minifier written in python.

The minifier is based on the semantics
of jsmin.c by Douglas Crockford.

The module is a re-implementation aiming
for speed, so it can be used at
runtime (rather than during a preprocessing
step). Usually it produces the
same results as the original jsmin.c.

%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{python3_sitearch}/%{pypi_name}.py*
%{python3_sitearch}/_%{pypi_name}.cpython*
%{python3_sitearch}/__pycache__/rjsmin.*
%{python3_sitearch}/%{pypi_name}-%{version}-py*.egg-info

#---------------------------------------------------------

%package docs
Summary:    Javascript Minifier - docs
Group:		Development/Python

%description docs
Docs for rJSmin, which is a javascript minifier written in python.

The minifier is based on the semantics
of jsmin.c by Douglas Crockford.

The module is a re-implementation aiming
for speed, so it can be used at
runtime (rather than during a preprocessing
step). Usually it produces the
same results as the original jsmin.c.

%files docs
%doc README.md docs

#---------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# strip bang path from rjsmin.py
#sed -i '1d' rjsmin.py

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16534 |21mr|python-roman-3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name roman

Name:           python-%{pypi_name}
Version:        3.3
Release:        3
Summary:        Integer to Roman numerals converter
Group:          Development/Python
License:        Python Software Foundation License
Url:            http://pypi.python.org/pypi/roman
Source0:        %{pypi_source}
BuildRequires:  python3-setuptools
BuildArch:      noarch

%description
Integer to Roman numerals converter.

#-------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Integer to Roman numerals converter
Group:		Development/Python

%description -n python3-%{pypi_name}
Integer to Roman numerals converter.

%files -n python3-%{pypi_name}
%doc CHANGES.txt
%doc src/roman.egg-info/SOURCES.txt
%doc src/roman.egg-info/dependency_links.txt
%doc src/roman.egg-info/top_level.txt
%{py3_puresitedir}/roman.py*
%{py3_puresitedir}/roman*.egg-info
%{py3_puresitedir}/__pycache__
%{_bindir}/roman

#-------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16535 |21mr|python-rope-0.22.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	rope

Summary:	Python refactoring library
Name:		python-%{module}
Version:	0.22.0
Release:	1
License:	GPLv2
Group:		Development/Python
Url:		http://rope.sourceforge.net/
Source0:	https://files.pythonhosted.org/packages/eb/65/15a6a3730c015eaf572fbab98aa7c36d86f93b5ed15ebf224c4a52e7a1b7/rope-0.22.0.tar.gz
BuildArch:	noarch
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)

%description
Rope is a Python refactoring library. You can use
rope as a library in other IDEs.

#----------------------------------------------------------------------------

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Python refactoring library
Group:		Development/Python
Provides:	%{module}-python2 = %{EVRD}
%py2_migration_meta python-%{module}

%description -n python2-%{module}
Rope is a Python refactoring library. You can use
rope as a library in other IDEs.

%files -n python2-%{module}
%doc COPYING  docs/*
%{py2_puresitedir}/*

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python3 refactoring library
Group:		Development/Python
Provides:	%{module}-python3 = %{EVRD}

%description -n python3-%{module}
Rope is a Python refactoring library. You can use
rope as a library in other IDEs.

%files -n python3-%{module}
%doc COPYING  docs/*
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build

%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16536 |21mr|python-routes-2.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: python-routes
Version:	2.5.1
Release:	1
Summary: Rails-like routes for Python
Group:	Development/Python
License: BSD
URL: http://routes.groovie.org/
Source0:	https://files.pythonhosted.org/packages/62/01/1504b710f68840f4152d460a4ffbc6b8265485b636235ddd72a8dfe686ae/Routes-2.5.1.tar.gz
BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-nose
BuildRequires: python3-webtest
BuildRequires: python3-paste
BuildRequires: python3-repoze-lru
BuildRequires: python3-six


%global _description\
Routes is a Python re-implementation of the Rails routes system for mapping\
URL's to Controllers/Actions and generating URL's. Routes makes it easy to\
create pretty and concise URL's that are RESTful with little effort.\
\
This package contains the module built for python2.

%description %_description

%package -n python3-routes
Summary: Rails-like routes for Python3
Requires: python3-repoze-lru
Requires: python3-six
%{?python_provide:%python_provide python3-routes}

%description -n python3-routes
Routes is a Python re-implementation of the Rails routes system for mapping
URL's to Controllers/Actions and generating URL's. Routes makes it easy to
create pretty and concise URL's that are RESTful with little effort.

This package contains the module built for python3.


%prep
%setup -q -n Routes-%{version}


%build
%py3_build


%install
%py3_install


%check
PYTHONPATH=$(pwd) nosetests-3


%files -n python3-routes
%license LICENSE.txt
%doc README.rst CHANGELOG.rst docs
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16537 |21mr|python-rpmfluff-0.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname rpmfluff

Summary:       Lightweight way of building RPMs, and sabotaging them
Name:          python-%{srcname}
Version:       0.6.1
Release:       2
License:       GPLv2
Group:         Development/Tools
URL:           https://fedorahosted.org/rpmfluff/
Source0:       %{pypi_source %srcname %version}
BuildArch:     noarch

%global _description rpmfluff provides a python library for building RPM packages, and\
                     sabotaging them so they are broken in controlled ways.\
                     \
                     It is intended for use when validating package analysis tools such as RPM lint.\
                     It can also be used to construct test cases for package management software\
                     such as rpm and yum.
%description
%_description

#------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary: Lightweight way of building RPMs, and sabotaging them
BuildRequires: python3-devel
BuildRequires: python3-setuptools

%description -n python3-%{srcname}
%_description

%files -n python3-%{srcname}
%doc README*
%doc LICENSE
%dir %{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}/__pycache__/*.py*
%{python3_sitelib}/%{srcname}/*.py
%{python3_sitelib}/rpmfluff*.egg-info

#------------------------------------------------------------------------

%prep
%setup -q -n rpmfluff-%{version}

%build
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
%py3_build

%install
export LANGUAGE=en_US.UTF-8
export LANG=en_US.UTF-8
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16538 |21mr|python-rpm-vercmp-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define pypi_name	rpm-vercmp
%define oname	rpm_vercmp

Summary:	Pure Python implementation of rpmvercmp
Name:		python-%{pypi_name}
Version:	0.1.2
Release:	1
License:	Apache License
Group:		Development/Python
Url:		https://github.com/sassoftware/python-rpm-vercmp
Source0:	https://github.com/sassoftware/python-rpm-vercmp/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(wheel)
BuildRequires:	python3egg(pbr)

%description
The RPM Package Manager (http://rpm.org) has a version comparision algorithm,
implemented in its C library, which performs the comparison in a certain way.

In certain circumstances, where the C library is not installable (for example,
on non-rpm based systems), or does not support the desired version of
the python2 interpreter, the pure-python implementation may be useful.

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Pure Python3 implementation of rpmvercmp
Group:		Development/Python

%description -n python3-%{pypi_name}
The RPM Package Manager (http://rpm.org) has a version comparision algorithm,
implemented in its C library, which performs the comparison in a certain way.

In certain circumstances, where the C library is not installable (for example,
on non-rpm based systems), or does not support the desired version of
the python2 interpreter, the pure-python implementation may be useful.

%files -n python3-%{pypi_name}
%doc LICENSE README.rst
%{python3_sitelib}/%{oname}
%{python3_sitelib}/%{oname}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16539 |21mr|python-rsa-4.7.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name rsa

Name:           python-%{pypi_name}
Version:	4.7.2
Release:	2
Summary:        Pure-Python RSA implementation
Group:		Development/Python
License:        ASL 2.0
URL:            http://stuvel.eu/rsa
Source0:	https://files.pythonhosted.org/packages/db/b5/475c45a58650b0580421746504b680cd2db4e81bc941e94ca53785250269/rsa-4.7.2.tar.gz
BuildArch:      noarch

%description
Python-RSA is a pure-Python RSA implementation. It supports encryption
and decryption, signing and verifying signatures, and key generation
according to PKCS#1 version 1.5. It can be used as a Python library as
well as on the command-line.

%package -n     python3-%{pypi_name}
Summary:        Pure-Python RSA implementation
%{?python_provide:%python_provide python3-%{pypi_name}}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-setuptools

%description -n python3-%{pypi_name}
Python-RSA is a pure-Python RSA implementation. It supports encryption
and decryption, signing and verifying signatures, and key generation
according to PKCS#1 version 1.5. It can be used as a Python library as
well as on the command-line.

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install
cp %{buildroot}%{_bindir}/pyrsa-priv2pub %{buildroot}%{_bindir}/pyrsa-priv2pub-3
cp %{buildroot}%{_bindir}/pyrsa-keygen %{buildroot}%{_bindir}/pyrsa-keygen-3
cp %{buildroot}%{_bindir}/pyrsa-encrypt %{buildroot}%{_bindir}/pyrsa-encrypt-3
cp %{buildroot}%{_bindir}/pyrsa-decrypt %{buildroot}%{_bindir}/pyrsa-decrypt-3
cp %{buildroot}%{_bindir}/pyrsa-sign %{buildroot}%{_bindir}/pyrsa-sign-3
cp %{buildroot}%{_bindir}/pyrsa-verify %{buildroot}%{_bindir}/pyrsa-verify-3

%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{_bindir}/pyrsa-priv2pub
%{_bindir}/pyrsa-keygen
%{_bindir}/pyrsa-encrypt
%{_bindir}/pyrsa-decrypt
%{_bindir}/pyrsa-sign
%{_bindir}/pyrsa-verify
%{_bindir}/pyrsa-priv2pub-3
%{_bindir}/pyrsa-keygen-3
%{_bindir}/pyrsa-encrypt-3
%{_bindir}/pyrsa-decrypt-3
%{_bindir}/pyrsa-sign-3
%{_bindir}/pyrsa-verify-3
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16540 |21mr|python-rst2pdf-0.98-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Do not update to v.0.98, its need importlib_metadata no available in repo
# in next versions developer removed use importlib_metadata
%define pypi_name rst2pdf

Summary:	Convert restructured text to PDF via reportlab
Name:		python-%{pypi_name}
Version:	0.98
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://rst2pdf.org/
Source0:	https://github.com/rst2pdf/rst2pdf/archive/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
The usual way of creating PDF from reStructuredText is by going through LaTeX.
This tool provides an alternative by producing PDF directly using the ReportLab
library.

#-----------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Convert restructured text to PDF via reportlab
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	python3egg(docutils)
Requires:	python3egg(pdfrw)
Requires:	python3egg(pygments)
Requires:	python3egg(reportlab)
Requires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
The usual way of creating PDF from reStructuredText is by going through LaTeX.
This tool provides an alternative by producing PDF directly using the ReportLab
library.

%files -n python3-%{pypi_name}
%doc README.rst LICENSE.txt CHANGES.rst
%{_bindir}/rst2pdf
%{python3_sitelib}/rst2pdf
%{python3_sitelib}/rst2pdf*.egg-info

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16541 |21mr|python-rtslib-2.1.74-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rtslib

Summary:	API for RisingTide Systems generic SCSI target
Name:		python-%{oname}
Version:	2.1.74
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		http://github.com/open-iscsi/rtslib-fb
Source0:	https://pypi.python.org/packages/source/r/%{oname}-fb/%{oname}-fb-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
rtslib-fb is an object-based Python library for configuring the LIO generic
SCSI target, present in 3.x Linux kernel versions.

It supports both Python 2 and Python 3, thanks to the python2-six library.

#----------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	API for RisingTide Systems generic SCSI target
Group:		Development/Python

%description -n python3-%{oname}
rtslib-fb is an object-based Python library for configuring the LIO generic
SCSI target, present in 3.x Linux kernel versions.

It supports both Python 2 and Python 3, thanks to the python-six library.

%files -n python3-%{oname}
%doc README.md
%{_bindir}/targetctl
%{py3_puresitedir}/rtslib
%{py3_puresitedir}/rtslib_fb
%{py3_puresitedir}/rtslib*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn rtslib-fb-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16542 |21mr|python-ruamel-yaml-0.17.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ruamel.yaml
%global pname ruamel-yaml

Summary:	YAML 1.2 loader/dumper package for Python
Name:		python-%{pname}
Version:	0.17.17
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/ruamel.yaml
Source0:	%pypi_source
BuildArch:	noarch

%description
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
It is a derivative of Kirill Simonov’s PyYAML 3.11

#----------------------------------------------------------------------------

%package -n python3-%{pname}
Summary:	YAML 1.2 loader/dumper package for Python
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-ruamel-yaml-clib
Requires:	python3-setuptools
Provides:	python3-%{pypi_name} = %{EVRD}

%description -n python3-%{pname}
ruamel.yaml is a YAML 1.2 loader/dumper package for Python.
It is a derivative of Kirill Simonov’s PyYAML 3.11

%files -n python3-%{pname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/ruamel
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?-*.pth
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%__python3 setup.py install --single-version-externally-managed --skip-build --root %{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16543 |21mr|python-ruamel-yaml-clib-0.2.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ruamel.yaml.clib
%global pname ruamel-yaml-clib

Summary:	C version of reader, parser and emitter for ruamel.yaml derived from libyaml
Name:		python-%{pname}
Version:	0.2.6
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://bitbucket.org/ruamel/yaml.clib
# pypi source
Source0:	%pypi_source
BuildRequires:	pkgconfig(yaml-0.1)

%description
It is the C based reader/scanner and emitter for ruamel.yaml.

#----------------------------------------------------------------------------

%package -n python3-%{pname}
Summary:	C version of reader, parser and emitter for ruamel.yaml derived from libyaml
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-setuptools

%description -n python3-%{pname}
It is the C based reader/scanner and emitter for ruamel.yaml.

%files -n python3-%{pname}
%license LICENSE
%doc README.rst
%{python3_sitearch}/_ruamel_yaml.cpython-*
%{python3_sitearch}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%__python3 setup.py install --single-version-externally-managed --skip-build --root %{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16544 |21mr|python-s3transfer-0.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name s3transfer

Name:		python-%{upstream_name}
Version:	0.6.0
Release:	1
Summary:	Amazon S3 Transfer Manager for Python
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/boto/botocore
Source:		https://github.com/boto/s3transfer/archive/%{version}/s3transfer-%{version}.tar.gz
BuildArch:	noarch

%description
S3transfer is a Python library for managing Amazon S3 transfers.

Note:
This project is not currently GA. If you are planning to use this code in
production, make sure to lock to a minor version as interfaces may break from
minor version to minor version. For a basic, stable interface of s3transfer,
try the interfaces exposed in boto3

#------------------------------------------------------------------------------
%package -n python3-%{upstream_name}
Summary:	Amazon S3 Transfer Manager for Python
Group:		Development/Python
BuildRequires:	python3egg(setuptools)

%description -n python3-%{upstream_name}
S3transfer is a Python library for managing Amazon S3 transfers.

%files -n python3-%{upstream_name}
%{python3_sitelib}/*

#------------------------------------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16545 |21mr|python-sane-2.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Refer to the comment for Source0 below on how to obtain the source tarball
# The saved file has format python2-pillow-Sane-$version-$ahead-g$shortcommit.tar.gz
%define commit ab329285b6d6f65d268abecb3490b425566bf3d6
%define shortcommit %(c=%{commit}; echo ${c:0:7})
%define ahead 0

Name:		python-sane
Version:	2.9.1
Release:	1
Summary:	Python3 SANE interface
Group:		Development/Python
License:	MIT
URL:		https://github.com/python-pillow/Sane

# Obtain the tarball for a certain commit via:
#  wget --content-disposition https://github.com/python-pillow/Sane/tarball/$commit
Source0:	https://github.com/python-pillow/Sane/tarball/%{commit}/python-pillow-Sane-v%{version}-%{ahead}-g%{shortcommit}.tar.gz

BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)

%description
This package contains the sane module for Python3 which provides access to
various raster scanning devices such as flatbed scanners and digital cameras.

#----------------------------------------------------------------------------
%package -n python3-sane
Summary:	Python3 SANE interface
Group:		Development/Python
Obsoletes:	python3-pillow-sane < 2.8.2-1
Provides:	python3-pillow-sane = %{EVRD}
Requires:	python3-pillow

%description -n python3-sane
This package contains the sane module for Python3 which provides access to
various raster scanning devices such as flatbed scanners and digital cameras.

%files -n python3-sane
%doc CHANGES.rst sanedoc.txt example.py doc/_build/html
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n python-pillow-Sane-%{shortcommit}

%build
find -name '*.py' | xargs sed -i '1s|^#!.*python|#!%{__python3}|'
CFLAGS="%{optflags}" %__python3 setup.py build

pushd doc
make html
rm -f _build/html/.buildinfo
popd

%install
%py3_install

# Fix non-standard-executable-perm
chmod 0755 %{buildroot}%{python3_sitearch}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16546 |21mr|python-scandir-1.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name scandir
%global sum   A better directory iterator and faster os.walk() for Python
%global desc scandir() is a directory iteration function like os.listdir(), except that \
instead of returning a list of bare filenames, it yields DirEntry objects that \
include file type and stat information along with the name. Using scandir() \
increases the speed of os.walk() by 2-20 times (depending on the platform and \
file system) by avoiding unnecessary calls to os.stat() in most cases. \
scandir is included in the Python 3.5+ standard library.

Name:           python-%{pypi_name}
Version:	1.10.0
Release:	1
Summary:        %{sum}
Group:		Development/Python
URL:            https://github.com/benhoyt/scandir
Source0:	https://files.pythonhosted.org/packages/df/f5/9c052db7bd54d0cbf1bc0bb6554362bba1012d03e5888950a4f5c5dadc4e/scandir-1.10.0.tar.gz
License:        BSD

BuildRequires:  gcc

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
%{desc}

# Python 3 package
%package -n     python3-%{pypi_name}
Summary:        %{sum}

%description -n python3-%{pypi_name}
%{desc}


%prep
%setup -q -n %{pypi_name}-%{version}

%build
CFLAGS="%{optflags}" %py3_build

%install
python3 setup.py install --skip-build --root %{buildroot}

%check
export LANG=en_US.utf8 LC_ALL=en_US.utf8

python3 test/run_tests.py
rm -rf test/testdir

%files -n python3-%{pypi_name}
%doc README* test benchmark.py LICENSE*
%{py3_platsitedir}/scandir*
%attr(755,root,root) %{py3_platsitedir}/_scandir*.so
%{py3_platsitedir}/__pycache__/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16547 |21mr|python-scikit-build-0.16.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name scikit-build
Name:           python-scikit-build
Version:        0.16.4
Release:        1
Summary:        Improved build system generator for Python C/C++/Fortran/Cython extensions
Group:          Development/Python
License:        MIT
URL:            https://github.com/scikit-build/scikit-build
Source0:        https://pypi.io/packages/source/s/scikit-build/scikit-build-%{version}.tar.gz
Patch0:         scikit-build-requirements.patch
BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  cmake
BuildRequires:  ninja

%description
Improved build system generator for Python C/C++/Fortran/Cython extensions

#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        Improved build system generator for Python C/C++/Fortran/Cython extensions
Group:          Development/Python
Requires:       cmake
Requires:       python3-distro
Requires:       python3-packaging
Requires:       python3-setuptools >= 28.0.0
Requires:       python3-wheel >= 0.29.0

%description -n python3-%{pypi_name}
Improved build system generator for Python C/C++/Fortran/Cython extensions

%files -n python3-%{pypi_name}
%doc AUTHORS.rst README.rst CONTRIBUTING.rst HISTORY.rst docs/
%license LICENSE
%{python3_sitelib}/*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n scikit-build-%{version}
%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16548 |21mr|python-scipy-1.6.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

%define module scipy

Summary:        Scientific tools for Python
Name:           python-%{module}
Version:	1.6.3
Release:	3
License:        BSD
Group:          Development/Python
Url:            http://www.scipy.org
Source0:        https://github.com/%{module}/%{module}/releases/download/v%{version}/scipy-%{version}.tar.gz
#Patch0:        scipy-1.2.1-linkage.patch
BuildRequires:  gcc-gfortran
BuildRequires:  python3-matplotlib
BuildRequires:  python3-nose
BuildRequires:  python3-sphinx
BuildRequires:  swig
BuildRequires:  python3-numpy-devel
BuildRequires:  python3-numpy-f2py
BuildRequires:  umfpack-devel
BuildRequires:  pkgconfig(blas)
BuildRequires:  pkgconfig(lapack)
BuildRequires:  pkgconfig(netcdf)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-pybind11
BuildRequires:  python3-cython
Requires:       python3-numpy

%description
SciPy is an open source library of scientific tools for Python. SciPy
supplements the popular numpy module, gathering a variety of high level
science and engineering modules together as a single package.

SciPy includes modules for graphics and plotting, optimization, integration,
special functions, signal and image processing, genetic algorithms, ODE
solvers, and others.

#----------------------------------------------------------------------------

%package -n  python3-%{module}
Summary:     %{summary}
Group:       Development/Python

%description -n python3-%{module}
SciPy is an open source library of scientific tools for Python. SciPy
supplements the popular numpy module, gathering a variety of high level
science and engineering modules together as a single package.

%files -n python3-%{module}
%doc LICENSE.txt
%dir %{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}/*
%{py3_platsitedir}/%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
%autopatch -p1

find . -type f -name "*.py" -exec sed -i "s|#!/usr/bin/env python||" {} \;

cat > site.cfg << EOF
[amd]
library_dirs = %{_libdir}
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
amd_libs = amd

[umfpack]
library_dirs = %{_libdir}
include_dirs = /usr/include/suitesparse:/usr/include/ufsparse
umfpack_libs = umfpack
EOF

%build
# workaround for not using colorgcc when building due to colorgcc
# messes up output redirection..
# env CC=gcc CXX=g++ PATH=${PATH#%{_datadir}/colorgcc:} \
# CFLAGS="%{optflags} -fno-strict-aliasing -fno-lto" \
# FFLAGS="$RPM_OPT_FLAGS -fPIC" \
# ATLAS=%{_libdir}/atlas \
# FFTW=%{_libdir} \
# BLAS=%{_libdir} \
# LAPACK=%{_libdir} \
# python setup.py config_fc --fcompiler=gnu95 --noarch build build_ext -lm
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16549 |21mr|python-scour-0.38.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name scour

Summary:	SVG optimizer/cleaner
Summary(ru_RU.UTF-8):	Модуль Python для оптимизации SVG
Name:		python-%{pypi_name}
Version:	0.38.2
Release:	2
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/scour-project/scour
Source0:	https://github.com/scour-project/scour/archive/v%{version}.tar.gz#/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(pytest)
BuildArch:	noarch

%define _description \
Scour is an SVG optimizer/cleaner that reduces the size of scalable \
vector graphics by optimizing structure and removing unnecessary data.

%define _description_ru \
Scour - это оптимизатор SVG, который уменьшает размер масштабируемой \
векторной графики за счет оптимизации структуры и удаления ненужных данных.

%description
%{_description}

%description -l ru_RU.UTF-8
%{_description_ru}

#------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
Provides:	%{pypi_name} = %{EVRD}

%description -n python3-%{pypi_name}
%{_description}

%description -n python3-%{pypi_name} -l ru_RU.UTF-8
%{_description_ru}

%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{_bindir}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16550 |21mr|python-scp-0.14.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name scp

Summary:	Scp module for paramiko
Name:		python-%{pypi_name}
Version:	0.14.1
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/jbardin/scp.py
Source0:	https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
The scp.py module uses a paramiko transport to send and receive files via the
scp1 protocol. This is the protocol as referenced from the openssh scp program,
and has only been tested with this implementation.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	scp module for paramiko
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	python3-devel
# For tests
BuildRequires:	python3-paramiko
Requires:	python3-paramiko

%description -n python3-%{pypi_name}
The scp.py module uses a paramiko transport to send and receive files via the
scp1 protocol. This is the protocol as referenced from the openssh scp program,
and has only been tested with this implementation.

%files -n python3-%{pypi_name}
%doc README.rst PKG-INFO
%license LICENSE.txt
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
rm -r %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
# Tests fail without open local ssh server
#__python3 setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16551 |21mr|python-scrypt-0.8.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name scrypt

Summary:	Bindings for the scrypt key derivation function library
Name:		python-%{pypi_name}
Version:	0.8.19
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://bitbucket.org/mhallin/py-scrypt
Source0:	https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(openssl)

%description
Python scrypt bindings This is a set of Python bindings for the scrypt key
derivation function. Scrypt is useful when encrypting password as it is
possible to specify a *minimum* amount of time to use when encrypting and
decrypting. If, for example, a password takes 0.05 seconds to verify,
a user won't notice the slight delay when signing in, but doing a brute
force search of several...

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Bindings for the scrypt key derivation function library
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
Python scrypt bindings This is a set of Python bindings for the scrypt key
derivation function. Scrypt is useful when encrypting password as it is
possible to specify a *minimum* amount of time to use when encrypting and
decrypting. If, for example, a password takes 0.05 seconds to verify,
a user won't notice the slight delay when signing in, but doing a brute
force search of several...

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitearch}/%{pypi_name}
%{python3_sitearch}/_%{pypi_name}*.so
%{python3_sitearch}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16552 |21mr|python-scss-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Filter the _speedups.so provides that otherwise comes into the provides
%global __provides_exclude _speedups\\.so
%define module pyScss2

Name:		python-scss
Version:	2.0.0
Release:	1
Summary:	A SCSS compiler for Python
Group:		Development/Python
License:	MIT
URL:		https://github.com/Kronuz/pyScss
Source0:	https://pypi.io/packages/source/p/%{module}/%{module}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)
BuildRequires:	pkgconfig(libpcre)

%description
A SCSS compiler for Python.

#-----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	A SCSS compiler for Python3
Group:		Development/Python
Provides:	pyscss = %{EVRD}
Provides:	pyscss2 = %{EVRD}
Provides:	python3egg(pyscss)
Provides:	python3dist(pyscss)

%description -n python3-%{module}
A SCSS compiler for Python3.

%files -n python3-%{module}
%doc DESCRIPTION README.rst
%{python3_sitearch}/*
%{_bindir}/pyscss
%{_bindir}/less2scss

#-----------------------------------------------------------------------

%prep
%autosetup -n pyScss2-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16553 |21mr|python-secretstorage-3.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define pypi_name secretstorage

Name:		python-secretstorage
Version:	3.3.1
Release:	1
Summary:	Provides a way for securely storing passwords and other secrets
Group:		Development/Python
License:	BSD
Url:		https://github.com/mitya57/secretstorage
Source0:	https://files.pythonhosted.org/packages/cd/08/758aeb98db87547484728ea08b0292721f1b05ff9005f59b040d6203c009/SecretStorage-3.3.1.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(jeepney)
BuildRequires:  python3egg(cryptography)

%description
This module provides a way for securely storing passwords and other secrets.
It uses D-Bus Secret Service API that is supported by GNOME Keyring
(since version 2.30) and KSecretsService.
The main classes provided are secretstorage.Item, representing a secret
item (that has a label, a secret and some attributes) and secretstorage.
Collection, a place items are stored in.
SecretStorage supports most of the functions provided by Secret Service,
including creating and deleting items and collections, editing items,
locking and unlocking collections (asynchronous unlocking is also supported).

#----------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Provides a way for securely storing passwords and other secrets
Group:		Development/Python

%description -n python3-%{pypi_name}
This module provides a way for securely storing passwords and other secrets.
It uses D-Bus Secret Service API that is supported by GNOME Keyring
(since version 2.30) and KSecretsService.
The main classes provided are secretstorage.Item, representing a secret
item (that has a label, a secret and some attributes) and secretstorage.
Collection, a place items are stored in.
SecretStorage supports most of the functions provided by Secret Service,
including creating and deleting items and collections, editing items,
locking and unlocking collections (asynchronous unlocking is also supported).


%files -n python3-%{pypi_name}
%doc LICENSE README.rst
%{python3_sitelib}/*

#----------------------------------------------------------------------------

%prep
%setup -qn SecretStorage-%{version}
%autopatch -p1
rm -rf *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16554 |21mr|python-selenium-3.141.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	selenium

Summary:	Python bindings for Selenium
Name:		python-%{module}
Version:	3.141.0
Release:	3
Source0:	http://pypi.python.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
License:	Apache License
Group:		Development/Python
Url:		http://pypi.python.org/pypi/selenium
BuildArch:	noarch
Requires:	python3-rdflib >= 3.1.0

%description
Selenium Python Client Driver is a Python language binding for
Selenium Remote Control (version 1.0 and 2.0).

Currently the remote protocol, Firefox and Chrome for Selenium 2.0 are
supported, as well as the Selenium 1.0 bindings.

%package -n python3-%{module}
Summary:	Python 3 bindings for Selenium
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools

%description -n python3-%{module}
Selenium Python 3 Client Driver is a Python 3 language binding for
Selenium Remote Control (version 1.0 and 2.0).

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

rm -f %{buildroot}%{py3_puresitedir}/selenium/webdriver/firefox/amd64/x_ignore_nofocus.so
rm -f %{buildroot}%{py3_puresitedir}/selenium/webdriver/firefox/x86/x_ignore_nofocus.so

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16555 |21mr|python-semantic_version-2.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name semantic_version

Name:		python-%{pypi_name}
Version:	2.8.5
Release:	1
Summary:	Library implementing the 'SemVer' scheme
Group:		Development/Python
License:	BSD
URL:		https://github.com/rbarrois/python-semanticversion
Source0:	%{url}/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch


%description
This small python library provides a few tools to handle semantic versioning
in Python.

#---------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(django)

%description -n python3-%{pypi_name}
This small python library provides a few tools to handle semantic versioning
in Python.

Python 3 version.

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst ChangeLog
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-*.egg-info

#---------------------------------------------------------------------------

%package doc
Summary:	Documentation for python-%{pypi_name}
Group:		Documentation
BuildRequires:	python3egg(sphinx)

%description doc
%{summary}.

%files doc
%doc LICENSE
%doc html

#---------------------------------------------------------------------------

%prep
%setup -q -n python-semanticversion-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# documentation builds due to broken symlink
# https://github.com/rbarrois/python-semanticversion/issues/20
rm docs/credits.rst

%build
%py3_build

# generate html docs
sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16556 |21mr|python-seqdiag-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module seqdiag

Name:		python-%{module}
Version:	2.0.0
Release:	1
Summary:	seqdiag generates sequence-diagram images from text
Group:		Development/Python
License:	ASL 2.0
URL:		http://blockdiag.com/
Source0:	https://pypi.python.org/packages/source/s/seqdiag/%{module}-%{version}.tar.gz

BuildArch:      noarch

%description
seqdiag and its family generate diagram images from simply text file.

Features:
- Generates beautiful diagram images from simple text format (similar to
  graphviz’s DOT format)
- Layouts diagram elements automatically
- Embeds to many documentations; Sphinx, Trac, Redmine and some wikis

#-----------------------------------------------------------------------
%package -n python3-%{module}
Summary:	seqdiag generates sequence-diagram images from text
Group:		Development/Python

BuildRequires:  python3egg(blockdiag)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(docutils)
BuildRequires:  python3egg(reportlab)
BuildRequires:  python3egg(setuptools)

Requires:       python3-blockdiag
Requires:       python3-reportlab

%description -n python3-%{module}
seqdiag and its family generate diagram images from simply text file.

Features:
- Generates beautiful diagram images from simple text format (similar to
  graphviz’s DOT format)
- Layouts diagram elements automatically
- Embeds to many documentations; Sphinx, Trac, Redmine and some wikis

%files -n python3-%{module}
%{_bindir}/%{module}
%{_mandir}/man1/%{module}.1*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{module}*
%exclude %{python3_sitelib}/%{module}/tests

#----------------------------------------------------------------------------
%prep
%setup -q -n %{module}-%{version}

find           -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%py3_build

%install
%py3_install
install -m 0644 -D %{module}.1 %{buildroot}%{_mandir}/man1/%{module}.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16557 |21mr|python-serial-3.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Python serial port extension
Name:		python-serial
Version:	3.2.1
Release:	2
License:	Python license
Group:		Development/Python
Url:		https://pypi.python.org/pypi/pyserial/
Source0:	https://pypi.python.org/packages/source/p/pyserial/pyserial-%{version}.tar.gz
BuildRequires:	dos2unix
Provides:	pyserial = %{EVRD}
Conflicts:	python3-serial < 3.2.1
BuildArch:	noarch

%description
This module encapsulates the access for the serial port.

It provides backends for Python running on Windows, Linux, BSD (possibly any
POSIX compilant system) and Jython. The module named "serial" automatically
selects the appropriate backend.

%package -n python2-serial
%py2_migration_meta python2-serial
Summary:	Python 2 serial port extension
Group:		Development/Python
BuildRequires:	pkgconfig(python2)

%description -n python2-serial
This module encapsulates the access for the serial port.

It provides backends for Python running on Windows, Linux, BSD (possibly any
POSIX compilant system) and Jython. The module named "serial" automatically
selects the appropriate backend.

%files -n python2-serial
%doc LICENSE.txt examples
%{_bindir}/miniterm.py
%{py2_puresitedir}/serial
%{py2_puresitedir}/pyserial-%{version}-py%{python2_version}.egg-info

#----------------------------------------------------------------------------

%package -n python3-serial
Summary:	Python 3 serial port extension
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

%description -n python3-serial
This module encapsulates the access for the serial port.

It provides backends for Python running on Windows, Linux, BSD (possibly any
POSIX compilant system) and Jython. The module named "serial" automatically
selects the appropriate backend.

%files -n python3-serial
%doc LICENSE.txt
%{_bindir}/miniterm3.py
%{py3_puresitedir}/serial
%{py3_puresitedir}/pyserial-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn pyserial-%{version}

#fix shebangs
perl -pi -e "s/#! python/#!\/usr\/bin\/env python/" serial/*.py
perl -pi -e "s/#!jython/#!\/usr\/bin\/env jython/" serial/*.py
perl -pi -e "s/#! python/#!\/usr\/bin\/env python/" serial/*/*.py
perl -pi -e "s/#!jython/#!\/usr\/bin\/env jython/" serial/*/*.py


cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd
%py2_build

%install
pushd %{py3dir}
%py3_install
mv %{buildroot}%{_bindir}/miniterm.py %{buildroot}%{_bindir}/miniterm3.py
popd
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16558 |21mr|python-service_identity-18.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	service_identity

Summary:	Service identity verification for pyOpenSSL
Name:		python-%{oname}
Version:	18.1.0
Release:	3
License:	MIT
Group:		Development/Python
Url:		https://github.com/pyca/service_identity
Source0:	https://files.pythonhosted.org/packages/9a/3d/9eb0563e066ea0540cf580695593ab079376e920016d4d1b3ff2fd8abf4b/service_identity-18.1.0.tar.gz
BuildRequires:	python2-devel
BuildRequires:	pythonegg(setuptools)
Provides:	python-service-identity = %{EVRD}
Obsoletes:	python-service-identity < %{EVRD}
BuildArch:	noarch

%description
Service Identity Verification for pyOpenSSL

Use this package if you use pyOpenSSL and don’t want to be MITMed.

service_identity aspires to give you all the tools you need for verifying
whether a certificate is valid for the intended purposes.

In the simplest case, this means host name verification. However,
service_identity implements RFC 6125 fully and plans to add other relevant RFCs
too.

#-----------------------------------------------------------------------------

%package -n python3-service_identity
Summary:	Logging as Storytelling
Group:		Development/Python
Provides:	python3-service-identity = %{EVRD}
Obsoletes:	python3-service-identity < %{EVRD}
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description -n python3-service_identity
Service Identity Verification for pyOpenSSL

Use this package if you use pyOpenSSL and don’t want to be MITMed.

service_identity aspires to give you all the tools you need for verifying
whether a certificate is valid for the intended purposes.

In the simplest case, this means host name verification. However,
service_identity implements RFC 6125 fully and plans to add other relevant RFCs
too.

%files -n python3-service_identity
%doc README.rst LICENSE
%{py3_puresitedir}/service_identity
%{py3_puresitedir}/service_identity-%{version}-py%{py3_ver}.egg-info

#------------------------------------------------------------------------------

%prep
%setup -q -n service_identity-%{version}
# Remove bundled egg-info
rm -rf service_identity.egg-info
rm -rf %{py3dir} && mkdir %{py3dir}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16559 |21mr|python-setproctitle-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	setproctitle

Name:		python-%{module}
Version:	1.2.2
Release:	1
Summary:	A library allowing a process to change its title
License:	BSD
Group:		Development/Python
Url:		https://github.com/dvarrazzo/py-setproctitle/
Source0:	https://files.pythonhosted.org/packages/a1/7f/a1d4f4c7b66f0fc02f35dc5c85f45a8b4e4a7988357a29e61c14e725ef86/setproctitle-1.2.2.tar.gz

BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python)

%description
The library allows a process to change its title (as displayed by system tools
such as ps and top).
Changing the title is mostly useful in multi-process systems, for example when
a master process is forked: changing the children's title allows to identify
the task each process is busy with.

#--------------------------------------------------------------------
%package -n	python3-%{module}
Summary:	A library allowing a process to change its title
Group:		Development/Python

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n	python3-%{module}
The library allows a process to change its title (as displayed by system tools
such as ps and top).
Changing the title is mostly useful in multi-process systems, for example when
a master process is forked: changing the children's title allows to identify
the task each process is busy with.

This is the Python 3 version of the package.

%files -n python3-%{module}
%doc HISTORY.rst README.rst
%{py3_platsitedir}/%{module}.cpython-3*.so
%{py3_platsitedir}/%{module}-%{version}-py%{py3_ver}.egg-info
#--------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16560 |21mr|python-setuptools-57.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module setuptools
%define _xz_threads 0

Summary:	Python Distutils Enhancements
Name:		python-%{module}
# WARNING
# do not update this package without python3 upgrade to 3.10
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=11773
Version:	57.4.0
Release:	1
License:	Zope Public License (ZPL)
Group:		Development/Python
Url:		https://pypi.org/project/setuptools/
Source0:	https://files.pythonhosted.org/packages/db/e2/c0ced9ccffb61432305665c22842ea120c0f649eec47ecf2a45c596707c4/setuptools-57.4.0.tar.gz
BuildArch:	noarch

%description
A collection of enhancements to the Python distutils that allow
you to more easily build and distribute Python packages, especially
ones that have dependencies on other packages.

#-------------------------------------------------------------------
%package -n python3-setuptools
Summary:	Python Distutils Enhancements
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

Requires:	python3-pkg-resources
Provides:	python3-%{module} = %{EVRD}
%rename	python-distribute
Provides:	python3-distribute
Provides:	python3egg(setuptools) = %{EVRD}
Provides:	python3egg(distribute) = %{EVRD}

%description -n python3-setuptools
A collection of enhancements to the Python distutils that allow
you to more easily build and distribute Python packages, especially
ones that have dependencies on other packages.

%files -n python3-setuptools
%{py3_puresitedir}/*
%exclude %{py3_puresitedir}/pkg_resources

#-------------------------------------------------------------------
%package -n python3-pkg-resources
Summary:	Runtime module to access python resources
Group:		Development/Python
Conflicts:	python-setuptools < 0.6c9-2mdv
Provides:	python-pkg-resources
Requires:	python3-packaging
Requires:	python3-appdirs

%description -n python3-pkg-resources
Module used to find and manage Python package/version dependencies and access
bundled files and resources, including those inside of zipped .egg files.

%files -n python3-pkg-resources
%{py3_puresitedir}/pkg_resources

#-------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
export CFLAGS="%{optflags}"

%py3_build

%check
#%__python setup.py test

%install
%py3_install

find %{buildroot}%{python3_sitelib} -name '*.exe' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16561 |21mr|python-setuptools-git-ls-files-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

%global module setuptools-git-ls-files

Summary:	A plugin for setuptools that finds all git tracked files
Name:		python-%{module}
Version:	0.1.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/setuptools-git-ls-files
Source0:	https://files.pythonhosted.org/packages/source/s/%{module}/setuptools_git_ls_files-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
BuildRequires:	python3dist(setuptools-scm)

%description
A plugin for setuptools that finds all git tracked files.

#---------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A plugin for setuptools that finds all git tracked files
Group:		Development/Python

%description -n python3-%{module}
A plugin for setuptools that finds all git tracked files.

%files -n python3-%{module}
%doc README.md
%license LICENSE
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/setuptools_git_ls_files.py
%{python3_sitelib}/setuptools_git_ls_files-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------------------

%prep
%autosetup -n setuptools_git_ls_files-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16562 |21mr|python-setuptools-rust-0.12.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name setuptools-rust
%define oname     setuptools_rust

Name:           python-%{pypi_name}
Version:        0.12.1
Release:        3
Summary:        Compile and distribute Python extensions written in Rust as easily as if they were written in C
Url:            https://pypi.org/project/setuptools-rust/
Source0:        http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
License:        MIT
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)
Obsoletes:      %{name} < %{EVRD}

%description
%{summary}.

# --------------------------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Provides:       python3-%{pypi_name}
Obsoletes:      python3-%{pypi_name} < %{EVRD}       

%description -n python3-%{pypi_name}
%{summary}.

%files  -n     python3-%{pypi_name}
%{python3_sitelib}/%{oname}-*-py%{python3_version}.egg-info/
%{python3_sitelib}/%{oname}/__pycache__/*.pyc
%{python3_sitelib}/%{oname}/*.py

# --------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16563 |21mr|python-setuptools_scm-6.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define srcname setuptools_scm
%bcond_with tests

Summary:	The blessed package to manage your versions by scm tags
Name:		python-%{srcname}
Version:	6.0.1
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://pypi.python.org/pypi/%{srcname}
Source0:	https://files.pythonhosted.org/packages/57/38/930b1241372a9f266a7df2b184fb9d4f497c2cef2e016b014f82f541fe7c/setuptools_scm-6.0.1.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
# For tests
%if %{with tests}
BuildRequires:	git-core
BuildRequires:	mercurial
BuildRequires:	python3-pytest
%endif
BuildArch:		noarch

%description
Setuptools_scm handles managing your python package versions in scm metadata.
It also handles file finders for the suppertes scms.

#-----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	The blessed package to manage your versions by scm tags
Group:		Development/Python

%description -n python3-%{srcname}
Setuptools_scm handles managing your python package versions in scm metadata.
It also handles file finders for the suppertes scms.

%files -n python3-%{srcname}
%doc CHANGELOG.rst LICENSE README.rst
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -n %{srcname}-%{version}

cp -a . %{py3dir}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16564 |21mr|python-setuptools-scm-git-archive-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name setuptools-scm-git-archive

Name:           python-%{pypi_name}
Version:        1.1
Release:        2
Summary:        Setuptools_scm plugin for git archives
Group:          Development/Python
License:        MIT
URL:            https://github.com/Changaco/setuptools_scm_git_archive/
Source0:        https://files.pythonhosted.org/packages/source/s/%{pypi_name}/setuptools_scm_git_archive-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
This is a setuptools_scm plugin that adds support for git archives (for
example the ones GitHub automatically generates). Note that it only works for
archives of tagged commits (because git currently lacks a format option
equivalent to git describe --tags).

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
This is a setuptools_scm plugin that adds support for git archives (for
example the ones GitHub automatically generates). Note that it only works for
archives of tagged commits (because git currently lacks a format option
equivalent to git describe --tags).

%prep
%setup -qn setuptools_scm_git_archive-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
# Must do the default python version install last because
# the scripts in /usr/bin are overwritten with every setup.py install.
%py3_install

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/setuptools_scm_git_archive/
%{py3_puresitedir}/setuptools_scm_git_archive-*-py?.?.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16565 |21mr|python-sh-1.12.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Subprocess replacement for python
Name:		python-sh
Version:	1.12.14
Release:	2
Source0:	https://files.pythonhosted.org/packages/7c/71/199d27d3e7e78bf448bcecae0105a1d5b29173ffd2bbadaa95a74c156770/sh-%{version}.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://pypi.org/project/sh/
BuildArch:	noarch

%description
sh is a full-fledged subprocess replacement for Python 2.6 - 3.6,
PyPy and PyPy3 that allows you to call any program as if it were
a function:

.. code:: python

from sh import ifconfig
print ifconfig("eth0")

sh is *not* a collection of system commands implemented in Python.

#-----------------------------------------------------------------

%package -n python3-sh
Summary:        A Python command line parser inspired by optparse
Group:          Development/Python
BuildRequires:	python3-distribute
BuildRequires:	python3-setuptools
BuildRequires:	python3-pkg-resources

%description -n python3-sh
sh is a full-fledged subprocess replacement for Python 2.6 - 3.6,
PyPy and PyPy3 that allows you to call any program as if it were
a function:

.. code:: python

from sh import ifconfig
print ifconfig("eth0")

sh is *not* a collection of system commands implemented in Python.

%files -n python3-sh
%{py3_puresitedir}/sh.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/*.egg-info

#-----------------------------------------------------------------

%prep
%setup -qn sh-%{version}
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16566 |21mr|python-shapely-1.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	Shapely
%define module	shapely

Name:		python-%{module}
Version:	1.8.0
Release:	3
Summary:	Geometric objects, predicates, and operations
Source0:	https://files.pythonhosted.org/packages/1c/0c/454c80f71bd5ece52fb06d2905bf956b9122f4be539d5ae5df4b10dd3e14/Shapely-1.8.0.tar.gz
License:	BSD
Group:		Development/Python
Url:		https://github.com/Toblerity/%{oname}
BuildRequires:	geos-devel
Requires:		geos-devel

%description
Shapely is a BSD-licensed Python package for manipulation and analysis of
planar geometric objects. It is based on the widely deployed GEOS
(the engine of PostGIS) and JTS (from which GEOS is ported)
libraries. Shapely is not concerned with data formats or coordinate systems,
but can be readily integrated with packages that are.

%package -n python3-%{module}
Summary:        Geometric objects, predicates, and operations
Group:          Development/Python
BuildRequires:  flex
BuildRequires:  bison
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools


%description -n python3-%{module}
Shapely is a BSD-licensed Python package for manipulation and analysis of
planar geometric objects. It is based on the widely deployed GEOS
(the engine of PostGIS) and JTS (from which GEOS is ported)
libraries. Shapely is not concerned with data formats or coordinate systems,
but can be readily integrated with packages that are.


%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc CHANGES.txt CREDITS.txt LICENSE.txt README.rst VERSION.txt
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{oname}-%{version}-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16567 |21mr|python-shellescape-3.8.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module shellescape

Summary: 	Shell escape a string to safely use it as a token in a shell command
Name: 	 	python-%{module}
Version: 	3.8.1
Release: 	2
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/shellescape
Source0:        https://files.pythonhosted.org/packages/source/s/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%global _description The shellescape Python module defines the shellescape.quote()\
                     function that returns a shell-escaped version of a Python string.\
                     This is a backport of the shlex.quote() function\
                     from Python 3.8 that makes it accessible\
                     to users of Python 3 versions < 3.3 and all Python 2.x versions.

%description
%_description

#------------------------------------------------------------------

%package -n %python2-%{module}
%py2_migration_meta %python2-%{module}
Summary:  %summary
Group:               Development/Python
BuildRequires:	pkgconfig(python)
BuildRequires:	%python2-setuptools
BuildRequires:	%python2-pkg-resources
Provides: %python2-%{module}

%description -n %python2-%{module}
%_description

%files -n %python2-%{module}
%{python2_sitelib}/%{module}-%{version}-py?.?.egg-info
%{python2_sitelib}/%{module}/*

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:  %summary
Group:			Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-pkg-resources
Provides: python3-%{module}

%description -n python3-%{module}
%_description

%files -n python3-%{module}
%{python3_sitelib}/%{module}-%{version}-py?.?.egg-info
%{python3_sitelib}/%{module}/*

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

mkdir -p ../py3 \
&& cp -rf * ../py3 \
&& mv ../py3 .

%build
%py2_build

cd py3
%py3_build
cd -

%install
%py2_install

cd py3
%py3_install
cd -

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16568 |21mr|python-shellingham-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-shellingham
Version:        1.5.0
Release:        1
Summary:        Tool to detect surrounding Shell
Group:          Development/Python
License:        ISC
URL:            https://github.com/sarugaku/shellingham
Source0:        %{url}/archive/%{version}/shellingham-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-mock

%description
Shellingham detects what shell the current Python executable is running in.
#-------------------------------------------------------------------------
%package -n     python3-shellingham
Summary:        %{summary}
Group:          Development/Python

%description -n python3-shellingham
Shellingham detects what shell the current Python executable is running in.

%files -n python3-shellingham -f %{pyproject_files}
%doc README.rst CHANGELOG.rst
#-------------------------------------------------------------------------
%prep
%autosetup -n shellingham-%{version}

%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files shellingham

%check
%pytest -v

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16569 |21mr|python-shouldbe-0.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define module	shouldbe

Summary:	Python Assertion Helpers inspired by Shouldly
Name:		python-%{module}
Version:	0.1.2
Release:	2
License:	MIT
Group:		Development/Python
Url:		https://github.com/directxman12/should_be
Source0:	%{module}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(forbiddenfruit)

%description
Python Assertion Helpers inspired by Shouldly.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python Assertion Helpers inspired by Shouldly
Group:		Development/Python

%description -n python3-%{module}
Python Assertion Helpers inspired by Shouldly.

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/should_be
%{py3_puresitedir}/%{module}-%{version}-*

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build

%install
PYTHONDONTWRITEBYTECODE=1 python3 setup.py install --root=%{buildroot}

#%check
# %py3_test || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16570 |21mr|python-simplegeneric-0.8.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	modname	simplegeneric

Summary:	Simple generic Python functions
Name:		python-%{modname}
Version:	0.8.1
Release:	6
Source0:	http://pypi.python.org/packages/source/s/%{modname}/%{modname}-%{version}.zip
License:	ZPL
Group:		Development/Python
Url:		http://pypi.python.org/pypi/simplegeneric/
BuildArch:	noarch

# For 2to3
BuildRequires:  %python2-devel
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
The simplegeneric module lets you define simple single-dispatch
generic functions, akin to Python's built-in generic functions like
len(), iter() and so on. However, instead of using specially-named
methods, these generic functions use simple lookup tables, akin to
those used by e.g. pickle.dump() and other generic functions found in
the Python standard library.


%package -n python3-%{modname}
Summary:        Simple generic functions (similar to Python's own len(), pickle.dump(), etc.)
Group:          Development/Python

%description -n python3-%{modname}
The simplegeneric module lets you define simple single-dispatch generic
functions, akin to Python's built-in generic functions like len(), iter() and
so on. However, instead of using specially-named methods, these generic
functions use simple lookup tables, akin to those used by e.g. pickle.dump()

%prep
%setup -q -n %{modname}-%{version}

2to3 --write --nobackups .
sed -i "s/file(/open(/g" setup.py
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'

%build
%{__python3} setup.py build

%install
%{__python3} setup.py install --skip-build --root %{buildroot}

%files -n python3-%{modname}
%doc README.txt
%{py3_puresitedir}/simplegeneric.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/simplegeneric-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16571 |21mr|python-simplejson-3.17.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define shortname simplejson

Name:           python-%{shortname}
Version:	3.17.2
Release:	1
Summary:        Simple, fast, extensible JSON encoder/decoder for Python
Group:          Development/Python
License:        MIT
URL:            https://github.com/simplejson/simplejson
Source0:        https://github.com/simplejson/simplejson/releases/download/v%{version}/%{shortname}-%{version}.tar.gz
Patch0:         python3.8.patch
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(python2)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(nose)

%description
simplejson is a simple, fast, complete, correct and extensible JSON
(http://json.org) encoder and decoder for Python 2.3+. It is pure Python code
with no dependencies, but includes an optional C extension for a serious speed
boost.

simplejson was formerly known as simple_json, but changed its name to comply
with PEP 8 module naming guidelines.

The encoder may be subclassed to provide serialization in any kind of
situation, without any special support by the objects to be serialized
(somewhat like pickle).

The decoder can handle incoming JSON strings of any specified encoding (UTF-8
by default).

%package -n python2-simplejson
%py2_migration_meta python2-simplejson
Summary:        Simple, fast, extensible JSON encoder/decoder for Python3
Group:          Development/Python

%description -n python2-simplejson
simplejson is a simple, fast, complete, correct and extensible JSON
<http://json.org> encoder and decoder for Python3.3+ It is pure
Python code with no dependencies, but includes an optional C extension for a
serious speed boost.

%package -n python3-simplejson
Summary:        Simple, fast, extensible JSON encoder/decoder for Python3
Group:          Development/Python
%{?python_provide:%python_provide python3-%{shortname}}

%description -n python3-simplejson
simplejson is a simple, fast, complete, correct and extensible JSON
<http://json.org> encoder and decoder for Python3.3+ It is pure
Python code with no dependencies, but includes an optional C extension for a
serious speed boost.

%prep
%setup -q -n %{shortname}-%{version}
%autopatch -p1

# drop bundled egg-info
rm -rf simplejson.egg-info/

%build
%py3_build
%py2_build

%install
%py3_install
%py2_install

%files -n python3-simplejson
%license LICENSE.txt
%{python3_sitearch}/*

%files -n python2-simplejson
%license LICENSE.txt
%{python2_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16572 |21mr|python-simpleline-1.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname simpleline

Name:          python-%{srcname}
Summary:       A Python library for creating text UI
Url:           https://github.com/rhinstaller/python-%{srcname}
Version:       1.8
Release:       3
Group:         Development/Python
# This tarball was created from upstream git:
#   git clone https://github.com/rhinstaller/python-simpleline
#   cd python-simpleline && make archive
Source0:       %{pypi_source %{srcname} %{version}}
License:       GPLv2+
BuildArch:     noarch
BuildRequires: python3-devel
BuildRequires: gettext
BuildRequires: python3-setuptools
BuildRequires: intltool
BuildRequires: python3-gi

%description
Simpleline is a Python library for creating text UI.
It is designed to be used with line-based machines
and tools (e.g. serial console) so that every new line
is appended to the bottom of the screen.
Printed lines are never rewritten!


%package -n python3-%{srcname}
Summary: A Python3 library for creating text UI
Requires: python3-rpm

%description -n python3-%{srcname}
Simpleline is a Python3 library for creating text UI.
It is designed to be used with line-based machines
and tools (e.g. serial console) so that every new line
is appended to the bottom of the screen.
Printed lines are never rewritten!

%files -n python3-%{srcname} -f python-%{srcname}.lang
%doc README.md
%{python3_sitelib}/*

%prep
%setup -q -n %{srcname}-%{version}

%build
%make

%install
make DESTDIR=%{buildroot} install
mkdir -p %{buildroot}%{_datadir}

%find_lang python-%{srcname}

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16573 |21mr|python-singledispatch-3.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	singledispatch

Name:		    python-%{module}
Version:	3.7.0
Release:	1
Summary:	    This library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3
Group:		    Development/Python
License:	    MIT
URL:		    http://docs.python.org/3/library/functools.html#functools.singledispatch
Source0:	https://files.pythonhosted.org/packages/18/56/db18b37e2e310dfc6e0903e36f40d63c01d443455e7f566ccc96c55e8267/singledispatch-3.7.0.tar.gz
BuildArch:	    noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(toml)
BuildRequires:	python3egg(wheel)

%description
PEP 443 proposed to expose a mechanism in the functools standard library
module in Python 3.4 that provides a simple form of generic programming
known as single-dispatch generic functions.

This library is a backport of this functionality to Python 2.6 - 3.3.

#---------------------------------------------------------------------------

%package -n     python3-%{module}
Summary:        This library brings functools.singledispatch from Python 3.4 to Python 2.6-3.3
Group:          Development/Python
BuildArch:      noarch

%description -n python3-%{module}
PEP 443 proposed to expose a mechanism in the functools standard library
module in Python 3.4 that provides a simple form of generic programming
known as single-dispatch generic functions.

This library is a backport of this functionality to Python 2.6 - 3.3.

This is the Python 3 build of %{module}.

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/%{module}/*.py*
%{py3_puresitedir}/%{module}/__pycache__/*.py*
%{py3_puresitedir}/%{module}-%{version}-py%{py3_ver}.egg-info/*

%prep
%setup -qn %{module}-%{version}

%build
%{py3_build}

%install
%{py3_install}

%check
%{py3_test}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16574 |21mr|python-sip4-4.19.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# extracted from sip.h, SIP_API_MAJOR_NR SIP_API_MINOR_NR defines
%define sip_api_major 11
%define sip_api_minor 1
%define sip_api       %{sip_api_major}.%{sip_api_minor}

%ifarch aarch64
%define _disable_lto 1
%endif

Summary:	Old version of the SIP Python bindings generator
Name:		python-sip4
Version:	4.19.25
Release:	1
Epoch:		3
Group:		Development/Python
License:	GPLv2+
Url:		http://www.riverbankcomputing.co.uk/software/sip/intro
Source0:	https://www.riverbankcomputing.com/static/Downloads/sip/%{version}/sip-%{version}.tar.gz
Source1:	python-sip4.rpmlintrc
Patch0:		sip-4.19.21-python2-bin.patch
# make install should not strip (by default), kills -debuginfo
Patch1:		sip-4.18-no_strip.patch
# Avoid hardcoding sip.so (needed for wxpython's siplib.so)
Patch2:		sip-4.19.18-no_hardcode_sip_so.patch

BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(python2)
Obsoletes:	sip < %{version}
Obsoletes:	sip-devel < %{version}
Provides:	sip-api(%{sip_api_major}) = %{sip_api}

%description
SIP is a tool that makes it very easy to create Python bindings
for C and C++ libraries. It was originally developed to create PyQt,
the Python bindings for the Qt toolkit, but can be used to
create bindings for any C or C++ library.

#----------------------------------------------------------------------------

%package -n python3-sip4
Summary:	Riverbanks' python sip Qt5
Group:		Development/Python
Requires:	sip4-macros = %{EVRD}
Provides:	python3-sip-api(%{sip_api_major}) = %{sip_api}

%description -n python3-sip4
Python sip bindings for Qt5.

%files -n python3-sip4
%{_bindir}/sip
%{py3_incdir}/sip.h
%{py3_platsitedir}/sip.pyi
%{py3_platsitedir}/sip.so
%{py3_platsitedir}/sipconfig.py*
%{py3_platsitedir}/sipdistutils.py*
%{py3_platsitedir}/sip-%{version}.dist-info
%{py3_platsitedir}/__pycache__/*

#------------------------------------------------------------

%package -n python3-sip4-qt4
Summary:	Riverbanks' python sip Qt4
Group:		Development/Python
Provides:	python3-sip-PyQt4 = %{EVRD}

%description -n python3-sip4-qt4
Python sip bindings for Qt4.

%files -n python3-sip4-qt4
%{py3_platsitedir}/PyQt4/

#------------------------------------------------------------

%package -n python3-sip4-qt5
Summary:	Riverbanks' python sip Qt5
Group:		Development/Python
Provides:	python3-sip-PyQt5 = %{EVRD}

%description -n python3-sip4-qt5
Python sip bindings for Qt5.

%files -n python3-sip4-qt5
%{py3_platsitedir}/PyQt5/

#------------------------------------------------------------

%package -n python3-sip4-wx
Summary:	Riverbanks' python sip Wx
Group:		Development/Python

%description -n python3-sip4-wx
Python sip bindings for WxWidgets.

%files -n python3-sip4-wx
%{py3_platsitedir}/wx

#------------------------------------------------------------

%package -n python2-sip4
%py2_migration_meta python2-sip4
Summary:	Riverbanks' python sip
Group:		Development/Python
Requires:	sip4-macros = %{EVRD}
Provides:	python2-sip-api(%{sip_api_major}) = %{sip_api}

%description -n python2-sip4
SIP is a tool that makes it very easy to create Python bindings
for C and C++ libraries. It was originally developed to create PyQt,
the Python bindings for the Qt toolkit, but can be used to
create bindings for any C or C++ library.

%files -n python2-sip4
%{_bindir}/python2-sip
%{py2_incdir}/sip.h
%{py2_platsitedir}/sip.pyi
%{py2_platsitedir}/sip.so
%{py2_platsitedir}/sipconfig.py*
%{py2_platsitedir}/sipdistutils.py*
%{py2_platsitedir}/sip-%{version}.dist-info

#------------------------------------------------------------

%package -n python2-sip4-qt4
Summary:	Riverbanks' python sip Qt4
Group:		Development/Python
Provides:	python2-sip-PyQt4 = %{EVRD}

%description -n python2-sip4-qt4
Python2 sip bindings for Qt4.

%files -n python2-sip4-qt4
%{py2_platsitedir}/PyQt4/

#------------------------------------------------------------

%package -n python2-sip4-qt5
Summary:	Riverbanks' python sip Qt5
Group:		Development/Python
Provides:	python2-sip-PyQt5 = %{EVRD}

%description -n python2-sip4-qt5
Python2 sip bindings for Qt5.

%files -n python2-sip4-qt5
%{py2_platsitedir}/PyQt5/

#------------------------------------------------------------

%package -n python2-sip4-wx
Summary:	Riverbanks' python2 sip Wx
Group:		Development/Python

%description -n python2-sip4-wx
Python2 sip bindings for WxWidgets.

%files -n python2-sip4-wx
%{py2_platsitedir}/wx

#----------------------------------------------------------------------------

%package -n sip4-macros
Summary:	RPM macros for python sip
Group:		Development/Python
BuildArch:	noarch

%description -n sip4-macros
RPM macros for python sip.

%files -n sip4-macros
%{_rpmmacrodir}/*%{name}*

#------------------------------------------------------------

%prep
%setup -qcn sip-%{version}

pushd sip-%{version}
%patch1 -p1
%patch2 -p1

# Check API minor/major numbers
export real_api_major=`grep SIP_API_MAJOR_NR siplib/sip.h.in|head -n1|awk -F' ' '{print $3}'`
export real_api_minor=`grep SIP_API_MINOR_NR siplib/sip.h.in|head -n1|awk -F' ' '{print $3}'`
if [ $real_api_major -ne %{sip_api_major} ]; then
    echo 'Wrong spi major specified: Should be' $real_api_major ', but set' %{sip_api_major}
    exit 1
fi
if [ $real_api_minor -ne %{sip_api_minor} ]; then
    echo 'Wrong spi minor specified: Should be' $real_api_minor ', but set' %{sip_api_minor}
    exit 1
fi

#  Don't use X11R6 prefix for includes neither libraries by default.
for file in specs/linux-*; do
    perl -p -i -e "s@/X11R6/@/@g" $file
done
popd

mv sip-%{version} python2
cp -a python2 python3

pushd python2
%patch0 -p1
popd

%build
pushd python2
mkdir build
pushd build
python2 ../configure.py
%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{ldflags} -lpython%{py2_ver}"
popd

mkdir build_PyQt4
pushd build_PyQt4
python2 ../configure.py --no-dist-info --no-tools --sip-module PyQt4.sip
%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{ldflags} -lpython%{py2_ver}"
popd

mkdir build_PyQt5
pushd build_PyQt5
python2 ../configure.py --no-dist-info --no-tools --sip-module PyQt5.sip
%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{ldflags} -lpython%{py2_ver}"
popd

sed -i -e 's|target = sip|target = siplib|g' siplib/siplib.sbf
mkdir build_wx
pushd build_wx
python2 ../configure.py --no-dist-info --no-tools --sip-module=wx.siplib
%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{ldflags} -lpython%{py2_ver}"
popd
popd

pushd python3
mkdir build
pushd build
python3 ../configure.py
%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{ldflags} -lpython%{py3_ver}"
popd

mkdir build_PyQt4
pushd build_PyQt4
python3 ../configure.py --no-dist-info --no-tools --sip-module PyQt4.sip
%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{ldflags} -lpython%{py3_ver}"
popd

mkdir build_PyQt5
pushd build_PyQt5
python3 ../configure.py --no-dist-info --no-tools --sip-module PyQt5.sip
%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{ldflags} -lpython%{py3_ver}"
popd

sed -i -e 's|target = sip|target = siplib|g' siplib/siplib.sbf
mkdir build_wx
pushd build_wx
python3 ../configure.py --no-dist-info --no-tools --sip-module=wx.siplib
%make CFLAGS="%{optflags} -fPIC" CXXFLAGS="%{optflags} -fPIC" LIBS="%{ldflags} -lpython%{py3_ver}"
popd
popd

%install
%makeinstall_std -C python2/build
%makeinstall_std -C python2/build_PyQt4
%makeinstall_std -C python2/build_PyQt5
%makeinstall_std -C python2/build_wx

%makeinstall_std -C python3/build
%makeinstall_std -C python3/build_PyQt4
%makeinstall_std -C python3/build_PyQt5
%makeinstall_std -C python3/build_wx

cat > sip4.macros << EOF
# extracted from sip.h, SIP_API_MAJOR_NR SIP_API_MINOR_NR defines
%%sip_api_major %{sip_api_major}
%%sip_api_minor %{sip_api_minor}
%%sip_api       %{sip_api_major}.%{sip_api_minor}
EOF

%install_macro %{name} sip4.macros

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16575 |21mr|python-sip-6.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# extracted from sip.h, SIP_API_MAJOR_NR SIP_API_MINOR_NR defines
%define sip_api_major 12
%define sip_api_minor 11
%define sip_api       %{sip_api_major}.%{sip_api_minor}

%define _python_bytecompile_build 0

Summary:	Riverbanks's python3 sip
Name:		python-sip
Version:	6.6.2
Release:	2
Epoch:		4
License:	GPLv2+
Group:		Development/Python
Url:		http://www.riverbankcomputing.co.uk/software/sip/intro
Source0:	https://pypi.io/packages/source/s/sip/sip-%{version}.tar.gz
# https://riverbankcomputing.com/hg/sip/rev/1430b279a3c9
# https://github.com/qgis/QGIS/issues/49214
Patch0028: 1430b279a3c9.diff
#https://www.riverbankcomputing.com/hg/sip/rev/323d39a2d602
Patch0029: 323d39a2d602.diff
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
SIP is a tool that makes it very easy to create Python bindings
for C and C++ libraries. It was originally developed to create PyQt,
the Python bindings for the Qt toolkit, but can be used to
create bindings for any C or C++ library.

#----------------------------------------------------------------------------
%package -n python3-sip
Summary:	Riverbanks's python3 sip
Group:		Development/Python
Requires:	sip-macros = %{EVRD}
Provides:	python3-sip-api(%{sip_api_major}) = %{sip_api}

%description -n python3-sip
SIP is a tool that makes it very easy to create Python bindings
for C and C++ libraries. It was originally developed to create PyQt,
the Python bindings for the Qt toolkit, but can be used to
create bindings for any C or C++ library.

%files -n python3-sip
%{_bindir}/sip*
%{py3_platsitedir}/sip*

#----------------------------------------------------------------------------
%package -n sip-macros
Summary:	RPM macros for python3 sip
Group:		Development/Python
BuildArch:	noarch

%description -n sip-macros
RPM macros for python3 sip.

%files -n sip-macros
%{_rpmmacrodir}/*sip*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n sip-%{version}

%build
%set_build_flags
%py3_build

%install
%{__python3} setup.py \
	install \
	--root="%{buildroot}" \
	--skip-build --optimize=1

cat > macro << EOF
# extracted from sip.h, SIP_API_MAJOR_NR SIP_API_MINOR_NR defines
%%sip_api_major %{sip_api_major}
%%sip_api_minor %{sip_api_minor}
%%sip_api       %{sip_api_major}.%{sip_api_minor}
EOF

%install_macro sip macro

%check
%{__python3} setup.py check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16576 |21mr|python-sip-qt5-12.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for creating Python bindings for Qt
Name:		python-sip-qt5
Version:	12.11.0
Release:	1
Epoch:		3
Group:		Development/Python
License:	GPLv2+
Url:		http://www.riverbankcomputing.co.uk/software/sip/intro
Source0:	https://files.pythonhosted.org/packages/source/P/PyQt5_sip/PyQt5_sip-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-sip >= 1:6.6.0

%description
SIP is a tool that makes it very easy to create Python bindings
for C and C++ libraries. It was originally developed to create PyQt,
the Python bindings for the Qt toolkit, but can be used to
create bindings for any C or C++ library.

#--------------------------------------------------------------------
%package -n python3-sip-qt5
Summary:	Tool for creating Python bindings for Qt
Group:		Development/Python
# FIXME why is this not autodetected?
Provides:	python3.8dist(pyqt5-sip) = %{version}
Conflicts:	python3-sip-PyQt5 < %{EVRD}
Obsoletes:	python3-sip-PyQt5 < %{EVRD}
Provides:	python3-sip-PyQt5 = %{EVRD}

%description -n python3-sip-qt5

%files -n python3-sip-qt5 -f %{name}.list

#------------------------------------------------------------
%prep
%setup -q -n PyQt5_sip-%{version}

%build
%set_build_flags
%py3_build

%install
%{__python3} setup.py \
	install \
	--root="%{buildroot}" \
	--record="%{name}.list"

%check
%{__python3} setup.py check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16577 |21mr|python-sip-qt6-13.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for creating Python bindings for Qt
Name:		python-sip-qt6
Version:	13.5.1
Release:	1
Group:		Development/Python
License:	GPLv2+
Url:		http://www.riverbankcomputing.co.uk/software/sip/intro
Source0:	https://files.pythonhosted.org/packages/source/P/PyQt6_sip/PyQt6_sip-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-sip >= 1:6.6.0

%description
SIP is a tool that makes it very easy to create Python bindings
for C and C++ libraries. It was originally developed to create PyQt,
the Python bindings for the Qt toolkit, but can be used to
create bindings for any C or C++ library.

#--------------------------------------------------------------------
%package -n python3-sip-qt6
Summary:	Tool for creating Python bindings for Qt
Group:		Development/Python
# FIXME why is this not autodetected?
Provides:	python3dist(pyqt6-sip) = %{version}
Provides:	python%{py3_ver}dist(pyqt6-sip) = %{version}
Provides:	python3-sip-PyQt6 = %{EVRD}

%description -n python3-sip-qt6

%files -n python3-sip-qt6 -f %{name}.list

#------------------------------------------------------------
%prep
%setup -q -n PyQt6_sip-%{version}

%build
%set_build_flags
export LDFLAGS="%{build_ldflags} -lpython%{py3_ver}"
%py3_build

%install
%{__python3} setup.py \
	install \
	--root="%{buildroot}" \
	--record="%{name}.list"

%check
%{__python3} setup.py check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16578 |21mr|python-six-1.16.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname six

Name:		python-%{oname}
Version:	1.16.0
Release:	2
Summary:	Python 2 and 3 compatibility utilities
License:	MIT
Group:		Development/Python
Url:		https://github.com/benjaminp/six
Source0:	https://github.com/benjaminp/six/archive/%{version}.tar.gz?/six-%{version}.tar.gz
BuildRequires:  pkgconfig(python2)
BuildRequires:  pkgconfig(python3)
BuildRequires:  pythonegg(setuptools)
BuildRequires:  python3egg(setuptools)
Provides:	python3egg(six)
BuildArch:	noarch

%description
Six is a Python 2 and 3 compatibility library.  It provides utility functions
for smoothing over the differences between the Python versions with the goal of
writing Python code that is compatible on both Python versions.  See the
documentation for more information on what is provided.

Six supports Python 2.4+.

Online documentation is at http://packages.python.org/six/.

Bugs can be reported to http://bitbucket.org/gutworth/six.  The code can also
be found there.

%package -n python2-six
%py2_migration_meta python2-six
Summary:	%{summary} / Python 2 library
Group:		Development/Python
Provides:	pythonegg(six)
Provides:	python2egg(six)

%description -n python2-six
python-six provides simple utilities for wrapping over differences between
Python 2 and Python 3.

%package -n python3-six
Summary:	%{summary} / Python 2 library
Group:		Development/Python
Provides:	python3egg(six)
Provides:	python-six = %{version}-%{release}

%description -n python3-six
python-six provides simple utilities for wrapping over differences between
Python 2 and Python 3.

%prep
%setup -qc
mv %{oname}-%{version} python2
cp -a python2 python3

%build
cd python2
%{__python2} setup.py build
cd -

cd python3
%{__python3} setup.py build
cd -

%install
cd python2
%{__python2} setup.py install --root=%{buildroot}
cd -

cd python3
%{__python3} setup.py install --root=%{buildroot}
cd -

%files -n python3-six
%doc python3/LICENSE python3/documentation/index.rst
%{py3_puresitedir}/six-%{version}-*.egg-info
%{py3_puresitedir}/six.py*
%{py3_puresitedir}/__pycache__/*.pyc

%files -n python2-six
%doc python2/LICENSE python2/documentation/index.rst
%{py2_puresitedir}/six-%{version}-*.egg-info
%{py2_puresitedir}/six.py*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16579 |21mr|python-skia-pathops-0.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name skia-pathops

Name:           python-%{pypi_name}
Version:        0.7.2
Release:        1
Summary:        Boolean operations on paths using the Skia library
Group:          Development/Python
License:        BSD-3-Clause
URL:            https://github.com/fonttools/skia-pathops
Source0:        https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.zip
Patch0:         skia-pathops-disable-virtualenv.patch
BuildRequires:  python3-devel
BuildRequires:  ninja
BuildRequires:  gn
BuildRequires:  python3-cython
BuildRequires:  python3dist(coverage)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-cython)
BuildRequires:  python3dist(pytest-randomly)
BuildRequires:  python3dist(pytest-xdist)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
Python bindings for the Google Skia library's Path Ops module, performing
boolean operations on paths (intersection, union, difference, xor).

#----------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

Requires:       python3dist(coverage)
Requires:       python3dist(pytest)
Requires:       python3dist(pytest-cython)
Requires:       python3dist(pytest-randomly)
Requires:       python3dist(pytest-xdist)

%description -n python3-%{pypi_name}
Python bindings for the Google Skia library's Path Ops module, performing
boolean operations on paths (intersection, union, difference, xor).

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitearch}/pathops
%{python3_sitearch}/skia_pathops-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16580 |21mr|python-slimit-0.8.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name slimit

Name:           python-%{pypi_name}
Version:        0.8.1
Release:        12
Group:          Development/Python
Summary:        SlimIt - JavaScript minifier

License:        MIT
URL:            http://pypi.python.org/pypi/%{pypi_name}
Source0:        http://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.zip
BuildArch:      noarch

Requires:       %{pypi_name} = %{EVRD}

%description
SlimIt - JavaScript minifier.

%package -n %{pypi_name}
Summary:        SlimIt - JavaScript minifier
Group:          Development/Python
Requires:       python3-%{pypi_name}

%description -n %{pypi_name}
SlimIt - JavaScript minifier.

%package -n python3-%{pypi_name}
Summary:        SlimIt - JavaScript minifier
Group:          Development/Python

Requires:       %{pypi_name} = %{EVRD}

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
SlimIt - JavaScript minifier.

%prep
%setup -q -n %{pypi_name}-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

%files -n %{pypi_name}
%{_bindir}/%{pypi_name}

%files -n python3-%{pypi_name}
%doc CHANGES README.rst
%{py3_puresitedir}/%{pypi_name}*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16581 |21mr|python-slip-0.6.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Miscellaneous convenience, extension and workaround code for Python
Name:		python-slip
Version:	0.6.5
Release:	1
License:	GPLv2+
Group:		Development/Python
Url:		https://github.com/nphilipp/python-slip
Source0:	https://github.com/nphilipp/python-slip/releases/download/python-slip-%{version}/python-slip-%{version}.tar.bz2
BuildRequires:	pkgconfig(python3)
Requires:	python3-six
BuildArch:	noarch

%description
The Simple Library for Python packages contain miscellaneous code for
convenience, extension and workaround purposes.

This package provides the "slip" and the "slip.util" modules.
#----------------------------------------------------------------------------

%package -n python3-slip
Summary:	Convenience, extension and workaround code for Python 3.x
Group:		Development/Python

%description -n python3-slip
The Simple Library for Python 3.x packages contain miscellaneous code for
convenience, extension and workaround purposes.

This package provides the "slip" and the "slip.util" modules.

%files -n python3-slip
%doc COPYING doc/dbus
%dir %{python3_sitelib}/slip/
%{python3_sitelib}/slip/__pycache__
%{python3_sitelib}/slip/__init__.py*
%{python3_sitelib}/slip/util
%{python3_sitelib}/slip/_wrappers
%{python3_sitelib}/slip-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%package -n python3-slip-dbus
Summary:	Convenience functions for dbus services in Python 3.x
Group:		Development/Python
Requires:	python3-slip = %{EVRD}
Requires:	python3-dbus >= 0.80
# Don't require any of pygobject2/3 because slip.dbus works with either one. In
# theory users of slip.dbus should require one or the other anyway to use the
# main loop.
Requires:	python3-decorator
Requires:	python3-six

%description -n python3-slip-dbus
The Simple Library for Python 3.x packages contain miscellaneous code for
convenience, extension and workaround purposes.

This package provides slip.dbus.service.Object, which is a dbus.service.Object
derivative that ends itself after a certain time without being used and/or if
there are no clients anymore on the message bus, as well as convenience
functions and decorators for integrating a dbus service with PolicyKit.

%files -n python3-slip-dbus
%doc doc/dbus/*
%{python3_sitelib}/slip/dbus
%{python3_sitelib}/slip.dbus-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1
find . -name '*.py' -o -name '*.py.in' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'

%build
%make PYTHON=%__python3

%install
%makeinstall_std  PYTHON=%__python3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16582 |21mr|python-slugify-6.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module slugify

Name:           python-%{module}
Version:        6.1.1
Release:        2
Summary:        A Python Slugify application that handles Unicode
Group:          Development/Python
License:        MIT
URL:            https://github.com/un33k/python-slugify
Source0:        https://github.com/un33k/python-slugify/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildArch:      noarch

%description
A Python Slugify application that handles Unicode.

#---------------------------------------------------------
%package -n     python3-%{module}
Summary:        A Python 3 Slugify application that handles Unicode

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(unidecode)

%description -n python3-%{module}
A Python 3 Slugify application that handles Unicode.

%files -n python3-%{module}
%doc README.md LICENSE
%{py3_puresitedir}/slugify
%{py3_puresitedir}/python_slugify-%{version}-py?.?.egg-info
#---------------------------------------------------------

%prep
%setup -q
# Remove bundled egg-info
rm -rf %{name}.egg-info

%build
%py3_build

%install
%py3_install


%check
python3 -m unittest test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16583 |21mr|python-smartypants-2.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname smartypants

Summary:	Smartypants is a Python fork of SmartyPants
Name:		python-%{oname}
Version:	2.0.1
Release:	2
License:	BSD
Group:		Development/Python
Url:		https://github.com/leohemsted/smartypants.py
Source0:	https://github.com/leohemsted/smartypants.py/archive/v%{version}.tar.gz?/%{oname}.py-%{version}.tar.gz
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)
BuildArch:	noarch

%description
Smartypants is a Python fork of SmartyPants.
SmartyPants is a free web publishing plug-in for Movable Type, Blosxom, 
and BBEdit that easily translates plain ASCII punctuation characters into 
“smart” typographic punctuation HTML entities. 

#==============================================================================
%package -n %python2-%{oname}
%py2_migration_meta %python2-%{oname}
Summary:	Smartypants is a Python fork of SmartyPants
Group:		Development/Python

%description -n %python2-%{oname}
Smartypants is a Python fork of SmartyPants.
SmartyPants is a free web publishing plug-in for Movable Type, Blosxom, 
and BBEdit that easily translates plain ASCII punctuation characters into 
“smart” typographic punctuation HTML entities.

%files -n %python2-%{oname}
%doc python2/README.rst python2/COPYING python2/CHANGES.rst
%{_bindir}/smartypants
%{python2_sitelib}/*.py*
%{python2_sitelib}/smartypants-*.egg-info

#=============================================================================

%package -n python3-%{oname}
Summary:	Smartypants is a Python fork of SmartyPants
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{oname}
Smartypants is a Python fork of SmartyPants.
SmartyPants is a free web publishing plug-in for Movable Type, Blosxom, 
and BBEdit that easily translates plain ASCII punctuation characters into 
“smart” typographic punctuation HTML entities.

%files -n python3-%{oname}
%doc python3/README.rst python3/COPYING python3/CHANGES.rst
%{_bindir}/smartypants
%{python3_sitelib}/*.py*
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/smartypants-*.egg-info

#=============================================================================

%prep
%setup -qc -n %{oname}.py-%{version}
mv %{oname}.py-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
%py2_install
popd

pushd python3
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16584 |21mr|python-smbc-1.0.25.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module smbc
%define pypi_name py%{module}

Summary:	Python bindings for the libsmbclient API from Samba
Name:		python-%{module}
Version:	1.0.25.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/hamano/pysmbc
Source0:	%{pypi_source}
Patch0:		pysmbc-1.0.23-samba4.patch
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	python3egg(setuptools)

%description
Python bindings for the libsmbclient API, known as pysmbc. It was written
for use with system-config-printer, but can be put to other uses as well.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python bindings for the libsmbclient API from Samba
Group:		Development/Python
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
Python bindings for the libsmbclient API, known as pysmbc. It was written
for use with system-config-printer, but can be put to other uses as well.

%files -n python3-%{module}
%{python3_sitearch}/*.egg-info
%{python3_sitearch}/smbc*
%{python3_sitearch}/*.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
%apply_patches

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16585 |21mr|python-smbpasswd-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-smbpasswd
Version:        1.0.2
Release:        6
Summary:        Python SMB Password Hash Generator Module

Group:          Development/Python
License:        GPLv2
URL:            http://barryp.org/software/py-smbpasswd
Source0:        smbpasswd-%{version}.tgz
BuildRequires:	python2-devel python3-devel
%rename		py-smbpasswd

%description
This package contains a python2 module, which is able to generate LANMAN and
NT password hashes suiteable to us with Samba.

%package -n python2-smbpasswd
%py2_migration_meta python2-smbpasswd
Summary:        Python SMB Password Hash Generator Module

%description -n python2-smbpasswd
This package contains a python module, which is able to generate LANMAN and
NT password hashes suiteable to us with Samba.


%package -n python3-smbpasswd
Summary:        Python SMB Password Hash Generator Module
Group:          Development/Python

%description -n python3-smbpasswd
This package contains a python2 module, which is able to generate LANMAN and
NT password hashes suiteable to us with Samba.
This a release for python3

%prep
%setup -q -n smbpasswd-%{version}
rm -rf %{py3dir}
mkdir -p %{py3dir}
cp -a . %{py3dir}


%build
CFLAGS="%{optflags}" 
%{__python2} setup.py build

pushd %{py3dir}
CFLAGS="%{optflags}" 
%{__python3} setup.py build
popd

%install
%{__python2} setup.py install -O1 --skip-build --root %{buildroot}

pushd %{py3dir}
%{__python3} setup.py install -O1 --skip-build --root %{buildroot}
popd

%files -n python2-smbpasswd
%{py2_platsitedir}/smbpasswd.so
%{py2_platsitedir}/*egg-info
%doc README.txt

%files -n python3-smbpasswd
%{py3_platsitedir}/smbpasswd.cpython-3*.so
%{py3_platsitedir}/*egg-info
%doc README.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16586 |21mr|python-smmap-4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name smmap

Name:		python-%{pypi_name}
Version:	4.0.0
Release:	1
Summary:	A pure git implementation of a sliding window memory map manager
License:	BSD
Group:		Development/Python
Url:		https://pypi.python.org/pypi/smmap
Source0:	https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
When reading from many possibly large files in a fashion similar to random
access, it is usually the fastest and most efficient to use memory maps.

#--------------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A pure git implementation of a sliding window memory map manager
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{pypi_name}
When reading from many possibly large files in a fashion similar to random
access, it is usually the fastest and most efficient to use memory maps.

%files -n python3-%{pypi_name}
%doc PKG-INFO
%{python3_sitelib}/smmap
%{python3_sitelib}/smmap-%{version}-py*.egg-info

#--------------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16587 |21mr|python-sniffio-1.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname sniffio
# what it's imported as
%global libname sniffio
# name of egg info directory
%global eggname sniffio
# package name fragment
%global pkgname sniffio

%global _description \
You're writing a library.  You've decided to be ambitious, and support multiple\
async I/O packages, like Trio, and asyncio, and ... You've written a bunch of\
clever code to handle all the differences.  But... how do you know which piece\
of clever code to run?  This is a tiny package whose only purpose is to let you\
detect which async library your code is running under.


Name:           python-%{pkgname}
Version:	1.2.0
Release:	1
Group:		Development/Python
Summary:        Sniff out which async library your code is running under
License:        MIT or ASL 2.0
URL:            https://github.com/python-trio/sniffio
Source0:	https://files.pythonhosted.org/packages/a6/ae/44ed7978bcb1f6337a3e2bef19c941de750d73243fc9389140d62853b686/sniffio-1.2.0.tar.gz
BuildArch:      noarch


%description %{_description}


%package -n python3-%{pkgname}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest
BuildRequires:  python3-curio
%{?python_provide:%python_provide python3-%{pkgname}}


%description -n python3-%{pkgname} %{_description}


%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info


%build
%py3_build


%install
%py3_install

%files -n python3-%{pkgname}
%license LICENSE LICENSE.MIT LICENSE.APACHE2
%doc README.rst
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16588 |21mr|python-snowballstemmer-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name snowballstemmer

Name:           python-%{pypi_name}
Version:	2.1.0
Release:	1
Summary:        This package provides 16 stemmer algorithms
License:        BSD-3-Clause
Group:          Development/Python
Url:            https://github.com/snowballstem/snowball
Source0:	https://files.pythonhosted.org/packages/a3/3d/d305c9112f35df6efb51e5acd0db7009b74d86f35580e033451b5994a0a9/snowballstemmer-2.1.0.tar.gz
BuildArch:      noarch

%description
This package provides 16 stemmer algorithms (15 + Poerter English
stemmer) generated from Snowball algorithms.  It includes following
language algorithms: Danish, Dutch, English (Standard, Porter),
Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese,
Romanian, Russian, Spanish, Swedish, Turkish. This is a pure Python
stemming library. If PyStemmer is available, this module uses it to
accelerate.

#=============================================================================
%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        This package provides 16 stemmer algorithms
Group:		Development/Python
BuildRequires:  pkgconfig(python2)
BuildRequires:  pythonegg(setuptools)

%description -n python2-%{pypi_name}
This package provides 16 stemmer algorithms (15 + Poerter English
stemmer) generated from Snowball algorithms.  It includes following
language algorithms: Danish, Dutch, English (Standard, Porter),
Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese,
Romanian, Russian, Spanish, Swedish, Turkish. This is a pure Python
stemming library. If PyStemmer is available, this module uses it to
accelerate.

%files -n python2-%{pypi_name}
%license COPYING
%doc README.rst
%{python2_sitelib}/*

#=============================================================================
%package -n python3-%{pypi_name}
Summary:        This package provides 16 stemmer algorithms
Group:		Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
This package provides 16 stemmer algorithms (15 + Poerter English
stemmer) generated from Snowball algorithms.  It includes following
language algorithms: Danish, Dutch, English (Standard, Porter),
Finnish, French, German, Hungarian, Italian, Norwegian, Portuguese,
Romanian, Russian, Spanish, Swedish, Turkish. This is a pure Python
stemming library. If PyStemmer is available, this module uses it to
accelerate.

%files -n python3-%{pypi_name}
%license COPYING
%{python3_sitelib}/*
%doc README.rst
#=============================================================================

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build
%py2_build

%install
%py2_install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16589 |21mr|python-sortedcontainers-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname sortedcontainers
%bcond_with docs
%bcond_with tests

Name:		python-%{srcname}
Version:	2.4.0
Release:	1
Summary:	Pure Python sorted container types
Group:		Development/Python
License:	ASL 2.0
URL:		https://pypi.python.org/pypi/%{srcname}
# PyPI tarball does not include docs or tests.
Source0:	https://github.com/grantjenks/python-sortedcontainers/archive/v%{version}/%{name}-%{version}.tar.gz

BuildArch:	noarch

%global _description \
SortedContainers is an Apache2 licensed sorted collections library, written in \
pure-Python, and fast as C-extensions.

%description %{_description}

#-----------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python

BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%if %{with tests}
BuildRequires:	python3-pytest
BuildRequires:	python3-matplotlib
BuildRequires:	python3-numpy
BuildRequires:	python3-scipy
%endif

%if %{with docs}
BuildRequires:	python3-sphinx
BuildRequires:	dvipng
BuildRequires:	tex(anyfontsize.sty)
BuildRequires:	tex(bm.sty)
%endif

%description -n python3-%{srcname} %{_description}

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py%{python3_version}.egg-info/


#-----------------------------------------------------------------

%if %{with docs}
%package -n python-%{srcname}-doc
Summary:	%{summary}
Group:		Documentation

%description -n python-%{srcname}-doc
Documentation for %{srcname} package.

%files -n python-%{srcname}-doc
%license LICENSE
%doc README.rst docs/_build/html
%endif

#-----------------------------------------------------------------

%prep
%autosetup


%build
%py3_build

%if %{with docs}
pushd docs
make SPHINXBUILD=sphinx-build-%{python3_version} html
rm _build/html/.buildinfo
popd
%endif


%install
%py3_install


%if %{with tests}
%check
pushd tests
PYTHONPATH="%{buildroot}%{python3_sitelib}" \
    pytest-%{python3_version}
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16590 |21mr|python-soupsieve-2.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name soupsieve
%global with_tests 0

Name:           python-%{pypi_name}
Version:	2.2.1
Release:	2
Summary:        A modern CSS selector implementation for Beautiful Soup
Group:          Development/Python
License:        MIT
URL:            https://github.com/facelessuser/soupsieve
Source0:        https://github.com/facelessuser/soupsieve/archive/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildArch:      noarch

%global _description \
Soup Sieve is a CSS selector library designed to be used with Beautiful Soup 4. \
It aims to provide selecting, matching, and filtering using modern CSS \
selectors. Soup Sieve currently provides selectors from the CSS level 1 \
specifications up through the latest CSS level 4 drafts and beyond (though \
some are not yet implemented). \
\
Soup Sieve was written with the intent to replace Beautiful Soup's builtin \
select feature, and as of Beautiful Soup version 4.7.0, it now is good. \
Soup Sieve can also be imported in order to use its API directly for more \
controlled, specialized parsing. \
\
Soup Sieve has implemented most of the CSS selectors up through the latest CSS \
draft specifications, though there are a number that don't make sense in a \
non-browser environment. Selectors that cannot provide meaningful functionality \
simply do not match anything.

%description
%_description

#----------------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        A modern CSS selector implementation for Beautiful Soup
Group:		Development/Python

%description  -n python3-%{pypi_name}
%_description

%files -n python3-%{pypi_name}
%doc LICENSE.md README.md docs/src/markdown/about/license.md
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info

#----------------------------------------------------------------------------------


%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%if %with_tests
%check
python3 setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16591 |21mr|python-SPARQLWrapper-1.8.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	SPARQLWrapper

Name:		python-%{oname}
Version:	1.8.5
Release:	2
Summary:	SPARQL Endpoint interface to Python
Source0:	https://files.pythonhosted.org/packages/bb/cb/84fafd4f628fcf83795ff7f377fa8211a12655adf8bc288698bdb2415cb3/SPARQLWrapper-1.8.5.tar.gz
License:	W3C SOFTWARE NOTICE AND LICENSE
Group:		Development/Python
Url:		http://sparql-wrapper.sourceforge.net/
BuildArch:	noarch

%description
This is a wrapper around a SPARQL service.
It helps in creating the query URI and, possibly, convert the result
into a more manageable format.


%package -n python3-%{oname}
Summary:        SPARQL Endpoint interface to Python 3
Group:          Development/Python
BuildRequires:  python3-setuptools

%description -n python3-%{oname}
A python 3 based wrapper around a SPARQL service.
It helps in creating the query URI and, possibly,
convert the result into a more manageable format.

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{oname}
%doc LICENSE.txt AUTHORS.md
%{py3_puresitedir}/%{oname}-*.egg-info
%{py3_puresitedir}/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16592 |21mr|python-sphinx-3.5.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name    Sphinx

# disable these for bootstrapping nose and sphinx
%bcond_with extras
%bcond_with tests
%bcond_with doc

# some tests fails without internet, disable such
# tests by default
%bcond_with internet

Summary:        Python documentation generator
Name:           python-sphinx
Version:        3.5.4
Release:        3
License:        BSD
Group:          Development/Python
Url:            https://www.sphinx-doc.org
Source0:        %{pypi_source %{pypi_name} %{version}}
Patch0:         python-sphinx-3.5.4-docutils.patch
BuildRequires:  locales-en
BuildArch:      noarch

%description
Sphinx is a tool that facilitates the creation of beautiful
documentation for Python projects from reStructuredText sources. It
was originally created to format the new documentation for Python, but
has since been cleaned up in the hope that it will be useful in many
other projects.

#--------------------------------------------------------------------
%package -n python3-sphinx
Summary:        Python 3 documentation generator
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(alabaster)
BuildRequires:  python3dist(babel)
BuildRequires:  python3dist(docutils)
BuildRequires:  python3dist(imagesize)
BuildRequires:  python3dist(jinja2)
BuildRequires:  python3dist(packaging)
BuildRequires:  python3dist(pygments)
BuildRequires:  python3dist(requests)
BuildRequires:  python3dist(six)
BuildRequires:  python3dist(snowballstemmer)
BuildRequires:  python3dist(sphinxcontrib-websupport)
BuildRequires:  python3dist(sphinxcontrib-serializinghtml)

%if %{with extras}
BuildRequires:  python3dist(sqlalchemy)
BuildRequires:  python3dist(whoosh)
%endif

%if %{with tests}
BuildRequires:  imagemagick
BuildRequires:  python3-testsuite
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-cov)
BuildRequires:  python3dist(html5lib)
BuildRequires:  python3dist(mock)
BuildRequires:  python3dist(flake8)
BuildRequires:  python3dist(flake8-import-order)
BuildRequires:  python3dist(mypy)
BuildRequires:  python3dist(typed-ast)
BuildRequires:  python3dist(sphinxcontrib-jsmath)
%endif

%if %{with doc}
BuildRequires:  python3dist(sphinxcontrib-applehelp)
BuildRequires:  python3dist(sphinxcontrib-devhelp)
BuildRequires:  python3dist(sphinxcontrib-htmlhelp)
BuildRequires:  python3dist(sphinxcontrib-qthelp)
BuildRequires:  dot
%endif

Requires:  python3-pkg-resources
Requires:  python-sphinx-locales = %{version}-%{release}
Requires:  python3dist(sphinx-rtd-theme)

# compat with RH/Fedora
Provides:    python-sphinx = %{EVRD}

%{?python_provide:%python_provide python3-sphinx}

%description -n python3-sphinx
Sphinx is a tool that makes it easy to create intelligent and
beautiful documentation for Python projects (or other documents
consisting of multiple reStructuredText sources), written by Georg
Brandl. It was originally created to translate the new Python
documentation, but has now been cleaned up in the hope that it will be
useful to many other projects.

%files -n python3-sphinx
%license LICENSE
%doc AUTHORS CHANGES EXAMPLES
%{_bindir}/sphinx-*
%{python3_sitelib}/*
%{_libexecdir}/python3-sphinx/
%if %{with doc}
%{_mandir}/man1/sphinx-*
%endif

#--------------------------------------------------------------------
%if %{with doc}
%package doc
Summary:    Documentation for %{name}
Group:        Documentation
License:    BSD
Requires:    %{name} = %{version}-%{release}

%description doc
Sphinx is a tool that makes it easy to create intelligent and
beautiful documentation for Python projects (or other documents
consisting of multiple reStructuredText sources), written by Georg
Brandl. It was originally created to translate the new Python
documentation, but has now been cleaned up in the hope that it will be
useful to many other projects.

This package contains documentation in reST and HTML formats.

%files doc
%doc html reST
%endif

#--------------------------------------------------------------------

%package locales
Summary:    Locales for python2-sphinx and python3-sphinx
Group:      Development/Python
Conflicts:  python2-sphinx < %{version}-%{release}
Conflicts:  python3-sphinx < %{version}-%{release}

%description locales
Sphinx is a tool that makes it easy to create intelligent and
beautiful documentation for Python projects (or other documents
consisting of multiple reStructuredText sources), written by Georg
Brandl. It was originally created to translate the new Python
documentation, but has now been cleaned up in the hope that it will be
useful to many other projects.

This package contains locales.

%files locales -f sphinx.lang
%dir %{_datadir}/sphinx/
%dir %{_datadir}/sphinx/locale
%dir %{_datadir}/sphinx/locale/*

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

# Remove tests that use the network
rm -f tests/test_build_linkcheck.py
rm -f tests/test_build.py

%build
%py3_build

%if %{with doc}
export PYTHONPATH=$(pwd)
make -C doc html
make -C doc man
rm -rf doc/_build/html/.buildinfo
mv doc/_build/{html,man}/ .
%endif

%install
%py3_install

# For backwards compatibility. Remove around Mageia 10 (with care)
install -d %{buildroot}%{_libexecdir}/python3-sphinx
for i in sphinx-{apidoc,autogen,build,quickstart}; do
    ln -s %{_bindir}/$i %{buildroot}%{_bindir}/$i-%{python3_version}
    ln -s %{_bindir}/$i %{buildroot}%{_bindir}/$i-3
    ln -s %{_bindir}/$i %{buildroot}%{_libexecdir}/python3-sphinx/$i
done

# Clean up non-python files
rm -f %{buildroot}%{python3_sitelib}/sphinx/locale/.DS_Store
rm -rf %{buildroot}%{python3_sitelib}/sphinx/locale/.tx

%if %{with doc}
# Deliver man pages
install -d %{buildroot}%{_mandir}/man1
install -Dpm644 man/sphinx-*.1 %{buildroot}%{_mandir}/man1/
for f in %{buildroot}%{_mandir}/man1/sphinx-*.1;
do
    cp -p $f $(echo $f | sed -e "s|.1$|-%{python3_version}.1|")
done

# Deliver rst files
rm -rf doc/_build
sed -i 's|python ../sphinx-build.py|/usr/bin/sphinx-build|' doc/Makefile
cp -af doc reST
rm -rf reST/make.bat
%endif

# Move language files to /usr/share;
# patch to support this incorporated in 0.6.6
pushd %{buildroot}%{python3_sitelib}

for lang in `find sphinx/locale -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
do
  test $lang == __pycache__ && continue
  install -d %{buildroot}%{_datadir}/sphinx/locale/$lang
  install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
  mv sphinx/locale/$lang/LC_MESSAGES/sphinx.js \
     %{buildroot}%{_datadir}/sphinx/locale/$lang/
  mv sphinx/locale/$lang/LC_MESSAGES/sphinx.mo \
    %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
  rm -rf sphinx/locale/$lang
done
popd

%find_lang sphinx

# Language files; Since these are javascript, it's not immediately obvious to
# find_lang that they need to be marked with a language.
(cd %{buildroot} && find . -name 'sphinx.js') | sed -e 's|^.||' | sed -e \
  's:\(.*/locale/\)\([^/_]\+\)\(.*\.js$\):%lang(\2) \1\2\3:' \
  >> sphinx.lang


%if %{with tests}
%check
export LANG=C.UTF-8

# Currently, all linkcheck tests and test_latex_remote_images need internet
# XXX investigate test_gettext_definition_terms test_text_definition_terms
%{__python3} -m pytest \
%if %{without internet}
    -k "not linkcheck and not latex_remote_images and not test_latex_images and not test_gettext_definition_terms and not test_text_definition_terms" \
%endif
;

%endif





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16593 |21mr|python-sphinx-argparse-0.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname sphinx-argparse
%global sum Sphinx extension that automatically documents argparse commands and options

Name:		python-%{srcname}
Version:	0.3.1
Release:	1
Summary:	%{sum}
Group:		Development/Python
License:	MIT
Url:		https://github.com/ribozz/%{srcname}/
Source0:	https://pypi.io/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRequires:  python3-sphinx
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

%description
Sphinx extension that automatically documents argparse commands and options

#--------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	%{sum}
Group:		Development/Python
Requires:	python3-sphinx

%description -n python3-%{srcname}
Sphinx extension that automatically documents argparse commands and options

%files -n python3-%{srcname}
%license LICENSE
%{python3_sitelib}/*

#--------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16594 |21mr|python-sphinx_celery-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name sphinx_celery

%bcond_with test

Name:           python-%{pypi_name}
Version:        2.0.0
Release:        1
Summary:        Sphinx Celery Theme
Group:          Development/Python
License:        BSD
URL:            https://github.com/celery/sphinx_celery
Source0:        %{pypi_name}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(sphinx)
%if %{with test}
BuildRequires:  python3dist(nose)
%endif

%description
This project provides the Celery sphinx theme and common Sphinx utilities.

%package -n     python3-%{pypi_name}
Summary:        %{summary}

Requires:       python3dist(setuptools)
Requires:       python3dist(sphinx) >= 2.0.0

%description -n python3-%{pypi_name}
This project provides the Celery sphinx theme and common Sphinx utilities.

%prep
%setup -qn %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%if %{with test}
%check
python3 setup.py test
%endif

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/%{pypi_name}/
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16595 |21mr|python-sphinxcontrib-actdiag-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-actdiag


%global common_desc sphinxcontribactdiag A sphinx extension for embedding \
activity diagram using actdiag. This extension enables you to insert activity \
diagrams into your document.


Name:           python-%{pypi_name}
Version:        2.0.0
Release:        1
Group:		Development/Python
Summary:        Sphinx "actdiag" extension

License:        BSD
URL:            http://github.com/blockdiag/sphinxcontrib-actdiag
Source0:        https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch


%description
%{common_desc}

%package -n     python3-%{pypi_name}
Summary:        Sphinx "actdiag" extension
%{?python_provide:%python_provide python3-%{pypi_name}}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
Requires:       python3-blockdiag >= 1.5.0
Requires:       python3-actdiag >= 0.5.3
Requires:       python3-sphinx >= 0.6

%description -n python3-%{pypi_name}
%{common_desc}


%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install


%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib_actdiag*nspkg.pth
%{python3_sitelib}/sphinxcontrib
%{python3_sitelib}/sphinxcontrib_actdiag-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16596 |21mr|python-sphinxcontrib-apidoc-0.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-apidoc


Name:		python-%{pypi_name}
Version:	0.3.0
Release:	1
Summary:	A Sphinx extension for running 'sphinx-apidoc' on each build
Group:		Development/Python
License:	BSD
URL:		http://www.sphinx-doc.org/
Source0:	https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pbr)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch


%description
This package contains Sphinx extension for running sphinx-apidoc_
on each build.Overview *sphinx-apidoc* is a tool for automatic generation
of Sphinx sources that, using the autodoc <sphinx_autodoc>_ extension,
documents a whole package in the style of other automatic API documentation
tools. *sphinx-apidoc* does not actually build documentation - rather it
simply generates it.

#-------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:    %{summary}
Group:		Development/Python
Requires:   python3-pbr
Requires:   python3-sphinx

%description -n python3-%{pypi_name}
This package contains Sphinx extension for running sphinx-apidoc_
on each build.Overview *sphinx-apidoc* is a tool for automatic generation
of Sphinx sources that, using the autodoc <sphinx_autodoc>_ extension,
documents a whole package in the style of other automatic API documentation
tools. *sphinx-apidoc* does not actually build documentation - rather it
simply generates it.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib_apidoc*nspkg.pth
%{python3_sitelib}/sphinxcontrib/apidoc
%{python3_sitelib}/sphinxcontrib_apidoc-%{version}-py?.?.egg-info

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build

%py3_build

%install

%py3_install

# %check
# FIXME(chkumar246): Tests are broken in current version, So
# disabling it, Once new version will be available. We will
# add it.
# py.test ||
# %if %{with python3}
# py.test-3 ||
# %endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16597 |21mr|python-sphinxcontrib-applehelp-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-applehelp

# when bootstrapping sphinx, we cannot run tests yet
%bcond_with check

Name:           python-%{pypi_name}
Version:	1.0.2
Release:	1
Summary:        Sphinx extension for Apple help books
Group:		Development/Python
License:        BSD
URL:            https://pypi.org/project/sphinxcontrib-applehelp/
Source0:	https://files.pythonhosted.org/packages/9f/01/ad9d4ebbceddbed9979ab4a89ddb78c9760e74e6757b1880f1b2760e8295/sphinxcontrib-applehelp-1.0.2.tar.gz
BuildArch:      noarch

BuildRequires:  gettext
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%if %{with check}
BuildRequires:  python3-pytest
BuildRequires:  python3-sphinx >= 2
%endif

%description
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
sphinxcontrib-applehelp is a sphinx extension which outputs Apple help books.

%prep
%autosetup -n %{pypi_name}-%{version}
find -name '*.mo' -delete

%build
for po in $(find -name '*.po'); do
  msgfmt --output-file=${po%.po}.mo ${po}
done
%py3_build

%install
%py3_install

# Move language files to /usr/share
pushd %{buildroot}%{python3_sitelib}
for lang in `find sphinxcontrib/applehelp/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
do
  test $lang == __pycache__ && continue
  install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
  mv sphinxcontrib/applehelp/locales/$lang/LC_MESSAGES/*.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
done
rm -rf sphinxcontrib/applehelp/locales
ln -s %{_datadir}/locale sphinxcontrib/applehelp/locales
popd

%find_lang sphinxcontrib.applehelp

%if %{with check}
%check
%{__python3} -m pytest
%endif

%files -n python3-%{pypi_name} -f sphinxcontrib.applehelp.lang
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_applehelp-%{version}-py%{python3_version}-*.pth
%{python3_sitelib}/sphinxcontrib_applehelp-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16598 |21mr|python-sphinxcontrib-blockdiag-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-blockdiag

Name:		python-%{pypi_name}
Version:	2.0.0
Release:	1
Summary:	Sphinx "blockdiag" extension
Group:		Development/Python
License:	BSD
URL:		https://github.com/blockdiag/sphinxcontrib-blockdiag
Source0:	https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
A sphinx extension for embedding block diagram using blockdiag_.

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Sphinx "blockdiag" extension
Group:		Development/Python

BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)
Requires:       python3egg(blockdiag) >= 1.5.0
Requires:       python3egg(sphinx) >= 0.6

%description -n python3-%{pypi_name}
A sphinx extension for embedding block diagram using blockdiag_.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/sphinxcontrib
%{python3_sitelib}/sphinxcontrib_blockdiag-*.egg-info
%{python3_sitelib}/sphinxcontrib_blockdiag-*.pth
%exclude %{python3_sitelib}/sphinxcontrib/tests

#--------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16599 |21mr|python-sphinxcontrib-devhelp-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-devhelp

# when bootstrapping sphinx, we cannot run tests yet
%bcond_with check

Name:           python-%{pypi_name}
Version:	1.0.2
Release:	1
Summary:        Sphinx extension for Devhelp documents
Group:		Development/Python
License:        BSD
URL:            https://pypi.org/project/sphinxcontrib-devhelp/
Source0:	https://files.pythonhosted.org/packages/98/33/dc28393f16385f722c893cb55539c641c9aaec8d1bc1c15b69ce0ac2dbb3/sphinxcontrib-devhelp-1.0.2.tar.gz
BuildArch:      noarch

BuildRequires:  gettext
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%if %{with check}
BuildRequires:  python3-pytest
BuildRequires:  python3-sphinx
%endif

%description
sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
sphinxcontrib-devhelp is a sphinx extension which outputs Devhelp document.

%prep
%autosetup -n %{pypi_name}-%{version}
find -name '*.mo' -delete

%build
for po in $(find -name '*.po'); do
  msgfmt --output-file=${po%.po}.mo ${po}
done
%py3_build

%install
%py3_install

# Move language files to /usr/share
pushd %{buildroot}%{python3_sitelib}
for lang in `find sphinxcontrib/devhelp/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
do
  test $lang == __pycache__ && continue
  install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
  mv sphinxcontrib/devhelp/locales/$lang/LC_MESSAGES/*.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
done
rm -rf sphinxcontrib/devhelp/locales
ln -s %{_datadir}/locale sphinxcontrib/devhelp/locales
popd

%find_lang sphinxcontrib.devhelp

%if %{with check}
%check
%{__python3} -m pytest
%endif

%files -n python3-%{pypi_name} -f sphinxcontrib.devhelp.lang
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_devhelp-%{version}-py%{python3_version}-*.pth
%{python3_sitelib}/sphinxcontrib_devhelp-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16600 |21mr|python-sphinxcontrib-htmlhelp-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-htmlhelp

# when bootstrapping sphinx, we cannot run tests yet
%bcond_with check

Name:           python-%{pypi_name}
Version:	2.0.0
Release:	1
Summary:        Sphinx extension for HTML help files
Group:		Development/Python
License:        BSD
URL:            https://pypi.org/project/sphinxcontrib-htmlhelp/
Source0:	https://files.pythonhosted.org/packages/eb/85/93464ac9bd43d248e7c74573d58a791d48c475230bcf000df2b2700b9027/sphinxcontrib-htmlhelp-2.0.0.tar.gz
BuildArch:      noarch

BuildRequires:  gettext
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%if %{with check}
BuildRequires:  python3-pytest
BuildRequires:  python3-sphinx
BuildRequires:  python3-html5lib
%endif

%description
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
sphinxcontrib-htmlhelp is a sphinx extension which renders HTML help files.

%prep
%autosetup -n %{pypi_name}-%{version}
find -name '*.mo' -delete

%build
for po in $(find -name '*.po'); do
  msgfmt --output-file=${po%.po}.mo ${po}
done
%py3_build

%install
%py3_install

# Move language files to /usr/share
pushd %{buildroot}%{python3_sitelib}
for lang in `find sphinxcontrib/htmlhelp/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
do
  test $lang == __pycache__ && continue
  install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
  mv sphinxcontrib/htmlhelp/locales/$lang/LC_MESSAGES/*.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
done
rm -rf sphinxcontrib/htmlhelp/locales
ln -s %{_datadir}/locale sphinxcontrib/htmlhelp/locales
popd

%find_lang sphinxcontrib.htmlhelp

%if %{with check}
%check
%{__python3} -m pytest
%endif

%files -n python3-%{pypi_name} -f sphinxcontrib.htmlhelp.lang
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_htmlhelp-%{version}-py%{python3_version}-*.pth
%{python3_sitelib}/sphinxcontrib_htmlhelp-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16601 |21mr|python-sphinxcontrib-httpdomain-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global pypi_name sphinxcontrib-httpdomain

Name:		python-%{pypi_name}
Version:	1.7.0
Release:	1
Summary:	Sphinx domain for documenting HTTP APIs
Group:		Development/Python
License:	BSD
URL:		http://packages.python.org/sphinxcontrib-httpdomain/
Source0:	https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# issue to be filed(?)
Patch4:		0004-httpdomain-bump-domain-data-version.patch
BuildArch:	noarch

%description
Using this Sphinx domain you can document your HTTP API. It includes support 
for generating documentation from Flask routing tables.

#---------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
Requires:	python3-sphinx
Requires:	python3-six

%description -n python3-%{pypi_name}
Using this Sphinx domain you can document your HTTP API. It includes support 
for generating documentation from Flask routing tables.

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/sphinxcontrib*

#---------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
%patch4 -p2
rm -r *.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16602 |21mr|python-sphinxcontrib-jsmath-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-jsmath

# when bootstrapping sphinx, we cannot run tests yet
%bcond_with check

Name:           python-%{pypi_name}
Version:        1.0.1
Release:        1
Summary:        Sphinx extension for math in HTML via JavaScript
Group:		Development/Python
License:        BSD
URL:            https://pypi.org/project/sphinxcontrib-jsmath/
Source0:        https://files.pythonhosted.org/packages/b2/e8/9ed3830aeed71f17c026a07a5097edcf44b692850ef215b161b8ad875729/sphinxcontrib-jsmath-1.0.1.tar.gz
BuildArch:      noarch

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%if %{with check}
BuildRequires:  python3-pytest
BuildRequires:  python3-sphinx
%endif

%description
sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML
via JavaScript.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
sphinxcontrib-jsmath is a sphinx extension which renders display math in HTML
via JavaScript.

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with check}
%check
%{__python3} -m pytest
%endif

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_jsmath-%{version}-py%{python3_version}-*.pth
%{python3_sitelib}/sphinxcontrib_jsmath-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16603 |21mr|python-sphinxcontrib-log-cabinet-1.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname sphinxcontrib-log-cabinet

Summary:	Organize changelogs generated by versionadded etc
Name:		python-%oname
Version:	1.0.1
Release:	2
Url:		https://github.com/davidism/sphinxcontrib-log-cabinet
Source0:	https://files.pythonhosted.org/packages/75/26/0687391e10c605a4d0c7ebe118c57c51ecc687128bcdae5803d9b96def81/sphinxcontrib-log-cabinet-1.0.1.tar.gz
License:	BSD
Group:		Development/Python
BuildArch:	noarch
BuildRequires:	%python2-devel
BuildRequires:	pythonegg(setuptools)

%description
Organize changelogs generated by versionadded, versionchanged, deprecated 
directives. The log will be sorted by newest to oldest version. For HTML docs, 
older versions will be collapsed by default.

#==============================================================================
%package -n %python2-%oname
%py2_migration_meta %python2-%oname
Summary: Organize changelogs generated by versionadded etc
Group:	Development/Python

%description -n %python2-%oname
Organize changelogs generated by versionadded, versionchanged, deprecated 
directives. The log will be sorted by newest to oldest version. For HTML docs, 
older versions will be collapsed by default.

%files -n %python2-%oname
%doc python2/CHANGES.rst python2/LICENSE.rst python2/README.rst
%{python2_sitelib}/sphinxcontrib/*
%{python2_sitelib}/*.egg-info/*
%{python2_sitelib}/sphinxcontrib_log_cabinet-%{version}*.pth

#==============================================================================

%package -n python3-%oname
Summary: Organize changelogs generated by versionadded etc
Group:			Development/Python
BuildRequires: python3-devel
BuildRequires: python3egg(setuptools)

%description -n python3-%oname
Organize changelogs generated by versionadded, versionchanged, deprecated 
directives. The log will be sorted by newest to oldest version. For HTML docs, 
older versions will be collapsed by default.

%files -n python3-%oname
%doc python3/CHANGES.rst python3/LICENSE.rst python3/README.rst
%{python3_sitelib}/sphinxcontrib/*
%{python3_sitelib}/*.egg-info/*
%{python3_sitelib}/sphinxcontrib_log_cabinet-%{version}*.pth

#==============================================================================

%prep
%setup -qc -n %oname-%{version}
mv %oname-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python3
%py3_install
popd

pushd python2
%py2_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16604 |21mr|python-sphinxcontrib-pecanwsme-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-pecanwsme

Name:		python-%{pypi_name}
Version:	0.10.0
Release:	1
Summary:	Extension to Sphinx for documenting APIs built with Pecan and WSME
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/dreamhost/sphinxcontrib-pecanwsme
Source0:	https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
This is an extension to Sphinx (http://sphinx-doc.org/) for documenting APIs
built with the Pecan WSGI object-dispatching web framework and WSME
(Web Services Made Easy).

#--------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Extension to Sphinx for documenting APIs built with Pecan and WSME
Group:		Development/Python

BuildRequires:	python3-devel
BuildRequires:	python3-pbr
BuildRequires:	python3-setuptools

Requires:	python3-six
Requires:	python3-sphinxcontrib-httpdomain

%description -n python3-%{pypi_name}
This is an extension to Sphinx (http://sphinx-doc.org/) for documenting APIs
built with the Pecan WSGI object-dispatching web framework and WSME
(Web Services Made Easy).

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/sphinxcontrib/pecanwsme
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/*-nspkg.pth

#--------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16605 |21mr|python-sphinxcontrib-programoutput-0.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-programoutput

Name:		python-%{pypi_name}
Version:	0.17
Release:	1
Summary:	A Sphinx extension to literally insert the output of arbitrary commands into documents
Group:		Development/Python
License:	BSD
URL:		https://sphinxcontrib-programoutput.readthedocs.org/
Source0:	https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
A Sphinx extension to literally insert the output of arbitrary commands into documents, 
helping you to keep your command examples up to date.

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	A Sphinx extension to literally insert the output of arbitrary commands into documents
Group:		Development/Python

BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
Requires:	python3egg(sphinx) >= 0.6

%description -n python3-%{pypi_name}
A Sphinx extension to literally insert the output of arbitrary commands into documents, 
helping you to keep your command examples up to date.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/sphinxcontrib
%{python3_sitelib}/sphinxcontrib_programoutput-*.egg-info
%{python3_sitelib}/sphinxcontrib_programoutput-*.pth
%exclude %{python3_sitelib}/sphinxcontrib/tests

#--------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16606 |21mr|python-sphinxcontrib-qthelp-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-qthelp

# when bootstrapping sphinx, we cannot run tests yet
%bcond_with check

Name:           python-%{pypi_name}
Version:	1.0.3
Release:	1
Summary:        Sphinx extension for QtHelp documents
Group:		Development/Python
License:        BSD
URL:            http://sphinx-doc.org/
Source0:	https://files.pythonhosted.org/packages/b1/8e/c4846e59f38a5f2b4a0e3b27af38f2fcf904d4bfd82095bf92de0b114ebd/sphinxcontrib-qthelp-1.0.3.tar.gz
BuildArch:      noarch

BuildRequires:  gettext
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%if %{with check}
BuildRequires:  python3-pytest
BuildRequires:  python3-sphinx
%endif

%description
sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.


%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
sphinxcontrib-qthelp is a sphinx extension which outputs QtHelp document.

%prep
%autosetup -n %{pypi_name}-%{version}
find -name '*.mo' -delete

%build
for po in $(find -name '*.po'); do
  msgfmt --output-file=${po%.po}.mo ${po}
done
%py3_build

%install
%py3_install

# Move language files to /usr/share
pushd %{buildroot}%{python3_sitelib}
for lang in `find sphinxcontrib/qthelp/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
do
  test $lang == __pycache__ && continue
  install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
  mv sphinxcontrib/qthelp/locales/$lang/LC_MESSAGES/*.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
done
rm -rf sphinxcontrib/qthelp/locales
ln -s %{_datadir}/locale sphinxcontrib/qthelp/locales
popd

%find_lang sphinxcontrib.qthelp

%if %{with check}
%check
%{__python3} -m pytest
%endif

%files -n python3-%{pypi_name} -f sphinxcontrib.qthelp.lang
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_qthelp-%{version}-py%{python3_version}-*.pth
%{python3_sitelib}/sphinxcontrib_qthelp-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16607 |21mr|python-sphinxcontrib-seqdiag-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-seqdiag

Name:		python-%{pypi_name}
Version:	2.0.0
Release:	1
Summary:	Sphinx "seqdiag" extension
Group:		Development/Python
License:	BSD
URL:		http://github.com/blockdiag/sphinxcontrib-seqdiag
Source0:	https://pypi.python.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
A sphinx extension for embedding sequence diagram using seqdiag_.

#-------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Sphinx "seqdiag" extension
Group:		Development/Python

BuildRequires:  python3egg(setuptools)
BuildRequires:  pkgconfig(python3)

Requires:       python3-blockdiag >= 1.5.0
Requires:       python3-seqdiag >= 0.9.3
Requires:       python3-sphinx >= 0.6

%description -n python3-%{pypi_name}
A sphinx extension for embedding sequence diagram using seqdiag_.

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/sphinxcontrib/*.py*
%{python3_sitelib}/sphinxcontrib/__pycache__
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/*-nspkg.pth

#-------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16608 |21mr|python-sphinxcontrib-serializinghtml-1.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-serializinghtml

# when bootstrapping sphinx, we cannot run tests yet
%bcond_with check

Name:           python-%{pypi_name}
Version:	1.1.5
Release:	1
Summary:        Sphinx extension for serialized HTML
Group:		Development/Python
License:        BSD
URL:            http://sphinx-doc.org/
Source0:	https://files.pythonhosted.org/packages/b5/72/835d6fadb9e5d02304cf39b18f93d227cd93abd3c41ebf58e6853eeb1455/sphinxcontrib-serializinghtml-1.1.5.tar.gz
BuildArch:      noarch

BuildRequires:  gettext
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools

%if %{with check}
BuildRequires:  python3-pytest
BuildRequires:  python3-sphinx >= 2
%endif

%description
sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized"
HTML files (json and pickle).

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
sphinxcontrib-serializinghtml is a sphinx extension which outputs "serialized"
HTML files (json and pickle).

%prep
%autosetup -n %{pypi_name}-%{version}
find -name '*.mo' -delete

%build
for po in $(find -name '*.po'); do
  msgfmt --output-file=${po%.po}.mo ${po}
done
%py3_build

%install
%py3_install

# Move language files to /usr/share
pushd %{buildroot}%{python3_sitelib}
for lang in `find sphinxcontrib/serializinghtml/locales -maxdepth 1 -mindepth 1 -type d -not -path '*/\.*' -printf "%f "`;
do
  test $lang == __pycache__ && continue
  install -d %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES
  mv sphinxcontrib/serializinghtml/locales/$lang/LC_MESSAGES/*.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
done
rm -rf sphinxcontrib/serializinghtml/locales
ln -s %{_datadir}/locale sphinxcontrib/serializinghtml/locales
popd

%find_lang sphinxcontrib.serializinghtml

%if %{with check}
%check
%{__python3} -m pytest
%endif

%files -n python3-%{pypi_name} -f sphinxcontrib.serializinghtml.lang
%license LICENSE
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_serializinghtml-%{version}-py%{python3_version}-*.pth
%{python3_sitelib}/sphinxcontrib_serializinghtml-%{version}-py%{python3_version}.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16609 |21mr|python-sphinxcontrib-svg2pdfconverter-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname sphinxcontrib-svg2pdfconverter

Name:		python-%{srcname}
Version:	1.1.1
Release:	1
Summary:	Sphinx SVG to PDF Converter Extension
Group:		Development/Python
License:	BSD
URL:		https://pypi.org/project/sphinxcontrib-svg2pdfconverter/
Source0:	https://files.pythonhosted.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)
BuildArch:	noarch

%description
Converts SVG images to PDF in case the builder does not support SVG images
natively (e.g. LaTeX).

#-------------------------------------------------------------------------
%package -n python3-%{srcname}-common
Summary:	Sphinx SVG to PDF Converter Extension - common files
Group:		Development/Python

%description -n python3-%{srcname}-common
Converts SVG images to PDF in case the builder does not support SVG images
natively (e.g. LaTeX).
This package contains common files.

%files -n python3-%{srcname}-common
%license LICENSE.txt
%doc README.rst
%{python3_sitelib}/sphinxcontrib_svg2pdfconverter*nspkg.pth
%{python3_sitelib}/sphinxcontrib_svg2pdfconverter-*.egg-info

#-------------------------------------------------------------------------

%package -n python3-sphinxcontrib-inkscapeconverter
Summary:	Sphinx SVG to PDF Converter Extension - Inkscape converter
Group:		Development/Python

Requires:	/usr/bin/inkscape
Requires:	python3-%{srcname}-common = %{version}-%{release}

%description -n python3-sphinxcontrib-inkscapeconverter
Converts SVG images to PDF in case the builder does not support SVG images
natively (e.g. LaTeX).
This package contains converter using Inkscape.

%files -n python3-sphinxcontrib-inkscapeconverter
%{python3_sitelib}/sphinxcontrib/__pycache__/inkscapeconverter.*.pyc
%{python3_sitelib}/sphinxcontrib/inkscapeconverter.py

#-------------------------------------------------------------------------

%package -n python3-sphinxcontrib-rsvgconverter
Summary:	Sphinx SVG to PDF Converter Extension - libRSVG converter
Group:		Development/Python

Requires:	/usr/bin/rsvg-convert
Requires:	python3-%{srcname}-common = %{version}-%{release}

%description -n python3-sphinxcontrib-rsvgconverter
Converts SVG images to PDF in case the builder does not support SVG images
natively (e.g. LaTeX).
This package contains converter using libRSVG.

%files -n python3-sphinxcontrib-rsvgconverter
%{python3_sitelib}/sphinxcontrib/__pycache__/rsvgconverter.*.pyc
%{python3_sitelib}/sphinxcontrib/rsvgconverter.py

#-------------------------------------------------------------------------

%package -n python3-sphinxcontrib-cairosvgconverter
Summary:	Sphinx SVG to PDF Converter Extension - CairoSVG converter
Group:		Development/Python

Requires:	python3-cairosvg
Requires:	python3-%{srcname}-common = %{version}-%{release}


%description -n python3-sphinxcontrib-cairosvgconverter
Converts SVG images to PDF in case the builder does not support SVG images
natively (e.g. LaTeX).
This package contains converter using CairoSVG.

%files -n python3-sphinxcontrib-cairosvgconverter
%{python3_sitelib}/sphinxcontrib/__pycache__/cairosvgconverter.*.pyc
%{python3_sitelib}/sphinxcontrib/cairosvgconverter.py

#-------------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16610 |21mr|python-sphinxcontrib-trio-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name sphinxcontrib-trio

Name:           python-%{pypi_name}
Version:	1.1.2
Release:	1
Summary:        Make Sphinx better at documenting Python functions and methods
Group:          Development/Python
License:        MIT or ASL 2.0
URL:            https://github.com/python-trio/sphinxcontrib-trio
Source0:	https://files.pythonhosted.org/packages/ca/33/ee48d86e30bb3c5d72a47f49b1ebf5c23dd253b04d8d5fc3e6c68407a03e/sphinxcontrib-trio-1.1.2.tar.gz
BuildArch:      noarch
 
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(sphinx)

%description
.. note that this README gets 'include'ed into the main
documentationsphinxcontrib-trio This sphinx extension helps you document Python
code that uses async/await, or abstract methods, or context managers, or
generators, or ... you get the idea. It works by making sphinx's regular
directives for documenting Python functions and methods smarter and more
powerful. The name is because it was...

%package -n     python3-%{pypi_name}
Summary:        %{summary}
Requires:       python3egg(sphinx)

%description -n python3-%{pypi_name}
.. note that this README gets 'include'ed into the main
documentationsphinxcontrib-trio This sphinx extension helps you document Python
code that uses async/await, or abstract methods, or context managers, or
generators, or ... you get the idea. It works by making sphinx's regular
directives for documenting Python functions and methods smarter and more
powerful. The name is because it was...

%package -n python-%{pypi_name}-doc
Summary:        Sphinxcontrib-trio documentation

%description -n python-%{pypi_name}-doc
Documentation for sphinxcontrib-trio

%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build
# generate html docs
PYTHONPATH=${PWD} sphinx-build docs/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{pypi_name}
%doc README.rst LICENSE.MIT LICENSE.APACHE2 LICENSE
%{py3_puresitedir}/sphinxcontrib_trio
%{py3_puresitedir}/sphinxcontrib_trio-%{version}-py?.?.egg-info

%files -n python-%{pypi_name}-doc
%doc html LICENSE.MIT LICENSE.APACHE2 LICENSE
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16611 |21mr|python-sphinxcontrib-websupport-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sphinxcontrib-websupport

%bcond_with tests

Name:           python-sphinxcontrib-websupport
Version:	1.2.4
Release:	1
Group:          Development/Python
Summary:        Sphinx API for Web Apps

License:        BSD
URL:            https://pypi.python.org/pypi/sphinxcontrib-websupport
Source0:	https://files.pythonhosted.org/packages/da/aa/b03a3f569a52b6f21a579d168083a27036c1f606269e34abdf5b70fe3a2c/sphinxcontrib-websupport-1.2.4.tar.gz
BuildArch:      noarch

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-mock
%if %{with tests}
BuildRequires:  python3-pytest
%endif
BuildRequires:  python3-setuptools

%description
sphinxcontrib-webuspport provides a Python API to easily integrate Sphinx
documentation into your Web application.

%package -n     python3-%{pypi_name}
Summary:        Sphinx API for Web Apps
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
sphinxcontrib-webuspport provides a Python API to easily integrate Sphinx
documentation into your Web application.

%prep
%setup -q -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

#we don't want these
rm -rf %{buildroot}/%{python3_sitelib}/*-nspkg.pth

%if %{with tests}
%check
PYTHONPATH=. py.test tests/
%endif

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/sphinxcontrib/
%{python3_sitelib}/sphinxcontrib_websupport-%{version}-py%{python3_version}.egg-info
#%%{python3_sitelib}/sphinxcontrib_websupport-%%{version}-py%%{python3_version}-nspkg.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16612 |21mr|python-sphinx-copybutton-0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# DOCUMENTATION NOTE: We used to build the documentation, but then upstream
# started depending on sphinx-book-theme, which we do not have in Fedora.
# Packaging it would require adding about 3 dozen new packages to Fedora, which
# is more work than I want to go to for this package, which I only need to
# generate documentation for another package.

%global srcname sphinx-copybutton

Name:		python-%{srcname}
Version:	0.4.0
Release:	1
Summary:	Add a copy button to code cells in Sphinx docs
Group:		Development/Python
License:	MIT
URL:		https://sphinx-copybutton.readthedocs.io/en/latest/
Source0:	%{pypi_source}

BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	ipython
BuildRequires:	python3-setuptools

# This can be removed when F38 reaches EOL
Obsoletes:      %{name}-doc < 0.3.2
Provides:       %{name}-doc = %{version}-%{release}

%global _description %{expand:
Sphinx-copybutton does one thing: add a little "copy" button to the
right of your code blocks.  If the code block overlaps to the right of
the text area, you can just click the button to get the whole thing.}

%description %_description

#---------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	Add a copy button to code cells in Sphinx docs
Group:		Development/Python

%description -n python3-%{srcname} %_description

%files       -n python3-%{srcname}
%doc README.md
%license LICENSE
%{python3_sitelib}/sphinx_copybutton*

#---------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16613 |21mr|python-sphinx-gallery-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name sphinx-gallery

%bcond_with tests

Name:           python-%{pypi_name}
Version:	0.9.0
Release:	1
Summary:        Sphinx extension to automatically generate an examples gallery
Group:          Development/Python
License:        3-clause BSD
URL:            https://github.com/sphinx-gallery/sphinx-gallery
Source0:	https://files.pythonhosted.org/packages/40/6e/c494d573669eb6a581d7c270b7efd9c1244086f818b9a6e767d6a2adfeda/sphinx-gallery-0.9.0.tar.gz
BuildArch:      noarch

%description
Sphinx extension that builds an HTML gallery of examples from any set of
Python scripts.

%package -n     python3-%{pypi_name}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
%if %{with tests}
BuildRequires:  python3dist(matplotlib)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(sphinx)
%endif
Provides:       python3-sphinx_gallery = %{version}-%{release}

%description -n python3-%{pypi_name}
Sphinx extension that builds an HTML gallery of examples from any set of
Python scripts.

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

# No need for copy_sphinxgallery.sh
rm -r %{buildroot}%{_bindir}

%if %{with tests}
%check
python3 setup.py test
%endif

%files -n python3-%{pypi_name}
%doc LICENSE
%doc README.rst
%{py3_puresitedir}/sphinx_gallery
%{py3_puresitedir}/sphinx_gallery-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16614 |21mr|python-sphinx-issues-3.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name sphinx-issues

Summary:	A Sphinx extension for linking to your project’s issue tracker
Name:		python-%{pypi_name}
Version:	3.0.1
Release:	2
License:	BSD
Group:		Development/Python
Url:		https://github.com/sloria/sphinx-issues
Source0:	https://pypi.io/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
A Sphinx extension for linking to your project’s issue tracker. Includes roles
for linking to issues, pull requests, user profiles, with built-in support for
GitHub (though this works with other services).

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A Sphinx extension for linking to your project’s issue tracker
Group:		Development/Python
Provides:	python3egg(sphinx-issues) = %{EVRD}
Provides:	python3dist(sphinx-issues) = %{EVRD}
Provides:	python3egg(sphinx_issues) = %{EVRD}
Provides:	python3dist(sphinx_issues) = %{EVRD}


%description -n python3-%{pypi_name}
A Sphinx extension for linking to your project’s issue tracker. Includes roles
for linking to issues, pull requests, user profiles, with built-in support for
GitHub (though this works with other services).

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/*.egg-info/*
%{python3_sitelib}/sphinx_*.py*
%{python3_sitelib}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16615 |21mr|python-sphinx_rtd_theme-0.4.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	sphinx_rtd_theme

Name:		python-%{module}
Version:	0.4.3
Release:	3
Summary:	Sphinx theme for readthedocs.org
Group:		Development/Python
License:	MIT
URL:		https://github.com/snide/sphinx_rtd_theme
Source0:	https://files.pythonhosted.org/packages/ed/73/7e550d6e4cf9f78a0e0b60b9d93dba295389c3d271c034bf2ea3463a79f9/sphinx_rtd_theme-0.4.3.tar.gz
BuildArch:	noarch

%description
This is a prototype mobile-friendly sphinx theme for readthedocs.org.
It's currently in development and includes some rtd variable checks that
can be ignored if you're just trying to use it on your project outside
of that site.

#===================================================================================
%package -n python3-%{module}
Summary:	Sphinx theme for readthedocs.org
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
This is a prototype mobile-friendly sphinx theme for readthedocs.org.
It's currently in development and includes some rtd variable checks that
can be ignored if you're just trying to use it on your project outside
of that site.

%files -n python3-%{module}
%doc README.rst LICENSE
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py%{py3_ver}.egg-info
#===================================================================================

%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info


%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16616 |21mr|python-sphinx-theme-alabaster-0.7.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name alabaster
%global srcname sphinx-theme-%{pypi_name}

Name:           python-%{srcname}
Version:        0.7.12
Release:        1
Summary:        Configurable sidebar-enabled Sphinx theme
Group:          Development/Python
License:        BSD
URL:            https://pypi.python.org/pypi/alabaster
Source0:        https://pypi.io/packages/source/a/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
This theme is a modified "Kr" Sphinx theme from @kennethreitz (especially as
used in his Requests project), which was itself originally based on @mitsuhiko's
theme used for Flask & related projects.

%package -n     python3-%{srcname}
Summary:        Configurable sidebar-enabled Sphinx theme
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}
This theme is a modified "Kr" Sphinx theme from @kennethreitz (especially as
used in his Requests project), which was itself originally based on @mitsuhiko's
theme used for Flask & related projects.

%prep
%setup -qn %{pypi_name}-%{version}

# Remove bundled eggs
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/%{pypi_name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16617 |21mr|python-sqlalchemy-1.4.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module_name SQLAlchemy

Summary:	SQL toolkit and object relational mapper for Python
Name:		python-sqlalchemy
Version:	1.4.23
Release:	1
License:	MIT
Group:		Development/Python
URL:		http://www.sqlalchemy.org/
Source0:	https://files.pythonhosted.org/packages/ad/c7/61ff52be84f5ac86c72672ceac941981f1685b4ef90391d405a1f89677d0/SQLAlchemy-1.4.23.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
#BuildRequires:	python3dist(pytest)
#BuildRequires:  python3dist(pytest-xdist)
BuildRequires:	python3dist(mock)
# for docs
#BuildRequires:  python3dist(sphinx)
#BuildRequires:  python3dist(zzzeeksphinx)
#BuildRequires:  python3dist(sphinx-paramlinks)

# JSON enabled sqlite is needed for tests
BuildRequires:	pkgconfig(sqlite3) >= 3.29.0-2

%description
SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible,
high-level interface to SQL databases.  Database and domain concepts are
decoupled, allowing both sides maximum flexibility and power. SQLAlchemy
provides a powerful mapping layer that can work as automatically or as manually
as you choose, determining relationships based on foreign keys or letting you
define the join conditions explicitly, to bridge the gap between database and
domain.

%package -n python3-sqlalchemy
Summary:	Modular and flexible ORM library for python
Group:		Development/Python
%{?python_provide:%python_provide python3-sqlalchemy}

%description -n python3-sqlalchemy
SQLAlchemy is an Object Relational Mappper (ORM) that provides a flexible,
high-level interface to SQL databases.  Database and domain concepts are
decoupled, allowing both sides maximum flexibility and power. SQLAlchemy
provides a powerful mapping layer that can work as automatically or as manually
as you choose, determining relationships based on foreign keys or letting you
define the join conditions explicitly, to bridge the gap between database and
domain.

%prep
%autosetup -p1 -n %{module_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-sqlalchemy
%license LICENSE
%{python3_sitearch}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16618 |21mr|python-sqlalchemy-filters-0.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name sqlalchemy-filters

Summary:	A library to filter SQLAlchemy queries
Name:		python-%{pypi_name}
Version:	0.12.0
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/juliotrigo/sqlalchemy-filters
# pypi_source
Source0:	%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
Filter, sort and paginate SQLAlchemy query objects. Ideal for exposing
these actions over a REST API.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A library to filter SQLAlchemy queries
Group:		Development/Python
Requires:	python3dist(six) >= 1.10
Requires:	python3dist(sqlalchemy) >= 1.0.16

%description -n python3-%{pypi_name}
Filter, sort and paginate SQLAlchemy query objects. Ideal for exposing
these actions over a REST API.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/sqlalchemy_filters
%{python3_sitelib}/sqlalchemy_filters-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
# Tests are not included in the tarball


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16619 |21mr|python-sqlalchemy-utils-0.37.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname SQLAlchemy-Utils

Name:               python-sqlalchemy-utils
Version:	0.37.8
Release:	1
Summary:            Various utility functions for SQLAlchemy
Group:              Development/Python
License:            BSD
URL:                http://pypi.python.org/pypi/SQLAlchemy-Utils
Source0:	https://files.pythonhosted.org/packages/61/02/5093e093df8e38585659d0ab7b5dae41bf45cb8d2dfefeaf356c75646821/SQLAlchemy-Utils-0.37.8.tar.gz

BuildArch:          noarch

BuildRequires:      python3-devel
BuildRequires:      python3-setuptools
BuildRequires:      python3-six
BuildRequires:      python3-sqlalchemy >= 0.9.3
BuildRequires:      python3-pytest
BuildRequires:      python3-pytz
BuildRequires:      python3-flexmock
BuildRequires:      python3-dateutil
BuildRequires:      python3-mock

%global _description\
Various utility functions and custom data types for SQLAlchemy.\


%description %_description

%package -n         python3-sqlalchemy-utils
Summary:            Various utility functions for SQLAlchemy
%{?python_provide:%python_provide python3-sqlalchemy-utils}
Requires:           python3-sqlalchemy >= 0.9.3
Requires:           python3-six

%description -n python3-sqlalchemy-utils
Various utility functions and custom data types for SQLAlchemy.


%prep
%setup -q -n %{modname}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{modname}.egg-info

find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'


%build
%py3_build


%install
%py3_install

%check
# Unit-tests seems to be broken in the unittest module on py3.5
#%{__python3} setup.py test


%files -n python3-sqlalchemy-utils
%doc README.rst
%license LICENSE
%{python3_sitelib}/sqlalchemy_utils/
%{python3_sitelib}/SQLAlchemy_Utils-%{version}*/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16620 |21mr|python-sqlite2-2.8.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname pysqlite

Name:		python-sqlite2
Version:	2.8.3
Release:	1
License:	zlib
Group:		Development/Python
Summary:	Python bindings for sqlite3
Url:		http://github.com/ghaering/pysqlite
Source0:	https://github.com/ghaering/pysqlite/archive/%{version}.tar.gz?/pysqlite-%{version}.tar.gz
BuildRequires:	pkgconfig(python2) 
BuildRequires:	sqlite3-devel 
%description
This packages allows you to use sqlite3 with python.
sqliite is a simple database engine.

#-----------------------------------------------------------------

%package -n python2-sqlite2
%py2_migration_meta python2-sqlite2
Summary:	Python bindings for sqlite3

%description -n python2-sqlite2
This packages allows you to use sqlite3 with python.
sqliite is a simple database engine.

%files -n python2-sqlite2
%doc installed-docs/*
%{python2_sitearch}/*

#-----------------------------------------------------------------
%prep
%setup -q -n %{realname}-%{version}

%build

%install
python2 ./setup.py install --root=%buildroot
mv %{buildroot}%{_prefix}/pysqlite2-doc/ installed-docs

%check
cd %{buildroot}%{py2_platsitedir}
python2 -c "from pysqlite2 import test; test.test()"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16621 |21mr|python-sqlparse-0.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# tests need internet connection, see similar case here:
# https://bugzilla.redhat.com/show_bug.cgi?id=864464#c15
# To build with tests, run rpmbuild --with tests -ba <spec>
%bcond_with     tests
%global python3_pkgversion 3

%global         shortname sqlparse

Name:           python-%{shortname}
Version:	0.4.3
Release:	1
Summary:        Non-validating SQL parser for Python
Group:		Development/Python
License:        BSD
URL:            https://github.com/andialbrecht/%{shortname}
Source0:        https://github.com/andialbrecht/%{shortname}/archive/%{version}/%{shortname}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python%{python3_pkgversion}-devel
BuildRequires:  python%{python3_pkgversion}-setuptools
BuildRequires:  python%{python3_pkgversion}-py

%if %{with tests}
BuildRequires:  python%{python3_pkgversion}-pytest
BuildRequires:  python%{python3_pkgversion}-pytest-cov
%endif # with_tests

%global _description\
sqlparse is a tool for parsing SQL strings.  It can generate pretty-printed\
renderings of SQL in various formats.\
\
It is a python module, together with a command-line tool.

%description %_description

%package -n     python%{python3_pkgversion}-%{shortname}
Summary:        Non-validating SQL parser for Python

%description -n python%{python3_pkgversion}-%{shortname}
sqlparse is a tool for parsing SQL strings.  It can generate pretty-printed
renderings of SQL in various formats.

It is a python module, together with a command-line tool.


%prep
%setup -q -n %{shortname}-%{version}


%build
%{__python3} setup.py build


%install
%{__python3} setup.py install --skip-build --root %{buildroot}


%if %{with tests}
%check
tox -e py%{python3_version_nodots}
%endif # with_tests


%files -n python%{python3_pkgversion}-%{shortname}
%license LICENSE
%doc AUTHORS CHANGELOG README.rst
%{python3_sitelib}/*

%{_bindir}/sqlformat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16622 |21mr|python-sseclient-0.0.27-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname sseclient
%bcond_with network

Name:		python-%{srcname}
Version:	0.0.27
Release:	1
Summary:	Python library for iterating over HTTP Server Sent Events (SSE)
Group:		Development/Python
License:	MIT
URL:		https://github.com/btubbs/%{srcname}
Source0:	%{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

%description
This is a Python client library for iterating over http Server Sent Event
(SSE) streams (also known as EventSource, after the name of the Javascript
interface inside browsers). The SSEClient class accepts an URL on init, and
is then an iterator over messages coming from the server.

#---------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	%{summary}
Group:		Development/Python

BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-mock
BuildRequires:	python3-pkginfo
BuildRequires:	python3-pytest
BuildRequires:	python3-requests
BuildRequires:	python3-six

%description -n python3-%{srcname}
This is a Python client library for iterating over http Server Sent Event
(SSE) streams (also known as EventSource, after the name of the Javascript
interface inside browsers). The SSEClient class accepts an URL on init, and
is then an iterator over messages coming from the server.

%files -n python3-%{srcname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{srcname}-%{version}-*.egg-info
%{python3_sitelib}/sseclient.py*
%{python3_sitelib}/__pycache__/sseclient*

#---------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%if %{with network}
%check
pytest-%{python3_version} -v
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16623 |21mr|python-statmake-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name statmake

Name:           python-%{pypi_name}
Version:        0.4.1
Release:        1
Summary:        Applies STAT information from a Stylespace to a variable font
Group:          Development/Python
License:        None
URL:            https://github.com/daltonmaag/statmake
Source0:        https://files.pythonhosted.org/packages/source/s/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
statmake takes a user-written Stylespace that defines OpenType STAT information
for an entire font family and then potentially subsets and applies it to a
specific variable font. This spares users from having to deal with raw TTX
dumps and juggling with nameIDs.

#----------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Applies STAT information from a Stylespace to a variable font
Group:          Development/Python
Provides:	%{pypi_name} = %{version}-%{release}

%description -n python3-%{pypi_name}
statmake takes a user-written Stylespace that defines OpenType STAT information
for an entire font family and then potentially subsets and applies it to a
specific variable font. This spares users from having to deal with raw TTX
dumps and juggling with nameIDs.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{_bindir}/statmake
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16624 |21mr|python-statsd-3.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%global srcname statsd

Name:       python-%{srcname}
Version:    3.3.0
Release:    1
Summary:    A Python statsd client
Group:      Development/Python
License:    MIT
URL:        https://github.com/jsocol/pystatsd
Source0:    https://pypi.python.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz

BuildArch:  noarch
BuildRequires:  python3-devel
BuildRequires:  python3-mock
BuildRequires:  python3-nose

%description
A python client for the statsd daemon.

%package -n python3-%{srcname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{srcname}}

%description -n python3-%{srcname}
A python client for the statsd daemon.

%package doc
Summary: Documentation of the Python client for the statsd daemon
BuildRequires:  python3-sphinx

%description doc
Documentation of the Python client for the statsd daemon.

%prep
%autosetup -n %{srcname}-%{version} -p1
# Remove bundled egg-info
rm -rf %{srcname}.egg-info
# Let RPM handle the dependencies
rm -f requirements.txt

%build
%py3_build

## generate html docs
sphinx-build docs html
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%files -n python3-%{srcname}
%license LICENSE
%doc AUTHORS README.rst
%{python3_sitelib}/*

%files doc
%license LICENSE
%doc html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16625 |21mr|python-stestr-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name stestr
%bcond_without python2

# Enable bootstrap
%bcond_without bootstrap
%global with_doc 0

%global common_desc \
stestr is a fork of the testrepository that concentrates on being a \
dedicated test runner for python projects. The generic abstraction layers \
which enabled testr to work with any subunit emitting runner are gone. \
stestr hard codes python-subunit-isms into how it works.

Name:   python-%{pypi_name}
Version:	3.2.0
Release:	1
Summary:    A test runner runner similar to testrepository
Group:		Development/Python

License:    ASL 2.0
URL:    https://pypi.python.org/pypi/stestr
Source0:	https://files.pythonhosted.org/packages/df/30/2d46e214463962af1d35335cd8e1090c646baad125949451b951fb653dfd/stestr-3.2.0.tar.gz
BuildArch:  noarch

BuildRequires:    git

%description
%{common_desc}

%package -n     python3-%{pypi_name}
Summary:        A test runner runner similar to testrepository
%{?python_provide:%python_provide python3-%{pypi_name}}

BuildRequires:    python3-devel
BuildRequires:    python3-setuptools
BuildRequires:    python3-pbr

# Test Requirements
BuildRequires:   python3-mock
BuildRequires:   python3-future
BuildRequires:   python3-subunit
BuildRequires:   python3-fixtures
BuildRequires:   python3-six
BuildRequires:   python3-sqlalchemy
BuildRequires:   python3-testtools
BuildRequires:   python3-PyYAML
BuildRequires:   python3-ddt
BuildRequires:   python3-cliff
BuildRequires:   python3-voluptuous

Requires:   python3-pbr
Requires:   python3-future
Requires:   python3-subunit
Requires:   python3-fixtures
Requires:   python3-six
Requires:   python3-testtools
Requires:   python3-PyYAML
Requires:   python3-cliff
Requires:   python3-voluptuous

%description -n python3-%{pypi_name}
%{common_desc}

%if %{without bootstrap}
%package -n     python3-%{pypi_name}-sql
Summary:    sql plugin for stestr

Requires:       python3-%{pypi_name} = %{version}-%{release}
Requires:       python3-subunit2sql

BuildRequires:   python3-subunit2sql
BuildRequires:   /usr/bin/subunit2sql-db-manage

%description    -n python3-%{pypi_name}-sql
It contains the sql plugin for stestr.
%endif

%if 0%{?with_doc}
%package -n python-%{pypi_name}-doc
Summary:        stestr documentation

BuildRequires:  python3-sphinx
BuildRequires:  python3-subunit2sql

%description -n python-%{pypi_name}-doc
%{common_desc}

It contains the documentation for stestr.
%endif

%prep
%autosetup -n %{pypi_name}-%{version} -S git
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
rm -f test-requirements.txt requirements.txt

# Remove pbr>=2.0.0 version as it is required for pike
sed -i 's/pbr>=2.0.0/pbr/g' setup.py

%build
%py3_build

%if 0%{?with_doc}
# generate html docs
%{__python3} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install
# compat symlinks
ln -s stestr %{buildroot}/%{_bindir}/stestr-3
ln -s stestr-3 %{buildroot}/%{_bindir}/stestr-%{python3_version}

%check
export PATH=%{buildroot}/%{_bindir}:$PATH
rm -fr .stestr
# currently, 4 test are failing
PYTHON=%{__python3} %{__python3} setup.py test || :

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/stestr*
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-*.egg-info

%if %{without bootstrap}
%files -n python3-%{pypi_name}-sql
%{python3_sitelib}/%{pypi_name}/repository/sql.py*
%endif

%if 0%{?with_doc}
%files -n python-%{pypi_name}-doc
%license LICENSE
%doc doc/build/html
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16626 |21mr|python-stevedore-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global common_desc Manage dynamic plugins for Python applications

Name:		python-stevedore
Version:	3.4.0
Release:	1
Summary:	Manage dynamic plugins for Python applications
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/openstack/stevedore
Source0:	https://files.pythonhosted.org/packages/f9/57/328653fd8a631d81b2d71261e471a102d5b64a95c1b1dda1a55b053bf0db/stevedore-3.4.0.tar.gz
Patch0:		stevedore-entry_point.patch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pbr
BuildRequires:	python3-mock
BuildRequires:	python3-six
BuildRequires:	python3-testrepository
BuildArch:	noarch

%description
%{common_desc}

#----------------------------------------------------------
%package -n python3-stevedore
Summary:	Manage dynamic plugins for Python applications
Group:		Development/Python
Requires:	python3-six
Requires:	python3-pbr

%description -n python3-stevedore
%{common_desc}

%files -n python3-stevedore
%license LICENSE
%doc README.rst
%{python3_sitelib}/stevedore
%{python3_sitelib}/stevedore-*.egg-info

#----------------------------------------------------------

%prep
%autosetup -p1 -n stevedore-%{version}

# let RPM handle deps
rm -f requirements.txt

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16627 |21mr|python-storm-0.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	storm

Summary:	Object Relational Mapper for Python
Name:		python-%{oname}
Version:	0.25
Release:	1
URL:		http://storm.canonical.com/
Source0:	https://files.pythonhosted.org/packages/c0/f6/4b30697087af83edbc25584938fff7de08645ea6c2addf22420b4a1c70c9/storm-0.25.tar.gz
License:	GPLv2
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)
Requires:	python2
Requires:	pythonegg(psycopg2)
Requires:	pythonegg(sqlite2)

%description
Storm is an object-relation mapper (ORM) for the Python language. It allows
rows from a relational database to be seen as objects in an object-oriented
language like Python.

- Storm lets you efficiently access and update large datasets by allowing you
  to formulate complex queries spanning multiple tables using Python.

- Storm allows you to fallback to SQL if needed (or if you just prefer),
  allowing you to mix "old school" code and ORM code
#=============================================================================
%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Object Relational Mapper for Python
Group:		Development/Python

%description -n python2-%{oname}
Storm is an object-relation mapper (ORM) for the Python language. It allows
rows from a relational database to be seen as objects in an object-oriented
language like Python.

- Storm lets you efficiently access and update large datasets by allowing you
  to formulate complex queries spanning multiple tables using Python.

- Storm allows you to fallback to SQL if needed (or if you just prefer),
  allowing you to mix "old school" code and ORM code

%files -n python2-%{oname}
%doc python2/LICENSE python2/README python2/storm/tests/
%{python2_sitearch}/*

#=============================================================================
%package -n python3-%{oname}
Summary:	Object Relational Mapper for Python
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	python3
Requires:	python3egg(psycopg2)
Requires:	python3egg(sqlite3)

%description -n python3-%{oname}
Storm is an object-relation mapper (ORM) for the Python language. It allows
rows from a relational database to be seen as objects in an object-oriented
language like Python.

- Storm lets you efficiently access and update large datasets by allowing you
  to formulate complex queries spanning multiple tables using Python.

- Storm allows you to fallback to SQL if needed (or if you just prefer),
  allowing you to mix "old school" code and ORM code

%files -n python3-%{oname}
%doc python3/LICENSE python3/README python3/storm/tests/
%{python3_sitearch}/*

#=============================================================================
%prep
%setup -qc -n %{oname}-%{version}
mv %{oname}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
%py2_install
popd

pushd python3
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16628 |21mr|python-string_utils-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module string_utils

Summary:	A python module containing utility functions for strings
Name:		python-%{module}
Version:	1.0.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/daveoncode/python-string-utils
Source0:	https://github.com/daveoncode/python-string-utils/archive/v%{version}.tar.gz
BuildRequires:	git
BuildArch:	noarch

%description
A python module containing utility functions for strings.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A python module containing utility functions for strings
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-coverage
BuildRequires:	python3-pip
BuildRequires:	python3-setuptools
BuildRequires:	python3-wheel

%description -n python3-%{module}
A python module containing utility functions for strings.

%files -n python3-%{module}
%license LICENSE
%doc README.md
%{python3_sitelib}/%{module}/
%{python3_sitelib}/python_%{module}-*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n python-string-utils-%{version} -S git

# Let's handle dependencies ourseleves

%build
%py3_build

%install
%py3_install

rm -f %{buildroot}%{_prefix}/README/README.md

%check
coverage run -m unittest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16629 |21mr|python-structlog-24.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name structlog

Name:           python-%{pypi_name}
Version:        24.4.0
Release:        2
Summary:        Painless structural logging
Group:          Development/Python
License:        ASL 2.0 and MIT
URL:            https://www.structlog.org/en/stable/
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  pyproject-rpm-macros
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3-setuptools
BuildRequires:  python3-freezegun
BuildRequires:  python3-pretend
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-asyncio
BuildRequires:  python3-twisted
BuildRequires:  python3dist(flit-core)
BuildRequires:  python3dist(hatchling)
BuildRequires:  python3dist(hatch-fancy-pypi-readme) >= 23.1
BuildRequires:  python3dist(hatch-vcs)

%description
Structlog makes structured logging in Python easy by augmenting your existing
logger. It allows you to split your log entries up into key/value pairs and
build them incrementally without annoying boilerplate code.

%package -n python3-%{pypi_name}
Summary:        Painless structural logging
Group:          Development/Python

%description -n python3-%{pypi_name}
Structlog makes structured logging in Python easy by augmenting your existing
logger. It allows you to split your log entries up into key/value pairs and
build them incrementally without annoying boilerplate code.

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files structlog

#tests disabled because they fail with fixture '<*>' not found. https://github.com/hynek/structlog/issues/433

%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc CHANGELOG.md README.md PKG-INFO docs/*.md
%license LICENSE-MIT LICENSE-APACHE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16630 |21mr|python-suds-0.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname suds

Name:		python-suds
Version:	0.8.5
Release:	1
Summary:	A python SOAP client
Group:		Development/Python
License: LGPLv3+
URL:		https://github.com/suds-community/suds
Source0:	https://github.com/suds-community/suds/archive/v%{version}.tar.gz#/%{srcname}-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(six)

%description
The suds project is a python soap web services client lib.  Suds leverages
python meta programming to provide an intuitive API for consuming web
services.  Objectification of types defined in the WSDL is provided
without class generation.  Programmers rarely need to read the WSDL since
services and WSDL based objects can be easily inspected.


#-------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:	A python SOAP client
Group:		Development/Python

%description -n python3-%{srcname}
The suds project is a python soap web services client lib.  Suds leverages
python meta programming to provide an intuitive API for consuming web
services.  Objectification of types defined in the WSDL is provided
without class generation.  Programmers rarely need to read the WSDL since
services and WSDL based objects can be easily inspected.

%files -n python3-%{srcname}
%{python3_sitelib}/%{srcname}*/
%doc README.md
%license LICENSE.txt

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16631 |21mr|python-sympy-1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	sympy

Name:		python-%{pypi_name}
Version:	1.8
Release:	1
Summary:	Python library for symbolic mathematics
Group:		Development/Python
License:	BSD
Url:		http://sympy.googlecode.com/
Source0:	https://github.com/sympy/sympy/releases/download/sympy-%{version}/sympy-%{version}.tar.gz

BuildRequires:	python3-devel
BuildRequires:	librsvg
BuildRequires:	imagemagick
BuildRequires:	python3-mpmath
BuildRequires:	gettext
BuildRequires:	graphviz

BuildArch:	noarch

%description
SymPy is a Python library for symbolic mathematics. It aims to become
a full-featured computer algebra system (CAS) while keeping the code
as simple as possible in order to be comprehensible and easily
extensible. SymPy is written entirely in Python and does not require
any external libraries, except optionally for plotting support.

#--------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python library for symbolic mathematics
Group:		Development/Python
Requires:	python3-numpy
Requires:	python3-mpmath
Requires:	python3

Recommends:	python3-gmpy >= 1.03
Recommends:	python3-pyglet

%description -n python3-%{pypi_name}
SymPy is a Python library for symbolic mathematics. It aims to become
a full-featured computer algebra system (CAS) while keeping the code
as simple as possible in order to be comprehensible and easily
extensible. SymPy is written entirely in Python and does not require
any external libraries, except optionally for plotting support.

%files -n python3-%{pypi_name}
%doc AUTHORS LICENSE examples/
%{_bindir}/isympy
%{_mandir}/man1/isympy.*
%dir %{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}/*
%{py3_puresitedir}/%{pypi_name}-*.egg-info
%{py3_puresitedir}/__pycache__
%{py3_puresitedir}/isympy.py

#--------------------------------------------------------------------
%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build

%install
python3 setup.py install --root=%{buildroot}

# happy linting
rm -r %{buildroot}%{py3_puresitedir}/sympy/strategies/tests/test_strat.py
#


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16632 |21mr|python-systemd-234-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module systemd

Summary:	Python bindings for %{module}
Name:		python-%{module}
Version:	234
Release:	2
License:	GPLv2+
Group:		Development/Python
Url:		https://github.com/systemd/python-systemd
Source0:	https://github.com/systemd/python-systemd/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)

%description
Python bindings for %{module}.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Python bindings for %{module}

%description -n python2-%{module}
Python bindings for %{module}.

%files -n python2-%{module}
%{py2_platsitedir}/*.egg-info
%{py2_platsitedir}/%{module}

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Python 3 bindings for %{module}
Group:		Development/Python

%description -n python3-%{module}
Python 3 bindings for %{module}.

%files -n python3-%{module}
%{py3_platsitedir}/*.egg-info
%{py3_platsitedir}/%{module}

#----------------------------------------------------------------------------

%prep
%setup -q
cp -a . %{py3dir}

%build
%make systemd/id128-constants.h
%py2_build

pushd %{py3dir}
%make systemd/id128-constants.h
%py3_build
popd

%install
%py2_install
pushd %{py3dir}
%make systemd/id128-constants.h
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16633 |21mr|python-sysv_ipc-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname sysv_ipc

Summary:	System V IPC for Python - Semaphores, Shared Memory and Message Queues
Name:		python-%{srcname}
Version:	1.1.0
Release:	1
License:	GPLv3+
Group:		Development/Python
Url:		http://semanchuk.com/philip/%{srcname}/
Source0:	https://pypi.python.org/packages/source/s/%{srcname}/%{srcname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)

%description
The sysv_ipc module which gives Python access to System V inter-process
semaphores, shared memory and message queues on systems that support them.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	System V IPC for Python - Semaphores, Shared Memory and Message Queues
Group:		Development/Python

%description -n python3-%{srcname}
The sysv_ipc module which gives Python access to System V inter-process
semaphores, shared memory and message queues on systems that support them.

%files -n python3-%{srcname}
%license LICENSE
%doc LICENSE README ReadMe.html VERSION
%{python3_sitearch}/*

#----------------------------------------------------------------------------

%package examples
Summary:	Examples for Python sysv_ipc module
Group:		Development/Python

%description examples
This module comes with four demonstration apps.

%files examples
%doc demos

#----------------------------------------------------------------------------

%prep
%setup -q -n sysv_ipc-%{version}

%build
%py3_build

%install
%py3_install

chmod -x demos/*/*.{py,sh}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16634 |21mr|python-tabulate-0.8.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname tabulate

Name:           python-%{srcname}
Version:	0.8.9
Release:	1
Summary:        Pretty-print tabular data in Python, a library and a command-line utility
Group:		Development/Python
License:        MIT
URL:            https://pypi.python.org/pypi/tabulate
Source:         %{pypi_source}

BuildArch:      noarch

%global _description %{expand:
The main use cases of the library are:

* printing small tables without hassle: just one function call, formatting is
  guided by the data itself
* authoring tabular data for lightweight plain-text markup: multiple output
  formats suitable for further editing or transformation
* readable presentation of mixed textual and numeric data: smart column
  alignment, configurable number formatting, alignment by a decimal point}

%description %{_description}

%package -n python3-%{srcname}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{srcname}}
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
# Test deps
#BuildRequires:  python3dist(nose)
#BuildRequires:  python3dist(numpy)
#BuildRequires:  python3dist(pandas)
#BuildRequires:  python3dist(wcwidth)

%description -n python3-%{srcname} %{_description}

Python 3 version.

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%check
#% {__python3} setup.py test

%files -n python3-%{srcname}
%license LICENSE
%doc README README.md
%{_bindir}/%{srcname}
%{python3_sitelib}/%{srcname}*.egg-info/
%{python3_sitelib}/%{srcname}.py*
%{python3_sitelib}/__pycache__/%{srcname}.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16635 |21mr|python-tasks-2.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0
%define debug_package %{nil}
%define module	tasks

Summary:	Proof of concept for a simple task queue
Name:		python-%{module}
Version:	2.8.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://pypi.org/project/tasks/
Source0:	https://github.com/pb-/tasks/archive/v%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
Proof of concept for a simple task queue, with a focus on UX
and clean internal design.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Proof of concept for a simple task queue
Group:		Development/Python

%description -n python3-%{module}
Proof of concept for a simple task queue, with a focus on UX
and clean internal design.

%files -n python3-%{module}
%doc README.md
%{_bindir}/tasks
%{_bindir}/tasks-i3status
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-*

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build

%install
PYTHONDONTWRITEBYTECODE=1 python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16636 |21mr|python-tempita-0.5.3dev-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	Tempita

Summary:	A very small text templating language

Name:		python-tempita
Version:	0.5.3dev
Release:	9
Source0:	http://pypi.python.org/packages/source/T/Tempita/Tempita-%{version}.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://pythonpaste.org/tempita/
BuildArch:	noarch

%description
Tempita is a small templating language for text substitution.

This isn't meant to be the Next Big Thing in templating; it's just a
handy little templating language for when your project outgrows
string.Template or % substitution. It's small, it embeds Python in
strings, and it doesn't do much else.

#-----------------------------------------------------------------------
%package -n python2-tempita
%py2_migration_meta python2-tempita
Summary:	A very small text templating language
Group:		Development/Python
BuildRequires:	python2-setuptools

%description -n python2-tempita
Tempita is a small templating language for text substitution.

This isn't meant to be the Next Big Thing in templating; it's just a
handy little templating language for when your project outgrows
string.Template or % substitution. It's small, it embeds Python in
strings, and it doesn't do much else.

%files -n python2-tempita
%{py2_puresitedir}/*

#-----------------------------------------------------------------------

%package -n python3-tempita
Summary:	A very small text templating language
Group:		Development/Python
BuildRequires:	python3-setuptools

%description -n python3-tempita
Tempita is a small templating language for text substitution.

This isn't meant to be the Next Big Thing in templating; it's just a
handy little templating language for when your project outgrows
string.Template or % substitution. It's small, it embeds Python in
strings, and it doesn't do much else.

This is a python2-3 package.

%files -n python3-tempita
%{py3_puresitedir}/*

#-----------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
rm -rf %{py3dir}
cp -a . %{py3dir}

%install
pushd %{py3dir}
PYTHONDONTWRITEBYTECODE= %__python3 setup.py install --root=%{buildroot}
popd
PYTHONDONTWRITEBYTECODE= %__python2 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16637 |21mr|python-templated-dictionary-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name templated-dictionary

Summary:	Dictionary with Jinja2 expansion
Name:		python-%{pypi_name}
Version:	1.1
Release:	1
License:	GPLv2+
Group:		Development/Python
Url:		https://github.com/xsuchy/templated-dictionary
Source0:	https://github.com/xsuchy/templated-dictionary/archive/refs/tags/%{name}-%{version}-1.tar.gz?/%{pypi_name}-%{name}-%{version}-1.tar.gz
BuildArch:	noarch
BuildRequires:	python3-devel
BuildRequires:	python3dist(jinja2)
BuildRequires:	python3dist(setuptools)

%description
Dictionary where __getitem__() is run through Jinja2 template.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Dictionary with Jinja2 expansion
Group:		Development/Python

%description -n python3-%{pypi_name}
Dictionary where __getitem__() is run through Jinja2 template.

%files -n python3-%{pypi_name}
%doc README.md
%license LICENSE
%{python3_sitelib}/templated_dictionary-*.egg-info/
%{python3_sitelib}/templated_dictionary/

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{name}-%{version}-1

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16638 |21mr|python-tempora-4.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	tempora

Name:		python-%{oname}
Version:	4.1.1
Release:	1
Summary:	Objects and routines pertaining to date and time (tempora)
Group:		Development/Python
License:	MIT License
Url:		https://github.com/jaraco/tempora
Source0:	https://files.pythonhosted.org/packages/9e/38/69361106501ab8ca3bede11cff867ce86545461de55e65c14034c57be596/tempora-4.1.1.tar.gz
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(toml)
BuildArch:	noarch

%description
Objects and routines pertaining to date and time (tempora).

Modules include:

 - tempora (top level package module) contains miscellaneous
   utilities and constants.
 - timing contains routines for measuring and profiling.
 - schedule contains an event scheduler.

#--------------------------------------------------------------
%package -n python3-%{oname}
Summary:	Objects and routines pertaining to date and time (tempora)
Group:		Development/Python

%description -n python3-%{oname}
Objects and routines pertaining to date and time (tempora).

Modules include:

 - tempora (top level package module) contains miscellaneous
   utilities and constants.
 - timing contains routines for measuring and profiling.
 - schedule contains an event scheduler.

%files -n python3-%{oname}
%doc README.rst
%{_bindir}/calc-prorate
%{python3_sitelib}/tempora/*.py*
%{python3_sitelib}/tempora*.egg-info
%{python3_sitelib}/tempora/tests/*
%{python3_sitelib}/tempora/__pycache__

#--------------------------------------------------------------
%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16639 |21mr|python-tenacity-8.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?python_enable_dependency_generator}
%global pypi_name tenacity
%global common_desc  Tenacity is a general purpose retrying library

Name:           python-%{pypi_name}
Version:	8.0.1
Release:	1
Group:		Development/Python
Summary:        %{common_desc}
License:        ASL 2.0
URL:            https://github.com/jd/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/2c/f5/04748914f5c78f7418b803226bd56cdddd70ac369b936b3e24f5158017f1/tenacity-8.0.1.tar.gz
BuildArch:      noarch

%package -n python3-%{pypi_name}

Summary:          %{common_desc}
%{?python_provide:%python_provide python3-%{pypi_name}}

BuildRequires:    python3-setuptools
BuildRequires:    python3-setuptools_scm
BuildRequires:    python3-devel
BuildRequires:    python3-pbr
BuildRequires:    python3-six >= 1.9.0
BuildRequires:    python3-tornado >= 4.5
BuildRequires:    python3-pytest
Requires:         python3-six >= 1.9.0

%description -n python3-%{pypi_name}
Tenacity is a general-purpose retrying library, written in Python, to simplify
the task of adding retry behavior to just about anything. It originates from a
fork of Retrying.

%description
Tenacity is a general-purpose retrying library, written in Python, to simplify
the task of adding retry behavior to just about anything. It originates from a
fork of Retrying.

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%doc README.rst
%license LICENSE
%{python3_sitelib}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16640 |21mr|python-testrepository-0.0.20-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module testrepository

Name:           python-%{module}
Version:        0.0.20
Release:        4
Summary:        A repository of test results
Group:          Development/Python
License:        ASL 2.0
URL:            https://launchpad.net/testrepository
Source0:        http://pypi.python.org/packages/source/t/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
Provides a database of test results which can be used to
support easy developer workflows, supporting functionality
like isolating failing tests. Testrepository is compatible
with any test suite that can output subunit. This includes any
TAP test suite and any pyunit compatible test suite.

#-------------------------------------------------------------------

%package -n python3-%{module}
Summary:        A repository of test results (for Python 3)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(fixtures)
BuildRequires:  python3egg(python-subunit)
BuildRequires:  python3egg(testtools)
BuildRequires:  python3egg(extras)
BuildRequires:  python3egg(testresources)
BuildRequires:  python3egg(testscenarios)
BuildRequires:  python3egg(pytz)

Requires:       python3egg(fixtures)
Requires:       python3egg(python-subunit)
Requires:       python3egg(testtools)
Requires:       python3egg(extras)

%description -n python3-%{module}
Provides a database of test results which can be used to
support easy developer workflows, supporting functionality
like isolating failing tests. Testrepository is compatible
with any test suite that can output subunit. This includes any
TAP test suite and any pyunit compatible test suite.

This package is for Python 3.

%files -n python3-%{module}
%doc README.txt Apache-2.0
%{_bindir}/*testr
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info

#-------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# Remove bundled egg-info
rm -rf %{module}.egg-info


%build
%py3_build

%install
%py3_install
cp %{buildroot}%{_bindir}/testr %{buildroot}%{_bindir}/python3-testr

%check
python3 setup.py test ||:

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16641 |21mr|python-testresources-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module testresources

Name:           python-%{module}
Version:        2.0.1
Release:        1
Summary:        Testresources, a pyunit extension for managing expensive test resources
Group:          Development/Python
License:        ASL 2.0
URL:            https://launchpad.net/testresources
Source0:        https://pypi.python.org/packages/source/t/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch

%description
testresources: extensions to python unittest to allow declarative use
of resources by test cases.

#---------------------------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Testresources, a pyunit extension for managing expensive test resources
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(testtools)
BuildRequires:  python3egg(fixtures)

%description -n python3-%{module}
testresources: extensions to python unittest to allow declarative use
of resources by test cases.

%files -n python3-%{module}
%doc NEWS doc
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py?.?.egg-info
#---------------------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
# Remove bundled egg-info
rm -rf lib/%{module}.egg-info

%build
%py3_build

%install
%py3_install

%check
python3 setup.py test || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16642 |21mr|python-testscenarios-0.5.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	testscenarios

Name:		python-%{module}
Version:	0.5.0
Release:	5
Summary:	Testscenarios, a pyunit extension for dependency injection
Source0:	http://pypi.python.org/packages/source/t/%{module}/%{module}-%{version}.tar.gz
License:	Apache Software License
Group:		Development/Python
Url:		https://launchpad.net/testscenarios
BuildArch:	noarch

%description
testscenarios provides clean dependency injection for python unittest style
tests. This can be used for interface testing (testing many implementations via
a single test suite) or for classic dependency injection (provide tests with
dependencies externally to the test code itself, allowing easy testing in
different situations).

#---------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Testscenarios, a pyunit extension for dependency injection
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-pbr

%description -n python3-%{module}
testscenarios provides clean dependency injection for python unittest style
tests. This can be used for interface testing (testing many implementations via
a single test suite) or for classic dependency injection (provide tests with
dependencies externally to the test code itself, allowing easy testing in
different situations).

%files -n python3-%{module}
%doc COPYING HACKING NEWS README
%{py3_puresitedir}/testscenarios
%{py3_puresitedir}/testscenarios*.egg-info
#---------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}
# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
python3 setup.py build

%install
python3 setup.py install --skip-build --root %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16643 |21mr|python-testtools-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname testtools
%global eggname %{srcname}
%global libname %{srcname}

Name:		python-%{srcname}
Version:	2.4.0
Release:	1
Summary:	Extensions to the Python standard library unit testing framework

Group:		Development/Python
License:	MIT
URL:		https://github.com/testing-cabal/testtools
Source0:	https://pypi.python.org/packages/source/t/%{srcname}/%{srcname}-%{version}.tar.gz
Patch0:		testtools-2.4.0-remove_backports.patch
BuildArch:	noarch

%description
testtools is a set of extensions to the Python standard library’s unit
testing framework. These extensions have been derived from many years
of experience with unit testing in Python and come from many different
sources.

#----------------------------------------------------------------------
%package -n     python3-%{srcname}
Summary:        Extensions to the Python standard library unit testing framework
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pbr)

%description -n python3-%{srcname}
testtools is a set of extensions to the Python standard library’s unit
testing framework. These extensions have been derived from many years
of experience with unit testing in Python and come from many different
sources.

%files -n python3-%{srcname}
%doc NEWS README.rst
%license LICENSE
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-*-py%{python3_version}.egg-info/

#----------------------------------------------------------------------
%prep
%autosetup -p 1 -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info
rm testtools/_compat2x.py

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16644 |21mr|python-textfsm-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name textfsm

Summary:	Python module for parsing semi-structured text into python tables
Name:		python-%{pypi_name}
Version:	1.1.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/google/textfsm
Source0:	https://github.com/google/textfsm/archive/v%{version}.tar.gz
BuildArch:	noarch

%description
Python module which implements a template based state machine for parsing
semi-formatted text. Originally developed to allow programmatic access to
information returned from the command line interface (CLI) of networking
devices.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python module for parsing semi-structured text into python tables
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-future
BuildRequires:	python3-setuptools
BuildRequires:	python3-six
BuildRequires:	python3-pytest
BuildRequires:	python3-pytest-runner
Requires:	python3-future
Requires:	python3-six

%description -n python3-%{pypi_name}
Python module which implements a template based state machine for parsing
semi-formatted text. Originally developed to allow programmatic access to
information returned from the command line interface (CLI) of networking
devices.

%files -n python3-%{pypi_name}
%license COPYING
%exclude %{python3_sitelib}/testdata
%{_bindir}/textfsm
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
%__python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16645 |21mr|python-texttable-1.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upstream_name texttable

Name:           python-%{upstream_name}
Version:        1.2.1
Release:        3
Summary:        Python module to generate a formatted text table, using ASCII characters

Group:          Development/Python
License:        LGPLv3
URL:            https://github.com/foutaise/texttable
Source0:        https://pypi.io/packages/source/t/texttable/%{upstream_name}-%{version}.tar.gz
BuildArch:      noarch

%description
Python module to generate a formatted text table, using ASCII characters.

#------------------------------------------------

%package -n     python3-%{upstream_name}
Summary:        Python 3 module to generate a formatted text table, using ASCII characters
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  python3-pkgconfig
BuildRequires:  python3-setuptools

%description -n python3-%{upstream_name}
Python 3 module to generate a formatted text table, using ASCII characters.

#------------------------------------------------

%prep
%setup -q -n %{upstream_name}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{upstream_name}
%doc PKG-INFO README.md
%{py3_puresitedir}/texttable*
%{py3_puresitedir}/__pycache__*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16646 |21mr|python-text-unidecode-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name text-unidecode

Name:           python-%{pypi_name}
Version:        1.3
Release:        2
Summary:        A Python pypi_name for handling non-Roman text data
Group:          Development/Python
License:        GPLv2+
URL:            https://github.com/kmike/text-unidecode/
Source0:        https://github.com/kmike/text-unidecode/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
text-unidecode is the most basic port of the Text::Unidecode Perl library.

#-----------------------------------------------------
%package -n python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{pypi_name}
text-unidecode is the most basic port of the Text::Unidecode Perl library.

%files -n python3-%{pypi_name}
%doc README.rst LICENSE
%{py3_puresitedir}/text_unidecode/
%{py3_puresitedir}/text_unidecode-%{version}-py*.egg-info
#-----------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16647 |21mr|python-tidy-0.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global         oname uTidylib

Summary:        Python wrapper for tidy, from the HTML tidy project
Name:           python-tidy
Version:        0.6
Release:        5
Group:		Development/Python
License:        MIT
URL:            https://cihar.com/software/utidylib/
Source0:        http://dl.cihar.com/utidylib/uTidylib-%{version}.tar.bz2
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-six
BuildArch:      noarch
%global         _description\
Python wrapper (bindings) for tidylib, this allows you to tidy HTML\
files through a Pythonic interface.

%description    %_description

%package     -n python3-tidy
Summary:        %summary
%{?python_provide:%python_provide python3-tidy}
Requires:       python3-six
%description -n python3-tidy %_description

%prep
%setup -q -n %{oname}-%{version}

%build
%{py3_build}

%install
%{py3_install}

%check
# todo: fails
%{__python3} setup.py test || :

%files -n python3-tidy
%license LICENSE
%doc README.rst
%{python3_sitelib}/tidy
%{python3_sitelib}/uTidylib-*-py3*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16648 |21mr|python-tinycss2-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define partnme tinycss2

Name:           python-tinycss2
Summary:        CSS parser for Python
Version:        1.1.0
Release:        1
Group:          System/Libraries
License:        BSD
URL:            http://pythonhosted.org/tinycss2/
Source0:	https://files.pythonhosted.org/packages/ce/d3/ece7a98d5826bd134e269a3a3030153d30482194fca71d95a3041812aab8/tinycss2-1.1.0.tar.gz
BuildArch:	noarch
BuildRequires:  dos2unix
BuildRequires:  python3-devel python3-setuptools python3-cython

# Do not check .so files in the python_sitelib directory
# or any files in the application's directory for provides
#%%global __provides_exclude_from ^(%%{python_sitearch}|%%{python3_sitearch})/.*\\.so$

%description
tinycss2 is a rewrite of the tinycss CSS parser for Python. It supports
It has a simpler API and is based on the more recent
CSS Syntax Level 3 specification.

%package -n python3-tinycss2
Summary:        CSS parser for Python
Group:          System/Libraries

%description -n python3-tinycss2
tinycss2 is a rewrite of the tinycss CSS parser for Python. It supports
It has a simpler API and is based on the more recent
CSS Syntax Level 3 specification.

%prep
%setup -qn %{partnme}-%{version}
find . -name '*.py' | xargs sed -i '1s|^#!/usr/bin/python|#!%{__python3}|'
rm -rf tinycss2.egg-info/

%build
%py3_build

%install
%py3_install

%files -n python3-tinycss2
%{py3_puresitedir}/*/*
%{py3_puresitedir}/*egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16649 |21mr|python-tinyrpc-1.0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global library tinyrpc
%global module tinyrpc

Name:       python-%{library}
Version:    1.0.3
Release:    4
Group:      Development/Python
Summary:    A modular RPC library
License:    MIT
URL:        https://github.com/mbr/%{library}

# tarball in pypy does not include tests
Source0:    https://github.com/mbr/%{library}/archive/%{version}.tar.gz

BuildArch:  noarch

%description
tinyrpc is a library for making and handling RPC calls in python.

%package -n python-%{library}-doc
Summary:   Documentation for tinyrpc library

%description -n python-%{library}-doc
Documentation for tinyrpc library

%package -n python3-%{library}
Summary:    A modular RPC library
%{?python_provide:%python_provide python3-%{library}}

BuildRequires:  git
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-funcsigs
BuildRequires:  python3-gevent
BuildRequires:  python3-greenlet
BuildRequires:  python3-mock
BuildRequires:  python3-py
BuildRequires:  python3-pytest
BuildRequires:  python3-requests
BuildRequires:  python3-six
BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme
BuildRequires:  python3-werkzeug
BuildRequires:  python3-zmq

Requires:  python3-gevent
Requires:  python3-greenlet
Requires:  python3-requests
Requires:  python3-six
Requires:  python3-werkzeug
Requires:  python3-zmq


%description -n python3-%{library}
tinyrpc is a library for making and handling RPC calls in python.

%package -n python3-%{library}-tests
Summary:    Tests for python2-tinyrpc library

Requires:  python3-funcsigs
Requires:  python3-gevent
Requires:  python3-greenlet
Requires:  python3-mock
Requires:  python3-py
Requires:  python3-pytest
Requires:  python3-requests
Requires:  python3-six
Requires:  python3-werkzeug
Requires:  python3-zmq
Requires:  python3-%{library} = %{version}-%{release}

%description -n python3-%{library}-tests
Tests for  python2-tinyrpc library

%prep
%autosetup -n %{library}-%{version} -S git
# requirements.txt is wrong, let's manage deps manually
rm -f requirements.txt

%build
%py3_build

# generate html docs
%{__python3} setup.py build_sphinx
# remove the sphinx-build leftovers
rm -rf build/sphinx/html/.{doctrees,buildinfo}

%install
%py3_install
# Copy tests
mkdir -p %{buildroot}%%{python3_sitelib}/%{library}/tests
cp -r tests %{buildroot}%{python3_sitelib}/%{library}/tests

%files -n python-%{library}-doc
%license LICENSE
%doc build/sphinx/html README.rst

%files -n python3-%{library}
%license LICENSE
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-*.egg-info
%exclude %{python3_sitelib}/%{module}/tests

%files -n python3-%{library}-tests
%license LICENSE
%{python3_sitelib}/%{module}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16650 |21mr|python-tldextract-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name tldextract

Name:           python-%{pypi_name}
Version:        3.4.0
Release:        1
Summary:        Accurately separate the TLD from the registered domain and subdomains of a URL
Group:          Development/Python
License:        BSD
URL:            https://pypi.python.org/pypi/tldextract
Source0:        %{pypi_source}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
# required for testing, not declared via setup.{py,cfg}
BuildRequires:  python3-pytest
BuildRequires:  python3-pytest-mock
BuildRequires:  python3-responses


%description
Accurately separate the TLD from the registered domain and
subdomains of a URL, using the Public Suffix List. By default,
this includes the public ICANN TLDs and their exceptions. You can
optionally support the Public Suffix List's private domains as
well.

#-----------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
Accurately separate the TLD from the registered domain and
subdomains of a URL, using the Public Suffix List. By default,
this includes the public ICANN TLDs and their exceptions. You can
optionally support the Public Suffix List's private domains as
well.

This is the Python 3 version of the package.

%files -n python3-%{pypi_name} -f %{pyproject_files}
# "LICENSE" files is included in "pyproject_files"
%doc README.md
%{_bindir}/tldextract

#-----------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
%generate_buildrequires
%pyproject_buildrequires

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

%check
# test_log_snapshot_diff is an integration test and requires network access
# (additionally that test requires python3-pytest-mock which is not available
# in EPEL 7)
TEST_SELECTOR="not test_log_snapshot_diff"

%pytest -k "$TEST_SELECTOR"




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16651 |21mr|python-tokenize-rt-4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 02824001eaf9dda828d9582150953ce3e5fd4b9b
%define commit_short %(echo %commit | head -c 5)
%define debug_package %nil

Summary: tokenize-rt Python module
Name: python-tokenize-rt
Version:	4.1.0
Release:	1
License: MIT
Group: Development/Python
Url: https://github.com/asottile/tokenize-rt
Source0: https://github.com/asottile/tokenize-rt/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0: 340a16ac32d6224324be16e9b6e58d173874d1c8.patch

BuildRequires: python3egg(setuptools)

%define _description \
The stdlib tokenize module does not properly roundtrip. \
This wrapper around the stdlib provides two additional \
tokens ESCAPED_NL and UNIMPORTANT_WS, and a Token data type. \
Use src_to_tokens and tokens_to_src to roundtrip. \
This library is useful if you're writing a refactoring \
tool based on the python tokenization.

%description
%_description

#----------------------------------------

%package -n python3-tokenize-rt
Summary: %{summary}
Group: Development/Python

%description -n python3-tokenize-rt
%_description

%files -n python3-tokenize-rt
%{python3_sitelib}/*
%{_bindir}/tokenize-rt

#----------------------------------------

%prep
%setup -q -n tokenize-rt-%{commit}

# Restore support of python 3.5
# and remove support of python 3.8
%if %{mdvver} < 201910
%patch0 -p1 -R
%endif

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16652 |21mr|python-toml-0.10.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name toml

Name:		python-%{pypi_name}
Version:	0.10.2
Release:	2
Summary:	Python Library for Tom's Obvious, Minimal Language
Group:		Development/Python
License:	MIT
URL:		https://github.com/uiri/toml
Source0:	https://files.pythonhosted.org/packages/be/ba/1f744cdc819428fc6b5084ec34d9b30660f6f9daaf70eead706e3203ec3c/toml-0.10.2.tar.gz
BuildArch:	noarch

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description
A Python library for parsing and creating TOML.

#-----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Python Library for Tom's Obvious, Minimal Language
Group:		Development/Python

%description -n python3-%{pypi_name}
A Python library for parsing and creating TOML.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#-----------------------------------------------------------------------
%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16653 |21mr|python-tomli-2.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This package buildrequires flit_core to build the wheel, but flit_core requires tomli.
# To bootstrap, we copy the files to appropriate locations manually and create a minimal dist-info metadata.
# Note that as a pure Python package, the wheel contains no pre-built binary stuff.
# When bootstrap is enabled, we don't run tests either, just an import check.
%bcond_with     bootstrap

Name:           python-tomli
Version:        2.0.1
Release:        4
Summary:        A little TOML parser for Python
Group:          Development/Python
License:        MIT
URL:            https://pypi.org/project/tomli/
Source0:        https://github.com/hukkin/tomli/archive/%{version}/%{name}-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros


%global _description %{expand:
Tomli is a Python library for parsing TOML.
Tomli is fully compatible with TOML v1.0.0.}


%description %_description

#---------------------------------------------------
%package -n python3-tomli
Summary:        %{summary}
Group:          Development/Python

%description -n python3-tomli %_description

%files -n python3-tomli -f %{pyproject_files}
%doc README.md
%doc CHANGELOG.md
%license LICENSE

#---------------------------------------------------
%prep
%autosetup -p1 -n tomli-%{version}


%if %{without bootstrap}
%generate_buildrequires
%pyproject_buildrequires -r
%endif


%build
%if %{without bootstrap}
%pyproject_wheel
%else
%global distinfo tomli-%{version}+rpmbootstrap.dist-info
mkdir %{distinfo}
cat > %{distinfo}/METADATA << EOF
Metadata-Version: 2.2
Name: tomli
Version: %{version}+rpmbootstrap
EOF
%endif


%install
%if %{without bootstrap}
%pyproject_install
%pyproject_save_files tomli
%else
mkdir -p %{buildroot}%{python3_sitelib}
cp -a src/tomli %{distinfo} %{buildroot}%{python3_sitelib}
echo '%{python3_sitelib}/tomli/' > %{pyproject_files}
echo '%{python3_sitelib}/%{distinfo}/' >> %{pyproject_files}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16654 |21mr|python-tomli-w-1.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           python-tomli-w
Version:        1.0.0
Release:        2
Summary:        A Python library for writing TOML
Group:          Development/Python
License:        MIT
URL:            https://github.com/hukkin/tomli-w
Source0:        %{url}/archive/%{version}/tomli-w-%{version}.tar.gz

BuildArch:      noarch
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
#BuildRequires:  python3-flit-core
BuildRequires:  python3-tox
BuildRequires:  python3dist(tox-current-env)
BuildRequires:  python3dist(tomli)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pytest-randomly)
BuildRequires:  python3dist(pytest-cov)

%global _description %{expand:
Tomli-W is a Python library for writing TOML. It is a write-only counterpart
to Tomli, which is a read-only TOML parser. Tomli-W is fully compatible
with TOML v1.0.0.}

%description %_description

#-----------------------------------------------------------
%package -n python3-tomli-w
Summary:        %{summary}
Group:          Development/Python

%description -n python3-tomli-w %_description

%files -n python3-tomli-w -f %{pyproject_files}
%doc README.md
%doc CHANGELOG.md
%license LICENSE

#-----------------------------------------------------------

%prep
%autosetup -p1 -n tomli-w-%{version}


%generate_buildrequires
%pyproject_buildrequires %{?with_check:-t}


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files tomli_w

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16655 |21mr|python-tomlkit-0.11.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name tomlkit

%global common_description %{expand:
TOML Kit is a 1.0.0-compliant TOML library.

It includes a parser that preserves all comments, indentations, whitespace and
internal element ordering, and makes them accessible and editable via an
intuitive API.

You can also create new TOML documents from scratch using the provided helpers.

Part of the implementation has been adapted, improved and fixed from Molten.}

Name:           python-%{pypi_name}
Summary:        Style preserving TOML library
Group:          Development/Python
Version:        0.11.4
Release:        1
License:        MIT

URL:            https://github.com/sdispater/tomlkit
Source0:        %{pypi_source %{pypi_name}}

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

# test dependencies
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(pyyaml)

%description %{common_description}

#--------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name} %{common_description}

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE
%doc README.md

#--------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1


%generate_buildrequires
%pyproject_buildrequires -r


%build
%pyproject_wheel


%install
%pyproject_install
%pyproject_save_files %{pypi_name}


%check
%pytest


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16656 |21mr|python-tornado-6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname tornado
%define debug_package %{nil}
%global __requires_exclude .*backports.ssl-match-hostname.*

Summary:	Scalable, non-blocking web server and tools
Name:		python-%{oname}
Version:	6.1
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		http://www.tornadoweb.org
Source0:	https://files.pythonhosted.org/packages/cf/44/cc9590db23758ee7906d40cacff06c02a21c2a6166602e095a56cbf2f6f6/tornado-6.1.tar.gz
Source1:	%{name}.rpmlintrc

%description
Tornado is an open source version of the scalable, non-blocking web server and
and tools.

The framework is distinct from most mainstream web server frameworks (and
certainly most Python frameworks) because it is non-blocking and reasonably
fast. Because it is non-blocking and uses epoll, it can handle thousands of
simultaneous standing connections, which means it is ideal for real-time web
services.

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:	Scalable, non-blocking web server and tools
Group:		Development/Python
BuildRequires:	pkgconfig(python2)
Requires:	python2-pycurl
Requires:	python2-simplejson

%description -n python2-%{oname}
Tornado is an open source version of the scalable, non-blocking web server and
and tools.

The framework is distinct from most mainstream web server frameworks (and
certainly most Python frameworks) because it is non-blocking and reasonably
fast. Because it is non-blocking and uses epoll, it can handle thousands of
simultaneous standing connections, which means it is ideal for real-time web
services.

%files -n python2-%{oname}
%{py2_platsitedir}/%{oname}/
%{py2_platsitedir}/%{oname}-%{version}-py%{py2_ver}.egg-info

#----------------------------------------------------------------------------

%package doc
Summary:	Examples for %{name}
Group:		Development/Python

%description doc
Tornado is an open source version of the scalable, non-blocking web server and
and tools. This package contains some example applications.

%files doc
%doc demos

#----------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	Scalable, non-blocking web server and tools
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
Requires:	python3-pycurl
Requires:	python3-simplejson

%description -n python3-%{oname}
Tornado is an open source version of the scalable, non-blocking web server and
and tools.

The framework is distinct from most mainstream web server frameworks (and
certainly most Python frameworks) because it is non-blocking and reasonably
fast. Because it is non-blocking and uses epoll, it can handle thousands of
simultaneous standing connections, which means it is ideal for real-time web
services.

%files -n python3-%{oname}
%{py3_platsitedir}/%{oname}/
%{py3_platsitedir}/%{oname}-%{version}-py%{py3_ver}.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

# remove shebang from files
sed -i.orig -e '/^#!\//, 1d' *py tornado/*.py tornado/*/*.py

# spurious permission fix
find demos/ -name "*.py" -exec chmod -x {} \;

# remove empty file
rm -rf demos/facebook/static/facebook.js

rm -rf %{py3dir}
cp -a . %{py3dir}

%build
pushd %{py3dir}
    %py3_build
popd

%py2_build

%install
pushd %{py3dir}
    %py3_install
popd
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16657 |21mr|python-tox-3.24.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Tests requiring Internet connections are disabled by default
# pass --with internet to run them (e.g. when doing a local rebuild
# for sanity checks before committing)
%bcond_with internet

%global pypiname tox

Name:           python-tox
Version:	3.24.0
Release:	1
Summary:        Virtualenv-based automation of test activities
Group:          Development/Python

# file toxbootstrap.py is licensed under MIT License
License:        MIT
URL:            https://tox.readthedocs.org/
Source0:	https://files.pythonhosted.org/packages/10/aa/b966a122632989d84f668ebdb90446548e15dcd6234cb2bdc4c5ebee96df/tox-3.24.0.tar.gz
BuildArch:      noarch

%description
Tox as is a generic virtualenv management and test command line tool you
can use for:

 - checking your package installs correctly with different Python versions
   and interpreters
 - running your tests in each of the environments, configuring your test tool
   of choice
 - acting as a frontend to Continuous Integration servers, greatly reducing
   boilerplate and merging CI and shell-based testing.

#-----------------------------------------------------------------------------
%package -n python3-%{pypiname}
Summary:        Virtualenv-based automation of test activities
Group:          Development/Python
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(py)
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(virtualenv)
Requires:       python3-py
Requires:       python3-pluggy
# python3-virtualenv is rhbz#537246
Requires:       python3-virtualenv

%description -n python3-%{pypiname}
Tox as is a generic virtualenv management and test command line tool you
can use for:

 - checking your package installs correctly with different Python versions
   and interpreters
 - running your tests in each of the environments, configuring your test tool
   of choice
 - acting as a frontend to Continuous Integration servers, greatly reducing
   boilerplate and merging CI and shell-based testing.

%files -n python3-tox
%doc *.rst docs
%doc LICENSE
%{_bindir}/%{pypiname}
%{_bindir}/%{pypiname}-quickstart
%{python3_sitelib}/%{pypiname}
%{python3_sitelib}/%{pypiname}-%{version}-py*.egg-info

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{pypiname}-%{version}

# remove bundled egg-info
rm -rf %{pypiname}.egg-info

%build
%py3_build

%install
%py3_install

# if internet connection available, run tests
%if %{with internet}
%check
%__python3 setup.py test

%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16658 |21mr|python-tox-current-env-0.0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name tox-current-env
%global pypi_under tox_current_env

Name:           python-%{pypi_name}
Version:        0.0.8
Release:        2
Summary:        Tox plugin to run tests in current Python environment
Group:          Development/Python

License:        MIT
URL:            https://github.com/fedora-python/tox-current-env
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(pip)
BuildRequires:  python3dist(packaging)

%description
The tox-current-env plugin allows to run tests in current Python environment.

#---------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
The tox-current-env plugin allows to run tests in current Python environment.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_under}/
%{python3_sitelib}/tox_current_env*.egg-info/

#---------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build


%install
%py3_install


#check
# the tests currently only work within actual tox and with various Python
# versions installed, so we skip them.

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16659 |21mr|python-tpm2-pytss-2.1.0-0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name tpm2-pytss

Name:		python-%{pypi_name}
Version:	2.1.0
Release:	0
Summary:	Python bindings for TSS
Group:		System/Configuration/Hardware
License:	BSD-2-Clause
URL:		https://github.com/tpm2-software/tpm2-pytss
Source0:        %{pypi_source}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pyyaml)
BuildRequires:	python3egg(asn1crypto)
BuildRequires:	python3egg(cffi)
BuildRequires:	python3egg(cryptography)
BuildRequires:	python3egg(packaging)
BuildRequires:	python3egg(pkgconfig)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(tss2-esys)
BuildRequires:	pkgconfig(tss2-fapi)

%define _description \
TPM2 TSS Python bindings for Enhanced System API (ESYS), Feature API \
(FAPI), Marshaling (MU), TCTI Loader (TCTILdr) and RC Decoding \
(rcdecode) libraries. It also contains utility methods for wrapping \
keys to TPM 2.0 data structures for importation into the TPM, \
unwrapping keys and exporting them from the TPM, TPM-less \
makecredential command and name calculations, TSS2 PEM Key format \
support, importing Keys from PEM, DER and SSH formats, conversion from \
tpm2-tools based command line strings and loading tpm2-tools context \
files.

%description 
%{_description}

%package -n python3-%{pypi_name}
Summary:		%{summary}
Provides:		python3-tpm2-tss
Requires:		python3-PyYAML
Requires:		python3-asn1crypto
Requires:		python3-cffi
Requires:		python3-cryptography
Requires:		python3-packaging
Requires:		python3-setuptools
Requires:		tpm2-tss

%description -n python3-%{pypi_name}
%{_description}

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
# Provides a PKG-INFO with "version" for setuptools_scm
cat <<EOF > PKG-INFO
Metadata-Version: 1.1
Version: %{version}
EOF
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%license LICENSE
%{python3_sitearch}/tpm2_pytss
%{python3_sitearch}/tpm2_pytss-%{version}*-info



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16660 |21mr|python-tpm2-pytss-2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name tpm2-pytss

Name:		python-%{pypi_name}
Version:	2.1.0
Release:	1
Summary:	Python bindings for TSS
Group:		System/Configuration/Hardware
License:	BSD-2-Clause
URL:		https://github.com/tpm2-software/tpm2-pytss
Source0:	%{pypi_source}
Patch0:		tpm2-pytss-x32-build.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pyyaml)
BuildRequires:	python3egg(asn1crypto)
BuildRequires:	python3egg(cffi)
BuildRequires:	python3egg(cryptography)
BuildRequires:	python3egg(packaging)
BuildRequires:	python3egg(pkgconfig)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-pip
BuildRequires:	python3-wheel
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(tss2-esys)
BuildRequires:	pkgconfig(tss2-fapi)

%define _description \
TPM2 TSS Python bindings for Enhanced System API (ESYS), Feature API \
(FAPI), Marshaling (MU), TCTI Loader (TCTILdr) and RC Decoding \
(rcdecode) libraries. It also contains utility methods for wrapping \
keys to TPM 2.0 data structures for importation into the TPM, \
unwrapping keys and exporting them from the TPM, TPM-less \
makecredential command and name calculations, TSS2 PEM Key format \
support, importing Keys from PEM, DER and SSH formats, conversion from \
tpm2-tools based command line strings and loading tpm2-tools context \
files.

%description
%{_description}

%package -n python3-%{pypi_name}
Summary:		%{summary}
Provides:		python3-tpm2-tss
Requires:		python3-PyYAML
Requires:		python3-asn1crypto
Requires:		python3-cffi
Requires:		python3-cryptography
Requires:		python3-packaging
Requires:		python3-setuptools
Requires:		tpm2-tss

%description -n python3-%{pypi_name}
%{_description}

%prep
%autosetup -p1 -n %{pypi_name}-%{version}

%build
# Provides a PKG-INFO with "version" for setuptools_scm
cat <<EOF > PKG-INFO
Metadata-Version: 1.1
Version: %{version}
EOF
%py3_build

%install
%py3_install

%files -n python3-%{pypi_name}
%license LICENSE
%{python3_sitearch}/tpm2_pytss
%{python3_sitearch}/tpm2_pytss-%{version}*-info



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16661 |21mr|python-tqdm-4.64.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define    oname    tqdm

Summary:        Fast, Extensible Progress Meter
Name:           python-%{oname}
Version:	4.64.1
Release:	1
Url:            https://github.com/tqdm/tqdm
Source0:	https://files.pythonhosted.org/packages/c1/c2/d8a40e5363fb01806870e444fc1d066282743292ff32a9da54af51ce36a2/tqdm-4.64.1.tar.gz
License:        MPLv2.0
Group:          Development/Python

BuildArch:      noarch
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)
BuildRequires:  python3egg(toml)

%description
tqdm (read taqadum, تقدّم) means “progress” in Arabic.
tqdm instantly makes your loops show a smart progress
meter, just by wrapping any iterable with "tqdm(iterable)".
This package contains the Python 2 version of tqdm.
#=============================================================================

%package -n python3-%{oname}
Summary:  Fast, Extensible Progress Meter
Group:    Development/Python

%description -n python3-%{oname}
tqdm (read taqadum, تقدّم) means “progress” in Arabic.
tqdm instantly makes your loops show a smart progress
meter, just by wrapping any iterable with "tqdm(iterable)".
This package contains the Python 2 version of tqdm.

%files -n python3-%{oname}
%{_bindir}/tqdm
%{python3_sitelib}/tqdm/*
%{python3_sitelib}/tqdm*.egg-info

#=============================================================================

%prep
%setup -q -n %{oname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16662 |21mr|python-traceback2-1.4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname traceback2

Name:           python-%{srcname}
Version:        1.4.0
Release:        7
Summary:        Backports of the traceback module

Group:          Development/Python
License:        Python Software Foundation License
URL:            https://github.com/testing-cabal/traceback2
Source0:        https://files.pythonhosted.org/packages/eb/7f/e20ba11390bdfc55117c8c6070838ec914e6f0053a602390a598057884eb/traceback2-1.4.0.tar.gz
BuildArch:      noarch

%description
A backport of traceback to older supported Pythons.

%package -n     python3-%{srcname}
Summary:        Backports of the traceback module
Group:          Development/Python
BuildArch:      noarch
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pbr)

%description -n python3-%{srcname}
A backport of traceback to older supported Pythons.

%prep
%setup -q -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%doc AUTHORS ChangeLog README.rst
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}-%{version}-py%{py3_ver}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16663 |21mr|python-traitlets-5.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name traitlets

Name:           python-traitlets
Version:        5.8.0
Release:        1
Summary:        Traitlets Python config system
Group:          Development/Python
License:        BSD
URL:            http://ipython.org
Source0:        %{pypi_source}
BuildArch:      noarch
 
BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros

%description
A configuration system for Python applications.

#------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        Traitlets Python config system
Group:          Development/Python
Requires:       python3-decorator
Requires:       python3-ipython_genutils
Requires:       python3-six

%description -n python3-%{pypi_name}
A configuration system for Python applications.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license COPYING*
%doc README.md CHANGES* CHANGELOG*

#------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16664 |21mr|python-translate-3.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pname translate
%define oname %{pname}-toolkit

Summary:       Software localization toolkit
Name:          python-%{pname}
Version:	3.4.0
Release:	1
License:       GPLv2+
Group:         Development/Python
Url:           http://translate.sourceforge.net/
Source0:       https://github.com/translate/translate/archive/%{version}.tar.gz?/%{pname}-%{version}.tar.gz
BuildRequires: pkgconfig(python2)
BuildRequires: pythonegg(setuptools)
BuildRequires: pythonegg(lxml)
BuildRequires: pythonegg(simplejson)
Requires:      pythonegg(lxml)
Requires:      pythonegg(levenshtein)
Requires:      pythonegg(simplejson)
Requires:      pythonegg(pyenchant)
Requires:      pythonegg(vobject)
Requires:      pythonegg(iniparse)
# for sub2po and po2sub
Requires:      pythonegg(aeidon)
# python2-pysco is only available for i586
%ifarch %{ix86}
Requires:      python2-psyco
%endif

Recommends:    pythonegg(beautifulsoup4)
Recommends:    pythonegg(babel)

Provides:  %{oname} = %{version}-%{release}
BuildArch: noarch

%description
The Translate Toolkit is a set of software and documentation designed
to help make the lives of localizers both more productive and less
frustrating.  The Toolkit is part of the translate.sourceforge.net
project, hosted at http://translate.sourceforge.net/

The software includes programs to covert localization formats to the
common PO format and programs to check and manage PO files.  The
documentation includes guides on using the tools, running a
localization project and how to localize various projects from
OpenOffice.org to Mozilla.

At its core the software contains a set of classes for handling
various localization storage formats: DTD, properties, OpenOffice.org
GSI/SDF, CSV and of course PO.  And scripts to convert between these
formats.

Also part of the Toolkit are Python programs to create word counts,
merge translations and perform various checks on PO files.

#======================================================================

%package -n python3-%{pname}
Summary:        Software localization toolkit
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(lxml)
BuildRequires:  python3egg(simplejson)
Requires:       python3egg(lxml)
Requires:       python3egg(levenshtein)
Requires:       python3egg(simplejson)
Requires:       python3egg(pyenchant)
Requires:       python3egg(vobject)
Requires:       python3egg(iniparse)
# for sub2po and po2sub
Requires:       python3egg(aeidon)
# python2-pysco is only available for i586
%ifarch %{ix86}
Requires:       python3-psyco
%endif
Recommends:     python3egg(beautifulsoup4)
Recommends:     python3egg(babel)

%description -n python3-%{pname}
The Translate Toolkit is a set of software and documentation designed
to help make the lives of localizers both more productive and less
frustrating.  The Toolkit is part of the translate.sourceforge.net
project, hosted at http://translate.sourceforge.net/

The software includes programs to covert localization formats to the
common PO format and programs to check and manage PO files.  The
documentation includes guides on using the tools, running a
localization project and how to localize various projects from
OpenOffice.org to Mozilla.

At its core the software contains a set of classes for handling
various localization storage formats: DTD, properties, OpenOffice.org
GSI/SDF, CSV and of course PO.  And scripts to convert between these
formats.

Also part of the Toolkit are Python programs to create word counts,
merge translations and perform various checks on PO files.

%files -n python3-%{pname}
%{_bindir}/*
%{python3_sitelib}/%{pname}
%{python3_sitelib}/translate_toolkit-%{version}-py%{py3_ver}.egg-info

#======================================================================
%prep
%setup -q -n %{pname}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16665 |21mr|python-transliterate-1.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module transliterate

Name:		    python-%{module}
Version:	    1.10.2
Release:	    1
Summary:	    Bi-directional transliterator for Python
Url:		    https://github.com/barseghyanartur/%{module}
Source0:	    https://github.com/barseghyanartur/%{module}/archive/refs/tags/%{module}-%{version}.tar.gz
License:	    GPL2.0
Group:		    Development/Python
BuildArch:	    noarch
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pillow

%define _description \
Bi-directional transliterator for Python.\
Transliterates (unicode) strings according to the rules specified\
in the language packs (source script <-> target script)

%description
%_description

#--------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Bi-directional transliterator for Python
Group:          Development/Python

%description -n python3-%{module}
%_description

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py3.?.egg-info

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16666 |21mr|python-trustme-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname trustme
# what it's imported as
%global libname %{srcname}
# name of egg info directory
%global eggname %{srcname}
# package name fragment
%global pkgname %{srcname}

%global common_description %{expand:
You wrote a cool network client or server.  It encrypts connections using TLS.
Your test suite needs to make TLS connections to itself.  Uh oh.  Your test
suite probably doesn't have a valid TLS certificate.  Now what?  trustme is a
tiny Python package that does one thing: it gives you a fake certificate
authority (CA) that you can use to generate fake TLS certs to use in your
tests.  Well, technically they are real certs, they are just signed by your CA,
which nobody trusts.  But you can trust it.  Trust me.}

%bcond_without  tests
%bcond_without  docs

Name:       python-%{pkgname}
Version:	0.8.0
Release:	1
Summary:    #1 quality TLS certs while you wait, for the discerning tester
Group:      Development/Python
License:    MIT or ASL 2.0
URL:        https://github.com/python-trio/trustme
Source0:	https://files.pythonhosted.org/packages/70/d0/4dbfc0b607456cd07f763d73f824a919dbae5b87e538f2f015c7afbaf4a6/trustme-0.8.0.tar.gz
BuildArch:  noarch


%description %{common_description}

#------------------------------------------------------------------
%package -n python3-%{pkgname}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3egg(setuptools)
%if %{with tests}
BuildRequires:  python3egg(pytest)
BuildRequires:  python3egg(pyopenssl)
BuildRequires:  python3egg(service-identity)
BuildRequires:  python3egg(cryptography)
BuildRequires:  python3egg(idna)
%endif

%description -n python3-%{pkgname} %{common_description}

%files -n python3-%{pkgname}
%license LICENSE LICENSE.MIT LICENSE.APACHE2
%doc README.rst
%{python3_sitelib}/%{libname}
%{python3_sitelib}/%{eggname}-%{version}-py%{python3_version}.egg-info

#------------------------------------------------------------------

%if %{with docs}
%package -n python-%{pkgname}-doc
Summary:        Documentation for %{name}
Group:          Documentation
BuildRequires:  python3egg(sphinx)
BuildRequires:  python3egg(sphinxcontrib-trio)
BuildRequires:  python3egg(cryptography)
BuildRequires:  python3egg(idna)


%description -n python-%{pkgname}-doc
Documentation for %{name}.

%files -n python-%{pkgname}-doc
%license LICENSE LICENSE.MIT LICENSE.APACHE2
%doc html
%endif

#------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version}
rm -rf %{eggname}.egg-info

%build
%py3_build

%if %{with docs}
sphinx-build-3 docs/source html
%endif

%install
%py3_install

%if %{with tests}
%check
%{__python3} -m pytest -k "not test_cli"
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16667 |21mr|python-twisted-21.2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name twisted
%global debug_package %{nil}

%global common_description %{expand:
Twisted is a networking engine written in Python, supporting numerous protocols.
It contains a web server, numerous chat clients, chat servers, mail servers
and more.}

Name:           python-%{pypi_name}
Version:        21.2.0
Release:        3
Summary:        Twisted is a networking engine written in Python
Group:          Development/Python
License:        MIT
URL:            http://twistedmatrix.com/
Source0:        %{pypi_source Twisted %{version} tar.gz}
# Import gobject from gi.repository for Python 3
# https://twistedmatrix.com/trac/ticket/9642
Patch1:         0001-Import-gobject-from-gi.repository-in-Python-3.patch
BuildRequires:  gcc
BuildRequires:  python3-devel >= 3.3
BuildRequires:  python3-cython
BuildRequires:  python3dist(appdirs) >= 1.4
BuildRequires:  python3dist(automat) >= 0.8
BuildRequires:  python3dist(attrs) >= 19.2.0
BuildRequires:  python3-constantly
BuildRequires:  python3dist(cryptography) >= 2.6
BuildRequires:  python3dist(h2)
BuildRequires:  python3dist(hyperlink) >= 17.1.1
BuildRequires:  python3dist(idna) >= 2.4
BuildRequires:  python3dist(incremental) >= 16.10.1
BuildRequires:  python3dist(priority) < 2
BuildRequires:  python3dist(pyasn1)
BuildRequires:  python3dist(pyopenssl) >= 16
BuildRequires:  python3dist(pyserial) >= 3
BuildRequires:  python3dist(service-identity) >= 18.1
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(sphinx) >= 1.3.1
BuildRequires:  python3dist(zope.interface) >= 4.4.2
BuildRequires:  python3dist(pyhamcrest) >= 1.9
BuildArch:      noarch

%description
%{common_description}

# -----------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
%{common_description}

%files -n python3-%{pypi_name}
%doc NEWS.rst README.rst
%license LICENSE
%{_bindir}/trial-3*
%{_bindir}/twistd-3*
%{python3_sitelib}/twisted/
%{python3_sitelib}/Twisted-%{version}-py%{python3_version}.egg-info
%{_bindir}/cftp
%{_bindir}/ckeygen
%{_bindir}/conch
%{_bindir}/mailmail
%{_bindir}/pyhtmlizer
%{_bindir}/tkconch
%{_bindir}/trial
%{_bindir}/twist
%{_bindir}/twistd
%{_mandir}/man1/cftp.1*
%{_mandir}/man1/ckeygen.1*
%{_mandir}/man1/conch.1*
%{_mandir}/man1/mailmail.1*
%{_mandir}/man1/pyhtmlizer.1*
%{_mandir}/man1/tkconch.1*
%{_mandir}/man1/trial.1*
%{_mandir}/man1/twistd.1*

# -----------------------------------------------------------------------

%prep
%autosetup -p1 -n Twisted-%{version}

%build
%py3_build

%install
# no-manual-page-for-binary
mkdir -p %{buildroot}%{_mandir}/man1/
for s in conch core mail; do
    cp -a docs/$s/man/*.1 %{buildroot}%{_mandir}/man1/
done

%py3_install

# Packages that install arch-independent twisted plugins install here.
# https://bugzilla.redhat.com/show_bug.cgi?id=1252140
mkdir -p %{buildroot}%{python3_sitelib}/twisted/plugins

# Move and symlink python3 scripts
# no-manual-page-for-binary: man page is trial and twistd
mv %{buildroot}%{_bindir}/trial %{buildroot}%{_bindir}/trial-%{python3_version}
ln -s ./trial-%{python3_version} %{buildroot}%{_bindir}/trial-3
ln -s ./trial-%{python3_version} %{buildroot}%{_bindir}/trial

mv %{buildroot}%{_bindir}/twistd %{buildroot}%{_bindir}/twistd-%{python3_version}
ln -s ./twistd-%{python3_version} %{buildroot}%{_bindir}/twistd-3
ln -s ./twistd-%{python3_version} %{buildroot}%{_bindir}/twistd

%check
# can't get this to work within the buildroot yet due to multicast
# https://twistedmatrix.com/trac/ticket/7494
PATH=%{buildroot}%{_bindir}:$PATH PYTHONPATH=%{buildroot}%{python3_sitearch} %{buildroot}%{_bindir}/trial twisted ||:
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16668 |21mr|python-txaio-21.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name txaio

Summary:	Compatibility API between asyncio/Twisted/Trollius
Name:		python-%{pypi_name}
Version:	21.2.1
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://txaio.readthedocs.io/
Source0:	https://files.pythonhosted.org/packages/source/t/txaio/txaio-%{version}.tar.gz
Patch0:		python-txaio-skip-packaging-tests.patch
# The test_utils module can no longer be imported from asyncio
# and is undocumented intentionaly because it's private.
# This is a hack that calls stop on the loop soon after calling run_forever().
Patch2:		run_once.patch
BuildArch:	noarch

%description
Helper library for writing code that runs unmodified on both Twisted and
asyncio.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Compatibility API between asyncio/Twisted/Trollius
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-six
BuildRequires:	python3-enchant >= 1.6.6
BuildRequires:	aspell-en
Requires:	python3-six

%description -n python3-%{pypi_name}
Helper library for writing code that runs unmodified on both Twisted and
asyncio.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info/
%{python3_sitelib}/%{pypi_name}/

#----------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
%patch0 -p0
%patch2 -p1
# Remove upstream's egg-info
rm -rf %{pypi_name}.egg-info
# README is just a symlink to index.rst. Using this file as README
rm docs/index.rst
cp -a README.rst docs/index.rst

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16669 |21mr|python-typing-3.7.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module	typing

Summary:	Typing defines a standard notation for type annotations
Name:		python-%{module}
Version:	3.7.4.3
Release:	1
License:	Python
Group:		Development/Python
Url:		https://pypi.python.org/pypi/typing
Source0:	https://files.pythonhosted.org/packages/05/d9/6eebe19d46bd05360c9a9aae822e67a80f9242aabbfc58b641b957546607/typing-3.7.4.3.tar.gz
BuildArch:	noarch

%description
Typing defines a standard notation for Python function and variable type
annotations. The notation can be used for documenting code in a concise,
standard format, and it has been designed to also be used by static and
runtime type checkers, static analyzers, IDEs and other tools.

%package -n     python2-%{module}
%py2_migration_meta python2-%{module}
Summary:        Typing defines a standard notation for type annotations
Group:          Development/Python
BuildRequires:  pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)

%description -n python2-%{module}
Typing defines a standard notation for Python function and variable type
annotations. The notation can be used for documenting code in a concise,
standard format, and it has been designed to also be used by static and
runtime type checkers, static analyzers, IDEs and other tools.

%files -n python2-%{module}
%doc README.rst LICENSE
%{py2_puresitedir}/typing*

%package -n     python3-%{module}
Summary:        Typing defines a standard notation for type annotations
Group:          Development/Python
BuildRequires:  python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-%{module}
Typing defines a standard notation for Python function and variable type
annotations. The notation can be used for documenting code in a concise,
standard format, and it has been designed to also be used by static and
runtime type checkers, static analyzers, IDEs and other tools.

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_puresitedir}/typing*
%{py3_puresitedir}/__pycache__/typing*

#----------------------------------------------------------------------------

%prep
%setup -qn typing-%{version}
cp -a . %{py2dir}

%build
pushd %{py2dir}
%py2_build
popd
%py3_build

%install
pushd %{py2dir}
%py2_install
popd
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16670 |21mr|python-typing-extensions-4.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name typing-extensions

Name:      python-typing-extensions
Version:   4.4.0
Release:   1
Summary:   Python Typing Extensions
Group:     Development/Python
License:   Python
URL:       https://pypi.org/project/typing-extensions/
Source0:   %{pypi_source typing_extensions}

# https://github.com/python/typing_extensions/pull/97
Source1:   https://github.com/python/typing_extensions/raw/4.4.0/src/_typed_dict_test_helper.py

BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: pyproject-rpm-macros


%global _description %{expand:
The `typing_extensions` module serves two related purposes:

- Enable use of new type system features on older Python versions. For example,
  `typing.TypeGuard` is new in Python 3.10, but `typing_extensions` allows
  users on Python 3.6 through 3.9 to use it too.
- Enable experimentation with new type system PEPs before they are accepted and
  added to the `typing` module.

New features may be added to `typing_extensions` as soon as they are specified
in a PEP that has been added to the [python/peps](https://github.com/python/peps)
repository. If the PEP is accepted, the feature will then be added to `typing`
for the next CPython release. No typing PEP has been rejected so far, so we
haven't yet figured out how to deal with that possibility.

Starting with version 4.0.0, `typing_extensions` uses
[Semantic Versioning](https://semver.org/). The
major version is incremented for all backwards-incompatible changes.
Therefore, it's safe to depend
on `typing_extensions` like this: `typing_extensions >=x.y, <(x+1)`,
where `x.y` is the first version that includes all features you need.

`typing_extensions` supports Python versions 3.7 and higher. In the future,
support for older Python versions will be dropped some time after that version
reaches end of life.}

%description %_description

#------------------------------------------------------
%package -n python3-typing-extensions
Summary:       %{summary}
Group:         Development/Python

%description -n python3-typing-extensions %_description

%files -n python3-typing-extensions -f %{pyproject_files}
%license LICENSE
%doc CHANGELOG.md
%doc README.md

#------------------------------------------------------

%prep
%autosetup -n typing_extensions-%{version}
cp -v %{SOURCE1} src/

%generate_buildrequires
%pyproject_buildrequires


%build
%pyproject_wheel


%install
%pyproject_install

%pyproject_save_files typing_extensions



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16671 |21mr|python-typogrify-2.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	typogrify

Summary:	Filters to enhance web typography, with support for Django & Jinja templates
Name:		python-%{module}
Version:	2.0.7
Release:	1
License:	BSD
Group:		Development/Python
URL:		https://github.com/mintchaos/typogrify
Source0:	https://github.com/mintchaos/typogrify/archive/refs/tags/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3dist(setuptools)
BuildArch:	noarch

%description
Typogrify provides a set of custom filters that automatically apply various
transformations to plain text in order to yield typographically-improved HTML.
While often used in conjunction with Jinja_ and Django_ template systems, the
filters can be used in any environment.

#------------------------------------------------------------------

%package -n python3-%{module}
Summary:	Filters to enhance web typography, with support for Django & Jinja templates
Group:		Development/Python

%description -n python3-%{module}
Typogrify provides a set of custom filters that automatically apply various
transformations to plain text in order to yield typographically-improved HTML.
While often used in conjunction with Jinja_ and Django_ template systems, the
filters can be used in any environment.

%files -n python3-%{module}
%doc README.rst
%license LICENSE.txt
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-*

#------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16672 |21mr|python-tzlocal-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module tzlocal

Summary:	A Python module that tries to figure out what your local timezone is
Name:		python-tzlocal
Version:	2.1
Epoch:		1
Release:	1
License:	CC0
Group:		Development/Python
Url:		https://github.com/regebro/tzlocal
Source0:	https://files.pythonhosted.org/packages/ce/73/99e4cc30db6b21cba6c3b3b80cffc472cc5a0feaf79c290f01f1ac460710/tzlocal-2.1.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(pytz)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
This Python module returns a tzinfo object with the local timezone information.
It requires pytz, and returns pytz tzinfo objects.  This module attempts to fix
a glaring hole in pytz, that there is no way to get the local timezone
information, unless you know the zoneinfo name.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A Python module that tries to figure out what your local timezone is
Group:		Development/Python

%description -n python3-%{module}
This Python module returns a tzinfo object with the local timezone information.
It requires pytz, and returns pytz tzinfo objects.  This module attempts to fix
a glaring hole in pytz, that there is no way to get the local timezone
information, unless you know the zoneinfo name.

%files -n python3-%{module}
%doc PKG-INFO README.rst LICENSE.txt CHANGES.txt
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py3.?.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

rm -rf *.egg-info

%build
%py3_build

%install
python3 setup.py install --skip-build --root %{buildroot}

# Don't install unit tests and test_data
rm -f %{buildroot}%{python3_sitelib}/%{module}/__pycache__/tests.cpython*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16673 |21mr|python-ufo2ft-2.26.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ufo2ft

%bcond_with tests

Name:           python-%{pypi_name}
Version:        2.26.0
Release:        1
Summary:        A bridge between UFOs and FontTools
Group:          Development/Python
License:        MIT
URL:            https://github.com/googlei18n/ufo2ft
Source0:        https://pypi.io/packages/source/u/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(booleanoperations) >= 0.9
BuildRequires:  python3dist(compreffor) >= 0.5.0
BuildRequires:  python3dist(cu2qu) >= 1.6.7
BuildRequires:  python3dist(fonttools) >= 4.2.0
BuildRequires:  python3dist(fs)
%if %{with tests}
BuildRequires:  python3dist(pytest) >= 2.8
%endif
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)
#BuildRequires:  python3dist(skia-pathops) >= 0.2.0

%description
ufo2ft ("UFO to FontTools") is a fork of ufo2fdk whose goal is to generate OpenType
font binaries from UFOs without the FDK dependency. The library provides two
functions, compileOTF and compileTTF, which work exactly the same way.

#-------------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
ufo2ft ("UFO to FontTools") is a fork of ufo2fdk whose goal is to generate OpenType
font binaries from UFOs without the FDK dependency. The library provides two
functions, compileOTF and compileTTF, which work exactly the same way.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf Lib/*.egg-info/

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
%{__python3} setup.py test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16674 |21mr|python-ufolib2-0.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ufolib2
%global pypi_src ufoLib2

Name:           python-%{pypi_name}
Version:        0.13.1
Release:        1
Summary:        ufoLib2 is a UFO font processing library
Group:          Development/Python
License:        Apache 2.0
URL:            https://github.com/fonttools/ufoLib2
Source0:        %{pypi_source %{pypi_src}}
Patch0:         ufolib2-requires.patch
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  pyproject-rpm-macros
BuildRequires:  python3dist(attrs) >= 18.2.0
BuildRequires:  python3dist(fonttools) >= 4.0
BuildRequires:  python3dist(fs)
BuildRequires:  python3dist(lxml)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
ufoLib2 is a UFO font library.

#-------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3dist(attrs) >= 18.2.0
Requires:       python3dist(fonttools) >= 4.0
Requires:       python3dist(lxml)

%description -n python3-%{pypi_name}
ufoLib2 is a UFO font library.

%files -n python3-%{pypi_name} -f %{pyproject_files}
%license LICENSE tests/data/LICENSE_UbuTestData.txt
%doc README.md

#-------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_src}-%{version}

# Remove bundled egg-info
rm -rf src/*.egg-info/

%generate_buildrequires
%pyproject_buildrequires -r

%build
%pyproject_wheel

%install
%pyproject_install
%pyproject_save_files %{pypi_src}

%check
%pytest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16675 |21mr|python-ufonormalizer-0.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ufonormalizer

Name:           python-%{pypi_name}
Version:        0.6.1
Release:        1
Summary:        Script to normalize the XML and other data inside of a UFO
Group:          Development/Python
License:        OpenSource, BSD-style
URL:            https://github.com/unified-font-object/ufoNormalizer
Source0:        https://files.pythonhosted.org/packages/source/u/%{pypi_name}/%{pypi_name}-%{version}.zip
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
Script to normalize the XML and other data inside of a UFO.

#-------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3dist(setuptools)

%description -n python3-%{pypi_name}
Script to normalize the XML and other data inside of a UFO.

%files -n python3-%{pypi_name}
%license LICENSE.txt
%doc README.md
%{_bindir}/ufonormalizer
%{python3_sitelib}/%{pypi_name}/__pycache__/*
%{python3_sitelib}/%{pypi_name}/*.py
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#-------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%check
#{__python3} setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16676 |21mr|python-ufoprocessor-1.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name ufoprocessor

%global __requires_exclude (lxml|\\[ufo\\])
Name:           python-%{pypi_name}
Version:        1.9.0
Release:        1
Summary:        Read, write and generate UFOs with designspace data
Group:          Development/Python
License:        MIT
URL:            https://github.com/LettError/ufoProcessor
Source0:        https://files.pythonhosted.org/packages/source/u/%{pypi_name}/ufoProcessor-%{version}.zip
BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(setuptools-scm)

%description
Python package based on the designSpaceDocument from fontTools.designspaceLib
specifically to process and generate instances for UFO files, glyphs and
other data.

#---------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

Requires:       python3dist(defcon) >= 0.6.0
Requires:       python3dist(fontmath) >= 0.4.9
Requires:       python3dist(fontparts) >= 0.8.2
Requires:       python3dist(fonttools) >= 3.32.0
Requires:       python3dist(mutatormath) >= 2.1.2

%description -n python3-%{pypi_name}
Python package based on the designSpaceDocument from fontTools.designspaceLib
specifically to process and generate instances for UFO files, glyphs and
other data.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitelib}/ufoProcessor/
%{python3_sitelib}/ufoProcessor-%{version}-py%{python3_version}.egg-info

#---------------------------------------------------------------------

%prep
%autosetup -n ufoProcessor-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16677 |21mr|python-ujson-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname ujson
%global srcname ultrajson

Name:		python-%{modname}
Version:	3.0.0
Release:	1
Summary:	Ultra fast JSON encoder and decoder written in pure C
Group:		Development/Python
License:	BSD
URL:		https://github.com/ultrajson/ultrajson
Source:		%{pypi_source %{modname}}
Patch0:		0001-Use-double-conversion-from-the-system.patch
BuildRequires:	double-conversion-devel


%global _description \
UltraJSON is an ultra fast JSON encoder and decoder written in\
pure C with bindings for Python.

%description %{_description}

#---------------------------------------------------------------------
%package -n python3-%{modname}
Summary:	%{summary}
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(setuptools-scm)
BuildRequires:	python3egg(pytest)

%description -n python3-%{modname} %{_description}

Python 3 version.

%files -n python3-%{modname}
%license LICENSE.txt
%doc README.rst
%{python3_sitearch}/%{modname}-%{version}-py%{python3_version}.egg-info/
%{python3_sitearch}/%{modname}*.so

#---------------------------------------------------------------------

%prep
%autosetup -n %{modname}-%{version} -p1
rm -vrf deps

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{python3_sitearch} %{__python3} -m pytest -v



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16678 |21mr|python-unicodecsv-0.14.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	unicodecsv

Name:		python-%{module}
Version:	0.14.1
Release:	3
Summary:	Drop-in replacement for Python 2.7's csv module which supports unicode strings
License:	BSD
Group:		Development/Python
URL:		https://github.com/jdunck/python-unicodecsv
Source0:	https://pypi.python.org/packages/source/u/%{module}/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
The unicodecsv is a drop-in replacement for Python 2.7's
csv module which supports unicode strings without a hassle.

It is NOT a drop-in replacement for Python 3's csv module,
see https://github.com/jdunck/python-unicodecsv/issues/65

%package -n	python3-%{module}
Summary:	Drop-in replacement for Python 2.7's csv module which supports unicode strings
Group:		Development/Python
BuildArch:	noarch

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-unittest2

%description -n	python3-%{module}
The unicodecsv is a drop-in replacement for Python 2.7's
csv module which supports unicode strings without a hassle.

It is NOT a drop-in replacement for Python 3's csv module,
see https://github.com/jdunck/python-unicodecsv/issues/65


%prep
%setup -q -n %{module}-%{version}

# Remove bundled egg-info
rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install

%check
%define enable_tests_python3 0
%if %{enable_tests_python3}
python-unit2 discover
%endif

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16679 |21mr|python-unicodedata2-14.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name unicodedata2

%bcond_with tests

Name:           python-%{pypi_name}
Version:        14.0.0
Release:        1
Summary:        Unicodedata backport for python 2/3 updated to the latest unicode version
Group:          Development/Python
License:        Apache License 2.0
URL:            https://github.com/mikekap/unicodedata2
Source0:        https://pypi.io/packages/source/u/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
The versions of this package match unicode versions, so unicodedata2==%{version}
is data from unicode %{version}.

#----------------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python

%description -n python3-%{pypi_name}
The versions of this package match unicode versions, so unicodedata2==%{version}
is data from unicode %{version}.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.md
%{python3_sitearch}/%{pypi_name}*.so
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

%if %{with tests}
%check
%{__python3} setup.py test
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16680 |21mr|python-unidecode-1.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name Unidecode

Name:		python-unidecode
Version:	1.3.4
Release:	2
Summary:	US-ASCII transliterations of Unicode text

Group:		Development/Python
License:	GPL+ or Artistic
URL:		https://pypi.python.org/pypi/%{pypi_name}/%{version}
Source0:	https://pypi.python.org/packages/source/U/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildArch:	noarch

%description
This is a python port of Text::Unidecode Perl module. It provides a function,
'unidecode(...)' that takes Unicode data and tries to represent it in ASCII
characters.

#--------------------------------------------------------------------------
%package -n python3-unidecode
Group:		Development/Python
Summary:	US-ASCII transliterations of Unicode text
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-unidecode
This is a python port of Text::Unidecode Perl module. It provides a function,
'unidecode(...)' that takes Unicode data and tries to represent it in ASCII
characters.

%files -n python3-unidecode
%doc README.rst ChangeLog
%{py3_puresitedir}/unidecode/
%{py3_puresitedir}/*.egg-info

#--------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

rm -f %{buildroot}%{_bindir}/unidecode


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16681 |21mr|python-unittest2-1.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	unittest2

Name:           python-%{module}
Version:        1.1.0
Release:        7
Summary:        Backport of new unittest features
Group:          Development/Python
License:        BSD
URL:            http://pypi.python.org/pypi/unittest2
Source0:        http://pypi.python.org/packages/source/u/%{module}/%{module}-%{version}.tar.gz
BuildArch:      noarch
BuildRequires:  python3egg(argparse)
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(six) >= 1.4
BuildRequires:  python3egg(nose)
BuildRequires:  python3egg(linecache2)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(traceback2)

%description
unittest2 is a backport of the new features added to the unittest 
testing framework in Python 2.7 and onwards. It is tested to run 
on Python 2.6, 2.7, 3.2, 3.3, 3.4 and pypy.

To use unittest2 instead of unittest simply replace ``import
unittest`` with ``import unittest2``.

Classes in unittest2 derive from the equivalent classes in unittest,
so it should be possible to use the unittest2 test running infra-
structure without having to switch all your tests to using unittest2
immediately. Similarly, you can use the new assert methods on
``unittest2.TestCase`` with the standard unittest test running
infrastructure. Not all of the new features in unittest2 will work
with the standard unittest test loaders and runners, however.


%package -n python3-%{module}
Summary:	Backport of new unittest features

%description -n python3-%{module}
unittest2 is a backport of the new features added to the unittest 
testing framework in Python 2.7 and onwards. It is tested to run 
on Python 2.6, 2.7, 3.2, 3.3, 3.4 and pypy.

To use unittest2 instead of unittest simply replace ``import
unittest`` with ``import unittest2``.

Classes in unittest2 derive from the equivalent classes in unittest,
so it should be possible to use the unittest2 test running infra-
structure without having to switch all your tests to using unittest2
immediately. Similarly, you can use the new assert methods on
``unittest2.TestCase`` with the standard unittest test running
infrastructure. Not all of the new features in unittest2 will work
with the standard unittest test loaders and runners, however.



%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{module}
%doc README.txt
%{_bindir}/*
%{python3_sitelib}/%{module}/
%{python3_sitelib}/%{module}-%{version}-py*.*.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16682 |21mr|python-uranium-4.13.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

# There are Python plugins in /usr/lib/uranium
# We need to byte-compile it with Python 3
%global __python %__python3

%define module uranium

Summary:	A Python framework for building desktop applications
Name:		python-%{module}
Version:	4.13.2
Release:	2
License:	LGPLv3+
Group:		Development/Python
Url:		https://github.com/Ultimaker/Uranium
Source0:	%{url}/archive/%{version}.tar.gz?/Uranium-%{version}.tar.gz
# https://github.com/Ultimaker/Uranium/pull/320
# Don't hardcode "lib", use sys.lib instead to fix x86_64 search path
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	gettext
BuildRequires:	git
BuildRequires:	pkgconfig(python3)
# Tests
BuildRequires:	python3-arcus = %{version}
BuildRequires:	python3-numpy
BuildRequires:	python3-pip
BuildRequires:	python3-pytest
BuildRequires:	python3-qt5
BuildRequires:	python3-scipy
BuildRequires:	python3-shapely
BuildRequires:	python3-cryptography
BuildRequires:	python3-twisted

%description
Uranium is a Python framework for building 3D printing related applications.

#----------------------------------------------------------------------------

%package -n python3-uranium
Summary:	A Python framework for building desktop applications
Group:		Development/Python
Requires:	python3-arcus = %{version}
Requires:	python3-cryptography
Requires:	python3-numpy
Requires:	python3-qt5
Requires:	python3-shapely
Requires:	python3-scipy
Requires:	python3-twisted

%description -n python3-uranium
Uranium is a Python framework for building 3D printing related applications.

%files -n python3-uranium -f uranium.lang
%doc README.md
%{py3_platsitedir}/UM
%{_datadir}/uranium/
%{_datadir}/cmake/Modules/UraniumTranslationTools.cmake
%{_libdir}/uranium

#----------------------------------------------------------------------------

%prep
%setup -qn Uranium-%{version}

# empty file. appending to the end to make sure we are not overriding
# a non empty file in the future
echo '# empty' >> UM/Settings/ContainerRegistryInterface.py

%build
%cmake
%make

%check
pip3 freeze

%__python3 -m pytest -v

%install
%makeinstall_std -C build

# Move the cmake files
mv %{buildroot}%{_datadir}/cmake* %{buildroot}%{_datadir}/cmake

# Sanitize the location of locale files
pushd %{buildroot}%{_datadir}
mv uranium/resources/i18n locale
ln -s ../../locale uranium/resources/i18n
rm locale/uranium.pot
rm locale/*/uranium.po
popd

%find_lang uranium
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16683 |21mr|python-uritemplate-3.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global modname uritemplate
%global altname uritemplate.py

%global _docdir_fmt %{name}

Name:           python-%{modname}
Version:        3.0.1
Release:        1
Summary:        Simple python library to deal with URI Templates (RFC 6570)
Group:		Development/Python
License:        BSD or ASL 2.0
URL:            https://%{modname}.readthedocs.io
Source0:        https://github.com/sigmavirus24/%{modname}/archive/%{version}/%{modname}-%{version}.tar.gz

BuildArch:      noarch

%description
%{summary}.

%package -n python3-%{modname}
Summary:        %{summary}
Conflicts:      python3-uri-templates
%{?python_provide:%python_provide python3-%{modname}}
%{?python_provide:%python_provide python3-%{altname}}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-pytest

%description -n python3-%{modname}
%{summary}.

Python 3 version.

%prep
%autosetup -n uritemplate-%{version}

%build
%py3_build

%install
%py3_install

%check
PYTHONPATH=%{buildroot}%{python3_sitelib} py.test-%{python3_version} -v

%files -n python3-%{modname}
%license LICENSE LICENSE.APACHE LICENSE.BSD
%doc HISTORY.rst README.rst
%{python3_sitelib}/%{modname}-*.egg-info/
%{python3_sitelib}/%{modname}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16684 |21mr|python-urlgrabber-4.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname urlgrabber

Summary: A high-level cross-protocol url-grabber

Name:		python-%{oname}
Version: 	4.1.0
Release: 	2
Url:		http://urlgrabber.baseurl.org/
Source0: 	https://files.pythonhosted.org/packages/b1/23/61cb4d829138f24bfae2c77af6794ddd67240811dbb4e3e2eb22c4f57742/urlgrabber-4.1.0.tar.gz
License: 	LGPLv2+
Group:		Development/Python
BuildArch: 	noarch

BuildRequires: 	pkgconfig(python2)
BuildRequires: 	pythonegg(pycurl)
BuildRequires: 	pythonegg(setuptools)
Requires: 	pythonegg(pycurl)

%description
A high-level cross-protocol url-grabber.

Using urlgrabber, data can be fetched in three basic ways:

  urlgrab(url) copy the file to the local filesystem
  urlopen(url) open the remote file and return a file object (like
  urllib2.urlopen)
  urlread(url) return the contents of the file as a string

When using these functions (or methods), urlgrabber supports the following 
features:

  * identical behavior for http://, ftp://, and file:// urls
  * http keepalive - faster downloads of many files by using only a single 
    connection
  * byte ranges - fetch only a portion of the file
  * reget - for a urlgrab, resume a partial download
  * progress meters - the ability to report download progress automatically, 
    even when using urlopen!
  * throttling - restrict bandwidth usage
  * retries - automatically retry a download if it fails. The number of retries
    and failure types are configurable.
  * authenticated server access for http and ftp
  * proxy support - support for authenticated http and ftp proxies
  * mirror groups - treat a list of mirrors as a single source, automatically 
    switching mirrors if there is a failure.

#=============================================================================
%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary: A high-level cross-protocol url-grabber
Group:		Development/Python

%description -n python2-%{oname}
A high-level cross-protocol url-grabber.

Using urlgrabber, data can be fetched in three basic ways:

  urlgrab(url) copy the file to the local filesystem
  urlopen(url) open the remote file and return a file object (like
  urllib2.urlopen)
  urlread(url) return the contents of the file as a string

When using these functions (or methods), urlgrabber supports the following 
features:

  * identical behavior for http://, ftp://, and file:// urls
  * http keepalive - faster downloads of many files by using only a single 
    connection
  * byte ranges - fetch only a portion of the file
  * reget - for a urlgrab, resume a partial download
  * progress meters - the ability to report download progress automatically, 
    even when using urlopen!
  * throttling - restrict bandwidth usage
  * retries - automatically retry a download if it fails. The number of retries
    and failure types are configurable.
  * authenticated server access for http and ftp
  * proxy support - support for authenticated http and ftp proxies
  * mirror groups - treat a list of mirrors as a single source, automatically 
    switching mirrors if there is a failure.

%files -n python2-%{oname}
%doc python2/README python2/LICENSE python2/ChangeLog python2/TODO
%{_bindir}/%{oname}
%{_libexecdir}/*
%{python2_sitelib}/%{oname}/
%{python2_sitelib}/*.egg-info
#=============================================================================

%package -n python3-%{oname}
Summary: A high-level cross-protocol url-grabber
Group:		Development/Python
BuildRequires: 	pkgconfig(python2)
BuildRequires: 	python3egg(pycurl)
BuildRequires: 	python3egg(setuptools)
Requires: 	python3egg(pycurl)

%description -n python3-%{oname}
A high-level cross-protocol url-grabber.

Using urlgrabber, data can be fetched in three basic ways:

  urlgrab(url) copy the file to the local filesystem
  urlopen(url) open the remote file and return a file object (like
  urllib2.urlopen)
  urlread(url) return the contents of the file as a string

When using these functions (or methods), urlgrabber supports the following 
features:

  * identical behavior for http://, ftp://, and file:// urls
  * http keepalive - faster downloads of many files by using only a single 
    connection
  * byte ranges - fetch only a portion of the file
  * reget - for a urlgrab, resume a partial download
  * progress meters - the ability to report download progress automatically, 
    even when using urlopen!
  * throttling - restrict bandwidth usage
  * retries - automatically retry a download if it fails. The number of retries
    and failure types are configurable.
  * authenticated server access for http and ftp
  * proxy support - support for authenticated http and ftp proxies
  * mirror groups - treat a list of mirrors as a single source, automatically 
    switching mirrors if there is a failure.

%files -n python3-%{oname}
%doc python3/README python3/LICENSE python3/ChangeLog python3/TODO
%{_bindir}/%{oname}
%{_libexecdir}/*
%{python3_sitelib}/%{oname}/
%{python3_sitelib}/*.egg-info
#=============================================================================

%prep
%setup -qc -n %{oname}-%{version}
mv %{oname}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
%py2_install
rm -Rf %{buildroot}/usr/share/doc/*
popd

pushd python3
%py3_install
rm -Rf %{buildroot}/usr/share/doc/*
#set python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_libexecdir}/urlgrabber-ext-down
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16685 |21mr|python-urllib3-1.26.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name urllib3

Summary:	Python 2 HTTP library
Name:		python-%{pypi_name}
Version:	1.26.12
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://urllib3.readthedocs.org/
Source0:	https://pypi.io/packages/source/u/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	ssl_match_hostname_py3.py
BuildArch:	noarch

%description
The urllib3 pypi_name is a powerful, sanity-friendly HTTP client for Python. It
offers some features that are missing from the Python standard libraries
(urllib and urllib2):
* Thread safety.
* Connection pooling.
* Client-side SSL/TLS verification.
* File uploads with multipart encoding.
* Helpers for retrying requests and dealing with HTTP redirects.
* Support for gzip and deflate encoding.
* Proxy support for HTTP and SOCKS.
The Python standard libraries  have little to do with each other. They were
designed to be independent and standalone, each solving a different scope of
problems, and urllib3 follows in a similar vein.
This package contains the python2 files.

%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:	Python 3 HTTP library
Group:		Development/Python
BuildRequires:	python2-setuptools
BuildRequires:	python2-six
BuildRequires:	pkgconfig(python2)
# For unittests
BuildRequires:	python2-mock
BuildRequires:	python2-nose
BuildRequires:	python2-tornado
Requires:	python2-six
Requires:	rootcerts

%description -n python2-%{pypi_name}
The urllib3 pypi_name is a powerful, sanity-friendly HTTP client for Python. It
offers some features that are missing from the Python standard libraries
(urllib and urllib2):
* Thread safety.
* Connection pooling.
* Client-side SSL/TLS verification.
* File uploads with multipart encoding.
* Helpers for retrying requests and dealing with HTTP redirects.
* Support for gzip and deflate encoding.
* Proxy support for HTTP and SOCKS.
The Python standard libraries  have little to do with each other. They were
designed to be independent and standalone, each solving a different scope of
problems, and urllib3 follows in a similar vein.
This package contains the python3 files.

%files -n python2-%{pypi_name}
%doc CHANGES.rst README.rst
%{py2_puresitedir}/*

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Python 3 HTTP library
Group:		Development/Python
BuildRequires:	python3-setuptools
BuildRequires:	python3-six
BuildRequires:	pkgconfig(python3)
# For unittests
BuildRequires:	python3-mock
BuildRequires:	python3-nose
BuildRequires:	python3-tornado
Requires:	python3-six
Requires:	rootcerts

%description -n python3-%{pypi_name}
The urllib3 pypi_name is a powerful, sanity-friendly HTTP client for Python. It
offers some features that are missing from the Python standard libraries
(urllib and urllib2):
* Thread safety.
* Connection pooling.
* Client-side SSL/TLS verification.
* File uploads with multipart encoding.
* Helpers for retrying requests and dealing with HTTP redirects.
* Support for gzip and deflate encoding.
* Proxy support for HTTP and SOCKS.
The Python standard libraries  have little to do with each other. They were
designed to be independent and standalone, each solving a different scope of
problems, and urllib3 follows in a similar vein.
This package contains the python3 files.

%files -n python3-%{pypi_name}
%doc CHANGES.rst README.rst
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
#apply_patches

# Prepare python3 dirs
cp -a . %{py3dir}


%build
# Build first the python2 stuff...
%{__python2} setup.py build
# ... next the python3 stuff
pushd %{py3dir}
	%{__python3} setup.py build
popd


%install
################
# Install first the python2 stuff...
%{__python2} setup.py install --skip-build --root %{buildroot}

rm -rf %{buildroot}/%{py2_puresitedir}/urllib3/packages/six.py*
rm -rf %{buildroot}/%{py2_puresitedir}/urllib3/packages/ssl_match_hostname/

mkdir -p %{buildroot}/%{py2_puresitedir}/urllib3/packages/
ln -s ../../six.py %{buildroot}/%{py2_puresitedir}/urllib3/packages/six.py
#ln -s ../../six.pyc %{buildroot}/%{py2_puresitedir}/urllib3/packages/six.pyc
#ln -s ../../six.pyo %{buildroot}/%{py2_puresitedir}/urllib3/packages/six.pyo
ln -s ../../backports/ssl_match_hostname %{buildroot}/%{py2_puresitedir}/urllib3/packages/ssl_match_hostname

# dummyserver is part of the unittest framework
rm -rf %{buildroot}%{py2_puresitedir}/dummyserver

###############
# ... next the python3 stuff
pushd %{py3dir}
	%{__python3} setup.py install --skip-build --root %{buildroot}

	rm -rf %{buildroot}/%{py3_puresitedir}/urllib3/packages/six.py*
	rm -rf %{buildroot}/%{py3_puresitedir}/urllib3/packages/ssl_match_hostname/

	mkdir -p %{buildroot}/%{py3_puresitedir}/urllib3/packages/
	ln -s ../../six.py %{buildroot}/%{py3_puresitedir}/urllib3/packages/six.py
#	ln -s ../../six.pyc %{buildroot}/%{py3_puresitedir}/urllib3/packages/six.pyc
#	ln -s ../../six.pyo %{buildroot}/%{py3_puresitedir}/urllib3/packages/six.pyo
	cp %{SOURCE1} %{buildroot}/%{py3_puresitedir}/urllib3/packages/ssl_match_hostname.py

# dummyserver is part of the unittest framework
	rm -rf %{buildroot}%{py3_puresitedir}/dummyserver
popd


%pretrans -p <lua>
path = "%{py2_puresitedir}/urllib3/packages/ssl_match_hostname"
st = posix.stat(path)
if st and st.type == "directory" then
  status = os.rename(path, path .. ".rpmmoved")
  if not status then
    suffix = 0
    while not status do
      suffix = suffix + 1
      status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
    end
    os.rename(path, path .. ".rpmmoved")
  end
end

%pretrans -p <lua> -n python3-%{pypi_name}
path = "%{py3_puresitedir}/urllib3/packages/ssl_match_hostname"
st = posix.stat(path)
if st and st.type == "directory" then
  status = os.rename(path, path .. ".rpmmoved")
  if not status then
    suffix = 0
    while not status do
      suffix = suffix + 1
      status = os.rename(path .. ".rpmmoved", path .. ".rpmmoved." .. suffix)
    end
    os.rename(path, path .. ".rpmmoved")
  end
end

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16686 |21mr|python-urllib-gssapi-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global sname urllib-gssapi
%global s_name urllib_gssapi

Name:		python-%{sname}
Version:	1.0.2
Release:	1
Summary:	A GSSAPI/SPNEGO authentication handler for urllib/urllib2
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/pythongssapi/%{sname}
Source0:	https://github.com/pythongssapi/%{sname}/releases/download/v%{version}/%{s_name}-%{version}.tar.gz
BuildArch:	noarch

# Patches

BuildRequires:	git-core
BuildRequires:	python3-devel
BuildRequires:	python3-gssapi
BuildRequires:	python3-setuptools

%global _description\
urllib_gssapi is a backend for urllib.  It provides GSSAPI/SPNEGO\
authentication to HTTP servers.  urllib_gssapi replaces urllib_kerberos and\
behaves in the same ways.

%description %_description

#------------------------------------------------------------------
%package -n python3-%{sname}
Summary:	%summary
Group:		Development/Python
Requires:	python3-gssapi

%description -n python3-%{sname} %_description

%files -n python3-%{sname}
%doc README.md
%license COPYING
%{python3_sitelib}/%{s_name}*

#------------------------------------------------------------------

%prep
%autosetup -S git -n %{s_name}-%{version}

%build
%py3_build


%install
%py3_install

%check
%{__python3} -m unittest



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16687 |21mr|python-utmp-0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        A python module for working with utmp
Name:           python-utmp
Version:        0.9
Release:        1
Group:          Development/Python
License:        Copyright only
Url:            http://kassiopeia.juls.savba.sk/~garabik/software/python-utmp/
Source0:        http://kassiopeia.juls.savba.sk/~garabik/software/python2-utmp/python-utmp_%{version}.orig.tar.gz
BuildRequires:  python3-devel

%description
This package provides 3 python modules to access utmp and wtmp
records.  utmpaccess is lowlevel module wrapping glibc functions,
UTMPCONST provides useful constants, and utmp is module build on top
of utmpaccess module, providing object oriented interface.

%package -n python3-utmp
Summary:        A python module for working with utmp

%description -n python3-utmp
This package provides 3 python modules to access utmp and wtmp
records.  utmpaccess is lowlevel module wrapping glibc functions,
UTMPCONST provides useful constants, and utmp is module build on top
of utmpaccess module, providing object oriented interface.

%prep
%autosetup -p1

%build
%make -f Makefile.glibc PYTHONVER=%{python3_version} PYTHONPKGVER=%{py3_ver} PYTHONDIR='$(DESTDIR)%{py3_platsitedir}/'

%install
%makeinstall_std -f Makefile.glibc PYTHONVER=%{python3_ver} PYTHONDIR='$(DESTDIR)%{py3_platsitedir}/'

%files -n python3-utmp
%doc README COPYING TODO examples/*
%{py3_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16688 |21mr|python-validate-email-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.2
%global pypi_name validate-email

Name:           python-%{pypi_name}
Version:        1.3
Release:        2
Summary:        Validate_email verify if an email address is valid and really exists
Group:          Development/Python
License:        LGPL
URL:            http://github.com/syrusakbary/validate_email
Source0:        https://files.pythonhosted.org/packages/source/v/%{pypi_name}/validate_email-%{version}.tar.gz
BuildArch:      noarch

BuildRequires:  python2-devel
BuildRequires:  python2dist(setuptools)

BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description
 Validate_email Validate_email is a package for Python that check if an email
is valid, properly formatted and really exists.INSTALLATION First, you must
do:: pip install validate_emailExtra For check the domain mx and verify email
exits you must have the pyDNS package installed:: pip install pyDNSBasic
usage:: from validate_email import validate_email is_valid...

%package -n     python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python2-%{pypi_name}}

%description -n python2-%{pypi_name}
 Validate_email Validate_email is a package for Python that check if an email
is valid, properly formatted and really exists.INSTALLATION First, you must
do:: pip install validate_emailExtra For check the domain mx and verify email
exits you must have the pyDNS package installed:: pip install pyDNSBasic
usage:: from validate_email import validate_email is_valid...

%package -n     python3-%{pypi_name}
Summary:        %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

%description -n python3-%{pypi_name}
 Validate_email Validate_email is a package for Python that check if an email
is valid, properly formatted and really exists.INSTALLATION First, you must
do:: pip install validate_emailExtra For check the domain mx and verify email
exits you must have the pyDNS package installed:: pip install pyDNSBasic
usage:: from validate_email import validate_email is_valid...


%prep
%autosetup -n validate_email-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py2_build
%py3_build

%install
# Must do the default python version install last because
# the scripts in /usr/bin are overwritten with every setup.py install.
%py2_install
%py3_install

%files -n python2-%{pypi_name}
%license LICENSE
%doc README.rst
%{python2_sitelib}/validate_email.py*
%{python2_sitelib}/validate_email-%{version}-py?.?.egg-info

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/validate_email.py*
%{python3_sitelib}/validate_email-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16689 |21mr|python-vine-5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.3.1
%global pypi_name vine

Name:           python-%{pypi_name}
Version:	5.0.0
Release:	1
Summary:        Promises, promises, promises
Group:          Development/Python
License:        BSD
URL:            http://github.com/celery/vine
Source0:	https://files.pythonhosted.org/packages/66/b2/8954108816865edf2b1e0d24f3c2c11dfd7232f795bcf1e4164fb8ee5e15/vine-5.0.0.tar.gz
BuildArch:      noarch

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(mock)
BuildRequires:  python3dist(case)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(sphinx)
BuildRequires:  python3dist(sphinx-celery)

%description
Python Promises.

%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name}
Python Promises.

%package -n python-%{pypi_name}-doc
Summary:        Vine documentation

%description -n python-%{pypi_name}-doc
Documentation for vine

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

# generate html docs
PYTHONPATH=${PWD} sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

%install
%py3_install

%check
python3 setup.py test

%files -n python3-%{pypi_name}
%doc LICENSE
%doc docs/templates/readme.txt README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

%files -n python-%{pypi_name}-doc
%doc html
%doc LICENSE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16690 |21mr|python-virtkey-0.63.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           python-virtkey
Version:        0.63.0
Release:        2
Summary:        Python extension for emulating keypresses and getting current keyboard layout

Group:          Development/Python
License:        GPLv2+
URL:            https://launchpad.net/virtkey
Source0:        http://launchpad.net/virtkey/0.63/0.63.0/+download/virtkey-%{version}.tar.gz
Patch0:         virtkey-gdk-pixbuf-headers.patch

BuildRequires:  python2-devel
BuildRequires:  libxtst-devel
BuildRequires:  pkgconfig(gtk+-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(xkbfile)

%description
Python-virtkey is a python2 extension for emulating keypresses and getting
current keyboard layout.

%package -n python2-virtkey
%py2_migration_meta python2-virtkey
Summary:        Python extension for emulating keypresses and getting current keyboard layout

%description -n python2-virtkey
Python-virtkey is a python extension for emulating keypresses and getting
current keyboard layout.


%prep
%setup -qn virtkey-%{version}

%build
CFLAGS="%{optflags}" %py2_build


%install
python2 setup.py install --root %{buildroot}


%files -n python2-virtkey
#no documentation included in upstream tarball
%{py2_platsitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16691 |21mr|python-virtualenv-20.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	virtualenv
%bcond_with python2

Name:		python-%{module}
Version:	20.7.2
Release:	1
Summary:	Virtual Python Environment builder
Group:		Development/Python
License:	MIT
URL:		https://www.virtualenv.org/
Source0:	https://pypi.io/packages/source/v/%{module}/virtualenv-%{version}.tar.gz
BuildArch:	noarch

%description
virtualenv is a tool to create isolated Python environments.

%if %{with python2}
%package -n     python2-%{module}
Summary:        Tool to create isolated Python 3 environments
Group:          Development/Python
BuildRequires:	pythonegg(setuptools)
BuildRequires:	python2-setuptools_scm
Requires:       pythonegg(setuptools)
Requires:       python2-pkg-resources

%description -n python2-%{module}
virtualenv is a tool to create isolated Python 3 environments. virtualenv
is a successor to workingenv, and an extension of virtual-python. It is
written by Ian Bicking, and sponsored by the Open Planning Project. It is
licensed under an MIT-style permissive license
%endif

%package -n     python3-%{module}
Summary:        Tool to create isolated Python 3 environments
Group:          Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3-setuptools_scm
Requires:       python3egg(setuptools)
Requires:       python3-pkg-resources


%description -n python3-%{module}
virtualenv is a tool to create isolated Python 3 environments. virtualenv
is a successor to workingenv, and an extension of virtual-python. It is
written by Ian Bicking, and sponsored by the Open Planning Project. It is
licensed under an MIT-style permissive license

%prep
%setup -q -n %{module}-%{version}

cp -a . %{py3dir}

%build
%if %{with python2}
%py2_build
rm -f build/sphinx/html/.buildinfo
%endif

pushd %{py3dir}
%py3_build
popd

%install
%if %{with python2}
%py2_install
mv %{buildroot}/%{_bindir}/virtualenv %{buildroot}/%{_bindir}/py2-virtualenv
%endif

pushd %{py3dir}
%py3_install
popd

%if %{with python2}
%files -n python2-%{module}
%doc PKG-INFO
%{py2_puresitedir}/virtualenv*
%{_bindir}/py2-virtualenv
%endif

%files -n python3-%{module}
%doc PKG-INFO
%{_bindir}/virtualenv
%{py3_puresitedir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16692 |21mr|python-vobject-0.9.6.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname  vobject

Name:          python-%{oname}
Version:       0.9.6.1
Release:       5
Summary:       A python library for manipulating vCard and vCalendar files
Group:         Development/Python
License:       ASL 2.0
Url:           http://eventable.github.io/vobject/
Source0:       https://pypi.io/packages/source/v/%{oname}/%{oname}-%{version}.tar.gz
BuildArch:     noarch
BuildRequires: pkgconfig(python3)
BuildRequires: python3egg(setuptools)
BuildRequires: python3egg(python-dateutil) >= 2.4.0
Requires:      python3egg(setuptools)

%description
VObject is intended to be a full featured python library for parsing and
generating vCard and vCalendar files.

#===========================================================================

%package -n         python3-%{oname}
Summary:            A python library for manipulating vCard and vCalendar files
Requires:           python3-dateutil
Requires:           python3-setuptools
BuildRequires:      python3-devel
BuildRequires:      python3-setuptools
BuildRequires:      python3-dateutil

%description -n python3-%{oname}
VObject is intended to be a full featured python library for parsing and
generating vCard and vCalendar files.

%files -n python3-%{oname}
%doc README.md
%{python3_sitelib}/%{oname}/
%{python3_sitelib}/%{oname}-%{version}-*
%{_bindir}/change_tz
%{_bindir}/ics_diff
#===========================================================================

%prep
%setup -q -n %{oname}-%{version}

# Remove bundled egg-info
rm -rf %{oname}.egg-info

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16693 |21mr|python-voluptuous-0.12.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname voluptuous

Name:       python-%{srcname}
Version:    0.12.1
Release:    2
Summary:    A Python data validation library
Group:      Development/Python
License:    BSD
URL:        http://github.com/alecthomas/voluptuous
Source0:    https://github.com/alecthomas/voluptuous/archive/%{srcname}-%{version}.tar.gz

BuildArch: noarch
BuildRequires: python3-devel

%description
Voluptuous, despite the name, is a Python data validation library. It is
primarily intended for validating data coming into Python as JSON, YAML, etc.


%package -n python3-%{srcname}
Summary: A Python data validation library
BuildRequires: python3-devel python3-setuptools

%description -n python3-%{srcname}
Voluptuous, despite the name, is a Python data validation library. It is
primarily intended for validating data coming into Python as JSON, YAML, etc.

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%doc README.md COPYING
%dir %{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}/*.py*
%{python3_sitelib}/%{srcname}/__pycache__/*.py*
%{python3_sitelib}/%{srcname}-%{version}-py%{py3_ver}.egg-info/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16694 |21mr|python-waitress-2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname waitress

%global _docdir_fmt %{name}

Name:           python-%{srcname}
Version:	2.1.2
Release:	1
Summary:        Waitress WSGI server
Group:		Development/Python
License:        ZPLv2.1
URL:            https://github.com/Pylons/%{srcname}
Source0:	https://files.pythonhosted.org/packages/72/83/c3de9799e2305898b02ea67bcd125ad06f271e2a82cc86fe66b7bf4e6f63/waitress-2.1.2.tar.gz

BuildArch:      noarch

# No docs as we don't have packaged pylons theme for sphinx

%global _description \
Waitress is meant to be a production-quality pure-Python WSGI server with\
very acceptable performance. It has no dependencies except ones which live\
in the Python standard library. It runs on CPython on Unix and Windows under\
Python 2.6+ and Python 3.3+. It is also known to run on PyPy 1.6.0+ on UNIX.\
It supports HTTP/1.0 and HTTP/1.1.

%description %{_description}

%package -n python3-%{srcname}
Summary:        Waitress WSGI server
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-nose
BuildRequires:  python3-coverage

%description -n python3-%{srcname} %{_description}

Python 3 version.

%prep
%autosetup -n %{srcname}-%{version}

%build
%py3_build

%install
%py3_install

%files -n python3-%{srcname}
%license COPYRIGHT.txt LICENSE.txt
%doc README.rst CHANGES.txt
%{_bindir}/waitress-serve
%{python3_sitelib}/%{srcname}/
%{python3_sitelib}/%{srcname}-*.egg-info/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16695 |21mr|python-warlock-1.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		python-warlock
Version:	1.3.3
Release:	2
Summary:	Python object model built on top of JSON schema
Group:          Development/Python
License:	ASL 2.0
URL:		https://pypi.org/project/warlock/
Source0:	https://pypi.io/packages/source/w/warlock/warlock-%{version}.tar.gz
BuildArch:	noarch

%description
Build self-validating python objects using JSON schemas.

%package -n     python3-warlock
Summary:        Python 3 object model built on top of JSON schema
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:	python3egg(jsonpatch)
BuildRequires:  python3dist(repoze.lru)
BuildRequires:	python3egg(jsonschema)
Requires:	python3egg(jsonpatch)
Requires:	python3egg(jsonschema)

%description -n python3-warlock
Build self-validating python objects using JSON schemas.

%prep
%setup -q -n warlock-%{version}

# Remove bundled egg-info
rm -rf warlock.egg-info

# Let RPM handle deps
sed -i '/setup_requires/d; /install_requires/d; /dependency_links/d' setup.py
rm -f requirements.txt

%build
%py3_build

%check
python3 setup.py test

%install
%py3_install

%files -n python3-warlock
%doc README.md
%{py3_puresitedir}/warlock
%{py3_puresitedir}/warlock-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16696 |21mr|python-wcwidth-0.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module wcwidth

Name:           python-%{module}
Version:        0.2.5
Release:        2
Summary:        Measures number of terminal column cells of wide-character codes
Group:          Development/Python
License:        MIT
URL:            https://github.com/jquast/wcwidth
Source0:        %{pypi_source %{module} %{version}}
BuildArch:      noarch

%description
This library is mainly for those implementing a terminal emulator,
or programs that carefully produce output to be interpreted by one.

%package -n     python3-%{module}
Summary:        Measures number of terminal column cells of wide-character codes
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{module}
This library is mainly for those implementing a terminal emulator,
or programs that carefully produce output to be interpreted by one.

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build

%install
%py3_install 

%files -n python3-%{module}
%doc README.rst
%{py3_puresitedir}/%{module}
%{py3_puresitedir}/%{module}-*-py*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16697 |21mr|python-webcolors-1.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global module webcolors

Name:		python-%{module}
Version:	1.11.1
Release:	1
Summary:	A library for working with HTML and CSS color names and value formats
Group:		Development/Python
License:	BSD
URL:		https://github.com/ubernostrum/webcolors
Source0:	https://pypi.python.org/packages/source/w/%{module}/%{module}-%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(flake8)
BuildRequires:  python3egg(nose)

%description
A library for working with color names and color value formats defined by the
HTML and CSS specifications for use in documents on the Web.

Support is included for the following formats (RGB colorspace only; conversion
to/from HSL can be handled by the colorsys module in the Python standard
library):
* Specification-defined color names
* Six-digit hexadecimal
* Three-digit hexadecimal
* Integer rgb() triplet
* Percentage rgb() triplet

#-----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A library for working with HTML and CSS color names and value formats
Group:		Development/Python

%description -n python3-%{module}
A library for working with color names and color value formats defined by the
HTML and CSS specifications for use in documents on the Web.

Support is included for the following formats (RGB colorspace only; conversion
to/from HSL can be handled by the colorsys module in the Python standard
library):
* Specification-defined color names
* Six-digit hexadecimal
* Three-digit hexadecimal
* Integer rgb() triplet
* Percentage rgb() triplet

%files -n python3-%{module}
%doc PKG-INFO LICENSE README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{module}*

#-----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%py3_build
#make -C docs html

%install
%py3_install

%check
nosetests-%{python3_version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16698 |21mr|python-webencodings-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Created by pyp2rpm-3.2.1
%global pypi_name webencodings

Name:           python-%{pypi_name}
Version:	0.5.1
Release:	1
Summary:        Character encoding aliases for legacy web content
Group:          Development/Python

License:        BSD
URL:            https://github.com/SimonSapin/python-webencodings
Source0:	https://files.pythonhosted.org/packages/0b/02/ae6ceac1baeda530866a85075641cec12989bd8d31af6d5ab4a3e8c92f47/webencodings-0.5.1.tar.gz
BuildArch:      noarch

BuildRequires:  python2-devel
BuildRequires:  python2-setuptools

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description
python2-webencodings
===================

This is a Python implementation of the
`WHATWG Encoding standard
<http://encoding.spec.whatwg.org/>`_.

* Latest
documentation: http://packages.python.org/webencodings/
* Source code and issue
tracker:
  https://github.com/gsnedders/python2-webencodings
* PyPI releases:
http://pypi.python.org/pypi/webencodings

%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:        Character encoding aliases for legacy web content

%description -n python2-%{pypi_name}
python-webencodings
===================

This is a Python implementation of the
`WHATWG Encoding standard
<http://encoding.spec.whatwg.org/>`_.

* Latest
documentation: http://packages.python.org/webencodings/
* Source code and issue
tracker:
  https://github.com/gsnedders/python-webencodings
* PyPI releases:
http://pypi.python.org/pypi/webencodings


%package -n     python3-%{pypi_name}
Summary:        %{summary}

%description -n python3-%{pypi_name}
python2-webencodings
===================

This is a Python implementation of the
`WHATWG Encoding standard
<http://encoding.spec.whatwg.org/>`_.

* Latest
documentation: http://packages.python.org/webencodings/
* Source code and issue
tracker:
  https://github.com/gsnedders/python2-webencodings
* PyPI releases:
http://pypi.python.org/pypi/webencodings


%prep
%setup -qn %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py2_build
%py3_build

%install
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install.
%py3_install

%py2_install


%files -n python2-%{pypi_name}
%doc README.rst
%{py2_puresitedir}/%{pypi_name}
%{py2_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

%files -n python3-%{pypi_name}
%doc README.rst
%{py3_puresitedir}/%{pypi_name}
%{py3_puresitedir}/%{pypi_name}-%{version}-py?.?.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16699 |21mr|python-webob-1.8.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarname	WebOb

Summary:	WSGI request and response object for Python

Name:		python-webob
Version:	1.8.7
Release:	1
Source0:	https://files.pythonhosted.org/packages/c7/45/ee5f034fb4ebe3236fa49e5a4fcbc54444dd22ecf33079cf56f9606d479d/WebOb-1.8.7.tar.gz
License:	MIT
Group:		Development/Python
Url:		http://pythonpaste.org/webob/
BuildArch:	noarch

%description
WebOb provides wrappers around the WSGI request environment, and an
object to help create WSGI responses.

The objects map much of the specified behavior of HTTP, including
header parsing and accessors for other standard parts of the
environment.

%package -n python3-webob
Summary:	WSGI request and response object for Python
Group:		Development/Python
BuildRequires:	python3-setuptools

%description -n python3-webob
WebOb provides wrappers around the WSGI request environment, and an
object to help create WSGI responses.

The objects map much of the specified behavior of HTTP, including
header parsing and accessors for other standard parts of the
environment.


%prep
%setup -q -n %{tarname}-%{version}

# Disable performance_test, which requires repoze.profile, which isn't
# in Fedora.
%{__rm} -f tests/performance_test.py
# Remove an empty unneeded file that is there for scm purposes.
rm docs/_static/.empty

%build
%py3_build

%install
%py3_install

%files -n python3-webob
%license docs/license.txt
%doc docs/*
%{python3_sitelib}/webob/
%{python3_sitelib}/WebOb-%{version}-py%{python3_version}.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16700 |21mr|python-websocket-client-1.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	pypi_name	websocket-client

Name:		python-%{pypi_name}
Version:	1.3.3
Release:	1
Summary:	WebSocket client for python. hybi13 is supported
Source0:	%{pypi_source}
License:	LGPLv2
Group:		Development/Python
Url:		https://github.com/liris/websocket-client
BuildArch:	noarch

%description
python-websocket-client module is WebSocket client for python. This
provides the low level APIs for WebSocket. All APIs are the synchronous
functions.
python-websocket-client supports only hybi-13.

#-------------------------------------------------------------------

%package -n     python3-%{pypi_name}
Summary:        WebSocket client for python. hybi13 is supported
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(websockets)
BuildRequires:  python3egg(six)

%description -n python3-%{pypi_name}
WebSocket client for python. hybi13 is supported

%files -n python3-%{pypi_name}
%doc ChangeLog
%doc README*
%{_bindir}/wsdump
%{py3_puresitedir}/websocket*

#-------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16701 |21mr|python-websockets-10.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name websockets

# gi-find-deps.sh is very slow but is not needed here, it may be installed locally
%define __typelib_path %{nil}

Name:           python-%{pypi_name}
Version:        10.3
Release:        1
Summary:        An implementation of the WebSocket Protocol for python with asyncio
License:        BSD
Group:          Development/Python
URL:            https://github.com/aaugustin/websockets
Source0:        https://github.com/aaugustin/websockets/archive/%{version}/%{pypi_name}-%{version}.tar.gz
BuildRequires:  gcc

%global _description \
websockets is a library for developing WebSocket servers and clients in\
Python. It implements RFC 6455 with a focus on correctness and simplicity. It\
passes the Autobahn Testsuite.\
\
Built on top of Python’s asynchronous I/O support introduced in PEP 3156, it\
provides an API based on coroutines, making it easy to write highly concurrent\
applications.

%description %{_description}

#-------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        %{summary}
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{pypi_name}
%{_description}

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitearch}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/%{pypi_name}

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version} -p1
# Remove upstream's egg-info
rm -vrf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install
# Remove installed C file
rm -vf %{buildroot}%{python3_sitearch}/%{pypi_name}/speedups.c

%check
# Skip tests because they fail on Python 3.8. See: https://github.com/aaugustin/websockets/issues/648
# WEBSOCKETS_TESTS_TIMEOUT_FACTOR=100 %%{__python3} setup.py test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16702 |21mr|python-websockify-0.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name websockify

Name:           python-%{pypi_name}
Version:	0.10.0
Release:	1
Group:          Development/Python
Summary:        WebSockets support for any application/server

License:        MIT
URL:            https://pypi.python.org/pypi/%{pypi_name}
Source0:	https://files.pythonhosted.org/packages/1e/2c/ac19ddaeb9aa76b6ce6678f073008a4123050001a812a5d173189fc4440a/websockify-0.10.0.tar.gz

BuildArch:      noarch

%description
WebSockets support for any application/server

#-----------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:        WebSockets support for any application/server
Group:          Development/Python

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-%{pypi_name}
WebSockets support for any application/server

%files -n python3-%{pypi_name}
%{_bindir}/websockify
%{python3_sitelib}/%{pypi_name}*

#-----------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16703 |21mr|python-webtest-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_tests 0

Name:           python-webtest
Version:	3.0.0
Release:	1
Summary:        Helper to test WSGI applications
Group:		Development/Python
License:        MIT
URL:            https://github.com/Pylons/webtest
Source0:        https://github.com/Pylons/webtest/archive/%{version}.tar.gz

BuildArch:      noarch

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-nose

%if 0%{?with_tests}
BuildRequires:  python3-beautifulsoup4
BuildRequires:  python3-paste-deploy
BuildRequires:  python3-pyquery
BuildRequires:  python3-six
BuildRequires:  python3-waitress
BuildRequires:  python3-webob
BuildRequires:  python3-WSGIProxy2
BuildRequires:  python3-pylons-sphinx-themes
%endif

%global _description\
WebTest wraps any WSGI application and makes it easy to send test\
requests to that application, without starting up an HTTP server.\
\
This provides convenient full-stack testing of applications written\
with any WSGI-compatible framework.

%description %_description

%package -n python3-webtest
Summary:        Helper to test WSGI applications

Requires:       python3-beautifulsoup4
Requires:       python3-six
Requires:       python3-waitress
Requires:       python3-webob

%description -n python3-webtest
WebTest wraps any WSGI application and makes it easy to send test
requests to that application, without starting up an HTTP server.

This provides convenient full-stack testing of applications written
with any WSGI-compatible framework.


%prep
%setup -q -n webtest-%{version}

# Remove bundled egg info if it exists.
rm -rf *.egg-info

find tests -type f -exec sed -i "s|import mock|from unittest import mock|" {} \;

%build
%py3_build
# remove files not needed in documentation
rm -f docs/Makefile docs/conf.py docs/changelog.rst
cp -a CHANGELOG.rst docs/

%install
%{__rm} -rf %{buildroot}
%py3_install


%if 0%{?with_tests}
%check
PYTHONPATH=$(pwd) nosetests-%{python3_version}
%endif

%files -n python3-webtest
%doc docs/*
%{python3_sitelib}/webtest
%{python3_sitelib}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16704 |21mr|python-werkzeug-2.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname Werkzeug
%global modname werkzeug

Name:           python-%{modname}
Version:        2.2.2
Release:        1
Summary:        Comprehensive WSGI web application library
Group:          Development/Python

License:        BSD
URL:            https://werkzeug.palletsprojects.com
Source0:        %{pypi_source}

BuildArch:      noarch

%global _description %{expand:
Werkzeug
========

Werkzeug started as simple collection of various utilities for WSGI
applications and has become one of the most advanced WSGI utility
modules.  It includes a powerful debugger, full featured request and
response objects, HTTP utilities to handle entity tags, cache control
headers, HTTP dates, cookie handling, file uploads, a powerful URL
routing system and a bunch of community contributed addon modules.

Werkzeug is unicode aware and does not enforce a specific template
engine, database adapter or anything else. It does not even enforce
a specific way of handling requests and leaves all that up to the
developer. It is most useful for end user applications which should work
on as many server environments as possible (such as blogs, wikis,
bulletin boards, etc.).}

%description %{_description}

#-----------------------------------------------------
%package -n python3-%{modname}
Summary:        %{summary}
Group:          Development/Python
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)

%description -n python3-%{modname} %{_description}

%files -n python3-%{modname}
%license LICENSE.rst
%doc CHANGES.rst README.rst
%{python3_sitelib}/%{srcname}-*.egg-info/
%{python3_sitelib}/%{modname}/

#-----------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}
find examples/ -type f -name '*.png' -executable -print -exec chmod -x "{}" +

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16705 |21mr|python-wheel-0.37.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	wheel
%bcond_with	tests

Name:		python-%{pypi_name}
Version:	0.37.0
Release:	1
Summary:	A built-package format for Python
Group:		Development/Python
License:	MIT
URL:		https://github.com/pypa/wheel
Source0:        https://github.com/pypa/%{pypi_name}/archive/%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)

#if %%{with tests}
#BuildRequires:	python2-pytest
#BuildRequires:	python2-jsonschema
#BuildRequires:	python2-keyring
#BuildRequires:	python2-py
#endif

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
%if %{with tests}
BuildRequires:	python3egg(pytest)
BuildRequires:	python3egg(jsonschema)
BuildRequires:	python3egg(keyring)
BuildRequires:	python3egg(py)
%endif


%description
A built-package format for Python.

A wheel is a ZIP-format archive with a specially formatted filename and the
.whl extension. It is designed to contain all the files for a PEP 376
compatible install in a way that is very close to the on-disk format.

#=========================================================================
%package -n python2-%{pypi_name}
%py2_migration_meta python2-%{pypi_name}
Summary:	A built-package format for Python
Group:		Development/Python

%description -n python2-%{pypi_name}
A built-package format for Python.

A wheel is a ZIP-format archive with a specially formatted filename and the
.whl extension. It is designed to contain all the files for a PEP 376
compatible install in a way that is very close to the on-disk format.

%files -n python2-%{pypi_name}
%doc python2/LICENSE.txt python2/README.rst
%{_bindir}/wheel
%{python2_sitelib}/%{pypi_name}*
#=========================================================================
%package -n     python3-%{pypi_name}
Summary:        A built-package format for Python
Group:          Development/Python

%description -n python3-%{pypi_name}
A built-package format for Python.

A wheel is a ZIP-format archive with a specially formatted filename and the
.whl extension. It is designed to contain all the files for a PEP 376
compatible install in a way that is very close to the on-disk format.

This is package contains Python 3 version of the package.

%files -n python3-%{pypi_name}
%doc python3/LICENSE.txt python3/README.rst
%{_bindir}/python3-wheel
%{python3_sitelib}/%{pypi_name}*
#=========================================================================
%prep
%setup -qc
mv  %{pypi_name}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd


%install
# Must do the subpackages' install first because the scripts in /usr/bin are
# overwritten with every setup.py install (and we want the python2 version
# to be the default for now).
pushd python3
%py3_install
popd
pushd %{buildroot}%{_bindir}
for f in $(ls); do mv $f python3-$f; done
popd

pushd python2
%py2_install
popd

%if %{with tests}
%check
#pushd python2
# remove setup.cfg that makes pytest require pytest-cov (unnecessary dep)
#rm setup.cfg
#py.test --ignore build
#popd

pushd python3
rm setup.cfg
py.test-%{python3_version} --ignore build
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16706 |21mr|python-winrm-0.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname winrm

Summary:	Python libraries for interacting with windows remote management
Name:		python-%{srcname}
Version:	0.4.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://pypi.python.org/pypi/pywinrm
Source0:	https://github.com/diyan/pywinrm/archive/v%{version}/%{srcname}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3dist(setuptools)
#BuildRequires:	python3dist(pytest)
#BuildRequires:	python3dist(mock)
#BuildRequires:	python3dist(xmltodict)
#BuildRequires:	python3dist(requests) >= 2.9.1
BuildArch:	noarch

%description
This has the python libraries for interacting with Windows Remote Management.

#----------------------------------------------------------------------------

%package -n python3-%{srcname}
Summary:	Python libraries for interacting with windows remote management
Group:		Development/Python

%description -n python3-%{srcname}
This has the python libraries for interacting with Windows Remote Management.

Python 3 version.

%files -n python3-%{srcname}
%license LICENSE
%doc README.md CHANGELOG.md
%{python3_sitelib}/pywinrm-*.egg-info/
%{python3_sitelib}/winrm/

#----------------------------------------------------------------------------

%prep
%autosetup -n pywinrm-%{version}

%build
%py3_build

%install
%py3_install

%check
# test needed internet connection
#%%__python3 -m pytest -vv winrm/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16707 |21mr|python-wrapt-1.12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module wrapt
%global __provides_exclude _wrappers.so

Summary:	A Python module for decorators, wrappers and monkey patching
Name:		python-%{module}
Version:	1.12.1
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/GrahamDumpleton/%{module}
Source0:	https://github.com/GrahamDumpleton/%{module}/archive/%{version}.tar.gz
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(python3)

%description
The aim of the wrapt module is to provide a transparent object proxy
for Python, which can be used as the basis for the construction of
function wrappers and decorator functions.

%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	A Python module for decorators, wrappers and monkey patching

%description -n python2-%{module}
The aim of the wrapt module is to provide a transparent object proxy
for Python, which can be used as the basis for the construction of
function wrappers and decorator functions.

%files -n python2-%{module}
%doc README.rst LICENSE
%{py2_platsitedir}/%{module}
%{py2_platsitedir}/%{module}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:	A Python module for decorators, wrappers and monkey patching
Group:		Development/Python

%description -n python3-%{module}
The aim of the wrapt module is to provide a transparent object proxy
for Python, which can be used as the basis for the construction of
function wrappers and decorator functions.

%files -n python3-%{module}
%doc README.rst LICENSE
%{py3_platsitedir}/%{module}
%{py3_platsitedir}/%{module}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

# Remove bundled egg-info in case it exists
rm -rf %{module}.egg-info
cp -a . %{py3dir}

%build
pushd %{py3dir}
CFLAGS="%{optflags}" %__python3 setup.py build
popd

CFLAGS="%{optflags}" %__python2 setup.py build

%install
pushd %{py3dir}
%py3_install
popd

%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16708 |21mr|python-wsgi_intercept-1.9.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name wsgi_intercept


Name:           python-%{pypi_name}
Version:        1.9.2
Release:        1
Summary:        wsgi_intercept installs a WSGI application in place of a real URI for testing
Group:		Development/Python
License:        MIT
URL:            https://github.com/cdent/wsgi-intercept
Source0:        https://pypi.python.org/packages/source/w/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:      noarch

%description
It installs a WSGI application in place of a real URI for testing.
Testing a WSGI application normally involves starting a server at
a local host and port, then pointing your test code to that address.
Instead,this library lets you intercept calls to any specific host/port
combination and redirect them into a `WSGI application`_ importable by
your test program.

%package -n python-%{pypi_name}-doc
Summary:        Documentation for the wsgi-intercept module
BuildRequires:  python3-sphinx
BuildRequires:  python3-sphinx_rtd_theme

%description -n python-%{pypi_name}-doc
Documentation for the wsgi-intercept module

%package -n python3-%{pypi_name}
Summary:        wsgi_intercept installs a WSGI application in place of a real URI for testing
%{?python_provide:%python_provide python3-%{pypi_name}}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
# test dependencies
BuildRequires:  python3-pytest
BuildRequires:  python3-httplib2
BuildRequires:  python3-requests

Requires:       python3-setuptools

%description -n python3-%{pypi_name}
It installs a WSGI application in place of a real URI for testing.
Testing a WSGI application normally involves starting a server at
a local host and port, then pointing your test code to that address.
Instead,this library lets you intercept calls to any specific host/port
combination and redirect them into a `WSGI application`_ importable by
your test program.

%prep
%setup -q -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

# generate html docs
export PYTHONPATH="$( pwd ):$PYTHONPATH"
sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}

# fix file encoding
sed -i 's/\r$//' html/_static/jquery.js

%install
%py3_install

%check
%{__python3} setup.py test

%files -n python3-%{pypi_name}
%doc README
%license LICENSE
%{python3_sitelib}/%{pypi_name}*
%exclude %{python3_sitelib}/test

%files -n python-%{pypi_name}-doc
%license LICENSE
%doc html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16709 |21mr|python-wsme-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define srcname wsme
%define srcname_cap WSME

Name:		python-%{srcname}
Version:	0.11.0
Release:	1
Summary:	Simplify the writing of REST APIs, and extend them with additional protocols
Group:		Development/Python
License:	ASL 2.0
URL:		https://pypi.python.org/pypi/wsme
Source:		https://pypi.io/packages/source/W/%{srcname_cap}/%{srcname_cap}-%{version}.tar.gz

BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(pbr)

BuildArch:      noarch

%description
Web Services Made Easy (WSME) simplifies the writing of REST web services by
providing simple yet powerful typing, removing the need to directly
manipulate the request and the response objects.

WSME can work standalone or on top of your favorite Python web
(micro)framework, so you can use both your preferred way of routing your REST
requests and most of the features of WSME that rely on the typing system like:

- Alternate protocols, including those supporting batch-calls
- Easy documentation through a Sphinx extension

WSME is originally a rewrite of TGWebServices with a focus on extensibility,
framework-independance and better type handling.

#-------------------------------------------------------------------------------
%package -n python3-%{srcname}
Summary:        Simplify the writing of REST APIs, and extend them with additional protocols

%description -n python3-%{srcname}
Web Services Made Easy (WSME) simplifies the writing of REST web services by
providing simple yet powerful typing, removing the need to directly
manipulate the request and the response objects.

WSME can work standalone or on top of your favorite Python web
(micro)framework, so you can use both your preferred way of routing your REST
requests and most of the features of WSME that rely on the typing system like:

- Alternate protocols, including those supporting batch-calls
- Easy documentation through a Sphinx extension

WSME is originally a rewrite of TGWebServices with a focus on extensibility,
framework-independance and better type handling.

%files -n python3-%{srcname}
%doc README.rst ChangeLog AUTHORS LICENSE
%{python3_sitelib}/%{srcname}
%{python3_sitelib}/%{srcname}ext
%{python3_sitelib}/%{srcname_cap}*

#-------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname_cap}-%{version}

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16710 |21mr|python-wxpython4-4.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkgname wxpython4
%global srcname wxPython
%bcond_with tests

#system provided sip disabled, needed unstable wxgtk >= 3.1 from contrib
%bcond_with sys_sip

%global sum New implementation of wxPython, a GUI toolkit for Python
%global desc \
wxPython4 is a is a new implementation of wxPython focused on improving speed,\
maintainability and extensibility. Just like "Classic" wxPython it wraps the\
wxWidgets C++ toolkit and provides access to the user interface portions of the\
wx API, enabling Python applications to have a GUI on Windows, Macs or Unix\
systems with a native look and feel and requiring very little (if any) platform\
specific code.

Name:		python-wxpython4
Version:	4.2.0
Release:	1
Summary:	%{sum}
Group:		Development/Python
# wxPython is licensed under the wxWidgets license. The only exception is
# the pubsub code in wx/lib/pubsub which is BSD licensed. Note: wxPython
# includes a bundled copy of wxWidgets in ext/wxWidgets which has a few
# bits of code that use other licenses. This source is not used in the
# Fedora build, except for the interface headers in ext/wxWidgets/interface
# and the doxygen build scripts.
License:	wxWidgets and BSD
URL:		https://www.wxpython.org/
Source0:	https://files.pythonhosted.org/packages/source/w/%{srcname}/%{srcname}-%{version}.tar.gz
# wxPython upstream uses a private sip module, wx.siplib, and bundles the
# siplib code. It's not possible to build this siplib because the source code
# for sipgen is not included. Thus we unbundle sip and the sip package builds
# a wx.siplib for us in Fedora.
Patch0:		wxPython-4.2.0-unbundle-sip.patch

BuildRequires:	doxygen
BuildRequires:	waf
BuildRequires:	wxgtku3.0-devel
BuildRequires:	python3-attrdict
# For tests
%if %{with tests}
BuildRequires:	x11-server-xvfb
BuildRequires:	python3-numpy
BuildRequires:	python3-pytest
BuildRequires:	python3-pytest-timeout
BuildRequires:	python3-pytest-xdist
BuildRequires:	python3-wx-siplib
%endif

%description %{desc}

#-------------------------------------------------------------------------

%package -n python3-%{pkgname}
Summary:	%{sum}
Group:		Development/Python
BuildRequires:	python3-devel
BuildRequires:	python3-pillow
BuildRequires:	python3-setuptools
BuildRequires:	python3-six
%if %{with sys_sip}
BuildRequires:	python3-sip4 >= 4.19.1
Requires:	python3-sip4-wx
%endif
Requires:	python3-pillow
Requires:	python3-six

%description -n python3-%{pkgname} %{desc}

%files -n python3-%{pkgname}
%license license/*
%{python3_sitearch}/*
%exclude %{python3_sitearch}/wx/*html2*
%exclude %{python3_sitearch}/wx/__pycache__/*html2*
%exclude %{python3_sitearch}/wx/*media*
%exclude %{python3_sitearch}/wx/__pycache__/*media*

#------------------------------------------------------------------

%package -n python3-%{pkgname}-media
Summary:	%{sum} (media module)
Group:		Development/Python
Requires:	python3-%{pkgname}%{?_isa} = %{version}-%{release}

%description -n python3-%{pkgname}-media %{desc}
This package provides the wx.media module.

%files -n python3-%{pkgname}-media
%{python3_sitearch}/wx/*media*
%{python3_sitearch}/wx/__pycache__/*media*

#------------------------------------------------------------------

%package -n python3-%{pkgname}-webview
Summary:	%{sum} (webview module)
Group:		Development/Python
Requires:	python3-%{pkgname}%{?_isa} = %{version}-%{release}

%description -n python3-%{pkgname}-webview %{desc}
This package provides the wx.html2 module.

%files -n python3-%{pkgname}-webview
%{python3_sitearch}/wx/*html2*
%{python3_sitearch}/wx/__pycache__/*html2*

#------------------------------------------------------------------

%package doc
Summary:	Documentation and samples for wxPython
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation, samples and demo application for wxPython.

%files doc
%doc docs demo samples
%license license/*

#------------------------------------------------------------------

%prep
%autosetup -n %{srcname}-%{version} -p1

%if %{without sys_sip}
#revert patch and use sip from wxpython
%patch0 -p1 -R
%endif

#remove internal sip
%if %{with sys_sip}
rm -rf sip/siplib
%endif

rm -rf wx/py/tests
rm -f docs/sphinx/_downloads/i18nwxapp/i18nwxapp.zip
cp -a wx/lib/pubsub/LICENSE_BSD_Simple.txt license
# Remove env shebangs from various files
sed -i -e '/^#!\//, 1d' demo/*.py{,w}
sed -i -e '/^#!\//, 1d' demo/agw/*.py
sed -i -e '/^#!\//, 1d' docs/sphinx/_downloads/i18nwxapp/*.py
sed -i -e '/^#!\//, 1d' samples/floatcanvas/*.py
sed -i -e '/^#!\//, 1d' samples/mainloop/*.py
sed -i -e '/^#!\//, 1d' samples/ribbon/*.py
sed -i -e '/^#!\//, 1d' wx/py/*.py
sed -i -e '/^#!\//, 1d' wx/tools/*.py
# Fix end of line encodings
sed -i 's/\r$//' docs/sphinx/_downloads/*.py
sed -i 's/\r$//' docs/sphinx/rest_substitutions/snippets/python/contrib/*.py
sed -i 's/\r$//' docs/sphinx/rest_substitutions/snippets/python/converted/*.py
sed -i 's/\r$//' docs/sphinx/_downloads/i18nwxapp/locale/I18Nwxapp.pot
sed -i 's/\r$//' docs/sphinx/make.bat
sed -i 's/\r$//' docs/sphinx/phoenix_theme/theme.conf
sed -i 's/\r$//' samples/floatcanvas/BouncingBall.py
# Remove spurious executable perms
chmod -x demo/*.py
chmod -x samples/mainloop/mainloop.py
chmod -x samples/printing/sample-text.txt
# Remove empty files
find demo -size 0 -delete
find docs/sphinx/rest_substitutions/snippets/python/converted -size 0 -delete
# Convert files to UTF-8
for file in demo/TestTable.txt docs/sphinx/_downloads/i18nwxapp/locale/I18Nwxapp.pot docs/sphinx/class_summary.pkl docs/sphinx/wx.1moduleindex.pkl; do
	iconv -f ISO-8859-1 -t UTF-8 -o $file.new $file && \
	touch -r $file $file.new && \
	mv $file.new $file
done

# Fix libdir otherwise additional wx libs cannot be found, fix default optimization flags
sed -i -e 's|/usr/lib|%{_libdir}|' -e 's|-O3|-O2|' buildtools/config.py
sed -i -e 's|/usr/lib|%{_libdir}|' -e 's|-O3|-O2|' etg/config.py

%build
%if %{with sys_sip}
DOXYGEN=%{_bindir}/doxygen SIP=%{_bindir}/sip WAF=%{_bindir}/waf \
%{__python3} -u build.py dox touch etg --nodoc sip build_py --use_syswx --gtk3
%else
%__python3 build.py build --release --gtk3 --python=%__python3
%endif

%install
%py3_install

rm -f %{buildroot}%{_bindir}/*
# Remove locale files (they are provided by wxWidgets)
rm -rf %{buildroot}%{python3_sitearch}/wx/locale

%check
%if %{with tests}
SKIP_TESTS="'not (display_Tests or glcanvas_Tests or mousemanager_Tests or numdlg_Tests or uiaction_MouseTests or uiaction_KeyboardTests or unichar_Tests or valtext_Tests or test_frameRestore or test_grid_pi)'"
%if %{with sys_sip}
ln -sf %{python3_sitearch}/wx/siplib.so wx/siplib.so
%endif
xvfb-run -a %{__python3} build.py test --pytest_timeout=60 --extra_pytest="-k $SKIP_TESTS" --verbose || true
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16711 |21mr|python-x2go-0.6.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           python-x2go
Version:        0.6.1.3
Release:        1
Summary:        A client-side X2go API for the Python programming language
License:        GPLv3
Group:          Development/Python
Url:            http://www.x2go.org
Source0:        http://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz
BuildArch:      noarch

%description
Python X2Go provides a client-side X2go API for the Python programming
language.
Python X2go is mostly interesting for developers who want to incorporate X2go
client support into their own Python applications.
Python X2Go forms the core (heart) of the X2Go client-side applications:
PyHoca-GUI and PyHoca-CLI.

#============================================================================
%package -n python3-x2go
Summary:        A client-side X2go API for the Python programming language
Group:          Development/Python
Provides:	python3-x2go = %{EVRD}
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(python-xlib)
BuildRequires:  python3egg(gevent)
BuildRequires:  python3egg(greenlet)
BuildRequires:  python3egg(paramiko)

%description -n python3-x2go
Python X2Go provides a client-side X2go API for the Python programming
language.
Python X2go is mostly interesting for developers who want to incorporate X2go
client support into their own Python applications.
Python X2Go forms the core (heart) of the X2Go client-side applications:
PyHoca-GUI and PyHoca-CLI.

%files -n python3-x2go
%{python3_sitelib}/x2go
%{python3_sitelib}/x2go-%{version}*

#===========================================================================


%prep
%setup -q

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16712 |21mr|python-xattr-0.9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name xattr

Summary:	Extended attributes for python
Name:		python-xattr
Version:	0.9.9
Release:	1
License:	GPLv2+
Group:		Development/Python
Url:		http://pypi.python.org/pypi/xattr
Source0:	%{pypi_source}
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python2-cffi
BuildRequires:	python2-cparser
BuildRequires:	python2-ply
BuildRequires:	python2-setuptools
BuildRequires:	python3-cffi
BuildRequires:	python3-cparser
BuildRequires:	python3-ply
BuildRequires:	python3-setuptools

%description
python-xattr is a C extension module for Python which implements
extended attributes manipulation. It is a wrapper on top of the
attr C library - see attr(5).

#----------------------------------------------------------------------------

%package -n python2-xattr
Summary:	Extended attributes for Python3
Group:		Development/Python

%description -n python2-xattr
python-xattr is a C extension module for Python which implements
extended attributes manipulation. It is a wrapper on top of the
attr C library - see attr(5).

%files -n python2-xattr
%{py2_platsitedir}/xattr/
%{py2_platsitedir}/xattr-%{version}-py?.?.egg-info/

#----------------------------------------------------------------------------

%package -n python3-xattr
Summary:	Extended attributes for Python3
Group:		Development/Python
# /usr/bin/xattr was moved from python2 variant to here
# Obsoletes seems to be safe because python2-xattr had no consumers
Conflicts:	python2-xattr < 0.9.9
Obsoletes:	python2-xattr < 0.9.9

%description -n python3-xattr
python-xattr is a C extension module for Python which implements
extended attributes manipulation. It is a wrapper on top of the
attr C library - see attr(5).

%files -n python3-xattr
%{_bindir}/xattr
%{py3_platsitedir}/xattr/
%{py3_platsitedir}/xattr-%{version}-py?.?.egg-info/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
rm -rf xattr.egg-info
cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd

%py2_build

%install
%py2_install
pushd %{py3dir}
%py3_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16713 |21mr|python-xlib-0.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 client-side implementation
Name:		python-xlib
Version:	0.31
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/python-xlib/python-xlib
Source0:	https://github.com/%{name}/%{name}/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		python-xlib-drop-setuptools_scm.patch 
BuildArch:	noarch

%description
The Python X Library is a complete X11 client-side implementation,
written in pure Python. It can be used to write low-levelish X Windows
client applications in Python.

#--------------------------------------------------------------------
%package -n python2-xlib
Summary:	X11 client-side implementation
Group:		Development/Python
BuildRequires:	pythonegg(setuptools)
BuildRequires:	pkgconfig(python2)

%description -n python2-xlib
The Python X Library is a complete X11 client-side implementation,
written in pure Python. It can be used to write low-levelish X Windows
client applications in Python.

%files -n python2-xlib
%doc CHANGELOG.md LICENSE README.rst TODO
%{python2_sitelib}/Xlib
%{python2_sitelib}/*.egg-info

#--------------------------------------------------------------------
%package -n python3-xlib
Summary:	X11 client-side implementation
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)

%description -n python3-xlib
The Python X Library is a complete X11 client-side implementation,
written in pure Python. It can be used to write low-levelish X Windows
client applications in Python.

%files -n python3-xlib
%doc CHANGELOG.md LICENSE README.rst TODO
%{python3_sitelib}/Xlib
%{python3_sitelib}/*.egg-info

#---------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build
%py2_build

%install
%py3_install
%py2_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16714 |21mr|python-xlrd-2.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	xlrd

Summary:	Module for extracting data from MS Excel spreadsheets in Python

Name:		python-%{module}
Version:	2.0.1
Release:	2
Source0:	https://pypi.io/packages/source/x/xlrd/xlrd-%{version}.tar.gz
License:	BSD 
Group:		Development/Python 
Url:		https://pypi.python.org/pypi/xlrd/
BuildArch:	noarch
BuildRequires:	dos2unix

BuildRequires:	python3-devel
BuildRequires:	python3-setuptools

%description
Extract data from new and old Excel spreadsheets on any platform. 
Pure Python. Strong support for Excel dates. Unicode-aware.

#----------------------------------------------------------------------------

%package -n python3-%{module}
Summary:        Module for extracting data from MS Excel spreadsheets in Python
Group:          Development/Python

%description -n python3-%{module}
Extract data from new and old Excel spreadsheets on any platform. 
Pure Python. Strong support for Excel dates. Unicode-aware.

%files -n python3-%{module}
%{py3_puresitedir}/xlrd
%{py3_puresitedir}/*egg-info
%attr(755,root,root) %{_bindir}/runxlrd

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}
for i in */*.py *.html; do
  # fix missing files
  dos2unix $i || :
done
cp -a . %{py3dir}

%build
pushd %{py3dir}
%py3_build
popd

%install
pushd %{py3dir}
%py3_install
popd

# fix linting, add shebang,fix extentions in _bindir
(
  echo '#!%{__python3}'
  cat %{buildroot}%{_bindir}/runxlrd.py
) >> %{buildroot}%{_bindir}/runxlrd
rm -rf %{buildroot}%{_bindir}/runxlrd.py* \
  %{buildroot}/%{py2_puresitedir}/xlrd/doc \
  %{buildroot}/%{py2_puresitedir}/xlrd/examples \
  %{buildroot}/%{py3_puresitedir}/xlrd/doc \
  %{buildroot}/%{py3_puresitedir}/xlrd/examples 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16715 |21mr|python-xmldiff-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module	xmldiff
%define debug_package %{nil}

Name:		python-%{module}
Version:	2.4
Release:	1
Summary:	Python classes to diff XML files
URL:		https://github.com/Shoobx/xmldiff
Source0:	https://github.com/Shoobx/xmldiff/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
License:	GPL
Group:		File tools
BuildRequires:	pkgconfig(python2)
BuildRequires:	pythonegg(setuptools)

%description
XMLdiff is a python2 tool that figures out the differences between two similar
XML files, in the same way the diff utility does it for text files. It was
developed for the Narval project and could also be used as a library or as a
command line tool. It can work either with XML files or DOM trees

#============================================================================
%package -n python2-%{module}
%py2_migration_meta python2-%{module}
Summary:	Python classes to diff XML files
Group:		Development/Python

%description -n python2-%{module}
XMLdiff is a python2 tool that figures out the differences between two similar
XML files, in the same way the diff utility does it for text files. It was
developed for the Narval project and could also be used as a library or as a
command line tool. It can work either with XML files or DOM trees

%files -n python2-%{module}
%doc python2/CHANGES.rst python2/README.rst python2/LICENSE.txt
%{_bindir}/*
%{python2_sitelib}/%{module}
%{python2_sitelib}/%{module}-*.egg-info
#=============================================================================

%package -n python3-%{module}
Summary:	Python classes to diff XML files
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)

%description -n python3-%{module}
XMLdiff is a python3 tool that figures out the differences between two similar
XML files, in the same way the diff utility does it for text files. It was
developed for the Narval project and could also be used as a library or as a
command line tool. It can work either with XML files or DOM trees

%files -n python3-%{module}
%doc python3/CHANGES.rst python3/README.rst python3/LICENSE.txt
%{_bindir}/*
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-*.egg-info
#=============================================================================

%prep
%setup -qc -n %{module}-%{version}
mv %{module}-%{version} python2
cp -r python2 python3

%build
pushd python2
%py2_build
popd

pushd python3
%py3_build
popd

%install
pushd python2
%py2_install
rm -rf %{buildroot}%{_libdir}/python%{py2_ver}/site-packages/%{module}/test
chmod 755 %{buildroot}%{_bindir}/*
popd

pushd python3
%py3_install
rm -rf %{buildroot}%{_libdir}/python%{py3_ver}/site-packages/%{module}/test
chmod 755 %{buildroot}%{_bindir}/*
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16716 |21mr|python-xmlschema-1.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name xmlschema

Summary:	A Python XML Schema validator and decoder
Name:		python-%{pypi_name}
Version:	1.8.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/brunato/xmlschema
Source0:	https://pypi.io/packages/source/x/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch

%description
The xmlschema library is an implementation of XML Schema for Python.

This library arises from the needs of a solid Python layer for processing XML
Schema based files for MaX (Materials design at the Exascale) European project.
A significant problem is the encoding and the decoding of the XML data files
produced by different simulation software. Another important requirement is
the XML data validation, in order to put the produced data under control.
The lack of a suitable alternative for Python in the schema-based decoding
of XML data has led to build this library. Obviously this library can be
useful for other cases related to XML Schema based processing, not only for
the original scope.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	A Python XML Schema validator and decoder
Group:		Development/Python

%description -n python3-%{pypi_name}
The xmlschema library is an implementation of XML Schema for Python.

This library arises from the needs of a solid Python layer for processing XML
Schema based files for MaX (Materials design at the Exascale) European project.
A significant problem is the encoding and the decoding of the XML data files
produced by different simulation software. Another important requirement is
the XML data validation, in order to put the produced data under control.
The lack of a suitable alternative for Python in the schema-based decoding
of XML data has led to build this library. Obviously this library can be
useful for other cases related to XML Schema based processing, not only for
the original scope.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{_bindir}/xmlschema-json2xml
%{_bindir}/xmlschema-validate
%{_bindir}/xmlschema-xml2json
%{python3_sitelib}/%{pypi_name}/
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16717 |21mr|python-xmltodict-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name xmltodict
%define sum A Python to transform XML to JSON

Name:		python-xmltodict
Version:	0.13.0
Release:	1
Summary:	%{sum}
Group:		Development/Python
License:	MIT
Url:		https://github.com/martinblech/xmltodict
Source0:	https://github.com/martinblech/xmltodict/archive/v%{version}.tar.gz?/%{pypi_name}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(nose)
BuildRequires:	python3egg(setuptools)
BuildArch:	noarch


%description
xmltodict is a Python module that makes working with XML feel like you are
working with JSON.  It's very fast (Expat-based) and has a streaming mode
with a small memory footprint, suitable for big XML dumps like Discogs or
Wikipedia.
#--------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	%{sum}
Group:		Development/Python

%description -n python3-%{pypi_name}
xmltodict is a Python3 module that makes working with XML feel like you are
working with JSON.  It's very fast (Expat-based) and has a streaming mode
with a small memory footprint, suitable for big XML dumps like Discogs or
Wikipedia.

%files -n python3-%{pypi_name}
%doc README.md LICENSE
%{py3_puresitedir}/%{pypi_name}.py
%{py3_puresitedir}/%{pypi_name}-%{version}-*
%{py3_puresitedir}/__pycache__

#--------------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

chmod +x %{buildroot}%{py3_puresitedir}/%{pypi_name}.py

%check
%{__python3} -m nose

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16718 |21mr|python-XStatic-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic

Summary:	XStatic base package with minimal support code
Name:		python-%{pypi_name}
Version:	1.0.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://bitbucket.org/thomaswaldmann/xstatic
Source0:	https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
The goal of XStatic family of packages is to provide static
file packages with minimal overhead - without selling you some 
dependencies you don't want.

XStatic has some minimal support code for working with the
XStatic-* packages.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	XStatic base package with minimal support code
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools

%description -n python3-%{pypi_name}
The goal of XStatic family of packages is to provide static
file packages with minimal overhead - without selling you some
dependencies you don't want.

XStatic has some minimal support code for working with the
XStatic-* packages.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic
%{python3_sitelib}/XStatic-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install
mkdir %{buildroot}/%{python3_sitelib}/xstatic/pkg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16719 |21mr|python-XStatic-Angular-1.5.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Angular

Summary:	Angular (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.5.8.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://angularjs.org
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Angular JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by **any** project that needs these files.

It intentionally does **not** provide any extra code except some metadata
**nor** has any extra requirements. You MAY use some minimal support code
from the XStatic base package, if you like.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Angular (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	XStatic-Angular-common = %{EVRD}

%description -n python3-%{pypi_name}
Angular JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by **any** project that needs these files.

It intentionally does **not** provide any extra code except some metadata
**nor** has any extra requirements. You MAY use some minimal support code
from the XStatic base package, if you like.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/angular
%{python3_sitelib}/XStatic_Angular-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Angular-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n XStatic-Angular-common
Summary:	Common files for XStatic-Angular (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n XStatic-Angular-common
Common files for XStatic-Angular (XStatic packaging standard)

%files -n XStatic-Angular-common
%{_jsdir}/angular

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular'|" xstatic/pkg/angular/__init__.py

%build
# due
# https://bitbucket.org/thomaswaldmann/xstatic/issue/2/
# this package can not be built with python-XStatic installed.
%py3_build

%install
%py3_install

# move angular.js to appropriate _jsdir
mkdir -p %{buildroot}/%{_jsdir}/angular
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/angular/data/angular* %{buildroot}/%{_jsdir}/angular


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16720 |21mr|python-XStatic-Angular-Bootstrap-2.5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Angular-Bootstrap

Summary:	Angular-Bootstrap (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	2.5.0.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://angular-ui.github.io/bootstrap/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Angular-Bootstrap (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-angular-bootstrap-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/angular_bootstrap
%{python3_sitelib}/XStatic_Angular_Bootstrap-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Angular_Bootstrap-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-angular-bootstrap-common
Summary:	Angular-Bootstrap (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-angular-bootstrap-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-angular-bootstrap-common
%doc README.txt
%{_jsdir}/angular_bootstrap

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_bootstrap'|" xstatic/pkg/angular_bootstrap/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/angular_bootstrap
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_bootstrap/data/angular-bootstrap.js %{buildroot}%{_jsdir}/angular_bootstrap
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_bootstrap/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/angular_bootstrap/angular-bootstrap.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16721 |21mr|python-XStatic-Angular-FileUpload-12.0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Angular-FileUpload

Summary:	Angular-FileUpload JavaScript library (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	12.0.4.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/danialfarid/ng-file-upload
Source0:	https://pypi.python.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# PyPi source states License: (same as Angular-FileUpload)
Source1:	https://raw.githubusercontent.com/danialfarid/ng-file-upload/master/LICENSE
BuildArch:	noarch

%description
Angular-FileUpload JavaScript library packaged
for setuptools (easy_install) / pip.

Lightweight Angular directive to upload files.


#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Angular-FileUpload JavaScript library (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-angular-fileupload-common

%description -n python3-%{pypi_name}
Angular-FileUpload JavaScript library packaged
for setuptools (easy_install) / pip.

Lightweight Angular directive to upload files.

%files -n python3-%{pypi_name}
%doc README.txt
%license LICENSE
%{python3_sitelib}/xstatic/pkg/angular_fileupload
%{python3_sitelib}/XStatic_Angular_FileUpload-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Angular_FileUpload-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-angular-fileupload-common
Summary:	Angular-FileUpload (XStatic packaging standard) JavaScript library
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-angular-fileupload-common
Angular-FileUpload JavaScript library packaged
for setuptools (easy_install) / pip.

This package contains the javascript files.

%files -n xstatic-angular-fileupload-common
%doc README.txt
%license LICENSE
%{_jsdir}/angular_fileupload

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
cp %{SOURCE1} .

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_fileupload'|" xstatic/pkg/angular_fileupload/__init__.py

%build
%py3_build

%install
%py3_install
# Move static files
mkdir -p %{buildroot}%{_jsdir}/angular_fileupload
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_fileupload/data/* %{buildroot}%{_jsdir}/angular_fileupload/
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_fileupload/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16722 |21mr|python-XStatic-Angular-Gettext-2.4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Angular-Gettext

Summary:	Angular-Gettext (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	2.4.1.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://angular-gettext.rocketeer.be/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Angular-Gettext (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-angular-gettext-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/angular_gettext
%{python3_sitelib}/XStatic_Angular_Gettext-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Angular_Gettext-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-angular-gettext-common
Summary:	Angular-Gettext (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-angular-gettext-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-angular-gettext-common
%doc README.txt
%{_jsdir}/angular_gettext

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_gettext'|" xstatic/pkg/angular_gettext/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/angular_gettext
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_gettext/data/angular-gettext.js %{buildroot}%{_jsdir}/angular_gettext
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_gettext/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/angular_gettext/angular-gettext.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16723 |21mr|python-XStatic-Angular-lrdragndrop-1.0.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Angular-lrdragndrop

Summary:	Angular-lrdragndrop (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.0.2.4
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/lorenzofox3/lrDragNDrop
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Angular-lrdragndrop (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-angular-lrdragndrop-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/angular_lrdragndrop
%{python3_sitelib}/XStatic_Angular_lrdragndrop-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Angular_lrdragndrop-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-angular-lrdragndrop-common
Summary:	Angular-lrdragndrop (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-angular-lrdragndrop-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-angular-lrdragndrop-common
%doc README.txt
%{_jsdir}/angular_lrdragndrop

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_lrdragndrop'|" xstatic/pkg/angular_lrdragndrop/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/angular_lrdragndrop
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_lrdragndrop/data/lrdragndrop.js %{buildroot}%{_jsdir}/angular_lrdragndrop
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_lrdragndrop/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/angular_lrdragndrop/lrdragndrop.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16724 |21mr|python-XStatic-Angular-Schema-Form-0.8.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Angular-Schema-Form

Summary:	Angular-Schema-Form JavaScript library (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	0.8.13.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/json-schema-form/angular-schema-form
Source0:	https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/json-schema-form/angular-schema-form/development/LICENSE
BuildArch:	noarch

%description
Angular-Schema-Form JavaScript library packaged
for setuptools (easy_install) / pip.

Generate forms from JSON schemas using AngularJS.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Angular-Schema-Form JavaScript library (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-angular-schema-form-common = %{EVRD}

%description -n python3-%{pypi_name}
Angular-Schema-Form JavaScript library packaged
for setuptools (easy_install) / pip.

Generate forms from JSON schemas using AngularJS.

%files -n python3-%{pypi_name}
%doc README.txt
%license LICENSE
%{python3_sitelib}/xstatic/pkg/angular_schema_form
%{python3_sitelib}/XStatic_Angular_Schema_Form-%{version}-py?.?.egg-info
%{python3_sitelib}/XStatic_Angular_Schema_Form-%{version}-py?.?-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-angular-schema-form-common
Summary:	Angular-Schema-Form JavaScript library (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-angular-schema-form-common
Angular-Schema-Form JavaScript library packaged
for setuptools (easy_install) / pip.

This package contains the javascript files.

%files -n xstatic-angular-schema-form-common
%doc README.txt
%license LICENSE
%{_jsdir}/angular_schema_form

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
cp %{SOURCE1} .

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_schema_form'|" xstatic/pkg/angular_schema_form/__init__.py

%build
%py3_build

%install
%py3_install

# Move static files
mkdir -p %{buildroot}%{_jsdir}/angular_schema_form
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_schema_form/data/bootstrap-decorator.js %{buildroot}%{_jsdir}/angular_schema_form
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_schema_form/data/bootstrap-decorator.min.js %{buildroot}%{_jsdir}/angular_schema_form
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_schema_form/data/schema-form.js %{buildroot}%{_jsdir}/angular_schema_form
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_schema_form/data/schema-form.min.js %{buildroot}%{_jsdir}/angular_schema_form
rm %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_schema_form/data/WHERE_IS_BOOTSTRAP_DECORATOR.md

rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_schema_form/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16725 |21mr|python-XStatic-Angular-UUID-0.0.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Angular-UUID

Summary:	Angular-UUID (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	0.0.4.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/munkychop/angular-uuid
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Angular-UUID JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Angular-UUID (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-angular-uuid-common

%description -n python3-%{pypi_name}
Angular-UUID JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/angular_uuid
%{python3_sitelib}/XStatic_Angular_UUID-%{version}-py3.*.egg-info
%{python3_sitelib}/XStatic_Angular_UUID-%{version}-py3.*-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-angular-uuid-common
Summary:	Angular-UUID (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-angular-uuid-common
Angular-UUID JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the JavaScript files.

%files -n xstatic-angular-uuid-common
%doc README.txt
%{_jsdir}/angular_uuid

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Patch to use webassets directory
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_uuid'|" xstatic/pkg/angular_uuid/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}/%{_jsdir}/angular_uuid
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/angular_uuid/data/angular-uuid.js %{buildroot}/%{_jsdir}/angular_uuid
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_uuid/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16726 |21mr|python-XStatic-Angular-Vis-4.16.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Angular-Vis

Summary:	Angular-Vis (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	4.16.0.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/visjs/angular-visjs
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Angular-Vis JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Angular-Vis (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-angular-vis-common

%description -n python3-%{pypi_name}
Angular-Vis JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/angular_vis
%{python3_sitelib}/XStatic_Angular_Vis-%{version}-py3.*.egg-info
%{python3_sitelib}/XStatic_Angular_Vis-%{version}-py3.*-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-angular-vis-common
Summary:	Angular-Vis (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-angular-vis-common
Angular-Vis JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the JavaScript files.

%files -n xstatic-angular-vis-common
%doc README.txt
%{_jsdir}/angular_vis

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_vis'|" xstatic/pkg/angular_vis/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/angular_vis
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_vis/data/angular-vis.js %{buildroot}%{_jsdir}/angular_vis
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_vis/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16727 |21mr|python-XStatic-Bootstrap-Datepicker-1.4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Bootstrap-Datepicker

Summary:	Bootstrap-Datepicker (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.4.0.0
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/eternicode/bootstrap-datepicker/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Bootstrap-Datepicker (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-bootstrap-datepicker-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/bootstrap_datepicker
%{python3_sitelib}/XStatic_Bootstrap_Datepicker-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Bootstrap_Datepicker-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-bootstrap-datepicker-common
Summary:	Bootstrap-Datepicker (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-bootstrap-datepicker-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-bootstrap-datepicker-common
%doc README.txt
%{_jsdir}/bootstrap_datepicker

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootstrap_datepicker'|" xstatic/pkg/bootstrap_datepicker/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/bootstrap_datepicker
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/bootstrap_datepicker/data/* %{buildroot}%{_jsdir}/bootstrap_datepicker
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/bootstrap_datepicker/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/bootstrap_datepicker/bootstrap-datepicker.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16728 |21mr|python-XStatic-Bootstrap-SCSS-3.4.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Bootstrap-SCSS

Summary:	Bootstrap-SCSS (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	3.4.1.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://getbootstrap.org/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	halflings-license.eml
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Bootstrap-SCSS (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-bootstrap-scss-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/bootstrap_scss
%{python3_sitelib}/XStatic_Bootstrap_SCSS-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Bootstrap_SCSS-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-bootstrap-scss-common
Summary:	Bootstrap-SCSS (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-bootstrap-scss-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-bootstrap-scss-common
%doc README.txt
%license halflings-license.eml
%{_jsdir}/bootstrap_scss

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootstrap_scss'|" xstatic/pkg/bootstrap_scss/__init__.py

# Include email identifying the license for the Glyphicons Halflings font
cp %{SOURCE1} .

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/bootstrap_scss
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/bootstrap_scss/data/* %{buildroot}%{_jsdir}/bootstrap_scss
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/bootstrap_scss/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/bootstrap_scss/js/*.js
chmod 644 %{buildroot}%{_jsdir}/bootstrap_scss/js/bootstrap/*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16729 |21mr|python-XStatic-bootswatch-3.3.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-bootswatch

Summary:	bootswatch (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	3.3.7.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://bootswatch.com
Source0:	https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/openstack/xstatic-bootswatch/master/LICENSE
BuildArch:	noarch

%description
Bootswatch javascript library packaged for setuptools (easy_install) / pip.

Free themes for Bootstrap.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	bootswatch (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	bootswatch-common = %{EVRD}
Requires:	bootswatch-fonts  = %{EVRD}

%description -n python3-%{pypi_name}
bootswatch javascript library packaged for setuptools (easy_install) / pip.

Free themes for Bootstrap.

%files -n python3-%{pypi_name}
%doc README.txt
%license LICENSE
%{python3_sitelib}/xstatic/pkg/bootswatch
%{python3_sitelib}/XStatic_bootswatch-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_bootswatch-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n bootswatch-common
Summary:	bootswatch (XStatic packaging standard) common files
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n bootswatch-common
Common bootswatch static content (CSS and SCSS)

%files -n bootswatch-common
%doc README.txt
%license LICENSE
%{_jsdir}/bootswatch

#----------------------------------------------------------------------------

%package -n bootswatch-fonts
Summary:	bootswatch (XStatic packaging standard) fonts
Group:		Development/Python

%description -n bootswatch-fonts
Bootswatch fonts.

%files -n bootswatch-fonts
%doc README.txt
%license LICENSE
%{_datadir}/fonts/bootswatch

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/bootswatch'|" xstatic/pkg/bootswatch/__init__.py
# License file is present in GitHub repo, but not in PyPi file
cp %{SOURCE1} .

%build
%py3_build

%install
%py3_install
# Move fonts to the right directory
mkdir -p %{buildroot}%{_datadir}/fonts/bootswatch
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/bootswatch/data/fonts/* %{buildroot}%{_datadir}/fonts/bootswatch
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/bootswatch/data/fonts

# Move static files
mkdir -p %{buildroot}%{_jsdir}/bootswatch
for theme in cerulean cosmo cyborg darkly flatly journal lumen paper readable sandstone simplex slate spacelab superhero united yeti
do
 mv %{buildroot}%{python3_sitelib}/xstatic/pkg/bootswatch/data/${theme} %{buildroot}%{_jsdir}/bootswatch
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16730 |21mr|python-XStatic-D3-3.5.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-D3

Summary:	D3 (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	3.5.17.0
Release:	1
License:	BSD
Group:		Development/Python
Url:		http://d3js.org/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	D3 (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-d3-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/d3
%{python3_sitelib}/XStatic_D3-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_D3-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-d3-common
Summary:	D3 (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-d3-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-d3-common
%doc README.txt
%{_jsdir}/d3

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/d3'|" xstatic/pkg/d3/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/d3
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/d3/data/d3.js %{buildroot}%{_jsdir}/d3
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/d3/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/d3/d3.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16731 |21mr|python-XStatic-Dagre-0.6.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Dagre

Summary:	Dagre (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	0.6.4.1
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/dagrejs/dagre
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Dagre (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-dagre-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/dagre
%{python3_sitelib}/XStatic_Dagre-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Dagre-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-dagre-common
Summary:	Dagre (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-dagre-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-dagre-common
%doc README.txt
%{_jsdir}/dagre

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/dagre'|" xstatic/pkg/dagre/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/dagre
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/dagre/data/dagre*.js %{buildroot}%{_jsdir}/dagre
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/dagre/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/dagre/dagre*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16732 |21mr|python-XStatic-Dagre-D3-0.4.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Dagre-D3

Summary:	Dagre-D3 (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	0.4.17.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/dagrejs/dagre-d3
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Dagre-D3 (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-dagre-d3-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/dagre_d3
%{python3_sitelib}/XStatic_Dagre_D3-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Dagre_D3-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-dagre-d3-common
Summary:	Dagre (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-dagre-d3-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-dagre-d3-common
%doc README.txt
%{_jsdir}/dagre_d3

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/dagre_d3'|" xstatic/pkg/dagre_d3/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/dagre_d3
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/dagre_d3/data/dagre*.js %{buildroot}%{_jsdir}/dagre_d3
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/dagre_d3/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/dagre_d3/dagre*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16733 |21mr|python-XStatic-FileSaver-1.3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-FileSaver

Summary:	FilseSaver (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.3.2.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/eligrey/FileSaver.js
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
FilseSaver JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	FilseSaver (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-filesaver-common

%description -n python3-%{pypi_name}
FilseSaver JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/filesaver
%{python3_sitelib}/XStatic_FileSaver-%{version}-py3.*.egg-info
%{python3_sitelib}/XStatic_FileSaver-%{version}-py3.*-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-filesaver-common
Summary:	FilseSaver (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-filesaver-common
FilseSaver JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the JavaScript files.

%files -n xstatic-filesaver-common
%doc README.txt
%{_jsdir}/filesaver

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Patch to use webassets directory
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/filesaver'|" xstatic/pkg/filesaver/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/filesaver
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/filesaver/data/FileSaver.js %{buildroot}%{_jsdir}/filesaver
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/filesaver/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16734 |21mr|python-XStatic-Font-Awesome-4.7.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Font-Awesome

Summary:	Font-Awesome (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	4.7.0.0
Release:	2
# font awesome is licensed under SIL 1.1.
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses_4
# short name: OFL
# Code is distributed under MIT
License:	OFL and MIT
Group:		Development/Python
Url:		https://fortawesome.github.io/Font-Awesome/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	fonts-ttf-fontawesome-web
BuildRequires:	web-assets-devel
BuildArch:	noarch

%description
Font Awesome icons packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Font-Awesome (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	fonts-ttf-fontawesome-web
Requires:	python3-XStatic
Requires:	web-assets-filesystem

%description -n python3-%{pypi_name}
Font Awesome icons packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/font_awesome
%{python3_sitelib}/XStatic_Font_Awesome-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Font_Awesome-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install

# use fontawesome-fonts directly
rm -f %{buildroot}/%{python3_sitelib}/xstatic/pkg/font_awesome/data/fonts/*
ln -s %{_datadir}/fonts/TTF/fontawesome/* %{buildroot}/%{python3_sitelib}/xstatic/pkg/font_awesome/data/fonts/

# use fontawesome-fonts-web for css, scss,
for dir in css less scss ; do
rm -rf %{buildroot}/%{python3_sitelib}/xstatic/pkg/font_awesome/data/$dir
ln -s %{_datadir}/font-awesome-web/$dir %{buildroot}/%{python3_sitelib}/xstatic/pkg/font_awesome/data/$dir
done


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16735 |21mr|python-XStatic-Graphlib-2.1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Graphlib

Summary:	Graphlib (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	2.1.7.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/dagrejs/graphlib
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Graphlib (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-graphlib-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/graphlib
%{python3_sitelib}/XStatic_Graphlib-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Graphlib-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-graphlib-common
Summary:	Graphlib (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-graphlib-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-graphlib-common
%doc README.txt
%{_jsdir}/graphlib

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/graphlib'|" xstatic/pkg/graphlib/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/graphlib
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/graphlib/data/graphlib*.js %{buildroot}%{_jsdir}/graphlib
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/graphlib/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/graphlib/graphlib*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16736 |21mr|python-XStatic-Hogan-2.0.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Hogan

Summary:	Hogan (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	2.0.0.3
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		http://twitter.github.io/hogan.js/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Hogan (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-hogan-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/hogan
%{python3_sitelib}/XStatic_Hogan-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Hogan-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-hogan-common
Summary:	Hogan (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-hogan-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-hogan-common
%doc README.txt
%{_jsdir}/hogan

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/hogan'|" xstatic/pkg/hogan/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/hogan
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/hogan/data/hogan.js %{buildroot}%{_jsdir}/hogan
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/hogan/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/hogan/hogan.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16737 |21mr|python-XStatic-Jasmine-2.4.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Jasmine

Summary:	Jasmine (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	2.4.1.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://jasmine.github.io/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Jasmine (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-jasmine-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/jasmine
%{python3_sitelib}/XStatic_Jasmine-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Jasmine-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-jasmine-common
Summary:	Jasmine (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-jasmine-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-jasmine-common
%doc README.txt
%{_jsdir}/jasmine

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jasmine'|" xstatic/pkg/jasmine/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/jasmine
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jasmine/data/* %{buildroot}%{_jsdir}/jasmine
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jasmine/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/jasmine/*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16738 |21mr|python-XStatic-jQuery-1.12.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-jQuery

Summary:	jQuery (XStatic packaging standard)
Name:		python-%{pypi_name}
# Used by OpenStack UI, don't update unless new version is required or at least supported
Version:	1.12.4.1
Release:	2
License:	MIT
Group:		Development/Python
Url:		http://jquery.com/
Source0:	%{pypi_source}
BuildArch:	noarch

%description
jQuery javascript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by **any** project that needs these files.

It intentionally does **not** provide any extra code except some metadata
**nor** has any extra requirements. You MAY use some minimal support code from
the XStatic base package, if you like.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	jQuery (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-jquery-common

%description -n python3-%{pypi_name}
jQuery javascript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by **any** project that needs these files.

It intentionally does **not** provide any extra code except some metadata
**nor** has any extra requirements. You MAY use some minimal support code from
the XStatic base package, if you like.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/XStatic_jQuery-%{version}-py*.egg-info
%{python3_sitelib}/XStatic_jQuery-%{version}-py*-nspkg.pth
%{python3_sitelib}/xstatic/pkg/jquery

#----------------------------------------------------------------------------

%package -n xstatic-jquery-common
Summary:	jQuery (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-jquery-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-jquery-common
%doc README.txt
%{_jsdir}/jquery

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery'|" xstatic/pkg/jquery/__init__.py

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/jquery
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery/data/*.js %{buildroot}%{_jsdir}/jquery
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/jquery/*.js



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16739 |21mr|python-XStatic-JQuery-Migrate-1.2.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-JQuery-Migrate

Summary:	JQuery-Migrate (XStatic packaging standard)
Name:		python-%{pypi_name}
# version 1.x needed for openstack-wallaby, check openstack requires before update!
Version:	1.2.1.2
Release:	1
Epoch:		1
License:	MIT
Group:		Development/Python
Url:		https://github.com/jquery/jquery-migrate
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	JQuery-Migrate (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-jquery-migrate-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/jquery_migrate
%{python3_sitelib}/XStatic_JQuery_Migrate-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_JQuery_Migrate-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-jquery-migrate-common
Summary:	JQuery-Migrate (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-jquery-migrate-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-jquery-migrate-common
%doc README.txt
%{_jsdir}/jquery_migrate

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery_migrate'|" xstatic/pkg/jquery_migrate/__init__.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_jsdir}/jquery_migrate
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_migrate/data/* %{buildroot}%{_jsdir}/jquery_migrate
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_migrate/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/jquery_migrate/*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16740 |21mr|python-XStatic-JQuery-quicksearch-2.0.3.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-JQuery.quicksearch
%global pkgname XStatic-JQuery-quicksearch

Summary:	JQuery.quicksearch (XStatic packaging standard)
Name:		python-%{pkgname}
Version:	2.0.3.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://plugins.jquery.com/jquery.quicksearch/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pkgname}
Summary:	JQuery.quicksearch (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-jquery-quicksearch-common

%description -n python3-%{pkgname}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pkgname}.

%files -n python3-%{pkgname}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/jquery_quicksearch
%{python3_sitelib}/XStatic_JQuery.quicksearch-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_JQuery.quicksearch-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-jquery-quicksearch-common
Summary:	JQuery.quicksearch (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-jquery-quicksearch-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-jquery-quicksearch-common
%doc README.txt
%{_jsdir}/jquery_quicksearch

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery_quicksearch'|" xstatic/pkg/jquery_quicksearch/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/jquery_quicksearch
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_quicksearch/data/jquery.quicksearch.js %{buildroot}%{_jsdir}/jquery_quicksearch
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_quicksearch/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/jquery_quicksearch/jquery.quicksearch.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16741 |21mr|python-XStatic-JQuery-TableSorter-2.14.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-JQuery.TableSorter
%global pkgname XStatic-JQuery-TableSorter

Summary:	JQuery.TableSorter (XStatic packaging standard)
Name:		python-%{pkgname}
Version:	2.14.5.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/Mottie/tablesorter
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pkgname}
Summary:	JQuery.TableSorter (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-jquery-tablesorter-common

%description -n python3-%{pkgname}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pkgname}.

%files -n python3-%{pkgname}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/jquery_tablesorter
%{python3_sitelib}/XStatic_JQuery.TableSorter-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_JQuery.TableSorter-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-jquery-tablesorter-common
Summary:	JQuery.TableSorter (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-jquery-tablesorter-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-jquery-tablesorter-common
%doc README.txt
%{_jsdir}/jquery_tablesorter

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery_tablesorter'|" xstatic/pkg/jquery_tablesorter/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/jquery_tablesorter
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_tablesorter/data/jquery.tablesorter.js %{buildroot}%{_jsdir}/jquery_tablesorter
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_tablesorter/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/jquery_tablesorter/jquery.tablesorter.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16742 |21mr|python-XStatic-jquery-ui-1.12.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-jquery-ui

Summary:	jquery-ui (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.12.1.1
Release:	1
# According 
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses
# http://creativecommons.org/publicdomain/zero/1.0/legalcode
# is abbreviated CCO.
# This package has the same license as jquery-ui:
# https://github.com/jquery/jqueryui.com/blob/master/LICENSE.txt
License:	CC0
Group:		Development/Python
Url:		http://jqueryui.com/
Source0:	%{pypi_source}
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	jquery-ui (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-jquery-ui-common
Requires:	python3-XStatic-jQuery

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/jquery_ui
%{python3_sitelib}/XStatic_jquery_ui-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_jquery_ui-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-jquery-ui-common
Summary:	jquery-ui (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-jquery-ui-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-jquery-ui-common
%doc README.txt
%{_jsdir}/jquery_ui

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jquery_ui'|" xstatic/pkg/jquery_ui/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/jquery_ui
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_ui/data/* %{buildroot}%{_jsdir}/jquery_ui
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jquery_ui/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/jquery_ui/*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16743 |21mr|python-XStatic-JSEncrypt-2.3.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-JSEncrypt

Summary:	JSEncrypt (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	2.3.1.1
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://travistidwell.com/jsencrypt/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	JSEncrypt (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-jsencrypt-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/jsencrypt
%{python3_sitelib}/XStatic_JSEncrypt-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_JSEncrypt-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-jsencrypt-common
Summary:	JSEncrypt (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-jsencrypt-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-jsencrypt-common
%doc README.txt
%{_jsdir}/jsencrypt

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/jsencrypt'|" xstatic/pkg/jsencrypt/__init__.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_jsdir}/jsencrypt
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/jsencrypt/data/jsencrypt.js %{buildroot}%{_jsdir}/jsencrypt
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/jsencrypt/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/jsencrypt/jsencrypt.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16744 |21mr|python-XStatic-Json2yaml-0.1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Json2yaml

Summary:	Json2yaml (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	0.1.1.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/jeffsu/json2yaml
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
Json2yaml JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Json2yaml (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-json2yaml-common

%description -n python3-%{pypi_name}
Json2yaml JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/json2yaml
%{python3_sitelib}/XStatic_Json2yaml-%{version}-py3.*.egg-info
%{python3_sitelib}/XStatic_Json2yaml-%{version}-py3.*-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-json2yaml-common
Summary:	Json2yaml (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-json2yaml-common
Json2yaml JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the JavaScript files.

%files -n xstatic-json2yaml-common
%doc README.txt
%{_jsdir}/json2yaml

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Patch to use webassets directory
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/json2yaml'|" xstatic/pkg/json2yaml/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/json2yaml
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/json2yaml/data/json2yaml.js %{buildroot}%{_jsdir}/json2yaml
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/json2yaml/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16745 |21mr|python-XStatic-JS-Yaml-3.8.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-JS-Yaml

Summary:	JS-Yaml (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	3.8.1.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/nodeca/js-yaml
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JS-Yaml JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	JS-Yaml (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-js-yaml-common

%description -n python3-%{pypi_name}
JS-Yaml JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/js_yaml
%{python3_sitelib}/XStatic_JS_Yaml-%{version}-py3.*.egg-info
%{python3_sitelib}/XStatic_JS_Yaml-%{version}-py3.*-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-js-yaml-common
Summary:	JS-Yaml (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-js-yaml-common
JS-Yaml JavaScript library packaged for setup-tools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the JavaScript files.

%files -n xstatic-js-yaml-common
%doc README.txt
%{_jsdir}/js_yaml

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

# Patch to use webassets directory
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/js_yaml'|" xstatic/pkg/js_yaml/__init__.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_jsdir}/js_yaml
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/js_yaml/data/js-yaml.js %{buildroot}%{_jsdir}/js_yaml
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/js_yaml/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16746 |21mr|python-XStatic-lodash-4.16.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-lodash

Summary:	Lodash (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	4.16.4.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/lodash/lodash
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Lodash (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-lodash-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/lodash
%{python3_sitelib}/XStatic_lodash-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_lodash-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-lodash-common
Summary:	Lodash (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-lodash-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-lodash-common
%doc README.txt
%{_jsdir}/lodash

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/lodash'|" xstatic/pkg/lodash/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/lodash
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/lodash/data/*.js %{buildroot}%{_jsdir}/lodash
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/lodash/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/lodash/*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16747 |21mr|python-XStatic-Magic-Search-0.2.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Magic-Search

Summary:	Magic-Search (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	0.2.5.2
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/eucalyptus/magic-search
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
MagicSearch is an AngularJS directive that provides a UI for both faceted
filtering and as-you-type filtering. It is intended for filtering tables,
such as an AngularJS smart-table, but it can be used in any situation
where you can provide it with facets/options and consume its events.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Magic-Search (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	XStatic-Magic-Search-common = %{EVRD}

%description -n python3-%{pypi_name}
MagicSearch is an AngularJS directive that provides a UI for both faceted
filtering and as-you-type filtering. It is intended for filtering tables,
such as an AngularJS smart-table, but it can be used in any situation
where you can provide it with facets/options and consume its events.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/magic_search
%{python3_sitelib}/XStatic_Magic_Search-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Magic_Search-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n XStatic-Magic-Search-common
Summary:	Xstatic-Magic-Search common files
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n XStatic-Magic-Search-common
Xstatic-Magic-Search common files.

%files -n XStatic-Magic-Search-common
%{_jsdir}/magic_search

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/magic_search'|" xstatic/pkg/magic_search/__init__.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}/%{_jsdir}/magic_search
mv %{buildroot}/%{python3_sitelib}/xstatic/pkg/magic_search/data/magic_search.* %{buildroot}/%{_jsdir}/magic_search


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16748 |21mr|python-XStatic-mdi-1.6.50.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-mdi

Summary:	mdi (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.6.50.2
Release:	1
# mdi is licensed under SIL 1.1.
# https://fedoraproject.org/wiki/Licensing:Main?rd=Licensing#Good_Licenses_4
# short name: OFL
License:	OFL
Group:		Development/Python
Url:		http://materialdesignicons.com
Source0:	https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/openstack/xstatic-mdi/master/LICENSE
BuildArch:	noarch

%description
mdi javascript library packaged for setuptools (easy_install) / pip.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	mdi (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	mdi-common = %{EVRD}
Requires:	mdi-fonts  = %{EVRD}

%description -n python3-%{pypi_name}
mdi javascript library packaged for setuptools (easy_install) / pip.

%files -n python3-%{pypi_name}
%doc README.txt
%license LICENSE
%{python3_sitelib}/xstatic/pkg/mdi
%{python3_sitelib}/XStatic_mdi-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_mdi-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n mdi-common
Summary:	mdi (XStatic packaging standard) common files
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n mdi-common
Common mdi static content (CSS and SCSS).

%files -n mdi-common
%license LICENSE
%{_jsdir}/mdi

#----------------------------------------------------------------------------

%package -n mdi-fonts
Summary:	mdi (XStatic packaging standard) fonts
Group:		Development/Python

%description -n mdi-fonts
mdi fonts.

%files -n mdi-fonts
%license LICENSE
%{_datadir}/fonts/mdi

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/mdi'|" xstatic/pkg/mdi/__init__.py
# License file is present in GitHub repo, but not in PyPi file
cp %{SOURCE1} .

%build
%py3_build

%install
%py3_install
# Move fonts to the right directory
mkdir -p %{buildroot}%{_datadir}/fonts/mdi
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/mdi/data/fonts/* %{buildroot}%{_datadir}/fonts/mdi
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/mdi/data/fonts
# Move static files
mkdir -p %{buildroot}%{_jsdir}/mdi
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/mdi/data/css %{buildroot}%{_jsdir}/mdi
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/mdi/data/scss %{buildroot}%{_jsdir}/mdi
# link fonts
mkdir %{buildroot}%{_jsdir}/mdi/fonts
pushd %{buildroot}%{_jsdir}/mdi/fonts
ln -s ../../../fonts/mdi/materialdesignicons-* .
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16749 |21mr|python-XStatic-moment-2.8.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-moment

Summary:	Moment (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	2.8.4.3
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/moment/moment
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Moment (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-moment-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/moment
%{python3_sitelib}/XStatic_moment-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_moment-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-moment-common
Summary:	Moment (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-moment-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-moment-common
%doc README.txt
%{_jsdir}/moment

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/moment'|" xstatic/pkg/moment/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/moment
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/moment/data/*.js %{buildroot}%{_jsdir}/moment
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/moment/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/moment/*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16750 |21mr|python-XStatic-Moment-Timezone-0.5.22.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Moment-Timezone

Summary:	Moment-Timezone (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	0.5.22.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/moment/moment-timezone
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Moment-Timezone (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-moment-timezone-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/moment_timezone
%{python3_sitelib}/XStatic_Moment_Timezone-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Moment_Timezone-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-moment-timezone-common
Summary:	Moment-Timezone (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-moment-timezone-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-moment-timezone-common
%doc README.txt
%{_jsdir}/moment_timezone

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/moment_timezone'|" xstatic/pkg/moment_timezone/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/moment_timezone
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/moment_timezone/data/*.js %{buildroot}%{_jsdir}/moment_timezone
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/moment_timezone/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/moment_timezone/*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16751 |21mr|python-XStatic-objectpath-1.2.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-objectpath

Summary:	ObjectPath JavaScript library (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.2.1.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/mike-marcacci/objectpath
Source0:	https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/mike-marcacci/objectpath/master/license
BuildArch:	noarch

%description
ObjectPath JavaScript library packaged for setuptools (easy_install) / pip.

Parse js object paths using both dot and bracket notation.
Stringify an array of properties into a valid path.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	ObjectPath JavaScript library (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-objectpath-common = %{EVRD}

%description -n python3-%{pypi_name}
ObjectPath JavaScript library packaged for setuptools (easy_install) / pip.

Parse js object paths using both dot and bracket notation.
Stringify an array of properties into a valid path.

%files -n python3-%{pypi_name}
%doc README.txt
%license LICENSE
%{python3_sitelib}/xstatic/pkg/objectpath
%{python3_sitelib}/XStatic_objectpath-%{version}-py?.?.egg-info
%{python3_sitelib}/XStatic_objectpath-%{version}-py?.?-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-objectpath-common
Summary:	ObjectPath JavaScript library (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-objectpath-common
ObjectPath JavaScript library packaged for setuptools (easy_install) / pip.

This package contains the javascript files.

%files -n xstatic-objectpath-common
%doc README.txt
%license LICENSE
%{_jsdir}/objectpath

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
cp %{SOURCE1} LICENSE

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/objectpath'|" xstatic/pkg/objectpath/__init__.py

%build
%py3_build

%install
%py3_install

# Move static files
mkdir -p %{buildroot}%{_jsdir}/objectpath
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/objectpath/data/ObjectPath.js %{buildroot}%{_jsdir}/objectpath
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/objectpath/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16752 |21mr|python-XStatic-Rickshaw-1.5.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Rickshaw

Summary:	Rickshaw (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.5.1.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://code.shutterstock.com/rickshaw/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Rickshaw (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-rickshaw-common

#----------------------------------------------------------------------------

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/rickshaw
%{python3_sitelib}/XStatic_Rickshaw-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Rickshaw-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-rickshaw-common
Summary:	Rickshaw (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-rickshaw-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-rickshaw-common
%doc README.txt
%{_jsdir}/rickshaw

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/rickshaw'|" xstatic/pkg/rickshaw/__init__.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_jsdir}/rickshaw
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/rickshaw/data/rickshaw.* %{buildroot}%{_jsdir}/rickshaw
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/rickshaw/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/rickshaw/rickshaw.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16753 |21mr|python-XStatic-roboto-fontface-0.5.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-roboto-fontface

Summary:	roboto-fontface (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	0.5.0.0
Release:	1
License:	ASL 2.0
Group:		Development/Python
Url:		https://github.com/choffmeister/roboto-fontface-bower
Source0:	https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
XStatic-roboto-fontface is a roboto-fontface JavaScript
library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.
It intentionally does not provide any extra code except some metadata nor
has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	roboto-fontface (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	roboto-fontface-common = %{EVRD}
Requires:	roboto-fontface-fonts  = %{EVRD}

%description -n python3-%{pypi_name}
XStatic-roboto-fontface is a roboto-fontface JavaScript
library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.
It intentionally does not provide any extra code except some metadata nor
has any extra requirements.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/roboto_fontface
%{python3_sitelib}/XStatic_roboto_fontface-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_roboto_fontface-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n roboto-fontface-common
Summary:	oboto-fontface commons
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n roboto-fontface-common
Common roboto-fontface static content (font, CSS and SCSS).

%files -n roboto-fontface-common
%doc README.txt
%{_jsdir}/roboto_fontface

#----------------------------------------------------------------------------

%package -n roboto-fontface-fonts
Summary:	roboto-fontface fonts
Group:		Development/Python

%description -n roboto-fontface-fonts
roboto-fontface fonts.

%files -n roboto-fontface-fonts
%doc README.txt
%{_datadir}/fonts/roboto_fontface

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}

sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/roboto_fontface'|" xstatic/pkg/roboto_fontface/__init__.py

%build
%py3_build

%install
%py3_install

# Move fonts to the right directory
mkdir -p %{buildroot}%{_datadir}/fonts/roboto_fontface
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/roboto_fontface/data/fonts/* %{buildroot}%{_datadir}/fonts/roboto_fontface

# Fix shebang issues
for file in %{buildroot}%{_datadir}/fonts/roboto_fontface/roboto/*.svg; do
 chmod -x $file
done

# Move static files
mkdir -p %{buildroot}%{_jsdir}/roboto_fontface/css
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/roboto_fontface/data/css/* %{buildroot}%{_jsdir}/roboto_fontface/css
rm -rf %{buildroot}%{python3_sitelib}/xstatic/pkg/roboto_fontface/data
# link fonts
mkdir %{buildroot}%{_jsdir}/roboto_fontface/fonts
pushd %{buildroot}%{_jsdir}/roboto_fontface/fonts
ln -s ../../../fonts/roboto_fontface/* .
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16754 |21mr|python-XStatic-smart-table-1.4.13.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-smart-table

Summary:	smart-table (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.4.13.2
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/lorenzofox3/Smart-Table
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	smart-table (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-smart-table-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/angular_smart_table
%{python3_sitelib}/XStatic_smart_table-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_smart_table-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-smart-table-common
Summary:	smart-table (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-smart-table-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-smart-table-common
%doc README.txt
%{_jsdir}/angular_smart_table

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/angular_smart_table'|" xstatic/pkg/angular_smart_table/__init__.py
# fix assets detection when you use XStatic
sed -i 's/smart-table.min.js/smart-table.js/' xstatic/pkg/angular_smart_table/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/angular_smart_table
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_smart_table/data/smart-table.js %{buildroot}%{_jsdir}/angular_smart_table
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/angular_smart_table/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/angular_smart_table/smart-table.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16755 |21mr|python-XStatic-Spin-1.2.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-Spin

Summary:	Spin (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.2.5.3
Release:	1
License:	MIT
Group:		Development/Python
Url:		http://fgnass.github.io/spin.js/
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Spin (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-spin-common

%description -n python3-%{pypi_name}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pypi_name}.

%files -n python3-%{pypi_name}
%doc README.txt
%{python3_sitelib}/xstatic/pkg/spin
%{python3_sitelib}/XStatic_Spin-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_Spin-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-spin-common
Summary:	Spin (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-spin-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-spin-common
%doc README.txt
%{_jsdir}/spin

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/spin'|" xstatic/pkg/spin/__init__.py

%build
%py3_build

%install
%py3_install

mkdir -p %{buildroot}%{_jsdir}/spin
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/spin/data/*.js %{buildroot}%{_jsdir}/spin
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/spin/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/spin/*.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16756 |21mr|python-XStatic-termjs-0.0.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-term.js
%global pkgname XStatic-termjs

Summary:	term.js (XStatic packaging standard)
Name:		python-%{pkgname}
Version:	0.0.7.0
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://github.com/chjj/term.js
Source0:	https://files.pythonhosted.org/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

#----------------------------------------------------------------------------

%package -n python3-%{pkgname}
Summary:	term.js (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-termjs-common

%description -n python3-%{pkgname}
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package provides Python 3 build of %{pkgname}.

%files -n python3-%{pkgname}
%doc README.rst
%{python3_sitelib}/xstatic/pkg/termjs
%{python3_sitelib}/XStatic_term.js-%{version}-py%{python3_version}.egg-info
%{python3_sitelib}/XStatic_term.js-%{version}-py%{python3_version}-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-termjs-common
Summary:	term.js (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-termjs-common
JavaScript library packaged for setuptools (easy_install) / pip.

This package is intended to be used by any project that needs these files.

It intentionally does not provide any extra code except some metadata
nor has any extra requirements.

This package contains the javascript files.

%files -n xstatic-termjs-common
%doc README.rst
%{_jsdir}/termjs

#----------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/termjs'|" xstatic/pkg/termjs/__init__.py

%build
%py3_build

%install
%py3_install
mkdir -p %{buildroot}%{_jsdir}/termjs
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/termjs/data/term.js %{buildroot}%{_jsdir}/termjs
rmdir %{buildroot}%{python3_sitelib}/xstatic/pkg/termjs/data/
# fix execute flags for js
chmod 644 %{buildroot}%{_jsdir}/termjs/term.js


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16757 |21mr|python-XStatic-tv4-1.2.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name XStatic-tv4

Summary:	tv4 JavaScript library (XStatic packaging standard)
Name:		python-%{pypi_name}
Version:	1.2.7.0
Release:	1
License:	Public Domain
Group:		Development/Python
Url:		https://github.com/geraintluff/tv4/
Source0:	https://pypi.io/packages/source/X/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
Source1:	https://raw.githubusercontent.com/geraintluff/tv4/master/LICENSE.txt
BuildArch:	noarch

%description
tv4 - Tiny Validator (for v4 JSON Schema) JavaScript library packaged
for setuptools (easy_install) / pip.

Use json-schema draft v4 to validate simple values and complex objects
using a rich validation vocabulary.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	tv4 JavaScript library (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
Requires:	python3-XStatic
Requires:	xstatic-tv4-common = %{EVRD}

%description -n python3-%{pypi_name}
tv4 - Tiny Validator (for v4 JSON Schema) JavaScript library packaged
for setuptools (easy_install) / pip.

Use json-schema draft v4 to validate simple values and complex objects
using a rich validation vocabulary.

%files -n python3-%{pypi_name}
%doc README.txt
%license LICENSE
%{python3_sitelib}/xstatic/pkg/tv4
%{python3_sitelib}/XStatic_tv4-%{version}-py?.?.egg-info
%{python3_sitelib}/XStatic_tv4-%{version}-py?.?-nspkg.pth

#----------------------------------------------------------------------------

%package -n xstatic-tv4-common
Summary:	tv4 JavaScript library (XStatic packaging standard)
Group:		Development/Python
BuildRequires:	web-assets-devel
Requires:	web-assets-filesystem

%description -n xstatic-tv4-common
tv4 - Tiny Validator (for v4 JSON Schema) JavaScript library packaged
for setuptools (easy_install) / pip.

This package contains the javascript files.

%files -n xstatic-tv4-common
%doc README.txt
%license LICENSE
%{_jsdir}/tv4

#----------------------------------------------------------------------------

%prep
%setup -q -n %{pypi_name}-%{version}
cp %{SOURCE1} LICENSE

# patch to use webassets dir
sed -i "s|^BASE_DIR = .*|BASE_DIR = '%{_jsdir}/tv4'|" xstatic/pkg/tv4/__init__.py

%build
%py3_build

%install
%py3_install

# Move static files
mkdir -p %{buildroot}%{_jsdir}/tv4
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/tv4/data/tv4.async-jquery.js %{buildroot}%{_jsdir}/tv4
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/tv4/data/tv4.js %{buildroot}%{_jsdir}/tv4
mv %{buildroot}%{python3_sitelib}/xstatic/pkg/tv4/data/tv4.min.js %{buildroot}%{_jsdir}/tv4

rmdir %{buildroot}/%{python3_sitelib}/xstatic/pkg/tv4/data/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16758 |21mr|python-yaml-5.4.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name PyYAML
%define oname yaml

Name:           python-%{oname}
Epoch:          0
Version:        5.4.1
Release:        4
Summary:        Python package implementing YAML parser and emitter
License:        MIT
Group:          Development/Python
URL:            http://pyyaml.org/
Source0:        https://codeload.github.com/%{oname}/pyyaml/tar.gz/%{real_name}-%{version}.tar.gz
BuildRequires:  pkgconfig(yaml-0.1)

%description
PyYAML is a YAML parser and emitter for the Python programming
language.

YAML is a data serialization format designed for human readability
and interaction with scripting languages.

# ------------------------------------------------------------------

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:        YAML parser and emitter for Python 2
Group:          Development/Python
BuildRequires:  pkgconfig(python2)
BuildRequires:  python2dist(setuptools)
BuildRequires:  python2dist(cython)
Provides:       %{real_name} = %{EVRD}
Provides:       python2-%{real_name} = %{EVRD}
Obsoletes:      %mklibname python2-%{oname} -d

%description -n python2-%{oname}
PyYAML is a YAML parser and emitter for the Python programming
language.

%files -n python2-%{oname}
%dir %{python2_sitearch}/%{oname}/
%{python2_sitearch}/%{real_name}-%{version}-py%{py2_ver}.egg-info
%{python2_sitearch}/%{oname}/*.py*
%{python2_sitearch}/_%{oname}/*.py*
%{python2_sitearch}/%{oname}/_%{oname}.so

# ------------------------------------------------------------------

%package -n python3-%{oname}
Summary:        YAML parser and emitter for Python 3
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(cython)
Provides:       python3-pyyaml = %{EVRD}
Provides:       python3-%{real_name} = %{EVRD}
Provides:       python-yaml = %{EVRD}
Obsoletes:      %mklibname python3-%{oname} -d

%description -n python3-%{oname}
PyYAML is a YAML parser and emitter for the Python programming
language.

YAML is a data serialization format designed for human readability
and interaction with scripting languages.

%files -n python3-%{oname}
%dir %{python3_sitearch}/%{oname}/
%{python3_sitearch}/%{real_name}-%{version}-py%{py3_ver}.egg-info
%{python3_sitearch}/_%{oname}/__pycache__/*.py*
%{python3_sitearch}/_%{oname}/*.py*
%{python3_sitearch}/%{oname}/__pycache__/*.py*
%{python3_sitearch}/%{oname}/*.py*
%{python3_sitearch}/%{oname}/_%{oname}.cpython-*.so

# ------------------------------------------------------------------

%prep
%setup -qcn %{real_name}-%{version}
mv %{real_name}-%{version} python2
cp -a python2 python3
chmod a-x python2/examples/yaml-highlight/yaml_hl.py
chmod a-x python3/examples/yaml-highlight/yaml_hl.py

# remove pre-generated file
rm -rf python2/ext/_yaml.c
rm -rf python3/ext/_yaml.c

%build
pushd python2
%{py2_build}
popd

pushd python3
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%{py3_build}
popd

%install
pushd python2
%{py2_install}
popd

pushd python3
%{py3_install}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16759 |21mr|python-yaml-5.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define real_name PyYAML
%define oname yaml

Name:           python-%{oname}
Epoch:          0
Version:        5.4.1
Release:        5
Summary:        Python package implementing YAML parser and emitter
License:        MIT
Group:          Development/Python
URL:            http://pyyaml.org/
Source0:        https://codeload.github.com/%{oname}/pyyaml/tar.gz/%{real_name}-%{version}.tar.gz
BuildRequires:  pkgconfig(yaml-0.1)

%description
PyYAML is a YAML parser and emitter for the Python programming
language.

YAML is a data serialization format designed for human readability
and interaction with scripting languages.

# ------------------------------------------------------------------

%package -n python2-%{oname}
%py2_migration_meta python2-%{oname}
Summary:        YAML parser and emitter for Python 2
Group:          Development/Python
BuildRequires:  pkgconfig(python2)
BuildRequires:  python2dist(setuptools)
BuildRequires:  python2dist(cython)
Provides:       %{real_name} = %{EVRD}
Provides:       python2-%{real_name} = %{EVRD}
Obsoletes:      %{mklibname python2-%{oname} -d} < 5.4.1

%description -n python2-%{oname}
PyYAML is a YAML parser and emitter for the Python programming
language.

%files -n python2-%{oname}
%dir %{python2_sitearch}/%{oname}/
%{python2_sitearch}/%{real_name}-%{version}-py%{py2_ver}.egg-info
%{python2_sitearch}/%{oname}/*.py*
%{python2_sitearch}/_%{oname}/*.py*
%{python2_sitearch}/%{oname}/_%{oname}.so

# ------------------------------------------------------------------

%package -n python3-%{oname}
Summary:        YAML parser and emitter for Python 3
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(cython)
Provides:       python3-pyyaml = %{EVRD}
Provides:       python3-%{real_name} = %{EVRD}
Provides:       python-yaml = %{EVRD}
Obsoletes:      %{mklibname python3-%{oname} -d} < 5.4.1

%description -n python3-%{oname}
PyYAML is a YAML parser and emitter for the Python programming
language.

YAML is a data serialization format designed for human readability
and interaction with scripting languages.

%files -n python3-%{oname}
%dir %{python3_sitearch}/%{oname}/
%{python3_sitearch}/%{real_name}-%{version}-py%{py3_ver}.egg-info
%{python3_sitearch}/_%{oname}/__pycache__/*.py*
%{python3_sitearch}/_%{oname}/*.py*
%{python3_sitearch}/%{oname}/__pycache__/*.py*
%{python3_sitearch}/%{oname}/*.py*
%{python3_sitearch}/%{oname}/_%{oname}.cpython-*.so

# ------------------------------------------------------------------

%prep
%setup -qcn %{real_name}-%{version}
mv %{real_name}-%{version} python2
cp -a python2 python3
chmod a-x python2/examples/yaml-highlight/yaml_hl.py
chmod a-x python3/examples/yaml-highlight/yaml_hl.py

# remove pre-generated file
rm -rf python2/ext/_yaml.c
rm -rf python3/ext/_yaml.c

%build
pushd python2
%{py2_build}
popd

pushd python3
find . -name '*.py' | xargs sed -i '1s|^#!python|#!%{__python3}|'
%{py3_build}
popd

%install
pushd python2
%{py2_install}
popd

pushd python3
%{py3_install}
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16760 |21mr|python-yappi-1.3.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname yappi


Name:           python-%{srcname}
Version:        1.3.2
Release:        8%{?dist}
Summary:        Yet Another Python Profiler, supports Multithread/CPU time profiling
Group:          Development/Python
License:        MIT
URL:            https://github.com/sumerc/yappi
Source0:        %{pypi_source %{srcname} %{version}}

BuildRequires:  git
BuildRequires:  gcc

%description
Yappi, Yet Another Python Profiler, provides multithreading and cpu-time
support to profile python programs.

%package -n python3-%{srcname}
Summary:        Yet Another Python Profiler, supports Multithread/CPU time profiling

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

%description -n python3-%{srcname}
Yappi, Yet Another Python Profiler, provides multithreading and cpu-time
support to profile python programs.

%prep
%autosetup -n %{srcname}-%{version} -S git

%build
%py3_build

%install
%py3_install
mv %{buildroot}%{_bindir}/%{srcname} %{buildroot}%{_bindir}/%{srcname}-%{python3_version}
ln -s %{srcname}-%{python3_version} %{buildroot}%{_bindir}/%{srcname}-3
ln -s %{srcname}-3 %{buildroot}%{_bindir}/%{srcname}

%check
export PATH=$PATH:%{buildroot}/usr/bin
export PYTHONPATH=%{buildroot}/%{python3_sitearch}
%{__python3} tests/test_functionality.py
%{__python3} tests/test_hooks.py

%files -n python3-%{srcname}
%license LICENSE
%doc README.md
%{python3_sitearch}/%{srcname}.py*
%{python3_sitearch}/_%{srcname}*.so
%{python3_sitearch}/__pycache__/%{srcname}*
%{python3_sitearch}/%{srcname}-*.egg-info
%{_bindir}/%{srcname}
%{_bindir}/%{srcname}-3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16761 |21mr|python-yaql-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name yaql

# Disable docs building as it doesn't support recent sphinx
%global with_docs 0

Name:		python-%{pypi_name}
Version:	2.0.0
Release:	1
Summary:	Yet Another Query Language
Group:		Development/Python
License:	ASL 2.0
URL:		https://pypi.python.org/pypi/%{pypi_name}
Source0:	https://tarballs.openstack.org/%{pypi_name}/%{pypi_name}-%{version}.tar.gz

BuildArch:	noarch

%description
YAQL library has a out of the box large set of commonly used functions.

#-------------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	YAQL library has a out of the box large set of commonly used functions
Group:		Development/Python

BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	python3-pbr
BuildRequires:	python3-sphinx

Requires:	python3-six
Requires:	python3-pbr
Requires:	python3-babel
Requires:	python3-ply
Requires:	python3-dateutil

%description -n python3-%{pypi_name}
YAQL library has a out of the box large set of commonly used functions.

%files -n python3-%{pypi_name}
%license LICENSE
%doc doc/source/readme.rst README.rst
%{_bindir}/python3-%{pypi_name}
%{_bindir}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info


#-------------------------------------------------------------------------

%if 0%{?with_docs}
# Documentation package
%package -n python-%{pypi_name}-doc
Summary:        Documentation for YAQL library

%description -n python-%{pypi_name}-doc
Documentation for YAQL library

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE
%endif

#-------------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# Let RPM handle the dependencies
rm -f test-requirements.txt requirements.txt

%build
%py3_build

%if 0%{?with_docs}
# generate html docs
sphinx-build-3 doc/source html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install

ln -sf %{pypi_name} %{buildroot}%{_bindir}/python3-%{pypi_name}

# Delete tests
rm -fr %{buildroot}%{python3_sitelib}/tests


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16762 |21mr|python-yubico-1.3.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	yubico

Summary:	Pure-python library for interacting with Yubikeys
Name:		python-%{pypi_name}
Version:	1.3.3
Release:	3
License:	BSD
Group:		Development/Python
Url:		https://github.com/Yubico/python-yubico
Source0:	https://github.com/Yubico/python-yubico/archive/%{name}-%{version}.tar.gz
Patch0:		yubico-python38-warning.patch
BuildRequires:	python3-setuptools
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Pure-python library for interacting with Yubikeys

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Pure-python3 library for interacting with Yubikeys
Group:		Development/Python
BuildArch:	noarch
Requires:	python3egg(pyusb)

%description -n	python3-%{pypi_name}
Pure-python3 library for interacting with Yubikeys

%files -n python3-%{pypi_name}
%doc COPYING NEWS README
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/python_%{pypi_name}-%{version}-*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}
sed -i 's|setup_requires=|tests_require=|' setup.py

%build

%install
PYTHONDONTWRITEBYTECODE=1 %{__python3} setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16763 |21mr|python-zake-0.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name zake

Name:		python-%{pypi_name}
Version:	0.2.2
Release:	1
Summary:	Testing utilities for the kazoo library
Group:		Development/Python
License:	ASL 2.0
URL:		https://github.com/yahoo/Zake
Source0:	https://pypi.python.org/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildArch:	noarch

%description
It is a python package that works to provide a nice set of testing
utilities for the `kazoo`_ library.
It includes the following functionality:
* Storage access (for viewing what was saved/created).
* Kazoo *mostly* compatible client API.
* Sync/transaction/create/get/delete... ...

#----------------------------------------------------------------------
%package -n python3-%{pypi_name}
Summary:	Testing utilities for the kazoo library
Group:		Development/Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(kazoo)
BuildRequires:	python3egg(six)
BuildRequires:	python3egg(setuptools)
Requires:	python3-kazoo

%description -n python3-%{pypi_name}
It is a python package that works to provide a nice set of testing
utilities for the `kazoo`_ library.
It includes the following functionality:
* Storage access (for viewing what was saved/created).
* Kazoo *mostly* compatible client API.
* Sync/transaction/create/get/delete... ...

%files -n python3-%{pypi_name}
%doc README.rst
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info

#----------------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16764 |21mr|python-zc.lockfile-2.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module zc.lockfile

Name:		python-zc.lockfile
Version:	2.0
Release:	5
Summary:	Basic inter-process locks
Group:		Development/Python
License:	Zope Public License
URL:		https://pypi.org/%{module}
Source:		https://pypi.io/packages/source/z/%{module}/%{module}-%{version}.tar.gz
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(zope.testing)
BuildRequires:	python3egg(mock)
BuildArch:      noarch

%description
The %{module} package provides a basic portable implementation of
interprocess locks using lock files. The purpose if not specifically
to lock files, but to simply provide locks with an implementation based
on file-locking primitives. Of course, these locks could be used to mediate
access to other files. For example, the ZODB file storage implementation uses
file locks to mediate access to file-storage database files. The database files
and lock file files are separate files.

#--------------------------------------------------------------

%package -n python3-%{module}
Summary:	Basic inter-process locks
Group:		Development/Python

%description -n python3-%{module}
The %{module} package provides a basic portable implementation of
interprocess locks using lock files. The purpose if not specifically
to lock files, but to simply provide locks with an implementation based
on file-locking primitives. Of course, these locks could be used to mediate
access to other files. For example, the ZODB file storage implementation uses
file locks to mediate access to file-storage database files. The database files
and lock file files are separate files.

%files -n python3-%{module}
%doc src/zc/lockfile/*.txt
%{py3_puresitedir}/%{module}-*.egg-info
%{py3_puresitedir}/%{module}-*-nspkg.pth
%{py3_puresitedir}/zc/lockfile/
%dir %{py3_puresitedir}/zc/

#--------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

%build
%py3_build

%install
%py3_install
rm -f %{buildroot}%{py3_puresitedir}/zc/lockfile/*.txt

%check
%py3_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16765 |21mr|python-zeroconf-0.36.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module zeroconf

Summary:	Pure Python Multicast DNS Service Discovery Library
Name:		python-%{module}
Version:	0.36.2
Release:	2
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/jstasiak/%{name}
Source0:	%{url}/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
A pure Python implementation of multicast DNS service discovery
supporting Bonjour/Avahi.

#----------------------------------------------------------------------------

%package -n     python3-%{module}
Summary:	Pure Python 3 Multicast DNS Service Discovery Library
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-pytest
BuildRequires:	python3-mock
BuildRequires:	python3-netifaces
BuildRequires:	python3-six
Requires:	python3-netifaces
Requires:	python3-six

%description -n python3-%{module}
A pure Python 3 implementation of multicast DNS service discovery
supporting Bonjour/Avahi.

%files -n python3-%{module}
%license COPYING
%doc README.rst
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Remove bundled egg-info
rm -rf %{module}.egg-info

# Remove enum-compat from install_requires
# See https://bugzilla.redhat.com/show_bug.cgi?id=1432165
sed -i '/enum-compat/d' setup.py

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16766 |21mr|python-zeroconf-0.38.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module zeroconf

Summary:	Pure Python Multicast DNS Service Discovery Library
Name:		python-%{module}
Version:	0.38.1
Release:	1
License:	LGPLv2+
Group:		Development/Python
Url:		https://github.com/jstasiak/%{name}
Source0:	%{url}/archive/%{version}.tar.gz?/%{module}-%{version}.tar.gz
BuildArch:	noarch

%description
A pure Python implementation of multicast DNS service discovery
supporting Bonjour/Avahi.

#----------------------------------------------------------------------------

%package -n     python3-%{module}
Summary:	Pure Python 3 Multicast DNS Service Discovery Library
Group:		Development/Python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
BuildRequires:	python3-pytest
BuildRequires:	python3-mock
BuildRequires:	python3-netifaces
BuildRequires:	python3-six
Requires:	python3-netifaces
Requires:	python3-six

%description -n python3-%{module}
A pure Python 3 implementation of multicast DNS service discovery
supporting Bonjour/Avahi.

%files -n python3-%{module}
%doc COPYING README.rst
%{python3_sitelib}/%{module}
%{python3_sitelib}/%{module}-%{version}-py*.egg-info

#----------------------------------------------------------------------------

%prep
%setup -q

# Remove bundled egg-info
rm -rf %{module}.egg-info

# Remove enum-compat from install_requires
# See https://bugzilla.redhat.com/show_bug.cgi?id=1432165
sed -i '/enum-compat/d' setup.py

%build
%py3_build


%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16767 |21mr|python-zipp-3.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name zipp

%bcond_with docs

Name:           python-%{pypi_name}
Version:        3.6.0
Release:        1
Summary:        Backport of pathlib-compatible object wrapper for zip files
Group:          Development/Python
License:        MIT
URL:            https://github.com/jaraco/zipp
Source0:        %{pypi_source}
BuildArch:      noarch

BuildRequires:  python3-devel
%if %{with docs}
BuildRequires:  python3egg(jaraco.packaging)
BuildRequires:  python3egg(rst.linker)
BuildRequires:  python3egg(sphinx)
%endif
BuildRequires:  python3egg(jaraco.itertools)
BuildRequires:  python3egg(setuptools)
BuildRequires:  python3egg(setuptools-scm)

%description
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.

#------------------------------------------------------------
%package -n     python3-%{pypi_name}
Summary:        %{summary}
Group:          Development/Python
Requires:       python3egg(contextlib2)
Requires:       python3egg(pathlib2)
Requires:       python3egg(unittest2)

%description -n python3-%{pypi_name}
A pathlib-compatible Zipfile object wrapper. A backport of the Path object.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{pypi_name}.py
%{python3_sitelib}/%{pypi_name}-%{version}-py*.egg-info

#------------------------------------------------------------

%if %{with docs}
%package -n python-%{pypi_name}-doc
Summary:        zipp documentation
Group:          Documentation

%description -n python-%{pypi_name}-doc
Documentation for zipp

%files -n python-%{pypi_name}-doc
%doc html
%license LICENSE

%endif
#------------------------------------------------------------

%prep
%autosetup -n %{pypi_name}-%{version}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info

%build
%py3_build

%if %{with docs}
# generate html docs
PYTHONPATH=${PWD} sphinx-build docs html
# remove the sphinx-build leftovers
rm -rf html/.{doctrees,buildinfo}
%endif

%install
%py3_install



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16768 |21mr|python-zmq-19.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# what it's called on pypi
%global srcname pyzmq
# what it's imported as
%global libname zmq
# name of egg info directory
%global eggname %{srcname}
# package name fragment
%global pkgname %{libname}
%global python3_pkgversion 3

%global common_description %{expand:
The 0MQ lightweight messaging kernel is a library which extends the
standard socket interfaces with features traditionally provided by
specialized messaging middle-ware products. 0MQ sockets provide an
abstraction of asynchronous message queues, multiple messaging
patterns, message filtering (subscriptions), seamless access to
multiple transport protocols and more.}

%global run_tests 0

Name:           python-%{pkgname}
Version:        19.0.1
Release:        2%{?dist}
Summary:        Software library for fast, message-based applications
Group:		Development/Python
License:        LGPLv3+ and ASL 2.0 and BSD
URL:            https://zeromq.org/languages/python/
Source0:        %pypi_source

BuildRequires:  chrpath
BuildRequires:  %{_bindir}/pathfix.py

BuildRequires:  zeromq-devel

# For some tests
# czmq currently FTBFS, so enable it some time later
#BuildRequires:  czmq-devel

BuildRequires:  python%{python3_pkgversion}-devel
BuildRequires:  python%{python3_pkgversion}-setuptools
BuildRequires:  python%{python3_pkgversion}-cython
%if 0%{?run_tests}
BuildRequires:  python%{python3_pkgversion}-pytest
BuildRequires:  python%{python3_pkgversion}-tornado
%endif


%description %{common_description}


%package -n python%{python3_pkgversion}-%{pkgname}
Summary:        %{summary}
License:        LGPLv3+
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}}
Provides:       python%{python3_pkgversion}-%{srcname} = %{version}-%{release}

%description -n python%{python3_pkgversion}-%{pkgname} %{common_description}

This package contains the python bindings.


%package -n python%{python3_pkgversion}-%{pkgname}-tests
Summary:        %{summary}, testsuite
License:        LGPLv3+
Requires:       python%{python3_pkgversion}-zmq = %{version}-%{release}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}-tests}
%{?python_provide:%python_provide python%{python3_pkgversion}-%{srcname}-tests}
Provides:       python%{python3_pkgversion}-%{srcname}-tests = %{version}-%{release}

%description -n python%{python3_pkgversion}-%{pkgname}-tests %{common_description}

This package contains the testsuite for the python bindings.


%prep
%setup -q -n %{srcname}-%{version}

# remove bundled libraries
rm -rf bundled

# forcibly regenerate the Cython-generated .c files:
find zmq -name "*.c" -delete
%{__python3} setup.py cython

# remove shebangs
for lib in zmq/eventloop/*.py; do
    sed '/\/usr\/bin\/env/d' $lib > $lib.new &&
    touch -r $lib $lib.new &&
    mv $lib.new $lib
done

# remove excecutable bits
chmod -x examples/pubsub/topics_pub.py
chmod -x examples/pubsub/topics_sub.py

# delete hidden files
#find examples -name '.*' | xargs rm -v


%build
%py3_build


%install
%global RPATH /zmq/{backend/cython,devices}
%py3_install
pathfix.py -pn -i %{__python3} %{buildroot}%{python3_sitearch}


%check
%if 0%{?run_tests}
    # Make sure we import from the install directory
    #rm zmq/__*.py
    PYTHONPATH=%{buildroot}%{python3_sitearch} \
        %{__python3} setup.py test
%endif


%files -n python%{python3_pkgversion}-%{pkgname}
%license COPYING.*
%doc README.md
# examples/
%{python3_sitearch}/%{eggname}-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/%{libname}
%exclude %{python3_sitearch}/%{libname}/tests

%files -n python%{python3_pkgversion}-%{pkgname}-tests
%{python3_sitearch}/%{libname}/tests

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16769 |21mr|python-zope-component-4.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global srcname zope.component

Summary: Zope Component Architecture
Name: python-zope-component
Group: Development/Python
Version: 4.3.0
Release: 1
URL: https://pypi.io/project/zope.component
Source0: %{pypi_source}
License: ZPLv2.1
BuildRequires: python3-devel
BuildRequires: python3-setuptools
BuildRequires: python3-sphinx
BuildArch: noarch

%description
This package represents the core of the Zope Component Architecture.
Together with the 'zope.interface' package, it provides facilities for
defining, registering and looking up components.

#----------------------------------------------------------------------

%package -n python3-zope-component
Summary: Zope Component Architecture
Group: Development/Python

%description -n python3-zope-component
This package represents the core of the Zope Component Architecture.
Together with the 'zope.interface' package, it provides facilities for
defining, registering and looking up components.

%files -n python3-zope-component
%license COPYRIGHT.txt
%doc CHANGES.rst README.rst
%doc html/
%license LICENSE.txt
%{python3_sitelib}/zope/component/
%exclude %{python3_sitelib}/zope/component/*.txt
%{python3_sitelib}/%{srcname}-*.egg-info
%{python3_sitelib}/%{srcname}-*-nspkg.pth

#----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{srcname}-%{version}

rm -rf %{srcname}.egg-info

%build
%py3_build

# build Sphinx documents
COPYRIGHT=`grep Author: PKG-INFO |sed -e 's/Author: //'`
cat >docs/conf.py <<END
templates_path = ['_templates']
source_suffix = '.rst'
master_doc = 'index'
project = '%{srcname}'
copyright = '$COPYRIGHT'
version = '%{version}'
release = '%{version}'
pygments_style = 'sphinx'
html_static_path = ['_static']
extensions = []
END

sphinx-build -b html docs/ html

rm -fr html/{.buildinfo,.doctrees}

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16770 |21mr|python-zope-event-4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:           python-zope-event
Version:	4.5.0
Group:		Development/Python
Release:	1
Summary:        Zope Event Publication
License:        ZPLv2.1
URL:            https://pypi.python.org/pypi/zope.event/
Source0:	https://files.pythonhosted.org/packages/30/00/94ed30bfec18edbabfcbd503fcf7482c5031b0fbbc9bc361f046cb79781c/zope.event-4.5.0.tar.gz
BuildArch:      noarch

%description
The zope.event package provides a simple event system. It provides
an event publishing system and a very simple event-dispatching system
on which more sophisticated event dispatching systems can be built.
(For example, a type-based event dispatching system that builds on
zope.event can be found in zope.component.)

%package -n python3-zope-event
Summary:        Zope Event Publication (Python 3)
%{?python_provide:%python_provide python3-zope-event}

BuildRequires:  python3-devel
BuildRequires:  python3-setuptools

BuildRequires:  python3-sphinx

Requires:       python3

%description -n python3-zope-event
The zope.event package provides a simple event system. It provides
an event publishing system and a very simple event-dispatching system
on which more sophisticated event dispatching systems can be built.
(For example, a type-based event dispatching system that builds on
zope.event can be found in zope.component.)

This package contains the version for Python 3.

%prep
%setup -q -n zope.event-%{version}
rm -rf %{modname}.egg-info

%build
%py3_build

# build the sphinx documents
pushd docs
PYTHONPATH=../src make SPHINXBUILD=sphinx-build-3 html
rm -f _build/html/.buildinfo
popd


%install
%py3_install

%check
%{__python3} setup.py test

%files -n python3-zope-event
%doc CHANGES.rst COPYRIGHT.txt LICENSE.txt README.rst
%doc docs/_build/html/
%license LICENSE.txt
%{python3_sitelib}/zope/event/
%exclude %{python3_sitelib}/zope/event/tests.py*
%exclude %{python3_sitelib}/zope/event/__pycache__/tests*
%dir %{python3_sitelib}/zope/
#%{python3_sitelib}/zope/__init__*
%{python3_sitelib}/zope.event-*.egg-info
%{python3_sitelib}/zope.event-*-nspkg.pth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16771 |21mr|python-zope.interface-5.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	module	zope.interface

Name:		python-%{module}
Version:	5.4.0
Release:	2
Summary:	Interfaces for Python
Source0:	%{module}-%{version}.tar.gz
License:	ZPLv2.1
Group:		Development/Python
Url:		http://pypi.python.org/pypi/zope.interface


%description
This package is intended to be independently reusable in any Python
project. It is maintained by the `Zope Toolkit project
<http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of "object interfaces" for Python.
Interfaces are a mechanism for labeling objects as conforming to a given
API or contract. So, this package can be considered as implementation of
the `Design By Contract`_ methodology support in Python.
#---------------------------------------------------------------------
%package -n python3-%{module}
Summary:	Interfaces for Python

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(zope.event)
BuildRequires:	python3egg(zope.testing)

%rename python3-zope-interface

%description -n python3-%{module}
This package is intended to be independently reusable in any Python
project. It is maintained by the `Zope Toolkit project
<http://docs.zope.org/zopetoolkit/>`_.

This package provides an implementation of "object interfaces" for Python.
Interfaces are a mechanism for labeling objects as conforming to a given
API or contract. So, this package can be considered as implementation of
the `Design By Contract`_ methodology support in Python.

%files -n python3-%{module}
%doc *.rst *.txt
%{py3_platsitedir}/zope/interface/*
%{py3_platsitedir}/zope.interface*.egg-info
%{py3_platsitedir}/zope.interface*.pth
#--------------------------------------------------------

%prep
%setup -qn %{module}-%{version}

%build
%py3_build

%install
%py3_install
rm %{buildroot}%{py3_platsitedir}/zope/interface/_zope_interface_coptimizations.c



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16772 |21mr|python-zope-testing-4.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module zope.testing


Name:           python-zope-testing
Version:        4.7
Release:        3
Summary:        Zope Testing Framework
License:        ZPLv2.1
Group:          Development/Python
URL:            https://pypi.io/project/%{module}
Source0:        https://pypi.io/packages/source/z/%{module}/%{module}-%{version}.tar.gz

BuildArch:      noarch

%description
This package provides a number of testing frameworks. It includes a
flexible test runner, and supports both doctest and unittest.

#-------------------------------------------------------
%package -n python3-zope-testing
Summary:        Zope Testing Framework


BuildRequires:  pkgconfig(python3)
BuildRequires:  python3egg(setuptools)

%description -n python3-zope-testing
This package provides a number of testing frameworks. It includes a
flexible test runner, and supports both doctest and unittest.

%files -n python3-zope-testing
%doc *.rst *.txt src/zope/testing/*.txt
%{py3_puresitedir }/zope/testing/
%exclude %{py3_puresitedir }/zope/testing/*.txt
%{py3_puresitedir }/%{module}-*.egg-info
%{py3_puresitedir }/%{module}-*-nspkg.pth
#-------------------------------------------------------


%prep
%setup -qn %{module}-%{version}

rm -rf %{module}.egg-info

%build
%py3_build

%install
%py3_install
# __init__.py* are not needed since .pth file is used
rm -f %{buildroot}%{py3_puresitedir }/zope/__init__.py*

%check
%py3_test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16773 |21mr|python-zstandard-0.19.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define upstream_name zstandard

Name:       python-%{upstream_name}
Version:    0.19.0
Release:    1
Summary:    Zstandard bindings for Python
Group:      Development/Python
License:    BSD
URL:        https://pypi.org/project/zstandard
Source0:    https://files.pythonhosted.org/packages/9a/50/1b7f7f710c0dfc1019ec4c7295f67855722c342af82f3132664ca6dc1c07/%{upstream_name}-%{version}.tar.gz

%description
This project provides Python bindings for interfacing with the Zstandard
compression library. A C extension and CFFI interface are provided.

#---------------------------------------------------------------------------------

%package -n     python3-%{upstream_name}
Summary:        Extract the top-level domain (TLD) from the URL given
Group:          Development/Python
BuildRequires:  pkgconfig(python3)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3.8dist(cffi)

%description -n python3-%{upstream_name}
This project provides Python bindings for interfacing with the Zstandard
compression library. A C extension and CFFI interface are provided.

%files -n python3-%{upstream_name}
%license LICENSE zstd/COPYING
%doc README.rst
%{python3_sitearch}/%{upstream_name}-%{version}-py%{python3_version}.egg-info
%{python3_sitearch}/%{upstream_name}

#---------------------------------------------------------------------------------

%prep
%autosetup -n %{upstream_name}-%{version} -p1

# drop bundled -egg-info
rm -rf src/*.egg-info

%build
%py3_build

%install
%py3_install






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16774 |21mr|python-zstd-1.5.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pypi_name zstd

Summary:	Zstd Bindings for Python
Name:		python-%{pypi_name}
Version:	1.5.0.2
Release:	1
License:	BSD
Group:		Development/Python
Url:		https://github.com/sergey-dryabzhinsky/python-zstd
Source0:	https://pypi.io/packages/source/z/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
# Patches to fix test execution
Patch0:		python-zstd-1.4.5.1-test-external.patch
Patch1:		python-zstd-1.5.0.2-test-once.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(libzstd) >= 1.5

%description
Simple Python bindings for the Zstd compression library.

#----------------------------------------------------------------------------

%package -n python3-%{pypi_name}
Summary:	Zstd Bindings for Python
Group:		Development/Python

%description -n python3-%{pypi_name}
Simple Python bindings for the Zstd compression library.

%files -n python3-%{pypi_name}
%license LICENSE
%doc README.rst
%{python3_sitearch}/%{pypi_name}-%{version}-py*.egg-info
%{python3_sitearch}/%{pypi_name}*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{pypi_name}-%{version}
# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# Remove bundled zstd library
rm -rf zstd/
# do not test the version matching, we don't really need exact version of
# zstd here
rm tests/test_version.py
sed -i -e '/test_version/d' tests/__init__.py

%build
%py3_build -- --legacy --external

%install
%py3_install

%check
%__python3 setup.py test


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16775 |21mr|pyudev-0.22-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A libudev binding
Name:		pyudev
Version:	0.22
Release:	3
License:	LGPLv2+
Group:		Development/Python
Url:		http://pyudev.readthedocs.org
Source0:	https://github.com/pyudev/pyudev/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires: 	pythonegg(setuptools)
BuildRequires: 	pkgconfig(python2)
BuildRequires: 	python2-pkg-resources
BuildArch:	noarch

%description
pyudev is a LGPL licensed, pure Python binding for libudev, the device and
hardware management and information library for Linux. It supports almost all
libudev functionality. You can enumerate devices, query device properties and
attributes or monitor devices, including asynchronous monitoring with threads,
or within the event loops of Qt, Glib or wxPython.

#----------------------------------------------------------------------------

%package -n python2-udev
%py2_migration_meta python2-udev
Summary:	A libudev python2 binding
# for compat with previous name
Provides:	pyudev = %{EVRD}
Provides:	python2-pyudev = %{EVRD}
Requires:	udev

%description -n python2-udev
pyudev is a LGPL licensed, pure Python binding for libudev, the device and
hardware management and information library for Linux. It supports almost all
libudev functionality. You can enumerate devices, query device properties and
attributes or monitor devices, including asynchronous monitoring with threads,
or within the event loops of Qt, Glib or wxPython.

%files -n python2-udev
%{py2_puresitedir}/*

#----------------------------------------------------------------------------

%package -n python3-udev
Summary:	A libudev python3 binding
BuildRequires: 	python3-setuptools
Provides:	python3-pyudev = %{EVRD}
Requires:	udev

%description -n python3-udev
pyudev is a LGPL licensed, pure Python3 binding for libudev, the device and
hardware management and information library for Linux. It supports almost all
libudev functionality. You can enumerate devices, query device properties and
attributes or monitor devices, including asynchronous monitoring with threads,
or within the event loops of Qt, Glib or wxPython.

%files -n python3-udev
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

mkdir -p ../py3 \
&& cp -rf * ../py3 \
&& mv ../py3 .

%build
%py2_build

cd py3
%py3_build
cd -

%install
%py2_install

cd py3
%py3_install
cd -

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16776 |21mr|pywbem-0.14.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           pywbem
Version:        0.14.6
Release:        10
Summary:        Python WBEM client interface and related utilities
License:        LGPLv2
Group:		Development/Python
URL:            https://github.com/pywbem/pywbem
Source0:        https://github.com/pywbem/pywbem/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:  python3-pip python3-PyYAML python3-ply
BuildRequires:  python3-pbr
BuildRequires:  python3-devel
BuildArch:      noarch

%description
A Python library for making CIM (Common Information Model) operations over HTTP\
using the WBEM CIM-XML protocol. It is based on the idea that a good WBEM\
client should be easy to use and not necessarily require a large amount of\
programming knowledge. It is suitable for a large range of tasks from simply\
poking around to writing web and GUI applications.\
\
WBEM, or Web Based Enterprise Management is a manageability protocol, like\
SNMP, standardized by the Distributed Management Task Force (DMTF) available\
at http://www.dmtf.org/standards/wbem.\
\
It also provides a Python provider interface, and is the fastest and\
easiest way to write providers on the planet.

%package -n python3-pywbem
Summary:        Python3 WBEM Client and Provider Interface
BuildArch:      noarch

%description -n python3-pywbem
A WBEM client allows issuing operations to a WBEM server, using the CIM
operations over HTTP (CIM-XML) protocol defined in the DMTF standards DSP0200
and DSP0201. The CIM/WBEM infrastructure is used for a wide variety of systems
management tasks supported by systems running WBEM servers. See WBEM Standards
for more information about WBEM.

%prep
%setup -q -n %{name}-%{version}

%build
PBR_VERSION="%{version}" CFLAGS="%{optflags}" %{__python3} setup.py build


%install
rm -rf %{buildroot}
env PYTHONPATH=%{buildroot}/%{python3_sitelib} \
    PBR_VERSION="%{version}" \
    %{__python3} setup.py install -O1 --skip-build --root %{buildroot}
rm -rf %{buildroot}/usr/bin/*.bat
# wbemcli are conflicting with sblim-wbemcli
mv -v %{buildroot}/%{_bindir}/wbemcli %{buildroot}/%{_bindir}/pywbemcli
sed -i -e 's/wbemcli/pywbemcli/' %{buildroot}/%{_bindir}/pywbemcli
mv -v %{buildroot}/%{_bindir}/wbemcli.py %{buildroot}/%{_bindir}/pywbemcli.py

%files -n python3-pywbem
%license LICENSE.txt
%{python3_sitelib}/*.egg-info
%{python3_sitelib}/pywbem/
%{python3_sitelib}/pywbem_mock/
%{_bindir}/mof_compiler
%{_bindir}/pywbemcli
%{_bindir}/pywbemcli.py
%doc README.rst

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16777 |21mr|pyxattr-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		pyxattr
Version:	0.7.1
Release:	1
Summary:	Extended attributes library wrapper for Python
Group:		Development/Python
License:	LGPLv2+
Url:		http://pyxattr.sourceforge.net/
Source0:	https://pypi.io/packages/source/p/%{name}/%{name}-%{version}.tar.gz

%description
Python extension module wrapper for libattr. It allows to query, list,
add and remove extended attributes from files and directories.


#----------------------------------------------------------------------------
%package -n python3-%{name}
Summary:	Extended attributes library wrapper for Python
Group:		Development/Python
BuildRequires:	python3egg(setuptools)
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(python3)

%description -n python3-%{name}
Python extension module wrapper for libattr. It allows to query, list,
add and remove extended attributes from files and directories.

%files -n python3-%{name}
%doc COPYING NEWS README.md PKG-INFO
%{python3_sitearch}/*

#----------------------------------------------------------------------------


%prep
%setup -q

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16778 |21mr|qalculate-gtk-3.20.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bname qalculate

Summary:	A very versatile desktop calculator
Name:		qalculate-gtk
Version:	3.20.1
Release:	1
License:	GPLv2+
Group:		Office
Url:		https://github.com/Qalculate/qalculate-gtk
Source0:	https://github.com/Qalculate/qalculate-gtk/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	mpfr-devel
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libqalculate) >= %{version}
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	perl(XML::Parser)
Requires:	gnuplot
Requires:	wget
Provides:	qalculate = %{version}

%description
Qalculate! is a modern multi-purpose desktop calculator for GNU/Linux. It is
small and simple to use but with much power and versatility underneath.
Features include customizable functions, units, arbitrary precision, plotting,
and a graphical interface that uses a one-line fault-tolerant expression entry
(although it supports optional traditional buttons).
This package provides the GTK frontend.

%files -f %{name}.lang
%doc AUTHORS ChangeLog NEWS README TODO
%doc %{_docdir}/qalculate-gtk/html
%{_bindir}/*
%{_datadir}/applications/*
%{_iconsdir}/hicolor/*/apps/%{bname}.png
%{_iconsdir}/hicolor/scalable/apps/%{bname}.svg
%{_mandir}/man1/qalculate-gtk.1*
%{_datadir}/metainfo/qalculate-gtk.appdata.xml
%{_libdir}/qalculate-search-provider
%{_datadir}/dbus-1/services/io.github.Qalculate.SearchProvider.service
%{_datadir}/gnome-shell/search-providers/io.github.Qalculate.search-provider.ini

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

desktop-file-install \
	--remove-category="Application" \
	--add-category="GTK" \
	--add-category="Calculator" \
	--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* 

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16779 |21mr|qbittorrent-4.6.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with nox

%define oname qBittorrent

Summary:	A lightweight but featureful BitTorrent client
Name:		qbittorrent
Version:	4.6.7
Release:	1
License:	GPLv2+
Group:		Networking/File transfer
Url:		https://www.qbittorrent.org
Source0:	https://github.com/qbittorrent/qBittorrent/archive/refs/tags/release-%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		CVE-2024-51774.patch
BuildRequires:	boost-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(libtorrent-rasterbar)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:  systemd
Requires:	geoip
Requires:	python

%description
A lightweight but feature-full BitTorrent client that aims to be very easy
to use. It is multi-platform and provides a Qt graphical interface.

%files
%doc AUTHORS Changelog COPYING README.md
%{_bindir}/%{name}
%{_datadir}/applications/org.%{name}.%{oname}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%{_iconsdir}/hicolor/*/status/%{name}-tray*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%if %{with nox}
%package nox
Summary:	A Headless Bittorrent Client
Group:		Networking/File transfer

%description nox
A Headless Bittorrent Client with a feature rich Web UI allowing users to
control the clinet remotely.

%files -n %{name}-nox
%{_bindir}/%{name}-nox
%{_mandir}/man1/%{name}-nox.1*
%{_unitdir}/%{name}-nox@.service
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n qBittorrent-release-%{version}

%build
export CXXFLAGS="-std=c++17"
#setup_compile_flags

# headless aka nox
%if %{with nox}
mkdir build-nox
pushd build-nox
	../configure \
		--disable-gui \
		--disable-silent-rules \
		--enable-systemd \
		--prefix=%{_prefix} \
		--with-boost-libdir=%{_libdir}
	cp conf.pri ..
	%make_build
	mv -f ../conf.pri ../conf.pri.nox
popd
%endif

# GUI
mkdir build-gui
pushd build-gui
	../configure \
		--disable-silent-rules \
		--prefix=%{_prefix} \
		--with-boost-libdir=%{_libdir}
	cp conf.pri ..
	%make_build
	mv -f ../conf.pri ../conf.pri.gui
popd

%install
# install headless part
%if %{with nox}
cp -f conf.pri.nox conf.pri
pushd build-nox
	make INSTALL_ROOT=%{buildroot} install STRIP=true
popd
%endif

# install gui
cp -f conf.pri.gui conf.pri
pushd build-gui
	make INSTALL_ROOT=%{buildroot} install STRIP=true
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16780 |21mr|qca-2.3.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Requires generator generate wrong Requires for qca-qt5-devel
%global __requires_exclude ^\\(cmake\\(qt5core5compat\\) or cmake\\(Qt5Core5Compat\\)\\)

%define major 2
%define libname %mklibname qca-qt5_ %{major}
%define devname %mklibname qca-qt5 -d

%global optflags %{optflags} -O3

%define git %nil
%bcond_with botan
%bcond_without openssl
%bcond_without qt6

%define _qtdir %{_libdir}/qt6

Name:		qca
Version:	2.3.5
Release:	2
Source0:	http://download.kde.org/stable/%{name}/%{version}/%{name}-%{version}.tar.xz
License:	LGPLv2+
Summary:	Straightforward and cross-platform crypto API for Qt
Group:		System/Libraries
URL:		http://userbase.kde.org/QCA
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(Qt5Test)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: qmake5
%if %{with qt6}
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Test)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6Core5Compat)
BuildRequires: ninja
BuildRequires: qt6-cmake
%endif
BuildRequires: rootcerts
BuildRequires: cmake
BuildRequires: pkgconfig(libgcrypt)
BuildRequires: pkgconfig(gpg-error)
BuildRequires: sasl-devel
BuildRequires: pkgconfig(nss)
Provides:      qca2 = %{EVRD}
Provides:      qca2-qt5 = %{EVRD}

%description
The QCA library provides an easy API for a range of cryptographic
features, including SSL/TLS, X.509 certificates, SASL, symmetric
ciphers, public key ciphers, hashes and much more.

Functionality is supplied via plugins. This is useful for avoiding
dependence on a particular crypto library and makes upgrading easier,
as there is no need to recompile your application when adding or
upgrading a crypto plugin. Also, by pushing crypto functionality into
plugins, applications are free of legal issues, such as export
regulation.

%files
%{_qt5_bindir}/mozcerts-qt5
%{_qt5_bindir}/qcatool-qt5
%_mandir/man1/qcatool-qt5.*

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for QCA
Group:		System/Libraries
Requires:	rootcerts
%if %{with openssl}
Recommends: %{libname}-plugin-openssl
%endif

%description -n %{libname}
Libraries for QCA.

%files -n %{libname}
%dir %{_qt5_plugindir}/crypto
%defattr(0755,root,root,0755)
%{_libdir}/libqca-qt5.so.*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for QCA
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}2-devel = %{EVRD}
Provides:	%{name}2-qt5-devel = %{EVRD}

%description -n %{devname}
Development files for QCA.

%files -n %{devname}
%doc README COPYING INSTALL TODO
%{_libdir}/pkgconfig/qca2-qt5.pc
%{_libdir}/qt5/mkspecs/features/crypto.prf
%{_libdir}/cmake/Qca-qt5
%{_qt5_includedir}/Qca-qt5
%{_libdir}/libqca-qt5.so

#------------------------------------------------------------------------------

%package -n qca2-qt5-plugin-gnupg
Summary:	GnuPG plugin for QCA
Group:		Development/KDE and Qt
Requires:	gnupg
Provides:	qca-qt5-plugin-gnupg-%{_lib} = %{EVRD}
Provides:	qca-qt5-plugin-gnupg = %{EVRD}
Provides:	qca2-qt5-plugin-gnupg-%{_lib} = %{EVRD}

%description -n qca2-qt5-plugin-gnupg
This is a plugin to provide GnuPG capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt5-plugin-gnupg
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-gnupg.*

#------------------------------------------------------------------------------

%if %{with openssl}
%package -n qca2-qt5-plugin-openssl
Summary:	OpenSSL plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	pkgconfig(openssl)
Provides:	qca-qt5-plugin-openssl-%{_lib} = %{EVRD}
Provides:	qca-qt5-plugin-openssl = %{EVRD}
Provides:	qca2-qt5-plugin-openssl-%{_lib} = %{EVRD}

%description -n qca2-qt5-plugin-openssl
This is a plugin to provide OpenSSL capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt5-plugin-openssl
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-ossl.*
%endif

#------------------------------------------------------------------------------

%package -n qca2-qt5-plugin-pkcs11
Summary:	PKCS11 plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkcs11-helper-devel
Provides:	qca-qt5-plugin-pkcs11-%{_lib} = %{EVRD}
Provides:	qca2-qt5-plugin-pkcs11-%{_lib} = %{EVRD}

%description -n qca2-qt5-plugin-pkcs11
This is a plugin to provide PKCS11 capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt5-plugin-pkcs11
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-pkcs11.*
#------------------------------------------------------------------------------

%package -n qca2-qt5-plugin-cyrus-sasl
Summary:	Cyrus-sasl plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	sasl-devel
Provides:	qca-qt5-plugin-cyrus-sasl-%{_lib} = %{EVRD}
Provides:	qca2-qt5-plugin-cyrus-sasl-%{_lib} = %{EVRD}

%description -n qca2-qt5-plugin-cyrus-sasl
This is a plugin to provide cyrus-sasl capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt5-plugin-cyrus-sasl
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-cyrus-sasl.*

#------------------------------------------------------------------------------

%package -n qca2-qt5-plugin-logger
Summary:	Logger plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca-qt5-plugin-logger-%{_lib} = %{EVRD}
Provides:	qca2-qt5-plugin-logger-%{_lib} = %{EVRD}

%description -n qca2-qt5-plugin-logger
This is a plugin to provide logger capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt5-plugin-logger
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-logger.*

#------------------------------------------------------------------------------

%package -n qca2-qt5-plugin-gcrypt
Summary:	GCrypt plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca-qt5-plugin-gcrypt-%{_lib} = %{EVRD}
Provides:	qca2-qt5-plugin-gcrypt-%{_lib} = %{EVRD}

%description -n qca2-qt5-plugin-gcrypt
This is a plugin to provide gcrypt capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt5-plugin-gcrypt
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-gcrypt.*

#------------------------------------------------------------------------------

%package -n qca2-qt5-plugin-nss
Summary:	NSS plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca-qt5-plugin-nss-%{_lib} = %{EVRD}
Provides:	qca2-qt5-plugin-nss-%{_lib} = %{EVRD}

%description -n qca2-qt5-plugin-nss
This is a plugin to provide nss capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt5-plugin-nss
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-nss.*

#------------------------------------------------------------------------------

%package -n qca2-qt5-plugin-softstore
Summary:	Logger plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca-qt5-plugin-softstore-%{_lib} = %{EVRD}
Provides:	qca2-qt5-plugin-softstore-%{_lib} = %{EVRD}

%description -n qca2-qt5-plugin-softstore
This is a plugin to provide softstore capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt5-plugin-softstore
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-softstore.*

#------------------------------------------------------------------------------

%if %{with botan}
%package -n qca2-qt5-plugin-botan
Summary:	Botan plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	pkgconfig(botan-2)

%description -n qca2-qt5-plugin-botan
This is a plugin to allow the Qt Cryptographic Architecture (QCA) to
use the Botan cryptography library as its backend.

%files -n qca2-qt5-plugin-botan
%attr(0755,root,root) %{_qt5_plugindir}/crypto/libqca-botan.*
%endif

#------------------------------------------------------------------------------
%if %{with qt6}
%package -n qca2-qt6
Summary:	Straightforward and cross-platform crypto API for Qt
Group:		System/Libraries
Provides:	qca-qt6 = %{EVRD}

%description -n qca2-qt6
The QCA library provides an easy API for a range of cryptographic
features, including SSL/TLS, X.509 certificates, SASL, symmetric
ciphers, public key ciphers, hashes and much more.

Functionality is supplied via plugins. This is useful for avoiding
dependence on a particular crypto library and makes upgrading easier,
as there is no need to recompile your application when adding or
upgrading a crypto plugin. Also, by pushing crypto functionality into
plugins, applications are free of legal issues, such as export
regulation.

%files -n qca2-qt6
%{_qtdir}/bin/mozcerts-qt6
%{_qtdir}/bin/qcatool-qt6
%_mandir/man1/qcatool-qt6.*

#------------------------------------------------------------------------------

%define libnameqt6 %mklibname qca-qt6_ %{major}
%define devnameqt6 %mklibname qca-qt6 -d

%package -n %{libnameqt6}
Summary:	Libraries for QCA
Group:		System/Libraries
Requires:	rootcerts
%if %{with openssl}
Recommends: %{libnameqt6}-plugin-openssl
%endif

%description -n %{libnameqt6}
Libraries for QCA.

%files -n %{libnameqt6}
%dir %{_qtdir}/plugins/crypto
%defattr(0755,root,root,0755)
%{_qtdir}/lib/libqca-qt6.so.*
%{_libdir}/libqca-qt6.so.*

#------------------------------------------------------------------------------

%package -n %{devnameqt6}
Summary:	Development files for QCA
Group:		Development/KDE and Qt
Requires:	%{libnameqt6} = %{EVRD}
Provides:	%{name}-qt6-devel = %{EVRD}
Provides:	%{name}2-qt6-devel = %{EVRD}

%description -n %{devnameqt6}
Development files for QCA.

%files -n %{devnameqt6}
%doc README COPYING INSTALL TODO
%{_libdir}/cmake/Qca-qt6
%{_qtdir}/include/Qca-qt6
%{_qtdir}/lib/libqca-qt6.so
%{_libdir}/libqca-qt6.so

#------------------------------------------------------------------------------

%package -n qca2-qt6-plugin-gnupg
Summary:	GnuPG plugin for QCA
Group:		Development/KDE and Qt
Requires:	gnupg
Provides:	qca-qt6-plugin-gnupg-%{_lib} = %{EVRD}
Provides:	qca-qt6-plugin-gnupg = %{EVRD}
Provides:	qca2-qt6-plugin-gnupg-%{_lib} = %{EVRD}

%description -n qca2-qt6-plugin-gnupg
This is a plugin to provide GnuPG capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt6-plugin-gnupg
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-gnupg.*

#------------------------------------------------------------------------------

%if %{with openssl}
%package -n qca2-qt6-plugin-openssl
Summary:	OpenSSL plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	pkgconfig(openssl)
Provides:	qca-qt6-plugin-openssl-%{_lib} = %{EVRD}
Provides:	qca-qt6-plugin-openssl = %{EVRD}
Provides:	qca2-qt6-plugin-openssl-%{_lib} = %{EVRD}

%description -n qca2-qt6-plugin-openssl
This is a plugin to provide OpenSSL capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt6-plugin-openssl
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-ossl.*
%endif

#------------------------------------------------------------------------------

%package -n qca2-qt6-plugin-pkcs11
Summary:	PKCS11 plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkcs11-helper-devel
Provides:	qca-qt6-plugin-pkcs11-%{_lib} = %{EVRD}
Provides:	qca2-qt6-plugin-pkcs11-%{_lib} = %{EVRD}

%description -n qca2-qt6-plugin-pkcs11
This is a plugin to provide PKCS11 capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt6-plugin-pkcs11
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-pkcs11.*
#------------------------------------------------------------------------------

%package -n qca2-qt6-plugin-cyrus-sasl
Summary:	Cyrus-sasl plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	sasl-devel
Provides:	qca-qt6-plugin-cyrus-sasl-%{_lib} = %{EVRD}
Provides:	qca2-qt6-plugin-cyrus-sasl-%{_lib} = %{EVRD}

%description -n qca2-qt6-plugin-cyrus-sasl
This is a plugin to provide cyrus-sasl capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt6-plugin-cyrus-sasl
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-cyrus-sasl.*

#------------------------------------------------------------------------------

%package -n qca2-qt6-plugin-logger
Summary:	Logger plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca-qt6-plugin-logger-%{_lib} = %{EVRD}
Provides:	qca2-qt6-plugin-logger-%{_lib} = %{EVRD}

%description -n qca2-qt6-plugin-logger
This is a plugin to provide logger capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt6-plugin-logger
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-logger.*

#------------------------------------------------------------------------------

%package -n qca2-qt6-plugin-gcrypt
Summary:	GCrypt plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca-qt6-plugin-gcrypt-%{_lib} = %{EVRD}
Provides:	qca2-qt6-plugin-gcrypt-%{_lib} = %{EVRD}

%description -n qca2-qt6-plugin-gcrypt
This is a plugin to provide gcrypt capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt6-plugin-gcrypt
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-gcrypt.*

#------------------------------------------------------------------------------

%package -n qca2-qt6-plugin-nss
Summary:	NSS plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca-qt6-plugin-nss-%{_lib} = %{EVRD}
Provides:	qca2-qt6-plugin-nss-%{_lib} = %{EVRD}

%description -n qca2-qt6-plugin-nss
This is a plugin to provide nss capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt6-plugin-nss
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-nss.*

#------------------------------------------------------------------------------

%package -n qca2-qt6-plugin-softstore
Summary:	Logger plugin for QCA
Group:		Development/KDE and Qt
Provides:	qca-qt6-plugin-softstore-%{_lib} = %{EVRD}
Provides:	qca2-qt6-plugin-softstore-%{_lib} = %{EVRD}

%description -n qca2-qt6-plugin-softstore
This is a plugin to provide softstore capability to programs that
utilize the Qt Cryptographic Architecture (QCA).

%files -n qca2-qt6-plugin-softstore
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-softstore.*

#------------------------------------------------------------------------------

%if %{with botan}
%package -n qca2-qt6-plugin-botan
Summary:	Botan plugin for QCA
Group:		Development/KDE and Qt
BuildRequires:	pkgconfig(botan-2)

%description -n qca2-qt6-plugin-botan
This is a plugin to allow the Qt Cryptographic Architecture (QCA) to
use the Botan cryptography library as its backend.

%files -n qca2-qt6-plugin-botan
%attr(0755,root,root) %{_qtdir}/plugins/crypto/libqca-botan.*
%endif

%endif
#------------------------------------------------------------------------------
%prep
%if 0%git
%autosetup -n %{name}-%{version}-%{git} -p1
%else
%autosetup -p1
%endif

# source for qt6 build
cp -r ../%{name}* ../qt6

%build
# Unset CMAKE_INSTALL_PREFIX to use QCA_INSTALL_IN_QT_PREFIX (see CMakeLists.txt)
%cmake_qt5 \
	-DCMAKE_INSTALL_PREFIX="" \
	-DPKGCONFIG_INSTALL_PREFIX=%{_libdir}/pkgconfig \
	-DQCA_FEATURE_INSTALL_DIR:PATH=%{_qt5_libdir}/qt5/mkspecs/features \
	-DQCA_MAN_INSTALL_DIR=%{_mandir} \
%if %{with botan}
	-DBOTANCONFIG_EXECUTABLE=%{_bindir}/botan \
%endif
%if ! %{with openssl}
	-DWITH_ossl_PLUGIN:BOOL=OFF \
%endif
	-DQCA_SUFFIX=qt5

%make

pushd ../../qt6
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qtdir} \
	-DQCA_LIBRARY_INSTALL_DIR=%{_qtdir}/lib \
	-DQCA_PLUGINS_INSTALL_DIR=%{_qtdir}/plugins \
	-DQCA_BINARY_INSTALL_DIR=%{_qtdir}/bin \
	-DQCA_FEATURE_INSTALL_DIR:PATH=%{_qtdir}/mkspecs/features \
	-DQCA_MAN_INSTALL_DIR=%{_mandir} \
%if %{with botan}
	-DBOTANCONFIG_EXECUTABLE=%{_bindir}/botan \
%endif
%if ! %{with openssl}
	-DWITH_ossl_PLUGIN:BOOL=OFF \
%endif
	-DQT6:BOOL=ON \
	-DQCA_SUFFIX=qt6

%ninja_build
popd
%install
%make_install DESTDIR=%{buildroot} -C build

pushd ../qt6
%ninja_install -C build

# Put stuff where tools will find it
# We can't do the same for %{_includedir} right now because that would
# clash with qt5 (both would want to have /usr/include/QtCore and friends)
for i in %{buildroot}%{_qtdir}/lib/*.so*; do
    ln -s qt6/lib/$(basename ${i}) %{buildroot}%{_libdir}/
done
mv %{buildroot}%{_qtdir}/lib/cmake/* %{buildroot}%{_libdir}/cmake

popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16781 |21mr|qcad-3.27.1.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _privatelibs libcomposeplatforminputcontextplugin.so|libcupsprintersupport.so|libibusplatforminputcontextplugin.so|libqcadcore.so|libqcadcustomwidgets.so|libqcaddxf.so|libqcadecmaapi.so|libqcadentity.so|libqcadgrid.so|libqcadgui.so|libqcadoperations.so|libqcadscripts.so|libqcadsnap.so|libqcadspatialindex.so|libqcadstemmer.so|libqeglfs.so|libqgif.so|libqico.so|libqjpeg.so|libqlinuxfb.so|libqminimalegl.so|libqminimal.so|libqoffscreen.so|libqsqlite.so|libqsvg.so|libqtscript_core.so|libqtscript_gui.so|libqtscript_network.so|libqtscript_opengl.so|libqtscript_printsupport.so|libqtscript_sql.so|libqtscript_uitools.so|libqtscript_widgets.so|libqtscript_xmlpatterns.so|libqtscript_xml.so|libqvnc.so|libqxcb-egl-integration.so|libqxcb-glx-integration.so|libqxcb.so
%global __provides_exclude ^(%{_privatelibs})
%global __requires_exclude ^(%{_privatelibs})
%global __qt5_version %(pkg-config --modversion Qt5Core)

%global _QCAD_DIR %{_libdir}/%{name}

Summary:	A professional CAD system
Name:		qcad
Version:	3.27.1.8
Release:	3
License:	GPLv3+
Group:		Graphics
Url:		http://www.qcad.org
Source0:	https://github.com/qcad/qcad/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
# Build static libs instead of shared
Patch0:		qcad-3.23.0.11-static.patch
BuildRequires:	qt5-tools
BuildRequires:	qt5-qttranslations
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(zlib)
Recommends:	wise

%description
QCad is a professional CAD System. With QCad you can easily construct
and change drawings with ISO-text and many other features and save
them as DXF-files. These DXF-files are the interface to many
CAD-systems such as AutoCAD(TM) and many others.

%files
%doc README.md
%license cc-by-3.0.txt gpl-3.0.txt gpl-3.0-exceptions.txt lgpl.txt LICENSE.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_iconsdir}/pixmaps/%{name}.png
%{_libdir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
sed -i -e "/Exec=/ s/F/U/" -e "/Icon=/ s/_icon//" -e "/StartupNotify/ aStartupWMClass=qcad" %{name}.desktop


# Project ERROR: Script bindings not available for Qt version 5.15.5.
# You can add them to src/3rdparty/qt-labs-qtscriptgenerator-5.15.5 or use another version of Qt.
# version 5.15.5 is missing let's hack the old one
cp -r  src/3rdparty/qt-labs-qtscriptgenerator-5.15.2 \
       src/3rdparty/qt-labs-qtscriptgenerator-%{__qt5_version}
mv  src/3rdparty/qt-labs-qtscriptgenerator-%{__qt5_version}/qt-labs-qtscriptgenerator-5.15.2.pro \
    src/3rdparty/qt-labs-qtscriptgenerator-%{__qt5_version}/qt-labs-qtscriptgenerator-%{__qt5_version}.pro

%build
export QMAKE_CFLAGS_RELEASE+="%{optflags} %(pkg-config --cflags Qt5UiTools) -I$PWD/src/3rdparty/spatialindexnavel/include"
export QMAKE_CXXFLAGS_RELEASE+="%{optflags} %(pkg-config --cflags Qt5UiTools) -I$PWD/src/3rdparty/spatialindexnavel/include"
export QMAKE_LFLAGS+="%{ldflags} -Wl,-rpath -Wl,%{_QCAD_DIR}"
export LFLAGS+="%{ldflags} -Wl,-rpath -Wl,%{_QCAD_DIR}"

# make fake header
mkdir -p src/scripting/ecmaapi/release/
touch src/scripting/ecmaapi/release/qcadecmaapi

%qmake_qt5
%make_build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications/
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_iconsdir}/pixmaps
mkdir -p %{buildroot}%{_libdir}/%{name}
mkdir -p %{buildroot}%{_mandir}/man1

echo -e '#!/bin/sh\nLD_LIBRARY_PATH=%{_libdir}/%{name}:%{_libdir}/%{name}/plugins/script QTLIB=%{_libdir} QTDIR=%{_libdir} QTINC=%{_includedir}/qt5 WISECONFIGDIR=%{_datadir}/wise QT_QPA_PLATFORM=xcb PATH=%{_libdir}:%{_libdir}/%{name} exec %{_libdir}/%{name}/%{name}-bin "$@"' > %{buildroot}%{_bindir}/%{name}
chmod +x %{buildroot}%{_bindir}/%{name}
cp %{name}.desktop %{buildroot}%{_datadir}/applications/
cp -r examples fonts libraries linetypes patterns plugins release/* scripts themes ts %{buildroot}%{_libdir}/%{name}
cp scripts/%{name}_icon.png %{buildroot}%{_iconsdir}/pixmaps/%{name}.png
cp scripts/%{name}_icon.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
cp qcad.1 %{buildroot}%{_mandir}/man1

for DIR in imageformats printsupport sqldrivers; do
	for SO in %{buildroot}%{_libdir}/%{name}/plugins/$DIR/*.so; do
		ln -sf ../../../qt5/plugins/$DIR/${SO##/*/} %{buildroot}%{_libdir}/%{name}/plugins/$DIR/${SO##/*/}
	done
done

find %{buildroot} \( -name '*.a' -o -name '.gitignore' -o -name 'Makefile*' -o -name '*.pri' -o -name '*.pro' -o -name 'readme.txt' -o -name '*.ts' \) -delete

# For "Show Readme"
cp readme.txt %{buildroot}%{_libdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16782 |21mr|qcoro-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without qt5
%bcond_with qt6

%define major 0
%define oldlibname %mklibname %{name} %{major}
%define olddevname %mklibname %{name} -d
%define qt5libname %mklibname QCoro5 %{major}
%define qt5devname %mklibname QCoro5 -d
%define qt6libname %mklibname QCoro6 %{major}
%define qt6devname %mklibname QCoro6 -d

%global oname QCoro

Name: qcoro
Version: 0.8.0
Release: 1
Group:   System/Libraries
License: MIT
Summary: C++ Coroutines for Qt
URL: https://github.com/danvratil/qcoro
Source0: https://github.com/danvratil/qcoro/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires: cmake
BuildRequires: ninja

%if %{with qt5}
BuildRequires: cmake(Qt5Concurrent)
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5DBus)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5Qml)
BuildRequires: cmake(Qt5Quick)
BuildRequires: cmake(Qt5Test)
BuildRequires: cmake(Qt5WebSockets)
BuildRequires: cmake(Qt5Widgets)
%endif

%if %{with qt6}
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6Qml)
BuildRequires: cmake(Qt6Quick)
BuildRequires: cmake(Qt6Test)
BuildRequires: cmake(Qt6WebSockets)
BuildRequires: cmake(Qt6Widgets)
BuildRequires: pkgconfig(xkbcommon)
BuildRequires: qmake-qt6
BuildRequires: qt6-cmake
%endif

%description
The QCoro library provides set of tools to make use of the C++20 coroutines
in connection with certain asynchronous Qt actions.

%package -n %{qt5libname}
Summary:	The QCoro library for Qt 5.x
Group:		System/Libraries
Provides:   qcoro
Provides:   QCoro
%rename %oldlibname

%description -n %{qt5libname}
The QCoro library provides set of tools to make use of the C++20 coroutines
in connection with certain asynchronous Qt actions.

%package -n %{qt5devname}
Summary: Development files for %{name} for Qt 5.x
Requires: %{qt5libname} = %{version}-%{release}
Provides:   qcoro-qt5-devel
Provides:   QCoro-qt5-devel
%rename %olddevname

%description -n %{qt5devname}
Development files for QCoro library for Qt 5.x

%package -n %{qt6libname}
Summary:	The QCoro library for Qt 6.x
Group:		System/Libraries
Provides:   qcoro-qt6
Provides:   QCoro-qt6

%description -n %{qt6libname}
The QCoro library provides set of tools to make use of the C++20 coroutines
in connection with certain asynchronous Qt actions.

%package -n %{qt6devname}
Summary: Development files for %{name} for Qt 6.x
Requires: %{qt6libname} = %{version}-%{release}

%description -n %{qt6devname}
Development files for QCoro library for Qt 6.x

%prep
%autosetup -p1
%if %{with qt5}
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DUSE_QT_VERSION:STRING=5 \
	-DBUILD_TESTING:BOOL=ON \
	-DQCORO_BUILD_EXAMPLES:BOOL=ON \
	-DQCORO_ENABLE_ASAN:BOOL=OFF \
	-DQCORO_WITH_QML:BOOL=ON \
	-DQCORO_WITH_QTDBUS:BOOL=ON \
	-DQCORO_WITH_QTNETWORK:BOOL=ON \
	-DQCORO_WITH_QTQUICK:BOOL=ON \
	-DQCORO_WITH_QTWEBSOCKETS:BOOL=ON \
	-G Ninja
cd ..
%endif

%if %{with qt6}
CMAKE_BUILD_DIR=build-qt6 %cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DUSE_QT_VERSION:STRING=6 \
	-DBUILD_TESTING:BOOL=ON \
	-DQCORO_BUILD_EXAMPLES:BOOL=ON \
	-DQCORO_ENABLE_ASAN:BOOL=OFF \
	-DQCORO_WITH_QML:BOOL=ON \
	-DQCORO_WITH_QTDBUS:BOOL=ON \
	-DQCORO_WITH_QTNETWORK:BOOL=ON \
	-DQCORO_WITH_QTQUICK:BOOL=ON \
	-DQCORO_WITH_QTWEBSOCKETS:BOOL=ON \
	-G Ninja
%endif

%build
%if %{with qt5}
%ninja_build -C build
%endif

%if %{with qt6}
%ninja_build -C build-qt6
%endif

%install
%if %{with qt6}
%ninja_install -C build-qt6
%endif

%if %{with qt5}
%ninja_install -C build
%endif

%if %{with qt5}
%files -n %{qt5libname}
%{_libdir}/libQCoro5*.so.%{major}*

%files -n %{qt5devname}
%doc README.md
%license LICENSES/*
%{_includedir}/qcoro5/QCoro/
%{_includedir}/qcoro5/qcoro/
%{_libdir}/cmake/QCoro5/
%{_libdir}/cmake/QCoro5Coro/
%{_libdir}/cmake/QCoro5Core/
%{_libdir}/cmake/QCoro5DBus/
%{_libdir}/cmake/QCoro5Network/
%{_libdir}/cmake/QCoro5Qml/
%{_libdir}/cmake/QCoro5Quick/
%{_libdir}/cmake/QCoro5WebSockets/
%{_libdir}/libQCoro5*.so
%{_prefix}/mkspecs/modules/qt_QCoroCore.pri
%{_prefix}/mkspecs/modules/qt_QCoroCoro.pri
%{_prefix}/mkspecs/modules/qt_QCoroDBus.pri
%{_prefix}/mkspecs/modules/qt_QCoroNetwork.pri
%{_prefix}/mkspecs/modules/qt_QCoroQml.pri
%{_prefix}/mkspecs/modules/qt_QCoroQuick.pri
%{_prefix}/mkspecs/modules/qt_QCoroWebSockets.pri
%endif

%if %{with qt6}
%files -n %{qt6libname}
%{_libdir}/libQCoro6*.so.%{major}*

%files -n %{qt6devname}
%doc README.md
%license LICENSES/*
%{_includedir}/qcoro6/QCoro/
%{_includedir}/qcoro6/qcoro/
%{_libdir}/cmake/QCoro6/
%{_libdir}/cmake/QCoro6Coro/
%{_libdir}/cmake/QCoro6Core/
%{_libdir}/cmake/QCoro6DBus/
%{_libdir}/cmake/QCoro6Qml/
%{_libdir}/cmake/QCoro6Quick/
%{_libdir}/cmake/QCoro6Network/
%{_libdir}/libQCoro6*.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16783 |21mr|qdox-2.0-6.M9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global vertag  M9

Summary:        Extract class/interface/method definitions from sources
Name:           qdox
Version:        2.0
Release:        6.%{vertag}
Epoch:          0
License:        ASL 2.0
URL:            https://github.com/paul-hammant/qdox
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./generate-tarball.sh
Source0:        %{name}-%{version}-%{vertag}.tar.gz
Source1:        qdox-MANIFEST.MF
# Remove bundled binaries which are possibly proprietary
Source2:        generate-tarball.sh

Patch0:         0001-Port-to-JFlex-1.7.0.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

BuildRequires:  byaccj
BuildRequires:  jflex

%description
QDox is a high speed, small footprint parser
for extracting class/interface/method definitions
from source files complete with JavaDoc @tags.
It is designed to be used by active code
generators or documentation tools.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API docs for %{name}.


%prep
%setup -q -n %{name}-%{version}-%{vertag}
%patch0 -p1
find -name *.jar -delete
rm -rf bootstrap

# We don't need these plugins
%pom_remove_plugin :animal-sniffer-maven-plugin
%pom_remove_plugin :maven-failsafe-plugin
%pom_remove_plugin :maven-jflex-plugin
%pom_remove_plugin :maven-enforcer-plugin

%mvn_file : %{name}
%mvn_alias : qdox:qdox

%pom_xpath_set pom:workingDirectory '${basedir}/src/main/java/com/thoughtworks/qdox/parser/impl'

%build
# Generate scanners (upstream does this with maven-jflex-plugin)
jflex -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/lexer.flex
jflex -d src/main/java/com/thoughtworks/qdox/parser/impl src/grammar/commentlexer.flex

# Build artifact
%mvn_build -f -- -Dqdox.byaccj.executable=byaccj

# Inject OSGi manifests
jar ufm target/%{name}-%{version}*.jar %{SOURCE1}

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt README.md

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16784 |21mr|qemu-7.2.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_lto 1
%define _disable_rebuild_configure 1
%define _disable_ld_no_undefined 1

%ifarch %{ix86}
%global kvm_package   system-x86
# need_qemu_kvm should only ever be used by x86
%global need_qemu_kvm 1
%endif
%ifarch %{x86_64}
%global kvm_package   system-x86
# need_qemu_kvm should only ever be used by x86
%global need_qemu_kvm 1
%endif
%ifarch %{power64}
%global kvm_package   system-ppc
%endif
%ifarch s390x
%global kvm_package   system-s390x
%endif
%ifarch %{arm}
%global kvm_package   system-arm
%endif
%ifarch aarch64
%global kvm_package   system-aarch64
%endif
%ifarch %{mips}
%global kvm_package   system-mips
%endif
%ifarch riscv64
%global kvm_package   system-riscv
%endif

%global user_static 1

%global have_kvm 0
%if 0%{?kvm_package:1}
%global have_kvm 1
%endif

# Matches numactl ExcludeArch
%global have_numactl 1
%ifarch s390 %{arm}
%global have_numactl 0
%endif

# Upstream disables iasl for big endian and QEMU checks
# for this. Fedora has re-enabled it on BE circumventing
# the QEMU checks, but it fails none the less:
#
# https://bugzilla.redhat.com/show_bug.cgi?id=1332449
%global have_iasl 1
%ifnarch s390 s390x ppc ppc64
%global have_iasl 0
%endif

%ifarch %{ix86} %{x86_64} %{armx}
%global have_spice 1
%else
# Matches spice ExclusiveArch
%global have_spice 0
%endif

# Matches xen ExclusiveArch
%global have_xen 0

%bcond_with rbd                 # disabled
%bcond_without gtk              # enabled
%bcond_without usbredir         # enabled
%bcond_without spice            # enabled
%bcond_without seccomp          # enabled

%ifarch %{ix86} %{x86_64} %{armx} %{riscv}
%global have_edk2 0
%endif

# If we can run qemu-sanity-check, hostqemu gets defined.
%ifarch %{arm}
%global hostqemu arm-softmmu/qemu-system-arm
%endif
%ifarch aarch64
%global hostqemu arm-softmmu/qemu-system-aarch64
%endif
%ifarch %{ix86}
%global hostqemu i386-softmmu/qemu-system-i386
%endif
%ifarch %{x86_64}
%global hostqemu x86_64-softmmu/qemu-system-x86_64
%endif

# All modules should be listed here.
# remove riscv on ceph upgrade
%ifarch %{ix86} %{arm} %{riscv}
%define with_block_rbd 0
%else
%define with_block_rbd 1
%endif
# not in main yet
%global with_block_gluster 0

%define EVRD %{epoch}:%{version}-%{release}

%define requires_block_curl Requires: %{name}-block-curl = %{EVRD}
%define requires_block_dmg Requires: %{name}-block-dmg = %{EVRD}
%if %{with_block_gluster}
%define requires_block_gluster Requires: %{name}-block-gluster = %{EVRD}
%define obsoletes_block_gluster %{nil}
%else
%define requires_block_gluster %{nil}
%define obsoletes_block_gluster Obsoletes: %{name}-block-gluster < %{EVRD}
%endif
%define requires_block_iscsi Requires: %{name}-block-iscsi = %{EVRD}
%define requires_block_nfs Requires: %{name}-block-nfs = %{EVRD}
%if %{with_block_rbd}
%define requires_block_rbd Requires: %{name}-block-rbd = %{EVRD}
%define obsoletes_block_rbd %{nil}
%else
%define requires_block_rbd %{nil}
%define obsoletes_block_rbd Obsoletes: %{name}-block-rbd < %{EVRD}
%endif
%define requires_block_ssh Requires: %{name}-block-ssh = %{EVRD}
%define requires_audio_alsa Requires: %{name}-audio-alsa = %{EVRD}
%define requires_audio_oss Requires: %{name}-audio-oss = %{EVRD}
%define requires_audio_pa Requires: %{name}-audio-pa = %{EVRD}
%define requires_audio_sdl Requires: %{name}-audio-sdl = %{EVRD}
%define requires_audio_dbus Requires: %{name}-audio-dbus = %{EVRD}
%define requires_ui_curses Requires: %{name}-ui-curses = %{EVRD}
%define requires_ui_gtk Requires: %{name}-ui-gtk = %{EVRD}
%define requires_ui_sdl Requires: %{name}-ui-sdl = %{EVRD}
%define requires_ui_egl_headless Requires: %{name}-ui-egl-headless = %{EVRD}
%define requires_ui_opengl Requires: %{name}-ui-opengl = %{EVRD}
%define requires_ui_dbus Requires: %{name}-ui-dbus = %{EVRD}
%define requires_device_display_virtio_gpu Requires: %{name}-device-display-virtio-gpu = %{EVRD}
%define requires_device_display_virtio_gpu_pci Requires: %{name}-device-display-virtio-gpu-pci = %{EVRD}
%define requires_device_display_virtio_vga Requires: %{name}-device-display-virtio-vga = %{EVRD}
%if %{have_spice}
%define requires_ui_spice_app Requires: %{name}-ui-spice-app = %{EVRD}
%define requires_ui_spice_core Requires: %{name}-ui-spice-core = %{EVRD}
%define requires_device_display_qxl Requires: %{name}-device-display-qxl = %{EVRD}
%define requires_audio_spice Requires: %{name}-audio-spice = %{EVRD}
%define requires_char_spice Requires: %{name}-char-spice = %{EVRD}
%else
%define requires_ui_spice_app %{nil}
%define requires_ui_spice_core %{nil}
%define requires_device_display_qxl %{nil}
%define requires_audio_spice %{nil}
%define requires_char_spice %{nil}
%endif

%global requires_all_modules \
%{requires_block_curl} \
%{requires_block_dmg} \
%{requires_block_gluster} \
%{requires_block_iscsi} \
%{requires_block_nfs} \
%{requires_block_rbd} \
%{requires_block_ssh} \
%{requires_audio_alsa} \
%{requires_audio_oss} \
%{requires_audio_pa} \
%{requires_audio_sdl} \
%{requires_audio_spice} \
%{requires_ui_egl_headless} \
%{requires_ui_opengl} \
%{requires_device_display_virtio_gpu} \
%{requires_device_display_virtio_gpu_pci} \
%{requires_device_display_virtio_vga} \
%{requires_ui_curses} \
%{requires_ui_gtk} \
%{requires_ui_sdl} \
%{requires_ui_spice_app} \
%{requires_ui_spice_core} \
%{requires_char_spice} \
%{requires_ui_dbus} \
%{requires_audio_dbus} \
%{requires_device_display_qxl}

# Modules which can be conditionally built
%global obsoletes_some_modules \
%{obsoletes_block_gluster} \
%{obsoletes_block_rbd}

Summary:	QEMU is a FAST! processor emulator
Name:		qemu
Version:	7.2.7
Release:	2
Group:		Emulators
Epoch:		3
License:	GPLv2 and BSD and MIT and CC-BY
URL:		http://www.qemu.org/

Source0: https://download.qemu.org/%{name}-%{version}.tar.xz
Source1: qemu.rpmlintrc

# guest agent service
Source10: qemu-guest-agent.service
Source17: qemu-ga.sysconfig
# guest agent udev rules
Source11: 99-qemu-guest-agent.rules
# /etc/qemu/bridge.conf
Source12: bridge.conf
# qemu-kvm back compat wrapper installed as /usr/bin/qemu-kvm
Source13: qemu-kvm.sh
# PR manager service
Source14: qemu-pr-helper.service
Source15: qemu-pr-helper.socket
# /etc/modprobe.d/kvm.conf, for x86
Source20: kvm-x86.modprobe.conf
# /etc/security/limits.d/95-kvm-ppc64-memlock.conf
Source21: 95-kvm-ppc64-memlock.conf

Patch0:	qemu-6.1.0-fix-disable-gnutls.patch

# version 7.2.7 fixed CVE: CVE-2023-0330 CVE-2023-3301 CVE-2023-3255
# CVE-2023-3354 CVE-2023-0664 CVE-2023-1544 CVE-2023-3180 CVE-2021-20255
# CVE-2023-42467 CVE-2023-40360 CVE-2023-4135 CVE-2023-1386 CVE-2017-5957

BuildRequires: %mklibname zstd -s -d
BuildRequires: meson
# documentation deps
BuildRequires: texinfo
BuildRequires: capstone-devel
# For /usr/bin/pod2man
#BuildRequires: perl-podlators
# For sanity test
# BuildRequires: qemu-sanity-check-nodeps
%if %{have_iasl}
# For acpi compilation
BuildRequires: iasl
%endif
# For chrpath calls in specfile
BuildRequires:	chrpath
BuildRequires:	stdc++-static-devel
BuildRequires:	pkgconfig(libibverbs)

# -display sdl support
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(libzstd)
# used in various places for compression
BuildRequires:	zlib-devel
BuildRequires:	pkgconfig(vdeplug)
BuildRequires:	xfsprogs-devel

# used in various places for crypto
BuildRequires:	gnutls-devel
# VNC sasl auth support
BuildRequires:	sasl-devel
# aio implementation for block drivers
BuildRequires:	libaio-devel
# pulseaudio audio output
BuildRequires:	pkgconfig(libpulse)
# alsa audio output
BuildRequires:	alsa-oss-devel
BuildRequires:	pkgconfig(alsa)
# Jack audio output
BuildRequires:	pkgconfig(jack)
# qemu-pr-helper multipath support (requires libudev too)
BuildRequires:	device-mapper-multipath-devel
BuildRequires:	systemd
# iscsi drive support
BuildRequires:	pkgconfig(libiscsi)
# NFS drive support
BuildRequires:	pkgconfig(libnfs)
# snappy compression for memory dump
BuildRequires:	snappy-devel
# lzo compression for memory dump
BuildRequires:	pkgconfig(lzo2)
# needed for -display curses
BuildRequires:	pkgconfig(ncurses)
# used by 9pfs
BuildRequires:  attr-devel
BuildRequires:  cap-devel
# used by qemu-bridge-helper and qemu-pr-helper
BuildRequires:	pkgconfig(libcap-ng)
# spice usb redirection support
%if %{with usbredir}
BuildRequires:	usbredir-devel >= 0.5.2
BuildRequires:	pkgconfig(libusbredirhost) >= 0.5.2
%endif
%if %{have_spice}
# spice graphics support
BuildRequires:	pkgconfig(spice-server)
BuildRequires:	pkgconfig(spice-protocol)
%endif
%if %{with seccomp}
# seccomp containment support
BuildRequires: pkgconfig(libseccomp) >= 2.3.0
%endif
# For network block driver
BuildRequires: pkgconfig(libcurl)
%if %{with_block_rbd}
# For rbd block driver
BuildRequires: ceph-devel
%endif
# We need both because the 'stap' binary is probed for by configure
BuildRequires: systemtap
BuildRequires: systemtap-devel
# For VNC JPEG support
BuildRequires: jpeg-devel
# For VNC PNG support
BuildRequires: pkgconfig(libpng)
# For BlueZ device support
BuildRequires: pkgconfig(bluez)
# For Braille device support
#BuildRequires: brlapi-devel
%if %{with fdt}
# For FDT device tree support
BuildRequires:	fdt-devel
%endif
# Hard requirement for version >= 1.3
BuildRequires:	pkgconfig(pixman-1)
%if %{with_block_gluster}
# For gluster support
BuildRequires: glusterfs-devel >= 3.4.0
%endif
# Needed for usb passthrough for qemu >= 1.5
BuildRequires:	pkgconfig(libusb-1.0)
# SSH block driver
BuildRequires:	pkgconfig(libssh)
# GTK frontend
%if %{with gtk}
# GTK frontend
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(vte-2.91)
# GTK translations
BuildRequires: gettext
%endif
# RDMA migration
BuildRequires: rdmacm-devel
%if %{have_xen}
# Xen support
BuildRequires: xen-devel
%endif
%if %{have_numactl}
# qemu 2.1: needed for memdev hostmem backend
%ifnarch %{arm} %{risc}
BuildRequires:	numa-devel
%endif
%endif
# qemu 2.3: reading bzip2 compressed dmg images
BuildRequires: bzip2-devel
# qemu 2.4: needed for opengl bits
BuildRequires:	pkgconfig(epoxy)
# qemu 2.5: needed for TLS test suite
BuildRequires:	pkgconfig(libtasn1)
# qemu 2.5: libcacard is it's own project now
BuildRequires:	pkgconfig(libcacard)
# qemu 2.5: virgl 3d support
BuildRequires:	virglrenderer-devel
# qemu 2.6: Needed for gtk GL support
BuildRequires:	pkgconfig(gl)
# gpu vhost
BuildRequires:	pkgconfig(gbm)
# qemu 2.11: preferred disassembler for TCG
BuildRequires:	capstone-devel
BuildRequires:	pkgconfig(slirp)
# qemu 2.12: parallels disk images require libxml2 now
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(liburing)
%ifarch %{x86_64}
# qemu 3.1: Used for nvdimm
#BuildRequires: libpmem-devel
%endif
# qemu 3.1: Used for qemu-ga
BuildRequires:	pkgconfig(udev)
# qemu 4.0: Use for qauth infrastructure
BuildRequires:	pam-devel
# qemu 4.0: sphinx-build used for some docs
BuildRequires:	python3-sphinx
BuildRequires:	python3-sphinx_rtd_theme
# qemu 4.0: Used by test suite ./scripts/tap-driver.pl
BuildRequires:	perl-Test-Harness
# Required for making python shebangs versioned
BuildRequires:	python3-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	glib2-static-devel

BuildRequires:	pcre-static-devel
BuildRequires:	glibc-static-devel
BuildRequires:	gpg-error-static-devel
BuildRequires:	zlib-static-devel
BuildRequires:	%{_lib}atomic-static-devel

%if 0%{?hostqemu:1}
# For complicated reasons, this is required so that
# /bin/kernel-install puts the kernel directly into /boot, instead of
# into a /boot/<machine-id> subdirectory (in Fedora >= 23).  This is
# so we can run qemu-sanity-check.  Read the kernel-install script to
# understand why.
BuildRequires: grubby
%endif

Requires: %{name}-user = %{EVRD}
Requires: %{name}-kvm = %{EVRD}
Requires: %{name}-device-usb = %{EVRD}
Requires: %{name}-img = %{EVRD}


%description
QEMU is a generic and open source processor emulator which achieves a good
emulation speed by using dynamic translation. QEMU has two operating modes:

 * Full system emulation. In this mode, QEMU emulates a full system (for
   example a PC), including a processor and various peripherials. It can be
   used to launch different Operating Systems without rebooting the PC or
   to debug system code.
 * User mode emulation. In this mode, QEMU can launch Linux processes compiled
   for one CPU on another CPU.

As QEMU requires no host kernel patches to run, it is safe and easy to use.

#---------------------------------------------------------------------------

%package -n	ipxe
Summary:        PXE ROMs for QEMU NICs
Group:          Emulators
BuildArch:      noarch
Conflicts:      qemu < 1.6.0

%description -n	ipxe
Preboot Execution Environment (PXE) ROM support for various emulated network
adapters available with QEMU.

#---------------------------------------------------------------------------

%package -n	vgabios
Summary:        VGA BIOSes for QEMU
Group:          Emulators
BuildArch:      noarch

%description -n	vgabios
VGABIOS provides the video ROM BIOSes for the following variants of VGA
emulated devices: Std VGA, QXL, Cirrus CLGD 5446 and VMware emulated
video card.

#---------------------------------------------------------------------------

%package -n	sgabios
Summary:        Serial Graphics Adapter BIOS for QEMU
Group:          Emulators
BuildArch:      noarch

%description -n	sgabios
The Google Serial Graphics Adapter BIOS or SGABIOS provides a means for legacy
x86 software to communicate with an attached serial console as if a video card
were attached.

#---------------------------------------------------------------------------

%package -n	seabios
Summary:        X86 BIOS for QEMU
Group:          Emulators
BuildArch:      noarch

%description -n	seabios
SeaBIOS is an open source implementation of a 16bit x86 BIOS. SeaBIOS
is the default BIOS for QEMU.

#---------------------------------------------------------------------------

%package doc
Summary: QEMU docs
%description doc

#---------------------------------------------------------------------------

%package  common
Summary: QEMU common files needed by all QEMU targets
Requires:	ipxe
Requires:	seabios
Requires:	sgabios
Requires:	vgabios
Requires(post): /usr/bin/getent
Requires(post): /usr/sbin/groupadd
Requires(post): /usr/sbin/useradd
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%{obsoletes_some_modules}
%description common
This package provides the common files needed by all QEMU targets

#---------------------------------------------------------------------------

%package guest-agent
Summary: QEMU guest agent
Requires(post): systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%description guest-agent
This package provides an agent to run inside guests, which communicates
with the host over a virtio-serial channel named "org.qemu.guest_agent.0"

This package does not need to be installed on the host OS.

#---------------------------------------------------------------------------

%package  img
Summary: QEMU command line tool for manipulating disk images
%description img
This package provides a command line tool for manipulating disk images

#---------------------------------------------------------------------------

%package  block-curl
Summary: QEMU CURL block driver
Requires: %{name}-common = %{EVRD}
%description block-curl
This package provides the additional CURL block driver for QEMU.

Install this package if you want to access remote disks over
http, https, ftp and other transports provided by the CURL library.

#---------------------------------------------------------------------------

%package  block-dmg
Summary: QEMU block driver for DMG disk images
Requires: %{name}-common = %{EVRD}
%description block-dmg
This package provides the additional DMG block driver for QEMU.

Install this package if you want to open '.dmg' files.

#---------------------------------------------------------------------------

%if %{with_block_gluster}
%package  block-gluster
Summary: QEMU Gluster block driver
Requires: %{name}-common = %{EVRD}
%description block-gluster
This package provides the additional Gluster block driver for QEMU.

Install this package if you want to access remote Gluster storage.
%endif

#---------------------------------------------------------------------------

%package  block-iscsi
Summary: QEMU iSCSI block driver
Requires: %{name}-common = %{EVRD}
%description block-iscsi
This package provides the additional iSCSI block driver for QEMU.

Install this package if you want to access iSCSI volumes.

#---------------------------------------------------------------------------

%package  block-nfs
Summary: QEMU NFS block driver
Requires: %{name}-common = %{EVRD}

%description block-nfs
This package provides the additional NFS block driver for QEMU.

Install this package if you want to access remote NFS storage.

#---------------------------------------------------------------------------

%if %{with_block_rbd}
%package  block-rbd
Summary: QEMU Ceph/RBD block driver
Provides: qemu-kvm-block-rbd = %{EVRD}
Requires: %{name}-common = %{EVRD}

%description block-rbd
This package provides the additional Ceph/RBD block driver for QEMU.

Install this package if you want to access remote Ceph volumes
using the rbd protocol.
%endif
#---------------------------------------------------------------------------

%package  block-ssh
Summary: QEMU SSH block driver
Requires: %{name}-common = %{EVRD}
Provides: qemu-kvm-block-ssh = %{EVRD}
%description block-ssh
This package provides the additional SSH block driver for QEMU.

Install this package if you want to access remote disks using
the Secure Shell (SSH) protocol.

#---------------------------------------------------------------------------

%package  audio-alsa
Summary: QEMU ALSA audio driver
Requires: %{name}-common = %{EVRD}
%description audio-alsa
This package provides the additional ALSA audio driver for QEMU.

%package  audio-oss
Summary: QEMU OSS audio driver
Requires: %{name}-common = %{EVRD}
%description audio-oss
This package provides the additional OSS audio driver for QEMU.

#---------------------------------------------------------------------------

%package  audio-pa
Summary: QEMU PulseAudio audio driver
Requires: %{name}-common = %{EVRD}
%description audio-pa
This package provides the additional PulseAudi audio driver for QEMU.

#---------------------------------------------------------------------------

%package  audio-sdl
Summary: QEMU SDL audio driver
Requires: %{name}-common = %{EVRD}
%description audio-sdl
This package provides the additional SDL audio driver for QEMU.

#---------------------------------------------------------------------------
%package  audio-dbus
Summary: QEMU D-Bus audio driver
Requires: %{name}-common = %{EVRD}
%description audio-dbus
This package provides the additional D-Bus audio driver for QEMU.

#---------------------------------------------------------------------------

%package  audio-jack
Summary: QEMU Jack audio driver
Requires: %{name}-common = %{EVRD}
%description audio-jack
This package provides the additional Jack audio driver for QEMU.

#---------------------------------------------------------------------------

%package  ui-curses
Summary: QEMU curses UI driver
Requires: %{name}-common = %{EVRD}
%description ui-curses
This package provides the additional curses UI for QEMU.

#---------------------------------------------------------------------------

%package  ui-gtk
Summary: QEMU GTK UI driver
Requires: %{name}-common = %{EVRD}
%description ui-gtk
This package provides the additional GTK UI for QEMU.

#---------------------------------------------------------------------------

%package  ui-sdl
Summary: QEMU SDL UI driver
Requires: %{name}-common = %{EVRD}
%description ui-sdl
This package provides the additional SDL UI for QEMU.

#---------------------------------------------------------------------------

%package  ui-egl-headless
Summary: QEMU EGL headless driver
Requires: %{name}-common = %{EVRD}
Requires: %{name}-ui-opengl = %{EVRD}
%description ui-egl-headless
This package provides the additional egl-headless UI for QEMU.

#---------------------------------------------------------------------------

%package  ui-opengl
Summary: QEMU OpenGL driver
Requires: %{name}-common = %{EVRD}
%description ui-opengl
This package provides the additional opengl UI for QEMU.

#---------------------------------------------------------------------------

%package  ui-dbus
Summary: QEMU D-Bus UI driver
Requires: %{name}-common = %{EVRD}
%description ui-dbus
This package provides the additional D-Bus UI for QEMU.

#---------------------------------------------------------------------------

%package device-display-virtio-gpu
Summary: QEMU virtio-gpu display device
Requires: %{name}-common = %{EVRD}
%description device-display-virtio-gpu
This package provides the virtio-gpu display device for QEMU.

#---------------------------------------------------------------------------

%package device-display-virtio-gpu-pci
Summary: QEMU virtio-gpu-pci display device
Requires: %{name}-common = %{EVRD}

%description device-display-virtio-gpu-pci
This package provides the virtio-gpu-pci display device for QEMU.

#---------------------------------------------------------------------------

%package device-display-virtio-vga
Summary: QEMU virtio-vga display device
Requires: %{name}-common = %{EVRD}
%description device-display-virtio-vga
This package provides the virtio-vga display device for QEMU.

#---------------------------------------------------------------------------

%package device-usb
Summary: QEMU USB host plugin
Requires: %{name}-common = %{EVRD}
%description device-usb
QEMU USB host plugin

#---------------------------------------------------------------------------

%if %{have_spice}
%package  ui-spice-core
Summary: QEMU Spice UI driver
Requires: %{name}-common = %{EVRD}
%description ui-spice-core
This package provides the additional Spice UI for QEMU.

#---------------------------------------------------------------------------

%package  ui-spice-app
Summary: QEMU spice-app UI driver
Requires: %{name}-common = %{EVRD}
Requires: %{name}-ui-spice-core = %{EVRD}
Requires: %{name}-char-spice = %{EVRD}
%description ui-spice-app
This package provides the additional spice-app UI for QEMU.

#---------------------------------------------------------------------------

%package device-display-qxl
Summary: QEMU QXL display device
Requires: %{name}-common = %{EVRD}
Requires: %{name}-ui-spice-core = %{EVRD}
%description device-display-qxl
This package provides the QXL display device for QEMU.

#---------------------------------------------------------------------------

%package  char-spice
Summary: QEMU spice chardev driver
Requires: %{name}-common = %{EVRD}
Requires: %{name}-ui-spice-core = %{EVRD}
%description char-spice
This package provides the spice chardev driver for QEMU.

#---------------------------------------------------------------------------

%package  audio-spice
Summary: QEMU spice audio driver
Requires: %{name}-common = %{EVRD}
Requires: %{name}-ui-spice-core = %{EVRD}
%description audio-spice
This package provides the spice audio driver for QEMU.
%endif

#---------------------------------------------------------------------------

%if %{have_kvm}
%package kvm
Summary: QEMU metapackage for KVM support
Requires: qemu-%{kvm_package} = %{EVRD}
%description kvm
This is a meta-package that provides a qemu-system-<arch> package for native
architectures where kvm can be enabled. For example, in an x86 system, this
will install qemu-system-x86

#---------------------------------------------------------------------------

%package kvm-core
Summary: QEMU metapackage for KVM support
Requires: qemu-%{kvm_package}-core = %{EVRD}
%description kvm-core
This is a meta-package that provides a qemu-system-<arch>-core package
for native architectures where kvm can be enabled. For example, in an
x86 system, this will install qemu-system-x86-core
%endif

#---------------------------------------------------------------------------

%package user
Summary: QEMU user mode emulation of qemu targets
Requires: %{name}-common = %{EVRD}
# On upgrade, make qemu-user get replaced with qemu-user + qemu-user-binfmt
Obsoletes: %{name}-user < 2:2.6.0-5%{?dist}
%description user
This package provides the user mode emulation of qemu targets

#---------------------------------------------------------------------------

%package user-binfmt
Summary: QEMU user mode emulation of qemu targets
Requires: %{name}-user = %{EVRD}
Requires(post): systemd-units
Requires(postun): systemd-units
# qemu-user-binfmt + qemu-user-static both provide binfmt rules
Conflicts: %{name}-user-static
# On upgrade, make qemu-user get replaced with qemu-user + qemu-user-binfmt
Obsoletes: %{name}-user < 2:2.6.0-5%{?dist}
%description user-binfmt
This package provides the user mode emulation of qemu targets

#---------------------------------------------------------------------------

%if %{user_static}
%package user-static-tapset
Summary: QEMU user mode emulation of qemu targets static build
Requires: %{name}-common = %{EVRD}

%description user-static-tapset
This package provides the user mode emulation of qemu targets built as
static binaries
%endif

#---------------------------------------------------------------------------

%package system-aarch64
Summary: QEMU system emulator for AArch64
Requires: %{name}-system-aarch64-core = %{EVRD}
%{requires_all_modules}
%description system-aarch64
This package provides the QEMU system emulator for AArch64.

#---------------------------------------------------------------------------

%package system-aarch64-core
Summary: QEMU system emulator for AArch64
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-aarch64 = %{EVRD}
%if %{have_edk2}
Requires: edk2-aarch64
%endif
%description system-aarch64-core
This package provides the QEMU system emulator for AArch64.

#---------------------------------------------------------------------------

%package system-alpha
Summary: QEMU system emulator for Alpha
Requires: %{name}-system-alpha-core = %{EVRD}
%{requires_all_modules}
%description system-alpha
This package provides the QEMU system emulator for Alpha systems.

#---------------------------------------------------------------------------

%package system-alpha-core
Summary: QEMU system emulator for Alpha
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-alpha = %{EVRD}
%description system-alpha-core
This package provides the QEMU system emulator for Alpha systems.

#---------------------------------------------------------------------------

%package system-arm
Summary: QEMU system emulator for ARM
Requires: %{name}-system-arm-core = %{EVRD}
%{requires_all_modules}
%description system-arm
This package provides the QEMU system emulator for ARM systems.

#---------------------------------------------------------------------------

%package system-arm-core
Summary: QEMU system emulator for ARM
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-arm = %{EVRD}
%description system-arm-core
This package provides the QEMU system emulator for ARM boards.

#---------------------------------------------------------------------------

%package system-avr
Summary: QEMU system emulator for ARM
Requires: %{name}-system-avr-core = %{EVRD}
%{requires_all_modules}
%description system-avr
This package provides the QEMU system emulator for AVR systems.

#---------------------------------------------------------------------------

%package system-avr-core
Summary: QEMU system emulator for ARM
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-avr = %{EVRD}
%description system-avr-core
This package provides the QEMU system emulator for AVR boards.

#---------------------------------------------------------------------------

%package system-cris
Summary: QEMU system emulator for CRIS
Requires: %{name}-system-cris-core = %{EVRD}
%{requires_all_modules}
%description system-cris
This package provides the system emulator for CRIS systems.

#---------------------------------------------------------------------------

%package system-cris-core
Summary: QEMU system emulator for CRIS
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-cris = %{EVRD}
%description system-cris-core
This package provides the system emulator for CRIS boards.

#---------------------------------------------------------------------------

%package system-hppa
Summary: QEMU system emulator for HPPA
Requires: %{name}-system-hppa-core = %{EVRD}
%{requires_all_modules}
%description system-hppa
This package provides the QEMU system emulator for HPPA.

#---------------------------------------------------------------------------

%package system-hppa-core
Summary: QEMU system emulator for hppa
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-hppa = %{EVRD}
%description system-hppa-core
This package provides the QEMU system emulator for HPPA.

#---------------------------------------------------------------------------

%package system-m68k
Summary: QEMU system emulator for ColdFire (m68k)
Requires: %{name}-system-m68k-core = %{EVRD}
%{requires_all_modules}
%description system-m68k
This package provides the QEMU system emulator for ColdFire boards.

#---------------------------------------------------------------------------

%package system-m68k-core
Summary: QEMU system emulator for ColdFire (m68k)
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-m68k = %{EVRD}
%description system-m68k-core
This package provides the QEMU system emulator for ColdFire boards.

#---------------------------------------------------------------------------

%package system-microblaze
Summary: QEMU system emulator for Microblaze
Requires: %{name}-system-microblaze-core = %{EVRD}
%{requires_all_modules}
%description system-microblaze
This package provides the QEMU system emulator for Microblaze boards.

#---------------------------------------------------------------------------

%package system-microblaze-core
Summary: QEMU system emulator for Microblaze
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-microblaze = %{EVRD}
%description system-microblaze-core
This package provides the QEMU system emulator for Microblaze boards.

#---------------------------------------------------------------------------

%package system-mips
Summary: QEMU system emulator for MIPS
Requires: %{name}-system-mips-core = %{EVRD}
%{requires_all_modules}
%description system-mips
This package provides the QEMU system emulator for MIPS systems.

#---------------------------------------------------------------------------

%package system-mips-core
Summary: QEMU system emulator for MIPS
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-mips = %{EVRD}
%description system-mips-core
This package provides the QEMU system emulator for MIPS systems.

#---------------------------------------------------------------------------

%package system-nios2
Summary: QEMU system emulator for nios2
Requires: %{name}-system-nios2-core = %{EVRD}
%{requires_all_modules}
%description system-nios2
This package provides the QEMU system emulator for NIOS2.

#---------------------------------------------------------------------------

%package system-nios2-core
Summary: QEMU system emulator for nios2
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-nios2 = %{EVRD}
%description system-nios2-core
This package provides the QEMU system emulator for NIOS2.

#---------------------------------------------------------------------------

%package system-or1k
Summary: QEMU system emulator for OpenRisc32
Requires: %{name}-system-or1k-core = %{EVRD}
Obsoletes: %{name}-system-or32 < 2:2.9.0
%{requires_all_modules}
%description system-or1k
This package provides the QEMU system emulator for OpenRisc32 boards.

#---------------------------------------------------------------------------

%package system-or1k-core
Summary: QEMU system emulator for OpenRisc32
Requires: %{name}-common = %{EVRD}
Obsoletes: %{name}-system-or32-core < 2:2.9.0
Suggests: %{name}-system-or1k = %{EVRD}
%description system-or1k-core
This package provides the QEMU system emulator for OpenRisc32 boards.

#---------------------------------------------------------------------------

%package system-ppc
Summary: QEMU system emulator for PPC
Requires: %{name}-system-ppc-core = %{EVRD}
%{requires_all_modules}
%description system-ppc
This package provides the QEMU system emulator for PPC and PPC64 systems.

#---------------------------------------------------------------------------

%package system-ppc-core
Summary: QEMU system emulator for PPC
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-ppc = %{EVRD}
Requires: seabios
Requires: sgabios
Requires: vgabios
%description system-ppc-core
This package provides the QEMU system emulator for PPC and PPC64 systems.

#---------------------------------------------------------------------------

%package system-riscv
Summary: QEMU system emulator for RISC-V
Requires: %{name}-system-riscv-core = %{EVRD}
%{requires_all_modules}
%description system-riscv
This package provides the QEMU system emulator for RISC-V systems.

#---------------------------------------------------------------------------

%package system-riscv-core
Summary: QEMU system emulator for RISC-V
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-riscv = %{EVRD}
%description system-riscv-core
This package provides the QEMU system emulator for RISC-V systems.

#---------------------------------------------------------------------------

%package system-s390x
Summary: QEMU system emulator for S390
Requires: %{name}-system-s390x-core = %{EVRD}
%{requires_all_modules}
%description system-s390x
This package provides the QEMU system emulator for S390 systems.

#---------------------------------------------------------------------------

%package system-s390x-core
Summary: QEMU system emulator for S390
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-s390x = %{EVRD}
%description system-s390x-core
This package provides the QEMU system emulator for S390 systems.

#---------------------------------------------------------------------------

%package system-sh4
Summary: QEMU system emulator for SH4
Requires: %{name}-system-sh4-core = %{EVRD}
%{requires_all_modules}
%description system-sh4
This package provides the QEMU system emulator for SH4 boards.

#---------------------------------------------------------------------------

%package system-sh4-core
Summary: QEMU system emulator for SH4
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-sh4 = %{EVRD}
%description system-sh4-core
This package provides the QEMU system emulator for SH4 boards.

#---------------------------------------------------------------------------

%package system-sparc
Summary: QEMU system emulator for SPARC
Requires: %{name}-system-sparc-core = %{EVRD}
%{requires_all_modules}
%description system-sparc
This package provides the QEMU system emulator for SPARC and SPARC64 systems.

#---------------------------------------------------------------------------

%package system-sparc-core
Summary: QEMU system emulator for SPARC
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-sparc = %{EVRD}
%description system-sparc-core
This package provides the QEMU system emulator for SPARC and SPARC64 systems.

#---------------------------------------------------------------------------

%package system-tricore
Summary: QEMU system emulator for tricore
Requires: %{name}-system-tricore-core = %{EVRD}
%{requires_all_modules}
%description system-tricore
This package provides the QEMU system emulator for Tricore.

#---------------------------------------------------------------------------

%package system-tricore-core
Summary: QEMU system emulator for tricore
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-tricore = %{EVRD}
%description system-tricore-core
This package provides the QEMU system emulator for Tricore.

#---------------------------------------------------------------------------

%package system-x86
Summary: QEMU system emulator for x86
Requires: %{name}-system-x86-core = %{EVRD}
%{requires_all_modules}
%description system-x86
This package provides the QEMU system emulator for x86. When being run in a x86
machine that supports it, this package also provides the KVM virtualization
platform.

#---------------------------------------------------------------------------

%package system-x86-core
Summary: QEMU system emulator for x86
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-x86 = %{EVRD}
Requires: seabios
Requires: sgabios
Requires: vgabios
%if %{have_edk2}
Requires: edk2-ovmf
%endif
%description system-x86-core
This package provides the QEMU system emulator for x86. When being run in a x86
machine that supports it, this package also provides the KVM virtualization
platform.

#---------------------------------------------------------------------------

%package system-xtensa
Summary: QEMU system emulator for Xtensa
Requires: %{name}-system-xtensa-core = %{EVRD}
%{requires_all_modules}
%description system-xtensa
This package provides the QEMU system emulator for Xtensa boards.

#---------------------------------------------------------------------------

%package system-xtensa-core
Summary: QEMU system emulator for Xtensa
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-xtensa = %{EVRD}
%description system-xtensa-core
This package provides the QEMU system emulator for Xtensa boards.

#---------------------------------------------------------------------------

%package system-rx
Summary: QEMU system emulator for Renesas RX
%description system-rx
This package provides the QEMU system emulator for Renesas RX

#---------------------------------------------------------------------------
#---------------------------------------------------------------------------

%package system-loongarch64
Summary: QEMU system emulator for loongarch64
Requires: %{name}-system-loongarch64-core = %{EVRD}
%{requires_all_modules}
%description system-loongarch64
This package provides the QEMU system emulator for loongarch64 boards.

#---------------------------------------------------------------------------

%package system-loongarch64-core
Summary: QEMU system emulator for loongarch64
Requires: %{name}-common = %{EVRD}
Suggests: %{name}-system-loongarch64 = %{EVRD}
%description system-loongarch64-core
This package provides the QEMU system emulator for loongarch64 boards.

#-------------------------------------------------------------

# ARMx
%ifarch %{armx}
	#list with conf file in binfmt
	%define static_arches aarch64_be i386 x86_64 alpha armeb hexagon hppa m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el or1k ppc ppc64 ppc64le riscv32 riscv64 s390x sh4 sh4eb sparc sparc32plus sparc64 xtensa xtensaeb loongarch64
	#list without conf file in binfmt
	%define static_wo_binfmt cris aarch64 arm nios2 trace-stap
%endif

# intel arches
%ifarch %{ix86} %{x86_64}
	#list with conf file in binfmt
	%define static_arches aarch64 aarch64_be alpha arm armeb hexagon hppa m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el or1k ppc ppc64 ppc64le riscv32 riscv64 s390x sh4 sh4eb sparc sparc32plus sparc64 xtensa xtensaeb loongarch64
	#list without conf file in binfmt
	%define static_wo_binfmt cris i386 nios2 trace-stap x86_64
%endif

# riscv-V
%ifarch %{riscv}
	#list with conf file in binfmt
	%define static_arches aarch64_be arm aarch64 i386 x86_64 alpha armeb hexagon hppa m68k microblaze microblazeel mips mips64 mips64el mipsel mipsn32 mipsn32el or1k ppc ppc64 ppc64le s390x sh4 sh4eb sparc sparc32plus sparc64 xtensa xtensaeb loongarch64
	#list without conf file in binfmt
	%define static_wo_binfmt cris nios2 trace-stap riscv64 riscv32
%endif

#-------------------------------------------------------------

%{expand:%(for arch in %static_arches; do archstatic=${arch}; cat <<EOF
%%package       $archstatic-static
Summary:        Qemu static binary for $archstatic
# no one should require this, but provided anyway for maximum compatibility:
Provides:       qemu-static-$archstatic = %{EVRD}
Group:          System/Libraries

%%description $archstatic-static
QEMU static binary for $archstatic

%%files $archstatic-static
%{_bindir}/qemu-$archstatic-static
/usr/lib/binfmt.d/qemu-$archstatic-static.conf

%post -n qemu-$archstatic-static
%{_bindir}/systemctl restart systemd-binfmt
EOF
done)}

%{expand:%(for arch in %static_wo_binfmt; do archstatic=${arch}; cat <<EOF
%%package       $archstatic-static
Summary:        Qemu static binary for $archstatic
# no one should require this, but provided anyway for maximum compatibility:
Provides:       qemu-static-$archstatic = %{EVRD}
Group:          System/Libraries

%%description $archstatic-static
QEMU static binary for $archstatic

%%files $archstatic-static
%{_bindir}/qemu-$archstatic-static
EOF
done)}

#---------------------------------------------------------------------------

%prep
%autosetup -p1 -n qemu-%{version}
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" scripts/qemu-trace-stap

%build
%set_build_flags
# drop -g flag to prevent memory exhaustion by linker
%ifarch s390
%global optflags %(echo %{optflags} | sed 's/-g//')
sed -i.debug 's/"-g $CFLAGS"/"$CFLAGS"/g' configure
%endif

# OOM killer breaks builds with parallel make on s390(x)
%ifarch s390 s390x
%global _smp_mflags %{nil}
%endif

# --build-id option is used for giving info to the debug packages.
extraldflags="-Wl,--build-id";
buildldflags="VL_LDFLAGS=-Wl,--build-id"
export LINK_ARGS="%ldflags"

# As of qemu 2.1, --enable-trace-backends supports multiple backends,
# but there's a performance impact for non-dtrace so we don't use them
tracebackends="dtrace"

%if %{have_spice}
    %global spiceflag --enable-spice
%else
    %global spiceflag --disable-spice
%endif

run_configure() {
    ../configure \
        --prefix=%{_prefix} \
        --libdir=%{_libdir} \
        --sysconfdir=%{_sysconfdir} \
        --localstatedir=%{_localstatedir} \
        --libexecdir=%{_libexecdir} \
        --interp-prefix=%{_prefix}/qemu-%%M \
        --with-pkgversion=%{name}-%{version}-%{release} \
        --disable-strip \
        --disable-werror \
        --enable-kvm \
	--enable-docs \
%ifarch s390 %{mips64}
        --enable-tcg-interpreter \
%endif
        --enable-trace-backend=$tracebackends \
        --extra-ldflags="$extraldflags -Wl,-z,relro -Wl,-z,now" \
        --extra-cflags="%{optflags}" \
        "$@" || cat config.log
    sed -i -e 's| -Wl,--no-undefined||g' config-host.mak
}

mkdir build-dynamic
pushd build-dynamic

#--enable-slirp=system \
run_configure \
    --enable-system \
    --enable-linux-user \
    --enable-pie \
    --enable-modules \
    --audio-drv-list=pa,sdl,alsa,oss \
    --tls-priority=@QEMU,SYSTEM \
    --target-list-exclude=moxie-softmmu \
    --enable-kvm \
    --enable-mpath \
    %{spiceflag}

echo "config-host.mak contents:"
echo "==="
cat config-host.mak
echo "==="

# dirty hack
pwd
sed -i 's!-Wl,--no-undefined!!g' build.ninja

%make_build $buildldflags

popd

%if %{user_static}
mkdir build-static
pushd build-static

run_configure \
    --disable-system \
    --enable-linux-user \
    --static \
    --disable-capstone \
    --disable-pie \
    --disable-sdl \
    --disable-gtk \
    --disable-spice \
    --disable-zstd \
    --disable-tools \
    --disable-guest-agent \
    --disable-guest-agent-msi \
    --disable-curses \
    --disable-curl \
    --disable-gcrypt \
    --enable-nettle \
    --disable-gnutls \
    --disable-cap-ng \
    --disable-brlapi \
    --disable-mpath \
    --disable-libnfs \
    --disable-capstone \
    --disable-xen \
    --disable-rdma

%make_build $buildldflags

popd
%endif


%install

%global _udevdir /lib/udev/rules.d
%global qemudocdir %{_docdir}/%{name}

mkdir -p %{buildroot}%{_udevdir}
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/qemu
mkdir -p %{buildroot}%{_bindir}

# Install qemu-guest-agent service and udev rules
install -p -m 0644 %{_sourcedir}/qemu-guest-agent.service %{buildroot}%{_unitdir}
install -D -p -m 0644 %{_sourcedir}/qemu-ga.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/qemu-ga
install -m 0644 %{_sourcedir}/99-qemu-guest-agent.rules %{buildroot}%{_udevdir}

mkdir -p %{buildroot}%{_sysconfdir}/qemu-ga/fsfreeze-hook.d
install -p -m 0755 scripts/qemu-guest-agent/fsfreeze-hook %{buildroot}%{_sysconfdir}/qemu-ga
install -p -m 0644 scripts/qemu-guest-agent/fsfreeze-hook.d/*.sample %{buildroot}%{_sysconfdir}/qemu-ga/fsfreeze-hook.d/
mkdir -p %{buildroot}%{_localstatedir}/log
touch %{buildroot}%{_localstatedir}/log/qga-fsfreeze-hook.log

# Install qemu-pr-helper service
install -m 0644 %{_sourcedir}/qemu-pr-helper.service %{buildroot}%{_unitdir}
install -m 0644 %{_sourcedir}/qemu-pr-helper.socket %{buildroot}%{_unitdir}

%ifarch %{power64}
install -d %{buildroot}%{_sysconfdir}/security/limits.d
install -m 0644 %{_sourcedir}/95-kvm-ppc64-memlock.conf %{buildroot}%{_sysconfdir}/security/limits.d
%endif


# Install kvm specific bits
%if %{have_kvm}
mkdir -p %{buildroot}%{_bindir}/
%endif

%if %{user_static}
pushd build-static
make DESTDIR=%{buildroot} install

# Give all QEMU user emulators a -static suffix
for src in %{buildroot}%{_bindir}/qemu-*
do
  mv $src $src-static
done

# Update trace files to match

for src in %{buildroot}%{_datadir}/systemtap/tapset/qemu-*.stp
do
  dst=`echo $src | sed -e 's/.stp/-static.stp/'`
  mv $src $dst
  perl -i -p -e 's/(qemu-\w+)/$1-static/g; s/(qemu\.user\.\w+)/$1.static/g' $dst
done


popd
%endif

pushd build-dynamic
make DESTDIR=%{buildroot} install
popd

%find_lang %{name}
chmod -x %{buildroot}%{_mandir}/man1/*

install -D -p -m 0644 -t %{buildroot}%{qemudocdir} COPYING COPYING.LIB LICENSE
for emu in %{buildroot}%{_bindir}/qemu-system-*; do
    ln -sf qemu.1.gz %{buildroot}%{_mandir}/man1/$(basename $emu).1.gz
done

%if 0%{?need_qemu_kvm}
install -m 0755 %{_sourcedir}/qemu-kvm.sh %{buildroot}%{_bindir}/qemu-kvm
ln -sf qemu.1.gz %{buildroot}%{_mandir}/man1/qemu-kvm.1.gz
install -D -p -m 0644 %{_sourcedir}/kvm-x86.modprobe.conf %{buildroot}%{_sysconfdir}/modprobe.d/kvm.conf
%endif

install -D -p -m 0644 qemu.sasl %{buildroot}%{_sysconfdir}/sasl2/qemu.conf

# XXX With qemu 2.11 we can probably drop this symlinking with use of
# configure --firmwarepath, see qemu git 3d5eecab4

# Provided by package openbios
#rm -rf %{buildroot}%{_datadir}/%{name}/openbios-ppc
#rm -rf %{buildroot}%{_datadir}/%{name}/openbios-sparc32
#rm -rf %{buildroot}%{_datadir}/%{name}/openbios-sparc64
# Provided by package SLOF
#rm -rf %{buildroot}%{_datadir}/%{name}/slof.bin
# Provided by package ipxe
#rm -rf %{buildroot}%{_datadir}/%{name}/pxe*rom
#rm -rf %{buildroot}%{_datadir}/%{name}/efi*rom
# Provided by package seavgabios
#rm -rf %{buildroot}%{_datadir}/%{name}/vgabios*bin
# Provided by package seabios
#rm -rf %{buildroot}%{_datadir}/%{name}/bios.bin
#rm -rf %{buildroot}%{_datadir}/%{name}/bios-256k.bin
# Provided by package sgabios
#rm -rf %{buildroot}%{_datadir}/%{name}/sgabios.bin

pxe_link() {
  ln -s ../ipxe/$2.rom %{buildroot}%{_datadir}/%{name}/pxe-$1.rom
  ln -s ../ipxe.efi/$2.rom %{buildroot}%{_datadir}/%{name}/efi-$1.rom
}

#pxe_link e1000 8086100e
#pxe_link ne2k_pci 10ec8029
#pxe_link pcnet 10222000
#pxe_link rtl8139 10ec8139
#pxe_link virtio 1af41000
#pxe_link eepro100 80861209
#pxe_link e1000e 808610d3
#pxe_link vmxnet3 15ad07b0

rom_link() {
    ln -s $1 %{buildroot}%{_datadir}/%{name}/$2
}

#rom_link ../seavgabios/vgabios-isavga.bin vgabios.bin
#rom_link ../seavgabios/vgabios-cirrus.bin vgabios-cirrus.bin
#rom_link ../seavgabios/vgabios-qxl.bin vgabios-qxl.bin
#rom_link ../seavgabios/vgabios-stdvga.bin vgabios-stdvga.bin
#rom_link ../seavgabios/vgabios-vmware.bin vgabios-vmware.bin
#rom_link ../seavgabios/vgabios-virtio.bin vgabios-virtio.bin
#rom_link ../seabios/bios.bin bios.bin
#rom_link ../seabios/bios-256k.bin bios-256k.bin
#rom_link ../sgabios/sgabios.bin sgabios.bin

# Install binfmt
%global binfmt_dir %{buildroot}%{_exec_prefix}/lib/binfmt.d
mkdir -p %{binfmt_dir}

./scripts/qemu-binfmt-conf.sh --systemd ALL --exportdir %{binfmt_dir} --qemu-path %{_bindir}
for i in %{binfmt_dir}/*; do
    mv $i $(echo $i | sed 's/.conf/-dynamic.conf/')
done

%if %{user_static}
for regularfmt in %{binfmt_dir}/*; do
  staticfmt="$(echo $regularfmt | sed 's/-dynamic/-static/g')"
  cat $regularfmt | tr -d '\n' | sed "s/:$/-static:F/" > $staticfmt
done
%endif
#remove conf file, qemu-i486-static not available
rm -rf %{binfmt_dir}/qemu-i486-static.conf

# Install rules to use the bridge helper with libvirt's virbr0
install -m 0644 %{_sourcedir}/bridge.conf %{buildroot}%{_sysconfdir}/qemu

# When building using 'rpmbuild' or 'fedpkg local', RPATHs can be left in
# the binaries and libraries (although this doesn't occur when
# building in Koji, for some unknown reason). Some discussion here:
#
# https://lists.fedoraproject.org/pipermail/devel/2013-November/192553.html
#
# In any case it should always be safe to remove RPATHs from
# the final binaries:
for f in %{buildroot}%{_bindir}/* %{buildroot}%{_libdir}/* \
         %{buildroot}%{_libexecdir}/*; do
  if file $f | grep -q ELF | grep -q -i shared; then chrpath --delete $f; fi
done

# There's currently nothing out there that uses qemu-plugin.h, so
# for now there's no need to make a -devel package
rm -rf %{buildroot}%{_includedir}

# We need to make the modules executable else
# RPM won't pick up their dependencies.
chmod +x %{buildroot}%{_libdir}/qemu/*.so

%check

# Tests are hanging on s390 as of 2.3.0
#   https://bugzilla.redhat.com/show_bug.cgi?id=1206057
# Tests seem to be a recurring problem on s390, so I'd suggest just leaving
# it disabled.
%global archs_skip_tests s390 x86_64
# Tests seem to be broken in 4.2.0 with current glib
# MALLOC_PERTURB_=${MALLOC_PERTURB_:-$(( ${RANDOM:-0} % 255 + 1))}  QTEST_QEMU_BINARY=aarch64-softmmu/qemu-system-aarch64 QTEST_QEMU_IMG=qemu-img tests/modules-test -m=quick -k --tap < /dev/null | ./scripts/tap-driver.pl --test-name="modules-test"
#
#(tests/modules-test:1584256): GLib-ERROR **: 03:34:48.134: duplicate test case path: /aarch64//module/load/sdl
# ERROR - Bail out! GLib-FATAL-ERROR: duplicate test case path: /aarch64//module/load/sdl
%define ignore_test_failures 1

pushd build-dynamic
%ifnarch %{archs_skip_tests}

# Check the binary runs (see eg RHBZ#998722).
b="./x86_64-softmmu/qemu-system-x86_64"
if [ -x "$b" ]; then "$b" -help; fi

%if 0%{ignore_test_failures}
make check V=1 || :
%else
make check V=1
%endif

%if 0%{?hostqemu:1}
# Sanity-check current kernel can boot on this qemu.
# The results are advisory only.
qemu-sanity-check --qemu=%{?hostqemu} ||:
%endif

%endif
# archs_skip_tests
popd


%post common
getent group kvm >/dev/null || groupadd -g 36 -r kvm
getent group qemu >/dev/null || groupadd -g 107 -r qemu
getent passwd qemu >/dev/null || \
  useradd -r -u 107 -g qemu -G kvm -d / -s /sbin/nologin \
    -c "qemu user" qemu

%post user-binfmt
/bin/systemctl --system try-restart systemd-binfmt.service &>/dev/null || :
%postun user-binfmt
/bin/systemctl --system try-restart systemd-binfmt.service &>/dev/null || :

%post guest-agent
%systemd_post qemu-guest-agent.service
%preun guest-agent
%systemd_preun qemu-guest-agent.service
%postun guest-agent
%systemd_postun_with_restart qemu-guest-agent.service



%files
# Deliberately empty


%files common -f %{name}.lang
%dir %{_datadir}/%{name}/
%{_datadir}/applications/qemu.desktop
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/%{name}/keymaps/
%{_datadir}/%{name}/trace-events-all
%{_datadir}/%{name}/bios-microvm.bin
%{_datadir}/%{name}/vgabios.bin
%{_datadir}/%{name}/vgabios-cirrus.bin
%{_datadir}/%{name}/vgabios-qxl.bin
%{_datadir}/%{name}/vgabios-stdvga.bin
%{_datadir}/%{name}/vgabios-vmware.bin
%{_datadir}/%{name}/vgabios-virtio.bin
%{_datadir}/%{name}/vgabios-ati.bin
%{_datadir}/%{name}/pxe-e1000.rom
%{_datadir}/%{name}/efi-e1000.rom
#%%{_datadir}/%%{name}/pxe-e1000e.rom
%{_datadir}/%{name}/efi-e1000e.rom
%{_datadir}/%{name}/pxe-eepro100.rom
%{_datadir}/%{name}/efi-eepro100.rom
%{_datadir}/%{name}/pxe-ne2k_pci.rom
%{_datadir}/%{name}/efi-ne2k_pci.rom
%{_datadir}/%{name}/pxe-pcnet.rom
%{_datadir}/%{name}/efi-pcnet.rom
%{_datadir}/%{name}/pxe-rtl8139.rom
%{_datadir}/%{name}/efi-rtl8139.rom
%{_datadir}/%{name}/pxe-virtio.rom
%{_datadir}/%{name}/efi-virtio.rom
#%%{_datadir}/%%{name}/pxe-vmxnet3.rom
%{_datadir}/%{name}/efi-vmxnet3.rom
%{_datadir}/%{name}/edk2-licenses.txt
%{_datadir}/%{name}/edk2*.fd
%{_datadir}/%{name}/firmware/*.json
%{_datadir}/%{name}/qemu-nsis.bmp
%{_datadir}/%{name}/multiboot_dma.bin
%dir %{_datadir}/%{name}/vhost-user
%{_datadir}/%{name}/vhost-user/50-qemu-gpu.json
%{_mandir}/man1/qemu.1*
%{_mandir}/man1/qemu-trace-stap.1*
%{_mandir}/man1/virtfs-proxy-helper.1*
%{_mandir}/man7/qemu-block-drivers.7*
%{_mandir}/man7/qemu-cpu-models.7*
%{_mandir}/man7/qemu-ga-ref.7*
%{_mandir}/man7/qemu-qmp-ref.7*
%{_mandir}/man8/qemu-pr-helper.8*
%{_bindir}/elf2dmp
%{_bindir}/qemu-edid
%{_bindir}/qemu-keymap
%{_bindir}/qemu-trace-stap
%if %{with seccomp}
%{_mandir}/man1/virtiofsd.1*
%{_libexecdir}/virtiofsd
%{_bindir}/qemu-pr-helper
%{_libexecdir}/virtfs-proxy-helper
%{_datadir}/qemu/vhost-user/50-qemu-virtiofsd.json
%endif
%{_bindir}/qemu-storage-daemon
%{_unitdir}/qemu-pr-helper.service
%{_unitdir}/qemu-pr-helper.socket
%attr(4755, root, root) %{_libexecdir}/qemu-bridge-helper
%{_libexecdir}/vhost-user-gpu
%config(noreplace) %{_sysconfdir}/sasl2/qemu.conf
%dir %{_sysconfdir}/qemu
%config(noreplace) %{_sysconfdir}/qemu/bridge.conf
%dir %{_libdir}/qemu
%if %{have_spice}
%{_libdir}/qemu/hw-display-qxl.so
%endif
%{_libdir}/qemu/hw-usb-redirect.so
%{_libdir}/qemu/hw-usb-smartcard.so
%{_mandir}/man1/qemu-storage-daemon.1*
%{_mandir}/man7/qemu-storage-daemon-qmp-ref.7*

%files guest-agent
%{_bindir}/qemu-ga
%{_mandir}/man8/qemu-ga.8*
%{_unitdir}/qemu-guest-agent.service
%{_udevdir}/99-qemu-guest-agent.rules
%config(noreplace) %{_sysconfdir}/sysconfig/qemu-ga
%{_sysconfdir}/qemu-ga
%ghost %{_localstatedir}/log/qga-fsfreeze-hook.log


%files img
%{_bindir}/qemu-img
%{_bindir}/qemu-io
%{_bindir}/qemu-nbd
%{_mandir}/man1/qemu-img.1*
%{_mandir}/man8/qemu-nbd.8*


%files block-curl
%{_libdir}/qemu/block-curl.so
%files block-dmg
%{_libdir}/qemu/block-dmg-bz2.so
%if %{with_block_gluster}
%files block-gluster
%{_libdir}/qemu/block-gluster.so
%endif
%files block-iscsi
%{_libdir}/qemu/block-iscsi.so
%files block-nfs
%{_libdir}/qemu/block-nfs.so
%if %{with_block_rbd}
%files block-rbd
%{_libdir}/qemu/block-rbd.so
%endif
%files block-ssh
%{_libdir}/qemu/block-ssh.so


%files audio-alsa
%{_libdir}/qemu/audio-alsa.so
%files audio-dbus
%{_libdir}/qemu/audio-dbus.so
%files audio-oss
%{_libdir}/qemu/audio-oss.so
%files audio-pa
%{_libdir}/qemu/audio-pa.so
%files audio-sdl
%{_libdir}/qemu/audio-sdl.so
%files audio-jack
%{_libdir}/%{name}/audio-jack.so

%files ui-curses
%{_libdir}/qemu/ui-curses.so
%files ui-gtk
%{_libdir}/qemu/ui-gtk.so
%files ui-sdl
%{_libdir}/qemu/ui-sdl.so
%files ui-egl-headless
%{_libdir}/qemu/ui-egl-headless.so
%files ui-opengl
%{_libdir}/qemu/ui-opengl.so
%files ui-dbus
%{_libdir}/qemu/ui-dbus.so

%files device-display-virtio-gpu
%{_libdir}/qemu/hw-display-virtio-gpu.so
%{_libdir}/qemu/hw-display-virtio-gpu-gl.so

%files device-display-virtio-gpu-pci
%{_libdir}/qemu/hw-display-virtio-gpu-pci.so
%{_libdir}/qemu/hw-display-virtio-gpu-pci-gl.so

%files device-display-virtio-vga
%{_libdir}/qemu/hw-display-virtio-vga.so
%{_libdir}/qemu/hw-display-virtio-vga-gl.so

%files device-usb
%{_libdir}/qemu/hw-usb-host.so

%if %{have_spice}
%files audio-spice
%{_libdir}/qemu/audio-spice.so
%files char-spice
%{_libdir}/qemu/chardev-spice.so
%files device-display-qxl
%{_libdir}/qemu/hw-display-qxl.so
%files ui-spice-core
%{_libdir}/qemu/ui-spice-core.so
%files ui-spice-app
%{_libdir}/qemu/ui-spice-app.so
%endif


%if %{have_kvm}
%files kvm
# Deliberately empty

%files kvm-core
# Deliberately empty
%endif


%files user
%{_bindir}/qemu-i386
%{_bindir}/qemu-x86_64
%{_bindir}/qemu-aarch64
%{_bindir}/qemu-aarch64_be
%{_bindir}/qemu-alpha
%{_bindir}/qemu-arm
%{_bindir}/qemu-armeb
%{_bindir}/qemu-cris
%{_bindir}/qemu-hexagon
%{_bindir}/qemu-hppa
%{_bindir}/qemu-m68k
%{_bindir}/qemu-microblaze
%{_bindir}/qemu-microblazeel
%{_bindir}/qemu-mips
%{_bindir}/qemu-mipsel
%{_bindir}/qemu-mips64
%{_bindir}/qemu-mips64el
%{_bindir}/qemu-mipsn32
%{_bindir}/qemu-mipsn32el
%{_bindir}/qemu-nios2
%{_bindir}/qemu-or1k
%{_bindir}/qemu-ppc
%{_bindir}/qemu-ppc64
%{_bindir}/qemu-ppc64le
%{_bindir}/qemu-riscv32
%{_bindir}/qemu-riscv64
%{_bindir}/qemu-s390x
%{_bindir}/qemu-sh4
%{_bindir}/qemu-sh4eb
%{_bindir}/qemu-sparc
%{_bindir}/qemu-sparc32plus
%{_bindir}/qemu-sparc64
%{_bindir}/qemu-xtensa
%{_bindir}/qemu-xtensaeb
%{_bindir}/qemu-loongarch64

%{_datadir}/systemtap/tapset/qemu-i386.stp
%{_datadir}/systemtap/tapset/qemu-i386-log.stp
%{_datadir}/systemtap/tapset/qemu-i386-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-x86_64.stp
%{_datadir}/systemtap/tapset/qemu-x86_64-log.stp
%{_datadir}/systemtap/tapset/qemu-x86_64-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-aarch64.stp
%{_datadir}/systemtap/tapset/qemu-aarch64-log.stp
%{_datadir}/systemtap/tapset/qemu-aarch64-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-aarch64_be.stp
%{_datadir}/systemtap/tapset/qemu-aarch64_be-log.stp
%{_datadir}/systemtap/tapset/qemu-aarch64_be-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-alpha.stp
%{_datadir}/systemtap/tapset/qemu-alpha-log.stp
%{_datadir}/systemtap/tapset/qemu-alpha-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-arm.stp
%{_datadir}/systemtap/tapset/qemu-arm-log.stp
%{_datadir}/systemtap/tapset/qemu-arm-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-armeb.stp
%{_datadir}/systemtap/tapset/qemu-armeb-log.stp
%{_datadir}/systemtap/tapset/qemu-armeb-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-cris.stp
%{_datadir}/systemtap/tapset/qemu-cris-log.stp
%{_datadir}/systemtap/tapset/qemu-cris-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-hexagon.stp
%{_datadir}/systemtap/tapset/qemu-hexagon-log.stp
%{_datadir}/systemtap/tapset/qemu-hexagon-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-hppa.stp
%{_datadir}/systemtap/tapset/qemu-hppa-log.stp
%{_datadir}/systemtap/tapset/qemu-hppa-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-m68k.stp
%{_datadir}/systemtap/tapset/qemu-m68k-log.stp
%{_datadir}/systemtap/tapset/qemu-m68k-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-microblaze.stp
%{_datadir}/systemtap/tapset/qemu-microblaze-log.stp
%{_datadir}/systemtap/tapset/qemu-microblaze-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-microblazeel.stp
%{_datadir}/systemtap/tapset/qemu-microblazeel-log.stp
%{_datadir}/systemtap/tapset/qemu-microblazeel-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-mips.stp
%{_datadir}/systemtap/tapset/qemu-mips-log.stp
%{_datadir}/systemtap/tapset/qemu-mips-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-mipsel.stp
%{_datadir}/systemtap/tapset/qemu-mipsel-log.stp
%{_datadir}/systemtap/tapset/qemu-mipsel-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-mips64.stp
%{_datadir}/systemtap/tapset/qemu-mips64-log.stp
%{_datadir}/systemtap/tapset/qemu-mips64-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-mips64el.stp
%{_datadir}/systemtap/tapset/qemu-mips64el-log.stp
%{_datadir}/systemtap/tapset/qemu-mips64el-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-mipsn32.stp
%{_datadir}/systemtap/tapset/qemu-mipsn32-log.stp
%{_datadir}/systemtap/tapset/qemu-mipsn32-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-mipsn32el.stp
%{_datadir}/systemtap/tapset/qemu-mipsn32el-log.stp
%{_datadir}/systemtap/tapset/qemu-mipsn32el-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-nios2.stp
%{_datadir}/systemtap/tapset/qemu-nios2-log.stp
%{_datadir}/systemtap/tapset/qemu-nios2-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-or1k.stp
%{_datadir}/systemtap/tapset/qemu-or1k-log.stp
%{_datadir}/systemtap/tapset/qemu-or1k-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-ppc.stp
%{_datadir}/systemtap/tapset/qemu-ppc-log.stp
%{_datadir}/systemtap/tapset/qemu-ppc-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-ppc64.stp
%{_datadir}/systemtap/tapset/qemu-ppc64-log.stp
%{_datadir}/systemtap/tapset/qemu-ppc64-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-ppc64le.stp
%{_datadir}/systemtap/tapset/qemu-ppc64le-log.stp
%{_datadir}/systemtap/tapset/qemu-ppc64le-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-riscv32.stp
%{_datadir}/systemtap/tapset/qemu-riscv32-log.stp
%{_datadir}/systemtap/tapset/qemu-riscv32-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-riscv64.stp
%{_datadir}/systemtap/tapset/qemu-riscv64-log.stp
%{_datadir}/systemtap/tapset/qemu-riscv64-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-s390x.stp
%{_datadir}/systemtap/tapset/qemu-s390x-log.stp
%{_datadir}/systemtap/tapset/qemu-s390x-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-sh4.stp
%{_datadir}/systemtap/tapset/qemu-sh4-log.stp
%{_datadir}/systemtap/tapset/qemu-sh4-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-sh4eb.stp
%{_datadir}/systemtap/tapset/qemu-sh4eb-log.stp
%{_datadir}/systemtap/tapset/qemu-sh4eb-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-sparc.stp
%{_datadir}/systemtap/tapset/qemu-sparc-log.stp
%{_datadir}/systemtap/tapset/qemu-sparc-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-sparc32plus.stp
%{_datadir}/systemtap/tapset/qemu-sparc32plus-log.stp
%{_datadir}/systemtap/tapset/qemu-sparc32plus-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-sparc64.stp
%{_datadir}/systemtap/tapset/qemu-sparc64-log.stp
%{_datadir}/systemtap/tapset/qemu-sparc64-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-xtensa.stp
%{_datadir}/systemtap/tapset/qemu-xtensa-log.stp
%{_datadir}/systemtap/tapset/qemu-xtensa-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-xtensaeb.stp
%{_datadir}/systemtap/tapset/qemu-xtensaeb-log.stp
%{_datadir}/systemtap/tapset/qemu-xtensaeb-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-loongarch64-log.stp
%{_datadir}/systemtap/tapset/qemu-loongarch64-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-loongarch64.stp

%files user-binfmt
%{_exec_prefix}/lib/binfmt.d/qemu-*-dynamic.conf

%if %{user_static}
%files user-static-tapset
%{_datadir}/systemtap/tapset/qemu-*-static.stp
%endif


%files system-aarch64
%{_libdir}/qemu/accel-qtest-aarch64.so

%files system-aarch64-core
%{_bindir}/qemu-system-aarch64
%{_datadir}/systemtap/tapset/qemu-system-aarch64*.stp
%{_mandir}/man1/qemu-system-aarch64.1*


%files system-alpha
%{_libdir}/qemu/accel-qtest-alpha.so

%files system-alpha-core
%{_bindir}/qemu-system-alpha
%{_datadir}/systemtap/tapset/qemu-system-alpha*.stp
%{_mandir}/man1/qemu-system-alpha.1*
%{_datadir}/%{name}/palcode-clipper


%files system-arm
%{_libdir}/qemu/accel-qtest-arm.so

%files system-arm-core
%{_bindir}/qemu-system-arm
%{_datadir}/systemtap/tapset/qemu-system-arm*.stp
%{_datadir}/%{name}/npcm7xx_bootrom.bin
%{_mandir}/man1/qemu-system-arm.1*


%files system-cris
%{_libdir}/qemu/accel-qtest-cris.so

%files system-cris-core
%{_bindir}/qemu-system-cris
%{_datadir}/systemtap/tapset/qemu-system-cris*.stp
%{_mandir}/man1/qemu-system-cris.1*


%files system-hppa
%{_libdir}/qemu/accel-qtest-hppa.so

%files system-hppa-core
%{_bindir}/qemu-system-hppa
%{_datadir}/systemtap/tapset/qemu-system-hppa*.stp
%{_mandir}/man1/qemu-system-hppa.1*
%{_datadir}/%{name}/hppa-firmware.img


%files system-m68k
%{_libdir}/qemu/accel-qtest-m68k.so

%files system-m68k-core
%{_bindir}/qemu-system-m68k
%{_datadir}/systemtap/tapset/qemu-system-m68k*.stp
%{_mandir}/man1/qemu-system-m68k.1*


%files system-microblaze
%{_libdir}/qemu/accel-qtest-microblaze.so
%{_libdir}/qemu/accel-qtest-microblazeel.so

%files system-microblaze-core
%{_bindir}/qemu-system-microblaze
%{_bindir}/qemu-system-microblazeel
%{_datadir}/systemtap/tapset/qemu-system-microblaze*.stp
%{_mandir}/man1/qemu-system-microblaze.1*
%{_mandir}/man1/qemu-system-microblazeel.1*
%{_datadir}/%{name}/petalogix*.dtb


%files system-mips
%{_libdir}/qemu/accel-qtest-mips.so
%{_libdir}/qemu/accel-qtest-mipsel.so
%{_libdir}/qemu/accel-qtest-mips64.so
%{_libdir}/qemu/accel-qtest-mips64el.so

%files system-mips-core
%{_bindir}/qemu-system-mips
%{_bindir}/qemu-system-mipsel
%{_bindir}/qemu-system-mips64
%{_bindir}/qemu-system-mips64el
%{_datadir}/systemtap/tapset/qemu-system-mips*.stp
%{_mandir}/man1/qemu-system-mips.1*
%{_mandir}/man1/qemu-system-mipsel.1*
%{_mandir}/man1/qemu-system-mips64el.1*
%{_mandir}/man1/qemu-system-mips64.1*


%files system-nios2
%{_libdir}/qemu/accel-qtest-nios2.so

%files system-nios2-core
%{_bindir}/qemu-system-nios2
%{_datadir}/systemtap/tapset/qemu-system-nios2*.stp
%{_mandir}/man1/qemu-system-nios2.1*


%files system-or1k
%{_libdir}/qemu/accel-qtest-or1k.so

%files system-or1k-core
%{_bindir}/qemu-system-or1k
%{_datadir}/systemtap/tapset/qemu-system-or1k*.stp
%{_mandir}/man1/qemu-system-or1k.1*


%files system-ppc
%{_libdir}/qemu/accel-qtest-ppc.so
%{_libdir}/qemu/accel-qtest-ppc64.so

%files system-ppc-core
%{_bindir}/qemu-system-ppc
%{_bindir}/qemu-system-ppc64
%{_datadir}/systemtap/tapset/qemu-system-ppc*.stp
%{_mandir}/man1/qemu-system-ppc.1*
%{_mandir}/man1/qemu-system-ppc64.1*
%{_datadir}/%{name}/bamboo.dtb
%{_datadir}/%{name}/canyonlands.dtb
%{_datadir}/%{name}/qemu_vga.ndrv
%{_datadir}/%{name}/skiboot.lid
%{_datadir}/%{name}/u-boot.e500
%{_datadir}/%{name}/u-boot-sam460-20100605.bin
%ifarch %{power64}
%{_sysconfdir}/security/limits.d/95-kvm-ppc64-memlock.conf
%endif


%files system-riscv
%{_libdir}/qemu/accel-qtest-riscv32.so
%{_libdir}/qemu/accel-qtest-riscv64.so

%files system-riscv-core
%{_bindir}/qemu-system-riscv32
%{_bindir}/qemu-system-riscv64
%{_datadir}/systemtap/tapset/qemu-system-riscv*.stp
%{_datadir}/qemu/opensbi-riscv*.*
%{_mandir}/man1/qemu-system-riscv*.1*


%files system-s390x
%{_libdir}/qemu/accel-qtest-s390x.so

%files system-s390x-core
%{_bindir}/qemu-system-s390x
%{_datadir}/systemtap/tapset/qemu-system-s390x*.stp
%{_mandir}/man1/qemu-system-s390x.1*
%{_libdir}/qemu/hw-s390x-virtio-gpu-ccw.so
%{_datadir}/%{name}/s390-ccw.img
%{_datadir}/%{name}/s390-netboot.img


%files system-sh4
%{_libdir}/qemu/accel-qtest-sh4.so
%{_libdir}/qemu/accel-qtest-sh4eb.so

%files system-sh4-core
%{_bindir}/qemu-system-sh4
%{_bindir}/qemu-system-sh4eb
%{_datadir}/systemtap/tapset/qemu-system-sh4*.stp
%{_mandir}/man1/qemu-system-sh4.1*
%{_mandir}/man1/qemu-system-sh4eb.1*


%files system-sparc
%{_libdir}/qemu/accel-qtest-sparc.so
%{_libdir}/qemu/accel-qtest-sparc64.so

%files system-sparc-core
%{_bindir}/qemu-system-sparc
%{_bindir}/qemu-system-sparc64
%{_datadir}/systemtap/tapset/qemu-system-sparc*.stp
%{_mandir}/man1/qemu-system-sparc.1*
%{_mandir}/man1/qemu-system-sparc64.1*
%{_datadir}/%{name}/QEMU,tcx.bin
%{_datadir}/%{name}/QEMU,cgthree.bin


%files system-tricore
%{_libdir}/qemu/accel-qtest-tricore.so

%files system-tricore-core
%{_bindir}/qemu-system-tricore
%{_datadir}/systemtap/tapset/qemu-system-tricore*.stp
%{_mandir}/man1/qemu-system-tricore.1*


%files system-x86
%{_libdir}/qemu/accel-qtest-i386.so
%{_libdir}/qemu/accel-qtest-x86_64.so
%{_libdir}/qemu/accel-tcg-i386.so
%{_libdir}/qemu/accel-tcg-x86_64.so

%files system-x86-core
%{_bindir}/qemu-system-i386
%{_bindir}/qemu-system-x86_64
%{_datadir}/systemtap/tapset/qemu-system-i386*.stp
%{_datadir}/systemtap/tapset/qemu-system-x86_64*.stp
%{_mandir}/man1/qemu-system-i386.1*
%{_mandir}/man1/qemu-system-x86_64.1*
%{_datadir}/%{name}/bios.bin
%{_datadir}/%{name}/bios-256k.bin
%{_datadir}/%{name}/kvmvapic.bin
%{_datadir}/%{name}/linuxboot.bin
%{_datadir}/%{name}/linuxboot_dma.bin
%{_datadir}/%{name}/multiboot.bin
%{_datadir}/qemu/openbios-sparc32
%{_datadir}/qemu/openbios-sparc64
%{_datadir}/qemu/openbios-ppc
%{_datadir}/%{name}/qboot.rom
%{_datadir}/%{name}/slof.bin
%{_datadir}/qemu/vgabios-bochs-display.bin
%{_datadir}/qemu/vgabios-ramfb.bin

%{_datadir}/%{name}/pvh.bin
%{_datadir}/%{name}/sgabios.bin
%if 0%{?need_qemu_kvm}
%{_bindir}/qemu-kvm
%{_mandir}/man1/qemu-kvm.1*
%config(noreplace) %{_sysconfdir}/modprobe.d/kvm.conf
%endif


%files system-xtensa
%{_libdir}/qemu/accel-qtest-xtensa.so
%{_libdir}/qemu/accel-qtest-xtensaeb.so

%files system-xtensa-core
%{_bindir}/qemu-system-xtensa
%{_bindir}/qemu-system-xtensaeb
%{_datadir}/systemtap/tapset/qemu-system-xtensa*.stp
%{_mandir}/man1/qemu-system-xtensa.1*
%{_mandir}/man1/qemu-system-xtensaeb.1*

%files system-loongarch64
%{_libdir}/qemu/accel-qtest-loongarch64.so

%files system-loongarch64-core
%{_bindir}/qemu-system-loongarch64
%{_datadir}/systemtap/tapset/qemu-system-loongarch64*.stp
%{_mandir}/man1/qemu-system-loongarch64.1*

%files -n seabios
%{_datadir}/%{name}/bios.bin
%{_datadir}/qemu/vof-nvram.bin
%{_datadir}/qemu/vof.bin

%files -n vgabios
%{_datadir}/%{name}/vgabios.bin
%{_datadir}/%{name}/vgabios-cirrus.bin
%{_datadir}/%{name}/vgabios-qxl.bin
%{_datadir}/%{name}/vgabios-stdvga.bin
%{_datadir}/%{name}/vgabios-vmware.bin
%{_datadir}/%{name}/vgabios-virtio.bin

%files -n sgabios
%{_datadir}/%{name}/sgabios.bin

%files -n ipxe
%{_datadir}/%{name}/pxe-e1000.rom
%{_datadir}/%{name}/pxe-eepro100.rom
%{_datadir}/%{name}/pxe-pcnet.rom
%{_datadir}/%{name}/pxe-ne2k_pci.rom
%{_datadir}/%{name}/pxe-rtl8139.rom
%{_datadir}/%{name}/pxe-virtio.rom

%files system-rx
%{_libdir}/qemu/accel-qtest-rx.so
%{_bindir}/qemu-system-rx
%{_datadir}/man/man1/qemu-system-rx.1*
%{_datadir}/systemtap/tapset/qemu-system-rx-log.stp
%{_datadir}/systemtap/tapset/qemu-system-rx-simpletrace.stp
%{_datadir}/systemtap/tapset/qemu-system-rx.stp

%files system-avr
%{_libdir}/qemu/accel-qtest-avr.so

%files system-avr-core
%{_bindir}/qemu-system-avr
%{_datadir}/systemtap/tapset/qemu-system-avr*.stp
%{_mandir}/man1/qemu-system-avr.1*

%files doc
%dir %{qemudocdir}
%{qemudocdir}/*
%{qemudocdir}/.buildinfo


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16785 |21mr|qgnomeplatform-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _qt6_libdir %{_libdir}
%global _qt6_plugindir %{_libdir}/qt6/plugins

%define oname QGnomePlatform

Summary:	Platform theme for a better Qt5 application inclusion in GNOME
Name:		qgnomeplatform
Version:	0.9.1
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://github.com/MartinBriza/QGnomePlatform
Source0:	https://github.com/MartinBriza/QGnomePlatform/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
# Upstream patches
Patch0:		qgnomeplatform-only-set-qqc2-style-on-qt5.patch
BuildRequires:	gsettings-desktop-schemas
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6QuickControls2)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6WaylandClient)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(udev)
BuildRequires:	adwaita-qt5-devel >= 1.4.2
BuildRequires:	adwaita-qt6-devel >= 1.4.2
BuildRequires:	qqc2-desktop-style-devel
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative

%description
Platform theme for a better Qt5 application inclusion in GNOME.

#----------------------------------------------------------------------------

%package -n qt5-platformtheme-qgnomeplatform
Summary:	Platform theme for a better Qt5 application inclusion in GNOME
Group:		Graphical desktop/GNOME
Requires:	qt5-style-adwaita

%description -n qt5-platformtheme-qgnomeplatform
Platform theme for a better Qt5 application inclusion in GNOME.

%files -n qt5-platformtheme-qgnomeplatform
%{_datadir}/color-schemes/*.colors
%{_qt5_libdir}/libqgnomeplatform.so
%{_qt5_plugindir}/platformthemes/libqgnomeplatformtheme.so
%{_qt5_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so

#----------------------------------------------------------------------------

%package -n qt6-platformtheme-qgnomeplatform
Summary:	Platform theme for a better Qt6 application inclusion in GNOME
Group:		Graphical desktop/GNOME
Requires:	qt6-style-adwaita

%description -n qt6-platformtheme-qgnomeplatform
Platform theme for a better Qt6 application inclusion in GNOME.

%files -n qt6-platformtheme-qgnomeplatform
%{_qt6_libdir}/libqgnomeplatform6.so
%{_qt6_plugindir}/platformthemes/libqgnomeplatformtheme.so
%{_qt6_plugindir}/wayland-decoration-client/libqgnomeplatformdecoration.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

tar -xvzf %{SOURCE0}

%build
pushd %{oname}-%{version}
%cmake \
    -DUSE_QT6=true \
    -DQT_PLUGINS_DIR=%{_qt6_plugindir}

%make
popd

%cmake_qt5 -DDECORATION_SHADOWS_SUPPORT=true 

%make

%install
pushd %{oname}-%{version}
%makeinstall_std -C build
popd
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16786 |21mr|qhull-2020.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 8
%define	libname %mklibname %{name} %{major}
%define	libnamecpp %mklibname %{name}cpp %{major}
%define	libname7r %mklibname %{name}7_r %{major}
%define	devname %mklibname %{name} -d
%define	sdevname %mklibname %{name} -d -s
# This is the real library version (see CMakeLists.txt file)
%define	oversion 8.0.2

Summary:	Compute convex hulls
Name:		qhull
Version:	2020.2
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.qhull.org/
Source0:	http://www.qhull.org/download/qhull-2020-src-%{oversion}.tgz
Patch0:		0001-fix-pkgconfig-files.patch
Patch1:		0004-Build-qhullcpp-as-shared-library.patch
Patch2:		0005-Fix-CMake-target-export.patch
Patch3:		0006-Build-deprecated-libqhull-for-now.patch
BuildRequires:	cmake >= 3.0

%description
Qhull computes convex hulls, Delaunay triangulations, halfspace intersections
about a point, Voronoi diagrams, furthest-site Delaunay triangulations, and
furthest-site Voronoi diagrams. It runs in 2-d, 3-d, 4-d, and higher
dimensions. It implements the Quickhull algorithm for computing the convex
hull. Qhull handles roundoff errors from floating point arithmetic.
It can approximate a convex hull.

%files
%doc Announce.txt COPYING.txt README.txt REGISTER.txt
%{_bindir}/qconvex*
%{_bindir}/qdelaunay*
%{_bindir}/qhalf*
%{_bindir}/qhull*
%{_bindir}/qvoronoi*
%{_bindir}/rbox*
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/rbox.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}qhull6 < 2019.1
%rename		%{_lib}qhull6

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc COPYING.txt
%{_libdir}/libqhull.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamecpp}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnamecpp}
Shared library for %{name}.

%files -n %{libnamecpp}
%doc COPYING.txt
%{_libdir}/libqhullcpp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname7r}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}qhull6 < 2019.1

%description -n %{libname7r}
Shared library for %{name}.

%files -n %{libname7r}
%doc COPYING.txt
%{_libdir}/libqhull_r.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for development with %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamecpp} = %{EVRD}
Requires:	%{libname7r} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and libraries for development with %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}
%{_libdir}/libqhull*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/Qhull/*.cmake
%{_includedir}/libqhull*
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static library for development with %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static library for development with %{name}.

%files -n %{sdevname}
%doc COPYING.txt
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%autopatch -p1

# Fix hardcoded cmakefiles install path
sed -i 's|lib/cmake/Qhull|%{_lib}/cmake/Qhull|g' CMakeLists.txt


%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DBUILD_STATIC_LIBS:BOOL=ON
%make_build


%install
%make_install -C build

# Add some symlinks to satisfy octave configure, because there is
# not pkgconfig file - Still needed??
ln -sf libqhull %{buildroot}%{_includedir}/%{name}
ln -sf libqhull.h %{buildroot}%{_includedir}/%{name}/%{name}.h


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16787 |21mr|qjackctl-0.9.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A Qt GUI for the JACK audio daemon
Name:		qjackctl
Version:	0.9.7
Release:	2
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/qjackctl/
Source0:	https://downloads.sourceforge.net/%{name}/files/%{name}-%{version}.tar.gz
# (From Fedora) set correct version an "About" dialog
Patch0:		qjackctl-0.9.6-fix-version.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack) >= 0.118.3
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(Qt5Core) >= 5.1
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
Requires:	jack
Requires:	hicolor-icon-theme

%description
JACK Audio Connection Kit - Qt GUI Interface: A simple Qt application to
control the JACK server daemon.

%files -f %{name}.lang
%doc ChangeLog README
%{_bindir}/%{name}
%{_datadir}/applications/org.rncbc.%{name}.desktop
%{_metainfodir}/org.rncbc.%{name}.metainfo.xml
%{_iconsdir}/hicolor/*x*/apps/org.rncbc.%{name}.png
%{_iconsdir}/hicolor/scalable/apps/org.rncbc.%{name}.svg
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------


%prep
%autosetup -p1


%build
%cmake -DCONFIG_QT6=NO
%make


%install
%makeinstall_std -C build

# Fix the .desktop file
desktop-file-edit \
	--remove-key="X-SuSE-translate" \
	--add-category="X-MandrivaLinux-Sound" \
	%{buildroot}%{_datadir}/applications/org.rncbc.%{name}.desktop

# Provide more icons sizes other than 32x32
mkdir -p %{buildroot}%{_iconsdir}/hicolor/512x512/apps/
install -m 0644 src/images/%{name}_512x512.png %{buildroot}%{_iconsdir}/hicolor/512x512/apps/org.rncbc.%{name}.png

for size in 16 48 64 128 256; do
	install -d %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps
	convert -resize ${size} src/images/%{name}_512x512.png %{buildroot}%{_iconsdir}/hicolor/${size}x${size}/apps/org.rncbc.%{name}.png
done

%find_lang %{name} --with-qt --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16788 |21mr|qjson-0.8.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	QJson is a Qt-based library that maps JSON data to QVariant objects
Name:		qjson
Version:	0.8.1
Release:	9
License:	GPLv2+
Group:		Development/C
Url:		http://qjson.sourceforge.net/
Source0:	http://downloads.sourceforge.net/qjson/qjson-%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	qt4-devel

%description
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It can represents integer, real number, string, an ordered sequence of value,
and a collection of name/value pairs.
QJson is a qt-based library that maps JSON data to QVariant objects.
JSON arrays will be mapped to QVariantList instances, while JSON's objects
will be mapped to QVariantMap.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	QJson is a Qt-based library that maps JSON data to QVariant objects
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Obsoletes:	%{name} < 0.7.1-5

%description -n %{libname}
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It can represents integer, real number, string, an ordered sequence of value,
and a collection of name/value pairs.
QJson is a qt-based library that maps JSON data to QVariant objects.
JSON arrays will be mapped to QVariantList instances, while JSON's objects
will be mapped to QVariantMap.

%files -n %{libname}
%{_libdir}/libqjson.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for QJson
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 0.7.1-5
Conflicts:	qjson < 0.7.1-5

%description -n %{devname}
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It can represents integer, real number, string, an ordered sequence of value,
and a collection of name/value pairs.

QJson is a Qt-based library that maps JSON data to QVariant objects.
JSON arrays will be mapped to QVariantList instances, while JSON's objects
will be mapped to QVariantMap.

This package contains files for developing applications using QJson.

%files -n %{devname}
%{_libdir}/libqjson.so
%{_libdir}/pkgconfig/QJson.pc
%{_libdir}/cmake/%{name}
%{_includedir}/qjson

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake_qt4
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16789 |21mr|qjson-qt5-0.9.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qjson

%define major 0
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	QJson is a Qt-based library that maps JSON data to QVariant objects
Name:		qjson-qt5
Version:	0.9.0
Release:	4
License:	GPLv2+
Group:		Development/KDE and Qt
Url:		https://github.com/flavio/qjson/
Source0:	https://github.com/flavio/qjson/archive/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)

%description
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It can represents integer, real number, string, an ordered sequence of value,
and a collection of name/value pairs.
QJson is a qt-based library that maps JSON data to QVariant objects.
JSON arrays will be mapped to QVariantList instances, while JSON's objects
will be mapped to QVariantMap.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	QJson is a Qt-based library that maps JSON data to QVariant objects
Group:		System/Libraries

%description -n %{libname}
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It can represents integer, real number, string, an ordered sequence of value,
and a collection of name/value pairs.
QJson is a qt-based library that maps JSON data to QVariant objects.
JSON arrays will be mapped to QVariantList instances, while JSON's objects
will be mapped to QVariantMap.

%files -n %{libname}
%{_libdir}/libqjson-qt5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for QJson
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
JSON (JavaScript Object Notation) is a lightweight data-interchange format.
It can represents integer, real number, string, an ordered sequence of value,
and a collection of name/value pairs.

QJson is a Qt-based library that maps JSON data to QVariant objects.
JSON arrays will be mapped to QVariantList instances, while JSON's objects
will be mapped to QVariantMap.

This package contains files for developing applications using QJson.

%files -n %{devname}
%{_libdir}/libqjson-qt5.so
%{_libdir}/pkgconfig/QJson-qt5.pc
%{_libdir}/cmake/%{name}
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%cmake_qt5 \
	-DQT4_BUILD=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16790 |21mr|qlipper-5.1.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Lightweight clipboard history
Name:		qlipper
Version:	5.1.2
Release:	9
License:	GPLv2+
Group:		Text tools
Url:		https://github.com/pvanek/qlipper
Source0:	https://github.com/pvanek/qlipper/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	qlipper_ru.tar.xz
Source2:	qlipper.svg
Patch0:		qlipper-5.1.1-cmake-ru.patch
Patch1:		qlipper-5.1.2-desktop-ru.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)

%description
Lightweight and cross-platform clipboard history applet.

%files -f %{name}.lang
%doc COPYING README
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.*
%{_iconsdir}/%{name}.*
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_sysconfdir}/xdg/autostart/lxqt-qlipper-autostart.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp -f %{SOURCE2} src/icons/qlipper.png

chmod -x src/*.{cpp,h}

pushd ts
tar -xf %{SOURCE1}
popd

%build
%cmake_qt5 \
	-DENABLE_LXQT_AUTOSTART:BOOL=ON \
	-DCMAKE_BUILD_TYPE=release
%make

%install
%makeinstall_std -C build

install -d -D -m 755 %{buildroot}%{_datadir}/pixmaps
install -d -D -m 755 %{buildroot}%{_iconsdir}

install -D src/icons/%{name}.png %{buildroot}%{_iconsdir}
convert %{buildroot}%{_iconsdir}/%{name}.png %{buildroot}%{_datadir}/pixmaps/%{name}.xpm

desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16791 |21mr|qmlkonsole-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Terminal application for Plasma Mobile
Name:		qmlkonsole
Version:	23.08.4
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kirigami-addons-devel
Requires:	qmltermwidget

%description
Terminal application for Plasma Mobile.

%files -f qmlkonsole.lang
%{_kde5_bindir}/qmlkonsole
%{_kde5_applicationsdir}/org.kde.qmlkonsole.desktop
%{_kde5_datadir}/config.kcfg/terminalsettings.kcfg
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.qmlkonsole.svg
%{_appdatadir}/org.kde.qmlkonsole.appdata.xml

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16792 |21mr|qml-rpm-generators-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Macros for handling QML
Name: qml-rpm-generators
Group: System/Libraries
Version: 0.3
Release: 2
License: GPLv2
# This script was made by Jolla, then was used in ROSA's RPM 5
# for a long time: https://abf.io/soft/rpm5/commit/3e3987c7ba
# in modified form; now we combined recent Jolla's changes
# and ROSA's old ones to a new script and took Jolla's
# intergation of this script to RPM 4
Url: https://git.sailfishos.org/mer-core/qml-rpm-macros
Source0: qmldeps.sh
Source1: qml.attr
Source2: COPYING
BuildArch: noarch

%description
RPM 4 macros for generating qml(xxx)
Provides and Requires (dependencies).

%files
%license COPYING
%{_rpmconfigdir}/fileattrs/qml.attr
%{_rpmconfigdir}/qmldeps.sh

%prep
cp %{SOURCE2} .

%build
%install
install -m644 -D %{SOURCE1} %{buildroot}/%{_rpmconfigdir}/fileattrs/qml.attr
install -m755 -D %{SOURCE0} %{buildroot}/%{_rpmconfigdir}/qmldeps.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16793 |21mr|qmltermwidget-0.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%define snapshot 20210804

Summary:	Terminal widget for QML
Name:		qmltermwidget
Version:	0.7.0
Release:	2
License:	GPLv2
Source0:	https://github.com/Swordfish90/qmltermwidget/archive/master/%{name}-%{snapshot}.tar.gz
Patch0:		https://github.com/Swordfish90/qmltermwidget/pull/31.patch
Group:		System/Libraries
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(gl)

%description
Terminal widget for QML

%prep
%autosetup -p1 -n qmltermwidget-master

%build
qmake-qt5 *.pro
%make_build

%install
make install INSTALL_ROOT=%{buildroot}

%files
%{_libdir}/qt5/qml/QMLTermWidget

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16794 |21mr|qmmp-1.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		1
%define	libname		%mklibname %{name}-1_ %{major}
%define	devname		%mklibname %{name}-1 -d
%define	libnameui	%mklibname qmmpui %{major}
%define	devnameui	%mklibname qmmpui-1 -d

# Our mpcdec package is too old to build: re-enable when updated...
%bcond_with mpc

# Enable pipewire when time comes
%bcond_without pipewire

Summary:	Qt-based Multimedia Player
Name:		qmmp
Version:	1.6.2
Release:	2
License:	GPLv2+
Group:		Sound
Url:		http://qmmp.ylsoftware.com
Source0:	https://qmmp.ylsoftware.com/files/qmmp/1.6/%{name}-%{version}.tar.bz2
Patch0:		qmmp-1.3.0-initial-preference.patch
Patch1:		qmmp-1.3.0-fix-libmpc-finding.patch
Patch2:		qmmp-1.3.1-fix-pkgconfig-files.patch
Patch3:		qmmp-1.3.1-fix-plugindir-detection.patch
BuildRequires:	cmake >= 3.5.0
BuildRequires:	gzip-utils
BuildRequires:	glibc-devel
BuildRequires:	ninja
BuildRequires:	qt5-linguist-tools
BuildRequires:	ffmpeg-devel
BuildRequires:	ladspa-devel
BuildRequires:	libfaad2-devel
BuildRequires:	libgme-devel
%if %{with mpc}
BuildRequires:	libmpcdec-devel
%endif
BuildRequires:	wildmidi-devel
BuildRequires:	pkgconfig(alsa) >= 1.0.22
BuildRequires:	pkgconfig(enca) >= 1.9
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(jack) >= 1.9.8
BuildRequires:	pkgconfig(libarchive) >= 3.2.0
BuildRequires:	pkgconfig(libbs2b) >= 3.0.0
BuildRequires:	pkgconfig(libcddb)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libcurl) >= 7.19.4
BuildRequires:	pkgconfig(libmms) >= 0.4
BuildRequires:	pkgconfig(libmpg123) >= 1.13.0
%if %{with pipewire}
BuildRequires:	pkgconfig(libpipewire-0.3)
%endif
BuildRequires:	pkgconfig(libprojectM) >= 2.0.0
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libsidplayfp) >= 1.0.3
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(opus) >= 1.0.2
BuildRequires:	pkgconfig(opusfile) >= 0.2
BuildRequires:	pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:	pkgconfig(Qt5DBus) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Gui) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Multimedia) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Network) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Sql) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires:	pkgconfig(Qt5X11Extras) >= 5.4.0
BuildRequires:	pkgconfig(samplerate) >= 0.1.8
# Do not remove sdl-headers needed by sid-ogg. Sflo
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(shout)
BuildRequires:	pkgconfig(sndfile) >= 1.0.22
BuildRequires:	pkgconfig(soxr)
BuildRequires:	pkgconfig(taglib) >= 1.11
BuildRequires:	pkgconfig(udisks2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)
BuildRequires:	pkgconfig(x11)
Requires:	%{libname} = %{EVRD}
Requires:	%{libnameui} = %{EVRD}
Requires:	%{name}-plugins = %{EVRD}
Requires:	unzip
Requires:	wildmidi
Recommends:	%{name}-aac = %{EVRD}
%if %{mdvver} >= 201210
Recommends:	%{name}-ffmpeg = %{EVRD}
%else
Recommends:	%{name}-ffmpeg-legacy = %{EVRD}
%endif
Recommends:	%{name}-jack = %{EVRD}
%if %{with mpc}
Recommends:	%{name}-musepack = %{EVRD}
%endif
Recommends:	%{name}-opus = %{EVRD}
Recommends:	%{name}-oss = %{EVRD}
Recommends:	%{name}-simple-ui = %{EVRD}
Recommends:	%{name}-wavpack = %{EVRD}
Recommends:	%{name}-plugin-pack

%description
This program is an audio-player, written with help of Qt library. The user
interface is similar to winamp or xmms.
Main opportunities:
* Winamp and xmms skins support;
* plugins support;
* MPEG1 layer 1/2/3 support;
* Ogg Vorbis support;
* native FLAC support;
* Musepack support;
* WavePack support;
* WMA support;
* PCM WAVE support;
* AlSA sound output;
* JACK sound output;
* OSS sound output;
* Pipewire output;
* PulseAudio output;
* Last.fm scrobbler;
* D-Bus support;
* Spectrum Analyzer;
* sample rate conversion;
* streaming support (MP3, Vorbis via IceCast/ShoutCast).

%files
%doc AUTHORS ChangeLog
%{_bindir}/%{name}-1
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/%{name}-1
%{_datadir}/metainfo/%{name}-1.appdata.xml
%{_datadir}/solid/actions/%{name}-opencda-1.desktop

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
Qmmp is an audio-player, written with help of Qt library.
This package contains the library needed by %{name}.

%files -n %{libname}
%doc AUTHORS ChangeLog
%{_libdir}/libqmmp-1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameui}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libnameui}
Qmmp is an audio-player, written with help of Qt library.
This package contains the library needed by %{name}.

%files -n %{libnameui}
%doc AUTHORS ChangeLog
%{_libdir}/libqmmpui-1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Qmmp is an audio-player, written with help of Qt library.
This package contains the files needed for developing applications
which use %{name}.

%files -n %{devname}
%doc AUTHORS ChangeLog
%{_includedir}/%{name}-1/qmmp
%{_libdir}/libqmmp-1.so
%{_libdir}/pkgconfig/qmmp-1.pc

#----------------------------------------------------------------------------

%package -n %{devnameui}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libnameui} = %{EVRD}
Provides:	%{name}ui-devel = %{EVRD}
Conflicts:	%{_lib}qmmp-devel < 0.7.2

%description -n %{devnameui}
Qmmp is an audio-player, written with help of Qt library.
This package contains the files needed for developing applications
which use %{name}.

%files -n %{devnameui}
%doc AUTHORS ChangeLog
%{_includedir}/qmmp-1/qmmpui
%{_libdir}/libqmmpui-1.so
%{_libdir}/pkgconfig/qmmpui-1.pc

#----------------------------------------------------------------------------

%package aac
Summary:	Qmmp AAC Input Plugin
Group:		Sound

%description aac
This is the AAC Input plug-in for Qmmp.

This package is in restricted repository because AAC codec is patent-protected.

%files aac
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Input/libaac.so

#----------------------------------------------------------------------------

#  ffmpeg-legacy in LTS
%if %{mdvver} >= 201210
%package ffmpeg
Summary:	Qmmp FFMPEG Input Plugin
Group:		Sound

%description ffmpeg
This is the FFMPEG Input Plugin for Qmmp.

%files ffmpeg
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Input/libffmpeg.so

%else

%package ffmpeg-legacy
Summary:	Qmmp FFMPEG Input Plugin
Group:		Sound

%description ffmpeg-legacy
This is the FFMPEG Input Plugin for Qmmp.

%files ffmpeg-legacy
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Input/libffmpeg_legacy.so
%endif

#----------------------------------------------------------------------------

%package jack
Summary:	Qmmp Jack Output Plugin
Group:		Sound

%description jack
This is the Jack Output Plugin for Qmmp.

%files jack
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Output/libjack.so

#----------------------------------------------------------------------------

%if %{with mpc}
%package musepack
Summary:	Qmmp MusePack Output Plugin
Group:		Sound

%description musepack
This is the Musepack Input Plugin for Qmmp.

%files musepack
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Input/libmpc.so
%endif

#----------------------------------------------------------------------------

%package opus
Summary:	Qmmp Opus Input Plugin
Group:		Sound

%description opus
This is the Opus Input Plugin for Qmmp.

%files opus
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Input/libopus.so

#----------------------------------------------------------------------------

%package oss
Summary:	Qmmp OSS Output Plugin
Group:		Sound

%description oss
This is the Jack OSS Plugin for Qmmp.

%files oss
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Output/liboss.so

#----------------------------------------------------------------------------

%package plugins
Summary:	Qmmp Plugins
Group:		Sound

%description plugins
Qmmp is an audio-player, written with help of Qt library.
This package contains the basic plug-in distribution.

%files plugins
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Input/libarchive.so
%{_libdir}/%{name}-1.6/Input/libcdaudio.so
%{_libdir}/%{name}-1.6/Input/libcue.so
%{_libdir}/%{name}-1.6/Input/libflac.so
%{_libdir}/%{name}-1.6/Input/libgme.so
#{_libdir}/%%{name}-1.6/Input/libmad.so
%{_libdir}/%{name}-1.6/Input/libmpeg.so
%{_libdir}/%{name}-1.6/Input/libsndfile.so
%{_libdir}/%{name}-1.6/Input/libvorbis.so
%{_libdir}/%{name}-1.6/Input/libwildmidi.so
%{_libdir}/%{name}-1.6/Output/libalsa.so
%{_libdir}/%{name}-1.6/Output/libnull.so
%if %{with pipewire}
%{_libdir}/%{name}-1.6/Output/libpipewire.so
%endif
%{_libdir}/%{name}-1.6/Output/libpulseaudio.so
%{_libdir}/%{name}-1.6/Output/libqtmultimedia.so
%{_libdir}/%{name}-1.6/Output/libshout.so
%{_libdir}/%{name}-1.6/General/libnotifier.so
%{_libdir}/%{name}-1.6/General/libconverter.so
%{_libdir}/%{name}-1.6/General/libcopypaste.so
%{_libdir}/%{name}-1.6/General/libcovermanager.so
%{_libdir}/%{name}-1.6/General/libfileops.so
%{_libdir}/%{name}-1.6/General/libgnomehotkey.so
%{_libdir}/%{name}-1.6/General/libhistory.so
%{_libdir}/%{name}-1.6/General/libhotkey.so
%{_libdir}/%{name}-1.6/General/libkdenotify.so
%{_libdir}/%{name}-1.6/General/liblyrics.so
%{_libdir}/%{name}-1.6/General/liblibrary.so
%{_libdir}/%{name}-1.6/General/liblistenbrainz.so
%{_libdir}/%{name}-1.6/General/libmpris.so
%{_libdir}/%{name}-1.6/General/librgscan.so
%{_libdir}/%{name}-1.6/General/libscrobbler.so
%{_libdir}/%{name}-1.6/General/libsleepinhibitor.so
%{_libdir}/%{name}-1.6/General/libstatusicon.so
%{_libdir}/%{name}-1.6/General/libstreambrowser.so
%{_libdir}/%{name}-1.6/General/libtrackchange.so
%{_libdir}/%{name}-1.6/General/libudisks.so
%{_libdir}/%{name}-1.6/CommandLineOptions/libincdecvolumeoption.so
%{_libdir}/%{name}-1.6/CommandLineOptions/libplaylistoption.so
%{_libdir}/%{name}-1.6/CommandLineOptions/libseekoption.so
%{_libdir}/%{name}-1.6/CommandLineOptions/libstatusoption.so
%{_libdir}/%{name}-1.6/Effect/libbs2b.so
%{_libdir}/%{name}-1.6/Effect/libcrossfade.so
%{_libdir}/%{name}-1.6/Effect/libfilewriter.so
%{_libdir}/%{name}-1.6/Effect/libladspa.so
%{_libdir}/%{name}-1.6/Effect/libmonotostereo.so
%{_libdir}/%{name}-1.6/Effect/libsoxr.so
%{_libdir}/%{name}-1.6/Effect/libstereo.so
%{_libdir}/%{name}-1.6/Engines/libmplayer.so
%{_libdir}/%{name}-1.6/FileDialogs/libqmmpfiledialog.so
%{_libdir}/%{name}-1.6/FileDialogs/libtwopanelfiledialog.so
%{_libdir}/%{name}-1.6/PlayListFormats/*.so
%{_libdir}/%{name}-1.6/Transports/libhttp.so
%{_libdir}/%{name}-1.6/Transports/libmms.so
%{_libdir}/%{name}-1.6/Visual/libanalyzer.so
%{_libdir}/%{name}-1.6/Visual/libprojectm.so
%{_libdir}/%{name}-1.6/Ui/libskinned.so

#----------------------------------------------------------------------------

%package sid
Summary:	Qmmp SID Input Plugin
Group:		Sound

%description sid
This is the SID Input Plugin for Qmmp.

%files sid
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Input/libsid.so

#----------------------------------------------------------------------------

%package simple-ui
Summary:	Qmmp Simple UI Plugin
Group:		Sound

%description simple-ui
This is the Simple UI Plugin for Qmmp (simple user interface based on standard
widgets set).

%files simple-ui
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Ui/libqsui.so

#----------------------------------------------------------------------------

%package wavpack
Summary:	Qmmp WavPack Input Plugin
Group:		Sound

%description wavpack
This is the WavPack Input Plugin for Qmmp.

%files wavpack
%doc AUTHORS ChangeLog
%{_libdir}/%{name}-1.6/Input/libwavpack.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
# oss3 support is deprecated upstrea:m for now I'll enable it ...
# Our mpcdec package is too old to build: re-enable when updated...
%cmake \
	-DUSE_OSS:BOOL=TRUE \
	-DUSE_HAL:BOOL=FALSE \
	-DUSE_UDISKS2:BOOL=TRUE \
	-DUSE_HISTORY=TRUE \
	-DUSE_RPATH=TRUE \
%if %{with mpc}
	-DUSE_MPC=TRUE \
%else
	-DUSE_MPC=FALSE \
%endif
	-DQMMP_DEFAULT_OUTPUT="pulse" \
	-GNinja

%ninja_build


%install
%ninja_install -C build

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}-1/scripts/kwin.sh

# Filter out unsupported formats from MimeType
sed -i -e "s#audio/x-ffmpeg-shorten;##" \
       -e "s#audio/x-ms-wma;##" \
       -e "s#audio/aac;##" \
       -e "s#audio/x-aac;##" \
       -e "s#audio/m4a;##" \
       -e "s#audio/x-m4a;##" \
    %{buildroot}/%{_datadir}/applications/%{name}-1.desktop
sed -i -e "s#audio/x-ffmpeg-shorten;##" \
       -e "s#audio/x-ms-wma;##" \
       -e "s#audio/aac;##" \
       -e "s#audio/x-aac;##" \
       -e "s#audio/m4a;##" \
       -e "s#audio/x-m4a;##" \
    %{buildroot}/%{_datadir}/applications/%{name}-enqueue-1.desktop

# Fix gzipped-svg-icon
(
cd %{buildroot}%{_iconsdir}/hicolor/scalable/apps/
zcat %{name}-1.svgz > %{name}-1.svg && rm -f %{name}-1.svgz
zcat %{name}-simple-1.svgz > %{name}-simple-1.svg && rm -f %{name}-simple-1.svgz
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16795 |21mr|qmmp-plugin-pack-1.6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname qmmp

Summary:	A set of extra plug-ins for Qmmp
Name:		qmmp-plugin-pack
Version:	1.6.0
Release:	2
License:	GPLv2+
Group:		Sound
Url:		http://qmmp.ylsoftware.com/plugins.php
Source0:	http://qmmp.ylsoftware.com/files/qmmp-plugin-pack/1.6/qmmp-plugin-pack-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	yasm
BuildRequires:	qt5-linguist-tools
BuildRequires:	ffmpeg-devel >= 3.1
BuildRequires:	pkgconfig(libmpg123) >= 1.13.0
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(qmmp-1) >= 1.3.0
BuildRequires:	pkgconfig(qmmpui-1) >= 1.3.0
BuildRequires:	pkgconfig(Qt5Core) >= 5.4.0
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets) >= 5.4.0
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(taglib) >= 1.10
Recommends:	%{oname}-ffap = %{EVRD}
Recommends:	%{oname}-modplug = %{EVRD}
Recommends:	%{oname}-ffvideo = %{EVRD}
Recommends:	%{oname}-goom = %{EVRD}
Recommends:	%{oname}-samplerate = %{EVRD}
Recommends:	%{oname}-ytb = %{EVRD}
%rename	%{oname}-mpg123
%rename	%{oname}-history

%description
Plug-ins for Qmmp in the Qmmp Plug-in Pack:
 * FFap - enhanced Monkey's Audio (APE) decoder
   (24-bit samples and embedded cue support);
 * Ffmpeg - video engine based on ffmpeg;
 * Goom - Goom visualizer;
 * ModPlug support;
 * Samplerate - convert sound sample rates using libsamplerate;
 * Ytb - Audio playback from YouTube (uses youtube-dl)

%files
%{_datadir}/metainfo/qmmp-plugin-pack-1.appdata.xml

#----------------------------------------------------------------------------

%package -n %{oname}-ffap
Summary:	Qmmp FFap Input Plugin
Group:		Sound

%description -n %{oname}-ffap
This is the FFap Input Plugin for Qmmp (enhanced Monkey's Audio (APE) decoder,
24-bit samples and embedded cue support).

%files -n %{oname}-ffap
%doc AUTHORS COPYING ChangeLog.rus README README.RUS ChangeLog ChangeLog.svn
%{_libdir}/%{oname}-1.6/Input/libffap.so

#----------------------------------------------------------------------------

%package -n %{oname}-modplug
Summary:	Qmmp modplug Input Plugin
Group:		Sound

%description -n %{oname}-modplug
This is the Modplug Input Plugin for Qmmp.

%files -n %{oname}-modplug
%doc AUTHORS COPYING ChangeLog.rus README README.RUS ChangeLog ChangeLog.svn
%{_libdir}/%{oname}-1.6/Input/libmodplug.so

#----------------------------------------------------------------------------

%package -n %{oname}-ffvideo
Summary:	Qmmp FFVideo Engine Plugin
Group:		Video

%description -n %{oname}-ffvideo
This is the FFmpeg Video Engine Plugin for Qmmp.

%files -n %{oname}-ffvideo
%doc AUTHORS COPYING ChangeLog.rus README README.RUS ChangeLog ChangeLog.svn
%{_libdir}/%{oname}-1.6/Engines/libffvideo.so

#----------------------------------------------------------------------------

%package -n %{oname}-goom
Summary:	Qmmp goom visualization Plugin
Group:		Sound

%description -n %{oname}-goom
This is the Plugin for Qmmp for goom.

%files -n %{oname}-goom
%doc AUTHORS COPYING ChangeLog.rus README README.RUS ChangeLog ChangeLog.svn
%{_libdir}/%{oname}-1.6/Visual/libgoom.so

#----------------------------------------------------------------------------

%package -n %{oname}-samplerate
Summary:	Qmmp sample rate conversion Plugin
Group:		Sound

%description -n %{oname}-samplerate
This is the Plugin for Qmmp for convert sample rates (using libsamplerate
library).

%files -n %{oname}-samplerate
%doc AUTHORS COPYING ChangeLog.rus README README.RUS ChangeLog ChangeLog.svn
%{_libdir}/%{oname}-1.6/Effect/libsrconverter.so

#----------------------------------------------------------------------------

%package -n %{oname}-ytb
Summary:	Qmmp audio playback from YouTube (uses youtube-dl)
Group:		Sound

%description -n %{oname}-ytb
This is a Plugin for Qmmp that allows audio playback from YouTube (uses youtube-dl).

%files -n %{oname}-ytb
%doc AUTHORS COPYING ChangeLog.rus README README.RUS ChangeLog ChangeLog.svn
%{_libdir}/%{oname}-1.6/Transports/libytb.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%ifarch %{e2k}
# error: unrecognized argument to attribute "optimize"
sed -i 's/,unroll-loops//' src/Input/ffap/ffap.c
%endif

%build
%cmake_qt5
%make


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16796 |21mr|qoauth-2.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %nil
%bcond_with docs
Summary:	Qt-based C++ library for OAuth authorization scheme
Name:		qoauth
Version:	2.0.1
Release:	5
License:	LGPLv3+
Group:		Graphical desktop/KDE
Url:		http://github.com/ayoy/qoauth
# tarball 2.0.1 come from: https://github.com/ayoy/qoauth/commit/02fbc13a42d945b703a28a49d71c02b20c76a0b8
Source0:	http://files.ayoy.net/qoauth/release/%{version}/src/%{name}-%{version}-src.tar.gz
Patch0:		qoauth-2.0.1-Qt5-port.patch
%if %{with docs}
BuildRequires:	doxygen
%endif
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)

%description
QOAuth is an attempt to support interaction with OAuth-powered network
services in a Qt way, i.e. simply, clearly and efficiently. It gives
the application developer no more than 4 methods, namely:

* requestToken() to obtain an unauthorized Request Token,
* accessToken() to exchange Request Token for the Access Token,
* createParametersString() to construct a request according to OAuth
  authorization scheme,
* inlineParemeters() - to construct a query string basing on given
  parameters (provided only for convenience).

#----------------------------------------------------------------------------

%define qoauth5_major 2
%define libqoauth5 %mklibname qoauth5_ %{qoauth5_major}

%package -n %{libqoauth5}
Summary:	%{name} Qt5 core library
Group:		System/Libraries
Requires:	qca2-qt5-plugin-openssl

%description -n %{libqoauth5}
%{name} Qt5 core library.

%files -n %{libqoauth5}
%{_qt5_libdir}/libqoauth5.so.%{qoauth5_major}*

#-----------------------------------------------------------------------------

%define devqoauth5 %mklibname qoauth-qt5 -d

%package -n %{devqoauth5}
Summary:	Development files for %{name} (Qt5)
Group:		Development/KDE and Qt
Requires:	%{libqoauth5} = %{EVRD}
Provides:	qoauth-qt5-devel = %{EVRD}

%description -n %{devqoauth5}
This package contains Qt5 header files needed if you wish to build
applications based on %{name}.

%files -n %{devqoauth5}
%if %{with docs}
%doc html/html doc/examples
%endif
%{_qt5_includedir}/QtOAuth/
%{_qt5_libdir}/libqoauth5.prl
%{_qt5_libdir}/libqoauth5.so
%{_qt5_libdir}/pkgconfig/qoauth-qt5.pc
%{_qt5_prefix}/mkspecs/features/oauth.prf

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-src
%autopatch -p1
sed -i -e 's\/lib\/%{_lib}\g' src/pcfile.sh

%ifarch aarch64
sed -i -e 's\x86_64\aarch64\g' src/src.pro
%endif
%ifarch %{e2k}
sed -i -e 's\x86_64\e2k\g' src/src.pro
%endif

%build
%qmake_qt5

%install
make install INSTALL="install -p" INSTALL_ROOT=%{buildroot}

%if %{with docs}
doxygen Doxyfile
for file in doc/html/*; do
     touch -r Doxyfile $file
done
%endif

%check
make check || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16797 |21mr|qpdf-11.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 29
%define libname %mklibname qpdf %{major}
%define devname %mklibname qpdf -d

Summary:	Inspect and manipulate PDF files
Name:		qpdf
Version:	11.9.1
Release:	1
Group:		Office
License:	Artistic
Url:		http://sourceforge.net/projects/qpdf/
Source0:	http://sourceforge.net/projects/qpdf/files/qpdf/%{version}/%{name}-%{version}.tar.gz
# from Fedora
#Patch0:		qpdf-relax.patch
BuildRequires:	cmake
BuildRequires:	libxml2-utils
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(gnutls)
# for fix-qdf and test suite
BuildRequires:	perl(Digest::MD5)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpcre)
#BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(zlib)

%description
QPDF is a C++ library and set of programs that inspect and manipulate
the structure of PDF files. It can encrypt and linearize files, expose
the internals of a PDF file, and do many other operations useful to end
users and PDF developers.

%files
%doc Artistic-2.0 ChangeLog README*
%{_bindir}/fix-qdf
%{_bindir}/%{name}
%{_bindir}/zlib-flate
%{_mandir}/man1/fix-qdf.1.*
%{_mandir}/man1/qpdf.1.*
%{_mandir}/man1/zlib-flate.1.*

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:	Inspect and manipulate PDF files library
Group:		System/Libraries

%description -n %{libname}
QPDF is a C++ library and set of programs that inspect and manipulate
the structure of PDF files. It can encrypt and linearize files, expose
the internals of a PDF file, and do many other operations useful to end
users and PDF developers.

%files -n %{libname}
%{_libdir}/libqpdf.so.%{major}*

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the qpdf library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Devel package for %{name}

%files -n %{devname}
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/*.hh
%{_libdir}/cmake/qpdf/
%{_libdir}/libqpdf.so
%{_libdir}/pkgconfig/libqpdf.pc

#-----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DREQUIRE_CRYPTO_GNUTLS=1 \
	-DUSE_IMPLICIT_CRYPTO=0
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{_datadir}/doc/qpdf/examples/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16798 |21mr|qpdfview-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Light-weight tabbed PDF, DJVU and PostScript viewer
Name:		qpdfview
Version:	0.5
Release:	3
License:	GPLv2+
Group:		Office
Url:		https://launchpad.net/qpdfview
Source0:	https://github.com/darealshinji/qpdfview/archive/%{name}-%{version}.tar.gz?/%{name}-%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	cups-devel
BuildRequires:	mupdf-devel
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(ddjvuapi)
BuildRequires:	pkgconfig(jbig2dec)
BuildRequires:	pkgconfig(libmagic)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libspectre)
BuildRequires:	pkgconfig(mujs)
BuildRequires:	pkgconfig(poppler-qt5)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(tesseract)
BuildRequires:	pkgconfig(zlib)
Requires:	qt5-database-plugin-sqlite

%description
Qpdfview is a light-weight tabbed PDF, DJVU and PostScript viewer.

%files -f %{name}.lang
%doc CHANGES CONTRIBUTORS README TODO
%license COPYING
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/help*.html
%{_datadir}/%{name}/%{name}.svg
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_libdir}/%{name}/lib%{name}_djvu.so
%{_libdir}/%{name}/lib%{name}_fitz.so
%{_libdir}/%{name}/lib%{name}_image.so
%{_libdir}/%{name}/lib%{name}_pdf.so
%{_libdir}/%{name}/lib%{name}_ps.so
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
lrelease-qt5 %{name}.pro
%qmake_qt5	\
	CONFIG+=with_fitz					\
	DATA_INSTALL_PATH="%{_datadir}/%{name}"			\
	FITZ_PLUGIN_LIBS="-lmupdf -ltesseract -lopenjp2 -ljbig2dec -lfreetype -ljpeg -lz -lharfbuzz -llcms2 -lmujs"	\
	PLUGIN_INSTALL_PATH="%{_libdir}/%{name}"		\
	%{name}.pro
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}
install -Dm 0644 icons/%{name}.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
install -Dm 0644 icons/%{name}.svg %{buildroot}%{_datadir}/%{name}/%{name}.svg

# install menu icons
for N in 16 32 48 64 128;
do
convert icons/%{name}.svg -resize ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done
install -D -m 0644 icons/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

%find_lang %{name} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16799 |21mr|qpid-proton-0.34.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global proton_datadir %{_datadir}/proton
%global Werror_cflags %nil

%global __provides_exclude_from ^%{proton_datadir}/examples/.*$
%global __requires_exclude_from ^%{proton_datadir}/examples/.*$


#  for older rpm, like el6, https://fedoraproject.org/wiki/EPEL:Packaging_Autoprovides_and_Requires_Filtering#Perl
%{?filter_setup:
%filter_provides_in %{proton_datadir}/examples/
%filter_requires_in %{proton_datadir}/examples/
%filter_setup
}
%define major_core 10
%define major_proton 11
%define major_cpp 12
%define major_proactor 1

%define libcore %mklibname %{name}-core %{major_core}
%define libproton %mklibname %{name}-core-proton %{major_proton}
%define libactor %mklibname %{name}-actor %{major_proactor}
%define libcore_cpp %mklibname %{name}-core-cpp %{major_cpp}
%define devname %mklibname -d %{name}-core
%define devnamecpp %mklibname -d %{name}-cpp

Name:		qpid-proton
Version:	0.34.0
Release:	1
Summary:	A high performance, lightweight messaging library
Group:		System/Libraries
License:	ASL 2.0
URL:	http://qpid.apache.org/proton/
Source0:	https://github.com/apache/qpid-proton/archive/%{version}.tar.gz
Source1:	licenses.xml

%global proton_licensedir %{_licensedir}/proton
%{!?_licensedir:%global license %doc}
%{!?_licensedir:%global proton_licensedir %{proton_datadir}}

BuildRequires:	cmake
BuildRequires:	swig
BuildRequires:	doxygen
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	python3-devel
BuildRequires:	python3-sphinx
BuildRequires:	cyrus-sasl-devel
BuildRequires:	jsoncpp-devel

%description
Proton is a high performance, lightweight messaging library. It can be used in
the widest range of messaging applications including brokers, client libraries,
routers, bridges, proxies, and more. Proton is based on the AMQP 1.0 messaging
standard. Using Proton it is trivial to integrate with the AMQP 1.0 ecosystem
from any platform, environment, or language.

#--------------------------------------------------------------
%package -n %{libcore}
Summary:	C libraries for Qpid Proton
Group:		System/Libraries
Requires:	%{libactor} = %{EVRD}
Requires:	%{libproton} = %{EVRD}

%description -n %{libcore}
%{summary}.

%files -n %{libcore}
%dir %{proton_datadir}
%license %{proton_licensedir}/LICENSE.txt
%license %{proton_licensedir}/licenses.xml
%doc %{proton_datadir}/README*
%{_libdir}/libqpid-proton-core.so.%{major_core}*

#--------------------------------------------------------------

%package -n %{libproton}
Summary:	C libraries for Qpid Proton
Group:		System/Libraries

%description -n %{libproton}
%{summary}.

%files -n %{libproton}
%{_libdir}/libqpid-proton.so.%{major_proton}*

#--------------------------------------------------------------

%package -n %{libactor}
Summary:	C libraries for Qpid Proton
Group:		System/Libraries

%description -n %{libactor}
%{summary}.

%files -n %{libactor}
%{_libdir}/libqpid-proton-proactor.so.%{major_proactor}*

#--------------------------------------------------------------

%package   -n %{libcore_cpp}
Summary:	C++ libraries for Qpid Proton
Group:		System/Libraries
Requires:	%{libcore} = %{EVRD}

%description -n %{libcore_cpp}
%{summary}.

%files -n %{libcore_cpp}
%dir %{proton_datadir}
%license %{proton_licensedir}/LICENSE.txt
%license %{proton_licensedir}/licenses.xml
%doc %{proton_datadir}/README*
%{_libdir}/libqpid-proton-cpp.so.%{major_cpp}*

#--------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries for writing messaging apps with Qpid Proton
Group:		Development/Other
Requires:	%{libcore} = %{EVRD}
Requires:	%{libactor} = %{EVRD}

%description -n %{devname}
%{summary}.

%files -n %{devname}
%{_includedir}/proton
%exclude %{_includedir}/proton/*.hpp
%exclude %{_includedir}/proton/**/*.hpp
%{_libdir}/libqpid-proton.so
%{_libdir}/libqpid-proton-core.so
%{_libdir}/libqpid-proton-proactor.so
%{_libdir}/pkgconfig/libqpid-proton.pc
%{_libdir}/pkgconfig/libqpid-proton-core.pc
%{_libdir}/pkgconfig/libqpid-proton-proactor.pc
%{_libdir}/cmake/Proton

#--------------------------------------------------------------

%package -n %{devnamecpp}
Summary:	Development libraries for writing messaging apps with Qpid Proton
Group:		Development/Other
Requires:	%{libcore_cpp} = %{EVRD}
Requires:	%{devname} = %{EVRD}

%description -n %{devnamecpp}
%{summary}.

%files -n %{devnamecpp}
%{_includedir}/proton/*.hpp
%{_includedir}/proton/**/*.hpp
%{_libdir}/pkgconfig/libqpid-proton-cpp.pc
%{_libdir}/libqpid-proton-cpp.so
%{_libdir}/cmake/ProtonCpp

#--------------------------------------------------------------

%package c-docs
Summary:	Documentation for the C development libraries for Qpid Proton
Group:		Documentation
BuildArch:	noarch

%description c-docs
%{summary}.

%files c-docs
%license %{proton_licensedir}/LICENSE.txt
%license %{proton_licensedir}/licenses.xml
%doc %{proton_datadir}/docs/api-c
%doc %{proton_datadir}/examples/README.md
%doc %{proton_datadir}/examples/c/ssl-certs
%doc %{proton_datadir}/examples/c/*.c
%doc %{proton_datadir}/examples/c/*.h
%doc %{proton_datadir}/examples/c/README.dox
%doc %{proton_datadir}/examples/c/CMakeLists.txt

#--------------------------------------------------------------

%package cpp-docs
Summary:	Documentation for the C++ development libraries for Qpid Proton
Group:		Documentation
BuildArch:	noarch

%description cpp-docs
%{summary}.

%files cpp-docs
%license %{proton_licensedir}/LICENSE.txt
%license %{proton_licensedir}/licenses.xml
%{proton_datadir}/docs/api-cpp
%doc %{proton_datadir}/examples/cpp/*.cpp
%doc %{proton_datadir}/examples/cpp/*.hpp
%doc %{proton_datadir}/examples/cpp/README.dox
%doc %{proton_datadir}/examples/cpp/CMakeLists.txt
%doc %{proton_datadir}/examples/cpp/ssl-certs
%doc %{proton_datadir}/examples/cpp/tutorial.dox

#--------------------------------------------------------------

%package -n python3-qpid-proton
Summary:	Python language bindings for the Qpid Proton messaging framework
Group:		Development/Python
Requires: %{libcore} = %{EVRD}
Requires: python3

%description -n python3-qpid-proton
%{summary}.

%files -n python3-qpid-proton
%{python3_sitearch}/*

#--------------------------------------------------------------

%package -n python-qpid-proton-docs
Summary:	Documentation for the Python language bindings for Qpid Proton
Group:		Documentation
BuildArch:	noarch

%description -n python-qpid-proton-docs
%{summary}.

%files -n python-qpid-proton-docs
%license %{proton_licensedir}/LICENSE.txt
%license %{proton_licensedir}/licenses.xml
%doc %{proton_datadir}/docs/api-py
%doc %{proton_datadir}/examples/python

#--------------------------------------------------------------

%package tests
Summary:	Qpid Proton Tests
Group:		Development/Other
BuildArch:	noarch

%description tests
%{summary}.

%files tests
%doc %{proton_datadir}/tests

#--------------------------------------------------------------

%prep
%autosetup -p1

%build
python_includes=$(ls -d /usr/include/python3*)
%cmake \
    -DSYSINSTALL_BINDINGS=ON \
    -DENABLE_WARNING_ERROR=OFF \
    -DCMAKE_SKIP_RPATH:BOOL=OFF \
    -DENABLE_FUZZ_TESTING=NO \
    "-DCMAKE_C_FLAGS=$CMAKE_C_FLAGS $CFLAGS -Wno-error=format-security" \
    "-DCMAKE_CXX_FLAGS=$CMAKE_CXX_FLAGS $CXXFLAGS -Wno-error=format-security"

make all docs -j1
(cd python/dist; %py3_build)

%install
%make_install -C build
(cd build/python/dist; %py3_install)
find %{buildroot}%{proton_datadir}/examples/python -name "*.py" -exec sed -i 's/!\/usr\/bin\/env python/!\/usr\/bin\/python3/' {} \;
#sed -i 's/!\/usr\/bin\/python/!\/usr\/bin\/python3/' %{buildroot}%{proton_datadir}/examples/c/testme
#sed -i 's/!\/usr\/bin\/python/!\/usr\/bin\/python3/' %{buildroot}%{proton_datadir}/examples/cpp/testme
echo '#!/usr/bin/python3' > %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original
cat %{buildroot}%{proton_datadir}/examples/python/proton_server.py >> %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original
mv %{buildroot}%{proton_datadir}/examples/python/proton_server.py.original %{buildroot}%{proton_datadir}/examples/python/proton_server.py

chmod +x %{buildroot}%{python3_sitearch}/_cproton.so

install -dm 755 %{buildroot}%{proton_licensedir}
install -pm 644 %{SOURCE1} %{buildroot}%{proton_licensedir}
install -pm 644 %{buildroot}%{proton_datadir}/LICENSE.txt %{buildroot}%{proton_licensedir}
rm -f %{buildroot}%{proton_datadir}/LICENSE.txt

# clean up files that are not shipped
rm -rf %{buildroot}%{_exec_prefix}/bindings
rm -rf %{buildroot}%{_libdir}/java
rm -rf %{buildroot}%{_libdir}/libproton-jni.so
rm -rf %{buildroot}%{_datarootdir}/java
rm -rf %{buildroot}%{_libdir}/proton.cmake
rm -fr %{buildroot}%{proton_datadir}/examples/CMakeFiles
rm -f  %{buildroot}%{proton_datadir}/examples/Makefile
rm -f  %{buildroot}%{proton_datadir}/examples/*.cmake
rm -fr %{buildroot}%{proton_datadir}/examples/c/CMakeFiles
rm -f  %{buildroot}%{proton_datadir}/examples/c/*.cmake
rm -f  %{buildroot}%{proton_datadir}/examples/c/Makefile
rm -f  %{buildroot}%{proton_datadir}/examples/c/broker
rm -f  %{buildroot}%{proton_datadir}/examples/c/direct
rm -f  %{buildroot}%{proton_datadir}/examples/c/receive
rm -f  %{buildroot}%{proton_datadir}/examples/c/send
rm -f  %{buildroot}%{proton_datadir}/examples/c/send-abort
rm -f  %{buildroot}%{proton_datadir}/examples/c/send-ssl
rm -fr %{buildroot}%{proton_datadir}/examples/cpp/CMakeFiles
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/*.cmake
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/Makefile
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/broker
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/client
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/connection_options
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/direct_recv
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/direct_send
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/encode_decode
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/flow_control
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/helloworld
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/helloworld_direct
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/queue_browser
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/scheduled_send_03
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/scheduled_send
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/selected_recv
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/server
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/server_direct
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/service_bus
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/simple_connect
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/simple_recv
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/simple_send
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/ssl
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/ssl_client_cert
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/message_properties
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/multithreaded_client
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/multithreaded_client_flow_control
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/reconnect_client
rm -f  %{buildroot}%{proton_datadir}/examples/cpp/colour_send
rm -fr %{buildroot}%{proton_datadir}/examples/engine/java
rm -fr %{buildroot}%{proton_datadir}/examples/go
rm -fr %{buildroot}%{proton_datadir}/examples/java
rm -fr %{buildroot}%{proton_datadir}/examples/javascript
rm -fr %{buildroot}%{proton_datadir}/examples/ruby
rm -fr %{buildroot}%{proton_datadir}/examples/perl
rm -fr %{buildroot}%{proton_datadir}/examples/php
rm -f  %{buildroot}%{proton_datadir}/CMakeLists.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16800 |21mr|qpid-proton-java-0.12.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          qpid-proton-java
Version:       0.12.2
Release:       6
Summary:       Java libraries for Qpid Proton
License:       ASL 2.0
URL:           http://qpid.apache.org/proton/
Source0:       http://www.apache.org/dist/qpid/proton/%{version}/qpid-proton-%{version}.tar.gz

Patch0:        0001-interface-implementation-fix.patch

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache:apache:pom:)
# BuildRequires: mvn(org.apache.maven.doxia:doxia-module-markdown)
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires: mvn(org.fusesource.hawtbuf:hawtbuf)
BuildRequires: mvn(org.fusesource.hawtdispatch:hawtdispatch-transport)
BuildRequires: mvn(org.mockito:mockito-core)

Group:         Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java language bindings for the Qpid Proton messaging framework.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n qpid-proton-%{version}
%patch0 -p1

# Unwanted
rm -r tools docs config.* examples/c examples/javascript \
  examples/php examples/python \
  examples/perl examples/ruby examples/engine/c \
  examples/go examples/cpp CMakeLists.txt bin proton-c \
  tests/smoke tests/ruby tests/python tests/tools tests/javascript

%pom_remove_dep org.apache.maven.doxia:doxia-module-markdown
%pom_remove_dep org.python:jython-standalone tests
rm tests/java/org/apache/qpid/proton/JythonTest.java

rm contrib/proton-hawtdispatch/src/test/java/org/apache/qpid/proton/hawtdispatch/api/SampleTest.java

%mvn_alias :proton-j org.apache.qpid:proton-api org.apache.qpid:proton-j-impl

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license proton-j/LICENSE
%doc examples/java/messenger/README.txt

%files javadoc -f .mfiles-javadoc
%license proton-j/LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16801 |21mr|qps-2.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Visual process manager
Name:		qps
Version:	2.8.0
Release:	1
License:	GPL
Group:		Monitoring
Url:		https://github.com/lxqt/qps
Source0:	https://github.com/lxqt/qps/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch1:		qps-2.3.0-not-exit-on-close.patch
Patch2:		qps-2.8.0-ts-ru-translate.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrender)
Recommends:	qt5-qttranslations

%description
Qps is a visual process manager, an X11 version of "top" or "ps" that 
displays processes in a window and lets you sort and manipulate them. 

%files
%doc CHANGELOG README.md
%license COPYING
%{_appdatadir}/org.lxqt.Qps.appdata.xml
%{_bindir}/%{name}*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/48x48/apps/qps.png
%{_mandir}/man1/qps.1*
%config(noreplace) %{_sysconfdir}/xdg/autostart/lxqt-%{name}-autostart.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart/
cat > %{buildroot}%{_sysconfdir}/xdg/autostart/lxqt-%{name}-autostart.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=CPULoad in tray
Name[ru]=Нагрузка CPU в трее
Comment=Autostart qps
Comment[ru]=Автозапуск qps
Exec=%{name}-start -mini
Type=Application
Categories=X-LXQt;
X-LXQt-Need-Tray=true
EOF

mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-start
cat > %{buildroot}%{_bindir}/%{name} << EOF
#/bin/sh
killall /usr/bin/qps-start &>/dev/null
sleep 0.5
/usr/bin/qps-start "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/%{name}
sed -i "s!^Exec=.*!Exec=/bin/sh -c qps!" %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16802 |21mr|qqc2-breeze-style-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma QtQuickControls 2 breeze style
Name:		qqc2-breeze-style
Version:	5.27.11
Release:	2
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	qt5-qtquickcontrols2-qml

%description
This is a breeze style for QtQuickControls 2 that uses QWidget's QStyle for
painting, making possible to achieve an higher degree of consistency
between QWidget-based and QML-based apps.

%files
%dir %{_kde5_qmldir}/QtQuick/Controls.2/org.kde.breeze/
%{_kde5_qmldir}/QtQuick/Controls.2/org.kde.breeze/*
%dir %{_kde5_qmldir}/org/kde/breeze/
%{_kde5_qmldir}/org/kde/breeze/*
%dir %{_kde5_qmldir}/org/kde/kirigami.2/styles/
%{_kde5_qmldir}/org/kde/kirigami.2/styles/*
%{_qt5_plugindir}/kf5/kirigami/org.kde.breeze.so

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for Plasma QtQuickControls 2 breeze style
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{version}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_libdir}/cmake/KF5QQC2BreezeStyle/

#----------------------------------------------------------------------

%prep
%setup -n %{name}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16803 |21mr|qqc2-desktop-style-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE's QtQuickControls 2 style that integrates with the desktop
Name:		qqc2-desktop-style
Version:	5.116.0
Release:	2
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Source1:	qqc2desktopstyle_qt.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	qt5-qtquickcontrols2-qml

%description
This is a style for QtQuickControls 2 that uses QWidget's QStyle for
painting, making possible to achieve an higher degree of consistency
between QWidget-based and QML-based apps.

%files  -f qqc2desktopstyle.lang
%dir %{_kde5_qmldir}/QtQuick/Controls.2/org.kde.desktop/
%{_kde5_qmldir}/QtQuick/Controls.2/org.kde.desktop/*
%dir %{_kde5_qmldir}/org/kde/qqc2desktopstyle/
%{_kde5_qmldir}/org/kde/qqc2desktopstyle/*
%{_qt5_plugindir}/kf5/kirigami/org.kde.desktop.so

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for KDE's QtQuickControls 2 style
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{version}

%description -n %{devname}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devname}
%{_kde5_libdir}/cmake/KF5QQC2DeskopStyle/
%{_kde5_libdir}/cmake/KF5QQC2DesktopStyle/

#----------------------------------------------------------------------

%prep
%autosetup -p1

# update ru translation
pushd poqm
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang qqc2desktopstyle --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16804 |21mr|qqwing-1.3.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Command-line Sudoku solver and generator
Name:		qqwing
Version:	1.3.4
Release:	6
License:	GPLv2+
Group:		Games/Puzzles
Url:		http://qqwing.com/
Source0:	http://qqwing.com/qqwing-%{version}.tar.gz

%description
QQwing is a command-line Sudoku solver and generator.

%files
%doc README
%{_bindir}/qqwing
%{_mandir}/man1/qqwing.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for Sudoku solving and generation
Group:		System/Libraries

%description -n %{libname}
libqqwing is a C++ library for solving and generating Sudoku puzzles.

%files -n %{libname}
%doc AUTHORS COPYING
%{_libdir}/libqqwing.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libqqwing
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use libqqwing.

%files -n %{devname}
%doc README
%{_includedir}/*
%{_libdir}/libqqwing.so
%{_libdir}/pkgconfig/qqwing.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16805 |21mr|qr-code-generator-1.8.0-1.20220417git720f62b
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define clib %mklibname qrcodegen 1
%define clibd %mklibname -d qrcodegen
%define cpplib %mklibname qrcodegencpp 1
%define cpplibd %mklibname -d qrcodegencpp

%global richname QR-Code-generator
%global commit0 720f62bddb7226106071d4728c292cb1df519ceb
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})
%global date 20220417
%bcond_with java

Name:    qr-code-generator
Version: 1.8.0
Release: 1.%{date}git%{shortcommit0}%{?dist}
Group:   System/Libraries

License: MIT
Summary: High-quality QR Code generator library
URL:     https://github.com/nayuki/%{richname}
Source0: %{url}/archive/%{commit0}/%{name}-%{shortcommit0}.tar.gz

# https://github.com/nayuki/QR-Code-generator/pull/72
Patch100: qr-code-generator-build-fixes.patch

%if %{with java}
BuildRequires: jdk-current
%endif
BuildRequires: pkgconfig(python3)
BuildRequires: python3dist(setuptools)

# FIXME package Javascript, Typescript and Rust modules once we have
# a proper unified packaging system for those languages

%description
This project aims to be the best, clearest QR Code generator library in
multiple languages.

The primary goals are flexible options and absolute correctness.
Secondary goals are compact implementation size and good documentation
comments.

%package -n %{clib}
Summary: QR Code generator library for C
Group: System/Libraries

%description -n %{clib}
QR Code generator library for C


%package -n %{clibd}
Summary: Development files for the QR Code generator C library
Group: Development/C
Requires: %{clib} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n %{clibd}
Development files for the QR Code generator C library

%package -n %{cpplib}
Summary: QR Code generator library for C++
Group: System/Libraries

%description -n %{cpplib}
QR Code generator library for C++

%package -n %{cpplibd}
Summary: Development files for the QR Code generator C++ library
Group: Development/C
Requires: %{cpplib} = %{EVRD}
Provides: %{name}-c++-devel = %{EVRD}

%description -n %{cpplibd}
Development files for the QR Code generator C++ library

%if %{with java}
%package -n java-io.nayuki.qrcodegen
Summary: QR Code generator library for Java
Group: Development/Java

%description -n java-io.nayuki.qrcodegen
QR Code generator library for Java

%package -n javadoc-io.nayuki.qrcodegen
Summary: API documentation for the QR Code generator library for Java
Group: Development/Java

%description -n javadoc-io.nayuki.qrcodegen
API documentation for the QR Code generator library for Java
%endif

%package -n python3-qrcodegen
Summary: High-quality QR Code generator library (Python version)
BuildArch: noarch
%{?python_provide:%python_provide python3-qrcodegen}

%description -n python3-qrcodegen
This project aims to be the best, clearest QR Code generator library in
multiple languages.

The primary goals are flexible options and absolute correctness.
Secondary goals are compact implementation size and good documentation
comments.

%prep
%autosetup -n %{richname}-%{commit0} -p1

%build
# Exporting correct build flags...
%set_build_flags

# Building plain C version...
%make_build -C c CC=%{__cc} CFLAGS="%{optflags}"

# Building C++ version...
%make_build -C cpp CXX=%{__cxx} CXXFLAGS="%{optflags}"

%if %{with java}
# Building Java version...
cd java/src/main/java
. %{_sysconfdir}/profile.d/90java.sh
export PATH=$JAVA_HOME/bin:$PATH
export LANG=en_US.utf-8
export LC_ALL=en_US.utf-8
cat >module-info.java <<EOF
module io.nayuki.qrcodegen {
	exports io.nayuki.qrcodegen;
	requires java.desktop;
}
EOF
find . -name "*.java" |xargs javac --add-modules java.desktop
find . -name "*.class" -o -name "*.properties" |xargs jar cf io.nayuki.qrcodegen-%{version}.jar
javadoc -d docs -sourcepath . --add-modules java.desktop io.nayuki.qrcodegen
cd -
%endif

# Building Python version...
pushd python
%py3_build
popd

%install
# Installing plain C version...
%make_install -C c LIBDIR=%{buildroot}%{_libdir} INCLUDEDIR=%{buildroot}%{_includedir}/qrcodegen

# Installing C++ version...
%make_install -C cpp LIBDIR=%{buildroot}%{_libdir} INCLUDEDIR=%{buildroot}%{_includedir}/qrcodegencpp

%if %{with java}
# Installing Java version...
cd java
mkdir -p %{buildroot}%{_datadir}/java/modules %{buildroot}%{_datadir}/javadoc
mv src/main/java/*.jar %{buildroot}%{_datadir}/java/modules/
ln -s modules/io.nayuki.qrcodegen-%{version}.jar %{buildroot}%{_datadir}/java/
ln -s modules/io.nayuki.qrcodegen-%{version}.jar %{buildroot}%{_datadir}/java/io.nayuki.qrcodegen.jar
mv src/main/java/docs %{buildroot}%{_datadir}/javadoc/io.nayuki.qrcodegen
cd ..
%endif

# Installing Python version...
pushd python
%py3_install
popd

%files -n %{clib}
%{_libdir}/libqrcodegen.so.1*

%files -n %{clibd}
%dir %{_includedir}/qrcodegen
%{_includedir}/qrcodegen/*.h
%{_libdir}/libqrcodegen.so

%files -n %{cpplib}
%{_libdir}/libqrcodegencpp.so.1*

%files -n %{cpplibd}
%dir %{_includedir}/qrcodegen
%{_includedir}/qrcodegencpp/*.hpp
%{_libdir}/libqrcodegencpp.so

%if %{with java}
%files -n java-io.nayuki.qrcodegen
%{_datadir}/java/*.jar
%{_datadir}/java/modules/*

%files -n javadoc-io.nayuki.qrcodegen
%{_datadir}/javadoc/io.nayuki.qrcodegen
%endif

%files -n python3-qrcodegen
%{py3_puresitedir}/qrcodegen.py*
%{py3_puresitedir}/__pycache__/*
%{py3_puresitedir}/*.egg-info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16806 |21mr|qrencode-4.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	QR Code encoder into PNG image
Name:		qrencode
Version:	4.1.1
Release:	2
License:	LGPLv2+
Group:		File tools
Url:		http://megaui.net/fukuchi/works/qrencode/index.en.html
# https://github.com/fukuchi/libqrencode/releases
Source0:	http://megaui.net/fukuchi/works/qrencode/%{name}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	libtool
BuildRequires:	pkgconfig(libpng)

%description
Qrencode is a utility software using libqrencode to encode string data in a
QR Code and save as a PNG image.

%files
%{_bindir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A C library for encoding data in a QR Code symbol
Group:		System/Libraries

%description -n %{libname}
Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 2D
symbology that can be scanned by handy terminals such as a mobile phone with
CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and is
highly robustness.

Libqrencode supports QR Code model 2, described in JIS (Japanese Industrial
Standards) X0510:2004 or ISO/IEC 18004.

%files -n %{libname}
%doc COPYING
%{_libdir}/libqrencode.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The development files for the qrencode library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Libqrencode is a C library for encoding data in a QR Code symbol, a kind of 2D
symbology that can be scanned by handy terminals such as a mobile phone with
CCD. The capacity of QR Code is up to 7000 digits or 4000 characters, and is
highly robustness.

Libqrencode supports QR Code model 2, described in JIS (Japanese Industrial
Standards) X0510:2004 or ISO/IEC 18004.

This package contains the development files for the qrencode library.

%files -n %{devname}
%doc COPYING ChangeLog NEWS README TODO html/
%{_includedir}/*
%{_libdir}/libqrencode.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static \
	--enable-shared

%make

%install
%makeinstall_std

# manual
doxygen

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16807 |21mr|qscintilla-2.13.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 15

Summary:	Port to Qt of Neil Hodgson's Scintilla C++ editor class
Name:		qscintilla
Version:	2.13.3
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.riverbankcomputing.com/software/qscintilla/
Source0:	https://www.riverbankcomputing.com/static/Downloads/QScintilla/%{version}/QScintilla_src-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
#python
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-sip
BuildRequires:	python3-sip-qt5
BuildRequires:	python3-qt5-devel >= 6.0
BuildRequires:	python3-qt-builder

%description
As well as features found in standard text editing components,
QScintilla includes features especially useful when editing and
debugging source code. These include support for syntax styling, error
indicators, code completion and call tips. The selection margin can
contain markers like those used in debuggers to indicate breakpoints
and the current line. Styling choices are more open than with many
editors, allowing the use of proportional fonts, bold and italics,
multiple foreground and background colours and multiple fonts.

#----------------------------------------------------------------------------

%package qt5-i18n
Summary:	Translations used by %{name}-qt5
Group:		System/Libraries
BuildArch:	noarch

%description qt5-i18n
Translations used by %{name}-qt5.

%files qt5-i18n -f %{name}.lang

#----------------------------------------------------------------------------

%define libqs5 %mklibname qt5qscintilla2_ %{major}

%package -n %{libqs5}
Summary:	Port to Qt5 of Neil Hodgson's Scintilla C++ editor class
Group:		System/Libraries
Requires:	%{name}-qt5-i18n

%description -n %{libqs5}
As well as features found in standard text editing components,
QScintilla includes features especially useful when editing and
debugging source code. These include support for syntax styling, error
indicators, code completion and call tips. The selection margin can
contain markers like those used in debuggers to indicate breakpoints
and the current line. Styling choices are more open than with many
editors, allowing the use of proportional fonts, bold and italics,
multiple foreground and background colours and multiple fonts.

%files -n %{libqs5}
%{_qt5_libdir}/libqscintilla2_qt5.so.%{major}*

#----------------------------------------------------------------------------

%define libqs5dev %mklibname -d qt5qscintilla

%package -n %{libqs5dev}
Summary:	Libraries, include to develop applications with QScintilla for Qt5
Group:		Development/KDE and Qt
Requires:	%{libqs5} = %{EVRD}
Provides:	%{name}-qt5-devel = %{EVRD}
Provides:	qscintilla-qt5-devel = %{EVRD}

%description -n %{libqs5dev}
This packages contains the libraries, include and other files
you can use to develop applications with QScintilla.

%files -n %{libqs5dev}
%{_qt5_libdir}/qt5/mkspecs/features/qscintilla2.prf
%{_qt5_includedir}/Qsci/*.h
%{_qt5_libdir}/libqscintilla2_qt5.so
%{_qt5_plugindir}/designer/libqscintillaplugin.so

#----------------------------------------------------------------------------

%package -n python3-qt5-qscintilla
Summary:	Python3 qt5 QScintilla bindings
Group:		Development/KDE and Qt
Requires:	python3-qt5-core
Requires:	python3-qt5-gui
Requires:	%{libqs5} = %{EVRD}
Requires:	python3-sip
Requires:	python3-sip-qt5

%description -n python3-qt5-qscintilla
Python3 qt5 QScintilla bindings.

%files -n python3-qt5-qscintilla
%{python3_sitearch}/PyQt5/Qsci.abi3.so
%{python3_sitearch}/QScintilla-%{version}.dist-info

#----------------------------------------------------------------------------

%package -n python3-qt5-qscintilla-devel
Summary:  Development files for QScintilla-qt5 python3 bindings
Provides: %{name}-qt5-python3-devel = %{EVRD}
Requires: python3-qt5-devel
Requires: python3-qt5-qscintilla

%description -n python3-qt5-qscintilla-devel
%{summary}.

%files -n python3-qt5-qscintilla-devel
%{python3_sitearch}/PyQt5/bindings/Qsci

#----------------------------------------------------------------------------

%package doc
Summary:	QScintilla documentation
Group:		Documentation
BuildArch:	noarch

%description doc
QScintilla documentation.

%files doc
%doc NEWS ChangeLog doc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n QScintilla_src-%{version}

%build
export QMAKEFEATURES=$PWD/src/features;

pushd src
%qmake_qt5 qscintilla.pro
%make_build
popd

pushd designer
%qmake_qt5 designer.pro INCLUDEPATH+=../src LIBS+=-L../src
%make_build
popd

pushd Python
ln -s pyproject-qt5.toml pyproject.toml
LD_LIBRARY_PATH=$PWD/../src sip-build --no-make --qmake=%{_qt5_bindir}/qmake --api-dir=%{_qt5_datadir}/qsci/api/python --verbose \
    --qsci-include-dir=../src --qsci-library-dir=../src/ --qsci-features-dir=../src/features
sed -i 's/-lpthread/-lpthread -lpython%{py3_ver}/' build/Qsci/Makefile
%make_build -C build
popd

%install
%make_install -C src INSTALL_ROOT=%{buildroot}
%make_install -C designer INSTALL_ROOT=%{buildroot}
%make_install -C Python/build INSTALL_ROOT=%{buildroot}

# Drop Python api files
rm -f %{buildroot}%{_qt5_datadir}/qsci/api/python/Python*.api

# locales
%find_lang %{name} --with-qt
grep "%{_qt5_translationsdir}" qscintilla.lang > qscintilla-qt5.lang

# unpackaged files
rm -rfv %{buildroot}%{_qt5_datadir}/qsci/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16808 |21mr|qt4-4.8.7-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{e2k}
%global debug_package %nil
%endif

%define _disable_exceptions 1
%define _default_patch_flags -s -l
%define _default_patch_fuzz 2

# we need private headers to build qt-creator
# but it may change in future so we use condition
%define with_private_headers 1

%bcond_without postgres
%bcond_without mysql
%bcond_without sqlite
%bcond_without tds
%bcond_without cups
%bcond_without webkit
%bcond_without qvfb
%bcond_with openvg
%bcond_without docs
%bcond_without demos
%bcond_without examples

%bcond_with odbc
%bcond_with debug
%bcond_with ibase
# phonon build not needed, its on standalone project phonon-qt4
%bcond_with phonon

%define major 4

%define _qt_datadir		%{_prefix}/lib/qt4
%define _qt_bindir		%{_qt_datadir}/bin
%define _qt_docdir		%{_docdir}/qt4
%define _qt_libdir		%{_libdir}
%define _qt_includedir		%{_qt_datadir}/include
%define _qt_plugindir		%{_libdir}/qt4/plugins
%define _qt_demodir		%{_qt_datadir}/demos
%define _qt_exampledir		%{_qt_datadir}/examples
%define _qt_importdir		%{_qt_datadir}/imports
%define _qt_translationdir	%{_qt_datadir}/translations

%define libqt			%mklibname qt %{major}
%define libqtdevel		%mklibname qt %{major} -d
%define libqt3support		%mklibname qt3support %{major}
%define libqtcore		%mklibname qtcore %{major}
%define libqtdesigner		%mklibname qtdesigner %{major}
%define libqtgui		%mklibname qtgui %{major}
%define libqtnetwork		%mklibname qtnetwork %{major}
%define libqtopengl		%mklibname qtopengl %{major}
%define libqtsql		%mklibname qtsql %{major}
%define libqtxml		%mklibname qtxml %{major}
%define libqtscripttools	%mklibname qtscripttools %{major}
%define libqtxmlpatterns	%mklibname qtxmlpatterns %{major}
%define libqtsvg		%mklibname qtsvg %{major}
%define libqttest		%mklibname qttest %{major}
%define libqdbus		%mklibname qtdbus %{major}
%define libqtscript		%mklibname qtscript %{major}
%define libqtclucene		%mklibname qtclucene %{major}
%define libqthelp		%mklibname qthelp %{major}
%define libqtwebkit		%mklibname qtwebkit %{major}
%define libqtmultimedia		%mklibname qtmultimedia %{major}
%define libphonon		%mklibname phonon %{major}
%define libqtdeclarative	%mklibname qtdeclarative %{major}
%define libqtopenvg		%mklibname qtopenvg %{major}

# -reduce-relocations requires -fPIC;
# applications using Qt will also require -fPIC;
# bellow %%optflags are added to default flags for all Qt apps
%global optflags %{optflags} -fPIC

Summary:	Qt GUI Toolkit
Name:		qt4
Version:	4.8.7
Release:	18
Epoch:		4
License:	LGPLv2+ with exceptions or GPLv3 with exceptions
Group:		Development/KDE and Qt
Url:		http://qt.nokia.com/
Source0:	https://download.qt.io/archive/qt/4.8/%{version}/qt-everywhere-opensource-src-%{version}.tar.gz
Source2:	qt4.macros
Source3:	mandriva-designer-qt4.desktop
Source4:	mandriva-assistant-qt4.desktop
Source5:	mandriva-linguist-qt4.desktop
Source10:	qt4.rpmlintrc
Patch0:		qt-everywhere-opensource-src-4.8.5-moc-boost.patch
# Make OpenVG build with -std=gnu++0x
Patch1:		qt-4.8.1-OpenVG-stdc++11.patch
# Disable -std=gnu++0x for WebKit - it isn't ready
Patch2:		qt-4.8.1-WebKit-no-stdc++11.patch
# https://bugs.kde.org/show_bug.cgi?id=256475
Patch3:		qt-4.8.1-transculent-drag-pixmap.patch
Patch4:		qt-everywhere-opensource-src-4.8.0-tp-openssl.patch
# Implement reliable event loops, it's needed to fix KDE integration in LibreOffice
# See https://bugreports.qt-project.org/browse/QTBUG-16934
Patch5:		qt-everywhere-opensource-src-4.8.5-unix-select.patch
Patch6:		QTBUG-34614-l-qclipboard_fix_recursive.patch
Patch7:		QTBUG-37380-glib-honor-ExcludeSocketNotifiers-flag.patch
Patch8:		QTBUG-38585-l-qclipboard_delay.patch
Patch10:	qt-4.8.2-fix-qvfb-build.patch
# systemtrayicon plugin support (for appindicators)
# See http://blog.martin-graesslin.com/blog/2014/06/where-are-my-systray-icons/
Patch11:	qt-everywhere-opensource-src-4.8.6-systemtrayicon.patch
# Qt5 renamed gtk+ style to gtk2 since 5.7, keep Qt4 in sync
Patch12:	qt-everywhere-opensource-src-4.8.7-gtk2-style.patch
Patch13:	DEBIAN-openssl_1.1.patch
Patch131:	qt4-openssl-1.1-fixup.patch
Patch14:	DEBIAN-ROSA-gcc6-gcc10.patch
Patch15:	ROSA-verbose-tests.patch
Patch16:	qt-everywhere-opensource-src-4.8.7-gcc7.patch
Patch17:	0002-Fix-build-with-GCC-8.3.patch
Patch18:	qt-aarch64.patch
Patch19:	qt-everywhere-opensource-src-4.8.7-gcc9.patch
Patch20:	qt-gcc11.patch

Patch101:   CVE-2018-15518.patch
Patch102:   CVE-2018-19869.patch
Patch103:   CVE-2018-19870.patch
Patch104:   CVE-2018-19871.patch
Patch105:   CVE-2018-19872.patch
Patch106:   CVE-2018-19873.patch
Patch107:   qt-CVE-2020-17507.patch

# no CVE qt: Clamp parsed doubles to float representable values
Patch108: qt-everywhere-opensource-src-4.8.7-clamp-parsed-doubles-to-float-representtable-values.patch

# CVE-2020-24741 qt: QLibrary loads libraries relative to CWD which could result in arbitrary code execution
Patch109: qt-everywhere-opensource-src-4.8.5-CVE-2020-24741.patch

# CVE-2023-32573 qt: Uninitialized variable usage in m_unitsPerEm
Patch110: qt-CVE-2023-32573.patch
Patch111: qt-CVE-2023-34410.patch
Patch112: CVE-2023-38197.patch
Patch113: CVE-2023-32763.patch
Patch114: CVE-2023-37369.patch
# CVE-2014-0190
Patch115: dont_crash_on_broken_gif_images.patch

Patch200:   e2k-mkspecs_cross_and_port.patch
Patch201:   e2k-configure.patch
Patch202:   e2k-atomics-e2k.patch
Patch203:   e2k-bug105791.patch
Patch204:   e2k-defines.patch
Patch205:   e2k-vivante_from_qt5.patch
Patch206:   e2k-graphics-opts.patch
Patch207:   e2k-qt-4.6.1-alt-xmlpatterns-fexceptions.patch
Patch208:   e2k-qt-4.7.0-alt-fix-gl-loading.patch
Patch209:   e2k-openssl-fix.patch
BuildRequires:	binutils >= 2.18
BuildRequires:	cups-devel
BuildRequires:	jpeg-devel
BuildRequires:	mng-devel
BuildRequires:	pam-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1) >= 0.92
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(zlib)
# Make sure we don't link with egl
#BuildConflicts:	pkgconfig(egl)
%if %{with phonon}
BuildRequires:	pkgconfig(phonon)
BuildRequires:	pkgconfig(gstreamer-0.10)
BuildRequires:	pkgconfig(gstreamer-plugins-base-0.10)
%endif
%if %{with openvg}
BuildRequires:	pkgconfig(vg)
%endif
%if %{with mysql}
BuildRequires:	mysql-devel
%endif
%if %{with odbc}
BuildRequires:	unixODBC-devel
%endif
%if %{with sqlite}
BuildRequires:	pkgconfig(sqlite3)
%endif
%if %{with tds}
BuildRequires:	freetds-devel
%endif
%if %{with ibase}
BuildRequires:	firebird-devel
%endif
%if %{with postgres}
BuildRequires:	postgresql-devel
%endif
%if %{with_private_headers}
BuildRequires:	rsync
%endif
# Does't build for riscv64
ExcludeArch:	%{riscv}

%description
Qt is a GUI software toolkit which simplifies the task of writing and
maintaining GUI (Graphical User Interface) applications for the X
Window System. Qt is written in C++ and is fully object-oriented.

This package contains the shared library needed to run Qt
applications, as well as the README files for Qt.

#----------------------------------------------------------------------------

%package common
Group:		Development/KDE and Qt
Summary:	Qt%{major} Config and Language Files

%description common
Configuration and language files for Qt.

%files common
%attr(0755,root,root) %{_sysconfdir}/profile.d/60qt4.sh
%dir %{_qt_bindir}
%dir %{_qt_datadir}
%dir %{_qt_plugindir}
%{_qt_datadir}/phrasebooks/
%dir %{_qt_translationdir}
%{_qt_translationdir}/qt_*.qm
%{_qt_translationdir}/qtscript_*.qm

#----------------------------------------------------------------------------
# CORE QT LIBRARIES
#----------------------------------------------------------------------------

%package -n %{libqt3support}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqt3support}
Qt component library.

%files -n %{libqt3support}
%{_libdir}/libQt3Support.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtclucene}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtclucene}
Qt component library.

%files -n %{libqtclucene}
%{_libdir}/libQtCLucene.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtcore}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtcore}
Qt component library.

%files -n %{libqtcore}
%{_libdir}/libQtCore.so.%{major}*
%{_qt_plugindir}/codecs/

#----------------------------------------------------------------------------

%package -n %{libqdbus}
Summary:	Qt%{major} DBus Library
Group:		System/Libraries

%description -n %{libqdbus}
Qt dbus library.

%files -n %{libqdbus}
%{_libdir}/libQtDBus.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtdeclarative}
Summary:	Qt%{major} Multimedia Library
Group:		System/Libraries
Conflicts:	qt4-qmlviewer < 4:4.8.0-2

%description -n %{libqtdeclarative}
Qt multimedia library.

%files -n %{libqtdeclarative}
%{_libdir}/libQtDeclarative.so.%{major}*
%{_qt_plugindir}/designer/libqdeclarativeview.so

#----------------------------------------------------------------------------

%package -n %{libqtdesigner}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtdesigner}
Qt component library.

%files -n %{libqtdesigner}
%{_libdir}/libQtDesigner.so.%{major}*
%{_libdir}/libQtDesignerComponents.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtgui}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtgui}
Qt component library.

%files -n %{libqtgui}
%{_libdir}/libQtGui.so.%{major}*
%{_qt_plugindir}/imageformats/
%dir %{_qt_plugindir}/inputmethods/
%{_qt_plugindir}/inputmethods/libqimsw-multi.so

#----------------------------------------------------------------------------

%package -n %{libqthelp}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqthelp}
Qt component library.

%files -n %{libqthelp}
%{_libdir}/libQtHelp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtmultimedia}
Summary:	Qt%{major} Multimedia Library
Group:		System/Libraries

%description -n %{libqtmultimedia}
Qt multimedia library.

%files -n %{libqtmultimedia}
%{_libdir}/libQtMultimedia.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtnetwork}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtnetwork}
Qt component library.

%files -n %{libqtnetwork}
%{_libdir}/libQtNetwork.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtopengl}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtopengl}
Qt component library.

%files -n %{libqtopengl}
%{_libdir}/libQtOpenGL.so.%{major}*

#----------------------------------------------------------------------------

%if %{with openvg}
%package -n %{libqtopenvg}
Summary:	Qt%{major} Multimedia Library
Group:		System/Libraries

%description -n %{libqtopenvg}
Qt multimedia library.

%files -n %{libqtopenvg}
%{_libdir}/libQtOpenVG.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{libqtscript}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtscript}
Qt component library.

%files -n %{libqtscript}
%{_libdir}/libQtScript.so.%{major}*
%{_qt_plugindir}/script/

#----------------------------------------------------------------------------

%package -n %{libqtscripttools}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtscripttools}
Qt component library.

%files -n %{libqtscripttools}
%{_libdir}/libQtScriptTools.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtsql}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtsql}
Qt component library.

%files -n %{libqtsql}
%{_libdir}/libQtSql.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtsvg}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtsvg}
Qt component library.

%files -n %{libqtsvg}
%{_libdir}/libQtSvg.so.%{major}*
%{_qt_plugindir}/iconengines/

#----------------------------------------------------------------------------

%package -n %{libqttest}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqttest}
Qt component library.

%files -n %{libqttest}
%{_libdir}/libQtTest.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtxml}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtxml}
Qt component library.

%files -n %{libqtxml}
%{_libdir}/libQtXml.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libqtxmlpatterns}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtxmlpatterns}
Qt component library.

%files -n %{libqtxmlpatterns}
%{_libdir}/libQtXmlPatterns.so.%{major}*

#----------------------------------------------------------------------------

%if %{with webkit}
%package -n %{libqtwebkit}
Summary:	Qt%{major} Component Library
Group:		System/Libraries

%description -n %{libqtwebkit}
Qt component library.

%files -n %{libqtwebkit}
%{_libdir}/libQtWebKit.so.%{major}*
%endif

#----------------------------------------------------------------------------

%if %{with phonon}
%package -n %{libphonon}
Summary:	Qt%{major} Phonon Library
Group:		System/Libraries

%description -n %{libphonon}
Phonon library for Qt.

%files -n %{libphonon}
%{_libdir}/libphonon.so.%{major}*
%endif

#----------------------------------------------------------------------------

%if %{with phonon}
%package -n phonon-gstreamer
Summary:	Qt%{major} Phonon Gstreamer Backend
Group:		System/Libraries
Provides:	phonon-backend = %{EVRD}
Requires:	gstreamer0.10-plugins-good
Requires:	gstreamer0.10-pulse
Recommends:	gstreamer0.10-ffmpeg
Recommends:	gstreamer0.10-soup

%description -n phonon-gstreamer
Phonon gstreamer backend for Qt.

%files -n phonon-gstreamer
%{_qt_plugindir}/phonon_backend/libphonon_gstreamer.so
%endif

#----------------------------------------------------------------------------

%if %{with phonon}
%package designer-plugin-phonon
Summary:	Qt%{major} Designer Phonon Plugin
Group:		Development/KDE and Qt

%description designer-plugin-phonon
Designer phonon plugin for Qt.

%files designer-plugin-phonon
%{_qt_plugindir}/designer/libphononwidgets.so
%endif

#----------------------------------------------------------------------------

%package -n %{libqtdevel}
Summary:	Development files for the Qt GUI toolkit
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}
Requires:	qt4-qtconfig = %{EVRD}
Provides:	qt-devel = %{EVRD}
Provides:	qt4-devel = %{EVRD}
Provides:	libqt4-devel = %{EVRD}
Requires:	%{libqtdeclarative} = %{EVRD}
Requires:	%{libqt3support} = %{EVRD}
Requires:	%{libqt3support} = %{EVRD}
Requires:	%{libqtcore} = %{EVRD}
Requires:	%{libqtdesigner} = %{EVRD}
Requires:	%{libqtgui} = %{EVRD}
Requires:	%{libqtnetwork} = %{EVRD}
Requires:	%{libqtopengl} = %{EVRD}
Requires:	%{libqtsql} = %{EVRD}
Requires:	%{libqtxml} = %{EVRD}
Requires:	%{libqtscripttools} = %{EVRD}
Requires:	%{libqtxmlpatterns} = %{EVRD}
Requires:	%{libqtsvg} = %{EVRD}
Requires:	%{libqtclucene} = %{EVRD}
Requires:	%{libqttest} = %{EVRD}
Requires:	%{libqdbus} = %{EVRD}
%if %{with webkit}
Requires:	%{libqtwebkit} = %{EVRD}
Requires:	qt4-designer-plugin-webkit = %{EVRD}
%endif
Requires:	%{libqtscript} = %{EVRD}
Requires:	%{libqthelp} = %{EVRD}
Requires:	%{libqtmultimedia} = %{EVRD}
%if %{with openvg}
Requires:	%{libqtopenvg} = %{EVRD}
%endif
%if %{with phonon}
Requires:	qt4-designer-plugin-phonon = %{EVRD}
Requires:	%{libphonon} = %{EVRD}
%endif
Requires:	qt4-qtdbus = %{EVRD}
Requires:	qt4-designer-plugin-qt3support = %{EVRD}
Requires(post):	update-alternatives
Requires(postun):update-alternatives
Obsoletes:	%{mklibname -d QtWebKit} < %{version}

%description -n %{libqtdevel}
Necessary files to develop applications using the Qt GUI toolkit:
the header files, the Qt meta object compiler, and static libraries.
Enter in http://qt.nokia.com/ for more information about Qt.

Install %{name}-devel if you want to develop GUI applications using
the Qt toolkit.

%post -n %{libqtdevel}
update-alternatives --install %{_bindir}/qmake qmake %{_qt_bindir}/qmake 20

%postun -n %{libqtdevel}
if ! [ -e %{_qt_bindir}/qmake ]; then
  update-alternatives --remove qmake %{_qt_bindir}/qmake
fi

%files -n %{libqtdevel}
%{_rpmmacrodir}/*%{name}*
%{_qt_bindir}/lrelease
%{_qt_bindir}/lupdate
%{_qt_bindir}/moc
%{_qt_bindir}/pixeltool
%{_qt_bindir}/qdbusxml2cpp
%{_qt_bindir}/qdbuscpp2xml
%{_qt_bindir}/qmake
%{_qt_bindir}/qt3to4
%{_qt_bindir}/qttracereplay
%{_qt_bindir}/rcc
%{_qt_bindir}/uic*
%{_qt_bindir}/xmlpatternsvalidator
%{_qt_includedir}/Qt*/
%{_qt_datadir}/mkspecs/
%{_qt_datadir}/q3porting.xml
%{_libdir}/libQt3Support.so
%{_libdir}/libQtCLucene.so
%{_libdir}/libQtCore.so
%{_libdir}/libQtDBus.so
%{_libdir}/libQtDeclarative.so
%{_libdir}/libQtDesigner.so
%{_libdir}/libQtDesignerComponents.so
%{_libdir}/libQtGui.so
%{_libdir}/libQtHelp.so
%{_libdir}/libQtMultimedia.so
%{_libdir}/libQtNetwork.so
%{_libdir}/libQtOpenGL.so
%if %{with openvg}
%{_libdir}/libQtOpenVG.so
%endif
%{_libdir}/libQtScript.so
%{_libdir}/libQtScriptTools.so
%{_libdir}/libQtSql.so
%{_libdir}/libQtSvg.so
%{_libdir}/libQtTest.so
%{_libdir}/libQtXml.so
%{_libdir}/libQtXmlPatterns.so
%if %{with webkit}
%{_libdir}/libQtWebKit.so
%endif
%{_libdir}/*.a
%{_libdir}/*.prl
%{_libdir}/pkgconfig/Qt*.pc
%if %{with_private_headers}
%exclude %{_qt_includedir}/*/private/
%endif

#----------------------------------------------------------------------------

%if %{with_private_headers}
%package devel-private
Summary:	Private headers for Qt toolkit
Group:		Development/KDE and Qt
Requires:	qt4-devel = %{EVRD}
BuildArch:	noarch

%description devel-private
The %{name}-devel-private package contains the private headres for Qt4
toolkit. It is needed to build Qt Creator with all features.

%files devel-private
%{_qt_includedir}/QtCore/private/
%{_qt_includedir}/QtDeclarative/private/
%{_qt_includedir}/QtGui/private/
%{_qt_includedir}/QtScript/private/
%{_qt_includedir}/../src/corelib/
%{_qt_includedir}/../src/declarative/
%{_qt_includedir}/../src/gui/
%{_qt_includedir}/../src/script/
%endif

#----------------------------------------------------------------------------

%package assistant
Summary:	Qt%{major} Assistantion Doc Utility
Group:		Books/Computer books
Requires:	%{name}-common = %{EVRD}
Requires:	qt4-database-plugin-sqlite = %{EVRD}
Recommends:	qt4-doc = %{EVRD}

%description assistant
Qt Assistant provides a documentation Browser.

%files assistant
%{_qt_bindir}/assistant
%{_qt_bindir}/qcollectiongenerator
%{_qt_bindir}/qhelpconverter
%{_qt_bindir}/qhelpgenerator
%{_datadir}/applications/mandriva-assistant-qt4.desktop
%{_qt_translationdir}/assistant*

#----------------------------------------------------------------------------

%package designer
Summary:	Qt%{major} Visual Design Tool
Group:		Development/KDE and Qt
Requires:	%{libqtdevel} = %{EVRD}
Requires:	qt4-designer-plugin-qt3support = %{EVRD}
%if %{with webkit}
Requires:	qt4-designer-plugin-webkit = %{EVRD}
%endif
%if %{with phonon}
Requires:	qt4-designer-plugin-phonon
%endif
%if %{with examples}
Recommends:	qt4-examples = %{EVRD}
%endif
%if %{with demos}
Recommends:	qt4-demos = %{EVRD}
%endif

%description designer
The Qt Designer is a visual design tool that makes designing and
implementing user interfaces a lot easier.

%files designer
%{_qt_bindir}/designer
%{_datadir}/applications/mandriva-designer-qt4.desktop
%{_qt_translationdir}/designer_*

#----------------------------------------------------------------------------

%package linguist
Summary:	Qt%{major} Linguist Translation Utility
Group:		Books/Computer books
Requires:	%{name}-common = %{EVRD}

%description linguist
Linguist provides easy translation for Qt GUI's in severall languages.

%files linguist
%{_qt_bindir}/linguist
%{_qt_bindir}/lconvert
%{_datadir}/applications/mandriva-linguist-qt4.desktop
%{_qt_translationdir}/linguist*

#----------------------------------------------------------------------------

%package qdoc3
Summary:	Qt%{major} Documentation Generator
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}

%description qdoc3
Qt 4 documentation generator.

%files qdoc3
%{_qt_bindir}/qdoc3

#----------------------------------------------------------------------------

%package qtdbus
Summary:	Qt%{major} DBus Binary
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}

%description qtdbus
Dbus interface for Qt.

%files qtdbus
%{_qt_bindir}/qdbus
%{_qt_bindir}/qdbusviewer

#----------------------------------------------------------------------------

%package qmlviewer
Summary:	Qt%{major} Qmlviewer Utility
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}

%description qmlviewer
Qmlviewer utility for Qt.

%files qmlviewer
%{_qt_bindir}/qmlviewer
%{_qt_bindir}/qmlplugindump
%{_qt_importdir}/Qt/
%if %{with webkit}
%{_qt_importdir}/QtWebKit/libqmlwebkitplugin.so
%{_qt_importdir}/QtWebKit/qmldir
%endif
%{_qt_plugindir}/bearer/libqgenericbearer.so
%{_qt_plugindir}/bearer/libqnmbearer.so
%{_qt_plugindir}/bearer/libqconnmanbearer.so
%dir %{_qt_plugindir}/qmltooling/
%{_qt_plugindir}/qmltooling/libqmldbg_tcp.so
%{_qt_plugindir}/qmltooling/libqmldbg_inspector.so

#----------------------------------------------------------------------------

%package qtconfig
Summary:	Qt%{major} Configuration Utility
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}
Requires(post):	update-alternatives
Requires(postun):update-alternatives

%description qtconfig
Main configuration utility for Qt.

%post qtconfig
update-alternatives --install %{_bindir}/qtconfig qtconfig %{_qt_bindir}/qtconfig 20

%postun qtconfig
if ! [ -e %{_qt_bindir}/qtconfig ]; then
  update-alternatives --remove qtconfig %{_qt_bindir}/qtconfig 
fi

%files qtconfig
%{_qt_bindir}/qtconfig
%{_qt_translationdir}/qtconfig*

#----------------------------------------------------------------------------

%if %{with qvfb}
%package qvfb
Summary:	Qt%{major} Embedded Virtual Terminal
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}

%description qvfb
Embedded virtual terminal for Qt support.

%files qvfb
%{_qt_bindir}/qvfb
%{_qt_translationdir}/qvfb*
%endif

#----------------------------------------------------------------------------

%package xmlpatterns
Summary:	Qt%{major} Xmlpatterns Utility
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}

%description xmlpatterns
Xmlpatterns utility for Qt.

%files xmlpatterns
%{_qt_bindir}/xmlpatterns

#----------------------------------------------------------------------------

%package accessibility-plugin
Summary:	Qt%{major} Accessibility Plugin
Group:		Development/KDE and Qt

%description accessibility-plugin
Acessibility plugins for Qt.

%files accessibility-plugin
%{_qt_plugindir}/accessible/

#----------------------------------------------------------------------------

%package designer-plugin-qt3support
Summary:	Qt%{major} designer qt3support plugin
Group:		Development/KDE and Qt

%description designer-plugin-qt3support
Designer plugin for qt3support Qt support.

%files designer-plugin-qt3support
%{_qt_plugindir}/designer/libqt3supportwidgets.so

#----------------------------------------------------------------------------

%if %{with webkit}
%package designer-plugin-webkit
Summary:	Qt%{major} Designer Webkit Plugin
Group:		Development/KDE and Qt

%description designer-plugin-webkit
Designer plugin for webkit Qt support.

%files designer-plugin-webkit
%{_qt_plugindir}/designer/libqwebview.so
%endif

#----------------------------------------------------------------------------

%package graphicssystems-plugin
Summary:	Qt%{major} Graphicssystems Plugin
Group:		Development/KDE and Qt

%description graphicssystems-plugin
Graphicssystems plugins for Qt.

%files graphicssystems-plugin
%dir %{_qt_plugindir}/graphicssystems/
%{_qt_plugindir}/graphicssystems/libqglgraphicssystem.so
%{_qt_plugindir}/graphicssystems/libqtracegraphicssystem.so
%if %{with openvg}
%{_qt_plugindir}/graphicssystems/libqvggraphicssystem.so
%endif

#----------------------------------------------------------------------------

%if %{with ibase}
%package database-plugin-ibase
Summary:	Qt%{major} Database Interbase Plugin
Group:		Development/KDE and Qt

%description database-plugin-ibase
Database plugin for interbase Qt support.

%files database-plugin-ibase
%{_qt_plugindir}/sqldrivers/libqsqlibase.so
%endif

#----------------------------------------------------------------------------

%if %{with mysql}
%package database-plugin-mysql
Summary:	Qt%{major} Database MYSQL Plugin
Group:		Development/KDE and Qt

%description database-plugin-mysql
Database plugin for mysql Qt support.

%files database-plugin-mysql
%{_qt_plugindir}/sqldrivers/libqsqlmysql.so
%endif

#----------------------------------------------------------------------------

%if %{with odbc}
%package database-plugin-odbc
Summary:	Qt%{major} Database ODBC Plugin
Group:		Development/KDE and Qt

%description database-plugin-odbc
Database plugin for ODBC Qt support.

%files database-plugin-odbc
%{_qt_plugindir}/sqldrivers/libqsqlodbc.so
%endif

#----------------------------------------------------------------------------

%if %{with postgres}
%package database-plugin-pgsql
Summary:	Qt%{major} Database PGSQL Plugin
Group:		Development/KDE and Qt

%description database-plugin-pgsql
Database plugin for pgsql Qt support.

%files database-plugin-pgsql
%{_qt_plugindir}/sqldrivers/libqsqlpsql.so
%endif

#----------------------------------------------------------------------------

%if %{with sqlite}
%package database-plugin-sqlite
Summary:	Qt%{major} Database SQLITE Plugin
Group:		Databases

%description database-plugin-sqlite
Database plugin for sqlite Qt support.

%files database-plugin-sqlite
%{_qt_plugindir}/sqldrivers/libqsqlite.so
%endif

#----------------------------------------------------------------------------

%if %{with tds}
%package database-plugin-tds
Summary:	Q%{major} Database FREETDS Plugin
Group:		Databases

%description database-plugin-tds
Database plugin for freetds Qt support.

%files database-plugin-tds
%{_qt_plugindir}/sqldrivers/libqsqltds.so
%endif

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt%{major} HTML Documentation
Group:		Books/Computer books
BuildArch:	noarch

%description doc
HTML documentation for the Qt toolkit. To view the documentation,
please load up the file %{_qt_docdir}/html/index.html in your
favourite browser.

%post doc
# Remove old qt4 doc directories
find %{_docdir} -maxdepth 1 -type d -name qt-4.\* -exec rm -rf {} \;

%files doc
%{_qt_docdir}/html/
%{_qt_docdir}/qch/
%{_qt_docdir}/src/
%endif

#----------------------------------------------------------------------------

%if %{with demos}
%package demos
Summary:	Qt%{major} Demonstration Applications
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}
Obsoletes:	%{name}-demos < 4:4.8.0
%if %{with docs}
Requires:	%{name}-doc = %{EVRD}
%endif
%if %{with examples}
Recommends:	%{name}-examples = %{EVRD}
%endif

%description demos
Demonstration applications made with Qt %{version}.

%files demos
%{_qt_bindir}/qtdemo
%{_qt_demodir}/
%{_qt_plugindir}/designer/libarthurplugin.so
%endif

#----------------------------------------------------------------------------

%if %{with examples}
%package examples
Summary:	Qt%{major} Programs Examples
Group:		Development/KDE and Qt
Requires:	%{name}-common = %{EVRD}

%description examples
Programs examples made with Qt %{version}.

%files examples
%{_qt_exampledir}/
%{_qt_plugindir}/designer/libcontainerextension.so
%{_qt_plugindir}/designer/libcustomwidgetplugin.so
%{_qt_plugindir}/designer/libtaskmenuextension.so
%{_qt_plugindir}/designer/libworldtimeclockplugin.so
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n qt-everywhere-opensource-src-%{version}
%patch0 -p1 -b .boost
%patch1 -p1 -b .c++11-1~
%patch2 -p1 -b .c++11-2~
%patch3 -p1 -b .kde-bug-256475~
%patch4 -p1 -b .ssl~
%patch5 -p1 -b .unix-select~
%patch6 -p1 -b .qt-bug-34614~
%patch7 -p1 -b .qt-bug-37380~
%patch8 -p0 -b .qt-bug-38585~
%patch10 -p1 -b .fix-qvfb-build~
%patch11 -p1 -b .systemtrayicon~
%patch12 -p1 -b .gtk2~
%patch13 -p1 -b .openssl11~
%patch131 -p1
%patch14 -p1 -b .gcc6~
#patch15 -p1 -b .verbose-tests~
%patch16 -p1 -b .gcc7~
%patch17 -p1 -b .gcc8~
%patch18 -p1
%patch19 -p1
%patch20 -p1

%patch101 -p1
%patch102 -p1
%patch103 -p1
%patch104 -p1
%patch105 -p1
%patch106 -p1
%patch107 -p1
%patch108 -p1
%patch109 -p1
%patch110 -p1
%patch111 -p1
%patch112 -p1
%patch113 -p1
%patch114 -p1
%patch115 -p1

%ifarch %{e2k}
%autopatch -p1 -m 200
%endif

# let makefile create missing .qm files, the .qm files should be included in qt upstream
for f in translations/*.ts ; do
  touch ${f%.ts}.qm
done

%global optflags %{optflags} -fpermissive
# QMAKE_STRIP need to be clear to allow mdv -debug package
sed -e "s|^QMAKE_STRIP.*=.*|QMAKE_STRIP             =|" -i mkspecs/common/linux.conf
# We use -g1 to override -gdwarf-4 -- the latter needs more
# RAM during QtWebKit build than x86_32 can handle.
sed -e "s|^QMAKE_CFLAGS_RELEASE .*$|QMAKE_CFLAGS_RELEASE    += %{optflags}  -fno-strict-aliasing -DPIC -fPIC -g1| " \
    -e "s|^QMAKE_LFLAGS	.*$|QMAKE_LFLAGS		+= %{ldflags}|" \
    -e "s|^QMAKE_LFLAGS_PLUGIN.*\+= |QMAKE_LFLAGS_PLUGIN += %(echo %build_ldflags|sed -e 's#-Wl,--no-undefined##') |" \
    -e 's|^QMAKE_CXXFLAGS .*|& -std=gnu++0x|' \
    -i mkspecs/common/gcc-base.conf mkspecs/common/gcc-base-unix.conf

%build
export QTDIR=`/bin/pwd`
export PATH=$QTDIR/bin:$PATH

# Don't include headers or link with /usr/X11R6/{include,lib}
perl -pi -e 's@/X11R6/@/@' mkspecs/linux-*/qmake.conf mkspecs/common/linux.conf

#--------------------------------------------------------
./configure \
    -prefix %{_qt_datadir} \
    -sysconfdir %{_sysconfdir} \
    -libdir %{_libdir} \
    -docdir %{_qt_docdir} \
    -plugindir %{_qt_plugindir} \
    -translationdir %{_qt_translationdir} \
%if %{with debug}
    -debug \
    -verbose \
%else
    -release \
    -silent \
%endif
    -opensource \
    -confirm-license \
    -shared \
    -no-separate-debug-info \
    -no-rpath \
    -no-pch \
    -optimized-qmake \
    -reduce-relocations \
    -openssl-linked \
    -dbus-linked \
    -gtkstyle \
    -xmlpatterns \
    -opengl desktop \
%ifnarch %{e2k}
    -platform linux-g++ \
%else
    -platform linux-g++-lcc-native \
    -xplatform linux-g++-lcc-native \
    -arch e2k \
    -host-arch e2k \
    -force-pkg-config \
    -no-javascript-jit \
%endif
    -xinerama \
    -xrandr \
%if %{with qvfb}
    -qvfb \
%endif
%if %{without cups}
    -no-cups \
%endif
%if %{without phonon}
    -no-phonon \
    -no-phonon-backend \
%endif
%if %{with postgres}
    -plugin-sql-psql \
%endif
%if %{with mysql}
    -plugin-sql-mysql \
%else
    -no-sql-mysql \
%endif
%if %{with ibase}
    -plugin-sql-ibase \
%else
    -no-sql-ibase \
%endif
%if %{with sqlite}
    -plugin-sql-sqlite \
    -system-sqlite \
    -no-sql-sqlite2 \
%else
    -no-sql-sqlite \
    -no-sql-sqlite2 \
%endif
%if %{with odbc}
    -plugin-sql-odbc \
%else
    -no-sql-odbc \
%endif
%if %{with tds}
    -plugin-sql-tds \
%else
    -no-sql-tds \
%endif
%if %{with openvg}
    -openvg \
%else
    -no-openvg \
%endif
%if %{without webkit}
    -no-webkit \
%endif
%if %{without docs}
    -nomake docs \
%endif
%if %{without demos}
    -nomake demos \
%endif
%if %{without examples}
    -nomake examples
%endif

%make

%if %{with qvfb}
    pushd tools/qvfb
    %{_builddir}/qt-everywhere-opensource-src-%{version}/bin/qmake
    %make
    popd
%endif

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_docdir}/%{name}
install -d %{buildroot}%{_sysconfdir}/profile.d

# recreate .qm files
LD_LIBRARY_PATH=`pwd`/lib bin/lrelease translations/*.ts
export PATH=`pwd`/bin:$PATH

make install INSTALL_ROOT=%{buildroot}

%if %{with_private_headers}
# install private headers
# using rsync -R as easy way to preserve relative path names
# we're little cheating here with destination dir to keep things simple
rsync -aR \
  include/Qt{Core,Declarative,Gui,Script}/private \
  src/{corelib,declarative,gui,script}/*/*_p.h \
  %{buildroot}%{_qt_datadir}
%endif

%if %{with qvfb}
# Install qvfb
make install -C tools/qvfb INSTALL_ROOT=%{buildroot}
%else
# Remove qvfb translation files that are installed by default
rm -f %{buildroot}%{_qt_translationdir}/qvfb_*.qm
%endif

%if %{without docs}
# Remove these doc src files that are installed even if using -nomake-docs
rm -f %{buildroot}%{_qt_docdir}/src/
%endif

mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/applications

# Fix mkspec link
pushd  %{buildroot}%{_qt_datadir}/mkspecs
rm -f default
ln -sf %{_qt_datadir}/mkspecs/linux-g++ default
popd

# Copy examples/tutorial and demos
for d in %{?with_demos:demos} %{?with_examples:examples}; do
   tar --exclude=.obj --exclude=.moc -cf - $d | \
   tar -C %{buildroot}/%{_qt_datadir}/ -xf -
done

# Fix all buildroot paths
find %{buildroot}%{_libdir} -type f -name '*prl' -exec perl -pi -e "s, -L%{_builddir}/\S+,,g" {} \;
find %{buildroot}%{_libdir} -type f -name '*prl' -exec sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" {} \;
find %{buildroot}%{_libdir} -type f -name '*la' -print -exec sed -i -e "s, -L%{_builddir}/?\S+,,g" -e "s,-L../JavaScriptCore/release,,g" -e "s,-ljscore,,g" {} \;
find %{buildroot}/%{_qt_datadir}/mkspecs -name 'qmake.conf' -exec chmod -x -- {} \;
find %{buildroot}/%{_qt_datadir}/mkspecs -name Info.plist.app -exec chmod -x -- {} \;

# Don't reference %{builddir} neither /usr(/X11R6)?/ in .pc files.
perl -pi -e '\
s@-L/usr/X11R6/%{_lib} @@g;\
s@-I/usr/X11R6/include @@g;\
s@-L/%{_builddir}\S+@@g'\
    `find . -name \*.pc`

# Install rpm macros
%install_macro qt4 %{SOURCE2}

# Profiles
cat > %{buildroot}%{_sysconfdir}/profile.d/60qt4.sh << EOF
#!/bin/bash

# Qt4 is the main Qt on system
export QTDIR=%{_qt_datadir}

[ -z \$QT4DOCDIR ] && export QT4DOCDIR=%{_qt_docdir}

if [ -z \$(echo \$PATH | grep "%{_qt_bindir}") ]; then
    PATH=\${PATH}:%{_qt_bindir}
    export PATH
fi

EOF

# identical binaries are copied, not linked:
rm -f %{buildroot}%{_qt_exampledir}/declarative/cppextensions/qwidgets/QWidgets/libqmlqwidgetsplugin.so
ln -sf %{_qt_exampledir}/declarative/cppextensions/plugins/libqmlqwidgetsplugin.so %{buildroot}%{_qt_exampledir}/declarative/cppextensions/qwidgets/QWidgets/libqmlqwidgetsplugin.so


# Clean WEBKIT test files
rm -fr %{buildroot}%{_qt_datadir}/tests/qt4/tst_*/



# CVEs
# CVE-2023-43114 < windows 
# CVE-2022-25634 < windows 
# CVE-2018-21035 < qt5-qtwebsockets
# CVE-2023-32762 < there is no vulnerable code to fix

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16809 |21mr|qt5-fsarchiver-0.8.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon

%define upver 0.8.5
%define subver 1

Summary:	Qt GUI for fsarchiver
Name:		qt5-fsarchiver
Version:	%{upver}.%{subver}
Release:	2
License:	GPLv2+ and GPLv3+
Group:		Archiving/Backup
Url:		http://qt4-fsarchiver.sourceforge.net/
Source0:	http://downloads.sourceforge.net/%{name}/source/%{name}-%{upver}-%{subver}.tar.gz
Source1:	qt5-fsarchiver-0.8.5.1-ru.tar.gz
Patch0:		qt5-fsarchiver-0.8.5-desktop.patch
BuildRequires:	e2fsprogs
BuildRequires:	qt5-linguist-tools
BuildRequires:	attr-devel
BuildRequires:	bzip2-devel
BuildRequires:	liblzo-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblz4)
Requires:	gdisk
Requires:	nfs-utils
Requires:	lz4
Requires:	nmap
Requires:	samba
Requires:	samba-client
Requires:	sshfs-fuse
Requires:	sshpass
Requires:	xfsprogs

%description
qt5-fsarchiver is a GUI for the program fsarchiver.

FSArchiver a system tool that allows you to save the contents of
a file-system to a compressed archive file. The file-system can be
restored on a partition which has a different size and it can be
restored on a different file-system.

%files
%{_sbindir}/%{name}
%{_sbindir}/%{name}.sh
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/48x48/apps/%{name}.png
%{_docdir}/%{name}/doc/*
%{_datadir}/qt5/translations/%{name}*.qm
%{_datadir}/qt5/translations/%{name}*.ts
%{_sbindir}/findsmb-qt5

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p1

pushd translations
tar -xvzf %{SOURCE1}
popd

%build
%qmake_qt5 qt5-fsarchiver.pro
%make

%install
%makeinstall_qt

#clean doc directory from backup files
rm -rf %{buildroot}%{_datadir}/doc/qt5-fsarchiver/doc/*~
#removing unnecessary shortcuts
rm -rf %{buildroot}%{_datadir}/applications/gnome-qt5-fsarchiver.desktop
rm -rf %{buildroot}%{_datadir}/applications/mate-qt5-fsarchiver.desktop

mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps/
mv %{buildroot}%{_datadir}/app-install/icons/harddrive1.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

install -m 0644 -p translations/*.ts %{buildroot}%{_datadir}/qt5/translations/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16810 |21mr|qt5-macros-5.15.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Base macros for Qt 5
Name:		qt5-macros
Version:	5.15.5
Release:	3
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	qt5.macros
BuildArch:	noarch
Provides:	qt5-qtbase-macros = %{EVRD}

%description
Base macros for Qt 5.

%files
%{_rpmmacrodir}/macros.qt5

#----------------------------------------------------------------------------

%prep

%build

%install
%install_macro qt5 %{SOURCE0}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16811 |21mr|qt5-qt3d-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qt3d

%define qt3danimation %mklibname qt%{api}3danimation %{major}
%define qt3danimationd %mklibname qt%{api}3danimation -d
%define qt3dcore %mklibname qt%{api}3dcore %{major}
%define qt3dcored %mklibname qt%{api}3dcore -d
%define qt3dextras %mklibname qt%{api}3dextras %{major}
%define qt3dextrasd %mklibname qt%{api}3dextras -d
%define qt3dinput %mklibname qt%{api}3dinput %{major}
%define qt3dinputd %mklibname qt%{api}3dinput -d
%define qt3dlogic %mklibname qt%{api}3dlogic %{major}
%define qt3dlogicd %mklibname qt%{api}3dlogic -d
%define qt3dquick %mklibname qt%{api}3dquick %{major}
%define qt3dquickd %mklibname qt%{api}3dquick -d
%define qt3dquickanimation %mklibname qt%{api}3dquickanimation %{major}
%define qt3dquickanimationd %mklibname qt%{api}3dquickanimation -d
%define qt3dquickextras %mklibname qt%{api}3dquickextras %{major}
%define qt3dquickextrasd %mklibname qt%{api}3dquickextras -d
%define qt3dquickinput %mklibname qt%{api}3dquickinput %{major}
%define qt3dquickinputd %mklibname qt%{api}3dquickinput -d
%define qt3dquickrender %mklibname qt%{api}3dquickrender %{major}
%define qt3dquickrenderd %mklibname qt%{api}3dquickrender -d
%define qt3dquickscene2d %mklibname qt%{api}3dquickscene2d %{major}
%define qt3dquickscene2dd %mklibname qt%{api}3dquickscene2d -d
%define qt3drender %mklibname qt%{api}3drender %{major}
%define qt3drenderd %mklibname qt%{api}3drender -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(assimp)
BuildRequires:	pkgconfig(Qt5Concurrent) >= %{version}
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5OpenGL) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qt3danimation}
Summary:	Qt 3D Animation library
Group:		System/Libraries

%description -n %{qt3danimation}
Qt 3D Animation library.

%files -n %{qt3danimation}
%{_qt5_libdir}/libQt%{api}3DAnimation.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DAnimation.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3danimationd}
Summary:	Development files for version 5 of the Qt 3D Animation library
Group:		Development/KDE and Qt
Requires:	%{qt3danimation} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3danimationd}
Development files for version 5 of the Qt 3D Animation library.

%files -n %{qt3danimationd}
%{_qt5_includedir}/Qt3DAnimation
%{_qt5_libdir}/libQt%{api}3DAnimation.so
%{_qt5_libdir}/libQt%{api}3DAnimation.prl
%{_qt5_libdir}/cmake/Qt%{api}3DAnimation
%{_qt5_libdir}/pkgconfig/Qt%{api}3DAnimation.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DAnimation.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3danimation.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3danimation_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dcore}
Summary:	Qt 3D Core library
Group:		System/Libraries
Recommends:	qt5-geometryloader-default = %{EVRD}
Recommends:	qt5-geometryloader-gltf = %{EVRD}
Recommends:	qt5-renderplugin-scene2d = %{EVRD}
Recommends:	qt5-sceneparser-assimp = %{EVRD}
Recommends:	qt5-sceneparser-gltf = %{EVRD}

%description -n %{qt3dcore}
Qt 3D Core library.

%files -n %{qt3dcore}
%{_qt5_bindir}/qgltf
%{_qt5_libdir}/libQt%{api}3DCore.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DCore.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dcored}
Summary:	Development files for version 5 of the Qt 3D Core library
Group:		Development/KDE and Qt
Requires:	%{qt3dcore} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dcored}
Development files for version 5 of the Qt 3D Core library.

%files -n %{qt3dcored}
%{_qt5_includedir}/Qt3DCore
%{_qt5_libdir}/libQt%{api}3DCore.so
%{_qt5_libdir}/libQt%{api}3DCore.prl
%{_qt5_libdir}/cmake/Qt%{api}3DCore
%{_qt5_libdir}/pkgconfig/Qt%{api}3DCore.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DCore.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dcore.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dcore_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dextras}
Summary:	Qt 3D Extras library
Group:		System/Libraries

%description -n %{qt3dextras}
Qt 3D Extras library.

%files -n %{qt3dextras}
%{_qt5_libdir}/libQt%{api}3DExtras.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DExtras.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dextrasd}
Summary:	Development files for version 5 of the Qt 3D Extras library
Group:		Development/KDE and Qt
Requires:	%{qt3dextras} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dextrasd}
Development files for version 5 of the Qt 3D Extras library.

%files -n %{qt3dextrasd}
%{_qt5_includedir}/Qt3DExtras
%{_qt5_libdir}/libQt%{api}3DExtras.so
%{_qt5_libdir}/libQt%{api}3DExtras.prl
%{_qt5_libdir}/cmake/Qt%{api}3DExtras
%{_qt5_libdir}/pkgconfig/Qt%{api}3DExtras.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DExtras.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dextras.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dextras_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dcore}-geometryloader-default
Summary:	Default geometry loader for Qt 3D Core library
Group:		System/Libraries
Provides:	qt5-geometryloader-default = %{EVRD}

%description -n %{qt3dcore}-geometryloader-default
Default geometry loader for Qt 3D Core library.

%files -n %{qt3dcore}-geometryloader-default
%{_qt5_plugindir}/geometryloaders/libdefaultgeometryloader.so

#----------------------------------------------------------------------------

%package -n %{qt3dcore}-geometryloader-gltf
Summary:	glTF geometry loader for Qt 3D Core library
Group:		System/Libraries
Provides:	qt5-geometryloader-gltf = %{EVRD}

%description -n %{qt3dcore}-geometryloader-gltf
glTF geometry loader for Qt 3D Core library.

%files -n %{qt3dcore}-geometryloader-gltf
%{_qt5_plugindir}/geometryloaders/libgltfgeometryloader.so

#----------------------------------------------------------------------------

%package -n %{qt3dcore}-renderplugin-scene2d
Summary:	Scene2D render plugin for Qt 3D Core library
Group:		System/Libraries
Provides:	qt5-renderplugin-scene2d = %{EVRD}

%description -n %{qt3dcore}-renderplugin-scene2d
Scene2D render plugin for Qt 3D Core library.

%files -n %{qt3dcore}-renderplugin-scene2d
%{_qt5_plugindir}/renderplugins/libscene2d.so

#----------------------------------------------------------------------------

%package -n %{qt3dcore}-sceneparser-assimp
Summary:	Assimp (Open Asset Import Library) sceneparser for Qt 3D Core library
Group:		System/Libraries
Provides:	qt5-sceneparser-assimp = %{EVRD}

%description -n %{qt3dcore}-sceneparser-assimp
Assimp (Open Asset Import Library) sceneparser for Qt 3D Core library.

%files -n %{qt3dcore}-sceneparser-assimp
%{_qt5_plugindir}/sceneparsers/libassimpsceneimport.so

#----------------------------------------------------------------------------

%package -n %{qt3dcore}-sceneparser-gltf
Summary:	glTF sceneparser for Qt 3D Core library
Group:		System/Libraries
Provides:	qt5-sceneparser-gltf = %{EVRD}

%description -n %{qt3dcore}-sceneparser-gltf
glTF sceneparser for Qt 3D Core library. glTF is the runtime asset format for
WebGL, OpenGL ES and OpenGL.

%files -n %{qt3dcore}-sceneparser-gltf
%{_qt5_plugindir}/sceneparsers/libgltfsceneexport.so
%{_qt5_plugindir}/sceneparsers/libgltfsceneimport.so

#----------------------------------------------------------------------------

%package -n %{qt3dinput}
Summary:	Qt 3D Input library
Group:		System/Libraries

%description -n %{qt3dinput}
Qt 3D Input library.

%files -n %{qt3dinput}
%{_qt5_libdir}/libQt%{api}3DInput.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DInput.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dinputd}
Summary:	Development files for version 5 of the Qt 3D Input library
Group:		Development/KDE and Qt
Requires:	%{qt3dinput} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dinputd}
Development files for version 5 of the Qt 3D Input library.

%files -n %{qt3dinputd}
%{_qt5_includedir}/Qt3DInput
%{_qt5_libdir}/libQt%{api}3DInput.so
%{_qt5_libdir}/libQt%{api}3DInput.prl
%{_qt5_libdir}/cmake/Qt%{api}3DInput
%{_qt5_libdir}/pkgconfig/Qt%{api}3DInput.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DInput.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dinput.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dinput_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dlogic}
Summary:	Qt 3D Logic library
Group:		System/Libraries

%description -n %{qt3dlogic}
Qt 3D Logic library.

%files -n %{qt3dlogic}
%{_qt5_libdir}/libQt%{api}3DLogic.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DLogic.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dlogicd}
Summary:	Development files for version 5 of the Qt 3D Logic library
Group:		Development/KDE and Qt
Requires:	%{qt3dlogic} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dlogicd}
Development files for version 5 of the Qt 3D Logic library.

%files -n %{qt3dlogicd}
%{_qt5_includedir}/Qt3DLogic
%{_qt5_libdir}/libQt%{api}3DLogic.so
%{_qt5_libdir}/libQt%{api}3DLogic.prl
%{_qt5_libdir}/cmake/Qt%{api}3DLogic
%{_qt5_libdir}/pkgconfig/Qt%{api}3DLogic.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DLogic.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dlogic.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dlogic_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dquick}
Summary:	Qt 3D Quick library
Group:		System/Libraries

%description -n %{qt3dquick}
Qt 3D Quick library.

%files -n %{qt3dquick}
%{_qt5_libdir}/libQt%{api}3DQuick.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DQuick.so.%{major}*
%endif
%{_qt5_prefix}/qml/Qt3D/Animation
%{_qt5_prefix}/qml/Qt3D/Core
%{_qt5_prefix}/qml/Qt3D/Extras
%{_qt5_prefix}/qml/Qt3D/Input
%{_qt5_prefix}/qml/Qt3D/Logic
%{_qt5_prefix}/qml/Qt3D/Render
%{_qt5_prefix}/qml/QtQuick/Scene2D/
%{_qt5_prefix}/qml/QtQuick/Scene3D/

#----------------------------------------------------------------------------

%package -n %{qt3dquickd}
Summary:	Development files for version 5 of the Qt 3D Quick library
Group:		Development/KDE and Qt
Requires:	%{qt3dquick} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dquickd}
Development files for version 5 of the Qt 3D Quick library.

%files -n %{qt3dquickd}
%{_qt5_includedir}/Qt3DQuick
%{_qt5_libdir}/libQt%{api}3DQuick.so
%{_qt5_libdir}/libQt%{api}3DQuick.prl
%{_qt5_libdir}/cmake/Qt%{api}3DQuick
%{_qt5_libdir}/pkgconfig/Qt%{api}3DQuick.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DQuick.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquick.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquick_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dquickanimation}
Summary:	Qt 3D Quick Animation library
Group:		System/Libraries

%description -n %{qt3dquickanimation}
Qt 3D Quick Animation library.

%files -n %{qt3dquickanimation}
%{_qt5_libdir}/libQt%{api}3DQuickAnimation.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DQuickAnimation.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dquickanimationd}
Summary:	Development files for version 5 of the Qt 3D Quick Animation library
Group:		Development/KDE and Qt
Requires:	%{qt3dquickanimation} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dquickanimationd}
Development files for version 5 of the Qt 3D Quick Animation library.

%files -n %{qt3dquickanimationd}
%{_qt5_includedir}/Qt3DQuickAnimation
%{_qt5_libdir}/libQt%{api}3DQuickAnimation.so
%{_qt5_libdir}/libQt%{api}3DQuickAnimation.prl
%{_qt5_libdir}/cmake/Qt%{api}3DQuickAnimation
%{_qt5_libdir}/pkgconfig/Qt%{api}3DQuickAnimation.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DQuickAnimation.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickanimation.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickanimation_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dquickextras}
Summary:	Qt 3D Quick Extras library
Group:		System/Libraries

%description -n %{qt3dquickextras}
Qt 3D Quick Extras library.

%files -n %{qt3dquickextras}
%{_qt5_libdir}/libQt%{api}3DQuickExtras.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DQuickExtras.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dquickextrasd}
Summary:	Development files for version 5 of the Qt 3D Quick Extras library
Group:		Development/KDE and Qt
Requires:	%{qt3dquickextras} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dquickextrasd}
Development files for version 5 of the Qt 3D Quick Extras library.

%files -n %{qt3dquickextrasd}
%{_qt5_includedir}/Qt3DQuickExtras
%{_qt5_libdir}/libQt%{api}3DQuickExtras.so
%{_qt5_libdir}/libQt%{api}3DQuickExtras.prl
%{_qt5_libdir}/cmake/Qt%{api}3DQuickExtras
%{_qt5_libdir}/pkgconfig/Qt%{api}3DQuickExtras.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DQuickExtras.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickextras.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickextras_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dquickinput}
Summary:	Qt 3D Quick Input library
Group:		System/Libraries

%description -n %{qt3dquickinput}
Qt 3D Quick Input library.

%files -n %{qt3dquickinput}
%{_qt5_libdir}/libQt%{api}3DQuickInput.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DQuickInput.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dquickinputd}
Summary:	Development files for version 5 of the Qt 3D Quick Input library
Group:		Development/KDE and Qt
Requires:	%{qt3dquickinput} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dquickinputd}
Development files for version 5 of the Qt 3D Quick Input library.

%files -n %{qt3dquickinputd}
%{_qt5_includedir}/Qt3DQuickInput
%{_qt5_libdir}/libQt%{api}3DQuickInput.so
%{_qt5_libdir}/libQt%{api}3DQuickInput.prl
%{_qt5_libdir}/cmake/Qt%{api}3DQuickInput
%{_qt5_libdir}/pkgconfig/Qt%{api}3DQuickInput.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DQuickInput.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickinput.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickinput_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dquickrender}
Summary:	Qt 3D Quick Render library
Group:		System/Libraries

%description -n %{qt3dquickrender}
Qt 3D Quick Render library.

%files -n %{qt3dquickrender}
%{_qt5_libdir}/libQt%{api}3DQuickRender.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DQuickRender.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dquickrenderd}
Summary:	Development files for version 5 of the Qt 3D Quick Render library
Group:		Development/KDE and Qt
Requires:	%{qt3dquickrender} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dquickrenderd}
Development files for version 5 of the Qt 3D Quick Render library.

%files -n %{qt3dquickrenderd}
%{_qt5_includedir}/Qt3DQuickRender
%{_qt5_libdir}/libQt%{api}3DQuickRender.so
%{_qt5_libdir}/libQt%{api}3DQuickRender.prl
%{_qt5_libdir}/cmake/Qt%{api}3DQuickRender
%{_qt5_libdir}/pkgconfig/Qt%{api}3DQuickRender.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DQuickRender.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickrender.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickrender_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3dquickscene2d}
Summary:	Qt 3D Quick Scene 2D library
Group:		System/Libraries

%description -n %{qt3dquickscene2d}
Qt 3D Quick Scene 2D library.

%files -n %{qt3dquickscene2d}
%{_qt5_libdir}/libQt%{api}3DQuickScene2D.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DQuickScene2D.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3dquickscene2dd}
Summary:	Development files for version 5 of the Qt 3D Quick Scene 2D library
Group:		Development/KDE and Qt
Requires:	%{qt3dquickscene2d} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3dquickscene2dd}
Development files for version 5 of the Qt 3D Quick Scene 2D library.

%files -n %{qt3dquickscene2dd}
%{_qt5_includedir}/Qt3DQuickScene2D
%{_qt5_libdir}/libQt%{api}3DQuickScene2D.so
%{_qt5_libdir}/libQt%{api}3DQuickScene2D.prl
%{_qt5_libdir}/cmake/Qt%{api}3DQuickScene2D
%{_qt5_libdir}/pkgconfig/Qt%{api}3DQuickScene2D.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DQuickScene2D.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickscene2d.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3dquickscene2d_private.pri

#----------------------------------------------------------------------------

%package -n %{qt3drender}
Summary:	Qt 3D Render library
Group:		System/Libraries

%description -n %{qt3drender}
Qt 3D Render library.

%files -n %{qt3drender}
%{_qt5_libdir}/libQt%{api}3DRender.so.%{major}*
%{_libdir}/qt5/plugins/renderers
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}3DRender.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qt3drenderd}
Summary:	Development files for version 5 of the Qt 3D Render library
Group:		Development/KDE and Qt
Requires:	%{qt3drender} = %{EVRD}
Requires:	%{qt3dcore}-sceneparser-assimp = %{EVRD}
Requires:	%{qt3dcore}-sceneparser-gltf = %{EVRD}
Requires:	%{qt3dcore}-geometryloader-default = %{EVRD}
Requires:	%{qt3dcore}-geometryloader-gltf = %{EVRD}
Requires:	%{qt3dcore}-renderplugin-scene2d = %{EVRD}
Requires:	qmake%{api}

%description -n %{qt3drenderd}
Development files for version 5 of the Qt 3D Render library.

%files -n %{qt3drenderd}
%{_qt5_includedir}/Qt3DRender
%{_qt5_libdir}/libQt%{api}3DRender.so
%{_qt5_libdir}/libQt%{api}3DRender.prl
%{_qt5_libdir}/cmake/Qt%{api}3DRender
%{_qt5_libdir}/pkgconfig/Qt%{api}3DRender.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}3DRender.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_3drender.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_3drender_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
Conflicts:	qt5-doc < 5.6.0
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qt3d.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt
Conflicts:	qt5-examples < 5.6.0

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/qt3d/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}
%{_libdir}/qt5/bin/syncqt.pl -version %{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16812 |21mr|qt5-qtbase-5.15.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtbase
%define _qt5_datadir %{_datadir}/qt5
%define _qt5_prefix %{_libdir}/qt5
%define _qt5_testsdir %{_libdir}/qt5/tests
%define _qt5_sysconfdir %{_sysconfdir}/qt5
%global _qt5_libdir %{_libdir}
%global _qt5_includedir %{_includedir}/qt5
%global _qt5_plugindir %{_libdir}/qt5/plugins
%global _qt5_exampledir %{_libdir}/qt5/examples
%global _qt5_bindir %{_libdir}/qt5/bin
%global _qt5_docdir %{_docdir}/qt5

# qt base components
%define qtbootstrapd %mklibname qt%{api}bootstrap -d
%define qtconcurrent %mklibname qt%{api}concurrent %{major}
%define qtconcurrentd %mklibname qt%{api}concurrent -d
%define qtcore %mklibname qt%{api}core %{major}
%define qtcored %mklibname qt%{api}core -d
%define qtdbus %mklibname qt%{api}dbus %{major}
%define qtdbusd %mklibname qt%{api}dbus -d
%define qtegldeviceintegration %mklibname qt%{api}egldeviceintegration %{major}
%define qtegldeviceintegrationd %mklibname qt%{api}egldeviceintegration -d
%define qteglfskmssupport %mklibname qt%{api}eglfskmssupport %{major}
%define qteglfskmssupportd %mklibname qt%{api}eglfskmssupport -d
%define qtgui %mklibname qt%{api}gui %{major}
%define qtguid %mklibname qt%{api}gui -d
%define qtnetwork %mklibname qt%{api}network %{major}
%define qtnetworkd %mklibname qt%{api}network -d
%define qtopengl %mklibname qt%{api}opengl %{major}
%define qtopengld %mklibname qt%{api}opengl -d
%define qtprintsupport %mklibname qt%{api}printsupport %{major}
%define qtprintsupportd %mklibname qt%{api}printsupport -d
%define qtsql %mklibname qt%{api}sql %{major}
%define qtsqld %mklibname qt%{api}sql -d
%define qttest %mklibname qt%{api}test %{major}
%define qttestd %mklibname qt%{api}test -d
%define qtwidgets %mklibname qt%{api}widgets %{major}
%define qtwidgetsd %mklibname qt%{api}widgets -d
%define qtxcbqpa %mklibname qt%{api}xcbqpa %{major}
%define qtxml %mklibname qt%{api}xml %{major}
%define qtxmld %mklibname qt%{api}xml -d

# Retired, because it requires external kernel module
# to be full-featured: https://lists.fedoraproject.org/pipermail/devel/2013-August/188619.html
%bcond_with directfb
# Requires qdoc5 and qt5-tools to build
%bcond_with docs

%bcond_with clang

# Build configs are in /usr/share/doc, do not mark them as %%doc inside RPM automatically
# to avoid loosing them if installing devel packages with "nodocs" flag
# https://github.com/OpenMandrivaSoftware/docker-builder/pull/34
%define __docdir_path %{nil}

# -reduce-relocations breaks the signal/slot system badly.
# Immediately obvious effect: sddm crashes
# Probably related to
# https://bugreports.qt.io/browse/QTBUG-52439

# -reduce-relocations requires -fPIC;
# applications using Qt will also require -fPIC;
# bellow %%optflags are added to default flags for all Qt apps
# Only for x86: https://src.fedoraproject.org/rpms/qt5-qtbase/c/a97fc9
%ifarch %{ix86} %{x86_64}
%global optflags %{optflags} -fPIC
%endif
%ifarch %{e2k}
%global optflags %{optflags} -mno-sse4.2 -mno-avx
%endif

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	4
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		https://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source1:	qtlogging.ini
# xinitrc script to check for OpenGL 1 only drivers and automatically set
# QT_XCB_FORCE_SOFTWARE_OPENGL for them
Source2:	10-qt5-check-opengl2.sh
Source100:	%{name}.rpmlintrc

Patch0:		qtbase-everywhere-src-5.3.2-QTBUG-35459.patch

Patch1:		qt5-qtbase-gcc11.patch
# https://codereview.qt-project.org/#/c/151459/
Patch2:		qt-5.5.1-barf-on-clang-PIE.patch
Patch3:		qt-5.8.0-no-isystem-usr-include.patch
Patch4:		qt-5.15.8-lld-16.patch
# make mixing versions with private apis a warning instead of fatal error
Patch5: qtbase-everywhere-src-5.15.6-private_api_warning.patch

### Fedora patches
Patch102:	qtbase-everywhere-src-5.6.0-moc_WORDSIZE.patch
Patch103:	qtbase-everywhere-src-5.14.2-no_relocatable.patch
# namespace QT_VERSION_CHECK to workaround major/minor being pre-defined (#1396755)
Patch104:	qtbase-opensource-src-5.8.0-QT_VERSION_CHECK.patch
### END OF FEDORA PATCHES

# Fix "Library path /usr/X11R6/lib64 is invalid" build error
Patch151:		qtbase-5.14.1-mkspecs-X11R6-lib64.patch
# fix FTBFS against libglvnd-1.3.4+
Patch152:		qtbase-everywhere-src-5.15.2-libglvnd.patch

Patch153:		qtbase-5.15-qsqlite-blocking-changes-from-akonadi.patch

# borrowed from opensuse
# track private api via properly versioned symbols
# downside: binaries produced with these differently-versioned symbols are no longer
# compatible with qt-project.org's Qt binary releases.
Patch154:		tell-the-truth-about-private-api.patch

# Fix for touchscreens, https://bugzilla.rosalinux.ru/show_bug.cgi?id=13106
Patch156:	QTBUG-94557.patch

# https://fedoraproject.org/wiki/Changes/Qt_Wayland_By_Default_On_Gnome
# https://bugzilla.redhat.com/show_bug.cgi?id=1732129
Patch180: qtbase-use-wayland-on-gnome.patch

# Workaround for font rendering issue with cjk-vf-fonts
# https://bugreports.qt.io/browse/QTBUG-111994
# https://bugreports.qt.io/browse/QTBUG-112136
Patch202: qtbase-QTBUG-111994.patch
Patch203: qtbase-QTBUG-112136.patch
# IBus input method cannot set panel position correctly with DPI scaling
# https://bugreports.qt.io/browse/QTBUG-103393
Patch204: qtbase-QTBUG-103393.patch
Patch205:	CVE-2024-39936.patch
Patch206:	CVE-2024-25580-qtbase-5.15.diff

# From KDE https://invent.kde.org/qt/qt/qtbase -b kde/5.15
# P=1001; for i in 0*patch; do echo -e "Patch$P:\t$i"; P=$((P+1)); done >patchlist
Patch1001:	0001-Fix-get-out-of-bounds-index-in-QSortFilterProxyModel.patch
Patch1002:	0002-Fix-handling-of-surrogates-in-QBidiAlgorithm.patch
Patch1003:	0003-Don-t-own-unique-name-for-QDBusTrayIcon.patch
Patch1004:	0004-Deprecate-QMutex-in-recursive-mode.patch
Patch1005:	0005-Fix-QAbstractItemModelTester-false-positive.patch
Patch1006:	0006-QTableView-honor-spans-when-calculating-height-width.patch
Patch1007:	0007-Fix-no-mapping-for-SysReq-key.patch
Patch1008:	0008-fix-Optimize-the-performance-of-the-inotify-file-sys.patch
Patch1009:	0009-fix-Alt-shortcut-on-non-US-layouts.patch
Patch1010:	0010-Fix-copy-and-paste-bug-in-QDTEP-getMaximum.patch
Patch1011:	0011-Optimize-quadratic-time-insertion-in-QSortFilterProx.patch
Patch1012:	0012-Update-shared-mime-info-to-the-2.1-release-adjust-im.patch
Patch1013:	0013-xcb-Remove-need-for-QXCBScreen-to-resolve-QXcbGlInte.patch
Patch1014:	0014-Fix-memory-leak-of-QOffscreenScreen-in-QOffscreenInt.patch
Patch1015:	0015-Remove-another-usage-of-mysql_get_client_version.patch
Patch1016:	0016-linux-clang-qplatformdefs-fix-building-with-musl-lib.patch
Patch1017:	0017-Remove-checks-for-glibc-2-from-qplatformdefs.h-files.patch
Patch1018:	0018-Cater-for-upstream-changes-in-eglplatform.h.patch
Patch1019:	0019-Fix-memory-leak.patch
Patch1020:	0020-Fix-QPainterPath-with-QFont-SmallCaps.patch
Patch1021:	0021-Respect-font-stretch-if-set-together-with-font-style.patch
Patch1022:	0022-Support-transformations-in-pattern-texture-brushes-i.patch
Patch1023:	0023-Fix-highdpi-conversion-of-QTabletEvent-coordinates-o.patch
Patch1024:	0024-Revert-Fix-highdpi-conversion-of-QTabletEvent-coordi.patch
Patch1025:	0025-Use-icon-themes-in-QPrintPreviewDialog-if-they-exist.patch
Patch1026:	0026-Dont-s-use-DTLS_MAX_VERSION-when-setting-SSL_CTX.patch
Patch1027:	0027-Diffie-Hellman-parameters-remove-useless-fix.patch
Patch1028:	0028-Don-t-use-a-deprecated-function-if-built-linked-with.patch
Patch1029:	0029-Adapt-for-q_EVP_PKEY_base_id-q_EVP_PKEY_get_base_id-.patch
Patch1030:	0030-Respect-AT_SPI_BUS_ADDRESS-env-var-on-Linux.patch
Patch1031:	0031-Fix-check-for-malformed-input-when-decoding-translat.patch
Patch1032:	0032-qgenericunixservices-Consider-kde-open5-for-opening-.patch
Patch1033:	0033-Qt-namespace-fix-QT_Q_FLAG-declaration-for-Qt-MouseE.patch
Patch1034:	0034-QAction-Add-NOTIFY-changed-declaration-to-priority-p.patch
Patch1035:	0035-QPA-add-ButtonPressKeys-ThemeHint.patch
Patch1036:	0036-QGnomeTheme-Allow-Space-Return-Enter-and-Select-to-p.patch
Patch1037:	0037-QGnomeTheme-remove-unneeded-Q_D.patch
Patch1038:	0038-testlib-qasciikey-Add-keypad-navigation-keys.patch
Patch1039:	0039-Fix-crash-on-serializing-default-constructed-QTimeZo.patch
Patch1040:	0040-Fix-a-QDBusConnection-crash-with-pending-calls-when-.patch
Patch1041:	0041-Prevent-crashing-when-FcFontList-fails.patch
Patch1042:	0042-QReadWriteLock-fix-another-data-race-in-stateForWait.patch
Patch1043:	0043-Fix-data-race-in-QObject-moveToThread.patch
Patch1044:	0044-QPushButton-fusion-style-don-t-ignore-QIcon-On-icon.patch
Patch1045:	0045-QCOMPARE-QVERIFY-fix-huge-pessimisation-in-QTestResu.patch
Patch1046:	0046-Fix-a-leak-of-fallback-dialog-helper-in-xdgdesktoppo.patch
Patch1047:	0047-Fix-data-race-in-QCoreApplicationPrivate-sendThrough.patch
Patch1048:	0048-Initialize-m_exclusive-in-QGtk3MenuItem-constructor.patch
Patch1049:	0049-CUPS-Add-support-for-accessible-IPP-printers.patch
Patch1050:	0050-QShader-fix-memory-leak-in-detach.patch
Patch1051:	0051-QAbstractItemDelegate-fix-rect-given-to-tooltip-hand.patch
Patch1052:	0052-QDBusMenuConnection-Close-open-D-Bus-connection.patch
Patch1053:	0053-Widgets-use-QPlatformTheme-ButtonPressKeys-for-press.patch
Patch1054:	0054-QAbstractButton-QComboBox-QGroupBox-static_cast-even.patch
Patch1055:	0055-QArrayData-fix-UB-via-reinterpret_cast-crash-with-FO.patch
Patch1056:	0056-Drop-call-to-setPlatformScreen-in-QHighDpiScaling-se.patch
Patch1057:	0057-Fix-QDBusInterface-crashing-with-empty-path-on-const.patch
Patch1058:	0058-Add-QXdgDesktopPortalFileDialog-useNativeFileDialog.patch
Patch1059:	0059-Fallback-to-another-file-dialog-implementation-when-.patch
Patch1060:	0060-Fix-compile-with-MinGW-W64-9.0.0-Redefinition-of-str.patch
Patch1061:	0061-Fix-crash-in-QKmsDevice-createScreenForConnector.patch
Patch1062:	0062-QtConcurrent-ReduceKernel-fix-race-conditions.patch
Patch1063:	0063-Revert-CUPS-Add-support-for-accessible-IPP-printers.patch
Patch1064:	0064-xcb-Update-_NET_SUPPORTED-when-the-window-manager-ch.patch
Patch1065:	0065-Apply-CVE-2022-27404-27405-27406-qtbase-5.15.diff.patch
Patch1066:	0066-Don-t-access-QObjectPrivate-declarativeData-unguarde.patch
Patch1067:	0067-widgets-avoid-setting-X11BypassWindowManagerHint-in-.patch
Patch1068:	0068-3rdparty-zlib-backport-the-fix-to-CVE-2022-37434.patch
Patch1069:	0069-fix-AT_SPI_BUS_ADDRESS-actually-working.patch
Patch1070:	0070-Use-class-scope-to-refer-to-static-function.patch
Patch1071:	0071-add-color-picking-support-on-wayland-using-the-XDG-d.patch
Patch1072:	0072-3rdparty-apply-a-fix-to-the-last-zlib-fix.patch
Patch1073:	0073-Fix-possible-undefined-behavior-in-clear_thread_data.patch
Patch1074:	0074-Revert-Remove-the-dead-code-for-blocking-methods-fro.patch
Patch1075:	0075-Fix-build-without-dbus-support.patch
Patch1076:	0076-Fix-typo-in-code.patch
Patch1077:	0077-QNetworkReplyFileImpl-Don-t-emit-finished-in-the-cto.patch
Patch1078:	0078-xcb-fix-the-build-of-native-painting.patch
Patch1079:	0079-eglfs-Fix-crash-when-painting-the-mouse-cursor-in-a-.patch
Patch1080:	0080-Assert-validity-in-QStringIterator-s-unchecked-metho.patch
Patch1081:	0081-QStringIterator-fix-UB-1-2-use-has-Next-Previous-mor.patch
Patch1082:	0082-QStringIterator-fix-UB-2-2-use-std-less-to-compare-p.patch
Patch1083:	0083-ANGLE-Fix-compilation-on-GCC-11.patch
Patch1084:	0084-Send-string-to-Atspi-DBus-interface-on-value-changed.patch
Patch1085:	0085-Send-string-to-Atspi-DBus-interface-on-name-descript.patch
Patch1086:	0086-offer-an-opt-out-of-automatic-xdg-desktop-portal-use.patch
Patch1087:	0087-a11y-support-GetAccessibleId-for-at-spi.patch
Patch1088:	0088-xcb-Replace-qCWarning-by-qCDebug-in-QXcbConnection-p.patch
Patch1089:	0089-Handle-allocation-failure-in-QImage-rotate-90-180-27.patch
Patch1090:	0090-Annotate-QMutex-with-TSAN-annotations.patch
Patch1091:	0091-update-function-argument-of-SSL_CTX_set_options.patch
Patch1092:	0092-Send-accessible-focus-event-after-list-view-has-focu.patch
Patch1093:	0093-Scale-BMP-color-samples-with-periodic-bit-expansion.patch
Patch1094:	0094-QKeySequence-Add-missing-modifier-names.patch
Patch1095:	0095-Fix-wrong-to-linear-conversion.patch
Patch1096:	0096-forkfd-linux-add-support-for-LoongArch.patch
Patch1097:	0097-TLS-backend-SecureTransport-properly-clear-SSLContex.patch
Patch1098:	0098-Fix-potential-corruption-with-image-format-conversio.patch
Patch1099:	0099-Set-geometry-property-in-QXcbWindow-after-checking-m.patch
Patch1100:	0100-ibus-add-SetCursorLocationRelative-in-InputContext.x.patch
Patch1101:	0101-xcb-correctly-disconnect-xsettings-callbacks.patch
Patch1102:	0102-QSysInfo-prettyProductName-add-missing-macOS-product.patch
Patch1103:	0103-QSysInfo-prettyProductName-Add-macOS-Ventura-product.patch
Patch1104:	0104-QToolButton-reimplement-the-fix-for-QTBUG-95255.patch
Patch1105:	0105-Doc-Link-to-page-documenting-Qt-trademarks-in-the-co.patch
Patch1106:	0106-Doc-Fix-typo-in-the-online-documentation-template.patch
Patch1107:	0107-QNetworkReply-Fix-typos-in-the-documentation.patch
Patch1108:	0108-Fix-deletion-order-in-QImageReader-Writer-destructor.patch
Patch1109:	0109-Fix-deletion-order-also-for-QImageReader-Writer-setD.patch
Patch1110:	0110-Do-not-set-Qt-ToolTip-flag-for-QShapedPixmapWindow.patch
Patch1111:	0111-correctly-set-up-ref-counting-in-QThreadPool-tryStar.patch
Patch1112:	0112-QToolButton-Elide-text-when-constraints-prevent-from.patch
Patch1113:	0113-QXcbConnection-getTimestamp-do-not-return-stale-time.patch
Patch1114:	0114-Apply-CVE-2023-24607-qtbase-5.15.diff.patch
Patch1115:	0115-QAbstractItemView-don-t-access-invalid-indexes-on-co.patch
Patch1116:	0116-Add-nullptr-guard-in-QStyleSheetStyle-drawPrimitive-.patch
Patch1117:	0117-Add-QImage-null-check-when-QOpenGLTexture-converts.patch
Patch1118:	0118-QFSFileEngine-fix-overflow-bug-when-using-lseek64.patch
Patch1119:	0119-QCborValue-fix-incorrect-to-Array-Map-when-the-value.patch
Patch1120:	0120-QDnsLookup-Unix-make-sure-we-don-t-overflow-the-buff.patch
Patch1121:	0121-Fix-specific-overflow-in-qtextlayout-CVE-2023-32763.patch
Patch1122:	0122-Hsts-match-header-names-case-insensitively-CVE-2023-.patch
Patch1123:	0123-Use-pkgconfig-in-order-to-find-libproxy-configuratio.patch
Patch1124:	0124-qxcbwindow.cpp-Fix-sign-compare-and-another-warnings.patch
Patch1125:	0125-Fix-tst_moc-for-C-17.patch
Patch1126:	0126-Revert-Draw-the-cursor-considering-the-descent-is-0.patch
Patch1127:	0127-qnetworkreplyfileimpl_p.h-fix-header-guard-name.patch
Patch1128:	0128-Schannel-Reject-certificate-not-signed-by-a-configur.patch
Patch1129:	0129-Ssl-Copy-the-on-demand-cert-loading-bool-from-defaul.patch
Patch1130:	0130-Ssl-upgrade-the-default-DH-parameters.patch
Patch1131:	0131-Fix-Croatia-currency.patch
Patch1132:	0132-QXmlStreamReader-change-fastScanName-to-take-Value.patch
Patch1133:	0133-QXmlStreamReader-make-fastScanName-indicate-parsing-status-to-callers.patch
Patch1134:	0134-tst_QXmlStream-remove-unneeded-ba-UDLs.patch
Patch1135:	0135-QLogging-DRY-isFatal-QtMsgType.patch
#Patch1136:	0136-Make-sure-we-don't-count-down-past-0-QT_FATAL_CRITICALS.patch
Patch1137:	0137-QHostInfo-fix-leaking-slot-object.patch
Patch1138:	0138-QSslDiffieHellmanParameters-fix-mem-leak.patch
Patch1139:	0139-Doc-note-QWindow-winId-will-cause-platform-window-creation.patch
Patch1140:	0140-Return-0-in-QWindow-winId-in-case-of-failed-platform-window-creation.patch
Patch1141:	0141-Fix-QTextEdit-cursor-rectangle-vertical-positioning.patch
Patch1142:	0142-Ensure-consistent-cursor-width-under-fractional-scaling.patch
Patch1143:	0143-QTextLayout-Reconsider-cursor-drawing-on-TextObject.patch
Patch1144:	0144-QXmlStreamReader-Raise-error-on-unexpected-tokens.patch
Patch1145:	0145-QHostInfo-fix-remaining-slotObj-leaks.patch
Patch1146:	0146-QColorDialog-Ignore-mouse-move-events-when-no-mouse-button-is-pressed.patch
Patch1147:	0147-Fix-capitalization-error-in-auto-generated-qdbusmacros.h-include.patch
Patch1148:	0148-Qt3DRender-includemocs.patch
Patch1149:	0149-Fix-UB-signed-char-passed-to-<cctype>-function.patch
Patch1150:	0150-Clear-the-X-version-of-alongside-the-enum-deprecator.patch
#Patch1151:	0151-Correctly-parse-non-BMP-char-refs-in-the-sax-parser.patch

# e2k
#Patch3000:	0298-e2k_lcc_configs_and_specs.patch
# #Patch3001:	0299-cross_build.patch
#Patch3002:	0300-e2k_lcc_arch_specific.patch
#Patch3003:	0301-explicit-cast-from-enum-to-short.patch
#Patch3004:	0302-bug119821.patch
#Patch3005:	0303-e2k-disable-failing-optimize.patch
Source3000:  qt5-base-5.15.2-e2k.patch

BuildRequires:	bison
BuildRequires:	flex
# Used for CPU feature detection in configure step
BuildRequires:	gdb
BuildRequires:	gperf
BuildRequires:	qt5-macros
BuildRequires:	cups-devel
BuildRequires:	double-conversion-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(dbus-1)
%if %{with directfb}
# DirectFB platform plugin:
BuildRequires:	pkgconfig(directfb)
%endif
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
# Event loop
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(gbm)
# GTK theme
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(inputproto)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libpcre2-posix)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(wayland-server)
# need to point it
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libinput)
# For XCB platform plugin:
BuildRequires:	pkgconfig(xcb) >= 1.5
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcb-randr)
BuildRequires:	pkgconfig(xcb-render)
BuildRequires:	pkgconfig(xcb-renderutil)
BuildRequires:	pkgconfig(xcb-shape)
BuildRequires:	pkgconfig(xcb-xfixes)
BuildRequires:	pkgconfig(xcb-xinerama)
BuildRequires:	pkgconfig(xcb-xv)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcomp)
BuildRequires:	pkgconfig(xkbcommon) >= 0.4.1
BuildRequires:	pkgconfig(xkbcommon-x11) >= 0.4.1
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libsctp)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(mtdev)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtbootstrapd}
Summary:	Development files for version 5 of the Qt Bootstrap library
Group:		Development/KDE and Qt
Requires:	qmake%{api}

%description -n %{qtbootstrapd}
Development files for version 5 of the Qt Bootstrap library.

%files -n %{qtbootstrapd}
%{_qt5_libdir}/libQt%{api}Bootstrap.a
%{_qt5_libdir}/libQt%{api}Bootstrap.prl
%{_qt5_prefix}/mkspecs/modules/qt_lib_bootstrap_private.pri

#----------------------------------------------------------------------------

%package -n %{qtconcurrent}
Summary:	Qt threading library
Group:		System/Libraries

%description -n %{qtconcurrent}
Qt threading library.

%files -n %{qtconcurrent}
%{_qt5_libdir}/libQt%{api}Concurrent.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Concurrent.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtconcurrentd}
Summary:	Development files for version 5 of the Qt Concurrent library
Group:		Development/KDE and Qt
Requires:	%{qtconcurrent} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtconcurrentd}
Development files for version 5 of the Qt Concurrent library.

%files -n %{qtconcurrentd}
%{_qt5_includedir}/QtConcurrent
%{_qt5_libdir}/libQt%{api}Concurrent.so
%{_qt5_libdir}/libQt%{api}Concurrent.prl
%{_qt5_libdir}/cmake/Qt%{api}Concurrent
%{_qt5_libdir}/pkgconfig/Qt%{api}Concurrent.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Concurrent.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_concurrent.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_concurrent_private.pri

#----------------------------------------------------------------------------

%package -n %{qtcore}
Summary:	Qt Core library
Group:		System/Libraries
# Moved to external sources
Recommends:	qt5-qtcore-i18n

%description -n %{qtcore}
Qt Core library.

%files -n %{qtcore}
%{_qt5_libdir}/libQt%{api}Core.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Core.so.%{major}*
%endif
%dir %{_qt5_plugindir}
%{_libdir}/metatypes/qt5core_metatypes.json
%{_qt5_datadir}/qtlogging.ini

#----------------------------------------------------------------------------

%package -n %{qtcored}
Summary:	Development files for version 5 of the Qt Core library
Group:		Development/KDE and Qt
Requires:	%{qtcore} = %{EVRD}
Requires:	qlalr%{api}
Requires:	qmake%{api}

%description -n %{qtcored}
Development files for version 5 of the Qt Core library.

%files -n %{qtcored}
%{_qt5_docdir}/config
%{_qt5_docdir}/global
%{_bindir}/moc-qt%{api}
%{_qt5_bindir}/moc
%{_bindir}/rcc-qt%{api}
%{_qt5_bindir}/rcc
%{_qt5_bindir}/syncqt.pl
%{_qt5_bindir}/tracegen
%{_qt5_includedir}/QtCore
%{_qt5_libdir}/libQt%{api}Core.so
%{_qt5_libdir}/libQt%{api}Core.prl
%{_qt5_libdir}/cmake/Qt%{api}Core
%{_qt5_libdir}/cmake/Qt%{api}/Qt%{api}Config.cmake
%{_qt5_libdir}/cmake/Qt%{api}/Qt%{api}ConfigVersion.cmake
%{_qt5_libdir}/cmake/Qt%{api}/Qt%{api}ModuleLocation.cmake
%{_qt5_libdir}/pkgconfig/Qt%{api}Core.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Core.pc
%endif
%dir %{_qt5_libdir}/cmake
%dir %{_qt5_libdir}/cmake/Qt%{api}
%dir %{_qt5_libdir}/pkgconfig
%{_qt5_prefix}/mkspecs/modules/qt_lib_core.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_core_private.pri

#----------------------------------------------------------------------------

%package -n %{qtdbus}
Summary:	Qt DBus connector library
Group:		System/Libraries

%description -n %{qtdbus}
Qt DBus connector library.

%files -n %{qtdbus}
%{_qt5_libdir}/libQt%{api}DBus.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}DBus.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtdbusd}
Summary:	Development files for version 5 of the Qt DBus library
Group:		Development/KDE and Qt
Requires:	%{qtdbus} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtdbusd}
Development files for version 5 of the Qt DBus library.

%files -n %{qtdbusd}
%{_qt5_bindir}/qdbuscpp2xml
%{_bindir}/qdbuscpp2xml-qt%{api}
%{_qt5_bindir}/qdbusxml2cpp
%{_bindir}/qdbusxml2cpp-qt%{api}
%{_qt5_includedir}/QtDBus
%{_qt5_libdir}/libQt%{api}DBus.so
%{_qt5_libdir}/libQt%{api}DBus.prl
%{_qt5_libdir}/cmake/Qt%{api}DBus
%{_qt5_libdir}/pkgconfig/Qt%{api}DBus.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}DBus.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_dbus.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_dbus_private.pri

#----------------------------------------------------------------------------

%package -n %{qtegldeviceintegration}
Summary:	Qt EGL Device Integration library
Group:		System/Libraries
Requires:	qt5-eglfs-integration-plugin-default = %{EVRD}
# Suggest all integration plugins
Recommends:	qt5-eglfs-integration-plugin-emu = %{EVRD}
Recommends:	qt5-eglfs-integration-plugin-kms = %{EVRD}
Recommends:	qt5-eglfs-integration-plugin-x11 = %{EVRD}

%description -n %{qtegldeviceintegration}
Qt EGL Device Integration library.

%files -n %{qtegldeviceintegration}
%{_qt5_libdir}/libQt%{api}EglFSDeviceIntegration.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}EglFSDeviceIntegration.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtegldeviceintegrationd}
Summary:	Development files for version 5 of the EGL Device Integration library
Group:		Development/KDE and Qt
Requires:	%{qtegldeviceintegration} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtegldeviceintegrationd}
Development files for version 5 of the EGL Device Integration library.

%files -n %{qtegldeviceintegrationd}
%{_qt5_includedir}/QtEglFSDeviceIntegration
%{_qt5_libdir}/libQt%{api}EglFSDeviceIntegration.so
%{_qt5_libdir}/libQt%{api}EglFSDeviceIntegration.prl
%{_qt5_libdir}/cmake/Qt%{api}EglFSDeviceIntegration
%{_qt5_prefix}/mkspecs/modules/qt_lib_eglfsdeviceintegration_private.pri

#----------------------------------------------------------------------------

%package -n %{qtegldeviceintegration}-emu
Summary:	Emulator support for the Qt EGL Device Integration library v5
Group:		System/Libraries
Requires:	%{qtegldeviceintegration} = %{EVRD}
Provides:	qt5-eglfs-integration-plugin = %{EVRD}
Provides:	qt5-eglfs-integration-plugin-emu = %{EVRD}

%description -n %{qtegldeviceintegration}-emu
Emulator support for the Qt EGL Device Integration library v5.

%files -n %{qtegldeviceintegration}-emu
%{_qt5_plugindir}/egldeviceintegrations/libqeglfs-emu-integration.so

#----------------------------------------------------------------------------

%package -n %{qtegldeviceintegration}-kms
Summary:	KMS support for the Qt EGL Device Integration library v5
Group:		System/Libraries
Requires:	%{qtegldeviceintegration} = %{EVRD}
Provides:	qt5-eglfs-integration-plugin = %{EVRD}
Provides:	qt5-eglfs-integration-plugin-kms = %{EVRD}

%description -n %{qtegldeviceintegration}-kms
KMS support for the Qt EGL Device Integration library v5.

%files -n %{qtegldeviceintegration}-kms
%{_qt5_plugindir}/egldeviceintegrations/libqeglfs-kms-integration.so
%{_qt5_plugindir}/egldeviceintegrations/libqeglfs-kms-egldevice-integration.so

#----------------------------------------------------------------------------

%package -n %{qtegldeviceintegration}-x11
Summary:	X11 support for the Qt EGL Device Integration library v5
Group:		System/Libraries
Requires:	%{qtegldeviceintegration} = %{EVRD}
Provides:	qt5-eglfs-integration-plugin = %{EVRD}
Provides:	qt5-eglfs-integration-plugin-default = %{EVRD}
Provides:	qt5-eglfs-integration-plugin-x11 = %{EVRD}

%description -n %{qtegldeviceintegration}-x11
X11 support for the Qt EGL Device Integration library v5.

%files -n %{qtegldeviceintegration}-x11
%{_qt5_plugindir}/egldeviceintegrations/libqeglfs-x11-integration.so

#----------------------------------------------------------------------------

%package -n %{qteglfskmssupport}
Summary:	Qt EGL KMS support library
Group:		System/Libraries

%description -n %{qteglfskmssupport}
Qt EGL KMS support library.

%files -n %{qteglfskmssupport}
%{_qt5_libdir}/libQt%{api}EglFsKmsSupport.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}EglFsKmsSupport.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qteglfskmssupportd}
Summary:	Development files for version 5 of the EGL KMS support library
Group:		Development/KDE and Qt
Requires:	%{qteglfskmssupport} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qteglfskmssupportd}
Development files for version 5 of the EGL KMS support library.

%files -n %{qteglfskmssupportd}
%{_qt5_libdir}/libQt%{api}EglFsKmsSupport.so
%{_qt5_libdir}/libQt%{api}EglFsKmsSupport.prl
%{_qt5_libdir}/cmake/Qt%{api}EglFsKmsSupport
%{_qt5_prefix}/mkspecs/modules/qt_lib_eglfs_kms_support_private.pri

#----------------------------------------------------------------------------

%package -n %{qtgui}
Summary:	Qt GUI library
Group:		System/Libraries
Recommends:	qt5-imageformats-plugins
Recommends:	qt5-style-plugins
Requires:	qt5-output-driver = %{EVRD}
# Force it for now
Requires:	qt5-output-driver-default = %{EVRD}
# for Source2: 10-qt5-check-opengl2.sh:
# glxinfo
Requires: glxinfo

%description -n %{qtgui}
Qt GUI library.

%files -n %{qtgui}
%{_sysconfdir}/X11/xinit/xinitrc.d/10-qt5-check-opengl2.sh
%{_qt5_libdir}/libQt%{api}Gui.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Gui.so.%{major}*
%endif
%{_qt5_plugindir}/imageformats
%dir %{_qt5_plugindir}/platforminputcontexts
%dir %{_qt5_plugindir}/platforms
%dir %{_qt5_plugindir}/platformthemes
%{_qt5_plugindir}/generic
%{_qt5_plugindir}/printsupport
%{_libdir}/metatypes/qt5gui_metatypes.json

#----------------------------------------------------------------------------

%package -n %{qtguid}
Summary:	Development files for version 5 of the Qt GUI library
Group:		Development/KDE and Qt
Requires:	%{qtgui} = %{EVRD}
Requires:	qmake%{api}
Requires:	%{qtegldeviceintegrationd} = %{EVRD}
Requires:	%{qteglfskmssupportd} = %{EVRD}
# We need all the Platform plugins because the plugin related cmake files in
# {_qt5_libdir}/cmake/Qt{api}Gui cause fatal errors if the plugins aren't
# installed.
%if %{with directfb}
Requires:	%{qtgui}-directfb = %{EVRD}
%endif
Requires:	%{qtgui}-eglfs = %{EVRD}
%ifos linux
Requires:	%{qtgui}-linuxfb = %{EVRD}
%endif
Requires:	%{qtgui}-minimal = %{EVRD}
Requires:	%{qtgui}-minimalegl = %{EVRD}
Requires:	%{qtgui}-offscreen = %{EVRD}
Requires:	%{qtgui}-vnc = %{EVRD}
Requires:	%{qtgui}-x11 = %{EVRD}
Requires:	%{oname}-platformtheme-xdgdesktopportal = %{EVRD}
Requires:	%{oname}-platformtheme-gtk3 = %{EVRD}
Requires:	qt5-eglfs-integration-plugin-emu = %{EVRD}
Requires:	qt5-eglfs-integration-plugin-kms = %{EVRD}
Requires:	qt5-eglfs-integration-plugin-x11 = %{EVRD}
Requires:	qt5-xcb-integration-plugin-egl = %{EVRD}
Requires:	qt5-xcb-integration-plugin-glx = %{EVRD}
Requires:	pkgconfig(vulkan)
Requires:	pkgconfig(gl)
Requires:	pkgconfig(egl)
Requires:	pkgconfig(glesv2)


%description -n %{qtguid}
Development files for version 5 of the Qt GUI library.

%files -n %{qtguid}
%{_qt5_bindir}/qvkgen
%{_qt5_bindir}/uic
%{_bindir}/uic-qt%{api}
%{_qt5_includedir}/QtAccessibilitySupport
%{_qt5_includedir}/QtDeviceDiscoverySupport
%{_qt5_includedir}/QtEdidSupport
%{_qt5_includedir}/QtEglSupport
%{_qt5_includedir}/QtEventDispatcherSupport
%{_qt5_includedir}/QtFbSupport
%{_qt5_includedir}/QtFontDatabaseSupport
%{_qt5_includedir}/QtGlxSupport
%{_qt5_includedir}/QtGui
%{_qt5_includedir}/QtInputSupport
%{_qt5_includedir}/QtKmsSupport
%{_qt5_includedir}/QtLinuxAccessibilitySupport/
%{_qt5_includedir}/QtPlatformCompositorSupport
%{_qt5_includedir}/QtPlatformHeaders
%{_qt5_includedir}/QtServiceSupport
%{_qt5_includedir}/QtThemeSupport
%{_qt5_includedir}/QtVulkanSupport
%{_qt5_includedir}/QtXkbCommonSupport
%{_qt5_libdir}/libQt%{api}AccessibilitySupport.a
%{_qt5_libdir}/libQt%{api}AccessibilitySupport.prl
%{_qt5_libdir}/libQt%{api}DeviceDiscoverySupport.a
%{_qt5_libdir}/libQt%{api}DeviceDiscoverySupport.prl
%{_qt5_libdir}/libQt%{api}EdidSupport.a
%{_qt5_libdir}/libQt%{api}EdidSupport.prl
%{_qt5_libdir}/libQt%{api}EglSupport.a
%{_qt5_libdir}/libQt%{api}EglSupport.prl
%{_qt5_libdir}/libQt%{api}EventDispatcherSupport.a
%{_qt5_libdir}/libQt%{api}EventDispatcherSupport.prl
%{_qt5_libdir}/libQt%{api}FbSupport.a
%{_qt5_libdir}/libQt%{api}FbSupport.prl
%{_qt5_libdir}/libQt%{api}FontDatabaseSupport.a
%{_qt5_libdir}/libQt%{api}FontDatabaseSupport.prl
%{_qt5_libdir}/libQt%{api}Gui.so
%{_qt5_libdir}/libQt%{api}Gui.prl
%{_qt5_libdir}/libQt%{api}GlxSupport.a
%{_qt5_libdir}/libQt%{api}GlxSupport.prl
%{_qt5_libdir}/libQt%{api}InputSupport.a
%{_qt5_libdir}/libQt%{api}InputSupport.prl
%{_qt5_libdir}/libQt%{api}KmsSupport.a
%{_qt5_libdir}/libQt%{api}KmsSupport.prl
%{_qt5_libdir}/libQt%{api}LinuxAccessibilitySupport.a
%{_qt5_libdir}/libQt%{api}LinuxAccessibilitySupport.prl
%{_qt5_libdir}/libQt%{api}PlatformCompositorSupport.a
%{_qt5_libdir}/libQt%{api}PlatformCompositorSupport.prl
%{_qt5_libdir}/libQt%{api}ServiceSupport.a
%{_qt5_libdir}/libQt%{api}ServiceSupport.prl
%{_qt5_libdir}/libQt%{api}ThemeSupport.a
%{_qt5_libdir}/libQt%{api}ThemeSupport.prl
%{_qt5_libdir}/libQt%{api}VulkanSupport.a
%{_qt5_libdir}/libQt%{api}VulkanSupport.prl
%{_qt5_libdir}/libQt%{api}XkbCommonSupport.a
%{_qt5_libdir}/libQt%{api}XkbCommonSupport.prl
%{_qt5_libdir}/cmake/Qt%{api}AccessibilitySupport
%{_qt5_libdir}/cmake/Qt%{api}DeviceDiscoverySupport
%{_qt5_libdir}/cmake/Qt%{api}EdidSupport
%{_qt5_libdir}/cmake/Qt%{api}EglSupport
%{_qt5_libdir}/cmake/Qt%{api}EventDispatcherSupport
%{_qt5_libdir}/cmake/Qt%{api}FbSupport
%{_qt5_libdir}/cmake/Qt%{api}FontDatabaseSupport
%{_qt5_libdir}/cmake/Qt%{api}GlxSupport
%{_qt5_libdir}/cmake/Qt%{api}Gui
%{_qt5_libdir}/cmake/Qt%{api}InputSupport
%{_qt5_libdir}/cmake/Qt%{api}KmsSupport
%{_qt5_libdir}/cmake/Qt%{api}LinuxAccessibilitySupport
%{_qt5_libdir}/cmake/Qt%{api}PlatformCompositorSupport
%{_qt5_libdir}/cmake/Qt%{api}ServiceSupport
%{_qt5_libdir}/cmake/Qt%{api}ThemeSupport
%{_qt5_libdir}/cmake/Qt%{api}VulkanSupport
%{_qt5_libdir}/cmake/Qt%{api}XkbCommonSupport
%{_qt5_libdir}/pkgconfig/Qt%{api}Gui.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Gui.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_accessibility_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_devicediscovery_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_edid_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_egl_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_eventdispatcher_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_fb_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_fontdatabase_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_glx_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_gui.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_gui_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_input_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_kms_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_linuxaccessibility_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_platformcompositor_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_service_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_theme_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_vulkan_support_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_xcb_qpa_lib_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_xkbcommon_support_private.pri

#----------------------------------------------------------------------------

%if %{with directfb}
%package -n %{qtgui}-directfb
Summary:	DirectFB output driver for Qt GUI v5
Group:		System/Libraries
Requires:	%{qtgui} = %{EVRD}
Provides:	qt5-output-driver = %{EVRD}
Provides:	qt5-output-driver-directfb = %{EVRD}

%description -n %{qtgui}-directfb
DirectFB output driver for Qt GUI v5.

%files -n %{qtgui}-directfb
%{_qt5_plugindir}/platforms/libqdirectfb.so
%endif

#----------------------------------------------------------------------------

%package -n %{qtgui}-eglfs
Summary:	EGL fullscreen output driver for Qt GUI v5
Group:		System/Libraries
Requires:	%{qtgui} = %{EVRD}
Provides:	qt5-output-driver = %{EVRD}
Provides:	qt5-output-driver-eglfs = %{EVRD}

%description -n %{qtgui}-eglfs
EGL fullscreen output driver for Qt GUI v5.

%files -n %{qtgui}-eglfs
%{_qt5_plugindir}/platforms/libqeglfs.so

#----------------------------------------------------------------------------

%package -n %{qtgui}-linuxfb
Summary:	Linux Framebuffer output driver for Qt GUI v5
Group:		System/Libraries
Requires:	%{qtgui} = %{EVRD}
Provides:	qt5-output-driver = %{EVRD}
Provides:	qt5-output-driver-linuxfb = %{EVRD}

%description -n %{qtgui}-linuxfb
Linux Framebuffer output driver for Qt GUI v5.

%files -n %{qtgui}-linuxfb
%{_qt5_plugindir}/platforms/libqlinuxfb.so

#----------------------------------------------------------------------------

%package -n %{qtgui}-minimal
Summary:	Minimal (Framebuffer based) output driver for Qt GUI v5
Group:		System/Libraries
Requires:	%{qtgui} = %{EVRD}
Provides:	qt5-output-driver = %{EVRD}
Provides:	qt5-output-driver-minimal = %{EVRD}

%description -n %{qtgui}-minimal
Minimal (Framebuffer based) output driver for Qt GUI v5.

%files -n %{qtgui}-minimal
%{_qt5_plugindir}/platforms/libqminimal.so

#----------------------------------------------------------------------------

%package -n %{qtgui}-minimalegl
Summary:	Minimalistic EGL output driver for Qt GUI v5
Group:		System/Libraries
Requires:	%{qtgui} = %{EVRD}
Provides:	qt5-output-driver = %{EVRD}
Provides:	qt5-output-driver-minimalegl = %{EVRD}

%description -n %{qtgui}-minimalegl
Minimalistic EGL output driver for Qt GUI v5.

%files -n %{qtgui}-minimalegl
%{_qt5_plugindir}/platforms/libqminimalegl.so

#----------------------------------------------------------------------------

%package -n %{qtgui}-offscreen
Summary:	Offscreen output driver for Qt GUI v5
Group:		System/Libraries
Requires:	%{qtgui} = %{EVRD}
Provides:	qt5-output-driver = %{EVRD}
Provides:	qt5-output-driver-offscreen = %{EVRD}

%description -n %{qtgui}-offscreen
Minimal (framebuffer-based) output driver for Qt GUI v5.

%files -n %{qtgui}-offscreen
%{_qt5_plugindir}/platforms/libqoffscreen.so

#----------------------------------------------------------------------------

%package -n %{qtgui}-vnc
Summary:	VNC output driver for Qt GUI v5
Group:		System/Libraries
Requires:	%{qtgui} = %{EVRD}
Provides:	qt5-output-driver = %{EVRD}
Provides:	qt5-output-driver-vnc = %{EVRD}

%description -n %{qtgui}-vnc
VNC output driver for Qt GUI v5.

%files -n %{qtgui}-vnc
%{_qt5_plugindir}/platforms/libqvnc.so

#----------------------------------------------------------------------------

%package -n %{qtgui}-x11
Summary:	X11 output driver for Qt GUI v5
Group:		System/Libraries
Requires:	%{qtgui} = %{EVRD}
Provides:	qt5-output-driver = %{EVRD}
Provides:	qt5-output-driver-default = %{EVRD}
Provides:	qt5-output-driver-x11 = %{EVRD}

%description -n %{qtgui}-x11
X11 output driver for Qt GUI v5.

%files -n %{qtgui}-x11
%{_qt5_plugindir}/platforms/libqxcb.so
%{_qt5_plugindir}/platforminputcontexts/libibusplatforminputcontextplugin.so
%{_qt5_plugindir}/platforminputcontexts/libcomposeplatforminputcontextplugin.so

#----------------------------------------------------------------------------

%package -n %{qtnetwork}
Summary:	Qt Networking library
Group:		System/Libraries

%description -n %{qtnetwork}
Qt Networking library.

%files -n %{qtnetwork}
%{_qt5_libdir}/libQt%{api}Network.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Network.so.%{major}*
%endif
%{_qt5_plugindir}/bearer

#----------------------------------------------------------------------------

%package -n %{qtnetworkd}
Summary:	Development files for version 5 of the Qt Network library
Group:		Development/KDE and Qt
Requires:	%{qtnetwork} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtnetworkd}
Development files for version 5 of the Qt Network library.

%files -n %{qtnetworkd}
%{_qt5_includedir}/QtNetwork
%{_qt5_libdir}/libQt%{api}Network.so
%{_qt5_libdir}/libQt%{api}Network.prl
%{_qt5_libdir}/cmake/Qt%{api}Network
%{_qt5_libdir}/pkgconfig/Qt%{api}Network.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Network.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_network.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_network_private.pri

#----------------------------------------------------------------------------

%package -n %{qtopengl}
Summary:	Qt OpenGL (3D Graphics) library
Group:		System/Libraries

%description -n %{qtopengl}
Qt OpenGL (3D Graphics) library.

%files -n %{qtopengl}
%{_qt5_libdir}/libQt%{api}OpenGL.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}OpenGL.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtopengld}
Summary:	Development files for version 5 of the Qt OpenGL library
Group:		Development/KDE and Qt
Requires:	%{qtopengl} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtopengld}
Development files for version 5 of the Qt OpenGL library.

%files -n %{qtopengld}
%{_qt5_includedir}/QtOpenGL
%{_qt5_includedir}/QtOpenGLExtensions
%{_qt5_libdir}/libQt%{api}OpenGL.so
%{_qt5_libdir}/libQt%{api}OpenGL.prl
%{_qt5_libdir}/libQt%{api}OpenGLExtensions.a
%{_qt5_libdir}/libQt%{api}OpenGLExtensions.prl
%{_qt5_libdir}/cmake/Qt%{api}OpenGL
%{_qt5_libdir}/cmake/Qt%{api}OpenGLExtensions
%{_qt5_libdir}/pkgconfig/Qt%{api}OpenGL.pc
%{_qt5_libdir}/pkgconfig/Qt%{api}OpenGLExtensions.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}OpenGL.pc
%{_libdir}/pkgconfig/Qt%{api}OpenGLExtensions.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_opengl.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_opengl_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_openglextensions.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_openglextensions_private.pri

#----------------------------------------------------------------------------

%package -n %{qtprintsupport}
Summary:	Qt printing library
Group:		System/Libraries

%description -n %{qtprintsupport}
Qt printing library.

%files -n %{qtprintsupport}
%{_qt5_libdir}/libQt%{api}PrintSupport.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}PrintSupport.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtprintsupportd}
Summary:	Development files for version 5 of the Qt PrintSupport library
Group:		Development/KDE and Qt
Requires:	%{qtprintsupport} = %{EVRD}
Requires:	qmake%{api}
Requires:	cups-devel

%description -n %{qtprintsupportd}
Development files for version 5 of the Qt PrintSupport library.

%files -n %{qtprintsupportd}
%{_qt5_includedir}/QtPrintSupport
%{_qt5_libdir}/libQt%{api}PrintSupport.so
%{_qt5_libdir}/libQt%{api}PrintSupport.prl
%{_qt5_libdir}/cmake/Qt%{api}PrintSupport
%{_qt5_libdir}/pkgconfig/Qt%{api}PrintSupport.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}PrintSupport.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_printsupport.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_printsupport_private.pri

#----------------------------------------------------------------------------

%package -n %{qtsql}
Summary:	Qt SQL library
Group:		System/Libraries

%description -n %{qtsql}
Qt SQL library.

%files -n %{qtsql}
%{_qt5_libdir}/libQt%{api}Sql.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Sql.so.%{major}*
%endif
%dir %{_qt5_plugindir}/sqldrivers

#----------------------------------------------------------------------------

%package -n %{qtsqld}
Summary:	Development files for version 5 of the Qt SQL library
Group:		Development/KDE and Qt
Requires:	%{qtsql} = %{EVRD}
Requires:	qmake%{api}
# We need all the QtSql plugins because the plugin related cmake files in
# {_qt5_libdir}/cmake/Qt{api}Sql cause fatal errors if the plugins aren't
# installed.
Requires:	%{qtsql}-mysql = %{EVRD}
Requires:	%{qtsql}-odbc = %{EVRD}
Requires:	%{qtsql}-postgresql = %{EVRD}
Requires:	%{qtsql}-sqlite = %{EVRD}

%description -n %{qtsqld}
Development files for version 5 of the Qt SQL library.

%files -n %{qtsqld}
%{_qt5_includedir}/QtSql
%{_qt5_libdir}/libQt%{api}Sql.so
%{_qt5_libdir}/libQt%{api}Sql.prl
%{_qt5_libdir}/cmake/Qt%{api}Sql
%{_qt5_libdir}/pkgconfig/Qt%{api}Sql.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Sql.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_sql.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_sql_private.pri

#----------------------------------------------------------------------------

%package -n %{qtsql}-mysql
Summary:	MySQL support for the Qt SQL library v5
Group:		System/Libraries
Requires:	%{qtsql} = %{EVRD}
Provides:	%{oname}-database-plugin-mysql = %{EVRD}
BuildRequires:	mysql-devel

%description -n %{qtsql}-mysql
MySQL support for the Qt SQL library v5.

%files -n %{qtsql}-mysql
%{_qt5_plugindir}/sqldrivers/libqsqlmysql.so

#----------------------------------------------------------------------------

%package -n %{qtsql}-odbc
Summary:	ODBC support for the Qt SQL library v5
Group:		System/Libraries
Requires:	%{qtsql} = %{EVRD}
Provides:	%{oname}-database-plugin-odbc = %{EVRD}
BuildRequires:	pkgconfig(libiodbc)
BuildRequires:	unixODBC-devel

%description -n %{qtsql}-odbc
ODBC support for the Qt SQL library v5.

%files -n %{qtsql}-odbc
%{_qt5_plugindir}/sqldrivers/libqsqlodbc.so

#----------------------------------------------------------------------------

%package -n %{qtsql}-postgresql
Summary:	PostgreSQL support for the Qt SQL library v5
Group:		System/Libraries
Requires:	%{qtsql} = %{EVRD}
Provides:	%{oname}-database-plugin-postgresql = %{EVRD}
BuildRequires:	postgresql-devel >= 9.0

%description -n %{qtsql}-postgresql
PostgreSQL support for the Qt SQL library v5.

%files -n %{qtsql}-postgresql
%{_qt5_plugindir}/sqldrivers/libqsqlpsql.so

#----------------------------------------------------------------------------

%package -n %{qtsql}-sqlite
Summary:	SQLite 3.x support for the Qt SQL library v5
Group:		System/Libraries
Requires:	%{qtsql} = %{EVRD}
Provides:	%{oname}-database-plugin-sqlite = %{EVRD}
BuildRequires:	pkgconfig(sqlite3)

%description -n %{qtsql}-sqlite
SQLite 3.x support for the Qt SQL library v5.

%files -n %{qtsql}-sqlite
%{_qt5_plugindir}/sqldrivers/libqsqlite.so

#----------------------------------------------------------------------------

%package -n %{qttest}
Summary:	Qt unit test library
Group:		System/Libraries

%description -n %{qttest}
Qt unit test library.

%files -n %{qttest}
%{_qt5_libdir}/libQt%{api}Test.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Test.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qttestd}
Summary:	Development files for version 5 of the Qt Test library
Group:		Development/KDE and Qt
Requires:	%{qttest} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qttestd}
Development files for version 5 of the Qt Test library.

%files -n %{qttestd}
%{_qt5_includedir}/QtTest
%{_qt5_libdir}/libQt%{api}Test.so
%{_qt5_libdir}/libQt%{api}Test.prl
%{_qt5_libdir}/cmake/Qt%{api}Test
%{_qt5_libdir}/pkgconfig/Qt%{api}Test.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Test.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_testlib.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_testlib_private.pri

#----------------------------------------------------------------------------

%package -n %{qtwidgets}
Summary:	Qt Widget library
Group:		System/Libraries

%description -n %{qtwidgets}
Qt Widget library.

%files -n %{qtwidgets}
%{_qt5_libdir}/libQt%{api}Widgets.so.%{major}*
%{_libdir}/metatypes/qt5widgets_metatypes.json
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Widgets.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtwidgetsd}
Summary:	Development files for version 5 of the Qt Widgets library
Group:		Development/KDE and Qt
Requires:	%{qtwidgets} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwidgetsd}
Development files for version 5 of the Qt Widgets library.

%files -n %{qtwidgetsd}
%{_qt5_includedir}/QtWidgets
%{_qt5_libdir}/libQt%{api}Widgets.so
%{_qt5_libdir}/libQt%{api}Widgets.prl
%{_qt5_libdir}/cmake/Qt%{api}Widgets
%{_qt5_libdir}/pkgconfig/Qt%{api}Widgets.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Widgets.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_widgets.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_widgets_private.pri

#----------------------------------------------------------------------------

%package -n %{qtxcbqpa}
Summary:	Qt XCB QPA library
Group:		System/Libraries
Requires:	qt5-xcb-integration-plugin-default = %{EVRD}
# Suggest all integration plugins
Recommends:	qt5-xcb-integration-plugin-egl = %{EVRD}
Recommends:	qt5-xcb-integration-plugin-glx = %{EVRD}

%description -n %{qtxcbqpa}
Qt XCB QPA library.

%files -n %{qtxcbqpa}
%{_qt5_libdir}/libQt%{api}XcbQpa.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}XcbQpa.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtxcbqpa}-egl
Summary:	EGL support for the Qt XCB QPA library v5
Group:		System/Libraries
Requires:	%{qtxcbqpa} = %{EVRD}
Provides:	qt5-xcb-integration-plugin = %{EVRD}
Provides:	qt5-xcb-integration-plugin-egl = %{EVRD}

%description -n %{qtxcbqpa}-egl
EGL support for the Qt XCB QPA library v5.

%files -n %{qtxcbqpa}-egl
%{_qt5_plugindir}/xcbglintegrations/libqxcb-egl-integration.so

#----------------------------------------------------------------------------

%package -n %{qtxcbqpa}-glx
Summary:	GLX support for the Qt XCB QPA library v5
Group:		System/Libraries
Requires:	%{qtxcbqpa} = %{EVRD}
Provides:	qt5-xcb-integration-plugin = %{EVRD}
Provides:	qt5-xcb-integration-plugin-default = %{EVRD}
Provides:	qt5-xcb-integration-plugin-glx = %{EVRD}

%description -n %{qtxcbqpa}-glx
GLX support for the Qt XCB QPA library v5.

%files -n %{qtxcbqpa}-glx
%{_qt5_plugindir}/xcbglintegrations/libqxcb-glx-integration.so

#----------------------------------------------------------------------------

%package -n %{qtxml}
Summary:	Qt XML library
Group:		System/Libraries

%description -n %{qtxml}
Qt XML library.

%files -n %{qtxml}
%{_qt5_libdir}/libQt%{api}Xml.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Xml.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtxmld}
Summary:	Development files for version 5 of the Qt XML library
Group:		Development/KDE and Qt
Requires:	%{qtxml} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtxmld}
Development files for version 5 of the Qt XML library.

%files -n %{qtxmld}
%{_qt5_includedir}/QtXml
%{_qt5_libdir}/libQt%{api}Xml.so
%{_qt5_libdir}/libQt%{api}Xml.prl
%{_qt5_libdir}/cmake/Qt%{api}Xml
%{_qt5_libdir}/pkgconfig/Qt%{api}Xml.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Xml.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_xml.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_xml_private.pri

#----------------------------------------------------------------------------

%package -n %{oname}-devel
Summary:	Meta-package for installing all Qt 5 development files
Group:		Development/KDE and Qt
Provides:       %{name}-devel = %{EVRD}
Requires:	%{qtbootstrapd} = %{EVRD}
Requires:	%{qtconcurrentd} = %{EVRD}
Requires:	%{qtcored} = %{EVRD}
Requires:	%{qtdbusd} = %{EVRD}
Requires:	%{qtguid} = %{EVRD}
Requires:	%{qtnetworkd} = %{EVRD}
Requires:	%{qtopengld} = %{EVRD}
Requires:	%{qtprintsupportd} = %{EVRD}
Requires:	%{qtsqld} = %{EVRD}
Requires:	%{qttestd} = %{EVRD}
Requires:	%{qtwidgetsd} = %{EVRD}
Requires:	%{qtxmld} = %{EVRD}
Requires:	qmake%{api} = %{EVRD}
Requires:	qlalr%{api} = %{EVRD}

%description -n %{oname}-devel
Meta-package for installing all Qt 5 development files.

%files -n %{oname}-devel
# Intentionally empty, we just pull in dependencies

#----------------------------------------------------------------------------
# qt tools etc
#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qmake.qch
%{_qt5_docdir}/qtconcurrent.qch
%{_qt5_docdir}/qtcore.qch
%{_qt5_docdir}/qtdbus.qch
%{_qt5_docdir}/qtgui.qch
%{_qt5_docdir}/qtnetwork.qch
%{_qt5_docdir}/qtopengl.qch
%{_qt5_docdir}/qtplatformheaders.qch
%{_qt5_docdir}/qtprintsupport.qch
%{_qt5_docdir}/qtsql.qch
%{_qt5_docdir}/qttestlib.qch
%{_qt5_docdir}/qtwidgets.qch
%{_qt5_docdir}/qtxml.qch
%{_qt5_docdir}/qmake/
%{_qt5_docdir}/qtconcurrent/
%{_qt5_docdir}/qtcore/
%{_qt5_docdir}/qtdbus/
%{_qt5_docdir}/qtgui/
%{_qt5_docdir}/qtnetwork/
%{_qt5_docdir}/qtopengl/
%{_qt5_docdir}/qtplatformheaders/
%{_qt5_docdir}/qtprintsupport/
%{_qt5_docdir}/qtsql/
%{_qt5_docdir}/qttestlib/
%{_qt5_docdir}/qtwidgets/
%{_qt5_docdir}/qtxml/
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/corelib/
%{_qt5_exampledir}/dbus/
%{_qt5_exampledir}/gui/
%{_qt5_exampledir}/network/
%{_qt5_exampledir}/opengl/
%{_qt5_exampledir}/qpa/
%{_qt5_exampledir}/qtconcurrent/
%{_qt5_exampledir}/qtestlib/
%{_qt5_exampledir}/sql/
%{_qt5_exampledir}/vulkan/
%{_qt5_exampledir}/widgets/
%{_qt5_exampledir}/xml/
%{_qt5_exampledir}/examples.pro
%{_qt5_exampledir}/README

#----------------------------------------------------------------------------

%package -n %{oname}-platformtheme-xdgdesktopportal
Summary:	XDG Desktop Portal platform theme for Qt 5
Group:		Graphical desktop/KDE
Requires:	%{qtgui} = %{EVRD}

%description -n %{oname}-platformtheme-xdgdesktopportal
This plugin adds desktop theme integration for Flatpak and Snap applications.

%files -n %{oname}-platformtheme-xdgdesktopportal
%{_qt5_plugindir}/platformthemes/libqxdgdesktopportal.so

#----------------------------------------------------------------------------

%package -n %{oname}-platformtheme-gtk3
Summary:	GTK 3.x platform theme for Qt 5
Group:		Graphical desktop/KDE
Requires:	%{qtgui} = %{EVRD}
BuildRequires:	pkgconfig(gtk+-3.0)

%description -n %{oname}-platformtheme-gtk3
GTK 3.x platform theme for Qt 5. This plugin allows Qt to render
controls using GTK 3.x themes - making it integrate better with GTK
based desktops.

%files -n %{oname}-platformtheme-gtk3
%{_qt5_plugindir}/platformthemes/libqgtk3.so

#----------------------------------------------------------------------------

%package -n qmake%{api}
Summary:	Makefile generation system for Qt 5
Group:		Development/KDE and Qt
Requires:	qt5-macros

%description -n qmake%{api}
Makefile generation system for Qt 5.

%files -n qmake%{api}
%{_bindir}/qmake-qt%{api}
%{_qt5_bindir}/qmake
%{_qt5_prefix}/mkspecs/
%exclude %{_qt5_prefix}/mkspecs/modules/

#----------------------------------------------------------------------------

%package -n qlalr%{api}
Summary:	Qt LALR parser generator
Group:		Development/KDE and Qt
Provides:	qlalr = %{EVRD}

%description -n qlalr%{api}
Qt LALR parser generator.

%files -n qlalr%{api}
%{_qt5_bindir}/qlalr

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}
%ifarch %{e2k}
# apply such patch only on ELBRUS
patch -p1 < %{SOURCE3000}
%endif
bin/syncqt.pl -version %{version}

# respect cflags
sed -i -e '/^CPPFLAGS\s*=/ s/-g //' qmake/Makefile.unix
sed -i -e "s|^\(QMAKE_LFLAGS_RELEASE.*\)|\1 %{ldflags}|" mkspecs/common/g++-unix.conf

OPTFLAGS="%{optflags}"
%ifarch %{arm}
OPTFLAGS="`echo ${OPTFLAGS} |sed -e 's,-mfpu=neon ,-mfpu=neon-vfpv4 ,g;s,-mfpu=neon$,-mfpu=neon-vfpv4,'`"
%endif
sed -i -e "s|-O2|${OPTFLAGS}|g" mkspecs/common/gcc-base.conf
sed -i -e "s|-O3|${OPTFLAGS}|g" mkspecs/common/gcc-base.conf

%if !%{without clang}
sed -i -e "s|gcc-nm|llvm-nm|g" mkspecs/common/clang.conf
# drop flags that clang doesn't recognize
sed -i -e "s|-fvar-tracking-assignments||g" mkspecs/common/gcc-base.conf
sed -i -e "s|-frecord-gcc-switches||g" mkspecs/common/gcc-base.conf
sed -i -e "s|-Wp,-D_FORTIFY_SOURCE=2||g" mkspecs/common/gcc-base.conf
# Make sure we have -flto in the linker flags if we have it in the compiler
# flags...
cat >>mkspecs/common/clang.conf <<'EOF'
QMAKE_LFLAGS += $$QMAKE_CXXFLAGS
QMAKE_LFLAGS_RELEASE += $$QMAKE_CXXFLAGS_RELEASE
QMAKE_LFLAGS_DEBUG += $$QMAKE_CXXFLAGS_DEBUG
EOF
cat >>mkspecs/common/g++-unix.conf <<'EOF'
QMAKE_LFLAGS += $$QMAKE_CXXFLAGS
QMAKE_LFLAGS_RELEASE += $$QMAKE_CXXFLAGS_RELEASE
QMAKE_LFLAGS_DEBUG += $$QMAKE_CXXFLAGS_DEBUG
EOF
%endif
# drop weird X11R6 lib from path in *.pc files
sed -i 's!X11R6/!!g' mkspecs/linux-g++*/qmake.conf
# There's a bogus /lib and /usr/lib hardcode in configure...
%if "%{_lib}" != "lib"
sed -i -e 's,/lib\\,/%{_lib}\\,g' configure
%endif
# Pass CXXFLAGS to CXX even while linking -- for LTO
sed -i -e 's,\$(CXX) -o,\$(CXX) \$(CXXFLAGS) -o,' qmake/Makefile.unix
# move some bundled libs to ensure they're not accidentally used
pushd src/3rdparty
mkdir UNUSED
# FIXME
mv freetype libjpeg libpng zlib xcb sqlite UNUSED/
popd

%build
%set_build_flags
./configure \
	-prefix %{_qt5_prefix} \
	-bindir %{_qt5_bindir} \
	-libdir %{_qt5_libdir} \
	-datadir %{_qt5_datadir} \
	-docdir %{_qt5_docdir} \
	-headerdir %{_qt5_includedir} \
	-plugindir %{_qt5_plugindir} \
	-importdir %{_qt5_importdir} \
	-translationdir %{_qt5_translationsdir} \
	-sysconfdir %{_qt5_sysconfdir} \
	-examplesdir %{_qt5_exampledir} \
	-testsdir %{_qt5_testsdir} \
%if %{without clang}
%ifarch %{x86_64} aarch64
	-platform linux-g++-64 \
%endif
%ifarch %{ix86}
	-platform linux-g++-32 \
%endif
%ifarch %{armx} %{e2k}
	-platform linux-g++ \
%endif
%ifarch %{e2k}
	-no-sse4.2 -no-avx -no-avx2 \
%endif
%else
	-platform linux-clang \
%endif
	-confirm-license \
	-release \
	-opensource \
	-shared \
	-no-use-gold-linker \
	-reduce-exports \
    -no-feature-relocatable \
	-no-reduce-relocations \
	-no-separate-debug-info \
	-no-strip \
	-no-sql-db2 \
	-no-sql-ibase \
	-plugin-sql-mysql \
	-no-sql-oci \
	-plugin-sql-odbc \
	-plugin-sql-psql \
	-plugin-sql-sqlite \
	-no-sql-sqlite2 \
	-no-sql-tds \
	-system-libpng \
	-system-libjpeg \
	-system-harfbuzz \
	-system-freetype  \
	-system-doubleconversion \
    -zstd \
	-system-pcre \
	-system-proxies \
	-system-sqlite \
	-system-zlib \
	-ssl \
	-sctp \
	-openssl-linked \
	-optimized-qmake \
	-cups \
	-icu \
%ifnarch %{e2k}
	-pch \
%endif
	-dbus-linked \
	-xcb \
	-xcb-xlib \
	-no-bundled-xcb-xinput \
%if %{with directfb}
	-directfb \
%endif
%ifarch %{armx}
	-no-sse2 \
	-no-sse3 \
	-no-ssse3 \
	-no-sse4.1 \
	-no-sse4.2 \
	-no-avx \
	-no-avx2 \
%endif
	-accessibility \
	-fontconfig \
	-libudev \
	-evdev \
	-mtdev \
	-journald \
	-gnumake \
	-pkg-config \
    -sm \
    -gif \
    -ico \
    -c++std c++17 \
    -xkbcommon \
    -opengl desktop -egl -eglfs -gbm -kms \
	-glib \
%if "%{_qt5_libdir}" == "%{_libdir}"
	-no-rpath \
%endif
	-I %{_includedir}/iodbc \
	-I %{_includedir}/mysql

%make_build STRIP=/bin/true || make STRIP=/bin/true

%if %{with docs}
%make_build docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_docs INSTALL_ROOT=%{buildroot}
%endif

# Installed, but not useful
rm -f %{buildroot}%{_qt5_bindir}/fixqt4headers.pl
# Probably not useful outside of Qt source tree?
rm -f %{buildroot}%{_qt5_bindir}/qtmodule-configtests
# Let's not ship -devel files for private libraries... At least not until
# applications teach us otherwise
rm -f %{buildroot}%{_qt5_libdir}/libQt%{api}EglDeviceIntegration.so %{buildroot}%{_qt5_libdir}/libQt%{api}EglDeviceIntegration.prl %{buildroot}%{_qt5_libdir}/pkgconfig/Qt%{api}EglDeviceIntegration.pc
rm -f %{buildroot}%{_qt5_libdir}/libQt%{api}XcbQpa.so %{buildroot}%{_qt5_libdir}/libQt%{api}XcbQpa.prl %{buildroot}%{_qt5_libdir}/pkgconfig/Qt%{api}XcbQpa.pc
rm -rf %{buildroot}%{_qt5_libdir}/cmake/Qt%{api}XcbQpa
# Let's make life easier for packagers
mkdir -p %{buildroot}%{_bindir}
for i in qmake moc uic rcc qdbuscpp2xml qdbusxml2cpp; do
	ln -s ../%{_lib}/qt%{api}/bin/$i %{buildroot}%{_bindir}/$i-qt%{api}
done
mkdir -p %{buildroot}%{_qt5_datadir}
install -Dpm 644 %{SOURCE1} %{buildroot}%{_qt5_datadir}/qtlogging.ini

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

mkdir -p %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
install -p -m755 -D %{SOURCE2} %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/10-qt5-check-opengl2.sh

# Fix some wrong permissions
find %{buildroot} -type f -perm -0755 -name "*.png" |xargs --no-run-if-empty chmod 0644
find %{buildroot} -type f -perm -0755 -name "*.svg" |xargs --no-run-if-empty chmod 0644
find %{buildroot} -type f -perm -0755 -name "*.jpg" |xargs --no-run-if-empty chmod 0644
find %{buildroot} -type f -perm -0755 -name "*.xml" |xargs --no-run-if-empty chmod 0644
find %{buildroot} -type f -perm -0755 -name "*.xsl" |xargs --no-run-if-empty chmod 0644
find %{buildroot} -type f -perm -0755 -name "*.php" |xargs --no-run-if-empty chmod 0644
find %{buildroot} -type f -perm -0755 -name "*.html" |xargs --no-run-if-empty chmod 0644
find %{buildroot} -type f -perm -0755 -name "*.js" |xargs --no-run-if-empty chmod 0644
find %{buildroot} -type f -perm -0755 -name "*.plist.app" |xargs --no-run-if-empty chmod 0644

# Workaround for
# *** ERROR: same build ID in nonidentical files!
#        /usr/lib/qt5/bin/qdbuscpp2xml
#   and  /usr/lib/qt5/bin/moc
# ...
# while generating debug info
find %{buildroot} -type f -perm -0755 |grep -vE '\.(so|qml|sh|pl|py|ttf|eot|woff)' |xargs %__strip --strip-unneeded

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16813 |21mr|qt5-qtcanvas3d-5.12.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api %(echo %{version} |cut -d. -f1)
%define major %api
%define oname qt5

%define module qtcanvas3d

%define qmlqtcanvas3d %mklibname qt5-qtcanvas3d-qml

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.12.10
Release:	5
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://github.com/qt/qtcanvas3d/archive/v%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5OpenGL) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qmlqtcanvas3d}
Summary:	QML plugin for Qt 5 Canvas 3D module
Group:		System/Libraries
Provides:	qt5-qtcanvas3d-qml = %{EVRD}

%description -n %{qmlqtcanvas3d}
QML plugin for Qt 5 Canvas 3D module.

%files -n %{qmlqtcanvas3d}
%{_qt5_prefix}/qml/QtCanvas3D/

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtcanvas3d.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/canvas3d/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16814 |21mr|qt5-qtcharts-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5

%define module qtcharts

%define qtcharts %mklibname qt%{api}charts %{major}
%define qtchartsd %mklibname qt%{api}charts -d

%bcond_with docs

Summary:	Qt5 Charts component
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	GPLv3+
Group:		Development/KDE and Qt
Url:		https://www.qt.io
Source0:	http://download.qt.io/official_releases/qt/%(echo %{version} |cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gl)

%description
Qt5 Charts module provides a set of easy to use chart components.
It uses the Qt Graphics View Framework, therefore charts can be easily
integrated to modern user interfaces. Qt Charts can be used as QWidgets,
QGraphicsWidget, or QML types. Users can easily create impressive graphs
by selecting one of the charts themes.

#------------------------------------------------------------------------------

%package -n %{qtcharts}
Summary:	Qt5 Charts Component Library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{qtcharts}
Qt5 Charts Component Library.

%files -n %{qtcharts}
%doc LICENSE.GPL3
%{_qt5_libdir}/libQt%{api}Charts.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Charts.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtCharts/

#------------------------------------------------------------------------------

%package -n %{qtchartsd}
Summary:	Devel files needed to build apps based on QtCharts
Group:		Development/KDE and Qt
Requires:	%{qtcharts} = %{EVRD}

%description -n %{qtchartsd}
Devel files needed to build apps based on Qt Charts.

%files -n %{qtchartsd}
%doc LICENSE.GPL3
%{_qt5_includedir}/QtCharts/
%{_qt5_libdir}/libQt%{api}Charts.so
%{_qt5_libdir}/pkgconfig/Qt%{api}Charts.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Charts.pc
%endif
%{_qt5_libdir}/cmake/Qt%{api}Charts/
%{_qt5_libdir}/*.prl
%{_qt5_prefix}/mkspecs/modules/*.pri

#------------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	QtCharts APIs and tools docs
Group:		Documentation
BuildRequires:	qttools5
# This one is required to build QCH-format documentation
# for APIs and tools in this package set
BuildRequires:	qttools5-assistant
Recommends::	qttools5-assistant
BuildArch:	noarch

%description doc
Documentation for APIs and tools in QtCharts package for
use with Qt Assistant.

%files doc
%{_qt5_docdir}/qtcharts.qch
%{_qt5_docdir}/qtcharts/
%endif

#------------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%doc LICENSE.GPL3
%{_qt5_exampledir}/charts/

#------------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make

%if %{with docs}
%make docs
%endif

%install
%makeinstall_qt

%if %{with docs}
%make install install_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16815 |21mr|qt5-qtconnectivity-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtconnectivity

%define qtbluetooth %mklibname qt%{api}bluetooth %{major}
%define qtbluetoothd %mklibname qt%{api}bluetooth -d
%define qtnfc %mklibname qt%{api}nfc %{major}
%define qtnfcd %mklibname qt%{api}nfc -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
# From KDE
Patch1001:	0001-sdpscanner-fix-potential-unwanted-truncation-for-SDP.patch
Patch1002:	0002-sdpscanner-fix-URL-processing.patch
Patch1003:	0003-SDP-scanner-encode-input-URLs-and-escape-XML-specifi.patch
Patch1004:	0004-Close-socket-descriptor-when-QBluetoothSocketBluez-i.patch
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(Qt5Concurrent) >= %{version}
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5DBus) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtbluetooth}
Summary:	Qt Bluetooth library
Group:		System/Libraries
Provides:   qtbluetooth5 = %{EVRD}

%description -n %{qtbluetooth}
Qt Bluetooth library.

%files -n %{qtbluetooth}
%{_qt5_bindir}/sdpscanner
%{_qt5_libdir}/libQt%{api}Bluetooth.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Bluetooth.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtBluetooth

#----------------------------------------------------------------------------

%package -n %{qtbluetoothd}
Summary:	Development files for version 5 of the QtBluetooth library
Group:		Development/KDE and Qt
Requires:	%{qtbluetooth} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtbluetoothd}
Development files for version 5 of the QtBluetooth library.

%files -n %{qtbluetoothd}
%{_qt5_includedir}/QtBluetooth
%{_qt5_libdir}/libQt%{api}Bluetooth.so
%{_qt5_libdir}/libQt%{api}Bluetooth.prl
%{_qt5_libdir}/cmake/Qt%{api}Bluetooth
%{_qt5_libdir}/pkgconfig/Qt%{api}Bluetooth.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Bluetooth.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_bluetooth.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_bluetooth_private.pri

#----------------------------------------------------------------------------

%package -n %{qtnfc}
Summary:	Qt NFC library
Group:		System/Libraries

%description -n %{qtnfc}
Qt NFC library.

NFC is an extremely short-range (less than 20 centimeters) wireless technology
and has a maximum transfer rate of 424 kbit/s. NFC is ideal for transferring
small packets of data when two devices are touched together.

%files -n %{qtnfc}
%{_qt5_libdir}/libQt%{api}Nfc.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Nfc.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtNfc

#----------------------------------------------------------------------------

%package -n %{qtnfcd}
Summary:	Development files for version 5 of the QtNfc library
Group:		Development/KDE and Qt
Requires:	%{qtnfc} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtnfcd}
Development files for version 5 of the QtNfc library.

%files -n %{qtnfcd}
%{_qt5_includedir}/QtNfc
%{_qt5_libdir}/libQt%{api}Nfc.so
%{_qt5_libdir}/libQt%{api}Nfc.prl
%{_qt5_libdir}/cmake/Qt%{api}Nfc
%{_qt5_libdir}/pkgconfig/Qt%{api}Nfc.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Nfc.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_nfc.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_nfc_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtbluetooth.qch
%{_qt5_docdir}/qtnfc.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/bluetooth/
%{_qt5_exampledir}/nfc/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16816 |21mr|qt5-qtdatavis3d-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname qt5datavis3d %{major}
%define devname %mklibname qt5datavis3d -d
%define module	qtdatavis3d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Name: qt5-qtdatavis3d
Version:	5.15.10
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Release:	1
Summary: Qt 3D data visualization library
URL: https://github.com/qtproject/qtnetworkauth
License: LGPL-2.1-with-Qt-Company-Qt-exception-1.1 or LGPL-3.0-with-Qt-Company-Qt-exception-1.1
Group: System/Libraries
BuildRequires: qmake5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Widgets)
BuildRequires: pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif
# For the Provides: generator
BuildRequires: cmake >= 3.11.0-1

%description
Qt 3D data visualization library.

%package -n %{libname}
Summary: Qt library for 3D data visualization
Group: System/Libraries

%description -n %{libname}
Qt library for 3D data visualization.

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%package examples
Summary: Example code for the %{name} library
Group: Development/C
Requires: %{devname} = %{EVRD}
BuildRequires: pkgconfig(Qt5Widgets)

%description examples
Example code for the %{name} library.

%prep
%autosetup -n %{module}-everywhere-src-%{version} -p1

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}
find "%{buildroot}" -type f -name '*.prl' -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;

%files -n %{libname}
%{_libdir}/*.so.%{major}*
%{_libdir}/qt5/qml/QtDataVisualization

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/Qt5DataVisualization
%{_libdir}/qt5/mkspecs/modules/*.pri
%{_libdir}/*.prl

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtdatavis3d.qch
%{_qt5_docdir}/qtdatavisualization
%endif

#----------------------------------------------------------------------------

%files examples
%{_libdir}/qt5/examples/datavisualization

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16817 |21mr|qt5-qtdeclarative-5.15.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtdeclarative

%define qtqml %mklibname qt%{api}qml %{major}
%define qtqmld %mklibname qt%{api}qml -d
%define qtqmlmodels %mklibname qt%{api}qmlmodels %{major}
%define qtqmlmodelsd %mklibname qt%{api}qmlmodels -d
%define qtqmlworkerscript %mklibname qt%{api}qmlworkerscript %{major}
%define qtqmlworkerscriptd %mklibname qt%{api}qmlworkerscript -d
%define qtquick %mklibname qt%{api}quick %{major}
%define qtquickd %mklibname qt%{api}quick -d
%define qtquickparticles %mklibname qt%{api}quickparticles %{major}
%define qtquickparticlesd %mklibname qt%{api}quickparticles -d
%define qtquickshapes %mklibname qt%{api}quickshapes %{major}
%define qtquickshapesd %mklibname qt%{api}quickshapes -d
%define qtquicktest %mklibname qt%{api}quicktest %{major}
%define qtquicktestd %mklibname qt%{api}quicktest -d
%define qtquickwidgets %mklibname qt%{api}quickwidgets %{major}
%define qtquickwidgetsd %mklibname qt%{api}quickwidgets -d

%define qmlqtqml %mklibname qt5-qtqml-qml
%define qmlqtquick %mklibname qt5-qtquick-qml

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

# unresolvable...
%global __requires_exclude ^qml\(.*\.test\..*\).*$

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	4
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		https://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
Patch1:		QTBUG-49037-masm.patch
Patch2:		qt5-qtdeclarative-buildfixes.patch
Patch3:		qt5-qtdeclarative-gcc11.patch
Patch4:		qtdeclarative-5.14.2-QQuickItemView-fix-maxXY-extent.patch
Patch5:		qtdeclarative-python3.patch
Patch6:     riscv-atomic.patch
Patch7:		qv4proxy.cpp.patch
Patch8:		qv4runtime.cpp.patch
# From: https://codereview.qt-project.org/c/qt/qtdeclarative/+/466808
# Cf. https://bugzilla.redhat.com/show_bug.cgi?id=2177696
Patch102: qt-QTBUG-111935-fix-V4-jit.patch
# from KDE https://invent.kde.org/qt/qt/qtdeclarative -b kde/5.15
Patch1001:	0001-Remove-unused-QPointer-QQuickPointerMask.patch
Patch1002:	0002-QQmlDelegateModel-Refresh-the-view-when-a-column-is-.patch
Patch1003:	0003-Fix-TapHandler-so-that-it-actually-registers-a-tap.patch
Patch1004:	0004-Revert-Fix-TapHandler-so-that-it-actually-registers-.patch
Patch1005:	0005-Make-sure-QQuickWidget-and-its-offscreen-window-s-sc.patch
Patch1006:	0006-QQuickItem-Guard-against-cycles-in-nextPrevItemInTab.patch
Patch1007:	0007-Don-t-convert-QByteArray-in-startDrag.patch
Patch1008:	0008-Fix-build-after-95290f66b806a307b8da1f72f8fc2c698019.patch
Patch1009:	0009-Implement-accessibility-for-QQuickWidget.patch
Patch1010:	0010-Send-ObjectShow-event-for-visible-components-after-i.patch
Patch1011:	0011-QQuickItem-avoid-emitting-signals-during-destruction.patch
Patch1012:	0012-a11y-track-item-enabled-state.patch
Patch1013:	0013-Make-QaccessibleQuickWidget-private-API.patch
Patch1014:	0014-Qml-Don-t-crash-when-as-casting-to-type-with-errors.patch
Patch1015:	0015-Fix-missing-glyphs-when-using-NativeRendering.patch
Patch1016:	0016-Revert-Fix-missing-glyphs-when-using-NativeRendering.patch
Patch1017:	0017-QQmlImportDatabase-Make-sure-the-newly-added-import-.patch
Patch1018:	0018-QQuickState-when-handle-QJSValue-properties-correctl.patch
Patch1019:	0019-Models-Avoid-crashes-when-deleting-cache-items.patch
Patch1020:	0020-qv4function-Fix-crash-due-to-reference-being-invalid.patch
Patch1021:	0021-Quick-Animations-Fix-crash.patch
Patch1022:	0022-Prevent-crash-when-destroying-asynchronous-Loader.patch
Patch1023:	0023-QQuickItem-Fix-effective-visibility-for-items-withou.patch
Patch1024:	0024-Revert-QQuickItem-Fix-effective-visibility-for-items.patch
Patch1025:	0025-Accessibility-respect-value-in-attached-Accessible-i.patch
Patch1026:	0026-qml-tool-Use-QCommandLineParser-process-rather-than-.patch

BuildRequires:	pkgconfig(Qt5Core) = %{version}
BuildRequires:	qmake5 = %{version}
BuildRequires:	pkgconfig(Qt5Network) = %{version}
BuildRequires:	pkgconfig(Qt5Sql) = %{version}
BuildRequires:	pkgconfig(Qt5Gui) = %{version}
BuildRequires:	pkgconfig(Qt5Test) = %{version}
BuildRequires:	pkgconfig(Qt5Widgets) = %{version}
BuildRequires:	pkgconfig(Qt5OpenGL) = %{version}
BuildRequires:	pkgconfig(Qt5Xml) = %{version}
BuildRequires:	ruby
BuildRequires:	byacc
BuildRequires:	bison
# For code generator in yarr
BuildRequires:	python
BuildRequires:	qlalr5
# For the Provides: generator
BuildRequires:	cmake >= 3.11.0-1
# Not currently picked up by the dep generator, maybe
# there's some internal hardcodes
Provides:	qml(QtQuick) = 2.14
Provides:	qml(QtQuick.tooling) = 1.2
Provides:	qml(QtQuick.Window) = 2.1
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

# Be a meta-package for compatibility with Fedora/RH
# and proprietary packages like TeamViewer;
# Fedora does not split packages, just pull all libraries.
Requires:	%{qtqml} = %{EVRD}
Requires:	%{qtqmlmodels} = %{EVRD}
Requires:	%{qtqmlworkerscript} = %{EVRD}
Requires:	%{qtquick} = %{EVRD}
Requires:	%{qtquickparticles} = %{EVRD}
Requires:	%{qtquickshapes} = %{EVRD}
Requires:	%{qtquicktest} = %{EVRD}
Requires:	%{qtquickwidgets} = %{EVRD}

%description
Version 5 of the Qt toolkit (%{module} packages).

%files

#--------------------------------------------------------------------

%package -n %{qmlqtqml}
Summary:	QML plugin for Qt 5 QML module
Group:		System/Libraries
Provides:	qt5-qtqml-qml = %{EVRD}

%description -n %{qmlqtqml}
QML plugin for Qt 5 QML module.

%files -n %{qmlqtqml}
%dir %{_qt5_prefix}/qml
%dir %{_qt5_prefix}/qml/Qt
%dir %{_qt5_prefix}/qml/Qt/labs
%{_qt5_prefix}/qml/Qt/labs/animation/
%{_qt5_prefix}/qml/Qt/labs/folderlistmodel/
%{_qt5_prefix}/qml/Qt/labs/qmlmodels/
%{_qt5_prefix}/qml/Qt/labs/settings/
%{_qt5_prefix}/qml/Qt/labs/sharedimage/
%{_qt5_prefix}/qml/Qt/labs/wavefrontmesh/
%{_qt5_prefix}/qml/QtQml/

#----------------------------------------------------------------------------

%package -n %{qtqml}
Summary:	QML runtime support library
Group:		System/Libraries
Requires:	qt5-qtqml-qml = %{EVRD}
# From other packages
Recommends:	qt5-qtgraphicaleffects-qml
Recommends:	qt5-qtquickcontrols-qml
Recommends:	qt5-qtquickcontrols2-qml
Recommends:	qt5-qtdeclarative-i18n

%description -n %{qtqml}
QML runtime support library.

%files -n %{qtqml}
%{_qt5_libdir}/libQt%{api}Qml.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Qml.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtqmld}
Summary:	Development files for the Qt QML library
Group:		Development/KDE and Qt
Requires:	%{qtqml} = %{EVRD}
Requires:	qmake%{api}
Requires:	%{oname}-qml-tools

%description -n %{qtqmld}
Development files for the Qt QML library.

%files -n %{qtqmld}
%{_qt5_includedir}/QtPacketProtocol
%{_qt5_includedir}/QtQml
%{_qt5_includedir}/QtQmlDebug
%{_qt5_libdir}/libQt%{api}PacketProtocol.a
%{_qt5_libdir}/libQt%{api}PacketProtocol.prl
%{_qt5_libdir}/libQt%{api}Qml.so
%{_qt5_libdir}/libQt%{api}Qml.prl
%{_qt5_libdir}/libQt%{api}QmlDebug.a
%{_qt5_libdir}/libQt%{api}QmlDebug.prl
%{_qt5_libdir}/libQt%{api}QmlDevTools.a
%{_qt5_libdir}/libQt%{api}QmlDevTools.prl
%{_qt5_libdir}/cmake/Qt%{api}PacketProtocol
%{_qt5_libdir}/cmake/Qt%{api}Qml
%{_qt5_libdir}/cmake/Qt%{api}QmlDebug
%{_qt5_libdir}/cmake/Qt%{api}QmlDevTools
%{_qt5_libdir}/cmake/Qt%{api}QmlImportScanner
%{_qt5_libdir}/cmake/Qt%{api}QuickCompiler
%{_qt5_libdir}/pkgconfig/Qt%{api}Qml.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Qml.pc
%endif
%{_qt5_prefix}/mkspecs/features/qmlcache.prf
# qtquickcompiler feature is used to run qmlcachegen tool
%{_qt5_prefix}/mkspecs/features/qtquickcompiler.prf
%{_qt5_prefix}/mkspecs/modules/qt_lib_packetprotocol_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_qml.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_qml_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_qmldebug_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_qmldevtools_private.pri
%{_bindir}/qmlformat
%{_bindir}/qmltyperegistrar
%{_libdir}/qt5/bin/qmlformat
%{_libdir}/qt5/bin/qmltyperegistrar
%{_libdir}/metatypes/qt5qml_metatypes.json
%{_libdir}/qt5/mkspecs/features/qmltypes.prf

#----------------------------------------------------------------------------

%package -n %{qtqmlmodels}
Summary:	QML Models runtime library
Group:		System/Libraries
Requires:	qt5-qtqml-qml = %{EVRD}

%description -n %{qtqmlmodels}
QML Models runtime library.

%files -n %{qtqmlmodels}
%{_qt5_libdir}/libQt%{api}QmlModels.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}QmlModels.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtqmlmodelsd}
Summary:	Development files for the Qt QML Models library
Group:		Development/KDE and Qt
Requires:	%{qtqmlmodels} = %{EVRD}
Requires:	qmake%{api}
Requires:	%{oname}-qml-tools

%description -n %{qtqmlmodelsd}
Development files for the Qt QML Models library.

%files -n %{qtqmlmodelsd}
%{_qt5_includedir}/QtQmlModels
%{_qt5_libdir}/libQt%{api}QmlModels.so
%{_qt5_libdir}/libQt%{api}QmlModels.prl
%{_qt5_libdir}/cmake/Qt%{api}QmlModels
%{_qt5_libdir}/pkgconfig/Qt%{api}QmlModels.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}QmlModels.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_qmlmodels.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_qmlmodels_private.pri
%{_libdir}/metatypes/qt5qmlmodels_metatypes.json

#----------------------------------------------------------------------------

%package -n %{qtqmlworkerscript}
Summary:	QML Worker Script runtime library
Group:		System/Libraries
Requires:	qt5-qtqml-qml = %{EVRD}

%description -n %{qtqmlworkerscript}
QML Worker Script runtime library.

%files -n %{qtqmlworkerscript}
%{_qt5_libdir}/libQt%{api}QmlWorkerScript.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}QmlWorkerScript.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtqmlworkerscriptd}
Summary:	Development files for the Qt QML Worker Script library
Group:		Development/KDE and Qt
Requires:	%{qtqmlworkerscript} = %{EVRD}
Requires:	qmake%{api}
Requires:	%{oname}-qml-tools

%description -n %{qtqmlworkerscriptd}
Development files for the Qt QML Worker Script library.

%files -n %{qtqmlworkerscriptd}
%{_qt5_includedir}/QtQmlWorkerScript
%{_qt5_libdir}/libQt%{api}QmlWorkerScript.so
%{_qt5_libdir}/libQt%{api}QmlWorkerScript.prl
%{_qt5_libdir}/cmake/Qt%{api}QmlWorkerScript
%{_qt5_libdir}/pkgconfig/Qt%{api}QmlWorkerScript.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}QmlWorkerScript.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_qmlworkerscript.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_qmlworkerscript_private.pri
%{_libdir}/metatypes/qt5qmlworkerscript_metatypes.json

#--------------------------------------------------------------------

%package -n %{qmlqtquick}
Summary:	QML plugin for Qt 5 Quick module
Group:		System/Libraries
Provides:	qt5-qtquick-qml = %{EVRD}

%description -n %{qmlqtquick}
QML plugin for Qt 5 Quick module.

%files -n %{qmlqtquick}
%{_qt5_prefix}/qml/builtins.qmltypes
%{_qt5_prefix}/qml/QtQuick.2
%{_qt5_prefix}/qml/QtQuick

#----------------------------------------------------------------------------

%package -n %{qtquick}
Summary:	Runtime library for Qt Quick
Group:		System/Libraries
Requires:	qt5-qtquick-qml = %{EVRD}

%description -n %{qtquick}
Runtime library for Qt Quick.

%files -n %{qtquick}
%{_qt5_libdir}/libQt%{api}Quick.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Quick.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtquickd}
Summary:	Development files for Qt Quick
Group:		Development/KDE and Qt
Requires:	%{qtquick} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtquickd}
Development files for Qt Quick.

%files -n %{qtquickd}
%{_qt5_includedir}/QtQuick
%{_qt5_libdir}/libQt%{api}Quick.so
%{_qt5_libdir}/libQt%{api}Quick.prl
%{_qt5_libdir}/cmake/Qt%{api}Quick
%{_qt5_libdir}/pkgconfig/Qt%{api}Quick.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Quick.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_quick.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_quick_private.pri
%{_libdir}/metatypes/qt5quick_metatypes.json

#----------------------------------------------------------------------------

%package -n %{qtquickparticles}
Summary:	Runtime library for Qt Quick's particle engine
Group:		System/Libraries

%description -n %{qtquickparticles}
Runtime library for Qt Quick's particle engine.

%files -n %{qtquickparticles}
%{_qt5_libdir}/libQt%{api}QuickParticles.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}QuickParticles.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtquickparticlesd}
Summary:	Development files for Qt Quick's particle engine
Group:		Development/KDE and Qt
Requires:	%{qtquickparticles} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtquickparticlesd}
Development files for Qt Quick's particle engine.

%files -n %{qtquickparticlesd}
%{_qt5_includedir}/QtQuickParticles
%{_qt5_libdir}/libQt%{api}QuickParticles.so
%{_qt5_libdir}/libQt%{api}QuickParticles.prl
%{_qt5_libdir}/cmake/Qt%{api}QuickParticles
%{_qt5_prefix}/mkspecs/modules/qt_lib_quickparticles_private.pri
%{_libdir}/metatypes/qt5quickparticles_metatypes.json

#----------------------------------------------------------------------------

%package -n %{qtquickshapes}
Summary:	Qt Quick Shapes module
Group:		System/Libraries

%description -n %{qtquickshapes}
Qt Quick Shapes module.

%files -n %{qtquickshapes}
%{_qt5_libdir}/libQt%{api}QuickShapes.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}QuickShapes.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtquickshapesd}
Summary:	Development files for Qt Quick's Shapes module
Group:		Development/KDE and Qt
Requires:	%{qtquickshapes} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtquickshapesd}
Development files for Qt Quick's Shapes module.

%files -n %{qtquickshapesd}
%{_qt5_includedir}/QtQuickShapes
%{_qt5_libdir}/libQt%{api}QuickShapes.so
%{_qt5_libdir}/libQt%{api}QuickShapes.prl
%{_qt5_libdir}/cmake/Qt%{api}QuickShapes
%{_qt5_prefix}/mkspecs/modules/qt_lib_quickshapes_private.pri
%{_libdir}/metatypes/qt5quickshapes_metatypes.json

#----------------------------------------------------------------------------

%package -n %{qtquicktest}
Summary:	Qt Quick unit test module
Group:		System/Libraries

%description -n %{qtquicktest}
Qt Quick unit test module.

%files -n %{qtquicktest}
%{_qt5_libdir}/libQt%{api}QuickTest.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}QuickTest.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtTest
%{_libdir}/qt5/qml/Qt/test

#----------------------------------------------------------------------------

%package -n %{qtquicktestd}
Summary:	Development files for Qt Quick's unit test module
Group:		Development/KDE and Qt
Requires:	%{qtquicktest} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtquicktestd}
Development files for Qt Quick's unit test module.

%files -n %{qtquicktestd}
%{_qt5_includedir}/QtQuickTest
%{_qt5_libdir}/libQt%{api}QuickTest.so
%{_qt5_libdir}/libQt%{api}QuickTest.prl
%{_qt5_libdir}/cmake/Qt%{api}QuickTest
%{_qt5_libdir}/pkgconfig/Qt%{api}QuickTest.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}QuickTest.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_qmltest.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_qmltest_private.pri
%{_libdir}/metatypes/qt5quicktest_metatypes.json

#----------------------------------------------------------------------------

%package -n %{qtquickwidgets}
Summary:	Library for integrating QtQuick with traditional Qt widgets
Group:		System/Libraries

%description -n %{qtquickwidgets}
Library for integrating QtQuick with traditional Qt widgets

%files -n %{qtquickwidgets}
%{_qt5_libdir}/libQt%{api}QuickWidgets.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}QuickWidgets.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtquickwidgetsd}
Summary:	Development files for version 5 of the QtQuickWidgets library
Group:		Development/KDE and Qt
Requires:	%{qtquickwidgets} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtquickwidgetsd}
Development files for version 5 of the QtQuickWidgets library.

%files -n %{qtquickwidgetsd}
%{_qt5_includedir}/QtQuickWidgets
%{_qt5_libdir}/libQt%{api}QuickWidgets.so
%{_qt5_libdir}/libQt%{api}QuickWidgets.prl
%{_qt5_libdir}/cmake/Qt%{api}QuickWidgets
%{_qt5_libdir}/pkgconfig/Qt%{api}QuickWidgets.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}QuickWidgets.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_quickwidgets.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_quickwidgets_private.pri

#----------------------------------------------------------------------------

%package -n %{oname}-qml-tools
Summary:	QML tools for Qt 5
Group:		Development/KDE and Qt

%description -n %{oname}-qml-tools
QML tools for Qt 5.

%files -n %{oname}-qml-tools
%{_qt5_bindir}/qml
%{_qt5_bindir}/qmlcachegen
%{_qt5_bindir}/qmleasing
%{_qt5_bindir}/qmlimportscanner
%{_qt5_bindir}/qmllint
%{_qt5_bindir}/qmlmin
%{_qt5_bindir}/qmlplugindump
%{_qt5_bindir}/qmlpreview
%{_qt5_bindir}/qmlprofiler
%{_qt5_bindir}/qmlscene
%{_qt5_bindir}/qmltestrunner
%{_qt5_bindir}/qmltime
%{_qt5_plugindir}/qmltooling/libqmldbg_debugger.so
%{_qt5_plugindir}/qmltooling/libqmldbg_inspector.so
%{_qt5_plugindir}/qmltooling/libqmldbg_local.so
%{_qt5_plugindir}/qmltooling/libqmldbg_messages.so
%{_qt5_plugindir}/qmltooling/libqmldbg_native.so
%{_qt5_plugindir}/qmltooling/libqmldbg_nativedebugger.so
%{_qt5_plugindir}/qmltooling/libqmldbg_preview.so
%{_qt5_plugindir}/qmltooling/libqmldbg_profiler.so
%{_qt5_plugindir}/qmltooling/libqmldbg_quickprofiler.so
%{_qt5_plugindir}/qmltooling/libqmldbg_server.so
%{_qt5_plugindir}/qmltooling/libqmldbg_tcp.so

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/qml/
%{_qt5_exampledir}/qmltest/
%{_qt5_exampledir}/quick/

#----------------------------------------------------------------------------

%prep
%autosetup  -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make_build

%if %{with docs}
%make_build docs
%endif

%install
%make_install INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# Workaround for
# *** ERROR: same build ID in nonidentical files!
#        /usr/lib/qt5/bin/qdbuscpp2xml
#   and  /usr/lib/qt5/bin/moc
# ...
# while generating debug info
find %{buildroot} -type f -perm -0755 |grep -vE '\.(so|qml|sh|pl|ttf|eot|woff|bat)' |xargs %__strip --strip-unneeded

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

mkdir -p %{buildroot}%{_bindir}
ln -s ../%{_lib}/qt5/bin/qmlformat %{buildroot}%{_bindir}/qmlformat
ln -s ../%{_lib}/qt5/bin/qmltyperegistrar %{buildroot}%{_bindir}/qmltyperegistrar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16818 |21mr|qt5-qtdoc-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qt5
%define module qtdoc
%define debug_package %nil

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
# From KDE
Patch1001:	0001-Android-keep-only-mandatory-arguments-for-configure-.patch
Patch1002:	0002-Doc-update-some-packages-for-Linux.patch
Patch1003:	0003-Android-update-linux-package-dependencies.patch
Patch1004:	0004-Remove-unneeded-italic-decoration.patch
Patch1005:	0005-Linux-Fix-library-xcb-spelling-errors.patch
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Concurrent) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Script) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
BuildRequires:	findutils
# For the Provides: generator
BuildRequires:	cmake >= 3.11.0-1

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{oname}-doc
Summary:	Qt QCH documentation for %{oname}
Group:		Documentation
Recommends:	qt5-qtbase-doc
Recommends:	qt5-qt3d-doc
Recommends:	qt5-qtcanvas3d-doc
Recommends:	qt5-qtconnectivity-doc
Recommends:	qt5-qtgraphicaleffects-doc
Recommends:	qt5-qtlocation-doc
Recommends:	qt5-qtmultimedia-doc
Recommends:	qt5-qtquickcontrols-doc
Recommends:	qt5-qtquickcontrols2-doc
Recommends:	qt5-qtsensors-doc
Recommends:	qt5-qtsvg-doc
#Recommends:	qt5-qttools-doc
Recommends:	qt5-qtwebchannel-doc
#Recommends:	qt5-qtwebengine-doc
#Recommends:	qt5-qtwebkit-doc
Recommends:	qt5-qtwebsockets-doc
#Recommends:	qt5-qtwebview-doc

%description -n %{oname}-doc
Qt QCH documentation for %{oname}.

%files -n %{oname}-doc
%{_qt5_docdir}/qtdoc.qch
%{_qt5_docdir}/qtcmake.qch

#----------------------------------------------------------------------------

%package -n %{oname}-examples
Summary:	Example applications for %{oname}
Group:		Development/KDE and Qt
Requires:	qt5-qtbase-examples
Recommends:	qt5-qt3d-examples
Recommends:	qt5-qtcanvas3d-examples
Recommends:	qt5-qtconnectivity-examples
Recommends:	qt5-qtdeclarative-examples
Recommends:	qt5-qtlocation-examples
Recommends:	qt5-qtmultimedia-examples
#Recommends:	qt5-qtquick1-examples
Recommends:	qt5-qtquickcontrols-examples
Recommends:	qt5-qtquickcontrols2-examples
Recommends:	qt5-qtscript-examples
Recommends:	qt5-qtsensors-examples
Recommends:	qt5-qtsvg-examples
Recommends:	qt5-qttools-examples
Recommends:	qt5-qtwayland-examples
Recommends:	qt5-qtwebchannel-examples
Recommends:	qt5-qtwebengine-examples
Recommends:	qt5-qtwebsockets-examples
Recommends:	qt5-qtwebview-examples
Recommends:	qt5-qtxmlpatterns-examples

%description -n %{oname}-examples
Example applications for %{oname}.

%files -n %{oname}-examples
%{_libdir}/qt5/examples

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true
%make docs

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}
make install_qch_docs INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16819 |21mr|qt5-qtfeedback-0.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 20210927
%define libname %mklibname Qt5Feedback 0
%define devel %mklibname -d Qt5Feedback
%global qtversion %(rpm -q --qf '%{VERSION}' qmake5)

Summary:	Qt Tactile Feedback Add-on Module
Name:		qt5-qtfeedback
Version:	0.0.0
Release:	2
Group:		System/Libraries
License:	LGPLv3
Source:		https://github.com/qt/qtfeedback/archive/qtfeedback-master.tar.gz
Source:		qt5-qtfeedback.rpmlintrc
Patch0:		qtfeedback-add-evdev-plugin.patch
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	qmake5
BuildRequires:	perl

%description
Qt Tactile Feedback Add-on Module.

%files
%{_libdir}/qt5/plugins/feedback
%{_libdir}/qt5/qml/QtFeedback

#----------------------------------------------------

%package -n %{devel}
Summary:	Development files for the Qt Tactile Feedback library
Group:		Development/KDE and Qt
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devel}
Development files for the Qt Tactile Feedback library.

%files -n %{devel}
%{_includedir}/qt5/QtFeedback
%{_libdir}/cmake/Qt5Feedback
%{_libdir}/libQt5Feedback.prl
%{_libdir}/libQt5Feedback.so
%{_libdir}/pkgconfig/Qt5Feedback.pc
%{_libdir}/qt5/mkspecs/modules/qt_lib_feedback.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_feedback_private.pri

#------------------------------------------------------

%prep
%autosetup -p1 -n qtfeedback-master
perl %{_libdir}/qt5/bin/syncqt.pl -version %{qtversion}


%build
qmake-qt5
%make_build

%install
%makeinstall install INSTALL_ROOT="%{buildroot}"
# This file is bogus and breaks things by just being there
rm -f %{buildroot}%{_libdir}/cmake/Qt5Feedback/Qt5Feedback_.cmake

%dependinglibpackage Qt5Feedback 0


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16820 |21mr|qt5-qtgamepad-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname qt5gamepad %{major}
%define devname %mklibname qt5gamepad -d
%define module	qtgamepad

Summary:	Qt gamepad library
Name:		qt5-qtgamepad
Version:	5.15.10
Release:	1
License:	LGPL-2.1-with-Qt-Company-Qt-exception-1.1 or LGPL-3.0-with-Qt-Company-Qt-exception-1.1
Group:		System/Libraries
Url:		https://github.com/qtproject/qtgamepad
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	qdoc5
BuildRequires:	qmake5
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(sdl2)

%description
The Qt Gamepad module provides a Qt style API to Gamepad controllers.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary: Qt gamepad library
Group: System/Libraries

%description -n %{libname}
Qt gamepad library.

%files -n %{libname}
%doc %{_docdir}/qt5/qtgamepad
%doc %{_docdir}/qt5/qtgamepad.qch
%{_libdir}/*.so.%{major}*
%{_libdir}/qt5/qml/QtGamepad
%{_libdir}/qt5/plugins/gamepads

#----------------------------------------------------------------------------

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/Qt5Gamepad
%{_libdir}/qt5/mkspecs/modules/*.pri
%{_libdir}/*.prl

#----------------------------------------------------------------------------

%package examples
Summary: Example code for the %{name} library
Group: Development/C
Requires: %{devname} = %{EVRD}
BuildRequires: pkgconfig(Qt5Widgets)

%description examples
Example code for the %{name} library.

%files examples
%{_libdir}/qt5/examples/gamepad

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}
%qmake_qt5 *.pro

%build
%make_build
%make_build docs

%install
%make_install install_docs INSTALL_ROOT="%{buildroot}"

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16821 |21mr|qt5-qtgraphicaleffects-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtgraphicaleffects

%define qmlqtgraphicaleffects %mklibname qt5-qtgraphicaleffects-qml

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#--------------------------------------------------------------------

%package -n %{qmlqtgraphicaleffects}
Summary:	QML plugin for Qt 5 Graphical Effects module
Group:		System/Libraries
Provides:	qt5-qtgraphicaleffects-qml = %{EVRD}

%description -n %{qmlqtgraphicaleffects}
QML plugin for Qt 5 Graphical Effects module.

%files -n %{qmlqtgraphicaleffects}
%{_qt5_prefix}/qml/QtGraphicalEffects/

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtgraphicaleffects.qch
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16822 |21mr|qt5-qtimageformats-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define oname qt5

%define module qtimageformats

%define qtimageformats %mklibname qt%{api}imageformats-plugins
%define qtimageformatsd %mklibname qt%{api}imageformats -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
# From KDE
Patch1001:	0001-Add-some-basic-checking-against-corrupt-input.patch
Patch1002:	0002-Check-earlier-to-avoid-sanitzer-warnings.patch
Patch1003:	0003-jp2-use-correct-buffer_size-for-jas_stream_memopen.patch
Patch1004:	0004-jp2-use-new-APIs-for-jasper-3.patch
Patch1005:	0005-Reject-tiled-tiffs-with-corrupt-tile-size-early.patch
Patch1006:	0006-webp-support-sequential-input-device-if-full-file-is.patch
Patch1007:	0007-Explicitly-include-QVarLengthArray-header.patch
Patch1008:	0008-Implement-support-for-file-memory-mapping-for-tiff-r.patch
Patch1009:	0009-TGA-Plugin-Fix-reading-of-CMapDepth.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtimageformats}
Summary:	Qt Image Formats plugins
Group:		System/Libraries
Provides:	qt5-imageformats-plugins = %{EVRD}
Provides:	qt5-qtimageformats%{?_isa} = %{EVRD}

%description -n %{qtimageformats}
Qt Image Formats plugins.

%files -n %{qtimageformats}
%{_qt5_plugindir}/imageformats/libqicns.so
%{_qt5_plugindir}/imageformats/libqjp2.so
%{_qt5_plugindir}/imageformats/libqmng.so
%{_qt5_plugindir}/imageformats/libqtga.so
%{_qt5_plugindir}/imageformats/libqtiff.so
%{_qt5_plugindir}/imageformats/libqwbmp.so
%{_qt5_plugindir}/imageformats/libqwebp.so

#----------------------------------------------------------------------------

%package -n %{qtimageformatsd}
Summary:	Development files for the Qt Image Formats plugins
Group:		Development/KDE and Qt
Provides:	%{name}-devel = %{EVRD}
Requires:	%{qtimageformats} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtimageformatsd}
Development files for the Qt Image Formats plugins.

%files -n %{qtimageformatsd}
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt5Gui_QICNSPlugin.cmake
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt5Gui_QJp2Plugin.cmake
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt5Gui_QMngPlugin.cmake
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt5Gui_QTgaPlugin.cmake
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt5Gui_QTiffPlugin.cmake
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt5Gui_QWbmpPlugin.cmake
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt5Gui_QWebpPlugin.cmake

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtimageformats.qch
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}
%autopatch -p1

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16823 |21mr|qt5-qtlocation-5.15.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtlocation

%define qtlocation %mklibname qt%{api}location %{major}
%define qtlocationd %mklibname qt%{api}location -d
%define qtpositioning %mklibname qt%{api}positioning %{major}
%define qtpositioningd %mklibname qt%{api}positioning -d
%define qtpositioningquick %mklibname qt%{api}positioningquick %{major}
%define qtpositioningquickd %mklibname qt%{api}positioningquick -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	2
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Patch0:		qtlocation-gcc10.patch
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gypsy)
BuildRequires:	pkgconfig(Qt5Concurrent) >= %{version}
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5DBus) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5OpenGL) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Sql) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
BuildRequires:	icu-devel
BuildRequires:	openssl-devel
BuildRequires:	boost-devel
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtlocation}
Summary:	Qt Location library
Group:		System/Libraries

%description -n %{qtlocation}
Qt Location library.

%files -n %{qtlocation}
%{_qt5_libdir}/libQt%{api}Location.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Location.so.%{major}*
%endif
%dir %{_qt5_plugindir}/geoservices
%{_qt5_plugindir}/geoservices/libqtgeoservices_esri.so
%{_qt5_plugindir}/geoservices/libqtgeoservices_itemsoverlay.so
%{_qt5_plugindir}/geoservices/libqtgeoservices_mapbox.so
%{_qt5_plugindir}/geoservices/libqtgeoservices_mapboxgl.so
%{_qt5_plugindir}/geoservices/libqtgeoservices_nokia.so
%{_qt5_plugindir}/geoservices/libqtgeoservices_osm.so
%{_qt5_libdir}/qt5/qml/Qt/labs/location/*
%{_qt5_prefix}/qml/QtLocation

#----------------------------------------------------------------------------

%package -n %{qtlocationd}
Summary:	Development files for version %{api} of the QtLocation library
Group:		Development/KDE and Qt
Requires:	%{qtlocation} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtlocationd}
Development files for version 5 of the QtLocation library.

%files -n %{qtlocationd}
%{_qt5_includedir}/QtLocation
%{_qt5_libdir}/libQt%{api}Location.so
%{_qt5_libdir}/libQt%{api}Location.prl
%{_qt5_libdir}/cmake/Qt%{api}Location
%{_qt5_libdir}/pkgconfig/Qt%{api}Location.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Location.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_location.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_location_private.pri

#----------------------------------------------------------------------------

%package -n %{qtpositioning}
Summary:	Qt Positioning library
Group:		System/Libraries
Provides:	qt5-positioning = %{EVRD}
Provides:	qt5-qtpositioning = %{EVRD}
Provides:	qt5positioning = %{EVRD}

%description -n %{qtpositioning}
Qt Positioning library.

The Qt Positioning API gives developers the ability to determine a position by
using a variety of possible sources, including satellite, or wifi, or text
file, and so on. That information can then be used to for example determine
a position on a map. In addition satellite information can be retrieved and
area based monitoring can be performed.

%files -n %{qtpositioning}
%{_qt5_libdir}/libQt%{api}Positioning.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Positioning.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtPositioning
%{_qt5_plugindir}/position/libqtposition_geoclue.so
%{_qt5_plugindir}/position/libqtposition_geoclue2.so
%{_qt5_plugindir}/position/libqtposition_gypsy.so
%{_qt5_plugindir}/position/libqtposition_positionpoll.so

#----------------------------------------------------------------------------

%package -n %{qtpositioningd}
Summary:	Development files for version 5 of the QtPositioning library
Group:		Development/KDE and Qt
Requires:	%{qtpositioning} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtpositioningd}
Development files for version 5 of the QtPositioning library.

%files -n %{qtpositioningd}
%{_qt5_includedir}/QtPositioning
%{_qt5_libdir}/libQt%{api}Positioning.so
%{_qt5_libdir}/libQt%{api}Positioning.prl
%{_qt5_libdir}/cmake/Qt%{api}Positioning
%{_qt5_libdir}/pkgconfig/Qt%{api}Positioning.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Positioning.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_positioning.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_positioning_private.pri

#----------------------------------------------------------------------------

%package -n %{qtpositioningquick}
Summary:	Qt Positioning Quick library
Group:		System/Libraries

%description -n %{qtpositioningquick}
Qt Positioning Quick library.

The Qt Positioning API gives developers the ability to determine a position by
using a variety of possible sources, including satellite, or wifi, or text
file, and so on. That information can then be used to for example determine
a position on a map. In addition satellite information can be retrieved and
area based monitoring can be performed.

%files -n %{qtpositioningquick}
%{_qt5_libdir}/libQt%{api}PositioningQuick.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}PositioningQuick.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtpositioningquickd}
Summary:	Development files for version 5 of the QtPositioningQuick library
Group:		Development/KDE and Qt
Requires:	%{qtpositioningquick} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtpositioningquickd}
Development files for version 5 of the QtPositioningQuick library.

%files -n %{qtpositioningquickd}
%{_qt5_includedir}/QtPositioningQuick
%{_qt5_libdir}/libQt%{api}PositioningQuick.so
%{_qt5_libdir}/libQt%{api}PositioningQuick.prl
%{_qt5_libdir}/cmake/Qt%{api}PositioningQuick
%{_qt5_libdir}/pkgconfig/Qt%{api}PositioningQuick.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}PositioningQuick.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_positioningquick.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_positioningquick_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtlocation.qch
%{_qt5_docdir}/qtpositioning.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/location/
%{_qt5_exampledir}/positioning/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16824 |21mr|qt5-qtlottie-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{armx}
%define build_docs 0
%else
%define build_docs 1
%endif

%define rel 1
%define module	qtlottie
%define qtmajor %(echo %{version} |cut -d. -f1)

%define libqtbodymovin   %mklibname qt5bodymovin %qtmajor
%define libqtbodymovin_d %mklibname qt5bodymovin -d

Name:           qt5-qtlottie
Version:	5.15.10
Release:	1
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Summary:        Qt%{qtmajor} Lottie
Group:          Development/KDE and Qt
License:        LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
URL:            https://www.qt.io/
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(gl)

%description
Qt%{qtmajor} Lottie is a family of player software for a certain
json-based file format for describing 2d vector graphics animations.

%files
%{_qt5_libdir}/qt5/qml/Qt/labs/lottieqt/

#------------------------------------------------------------------------------

%if %{build_docs}
%package        doc
Summary:        QtLottie%{qtmajor} APIs and tools docs
Group:          Documentation
BuildArch:      noarch
BuildRequires:	qdoc5
BuildRequires:	qt5-tools

%description doc
Documentation for APIs and tools in QtLottie%{qtmajor} package for
use with Qt Assistant.

%files doc
%{_qt5_docdir}/qtlottieanimation.qch
%{_qt5_docdir}/qtlottieanimation/
%endif

#------------------------------------------------------------------------------

%package -n     %{libqtbodymovin}
Summary:        Qt%{qtmajor} Bodymovin Component Library
Group:          System/Libraries
Requires:       %{name} >= %{version}-%{release}

%description -n %{libqtbodymovin}
Qt%{qtmajor} Bodymovin Component Library.

%files -n %{libqtbodymovin}
%{_qt5_libdir}/libQt5Bodymovin.so.*

#------------------------------------------------------------------------------

%package -n     %{libqtbodymovin_d}
Summary:        Devel files needed to build apps based on QtBodymovin
Group:          Development/KDE and Qt
Requires:       %{libqtbodymovin} = %{version}
Provides:       libqt5bodymovin-devel = %{version}
Provides:       libqtbodymovin5-devel = %{version}
Provides:       qt5bodymovin-devel = %{version}
Provides:       libqt5lottie-devel = %{version}
Provides:       libqtlottie5-devel = %{version}
Provides:       qt5lottie-devel = %{version}

%description -n %{libqtbodymovin_d}
Devel files needed to build apps based on Qt Bodymovin.

%files -n %{libqtbodymovin_d}
%{_qt5_includedir}/QtBodymovin/
%{_qt5_libdir}/qt5/mkspecs/modules/qt_lib_bodymovin_private.pri
%{_qt5_libdir}/libQt5Bodymovin.prl
%{_qt5_libdir}/libQt5Bodymovin.so
%{_libdir}/cmake/Qt5Bodymovin

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make_build

%if %{build_docs}
%make docs
%endif

%install
%make_install INSTALL_ROOT=%{buildroot}

%if %{build_docs}
%make_install install_docs INSTALL_ROOT=%{buildroot}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16825 |21mr|qt5-qtmultimedia-5.15.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude libfftreal\\.so(.*)|devel\\(libfftreal.*\\)
%global __requires_exclude libfftreal\\.so(.*)

%define api 5
%define major 5
%define oname qt5
%define qgstmajor 1

%define module qtmultimedia

%define qtmultimedia %mklibname qt%{api}multimedia %{major}
%define qtmultimediad %mklibname qt%{api}multimedia -d
%define qtmultimediaquick %mklibname qt%{api}multimediaquick %{major}
%define qtmultimediaquickd %mklibname qt%{api}multimediaquick -d
%define qtmultimediagsttools %mklibname qt%{api}multimediagsttools %{major}

%define qtmultimediagsttoolsd %mklibname qt%{api}multimediagsttoolsd -d
%define qtmultimediawidgets %mklibname qt%{api}multimediawidgets %{major}
%define qtmultimediawidgetsd %mklibname qt%{api}multimediawidgets -d

%define qtmultimediaavplayer %mklibname qt%{api}multimediaavplayer %{major}
%define qtmultimediaavplayerd %mklibname qt%{api}multimediaavplayer -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

%ifarch %{aarch64} %{e2k}
%bcond_with avplayer
%else
%bcond_without avplayer
%endif

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	2
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source1000:	%{name}.rpmlintrc
Patch0: %{name}-gcc11.patch
# Introduce an alternative to ****ing dreadful gstreamer crap
# that can't even handle the pinephone camera
# https://codereview.qt-project.org/c/qt/qtmultimedia/+/305276
Source100:	bcc261c.diff
# And make it compile...
Source101:	qtavplayer-fix-build.patch
# With ffmpeg 5.0 too
Source102:	qtmultimedia-avplayer-ffmpeg-5.0.patch
# Patches from KDE
Patch1001:	0001-QPulseAudioSource-fix-UB-memcpy-called-with-nullptr-.patch
Patch1002:	0002-Pass-explicit-GL-api-when-initializing-GStreamer-bac.patch
Patch1003:	0003-Drop-obsolete-QtOpengl-dependency.patch
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gstreamer-audio-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(wayland-egl)
# For gstphotography
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5OpenGL) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(Qt5Xml) >= %{version}
BuildRequires:	pkgconfig(Qt5Concurrent)
%if %{with avplayer}
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(libva-x11)
BuildRequires:	pkgconfig(libva-drm)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(libpulse)
%endif
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

# meta-package for compatibility with Fedora/RH
# pulling subpackages
Requires:	%{qtmultimedia} = %{EVRD}
Requires:	%{qtmultimediaquick} = %{EVRD}
Requires:	%{qtmultimediagsttools} = %{EVRD}
Requires:	%{qtmultimediawidgets} = %{EVRD}

%description
Version 5 of the Qt toolkit (%{module} packages).

%files
# empty, meta-package

#----------------------------------------------------------------------------

%package -n %{qtmultimedia}
Summary:	Qt Multimedia libraries
Group:		System/Libraries
Recommends:	qt5-qtmultimedia-i18n

%description -n %{qtmultimedia}
Qt Multimedia libraries.

%files -n %{qtmultimedia}
%{_qt5_libdir}/libQt%{api}Multimedia.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Multimedia.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtAudioEngine
%{_qt5_prefix}/qml/QtMultimedia
%{_qt5_plugindir}/audio/libqtaudio_alsa.so
%{_qt5_plugindir}/audio/libqtmedia_pulse.so
%{_qt5_plugindir}/mediaservice/libgstaudiodecoder.so
%{_qt5_plugindir}/mediaservice/libgstcamerabin.so
%{_qt5_plugindir}/mediaservice/libgstmediacapture.so
%{_qt5_plugindir}/mediaservice/libgstmediaplayer.so
%{_qt5_plugindir}/playlistformats/libqtmultimedia_m3u.so

#----------------------------------------------------------------------------

%package -n %{qtmultimediad}
Summary:	Development files for Qt Multimedia
Group:		Development/KDE and Qt
Requires:	%{qtmultimedia} = %{EVRD}
Requires:	%{qtmultimediagsttoolsd} = %{EVRD}
Requires:	%{qtmultimediaquickd} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtmultimediad}
Development files for Qt Multimedia.

%files -n %{qtmultimediad}
%{_qt5_includedir}/QtMultimedia
%{_qt5_libdir}/libQt%{api}Multimedia.so
%{_qt5_libdir}/libQt%{api}Multimedia.prl
%{_qt5_libdir}/cmake/Qt%{api}Multimedia
%{_qt5_libdir}/pkgconfig/Qt%{api}Multimedia.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Multimedia.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_multimedia.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_multimedia_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_qtmultimediaquicktools_private.pri

#----------------------------------------------------------------------------

%package -n %{qtmultimediagsttools}
Summary:	Runtime library for GStreamer support in Qt 5
Group:		System/Libraries

%description -n %{qtmultimediagsttools}
Runtime library for GStreamer support in Qt 5.

%files -n %{qtmultimediagsttools}
%{_qt5_libdir}/libQt%{api}MultimediaGstTools.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}MultimediaGstTools.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtmultimediagsttoolsd}
Summary:	Development files for GStreamer support in Qt 5
Group:		Development/KDE and Qt
Requires:	%{qtmultimediagsttools} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtmultimediagsttoolsd}
Development files for GStreamer support in Qt 5.

%files -n %{qtmultimediagsttoolsd}
%{_qt5_includedir}/QtMultimediaGstTools
%{_qt5_libdir}/libQt%{api}MultimediaGstTools.so
%{_qt5_libdir}/libQt%{api}MultimediaGstTools.prl
%{_qt5_libdir}/cmake/Qt%{api}MultimediaGstTools
%{_qt5_prefix}/mkspecs/modules/qt_lib_multimediagsttools_private.pri

#----------------------------------------------------------------------------

%package -n %{qtmultimediaquick}
Summary:	Runtime support library for the Qt Multimedia Quick module
Group:		System/Libraries

%description -n %{qtmultimediaquick}
Runtime support library for the Qt Multimedia Quick module.

%files -n %{qtmultimediaquick}
%{_qt5_libdir}/libQt%{api}MultimediaQuick.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}MultimediaQuick.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtmultimediaquickd}
Summary:	Development files for Qt Multimedia Quick
Group:		Development/KDE and Qt
Requires:	%{qtmultimediaquick} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtmultimediaquickd}
Development files for Qt Multimedia Quick.

%files -n %{qtmultimediaquickd}
%{_qt5_includedir}/QtMultimediaQuick
%{_qt5_libdir}/libQt%{api}MultimediaQuick.so
%{_qt5_libdir}/libQt%{api}MultimediaQuick.prl
%{_qt5_libdir}/cmake/Qt%{api}MultimediaQuick

#----------------------------------------------------------------------------

%package -n %{qtmultimediawidgets}
Summary:	Qt Multimedia Widgets library
Group:		System/Libraries

%description -n %{qtmultimediawidgets}
Qt Multimedia Widgets library.

%files -n %{qtmultimediawidgets}
%{_qt5_libdir}/libQt%{api}MultimediaWidgets.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}MultimediaWidgets.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtmultimediawidgetsd}
Summary:	Development files for the Qt Multimedia Widgets library
Group:		Development/KDE and Qt
Requires:	%{qtmultimediawidgets} = %{EVRD}
Requires:	%{qtmultimediad} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtmultimediawidgetsd}
Development files for the Qt Multimedia Widgets library.

%files -n %{qtmultimediawidgetsd}
%{_qt5_includedir}/QtMultimediaWidgets
%{_qt5_libdir}/libQt%{api}MultimediaWidgets.so
%{_qt5_libdir}/libQt%{api}MultimediaWidgets.prl
%{_qt5_libdir}/cmake/Qt%{api}MultimediaWidgets
%{_qt5_libdir}/pkgconfig/Qt%{api}MultimediaWidgets.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}MultimediaWidgets.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_multimediawidgets.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_multimediawidgets_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtmultimedia.qch
%endif

#----------------------------------------------------------------------------
%if %{with avplayer}
%package -n %{qtmultimediaavplayer}
Summary: Qt%{api} multimedia lib with FFMPEG backend
Group: System/Libraries

%description -n %{qtmultimediaavplayer}
Qt%{api} multimedia lib with FFMPEG backend.

%files -n %{qtmultimediaavplayer}
%{_libdir}/libQt5MultimediaAVPlayer.so.5*

%package -n %{qtmultimediaavplayerd}
Summary: Devel files needed to build apps based on QtMultimediaAVPlayer
Group:    Development/KDE and Qt
Requires: %{qtmultimediaavplayer} = %{EVRD}
Requires: %{qtmultimediawidgetsd} = %{EVRD}

%description -n %{qtmultimediaavplayerd}
Devel files needed to build apps based on QtMultimediaAVPlayer

%files -n %{qtmultimediaavplayerd}
%{_qt5_includedir}/QtMultimediaAVPlayer
%{_libdir}/cmake/Qt5MultimediaAVPlayer/Qt5MultimediaAVPlayerConfig.cmake
%{_libdir}/cmake/Qt5MultimediaAVPlayer/Qt5MultimediaAVPlayerConfigVersion.cmake
%{_libdir}/libQt5MultimediaAVPlayer.prl
%{_libdir}/libQt5MultimediaAVPlayer.so
%{_libdir}/qt5/mkspecs/modules/qt_lib_multimediaavplayer_private.pri
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/multimedia/
%{_qt5_exampledir}/multimediawidgets/

#----------------------------------------------------------------------------

%prep
%setup -n %{module}-everywhere-src-%{version}
%autopatch -p1
%if %{with avplayer}
patch -p1 -z .avp1~ -b <%{S:100}
patch -p1 -z .avp2~ -b <%{S:101}
patch -p1 -z .avp2~ -b <%{S:102}
%endif

# Needed after introducing extra headers from Patch0
%{_libdir}/qt5/bin/syncqt.pl -version %{version}

%build
%qmake_qt5 GST_VERSION=1.0
%make_build STRIP=true || make

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

# Let's not ship -devel files for private libraries... At least not until
# applications teach us otherwise
rm -f %{buildroot}%{_qt5_libdir}/libqgsttools_p.so %{buildroot}%{_qt5_libdir}/libqgsttools_p.prl
rm -f %{buildroot}%{_qt5_libdir}/libQt%{api}MultimediaQuick_p.so %{buildroot}%{_qt5_libdir}/libQt%{api}MultimediaQuick_p.prl

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16826 |21mr|qt5-qtnetworkauth-5.15.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module qtnetworkauth

%define major 5
%define qtnetworkauth %mklibname qt5networkauth %{major}
%define qtnetworkauthd %mklibname qt5networkauth -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	2
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Patch0:		CVE-2024-36048-qtnetworkauth-5.15.diff
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif
Requires:	qt5-qtnetworkauth = %{EVRD}

%description
Version 5 of the Qt toolkit (%{module} packages).

#--------------------------------------------------------------------

%package -n %{qtnetworkauth}
Summary:	Qt 5 Network Authorization library
Group:		System/Libraries

%description -n %{qtnetworkauth}
Qt 5 Network Authorization library.

%files -n %{qtnetworkauth}
%{_qt5_libdir}/libQt5NetworkAuth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{qtnetworkauthd}
Summary:	Development files for Qt 5 Network Authorization library
Group:		Development/KDE and Qt
Requires:	%{qtnetworkauth} = %{EVRD}
Provides:	qt5-qtnetworkauth-devel = %{EVRD}
Provides:	qt5-networkauth-devel = %{EVRD}

%description -n %{qtnetworkauthd}
Development files for Qt 5 Network Authorization library.

%files -n %{qtnetworkauthd}
%{_qt5_includedir}/QtNetworkAuth
%{_qt5_libdir}/libQt5NetworkAuth.so
%{_qt5_libdir}/libQt5NetworkAuth.prl
%{_qt5_libdir}/cmake/Qt5NetworkAuth/*
%{_qt5_libdir}/pkgconfig/Qt5NetworkAuth.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt5NetworkAuth.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_networkauth.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_networkauth_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtnetworkauth.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/oauth/

#----------------------------------------------------------------------------


%prep
%setup -qn %{module}-everywhere-src-%{version}
%autopatch -p1

%build
%qmake_qt5
%make

%if %{with docs}
%make docs
%endif

%install
%makeinstall_qt

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt5/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt5/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16827 |21mr|qt5-qtpurchasing-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname qt5purchasing %{major}
%define devname %mklibname qt5purchasing -d
%define module	qtpurchasing
# Requires qdoc5 and qt5-tools to build
%bcond_without docs

Name: qt5-qtpurchasing
Version:	5.15.10
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Release:	1
Summary: Qt library for in-app purchases
URL: https://github.com/qtproject/qtpurchasing
License: LGPL-2.1-with-Qt-Company-Qt-exception-1.1 or LGPL-3.0-with-Qt-Company-Qt-exception-1.1
Group: System/Libraries
BuildRequires: qmake5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Quick)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Concurrent)
BuildRequires: pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif
# For the Provides: generator
BuildRequires: cmake >= 3.11.0-1

%description
Qt library for in-app purchases.

%package -n %{libname}
Summary: Qt library for in-app purchases
Group: System/Libraries

%description -n %{libname}
Qt library for in-app purchases.

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%package examples
Summary: Example code for the %{name} library
Group: Development/C
Requires: %{devname} = %{EVRD}
BuildRequires: pkgconfig(Qt5Widgets)

%description examples
Example code for the %{name} library.

%prep
%autosetup -n %{module}-everywhere-src-%{version} -p1
%qmake_qt5 *.pro

%build
%make_build
%make_build docs

%install
%make_install install_docs INSTALL_ROOT="%{buildroot}"
find "%{buildroot}" -type f -name '*.prl' -exec sed -i -e '/^QMAKE_PRL_BUILD_DIR/d' {} \;

%files -n %{libname}
%{_libdir}/*.so.%{major}*
%{_libdir}/qt5/qml/QtPurchasing

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/Qt5Purchasing
%{_libdir}/qt5/mkspecs/modules/*.pri
%{_libdir}/*.prl
%doc %{_docdir}/qt5/qtpurchasing.qch
%doc %{_docdir}/qt5/qtpurchasing

%files examples
%{_libdir}/qt5/examples/purchasing

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16828 |21mr|qt5-qtquickcontrols2-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtquickcontrols2

%define qmlqtquickcontrols2 %mklibname qt5-qtquickcontrols2-qml

%define qtquickcontrols2 %mklibname qt%{api}quickcontrols2_ %{major}
%define qtquickcontrols2d %mklibname qt%{api}quickcontrols2 -d
%define qtquicktemplates2 %mklibname qt%{api}quicktemplates2_ %{major}
%define qtquicktemplates2d %mklibname qt%{api}quicktemplates2 -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
# From KDE https://invent.kde.org/qt/qt/qtquickcontrols2 -b kde/5.15
Patch1001:	0001-Unset-mouseGrabberPopup-if-it-s-removed-from-childre.patch
Patch1002:	0002-Ensure-we-don-t-crash-when-changing-sizes-after-clea.patch
Patch1003:	0003-Fix-scroll-bars-not-showing-up-when-binding-to-stand.patch
Patch1004:	0004-implement-a11y-pressing-of-qquickabstractbutton.patch
Patch1005:	0005-Fix-the-popup-position-of-a-Menu.patch
Patch1006:	0006-Accessibility-respect-value-in-attached-Accessible-i.patch
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Sql) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

# meta-package for compat with Fedora/RH, pulling subpackages
Requires:	%{qtquickcontrols2} = %{EVRD}
Requires:	%{qtquicktemplates2} = %{EVRD}

%description
Version 5 of the Qt toolkit (%{module} packages).
This meta-package pulls %{qtquickcontrols2} and %{qtquicktemplates2}

%files
# empty, meta package

#--------------------------------------------------------------------

%package -n %{qmlqtquickcontrols2}
Summary:	QML plugin for Qt 5 Quick Controls 2 module
Group:		System/Libraries
Recommends:	qt5-qtquickcontrols2-i18n
Provides:	qt5-qtlabscontrols-qml = %{EVRD}
Provides:	qt5-qtquickcontrols2-qml = %{EVRD}

%description -n %{qmlqtquickcontrols2}
QML plugin for Qt 5 Quick Controls 2 module.

%files -n %{qmlqtquickcontrols2}
%{_qt5_prefix}/qml/Qt/labs/calendar/
%{_qt5_prefix}/qml/Qt/labs/platform/
%{_qt5_prefix}/qml/QtQuick/Controls.2/
%{_qt5_prefix}/qml/QtQuick/Templates.2/

#----------------------------------------------------------------------------

%package -n %{qtquickcontrols2}
Summary:	Qt 5 Quick Controls 2 library
Group:		System/Libraries
Requires:	qt5-qtquickcontrols2-qml

%description -n %{qtquickcontrols2}
Qt 5 Quick Controls 2 library.

%files -n %{qtquickcontrols2}
%{_qt5_libdir}/libQt%{api}QuickControls2.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}QuickControls2.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtquickcontrols2d}
Summary:	Development files for the Qt Quick Controls 2 library
Group:		Development/KDE and Qt
Requires:	%{qtquickcontrols2} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtquickcontrols2d}
Development files for the Qt Quick Controls 2 library.

%files -n %{qtquickcontrols2d}
%{_qt5_includedir}/QtQuickControls2/
%{_qt5_libdir}/libQt%{api}QuickControls2.so
%{_qt5_libdir}/libQt%{api}QuickControls2.prl
%{_qt5_libdir}/cmake/Qt%{api}QuickControls2
%{_qt5_libdir}/pkgconfig/Qt%{api}QuickControls2.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}QuickControls2.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_quickcontrols2.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_quickcontrols2_private.pri

#----------------------------------------------------------------------------

%package -n %{qtquicktemplates2}
Summary:	Qt 5 Quick Templates 2 library
Group:		System/Libraries
Requires:	qt5-qtquickcontrols2-qml

%description -n %{qtquicktemplates2}
Qt 5 Quick Templates 2 library.

%files -n %{qtquicktemplates2}
%{_qt5_libdir}/libQt%{api}QuickTemplates2.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}QuickTemplates2.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtquicktemplates2d}
Summary:	Development files for the Qt Quick Templates 2 library
Group:		Development/KDE and Qt
Requires:	%{qtquicktemplates2} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtquicktemplates2d}
Development files for the Qt Quick Templates 2 library.

%files -n %{qtquicktemplates2d}
%{_qt5_includedir}/QtQuickTemplates2/
%{_qt5_libdir}/libQt%{api}QuickTemplates2.so
%{_qt5_libdir}/libQt%{api}QuickTemplates2.prl
%{_qt5_libdir}/cmake/Qt%{api}QuickTemplates2
%{_qt5_libdir}/pkgconfig/Qt%{api}QuickTemplates2.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}QuickTemplates2.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_quicktemplates2.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_quicktemplates2_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtlabscalendar.qch
%{_qt5_docdir}/qtlabsplatform.qch
%{_qt5_docdir}/qtquickcontrols.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/quickcontrols2/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}
%{_qt5_prefix}/bin/syncqt.pl -version %{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16829 |21mr|qt5-qtquickcontrols-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtquickcontrols

%define qmlqtquickcontrols %mklibname qt5-qtquickcontrols-qml

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Sql) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#--------------------------------------------------------------------

%package -n %{qmlqtquickcontrols}
Summary:	QML plugin for Qt 5 Quick Controls module
Group:		System/Libraries
Provides:	qt5-qtquickcontrols-qml = %{EVRD}
# compat with Fedora/RH
Provides:	qt5-qtquickcontrols = %{EVRD}
Recommends:	qt5-qtquickcontrols-i18n

%description -n %{qmlqtquickcontrols}
QML plugin for Qt 5 Quick Controls module.

%files -n %{qmlqtquickcontrols}
%{_qt5_prefix}/qml/QtQuick/Controls/
%{_qt5_prefix}/qml/QtQuick/Dialogs/
%{_qt5_prefix}/qml/QtQuick/Extras/
%{_qt5_prefix}/qml/QtQuick/PrivateWidgets/

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtquickcontrols1.qch
%{_qt5_docdir}/qtquickdialogs.qch
%{_qt5_docdir}/qtquickextras.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/quickcontrols/

#----------------------------------------------------------------------------

%prep
%autosetup  -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16830 |21mr|qt5-qtquicktimeline-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module qtquicktimeline

%define qmlqtquicktimeline %mklibname qt5-qtquicktimeline-qml

# Requires qdoc5 and qt5-tools to build
%bcond_without docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#--------------------------------------------------------------------

%package -n %{qmlqtquicktimeline}
Summary:	QML plugin for Qt 5 Quick Timeline module
Group:		System/Libraries
Provides:	qt5-qtquicktimeline-qml = %{EVRD}

%description -n %{qmlqtquicktimeline}
QML plugin for Qt 5 Quick Timeline module.

%files -n %{qmlqtquicktimeline}
%{_qt5_prefix}/qml/QtQuick/Timeline/

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtquicktimeline.qch
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make

%if %{with docs}
%make docs
%endif

%install
%makeinstall_qt

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16831 |21mr|qt5-qtremoteobjects-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api %(echo %{version} |cut -d. -f1)
%define major %api
%define beta beta2

%define qtremoteobjects %mklibname qt%{api}remoteobjects %{major}
%define qtremoteobjectsd %mklibname qt%{api}remoteobjects -d
%define qtremoteobjects_p_d %mklibname qt%{api}remoteobjects-private -d

%define _qt5_prefix %{_libdir}/qt%{api}
%define module	qtremoteobjects

Name:		qt5-qtremoteobjects
Version:	5.15.10
Release:	1
Summary:	Qt Remote Objects library
Group:		Development/KDE and Qt
License:	LGPLv2 with exceptions or GPLv3 with exceptions and GFDL
URL:		http://www.qt.io
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
BuildRequires:	qmake5 = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gl)
BuildRequires:	qlalr%{api}
# For the Provides: generator
BuildRequires:	cmake >= 3.11.0-1

%description
The Qt Remote Objects module provides an easy to use mechanism for sharing
a QObject's API (Properties/Signals/Slots) between processes.

#------------------------------------------------------------------------------
%package -n	%{qtremoteobjects}
Summary:	Qt%{api} Remote Objects Library
Group:		System/Libraries

%description -n %{qtremoteobjects}
Qt%{api} Remote Objects Library.

The Qt Remote Objects module provides an easy to use mechanism for sharing
a QObject's API (Properties/Signals/Slots) between processes.

%files -n	%{qtremoteobjects}
%{_qt5_libdir}/libQt5RemoteObjects.so.%{api}*
%{_qt5_prefix}/qml/QtQml/RemoteObjects
%{_libdir}/qt5/qml/QtRemoteObjects

#------------------------------------------------------------------------------

%package -n	%{qtremoteobjectsd}
Summary:	Devel files needed to build apps based on QtRemoteObjects
Group:		Development/KDE and Qt
Requires:	%{qtremoteobjects} = %version
Requires:	qt5-qtbase-devel = %version

%description -n %{qtremoteobjectsd}
Devel files needed to build apps based on QtRemoteObjects.

%files -n	%{qtremoteobjectsd}
%{_qt5_libdir}/libQt5RemoteObjects.prl
%{_qt5_libdir}/libQt5RepParser.prl
%{_qt5_libdir}/libQt5RemoteObjects.so
%{_qt5_libdir}/pkgconfig/Qt5RemoteObjects.pc
%{_qt5_libdir}/pkgconfig/Qt5RepParser.pc
%{_qt5_includedir}/QtRemoteObjects
%{_qt5_libdir}/cmake/Qt5RemoteObjects
%{_qt5_prefix}/mkspecs/modules/qt_lib_remoteobjects.pri
%{_qt5_exampledir}/remoteobjects
%{_qt5_includedir}/QtRepParser
%{_qt5_prefix}/mkspecs/features/*.pri
%{_qt5_prefix}/mkspecs/features/*.prf
%{_qt5_prefix}/mkspecs/modules/qt_lib_remoteobjects_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_repparser.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_repparser_private.pri
%{_qt5_prefix}/bin/repc
%{_libdir}/cmake/Qt5RepParser

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version} -p1

%build
%qmake_qt5
%make_build
#------------------------------------------------------------------------------

%install
%make_install INSTALL_ROOT=%{buildroot}

## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

install -d %{buildroot}/%{_qt5_docdir}

# .la and .a files, die, die, die.
rm -f %{buildroot}%{_qt5_libdir}/lib*.la
rm -f %{buildroot}%{_qt5_libdir}/lib*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16832 |21mr|qt5-qtscript-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtscript

%define qtscript %mklibname qt%{api}script %{major}
%define qtscriptd %mklibname qt%{api}script -d
%define qtscripttools %mklibname qt%{api}scripttools %{major}
%define qtscripttoolsd %mklibname qt%{api}scripttools -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
Patch0:		e2k-port.patch
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtscript}
Summary:	Qt Script runtime library
Group:		System/Libraries
Recommends:	qt5-qtscript-i18n

%description -n %{qtscript}
Qt Script runtime library.

%files -n %{qtscript}
%{_qt5_libdir}/libQt%{api}Script.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Script.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtscriptd}
Summary:	Development files for Qt Script
Group:		Development/KDE and Qt
Requires:	%{qtscript} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtscriptd}
Development files for Qt Script.

%files -n %{qtscriptd}
%{_qt5_includedir}/QtScript
%{_qt5_libdir}/libQt%{api}Script.so
%{_qt5_libdir}/libQt%{api}Script.prl
%{_qt5_libdir}/cmake/Qt%{api}Script
%{_qt5_libdir}/pkgconfig/Qt%{api}Script.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Script.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_script.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_script_private.pri

#----------------------------------------------------------------------------

%package -n %{qtscripttools}
Summary:	Qt Script tools library
Group:		System/Libraries

%description -n %{qtscripttools}
Qt Script tools library.

%files -n %{qtscripttools}
%{_qt5_libdir}/libQt%{api}ScriptTools.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}ScriptTools.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtscripttoolsd}
Summary:	Development files for Qt Script tools
Group:		Development/KDE and Qt
Requires:	%{qtscripttools} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtscripttoolsd}
Development files for Qt Script tools.

%files -n %{qtscripttoolsd}
%{_qt5_includedir}/QtScriptTools
%{_qt5_libdir}/libQt%{api}ScriptTools.so
%{_qt5_libdir}/libQt%{api}ScriptTools.prl
%{_qt5_libdir}/cmake/Qt%{api}ScriptTools
%{_qt5_libdir}/pkgconfig/Qt%{api}ScriptTools.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}ScriptTools.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_scripttools.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_scripttools_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtscript.qch
%{_qt5_docdir}/qtscripttools.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/script/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}
%autopatch -p1

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16833 |21mr|qt5-qtscxml-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname qt5scxml %{major}
%define devname %mklibname qt5scxml -d
%define module	qtscxml
# Requires qdoc5 and qt5-tools to build
%bcond_without docs

Name: qt5-qtscxml
Version:	5.15.10
Release:	1
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Summary: Qt scxml library
URL: https://github.com/qtproject/qtscxml
License: LGPL-2.1-with-Qt-Company-Qt-exception-1.1 or LGPL-3.0-with-Qt-Company-Qt-exception-1.1
Group: System/Libraries
BuildRequires: qmake5
BuildRequires: pkgconfig(Qt5Core)
BuildRequires: pkgconfig(Qt5Quick)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif
# For the Provides: generator
BuildRequires: cmake >= 3.11.0-1

%description
The Qt SCXML module provides functionality to create state machines from
SCXML files.

This includes both dynamically creating state machines (loading the SCXML
file and instantiating states and transitions) and generating a C++ file
that has a class implementing the state machine. It also contains
functionality to support data models and executable content.

%package -n %{libname}
Summary: Qt scxml library
Group: System/Libraries

%description -n %{libname}
Qt scxml library.

%package -n %{devname}
Summary: Development files for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%package examples
Summary: Example code for the %{name} library
Group: Development/C
Requires: %{devname} = %{EVRD}
BuildRequires: pkgconfig(Qt5Widgets)

%description examples
Example code for the %{name} library.

%prep
%autosetup -n %{module}-everywhere-src-%{version} -p1

# https://bugreports.qt.io/browse/QTBUG-76443
rm examples/*.pro

%qmake_qt5 *.pro

%build
%make_build
%make_build docs

%install
%make_install install_docs INSTALL_ROOT="%{buildroot}"

%files -n %{libname}
%{_libdir}/*.so.%{major}*
%{_libdir}/qt5/qml/QtScxml

%files -n %{devname}
%{_includedir}/*
%{_libdir}/qt5/bin/qscxmlc
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/cmake/Qt5Scxml
%{_libdir}/qt5/mkspecs/modules/*.pri
%{_libdir}/qt5/mkspecs/features/*.prf
%{_libdir}/*.prl
%doc %{_docdir}/qt5/qtscxml.qch
%doc %{_docdir}/qt5/qtscxml

#files examples
#%{_libdir}/qt5/examples/scxml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16834 |21mr|qt5-qtsensors-5.15.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtsensors

%define qtsensors %mklibname qt%{api}sensors %{major}
%define qtsensorsd %mklibname qt%{api}sensors -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	2
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtsensors}
Summary:	Qt Sensors library
Group:		System/Libraries

%description -n %{qtsensors}
Qt Sensors library.

%files -n %{qtsensors}
%{_qt5_libdir}/libQt%{api}Sensors.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Sensors.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtSensors
%{_qt5_plugindir}/sensorgestures/
%{_qt5_plugindir}/sensors/

#----------------------------------------------------------------------------

%package -n %{qtsensorsd}
Summary:	Development files for the QtSensors library
Group:		Development/KDE and Qt
Requires:	%{qtsensors} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtsensorsd}
Development files for the QtSensors library.

%files -n %{qtsensorsd}
%{_qt5_includedir}/QtSensors
%{_qt5_libdir}/libQt%{api}Sensors.so
%{_qt5_libdir}/libQt%{api}Sensors.prl
%{_qt5_libdir}/cmake/Qt%{api}Sensors
%{_qt5_libdir}/pkgconfig/Qt%{api}Sensors.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Sensors.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_sensors.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_sensors_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtsensors.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/sensors/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}
%autopatch -p1

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16835 |21mr|qt5-qtserialbus-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtserialbus

%define qtserialbus %mklibname qt%{api}serialbus %{major}
%define qtserialbusd %mklibname qt%{api}serialbus -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5SerialPort) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtserialbus}
Summary:	Qt Serial Bus library
Group:		System/Libraries

%description -n %{qtserialbus}
Qt Serial Bus library.

%files -n %{qtserialbus}
%{_qt5_bindir}/canbusutil
%{_qt5_libdir}/libQt%{api}SerialBus.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}SerialBus.so.%{major}*
%endif
%{_qt5_plugindir}/canbus/libqtpassthrucanbus.so
%{_qt5_plugindir}/canbus/libqtpeakcanbus.so
%{_qt5_plugindir}/canbus/libqtsocketcanbus.so
%{_qt5_plugindir}/canbus/libqttinycanbus.so
%{_qt5_plugindir}/canbus/libqtvirtualcanbus.so

#----------------------------------------------------------------------------

%package -n %{qtserialbusd}
Summary:	Development files for the Serial Bus library
Group:		Development/KDE and Qt
Requires:	%{qtserialbus} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtserialbusd}
Development files for the Serial Bus library.

%files -n %{qtserialbusd}
%{_qt5_includedir}/QtSerialBus
%{_qt5_libdir}/libQt%{api}SerialBus.so
%{_qt5_libdir}/libQt%{api}SerialBus.prl
%{_qt5_libdir}/cmake/Qt%{api}SerialBus
%{_qt5_libdir}/pkgconfig/Qt%{api}SerialBus.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}SerialBus.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_serialbus.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_serialbus_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtserialbus.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/serialbus/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16836 |21mr|qt5-qtserialport-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtserialport

%define qtserialport %mklibname qt%{api}serialport %{major}
%define qtserialportd %mklibname qt%{api}serialport -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtserialport}
Summary:	Qt Serial Port library
Group:		System/Libraries

%description -n %{qtserialport}
Qt Serial Port library.

%files -n %{qtserialport}
%{_qt5_libdir}/libQt%{api}SerialPort.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}SerialPort.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtserialportd}
Summary:	Development files for the QtSerialPort library
Group:		Development/KDE and Qt
Requires:	%{qtserialport} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtserialportd}
Development files for the QtSerialPort library.

%files -n %{qtserialportd}
%{_qt5_includedir}/QtSerialPort
%{_qt5_libdir}/libQt%{api}SerialPort.so
%{_qt5_libdir}/libQt%{api}SerialPort.prl
%{_qt5_libdir}/cmake/Qt%{api}SerialPort
%{_qt5_libdir}/pkgconfig/Qt%{api}SerialPort.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}SerialPort.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_serialport.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_serialport_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtserialport.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/serialport/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16837 |21mr|qt5-qtspeech-5.15.10-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtspeech

%define qttexttospeech %mklibname qt%{api}texttospeech %{major}
%define qttexttospeechflite %mklibname qt%{api}texttospeechflite %{major}
%define qttexttospeechspeechd %mklibname qt%{api}texttospeechspeechd %{major}
%define qttexttospeechd %mklibname qt%{api}texttospeech -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	5
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Multimedia) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(Qt5XmlPatterns) >= %{version}
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(speech-dispatcher)
BuildRequires:	flite-devel
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qttexttospeech}
Summary:	Qt Text to Speech library
Group:		System/Libraries

%description -n %{qttexttospeech}
Qt Text to Speech library.

%files -n %{qttexttospeech}
%{_qt5_libdir}/libQt%{api}TextToSpeech.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}TextToSpeech.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qttexttospeechflite}
Summary:	Qt Text to Speech library
Group:		System/Libraries

%description -n %{qttexttospeechflite}
Qt Text to Speech library.

%files -n %{qttexttospeechflite}
%{_qt5_plugindir}/texttospeech/libqttexttospeech_flite.so

#----------------------------------------------------------------------------

%package -n %{qttexttospeechspeechd}
Summary:	Qt Text to Speech library
Group:		System/Libraries

%description -n %{qttexttospeechspeechd}
Qt Text to Speech library.

%files -n %{qttexttospeechspeechd}
%{_qt5_plugindir}/texttospeech/libqtexttospeech_speechd.so

#----------------------------------------------------------------------------

%package -n %{qttexttospeechd}
Summary:	Development files for the Qt Text to Speech library
Group:		Development/KDE and Qt
Requires:	%{qttexttospeech} = %{EVRD}
Requires:	%{qttexttospeechflite} = %{EVRD}
Requires:	%{qttexttospeechspeechd} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qttexttospeechd}
Development files for the Qt Text to Speech library.

%files -n %{qttexttospeechd}
%{_qt5_includedir}/QtTextToSpeech
%{_qt5_libdir}/libQt%{api}TextToSpeech.so
%{_qt5_libdir}/libQt%{api}TextToSpeech.prl
%{_qt5_libdir}/cmake/Qt%{api}TextToSpeech
%{_qt5_libdir}/pkgconfig/Qt%{api}TextToSpeech.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}TextToSpeech.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_texttospeech.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_texttospeech_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtspeech.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/speech/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}
%autopatch -p1

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16838 |21mr|qt5-qtsvg-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtsvg

%define qtsvg %mklibname qt%{api}svg %{major}
%define qtsvgd %mklibname qt%{api}svg -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc

# (tpg) from KDE https://invent.kde.org/qt/qt/qtsvg -b kde/5.15
# P=1000; for i in 0*patch; do echo -e "Patch$P:\t$i"; P=$((P+1)); done
Patch1001:	0001-Avoid-buffer-overflow-in-isSupportedSvgFeature.patch
Patch1002:	0002-Support-font-size-not-in-pixels.patch
Patch1003:	0003-Fix-text-x-y-when-the-length-is-not-in-pixels.patch
Patch1004:	0004-Improve-parsing-of-r.patch
Patch1005:	0005-SVG-Image-reading-Reject-oversize-svgs-as-corrupt.patch
Patch1006:	0006-Avoid-undefined-behavior-when-painter-transform-goes.patch
Patch1007:	0007-Fix-assert-with-wrong-number-of-argument-to-animateT.patch
Patch1008:	0008-QSvgFont-Initialize-used-member-remove-unused.patch
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5OpenGL) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(zlib)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtsvg}
Summary:	Qt SVG rendering engine
Group:		System/Libraries

%description -n %{qtsvg}
Qt SVG rendering engine.

%files -n %{qtsvg}
%{_qt5_libdir}/libQt%{api}Svg.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Svg.so.%{major}*
%endif
%{_qt5_plugindir}/iconengines/libqsvgicon.so
%{_qt5_plugindir}/imageformats/libqsvg.so

#----------------------------------------------------------------------------

%package -n %{qtsvgd}
Summary:	Development files for Qt's SVG rendering engine
Group:		Development/KDE and Qt
Requires:	%{qtsvg} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtsvgd}
Development files for Qt's SVG rendering engine.

%files -n %{qtsvgd}
%{_qt5_includedir}/QtSvg
%{_qt5_libdir}/libQt%{api}Svg.so
%{_qt5_libdir}/libQt%{api}Svg.prl
%{_qt5_libdir}/cmake/Qt%{api}Svg
%{_qt5_libdir}/cmake/Qt%{api}Gui/*QSvg*
%{_qt5_libdir}/pkgconfig/Qt%{api}Svg.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Svg.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_svg.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_svg_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtsvg.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/svg/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16839 |21mr|qt5-qttools-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qttools

%define qtdesigner %mklibname qt%{api}designer %{major}
%define qtdesignerd %mklibname qt%{api}designer -d
%define qtdesignercomponents %mklibname qt%{api}designercomponents %{major}
%define qtdesignercomponentsd %mklibname qt%{api}designercomponents -d
%define qthelp %mklibname qt%{api}help %{major}
%define qthelpd %mklibname qt%{api}help -d
%define qtuitoolsd %mklibname qt%{api}uitools -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source1:	rosa-assistant-qt%{api}.desktop
Source2:	rosa-designer-qt%{api}.desktop
Source3:	rosa-linguist-qt%{api}.desktop
Source100:	%{name}.rpmlintrc
# Same for Designer Components, needed for Qt Creator
Patch0:		qttools-opensource-src-5.14.1-designer-components-pkgconfig.patch
Patch1:		lrelease-zlib.patch
Patch2:		fix_qtdesigner_include_paths.patch
Patch3:		qttools-5.12.1-clang-7.0.patch
Patch4:		qttools-compilefix-if-qtwebkit-is-enabled.patch
Patch5:		qdoc-compile.patch
# From KDE
Patch1001:	0001-Ensure-FileAttributeSetTable-is-filled-ordered-so-we.patch
Patch1002:	0002-Drop-superfluous-network-dependency-from-assistant-h.patch
Patch1003:	0003-CMake-Fix-qt5_create_translation-for-same-named-.ts-.patch
BuildRequires:  pkgconfig(gl)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5DBus)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Qml)
BuildRequires:  pkgconfig(Qt5Quick)
BuildRequires:  pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(Qt5Sql)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
#BuildRequires:	pkgconfig(Qt5WebView)
#BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(zlib)
# not llvm on e2k
BuildRequires:	clang-devel llvm-devel

%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtdesigner}
Summary:	Qt Designer runtime libraries
Group:		System/Libraries

%description -n %{qtdesigner}
Qt Designer runtime libraries.

%files -n %{qtdesigner}
%{_qt5_libdir}/libQt%{api}Designer.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Designer.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtdesignerd}
Summary:	Development files for Qt Designer
Group:		Development/KDE and Qt
Requires:	%{qtdesigner} = %{EVRD}
Requires:	qmake%{api}
# cmake module needs its files
Requires:	qt5-designer
Requires:	%{qtuitoolsd} = %{EVRD}

%description -n %{qtdesignerd}
Development files for Qt Designer.

%files -n %{qtdesignerd}
%{_qt5_includedir}/QtDesigner
%{_qt5_libdir}/libQt%{api}Designer.so
%{_qt5_libdir}/libQt%{api}Designer.prl
%{_qt5_libdir}/cmake/Qt%{api}Designer
%{_qt5_libdir}/pkgconfig/Qt%{api}Designer.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Designer.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_designer.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_designer_private.pri

#----------------------------------------------------------------------------

%package -n %{qtdesignercomponents}
Summary:	Components for Qt Designer
Group:		System/Libraries

%description -n %{qtdesignercomponents}
Components for Qt Designer.

%files -n %{qtdesignercomponents}
%{_qt5_libdir}/libQt%{api}DesignerComponents.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}DesignerComponents.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtdesignercomponentsd}
Summary:	Development files for Qt Designer Components
Group:		Development/KDE and Qt
Requires:	%{qtdesignercomponents} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtdesignercomponentsd}
Development files for Qt Designer Components.

%files -n %{qtdesignercomponentsd}
%{_qt5_includedir}/QtDesignerComponents
%{_qt5_libdir}/libQt%{api}DesignerComponents.so
%{_qt5_libdir}/libQt%{api}DesignerComponents.prl
%{_qt5_libdir}/cmake/Qt%{api}DesignerComponents
%{_qt5_libdir}/pkgconfig/Qt%{api}DesignerComponents.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}DesignerComponents.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_designercomponents.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_designercomponents_private.pri

#----------------------------------------------------------------------------

%package -n %{qthelp}
Summary:	Runtime libraries for the Qt Help system
Group:		System/Libraries

%description -n %{qthelp}
Runtime libraries for the Qt Help system.

%files -n %{qthelp}
%{_qt5_libdir}/libQt%{api}Help.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Help.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qthelpd}
Summary:	Development files for Qt Help
Group:		Development/KDE and Qt
Requires:	%{qthelp} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qthelpd}
Development files for Qt Help, useful if you wish to add a help system
to your application.

%files -n %{qthelpd}
%{_qt5_includedir}/QtHelp
%{_qt5_libdir}/libQt%{api}Help.so
%{_qt5_libdir}/libQt%{api}Help.prl
%{_qt5_libdir}/cmake/Qt%{api}Help
%{_qt5_libdir}/pkgconfig/Qt%{api}Help.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}Help.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_help.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_help_private.pri

#----------------------------------------------------------------------------

%package -n %{qtuitoolsd}
Summary:	Development files for Qt Ui Tools
Group:		Development/KDE and Qt
Requires:	qmake%{api}

%description -n %{qtuitoolsd}
Development files for Qt Ui Tools.

%files -n %{qtuitoolsd}
%{_qt5_includedir}/QtUiPlugin
%{_qt5_includedir}/QtUiTools
%{_qt5_libdir}/libQt%{api}UiPlugin.prl
%{_qt5_libdir}/libQt%{api}UiTools.a
%{_qt5_libdir}/libQt%{api}UiTools.prl
%{_qt5_libdir}/cmake/Qt%{api}UiPlugin
%{_qt5_libdir}/cmake/Qt%{api}UiTools
%{_qt5_libdir}/pkgconfig/Qt%{api}UiPlugin.pc
%{_qt5_libdir}/pkgconfig/Qt%{api}UiTools.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}UiPlugin.pc
%{_libdir}/pkgconfig/Qt%{api}UiTools.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_uiplugin.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_uitools.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_uitools_private.pri

#----------------------------------------------------------------------------

%package -n %{oname}-assistant
Summary:	Qt help system
Group:		Development/KDE and Qt
Requires:	qt5-database-plugin-sqlite
Recommends:	qt5-assistant-i18n
Recommends:	qt5-doc

%description -n %{oname}-assistant
Qt help system.

%files -n %{oname}-assistant
%{_qt5_bindir}/assistant
%{_datadir}/applications/rosa-assistant-qt%{api}.desktop

#----------------------------------------------------------------------------

%package -n %{oname}-designer
Summary:	Qt interface design tool
Group:		Development/KDE and Qt
# Should be X11 later
Requires:	qt5-output-driver-default
# for /usr/lib/qt5/bin/uic
Requires:	pkgconfig(Qt5Gui)
Recommends:	qt5-designer-i18n

%description -n %{oname}-designer
Qt interface design tool.

%files -n %{oname}-designer
%{_qt5_bindir}/designer
%{_datadir}/applications/rosa-designer-qt%{api}.desktop
%{_qt5_plugindir}/designer

#----------------------------------------------------------------------------

%package -n %{oname}-linguist
Summary:	Translation tool for Qt based applications
Group:		Development/KDE and Qt
Requires:	%{oname}-linguist-tools = %{EVRD}
Recommends:	qt5-linguist-i18n

%description -n %{oname}-linguist
Translation tool for Qt based applications.

%files -n %{oname}-linguist
%{_qt5_bindir}/linguist
%{_datadir}/applications/rosa-linguist-qt%{api}.desktop
%dir %{_qt5_datadir}/phrasebooks
%lang(da) %{_qt5_datadir}/phrasebooks/danish.qph
%lang(nl) %{_qt5_datadir}/phrasebooks/dutch.qph
%lang(fi) %{_qt5_datadir}/phrasebooks/finnish.qph
%lang(fr) %{_qt5_datadir}/phrasebooks/french.qph
%lang(de) %{_qt5_datadir}/phrasebooks/german.qph
%lang(hu) %{_qt5_datadir}/phrasebooks/hungarian.qph
%lang(it) %{_qt5_datadir}/phrasebooks/italian.qph
%lang(ja) %{_qt5_datadir}/phrasebooks/japanese.qph
%lang(no) %{_qt5_datadir}/phrasebooks/norwegian.qph
%lang(pl) %{_qt5_datadir}/phrasebooks/polish.qph
%lang(ru) %{_qt5_datadir}/phrasebooks/russian.qph
%lang(es) %{_qt5_datadir}/phrasebooks/spanish.qph
%lang(sv) %{_qt5_datadir}/phrasebooks/swedish.qph

#----------------------------------------------------------------------------

%package -n %{oname}-linguist-tools
Summary:	Tools for creating and updating Qt Linguist translation files
Group:		Development/KDE and Qt
# Prevent circular builddep
Recommends:	%{oname}-qttranslations

%description -n %{oname}-linguist-tools
Tools for creating and updating Qt Linguist translation files.

%files -n %{oname}-linguist-tools
%{_qt5_bindir}/lconvert
%{_qt5_bindir}/lprodump
%{_qt5_bindir}/lrelease
%{_qt5_bindir}/lrelease-pro
%{_qt5_bindir}/lupdate
%{_qt5_bindir}/lupdate-pro
%{_bindir}/lconvert-qt%{api}
%{_bindir}/lrelease-qt%{api}
%{_bindir}/lupdate-qt%{api}
%{_qt5_libdir}/cmake/Qt%{api}LinguistTools

#----------------------------------------------------------------------------

%package -n %{oname}-tools
Summary:	Tools for Qt 5
Group:		Development/KDE and Qt
Requires:	%{_lib}qt5gui5-minimal
Requires:	qt5-database-plugin-sqlite

%description -n %{oname}-tools
Tools for Qt 5.

%files -n %{oname}-tools
%{_bindir}/qdbus
%{_bindir}/qtpaths
%{_bindir}/qdbus-qt%{api}
%{_bindir}/qtpaths-qt%{api}
%{_qt5_bindir}/pixeltool
%{_qt5_bindir}/qcollectiongenerator
%{_qt5_bindir}/qdbus
%{_qt5_bindir}/qdbusviewer
%{_qt5_bindir}/qdistancefieldgenerator
%{_qt5_bindir}/qhelpgenerator
%{_qt5_bindir}/qtattributionsscanner
%{_qt5_bindir}/qtdiag
%{_qt5_bindir}/qtpaths
%{_qt5_bindir}/qtplugininfo
%{_qt5_libdir}/cmake/Qt%{api}AttributionsScannerTools

#----------------------------------------------------------------------------

%package -n qdoc%{api}
Summary:	Qt documentation generator, version 5
Group:		Development/KDE and Qt

%description -n qdoc%{api}
Qt documentation generator, version 5.

%files -n qdoc%{api}
%optional %{_qt5_bindir}/qdoc
%optional %{_qt5_libdir}/cmake/Qt%{api}DocTools

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qdoc.qch
%{_qt5_docdir}/qtassistant.qch
%{_qt5_docdir}/qtdesigner.qch
%{_qt5_docdir}/qtdistancefieldgenerator.qch
%{_qt5_docdir}/qthelp.qch
%{_qt5_docdir}/qtlinguist.qch
%{_qt5_docdir}/qtuitools.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/assistant/
%{_qt5_exampledir}/designer/
%{_qt5_exampledir}/help/
%{_qt5_exampledir}/linguist/
%{_qt5_exampledir}/uitools/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}
# Hack for *** No rule to make target '../../../../shared/qtpropertybrowser/qtpropertybrowserutils.cpp'
ln -sf src/shared/ shared
%{_qt5_prefix}/bin/syncqt.pl -version %{version}

%build
%qmake_qt5
%make_build STRIP=true

%if %{with docs}
%make docs
%endif

%install
%makeinstall_qt

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

# Let's make life easier for packagers
mkdir -p %{buildroot}%{_bindir}
for i in lrelease lupdate lconvert qdbus qtpaths; do
    ln -s ../%{_lib}/qt%{api}/bin/$i %{buildroot}%{_bindir}/$i-qt%{api}
done

ln -s ../%{_lib}/qt%{api}/bin/qdbus %{buildroot}%{_bindir}/qdbus

ln -s ../%{_lib}/qt%{api}/bin/qtpaths %{buildroot}%{_bindir}/qtpaths

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# Workaround for
# *** ERROR: same build ID in nonidentical files!
#        /usr/lib/qt5/bin/qdbuscpp2xml
#   and  /usr/lib/qt5/bin/moc
# ...
# while generating debug info
find %{buildroot} -type f -perm -0755 |grep -vE '\.(so|qml|sh|pl|ttf|eot|woff)' |xargs %__strip --strip-unneeded

# Install .desktop files for assistant, designer and linguist
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/applications

sed -i s,"/usr/lib/qt5/bin","%{_qt5_bindir}",g %{buildroot}%{_datadir}/applications/*.desktop

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16840 |21mr|qt5-qttranslations-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define oname qt5

%define module qttranslations

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		System/Internationalization
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
Requires:	qt5-assistant-i18n
Requires:	qt5-designer-i18n
Requires:	qt5-linguist-i18n
Requires:	qt5-qtcore-i18n
Requires:	qt5-qtdeclarative-i18n
Requires:	qt5-qtmultimedia-i18n
Requires:	qt5-qtquickcontrols-i18n
Requires:	qt5-qtquickcontrols2-i18n
Requires:	qt5-qtscript-i18n
Requires:	qt5-qtwebengine-i18n
Requires:	qt5-qtwebsockets-i18n
Requires:	qt5-qtxmlpatterns-i18n
BuildArch:	noarch

%description
Version 5 of the Qt toolkit (%{module} packages).

%files

#----------------------------------------------------------------------------

%package -n %{oname}-assistant-i18n
Summary:	Qt 5 Assistant translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-assistant-i18n
Qt 5 Assistant translations.

%files -n %{oname}-assistant-i18n
%lang(ar) %{_qt5_translationsdir}/assistant_ar.qm
%lang(bg) %{_qt5_translationsdir}/assistant_bg.qm
%lang(cs) %{_qt5_translationsdir}/assistant_cs.qm
%lang(da) %{_qt5_translationsdir}/assistant_da.qm
%lang(de) %{_qt5_translationsdir}/assistant_de.qm
%lang(en) %{_qt5_translationsdir}/assistant_en.qm
%lang(es) %{_qt5_translationsdir}/assistant_es.qm
%lang(fr) %{_qt5_translationsdir}/assistant_fr.qm
%lang(hu) %{_qt5_translationsdir}/assistant_hu.qm
%lang(ja) %{_qt5_translationsdir}/assistant_ja.qm
%lang(ko) %{_qt5_translationsdir}/assistant_ko.qm
%lang(pl) %{_qt5_translationsdir}/assistant_pl.qm
%lang(ru) %{_qt5_translationsdir}/assistant_ru.qm
%lang(sk) %{_qt5_translationsdir}/assistant_sk.qm
%lang(sl) %{_qt5_translationsdir}/assistant_sl.qm
%lang(uk) %{_qt5_translationsdir}/assistant_uk.qm
%lang(tr) %{_qt5_translationsdir}/assistant_tr.qm
%lang(zh_CN) %{_qt5_translationsdir}/assistant_zh_CN.qm
%lang(zh_TW) %{_qt5_translationsdir}/assistant_zh_TW.qm
%lang(hr) %{_qt5_translationsdir}/assistant_hr.qm
%lang(nl) %{_qt5_translationsdir}/assistant_nl.qm
%lang(pt_BR) %{_qt5_translationsdir}/assistant_pt_BR.qm

#----------------------------------------------------------------------------

%package -n %{oname}-designer-i18n
Summary:	Qt 5 Designer translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-designer-i18n
Qt 5 Designer translations.

%files -n %{oname}-designer-i18n
%lang(ar) %{_qt5_translationsdir}/designer_ar.qm
%lang(bg) %{_qt5_translationsdir}/designer_bg.qm
%lang(cs) %{_qt5_translationsdir}/designer_cs.qm
%lang(da) %{_qt5_translationsdir}/designer_da.qm
%lang(de) %{_qt5_translationsdir}/designer_de.qm
%lang(en) %{_qt5_translationsdir}/designer_en.qm
%lang(es) %{_qt5_translationsdir}/designer_es.qm
%lang(fr) %{_qt5_translationsdir}/designer_fr.qm
%lang(hu) %{_qt5_translationsdir}/designer_hu.qm
%lang(ja) %{_qt5_translationsdir}/designer_ja.qm
%lang(ko) %{_qt5_translationsdir}/designer_ko.qm
%lang(pl) %{_qt5_translationsdir}/designer_pl.qm
%lang(ru) %{_qt5_translationsdir}/designer_ru.qm
%lang(sk) %{_qt5_translationsdir}/designer_sk.qm
%lang(sl) %{_qt5_translationsdir}/designer_sl.qm
%lang(uk) %{_qt5_translationsdir}/designer_uk.qm
%lang(tr) %{_qt5_translationsdir}/designer_tr.qm
%lang(zh_CN) %{_qt5_translationsdir}/designer_zh_CN.qm
%lang(zh_TW) %{_qt5_translationsdir}/designer_zh_TW.qm
%lang(hr) %{_qt5_translationsdir}/designer_hr.qm
%lang(nl) %{_qt5_translationsdir}/designer_nl.qm

#----------------------------------------------------------------------------

%package -n %{oname}-linguist-i18n
Summary:	Qt 5 Linguist translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-linguist-i18n
Qt 5 Linguist translations.

%files -n %{oname}-linguist-i18n
%lang(ar) %{_qt5_translationsdir}/linguist_ar.qm
%lang(bg) %{_qt5_translationsdir}/linguist_bg.qm
%lang(cs) %{_qt5_translationsdir}/linguist_cs.qm
%lang(da) %{_qt5_translationsdir}/linguist_da.qm
%lang(de) %{_qt5_translationsdir}/linguist_de.qm
%lang(en) %{_qt5_translationsdir}/linguist_en.qm
%lang(es) %{_qt5_translationsdir}/linguist_es.qm
%lang(fr) %{_qt5_translationsdir}/linguist_fr.qm
%lang(hu) %{_qt5_translationsdir}/linguist_hu.qm
%lang(it) %{_qt5_translationsdir}/linguist_it.qm
%lang(ja) %{_qt5_translationsdir}/linguist_ja.qm
%lang(ko) %{_qt5_translationsdir}/linguist_ko.qm
%lang(pl) %{_qt5_translationsdir}/linguist_pl.qm
%lang(ru) %{_qt5_translationsdir}/linguist_ru.qm
%lang(sk) %{_qt5_translationsdir}/linguist_sk.qm
%lang(sl) %{_qt5_translationsdir}/linguist_sl.qm
%lang(sv) %{_qt5_translationsdir}/linguist_sv.qm
%lang(uk) %{_qt5_translationsdir}/linguist_uk.qm
%lang(tr) %{_qt5_translationsdir}/linguist_tr.qm
%lang(zh_CN) %{_qt5_translationsdir}/linguist_zh_CN.qm
%lang(zh_TW) %{_qt5_translationsdir}/linguist_zh_TW.qm
%lang(hr) %{_qt5_translationsdir}/linguist_hr.qm
%lang(nl) %{_qt5_translationsdir}/linguist_nl.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtcore-i18n
Summary:	Qt 5 Core translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtcore-i18n
Qt 5 Core translations.

%files -n %{oname}-qtcore-i18n
%dir %{_qt5_translationsdir}
%lang(ar) %{_qt5_translationsdir}/qt_ar.qm
%lang(bg) %{_qt5_translationsdir}/qt_bg.qm
%lang(ca) %{_qt5_translationsdir}/qt_ca.qm
%lang(cs) %{_qt5_translationsdir}/qt_cs.qm
%lang(da) %{_qt5_translationsdir}/qt_da.qm
%lang(de) %{_qt5_translationsdir}/qt_de.qm
%lang(en) %{_qt5_translationsdir}/qt_en.qm
%lang(es) %{_qt5_translationsdir}/qt_es.qm
%lang(fa) %{_qt5_translationsdir}/qt_fa.qm
%lang(fi) %{_qt5_translationsdir}/qt_fi.qm
%lang(fr) %{_qt5_translationsdir}/qt_fr.qm
%lang(gd) %{_qt5_translationsdir}/qt_gd.qm
%lang(gl) %{_qt5_translationsdir}/qt_gl.qm
%lang(he) %{_qt5_translationsdir}/qt_he.qm
%lang(hu) %{_qt5_translationsdir}/qt_hu.qm
%lang(it) %{_qt5_translationsdir}/qt_it.qm
%lang(ja) %{_qt5_translationsdir}/qt_ja.qm
%lang(ko) %{_qt5_translationsdir}/qt_ko.qm
%lang(lt) %{_qt5_translationsdir}/qt_lt.qm
%lang(lv) %{_qt5_translationsdir}/qt_lv.qm
%lang(pl) %{_qt5_translationsdir}/qt_pl.qm
%lang(pt) %{_qt5_translationsdir}/qt_pt_PT.qm
%lang(ru) %{_qt5_translationsdir}/qt_ru.qm
%lang(sk) %{_qt5_translationsdir}/qt_sk.qm
%lang(sl) %{_qt5_translationsdir}/qt_sl.qm
%lang(sv) %{_qt5_translationsdir}/qt_sv.qm
%lang(uk) %{_qt5_translationsdir}/qt_uk.qm
%lang(tr) %{_qt5_translationsdir}/qt_tr.qm
%lang(hr) %{_qt5_translationsdir}/qt_hr.qm
%lang(nl) %{_qt5_translationsdir}/qt_nl.qm
%lang(nn) %{_qt5_translationsdir}/qt_nn.qm
%lang(pt_BR) %{_qt5_translationsdir}/qt_pt_BR.qm
%lang(zh_CN) %{_qt5_translationsdir}/qt_zh_CN.qm
%lang(zh_TW) %{_qt5_translationsdir}/qt_zh_TW.qm
%lang(ar) %{_qt5_translationsdir}/qt_help_ar.qm
%lang(bg) %{_qt5_translationsdir}/qt_help_bg.qm
%lang(ca) %{_qt5_translationsdir}/qt_help_ca.qm
%lang(cs) %{_qt5_translationsdir}/qt_help_cs.qm
%lang(da) %{_qt5_translationsdir}/qt_help_da.qm
%lang(de) %{_qt5_translationsdir}/qt_help_de.qm
%lang(en) %{_qt5_translationsdir}/qt_help_en.qm
%lang(es) %{_qt5_translationsdir}/qt_help_es.qm
%lang(fr) %{_qt5_translationsdir}/qt_help_fr.qm
%lang(gl) %{_qt5_translationsdir}/qt_help_gl.qm
%lang(hu) %{_qt5_translationsdir}/qt_help_hu.qm
%lang(it) %{_qt5_translationsdir}/qt_help_it.qm
%lang(ja) %{_qt5_translationsdir}/qt_help_ja.qm
%lang(ko) %{_qt5_translationsdir}/qt_help_ko.qm
%lang(pl) %{_qt5_translationsdir}/qt_help_pl.qm
%lang(ru) %{_qt5_translationsdir}/qt_help_ru.qm
%lang(sk) %{_qt5_translationsdir}/qt_help_sk.qm
%lang(sl) %{_qt5_translationsdir}/qt_help_sl.qm
%lang(uk) %{_qt5_translationsdir}/qt_help_uk.qm
%lang(tr) %{_qt5_translationsdir}/qt_help_tr.qm
%lang(zh_CN) %{_qt5_translationsdir}/qt_help_zh_CN.qm
%lang(zh_TW) %{_qt5_translationsdir}/qt_help_zh_TW.qm
%lang(hr) %{_qt5_translationsdir}/qt_help_hr.qm
%lang(nl) %{_qt5_translationsdir}/qt_help_nl.qm
%lang(nn) %{_qt5_translationsdir}/qt_help_nn.qm
%lang(pt_BR) %{_qt5_translationsdir}/qt_help_pt_BR.qm
%lang(ar) %{_qt5_translationsdir}/qtbase_ar.qm
%lang(bg) %{_qt5_translationsdir}/qtbase_bg.qm
%lang(ca) %{_qt5_translationsdir}/qtbase_ca.qm
%lang(cs) %{_qt5_translationsdir}/qtbase_cs.qm
%lang(da) %{_qt5_translationsdir}/qtbase_da.qm
%lang(de) %{_qt5_translationsdir}/qtbase_de.qm
%lang(en) %{_qt5_translationsdir}/qtbase_en.qm
%lang(es) %{_qt5_translationsdir}/qtbase_es.qm
%lang(fi) %{_qt5_translationsdir}/qtbase_fi.qm
%lang(fr) %{_qt5_translationsdir}/qtbase_fr.qm
%lang(gd) %{_qt5_translationsdir}/qtbase_gd.qm
%lang(he) %{_qt5_translationsdir}/qtbase_he.qm
%lang(hu) %{_qt5_translationsdir}/qtbase_hu.qm
%lang(it) %{_qt5_translationsdir}/qtbase_it.qm
%lang(ja) %{_qt5_translationsdir}/qtbase_ja.qm
%lang(ko) %{_qt5_translationsdir}/qtbase_ko.qm
%lang(lv) %{_qt5_translationsdir}/qtbase_lv.qm
%lang(pl) %{_qt5_translationsdir}/qtbase_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtbase_ru.qm
%lang(sk) %{_qt5_translationsdir}/qtbase_sk.qm
%lang(uk) %{_qt5_translationsdir}/qtbase_uk.qm
%lang(tr) %{_qt5_translationsdir}/qtbase_tr.qm
%lang(zh_TW) %{_qt5_translationsdir}/qtbase_zh_TW.qm
%lang(fa) %{_qt5_translationsdir}/qtbase_fa.qm
%lang(hr) %{_qt5_translationsdir}/qtbase_hr.qm
%lang(nl) %{_qt5_translationsdir}/qtbase_nl.qm
%lang(nn) %{_qt5_translationsdir}/qtbase_nn.qm
%lang(pt_BR) %{_qt5_translationsdir}/qtbase_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}/qtbase_zh_CN.qm
%lang(bg) %{_qt5_translationsdir}/qtconnectivity_bg.qm
%lang(ca) %{_qt5_translationsdir}/qtconnectivity_ca.qm
%lang(da) %{_qt5_translationsdir}/qtconnectivity_da.qm
%lang(de) %{_qt5_translationsdir}/qtconnectivity_de.qm
%lang(en) %{_qt5_translationsdir}/qtconnectivity_en.qm
%lang(es) %{_qt5_translationsdir}/qtconnectivity_es.qm
%lang(hu) %{_qt5_translationsdir}/qtconnectivity_hu.qm
%lang(ko) %{_qt5_translationsdir}/qtconnectivity_ko.qm
%lang(pl) %{_qt5_translationsdir}/qtconnectivity_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtconnectivity_ru.qm
%lang(uk) %{_qt5_translationsdir}/qtconnectivity_uk.qm
%lang(tr) %{_qt5_translationsdir}/qtconnectivity_tr.qm
%lang(hr) %{_qt5_translationsdir}/qtconnectivity_hr.qm
%lang(nl) %{_qt5_translationsdir}/qtconnectivity_nl.qm
%lang(pt_BR) %{_qt5_translationsdir}/qtconnectivity_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}/qtconnectivity_zh_CN.qm
%lang(bg) %{_qt5_translationsdir}/qtlocation_bg.qm
%lang(ca) %{_qt5_translationsdir}/qtlocation_ca.qm
%lang(da) %{_qt5_translationsdir}/qtlocation_da.qm
%lang(de) %{_qt5_translationsdir}/qtlocation_de.qm
%lang(en) %{_qt5_translationsdir}/qtlocation_en.qm
%lang(es) %{_qt5_translationsdir}/qtlocation_es.qm
%lang(fi) %{_qt5_translationsdir}/qtlocation_fi.qm
%lang(fr) %{_qt5_translationsdir}/qtlocation_fr.qm
%lang(hu) %{_qt5_translationsdir}/qtlocation_hu.qm
%lang(ko) %{_qt5_translationsdir}/qtlocation_ko.qm
%lang(pl) %{_qt5_translationsdir}/qtlocation_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtlocation_ru.qm
%lang(uk) %{_qt5_translationsdir}/qtlocation_uk.qm
%lang(tr) %{_qt5_translationsdir}/qtlocation_tr.qm
%lang(hr) %{_qt5_translationsdir}/qtlocation_hr.qm
%lang(nl) %{_qt5_translationsdir}/qtlocation_nl.qm
%lang(pt_BR) %{_qt5_translationsdir}/qtlocation_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}/qtlocation_zh_CN.qm
%lang(de) %{_qt5_translationsdir}/qtserialport_de.qm
%lang(en) %{_qt5_translationsdir}/qtserialport_en.qm
%lang(es) %{_qt5_translationsdir}/qtserialport_es.qm
%lang(ja) %{_qt5_translationsdir}/qtserialport_ja.qm
%lang(ko) %{_qt5_translationsdir}/qtserialport_ko.qm
%lang(pl) %{_qt5_translationsdir}/qtserialport_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtserialport_ru.qm
%lang(uk) %{_qt5_translationsdir}/qtserialport_uk.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtdeclarative-i18n
Summary:	Qt 5 Declarative translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtdeclarative-i18n
Qt 5 Declarative translations.

%files -n %{oname}-qtdeclarative-i18n
%lang(bg) %{_qt5_translationsdir}/qtdeclarative_bg.qm
%lang(da) %{_qt5_translationsdir}/qtdeclarative_da.qm
%lang(de) %{_qt5_translationsdir}/qtdeclarative_de.qm
%lang(en) %{_qt5_translationsdir}/qtdeclarative_en.qm
%lang(es) %{_qt5_translationsdir}/qtdeclarative_es.qm
%lang(fi) %{_qt5_translationsdir}/qtdeclarative_fi.qm
%lang(fr) %{_qt5_translationsdir}/qtdeclarative_fr.qm
%lang(hu) %{_qt5_translationsdir}/qtdeclarative_hu.qm
%lang(ja) %{_qt5_translationsdir}/qtdeclarative_ja.qm
%lang(ko) %{_qt5_translationsdir}/qtdeclarative_ko.qm
%lang(lv) %{_qt5_translationsdir}/qtdeclarative_lv.qm
%lang(pl) %{_qt5_translationsdir}/qtdeclarative_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtdeclarative_ru.qm
%lang(sk) %{_qt5_translationsdir}/qtdeclarative_sk.qm
%lang(uk) %{_qt5_translationsdir}/qtdeclarative_uk.qm
%lang(tr) %{_qt5_translationsdir}/qtdeclarative_tr.qm
%lang(fa) %{_qt5_translationsdir}//qtdeclarative_fa.qm
%lang(hr) %{_qt5_translationsdir}//qtdeclarative_hr.qm
%lang(nl) %{_qt5_translationsdir}//qtdeclarative_nl.qm
%lang(pt_BR) %{_qt5_translationsdir}//qtdeclarative_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}//qtdeclarative_zh_CN.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtmultimedia-i18n
Summary:	Qt 5 Multimedia translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtmultimedia-i18n
Qt 5 Multimedia translations.

%files -n %{oname}-qtmultimedia-i18n
%lang(ar) %{_qt5_translationsdir}/qtmultimedia_ar.qm
%lang(bg) %{_qt5_translationsdir}/qtmultimedia_bg.qm
%lang(ca) %{_qt5_translationsdir}/qtmultimedia_ca.qm
%lang(cs) %{_qt5_translationsdir}/qtmultimedia_cs.qm
%lang(da) %{_qt5_translationsdir}/qtmultimedia_da.qm
%lang(de) %{_qt5_translationsdir}/qtmultimedia_de.qm
%lang(en) %{_qt5_translationsdir}/qtmultimedia_en.qm
%lang(es) %{_qt5_translationsdir}/qtmultimedia_es.qm
%lang(fi) %{_qt5_translationsdir}/qtmultimedia_fi.qm
%lang(fr) %{_qt5_translationsdir}/qtmultimedia_fr.qm
%lang(hu) %{_qt5_translationsdir}/qtmultimedia_hu.qm
%lang(it) %{_qt5_translationsdir}/qtmultimedia_it.qm
%lang(ja) %{_qt5_translationsdir}/qtmultimedia_ja.qm
%lang(ko) %{_qt5_translationsdir}/qtmultimedia_ko.qm
%lang(pl) %{_qt5_translationsdir}/qtmultimedia_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtmultimedia_ru.qm
%lang(sk) %{_qt5_translationsdir}/qtmultimedia_sk.qm
%lang(uk) %{_qt5_translationsdir}/qtmultimedia_uk.qm
%lang(tr) %{_qt5_translationsdir}/qtmultimedia_tr.qm
%lang(zh_TW) %{_qt5_translationsdir}/qtmultimedia_zh_TW.qm
%lang(fa) %{_qt5_translationsdir}/qtmultimedia_fa.qm
%lang(hr) %{_qt5_translationsdir}/qtmultimedia_hr.qm
%lang(nl) %{_qt5_translationsdir}/qtmultimedia_nl.qm
%lang(nn) %{_qt5_translationsdir}/qtmultimedia_nn.qm
%lang(pt_BR) %{_qt5_translationsdir}/qtmultimedia_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}/qtmultimedia_zh_CN.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtquickcontrols-i18n
Summary:	Qt 5 Quick Controls translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtquickcontrols-i18n
Qt 5 Quick Controls translations.

%files -n %{oname}-qtquickcontrols-i18n
%lang(bg) %{_qt5_translationsdir}/qtquickcontrols_bg.qm
%lang(ca) %{_qt5_translationsdir}/qtquickcontrols_ca.qm
%lang(da) %{_qt5_translationsdir}/qtquickcontrols_da.qm
%lang(de) %{_qt5_translationsdir}/qtquickcontrols_de.qm
%lang(en) %{_qt5_translationsdir}/qtquickcontrols_en.qm
%lang(fi) %{_qt5_translationsdir}/qtquickcontrols_fi.qm
%lang(fr) %{_qt5_translationsdir}/qtquickcontrols_fr.qm
%lang(ja) %{_qt5_translationsdir}/qtquickcontrols_ja.qm
%lang(ru) %{_qt5_translationsdir}/qtquickcontrols_ru.qm
%lang(uk) %{_qt5_translationsdir}/qtquickcontrols_uk.qm
%lang(tr) %{_qt5_translationsdir}/qtquickcontrols_tr.qm
%lang(ko) %{_qt5_translationsdir}/qtquickcontrols_ko.qm
%lang(zh_TW) %{_qt5_translationsdir}/qtquickcontrols_zh_TW.qm
%lang(hr) %{_qt5_translationsdir}//qtquickcontrols_hr.qm
%lang(nl) %{_qt5_translationsdir}//qtquickcontrols_nl.qm
%lang(nn) %{_qt5_translationsdir}//qtquickcontrols_nn.qm
%lang(pr_BR) %{_qt5_translationsdir}//qtquickcontrols_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}//qtquickcontrols_zh_CN.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtquickcontrols2-i18n
Summary:	Qt 5 Quick Controls 2 translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtquickcontrols2-i18n
Qt 5 Quick Controls 2 translations.

%files -n %{oname}-qtquickcontrols2-i18n
%lang(ca) %{_qt5_translationsdir}/qtquickcontrols2_ca.qm
%lang(ar) %{_qt5_translationsdir}/qtquickcontrols2_ar.qm
%lang(bg) %{_qt5_translationsdir}/qtquickcontrols2_bg.qm
%lang(da) %{_qt5_translationsdir}/qtquickcontrols2_da.qm
%lang(en) %{_qt5_translationsdir}/qtquickcontrols2_en.qm
%lang(hu) %{_qt5_translationsdir}/qtquickcontrols2_hu.qm
%lang(ko) %{_qt5_translationsdir}/qtquickcontrols2_ko.qm
%lang(uk) %{_qt5_translationsdir}/qtquickcontrols2_uk.qm
%lang(tr) %{_qt5_translationsdir}/qtquickcontrols2_tr.qm
%lang(zh_TW) %{_qt5_translationsdir}/qtquickcontrols2_zh_TW.qm
%lang(hr) %{_qt5_translationsdir}//qtquickcontrols2_hr.qm
%lang(nl) %{_qt5_translationsdir}//qtquickcontrols2_nl.qm
%lang(nn) %{_qt5_translationsdir}//qtquickcontrols2_nn.qm
%lang(pt_BR) %{_qt5_translationsdir}//qtquickcontrols2_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}//qtquickcontrols2_zh_CN.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtscript-i18n
Summary:	Qt 5 Script translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtscript-i18n
Qt 5 Script translations.

%files -n %{oname}-qtscript-i18n
%lang(ar) %{_qt5_translationsdir}/qtscript_ar.qm
%lang(bg) %{_qt5_translationsdir}/qtscript_bg.qm
%lang(ca) %{_qt5_translationsdir}/qtscript_ca.qm
%lang(cs) %{_qt5_translationsdir}/qtscript_cs.qm
%lang(da) %{_qt5_translationsdir}/qtscript_da.qm
%lang(de) %{_qt5_translationsdir}/qtscript_de.qm
%lang(en) %{_qt5_translationsdir}/qtscript_en.qm
%lang(es) %{_qt5_translationsdir}/qtscript_es.qm
%lang(fi) %{_qt5_translationsdir}/qtscript_fi.qm
%lang(fr) %{_qt5_translationsdir}/qtscript_fr.qm
%lang(he) %{_qt5_translationsdir}/qtscript_he.qm
%lang(hu) %{_qt5_translationsdir}/qtscript_hu.qm
%lang(it) %{_qt5_translationsdir}/qtscript_it.qm
%lang(ja) %{_qt5_translationsdir}/qtscript_ja.qm
%lang(ko) %{_qt5_translationsdir}/qtscript_ko.qm
%lang(lv) %{_qt5_translationsdir}/qtscript_lv.qm
%lang(pl) %{_qt5_translationsdir}/qtscript_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtscript_ru.qm
%lang(sk) %{_qt5_translationsdir}/qtscript_sk.qm
%lang(uk) %{_qt5_translationsdir}/qtscript_uk.qm
%lang(tr) %{_qt5_translationsdir}/qtscript_tr.qm
%lang(fa) %{_qt5_translationsdir}/qtscript_fa.qm
%lang(hr) %{_qt5_translationsdir}/qtscript_hr.qm
%lang(nl) %{_qt5_translationsdir}/qtscript_nl.qm
%lang(nn) %{_qt5_translationsdir}/qtscript_nn.qm
%lang(pt_BR) %{_qt5_translationsdir}/qtscript_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}/qtscript_zh_CN.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtwebengine-i18n
Summary:	Qt 5 WebEngine translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtwebengine-i18n
Qt 5 WebEngine translations.

%files -n %{oname}-qtwebengine-i18n
%lang(ca) %{_qt5_translationsdir}/qtwebengine_ca.qm
%lang(de) %{_qt5_translationsdir}/qtwebengine_de.qm
%lang(en) %{_qt5_translationsdir}/qtwebengine_en.qm
%lang(es) %{_qt5_translationsdir}/qtwebengine_es.qm
%lang(ko) %{_qt5_translationsdir}/qtwebengine_ko.qm
%lang(pl) %{_qt5_translationsdir}/qtwebengine_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtwebengine_ru.qm
%lang(uk) %{_qt5_translationsdir}/qtwebengine_uk.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtwebsockets-i18n
Summary:	Qt 5 WebSockets translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtwebsockets-i18n
Qt 5 WebSockets translations.

%files -n %{oname}-qtwebsockets-i18n
%lang(ca) %{_qt5_translationsdir}/qtwebsockets_ca.qm
%lang(de) %{_qt5_translationsdir}/qtwebsockets_de.qm
%lang(en) %{_qt5_translationsdir}/qtwebsockets_en.qm
%lang(es) %{_qt5_translationsdir}/qtwebsockets_es.qm
%lang(fr) %{_qt5_translationsdir}/qtwebsockets_fr.qm
%lang(ja) %{_qt5_translationsdir}/qtwebsockets_ja.qm
%lang(ko) %{_qt5_translationsdir}/qtwebsockets_ko.qm
%lang(pl) %{_qt5_translationsdir}/qtwebsockets_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtwebsockets_ru.qm
%lang(uk) %{_qt5_translationsdir}/qtwebsockets_uk.qm

#----------------------------------------------------------------------------

%package -n %{oname}-qtxmlpatterns-i18n
Summary:	Qt 5 XSLT engine translations
Group:		System/Internationalization
BuildArch:	noarch

%description -n %{oname}-qtxmlpatterns-i18n
Qt 5 XSLT engine translations.

%files -n %{oname}-qtxmlpatterns-i18n
%lang(bg) %{_qt5_translationsdir}/qtxmlpatterns_bg.qm
%lang(ca) %{_qt5_translationsdir}/qtxmlpatterns_ca.qm
%lang(cs) %{_qt5_translationsdir}/qtxmlpatterns_cs.qm
%lang(da) %{_qt5_translationsdir}/qtxmlpatterns_da.qm
%lang(de) %{_qt5_translationsdir}/qtxmlpatterns_de.qm
%lang(en) %{_qt5_translationsdir}/qtxmlpatterns_en.qm
%lang(es) %{_qt5_translationsdir}/qtxmlpatterns_es.qm
%lang(fr) %{_qt5_translationsdir}/qtxmlpatterns_fr.qm
%lang(hu) %{_qt5_translationsdir}/qtxmlpatterns_hu.qm
%lang(it) %{_qt5_translationsdir}/qtxmlpatterns_it.qm
%lang(ja) %{_qt5_translationsdir}/qtxmlpatterns_ja.qm
%lang(ko) %{_qt5_translationsdir}/qtxmlpatterns_ko.qm
%lang(pl) %{_qt5_translationsdir}/qtxmlpatterns_pl.qm
%lang(ru) %{_qt5_translationsdir}/qtxmlpatterns_ru.qm
%lang(sk) %{_qt5_translationsdir}/qtxmlpatterns_sk.qm
%lang(uk) %{_qt5_translationsdir}/qtxmlpatterns_uk.qm
%lang(fa) %{_qt5_translationsdir}/qtxmlpatterns_fa.qm
%lang(hr) %{_qt5_translationsdir}/qtxmlpatterns_hr.qm
%lang(nl) %{_qt5_translationsdir}/qtxmlpatterns_nl.qm
%lang(nn) %{_qt5_translationsdir}/qtxmlpatterns_nn.qm
%lang(zh_TW) %{_qt5_translationsdir}/qtxmlpatterns_zh_TW.qm
%lang(pt_BR) %{_qt5_translationsdir}/qtxmlpatterns_pt_BR.qm
%lang(zn_CN) %{_qt5_translationsdir}/qtxmlpatterns_zh_CN.qm

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}
%{_libdir}/qt5/bin/syncqt.pl -version %{version}

%build
%qmake_qt5
%make STRIP=true

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

# qtconfig doesn't exist anymore - we don't need its translations
rm -f %{buildroot}%{_qt5_translationsdir}/qtconfig_*.qm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16841 |21mr|qt5-qtvirtualkeyboard-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5

%define module qtvirtualkeyboard

%define qmlqtvirtualkeyboard %mklibname qt5-qtvirtualkeyboard-qml
%define qtvirtualkeyboard %mklibname qt%{api}virtualkeyboard %{major}
%define qtvirtualkeyboardd %mklibname qt%{api}virtualkeyboard -d
%define qthunspellinputmethod %mklibname qt%{api}hunspellinputmethod %{major}
%define qthunspellinputmethodd %mklibname qt%{api}hunspellinputmethod -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
# ROSA specific
Patch2001:	fix.myspell-dicts.patch
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Svg) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-xfixes)
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif
Requires:	qt5-qtvirtualkeyboard-qml = %{EVRD}

%description
Version 5 of the Qt toolkit (%{module} packages).

%files

#--------------------------------------------------------------------

%package -n %{qmlqtvirtualkeyboard}
Summary:	QML plugin for Qt 5 Virtual Keyboard module
Group:		System/Libraries
Provides:	qt5-qtvirtualkeyboard-qml = %{EVRD}

%description -n %{qmlqtvirtualkeyboard}
QML plugin for Qt 5 Virtual Keyboard module.

%files -n %{qmlqtvirtualkeyboard}
%{_qt5_prefix}/qml/QtQuick/VirtualKeyboard/

#----------------------------------------------------------------------------

%package -n %{qtvirtualkeyboard}
Summary:	Qt Virtual Keyboard module
Group:		System/Libraries
Requires:	%{qmlqtvirtualkeyboard} = %{EVRD}

%description -n %{qtvirtualkeyboard}
Qt Virtual Keyboard module.

%files -n %{qtvirtualkeyboard}
%{_qt5_libdir}/libQt%{api}VirtualKeyboard.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}VirtualKeyboard.so.%{major}*
%endif
%{_qt5_plugindir}/platforminputcontexts/libqtvirtualkeyboardplugin.so
%{_qt5_plugindir}/virtualkeyboard/libqtvirtualkeyboard_hangul.so
%{_qt5_plugindir}/virtualkeyboard/libqtvirtualkeyboard_hunspell.so
%{_qt5_plugindir}/virtualkeyboard/libqtvirtualkeyboard_openwnn.so
%{_qt5_plugindir}/virtualkeyboard/libqtvirtualkeyboard_pinyin.so
%{_qt5_plugindir}/virtualkeyboard/libqtvirtualkeyboard_tcime.so
%{_qt5_plugindir}/virtualkeyboard/libqtvirtualkeyboard_thai.so

#----------------------------------------------------------------------------

%package -n %{qtvirtualkeyboardd}
Summary:	Development files for Qt's Virtual Keyboard
Group:		Development/KDE and Qt
Requires:	%{qtvirtualkeyboard} = %{EVRD}
Requires:	qmake%{api}
Provides:	qt5-qtvirtualkeyboard-devel = %{EVRD}
Provides:	qt5-virtualkeyboard-devel = %{EVRD}

%description -n %{qtvirtualkeyboardd}
Development files for Qt's Virtual Keyboard.

%files -n %{qtvirtualkeyboardd}
%{_qt5_includedir}/QtVirtualKeyboard
%{_qt5_libdir}/libQt%{api}VirtualKeyboard.so
%{_qt5_libdir}/libQt%{api}VirtualKeyboard.prl
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt%{api}Gui_QVirtualKeyboardPlugin.cmake
%{_qt5_libdir}/cmake/Qt%{api}VirtualKeyboard
%{_qt5_libdir}/pkgconfig/Qt%{api}VirtualKeyboard.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}VirtualKeyboard.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_virtualkeyboard.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_virtualkeyboard_private.pri

#----------------------------------------------------------------------------

%package -n %{qthunspellinputmethod}
Summary:	Qt Virtual Keyboard (Hunspell Input Method) module
Group:		System/Libraries

%description -n %{qthunspellinputmethod}
Qt Virtual Keyboard (Hunspell Input Method) module.

%files -n %{qthunspellinputmethod}
%{_qt5_libdir}/libQt%{api}HunspellInputMethod.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}HunspellInputMethod.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qthunspellinputmethodd}
Summary:	Development files for Qt's Virtual Keyboard (Hunspell Input Method)
Group:		Development/KDE and Qt
Requires:	%{qthunspellinputmethod} = %{EVRD}
Requires:	qmake%{api}
Provides:	qt5-qthunspellinputmethod-devel = %{EVRD}
Provides:	qt5-hunspellinputmethod-devel = %{EVRD}

%description -n %{qthunspellinputmethodd}
Development files for Qt's Virtual Keyboard (Hunspell Input Method).

%files -n %{qthunspellinputmethodd}
%{_qt5_includedir}/QtHunspellInputMethod
%{_qt5_libdir}/libQt%{api}HunspellInputMethod.so
%{_qt5_libdir}/libQt%{api}HunspellInputMethod.prl
%{_qt5_libdir}/cmake/Qt%{api}HunspellInputMethod
%{_qt5_prefix}/mkspecs/modules/qt_lib_hunspellinputmethod_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtvirtualkeyboard.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/virtualkeyboard/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5 \
	CONFIG+=lang-all
%make

%if %{with docs}
%make docs
%endif

%install
%makeinstall_qt

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16842 |21mr|qt5-qtwayland-5.15.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtwayland

%define qtwaylandclient %mklibname qt%{api}waylandclient %{major}
%define qtwaylandclientd %mklibname qt%{api}waylandclient -d
%define qtwaylandcompositor %mklibname qt%{api}waylandcompositor %{major}
%define qtwaylandcompositord %mklibname qt%{api}waylandcompositor -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	2
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
# From KDE https://invent.kde.org/qt/qt/qtwayland -b kde/5.15
Patch1001:	0001-Client-Announce-an-output-after-receiving-more-compl.patch
Patch1002:	0002-Fix-issue-with-repeated-window-size-changes.patch
Patch1003:	0003-Client-Connect-drags-being-accepted-to-updating-the-.patch
Patch1004:	0004-Client-Disconnect-registry-listener-on-destruction.patch
Patch1005:	0005-Client-Set-XdgShell-size-hints-before-the-first-comm.patch
Patch1006:	0006-Fix-build.patch
Patch1007:	0007-Fix-remove-listener.patch
Patch1008:	0008-Hook-up-queryKeyboardModifers.patch
Patch1009:	0009-Correctly-detect-if-image-format-is-supported-by-QIm.patch
Patch1010:	0010-Client-Don-t-always-recreate-frame-callbacks.patch
Patch1011:	0011-Client-Always-destroy-frame-callback-in-the-actual-c.patch
Patch1012:	0012-Wayland-client-use-wl_keyboard-to-determine-active-s.patch
Patch1013:	0013-Client-do-not-empty-clipboard-when-a-new-popup-windo.patch
Patch1014:	0014-Client-Implement-DataDeviceV3.patch
Patch1015:	0015-Client-Delay-deletion-of-QDrag-object-until-after-we.patch
Patch1016:	0016-Client-Avoid-processing-of-events-when-showing-windo.patch
Patch1017:	0017-Handle-registry_global-out-of-constructor.patch
Patch1018:	0018-Connect-flushRequest-after-forceRoundTrip.patch
Patch1019:	0019-Move-the-wayland-socket-polling-to-a-separate-event-.patch
Patch1020:	0020-Client-Remove-mWaitingForUpdateDelivery.patch
Patch1021:	0021-client-Simplify-round-trip-behavior.patch
Patch1022:	0022-Client-Fix-opaque-region-setter.patch
Patch1023:	0023-Use-proper-dependencies-in-compile-tests.patch
Patch1024:	0024-Revert-Client-Remove-mWaitingForUpdateDelivery.patch
Patch1025:	0025-Fix-race-condition-on-mWaitingForUpdateDelivery.patch
Patch1026:	0026-use-poll-2-when-reading-from-clipboard.patch
Patch1027:	0027-Reduce-memory-leakage.patch
Patch1028:	0028-Fix-build-with-libcxx-missing-array-include.patch
Patch1029:	0029-Only-close-popup-in-the-the-hierchary.patch
Patch1030:	0030-Check-pointer-for-null-before-use-in-ASSERT.patch
Patch1031:	0031-Use-wl_surface.damage_buffer-on-the-client-side.patch
Patch1032:	0032-Client-clear-focus-on-touch-cancel.patch
Patch1033:	0033-Guard-mResizeDirty-by-the-correctMutex.patch
Patch1034:	0034-Fix-compile-tests.patch
Patch1035:	0035-Use-CRLF-line-delimiter-for-text-uri-list-data.patch
Patch1036:	0036-Avoid-calling-requestUpdate-from-wrong-thread.patch
Patch1037:	0037-Call-finishDrag-in-QWaylandDataDevice-dragSourceCanc.patch
Patch1038:	0038-Hold-surface-read-lock-throughout-QWaylandEglWindow-.patch
Patch1039:	0039-Keep-toplevel-windows-in-the-top-left-corner-of-the-.patch
Patch1040:	0040-Client-Add-F_SEAL_SHRINK-seal-to-shm-backing-file.patch
Patch1041:	0041-Client-Call-wl_output_release-upon-QWaylandScreen-de.patch
Patch1042:	0042-Client-Bump-wl_output-version.patch
Patch1043:	0043-Fix-frame-sync-related-to-unprotected-multithread-ac.patch
Patch1044:	0044-Client-Handle-zwp_primary_selection_device_manager_v.patch
Patch1045:	0045-Fixes-the-build-on-CentOS.patch
Patch1046:	0046-client-Avoid-protocol-error-with-invalid-min-max-siz.patch
Patch1047:	0047-Client-Fix-handling-of-Qt-BlankCursor.patch
Patch1048:	0048-client-Force-a-roundtrip-when-an-XdgOutput-is-not-re.patch
Patch1049:	0049-Client-Manage-QMimeData-lifecycle.patch
Patch1050:	0050-client-Do-not-cast-placeholder-screens-to-QWaylandSc.patch
Patch1051:	0051-Client-Remove-flip-popup-constraints.patch
Patch1052:	0052-Destroy-frame-queue-before-display.patch
Patch1053:	0053-client-Fix-crash-on-dnd-updates-after-client-facing-drag-ends.patch
Patch1054:	0054-Convert-cursor-bitmap-to-supported-format.patch
Patch1055:	0055-Replace-scale-with-devicePixelRatio-for-non-integer-scaling.patch
Patch1056:	0056-Client-Fix-buffer-damage.patch
Patch1057:	0057-client-Fix-infinite-recursion-with-text-input-v2.patch

Patch102: qtwayland-decoration-support-backports-from-qt6.patch

BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5DBus) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5OpenGL) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(mtdev)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	re2c
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(nss)

%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtwaylandclient}
Summary:	Wayland display system integration for Qt
Group:		System/Libraries
Provides:	qt5-wayland-client = %{EVRD}

%description -n %{qtwaylandclient}
Wayland display system integration for Qt.

%files -n %{qtwaylandclient}
%{_qt5_bindir}/qtwaylandscanner
%{_qt5_libdir}/libQt%{api}WaylandClient.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WaylandClient.so.%{major}*
%endif
%{_qt5_plugindir}/platforms/*.so
%{_qt5_plugindir}/wayland-decoration-client/libbradient.so
%{_qt5_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-dmabuf-server-buffer.so
%{_qt5_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-linux-dmabuf-unstable-v1.so
%{_qt5_plugindir}/wayland-graphics-integration-client/libdrm-egl-server.so
%{_qt5_plugindir}/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so
%{_qt5_plugindir}/wayland-graphics-integration-client/libshm-emulation-server.so
%{_qt5_plugindir}/wayland-graphics-integration-client/libxcomposite-egl.so
%{_qt5_plugindir}/wayland-graphics-integration-client/libxcomposite-glx.so
%{_qt5_plugindir}/wayland-graphics-integration-client/libvulkan-server.so
%{_qt5_plugindir}/wayland-graphics-integration-client/libdmabuf-server.so
%{_qt5_plugindir}/wayland-shell-integration/

#----------------------------------------------------------------------------

%package -n %{qtwaylandclientd}
Summary:	Development files for the Qt Wayland display system library
Group:		Development/KDE and Qt
Requires:	%{qtwaylandclient} = %{EVRD}
Requires:	%{qtwaylandcompositor} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwaylandclientd}
Development files for the Qt Wayland display system integration for Qt.

%files -n %{qtwaylandclientd}
%{_qt5_includedir}/QtWaylandClient
%{_qt5_libdir}/libQt%{api}WaylandClient.so
%{_qt5_libdir}/libQt%{api}WaylandClient.prl
%{_qt5_libdir}/cmake/Qt%{api}WaylandClient
%{_qt5_libdir}/cmake/Qt%{api}Gui/Qt%{api}Gui_*.cmake
%{_qt5_libdir}/pkgconfig/Qt%{api}WaylandClient.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WaylandClient.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_waylandclient.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_waylandclient_private.pri
%{_libdir}/qt5/qml/QtWayland/Client

#----------------------------------------------------------------------------

%package -n %{qtwaylandcompositor}
Summary:	Wayland platform QtCompositor module
Group:		System/Libraries
Provides:	qt5-wayland-compositor = %{EVRD}

%description -n %{qtwaylandcompositor}
Qt Wayland QtCompositor module.

%files -n %{qtwaylandcompositor}
%{_qt5_libdir}/libQt%{api}WaylandCompositor.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WaylandCompositor.so.%{major}*
%endif
%dir %{_qt5_plugindir}/wayland-graphics-integration-server
%{_libdir}/qt5/plugins/wayland-graphics-integration-server/libqt-wayland-compositor-drm-egl-server-buffer.so
%{_libdir}/qt5/plugins/wayland-graphics-integration-server/libqt-wayland-compositor-shm-emulation-server.so
%{_libdir}/qt5/plugins/wayland-graphics-integration-server/libqt-wayland-compositor-vulkan-server.so
%{_libdir}/qt5/plugins/wayland-graphics-integration-server/libqt-wayland-compositor-wayland-egl.so
%{_libdir}/qt5/plugins/wayland-graphics-integration-server/libqt-wayland-compositor-wayland-eglstream-controller.so
%{_libdir}/qt5/plugins/wayland-graphics-integration-server/libqt-wayland-compositor-xcomposite-egl.so
# Built if and only if Qt uses desktop OpenGL rather than OpenGL ES
%optional %{_libdir}/qt5/plugins/wayland-graphics-integration-server/libqt-wayland-compositor-xcomposite-glx.so
%{_qt5_prefix}/qml/QtWayland/Compositor

#----------------------------------------------------------------------------

%package -n %{qtwaylandcompositord}
Summary:	Development files for the Qt Wayland QtCompositor library
Group:		Development/KDE and Qt
Requires:	%{qtwaylandcompositor} = %{EVRD}
Requires:	%{qtwaylandclientd} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwaylandcompositord}
Development files for the Qt Wayland QtCompositor module.

%files -n %{qtwaylandcompositord}
%{_qt5_includedir}/QtWaylandCompositor
%{_qt5_libdir}/libQt%{api}WaylandCompositor.so
%{_qt5_libdir}/libQt%{api}WaylandCompositor.prl
%{_qt5_libdir}/cmake/Qt%{api}WaylandCompositor
%{_qt5_libdir}/pkgconfig/Qt%{api}WaylandCompositor.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WaylandCompositor.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_waylandcompositor.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_waylandcompositor_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtwaylandcompositor.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/wayland/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16843 |21mr|qt5-qtwebchannel-5.15.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtwebchannel

%define qtwebchannel %mklibname qt%{api}webchannel %{major}
%define qtwebchanneld %mklibname qt%{api}webchannel -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	2
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtwebchannel}
Summary:	Qt 5 WebChannel library
Group:		System/Libraries

%description -n %{qtwebchannel}
Qt 5 WebChannel library,  a library for communication between HTML/JavaScript
and Qt/QML objects.

%files -n %{qtwebchannel}
%{_qt5_libdir}/libQt%{api}WebChannel.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WebChannel.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtWebChannel

#----------------------------------------------------------------------------

%package -n %{qtwebchanneld}
Summary:	Development files for the Qt 5 WebChannel library
Group:		Development/KDE and Qt
Requires:	%{qtwebchannel} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwebchanneld}
Development files for version 5 of the QtWebChannel library, a library
for communication between HTML/JavaScript and Qt/QML objects.

%files -n %{qtwebchanneld}
%{_qt5_includedir}/QtWebChannel
%{_qt5_libdir}/libQt%{api}WebChannel.so
%{_qt5_libdir}/libQt%{api}WebChannel.prl
%{_qt5_libdir}/cmake/Qt%{api}WebChannel
%{_qt5_libdir}/pkgconfig/Qt%{api}WebChannel.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WebChannel.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_webchannel.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_webchannel_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtwebchannel.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/webchannel/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}
%autopatch -p1

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16844 |21mr|qt5-qtwebengine-5.15.14-0.20230504.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

# not enough memory for rpmlint
%global _build_pkgcheck_set %{nil}
%bcond_without gcc
%bcond_with clang

%define debug_package %{nil}
#% global optflags %{nil}

%define api 5
%define gstapi 1.0
%define major 5
%define oname qt5

%define module qtwebengine

%define qtwebengine %mklibname qt%{api}webengine %{major}
%define qtwebengined %mklibname qt%{api}webengine -d

%define qtwebenginecore %mklibname qt%{api}webenginecore %{major}
%define qtwebenginecored %mklibname qt%{api}webenginecore -d

%define qtwebenginewidgets %mklibname qt%{api}webenginewidgets %{major}
%define qtwebenginewidgetsd %mklibname qt%{api}webenginewidgets -d

%define qtpdf %mklibname qt%{api}pdf %{major}
%define qtpdfd %mklibname qt%{api}pdf -d
%define qtpdfwidgets %mklibname qt%{api}pdfwidgets %{major}
%define qtpdfwidgetsd %mklibname qt%{api}pdfwidgets -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

%define snapshot 20230504

%define qttarballdir qtwebengine-everywhere-src-%{version}-%{snapshot}

# exclude plugins (all architectures) and libv8.so (i686, it's static everywhere else)
%global __provides_exclude ^lib.*plugin\\.so.*|libv8\\.so$
# exclude libv8.so (i686, it's static everywhere else)
%global __requires_exclude ^libv8\\.so$
# and designer plugins
%global __provides_exclude_from ^%{_qt5_plugindir}/.*\\.so$

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.14
Release:	0.%{snapshot}.2
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
# Use package-source.sh to create the 2 files below
# git://code.qt.io/qt/qtwebengine.git -- branch 5.15 --prefix qtwebengine-everywhere-src-{version}-{snapshot}/
Source0:	qtwebengine-everywhere-src-%{version}-%{snapshot}.tar.zst
# git://code.qt.io/qt/qtwebengine-chromium.git -- branch 87-based (no prefix)
Source1:	qtwebengine-chromium-87-%{snapshot}.tar.zst
Source1001:	package-source.sh
Source100:	%{name}.rpmlintrc
# Patches "borrowed" from rpmfusion
# https://github.com/rpmfusion/qt5-qtwebengine-freeworld
# some tweaks to linux.pri (system yasm, link libpci, run unbundling script)
Patch0:		 https://raw.githubusercontent.com/rpmfusion/qt5-qtwebengine-freeworld/master/qtwebengine-everywhere-src-5.10.0-linux-pri.patch
# Make it work with the Lima driver, see
# https://www.plasma-mobile.org/2019/12/20/plasma_mobile_as_daily_driver_on_pinephone.html
Patch1:		qtwebengine-5.15.0-lima-driver.patch
# Detect system ninja 1.10+
Patch2:		qtwebengine-detect-system-ninja.patch
# disable NEON vector instructions on ARM where the NEON code FTBFS due to
# GCC bug https://bugzilla.redhat.com/show_bug.cgi?id=1282495
Patch3:		 https://raw.githubusercontent.com/rpmfusion/qt5-qtwebengine-freeworld/master/qtwebengine-opensource-src-5.9.0-no-neon.patch
# Fix/workaround FTBFS on aarch64 with newer glibc
Patch24:	https://raw.githubusercontent.com/rpmfusion/qt5-qtwebengine-freeworld/master/qtwebengine-everywhere-src-5.11.3-aarch64-new-stat.patch
# borrow fix from chromium packaging
Patch26:	https://raw.githubusercontent.com/rpmfusion/qt5-qtwebengine-freeworld/master/qtwebengine-gcc9-drop-rsp-clobber.patch
# Fix build with SIOCGSTAMP missing
Patch27:	qtwebengine-5.13-SIOCGSTAMP-compile.patch
# ====================
# OpenMandriva patches
# ====================
# Define __mulodi4 when building with clang but without compiler-rt
Patch1000:	qtwebengine-__mulodi4.patch
# use the system NSPR prtime (based on Debian patch)
# We already depend on NSPR, so it is useless to copy these functions here.
# Debian uses this just fine, and I don't see relevant modifications either.
# FIXME port
Patch1001:	qtwebengine-everywhere-src-5.11.0-system-nspr-prtime.patch
Patch1002:	qtwebengine-5.12-no-static-libstdc++.patch
# (tpg) Detect MESA DRI nouveau drivers and disable gpu usage to work around nouveau crashing
Patch1003:	disable-gpu-when-using-nouveau-boo-1005323.diff
# https://bugreports.qt.io/browse/QTBUG-59769
Patch1004:	881ef63.diff
#Patch1005:	qtwebengine-87-glibc-2.34-libstdc++-11.patch
# Support ffmpeg 3.5
Patch1010:	chromium-65-ffmpeg-3.5.patch
Patch1011:	ffmpeg-linkage.patch
#Patch1014:	qtwebengine-everywhere-src-5.11.1-reduce-build-log-size.patch
#Patch1015:	qtwebengine-QTBUG-75265.patch
# Make it build with clang on i686
Patch1017:	qtwebengine-5.13.0-b4-i686-missing-latomic.patch
Patch1019:	chromium-77-aarch64-buildfix.patch
Patch1020:	qtwebengine-pdf-compile.patch
Patch1023:	qtwebengine-5.15.4-compile.patch
# Fix glibc 2.34
Patch1030:	qtwebengine-20220130-clang-14.patch
Patch1031:	qtwebengine-20220313-gcc-11.2.patch

# riscv
Patch2000:	riscv.patch
Patch2001:	riscv-sandbox.patch
Patch2002:	riscv-crashpad.patch
Patch2003:	riscv-breakpad.patch
Patch2004:	v8.patch

BuildRequires:	bison
BuildRequires:	clang
BuildRequires:	clang-devel
BuildRequires:	git-core
BuildRequires:	flex
BuildRequires:	gperf
BuildRequires:	nasm
BuildRequires:	ninja
BuildRequires:	nodejs
BuildRequires:	re2-devel
BuildRequires:	re2c
BuildRequires:	yasm
BuildRequires:	ffmpeg-devel
BuildRequires:	jpeg-devel
BuildRequires:	stdc++-static-devel
BuildRequires:	imagemagick
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{gstapi})
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavfilter)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libwebp) >= 0.6.0
BuildRequires:	pkgconfig(libwebpdemux)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libva-drm)
BuildRequires:	pkgconfig(libva-glx)
BuildRequires:	pkgconfig(libva-x11)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(poppler-cpp)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Sensors)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Location)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
# Designer plugin
BuildRequires:	pkgconfig(Qt5Designer)
# end
BuildRequires:	pkgconfig(vpx) >= 1.7.0
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(jsoncpp)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	%{_lib}GL-devel
BuildRequires:	snappy-devel
BuildRequires:	srtp-devel
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtwebengine}
Summary:	Qt 5 WebEngine library
Group:		System/Libraries

%description -n %{qtwebengine}
Qt 5 WebEngine library, a library for rendering web content.

%files -n %{qtwebengine}
%{_qt5_libdir}/libQt%{api}WebEngine.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WebEngine.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtWebEngine
%{_libdir}/qt5/plugins/imageformats/libqpdf.so
%{_libdir}/qt5/qml/QtQuick/Pdf
# Was here until 5.6
# dir {_qt5_plugindir}/qtwebengine
# {_qt5_plugindir}/qtwebengine/libffmpegsumo.so

#----------------------------------------------------------------------------

%package -n %{qtwebengined}
Summary:	Development files for the Qt 5 WebEngine library
Group:		Development/KDE and Qt
Requires:	%{qtwebengine} = %{EVRD}
Requires:	%{qtwebenginecored} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwebengined}
Development files for version 5 of the QtWebEngine library, a library for
rendering web content.

%files -n %{qtwebengined}
%{_qt5_includedir}/QtWebEngine
%{_qt5_libdir}/libQt%{api}WebEngine.so
%{_qt5_libdir}/libQt%{api}WebEngine.prl
%{_qt5_libdir}/cmake/Qt%{api}WebEngine
%{_qt5_libdir}/pkgconfig/Qt%{api}WebEngine.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WebEngine.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_webengine.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_webengine_private.pri

#----------------------------------------------------------------------------

%package -n %{oname}-qtwebengine-common
Summary:	Qt 5 WebEngine noarch data files
Group:		System/Libraries
BuildArch:	noarch

%description -n %{oname}-qtwebengine-common
Qt 5 WebEngine noarch data files.

%files -n %{oname}-qtwebengine-common
%{_qt5_datadir}/resources/qtwebengine_devtools_resources.pak
%{_qt5_datadir}/resources/qtwebengine_resources.pak
%{_qt5_datadir}/resources/qtwebengine_resources_100p.pak
%{_qt5_datadir}/resources/qtwebengine_resources_200p.pak
%lang(am) %{_qt5_translationsdir}/qtwebengine_locales/am.pak
%lang(ar) %{_qt5_translationsdir}/qtwebengine_locales/ar.pak
%lang(bg) %{_qt5_translationsdir}/qtwebengine_locales/bg.pak
%lang(bn) %{_qt5_translationsdir}/qtwebengine_locales/bn.pak
%lang(ca) %{_qt5_translationsdir}/qtwebengine_locales/ca.pak
%lang(cs) %{_qt5_translationsdir}/qtwebengine_locales/cs.pak
%lang(da) %{_qt5_translationsdir}/qtwebengine_locales/da.pak
%lang(de) %{_qt5_translationsdir}/qtwebengine_locales/de.pak
%lang(el) %{_qt5_translationsdir}/qtwebengine_locales/el.pak
%lang(en_GB) %{_qt5_translationsdir}/qtwebengine_locales/en-GB.pak
%lang(en_US) %{_qt5_translationsdir}/qtwebengine_locales/en-US.pak
%lang(es_419) %{_qt5_translationsdir}/qtwebengine_locales/es-419.pak
%lang(es) %{_qt5_translationsdir}/qtwebengine_locales/es.pak
%lang(et) %{_qt5_translationsdir}/qtwebengine_locales/et.pak
%lang(fa) %{_qt5_translationsdir}/qtwebengine_locales/fa.pak
%lang(fi) %{_qt5_translationsdir}/qtwebengine_locales/fi.pak
%lang(fil) %{_qt5_translationsdir}/qtwebengine_locales/fil.pak
%lang(fr) %{_qt5_translationsdir}/qtwebengine_locales/fr.pak
%lang(gu) %{_qt5_translationsdir}/qtwebengine_locales/gu.pak
%lang(he) %{_qt5_translationsdir}/qtwebengine_locales/he.pak
%lang(hi) %{_qt5_translationsdir}/qtwebengine_locales/hi.pak
%lang(hr) %{_qt5_translationsdir}/qtwebengine_locales/hr.pak
%lang(hu) %{_qt5_translationsdir}/qtwebengine_locales/hu.pak
%lang(id) %{_qt5_translationsdir}/qtwebengine_locales/id.pak
%lang(it) %{_qt5_translationsdir}/qtwebengine_locales/it.pak
%lang(ja) %{_qt5_translationsdir}/qtwebengine_locales/ja.pak
%lang(kn) %{_qt5_translationsdir}/qtwebengine_locales/kn.pak
%lang(ko) %{_qt5_translationsdir}/qtwebengine_locales/ko.pak
%lang(lt) %{_qt5_translationsdir}/qtwebengine_locales/lt.pak
%lang(lv) %{_qt5_translationsdir}/qtwebengine_locales/lv.pak
%lang(ml) %{_qt5_translationsdir}/qtwebengine_locales/ml.pak
%lang(mr) %{_qt5_translationsdir}/qtwebengine_locales/mr.pak
%lang(ms) %{_qt5_translationsdir}/qtwebengine_locales/ms.pak
%lang(nb) %{_qt5_translationsdir}/qtwebengine_locales/nb.pak
%lang(nl) %{_qt5_translationsdir}/qtwebengine_locales/nl.pak
%lang(pl) %{_qt5_translationsdir}/qtwebengine_locales/pl.pak
%lang(pt_BR) %{_qt5_translationsdir}/qtwebengine_locales/pt-BR.pak
%lang(pt_PT) %{_qt5_translationsdir}/qtwebengine_locales/pt-PT.pak
%lang(ro) %{_qt5_translationsdir}/qtwebengine_locales/ro.pak
%lang(ru) %{_qt5_translationsdir}/qtwebengine_locales/ru.pak
%lang(sk) %{_qt5_translationsdir}/qtwebengine_locales/sk.pak
%lang(sl) %{_qt5_translationsdir}/qtwebengine_locales/sl.pak
%lang(sr) %{_qt5_translationsdir}/qtwebengine_locales/sr.pak
%lang(sv) %{_qt5_translationsdir}/qtwebengine_locales/sv.pak
%lang(sw) %{_qt5_translationsdir}/qtwebengine_locales/sw.pak
%lang(ta) %{_qt5_translationsdir}/qtwebengine_locales/ta.pak
%lang(te) %{_qt5_translationsdir}/qtwebengine_locales/te.pak
%lang(th) %{_qt5_translationsdir}/qtwebengine_locales/th.pak
%lang(tr) %{_qt5_translationsdir}/qtwebengine_locales/tr.pak
%lang(uk) %{_qt5_translationsdir}/qtwebengine_locales/uk.pak
%lang(vi) %{_qt5_translationsdir}/qtwebengine_locales/vi.pak
%lang(zh_CN) %{_qt5_translationsdir}/qtwebengine_locales/zh-CN.pak
%lang(zh_TW) %{_qt5_translationsdir}/qtwebengine_locales/zh-TW.pak

#----------------------------------------------------------------------------

%package -n %{qtwebenginecore}
Summary:	Qt 5 WebEngine Core library
Group:		System/Libraries
Requires:	%{oname}-qtwebengine-common
Recommends:	%{oname}-qtwebengine-i18n

%description -n %{qtwebenginecore}
Qt 5 WebEngine Core library, a library for rendering web content.

%files -n %{qtwebenginecore}
%{_qt5_libdir}/libQt%{api}WebEngineCore.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WebEngineCore.so.%{major}*
%endif
%{_qt5_libexecdir}/QtWebEngineProcess

#----------------------------------------------------------------------------

%package -n %{qtwebenginecored}
Summary:	Development files for the Qt 5 WebEngine Core library
Group:		Development/KDE and Qt
Requires:	%{qtwebenginecore} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwebenginecored}
Development files for version 5 of the QtWebEngine Core library,
a library for rendering web content.

%files -n %{qtwebenginecored}
%{_qt5_bindir}/qwebengine_convert_dict
%{_qt5_includedir}/QtWebEngineCore
%{_qt5_libdir}/libQt%{api}WebEngineCore.so
%{_qt5_libdir}/libQt%{api}WebEngineCore.prl
%{_qt5_libdir}/cmake/Qt%{api}WebEngineCore
%{_qt5_libdir}/pkgconfig/Qt%{api}WebEngineCore.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WebEngineCore.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_webenginecore.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_webenginecore_private.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_webenginecoreheaders_private.pri

#----------------------------------------------------------------------------

%package -n %{qtwebenginewidgets}
Summary:	Qt 5 WebEngine Widgets library
Group:		System/Libraries

%description -n %{qtwebenginewidgets}
Qt 5 WebEngine Widgets library, a library for rendering web content.

%files -n %{qtwebenginewidgets}
%{_qt5_libdir}/libQt%{api}WebEngineWidgets.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WebEngineWidgets.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtwebenginewidgetsd}
Summary:	Development files for the Qt 5 WebEngine Widgets library
Group:		Development/KDE and Qt
Requires:	%{qtwebenginewidgets} = %{EVRD}
Requires:	%{qtwebengined} = %{EVRD}
Requires:	%{qtwebenginecored} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwebenginewidgetsd}
Development files for version 5 of the QtWebEngine Widgets library,
a library for rendering web content.

%files -n %{qtwebenginewidgetsd}
%{_qt5_includedir}/QtWebEngineWidgets
%{_qt5_libdir}/libQt%{api}WebEngineWidgets.so
%{_qt5_libdir}/libQt%{api}WebEngineWidgets.prl
%{_qt5_libdir}/cmake/Qt%{api}WebEngineWidgets
%{_qt5_libdir}/pkgconfig/Qt%{api}WebEngineWidgets.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WebEngineWidgets.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_webenginewidgets.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_webenginewidgets_private.pri
%optional %{_libdir}/cmake/Qt5Designer/Qt5Designer_QWebEngineViewPlugin.cmake
%optional %{_libdir}/qt5/plugins/designer/libqwebengineview.so

#----------------------------------------------------------------------------

%package -n %{qtpdf}
Summary:	Development files for Qt Pdf
Group:		System/Libraries

%description -n %{qtpdf}
library for Qt Pdf

%files -n %{qtpdf}
%{_libdir}/libQt5Pdf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{qtpdfd}
Summary:	Development files for Qt Pdf
Group:		Development/KDE and Qt
Requires:	%{qtpdf} = %{EVRD}

%description -n %{qtpdfd}
Development files for Qt Pdf

%files -n %{qtpdfd}
%{_includedir}/qt5/QtPdf
%{_libdir}/cmake/Qt5Gui/Qt5Gui_QPdfPlugin.cmake
%{_libdir}/cmake/Qt5Pdf
%{_libdir}/libQt5Pdf.prl
%{_libdir}/libQt5Pdf.so
%{_libdir}/pkgconfig/Qt5Pdf.pc
%{_libdir}/qt5/mkspecs/modules/qt_lib_pdf.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_pdf_private.pri

#----------------------------------------------------------------------------
%package -n %{qtpdfwidgets}
Summary:	Development files for Qt Pdf Widgets
Group:		System/Libraries

%description -n %{qtpdfwidgets}
Development files for Qt Pdf Widgets.

%files -n %{qtpdfwidgets}
%{_libdir}/libQt5PdfWidgets.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{qtpdfwidgetsd}
Summary:	Development files for Qt Pdf Widgets
Group:		Development/KDE and Qt
Requires:	%{qtpdfwidgets} = %{EVRD}

%description -n %{qtpdfwidgetsd}
Development files for Qt Pdf Widgets.

%files -n %{qtpdfwidgetsd}
%{_includedir}/qt5/QtPdfWidgets
%{_libdir}/cmake/Qt5PdfWidgets
%{_libdir}/libQt5PdfWidgets.prl
%{_libdir}/libQt5PdfWidgets.so
%{_libdir}/pkgconfig/Qt5PdfWidgets.pc
%{_libdir}/qt5/mkspecs/modules/qt_lib_pdfwidgets.pri
%{_libdir}/qt5/mkspecs/modules/qt_lib_pdfwidgets_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtwebengine.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/pdf/
%{_qt5_exampledir}/webengine/
%{_qt5_exampledir}/webenginewidgets/
%{_qt5_exampledir}/pdfwidgets

#----------------------------------------------------------------------------

%package devel
Summary:	Metapackage pulling in all QtWebEngine development files
Group:		Development/KDE and Qt
Requires:	%{qtwebengined} = %{EVRD}
Requires:	%{qtwebenginecored} = %{EVRD}
Requires:	%{qtwebenginewidgetsd} = %{EVRD}
Requires:	%{qtpdfd} = %{EVRD}
Requires:	%{qtpdfwidgetsd} = %{EVRD}

%description devel
Development files for Qt WebEngine.

%files devel

%prep
%setup -qn %{qttarballdir}
%if 0%{?snapshot}
cd src/3rdparty
tar xf %{S:1}
cd ../..
%{_libdir}/qt5/bin/syncqt.pl -version %{version}
%endif
%autopatch -p1

# chromium is a huge bogosity -- references to hidden SQLite symbols, has
# asm files forcing an executable stack etc., but still tries to force ld
# into --fatal-warnings mode...
sed -i -e 's|--fatal-warnings|-O2|' src/3rdparty/chromium/build/config/compiler/BUILD.gn

# fix missing (bogus but required) file duplication
cp src/3rdparty/chromium/base/numerics/*_arm_impl.h src/3rdparty/gn/base/numerics/

# most arches run out of memory with full debuginfo
sed -i 's|$(STRIP)|strip|g' src/core/core_module.pro

# Fix chicken and egg problem -- gn is needed to generate qt_version.h
# but gn build uses it
#sed -i -e 's/#include "qt_version.h"/#define QT_GN_VERSION "%{version}"/' src/3rdparty/gn/src/gn/gn_main.cc

#mkdir -p .git src/3rdparty/chromium/.git

# We need to make sure this integrates well into Qt 5.15.3 installation.
# Otherwise revdeps fail w/o heavy changes. This is the simplest way to do it.
# See also: https://www.qt.io/blog/building-qt-webengine-against-other-qt-versions
#sed -E "/^MODULE_VERSION/s/5\.15\.[0-9]+/%{version}/" -i .qmake.conf

# gentoo bug 620444 - ensure local headers are used
find . -type f -name "*.pr[fio]" | xargs sed -i -e 's|INCLUDEPATH += |&$${QTWEBENGINE_ROOT}/include |'

%build
# from Chromium, probably not needed when not using bundled ffmpeg
# https://svnweb.freebsd.org/ports?view=revision&revision=480034
export CFLAGS="%{optflags} -fPIC"
export CXXFLAGS="%{optflags} -fPIC"
export LDFLAGS="%{ldflags} -Wl,--as-needed"
export LDFLAGS="$LDFLAGS -Wl,-znotext -Wl,--no-keep-memory"

# clang wrapper to remove compiler flags that clang does not know
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9567
# https://nixtux.ru/768
%if %{with clang}
%clang_gcc_wrapper
%endif

QMAKE_EXTRA_ARGS="-proprietary-codecs -pulseaudio -webp -printing-and-pdf -spellchecker -system-ffmpeg -system-opus -system-webengine-icu -verbose -feature-pdf-v8 -feature-pdf-xfa"

%qmake_qt5 \
%if %{with clang}
    CONFIG+="clang release" \
    QMAKE_CC=clang \
    QMAKE_CXX=clang++ \
    QMAKESPEC=%{_libdir}/qt5/mkspecs/linux-clang \
%endif
%if %{with gcc}
    QMAKE_CC=gcc \
    QMAKE_CXX=g++ \
    QMAKESPEC=%{_libdir}/qt5/mkspecs/linux-g++ \
%endif
    QMAKE_EXTRA_ARGS="${QMAKE_EXTRA_ARGS}" \
    QMAKE_CFLAGS="$CFLAGS" \
    QMAKE_CXXFLAGS="$CXXFLAGS" \
    QMAKE_LFLAGS="$LDFLAGS"

%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
%makeinstall_qt

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# nuke .pc reference(s) to %%_builddir
sed -i -e s," -L%{_builddir}[^ ]* ",,g %{buildroot}%{_libdir}/pkgconfig/*.pc

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-everywhere-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
	sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
	if [ -f "$(basename ${prl_file} .prl).so" ]; then
		rm -fv "$(basename ${prl_file} .prl).la"
		sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
	fi
done
popd

# Allow QtWebEngine > 5.15.2 to coexist with other Qt modules from 5.15.x
# In general, we want stable Qt, but QtWebEngine git is significantly better
# than 5.15.2 due to the Chromium 87 sync...
sed -i -e 's,%{version} \${_Qt5WebEngineCore_FIND_VERSION_EXACT},5.15.2 ${_Qt5WebEngineCore_FIND_VERSION},g' %{buildroot}%{_libdir}/cmake/Qt5WebEngineCore/Qt5WebEngineCoreConfig.cmake
sed -i -e 's,%{version} \${_Qt5WebEngineWidgets_FIND_VERSION_EXACT},5.15.2 ${_Qt5WebEngineWidgets_FIND_VERSION},g' %{buildroot}%{_libdir}/cmake/Qt5WebEngineWidgets/Qt5WebEngineWidgetsConfig.cmake

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16845 |21mr|qt5-qtwebglplugin-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api %(echo %{version} |cut -d. -f1)
%define major %api
%define beta beta2

%define qtwebglplugin %mklibname qt%{api}webglplugin %{major}
%define qtwebglplugind %mklibname qt%{api}webglplugin -d

%define _qt5_prefix %{_libdir}/qt%{api}
%define	module	qtwebglplugin

Name:		qt5-qtwebglplugin
Version:	5.15.10
Release:	1
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Summary:	WebGL platform plugin for Qt Quick applications
Group:		Development/KDE and Qt
License:	GPLv3
URL:		http://www.qt.io
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5DBus) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5OpenGL) >= %{version}
BuildRequires:	pkgconfig(Qt5WebSockets) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
# For the Provides: generator
BuildRequires:	cmake >= 3.11.0-1

%description
The Qt Quick WebGL is a platform plugin that allows for single-user remote
access by streaming Qt Quick user interfaces over the network.

The UI is rendered in a WebGL™-enabled client browser.

%files
%_qt5_prefix/plugins/platforms/libqwebgl.so

#------------------------------------------------------------------------------

%package -n	%{qtwebglplugind}
Summary:	Devel files needed to build apps based on %name
Group:		Development/KDE and Qt
Requires:	%{name} = %{version}

%description -n %{qtwebglplugind}
Devel files needed to build apps based on %{name}.

%files -n %{qtwebglplugind}
%{_qt5_libdir}/cmake/Qt5Gui/*.cmake

#------------------------------------------------------------------------------

%prep
%autosetup -n %{module}-everywhere-src-%{version} -p1

%build
%qmake_qt5
%make_build

#------------------------------------------------------------------------------
%install
%make_install INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16846 |21mr|qt5-qtwebkit-5.212.0-0.alpha4.13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pre alpha4
%ifarch %{ix86}
%global debugcflags %nil
%endif

%define api 5
%define major 5
%define oname qt5

%define module qtwebkit

%define qtwebkit %mklibname qt%{api}webkit %{major}
%define qtwebkitd %mklibname qt%{api}webkit -d
%define qtwebkitwidgets %mklibname qt%{api}webkitwidgets %{major}
%define qtwebkitwidgetsd %mklibname qt%{api}webkitwidgets -d


# FIXME workaround for a dependency generator bug
%global __requires_exclude ^.*_dep.*$

# Requires qdoc5 and qt5-tools to build
# Missing in 5.212.0
%bcond_with docs

%ifarch %{ix86} %{e2k} %{riscv}
%global debug_package %{nil}
%endif

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.212.0
Release:	0.%{pre}.13
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	 https://github.com/qtwebkit/qtwebkit/releases/download/%{module}-%{version}-%{pre}/%{module}-%{version}-%{pre}.tar.xz
Source100:	%{name}.rpmlintrc
# Patch for new CMake policy CMP0071 to explicitly use old behaviour.
Patch2:		qtwebkit-5.212.0_cmake_cmp0071.patch
Patch6:		disable-gold-linker.patch
Patch7:		0001-Add-ARM-64-support.patch
Patch8:		qtwebkit-5.212.0_pre20200309-bison-3.7.patch
Patch9:		qt5-qtwebkit-glib-2.68.patch
Patch10:	support_riscv64.patch
Patch11:	0010-webdriver-libatomic.patch
Patch12:	qtwebkit-5.212.0-alpha4-not-declared.patch
Patch100:	0002-e2k_definition.patch
Patch101:	0003_e2k-features.patch
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	gperf
BuildRequires:	ruby
BuildRequires:	rubygems
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libpng)
#
# 1.0.2 provides major 7
BuildRequires:	pkgconfig(libwebp) >= 1.0.2
#
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Positioning)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5Sensors)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	hyphen-devel
BuildRequires:	woff2-devel
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtwebkit}
Summary:	Qt WebKit web browsing library
Group:		System/Libraries

%description -n %{qtwebkit}
Qt WebKit web browsing library.

%files -n %{qtwebkit}
%{_qt5_libdir}/libQt%{api}WebKit.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WebKit.so.%{major}*
%endif
%{_qt5_prefix}/qml/QtWebKit
%{_qt5_libexecdir}/QtWebNetworkProcess
%{_qt5_libexecdir}/QtWebProcess
%{_qt5_libexecdir}/QtWebPluginProcess
%{_qt5_libexecdir}/QtWebStorageProcess

#----------------------------------------------------------------------------

%package -n %{qtwebkitd}
Summary:	Development files for the Qt WebKit web browsing library
Group:		Development/KDE and Qt
Requires:	%{qtwebkit} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwebkitd}
Development files for the Qt WebKit web browsing library.

%files -n %{qtwebkitd}
%{_qt5_includedir}/QtWebKit
%{_qt5_libdir}/libQt%{api}WebKit.so
%{_qt5_libdir}/cmake/Qt%{api}WebKit
%{_qt5_libdir}/pkgconfig/Qt%{api}WebKit.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WebKit.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_webkit.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_webkit_private.pri


#----------------------------------------------------------------------------

%package -n %{qtwebkitwidgets}
Summary:	Qt WebKit Widgets library
Group:		System/Libraries

%description -n %{qtwebkitwidgets}
Qt WebKit Widgets library.

%files -n %{qtwebkitwidgets}
%{_qt5_libdir}/libQt%{api}WebKitWidgets.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WebKitWidgets.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtwebkitwidgetsd}
Summary:	Development files for the Qt WebKit Widgets library
Group:		Development/KDE and Qt
Requires:	%{qtwebkitwidgets} = %{EVRD}
Requires:	%{qtwebkitd} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwebkitwidgetsd}
Development files for the Qt WebKit Widgets library.

%files -n %{qtwebkitwidgetsd}
%{_qt5_includedir}/QtWebKitWidgets
%{_qt5_libdir}/libQt%{api}WebKitWidgets.so
%{_qt5_libdir}/cmake/Qt%{api}WebKitWidgets
%{_qt5_libdir}/pkgconfig/Qt%{api}WebKitWidgets.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WebKitWidgets.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_webkitwidgets.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_webkitwidgets_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtwebkit.qch
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-%{version}-%{pre}
%ifnarch %{e2k}
%autopatch -p1 -M 99
%else
%autopatch -p1
%endif


# Build scripts aren't ready for python3
grep -rl "env python" . |xargs sed -i -e "s,env python,env python2,g"
grep -rl "/python$" . |xargs sed -i -e "s,/python$,/python2,g"
grep -rl "'python'" . |xargs sed -i -e "s,'python','python2',g"

# remove rpath
find ./ -type f -name \*.pr\* | \
while read f; do
    sed -i 's|\(^CONFIG[[:space:]][[:space:]]*+=[[:space:]].*\)rpath|\1|' $f
    sed -i 's|\([[:space:]]CONFIG[[:space:]][[:space:]]*+=[[:space:]].*\)rpath|\1|' $f
done

# Fix up headers...
[ -d include ] || %{_libdir}/qt5/bin/syncqt.pl -version %{version} Source/sync.profile

export LDFLAGS="%{ldflags} -Wl,--as-needed"

%build
%setup_compile_flags
%ifarch %{e2k}
export CFLAGS="`echo $CFLAGS -DPIC -fPIC | sed 's/-g/-g0/'`"
export CXXFLAGS="`echo $CXXFLAGS -DPIC -fPIC | sed 's/-g/-g0/'`"
export CPPFLAGS="--Wno-error -O3 -g0 -march=elbrus-v4 -DPIC -fPIC"
export LDFLAGS="`echo $LDFLAGS | sed 's/-g/-g0/'`"
%endif

%cmake \
       -DPORT=Qt \
       -DCMAKE_BUILD_TYPE=Release \
       -DENABLE_TOOLS=OFF \
       -DCMAKE_C_FLAGS_RELEASE:STRING="-DNDEBUG" \
       -DCMAKE_CXX_FLAGS_RELEASE:STRING="-DNDEBUG" \
       -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON \
       -DECM_MKSPECS_INSTALL_DIR=%{_qt5_prefix}/mkspecs/modules \
       -DKDE_INSTALL_LIBEXECDIR=%{_qt5_libexecdir} \
       -DKDE_INSTALL_INCLUDEDIR=%{_qt5_includedir} \
       -DQML_INSTALL_DIR=%{_qt5_prefix}/qml \
%ifarch s390 s390x ppc %{power64} %{riscv} %{armx}
       -DENABLE_JIT=OFF \
%endif
%ifarch s390 s390x ppc %{power64}
       -DUSE_SYSTEM_MALLOC=ON \
%endif
       %{?docs:-DGENERATE_DOCUMENTATION=ON} \
       -DPYTHON_EXECUTABLE:PATH="%{__python3}"

%ifarch %{ix86}
%define lowmemflags -Wl,--no-keep-memory
export CFLAGS="`echo %{optflags} %lowmemflags | sed -e 's/-gdwarf-4//' -e 's/-fvar-tracking-assignments//' -e 's/-frecord-gcc-switches//'`"
export CXXFLAGS="$CFLAGS"
%endif

%make_build

%if %{with docs}
%make docs
%endif

%install
%make_install -C build

%if %{with docs}
make -C build install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# fix .pc files
sed -i "s,Cflags: -I%{_qt5_prefix}/../../include/qt5/QtWebKit,Cflags: -I%{_qt5_includedir}/QtWebKit,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKit.pc
sed -i "s,Libs: -L%{_qt5_libdir}/qt5/../ -lQt5WebKit,Libs: -L%{_qt5_libdir} -lQt5WebKit ,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKit.pc

sed -i "s,Cflags: -I%{_qt5_prefix}/../../include/qt5/QtWebKitWidgets,Cflags: -I%{_qt5_includedir}/QtWebKitWidgets,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKitWidgets.pc
sed -i "s,Libs: -L%{_qt5_libdir}/qt5/../ -lQt5WebKitWidgets,Libs: -L%{_qt5_libdir} -lQt5WebKitWidgets ,g" %{buildroot}%{_libdir}/pkgconfig/Qt5WebKitWidgets.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16847 |21mr|qt5-qtwebsockets-5.15.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtwebsockets

%define qtwebsockets %mklibname qt%{api}websockets %{major}
%define qtwebsocketsd %mklibname qt%{api}websockets -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	2
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
Patch0:	  qt5-qtwebsockets-gcc11.patch
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtwebsockets}
Summary:	Qt %{api} WebSockets library
Group:		System/Libraries
Recommends:	qt5-qtwebsockets-i18n

%description -n %{qtwebsockets}
Qt %{api} WebSockets library.

%files -n %{qtwebsockets}
%{_qt5_libdir}/libQt%{api}WebSockets.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WebSockets.so.%{major}*
%endif
%{_qt5_prefix}/qml/Qt/WebSockets
%{_qt5_prefix}/qml/QtWebSockets

#----------------------------------------------------------------------------

%package -n %{qtwebsocketsd}
Summary:	Development files for the Qt %{api} WebSockets library
Group:		Development/KDE and Qt
Requires:	%{qtwebsockets} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwebsocketsd}
Development files for version 5 of the QtWebSockets library.

%files -n %{qtwebsocketsd}
%{_qt5_includedir}/QtWebSockets
%{_qt5_libdir}/libQt%{api}WebSockets.so
%{_qt5_libdir}/libQt%{api}WebSockets.prl
%{_qt5_libdir}/cmake/Qt%{api}WebSockets
%{_qt5_libdir}/pkgconfig/Qt%{api}WebSockets.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WebSockets.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_websockets.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_websockets_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtwebsockets.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/websockets/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16848 |21mr|qt5-qtwebview-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtwebview

%define qtwebview %mklibname qt%{api}webview %{major}
%define qtwebviewd %mklibname qt%{api}webview -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5WebChannel)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtwebview}
Summary:	Qt WebView library
Group:		System/Libraries

%description -n %{qtwebview}
Qt WebView library.

%files -n %{qtwebview}
%{_qt5_libdir}/libQt%{api}WebView.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}WebView.so.%{major}*
%endif
%{_qt5_plugindir}/webview/libqtwebview_webengine.so
%{_qt5_prefix}/qml/QtWebView

#----------------------------------------------------------------------------

%package -n %{qtwebviewd}
Summary:	Development files for the Qt WebView library
Group:		Development/KDE and Qt
Requires:	%{qtwebview} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtwebviewd}
Development files for the Qt WebView library.

%files -n %{qtwebviewd}
%{_qt5_includedir}/QtWebView
%{_qt5_libdir}/libQt%{api}WebView.so
%{_qt5_libdir}/libQt%{api}WebView.prl
%{_qt5_libdir}/cmake/Qt%{api}WebView
%{_qt5_libdir}/pkgconfig/Qt%{api}WebView.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}WebView.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_webview.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_webview_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtwebview.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/webview/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16849 |21mr|qt5-qtx11extras-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtx11extras

%define qtx11extras %mklibname qt%{api}x11extras %{major}
%define qtx11extrasd %mklibname qt%{api}x11extras -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:  pkgconfig(xcb)
BuildRequires:  pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtx11extras}
Summary:	Qt X11 Extras library
Group:		System/Libraries

%description -n %{qtx11extras}
Qt X11 Extras library.

%files -n %{qtx11extras}
%{_qt5_libdir}/libQt%{api}X11Extras.so.%{major}*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}X11Extras.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtx11extrasd}
Summary:	Development files for the QtX11Extras library
Group:		Development/KDE and Qt
Requires:	%{qtx11extras} = %{EVRD}
Requires:	qmake%{api}
Conflicts:	qmake5 < 5.6.0

%description -n %{qtx11extrasd}
Development files for the QtX11Extras library.

%files -n %{qtx11extrasd}
%{_qt5_includedir}/QtX11Extras
%{_qt5_libdir}/libQt%{api}X11Extras.so
%{_qt5_libdir}/libQt%{api}X11Extras.prl
%{_qt5_libdir}/cmake/Qt%{api}X11Extras
%{_qt5_libdir}/pkgconfig/Qt%{api}X11Extras.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}X11Extras.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_x11extras.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_x11extras_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
Conflicts:	qt5-doc < 5.6.0
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtx11extras.qch
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16850 |21mr|qt5-qtxmlpatterns-5.15.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 5
%define oname qt5

%define module qtxmlpatterns

%define qtxmlpatterns %mklibname qt%{api}xmlpatterns %{major}
%define qtxmlpatternsd %mklibname qt%{api}xmlpatterns -d

# Requires qdoc5 and qt5-tools to build
%bcond_with docs

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt5-%{module}
Version:	5.15.10
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-opensource-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(Qt5Core) >= %{version}
BuildRequires:	pkgconfig(Qt5Gui) >= %{version}
BuildRequires:	pkgconfig(Qt5Network) >= %{version}
BuildRequires:	pkgconfig(Qt5Qml) >= %{version}
BuildRequires:	pkgconfig(Qt5Quick) >= %{version}
BuildRequires:	pkgconfig(Qt5Widgets) >= %{version}
BuildRequires:	pkgconfig(gl)
%if %{with docs}
BuildRequires:	qdoc5
BuildRequires:	qt5-tools
%endif

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtxmlpatterns}
Summary:	Qt XSLT engine
Group:		System/Libraries
Recommends:	qt5-qtxmlpatterns-i18n

%description -n %{qtxmlpatterns}
Qt XSLT engine.

%files -n %{qtxmlpatterns}
%{_qt5_libdir}/libQt%{api}XmlPatterns.so.%{major}*
%{_qt5_libdir}/qt5/qml/QtQuick/XmlListModel/*
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}XmlPatterns.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{qtxmlpatternsd}
Summary:	Development files for Qt's XSLT engine
Group:		Development/KDE and Qt
Requires:	%{qtxmlpatterns} = %{EVRD}
Requires:	qmake%{api}

%description -n %{qtxmlpatternsd}
Development files for Qt's XSLT engine.

%files -n %{qtxmlpatternsd}
%{_qt5_bindir}/xmlpatterns
%{_qt5_bindir}/xmlpatternsvalidator
%{_qt5_includedir}/QtXmlPatterns
%{_qt5_libdir}/libQt%{api}XmlPatterns.so
%{_qt5_libdir}/libQt%{api}XmlPatterns.prl
%{_qt5_libdir}/cmake/Qt%{api}XmlPatterns
%{_qt5_libdir}/pkgconfig/Qt%{api}XmlPatterns.pc
%if "%{_qt5_libdir}" != "%{_libdir}"
%{_libdir}/pkgconfig/Qt%{api}XmlPatterns.pc
%endif
%{_qt5_prefix}/mkspecs/modules/qt_lib_xmlpatterns.pri
%{_qt5_prefix}/mkspecs/modules/qt_lib_xmlpatterns_private.pri

#----------------------------------------------------------------------------

%if %{with docs}
%package doc
Summary:	Qt QCH documentation for %{name}
Group:		Documentation
Conflicts:	qt5-doc < 5.6.0
BuildArch:	noarch

%description doc
Qt QCH documentation for %{name}.

%files doc
%{_qt5_docdir}/qtxmlpatterns.qch
%endif

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt
Conflicts:	qt5-examples < 5.6.0

%description examples
Example applications for %{name}.

%files examples
%{_qt5_exampledir}/xmlpatterns/

#----------------------------------------------------------------------------

%prep
%setup -qn %{module}-everywhere-src-%{version}

%build
%qmake_qt5
%make STRIP=true

%if %{with docs}
%make docs
%endif

%install
make install STRIP=true INSTALL_ROOT=%{buildroot}

%if %{with docs}
make install_qch_docs INSTALL_ROOT=%{buildroot}
%endif

%if "%{_qt5_libdir}" != "%{_libdir}"
pushd %{buildroot}%{_libdir}
ln -s ../%{_lib}/qt%{api}/%{_lib}/*.so.* .
mkdir pkgconfig
cd pkgconfig
ln -s ../../%{_lib}/qt%{api}/%{_lib}/pkgconfig/*.pc .
popd
%endif

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
pushd %{buildroot}%{_qt5_libdir}
for prl_file in libQt5*.prl ; do
  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
  if [ -f "$(basename ${prl_file} .prl).so" ]; then
    rm -fv "$(basename ${prl_file} .prl).la"
    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
  fi
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16851 |21mr|qt5-style-plugins-5.8.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname qtstyleplugins

Summary:	Additional style plugins for Qt5
Name:		qt5-style-plugins
Version:	5.8.1
Release:	5
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/qtproject/qtstyleplugins
# Snapshot from 2017.03.11
Source0:	%{oname}-%{version}.tar.gz
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(Qt5DBus)
Recommends:	qt5-style-cleanlooks
Recommends:	qt5-style-motif
Recommends:	qt5-style-plastique

%description
Additional style plugins for Qt5 moved out of Qt5 base tree.

%files

#----------------------------------------------------------------------------

%package -n qt5-style-cleanlooks
Summary:	Cleanlooks style for Qt5
Group:		System/Libraries

%description -n qt5-style-cleanlooks
Cleanlooks style for Qt5.

%files -n qt5-style-cleanlooks
%{_qt5_plugindir}/styles/libqcleanlooksstyle.so

#----------------------------------------------------------------------------

%package -n qt5-style-motif
Summary:	Motif style for Qt5
Group:		System/Libraries

%description -n qt5-style-motif
Motif style for Qt5.

%files -n qt5-style-motif
%{_qt5_plugindir}/styles/libqmotifstyle.so

#----------------------------------------------------------------------------

%package -n qt5-style-plastique
Summary:	Plastique style for Qt5
Group:		System/Libraries

%description -n qt5-style-plastique
Plastique style for Qt5.

%files -n qt5-style-plastique
%{_qt5_plugindir}/styles/libqplastiquestyle.so

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
%qmake_qt5 %{oname}.pro
%make

%install
%makeinstall_qt

rm -rf %{buildroot}%{_libdir}/cmake

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16852 |21mr|qt6-qt3d-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with examples

Summary:	Qt6 - Qt3D QML bindings and C++ APIs
Name:		qt6-qt3d
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	LGPLv2 with exceptions or GPLv3 with exceptions
Url:		http://www.qt.io
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qt3d-everywhere-src-%{version}.tar.xz
Source100:	qt6-qt3d.rpmlintrc
Patch0:		qt3d-assimp-fix-build.patch
Patch1:		fix.build.licenses.patch
Patch2:		qt3d-6.5.0-compile.patch
Patch100:	e2k-detect.patch
BuildRequires:	cmake
BuildRequires:	qt6-cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6ShaderTools)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6QmlModels)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(gl)
BuildRequires:	vulkan-headers
BuildRequires:	pkgconfig(libglvnd)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libbrotlienc)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(libinput)


%description
Qt 3D provides functionality for near-realtime simulation systems with
support for 2D and 3D rendering in both Qt C++ and Qt Quick applications).

%define extra_files_3DExtras \
%{_qt6_qmldir}/Qt3D/Extras/libquick3dextrasplugin.so \
%{_qt6_qmldir}/Qt3D/Extras/plugins.qmltypes \
%{_qt6_qmldir}/Qt3D/Extras/qmldir

%define extra_files_3DCore \
%{_qt6_qmldir}/Qt3D/Core/libquick3dcoreplugin.so \
%{_qt6_qmldir}/Qt3D/Core/plugins.qmltypes \
%{_qt6_qmldir}/Qt3D/Core/qmldir

%define extra_files_3DQuick \
%{_qt6_qmldir}/Qt3D/Core/libquick3dcoreplugin.so \
%{_qt6_qmldir}/Qt3D/Core/plugins.qmltypes \
%{_qt6_qmldir}/Qt3D/Core/qmldir

%define extra_files_3DInput \
%{_qt6_qmldir}/Qt3D/Input/libquick3dinputplugin.so \
%{_qt6_qmldir}/Qt3D/Input/plugins.qmltypes \
%{_qt6_qmldir}/Qt3D/Input/qmldir

%define extra_files_3DQuickRender \
%{_qt6_qmldir}/Qt3D/Render/libquick3drenderplugin.so \
%{_qt6_qmldir}/Qt3D/Render/plugins.qmltypes \
%{_qt6_qmldir}/Qt3D/Render/qmldir \

%define extra_files_3DQuickScene2D \
%{_qt6_qmldir}/QtQuick/Scene2D/libqtquickscene2dplugin.so \
%{_qt6_qmldir}/QtQuick/Scene2D/plugins.qmltypes \
%{_qt6_qmldir}/QtQuick/Scene2D/qmldir

%define extra_files_3DRender \
%{_qt6_qmldir}/QtQuick/Scene3D/libqtquickscene3dplugin.so \
%{_qt6_qmldir}/QtQuick/Scene3D/plugins.qmltypes \
%{_qt6_qmldir}/QtQuick/Scene3D/qmldir

%define extra_files_3DLogic \
%{_qt6_qmldir}/Qt3D/Logic/libquick3dlogicplugin.so \
%{_qt6_qmldir}/Qt3D/Logic/plugins.qmltypes \
%{_qt6_qmldir}/Qt3D/Logic/qmldir

%define extra_files_3DQuickAnimation \
%{_qt6_qmldir}/Qt3D/Animation/libquick3danimationplugin.so \
%{_qt6_qmldir}/Qt3D/Animation/plugins.qmltypes \
%{_qt6_qmldir}/Qt3D/Animation/qmldir

%define extra_devel_files_3DCore \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*.cmake \
%{_qt6_libdir}/cmake/Qt6/FindWrapQt3DAssimp.cmake \
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/Qt3DTestsConfig.cmake


%qt6libs 3DAnimation 3DCore 3DExtras 3DInput 3DLogic 3DQuick 3DQuickAnimation 3DQuickExtras 3DQuickInput 3DQuickRender 3DQuickScene2D 3DRender

%files
%license LICENSE.GPL* LICENSE.LGPL*
%{_qt6_plugindir}/sceneparsers/
%{_qt6_plugindir}/renderers/
%{_qt6_plugindir}/geometryloaders/
%{_qt6_plugindir}/renderplugins/libscene2d.so

%if %{with examples}
%package examples
Summary: Example applications for Qt Declarative %{qtmajor}
Group: Development/KDE and Qt

%description examples
Example applications for Qt Declarative %{qtmajor}

%files examples
%{_qt6_examplesdir}/qt3d/*
%endif

%prep
%autosetup -p1 -n qt3d-everywhere-src-%{version}

%build
%cmake -G Ninja \
        -DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
%if %{with examples}
	-DQT_BUILD_EXAMPLES:BOOL=ON \
%else
	-DQT_BUILD_EXAMPLES:BOOL=OFF \
%endif
        -DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir}

%ninja_build


%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16853 |21mr|qt6-qt5compat-6.2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define _qtdir %{_libdir}/qt6

%define libname %mklibname Qt6Core5Compat %{major}
%define devname %mklibname -d Qt6Core5Compat

Summary:	Qt 5.x compatibility library for Qt6
Name:		qt6-qt5compat
Version:	6.2.3
Release:	2
Group:		System/Libraries
License:	LGPLv3/GPLv3/GPLv2
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qt5compat-everywhere-src-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6QmlModels)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(openssl)
%ifnarch %{e2k}
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)
%endif

%description
Qt 5.x compatibility library for Qt6

%package -n %{libname}
Summary:	Qt 5.x compatibility library for Qt6

%description -n %{libname}
Qt 5.x compatibility library for Qt6

%package -n %{devname}
Summary:	Development files for the Qt 5.x compatibility library for Qt6
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for the Qt 5.x compatibility library for Qt6

%prep
%autosetup -p1 -n qt5compat-everywhere-src-%{version}
# FIXME why are OpenGL lib paths autodetected incorrectly, preferring
# /usr/lib over /usr/lib64 even on 64-bit boxes?
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qtdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%build
export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%ninja_build -C build

%install
%ninja_install -C build
# Static helper lib without headers -- useless
rm -f %{buildroot}%{_libdir}/qt6/%{_lib}/libpnp_basictools.a
# Put stuff where tools will find it
# We can't do the same for %{_includedir} right now because that would
# clash with qt5 (both would want to have /usr/include/QtCore and friends)
mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_libdir}/cmake
for i in %{buildroot}%{_qtdir}/lib/*.so*; do
	ln -s qt6/lib/$(basename ${i}) %{buildroot}%{_libdir}/
done
mv %{buildroot}%{_qtdir}/lib/cmake %{buildroot}%{_libdir}/

%files -n %{libname}
%{_libdir}/libQt6Core5Compat.so.*
%{_qtdir}/lib/libQt6Core5Compat.so.*

%files -n %{devname}
%{_libdir}/cmake/Qt6Core5Compat
%{_libdir}/cmake/Qt6BuildInternals/StandaloneTests/*.cmake
%{_libdir}/cmake/Qt6/FindWrapIconv.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectspluginAdditionalTargetInfo.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectspluginConfig.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectspluginConfigVersion.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectspluginConfigVersionImpl.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectspluginTargets-rel*.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectspluginTargets.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectsprivateAdditionalTargetInfo.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectsprivateConfig.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectsprivateConfigVersion.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectsprivateConfigVersionImpl.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectsprivateTargets-rel*.cmake
%{_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtgraphicaleffectsprivateTargets.cmake
%{_libdir}/libQt6Core5Compat.so
%{_qtdir}/include/QtCore5Compat
%{_qtdir}/lib/libQt6Core5Compat.prl
%{_qtdir}/lib/libQt6Core5Compat.so
%{_qtdir}/mkspecs/modules/qt_lib_core5compat.pri
%{_qtdir}/mkspecs/modules/qt_lib_core5compat_private.pri
%{_qtdir}/modules/Core5Compat.json
%{_qtdir}/qml/Qt5Compat
%{_qtdir}/lib/metatypes/qt6core5compat_rel*_metatypes.json

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16854 |21mr|qt6-qt5compat-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define libname %mklibname Qt6Core5Compat %{major}
%define devname %mklibname Qt6Core5Compat -d

Summary:	Qt 5.x compatibility library for Qt6
Name:		qt6-qt5compat
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qt5compat-everywhere-src-%{version}.tar.xz
Source100:	qt6-qt5compat.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6ShaderTools) = %{version}
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt 5.x compatibility library for Qt6

%files
%{_qt6_qmldir}/Qt5Compat

#----------------------------------------------------------

%package -n %{libname}
Summary:	Qt Graphs library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Qt scxml library.

%files -n %{libname}
%{_qt6_libdir}/*.so.%{major}*

#---------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_qt6_includedir}/QtCore5Compat
%{_qt6_libdir}/cmake/Qt6
%{_qt6_libdir}/cmake/Qt6BuildInternals
%{_qt6_libdir}/cmake/Qt6Core5Compat
%{_qt6_libdir}/cmake/Qt6Qml
%{_qt6_libdir}/pkgconfig/Qt6Core5Compat.pc
%{_qt6_archdatadir}/modules/Core5Compat.json
%{_qt6_mkspecsdir}/modules/qt_lib_core5compat_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_core5compat.pri
%{_qt6_archdatadir}/metatypes/qt6core5compat_release_metatypes.json
%{_qt6_libdir}/libQt6Core5Compat.prl
%{_qt6_libdir}/libQt6Core5Compat.so

#---------------------------------------------

%package examples
Summary: Examples for the Qt %{major} Graphs module
Group: Development/KDE and Qt

%description examples
Examples for the Qt %{major} Graphs module

%files examples
%{_qt6_examplesdir}/core5

#---------------------------------------------

%prep
%autosetup -p1 -n qt5compat-everywhere-src-%{version}

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%ninja_build

%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16855 |21mr|qt6-qtbase-6.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Version 6 of the Qt framework
Name:		qt6-qtbase
Version:	6.6.2
Release:	2
Group:		System/Libraries
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtbase-everywhere-src-%{version}.tar.xz
Source1:	qt6-qtbase.rpmlintrc
# rpm macros
Source100:	macros.qt6
%{load:%{S:100}}
Source101:	macros.qt6-qmake
Patch1:		qtbase-6.2.0-aarch64-buildfix.patch
%ifarch %{e2k}
Patch100:	e2k.patch
%endif
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	perl
BuildRequires:	icu
BuildRequires:	pkgconfig(libzstd)
# Not really used, but referenced by the paranoid integrity
# check in cmake files
BuildRequires:	%{_lib}zstd-static-devel
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(libinput)
BuildRequires:	pkgconfig(xcb-atom)
BuildRequires:	pkgconfig(xcb-aux)
BuildRequires:	pkgconfig(xcb-cursor)
BuildRequires:	pkgconfig(xcb-event)
BuildRequires:	pkgconfig(xcb-ewmh)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-renderutil)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(odbc)
BuildRequires:	cmake(double-conversion)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpcre2-16)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libglvnd)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	cups-devel
BuildRequires:	mtdev-devel
# this package in contrib
#BuildRequires:	openvg-devel
BuildRequires:	pkgconfig(libbrotlidec)
BuildRequires:	pkgconfig(libbrotlienc)
BuildRequires:	pkgconfig(libsctp)
# For the QtSQL plugins
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(libmariadb)
BuildRequires:	pkgconfig(libpq)
# For the theme only
BuildRequires:	pkgconfig(gtk+-3.0)
License:	GPLv2+

%description
Version %{qtmajor} of the Qt framework

#----------------------------------------------------

%define extra_devel_files_Core \
%{_qt6_bindir}/qt-configure-module \
%dir %{_qt6_libexecdir} \
%{_qt6_libexecdir}/moc \
%{_qt6_libexecdir}/rcc \
%dir %{_qt6_archdatadir}/metatypes \
%dir %{_qt6_archdatadir}/modules \
%{_qt6_libdir}/pkgconfig/Qt6Platform.pc

#----------------------------------------------------

%define extra_devel_reqprov_Core \
Requires: %{name}-tools = %{EVRD} \
Requires: qmake-qt%{qtmajor} = %{EVRD} \

#----------------------------------------------------

%define extra_files_Gui \
%dir %{_qt6_plugindir}/egldeviceintegrations \
%{_qt6_plugindir}/egldeviceintegrations/libqeglfs-emu-integration.so \
%{_qt6_plugindir}/egldeviceintegrations/libqeglfs-kms-egldevice-integration.so \
%{_qt6_plugindir}/egldeviceintegrations/libqeglfs-kms-integration.so \
%{_qt6_plugindir}/egldeviceintegrations/libqeglfs-x11-integration.so \
%dir %{_qt6_plugindir}/xcbglintegrations \
%{_qt6_plugindir}/xcbglintegrations/libqxcb-egl-integration.so \
%dir %{_qt6_plugindir}/generic \
%{_qt6_plugindir}/generic/libqevdevkeyboardplugin.so \
%{_qt6_plugindir}/generic/libqevdevmouseplugin.so \
%{_qt6_plugindir}/generic/libqevdevtabletplugin.so \
%{_qt6_plugindir}/generic/libqevdevtouchplugin.so \
%{_qt6_plugindir}/generic/libqlibinputplugin.so \
%{_qt6_plugindir}/generic/libqtuiotouchplugin.so \
%dir %{_qt6_plugindir}/imageformats \
%{_qt6_plugindir}/imageformats/libqgif.so \
%{_qt6_plugindir}/imageformats/libqico.so \
%{_qt6_plugindir}/imageformats/libqjpeg.so \
%dir %{_qt6_plugindir}/platforminputcontexts \
%{_qt6_plugindir}/platforminputcontexts/libcomposeplatforminputcontextplugin.so \
%{_qt6_plugindir}/platforminputcontexts/libibusplatforminputcontextplugin.so \
%dir %{_qt6_plugindir}/platforms \
%{_qt6_plugindir}/platforms/libqeglfs.so \
%{_qt6_plugindir}/platforms/libqlinuxfb.so \
%{_qt6_plugindir}/platforms/libqminimal.so \
%{_qt6_plugindir}/platforms/libqminimalegl.so \
%{_qt6_plugindir}/platforms/libqoffscreen.so \
%{_qt6_plugindir}/platforms/libqvkkhrdisplay.so \
%{_qt6_plugindir}/platforms/libqvnc.so \
%{_qt6_plugindir}/platforms/libqxcb.so \
%{_qt6_plugindir}/xcbglintegrations/libqxcb-glx-integration.so \
%dir %{_qt6_plugindir}/platformthemes \
%{_qt6_plugindir}/platformthemes/libqxdgdesktopportal.so

#----------------------------------------------------

# FIXME this really shouldn't be necessary, but the cmake files
# perform a mistaken integrity check.
# Not requiring all the plugins results in
# CMake Error at /usr/lib64/qt6/lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginTargets.cmake:95 (message):
#   The imported target "Qt6::QGtk3ThemePlugin" references the file
#      "/usr/lib64/qt6/./plugins/platformthemes/libqgtk3.so"
#   but this file does not exist.  Possible reasons include:
#   * The file was deleted, renamed, or moved to another location.
#   * An install or uninstall procedure did not complete successfully.
#   * The installation package was faulty and contained
#      "/usr/lib64/qt6/lib/cmake/Qt6Gui/Qt6QGtk3ThemePluginTargets.cmake"
#   but not all the files it references.
%define extra_devel_reqprov_Gui \
Requires: %{name}-theme-gtk3 = %{EVRD} \
Requires: pkgconfig(egl) \
Requires: pkgconfig(glesv2)

#----------------------------------------------------

%define extra_devel_files_DBus \
%{_qt6_bindir}/qdbuscpp2xml \
%{_qt6_bindir}/qdbusxml2cpp

#----------------------------------------------------

%define extra_files_Network \
%dir %{_qt6_plugindir}/networkinformation \
%{_qt6_plugindir}/networkinformation/libqnetworkmanager.so \
%{_qt6_plugindir}/networkinformation/libqglib.so \
%dir %{_qt6_plugindir}/tls \
%{_qt6_plugindir}/tls/libqcertonlybackend.so \
%{_qt6_plugindir}/tls/libqopensslbackend.so

#----------------------------------------------------

%define extra_devel_files_Network \
%{_qt6_libdir}/cmake/Qt6HostInfo

#----------------------------------------------------

%define extra_files_PrintSupport \
%dir %{_qt6_plugindir}/printsupport \
%{_qt6_plugindir}/printsupport/libcupsprintersupport.so

#----------------------------------------------------

%define extra_files_Sql \
%dir %{_qt6_plugindir}/sqldrivers \
%{_qt6_plugindir}/sqldrivers/libqsqlite.so \
%{_qt6_plugindir}/sqldrivers/libqsqlmysql.so \
%{_qt6_plugindir}/sqldrivers/libqsqlodbc.so \
%{_qt6_plugindir}/sqldrivers/libqsqlpsql.so

#----------------------------------------------------

%define extra_devel_files_Test \
%{_qt6_libexecdir}/qt-testrunner.py \
%{_qt6_libexecdir}/__pycache__/*

#----------------------------------------------------

%define extra_devel_files_Widgets \
%{_qt6_libexecdir}/uic

#----------------------------------------------------

%qt6libs Core Concurrent DBus EglFSDeviceIntegration EglFsKmsSupport EglFsKmsGbmSupport Gui Network OpenGL OpenGLWidgets PrintSupport Sql Test Widgets XcbQpa Xml
%qt6staticlibs DeviceDiscoverySupport FbSupport ExampleIcons InputSupport KmsSupport

#----------------------------------------------------

%package doc
Summary: Documentation for the Qt %{qtmajor} framework
Group: Documentation

%description doc
Documentation for the Qt %{qtmajor} framework

%files doc
%{_qt6_docdir}/

#----------------------------------------------------

%package examples
Summary: Examples for the Qt %{qtmajor} framework
Group: Documentation

%description examples
Documentation for the Qt %{qtmajor} framework

%files examples
%{_qt6_examplesdir}/
%{_libdir}/objects-Release/ExampleIconsPrivate_resources_1

#----------------------------------------------------

%package theme-gtk3
Summary: GTK3 Theme for Qt %{qtmajor}
Group:	Graphical desktop/KDE
Requires: %{mklibname Qt%{qtmajor}Gui} = %{EVRD}

%description theme-gtk3
GTK3 Theme for Qt %{qtmajor}

%files theme-gtk3
%{_qt6_plugindir}/platformthemes/libqgtk3.so

#----------------------------------------------------

%package -n qmake-qt%{qtmajor}
Summary: The legacy qmake build tool for Qt %{qtmajor}
Group: Development/Tools

%description -n qmake-qt%{qtmajor}
The legacy qmake build tool for Qt %{qtmajor}

%files -n qmake-qt%{qtmajor}
%{_bindir}/qmake-qt6
%{_qt6_bindir}/qmake
%{_qt6_bindir}/qmake6
%{_qt6_mkspecsdir}/
%{_qt6_libexecdir}/qt-internal-configure-tests
%{_qt6_libexecdir}/ensure_pro_file.cmake
%{_prefix}/lib/rpm/macros.d/macros.qt6-qmake

#----------------------------------------------------

%package -n qt%{qtmajor}-cmake
Summary: Cmake extensions for Qt %{qtmajor}
Group: Development/KDE and Qt
Requires: cmake

%description -n qt%{qtmajor}-cmake
Cmake extensions for Qt %{qtmajor}

%files -n qt%{qtmajor}-cmake
%{_qt6_bindir}/qt-cmake
%{_qt6_bindir}/qt-cmake-create
%{_qt6_libexecdir}/cmake_automoc_parser
%dir %{_qt6_libdir}/cmake
%{_qt6_libdir}/cmake/Qt6
%{_qt6_libdir}/cmake/Qt6BuildInternals
%{_qt6_libexecdir}/android_emulator_launcher.sh
%{_qt6_libexecdir}/qt-cmake-private
%{_qt6_libexecdir}/qt-cmake-private-install.cmake
%{_qt6_libexecdir}/qt-cmake-standalone-test
%{_prefix}/lib/rpm/macros.d/macros.qt6

#----------------------------------------------------

%package tools
Summary: Qt %{qtmajor} build tools
Group: Development/KDE and Qt

%description tools
Qt %{qtmajor} build tools

%files tools
%{_qt6_bindir}/androiddeployqt
%{_qt6_bindir}/androiddeployqt%{qtmajor}
%{_qt6_bindir}/androidtestrunner
%{_qt6_bindir}/qtpaths
%{_qt6_bindir}/qtpaths%{qtmajor}
%{_qt6_libexecdir}/qlalr
%{_qt6_libexecdir}/qvkgen
%{_qt6_libexecdir}/tracegen
%{_qt6_libexecdir}/sanitizer-testrunner.py
%{_qt6_libexecdir}/syncqt
%{_qt6_libexecdir}/tracepointgen

#----------------------------------------------------

%prep
%setup -q -n qtbase-everywhere-src-%{version}
%patch1 -p1
%ifarch %{e2k}
%patch100 -p1
%endif

sed -i -e 's,@QTDIR@,%{_qt6_libdir},g' src/gui/kernel/qguiapplication.cpp

# FIXME This may be interesting in the future:
#	-DQT_FEATURE_cxx2a:BOOL=ON
# As of 6.0.02 and clang 11.0.1, causes a compile failure

# FIXME This may be interesting for some boards
#	-DQT_FEATURE_opengl_dynamic:BOOL=ON \
#	-DQT_FEATURE_opengles2:BOOL=ON
# But as of 6.0.02, it disables the even more useful X11 GLX plugin
# opengles2 disables it in cmake, the others cause bogus linkage

# FIXME Investigate
#	-DQT_FEATURE_lttng:BOOL=ON
# -DBUILD_WITH_PCH:BOOL=OFF is a workaround for
# https://github.com/llvm/llvm-project/issues/57505

%build
%ifarch aarch64
export CFLAGS="%{optflags} -march=armv8-a+crypto"
export CXXFLAGS="%{optflags} -march=armv8-a+crypto"
%endif
export LD_LIBRARY_PATH="$(pwd)/build/%{_lib}:${LD_LIBRARY_PATH}"
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DINSTALL_ARCHDATADIR=%{_qt6_archdatadir} \
	-DINSTALL_DATADIR=%{_qt6_datadir} \
	-DINSTALL_BINDIR=%{_qt6_bindir} \
	-DINSTALL_MKSPECSDIR=%{_qt6_mkspecsdir} \
	-DINSTALL_QMLDIR=%{_qt6_qmldir} \
	-DINSTALL_PLUGINSDIR=%{_qt6_plugindir} \
	-DINSTALL_INCLUDEDIR=%{_qt6_headerdir} \
	-DINSTALL_EXAMPLESDIR=%{_qt6_examplesdir} \
	-DINSTALL_TESTSDIR=%{_qt6_testsdir} \
	-DINSTALL_DOCDIR=%{_qt6_docdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_BUILD_TESTS:BOOL=FALSE \
	-DINSTALL_LIBDIR=%{_libdir} \
	-DBUILD_SHARED_LIBS:BOOL=ON \
	-DFEATURE_relocatable:BOOL=OFF \
	-DQT_FEATURE_aesni:BOOL=ON \
%ifnarch %{e2k}
	-DQT_FEATURE_cxx20:BOOL=ON \
%else
	-DQT_FEATURE_cxx20:BOOL=OFF \
%endif
	-DQT_FEATURE_dynamicgl:BOOL=ON \
	-DQT_FEATURE_ipc_posix:BOOL=ON \
	-DQT_FEATURE_journald:BOOL=ON \
	-DQT_FEATURE_opengl_desktop:BOOL=ON \
	-DQT_FEATURE_opengles3:BOOL=ON \
	-DQT_FEATURE_opengles31:BOOL=ON \
	-DQT_FEATURE_opengles32:BOOL=ON \
	-DQT_FEATURE_use_bfd_linker:BOOL=ON \
	-DQT_FEATURE_xcb_native_painting:BOOL=ON \
	-DQT_FEATURE_openssl:BOOL=ON \
	-DQT_FEATURE_openssl_linked:BOOL=ON \
	-DQT_FEATURE_system_jpeg:BOOL=ON \
	-DQT_FEATURE_system_png:BOOL=ON \
	-DQT_FEATURE_system_zlib:BOOL=ON \
	-DQT_FEATURE_system_sqlite:BOOL=ON \
	-DQT_FEATURE_system_xcb_xinput:BOOL=ON \
	-DQT_FEATURE_libproxy:BOOL=ON \
	-DQT_FEATURE_ltcg:BOOL=ON \
	-DQT_FEATURE_sctp:BOOL=ON \
	-DQT_FEATURE_gc_binaries:BOOL=ON \
	-DQT_FEATURE_futimes:BOOL=ON \
	-DQT_FEATURE_renameat2:BOOL=ON \
	-DINPUT_doubleconversion=system \
	-DINPUT_freetype=system \
	-DINPUT_harfbuzz=system \
	-DINPUT_libjpeg=system \
	-DINPUT_libpng=system \
	-DINPUT_sqlite=system \
	-DQT_INPUT_openssl=linked \
%ifarch %{armx}
	-DQT_FEATURE_neon:BOOL=ON \
%endif
%ifarch %{x86_64} %{e2k}
	-DQT_FEATURE_sse2:BOOL=ON \
%endif
	-DQT_USE_BUNDLED_BundledFreetype:BOOL=OFF \
	-DQT_USE_BUNDLED_BundledHarfbuzz:BOOL=OFF \
	-DQT_USE_BUNDLED_BundledLibpng:BOOL=OFF \
	-DQT_USE_BUNDLED_BundledPcre2:BOOL=OFF \
	-DQT_WILL_INSTALL:BOOL=ON \
	-DBUILD_WITH_PCH:BOOL=OFF

%ninja_build

%install
%ninja_install -C build

# Add rpm macros
mkdir -p %{buildroot}%{_prefix}/lib/rpm/macros.d/
cp %{S:100} %{buildroot}%{_prefix}/lib/rpm/macros.d/macros.qt6
cp %{S:101} %{buildroot}%{_prefix}/lib/rpm/macros.d/macros.qt6-qmake

# Put qmake-qt6 where some stuff (e.g. LO) looks for it
mkdir -p %{buildroot}%{_bindir}
ln -s %{_qt6_bindir}/qmake %{buildroot}%{_bindir}/qmake-qt6

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16856 |21mr|qt6-qtcharts-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define libname %mklibname Qt6QtCharts %{major}
%define devname %mklibname Qt6QtCharts -d

Summary:	Qt6 - Charts component
Name:		qt6-qtcharts
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv3
Url:		http://www.qt.io
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtcharts-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtcharts.rpmlintrc

BuildRequires:	cmake
BuildRequires:	qt6-cmake
BuildRequires:	ninja
BuildRequires:	qt6-qtdeclarative
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6QmlModels)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6QuickTest)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libglvnd)

%description
Qt Charts module provides a set of easy to use chart components. It uses the Qt Graphics View Framework, therefore charts can be easily
integrated to modern user interfaces. Qt Charts can be used as QWidgets, QGraphicsWidget, or QML types.
Users can easily create impressive graphs by selecting one of the charts themes.

%files
%{_qt6_qmldir}/QtCharts/designer/
%{_qt6_qmldir}/QtCharts/libqtchartsqml2plugin.so
%{_qt6_qmldir}/QtCharts/plugins.qmltypes
%{_qt6_qmldir}/QtCharts/qmldir

#--------------------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt Graphs library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Qt scxml library.

%files -n %{libname}
%{_qt6_libdir}/libQt6Charts.so.%{major}*
%{_qt6_libdir}/libQt6ChartsQml.so.%{major}*

#---------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_qt6_includedir}/QtCharts
%{_qt6_includedir}/QtChartsQml
%{_qt6_libdir}/cmake/Qt6BuildInternals
%{_qt6_libdir}/cmake/Qt6Charts
%{_qt6_libdir}/cmake/Qt6ChartsQml
%{_qt6_libdir}/cmake/Qt6Qml
%{_qt6_libdir}/pkgconfig/Qt6Charts.pc
%{_qt6_libdir}/pkgconfig/Qt6ChartsQml.pc
%{_qt6_archdatadir}/modules/Charts.json
%{_qt6_archdatadir}/modules/ChartsQml.json
%{_qt6_mkspecsdir}/modules/qt_lib_charts_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_charts.pri
%{_qt6_mkspecsdir}/modules/qt_lib_chartsqml_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_chartsqml.pri
%{_qt6_archdatadir}/metatypes/qt6charts_release_metatypes.json
%{_qt6_archdatadir}/metatypes/qt6chartsqml_release_metatypes.json
%{_qt6_libdir}/libQt6Charts.prl
%{_qt6_libdir}/libQt6ChartsQml.prl
%{_qt6_libdir}/libQt6Charts.so
%{_qt6_libdir}/libQt6ChartsQml.so

#---------------------------------------------

%prep
%autosetup -n qtcharts-everywhere-src-%{version} -p1
%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=OFF

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16857 |21mr|qt6-qtconnectivity-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Qt6 - Connectivity components
Name:    qt6-qtconnectivity
Version:	6.6.2
Release:	1
Group:	System/Libraries
# See LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions
Url:     http://qt.io
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtconnectivity-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtconnectivity.rpmlintrc
BuildRequires:	openssl-devel
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6AssimpImporterPlugin)
BuildRequires:	cmake(Qt6Quick3DAssetImport)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(bluez)

%description
Qt6 - Connectivity components.

%files
%{_qt6_libexecdir}/sdpscanner

#---------------------------------------------------

%global extra_files_Bluetooth \
%{_qt6_libexecdir}/sdpscanner

#---------------------------------------------------

%global extra_devel_files_Bluetooth \
%{_qt6_libdir}/cmake/Qt6/FindBlueZ.cmake

#---------------------------------------------------

%global extra_devel_files_Nfc \
%{_qt6_libdir}/cmake/Qt6/FindPCSCLITE.cmake \
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtConnectivityTestsConfig.cmake

#---------------------------------------------------

%qt6libs Bluetooth Nfc

#---------------------------------------------------

%prep
%autosetup -p1 -n qtconnectivity-everywhere-src-%{version}

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=OFF \
	-DQT_WILL_INSTALL:BOOL=ON \
	-DFEATURE_spatialaudio_quick3d:BOOL=ON \
	--log-level=STATUS

%ninja_build


%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16858 |21mr|qt6-qtdatavis3d-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with examples

Summary: Qt6 - Qt Data Visualization component
Name:    qt6-qtdatavis3d
Version:	6.6.2
Release:	1
Group:	System/Libraries
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License: LGPLv2 with exceptions or GPLv3 with exceptions
Url:     http://www.qt.io
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtdatavis3d-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtdatavis3d.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6Multimedia)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)


%description
Qt Data Visualization module provides multiple graph types to visualize data in
3D space both with C++ and Qt Quick 2.

%global extra_files_DataVisualization \
%{_qt6_qmldir}/QtDataVisualization/

%global extra_files_DataVisualizationQml \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*.cmake

%qt6libs DataVisualization DataVisualizationQml

%if %{with examples}
%package examples
Summary: Examples for the Qt %{major} Web Sockets module
Group: Development/KDE and Qt

%description examples
Examples for the Qt %{major} Web Sockets module

%files examples
%optional %{_qt6_examplesdir}/datavisualization
%endif

%prep
%autosetup -p1 -n qtdatavis3d-everywhere-src-%{version}
%if !%{with examples}
rm -rf examples
%endif

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_WILL_INSTALL:BOOL=ON

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16859 |21mr|qt6-qtdeclarative-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with examples

%global debug_package %nil

Summary:	Version 6 of the Qt Quick framework
Name:		qt6-qtdeclarative
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtdeclarative-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtdeclarative.rpmlintrc
Source200:	e2k-toolchain.bug
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	qt6-cmake
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6LinguistTools)
BuildRequires:	cmake(Qt6LanguageServerPrivate)
BuildRequires:	cmake(Qt6JsonRpcPrivate)
BuildRequires:	cmake(Qt6ShaderTools) = %{version}
BuildRequires:	qt6-qtbase-tools
BuildRequires:	qmake-qt6
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	qml-rpm-generators

%description
Version 6 of the Qt Quick framework

%files
%{_qt6_bindir}/qml
%{_qt6_bindir}/qmldom
%{_qt6_bindir}/qmlformat
%optional %{_qt6_bindir}/qmllint
%optional %{_qt6_plugindir}/qmllint
%{_qt6_bindir}/qmlpreview
%{_qt6_bindir}/qmlprofiler
%{_qt6_bindir}/qmleasing
%{_qt6_bindir}/qmlplugindump
%{_qt6_bindir}/qmlscene
%{_qt6_bindir}/qmltestrunner
%{_qt6_bindir}/qmltime
%{_qt6_libexecdir}/qmlcachegen
%{_qt6_libexecdir}/qmlimportscanner
%{_qt6_libexecdir}/qmltyperegistrar

#----------------------------------------------------

%define extra_files_Qml \
%{_qt6_plugindir}/qmltooling \
%dir %{_qt6_qmldir}/Qt \
%dir %{_qt6_qmldir}/Qt/labs \
%{_qt6_qmldir}/Qt/labs/animation \
%{_qt6_qmldir}/Qt/labs/folderlistmodel \
%{_qt6_qmldir}/Qt/labs/platform \
%{_qt6_qmldir}/Qt/labs/settings \
%{_qt6_qmldir}/Qt/labs/sharedimage \
%{_qt6_qmldir}/Qt/labs/wavefrontmesh \
%{_qt6_qmldir}/Qt/labs/qmlmodels \
%{_qt6_qmldir}/QtTest \
%{_qt6_qmldir}/QmlTime \
%{_qt6_qmldir}/builtins.qmltypes \
%{_qt6_archdatadir}/modules/QmlIntegration.json \
%{_qt6_archdatadir}/modules/QmlDebugPrivate.json

#----------------------------------------------------

%define extra_devel_files_Qml \
%optional %{_qt6_bindir}/qmltc \
%{_qt6_includedir}/QtQuick \
%{_qt6_includedir}/QtQuickTemplates2 \
%{_qt6_includedir}/QtQmlIntegration \
%{_qt6_libdir}/cmake/Qt%{qtmajor}BuildInternals/* \
%{_qt6_libdir}/cmake/Qt%{qtmajor}QmlDebugPrivate \
%{_qt6_libdir}/cmake/Qt%{qtmajor}QmlImportScanner \
%{_qt6_libdir}/cmake/Qt6QmlIntegration \
%{_qt6_mkspecsdir}/features/qtquickcompiler.prf \
%{_qt6_mkspecsdir}/features/qmlcache.prf \
%{_qt6_mkspecsdir}/features/qmltypes.prf \
%{_qt6_mkspecsdir}/modules/qt_lib_qmlintegration.pri \
%{_qt6_mkspecsdir}/modules/qt_lib_qmlintegration_private.pri \
%{_qt6_mkspecsdir}/modules/qt_lib_qmltest.pri \
%{_qt6_mkspecsdir}/modules/qt_lib_qmltest_private.pri \
%{_qt6_mkspecsdir}/modules/qt_lib_qmlworkerscript.pri \
%{_qt6_mkspecsdir}/modules/qt_lib_qmlworkerscript_private.pri \
%{_qt6_libdir}/pkgconfig/Qt6QmlIntegration.pc

#----------------------------------------------------

%define extra_reqprov_Qml \
Requires:	qml-rpm-generators \
Requires:	%{_lib}Qt6QmlCore

#----------------------------------------------------

%define extra_devel_reqprov_Qml \
Requires:	%{name} = %{EVRD}

#----------------------------------------------------

%define extra_files_QmlCore \
%dir %{_qt6_qmldir} \
%{_qt6_qmldir}/QtCore \
%{_qt6_qmldir}/QtQuick \
%{_qt6_qmldir}/jsroot.qmltypes \
%{_qt6_qmldir}/QtQml \
%{_qt6_bindir}/qmlls

#----------------------------------------------------

%define extra_files_QuickTest \
%{_qt6_qmldir}/Qt/test

#----------------------------------------------------

%define extra_devel_reqprov_Quick \
Requires:	cmake(Qt6QmlModels) \
Requires:	cmake(Qt6OpenGL)

#----------------------------------------------------

%define extra_devel_files_QuickTest \
%{_qt6_mkspecsdir}/modules/qt_lib_quicktestutilsprivate_private.pri \

#----------------------------------------------------

%define extra_devel_reqprov_QuickTest \
Requires:	cmake(Qt6Test)

#----------------------------------------------------

%define extra_devel_files_QuickControls2 \
%{_qt6_mkspecsdir}/modules/qt_lib_quickcontrolstestutilsprivate_private.pri \

#----------------------------------------------------

%define extra_devel_reqprov_QuickControls2 \
Requires:	cmake(Qt6QuickTemplates2)

#----------------------------------------------------

# qmltyperegistrar and friends
%define extra_devel_reqprov_QmlCore \
Requires:	%{name} = %{EVRD}

#----------------------------------------------------

%define major 6
%define qtquickcontrols %mklibname Qt6QuickControls2

%package -n %{qtquickcontrols}
Summary:	Qt 6 qtdeclarative library
Group:		System/Libraries
Conflicts:	%{_lib}Qt6QuickControls2_6 < 6.6.0
Obsoletes:	%{_lib}Qt6QuickControls2_6 < 6.6.0

%description -n %{qtquickcontrols}
Qt 6 qtdeclarative library.

%files -n %{qtquickcontrols}
%{_qt6_libdir}/libQt6QuickControls2.so.%{major}*

#----------------------------------------------------------------------------

%define qtquickcontrolsd %mklibname Qt6QuickControls2 -d

%package -n %{qtquickcontrolsd}
Summary:	Development files for Qt 6 qtdeclarative library
Group:		Development/KDE and Qt
Requires:	%{qtquickcontrols} = %{EVRD}

%description -n %{qtquickcontrolsd}
Development files for Qt 6 qtdeclarative library.

%files -n %{qtquickcontrolsd}
%{_qt6_includedir}/QtQuickControls2/
%{_qt6_libdir}/pkgconfig/Qt6QuickControls2.pc
%{_qt6_libdir}/libQt6QuickControls2.so
%{_qt6_libdir}/libQt6QuickControls2.prl
%{_qt6_libdir}/cmake/Qt6QuickControls2
%{_qt6_mkspecsdir}/modules/qt_lib_quickcontrolstestutilsprivate_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_quickcontrols2_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_quickcontrols2.pri
%{_qt6_archdatadir}/modules/QuickControls2.json
%{_qt6_archdatadir}/metatypes/qt6quickcontrols2_release_metatypes.json

#----------------------------------------------------------------------------

%define major 6
%define qtquickdialogs %mklibname Qt6QuickDialogs2

%package -n %{qtquickdialogs}
Summary:	Qt 6 qtdeclarative library
Group:		System/Libraries
Conflicts:	%{_lib}Qt6QuickDialogs2_6 < 6.6.0
Obsoletes:	%{_lib}Qt6QuickDialogs2_6 < 6.6.0

%description -n %{qtquickdialogs}
Qt 6 qtdeclarative library.

%files -n %{qtquickdialogs}
%{_qt6_libdir}/libQt6QuickDialogs2.so.%{major}*

#----------------------------------------------------------------------------

%define qtquickdialogsd %mklibname Qt6QuickDialogs2 -d

%package -n %{qtquickdialogsd}
Summary:	Development files for Qt 6 qtdeclarative library
Group:		Development/KDE and Qt
Requires:	%{qtquickdialogs} = %{EVRD}

%description -n %{qtquickdialogsd}
Development files for Qt 6 qtdeclarative library.

%files -n %{qtquickdialogsd}
%{_qt6_includedir}/QtQuickDialogs2/
%{_qt6_libdir}/pkgconfig/Qt6QuickDialogs2.pc
%{_qt6_libdir}/libQt6QuickDialogs2.so
%{_qt6_libdir}/libQt6QuickDialogs2.prl
%{_qt6_libdir}/cmake/Qt6QuickDialogs2
%{_qt6_mkspecsdir}/modules/qt_lib_quickdialogs2_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_quickdialogs2.pri
%{_qt6_archdatadir}/modules/QuickDialogs2.json
%{_qt6_archdatadir}/metatypes/qt6quickdialogs2_release_metatypes.json

#----------------------------------------------------------------------------

%define major 6
%define qtquicktemplates %mklibname Qt6QuickTemplates2

%package -n %{qtquicktemplates}
Summary:	Qt 6 qtdeclarative library
Group:		System/Libraries
Conflicts:	%{_lib}Qt6QuickTemplates2_6 < 6.6.0
Obsoletes:	%{_lib}Qt6QuickTemplates2_6 < 6.6.0

%description -n %{qtquicktemplates}
Qt 6 qtdeclarative library.

%files -n %{qtquicktemplates}
%{_qt6_libdir}/libQt6QuickTemplates2.so.%{major}*

#----------------------------------------------------------------------------

%define qtquicktemplatesd %mklibname Qt6QuickTemplates2 -d

%package -n %{qtquicktemplatesd}
Summary:	Development files for Qt 6 qtdeclarative library
Group:		Development/KDE and Qt
Requires:	%{qtquicktemplates} = %{EVRD}

%description -n %{qtquicktemplatesd}
Development files for Qt 6 qtdeclarative library.

%files -n %{qtquicktemplatesd}
%{_qt6_includedir}/QtQuickTemplates2/
%{_qt6_libdir}/pkgconfig/Qt6QuickTemplates2.pc
%{_qt6_libdir}/libQt6QuickTemplates2.so
%{_qt6_libdir}/libQt6QuickTemplates2.prl
%{_qt6_libdir}/cmake/Qt6QuickTemplates2
%{_qt6_mkspecsdir}/modules/qt_lib_quicktemplates2_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_quicktemplates2.pri
%{_qt6_archdatadir}/modules/QuickTemplates2.json
%{_qt6_archdatadir}/metatypes/qt6quicktemplates2_release_metatypes.json

#----------------------------------------------------------------------------

%qt6libs LabsAnimation LabsFolderListModel LabsQmlModels LabsSettings LabsSharedImage LabsWavefrontMesh Quick QuickControls2Impl QuickDialogs2QuickImpl QuickDialogs2Utils QuickLayouts QuickParticles QuickShapes QuickTest QuickWidgets QmlWorkerScript Qml QmlCore QmlModels QmlLocalStorage QmlXmlListModel QmlCompiler QuickEffects
%qt6staticlibs QuickControlsTestUtils QuickTestUtils QmlDebug QmlDom PacketProtocol QmlTypeRegistrar QmlLS QmlToolingSettings

#----------------------------------------------------
%if %{with examples}
%package examples
Summary: Example applications for Qt Declarative %{qtmajor}
Group: Development/KDE and Qt

%description examples
Example applications for Qt Declarative %{qtmajor}

%files examples
%{_qt6_examplesdir}/qml
%{_qt6_examplesdir}/quick
%{_qt6_examplesdir}/qmltest
%{_qt6_examplesdir}/quickcontrols
%endif

#----------------------------------------------------

%package devel
Summary: Metapackage pulling in the development files for Qt Declarative %{qtmajor}
Group: Development/KDE and Qt
Requires:	cmake(Qt6LabsAnimation)
Requires:	cmake(Qt6LabsFolderListModel)
Requires:	cmake(Qt6LabsQmlModels)
Requires:	cmake(Qt6LabsSettings)
Requires:	cmake(Qt6LabsSharedImage)
Requires:	cmake(Qt6LabsWavefrontMesh)
Requires:	cmake(Qt6QmlCore)
Requires:	cmake(Qt6Qml)
Requires:	cmake(Qt6QmlLocalStorage)
Requires:	cmake(Qt6QmlModels)
Requires:	cmake(Qt6QmlWorkerScript)
Requires:	cmake(Qt6QmlXmlListModel)
Requires:	cmake(Qt6QuickControls2)
Requires:	cmake(Qt6QuickControls2Impl)
Requires:	cmake(Qt6Quick)
Requires:	cmake(Qt6QuickParticlesPrivate)
Requires:	cmake(Qt6QuickShapesPrivate)
Requires:	cmake(Qt6QmlDomPrivate)
Requires:	cmake(Qt6QuickDialogs2)
Requires:	cmake(Qt6QuickDialogs2QuickImpl)
Requires:	cmake(Qt6QuickDialogs2Utils)
Requires:	cmake(Qt6QuickLayouts)
Requires:	cmake(Qt6QuickTemplates2)
Requires:	cmake(Qt6QuickTest)
Requires:	cmake(Qt6QuickWidgets)

%description devel
Metapackage pulling in the development files for Qt Declarative %{qtmajor}

%files devel

#----------------------------------------------------

%prep
%autosetup -p1 -n qtdeclarative-everywhere-src-%{version}
# remove qmltc on e2k arches
# because of toolchain bug
%ifarch %{e2k}
patch -p1 < %{SOURCE200}
%endif

%build
export LD_LIBRARY_PATH="$(pwd)/build/%{_lib}:${LD_LIBRARY_PATH}"
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
%if %{with examples}
	-DQT_BUILD_EXAMPLES:BOOL=ON \
%else
	-DQT_BUILD_EXAMPLES:BOOL=OFF \
%endif
	-DBUILD_SHARED_LIBS:BOOL=ON \
	-DQT_FEATURE_dynamicgl:BOOL=ON \
	-DQT_FEATURE_use_bfd_linker:BOOL=ON \
	-DQT_FEATURE_xcb_native_painting:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON \
	-DBUILD_WITH_PCH:BOOL=OFF

%ninja_build

%install
%ninja_install -C build
# Seems to be an accidentally installed object file
rm -rf %{buildroot}%{_qt6_libdir}/objects-RelWithDebInfo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16860 |21mr|qt6-qtdoc-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %nil

Summary:	Qt6 Documentation Tools
Name:		qt6-qtdoc
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtdoc-everywhere-src-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6QmlIntegration)
BuildRequires:	cmake(Qt6QmlModels)
BuildRequires:	cmake(Qt6QmlXmlListModel)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6QuickControls2)
BuildRequires:	cmake(Qt6QuickTemplates2)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6QuickControls2)
BuildRequires:	cmake(Qt6QmlXmlListModel)

%description
Qt6 documentation tools.

%prep
%autosetup -p1 -n qtdoc-everywhere-src-%{version}

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DBUILD_EXAMPLES:BOOL=ON \
	-DBUILD_SHARED_LIBS:BOOL=ON \
	-DFEATURE_cxx2a:BOOL=ON \
	-DFEATURE_dynamicgl:BOOL=ON \
	-DFEATURE_ftp:BOOL=ON \
	-DFEATURE_opengl_dynamic:BOOL=ON \
	-DFEATURE_use_lld_linker:BOOL=ON \
	-DFEATURE_xcb_native_painting:BOOL=ON \
	-DFEATURE_openssl:BOOL=ON \
	-DFEATURE_openssl_linked:BOOL=ON \
	-DFEATURE_system_sqlite:BOOL=ON \
	-DINPUT_sqlite=system \
	-DQT_WILL_INSTALL:BOOL=ON \
	-D_OPENGL_LIB_PATH=%{_libdir} \
	-DOPENGL_egl_LIBRARY=%{_libdir}/libEGL.so \
	-DOPENGL_glu_LIBRARY=%{_libdir}/libGLU.so \
	-DOPENGL_glx_LIBRARY=%{_libdir}/libGLX.so \
	-DOPENGL_opengl_LIBRARY=%{_libdir}/libOpenGL.so
%ninja_build

%install
%ninja_install -C build

%files
%{_qt6_examplesdir}/*
%{_qt6_mkspecsdir}/qtdoc_dummy_file.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16861 |21mr|qt6-qtgraphs-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module qtgraphs
%define major 6

%define libname %mklibname qt6graphs %{major}
%define devname %mklibname qt6graphs -d

Summary:	Version 6 Graphs module
Name:		qt6-%{module}
Version:	6.6.2
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-src-%{version}.tar.xz
BuildRequires:	ninja
BuildRequires:	cmake
BuildRequires:	qt6-cmake
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6QuickTest)
BuildRequires:	cmake(Qt6QuickWidgets)
BuildRequires:	cmake(Qt6Quick3D)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(vulkan)

%description
Qt6 Graphs module.

#----------------------------------------------------------

%package -n %{libname}
Summary:	Qt Graphs library
Group:		System/Libraries

%description -n %{libname}
Qt scxml library.

%files -n %{libname}
%{_qt6_libdir}/*.so.%{major}*
%{_qt6_qmldir}/QtGraphs

#---------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_qt6_includedir}/*
%{_qt6_libdir}/cmake/*
%{_qt6_libdir}/pkgconfig/Qt6Graphs.pc
%{_qt6_archdatadir}/modules/*.json
%{_qt6_mkspecsdir}/modules/*.pri
%{_qt6_archdatadir}/metatypes/*.json
%{_qt6_libdir}/*.prl
%{_qt6_libdir}/*.so

#----------------------------------------------------------

%package examples
Summary: Examples for the Qt %{major} Graphs module
Group: Development/KDE and Qt

%description examples
Examples for the Qt %{major} Graphs module

%files examples
%{_qt6_examplesdir}/graphs

#---------------------------------------------

%prep
%autosetup -p1 -n qtgraphs-everywhere-src-%{version}

%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%build
export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%ninja_build -C build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16862 |21mr|qt6-qthttpserver-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

Summary:	Qt %{major} HTTP Server module
Name:		qt6-qthttpserver
Version:	6.6.2
Release:	1
Group:		Development/KDE and Qt
License:	LGPLv3/GPLv3/GPLv2
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qthttpserver-everywhere-src-%{version}.tar.xz
Source100:	qt6-qthttpserver.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6WebSockets)
BuildRequires:	qt%{major}-cmake

%description
Qt %{major} HTTP Server module

%qt6libs HttpServer

%package examples
Summary: Examples for the Qt %{major} Network Authentication module
Group: Development/KDE and Qt

%description examples
Examples for the Qt %{major} Network Authentication module

%files examples
%{_qt6_examplesdir}/httpserver

%prep
%autosetup -p1 -n qthttpserver-everywhere-src-%{version}
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16863 |21mr|qt6-qtimageformats-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global qtmajor 6

%define qtimageformats %mklibname qt%{qtmajor}imageformats-plugins
%define qtimageformatsd %mklibname qt%{qtmajor}imageformats -d

Summary:	Qt %{qtmajor} Image Formats
Name:		qt6-qtimageformats
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtimageformats-everywhere-src-%{version}.tar.xz

BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	libtiff-devel
BuildRequires:	jasper-devel
BuildRequires:	pkgconfig(libmng)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(Qt6)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	qt6-cmake

%description
The core Qt Gui library by default supports reading and writing image
files of the most common file formats: PNG, JPEG, BMP, GIF and a few more,
ref. Reading and Writing Image Files. The Qt Image Formats add-on module
provides optional support for other image file formats, including:
MNG, TGA, TIFF, WBMP.

#-----------------------------------------------------------------------------

%package -n %{qtimageformats}
Summary:	Qt Image Formats plugins
Group:		System/Libraries
Provides:	qt6-imageformats-plugins = %{EVRD}
Provides:	qt6-imageformats-plugins%{_isa} = %{EVRD}
Provides:	qt6-qtimageformats = %{EVRD}
Provides:	qt6-qtimageformats%{_isa} = %{EVRD}

%description -n %{qtimageformats}
Qt Image Formats plugins.

%files -n %{qtimageformats}
%{_qt6_plugindir}/imageformats/*.so

#------------------------------------------------------------------------------

%package -n %{qtimageformatsd}
Summary:        Devel files needed to build apps based on QtImageFormats
Group:          Development/KDE and Qt
Requires:       %{qtimageformats} = %{EVRD}
Provides:       %{name}-devel = %{EVRD}

%description -n %{qtimageformatsd}
Devel files needed to build apps based on QtImageFormats.

%files -n %{qtimageformatsd}
%{_qt6_libdir}/cmake/Qt%{qtmajor}/*.cmake
%{_qt6_libdir}/cmake/Qt%{qtmajor}Gui/*.cmake

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n qtimageformats-everywhere-src-%{version}

rm -rv src/3rdparty

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_FEATURE_mng=ON \
	-DQT_BUILD_EXAMPLES:BOOL=OFF

%ninja_build

%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16864 |21mr|qt6-qtlanguageserver-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define _qtdir %{_libdir}/qt%{major}

Summary:	Qt %{major} Network Authentication module
Name:		qt6-qtlanguageserver
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	LGPLv3/GPLv3/GPLv2
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtlanguageserver-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtlanguageserver.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt%{major}Core)
BuildRequires:	cmake(Qt%{major}Network)
BuildRequires:	cmake(Qt%{major}Widgets)
BuildRequires:	qt%{major}-cmake

%description
Qt %{major} network authentication module

%qt6libs LanguageServer JsonRpc

%define extra_devel_reqprov_LanguageServer \
Requires:	cmake(Qt%{major}JsonRpcPrivate)

%prep
%autosetup -p1 -n qtlanguageserver-everywhere-src-%{version}

%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16865 |21mr|qt6-qtlocation-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 6
%define major 6
%define oname qt6

%define module qtlocation

%define qtlocation %mklibname qt%{api}location %{major}
%define qtlocationd %mklibname qt%{api}location -d

Summary:	Version 5 of the Qt toolkit (%{module} packages)
Name:		qt6-%{module}
Version:	6.6.2
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-src-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake
BuildRequires:	qt6-cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gypsy)
BuildRequires:	cmake(Qt6Concurrent) >= %{version}
BuildRequires:	cmake(Qt6Core) >= %{version}
BuildRequires:	cmake(Qt6DBus) >= %{version}
BuildRequires:	cmake(Qt6Gui) >= %{version}
BuildRequires:	cmake(Qt6Network) >= %{version}
BuildRequires:	cmake(Qt6OpenGL) >= %{version}
BuildRequires:	cmake(Qt6Qml) >= %{version}
BuildRequires:	cmake(Qt6Quick) >= %{version}
BuildRequires:	cmake(Qt6QuickTest) >= %{version}
BuildRequires:	cmake(Qt6QuickShapesPrivate) >= %{version}
BuildRequires:	cmake(Qt6Positioning) >= %{version}
BuildRequires:	cmake(Qt6PositioningQuick) >= %{version}
BuildRequires:	cmake(Qt6Sql) >= %{version}
BuildRequires:	cmake(Qt6Test) >= %{version}
BuildRequires:	cmake(Qt6Widgets) >= %{version}
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(gl)
BuildRequires:	icu-devel
BuildRequires:	openssl-devel
BuildRequires:	boost-devel

%description
Version 5 of the Qt toolkit (%{module} packages).

#----------------------------------------------------------------------------

%package -n %{qtlocation}
Summary:	Qt Location library
Group:		System/Libraries

%description -n %{qtlocation}
Qt Location library.

%files -n %{qtlocation}
%{_qt6_libdir}/libQt%{api}Location.so.%{major}*
%if "%{_qt6_libdir}" != "%{_libdir}"
%{_libdir}/libQt%{api}Location.so.%{major}*
%endif
%dir %{_qt6_plugindir}/geoservices
%{_qt6_plugindir}/geoservices/libqtgeoservices_esri.so
%{_qt6_plugindir}/geoservices/libqtgeoservices_itemsoverlay.so
%{_qt6_plugindir}/geoservices/libqtgeoservices_mapbox.so
#{_qt6_plugindir}/geoservices/libqtgeoservices_mapboxgl.so
%{_qt6_plugindir}/geoservices/libqtgeoservices_nokia.so
%{_qt6_plugindir}/geoservices/libqtgeoservices_osm.so
%{_qt6_archdatadir}/qml/QtLocation
%{_qt6_archdatadir}/modules/Location.json

#----------------------------------------------------------------------------

%package -n %{qtlocationd}
Summary:	Development files for version %{api} of the QtLocation library
Group:		Development/KDE and Qt
Requires:	%{qtlocation} = %{EVRD}
Requires:	qt6-cmake

%description -n %{qtlocationd}
Development files for version 5 of the QtLocation library.

%files -n %{qtlocationd}
%{_qt6_includedir}/QtLocation
%{_qt6_libdir}/libQt%{api}Location.so
%{_qt6_libdir}/libQt%{api}Location.prl
%{_qt6_libdir}/cmake/Qt%{api}Location
%{_qt6_libdir}/cmake/Qt%{api}BuildInternals
%{_qt6_libdir}/cmake/Qt%{api}Qml/QmlPlugins/*.cmake
%{_libdir}/pkgconfig/Qt6Location.pc
%{_qt6_archdatadir}/metatypes/qt6location_release_metatypes.json
%{_qt6_archdatadir}/mkspecs/modules/qt_lib_location.pri
%{_qt6_archdatadir}/mkspecs/modules/qt_lib_location_private.pri

#----------------------------------------------------------------------------
%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
%{_qt6_examplesdir}/location/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%cmake -G Ninja \
    -DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
    -DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
    -DQT_FEATURE_geoservices_osm=true \
    -DQT_FEATURE_geoservices_esri=true \
    -DQT_FEATURE_geoservices_mapbox=true \
    -DQT_FEATURE_geoservices_mapboxgl=true \
    -DQT_FEATURE_geoservices_nokia=true

%ninja_build

%install
%ninja_install -C build

# MAY BE NEEDED?

# QMAKE_PRL_BUILD_DIR = /builddir/build/BUILD/qt-everywhere-opensource-src-5.4.0-beta/qtwayland/src/client
## .prl/.la file love
# nuke .prl reference(s) to %%buildroot, excessive (.la-like) libs
#pushd %{buildroot}%{_qt6_libdir}
#for prl_file in libqt6*.prl ; do
#  sed -i -e "/^QMAKE_PRL_BUILD_DIR/d" ${prl_file}
#  if [ -f "$(basename ${prl_file} .prl).so" ]; then
#    rm -fv "$(basename ${prl_file} .prl).la"
#    sed -i -e "/^QMAKE_PRL_LIBS/d" ${prl_file}
#  fi
#done
#popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16866 |21mr|qt6-qtlottie-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

Summary:	Qt6 Quick 3D
Name:		qt6-qtlottie
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtlottie-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtlottie.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6ShaderTools)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt6 support for Lottie animations


%qt6libs Bodymovin

%prep
%autosetup -p1 -n qtlottie-everywhere-src-%{version}
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

%files
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtLottieTestsConfig.cmake
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*.cmake
%{_qt6_qmldir}/Qt/labs/lottieqt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16867 |21mr|qt6-qtmultimedia-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%bcond_with examples

Summary:	Qt6 multimedia module
Name:		qt6-qtmultimedia
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtmultimedia-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtmultimedia.rpmlintrc
Patch100:	e2k.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6AssimpImporterPlugin)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6ShaderTools)
BuildRequires:	cmake(Qt6Quick3D)
BuildRequires:	cmake(Qt6Quick3DHelpers)
BuildRequires:	cmake(Qt6Quick3DTools)
BuildRequires:	cmake(Qt6Quick3DUtils)
BuildRequires:	cmake(Qt6AssimpImporterPlugin)
BuildRequires:	cmake(Qt6Quick3DAssetImport)
BuildRequires:	cmake(Qt6Quick3DAssetUtils)
BuildRequires:	cmake(Qt6Quick3DEffects)
BuildRequires:	cmake(Qt6Quick3DGlslParserPrivate)
BuildRequires:	cmake(Qt6Quick3DIblBaker)
BuildRequires:	cmake(Qt6Quick3DParticleEffects)
BuildRequires:	cmake(Qt6Quick3DParticles)
BuildRequires:	cmake(Qt6Quick3DRuntimeRender)
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	qt6-qtquick3d
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-audio-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(gstreamer-photography-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)

BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt6 multimedia module

%define extra_devel_files_Multimedia \
%optional %{_qt6_libdir}/cmake/Qt6/FindAVFoundation.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindGObject.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindGStreamer.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindMMRenderer.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindWMF.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindWrapPulseAudio.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindFFmpeg.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindMMRendererCore.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindVAAPI.cmake \
%optional %{_qt6_libdir}/cmake/Qt6/FindWrapBundledResonanceAudioConfigExtra.cmake \
%optional %{_qt6_libdir}/cmake/Qt6BundledResonanceAudio \
%optional %{_qt6_libdir}/libQt6BundledResonanceAudio.a

%define extra_files_Multimedia \
%optional %{_qt6_plugindir}/multimedia/libffmpegmediaplugin.so \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*quickmultimedia*.cmake \
%{_qt6_qmldir}/QtMultimedia

%global extra_devel_reqprov_Multimedia \
Requires:	%{name}-gstreamer = %{EVRD}

#----------------------------------------------------------
%global extra_files_Quick3DSpatialAudio \
%{_qt6_qmldir}/QtQuick3D/SpatialAudio

%global extra_devel_files_Quick3DSpatialAudio \
%optional %{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*3dspatialaudio*

#----------------------------------------------------------

%qt6libs Multimedia MultimediaWidgets SpatialAudio MultimediaQuick Quick3DSpatialAudio

#----------------------------------------------------------

%if %{with examples}
%package examples
Summary:	Example code demonstrating the use of %{name}
Group:		Development/KDE and Qt

%description examples
Example code demonstrating the use of %{name}

%files examples
%{_libdir}/qt6/examples/multimedia
%optional %{_libdir}/qt6/examples/multimediawidgets
%endif

#----------------------------------------------------------

# No need to pull in dependency bloat, the ffmpeg plugin
# should be better anyway...
%package gstreamer
Summary:	Gstreamer based plugin for Qt multimedia playback
Group:		System/Libraries

%description gstreamer
Gstreamer based plugin for Qt multimedia playback

%files gstreamer
%optional %{_qt6_plugindir}/multimedia/libgstreamermediaplugin.so

#----------------------------------------------------------

%prep
%autosetup -p1 -n qtmultimedia-everywhere-src-%{version}
%if !%{with examples}
rm -rf examples
%endif

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_WILL_INSTALL:BOOL=ON \
	-DFEATURE_spatialaudio_quick3d:BOOL=ON \
	--log-level=STATUS

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16868 |21mr|qt6-qtnetworkauth-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module qtnetworkauth

%define major 6
%define qtnetworkauth %mklibname qt6networkauth %{major}
%define qtnetworkauthd %mklibname qt6networkauth -d

Summary:	Version 6 of the Qt toolkit (%{module} packages)
Name:		qt6-%{module}
Version:	6.6.2
Release:	1
License:	LGPLv3+
Group:		Development/KDE and Qt
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-src-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	cmake(Qt6Core) >= %{version}
BuildRequires:	cmake(Qt6Gui) >= %{version}
BuildRequires:	cmake(Qt6Network) >= %{version}
BuildRequires:	cmake(Qt6Widgets) >= %{version}
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(gl)
BuildRequires: pkgconfig(xkbcommon)

%description
Version 6 of the Qt toolkit (%{module} packages).

#--------------------------------------------------------------------

%package -n %{qtnetworkauth}
Summary:	Qt 6 Network Authorization library
Group:		System/Libraries

%description -n %{qtnetworkauth}
Qt 6 Network Authorization library.

%files -n %{qtnetworkauth}
%{_qt6_libdir}/libQt6NetworkAuth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{qtnetworkauthd}
Summary:	Development files for Qt 6 Network Authorization library
Group:		Development/KDE and Qt
Requires:	%{qtnetworkauth} = %{EVRD}
Provides:	qt6-qtnetworkauth-devel = %{EVRD}
Provides:	qt6-networkauth-devel = %{EVRD}

%description -n %{qtnetworkauthd}
Development files for Qt 6 Network Authorization library.

%files -n %{qtnetworkauthd}
%{_qt6_includedir}/QtNetworkAuth/
%{_qt6_libdir}/pkgconfig/Qt6NetworkAuth.pc
%{_qt6_libdir}/libQt6NetworkAuth.so
%{_qt6_libdir}/libQt6NetworkAuth.prl
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtNetworkAuthTestsConfig.cmake
%dir %{_qt6_libdir}/cmake/Qt6NetworkAuth/
%{_qt6_libdir}/cmake/Qt6NetworkAuth/*.cmake
%{_qt6_mkspecsdir}/modules/qt_lib_networkauth*.pri
%{_qt6_archdatadir}/modules/NetworkAuth.json
%{_qt6_archdatadir}/metatypes/qt6*_metatypes.json

#----------------------------------------------------------------------------

%package examples
Summary:	Example applications for %{name}
Group:		Development/KDE and Qt

%description examples
Example applications for %{name}.

%files examples
# if qt6-qtbase built without examples this file is optional
%optional %{_qt6_examplesdir}/oauth/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n qtnetworkauth-everywhere-src-%{version}

%build
# FIXME why are OpenGL lib paths autodetected incorrectly, preferring
# /usr/lib over /usr/lib64 even on 64-bit boxes?
%cmake \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \

%make_build

%install
%make_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16869 |21mr|qt6-qtpositioning-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt %{qtmajor} Web Channel module
Name:		qt6-qtpositioning
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtpositioning-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtpositioning.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(gypsy)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt %{qtmajor} Web Channel module

%define extra_files_Positioning \
%{_qt6_plugindir}/position/*.so \
%{_qt6_qmldir}/QtPositioning/libpositioningquickplugin.so \
%{_qt6_qmldir}/QtPositioning/plugins.qmltypes \
%{_qt6_qmldir}/QtPositioning/qmldir

%define extra_devel_files_Positioning \
%{_qt6_libdir}/cmake/Qt6/FindGconf.cmake \
%{_qt6_libdir}/cmake/Qt6/FindGypsy.cmake \
%{_qt6_libdir}/cmake/Qt6Bundled_Clip2Tri/Qt6Bundled_Clip2TriDependencies.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6posit*.cmake

%qt6libs Positioning PositioningQuick


%package examples
Summary:	Example code demonstrating the use of %{name}
Group:		Development/KDE and Qt

%description examples
Example code demonstrating the use of %{name}

%files examples
%{_qt6_examplesdir}/positioning

%prep
%autosetup -p1 -n qtpositioning-everywhere-src-%{version}

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16870 |21mr|qt6-qtquick3d-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt6 Quick 3D
Name:		qt6-qtquick3d
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtquick3d-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtquick3d.rpmlintrc
#Patch0:		qtquick3d-c++20.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6ShaderTools)
BuildRequires:	cmake(Qt6QuickTimeline)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt6 Quick 3D

%files
%{_qt6_bindir}/balsam
%{_qt6_bindir}/balsamui
%optional %{_qt6_bindir}/materialeditor
%{_qt6_bindir}/meshdebug
%{_qt6_bindir}/shadergen
%{_qt6_bindir}/shapegen
%{_qt6_bindir}/instancer
%optional %{_qt6_examplesdir}/quick3d
%{_qt6_libdir}/cmake/Qt6/FindWrapQuick3DAssimp.cmake
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtQuick3DTestsConfig.cmake
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*.cmake
%{_qt6_libdir}/cmake/Qt6Quick3DTools
%{_qt6_archdatadir}/metatypes/*.json
%{_qt6_plugindir}/assetimporters
%{_qt6_qmldir}/QtQuick3D

#---------------------------------------------------------------------------------------

%define extra_devel_files_Quick3D \
%optional %{_qt6_libdir}/cmake/Qt6/FindWrapBundledEmbreeConfigExtra.cmake \
%optional %{_qt6_libdir}/cmake/Qt6BundledEmbree \
%optional %{_qt6_libdir}/libQt6BundledEmbree.a

#---------------------------------------------------------------------------------------

%global extra_devel_reqprov_Quick3D \
Requires:	%{name} = %{EVRD}

#---------------------------------------------------------------------------------------

%qt6libs Quick3D Quick3DAssetImport Quick3DAssetUtils Quick3DEffects Quick3DGlslParser Quick3DHelpers Quick3DIblBaker Quick3DParticleEffects Quick3DParticles Quick3DRuntimeRender Quick3DUtils Quick3DHelpersImpl

#---------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n qtquick3d-everywhere-src-%{version}
%ifarch %{e2k}
sed -i 's!add_subdirectory(materialeditor)!!g' tools/CMakeLists.txt
%endif

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=OFF \
	-DQT_WILL_INSTALL:BOOL=ON

%ninja_build

%install
#export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16871 |21mr|qt6-qtquick3dphysics-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_lto 1
%bcond_with examples

Summary:	Qt %{qtmajor} 3D Library
Name:		qt6-qtquick3dphysics
Version:	6.6.2
Release:	1
Group:		Development/KDE and Qt
License:	LGPLv3/GPLv3/GPLv2
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtquick3dphysics-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtquick3dphysics.rpmlintrc
# i686 support dropped
ExcludeArch:	%{ix86}
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6QmlCore)
BuildRequires:	cmake(Qt6QmlModels)
BuildRequires:	cmake(Qt6QmlLocalStorage)
BuildRequires:	cmake(Qt6QmlWorkerScript)
BuildRequires:	cmake(Qt6QmlXmlListModel)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6ShaderTools)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6QuickControls2)
BuildRequires:	cmake(Qt6QuickControls2Impl)
BuildRequires:	cmake(Qt6QuickDialogs2)
BuildRequires:	cmake(Qt6QuickDialogs2QuickImpl)
BuildRequires:	cmake(Qt6QuickDialogs2Utils)
BuildRequires:	cmake(Qt6QuickLayouts)
BuildRequires:	cmake(Qt6QuickTemplates2)
BuildRequires:	cmake(Qt6QuickTest)
BuildRequires:	cmake(Qt6QuickWidgets)
BuildRequires:	cmake(Qt6QuickTimeline)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6Quick3D)
BuildRequires:	cmake(Qt6Quick3DRuntimeRender)
BuildRequires:	cmake(Qt6Quick3DUtils)
BuildRequires:	qt6-qtdeclarative
BuildRequires:	qt6-qtquick3d
BuildRequires:	cmake(Qt6ShaderTools) >= %{version}-0
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(zlib)
BuildRequires:	cmake(OpenGL)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)

%description
Qt %{qtmajor} 3D library

%global extra_files_Quick3DPhysics \
%dir %{_qt6_qmldir}/QtQuick3D/Physics \
%{_qt6_qmldir}/QtQuick3D/Physics/libqquick3dphysicsplugin.so \
%{_qt6_qmldir}/QtQuick3D/Physics/plugins.qmltypes \
%{_qt6_qmldir}/QtQuick3D/Physics/qmldir \
%{_qt6_bindir}/cooker

%global extra_devel_files_Quick3DPhysics \
%{_qt6_qmldir}/QtQuick3D/Physics/designer \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qquick3dphysicsplugin*.cmake

%global extra_files_Quick3DPhysicsHelpers \
%dir %{_qt6_qmldir}/QtQuick3D/Physics/Helpers \
%{_qt6_qmldir}/QtQuick3D/Physics/Helpers/libqtquick3dphysicshelpersplugin.so \
%{_qt6_qmldir}/QtQuick3D/Physics/Helpers/plugins.qmltypes \
%{_qt6_qmldir}/QtQuick3D/Physics/Helpers/qmldir

%global extra_devel_files_Quick3DPhysicsHelpers \
%{_qt6_libdir}/cmake/Qt6/FindWrapBundledPhysXConfigExtra.cmake \
%{_qt6_libdir}/cmake/Qt6BundledPhysX \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtquick3dphysicshelpersplugin*.cmake \
%{_qt6_libdir}/libQt6BundledPhysX.a

%qt6libs Quick3DPhysics Quick3DPhysicsHelpers

%if %{with examples}
%package examples
Summary:	Example code for the Qt 6 3D module
Group:		Documentation

%description examples
Example code for the Qt 6 3D module
%endif

%prep
%autosetup -p1 -n qtquick3dphysics-everywhere-src-%{version}

%if !%{with examples}
rm -rf examples
%endif

%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_WILL_INSTALL:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

%if %{with examples}
%files examples
%{_qt6_examplesdir}/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16872 |21mr|qt6-qtquicktimeline-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Qt6 Quick Timeline plugin
Name:		qt6-qtquicktimeline
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtquicktimeline-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtquicktimeline.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt6 Quick timeline plugin

%qt6libs QuickTimeline

%prep
%autosetup -p1 -n qtquicktimeline-everywhere-src-%{version}

%build
%cmake -G Ninja \
        -DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
        -DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%ninja_build

%install
%ninja_install -C build

%files
%{_qt6_qmldir}/QtQuick/Timeline
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtQuickTimelineTestsConfig.cmake
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/*.cmake

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16873 |21mr|qt6-qtscxml-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname qt6scxml %{major}
%define devname %mklibname qt6scxml -d
%define module	qtscxml
# Requires qdoc6 and qt6-tools to build
%bcond_without docs

Name:		qt6-qtscxml
Version:	6.6.2
Release:	1
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-src-%{version}.tar.xz
Summary:	Qt scxml library
URL:		https://github.com/qtproject/qtscxml
License:	LGPL-2.1-with-Qt-Company-Qt-exception-1.1 or LGPL-3.0-with-Qt-Company-Qt-exception-1.1
Group:		System/Libraries
BuildRequires:	ninja
BuildRequires:	qt6-cmake
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6QuickTest)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(xkbcommon)
%if %{with docs}
BuildRequires:	qt6-qttools
%endif
# For the Provides: generator
BuildRequires: cmake >= 3.11.0-1

%description
The Qt SCXML module provides functionality to create state machines from
SCXML files.

This includes both dynamically creating state machines (loading the SCXML
file and instantiating states and transitions) and generating a C++ file
that has a class implementing the state machine. It also contains
functionality to support data models and executable content.

#----------------------------------------------------------
%package -n %{libname}
Summary:	Qt scxml library
Group:		System/Libraries

%description -n %{libname}
Qt scxml library.

%files -n %{libname}
%{_qt6_libdir}/*.so.%{major}*
%{_qt6_qmldir}/QtScxml
%{_qt6_plugindir}/scxmldatamodel/libqscxmlecmascriptdatamodel.so
%{_qt6_qmldir}/QtQml/StateMachine/libqtqmlstatemachineplugin.so
%{_qt6_qmldir}/QtQml/StateMachine/plugins.qmltypes
%{_qt6_qmldir}/QtQml/StateMachine/qmldir

#----------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_qt6_includedir}/*
%{_qt6_libexecdir}/qscxmlc
%{_qt6_libdir}/*.so
%{_qt6_libdir}/pkgconfig/*.pc
%{_qt6_libdir}/cmake/*
%{_qt6_archdatadir}/modules/*.json
%{_qt6_mkspecsdir}/modules/*.pri
%{_qt6_archdatadir}/metatypes/*.json
%{_qt6_mkspecsdir}/features/*.prf
%{_qt6_libdir}/*.prl

#----------------------------------------------------------
%prep
%autosetup -n %{module}-everywhere-src-%{version} -p1

# https://bugreports.qt.io/browse/QTBUG-76443
rm examples/*.pro

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=%{?examples:ON}%{!?examples:OFF} \
	-DBUILD_SHARED_LIBS:BOOL=ON \
	-DQT_FEATURE_dynamicgl:BOOL=ON \
	-DQT_FEATURE_use_bfd_linker:BOOL=ON \
	-DQT_FEATURE_xcb_native_painting:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON \
	-DBUILD_WITH_PCH:BOOL=OFF

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16874 |21mr|qt6-qtserialbus-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt6 SerialBus component
Name:	    qt6-qtserialbus
Version:	6.6.2
Release:	1
# See LGPL_EXCEPTIONS.txt, LICENSE.GPL3, respectively, for exception details
License:	LGPLv2 with exceptions or GPLv3 with exceptions
Group:	    Development/KDE and Qt
Url:	    https://www.qt.io/
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtserialbus-everywhere-src-%{version}.tar.xz 

BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6SerialPort)
BuildRequires:	qt6-cmake

%description
Qt6 Serial Bus API provides classes and functions to access the
various industrial serial buses and protocols, such as CAN, ModBus,
and others.

This package contains base tools, like string, xml, and network
handling.

%files
%{_qt6_bindir}/canbusutil
%{_qt6_plugindir}/canbus/

#------------------------------------------------------------------------------

%qt6libs SerialBus

%prep
%autosetup -p1 -n qtserialbus-everywhere-src-%{version}

%build
%cmake -G Ninja \
        -DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
        -DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=OFF

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16875 |21mr|qt6-qtserialport-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

Summary:	Qt6 Web Sockets module
Name:		qt6-qtserialport
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtserialport-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtserialport.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(libudev)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt6 serial port module

%qt6libs SerialPort

%package examples
Summary: Examples for the Qt6 Web Sockets module
Group: Development/KDE and Qt

%description examples
Examples for the Qt6 Web Sockets module

%files examples
%{_qt6_examplesdir}/serialport

%prep
%autosetup -p1 -n qtserialport-everywhere-src-%{version}
# FIXME why are OpenGL lib paths autodetected incorrectly, preferring
# /usr/lib over /usr/lib64 even on 64-bit boxes?
%cmake -G Ninja \
        -DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
        -DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_WILL_INSTALL:BOOL=ON

%build
export LD_LIBRARY_PATH="$(pwd)/build/%{_lib}:${LD_LIBRARY_PATH}"
%ninja_build -C build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16876 |21mr|qt6-qtshadertools-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define libname %mklibname Qt6ShaderTools %{major}
%define devname %mklibname Qt6ShaderTools -d

Summary:	Qt6 Shader Tools
Name:		qt6-qtshadertools
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtshadertools-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtshadertools.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtbase-theme-gtk3
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt %{qtmajor} shader tools


%files
%{_qt6_bindir}/qsb
%{_bindir}/qsb-qt6

#----------------------------------------------------------

%package -n %{libname}
Summary:	Qt Graphs library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Qt scxml library.

%files -n %{libname}
%{_qt6_libdir}/libQt6ShaderTools.so.%{major}*

#---------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_qt6_includedir}/QtShaderTools
%{_qt6_libdir}/cmake/Qt6BuildInternals
%{_qt6_libdir}/cmake/Qt6ShaderTools
%{_qt6_libdir}/cmake/Qt6ShaderToolsTools
%{_qt6_libdir}/pkgconfig/Qt6ShaderTools.pc
%{_qt6_archdatadir}/modules/ShaderTools.json
%{_qt6_mkspecsdir}/modules/qt_lib_shadertools_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_shadertools.pri
%{_qt6_archdatadir}/metatypes/qt6shadertools_release_metatypes.json
%{_qt6_libdir}/libQt6ShaderTools.prl
%{_qt6_libdir}/libQt6ShaderTools.so

#---------------------------------------------

%prep
%autosetup -p1 -n qtshadertools-everywhere-src-%{version}

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON
%ninja_build

%install
%ninja_install -C build

# hardlink files to %{_bindir}, add -qt6 postfix to not conflict
mkdir %{buildroot}%{_bindir}
pushd %{buildroot}%{_qt6_bindir}
for i in * ; do
  case "${i}" in
    qsb)
      ln -v  ${i} %{buildroot}%{_bindir}/${i}-qt6
      ;;
    *)
      ln -v  ${i} %{buildroot}%{_bindir}/${i}
      ;;
  esac
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16877 |21mr|qt6-qtspeech-6.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt %{qtmajor} Text-to-Speech Library
Name:		qt6-qtspeech
Version:	6.6.2
Release:	2
Group:		System/Libraries
License:	LGPLv3/GPLv3/GPLv2
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtspeech-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtspeech.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6ShaderTools)
BuildRequires:	cmake(Qt6QmlModels)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6Multimedia)
# Just for the ****ing integrity check
BuildRequires:	qt6-qtmultimedia-gstreamer
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(zlib)
BuildRequires:	cmake(OpenGL)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(speech-dispatcher)
BuildRequires:	flite-devel

%description
Qt %{qtmajor} Text-to-Speech library

%global extra_files_TextToSpeech \
%dir %{_qt6_plugindir}/texttospeech \
%{_qt6_qmldir}/QtTextToSpeech

#----------------------------------------------------------------------------

%define qttexttospeechflite %mklibname qt6texttospeechflite

%package -n %{qttexttospeechflite}
Summary:	Qt Text to Speech library
Group:		System/Libraries

%description -n %{qttexttospeechflite}
Qt Text to Speech library.

%files -n %{qttexttospeechflite}
%{_qt6_plugindir}/texttospeech/libqtexttospeech_flite.so

#----------------------------------------------------------------------------

%define qttexttospeechmock %mklibname qt6texttospeechmock

%package -n %{qttexttospeechmock}
Summary:	Qt Text to Speech library
Group:		System/Libraries

%description -n %{qttexttospeechmock}
Qt Text to Speech library.

%files -n %{qttexttospeechmock}
%{_qt6_plugindir}/texttospeech/libqtexttospeech_mock.so

#----------------------------------------------------------------------------

%define qttexttospeechspeechd %mklibname qt6texttospeechspeechd

%package -n %{qttexttospeechspeechd}
Summary:	Qt Text to Speech library
Group:		System/Libraries

%description -n %{qttexttospeechspeechd}
Qt Text to Speech library.

%files -n %{qttexttospeechspeechd}
%{_qt6_plugindir}/texttospeech/libqtexttospeech_speechd.so

#----------------------------------------------------------------------------

%global extra_devel_files_TextToSpeech \
%{_qt6_libdir}/cmake/Qt6/FindFlite.cmake \
%{_qt6_libdir}/cmake/Qt6/FindSpeechDispatcher.cmake \
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtSpeechTestsConfig.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6TextToSpeechQml*.cmake

%qt6libs TextToSpeech

%package examples
Summary:	Example code for the Qt 6 Text-to-Speech module
Group:		Documentation

%description examples
Example code for the Qt 6 Text-to-Speech module

%prep
%autosetup -p1 -n qtspeech-everywhere-src-%{version}
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

%files examples
%{_qt6_examplesdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16878 |21mr|qt6-qtsvg-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define libcore %mklibname Qt%{major}Svg %{major}
%define devcore %mklibname -d Qt%{major}Svg
%define libwidgets %mklibname Qt%{major}SvgWidgets %{major}
%define devwidgets %mklibname -d Qt%{major}SvgWidgets

Summary:	Qt6 SVG library
Name:		qt6-qtsvg
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtsvg-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtsvg.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core) >= %{version}
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	cmake(OpenGL)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)

%description
Qt6 SVG library

#---------------------------------------------------------------

%define extra_files_Svg \
%{_qt6_plugindir}/iconengines/libqsvgicon.so \
%{_qt6_plugindir}/imageformats/libqsvg.so

%define extra_reqprov_Svg \
Provides:	%{name} = %{EVRD}

#---------------------------------------------------------------

%define extra_devel_files_Svg \
%{_qt6_libdir}/cmake/Qt6Gui/Qt6QSvg*.cmake

%qt6libs Svg SvgWidgets

#---------------------------------------------------------------

%package examples
Summary:	Example code for the Qt 6 SVG module
Group:		Documentation

%description examples
Example code for the Qt 6 SVG module

#files examples
#{_qt6_examplesdir}/

#---------------------------------------------------------------

%prep
%autosetup -p1 -n qtsvg-everywhere-src-%{version}
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON \
	-DBUILD_WITH_PCH:BOOL=OFF

%build
export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%ninja_build -C build

%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16879 |21mr|qt6-qttools-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with docs

Summary:	Qt %{qtmajor} Tools
Name:		qt6-qttools
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qttools-everywhere-src-%{version}.tar.xz
Source1:	rosa-assistant-qt6.desktop
Source2:	rosa-designer-qt6.desktop
Source3:	rosa-linguist-qt6.desktop
Source100:	qt6-qttools.rpmlintrc
Patch0:		qttools-6.0.0-clang-linkage.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	zstd-devel
BuildRequires:	%{_lib}zstd-static-devel
%if %{with docs}
%ifnarch %{e2k}
BuildRequires:	spirv-llvm-translator-tools
BuildRequires:	cmake(LLVM)
BuildRequires:	llvm-devel
BuildRequires:	cmake(Polly)
BuildRequires:	cmake(Clang)
%endif
%endif

%description
Qt %{qtmajor} tools

%files
%{_qt6_bindir}/pixeltool
%{_qt6_bindir}/qtdiag
%{_qt6_bindir}/qtdiag6
%{_qt6_bindir}/qtplugininfo

#----------------------------------------------------------------------------

%package -n qt6-assistant
Summary:	Qt Assistant - a help file viewer
Group:		Development/Tools

%description -n qt6-assistant
Qt Assistant - a help file viewer

%files -n qt6-assistant
%{_qt6_bindir}/assistant
%{_datadir}/applications/rosa-assistant-qt6.desktop

#----------------------------------------------------------------------------

%package -n qt6-qtdbus
Summary:	Command line tool for talking to DBus
Group:		Development/Tools

%description -n qt6-qtdbus
Command line tool for talking to DBus

%files -n qt6-qtdbus
%{_qt6_bindir}/qdbus

#----------------------------------------------------------------------------

%package -n qt6-dbusviewer
Summary:	Graphical tool for talking to DBus
Group:		Development/Tools

%description -n qt6-dbusviewer
Graphical tool for talking to DBus

%files -n qt6-dbusviewer
%{_qt6_bindir}/qdbusviewer

#----------------------------------------------------------------------------

%package -n qt6-designer
Summary:	Qt Designer - a graphical UI builder
Group:		Development/Tools

%description -n qt6-designer
Qt Designer - a graphical UI builder

%files -n qt6-designer
%{_qt6_bindir}/designer
%{_qt6_plugindir}/designer
%{_datadir}/applications/rosa-designer-qt6.desktop

#----------------------------------------------------------------------------

%package -n qt6-distancefieldgenerator
Summary:	Qt Distance Field Generator - font cache builder
Group:		Development/Tools
Url:		https://doc.qt.io/qt-6/qtdistancefieldgenerator-index.html

%description -n qt6-distancefieldgenerator
If the user interface of an application has a lot of text, it may cause a
small, but noticeable, performance impact the first time it is displayed to
the user. This is especially true if the text is rendered in multiple
different fonts or use a large amount of distinct characters (common for
instance in writing systems such as Hanzi, written Chinese).

The reason is that in order to render the text efficiently later, Qt will
spend some time creating graphical assets for each of the glyphs that will
later be reused. This happens the first time a glyph is displayed in the
scene.

For advanced users who want to optimize startup performance, it is possible
to pregenerate this font cache, as long as Text.QtRendering is the rendering
type in use. The Qt Distance Field Generator tool can be used to pregenerate
the cache, either for all glyphs in the fonts, or just a selection that are
known to be displayed during a critical phase.

%files -n qt6-distancefieldgenerator
%{_qt6_bindir}/qdistancefieldgenerator

#----------------------------------------------------------------------------

%package -n qt6-linguist
Summary:	Qt Linguist - a frontend for translating software
Group:		Development/Tools
Requires:	qt6-linguist-tools = %{EVRD}

%description -n qt6-linguist
Qt Linguist - a frontend for translating software

%files -n qt6-linguist
%{_qt6_bindir}/linguist
%{_datadir}/applications/rosa-linguist-qt6.desktop

#----------------------------------------------------------------------------

%package -n qt6-linguist-tools
Summary:	Tools for working with translation files generated by Qt Linguist
Group:		Development/Tools

%description -n qt6-linguist-tools
Tools for working with translation files generated by Qt Linguist

%files -n qt6-linguist-tools
%{_qt6_bindir}/lconvert
%{_qt6_bindir}/lrelease
%{_qt6_bindir}/lupdate
%{_qt6_libexecdir}/lprodump
%{_qt6_libexecdir}/lrelease-pro
%{_qt6_libexecdir}/lupdate-pro
# This may be mixing -devel files and non-devel
# files in a single package, but given lconvert,
# lrelease and lupdate are virtually never used
# outside of a -devel context, it is the right
# thing to do
%{_qt6_archdatadir}/modules/Linguist.json
%{_qt6_libdir}/cmake/Qt6LinguistTools
%{_qt6_libdir}/pkgconfig/Qt6Linguist.pc
%{_qt6_mkspecsdir}/modules/qt_lib_linguist.pri
%{_qt6_mkspecsdir}/modules/qt_lib_linguist_private.pri
%{_qt6_libdir}/cmake/Qt6Linguist

#----------------------------------------------------------------------------

%package examples
Summary:	Examples demonstrating the use of Qt Tools
Group:		Development/Tools

%description examples
Examples demonstrating the use of Qt Tools

%files examples
%{_qt6_examplesdir}/assistant
%{_qt6_examplesdir}/designer
%{_qt6_examplesdir}/help
%{_qt6_examplesdir}/linguist
%{_qt6_examplesdir}/uitools

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for working with Qt Tools
Group:		Development/KDE and Qt
%if %{with docs}
Requires:	%{name}-doc = %{EVRD}
%endif
Requires:	qt6-linguist-tools = %{EVRD}
Requires:	qt6-designer = %{EVRD}

%description devel
Development files for working with Qt Tools

%files devel
%{_qt6_includedir}/QtTools
%{_qt6_includedir}/QtUiPlugin
%{_qt6_includedir}/QtQDocCatch
%{_qt6_includedir}/QtQDocCatchConversionsPrivate
%{_qt6_includedir}/QtQDocCatchGeneratorsPrivate
%{_qt6_libdir}/cmake/Qt6/FindWrapLibClang.cmake
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtToolsTestsConfig.cmake
%{_qt6_libdir}/cmake/Qt6Tools
%{_qt6_libdir}/cmake/Qt6ToolsTools
%{_qt6_libdir}/cmake/Qt6UiPlugin
%{_qt6_libdir}/cmake/Qt6QDocCatchConversionsPrivate
%{_qt6_libdir}/cmake/Qt6QDocCatchGeneratorsPrivate
%{_qt6_libdir}/cmake/Qt6QDocCatchPrivate
%{_qt6_mkspecsdir}/modules/qt_lib_tools_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_uiplugin.pri
%{_qt6_mkspecsdir}/modules/qt_lib_qdoccatch_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_qdoccatchconversionsprivate.pri
%{_qt6_mkspecsdir}/modules/qt_lib_qdoccatchconversionsprivate_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_qdoccatchgeneratorsprivate.pri
%{_qt6_mkspecsdir}/modules/qt_lib_qdoccatchgeneratorsprivate_private.pri
%{_qt6_libexecdir}/qhelpgenerator
%{_qt6_libexecdir}/qtattributionsscanner
%{_qt6_archdatadir}/modules/Tools.json
%{_qt6_archdatadir}/modules/UiPlugin.json
%{_qt6_archdatadir}/modules/QDocCatchConversionsPrivate.json
%{_qt6_archdatadir}/modules/QDocCatchGeneratorsPrivate.json
%{_qt6_archdatadir}/modules/QDocCatchPrivate.json
%{_qt6_libdir}/pkgconfig/Qt6UiPlugin.pc
%{_qt6_libdir}/pkgconfig/Qt6QDocCatchConversionsPrivate.pc
%{_qt6_libdir}/pkgconfig/Qt6QDocCatchGeneratorsPrivate.pc
%dir %{_qt6_datadir}/phrasebooks
%lang(da) %{_qt6_datadir}/phrasebooks/danish.qph
%lang(nl) %{_qt6_datadir}/phrasebooks/dutch.qph
%lang(fi) %{_qt6_datadir}/phrasebooks/finnish.qph
%lang(fr) %{_qt6_datadir}/phrasebooks/french.qph
%lang(de) %{_qt6_datadir}/phrasebooks/german.qph
%lang(hu) %{_qt6_datadir}/phrasebooks/hungarian.qph
%lang(it) %{_qt6_datadir}/phrasebooks/italian.qph
%lang(ja) %{_qt6_datadir}/phrasebooks/japanese.qph
%lang(no) %{_qt6_datadir}/phrasebooks/norwegian.qph
%lang(pl) %{_qt6_datadir}/phrasebooks/polish.qph
%lang(ru) %{_qt6_datadir}/phrasebooks/russian.qph
%lang(es) %{_qt6_datadir}/phrasebooks/spanish.qph
%lang(sv) %{_qt6_datadir}/phrasebooks/swedish.qph

#----------------------------------------------------------------------------
%if %{with docs}

%package doc
Summary:	Documentation generator for Qt
Group:		Development/Tools
Provides:	qdoc = %{EVRD}

%description doc
Documentation generator for Qt

%files doc
%{_qt6_bindir}/qdoc
%endif

#----------------------------------------------------------------------------

%qt6libs Designer DesignerComponents Help UiTools

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n qttools-everywhere-src-%{version}

%build
export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON \
	--log-level=STATUS
%ninja_build

%install
%ninja_install -C build

# Install .desktop files for assistant, designer and linguist
mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/applications

sed -i s,"/usr/lib/qt6/bin","%{_qt6_bindir}",g %{buildroot}%{_datadir}/applications/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16880 |21mr|qt6-qttranslations-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define module qttranslations
Summary:	Version 6 of the Qt toolkit qttranslations
Name:		qt6-%{module}
Version:	6.6.2
Release:	1
License:	LGPLv3+
Group:		System/Internationalization
Url:		http://qt-project.org/
Source0:	https://download.qt.io/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/%{module}-everywhere-src-%{version}.tar.xz
Patch0:		qttranslations.fix.build.licenses.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	qt6-cmake
BuildRequires:	qt6-linguist-tools
BuildRequires:	cmake(Qt6Core)
BuildArch:	noarch

%description
Version 6 of the Qt toolkit qttranslations.

%files
%license LICENSE.*
%{_qt6_datadir}/translations/catalogs.json
%lang(ar) %{_qt6_datadir}/translations/*_ar.qm
%lang(bg) %{_qt6_datadir}/translations/*_bg.qm
%lang(ca) %{_qt6_datadir}/translations/*_ca.qm
%lang(cs) %{_qt6_datadir}/translations/*_cs.qm
%lang(da) %{_qt6_datadir}/translations/*_da.qm
%lang(de) %{_qt6_datadir}/translations/*_de.qm
%lang(es) %{_qt6_datadir}/translations/*_es.qm
%lang(en) %{_qt6_datadir}/translations/*_en.qm
%lang(fa) %{_qt6_datadir}/translations/*_fa.qm
%lang(fi) %{_qt6_datadir}/translations/*_fi.qm
%lang(fr) %{_qt6_datadir}/translations/*_fr.qm
%lang(gl) %{_qt6_datadir}/translations/*_gd.qm
%lang(gl) %{_qt6_datadir}/translations/*_gl.qm
%lang(he) %{_qt6_datadir}/translations/*_he.qm
%lang(hu) %{_qt6_datadir}/translations/*_hu.qm
%lang(hu) %{_qt6_datadir}/translations/*_hr.qm
%lang(it) %{_qt6_datadir}/translations/*_it.qm
%lang(ja) %{_qt6_datadir}/translations/*_ja.qm
%lang(ko) %{_qt6_datadir}/translations/*_ko.qm
%lang(lt) %{_qt6_datadir}/translations/*_lt.qm
%lang(lv) %{_qt6_datadir}/translations/*_lv.qm
%lang(nl) %{_qt6_datadir}/translations/*_nl.qm
%lang(nn) %{_qt6_datadir}/translations/*_nn.qm
%lang(pl) %{_qt6_datadir}/translations/*_pl.qm
%lang(pt) %{_qt6_datadir}/translations/*_pt_PT.qm
%lang(pt_BR) %{_qt6_datadir}/translations/*_pt_BR.qm
%lang(ru) %{_qt6_datadir}/translations/*_ru.qm
%lang(sk) %{_qt6_datadir}/translations/*_sk.qm
%lang(sl) %{_qt6_datadir}/translations/*_sl.qm
%lang(sv) %{_qt6_datadir}/translations/*_sv.qm
%lang(sv) %{_qt6_datadir}/translations/*_tr.qm
%lang(uk) %{_qt6_datadir}/translations/*_uk.qm
%lang(zh_CN) %{_qt6_datadir}/translations/*_zh_CN.qm
%lang(zh_TW) %{_qt6_datadir}/translations/*_zh_TW.qm

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{module}-everywhere-src-%{version}

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir}

%ninja_build

%install
%ninja_install -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16881 |21mr|qt6-qtvirtualkeyboard-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with examples

Summary:	Qt 6 virtual keyboard Library
Name:		qt6-qtvirtualkeyboard
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtvirtualkeyboard-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtvirtualkeyboard.rpmlintrc
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6ShaderTools)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(OpenGL)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(hunspell)

%description
Qt 6 virtual keyboard library.

#---------------------------------------------------------

%global extra_files_VirtualKeyboard \
%{_qt6_plugindir}/platforminputcontexts/libqtvirtualkeyboardplugin.so \
%{_qt6_qmldir}/QtQuick/VirtualKeyboard

#---------------------------------------------------------

%global extra_devel_files_VirtualKeyboard \
%{_qt6_libdir}/cmake/Qt6/FindCerenceHwrAlphabetic.cmake \
%{_qt6_libdir}/cmake/Qt6/FindCerenceHwrCjk.cmake \
%{_qt6_libdir}/cmake/Qt6/FindCerenceXt9.cmake \
%{_qt6_libdir}/cmake/Qt6/FindHunspell.cmake \
%{_qt6_libdir}/cmake/Qt6/FindMyScript.cmake \
%{_qt6_libdir}/cmake/Qt6BundledOpenwnn \
%{_qt6_libdir}/cmake/Qt6BundledPinyin \
%{_qt6_libdir}/cmake/Qt6BundledTcime \
%{_qt6_libdir}/cmake/Qt6Gui/Qt6QVirtualKeyboardPlugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbbuiltinstylesplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbcomponentsplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbhangulplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkblayoutsplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbopenwnnplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbpinyinplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbplugin[A-Z]*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbpluginsplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbsettingsplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbstylesplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbtcimeplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbthaiplugin*.cmake

#---------------------------------------------------------

%global extra_devel_files_HunspellInputMethod \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtvkbhunspellplugin*.cmake

#---------------------------------------------------------

%qt6libs VirtualKeyboard HunspellInputMethod

#---------------------------------------------------------

%package examples
Summary: Examples for the Qt 6 Virtual Keyboard module
Group: Development/KDE and Qt

%description examples
Examples for the Qt 6 Virtual Keyboard module.

%files examples
%optional %{_qt6_examplesdir}/virtualkeyboard

#---------------------------------------------------------

%prep
%autosetup -p1 -n qtvirtualkeyboard-everywhere-src-%{version}
%if !%{with examples}
rm -rf examples
%endif

%build
%cmake \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_WILL_INSTALL:BOOL=ON
%make_build

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16882 |21mr|qt6-qtwayland-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define _qtdir %{_libdir}/qt%{major}
%bcond_with examples

Summary:	Qt6 Wayland support library
Name:		qt6-qtwayland
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtwayland-everywhere-src-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core) = %{version}
BuildRequires:	cmake(Qt6DBus) = %{version}
BuildRequires:	cmake(Qt6Gui) = %{version}
BuildRequires:	cmake(Qt6Network) = %{version}
BuildRequires:	cmake(Qt6Widgets) = %{version}
BuildRequires:	cmake(Qt6Xml) = %{version}
BuildRequires:	cmake(Qt6OpenGL) = %{version}
BuildRequires:	cmake(Qt6ShaderTools) = %{version}
BuildRequires:	cmake(OpenGL)
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-scanner)

%description
Qt6 Wayland library

%files
%{_qt6_libdir}/libQt6WaylandClient.so.*
%{_qt6_libdir}/libQt6WaylandCompositor.so.*
%dir %{_qt6_plugindir}/platforms
%{_qt6_plugindir}/platforms/libqwayland-egl.so
%{_qt6_plugindir}/platforms/libqwayland-generic.so
%dir %{_qt6_plugindir}/wayland-decoration-client
%{_qt6_plugindir}/wayland-decoration-client/libbradient.so
%dir %{_qt6_plugindir}/wayland-graphics-integration-client
%{_qt6_plugindir}/wayland-graphics-integration-client/libqt-plugin-wayland-egl.so
%{_qt6_plugindir}/wayland-graphics-integration-client/libshm-emulation-server.so
%{_qt6_plugindir}/wayland-graphics-integration-client/libvulkan-server.so
%{_qt6_plugindir}/wayland-graphics-integration-client/libdmabuf-server.so
%{_qt6_plugindir}/wayland-graphics-integration-client/libdrm-egl-server.so
%dir %{_qt6_plugindir}/wayland-graphics-integration-server
%{_qt6_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-shm-emulation-server.so
%{_qt6_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-vulkan-server.so
%{_qt6_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-wayland-egl.so
%{_qt6_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-wayland-eglstream-controller.so
%{_qt6_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-dmabuf-server-buffer.so
%{_qt6_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-drm-egl-server-buffer.so
%{_qt6_plugindir}/wayland-graphics-integration-server/libqt-wayland-compositor-linux-dmabuf-unstable-v1.so
%dir %{_qt6_plugindir}/wayland-shell-integration
%{_qt6_plugindir}/wayland-shell-integration/libfullscreen-shell-v1.so
%{_qt6_plugindir}/wayland-shell-integration/libivi-shell.so
%{_qt6_plugindir}/wayland-shell-integration/libxdg-shell.so
%{_qt6_plugindir}/wayland-shell-integration/libwl-shell-plugin.so
%{_qt6_plugindir}/wayland-shell-integration/libqt-shell.so
%{_qt6_qmldir}/QtWayland/Client
%{_qt6_qmldir}/QtWayland/Compositor
%{_qt6_libdir}/libQt6WaylandEglClientHwIntegration.so.%{major}*
%{_qt6_libdir}/libQt6WaylandEglCompositorHwIntegration.so.%{major}*
%{_qt6_libdir}/libQt6WlShellIntegration.so.%{major}*

#-------------------------------------------------------------------

%package devel
Summary: Development files for %{name}
Requires: %{name} = %{EVRD}
BuildRequires:	cmake(Qt6Core) = %{version}
BuildRequires:	cmake(Qt6DBus) = %{version}
BuildRequires:	cmake(Qt6Gui) = %{version}
BuildRequires:	cmake(Qt6Network) = %{version}
BuildRequires:	cmake(Qt6Widgets) = %{version}
BuildRequires:	cmake(Qt6Xml) = %{version}
BuildRequires:	cmake(Qt6OpenGL) = %{version}
BuildRequires:	cmake(Qt6ShaderTools) = %{version}
BuildRequires:	qt6-qtdeclarative
BuildRequires:	qt6-qtdeclarative-devel

%description devel
Qt6 Wayland library.

%files devel
%{_qt6_libexecdir}/qtwaylandscanner
%{_qt6_libdir}/cmake
%{_qt6_includedir}/QtWaylandClient
%{_qt6_includedir}/QtWaylandCompositor
%{_qt6_includedir}/QtWaylandGlobal
%{_qt6_includedir}/QtWaylandEglClientHwIntegration
%{_qt6_includedir}/QtWaylandEglCompositorHwIntegration
%{_qt6_includedir}/QtWlShellIntegration
%{_qt6_libdir}/libQt6WaylandClient.prl
%{_qt6_libdir}/libQt6WaylandCompositor.prl
%{_qt6_libdir}/libQt6WaylandEglClientHwIntegration.prl
%{_qt6_libdir}/libQt6WaylandEglClientHwIntegration.so
%{_qt6_libdir}/libQt6WaylandEglCompositorHwIntegration.prl
%{_qt6_libdir}/libQt6WaylandEglCompositorHwIntegration.so
%{_qt6_libdir}/libQt6WaylandClient.so
%{_qt6_libdir}/libQt6WaylandCompositor.so
%{_qt6_libdir}/libQt6WlShellIntegration.prl
%{_qt6_libdir}/libQt6WlShellIntegration.so
%{_qt6_archdatadir}/metatypes/qt6waylandcompositor_rel*_metatypes.json
%{_qt6_archdatadir}/metatypes/qt6waylandclient_rel*_metatypes.json
%{_qt6_archdatadir}/metatypes/qt6waylandeglclienthwintegrationprivate_rel*_metatypes.json
%{_qt6_archdatadir}/metatypes/qt6waylandeglcompositorhwintegrationprivate_rel*_metatypes.json
%{_qt6_archdatadir}/metatypes/qt6wlshellintegrationprivate_rel*_metatypes.json
%{_qt6_libdir}/pkgconfig/Qt6WaylandClient.pc
%{_qt6_libdir}/pkgconfig/Qt6WaylandCompositor.pc
%{_qt6_mkspecsdir}/modules/qt_lib_wayland_egl_client_hw_integration_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_wayland_egl_compositor_hw_integration_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_waylandglobal_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_wl_shell_integration_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_waylandclient.pri
%{_qt6_mkspecsdir}/modules/qt_lib_waylandclient_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_waylandcompositor.pri
%{_qt6_mkspecsdir}/modules/qt_lib_waylandcompositor_private.pri
%{_qt6_archdatadir}/modules/WaylandEglClientHwIntegrationPrivate.json
%{_qt6_archdatadir}/modules/WaylandEglCompositorHwIntegrationPrivate.json
%{_qt6_archdatadir}/modules/WaylandGlobalPrivate.json
%{_qt6_archdatadir}/modules/WlShellIntegrationPrivate.json
%{_qt6_archdatadir}/modules/WaylandClient.json
%{_qt6_archdatadir}/modules/WaylandCompositor.json

#-------------------------------------------------------------------
%if %{with examples}
%package examples
Summary: Programming examples for %{name}
Requires: %{name} = %{EVRD}

%description examples
Qt6 Wayland library.

%files examples
%optional %{_qt6_examplesdir}/wayland
%endif
#-------------------------------------------------------------------

%prep
%autosetup -p1 -n qtwayland-everywhere-src-%{version}
# FIXME why are OpenGL lib paths autodetected incorrectly, preferring
# /usr/lib over /usr/lib64 even on 64-bit boxes?
%if !%{with examples}
rm -rf examples
%endif

%build
#export LD_LIBRARY_PATH="$(pwd)/build/lib:${LD_LIBRARY_PATH}"
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
%if %{with examples}
	-DBUILD_EXAMPLES:BOOL=ON \
%else
	-DBUILD_EXAMPLES:BOOL=OFF \
%endif
	-DBUILD_SHARED_LIBS:BOOL=ON \
	-DFEATURE_cxx2a:BOOL=ON \
	-DFEATURE_dynamicgl:BOOL=ON \
	-DQT_FEATURE_use_bfd_linker:BOOL=ON \
	-DINPUT_sqlite=system \
	-DQT_WILL_INSTALL:BOOL=ON

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16883 |21mr|qt6-qtwebchannel-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt6 Web Channel module
Name:		qt6-qtwebchannel
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtwebchannel-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtwebchannel.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6QmlModels)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6QuickTest)
BuildRequires:	cmake(Qt6WebSockets)
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt6 Web Channel module

%define extra_files_WebChannel \
%{_qt6_qmldir}/QtWebChannel

%define extra_devel_files_WebChannelQuick \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6WebChannelQuick*

%qt6libs WebChannel WebChannelQuick

%package examples
Summary:	Examples demonstrating the use of QtWebChannel
Group:		Development/KDE and Qt

%description examples
Examples demonstrating the use of QtWebChannel

%files examples
%optional %{_libdir}/qt6/examples/webchannel

%prep
%autosetup -p1 -n qtwebchannel-everywhere-src-%{version}

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16884 |21mr|qt6-qtwebengine-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
# use bundled icu
# and use system after icu upgrade
%bcond_with icu

%define _qtdir %{_libdir}/qt%{major}

Summary:	Qt6 WebEngine provides functionality for rendering regions of dynamic web content
Name:		qt6-qtwebengine
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	LGPLv3/GPLv3/GPLv2
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtwebengine-everywhere-src-%{version}.tar.xz
Patch1:		qtwebengine-6.4.0b3-buildfixes.patch
Patch2:		qt6-qtwebengine-6.2.2-workaround-for-__fp16-build-failure-aarch64.patch
Patch3:		chromium-99.0.4844.51-extra.patch
# riscv patches
Patch100:	riscv-latomic.patch
Patch101:	riscv-base.patch
Patch102:	riscv-sandbox.patch
Patch103:	riscv-crashpad.patch
Patch104:	riscv-angle.patch
Patch105:	riscv-dav1d.patch
Patch106:	riscv-libgav1.patch
Patch107:	riscv-vulkan.patch

# i686 support dropped
ExcludeArch:	%{ix86}
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Positioning)
BuildRequires:	cmake(Qt6WebChannel)
BuildRequires:	cmake(Qt6WebChannelQuick)
BuildRequires:	cmake(Qt6WebSockets)
BuildRequires:	cmake(Qt6Test)
BuildRequires:	cmake(Qt6QuickTest)
BuildRequires:	cmake(Qt6Designer)
BuildRequires:	cmake(Qt6UiPlugin)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	cmake(Qt6QuickControls2)
BuildRequires:	cmake(Qt6QuickTemplates2)
BuildRequires:	cmake(Qt6QuickWidgets)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	git-core
BuildRequires:	gn
BuildRequires:	gperf
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(snappy)
BuildRequires:	nodejs
BuildRequires:	libxml2-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xshmfence)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(nss) >= 3.26
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(glproto)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(harfbuzz-subset) >= 2.4.0
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(libpng) >= 1.6.0
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(re2)
BuildRequires:	cups-devel
# need 68icu
%if %{with icu}
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(icu-i18n)
%endif
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libwebpmux)
BuildRequires:	pkgconfig(libwebpdemux)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(opus) >= 1.3.1
BuildRequires:	pkgconfig(vpx) >= 1.10.0
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)
BuildRequires:	python3dist(html5lib)
BuildRequires:	qt6-designer
# FIXME switch to shared library (port patch from qt5)
BuildRequires:	stdc++-static-devel


%description
Qt %{major} Web Engine - a web browser library for Qt

%files -f qtwebengine.lang

#---------------------------------------------------------------------------------------------

%package designer
Summary: Qt Designer integration for QtWebEngine
Group: Development/C
Requires: qt6-designer
Supplements: qt6-designer

%description designer
Qt Designer integration for QtWebEngine

%files designer
%{_qt6_plugindir}/designer/libqwebengineview.so

#---------------------------------------------------------------------------------------------

%global extra_files_WebEngineCore \
%{_qt6_libexecdir}/QtWebEngineProcess \
%{_qt6_datadir}/resources/qtwebengine_devtools_resources.pak \
%{_qt6_datadir}/resources/qtwebengine_resources.pak \
%{_qt6_datadir}/resources/qtwebengine_resources_100p.pak \
%{_qt6_datadir}/resources/qtwebengine_resources_200p.pak \
%{_qt6_datadir}/resources/v8_context_snapshot.bin

#---------------------------------------------------------------------------------------------

%global extra_devel_files_WebEngineCore \
%{_qt6_libdir}/cmake/Qt6/FindGPerf.cmake \
%{_qt6_libdir}/cmake/Qt6/FindGn.cmake \
%{_qt6_libdir}/cmake/Qt6/FindNinja.cmake \
%{_qt6_libdir}/cmake/Qt6/FindNodejs.cmake \
%{_qt6_libdir}/cmake/Qt6/FindPkgConfigHost.cmake \
%{_qt6_libdir}/cmake/Qt6/FindSnappy.cmake \
%{_qt6_libdir}/cmake/Qt6BuildInternals/StandaloneTests/QtWebEngineTestsConfig.cmake \
%{_qt6_libdir}/cmake/Qt6Designer/Qt6QWebEngineViewPlugin*.cmake \
%{_qt6_libexecdir}/gn \
%{_qt6_libexecdir}/qwebengine_convert_dict

#---------------------------------------------------------------------------------------------

%global extra_devel_reqprov_WebEngineCore \
Requires:	cmake(Qt6Positioning)

#---------------------------------------------------------------------------------------------

%global extra_devel_files_Pdf \
%{_qt6_libdir}/cmake/Qt6Gui/Qt6QPdfPlugin*.cmake

#---------------------------------------------------------------------------------------------

%global extra_devel_files_PdfQuick \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6PdfQuickplugin*.cmake

#---------------------------------------------------------------------------------------------

%global extra_files_WebEngineQuick \
%{_qt6_qmldir}/QtWebEngine

#---------------------------------------------------------------------------------------------

%global extra_devel_files_WebEngineQuick \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtwebenginequickdelegatesplugin*.cmake \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtwebenginequickplugin*.cmake

#---------------------------------------------------------------------------------------------

%global extra_devel_reqprov_WebEngineQuick \
Requires:	%{name}-designer = %{EVRD}

#---------------------------------------------------------------------------------------------

%global extra_files_Pdf \
%{_qt6_plugindir}/imageformats/libqpdf.so

#---------------------------------------------------------------------------------------------

%global extra_files_PdfQuick \
%{_qt6_qmldir}/QtQuick/Pdf

#---------------------------------------------------------------------------------------------

%qt6libs WebEngineCore WebEngineQuick WebEngineWidgets WebEngineQuickDelegatesQml Pdf PdfQuick PdfWidgets

#---------------------------------------------------------------------------------------------

%package examples
Summary:	Sample code demonstrating the use of %{name}
Group:		Development/KDE and Qt

%description examples
Sample code demonstrating the use of %{name}

%files examples
%{_qt6_examplesdir}/webenginequick
%{_qt6_examplesdir}/webenginewidgets
%{_qt6_examplesdir}/pdf
%{_qt6_examplesdir}/pdfwidgets

#---------------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n qtwebengine-everywhere-src-%{version}
#sed -i 's!++17!++20!g' src/3rdparty/chromium/build/config/compiler/BUILD.gn
# use system headers
find . -type f -name "*.pr[fio]" -exec sed -i -e 's|INCLUDEPATH += |&$${QTWEBENGINE_ROOT}_build/include $${QTWEBENGINE_ROOT}/include |' {} +

%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON \
	-DFEATURE_qtpdf_build:BOOL=ON \
	-DFEATURE_qtpdf_quick_build:BOOL=ON \
	-DFEATURE_qtpdf_widgets_build:BOOL=ON \
	-DFEATURE_pdf_v8:BOOL=ON \
	-DFEATURE_pdf_xfa:BOOL=ON \
	-DFEATURE_pdf_xfa_bmp:BOOL=ON \
	-DFEATURE_pdf_xfa_gif:BOOL=ON \
	-DFEATURE_pdf_xfa_png:BOOL=ON \
	-DFEATURE_pdf_xfa_tiff:BOOL=ON \
	-DFEATURE_webengine_proprietary_codecs:BOOL=ON \
	-DFEATURE_webengine_system_ffmpeg:BOOL=ON \
	-DFEATURE_webengine_system_icu:BOOL=ON \
	-DFEATURE_webengine_system_libevent:BOOL=ON \
	-DFEATURE_webengine_system_ninja:BOOL=ON \
	-DFEATURE_webengine_webrtc_pipewire:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

for i in %{buildroot}%{_qt6_datadir}/translations/qtwebengine_locales/*.pak; do
	l=$(basename $i .pak |sed -e 's,-,_,g')
	echo "%lang($l) %{_qt6_datadir}/translations/qtwebengine_locales/$(basename $i)" >>qtwebengine.lang
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16885 |21mr|qt6-qtwebsockets-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6

%define libname %mklibname Qt6WebSockets %{major}
%define devname %mklibname Qt6WebSockets -d

Summary:	Qt6 Web Sockets module
Name:		qt6-qtwebsockets
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	GPLv2+
Source0:	http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtwebsockets-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtwebsockets.rpmlintrc
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Sql)
BuildRequires:	cmake(Qt6PrintSupport)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	qt6-cmake
BuildRequires:	qt6-qtdeclarative-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	cmake(LLVM)
BuildRequires:	cmake(Clang)

%description
Qt6 Web Sockets module

%files
%{_qt6_qmldir}/QtWebSockets

#----------------------------------------------------------

%package -n %{libname}
Summary:	Qt Graphs library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libname}
Qt scxml library.

%files -n %{libname}
%{_qt6_libdir}/libQt6WebSockets.so.%{major}*

#---------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_qt6_includedir}/QtWebSockets
%{_qt6_libdir}/cmake/Qt6Qml
%{_qt6_libdir}/cmake/Qt6BuildInternals
%{_qt6_libdir}/cmake/Qt6WebSockets
%{_qt6_libdir}/pkgconfig/Qt6WebSockets.pc
%{_qt6_archdatadir}/modules/WebSockets.json
%{_qt6_mkspecsdir}/modules/qt_lib_websockets_private.pri
%{_qt6_mkspecsdir}/modules/qt_lib_websockets.pri
%{_qt6_archdatadir}/metatypes/qt6websockets_release_metatypes.json
%{_qt6_libdir}/libQt6WebSockets.prl
%{_qt6_libdir}/libQt6WebSockets.so

#---------------------------------------------

%package examples
Summary: Examples for the Qt %{qtmajor} Web Sockets module
Group: Development/KDE and Qt

%description examples
Examples for the Qt %{qtmajor} Web Sockets module

%files examples
%{_qt6_examplesdir}/websockets

#---------------------------------------------

%prep
%autosetup -p1 -n qtwebsockets-everywhere-src-%{version}

%build
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16886 |21mr|qt6-qtwebview-6.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt %{qtmajor} Tools
Name:		qt6-qtwebview
Version:	6.6.2
Release:	1
Group:		System/Libraries
License:	LGPLv3/GPLv3/GPLv2
Source:		http://download.qt-project.org/official_releases/qt/%(echo %{version}|cut -d. -f1-2)/%{version}/submodules/qtwebview-everywhere-src-%{version}.tar.xz
Source100:	qt6-qtwebview.rpmlintrc

# i686 support dropped
ExcludeArch:	%{ix86}
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6Positioning)
BuildRequires:	cmake(Qt6WebChannel)
BuildRequires:	cmake(Qt6WebEngineCore)
BuildRequires:	cmake(Qt6WebEngineWidgets)
BuildRequires:	cmake(Qt6WebEngineQuick)
BuildRequires:	cmake(Qt6Qml)
BuildRequires:	cmake(Qt6Quick)
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(zlib)
BuildRequires:	cmake(OpenGL)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(vulkan)

%description
Qt %{qtmajor} Web View library

%global extra_files_WebView \
%dir %{_qt6_plugindir}/webview \
%{_qt6_plugindir}/webview/libqtwebview_webengine.so

%global extra_files_WebViewQuick \
%{_qt6_qmldir}/QtWebView

%global extra_devel_files_WebViewQuick \
%{_qt6_libdir}/cmake/Qt6Qml/QmlPlugins/Qt6qtwebviewquickplugin*.cmake

%qt6libs WebView WebViewQuick

%package examples
Summary:	Example code for the Qt 6 Web View module
Group:		Documentation

%description examples
Example code for the Qt 6 Web View module

%prep
%autosetup -p1 -n qtwebview-everywhere-src-%{version}
%cmake -G Ninja \
	-DCMAKE_INSTALL_PREFIX=%{_qt6_prefix} \
	-DQT_MKSPECS_DIR:FILEPATH=%{_qt6_mkspecsdir} \
	-DQT_BUILD_EXAMPLES:BOOL=ON \
	-DQT_WILL_INSTALL:BOOL=ON

%build
%ninja_build -C build

%install
%ninja_install -C build

%files examples
%{_qt6_examplesdir}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16887 |21mr|qtav-1.13.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname QtAV
%define qmlqtav %mklibname qtav-qml
%define major 1
%define libname %mklibname %{name} %{major}
%define libname_widgets %mklibname %{name}widgets %{major}
%define devname %mklibname %{name} -d

Summary:	Qt5 multimedia framework
Name:		qtav
Version:	1.13.0
Release:	3
License:	LGPLv2+
Group:		Video
Url:		http://qtav.org/
Source0:	https://github.com/wang-bin/QtAV/archive/v%{version}/%{oname}-%{version}.tar.gz
Source1:	https://github.com/wang-bin/capi/archive/6a5f3006533b79aa57a3a54cf9df4442a356dd48.tar.gz
Source2:	https://github.com/BYVoid/uchardet/archive/016eb18437793fbdd31149e1fe9fd73df3430d0f.tar.gz
Source3:	QtAV-1.12.0_ru.tar.gz
Patch0:		0001-Create-install-files-with-soversion.patch
Patch1:		0002-QMLPlayer-should-be-QApplication.patch
Patch2:		0003-Rename-the-qtav_dev-and-qtav_dev_links-target-as-lib.patch
Patch3:		0004-Rename-qtav-private-dev.install-libqtav-private-dev..patch
Patch4:		0005-Disable-warnings-with-Wno-expansion-to-defined-Wno-u.patch
Patch5:		0006-Load-the-libva-libraries-with-SONAME-2.patch
Patch8:		QtAV-1.12.1-add-locale_stings.patch
Patch9:		QtAV-1.12.0-russian.patch
Patch10:    0001-Fix-build-with-Qt-5.14.patch
Patch11:     qtav-1.13.0-qt-5.15.patch
BuildRequires:	imagemagick
BuildRequires:	kde5-macros
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavdevice)
BuildRequires:	pkgconfig(libavfilter)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libpulse) >= 1.0
BuildRequires:	pkgconfig(libswresample)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(uchardet)
BuildRequires:	pkgconfig(xv)
Provides:	%{oname} = %{EVRD}

%description
QtAV is a multimedia playback library based on Qt and FFmpeg. It can help
you to write a player with less effort than ever before.

Features include:
   * Hardware decoding suppprt: DXVA2, VAAPI, VDA, CedarX, CUDA
   * OpenGL and ES2 support for Hi10P and other 16-bit YUV videos
   * Real time preview
   * Video capture in rgb and yuv format
   * OSD and custom filters
   * Subtitle
   * Transform video using GraphicsItemRenderer. (rotate, shear, etc)
   * Playing frame by frame (currently support forward playing)
   * Playback speed control
   * Variant streams: locale file, http, rtsp, etc.
   * Audio channel, tracks and external audio tracks
   * Dynamically change render engine when playing
   * Multiple video outputs for 1 player
   * Region of interest(ROI), i.e. video cropping
   * Video eq: brightness, contrast, saturation, hue
   * QML support as a plugin. Most playback APIs are compatible with
     QtMultiMedia module

%files
%doc Changelog README*
%{_qt5_bindir}/Player
%{_qt5_bindir}/QMLPlayer
%{_bindir}/*
%{_datadir}/applications/Player.desktop
%{_datadir}/applications/QMLPlayer.desktop
%{_iconsdir}/hicolor/scalable/apps/%{oname}.svg

#----------------------------------------------------------------------------

%package -n %{qmlqtav}
Summary:	QML plugin for Qt5 multimedia framework
Group:		System/Libraries
Provides:	qtav-qml = %{EVRD}
Conflicts:	%{name} < 1.11.0

%description -n %{qmlqtav}
QML plugin for Qt5 multimedia framework.

%files -n %{qmlqtav}
%dir %{_kde5_qmldir}/%{oname}
%{_kde5_qmldir}/%{oname}/Video.qml
%{_kde5_qmldir}/%{oname}/libQmlAV.so
%{_kde5_qmldir}/%{oname}/plugins.qmltypes
%{_kde5_qmldir}/%{oname}/qmldir

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	QtAV shared library
Group:		System/Libraries
Requires:	qtav-qml = %{EVRD}

%description -n %{libname}
QtAV is a multimedia playback library based on Qt and FFmpeg.

This package contains the QtAV library.

%files -n %{libname}
%doc Changelog README*
%{_qt5_libdir}/lib%{oname}.so.%{major}
%{_qt5_libdir}/lib%{oname}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{libname_widgets}
Summary:	QtAV Widgets shared library
Group:		System/Libraries

%description -n %{libname_widgets}
QtAV is a multimedia playback library based on Qt and FFmpeg.

This package contains a set of widgets to play media.

%files -n %{libname_widgets}
%doc Changelog README*
%{_qt5_libdir}/lib%{oname}Widgets.so.%{major}
%{_qt5_libdir}/lib%{oname}Widgets.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	QtAV development files
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_widgets} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}
Provides:	%{name}widgets-devel = %{EVRD}
Provides:	%{oname}Widgets-devel = %{EVRD}

%description -n %{devname}
QtAV is a multimedia playback library based on Qt and FFmpeg.

This package contains the header development files for building some QtAV
applications using QtAV headers.

%files -n %{devname}
%doc Changelog README*
%{_qt5_includedir}/%{oname}/
%{_qt5_includedir}/%{oname}Widgets/
%{_qt5_libdir}/lib%{oname}.so
%{_qt5_libdir}/lib%{oname}Widgets.so
%{_qt5_libdir}/lib%{oname}.prl
%{_qt5_libdir}/lib%{oname}Widgets.prl
%{_qt5_prefix}/mkspecs/features/av.prf
%{_qt5_prefix}/mkspecs/features/avwidgets.prf
%{_kde5_mkspecsdir}/qt_lib_av.pri
%{_kde5_mkspecsdir}/qt_lib_av_private.pri
%{_kde5_mkspecsdir}/qt_lib_avwidgets.pri
%{_kde5_mkspecsdir}/qt_lib_avwidgets_private.pri

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version} -a 1 -a 2
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
find . -name "*.c" -o -name "*.h" -o -name "*.cpp" |xargs chmod 0644

tar -xvzf %{SOURCE3}

%build
%setup_compile_flags
%qmake_qt5 "CONFIG+=no_rpath recheck" \
            "CONFIG+=vaapi"
%make

%install
%makeinstall_qt

# KDE4 won't see _qt5_bindir,so let's trick it ... 
mkdir -p %{buildroot}%{_bindir}
cp -pr %{buildroot}%{_qt5_bindir}/Player %{buildroot}%{_bindir}/Player
cp -pr %{buildroot}%{_qt5_bindir}/QMLPlayer %{buildroot}%{_bindir}/QMLPlayer

find %{buildroot} -name '*.a' -delete

# duplicate files
rm -rf %{buildroot}%{_datadir}/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16888 |21mr|qt-creator-8.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# These are private, filter them
%global __provides_exclude libAggregation\\.so\\.1(.*)|libClangbackendipc\\.so\\.1(.*)|libCPlusPlus\\.so\\.1(.*)|libExtensionSystem\\.so\\.1(.*)|libGLSL\\.so\\.1(.*)|libLanguageUtils\\.so\\.1(.*)|libModeling\\.so\\.1(.*)|libQmlDebug\\.so\\.1(.*)|libQmlEditorWidgets\\.so\\.1(.*)|libQmlJS\\.so\\.1(.*)|libQtcSsh\\.so\\.1(.*)|libSqlite\\.so\\.1(.*)|libTimeline\\.so\\.1(.*)|libUtils\\.so\\.1(.*)|libqbscore\\.so\\.1(.*)|libqbsqtprofilesetup\\.so\\.1(.*)|libzeroconf\\.so\\.1(.*)|devel\\((.*)|qml\\((.*)
%global __requires_exclude libAggregation\\.so\\.1(.*)|libClangbackendipc\\.so\\.1(.*)|libCPlusPlus\\.so\\.1(.*)|libExtensionSystem\\.so\\.1(.*)|libGLSL\\.so\\.1(.*)|libLanguageUtils\\.so\\.1(.*)|libModeling\\.so\\.1(.*)|libQmlDebug\\.so\\.1(.*)|libQmlEditorWidgets\\.so\\.1(.*)|libQmlJS\\.so\\.1(.*)|libQtcSsh\\.so\\.1(.*)|libSqlite\\.so\\.1(.*)|libTimeline\\.so\\.1(.*)|libUtils\\.so\\.1(.*)|libqbscore\\.so\\.1(.*)|libqbsqtprofilesetup\\.so\\.1(.*)|libzeroconf\\.so\\.1(.*)|devel\\((.*)|qml\\((.*)

# We need avoid oython byte compiler to not crash over template .py file which
# is not a valid python file, only for the IDE
%define __brp_python_bytecompile %{nil}

%define _cmake_skip_rpath %nil

%bcond_without docs

Summary:	Qt Creator is a lightweight, cross-platform IDE
Name:		qt-creator
Version:	8.0.1
Release:	3
License:	LGPLv2+ and MIT
Group:		Development/KDE and Qt
Url:		https://wiki.qt.io/Qt_Creator
Source0:	http://download.qt-project.org/official_releases/qtcreator/%(echo %{version} |cut -d. -f1-2)/%{version}/qt-creator-opensource-src-%{version}.tar.gz
Source2:	Nokia-QtCreator.xml
Source10:	%{name}.rpmlintrc
# Fix leading whitespace in desktop file
Patch1:         qt-creator_desktop.patch
# Limit qmake names to avoid the rpm macro wrapper qmake-qt5.sh getting picked up (#1644989)
Patch2:         qt-creator_qmake-names.patch
# Backport patch for QTCREATORBUG-28505
# https://bugreports.qt.io/browse/QTCREATORBUG-28505
Patch6:         qt-creator-28505.patch
BuildRequires:	qmake5
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	litehtml-devel
BuildRequires:	kf5syntaxhighlighting-devel
BuildRequires:	python3
BuildRequires:	pkgconfig(libelf)
BuildRequires:	pkgconfig(libdw)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5DesignerComponents)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5SerialPort)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebEngineCore)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	qt5-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	qdoc5
# Not for plugin files
Requires:	qt5-qtquickcontrols-qml
Requires:	qt5-qtquickcontrols2-qml
Requires:	qt5-qtquicktimeline-qml
Requires:	qt5-qttranslations
Recommends:	gcc-c++
Recommends:	gdb
Recommends:	qt5-designer
Recommends:	qt5-assistant
Recommends:	qt5-devel
Recommends:	qt5-qml-tools
Recommends:	qt-creator-doc
Recommends:	pkgconfig(gl)
Recommends:	pkgconfig(Qt5Qml)
Recommends:	pkgconfig(Qt5Quick)
Recommends:	pkgconfig(Qt5QuickWidgets)
Requires:	%{name}-common
Provides:	%{name}-ui = %{EVRD}

%description
Qt Creator (previously known as Project Greenhouse) is a new, lightweight,
cross-platform integrated development environment (IDE) designed to make
development with the Qt application framework even faster and easier.

%pre
if [ "$1" == "2" -a -L %{_bindir}/qtcreator ]
then
	rm -f %{_bindir}/qtcreator
fi

%files
%doc README.md
%{_bindir}/qtcreator
%{_bindir}/qtcreator.sh
%{_libdir}/qtcreator
%{_datadir}/qtcreator
%{_datadir}/applications/qtcreator.desktop
%{_datadir}/metainfo/org.qt-project.qtcreator.appdata.xml
%{_prefix}/libexec/qtcreator/buildoutputparser
%{_prefix}/libexec/qtcreator/cpaster
%{_prefix}/libexec/qtcreator/cplusplus-ast2png
%{_prefix}/libexec/qtcreator/cplusplus-frontend
%{_prefix}/libexec/qtcreator/cplusplus-mkvisitor
%{_prefix}/libexec/qtcreator/cplusplus-update-frontend
%{_prefix}/libexec/qtcreator/perf2text
%{_prefix}/libexec/qtcreator/perfparser
%{_prefix}/libexec/qtcreator/qml2puppet
%{_prefix}/libexec/qtcreator/qtc-askpass
%{_prefix}/libexec/qtcreator/qtcreator_process_stub
%{_prefix}/libexec/qtcreator/qtcreator_processlauncher
%{_prefix}/libexec/qtcreator/qtpromaker
%{_prefix}/libexec/qtcreator/sdktool

#------------------------------------------------------------------------------

%package common
Summary:	Files used by both Qt Creator Qt4 and Qt Creator Qt5
Group:		Development/KDE and Qt
BuildArch:	noarch

%description common
Files used by both Qt Creator Qt4 and Qt Creator Qt5.

%files common
%{_iconsdir}/*/*/*/QtProject-qtcreator.png
%{_datadir}/mime/packages/*

#------------------------------------------------------------------------------
%if %{with docs}
%package doc
Summary:	Qt Creator documentation
Group:		Development/KDE and Qt
Recommends:	qt5-doc

%description doc
Qt Creator documentation.

%files doc
%{_datadir}/doc/qtcreator/qtcreator.qch
%{_datadir}/doc/qtcreator/qtcreator-dev.qch
%endif
#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-opensource-src-%{version}

%build
%cmake \
	-DBUILD_CPLUSPLUS_TOOLS:BOOL=ON \
	-DWITH_DOCS=ON \
	-DWITH_ONLINE_DOCS=OFF \
	-DBUILD_DEVELOPER_DOCS=ON \
	-DLITEHTML_UTF8:BOOL=ON \
	-DCMAKE_INSTALL_LIBDIR=%{_lib} \
	-Djournald=ON

%make docs
%make STRIP=/bin/true

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/mime/packages
install -m 0644 %{SOURCE2} %{buildroot}/%{_datadir}/mime/packages

# install docs (its not installed via make install)
install -d %{buildroot}%{_datadir}/doc/qtcreator/
install -m0644 build/share/doc/qtcreator/*.qch %{buildroot}%{_datadir}/doc/qtcreator/

# We have better version
rm -f %{buildroot}%{_datadir}/applications/org.qt-project.qtcreator.desktop

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/qtcreator.desktop << EOF
[Desktop Entry]
Type=Application
Exec=%{_bindir}/qtcreator %%F
Name=Qt Creator
Name[ru]=Qt Creator
GenericName=Integrated Development Environment
GenericName[ru]=Интегрированная среда разработки
X-KDE-StartupNotify=true
Icon=QtProject-qtcreator
Terminal=false
Categories=Development;IDE;Qt;
MimeType=text/x-c++src;text/x-c++hdr;text/x-xsrc;application/x-designer;application/vnd.nokia.qt.qmakeprofile;application/vnd.nokia.xml.qt.resource;
InitialPreference=9
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16889 |21mr|qtcurve-1.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libnamegtk2 %{_lib}qtcurve-gtk2

Summary:	QtCurve Theme for Qt and GTK
Name:		qtcurve
Version:	1.9
Release:	6
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://github.com/QtCurve/qtcurve/releases
Source0:	https://download.kde.org/stable/qtcurve/%{name}-%{version}.tar.xz
Patch0:		0037-utils-gtkprops-Remove-unnecessary-constexpr-this-is-.patch
Patch1:		qtcurve-1.9-missing-include-openmandriva.patch
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5frameworkintegration-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(x11-xcb)
BuildRequires:	pkgconfig(xcb)

%description
QtCurve Theme for Qt and GTK.

#----------------------------------------------------------------------------

%package -n qt5-style-qtcurve
Summary:	QtCurve style for Qt5
Group:		Graphical desktop/KDE

%description -n qt5-style-qtcurve
QtCurve style for Qt5.

%files -n qt5-style-qtcurve
%{_qt5_plugindir}/styles/qtcurve.so

#----------------------------------------------------------------------------

%package -n plasma5-style-qtcurve
Summary:	QtCurve style for Plasma 5
Group:		Graphical desktop/KDE
Requires:	qt5-style-qtcurve

%description -n plasma5-style-qtcurve
QtCurve style for Plasma 5.

%files -n plasma5-style-qtcurve -f %{name}.lang
%{_kde5_datadir}/kstyle/themes/qtcurve.themerc
%{_kde5_xmlguidir}/QtCurve/QtCurveui.rc
%{_qt5_plugindir}/kstyle_qtcurve5_config.so

#----------------------------------------------------------------------------

%package -n qtcurve-gtk2
Summary:	QtCurve Theme for GTK2
Group:		Graphical desktop/GNOME
Requires:	%{libnamegtk2} = %{EVRD}

%description -n qtcurve-gtk2
QtCurve Theme for GTK2.

%files -n qtcurve-gtk2
%{_datadir}/themes/QtCurve

#----------------------------------------------------------------------------

%package -n %{libnamegtk2}
Summary:	GTK2 libraries for QtCurve
Group:		Graphical desktop/GNOME
Provides:	libqtcurve-gtk2 = %{EVRD}

%description -n %{libnamegtk2}
GTK2 libraries for QtCurve.

%files -n %{libnamegtk2}
%{_libdir}/gtk-2.0/*/engines/libqtcurve.so

#----------------------------------------------------------------------------

%define cairo_major 1
%define libqtcurvecairo %mklibname qtcurve-cairo %{cairo_major}

%package -n %{libqtcurvecairo}
Summary:	Shared library for QtCurve
Group:		System/Libraries

%description -n %{libqtcurvecairo}
Shared library for QtCurve.

%files -n %{libqtcurvecairo}
%{_libdir}/libqtcurve-cairo.so.%{cairo_major}*

#----------------------------------------------------------------------------

%define utils_major 2
%define libqtcurveutils %mklibname qtcurve-utils %{utils_major}

%package -n %{libqtcurveutils}
Summary:	Shared library for QtCurve
Group:		System/Libraries

%description -n %{libqtcurveutils}
Shared library for QtCurve.

%files -n %{libqtcurveutils}
%{_libdir}/libqtcurve-utils.so.%{utils_major}*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%cmake_kde5 \
	-DENABLE_QT4:BOOL=OFF \
	-DQTC_QT4_ENABLE_KDE:BOOL=OFF \
	-DENABLE_QT5:BOOL=ON \
	-DQTC_QT5_ENABLE_KDE:BOOL=ON \
	-DQTC_QT5_ENABLE_QTQUICK2:BOOL=ON \
	-DENABLE_GTK2:BOOL=ON
%make

%install
%makeinstall_std -C build

# We don't have devel package so we don't need it
rm %{buildroot}%{_libdir}/libqtcurve-cairo.so
rm %{buildroot}%{_libdir}/libqtcurve-utils.so

%find_lang qtcurve

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16890 |21mr|qterminal-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt-based multitab terminal emulator
Name:		qterminal
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Terminals
Url:		https://github.com/lxqt/qterminal
Source0:	https://github.com/lxqt/qterminal/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		qterminal-1.3.0-disable-askonexit.patch
Patch1:		qterminal-1.4.0-ts-ru-translate.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(lxqt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(qtermwidget5)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
Qt-based multitab terminal emulator.

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE
%{_appdatadir}/%{name}.metainfo.xml
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-drop.desktop
%{_datadir}/%{name}/%{name}_bookmarks_example.xml
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/*/apps/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16891 |21mr|qtermwidget-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 5
%define major 1
%define libname %mklibname qtermwidget %{api} %{major}
%define devname %mklibname qtermwidget %{api} -d

Summary:	Qt5 terminal widget
Name:		qtermwidget
Version:	1.4.0
Release:	1
License:	GPLv2+
Group:		Development/KDE and Qt
Url:		https://github.com/lxqt/qtermwidget
Source0:	https://github.com/lxqt/qtermwidget/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	qtermwidget.0.17.0_ru.tar.gz
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-linguist-tools
BuildRequires:	utf8proc-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	%{libname} = %{EVRD}
Obsoletes:	python3-%{name} <= 1.0.0

%description
QTermWidget is an open source project based on KDE Konsole application.
The main goal of this project is to provide unicode-enabled,
embeddable Qt widget for using as a built-in console (or terminal
emulation widget).

%files
%doc AUTHORS CHANGELOG README.md
%license LICENSE LICENSE.BSD-3-clause LICENSE.LGPL2+
%{_datadir}/%{name}5/

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt terminal widget - shared library
Group:		System/Libraries

%description -n %{libname}
This package provides shared library for Qt terminal widget.

%files -n %{libname}
%license LICENSE
%{_libdir}/lib%{name}%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Qt terminal widget - devel package
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Obsoletes:	%{name}-devel < 0.4.0-1
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides headers files for qtermwidget development.

%files -n %{devname}
%license LICENSE
%{_includedir}/%{name}%{api}
%{_libdir}/lib%{name}%{api}.so
%{_libdir}/pkgconfig/%{name}%{api}.pc
%{_libdir}/cmake/%{name}%{api}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

pushd lib/translations
tar -xvzf %{SOURCE1}
popd

%build
%cmake \
	-DBUILD_EXAMPLE=ON \
	-DUSE_UTF8PROC=ON
%make_build

sed -i 's!${prefix}//!${prefix}/!' qtermwidget%{api}.pc

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16892 |21mr|qt-gstreamer-1.2.0-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define glibapi 2.0
%define major 0

Summary:	C++ bindings for GStreamer with a Qt-style API
Name:		qt-gstreamer
Version:	1.2.0
Release:	16
License:	LGPLv2+
Group:		System/Libraries
Url:		http://gstreamer.freedesktop.org/wiki/QtGStreamer
Source0:	http://gstreamer.freedesktop.org/src/qt-gstreamer/%{name}-%{version}.tar.xz
Patch0:		qt-gstreamer-1.2.0-pkgconfig.patch
Patch1:		qt-gstreamer-1.2.0-drop-volatile.patch
Patch2:		qt-gstreamer-1.2.0-drop-cast-type.patch
# From Fedora's package
Patch10:	0001-gstqtvideosink-fix-memory-leak-and-synchronization-i.patch
Patch11:	0002-CMakeLists.txt-actually-require-GStreamer-1.2.0.patch
Patch12:	0003-qtglvideosinkbase-don-t-use-variable-name-interface-.patch
Patch13:	0004-Add-pbutils-include-directory-to-include-paths.patch
Patch14:	0005-Workaround-build-failures-with-boost-1.57-and-moc.patch
Patch15:	0006-Fix-compilation-with-GStreamer-1.5.1.patch
Patch16:	qt-gstreamer-1.2.0-boost_160.patch
# From Gentoo
Patch20:	qt-gstreamer-1.2.0-qt-5.11b3.patch
Patch21:	OpenBSD-with-new-gstreamer.patch
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	qt4-qmlviewer
BuildRequires:	boost-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(glib-%{glibapi})
BuildRequires:	pkgconfig(gstreamer-%{api})
BuildRequires:	pkgconfig(gstreamer-app-%{api})
BuildRequires:	pkgconfig(gstreamer-audio-%{api})
BuildRequires:	pkgconfig(gstreamer-base-%{api})
BuildRequires:	pkgconfig(gstreamer-pbutils-%{api})
BuildRequires:	pkgconfig(gstreamer-plugins-base-%{api})
BuildRequires:	pkgconfig(gstreamer-video-%{api})
BuildRequires:	pkgconfig(Qt5Core)
#BuildRequires:	pkgconfig(Qt5Declarative)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
QtGStreamer provides C++ bindings for GStreamer with a Qt-style API,
plus some helper classes for integrating GStreamer better in Qt 4
applications.

%files
%{_libdir}/gstreamer-%{api}/libgstqtvideosink.so
%{_qt_importdir}/QtGStreamer/

#----------------------------------------------------------------------------

%define libqtglib %mklibname QtGLib %{glibapi} %{major}

%package -n %{libqtglib}
Summary:	C++/Qt bindings for parts of the GLib and GObject APIs
Group:		System/Libraries
Conflicts:	%{_lib}qt-gstreamer0 < 0.10.2
Conflicts:	%{_lib}qtglib0.10.2 < 0.10.2-4
Obsoletes:	%{_lib}qtglib0.10.2 < 0.10.2-4
Conflicts:	%{_lib}qtglib2.0_0.10.2 < 0.10.2-4
Obsoletes:	%{_lib}qtglib2.0_0.10.2 < 0.10.2-4

%description -n %{libqtglib}
Library providing C++/Qt bindings for parts of the GLib and GObject
APIs, a base on which QtGStreamer is built.

%files -n %{libqtglib}
%{_libdir}/libQtGLib-%{glibapi}.so.%{major}
%{_libdir}/libQtGLib-%{glibapi}.so.%{version}

#----------------------------------------------------------------------------

%define libqtgstreamer %mklibname QtGStreamer %{api} %{major}

%package -n %{libqtgstreamer}
Summary:	C++/Qt bindings for GStreamer
Group:		System/Libraries

%description -n %{libqtgstreamer}
Library providing C++/Qt bindings for GStreamer

%files -n %{libqtgstreamer}
%{_libdir}/libQtGStreamer-%{api}.so.%{major}
%{_libdir}/libQtGStreamer-%{api}.so.%{version}

#----------------------------------------------------------------------------

%define libqtgstreamerui %mklibname QtGStreamerUi %{api} %{major}

%package -n %{libqtgstreamerui}
Summary:	Library providing integration with QtGui
Group:		System/Libraries

%description -n %{libqtgstreamerui}
Library providing integration with QtGui.

%files -n %{libqtgstreamerui}
%{_libdir}/libQtGStreamerUi-%{api}.so.%{major}
%{_libdir}/libQtGStreamerUi-%{api}.so.%{version}

#----------------------------------------------------------------------------

%define libqtgstreamerutils %mklibname QtGStreamerUtils %{api} %{major}

%package -n %{libqtgstreamerutils}
Summary:	Library providing some high level utility classes
Group:		System/Libraries

%description -n %{libqtgstreamerutils}
Library providing some high level utility classes.

%files -n %{libqtgstreamerutils}
%{_libdir}/libQtGStreamerUtils-%{api}.so.%{major}
%{_libdir}/libQtGStreamerUtils-%{api}.so.%{version}

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for QtGstreamer
Group:		Development/KDE and Qt
Requires:	%{libqtglib} = %{EVRD}
Requires:	%{libqtgstreamer} = %{EVRD}
Requires:	%{libqtgstreamerui} = %{EVRD}
Requires:	%{libqtgstreamerutils} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
QtGStreamer provides C++ bindings for GStreamer with a Qt-style API,
plus some helper classes for integrating GStreamer better in Qt
applications.

This package contains files for developing applications using QtGstreamer.

%files -n %{devname}
%{_libdir}/libQtGLib-%{glibapi}.so
%{_libdir}/libQtGStreamer-%{api}.so
%{_libdir}/libQtGStreamerUi-%{api}.so
%{_libdir}/libQtGStreamerUtils-%{api}.so
%{_libdir}/pkgconfig/QtGLib-2.0.pc
%{_libdir}/pkgconfig/QtGStreamer-1.0.pc
%{_libdir}/pkgconfig/QtGStreamerUi-1.0.pc
%{_libdir}/pkgconfig/QtGStreamerUtils-1.0.pc
%{_libdir}/cmake/QtGStreamer/*.cmake
%{_includedir}/QtGStreamer

#----------------------------------------------------------------------------

%package -n qt5-gstreamer
Summary:	C++ bindings for GStreamer with a Qt-style API
Group:		System/Libraries

%description -n qt5-gstreamer
QtGStreamer provides C++ bindings for GStreamer with a Qt-style API,
plus some helper classes for integrating GStreamer better in Qt 5
applications.

%files -n qt5-gstreamer
%{_libdir}/gstreamer-%{api}/libgstqt5videosink.so
#{_qt5_importdir}/QtGStreamer/
%{_qt5_libdir}/qt5/qml/QtGStreamer/

#----------------------------------------------------------------------------

%define libqt5glib %mklibname Qt5GLib %{glibapi} %{major}

%package -n %{libqt5glib}
Summary:	C++/Qt bindings for parts of the GLib and GObject APIs
Group:		System/Libraries

%description -n %{libqt5glib}
Library providing C++/Qt bindings for parts of the GLib and GObject
APIs, a base on which QtGStreamer is built.

%files -n %{libqt5glib}
%{_libdir}/libQt5GLib-%{glibapi}.so.%{major}
%{_libdir}/libQt5GLib-%{glibapi}.so.%{version}

#----------------------------------------------------------------------------

%define libqt5gstreamer %mklibname Qt5GStreamer %{api} %{major}

%package -n %{libqt5gstreamer}
Summary:	C++/Qt bindings for GStreamer
Group:		System/Libraries

%description -n %{libqt5gstreamer}
Library providing C++/Qt bindings for GStreamer

%files -n %{libqt5gstreamer}
%{_libdir}/libQt5GStreamer-%{api}.so.%{major}
%{_libdir}/libQt5GStreamer-%{api}.so.%{version}

#----------------------------------------------------------------------------

%define libqt5gstreamerquick %mklibname Qt5GStreamerQuick %{api} %{major}

%package -n %{libqt5gstreamerquick}
Summary:	C++/Qt bindings for GStreamer
Group:		System/Libraries

%description -n %{libqt5gstreamerquick}
Library providing C++/Qt bindings for GStreamer

%files -n %{libqt5gstreamerquick}
%{_libdir}/libQt5GStreamerQuick-%{api}.so.%{major}
%{_libdir}/libQt5GStreamerQuick-%{api}.so.%{version}

#----------------------------------------------------------------------------

%define libqt5gstreamerui %mklibname Qt5GStreamerUi %{api} %{major}

%package -n %{libqt5gstreamerui}
Summary:	Library providing integration with QtGui
Group:		System/Libraries

%description -n %{libqt5gstreamerui}
Library providing integration with QtGui.

%files -n %{libqt5gstreamerui}
%{_libdir}/libQt5GStreamerUi-%{api}.so.%{major}
%{_libdir}/libQt5GStreamerUi-%{api}.so.%{version}

#----------------------------------------------------------------------------

%define libqt5gstreamerutils %mklibname Qt5GStreamerUtils %{api} %{major}

%package -n %{libqt5gstreamerutils}
Summary:	Library providing some high level utility classes
Group:		System/Libraries

%description -n %{libqt5gstreamerutils}
Library providing some high level utility classes.

%files -n %{libqt5gstreamerutils}
%{_libdir}/libQt5GStreamerUtils-%{api}.so.%{major}
%{_libdir}/libQt5GStreamerUtils-%{api}.so.%{version}

#----------------------------------------------------------------------------

%define devname5 %mklibname qt5-gstreamer -d

%package -n %{devname5}
Summary:	Development files for Qt5Gstreamer
Group:		Development/KDE and Qt
Requires:	%{libqt5glib} = %{EVRD}
Requires:	%{libqt5gstreamer} = %{EVRD}
Requires:	%{libqt5gstreamerquick} = %{EVRD}
Requires:	%{libqt5gstreamerui} = %{EVRD}
Requires:	%{libqt5gstreamerutils} = %{EVRD}
Provides:	qt5-gstreamer-devel = %{EVRD}

%description -n %{devname5}
Qt5GStreamer provides C++ bindings for GStreamer with a Qt-style API,
plus some helper classes for integrating GStreamer better in Qt
applications.

This package contains files for developing applications using Qt5Gstreamer.

%files -n %{devname5}
%{_libdir}/libQt5GLib-%{glibapi}.so
%{_libdir}/libQt5GStreamer-%{api}.so
%{_libdir}/libQt5GStreamerQuick-%{api}.so
%{_libdir}/libQt5GStreamerUi-%{api}.so
%{_libdir}/libQt5GStreamerUtils-%{api}.so
%{_libdir}/pkgconfig/Qt5GLib-2.0.pc
%{_libdir}/pkgconfig/Qt5GStreamer-1.0.pc
%{_libdir}/pkgconfig/Qt5GStreamerQuick-1.0.pc
%{_libdir}/pkgconfig/Qt5GStreamerUi-1.0.pc
%{_libdir}/pkgconfig/Qt5GStreamerUtils-1.0.pc
%{_libdir}/cmake/Qt5GStreamer/*.cmake
%{_includedir}/Qt5GStreamer

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch20 -p1
%patch21 -p0

mkdir Qt4
mv `ls -1 |grep -v Qt4` Qt4
cp -a Qt4 Qt5

%build
pushd Qt4
%cmake_qt4 \
	-DQT_VERSION=4 \
	-DQTGSTREAMER_TESTS=OFF \
	-DLIB_INSTALL_DIR=%{_libdir}
%make
popd

pushd Qt5
%cmake_qt5 \
	-DQT_VERSION=5 \
	-DQTGSTREAMER_TESTS=OFF \
	-DLIB_INSTALL_DIR=%{_libdir}
%make
popd

%install
%makeinstall_std -C Qt4/build

%makeinstall_std -C Qt5/build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16893 |21mr|qtkeychain-qt-0.13.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without qt5
%bcond_with qt6

%define	oname qtkeychain

%define	major 1
%define	libname %mklibname qt5keychain %{major}
%define	devname %mklibname qt5keychain -d
%define	libqt6name %mklibname qt6keychain %{major}
%define	devqt6name %mklibname qt6keychain -d

Summary:	Platform-independent Qt API for storing passwords securely
Name:		qtkeychain-qt
Version:	0.13.2
Release:	4
License:	LGPLv2+
Group:		Development/KDE and Qt
Url:		https://github.com/frankosterfeld/qtkeychain
Source0:	https://github.com/frankosterfeld/qtkeychain/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(libsecret-1)
%if %{with qt5}
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
%endif
%if %{with qt6}
BuildRequires:	qmake-qt6
BuildRequires:	qt6-cmake
BuildRequires:	pkgconfig(Qt6Core)
BuildRequires:	pkgconfig(Qt6DBus)
BuildRequires:	qt6-linguist-tools
%endif

%description
Platform-independent Qt API for storing passwords securely.

#----------------------------------------------------------------------------

%package common
Summary:	Common files for %{name} (translations etc)
Group:		System/Libraries
Conflicts:	qtkeychain-qt5-common < 0.13.2-3
Obsoletes:	qtkeychain-qt5-common < 0.13.2-3

%description common
Common files for %{name} (translations etc).

%files common -f %{oname}.lang
%doc COPYING

#----------------------------------------------------------------------------
%if %{with qt5}

%package -n %{libname}
Summary:	Platform-independent Qt API for storing passwords securely
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libname}
Platform-independent Qt API for storing passwords securely.

%files -n %{libname}
%doc COPYING
%{_libdir}/libqt5keychain.so.%{major}
%{_libdir}/libqt5keychain.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development tools for programs which will use the %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	qtkeychain-qt5-devel = %{EVRD}

%description -n %{devname}
This package contains the header files and .so libraries for developing
%{name}.

%files -n %{devname}
%doc ChangeLog COPYING ReadMe.md
%{_includedir}/qt5keychain
%{_libdir}/libqt5keychain.so
%{_libdir}/cmake/Qt5Keychain
%{_libdir}/qt5/mkspecs/modules/qt_Qt5Keychain.pri
%endif
#----------------------------------------------------------------------------

%if %{with qt6}

%package -n %{libqt6name}
Summary:	Platform-independent Qt API for storing passwords securely
Group:		System/Libraries
Requires:	%{name}-common

%description -n %{libqt6name}
Platform-independent Qt API for storing passwords securely.

%files -n %{libqt6name}
%doc COPYING
%{_libdir}/libqt6keychain.so.%{major}
%{_libdir}/libqt6keychain.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devqt6name}
Summary:	Development tools for programs which will use the %{name}
Group:		Development/C
Requires:	%{libqt6name} = %{EVRD}
Provides:	qtkeychain-qt6-devel = %{EVRD}

%description -n %{devqt6name}
This package contains the header files and .so libraries for developing
%{name}.

%files -n %{devqt6name}
%doc ChangeLog COPYING ReadMe.md
%{_includedir}/qt6keychain
%{_libdir}/libqt6keychain.so
%{_libdir}/cmake/Qt6Keychain
%{_libdir}/qt6/mkspecs/modules/qt_Qt6Keychain.pri
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%if %{with qt5}
export CMAKE_BUILD_DIR=build-qt5
%cmake_qt5 \
  -DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt5/mkspecs/modules
%make_build
cd ..
%endif

%if %{with qt6}
export CMAKE_BUILD_DIR=build-qt6
%cmake \
  -DECM_MKSPECS_INSTALL_DIR=%{_libdir}/qt6/mkspecs/modules \
  -DBUILD_WITH_QT6:BOOL=ON
%make_build
cd ..
%endif

%install
%makeinstall_std -C build

%if %{with qt6}
%make_install -C build-qt6
%endif

%find_lang %{oname} --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16894 |21mr|qt-list-styles-0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Helper applications to list available Qt4 and Qt5 styles
Name:		qt-list-styles
Version:	0.1
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
Source0:	https://abf.io/uxteam/%{name}/archive/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Helper applications to list available Qt4 and Qt5 styles.

%files
%{_bindir}/qt4-list-styles
%{_bindir}/qt5-list-styles

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%ifarch %{e2k}
export QMAKESPEC=linux-g++-lcc-native
%endif
%qmake_qt4
%make
mv qt-list-styles qt4-list-styles

make clean
%ifarch %{e2k}
unset QMAKESPEC
%endif
%qmake_qt5
%make
mv qt-list-styles qt5-list-styles

%install
mkdir -p %{buildroot}%{_bindir}
install -m 755 qt4-list-styles %{buildroot}%{_bindir}/
install -m 755 qt5-list-styles %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16895 |21mr|qtmpris-1.0.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _empty_manifest_terminate_build 0
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

%define major 1
%define libname %mklibname qtmpris %{major}
%define devname %mklibname qtmpris -d

Summary:	MPRIS (Media Player Remote Interfacing Specification) v.2 implementation for Qt and QML
Name:	qtmpris
Version:	1.0.6
Release:	3
Group:	System/Libraries
License:	LGPLv2.1
URL:	https://github.com/qtmpris/qtmpris
Source0:	https://github.com/sailfishos/qtmpris/archive/refs/tags/%{version}.tar.gz
Source1:	qtmpris.rpmlintrc
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
MPRIS (Media Player Remote Interfacing Specification) v.2 implementation for Qt and QML

#--------------------------------------------------------------------------

%package -n %{libname}
Summary:	MPRIS (Media Player Remote Interfacing Specification) v.2 implementation for Qt and QML
Group:	System/Libraries

%description -n %{libname}

%files -n %{libname}
%{_libdir}/*.so.%{major}*
%{_libdir}/qt5/qml/org/nemomobile/

#--------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:	Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/qt5/mkspecs/features/mpris-qt5.prf

#--------------------------------------------------------------------------

%prep
%autosetup -p1
qmake-qt5 mpris-qt.pro

%build
%make_build

%install
%make_install INSTALL_ROOT=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16896 |21mr|qt-mvvm-0.2.0-1.git59f808.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 59f8083e701168e79328f84cb18f55d66e88df2c
%define commit_short %(echo %{commit} | head -c6)

%define major 0.2
%define libname %mklibname mvvm %{major}
%define devname %mklibname mvvm -d

Name:		qt-mvvm
Version:	0.2.0
Release:	1.git%{commit_short}.2
Summary:	This model-view-viewmodel framework is intended for development of large Qt based applications written in C++
Group:		System/Libraries
License:	GPLv3+
Url:		https://github.com/gpospelov/qt-mvvm
# repack with git clone --recursive for thirdparty gtest source
Source0:	qt-mvvm-%{commit}.tar.gz
# test need XDG_RUNTIME_DIR, also drop examples
Patch0:		qt-mvvm-disable-tests.patch
Patch1:		qt-mvvm-headers.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	doxygen
# for test
#BuildRequires:	pkgconfig(Qt5Test)
#BuildRequires:	pkgconfig(Qt5WaylandClient)


%description
This model-view-viewmodel framework is intended for development of
large Qt based applications written in C++.
Main features of the framework are:
    Application model to store arbitrary data of GUI session.
    Serialization of application models to json.
    Undo/redo based on command pattern.
    View model to show parts of application model in Qt widgets. Depends on Qt.
    Scientific plotting based on qcustomplot.
    Automatic generation of widgets from model content.
    Property editors.
    Flexible layout of Qt's trees and tables.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	This model-view-viewmodel framework is intended for development of large Qt based applications written in C++
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/libmvvm_*.so.%{major}*

#-----------------------------------------------------------------
%package -n %{devname}
Summary:	Headers for libqt-mvvm framework
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
The qt-mvvm-devel package contains the header files needed to
develop programs that use set libqt-mvvm libraries.

%files -n %{devname}
%{_libdir}/cmake/mvvm/*
%{_libdir}/libmvvm_*.so
%{_includedir}/*

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%ifarch %{e2k}
export CXXFLAGS="%{optflags} -Wno-error=unused-function"
%endif
%cmake -DMVVM_DISCOVER_TESTS=OFF -DMVVM_ENABLE_FILESYSTEM=OFF -DMVVM_BUILD_EXAMPLES=OFF

# for build test
#export LD_LIBRARY_PATH=$(pwd)/lib

%make

%install
%makeinstall_std -C build


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16897 |21mr|qtsoap-2.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{e2k}
%define debug_package %{nil}
%endif
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	The Simple Object Access Protocol Qt-based client side library
Name:		qtsoap
Version:	2.7
Release:	6
License:	LGPLv2.1+ with exceptions or GPLv3+
Group:		System/Libraries
Url:		http://qt.nokia.com/products/appdev/add-on-products/catalog/4/Utilities/qtsoap/
Source0:	http://get.qt.nokia.com/qt/solutions/lgpl/qtsoap-%{version}_1-opensource.tar.gz
Patch0:		qtsoap-2.7_1-opensource-install-pub-headers.patch
BuildRequires:	qt4-devel

%description
The SOAP (Simple Object Access Protocol) library uses the XML standard
for describing how to exchange messages. Its primary usage is to invoke web
services and get responses from Qt-based applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The Simple Object Access Protocol Qt-based client side library
Group:		System/Libraries

%description -n %{libname}
The SOAP (Simple Object Access Protocol) library uses the XML standard
for describing how to exchange messages. Its primary usage is to invoke web
services and get responses from Qt-based applications.

%files -n %{libname}
%doc README.TXT LGPL_EXCEPTION.txt LICENSE.GPL3 LICENSE.LGPL
%{_libdir}/libqtsoap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc LGPL_EXCEPTION.txt LICENSE.GPL3 LICENSE.LGPL
%{_libdir}/libqtsoap.so
%{qt4include}/QtSoap/

#----------------------------------------------------------------------------

%prep
%setup -qn qtsoap-%{version}_1-opensource

# headers are not installed for shared library
%patch0 -p1 -b .install-pub-headers

sed -i 's:$$DESTDIR:%{_libdir}:g' buildlib/buildlib.pro

%build
# we want shared library
echo "SOLUTIONS_LIBRARY = yes" > config.pri

echo "QTSOAP_LIBNAME = \$\$qtLibraryTarget(qtsoap)" >> common.pri
echo "VERSION=%{version}" >> common.pri

%ifarch %{e2k}
export QMAKESPEC=linux-g++-lcc-native
%endif
qmake PREFIX=%{_prefix}
%make

%install
%makeinstall_std INSTALL_ROOT=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16898 |21mr|qtxdg-tools-3.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	CLI MIME tool for handling file associations
Name:		qtxdg-tools
Version:	3.12.0
Release:	1
License:	GPLv2+
Group:		Graphical desktop/LXQt
Url:		https://github.com/lxqt/qtxdg-tools
Source0:	https://github.com/lxqt/qtxdg-tools/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	lxqt-build-tools
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(Qt5Xdg)

%description
It contains a CLI MIME tool, qtxdg-mat, for handling file associations
and opening files with their default applications.

%files
%doc CHANGELOG README.md
%license LICENSE
%{_bindir}/qtxdg-mat

#----------------------------------------------------------------------------

%package devel
Summary:	Development cmake files for locating qtxdg-tools
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Development cmake files for locating qtxdg-tools.

%files devel
%{_datadir}/cmake/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16899 |21mr|quagga-1.2.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _disable_ld_no_undefined 1

# configure options
%define	with_snmp	0
%define	with_vtysh	1
%define	with_tcp_zebra	0
%define	with_vtysh	1
%define	with_pam	1
%define	with_ospfclient	0
%define	with_ospfapi	0
%define	with_irdp	1
%define	with_isisd	1
%define	with_multipath	64
# The below now give unrecognized option warnings
%define	with_ipv6	1
%define	with_ospf_te	0
%define	with_opaque_lsa	0

%define	quagga_user	quagga
%define	vty_group	quaggavt

# path defines
%define	zeb_src		%{_builddir}/%{name}-%{version}
%define	zeb_rh_src	%{zeb_src}/redhat
%define	zeb_docs	%{zeb_src}/doc

%define	major 0
%define	zebramajor 1
%define	libname	%mklibname %{name} %{major}
%define	libfpm %mklibname fpm %{major}
%define	libospf %mklibname ospf %{major}
%define	libzebra %mklibname zebra %{zebramajor}
%define	devname %mklibname %{name} -d

Summary:	Routing daemon
Name:		quagga
Version:	1.2.4
Release:	6
License:	GPLv2+
Group:		System/Servers
Url:		http://www.quagga.net
Source0:	http://download.savannah.gnu.org/releases/quagga/%{name}-%{version}.tar.gz
Source2:	quagga-tmpfiles.conf
Source3:	quagga-sysusers.conf
# CVE-2021-44038 not affected, we use non standard service files
Source10:	babeld.service
Source11:	ripngd.service
Source12:	ospf6d.service
Source13:	isisd.service
Source14:	ospfd.service
Source15:	ripd.service
Source16:	bgpd.service
Source17:	zebra.service
Source18:	watchquagga.service
Source100:	%{name}.rpmlintrc
Patch1:		DEBIAN-Add-correct-QUAGGA_VERSION-to-manpages.patch
Patch2:		DEBIAN-Fix-typo-in-dump-bgp-help-text.patch
Patch3:		DEBIAN-Patch-init-scripts-for-Debian.patch
Patch4:		DEBIAN-Remove-duplicated-footnote.patch
BuildRequires:	chrpath
BuildRequires:	gawk
BuildRequires:	systemd-units
BuildRequires:	texi2html
BuildRequires:	texinfo
BuildRequires:	texlive
BuildRequires:	texlive-latex.bin
BuildRequires:	pam-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libpcre2-posix)
%if %{with_snmp}
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(openssl)
Requires:	net-snmp-mibs
%endif
%if %{with_vtysh}
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
%endif

%description
Quagga is a free software that manages TCP/IP based routing
protocol. It takes multi-server and multi-thread approach to resolve
the current complexity of the Internet.
It supports BGP4, BGP4+, OSPFv2, OSPFv3, RIPv1, RIPv2, and RIPng.
It is intended to be used as a Route Server and a Route Reflector. It is
not a toolkit: it provides full routing power under a new architecture.
By design it has a process for each protocol.
Quagga is a fork of GNU Zebra.

%files
%doc */*.sample* AUTHORS COPYING doc/quagga.html doc/mpls
%doc ChangeLog NEWS README REPORTING-BUGS SERVICES TODO
#
%dir %attr(0751,%{quagga_user},%{quagga_user}) %{_sysconfdir}/quagga
%dir %attr(0750,%{quagga_user},%{quagga_user}) /var/log/quagga
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf
#
%attr(0640,%{quagga_user},%{vty_group}) %config(noreplace) %{_sysconfdir}/quagga/vtysh.conf*
#
%config(noreplace) %{_sysconfdir}/pam.d/quagga
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/*
%config(noreplace) %{_sysconfdir}/sysconfig/quagga
%config(noreplace) %{_sysconfdir}/quagga/bgpd.conf.sample*
%config(noreplace) %{_sysconfdir}/quagga/ospf6d.conf.sample*
%config(noreplace) %{_sysconfdir}/quagga/ospfd.conf.sample*
%config(noreplace) %{_sysconfdir}/quagga/pimd.conf.sample*
%config(noreplace) %{_sysconfdir}/quagga/ripd.conf.sample*
%config(noreplace) %{_sysconfdir}/quagga/ripngd.conf.sample*
%config(noreplace) %{_sysconfdir}/quagga/zebra.conf.sample*
#
%{_unitdir}/*.service
#
%{_sbindir}/bgpd
%{_sbindir}/nhrpd
%{_sbindir}/ospf6d
%if %{with_ospfclient}
%{_sbindir}/ospfclient
%endif
%{_sbindir}/ospfd
%{_sbindir}/pimd
%{_sbindir}/ripd
%{_sbindir}/ripngd
%{_sbindir}/watchquagga
%{_sbindir}/zebra
#{_sbindir}/babeld
#
%{_bindir}/bgp_btoa
%{_bindir}/test_igmpv3_join
#
%if %{with_vtysh}
%{_bindir}/vtysh
%attr(0644,root,root) %{_mandir}/man1/vtysh.1*
%endif
#
%if %{with_isisd}
%{_sbindir}/isisd
%attr(0644,root,root) %{_mandir}/man8/isisd.8*
%config(noreplace) %{_sysconfdir}/quagga/isisd.conf*
%endif
#
%attr(0644,root,root) %{_mandir}/man8/bgpd.8*
%attr(0644,root,root) %{_mandir}/man8/ospf6d.8*
%attr(0644,root,root) %{_mandir}/man8/ospfd.8*
%attr(0644,root,root) %{_mandir}/man8/nhrpd.8*
%attr(0644,root,root) %{_mandir}/man8/pimd.8*
%attr(0644,root,root) %{_mandir}/man8/ripd.8*
%attr(0644,root,root) %{_mandir}/man8/ripngd.8*
%attr(0644,root,root) %{_mandir}/man8/zebra.8*
%if %{with_ospfclient}
%attr(0644,root,root) %{_mandir}/man8/ospfclient.8*
%endif
%attr(0644,root,root) %{_mandir}/man8/watchquagga.8*
#
%{_infodir}/*info*

%pre
# https://nixtux.ru/1002
%{expand:
%(echo '%{sysusers_create_package %{name} %{SOURCE3}}' | \
sed -e 's,@quagga_user@,%{quagga_user},g' -e 's,@vty_group@,%{vty_group},g')
}

%post
%tmpfiles_create %{name}.conf
%systemd_post zebra.service
%systemd_post ripd.service
%if %{with_ipv6}
%systemd_post ospf6d.service
%systemd_post ripngd.service
%endif
%systemd_post ospfd.service
%systemd_post bgpd.service
%systemd_post watchquagga.service

# Create dummy files if they don't exist so basic functions can be used.
if [ ! -e %{_sysconfdir}/quagga/zebra.conf ]; then
	echo "hostname `hostname`" > %{_sysconfdir}/quagga/zebra.conf
	chown %{quagga_user}:%{quagga_user} %{_sysconfdir}/quagga/zebra.conf
	chmod 640 %{_sysconfdir}/quagga/zebra.conf
fi
if [ ! -e %{_sysconfdir}/quagga/vtysh.conf ]; then
	touch %{_sysconfdir}/quagga/vtysh.conf
	chmod 640 %{_sysconfdir}/quagga/vtysh.conf
	chown %{quagga_user}:%{vty_group} %{_sysconfdir}/quagga/vtysh.conf
fi

#----------------------------------------------------------------------------

%package contrib
Summary:	Tools for quagga
Group:		System/Servers

%description contrib
Contributed/3rd party tools which may be of use with quagga.

%files contrib
%doc tools

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Header and object files for quagga development
Group:		System/Libraries
Conflicts:	%{name} <= 0.99.24.1
Obsoletes:	%{name} <= 0.99.24.1
Requires:	%{libfpm} >= %{EVRD}
Requires:	%{libospf} >= %{EVRD}
Requires:	%{libzebra} >= %{EVRD}

%description -n %{libname}
This package provides a shared library for quagga.

%files -n %{libname}
%doc COPYING
%{_libdir}/libquagga_pb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfpm}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libfpm}
This package provides a shared library for quagga.

%files -n %{libfpm}
%doc COPYING
%{_libdir}/libfpm_pb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libospf}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libospf}
This package provides a shared library for quagga.

%files -n %{libospf}
%doc COPYING
%{_libdir}/libospf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libzebra}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libzebra}
This package provides a shared library for quagga.

%files -n %{libzebra}
%doc COPYING
%{_libdir}/libzebra.so.%{zebramajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header and object files for quagga development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libfpm} = %{EVRD}
Requires:	%{libospf} = %{EVRD}
Requires:	%{libzebra} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The quagga-devel package contains the header and object files necessary for
developing OSPF-API and quagga applications.

%files -n %{devname}
%doc COPYING
%{_libdir}/*.so
%{_includedir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1


%build
%serverbuild
autoreconf -vfi
# Unrecognized options: --enable-netlink --with-pcreposix --enable-ipv6
%configure \
	--disable-static \
	--with-pic \
	--with-pkg-extra-version="-rosa" \
	--sysconfdir=%{_sysconfdir}/quagga \
	--localstatedir=/run/quagga \
%if %{with_snmp}
	--enable-snmp \
%endif
%if %{with_multipath}
	--enable-multipath=%{with_multipath} \
%endif
%if %{with_tcp_zebra}
	--enable-tcp-zebra \
%endif
%if %{with_opaque_lsa}
	--enable-opaque-lsa \
%endif
%if %{with_ospf_te}
	--enable-ospf-te \
%endif
%if %{with_vtysh}
	--enable-vtysh \
%endif
%if %{with_ospfclient}
	--enable-ospfclient=yes \
%else
	--enable-ospfclient=no\
%endif
%if %{with_ospfapi}
	--enable-ospfapi=yes \
%else
	--enable-ospfapi=no \
%endif
%if %{with_irdp}
	--enable-irdp=yes \
%else
	--enable-irdp=no \
%endif
%if %{with_isisd}
	--enable-isisd \
%else
	--disable-isisd \
%endif
%if %{with_pam}
	--with-libpam \
%endif
	--enable-user=%{quagga_user} \
	--enable-group=%{quagga_user} \
	--enable-vty-group=%{vty_group} \
	--with-cflags="%{optflags}"

%make MAKEINFO="makeinfo --no-split"

pushd doc
	texi2html quagga.texi
popd


%install
# don't fiddle with the initscript!
export DONT_GPRINTIFY=1

install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/pam.d
install -d %{buildroot}/var/log/%{name}
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -d %{buildroot}%{_infodir}

%makeinstall_std

# Remove this file, as it is uninstalled and causes errors when building on RH9
rm -rf %{buildroot}/usr/share/info/dir

# Install systemd units
mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE16} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE17} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE14} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE15} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE18} %{buildroot}%{_unitdir}
%if %{with_ipv6}
install -m 644 %{SOURCE11} %{buildroot}%{_unitdir}
install -m 644 %{SOURCE12} %{buildroot}%{_unitdir}
%endif
%if %{with_isisd}
install -m 644 %{SOURCE13} %{buildroot}%{_unitdir}
%endif
mkdir -p %{buildroot}%{_sysusersdir}
cat %{SOURCE3} | sed -e 's,@quagga_user@,%{quagga_user},g' -e 's,@vty_group@,%{vty_group},g' \
	> %{buildroot}%{_sysusersdir}/%{name}.conf

# Install sysconfig and logrotate stuff
install -m644 %{zeb_rh_src}/quagga.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/quagga
install -m644 %{zeb_rh_src}/quagga.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/quagga

# Fix conditional pam config file
install -m644 %{zeb_rh_src}/quagga.pam %{buildroot}%{_sysconfdir}/pam.d/quagga

# Nuke rpath
chrpath -d %{buildroot}%{_bindir}/*
chrpath -d %{buildroot}%{_sbindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16900 |21mr|quartz-2.2.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Enterprise Job Scheduler for Java
Name:           quartz
Version:        2.2.1
Release:        11
Epoch:          0
License:        ASL 2.0
URL:            http://www.quartz-scheduler.org/
# svn export http://svn.terracotta.org/svn/quartz/tags/quartz-2.2.1
# tar caf quartz-2.2.1.tar.xz quartz-2.2.1
Source0:        %{name}-%{version}.tar.xz
Patch0:		CVE-2019-13990.patch

BuildRequires:  maven-local
BuildRequires:  maven-antrun-plugin
BuildRequires:  maven-checkstyle-plugin
BuildRequires:  maven-dependency-plugin
BuildRequires:  maven-enforcer-plugin
BuildRequires:  maven-release-plugin
BuildRequires:  maven-shade-plugin
BuildRequires:  maven-shared
BuildRequires:  rmic-maven-plugin
BuildRequires:  mvn(com.mchange:c3p0)
BuildRequires:  mvn(javax.mail:mail) >= 1.4.3
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
BuildRequires:  mvn(log4j:log4j:1.2.17)
BuildRequires:  mvn(org.apache.geronimo.specs:specs:pom:)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-commonj_1.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-ejb_2.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires:  mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-log4j12)
# test deps
BuildRequires:  mvn(asm:asm)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.derby:derby)
BuildRequires:  mvn(org.hamcrest:hamcrest-library) >= 1.2

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Quartz is a job scheduling system that can be integrated with, or used 
along side virtually any J2EE or J2SE application. Quartz can be used 
to create simple or complex schedules for executing tens, hundreds, or 
even tens-of-thousands of jobs; jobs whose tasks are defined as standard 
Java components or EJBs. 

%package javadoc
Summary:        API docs for %{name}

%description javadoc
This package contains the API Documentation for %{name}.

%prep
%autosetup -p1
# Unwated modules
%pom_disable_module quartz-jboss
%pom_disable_module quartz-oracle
%pom_disable_module quartz-weblogic

# Unavailable deps
# org.terracotta.toolkit:terracotta-toolkit-api,terracotta-toolkit-api-internal:2.1.0
%pom_disable_module terracotta

%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
# Unwated plugin disable source JARs
%pom_remove_plugin :maven-source-plugin

# Fix c3p0 groupId
sed -i -e 's/groupId>c3p0</groupId>com.mchange</' **/pom.xml pom.xml
# Fix junit artifactId
sed -i -e 's/artifactId>junit-dep</artifactId>junit</' **/pom.xml pom.xml

# Use available javax apis
%pom_remove_dep org.apache.openejb:javaee-api quartz-core
%pom_add_dep org.apache.geronimo.specs:geronimo-jta_1.1_spec::provided quartz-core
%pom_add_dep org.apache.tomcat:tomcat-servlet-api::provided quartz-core
%pom_remove_dep org.apache.openejb:javaee-api quartz-jobs
%pom_add_dep org.apache.geronimo.specs:geronimo-ejb_2.1_spec::provided quartz-jobs
%pom_add_dep org.apache.geronimo.specs:geronimo-jms_1.1_spec::provided quartz-jobs 
%pom_remove_dep org.apache.openejb:javaee-api quartz-plugins
%pom_add_dep org.apache.geronimo.specs:geronimo-jta_1.1_spec::provided quartz-plugins
# Disable javadoc jar
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin' ]/pom:executions" quartz-jobs

# Fix log4j version
sed -i -e 's/<log4j.version>1.2.16/<log4j.version>1.2.17/' pom.xml
# This artefact bundled all quartz modules
%pom_disable_module quartz
%if 0
# Unavailable plugins
# org.terracotta:maven-forge-plugin:1.0.7
%pom_remove_plugin org.terracotta:maven-forge-plugin quartz
%pom_remove_plugin :gmaven-plugin quartz
# Disable javadoc jar
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin' ]/pom:executions" quartz
# Unavailable deps
%pom_remove_dep org.quartz-scheduler.internal:quartz-jboss quartz
%pom_remove_dep org.quartz-scheduler.internal:quartz-oracle quartz
%pom_remove_dep org.quartz-scheduler.internal:quartz-terracotta-bootstrap quartz
%pom_remove_dep org.quartz-scheduler.internal:quartz-weblogic quartz
# Remove unavailable libraries references, ( TODO provide a OSGi MANIFEST.MF file ).
sed -i '/org.jboss/d' quartz/pom.xml
sed -i '/org.terracotta.toolkit/d' quartz/pom.xml
sed -i '/weblogic.jdbc/d' quartz/pom.xml
sed -i '/oracle.sql/d' quartz/pom.xml
%endif

cp -p distribution/src/main/assembly/root/licenses/LICENSE.txt .
sed -i 's/\r//' LICENSE.txt

%mvn_file :%{name}-core %{name}/%{name}-core %{name}/%{name} %{name}
%mvn_alias :%{name}-core org.quartz-scheduler:%{name}

%build

# skip tests for now due to requirement on hamcrest 1.2
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16901 |21mr|quazip-0.9.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}	

%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Qt/C++ wrapper for the minizip library
Name:		quazip
Version:	0.9.1
Release:	4
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/stachenov/quazip
Source0:	https://github.com/stachenov/quazip/archive/v%{version}.tar.gz
# https://github.com/stachenov/quazip/issues/73
Patch0:         0001-Make-code-compilable-with-Qt-5.15-some-APIs-gets-dep.patch
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(Qt5Core) >= 5.5.1
Requires:	pkgconfig(zlib)

%description
QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package that
can be used to access ZIP archives. It uses Trolltech's Qt toolkit.
It allows you to access files inside ZIP archives using QIODevice API, and -
yes! - that means that you can also use QTextStream, QDataStream or whatever
you would like to use on your zipped files.
It provides complete abstraction of the ZIP/UNZIP API, for both reading from
and writing to ZIP archives.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt/C++++ wrapper for the minizip library
%rename		quazip

%description -n %{libname}
QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package that
can be used to access ZIP archives. It uses Trolltech's Qt toolkit.
It allows you to access files inside ZIP archives using QIODevice API, and -
yes! - that means that you can also use QTextStream, QDataStream or whatever
you would like to use on your zipped files.
It provides complete abstraction of the ZIP/UNZIP API, for both reading from
and writing to ZIP archives.

%files -n %{libname}
%doc COPYING
%{_libdir}/libquazip.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(zlib)
Provides:	quazip-devel = %{EVRD}
Obsoletes:	quazip-devel <= 0.4.3-1
%rename		%{_lib}quazip1-devel

%description -n %{devname}
This package contains libraries, header files and documentation for developing
applications that use %{libname}.

%files -n %{devname}
%doc COPYING NEWS.txt README.md
%doc doc/html
%{_includedir}/%{name}
%{_includedir}/%{name}5
%{_libdir}/libquazip.so
%{_libdir}/libquazip5.so
%{_libdir}/pkgconfig/quazip.pc
%{_libdir}/cmake/%{name}/*.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Fixes library paths
sed -i 's|PREFIX/lib|PREFIX/%{_lib}|g' %{name}/%{name}.pro
sed -i 's|lib/pkgconfig|%{_lib}/pkgconfig|g' %{name}/%{name}.pro

# Removing test programs
sed -i 's\qztest\\g' %{name}.pro


%build
%qmake_qt5 PREFIX=%{_prefix} LIBS+=-lz
%make

# Build docs
doxygen Doxyfile

%install
%make_install INSTALL_ROOT=%{buildroot}

# Fix wrong library path in pkgconfig file
sed -i 's|\${prefix}/lib|\${prefix}/%{_lib}/|g' %{buildroot}%{_libdir}/pkgconfig/quazip.pc

# Install the FindQuaZip file for cmake
install -d %{buildroot}%{_libdir}/cmake/%{name}/
install -m 0644 QuaZipConfig.cmake %{buildroot}%{_libdir}/cmake/%{name}/
# some programs (e.g., texstudio) look for /usr/include/quazip5
pushd %{buildroot}%{_includedir}
ln -s %{name} %{name}5
popd
pushd %{buildroot}%{_libdir}
ln -s libquazip.so libquazip5.so 
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16902 |21mr|quazip1.x-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}	

%define	major 1
%define	libname %mklibname quazip1-qt5 %{major}
%define	devname %mklibname quazip1-qt5 -d

Summary:	Qt/C++ wrapper for the minizip library
Name:		quazip1.x
Version:	1.3
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://github.com/stachenov/quazip
Source0:	https://github.com/stachenov/quazip/archive/v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(libzip)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(Qt5Core) >= 5.5.1
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
Requires:	pkgconfig(zlib)

%description
QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package that
can be used to access ZIP archives. It uses Trolltech's Qt toolkit.
It allows you to access files inside ZIP archives using QIODevice API, and -
yes! - that means that you can also use QTextStream, QDataStream or whatever
you would like to use on your zipped files.
It provides complete abstraction of the ZIP/UNZIP API, for both reading from
and writing to ZIP archives.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Qt/C++++ wrapper for the minizip library
Group:		System/Libraries
%rename		quazip1-qt5

%description -n %{libname}
QuaZIP is a simple C++ wrapper over Gilles Vollant's ZIP/UNZIP package that
can be used to access ZIP archives. It uses Trolltech's Qt toolkit.
It allows you to access files inside ZIP archives using QIODevice API, and -
yes! - that means that you can also use QTextStream, QDataStream or whatever
you would like to use on your zipped files.
It provides complete abstraction of the ZIP/UNZIP API, for both reading from
and writing to ZIP archives.

%files -n %{libname}
%doc COPYING
%{_libdir}/libquazip1-qt5.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(zlib)
Provides:	quazip1-devel = %{EVRD}
Provides:	quazip1-qt5-devel = %{EVRD}

%description -n %{devname}
This package contains libraries, header files and documentation for developing
applications that use %{libname}.

%files -n %{devname}
%doc COPYING NEWS.txt README.md
%{_includedir}/QuaZip-Qt5-%{version}
%{_libdir}/libquazip1-qt5.so
%{_libdir}/pkgconfig/quazip1-qt5.pc
%{_libdir}/cmake/QuaZip-Qt5-%{version}/*.cmake

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n quazip-%{version}

%build
%cmake
%make

%install
%make_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16903 |21mr|querydsl3-3.7.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _version %( echo %{version} | tr . _ )

# lucene:4.2.1
%bcond_with lucene4
# https://bugzilla.redhat.com/show_bug.cgi?id=1213455
%bcond_with postgis

Name:          querydsl3
Version:       3.7.2
Release:       9
Summary:       Type safe queries for Java
License:       ASL 2.0
URL:           http://www.querydsl.com
Source0:       https://github.com/querydsl/querydsl/archive/QUERYDSL_%{_version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.infradna.tool:bridge-method-annotation)
BuildRequires: mvn(com.infradna.tool:bridge-method-injector)
BuildRequires: mvn(com.mysema.codegen:codegen)
BuildRequires: mvn(com.mysema.commons:mysema-commons-lang)
BuildRequires: mvn(com.thoughtworks.proxytoys:proxytoys)
BuildRequires: mvn(com.vividsolutions:jts:1.14)
BuildRequires: mvn(jakarta-regexp:jakarta-regexp)
BuildRequires: mvn(javassist:javassist)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.jdo:jdo-api)
BuildRequires: mvn(javax.jdo:jdo2-api)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(com.github.stephenc.jcip:jcip-annotations)
# lucene3 :3.6.2
BuildRequires: mvn(org.apache.lucene:lucene-core:3)
BuildRequires: mvn(org.apache.lucene:lucene-queries:3)
%if %{with lucene4}
BuildRequires: mvn(org.apache.lucene:lucene-analyzers-common:4.2.1)
BuildRequires: mvn(org.apache.lucene:lucene-core:4.2.1)
BuildRequires: mvn(org.apache.lucene:lucene-queries:4.2.1)
BuildRequires: mvn(org.apache.lucene:lucene-queryparser:4.2.1)
%endif
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.eclipse.persistence:eclipselink)
BuildRequires: mvn(org.geolatte:geolatte-geom:0.14)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.hibernate:hibernate-core:4)
BuildRequires: mvn(org.hibernate:hibernate-entitymanager:4)
BuildRequires: mvn(org.hibernate:hibernate-search-orm)
BuildRequires: mvn(org.hibernate:hibernate-validator)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.jenkins-ci:annotation-indexer)
BuildRequires: mvn(org.mongodb:mongo-java-driver:2)
BuildRequires: mvn(org.mongodb.morphia:morphia)
%if %{with postgis}
BuildRequires: mvn(org.postgis:postgis-jdbc)
%endif
BuildRequires: mvn(org.reflections:reflections)
BuildRequires: mvn(org.scala-lang:scala-library)
BuildRequires: mvn(org.scala-lang:scala-compiler)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
BuildRequires: mvn(org.springframework:spring-jdbc)

# Test deps
%if 0
BuildRequires: mvn(com.h2database:h2)
# https://bugzilla.redhat.com/show_bug.cgi?id=1217563
BuildRequires: mvn(com.jolbox:bonecp:0.7.1.RELEASE)
BuildRequires: mvn(com.mysema.maven:apt-maven-plugin)
BuildRequires: mvn(com.oracle:ojdbc6)
BuildRequires: mvn(cubrid:cubrid-jdbc:9.3.1.0005)
BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(mysql:mysql-connector-java)
BuildRequires: mvn(net.sourceforge.jtds:jtds)
BuildRequires: mvn(org.apache.derby:derby)
# https://gil.fedorapeople.org/batoo-jpa-2.0.1.2-1.fc20.src.rpm
BuildRequires: mvn(org.batoo.jpa:batoo-jpa)
BuildRequires: mvn(org.datanucleus:datanucleus-api-jdo)
BuildRequires: mvn(org.datanucleus:datanucleus-core)
BuildRequires: mvn(org.datanucleus:datanucleus-maven-plugin)
BuildRequires: mvn(org.datanucleus:datanucleus-rdbms)
BuildRequires: mvn(org.easymock:easymock)
BuildRequires: mvn(org.eclipse.jdt.core.compiler:ecj)
# https://gil.fedorapeople.org/jaybird-2.2.7-1.fc20.src.rpm
BuildRequires: mvn(org.firebirdsql.jdbc:jaybird-jdk16)
BuildRequires: mvn(org.hibernate:hibernate-annotations)
BuildRequires: mvn(org.hibernate:hibernate-envers)
BuildRequires: mvn(org.hsqldb:hsqldb)
# https://gil.fedorapeople.org/joda-money-0.10.0-1.fc20.src.rpm
BuildRequires: mvn(org.joda:joda-money)
# https://gil.fedorapeople.org/geodb-0.8-1.fc20.src.rpm
BuildRequires: mvn(org.opengeo:geodb)
# https://bugzilla.redhat.com/show_bug.cgi?id=1217395
BuildRequires: mvn(org.postgresql:postgresql:9.3-1101-jdbc41)
BuildRequires: mvn(org.xerial:sqlite-jdbc)
%endif

Obsoletes:     %{name}-scala <= %{version}-4
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Querydsl is a framework which enables the
construction of type safe SQL-like queries
for multiple backends including JPA, JDO and
SQL in Java.

Instead of writing queries as inline strings
or externalizing them into XML files they
are constructed via a fluent API.

%package apt
Summary:       Querydsl - APT support

%description apt
Annotation Processing Tool based
Source code generation for Querydsl.

%package codegen
Summary:       Querydsl - Codegen module

%description codegen
Codegen module for Querydsl.

%package collections
Summary:       Querydsl - Collections support

%description collections
Collections support for Querydsl.

%package hibernate-search
Summary:       Querydsl - Hibernate Search support

%description hibernate-search
Hibernate Search support for Querydsl.

%package jdo
Summary:       Querydsl - JDO support

%description jdo
Java Data Objects support for Querydsl.

%package jpa
Summary:       Querydsl - JPA support

%description jpa
Java Persistence API support for Querydsl.

%package jpa-codegen
Summary:       Querydsl - JPA Codegen support

%description jpa-codegen
Java Persistence API Codegen support for Querydsl.

%package lucene3
Summary:       Querydsl - Lucene 3 support

%description lucene3
Lucene 3 support for Querydsl.

%package maven-plugin
Summary:       Querydsl - Maven plugin

%description maven-plugin
Querydsl Maven plugin.

%package mongodb
Summary:       Querydsl - Mongodb support

%description mongodb
Mongodb support for Querydsl.

%package root
Summary:       Querydsl - Parent POM

%description root
Parent POM project for Querydsl modules.

%package scala
Summary:       Querydsl - Scala support

%description scala
Querydsl - Scala support.

%package spatial
Summary:       Querydsl - Spatial module

%description spatial
Core module for Querydsl.

%package sql
Summary:       Querydsl - SQL support

%description sql
SQL support for Querydsl.

%package sql-codegen
Summary:       Querydsl - SQL Codegen support

%description sql-codegen
SQL Codegen support for Querydsl.

%package sql-spring
Summary:       Querydsl - SQL Spring support

%description sql-spring
SQL Spring Framework support for Querydsl.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n querydsl-QUERYDSL_%{_version}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%pom_remove_parent
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin -r :maven-pmd-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r org.eluder.coveralls:coveralls-maven-plugin
%pom_remove_plugin -r :jacoco-maven-plugin
%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration/pom:outputDirectory"
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration/pom:reportOutputDirectory"
# Use org.semver:enforcer-rule
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-source-plugin querydsl-sql-codegen
%pom_remove_plugin com.mysema.maven:apt-maven-plugin

%if %{without lucene4}
%pom_disable_module querydsl-lucene4
%endif

%pom_remove_plugin com.mysema.maven:apt-maven-plugin querydsl-lucene4

%pom_remove_plugin :maven-source-plugin querydsl-core
%pom_xpath_set "pom:dependency[pom:artifactId='annotation-indexer']/pom:groupId" org.jenkins-ci querydsl-core

# understate version jts
%pom_change_dep com.vividsolutions:jts com.vividsolutions:jts:1.14 querydsl-sql

%pom_remove_plugin :maven-source-plugin querydsl-codegen
%pom_remove_plugin :maven-source-plugin querydsl-spatial
%pom_remove_plugin com.mysema.maven:apt-maven-plugin querydsl-spatial

%pom_remove_plugin com.mysema.maven:apt-maven-plugin querydsl-apt
%pom_remove_plugin :maven-assembly-plugin querydsl-apt
# org.springframework.roo:org.springframework.roo.annotations:1.2.3.RELEASE
# https://gil.fedorapeople.org/springframework-roo-1.2.5-1.fc20.src.rpm
%pom_remove_dep org.springframework.roo:org.springframework.roo.annotations querydsl-apt
rm -r querydsl-apt/src/apt/roo
rm -r querydsl-apt/src/main/java/com/mysema/query/apt/roo

%pom_remove_plugin com.mysema.maven:apt-maven-plugin querydsl-collections

%pom_remove_plugin :maven-source-plugin querydsl-sql
%pom_xpath_set "pom:dependency[pom:artifactId='annotation-indexer']/pom:groupId" org.jenkins-ci querydsl-sql
%pom_change_dep :org.apache.servicemix.bundles.javax-inject javax.inject:javax.inject:1 querydsl-sql

%pom_remove_dep com.oracle:ojdbc6 querydsl-sql
%pom_remove_dep oracle:sdoapi querydsl-sql
rm -r querydsl-sql/src/main/java/com/mysema/query/sql/spatial/JGeometryConverter.java \
 querydsl-sql/src/main/java/com/mysema/query/sql/spatial/JGeometryType.java \
 querydsl-sql/src/main/java/com/mysema/query/sql/spatial/OracleSpatialTemplates.java

%if %{without postgis}
%pom_remove_dep org.postgis:postgis-jdbc querydsl-sql
rm -r querydsl-sql/src/main/java/com/mysema/query/sql/spatial/PGgeometryConverter.java \
 querydsl-sql/src/main/java/com/mysema/query/sql/spatial/PGgeometryType.java \
 querydsl-sql/src/main/java/com/mysema/query/sql/spatial/PostGISTemplates.java
%endif

%pom_xpath_set "pom:properties/pom:mvn.version" 3.1.1 querydsl-maven-plugin
%pom_change_dep :maven-project :maven-core:'${mvn.version}' querydsl-maven-plugin

%pom_remove_plugin :maven-source-plugin querydsl-jpa
%pom_remove_plugin :maven-assembly-plugin querydsl-jpa
%pom_remove_plugin com.mysema.maven:apt-maven-plugin querydsl-jpa

%pom_remove_plugin com.mysema.maven:apt-maven-plugin querydsl-jdo
%pom_remove_plugin :maven-assembly-plugin querydsl-jdo
%pom_remove_plugin org.datanucleus:datanucleus-maven-plugin querydsl-jdo

%pom_remove_plugin com.mysema.maven:apt-maven-plugin querydsl-lucene3
%pom_xpath_set "pom:properties/pom:lucene.version" 3 querydsl-lucene3
%pom_xpath_set "pom:properties/pom:lucene.version" 3 querydsl-hibernate-search

%pom_change_dep :hibernate-search :hibernate-search-orm querydsl-hibernate-search

%pom_remove_plugin com.mysema.maven:apt-maven-plugin querydsl-mongodb
%pom_remove_plugin :maven-assembly-plugin querydsl-mongodb

# A fatal error has been detected by the Java Runtime Environment:
#
#  Internal Error (assembler_aarch32.hpp:215), pid=9324, tid=0xb50d8470
#  guarantee(val < (1U << nbits)) failed: Field too big for insn
#
# JRE version: OpenJDK Runtime Environment (8.0_102) (build 1.8.0_102-160812)
# Java VM: OpenJDK Client VM (25.102-b160812 mixed mode linux-aarch32 )
# Failed to write core dump. Core dumps have been disabled. To enable core dumping, try "ulimit -c unlimited" before starting Java again
%if 0
%pom_remove_plugin net.alchim31.maven:scala-maven-plugin querydsl-scala
%pom_add_plugin org.apache.maven.plugins:maven-antrun-plugin:1.7 querydsl-scala '
<executions>
  <execution>
    <id>compile</id>
    <phase>process-sources</phase>
    <configuration>
      <tasks>
        <property name="build.compiler" value="extJavac"/>
        <taskdef resource="scala/tools/ant/antlib.xml" classpathref="maven.compile.classpath"/>
        <mkdir dir="target/classes"/>
        <scalac srcdir="src/main" destdir="target/classes" classpathref="maven.compile.classpath" encoding="UTF-8">
          <include name="**/*.*"/>
        </scalac>
      </tasks>
    </configuration>
      <goals>
        <goal>run</goal>
      </goals>
  </execution>
</executions>
<dependencies>
  <dependency>
      <groupId>org.scala-lang</groupId>
      <artifactId>scala-compiler</artifactId>
      <version>${scala.full.version}</version>
  </dependency>
</dependencies>'
%endif

%pom_disable_module querydsl-scala

%pom_xpath_set "pom:properties/pom:mongodb.version" 2 querydsl-mongodb
%pom_xpath_set -r "pom:properties/pom:hibernate.version" 4 querydsl-apt querydsl-hibernate-search querydsl-jpa querydsl-jpa-codegen querydsl-examples/querydsl-example-jpa-guice

# fix build failure. 'useDefaultManifestFile' has been removed from the maven-jar-plugin >= 3.0.0
%pom_remove_plugin :maven-jar-plugin

%mvn_package :querydsl-jdo::apt: querydsl-jdo
%mvn_package :querydsl-jpa::apt: querydsl-jpa

%build

# Unavailable test deps
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-querydsl-core
%doc README.md
%license LICENSE.txt

%files apt -f .mfiles-querydsl-apt
%files codegen -f .mfiles-querydsl-codegen

%files collections -f .mfiles-querydsl-collections
%doc querydsl-collections/README.md

%files hibernate-search -f .mfiles-querydsl-hibernate-search

%files jdo -f .mfiles-querydsl-jdo
%doc querydsl-jdo/README.md

%files jpa -f .mfiles-querydsl-jpa
%doc querydsl-jpa/README.md

%files jpa-codegen -f .mfiles-querydsl-jpa-codegen

%files lucene3 -f .mfiles-querydsl-lucene3
%doc querydsl-lucene3/README.md

%files maven-plugin -f .mfiles-querydsl-maven-plugin

%files mongodb -f .mfiles-querydsl-mongodb
%doc querydsl-mongodb/README.md

%files root -f .mfiles-querydsl-root
%license LICENSE.txt

%if 0
%files scala -f .mfiles-querydsl-scala
%endif

%files spatial -f .mfiles-querydsl-spatial

%files sql -f .mfiles-querydsl-sql
%doc querydsl-sql/README.md

%files sql-codegen -f .mfiles-querydsl-sql-codegen
%files sql-spring -f .mfiles-querydsl-sql-spring

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16904 |21mr|quota-4.09-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	System administration tools for monitoring users' disk usage
Name:		quota
Version:	4.09
Release:	1
License:	BSD and GPLv2+
Group:		System/Configuration/Other
Url:		http://sourceforge.net/projects/linuxquota/
Source0:	http://prdownloads.sourceforge.net/linuxquota/%{name}-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Source2:	quota_nld.service
Source3:	quota_nld.sysconfig
Patch0:		quota-4.03-Validate-upper-bound-of-RPC-port.patch
Patch1:		quota-4.06-warnquota-configuration-tunes.patch
BuildRequires:	gettext
BuildRequires:	openldap-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libtirpc)
Requires:	e2fsprogs
Requires:	initscripts
Requires:	tcp_wrappers

%description
The quota package contains system administration tools for monitoring and
limiting users' and or groups' disk usage, per filesystem.

Install quota if you want to monitor and/or limit user/group disk usage.

%files -f %{name}.lang
%doc Changelog README.ldap-support README.mailserver ldap-scripts
%{_bindir}/*
%{_sbindir}/*
%exclude %{_sbindir}/quota_nld
%exclude %{_sbindir}/warnquota
%{_mandir}/man1/*
%{_mandir}/man8/*
%exclude %{_mandir}/man8/quota_nld.8*
%exclude %{_mandir}/man8/warnquota.8*

#----------------------------------------------------------------------------

%package nld
Summary:	quota_nld daemon
Group:		System/Configuration/Other
Conflicts:	quota < 4.01-7

%description nld
Daemon that listens on netlink socket and processes received quota warnings.
Note, that you have to enable the kernel support for sending quota messages
over netlink (in Filesystems->Quota menu). The daemon supports forwarding
warning messages to the system D-Bus (so that desktop manager can display
a dialog) and writing them to the terminal user has last accessed.

%files nld
%config(noreplace) %{_sysconfdir}/sysconfig/quota_nld
%{_unitdir}/quota_nld.service
%attr(0755,root,root) %{_sbindir}/quota_nld
%attr(0644,root,root) %{_mandir}/man8/quota_nld.8*
%doc Changelog

#----------------------------------------------------------------------------

%package warnquota
Summary:	Send e-mail to users over quota
Group:		System/Configuration/Other
Conflicts:	quota < 4.01-7

%description warnquota
Utility that checks disk quota for each local file system and mails a warning
message to those users who have reached their soft limit.  It is typically run
via cron(8).

%files warnquota
%config(noreplace) %{_sysconfdir}/quotagrpadmins
%config(noreplace) %{_sysconfdir}/quotatab
%config(noreplace) %{_sysconfdir}/warnquota.conf
%{_sbindir}/warnquota
%{_mandir}/man5/*
%{_mandir}/man8/warnquota.8*
%doc Changelog README.ldap-support README.mailserver

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Conflicts:	quota < 4.01-6

%description devel
This package contains the development files for %{name}.

%files devel
%dir %{_includedir}/rpcsvc
%{_includedir}/rpcsvc/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n quota-%{version}

#fix typos/mistakes in localized documentation
for pofile in $(find ./po/*.p*)
do
   sed -i 's/editting/editing/' "$pofile"
done

%build
%serverbuild
%configure \
	--enable-ext2direct=yes \
	--enable-ldapmail=yes \
	--enable-netlink=yes \
	--enable-rootsbin=yes \
	--enable-rpcsetquota=yes \
	--enable-strip-binaries=no \
	--enable-rootsbin
%make

%install
install -d %{buildroot}/sbin
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/{man1,man2,man3,man8}

%make_install ROOTDIR=%{buildroot} \
             DEF_BIN_MODE=755 \
             DEF_SBIN_MODE=755 \
             DEF_MAN_MODE=644 \
             STRIP=""

install -m644 warnquota.conf -D %{buildroot}%{_sysconfdir}/warnquota.conf

install -p -m644 %{SOURCE1} -D %{buildroot}%{_unitdir}/quota_nld.service
install -p -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/sysconfig/quota_nld

rm -rf %{buildroot}%{_docdir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16905 |21mr|qxmpp-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major	3
%define libname	%mklibname %{name} %{major}
%define devname	%mklibname %{name} -d

Summary:	XMPP client library based on Qt
Name:		qxmpp
Version:	1.4.0
Release:	2
License:	LGPLv2.1+ and Creative Commons Attribution
Group:		System/Libraries
Url:		https://github.com/qxmpp-project/qxmpp
Source0:	https://github.com/qxmpp-project/qxmpp/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-devel

%description
QXmpp is a cross-platform C++ XMPP client library. It is based on Qt and C++.

QXmpp is pretty intuitive and easy to use. It uses Qt extensively. Qt is
the only third party library it is dependent on. Users need to a have working
knowledge of C++ and Qt basics (Signals and Slots and Qt data types).
The underlying TCP socket and the XMPP RFCs (RFC3920 and RFC3921) have been
encapsulated into classes and functions. Therefore the user would not be
bothered with these details. But it is always recommended to the advanced users
to read and enjoy the low level details.

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	XMPP client library based on Qt
Group:		System/Libraries

%description -n %{libname}
QXmpp is a cross-platform C++ XMPP client library. It is based on Qt and C++.

QXmpp is pretty intuitive and easy to use. It uses Qt extensively. Qt is
the only third party library it is dependent on. Users need to a have working
knowledge of C++ and Qt basics (Signals and Slots and Qt data types).
The underlying TCP socket and the XMPP RFCs (RFC3920 and RFC3921) have been
encapsulated into classes and functions. Therefore the user would not be
bothered with these details. But it is always recommended to the advanced users
to read and enjoy the low level details.

%files -n %{libname}
%{_libdir}/libqxmpp.so.%{major}*
%{_libdir}/libqxmpp.so.%{version}

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	QXmpp development files
Group:		Development/C++
Requires:	qt5-devel
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 0.7.5

%description -n %{devname}
QXmpp is a cross-platform C++ XMPP client library. It is based on Qt and C++.

This package contains files required for development.

%files -n %{devname}
%doc AUTHORS LICENSE.LGPL
%{_includedir}/qxmpp
%{_libdir}/libqxmpp.so
%{_libdir}/pkgconfig/qxmpp.pc
%{_libdir}/cmake/qxmpp

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake -DBUILD_EXAMPLES=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16906 |21mr|R-4.0.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# (tpg) really not needed
# for private copy in /usr/lib/R/share/perl/Text/DelimMatch.pm 
%global __provides_exclude KernSmooth.so\\|MASS.so\\|R_X11.so\\|class.so\\|cluster.so\\|foreign.so\\|grDevices.so\\|grid.so\\|internet.so\\|lapack.so\\|lattice.so\\|libRblas.so\\|libRlapack.so\\|methods.so\\|mgcv.so\\|nlme.so\\|nnet.so\\|rpart.so\\|spatial.so\\|splines.so\\|stats.so\\|survival.so\\|tcltk.so\\|tools.so\\|vfonts.so\\|perl\(R::.*\)
%global __requires_exclude libRblas.so\\|libRlapack.so\\|perl\(R::.*\)
%define _disable_ld_no_undefined 1

%bcond_without	system_pcre

%ifarch %{mips} %{arm}
    %bcond_with	java
%else
    %bcond_without java
%endif

%ifarch x86_64
    %define	java_arch		amd64
%else
    %define	java_arch		%{_arch}
%endif

%define		libRmath		%{mklibname Rmath}
%define		libRmath_devel		%{mklibname -d Rmath}
%define		libRmath_static_devel	%{mklibname -d -s Rmath}

#-----------------------------------------------------------------------
Name:		R
Version:	4.0.3
Release:	5
Summary:	A language for data analysis and graphics
URL:		http://www.r-project.org
Source0:	ftp://cran.r-project.org/pub/R/src/base/R-4/R-%{version}.tar.gz
Source1:	macros.R
Source2:	R-make-search-index.sh
Source3:	R-icons-png.tar.bz2
Source4:	R.bash_completion.bz2
Source100:	R.rpmlintrc
License:	GPLv2+
Group:		Sciences/Mathematics
BuildRequires:	bison
BuildRequires:	bzip2-devel
BuildRequires:	cups-common
BuildRequires:	gcc-c++
BuildRequires:	gcc-gfortran
BuildRequires:	gcc-objc
BuildRequires:	gettext-devel
BuildRequires:	glibc-static-devel
BuildRequires:	gpm-devel
BuildRequires:	icu-devel >= 49
%if %{with java}
BuildRequires:	java-rpmbuild
%endif
BuildRequires:	jpeg-devel
BuildRequires:	less
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(pango)
BuildRequires:	paper-utils
%if %{with system_pcre}
BuildRequires:	pkgconfig(libpcre)
%endif
BuildRequires:	pkgconfig(libpng)
BuildRequires:	readline-devel
BuildRequires:	tcl-devel
BuildRequires:	texinfo
BuildRequires:	texlive-latex
BuildRequires:	texlive-tools
BuildRequires:	texlive-inconsolata
BuildRequires:	tiff-devel
BuildRequires:	tk-devel
BuildRequires:	zip
BuildRequires:	zlib-devel
# R-devel will pull in R-core
Requires:	R-devel = %{EVRD}
# libRmath-devel will pull in libRmath
Requires:	%{libRmath_devel} = %{EVRD}
Recommends:	x11-font-adobe-100dpi
Obsoletes:	R-recommended <= 1.5.1
Provides:	R-recommended
Patch1:		R-3.0.1-menu.patch
Patch2:		R-3.0.0-gfxdemos.patch
# see https://bugzilla.redhat.com/show_bug.cgi?id=1324145
Patch4:		R-3.3.0-fix-java_path-in-javareconf.patch

%description
This is a metapackage that provides both core R userspace and 
all R development components.

R is a language and environment for statistical computing and graphics. 
R is similar to the award-winning S system, which was developed at 
Bell Laboratories by John Chambers et al. It provides a wide 
variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).

R is designed as a true computer language with control-flow
constructions for iteration and alternation, and it allows users to
add additional functionality by defining new functions. For
computationally intensive tasks, C, C++ and Fortran code can be linked
and called at run time.

%files

#-----------------------------------------------------------------------
%package	core
Summary:	The minimal R components necessary for a functional runtime
Group:		Sciences/Mathematics
Requires:	cups
Requires:	less
Requires:	perl
Requires:	sed
Requires:	texlive-scheme-medium
Requires:	vim
Requires:	xdg-utils
# These are the submodules that R-core provides. Sometimes R modules say they
# depend on one of these submodules rather than just R. These are provided for 
# packager convenience.
%rename R-base
Provides:	R-boot = 1.3.18
Provides:	R-class = 7.3.14
Provides:	R-cluster = 2.0.5
Provides:	R-codetools = 0.2.15
Provides:	R-datasets = %{version}
Provides:	R-foreign = 0.8.67
Provides:	R-graphics = %{version}
Provides:	R-grDevices = %{version}
Provides:	R-grid = %{version}
Provides:	R-KernSmooth = 2.23.15
Provides:	R-lattice = 0.20.34
Provides:	R-MASS = 7.3.45
Provides:	R-Matrix = 1.2.7.1
Obsoletes:	R-Matrix < 0.999375-7
Provides:	R-methods = %{version}
Provides:	R-mgcv = 1.8.15
Provides:	R-nlme = 3.1.128
Provides:	R-nnet = 7.3.12
Provides:	R-parallel = %{version}
Provides:	R-rpart = 4.1.10
Provides:	R-spatial = 7.3.11
Provides:	R-splines = %{version}
Provides:	R-stats = %{version}
Provides:	R-stats4 = %{version}
Provides:	R-survival = 2.39.5
Provides:	R-tcltk = %{version}
Provides:	R-tools = %{version}
Provides:	R-utils = %{version}

%description	core
A language and environment for statistical computing and graphics.
R is similar to the award-winning S system, which was developed at
Bell Laboratories by John Chambers et al. It provides a wide
variety of statistical and graphical techniques (linear and
nonlinear modelling, statistical tests, time series analysis,
classification, clustering, ...).

R is designed as a true computer language with control-flow
constructions for iteration and alternation, and it allows users to
add additional functionality by defining new functions. For
computationally intensive tasks, C, C++ and Fortran code can be linked
and called at run time.

%post core
    %{_sbindir}/texlive.post
    %if %{with java}
    R CMD javareconf \
	JAVA_HOME=%{_jvmdir}/jre \
	JAVA_CPPFLAGS='-I%{_jvmdir}/java/include\ -I%{_jvmdir}/java/include/linux' \
	JAVA_LIBS='-L%{_jvmdir}/jre/lib/%{java_arch}/server \
	-L%{_jvmdir}/jre/lib/%{java_arch}\ -L%{_jvmdir}/java/lib/%{java_arch} \
	-L/lib\ -L/usr/lib\ -ljvm' \
	JAVA_LD_LIBRARY_PATH=%{_jvmdir}/jre/lib/%{java_arch}/server:%{_jvmdir}/jre/lib/%{java_arch}:%{_jvmdir}/java/lib/%{java_arch}:/usr/java/packages/lib/%{java_arch}:/lib:/usr/lib \
	> /dev/null 2>&1 || exit 0
    %endif

%postun core
    if [ $1 -eq 0 ] ; then
	%{_sbindir}/texlive.post
    fi

%files		core
%{_bindir}/*
%{_datadir}/R
%{_libdir}/R
%exclude %{_libdir}/R/include
%{_prefix}/lib/rpm/R-make-search-index.sh
%{_infodir}/R-*.info*
%{_sysconfdir}/bash_completion.d/*
%{_rpmmacrodir}/*%{name}*
%{_mandir}/man1/*
%{_sysconfdir}/ld.so.conf.d/*
%{_texmfdir}/tex/latex/R
%{_iconsdir}/Rlogo.png
%{_liconsdir}/*
%{_miconsdir}/*
%{_datadir}/applications/*
%doc %{_docdir}/R

#-----------------------------------------------------------------------
%package	devel
Summary:	Files for development of R packages
Group:		Development/Other
Requires:	R-core = %{EVRD}
# You need all the BuildRequires for the development version
Requires:	bzip2-devel
Requires:	gcc-c++
Requires:	gcc-gfortran
Requires:	pkgconfig(x11)
%if %{with system_pcre}
Requires:	pcre-devel
%endif
Requires:	pkgconfig
Requires:	tcl-devel
Requires:	texinfo
Requires:	texlive-latex
Requires:	texlive-tools
Requires:	texlive-inconsolata
Requires:	tk-devel
Requires:	zlib-devel
Provides:	R-Matrix-devel = 1.0.1
Obsoletes:	R-Matrix-devel < 0.999375-7

%description	devel
Install R-devel if you are going to develop or compile R packages.

%files		devel
%{_libdir}/pkgconfig/libR.pc
%{_includedir}/R
%{_libdir}/R/include

#-----------------------------------------------------------------------
%package	-n %{libRmath}
Summary:	Standalone math library from the R project
Group:		System/Libraries
Provides:	Rmath = %{EVRD}

%description	-n %{libRmath}
A standalone library of mathematical and statistical functions derived
from the R project.  This package provides the shared libRmath library.

%files		-n %{libRmath}
%{_libdir}/libRmath.so

#-----------------------------------------------------------------------
%package	-n %{libRmath_devel}
Summary:	Headers from the R Standalone math library
Group:		Development/Other
Requires:	%{libRmath} = %{EVRD}
Requires:	pkgconfig
Provides:	Rmath-devel = %{EVRD}

%description	-n %{libRmath_devel}
A standalone library of mathematical and statistical functions derived
from the R project.  This package provides the libRmath header files.

%files		-n %{libRmath_devel}
%{_includedir}/Rmath.h
%{_libdir}/pkgconfig/libRmath.pc

#-----------------------------------------------------------------------
%package	-n %{libRmath_static_devel}
Summary:	Static R Standalone math library
Group:		Development/Other
Requires:	%{libRmath_devel} = %{EVRD}
Provides:	Rmath-static-devel = %{EVRD}

%description	-n %{libRmath_static_devel}
A standalone library of mathematical and statistical functions derived
from the R project.  This package provides the static libRmath library.

%files		-n %{libRmath_static_devel}
%{_libdir}/libRmath.a

########################################################################
%prep
%setup -q
%patch1 -p1
%patch2 -p1
%patch4 -p1

#-----------------------------------------------------------------------
%build
# Add PATHS to Renviron for R_LIBS_SITE
echo 'R_LIBS_SITE=${R_LIBS_SITE-'"'/usr/local/lib/R/site-library:/usr/local/lib/R/library:%{_libdir}/R/library:%{_datadir}/R/library'"'}' >> etc/Renviron.in
export R_PDFVIEWER="%{_bindir}/xdg-open"
export R_PRINTCMD="lpr"
export R_BROWSER="%{_bindir}/xdg-open"

# instead of "BuildConflicts: R-core" and/or R-foo packages
if [ -x %{bindir}/Rscript ]; then
    mkdir bin
    ln -sf bin/R bin/Rscript
fi

export FCFLAGS="%{optflags}"
%if %{with java}
    export JAVA_HOME="%{java_home}"
%endif

(
    %configure						\
	--with-tcltk					\
	--with-tcl-config=%{_libdir}/tclConfig.sh	\
	--with-tk-config=%{_libdir}/tkConfig.sh		\
	--with-cairo					\
	--with-libpng					\
	--with-jpeglib					\
	--with-system-zlib				\
	--with-system-bzlib				\
%if %{with system_pcre}
	--with-system-pcre				\
%else
	--without-system-pcre				\
%endif
	--with-system-xz				\
	--with-ICU					\
	--with-readline					\
	--disable-BLAS-shlib				\
	--with-lapack=%{_libdir}			\
	--with-blas=%{_libdir}				\
	--enable-R-shlib				\
	--enable-prebuilt-html				\
	rdocdir=%{_docdir}/R				\
	rsharedir=%{_datadir}/R
) | grep -A30 'R is now' - > CAPABILITIES

# (tpg) somehow --prefix is not honored
sed -i -e 's#/usr/local#%{_prefix}#g' Makeconf

%make
make -C src/nmath/standalone

#make check-all
%make pdf
# %make info

# Uncomment once we fix info pages for R
# Convert to UTF-8
#for i in doc/manual/R-intro.info doc/manual/R-FAQ.info doc/FAQ doc/manual/R-admin.info doc/manual/R-exts.info-1; do
#    iconv -f iso-8859-1 -t utf-8 -o $i{.utf8,}
#    mv $i{.utf8,}
#done

#-----------------------------------------------------------------------
%install
make DESTDIR=%{buildroot} install install-info
make DESTDIR=%{buildroot} install-pdf

rm -f %{buildroot}%{_infodir}/dir
rm -f %{buildroot}%{_infodir}/dir.old
install -p CAPABILITIES %{buildroot}%{_docdir}/R

# Install libRmath files
make -C src/nmath/standalone install DESTDIR=%{buildroot}

mkdir -p %{buildroot}/etc/ld.so.conf.d
echo "%{_libdir}/R/lib" > %{buildroot}/etc/ld.so.conf.d/%{name}-%{_arch}.conf

mkdir -p %{buildroot}%{_datadir}/R/library

# Install rpm helper macros
%install_macro R %{SOURCE1}

# Install rpm helper script
mkdir -p %{buildroot}%{_prefix}/lib/rpm/
install -m0755 %{SOURCE2} %{buildroot}/usr/lib/rpm/

# Fix html/packages.html
# We can safely use RHOME here, because all of these are system packages.
sed -i 's|\..\/\..|%{_libdir}/R|g' %{buildroot}%{_docdir}/R/html/packages.html

for i in %{buildroot}%{_libdir}/R/library/*/html/*.html; do
  sed -i 's|\..\/\..\/..\/doc|%{_docdir}/R|g' $i
done

# Fix exec bits
chmod +x %{buildroot}%{_datadir}/R/sh/echo.sh
chmod -x %{buildroot}%{_libdir}/R/library/mgcv/CITATION %{buildroot}%{_docdir}/R/CAPABILITIES

# Symbolic link for convenience
# Actually do make the reverse link done in fedora, to avoid the need to
# fight rpm to convert a directory into a symlink if upgrading from
# previous packages
ln -sf ../%{_lib}/R/include %{buildroot}%{_includedir}/R

ln -sf %{_docdir}/R %{buildroot}%{_libdir}/R/doc

# Symbolic link for LaTeX
mkdir -p %{buildroot}%{_texmfdir}/tex/latex
pushd %{buildroot}%{_texmfdir}/tex/latex
    ln -s ../../../R/texmf/tex/latex R
popd

cp doc/COPYING %{buildroot}%{_docdir}/R

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Name=R
Name[ru]=R
Comment=A language for statistical computing
Comment[ru]=Язык статистических вычислений
Exec=%{_bindir}/R --gui=tk
Terminal=true
Type=Application
Icon=Rlogo
Categories=Science;Math;
EOF

# icons
mkdir -p %{buildroot}%{_iconsdir}
tar xjf %{SOURCE3} -C %{buildroot}%{_iconsdir}

# (tpg) add bash completion file
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
bzcat %{SOURCE4} > %{buildroot}%{_sysconfdir}/bash_completion.d/R-base

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16907 |21mr|r8168-8.051.02-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define kname r8168
%bcond_without check

Summary:	Standalone driver for Realtek RTL8168*/8111* network adapters
Name:		r8168
Version:	8.051.02
Release:	6
Epoch:		1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://www.realtek.com/en/component/zoo/category/network-interface-controllers-10-100-1000m-gigabit-ethernet-pci-express-software
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.rpmlintrc
Source2:	%{name}.conf
Patch0001:	0001-Sync-with-removal-of-r8168-supported-devices-from-ke.patch
Patch0002:	0002-Use-linux-firmware-by-default.patch
# ported from version 8.052.01 which works badly
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14416
Patch0003:	kernel-6.6.patch
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	kmod
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
This package contains the standalone driver for the following network
adapters by Realtek: RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP,
RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E.

#----------------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	Standalone driver for Realtek RTL8168*/8111* network adapters
Group:		System/Kernel and hardware
Requires(post,preun):	dkms
Requires:	kernel-source-%{name}
Requires(post):	kernel-source-%{name}

%description -n dkms-%{name}
This package contains the standalone driver for the following network
adapters by Realtek: RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP,
RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E.

%files -n dkms-%{name}
%doc README
%config(noreplace) /etc/modprobe.d/%{name}.conf
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{name} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#----------------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of r8168 kernel driver
# files were moved
Conflicts:	dkms-%{name} < 8.051.02

%description -n kernel-source-%{name}
Linux kernel driver for the following network
adapters by Realtek: RTL8168B/8111B, RTL8168C/8111C, RTL8168CP/8111CP,
RTL8168D/8111D, RTL8168DP/8111DP, and RTL8168E/8111E.

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#----------------------------------------------------------------------------

%package -n r8169orig-blacklist
Summary:	Blacklist r8169 and r8168 and use r8169orig

%description -n r8169orig-blacklist
Blacklist kernel modules r8169 and r8168 and use r8169orig.
r8169orig is kernel upstream module r8169 without ROSA-specific
patch that removes support of r8168-supported hardware from r8169.

%files -n r8169orig-blacklist
%config(noreplace) /etc/modprobe.d/r8169orig-blacklist.conf
%config(noreplace) /etc/dracut.conf.d/10-r8169orig-blacklist.conf
/var/spool/initramfs-regen/r8169orig-blacklist

#----------------------------------------------------------------------------

%prep
%autosetup -p1
chmod -x src/* Makefile README

%build

%install
install -m755 -d %{buildroot}/etc/modprobe.d/
install -m644 %{SOURCE2} %{buildroot}/etc/modprobe.d

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
install -m644 src/*.c src/*.h src/Makefile %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="make -C \$kernel_source_dir M=\\\$(pwd) modules"
CLEAN="make -C \$kernel_source_dir M=\\\$(pwd) clean"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{name}
AUTOINSTALL=yes
EOF

mkdir -p %{buildroot}/etc/modprobe.d/
cat > %{buildroot}/etc/modprobe.d/r8169orig-blacklist.conf << 'EOF'
# Blacklist kernel modules r8169 and r8168 and use r8169orig.
# r8169orig is kernel upstream module r8169 without ROSA-specific
# patch that removes support of r8168-supported hardware from r8169.
blacklist r8169
blacklist r8168
EOF

mkdir -p %{buildroot}/etc/dracut.conf.d/
cat > %{buildroot}/etc/dracut.conf.d/10-r8169orig-blacklist.conf << 'EOF'
install_optional_items+=" /etc/modprobe.d/r8169orig-blacklist.conf "
EOF

# for rosa-kernel-tools
mkdir -p %{buildroot}/var/spool/initramfs-regen/
touch %{buildroot}/var/spool/initramfs-regen/r8169orig-blacklist

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	%make KERNELDIR="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | sed -e 's,/source$,/build,')"
	md5sum src/%{kname}.ko
	modinfo src/%{kname}.ko
	make KERNELDIR="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | sed -e 's,/source$,/build,')" clean
	rm -f src/*.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16908 |21mr|rabbitmq-java-client-3.6.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without buildtex
%bcond_with test
%global jarname   rabbitmq-client

%global failjava  true
%global failjunit no
#global failjunit yes

Name:          rabbitmq-java-client
Version:       3.6.5
Release:       9
Summary:       Java Advanced Message Queue Protocol client library
License:       ASL 2.0 and GPLv2+ and MPLv1.1
URL:           http://www.rabbitmq.com/java-client.html
Source0:       http://www.rabbitmq.com/releases/%{name}/v%{version}/%{name}-%{version}.tar.gz

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires: maven-local mvn(commons-cli:commons-cli) mvn(commons-io:commons-io) mvn(junit:junit)
BuildRequires: ant ant-junit
BuildRequires: java-headless
BuildRequires: python2-devel
BuildRequires: python2dist(simplejson)

%if 0%{?with buildtex}
BuildRequires: texi2html
BuildRequires: %{_bindir}/pdflatex
%endif

%if %{with test}
# for tests execution
BuildRequires:  rabbitmq-server
BuildRequires:  hostname
BuildRequires:  procps-ng

Suggests:       rabbitmq-server
Suggests:       activemq
%endif


%description
The library allows Java code to interface to AMQP servers.
Please see the specification page for more information on AMQP
inter-operation and standards-conformance

You will need an AMQP server, such as our very own RabbitMQ server,
to use with the client library.


%package doc
Summary:       Documentation for %{name}
Requires:      %{name} = %{version}-%{release}

%description doc
This package contains additional documentation for %{name}.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.


%prep
%setup -q
find . -name "*.bat" -delete
find . -name "*.class" -delete
find . -name "*.jar" -print -delete
# use ant only
rm Makefile

ln -sf $(build-classpath commons-cli) lib/
ln -sf $(build-classpath commons-io) lib/
ln -sf $(build-classpath junit) lib/

# Disable Spring bundlor support
sed -i "s|, bundlor.do||" build.xml
sed -i "s|, test-bundlor.do||" build.xml

#sed -i 's,\(\"jar.name\" value=\"\).*\",\1%{jarname}\",' build.xml
sed -i 's,\(\"haltOnFailureJunit\" value=\"\).*\",\1%{failjunit}\",' build.xml
sed -i 's,\(\"haltOnFailureJava\" value=\"\).*\",\1%{failjava}\",' build.xml

%mvn_file com.rabbitmq:amqp-client %{name} %{jarname} amqp-client


%build
%ant -Dimpl.version=%{version} -Dpython.bin=%{__python2} maven-bundle

# distribute documentation
cd doc/channels
%if 0%{?with buildtex}
find . -name \*.tex -print -exec 'texi2html {} ; pdflatex {}' \; -delete
%endif
find . -not -name channels.\* -delete


%install
%mvn_artifact build/bundle/amqp-client-%{version}.pom build/bundle/amqp-client-%{version}.jar
%mvn_install -J build/doc/api

%if %{with test}
%check
ant test-jar

#ant test-suite
#ant -Dtest=testDoubleDeletionExchange test-single
ant test-server

# client tests need a mock server, ugly hackery :)
export RABBITMQ_LOG_BASE=.
export RABBITMQ_MNESIA_BASE=.
%{_prefix}/lib/rabbitmq/bin/rabbitmq-server start -detached
pgrep -cf rabbitmq_server && ant test-client

# FIXME functional tests failure ahead!
#ant test-functional
#ant test-functional-and-server-with-ha

pkill -f rabbitmq_server ||:
%endif


%files -f .mfiles
%license LICENSE*
%doc README*

%files doc
%doc doc/*

%files javadoc -f .mfiles-javadoc
%license LICENSE*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16909 |21mr|radeontool-1.6.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		radeontool
Version:	1.6.3
Release:	4
Summary:	Enable/disable ATI Radeon external display/backlight
Source0:	http://people.freedesktop.org/~airlied/%{name}/%{name}-%{version}.tar.bz2
Source1:	http://www.fdd.com/software/radeon/lightwatch2.pl
URL:		http://people.freedesktop.org/~airlied/radeontool/
License:	BSD
Group:		System/Configuration/Hardware
BuildRequires:	libpciaccess-devel

%description
This utility should enable/disable the external display for ATI Radeon video
cards.
It should also enable/disable the backlight on a laptop equipped with a an ATI
Radeon Mobility video card.
Since it was engineered without access to the Radeon documents, it may as well
break your hardware.
USE RADEONTOOL AT YOUR OWN RISK


%prep
%setup -q
cp %{SOURCE1} .

%build
%configure --bindir=%{_sbindir}
%make

%install
%makeinstall_std

%clean

%files
%defattr(-,root,root,755)
%doc lightwatch2.pl
%{_sbindir}/radeontool
%{_sbindir}/avivotool
%{_sbindir}/radeonreg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16910 |21mr|radiusclient-ng-0.5.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Radiusclient library and tools
Name:		radiusclient-ng
Version:	0.5.6
Release:	7
License:	BSD
Group:		System/Servers
Url:		http://developer.berlios.de/projects/radiusclient-ng/
Source0:	http://download.berlios.de/radiusclient-ng/%{name}-%{version}.tar.gz

%description
Radiusclient is a /bin/login replacement which gets called by a getty to log in
a user and to setup the user's login environment. Normal login programs just
check the login name and password which the user entered against the local
password file (/etc/passwd, /etc/shadow). In contrast to that Radiusclient also
uses the RADIUS protocol to authenticate the user.

%files
%doc BUGS CHANGES README* doc/*.html
%attr(0755,root,root) %{_sbindir}/*

#----------------------------------------------------------------------------

%package conf
Summary:	Radiusclient configuration files
Group:		System/Libraries

%description conf
Configuration files required for Radiusclient.

%files conf
%dir %{_sysconfdir}/%{name}
%attr(0644,root,root) %config(missingok,noreplace) %verify(not md5 size mtime) %{_sysconfdir}/%{name}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Radiusclient library
Group:		System/Libraries
Requires:	%{name}-conf

%description -n %{libname}
Libraries required for Radiusclient.

%files -n %{libname}
%{_libdir}/libradiusclient-ng.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and development documentation for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and development documentation for %{name}.

%files -n %{devname}
%{_libdir}/libradiusclient-ng.so
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--enable-shadow \
	--enable-scp

%make

%install
%makeinstall_std

# rename these to prevent file clashes with the old package
pushd %{buildroot}%{_sbindir}
for i in *; do mv ${i} ${i}-ng; done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16911 |21mr|radvd-2.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The IPv6 Router Advertisement Daemon
Name:		radvd
Version:	2.11
Release:	4
License:	BSD
Group:		System/Servers
URL:		http://v6web.litech.org/radvd/
Source0:	http://v6web.litech.org/radvd/dist/%{name}-%{version}.tar.gz
Source1:	radvd-tmpfs.conf
Source2:	radvd.service
Source3:	radvd.conf
Requires(pre,postun):	rpm-helper
Requires(post,preun,postun):	systemd
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	pkgconfig(libdaemon)

%description
IPv6 has a lot more support for autoconfiguration than IPv4. But
for this autoconfiguration to work on the hosts of a network, the
routers of the local network have to run a program which answers
the autoconfiguration requests of the hosts.

On Linux this program is called radvd, which stands for Router
ADVertisement Daemon. This daemon listens to router solicitations (RS)
and answers with router advertisement (RA). Furthermore unsolicited
RAs are also send from time to time.

These RAs contain information, which is used by hosts to configure
their interfaces. This information includes address prefixes, the MTU of
the link and information about default routers.

%files
%doc CHANGES COPYRIGHT INTRO.html README TODO
%{_unitdir}/radvd.service
%config(noreplace) %{_sysconfdir}/radvd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/radvd
%config(noreplace) %{_sysconfdir}/tmpfiles.d/radvd.conf
%ghost %dir %attr(-,radvd,radvd) %{_localstatedir}/run/radvd/
%doc radvd.conf.example
%{_mandir}/*/*
%{_sbindir}/radvd
%{_sbindir}/radvdump

%pre
%_pre_useradd radvd / /sbin/nologin
%_pre_groupadd daemon radvd

%post
%tmpfiles_create %{name}
%systemd_post radvd.service

%postun
%_postun_groupdel daemon radvd
%systemd_postun radvd.service

%preun
%systemd_preun radvd.service

#----------------------------------------------------------------------------

%prep
%setup -q
for F in CHANGES; do
    iconv -f iso-8859-1 -t utf-8 < "$F" > "${F}.new"
    touch -r "$F" "${F}.new"
    mv "${F}.new" "$F"
done

%build
%serverbuild
%configure \
	--with-pidfile=%{_localstatedir}/run/radvd/radvd.pid
%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_localstatedir}/run/radvd
mkdir -p %{buildroot}%{_unitdir}

install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/radvd.conf
install -m 644 redhat/radvd.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/radvd

install -d -m 755 %{buildroot}%{_sysconfdir}/tmpfiles.d
install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/tmpfiles.d/radvd.conf
install -m 644 %{SOURCE2} %{buildroot}%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16912 |21mr|ragel-7.0.0.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without bootstrap

%define major 0
%define libfsm %mklibname fsm %{major}
%define libragel %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	Finite state machine compiler
Name:		ragel
Version:	7.0.0.12
Release:	3
# aapl/ is the LGPLv2+
License:	MIT and LGPLv2+
Group:		System/Libraries
Url:		http://www.colm.net/open-source/%{name}/
Source0:	https://www.colm.net/files/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	libtool
%if %{without bootstrap}
BuildRequires:	kelbt
BuildRequires:	ragel
%endif
BuildRequires:	colm
BuildRequires:	colm-devel = 0.13.0.7
# Unfortunately, upstream doesn't exist and not possible to find version
Provides:	bundled(aapl)

%description
Ragel compiles executable finite state machines from regular languages.
Ragel targets C, C++ and ASM. Ragel state machines can not only recognize
byte sequences as regular expression machines do, but can also execute code
at arbitrary points in the recognition of a regular language. Code embedding
is done using inline operators that do not disrupt the regular language syntax.

%files
%license COPYING
%doc CREDITS ChangeLog
%{_bindir}/%{name}
%{_bindir}/%{name}-*
%{_mandir}/man1/%{name}.1*
%{_datarootdir}/%{name}.lm
%dir %{_datadir}/vim
%dir %{_datadir}/vim/vimfiles
%dir %{_datadir}/vim/vimfiles/syntax
%{_datadir}/vim/vimfiles/syntax/%{name}.vim

#----------------------------------------------------------------------------

%package -n %{libragel}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libragel}
Shared library for %{name}

%files -n %{libragel}
%{_libdir}/libragel.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libfsm}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libfsm}
Shared library for %{name}

%files -n %{libfsm}
%{_libdir}/libfsm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries header files for %{name}
Group:		Development/Other
Requires:	%{libfsm} = %{EVRD}
Requires:	%{libragel} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development libraries header files for %{name}.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/libfsm.so
%{_libdir}/libragel.so

#----------------------------------------------------------------------------

%prep
%setup -q
# Do not pollute with docs
sed -i -e "/dist_doc_DATA/d" Makefile.am

%build
autoreconf -vfi
%configure \
	--disable-static
%make

%install
%makeinstall_std
install -p -m 0644 -D %{name}.vim %{buildroot}%{_datadir}/vim/vimfiles/syntax/%{name}.vim

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16913 |21mr|randomizedtesting2.3.1-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%filter_from_provides /^mvn/d
#%%filter_from_requires /^mvn(com.carrotsearch.randomizedtesting/d
%define oldname randomizedtesting
Group: Development/Java
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:          randomizedtesting2.3.1
Version:       2.3.1
Release:       1
Summary:       Java Testing Framework
License:       ASL 2.0
URL:           http://labs.carrotsearch.com/randomizedtesting.html
Source0:       https://github.com/carrotsearch/randomizedtesting/archive/release/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.google.code.gson:gson)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven:maven-artifact)
BuildRequires: mvn(org.apache.maven:maven-compat)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires: mvn(org.assertj:assertj-core)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.simpleframework:simple-xml)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(stax:stax-api)

BuildArch:     noarch
Source44: import.info

%description
Foundation classes and rules for applying the
principles of Randomized Testing.

%package junit4-ant
Group: Development/Java
Summary:       RandomizedTesting JUnit4 ANT Task
Requires:      %{name} = %{EVRD}
Requires:      %{name}-runner = %{EVRD}

%description junit4-ant
RandomizedTesting JUnit4 ANT Task.

%package junit4-maven-plugin
Group: Development/Java
Summary:       RandomizedTesting JUnit4 Maven Plugin
Requires:      %{name} = %{EVRD}

%description junit4-maven-plugin
RandomizedTesting JUnit4 Maven Plugin.

%package runner
Group: Development/Java
Summary:       RandomizedTesting Randomized Runner
Requires:      %{name} = %{EVRD}

%description runner
RandomizedRunner is a JUnit runner, so it is capable of
running @Test-annotated test cases.

%package javadoc
Group: Development/Java
Summary:       Javadoc for %{name}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oldname}-release-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -delete
find . -name "*.dll" -delete
find . -name "*.dylib" -delete
find . -name "*.so" -delete

# Remove bundled JavaScript libraries
find . -name "*.js" -print -delete
sed -i '/jquery/d' \
 junit4-ant/src/main/resources/com/carrotsearch/ant/tasks/junit4/templates/json/index.html \
 junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/json/JsonReport.java
sed -i '/script.js/d' \
 junit4-ant/src/main/resources/com/carrotsearch/ant/tasks/junit4/templates/json/index.html \
 junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/json/JsonReport.java

%pom_disable_module examples/ant
%pom_disable_module examples/maven
%pom_disable_module examples/security-manager
%pom_disable_module junit4-maven-plugin-tests

# Disable repackaged and shaded deps
%pom_remove_plugin com.pyx4me:proguard-maven-plugin junit4-ant
%pom_remove_plugin :maven-dependency-plugin junit4-ant

# Fix deps scope
%pom_xpath_remove "pom:scope[text()='provided']" junit4-ant

# Convert from dos to unix line ending
for file in CHANGES.txt CONTRIBUTING.txt README.txt; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

# package org.hamcrest does not exist
%pom_add_dep org.hamcrest:hamcrest-core randomized-runner

# Use junit 4.10 org.junit.internal.runners.rules.ValidationError:
# The @Rule 'ruleChain' must not be static or it must be annotated with @ClassRule.
rm -r randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestClassMethodFiltering.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestContextRandom.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestCustomMethodProvider.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestExpected.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestFailurePropagationCompatibility.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestFilteringWarnings.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestIgnoredRunCount.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestJ9SysThreads.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestListenersAnnotation.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestMacSysThreads.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestNightlyMode.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestOutOfScopeRandomUse.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestOverridingDefaultExceptionHandler.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestParameterized.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestParameterizedShufflesOrder.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestRepeatTestWithComplexDescription.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestResourceDisposal.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestRules.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestSeedDecorator.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestSeedFixingWithProperties.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestSeedParameterOptional.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestStackAugmentation.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTargetMethod.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTestFiltering.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTestCaseInstanceProviders.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTestCaseOrdering.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTestGroups.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestUncaughtExceptionsDuplicated.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestValidation.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/contracts \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/rules \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test001TimeoutSuite.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test002TimeoutMethod.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test003ThreadLeaksMethod.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test004ThreadLeaksSuite.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test005ThreadLeaksSystemThreads.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test006TimeoutAndThreadLeak.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test007UncaughtExceptions.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test008SeedsAnnotation.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test009TimeoutOrNotIdenticalSequence.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test010Zombies.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test013ThreadLeaksScopeNone.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test014Timeout.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test015TimeoutOverride.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test016ThreadLeaksCustomFilters.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test017ThreadLeaksCustomFiltersException.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test018TimeoutStacks.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test019ThreadLeakGroup.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test020SuiteTimeoutStopsTests.java

# org.apache.tools.ant.BuildException:
# At least one slave process threw an exception,
# first: Forked JVM's classpath must include a junit4 JAR.
# [junit4:junit4] ERROR: JVM J0 ended with an exception: Forked JVM's classpath must include a junit4 JAR.
%pom_xpath_remove "pom:executions/pom:execution[pom:id = 'surefire-it']" junit4-ant
 
%mvn_package :%{oldname}-parent %{oldname}-runner
# ivy breaks :(
#mvn_compat_version : 2.3.1

%build

%mvn_build -s

%install
%mvn_install

%files
%doc CHANGES.txt CONTRIBUTING.txt README.txt
%doc LICENSE.txt

%files junit4-ant -f .mfiles-junit4-ant
%files junit4-maven-plugin -f .mfiles-junit4-maven-plugin
%files runner -f .mfiles-%{oldname}-runner

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt

%changelog
* Mon Jun 17 2019 Igor Vlasenko <viy@altlinux.ru> 2.3.1-alt2_5jpp8
- fixed requires

* Thu Apr 19 2018 Igor Vlasenko <viy@altlinux.ru> 2.3.1-alt1_5jpp8
- java update

* Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 2.3.1-alt1_4jpp8
- fc27 update

* Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 2.3.1-alt1_3jpp8
- new jpp release

* Fri Nov 25 2016 Igor Vlasenko <viy@altlinux.ru> 2.3.1-alt1_2jpp8
- new version

* Sat Feb 06 2016 Igor Vlasenko <viy@altlinux.ru> 2.1.3-alt1_3jpp8
- java 8 mass update


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16914 |21mr|randomizedtesting-2.5.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          randomizedtesting
Version:       2.5.3
Release:       4
Summary:       Java Testing Framework
License:       ASL 2.0
URL:           http://labs.carrotsearch.com/randomizedtesting.html
Source0:       https://github.com/carrotsearch/randomizedtesting/archive/release/%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava:19.0)
BuildRequires:  mvn(de.thetaphi:forbiddenapis)
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.ant:ant-junit)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.simpleframework:simple-xml)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Foundation classes and rules for applying the
principles of Randomized Testing.

%package junit4-ant
Summary:       RandomizedTesting JUnit4 ANT Task
Requires:      %{name} = %{version}-%{release}

%description junit4-ant
RandomizedTesting JUnit4 ANT Task.

%package junit4-maven-plugin
Summary:       RandomizedTesting JUnit4 Maven Plugin
Requires:      %{name} = %{version}-%{release}

%description junit4-maven-plugin
RandomizedTesting JUnit4 Maven Plugin.

%package runner
Summary:       RandomizedTesting Randomized Runner
Requires:      %{name} = %{version}-%{release}

%description runner
RandomizedRunner is a JUnit runner, so it is capable of
running @Test-annotated test cases.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-release-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -delete
find . -name "*.dll" -delete
find . -name "*.dylib" -delete
find . -name "*.so" -delete

# Remove bundled JavaScript libraries
find . -name "*.js" -print -delete
sed -i '/jquery/d' \
 junit4-ant/src/main/resources/com/carrotsearch/ant/tasks/junit4/templates/json/index.html \
 junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/json/JsonReport.java
sed -i '/script.js/d' \
 junit4-ant/src/main/resources/com/carrotsearch/ant/tasks/junit4/templates/json/index.html \
 junit4-ant/src/main/java/com/carrotsearch/ant/tasks/junit4/listeners/json/JsonReport.java

%pom_disable_module examples/ant
%pom_disable_module examples/maven
%pom_disable_module examples/security-manager
%pom_disable_module junit4-maven-plugin-tests

# Disable repackaged and shaded deps
%pom_remove_plugin com.pyx4me:proguard-maven-plugin junit4-ant
%pom_remove_plugin :maven-dependency-plugin junit4-ant

# Fix deps scope
%pom_xpath_remove "pom:scope[text()='provided']" junit4-ant

# Convert from dos to unix line ending
for file in CHANGES.txt CONTRIBUTING.txt README.txt; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

# package org.hamcrest does not exist
%pom_add_dep org.hamcrest:hamcrest-core randomized-runner

# Use junit 4.10 org.junit.internal.runners.rules.ValidationError:
# The @Rule 'ruleChain' must not be static or it must be annotated with @ClassRule.
rm -r randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestClassMethodFiltering.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestContextRandom.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestCustomMethodProvider.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestExpected.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestFailurePropagationCompatibility.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestHooksWithEmptyTestSet.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestIgnoredRunCount.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestJ9SysThreads.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestListenersAnnotation.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestMacSysThreads.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestNightlyMode.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestOutOfScopeRandomUse.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestOverridingDefaultExceptionHandler.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestParameterized.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestParameterizedShufflesOrder.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestRepeatTestWithComplexDescription.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestResourceDisposal.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestRules.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestSeedDecorator.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestSeedFixingWithProperties.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestSeedParameterOptional.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestSeedRepeatable.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestStackAugmentation.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTargetMethod.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTestFiltering.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTestCaseInstanceProviders.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTestCaseOrdering.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestTestGroups.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestUncaughtExceptionsDuplicated.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/TestValidation.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/contracts \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/rules \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test001TimeoutSuite.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test002TimeoutMethod.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test003ThreadLeaksMethod.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test004ThreadLeaksSuite.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test005ThreadLeaksSystemThreads.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test006TimeoutAndThreadLeak.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test007UncaughtExceptions.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test008SeedsAnnotation.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test009TimeoutOrNotIdenticalSequence.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test010Zombies.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test013ThreadLeaksScopeNone.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test014Timeout.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test015TimeoutOverride.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test016ThreadLeaksCustomFilters.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test017ThreadLeaksCustomFiltersException.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test018TimeoutStacks.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test019ThreadLeakGroup.java \
 randomized-runner/src/test/java/com/carrotsearch/randomizedtesting/timeouts/Test020SuiteTimeoutStopsTests.java

# org.apache.tools.ant.BuildException:
# At least one slave process threw an exception,
# first: Forked JVM's classpath must include a junit4 JAR.
# [junit4:junit4] ERROR: JVM J0 ended with an exception: Forked JVM's classpath must include a junit4 JAR.
%pom_xpath_remove "pom:executions/pom:execution[pom:id = 'surefire-it']" junit4-ant

# Don't execute site plugin for RPM build
%pom_remove_plugin :maven-site-plugin
 
%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}-parent
%doc CHANGES.txt CONTRIBUTING.txt README.txt
%license LICENSE.txt

%files junit4-ant -f .mfiles-junit4-ant
%files junit4-maven-plugin -f .mfiles-junit4-maven-plugin
%files runner -f .mfiles-%{name}-runner

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16915 |21mr|range-v3-0.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil
%define	debug_package %nil

Name: range-v3
Summary: Experimental range library for C++11/14/17
# do not update it
# util you check that telegram-desktop still buildable
Version: 0.11.0
Group:	System/Libraries
Release: 1
License: Boost
URL: https://github.com/ericniebler/range-v3
Source0: https://github.com/ericniebler/range-v3/archive/%{version}.tar.gz
BuildRequires: cmake ninja
# Add "forgotten"(?) header to all.hpp - without this, telegram fails
# to compile
Patch1: range-v3-0.9.1-fix-all.hpp.patch

%description
Header-only %{summary}.

%package devel
Summary: Development files for %{name}
Provides: %{name}-static = %{version}-%{release}

%description devel
%{summary}.

%prep
%autosetup -p1

%build
%cmake \
	-DRANGES_CXX_COMPILER_CLANGCL=ON \
%ifarch %{e2k}
	-DRANGE_V3_EXAMPLES=OFF \
%endif
	-DRANGE_V3_TESTS=OFF \
	-G Ninja
%ninja_build

%install
%ninja_install -C build

%files devel
%doc README.md CREDITS.md TODO.md
%{_includedir}/concepts
%{_includedir}/meta
%{_includedir}/range
%{_includedir}/std
%{_includedir}/module.modulemap
%{_prefix}/lib/cmake/range-v3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16916 |21mr|rapidjson-1.1.0-6.git012be8.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 012be8528783cdbf4b7a9e64f78bd8f056b97e24
%define commit_short %(echo %{commit} | head -c6)

# There are no files that we can get debug info from
%define debug_package %{nil}

%define devname %mklibname %{name} -d

Summary:	A fast JSON parser/generator for C++
Name:		rapidjson
Version:	1.1.0
Release:	6.git%{commit_short}.1
License:	BSD
Group:		Development/C++
Url:		https://rapidjson.org/
Source0:	https://github.com/Tencent/rapidjson/archive/%{commit}.zip?/%{name}-%{commit}.zip
BuildRequires:	cmake
BuildRequires:	doxygen

%description
RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml.

- RapidJSON is small but complete. It supports both SAX and DOM style API.
  The SAX parser is only a half thousand lines of code.
- RapidJSON is fast. Its performance can be comparable to strlen(). It also
  optionally supports SSE2/SSE4.2 for acceleration.
- RapidJSON is self-contained and header-only. It does not depend on external
  libraries such as BOOST. It even does not depend on STL.
- RapidJSON is memory-friendly. Each JSON value occupies exactly 16 bytes for
  most 32/64-bit machines (excluding text string). By default it uses a fast
  memory allocator, and the parser allocates memory compactly during parsing.
- RapidJSON is Unicode-friendly. It supports UTF-8, UTF-16, UTF-32 (LE & BE),
  and their detection, validation and transcoding internally. For example, you
  can read a UTF-8 file and let RapidJSON transcode the JSON strings into
  UTF-16 in the DOM. It also supports surrogates and "\u0000" (null character)

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A fast JSON parser/generator for C++
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
RapidJSON is a JSON parser and generator for C++. It was inspired by RapidXml.

- RapidJSON is small but complete. It supports both SAX and DOM style API.
  The SAX parser is only a half thousand lines of code.
- RapidJSON is fast. Its performance can be comparable to strlen(). It also
  optionally supports SSE2/SSE4.2 for acceleration.
- RapidJSON is self-contained and header-only. It does not depend on external
  libraries such as BOOST. It even does not depend on STL.
- RapidJSON is memory-friendly. Each JSON value occupies exactly 16 bytes for
  most 32/64-bit machines (excluding text string). By default it uses a fast
  memory allocator, and the parser allocates memory compactly during parsing.
- RapidJSON is Unicode-friendly. It supports UTF-8, UTF-16, UTF-32 (LE & BE),
  and their detection, validation and transcoding internally. For example, you
  can read a UTF-8 file and let RapidJSON transcode the JSON strings into
  UTF-16 in the DOM. It also supports surrogates and "\u0000" (null character)

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/cmake/RapidJSON/RapidJSONConfig.cmake
%{_libdir}/cmake/RapidJSON/RapidJSONConfigVersion.cmake
%{_libdir}/pkgconfig/RapidJSON.pc
%{_datadir}/doc/RapidJSON/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%cmake \
	-DRAPIDJSON_BUILD_EXAMPLES:BOOL=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16917 |21mr|raptor2-2.0.15-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d

Summary:	Raptor RDF Parser Toolkit for Redland
Name:		raptor2
Version:	2.0.15
Release:	6
License:	GPLv2+ and LGPLv2.1+
Group:		Development/Other
Url:		http://librdf.org/raptor/
Source0:	http://librdf.org/dist/source/%{name}-%{version}.tar.gz
Patch0:		raptor2-2.0.15-fix-CVE-2017-18926.patch
Patch1:		raptor2-2.0.15-fix-CVE-2020-25713.patch
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)
Conflicts:	raptor < 2.0.0

%description
Raptor is the RDF Parser Toolkit for Redland that provides a set of standalone
RDF parsers, generating triples from RDF/XML or N-Triples.

%files
%doc AUTHORS COPYING COPYING.LIB ChangeLog LICENSE.txt NEWS README
%{_bindir}/rapper
%{_mandir}/man1/rap*
%{_mandir}/man3/libraptor2.3*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%configure \
	--disable-static \
	--with-html-dir=/dev/null
%make


%install
%makeinstall_std

# cleanup
rm -rf %{buildroot}/dev/null

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16918 |21mr|rarian-0.8.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}
%define xmlcatalog %{_sysconfdir}/xml/catalog

Summary:	Cataloging system for documentation on open systems
Name:		rarian
Version:	0.8.1
Release:	17
License:	GPLv2+
Group:		Publishing
Url:		http://rarian.freedesktop.org/
Source0:	http://rarian.freedesktop.org/Releases/%{name}-%{version}.tar.bz2
Source1:	scrollkeeper-omf.dtd
# gw https://bugs.freedesktop.org/show_bug.cgi?id=11779
Patch0:		rarian-0.5.4-mv.patch
Patch1:		rarian-0.8.1-xz-support.patch
Requires(post,preun):	libxml2-utils
Requires(post,preun):	sgml-common
Requires(post):	util-linux-ng
%rename		scrollkeeper

%description
Rarian is a cataloging system for the installed documentation.

Rarian is designed to be a replacement for scrollkeeper.  It is
currently undergoing heavy development.  As of writing, rarian can be
installed in place of scrollkeeper and everything will work okay.

%files
%doc README NEWS
%{_bindir}/rarian*
%{_bindir}/scrollkeeper*
%dir %{_datadir}/help/
%{_datadir}/help/rarian.document
%{_datadir}/librarian
%dir %{_datadir}/xml/scrollkeeper/
%dir %{_datadir}/xml/scrollkeeper/dtds/
%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd
%dir /var/lib/rarian
%ghost /var/lib/rarian/rarian-update-mtimes

%post
  if [ "$1" = "1" ]; then
%{_bindir}/rarian-sk-update
%{_bindir}/xmlcatalog --noout --add "public" \
        "-//OMF//DTD Scrollkeeper OMF Variant V1.0//EN" \
        "%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %{xmlcatalog}
%{_bindir}/xmlcatalog --noout --add "rewriteURI" \
        "http://scrollkeeper.sourceforge.net/dtds/scrollkeeper-omf-1.0/" \
        "file:///usr/share/xml/scrollkeeper/dtds/" %{xmlcatalog}
fi
%{_bindir}/rarian-sk-rebuild > /dev/null || true

%preun
if [ "$1" = "0" -a -f %{xmlcatalog} -a -x %{_bindir}/xmlcatalog ] ; then
  %{_bindir}/xmlcatalog --noout --del \
	"%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd" %{xmlcatalog}
fi

%postun
if [ "$1" = "0" ]; then
  # rarian is being removed, not upgraded
  rm -f %{_datadir}/help/*.document
fi

%filetriggerin -- %{_datadir}/omf/
%{_bindir}/scrollkeeper-update -q

%filetriggerpostun -- %{_datadir}/omf/
%{_bindir}/scrollkeeper-update -q

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Rarian cataloging system library
Group:		System/Libraries

%description -n %{libname}
Rarian is a cataloging system for the installed documentation.

Rarian is designed to be a replacement for scrollkeeper.  It is
currently undergoing heavy development.  As of writing, rarian can be
installed in place of scrollkeeper and everything will work okay.

%files -n %{libname}
%{_libdir}/librarian.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Rarian cataloging system - development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Rarian is a cataloging system for the installed documentation.

Rarian is designed to be a replacement for scrollkeeper.  It is
currently undergoing heavy development.  As of writing, rarian can be
installed in place of scrollkeeper and everything will work okay.

%files -n %{devname}
%doc ChangeLog TODO
%{_libdir}/librarian.so
%{_includedir}/rarian
%{_libdir}/pkgconfig/rarian.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-static \
	--disable-skdb-update \
	--localstatedir=/var
%make

%install
%makeinstall_std localstatedir=%{buildroot}/var
mkdir -p %{buildroot}/var/lib/rarian
touch %{buildroot}/var/lib/rarian/rarian-update-mtimes
install -D -m 644 %{SOURCE1} %{buildroot}%{_datadir}/xml/scrollkeeper/dtds/scrollkeeper-omf.dtd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16919 |21mr|rasqal-0.9.33-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	RDF querying library
Name:		rasqal
Group:		Databases
Version:	0.9.33
Release:	3
License:	LGPLv2.1+
Url:		http://librdf.org/rasqal/
Source0:	http://download.librdf.org/source/%{name}-%{version}.tar.gz
#Patch0:		rasqal-0.9.28-linkm.patch
BuildRequires:	libmpfr-devel
BuildRequires:	pkgconfig(raptor2)

%description
Rasqal handles Resource Description Framework (RDF) query syntaxes, query
construction and query execution returning result bindings. The supported
query languages are RDQL and SPARQL.  Rasqal was designed to work closely
with the Redland RDF library but is entirely separate. It is intended to be
a portable library working across many POSIX systems (Unix, GNU/Linux,
BSDs, OSX, cygwin) win32 and others.

%files
%doc AUTHORS COPYING* ChangeLog LICENSE* NEWS* NOTICE README*
%{_bindir}/roqet
%{_mandir}/man1/roqet*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/librasqal.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%{_bindir}/%{name}-config
%{_includedir}/*
%{_libdir}/librasqal.so
%{_libdir}/pkgconfig/*
%{_mandir}/man1/rasqal*
%{_mandir}/man3/lib*
%{_datadir}/gtk-doc/html/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16920 |21mr|rastertokpsl-re-0-2.gitd72f93.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit d72f93a0a50c53cfb209927e5f6a56e95607452f
%define commit_short %(echo %{commit} | head -c6)

Summary:	Reverse-engineered driver for Kyocera FS-1xxx printers
Summary(ru_RU.UTF-8): Драйвер для принтеров Kyocera FS-1xxx, сделанный реверс-инженирингом
Name:		rastertokpsl-re
Version:	0
Release:	2.git%{commit_short}.1
# PPD files are under MIT and just "redistributable", source code is under Apache 2.0
License:	Apache-2.0, MIT, Redistributable
Group:		System/Configuration/Printing
# fork of https://git.altlinux.org/gears/r/rastertokpsl-re.git
Url:		https://hub.mos.ru/mikhailnov/rastertokpsl-re
Source0:	https://hub.mos.ru/mikhailnov/rastertokpsl-re/-/archive/%{commit}/%{name}-%{commit}.tar.gz
BuildRequires:	cups-devel
BuildRequires:	jbig-devel

%description
Reverse-engineered driver for Kyocera FS-1xxx printers

%description -l ru_RU.UTF-8
Драйвер для принтеров Kyocera FS-1xxx, сделанный реверс-инженирингом

%files
%{_prefix}/lib/cups/filter/rastertokpsl-re
# XXX maybe own this directory in another package?
%dir %{_datadir}/cups/model/Kyocera
%{_datadir}/cups/model/Kyocera/*.ppd

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
autoreconf -if
%configure
%make_build

%install
%make_install

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16921 |21mr|rawtherapee-5.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Raw image processing software
Name:		rawtherapee
Version:	5.9
Release:	1
License:	GPLv3+ and MIT and IJG
Group:		Graphics
Url:		http://www.rawtherapee.com/
Source0:	http://rawtherapee.com/shared/source/%{name}-%{version}.tar.xz
Source1:	Russian
BuildRequires:	atomic-devel
BuildRequires:	bzip2-devel
BuildRequires:	cmake >= 2.6
BuildRequires:	gomp-devel
BuildRequires:	jpeg-devel
BuildRequires:	mercurial
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(expat) >= 2.0
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(fftw3f)
BuildRequires:	pkgconfig(gio-2.0) >= 2.16
BuildRequires:	pkgconfig(giomm-2.4) >= 2.12
BuildRequires:	pkgconfig(glib-2.0) >= 2.16
BuildRequires:	pkgconfig(glibmm-2.4) >= 2.16
BuildRequires:	pkgconfig(gobject-2.0) >= 2.16
BuildRequires:	pkgconfig(gthread-2.0) >= 2.16
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(lensfun)
BuildRequires:	pkgconfig(libcanberra-gtk)
BuildRequires:	pkgconfig(libiptcdata)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(sigc++-2.0)
Requires:	hicolor-icon-theme

%description
Rawtherapee is a RAW image processing software. It gives full control over
many parameters to enhance the raw picture before finally exporting it
to some common image format.

%files
%doc AUTHORS.txt RELEASE_NOTES.txt
%{_bindir}/rawtherapee
%{_bindir}/rawtherapee-cli
%{_datadir}/rawtherapee
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/com.%{name}.RawTherapee.appdata.xml
%{_iconsdir}/hicolor/*/apps/rawtherapee.png
%{_iconsdir}/hicolor/scalable/apps/rawtherapee.svg
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

cp -f %{SOURCE1} rtdata/languages

%build
%global optflags %{optflags} -std=gnu++11
%cmake \
	-DBUILD_SHARED_LIBS=OFF
%make -s

%install
%makeinstall_std -C build

# These file are taken from the root already
rm -rf %{buildroot}%{_datadir}/doc/rawtherapee

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16922 |21mr|rdate-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Retrieving the date and time from another machine on your network
Name:		rdate
Version:	1.5
Release:	1
License:	GPL
Group:		System/Configuration/Other
URL:		ftp://people.redhat.com/sopwith
Source0:	https://fossies.org/linux/misc/old/%{name}-%{version}.tar.gz
Patch0:		rdate-1.4-format_not_a_string_literal_and_no_format_arguments.diff

%description
The rdate utility retrieves the date and time from another machine on your
network, using the protocol described in RFC 868. If you run rdate as root, it
will set your machine's local time to the time of the machine that you queried.
Note that rdate isn't scrupulously accurate. If you are worried about
milliseconds, get the xntpd program instead.

%prep
%autosetup -p1

%build
sh autogen.sh
%configure
%make_build CFLAGS="%{optflags} -Wall -DINET6" CC="%{__cc}" LDFLAGS="%{ldflags}"

%install
%make_install

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16923 |21mr|rdesktop-1.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

Summary:	RDP client
Name:		rdesktop
Version:	1.9.0
Release:	3
License:	GPLv3+
Group:		Networking/Remote access
Url:		http://www.rdesktop.org
Source0:	https://github.com/rdesktop/rdesktop/releases/download/v%{version}/%{name}-%{version}.tar.gz
# Segfault after "Retrying with plain RDP"
# https://github.com/rdesktop/rdesktop/issues/356
Patch0:		53ba87dc174175e98332e22355ad8662c02880d6.patch
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(libgssglue)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(krb5-gssapi)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(libtasn1)
BuildRequires:	pkgconfig(nettle)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(gmp)

%description
rdesktop is an open source client for Windows NT Terminal Server and Windows
2000 Terminal Services, capable of natively speaking Remote Desktop Protocol
(RDP) in order to present the user's NT desktop. Unlike Citrix ICA, no server
extensions are required.  

rdesktop currently runs on most UNIX based platforms with the X Window System,
and other ports should be fairly straightforward. rdesktop is used through
rfbdrake.

%files
%doc COPYING doc/*.txt doc/AUTHORS doc/HACKING doc/TODO
%{_bindir}/%{name}
%{_datadir}/%{name}/
%{_mandir}/man1/*

#-----------------------------------------------------

%prep
%autosetup -p1

# lib64 fix
perl -pi -e "s|\/lib\"|\/%{_lib}\"|g" configure*
perl -pi -e "s|\/lib\ |\/%{_lib}\ |g" configure*

%build
export STRIP="/bin/true"

./bootstrap

%configure \
	--with-openssl=%{_prefix} \
	--with-sound=libao \
	--with-ipv6 \
	--enable-smartcard

%make

chmod 644 COPYING
chmod 644 doc/*

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16924 |21mr|rdma-core-34.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define ibmadmajor 5
%define ibnetdiscmajor 5
%define ibverbsmajor 1
%define ibumadmajor 3
%define rdmacmmajor 1
%define efamajor 1
%define mlx4major 1
%define mlx5major 1

%global dracutlibdir %{_prefix}/lib/dracut
%global sysmodprobedir %{_prefix}/lib/modprobe.d

%define libibverbs %mklibname ibverbs %{ibverbsmajor}
%define libibumad %mklibname ibumad %{ibumadmajor}
%define libibmad %mklibname ibumad %{ibmadmajor}
%define librdmacm %mklibname rdmacm %{rdmacmmajor}
%define libibnetdisc %mklibname ibnetdisc %{ibnetdiscmajor}
%define libefa %mklibname efa %{efamajor}
%define libmlx4 %mklibname mlx4 %{efamajor}
%define libmlx5 %mklibname mlx5 %{efamajor}

%define devname %mklibname %{name} -d

%bcond_with docs

Name:		rdma-core
Version:	34.0
Release:	1
Summary:	RDMA core userspace libraries and daemons
Group:		System/Servers

# Almost everything is licensed under the OFA dual GPLv2, 2 Clause BSD license
#  providers/ipathverbs/ Dual licensed using a BSD license with an extra patent clause
#  providers/rxe/ Incorporates code from ipathverbs and contains the patent clause
#  providers/hfi1verbs Uses the 3 Clause BSD license
License:	GPLv2 or BSD
Url:		https://github.com/linux-rdma/rdma-core
Source0:	https://github.com/linux-rdma/rdma-core/releases/download/v%{version}/rdma-core-%{version}.tar.gz

BuildRequires:	cmake >= 2.8.11
BuildRequires:	ninja
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libnl-route-3.0)
#BuildRequires:	python3 >= 3.7.4
BuildRequires:	python3-docutils
BuildRequires:	perl-generators
%if %{with docs}
BuildRequires:	pandoc
%endif

Provides:	rdma = %{EVRD}
Provides:	rdma-ndd = %{EVRD}
# the ndd utility moved from infiniband-diags to rdma-core
Conflicts:	infiniband-diags <= 1.6.7


%description
RDMA core userspace infrastructure and documentation, including initialization
scripts, kernel driver-specific modprobe override configs, IPoIB network
scripts, dracut rules, and the rdma-ndd utility.

%files
%dir %{_sysconfdir}/rdma
%dir %{_docdir}/%{name}-%{version}
%doc %{_docdir}/%{name}-%{version}/README.md
%doc %{_docdir}/%{name}-%{version}/rxe.md
%doc %{_docdir}/%{name}-%{version}/udev.md
%doc %{_docdir}/%{name}-%{version}/tag_matching.md
%config(noreplace) %{_sysconfdir}/rdma/mlx4.conf
%ifarch %{x86_64} %{ix86} %{armx}
%config(noreplace) %{_sysconfdir}/modprobe.d/mlx4.conf
%endif
%{sysmodprobedir}/libmlx4.conf
%{_libexecdir}/mlx4-setup.sh
%config(noreplace) %{_sysconfdir}/rdma/modules/infiniband.conf
%config(noreplace) %{_sysconfdir}/rdma/modules/iwarp.conf
%config(noreplace) %{_sysconfdir}/rdma/modules/opa.conf
%config(noreplace) %{_sysconfdir}/rdma/modules/rdma.conf
%config(noreplace) %{_sysconfdir}/rdma/modules/roce.conf
%config(noreplace) %{_sysconfdir}/rdma/rdma.conf
%config(noreplace) %{_sysconfdir}/udev/rules.d/*
%config(noreplace) %{_sysconfdir}/modprobe.d/truescale.conf
%{_unitdir}/rdma-hw.target
%{_unitdir}/rdma-load-modules@.service
%dir %{dracutlibdir}/modules.d/05rdma
%{dracutlibdir}/modules.d/05rdma/module-setup.sh
%{_udevrulesdir}/60-rdma-persistent-naming.rules
%{_udevrulesdir}/../rdma_rename
%{_udevrulesdir}/60-rdma-ndd.rules
%{_udevrulesdir}/75-rdma-description.rules
%{_udevrulesdir}/90-rdma-hw-modules.rules
%{_udevrulesdir}/90-rdma-ulp-modules.rules
%{_udevrulesdir}/90-rdma-umad.rules
%{_libexecdir}/truescale-serdes.cmds
%{_sbindir}/rdma-ndd
%{_unitdir}/rdma-ndd.service
%{_mandir}/man7/rxe*
%{_mandir}/man8/rdma-ndd.*
%license COPYING.*

#--------------------------------------------------------------------------

%package -n 	%{devname}
Summary:	RDMA core development libraries and headers
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{libibverbs} = %{EVRD}
Requires:	%{libibumad} = %{EVRD}
Requires:	%{librdmacm} = %{EVRD}
Requires:	%{libibnetdisc} = %{EVRD}
%ifarch %{x86_64} %{ix86} %{armx}
Requires:	%{libefa} = %{EVRD}
Requires:	%{libmlx4} = %{EVRD}
Requires:	%{libmlx5} = %{EVRD}
%endif
Requires:	ibacm = %{EVRD}
Provides:	ibacm-devel = %{EVRD}
Provides:	rdmacm-devel = %{EVRD}
Requires:	infiniband-diags = %{EVRD}
Provides:	infiniband-diags-devel = %{EVRD}
Provides:	%{_lib}ibmad-devel = %{EVRD}
Provides:	libibverbs-devel = %{EVRD}

%description -n	%{devname}
RDMA core development libraries and headers.

%files -n %{devname}
%doc %{_docdir}/%{name}-%{version}/MAINTAINERS
%doc %{_docdir}/%{name}-%{version}/libibverbs.md
%doc %{_docdir}/%{name}-%{version}/librdmacm.md
%dir %{_includedir}/infiniband
%dir %{_includedir}/rdma
%{_includedir}/infiniband/*
%{_includedir}/rdma/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc
%{_mandir}/man3/ibv_*
%{_mandir}/man3/rdma*
%{_mandir}/man3/umad*
%{_mandir}/man3/*_to_ibv_rate.*
%{_mandir}/man7/rdma_cm.*
%{_mandir}/man3/ibnd_*
%ifarch %{x86_64} %{ix86} %{armx}
%{_mandir}/man3/efadv*
%{_mandir}/man7/efadv*
%{_mandir}/man3/mlx4dv*
%{_mandir}/man7/mlx4dv*
%{_mandir}/man3/mlx5dv*
%{_mandir}/man7/mlx5dv*
%endif

#--------------------------------------------------------------------------

%package -n infiniband-diags
Summary:	InfiniBand Diagnostic Tools
Group:		System/Servers
Provides:	perl(IBswcountlimits)
Requires:	%{libibmad} = %{EVRD}
Requires:	%{libibnetdisc} = %{EVRD}

%description -n infiniband-diags
This package provides IB diagnostic programs and scripts needed to diagnose an
IB subnet.  infiniband-diags now also provides libibmad.  libibmad provides
low layer IB functions for use by the IB diagnostic and management
programs. These include MAD, SA, SMP, and other basic IB functions.

%files -n infiniband-diags
%{_sbindir}/ibaddr
%{_mandir}/man8/ibaddr*
%{_sbindir}/ibnetdiscover
%{_mandir}/man8/ibnetdiscover*
%{_sbindir}/ibping
%{_mandir}/man8/ibping*
%{_sbindir}/ibportstate
%{_mandir}/man8/ibportstate*
%{_sbindir}/ibroute
%{_mandir}/man8/ibroute.*
%{_sbindir}/ibstat
%{_mandir}/man8/ibstat.*
%{_sbindir}/ibsysstat
%{_mandir}/man8/ibsysstat*
%{_sbindir}/ibtracert
%{_mandir}/man8/ibtracert*
%{_sbindir}/perfquery
%{_mandir}/man8/perfquery*
%{_sbindir}/sminfo
%{_mandir}/man8/sminfo*
%{_sbindir}/smpdump
%{_mandir}/man8/smpdump*
%{_sbindir}/smpquery
%{_mandir}/man8/smpquery*
%{_sbindir}/saquery
%{_mandir}/man8/saquery*
%{_sbindir}/vendstat
%{_mandir}/man8/vendstat*
%{_sbindir}/iblinkinfo
%{_mandir}/man8/iblinkinfo*
%{_sbindir}/ibqueryerrors
%{_mandir}/man8/ibqueryerrors*
%{_sbindir}/ibcacheedit
%{_mandir}/man8/ibcacheedit*
%{_sbindir}/ibccquery
%{_mandir}/man8/ibccquery*
%{_sbindir}/ibccconfig
%{_mandir}/man8/ibccconfig*
%{_sbindir}/dump_fts
%{_mandir}/man8/dump_fts*
%{_sbindir}/ibhosts
%{_mandir}/man8/ibhosts*
%{_sbindir}/ibswitches
%{_mandir}/man8/ibswitches*
%{_sbindir}/ibnodes
%{_mandir}/man8/ibnodes*
%{_sbindir}/ibrouters
%{_mandir}/man8/ibrouters*
%{_sbindir}/ibfindnodesusing.pl
%{_mandir}/man8/ibfindnodesusing*
%{_sbindir}/ibidsverify.pl
%{_mandir}/man8/ibidsverify*
%{_sbindir}/check_lft_balance.pl
%{_mandir}/man8/check_lft_balance*
%{_sbindir}/dump_lfts.sh
%{_mandir}/man8/dump_lfts*
%{_sbindir}/dump_mfts.sh
%{_mandir}/man8/dump_mfts*
%{_sbindir}/ibclearerrors
%{_mandir}/man8/ibclearerrors*
%{_sbindir}/ibclearcounters
%{_mandir}/man8/ibclearcounters*
%{_sbindir}/ibstatus
%{_mandir}/man8/ibstatus*
%{_mandir}/man8/infiniband-diags*
%{perl_vendorlib}/IBswcountlimits.pm
%config(noreplace) %{_sysconfdir}/infiniband-diags/error_thresholds
%config(noreplace) %{_sysconfdir}/infiniband-diags/ibdiag.conf

#--------------------------------------------------------------------------

%package -n %{libibmad}
Summary: OpenFabrics Alliance InfiniBand mad (userspace management datagram) library
Group:		System/Libraries

%description -n %{libibmad}
libibmad provides the userspace management datagram (umad) library
functions, which sit on top of the umad modules in the kernel. These
are used by the IB diagnostic and management tools, including OpenSM.

%files -n %{libibmad}
%{_libdir}/libibmad*.so.%{ibmadmajor}*

#--------------------------------------------------------------------------
%package -n infiniband-diags-compat
Summary: OpenFabrics Alliance InfiniBand Diagnostic Tools

%description -n infiniband-diags-compat
Deprecated scripts and utilities which provide duplicated functionality, most
often at a reduced performance. These are maintained for the time being for
compatibility reasons.

%files -n infiniband-diags-compat
%{_sbindir}/ibcheckerrs
%{_mandir}/man8/ibcheckerrs*
%{_sbindir}/ibchecknet
%{_mandir}/man8/ibchecknet*
%{_sbindir}/ibchecknode
%{_mandir}/man8/ibchecknode*
%{_sbindir}/ibcheckport
%{_mandir}/man8/ibcheckport.*
%{_sbindir}/ibcheckportwidth
%{_mandir}/man8/ibcheckportwidth*
%{_sbindir}/ibcheckportstate
%{_mandir}/man8/ibcheckportstate*
%{_sbindir}/ibcheckwidth
%{_mandir}/man8/ibcheckwidth*
%{_sbindir}/ibcheckstate
%{_mandir}/man8/ibcheckstate*
%{_sbindir}/ibcheckerrors
%{_mandir}/man8/ibcheckerrors*
%{_sbindir}/ibdatacounts
%{_mandir}/man8/ibdatacounts*
%{_sbindir}/ibdatacounters
%{_mandir}/man8/ibdatacounters*
%{_sbindir}/ibdiscover.pl
%{_mandir}/man8/ibdiscover*
%{_sbindir}/ibswportwatch.pl
%{_mandir}/man8/ibswportwatch*
%{_sbindir}/ibqueryerrors.pl
%{_sbindir}/iblinkinfo.pl
%{_sbindir}/ibprintca.pl
%{_mandir}/man8/ibprintca*
%{_sbindir}/ibprintswitch.pl
%{_mandir}/man8/ibprintswitch*
%{_sbindir}/ibprintrt.pl
%{_mandir}/man8/ibprintrt*
%{_sbindir}/set_nodedesc.sh

#--------------------------------------------------------------------------

%package -n	%{libibverbs}
Summary:	A library and drivers for direct userspace use of RDMA (InfiniBand/iWARP/RoCE) hardware
Group:		System/Libraries

%description -n %{libibverbs}
libibverbs is a library that allows userspace processes to use RDMA
"verbs" as described in the InfiniBand Architecture Specification and
the RDMA Protocol Verbs Specification.  This includes direct hardware
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
fast path operations.

%files -n %{libibverbs}
%{_libdir}/libibverbs*.so.%{ibverbsmajor}*

#--------------------------------------------------------------------------

%package -n libibverbs-utils
Summary:	Examples for the libibverbs library
Group:		System/Servers
Requires:	%{libibverbs} = %{EVRD}

%description -n libibverbs-utils
Useful libibverbs example programs such as ibv_devinfo, which
displays information about RDMA devices.

%files -n libibverbs-utils
%{_bindir}/ibv_*
%{_mandir}/man1/ibv_*
%dir %{_sysconfdir}/libibverbs.d
%config(noreplace) %{_sysconfdir}/libibverbs.d/*.driver


#--------------------------------------------------------------------------

%package -n	libibverbs-plugins
Summary:	A library and drivers for direct userspace use of RDMA (InfiniBand/iWARP/RoCE) hardware
Group:		System/Libraries
Provides:	%{_lib}cxgb3 = %{EVRD}
Provides:	%{_lib}cxgb4 = %{EVRD}
Provides:	%{_lib}hfi1 = %{EVRD}
Provides:	%{_lib}i40iw = %{EVRD}
Provides:	%{_lib}ipathverbs = %{EVRD}
Provides:	%{_lib}mlx4 = %{EVRD}
Provides:	%{_lib}mthca = %{EVRD}
Provides:	%{_lib}nes = %{EVRD}
Provides:	%{_lib}ocrdma = %{EVRD}
Provides:	%{_lib}rxe = %{EVRD}
Provides:	%{_lib}usnic_verbs = %{EVRD}

%description -n libibverbs-plugins
libibverbs is a library that allows userspace processes to use RDMA
"verbs" as described in the InfiniBand Architecture Specification and
the RDMA Protocol Verbs Specification.  This includes direct hardware
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
fast path operations.

Device-specific plug-in ibverbs userspace drivers are included:

- libcxgb3: Chelsio T3 iWARP HCA
- libcxgb4: Chelsio T4 iWARP HCA
- libhfi1: Intel Omni-Path HFI
- libhns: HiSilicon Hip06 SoC
- libi40iw: Intel Ethernet Connection X722 RDMA
- libipathverbs: QLogic InfiniPath HCA
- libmlx4: Mellanox ConnectX-3 InfiniBand HCA (except arm, s390)
- libmlx5: Mellanox Connect-IB/X-4+ InfiniBand HCA (except arm, s390, s390x)
- libmthca: Mellanox InfiniBand HCA
- libnes: NetEffect RNIC
- libocrdma: Emulex OneConnect RDMA/RoCE Device
- libqedr: QLogic QL4xxx RoCE HCA
- librxe: A software implementation of the RoCE protocol
- libvmw_pvrdma: VMware paravirtual RDMA device

%files -n libibverbs-plugins
%dir %{_libdir}/libibverbs
%{_libdir}/libibverbs/*.so

#--------------------------------------------------------------------------

%ifarch %{x86_64} %{ix86} %{armx}
%package -n	%{libefa}
Summary:	A library and drivers for direct userspace use of RDMA (InfiniBand/iWARP/RoCE) hardware
Group:		System/Libraries

%description -n %{libefa}
libibverbs is a library that allows userspace processes to use RDMA
"verbs" as described in the InfiniBand Architecture Specification and
the RDMA Protocol Verbs Specification.  This includes direct hardware
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
fast path operations.


%files -n %{libefa}
%{_libdir}/libefa.so.%{efamajor}*

#--------------------------------------------------------------------------

%package -n	%{libmlx4}
Summary:	A library and drivers for direct userspace use of RDMA (InfiniBand/iWARP/RoCE) hardware
Group:		System/Libraries

%description -n %{libmlx4}
libibverbs is a library that allows userspace processes to use RDMA
"verbs" as described in the InfiniBand Architecture Specification and
the RDMA Protocol Verbs Specification.  This includes direct hardware
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
fast path operations.

%files -n %{libmlx4}
%{_libdir}/libmlx4.so.%{mlx4major}*

#--------------------------------------------------------------------------
%package -n	%{libmlx5}
Summary:	A library and drivers for direct userspace use of RDMA (InfiniBand/iWARP/RoCE) hardware
Group:		System/Libraries

%description -n %{libmlx5}
libibverbs is a library that allows userspace processes to use RDMA
"verbs" as described in the InfiniBand Architecture Specification and
the RDMA Protocol Verbs Specification.  This includes direct hardware
access from userspace to InfiniBand/iWARP adapters (kernel bypass) for
fast path operations.

%files -n %{libmlx5}
%{_libdir}/libmlx5.so.%{mlx5major}*
%endif

#--------------------------------------------------------------------------
%package -n ibacm
Summary:	InfiniBand Communication Manager Assistant
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description -n ibacm
The ibacm daemon helps reduce the load of managing path record lookups on
large InfiniBand fabrics by providing a user space implementation of what
is functionally similar to an ARP cache.  The use of ibacm, when properly
configured, can reduce the SA packet load of a large IB cluster from O(n^2)
to O(n).  The ibacm daemon is started and normally runs in the background,
user applications need not know about this daemon as long as their app
uses librdmacm to handle connection bring up/tear down.  The librdmacm
library knows how to talk directly to the ibacm daemon to retrieve data.

%files -n ibacm
%config(noreplace) %{_sysconfdir}/rdma/ibacm_opts.cfg
%{_bindir}/ib_acme
%{_sbindir}/ibacm
%{_mandir}/man8/ibacm.*
%{_mandir}/man1/ib_acme.*
%{_mandir}/man7/ibacm.*
%{_mandir}/man7/ibacm_prov.*
%{_unitdir}/ibacm.service
%{_unitdir}/ibacm.socket
%dir %{_libdir}/ibacm
%{_libdir}/ibacm/*
%doc %{_docdir}/%{name}-%{version}/ibacm.md

#--------------------------------------------------------------------------

%package -n iwpmd
Summary:	iWarp Port Mapper userspace daemon
Group:		System/Servers
Requires:	%{name} = %{EVRD}

%description -n iwpmd
iwpmd provides a userspace service for iWarp drivers to claim
tcp ports through the standard socket interface.

%files -n iwpmd
%{_sbindir}/iwpmd
%{_unitdir}/iwpmd.service
%config(noreplace) %{_sysconfdir}/rdma/modules/iwpmd.conf
%config(noreplace) %{_sysconfdir}/iwpmd.conf
%{_udevrulesdir}/90-iwpmd.rules
%{_mandir}/man8/iwpmd.*
%{_mandir}/man5/iwpmd.*

#--------------------------------------------------------------------------

%package -n %{libibumad}
Summary:	OpenFabrics Alliance InfiniBand umad (userspace management datagram) library
Group:		System/Libraries

%description -n %{libibumad}
libibumad provides the userspace management datagram (umad) library
functions, which sit on top of the umad modules in the kernel. These
are used by the IB diagnostic and management tools, including OpenSM.

%files -n %{libibumad}
%{_libdir}/libibumad*.so.%{ibumadmajor}*

#--------------------------------------------------------------------------

%package -n %{libibnetdisc}
Summary:	Userspace RDMA Connection Manager
Group:		System/Libraries

%description -n %{libibnetdisc}
librdmacm provides a userspace RDMA Communication Management API.

%files -n %{libibnetdisc}
%{_libdir}/libibnetdisc*.so.%{ibnetdiscmajor}*

#--------------------------------------------------------------------------

%package -n %{librdmacm}
Summary:	Userspace RDMA Connection Manager
Group:		System/Libraries

%description -n %{librdmacm}
librdmacm provides a userspace RDMA Communication Management API.

%files -n %{librdmacm}
%{_libdir}/librdmacm*.so.%{rdmacmmajor}*

#--------------------------------------------------------------------------

%package -n librdmacm-utils
Summary:	Examples for the librdmacm library
Group:		System/Servers

%description -n librdmacm-utils
Example test programs for the librdmacm library.

%files -n librdmacm-utils
%{_bindir}/cmtime
%{_bindir}/mckey
%{_bindir}/rcopy
%{_bindir}/rdma_client
%{_bindir}/rdma_server
%{_bindir}/rdma_xclient
%{_bindir}/rdma_xserver
%{_bindir}/riostream
%{_bindir}/rping
%{_bindir}/rstream
%{_bindir}/ucmatose
%{_bindir}/udaddy
%{_bindir}/udpong
%{_mandir}/man1/cmtime.*
%{_mandir}/man1/mckey.*
%{_mandir}/man1/rcopy.*
%{_mandir}/man1/rdma_client.*
%{_mandir}/man1/rdma_server.*
%{_mandir}/man1/rdma_xclient.*
%{_mandir}/man1/rdma_xserver.*
%{_mandir}/man1/riostream.*
%{_mandir}/man1/rping.*
%{_mandir}/man1/rstream.*
%{_mandir}/man1/ucmatose.*
%{_mandir}/man1/udaddy.*
%{_mandir}/man1/udpong.*

#--------------------------------------------------------------------------

%package -n librdmacm-plugins
Summary:	Userspace RDMA Connection Manager
Group:		System/Libraries

%description -n librdmacm-plugins
librdmacm provides a userspace RDMA Communication Management API.

%files -n librdmacm-plugins
%dir %{_libdir}/rsocket
%{_libdir}/rsocket/*.so*
%{_mandir}/man7/rsocket.*

#--------------------------------------------------------------------------

%package -n srp_daemon
Summary:	Tools for using the InfiniBand SRP protocol devices
Group:		System/Servers
Obsoletes:	srptools <= 1.0.3
Provides:	srptools = %{EVRD}
Obsoletes:	openib-srptools <= 0.0.6
Requires:	%{name} = %{EVRD}

%description -n srp_daemon
In conjunction with the kernel ib_srp driver, srp_daemon allows you to
discover and use SCSI devices via the SCSI RDMA Protocol over InfiniBand.

%files -n srp_daemon
%config(noreplace) %{_sysconfdir}/srp_daemon.conf
%config(noreplace) %{_sysconfdir}/rdma/modules/srp_daemon.conf
%{_libexecdir}/srp_daemon/start_on_all_ports
%{_unitdir}/srp_daemon.service
%{_unitdir}/srp_daemon_port@.service
%{_sbindir}/ibsrpdm
%{_sbindir}/srp_daemon
%{_sbindir}/run_srp_daemon
%{_udevrulesdir}/60-srp_daemon.rules
%{_mandir}/man8/srp_daemon.8*
%{_mandir}/man8/ibsrpdm.8*
%{_mandir}/man5/srp_daemon.service.5*
%{_mandir}/man5/srp_daemon_port@.service.5*
%doc %{_docdir}/%{name}-%{version}/ibsrpdm.md

#--------------------------------------------------------------------------
%package -n python3-pyverbs
Summary:	Python3 API over IB verbs
Group:		Development/Python
Provides:	python3-verbs = %{EVRD}

BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(docutils)

%description -n python3-pyverbs
Pyverbs is a Cython-based Python API over libibverbs, providing an
easy, object-oriented access to IB verbs.

%files -n python3-pyverbs
%{python3_sitearch}/pyverbs
%{_docdir}/%{name}-%{version}/tests/*.py

#--------------------------------------------------------------------------

%prep
%setup -q

%build
%define CMAKE_FLAGS -GNinja

%{!?EXTRA_CMAKE_FLAGS: %define EXTRA_CMAKE_FLAGS %{nil}}

# Pass all of the rpm paths directly to GNUInstallDirs and our other defines.
%cmake %{CMAKE_FLAGS} \
        -DCMAKE_BUILD_TYPE=Release \
        -DCMAKE_INSTALL_BINDIR:PATH=%{_bindir} \
        -DCMAKE_INSTALL_SBINDIR:PATH=%{_sbindir} \
        -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
        -DCMAKE_INSTALL_LIBEXECDIR:PATH=%{_libexecdir} \
        -DCMAKE_INSTALL_LOCALSTATEDIR:PATH=%{_localstatedir} \
        -DCMAKE_INSTALL_SHAREDSTATEDIR:PATH=%{_sharedstatedir} \
        -DCMAKE_INSTALL_INCLUDEDIR:PATH=%{_includedir} \
        -DCMAKE_INSTALL_INFODIR:PATH=%{_infodir} \
        -DCMAKE_INSTALL_MANDIR:PATH=%{_mandir} \
        -DCMAKE_INSTALL_SYSCONFDIR:PATH=%{_sysconfdir} \
        -DCMAKE_INSTALL_SYSTEMD_SERVICEDIR:PATH=%{_unitdir} \
        -DCMAKE_INSTALL_INITDDIR:PATH=%{_initrddir} \
        -DCMAKE_INSTALL_RUNDIR:PATH=%{_rundir} \
        -DCMAKE_INSTALL_DOCDIR:PATH=%{_docdir}/%{name}-%{version} \
        -DCMAKE_INSTALL_UDEV_RULESDIR:PATH=%{_udevrulesdir} \
	-DCMAKE_INSTALL_PERLDIR:PATH=%{perl_vendorlib} \
        -DENABLE_IBDIAGS_COMPAT:BOOL=True \
        -DPYTHON_EXECUTABLE:PATH=%{__python3} \
        -DCMAKE_INSTALL_PYTHON_ARCH_LIB:PATH=%{python3_sitearch} \
        -DNO_PYVERBS=0 \
	%{EXTRA_CMAKE_FLAGS}

%ninja_build

%install
%ninja_install -C build

mkdir -p %{buildroot}/%{_sysconfdir}/rdma

# Red Hat specific glue
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
mkdir -p %{buildroot}%{_libexecdir}
mkdir -p %{buildroot}%{_udevrulesdir}
mkdir -p %{buildroot}%{dracutlibdir}/modules.d/05rdma
mkdir -p %{buildroot}%{sysmodprobedir}
install -D -m0644 redhat/rdma.conf %{buildroot}/%{_sysconfdir}/rdma/rdma.conf
install -D -m0644 redhat/rdma.mlx4.conf %{buildroot}/%{_sysconfdir}/rdma/mlx4.conf
install -D -m0644 redhat/rdma.mlx4.sys.modprobe %{buildroot}%{sysmodprobedir}/libmlx4.conf
install -D -m0755 redhat/rdma.mlx4-setup.sh %{buildroot}%{_libexecdir}/mlx4-setup.sh
install -D -m0755 redhat/rdma.modules-setup.sh %{buildroot}%{dracutlibdir}/modules.d/05rdma/module-setup.sh

# ibacm
pushd build
LD_LIBRARY_PATH="$LD_LIBRARY_PATH:./lib" bin/ib_acme -D . -O
install -D -m0644 ibacm_opts.cfg %{buildroot}%{_sysconfdir}/rdma/
popd

# Delete the package's init.d scripts
rm -rf %{buildroot}/%{_initrddir}/
rm -f %{buildroot}/%{_sbindir}/srp_daemon.sh

%post -n rdma-core
# we ship udev rules, so trigger an update.
udevadm trigger --subsystem-match=infiniband --action=change || true
udevadm trigger --subsystem-match=net --action=change || true
udevadm trigger --subsystem-match=infiniband_mad --action=change || true

%post -n ibacm
%systemd_post ibacm.service
%preun -n ibacm
%systemd_preun ibacm.service
%postun -n ibacm
%systemd_postun_with_restart ibacm.service

%post -n srp_daemon
%systemd_post srp_daemon.service
%preun -n srp_daemon
%systemd_preun srp_daemon.service
%postun -n srp_daemon
%systemd_postun_with_restart srp_daemon.service

%post -n iwpmd
%systemd_post iwpmd.service
%preun -n iwpmd
%systemd_preun iwpmd.service
%postun -n iwpmd
%systemd_postun_with_restart iwpmd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16925 |21mr|re2-2021.04.01-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 9
%define	libname %mklibname re2_ %{major}
%define develname %mklibname re2 -d

%define srcver %(echo %{version}|sed 's/\\./-/g')

Summary:	An efficient, principled regular expression library
Name:		re2
Version:	2021.04.01
Release:	2
License:	BSD like
Group:		System/Libraries
URL:		http://code.google.com/p/re2/
Source0:	https://github.com/google/re2/archive/%{srcver}.tar.gz?/%{name}-%{srcver}.tar.gz

%description
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python.

#----------------------------------------------------------------
%package -n	%{libname}
Summary:	An efficient, principled regular expression library
Group:		System/Libraries

%description -n	%{libname}
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------
%package -n	%{develname}
Summary:	Development files for the re2 library
Group:		Development/C++
Requires:	%{libname} >= %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{develname}
RE2 is a fast, safe, thread-friendly alternative to backtracking regular
expression engines like those used in PCRE, Perl, and Python.

This package contains the development files for re2.

%files -n %{develname}
%{_libdir}/*.so
%{_libdir}/pkgconfig/re2.pc
%{_includedir}/%{name}/

#------------------------------------------------------------------
%prep

%setup -n re2-%{srcver}

%build

%make CXXFLAGS="%{optflags} -pthread"

%install

%makeinstall_std prefix=%{_prefix} libdir=%{_libdir}

rm -f %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16926 |21mr|re2c-3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A tool for generating C-based recognizers from regular expressions
Name:		re2c
Version:	3.1
Release:	1
License:	Public Domain
Group:		Development/Other
Url:		http://re2c.org/
Source0:	https://github.com/skvadrik/re2c/archive/%{version}.tar.gz

%description
re2c is a great tool for writing fast and flexible lexers. It has served many
people well for many years and it deserves to be maintained more actively. re2c
is on the order of 2-3 times faster than a flex based scanner, and its input
model is much more flexible.

%files
%doc doc/* examples CHANGELOG
%attr(0755,root,root) %{_bindir}/re2c
%attr(0755,root,root) %{_bindir}/re2go
%attr(0755,root,root) %{_bindir}/re2rust
%{_mandir}/man1/re2*
%{_datadir}/re2c/stdlib/unicode_categories.re

#----------------------------------------------------------------------------

%prep
%autosetup -p1

for i in $(find . -type d -name CVS) $(find . -type f -name .cvs\*) $(find . -type f -name .#\*); do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

find doc -type d |xargs chmod 0755
find doc -type f |xargs chmod 0644

find test -type f -exec chmod 644 {} \;

%build
./autogen.sh
%configure
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16927 |21mr|readline6-6.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname readline

%define major 6
%define libname %mklibname %{oname} %{major}
%define libhist %mklibname history %{major}

Summary:	Library for reading lines from a terminal
Name:		readline6
Version:	6.3
Release:	9
License:	GPLv2+
Group:		System/Libraries
Url:		http://tiswww.case.edu/php/chet/readline/rltop.html
Source0:	ftp://ftp.gnu.org/gnu/readline/%{oname}-%{version}.tar.gz
Source1:	ftp://ftp.gnu.org/gnu/readline/%{oname}-%{version}.tar.gz.sig
Patch0:		readline-4.3-no_rpath.patch
Patch3:		readline-4.1-outdated.patch
Patch4:		rl-header.patch
Patch5:		rl-attribute.patch
Patch6:		readline-6.0-fix-shared-libs-perms.patch
Patch8:		readline-6.2-fix-missing-linkage.patch
BuildRequires:	pkgconfig(ncurses)

%description
The "readline" library will read a line from the terminal and return it,
allowing the user to edit the line with the standard emacs editing keys.
It allows the programmer to give the user an easier-to-use and more
intuitive interface.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libreadline library for readline
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked to readline.

%files -n %{libname}
/%{_lib}/libreadline.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libhist}
Summary:	Shared libhistory library for readline
Group:		System/Libraries
Conflicts:	%{_lib}readline6 < 6.3

%description -n %{libhist}
This package contains the libhistory library from readline.

%files -n %{libhist}
/%{_lib}/libhistory.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%apply_patches

sed -e 's#/usr/local#%{_prefix}#g' -i doc/texi2html
libtoolize --copy --force

%build
%configure \
	--enable-static=no \
	--with-curses \
	--enable-multibyte

%make

%install
%makeinstall_std
# put all libs in /lib because some package needs it
# before /usr is mounted
install -d %{buildroot}/%{_lib}
for l in libhistory.so libreadline.so; do
	rm %{buildroot}%{_libdir}/${l}
	mv %{buildroot}%{_libdir}/${l}.%{major}* %{buildroot}/%{_lib}
	ln -sr %{buildroot}/%{_lib}/${l}.%{major}.* %{buildroot}%{_libdir}/${l}
done

rm -rf %{buildroot}%{_docdir}/readline/{CHANGES,INSTALL,README} \
	%{buildroot}%{_prefix}/uclibc%{_docdir}/readline/{CHANGES,INSTALL,README}

rm -rf %{buildroot}%{_mandir}/man3/*
rm -rf %{buildroot}%{_includedir}/readline
rm -rf %{buildroot}%{_libdir}/libhistory.so
rm -rf %{buildroot}%{_libdir}/libreadline.so
rm -rf %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16928 |21mr|readline-8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname %{name} %{major}
%define libhist %mklibname history %{major}
# Unfortunately, readline uses version numbers as sonames,
# even if the ABI remains stable...
%define libname6 %mklibname %{name} 6
%define libhist6 %mklibname history 6
%define libname7 %mklibname %{name} 7
%define libhist7 %mklibname history 7
%define devname %mklibname %{name} -d
%define patchlevel 2

Summary:	Library for reading lines from a terminal
Name:		readline
Version:	8.1
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://tiswww.case.edu/php/chet/readline/rltop.html
Source0:	ftp://ftp.gnu.org/gnu/readline/%{name}-%{version}.tar.gz
# Upstream patches
%if 0%{patchlevel}
%(for i in $(seq 1 %{patchlevel}); do echo Patch$i: ftp://ftp.gnu.org/pub/gnu/readline/readline-%{version}-patches/readline$(echo %{version} |sed 's/\.//')-$(echo 000$i |rev |cut -b1-3 |rev); done)
%endif
Patch1000:	readline-4.3-no_rpath.patch
Patch1004:	rl-header.patch
Patch1005:	readline-8.1-rl-attribute.patch
Patch1008:	readline-6.2-fix-missing-linkage.patch
BuildRequires:	ncurses-devel

%description
The "readline" library will read a line from the terminal and return it,
allowing the user to edit the line with the standard emacs editing keys.
It allows the programmer to give the user an easier-to-use and more
intuitive interface.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libreadline library for readline
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
%rename %{libname6}
%rename %{libname7}
%if "%{_lib}" == "lib64"
Provides:	libreadline.so.6()(64bit)
Provides:	libreadline.so.7()(64bit)
%else
Provides:	libreadline.so.6
Provides:	libreadline.so.7
%endif
Provides:	libreadline.so.6%{?_isa}
Provides:	libreadline.so.7%{?_isa}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked to readline.

%files -n %{libname}
/%{_lib}/libreadline.so.%{major}*
/%{_lib}/libreadline.so.7
/%{_lib}/libreadline.so.6

#----------------------------------------------------------------------------

%package -n %{libhist}
Summary:	Shared libhistory library for readline
Group:		System/Libraries
%rename %{libhist6}
%rename %{libhist7}
%if "%{_lib}" == "lib64"
Provides:	libhistory.so.6()(64bit)
Provides:	libhistory.so.7()(64bit)
%else
Provides:	libhistory.so.6
Provides:	libhistory.so.7
%endif
Provides:	libreadline.so.6%{?_isa}
Provides:	libreadline.so.7%{?_isa}

%description -n %{libhist}
This package contains the libhistory library from readline.

%files -n %{libhist}
/%{_lib}/libhistory.so.%{major}*
/%{_lib}/libhistory.so.7
/%{_lib}/libhistory.so.6

#----------------------------------------------------------------------------

%package doc
Summary:	Readline documentation in GNU info format
Group:		Books/Computer books
Provides:	%{name}-doc = %{EVRD}
Obsoletes:	%{libname}-doc < %{EVRD}
BuildArch:	noarch

%description doc
This package contains readline documentation in the GNU info format.

%files doc
%{_infodir}/history.info*
%{_infodir}/readline.info*
%{_infodir}/rluserman.info*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files for developing programs that use the readline library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libhist} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The "readline" library will read a line from the terminal and return it,
using prompt as a prompt.  If prompt is null, no prompt is issued.  The
line returned is allocated with malloc(3), so the caller must free it when
finished.  The line returned has the final newline removed, so only the
text of the line remains.

%files -n %{devname}
%doc MANIFEST README USAGE
%doc doc examples support
%{_mandir}/man3/*
%{_includedir}/readline
%{_libdir}/libhistory.so
%{_libdir}/libreadline.so
%{_libdir}/pkgconfig/readline.pc

#----------------------------------------------------------------------------

%prep
%setup -q
# Upstream patches
%if 0%{patchlevel}
%(for i in `seq 1 %{patchlevel}`; do echo %%patch$i -p0; done)
%endif

%patch1000 -p1
%patch1004 -p1
%patch1005 -p1
%patch1008 -p1

find . -name "*.orig" |xargs rm

sed -e 's#/usr/local#%{_prefix}#g' -i doc/texi2html
libtoolize --copy --force

%build
%configure \
    --enable-static=no \
    --with-curses \
    --enable-multibyte

%make_build

%install
mkdir -p %{buildroot}%{_libdir}/pkgconfig
%make_install
if [ -e %{buildroot}%{_includedir}/readline/rlmbutil.h ]; then
	printf '%ss\n' "rlmbutil.h is installed now -- please remove the workaround from the spec"
	exit 1
else
	cp rlmbutil.h %{buildroot}%{_includedir}/readline/
fi

# put all libs in /lib because some package needs it
# before /usr is mounted
install -d %{buildroot}/%{_lib}
for l in libhistory.so libreadline.so; do
	rm %{buildroot}%{_libdir}/${l}
	mv %{buildroot}%{_libdir}/${l}.%{major}* %{buildroot}/%{_lib}
	ln -sr %{buildroot}/%{_lib}/${l}.%{major}.* %{buildroot}%{_libdir}/${l}
	# Unfortunately, readline uses version numbers as sonames,
	# even if the ABI remains stable...
	ln -s ${l}.%{major} %{buildroot}/%{_lib}/${l}.6
	ln -s ${l}.%{major} %{buildroot}/%{_lib}/${l}.7
done

rm -rf %{buildroot}%{_docdir}/readline/{CHANGES,INSTALL,README}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16929 |21mr|realmd-0.17.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# autoreconf is enough
%define _disable_rebuild_configure 1

Summary:	Kerberos realm enrollment service
Name:		realmd
Version:	0.17.1
Release:	3
License:	LGPLv2+
Group:		Networking/Other
Url:		http://www.freedesktop.org/software/realmd/
#Source0:	http://www.freedesktop.org/software/realmd/releases/realmd-%{version}.tar.gz
Source0:	https://gitlab.freedesktop.org/realmd/realmd/-/archive/%{version}/realmd-%{version}.tar.gz
Source10:	realmd-rosa.conf
Source20:	realmd-rosa-setup.sh
Patch2:		0001-ROSA-platform-support.patch

BuildRequires:	gtk-doc
BuildRequires:	docbook-style-xsl
BuildRequires:	intltool
BuildRequires:	xmlto
BuildRequires:	gettext-devel
BuildRequires:	krb5-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(packagekit-glib2)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(systemd)

%description
realmd is a DBus system service which manages discovery and enrollment
in realms and domains like Active Directory or IPA. The control center
uses realmd as the back end to 'join' a domain simply and automatically
configure things correctly.

%files -f realmd.lang
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%{_datadir}/dbus-1/system-services/org.freedesktop.realmd.service
%{_datadir}/polkit-1/actions/org.freedesktop.realmd.policy
%dir %{_datadir}/realmd
%{_datadir}/realmd/*.conf
%{_localstatedir}/cache/realmd/
%{_mandir}/man8/realm.8.*
%{_mandir}/man5/realmd.conf.5.*
%{_sbindir}/realm
%{_libexecdir}/realmd
%{_libexecdir}/realmd-rosa-setup
%{_sysconfdir}/dbus-1/system.d/org.freedesktop.realmd.conf
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#-------------------------------------------------------------------------------

%package devel-docs
Summary:	Developer documentation files for %{name}
Group:		Documentation

%description devel-docs
The %{name}-devel-docs package contains developer documentation for developing
applications that use %{name}.

%files devel-docs
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%doc %{_datadir}/doc/realmd/

#-------------------------------------------------------------------------------
# meta-packages
#-------------------------------------------------------------------------------

%package -n task-realmd-ad-winbind
Summary:	Meta-package for enrollment into an AD domain using realmd and winbind
Requires:	%{name}
# in sync with realmd-rosa.conf
# oddjob is not used
Requires:	krb5
Requires:	krb5-workstation
Requires:	libnss-role
Requires:	/usr/bin/net
Requires:	/usr/sbin/winbindd
Requires:	/usr/bin/wbinfo
Requires:	/usr/bin/authselect
Requires:	/usr/bin/systemctl

%description -n task-realmd-ad-winbind
%{summary}
realmd automatically installs these packages via packagekit if needed.

%files -n task-realmd-ad-winbind

#-------------------------------------------------------------------------------

%package -n task-realmd-ad-sssd
Summary:	Meta-package for enrollment into an AD domain using realmd and sssd
Requires:	%{name}
# in sync with realmd-rosa.conf
# oddjob is not used
Requires:	krb5
Requires:	krb5-workstation
Requires:	libnss-role
Requires:	/usr/sbin/adcli
Requires:	/usr/bin/net
Requires:	/usr/sbin/sssd
Requires:	/usr/bin/authselect
Requires:	/usr/bin/systemctl

%description -n task-realmd-ad-sssd
%{summary}
realmd automatically installs these packages via packagekit if needed.

%files -n task-realmd-ad-sssd

#-------------------------------------------------------------------------------

%package -n task-realmd-freeipa
Summary:	Meta-package for enrollment into a FreeIPA domain using realmd
Requires:	%{name}
# in sync with realmd-rosa.conf
# oddjob is not used
Requires:	krb5
# /usr/sbin/ipa-client is a symlink by update-alternatives
#Requires:	/usr/sbin/ipa-client-install
Requires:	ipa-client
Requires:	/usr/sbin/sssd
Requires:	/usr/bin/authselect
Requires:	/usr/bin/systemctl

%description -n task-realmd-freeipa
%{summary}
realmd automatically installs these packages via packagekit if needed.

%files -n task-realmd-freeipa

#-------------------------------------------------------------------------------

%prep
%autosetup -p1
install -m0644 %{SOURCE10} service/

%build
env NOCONFIGURE=1 ./autogen.sh
# "new" samba means 4.15+, https://gitlab.freedesktop.org/realmd/realmd/-/commit/68f73b78a342
%configure \
	--with-new-samba-cli-options=yes \
	--with-private-dir=%{_datadir}/realmd \
	--
%make

%install
%makeinstall_std
install -m0755 %{SOURCE20} %{buildroot}%{_libexecdir}/realmd-rosa-setup

%find_lang realmd

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16930 |21mr|recode-3.7.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	GNU recode
Name:		recode
Version:	3.7.8
Release:	1
License:	GPLv2+
Group:		Text tools
Url:		https://github.com/rrthomas/recode
Source0:	https://github.com/rrthomas/recode/releases/download/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	libtool
BuildRequires:	flex
BuildRequires:	texinfo
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	help2man
BuildRequires:	perl-Locale-gettext

%description
The GNU recode utility converts files between various character sets.

%files -f %{name}.lang
%doc COPYING INSTALL NEWS README
%doc THANKS doc
%{_bindir}/*
%{_mandir}/man1/*
%{_infodir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared GNU recode library
Group:		System/Libraries

%description -n %{libname}
The GNU recode utility converts files between various character sets.

This package provides the shared recode library.

%files -n %{libname}
%{_libdir}/librecode.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the %{libname} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the %{libname} library.

%files -n %{devname}
%defattr(0644,root,root,755)
%doc contrib
%{_libdir}/*.so
%{_libdir}/*.a
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -D_REENTRANT -fPIC"
autoreconf -fiv

%configure \
	--enable-static \
	--without-included-gettext

# no -recheck hack
touch *

%make_build CFLAGS="%{optflags} -D_REENTRANT -fPIC" -j1

%install
%make_install

# house cleansing
rm -f %{buildroot}%{_infodir}/dir

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16931 |21mr|redis-7.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		redis
Version:	7.2.5
Release:	1
Summary:	A persistent key-value database
Group:		Databases
License:	BSD
URL:		http://redis.io/
Source0:	https://github.com/redis/redis/archive/refs/tags/7.2.5.tar.gz?/%{name}-%{version}.tar.gz
Source1:	redis-limit-systemd
Source2:	redis-sentinel.service
Source3:	redis-shutdown
Source4:	redis.logrotate
# Based on, but not identical to, Fedora's file
Source5:	redis.service
Patch0:		0001-1st-man-pageis-for-redis-cli-redis-benchmark-redis-c.patch
Patch1:		0001-redis-7.2.5-workaround-make-deadlock.patch
# CVE-2023-41053 and CVE-2022-3647 fixed in version 7.0.14
BuildRequires:    pkgconfig(lua)
BuildRequires:    procps-ng
BuildRequires:    systemd
BuildRequires:    tcl
BuildRequires:    pkgconfig(libsystemd)
Requires:         /bin/awk
Requires:         logrotate
BuildRequires:    rpm-helper
Requires(pre):    rpm-helper >= 0.24.8-1
Requires(postun): rpm-helper >= 0.24.8-1

%description
Redis is an advanced key-value store.
It is similar to memcached but the data set is not volatile,
and values can be strings, exactly like in memcached,
but also lists, sets, and ordered sets.
All this data types can be manipulated with atomic operations
to push/pop elements, add/remove elements, perform server side
union, intersection, difference between sets, and so
forth. Redis supports different kind of sorting abilities.

%prep
%autosetup -p1 -n %{name}-%{version}%{?beta:-%{beta}}

rm -rf deps/jemalloc

# No hidden build.
sed -i -e 's|\t@|\t|g' deps/lua/src/Makefile
sed -i -e 's|$(QUIET_CC)||g' src/Makefile
sed -i -e 's|$(QUIET_LINK)||g' src/Makefile
sed -i -e 's|$(QUIET_INSTALL)||g' src/Makefile
# Ensure deps are built with proper flags
sed -i -e 's|$(CFLAGS)|%{optflags}|g' deps/Makefile
sed -i -e 's|OPTIMIZATION?=-O3|OPTIMIZATION=%{optflags}|g' deps/hiredis/Makefile
sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/hiredis/Makefile
sed -i -e 's|$(CFLAGS)|%{optflags}|g' deps/linenoise/Makefile
sed -i -e 's|$(LDFLAGS)|%{?__global_ldflags}|g' deps/linenoise/Makefile

# Configuration file changes
sed -i -e 's|^logfile .*$|logfile /var/log/redis/redis.log|g' redis.conf
sed -i -e 's|^logfile .*$|logfile /var/log/redis/sentinel.log|g' sentinel.conf
sed -i -e 's|^dir .*$|dir /var/lib/redis|g' redis.conf

%build
%make \
	DEBUG="" \
	LDFLAGS="%{ldflags}" \
	CFLAGS+="%{optflags}" \
	LUA_LDFLAGS+="%{ldflags}" \
	MALLOC=libc \
	BUILD_WITH_SYSTEMD=yes \
	all

%install
%make install INSTALL="install -p" PREFIX=%{buildroot}%{_prefix}

# Filesystem
mkdir -p %{buildroot}%{_sharedstatedir}/%{name} \
	%{buildroot}%{_localstatedir}/log/%{name} \
	%{buildroot}%{_localstatedir}/run/%{name}

# Extras
install -pDm 755 %{S:3} %{buildroot}%{_bindir}/%{name}-shutdown

# Logrotate file
install -pDm 644 %{S:4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# Configuration files
mkdir -p %{buildroot}%{_sysconfdir}/redis/
install -pDm 644 redis.conf %{buildroot}%{_sysconfdir}/redis.conf
install -pDm 644 sentinel.conf %{buildroot}%{_sysconfdir}/redis-sentinel.conf

# Systemd unit files
install -pDm 644 %{S:2} %{buildroot}%{_unitdir}/redis-sentinel.service
install -pDm 644 %{S:5} %{buildroot}%{_unitdir}/redis.service

# Systemd limits
install -pDm 644 %{S:1} %{buildroot}%{_sysconfdir}/systemd/system/%{name}.service.d/limit.conf
install -pDm 644 %{S:1} %{buildroot}%{_sysconfdir}/systemd/system/%{name}-sentinel.service.d/limit.conf

%check
# Currently says all tests passed and then segfaults
#make test

%pre
%_pre_useradd %{name}  %{_sharedstatedir}/%{name} /sbin/nologin

%postun
%_postun_userdel %{name}

%files
%doc 00-RELEASENOTES BUGS COPYING
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/%{name}-sentinel.conf
%dir %attr(0755, redis, root) %{_localstatedir}/lib/%{name}
%dir %attr(0755, redis, root) %{_localstatedir}/log/%{name}
%{_bindir}/%{name}-*
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-sentinel.service
%dir %{_sysconfdir}/systemd/system/%{name}.service.d
%{_sysconfdir}/systemd/system/%{name}.service.d/limit.conf
%dir %{_sysconfdir}/systemd/system/%{name}-sentinel.service.d
%{_sysconfdir}/systemd/system/%{name}-sentinel.service.d/limit.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16932 |21mr|redis-protocol-0.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname redis
Name:          redis-protocol
Version:       0.7
Release:       9
Summary:       Java client and server implementation of Redis
License:       ASL 2.0
URL:           http://github.com/spullara/redis-protocol
Source0:       https://github.com/spullara/redis-protocol/archive/%{oname}-%{version}.tar.gz
# https://github.com/spullara/redis-protocol/issues/45
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(com.github.spullara.cli-parser:cli-parser)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(junit:junit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A very fast Redis client for the JVM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{oname}-%{version}

find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

# These modules use com.github.spullara.java:concurrent6
%pom_disable_module netty
# https://bugzilla.redhat.com/show_bug.cgi?id=849496
# org.webbitserver:webbit::test
%pom_disable_module netty-client
# io.netty:netty-all:4.0.0.CR3
%pom_disable_module netty4
%pom_disable_module netty4-client
%pom_disable_module netty4-server

# com.github.spullara.mustache.java:compiler:0.8.9
%pom_disable_module redisgen

%pom_remove_plugin :maven-assembly-plugin benchmark

%build

# use web connection
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16933 |21mr|redland-1.0.17-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
# TODO: properly name packages (librdf0 and librdf-devel)
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define _disable_rebuild_configure %nil

Summary:	Redland RDF Application Framework
Name:		redland
Version:	1.0.17
Release:	6
License:	LGPLv2.1+ ASL 2.0
Group:		Development/Other
Source0:	http://download.librdf.org/source/%{name}-%{version}.tar.gz
Url:		http://librdf.org/
BuildRequires:	db-devel >= 5.2
BuildRequires:	gmp-devel
BuildRequires:	libtool-devel
BuildRequires:	mysql-devel
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(rasqal)
BuildRequires:	pkgconfig(sqlite3)
Conflicts:	%{devname} < 1.0.13
Requires:	rasqal
Requires:	raptor2

%description
Redland is a library that provides a high-level interface for RDF
(Resource Description Framework) implemented in an object-based API.
It is modular and supports different RDF/XML parsers, storage
mechanisms and other elements. Redland is designed for applications
developers to provide RDF support in their applications as well as
for RDF developers to experiment with the technology.

%files
%doc AUTHORS ChangeLog README NEWS
%doc *.html
%{_bindir}/redland-db-upgrade
%{_bindir}/rdfproc
%{_libdir}/%{name}/
%{_datadir}/%{name}/
%{_mandir}/man1/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries

%description -n %{libname}
Dynamic libraries from %{name}.

%files -n %{libname}
%{_libdir}/librdf.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and includes files for developing programs based on %{name}.

%files -n %{devname}
%{_bindir}/redland-config
%{_libdir}/*.so
%{_includedir}/redland.h
%{_includedir}/librdf.h
%{_includedir}/rdf_*.h
%{_libdir}/pkgconfig/*.pc
%{_datadir}/gtk-doc/*/*

#----------------------------------------------------------------------------

%prep
%setup -q
# hack to nuke rpaths
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure

%build
./autogen.sh
%configure \
	--disable-static \
	--without-included-ltdl \
	--with-mysql \
	--with-postgresql \
	--enable-gtk-doc

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16934 |21mr|reflectasm-1.11.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          reflectasm
Version:       1.11.0
Release:       9
Summary:       High performance Java library that provides reflection by using code generation
License:       BSD
URL:           https://github.com/EsotericSoftware/reflectasm
Source0:       https://github.com/EsotericSoftware/reflectasm/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.ow2.asm:asm)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ReflectASM is a very small Java library that provides
high performance reflection by using code generation.
An access class is generated to set/get fields,
call methods, or create a new instance. The access class
uses byte-code rather than Java's reflection, so it
is much faster. It can also access primitive fields
via byte-code to avoid boxing.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
find -name "*.class" -delete
find -name "*.jar" -delete

sed -i 's/\r//' license.txt
# Do not shade asm
%pom_remove_plugin :maven-shade-plugin

%mvn_file :%{name} %{name}
%mvn_alias :%{name} "com.esotericsoftware.%{name}:%{name}"

# AssertionFailedError: expected:<1> but was:<0>
rm -r test/com/esotericsoftware/reflectasm/ClassLoaderTest.java

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license license.txt

%files javadoc -f .mfiles-javadoc
%license license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16935 |21mr|reflections-0.9.10-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 91af9aa088b9e29d36c44b53e63b378a2ba501cd

Name:          reflections
Version:       0.9.10
Release:       9
Summary:       Java run-time meta-data analysis
License:       WTFPL
Group:         Development/Java
URL:           https://github.com/ronmamo/reflections
Source0:       https://github.com/ronmamo/reflections/archive/%{githash}/%{name}-%{githash}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.code.findbugs:annotations)
BuildRequires:  mvn(com.google.code.gson:gson)
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-vfs2)
BuildRequires:  mvn(org.javassist:javassist)
BuildRequires:  mvn(org.jsr-305:ri)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  java-atk-wrapper
%if 0
BuildRequires:  openjfx
%endif

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A Java run-time meta-data analysis, in the spirit of Scannotations

Reflections scans your class-path, indexes the meta-data, allows you
to query it on run-time and may save and collect that information
for many modules within your project.

Using Reflections you can query your meta-data such as:
* get all sub types of some type
* get all types/methods/fields annotated with some annotation,
  w/o annotation parameters matching
* get all resources matching matching a regular expression

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

# Unwanted
%pom_remove_plugin :maven-clean-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-source-plugin
# Use system maven default conf
%pom_remove_plugin :maven-javadoc-plugin

# Force servlet 3.1 apis
%pom_change_dep :servlet-api :javax.servlet-api:3.1.0

# Cannot find symbol package javax.annotation
%pom_add_dep org.jsr-305:ri

%mvn_file :%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license COPYING.txt

%files javadoc -f .mfiles-javadoc
%license COPYING.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16936 |21mr|regexp-1.5-30
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           regexp
Epoch:          1
Version:        1.5
Release:        30
Summary:        Simple regular expressions API
License:        ASL 2.0
Group:          Development/Java
URL:            http://jakarta.apache.org/%{name}/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/jakarta/%{name}/jakarta-%{name}-%{version}.tar.gz
Source2:        jakarta-%{name}-osgi-manifest.MF
Patch0:         jakarta-%{name}-attach-osgi-manifest.patch

BuildRequires:  ant
BuildRequires:  javapackages-local

Requires:       java-headless
Provides:       deprecated()

%description
Regexp is a 100% Pure Java Regular Expression package that was
graciously donated to the Apache Software Foundation by Jonathan Locke.
He originally wrote this software back in 1996 and it has stood up quite
well to the test of time.
It includes complete Javadoc documentation as well as a simple Applet
for visual debugging and testing suite for compatibility.

%package javadoc
Summary:        Javadoc for %{name}
Provides:       deprecated()

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n jakarta-%{name}-%{version}
%patch0
cp -p %{SOURCE2} MANIFEST.MF
# remove all binary libs
find . -name "*.jar" -exec rm -f {} \;

cat > pom.xml << EOF
<project>
  <modelVersion>4.0.0</modelVersion>
  <groupId>jakarta-%{name}</groupId>
  <artifactId>jakarta-%{name}</artifactId>
  <version>%{version}</version>
</project>
EOF

%mvn_file : %{name}

%mvn_alias jakarta-%{name}:jakarta-%{name} %{name}:%{name}

%build
mkdir lib
%ant -Djakarta-site2.dir=. jar javadocs

%mvn_artifact pom.xml build/*.jar

%install
%mvn_install -J docs/api

%check
%ant -Djakarta-site2.dir=. test

# Workaround for RPM bug #646523 - can't change symlink to directory
# TODO: Remove this in F-23
%pretrans javadoc -p <lua>
dir = "%{_javadocdir}/%{name}"
dummy = posix.readlink(dir) and os.remove(dir)

%files -f .mfiles
%doc LICENSE

%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16937 |21mr|reiserfsprogs-3.6.27-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname reiserfscore %{major}
%define devname %mklibname reiserfscore -d

Summary:	The utilities to create reiserfs volumes
Name:		reiserfsprogs
Version:	3.6.27
Epoch:		1
Release:	2
License:	GPLv2 with exceptions
Group:		System/Kernel and hardware
Url:		https://www.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/
Source0:	https://mirrors.edge.kernel.org/pub/linux/kernel/people/jeffm/reiserfsprogs/v%{version}/reiserfsprogs-%{version}.tar.xz
Patch1:		reiserfsprogs-3.6.25-make-the-force-option-works-in-resize_reiserfs.patch
Patch2:		DEBIAN-parse_time_build_fix.patch
BuildRequires:	acl-devel
BuildRequires:	pkgconfig(com_err)
BuildRequires:	pkgconfig(uuid)
Provides:	reiserfs-utils = %{EVRD}

%description
This package contains tools for reiserfs filesystems.
Reiserfs is a file system using a plug-in based object oriented
variant on classical balanced tree algorithms.

%files
%defattr(644,root,root,755)
%doc README ChangeLog
%attr(755,root,root) /sbin/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libreiserfscore.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%dir %{_includedir}/reiserfs/
%{_includedir}/reiserfs/*.h
%{_libdir}/libreiserfscore.so
%{_libdir}/pkgconfig/reiserfscore.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
sed -i 's/@REISERFSPROGS_VERSION@/%{version}/' reiserfscore/reiserfscore.pc.in
%configure \
	--disable-static

%make OPTFLAGS="%{optflags}"

%install
mkdir -p %{buildroot}%{_mandir}/man8

%makeinstall_std

mv %{buildroot}/{usr/,}sbin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16938 |21mr|relaxngcc-1.12-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: relaxngcc
Version: 1.12
Release: 17
Summary: RELAX NG Compiler Compiler

License: ASL 1.1
Group:          Development/Java
Url: http://relaxngcc.sourceforge.net/en/index.htm

Source0: http://prdownloads.sourceforge.net/relaxngcc/relaxngcc-20031218.zip
Source1: %{name}-build.xml

BuildRequires: ant
BuildRequires: java-devel
BuildRequires: javacc
BuildRequires: jpackage-utils
BuildRequires: msv-msv
BuildRequires: msv-xsdlib
BuildRequires: relaxngDatatype
BuildRequires: isorelax
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis
BuildRequires: dos2unix

Requires: msv-msv
Requires: msv-xsdlib
Requires: relaxngDatatype
Requires: isorelax
Requires: xerces-j2
Requires: xml-commons-apis

BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}


%description
RelaxNGCC is a tool for generating Java source code from a given RELAX NG
grammar. By embedding code fragments in the grammar like yacc or JavaCC, you can
take appropriate actions while parsing valid XML documents against the grammar.


%package javadoc
Summary: Javadoc for %{name}


%description javadoc
This package contains javadoc for %{name}.


%prep

# Prepare the original sources:
%setup -q -n relaxngcc-20031218

# Remove all the binary files:
find . -name '*.class' -delete
find . -name '*.jar' -delete

# Remove the sources that will be generated with JavaCC:
rm src/relaxngcc/javabody/*.java

# Remove to avoid dependency on commons-jelly:
rm src/relaxngcc/maven/ChildAntProjectTag.java

# Some of the sources don't use the correct end of line encoding, so to be
# conservative fix all of them:
find . -type f -exec dos2unix {} \;

# Some of the source files contain characters outside of the ASCII set that
# cause problems when compiling, so make sure that they are translated to
# ASCCI:
sources='
src/relaxngcc/builder/SwitchBlockInfo.java
'
for source in ${sources}
do
  native2ascii -encoding UTF8 ${source} ${source}
done


%build

# Populate the lib directory with references to the jar files required for the
# build:
mkdir lib
build-jar-repository -p lib \
  msv-msv msv-xsdlib relaxngDatatype isorelax javacc

# Put the ant build files in place:
cp %{SOURCE1} build.xml

# Run the ant build:
ant jar javadoc


%install

# Jar files:
mkdir -p %{buildroot}%{_javadir}
install -pm 644 relaxngcc.jar %{buildroot}%{_javadir}/%{name}.jar

# Javadoc files:
mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}/.


%files
%{_javadir}/*
%doc src/HOWTO-readAutomata.txt LICENSE.txt readme.txt
%doc doc/*


%files javadoc
%{_javadocdir}/*
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16939 |21mr|relaxngDatatype-2011.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           relaxngDatatype
Version:        2011.1
Release:        10
Summary:        RELAX NG Datatype API
License:        BSD
URL:            https://github.com/java-schema-utilities/relaxng-datatype-java
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/java-schema-utilities/relaxng-datatype-java/archive/relaxngDatatype-%{version}.tar.gz
# License is not available in the tarball, this copy fetched from the tarball on the old sourceforge.net site
Source1:        copying.txt

BuildRequires:  maven-local
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
RELAX NG is a public space for test cases and other ancillary software
related to the construction of the RELAX NG language and its
implementations.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.

%prep
%setup -q -n relaxng-datatype-java-relaxngDatatype-%{version}

cp -p %{SOURCE1} .

%pom_xpath_remove "pom:build/pom:extensions"

# For compatibility
%mvn_alias "com.github.relaxng:relaxngDatatype" "relaxngDatatype:relaxngDatatype"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc copying.txt

%files javadoc -f .mfiles-javadoc
%doc copying.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16940 |21mr|remmina-1.4.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	Remmina

Summary:	GTK++ remote desktop client
Name:		remmina
Version:	1.4.30
Release:	1
License:	GPLv2+
Group:		Networking/Remote access
Url:		https://gitlab.com/Remmina/Remmina
Source0:	https://gitlab.com/Remmina/Remmina/-/archive/v%{version}/%{oname}-v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	spice-protocol
BuildRequires:	xdg-utils
BuildRequires:	kf5wallet-devel
BuildRequires:	pkgconfig(avahi-ui-gtk3)
BuildRequires:	pkgconfig(freerdp2)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsodium)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(libvncserver)
BuildRequires:	pkgconfig(spice-client-gtk-3.0)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(appindicator3-0.1)
BuildRequires:	pkgconfig(gtk-vnc-2.0)
BuildRequires:	pkgconfig(gvncpulse-1.0)
#BuildRequires:  lib64ayatana-appindicator-0.1-devel

Recommends:	%{name}-plugins-exec = %{EVRD}
Recommends:	(%{name}-plugins-kwallet if kwallet)
Recommends:	%{name}-plugins-x2go = %{EVRD}
Recommends:	%{name}-plugins-rdp = %{EVRD}
Recommends:	%{name}-plugins-secret = %{EVRD}
Recommends:	%{name}-plugins-spice = %{EVRD}
Recommends:	%{name}-plugins-vnc = %{EVRD}
Recommends:	%{name}-plugins-www = %{EVRD}
Recommends:	%{name}-plugins-gvnc = %{EVRD}

Obsoletes:	%{name}-plugins-common <= 1.4.1
Obsoletes:	%{name}-plugins-telepathy <= 1.4.1
Obsoletes:	%{name}-plugins-nx <= 1.4.9
Obsoletes:	%{name}-plugins-st <= 1.4.9
Obsoletes:	%{name}-plugins-xdmcp <= 1.4.9

%description
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

Remmina supports multiple network protocols in an integrated and consistent
user interface. Currently RDP, VNC, XDMCP and SSH are supported.

Please don't forget to install the plugins for the protocols you want to use.

%files -f %{name}.lang
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-file-wrapper
%{_datadir}/%{name}/
%{_datadir}/mime/packages/org.remmina.Remmina-mime.xml
%{_datadir}/applications/org.%{name}.%{oname}.desktop
%{_datadir}/applications/org.%{name}.%{oname}-file.desktop
%{_datadir}/metainfo/org.%{name}.%{oname}.appdata.xml
%{_iconsdir}/hicolor/apps/%{name}-symbolic.svg
%{_iconsdir}/hicolor/scalable/*/org.%{name}.%{oname}-*.svg
%{_iconsdir}/hicolor/scalable/*/org.%{name}.%{oname}.svg
%{_iconsdir}/hicolor/apps/org.%{name}.%{oname}-symbolic.svg
%{_iconsdir}/hicolor/*/apps/*%{name}*.png
%{_iconsdir}/hicolor/*/status/org.%{name}.%{oname}-status*.svg
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-file-wrapper.1.*
%{_libdir}/remmina/plugins/remmina-plugin-python_wrapper.so
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-x2go-symbolic.svg
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-rdp-ssh-symbolic.svg
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-rdp-symbolic.svg
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-spice-ssh-symbolic.svg
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-spice-symbolic.svg
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-tool-symbolic.svg
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-vnc-ssh-symbolic.svg
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-vnc-symbolic.svg
%exclude %{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-gvnc-symbolic.svg

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains header files for developing plugins for
%{name}.

%files devel
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_includedir}/%{name}/
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package plugins-exec
Summary:	External execution plugin for Remmina Remote Desktop Client
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}

%description plugins-exec
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains the plugin to execute external processes (commands or
applications) from the Remmina window.

%files plugins-exec
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-exec.so

#----------------------------------------------------------------------------

%package plugins-kwallet
Summary:	KWallet plugin for Remmina Remote Desktop Client
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}

%description plugins-kwallet
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains the KWallet plugin for the Remmina remote desktop client.

%files plugins-kwallet
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-kwallet.so

#----------------------------------------------------------------------------

%package plugins-x2go
Summary:	x2go plugin
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}
Requires:	nxproxy

%description plugins-x2go
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains the x2go plugin for the Remmina remote desktop client.

%files plugins-x2go
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-x2go.so
%{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-x2go-symbolic.svg

#----------------------------------------------------------------------------

%package plugins-rdp
Summary:	RDP plugin for Remmina Remote Desktop Client
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}
Requires:	freerdp

%description plugins-rdp
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains the Remote Desktop Protocol (RDP) plugin for the Remmina
remote desktop client.

%files plugins-rdp
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-rdp.so
%{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-rdp-ssh-symbolic.svg
%{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-rdp-symbolic.svg

#----------------------------------------------------------------------------

%package plugins-secret
Summary:	Keyring integration for Remmina Remote Desktop Client
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}
Provides:	%{name}-plugins-gnome = %{EVRD}
Obsoletes:	%{name}-plugins-gnome < 1.2.0-0.rcgit.24.2

%description plugins-secret
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains the plugin with keyring support for the Remmina remote
desktop client.

%files plugins-secret
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-secret.so

#----------------------------------------------------------------------------

%package plugins-spice
Summary:	SPICE plugin for Remmina Remote Desktop Client
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}

%description plugins-spice
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains the SPICE plugin for the Remmina remote desktop
client.

%files plugins-spice
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-spice.so
%{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-spice-ssh-symbolic.svg
%{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-spice-symbolic.svg

#----------------------------------------------------------------------------

%package plugins-gvnc
Summary:	gvnc for Remmina Remote Desktop Client
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}

%description plugins-gvnc
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains gvnc plugin for the Remmina remote desktop
client.

%files plugins-gvnc
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-gvnc.so
%{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-gvnc-symbolic.svg

#----------------------------------------------------------------------------

%package plugins-vnc
Summary:	VNC plugin for Remmina Remote Desktop Client
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}

%description plugins-vnc
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains the VNC plugin for the Remmina remote desktop
client.

%files plugins-vnc
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-vnc.so
%{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-vnc-ssh-symbolic.svg
%{_iconsdir}/hicolor/scalable/emblems/org.%{name}.%{oname}-vnc-symbolic.svg

#----------------------------------------------------------------------------

%package plugins-www
Summary:	WWW plugin for Remmina Remote Desktop Client
Group:		Networking/Remote access
Requires:	%{name} = %{EVRD}

%description plugins-www
Remmina is a remote desktop client written in GTK+, aiming to be useful for
system administrators and travelers, who need to work with lots of remote
computers in front of either large monitors or tiny netbooks.

This package contains the WWW plugin (web browser with authentication) for the
Remmina remote desktop client.

%files plugins-www
%license LICENSE
%doc AUTHORS CHANGELOG.md README.md THANKS.md COPYING
%{_libdir}/%{name}/plugins/%{name}-plugin-www.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-v%{version}

%build
%cmake \
	-DWITH_NEWS=OFF \
	-DWITH_KF5WALLET=ON \
	-DWITH_X2GO=ON  \
	-DWITH_GVNC=ON
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}/usr/lib/debug

%find_lang %{name}

desktop-file-install \
	--remove-category="X-GNOME-NetworkSettings" \
	--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/org.%{name}.%{oname}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16941 |21mr|remotetea-1.1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          remotetea
Version:       1.1.3
Release:       7
Summary:       Java implementation of Sun's ONC/RPC Remote Procedure Protocol
# GPL with exceptions: src/org/acplt/oncrpc/apps/jrpcgen/JrpcgenSHA.java original
# Incorrect Free Software Foundation address https://github.com/remotetea/remotetea/issues/2
License:       LGPLv2+
URL:           http://remotetea.sourceforge.net/

# git clone git://git.code.sf.net/p/remotetea/code remotetea
# (cd remotetea/remotetea/ && git archive --format=tar --prefix=remotetea-1.1.3/ 1.1.3 | xz > ../../remotetea-1.1.3.tar.xz)

Source0:       remotetea-1.1.3.tar.xz
# Use system java_cup
Patch0:        remotetea-1.1.2-system-java_cup.patch

# Remove src/org/acplt/oncrpc/apps/jrpcgen/JrpcgenSHA.java references
# gnu.java.security.provider.SHA.java, bundled libraries without FPC exception
# Clean implementation of JrpcgenSHA.java that calls out to the
# Java standard library's implementation of SHA-1.  It
# should otherwise be interface- and implemenation-compatible with the
# one that depended on bundled code
# https://github.com/remotetea/remotetea/issues/1
Patch1:        remotetea-1.1.2-custom_JrpcgenSHA.patch

BuildRequires: maven-local
BuildRequires: mvn(java_cup:java_cup)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A complete Java-based implementation of Sun's ONC/RPC
Remote Procedure Protocol, including client and server
functionality and some associated tools. No native
code involved, only Java.

%package maven-plugin
Summary:       Remote Tea : ONC/RPC Maven plugin

%description maven-plugin
A Maven Plugin providing access to the
source generator (jrpcgen) in the
Maven life cycle phase 'generate-sources'.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

%patch0 -p1
rm -rf jrpcgen/src/main/java/org/acplt/oncrpc/apps/jrpcgen/cup_runtime
%patch1 -p1

native2ascii -encoding UTF8 oncrpc/src/main/java/org/acplt/oncrpc/OncRpcUdpClient.java \
 oncrpc/src/main/java/org/acplt/oncrpc/OncRpcUdpClient.java

cp -p information/src/main/resources/META-INF/changelog.html .
cp -p information/src/main/resources/META-INF/docstyle.css .
cp -p information/src/main/resources/META-INF/LICENSE.txt .
cp -p information/src/main/resources/META-INF/readme.html .

%mvn_package :remotetea-maven-plugin maven-plugin
%mvn_alias :remotetea-jportmap org.acplt:portmap
%mvn_alias :remotetea-jrpcgen org.acplt:jrpcgen
%mvn_alias :remotetea-oncrpc org.acplt:oncrpc

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc changelog.html docstyle.css readme.html
%license LICENSE.txt

%files maven-plugin -f .mfiles-maven-plugin
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16942 |21mr|replacer-1.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          replacer
Version:       1.6
Release:       11
Summary:       Replacer Maven Mojo
License:       MIT
URL:           https://github.com/beiliubei/maven-replacer-plugin
# http://code.google.com/p/maven-replacer-plugin/
Source0:       https://github.com/beiliubei/maven-replacer-plugin/archive/%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  mvn(xerces:xercesImpl)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Maven plugin to replace tokens in a given file with a value.

This plugin is also used to automatically generating PackageVersion.java
in the FasterXML.com project.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n maven-replacer-plugin-%{version}

%pom_remove_plugin :dashboard-maven-plugin
%pom_remove_plugin :maven-assembly-plugin

%mvn_file :%{name} %{name}
%mvn_alias :%{name} com.google.code.maven-replacer-plugin:maven-replacer-plugin

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16943 |21mr|repocreator-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI for creating a local RPM repository
Name:		repocreator
Version:	0.1
Release:	1
License:	GPLv3+
Group:		System/Base
Source1:	%{name}.py
Source2:	%{name}.po
Source3:	%{name}.ui
Source4:	%{name}.desktop
Source5:	%{name}.svg

BuildRequires:	/usr/bin/msgfmt
Requires:	createrepo_c
Requires:	dnf-plugins-core
Requires:	python3-gi
BuildArch:	noarch

%description
GUI for creating a local RPM repository using createrepo_c and checking it
for unresolved dependencies using dnf repoclosure


%files
%{_bindir}/%{name}
%lang(ru) %{_localedir}/ru/LC_MESSAGES/%{name}.mo
%dir %{_datadir}/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/%{name}.svg
%{_datadir}/%{name}/%{name}.ui

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/icons
mkdir -p %{buildroot}%{_localedir}/ru/LC_MESSAGES/
mkdir -p %{buildroot}/%{_libexecdir}

install -m755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}
sed -i 's/@VERSION@/%{version}/' %{buildroot}%{_bindir}/%{name}
msgfmt -v %{SOURCE2} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{name}.mo
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/%{name}/
install -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications/
install -m644 %{SOURCE5} %{buildroot}%{_datadir}/icons/%{name}.svg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16944 |21mr|reportd-0.7.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Service reporting org.freedesktop.Problems2 entries
Name:		reportd
Version:	0.7.4
Release:	2
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/abrt/reportd
Source0:        https://github.com/abrt/reportd/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libreport)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	meson

%description
A D-Bus service that exports libreport functionality.

%files
%doc NEWS README
%license COPYING
%{_datadir}/dbus-1/services/org.freedesktop.%{name}.service
%{_datadir}/dbus-1/system-services/org.freedesktop.%{name}.service
%{_datadir}/dbus-1/system.d/org.freedesktop.%{name}.conf
%{_libexecdir}/%{name}
%{_unitdir}/%{name}.service
%{_userunitdir}/%{name}.service

#----------------------------------------------------------------------------

%prep
%autosetup

%build
%meson
%meson_build

%install
%meson_install

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16945 |21mr|rescu-1.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: rescu
Version: 1.9.1
Release: 2
Summary: Lightweight Rest client utility for Java

License: MIT
URL: https://github.com/mmazi/rescu
Source0:  https://github.com/mmazi/%{name}/archive/%{name}-%{version}/%{name}-%{version}.tar.gz
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(javax.ws.rs:jsr311-api)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(net.iharder:base64)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(oauth.signpost:signpost-core)

%description
ResCU enables the user to create a proxy Rest client in run-time directly from a
JAX-RS annotated interface. ResCU is mostly focused on json-based services, and
uses Jackson for json-to-object mapping.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n rescu-rescu-%{version}

%build
# Skip tests for now, missing dependencies:
# org.assertj:assertj-core:2.1.0
# eu.codearte.catch-exception:catch-exception:1.4.4
# org.hamcrest:hamcrest-junit:2.0.0.0
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc README.md
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16946 |21mr|resource-agents-4.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# determine the ras-set to process based on configure invokation
%bcond_with rgmanager
%bcond_without linuxha

%if %{with rgmanager}
%global rasset rgmanager
%endif
%if %{with linuxha}
%global rasset linux-ha
%endif
%if %{with rgmanager} && %{with linuxha}
%global rasset all
%endif

Summary:	Open Source HA Reusable Cluster Resource Scripts
Name:		resource-agents
Version:	4.5.0
Release:	1
License:	GPLv2+ and LGPLv2+
Group:		Monitoring
Url:		https://github.com/ClusterLabs/resource-agents
Source0:	https://github.com/ClusterLabs/resource-agents/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	docbook-dtds
BuildRequires:	docbook-style-xsl
BuildRequires:	systemd
BuildRequires:	xsltproc
BuildRequires:	libnet-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(python3)
## Runtime deps
# system tools shared by several agents
Requires:	net-tools
Requires:	procps-ng
Requires:	psmisc
Requires:	util-linux
# Filesystem / fs.sh / netfs.sh
Requires:	cifs-utils
Requires:	e2fsprogs
Requires:	nfs-utils
Requires:	xfsprogs
# IPaddr2
Requires:	iproute2
# LVM / lvm.sh
Requires:	lvm2
# rgmanager
%if %{with rgmanager}
# ip.sh
Requires:	ethtool
Requires:	iputils
# nfsexport.sh
Requires:	quota
%endif
%if %{without linuxha}
BuildArch:	noarch
%endif

%description
A set of scripts to interface with several services to operate in a
High Availability environment for both Pacemaker and rgmanager
service managers.

%files
%doc AUTHORS COPYING COPYING.GPLv3 COPYING.LGPL ChangeLog
%if %{with linuxha}
%doc heartbeat/README.galera doc/README.webapps
%doc %{_datadir}/%{name}/ra-api-1.dtd
%doc %{_datadir}/%{name}/metadata.rng
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/ocft
%{_datadir}/%{name}/ocft/configs
%{_datadir}/%{name}/ocft/caselib
%{_datadir}/%{name}/ocft/README
%{_datadir}/%{name}/ocft/helpers.sh
%{_includedir}/heartbeat/agent_config.h
%{_libexecdir}/heartbeat
%{_mandir}/man7/*.7*
%{_mandir}/man8/ocf-tester.8*
%dir %{_prefix}/lib/ocf
%dir %{_prefix}/lib/ocf/resource.d
%dir %{_prefix}/lib/ocf/lib
%{_prefix}/lib/ocf/lib/heartbeat
%{_prefix}/lib/ocf/resource.d/heartbeat
%exclude %{_prefix}/lib/ocf/resource.d/heartbeat/ldirectord
%{_sbindir}/ocf-tester
%{_sbindir}/ocft
%dir %attr(1755,root,root) /run/resource-agents
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/resource-agents-deps.target
# For compatability with pre-existing agents
%dir %{_sysconfdir}/ha.d
%{_sysconfdir}/ha.d/shellfuncs
%endif
%if %{with rgmanager}
%{_datadir}/cluster
%{_sbindir}/rhev-check.sh
%{_prefix}/lib/ocf/resource.d/redhat
%endif

%post
%tmpfiles_create %{name}.conf

#----------------------------------------------------------------------------

%if %{with linuxha}
%package -n ldirectord
Summary:	A Monitoring Daemon for Maintaining High Availability Resources
License:	GPLv2+
Group:		Monitoring
#BuildRequires:	perl-podlators
Requires:	ipvsadm
Requires:	logrotate
Requires:	perl(LWP::Debug)
Requires:	perl(LWP::UserAgent)
Requires:	perl(Net::IMAP::Simple)
Requires:	perl(Net::IMAP::Simple::SSL)
Requires:	perl(Net::SSLeay)
Requires:	perl(Mail::POP3Client)
Requires:	perl(Mail::Send)

%description -n ldirectord
The Linux Director Daemon (ldirectord) was written by Jacob Rief.
<jacob.rief@tiscover.com>

ldirectord is a stand alone daemon for monitoring the services on real
servers. Currently, HTTP, HTTPS, and FTP services are supported.
ldirectord is simple to install and works with Pacemaker
(http://clusterlabs.org/).

See 'ldirectord -h' and linux-ha/doc/ldirectord for more information.

%files -n ldirectord
%doc COPYING ldirectord/ldirectord.cf
%config(noreplace) %{_sysconfdir}/logrotate.d/ldirectord
%{_sbindir}/ldirectord
%{_mandir}/man8/ldirectord.8*
%{_prefix}/lib/ocf/resource.d/heartbeat/ldirectord
%dir %{_sysconfdir}/ha.d
%dir %{_sysconfdir}/ha.d/resource.d
%{_sysconfdir}/ha.d/resource.d/ldirectord
%{_unitdir}/ldirectord.service

%preun -n ldirectord
%systemd_preun ldirectord.service

%postun -n ldirectord
%systemd_postun_with_restart ldirectord.service

%post -n ldirectord
%systemd_post ldirectord.service

%endif

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh

%configure \
	PYTHON="%{__python3}" \
	--enable-fatal-warnings=no \
	--with-pkg-name=%{name} \
	--with-ras-set=%{rasset} \
	--with-rsctmpdir=/run/resource-agents \
	--with-systemdsystemunitdir=%{_unitdir} \
	--with-systemdtmpfilesdir=%{_tmpfilesdir}

%make_build

%install
%make_install

## tree fixup
# remove docs (there is only one and they should come from doc sections in files)
rm -rf %{buildroot}/usr/share/doc/resource-agents

# upstream suggested not to package these
rm -f %{buildroot}%{_datadir}/%{name}/ocft/runocft
rm -f %{buildroot}%{_datadir}/%{name}/ocft/runocft.prereq

# don't need this, keep files list as small as possible
rm -f %{buildroot}%{_datadir}/%{name}/ocft/README.zh_CN

# we use systemd
rm -f %{buildroot}%{_sysconfdir}/init.d/ldirectord
rm -f %{buildroot}%{_sysconfdir}/rc.d/init.d/ldirectord

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16947 |21mr|rest-0.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api	1.0
%define major	0
%define libname		%mklibname %{name} %{api} %{major}
%define girname		%mklibname %{name}-gir %{api}
%define devname		%mklibname %{name} -d

Summary:	Library for accessing rest web services
Name:		rest
Version:	0.9.1
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/rest
Source0:	https://download.gnome.org/sources/rest/%{url_ver}/%{name}-%{version}.tar.xz
# From Fedora
# Fix some crash paths exposed by the libsoup3 port, including a
# crash on suspend/resume with Google accounts:
# https://gitlab.gnome.org/GNOME/librest/-/merge_requests/30
Patch0:		0001-rest_proxy_call_sync-bail-out-if-no-payload.patch
Patch1:		0002-Handle-some-potential-problems-in-parsing-oauth2-acc.patch
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(gi-docgen)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtksourceview-5)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Library for accessing rest web services

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for accessing rest web services
Group:		System/Libraries
Obsoletes:	%{_lib}librest0 < %{version}
Conflicts:	%{devname} < 0.7.10

%description -n %{libname}
Library for accessing rest web services

%files -n %{libname}
%license COPYING
%{_libdir}/lib%{name}-%{api}.so.%{major}*
%{_libdir}/lib%{name}-extras-%{api}.so.%{major}*

#------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject introspection interface library for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Rest-%{api}.typelib
%{_libdir}/girepository-1.0/RestExtras-%{api}.typelib

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename lib%{name}-doc

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc AUTHORS README.md
%license COPYING
%{_datadir}/gir-1.0/Rest-%{api}.gir
%{_datadir}/gir-1.0/RestExtras-%{api}.gir
%{_datadir}/vala/vapi/%{name}-%{api}.*
%{_datadir}/vala/vapi/%{name}-extras-%{api}.*
%{_defaultdocdir}/lib%{name}-%{api}
%{_includedir}/%{name}-%{api}
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/lib%{name}-extras-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_libdir}/pkgconfig/%{name}-extras-%{api}.pc

#------------------------------------------------------------------

%package demo
Summary:	Demo application for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description demo
Demo application for %{name}.

%files demo
%{_bindir}/lib%{name}-demo
%{_datadir}/applications/org.gnome.RestDemo.desktop

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dvapi=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16948 |21mr|resteasy-3.0.19-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{namedreltag}

Name:           resteasy
Version:        3.0.19
Release:        9
Summary:        Framework for RESTful Web services and Java applications
License:        ASL 2.0 and CDDL
URL:            http://resteasy.jboss.org/
Source0:        https://github.com/resteasy/Resteasy/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

# Support for mime4j 0.7.2
Patch0:         resteasy-3.0.19-Mime4j-0.7.2-support.patch

Patch1:         resteasy-3.0.19-port-resteasy-netty-to-netty-3.10.6.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.beust:jcommander)
BuildRequires:  mvn(com.fasterxml:classmate)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider)
BuildRequires:  mvn(com.google.inject:guice)
BuildRequires:  mvn(com.sun.mail:javax.mail)
BuildRequires:  mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires:  mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(io.netty:netty:3)
BuildRequires:  mvn(io.netty:netty-all)
BuildRequires:  mvn(io.undertow:undertow-core)
BuildRequires:  mvn(io.undertow:undertow-servlet)
BuildRequires:  mvn(javax.enterprise:cdi-api)
BuildRequires:  mvn(javax.json:javax.json-api)
BuildRequires:  mvn(javax.validation:validation-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:12)
BuildRequires:  mvn(net.jcip:jcip-annotations)
BuildRequires:  mvn(net.oauth.core:oauth-provider)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.james:apache-mime4j-core)
BuildRequires:  mvn(org.apache.james:apache-mime4j-dom)
BuildRequires:  mvn(org.apache.james:apache-mime4j-storage)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.bouncycastle:bcmail-jdk15on)
BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires:  mvn(org.codehaus.jackson:jackson-core-asl)
BuildRequires:  mvn(org.codehaus.jackson:jackson-jaxrs)
BuildRequires:  mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires:  mvn(org.codehaus.jackson:jackson-xc)
BuildRequires:  mvn(org.codehaus.jettison:jettison)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.glassfish:javax.el)
BuildRequires:  mvn(org.glassfish:javax.json)
BuildRequires:  mvn(org.hibernate:hibernate-validator)
BuildRequires:  mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires:  mvn(org.infinispan:infinispan-core)
BuildRequires:  mvn(org.jboss:jboss-parent:pom:)
BuildRequires:  mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires:  mvn(org.jboss.logging:jboss-logging)
BuildRequires:  mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:  mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:  mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.1_spec)
BuildRequires:  mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec)
BuildRequires:  mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_2.5_spec)
BuildRequires:  mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires:  mvn(org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec)
BuildRequires:  mvn(org.jboss.weld:weld-api)
BuildRequires:  mvn(org.picketbox:picketbox)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.springframework:spring-core)
BuildRequires:  mvn(org.springframework:spring-test)
BuildRequires:  mvn(org.springframework:spring-webmvc)
BuildRequires:  mvn(org.yaml:snakeyaml)

Requires:       resteasy-core              = %{version}-%{release}
Requires:       resteasy-atom-provider     = %{version}-%{release}
Requires:       resteasy-fastinfoset-provider = %{version}-%{release}
Requires:       resteasy-jackson-provider  = %{version}-%{release}
Requires:       resteasy-jackson2-provider = %{version}-%{release}
Requires:       resteasy-jaxb-provider     = %{version}-%{release}
Requires:       resteasy-jettison-provider = %{version}-%{release}
Requires:       resteasy-json-p-provider   = %{version}-%{release}
Requires:       resteasy-multipart-provider = %{version}-%{release}
Requires:       resteasy-validator-provider-11 = %{version}-%{release}
Requires:       resteasy-yaml-provider     = %{version}-%{release}
Requires:       resteasy-client            = %{version}-%{release}
Requires:       resteasy-optional          = %{version}-%{release}
Requires:       resteasy-test              = %{version}-%{release}
Requires:       resteasy-netty3            = %{version}-%{release}

%description
%global desc \
RESTEasy contains a JBoss project that provides frameworks to help\
build RESTful Web Services and RESTful Java applications. It is a fully\
certified and portable implementation of the JAX-RS specification.
%{desc}
%global extdesc %{desc}\
\
This package contains

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains the API documentation for %{name}.

%package        core
Summary:        Core modules for %{name}
Obsoletes:      resteasy-jaxrs-api < 3.0.7

%description    core
%{extdesc} %{summary}.

%package        atom-provider
Summary:        Module atom-provider for %{name}

%description    atom-provider
%{extdesc} %{summary}.

%package        fastinfoset-provider
Summary:        Module fastinfoset-provider for %{name}

%description    fastinfoset-provider
%{extdesc} %{summary}.

%package        jackson-provider
Summary:        Module jackson-provider for %{name}

%description    jackson-provider
%{extdesc} %{summary}.

%package        jackson2-provider
Summary:        Module jackson2-provider for %{name}

%description    jackson2-provider
%{extdesc} %{summary}.

%package        jaxb-provider
Summary:        Module jaxb-provider for %{name}

%description    jaxb-provider
%{extdesc} %{summary}.

%package        jettison-provider
Summary:        Module jettison-provider for %{name}

%description    jettison-provider
%{extdesc} %{summary}.

%package        json-p-provider
Summary:        Module json-p-provider for %{name}

%description    json-p-provider
%{extdesc} %{summary}.

%package        multipart-provider
Summary:        Module multipart-provider for %{name}

%description    multipart-provider
%{extdesc} %{summary}.

%package        netty3
Summary:        Netty 3 Integration for %{name}

%description    netty3
%{extdesc} %{summary}.

%package        validator-provider-11
Summary:        Module validate-provider-11 for %{name}

%description    validator-provider-11
%{extdesc} %{summary}.

%package        yaml-provider
Summary:        Module yaml-provider for %{name}

%description    yaml-provider
%{extdesc} %{summary}.

%package        client
Summary:        Client for %{name}

%description    client
%{extdesc} %{summary}.

%package        optional
# BSD: ./jaxrs/tjws/src/main/java/Acme/*
# LGPLv2: ./jaxrs/resteasy-cdi/src/main/java/org/jboss/resteasy/cdi/CdiPropertyInjector.java
License:        ASL 2.0 and BSD and LGPLv2+
Summary:        Optional modules for %{name}

%description    optional
%{extdesc} %{summary}.

%package        test
Summary:        Test modules for %{name}

%description    test
%{extdesc} %{summary}.

%prep
%setup -q -n Resteasy-%{namedversion}
%mvn_package ":resteasy-jaxrs" core
%mvn_package ":providers-pom" core
%mvn_package ":resteasy-jaxrs-all" core
%mvn_package ":resteasy-pom" core
%mvn_package ":resteasy-atom-provider" atom-provider
%mvn_package ":resteasy-fastinfoset-provider" fastinfoset-provider
%mvn_package ":resteasy-jackson-provider" jackson-provider
%mvn_package ":resteasy-jackson2-provider" jackson2-provider
%mvn_package ":resteasy-jaxb-provider" jaxb-provider
%mvn_package ":resteasy-jettison-provider" jettison-provider
%mvn_package ":resteasy-json-p-provider" json-p-provider
%mvn_package ":resteasy-multipart-provider" multipart-provider
%mvn_package ":resteasy-validator-provider-11" validator-provider-11
%mvn_package ":resteasy-yaml-provider" yaml-provider
%mvn_package ":resteasy-client" client
%mvn_package ":test-resteasy-html" test
%mvn_package ":test-all-jaxb" test
%mvn_package ":test-jackson-jaxb-coexistence" test
%mvn_package ":resteasy-jaxrs-testsuite" test
%mvn_package ":async-http-servlet-3.0" optional
%mvn_package ":asynch-http-servlet-3.0-pom" optional
%mvn_package ":http-adapter-pom" optional
%mvn_package ":jose-jwt" optional
%mvn_package ":resteasy-bom" optional
%mvn_package ":resteasy-cache-core" optional
%mvn_package ":resteasy-cache-pom" optional
%mvn_package ":resteasy-cdi" optional
%mvn_package ":resteasy-crypto" optional
%mvn_package ":resteasy-guice" optional
%mvn_package ":resteasy-html" optional
%mvn_package ":resteasy-jdk-http" optional
%mvn_package ":resteasy-jsapi" optional
%mvn_package ":resteasy-keystone-core" optional
%mvn_package ":resteasy-links" optional
%mvn_package ":resteasy-netty4" optional
%mvn_package ":resteasy-netty4-cdi" optional
%mvn_package ":resteasy-oauth" optional
%mvn_package ":resteasy-servlet-initializer" optional
%mvn_package ":resteasy-spring" optional
%mvn_package ":resteasy-undertow" optional
%mvn_package ":resteasy-wadl" optional
%mvn_package ":security-pom" optional
%mvn_package ":tjws" optional
%mvn_package ":resteasy-netty" netty3

find -name '*.jar' -print -delete

%patch0 -p1
%patch1 -p1

# Disable unnecesary modules
%pom_disable_module examples jaxrs
%pom_disable_module profiling-tests jaxrs
%pom_disable_module resteasy-test-data jaxrs
%pom_disable_module war-tests jaxrs

%pom_disable_module jboss-modules jaxrs
%pom_disable_module login-module-authenticator jaxrs/security
%pom_disable_module skeleton-key-idm jaxrs/security
#skeleton-key-as7
#skeleton-key-idp-war
%pom_disable_module keystone/keystone-as7 jaxrs/security
%pom_disable_module keystone/keystone-as7-modules jaxrs/security

%pom_disable_module test-jackson-jaxb-coexistence jaxrs/providers
%pom_disable_module test-resteasy-html jaxrs/providers

%pom_disable_module arquillian jaxrs

%pom_disable_module async-http-servlet-3.0-test jaxrs/async-http-servlet-3.0
%pom_disable_module callback-test jaxrs/async-http-servlet-3.0
# HV 4.3
%pom_disable_module resteasy-hibernatevalidator-provider jaxrs/providers

%pom_change_dep "org.mortbay.jetty:jetty" "org.eclipse.jetty:jetty-server" jaxrs/resteasy-spring
sed -i "s|org.mortbay.jetty.Server|org.eclipse.jetty.server.Server|" \
 jaxrs/resteasy-spring/src/main/java/org/jboss/resteasy/springmvc/JettyLifecycleManager.java

%pom_remove_plugin com.atlassian.maven.plugins:maven-clover2-plugin jaxrs
%pom_remove_plugin com.atlassian.maven.plugins:maven-clover2-plugin jaxrs/resteasy-jaxrs

# Replace 2.5 servlet with the jboss-servlet-2.5-api provides
%pom_change_dep "javax.servlet:servlet-api" "org.jboss.spec.javax.servlet:jboss-servlet-api_2.5_spec" jaxrs/tjws

%pom_xpath_set pom:properties/pom:dep.netty.version 3 jaxrs

# remove activation.jar dependencies
%pom_remove_dep -r javax.activation:activation jaxrs jaxrs/resteasy-jaxrs jaxrs/resteasy-spring jaxrs/resteasy-test-data

# Remove duplicate entry
%pom_remove_dep :tjws::test jaxrs/resteasy-jaxrs-testsuite

# Fixing JDK7 ASCII issues
files='
jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/annotations/Query.java
jaxrs/resteasy-jaxrs/src/main/java/org/jboss/resteasy/core/QueryInjector.java
jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/JSAPIWriter.java
jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/JSAPIServlet.java
jaxrs/resteasy-jsapi/src/main/java/org/jboss/resteasy/jsapi/ServiceRegistry.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/AddLinks.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/ELProvider.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/LinkELProvider.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/LinkResource.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/LinkResources.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/ParentResource.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/RESTServiceDiscovery.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/ResourceFacade.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/ResourceID.java
jaxrs/resteasy-links/src/main/java/org/jboss/resteasy/links/ResourceIDs.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthConsumer.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthException.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthFilter.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthMemoryProvider.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthProvider.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthProviderChecker.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthRequestToken.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthServlet.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthToken.java
jaxrs/security/resteasy-oauth/src/main/java/org/jboss/resteasy/auth/oauth/OAuthValidator.java
'

for f in ${files}; do
native2ascii -encoding UTF8 ${f} ${f}
done

# Disable useless artifacts generation, package __noinstall do not work
%pom_add_plugin org.apache.maven.plugins:maven-source-plugin jaxrs '
<configuration>
 <skipSource>true</skipSource>
</configuration>'

%build

%mvn_build -f

# Create Jandex index file(s)
# Not all files are required by WildFly, but let's create indexes for all of them
find -name 'resteasy-*-%{namedversion}.jar' | while read f; do
  java -cp $(build-classpath jandex) org.jboss.jandex.Main -j ${f}
done

# async-http-servlet-3.0 jose-jwt tjws

%install
%mvn_install

find -name "resteasy-*-jandex.jar" | while read f; do
  install -pm 644 ${f} %{buildroot}%{_javadir}/%{name}/$(basename -s "-%{namedversion}-jandex.jar" $f)-jandex.jar
done

%files
%doc README.md jaxrs/README.html
%license jaxrs/License.html

%files core -f .mfiles-core
%{_javadir}/%{name}/resteasy-jaxrs-jandex.jar

%files atom-provider -f .mfiles-atom-provider
%{_javadir}/%{name}/resteasy-atom-provider-jandex.jar

%files fastinfoset-provider -f .mfiles-fastinfoset-provider
%{_javadir}/%{name}/resteasy-fastinfoset-provider-jandex.jar
   
%files jackson-provider -f .mfiles-jackson-provider
%{_javadir}/%{name}/resteasy-jackson-provider-jandex.jar
   
%files jackson2-provider -f .mfiles-jackson2-provider
%{_javadir}/%{name}/resteasy-jackson2-provider-jandex.jar

%files jaxb-provider -f .mfiles-jaxb-provider
%{_javadir}/%{name}/resteasy-jaxb-provider-jandex.jar

%files jettison-provider -f .mfiles-jettison-provider
%{_javadir}/%{name}/resteasy-jettison-provider-jandex.jar

%files json-p-provider -f .mfiles-json-p-provider
%{_javadir}/%{name}/resteasy-json-p-provider-jandex.jar

%files multipart-provider -f .mfiles-multipart-provider
%{_javadir}/%{name}/resteasy-multipart-provider-jandex.jar

%files netty3 -f .mfiles-netty3
%{_javadir}/%{name}/resteasy-netty-jandex.jar

%files validator-provider-11 -f .mfiles-validator-provider-11
%{_javadir}/%{name}/resteasy-validator-provider-11-jandex.jar

%files yaml-provider -f .mfiles-yaml-provider
%{_javadir}/%{name}/resteasy-yaml-provider-jandex.jar

%files client -f .mfiles-client
%{_javadir}/%{name}/resteasy-client-jandex.jar

%files optional -f .mfiles-optional
%{_javadir}/%{name}/resteasy-cache-core-jandex.jar
%{_javadir}/%{name}/resteasy-cdi-jandex.jar
%{_javadir}/%{name}/resteasy-crypto-jandex.jar
%{_javadir}/%{name}/resteasy-guice-jandex.jar
%{_javadir}/%{name}/resteasy-html-jandex.jar
%{_javadir}/%{name}/resteasy-jdk-http-jandex.jar
%{_javadir}/%{name}/resteasy-jsapi-jandex.jar
%{_javadir}/%{name}/resteasy-keystone-core-jandex.jar
%{_javadir}/%{name}/resteasy-links-jandex.jar
%{_javadir}/%{name}/resteasy-netty4-cdi-jandex.jar
%{_javadir}/%{name}/resteasy-netty4-jandex.jar
%{_javadir}/%{name}/resteasy-oauth-jandex.jar
%{_javadir}/%{name}/resteasy-servlet-initializer-jandex.jar
%{_javadir}/%{name}/resteasy-undertow-jandex.jar
%{_javadir}/%{name}/resteasy-wadl-jandex.jar

%files test -f .mfiles-test
%{_javadir}/%{name}/resteasy-jaxrs-testsuite-jandex.jar

%files javadoc -f .mfiles-javadoc
%license jaxrs/License.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16949 |21mr|rgb-1.0.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Uncompile an RGB color
Name:		rgb
Version:	1.0.6
Release:	13
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)

%description
The showrgb program reads an RGB color-name database compiled for use with
the dbm database routines and converts it back to source form.

%files
%{_bindir}/showrgb
%{_datadir}/X11/rgb.txt
%{_mandir}/man1/showrgb.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16950 |21mr|rhash-1.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname RHash

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Great utility for computing hash sums
Name:		rhash
Version:	1.4.1
Release:	1
License:	MIT
Group:		System/Libraries
Url:		https://github.com/rhash/RHash
Source0:	https://github.com/rhash/RHash/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		rhash-1.3.6-Makefile.patch

%description
RHash is a console utility for calculation and verification of magnet links
and a wide range of hash sums like CRC32, MD4, MD5, SHA1, SHA256, SHA512,
SHA3, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94,
GOST R 34.11-2012, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru.

Hash sums are used to  ensure and verify integrity of large volumes of data
for a long-term storing or transferring.

Features:
 * Output in a predefined (SFV, BSD-like) or a user-defined format.
 * Can calculate Magnet links.
 * Updating hash files (adding hash sums of files missing in the hash file).
 * Calculates several hash sums in one pass
 * Ability to process directories recursively.
 * Portability: the program works the same on Linux, *BSD or Windows.

%files
%doc COPYING README.md
%config(noreplace) %{_sysconfdir}/rhashrc
%{_bindir}/*
%{_mandir}/man1/*.1*

#--------------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.%{major}*

#--------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for lib%{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	rhash-%{_lib}rhash-devel < 1.3.4-2
Obsoletes:	rhash-%{_lib}rhash-devel < 1.3.4-2

%description -n %{devname}
LibRHash is a professional, portable, thread-safe C library for computing
a wide variety of hash sums, such as  CRC32, MD4, MD5, SHA1, SHA256, SHA512,
SHA3, AICH, ED2K, Tiger, DC++ TTH, BitTorrent BTIH, GOST R 34.11-94,
GOST R 34.11-2012, RIPEMD-160, HAS-160, EDON-R, Whirlpool and Snefru.
Hash sums are used to ensure and verify integrity of large volumes of data
for a long-term storing or transferring.

Features:
 * Small and easy to learn interface.
 * Hi-level and Low-level API.
 * Allows calculating of several hash functions simultaneously.
 * Portability: the library works on Linux, *BSD and Windows.

The %{name}-devel package contains libraries and header files for
developing applications that use lib%{name}.

%files -n %{devname}
%doc COPYING
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/librhash.pc

#--------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%autopatch -p1
sed -i -e '/^INSTALL_SHARED/s/644/755/' librhash/Makefile

%build
%set_build_flags
./configure \
	--cc="%{__cc}" \
	--prefix=%{_prefix} \
	--sysconfdir=%{_sysconfdir} \
	--libdir=%{_libdir} \
	--enable-lib-shared \
	--extra-cflags="%{optflags}" \
	--extra-ldflags="%{ldflags}"

%make_build

%install
%make_install install-lib-shared install-lib-so-link install-pkg-config install-lib-headers

%check
make test-shared

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16951 |21mr|rhino-1.7.7.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define scm_version 1_7_7_1

Name:           rhino
Version:        1.7.7.1
Release:        8
Summary:        JavaScript for Java
License:        MPLv2.0

Source0:        https://github.com/mozilla/rhino/archive/Rhino%{scm_version}_RELEASE.tar.gz
Source1:        http://repo1.maven.org/maven2/org/mozilla/rhino/%{version}/rhino-%{version}.pom
Source2:        %{name}.script

Patch0:         %{name}-build.patch
# Add OSGi metadata from Eclipse Orbit project
Patch1:         %{name}-addOrbitManifest.patch

URL:            http://www.mozilla.org/rhino/

BuildRequires:  ant
BuildRequires:  java-devel >= 1:1.6.0.0
BuildRequires:  sonatype-oss-parent
BuildRequires:  javapackages-local
Requires:       jline
# Explicit javapackages-tools requires since rhino script uses
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools
Obsoletes:      %{name}-javadoc < %{version}-%{release}
Obsoletes:      %{name}-manual < %{version}-%{release}

# Disable xmlbeans until we can get it into Fedora
#Requires:       xmlbeans
#BuildRequires:  xmlbeans
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Rhino is an open-source implementation of JavaScript written entirely
in Java. It is typically embedded into Java applications to provide
scripting to end users.

%package        demo
Summary:        Examples for %{name}

%description    demo
Examples for %{name}.

%prep
%setup -q -n %{name}-Rhino%{scm_version}_RELEASE
%patch0 -p1 -b .build
%patch1 -b .fixManifest

# Fix manifest
sed -i -e '/^Class-Path:.*$/d' src/manifest

# Add jpp release info to version
sed -i -e 's|^implementation.version: Rhino .* release .* \${implementation.date}|implementation.version: Rhino %{version} release %{release} \${implementation.date}|' build.properties

%mvn_alias : rhino:js
%mvn_file : js %{name}

%build
ant deepclean jar copy-all -Dno-xmlbeans=1
%mvn_artifact %{SOURCE1} build/%{name}%{version}/js.jar

pushd examples

export CLASSPATH=../build/%{name}%{version}/js.jar:$(build-classpath xmlbeans/xbean 2>/dev/null)
%{javac} *.java
%{jar} cf ../build/%{name}%{version}/%{name}-examples.jar *.class
popd

%install
%mvn_install

# man page
mkdir -p %{buildroot}%{_mandir}/man1/
install -m 644 man/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}.1

## script
mkdir -p %{buildroot}%{_bindir}
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/%{name}

# examples
cp -a build/%{name}%{version}/%{name}-examples.jar %{buildroot}%{_javadir}/%{name}-examples.jar
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -a examples/* %{buildroot}%{_datadir}/%{name}
find %{buildroot}%{_datadir}/%{name} -name '*.build' -delete

%files -f .mfiles
%attr(0755,root,root) %{_bindir}/*
%{_javadir}/rhino-examples.jar
%{_mandir}/man1/%{name}.1*

%files demo
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16952 |21mr|rhq-plugin-annotations-3.0.4-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             rhq-plugin-annotations
Version:          3.0.4
Release:          17
Summary:          RHQ plugin annotations
License:          GPL and LGPLv2+
Group:            Development/Java
URL:              http://rhq-project.org

# git clone git://git.fedorahosted.org/rhq/rhq.git
# git checkout rhq-pluginGen-3.0.4
# cd rhq/modules/helpers/
# tar cafJ rhq-plugin-annotations-3.0.4.tar.xz pluginAnnotations
Source0:          rhq-plugin-annotations-%{version}.tar.xz
Patch0:           rhq-plugin-annotations-%{version}-pom.patch

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local

%description
Annotations to help generate RHQ plugin descriptors.

%package javadoc
Summary:          Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n pluginAnnotations
%patch0 -p1

%mvn_file : %{name}/%{name} %{name}

%build
%mvn_build -- -Dproject.build.sourceEncoding=iso8859-1

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16953 |21mr|riffle-1.0.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          riffle
Version:       1.0.0
Release:       9
Summary:       Annotations and Classes for managing and executing dependent processes
License:       ASL 2.0
# http://github.com/cwensel/riffle
URL:           https://github.com/Cascading/riffle
Source0:       https://github.com/Cascading/riffle/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.hamcrest:hamcrest-core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Riffle is a lightweight Java library for executing collections of
dependent processes as a single process.

This library provides Java Annotations for tagging classes and
methods supporting required life-cycle stages, and a simple utility
for invoking instances of those classes in dependency order.

It is intended that more robust work-flow tools adopt these Annotations
allowing users and developers across diverse projects to implement and
link to a single life-cycle model without inheriting any incompatible
license restrictions.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
# cleanup
find -name "*.jar" -print -delete
find -name "*.class" -delete

cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <groupId>%{name}</groupId>
  <artifactId>%{name}</artifactId>
  <packaging>jar</packaging>
  <version>%{version}</version>
  <url>%{url}</url>

  <properties>
    <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
    <maven.compiler.source>1.7</maven.compiler.source>
    <maven.compiler.target>1.7</maven.compiler.target>
    <timestamp>\${maven.build.timestamp}</timestamp>
    <maven.build.timestamp.format>yyyy</maven.build.timestamp.format>
  </properties>

  <dependencies>
    <dependency>
      <groupId>junit</groupId>
      <artifactId>junit</artifactId>
      <version>4.11</version>
      <scope>test</scope>
    </dependency>
    <dependency>
      <groupId>org.hamcrest</groupId>
      <artifactId>hamcrest-core</artifactId>
      <version>1.3</version>
      <scope>test</scope>
    </dependency>
  </dependencies>

  <build>
    <plugins>
      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-compiler-plugin</artifactId>
        <version>3.3</version>
        <configuration>
          <source>\${maven.compiler.source}</source>
          <target>\${maven.compiler.target}</target>
        </configuration>
      </plugin>

      <plugin>
        <groupId>org.apache.maven.plugins</groupId>
        <artifactId>maven-javadoc-plugin</artifactId>
        <version>2.10</version>
        <configuration>
          <source>\${maven.compiler.source}</source>
          <sourceEncoding>\${project.build.sourceEncoding}</sourceEncoding>
          <show>public</show>
          <doctitle>%{name} \${project.version} API</doctitle>
          <title>%{name} \${project.version} API</title>
          <bottom><![CDATA[Copyright &#169; 2007-\${maven.build.timestamp} Concurrent, Inc. All Rights Reserved.]]></bottom>
          <additionalparam>-Xdoclint:none</additionalparam>
        </configuration>
      </plugin>

    </plugins>
  </build>
  
</project>
EOF

%mvn_file %{name}:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16954 |21mr|rinutils-0.8.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
#%%define _enable_debug_packages %{nil}

Summary:	This is a set of C headers containing macros and static functions
Name:		rinutils
Version:	0.8.0
Release:	1
License:	Expat
Group:		Development/C++
Url:		https://github.com/shlomif/rinutils
Source0:	https://github.com/shlomif/rinutils/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	Shlomif_Common.cmake
BuildRequires:	cmake

%description
This is a set of C headers containing macros and static functions 
that are expected to work on Unix-like systems and MS Windows that 
have been extracted from Shlomi Fish´s projects.

They are quite random and task specific and may not work for you.

Note: we only support the -std=gnu11 dialect as supported by GCC, 
clang and compatible compilers. Other compilers are not supported.

#---------------------------------------------------------------------------

%package devel
Summary:	This is a set of C headers containing macros and static functions
Group:		Development/C++

%description devel
This is a set of C headers containing macros and static functions 
that are expected to work on Unix-like systems and MS Windows that 
have been extracted from Shlomi Fish´s projects.

They are quite random and task specific and may not work for you.

Note: we only support the -std=gnu11 dialect as supported by GCC, 
clang and compatible compilers. Other compilers are not supported.


%files devel
%doc README.* NEWS.* LICENSE
%{_includedir}/%{name}
%{_libdir}/pkgconfig/librinutils.pc
%{_libdir}/cmake/Rinutils

#----------------------------------------------------------------------------

%prep
%autosetup -p1
cp %{SOURCE1} ./cmake
%build
%cmake -DWITH_TEST_SUITE=OFF
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16955 |21mr|ripole-0.2.0-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname ripole %{major}
%define devname %mklibname ripole -d

Summary:	Extracts attachments out of mailpack format emails
Name:		ripole
Version:	0.2.0
Release:	28
License:	BSD
Group:		Networking/Mail
Url:		http://www.pldaniels.com/ripole/
Source0:	http://www.pldaniels.com/ripole/%{name}-%{version}.tar.gz
Patch0:		ripole-0.1.4-shared.diff
Patch1:		ripole-0.2.0-dev.diff
Patch2:		ripole-0.2.0-format_not_a_string_literal_and_no_format_arguments.diff
BuildRequires:	libtool

%description
ripOLE is a small program/library designed to pull out attachments from OLE2
data files (ie, MS Office documents). ripOLE is BSD licenced meaning that
commercial projects can also use the code without worry of licence costs or
legal liabilities.

%files
%doc CHANGELOG CONTRIBUTORS LICENSE README
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Shared %{name} library
Group:		System/Libraries

%description -n	%{libname}
This package contains the shared library for ripOLE.

%files -n %{libname}
%{_libdir}/libripole.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the %{name} library
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the development files for ripOLE.

%files -n %{devname}
%doc TODO
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p0

%build
%serverbuild

%make \
	CFLAGS="%{optflags} -I. -fPIC -DPIC -D_REENTRANT" \
	libdir=%{_libdir} \
	LDFLAGS="%{ldflags}" \
	%{nil}

%install

%makeinstall_std \
	bindir=%{_bindir} \
	libdir=%{_libdir} \
	includedir=%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16956 |21mr|rlottie-0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname	%mklibname rlottie %{major}
%define devname	%mklibname -d rlottie

Name: rlottie
Version: 0.2
Release: 3
Group:	System/Libraries

# Main source: LGPLv2+
# rapidjson (base) - MIT
# rapidjson (msinttypes) - BSD
# freetype rasterizer - FTL
# vector (vinterpolator) - MPLv1.1
License: LGPLv2+ and MIT and FTL and BSD and MPLv1.1
Summary: Platform independent standalone library that plays Lottie Animation

URL: https://github.com/Samsung/rlottie
Source0: https://github.com/Samsung/rlottie/archive/v%{version}/%{name}-%{version}.tar.gz
# From Fedora
Patch0: rlottie-gcc11.patch

BuildRequires: gtest-devel
BuildRequires: meson
BuildRequires: cmake

%description
rlottie is a platform independent standalone C++ library for rendering
vector based animations and art in realtime.

Lottie loads and renders animations and vectors exported in the bodymovin
JSON format. Bodymovin JSON can be created and exported from After Effects
with bodymovin, Sketch with Lottie Sketch Export, and from Haiku.

For the first time, designers can create and ship beautiful animations
without an engineer painstakingly recreating it by hand. Since the animation
is backed by JSON they are extremely small in size but can be large in
complexity.

%package -n	%{libname}
Summary:	Platform independent standalone library that plays Lottie Animation
Group:		System/Libraries

%description -n	%{libname}
rlottie is a platform independent standalone C++ library for rendering
vector based animations and art in realtime.

Lottie loads and renders animations and vectors exported in the bodymovin
JSON format. Bodymovin JSON can be created and exported from After Effects
with bodymovin, Sketch with Lottie Sketch Export, and from Haiku.

For the first time, designers can create and ship beautiful animations
without an engineer painstakingly recreating it by hand. Since the animation
is backed by JSON they are extremely small in size but can be large in
complexity.

%package -n %{devname}
Summary: Development files for %{name}
Provides: %{name}-devel
Requires: %{libname} = %{EVRD}

%description -n %{devname}
%{summary}.

%prep
%autosetup -p1
sed -e "s/, 'optimization=s'//" -i meson.build

%build
%meson \
    -Dwerror=false \
    -Dtest=true \
    -Dthread=true \
    -Dexample=false \
    -Dcache=false \
    -Dlog=false \
    -Dcmake=true \
    -Dmodule=false

%meson_build

%install
%meson_install

%check
%meson_test

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{devname}
%doc AUTHORS README.md
%license COPYING licenses/*
%{_includedir}/%{name}*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/cmake/%{name}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16957 |21mr|rmic-maven-plugin-1.2.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             rmic-maven-plugin
Version:          1.2.1
Release:          19
Summary:          Uses the java rmic compiler to generate classes used in remote method invocation
License:          MIT
URL:              http://mojo.codehaus.org/%{name}
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:          http://repo2.maven.org/maven2/org/codehaus/mojo/%{name}/%{version}/%{name}-%{version}-source-release.zip

Patch0:           pom-compiler-source-target.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-model:2.0.6)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)

%description
This plugin works with Maven 2 and uses the java rmic compiler to generate
classes used in remote method invocation.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
sed -i -e "s|groupId>plexus|groupId>org.codehaus.plexus|g" pom.xml

%patch0 -p0

%pom_add_dep "junit:junit::test"

%build
# Unit tests pass, but for some reason the integrations fail in mock
%mvn_build -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%doc License.txt

%files javadoc -f .mfiles-javadoc
%doc License.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16958 |21mr|rngom-201103-0.19.20120119svn
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: rngom
Version: 201103
Release: 0.19.20120119svn
Summary: Java library for parsing RELAX NG grammars
License: MIT
URL: https://java.net/projects/rngom

# svn export -r 70 https://svn.java.net/svn/rngom~svn/trunk/rngom rngom-201103
# find rngom-201103/ -name '*.class' -delete
# find rngom-201103/ -name '*.jar' -delete
# tar czf rngom-201103.tar.gz rngom-201103
Source0: %{name}-%{version}.tar.gz
Patch0: %{name}-%{version}-pom.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.sun.msv.datatype.xsd:xsdlib)
BuildRequires:  mvn(javax.xml.stream:stax-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-clean-plugin)
BuildRequires:  mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires:  mvn(relaxngDatatype:relaxngDatatype)
BuildRequires:  mvn(xmlunit:xmlunit)
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
RNGOM is an open-source Java library for parsing RELAX NG grammars.

In particular, RNGOM can:
* parse the XML syntax
* parse the compact syntax
* check all the semantic restrictions as specified in the specification
* parse RELAX NG into application-defined data structures
* build a default data structure based around the binarized simple syntax or
  another data structure that preserves more of the parsed information
* parse foreign elements/attributes in a schema
* parse comments in a schema

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
%patch0 -p1

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license licenceheader.txt

%files javadoc -f .mfiles-javadoc
%license licenceheader.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16959 |21mr|rng-tools-6.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Random number generator related utilities
Name:		rng-tools
Version:	6.15
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/nhorman/rng-tools
Source0:	https://github.com/nhorman/rng-tools/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	jitterentropy-devel
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libp11)
BuildRequires:	pkgconfig(libssl)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libxml-2.0)
# old name
Provides:	rng-utils = %{EVRD}

%description
Hardware random number generation tools.
It monitors a set of entropy sources,
and supplies entropy from them to the
system kernel's /dev/random machinery.

%files
%doc AUTHORS README.md
%license COPYING
%{_bindir}/randstat
%{_bindir}/rngtest
%{_mandir}/man1/rngtest.1.*
%{_mandir}/man8/rngd.8.*
%{_presetdir}/86-rngd.preset
%{_sbindir}/rngd
%{_unitdir}/rngd.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
NOCONFIGURE=1 ./autogen.sh

%configure --without-rtlsdr
%make_build

%install
%make_install

# install systemd unit file
mkdir -p %{buildroot}%{_unitdir}
install -m0644 rngd.service %{buildroot}%{_unitdir}/rngd.service

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-rngd.preset << EOF
enable rngd.service
EOF

chmod -R a-s %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16960 |21mr|rnnoise-0-2.git7f449b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 7f449bf8bd3b933891d12c30112268c4090e4d59
%define commit_short %(echo %{commit} | head -c 6)

%define major 0
%define libname	%mklibname rnnoise %{major}
%define devname	%mklibname -d rnnoise 

Summary:	Recurrent neural network for audio noise reduction
Name:		rnnoise
Version:	0
Release:	2.git%{commit_short}.1
License:	BSD
Group:		System/Libraries
# also https://github.com/xiph/rnnoise
Url:		https://gitlab.xiph.org/xiph/rnnoise
Source0:	https://gitlab.xiph.org/xiph/rnnoise/-/archive/%{commit}/rnnoise-%{commit}.tar.gz
BuildRequires:	autoconf automake libtool make
BuildRequires:	doxygen graphviz

%description
%summary

%package -n	%{libname}
Summary:	%summary
Group:		System/Libraries

%description -n	%{libname}
%summary

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n	%{devname}
This package includes the development files for %{name}.

%prep
%setup -q -n %{name}-%{commit}
autoreconf -fiv
%configure \
	--enable-examples-build

%build
%make_build

%install
%make_install
rm -f %{buildroot}%{_datadir}/doc/%{name}/AUTHORS
rm -f %{buildroot}%{_datadir}/doc/%{name}/README
rm -f %{buildroot}%{_datadir}/doc/%{name}/COPYING

%files -n %{libname}
%{_libdir}/librnnoise.so.%{major}*

%files -n %{devname}
%{_includedir}/rnnoise.h
%{_libdir}/librnnoise.so
%{_libdir}/pkgconfig/rnnoise.pc
%{_docdir}/rnnoise

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16961 |21mr|robin-map-0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	C++ implementation of a fast hash map and hash set using robin hood hashing
Name:		robin-map
Version:	0.6.3
Release:	1
License:	MIT
Group:		Development/C++
Url:		https://github.com/Tessil/robin-map
Source0:	https://github.com/Tessil/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	boost-devel
Provides:	%{name}-devel = %{EVRD}
BuildArch:	noarch

%description
The robin-map library is a C++ implementation of a fast hash map and hash set
using open-addressing and linear robin hood hashing with backward shift
deletion to resolve collisions.

%files
%doc README.md
%license LICENSE
%{_datadir}/cmake/tsl-%{name}/*.cmake
%{_includedir}/tsl

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16962 |21mr|robust-http-client-1.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           robust-http-client
Version:        1.2
Release:        14
Summary:        Small Java library that performs HTTP download with automatic retry

License:        MIT
URL:            https://github.com/kohsuke/robust-http-client
Source0:        https://github.com/kohsuke/%{name}/archive/%{name}-%{version}.tar.gz
# taken from http://opensource.org/licenses/MIT
Source1:        LICENSE.txt

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-manager-plexus)
BuildRequires:  mvn(org.apache.maven.scm:maven-scm-provider-gitexe)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
robust-http-client is a small Java library which can be used
for performing HTTP downloads with automatic retry.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains API javadoc documentation for %{name}


%prep
%setup -q -n %{name}-%{name}-%{version}

cp %{SOURCE1} LICENSE

# We don't have this extension
%pom_xpath_remove "pom:extension[pom:artifactId[text()='wagon-gitsite']]"

%build
# Tests are disabled because they try to download something from the network
%mvn_build -f

%install
%mvn_install


%files -f .mfiles
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16963 |21mr|rocs-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Graph - Editor and a Programming Environement
Name:		rocs
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/rocs
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	grantlee5-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5ScriptTools)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5XmlPatterns)

%description
Rocs aims to be a Graph Theory IDE for helping professors to show the results
of a graph algorithm and also helping students to do the algorithms.
Rocs has a scripting module, done in Qt Script, that interacts with the drawn
graph and every change in the graph with the script is reflected on the drawn
one.

%files -f %{name}.lang
%doc AUTHORS README.md
%{_kde5_applicationsdir}/org.kde.rocs.desktop
%{_kde5_bindir}/rocs
%{_kde5_datadir}/config.kcfg/rocs.kcfg
%dir %{_kde5_datadir}/rocs/
%{_kde5_datadir}/rocs/*
%{_kde5_iconsdir}/hicolor/*/apps/rocs.*
%{_kde5_iconsdir}/hicolor/*/actions/rocs*.*
%{_kde5_xmlguidir}/rocs/rocsui.rc
%{_appdatadir}/org.kde.rocs.appdata.xml
%{_qt5_plugindir}/rocs/*/*.so

#----------------------------------------------------------------------------

%define rocsgraphtheory_major 0
%define librocsgraphtheory %mklibname rocsgraphtheory %{rocsgraphtheory_major}

%package -n %{librocsgraphtheory}
Summary:	Runtime library for Rocs
Group:		System/Libraries

%description -n %{librocsgraphtheory}
Runtime library for Rocs.

%files -n %{librocsgraphtheory}
%{_kde5_libdir}/librocsgraphtheory.so.%{rocsgraphtheory_major}*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{librocsgraphtheory} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files needed to build applications based on %{name}.

%files -n %{devname}
%{_kde5_includedir}/rocs
%{_kde5_libdir}/librocsgraphtheory.so

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} libgraphtheory %{name}.lang --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16964 |21mr|roc-toolkit-0.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define  debug_package %{nil}

Summary:	Real-time audio streaming
Name:		roc-toolkit
Version:	0.2.3
Release:	1
Group:		Sound
License:	MPL-2.0 AND LGPL-2.1-or-later AND CECILL-C
URL:		https://github.com/roc-streaming/roc-toolkit
Source0:	https://github.com/roc-streaming/roc-toolkit/archive/%{?snapshot:refs/heads/master}%{!?snapshot:v%{version}/%{name}-%{version}}.tar.gz
Patch0:		roc-c++unwind.patch
Patch1:		https://src.fedoraproject.org/fork/wtaymans/rpms/roc-toolkit/raw/d31d30281a036556dae16f72e7b3d641cb1ce2ad/f/pkgdir.patch

BuildRequires:	pkgconfig(python)
BuildRequires:  scons
BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	gengetopt
BuildRequires:	ragel
BuildRequires:	pkgconfig(libuv)
BuildRequires:	pkgconfig(libunwind)
BuildRequires:	pkgconfig(sox)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	openfec-devel
#BuildRequires:	pkgconfig(cpputest)
BuildRequires:	doxygen
BuildRequires:	python3-sphinx
BuildRequires:	python3-breathe
ExcludeArch: %{e2k} %{riscv}
 
%description
Roc is a toolkit for real-time audio streaming over the network.

%files
%license LICENSE
%doc README.md
%{_libdir}/libroc.so.0*

#----------------------------------------------
 
%package devel
Summary: Development libraries for roc-toolkit
Requires: %{name}  = %{EVRD}
 
%description devel
The roc-toolkit-devel package contains header files necessary for
developing programs using roc-toolkit.
%files devel
%{_includedir}/roc
%{_libdir}/libroc.so
%{_libdir}/pkgconfig/roc.pc

#----------------------------------------------

%package utils
Summary: Utilities for roc-toolkit
Requires: %{name}  = %{EVRD}
 
%description utils
Utilities for roc-toolkit.

%files utils
%{_bindir}/roc-conv
%{_bindir}/roc-recv
%{_bindir}/roc-send
%{_mandir}/man1/*.1*

#----------------------------------------------
 
%package doc
Summary: Documentation for roc-toolkit
 
%description doc
Documentation for roc-toolkit.

%files doc

#----------------------------------------------
 
%prep
%autosetup -p1 -n %{name}-%{version}
 
%build
scons \
	--with-openfec-includes=%{_includedir}/openfec \
	--disable-libunwind CC=%{__cc} CXX=%{__cxx}

%install
scons install --with-openfec-includes=%{_includedir}/openfec --prefix=%{buildroot}%{_prefix} \
  --libdir=%{buildroot}%{_libdir} CC=%{__cc} CXX=%{__cxx}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16965 |21mr|rome-1.7.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with     jp_minimal

Name:          rome
Version:       1.7.0
Release:       8
Summary:       RSS and Atom Utilities
License:       ASL 2.0
URL:           http://rometools.github.io/rome/
# Original source archive 73,8 MB
# sh rome-create-tarball.sh < VERSION >
# Repackaged source archive 575 KB
Source0:       %{name}-%{version}.tar.xz
Source1:       %{name}-create-tarball.sh

BuildRequires: maven-local
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-httpclient:commons-httpclient)
BuildRequires: mvn(javax.persistence:persistence-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(junit:junit)
%if %{without jp_minimal}
BuildRequires: mvn(net.oauth.core:oauth)
%endif
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.xmlrpc:xmlrpc-client)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.jdom:jdom2)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(xmlunit:xmlunit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ROME is an set of open source Java tools for parsing, generating and
publishing RSS and Atom feeds.

%package certiorem
Summary:       A PubSubHubub implementation for Java based on ROME

%description certiorem
PubSubHubub protocol implementation based on ROME.

%package fetcher
Summary:       Retrieves RSS feeds via HTTP conditional gets using ROME

%description fetcher
ROME Fetcher is a caching feed fetcher that supports retrieval of
feeds via HTTP conditional GET. Supports ETags, GZip compression,
and RFC3229 Delta encoding.

%package modules
Summary:       Plugin collection for the ROME RSS and Atom Utilities
# LGPL:
# rome-modules/src/main/java/com/rometools/modules/base/Course.java
# rome-modules/src/main/java/com/rometools/modules/base/CustomTagImpl.java
# rome-modules/src/main/java/com/rometools/modules/content/ContentItem.java
# rome-modules/src/main/java/com/rometools/modules/itunes/types/Duration.java
# rome-modules/src/main/java/com/rometools/modules/photocast/PhotocastModule.java
# rome-modules/src/main/java/com/rometools/modules/slash/Slash.java
# rome-modules/src/main/java/com/rometools/modules/yahooweather/YWeatherEntryModule.java
License:       ASL 2.0 and LGPLv2

%description modules
This module contains extensions that enable ROME to
handle several feed extensions like MediaRSS,
GeoRSS and others.

%package opml
Summary:       Support for OPML 1 and OPML 2 in ROME

%description opml
This module contains Outline Processor Markup Language parser and tools.

%package propono
Summary:       ROME Propono

%description propono
The ROME Propono sub-project is a Java class library that
supports publishing protocols, specifically the Atom Publishing Protocol
and the legacy MetaWeblog API. Propono includes an Atom client library,
Atom server framework and a Blog client that supports both Atom protocol
and the MetaWeblog API. 

%package utils
Summary:       Utility classes for ROME projects

%description utils
This modules provides utility classes for all ROME projects.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

# Unneeded tasks
%pom_remove_plugin -r :maven-scm-publish-plugin

%pom_xpath_remove -r "pom:Embed-Dependency" %{name} %{name}-modules
%pom_xpath_remove "pom:Embed-Transitive" %{name}-modules

%pom_change_dep -r com.rometools: ::'${project.version}'

# Force servlet 3.1
%pom_change_dep -r :servlet-api javax.servlet:javax.servlet-api:3.1.0
sed -i "s|String, Object|String, String[]|" \
 %{name}-propono/src/main/java/com/rometools/propono/atom/server/AtomRequestImpl.java \
 %{name}-propono/src/main/java/com/rometools/propono/atom/server/AtomRequest.java

# com.google.inject.extensions:guice-servlet
%pom_disable_module rome-certiorem-webapp
# No test deps (contains only tests)
# org.ops4j.pax.exam:pax-exam-container-native:4.8.0
# org.ops4j.pax.exam:pax-exam-junit4:4.8.0
# org.ops4j.pax.exam:pax-exam-link-mvn:4.8.0
# org.ops4j.pax.url:pax-url-wrap:2.4.5
%pom_disable_module rome-osgi-test

# Unecessary test dep
# ch.qos.logback:logback-classic
%pom_remove_dep -r ch.qos.logback:

# Unavailable test dep
# jetty:jetty:4.2.12
%pom_remove_dep -r jetty:jetty
rm %{name}-fetcher/src/test/java/com/rometools/fetcher/AbstractJettyTest.java \
 %{name}-fetcher/src/test/java/com/rometools/fetcher/impl/HttpClientFeedFetcherTest.java \
 %{name}-fetcher/src/test/java/com/rometools/fetcher/impl/HttpURLFeedFetcherTest.java \
 %{name}-propono/src/test/java/com/rometools/propono/atom/server/AtomClientServerTest.java \
 %{name}-propono/src/test/java/com/rometools/propono/atom/server/TestAtomHandlerImpl.java \
 %{name}-propono/src/test/java/com/rometools/propono/atom/server/TestAtomHandlerFactory.java

# Conditionally build oauth support
%if %{with jp_minimal}
%pom_remove_dep net.oauth.core: rome-propono
rm rome-propono/src/main/java/com/rometools/propono/atom/client/OAuthStrategy.java
%endif

# Convert from dos to unix line ending
sed -i.orig 's|\r||g' README.md
touch -r README.md.orig README.md
rm README.md.orig

# @ random fails: AssertionError
rm %{name}-modules/src/test/java/com/rometools/modules/cc/types/LicenseTest.java

%mvn_alias com.rometools:%{name} %{name}:%{name} net.java.dev.%{name}:%{name}
# Avoid problems with old rome-parent-1.5.0 package
%mvn_package :%{name}-parent %{name}

%build

%mvn_build -s 

%install
%mvn_install

%files -f .mfiles-%{name}
%files certiorem -f .mfiles-%{name}-certiorem
%files fetcher -f .mfiles-%{name}-fetcher
%files modules -f .mfiles-%{name}-modules
%files opml -f .mfiles-%{name}-opml

%files propono -f .mfiles-%{name}-propono
%license %{name}-propono/NOTICE

%files utils -f .mfiles-%{name}-utils
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16966 |21mr|rootcerts-20220927.00-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# don't make useless debug packages
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

# _without = java enabled, _with = java disabled
%bcond_without java

%define pkidir %{_sysconfdir}/pki
%define catrustdir %{_sysconfdir}/pki/ca-trust
%define classic_tls_bundle ca-bundle.crt
%define openssl_format_trust_bundle ca-bundle.trust.crt
%define p11_format_bundle ca-bundle.trust.p11-kit
%define legacy_default_bundle ca-bundle.legacy.default.crt
%define legacy_disable_bundle ca-bundle.legacy.disable.crt
%define java_bundle java/cacerts

Summary:	Bundle of CA Root Certificates
Name:		rootcerts
# <mrl> Use this versioning style in order to be easily backportable.
# Note that the release is the last two digits on the version.
# All BuildRequires for rootcerts should be done this way:
# BuildRequires: rootcerts >= 0:20070402.00, for example
# - NEVER specifying the %%{release}
Epoch:		1
Version:	20220927.00
Release:	2
License:	GPL
Group:		System/Servers
URL:		%{disturl}
# For Source0, the NSS commit trunk version of this file is here:
# https://hg.mozilla.org/projects/nss/raw-file/default/lib/ckfw/builtins/certdata.txt
# See https://hg.mozilla.org/projects/nss/log/default/lib/ckfw/builtins/certdata.txt for new versions
# The version tag for this package should come from the commit date of the version used from the NSS repository above
# To choose which NSS commit version to use, we can check the certdata.txt file used in either...
# the current Mozilla release:
# https://hg.mozilla.org/releases/mozilla-release/log/default/security/nss/lib/ckfw/builtins/certdata.txt
# or the Mozilla development commit trunk:
# https://hg.mozilla.org/mozilla-central/log/default/security/nss/lib/ckfw/builtins/certdata.txt
# Ideally, it should correspond to the version shipped in the NSS release we are using
Source0:	https://hg.mozilla.org/releases/mozilla-release/raw-file/tip/security/nss/lib/ckfw/builtins/certdata.txt
# Similarly, Source1 comes from:
# https://hg.mozilla.org/projects/nss/raw-file/default/lib/ckfw/builtins/nssckbi.h
# Check the log to see if it needs to be updated:
# https://hg.mozilla.org/projects/nss/log/default/lib/ckfw/builtins/nssckbi.h
Source1:	nssckbi.h
Source2:	update-ca-trust
Source3:	trust-fixes
Source4:	certdata2pem.py
Source5:	ca-legacy.conf
Source6:	ca-legacy
Source9:	ca-legacy.8.txt
Source10:	update-ca-trust.8.txt
# https://www.gosuslugi.ru/crt -> macOS
# https://developers.sber.ru/docs/ru/salutespeech/certificates
Source11:	https://gu-st.ru/content/Other/doc/russiantrustedca.pem
BuildRequires:	python3
BuildRequires:	openssl
BuildRequires:	nss
BuildRequires:	automake
BuildRequires:	libtool
%if %{with java}
BuildRequires:	java-devel
BuildRequires:	javapackages-tools
%endif
BuildRequires:	docbook-xsl
BuildRequires:	asciidoc
BuildRequires:	xsltproc
Recommends:		(%{name}-russia if locales-ru)
# have rootcerts-russia installed before update-ca-trust is run
# TODO: convert %%post into filetriggers
OrderWithRequires(post):	%{name}-russia
Requires(post):	coreutils
Requires(post):	p11-kit
Requires(post):	p11-kit-trust
BuildArch:	noarch
Provides:	ca-certificates

# update-ca-trust (provided by rootcerts, called by %%post script)
# calls /usr/bin/p11-kit, which in turn calls /usr/bin/trust
Requires(post):	p11-kit p11-kit-trust
Requires:	p11-kit p11-kit-trust

%description
This is a bundle of X.509 certificates of public Certificate
Authorities (CA). These were automatically extracted from Mozilla's
root CA list (the file "certdata.txt"). It contains the certificates
in both plain text and PEM format and therefore can be directly used
with an Apache/mod_ssl webserver for SSL client authentication. Just
configure this file as the SSLCACertificateFile.

#--------------------------------------------------------------------

%package russia
Summary:	Root certificates of Russian government (Mintsyfra)
Url:		https://www.gosuslugi.ru/tls
Requires:	%{name}

%description russia
Root certificates of Russian government (Mintsyfra)

#--------------------------------------------------------------------

%if %{with java}
%package java
Summary:	Bundle of CA Root Certificates for Java
Group:		Development/Java

%description java
Bundle of X.509 certificates of public Certificate Authorities (CA)
in a format used by Java Runtime Environment.
%endif

%prep
rm -rf %{name}
mkdir -p %{name}/certs/legacy-default
mkdir %{name}/certs/legacy-disable
mkdir %{name}/java

%build
pushd %{name}/certs
 cp %{SOURCE0} certdata.txt
 python3 %{SOURCE4} >c2p.log 2>c2p.err
popd
pushd %{name}
 (
   cat <<EOF
# This is a bundle of X.509 certificates of public Certificate
# Authorities.  It was generated from the Mozilla root CA list.
# These certificates and trust/distrust attributes use the file format accepted
# by the p11-kit-trust module.
#
# Source: nss/lib/ckfw/builtins/certdata.txt
# Source: nss/lib/ckfw/builtins/nssckbi.h
#
# Generated from:
EOF
   cat %{SOURCE1}  |grep -w NSS_BUILTINS_LIBRARY_VERSION | awk '{print "# " $2 " " $3}';
   echo '#';
 ) > %{p11_format_bundle}

 touch %{legacy_default_bundle}
 NUM_LEGACY_DEFAULT=$(find certs/legacy-default -type f | wc -l)
 if [ $NUM_LEGACY_DEFAULT -ne 0 ]; then
     for f in certs/legacy-default/*.crt; do
       echo "processing $f"
       tbits=$(sed -n '/^# openssl-trust/{s/^.*=//;p;}' $f)
       alias=$(sed -n '/^# alias=/{s/^.*=//;p;q;}' $f | sed "s/'//g" | sed 's/"//g')
       targs=""
       if [ -n "$tbits" ]; then
          for t in $tbits; do
             targs="${targs} -addtrust $t"
          done
       fi
       if [ -n "$targs" ]; then
          echo "legacy default flags $targs for $f" >> info.trust
          openssl x509 -text -in "$f" -trustout $targs -setalias "$alias" >> %{legacy_default_bundle}
       fi
     done
 fi

 touch %{legacy_disable_bundle}
 NUM_LEGACY_DISABLE=$(find certs/legacy-disable -type f | wc -l)
 if [ $NUM_LEGACY_DISABLE -ne 0 ]; then
     for f in certs/legacy-disable/*.crt; do
       echo "processing $f"
       tbits=$(sed -n '/^# openssl-trust/{s/^.*=//;p;}' $f)
       alias=$(sed -n '/^# alias=/{s/^.*=//;p;q;}' $f | sed "s/'//g" | sed 's/"//g')
       targs=""
       if [ -n "$tbits" ]; then
          for t in $tbits; do
             targs="${targs} -addtrust $t"
          done
       fi
       if [ -n "$targs" ]; then
          echo "legacy disable flags $targs for $f" >> info.trust
          openssl x509 -text -in "$f" -trustout $targs -setalias "$alias" >> %{legacy_disable_bundle}
       fi
     done
 fi

 P11FILES=$(find certs -name \*.tmp-p11-kit | wc -l)
 if [ $P11FILES -ne 0 ]; then
   for p in certs/*.tmp-p11-kit; do
     cat "$p" >> %{p11_format_bundle}
   done
 fi
 # Append our trust fixes
 cat %{SOURCE3} >> %{p11_format_bundle}
popd

#manpage
cp %{SOURCE10} %{name}/update-ca-trust.8.txt
asciidoc.py -v -d manpage -b docbook %{name}/update-ca-trust.8.txt
xsltproc --nonet -o %{name}/update-ca-trust.8 /etc/asciidoc/docbook-xsl/manpage.xsl %{name}/update-ca-trust.8.xml

cp %{SOURCE9} %{name}/ca-legacy.8.txt
asciidoc.py -v -d manpage -b docbook %{name}/ca-legacy.8.txt
xsltproc --nonet -o %{name}/ca-legacy.8 /etc/asciidoc/docbook-xsl/manpage.xsl %{name}/ca-legacy.8.xml

%install
mkdir -p -m 755 %{buildroot}%{pkidir}/java
mkdir -p -m 755 %{buildroot}%{catrustdir}/source
mkdir -p -m 755 %{buildroot}%{catrustdir}/source/anchors
mkdir -p -m 755 %{buildroot}%{catrustdir}/source/blacklist
mkdir -p -m 755 %{buildroot}%{catrustdir}/extracted
mkdir -p -m 755 %{buildroot}%{catrustdir}/extracted/pem
mkdir -p -m 755 %{buildroot}%{catrustdir}/extracted/openssl
mkdir -p -m 755 %{buildroot}%{catrustdir}/extracted/java
mkdir -p -m 755 %{buildroot}%{catrustdir}/extracted/edk2
mkdir -p -m 755 %{buildroot}%{_mandir}/man8
install -p -m 644 %{name}/update-ca-trust.8 %{buildroot}%{_mandir}/man8
install -p -m 644 %{name}/ca-legacy.8 %{buildroot}%{_mandir}/man8
install -d %{buildroot}%{_sysconfdir}/pki/tls/certs
install -d %{buildroot}%{_sysconfdir}/pki/tls/certs/source
install -d %{buildroot}%{_sysconfdir}/pki/tls/mozilla
install -d %{buildroot}%{_bindir}
install -p -m 644 %{SOURCE5} %{buildroot}%{catrustdir}/ca-legacy.conf
install -p -m 755 %{SOURCE2} %{buildroot}%{_bindir}/update-ca-trust
install -p -m 755 %{SOURCE6} %{buildroot}%{_bindir}/ca-legacy

install -m0644 %{name}/certs/certdata.txt %{buildroot}%{_sysconfdir}/pki/tls/mozilla/

mkdir -p -m 755 %{buildroot}%{catrustdir}/source
mkdir -p -m 755 %{buildroot}%{_datadir}/pki/ca-trust-source
install -p -m 644 %{name}/%{p11_format_bundle} %{buildroot}%{_datadir}/pki/ca-trust-source/%{p11_format_bundle}

mkdir -p -m 755 %{buildroot}%{_datadir}/pki/ca-trust-legacy
install -p -m 644 %{name}/%{legacy_default_bundle} %{buildroot}%{_datadir}/pki/ca-trust-legacy/%{legacy_default_bundle}
install -p -m 644 %{name}/%{legacy_disable_bundle} %{buildroot}%{_datadir}/pki/ca-trust-legacy/%{legacy_disable_bundle}

install -m0644 %{SOURCE11} %{buildroot}%{catrustdir}/source/anchors/russia_rsa2022.cer

%if %with java
install -d %{buildroot}%{_sysconfdir}/pki/java
%endif

cat > README << EOF

R O O T C E R T S
-----------------

This is a bundle of X.509 certificates of public Certificate
Authorities (CA). These were automatically extracted from Mozilla's
root CA list (the file "certdata.txt"). It contains the certificates
in both plain text and PEM format and therefore can be directly used
with an Apache/mod_ssl webserver for SSL client authentication. Just
configure this file as the SSLCACertificateFile.

EOF

# be compatible with Debian/Ubuntu SSL paths
# fix #58107 (also used by dovecot default config)
install -d %{buildroot}%{_sysconfdir}/ssl

for d in certs private; do
    ln -sf %{_sysconfdir}/pki/tls/$d %{buildroot}%{_sysconfdir}/ssl/
done

# touch ghosted files that will be extracted dynamically
# Set chmod 444 to use identical permission
touch %{buildroot}%{catrustdir}/extracted/pem/tls-ca-bundle.pem
chmod 444 %{buildroot}%{catrustdir}/extracted/pem/tls-ca-bundle.pem
touch %{buildroot}%{catrustdir}/extracted/pem/email-ca-bundle.pem
chmod 444 %{buildroot}%{catrustdir}/extracted/pem/email-ca-bundle.pem
touch %{buildroot}%{catrustdir}/extracted/pem/objsign-ca-bundle.pem
chmod 444 %{buildroot}%{catrustdir}/extracted/pem/objsign-ca-bundle.pem
touch %{buildroot}%{catrustdir}/extracted/openssl/%{openssl_format_trust_bundle}
chmod 444 %{buildroot}%{catrustdir}/extracted/openssl/%{openssl_format_trust_bundle}
touch %{buildroot}%{catrustdir}/extracted/%{java_bundle}
chmod 444 %{buildroot}%{catrustdir}/extracted/%{java_bundle}
touch %{buildroot}%{catrustdir}/extracted/edk2/cacerts.bin
chmod 444 %{buildroot}%{catrustdir}/extracted/edk2/cacerts.bin

# legacy filenames
ln -s %{catrustdir}/extracted/pem/tls-ca-bundle.pem \
    %{buildroot}%{pkidir}/tls/cert.pem
ln -s %{catrustdir}/extracted/pem/tls-ca-bundle.pem \
    %{buildroot}%{pkidir}/tls/certs/%{classic_tls_bundle}
ln -s %{catrustdir}/extracted/openssl/%{openssl_format_trust_bundle} \
    %{buildroot}%{pkidir}/tls/certs/%{openssl_format_trust_bundle}
%if %{with java}
ln -s %{catrustdir}/extracted/%{java_bundle} \
    %{buildroot}%{pkidir}/%{java_bundle}
%endif

%post
%{_bindir}/ca-legacy install
%{_bindir}/update-ca-trust

%files
%doc README
%dir %{catrustdir}/source
%dir %{catrustdir}/source/anchors
%dir %{catrustdir}/source/blacklist
%{_sysconfdir}/pki/tls/cert.pem
%{_mandir}/man8/ca-legacy.8.*
%{_mandir}/man8/update-ca-trust.8.*
%config(noreplace) %{_sysconfdir}/pki/tls/mozilla/certdata.txt
%{_sysconfdir}/ssl/certs
%{_sysconfdir}/ssl/private
# symlinks for old locations
%{pkidir}/tls/certs/%{classic_tls_bundle}
%{pkidir}/tls/certs/%{openssl_format_trust_bundle}
# master bundle file with trust
%{_datadir}/pki/ca-trust-source/%{p11_format_bundle}

%{_datadir}/pki/ca-trust-legacy/%{legacy_default_bundle}
%{_datadir}/pki/ca-trust-legacy/%{legacy_disable_bundle}
# update/extract tool
%config(noreplace) %{catrustdir}/ca-legacy.conf
%{_bindir}/update-ca-trust
%{_bindir}/ca-legacy
%ghost %{catrustdir}/source/ca-bundle.legacy.crt
# files extracted files
%ghost %{catrustdir}/extracted/pem/tls-ca-bundle.pem
%ghost %{catrustdir}/extracted/pem/email-ca-bundle.pem
%ghost %{catrustdir}/extracted/pem/objsign-ca-bundle.pem
%ghost %{catrustdir}/extracted/openssl/%{openssl_format_trust_bundle}
%ghost %{catrustdir}/extracted/%{java_bundle}
%ghost %{catrustdir}/extracted/edk2/cacerts.bin


%if %{with java}
%files java
%dir %{_sysconfdir}/pki/java
%config(noreplace) %{_sysconfdir}/pki/java/cacerts
%endif

%files russia
%{catrustdir}/source/anchors/russia_rsa2022.cer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16967 |21mr|rootfiles-12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Exclude /bin/sh etc.
# This package is dependency of very basic system,
# depending from bash breaks installation order a bit
%global __requires_exclude ^/.*$

Summary:	The basic required files for the root user's directory
Name:		rootfiles
Version:	12
Release:	3
License:	Public Domain
Group:		System/Base

# This is a Red Hat maintained package which is specific to
# our distribution.  Thus the source is only available from
# within this srpm.
Source0:	dot-bashrc
Source1:	dot-bash_profile
Source2:	dot-bash_logout
Source3:	dot-tcshrc
Source4:	dot-cshrc

BuildArch:	noarch

%description
The rootfiles package contains basic required files that are placed
in the root user's account.  These files are basically the same
as those in /etc/skel, which are placed in regular
users' home directories.

%prep

%install
mkdir -p $RPM_BUILD_ROOT/root

for file in %{SOURCE0} %{SOURCE1} %{SOURCE2} %{SOURCE3} %{SOURCE4} ; do
  f=`basename $file`
  install -p -m 644 $file $RPM_BUILD_ROOT/root/${f/dot-/.}
done

%posttrans
if [ $1 -eq 0 ] ; then
  #copy recursively the content, but do not overwrite the original files provided by rootfiles package
  cp -ndr --preserve=ownership,timestamps /etc/skel/. /root/ || :
fi

%files
%config(noreplace) /root/.[A-Za-z]*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16968 |21mr|rosa-chattr-0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for changing extended file attributes
Name:		rosa-chattr
Version:	0.5
Release:	5
License:	GPLv2+
Group:		File tools
Url:		https://abf.rosalinux.ru/uxteam/%{name}-devel
Source0:	%{url}/archive/%{name}-devel-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt4-devel
Requires:	e2fsprogs
Requires:	rosa-icons

%description
Tool for changing extended file attributes on a Linux file system.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_sbindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/doc/%{name}/help.pdf
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-devel-%{version}

%build
%cmake_qt4
%make

%install
%makeinstall_std -C build

ln -sf consolehelper %{buildroot}%{_bindir}/%{name}

%if %{mdvver} == 201900
sed -i 's@^Exec=/usr/bin/rosa-chattr$@Exec=/bin/sh -c "/usr/bin/rosa-chattr || /usr/bin/rosa-chattr"@' %{buildroot}%{_datadir}/applications/%{name}.desktop
%endif

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16969 |21mr|rosa-device-manager-0.2.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA Device Manager
Name:		rosa-device-manager
Version:	0.2.8
Release:	2
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		https://abf.rosalinux.ru/uxteam/%{name}-devel
Source0:	%{url}/archive/%{name}-devel-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Patch0:		rosa-device-manager-devel-0.2.8-python3.patch
BuildRequires:	cmake
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-qt5-devel
Requires:	python3-pyudev
Requires:	python3dist(configparser)
Requires:	python3dist(pyqt5)
Requires(post):	rpm-helper
BuildArch:	noarch

%description
Identification and blocking of devices.

%files
%attr(0644,root,root) %{_datadir}/polkit-1/actions/com.rosalinux.devicemanager.policy
%attr(0640,root,root) %{_presetdir}/90-%{name}.preset
%attr(0640,root,root) %{_unitdir}/%{name}-update.service
%attr(0640,root,root) %{_unitdir}/%{name}-notify@.service
%attr(0640,root,root) %{python3_sitelib}/rosa_device_manager
%attr(0750,root,root) %{_sbindir}/%{name}
%attr(0755,root,root) %{_bindir}/%{name}-notifier
%attr(0755,root,root) %{_datadir}/%{name}/locale
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/udev/rules.d/00-%{name}.rules
%attr(0640,root,root) %config(noreplace) %{_datadir}/%{name}/%{name}.conf
%attr(0750,root,root) %dir %{_var}/log/%{name}/
%attr(0640,root,root) %ghost %{_sysconfdir}/udev/rules.d/00-%{name}.rules.rpmnew
%attr(0640,root,root) %ghost %{_datadir}/%{name}/%{name}.conf.rpmnew
%attr(0640,root,root) %ghost %{_datadir}/%{name}/update_request
%attr(0640,root,root) %ghost %{_datadir}/%{name}/notify_arguments
%attr(0640,root,root) %ghost %{_datadir}/%{name}/last_unidentified
%attr(0640,root,root) %ghost %{_var}/log/%{name}/00_pci_main_identified.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/01_pci_main_unidentified.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/02_pci_monitor_identified.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/03_pci_monitor_unidentified.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/04_pci_other.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/10_platform_serio_identified.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/11_platform_serio_unidentified.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/12_platform_other.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/20_virtual_dmi_identified.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/21_virtual_dmi_unidentified.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/22_virtual_other.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/60_devices_other.log
%attr(0640,root,root) %ghost %{_var}/log/%{name}/80_not_devices.log

%post
%create_ghostfile %{_sysconfdir}/udev/rules.d/00-%{name}.rules.rpmnew root root 640
%create_ghostfile %{_datadir}/%{name}/%{name}.conf.rpmnew root root 640
%create_ghostfile %{_datadir}/%{name}/update_request root root 640
%create_ghostfile %{_datadir}/%{name}/notify_arguments root root 640
%create_ghostfile %{_datadir}/%{name}/last_unidentified root root 640
%create_ghostfile %{_var}/log/%{name}/00_pci_main_identified.log root root 640
%create_ghostfile %{_var}/log/%{name}/01_pci_main_unidentified.log root root 640
%create_ghostfile %{_var}/log/%{name}/02_pci_monitor_identified.log root root 640
%create_ghostfile %{_var}/log/%{name}/03_pci_monitor_unidentified.log root root 640
%create_ghostfile %{_var}/log/%{name}/04_pci_other.log root root 640
%create_ghostfile %{_var}/log/%{name}/10_platform_serio_identified.log root root 640
%create_ghostfile %{_var}/log/%{name}/11_platform_serio_unidentified.log root root 640
%create_ghostfile %{_var}/log/%{name}/12_platform_other.log root root 640
%create_ghostfile %{_var}/log/%{name}/20_virtual_dmi_identified.log root root 640
%create_ghostfile %{_var}/log/%{name}/21_virtual_dmi_unidentified.log root root 640
%create_ghostfile %{_var}/log/%{name}/22_virtual_other.log root root 640
%create_ghostfile %{_var}/log/%{name}/60_devices_other.log root root 640
%create_ghostfile %{_var}/log/%{name}/80_not_devices.log root root 640

%systemd_post %{name}-update.service

%preun
%systemd_preun %{name}-update.service

%postun
%systemd_postun_with_restart %{name}-update.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-devel-%{version}

%build
%cmake_qt5 \
	-DPYTHON_SITE_PACKAGES="%{python3_sitelib}"
%make

%install
%makeinstall_std -C build

mkdir -p "%{buildroot}%{_var}/log/%{name}"

%py3_shebang_fix %{buildroot}%{_bindir}/%{name}-notifier
%py3_shebang_fix %{buildroot}%{_sbindir}/%{name}

touch %{buildroot}%{_sysconfdir}/udev/rules.d/00-%{name}.rules.rpmnew
touch %{buildroot}%{_datadir}/%{name}/%{name}.conf.rpmnew
touch %{buildroot}%{_datadir}/%{name}/update_request
touch %{buildroot}%{_datadir}/%{name}/notify_arguments
touch %{buildroot}%{_datadir}/%{name}/last_unidentified
touch %{buildroot}%{_var}/log/%{name}/00_pci_main_identified.log
touch %{buildroot}%{_var}/log/%{name}/01_pci_main_unidentified.log
touch %{buildroot}%{_var}/log/%{name}/02_pci_monitor_identified.log
touch %{buildroot}%{_var}/log/%{name}/03_pci_monitor_unidentified.log
touch %{buildroot}%{_var}/log/%{name}/04_pci_other.log
touch %{buildroot}%{_var}/log/%{name}/10_platform_serio_identified.log
touch %{buildroot}%{_var}/log/%{name}/11_platform_serio_unidentified.log
touch %{buildroot}%{_var}/log/%{name}/12_platform_other.log
touch %{buildroot}%{_var}/log/%{name}/20_virtual_dmi_identified.log
touch %{buildroot}%{_var}/log/%{name}/21_virtual_dmi_unidentified.log
touch %{buildroot}%{_var}/log/%{name}/22_virtual_other.log
touch %{buildroot}%{_var}/log/%{name}/60_devices_other.log
touch %{buildroot}%{_var}/log/%{name}/80_not_devices.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16970 |21mr|rosa-freeze-0.9.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rosa-freeze
Version:	0.9.9
Release:	4
Group:		System/Base
Summary:	ROSA Freeze
License:	BSD
Url:		http://wiki.rosalab.ru/en/index.php/ROSA_Freeze
Source0:	https://abf.io/soft/%{name}/archive/%{name}-%{version}.tar.gz
Source1:	rfreeze.policy
Source10:	%{name}.rpmlintrc
Patch0:		rosa-freeze-0.9.9-py3.patch
Patch1:		rosa-freeze-0.9.9-set-boot-default.patch
BuildRequires:	pkgconfig(python3)
Requires:	dracut-aufs
Requires:	rsync
Requires:	python3-%{name} = %{EVRD}
Requires:	python3dist(configparser)
BuildArch:	noarch

%description
ROSA Freeze

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

%postun
%_postun_userdel %{name}
%systemd_postun_with_restart %{name}.service

%files -f %{name}.lang
%{_bindir}/*
%{_datadir}/polkit-1/actions/rfreeze.policy
%{_sbindir}/*
%{_unitdir}/*

#----------------------------------------------------------------

%package -n     python3-%{name}
Summary:        Python API for ROSA Freeze
Group:          System/Base

%description -n python3-%{name}
Python-%{name} is a module with Python API to
manipulate ROSA Freeze features.

%files -n python3-%{name}
%{python3_sitelib}/*

#----------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
pushd po
%make
popd

%install
install -m700 -D rfreeze %{buildroot}%{_sbindir}/rfreeze
install -m700 rosa-freeze-partition %{buildroot}%{_sbindir}/rosa-freeze-partition
install -m644 -D rosa-freeze.service %{buildroot}%{_unitdir}/rosa-freeze.service

mkdir -p %{buildroot}%{python3_sitelib}
cp -r rosa_freeze %{buildroot}%{python3_sitelib}
pushd po
%makeinstall_std
popd

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/rfreeze <<EOF
#!/bin/sh
pkexec %{_sbindir}/rfreeze "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/rfreeze

mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/

%find_lang %{name}

#fix python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_sbindir}/rfreeze

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16971 |21mr|rosa-freeze-ui-0.9-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		rosa-freeze-ui
Version:	0.9
Release:	9
Group:		System/Base
Summary:	ROSA Freeze GUI
License:	BSD
Url:		http://wiki.rosalab.ru/en/index.php/ROSA_Freeze
Source0:	https://abf.io/soft/%{name}/archive/%{name}-%{version}.tar.gz
Source1:	rosa-freeze-16.png
Source2:	rosa-freeze-22.png
Source3:	rosa-freeze-24.png
Source4:	rosa-freeze-32.png
Source5:	rosa-freeze-48.png
Source6:	rosa-freeze-64.png
Source7:	rosa-freeze-128.png
Source8:	rosa-freeze-256.png
Source9:	rfreeze-ui.policy
Source100:	%{name}.rpmlintrc
Patch0:		rosa-freeze-ui-0.9-py3.patch
Patch1:		rosa-freeze-ui-0.9-drop-tmpfs.patch
BuildArch:	noarch
Requires:	rosa-freeze
Requires:	python3-qt5-widgets
Requires:	python3-qt5-gui
Provides:	rfreeze-ui

%description
GUI for ROSA Freeze

%files -f %{name}.lang
%{_bindir}/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/polkit-1/actions/rfreeze-ui.policy
%{_iconsdir}/hicolor/*/apps/*
%{py3_puresitedir}/*
%{_sbindir}/*

#----------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build

%install
install -m700 -D rfreeze.py %{buildroot}%{_sbindir}/rfreeze-ui

mkdir -p %{buildroot}%{py3_puresitedir}/rosa_freeze_ui
cp -r rosa_freeze_ui/*py %{buildroot}%{py3_puresitedir}/rosa_freeze_ui/

mkdir -p %{buildroot}%{_datadir}/%{name}/i18n
cp *qm %{buildroot}%{_datadir}/%{name}/i18n/

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/rfreeze-ui <<EOF
#!/bin/sh
pkexec %{_sbindir}/rfreeze-ui "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/rfreeze-ui

for s in 16 22 24 32 48 64 128 256; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
done
install -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -m 0644 %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/22x22/apps/%{name}.png
install -m 0644 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/24x24/apps/%{name}.png
install -m 0644 %{SOURCE4} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m 0644 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m 0644 %{SOURCE6} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -m 0644 %{SOURCE7} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
install -m 0644 %{SOURCE8} %{buildroot}%{_iconsdir}/hicolor/256x256/apps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
install -m 0644 %{SOURCE9} %{buildroot}%{_datadir}/polkit-1/actions/

mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=ROSA Freeze
Name[ru]=ROSA Freeze
Comment=Freeze your system before experiments
Comment[ru]=Заморозка состояния системы для экспериментального или неквалифицированного использования
Exec=%{_bindir}/rfreeze-ui
Icon=rosa-freeze-ui
Terminal=false
Type=Application
Categories=System;
EOF

desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/%{name}.desktop

%find_lang %{name} --with-qt --all-name

sed -i 's|#!/usr/bin/python.*|#!/usr/bin/python3|' %{buildroot}%{_sbindir}/rfreeze-ui

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16972 |21mr|rosa-gdm-in-plasma5-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Configs to use GDM as default DM in KDE Plasma 5
Name: rosa-gdm-in-plasma5
Group: Graphical desktop/KDE
License: Public Domain
Version: 1.0
Release: 1
BuildArch: noarch
Requires: gdm
# TODO: order installation before sddm

%description
Configs to use GDM as default DM in KDE Plasma 5
(GDM supports 2-factor authentication and other important features)

%files
%{_presetdir}/70-%{name}.preset
#------------------------------------------------------------------

%prep
%build
%install
mkdir -p %{buildroot}%{_presetdir}
# systemd package has file /lib/systemd/system-preset/85-display-manager.preset
# where all DMs are enabled, 70 < 85 -> higher priority
cat > %{buildroot}%{_presetdir}/70-%{name}.preset << 'EOF'
disable sddm.service
enable gdm.service
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16973 |21mr|rosa-gsettings-desktop-schemas-40-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA schemas for GNOME
Name:		rosa-gsettings-desktop-schemas
Version:	40
Release:	2
Group:		Graphical desktop/GNOME
License:	GPLv2+
URL:		http://rosalinux.ru
Source0:	desktop-interface
Source1:	desktop-wm-preferences
Source2:	gedit-preferences-editor
Source3:	nautilus
Source4:	settings-daemon-plugins-xsettings
Source5:	shell-extensions-user-theme
Source6:	shell
Source7:	terminal
Requires:	glib2.0-common
Requires:	gsettings-desktop-schemas
BuildArch:	noarch

%description
This contains a collection ROSA schemas for GNOME.

%files
%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.xsettings.gschema.override
%{_datadir}/glib-2.0/schemas/org.gnome.shell.gschema.override

%post
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :

%postun
if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi

%posttrans
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :

#----------------------------------------------------------------------------

%package theme
Summary:	ROSA schemas for GNOME theme
Group:		Graphical desktop/GNOME
Requires:	la-capitaine-icon-theme
Requires:	pixelfun3-cursor-theme
Requires:	gnome-shell-theme-desktop

%description theme
This contains a collection ROSA schemas for GNOME
theme. Includeing GNOME Shell, GTK 3 and icons.

%files theme
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.interface.gschema.override
%{_datadir}/glib-2.0/schemas/org.gnome.desktop.wm.preferences.gschema.override
%{_datadir}/glib-2.0/schemas/org.gnome.Terminal.gschema.override
%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.user-theme.gschema.override
%{_datadir}/glib-2.0/schemas/org.gnome.gedit.preferences.editor.gschema.override

%post theme
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :

%postun theme
if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi

%posttrans theme
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :

#----------------------------------------------------------------------------

%package desktop
Summary:	ROSA schemas for GNOME Desktop (nautilus)
Group:		Graphical desktop/GNOME

%description desktop
This contains a collection ROSA schemas for GNOME Desktop
(nautilus). Includeing backgound, icons on desktop and icon
size.

%files desktop
%{_datadir}/glib-2.0/schemas/org.gnome.nautilus.gschema.override

%post desktop
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :

%postun desktop
if [ $1 -eq 0 ]; then
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :
fi

%posttrans desktop
glib-compile-schemas %{_datadir}/glib-2.0/schemas &> /dev/null || :

#----------------------------------------------------------------------------

%prep
%setup -qcT

%build

%install
mkdir -p %{buildroot}%{_datadir}/glib-2.0/schemas/
install -m 644 %{SOURCE0} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.desktop.interface.gschema.override
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.desktop.wm.preferences.gschema.override
install -m 644 %{SOURCE2} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.gedit.preferences.editor.gschema.override
install -m 644 %{SOURCE3} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.nautilus.gschema.override
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.settings-daemon.plugins.xsettings.gschema.override
install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.extensions.user-theme.gschema.override
install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.shell.gschema.override
install -m 644 %{SOURCE7} %{buildroot}%{_datadir}/glib-2.0/schemas/org.gnome.Terminal.gschema.override

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16974 |21mr|rosa-icons-1.1.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname rosa

Summary:	ROSA icons theme
Name:		%{oname}-icons
Version:	1.1.21
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.rosalinux.com
# https://abf.rosalinux.ru/uxteam/rosa-icons-devel
Source0:	%{name}-devel-v%{version}.tar.gz
Source1:	kdenlive-actions.tar.xz
Source2:	gnome3-devices.tar.xz
BuildRequires:	fdupes
BuildRequires:	inkscape
Requires:	gnome-icon-theme
BuildArch:	noarch

%description
ROSA icon theme is high quality icon theme for KDE, GNOME and Xfce.
It is part of ROSA theme pack - theme for ROSA Desktop distribution.
Initially based on the original icon theme Elementary by Daniel Fore
(Dan Rabbit).

%files
%{_datadir}/icons/%{oname}/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-devel-v%{version}
tar xJf %{SOURCE1}
tar xJf %{SOURCE2}

%build

%install
mkdir -p %{buildroot}%{_datadir}/icons/%{oname}
cp -rf ./* %{buildroot}%{_datadir}/icons/%{oname}

# An ugly hack to work with Inkscape
# TODO: Neccessary find a real problem!
pushd %{buildroot}%{_datadir}/icons/%{oname}/16x16/places
for i in `ls`
do
    echo "Converting $i to plain SVG:"
    inkscape -l $i $i
done
# devices icons should be converted too
cd %{buildroot}%{_datadir}/icons/%{oname}/16x16/devices
for i in `ls`
do
    echo "Converting $i to plain SVG:"
    inkscape -l $i $i
done
popd

# Create folder-cyan, folder-default and folder-favorites icons
for N in 16 22 24 32 48 64 128;
do
pushd %{buildroot}%{_iconsdir}/rosa/${N}x${N}/places/
    ln -s folder.svg folder-cyan.svg
    ln -s folder.svg folder-default.svg
    ln -s folder.svg folder-favorites.svg
popd
done

%fdupes -s %{buildroot}%{_datadir}/icons/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16975 |21mr|rosa-icons-2021-0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Here icons from abf.io/import/plasma5-rosa-icons are repacked
# Include information which version of icons was repacked
%global upstream_version %(rpm -q --qf '%%{version}-%%{release}' plasma5-rosa-icons || echo 0)

%bcond_without svgcleaner

Summary:	Rosa icons for rosa2021.1
Name:		rosa-icons-2021
Version:	0.4
Release:	4
License:	LGPLv3+
Group:		Graphical desktop/Other
Url:		https://abf.io
BuildRequires:	imagemagick
BuildRequires:	plasma5-rosa-icons
BuildRequires:	plasma5-rosa-icons-dark
%if %{with svgcleaner}
BuildRequires:	svgcleaner
%endif
BuildArch:	noarch

%description
Rosa icons for rosa2021.1.
Built from plasma5-rosa-icons %{upstream_version}.

#----------------------------------------------------------------------------

%package common
Summary:	Rosa icons for rosa2021.1
Group:		Graphical desktop/Other

%description common
Rosa icons for rosa2021.1.
Built from plasma5-rosa-icons %{upstream_version}.

%files common
%{_iconsdir}/%{name}

#----------------------------------------------------------------------------

%package common-dark
Summary:	Rosa dark icons for rosa2021.1
Group:		Graphical desktop/Other

%description common-dark
Rosa dark icons for rosa2021.1.
Built from plasma5-rosa-icons-dark %{upstream_version}.

%files common-dark
%{_iconsdir}/%{name}-dark

#----------------------------------------------------------------------------

%package gnome
Summary:	Rosa icons for gnome rosa2021.1
Group:		Graphical desktop/GNOME
Requires:	%{name}-common = %{EVRD}
Requires:	rospo-icon-theme-light

%description gnome
Rosa icons for gnome rosa2021.1.

%files gnome
%{_iconsdir}/%{name}-gnome

#----------------------------------------------------------------------------

%package gnome-dark
Summary:	Rosa dark icons for gnome rosa2021.1
Group:		Graphical desktop/GNOME
Requires:	%{name}-common-dark = %{EVRD}
Requires:	rospo-icon-theme-dark

%description gnome-dark
Rosa dark icons for gnome rosa2021.1.

%files gnome-dark
%{_iconsdir}/%{name}-gnome-dark

#----------------------------------------------------------------------------

%package lxqt
Summary:	Rosa icons for lxqt rosa2021.1
Group:		Graphical desktop/LXQt
Requires:	%{name}-common = %{EVRD}
Requires:	rosa-icons

%description lxqt
Rosa icons for lxqt rosa2021.1.

%files lxqt
%{_iconsdir}/%{name}-lxqt

#----------------------------------------------------------------------------

%package lxqt-dark
Summary:	Rosa dark icons for lxqt rosa2021.1
Group:		Graphical desktop/LXQt
Requires:	%{name}-common-dark = %{EVRD}
Requires:	rosa-icons

%description lxqt-dark
Rosa dark icons for lxqt rosa2021.1.

%files lxqt-dark
%{_iconsdir}/%{name}-lxqt-dark

#----------------------------------------------------------------------------

%package mate
Summary:	Rosa icons for mate rosa2021.1
Group:		Graphical desktop/MATE
Requires:	%{name}-common = %{EVRD}
Requires:	rosa-icons

%description mate
Rosa icons for mate rosa2021.1.

%files mate
%{_iconsdir}/%{name}-mate

#----------------------------------------------------------------------------

%package mate-dark
Summary:	Rosa dark icons for mate rosa2021.1
Group:		Graphical desktop/MATE
Requires:	%{name}-common-dark = %{EVRD}
Requires:	rosa-icons

%description mate-dark
Rosa dark icons for mate rosa2021.1.

%files mate-dark
%{_iconsdir}/%{name}-mate-dark

#----------------------------------------------------------------------------

%package plasma5
Summary:	Rosa icons for plasma5 rosa2021.1
Group:		Graphical desktop/KDE
Requires:	%{name}-common = %{EVRD}
Requires:	plasma5-rosa-icons

%description plasma5
Rosa icons for plasma5 rosa2021.1.

%files plasma5
%{_iconsdir}/%{name}-plasma5

#----------------------------------------------------------------------------

%package plasma5-dark
Summary:	Rosa dark icons for plasma5 rosa2021.1
Group:		Graphical desktop/KDE
Requires:	%{name}-common-dark = %{EVRD}
Requires:	plasma5-rosa-icons-dark

%description plasma5-dark
Rosa dark icons for plasma5 rosa2021.1.

%files plasma5-dark
%{_iconsdir}/%{name}-plasma5-dark

#----------------------------------------------------------------------------

%package xfce
Summary:	Rosa icons for xfce rosa2021.1
Group:		Graphical desktop/Xfce
Requires:	%{name}-common = %{EVRD}
Requires:	rosa-icons

%description xfce
Rosa icons for xfce rosa2021.1.

%files xfce
%{_iconsdir}/%{name}-xfce

#----------------------------------------------------------------------------

%package xfce-dark
Summary:	Rosa dark icons for xfce rosa2021.1
Group:		Graphical desktop/Xfce
Requires:	%{name}-common-dark = %{EVRD}
Requires:	rosa-icons

%description xfce-dark
Rosa dark icons for xfce rosa2021.1.

%files xfce-dark
%{_iconsdir}/%{name}-xfce-dark

#----------------------------------------------------------------------------

%prep
%setup -qcT
cp -rf %{_iconsdir}/rosa5 ./%{name}
cp -rf %{_iconsdir}/rosa5-dark ./%{name}-dark

%build
rm -f */*.rcc
sed -i -e "/^Name\[ru\]=/d" -e "/^Comment\[ru\]=/d" -e "s/^Inherits=.*/Inherits=hicolor/" %{name}{,-dark}/index.theme
%if %{with svgcleaner}
find -type f -name "*.svg" > ../filelist.txt
while read SVG; do
	svgcleaner $SVG $SVG			\
		--coordinates-precision	2	\
		--properties-precision 2	\
		--transforms-precision 2	\
		--paths-coordinates-precision 2	\
		--multipass			\
		--quiet
done < ../filelist.txt
%endif

%install
mkdir -p %{buildroot}%{_iconsdir}/%{name}{,-dark}
mkdir -p %{buildroot}%{_iconsdir}/%{name}-{gnome,lxqt,mate,plasma5,xfce}{,-dark}
cp -rf %{name}{,-dark} %{buildroot}%{_iconsdir}

for i in {gnome,lxqt,mate,plasma5,xfce}; do
	cp %{buildroot}%{_iconsdir}/%{name}/index.theme %{buildroot}%{_iconsdir}/%{name}-$i
	sed -i	\
		-e "s/^Name=.*/Name=%{name}-$i\nName[ru]=Значки Роса-2021 для $i/"			\
		-e "s/^Comment=.*/Comment=Rosa icons for the $i\nComment[ru]=Тема значков Rosa для $i/"	\
		-e "/Directories=/ s/\([,=]\)/\1..\x2f%{name}\x2f/g"					\
		-e "/^\[/ s/\[/[..\x2f%{name}\x2f/" -e "/Icon Theme\]$/ s/.*/[Icon Theme]/"		\
		%{buildroot}%{_iconsdir}/%{name}-$i/index.theme
done
rm -f %{buildroot}%{_iconsdir}/%{name}/index.theme

# For dark themes
for i in {gnome,lxqt,mate,plasma5,xfce}; do
	cp %{buildroot}%{_iconsdir}/%{name}-dark/index.theme %{buildroot}%{_iconsdir}/%{name}-$i-dark
	sed -i	\
		-e "s/^Name=.*/Name=%{name}-$i-dark\nName[ru]=Значки Роса-2021 для $i (тёмный вариант)/"		\
		-e "s/^Comment=.*/Comment=Rosa icons dark for the $i\nComment[ru]=Тёмная тема значков Rosa для $i/"	\
		-e "/Directories=/ s/\([,=]\)/\1..\x2f%{name}-dark\x2f/g"						\
		-e "/^\[/ s/\[/[..\x2f%{name}-dark\x2f/" -e "/Icon Theme\]$/ s/.*/[Icon Theme]/"			\
		%{buildroot}%{_iconsdir}/%{name}-$i-dark/index.theme
done
rm -f %{buildroot}%{_iconsdir}/%{name}-dark/index.theme

sed -i "s/^Inherits=\(.*\)/Inherits=rospo-light,\1/" %{buildroot}%{_iconsdir}/%{name}-gnome/index.theme
sed -i "s/^Inherits=\(.*\)/Inherits=rospo-dark,\1/" %{buildroot}%{_iconsdir}/%{name}-gnome-dark/index.theme
sed -i "s/^Inherits=\(.*\)/Inherits=rosa,\1/" %{buildroot}%{_iconsdir}/%{name}-lxqt{,-dark}/index.theme
sed -i "s/^Inherits=\(.*\)/Inherits=rosa,\1/" %{buildroot}%{_iconsdir}/%{name}-mate{,-dark}/index.theme
sed -i "s/^Inherits=\(.*\)/Inherits=rosa5,\1/" %{buildroot}%{_iconsdir}/%{name}-plasma5{,-dark}/index.theme
sed -i "s/^Inherits=\(.*\)/Inherits=rosa,\1/" %{buildroot}%{_iconsdir}/%{name}-xfce{,-dark}/index.theme

# Gnome
sed -i	\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\),//g"			\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)\]/,/^$/d"			\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2f\(mimetypes\|places\|status\)\x2f22,//g"		\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2f\(mimetypes\|places\|status\)\x2f22\]/,/^$/d"		\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2f\(actions\|devices\|emblems\)\x2fsymbolic,//g"	\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2f\(actions\|devices\|emblems\)\x2fsymbolic\]/,/^$/d"	\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)@\(2\|3\)x,//g"	\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)@\(2\|3\)x\]/,/^$/d"		\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@\(2\|3\)x,//g"			\
		-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@3x$//g"			\
			-e "/ScaledDirectories=/ s/,$//g"								\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@\(2\|3\)x\]/,/^$/d"				\
	%{buildroot}%{_iconsdir}/%{name}-gnome{,-dark}/index.theme

# LXQt
sed -i	\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\),//g"			\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)\]/,/^$/d"			\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fdevices\x2f\(16\|22\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fdevices\x2f\(16\|22\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f\(16\|22\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f\(16\|22\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fplaces\x2f\(16\|22\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fplaces\x2f\(16\|22\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22,//g"					\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22\]/,/^$/d"					\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)@\(2\|3\)x,//g"	\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)@\(2\|3\)x\]/,/^$/d"		\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f16@\(2\|3\)x,//g"			\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f16@\(2\|3\)x\]/,/^$/d"			\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f22@2x,//g"			\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f22@2x\]/,/^$/d"				\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fplaces\x2f16@2x,//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fplaces\x2f16@2x\]/,/^$/d"					\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@\(2\|3\)x,//g"			\
		-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@3x$//g"			\
			-e "/ScaledDirectories=/ s/,$//g"								\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@\(2\|3\)x\]/,/^$/d"				\
	%{buildroot}%{_iconsdir}/%{name}-lxqt{,-dark}/index.theme

# Mate
sed -i	\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\|symbolic\),//g"		\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\|symbolic\)\]/,/^$/d"		\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fapps\x2f\(22\|48\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fapps\x2f\(22\|48\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fdevices\x2f\(16\|22\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fdevices\x2f\(16\|22\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f\(16\|22\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f\(16\|22\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fplaces\x2f\(16\|22\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fplaces\x2f\(16\|22\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22,//g"					\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22\]/,/^$/d"					\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)@\(2\|3\)x,//g"	\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)@\(2\|3\)x\]/,/^$/d"		\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fapps\x2f\(16\|22\)@\(2\|3\)x,//g"		\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fapps\x2f\(16\|22\)@\(2\|3\)x\]/,/^$/d"			\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@\(2\|3\)x,//g"			\
		-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@3x$//g"			\
			-e "/ScaledDirectories=/ s/,$//g"								\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fstatus\x2f22@\(2\|3\)x\]/,/^$/d"				\
	%{buildroot}%{_iconsdir}/%{name}-mate{,-dark}/index.theme
rm -f %{buildroot}%{_iconsdir}/%{name}/places/symbolic/start-here-symbolic.svg
cat > %{buildroot}%{_iconsdir}/%{name}/places/symbolic/start-here-symbolic.svg << EOF 
<svg enable-background="new 0 0 128 128" viewBox="0 0 128 128" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><radialGradient id="a" cx="64" cy="64" gradientUnits="userSpaceOnUse" r="64.0991"><stop offset=".3214" stop-color="#64a5e1"/><stop offset=".7101" stop-color="#508cc8"/><stop offset=".976" stop-color="#2c68a4"/><stop offset="1" stop-color="#2864a0"/></radialGradient><circle cx="64" cy="64" fill="url(#a)" r="64"/><path d="m52.2 107.8c-8-1.8-14.2-5.3-20.3-11.4-4.7-4.7-7.7-9.6-9.9-16.1-2-5.9-2.3-14.8-.8-21.4 3.4-14.4 14.5-26 28.5-29.8 3.5-1 46.6-5.7 47-5.3.2.2 1.2 10.2 2.5 22.2 1.4 15.3 2.1 23 1.9 25.2-1.5 14.4-9.4 26.2-21.7 32.5-6.1 3.2-10.2 4.3-17.4 4.5-4.4.3-7.2.1-9.8-.4zm20.2-6.9c13.7-5.2 22.9-18 23-32.1 0-2.8-1.5-20.3-2.4-26.2l-.3-2.3-2 3.9c-12.1 22.5-32.1 41.4-52.2 49.6-1.1.4-1.1.7 2 2.7 6.9 4.8 12.2 6.4 21.4 6.1 5.6-.1 6.8-.2 10.5-1.7zm-33.5-13.3c14.5-5.8 32.8-22.7 43.8-40.4 2.5-4.2 7.2-13.5 7.9-15.8.4-1.4 1.5-1.5-19.5.7-18.2 1.9-20.9 2.4-26.4 5.3-18.5 9.2-24.5 32.9-13.2 50.2 1.6 2 2.1 2.2 7.4 0z" fill="#fafafb"/><path d="m64 0c-35.4 0-64 28.6-64 64s28.6 64 64 64 64-28.6 64-64-28.6-64-64-64zm0 126.2c-34.3 0-62-27.9-62-62s27.9-62.1 62-62.1c34.3 0 62 27.9 62 62s-27.7 62.1-62 62.1z" fill="#fff" opacity=".1"/></svg>
EOF
convert -background none %{buildroot}%{_iconsdir}/%{name}/places/symbolic/start-here-symbolic.{svg,png}
cp -f %{buildroot}%{_iconsdir}/%{name}{,-dark}/places/symbolic/start-here-symbolic.png

# Xfce
sed -i	\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\|symbolic\),//g"		\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\|symbolic\)\]/,/^$/d"		\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fapps\x2f\(22\|48\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fapps\x2f\(22\|48\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f\(16\|22\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fmimetypes\x2f\(16\|22\)\]/,/^$/d"				\
	-e "/Directories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fplaces\x2f\(16\|22\),//g"				\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fplaces\x2f\(16\|22\)\]/,/^$/d"				\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)@\(2\|3\)x,//g"	\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2factions\x2f\(16\|22\|32\)@\(2\|3\)x\]/,/^$/d"		\
	-e "/ScaledDirectories=/ s/\.\.\x2frosa-icons-2021\(\|-dark\)\x2fapps\x2f\(16\|22\)@\(2\|3\)x,//g"		\
		-e "/\[\.\.\x2frosa-icons-2021\(\|-dark\)\x2fapps\x2f\(16\|22\)@\(2\|3\)x\]/,/^$/d"			\
	%{buildroot}%{_iconsdir}/%{name}-xfce{,-dark}/index.theme

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16976 |21mr|rosa-imagewriter-2.6.2.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for writing ROSA installer to USB drive
Name:		rosa-imagewriter
Version:	2.6.2.0
Release:	15
License:	GPLv3+
Group:		File tools
Url:		https://abf.io/soft/rosa-imagewriter
Source0:	https://abf.io/soft/rosa-imagewriter/archive/%{name}-version-%{version}.tar.gz
Source1:	rosa-imagewriter.policy
Patch0:		rosa-imagewriter-version-2.6.2.0.patch
Patch1:		opens-current-logged-user-downloads-folder-first.patch
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(udev)
Requires:	qt5-output-driver-default
Recommends:	%mklibname udev 1

%description
ROSA Image Writer is a tool for creating bootable ROSA installation USB flash
drives.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/kde4/services/ServiceMenus/*.desktop
%{_datadir}/polkit-1/actions/%{name}.policy
%{_docdir}/%{name}
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_libdir}/%{name}
%{_sbindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-version-%{version}
%patch0 -p1
%patch1 -p1


%build
%qmake_qt5
make
%{_qt5_bindir}/lrelease RosaImageWriter.pro

%install
mkdir -p \
	%{buildroot}%{_bindir}				\
	%{buildroot}%{_datadir}/applications		\
	%{buildroot}%{_datadir}/polkit-1/actions	\
	%{buildroot}%{_docdir}/%{name}			\
	%{buildroot}%{_iconsdir}/hicolor/scalable/apps	\
	%{buildroot}%{_libdir}/%{name}/lang		\
	%{buildroot}%{_sbindir}				\
	%{buildroot}%{_datadir}/kde4/services/ServiceMenus
ln -sf %{_libdir}/%{name}/%{name} %{buildroot}%{_sbindir}/%{name}
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/
sed -i "s!@LIBDIR@!%{_libdir}!" %{buildroot}%{_datadir}/polkit-1/actions/%{name}.policy
install -m 0644 doc/* %{buildroot}%{_docdir}/%{name}/
install -m 0644 res/icon-rosa.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
install -m 0755 RosaImageWriter %{buildroot}%{_libdir}/%{name}/%{name}
install -m 0644 lang/*.qm %{buildroot}%{_libdir}/%{name}/lang/

cat > %{buildroot}%{_bindir}/%{name} <<EOF
#!/bin/sh
pkexec %{_libdir}/%{name}/%{name} "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/%{name}

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<EOF
[Desktop Entry]
Version=1.0
Name=ROSA Image Writer
Name[ru]=ROSA Image Writer
Comment=Tool for writing ROSA installer to USB drive
Comment[ru]=Инструментарий записи загрузочных образов ROSA на USB-флэш
Exec=%{name} %%U
Icon=%{name}
Terminal=false
Type=Application
Categories=System;
MimeType=application/x-iso;application/x-cd-image
EOF

cat > %{buildroot}%{_datadir}/kde4/services/ServiceMenus/riw_write_iso_image.desktop <<EOF
[Desktop Entry]
Type=Service
Actions=WriteIsoImageToUsb;
ServiceTypes=KonqPopupMenu/Plugin
MimeType=application/x-iso;application/x-cd-image;inode/ISO-image

[Desktop Action WriteIsoImageToUsb]
Exec=%{name} %%U
Name=Write to USB using ROSA ImageWriter
Name[ru]=Записать на USB, используя ROSA ImageWriter
Icon=%{name}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16977 |21mr|rosa-kernel-tools-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: rosa-kernel-tools
Summary: Utilities to manage Linux kernels on ROSA Linux
Group: System/Base
License: GPLv3
Version: 1.0
Release: 7
Url: https://abf.io/import/rosa-kernel-tools
%ifnarch %{e2k}
BuildArch: noarch
%endif

Source0: initramfs-regen.sh
Source1: initramfs-regen-trigger.sh
Source2: initramfs-regen.conf
# for e2k only
Source3: bootconfgen

Requires: awk
Requires: coreutils
Requires: findutils
Requires: grep
Requires: rpm-sort
Requires: sed
# do not pull initrd tools into containers,
# if just systemd, which pulls this package, is installed
#Requires: (dracut or update-initramfs)

# script initramfs-regen.sh was moved from systemd
Conflicts:	systemd < 246.13-5

%description
%{summary}

%files
%{_sbindir}/initramfs-regen
%{_sbindir}/initramfs-regen-trigger
# compat symlink to initramfs-regen
%{_sbindir}/systemd-initramfs-gen
%ifarch %{e2k}
    %{_sbindir}/bootconfgen
%endif

%config(noreplace) /etc/initramfs-regen.conf
%dir /var/spool/initramfs-regen

# https://rpm.org/user_doc/file_triggers.html
# -P - priority, execute this scriptlet later than others
# Just put an empty file with any name, e.g. package name,
# into /var/spool/initramfs-regen inside the RPM package
# to trigger regenerating initrd on package installation/upgrade.
# E.g. systemd is inside initrd, so regenerate initrd if systemd is upgraded.
%transfiletriggerin -P 50000 -- /var/spool/initramfs-regen
%{_sbindir}/initramfs-regen-trigger
%end

%transfiletriggerpostun -P 50000 -- /var/spool/initramfs-regen
  %{_sbindir}/initramfs-regen-trigger
%end

#------------------------------------------------------------------

%prep
%setup -T -c
cp -v %{sources} .

%install
mkdir -p %{buildroot}%{_sbindir}
install -m0755 initramfs-regen.sh %{buildroot}%{_sbindir}/initramfs-regen
install -m0755 initramfs-regen-trigger.sh %{buildroot}%{_sbindir}/initramfs-regen-trigger
mkdir -p %{buildroot}/etc
install -m0644 initramfs-regen.conf %{buildroot}/etc/initramfs-regen.conf
# compat symlink
( cd %{buildroot}%{_sbindir}
  ln -s initramfs-regen systemd-initramfs-gen
)

mkdir -p %{buildroot}/var/spool/initramfs-regen

%ifarch %{e2k}
    install -m0755 bootconfgen %{buildroot}%{_sbindir}/bootconfgen
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16978 |21mr|rosa-kiosk-gui-1.2.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for interaction with kioskd daemon
Name:		rosa-kiosk-gui
Version:	1.2.6
Release:	2
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		https://abf.io/uxteam/kiosk-gui-devel
Source0:	https://abf.io/uxteam/kiosk-gui-devel/archive/kiosk-gui-devel-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	rosa-kiosk = %{EVRD}

%description
kioskd daemon hides windows of all applications except allowed ones.
This allows to run a desktop system in kiosk mode.
This package is a GUI to set up the kiosk daemon.

%files -f %{name}.lang
%{_sbindir}/%{name}
%{_bindir}/%{name}
%config (noreplace) %{_sysconfdir}/pam.d/%{name}
%config (noreplace) %{_sysconfdir}/security/console.apps/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg

#----------------------------------------------------------------------------

# That was in https://abf.io/soft/kiosk-devel / https://abf.io/import/kiosk,
# then it was was copied to here
# https://abf.io/uxteam/kiosk-gui-devel/commit/5f799d20ca

%package -n rosa-kiosk
Summary:	CLI and daemon part of ROSA Kiosk
Group:		Graphical desktop/Other
Obsoletes:	rosa-kiosk-gui < 1.1.0-3
Conflicts:	rosa-kiosk-gui < 1.1.0-3
Obsoletes:	kiosk < 1.0-1
Conflicts:	kiosk < 1.0-1

%description -n rosa-kiosk
kioskd daemon hides windows of all applications except allowed ones.
This allows to run a desktop system in kiosk mode.
%{name} package is a GUI to set up the kiosk daemon.

%files -n rosa-kiosk
%{_bindir}/kiosk
%{_bindir}/kioskd

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n kiosk-gui-devel-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16979 |21mr|rosa-media-player-1.6.11-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without midi

Summary:	Multimedia player based on mplayer technology
Name:		rosa-media-player
Version:	1.6.11
Release:	17
License:	GPLv2+
Group:		Video
Url:		http://www.rosalinux.com
Source0:	%{name}-%{version}.tar.gz
Source1:	romp2smp.sh
Patch0:		rosa-media-player-1.6.11-open-dvd.patch
Patch1:		rosa-media-player-1.6.11-initial-preference.patch
Patch2:		rosa-media-player-1.6.11-russian-comment.patch
Patch3:		rosa-media-player-1.6.11-wildmidi4.patch
Patch4:		rosa-media-player-1.6.11-default-gtk-and-seek.patch
BuildRequires:	qt4-linguist
BuildRequires:	qt4-devel
%if %{with midi}
BuildRequires:	wildmidi-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(QJson)
Requires:	mencoder
Requires:	mplayer >= 1.0-1.rc1
Requires:	ffmpeg
Requires:	xdg-utils
%if %{with midi}
Requires:	timidity-patch-gravis
%endif
Requires:	wget

%description
Multimedia player that supports most of audio and video formats.

%files
%doc *.txt docs/*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/shortcuts
%dir %{_datadir}/%{name}/translations
%attr(755,root,root) %{_bindir}/%{name}
%attr(755,root,root) %{_bindir}/%{name}-db-converter
%{_datadir}/%{name}/*.conf
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}/shortcuts/*
%{_datadir}/apps/solid/actions/*.desktop
%{_datadir}/solid/actions/*.desktop
%{_iconsdir}/hicolor/*/apps/rosamp.png
%lang(ar_SY) %{_datadir}/%{name}/translations/rosamp_ar_SY.qm
%lang(en) %{_datadir}/%{name}/translations/rosamp_en.qm
%lang(cs) %{_datadir}/%{name}/translations/rosamp_cs.qm
%lang(de) %{_datadir}/%{name}/translations/rosamp_de.qm
%lang(es) %{_datadir}/%{name}/translations/rosamp_es.qm
%lang(et) %{_datadir}/%{name}/translations/rosamp_et.qm
%lang(fi) %{_datadir}/%{name}/translations/rosamp_fi.qm
%lang(fr) %{_datadir}/%{name}/translations/rosamp_fr.qm
%lang(gl) %{_datadir}/%{name}/translations/rosamp_gl.qm
%lang(hu) %{_datadir}/%{name}/translations/rosamp_hu.qm
%lang(it) %{_datadir}/%{name}/translations/rosamp_it.qm
%lang(ja) %{_datadir}/%{name}/translations/rosamp_ja.qm
%lang(ku) %{_datadir}/%{name}/translations/rosamp_ku.qm
%lang(lt) %{_datadir}/%{name}/translations/rosamp_lt.qm
%lang(mk) %{_datadir}/%{name}/translations/rosamp_mk.qm
%lang(nl) %{_datadir}/%{name}/translations/rosamp_nl.qm
%lang(pl) %{_datadir}/%{name}/translations/rosamp_pl.qm
%lang(pt_BR) %{_datadir}/%{name}/translations/rosamp_pt_BR.qm
%lang(pt_pt) %{_datadir}/%{name}/translations/rosamp_pt.qm
%lang(ro_RO) %{_datadir}/%{name}/translations/rosamp_ro_RO.qm
%lang(ru_RU) %{_datadir}/%{name}/translations/rosamp_ru_RU.qm
%lang(sl) %{_datadir}/%{name}/translations/rosamp_sl.qm
%lang(tr) %{_datadir}/%{name}/translations/rosamp_tr.qm
%lang(uk_UA) %{_datadir}/%{name}/translations/rosamp_uk_UA.qm
%lang(vi) %{_datadir}/%{name}/translations/rosamp_vi_VN.qm
%lang(zh_CN) %{_datadir}/%{name}/translations/rosamp_zh_CN.qm
%lang(zh_TW) %{_datadir}/%{name}/translations/rosamp_zh_TW.qm

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build
%setup_compile_flags
./get_romp_version.sh %{version} %{release}
%if %{with midi}
%make PREFIX=%{_prefix} QMAKE=%{qt4bin}/qmake LRELEASE=%{qt4bin}/lrelease
%else
%make PREFIX=%{_prefix} QMAKE=%{qt4bin}/qmake LRELEASE=%{qt4bin}/lrelease no-midi-support
%endif

%install
%makeinstall_std PREFIX=%{_prefix}

# remove wrongly put docs
rm -rf %{buildroot}%{_datadir}/doc

# Plasma 5 support
mkdir -p %{buildroot}%{_datadir}/solid/actions
cp %{buildroot}%{_datadir}/apps/solid/actions/*.desktop %{buildroot}%{_datadir}/solid/actions/

mkdir -p %{buildroot}%{_bindir}
cp -f %{SOURCE1} %{buildroot}%{_bindir}/%{name}-db-converter

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16980 |21mr|rosa-memory-clean-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to free page cache, slab objects, exchange buffer and swap
Name:		rosa-memory-clean
Version:	0.5
Release:	3
License:	GPLv2+
Group:		File tools
Url:		https://abf.rosalinux.ru/uxteam/%{name}-devel
Source0:	%{url}/archive/%{name}-devel-%{version}.tar.gz
Patch0:		rosa-memory-clean-devel-0.5-desktop-szi.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtGui)

%description
Tool to free page cache, slab objects, exchange buffer and swap.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/doc/%{name}/help.pdf
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_sbindir}/%{name}
%{_sysconfdir}/%{name}/%{name}.ini
%{_sysconfdir}/pam.d/%{name}
%{_sysconfdir}/security/console.apps/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-devel-%{version}
%patch0 -p1

%build
%cmake_qt4
%make

%install
%makeinstall_std -C build

ln -sf consolehelper %{buildroot}%{_bindir}/%{name}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16981 |21mr|rosa-removable-drive-manager-0.7.26-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA Removable Drive Manager
Name:		rosa-removable-drive-manager
Version:	0.7.26
Release:	3
License:	GPLv3+
Group:		System/Configuration/Hardware
Url:		https://abf.rosalinux.ru/uxteam/%{name}-devel
Source0:	https://abf.rosalinux.ru/uxteam/%{name}-devel/archive/%{name}-devel-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Patch0:		rosa-removable-drive-manager-devel-0.7.26-python3.patch
Patch1:		rosa-removable-drive-manager-devel-0.7.26-rules-path.patch
Patch2:		rosa-removable-drive-manager-devel-0.7.26-desktop.patch
Patch3:		rosa-removable-drive-manager-devel-0.7.26-icons.patch
BuildRequires:	cmake
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	python3-qt5-devel
BuildRequires:	python3dist(sip)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
Requires:	rosa-device-manager
Requires:	udisks2
Requires:	python3dist(pyqt5)
Requires:	python3dist(pyudev)
Requires:	python3dist(sepolicy)
Requires:	python3dist(setools)
Requires:	python3dist(sip)
BuildArch:	noarch

%description
Accounting and control of removable media.

%files
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/udev/rules.d/80-%{name}.rules
%attr(0640,root,root) %{python3_sitelib}/rosa_removable_drive_manager
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/polkit-1/rules.d/80-%{name}.rules
%attr(0644,root,root) %{_datadir}/polkit-1/actions/com.rosalinux.removabledrivemanager.policy
%attr(0750,root,root) %{_sbindir}/%{name}
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-devel-%{version}

%build
%cmake_qt5 -DPYTHON_SITE_PACKAGES="%{python3_sitelib}"
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16982 |21mr|rosa-repos-2021.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{x86_64}
%global secondary_distarch i686
%endif

Name:		rosa-repos
Version: 	2021.1
# During devel, it should be 0.0.X
# During release candidate, it should be 0.1.X
# Before final release, bump to 1
Release:	9
Summary:	ROSA package repositories
Group:		System/Base
License:	MIT

# ROSA GPG key
Source0:	RPM-GPG-KEY-ROSA

# ROSA release repo config templates
Source2:	rosa-extrasect-repo
Source3:	rosa-main-srcrepo
Source4:	rosa-extrasect-srcrepo
Source5:	rosa-extrasect-repo-testing
Source6:	rosa-extrasect-srcrepo-testing

Provides:	rosa-repos(%{version})
Requires:	system-release(%{version})
Requires:	rosa-repos-pkgprefs = %{EVRD}
Requires:	rosa-repos-keys = %{EVRD}

Requires:	rosa-repos-main
Recommends:	rosa-repos-pkgprefs
Recommends:	rosa-repos-contrib
Recommends:	rosa-repos-non-free
# restrcited repo was removed
Obsoletes:	rosa-repos-restricted < 2021.1-0.11

%description
Configuration of ROSA main repository

%files
# empty, meta-package

#--------------------------------------------------------------------------------------------

%package testing
Summary:	ROSA testing package repositories meta-package
Group:		System/Base
Requires:	(rosa-repos-main-testing if rosa-repos-main)
Requires:	(rosa-repos-contrib-testing if rosa-repos-contrib)
Requires:	(rosa-repos-non-free-testing if rosa-repos-non-free)

%description testing
ROSA testing package repositories meta-package.
Install it to enable all testing repos.

%files testing
# empty, meta-package

#--------------------------------------------------------------------------------------------

%package main
Summary:	ROSA package repositories - Main
Group:		System/Base

%description main
Conficuration for ROSA Main repository

%files main
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*main*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*main*testing*.repo

#--------------------------------------------------------------------------------------------

%package main-testing
Summary:	ROSA package repositories - Main Testing
Group:		System/Base
Requires:	rosa-repos-main = %{EVRD}

%description main-testing
Conficuration for ROSA Main Testing repository

%files main-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*main*testing*.repo

#--------------------------------------------------------------------------------------------

%package contrib
Summary:	ROSA package repositories - Contrib
Group:		System/Base
Requires:	rosa-repos-main = %{EVRD}

%description contrib
Configuration of ROSA contrib (community-supported) repository

%files contrib
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*contrib*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*contrib*testing*.repo

#--------------------------------------------------------------------------------------------

%package contrib-testing
Summary:	ROSA package repositories - Contrib Testing
Group:		System/Base
Requires:	rosa-repos-contrib = %{EVRD}

%description contrib-testing
Configuration of ROSA Contrib (community-supported) Testing repository

%files contrib-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*contrib*testing*.repo

#--------------------------------------------------------------------------------------------

%package non-free
Summary:	ROSA package repositories - non-free
Group:		System/Base
Requires:	rosa-repos-main = %{EVRD}

%description non-free
Configuration of ROSA non-free repository

%files non-free
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*non-free*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*non-free*testing*.repo

#--------------------------------------------------------------------------------------------

%package non-free-testing
Summary:	ROSA package repositories - Non-free Testing
Group:		System/Base
Requires:	rosa-repos-non-free = %{EVRD}

%description non-free-testing
Configuration of ROSA Non-free Testing repository

%files non-free-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*non-free*testing*.repo

#--------------------------------------------------------------------------------------------

%package keys
Summary:	ROSA repository GPG keys
Group:		System/Base
# GPG keys are architecture independent
BuildArch:	noarch

%description keys
ROSA GPG keys for validating packages from ROSA repositories by
DNF and PackageKit.

%files keys
%dir %{_sysconfdir}/pki/rpm-gpg
%{_sysconfdir}/pki/rpm-gpg/RPM-GPG-KEY-ROSA

#--------------------------------------------------------------------------------------------

%package pkgprefs
# (ngompa): See the following page on why this exists:
# https://fedoraproject.org/wiki/PackagingDrafts/ProvidesPreferences#Distribution_preference
Summary:	ROSA repository package preferences
Group:		System/Base
# Preferences list is architecture independent
BuildArch:	noarch

# Default distribution release
Suggests:	branding-configs-default

## Base packages

# webfetch
Suggests:	curl

# webclient
Suggests:	lynx

# bootloader
Suggests:	grub2

# initrd
Suggests:	dracut

# vim
Suggests:	vim-minimal

# always prefer perl-base over weird packages auto-providing same modules (perl-PathTools, perl-Tk, , perl-PDL...)
Suggests:	perl-base

# libGL.so.1 (also provided by proprietary drivers)
Suggests:	libgl1
Suggests:	lib64gl1

# Prefer openssh-askpass over openssh-askpass-gnome (for keychain)
Suggests:	openssh-askpass

# Python 2.7
Suggests:	python

## Multimedia

# festival-voice
Suggests:	festvox-kallpc16k

# gnome-speech-driver
Suggests:	gnome-speech-driver-espeak

# esound
Suggests:	pulseaudio-esound-compat

# gst-install-plugins-helper
Suggests:	packagekit-gstreamer-plugin

# libbaconvideowidget.so.0 (totem backend)
Suggests:	libbaconvideowidget-gstreamer0
Suggests:	lib64baconvideowidget-gstreamer0

# phonon-backend
Suggests:	phonon-gstreamer

# Prever Jack2 over PipeWire
# but allow to use PipeWire as a drop-in replacements of its libraries
# https://rpm.org/user_doc/boolean_dependencies.html
# Keep in sync with pipewire package!
%define pipewire_pref_gen() %{expand:\
Suggests: (%{mklibname %1 %2}%{_isa} without pipewire) \
Suggests: (%{mklibname %{1}_pipewire %2}%{_isa} if pipewire) \
%ifarch %{x86_64} \
Suggests: (lib%{1}%{2}(x86-32) without pipewire) \
Suggests: (lib%{1}_pipewire%{2}(x86-32) if pipewire) \
%endif \
}
%pipewire_pref_gen jack 0
%pipewire_pref_gen jacknet 0
%pipewire_pref_gen jackserver 0

## Devel

# xemacs-extras provides ctags, prefer simple ctags
Suggests:	ctags

# uClibc-devel provides a few things similar to glibc-devel
Suggests:	glibc-devel

# prefer openssl-devel over libressl-devel
Suggests:	libopenssl-devel
Suggests:	lib64openssl-devel

# prefer gcc over gcc3.3
# (gcc-cpp and gcc-c++ are no more needed, but keeping just in case)
Suggests:	gcc-cpp
Suggests:	gcc
Suggests:	gcc-c++
Suggests:	libstdc++-devel

## Servers

# sendmail-command and mail-server
Suggests:	postfix

# nfs-server
Suggests:	nfs-utils

# webserver
Suggests:	apache

# apache
Suggests:	apache-mpm-prefork

# ftpserver
Suggests:	proftpd

# portmapper
Suggests:	portmap

# syslog-daemon
Suggests:	systemd

# vnc
Suggests:	tigervnc

## Various
# sane (also provided by saned)
Suggests:	sane-backends

# virtual-notification-daemon
Suggests:	notification-daemon

# sgml-tools
# (the other choice is linuxdoc-tools which requires docbook-utils anyway)
Suggests:	docbook-utils

# input method
Suggests:	scim-bridge

# lxde session manager
Suggests:	lxsession-lite

# drupal database storage
Suggests:	drupal-mysqli

# polkit-agent
Suggests:	polkit-gnome

# pinentry
Suggests:	pinentry-qt5

# java
Suggests:	java-1.8.0-openjdk
Suggests:	java-1.8.0-openjdk-devel

# java-plugin
Suggests:	icedtea-web

%description pkgprefs
This package supplies DNF and PackageKit with global
preferences for packages in which multiple options are possible.

%files pkgprefs
# empty

#--------------------------------------------------------------------------------------------

%prep
# Nothing to prepare

%build
# Nothing to build

%install
ARCH=%{_target_cpu}
echo $ARCH |grep -q arm && ARCH=armv7hl
[ "$ARCH" = "i386" ] && ARCH=i586
[ "$ARCH" = "i586" ] && ARCH=i586

# Install the GPG key
mkdir -p %{buildroot}%{_sysconfdir}/pki/rpm-gpg
install %{S:0} -pm 0644 %{buildroot}%{_sysconfdir}/pki/rpm-gpg

# Install the repositories
mkdir -p %{buildroot}%{_sysconfdir}/yum.repos.d

## Create the repositories for various sections
install %{S:3} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-${ARCH}-source.repo
install %{S:4} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-${ARCH}-source.repo
install %{S:6} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-testing-${ARCH}-source.repo
install %{S:4} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-${ARCH}-source.repo
install %{S:6} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-testing-${ARCH}-source.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-testing-${ARCH}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-testing-${ARCH}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-testing-${ARCH}.repo

## Fill in the correct values for the installed repo files
sed -e "s/@DIST_ARCH@/${ARCH}/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/*${ARCH}*.repo

sed -e "s/@DIST_SECTION@/main/g" \
    -e "s/@DIST_SECTION_NAME@/Main/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*main*${ARCH}*.repo

sed -e "s/@DIST_SECTION@/non-free/g" \
    -e "s/@DIST_SECTION_NAME@/Non-free/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*non-free*${ARCH}*.repo

sed -e "s/@DIST_SECTION@/contrib/g" \
    -e "s/@DIST_SECTION_NAME@/Contrib/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*contrib*${ARCH}*.repo

## For architectures with a secondary arch, we need to create repositories for them, too
%if %{defined secondary_distarch}
### Create the repositories for various sections, excluding sources (as they are identical to primary arch ones)
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-main-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-main-testing-%{secondary_distarch}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-non-free-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-non-free-testing-%{secondary_distarch}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-contrib-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-contrib-testing-%{secondary_distarch}.repo

### Fill in the correct values for the installed repo files
sed -e "s/@DIST_ARCH@/%{secondary_distarch}/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/*%{secondary_distarch}*.repo

sed -e "s/@DIST_SECTION@/main/g" \
    -e "s/@DIST_SECTION_NAME@/Main/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*main*%{secondary_distarch}*.repo

sed -e "s/@DIST_SECTION@/non-free/g" \
    -e "s/@DIST_SECTION_NAME@/Non-free/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*non-free*%{secondary_distarch}*.repo

sed -e "s/@DIST_SECTION@/contrib/g" \
    -e "s/@DIST_SECTION_NAME@/Contrib/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*contrib*%{secondary_distarch}*.repo

# install noarch packages from x86_64, not i686
# Lower number means higher priority
find %{buildroot}%{_sysconfdir}/yum.repos.d/ -type f | grep -v "%{secondary_distarch}" | while read -r line
do
	sed -i'' -r -e 's,^cost=.+,cost=999,' "$line"
done

%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16983 |21mr|rosa-repos-chrome-2021.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{x86_64}
%global secondary_distarch i686
%endif

%if %{mdvver} == 202115
%bcond_without certdisk
%else
%bcond_with certdisk
%endif

# В репозитории сосуществуют rosa-repos и rosa-repos-chrome,
# существующие пользователи rosa-repos могут перейти на rosa-repos-chrome так:
# sudo dnf --allowerasing install rosa-repos-chrome
%define fake_version 0.%{version}-%{release}

Name:		rosa-repos-chrome
Version: 	%{rosa_release}
Release:	1
Summary:	ROSA package repositories for corporate distros (Chrome)
Group:		System/Base
License:	MIT

Source1:	rosa-repos-chrome.rpmlintrc

# ROSA release repo config templates
Source2:	rosa-extrasect-repo
Source3:	rosa-main-srcrepo
Source4:	rosa-extrasect-srcrepo
Source5:	rosa-extrasect-repo-testing
Source6:	rosa-extrasect-srcrepo-testing
Source7:	disk1.repo
Source8:	cert-repo-online.repo

Provides:	rosa-repos-chrome(%{version})
Provides:	rosa-repos(%{version})
Provides:	rosa-repos = %{fake_version}

Requires:	distro-release

# pkgprefs и keys используются из rosa-repos, не rosa-repos-chrome
Requires:	rosa-repos-pkgprefs
Requires:	rosa-repos-keys

Requires:	rosa-repos-chrome-main
Recommends:	rosa-repos-chrome-contrib
Recommends:	rosa-repos-chrome-non-free
%if %{with certdisk}
Recommends:	rosa-repos-chrome-certdisk
%endif

Conflicts:	rosa-repos > %{fake_version}

%description
Configuration of ROSA main repository

%files
# empty, meta-package

#--------------------------------------------------------------------------------------------

%package testing
Summary:	ROSA testing package repositories meta-package
Group:		System/Base
Requires:	(rosa-repos-chrome-main-testing if rosa-repos-chrome-main)
Requires:	(rosa-repos-chrome-contrib-testing if rosa-repos-chrome-contrib)
Requires:	(rosa-repos-chrome-non-free-testing if rosa-repos-chrome-non-free)
Provides:	rosa-repos-testing = %{fake_version}
Conflicts:	rosa-repos-testing > %{fake_version}
# чтобы rosa-repos-testing заменялся на rosa-repos-chrome-testing при
# dnf install rosa-repos-chrome --allowerasing (переходе с rosa-repos на rosa-repos-chrome)
Conflicts:	rosa-repos-main > %{fake_version}

%description testing
ROSA testing package repositories meta-package.
Install it to enable all testing repos.

%files testing
# empty, meta-package

#--------------------------------------------------------------------------------------------

%package main
Summary:	ROSA package repositories - Main
Group:		System/Base
Requires:	rosa-repos-keys
Provides:	rosa-repos-main = %{fake_version}
Conflicts:	rosa-repos-main > %{fake_version}

%description main
Configuration for ROSA Main repository

%files main
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*main*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*main*testing*.repo
%config(noreplace) %{_sysconfdir}/dnf/vars/enable_online_repos
%config(noreplace) %{_sysconfdir}/dnf/vars/token

#--------------------------------------------------------------------------------------------

%package main-testing
Summary:	ROSA package repositories - Main Testing
Group:		System/Base
Requires:	rosa-repos-chrome-main = %{EVRD}
Provides:	rosa-repos-main-testing = %{fake_version}
Conflicts:	rosa-repos-main-testing > %{fake_version}

%description main-testing
Conficuration for ROSA Main Testing repository

%files main-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*main*testing*.repo

#--------------------------------------------------------------------------------------------

%package contrib
Summary:	ROSA package repositories - Contrib
Group:		System/Base
Requires:	rosa-repos-chrome-main = %{EVRD}
Provides:	rosa-repos-contrib = %{fake_version}
Conflicts:	rosa-repos-contrib > %{fake_version}

%description contrib
Configuration of ROSA contrib (community-supported) repository

%files contrib
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*contrib*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*contrib*testing*.repo

#--------------------------------------------------------------------------------------------

%package contrib-testing
Summary:	ROSA package repositories - Contrib Testing
Group:		System/Base
Requires:	rosa-repos-chrome-contrib = %{EVRD}
Provides:	rosa-repos-contrib-testing = %{fake_version}
Conflicts:	rosa-repos-contrib-testing > %{fake_version}

%description contrib-testing
Configuration of ROSA Contrib (community-supported) Testing repository

%files contrib-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*contrib*testing*.repo

#--------------------------------------------------------------------------------------------

%package non-free
Summary:	ROSA package repositories - non-free
Group:		System/Base
Requires:	rosa-repos-chrome-main = %{EVRD}
Provides:	rosa-repos-non-free = %{fake_version}
Conflicts:	rosa-repos-non-free > %{fake_version}

%description non-free
Configuration of ROSA non-free repository

%files non-free
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*non-free*.repo
%exclude %{_sysconfdir}/yum.repos.d/*rosa*non-free*testing*.repo

#--------------------------------------------------------------------------------------------

%package non-free-testing
Summary:	ROSA package repositories - Non-free Testing
Group:		System/Base
Requires:	rosa-repos-chrome-non-free = %{EVRD}
Provides:	rosa-repos-non-free-testing = %{fake_version}
Conflicts:	rosa-repos-non-free-testing > %{fake_version}

%description non-free-testing
Configuration of ROSA Non-free Testing repository

%files non-free-testing
%config(noreplace) %{_sysconfdir}/yum.repos.d/*rosa*non-free*testing*.repo

#--------------------------------------------------------------------------------------------

%if %{with certdisk}

%package certdisk
Summary:	Repository on disk shipped with certified OS
Summary(ru_RU.UTF-8):	Репозиторий на диске из комплекта поставки ОС
Group:		System/Base

%description certdisk
Repository on disk shipped with certified OS

%description -l ru_RU.UTF-8 certdisk
Репозиторий на диске из комплекта поставки сертифицированной ОС

%files certdisk
%config(noreplace) %{_sysconfdir}/yum.repos.d/disk1.repo
%config(noreplace) %{_sysconfdir}/yum.repos.d/cert-repo-online.repo
%dir /mnt/disk1

%endif
#--------------------------------------------------------------------------------------------

%prep
# Nothing to prepare

%build
# Nothing to build

%install
ARCH=%{_target_cpu}
echo $ARCH |grep -q arm && ARCH=armv7hl
[ "$ARCH" = "i386" ] && ARCH=i586
[ "$ARCH" = "i586" ] && ARCH=i586

# Install the repositories
mkdir -p %{buildroot}%{_sysconfdir}/yum.repos.d

## Create the repositories for various sections
install %{S:3} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-${ARCH}-source.repo
install %{S:4} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-${ARCH}-source.repo
install %{S:6} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-testing-${ARCH}-source.repo
install %{S:4} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-${ARCH}-source.repo
install %{S:6} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-testing-${ARCH}-source.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-main-testing-${ARCH}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-non-free-testing-${ARCH}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-${ARCH}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/10-rosa-contrib-testing-${ARCH}.repo

## Fill in the correct values for the installed repo files
sed -e "s/@DIST_ARCH@/${ARCH}/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/*${ARCH}*.repo

sed -e "s/@DIST_SECTION@/main/g" \
    -e "s/@DIST_SECTION_NAME@/Main/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*main*${ARCH}*.repo

sed -e "s/@DIST_SECTION@/non-free/g" \
    -e "s/@DIST_SECTION_NAME@/Non-free/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*non-free*${ARCH}*.repo

sed -e "s/@DIST_SECTION@/contrib/g" \
    -e "s/@DIST_SECTION_NAME@/Contrib/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*contrib*${ARCH}*.repo

## For architectures with a secondary arch, we need to create repositories for them, too
%if %{defined secondary_distarch}
### Create the repositories for various sections, excluding sources (as they are identical to primary arch ones)
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-main-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-main-testing-%{secondary_distarch}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-non-free-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-non-free-testing-%{secondary_distarch}.repo
install %{S:2} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-contrib-%{secondary_distarch}.repo
install %{S:5} -pm 0644 %{buildroot}%{_sysconfdir}/yum.repos.d/20-rosa-contrib-testing-%{secondary_distarch}.repo

### Fill in the correct values for the installed repo files
sed -e "s/@DIST_ARCH@/%{secondary_distarch}/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/*%{secondary_distarch}*.repo

sed -e "s/@DIST_SECTION@/main/g" \
    -e "s/@DIST_SECTION_NAME@/Main/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*main*%{secondary_distarch}*.repo

sed -e "s/@DIST_SECTION@/non-free/g" \
    -e "s/@DIST_SECTION_NAME@/Non-free/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*non-free*%{secondary_distarch}*.repo

sed -e "s/@DIST_SECTION@/contrib/g" \
    -e "s/@DIST_SECTION_NAME@/Contrib/g" \
    -i %{buildroot}%{_sysconfdir}/yum.repos.d/*contrib*%{secondary_distarch}*.repo

# install noarch packages from x86_64, not i686
# Lower number means higher priority
find %{buildroot}%{_sysconfdir}/yum.repos.d/ -type f | grep -v "%{secondary_distarch}" | while read -r line
do
	sed -i'' -r -e 's,^cost=.+,cost=999,' "$line"
done

%endif

mkdir -p %{buildroot}%{_sysconfdir}/dnf/vars/
# empty by default
touch %{buildroot}%{_sysconfdir}/dnf/vars/token

%if %{with certdisk}
# for certified OS (rosa2021.15)
install -m644 %{SOURCE7} %{buildroot}%{_sysconfdir}/yum.repos.d/
install -m644 %{SOURCE8} %{buildroot}%{_sysconfdir}/yum.repos.d/
sed -e "s/@DIST_ARCH@/${ARCH}/g" -i %{buildroot}%{_sysconfdir}/yum.repos.d/cert-repo-online.repo
mkdir -p %{buildroot}/mnt/disk1
echo 0 > %{buildroot}%{_sysconfdir}/dnf/vars/enable_online_repos
%else
# non-certified OS
echo 1 > %{buildroot}%{_sysconfdir}/dnf/vars/enable_online_repos
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16984 |21mr|rosa-restore-tools-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA restore tools
Name:		rosa-restore-tools
Version:	1.0
Release:	6
License:	GPLv2+
Group:		File tools
Url:		http://www.rosalab.ru/
Source0:	rpm-restore
Source1:	kde4-reset

%description
Scripts for restore after ROSA Linux fail.

%files
%{_sbindir}/rpm-restore
%{_bindir}/kde4-reset

#----------------------------------------------------------------------------

%prep

%build
# Nothing to build yet

%install
# install script files
mkdir -p %{buildroot}%{_sbindir}/
install -m755 %{SOURCE0} %{buildroot}%{_sbindir}/
mkdir -p %{buildroot}%{_bindir}/
install -m755 %{SOURCE1} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16985 |21mr|rosa-shred-0.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for shredding files and directories
Name:		rosa-shred
Version:	0.4.1
Release:	2
License:	GPLv2+
Group:		File tools
Url:		https://abf.rosalinux.ru/uxteam/%{name}-devel
Source0:	%{url}/archive/%{name}-devel-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	coreutils
Requires:	wipe
# TODO: rewrite code that calls this properly
Requires:	/bin/kill
Requires:	/bin/pidof

%description
Tool for shredding and deleting files and directories on a Linux file system.

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/doc/%{name}/help.pdf
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_sysconfdir}/rosa-shred.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-devel-%{version}

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16986 |21mr|Rosa-theme-2.0.0-115
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define distro Rosa
%define name %{distro}-theme
%define theme Rosa
%define version 2.0.0
%define scriptdir %{_datadir}/bootsplash/scripts
%define mdk_bg %{_datadir}/mdk/backgrounds

%define release 115

%define theme_header() \
Group:		Graphics \
Summary:	%{distro}%{?1:-%1} theme for plymouth and desktop background \
%description %{?1} \
This package contains the %{distro}%{?1:-%1} plymouth theme \
with its images and configuration for different resolution as well as \
the the desktop background image. \
\

%define theme_package(o:) \
%package %{1} \
Group:		Graphics \
Summary:	%{distro}%{?1:-%1} theme for plymouth and desktop background \
Requires:	plymouth-system-theme \
Requires:	plymouth-plugin-script >= 0.8.2 \
Requires(post):	bootsplash >= 3.3.0 \
Provides:	mandrake_theme mandrake-theme mandrakelinux-theme mandriva-theme = %{version}-%{release} \
Provides:	%{distro}-theme=%{EVRD}  \
Provides:	plymouth(system-theme) \
Provides:	rosa-theme \
Provides:	Mandriva-theme-Rosa \
Recommends:	%{distro}-theme-common \
Recommends:	%{distro}-theme-screensaver \
%description %{?1} \
This package contains the %{distro}%{?1:-%1} plymouth theme \
with its images and configuration for different resolution as well as \
the the desktop background image. \
\
%package %{1}-screensaver \
Summary:	%{distro} %{1} screensaver \
Group:		Graphics \
Provides:	%{distro}-theme-screensaver \
%rename mandriva-theme-Rosa-screensaver \
%rename mandriva-theme-screensaver \
%rename mandriva-screensaver \
\
%description %{1}-screensaver \
This package contains the screensaver associated with the \
%{distro} %{1} theme. \

%define theme_scripts() \
%post -n %{name}-%{1} \
if [ -f /splash.jpg ]; then \
rm -f /splash.jpg \
fi \
if [ -f /welcome.jpg ]; then \
rm -f /welcome.jpg \
fi \
if [ -z "$DURING_INSTALL" ]; then \
  if [ -x %{_sbindir}/plymouth-set-default-theme ]; then \
    %{_sbindir}/plymouth-set-default-theme %{distro}-%{1} -R \
  fi \
else \
  if [ -f /etc/sysconfig/bootsplash ]; then \
    perl -pi -e 's/^\s*SPLASH=.*/SPLASH=auto/; s/^\s*THEME=.*/THEME=%{distro}-%{1}/' /etc/sysconfig/bootsplash \
  fi \
  %{_sbindir}/plymouth-set-default-theme %{distro}-%{1} \
fi \
if [ -f %{mdk_bg}/%{distro}-root.png -a ! -f %{mdk_bg}/root/default.png -o -L %{mdk_bg}/root/default.png ]; then \
  rm -f %{mdk_bg}/root/default.png \
  ln -s %{distro}-%{1}-root-1600x1200.png %{mdk_bg}/root/default.png \
fi \
if [ -f %{mdk_bg}/default.jpg ]; then \
  rm -f %{mdk_bg}/default.jpg \
  ln -s %{mdk_bg}/rosa-background-%{1}.jpg %{mdk_bg}/default.jpg \
else \
  ln -s %{mdk_bg}/rosa-background-%{1}.jpg %{mdk_bg}/default.jpg \
fi \
if [ -f %{mdk_bg}/rosa-background.jpg ]; then \
  rm -f %{mdk_bg}/rosa-background.jpg \
  ln -s %{mdk_bg}/rosa-background-%{1}.jpg %{mdk_bg}/rosa-background.jpg \
else \
  ln -s %{mdk_bg}/rosa-background-%{1}.jpg %{mdk_bg}/rosa-background.jpg \
fi \
\
%triggerpostun -n %{name}-%{1} -- %{distro}-theme-%{1} < 2.0.0 \
for f in kdeglobals konsolerc; do \
  if [ "`readlink /usr/share/config/$f 2>/dev/null`" == "$f-%{distro}-%{1}" ]; then \
    rm -f /usr/share/config/$f \
  fi \
done \
\
%preun -n %{name}-%{1} \
if [ "$1" == "0" ]; then \
  if [ -x %{scriptdir}/remove-theme ]; then \
    %{scriptdir}/remove-theme %{distro}-%{1} \
  fi \
  link=`readlink %{mdk_bg}/default.png` \
  slink=${link%%-*} \
  if [ "$slink" == "%{distro}-%{1}" ]; then rm -f %{mdk_bg}/default.png;fi \
  link=`readlink %{mdk_bg}/default.jpg` \
  slink=${link%%-*} \
  if [ "$slink" == "%{distro}-%{1}" ]; then rm -f %{mdk_bg}/default.jpg;fi \
  link=`readlink %{mdk_bg}/%{distro}.png` \
  slink=${link%%-*} \
  if [ "$slink" == "%{distro}-%{1}" ]; then rm -f %{mdk_bg}/%{distro}.png;fi \
  link=`readlink %{mdk_bg}/%{distro}.jpg` \
  slink=${link%%-*} \
  if [ "$slink" == "%{distro}-%{1}" ]; then rm -f %{mdk_bg}/%{distro}.jpg;fi \
  link=`readlink %{mdk_bg}/root/%{distro}.png` \
  slink=${link%%-*} \
  if [ "$slink" == "%{distro}-%{1}-root" ]; then rm -f %{mdk_bg}/root/default.png;fi \
fi \

%define theme_files() \
%files %{1} \
%{_datadir}/gfxboot/themes/%{distro}-%{1} \
%{_datadir}/plymouth/themes/%{distro}-%{1} \
%{mdk_bg}/%{distro}-%{1}* \
%{mdk_bg}/rosa-background-%{1}.jpg \
\
%files %{1}-screensaver \

Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	%{name}-%{version}.tar.xz
License:	GPL
Prefix:		%{_prefix}
BuildArch:	noarch
BuildRequires:	gimp fonts-ttf-dejavu
%theme_header

%theme_package EE -o %{distro}-theme-EE

%package common
Summary:	%{distro} common theme for plymouth
Group:		Graphics
Requires:	rosa-theme
%rename mandriva-theme-common

%description common
This package contains common images for the %{distro} plymouth themes.

%prep
%setup -q

%build
%make

%install
%make install prefix=%{buildroot}

# Default wallpaper should be available without browsing file system
mkdir -p %{buildroot}%{_datadir}/wallpapers
pushd %{buildroot}%{_datadir}/wallpapers
  ln -s ../mdk/backgrounds/default.jpg default.jpg
popd

%theme_scripts EE

%files common
%{_datadir}/wallpapers/default.jpg
%dir %{_datadir}/mdk/screensaver
%{_datadir}/mdk/screensaver/*-*.jpg

%theme_files EE

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16987 |21mr|rosa-update-system-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname update_applet

Summary:	Simple system update GUI
Name:		rosa-update-system
Version:	1.4
Release:	2
License:	GPLv3
Group:		System/Base
Source1:	update_applet.helper
Source3:	%{name}.po
Source4:	%{oname}.helper.any
Source5:	%{oname}.helper.admin
Source6:	%{oname}.helper.policy
Source7:	%{oname}
Source8:	%{oname}.desktop
Source9:	%{oname}_ok.svg
Source10:	%{oname}_warning.svg
Source11:	%{oname}.glade
Source12:	%{oname}_error.svg
Source13:	updaterlib.py
Source14:	%{oname}_for_any.rules
Source15:	%{oname}_for_wheel.rules

BuildRequires:	%{_bindir}/msgfmt
Requires:	dnf
Requires:	usermode
Requires:	typelib(AppIndicator3)
Requires:	typelib(Notify) = 0.7
Requires:	python3-gi
Requires:	python3-dbus
Requires:	python3-requests
Provides:	update-system = %{EVRD}
Provides:	%{oname} = %{EVRD}
Obsoletes:	%{oname} <= 1.2
BuildArch:	noarch

%description
Simple GUI to update Rosa Linux OS.

%files -f %{name}.lang
# helper
%{_bindir}/%{oname}.helper
%{_libexecdir}/%{oname}.helper.any
%{_libexecdir}/%{oname}.helper.admin
# gui
%{_bindir}/%{oname}
%{_datadir}/applications/%{oname}.desktop
%dir %{_datadir}/%{oname}/
%{_sysconfdir}/xdg/autostart/%{oname}.desktop
%{_iconsdir}/update_applet.svg
%{_datadir}/%{oname}/*
%dir %{python3_sitelib}/%{oname}/
%{python3_sitelib}/%{oname}/__init__.py
%{python3_sitelib}/%{oname}/updaterlib.py
%{python3_sitelib}/%{oname}/__pycache__/*.pyc
%{_datadir}/polkit-1/actions/ru.rosalinux.%{oname}.policy

#-----------------------------------------------------------------------

%package nopass
Summary:	Allow all to update system
Requires:	%{name} = %{EVRD}

%description nopass
Polkit rules for %{name}. Allow everyone to update system
without entering a password.

%files nopass
%{_datadir}/polkit-1/rules.d/%{oname}_for_any.rules

#-----------------------------------------------------------------------

%package wheel
Summary:	Allow admin to update system
Requires:	%{name} = %{EVRD}

%description wheel
Polkit rules for %{name}. Allow members of group wheel to update system
without entering a password.

%files wheel
%{_datadir}/polkit-1/rules.d/%{oname}_for_wheel.rules

#-----------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
mkdir -p %{buildroot}%{_libexecdir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_sysconfdir}/xdg/autostart/
mkdir -p %{buildroot}%{_datadir}/%{oname}
mkdir -p %{buildroot}%{_iconsdir}
mkdir -p %{buildroot}%{_datadir}/polkit-1/{actions,rules.d}
mkdir -p %{buildroot}%{python3_sitelib}/%{oname}

install -m 0755 %{SOURCE1} %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_bindir} %{buildroot}%{_localedir}/ru/LC_MESSAGES/
msgfmt -v %{SOURCE3} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{name}.mo

install -m 0755 %{SOURCE4} %{buildroot}%{_libexecdir}/
install -m 0755 %{SOURCE5} %{buildroot}%{_libexecdir}/
install -m 0644 %{SOURCE6}  %{buildroot}%{_datadir}/polkit-1/actions/ru.rosalinux.%{oname}.policy
install -m 0644 %{SOURCE14} %{buildroot}%{_datadir}/polkit-1/rules.d/%{oname}_for_any.rules
install -m 0644 %{SOURCE15} %{buildroot}%{_datadir}/polkit-1/rules.d/%{oname}_for_wheel.rules

install -m 0755 %{SOURCE7} %{buildroot}%{_bindir}/
install -m 0644 %{SOURCE8} %{buildroot}%{_datadir}/applications/
install -m 0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/xdg/autostart/
install -m 0644 %{SOURCE9} %{buildroot}%{_datadir}/%{oname}/
ln -s %{_datadir}/%{oname}/update_applet_ok.svg %{buildroot}%{_iconsdir}/update_applet.svg

install -m 0644 %{SOURCE10} %{buildroot}%{_datadir}/%{oname}/
install -m 0644 %{SOURCE12} %{buildroot}%{_datadir}/%{oname}/
install -m 0644 %{SOURCE11} %{buildroot}%{_datadir}/%{oname}/%{oname}.ui
install -m 0644 %{SOURCE13} %{buildroot}%{python3_sitelib}/%{oname}/
:> %{buildroot}%{python3_sitelib}/%{oname}/__init__.py

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16988 |21mr|rosa-users-quota-1.0.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global Werror_cflags %(echo %{Werror_cflags} | sed -e "s/-Werror=format-security//")

Summary:	Graphical tool for configuring allocated memory resources to users and groups (quotas)
Name:		rosa-users-quota
Version:	1.0.5
Release:	6
License:	GPLv2+
Group:		File tools
Url:		https://abf.io/uxteam/%{name}-devel
Source0:	%{url}/archive/%{name}-devel-%{version}.tar.gz
Source1:	org.rosalinux.pkexec.rosa-users-quota.policy
Source2:	rosa-users-quota.sh
BuildRequires:	cmake
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(Qt5Xml)
Requires:  polkit
Requires:  quota
Requires:  which

%description
Graphical tool for configuring allocated memory resources to users and groups (quotas).

%files -f %{name}.lang
%{_bindir}/%{name}
%{_sbindir}/%{name}
%{_datadir}/applications/rosa-users-quota.desktop
%{_iconsdir}/hicolor/scalable/apps/gnome-log-out.svg
%{_datadir}/polkit-1/actions/org.rosalinux.pkexec.rosa-users-quota.policy

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-devel-%{version}

%build
%cmake_qt5
%make

%install
%makeinstall_std -C build

# install script to run
mkdir -p %{buildroot}%{_bindir}
install -Dm 0755 %{S:2} %{buildroot}%{_bindir}/%{name}

# polkit rules files
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
install -m 0644 %{S:1} %{buildroot}%{_datadir}/polkit-1/actions/org.rosalinux.pkexec.rosa-users-quota.policy

# icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
cp -fr icons/* %{buildroot}%{_iconsdir}/hicolor/scalable/apps


%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16989 |21mr|rosa-wallpapers-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wallpapers for ROSA
Name:		rosa-wallpapers
Version:	1.0
Release:	4
License:	Creative Commons Attribution-NonCommercial
Group:		Graphical desktop/Other
Url:		https://abf.io/import/rosa-wallpapers
Source10:	2021-light-fresh.svg
Source11:	2021-light-chrome.svg
Source12:	2021-dark-fresh.svg
Source13:	2021-dark-chrome.svg
BuildArch:	noarch

%description
%{SUMMARY}

#----------------------------------------------------------------------------

%package filesystem
Summary:	Filesystem skeleton for ROSA wallpapers

%description filesystem
%{summary}

%files filesystem
# (en) This directory is set as default in DEs, users see wallpapers from here.
#      Other packages like https://abf.io/import/rosa-wallpapers-2019
#      can also put wallpapers here, and users will see them by default.
# (ru) Обои по умолчанию в разных DE должны лежать в этом каталоге, пользователи
#      видят обои из него в списке обоев.
#      Другие пакеты, например, https://abf.io/import/rosa-wallpapers-2019
#      могут хранить обои здесь же, чтобы пользователь по умолчанию видел их.
%dir %{_datadir}/wallpapers
# (en) This directory is used to store wallpapers which are set as default ones,
#      symlinks from ../wallpapers to here are created
#      (symlinks are needed to avoid duplicating images in what users see).
# (ru) В этом каталоге размещаются обои, которые могут быть установлены в качестве
#      обоев по умолчанию в дистрибутивах. В ../wallpapers создаются симлинки сюда,
#      т.к. в пакетах с дефолтными настройками DE прописан конкретный путь к обоине,
#      который не меняется в зависимости от брендинга fresh/chrome, а если сделать
#      симлинк и то, на что он указывает, в одном каталоге, то в выборе обоев
#      получатся видимые пользователю дубликаты.
%dir %{_datadir}/rosa-wallpapers-default

#----------------------------------------------------------------------------

%package 2021
Summary:	Default wallpapers for ROSA desktop distributions from 2021
Requires:	%{name}-filesystem = %{EVRD}
# branding-configs* providing /etc/os-release
Requires(posttrans):	distro-release

%description 2021
%{summary}

%files 2021
# We visually differentiate Fresh and Chrome (Enterprise) by wallpapers
%{_datadir}/rosa-wallpapers-default/2021-light-fresh.svg
%{_datadir}/rosa-wallpapers-default/2021-light-chrome.svg
%{_datadir}/rosa-wallpapers-default/2021-dark-fresh.svg
%{_datadir}/rosa-wallpapers-default/2021-dark-chrome.svg
# link to 2021-light-fresh.svg or 2021-light-chrome.svg
%ghost %{_datadir}/wallpapers/ROSA-light-default.svg
# link to 2021-dark-fresh.svg or 2021-dark-chrome.svg
%ghost %{_datadir}/wallpapers/ROSA-dark-default.svg

%posttrans 2021
set -efu
. /etc/os-release
cd %{_datadir}/wallpapers
if [ "${ROSA_OS_BRANCH:-}" = chrome ]
then
	type=chrome
else
	type=fresh
fi
# (en) Using hardlinks, not symlinks, because KDE 5 gets the real path to where the symlink
#      points and writes the real path into the config, we do not want it
# (ru) Используем хардлинки, а не симлинки, потому что KDE 5 узнает настоящий путь, куда
#      указывает симлинк, и записывает в конфиг именно его, получается, что она начинает
#      работать с /usr/share/rosa-wallpapers-default вместо /usr/share/wallpapers
ln -f ../rosa-wallpapers-default/2021-light-"$type".svg ROSA-light-default.svg
ln -f ../rosa-wallpapers-default/2021-dark-"$type".svg ROSA-dark-default.svg

#----------------------------------------------------------------------------

%prep

%build
:

%install
mkdir -p %{buildroot}%{_datadir}/rosa-wallpapers-default
mkdir -p %{buildroot}%{_datadir}/wallpapers
cp -v %{sources} %{buildroot}%{_datadir}/rosa-wallpapers-default

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16990 |21mr|rosa-wallpapers-2019-0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wallpapers from ROSA users in 2019
Name:		rosa-wallpapers-2019
Version:	0.1
Release:	3
License:	Creative Commons Attribution-NonCommercial
Group:		Graphical desktop/GNOME
Url:		https://vk.com/album-33847957_261187611
Source0:	%{name}-%{version}.tar.xz
BuildArch:	noarch

%description
Wallpapers created by ROSA users in 2019.

%files
%{_datadir}/wallpapers/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# Nothing to do

%install
mkdir -p %{buildroot}%{_datadir}/wallpapers
cp -r * %{buildroot}%{_datadir}/wallpapers

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16991 |21mr|rospo-icon-theme-2.1.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	All ROSPO icons themes
Name:		rospo-icon-theme
Version:	2.1.1
Release:	3
License:	LGPLv3
Group:		Graphical desktop/Other
Url:		https://github.com/Survolog/rospo-icon-theme/
Source0:	https://github.com/Survolog/rospo-icon-theme/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	yandex-browser_16.svg
Source2:	yandex-browser_32.svg
Source3:	yandex-browser_48.svg
Source4:	yandex-browser_64.svg
Requires:	%{name}-classic-common = %{EVRD}
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-dark = %{EVRD}
Requires:	%{name}-dark-common = %{EVRD}
Requires:	%{name}-dark-green = %{EVRD}
Requires:	%{name}-dark-newyear = %{EVRD}
Requires:	%{name}-dark-yellow = %{EVRD}
Requires:	%{name}-green-common = %{EVRD}
Requires:	%{name}-light = %{EVRD}
Requires:	%{name}-light-common = %{EVRD}
Requires:	%{name}-light-green = %{EVRD}
Requires:	%{name}-light-newyear = %{EVRD}
Requires:	%{name}-light-yellow = %{EVRD}
Requires:	%{name}-newyear-common = %{EVRD}
Requires:	%{name}-yellow-common = %{EVRD}
BuildArch:	noarch

%description
%{summary}.

%files
%doc AUTHORS README.md script-*
%license LICENSE

#----------------------------------------------------------------------------

%package dark
Summary:	Standart ROSPO icons for dark theme
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-dark-common = %{EVRD}
Requires:	%{name}-classic-common = %{EVRD}

%description dark
Standart ROSPO icons for dark theme.

%files dark
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-dark

#----------------------------------------------------------------------------

%package dark-green
Summary:	Green ROSPO icons for dark theme
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-dark-common = %{EVRD}
Requires:	%{name}-green-common = %{EVRD}

%description dark-green
Green ROSPO icons for dark theme.

%files dark-green
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-dark-green

#----------------------------------------------------------------------------

%package dark-newyear
Summary:	Newyear ROSPO icons for dark theme
Group:		Graphical desktop/Other
Requires:	%{name}-dark-common = %{EVRD}
Requires:	%{name}-newyear-common = %{EVRD}

%description dark-newyear
Newyear ROSPO icons for dark theme.

%files dark-newyear
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-dark-newyear

#----------------------------------------------------------------------------

%package dark-yellow
Summary:	Yellow ROSPO icons for dark theme
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-dark-common = %{EVRD}
Requires:	%{name}-yellow-common = %{EVRD}

%description dark-yellow
Yellow ROSPO icons for dark theme.

%files dark-yellow
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-dark-yellow

#----------------------------------------------------------------------------

%package light
Summary:	Standart ROSPO icons for light theme
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-light-common = %{EVRD}
Requires:	%{name}-classic-common = %{EVRD}

%description light
Standart ROSPO icons for light theme.

%files light
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-light

#----------------------------------------------------------------------------

%package light-green
Summary:	Green ROSPO icons for light theme
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-light-common = %{EVRD}
Requires:	%{name}-green-common = %{EVRD}

%description light-green
Green ROSPO icons for light theme.

%files light-green
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-light-green

#----------------------------------------------------------------------------

%package light-newyear
Summary:	Newyear ROSPO icons for light theme
Group:		Graphical desktop/Other
Requires:	%{name}-light-common = %{EVRD}
Requires:	%{name}-newyear-common = %{EVRD}

%description light-newyear
Newyear ROSPO icons for light theme.

%files light-newyear
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-light-newyear

#----------------------------------------------------------------------------

%package light-yellow
Summary:	Yellow ROSPO icons for light theme
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-light-common = %{EVRD}
Requires:	%{name}-yellow-common = %{EVRD}

%description light-yellow
Yellow ROSPO icons for light theme.

%files light-yellow
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-light-yellow

#----------------------------------------------------------------------------

%package common
Summary:	Common ROSPO icons for all icons themes
Group:		Graphical desktop/Other

%description common
Common ROSPO icons for ROSPO icons themes.

%files common
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-common

#----------------------------------------------------------------------------

%package dark-common
Summary:	Common ROSPO icons for all dark icons themes
Group:		Graphical desktop/Other

%description dark-common
Common ROSPO icons for all dark icons themes.

%files dark-common
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-dark-common

#----------------------------------------------------------------------------

%package light-common
Summary:	Common ROSPO icons for all light icons themes
Group:		Graphical desktop/Other

%description light-common
Common ROSPO icons for all light icons themes.

%files light-common
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-light-common

#----------------------------------------------------------------------------

%package classic-common
Summary:	Common ROSPO icons for all standart icons themes
Group:		Graphical desktop/Other

%description classic-common
Common ROSPO icons for all standart icons themes.

%files classic-common
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-classic-common

#----------------------------------------------------------------------------

%package green-common
Summary:	Common ROSPO icons for all green icons themes
Group:		Graphical desktop/Other

%description green-common
Common ROSPO icons for all green icons themes.

%files green-common
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-green-common

#----------------------------------------------------------------------------

%package newyear-common
Summary:	Common ROSPO icons for all newyear icons themes
Group:		Graphical desktop/Other

%description newyear-common
Common ROSPO icons for all newyear icons themes.

%files newyear-common
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-newyear-common

#----------------------------------------------------------------------------

%package yellow-common
Summary:	Common ROSPO icons for all yellow icons themes
Group:		Graphical desktop/Other

%description yellow-common
Common ROSPO icons for all yellow icons themes.

%files yellow-common
%doc AUTHORS
%license LICENSE
%{_iconsdir}/rospo-yellow-common

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# update yandex-browser icon
rm ./rospo-classic-common/16x16/apps/yandex-browser.svg
rm ./rospo-classic-common/32x32/apps/yandex-browser.svg
rm ./rospo-classic-common/48x48/apps/yandex-browser.svg
rm ./rospo-classic-common/64x64/apps/yandex-browser.svg
cp %{SOURCE1} ./rospo-classic-common/16x16/apps/yandex-browser.svg
cp %{SOURCE2} ./rospo-classic-common/32x32/apps/yandex-browser.svg
cp %{SOURCE3} ./rospo-classic-common/48x48/apps/yandex-browser.svg
cp %{SOURCE4} ./rospo-classic-common/64x64/apps/yandex-browser.svg

%build

%install
install -d %{buildroot}%{_iconsdir}/
cp -R	rospo-dark		\
	rospo-dark-green	\
	rospo-dark-newyear	\
	rospo-dark-yellow	\
	rospo-light		\
	rospo-light-green	\
	rospo-light-newyear	\
	rospo-light-yellow	\
	rospo-classic-common	\
	rospo-common		\
	rospo-dark-common	\
	rospo-green-common	\
	rospo-light-common	\
	rospo-newyear-common	\
	rospo-yellow-common	\
		%{buildroot}%{_iconsdir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16992 |21mr|rpcbind-1.2.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Universal Addresses to RPC Program Number Mapper
Name:		rpcbind
Version:	1.2.5
Release:	6
License:	BSD
Group:		System/Servers
Url:		http://rpcbind.sourceforge.net/
Source0:	http://downloads.sourceforge.net/rpcbind/%{name}-%{version}.tar.bz2
Source1:	%{name}.sysconfig
Source100:	%{name}.rpmlintrc
Patch100:	%{name}-1.2.5-systemd-envfile.patch
Patch101:	%{name}-0.2.3-systemd-tmpfiles.patch
Patch102:	%{name}-1.2.5-runstatdir.patch
Patch103:	%{name}-0.2.4-systemd-rundir.patch
BuildRequires:	quota-devel
BuildRequires:	wrap-devel
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(systemd)
Requires(pre,post,preun):	rpm-helper
Requires(preun,postun):	systemd
Requires(postun):	coreutils

%description
The rpcbind utility is a server that converts RPC program numbers into
universal addresses. It must be running on the host to be able to make RPC
calls on a server on that machine.

%files
%doc COPYING ChangeLog README
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}.socket
/sbin/*
%{_sbindir}/*
%{_bindir}/*
%{_tmpfilesdir}/%{name}.conf
%{_mandir}/man8/%{name}.8.*
%dir %attr(0700,rpc,rpc) %{_localstatedir}/lib/%{name}

%pre
 %_pre_useradd rpc %{_localstatedir}/lib/%{name} /sbin/nologin

%post
%_post_service %{name}
# Potentially dangerous... disabled for now
# Try restarting running services depending on portmapper
#for service in amd autofs bootparamd clusternfs mcserv \
#		nfs-common nfs-server \
#		ypserv ypbind yppasswdd ypxfrd; do
#	systemctl try-restart "$service" || :
#done

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
# P102 changes configure.ac
./autogen.sh
%serverbuild
%configure \
	CFLAGS="%{optflags} -fpie" LDFLAGS="-pie" \
	--enable-warmstarts \
	--with-statedir="/run/%{name}" \
	--with-rpcuser="rpc" \
	--with-nss-modules="files altfiles" \
	--enable-libwrap \
	--enable-debug

%make all


%install
%makeinstall_std

# Prepare needed dirs
install -d %{buildroot}%{_localstatedir}/lib/%{name}
install -d %{buildroot}%{_sbindir} %{buildroot}/sbin

# Put executables link in %%{_sbindir} and /sbin
pushd %{buildroot}/%{_sbindir}
#ln -sf ../bin/rpcbind
ln -sf ../bin/rpcinfo
popd
pushd %{buildroot}/sbin
ln -sf ../usr/sbin/rpcbind
ln -sf ../usr/sbin/rpcinfo
popd

# Install our sysconfig file
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

# Drop unwanted man page
rm -rf %{buildroot}%{_mandir}/man8/rpcinfo.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16993 |21mr|rpcsvc-proto-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# spec file for package rpcsvc-proto
#
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Name:           rpcsvc-proto
Version:        1.4
Release:        1%{?dist}
Group:		System/Base
Summary:        RPC protocol definitions
License:        BSD and LGPLv2+
Url:            https://github.com/thkukuk/rpcsvc-proto
Source0:        https://github.com/thkukuk/rpcsvc-proto/releases/v%{version}/%{name}-%{version}.tar.xz

Conflicts: glibc-headers < 2.26.9000-36
Conflicts: glibc-common < 2.26.9000-36

%description
The rpcsvc-proto package includes several rpcsvc header files
and RPC protocol definitions from SunRPC sources (as shipped with
glibc).

%package devel
Summary:        RPC protocol definitions

%description devel
The rpcsvc-proto package includes several rpcsvc header files
and RPC protocol definitions from SunRPC sources (as shipped with
glibc).

%package -n rpcgen
Summary:        RPC protocol compiler
Provides:       rpcgen

%description -n rpcgen
rpcgen is a tool that generates C code to implement an RPC protocol.
The input to rpcgen is a language similar to C known as RPC Language
(Remote Procedure Call Language).

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# rquota.x and rquota.h are provided by quota
rm -f $RPM_BUILD_ROOT%{_prefix}/include/rpcsvc/rquota.[hx]

%files devel
%{_includedir}/rpcsvc/

%files -n rpcgen
%{_bindir}/rpcgen
%{_mandir}/man1/rpcgen.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16994 |21mr|rpm-4.17.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Get rid of any -gnu/-gnueabi suffix for platform names
# to get traditional directory names
%ifarch x86_64
%define _target_platform x86_64-%{_vendor}-linux
%else
%ifarch aarch64
%define _target_platform aarch64-%{_vendor}-linux
%else
%define _target_platform %{_target_cpu}-%{_vendor}-linux
%endif
%endif

%if %{__isa_bits} == 64
%define _lib lib64
%else
%define _lib lib
%endif

%define _prefix /usr
%define _libdir %{_prefix}/%{_lib}
%define _libexecdir %{_prefix}/libexec
%define _bindir %{_prefix}/bin
%define _sysconfdir /etc
%define _datadir /usr/share
%define _defaultdocdir %{_datadir}/doc
%define _localstatedir /var
%define _infodir %{_datadir}/info
%define _sharedstatedir %{_localstatedir}/lib

%if %{?mklibname:0}%{?!mklibname:1}
%define mklibname(ds)  %{_lib}%{1}%{?2:%{2}}%{?3:_%{3}}%{-s:-static}%{-d:-devel}
%endif

%define _real_vendor rosa

# If they aren't provided by a system installed macro, define them
%{!?__python3: %global __python3 /usr/bin/python3}

%{!?py3_build: %global py3_build LDSHARED="%{__cc} -pthread -shared %{optflags}" CFLAGS="%{optflags}" %{__python3} setup.py build}
%{!?py3_install: %global py3_install %{__python3} setup.py install -O1 --skip-build --root %{buildroot}}

%{!?python3_sitearch: %global python3_sitearch %(%{__python3} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}

%define _python_bytecompile_errors_terminate_build 1

%define __find_requires %{rpmhome}/%{_real_vendor}/find-requires %{?buildroot:%{buildroot}} %{?_target_cpu:%{_target_cpu}}
%define __find_provides %{rpmhome}/%{_real_vendor}/find-provides

# run internal testsuite?
## TODO: Enable by default once hack patches are removed
%bcond_with check
# build with plugins?
%bcond_without plugins
# build with new db format
%bcond_with ndb
# build with openmp support?
# error: liblzma: Memory allocation failed
# on abf builds
# need to investigate
%bcond_with openmp
# Build with libimavm to support rpmsign --signfiles
# Note that libemaevm (ima-evm-utils) is built with LibreSSL
%bcond_without imaevm

# Define directory which holds rpm config files, and some binaries actually
# NOTE: it remains */lib even on lib64 platforms as only one version
#       of rpm is supported anyway, per architecture
%define rpmhome /usr/lib/rpm

%global libmajor	9
%global librpmname      %mklibname rpm  %{libmajor}
%global librpmnamedevel %mklibname -d rpm
%global librpmsign      %mklibname rpmsign %{libmajor}
%global librpmbuild     %mklibname rpmbuild %{libmajor}

Summary:	The RPM package management system
Name:		rpm
Epoch:		2
Version:	4.17.0
Release:	6
# Partially GPL/LGPL dual-licensed and some bits with BSD
# SourceLicense: (GPLv2+ and LGPLv2+ with exceptions) and BSD
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		http://www.rpm.org/
# git tree with patches: https://github.com/mikhailnov/rpm/commits/rosa-v4.17.0
Source0:	http://ftp.rpm.org/releases/rpm-4.17.x/rpm-%{version}.tar.bz2
# extracted from http://pkgs.fedoraproject.org/cgit/redhat-rpm-config.git/plain/macros:
Source1:	macros.filter
Source2:	rpm.rpmlintrc
Source3:	rpmdb-rebuild.service
Source4:	rpm_ru.tar.gz

Patch0001: 0001-Use-perl_convert_version-in-generators.patch
Patch0002: 0002-disable-the-systemd-inhibit-plugin-when-systemd-logi.patch
Patch0003: 0003-Add-macro-to-install-files-with-macros.patch
Patch0004: 0004-Macros-to-recognize-RPM-derivative.patch
# https://github.com/rpm-software-management/rpm/pull/1020 (WIP (?))
Patch0005: 0005-Print-all-build-errors-and-do-not-stop-after-the-fir.patch
Patch0006: 0006-ROSA-fix-KF5_HTML-directory.patch
Patch0007: 0007-HACK-Detect-and-disable-DistEpoch-in-EVR-comparisons.patch
Patch0008: 0008-HACK-Skip-all-triggers-that-start-with-a-file-path-a.patch
Patch0009: 0009-Temporarily-add-support-for-GOST-algorithms-for-RPM5.patch
Patch0010: 0010-make-geode-appear-as-i686-rhbz-517475.patch
Patch0011: 0011-add-mips-isa-macros.patch
Patch0012: 0012-Prohibit-badly-commented-define.patch
Patch0013: 0013-Add-full-znver1-support-including-detection-and-znve.patch
# Disable znver1 autodetection on ROSA
# https://github.com/rpm-software-management/rpm/pull/1035#issuecomment-596158605
Patch0014: 0014-Disable-znver1-by-default.patch
Patch0015: 0015-Port-to-e2k-hardware-architecture.patch
Patch0016: 0016-HACK-don-t-exclude-docs-from-generators-to-fix-Perl-.patch
Patch0017: 0017-no-doc-conflicts.patch
Patch0018: 0018-i386-to-i686.patch
Patch0019: 0019-bb-shortcircuit.patch
Patch0020: 0020-rpmqv-ghost.patch
Patch0021: 0021-Compatibility-with-find_lang-all-name-with-qt-from-R.patch
# Add support for %%optional
# From: https://github.com/rpm-software-management/rpm/pull/417
Patch0022: 0022-Add-optional-tag.patch
Patch0023: 0023-Add-ldflags-separately-from-optflags.patch
Patch0024: 0024-Restore-python-helpers.patch
Patch0025: 0025-Use-OpenMandriva-s-variant-of-legacy-pythonegg-depen.patch
Patch0026: 0026-Keep-pythonegg.patch
# Cherry-picks from upstream
Patch0027: 0027-Don-t-strip-.go-files.patch
Patch0028: 0028-Don-t-strip-ELF-files-with-no-machine.patch
Patch0029: 0029-Check-file-iterator-for-being-NULL-consistently.patch
Patch0030: 0030-autopatch-Fix-patch-number-parameters.patch
Patch0031: 0031-Don-t-segfault-on-missing-priority-tag.patch
Patch0032: 0032-Drop-arbitrary-macro-name-minimum-length-limit-RhBug.patch
#/
# Maybe use brp-elfperms in the next platform after rosa2021.1
Patch0033: 0033-ROSA-drop-brp-elfperms.patch
Patch0034: 0034-ROSA-drop-brp-remove-la-files.patch
# https://github.com/rpm-software-management/rpm/pull/1794
Patch0035: 0035-Print-that-package-is-not-installed-into-stderr.patch
# https://github.com/rpm-software-management/rpm/issues/1790
Patch0036: 0036-Restore-scriptlet-arguments-passed-as-numbers-to-Lua.patch

BuildRequires:	autoconf
BuildRequires:	bison
BuildRequires:	git-core
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(zlib)
BuildRequires:	bzip2-devel
BuildRequires:	dbus-devel
BuildRequires:	pkgconfig(liblzma) >= 5
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	automake
BuildRequires:	doxygen
BuildRequires:	pkgconfig(libelf)
BuildRequires:	binutils-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(popt)
BuildRequires:	magic-devel
BuildRequires:	rpm-rosa-setup-build
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(lua) >= 5.3
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	acl-devel
BuildRequires:	pkgconfig(libarchive) >= 3.3.3
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
%if %{with check}
# for testsuite:
BuildRequires:	eatmydata
BuildRequires:	fakechroot
BuildRequires:	gnupg2
%endif
BuildRequires:	atomic-devel
%if %{with imaevm}
BuildRequires:	%mklibname imaevm -d
%endif
%if %{with openmp}
BuildRequires:	gomp-devel
%endif

Requires:	bzip2
Requires:	xz
Requires:	zstd
Requires:	cpio
Requires:	gawk
Requires:	coreutils
Requires:	setup
Requires:	rpm-rosa-setup
Requires:	%{librpmname} = %{EVRD}

# This is a completely different implementation of RPM, replacing rpm5
Conflicts:	rpm < 2:4.14.0-0

# Install useful plugins by default
# dbus announce plugin seems to be useless by default
Recommends:	rpm-plugin-audit
Recommends:	rpm-plugin-syslog
Recommends:	rpm-plugin-ima
Recommends:	rpm-plugin-systemd-inhibit
# If selinux-policy is removed (e.g. after orphaning when is not really needed)
# then removing any RPM package fails because SELinux is active, policy is loaded
# but is not available on disk. It looks more like a feature, not a bug.
Recommends:	(rpm-plugin-selinux if selinux-policy)
Recommends:	(rpm-plugin-fapolicyd if fapolicyd)

%description
The RPM Package Manager (RPM) is a powerful command line driven
package management system capable of installing, uninstalling,
verifying, querying, and updating software packages.  Each software
package consists of an archive of files along with information about
the package like its version, a description, etc.

%package -n %{librpmname}
Summary:	Libraries for manipulating RPM packages
Group:		System/Libraries
License:	GPLv2+ and LGPLv2+ with exceptions
Provides:	librpm = %{EVRD}
Provides:	rpm-libs = %{EVRD}
# librpm5 is gone...
Obsoletes:	%{_lib}rpm5.4 <= 5.4

%description -n %{librpmname}
This package contains the RPM shared libraries.

%package -n %{librpmbuild}
Summary:	Libraries for building and signing RPM packages
Group:		System/Libraries
License:	GPLv2+ and LGPLv2+ with exceptions
Obsoletes:	rpm-build-libs < %{EVRD}
Provides:	rpm-build-libs = %{EVRD}

%description -n %{librpmbuild}
This package contains the RPM shared libraries for building and signing
packages.

%package -n %{librpmnamedevel}
Summary:	Development files for applications which will manipulate RPM packages
Group:		Development/C
License:	GPLv2+ and LGPLv2+ with exceptions
Requires:	rpm = %{EVRD}
Provides:	librpm-devel = %{EVRD}
Provides:	rpm-devel = %{EVRD}
Requires:	pkgconfig(popt)
Requires:	%{librpmname} = %{EVRD}
Requires:	%{librpmbuild} = %{EVRD}
Requires:	%{librpmsign} = %{EVRD}
# We don't provide this anymore...
Obsoletes:	%{_lib}rpm-static-devel < 2:4.14-0

%description -n %{librpmnamedevel}
This package contains the RPM C library and header files.  These
development files will simplify the process of writing programs that
manipulate RPM packages and databases. These files are intended to
simplify the process of creating graphical package managers or any
other tools that need an intimate knowledge of RPM packages in order
to function.

This package should be installed if you want to develop programs that
will manipulate RPM packages and databases.

%package  -n %{librpmsign}
Summary:	Libraries for building and signing RPM packages
Group:		System/Libraries
License:	GPLv2+ and LGPLv2+ with exceptions

%description -n %{librpmsign}
This package contains the RPM shared libraries for building and signing
packages.

%package build
Summary:	Scripts and executable programs used to build packages
Group:		System/Configuration/Packaging
Provides:	perl-generators = %{version}-%{release}
Requires:	autoconf
Requires:	automake
Requires:	atomic-devel
Requires:	gcc
Requires:	file
# We need cputoolize & amd64-* alias to x86_64-* in config.sub
Requires:	libtool-base
Requires:	patch
Requires:	diffutils
Requires:	make
Requires:	tar
Requires:	unzip
# Versioned requirement for Patch 400
Requires:	elfutils >= 0.167-2
# FIXME inherited from Mageia, which in turn inherited them from Mandriva
# Nobody knows why -- but probably it's urpmi? Let's see if anything breaks
# without those deps...
#Requires:	perl(CPAN::Meta) >= 2.112.150
#Requires:	perl(ExtUtils::MakeMaker) >= 6.570_700
#Requires:	perl(YAML::Tiny)
Requires:	rpm = %{EVRD}
Requires:	rpm-rosa-setup-build
Requires:	%{librpmbuild} = %{EVRD}
# For pythondistdeps generator
Requires:	python3-pkg-resources
# Drop until urpmi->dnf transition is complete
Requires:	rpmlint
Requires:	rpmlint-rosa-policy
Requires:	dwz
Requires:	debugedit
#Requires:	rosa-repos-pkgprefs
Requires:	spec-helper >= 0.31.12
Requires:	pkgconfig
#Requires:	systemd-macros
Requires:	go-srpm-macros
Requires:	qml-rpm-generators
Requires:	efi-srpm-macros
Requires:	devel-rpm-generators
Requires:	cmake-rpm-generators
Requires:	order-rpm-generators
Requires:	rpm-helper
Conflicts:	rpm-build < %{EVRD}

%description build
The rpm-build package contains the scripts and executable programs
that are used to build packages using the RPM Package Manager.

%package sign
Summary:	Package signing support
Group:		System/Base

%description sign
This package contains support for digitally signing RPM packages.

%package -n python3-%{name}
Summary:	Python 3 bindings for apps which will manipulate RPM packages
Group:		Development/Python
Requires:	rpm = %{EVRD}
# Python 2 is no longer supported...
Conflicts:	python2-%{name} < 2:4.16.0-0
Obsoletes:	python2-%{name} < 2:4.16.0-0

%description -n python3-%{name}
The python3-rpm package contains a module that permits applications
written in the Python programming language to use the interface
supplied by RPM Package Manager libraries.

This package should be installed if you want to develop Python 3
programs that will manipulate RPM packages and databases.

%package apidocs
Summary:	API documentation for RPM libraries
Group:		Documentation
BuildArch:	noarch

%description apidocs
This package contains API documentation for developing applications
that will manipulate RPM packages and databases.

%package	cron
Summary:	Create daily logs of installed packages
Group:		System/Base
BuildArch:	noarch
Requires:	crontabs
Requires:	logrotate
Requires:	rpm = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description cron
This package contains a cron job which creates daily logs of installed
packages on a system.

%if %{with plugins}
%package plugin-audit
Summary:	Rpm plugin for logging audit events on package operations
Group:		System/Base
BuildRequires:	pkgconfig(audit)
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-audit
Rpm plugin for libaudit support

%package plugin-dbus-announce
Summary:	Rpm plugin for announcing transactions on the DBUS
Group:		System/Base
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-dbus-announce
The plugin announces basic information about rpm transactions to the
system DBUS - like packages installed or removed.  Other programs can
subscribe to the signals to get notified when packages on the system
change.

%package plugin-selinux
Summary:	Rpm plugin for SELinux functionality
Group:		System/Base
BuildRequires:	pkgconfig(libselinux)
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-selinux
Rpm plugin for libaudit support

%package plugin-syslog
Summary:	Rpm plugin for syslog functionality
Group:		System/Base
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-syslog
This plugin exports RPM actions to the system log.

%package plugin-systemd-inhibit
Summary:	Rpm plugin for systemd inhibit functionality
Group:		System/Base
BuildRequires:	pkgconfig(dbus-1)
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-systemd-inhibit
This plugin blocks systemd from entering idle, sleep or shutdown while an rpm
transaction is running using the systemd-inhibit mechanism.

%package plugin-ima
Summary:	Rpm plugin for IMA file signatures
Group:		System/Base
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-ima
This plugin adds support for enforcing and verifying IMA file signatures
in an rpm.

%package plugin-fapolicyd
Summary:	Rpm plugin for fapolicyd support
Group:		System/Base
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-fapolicyd
Rpm plugin for fapolicyd support.
See https://people.redhat.com/sgrubb/fapolicyd/ for information about
the fapolicyd daemon.

%package plugin-fsverity
Summary:	Rpm plugin for fsverity file signatures
Group:		System/Base
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-fsverity
%{summary}.

%package plugin-prioreset
Summary:	Rpm plugin for resetting scriptlet priorities for SysV init
Group:		System/Base
Requires:	%{librpmname} = %{EVRD}
# Incompatible with rpm5
Conflicts:	rpm < 2:4.14.0-0

%description plugin-prioreset
%{summary}

Useful on legacy SysV init systems if you run rpm transactions with
nice/ionice priorities. Should not be used on systemd systems.

%endif # with plugins

%prep
# git tree with patches: https://github.com/mikhailnov/rpm/commits/rosa-v4.17.0
%autosetup -S git_am -n %{name}-%{version} -p1

pushd po
tar -xvzf %{SOURCE4}
popd

%build
%define _disable_ld_no_undefined 1

%set_build_flags

autoreconf -i -f

%configure \
    --localstatedir=%{_var} \
    --sharedstatedir=%{_var}/lib \
    --with-vendor=%{_real_vendor} \
    %{?with_plugins: --with-selinux} \
    --with-cap \
    --with-acl \
    %{?with_ndb: --with-ndb} \
    %{!?with_openmp: --disable-openmp} \
    %{?with_imaevm: --with-imaevm} \
    --with-fapolicyd \
    --enable-zstd \
    --enable-bdb-ro \
    --enable-sqlite \
    --enable-python \
    --with-crypto=libgcrypt

%make_build

cd python
%py3_build
cd -

%install
%make_install

# Change pythondistdeps to use python3
sed -e "s|#!/usr/bin/python|#!%{__python3}|" \
    -i %{buildroot}%{_prefix}/lib/rpm/pythondistdeps.py

# Add legacy symlink to rpm...
mkdir -p %{buildroot}/bin
ln -sr %{buildroot}/%{_bindir}/rpm %{buildroot}/bin/rpm

# We need to build with --enable-python for the self-test suite, but we
# actually package the bindings built with setup.py (#531543#c26)
rm -rf %{buildroot}%{python3_sitearch}
cd python
%py3_install
cd -

# Save list of packages through cron
mkdir -p %{buildroot}%{_sysconfdir}/cron.daily
install -m 755 scripts/rpm.daily ${RPM_BUILD_ROOT}%{_sysconfdir}/cron.daily/rpm

mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
install -m 644 scripts/rpm.log ${RPM_BUILD_ROOT}%{_sysconfdir}/logrotate.d/rpm

# Patch0024
install -m0755 scripts/brp-python-hardlink %{buildroot}%{rpmhome}

# init an empty database for %ghost'ing for all supported backends
mkdir -p %{buildroot}/var/lib/rpm
for be in %{?with_ndb:ndb} sqlite
do
	./rpmdb --define "_db_backend ${be}" --dbpath=${PWD}/${be} --initdb
	cp -va ${be}/. %{buildroot}/var/lib/rpm/
done

# moved to debugedit package, some packages may invoke find-debuginfo directly, preserve compat for now
ln -s ../../bin/find-debuginfo %{buildroot}/usr/lib/rpm/find-debuginfo.sh

mkdir -p %{buildroot}%{_unitdir}
install -m0644 %{SOURCE3} %{buildroot}%{_unitdir}

mkdir -p %{buildroot}%{rpmhome}/macros.d
mkdir -p %{buildroot}%{_sysconfdir}/rpm
install -m644 %{SOURCE1} %{buildroot}%{rpmhome}/macros.d
cat > %{buildroot}%{_sysconfdir}/rpm/macros <<EOF
# Put your own system macros here
# usually contains

# Set this one according your locales
# %%_install_langs

EOF

# Fix up and add platform targets
cd %{buildroot}%{rpmhome}/platform

# There's a difference between *-linux and *-linux-gnux32... So got to add %%{_gnu} to target_platform
sed -i -e 's,^%%_target_platform.*,&%%{_gnu},' *-linux/macros

# We don't target pre-eabi ARM...
sed -i -e 's,-gnu$,-gnueabi,g' arm*-linux/macros
sed -i -e 's,-gnueabi$,-gnueabihf,g' arm*h*-linux/macros

# Add x32 ABI...
cp -a x86_64-linux x32-linux
sed -i -e 's,-gnu,-gnux32,g' x32-linux/macros

# Add RISC-V...
cp -a i686-linux riscv32-linux
sed -i -e 's,i386,riscv32,g;s, -march=i686,,g;s,x86,riscv,g' riscv32-linux/macros
cp -a x86_64-linux riscv64-linux
sed -i -e 's,x86_64,riscv64,g;s,x86,riscv,g' riscv64-linux/macros

# Add ARMv8 (aarch64 in 32-bit mode)
cp -a armv7hnl-linux armv8hnl-linux
sed -i -e 's,v7,v8,g' armv8hnl-linux/macros
cp -a armv7l-linux armv8l-linux
sed -i -e 's,v7,v8,g' armv8l-linux/macros

# Add ZNVER1 (Ryzen/EPYC)
cp -a x86_64-linux znver1-linux
# Overriding %_target_cpu doesn't seem to work, so we set %_target_platform
sed -i -e 's,%%{_target_cpu}-%%{_vendor},x86_64-%%{_vendor},g' znver1-linux/macros
sed -i -e '/^%%_target_platform/i%%_target_cpu		x86_64' znver1-linux/macros
sed -i -e '/^%%optflags/d' znver1-linux/macros
# And ZNVER1 in 32-bit mode...
cp -a athlon-linux znver1_32-linux
# Overriding %_target_cpu doesn't seem to work, so we set %_target_platform
sed -i -e 's,%%{_target_cpu}-%%{_vendor},i686-%%{_vendor},g' znver1_32-linux/macros
sed -i -e '/^%%_target_platform/i%%_target_cpu		i686' znver1_32-linux/macros
sed -i -e '/^%%optflags/d' znver1_32-linux/macros

# Let's create some crosscompile targets for MUSL based systems...
for arch in aarch64 armv7hl armv7hnl armv8hnl i686 x86_64 znver1 x32 riscv32 riscv64; do
	cp -a $arch-linux $arch-linuxmusl
	sed -i -e 's,-gnu,-musl,g' $arch-linuxmusl/macros
	# FIXME this is not very nice... It's a workaround for
	# not being able to set _target_os in platform macros
	sed -i -e 's,%%{_target_os},linux,g' $arch-linuxmusl/macros
done

# We may want to crosscompile to Android as well...
# Different targets here because Android doesn't use ARM32 hardfloat ABIs
for arch in aarch64 armv7l armv8l i686 x86_64 znver1 riscv32 riscv64; do
	cp -a $arch-linux $arch-android
	sed -i -e 's,-gnu,-android,g' $arch-android/macros
	# FIXME this is not very nice... It's a workaround for
	# not being able to set _target_os in platform macros
	sed -i -e 's,%%{_target_os},linux,g' $arch-android/macros
done
# FIXME this is not very nice... It's a workaround for
# not being able to set _target_cpu in platform macros
sed -i -e 's,%%{_target_cpu},x86_64,g' x32-*/macros

# And let's not force developers of cross-platform applications
# to keep a copy of Windoze around just because they want to
# compile for it...
cp -a x86_64-linux x86_64-mingw32
cp -a i686-linux i686-mingw32
sed -i -e 's,linux,mingw32,g;s,-gnu,%%{nil},g' *-mingw32/macros
sed -i -e 's,rosa,w64,g' x86_64-mingw32/macros
sed -i -e 's,rosa,w32,g' i686-mingw32/macros
cd -

%find_lang %{name}

%if %{with check}
%check
# https://github.com/rpm-software-management/rpm/issues/741
eatmydata make check || (cat tests/rpmtests.log; exit 0)
%endif

%posttrans
# Plan conversion of BerkleyDB into SQlite if BerkleyDB exists
if [ -f /var/lib/rpm/Packages ]; then
	touch /var/lib/rpm/.rebuilddb
fi

%triggerun -- rpm < 2:4.17
# Handle rpmdb rebuild service on erasure of old to avoid ordering issues
# https://pagure.io/fesco/issue/2382
if [ -x /usr/bin/systemctl ]; then
	systemctl --no-reload enable rpmdb-rebuild.service ||:
fi

%define rpmattr %attr(0755,root,root)

%files -f %{name}.lang
%license COPYING
%doc CREDITS
%doc docs/manual/[a-z]*
%attr(-,root,root) /bin/rpm
%attr(0755,root,root) %{_bindir}/rpm
%attr(0755,root,root) %{_bindir}/rpm2cpio
%attr(0755,root,root) %{_bindir}/rpm2archive
%attr(0755,root,root) %{_bindir}/gendiff
%attr(0755,root,root) %{_bindir}/rpmdb
%attr(0755,root,root) %{_bindir}/rpmkeys
%attr(0755,root,root) %{_bindir}/rpmgraph
%{_bindir}/rpmquery
%{_bindir}/rpmverify

%dir %{rpmhome}
%dir /etc/rpm
%config(noreplace) /etc/rpm/macros
%attr(0755,root,root) %{rpmhome}/rpmdb_*
%attr(0644,root,root) %{rpmhome}/macros
%rpmhome/macros.d
%attr(0755,root,root) %{rpmhome}/mkinstalldirs
%attr(0755,root,root) %{rpmhome}/rpm.*
%attr(0644,root,root) %{rpmhome}/rpmpopt*
%attr(0644,root,root) %{rpmhome}/rpmrc
%attr(0755,root,root) %{rpmhome}/elfdeps
%attr(0755,root,root) %{rpmhome}/script.req

%rpmattr %{rpmhome}/rpm2cpio.sh
%rpmattr %{rpmhome}/tgpg

%dir %attr(   -,root,root) %{rpmhome}/fileattrs
%attr(0644,root,root) %{rpmhome}/fileattrs/*.attr

%attr(   -,root,root) %{rpmhome}/platform/

%if %{with plugins}
%dir %{_libdir}/rpm-plugins
%{_mandir}/man8/rpm-plugins.8*
%endif

%{_mandir}/man8/rpm.8*
%{_mandir}/man8/rpmdb.8*
%{_mandir}/man8/rpmgraph.8*
%{_mandir}/man8/rpmkeys.8*
%{_mandir}/man8/rpm2archive.8*
%{_mandir}/man8/rpm2cpio.8*
%{_mandir}/man8/rpm-misc.8*
%{_mandir}/man1/*.1*
%lang(fr) %{_mandir}/fr/man[18]/*.[18]*
%lang(ja) %{_mandir}/ja/man[18]/*.[18]*
%lang(ko) %{_mandir}/ko/man[18]/*.[18]*
%lang(pl) %{_mandir}/pl/man[18]/*.[18]*
%lang(ru) %{_mandir}/ru/man[18]/*.[18]*
%lang(sk) %{_mandir}/sk/man[18]/*.[18]*

%attr(0755, root, root) %dir /var/lib/rpm
%attr(0644, root, root) %ghost %config(missingok,noreplace) /var/lib/rpm/*
%attr(0644, root, root) %ghost /var/lib/rpm/.*.lock
%{_unitdir}/rpmdb-rebuild.service

%files -n %librpmname
%{_libdir}/librpm.so.%{libmajor}
%{_libdir}/librpm.so.%{libmajor}.*
%{_libdir}/librpmio.so.%{libmajor}
%{_libdir}/librpmio.so.%{libmajor}.*

%if %{with plugins}
%files plugin-audit
%{_libdir}/rpm-plugins/audit.so
%{_mandir}/man8/rpm-plugin-audit.8*

%files plugin-dbus-announce
%{_libdir}/rpm-plugins/dbus_announce.so
%{_mandir}/man8/rpm-plugin-dbus-announce.8*
%{_sysconfdir}/dbus-1/system.d/org.rpm.conf

%files plugin-selinux
%{_libdir}/rpm-plugins/selinux.so
%{_mandir}/man8/rpm-plugin-selinux.8*

%files plugin-syslog
%{_libdir}/rpm-plugins/syslog.so
%{_mandir}/man8/rpm-plugin-syslog.8*

%files plugin-systemd-inhibit
%{_libdir}/rpm-plugins/systemd_inhibit.so
%{_mandir}/man8/rpm-plugin-systemd-inhibit.8*

%files plugin-ima
%{_libdir}/rpm-plugins/ima.so
%{_mandir}/man8/rpm-plugin-ima.8*

%files plugin-fapolicyd
%{_libdir}/rpm-plugins/fapolicyd.so
%{_mandir}/man8/rpm-plugin-fapolicyd.8*

%files plugin-fsverity
%{_libdir}/rpm-plugins/fsverity.so

%files plugin-prioreset
%{_libdir}/rpm-plugins/prioreset.so
%{_mandir}/man8/rpm-plugin-prioreset.8*
%endif # with plugins

%files -n %librpmbuild
%{_libdir}/librpmbuild.so.%{libmajor}
%{_libdir}/librpmbuild.so.%{libmajor}.*

%files -n %librpmsign
%{_libdir}/librpmsign.so.%{libmajor}
%{_libdir}/librpmsign.so.%{libmajor}.*

%files build
%rpmattr %{_bindir}/rpmbuild
%rpmattr %{_bindir}/rpmspec
%rpmattr %{_prefix}/lib/rpm/brp-*
%rpmattr %{_prefix}/lib/rpm/check-files
%rpmattr %{_prefix}/lib/rpm/*.prov
# compat symlink to /usr/bin/find-debuginfo from debugedit
%{_prefix}/lib/rpm/find-debuginfo.sh
%rpmattr %{_prefix}/lib/rpm/find-lang.sh
%rpmattr %{_prefix}/lib/rpm/find-provides
%rpmattr %{_prefix}/lib/rpm/find-requires
%rpmattr %{_prefix}/lib/rpm/perl.req
%rpmattr %{_prefix}/lib/rpm/check-buildroot
%rpmattr %{_prefix}/lib/rpm/check-prereqs
%rpmattr %{_prefix}/lib/rpm/check-rpaths
%rpmattr %{_prefix}/lib/rpm/check-rpaths-worker
%rpmattr %{_prefix}/lib/rpm/ocamldeps.sh
%rpmattr %{_prefix}/lib/rpm/pkgconfigdeps.sh
%rpmattr %{_prefix}/lib/rpm/pythondistdeps.py*
%exclude %{_prefix}/lib/rpm/__pycache__
%rpmattr %{_prefix}/lib/rpm/rpmdeps

%{_mandir}/man8/rpmbuild.8*
%{_mandir}/man8/rpmdeps.8*
%{_mandir}/man8/rpmspec.8*

%files sign
%{_bindir}/rpmsign
%{_mandir}/man8/rpmsign.8*

%files -n python3-%{name}
%{python3_sitearch}/%{name}/
%{python3_sitearch}/%{name}-%{version}*.egg-info

%files -n %librpmnamedevel
%{_libdir}/librp*[a-z].so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}/

%files apidocs
%license COPYING
%doc docs/librpm/html/*

%files cron
%config(noreplace) /etc/cron.daily/rpm
%config(noreplace) /etc/logrotate.d/rpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16995 |21mr|rpmdevtools-8.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _emacs_sitestartdir %{_datadir}/emacs/site-lisp/site-start.d
%global spectool_version 1.0.10

%global __reqires_exclude_from %{_bindir}/spectool
%global __requires_exclude /usr/bin/perl|perl\\(.*)

Summary:	RPM Development Tools
Name:		rpmdevtools
Version:	8.10
Release:	1
Group:		System/Configuration/Packaging
# rpmdev-setuptree is GPLv2, everything else GPLv2+
License:	GPLv2+ and GPLv2
URL:		https://pagure.io/rpmdevtools
Source0:	https://releases.pagure.org/rpmdevtools/%{name}-%{version}.tar.xz
# (tpg) add patch from Fedora
Patch0:		https://src.fedoraproject.org/rpms/rpmdevtools/raw/master/f/0001-bumpspec-checksig-Avoid-python-3.6-regex-related-dep.patch
Patch1:		https://src.fedoraproject.org/rpms/rpmdevtools/raw/master/f/0001-Limit-newVersion-s-re.sub-to-a-single-replacement.patch
BuildArch:	noarch
# help2man, pod2man, *python for creating man pages
BuildRequires:	help2man
BuildRequires:	python3
BuildRequires:	python3-rpm
# emacs-common >= 1:22.3-3 for macros.emacs
BuildRequires:	emacs-common
Provides:	spectool = %{spectool_version}
Requires:	curl
Requires:	diffutils
Requires:	fakeroot
Requires:	file
Requires:	findutils
Requires:	gawk
Requires:	grep
Requires:	python3-rpm
Requires:	sed
Recommends:	emacs-common
Recommends:	rpm-build

%description
This package contains scripts and (X)Emacs support files to aid in
development of RPM packages.
rpmdev-setuptree    Create RPM build tree within user's home directory
rpmdev-diff         Diff contents of two archives
rpmdev-newspec      Creates new .spec from template
rpmdev-rmdevelrpms  Find (and optionally remove) "development" RPMs
rpmdev-checksig     Check package signatures using alternate RPM keyring
rpminfo             Print information about executables and libraries
rpmdev-md5/sha*     Display checksums of all files in an archive file
rpmdev-vercmp       RPM version comparison checker
spectool            Expand and download sources and patches in specfiles
rpmdev-wipetree     Erase all files within dirs created by rpmdev-setuptree
rpmdev-extract      Extract various archives, "tar xvf" style
rpmdev-bumpspec     Bump revision in specfile
...and many more.

%files
%doc COPYING NEWS
%config(noreplace) %{_sysconfdir}/rpmdevtools/
%{_sysconfdir}/bash_completion.d/
%{_datadir}/rpmdevtools/
%{_bindir}/*
%{_emacs_sitestartdir}/rpmdev-init.el
%ghost %{_emacs_sitestartdir}/rpmdev-init.elc
%{_mandir}/man1/*.1*
%{_mandir}/man8/*.8*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

grep -Irl 'bugzilla.redhat.com' | xargs sed -i -e 's,bugzilla.redhat.com,bugzilla.rosalinux.ru,g'

# untill python is not python3 by default
grep -IrlE "/usr/bin/python|/usr/bin/env/ python" | \
	xargs sed -i -e "s,/usr/bin/python,%{_bindir}/python3,g" \
	             -e "s,/usr/bin/env python,%{_bindir}/python3,g" \
	             -e "s,/python33,/python3,g" \
	             -e "s,/python32,/python3,g"

%build
%configure --libdir=%{_prefix}/lib
%make

%install
%makeinstall_std

for dir in %{_emacs_sitestartdir} ; do
  install -dm 755 %{buildroot}/${dir}/
  ln -s %{_datadir}/rpmdevtools/rpmdev-init.el %{buildroot}/${dir}
  touch %{buildroot}/${dir}/rpmdev-init.elc
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16996 |21mr|rpm-helper-0.24.18-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Helper scripts for rpm scriptlets
Name:		rpm-helper
Version:	0.24.18
Release:	5
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		https://abf.rosalinux.ru/soft/%{name}
Source0:	%{url}/archive/%{name}-%{version}.tar.gz
# Bellow all Requires are duplicated with OrderWithRequires
# to be sure to have all requires tools installed before
# spec-helper is executed in scriptlets when building eraly chroots
Requires:	chkconfig
OrderWithRequires:	chkconfig
# for addgroup which uses xargs
Requires:	findutils
OrderWithRequires:	findutils
Requires:	grep
OrderWithRequires:	grep
# for /etc/passwd and /etc/group
Requires:	setup
# spec-helper can add users, so default /etc/passwd
# must exist before spec-helper execution in early chroots
OrderWithRequires:	setup
Requires:	shadow-utils
OrderWithRequires:	shadow-utils
# for /bin/systemctl
Requires:	systemd-units systemd
OrderWithRequires:	systemd-units systemd
Requires:	util-linux
OrderWithRequires:	util-linux
Requires:	coreutils
OrderWithRequires:	coreutils
Requires:	shadow-utils
OrderWithRequires:	shadow-utils
BuildArch:	noarch

%description
Helper scripts for rpm installation.

%files
%doc README NEWS AUTHORS
%config(noreplace) %{_sysconfdir}/sysconfig/ssl
%{_datadir}/%{name}
%{_localstatedir}/lib/%{name}
%{_rpmmacrodir}/*%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build

%install
%makeinstall_std

# Make sure these are always executable
chmod 0755 %{buildroot}%{_datadir}/%{name}/*

# Use universal macro installation for both RPM 4 and RPM 5
# TODO: fix pm-helper code to install macros properly
%install_macro %{name} %{buildroot}%{_sysconfdir}/rpm/macros.d/%{name}.macros
rm -f %{buildroot}%{_sysconfdir}/rpm/macros.d/%{name}.macros

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16997 |21mr|rpmlint-1.11-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	RPM correctness checker
Name:		rpmlint
Version:	1.11
Release:	16
License:	GPLv2+
Group:		Development/Other
URL:		https://github.com/rpm-software-management/rpmlint
Source0:	https://github.com/rpm-software-management/rpmlint/archive/%{name}-%{version}.tar.gz
Source1:	rpmlint.config
# Backports from upstream
Patch0001:	rpmlint-1.11-rpm4.15.patch

# Mageia specific patches
Patch1001:	1001-Add-some-licenses-allowed-in-Fedora-as-they-are-allo.patch
Patch1003:	python38.patch

# OpenMandriva specific patches
Patch2000:	rpmlint-1.11-dont-fail-on-missing-locales.patch

# ROSA patch
Patch3000:	0001-Not-fatal-if-any-error.patch
Patch3001:	0001-Allow-longer-lines-in-descriptions.patch

BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	python3-rpm
Requires:	python3 > 3.0
Requires:	python3-rpm
Requires:	python3-magic
Requires:	desktop-file-utils
Recommends:	python3-enchant
Requires:	rpmlint-%{_target_vendor}-policy
Requires:	cpio
Requires:	binutils
Requires:	gzip
Requires:	bzip2
Requires:	xz
# Needed for man page check in FilesCheck.py
Requires:	groff-for-man
Recommends:	myspell-en
BuildArch:	noarch

%description
Rpmlint is a tool to check common errors on rpm packages.
Binary and source packages can be checked.

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

cp -p config config.example
install -pm 644 %{SOURCE1} config

%build
%make_build COMPILE_PYC=1 PYTHON=%{__python3}

# (tpg) disable it for now
# [02:35] <King_InuYasha> _TPG: py.test -> pytest
# [02:36] <King_InuYasha> make check ignorable for now
# [02:36] <King_InuYasha> I have to fix this later
# [02:36] <King_InuYasha> apparently pytest changed the binary from py.test to pytest :(
%if 0
%check
make check
%endif

%install
%make_install PYTHON=%{__python3}

install -d %{buildroot}%{_datadir}/%{name}/config.d/

%files
%doc README.md config.example COPYING
%{_bindir}/*
%{_datadir}/rpmlint/
%{_mandir}/man1/rpmlint.1*
%{_mandir}/man1/rpmdiff.1*
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/config
%{_datadir}/bash-completion/completions/rpmlint
%{_datadir}/bash-completion/completions/rpmdiff

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16998 |21mr|rpmlint-rosa-policy-0.3.24-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Rpmlint ROSA policy
Name:		rpmlint-rosa-policy
Version:	0.3.24
Release:	14
License:	GPLv2+
Group:		Development/Other
Url:		http://wiki.rosalab.com/
Source0:	rosa.conf
Source1:	rosa.error.list
BuildRequires:	rpmlint
Requires:	rpmlint
BuildArch:	noarch
Provides:	rpmlint-%{_target_vendor}-policy = %{EVRD}
%rename		rpmlint-mandriva-policy

%description
Official rpmlint ROSA policy, install this if you want to produce RPMs
for ROSA.

%files
%{_datadir}/rpmlint/config.d/*

#----------------------------------------------------------------------------

%prep

%build

#check
#PYTHONPATH=%{_datadir}/rpmlint python %{SOURCE0}

%install
install -m644 %{SOURCE0} -D %{buildroot}%{_datadir}/rpmlint/config.d/rosa.conf
install -m644 %{SOURCE1} -D %{buildroot}%{_datadir}/rpmlint/config.d/rosa.error.list

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 16999 |21mr|rpm-manbo-setup-2-34
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The Manbo rpm configuration and scripts
Name:		rpm-manbo-setup
Version:	2
Release:	34
Source3:	manbo.macros
Source4:	manbo-build.macros
Source5:	fix-libtool-ltmain-from-overlinking
Source6:	force-as-needed-for-shared-lib-in-libtool
Source7:	drop-ld-no-undefined-for-shared-lib-modules-in-libtool
Source8:	fix-dlsearch-path-in-libtool-for-multilib
Source9:	fix-libtool-from-moving-options-after-libs
License:	GPL
Group:		System/Configuration/Packaging
BuildArch:	noarch

%description
The Manbo rpm configuration and scripts.

%package	build
Group:		System/Configuration/Packaging
Summary:	The Manbo rpm configuration and scripts to build rpms
Requires:	%{name} = %{version}-%{release}

%description	build
The Manbo rpm configuration and scripts dedicated to build rpms.

%install
install -d %{buildroot}/usr/lib/rpm/manbo
install %SOURCE5 %SOURCE6 %SOURCE7 %SOURCE8 %SOURCE9 %{buildroot}/usr/lib/rpm/manbo

%install_macro 10manbo %SOURCE3
%install_macro 10manbo-build %SOURCE4

%files
%{_rpmmacrodir}/*10manbo*
%dir %{_prefix}/lib/rpm/manbo

%files build
%{_rpmmacrodir}/*10manbo-build*
%{_prefix}/lib/rpm/manbo/fix-libtool-ltmain-from-overlinking
%{_prefix}/lib/rpm/manbo/force-as-needed-for-shared-lib-in-libtool
%{_prefix}/lib/rpm/manbo/drop-ld-no-undefined-for-shared-lib-modules-in-libtool
%{_prefix}/lib/rpm/manbo/fix-dlsearch-path-in-libtool-for-multilib
%{_prefix}/lib/rpm/manbo/fix-libtool-from-moving-options-after-libs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17000 |21mr|rpm-mandriva-setup-1.140-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The ROSA rpm configuration and scripts
Name:		rpm-mandriva-setup
Version:	1.140
Release:	11
Source0:	%{name}-%{version}.tar.xz
License:	GPLv2+
Group:		System/Configuration/Packaging
Url:		https://abf.rosalinux.ru/omv_software/rpm-mandriva-setup
# for "make test":
BuildRequires:	rpm-devel
BuildArch:	noarch

%description
The ROSA rpm configuration and scripts.

%package	build
Group:		System/Configuration/Packaging
Summary:	The ROSA rpm configuration and scripts to build rpms
Requires:	spec-helper
Requires:	pkgconfig
Requires:	python-pkg-resources
Requires:	perl(JSON)
Requires:	perl(YAML)
Requires:	perl(File::Basename)
Requires:	perl(File::Find)
Requires:	perl(Getopt::Long)
Requires:	perl(Pod::Usage)

%description	build
The Mandriva rpm configuration and scripts dedicated to build rpms.

%prep
%setup -q

%build
%configure \
    --build=%{_build}

%make

%install
%makeinstall_std

# spec mode for emacs
install -d %{buildroot}%{_datadir}/emacs/site-lisp/
install -m644 rpm-spec-mode.el %{buildroot}%{_datadir}/emacs/site-lisp/

install -d %{buildroot}%{_sysconfdir}/emacs/site-start.d
cat <<EOF >%{buildroot}%{_sysconfdir}/emacs/site-start.d/%{name}.el
(setq auto-mode-alist (cons '("\\\\.spec$" . rpm-spec-mode) auto-mode-alist))
(autoload 'rpm-spec-mode "rpm-spec-mode" "RPM spec mode (mandrakized)." t)
EOF

# workaround to fix build with rpm-mandriva-setup 1.96
touch debugfiles.list

%files build
%doc NEWS ChangeLog
%dir %{_prefix}/lib/rpm/mandriva
%{_prefix}/lib/rpm/mandriva/*
%{_datadir}/emacs/site-lisp/rpm-spec-mode.el
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/%{name}.el

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17001 |21mr|rpmrebuild-2.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           rpmrebuild
Version:        2.15
Release:        1
Epoch:          1
Summary:        Tool to build an RPM file from the RPM database
Group:          System/Configuration/Packaging
License:        GPLv2+
URL:            http://rpmrebuild.sourceforge.net/
Source0:        http://downloads.sourceforge.net/sourceforge/rpmrebuild/rpmrebuild-%{version}.tar.gz
Requires:       rpm-build
BuildArch:      noarch

%description
rpmrebuild allows for the building of an RPM file from an installed RPM
or from another RPM file with or without changes (batch or interactive).
It can be extended by a plugin system.

Typical usage is the easy repackaging of software after a configuration
change.

%prep
%setup -c rpmrebuild

%build
%make

%install
%makeinstall_std

%clean

%files -f rpmrebuild.files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17002 |21mr|rpm-rebuilder-0.28-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name	rpm-rebuilder
%define version	0.28
%define release 12

Name:		%{name}
Version:	%{version}
Release:	%{release}
Summary:	Tools to build/check distributions
URL:		http://www.mandrivalinux.com/
Source0:	%{name}-%{version}.tar.bz2
License:	GPL
Group:		System/Configuration/Packaging
Requires:	rpmlint
Requires:	strace
Requires:	rpm-build
Requires:	diffutils
BuildArch:	noarch

%description
The rpm-rebuilder package contains a set of tools written in bourne
shell, python and perl to rebuild/check large sets of rpm source packages.

check-distrib: checks if a set of source and binary rpms are in sync.

rpm-rebuilder: build a set of rpms from a set of srpms.

compute-build-requires: trace an rpm build command to find the BuildRequires
it needs.

compute-compile-order: from the sets of binary and sources rpms, find the order
in which the source rpms must be recompiled.

%prep
%setup -q

%build

%install
make install

sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/compute-compile-order
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/check-distrib

%files
%defattr(-,root,root)
%doc AUTHORS README README.CVS ChangeLog
%_bindir/*
%_sbindir/*
%_datadir/rpm-rebuilder

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17003 |21mr|rpm-rosa-setup-1.0-4.git9901ac.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 9901acefd3489e976ac6a8e4ff0a92bc0158afc8
%define commit_short %(echo %{commit} | head -c 6)

# Don't create backups, cp -a user/* build/* is used
%global _default_patch_flags -s -U --no-backup-if-mismatch

# For transitioning from rpm5
# Initial bootstrap of rpm4 with rpm5
%{!?_rpmconfigdir: %global _rpmconfigdir /usr/lib/rpm}
%{!?_rpmluadir: %global _rpmluadir %{_rpmconfigdir}/lua}

Summary:	Macros and scripts for rosa specific rpm behavior
Name:		rpm-rosa-setup
Version:	1.0
Release:	4.git%{commit_short}.1
License:	MIT
Group:		System/Configuration/Packaging
# Forked from https://github.com/rosaSoftware/rpm-rosa-setup
Url:		https://abf.io/soft/rpm-rosa-setup
Source0:	https://abf.io/soft/rpm-rosa-setup/archive/rpm-rosa-setup-%{commit}.tar.gz
# Forge handling macros
# (From: https://src.fedoraproject.org/rpms/redhat-rpm-config/tree):
Source8:	forge.lua
Source9:	macros.forge
Source10:	common.lua
# Perl macros
# (Pulled out from rpm 4.14.x before dropped in rpm 4.15)
Source11:	macros.perldirs
# needed for golang stuff
Source12:	macros.fedora-misc
BuildRequires:	git-core
Requires:	rpm
# Packaged was renamed from rpm-openmandriva-setup
# (tpg) do not use %%EVRD here, as it does not exist yet
Provides:	rpm-openmandriva-setup = %{version}-%{release}
Conflicts:	rpm-openmandriva-setup < 1.0
Obsoletes:	rpm-openmandriva-setup < 1.0
BuildArch:	noarch

%description
Macros and scripts for rosa specific rpm behavior.

This has been adapted for ROSA Linux systems.

%files
# We should own this directory
%dir %{_rpmconfigdir}/rosa
%{_rpmconfigdir}/rosa/macros
%{_rpmconfigdir}/rosa/rpmrc

#----------------------------------------------------------------------------

%package build
Summary:	Macros and scripts for rosa specific rpmbuild behavior
Group:		System/Configuration/Packaging
# (tpg) do not use %%EVRD here, as it does not exist yet
Requires:	%{name} = %{version}-%{release}
# Required for package builds to work
Requires:	binutils
Requires:	dwz
# Ensure this exists in the build environment (/usr/bin/gdb-add-index)
Requires:	gdb
Requires:	rpm-build
#Requires:	rpmlint
#Requires:	rpmlint-rosa-policy
Requires:	spec-helper
Provides:	rpm-openmandriva-setup-build = %{version}-%{release}
Conflicts:	rpm-openmandriva-setup-build < 1.0
Obsoletes:	rpm-openmandriva-setup-build < 1.0

%description build
Macros and scripts for rosa specific rpmbuild behavior.

This has been adapted for ROSA Linux systems.

%files build
%{_rpmluadir}/fedora/common.lua
%{_rpmluadir}/fedora/srpm/forge.lua
%{_rpmmacrodir}/macros.dwz
%{_rpmmacrodir}/macros.forge
%{_rpmmacrodir}/macros.kernel
%{_rpmmacrodir}/macros.perl
%{_rpmmacrodir}/macros.perldirs
%{_rpmmacrodir}/macros.python
%{_rpmmacrodir}/macros.selinux
%{_rpmmacrodir}/macros.fedora-misc
%{_rpmconfigdir}/rosa/kmod-deps.sh
%{_fileattrsdir}/kmod.attr

#----------------------------------------------------------------------------

%prep
%autosetup -S git_am -n rpm-rosa-setup-%{commit}

%build

%install
mkdir -p %{buildroot}%{_rpmconfigdir}
cp -a user/* build/* %{buildroot}%{_rpmconfigdir}

%install_macro forge %{SOURCE9}
%install_macro fedora-misc %{SOURCE12}
mkdir -p %{buildroot}%{_rpmluadir}/fedora/srpm
install -D %{SOURCE10} %{buildroot}%{_rpmluadir}/fedora
install -D %{SOURCE8} %{buildroot}%{_rpmluadir}/fedora/srpm
%install_macro perldirs %{SOURCE11}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17004 |21mr|rpmsort-2.06-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname grub2-rpm-sort
Summary:	rpm-sort, built with no grub2
Name:		rpmsort
Version:	2.06
Release:	12
License:	GPLv2+
Url:		http://www.gnu.org/software/grub/
Exclusivearch:	%{e2k} %{riscv}
Group:		System/Base
# just pick it from grub2 package
# and make diff with such version
# to change headers
Source0:	grub-rpm-sort.c
BuildRequires:  pkgconfig(rpm)
Requires(post):	coreutils
Provides:	rpm-sort = %{EVRD}
Provides:	grub2-rpm-sort = %{EVRD}

%description
grub2-rpm-sort built without grub2

%files
%{_bindir}/*
%{_sbindir}/*

#----------------------------------------------------------------------------
%prep

%build
install -m0644 %{SOURCE0} .
%{__cc} %{optflags} -Wall -lrpm -lrpmio grub-rpm-sort.c -o grub2-rpm-sort

%install
mkdir -p  %{buildroot}%{_bindir}
mkdir -p  %{buildroot}%{_sbindir}
install -m 755 %{oname} %{buildroot}%{_sbindir}
ln -s	%{_sbindir}/%{oname} %{buildroot}%{_bindir}/rpm-sort

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17005 |21mr|rpmtools-6.1-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Various RPM command-line tools
Name:		rpmtools
Version:	6.1
Release:	27
Source0:	%{name}-%{version}.tar.xz
# (tpg) from Mageia
# http://svnweb.mageia.org/soft?view=revision&revision=6438
Patch0:		rpmtools-6.1-genhdlist2-merge-option.patch
Patch1:         rpmtools-6.1-use-external-gzip.patch
License:	GPLv2+
Group:		System/Configuration/Packaging
URL:		http://svn.mandriva.com/cgi-bin/viewvc.cgi/soft/rpm/rpmtools/
BuildRequires:	perl-devel
BuildRequires:	perl-MDV-Packdrakeng
BuildRequires:	perl-MDV-Distribconf
BuildArch:	noarch
Requires:	perl-MDV-Distribconf > 3.00
Requires:	xz
Requires:	genhdlist2
Requires:	perl(File::Find)
Requires:	perl(File::Path)
Requires:	perl(File::Temp)
Requires:	perl(Getopt::Long)
Requires:	perl(MDV::Distribconf::Build)
Requires:	perl(Pod::Usage)
Requires:	perl(URPM)
Requires:	perl(URPM::Build)
Conflicts:	rpmtools-compat <= 2.0
Conflicts:	rpmtools-devel <= 2.0
Conflicts:	packdrake < 5.0.26

%description
Various tools needed by urpmi and drakxtools for handling rpm files.

%package -n	packdrake
Group:		%{group}
Summary:	A simple Archive Extractor/Builder
Conflicts:	rpmtools <= 5.0.25
Provides:	perl(packdrake)

%description -n	packdrake
Packdrake is a simple indexed archive builder and extractor using
standard compression methods.

%package -n	genhdlist2
Group:		%{group}
Summary:	Tool to generate urpmi metadata (media_info/*)
Conflicts:	rpmtools <= 5.4

%description -n	genhdlist2
genhdlist2 generates hdlist.cz, synthesis.hdlist.cz and *.xml.lzma files used
by urpmi

%prep
%setup -q
%apply_patches

%build
perl Makefile.PL INSTALLDIRS=vendor
%make

%check
%make test

%install
%makeinstall_std

%files
%{_bindir}/dumpdistribconf
%{_bindir}/gendistrib
%{_bindir}/genhdlist-old
%{_mandir}/man1/dumpdistribconf*
%{_mandir}/man1/gendistrib*
%{_mandir}/man1/genhdlist-old.*

%files -n packdrake
%{_bindir}/packdrake
%{perl_vendorlib}/packdrake.pm
%{_mandir}/man1/packdrake*

%files -n genhdlist2
%{_bindir}/genhdlist2
%{_mandir}/man1/genhdlist2*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17006 |21mr|rp-pppoe-3.14-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pppver 2.4.9

Summary:	ADSL/PPPoE userspace driver
Name:		rp-pppoe
Version:	3.14
Release:	3
License:	GPLv2+
Group:		System/Servers
Url:		https://dianne.skoll.ca/projects/rp-pppoe/
Source0:	https://dianne.skoll.ca/projects/rp-pppoe/download/%{name}-%{version}.tar.gz
Patch0:		rp-pppoe-3.13-linux-headers.patch
Patch1:		rp-pppoe-3.12-pluginpath.patch
BuildRequires:	autoconf2.5
BuildRequires:	ppp-devel = %{pppver}
Requires:	ppp = %{pppver}
Requires:	ppp-pppoe
Provides:	%{name}-plugin = %{EVRD}
Obsoletes:	%{name}-plugin < 3.12

%description
PPPoE (Point-to-Point Protocol over Ethernet) is a protocol used by
many ADSL Internet Service Providers. Roaring Penguin has a free
client for Linux systems to connect to PPPoE service providers.

The client is a user-mode program and does not require any kernel
modifications. It is fully compliant with RFC 2516, the official PPPoE
specification.

It has been tested with many ISPs, such as the Canadian Sympatico HSE (High
Speed Edition) service.

%files
%doc doc/* README SERVPOET
%config(noreplace) %{_sysconfdir}/ppp/pppoe.conf
%config(noreplace) %{_sysconfdir}/ppp/pppoe-server-options
%config(noreplace) %{_sysconfdir}/ppp/firewall-masq
%config(noreplace) %{_sysconfdir}/ppp/firewall-standalone
%{_sbindir}/pppoe
%{_sbindir}/pppoe-connect
%{_sbindir}/pppoe-relay
%{_sbindir}/pppoe-server
%{_sbindir}/pppoe-setup
%{_sbindir}/pppoe-sniff
%{_sbindir}/pppoe-start
%{_sbindir}/pppoe-status
%{_sbindir}/pppoe-stop
%{_sbindir}/adsl-connect
%{_sbindir}/adsl-setup
%{_sbindir}/adsl-start
%{_sbindir}/adsl-status
%{_sbindir}/adsl-stop
%{_mandir}/man[58]/*
%config(noreplace)%{_initrddir}/pppoe

#----------------------------------------------------------------------------

%package gui
Summary:	GUI front-end for rp-pppoe
Group:		System/Servers
Requires:	rp-pppoe >= 3.6
Requires:	tk

%description gui
This package contains the graphical frontend (tk-based) for rp-pppoe.

Install this if you wish to have a graphical frontend for pppoe.

%files gui
%{_bindir}/tkpppoe
%{_sbindir}/pppoe-wrapper
%{_mandir}/man1/*
%{_datadir}/applications/*
%dir %{_datadir}/tkpppoe
%dir %{_sysconfdir}/ppp/rp-pppoe-gui
%{_datadir}/tkpppoe/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%serverbuild
cd src
./configure \
	--docdir=%{_docdir}/%{name} \
	--enable-plugin=%{_includedir} \
	--docdir=%{_docdir}/%{name}

%make

%install
pushd src
%makeinstall_std
popd

pushd gui
%makeinstall_std
popd

# This is necessary for the gui to work, but it shouldn't be done here !
mkdir -p %{buildroot}%{_sysconfdir}/ppp/rp-pppoe-gui

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rp-pppoe-gui.desktop <<EOF
[Desktop Entry]
Name=TkPPPoE
Comment=Frontend for rp-pppoe
Comment[ru]=Графический интерфейс для rp-pppoe
Exec=%{_bindir}/tkpppoe
Icon=remote_access_section
Terminal=false
Type=Application
Categories=X-MandrivaLinux-Internet-RemoteAccess;Network;RemoteAccess;Dialup;
EOF

perl -pi -e "s/restart/restart\|reload/g;" %{buildroot}%{_initrddir}/pppoe
rm -rf %{buildroot}/usr/share/doc

mkdir -p %{buildroot}%{_libdir}/pppd/%{pppver}
rm -f %{buildroot}%{_sysconfdir}/ppp/plugins/README
# Prefer plugin from ppp-pppoe package
rm -f %{buildroot}%{_sysconfdir}/ppp/plugins/rp-pppoe.so


# backward compatibility links
for i in connect start stop setup status; do
	ln -sf %{_sbindir}/pppoe-$i %{buildroot}%{_sbindir}/adsl-$i
	ln -sf pppoe-$i.8 %{buildroot}%{_mandir}/man8/adsl-$i.8
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17007 |21mr|rrdtool-1.7.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname rrd %{major}
%define devname %mklibname rrdtool -d

%define tcl_sitearch %{_libdir}/tcl?.?

Summary:	Round Robin Database Tool to store and display time-series data
Name:		rrdtool
Version:	1.7.2
Release:	3
License:	GPLv2+
Group:		Networking/Other
Url:		http://oss.oetiker.ch/rrdtool/
Source0:	http://oss.oetiker.ch/rrdtool/pub/%{name}-%{version}.tar.gz
Source1:	rrdcached.service
Source2:	rrdcached.sysconfig
Source3:	rrdcached.tmpfiles
Source4:	rrdcached.socket
Source100:	rrdtool.rpmlintrc
Patch0:		rrdtool-1.2.23-fix-examples.patch
Patch1:		rrdtool-1.4.1-avoid-version.diff
# Install tcl bindings to correct location as per policy (the upstream
# conditional that should nearly do this doesn't work) - AdamW 2008/12
#Patch2:		rrdtool-1.4.8-tcl_location.diff
Patch3:		rrdtool-1.5.5-socket_dir.diff
BuildRequires:	chrpath
BuildRequires:	gettext
BuildRequires:	groff
BuildRequires:	intltool >= 0.35.0
BuildRequires:	libtool
BuildRequires:	gd-devel
BuildRequires:	gettext-devel
BuildRequires:	perl-devel
BuildRequires:	perl-Pod-Html
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(dbi)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	python3-setuptools
Requires:	fonts-ttf-dejavu

%description
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average). It stores the data in a very compact way that will not
expand over time, and it presents useful graphs by processing the data to
enforce a certain data density. It can be used either via simple wrapper
scripts (from shell or Perl) or via frontends that poll network devices and
put a friendly user interface on it.

%files -f %{name}.lang
%doc CONTRIBUTORS LICENSE COPYRIGHT NEWS THREADS TODO
%doc installed_docs/txt installed_docs/html
%{_bindir}/rrdcgi
%{_bindir}/rrdtool
%{_bindir}/rrdcreate
%{_bindir}/rrdinfo
%{_bindir}/rrdupdate
%exclude %{_mandir}/man1/rrdcached.1*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n rrdcached
Summary:	Data caching daemon for RRDtool
Group:		System/Servers
Requires:	%{name} >= %{EVRD}
Requires(post,preun,pre,postun):	rpm-helper

%description -n rrdcached
rrdcached is a daemon that receives updates to existing RRD files, accumulates
them and, if enough have been received or a defined time has passed, writes the
updates to the RRD file. The daemon was written with big setups in mind which
usually runs into I/O related problems. This daemon was written to alleviate
these problems.

%files -n rrdcached
%config(noreplace) %{_sysconfdir}/sysconfig/rrdcached
%{_prefix}/lib/tmpfiles.d/rrdcached.conf
%{_unitdir}/rrdcached.service
%{_unitdir}/rrdcached.socket
%{_bindir}/rrdcached
%attr(0755,rrdcached,rrdcached) %dir /var/lib/rrdcached
%{_mandir}/man1/rrdcached*

%pre -n rrdcached
%_pre_useradd rrdcached /var/lib/rrdcached /sbin/nologin

%post -n rrdcached
%_post_service rrdcached

%preun -n rrdcached
%_preun_service rrdcached

%postun -n rrdcached
%_postun_userdel rrdcached

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	RRDTool - round robin database shared libraries
Group:		System/Libraries
Obsoletes:	%{_lib}rrdtool4 < 1.4.8-7

%description -n %{libname}
This package contains a shared library for %{name}.

%files -n %{libname}
%{_libdir}/librrd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and headers for %{libname}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}rrdtool-devel < 1.4.8-7
Conflicts:	%{_lib}rrdtool4 < 1.4.8-7

%description -n %{devname}
RRD is the Acronym for Round Robin Database. RRD is a system to store and
display time-series data (i.e. network bandwidth, machine-room temperature,
server load average).

This package provides development libraries and headers for %{libname}.

%files -n %{devname}
%exclude %{_libdir}/tclrrd%{version}.so
%{_libdir}/*.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/librrd.pc
%{_mandir}/man3/librrd.3*

#----------------------------------------------------------------------------

%package -n perl-%{name}
Summary:	RRD Tool Perl interface
Group:		Development/Perl
Requires:	%{name} >= %{EVRD}

%description -n perl-%{name}
The RRD Tools Perl modules.

%files -n perl-%{name}
%doc installed_docs/pod installed_docs/examples
%{perl_vendorarch}/*.pm
%{perl_vendorlib}/*.pm
%dir %{perl_vendorarch}/auto/RRDs
%{perl_vendorarch}/auto/RRDs/RRDs.so
%{_mandir}/man3*/RRDp.3*
%{_mandir}/man3*/RRDs.3*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	RRD Tool Python interface
Group:		Development/Python
Requires:	%{name} >= %{EVRD}
%rename python-%{name}

%description -n python3-%{name}
The RRD Tools Python modules.

%files -n python3-%{name}
%doc bindings/python/COPYING
%{py3_platsitedir}/*

#----------------------------------------------------------------------------

%package -n tcl-%{name}
Summary:	RRD Tool TCL interface
Group:		Development/Other
Requires:	%{name} >= %{EVRD}
Requires:	tcl

%description -n tcl-%{name}
The RRD Tools TCL modules.

%files -n tcl-%{name}
%doc bindings/tcl/README
%{_libdir}/tclrrd%{version}.so
%{_libdir}/rrdtool/*.tcl

#----------------------------------------------------------------------------

%package -n lua-%{name}
Summary:	RRD Tool LUA interface
Group:		Development/Other
Requires:	%{name} >= %{EVRD}
Requires:	lua

%description -n lua-%{name}
The RRD Tools LUA module.

%files -n lua-%{name}
%doc bindings/lua/README
%{_libdir}/lua/*/rrd.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
#patch2 -p1
%patch3 -p1

cp %{SOURCE1} .
cp %{SOURCE2} .

# annoyance be gone
perl -pi -e "s|^sleep .*|usleep 10000|g" configure.*

# friggin gettext bump
gettext_version=`gettext --version | head -1 | sed 's/\.1$//' | awk '{ print $4}'`
perl -pi -e "s|^AM_GNU_GETTEXT_VERSION.*|AM_GNU_GETTEXT_VERSION\($gettext_version\)|g" configure.ac
mkdir -p m4
autoreconf -fi

%build
%configure PYTHON=%{__python3} \
	--disable-static \
	--with-perl-options="INSTALLDIRS=vendor" \
	--enable-tcl-site \
        --with-tcllib=%{_libdir} \
	--enable-python \
	--disable-ruby

make

%install
%makeinstall_std

# equivalent of "make site-perl-install" except for the PREFIX
# "make site-perl-install" is not done by "make install"
%makeinstall_std -C bindings/perl-piped install_vendor
%makeinstall_std -C bindings/perl-shared install_vendor

install -d %{buildroot}%{_sbindir}

# now create include and files
install -d %{buildroot}%{_includedir}
install -m644 src/rrd*.h %{buildroot}%{_includedir}/

# moving the docs in the right place (another approach)
rm -rf installed_docs
mkdir -p installed_docs/{html,pod,txt,examples/rrdcached}
cp doc/*.txt installed_docs/txt/
cp doc/*.pod installed_docs/pod/
cp doc/*.html installed_docs/html/
cp examples/*.{cgi,pl} installed_docs/examples/
cp examples/rrdcached/*.{pm,pl} installed_docs/examples/rrdcached/
# fix attribs
find installed_docs -type f | xargs chmod 644

#removing things installed in the wrong place
rm -rf %{buildroot}%{_prefix}/lib/perl/*.pm
rm -rf %{buildroot}%{_prefix}/lib/perl/auto/RRDs/RRDs*
rm -rf %{buildroot}%{_prefix}/lib/perl5/site_perl
rm -rf %{buildroot}%{_prefix}/shared
rm -rf %{buildroot}%{_datadir}/doc/%{name}*

# icky ntmake.pl
rm -f %{buildroot}%{perl_vendorarch}/ntmake.pl

# I've tried and tried and tried to get rid of the rpath.
# It only appears after you do a make install, so I have
# no idea what is doing it but this gets rid of it...
#chrpath -d %{buildroot}%{_bindir}/*
%if %rpm5
# the problem has now moved to the perl stuff...
find %{buildroot}%{_prefix}/lib/perl* -name "*.so" | xargs chrpath -d 

# and the tcl stuff
chrpath -d %{buildroot}%{_libdir}/tclrrd%{version}.so
%endif

# remove .in/.am files
find %{buildroot} -name "*.in" | xargs rm -f
find %{buildroot} -name "*.am" | xargs rm -f

# install rrdcached files
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_initrddir}
install -d %{buildroot}/var/lib/rrdcached
install -d %{buildroot}/var/run/rrdcached

install -D -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/rrdcached.service
install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/rrdcached
install -D -m 644 %{SOURCE3} %{buildroot}%{_prefix}/lib/tmpfiles.d/rrdcached.conf
install -D -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/rrdcached.socket

# cleanup
rm -rf %{buildroot}%{_datadir}/rrdtool

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17008 |21mr|rstart-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A sample implementation of a Remote Start rsh helper
Name:		rstart
Version:	1.0.6
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)

%description
Rstart is a simple implementation of a Remote Start client as defined in "A
Flexible Remote Execution Protocol Based on rsh". It uses rsh as its
underlying remote execution mechanism.

%files
%doc ChangeLog README.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}d
%{_libdir}/X11/%{name}
%{_mandir}/man1/%{name}.*
%{_mandir}/man1/%{name}d.*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
libtoolize --copy --force
autoreconf -fi
%configure	\
	--x-includes=%{_includedir}	\
	--x-libraries=%{_libdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17009 |21mr|rsync-3.2.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A program for synchronizing files over a network
Name:		rsync
Version:	3.2.7
Release:	3
License:	GPLv3+
Group:		Networking/File transfer
Url:		http://rsync.samba.org/
Source0:	http://rsync.samba.org/ftp/rsync/%{name}-%{version}.tar.gz
Source1:	http://rsync.samba.org/ftp/rsync/rsync.html
Source2:	http://rsync.samba.org/ftp/rsync/rsyncd.conf.html
Source5:	http://rsync.samba.org/ftp/rsync/%{name}-patches-%{version}.tar.gz
Source12:	rsyncd.socket
Source13:	rsyncd.service
Source14:	rsyncd.conf
Source15:	rsyncd.sysconfig
Source16:	rsyncd@.service
# pull request https://github.com/WayneD/rsync/pull/536
Patch0:		rsync-svace-fixes.patch
BuildRequires:	acl
BuildRequires:	acl-devel
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	xxhash-devel

%description
Rsync uses a quick and reliable algorithm to very quickly bring remote and
host files into sync. Rsync is fast because it just sends the differences in
the files over the network (instead of sending the complete files). Rsync is
often used as a very powerful mirroring process or just as a more capable
replacement for the rcp command. A technical report which describes the rsync
algorithm is included in this package.
Install rsync if you need a powerful mirroring program.

%files
%doc tech_report.tex *html
%doc support/rrsync
%config(noreplace) %{_sysconfdir}/rsyncd.conf
%config(noreplace) %{_sysconfdir}/sysconfig/rsyncd
%{_bindir}/%{name}
%{_bindir}/rsync-ssl
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man5/rsyncd.conf.5*
%{_unitdir}/rsyncd.socket
%{_unitdir}/rsyncd.service
%{_unitdir}/rsyncd@.service

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version} -b5
%autopatch -p1
patch -p1 -b -z .dir-del~ -i patches/backup-dir-dels.diff

%build
%serverbuild
rm -f config.h

%configure \
    --enable-acl-support \
    --with-nobody-group=nogroup \
    --without-included-popt \
    --without-included-zlib

%make_build proto
%make_build

%install
%make_install

install -m644 %{SOURCE1} %{SOURCE2} .

install -m644 %{SOURCE12} -D %{buildroot}%{_unitdir}/rsyncd.socket
install -m644 %{SOURCE13} -D %{buildroot}%{_unitdir}/rsyncd.service
install -m644 %{SOURCE14} -D %{buildroot}%{_sysconfdir}/rsyncd.conf
install -m644 %{SOURCE15} -D %{buildroot}%{_sysconfdir}/sysconfig/rsyncd
install -m644 %{SOURCE16} -D %{buildroot}%{_unitdir}/rsyncd@.service


%check
%make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17010 |21mr|rsyntaxtextarea-3.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upname RSyntaxTextArea

Name:           rsyntaxtextarea
Version:        3.1.3
Release:        1
Summary:        A syntax highlighting, code folding text editor for Java Swing applications
Group:          Development/Java

License:        BSD
URL:            https://github.com/bobbylight/%{upname}
Source0:        https://github.com/bobbylight/%{upname}/archive/%{version}.tar.gz#/%{name}-%{version}.tar.gz
Source1:        pom.xml

BuildRequires:  java-devel
BuildRequires:  maven-local

Requires:       java-headless

# Apply workaround until gradle doesn't exists in repos
Provides:       mvn(com.fifesoft:rsyntaxtextarea)
Provides:       osgi(com.fifesoft.rsyntaxtextarea)

BuildArch:      noarch

%description
%{upname} is a customizable, syntax highlighting text component for Java
Swing applications. Out of the box, it supports syntax highlighting for 40+
programming languages, code folding, search and replace, and has add-on
libraries for code completion and spell checking. Syntax highlighting for
additional languages can be added via tools such as JFlex.

%package        javadoc
Summary:        Javadoc for %{upname}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%autosetup -n %{upname}-%{version} -p1

# Drop included jars
find . -name "*.jar" -delete

pushd %{upname}
for file in src/main/dist/%{upname}.License.txt src/main/dist/readme.txt; do
    sed "s|\r||g" $file > $file.new && \
    touch -r $file $file.new && \
    mv $file.new $file
done
popd


%build
d=`mktemp -d`
f=`find %{upname}/src/main/java -type f | grep \.java$`
javac -d $d $f
cp -rv %{upname}/src/main/resources/* $d
l=`pwd`
pushd $d
jar -cf $l/%{name}.jar *
popd
%mvn_artifact %{SOURCE1} %{name}.jar

%install
%mvn_install

%files -f .mfiles
%license %{upname}/src/main/dist/%{upname}.License.txt
%doc %{upname}/src/main/dist/readme.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17011 |21mr|rsyslog-8.2204.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         journalcfgdir    %{_sysconfdir}/systemd
%bcond_without kafka

Summary:	Enhanced system logging and kernel message trapping daemons
Name:		rsyslog
Version:	8.2204.1
Release:	3
License:	GPLv3
Group:		System/Kernel and hardware
URL:		http://www.rsyslog.com/
Source0:	http://www.rsyslog.com/files/download/%{name}/%{name}-%{version}.tar.gz
Source1:	rsyslog.service
Source2:	rsyslog.sysconfig
Source3:	rsyslog.conf
Source4:	00_common.conf
Source5:	01_mysql.conf
Source6:	02_pgsql.conf
Source7:	03_gssapi.conf
Source8:	04_relp.conf
Source9:	05_dbi.conf
Source10:	06_snmp.conf
Source11:	sysklogd.conf
Source12:	07_rsyslog.log
Source13:	08_gnutls.conf
Source14:	09_journald.conf

# (eatdirt) bash script to switch on and off ForwardToSyslog in systemd journal
#configuration file
Source15:	rsyslog_switchfwd

BuildRequires:	libtool
BuildRequires:	java-rpmbuild
BuildRequires:	python-docutils
BuildRequires:	mysql-devel
BuildRequires:	net-snmp-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(dbi)
BuildRequires:	pkgconfig(gnutls)
#BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libestr)
BuildRequires:	pkgconfig(libfastjson)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(liblogging-stdlog)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(relp)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
%if %{with kafka}
BuildRequires:	pkgconfig(rdkafka)
%endif
Requires:	logrotate

Requires(post):	coreutils
Requires(post,preun):	rpm-helper
Requires(post,preun):	systemd
Provides:	syslog-daemon
Conflicts:	syslog-ng
Obsoletes:	rsyslog-docs < 8.2.2

%description
Rsyslog is an enhanced multi-threaded syslogd supporting, among others, MySQL,
PostgreSQL, syslog/tcp, RFC 3195, permitted sender lists, filtering on any
message part, and fine grain output format control. It is quite compatible to
stock sysklogd and can be used as a drop-in replacement. Its advanced features
make it suitable for enterprise-class, encryption protected syslog relay chains
while  at the same time being very easy to setup for the novice user.

 o lmnet.so     - Implementation of network related stuff.
 o lmregexp.so  - Implementation of regexp related stuff.
 o lmtcpclt.so  - This is the implementation of TCP-based syslog clients.
 o lmtcpsrv.so  - Common code for plain TCP based servers.
 o imtcp.so     - This is the implementation of the TCP input module.
 o imudp.so     - This is the implementation of the UDP input module.
 o imuxsock.so  - This is the implementation of the Unix sockets input module.
 o imklog.so    - The kernel log input module for Linux.
 o immark.so    - This is the implementation of the build-in mark message input
                  module.
 o imfile.so    - This is the input module for reading text file data.
 o imjournal.so - An input module to import systemd journal logs

%files
%doc AUTHORS ChangeLog README
%config(noreplace) %{_sysconfdir}/rsyslog.conf
%config(noreplace) %{_sysconfdir}/syslog.conf
%config(noreplace) %{_sysconfdir}/sysconfig/rsyslog
%config(noreplace) %{_sysconfdir}/logrotate.d/rsyslog
%dir %{_sysconfdir}/rsyslog.d
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_common.conf
%{_unitdir}/rsyslog.service
/sbin/rsyslogd
%{_sbindir}/rsyslog_switchfwd
%dir %{_libdir}/rsyslog
%{_libdir}/rsyslog/fmhash.so
%{_libdir}/rsyslog/fmhttp.so
%{_libdir}/rsyslog/imfile.so
%{_libdir}/rsyslog/imklog.so
%{_libdir}/rsyslog/immark.so
%{_libdir}/rsyslog/imtcp.so
%{_libdir}/rsyslog/imudp.so
%{_libdir}/rsyslog/imuxsock.so
%{_libdir}/rsyslog/lmnet.so
%{_libdir}/rsyslog/lmnetstrms.so
%{_libdir}/rsyslog/lmnsd_ptcp.so
%{_libdir}/rsyslog/lmregexp.so
%{_libdir}/rsyslog/lmtcpclt.so
%{_libdir}/rsyslog/lmzlibw.so
%{_libdir}/rsyslog/lmtcpsrv.so
%{_libdir}/rsyslog/mmexternal.so
%{_libdir}/rsyslog/omtesting.so
%{_libdir}/rsyslog/ommail.so
%{_mandir}/*/*

%post
# (eatdirt)
# switch ForwardToSyslog=yes in /etc/systemd/journald.conf + backup
%{_sbindir}/rsyslog_switchfwd %{journalcfgdir} on
# restart systemd-journal
/bin/systemctl try-restart systemd-journald || :

%_post_service rsyslog
# (cg) Handle a quirk of syslog service installations
if [ -f %{_sysconfdir}/systemd/system/multi-user.target.wants/%{name}.service -a ! -f %{_sysconfdir}/systemd/system/syslog.service ]; then
  cp -a %{_sysconfdir}/systemd/system/multi-user.target.wants/%{name}.service %{_sysconfdir}/systemd/system/syslog.service
fi

for n in /var/log/{messages,secure,maillog,spooler}; do
    [ -f $n ] && continue
    umask 066 && touch $n
done

%preun
%_preun_service rsyslog

#(eatdirt)
#restore the previously saved /etc/systemd/journald.conf file
if [ "$1" -eq "0" ]; then
  %{_sbindir}/rsyslog_switchfwd %{journalcfgdir} off

# restart systemd-journal
  /bin/systemctl try-restart systemd-journald || :
fi

%postun
if [ "$1" -ge "1" ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------

%package mysql
Summary:	MySQL support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description mysql
The rsyslog-mysql package contains a dynamic shared object that will add
MySQL database support to rsyslog.

 o ommysql.so - This is the implementation of the build-in output module for
                MySQL.

%files mysql
%doc plugins/ommysql/createDB.sql
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_mysql.conf
%{_libdir}/rsyslog/ommysql.so

%post mysql
/bin/systemctl try-restart rsyslog.service || :

%preun mysql
if [ "$1" = 0 ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------

%package pgsql
Summary:	PostgreSQL support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description pgsql
The rsyslog-pgsql package contains a dynamic shared object that will add
PostgreSQL database support to rsyslog.

 o ompgsql.so - This is the implementation of the build-in output module for
                PgSQL.

%files pgsql
%doc plugins/ompgsql/createDB.sql
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_pgsql.conf
%{_libdir}/rsyslog/ompgsql.so

%post pgsql
    /bin/systemctl try-restart rsyslog.service || :

%preun pgsql
if [ "$1" = 0 ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------

%package gssapi
Summary:	GSS-API support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description gssapi
The rsyslog-gssapi package contains dynamic shared objects that will add
GSS-API support to rsyslog.

 o lmgssutil.so - This is a miscellaneous helper class for gss-api features.
 o imgssapi.so  - This is the implementation of the GSSAPI input module.
 o omgssapi.so  - This is the implementation of the build-in forwarding output
                  module.

%files gssapi
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_gssapi.conf
%{_libdir}/rsyslog/omgssapi.so
%{_libdir}/rsyslog/imgssapi.so
%{_libdir}/rsyslog/lmgssutil.so

%post gssapi
/bin/systemctl try-restart rsyslog.service || :

%preun gssapi
if [ "$1" = 0 ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------

%package relp
Summary:	RELP support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description relp
The rsyslog-relp package contains a dynamic shared object that will add
RELP support to rsyslog.

 o imrelp.so - This is the implementation of the RELP input module.
 o omrelp.so - This is the implementation of the RELP output module.

%files relp
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_relp.conf
%{_libdir}/rsyslog/imrelp.so
%{_libdir}/rsyslog/omrelp.so

%post relp
/bin/systemctl try-restart rsyslog.service || :

%preun relp
if [ "$1" = 0 ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------

%package dbi
Summary:	Dbi support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description dbi
The rsyslog-dbi package contains a dynamic shared object that will add
dbi driver support to rsyslog.

 o omlibdbi.so - This is the implementation of the dbi output module.

%files dbi
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_dbi.conf
%{_libdir}/rsyslog/omlibdbi.so

%post dbi
/bin/systemctl try-restart rsyslog.service || :

%preun dbi
if [ "$1" = 0 ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------

%package snmp
Summary:	SNMP support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description snmp
The rsyslog-snmp package contains a dynamic shared object that will add
SNMP support to rsyslog.

 o omsnmp.so - This module sends an snmp trap.

%files snmp
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_snmp.conf
%{_libdir}/rsyslog/omsnmp.so

%post snmp
/bin/systemctl try-restart rsyslog.service || :

%preun snmp
if [ "$1" = 0 ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------

%package gnutls
Summary:	GnuTLS support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description gnutls
The rsyslog-gnutls package contains a dynamic shared object that will add
GnuTLS support to rsyslog.

 o lmnsd_gtls.so - This is the implementation of the GnuTLS module.

%files gnutls
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_gnutls.conf
%config(noreplace) %{_sysconfdir}/pki/tls/certs/rsyslog-ca.crt
%config(noreplace) %{_sysconfdir}/pki/tls/certs/rsyslog.crt
%config(noreplace) %{_sysconfdir}/pki/tls/private/rsyslog.key
%{_libdir}/rsyslog/lmnsd_gtls.so

%post gnutls
/bin/systemctl try-restart rsyslog.service || :

%preun gnutls
if [ "$1" = 0 ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------

%package crypto
Summary:	Encryption support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description crypto
This package contains a module providing log file encryption and a
command line tool to process encrypted logs.

%files crypto
%{_bindir}/rscryutil
%{_libdir}/rsyslog/lmcry_gcry.so

#----------------------------------------------------------------------------

%package elasticsearch
Summary:	ElasticSearch output module for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description elasticsearch
This module provides the capability for rsyslog to feed logs directly into
Elasticsearch.

%files elasticsearch
%{_libdir}/rsyslog/omelasticsearch.so

#----------------------------------------------------------------------------

%package journald
Summary:	Systemd journal support for rsyslog
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description journald
Provides the ability to import structured log messages from systemd
journal to rsyslog (and conversely). Note that this module reads the
journal database, what is considered a relativly performance-intense
operation. As such, the performance of a configuration utilizing this
module may be notably slower. Some versions of systemd journal have
problems with database corruption, which leads to the journal to
return the same data endlessly in a thight loop. It is strongly
recommended to use this plugin only if there is hard need to do so.

%files journald
%config(noreplace) %{_sysconfdir}/rsyslog.d/*_journald.conf
%{_libdir}/rsyslog/omjournal.so
%{_libdir}/rsyslog/imjournal.so

%post journald
/bin/systemctl try-restart rsyslog.service || :

%preun journald
if [ "$1" = 0 ]; then
    /bin/systemctl try-restart rsyslog.service || :
fi

#----------------------------------------------------------------------------
%if %{with kafka}
%package kafka
Summary: Provides the omkafka module
Requires: %{name} = %EVRD

%description kafka
The rsyslog-kafka package provides module for Apache Kafka output

%files kafka
%{_libdir}/rsyslog/imkafka.so
%{_libdir}/rsyslog/omkafka.so

%endif

#----------------------------------------------------------------------------


%prep
%setup -q
%apply_patches

mkdir -p ROSA
cp %{SOURCE4} ROSA/00_common.conf
cp %{SOURCE5} ROSA/01_mysql.conf
cp %{SOURCE6} ROSA/02_pgsql.conf
cp %{SOURCE7} ROSA/03_gssapi.conf
cp %{SOURCE8} ROSA/04_relp.conf
cp %{SOURCE9} ROSA/05_dbi.conf
cp %{SOURCE10} ROSA/06_snmp.conf
cp %{SOURCE13} ROSA/08_gnutls.conf
cp %{SOURCE14} ROSA/09_journald.conf

%build
%serverbuild_hardened

%configure \
	--with-systemdsystemunitdir=%{_unitdir} \
%if %{with kafka}
	--enable-imkafka \
        --enable-omkafka \
%endif
	--disable-static \
	--sbindir=/sbin \
	--enable-largefile \
	--enable-regexp \
	--enable-zlib \
	--enable-gssapi-krb5 \
	--enable-pthreads \
	--enable-klog \
	--enable-inet \
	--enable-mysql \
	--enable-pgsql \
	--enable-libdbi \
	--enable-snmp \
	--enable-rsyslogd \
	--enable-mail \
	--enable-relp \
	--enable-imfile \
	--enable-imtemplate \
	--enable-gnutls \
	--enable-elasticsearch \
	--enable-usertools \
	--enable-libgcrypt \
	--enable-imjournal \
	--enable-omjournal
%make

%install
%make_install

install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
install -d -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
install -d -m 755 %{buildroot}%{_sysconfdir}/rsyslog.d
install -d -m 755 %{buildroot}%{_sysconfdir}/pki
install -d -m 755 %{buildroot}%{_sysconfdir}/pki/tls
install -d -m 755 %{buildroot}%{_sysconfdir}/pki/tls/certs
install -d -m 755 %{buildroot}%{_sysconfdir}/pki/tls/private

mkdir -p %{buildroot}%{_unitdir}

install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/rsyslog.service
install -p -m 644 %{SOURCE2} %{buildroot}/%{_sysconfdir}/sysconfig/rsyslog
install -p -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/rsyslog.conf
install -p -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/syslog.conf
install -p -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/logrotate.d/rsyslog
install -p -m 644 ROSA/*_*.conf %{buildroot}%{_sysconfdir}/rsyslog.d/

install -p -m 644 contrib/gnutls/ca.pem \
	%{buildroot}%{_sysconfdir}/pki/tls/certs/rsyslog-ca.crt
install -p -m 644 contrib/gnutls/cert.pem \
	%{buildroot}%{_sysconfdir}/pki/tls/certs/rsyslog.crt
install -p -m 600 contrib/gnutls/key.pem \
	%{buildroot}%{_sysconfdir}/pki/tls/private/rsyslog.key
# (eatdirt)
install -D -p -m 755 %{SOURCE15} %{buildroot}%{_sbindir}/rsyslog_switchfwd

# cleanup
rm -f %{buildroot}%{_libdir}/rsyslog/imtemplate.so


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17012 |21mr|rtk_btusb-0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# https://github.com/armbian/firmware/tree/master/rtl_bt
%define fw_commit adc810868e29a132977cc5ab89adf153e3f0b318

%define kname rtk_btusb

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux kernel driver for many Realtek USB Bluetooth devices
Name:		rtk_btusb
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	4
# This is a typical piece of crap from Realtek without clear upstream
# usb is buildable with kernel 5.15, uart is not (I hope nobody will need uart)
Url:		https://www.xmpow.com/pages/download
Source0:	https://cdn.shopify.com/s/files/1/0249/2891/1420/files/20201202_BH456A_driverforLinux-1_0929.7z
Source1:	Makefile
Source2:	https://github.com/armbian/firmware/archive/%{fw_commit}.tar.gz?/armbian-firmware-%{fw_commit}.tar.gz
BuildArch:	noarch

BuildRequires:	dos2unix
BuildRequires:	%{_bindir}/7za
# for %%check
%if %{with check}
BuildRequires:	kmod
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
BuildRequires:	kernel-6.1-generic-devel
%endif

%description
Linux kernel driver for many Realtek USB Bluetooth devices
(kernel driver rtk_btusb)

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8814au driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}
Requires:	%{name}-firmware

%description -n dkms-%{name}
Linux kernel driver for many Realtek USB Bluetooth devices
(kernel driver rtk_btusb)

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of rtk_usb kernel driver

%description -n kernel-source-%{name}
Linux kernel driver for many Realtek USB Bluetooth devices
(kernel driver rtk_btusb)

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%package firmware
Summary:	Firmware for hardware supported by %{kname} Linux kernel driver
# rtl_bt also exists here
Requires:	linux-firmware

%description firmware
Firmware for hardware supported by %{kname} (rtkbt) Linux kernel driver

%files firmware
/lib/firmware/rtl8*
/lib/firmware/rtlbt
/lib/firmware/rtl_bt/*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n 20201202_LINUX_BT_DRIVER

# replace Makefile
test -f usb/bluetooth_usb_driver/Makefile
install -m0644 %{SOURCE1} usb/bluetooth_usb_driver/Makefile

# files have Windows-style line endings
find usb -type f -exec dos2unix '{}' ';'

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -rv usb/bluetooth_usb_driver/* %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << 'EOF'
MAKE='make KVER=${kernelver}'
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

mkdir -p %{buildroot}/lib/firmware/
cp -rv rtkbt-firmware/lib/firmware/* %{buildroot}/lib/firmware/

# Add missing firmware files
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=12944
# https://bugs.launchpad.net/ubuntu/+source/rtl8723bt-firmware/+bug/1995462
# Take them from https://github.com/armbian/firmware/tree/master/rtl_bt
# XXX License for those files is not clear
tar -xf %{SOURCE2}
cp -rv firmware-%{fw_commit}/rtl_bt %{buildroot}/lib/firmware/
# remove firmware existing in linux-firmware
for i in rtl8723b_fw.bin rtl8723bs_fw.bin rtl8821c_fw.bin rtl8822cs_config.bin rtl8822cs_fw.bin
do
	unlink %{buildroot}/lib/firmware/rtl_bt/$i
done

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
cd usb/bluetooth_usb_driver/
for kver in 5.10 5.15 6.1
do
	%make -f %{SOURCE1} KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17013 |21mr|rtkit-0.13-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %{nil}

Summary:	Realtime Policy and Watchdog Daemon
Name:		rtkit
Version:	0.13
Release:	3
License:	GPLv3+ and BSD
Group:		System/Libraries
Url:		http://git.0pointer.de/?p=rtkit.git
Source0:	https://github.com/heftig/rtkit/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:	vim-common
BuildRequires:	cap-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(systemd)
Requires:	polkit >= 0.93
Requires(pre,post,postun):	setup
Requires(pre):	rpm-helper
Requires(post):	dbus
Requires(post,postun):	systemd

%description
RealtimeKit is a D-Bus system service that changes the scheduling policy of
user processes/threads to SCHED_RR (i.e. realtime scheduling mode) on request.
It is intended to be used as a secure mechanism to allow real-time scheduling
to be used by normal user processes.

%files
%doc README rtkit.c rtkit.h
%attr(0755,root,root) %{_sbindir}/rtkitctl
%attr(0755,root,root) %{_libexecdir}/rtkit-daemon
%{_datadir}/dbus-1/system-services/org.freedesktop.RealtimeKit1.service
%{_datadir}/dbus-1/interfaces/org.freedesktop.RealtimeKit1.xml
%{_datadir}/polkit-1/actions/org.freedesktop.RealtimeKit1.policy
%{_mandir}/man*/rtkitctl.*
%{_datadir}/dbus-1/system.d/org.freedesktop.RealtimeKit1.conf
%{_presetdir}/86-rtkit.preset
%{_unitdir}/rtkit-daemon.service
%dir %{_libexecdir}/installed-tests/rtkit
%{_libexecdir}/installed-tests/rtkit/rtkit-test

%pre
%_pre_useradd rtkit /proc /sbin/nologin

%post
dbus-send --system --type=method_call --dest=org.freedesktop.DBus / org.freedesktop.DBus.ReloadConfig >/dev/null 2>&1 || :
%systemd_post rtkit-daemon.service

%postun
%_postun_userdel rtkit
%systemd_postun rtkit-daemon.service

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-systemdsystemunitdir=%{_unitdir}

%make LIBS="-lrt -lcap"

%install
%makeinstall_std

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-rtkit.preset << EOF
enable rtkit-daemon.service
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17014 |21mr|rtl8188gu-0-3.git699d0c.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 699d0ccedf2e26c3f8fcca36cca45029585aa746
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8188gu

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8188gu chipset
Name:		rtl8188gu
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	3.git%{commit_short}.2
Url:		https://github.com/lwfinger/rtl8188gu
Source0:	https://github.com/lwfinger/rtl8188gu/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
# not buildable with 5.10: https://github.com/lwfinger/rtl8188gu/issues/11
#BuildRequires:	kernel-5.10-generic-devel
%if %{mdvver} < 202310
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8188GU chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8188gu driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8188GU chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8188gu kernel driver
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8188GU chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.15 \
%endif
	6.1 \
	6.6
do
	%make KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17015 |21mr|rtl8192du-0-3.gita82c83.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit a82c83ec8d1363a8bd1e312378c1ba47971d0012
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8192du

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8192du chipset
Name:		rtl8192du
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	3.git%{commit_short}.1
Url:		https://github.com/lwfinger/rtl8192du
Source0:	https://github.com/lwfinger/rtl8192du/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8192DU chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8192du driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8192DU chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8192du kernel driver
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8192DU chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# Source code has firmware files *.bin, but they are not used inside the code
# Firmware is embeded (!) into the code
# https://github.com/lwfinger/rtl8192du/blob/83d9f5ae/hal/Hal8192DUHWImg.c#L24
# https://github.com/lwfinger/rtl8192du/issues/98
rm -fv *.bin

# We will strip modules when needed by ourselves
sed -i'' -e '/strip-debug/d' Makefile

# allow to set custom KSRC
sed -i'' -e 's,KSRC :=,KSRC ?=,g' Makefile

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	%make KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17016 |21mr|rtl8723au-0-0.giteb9ccb.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit eb9ccba15c0850696538ec0fb5352d6bed17ef3a
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8723au

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8723AU chipset
Name:		rtl8723au
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	0.git%{commit_short}.1
Url:		https://github.com/lwfinger/rtl8723au
Source0:	https://github.com/lwfinger/rtl8723au/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8723AU chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8723au driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8723AU chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8723au kernel driver
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8723AU chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
k510="$(rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
k515="$(rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
%make KVER="$k510"
md5sum %{kname}.ko
make clean
%make KVER="$k515"
md5sum %{kname}.ko
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17017 |21mr|rtl8723bs-4.4.1-1.20161015
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev 9ea0240
%define gitdate 20161015

# How to prepare the source archive from the git tree:
# $ hash=`git log -1 --format='%h'`
# $ date=`git log -1 --format='%cd' --date=short | tr -d -`
# $ git archive --prefix rtl8723bs-${date}-git${hash}/ ${hash} \
#	| xz -7e > ../rtl8723bs-${date}-git${hash}.tar.xz

%define kname 8723bs
%define firmware_dir /lib/firmware/rtlwifi/

%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	Driver for Realtek RTL8723BS Wireless LAN 802.11n SDIO
Name:		rtl8723bs
Version:	4.4.1
Release:	1.%{gitdate}
Source0:	%{name}-%{gitdate}-git%{gitrev}.tar.xz
Source1:	%{name}.rpmlintrc
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/muhviehstah/rtl8723bs.git

Patch1:		Allow-to-build-the-module-for-the-non-current-kernels.patch

%description
This package contains the driver for RTL8723BS Wireless LAN adapter
by Realtek.

%package -n dkms-%{name}
Summary:	Driver for Realtek RTL8723BS Wireless LAN 802.11n SDIO
Group:		System/Kernel and hardware
Requires(post):		dkms
Requires(preun):	dkms

# The driver may not build properly for the kernels earlier than 4.7.
Requires:	kernel >= 4.7

%description -n dkms-%{name}
This package contains the driver for RTL8723BS Wireless LAN adapter
by Realtek.

%prep
%setup -qn %{name}-%{gitdate}-git%{gitrev}
%apply_patches

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF


%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17018 |21mr|rtl8723bu-0-0.gitd79a67.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit d79a676a8d3f0bb6ac8af126689c6ac6869cb6f2
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8723bu

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8723bu chipset
Name:		rtl8723bu
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	0.git%{commit_short}.1
Url:		https://github.com/lwfinger/rtl8723bu
Source0:	https://github.com/lwfinger/rtl8723bu/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8723BU chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8723bu driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8723BU chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8723bu kernel driver
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8723BU chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
k510="$(rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
k515="$(rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
%make KVER="$k510"
md5sum %{kname}.ko
make clean
%make KVER="$k515"
md5sum %{kname}.ko
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17019 |21mr|rtl8723ds-0-0.git830322.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 83032266f6fbd7a6775ecf23fb4f807343ffc6f2
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8723ds

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8723ds chipset
Name:		rtl8723ds
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	0.git%{commit_short}.1
Url:		https://github.com/lwfinger/rtl8723ds
Source0:	https://github.com/lwfinger/rtl8723ds/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8723DS chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8723ds driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8723DS chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8723ds kernel driver
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8723DS chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
sed -i -E -e '/RTW_PRINT_SEL\(.*__DATE__/d' core/rtw_debug.c

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
k510="$(rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
k515="$(rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
%make KVER="$k510"
md5sum %{kname}.ko
make clean
%make KVER="$k515"
md5sum %{kname}.ko
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17020 |21mr|rtl8723du-0-2.gitb9f106.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit b9f1060c848ce18af01c0a62a459c3a08ccde20c
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8723du

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8723du chipset
Name:		rtl8723du
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	2.git%{commit_short}.2
Url:		https://github.com/lwfinger/rtl8723du
Source0:	https://github.com/lwfinger/rtl8723du/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8723DU chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8723du driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8723DU chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8723du kernel driver
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8723DU chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1
do
	%make KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17021 |21mr|rtl8812au-0-3.git3d1123.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 3d1123bd1386b373333d3280772f4d504a829e1b
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8812au

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	The standalone RTL8812AU driver
Name:		rtl8812au
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	3.git%{commit_short}.1
Epoch:		4
Url:		https://github.com/morrownr/8812au-20210629
Source0:	https://github.com/morrownr/8812au-20210629/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	bc
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
This package contains the driver for Realtek 8812A 802.11n USB wireless
adapters.

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8812AU driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}
Recommends:	%{name}-blacklist

%description -n dkms-%{name}
This package contains the driver for Realtek 8812A 802.11n USB wireless
adapters.

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8812AU kernel driver
# source code moved from dkms- subpackage
Conflicts:	dkms-%{name} < 4:0
Provides:	kernel-source-%{kname} = %{EVRD}
# used in Makefile
Requires:	bc

%description -n kernel-source-%{name}
Source code of the Linux kernel driver for the USB WiFi adapters with
the RTL8812AU chips by Realtek.

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%package blacklist
Summary:	Blacklist rtw88_%{kname} from upstream Linux kernel

%description blacklist
Install this package to blacklist rtw88_%{kname} module from the upstream Linux kernel
and use %{kname} instead.
rtw88_%{kname} does not exist for now but may appear and work badly
(Realtek drivers usually work not very well right after upstreamization).

%files blacklist
%config(noreplace) /etc/modprobe.d/%{name}.conf

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n 8812au-20210629-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

# Binary kernel modules built inside the kernel package require the separate package with this blacklist
mkdir -p %{buildroot}/etc/modprobe.d/
echo "blacklist rtw88_%{kname}" > %{buildroot}/etc/modprobe.d/%{name}.conf

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	%make KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17022 |21mr|rtl8814au-0-3.git866a91.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 866a9100c7b3f6508b81b31a22cae19dcacdacb9
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8814au

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8811AU and RTL8814au chipsets
Name:		rtl8814au
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	3.git%{commit_short}.1
Epoch:		4
Url:		https://github.com/morrownr/8814au
Source0:	https://github.com/morrownr/8814au/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	bc
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8814AU chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8814au driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}
Recommends:	%{name}-blacklist

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8814AU chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8814au kernel driver
# source code moved from dkms- subpackage
Conflicts:	dkms-%{name} < 4:0
Provides:	kernel-source-%{kname} = %{EVRD}
# used in Makefile
Requires:	bc

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8814AU chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%package blacklist
Summary:	Blacklist rtw88_%{kname} from upstream Linux kernel

%description blacklist
Install this package to blacklist rtw88_%{kname} module from the upstream Linux kernel
and use %{kname} instead.
rtw88_%{kname} does not exist for now but may appear and work badly
(Realtek drivers usually work not very well right after upstreamization).

%files blacklist
%config(noreplace) /etc/modprobe.d/%{name}.conf

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n 8814au-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

# Binary kernel modules built inside the kernel package require the separate package with this blacklist
mkdir -p %{buildroot}/etc/modprobe.d/
echo "blacklist rtw88_%{kname}" > %{buildroot}/etc/modprobe.d/%{name}.conf

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	%make KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17023 |21mr|rtl8821au-0-3.git6cd61c.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 6cd61cfce48218c26b57db4733aa0d3cbf9a2f2c
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8821au

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8811AU and RTL8821AU chipsets
Name:		rtl8821au
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	3.git%{commit_short}.1
Epoch:		4
Url:		https://github.com/morrownr/8821au-20210708
Source0:	https://github.com/morrownr/8821au-20210708/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	bc
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8811AU and RTL8821AU chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8821au driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}
Recommends:	%{name}-blacklist

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8811AU and RTL8821AU chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8821au kernel driver
# source code moved from dkms- subpackage
Conflicts:	dkms-%{name} < 4:0
Provides:	kernel-source-%{kname} = %{EVRD}
# used in Makefile
Requires:	bc

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8811AU and RTL8821AU chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%package blacklist
Summary:	Blacklist rtw88_%{kname} from upstream Linux kernel

%description blacklist
Install this package to blacklist rtw88_%{kname} module from the upstream Linux kernel
and use %{kname} instead.
rtw88_%{kname} does not exist for now but may appear and work badly
(Realtek drivers usually work not very well right after upstreamization).

%files blacklist
%config(noreplace) /etc/modprobe.d/%{name}.conf

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n 8821au-20210708-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

# Binary kernel modules built inside the kernel package require the separate package with this blacklist
mkdir -p %{buildroot}/etc/modprobe.d/
echo "blacklist rtw88_%{kname}" > %{buildroot}/etc/modprobe.d/%{name}.conf

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	%make KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17024 |21mr|rtl8821ce-5-7.gitdce62b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit dce62b9bbb7c76339b514153fcebb3a19bafdcc7
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8821ce

Summary:	Standalone RTL8821CE driver
Name:		rtl8821ce
# compatible with kernel 5.x -> Version 5
Version:	5
Release:	7.git%{commit_short}.1
Epoch:		3
Source0:	https://github.com/tomaspinho/rtl8821ce/archive/%{commit}.tar.gz?/rtl8821ce-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/tomaspinho/rtl8821ce
BuildArch:	noarch

%description
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%package -n kernel-source-%{name}
Summary:	Source code of RTL8821CE kernel driver
# source code moved from dkms- subpackage
Obsoletes:	dkms-%{name} < 3:5-1
Conflicts:	dkms-%{name} < 3:5-1
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Source code of the Linux kernel driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%package -n dkms-%{name}
Summary:	Standalone RTL8821CE driver
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):			kernel-source-%{name} = %{EVRD}
Requires(post,preun):	dkms
Requires:	%{name}-blacklist

%description -n dkms-%{name}
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%package blacklist
Summary:	Blacklist rtw88_8821ce from upstream Linux kernel

%description blacklist
Install this package to blacklist rtw88_8821ce module from upstream Linux kernel
and use rtl8821ce instead. rtw88_8821ce is reported to have poor compatibility
with most revision of the 8821ce chip.
See: https://github.com/tomaspinho/rtl8821ce/commit/14b536f0

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install

# Debian-specific stuff is not needed
rm -rf debian

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

# The driver has its own dkms.conf but we replace it with ours to
# use the appropriate versioning scheme, to avoid rebuilding initrd, etc.
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
CLEAN="make clean"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

# https://github.com/tomaspinho/rtl8821ce/commit/14b536f0c9ad2d0abbdab8afc7ade684900ca9cf
# Binary kernel modules built inside the kernel package require the separate package with this blacklist
mkdir -p %{buildroot}/etc/modprobe.d/
echo "blacklist rtw88_8821ce" > %{buildroot}/etc/modprobe.d/%{name}.conf

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%files blacklist
%config(noreplace) /etc/modprobe.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17025 |21mr|rtl8821ce-5-8.gita3e2f7.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit a3e2f7c1f91e92f2dc788e8fcd7f2986af3d19b6
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8821ce

Summary:	Standalone RTL8821CE driver
Name:		rtl8821ce
# compatible with kernel 5.x -> Version 5
Version:	5
Release:	8.git%{commit_short}.1
Epoch:		3
Source0:	https://github.com/tomaspinho/rtl8821ce/archive/%{commit}.tar.gz?/rtl8821ce-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/tomaspinho/rtl8821ce
BuildArch:	noarch

%description
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%package -n kernel-source-%{name}
Summary:	Source code of RTL8821CE kernel driver
# source code moved from dkms- subpackage
Obsoletes:	dkms-%{name} < 3:5-1
Conflicts:	dkms-%{name} < 3:5-1
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Source code of the Linux kernel driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%package -n dkms-%{name}
Summary:	Standalone RTL8821CE driver
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):			kernel-source-%{name} = %{EVRD}
Requires(post,preun):	dkms
Requires:	%{name}-blacklist

%description -n dkms-%{name}
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CE by Realtek.

%package blacklist
Summary:	Blacklist rtw88_8821ce from upstream Linux kernel

%description blacklist
Install this package to blacklist rtw88_8821ce module from upstream Linux kernel
and use rtl8821ce instead. rtw88_8821ce is reported to have poor compatibility
with most revision of the 8821ce chip.
See: https://github.com/tomaspinho/rtl8821ce/commit/14b536f0

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install

# Debian-specific stuff is not needed
rm -rf debian

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

# The driver has its own dkms.conf but we replace it with ours to
# use the appropriate versioning scheme, to avoid rebuilding initrd, etc.
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
CLEAN="make clean"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

# https://github.com/tomaspinho/rtl8821ce/commit/14b536f0c9ad2d0abbdab8afc7ade684900ca9cf
# Binary kernel modules built inside the kernel package require the separate package with this blacklist
mkdir -p %{buildroot}/etc/modprobe.d/
echo "blacklist rtw88_8821ce" > %{buildroot}/etc/modprobe.d/%{name}.conf

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%files blacklist
%config(noreplace) /etc/modprobe.d/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17026 |21mr|rtl8821cu-5-4.git8c2226.8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 8c2226a74ae718439d56248bd2e44ccf717086d5
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8821cu

%define _enable_debug_packages	%{nil}
%define debug_package	%{nil}

Summary:	Standalone RTL8821CU driver
Name:		rtl8821cu
Version:	5
Release:	4.git%{commit_short}.8
Epoch:		3
Source0:	https://github.com/brektrou/rtl8821CU/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
Source2:	gcc-wrapper.sh
# https://github.com/brektrou/rtl8821CU/pull/147
Patch1:		0001-Automate-buildability-on-aarch64.patch
# putting gcc-wrapper.sh into $PATH
Patch2:		make-path.diff
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/brektrou/rtl8821CU
BuildArch:	noarch

%description
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CU by Realtek.

%package -n dkms-%{name}
Summary:	Standalone RTL8821CU driver
Group:		System/Kernel and hardware
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CU by Realtek.

%package -n kernel-source-%{name}
Summary:	Source code of RTL8821CU kernel driver
# source code moved from dkms- subpackage
Conflicts:	dkms-%{name} < 3:5-2
Provides:	kernel-source-%{kname} = %{EVRD}
# For the wrapper script
Requires:	/usr/bin/gcc
Requires:	sed

%description -n kernel-source-%{name}
Source code of the Linux kernel driver for the USB WiFi adapters with
the chip RTL8821CU by Realtek.

%prep
%autosetup -p1 -n rtl8821CU-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
rm -fvr %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/debian

# The driver has its own dkms.conf but we replace it with ours to
# use the appropriate versioning scheme, to avoid rebuilding initrd, etc.
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
CLEAN="make clean"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

mkdir -p %{buildroot}%{_libexecdir}/%{name}
install -m0755 %{SOURCE2} %{buildroot}%{_libexecdir}/%{name}/gcc


%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*
%{_libexecdir}/%{name}/gcc

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17027 |21mr|rtl8821cu-5-6.git5b3939.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5b39398e2de146edeb76716420f3288f508bea61
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8821cu

%bcond_without check

Summary:	Standalone RTL8821CU driver
Name:		rtl8821cu
Version:	5
Release:	6.git%{commit_short}.1
Epoch:		3
Url:		https://github.com/morrownr/8821cu-20210916
Source0:	https://github.com/morrownr/8821cu-20210916/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
Patch0001:	0001-Do-not-make-mistakes-in-ARCH.patch
License:	GPLv2
Group:		System/Kernel and hardware
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	bc
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CU by Realtek.

%package -n dkms-%{name}
Summary:	Standalone RTL8821CU driver
Group:		System/Kernel and hardware
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
This package contains the driver for the USB WiFi adapters with
the chip RTL8821CU by Realtek.

%package -n kernel-source-%{name}
Summary:	Source code of RTL8821CU kernel driver
# source code moved from dkms- subpackage
Conflicts:	dkms-%{name} < 3:5-2
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Source code of the Linux kernel driver for the USB WiFi adapters with
the chip RTL8821CU by Realtek.

#-----------------------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n 8821cu-20210916-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
rm -fvr %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/debian

# The driver has its own dkms.conf but we replace it with ours to
# use the appropriate versioning scheme, to avoid rebuilding initrd, etc.
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
CLEAN="make clean"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/drivers/net/wireless/
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	%make KVER="$KVER"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make KVER="$KVER" clean
	rm -f *.ko*
done
%endif

#-----------------------------------------------------------------------------------------------------

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

%files -n dkms-%{name}
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17028 |21mr|rtl8852au-0-3.gitacfb56.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit acfb56472ee57c7e8fa8d25b7365ff280aee46d7
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8852au

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8852au chipset
Name:		rtl8852au
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	3.git%{commit_short}.1
Url:		https://github.com/lwfinger/rtl8852au
Source0:	https://github.com/lwfinger/rtl8852au/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8852AU chipsets

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8852au driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8852AU chipsets

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8852au kernel driver
Provides:	kernel-source-%{kname} = %{EVRD}

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8852AU chipsets

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# error: macro "__DATE__" might prevent reproducible builds [-Werror=date-time]
sed -i -E -e '/RTW_PRINT_SEL\(.*__DATE__/d' core/rtw_debug.c

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	%make KVER="$KVER"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make KVER="$KVER"
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17029 |21mr|rtl8852bu-0-0.git446ccb.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 446ccb1a0e4b6445ae3978bb093500eb95f3bf2a
%define commit_short %(echo %{commit} | head -c 6)

%define kname 8852bu

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux driver for USB WiFi adapters that are based on the RTL8852BU chipset
Name:		rtl8852bu
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	0.git%{commit_short}.1
Url:		https://github.com/lwfinger/rtl8852bu
Source0:	https://github.com/lwfinger/rtl8852bu/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	bc
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
Linux driver for USB WiFi adapters that are based on the RTL8852BU chipset

#----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL8852bu driver
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8852BU chipset

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL8852bu kernel driver
Provides:	kernel-source-%{kname} = %{EVRD}
# used in Makefile
Requires:	bc

%description -n kernel-source-%{name}
Linux driver for USB WiFi adapters that are based on the RTL8852BU chipset

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	%make KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17030 |21mr|rtl88x2bu-0-3.gitbb6e51.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit bb6e514230791010a34daf0d6ccf55ef97309dbf
%define commit_short %(echo %{commit} | head -c6)

%define kname 88x2bu

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	The standalone RTL88x2BU driver
Name:		rtl88x2bu
Version:	0
Release:	3.git%{commit_short}.1
Epoch:		4
Group:		System/Kernel and hardware
License:	GPLv2
URL:		https://github.com/morrownr/88x2bu-20210702
Source0:	https://github.com/morrownr/88x2bu-20210702/archive/%{commit}.tar.gz?/88x2bu-20210702-%{commit}.tar.gz
Source1:	%{name}.rpmlintrc
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	bc
%if %{mdvver} < 202310
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif
BuildRequires:	kernel-6.1-generic-devel
BuildRequires:	kernel-6.6-generic-devel
%endif

%description
This package contains the driver for Realtek 88x2bu 802.11 USB wireless
adapters.

#-----------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	The standalone RTL88x2BU driver
Group:		System/Kernel and hardware
Provides:	dkms-rtl8822bu = %{EVRD}
Requires:	dkms
Requires(post,preun):	dkms
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}
Recommends:	%{name}-blacklist

%description -n dkms-%{name}
This package contains the driver for Realtek 88x2bu 802.11 USB wireless
adapters.

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
rmmod %{kname} >/dev/null 2>&1 || true
set -x
dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of RTL88x2BU kernel driver
# source code moved from dkms- subpackage
Conflicts:	dkms-%{name} < 4:0
Provides:	kernel-source-%{kname} = %{EVRD}
# used in Makefile
Requires:	bc

%description -n kernel-source-%{name}
Source code of the Linux kernel driver for the USB WiFi adapters with
the RTL88x2BU chips by Realtek.

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%package blacklist
Summary:	Blacklist rtw88_8822bu from upstream Linux kernel

%description blacklist
Install this package to blacklist rtw88_8822bu module from the upstream Linux kernel
and use 88x2bu instead. rtw88_8822bu is experimental inside the Linux kernel 5.18+.
See: https://github.com/RinCat/RTL88x2BU-Linux-Driver#linux-518-and-rtw88-driver

%files blacklist
%config(noreplace) /etc/modprobe.d/%{name}.conf

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n 88x2bu-20210702-%{commit}

%install

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="'make' all KVER=\${kernelver}"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

# https://github.com/RinCat/RTL88x2BU-Linux-Driver/commit/998300820cf245b3ca90b853068fcc2b8e4d2767
# Binary kernel modules built inside the kernel package require the separate package with this blacklist
mkdir -p %{buildroot}/etc/modprobe.d/
echo "blacklist rtw88_8822bu" > %{buildroot}/etc/modprobe.d/%{name}.conf

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in \
%if %{mdvver} < 202310
	5.10 \
	5.15 \
%endif
	6.1 \
	6.6
do
	%make KVER="$(rpm -ql kernel-"$kver"-generic-devel | grep -E '/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $(NF-1)}')"
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	make clean
	rm -f *.ko*
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17031 |21mr|rtmpdump-2.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname rtmp %{major}
%define devname %mklibname rtmp -d

%bcond_with crypto

Summary:	Toolkit for RTMP streams
Name:		rtmpdump
Version:	2.3
Release:	12
License:	GPLv2+
Group:		Video
Url:		http://rtmpdump.mplayerhq.hu/
Source0:	http://rtmpdump.mplayerhq.hu/download/%{name}-%{version}.tgz
# fix pkgconfig issues
Patch0:		rtmp-pkgconfig-hardcoded.patch
Patch1:		rtmp-pkgconfig-private.patch
# these do not belong to sbindir
Patch2:		rtmp-no-sbindir.patch
# (from upstream) link progs against shared library
Patch3:		rtmp-link-shared.patch
Patch4:		rtmp-link-shared2.patch
%if %{with crypto}
BuildRequires:	pkgconfig(openssl)
%endif
BuildRequires:	pkgconfig(zlib)

%description
rtmpdump is a toolkit for RTMP streams.

This version does not contain RTMPE / RTMPS / SWF verification support.

%files
%doc README ChangeLog
%{_bindir}/rtmpdump
%{_bindir}/rtmpgw
%{_bindir}/rtmpsrv
%{_bindir}/rtmpsuck
%{_mandir}/man1/rtmpdump.1*
%{_mandir}/man8/rtmpgw.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library librtmp
Group:		System/Libraries

%description -n %{libname}
Shared library for handling RTMP streams.

This version does not contain RTMPE / RTMPS / SWF verification support.

%files -n %{libname}
%{_libdir}/librtmp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for librtmp
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	rtmp-devel = %{EVRD}
Provides:	librtmp-devel = %{EVRD}
Requires:	pkgconfig(openssl)

%description -n %{devname}
The development files that are needed to build software depending
on librtmp.

%files -n %{devname}
%dir %{_includedir}/librtmp
%{_includedir}/librtmp/*.h
%{_libdir}/librtmp.so
%{_libdir}/pkgconfig/librtmp.pc
%{_mandir}/man3/librtmp.3*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%make \
	XCFLAGS="%{optflags}" \
	LDFLAGS="%{ldflags}" \
%if %{without crypto}
	CRYPTO=
%endif
# empty line

%install
%makeinstall_std prefix=%{_prefix} libdir=%{_libdir} mandir=%{_mandir}
rm %{buildroot}%{_libdir}/librtmp.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17032 |21mr|rttr-0.9.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major %{version}
%define libname %mklibname rttr_core %{major}
%define devname %mklibname rttr -d

Summary:	Run Time Type Reflection for C++
Name:		rttr
Version:	0.9.6
Release:	2
License:	MIT
Group:		System/Libraries
Url:		https://github.com/rttrorg/rttr
Source0:	https://github.com/rttrorg/rttr/releases/download/v%{version}/%{name}-%{version}-src.tar.gz
# fix cmake installation directories
Patch0:		cmake_install_dir.patch
# remove date and time information from generated documentation
Patch1:		doxygen_remove_date_time.patch
# fix compile error (https://github.com/rttrorg/rttr/issues/224)
Patch2:		skip_json_example.patch
# fix wrong permissions of headers (https://github.com/rttrorg/rttr/issues/147)
Patch3:		fix-include-permissions.patch
BuildRequires:	cmake
BuildRequires:	dos2unix
BuildRequires:	doxygen

%description
Run Time Type Reflection is the the ability of a computer program to
introspect and modify objects at runtime. It is also the name of the
library itself, which is written in C++.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Run Time Type Reflection for C++ (shared library)
Group:		System/Libraries

%description -n %{libname}
Run Time Type Reflection is the the ability of a computer program to
introspect and modify objects at runtime. It is also the name of the
library itself, which is written in C++.

%files -n %{libname}
%{_libdir}/librttr_core.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for development with %{name}.

%files -n %{devname}
%doc README.md LICENSE.txt
%{_docdir}/rttr/
%{_includedir}/rttr/
%{_libdir}/librttr_core.so
%{_libdir}/cmake/rttr/

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

find . -type f -exec chmod a-x "{}" +
dos2unix README.md

%build
%global optflags %{optflags} -std=c++17
%cmake \
	-DBUILD_BENCHMARKS=OFF \
	-DBUILD_UNIT_TESTS=OFF \
	-DBUILD_PACKAGE=OFF

%make

%install
%makeinstall_std rttr_core -C build

rm -Rf %{buildroot}%{_datadir}/rttr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17033 |21mr|rtw88-0-0.git575388.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5753883c9072efec2cd7f8f5411161d6a89fdb84
%define commit_short %(echo %{commit} | head -c 6)

# for firmware
%global _binaries_in_noarch_packages_terminate_build 0

# building in %%check fails on aarch64
# TODO: fix it
%ifarch %{x86_64}
%bcond_without check
%else
%bcond_with check
%endif

Summary:	Linux kernel driver for rtw88 Realtek WiFi devices
Name:		rtw88
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	0.git%{commit_short}.1
Url:		https://github.com/lwfinger/rtw88
Source0:	https://github.com/lwfinger/rtw88/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	kmod
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
%endif

%description
Linux kernel driver for Realtek WiFi devices of the rtw88 series:
* RTW8723D
* RTW8723DE
* RTW8821C
* RTW8822B
* RTW8822BE
* RTW8822C
* RTW8822CE

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of rtk_usb kernel driver

%description -n kernel-source-%{name}
Linux kernel driver for many Realtek WiFi devices

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}

#-----------------------------------------------------------------------

%package firmware
Summary:	Firmware for hardware supported by btw88 Linux kernel drivers

%description firmware
Firmware for hardware supported by btw88 Linux kernel drivers:
* RTW8723D
* RTW8723DE
* RTW8821C
* RTW8822B
* RTW8822BE
* RTW8822C
* RTW8822CE

%files firmware
/lib/firmware/rtw88p

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# remove not needed binary file
rm -fv sign-file

# /lib/firmware/rtw88 already exists in linux-firmware and _partially_ conflicts
# with his firmware (some files do exist, some do not);
# point this out-of-mainline driver to a separate directory
grep -Irl '"rtw88/' | xargs sed -i -e 's,"rtw88/,"rtw88p/,g'

# allow to set custom KSRC
sed -i'' -e 's,KSRC :=,KSRC ?=,g' Makefile

%install

# install sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -r * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
rm -fv %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/*.bin

mkdir -p %{buildroot}/lib/firmware/rtw88p
cp -v *.bin %{buildroot}/lib/firmware/rtw88p

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
list="rtw_8723d.ko rtw_8723de.ko rtw_8821c.ko rtw_8821ce.ko rtw_8822b.ko rtw_8822be.ko rtw_8822c.ko rtw_8822ce.ko rtw_core.ko rtw_pci.ko"
k510="$(rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
k515="$(rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
%make KVER="$k510"
for i in $list
do
	md5sum $i
	modinfo $i
done
make clean
%make KVER="$k515"
for i in $list
do
	md5sum $i
	modinfo $i
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17034 |21mr|rtw89-0-1.git4f3464.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 4f3464d85d070039085c6d948d9f418f860babf4
%define commit_short %(echo %{commit} | head -c 6)

# for firmware
%global _binaries_in_noarch_packages_terminate_build 0

%bcond_without check

Summary:	Linux kernel driver for rtw89 Raaltek WiFi devices (upstreamized in kernel 5.16)
Name:		rtw89
License:	GPLv2
Group:		System/Kernel and hardware
Version:	0
Release:	1.git%{commit_short}.1
Url:		https://github.com/lwfinger/rtw89
Source0:	https://github.com/lwfinger/rtw89/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildArch:	noarch

# for %%check
%if %{with check}
BuildRequires:	kmod
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
BuildRequires:	kernel-6.1-generic-devel
%endif

%description
Linux kernel driver for Realtek WiFi devices of the rtw89 series:
* RTW8852AE
* RTW8852A
* RTW8852BE
* RTW8852B
* RTW8852CE
* RTW8852C
(fully upstreamized in kernel 6.2)

#-----------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of rtk_usb kernel driver

%description -n kernel-source-%{name}
Linux kernel driver for many Realtek WiFi devices

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

# remove not needed binary file
rm -fv sign-file

# allow to set custom KSRC
sed -i'' -e 's,KSRC :=,KSRC ?=,g' Makefile

%install

# install sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -r * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
list="rtw_8852ae.ko rtw_8852a.ko rtw_8852be.ko rtw_8852b.ko rtw_8852ce.ko rtw_8852c.ko rtw89core.ko rtw89pci.ko"
k510="$(rpm -ql kernel-5.10-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
k515="$(rpm -ql kernel-5.15-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
k61="$(rpm -ql kernel-6.1-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | awk -F '/' '{print $4}')"
%make KVER="$k510"
for i in $list
do
	md5sum $i
	modinfo $i
done
make KVER="$k510" clean
%make KVER="$k515"
for i in $list
do
	md5sum $i
	modinfo $i
done
make KVER="$k515" clean
%make KVER="$k61"
for i in $list
do
	md5sum $i
	modinfo $i
done
make KVER="$k61" clean
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17035 |21mr|rubberband-4.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Audio time-stretching and pitch-shifting library
Name:		rubberband
Version:	4.0.0
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.breakfastquay.com/rubberband/
Source0:	https://breakfastquay.com/files/releases/%{name}-%{version}.tar.bz2
Source1:	http://www.breakfastquay.com/rubberband/usage.txt
BuildRequires:	boost-devel
BuildRequires:	ladspa-devel
BuildRequires:	lv2-devel
BuildRequires:	meson
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(vamp-sdk)
Conflicts:	%{_lib}rubberband2 < 1.8.1-5

%description
Rubber Band is a library and utility program that permits you to change the
tempo and pitch of an audio recording independently of one another.

%files
%doc usage.txt CHANGELOG
%{_bindir}/rubberband*
%{_datadir}/ladspa/rdf/ladspa-rubberband.rdf
%{_libdir}/ladspa/ladspa-rubberband.cat
%{_libdir}/ladspa/ladspa-rubberband.so
%{_libdir}/vamp/vamp-rubberband.cat
%{_libdir}/vamp/vamp-rubberband.so
%{_libdir}/lv2/rubberband.lv2/lv2-rubberband.so
%{_libdir}/lv2/rubberband.lv2/lv2-rubberband.ttl
%{_libdir}/lv2/rubberband.lv2/manifest.ttl

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Audio time-stretching and pitch-shifting library
Group:		System/Libraries

%description -n %{libname}
Rubber Band is a library and utility program that permits you to change the
tempo and pitch of an audio recording independently of one another.

%files -n %{libname}
%doc usage.txt CHANGELOG
%{_libdir}/librubberband.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for rubberband
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n	%{devname}
Rubber Band is a library and utility program that permits you to change the
tempo and pitch of an audio recording independently of one another. This
package contains files needed to develop with the rubberband library.

%files -n %{devname}
%doc usage.txt CHANGELOG
%{_includedir}/rubberband
%{_libdir}/librubberband.so
%{_libdir}/librubberband.a
%{_libdir}/pkgconfig/rubberband.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

cp %{SOURCE1} .

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17036 |21mr|ruby-2.7.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major_version 2
%global minor_version 7
%global teeny_version 8
%global major_minor_version %{major_version}.%{minor_version}

%define libname %mklibname ruby %{major_version}.%{minor_version}

%global ruby_version %{major_minor_version}.%{teeny_version}
%global ruby_release %{ruby_version}

%global ruby_archive %{name}-%{ruby_version}

# The RubyGems library has to stay out of Ruby directory tree, since the
# RubyGems should be share by all Ruby implementations.
%global rubygems_dir %{_datadir}/rubygems

# Bundled libraries versions
%global rubygems_version 3.1.6
%global rubygems_molinillo_version 0.5.7

# Default gems.
%global bundler_version 2.1.4
%global bundler_connection_pool_version 2.2.2
%global bundler_fileutils_version 1.3.0
%global bundler_molinillo_version 0.6.6
%global bundler_net_http_persistent_version 3.1.0
%global bundler_thor_version 1.0.0

%global bigdecimal_version 2.0.0
%global did_you_mean_version 1.4.0
%global io_console_version 0.5.6
%global irb_version 1.2.6
%global json_version 2.3.0
%global net_telnet_version 0.2.0
%global openssl_version 2.1.4
%global psych_version 3.1.0
%global racc_version 1.4.16
%global rdoc_version 6.2.1.1
%global xmlrpc_version 0.3.0

# Bundled gems.
%global power_assert_version 1.1.7
%global test_unit_version 3.3.4

# Might not be needed in the future, if we are lucky enough.
# https://bugzilla.redhat.com/show_bug.cgi?id=888262
%global tapset_root %{_datadir}/systemtap/*
%global tapset_dir %{tapset_root}/tapset
%global tapset_libdir %(echo %{_libdir} | sed 's/64//')*

%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/')

# allow choosing Ruby runtime like rvm
# need rubypick in main repo
%bcond_with rubypick
%bcond_without cmake
%bcond_without git
%bcond_without gmp
%bcond_without hostname
%bcond_without systemtap

# LTO appears to cause some issue to SEGV handler.
# https://bugs.ruby-lang.org/issues/17052
%define _lto_cflags %{nil}

Summary: An interpreter of object-oriented scripting language
Name: ruby
Version: %{ruby_version}
Release: 9
# Public Domain for example for: include/ruby/st.h, strftime.c, missing/*, ...
# MIT and CCO: ccan/*
# zlib: ext/digest/md5/md5.*, ext/nkf/nkf-utf8/nkf.c
# UCD: some of enc/trans/**/*.src
License: (Ruby or BSD) and Public Domain and MIT and CC0 and zlib and UCD
Group:	Development/Ruby
URL: http://ruby-lang.org/
Source0: https://cache.ruby-lang.org/pub/%{name}/%{major_minor_version}/%{ruby_archive}.tar.gz
Source1: operating_system.rb
# TODO: Try to push SystemTap support upstream.
Source2: libruby.stp
Source3: ruby-exercise.stp
Source4: macros.ruby
Source5: macros.rubygems
# RPM dependency generators.
Source8: rubygems.attr
Source9: rubygems.req
Source10: rubygems.prov
Source11: rubygems.con
# ABRT hoook test case.
Source13: test_abrt.rb
# SystemTap tests.
Source14: test_systemtap.rb
Source100: ruby.rpmlintrc

# The load directive is supported since RPM 4.12, i.e. F21+. The build process
# fails on older Fedoras.
%{load:%{SOURCE4}}
%{load:%{SOURCE5}}

# Fix ruby_version abuse.
# https://bugs.ruby-lang.org/issues/11002
Patch0: ruby-2.3.0-ruby_version.patch
# http://bugs.ruby-lang.org/issues/7807
Patch1: ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch
# Allows to override libruby.so placement. Hopefully we will be able to return
# to plain --with-rubyarchprefix.
# http://bugs.ruby-lang.org/issues/8973
Patch2: ruby-2.1.0-Enable-configuration-of-archlibdir.patch
# Force multiarch directories for i.86 to be always named i386. This solves
# some differencies in build between Fedora and RHEL.
Patch3: ruby-2.1.0-always-use-i386.patch
# Allows to install RubyGems into custom directory, outside of Ruby's tree.
# http://bugs.ruby-lang.org/issues/5617
Patch4: ruby-2.1.0-custom-rubygems-location.patch
# Make mkmf verbose by default
Patch5: ruby-1.9.3-mkmf-verbose.patch
# The ABRT hook used to be initialized by preludes via following patches:
# https://bugs.ruby-lang.org/issues/8566
# https://bugs.ruby-lang.org/issues/15306
# Unfortunately, due to https://bugs.ruby-lang.org/issues/16254
# and especially since https://github.com/ruby/ruby/pull/2735
# this would require boostrapping:
# https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org/message/LH6L6YJOYQT4Y5ZNOO4SLIPTUWZ5V45Q/
# For now, load the ABRT hook via this simple patch:
Patch6: ruby-2.7.0-Initialize-ABRT-hook.patch
# Workaround "an invalid stdio handle" error on PPC, due to recently introduced
# hardening features of glibc (rhbz#1361037).
# https://bugs.ruby-lang.org/issues/12666
Patch9: ruby-2.3.1-Rely-on-ldd-to-detect-glibc.patch
# Revert commit which breaks bundled net-http-persistent version check.
# https://github.com/drbrain/net-http-persistent/pull/109
Patch10: ruby-2.7.0-Remove-RubyGems-dependency.patch
# Prevent issues with openssl loading when RubyGems are disabled.
# https://github.com/ruby/openssl/pull/242
Patch13: ruby-2.8.0-remove-unneeded-gem-require-for-ipaddr.patch

# https://github.com/ruby/ruby/pull/2862
Patch23: 0001-Fix-linkage-of-popen_deadlock-test.patch
Patch26: e2k.patch
# https://github.com/ruby/ruby/commit/6215b5ba9
Patch27: 0001-Fix-off-by-one-error-of-argc.patch

Requires: %{libname} = %{EVRD}
Suggests: rubypick
Recommends: ruby(rubygems) >= %{rubygems_version}
Recommends: rubygem(bigdecimal) >= %{bigdecimal_version}
# Change this to requires, hopefully just as temporary measure.
# https://bugs.ruby-lang.org/issues/16431
Recommends: rubygem(openssl) >= %{openssl_version}

BuildRequires: autoconf
BuildRequires: gdbm-devel
%{?with_gmp:BuildRequires: gmp-devel}
BuildRequires: ffi-devel
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(yaml-0.1)
BuildRequires: readline-devel
# Needed to pass test_set_program_name(TestRubyOptions)
BuildRequires: procps
%{?with_systemtap:BuildRequires: %{_bindir}/dtrace}
# RubyGems test suite optional dependencies.
%{?with_git:BuildRequires: git}
%{?with_cmake:BuildRequires: %{_bindir}/cmake}
# Required to test hardening.
%{?with_hostname:BuildRequires: hostname}
BuildRequires: zlib-devel

# This package provides %%{_bindir}/ruby-mri therefore it is marked by this
# virtual provide. It can be installed as dependency of rubypick.
Provides: ruby(runtime_executable) = %{ruby_release}

%description
Ruby is the interpreted scripting language for quick and easy
object-oriented programming.  It has many features to process text
files and to do system management tasks (as in Perl).  It is simple,
straight-forward, and extensible.


%package devel
Summary:    A Ruby development environment
Requires:   %{name} = %{EVRD}
Requires:   %{libname} = %{EVRD}
# This would not be needed if ~50 packages depending on -devel used
# --disable-gems
Requires:   rubygems

%description devel
Header files and libraries for building an extension library for the
Ruby or an application embedding Ruby.

%package -n	%{libname}
Summary:    Libraries necessary to run Ruby
License:    Ruby or BSD
Provides:   ruby(release) = %{ruby_release}
Provides:	ruby-libs = %{EVRD}

# Virtual provides for CCAN copylibs.
# https://fedorahosted.org/fpc/ticket/364
Provides: bundled(ccan-build_assert)
Provides: bundled(ccan-check_type)
Provides: bundled(ccan-container_of)
Provides: bundled(ccan-list)

# StdLib default gems.
Provides: bundled(rubygem-did_you_mean) = %{did_you_mean_version}
Provides: bundled(rubygem-racc) = %{racc_version}

# Tcl/Tk support was removed from stdlib in Ruby 2.4, i.e. F27 timeframe
# so lets obsolete it. This is not the best place, but we don't have
# better, unless https://fedorahosted.org/fpc/ticket/645 provides some
# generic solution.
Obsoletes: ruby-tcltk < 2.4.0

%description -n %{libname}
This package contains the shared ruby %{version} library.

# TODO: Rename or not rename to ruby-rubygems?
%package -n rubygems
Summary:    The Ruby standard for packaging ruby libraries
Version:    %{rubygems_version}
License:    Ruby or MIT
Requires:   ruby(release)
Recommends: rubygem(bundler) >= %{bundler_version}
Recommends: rubygem(rdoc) >= %{rdoc_version}
Recommends: rubygem(io-console) >= %{io_console_version}
Requires:   rubygem(openssl) >= %{openssl_version}
Requires:   rubygem(psych) >= %{psych_version}
Provides:   gem = %{EVRD}
Provides:   ruby(rubygems) = %{rubygems_version}
# https://github.com/rubygems/rubygems/pull/1189#issuecomment-121600910
Provides:   bundled(rubygem-molinillo) = %{rubygems_molinillo_version}
BuildArch:  noarch

%description -n rubygems
RubyGems is the Ruby standard for publishing and managing third party
libraries.


%package -n rubygems-devel
Summary:    Macros and development tools for packaging RubyGems
Version:    %{rubygems_version}
License:    Ruby or MIT
Requires:   ruby(rubygems) >= %{EVRD}
# Needed for RDoc documentation format generation.
Requires:   rubygem(json) >= %{json_version}
Requires:   rubygem(rdoc) >= %{rdoc_version}
BuildArch:  noarch

%description -n rubygems-devel
Macros and development tools for packaging RubyGems.


# Default gems
#
# These packages are part of Ruby StdLib and are expected to be loadable even
# with disabled RubyGems.

%package default-gems
Summary:    Default gems which are part of Ruby StdLib
Requires:   ruby(rubygems) >= %{rubygems_version}
Supplements: ruby(rubygems)
# Obsoleted by Ruby 2.7 in F32 timeframe.
Obsoletes: rubygem-did_you_mean < 1.4.0-130
Obsoletes: rubygem-racc < 1.4.16-130
BuildArch:  noarch

%description default-gems
The .gemspec files and executables of default gems, which are part of Ruby
StdLib.


%package -n rubygem-irb
Summary:    The Interactive Ruby
Version:    %{irb_version}
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
# ruby-default-gems is required to run irb.
# https://bugs.ruby-lang.org/issues/16951
Requires:   ruby-default-gems >= %{ruby_version}
Provides:   irb = %{EVRD}
Provides:   rubygem(irb) = %{EVRD}
# Obsoleted by Ruby 2.6 in F30 timeframe.
Provides:   ruby(irb) = %{ruby_version}-%{release}
Provides:   ruby-irb = %{ruby_version}-%{release}
Obsoletes:  ruby-irb < %{ruby_version}-%{release}
BuildArch:  noarch

%description -n rubygem-irb
The irb is acronym for Interactive Ruby.  It evaluates ruby expression
from the terminal.


%package -n rubygem-rdoc
Summary:    A tool to generate HTML and command-line documentation for Ruby projects
Version:    %{rdoc_version}
# SIL: lib/rdoc/generator/template/darkfish/css/fonts.css
License:    GPLv2 and Ruby and MIT and OFL
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Requires:   rubygem(irb) >= %{irb_version}
Requires:   rubygem(io-console) >= %{io_console_version}
Requires:   rubygem(json) >= %{json_version}
Provides:   rdoc = %{rdoc_version}
Provides:   ri = %{rdoc_version}
Provides:   rubygem(rdoc) = %{rdoc_version}
BuildArch:  noarch

%description -n rubygem-rdoc
RDoc produces HTML and command-line documentation for Ruby projects.  RDoc
includes the 'rdoc' and 'ri' tools for generating and displaying online
documentation.


%package doc
Summary:    Documentation for %{name}
Requires:   %{_bindir}/ri
BuildArch:  noarch

%description doc
This package contains documentation for %{name}.


%package -n rubygem-bigdecimal
Summary:    BigDecimal provides arbitrary-precision floating point decimal arithmetic
Version:    %{bigdecimal_version}
License:    Ruby or BSD
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Provides:   rubygem(bigdecimal) = %{EVRD}

%description -n rubygem-bigdecimal
Ruby provides built-in support for arbitrary precision integer arithmetic.
For example:

42**13 -> 1265437718438866624512

BigDecimal provides similar support for very large or very accurate floating
point numbers. Decimal arithmetic is also useful for general calculation,
because it provides the correct answers people expect–whereas normal binary
floating point arithmetic often introduces subtle errors because of the
conversion between base 10 and base 2.


%package -n rubygem-io-console
Summary:    IO/Console is a simple console utilizing library
Version:    %{io_console_version}
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Provides:   rubygem(io-console) = %{EVRD}

%description -n rubygem-io-console
IO/Console provides very simple and portable access to console. It doesn't
provide higher layer features, such like curses and readline.


%package -n rubygem-json
Summary:    This is a JSON implementation as a Ruby extension in C
Version:    %{json_version}
# UCD: ext/json/generator/generator.c
License:    (Ruby or GPLv2) and UCD
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Provides:   rubygem(json) = %{EVRD}

%description -n rubygem-json
This is a implementation of the JSON specification according to RFC 4627.
You can think of it as a low fat alternative to XML, if you want to store
data to disk or transmit it over a network rather than use a verbose
markup language.


%package -n rubygem-openssl
Summary:    OpenSSL provides SSL, TLS and general purpose cryptography
Version:    %{openssl_version}
License:    Ruby or BSD
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Provides:   rubygem(openssl) = %{EVRD}

%description -n rubygem-openssl
OpenSSL provides SSL, TLS and general purpose cryptography. It wraps the
OpenSSL library.


%package -n rubygem-psych
Summary:    A libyaml wrapper for Ruby
Version:    %{psych_version}
License:    MIT
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Provides:   rubygem(psych) = %{psych_version}

%description -n rubygem-psych
Psych is a YAML parser and emitter. Psych leverages
libyaml[http://pyyaml.org/wiki/LibYAML] for its YAML parsing and emitting
capabilities. In addition to wrapping libyaml, Psych also knows how to
serialize and de-serialize most Ruby objects to and from the YAML format.


%package -n rubygem-bundler
Summary:    Library and utilities to manage a Ruby application's gem dependencies
Version:    %{bundler_version}
License:    MIT
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Requires:   rubygem(io-console)
Provides:   rubygem(bundler) = %{EVRD}
# https://github.com/bundler/bundler/issues/3647
Provides:   bundled(connection_pool) = %{bundler_connection_pool_version}
Provides:   bundled(rubygem-fileutils) = %{bundler_fileutils_version}
Provides:   bundled(rubygem-molinillo) = %{bundler_molinillo_version}
Provides:   bundled(rubygem-net-http-persisntent) = %{bundler_net_http_persistent_version}
Provides:   bundled(rubygem-thor) = %{bundler_thor_version}
BuildArch:  noarch

%description -n rubygem-bundler
Bundler manages an application's dependencies through its entire life, across
many machines, systematically and repeatably.


# Bundled gems
#
# These are regular packages, which might be installed just optionally. Users
# should list them among their dependencies (in Gemfile).


%package -n rubygem-power_assert
Summary:    Power Assert for Ruby
Version:    %{power_assert_version}
License:    Ruby or BSD
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Provides:   rubygem(power_assert) = %{EVRD}
BuildArch:  noarch

%description -n rubygem-power_assert
Power Assert shows each value of variables and method calls in the expression.
It is useful for testing, providing which value wasn't correct when the
condition is not satisfied.


%package -n rubygem-net-telnet
Summary:    Provides telnet client functionality
Version:    %{net_telnet_version}
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Provides:   rubygem(net-telnet) = %{EVRD}
BuildArch:  noarch

%description -n rubygem-net-telnet
Provides telnet client functionality.

This class also has, through delegation, all the methods of a socket object
(by default, a TCPSocket, but can be set by the Proxy option to new()). This
provides methods such as close() to end the session and sysread() to read data
directly from the host, instead of via the waitfor() mechanism. Note that if
you do use sysread() directly when in telnet mode, you should probably pass
the output through preprocess() to extract telnet command sequences.


%package -n rubygem-test-unit
Summary:    An xUnit family unit testing framework for Ruby
Version:    %{test_unit_version}
# lib/test/unit/diff.rb is a double license of the Ruby license and PSF license.
# lib/test-unit.rb is a dual license of the Ruby license and LGPLv2.1 or later.
License:    (Ruby or BSD) and (Ruby or BSD or Python) and (Ruby or BSD or LGPLv2+)
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Requires:   rubygem(power_assert)
Provides:   rubygem(test-unit) = %{EVRD}
BuildArch:  noarch

%description -n rubygem-test-unit
Test::Unit (test-unit) is unit testing framework for Ruby, based on xUnit
principles. These were originally designed by Kent Beck, creator of extreme
programming software development methodology, for Smalltalk's SUnit. It allows
writing tests, checking results and automated testing in Ruby.


%package -n rubygem-xmlrpc
Summary:    XMLRPC is a lightweight protocol that enables remote procedure calls over HTTP
Version:    %{xmlrpc_version}
License:    Ruby or BSD
Requires:   ruby(release)
Requires:   ruby(rubygems) >= %{rubygems_version}
Provides:   rubygem(xmlrpc) = %{EVRD}
BuildArch:  noarch

%description -n rubygem-xmlrpc
XMLRPC is a lightweight protocol that enables remote procedure calls over
HTTP.


%prep
%setup -q -n %{ruby_archive}

# Remove bundled libraries to be sure they are not used.
rm -rf ext/psych/yaml
rm -rf ext/fiddle/libffi*

# Don't build these gems here. They are built from their own projects.
rm -rf gems/minitest*
rm -rf gems/rake*

%autopatch -p1

# Provide an example of usage of the tapset:
cp -a %{SOURCE3} .

%build
autoconf
%configure \
        --with-rubylibprefix='%{ruby_libdir}' \
	--with-setjmp-type=setjmp \
        --with-archlibdir='%{_libdir}' \
        --with-rubyarchprefix='%{ruby_libarchdir}' \
        --with-sitedir='%{ruby_sitelibdir}' \
        --with-sitearchdir='%{ruby_sitearchdir}' \
        --with-vendordir='%{ruby_vendorlibdir}' \
        --with-vendorarchdir='%{ruby_vendorarchdir}' \
        --with-rubyhdrdir='%{_includedir}' \
        --with-rubyarchhdrdir='%{_includedir}' \
        --with-sitearchhdrdir='$(sitehdrdir)/$(arch)' \
        --with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \
        --with-rubygemsdir='%{rubygems_dir}' \
        --with-ruby-pc='%{name}.pc' \
        --with-compress-debug-sections=no \
        --disable-rpath \
        --enable-shared \
        --with-ruby-version='' \
%ifarch %{e2k}
        --disable-jit-support \
	--disable-dtrace \
%endif
        --enable-multiarch \

# Q= makes the build output more verbose and allows to check Fedora
# compiler options.
make %{?_smp_mflags} COPY="cp -p" Q=

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

# Rename the ruby executable. It is replaced by RubyPick.
%{?with_rubypick:mv %{buildroot}%{_bindir}/%{name}{,-mri}}

# Version is empty if --with-ruby-version is specified.
# http://bugs.ruby-lang.org/issues/7807
sed -i 's/Version: \${ruby_version}/Version: %{ruby_version}/' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

# Kill bundled certificates, as they should be part of ca-certificates.
for cert in \
  rubygems.global.ssl.fastly.net/DigiCertHighAssuranceEVRootCA.pem \
  rubygems.org/AddTrustExternalCARoot.pem \
  index.rubygems.org/GlobalSignRootCA.pem
do
  rm %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/$cert
  rm -r $(dirname %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/$cert)
done
# Ensure there is not forgotten any certificate.
test ! "$(ls -A  %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/ 2>/dev/null)"

# Move macros file into proper place and replace the %%{name} macro, since it
# would be wrongly evaluated during build of other packages.
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
install -m 644 %{SOURCE4} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ruby
sed -i "s/%%{name}/%{name}/" %{buildroot}%{_rpmconfigdir}/macros.d/macros.ruby
install -m 644 %{SOURCE5} %{buildroot}%{_rpmconfigdir}/macros.d/macros.rubygems
sed -i "s/%%{name}/%{name}/" %{buildroot}%{_rpmconfigdir}/macros.d/macros.rubygems

# Install dependency generators.
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs
install -m 644 %{SOURCE8} %{buildroot}%{_rpmconfigdir}/fileattrs
install -m 755 %{SOURCE9} %{buildroot}%{_rpmconfigdir}
install -m 755 %{SOURCE10} %{buildroot}%{_rpmconfigdir}
install -m 755 %{SOURCE11} %{buildroot}%{_rpmconfigdir}

# Install custom operating_system.rb.
mkdir -p %{buildroot}%{rubygems_dir}/rubygems/defaults
cp %{SOURCE1} %{buildroot}%{rubygems_dir}/rubygems/defaults

# Move gems root into common direcotry, out of Ruby directory structure.
mv %{buildroot}%{ruby_libdir}/gems %{buildroot}%{gem_dir}

# Create folders for gem binary extensions.
# TODO: These folders should go into rubygem-filesystem but how to achieve it,
# since noarch package cannot provide arch dependent subpackages?
# http://rpm.org/ticket/78
mkdir -p %{buildroot}%{_exec_prefix}/lib{,64}/gems/%{name}

# Move bundled rubygems to %%gem_dir and %%gem_extdir_mri
# make symlinks for io-console and bigdecimal, which are considered to be part of stdlib by other Gems
mkdir -p %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
mv %{buildroot}%{ruby_libdir}/irb* %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
mv %{buildroot}%{gem_dir}/specifications/default/irb-%{irb_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/irb-%{irb_version}/lib/irb.rb %{buildroot}%{ruby_libdir}/irb.rb
# TODO: This should be possible to replaced by simple directory symlink
# after ~ F31 EOL (rhbz#1691039).
mkdir -p %{buildroot}%{ruby_libdir}/irb
pushd %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
find irb -type d -mindepth 1 -exec mkdir %{buildroot}%{ruby_libdir}/'{}' \;
find irb -type f -exec ln -s %{gem_dir}/gems/irb-%{irb_version}/lib/'{}' %{buildroot}%{ruby_libdir}/'{}' \;
popd

mkdir -p %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
mv %{buildroot}%{ruby_libdir}/rdoc* %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
mv %{buildroot}%{gem_dir}/specifications/default/rdoc-%{rdoc_version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{gem_dir}/gems/bigdecimal-%{bigdecimal_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems/%{name}/bigdecimal-%{bigdecimal_version}/bigdecimal
mv %{buildroot}%{ruby_libdir}/bigdecimal %{buildroot}%{gem_dir}/gems/bigdecimal-%{bigdecimal_version}/lib
mv %{buildroot}%{ruby_libarchdir}/bigdecimal.so %{buildroot}%{_libdir}/gems/%{name}/bigdecimal-%{bigdecimal_version}
mv %{buildroot}%{gem_dir}/specifications/default/bigdecimal-%{bigdecimal_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/bigdecimal-%{bigdecimal_version}/lib/bigdecimal %{buildroot}%{ruby_libdir}/bigdecimal
ln -s %{_libdir}/gems/%{name}/bigdecimal-%{bigdecimal_version}/bigdecimal.so %{buildroot}%{ruby_libarchdir}/bigdecimal.so

# TODO: Put help files into proper location.
# https://bugs.ruby-lang.org/issues/15359
mkdir -p %{buildroot}%{gem_dir}/gems/bundler-%{bundler_version}/lib
mv %{buildroot}%{ruby_libdir}/bundler.rb %{buildroot}%{gem_dir}/gems/bundler-%{bundler_version}/lib
mv %{buildroot}%{ruby_libdir}/bundler %{buildroot}%{gem_dir}/gems/bundler-%{bundler_version}/lib
mv %{buildroot}%{gem_dir}/specifications/default/bundler-%{bundler_version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{gem_dir}/gems/io-console-%{io_console_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems/%{name}/io-console-%{io_console_version}/io
mv %{buildroot}%{ruby_libdir}/io %{buildroot}%{gem_dir}/gems/io-console-%{io_console_version}/lib
mv %{buildroot}%{ruby_libarchdir}/io/console.so %{buildroot}%{_libdir}/gems/%{name}/io-console-%{io_console_version}/io
mv %{buildroot}%{gem_dir}/specifications/default/io-console-%{io_console_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/io-console-%{io_console_version}/lib/io %{buildroot}%{ruby_libdir}/io
ln -s %{_libdir}/gems/%{name}/io-console-%{io_console_version}/io/console.so %{buildroot}%{ruby_libarchdir}/io/console.so

mkdir -p %{buildroot}%{gem_dir}/gems/json-%{json_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems/%{name}/json-%{json_version}
mv %{buildroot}%{ruby_libdir}/json* %{buildroot}%{gem_dir}/gems/json-%{json_version}/lib
mv %{buildroot}%{ruby_libarchdir}/json/ %{buildroot}%{_libdir}/gems/%{name}/json-%{json_version}/
mv %{buildroot}%{gem_dir}/specifications/default/json-%{json_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/json-%{json_version}/lib/json.rb %{buildroot}%{ruby_libdir}/json.rb
ln -s %{gem_dir}/gems/json-%{json_version}/lib/json %{buildroot}%{ruby_libdir}/json
ln -s %{_libdir}/gems/%{name}/json-%{json_version}/json/ %{buildroot}%{ruby_libarchdir}/json

mkdir -p %{buildroot}%{gem_dir}/gems/openssl-%{openssl_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems/%{name}/openssl-%{openssl_version}
mv %{buildroot}%{ruby_libdir}/openssl* %{buildroot}%{gem_dir}/gems/openssl-%{openssl_version}/lib
mv %{buildroot}%{ruby_libarchdir}/openssl.so %{buildroot}%{_libdir}/gems/%{name}/openssl-%{openssl_version}/
mv %{buildroot}%{gem_dir}/specifications/default/openssl-%{openssl_version}.gemspec %{buildroot}%{gem_dir}/specifications
# This used to be directory when OpenSSL was integral part of StdLib => Keep
# it as directory and link everything in it to prevent directory => symlink
# conversion RPM issues.
mkdir -p %{buildroot}%{ruby_libdir}/openssl
find %{buildroot}%{gem_dir}/gems/openssl-%{openssl_version}/lib/openssl -maxdepth 1 -type f -exec \
  sh -c 'ln -s %{gem_dir}/gems/openssl-%{openssl_version}/lib/openssl/`basename {}` %{buildroot}%{ruby_libdir}/openssl' \;
ln -s %{gem_dir}/gems/openssl-%{openssl_version}/lib/openssl.rb %{buildroot}%{ruby_libdir}/openssl.rb
ln -s %{_libdir}/gems/%{name}/openssl-%{openssl_version}/openssl.so %{buildroot}%{ruby_libarchdir}/openssl.so

mkdir -p %{buildroot}%{gem_dir}/gems/psych-%{psych_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems/%{name}/psych-%{psych_version}
mv %{buildroot}%{ruby_libdir}/psych* %{buildroot}%{gem_dir}/gems/psych-%{psych_version}/lib
mv %{buildroot}%{ruby_libarchdir}/psych.so %{buildroot}%{_libdir}/gems/%{name}/psych-%{psych_version}/
mv %{buildroot}%{gem_dir}/specifications/default/psych-%{psych_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/psych-%{psych_version}/lib/psych %{buildroot}%{ruby_libdir}/psych
ln -s %{gem_dir}/gems/psych-%{psych_version}/lib/psych.rb %{buildroot}%{ruby_libdir}/psych.rb
ln -s %{_libdir}/gems/%{name}/psych-%{psych_version}/psych.so %{buildroot}%{ruby_libarchdir}/psych.so

# Move the binary extensions into proper place (if no gem has binary extension,
# the extensions directory might be empty).
find %{buildroot}%{gem_dir}/extensions/*-%{_target_os}/%{ruby_version}/* -maxdepth 0 \
  -exec mv '{}' %{buildroot}%{_libdir}/gems/%{name}/ \; \
  || echo "No gem binary extensions to move."

%if %{with systemtap}
# Install a tapset and fix up the path to the library.
mkdir -p %{buildroot}%{tapset_dir}
sed -e "s|@LIBRARY_PATH@|%{tapset_libdir}/libruby.so.%{major_minor_version}|" \
  %{SOURCE2} > %{buildroot}%{tapset_dir}/libruby.so.%{major_minor_version}.stp
# Escape '*/' in comment.
sed -i -r "s|( \*.*\*)\/(.*)|\1\\\/\2|" %{buildroot}%{tapset_dir}/libruby.so.%{major_minor_version}.stp
%endif

# Prepare -doc subpackage file lists.
find doc -maxdepth 1 -type f ! -name '.*' ! -name '*.ja*' > .ruby-doc.en
echo 'doc/images' >> .ruby-doc.en
echo 'doc/syntax' >> .ruby-doc.en

find doc -maxdepth 1 -type f -name '*.ja*' > .ruby-doc.ja
echo 'doc/irb' >> .ruby-doc.ja
echo 'doc/pty' >> .ruby-doc.ja

sed -i 's/^/%doc /' .ruby-doc.*
sed -i 's/^/%lang(ja) /' .ruby-doc.ja

%check
make test


%files
%license BSDL
%license COPYING
%lang(ja) %license COPYING.ja
%license GPL
%license LEGAL
%{_bindir}/erb
%{_bindir}/%{name}%{?with_rubypick:-mri}
%{_mandir}/man1/erb*
%{_mandir}/man1/ruby*

%files devel
%license BSDL
%license COPYING
%lang(ja) %license COPYING.ja
%license GPL
%license LEGAL

%{_rpmconfigdir}/macros.d/macros.ruby

%{_includedir}/*
%{_libdir}/libruby.so
%{_libdir}/pkgconfig/%{name}.pc

%files -n %{libname}
%license COPYING
%lang(ja) %license COPYING.ja
%license GPL
%license LEGAL
%doc README.md
%doc NEWS
# Exclude /usr/local directory since it is supposed to be managed by
# local system administrator.
%exclude %{ruby_sitelibdir}
%exclude %{ruby_sitearchdir}
%dir %{ruby_vendorlibdir}
%dir %{ruby_vendorarchdir}

# List all these files explicitly to prevent surprises
# Platform independent libraries.
%dir %{ruby_libdir}
%exclude %{ruby_libdir}/bigdecimal*
%exclude %{ruby_libdir}/irb*
%exclude %{ruby_libdir}/json*
%exclude %{ruby_libdir}/openssl*
%exclude %{ruby_libdir}/psych*
%{ruby_libdir}/abbrev.rb
%{ruby_libdir}/base64.rb
%{ruby_libdir}/benchmark*
%{ruby_libdir}/cgi*
%{ruby_libdir}/coverage.rb
%{ruby_libdir}/csv*
%{ruby_libdir}/date.rb
%{ruby_libdir}/debug.rb
%{ruby_libdir}/delegate*
%{ruby_libdir}/digest*
%{ruby_libdir}/drb*
%{ruby_libdir}/English.rb
%{ruby_libdir}/erb.rb
%{ruby_libdir}/expect.rb
%{ruby_libdir}/fiddle*
%{ruby_libdir}/fileutils.rb
%{ruby_libdir}/find.rb
%{ruby_libdir}/forwardable*
%{ruby_libdir}/getoptlong*
%{ruby_libdir}/io
%{ruby_libdir}/ipaddr.rb
%{ruby_libdir}/kconv.rb
%{ruby_libdir}/logger*
%{ruby_libdir}/matrix*
%{ruby_libdir}/mkmf.rb
%{ruby_libdir}/monitor.rb
%{ruby_libdir}/mutex_m.rb
%{ruby_libdir}/net
%{ruby_libdir}/observer*
%{ruby_libdir}/open-uri.rb
%{ruby_libdir}/open3*
%{ruby_libdir}/optionparser.rb
%{ruby_libdir}/optparse*
%{ruby_libdir}/ostruct*
%{ruby_libdir}/pathname.rb
%{ruby_libdir}/pp.rb
%{ruby_libdir}/prettyprint.rb
%{ruby_libdir}/prime.rb
%{ruby_libdir}/pstore*
%{ruby_libdir}/readline.rb
%{ruby_libdir}/reline*
%{ruby_libdir}/resolv.rb
%{ruby_libdir}/resolv-replace.rb
%{ruby_libdir}/rexml
%{ruby_libdir}/rinda
%{ruby_libdir}/ripper*
%{ruby_libdir}/rss*
%{ruby_libdir}/securerandom.rb
%{ruby_libdir}/set.rb
%{ruby_libdir}/shellwords.rb
%{ruby_libdir}/singleton*
%{ruby_libdir}/socket.rb
%{ruby_libdir}/syslog
%{ruby_libdir}/tempfile.rb
%{ruby_libdir}/timeout*
%{ruby_libdir}/time.rb
%{ruby_libdir}/tmpdir.rb
%{ruby_libdir}/tracer*
%{ruby_libdir}/tsort.rb
%{ruby_libdir}/unicode_normalize
%{ruby_libdir}/un.rb
%{ruby_libdir}/uri*
%{ruby_libdir}/weakref*
%{ruby_libdir}/webrick*
%{ruby_libdir}/yaml*

# Platform specific libraries.
%{_libdir}/libruby.so.*
%dir %{ruby_libarchdir}
%dir %{ruby_libarchdir}/cgi
%{ruby_libarchdir}/cgi/escape.so
%{ruby_libarchdir}/continuation.so
%{ruby_libarchdir}/coverage.so
%{ruby_libarchdir}/date_core.so
%{ruby_libarchdir}/dbm.so
%dir %{ruby_libarchdir}/digest
%{ruby_libarchdir}/digest.so
%{ruby_libarchdir}/digest/bubblebabble.so
%{ruby_libarchdir}/digest/md5.so
%{ruby_libarchdir}/digest/rmd160.so
%{ruby_libarchdir}/digest/sha1.so
%{ruby_libarchdir}/digest/sha2.so
%dir %{ruby_libarchdir}/enc
%{ruby_libarchdir}/enc/big5.so
%{ruby_libarchdir}/enc/cesu_8.so
%{ruby_libarchdir}/enc/cp949.so
%{ruby_libarchdir}/enc/emacs_mule.so
%{ruby_libarchdir}/enc/encdb.so
%{ruby_libarchdir}/enc/euc_jp.so
%{ruby_libarchdir}/enc/euc_kr.so
%{ruby_libarchdir}/enc/euc_tw.so
%{ruby_libarchdir}/enc/gb18030.so
%{ruby_libarchdir}/enc/gb2312.so
%{ruby_libarchdir}/enc/gbk.so
%{ruby_libarchdir}/enc/iso_8859_1.so
%{ruby_libarchdir}/enc/iso_8859_10.so
%{ruby_libarchdir}/enc/iso_8859_11.so
%{ruby_libarchdir}/enc/iso_8859_13.so
%{ruby_libarchdir}/enc/iso_8859_14.so
%{ruby_libarchdir}/enc/iso_8859_15.so
%{ruby_libarchdir}/enc/iso_8859_16.so
%{ruby_libarchdir}/enc/iso_8859_2.so
%{ruby_libarchdir}/enc/iso_8859_3.so
%{ruby_libarchdir}/enc/iso_8859_4.so
%{ruby_libarchdir}/enc/iso_8859_5.so
%{ruby_libarchdir}/enc/iso_8859_6.so
%{ruby_libarchdir}/enc/iso_8859_7.so
%{ruby_libarchdir}/enc/iso_8859_8.so
%{ruby_libarchdir}/enc/iso_8859_9.so
%{ruby_libarchdir}/enc/koi8_r.so
%{ruby_libarchdir}/enc/koi8_u.so
%{ruby_libarchdir}/enc/shift_jis.so
%dir %{ruby_libarchdir}/enc/trans
%{ruby_libarchdir}/enc/trans/big5.so
%{ruby_libarchdir}/enc/trans/cesu_8.so
%{ruby_libarchdir}/enc/trans/chinese.so
%{ruby_libarchdir}/enc/trans/ebcdic.so
%{ruby_libarchdir}/enc/trans/emoji.so
%{ruby_libarchdir}/enc/trans/emoji_iso2022_kddi.so
%{ruby_libarchdir}/enc/trans/emoji_sjis_docomo.so
%{ruby_libarchdir}/enc/trans/emoji_sjis_kddi.so
%{ruby_libarchdir}/enc/trans/emoji_sjis_softbank.so
%{ruby_libarchdir}/enc/trans/escape.so
%{ruby_libarchdir}/enc/trans/gb18030.so
%{ruby_libarchdir}/enc/trans/gbk.so
%{ruby_libarchdir}/enc/trans/iso2022.so
%{ruby_libarchdir}/enc/trans/japanese.so
%{ruby_libarchdir}/enc/trans/japanese_euc.so
%{ruby_libarchdir}/enc/trans/japanese_sjis.so
%{ruby_libarchdir}/enc/trans/korean.so
%{ruby_libarchdir}/enc/trans/single_byte.so
%{ruby_libarchdir}/enc/trans/transdb.so
%{ruby_libarchdir}/enc/trans/utf8_mac.so
%{ruby_libarchdir}/enc/trans/utf_16_32.so
%{ruby_libarchdir}/enc/utf_16be.so
%{ruby_libarchdir}/enc/utf_16le.so
%{ruby_libarchdir}/enc/utf_32be.so
%{ruby_libarchdir}/enc/utf_32le.so
%{ruby_libarchdir}/enc/windows_1250.so
%{ruby_libarchdir}/enc/windows_1251.so
%{ruby_libarchdir}/enc/windows_1252.so
%{ruby_libarchdir}/enc/windows_1253.so
%{ruby_libarchdir}/enc/windows_1254.so
%{ruby_libarchdir}/enc/windows_1257.so
%{ruby_libarchdir}/enc/windows_31j.so
%{ruby_libarchdir}/etc.so
%{ruby_libarchdir}/fcntl.so
%{ruby_libarchdir}/fiber.so
%{ruby_libarchdir}/fiddle.so
%{ruby_libarchdir}/gdbm.so
%dir %{ruby_libarchdir}/io
%{ruby_libarchdir}/io/nonblock.so
%{ruby_libarchdir}/io/wait.so
%{ruby_libarchdir}/monitor.so
%{ruby_libarchdir}/nkf.so
%{ruby_libarchdir}/objspace.so
%{ruby_libarchdir}/pathname.so
%{ruby_libarchdir}/pty.so
%dir %{ruby_libarchdir}/rbconfig
%{ruby_libarchdir}/rbconfig.rb
%{ruby_libarchdir}/rbconfig/sizeof.so
%{ruby_libarchdir}/readline.so
%{ruby_libarchdir}/ripper.so
%{ruby_libarchdir}/sdbm.so
%{ruby_libarchdir}/socket.so
%{ruby_libarchdir}/stringio.so
%{ruby_libarchdir}/strscan.so
%{ruby_libarchdir}/syslog.so
%{ruby_libarchdir}/zlib.so

# Default gems
%{ruby_libdir}/did_you_mean*
%{ruby_libdir}/racc*
%dir %{ruby_libarchdir}/racc
%{ruby_libarchdir}/racc/cparse.so

%{?with_systemtap:%{tapset_root}}

%files -n rubygems
%{_bindir}/gem
%dir %{rubygems_dir}
%{rubygems_dir}/rubygems
%{rubygems_dir}/rubygems.rb

# Explicitly include only RubyGems directory strucure to avoid accidentally
# packaged content.
%dir %{gem_dir}
%dir %{gem_dir}/build_info
%dir %{gem_dir}/cache
%dir %{gem_dir}/doc
%dir %{gem_dir}/extensions
%dir %{gem_dir}/gems
%dir %{gem_dir}/specifications
%dir %{gem_dir}/specifications/default
%dir %{_exec_prefix}/lib*/gems
%dir %{_exec_prefix}/lib*/gems/ruby

%exclude %{gem_dir}/cache/*

%files -n rubygems-devel
%{_rpmconfigdir}/macros.d/macros.rubygems
%{_rpmconfigdir}/fileattrs/rubygems.attr
%{_rpmconfigdir}/rubygems.req
%{_rpmconfigdir}/rubygems.prov
%{_rpmconfigdir}/rubygems.con

%files default-gems
%{gem_dir}/specifications/default/benchmark-0.1.0.gemspec
%{gem_dir}/specifications/default/cgi-0.1.0.2.gemspec
%{gem_dir}/specifications/default/csv-3.1.2.gemspec
%{gem_dir}/specifications/default/date-3.0.3.gemspec
%{gem_dir}/specifications/default/dbm-1.1.0.gemspec
%{gem_dir}/specifications/default/delegate-0.1.0.gemspec
%{gem_dir}/specifications/default/did_you_mean-%{did_you_mean_version}.gemspec
%{gem_dir}/specifications/default/etc-1.1.0.gemspec
%{gem_dir}/specifications/default/fcntl-1.0.0.gemspec
%{gem_dir}/specifications/default/fiddle-1.0.0.gemspec
%{gem_dir}/specifications/default/fileutils-1.4.1.gemspec
%{gem_dir}/specifications/default/forwardable-1.3.1.gemspec
%{gem_dir}/specifications/default/gdbm-2.1.0.gemspec
%{gem_dir}/specifications/default/getoptlong-0.1.0.gemspec
%{gem_dir}/specifications/default/ipaddr-1.2.2.gemspec
%{gem_dir}/specifications/default/logger-1.4.2.gemspec
%{gem_dir}/specifications/default/matrix-0.2.0.gemspec
%{gem_dir}/specifications/default/mutex_m-0.1.0.gemspec
%{gem_dir}/specifications/default/net-pop-0.1.0.gemspec
%{gem_dir}/specifications/default/net-smtp-0.1.0.gemspec
%{gem_dir}/specifications/default/observer-0.1.0.gemspec
%{gem_dir}/specifications/default/open3-0.1.0.gemspec
%{gem_dir}/specifications/default/ostruct-0.2.0.gemspec
%{gem_dir}/specifications/default/prime-0.1.1.gemspec
%{gem_dir}/specifications/default/pstore-0.1.0.gemspec
%{gem_dir}/specifications/default/racc-%{racc_version}.gemspec
%{gem_dir}/specifications/default/readline-0.0.2.gemspec
%{gem_dir}/specifications/default/readline-ext-0.1.0.gemspec
%{gem_dir}/specifications/default/reline-0.1.5.gemspec
%{gem_dir}/specifications/default/rexml-3.2.3.1.gemspec
%{gem_dir}/specifications/default/rss-0.2.8.gemspec
%{gem_dir}/specifications/default/sdbm-1.0.0.gemspec
%{gem_dir}/specifications/default/singleton-0.1.0.gemspec
%{gem_dir}/specifications/default/stringio-0.1.0.gemspec
%{gem_dir}/specifications/default/strscan-1.0.3.gemspec
%{gem_dir}/specifications/default/timeout-0.1.0.gemspec
%{gem_dir}/specifications/default/tracer-0.1.0.gemspec
%{gem_dir}/specifications/default/uri-0.10.0.2.gemspec
%{gem_dir}/specifications/default/webrick-1.6.1.gemspec
%{gem_dir}/specifications/default/yaml-0.1.0.gemspec
%{gem_dir}/specifications/default/zlib-1.1.0.gemspec

# Use standalone rubygem-racc if Racc binary is required. Shipping this
# executable in both packages might possibly cause conflicts. The situation
# could be better if Ruby generated these files:
# https://github.com/ruby/ruby/pull/2545
%exclude %{_bindir}/racc
# These have wrong shebangs. Exclude them for now and let's see what upstream
# thinks about them.
# https://bugs.ruby-lang.org/issues/15982
%exclude %{_bindir}/{racc2y,y2racc}
%exclude %{gem_dir}/gems/racc-%{racc_version}/bin/{racc2y,y2racc}
%{gem_dir}/gems/racc-%{racc_version}

%files -n rubygem-irb
%{_bindir}/irb
%{ruby_libdir}/irb*
%{gem_dir}/gems/irb-%{irb_version}
%{gem_dir}/specifications/irb-%{irb_version}.gemspec
%{_mandir}/man1/irb.1*

%files -n rubygem-rdoc
%{_bindir}/rdoc
%{_bindir}/ri
%{gem_dir}/gems/rdoc-%{rdoc_version}
%{gem_dir}/specifications/rdoc-%{rdoc_version}.gemspec
%{_mandir}/man1/ri*

%files doc -f .ruby-doc.en -f .ruby-doc.ja
%doc README.md
%doc ChangeLog
%{?with_systemtap:%doc ruby-exercise.stp}
%{_datadir}/ri

%files -n rubygem-bigdecimal
%{ruby_libdir}/bigdecimal*
%{ruby_libarchdir}/bigdecimal*
%{_libdir}/gems/%{name}/bigdecimal-%{bigdecimal_version}
%{gem_dir}/gems/bigdecimal-%{bigdecimal_version}
%{gem_dir}/specifications/bigdecimal-%{bigdecimal_version}.gemspec

%files -n rubygem-io-console
%{ruby_libdir}/io
%{ruby_libarchdir}/io/console.so
%{_libdir}/gems/%{name}/io-console-%{io_console_version}
%{gem_dir}/gems/io-console-%{io_console_version}
%{gem_dir}/specifications/io-console-%{io_console_version}.gemspec

%files -n rubygem-json
%{ruby_libdir}/json*
%{ruby_libarchdir}/json*
%{_libdir}/gems/%{name}/json-%{json_version}
%{gem_dir}/gems/json-%{json_version}
%{gem_dir}/specifications/json-%{json_version}.gemspec

%files -n rubygem-openssl
%{ruby_libdir}/openssl
%{ruby_libdir}/openssl.rb
%{ruby_libarchdir}/openssl.so
%{_libdir}/gems/%{name}/openssl-%{openssl_version}
%{gem_dir}/gems/openssl-%{openssl_version}
%{gem_dir}/specifications/openssl-%{openssl_version}.gemspec

%files -n rubygem-psych
%{ruby_libdir}/psych
%{ruby_libdir}/psych.rb
%{ruby_libarchdir}/psych.so
%{_libdir}/gems/%{name}/psych-%{psych_version}
%{gem_dir}/gems/psych-%{psych_version}
%{gem_dir}/specifications/psych-%{psych_version}.gemspec

%files -n rubygem-bundler
%{_bindir}/bundle
%{_bindir}/bundler
%{gem_dir}/gems/bundler-%{bundler_version}
%{gem_dir}/specifications/bundler-%{bundler_version}.gemspec
%{_mandir}/man1/bundle*.1*
%{_mandir}/man5/gemfile.5*

%files -n rubygem-net-telnet
%{gem_dir}/gems/net-telnet-%{net_telnet_version}
%exclude %{gem_dir}/gems/net-telnet-%{net_telnet_version}/.*
%{gem_dir}/specifications/net-telnet-%{net_telnet_version}.gemspec

%files -n rubygem-power_assert
%{gem_dir}/gems/power_assert-%{power_assert_version}
%exclude %{gem_dir}/gems/power_assert-%{power_assert_version}/.*
%{gem_dir}/specifications/power_assert-%{power_assert_version}.gemspec

%files -n rubygem-test-unit
%{gem_dir}/gems/test-unit-%{test_unit_version}
%{gem_dir}/specifications/test-unit-%{test_unit_version}.gemspec

%files -n rubygem-xmlrpc
%license %{gem_dir}/gems/xmlrpc-%{xmlrpc_version}/LICENSE.txt
%dir %{gem_dir}/gems/xmlrpc-%{xmlrpc_version}
%exclude %{gem_dir}/gems/xmlrpc-%{xmlrpc_version}/.*
%{gem_dir}/gems/xmlrpc-%{xmlrpc_version}/Gemfile
%{gem_dir}/gems/xmlrpc-%{xmlrpc_version}/Rakefile
%doc %{gem_dir}/gems/xmlrpc-%{xmlrpc_version}/README.md
%{gem_dir}/gems/xmlrpc-%{xmlrpc_version}/bin
%{gem_dir}/gems/xmlrpc-%{xmlrpc_version}/lib
%{gem_dir}/gems/xmlrpc-%{xmlrpc_version}/xmlrpc.gemspec
%{gem_dir}/specifications/xmlrpc-%{xmlrpc_version}.gemspec

# CVE-2012-6684 - https://abf.io/import/rubygem-RedCloth - drop from repo
# CVE-2013-0256 < ruby-rdoc 3.12, but we have 6.2.1.1 %%rdoc_version
# CVE-2013-0334 < 1.7.0
# CVE-2013-1607 - PDFKit gem
# CVE-2013-1812 - https://abf.io/import/rubygem-ruby-openid - drop from repo
# CVE-2013-1821 <= 1.9.3
# CVE-2013-2065 <= 2.0.0
# CVE-2013-2090 - Creme Fraiche gem
# CVE-2013-2095 - rubygem-openshift-origin-controller
# CVE-2013-2105 - show_in_browser gem
# CVE-2013-2512 - ftpd gem
# CVE-2013-2516 <= FileUtils gem 0.7, but have 1.3.0 %%bundler_fileutils_version
# CVE-2013-2617 - Curl Gem
# CVE-2013-4073 < 2.0.0-p247
# CVE-2013-4164 < 2.1.0
# CVE-2013-4203 - rgpg gem
# CVE-2013-4287 < 2.0.0p247
# CVE-2013-4318 - gem Features 0.3.0
# CVE-2013-4363 < 2.1.5
# CVE-2013-4457 - Cocaine gem
# CVE-2013-4492 - https://abf.io/import/rubygem-i18n <= 0.6.5, but have 1.8.5
# CVE-2013-4562 - omniauth-facebook gem
# CVE-2013-4593 - omniauth-facebook gem
# CVE-2013-5671 - fog-dragonfly gem
# CVE-2013-6421 - sprout gem
# CVE-2013-6459 - will_paginate gem
# CVE-2013-7086 - Webbynode gem
# CVE-2013-7111 - bio-basespace-sdk gem
# CVE-2013-7463 - aescrypt gem
# CVE-2015-2963 - thoughtbot paperclip gem
# CVE-2015-3448 - rest-client
# CVE-2015-3900 <= RubyGems 2.4.7, but we have 3.1.2 %%rubygems_version
# CVE-2015-4410 - rubygem-moped
# CVE-2015-4411 - mongodb/bson-ruby <3.0.4, but have https://abf.io/import/mongodb - 4.4.8
# CVE-2015-4412 - mongodb/bson-ruby <3.0.4, but have https://abf.io/import/mongodb - 4.4.8
# CVE-2015-5460 - Snorby
# CVE-2015-7541 - colorscore gem
# CVE-2015-7551 < 2.2.4
# CVE-2015-9096 <= 2.4.0
# CVE-2015-9097 - https://abf.io/import/rubygem-mail - drop from repo
# CVE-2015-9284 - OmniAuth Ruby gem
# CVE-2016-6582 - Doorkeeper gem
# CVE-2016-7798 < openssl gem 2.0.0, but we have 2.1.3 %%openssl_version
# CVE-2017-1002201 - https://abf.io/import/rubygem-haml - drop from repo
# CVE-2017-10784 < 2.4.1
# CVE-2017-11173 - rack-cors
# CVE-2017-11465 = 2.4.1
# CVE-2017-12097 - delayed_job_web rails gem
# CVE-2017-12098 - rails_admin rails gem
# CVE-2017-14033 < 2.4.1
# CVE-2017-14064 < 2.4.1
# CVE-2017-14506 - geminabox
# CVE-2017-14683 - geminabox
# CVE-2017-15928 - Ox gem
# CVE-2017-16229 - Ox gem
# CVE-2017-16516 - yajl-ruby gem
# CVE-2017-16792 - geminabox
# CVE-2017-16833 - Gemirro
# CVE-2017-17405 < 2.4.3
# CVE-2017-17718 - net-ldap gem
# CVE-2017-17742 < 2.6.0
# CVE-2017-17790 < 2.4.3
# CVE-2017-18076 - OmniAuth Ruby gem
# CVE-2017-5946 < rubyzip gem 1.2.1, but have https://abf.io/import/rubygem-rubyzip 2.3.0
# CVE-2017-6181 < 2.4.0
# CVE-2017-7540 - Foreman
# CVE-2017-9225 <= 2.4.1
# CVE-2017-9229 <= 2.4.1
# CVE-2018-1000088 - Doorkeeper
# CVE-2018-1000842 - FatFreeCRM
# CVE-2018-1000855 - easymon
# CVE-2018-16395 <= 2.6.0
# CVE-2018-16396 <= 2.6.0
# CVE-2018-16468 - https://abf.io/import/rubygem-loofah - drop from repo
# CVE-2018-3740 - https://abf.io/import/rubygem-rails-html-sanitizer - drop from repo
# CVE-2018-3741 - https://abf.io/import/rubygem-rails-html-sanitizer - drop from repo
# CVE-2018-3759 - private_address_check ruby gem
# CVE-2018-3777 - restforce
# CVE-2018-3779 < active-support ruby gem 5.2.0, but have https://abf.io/import/rubygem-activesupport 6.0.3.4
# CVE-2018-6914 <= 2.6.0
# CVE-2018-8048 - https://abf.io/import/rubygem-loofah - drop from repo
# CVE-2018-8777 <= 2.6.0
# CVE-2018-8778 <= 2.6.0
# CVE-2018-8779 <= 2.6.0
# CVE-2018-8780 <= 2.6.0
# CVE-2019-12732 - Chartkick gem
# CVE-2019-13146 - field_test gem
# CVE-2019-13354 - strong_password gem
# CVE-2019-13589 - paranoid2 gem
# CVE-2019-14281 - datagrid gem
# CVE-2019-14282 - simple_captcha2 gem
# CVE-2019-15224 - rest-client gem
# CVE-2019-15587 - https://abf.io/import/rubygem-loofah - drop from repo
# CVE-2019-15845 <= 2.6.4
# CVE-2019-16201 <= 2.6.4
# CVE-2019-16254 <= 2.6.4
# CVE-2019-16255 <= 2.6.4
# CVE-2019-16377 - makandra consul gem
# CVE-2019-16770 - Puma
# CVE-2019-16782 < RubyGem rack 2.0.8, but have https://abf.io/import/rubygem-rack 2.2.3
# CVE-2019-17268 - omniauth-weibo-oauth2 gem
# CVE-2019-17383 - netaddr gem
# CVE-2019-18409 - legacy gem
# CVE-2019-18848 - json-jwt gem
# CVE-2019-18978 - rack-cors
# CVE-2019-25061 - RandomPasswordGenerator gem
# CVE-2019-3881 < Bundler 2.1.0 , but have https://abf.io/import/rubygem-bundler 2.3.26
# CVE-2020-10716 - tfm-rubygem-foreman_ansible
# CVE-2020-11020 - Faye
# CVE-2020-11052 - Sorcery
# CVE-2020-11076 - Puma
# CVE-2020-11077 - Puma
# CVE-2020-14001 < kramdown gem 2.3.0, but have https://abf.io/import/rubygem-kramdown 2.3.1
# CVE-2020-15169 - Action View
# CVE-2020-15237 - Shrine
# CVE-2020-15240 - omniauth-auth0
# CVE-2020-16252 - field_test gem
# CVE-2020-16253 - PgHero gem
# CVE-2020-16254 - Chartkick gem
# CVE-2020-24392 - voloko twitter-stream
# CVE-2020-24393 - TweetStream
# CVE-2020-25613 < 2.7.1
# CVE-2020-25739 - gon gem
# CVE-2020-26247 - https://abf.io/import/rubygem-nokogiri - drop from repo
# CVE-2020-26254 - omniauth-apple
# CVE-2020-26298 - Redcarpet
# CVE-2020-36190 - rails_admin rails gem
# CVE-2020-36327 <= Bundler 2.2.16, but have https://abf.io/import/rubygem-bundler 2.3.26
# CVE-2020-4054 - Sanitize
# CVE-2020-5216 - Secure Headers
# CVE-2020-5217 - Secure Headers
# CVE-2020-5241 - matestack-ui-core
# CVE-2020-5247 - Puma
# CVE-2020-5249 - Puma
# CVE-2020-5257 - Administrate
# CVE-2020-7663 - websocket-extensions
# CVE-2020-7670 - agoo
# CVE-2020-7671 - goliath
# CVE-2020-8159 - actionpack - https://abf.io/import/rubygem-actionpack - drop from repo
# CVE-2021-21289 - Mechanize
# CVE-2021-21305 - CarrierWave
# CVE-2021-22569 - protobuf-java
# CVE-2021-28680 - devise_masquerade gem
# CVE-2021-28834 < kramdown gem 2.3.1, but have https://abf.io/import/rubygem-kramdown 2.3.1
# CVE-2021-28965 < 2.7.3
# CVE-2021-29435 - trestle-auth
# CVE-2021-29509 - Puma
# CVE-2021-32066 <= 2.7.3
# CVE-2021-32740 - Addressable - https://abf.io/import/rubygem-addressable - drop from repo
# CVE-2021-32823 - bindata
# CVE-2021-33473 - Dragonfly Ruby Gem
# CVE-2021-33564 - Dragonfly Ruby Gem
# CVE-2021-33575 - Pixar ruby-jss
# CVE-2021-3779 - ruby-mysql https://abf.io/import/rubygem-mysql - drop from repo
# CVE-2021-39197 - better_errors
# CVE-2021-41098 - https://abf.io/import/rubygem-nokogiri - drop from repo
# CVE-2021-41136 - Puma
# CVE-2021-41263 - rails_multisite
# CVE-2021-41274 - solidus_auth_devise
# CVE-2021-41275 - spree_auth_devise
# CVE-2021-41816 < 2.7.5
# CVE-2021-41817 < 2.7.5
# CVE-2021-41819 < 2.7.5
# CVE-2021-43809 < Bundler 2.2.33, but have https://abf.io/import/rubygem-bundler 2.3.26
# CVE-2021-43840 - message_bus
# CVE-2022-0614 - Homebrew mruby
# CVE-2022-0759 - kubeclient
# CVE-2022-1201 - mrb_vm_exec
# CVE-2022-1427 - mrb_obj_is_kind_of
# CVE-2022-21831 - Active Storage
# CVE-2022-22577 - actionpack - https://abf.io/import/rubygem-actionpack - drop from repo
# CVE-2022-23634 - Puma
# CVE-2022-24720 - image_processing
# CVE-2022-24790 - Puma
# CVE-2022-24795 - yajl-ruby gem
# CVE-2022-24836 - https://abf.io/import/rubygem-nokogiri - drop from repo
# CVE-2022-25648 - git gem
# CVE-2022-25765 - PDFKit gem
# CVE-2022-27311 - Gibbon
# CVE-2022-27777 - Action View tag helpers
# CVE-2022-28481 - CSV-Safe
# CVE-2022-28738 - 3.0.0=>..<3.0.4, 3.1.0=>..<3.1.2
# CVE-2022-28739 < 2.7.6
# CVE-2022-29181 - https://abf.io/import/rubygem-nokogiri - drop from repo
# CVE-2022-30288 - agoo
# CVE-2022-31026 - Trilogy
# CVE-2022-31033 - Mechanize
# CVE-2022-31071 - Octopoller
# CVE-2022-31072 - Octokit
# CVE-2022-31115 - opensearch-ruby
# CVE-2022-3171 - protobuf-java
# CVE-2022-32511 - jmespath.rb
# CVE-2022-35956 - ActiveRecord https://abf.io/import/rubygem-activerecord - drop from repo
# CVE-2022-36006 - Arvados
# CVE-2022-36562 - Rubyinstaller2
# CVE-2022-36563 - Rubyinstaller2
# CVE-2022-39224 - arr-pm - https://abf.io/import/rubygem-arr-pm - drop from repo
# CVE-2022-39238 - Arvados
# CVE-2022-39281 - FatFreeCRM

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17037 |21mr|ruby3.2-3.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global major_version 3
%global minor_version 2
%global teeny_version 2
%global major_minor_version %{major_version}.%{minor_version}

%define libname %mklibname ruby %{major_version}.%{minor_version}

%global ruby_version %{major_minor_version}.%{teeny_version}
%global ruby_release %{ruby_version}

%global ruby_archive ruby-%{ruby_version}

%global ruby_suffix %{major_minor_version}

# The RubyGems library has to stay out of Ruby directory tree, since the
# RubyGems should be share by all Ruby implementations.
%global rubygems_dir %{_datadir}/rubygems%{ruby_suffix}

# Bundled libraries versions
%global rubygems_version 3.4.10
%global rubygems_molinillo_version 0.8.0

# Default gems.
%global bundler_version 2.4.10
%global bundler_connection_pool_version 2.3.0
%global bundler_fileutils_version 1.7.0
%global bundler_pub_grub_version 0.5.0
%global bundler_net_http_persistent_version 4.0.1
%global bundler_thor_version 1.2.1
%global bundler_uri_version 0.12.1

%global bigdecimal_version 3.1.3
%global did_you_mean_version 1.6.3
%global erb_version 4.0.2
%global io_console_version 0.6.0
%global irb_version 1.6.2
%global json_version 2.6.3
%global openssl_version 3.1.0
%global psych_version 5.0.1
%global racc_version 1.6.2
%global rdoc_version 6.5.0
%global stringio_version 3.0.4

# Bundled gems.
%global minitest_version 5.16.3
%global power_assert_version 2.0.3
%global rake_version 13.0.6
%global test_unit_version 3.5.7
%global rexml_version 3.2.5
%global rss_version 0.2.9
%global net_ftp_version 0.2.0
%global net_imap_version 0.3.4
%global net_pop_version 0.1.2
%global net_smtp_version 0.3.3
%global matrix_version 0.4.2
%global prime_version 0.1.2
%global rbs_version 2.8.2
%global typeprof_version 0.21.3
%global debug_version 1.7.1

# Might not be needed in the future, if we are lucky enough.
# https://bugzilla.redhat.com/show_bug.cgi?id=888262
%global tapset_root %{_datadir}/systemtap
%global tapset_dir %{tapset_root}/tapset
%global tapset_libdir %(echo %{_libdir} | sed 's/64//')*

%global _normalized_cpu %(echo %{_target_cpu} | sed 's/^ppc/powerpc/;s/i.86/i386/;s/sparcv./sparc/')

# allow choosing Ruby runtime like rvm
# need rubypick in main repo
%bcond_with rubypick
%bcond_without cmake
%bcond_without git
%bcond_without gmp
%bcond_without hostname
%bcond_without systemtap

# LTO appears to cause some issue to SEGV handler.
# https://bugs.ruby-lang.org/issues/17052
%define _lto_cflags %{nil}

Summary: An interpreter of object-oriented scripting language
Name:    ruby3.2
Version: %{ruby_version}
Release: 1
# Public Domain for example for: include/ruby/st.h, strftime.c, missing/*, ...
# MIT and CCO: ccan/*
# zlib: ext/digest/md5/md5.*, ext/nkf/nkf-utf8/nkf.c
# UCD: some of enc/trans/**/*.src
License: (Ruby or BSD) and Public Domain and MIT and CC0 and zlib and UCD
Group:	 Development/Ruby
URL: http://ruby-lang.org/
Source0: https://cache.ruby-lang.org/pub/ruby/%{major_minor_version}/%{ruby_archive}.tar.gz
Source1: operating_system.rb
# TODO: Try to push SystemTap support upstream.
Source2: libruby.stp
Source3: ruby-exercise.stp
Source4: macros.ruby
Source5: macros.rubygems
# RPM dependency generators.
Source8: rubygems.attr
Source9: rubygems.req
Source10: rubygems.prov
Source11: rubygems.con
# ABRT hoook test case.
Source13: test_abrt.rb
# SystemTap tests.
Source14: test_systemtap.rb
Source100: ruby.rpmlintrc

# The load directive is supported since RPM 4.12, i.e. F21+. The build process
# fails on older Fedoras.
%{load:%{SOURCE4}}
%{load:%{SOURCE5}}

# Fix ruby_version abuse.
# https://bugs.ruby-lang.org/issues/11002
Patch0: ruby-2.3.0-ruby_version.patch
# http://bugs.ruby-lang.org/issues/7807
Patch1: ruby-2.1.0-Prevent-duplicated-paths-when-empty-version-string-i.patch
# Allows to override libruby.so placement. Hopefully we will be able to return
# to plain --with-rubyarchprefix.
# http://bugs.ruby-lang.org/issues/8973
Patch2: ruby-2.1.0-Enable-configuration-of-archlibdir.patch
# Force multiarch directories for i.86 to be always named i386. This solves
# some differencies in build between Fedora and RHEL.
Patch3: ruby-2.1.0-always-use-i386.patch
# Allows to install RubyGems into custom directory, outside of Ruby's tree.
# http://bugs.ruby-lang.org/issues/5617
Patch4: ruby-2.1.0-custom-rubygems-location.patch
# The ABRT hook used to be initialized by preludes via following patches:
# https://bugs.ruby-lang.org/issues/8566
# https://bugs.ruby-lang.org/issues/15306
# Unfortunately, due to https://bugs.ruby-lang.org/issues/16254
# and especially since https://github.com/ruby/ruby/pull/2735
# this would require boostrapping:
# https://lists.fedoraproject.org/archives/list/ruby-sig@lists.fedoraproject.org/message/LH6L6YJOYQT4Y5ZNOO4SLIPTUWZ5V45Q/
# For now, load the ABRT hook via this simple patch:
Patch6: ruby-2.7.0-Initialize-ABRT-hook.patch
# Prevent segfaults running with SystemTap due to `RubyVM::FrozenCore` being
# corrupted by GC.
# https://bugzilla.redhat.com/show_bug.cgi?id=2015441
# https://bugzilla.redhat.com/show_bug.cgi?id=1986206
# https://bugs.ruby-lang.org/issues/18257
Patch7: ruby-3.1.0-Don-t-query-RubyVM-FrozenCore-for-class-path.patch
# Avoid possible timeout errors in TestBugReporter#test_bug_reporter_add.
# https://bugs.ruby-lang.org/issues/16492
Patch8: ruby-2.7.1-Timeout-the-test_bug_reporter_add-witout-raising-err.patch
# Disable syntax_suggest test suite, which tries to download its dependencies.
# https://bugs.ruby-lang.org/issues/19297
Patch9: ruby-3.2.0-Revert-Fix-test-syntax-suggest-order.patch
Patch10: ruby-3.2.0-Revert-Test-syntax_suggest-by-make-check.patch
# Fix `OpenSSL::X509::CertificateError: invalid digest` errors on ELN. This
# also might help Fedor, if/when
# https://fedoraproject.org/wiki/Changes/StrongCryptoSettings3Forewarning2
# is accepted.
# https://github.com/ruby/spec/pull/990
# https://bugs.ruby-lang.org/issues/19307
Patch11: ruby-3.2.0-Use-SHA256-instead-of-SHA1.patch
Patch26: e2k.patch
# https://github.com/ruby/ruby/commit/6215b5ba9
Patch27: 0001-Fix-off-by-one-error-of-argc.patch

Requires: %{libname} = %{EVRD}
Suggests: rubypick
Recommends: ruby3.2(rubygems) >= %{rubygems_version}
Recommends: ruby3.2gem(bigdecimal) >= %{bigdecimal_version}

BuildRequires: autoconf
BuildRequires: gdbm-devel
%{?with_gmp:BuildRequires: gmp-devel}
BuildRequires: ffi-devel
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(yaml-0.1)
BuildRequires: readline-devel
# Needed to pass test_set_program_name(TestRubyOptions)
BuildRequires: procps
%{?with_systemtap:BuildRequires: %{_bindir}/dtrace}
# RubyGems test suite optional dependencies.
%{?with_git:BuildRequires: git}
%{?with_cmake:BuildRequires: %{_bindir}/cmake}
# Required to test hardening.
%{?with_hostname:BuildRequires: hostname}
BuildRequires: zlib-devel

# This package provides %%{_bindir}/ruby-mri therefore it is marked by this
# virtual provide. It can be installed as dependency of rubypick.
Provides: ruby3.2(runtime_executable) = %{ruby_release}

%description
Ruby is the interpreted scripting language for quick and easy
object-oriented programming.  It has many features to process text
files and to do system management tasks (as in Perl).  It is simple,
straight-forward, and extensible.


%package devel
Summary:    A Ruby development environment
Requires:   %{name} = %{EVRD}
Requires:   %{libname} = %{EVRD}
# This would not be needed if ~50 packages depending on -devel used
# --disable-gems
Requires:   ruby3.2-rubygems
Recommends: ruby3.2-rpm-macros
Recommends: gcc
Recommends: make

%description devel
Header files and libraries for building an extension library for the
Ruby or an application embedding Ruby.

%package rpm-macros
Summary:    Ruby %{major_minor_version} RPM macros
Conflicts:  ruby-devel

%description rpm-macros
%{summary}

%package -n	%{libname}
Summary:    Libraries necessary to run Ruby
License:    Ruby or BSD
Provides:   ruby3.2(release) = %{ruby_release}
Provides:   ruby3.2-libs = %{EVRD}

# Virtual provides for CCAN copylibs.
# https://fedorahosted.org/fpc/ticket/364
#Provides: bundled(ccan-build_assert)
#Provides: bundled(ccan-check_type)
#Provides: bundled(ccan-container_of)
#Provides: bundled(ccan-list)

# StdLib default gems.
#Provides: bundled(rubygem-did_you_mean) = %%{did_you_mean_version}
#Provides: bundled(rubygem-openssl) = %%{openssl_version}
#Provides: bundled(rubygem-racc) = %%{racc_version}

%description -n %{libname}
This package contains the shared ruby %{version} library.

# TODO: Rename or not rename to ruby-rubygems?
%package rubygems
Summary:    The Ruby standard for packaging ruby libraries
Version:    %{rubygems_version}
License:    Ruby or MIT
Requires:   ruby3.2(release)
Recommends: ruby3.2gem(bundler) >= %{bundler_version}
Recommends: ruby3.2gem(rdoc) >= %{rdoc_version}
Recommends: ruby3.2gem(io-console) >= %{io_console_version}
Requires:   ruby3.2gem(openssl) >= %{openssl_version}
Requires:   ruby3.2gem(psych) >= %{psych_version}
Provides:   ruby3.2-gem = %{EVRD}
Provides:   ruby3.2(rubygems) = %{rubygems_version}
# https://github.com/rubygems/rubygems/pull/1189#issuecomment-121600910
#Provides:   bundled(rubygem-molinillo) = %%{rubygems_molinillo_version}
BuildArch:  noarch

%description rubygems
RubyGems is the Ruby standard for publishing and managing third party
libraries.


%package rubygems-devel
Summary:    Macros and development tools for packaging RubyGems
Version:    %{rubygems_version}
License:    Ruby or MIT
Requires:   ruby3.2(rubygems) >= %{EVRD}
# Needed for RDoc documentation format generation.
Requires:   ruby3.2gem(json) >= %{json_version}
Requires:   ruby3.2gem(rdoc) >= %{rdoc_version}
Conflicts:  rubygems-devel
BuildArch:  noarch

%description rubygems-devel
Macros and development tools for packaging RubyGems.


# Default gems
#
# These packages are part of Ruby StdLib and are expected to be loadable even
# with disabled RubyGems.

%package default-gems
Summary:    Default gems which are part of Ruby StdLib
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Supplements: ruby3.2(rubygems)
# Include the io-console dependency for reline.
Requires:   ruby3.2gem(io-console)
Provides:   ruby3.2gem(openssl) = %{openssl_version}-%{release}
Provides:   ruby3.2gem(stringio) = %{stringio_version}
BuildArch:  noarch

%description default-gems
The .gemspec files and executables of default gems, which are part of Ruby
StdLib.


%package rubygem-irb
Summary:    The Interactive Ruby
Version:    %{irb_version}
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
# ruby-default-gems is required to run irb.
# https://bugs.ruby-lang.org/issues/16951
Requires:   ruby3.2-default-gems >= %{ruby_version}
Provides:   ruby3.2-irb = %{EVRD}
Provides:   ruby3.2gem(irb) = %{EVRD}
BuildArch:  noarch

%description rubygem-irb
The irb is acronym for Interactive Ruby.  It evaluates ruby expression
from the terminal.


%package rubygem-rdoc
Summary:    A tool to generate HTML and command-line documentation for Ruby projects
Version:    %{rdoc_version}
# SIL: lib/rdoc/generator/template/darkfish/css/fonts.css
License:    GPLv2 and Ruby and MIT and OFL
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Requires:   ruby3.2gem(irb) >= %{irb_version}
Requires:   ruby3.2gem(io-console) >= %{io_console_version}
Requires:   ruby3.2gem(json) >= %{json_version}
Provides:   ruby3.2-rdoc = %{rdoc_version}
Provides:   ruby3.2-ri = %{rdoc_version}
Provides:   ruby3.2gem(rdoc) = %{rdoc_version}
BuildArch:  noarch

%description rubygem-rdoc
RDoc produces HTML and command-line documentation for Ruby projects.  RDoc
includes the 'rdoc' and 'ri' tools for generating and displaying online
documentation.


%package doc
Summary:    Documentation for %{name}
Requires:   %{_bindir}/ri%{ruby_suffix}
BuildArch:  noarch

%description doc
This package contains documentation for %{name}.


%package rubygem-bigdecimal
Summary:    BigDecimal provides arbitrary-precision floating point decimal arithmetic
Version:    %{bigdecimal_version}
License:    Ruby or BSD
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2gem(bigdecimal) = %{bigdecimal_version}

%description rubygem-bigdecimal
Ruby provides built-in support for arbitrary precision integer arithmetic.
For example:

42**13 -> 1265437718438866624512

BigDecimal provides similar support for very large or very accurate floating
point numbers. Decimal arithmetic is also useful for general calculation,
because it provides the correct answers people expect–whereas normal binary
floating point arithmetic often introduces subtle errors because of the
conversion between base 10 and base 2.


%package rubygem-io-console
Summary:    IO/Console is a simple console utilizing library
Version:    %{io_console_version}
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2gem(io-console) = %{io_console_version}

%description rubygem-io-console
IO/Console provides very simple and portable access to console. It doesn't
provide higher layer features, such like curses and readline.


%package rubygem-json
Summary:    This is a JSON implementation as a Ruby extension in C
Version:    %{json_version}
# UCD: ext/json/generator/generator.c
License:    (Ruby or GPLv2) and UCD
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2gem(json) = %{json_version}

%description rubygem-json
This is a implementation of the JSON specification according to RFC 4627.
You can think of it as a low fat alternative to XML, if you want to store
data to disk or transmit it over a network rather than use a verbose
markup language.


%package rubygem-psych
Summary:    A libyaml wrapper for Ruby
Version:    %{psych_version}
License:    MIT
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Requires:   ruby3.2gem(stringio) >= %{stringio_version}
Provides:   ruby3.2gem(psych) = %{psych_version}

%description rubygem-psych
Psych is a YAML parser and emitter. Psych leverages
libyaml[http://pyyaml.org/wiki/LibYAML] for its YAML parsing and emitting
capabilities. In addition to wrapping libyaml, Psych also knows how to
serialize and de-serialize most Ruby objects to and from the YAML format.


%package rubygem-bundler
Summary:    Library and utilities to manage a Ruby application's gem dependencies
Version:    %{bundler_version}
License:    MIT
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Requires:   ruby3.2gem(io-console)
Provides:   ruby3.2gem(bundler) = %{bundler_version}
# https://github.com/bundler/bundler/issues/3647
#Provides:   bundled(connection_pool) = %%{bundler_connection_pool_version}
#Provides:   bundled(rubygem-fileutils) = %%{bundler_fileutils_version}
#Provides:   bundled(rubygem-pub_grub) = %%{bundler_pub_grub_version}
#Provides:   bundled(rubygem-net-http-persisntent) = %%{bundler_net_http_persistent_version}
#Provides:   bundled(rubygem-thor) = %%{bundler_thor_version}
#Provides:   bundled(rubygem-uri) = %%{bundler_uri_version}
BuildArch:  noarch

%description rubygem-bundler
Bundler manages an application's dependencies through its entire life, across
many machines, systematically and repeatably.


# Bundled gems
#
# These are regular packages, which might be installed just optionally. Users
# should list them among their dependencies (in Gemfile).

%package bundled-gems
Summary:    Bundled gems which are part of Ruby StdLib
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
# Runtime dependency of rubygem(debug).
Recommends: ruby3.2gem(irb) >= %{irb_version}
Provides:   ruby3.2gem(net-ftp) = %{net_ftp_version}
Provides:   ruby3.2gem(net-imap) = %{net_imap_version}
Provides:   ruby3.2gem(net-pop) = %{net_pop_version}
Provides:   ruby3.2gem(net-smtp) = %{net_smtp_version}
Provides:   ruby3.2gem(matrix) = %{matrix_version}
Provides:   ruby3.2gem(prime) = %{prime_version}
Provides:   ruby3.2gem(debug) = %{debug_version}

%description bundled-gems
Bundled gems which are part of Ruby StdLib. While being part of Ruby, these
needs to be listed in Gemfile to be used by Bundler.


%package rubygem-minitest
Summary:    Minitest provides a complete suite of testing facilities
Version:    %{minitest_version}
License:    MIT
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2gem(minitest) = %{minitest_version}
BuildArch:  noarch

%description rubygem-minitest
minitest/unit is a small and incredibly fast unit testing framework.

minitest/spec is a functionally complete spec engine.

minitest/benchmark is an awesome way to assert the performance of your
algorithms in a repeatable manner.

minitest/mock by Steven Baker, is a beautifully tiny mock object
framework.

minitest/pride shows pride in testing and adds coloring to your test
output.


%package rubygem-power_assert
Summary:    Power Assert for Ruby
Version:    %{power_assert_version}
License:    Ruby or BSD
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2gem(power_assert) = %{EVRD}
BuildArch:  noarch

%description rubygem-power_assert
Power Assert shows each value of variables and method calls in the expression.
It is useful for testing, providing which value wasn't correct when the
condition is not satisfied.


%package rubygem-rake
Summary:    Ruby based make-like utility
Version:    %{rake_version}
License:    MIT
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2-rake = %{rake_version}
Provides:   ruby3.2gem(rake) = %{rake_version}
BuildArch:  noarch

%description rubygem-rake
Rake is a Make-like program implemented in Ruby. Tasks and dependencies are
specified in standard Ruby syntax.


%package rubygem-rbs
Summary:    Type signature for Ruby
Version:    %{rbs_version}
License:    Ruby OR BSD-2-Clause
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2gem(rbs) = %{rbs_version}

%description rubygem-rbs
RBS is the language for type signatures for Ruby and standard library
definitions.


%package rubygem-test-unit
Summary:    An xUnit family unit testing framework for Ruby
Version:    %{test_unit_version}
# lib/test/unit/diff.rb is a double license of the Ruby license and PSF license.
# lib/test-unit.rb is a dual license of the Ruby license and LGPLv2.1 or later.
License:    (Ruby or BSD) and (Ruby or BSD or Python) and (Ruby or BSD or LGPLv2+)
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Requires:   ruby3.2gem(power_assert)
Provides:   ruby3.2gem(test-unit) = %{test_unit_version}
BuildArch:  noarch

%description rubygem-test-unit
Test::Unit (test-unit) is unit testing framework for Ruby, based on xUnit
principles. These were originally designed by Kent Beck, creator of extreme
programming software development methodology, for Smalltalk's SUnit. It allows
writing tests, checking results and automated testing in Ruby.


%package rubygem-rexml
Summary:    An XML toolkit for Ruby
Version:    %{rexml_version}
License:    BSD-2-Clause
URL:        https://github.com/ruby/rexml
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2gem(rexml) = %{rexml_version}
BuildArch:  noarch

%description rubygem-rexml
REXML was inspired by the Electric XML library for Java, which features an
easy-to-use API, small size, and speed. Hopefully, REXML, designed with the same
philosophy, has these same features. I've tried to keep the API as intuitive as
possible, and have followed the Ruby methodology for method naming and code
flow, rather than mirroring the Java API.

REXML supports both tree and stream document parsing. Stream parsing is faster
(about 1.5 times as fast). However, with stream parsing, you don't get access to
features such as XPath.


%package rubygem-rss
Summary:    Family of libraries that support various formats of XML "feeds"
Version:    %{rss_version}
License:    BSD-2-Clause
URL:        https://github.com/ruby/rss
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Provides:   ruby3.2gem(rss) = %{rss_version}
BuildArch:  noarch

%description rubygem-rss
Really Simple Syndication (RSS) is a family of formats that describe 'feeds',
specially constructed XML documents that allow an interested person to subscribe
and receive updates from a particular web service. This library provides tooling
to read and create these feeds.


%package rubygem-typeprof
Summary:    TypeProf is a type analysis tool for Ruby code based on abstract interpretation
Version:    %{typeprof_version}
License:    MIT
URL:        https://github.com/ruby/typeprof
Requires:   ruby3.2(release)
Requires:   ruby3.2(rubygems) >= %{rubygems_version}
Requires:   ruby3.2gem(rbs) >= %{rbs_version}
Provides:   ruby3.2gem(typeprof) = %{typeprof_version}
BuildArch:  noarch

%description rubygem-typeprof
TypeProf performs a type analysis of non-annotated Ruby code.
It abstractly executes input Ruby code in a level of types instead of values,
gathers what types are passed to and returned by methods, and prints the
analysis result in RBS format, a standard type description format for Ruby
3.0.


%prep
%setup -q -n %{ruby_archive}

# Remove bundled libraries to be sure they are not used.
rm -rf ext/psych/yaml
rm -rf ext/fiddle/libffi*

%autopatch -p1

# Provide an example of usage of the tapset:
cp -a %{SOURCE3} .

%build
export LDFLAGS="%{ldflags} -lpthread"
autoconf
%configure \
        --with-rubylibprefix='%{ruby_libdir}' \
        --with-setjmp-type=setjmp \
        --with-archlibdir='%{_libdir}' \
        --with-rubyarchprefix='%{ruby_libarchdir}' \
        --with-sitedir='%{ruby_sitelibdir}' \
        --with-sitearchdir='%{ruby_sitearchdir}' \
        --with-vendordir='%{ruby_vendorlibdir}' \
        --with-vendorarchdir='%{ruby_vendorarchdir}' \
        --with-rubyhdrdir='%{_includedir}/%{name}' \
        --with-rubyarchhdrdir='%{_includedir}/%{name}' \
        --with-sitearchhdrdir='$(sitehdrdir)/$(arch)' \
        --with-vendorarchhdrdir='$(vendorhdrdir)/$(arch)' \
        --with-rubygemsdir='%{rubygems_dir}' \
        --with-ridir='%{_datadir}/ri%{ruby_suffix}' \
        --with-ruby-pc='%{name}.pc' \
        --with-compress-debug-sections=no \
        --disable-rpath \
        --enable-mkmf-verbose \
        --enable-shared \
        --with-ruby-version='' \
        --with-soname='ruby%{ruby_suffix}' \
        --program-suffix='%{ruby_suffix}' \
%ifarch %{e2k}
        --disable-jit-support \
        --disable-dtrace \
%endif
        --enable-multiarch \

# Q= makes the build output more verbose and allows to check Fedora
# compiler options.
%make_build COPY="cp -p" Q=

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}

# Rename the ruby executable. It is replaced by RubyPick.
%{?with_rubypick:mv %{buildroot}%{_bindir}/%{name}{,-mri}}

# Create suffixless links to binaries in %%{libexecdir}/%%{name} directory to use by adding to PATH if necessary
mkdir -p %{buildroot}%{_libexecdir}/%{name}
ln -s %{_bindir}/%{name}%{?with_rubypick:-mri} %{buildroot}%{_libexecdir}/%{name}/ruby%{?with_rubypick:-mri}
pushd %{buildroot}%{_bindir}
for file in $(ls | grep -v '%{name}%{?with_rubypick:-mri}\|racc'); do
	ln -s %{_bindir}/"$file" %{buildroot}%{_libexecdir}/%{name}/"${file%%%{ruby_suffix}}"
done
popd

# Version is empty if --with-ruby-version is specified.
# http://bugs.ruby-lang.org/issues/7807
sed -i 's/Version: \${ruby_version}/Version: %{ruby_version}/' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

# Kill bundled certificates, as they should be part of ca-certificates.
for cert in \
  rubygems.org/GlobalSignRootCA.pem
do
  rm %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/$cert
  rm -r $(dirname %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/$cert)
done
# Ensure there is not forgotten any certificate.
test ! "$(ls -A  %{buildroot}%{rubygems_dir}/rubygems/ssl_certs/ 2>/dev/null)"

# Move macros file into proper place and replace the %%{name} macro, since it
# would be wrongly evaluated during build of other packages.
mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d
install -m 644 %{SOURCE4} %{buildroot}%{_rpmconfigdir}/macros.d/macros.ruby
sed -i "s/%%{name}/%{name}/" %{buildroot}%{_rpmconfigdir}/macros.d/macros.ruby
install -m 644 %{SOURCE5} %{buildroot}%{_rpmconfigdir}/macros.d/macros.rubygems
sed -i %{buildroot}%{_rpmconfigdir}/macros.d/macros.rubygems \
	-e 's/%%{name}/%{name}/' \
	-e 's/%%{ruby_suffix}/%{ruby_suffix}/'

# Install dependency generators.
mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs
install -m 644 %{SOURCE8} %{buildroot}%{_rpmconfigdir}/fileattrs
install -m 755 %{SOURCE9} %{buildroot}%{_rpmconfigdir}
install -m 755 %{SOURCE10} %{buildroot}%{_rpmconfigdir}
install -m 755 %{SOURCE11} %{buildroot}%{_rpmconfigdir}
sed -i 's,\(/usr/bin/ruby\),\1%{ruby_suffix},' %{buildroot}%{_rpmconfigdir}/rubygems.{req,prov,con}

# Install custom operating_system.rb.
mkdir -p %{buildroot}%{rubygems_dir}/rubygems/defaults
cp %{SOURCE1} %{buildroot}%{rubygems_dir}/rubygems/defaults

# Move gems root into common directory, out of Ruby directory structure.
mv %{buildroot}%{ruby_libdir}/gems %{buildroot}%{gem_dir}

# Create folders for gem binary extensions.
# TODO: These folders should go into rubygem-filesystem but how to achieve it,
# since noarch package cannot provide arch dependent subpackages?
# http://rpm.org/ticket/78
mkdir -p %{buildroot}%{_exec_prefix}/lib{,64}/gems%{ruby_suffix}/%{name}

# Move bundled rubygems to %%gem_dir and %%gem_extdir_mri
# make symlinks for io-console and bigdecimal, which are considered to be part of stdlib by other Gems
mkdir -p %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
mv %{buildroot}%{ruby_libdir}/irb* %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
mv %{buildroot}%{gem_dir}/specifications/default/irb-%{irb_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/irb-%{irb_version}/lib/irb.rb %{buildroot}%{ruby_libdir}/irb.rb
# TODO: This should be possible to replaced by simple directory symlink
# after ~ F31 EOL (rhbz#1691039).
mkdir -p %{buildroot}%{ruby_libdir}/irb
pushd %{buildroot}%{gem_dir}/gems/irb-%{irb_version}/lib
find irb -type d -mindepth 1 -exec mkdir %{buildroot}%{ruby_libdir}/'{}' \;
find irb -type f -exec ln -s %{gem_dir}/gems/irb-%{irb_version}/lib/'{}' %{buildroot}%{ruby_libdir}/'{}' \;
popd

mkdir -p %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
mv %{buildroot}%{ruby_libdir}/rdoc* %{buildroot}%{gem_dir}/gems/rdoc-%{rdoc_version}/lib
mv %{buildroot}%{gem_dir}/specifications/default/rdoc-%{rdoc_version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{gem_dir}/gems/bigdecimal-%{bigdecimal_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/bigdecimal-%{bigdecimal_version}/bigdecimal
mv %{buildroot}%{ruby_libdir}/bigdecimal %{buildroot}%{gem_dir}/gems/bigdecimal-%{bigdecimal_version}/lib
mv %{buildroot}%{ruby_libarchdir}/bigdecimal.so %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/bigdecimal-%{bigdecimal_version}
touch %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/bigdecimal-%{bigdecimal_version}/gem.build_complete
mv %{buildroot}%{gem_dir}/specifications/default/bigdecimal-%{bigdecimal_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/bigdecimal-%{bigdecimal_version}/lib/bigdecimal %{buildroot}%{ruby_libdir}/bigdecimal
ln -s %{_libdir}/gems%{ruby_suffix}/%{name}/bigdecimal-%{bigdecimal_version}/bigdecimal.so %{buildroot}%{ruby_libarchdir}/bigdecimal.so

# TODO: Put help files into proper location.
# https://bugs.ruby-lang.org/issues/15359
mkdir -p %{buildroot}%{gem_dir}/gems/bundler-%{bundler_version}/lib
mv %{buildroot}%{ruby_libdir}/bundler.rb %{buildroot}%{gem_dir}/gems/bundler-%{bundler_version}/lib
mv %{buildroot}%{ruby_libdir}/bundler %{buildroot}%{gem_dir}/gems/bundler-%{bundler_version}/lib
mv %{buildroot}%{gem_dir}/specifications/default/bundler-%{bundler_version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{gem_dir}/gems/io-console-%{io_console_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/io-console-%{io_console_version}/io
mv %{buildroot}%{ruby_libdir}/io %{buildroot}%{gem_dir}/gems/io-console-%{io_console_version}/lib
mv %{buildroot}%{ruby_libarchdir}/io/console.so %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/io-console-%{io_console_version}/io
touch %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/io-console-%{io_console_version}/gem.build_complete
mv %{buildroot}%{gem_dir}/specifications/default/io-console-%{io_console_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/io-console-%{io_console_version}/lib/io %{buildroot}%{ruby_libdir}/io
ln -s %{_libdir}/gems%{ruby_suffix}/%{name}/io-console-%{io_console_version}/io/console.so %{buildroot}%{ruby_libarchdir}/io/console.so

mkdir -p %{buildroot}%{gem_dir}/gems/json-%{json_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/json-%{json_version}
mv %{buildroot}%{ruby_libdir}/json* %{buildroot}%{gem_dir}/gems/json-%{json_version}/lib
mv %{buildroot}%{ruby_libarchdir}/json/ %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/json-%{json_version}/
touch %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/json-%{json_version}/gem.build_complete
mv %{buildroot}%{gem_dir}/specifications/default/json-%{json_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/json-%{json_version}/lib/json.rb %{buildroot}%{ruby_libdir}/json.rb
ln -s %{gem_dir}/gems/json-%{json_version}/lib/json %{buildroot}%{ruby_libdir}/json
ln -s %{_libdir}/gems%{ruby_suffix}/%{name}/json-%{json_version}/json/ %{buildroot}%{ruby_libarchdir}/json

mkdir -p %{buildroot}%{gem_dir}/gems/psych-%{psych_version}/lib
mkdir -p %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/psych-%{psych_version}
mv %{buildroot}%{ruby_libdir}/psych* %{buildroot}%{gem_dir}/gems/psych-%{psych_version}/lib
mv %{buildroot}%{ruby_libarchdir}/psych.so %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/psych-%{psych_version}/
touch %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/psych-%{psych_version}/gem.build_complete
mv %{buildroot}%{gem_dir}/specifications/default/psych-%{psych_version}.gemspec %{buildroot}%{gem_dir}/specifications
ln -s %{gem_dir}/gems/psych-%{psych_version}/lib/psych %{buildroot}%{ruby_libdir}/psych
ln -s %{gem_dir}/gems/psych-%{psych_version}/lib/psych.rb %{buildroot}%{ruby_libdir}/psych.rb
ln -s %{_libdir}/gems%{ruby_suffix}/%{name}/psych-%{psych_version}/psych.so %{buildroot}%{ruby_libarchdir}/psych.so

# Move the binary extensions into proper place (if no gem has binary extension,
# the extensions directory might be empty).
find %{buildroot}%{gem_dir}/extensions/*-%{_target_os}%{_gnu}/%{major_minor_version}.*/* -maxdepth 0 \
  -exec mv '{}' %{buildroot}%{_libdir}/gems%{ruby_suffix}/%{name}/ \; \
  || echo "No gem binary extensions to move."

# Remove the extension sources and library copies from `lib` dir.
find %{buildroot}%{gem_dir}/gems/*/ext -maxdepth 0 -exec rm -rf '{}' +
find %{buildroot}%{gem_dir}/gems/*/lib -name \*.so -delete

# Move man pages into proper location
mkdir -p %{buildroot}%{_mandir}/man{1,5}
mv %{buildroot}%{gem_dir}/gems/rake-%{rake_version}/doc/rake.1 %{buildroot}%{_mandir}/man1/rake%{ruby_suffix}.1
pushd %{buildroot}%{gem_dir}/gems/bundler-%{bundler_version}/lib/bundler/man
for manfile in *.1; do
	manname=${manfile%.1}
	mv $manfile %{buildroot}%{_mandir}/man1/${manname}%{ruby_suffix}.1
done
for manfile in *.5; do
	manname=${manfile%.5}
	mv $manfile %{buildroot}%{_mandir}/man5/${manname}%{ruby_suffix}.5
done
popd

%if %{with systemtap}
# Install a tapset and fix up the path to the library.
mkdir -p %{buildroot}%{tapset_dir}
sed -e "s|@LIBRARY_PATH@|%{tapset_libdir}/libruby%{ruby_suffix}.so.%{major_minor_version}|" \
  %{SOURCE2} > %{buildroot}%{tapset_dir}/libruby%{ruby_suffix}.so.%{major_minor_version}.stp
# Escape '*/' in comment.
sed -i -r "s|( \*.*\*)\/(.*)|\1\\\/\2|" %{buildroot}%{tapset_dir}/libruby%{ruby_suffix}.so.%{major_minor_version}.stp
%endif

# Prepare -doc subpackage file lists.
find doc -maxdepth 1 -type f ! -name '.*' ! -name '*.ja*' > .ruby-doc.en
echo 'doc/images' >> .ruby-doc.en
echo 'doc/syntax' >> .ruby-doc.en

find doc -maxdepth 1 -type f -name '*.ja*' > .ruby-doc.ja
echo 'doc/irb' >> .ruby-doc.ja
echo 'doc/pty' >> .ruby-doc.ja

sed -i 's/^/%doc /' .ruby-doc.*
sed -i 's/^/%lang(ja) /' .ruby-doc.ja

# Remove useless .github directory from Rake.
# https://github.com/ruby/rake/pull/333
rm -rf %{buildroot}%{gem_dir}/gems/rake-%{rake_version}/.github

# Fix shebangs to avoid using system Ruby
find %{buildroot} -type f -exec \
	sed -i 's,\(/usr/bin/\)env\s\+\(ruby\),\1\2%{ruby_suffix},' {} +

%check
make test

%post
update-alternatives --install %{_bindir}/ruby%{major_version} \
	ruby%{major_version} %{_bindir}/%{name}%{?with_rubypick:-mri} %{major_version}%{minor_version}

%preun
update-alternatives --remove ruby%{major_version} %{_bindir}/%{name}%{?with_rubypick:-mri}


%files
%license BSDL
%license COPYING
%lang(ja) %license COPYING.ja
%license GPL
%license LEGAL
%{_bindir}/erb%{ruby_suffix}
%{_bindir}/%{name}%{?with_rubypick:-mri}
%{_libexecdir}/%{name}/erb
%{_libexecdir}/%{name}/ruby%{?with_rubypick:-mri}
%{_mandir}/man1/erb*
%{_mandir}/man1/ruby*

# List all these files explicitly to prevent surprises
# Platform independent libraries.
%dir %{ruby_libdir}
%exclude %{ruby_libdir}/bigdecimal*
%exclude %{ruby_libdir}/irb*
%exclude %{ruby_libdir}/json*
%exclude %{ruby_libdir}/psych*
%{ruby_libdir}/abbrev.rb
%{ruby_libdir}/base64.rb
%{ruby_libdir}/benchmark*
%{ruby_libdir}/cgi*
%{ruby_libdir}/coverage.rb
%{ruby_libdir}/csv*
%{ruby_libdir}/date.rb
%{ruby_libdir}/delegate*
%{ruby_libdir}/digest*
%{ruby_libdir}/drb*
%{ruby_libdir}/English.rb
%{ruby_libdir}/erb*
%{ruby_libdir}/error_highlight*
%{ruby_libdir}/expect.rb
%{ruby_libdir}/fiddle*
%{ruby_libdir}/fileutils.rb
%{ruby_libdir}/find.rb
%{ruby_libdir}/forwardable*
%{ruby_libdir}/getoptlong*
%{ruby_libdir}/io
%{ruby_libdir}/ipaddr.rb
%{ruby_libdir}/kconv.rb
%{ruby_libdir}/logger*
# https://bugs.ruby-lang.org/issues/19298
%exclude %{ruby_libdir}/mjit
%{ruby_libdir}/mkmf.rb
%{ruby_libdir}/monitor.rb
%{ruby_libdir}/mutex_m.rb
%{ruby_libdir}/net
%{ruby_libdir}/objspace*
%{ruby_libdir}/observer*
%{ruby_libdir}/open-uri.rb
%{ruby_libdir}/open3*
%{ruby_libdir}/optionparser.rb
%{ruby_libdir}/optparse*
%{ruby_libdir}/ostruct*
%{ruby_libdir}/pathname.rb
%{ruby_libdir}/pp.rb
%{ruby_libdir}/prettyprint.rb
%{ruby_libdir}/pstore*
%{ruby_libdir}/random
%{ruby_libdir}/readline.rb
%{ruby_libdir}/reline*
%{ruby_libdir}/resolv.rb
%{ruby_libdir}/resolv-replace.rb
%{ruby_libdir}/rinda
%{ruby_libdir}/ripper*
%dir %{ruby_libdir}/ruby_vm
%{ruby_libdir}/ruby_vm/mjit
%{ruby_libdir}/securerandom.rb
%{ruby_libdir}/set*
%{ruby_libdir}/shellwords.rb
%{ruby_libdir}/singleton*
%{ruby_libdir}/socket.rb
%{ruby_libdir}/syntax_suggest*
%{ruby_libdir}/syslog
%{ruby_libdir}/tempfile.rb
%{ruby_libdir}/timeout*
%{ruby_libdir}/time.rb
%{ruby_libdir}/tmpdir.rb
%{ruby_libdir}/tsort.rb
%{ruby_libdir}/unicode_normalize
%{ruby_libdir}/un.rb
%{ruby_libdir}/uri*
%{ruby_libdir}/weakref*
%{ruby_libdir}/yaml*

# Default gems
%{ruby_libdir}/did_you_mean*
%{ruby_libdir}/openssl*
%{ruby_libdir}/racc*

%{?with_systemtap:%{tapset_dir}/libruby%{ruby_suffix}.so.%{major_minor_version}.stp}

%files devel
%license BSDL
%license COPYING
%lang(ja) %license COPYING.ja
%license GPL
%license LEGAL

%{_includedir}/*
%{_libdir}/libruby%{ruby_suffix}.so
%{_libdir}/pkgconfig/%{name}.pc

%files rpm-macros
%{_rpmconfigdir}/macros.d/macros.ruby

%files -n %{libname}
%license COPYING
%lang(ja) %license COPYING.ja
%license GPL
%license LEGAL
%doc README.md
%doc NEWS.md
# Exclude /usr/local directory since it is supposed to be managed by
# local system administrator.
%exclude %{ruby_sitelibdir}
%exclude %{ruby_sitearchdir}
%dir %{ruby_vendorlibdir}
%dir %{ruby_vendorarchdir}

# Platform specific libraries.
%{_libdir}/libruby%{ruby_suffix}.so.*
%dir %{ruby_libarchdir}
%dir %{ruby_libarchdir}/cgi
%{ruby_libarchdir}/cgi/escape.so
%{ruby_libarchdir}/continuation.so
%{ruby_libarchdir}/coverage.so
%{ruby_libarchdir}/date_core.so
%dir %{ruby_libarchdir}/digest
%{ruby_libarchdir}/digest.so
%{ruby_libarchdir}/digest/bubblebabble.so
%{ruby_libarchdir}/digest/md5.so
%{ruby_libarchdir}/digest/rmd160.so
%{ruby_libarchdir}/digest/sha1.so
%{ruby_libarchdir}/digest/sha2.so
%dir %{ruby_libarchdir}/enc
%{ruby_libarchdir}/enc/big5.so
%{ruby_libarchdir}/enc/cesu_8.so
%{ruby_libarchdir}/enc/cp949.so
%{ruby_libarchdir}/enc/emacs_mule.so
%{ruby_libarchdir}/enc/encdb.so
%{ruby_libarchdir}/enc/euc_jp.so
%{ruby_libarchdir}/enc/euc_kr.so
%{ruby_libarchdir}/enc/euc_tw.so
%{ruby_libarchdir}/enc/gb18030.so
%{ruby_libarchdir}/enc/gb2312.so
%{ruby_libarchdir}/enc/gbk.so
%{ruby_libarchdir}/enc/iso_8859_1.so
%{ruby_libarchdir}/enc/iso_8859_10.so
%{ruby_libarchdir}/enc/iso_8859_11.so
%{ruby_libarchdir}/enc/iso_8859_13.so
%{ruby_libarchdir}/enc/iso_8859_14.so
%{ruby_libarchdir}/enc/iso_8859_15.so
%{ruby_libarchdir}/enc/iso_8859_16.so
%{ruby_libarchdir}/enc/iso_8859_2.so
%{ruby_libarchdir}/enc/iso_8859_3.so
%{ruby_libarchdir}/enc/iso_8859_4.so
%{ruby_libarchdir}/enc/iso_8859_5.so
%{ruby_libarchdir}/enc/iso_8859_6.so
%{ruby_libarchdir}/enc/iso_8859_7.so
%{ruby_libarchdir}/enc/iso_8859_8.so
%{ruby_libarchdir}/enc/iso_8859_9.so
%{ruby_libarchdir}/enc/koi8_r.so
%{ruby_libarchdir}/enc/koi8_u.so
%{ruby_libarchdir}/enc/shift_jis.so
%dir %{ruby_libarchdir}/enc/trans
%{ruby_libarchdir}/enc/trans/big5.so
%{ruby_libarchdir}/enc/trans/cesu_8.so
%{ruby_libarchdir}/enc/trans/chinese.so
%{ruby_libarchdir}/enc/trans/ebcdic.so
%{ruby_libarchdir}/enc/trans/emoji.so
%{ruby_libarchdir}/enc/trans/emoji_iso2022_kddi.so
%{ruby_libarchdir}/enc/trans/emoji_sjis_docomo.so
%{ruby_libarchdir}/enc/trans/emoji_sjis_kddi.so
%{ruby_libarchdir}/enc/trans/emoji_sjis_softbank.so
%{ruby_libarchdir}/enc/trans/escape.so
%{ruby_libarchdir}/enc/trans/gb18030.so
%{ruby_libarchdir}/enc/trans/gbk.so
%{ruby_libarchdir}/enc/trans/iso2022.so
%{ruby_libarchdir}/enc/trans/japanese.so
%{ruby_libarchdir}/enc/trans/japanese_euc.so
%{ruby_libarchdir}/enc/trans/japanese_sjis.so
%{ruby_libarchdir}/enc/trans/korean.so
%{ruby_libarchdir}/enc/trans/single_byte.so
%{ruby_libarchdir}/enc/trans/transdb.so
%{ruby_libarchdir}/enc/trans/utf8_mac.so
%{ruby_libarchdir}/enc/trans/utf_16_32.so
%{ruby_libarchdir}/enc/utf_16be.so
%{ruby_libarchdir}/enc/utf_16le.so
%{ruby_libarchdir}/enc/utf_32be.so
%{ruby_libarchdir}/enc/utf_32le.so
%{ruby_libarchdir}/enc/windows_1250.so
%{ruby_libarchdir}/enc/windows_1251.so
%{ruby_libarchdir}/enc/windows_1252.so
%{ruby_libarchdir}/enc/windows_1253.so
%{ruby_libarchdir}/enc/windows_1254.so
%{ruby_libarchdir}/enc/windows_1257.so
%{ruby_libarchdir}/enc/windows_31j.so
%{ruby_libarchdir}/erb/escape.so
%{ruby_libarchdir}/etc.so
%{ruby_libarchdir}/fcntl.so
%{ruby_libarchdir}/fiddle.so
%dir %{ruby_libarchdir}/io
%{ruby_libarchdir}/io/nonblock.so
%{ruby_libarchdir}/io/wait.so
%{ruby_libarchdir}/monitor.so
%{ruby_libarchdir}/nkf.so
%{ruby_libarchdir}/objspace.so
%{ruby_libarchdir}/pathname.so
%{ruby_libarchdir}/pty.so
%dir %{ruby_libarchdir}/rbconfig
%{ruby_libarchdir}/rbconfig.rb
%{ruby_libarchdir}/rbconfig/sizeof.so
%{ruby_libarchdir}/readline.so
%{ruby_libarchdir}/ripper.so
%{ruby_libarchdir}/socket.so
%{ruby_libarchdir}/stringio.so
%{ruby_libarchdir}/strscan.so
%{ruby_libarchdir}/syslog.so
%{ruby_libarchdir}/zlib.so

# Default gems
%{ruby_libarchdir}/openssl.so
%dir %{ruby_libarchdir}/racc
%{ruby_libarchdir}/racc/cparse.so

%files rubygems
%{_bindir}/gem%{ruby_suffix}
%{_libexecdir}/%{name}/gem
%dir %{rubygems_dir}
%{rubygems_dir}/rubygems
%{rubygems_dir}/rubygems.rb

# Explicitly include only RubyGems directory strucure to avoid accidentally
# packaged content.
%dir %{gem_dir}
%dir %{gem_dir}/build_info
%dir %{gem_dir}/cache
%dir %{gem_dir}/doc
%dir %{gem_dir}/extensions
%dir %{gem_dir}/gems
%dir %{gem_dir}/plugins
%dir %{gem_dir}/specifications
%dir %{gem_dir}/specifications/default
%dir %{_exec_prefix}/lib*/gems%{ruby_suffix}
%dir %{_exec_prefix}/lib*/gems%{ruby_suffix}/%{name}

%exclude %{gem_dir}/cache/*

%files rubygems-devel
%{_rpmconfigdir}/macros.d/macros.rubygems
%{_rpmconfigdir}/fileattrs/rubygems.attr
%{_rpmconfigdir}/rubygems.req
%{_rpmconfigdir}/rubygems.prov
%{_rpmconfigdir}/rubygems.con

%files default-gems
%{gem_dir}/specifications/default/abbrev-0.1.1.gemspec
%{gem_dir}/specifications/default/base64-0.1.1.gemspec
%{gem_dir}/specifications/default/benchmark-0.2.1.gemspec
%{gem_dir}/specifications/default/cgi-0.3.6.gemspec
%{gem_dir}/specifications/default/csv-3.2.6.gemspec
%{gem_dir}/specifications/default/date-3.3.3.gemspec
%{gem_dir}/specifications/default/delegate-0.3.0.gemspec
%{gem_dir}/specifications/default/did_you_mean-%{did_you_mean_version}.gemspec
%{gem_dir}/specifications/default/digest-3.1.1.gemspec
%{gem_dir}/specifications/default/drb-2.1.1.gemspec
%{gem_dir}/specifications/default/english-0.7.2.gemspec
%{gem_dir}/specifications/default/erb-%{erb_version}.gemspec
%{gem_dir}/specifications/default/error_highlight-0.5.1.gemspec
%{gem_dir}/specifications/default/etc-1.4.2.gemspec
%{gem_dir}/specifications/default/fcntl-1.0.2.gemspec
%{gem_dir}/specifications/default/fiddle-1.1.1.gemspec
%{gem_dir}/specifications/default/fileutils-1.7.0.gemspec
%{gem_dir}/specifications/default/find-0.1.1.gemspec
%{gem_dir}/specifications/default/forwardable-1.3.3.gemspec
%{gem_dir}/specifications/default/getoptlong-0.2.0.gemspec
%{gem_dir}/specifications/default/io-nonblock-0.2.0.gemspec
%{gem_dir}/specifications/default/io-wait-0.3.0.gemspec
%{gem_dir}/specifications/default/ipaddr-1.2.5.gemspec
%{gem_dir}/specifications/default/logger-1.5.3.gemspec
%{gem_dir}/specifications/default/mutex_m-0.1.2.gemspec
%{gem_dir}/specifications/default/net-http-0.3.2.gemspec
%{gem_dir}/specifications/default/net-protocol-0.2.1.gemspec
%{gem_dir}/specifications/default/nkf-0.1.2.gemspec
%{gem_dir}/specifications/default/observer-0.1.1.gemspec
%{gem_dir}/specifications/default/open3-0.1.2.gemspec
%{gem_dir}/specifications/default/open-uri-0.3.0.gemspec
%{gem_dir}/specifications/default/optparse-0.3.1.gemspec
%{gem_dir}/specifications/default/openssl-%{openssl_version}.gemspec
%{gem_dir}/specifications/default/ostruct-0.5.5.gemspec
%{gem_dir}/specifications/default/pathname-0.2.1.gemspec
%{gem_dir}/specifications/default/pp-0.4.0.gemspec
%{gem_dir}/specifications/default/prettyprint-0.1.1.gemspec
%{gem_dir}/specifications/default/pstore-0.1.2.gemspec
%{gem_dir}/specifications/default/racc-%{racc_version}.gemspec
%{gem_dir}/specifications/default/readline-0.0.3.gemspec
%{gem_dir}/specifications/default/readline-ext-0.1.5.gemspec
%{gem_dir}/specifications/default/reline-0.3.2.gemspec
%{gem_dir}/specifications/default/resolv-0.2.2.gemspec
%{gem_dir}/specifications/default/resolv-replace-0.1.1.gemspec
%{gem_dir}/specifications/default/rinda-0.1.1.gemspec
%{gem_dir}/specifications/default/ruby2_keywords-0.0.5.gemspec
%{gem_dir}/specifications/default/securerandom-0.2.2.gemspec
%{gem_dir}/specifications/default/set-1.0.3.gemspec
%{gem_dir}/specifications/default/shellwords-0.1.0.gemspec
%{gem_dir}/specifications/default/singleton-0.1.1.gemspec
%{gem_dir}/specifications/default/stringio-%{stringio_version}.gemspec
%{gem_dir}/specifications/default/strscan-3.0.5.gemspec
%{gem_dir}/specifications/default/syntax_suggest-1.0.2.gemspec
%{gem_dir}/specifications/default/syslog-0.1.1.gemspec
%{gem_dir}/specifications/default/tempfile-0.1.3.gemspec
%{gem_dir}/specifications/default/time-0.2.2.gemspec
%{gem_dir}/specifications/default/timeout-0.3.1.gemspec
%{gem_dir}/specifications/default/tmpdir-0.1.3.gemspec
%{gem_dir}/specifications/default/tsort-0.1.1.gemspec
%{gem_dir}/specifications/default/un-0.2.1.gemspec
%{gem_dir}/specifications/default/uri-0.12.1.gemspec
%{gem_dir}/specifications/default/weakref-0.1.2.gemspec
#%%{gem_dir}/specifications/default/win32ole-1.8.9.gemspec
%{gem_dir}/specifications/default/yaml-0.2.1.gemspec
%{gem_dir}/specifications/default/zlib-3.0.0.gemspec

%{gem_dir}/gems/erb-%{erb_version}
# Use standalone rubygem-racc if Racc binary is required. Shipping this
# executable in both packages might possibly cause conflicts. The situation
# could be better if Ruby generated these files:
# https://github.com/ruby/ruby/pull/2545
%exclude %{_bindir}/racc%{ruby_suffix}
%exclude %{gem_dir}/gems/racc-%{racc_version}/bin

%files rubygem-irb
%{_bindir}/irb%{ruby_suffix}
%{_libexecdir}/%{name}/irb
%{ruby_libdir}/irb*
%{gem_dir}/gems/irb-%{irb_version}
%{gem_dir}/specifications/irb-%{irb_version}.gemspec
%{_mandir}/man1/irb%{ruby_suffix}.1*

%files rubygem-rdoc
%{_bindir}/rdoc%{ruby_suffix}
%{_bindir}/ri%{ruby_suffix}
%{_libexecdir}/%{name}/rdoc
%{_libexecdir}/%{name}/ri
%{gem_dir}/gems/rdoc-%{rdoc_version}
%{gem_dir}/specifications/rdoc-%{rdoc_version}.gemspec
%{_mandir}/man1/ri%{ruby_suffix}*

%files doc -f .ruby-doc.en -f .ruby-doc.ja
%doc README.md
%doc ChangeLog
%{?with_systemtap:%doc ruby-exercise.stp}
%{_datadir}/ri%{ruby_suffix}

%files rubygem-bigdecimal
%{ruby_libdir}/bigdecimal*
%{ruby_libarchdir}/bigdecimal*
%{_libdir}/gems%{ruby_suffix}/%{name}/bigdecimal-%{bigdecimal_version}
%{gem_dir}/gems/bigdecimal-%{bigdecimal_version}
%{gem_dir}/specifications/bigdecimal-%{bigdecimal_version}.gemspec

%files rubygem-io-console
%{ruby_libdir}/io
%{ruby_libarchdir}/io/console.so
%{_libdir}/gems%{ruby_suffix}/%{name}/io-console-%{io_console_version}
%{gem_dir}/gems/io-console-%{io_console_version}
%{gem_dir}/specifications/io-console-%{io_console_version}.gemspec

%files rubygem-json
%{ruby_libdir}/json*
%{ruby_libarchdir}/json*
%{_libdir}/gems%{ruby_suffix}/%{name}/json-%{json_version}
%{gem_dir}/gems/json-%{json_version}
%{gem_dir}/specifications/json-%{json_version}.gemspec

%files rubygem-psych
%{ruby_libdir}/psych
%{ruby_libdir}/psych.rb
%{ruby_libarchdir}/psych.so
%{_libdir}/gems%{ruby_suffix}/%{name}/psych-%{psych_version}
%dir %{gem_dir}/gems/psych-%{psych_version}
%{gem_dir}/gems/psych-%{psych_version}/lib
%{gem_dir}/specifications/psych-%{psych_version}.gemspec

%files rubygem-bundler
%{_bindir}/bundle%{ruby_suffix}
%{_bindir}/bundler%{ruby_suffix}
%{_libexecdir}/%{name}/bundle
%{_libexecdir}/%{name}/bundler
%{gem_dir}/gems/bundler-%{bundler_version}
%{gem_dir}/specifications/bundler-%{bundler_version}.gemspec
%{_mandir}/man1/bundle*.1*
%{_mandir}/man5/gemfile%{ruby_suffix}.5*

%files bundled-gems
%{_bindir}/rdbg%{ruby_suffix}
%{_libexecdir}/%{name}/rdbg
%dir %{_libdir}/gems%{ruby_suffix}/%{name}/debug-%{debug_version}
%{_libdir}/gems%{ruby_suffix}/%{name}/debug-%{debug_version}/gem.build_complete
%dir %{_libdir}/gems%{ruby_suffix}/%{name}/debug-%{debug_version}/debug
%{_libdir}/gems%{ruby_suffix}/%{name}/debug-%{debug_version}/debug/debug.so
%dir %{gem_dir}/gems/debug-%{debug_version}
%exclude %{gem_dir}/gems/debug-%{debug_version}/.*
%doc %{gem_dir}/gems/debug-%{debug_version}/CONTRIBUTING.md
%{gem_dir}/gems/debug-%{debug_version}/Gemfile
%license %{gem_dir}/gems/debug-%{debug_version}/LICENSE.txt
%doc %{gem_dir}/gems/debug-%{debug_version}/README.md
%{gem_dir}/gems/debug-%{debug_version}/Rakefile
%doc %{gem_dir}/gems/debug-%{debug_version}/TODO.md
%{gem_dir}/gems/debug-%{debug_version}/exe
%{gem_dir}/gems/debug-%{debug_version}/lib
%{gem_dir}/gems/debug-%{debug_version}/misc
%{gem_dir}/specifications/debug-%{debug_version}.gemspec

%dir %{gem_dir}/gems/net-ftp-%{net_ftp_version}
%{gem_dir}/gems/net-ftp-%{net_ftp_version}/Gemfile
%license %{gem_dir}/gems/net-ftp-%{net_ftp_version}/LICENSE.txt
%doc %{gem_dir}/gems/net-ftp-%{net_ftp_version}/README.md
%{gem_dir}/gems/net-ftp-%{net_ftp_version}/Rakefile
%{gem_dir}/gems/net-ftp-%{net_ftp_version}/lib
%{gem_dir}/specifications/net-ftp-%{net_ftp_version}.gemspec

%dir %{gem_dir}/gems/net-imap-%{net_imap_version}
%{gem_dir}/gems/net-imap-%{net_imap_version}/Gemfile
%license %{gem_dir}/gems/net-imap-%{net_imap_version}/LICENSE.txt
%doc %{gem_dir}/gems/net-imap-%{net_imap_version}/README.md
%{gem_dir}/gems/net-imap-%{net_imap_version}/Rakefile
%{gem_dir}/gems/net-imap-%{net_imap_version}/benchmarks
%{gem_dir}/gems/net-imap-%{net_imap_version}/docs
%{gem_dir}/gems/net-imap-%{net_imap_version}/lib
%{gem_dir}/gems/net-imap-%{net_imap_version}/rakelib
%{gem_dir}/specifications/net-imap-%{net_imap_version}.gemspec

%dir %{gem_dir}/gems/net-pop-%{net_pop_version}
%{gem_dir}/gems/net-pop-%{net_pop_version}/Gemfile
%license %{gem_dir}/gems/net-pop-%{net_pop_version}/LICENSE.txt
%doc %{gem_dir}/gems/net-pop-%{net_pop_version}/README.md
%{gem_dir}/gems/net-pop-%{net_pop_version}/Rakefile
%{gem_dir}/gems/net-pop-%{net_pop_version}/lib
%{gem_dir}/specifications/net-pop-%{net_pop_version}.gemspec

%dir %{gem_dir}/gems/net-smtp-%{net_smtp_version}
%license %{gem_dir}/gems/net-smtp-%{net_smtp_version}/LICENSE.txt
%{gem_dir}/gems/net-smtp-%{net_smtp_version}/lib
%{gem_dir}/specifications/net-smtp-%{net_smtp_version}.gemspec

%dir %{gem_dir}/gems/matrix-%{matrix_version}
%license %{gem_dir}/gems/matrix-%{matrix_version}/LICENSE.txt
%{gem_dir}/gems/matrix-%{matrix_version}/lib
%{gem_dir}/specifications/matrix-%{matrix_version}.gemspec

%dir %{gem_dir}/gems/prime-%{prime_version}
%{gem_dir}/gems/prime-%{prime_version}/Gemfile
%license %{gem_dir}/gems/prime-%{prime_version}/LICENSE.txt
%doc %{gem_dir}/gems/prime-%{prime_version}/README.md
%{gem_dir}/gems/prime-%{prime_version}/Rakefile
%{gem_dir}/gems/prime-%{prime_version}/bin
%{gem_dir}/gems/prime-%{prime_version}/lib
%{gem_dir}/specifications/prime-%{prime_version}.gemspec

%files rubygem-minitest
%{gem_dir}/gems/minitest-%{minitest_version}
%exclude %{gem_dir}/gems/minitest-%{minitest_version}/.*
%{gem_dir}/specifications/minitest-%{minitest_version}.gemspec

%files rubygem-power_assert
%{gem_dir}/gems/power_assert-%{power_assert_version}
%exclude %{gem_dir}/gems/power_assert-%{power_assert_version}/.*
%{gem_dir}/specifications/power_assert-%{power_assert_version}.gemspec

%files rubygem-rake
%{_bindir}/rake%{ruby_suffix}
%{_libexecdir}/%{name}/rake
%{gem_dir}/gems/rake-%{rake_version}
%{gem_dir}/specifications/rake-%{rake_version}.gemspec
%{_mandir}/man1/rake%{ruby_suffix}.1*

%files rubygem-rbs
%{_bindir}/rbs%{ruby_suffix}
%{_libexecdir}/%{name}/rbs
%dir %{_libdir}/gems%{ruby_suffix}/%{name}/rbs-%{rbs_version}
%{_libdir}/gems%{ruby_suffix}/%{name}/rbs-%{rbs_version}/gem.build_complete
%{_libdir}/gems%{ruby_suffix}/%{name}/rbs-%{rbs_version}/rbs_extension.so
%dir %{gem_dir}/gems/rbs-%{rbs_version}
%exclude %{gem_dir}/gems/rbs-%{rbs_version}/.*
%license %{gem_dir}/gems/rbs-%{rbs_version}/BSDL
%doc %{gem_dir}/gems/rbs-%{rbs_version}/CHANGELOG.md
%license %{gem_dir}/gems/rbs-%{rbs_version}/COPYING
%{gem_dir}/gems/rbs-%{rbs_version}/Gemfile*
%doc %{gem_dir}/gems/rbs-%{rbs_version}/README.md
%{gem_dir}/gems/rbs-%{rbs_version}/Rakefile
%{gem_dir}/gems/rbs-%{rbs_version}/Steepfile
%{gem_dir}/gems/rbs-%{rbs_version}/core
%doc %{gem_dir}/gems/rbs-%{rbs_version}/docs
%{gem_dir}/gems/rbs-%{rbs_version}/exe
%{gem_dir}/gems/rbs-%{rbs_version}/goodcheck.yml
%{gem_dir}/gems/rbs-%{rbs_version}/lib
%{gem_dir}/gems/rbs-%{rbs_version}/schema
%{gem_dir}/gems/rbs-%{rbs_version}/sig
%{gem_dir}/gems/rbs-%{rbs_version}/stdlib
%{gem_dir}/gems/rbs-%{rbs_version}/steep
%{gem_dir}/specifications/rbs-%{rbs_version}.gemspec

%files rubygem-test-unit
%{gem_dir}/gems/test-unit-%{test_unit_version}
%{gem_dir}/specifications/test-unit-%{test_unit_version}.gemspec

%files rubygem-rexml
%dir %{gem_dir}/gems/rexml-%{rexml_version}
%license %{gem_dir}/gems/rexml-%{rexml_version}/LICENSE.txt
%doc %{gem_dir}/gems/rexml-%{rexml_version}/NEWS.md
%doc %{gem_dir}/gems/rexml-%{rexml_version}/doc
%{gem_dir}/gems/rexml-%{rexml_version}/lib
%{gem_dir}/specifications/rexml-%{rexml_version}.gemspec
%doc %{gem_dir}/gems/rexml-%{rexml_version}/README.md

%files rubygem-rss
%dir %{gem_dir}/gems/rss-%{rss_version}
%exclude %{gem_dir}/gems/rss-%{rss_version}/.*
%license %{gem_dir}/gems/rss-%{rss_version}/LICENSE.txt
%doc %{gem_dir}/gems/rss-%{rss_version}/NEWS.md
%{gem_dir}/gems/rss-%{rss_version}/lib
%{gem_dir}/specifications/rss-%{rss_version}.gemspec
%doc %{gem_dir}/gems/rss-%{rss_version}/Gemfile
%doc %{gem_dir}/gems/rss-%{rss_version}/README.md
%doc %{gem_dir}/gems/rss-%{rss_version}/Rakefile
%doc %{gem_dir}/gems/rss-%{rss_version}/test

%files rubygem-typeprof
%dir %{gem_dir}/gems/typeprof-%{typeprof_version}
%{_bindir}/typeprof%{ruby_suffix}
%{_libexecdir}/%{name}/typeprof
%exclude %{gem_dir}/gems/typeprof-%{typeprof_version}/.*
%license %{gem_dir}/gems/typeprof-%{typeprof_version}/LICENSE
%{gem_dir}/gems/typeprof-%{typeprof_version}/exe
%{gem_dir}/gems/typeprof-%{typeprof_version}/lib
%doc %{gem_dir}/gems/typeprof-%{typeprof_version}/tools
%exclude %{gem_dir}/gems/typeprof-%{typeprof_version}/typeprof-lsp
%{gem_dir}/specifications/typeprof-%{typeprof_version}.gemspec
%doc %{gem_dir}/gems/typeprof-%{typeprof_version}/Gemfile*
%doc %{gem_dir}/gems/typeprof-%{typeprof_version}/README.md
%doc %{gem_dir}/gems/typeprof-%{typeprof_version}/Rakefile


# CVE-2012-6684 - https://abf.io/import/rubygem-RedCloth - drop from repo
# CVE-2013-0256 < ruby-rdoc 3.12, but we have 6.2.1.1 %%rdoc_version
# CVE-2013-0334 < 1.7.0
# CVE-2013-1607 - PDFKit gem
# CVE-2013-1812 - https://abf.io/import/rubygem-ruby-openid - drop from repo
# CVE-2013-1821 <= 1.9.3
# CVE-2013-2065 <= 2.0.0
# CVE-2013-2090 - Creme Fraiche gem
# CVE-2013-2095 - rubygem-openshift-origin-controller
# CVE-2013-2105 - show_in_browser gem
# CVE-2013-2512 - ftpd gem
# CVE-2013-2516 <= FileUtils gem 0.7, but have 1.3.0 %%bundler_fileutils_version
# CVE-2013-2617 - Curl Gem
# CVE-2013-4073 < 2.0.0-p247
# CVE-2013-4164 < 2.1.0
# CVE-2013-4203 - rgpg gem
# CVE-2013-4287 < 2.0.0p247
# CVE-2013-4318 - gem Features 0.3.0
# CVE-2013-4363 < 2.1.5
# CVE-2013-4457 - Cocaine gem
# CVE-2013-4492 - https://abf.io/import/rubygem-i18n <= 0.6.5, but have 1.8.5
# CVE-2013-4562 - omniauth-facebook gem
# CVE-2013-4593 - omniauth-facebook gem
# CVE-2013-5671 - fog-dragonfly gem
# CVE-2013-6421 - sprout gem
# CVE-2013-6459 - will_paginate gem
# CVE-2013-7086 - Webbynode gem
# CVE-2013-7111 - bio-basespace-sdk gem
# CVE-2013-7463 - aescrypt gem
# CVE-2015-2963 - thoughtbot paperclip gem
# CVE-2015-3448 - rest-client
# CVE-2015-3900 <= RubyGems 2.4.7, but we have 3.1.2 %%rubygems_version
# CVE-2015-4410 - rubygem-moped
# CVE-2015-4411 - mongodb/bson-ruby <3.0.4, but have https://abf.io/import/mongodb - 4.4.8
# CVE-2015-4412 - mongodb/bson-ruby <3.0.4, but have https://abf.io/import/mongodb - 4.4.8
# CVE-2015-5460 - Snorby
# CVE-2015-7541 - colorscore gem
# CVE-2015-7551 < 2.2.4
# CVE-2015-9096 <= 2.4.0
# CVE-2015-9097 - https://abf.io/import/rubygem-mail - drop from repo
# CVE-2015-9284 - OmniAuth Ruby gem
# CVE-2016-6582 - Doorkeeper gem
# CVE-2016-7798 < openssl gem 2.0.0, but we have 2.1.3 %%openssl_version
# CVE-2017-1002201 - https://abf.io/import/rubygem-haml - drop from repo
# CVE-2017-10784 < 2.4.1
# CVE-2017-11173 - rack-cors
# CVE-2017-11465 = 2.4.1
# CVE-2017-12097 - delayed_job_web rails gem
# CVE-2017-12098 - rails_admin rails gem
# CVE-2017-14033 < 2.4.1
# CVE-2017-14064 < 2.4.1
# CVE-2017-14506 - geminabox
# CVE-2017-14683 - geminabox
# CVE-2017-15928 - Ox gem
# CVE-2017-16229 - Ox gem
# CVE-2017-16516 - yajl-ruby gem
# CVE-2017-16792 - geminabox
# CVE-2017-16833 - Gemirro
# CVE-2017-17405 < 2.4.3
# CVE-2017-17718 - net-ldap gem
# CVE-2017-17742 < 2.6.0
# CVE-2017-17790 < 2.4.3
# CVE-2017-18076 - OmniAuth Ruby gem
# CVE-2017-5946 < rubyzip gem 1.2.1, but have https://abf.io/import/rubygem-rubyzip 2.3.0
# CVE-2017-6181 < 2.4.0
# CVE-2017-7540 - Foreman
# CVE-2017-9225 <= 2.4.1
# CVE-2017-9229 <= 2.4.1
# CVE-2018-1000088 - Doorkeeper
# CVE-2018-1000842 - FatFreeCRM
# CVE-2018-1000855 - easymon
# CVE-2018-16395 <= 2.6.0
# CVE-2018-16396 <= 2.6.0
# CVE-2018-16468 - https://abf.io/import/rubygem-loofah - drop from repo
# CVE-2018-3740 - https://abf.io/import/rubygem-rails-html-sanitizer - drop from repo
# CVE-2018-3741 - https://abf.io/import/rubygem-rails-html-sanitizer - drop from repo
# CVE-2018-3759 - private_address_check ruby gem
# CVE-2018-3777 - restforce
# CVE-2018-3779 < active-support ruby gem 5.2.0, but have https://abf.io/import/rubygem-activesupport 6.0.3.4
# CVE-2018-6914 <= 2.6.0
# CVE-2018-8048 - https://abf.io/import/rubygem-loofah - drop from repo
# CVE-2018-8777 <= 2.6.0
# CVE-2018-8778 <= 2.6.0
# CVE-2018-8779 <= 2.6.0
# CVE-2018-8780 <= 2.6.0
# CVE-2019-12732 - Chartkick gem
# CVE-2019-13146 - field_test gem
# CVE-2019-13354 - strong_password gem
# CVE-2019-13589 - paranoid2 gem
# CVE-2019-14281 - datagrid gem
# CVE-2019-14282 - simple_captcha2 gem
# CVE-2019-15224 - rest-client gem
# CVE-2019-15587 - https://abf.io/import/rubygem-loofah - drop from repo
# CVE-2019-15845 <= 2.6.4
# CVE-2019-16201 <= 2.6.4
# CVE-2019-16254 <= 2.6.4
# CVE-2019-16255 <= 2.6.4
# CVE-2019-16377 - makandra consul gem
# CVE-2019-16770 - Puma
# CVE-2019-16782 < RubyGem rack 2.0.8, but have https://abf.io/import/rubygem-rack 2.2.3
# CVE-2019-17268 - omniauth-weibo-oauth2 gem
# CVE-2019-17383 - netaddr gem
# CVE-2019-18409 - legacy gem
# CVE-2019-18848 - json-jwt gem
# CVE-2019-18978 - rack-cors
# CVE-2019-25061 - RandomPasswordGenerator gem
# CVE-2019-3881 < Bundler 2.1.0 , but have https://abf.io/import/rubygem-bundler 2.3.26
# CVE-2020-10716 - tfm-rubygem-foreman_ansible
# CVE-2020-11020 - Faye
# CVE-2020-11052 - Sorcery
# CVE-2020-11076 - Puma
# CVE-2020-11077 - Puma
# CVE-2020-14001 < kramdown gem 2.3.0, but have https://abf.io/import/rubygem-kramdown 2.3.1
# CVE-2020-15169 - Action View
# CVE-2020-15237 - Shrine
# CVE-2020-15240 - omniauth-auth0
# CVE-2020-16252 - field_test gem
# CVE-2020-16253 - PgHero gem
# CVE-2020-16254 - Chartkick gem
# CVE-2020-24392 - voloko twitter-stream
# CVE-2020-24393 - TweetStream
# CVE-2020-25613 < 2.7.1
# CVE-2020-25739 - gon gem
# CVE-2020-26247 - https://abf.io/import/rubygem-nokogiri - drop from repo
# CVE-2020-26254 - omniauth-apple
# CVE-2020-26298 - Redcarpet
# CVE-2020-36190 - rails_admin rails gem
# CVE-2020-36327 <= Bundler 2.2.16, but have https://abf.io/import/rubygem-bundler 2.3.26
# CVE-2020-4054 - Sanitize
# CVE-2020-5216 - Secure Headers
# CVE-2020-5217 - Secure Headers
# CVE-2020-5241 - matestack-ui-core
# CVE-2020-5247 - Puma
# CVE-2020-5249 - Puma
# CVE-2020-5257 - Administrate
# CVE-2020-7663 - websocket-extensions
# CVE-2020-7670 - agoo
# CVE-2020-7671 - goliath
# CVE-2020-8159 - actionpack - https://abf.io/import/rubygem-actionpack - drop from repo
# CVE-2021-21289 - Mechanize
# CVE-2021-21305 - CarrierWave
# CVE-2021-22569 - protobuf-java
# CVE-2021-28680 - devise_masquerade gem
# CVE-2021-28834 < kramdown gem 2.3.1, but have https://abf.io/import/rubygem-kramdown 2.3.1
# CVE-2021-28965 < 2.7.3
# CVE-2021-29435 - trestle-auth
# CVE-2021-29509 - Puma
# CVE-2021-32066 <= 2.7.3
# CVE-2021-32740 - Addressable - https://abf.io/import/rubygem-addressable - drop from repo
# CVE-2021-32823 - bindata
# CVE-2021-33473 - Dragonfly Ruby Gem
# CVE-2021-33564 - Dragonfly Ruby Gem
# CVE-2021-33575 - Pixar ruby-jss
# CVE-2021-3779 - ruby-mysql https://abf.io/import/rubygem-mysql - drop from repo
# CVE-2021-39197 - better_errors
# CVE-2021-41098 - https://abf.io/import/rubygem-nokogiri - drop from repo
# CVE-2021-41136 - Puma
# CVE-2021-41263 - rails_multisite
# CVE-2021-41274 - solidus_auth_devise
# CVE-2021-41275 - spree_auth_devise
# CVE-2021-41816 < 2.7.5
# CVE-2021-41817 < 2.7.5
# CVE-2021-41819 < 2.7.5
# CVE-2021-43809 < Bundler 2.2.33, but have https://abf.io/import/rubygem-bundler 2.3.26
# CVE-2021-43840 - message_bus
# CVE-2022-0614 - Homebrew mruby
# CVE-2022-0759 - kubeclient
# CVE-2022-1201 - mrb_vm_exec
# CVE-2022-1427 - mrb_obj_is_kind_of
# CVE-2022-21831 - Active Storage
# CVE-2022-22577 - actionpack - https://abf.io/import/rubygem-actionpack - drop from repo
# CVE-2022-23634 - Puma
# CVE-2022-24720 - image_processing
# CVE-2022-24790 - Puma
# CVE-2022-24795 - yajl-ruby gem
# CVE-2022-24836 - https://abf.io/import/rubygem-nokogiri - drop from repo
# CVE-2022-25648 - git gem
# CVE-2022-25765 - PDFKit gem
# CVE-2022-27311 - Gibbon
# CVE-2022-27777 - Action View tag helpers
# CVE-2022-28481 - CSV-Safe
# CVE-2022-28738 - 3.0.0=>..<3.0.4, 3.1.0=>..<3.1.2
# CVE-2022-28739 < 2.7.6
# CVE-2022-29181 - https://abf.io/import/rubygem-nokogiri - drop from repo
# CVE-2022-30288 - agoo
# CVE-2022-31026 - Trilogy
# CVE-2022-31033 - Mechanize
# CVE-2022-31071 - Octopoller
# CVE-2022-31072 - Octokit
# CVE-2022-31115 - opensearch-ruby
# CVE-2022-3171 - protobuf-java
# CVE-2022-32511 - jmespath.rb
# CVE-2022-35956 - ActiveRecord https://abf.io/import/rubygem-activerecord - drop from repo
# CVE-2022-36006 - Arvados
# CVE-2022-36562 - Rubyinstaller2
# CVE-2022-36563 - Rubyinstaller2
# CVE-2022-39224 - arr-pm - https://abf.io/import/rubygem-arr-pm - drop from repo
# CVE-2022-39238 - Arvados
# CVE-2022-39281 - FatFreeCRM

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17038 |21mr|rubygem-activesupport-6.0.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name activesupport

Name:		rubygem-%{gem_name}
Epoch:		1
Version:	6.0.3.4
Release:	1
Group:		Development/Ruby
Summary:	A support libraries and Ruby core extensions extracted from the Rails framework
License:	MIT
URL:		http://rubyonrails.org
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}%{?prerelease}.gem
# The activesupport gem doesn't ship with the test suite.
# You may check it out like so
# git clone http://github.com/rails/rails.git
# cd rails/activesupport && git archive -v -o activesupport-6.0.3.2-tests.txz v6.0.3.2 test/
Source1:	%{gem_name}-%{version}%{?prerelease}-tests.txz
# The tools are needed for the test suite, are however unpackaged in gem file.
# You may get them like so
# git clone http://github.com/rails/rails.git --no-checkout
# cd rails && git archive -v -o rails-6.0.3.2-tools.txz v6.0.3.2 tools/
Source2:	rails-%{version}%{?prerelease}-tools.txz
# Fix TZInfo 2.0 compatibility.
# https://github.com/rails/rails/pull/34799
# https://github.com/rails/rails/pull/38081
Patch1:		rubygem-activesupport-6.1.0-Update-to-TZInfo-v2.0.0.patch
Patch2:		rubygem-activesupport-6.1.0-Update-to-TZInfo-v2.0.0-tests.patch

# ruby package has just soft dependency on rubygem({bigdecimal,json}), while
# ActiveSupport always requires them.
Requires:	rubygem(bigdecimal)
Requires:	rubygem(json)

# Let's keep Requires and BuildRequires sorted alphabeticaly
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby >= 2.2.2
BuildRequires:	rubygem(bigdecimal)
BuildRequires:	rubygem(builder)
BuildRequires:	rubygem(concurrent-ruby)
#BuildRequires: rubygem(connection_pool)
#BuildRequires: rubygem(dalli)
#BuildRequires: (rubygem(i18n) >= 0.7 with rubygem(i18n) < 2)
#BuildRequires: rubygem(listen)
BuildRequires:	rubygem(minitest) >= 5.0.0
BuildRequires:	rubygem(rack)
BuildRequires:	rubygem(tzinfo) >= 1.1
BuildRequires:	rubygem(redis)
BuildRequires:	memcached
BuildArch:	noarch


%description
A toolkit of support libraries and Ruby core extensions extracted from the
Rails framework. Rich support for multibyte strings, internationalization,
time zones, and testing.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/MIT-LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

#-------------------------------------------------------------------------
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.rdoc

#-------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}%{?prerelease} -b1 -b2

%patch1 -p2

pushd %{_builddir}
%patch2 -p2
popd

%gemspec_remove_dep -g tzinfo "~> 1.1"
%gemspec_add_dep -g tzinfo [">= 1.1", "< 3"]

%build
gem build ../%{gem_name}-%{version}%{?prerelease}.gemspec
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%check
#pushd .%{gem_instdir}
## Move the tests into place
#ln -s %{_builddir}/tools ..
#mv %{_builddir}/test .
#
## These tests are really unstable, but they seems to be passing upstream :/
#for f in \
#  test/evented_file_update_checker_test.rb \
#  test/cache/stores/redis_cache_store_test.rb # failed to require "redis/connection/hiredis"
#do
#  mv $f{,.disable}
#done
#
## This seems to be unstable as well ...
## https://github.com/rails/rails/issues/25682
#sed -i '/def test_iso8601_output_and_reparsing$/,/^  end$/ s/^/#/' test/core_ext/duration_test.rb
#
## Workaround TransformValuesTest#test_default_procs_do_not_persist_*_mapping
## test failures due to bug in Ruby 2.7.{0,1}.
## https://bugs.ruby-lang.org/issues/16498
#sed -i '/assert_nil mapped\[:b\]/ s/^/#/' test/core_ext/hash/transform_values_test.rb
#
## This seems to fail in koji
#sed -i '/def test_filename_max_size/ a \  skip/' \
#  test/cache/stores/file_store_test.rb
#
#memcached &
#mPID=$!
#sleep 1
#ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
#kill -15 $mPID
#popd



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17039 |21mr|rubygem-ansi-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from ansi-1.4.3.gem by gem2rpm -*- rpm-spec -*-
%global gem_name ansi

# Disable checks since dependencies not
# available and some of them depend on this.
%global enable_checks 0

Name:		rubygem-%{gem_name}
Version:	1.5.0
Release:	1
Summary:	ANSI at your fingertips!
Group:		Development/Ruby
License:	BSD
URL:		http://rubyworks.github.com/ansi
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires:	ruby(release)
Requires:	rubygems
BuildRequires:	rubygems-devel
BuildRequires:	ruby

%if 0%{?enable_checks}
BuildRequires:	rubygem(detroit)
BuildRequires:	rubygem(qed)
BuildRequires:	rubygem(lemon)
%endif
BuildArch:	noarch

%description
The ANSI project is a superlative collection of ANSI escape code related
libraries enabling ANSI colorization and styling of 
console output. Byte for byte ANSI is the best ANSI code 
library available for the Ruby programming
language.

%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.yardopts
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%doc %{gem_instdir}/LICENSE.txt
%exclude %{gem_instdir}/.index

#-----------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc %{gem_docdir}
%{gem_instdir}/.index
%doc %{gem_instdir}/HISTORY.md
%doc %{gem_instdir}/DEMO.md
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/NOTICE.md
%doc %{gem_instdir}/demo
%doc %{gem_instdir}/test

#-----------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications



# Run the test suite
%check
%if 0%{?enable_checks}
pushd .%{gem_instdir}
testrb -Ilib test
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17040 |21mr|rubygem-asciidoctor-2.0.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name asciidoctor

Summary:	A fast, open source AsciiDoc implementation in Ruby
Name:		rubygem-%{gem_name}
Version:	2.0.10
Release:	3
License:	MIT
Group:		Development/Ruby
Url:		http://asciidoctor.org/
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems
BuildRequires:	rubygems-devel
Provides:	%{gem_name} = %{EVRD}
Provides:	ruby-%{gem_name} = %{EVRD}
Conflicts:	ruby-%{gem_name} < 1.5.8-4
Obsoletes:	ruby-%{gem_name} < 1.5.8-4
BuildArch:	noarch

%description
A fast, open source text processor and publishing toolchain, written in Ruby,
for transforming AsciiDoc markup into HTML 5, DocBook 4.5, DocBook 5.0 and
custom output formats. The transformation from AsciiDoc to custom output
formats is performed by running the nodes in the parsed document tree through a
collection of templates written in a template language supported by Tilt.

%files
%{gem_instdir}
%{_mandir}/man1/*
%{gem_spec}
%{_bindir}/%{gem_name}

#-------------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{EVRD}
BuildArch:	noarch
 
%description doc
Documentation for %{name}

%files doc
%doc %{gem_docdir}

#-------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

# Fix shebang (avoid Requires: /usr/bin/env)
sed -i -e 's|#!/usr/bin/env ruby|#!/usr/bin/ruby|' bin/%{gem_name}
 
%build
gem build %{gem_name}.gemspec
%gem_install -n %{gem_name}-%{version}.gem

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/

mkdir -p %{buildroot}%{_mandir}/man1/
cp -a .%{gem_instdir}/man/*.1 %{buildroot}%{_mandir}/man1/

rm -fvr %{buildroot}%{gem_cache}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17041 |21mr|rubygem-atk-3.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	atk

Summary:	Ruby binding of ATK-1.0.x
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	2
License:	LGPLv2.1+
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygem-rake
BuildRequires:	rubygems-devel
BuildRequires:	rubygem(glib2)
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(ruby)
Provides:	rubygem-atk-devel = %{EVRD}
BuildArch:	noarch

%description
Ruby binding of ATK-1.0.x.

%files
%dir %{gem_instdir}
%{gem_instdir}/atk.gemspec
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%exclude %{gem_instdir}/dependency-check/Rakefile
%{gem_spec}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/COPYING.LIB

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

# Allow ruby-gnome2 no less than ones
sed -i -e 's|= 3\.4\.4|>= 3.4.4|' %{gem_name}.gemspec
sed -i -e '\@s\.extensions@d'  %{gem_name}.gemspec

# Fix up Rakefile for "gnome2-raketask" requirement
sed -i -e "/require.*gnome3-raketask/s|^\(.*\)|begin\n  \1\nrescue LoadError\n  require 'rubygems'\n  require 'gnome3-raketask'\nend\n|" \
    Rakefile

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17042 |21mr|rubygem-backports-3.18.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name backports

Name:		rubygem-%{gem_name}
Version:	3.18.1
Release:	3
Summary:	Essential backports
Group:		Development/Ruby
License:	MIT
Url:		http://github.com/marcandre/backports
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Essential backports that enable many of the
nice features of Ruby 1.8.7 up to 2.1.0 for earlier versions.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/SECURITY.md
%{gem_instdir}/Gemfile
%{gem_instdir}/backports.gemspec


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17043 |21mr|rubygem-builder-3.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name builder

Name:		rubygem-%{gem_name}
Version:	3.2.4
Release:	2
Group:          Development/Ruby
Summary:	Builders for MarkUp
License:	MIT
URL:		http://onestepback.org
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Builder carries copy of Blankslate, which was in the meantime extracted into
# independent gem.
# https://github.com/jimweirich/builder/issues/24
#
# Moreover, rubygem-blankslate is not yet in Fedora.
# https://bugzilla.redhat.com/show_bug.cgi?id=771316
#
# Requires: rubygem(blankslate)
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby
BuildRequires:	rubygem(minitest)
BuildArch:	noarch

%description
Builder provides a number of builder objects that make creating structured
data simple to do. Currently the following builder objects are supported:
* XML Markup
* XML Events


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{EVRD}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}

%build
# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.gemspec

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

# Remove shebangs from test files.
pushd %{buildroot}%{gem_instdir}
  find -type f -name '*.rb' -print | xargs sed -i '/#!\/usr\/bin\/env/d'
popd

# Remove shebang from rake file.
sed -i '/#!\/usr\/bin\/env/d' %{buildroot}%{gem_instdir}/rakelib/tags.rake


%check
pushd .%{gem_instdir}
ruby -Ilib:test -e 'Dir.glob "./test/test_*.rb", &method(:require)'
popd

%files
%dir %{gem_instdir}
%license %{gem_instdir}/MIT-LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGES
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/builder.blurb
%{gem_instdir}/builder.gemspec
%doc %{gem_instdir}/doc
%{gem_instdir}/rakelib
%{gem_instdir}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17044 |21mr|rubygem-bundler-2.3.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	bundler

Summary:	The best way to manage your application's dependencies
Name:		rubygem-%{gem_name}
Version:	2.3.26
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		http://gembundler.com
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Bundler manages an application's dependencies through its entire life, across
many machines, systematically and repeatably

%files
%{_bindir}/bundle
%{_bindir}/bundler
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build
gem build bundler.gemspec
%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/exe/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17045 |21mr|rubygem-cairo-1.17.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name cairo

Summary:	Ruby binding of cairo
Name:		rubygem-%{gem_name}
Version:	1.17.5
Release:	1
License:	GPLv2+ or Ruby
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	ruby-devel
BuildRequires:	rubygem(pkg-config)
BuildRequires:	rubygem(native-package-installer)

%description
Ruby binding of cairo.

%files
%dir %{gem_instdir}
%{gem_instdir}/ext
%{gem_instdir}/samples
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%{gem_archdir}/ruby/%{gem_name}-%{version}/cairo.so
%{gem_spec}


#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}
%doc %{gem_dir}/gems/%{gem_name}-%{version}/README.rdoc
%doc %{gem_instdir}/AUTHORS
%doc %{gem_instdir}/COPYING
%doc %{gem_instdir}/GPL
%doc %{gem_instdir}/Gemfile
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/NEWS

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Ruby

%description devel
Development files for %{name}.

%files devel
%{gem_archdir}/ruby/%{gem_name}-%{version}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp -R .%{_libdir} \
        %{buildroot}%{_libdir}
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem.build_complete
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem_make.out
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/mkmf.log
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17046 |21mr|rubygem-cairo-gobject-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	gem_name	cairo-gobject
%global	gem_soname	cairo_gobject

%undefine _changelog_trimtime

Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	1
Summary:	Ruby binding of cairo-gobject
Group:		Development/Ruby
License:	LGPLv2+
URL:		http://ruby-gnome2.sourceforge.jp/
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
# https://raw.github.com/ruby-gnome2/ruby-gnome2/master/COPYING.LIB
#Source1:	COPYING.LIB.cairo-gobject

# MRI Only
Requires:	ruby
BuildRequires:	ruby-devel
BuildRequires:	gcc

BuildRequires:	pkgconfig(cairo-gobject)
BuildRequires:	rubygems-devel
BuildRequires:	rubygem(cairo)
BuildRequires:	rubygem(glib2)
BuildRequires:	rubygem(test-unit)
Requires:	ruby(rubygems)
Requires:	rubygem(cairo)
Requires:	rubygem(glib2)
Provides:	rubygem(%{gem_name}) = %{version}-%{release}

%description
Ruby/CairoGObject is a Ruby binding of cairo-gobject.

%files
%dir %{gem_instdir}
%{gem_libdir}
%{gem_archdir}/ruby/%{gem_name}-%{version}/cairo_gobject.so
%{gem_spec}
%{gem_instdir}/cairo-gobject.gemspec

#-----------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{version}-%{release}
BuildArch:	noarch

%description doc
Documentation for %{name}

%files doc
%doc %{gem_dir}/gems/%{gem_name}-%{version}/README.md
%doc %{gem_instdir}/Rakefile

#-----------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}
#gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
sed -i -e 's|= 3\.4\.4|>= 3.4.4|' %{gem_name}.gemspec
# ???
sed -i -e \
	'\@gobject-introspection-test-utils@d' \
	test/run-test.rb

%build
%gem_build
#generate makefiles
./extconf.rb
#disable no-undefined
sed -i "s/-Wl,--no-undefined//g" ext/%{gem_name}/Makefile
sed -i "s/\$(DESTDIR)/./g" Makefile.lib
sed -i "s'\$(DESTDIR)'..\/..'g" ext/%{gem_name}/Makefile
sed -i "s'/local''g" Makefile.lib ext/%{gem_name}/Makefile

%install
export CONFIGURE_ARGS="--with-cflags='%{optflags} -Werror-implicit-function-declaration'"
# depend files does not exist, pkgconfig file doesn't seem
# to be needed for this package
# export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%%{_libdir}/pkgconfig"

#%%gem_install not build right .so lib
make install

#manual put files to right place
mkdir -p %{buildroot}%{gem_instdir}/lib
mkdir -p %{buildroot}%{gem_dir}/specifications
mkdir -p %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}


cp -a .%{_libdir}/ruby/site_ruby/* \
        %{buildroot}/%{gem_archdir}/ruby/%{gem_name}-%{version}

cp -R .%{_datadir}/ruby/site_ruby/* \
        %{buildroot}%{gem_instdir}/lib

cp ./*.gemspec %{buildroot}%{gem_instdir}
cp ./Rakefile %{buildroot}%{gem_instdir}
cp ../*.gemspec %{buildroot}%{gem_dir}/specifications

cp README.md %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/






@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17047 |21mr|rubygem-concurrent-ruby-1.1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from concurrent-ruby-1.0.0.gem by gem2rpm -*- rpm-spec -*-
%global gem_name concurrent-ruby

Name:		rubygem-%{gem_name}
Version:	1.1.5
Release:	3
Group:		Development/Ruby
Summary:	Modern concurrency tools for Ruby
License:	MIT
URL: http://www.concurrent-ruby.com
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/ruby-concurrency/concurrent-ruby.git && cd concurrent-ruby
# git archive -v -o concurrent-ruby-1.1.5-specs.tar.gz v1.1.5 spec/
Source1:	%{gem_name}-%{version}-specs.tar.gz
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby >= 1.9.3
BuildRequires:	rubygem(rspec)
#BuildRequires:	rubygem(timecop)
BuildArch:	noarch

%description
Modern concurrency tools including agents, futures, promises, thread pools,
actors, supervisors, and more.

Inspired by Erlang, Clojure, Go, JavaScript, actors, and classic concurrency
patterns.


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version} -b 1

%build
# Create the gem as gem install only works on a gem file
%gem_build

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/


%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.md
# Containst just some Java sources. Very likely included by mistake.
%exclude %{gem_instdir}/ext
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17048 |21mr|rubygem-csv-3.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	csv

Summary:	A set of thor scripts to manage rails application basic tasks
Name:		rubygem-%{gem_name}
Version:	3.2.0
Release:	1
Group:		Development/Ruby
License:	Ruby, BSD-2-Clause
URL:		https://github.com/ruby/csv
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc LICENSE.txt README.md
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc LICENSE.txt README.md
%{gem_dir}/doc/%{gem_name}-%{version}

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}


%build
%gem_build


%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

# Remove docs: we have it with our macro
rm -f %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{COPYING.txt,README.rdoc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17049 |21mr|rubygem-daemons-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name daemons

Summary:	A toolkit to create and control daemons in different ways
Name:		rubygem-%{gem_name}
Version:	1.3.1
Release:	1
Group:		Development/Ruby 
# The entire source code is MIT except daemonize.rb (GPLv2+ or Ruby)
License:	MIT and (GPLv2+ or Ruby)
URL:		http://daemons.rubyforge.org
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Daemons provides an easy way to wrap existing ruby scripts (for example a
self-written server)  to be run as a daemon and to be controlled by simple
start/stop/restart commands.  You can also call blocks as daemons and control
them from the parent or just daemonize the current process.  Besides this
basic functionality, daemons offers many advanced features like exception 
backtracing and logging (in case your ruby script crashes) and monitoring and
automatic restarting of your processes if they crash.

%files
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#----------------------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc

#-------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17050 |21mr|rubygem-deep_merge-1.2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from deep_merge-1.0.1.gem by gem2rpm -*- rpm-spec -*-
%global gem_name deep_merge

Name: rubygem-%{gem_name}
Version: 1.2.1
Release: 6
Group: Development/Ruby
Summary: Merge Deeply Nested Hashes
License: MIT
URL: https://github.com/danielsdeleo/deep_merge
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
Requires: ruby(rubygems)
BuildRequires: rubygems-devel
BuildRequires: ruby

BuildArch: noarch

%description
Recursively merge hashes.

%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}

%prep
gem unpack %{SOURCE0}

%setup -q -D -T -n  %{gem_name}-%{version}

gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec

%build
# Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%files
%dir %{gem_instdir}

%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/CHANGELOG
%exclude %{gem_instdir}/test
%exclude %{gem_instdir}/Rakefile
%{gem_spec}
%doc %{gem_instdir}/LICENSE

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17051 |21mr|rubygem-diff-lcs-1.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name diff-lcs

# %%check section needs rspec-expectations, however rspec-expectations depends
# on diff-lcs.
%global bootstrap 1

Name:		rubygem-%{gem_name}
Version:	1.3
Release:	9
Group:		Development/Ruby
Summary:	Provide a list of changes between two sequenced collections
License:	GPLv2+ or Artistic or MIT
URL:		https://github.com/halostatue/diff-lcs
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
%if ! 0%{?bootstrap}
BuildRequires:	rubygem(rspec)
%endif
BuildRequires:	ruby(release)
BuildArch: noarch

%description
Diff::LCS computes the difference between two Enumerable sequences using the
McIlroy-Hunt longest common subsequence (LCS) algorithm. It includes utilities
to create a simple HTML diff output format and a standard diff-like tool.

%files
%dir %{gem_instdir}
%{_bindir}/htmldiff
%{_bindir}/ldiff
%exclude %{gem_instdir}/.*
%license %{gem_instdir}/License.md
%license %{gem_instdir}/docs
%{gem_instdir}/bin
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%package doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/Code-of-Conduct.md
%doc %{gem_instdir}/Contributing.md
%doc %{gem_instdir}/History.md
%doc %{gem_instdir}/Manifest.txt
%{gem_instdir}/autotest
%doc %{gem_instdir}/README.rdoc
%{gem_instdir}/Rakefile
%{gem_instdir}/spec

%prep
%setup -q -c  -T
%gem_install -n %{SOURCE0}

%build

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/


mkdir -p %{buildroot}%{_bindir}
cp -pa .%{_bindir}/* \
        %{buildroot}%{_bindir}/

find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x

# Fix shebangs.
sed -i 's|^#!.*|#!/usr/bin/ruby|' %{buildroot}%{gem_instdir}/bin/{htmldiff,ldiff}

%if ! 0%{?bootstrap}
%check
pushd .%{gem_instdir}
rspec spec
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17052 |21mr|rubygem-ethon-0.12.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  ethon

Name:           rubygem-%{gem_name}
Version:        0.12.0
Release:        2
Summary:        Very lightweight libcurl wrapper
Group:          Development/Ruby
License:        MIT
Url:            https://github.com/typhoeus/ethon
Source0:        https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:  rubygems-devel
Requires:       rubygem-ffi >= 1.3.0
BuildArch:      noarch

%description
Ethon is a very simple libcurl. It provides direct access to libcurl functionality 
as well as some helpers for doing http requests.

%files
%doc README.* LICENSE* CHANGELOG.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec

#------------------------------------------------------------

%package        doc
Summary:        Documentation for %{name}
Group:          Books/Computer books
Requires:       %{name} = %{EVRD}

%description    doc
Documents, RDoc & RI documentation for %{name}.

%files          doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc
%exclude %{gem_dir}/cache

#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17053 |21mr|rubygem-eventmachine-1.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name eventmachine

Summary:	A fast, single-threaded engine for arbitrary network communications
Name:		rubygem-%{gem_name}
Version:	1.2.7
Release:	1
License:	MIT
Group:		Development/Ruby
URL:		http://%{gem_name}.rubyforge.org/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	ruby-devel

%description
EventMachine implements a fast, single-threaded engine for arbitrary network
communications. It's extremely easy to use in Ruby. EventMachine wraps all
interactions with IP sockets, allowing programs to concentrate on the
implementation of network protocols. It can be used to create both network
servers and clients. To create a server or client, a Ruby program only needs
to specify the IP address and port, and provide a Module that implements the
communications protocol. Implementations of several standard network protocols
are provided with the package, primarily to serve as examples. The real goal of
EventMachine is to enable programs to easily interface with other programs
using TCP/IP, especially if custom protocols are required.

%files
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%{_libdir}/gems/ruby/%{gem_name}-%{version}
%exclude %{gem_dir}/cache

#----------------------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc

#-------------------------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{_libdir}
cp -a .%{_libdir}/* \
        %{buildroot}%{_libdir}/

#remove uneeded
rm -rf %{buildroot}%{_libdir}/gems/ruby/%{gem_name}-%{version}/{gem*,mkmf.log}
rm -rf %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/ext

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17054 |21mr|rubygem-facter-4.2.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name facter

Summary:	Prove anything with facts
Name:		rubygem-%{gem_name}
Version:	4.2.14
Release:	1
License:	ASL 2.0
Group:		Development/Ruby
Url:		https://rubygems.org/gems/facter
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17055 |21mr|rubygem-fast_gettext-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name fast_gettext

Summary:	Simple, fast, memory-efficient and threadsafe implementation of GetText
Name:		rubygem-%{gem_name}
Version:	2.2.0
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		https://rubygems.org/gems/fast_gettext
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Simple, fast, memory-efficient and threadsafe implementation of GetText.

%files
%doc CHANGELOG Readme.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc CHANGELOG Readme.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17056 |21mr|rubygem-ffi-1.15.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name ffi

Name:		rubygem-%{gem_name}
Version:	1.15.4
Release:	2
Summary:	A ruby extension for programmatically loading dynamic libraries
Group:		Development/Ruby
License:	LGPLv3
URL:		http://wiki.github.com/ffi/ffi
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(libffi)

%description
Ruby-FFI is a ruby extension for programmatically loading dynamic
libraries, binding functions within them, and calling those functions
from Ruby code. Moreover, a Ruby-FFI extension works without changes
on Ruby and JRuby. Discover why should you write your next extension
using Ruby-FFI here[http://wiki.github.com/ffi/ffi/why-use-ffi].

%files
%license COPYING LICENSE
%{_libdir}/gems/ruby/%{gem_name}-%{version}
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%license COPYING LICENSE
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc

#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
export CONFIGURE_ARGS="--with-ldflags='-pthread -ldl'"
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_libdir}
cp -a .%{_libdir}/* \
        %{buildroot}%{_libdir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#remove unneded
rm -rf %{buildroot}%{_libdir}/gems/ruby/%{gem_name}-%{version}/{gem*,mkmf.log}
rm -rf %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{ext,.github,.gitignore,.gitmodules,*.yml,.yardopts}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17057 |21mr|rubygem-gdk3-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	header_dir	%{ruby_vendorarchdir}
%global	gem_name	gdk3
%global	glib_min_ver	3.0.8

# Planned for F-20+ only
Summary:	Ruby binding of GDK-3.x
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	1
Group:		Development/Ruby
# Various files in gem
License:	LGPLv2+
URL:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygem-rake
BuildRequires:	ruby-devel
BuildRequires:	rubygems-devel
BuildRequires:	rubygem(glib2) >= %{glib_min_ver}
BuildRequires:	rubygem(pango)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	rubygem(atk)
BuildRequires:	x11-server-xvfb
Requires:	rubygem(atk)
BuildArch:	noarch

%description
Ruby/GDK3 is a Ruby binding of GDK-3.x.

%files
%doc %{gem_instdir}/[A-Z]*
%exclude %{gem_instdir}/Rakefile
%exclude %{gem_instdir}/dependency-check/Rakefile
%dir %{gem_instdir}/
%dir %{gem_instdir}/lib/
%{gem_instdir}/lib/%{gem_name}.rb
%dir %{gem_instdir}/lib/%{gem_name}/
%{gem_instdir}/lib/%{gem_name}/*.rb
%exclude %{gem_instdir}/test
%exclude %{gem_cache}
%exclude %{gem_instdir}/*gemspec
%{gem_spec}

#---------------------------------------------------------------

%package	doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documentation for %{name}

%files doc
%doc	%{gem_docdir}/

#---------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

find . -name \*.rb -print0 | xargs --null chmod 0644

# Allow ruby-gnome2 no less than ones
sed -i -e 's|= 3\.4\.4|>= 3.4.4|' %{gem_name}.gemspec
sed -i -e '\@s\.extensions@d'  %{gem_name}.gemspec


%build
%gem_build

%gem_install

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

cp -R .%{_libdir} \
        %{buildroot}%{_libdir}
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem.build_complete
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem_make.out
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/mkmf.log




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17058 |21mr|rubygem-gdk_pixbuf2-3.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name gdk_pixbuf2

Summary:	Ruby binding of GdkPixbuf-2.x
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	2
License:	LGPLv2.1+
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem-glib2-devel
BuildRequires:	rubygem(glib2)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	rubygem-rake
Obsoletes:	%{name}-devel < 3.0.9
BuildArch:	noarch

%description
Ruby binding of GdkPixbuf-2.x.

%files
%dir %{gem_instdir}
%{gem_instdir}/%{gem_name}.gemspec
%{gem_instdir}/sample
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%exclude %{gem_instdir}/dependency-check/Rakefile
%{gem_spec}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/COPYING.LIB

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

# Allow ruby-gnome2 no less than ones
sed -i -e 's|= 3\.4\.4|>= 3.4.4|' %{gem_name}.gemspec
sed -i -e '\@s\.extensions@d'  %{gem_name}.gemspec

# Fix up Rakefile for "gnome2-raketask" requirement
sed -i -e "/require.*gnome3-raketask/s|^\(.*\)|begin\n  \1\nrescue LoadError\n  require 'rubygems'\n  require 'gnome3-raketask'\nend\n|" \
    Rakefile

%build
%gem_build

%install
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17059 |21mr|rubygem-gettext-3.3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name gettext

Summary:	Gettext is a pure Ruby library and tools to localize messages
Name:		rubygem-%{gem_name}
Version:	3.3.8
Release:	1
License:	LGPLv3+ or Ruby
Group:		Development/Ruby
Url:		http://ruby-gettext.github.com/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1:	%{name}.rpmlintrc
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Gettext is a GNU gettext-like program for Ruby. The catalog file (po-file) has
same format as GNU gettext, so you can use GNU gettext tools for maintaining.

%files
%doc README.md
%{_bindir}/*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.md
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}


%build
%gem_build


%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#remove unneded
rm -rf %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{po,test,src,.yardopts}
find %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version} -name \*.time_stamp -type f -exec rm -f {} \;

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{_bindir}/*
find %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version} -type f -exec sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17060 |21mr|rubygem-gio2-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	gio2

Summary:	Ruby binding of gio-2.x
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem(glib2)
BuildRequires:	rubygem(gobject-introspection)
BuildRequires:	rubygem(glib2)
BuildRequires:	ruby-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
Ruby binding of gio-2.x.

%files
%dir %{gem_instdir}
%{gem_instdir}/ext
%{gem_instdir}/extconf.rb
%{gem_instdir}/%{gem_name}.gemspec
%{gem_libdir}
%{gem_archdir}/ruby/%{gem_name}-%{version}/*.so
%{gem_spec}

#----------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.md
%doc %{gem_instdir}/Rakefile

#----------------------------------------------------------------

%package	devel
Summary:	Ruby/GIO2 development environment
Group:		Development/Ruby
Requires:	%{name} = %{EVRD}
Requires:	ruby-devel
# Obsoletes / Provides
Obsoletes:	ruby-%{gem_name}-devel < %{EVRD}
Provides:	ruby-%{gem_name}-devel = %{EVRD}

%description devel
Header files and libraries for building a extension library for the
rubygem-%{gem_name}

%files devel
%{_libdir}/pkgconfig/ruby-gio2.pc

#----------------------------------------------------------------

%prep
%setup -qn %{gem_name}-%{version}

# Allow ruby-gnome2 no less than ones
sed -i -e 's|= 3\.4\.4|>= 3.4.4|' %{gem_name}.gemspec

%build
%gem_build
#generate makefiles
./extconf.rb
#disable no-undefined
sed -i "s/-Wl,--no-undefined//g" Makefile.lib ext/%{gem_name}/Makefile
sed -i "s/\$(DESTDIR)/./g" Makefile.lib
sed -i "s'\$(DESTDIR)'..\/..'g" ext/%{gem_name}/Makefile
sed -i "s'/local''g" Makefile.lib ext/%{gem_name}/Makefile

%install
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
#%%gem_install not build right .so lib
make install


#manual put files to right place
mkdir -p %{buildroot}%{gem_instdir}/lib
mkdir -p %{buildroot}%{gem_dir}/specifications
mkdir -p %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}


cp -a .%{_libdir}/ruby/site_ruby/* \
        %{buildroot}/%{gem_archdir}/ruby/%{gem_name}-%{version}

cp -R .%{_datadir}/ruby/site_ruby/* \
        %{buildroot}%{gem_instdir}/lib

make clean
cp -R ./ext \
        %{buildroot}%{gem_instdir}

cp ./extconf.rb %{buildroot}%{gem_instdir}
cp ./*.gemspec %{buildroot}%{gem_instdir}
cp ./Rakefile %{buildroot}%{gem_instdir}
cp ../*.gemspec %{buildroot}%{gem_dir}/specifications

# move pkgconfig file
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
cp ./ext/%{gem_name}/*.pc \
    %{buildroot}%{_libdir}/pkgconfig/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17061 |21mr|rubygem-glib2-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name glib2

Summary:	Ruby binding of GLib-2.x
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	1
License:	GPLv2+ or Ruby
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem(pkg-config)
BuildRequires:	rubygem(native-package-installer)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(ruby)

%description
Ruby binding of GLib-2.x.

%files
%dir %{gem_instdir}
%{gem_instdir}/ext
%{gem_instdir}/sample
%{gem_instdir}/extconf.rb
%{gem_instdir}/glib2.gemspec
%{gem_instdir}/version.rb
%{gem_libdir}
%{gem_archdir}/ruby/%{gem_name}-%{version}/glib2.so
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%{gem_spec}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Development/Ruby
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/COPYING.LIB

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Ruby
Requires:	%{name} = %{EVRD}

%description devel
Development files for %{name}.

%files devel
%{gem_archdir}/ruby/%{gem_name}-%{version}/*.h
%{_libdir}/pkgconfig/ruby-%{gem_name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
# Make pkg-config devel dependency (not runtime)
sed -i \
    -e '\@pkg-config@s|add_\(runtime_\)*dependency|add_development_dependency|' \
    -e '\@native-package-installer@s|add_\(runtime_\)*dependency|add_development_dependency|' \
    %{gem_name}.gemspec \
    Rakefile

sed -i \
    -e '2a require "rubygems"\ngem "test-unit"\n' \
    test/run-test.rb

# shebang issue
find sample/ test/ -name \*.rb | xargs chmod 0644
grep -rl '#![ ]*/usr' sample/ test/ | \
    xargs chmod 0755

export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"

%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

cp -R .%{_libdir} \
        %{buildroot}%{_libdir}
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem.build_complete
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem_make.out
rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/mkmf.log

# move pkgconfig file
install -cpm 644 ./%{_libdir}/pkgconfig/*.pc \
    %{buildroot}%{_libdir}/pkgconfig/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17062 |21mr|rubygem-gobject-introspection-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name gobject-introspection
%define oname gobject_introspection

Summary:	Ruby binding of gobject-introspection
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	1
License:	LGPLv2.1+
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem-glib2-devel
BuildRequires:	rubygem(glib2)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(ruby)

%description
Ruby/GObjectIntrospection is a Ruby binding of GObjectIntrospection.

%files
%dir %{gem_instdir}
%{gem_instdir}/ext
%{gem_libdir}
%{gem_archdir}/ruby/%{gem_name}-%{version}/gobject_introspection.so
%{gem_spec}
%{gem_instdir}/*.gemspec
%{gem_instdir}/extconf.rb

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
#%%doc %{gem_dir}/doc/%{gem_name}-%{version}
#%%doc %{gem_dir}/gems/%{gem_name}-%{version}/README.rdoc
%doc README.md
%doc %{gem_instdir}/Rakefile

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Ruby

%description devel
Development files for %{name}.

%files devel
%{gem_archdir}/ruby/%{gem_name}-%{version}/*.h
%{_libdir}/pkgconfig/ruby-gobject-introspection.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build
#generate makefiles
./extconf.rb
#disable no-undefined
sed -i "s/-Wl,--no-undefined//g" Makefile.lib ext/%{gem_name}/Makefile
sed -i "s/\$(DESTDIR)/./g" Makefile.lib
sed -i "s'\$(DESTDIR)'..\/..'g" ext/%{gem_name}/Makefile
sed -i "s'/local''g" Makefile.lib ext/%{gem_name}/Makefile

%install

#%%gem_install not build right .so lib
make install


#manual put files to right place
mkdir -p %{buildroot}%{gem_instdir}/lib
mkdir -p %{buildroot}%{gem_dir}/specifications
mkdir -p %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}


cp -a .%{_libdir}/ruby/site_ruby/* \
        %{buildroot}/%{gem_archdir}/ruby/%{gem_name}-%{version}

cp -R .%{_datadir}/ruby/site_ruby/* \
        %{buildroot}%{gem_instdir}/lib

make clean
cp -R ./ext \
        %{buildroot}%{gem_instdir}

cp ./extconf.rb %{buildroot}%{gem_instdir}
cp ./*.gemspec %{buildroot}%{gem_instdir}
cp ./Rakefile %{buildroot}%{gem_instdir}
cp ../*.gemspec %{buildroot}%{gem_dir}/specifications


#rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem.build_complete
#rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem_make.out
#rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/mkmf.log

# move pkgconfig file
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
cp ./ext/%{gem_name}/*.pc \
    %{buildroot}%{_libdir}/pkgconfig/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17063 |21mr|rubygem-gstreamer-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name gstreamer

Summary:	Ruby binding of GStreamer
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	1
License:	LGPLv2.1+
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem-glib2-devel
BuildRequires:	rubygem-gobject-introspection-devel
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	rubygem(glib2)
BuildRequires:	rubygem(gobject-introspection)
Obsoletes:	ruby-gst < 0.90.6

%description
Ruby/GStreamer is a Ruby binding for GStreamer.

%files
%dir %{gem_instdir}
%{gem_libdir}
%{gem_archdir}/ruby/%{gem_name}-%{version}/gstreamer.so
%{gem_spec}
%{gem_instdir}/gstreamer.gemspec

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_dir}/gems/%{gem_name}-%{version}/README.md
%doc %{gem_instdir}/Rakefile

#----------------------------------------------------------------------------

%package	devel
Summary:	Ruby/GStreamer development environment
Group:		Development/Ruby
Requires:	%{name}%{?_isa} = %{EVRD}

%description devel
Header files and libraries for building a extension library for the
rubygem-%{gem_name}

%files devel
%{gem_archdir}/ruby/%{gem_name}-%{version}/*.h
%{_libdir}/pkgconfig/ruby-%{gem_name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

# Allow ruby-gnome2 no less than ones
sed -i -e 's|= 3\.4\.4|>= 3.4.4|' %{gem_name}.gemspec

%build
%gem_build
#generate makefiles
chmod 755 ./extconf.rb
./extconf.rb
#disable no-undefined
sed -i "s/-Wl,--no-undefined//g" ext/%{gem_name}/Makefile
sed -i "s/\$(DESTDIR)/./g" Makefile.lib
sed -i "s'\$(DESTDIR)'..\/..'g" ext/%{gem_name}/Makefile
sed -i "s'/local''g" Makefile.lib ext/%{gem_name}/Makefile


%install
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"

#%%gem_install not build right .so lib
make install

#manual put files to right place
mkdir -p %{buildroot}%{_libdir}/pkgconfig
mkdir -p %{buildroot}%{gem_instdir}/lib
mkdir -p %{buildroot}%{gem_dir}/specifications
mkdir -p %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}


cp -a .%{_libdir}/ruby/site_ruby/* \
        %{buildroot}/%{gem_archdir}/ruby/%{gem_name}-%{version}

cp -R .%{_datadir}/ruby/site_ruby/* \
        %{buildroot}%{gem_instdir}/lib

cp ./*.gemspec %{buildroot}%{gem_instdir}
cp ./Rakefile %{buildroot}%{gem_instdir}
cp ../*.gemspec %{buildroot}%{gem_dir}/specifications

cp README.md %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/

# move pkgconfig file
install -cpm 644 ext/%{gem_name}/*.pc \
    %{buildroot}%{_libdir}/pkgconfig/

install -cpm 644 ext/%{gem_name}/*.h \
    %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17064 |21mr|rubygem-gtk3-3.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name gtk3

Summary:	Ruby binding of GTK+-3.x
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	2
License:	LGPLv2.1+
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem(atk)
BuildRequires:	rubygem(cairo)
BuildRequires:	rubygem(glib2)
BuildRequires:	rubygem(pango)
BuildRequires:	rubygem(gobject-introspection)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	rubygem-rake
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(x11)
BuildRequires:	rubygem(gdk_pixbuf2)

%description
Ruby binding of GTK-3.x.

%files
%dir %{gem_instdir}
%{gem_instdir}/sample
%{gem_instdir}/%{gem_name}.gemspec
%{gem_instdir}/version.rb
%{gem_libdir}
%{gem_archdir}/ruby/%{gem_name}-%{version}/%{gem_name}.so
%{gem_spec}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/Rakefile
%doc %{gem_instdir}/COPYING.LIB

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Ruby

%description devel
Development files for %{name}.

%files devel
%{gem_archdir}/ruby/%{gem_name}-%{version}/*.h
%{_libdir}/pkgconfig/ruby-%{gem_name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

# Allow ruby-gnome2 no less than ones
# Will fix below later
sed -i -e 's|= 3\.4\.4|>= 3.4.4|' %{gem_name}.gemspec

# Fix wrong dir
grep -rl /usr/local/bin sample | \
    xargs sed -i -e 's|/usr/local/|/usr/|' || true

%build
%gem_build
#generate makefiles
./extconf.rb all
#disable no-undefined
sed -i "s/-Wl,--no-undefined//g" Makefile.lib ext/%{gem_name}/Makefile
sed -i "s/\$(DESTDIR)/./g" Makefile.lib
sed -i "s'\$(DESTDIR)'..\/..'g" ext/%{gem_name}/Makefile
sed -i "s'/local''g" Makefile.lib ext/%{gem_name}/Makefile

%install
export CONFIGURE_ARGS="--with-cflags='%{optflags}'"
export CONFIGURE_ARGS="$CONFIGURE_ARGS --with-pkg-config-dir=$(pwd)%{_libdir}/pkgconfig"
#%%gem_install not build right .so lib
make install


#manual put files to right place
mkdir -p %{buildroot}%{gem_instdir}/lib
mkdir -p %{buildroot}%{gem_dir}/specifications
mkdir -p %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}


cp -a .%{_libdir}/ruby/site_ruby/* \
        %{buildroot}/%{gem_archdir}/ruby/%{gem_name}-%{version}

cp -a ext/%{gem_name}/*.h %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}

cp -R .%{_datadir}/ruby/site_ruby/* \
        %{buildroot}%{gem_instdir}/lib

make clean

cp ./*.gemspec %{buildroot}%{gem_instdir}
cp ./Rakefile %{buildroot}%{gem_instdir}
cp ../*.gemspec %{buildroot}%{gem_dir}/specifications
cp -r sample %{buildroot}%{gem_instdir}
cp -r COPYING.LIB %{buildroot}%{gem_instdir}
cp -r README.md %{buildroot}%{gem_instdir}
cp .%{_datadir}/ruby/site_ruby/%{gem_name}/version.rb %{buildroot}%{gem_instdir}


# move pkgconfig file
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
cp ./ext/%{gem_name}/*.pc \
    %{buildroot}%{_libdir}/pkgconfig/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17065 |21mr|rubygem-hiredis-0.6.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from hiredis1.6.1.gem by gem2rpm -*- rpm-spec -*-
%global gem_name hiredis

Name: rubygem-%{gem_name}
Version: 0.6.3
Release: 7
Group: Development/Ruby
Summary: Ruby wrapper for hiredis
License: BSD
URL: http://github.com/redis/hiredis-rb
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Get the test suite:
# git clone https://github.com/redis/hiredis-rb.git && cd hiredis-rb/
# git checkout v0.6.3 && tar czvf hiredis-0.6.3-tests.tgz test/
Source1: %{gem_name}-%{version}-tests.tgz
# Build against system hiredis library
Patch0: rubygem-hiredis-0.6.1-Build-against-system-hiredis.patch
# Compatibility with older hiredis we have in Fedora
# Revert: https://github.com/redis/hiredis-rb/pull/53
# https://github.com/redis/hiredis-rb/commit/5284a0403bca7fbd9a086f9d8501a053a65beb67
Patch1: rubygem-hiredis-0.6.3-Support-older-hiredis-version.patch
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby-devel
BuildRequires: hiredis-devel
BuildRequires: rubygem(minitest)

%description
Ruby wrapper for hiredis (protocol serialization/deserialization and blocking
I/O).

%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version} -b1

# Remove bundled hiredis
%gemspec_remove_file Dir.glob('vendor/**/*')
rm -rf ./vendor

# Use system hiredis
%patch0 -p1
%patch1 -p1


%build
%gem_build
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{gem_extdir_mri}/hiredis/ext
cp -a .%{gem_extdir_mri}/gem.build_complete %{buildroot}%{gem_extdir_mri}/
cp -a .%{gem_extdir_mri}/%{gem_name}/ext/*.so %{buildroot}%{gem_extdir_mri}/%{gem_name}/ext

# Prevent dangling symlink in -debuginfo (rhbz#878863).
rm -rf %{buildroot}%{gem_instdir}/ext/


%check
pushd .%{gem_instdir}
# Unpack the test suite
tar xzf %{SOURCE1}

# The connection does not recover, probably hiredis version mismatch
# https://github.com/redis/hiredis-rb/issues/62
sed -i '/^  def test_recover_from_partial_write/ a skip' \
  test/connection_test.rb
# The connection fails in koji, with unexpected error, resulting in Failure
sed -i '/^\s* def test_connect_wrong_host/ a \    skip' \
  test/connection_test.rb
sed -i '/^  def test_no_eagain_after_cumulative_wait_exceeds_timeout/ a skip' \
  test/connection_test.rb

ruby -Ilib:$(dirs +1)%{gem_extdir_mri} -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd

%files
%dir %{gem_instdir}
%{gem_extdir_mri}
%license %{gem_instdir}/COPYING
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/ext
%{gem_spec}

%files doc
%doc %{gem_docdir}
%{gem_instdir}/Rakefile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17066 |21mr|rubygem-hocon-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name hocon

Name: 		rubygem-%{gem_name}
Version:	1.3.1
Release:	1
Summary:	HOCON Config Library
Group:		Development/Ruby
License:	ASL 2.0
URL:		https://github.com/puppetlabs/ruby-hocon
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem

# SOURCE1 contains the upstream tag of the project from github
# in particular this includes the spec directory which was not
# included in the gemfile.
# https://github.com/puppetlabs/ruby-hocon/issues/65
# was originally resolved.
# However the rspec files were then removed again for a bizare reason.
# https://tickets.puppetlabs.com/browse/PA-2942
Source1: https://github.com/puppetlabs/ruby-hocon/archive/%{version}/ruby-hocon-%{version}.tar.gz

BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby >= 1.9.0
BuildArch:	noarch

%description
A port of the Java Typesafe Config
library to Ruby.
https://github.com/typesafehub/config

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/spec
%{gem_spec}
%{_bindir}/hocon

#------------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{EVRD}
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/HISTORY.md
%doc %{gem_instdir}/README.md

#------------------------------------------------------------------

%prep
gem unpack %{SOURCE0}

%setup -q -D -T -n  %{gem_name}-%{version}

gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec
sed -i 's/\/usr\/bin\/env ruby/\/usr\/bin\/ruby/' bin/hocon

# unpack only the spec files from SOURCE1.
tar zxf %{SOURCE1} ruby-hocon-%{version}/spec --strip-components 1

%build
# Create the gem as gem install only works on a gem file
gem build %{gem_name}.gemspec

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
mkdir -p %{buildroot}%{_bindir}
mv %{buildroot}%{gem_instdir}/bin/hocon %{buildroot}/%{_bindir}/hocon

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17067 |21mr|rubygem-i18n-1.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	i18n

Summary:	New wave Internationalization support for Ruby
Name:		rubygem-%{gem_name}
Version:	1.8.5
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
Url:		http://github.com/svenfuchs/i18n
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
New wave Internationalization support for Ruby.

%files
%{gem_instdir}
%exclude %{gem_cache}
%{gem_spec}

#-----------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_instdir}/README.md
%doc %{gem_docdir}

#-----------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17068 |21mr|rubygem-introspection-0.0.4-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from introspection-0.0.2.gem by gem2rpm -*- rpm-spec -*-
%global gem_name introspection

Name:		rubygem-%{gem_name}
Version:	0.0.4
Release:	9
Summary:	Dynamic inspection of the hierarchy of method definitions on a Ruby object
# https://github.com/floehopper/introspection/issues/1
License:	MIT
Group:          Development/Ruby
URL:		http://jamesmead.org
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby
BuildRequires:	rubygem(metaclass) => 0.0.1
BuildRequires:	rubygem(metaclass) < 0.1
# Required to satisfy the 'blankslate' require. May be replaced
# by rubygem(blankslate) when available in Fedora.
BuildRequires:	rubygem(builder)
# There is no #assert_nothing_raised in minitest 5.x
BuildRequires:	rubygem(minitest)
BuildArch:	noarch

%description
Dynamic inspection of the hierarchy of method definitions on a Ruby object.


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{EVRD}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}

%build

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%check
pushd .%{gem_instdir}
# Disable Bundler.
sed -i '/bundler\/setup/ d' test/test_helper.rb

ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd


%files
%license %{gem_instdir}/COPYING.txt
%dir %{gem_instdir}
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/.travis.yml
%exclude %{gem_instdir}/introspection.gemspec
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_instdir}/README.md
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%{gem_instdir}/samples
%{gem_instdir}/test
%doc %{gem_docdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17069 |21mr|rubygem-kramdown-2.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  kramdown

Name:		rubygem-%{gem_name}
Version:	2.3.1
Release:	1
Summary:	kramdown is yet-another-markdown-parser
Group:		Development/Ruby
License:	MIT
Url:		http://kramdown.gettalong.org/
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Open child process with handles on pid, stdin, stdout, and stderr: 
manage child processes and their io handles easily.

%files
%doc README.* COPYING*
%{_bindir}/kramdown
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%{_mandir}/man1/kramdown.1*
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#move man to right place
mkdir -p %{buildroot}%{_mandir}
mv %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/man/man1 %{buildroot}%{_mandir}
rm -d %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/man

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin/kramdown
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17070 |21mr|rubygem-locale-2.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name locale

Summary:	Ruby-Locale is the pure ruby library which provides basic APIs for localization
Name:		rubygem-%{gem_name}
Version:	2.1.3
Release:	2
License:	GPLv2+ or Ruby
Group:		Development/Ruby
Url:		https://github.com/ruby-gettext/locale
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Ruby-Locale is the pure ruby library which provides basic APIs for
localization.

%files
%doc COPYING* README*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17071 |21mr|rubygem-metaclass-0.0.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from metaclass-0.0.1.gem by gem2rpm -*- rpm-spec -*-
%global gem_name metaclass


Summary:	Adds a metaclass method to all Ruby objects
Name:		rubygem-%{gem_name}
Version:	0.0.4
Release:	11
Group:          Development/Ruby
# https://github.com/floehopper/metaclass/issues/1
License:	MIT
URL:		http://github.com/floehopper/metaclass
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
# Make the test suite support MiniTest 5.x.
# https://github.com/floehopper/metaclass/commit/cff40cbace639d3b66d7913d99e74e56f91905b8
Patch0:		rubygem-metaclass-0.0.4-Move-to-Minitest-5.patch
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby
BuildRequires:	rubygem(minitest)
BuildArch:	noarch

%description
Adds a metaclass method to all Ruby objects


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}


%prep
%setup -q -c -T
%gem_install -n %{SOURCE0}

pushd .%{gem_instdir}
%patch0 -p1
popd

%build

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%check
pushd .%{gem_instdir}
# test_helper.rb currently references bundler, so it is easier to avoid
# its usage at all.
sed -i '/require "bundler\/setup"/ d' test/test_helper.rb

ruby -Ilib:test -e 'Dir.glob "./test/**/*_test.rb", &method(:require)'
popd


%files
%dir %{gem_instdir}
%license %{gem_instdir}/COPYING.txt
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/metaclass.gemspec
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%{gem_instdir}/test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17072 |21mr|rubygem-minitest-5.14.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	minitest


Name:		rubygem-%{gem_name}
Version:	5.14.4
Release:	1
Summary:	Testing facilities supporting TDD, BDD, mocking, and benchmarking
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		https://github.com/seattlerb/minitest
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
minitest provides a complete suite of testing facilities supporting
TDD, BDD, mocking, and benchmarking.
"I had a class with Jim Weirich on testing last week and we were
allowed to choose our testing frameworks. Kirk Haines and I were
paired up and we cracked open the code for a few test
frameworks...
I MUST say that mintiest is *very* readable / understandable
compared to the 'other two' options we looked at. Nicely done and
thank you for helping us keep our mental sanity."
-- Wayne E. Seguin
minitest/unit is a small and incredibly fast unit testing framework.
It provides a rich set of assertions to make your tests clean and
readable.
minitest/spec is a functionally complete spec engine. It hooks onto
minitest/unit and seamlessly bridges test assertions over to spec
expectations.
minitest/benchmark is an awesome way to assert the performance of your
algorithms in a repeatable manner. Now you can assert that your newb
co-worker doesn't replace your linear algorithm with an exponential
one!
minitest/mock by Steven Baker, is a beautifully tiny mock object
framework.
minitest/pride shows pride in testing and adds coloring to your test
output. I guess it is an example of how to write IO pipes too. :P
minitest/unit is meant to have a clean implementation for language
implementors that need a minimal set of methods to bootstrap a working
test suite. For example, there is no magic involved for test-case
discovery.
"Again, I can't praise enough the idea of a testing/specing
framework that I can actually read in full in one sitting!"
-- Piotr Szotkowski


%files
%dir %{gem_instdir}
%{gem_libdir}
%exclude %{gem_cache}
%{gem_instdir}/test
%{gem_instdir}/.autotest
%{gem_instdir}/Rakefile
%{gem_instdir}/design_rationale.rb
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec

#--------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}

Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/History.rdoc
%doc %{gem_instdir}/README.rdoc
%doc %{gem_instdir}/Manifest.txt

#--------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17073 |21mr|rubygem-minitest-reporters-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name minitest-reporters

Name:		rubygem-%{gem_name}
Version:	1.4.2
Release:	1
Summary:	Create customizable Minitest output formats
Group:		Development/Ruby
License:	MIT
URL:		https://github.com/CapnKernul/minitest-reporters
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Disable generating coverage report during test execution
Patch0:		00-disable-rubocop-tests.patch
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby >= 1.9.3
BuildRequires:	git
BuildRequires:	rubygem(builder)
BuildRequires:	rubygem(bundler)
BuildRequires:	rubygem(minitest)
BuildRequires:	rubygem(rake)
BuildArch:	noarch

%description
Death to haphazard monkey-patching! Extend Minitest through simple hooks.

%files
%license %{gem_instdir}/LICENSE
%dir %{gem_instdir}
%{gem_instdir}/.ruby-gemset
%{gem_instdir}/assets/
%exclude %{gem_instdir}/appveyor.yml
%exclude %{gem_instdir}/.gitignore
%exclude %{gem_instdir}/.rubocop.yml
%exclude %{gem_instdir}/.travis.yml
%exclude %{gem_instdir}/.yardopts
%exclude %{gem_instdir}/minitest-reporters.gemspec
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

#------------------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description    doc
Documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%{gem_instdir}/test/

#------------------------------------------------------------------------

%prep
%autosetup -S git -n %{gem_name}-%{version} -p1


%build
%gem_build



%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/


%check
pushd .%{gem_instdir}
# The 4 test failures and 2 test errors are expected according to the code.
ruby -e 'Dir.glob "./test/**/*_test.rb", &method(:require)' || :
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17074 |21mr|rubygem-mocha-1.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name mocha

Summary:        Mocking and stubbing library
Name:           rubygem-%{gem_name}
Version:        1.9.0
Release:        3
Group:		Development/Ruby
License:        MIT or Ruby or BSD
URL:            https://mocha.jamesmead.org
Source0:        http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:  ruby(release)
BuildRequires:  rubygems-devel
BuildRequires:  ruby
BuildRequires:  rubygem(metaclass)
BuildRequires:  rubygem(introspection)
BuildRequires:  rubygem(minitest)
BuildArch:      noarch

%description
Mocking and stubbing library with JMock/SchMock syntax, which allows
mocking and stubbing of methods on real (non-mock) classes.

%files
%exclude %{gem_instdir}/.*
%exclude %{gem_instdir}/init.rb
%doc %{gem_instdir}/COPYING.md
%doc %{gem_instdir}/README.md
%license %{gem_instdir}/MIT-LICENSE.md
%doc %{gem_instdir}/RELEASE.md
%dir %{gem_instdir}
%{gem_instdir}/bin
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

#----------------------------------------------------------------------------

%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_instdir}/Gemfile*
%doc %{gem_docdir}
%doc %{gem_instdir}/CONTRIBUTING.md
%{gem_instdir}/Rakefile
%{gem_instdir}/mocha.gemspec
%{gem_instdir}/gemfiles/
%{gem_instdir}/test/
%{gem_instdir}/docs/
%{gem_instdir}/yard-templates/

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%check
pushd .%{gem_instdir}
# Each part of test suite must be run separately, otherwise the test suite fails.
# https://github.com/freerange/mocha/issues/121
for kind in unit acceptance integration; do
  ruby -e "Dir.glob('./test/$kind/**/*_test.rb').each {|t| require t}"
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17075 |21mr|rubygem-mustermann-1.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  mustermann

Name:		rubygem-%{gem_name}
Version:	1.1.1
Release:	2
Summary:	A library implementing patterns that behave like regular expressions
Group:		Development/Ruby
License:	MIT
Url:		https://github.com/sinatra/mustermann
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
A library implementing patterns that behave like regular expressions.

%files
%doc README.* LICENSE*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17076 |21mr|rubygem-native-package-installer-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name native-package-installer

Summary:	Install native packages to install an extension library that depends on native packages
Name:		rubygem-%{gem_name}
Version:	1.0.9
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		https://github.com/ruby-gnome/native-package-installer
Source0:        https://rubygems.org/downloads/native-package-installer-%{version}.gem
BuildRequires:  rubygems-devel
BuildArch:      noarch

%description
Users need to install native packages to install an extension library that 
depends on native packages. It bores users because users need to install 
native packages and an extension library separately. native-package-installer 
helps to install native packages on "gem install". Users can install both native 
packages and an extension library by one action, "gem install".

%files
%{gem_instdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%{gem_spec}

#------------------------------------------------------------------

%package        doc
Summary:        Documentation for %{name}
Group:          Books/Computer books
Requires:       %{name} = %{EVRD}

%description    doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%{gem_instdir}/Rakefile
%doc %{gem_instdir}/README.md
%doc %{gem_instdir}/doc/text

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17077 |21mr|rubygem-open4-1.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  open4

Name:		rubygem-%{gem_name}
Version:	1.3.4
Release:	2
Summary:	Open child process with handles on pid, stdin, stdout, and stderr
Group:		Development/Ruby
License:	BSD
Url:		https://github.com/ahoward/open4
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Open child process with handles on pid, stdin, stdout, and stderr: 
manage child processes and their io handles easily.

%files
%doc README.* LICENSE*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17078 |21mr|rubygem-packnga-1.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  packnga

Name:		rubygem-%{gem_name}
Version:	1.0.4
Release:	2
Summary:	Packnga is a library to translate to many languages by YARD
Group:		Development/Ruby
License:	LGPLv2
Url:		http://ranguba.org/packnga/en/
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Packnga is a library to translate to many languages by YARD.

%files
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}

#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17079 |21mr|rubygem-pango-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define gem_name pango

Summary:	Ruby binding of Pango
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	1
License:	GPLv2+ or Ruby
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem-cairo-devel
BuildRequires:	rubygem-glib2-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	rubygem(cairo)
BuildRequires:	rubygem(glib2)
BuildRequires:	rubygem(gobject-introspection)

%description
Ruby binding of Pango.

%files
%dir %{gem_instdir}
%{gem_instdir}/ext
%{gem_libdir}
#%%exclude %{gem_cache}
#%%exclude %{gem_instdir}/test
%{gem_archdir}/ruby/%{gem_name}-%{version}/pango.so
%{gem_spec}
%{gem_instdir}/pango.gemspec

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_dir}/gems/%{gem_name}-%{version}/README.md
%doc %{gem_instdir}/Rakefile

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Ruby

%description devel
Development files for %{name}.

%files devel
%{gem_archdir}/ruby/%{gem_name}-%{version}/*.h
%{_libdir}/pkgconfig/ruby-pango.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build
#generate makefiles
./extconf.rb
#disable no-undefined
sed -i "s/-Wl,--no-undefined//g" ext/%{gem_name}/Makefile
sed -i "s/\$(DESTDIR)/./g" Makefile.lib
sed -i "s'\$(DESTDIR)'..\/..'g" ext/%{gem_name}/Makefile
sed -i "s'/local''g" Makefile.lib ext/%{gem_name}/Makefile

%install
#%%gem_install not build right .so lib
make install


#manual put files to right place
mkdir -p %{buildroot}%{gem_instdir}/lib
mkdir -p %{buildroot}%{gem_dir}/specifications
mkdir -p %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}


cp -a .%{_libdir}/ruby/site_ruby/* \
        %{buildroot}/%{gem_archdir}/ruby/%{gem_name}-%{version}

cp -R .%{_datadir}/ruby/site_ruby/* \
        %{buildroot}%{gem_instdir}/lib

make clean
cp -R ./ext \
        %{buildroot}%{gem_instdir}

cp ./*.gemspec %{buildroot}%{gem_instdir}
cp ./Rakefile %{buildroot}%{gem_instdir}
cp ../*.gemspec %{buildroot}%{gem_dir}/specifications

cp README.md %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/

# move pkgconfig file
mkdir -p %{buildroot}%{_libdir}/pkgconfig/
cp ./ext/%{gem_name}/*.pc \
    %{buildroot}%{_libdir}/pkgconfig/

#mkdir -p %{buildroot}%{gem_dir}
#cp -a .%{gem_dir}/* \
#        %{buildroot}%{gem_dir}/
#cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#cp -R .%{_libdir} \
#        %{buildroot}%{_libdir}
#rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem.build_complete
#rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/gem_make.out
#rm -f %{buildroot}%{gem_archdir}/ruby/%{gem_name}-%{version}/mkmf.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17080 |21mr|rubygem-pkg-config-1.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name pkg-config

Summary:	A pkg-config implementation for Ruby
Name:		rubygem-%{gem_name}
Version:	1.4.4
Release:	1
License:	GPLv2+ or Ruby
Group:		Development/Ruby
Url:		https://github.com/rcairo/pkg-config
Source0:	http://rubygems.org/gems/pkg-config-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
pkg-config can be used in your extconf.rb to properly detect need libraries
for compiling Ruby native extensions.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LGPL-2.1
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%{gem_spec}
%{gem_instdir}/Rakefile

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/NEWS
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.rdoc

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17081 |21mr|rubygem-poppler-3.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name poppler

Summary:	Ruby binding of poppler-glib
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	2
License:	LGPLv2.1+
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygem-rake
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	rubygems-devel
BuildRequires:	rubygem(cairo)
BuildRequires:	rubygem(glib2)
BuildRequires:	rubygem(gtk3)
BuildArch:	noarch

%description
Ruby binding of poppler-glib.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/COPYING.LIB
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%exclude %{gem_instdir}/dependency-check
%{gem_spec}
%{gem_instdir}/poppler.gemspec

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%{gem_instdir}/Rakefile
%{gem_instdir}/sample
%doc %{gem_instdir}/README.md

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17082 |21mr|rubygem-power_assert-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  power_assert

Name:		rubygem-%{gem_name}
Version:	2.0.0
Release:	1
Summary:	Open child process with handles on pid, stdin, stdout, and stderr
Group:		Development/Ruby
License:	BSD
Url:		https://github.com/ahoward/open4
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Open child process with handles on pid, stdin, stdout, and stderr: 
manage child processes and their io handles easily.

%files
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17083 |21mr|rubygem-puppetserver-ca-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name puppetserver-ca

Summary:	A simple Ruby CLI tool to interact with the Puppet Server's included Certificate Authority
Name:		rubygem-%{gem_name}
Version:	2.6.0
Release:	1
License:	GPLv2+ or Ruby
Group:		Development/Ruby
URL:		https://github.com/puppetlabs/puppetserver-ca-cli
Source0:	http://gems.rubyforge.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem-rake
BuildArch:	noarch

%description
This gem provides the functionality behind the Puppet Server CA interactions.
The actual CLI executable lives within the Puppet Server project.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{_bindir}/puppetserver-ca
%{gem_instdir}/bin/
%{gem_instdir}/exe/
%{gem_libdir}
%{gem_spec}
%exclude %{gem_cache}

#-----------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CONTRIBUTING.md
%doc %{gem_instdir}/CODE_OF_CONDUCT.md
%doc %{gem_instdir}/CODEOWNERS
%doc %{gem_instdir}/README.md
%{gem_instdir}/Gemfile
%{gem_instdir}/Rakefile
%{gem_instdir}/%{gem_name}.gemspec
%exclude %{gem_instdir}/.rspec

#-----------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}
%gemspec_remove_dep -g facter -s ../%{gem_name}-%{version}.gemspec

sed -i 's,/etc/puppetlabs/puppet,/etc/puppet,' $(find lib/puppetserver/ca -type f)

%build
%gem_build

%install
%gem_install

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* %{buildroot}%{_bindir}/

rm -rf %{buildroot}%{gem_instdir}/{.github,.travis.yml}

# removing testing dependencies
sed -i -r "s/^require\ 'bundler\/setup.*//g" %{buildroot}%{gem_instdir}/exe/%{gem_name}
sed -i -r "s/^require\ 'bundler\/setup.*//g" %{buildroot}%{gem_instdir}/bin/console
sed -i -r 's/^Bundler\.require\(\:default\)$//g' %{buildroot}%{gem_instdir}/exe/%{gem_name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17084 |21mr|rubygem-rack-2.2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name rack

# There is circular dependency between thin and rack.
%bcond_without bootstrap

Name:		rubygem-%{gem_name}
Version:	2.2.3
# Introduce Epoch (related to bug 552972)
Epoch:		1
Release:	2
Group:		Development/Ruby
Summary:	A modular Ruby webserver interface
# lib/rack/show_{status,exceptions}.rb contains snippets from Django under BSD license.
License:	MIT and BSD
URL:		https://rack.github.io/
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby >= 2.2.2
#BuildRequires:	rubygem(concurrent-ruby)
BuildRequires:	memcached
#BuildRequires:	rubygem(memcache-client)
BuildRequires:	rubygem(minitest)
%if ! %{with bootstrap}
BuildRequires:	rubygem(thin)
%endif
BuildArch: noarch

%global __brp_mangle_shebangs_exclude_from ^%{gem_instdir}/test/cgi/test.ru$

%description
Rack provides a minimal, modular and adaptable interface for developing
web applications in Ruby.  By wrapping HTTP requests and responses in
the simplest way possible, it unifies and distills the API for web
servers, web frameworks, and software in between (the so-called
middleware) into a single method call.

%files
%{_bindir}/rackup
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------------------
%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{epoch}:%{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%files doc
%doc README.*
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build


%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/


mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x
find %{buildroot}%{gem_instdir}/{bin,test/cgi} -type f | \
  xargs sed -i 's|^#!/usr/bin/env ruby$|#!/usr/bin/ruby|'

# Fix anything executable that does not have a shebang
for file in `find %{buildroot}/%{gem_instdir} -type f -perm /a+x`; do
    [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file
done

# Find files with a shebang that do not have executable permissions
for file in `find %{buildroot}%{gem_instdir} -type f`; do
    [ ! -z "`head -n 1 $file | grep \"^#!\"`" ] && chmod -v 755 $file
done

%check
# at version 2.1.1 are currently no tests available
pushd .%{gem_instdir}

# During the building on mock environment, the testing process id 1 is owned
# by running user mockbuild's command STUBINIT, though it is owned by root user
# on usual environment.
# The server status does not return ":not_owned".
#sed -i '/^  it "check pid file presence and not owned process" do$/,/^  end$/ s/^/#/' \
#  test/spec_server.rb

# Get temporary PID file name and start memcached daemon.
PID=%(mktemp)
memcached -d -P "$PID"

# Rack::Session::Memcache#test_0009_maintains freshness
# requires encoding set to UTF-8:
# https://github.com/rack/rack/issues/1305
LC_ALL=C.UTF-8 \
ruby -Ilib:test -e 'Dir.glob "./test/spec_*.rb", &method(:require)'

# Kill memcached daemon.
kill -TERM $(< "$PID")

popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17085 |21mr|rubygem-rack-protection-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name   rack-protection

Name:		rubygem-%{gem_name}
Version:	2.1.0
Release:	2
Summary:	Protection for Rack
Group:		Development/Ruby
License:	Ruby License
URL:		http://rdoc.rubyforge.org
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Something Rack related.

%files
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#-------------------------------------------------------------------------------
%package        doc
Summary:    Documentation for %{name}
Group:      Development/Ruby
Requires:   %{name} = %{version}-%{release}

%description    doc
Documents, Rdoc & RI documentation for %{name}.


%files          doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}
#-------------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17086 |21mr|rubygem-rack-test-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rack-test

Name:		rubygem-%{gem_name}
Version:	1.1.0
Release:	2
Summary:	Simple testing API built on Rack
Group:		Development/Ruby
License:	MIT
URL:		http://github.com/brynary/rack-test
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch
Provides:	rubygem(%{gem_name}) = %{version}

%description
Rack::Test is a small, simple testing API for Rack apps. It can be used on its
own or as a reusable starting point for Web frameworks and testing libraries
to build on. Most of its initial functionality is an extraction of Merb 1.0's
request helpers feature.

%files
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.*
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17087 |21mr|rubygem-rake-13.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name   rake

Summary:	Simple ruby build program with capabilities similar to make
Name:		rubygem-%{gem_name}
Version:	13.0.6
Release:	1
License:	MIT
Group:		Development/Ruby
URL:		http://rake.rubyforge.org/
Source0:	http://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
#BuildRequires: p7zip
BuildArch:	noarch

%description
This package contains Rake, a simple ruby build program with capabilities
similar to make.

%files
%{_bindir}/rake
%doc README.*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#-------------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.*
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#-------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/exe/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17088 |21mr|rubygem-rake-compiler-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rake-compiler

Name:		rubygem-%{gem_name}
Version:	1.1.1
Release:	1
Summary:	Rake-based Ruby Extension (C, Java) task generator
Group:		Development/Ruby
License:	MIT
URL:		http://github.com/luislavena/rake-compiler
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch
Provides:	rubygem(%{gem_name}) = %{version}

%description
Provide a standard and simplified way to build and package
Ruby extensions (C, Java) using Rake as glue.

%files
%doc README.md
%{_bindir}/rake-compiler
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#--------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.md
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17089 |21mr|rubygem-red-colors-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from red-colors-0.1.1.gem by gem2rpm -*- rpm-spec -*-
%global gem_name red-colors

Name:		rubygem-%{gem_name}
Version:	0.1.2
Release:	1
Group:		Development/Ruby
Summary:	Red Colors provides a wide array of features for dealing with colors
License:	MIT
URL:		https://github.com/red-data-tools/red-colors
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby
BuildRequires:	rubygem(test-unit)
BuildArch:	noarch

%description
Red Colors provides a wide array of features for dealing with colors. This
includes conversion between colorspaces, desaturation, and parsing colors.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%doc %{gem_instdir}/README.md
%{gem_libdir}
%{gem_spec}

#---------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{version}-%{release}
BuildArch:	noarch

%description	doc
Documentation for %{name}.

%files doc
%doc	%{gem_docdir}

#---------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
	%{buildroot}%{gem_dir}/

rm -f %{buildroot}%{gem_cache}
pushd %{buildroot}%{gem_instdir}/
rm -rf \
	.yardopts \
	Gemfile \
	Rakefile \
	*.gemspec \
	test/ \
	%{nil}
popd

%check
pushd .%{gem_instdir}
ruby test/run.rb
popd




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17090 |21mr|rubygem-red-datasets-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	red-datasets

Summary:	Access each dataset with multiple ways
Name:		rubygem-%{gem_name}
Version:	0.1.2
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		https://github.com/red-data-tools/red-datasets
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
You can use datasets easily because you can access each dataset 
with multiple ways such as `#each` and Apache Arrow Record Batch.


%files
%doc LICENSE.txt README.md
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc LICENSE.txt README.md
%{gem_dir}/doc/%{gem_name}-%{version}

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}


%build
%gem_build


%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

# Remove docs: we have it with our macro
rm -f %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{COPYING.txt,README.rdoc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17091 |21mr|rubygem-redis-4.1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name redis

Name: rubygem-%{gem_name}
Version: 4.1.3
Release: 1
Group: Development/Ruby
Summary: A Ruby client library for Redis
License: MIT
URL: https://github.com/redis/redis-rb
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/redis/redis-rb.git && cd redis-rb
# git archive -v -o redis-rb-4.1.3-tests.txz v4.1.3 makefile test/ bin/
Source1: %{gem_name}-rb-%{version}-tests.txz
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: rubygem(mocha)
BuildRequires: rubygem(minitest)
BuildRequires: rubygem(hiredis)
BuildRequires: %{_bindir}/redis-server
BuildArch: noarch

%description
A Ruby client that tries to match Redis' API one-to-one, while still
providing an idiomatic interface.


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version} -b 1

%build
# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.gemspec

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%doc %{gem_instdir}/README.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17092 |21mr|rubygem-rexml-3.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  rexml

Name:		rubygem-%{gem_name}
Version:	3.2.5
Release:	2
Summary:	An XML toolkit for Ruby
Group:		Development/Ruby
License:	BSD
Url:		https://github.com/ruby/rexml
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
An XML toolkit for Ruby.

%files
%doc README.* LICENSE*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc

#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17093 |21mr|rubygem-rspec-3.10.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	gem_name	rspec

Summary:	Behaviour driven development (BDD) framework for Ruby
Name:		rubygem-%{gem_name}
Version:	3.10.0
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		http://rspec.info
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem

BuildRequires:	rubygems-devel
#BuildRequires:	ruby(release)

BuildArch:	noarch

%description
RSpec is a behaviour driven development (BDD) framework for Ruby.

%files
%dir	%{gem_instdir}
%{gem_instdir}/lib
%license	%{gem_instdir}/LICENSE.md
%doc	%{gem_instdir}/README.md
%exclude %{gem_cache}
%{gem_spec}

#-------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{version}-%{release}

%description	doc
This package contains documentation for %{name}.

%files	doc
%doc	%{gem_docdir}

#-------------------------------------------------------

%prep
gem unpack %{SOURCE0}

%setup -q -D -T -n  %{gem_name}-%{version}

gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec

%build
gem build %{gem_name}.gemspec
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
	%{buildroot}%{gem_dir}/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17094 |21mr|rubygem-rspec-core-3.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	gem_name	rspec-core

Summary:	Rspec-2 runner and formatters
Name:		rubygem-%{gem_name}
Version:	3.10.1
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		http://github.com/rspec/rspec-mocks
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1:	rubygem-%{gem_name}-%{version}-full.tar.gz
Source2:	rspec-related-create-full-tarball.sh

#BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
# Make the following installed by default
# lib/rspec/core/rake_task
Requires:	rubygem(rake)
BuildArch:	noarch

%description
Behaviour Driven Development for Ruby.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.md
%doc %{gem_instdir}/Changelog.md
%doc %{gem_instdir}/README.md

%{_bindir}/rspec
%{gem_instdir}/exe/
%{gem_instdir}/lib/

%exclude %{gem_cache}
%{gem_spec}


#-------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{version}-%{release}

%description	doc
This package contains documentation for %{name}.

%files doc
%{gem_docdir}

#-------------------------------------------------

%prep
%setup -q -T -n %{gem_name}-%{version} -b 1
gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec

%build
gem build %{gem_name}.gemspec

%install
%gem_install
mkdir -p %{buildroot}%{_prefix}
cp -a .%{_prefix}/* %{buildroot}%{_prefix}/

# cleanups
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17095 |21mr|rubygem-rspec-expectations-3.10.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	gem_name	rspec-expectations

Summary:	RSpec expectations (should and matchers)
Name:		rubygem-%{gem_name}
Version:	3.10.1
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		http://github.com/rspec/rspec-expectations
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
# %%{SOURCE2} %%{name} %%{version}
Source1:	rubygem-%{gem_name}-%{version}-full.tar.gz
Source2:	rspec-related-create-full-tarball.sh

#BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
rspec-expectations adds `should` and `should_not` to every object and includes
RSpec::Matchers, a library of standard matchers.
%files
%dir	%{gem_instdir}

%license %{gem_instdir}/LICENSE.md
%doc %{gem_instdir}/Changelog.md
%doc %{gem_instdir}/README.md

%{gem_instdir}/lib/

%exclude %{gem_cache}
%{gem_spec}

#---------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{version}-%{release}

%description	doc
This package contains documentation for %{name}.

%files doc
%{gem_docdir}

#---------------------------------------------------------------------

%prep
%setup -q -T -n %{gem_name}-%{version} -b 1

gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec

%build
gem build %{gem_name}.gemspec
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
	%{buildroot}%{gem_dir}/

# cleanups
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17096 |21mr|rubygem-rspec-mocks-3.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	gem_name	rspec-mocks

Summary:	RSpec's 'test double' framework (mocks and stubs)
Name:		rubygem-%{gem_name}
Version:	3.10.2
Release:	1
Group:		Development/Ruby
License:	MIT
URL:		http://github.com/rspec/rspec-mocks
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
# %%{SOURCE2} %%{name} %%{version}
Source1:	rubygem-%{gem_name}-%{version}-full.tar.gz
Source2:	rspec-related-create-full-tarball.sh

BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
rspec-mocks provides a test-double framework for rspec including support
for method stubs, fakes, and message expectations.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.md
%doc	%{gem_instdir}/Changelog.md
%doc	%{gem_instdir}/README.md
%{gem_instdir}/lib/
%exclude	%{gem_cache}
%{gem_spec}

#-----------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{EVRD}

%description	doc
This package contains documentation for %{name}.

%files	doc
%{gem_docdir}

#-----------------------------------------------------------------

%prep
gem unpack %{SOURCE0}
%setup -q -D -T -n  %{gem_name}-%{version} -b 1

gem specification %{SOURCE0} -l --ruby > %{gem_name}.gemspec

%build
gem build %{gem_name}.gemspec
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
	%{buildroot}%{gem_dir}/

# cleanups
rm -f %{buildroot}%{gem_instdir}/{.document,.yardopts}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17097 |21mr|rubygem-rspec-support-3.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	gem_name	rspec-support

Name:		rubygem-%{gem_name}
Version:	3.10.2
Release:	1
Group:		Development/Ruby
Summary:	Common functionality to Rspec series
License:	MIT
URL:		https://github.com/rspec/rspec-support
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
Source1:	rubygem-%{gem_name}-%{version}-full.tar.gz
Source2:	rspec-related-create-full-tarball.sh
# tweak regex for search path
Patch100:	rubygem-rspec-support-3.2.1-callerfilter-searchpath-regex.patch

#BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel

BuildArch:		noarch

%description
`RSpec::Support` provides common functionality to `RSpec::Core`,
`RSpec::Expectations` and `RSpec::Mocks`. It is considered
suitable for internal use only at this time.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.md
%doc %{gem_instdir}/Changelog.md
%doc %{gem_instdir}/README.md

%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

#-------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Requires:	%{name} = %{version}-%{release}
BuildArch:	noarch

%description	doc
Documentation for %{name}


%files doc
%doc %{gem_docdir}

#-------------------------------------------------------------------

%prep
%setup -q -T -n %{gem_name}-%{version} -b 1
gem spec %{SOURCE0} -l --ruby > %{gem_name}.gemspec

%patch100 -p1

%build
gem build %{gem_name}.gemspec
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -pa .%{gem_dir}/* \
	%{buildroot}%{gem_dir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17098 |21mr|rubygem-rsvg2-3.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name rsvg2

Summary:	Ruby binding of librsvg-2.x
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	2
License:	LGPLv2.1+
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygem-rake
BuildRequires:	rubygems-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	rubygem(cairo)
BuildRequires:	rubygem(glib2)
BuildArch:	noarch

%description
Ruby binding of librsvg-2.x.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/COPYING.LIB
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%exclude %{gem_instdir}/Rakefile
%exclude %{gem_instdir}/dependency-check
%{gem_spec}
%{gem_instdir}/rsvg2.gemspec

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%{gem_instdir}/sample
%doc %{gem_instdir}/README.md

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17099 |21mr|rubygem-ruby2_keywords-0.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name ruby2_keywords

Summary:	Shim library for Module ruby2_keywords
Name:		rubygem-%{gem_name}
Version:	0.0.5
Release:	1
License:	BSD
Group:		Development/Ruby
Url:		https://rubygems.org/gems/ruby2_keywords
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Shim library for Module ruby2_keywords.

%files
%doc README.md
%license LICENSE
%{gem_instdir}
%{gem_spec}
%exclude %{gem_cache}

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc README.md
%license LICENSE

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* %{buildroot}%{gem_dir}
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17100 |21mr|rubygem-ruby-progressbar-1.11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NOT rename it to rubygem-progressbar, use rubygem-progressbar if needed
# some ruby programm need ruby-progressbar gem, some need progressbar gem

%define	gem_name	ruby-progressbar

Summary:	Ruby/ProgressBar is a text progress bar library for Ruby
Name:		rubygem-%{gem_name}
Version:	1.11.0
Release:	1
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		http://github.com/peleteiro/progressbar
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Ruby/ProgressBar is a text progress bar library for Ruby. It can indicate
progress with percentage, a progress bar, and estimated remaining time.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE.txt
%{gem_libdir}
%exclude %{gem_cache}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec

#-----------------------------------------------------------------------
%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile

#-----------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17101 |21mr|rubygem-rubyzip-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name	 rubyzip

Name:		rubygem-%{gem_name}
Version:	2.3.0
Release:	1
Summary:	A ruby module for reading and writing zip files
Group:		Development/Ruby
License:	GPLv2+ or Ruby License
URL:		http://rubyzip.sourceforge.net/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
rubyzip is a ruby module for reading and writing zip files

%files
%doc README.md
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.md
%{gem_dir}/doc/%{gem_name}-%{version}

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

# Remove docs: we have it with our macro
rm -f %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{COPYING.txt,README.rdoc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17102 |21mr|rubygem-semantic_puppet-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from semantic_puppet-1.0.2.gem by gem2rpm -*- rpm-spec -*-
%global gem_name semantic_puppet

Name: rubygem-%{gem_name}
Version: 1.0.2
Release: 1
Group: Development/Ruby
Summary: Useful tools for working with Semantic Versions
License: ASL 2.0
URL: https://github.com/puppetlabs/semantic_puppet
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires: ruby(release)
BuildRequires: rubygems-devel
# for testing
BuildRequires: rubygem(rspec)
BuildArch: noarch

%description
Tools used by Puppet to parse, validate, and compare Semantic Versions and
Version Ranges and to query and resolve module dependencies.

%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{EVRD}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version}

%build
# Create the gem as gem install only works on a gem file
%gem_build

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
rm -rf %{buildroot}%{gem_instdir}/{.gitignore,.rubocop.yml,.travis.yml,.yardopts}

%check
pushd .%{gem_instdir}
rspec spec
popd

%files
%dir %{gem_instdir}
%license %{gem_instdir}/LICENSE
%{gem_instdir}/appveyor.yml
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGELOG.md
%{gem_instdir}/Gemfile
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile
%{gem_instdir}/semantic_puppet.gemspec
%{gem_instdir}/spec

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17103 |21mr|rubygem-sinatra-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	sinatra

Summary:	Classy web-development dressed in a DSL
Name:		rubygem-%{gem_name}
Version:	2.1.0
Release:	2
Group:		Development/Ruby
License:	MIT
URL:		http://sinatra.rubyforge.org
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Classy web-development dressed in a DSL

%files
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec

#-----------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
#doc pkg removed
#gem_install in endless cycle on stage build docs

mkdir -p %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}
cp -a ./lib \
        %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}

mkdir -p %{buildroot}%{gem_dir}/specifications
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17104 |21mr|rubygem-test-unit-3.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name  test-unit

Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	1
Summary:	Unit testing framework for Ruby
Group:		Development/Ruby
License:	BSD
Url:		http://test-unit.github.io/
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildRequires:	rubygem-bundler
BuildRequires:	rubygem-kramdown
BuildRequires:	rubygem-packnga
BuildRequires:	rubygem-rake
BuildRequires:	rubygem-yard

BuildArch:	noarch

%description
test-unit (Test::Unit) is unit testing framework for Ruby, based on xUnit principles. 
These were originally designed by Kent Beck, creator of extreme programming software 
development methodology, for Smalltalk's SUnit. It allows writing tests, checking 
results and automated testing in Ruby.

%files
%doc README.* COPYING*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%{gem_dir}/doc/%{gem_name}-%{version}/ri
%{gem_dir}/doc/%{gem_name}-%{version}/rdoc


#-------------------------------------------------------------
%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/test/*.rb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17105 |21mr|rubygem-text-1.3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	text

Summary:	Collection of text algorithms
Name:		rubygem-%{gem_name}
Version:	1.3.1
Release:	2
Group:		Development/Ruby
License:	MIT
URL:		http://github.com/threedaymonk/text
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
%{summary}.

%files
%doc COPYING.txt README.rdoc
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc COPYING.txt README.rdoc
%{gem_dir}/doc/%{gem_name}-%{version}

#------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}


%build
%gem_build


%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

# Remove docs: we have it with our macro
rm -f %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{COPYING.txt,README.rdoc}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17106 |21mr|rubygem-thin-1.7.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name thin

Name:		rubygem-%{gem_name}
Version:	1.7.2
Release:	14
Group:		Development/Ruby
Summary:	A thin and fast web server
# lib/thin/stats.html.erb: BSD
# spec/rails_app/public/javascripts/*.js: MIT
License:	(GPLv2+ or Ruby) and BSD and MIT
URL:		http://code.macournoyer.com/thin/
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
# git clone https://github.com/macournoyer/thin.git && cd thing
# git checkout v1.7.2 && tar czvf thin-1.7.2-tests.tgz spec/
Source1:	%{gem_name}-%{version}-tests.tgz
# Fix the test suite error due to way Ruby 2.5 reports warnings.
# https://github.com/macournoyer/thin/pull/346
Patch0:		rubygem-thin-1.7.2-Mock-Kernel.warn-in-Ruby-2.5-compatible-way.patch
# Fix "Thin::Server should set lower maximum_connections size when too large"
# error caused probably by change of RLIMIT_NOFILE in Kernel or systemd.
# https://github.com/macournoyer/thin/pull/360
Patch1:		rubygem-thin-1.7.2-Fix-maximum_connections-limiting-test.patch
BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby-devel
# Compiler is required for build of gem binary extension.
# https://fedoraproject.org/wiki/Packaging:C_and_C++#BuildRequires_and_Requires
#BuildRequires:	rubygem(rspec2)
#BuildRequires:	rubygem(eventmachine) >= 1.0.4
#BuildRequires:	rubygem(daemons) >= 1.0.9
#BuildRequires:	rubygem(rack) >= 1.0.0

%description
Thin is a Ruby web server that glues together three of the best Ruby
libraries in web history.
The Mongrel parser, the root of Mongrel speed and security,
Event Machine, a network I/O library with extremely high scalability and
Rack, a minimal interface between webservers and Ruby frameworks.

%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version} -b 1

pushd %{_builddir}
%patch0 -p1
%patch1 -p1
popd

%build
# Create the gem as gem install only works on a gem file
gem build ../%{gem_name}-%{version}.gemspec

# %%gem_install compiles any C extensions and installs the gem into ./%%gem_dir
# by default, so that we can move it into the buildroot in %%install
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{gem_extdir_mri}
cp -a .%{gem_extdir_mri}/{gem.build_complete,*.so} %{buildroot}%{gem_extdir_mri}/

# Prevent dangling symlink in -debuginfo (rhbz#878863).
rm -rf %{buildroot}%{gem_instdir}/ext/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x

# Add executable bit for shebang files
# https://github.com/macournoyer/thin/pull/320
pushd %{buildroot}/%{gem_instdir}/example
chmod 755 async_chat.ru
chmod 755 async_tailer.ru
popd

%files
%dir %{gem_instdir}
%{_bindir}/thin
%{gem_extdir_mri}
%{gem_instdir}/bin
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%{gem_instdir}/example/
%doc %{gem_instdir}/CHANGELOG
%doc %{gem_instdir}/README.md
%{gem_instdir}/Rakefile

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17107 |21mr|rubygem-thor-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name thor

Summary:	A scripting framework that replaces rake, sake and rubigen
Name:		rubygem-%{gem_name}
Version:	1.0.1
Release:	1
License:	MIT
Group:		Development/Ruby
Url:		http://www.rubyonrails.com/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel

BuildArch:	noarch

%description
A scripting framework that replaces rake, sake and rubigen.

%files
%{_bindir}/thor
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install

mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/


mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

find %{buildroot}%{gem_instdir}/bin -type f | xargs chmod a+x

find %{buildroot}%{gem_instdir}/bin -type f | \
  xargs -n 1 sed -i -e 's"^#!/usr/bin/env ruby"#!/usr/bin/ruby"'

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17108 |21mr|rubygem-tilt-2.0.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	gem_name	tilt

Summary:	Generic interface to multiple Ruby template engines
Name:		rubygem-%{gem_name}
Version:	2.0.10
Release:	2
Group:		Development/Ruby
License:	GPLv2+ or Ruby
URL:		http://github.com/rtomayko/tilt/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch

%description
Generic interface to multiple Ruby template engines

%files
%{_bindir}/tilt
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache
#-----------------------------------------------

%package	doc
Summary:	Documentation for %{name}
Group:		Books/Computer books
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description	doc
Documents, RDoc & RI documentation for %{name}.


%files doc
%doc %{gem_dir}/doc/%{gem_name}-%{version}
#-----------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

#fix shebang
sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/bin/tilt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17109 |21mr|rubygem-tzinfo-2.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Generated from tzinfo-0.3.26.gem by gem2rpm -*- rpm-spec -*-
%global gem_name tzinfo

Name: rubygem-%{gem_name}
Version: 2.0.1
Release: 2
Group: Development/Ruby
Summary: Daylight savings aware timezone library
License: MIT
URL: http://tzinfo.github.io
Source0: https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Gem file does not contain a test suite, you can create it like so:
# git clone https://github.com/tzinfo/tzinfo.git --no-checkout
# cd tzinfo && git archive -v -o tzinfo-2.0.1-tests.txz v2.0.1 test/
Source1: %{gem_name}-%{version}-tests.txz

BuildRequires: ruby(release)
BuildRequires: rubygems-devel
BuildRequires: ruby
BuildRequires: rubygem(minitest)
#BuildRequires: rubygem(concurrent-ruby)
BuildArch: noarch

%description
TZInfo provides daylight savings aware transformations between times in
different time zones.


%package doc
Summary: Documentation for %{name}
Requires: %{name} = %{version}-%{release}
BuildArch: noarch

%description doc
Documentation for %{name}.

%prep
%setup -q -n %{gem_name}-%{version} -b1

%build
%gem_build
%gem_install

%install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%files
%dir %{gem_instdir}
%exclude %{gem_instdir}/.yardopts
%license %{gem_instdir}/LICENSE
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/CHANGES.md
%doc %{gem_instdir}/README.md

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17110 |21mr|rubygem-vte3-3.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name vte3

Summary:	Ruby binding of VTE
Name:		rubygem-%{gem_name}
Version:	3.4.4
Release:	2
License:	LGPLv2.1+
Group:		Development/Ruby
Url:		http://ruby-gnome2.sourceforge.jp/
Source0:	http://rubygems.org/gems/%{gem_name}-%{version}.gem
BuildRequires:	rubygem-rake
BuildRequires:	rubygems-devel
BuildRequires:	rubygem(glib2)
BuildRequires:	rubygem(gtk3)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(vte-2.91)
BuildArch:	noarch

%description
Ruby binding of VTE.

%files
%dir %{gem_instdir}
%license %{gem_instdir}/COPYING.LIB
%{gem_libdir}
%exclude %{gem_cache}
%exclude %{gem_instdir}/test
%exclude %{gem_instdir}/dependency-check
%{gem_spec}
%{gem_instdir}/vte3.gemspec

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc %{gem_docdir}
%{gem_instdir}/Rakefile
%doc %{gem_instdir}/README.md

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/
cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17111 |21mr|rubygem-yard-0.9.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gem_name yard

Name:		rubygem-%{gem_name}
Version:	0.9.26
Release:	1
Summary:	Documentation tool for consistent and usable documentation in Ruby
Group:		Development/Ruby
License:	MIT
URL:		http://yardoc.org
Source0:	https://rubygems.org/downloads/%{gem_name}-%{version}.gem
BuildRequires:	rubygems-devel
BuildArch:	noarch
Provides:	rubygem(%{gem_name}) = %{version}

%description
YARD is a documentation generation tool for the Ruby programming language.
It enables the user to generate consistent, usable documentation that can be
exported to a number of formats very easily, and also supports extending for
custom Ruby constructs such as custom class level definitions.

%files
%{_bindir}/*
%{gem_dir}/gems/%{gem_name}-%{version}
%{gem_dir}/specifications/%{gem_name}-%{version}.gemspec
%exclude %{gem_dir}/cache

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documents, RDoc & RI documentation for %{name}.

%files doc
%doc README.md
%doc %{gem_dir}/doc/%{gem_name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version}

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

cp ../%{gem_name}-%{version}.gemspec %{buildroot}%{gem_dir}/specifications

mkdir -p %{buildroot}%{_bindir}
cp -a .%{_bindir}/* \
        %{buildroot}%{_bindir}/

#remove unneded
rm -rf %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version}/{po,.*ignore,.yard*,.rspec,.*.yml}
find %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version} -name \*.time_stamp -type f -exec rm -f {} \;

#fix shebang
find %{buildroot}%{gem_dir}/gems/%{gem_name}-%{version} -type f -exec sed -i -e 's@^#!.*$@#! /usr/bin/ruby@' {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17112 |21mr|rubygem-zeitwerk-2.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gem_name zeitwerk

Name:		rubygem-%{gem_name}
Version:	2.4.2
Release:	1
Summary:	Efficient and thread-safe constant autoloader
Group:		Development/Ruby
License:	MIT
URL:		https://github.com/fxn/zeitwerk
Source0:	https://rubygems.org/gems/%{gem_name}-%{version}.gem
# Test suite is not included in packaged gem
# git clone https://github.com/fxn/zeitwerk.git --no-checkout
# cd zeitwerk && git archive -v -o zeitwerk-2.4.1-tests.txz v2.4.1 test
Source2:	%{gem_name}-%{version}-tests.txz

BuildRequires:	ruby(release)
BuildRequires:	rubygems-devel
BuildRequires:	ruby
BuildRequires:	rubygem(minitest)
BuildRequires:	rubygem(minitest-reporters)
BuildArch:	noarch

%description
Zeitwerk implements constant autoloading with Ruby semantics. Each gem
and application may have their own independent autoloader, with its own
configuration, inflector, and logger. Supports autoloading, preloading,
reloading, and eager loading.

%files
%dir %{gem_instdir}
%{gem_libdir}
%exclude %{gem_cache}
%{gem_spec}
%license %{gem_instdir}/MIT-LICENSE
#----------------------------------------------------------------------
%package doc
Summary:	Documentation for %{name}
Group:		Documentation
Requires:	%{name} = %{EVRD}
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%doc %{gem_docdir}
%doc %{gem_instdir}/README.md

#----------------------------------------------------------------------

%prep
%setup -q -n %{gem_name}-%{version} -b2

%build
%gem_build

%install
%gem_install
mkdir -p %{buildroot}%{gem_dir}
cp -a .%{gem_dir}/* \
        %{buildroot}%{gem_dir}/

%check
pushd .%{gem_instdir}
ln -s %{_builddir}/test .

# focus gem is not needed for tests
sed -i '/require..minitest.focus./ s/^/#/' test/test_helper.rb

ruby -Itest:lib -e 'Dir.glob "./test/**/test_*.rb", &method(:require)'
popd



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17113 |21mr|runc-1.1.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define import_path github.com/opencontainers/runc

Summary:	CLI for running Open Containers
Name:		runc
Version:	1.1.12
Release:	1
Epoch:		1
License:	ASL 2.0
Group:		System/Kernel and hardware
Url:		https://github.com/opencontainers/runc
Source0:	https://github.com/opencontainers/runc/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	go-md2man
BuildRequires:	golang
BuildRequires:	git
BuildRequires:	glibc-static-devel
BuildRequires:	pkgconfig(libseccomp)

# need xz to work with ubuntu images
# https://bugzilla.redhat.com/show_bug.cgi?id=1045220
Requires:	xz
# https://bugzilla.redhat.com/show_bug.cgi?id=1034919
# No longer needed in Fedora because of libcontainer
Requires:	libcgroup-tools
Requires:	e2fsprogs
Requires:	iptables

%rename opencontainers-runc

%description
The runc command can be used to start containers which are packaged
in accordance with the Open Container Initiative's specifications,
and to manage containers running under runc.

%files
%{_bindir}/%{name}
%{_bindir}/docker-%{name}
%{_mandir}/man8/%{name}*
%{_datadir}/bash-completion/completions/%{name}

#----------------------------------------------------------------

%prep
%setup -q

%build
mkdir -p GOPATH
pushd GOPATH
	mkdir -p src/github.com/opencontainers
	ln -s $(dirs +1 -l) src/%{import_path}
popd

pushd GOPATH/src/%{import_path}
export GOPATH=%{_builddir}:$(pwd)/GOPATH

make BUILDTAGS="seccomp selinux" all

sed -i '/\#\!\/bin\/bash/d' contrib/completions/bash/%{name}
popd

%install
install -d -p %{buildroot}%{_bindir}
install -p -m 755 %{name} %{buildroot}%{_bindir}

# generate man pages
man/md2man-all.sh

# install man pages
install -d -p %{buildroot}%{_mandir}/man8
install -p -m 0644 man/man8/*.8 %{buildroot}%{_mandir}/man8/.
# install bash completion
install -d -p %{buildroot}%{_datadir}/bash-completion/completions
install -p -m 0644 contrib/completions/bash/%{name} %{buildroot}%{_datadir}/bash-completion/completions

ln -s %{name} %{buildroot}%{_bindir}/docker-%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17114 |21mr|runner-gui-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Run command as another user
Name:		runner-gui
Version:	0.5
Release:	1
License:	GPLv2
Group:		Accessibility
Url:		https://abf.io/import/runner-gui
Source0:	%{name}
Source1:	bashsu
Source2:	%{name}.po
Source3:	%{name}.desktop
Source4:	zen_askpass
BuildRequires:	gettext
Requires:		gettext
Requires:		bash
Requires:		coreutils
Requires:		util-linux
Requires:		zenity
BuildArch:		noarch

%description
Set priority and run command as root or other user

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}/ %{buildroot}%{_localedir}/ru/LC_MESSAGES/ %{buildroot}%{_datadir}/applications  
install -m755 %{SOURCE0} %{buildroot}%{_bindir}/%{name}
install -m755 %{SOURCE1} %{buildroot}%{_bindir}/bashsu
install -m755 %{SOURCE4} %{buildroot}%{_bindir}/zen_askpass
msgfmt -v %{SOURCE2} -o %{buildroot}%{_localedir}/ru/LC_MESSAGES/%{name}.mo
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{name}.desktop

%files
%lang(ru) %{_localedir}/ru/LC_MESSAGES/%{name}.mo
%{_datadir}/applications/%{name}.desktop
%{_bindir}/%{name}
%{_bindir}/bashsu
%{_bindir}/zen_askpass
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17115 |21mr|run-parts-3.2.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Run scripts or programs in a directory
Name:		run-parts
Version:	3.2.1
Release:	17
Epoch:		1
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://svn.mandriva.com/svn/soft/run-parts/trunk
Source0:	debianutils_%{version}.tar.gz
Patch0:		run-parts-3.2.1-blacklist-rpm-files.patch
Patch1:		run-parts-3.2.1-allow-dots-in-filenames.patch
Conflicts:	setup < 2.7.11-2

%description
run-parts runs a number of scripts or programs found in a single direc-
tory.  Filenames should consist entirely of upper and lower
case letters, digits,  underscores,  and  hyphens. Subdirectories  of
directory and files with other names will be silently ignored.

%files
%doc debian/changelog debian/copyright
%{_bindir}/run-parts
%{_mandir}/man8/run-parts.8*
%{_mandir}/fr/man8/run-parts.8*

#----------------------------------------------------------------------------

%prep
%setup -qn debianutils-%{version}
%patch0 -p 1
%patch1 -p 1

%build
%configure
%make

%install
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man8
install -d -m 755 %{buildroot}%{_mandir}/fr/man8

install -m 755 run-parts  %{buildroot}%{_bindir}
install -m 644 run-parts.8  %{buildroot}%{_mandir}/man8
install -m 644 po4a/fr/run-parts.8  %{buildroot}%{_mandir}/fr/man8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17116 |21mr|rust-1.78.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
## 
# Build bootstrap
# Don't disable static build otherwise you won't build dynamically
# --- rpmbuild -bb --with=bootstrap
# Bootstrap with clang
# --- rpmbuild -bb --with=bootstrap --with=clang --without=system_llvm
# Don't try to build at bootstrap !!!
# Build with clang
# --- rpmbuild -bb --with=clang
# Build no sytem llvm
# --- rpmbuild -bb --without=system_llvm
# Build no system llvm with clang
# --- rpmbuild -bb --without=system_llvm --with=clang
##########################################################################################

# ALL Rust libraries are private, because they don't keep an ABI.
%define _privatelibs lib(.*-[[:xdigit:]]{16}*|rustc.*)[.]so.*
%define __provides_exclude ^(%{_privatelibs})$
%define __requires_exclude ^(%{_privatelibs})$
%define __provides_exclude_from ^(%{_docdir}|%{rustlibdir}/src)/.*$
%define __requires_exclude_from ^(%{_docdir}|%{rustlibdir}/src)/.*$

%define debug_package %{nil}
%define _disable_ld_no_undefined 0
# To avoid undefined symbols
%define _find_debuginfo_opts -g

# We're going to override --libdir when configuring to get rustlib into a
# common path, but we'll fix the shared libraries during install.
%define rustlibdir %{_libdir}/rustlib

# Only x86_64 and i686 are Tier 1 platforms at this time.
# https://doc.rust-lang.org/nightly/rustc/platform-support.html
%define rust_arches x86_64 %{ix86} %{arm64} %{riscv64}

# To bootstrap from scratch, set the channel and date from src/stage0.txt
# e.g. 1.10.0 wants rustc: 1.9.0-2016-05-24
# or nightly wants some beta-YYYY-MM-DD
# Note that cargo matches the program version here, not its crate version.
%global bootstrap_rust 1.77.0
%global bootstrap_cargo 1.77.0
%global bootstrap_date 2024-03-21

%if %{mdvver} == 202310
%bcond_with bootstrap
%else
%bcond_without bootstrap
%endif

%if %{with bootstrap}
%define bootstrap_arches %{rust_arches}
# Using llvm-static may be helpful as an opt-in, e.g. to aid LLVM rebases.
%bcond_without llvm_static
%else
%bcond_with llvm_static
%endif

# LLDB only works on some architectures
# LLDB isn't available everywhere...
%bcond_with lldb

%ifarch x86_64
%define rust_triple x86_64-unknown-linux-gnu
%endif
%ifarch %{ix86}
%define rust_triple i686-unknown-linux-gnu
%endif
%ifarch aarch64
%define rust_triple aarch64-unknown-linux-gnu
%endif
%ifarch %{riscv64}
%define rust_triple riscv64gc-unknown-linux-gnu
%endif

%ifarch %{bootstrap_arches}
%define bootstrap_root rust-%{bootstrap_rust}-%{rust_triple}
%define local_rust_root %{_builddir}/%{bootstrap_root}/usr
%else
%define local_rust_root %{_prefix}
%endif

# if you need an llvm different from the system one
# llvm15 .. llvm*
%bcond_without system_llvm
%if %{mdvver} == 202310
%define llvm_major 16
%else
%define llvm_major 17
%endif
%define llvm_dir_ver llvm%{llvm_major}
%define llvm_path /opt/%{llvm_dir_ver}

# On llvm-config system and no
%if %{without bootstrap} || %{without system_llvm}
%define _llvm_config %{_bindir}/llvm-config
%global profiler %(echo %{_libdir}/clang/%(llvm-config --version)/lib/*linux-gnu/libclang_rt.profile*.a)
%else
%define _llvm_config %{llvm_path}/bin/llvm-config
%global profiler %(echo %{llvm_path}/%{_lib}/clang/*/lib/*linux-gnu/libclang_rt.profile*.a)
%endif

# Select compilers for building llvm by default gcc.
%bcond_with clang
%if %{with clang}
%if %{with system_llvm}
%define _cc %{_bindir}/clang
%define _cxx %{_bindir}/clang++
%else
%define _cc %{llvm_path}/bin/clang
%define _cxx %{llvm_path}/bin/clang++
%endif
%else
%define _cc %{__cc}
%define _cxx %{__cxx}
%endif

Summary:	The Rust Programming Language
Name:		rust
Version:	1.78.0
Release:	1
License:	(ASL 2.0 or MIT) and (BSD and MIT)
Group:		Development/Rust
# ^ written as: (rust itself) and (bundled libraries)
Url:		https://www.rust-lang.org
Source0:	https://static.rust-lang.org/dist/rustc-%{version}-src.tar.xz
# do bootstrap to download
%if %{with bootstrap}
Source1:	https://static.rust-lang.org/dist/rust-%{bootstrap_rust}-x86_64-unknown-linux-gnu.tar.xz
Source2:	https://static.rust-lang.org/dist/rust-%{bootstrap_rust}-i686-unknown-linux-gnu.tar.xz
Source3:	https://static.rust-lang.org/dist/rust-%{bootstrap_rust}-aarch64-unknown-linux-gnu.tar.xz
Source4:	https://static.rust-lang.org/dist/rust-%{bootstrap_rust}-riscv64gc-unknown-linux-gnu.tar.xz
%endif
Source10:	rust.rpmlintrc
# https://github.com/rust-lang/rust/issues/110787?ysclid=lrtczyp1j2407484499
Patch0:		bugs-110787.patch
BuildRequires:	ncurses-devel
BuildRequires:	curl
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
# needs libssh2_userauth_publickey_frommemory
BuildRequires:	pkgconfig(libssh2) >= 1.6.0
BuildRequires:	pkgconfig(python3)
BuildRequires:	cmake >= 2.8.11
BuildRequires:	ninja
BuildRequires:	stdc++-static-devel
%if %{with bootstrap} || %{without system_llvm}
BuildRequires: llvm%{llvm_major}
%else
BuildRequires: llvm-devel
BuildRequires: compiler-rt
%endif
BuildRequires:  gcc-c++
%if %{with llvm_static}
BuildRequires:	pkgconfig(libffi)
%endif
# make check needs "ps" for src/test/run-pass/wait-forked-but-failed-child.rs
BuildRequires:	procps-ng
# debuginfo-gdb tests need gdb
BuildRequires:	gdb
%if %{without bootstrap}
BuildRequires:	cargo >= %{bootstrap_cargo}
BuildRequires:	%{name} >= %{bootstrap_rust}
%endif
# Virtual provides for folks who attempt "dnf install rustc"
Provides:		rustc = %{version}-%{release}
# Always require our exact standard library
Requires:		%{name}-std-static = %{version}-%{release}
Requires:		/usr/bin/cc
Obsoletes:		%{name}-analysis < 1.69.0~

%description
Rust is a systems programming language that runs blazingly fast, prevents
segfaults, and guarantees thread safety.

This package includes the Rust compiler and documentation generator.

%files
%license COPYRIGHT* LICENSE-APACHE LICENSE-MIT
%doc README.md
%{_bindir}/rustc
%{_bindir}/rustdoc
%{_libdir}/*.so
%{_libexecdir}/rust-analyzer-proc-macro-srv
%{_mandir}/man1/rustc.1*
%{_mandir}/man1/rustdoc.1*
%dir %{rustlibdir}
%dir %{rustlibdir}/%{rust_triple}
%dir %{rustlibdir}/%{rust_triple}/lib
%{rustlibdir}/%{rust_triple}/lib/*.so*
%dir %{_defaultdocdir}/docs
%{_defaultdocdir}/docs/*

#-------------------------------------------------------------------------

%package std-static
Summary:	Standard library for Rust
Group:		Development/Rust

%description std-static
This package includes the standard libraries for building applications
written in Rust.

%files std-static
%dir %{rustlibdir}
%dir %{rustlibdir}/%{rust_triple}
%dir %{rustlibdir}/%{rust_triple}/lib
%{rustlibdir}/%{rust_triple}/lib/*.rlib

#-------------------------------------------------------------------------

%package debugger-common
Summary:	Common debugger pretty printers for Rust
Group:		Development/Rust
BuildArch:	noarch

%description debugger-common
This package includes the common functionality
for %{name}-gdb and %{name}-lldb.

%files debugger-common
%dir %{rustlibdir}
%dir %{rustlibdir}/etc
%{rustlibdir}/etc/rust_*.py*
%if %{mdvver} >= 201910
%{rustlibdir}/etc/__pycache__/rust_*.py*
%endif

#-------------------------------------------------------------------------

%package gdb
Summary:	GDB pretty printers for Rust
Group:		Development/Rust
Requires:	gdb
Requires:	%{name}-debugger-common = %{version}-%{release}
BuildArch:	noarch
# (akien) Handle moved files between our old Mageia package and this Fedora-based one
Conflicts:	rust < 1.11.0-3

%description gdb
This package includes the rust-gdb script,
which allows easier debugging of Rust programs.

%files gdb
%{_bindir}/rust-gdb
%{rustlibdir}/etc/gdb_*
%if %{mdvver} >= 201910
%{rustlibdir}/etc/__pycache__/gdb_*
%endif
# %%exclude - No work!
#%%exclude %%{_bindir}/rust-gdbgui
%{_bindir}/rust-gdbgui

#-------------------------------------------------------------------------
%if %{with lldb}

%package lldb
Summary:	LLDB pretty printers for Rust
Group:		Development/Rust
Requires:	lldb
Requires:	python3-lldb
Requires:	%{name}-debugger-common = %{version}-%{release}
BuildArch:	noarch

%description lldb
This package includes the rust-lldb script,
which allows easier debugging of Rust programs.

%files lldb
%doc README.md COPYRIGHT LICENSE-APACHE LICENSE-MIT
%{_bindir}/rust-lldb
%{rustlibdir}/etc/lldb_*

%endif
#-------------------------------------------------------------------------

%package -n cargo
Summary:	Rust's package manager and build tool
Group:		Development/Rust
# For tests:
BuildRequires:	git
# Cargo is not much use without Rust
Requires:	rust
Obsoletes:	cargo < 1.26.0-1
# "cargo vendor" is a builtin command starting with 1.37.  The Obsoletes and
# Provides are mostly relevant to RHEL, but harmless to have on Fedora/etc. too
Obsoletes:	cargo-vendor <= 0.1.23
Provides:	cargo-vendor = %{version}-%{release}

%description -n cargo
Cargo is a tool that allows Rust projects to declare their various dependencies
and ensure that you'll always get a repeatable build.

%files -n cargo
%license src/tools/cargo/LICENSE-{APACHE,MIT,THIRD-PARTY}
%doc src/tools/cargo/README.md
%{_bindir}/cargo
%{_mandir}/man1/cargo*.1*
%{_sysconfdir}/bash_completion.d/cargo
%{_datadir}/zsh/site-functions/_cargo
%dir %{_datadir}/cargo
%dir %{_datadir}/cargo/registry

#-------------------------------------------------------------------------

%package -n rustfmt
Summary:	Tool to find and fix Rust formatting issues
Group:		Development/Rust
Requires:	cargo
# The component/package was rustfmt-preview until Rust 1.31.
Obsoletes:	rustfmt-preview < 1.0.0
Provides:	rustfmt-preview = %{version}-%{release}

%description -n rustfmt
A tool for formatting Rust code according to style guidelines.

%files -n rustfmt
%doc src/tools/rustfmt/{README,CHANGELOG,Configurations}.md
%license src/tools/rustfmt/LICENSE-{APACHE,MIT}
%{_bindir}/rustfmt
%{_bindir}/cargo-fmt

#-------------------------------------------------------------------------

%package -n rls
Summary:	Rust Language Server for IDE integration
Group:		Development/Rust
# /usr/bin/rls is dynamically linked against internal rustc libs
Requires:	%{name} = %{version}-%{release}
# The component/package was rls-preview until Rust 1.31.
Obsoletes:	rls-preview < 1.31.6
Provides:	rls-preview = %{version}-%{release}

%description -n rls
The Rust Language Server provides a server that runs in the background,
providing IDEs, editors, and other tools with information about Rust programs.
It supports functionality such as 'goto definition', symbol search,
reformatting, and code completion, and enables renaming and refactorings.

%files -n rls
%doc src/tools/rust-analyzer/README.md
%license src/tools/rust-analyzer/LICENSE-{APACHE,MIT}
%{_bindir}/rls
%{_bindir}/rust-analyzer

#-------------------------------------------------------------------------

%package -n clippy
Summary:	Lints to catch common mistakes and improve your Rust code
Group:		Development/Rust
Requires:	cargo
# /usr/bin/clippy-driver is dynamically linked against internal rustc libs
Requires:	%{name} = %{version}-%{release}
# The component/package was clippy-preview until Rust 1.31.
Obsoletes:	clippy-preview <= 0.0.212
Provides:	clippy-preview = %{version}-%{release}

%description -n clippy
A collection of lints to catch common mistakes and improve your Rust code.

%files -n clippy
%doc src/tools/clippy/{README.md,CHANGELOG.md}
%license src/tools/clippy/LICENSE-{APACHE,MIT}
%{_bindir}/cargo-clippy
%{_bindir}/clippy-driver

#-------------------------------------------------------------------------

%package src
Summary:	Sources for the Rust standard library
Group:		Development/Rust
BuildArch:	noarch

%description src
This package includes source files for the Rust standard library.  It may be
useful as a reference for code completion tools in various editors.

%files src
%dir %{rustlibdir}
%{rustlibdir}/src

#-------------------------------------------------------------------------

%prep
%ifarch %{bootstrap_arches}
%ifarch x86_64
tar xf %{SOURCE1}
%endif
%ifarch %{ix86}
tar xf %{SOURCE2}
%endif
%ifarch aarch64
tar xf %{SOURCE3}
%endif
%ifarch %{riscv64}
tar xf %{SOURCE4}
%endif


cd rust-%{bootstrap_rust}-*
./install.sh --components=cargo,rustc,rust-std-%{rust_triple} \
	--prefix=%{local_rust_root} --disable-ldconfig
test -f '%{local_rust_root}/bin/cargo'
test -f '%{local_rust_root}/bin/rustc'
%endif

%setup -qn rustc-%{version}-src
%autopatch -p1

# python3
sed -i.try-py3 -e '/try python2.7/i try python3 "$@"' ./configure

rm -rf src/llvm-project
mkdir -p src/llvm-project/libunwind/

# Remove other unused vendored libraries
rm -rf vendor/jemalloc-sys/jemalloc/
rm -rf vendor/libz-sys/src/zlib/
rm -rf vendor/libz-sys/src/zlib-ng/
rm -rf vendor/lzma-sys/xz-*/
rm -rf vendor/openssl-src/openssl/

# This only affects the transient rust-installer, but let it use our dynamic xz-libs
sed -i.lzma -e '/LZMA_API_STATIC/d' src/bootstrap/src/core/build_steps/tool.rs


%if %{with llvm_static}
# Static linking to distro LLVM needs to add -lffi
# https://github.com/rust-lang/rust/issues/34486
sed -i.ffi -e '$a #[link(name = "ffi")] extern {}' \
  compiler/rustc_llvm/src/lib.rs
%endif

# The configure macro will modify some autoconf-related files, which upsets
# cargo when it tries to verify checksums in those files.  If we just truncate
# that file list, cargo won't have anything to complain about.
find vendor -name .cargo-checksum.json \
	-exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'

# Sometimes Rust sources start with #![...] attributes, and "smart" editors think
# it's a shebang and make them executable. Then brp-mangle-shebangs gets upset...
find -name '*.rs' -type f -perm /111 -exec chmod -v -x '{}' '+'

%if %{with bootstrap}
mkdir -p build/%{rust_triple}/llvm
ln -sfr %{llvm_path}/bin  build/%{rust_triple}/llvm
ln -sfr %{llvm_path}/%{_lib} build/%{rust_triple}/llvm/lib
ln -sfr %{llvm_path}/include  build/%{rust_triple}/llvm
ln -sfr %{llvm_path}/share  build/%{rust_triple}/llvm
%endif

%build
# Use hardening ldflags.
%if %{with bootstrap}
export PATH="%{local_rust_root}/bin:$PATH"
%ifarch x86_64
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now -L %{rustlibdir}/%{rust_triple}/lib %{!?with_system_llvm:-L %{llvm_path}/%{_lib}}
%else
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now %{!?with_system_llvm:-L %{llvm_path}/%{_lib}}
%endif
%else
%global rustflags -Clink-arg=-Wl,-z,relro,-z,now %{!?with_system_llvm:-L %{llvm_path}/%{_lib}}
%endif

# convince libgit2-sys to use the distro libgit2
export LIBGIT2_SYS_USE_PKG_CONFIG=1

# convince libssh2-sys to use the distro libssh2
export LIBSSH2_SYS_USE_PKG_CONFIG=1

export RUSTFLAGS="%{rustflags}"
export CXXSTDLIB="stdc++"

lib_driver=build/%{rust_triple}/stage1/%{_lib}
export LD_LIBRARY_PATH="$lib_driver:LD_LIBRARY_PATH"

export CC=%{_cc}
export CXX=%{_cxx}

%configure \
	--disable-option-checking \
	--libdir=%{_libdir} \
	--build=%{rust_triple} --host=%{rust_triple} --target=%{rust_triple} \
	--python=python3 \
	--local-rust-root=%{local_rust_root} \
        --llvm-config=%{_llvm_config} \
	--disable-codegen-tests \
	--disable-rpath \
	--enable-extended \
	--tools=analysis,cargo,clippy,rls,rust-analyzer,rustfmt,src \
	--enable-vendor \
	--release-channel=stable \
%if %{mdkver} > 201610
	--set rust.codegen-units-std=1 \
%endif
	--disable-debuginfo \
	--disable-debuginfo-only-std \
	--disable-debuginfo-tools \
	--disable-debuginfo-lines \
%if %{without llvm_static}
	--enable-llvm-link-shared \
%endif
	--set build.verbose=0 \
	--set build.build-stage=2 \
	--set build.test-stage=2 \
	--set build.doc-stage=2 \
	--set build.gdb="%{_bindir}/gdb" \
	--disable-use-libcxx \
	--set rust.jemalloc=false \
	--disable-llvm-static-stdcpp \
	--disable-dist-src \
	--set target.%{rust_triple}.profiler="%{profiler}" \
	--set build.optimized-compiler-builtins=false 

python3 ./x.py build

%install
# convince libgit2-sys to use the distro libgit2
export LIBGIT2_SYS_USE_PKG_CONFIG=1

# convince libssh2-sys to use the distro libssh2
export LIBSSH2_SYS_USE_PKG_CONFIG=1

export RUSTFLAGS="%{rustflags}"

DESTDIR=%{buildroot} python3 ./x.py install

# The shared libraries should be executable for debuginfo extraction.
find %{buildroot}%{_libdir} -maxdepth 1 -type f -name '*.so' \
	-exec chmod -v +x '{}' '+'

# The libdir libraries are identical to those under rustlib/. It's easier on
# library loading if we keep them in libdir, but we do need them in rustlib/
# to support dynamic linking for compiler plugins, so we'll symlink.
(cd "%{buildroot}%{rustlibdir}/%{rust_triple}/lib" &&
	find ../../../../%{_lib} -maxdepth 1 -name '*.so' |
	while read lib; do
		if [ -f "${lib##*/}" ]; then
			# make sure they're actually identical!
			cmp "$lib" "${lib##*/}"
			ln -v -f -s -t . "$lib"
		fi
	done)

# Remove installer artifacts (manifests, uninstall scripts, etc.)
find %{buildroot}%{rustlibdir} -maxdepth 1 -type f -exec rm -v '{}' '+'

# Remove backup files from %%configure munging
find %{buildroot}%{rustlibdir} -type f -name '*.orig' -exec rm -v '{}' '+'

# https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error
# We don't actually need to ship any of those python scripts in rust-src anyway.
find %{buildroot}%{rustlibdir}/src -type f -name '*.py' -exec rm -v '{}' '+'

# Remove unwanted documentation files (we already package them)
rm -f %{buildroot}%{_docdir}/%{name}/README.md
rm -f %{buildroot}%{_docdir}/%{name}/COPYRIGHT
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-APACHE
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-MIT
rm -f %{buildroot}%{_docdir}/%{name}/LICENSE-THIRD-PARTY
rm -f %{buildroot}%{_docdir}/%{name}/*.old

# Delete the HTML documentation
rm -rf %{buildroot}%{_docdir}/%{name}/html

# Create the path for crate-devel packages
mkdir -p %{buildroot}%{_datadir}/cargo/registry

%if %{without lldb}
rm -f %{buildroot}%{_bindir}/rust-lldb
rm -f %{buildroot}%{rustlibdir}/etc/lldb_*
%endif

# We don't want Rust copies of LLVM tools (rust-lld, rust-llvm-dwp)
rm -f %{buildroot}%{rustlibdir}/%{rust_triple}/bin/rust-ll*

# copy rls
cp -fr build/%{rust_triple}/stage2-tools-bin/rls %{buildroot}%{_bindir}

rm -f %{buildroot}%{_bindir}/*.old

rm -frv %{buildroot}%{_defaultdocdir}/cargo
rm -frv %{buildroot}%{_defaultdocdir}/clippy
rm -frv %{buildroot}%{_defaultdocdir}/rust-analyzer
rm -frv %{buildroot}%{_defaultdocdir}/rustc
rm -frv %{buildroot}%{_defaultdocdir}/rustfmt

%check
export PATH="%{buildroot}%{_bindir}:$PATH" 
export LD_LIBRARY_PATH="%{buildroot}%{_libdir}:LD_LIBRARY_PATH"

readelf -d %{buildroot}%{_libdir}/librustc_driver* | grep LLVM || :

%{buildroot}%{_bindir}/rustc -V
%{buildroot}%{_bindir}/cargo -V

mkdir -p projects/hello_world
 pushd projects/hello_world

cat > main.rs <<EOF
fn main() {
    println!("Hello, world!");
}
EOF

rustc main.rs
	./main
popd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17117 |21mr|rust-byteorder-1.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __cargo_skip_build 1

%bcond_without check
%global debug_package %{nil}

%global crate byteorder

Name:		rust-%{crate}
Version:	1.4.3
Release:	1
Summary:	Library for reading/writing numbers in big-endian and little-endian
Group:		Development/Rust
# Upstream license specification: Unlicense OR MIT
License:	Unlicense or MIT
URL:		https://crates.io/crates/byteorder
Source0:	%{crate}-%{version}.crate
BuildRequires:	rust-packaging
BuildRequires:	lua

%global _description %{expand:
Library for reading/writing numbers in big-endian and little-endian.}

%description %{_description}

#---------------------------------------------------------------------------
%package devel
Summary:	%{summary}
Group:		Development/Rust
BuildArch:	noarch

%description devel %{_description}

This package contains library source intended for building other packages
which use "%{crate}" crate.

%files devel
%license COPYING UNLICENSE LICENSE-MIT
%doc README.md CHANGELOG.md
%{cargo_registry}/%{crate}-%{version_no_tilde}/

#---------------------------------------------------------------------------

%package -n %{name}+default-devel
Summary:	%{summary}
Group:		Development/Rust
BuildArch:	noarch

%description -n %{name}+default-devel %{_description}

This package contains library source intended for building other packages
which use "default" feature of "%{crate}" crate.

%files -n %{name}+default-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

#---------------------------------------------------------------------------

%package -n %{name}+i128-devel
Summary:	%{summary}
Group:		Development/Rust
BuildArch:	noarch

%description -n %{name}+i128-devel %{_description}

This package contains library source intended for building other packages
which use "i128" feature of "%{crate}" crate.

%files -n %{name}+i128-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

#---------------------------------------------------------------------------

%package -n %{name}+std-devel
Summary:	%{summary}
Group:		Development/Rust
BuildArch:	noarch

%description -n %{name}+std-devel %{_description}

This package contains library source intended for building other packages
which use "std" feature of "%{crate}" crate.

%files -n %{name}+std-devel
%ghost %{cargo_registry}/%{crate}-%{version_no_tilde}/Cargo.toml

#---------------------------------------------------------------------------

%prep
%autosetup -n %{crate}-%{version_no_tilde} -p1
%cargo_prep

%generate_buildrequires
%cargo_generate_buildrequires

%build
%cargo_build

%install
%cargo_install

%if %{with check}
%check
%cargo_test
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17118 |21mr|rust-nightly-0.20240516.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with docs

%global ldflags %{ldflags} -Wl,-rpath,%{opt_libdir}


%if %{mdvver} <= 202115
%define llvm_path /opt/llvm%{llvm_major}
%define llvm_major 17
%else
%define llvm_path %{_prefix}
%define llvm_major 18
%endif

%global profiler %(echo %{llvm_path}/%{_lib}/clang/%{llvm_major}/lib/*linux-gnu/libclang_rt.profile*.a)

%ifarch %{x86_64}
%define triple_arches x86_64-unknown-linux-gnu
%endif
%ifarch %{ix86}
%define triple_arches i686-unknown-linux-gnu
%endif
%ifarch %{arm64}
%define triple_arches aarch64-unknown-linux-gnu
%endif
%ifarch %{riscv64}
%define triple_arches riscv64gc-unknown-linux-gnu
%endif

%global opt_name_dir /opt/%{name}-%{version}
%global opt_prefix %{opt_name_dir}
%global opt_sysconfig %{opt_name_dir}/sysconfig
%global opt_bindir %{opt_name_dir}/bin
%global opt_libdir %{opt_name_dir}/lib
%global opt_datadir %{opt_name_dir}/share
%global opt_mandir %{opt_datadir}/man

%global bootstrap_date 2024-04-29

Summary:	The Rust Programming Language
Name:		rust-nightly
# version %%{name} 1.80.0
Version:	0.20240516.1
Release:	1
License:	(ASL 2.0 or MIT) and (BSD and MIT)
Group:		Development/Rust
Url:		https://www.rust-lang.org
Source0:	https://static.rust-lang.org/dist/rustc-nightly-src.tar.gz
# how to get the archives for initial download
# run x.py and look in the build/cache/%%{bootstrap_date} directory and pack it
Source1:	aarch64-unknown-linux-gnu.tar.xz
Source2:	i686-unknown-linux-gnu.tar.xz
Source3:	x86_64-unknown-linux-gnu.tar.xz
Source4:	%{name}.rpmlintrc
Patch0:		bugs-110787.patch
BuildRequires:	ncurses-devel
BuildRequires:	curl
BuildRequires:	git
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	cmake
BuildRequires:	stdc++-static-devel
%if %{mdvver} <= 202115
BuildRequires:  llvm%{llvm_major}
%else
BuildRequires:  llvm-devel
BuildRequires:  clang-devel
BuildRequires:  compiler-rt
%endif
BuildRequires:	procps-ng

%description
Rust is a systems programming language that runs blazingly fast, prevents
segfaults, and guarantees thread safety.

This package includes the Rust compiler and documentation generator.

%files
%license LICENSE* COPYRIGHT
%doc *.md
%dir %{opt_name_dir}
%{opt_name_dir}/*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n rustc-nightly-src

%ifarch %{arm64}
%setup -T -D -a 1 -n rustc-nightly-src
%endif

%ifarch %{ix86}
%setup -T -D -a 2 -n rustc-nightly-src
%endif

%ifarch %{x86_64}
%setup -T -D -a 3 -n rustc-nightly-src
%endif

rm -fr src/llvm-project/*
mkdir -p src/llvm-project/libunwind

# Remove other unused vendored libraries
rm -rf vendor/jemalloc-sys/jemalloc/
rm -rf vendor/openssl-src/openssl/
rm -rf vendor/libz-sys/src/zlib/
rm -rf vendor/libz-sys/src/zlib-ng/
rm -rf vendor/lzma-sys/xz-*/

# This only affects the transient rust-installer, but let it use our dynamic xz-libs
sed -i.lzma -e '/LZMA_API_STATIC/d' src/bootstrap/src/core/build_steps/tool.rs

# The configure macro will modify some autoconf-related files, which upsets
# cargo when it tries to verify checksums in those files.  If we just truncate
# that file list, cargo won't have anything to complain about.
find vendor -name .cargo-checksum.json \
	-exec sed -i.uncheck -e 's/"files":{[^}]*}/"files":{ }/' '{}' '+'

%build

%if %{mdvver} <= 202115
export PATH="%{llvm_path}/bin:$PATH"
%endif

%configure											 \
		--disable-option-checking							 \
		--prefix="%{opt_prefix}"							 \
		--sysconfdir="%{opt_sysconfig}"							 \
		--bindir="%{opt_bindir}"							 \
		--libdir="%{opt_libdir}"							 \
		--datadir="%{opt_datadir}"							 \
		--mandir="%{opt_mandir}"							 \
		--build=%{triple_arches} --host=%{triple_arches} --target=%{triple_arches}	 \
		--tools=analysis,cargo,clippy,rls,rust-analyzer,rustfmt,src			 \
		--set build.extended="true"							 \
		--set build.optimized-compiler-builtins="false"					 \
		--set build.submodules="true"							 \
		--set build.vendor="true"							 \
		--set build.verbose="0"								 \
		--set build.build-stage="2"							 \
		--set build.test-stage="2"							 \
%if %{with docs}
		--set build.doc-stage="2"							 \
%else
		--disable-docs									 \
		--disable-compiler-docs								 \
%endif
		--set rust.rpath="true"								 \
		--set rust.channel="dev"							 \
		--set rust.jemalloc="false"							 \
		--set rust.codegen-tests="false"						 \
		--set rust.codegen-units="1"							 \
		--set rust.debug="true"								 \
		--set rust.debuginfo-level="0"							 \
		--set rust.debuginfo-level-std="2"						 \
		--set rust.dist-src="false"							 \
%if %{mdvver} == 202310
		--enable-llvm-link-shared							 \
%endif
		--set llvm.static-libstdcpp="false"						 \
		--set rust.description="%{distro_branch} %{version}-%{release}"			 \
		--set target.%{triple_arches}.llvm-config="%{llvm_path}/bin/llvm-config"	 \
		--set target.%{triple_arches}.profiler="%{profiler}"
%{__python3} ./x.py build

%install
DESTDIR=%{buildroot} %{__python3} ./x.py install

# The shared libraries should be executable for debuginfo extraction.
find %{buildroot}%{opt_libdir} -maxdepth 1 -type f -name '*.so' \
    -exec chmod -v +x '{}' '+'

cp -Rfv version %{buildroot}%{opt_name_dir}

rm -Rfv %{buildroot}%{opt_bindir}/*.old

rm -Rfv %{buildroot}%{opt_libdir}/rustlib/{components,install.log,manifest*,rust-installer-version,*.sh}

%check

LD_LIBRARY_PATH="%{buildroot}%{opt_libdir}" \
	%{buildroot}%{opt_bindir}/cargo -V

LD_LIBRARY_PATH="%{buildroot}%{opt_libdir}" \
	%{buildroot}%{opt_bindir}/rustc -V



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17119 |21mr|rust-packaging-18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without check
# https://pagure.io/koji/issue/659
%global debug_package %{nil}

Name:           rust-packaging
Version:        18
Release:        2
Summary:        RPM macros for building Rust packages on various architectures
Group:          Development/Rust
License:        MIT
URL:            https://pagure.io/fedora-rust/rust2rpm
Source:         https://pagure.io/fedora-rust/rust2rpm/archive/v%{version}/rust2rpm-v%{version}.tar.gz
# https://pagure.io/fedora-rust/rust2rpm/issue/70
Patch0001:      0001-Always-require-upper-bound-dependency-with-sign.patch
# gawk is needed for stripping dev-deps in macro
Requires:       gawk
Requires:       python3-rust2rpm = %{EVRD}
Requires:       rust-srpm-macros
Requires:       rust
Requires:       cargo >= 1.41

%description
The package provides macros for building projects in Rust
on various architectures.

%files
%license LICENSE
%{_rpmmacrodir}/macros.rust
%{_rpmmacrodir}/macros.cargo
%{_fileattrsdir}/cargo.attr

# --------------------------------------------------------------

%package     -n rust-srpm-macros
Summary:        RPM macros for building Rust source packages
Requires:       %{name}
Requires:       lua

%description -n rust-srpm-macros
%{summary}.

%files       -n rust-srpm-macros
%license LICENSE
%{_rpmmacrodir}/macros.rust-srpm

# --------------------------------------------------------------

%package     -n python3-rust2rpm
Summary:        Convert Rust packages to RPM
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
%if %{with check}
BuildRequires:  python3-pytest
BuildRequires:  cargo
%endif
Requires:       cargo
Provides:       rust2rpm = %{version}-%{release}

%description -n python3-rust2rpm
%{summary}.

%files -n python3-rust2rpm
%license LICENSE
%{_bindir}/rust2rpm
%{_bindir}/cargo-inspector
%{python3_sitelib}/rust2rpm-*.egg-info/
%{python3_sitelib}/rust2rpm/

# --------------------------------------------------------------

%prep
%autosetup -n rust2rpm-v%{version} -p1

# https://pagure.io/koji/issue/659
sed -i -e 's/i686/%%{ix86}/' data/macros.rust-srpm

%build
%py3_build

%install
%py3_install
install -D -p -m 0644 -t %{buildroot}%{_rpmmacrodir} data/macros.rust-srpm data/macros.rust data/macros.cargo
install -D -p -m 0644 -t %{buildroot}%{_fileattrsdir} data/cargo.attr

%if %{with check}
%check
py.test-%{python3_version} -vv test.py
%endif



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17120 |21mr|rutokens-driver-1.0.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define usbdropdir %(pkg-config libpcsclite --variable="usbdropdir" 2>/dev/null || :)

# I tried to fix it properly but failed
%define _disable_ld_no_undefined 1

Summary:	Driver for Rutoken S
Name:		rutokens-driver
Version:	1.0.9
Release:	1
License:	GPLv2
Group:		System/Kernel and hardware
URL:		https://github.com/AktivCo/rutokens-driver
Source0:	https://github.com/AktivCo/rutokens-driver/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(libusb)
OrderWithRequires(post): pcsc-lite
Requires:	pcsc-lite
# CryptoPro has a bundled rpm ifd-rutokens with the same driver
Provides:	ifd-rutokens = 0.%{EVRD}
Provides:	ifd-rutokens%{_isa} = 0.%{EVRD}

%description
Driver for Rutoken S

%files
%license COPYING
%doc AUTHORS README
%{usbdropdir}/ifd-rutokens.bundle

%post
systemctl try-reload-or-restart pcscd.service || :

%postun
systemctl try-reload-or-restart pcscd.service || :

#-------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -if
%configure \
	--enable-usbdropdir=%{usbdropdir}
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17121 |21mr|rxjava-1.1.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionals to help with missing test dependencies
%bcond_with checker

Name:          rxjava
Version:       1.1.8
Release:       7
Summary:       Reactive Extensions for the JVM
License:       ASL 2.0
URL:           https://github.com/ReactiveX/RxJava
Source0:       https://github.com/ReactiveX/RxJava/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:       http://central.maven.org/maven2/io/reactivex/%{name}/%{version}/%{name}-%{version}.pom
Group:         Development/Java
BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
%if %{with checker}
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.pushtorefresh.java-private-constructor-checker:checker)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.mockito:mockito-core)
%endif

# RxJava adaptation of jctools
Provides:      bundled(jctools-core) = 1.2-SNAPSHOT

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
RxJava a library for composing asynchronous and
event-based programs using observable sequences
for the Java VM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n RxJava-%{version}
# Cleanup
find . -name '*.class' -print -delete
find . -name '*.jar' -print -delete

cp -p %{SOURCE1} pom.xml

# Add OSGi support
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>io.reactivex.rxjava</Bundle-SymbolicName>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-Vendor>ReactiveX</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# Fix javadoc plugin configuration
%pom_add_plugin org.apache.maven.plugins:maven-javadoc-plugin:2.9.1 . '
<configuration>
  <excludePackageNames>*.internal.*</excludePackageNames>
</configuration>'

%if %{with checker}

# Add test deps
%pom_add_dep junit:junit:4.12:test
%pom_add_dep org.mockito:mockito-core:1.10.19:test
%pom_add_dep com.google.guava:guava:19.0:test
%pom_add_dep com.pushtorefresh.java-private-constructor-checker:checker:1.2.0:test

# This test take too much time on ARM builder e.g.:
# Time elapsed: 3.027 sec  <<< ERROR!
# org.junit.runners.model.TestTimedOutException: test timed out after 3000 milliseconds
rm src/test/java/rx/internal/operators/OperatorMergeMaxConcurrentTest.java \
 src/test/java/rx/internal/operators/OperatorMergeTest.java \
 src/test/java/rx/internal/operators/OperatorPublishTest.java \
 src/test/java/rx/internal/operators/OperatorRepeatTest.java \
 src/test/java/rx/internal/operators/OperatorRetryTest.java \
 src/test/java/rx/subjects/ReplaySubjectBoundedConcurrencyTest.java \
 src/test/java/rx/subjects/ReplaySubjectConcurrencyTest.java
# Require OperatorRetryTest
rm src/test/java/rx/internal/operators/OperatorRetryWithPredicateTest.java

%endif

%mvn_file io.reactivex:%{name} %{name}

%build

%if %{without checker}
opts="-f"
%endif
# Test skipped unavailable test dep
%mvn_build $opts -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.md README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17122 |21mr|rxtx-2.2-0.24.20100211
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global upver	2.2
%global uprel	20100211

%global jni	%{_libdir}/%{name}
%define _disable_ld_no_undefined 1

Summary:	Parallel communication for the Java Development Toolkit
Name:		rxtx
Version:	%{upver}
Release:	0.24.%{uprel}
License:	LGPLv2+
Group:          Development/Java
URL:		http://rxtx.qbang.org/
# The source for this package was pulled from upstream's vcs.  Use the
# following commands to generate the tarball:
#  cvs -d:pserver:anonymous@qbang.org:/var/cvs/cvsroot co -r commapi-0-0-1 -D "2010-02-11" -d rxtx-%%{uprel} rxtx-devel
#  tar cjvf rxtx-%%{uprel}.tar.bz2 --exclude CVS --exclude .cvsignore rxtx-%%{uprel}
Source0:	%{name}-%{uprel}.tar.bz2
Source1:	README.distro
Source2:	rxtx-osgi.bnd
Patch1:		rxtx-2.2-loadlibrary.patch
Patch2:		rxtx-sys_io_h_check.patch
Patch3:		rxtx-2.2-fhs_lock.patch
Patch4:		rxtx-2.2-lock.patch
Patch5:		rxtx-2.2-Add-Arduino-driver-ttyACM-rxtxcomm-as-device.patch
Patch6:		rxtx-2.2-java-version-fix.patch
Patch7:		rxtx-2.2-convert-strcpy-to-strncpy.patch
Patch8:		rxtx-2.2-minor.patch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	libtool automake
BuildRequires:	ant
BuildRequires:	ant-junit
BuildRequires:	junit
BuildRequires:	aqute-bnd
BuildRequires:	javapackages-local

%description
rxtx is an full implementation of java commapi which aims to support RS232
IEEE 1284, RS485, I2C and RawIO.

%prep
%setup -q -n rxtx-%{uprel}
sed -e 's|@JNIPATH@|%{jni}|' %{PATCH1} | patch -s -b --suffix .p1 -p1
%patch2 -p1
%patch3 -p1
%if 0%{?fedora} || 0%{?rhel} > 6
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%endif
%patch8 -p1
# remove prebuild binaries
find . -name '*.jar' -exec rm {} \;
find . -name '*.hqx' -exec rm {} \;
cp -a %{SOURCE1} .

# Don't need to install jar file, mvn_install will do it
sed -i -e '/JHOME/d' Makefile.in

%build
export JAVA_HOME=%{java_home}
%configure
# parallel make fails with make %%{?_smp_mflags}
make
iconv -f ISO_8859-1 -t UTF-8 ChangeLog >ChangeLog.utf-8
mv ChangeLog.utf-8 ChangeLog

# Inject OSGi metadata
bnd wrap -p %{SOURCE2} -v %{version} -o RXTXcomm-bnd.jar RXTXcomm.jar
mv RXTXcomm-bnd.jar RXTXcomm.jar

%install
mkdir -p %{buildroot}%{jni}
make RXTX_PATH=%{buildroot}%{jni} install
find %{buildroot} -name '*.la' -exec rm {} \;

%mvn_artifact org.rxtx:rxtx:%{version} RXTXcomm.jar
%mvn_file org.rxtx:rxtx:%{version} RXTXcomm
%mvn_install

%files -f .mfiles
%license COPYING
%doc AUTHORS ChangeLog README TODO README.distro
%{jni}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17123 |21mr|rxvt-2.7.10-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A color VT102 terminal emulator for the X Window System
Name:		rxvt
Epoch:		3
Version:	2.7.10
Release: 	31
License:	GPLv2
Group:		Terminals

Source0:	ftp://ftp.rxvt.org/pub/rxvt/rxvt-%{version}.tar.bz2
Source1:	rxvt.sh
Source2:	rxvt-zh.menu
Source3:	rxvt-CLE-mini.png
Source4:	rxvt-CLE.png
Source5:	rxvt-CLE-large.png

Patch0:		rxvt-2.7.8-big-buffer.patch
# definition of the default fonts to use depending on language -- pablo 
Patch2:		rxvt-2.7.10-fonts.patch
# IM fix from http://www.giga.it.okayama-u.ac.jp/~ishihara/opensource/:
Patch3:		rxvt-2.7.10-xim-fix.patch 

# from gentoo
Patch4:		rxvt-2.7.10-asneeded.patch
Patch5:		rxvt-2.7.10-azz4.diff
Patch6:		rxvt-2.7.10-line-scroll.patch
Patch7:		rxvt-2.7.10-rk.patch
Patch8:		rxvt-2.7.10-CVE-2008-1142-DISPLAY.patch
# from debian 20_disable_escape_sequence.diff
Patch9:		CVE-2021-33477.patch

URL:		http://rxvt.sourceforge.net/
Obsoletes:	crxvt <= 2.7.10, gbrxvt <= 2.7.10
Obsoletes:	rxvt-CLE <= 2.7.10
Provides:	crxvt = %{version}-%{release}
Provides:	gbrxvt = %{version}-%{release}
Provides:	rxvt-CLE = %{version}-%{release}
BuildRequires:	xpm-devel
BuildRequires:	utempter-devel
BuildRequires:	lesstif-devel
BuildRequires:	pkgconfig(xt)
# X11 locales are required to build IM support
BuildRequires:	libx11-common
Conflicts:	drakconf < 9.3-25mdk

%package CJK
Summary:	CJK menus for rxvt
Requires:	%{name} = %{epoch}:%{version}-%{release}
Group:		Terminals

%description
Rxvt is a color VT102 terminal emulator for the X Window System.
Rxvt is intended to be an xterm replacement for users who don't need
the more esoteric features of xterm, like Tektronix 4014 emulation,
session logging and toolkit style configurability.  Since it doesn't
support those features, rxvt uses much less swap space than xterm
uses.  This is a significant advantage on a machine which is serving
a large number of X sessions.

The rxvt package should be installed on any machine which serves a
large number of X sessions, if you'd like to improve that machine's
performance.

This version of rxvt can display Japanese, Chinese (Big5 and GuoBiao) 
and Korean.

%description CJK
This package contains the CJK versions of rxvt.

%prep
%setup -q
%patch0 -p1 -b .bigbuf
%patch2 -p1 -b .fonts
%patch3 -p1 -b .im

%patch4 -p1 -b .asneeded
%patch5 -p1 -b .azz4
%patch6 -p0 -b .line-scroll
%patch7 -p1 -b .rk
%patch8 -p1 -b .CVE-2008-1142
%patch9 -p1

%build
# NeXT scrollbar is cool :)
perl -pi -e s/-eten-/-\*-/g src/defaultfont.h

export CFLAGS="%{optflags} -D_GNU_SOURCE -DUTEMPTER"  
%configure --mandir=%{_mandir} \
	--enable-xpm-background --enable-menubar \
	--enable-utmp --enable-ttygid \
	--enable-transparency --enable-next-scroll --enable-rxvt-scroll --enable-xterm-scroll \
	--enable-xim --enable-languages --enable-smart-resize  \
	--enable-mousewheel --enable-static=yes

# make -j doesn't works... seems some Makefile tasks are done in wrong order
#make -j 2
make
cp src/rxvt src/rxvt.cjk
cp src/rxvt src/rxvt.bin

%install

%makeinstall_std
mkdir -p %{buildroot}/etc/X11/app-defaults
touch src/rxvt
for i in cjk bin;do
	install -m755 src/rxvt.$i %{buildroot}/usr/bin
done
rm -f %{buildroot}/usr/bin/rxvt
rm -f %{buildroot}/usr/bin/rxvt-%{version}

install -m 755 %{SOURCE1} %{buildroot}/usr/bin

# (fg) 20000925 Make the necessary links
( cd %{buildroot}/usr/bin;
  for i in {gb,c,j,k}rxvt; do
		ln rxvt.sh $i
  done
  ln -s rxvt.sh rxvt
)

mkdir -p %{buildroot}/%{_sysconfdir}/rxvt

mkdir -p %{buildroot}%{_datadir}/applications/
cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-rxvt.desktop
[Desktop Entry]
Type=Application
Categories=X-MandrivaLinux-System-Terminals;TerminalEmulator;
Name=RXvt
Comment=A version of the rxvt terminal with support for Traditional Chinese, Simplified Chinese, Japanese and Korean.
Comment[ru]=Версия терминала rxvt с поддержкой японского, корейского, традиционного и упрощенного китайского языков
Exec=/usr/bin/rxvt
Icon=rxvt-CLE
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-rxvt-C_tw.desktop
[Desktop Entry]
Type=Application
Categories=X-MandrivaLinux-System-Terminals;TerminalEmulator;
Name=CRXvt (Big5)  
Comment=Traditional Chinese rxvt terminal
Comment[ru]=Терминал rxvt с поддержкой традиционного китайского языка
Exec=/usr/bin/crxvt -ls
Icon=rxvt-CJK
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-rxvt-C_ch.desktop
[Desktop Entry]
Type=Application
Categories=X-MandrivaLinux-System-Terminals;TerminalEmulator;
Name=GBRXvt (GB2312)  
Comment=Simplified Chinese rxvt terminal
Comment[ru]=Терминал rxvt с поддержкой упрощенного китайского языка
Exec=/usr/bin/gbrxvt -ls
Icon=rxvt-CJK
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-rxvt-J.desktop
[Desktop Entry]
Type=Application
Categories=X-MandrivaLinux-System-Terminals;TerminalEmulator;
Name=JRXvt (JIS)  
Comment=Japanese rxvt terminal
Comment[ru]=Терминал rxvt с поддержкой японского языка
Exec=/usr/bin/jrxvt -ls
Icon=rxvt-CJK
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/mandriva-rxvt-K.desktop
[Desktop Entry]
Type=Application
Categories=X-MandrivaLinux-System-Terminals;TerminalEmulator;
Name=KRXvt (KSC5601)
Comment=Korean rxvt terminal
Comment[ru]=Терминал rxvt с поддержкой корейского языка
Exec=/usr/bin/krxvt -ls
Icon=rxvt-CJK
EOF

# (fg) 20000929 New icons from ln
mkdir -p %{buildroot}/%{_iconsdir}/{large,mini}
for i in CLE CJK; do
install -m644 %{SOURCE3} %{buildroot}/%{_miconsdir}/rxvt-$i.png

install -m644 %{SOURCE4} %{buildroot}/%{_iconsdir}/rxvt-$i.png
install -m644 %{SOURCE5} %{buildroot}/%{_liconsdir}/rxvt-$i.png
done

chmod -x doc/menu/*

%post
update-alternatives --install /usr/bin/xvt xvt /usr/bin/rxvt 20

%postun
if [ "$1" = "0" ]; then
	update-alternatives --remove xvt /usr/bin/rxvt
fi

%files
%doc doc/*
%{_bindir}/rclock
%{_bindir}/rxvt
%{_bindir}/rxvt.bin
%{_bindir}/rxvt.cjk
%{_bindir}/rxvt.sh
%{_mandir}/man1/*
#%config(missingok,noreplace) /etc/rxvt/rxvt-zh.menu
%{_datadir}/applications/mandriva-rxvt.desktop
%{_iconsdir}/rxvt-CLE.png
%{_liconsdir}/rxvt-CLE.png
%{_miconsdir}/rxvt-CLE.png

%files CJK
%{_bindir}/crxvt
%{_bindir}/gbrxvt
%{_bindir}/jrxvt
%{_bindir}/krxvt
%{_datadir}/applications/mandriva-rxvt-*.desktop
%{_iconsdir}/rxvt-CJK.png
%{_liconsdir}/rxvt-CJK.png
%{_miconsdir}/rxvt-CJK.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17124 |21mr|rygel-0.40.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	url_ver %(echo %{version} | cut -d. -f1,2)

%define	api 2.6
%define	ruih_api 2.0
%define	major 2
%define	ruih_major 1
%define	libname %mklibname %{name}-core %{api} %{major}
%define	libnamedb %mklibname %{name}-db %{api} %{major}
%define	libnamerenderer %mklibname %{name}-renderer %{api} %{major}
%define	libnamerenderergst %mklibname %{name}-renderer-gst %{api} %{major}
%define	libnameruih %mklibname %{name}-ruih %{ruih_api} %{ruih_major}
%define	libnameserver %mklibname %{name}-server %{api} %{major}
%define	devname %mklibname %{name} -d

Summary:	A UPnP v2 Media Server
Name:		rygel
Version:	0.40.4
Release:	4
License:	LGPLv2+
Group:		Sound
Url:		https://download.gnome.org/sources/rygel
Source0:	https://download.gnome.org/sources/rygel/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	perl(XML::Parser)
BuildRequires:	xsltproc
BuildRequires:	valadoc
BuildRequires:	vala-tools
# This is needed for docs, but is in Contrib
#BuildRequires:	valadoc
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gssdp-1.2)
BuildRequires:	pkgconfig(gst-editing-services-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-app-1.0)
BuildRequires:	pkgconfig(gstreamer-audio-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-tag-1.0)
BuildRequires:	pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gupnp-1.2)
BuildRequires:	pkgconfig(gupnp-av-1.0)
BuildRequires:	pkgconfig(gupnp-dlna-2.0)
BuildRequires:	pkgconfig(gupnp-dlna-gst-2.0)
BuildRequires:	pkgconfig(libmediaart-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
BuildRequires:	pkgconfig(uuid)
Requires:	gnome-icon-theme-symbolic
Requires:	gstreamer1.0-libav
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-ugly
Requires:	shared-mime-info
Requires:	tracker
Requires(post,preun):	rpm-helper
%rename		%{name}-tracker

%description
Rygel is an implementation of the UPnP MediaServer V 2.0 specification that is
specifically designed for GNOME. It is based on GUPnP and is written (mostly)
in Vala language. The project was previously known as gupnp-media-server.

%files -f %{name}.lang
%doc AUTHORS README.md TODO NEWS
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-preferences
%config(noreplace) %{_sysconfdir}/%{name}.conf
%{_datadir}/applications/%{name}*
%{_datadir}/dbus-1/services/org.gnome.Rygel1.service
%{_datadir}/gir-1.0/Rygel*-%{api}.gir
%{_datadir}/%{name}/
%dir %{_libdir}/%{name}-%{api}
%dir %{_libdir}/%{name}-%{api}/engines
%dir %{_libdir}/%{name}-%{api}/plugins
%{_iconsdir}/hicolor/*/apps/*
%{_libdir}/girepository-1.0/Rygel*-%{api}.typelib
%{_libdir}/%{name}-%{api}/engines/*
%{_libdir}/%{name}-%{api}/plugins/*
%{_libexecdir}/%{name}/mx-extract
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.conf.5*
%{_userunitdir}/%{name}.service

# Properly install systemd support by registering or de-registering
# the source provided .service file
%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc AUTHORS
%license COPYING
%{_libdir}/librygel-core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamedb}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnamedb}
Shared library for %{name}.

%files -n %{libnamedb}
%doc AUTHORS
%license COPYING
%{_libdir}/librygel-db-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamerenderer}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnamerenderer}
Shared library for %{name}.

%files -n %{libnamerenderer}
%doc AUTHORS
%license COPYING
%{_libdir}/librygel-renderer-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnamerenderergst}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnamerenderergst}
Shared library for %{name}.

%files -n %{libnamerenderergst}
%doc AUTHORS
%license COPYING
%{_libdir}/librygel-renderer-gst-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameruih}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnameruih}
Shared library for %{name}.

%files -n %{libnameruih}
%doc AUTHORS
%license COPYING
%{_libdir}/librygel-ruih-%{ruih_api}.so.%{ruih_major}*

#----------------------------------------------------------------------------

%package -n %{libnameserver}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnameserver}
Shared library for %{name}.

%files -n %{libnameserver}
%doc AUTHORS
%license COPYING
%{_libdir}/librygel-server-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libnamedb} = %{EVRD}
Requires:	%{libnamerenderer} = %{EVRD}
Requires:	%{libnamerenderergst} = %{EVRD}
Requires:	%{libnameruih} = %{EVRD}
Requires:	%{libnameserver} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}-ruih-devel = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%doc AUTHORS
%license COPYING
%{_datadir}/gtk-doc/html/lib%{name}-*
%{_datadir}/vala/vapi/*
%{_includedir}/%{name}-%{api}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}-*-%{api}.pc
%{_libdir}/pkgconfig/%{name}-ruih-%{ruih_api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson \
	-Dapi-docs=true \
	-Dplugins="external,gst-launch,lms,media-export,mpris,playbin,ruih,tracker3"
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17125 |21mr|sablecc-3.7-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sablecc
Version:        3.7
Release:        9
Summary:        A parser generator written in Java
Group:          Development/Java
License:        LGPLv2+
URL:            http://sablecc.org
# https://github.com/SableCC/sablecc
Source0:        http://downloads.sourceforge.net/sablecc/sablecc-3.7.zip
#Source1:        http://repo1.maven.org/maven2/sablecc/sablecc/3.2/sablecc-3.2.pom
Patch0:         sablecc-fsf-addr.patch
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  ant
BuildRequires:  javapackages-local

%description
SableCC is a parser generator which generates object-oriented frameworks for
building compilers, interpreters and other text parsers. SableCC keeps a clean
separation between machine and user code which leads to a shorter development 
cycle.

%prep
%setup -q 
%patch0 -p1
# The ant task has to be unpacked and sanitized prior to the main build. 
tar xzf %{name}-anttask-1.0.1.tar.gz
find -name "*.jar" -delete
find -name "*.class" -delete
rm %{name}-anttask-1.0.1.tar.gz

sed -i "s|lib/%{name}.jar|%{_javadir}/%{name}.jar|" bin/%{name}

%mvn_file %{name}:%{name} %{name}

%build
# Build the ant task and copy *only* that class into the main
# classes directory.  Don't copy everything, because there's a 
# namespace collision that will break the build.
pushd %{name}-anttask-1.0.1
ant 
mkdir -p ../classes/org/sablecc/ant/taskdef/
cp classes/org/sablecc/ant/taskdef/Sablecc.class ../classes/org/sablecc/ant/taskdef/
popd

# the define here prevents ant from redownloading the deleted tarball
ant -Dsablecc-anttask_available=true jar

%install
%mvn_artifact %{name}:%{name}:%{version} lib/%{name}.jar
%mvn_install

mkdir -p %{buildroot}%{_bindir}
install -pm 0755 bin/%{name} %{buildroot}%{_bindir}/%{name}

%files -f .mfiles
%{_bindir}/%{name}
%doc README.html ChangeLog AUTHORS THANKS
%license LICENSE COPYING-LESSER
%doc doc/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17126 |21mr|sac-1.3-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: sac
Version: 1.3
Release: 31
Summary: Java standard interface for CSS parser
License: W3C
#Original source: http://www.w3.org/2002/06/%{name}java-%{version}.zip
#unzip, find . -name "*.jar" -exec rm {} \;
#to simplify the licensing
Source0: %{name}java-%{version}-jarsdeleted.zip
Source1: %{name}-build.xml
Source2: %{name}-MANIFEST.MF
Source3: https://repo1.maven.org/maven2/org/w3c/css/sac/1.3/sac-1.3.pom
URL: http://www.w3.org/Style/CSS/SAC/
Group:          Development/Java
BuildRequires: ant
BuildRequires: javapackages-local

BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
SAC is a standard interface for CSS parsers, intended to work with CSS1, CSS2,
CSS3 and other CSS derived languages.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
install -m 644 %{SOURCE1} build.xml
find . -name "*.jar" -exec rm -f {} \;

%build
ant jar javadoc

# inject OSGi manifest
jar ufm build/lib/sac.jar %{SOURCE2}

%install
%mvn_artifact %{SOURCE3} build/lib/sac.jar
%mvn_file ":sac" sac
%mvn_install -J build/api

%files -f .mfiles
%license COPYRIGHT.html

%files javadoc -f .mfiles-javadoc
%license COPYRIGHT.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17127 |21mr|salt-3006.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pybasever 2.7

%define include_tests 0
%define fish_dir %{_datadir}/fish/vendor_functions.d

Summary:	A parallel remote execution system
Name:		salt
Version:	3006.3
Release:	1
License:	ASL 2.0
Group:		System/Base
Url:		http://saltstack.org
Source0:	https://pypi.io/packages/source/s/%{name}/%{name}-%{version}.tar.gz
Source1:	%{name}-proxy@.service
Source2:	%{name}-master
Source3:	%{name}-syndic
Source4:	%{name}-minion
Source5:	%{name}-api
Source6:	%{name}-master.service
Source7:	%{name}-syndic.service
Source8:	%{name}-minion.service
Source9:	%{name}-api.service
Source10:	README.urpmi
Source11:	%{name}-common.logrotate
Source12:	salt.bash
Source13:	salt.fish
Source14:	salt_common.fish
Source15:	salt-call.fish
Source16:	salt-cp.fish
Source17:	salt-key.fish
Source18:	salt-master.fish
Source19:	salt-minion.fish
Source20:	salt-run.fish
Source21:	salt-syndic.fish
Patch0:		rosa.patch

BuildRequires:	python3-distro
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildRequires:	systemd-units

Requires:	dmidecode
Requires:	pciutils
Requires:	python3-jinja2
Requires:	python3-markupsafe
Requires:	python3-msgpack
Requires:	python3-psutil
Requires:	python3-pycrypto
Requires:	python3-pyzmq
Requires:	python3-requests
Requires:	python3-singledispatch
Requires:	python3-six
Requires:	python3-systemd
Requires:	python3-yaml
Requires:	which

%if 0%{?systemd_preun:1}
Requires(post):	systemd-units
Requires(preun): systemd-units
Requires(postun): systemd-units
%endif

BuildArch:	noarch

%description
Salt is a distributed remote execution system used to execute commands and
query data. It was developed in order to bring the best solutions found in
the world of remote execution together and make them better, faster and more
malleable. Salt accomplishes this via its ability to handle larger loads of
information, and not just dozens, but hundreds or even thousands of individual
servers, handle them quickly and through a simple and manageable interface.

%files
%doc LICENSE README.urpmi
#%config(noreplace) %{_sysconfdir}/salt/
#%config(noreplace) %{_sysconfdir}/salt/pki
%config(noreplace) %{fish_dir}/salt*.fish
%{_bindir}/spm
%{_mandir}/man1/spm.1*
%{_sysconfdir}/bash_completion.d/salt.bash
%{_sysconfdir}/logrotate.d/salt
%{_var}/cache/salt
%{_var}/log/salt
%{python3_sitelib}/%{name}/*
%{python3_sitelib}/%{name}-*-py%{py3_ver}.egg-info

#-------------------------------------------------------------------------

%package master
Summary:	Management component for salt, a parallel remote execution system
Group: 		System/Base
Requires:	%{name} = %{EVRD}
Requires:	python3-systemd

%description master
The Salt master is the central server to which all minions connect.

%files master
%config(noreplace) %{_sysconfdir}/salt/master
%config(noreplace) %{_sysconfdir}/salt/master.d
%config(noreplace) %{_sysconfdir}/salt/pki/master
%{_bindir}/salt
%{_bindir}/salt-cp
%{_bindir}/salt-key
%{_bindir}/salt-master
%{_bindir}/salt-run
%{_bindir}/salt-pip
%{_mandir}/man1/salt-cp.1*
%{_mandir}/man1/salt-key.1*
%{_mandir}/man1/salt-master.1*
%{_mandir}/man1/salt-run.1*
%{_mandir}/man1/salt.1*
%{_mandir}/man7/salt.7*
%{_unitdir}/salt-master.service

%preun master
%systemd_preun salt-master.service

%post master
%systemd_post salt-master.service

%postun master
%systemd_postun_with_restart salt-master.service

#-------------------------------------------------------------------------

%package minion
Summary:	Client component for Salt, a parallel remote execution system
Group:		System/Base
Requires:	%{name} = %{EVRD}

%description minion
The Salt minion is the agent component of Salt. It listens for instructions
from the master, runs jobs, and returns results back to the master.

%files minion
%config(noreplace) %{_sysconfdir}/salt/minion
%config(noreplace) %{_sysconfdir}/salt/minion.d
%config(noreplace) %{_sysconfdir}/salt/pki/minion
%config(noreplace) %{_sysconfdir}/salt/proxy
%{_bindir}/salt-call
%{_bindir}/salt-minion
%{_bindir}/salt-proxy
%{_mandir}/man1/salt-call.1*
%{_mandir}/man1/salt-minion.1*
%{_mandir}/man1/salt-proxy.1*
%{_unitdir}/salt-minion.service
%{_unitdir}/salt-proxy@.service

%preun minion
%systemd_preun salt-minion.service

%post minion
%systemd_post salt-minion.service

%postun minion
%systemd_postun_with_restart salt-minion.service

#-------------------------------------------------------------------------

%package syndic
Summary:	Master-of-master component for Salt, a parallel remote execution system
Group:		System/Base
Requires:	%{name}-master = %{EVRD}

%description syndic
The Salt syndic is a master daemon which can receive instruction from a
higher-level master, allowing for tiered organization of your Salt
infrastructure.

%files syndic
%{_bindir}/salt-syndic
%{_mandir}/man1/salt-syndic.1*
%{_unitdir}/salt-syndic.service

%preun syndic
%systemd_preun salt-syndic.service

%post syndic
%systemd_post salt-syndic.service

%postun syndic
%systemd_postun_with_restart salt-syndic.service

#-------------------------------------------------------------------------

%package api
Summary:	REST API for Salt, a parallel remote execution system
Group:		System/Base
Requires:	%{name}-master = %{EVRD}
Requires:	python3-cherrypy >= 3.2.2

%description api
salt-api provides a REST interface to the Salt master.

%files api
%{_bindir}/salt-api
%{_mandir}/man1/salt-api.1*
%{_unitdir}/salt-api.service

%preun api
%systemd_preun salt-api.service

%post api
%systemd_post salt-api.service

%postun api
%systemd_postun_with_restart salt-api.service

#-------------------------------------------------------------------------

%package cloud
Summary:	Cloud provisioner for Salt, a parallel remote execution system
Group:		System/Base
Requires:	%{name}-master = %{EVRD}
Requires:	python3-apache-libcloud

%description cloud
The salt-cloud tool provisions new cloud VMs, installs salt-minion on them, and
adds them to the master's collection of controllable minions.

%files cloud
%config(noreplace) %{_sysconfdir}/salt/cloud
%{_bindir}/salt-cloud
%{_mandir}/man1/salt-cloud.1*
%{_sysconfdir}/salt/cloud.conf.d
%{_sysconfdir}/salt/cloud.deploy.d
%{_sysconfdir}/salt/cloud.maps.d
%{_sysconfdir}/salt/cloud.profiles.d
%{_sysconfdir}/salt/cloud.providers.d

#-------------------------------------------------------------------------

%package ssh
Summary:	Agentless SSH-based version of Salt, a parallel remote execution system
Group:		System/Base
Requires:	%{name} = %{EVRD}

%description ssh
The salt-ssh tool can run remote execution functions and states without the use
of an agent (salt-minion) service.

%files ssh
%config(noreplace) %{_sysconfdir}/salt/roster
%{_bindir}/salt-ssh
%{_mandir}/man1/salt-ssh.1*

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}


%build
CFLAGS="${CFLAGS:-${RPM_OPT_FLAGS}}" LDFLAGS="${LDFLAGS:-${RPM_LD_FLAGS}}" %{__python3} setup.py %{?py_setup_args} build --executable="%{__python3}" %{?*}
sleep 1

%install
%py3_install

# Add some directories
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/cloud.conf.d
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/cloud.deploy.d
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/cloud.maps.d
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/cloud.profiles.d
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/cloud.providers.d
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/master.d
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/minion.d
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/pki
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/pki/master
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/pki/minion
install -d -m 0755 %{buildroot}%{_sysconfdir}/salt/proxy.d
install -d -m 0755 %{buildroot}%{_var}/cache/salt
install -d -m 0755 %{buildroot}%{_var}/log/salt
touch %{buildroot}%{_var}/log/salt/master
touch %{buildroot}%{_var}/log/salt/minion

# Add the config files
install -p -m 0640 conf/cloud %{buildroot}%{_sysconfdir}/salt/cloud
install -p -m 0640 conf/master %{buildroot}%{_sysconfdir}/salt/master
install -p -m 0640 conf/minion %{buildroot}%{_sysconfdir}/salt/minion
install -p -m 0640 conf/proxy %{buildroot}%{_sysconfdir}/salt/proxy
install -p -m 0640 conf/roster %{buildroot}%{_sysconfdir}/salt/roster

# Add the unit files
mkdir -p %{buildroot}%{_unitdir}
install -p -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
install -p -m 0644 %{SOURCE6} %{buildroot}%{_unitdir}/
install -p -m 0644 %{SOURCE7} %{buildroot}%{_unitdir}/
install -p -m 0644 %{SOURCE8} %{buildroot}%{_unitdir}/
install -p -m 0644 %{SOURCE9} %{buildroot}%{_unitdir}/

# Logrotate
install -p %{SOURCE10} .
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d/
install -p -m 0644 %{SOURCE11} %{buildroot}%{_sysconfdir}/logrotate.d/salt

# Bash completion
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d/
install -p -m 0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/bash_completion.d/salt.bash

# Fish completion (TBD remove -v)
mkdir -p %{buildroot}%{fish_dir}
install -p -m 0644  %{SOURCE13} %{buildroot}%{fish_dir}/salt.fish
install -p -m 0644  %{SOURCE14} %{buildroot}%{fish_dir}/salt_common.fish
install -p -m 0644  %{SOURCE15} %{buildroot}%{fish_dir}/salt-call.fish
install -p -m 0644  %{SOURCE16} %{buildroot}%{fish_dir}/salt-cp.fish
install -p -m 0644  %{SOURCE17} %{buildroot}%{fish_dir}/salt-key.fish
install -p -m 0644  %{SOURCE18} %{buildroot}%{fish_dir}/salt-master.fish
install -p -m 0644  %{SOURCE19} %{buildroot}%{fish_dir}/salt-minion.fish
install -p -m 0644  %{SOURCE20} %{buildroot}%{fish_dir}/salt-run.fish
install -p -m 0644  %{SOURCE21} %{buildroot}%{fish_dir}/salt-syndic.fish

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17128 |21mr|samba-4.19.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Useful commands for testing domain controller/OpenLDAP replacement
# functionality:
#
# Set up initial domain controller:
# samba-tool domain provision --realm=LINDEV.CH --domain=LINDEV --adminpass='PASSWORD' --server-role='domain controller'
# Query:
# ldapsearch -H ldap://127.0.0.1 -x -w 'PASSWORD' -b "DC=lindev,DC=ch" -D "CN=Administrator,CN=Users,DC=lindev,DC=ch"
# With TLS:
# ldapsearch -Z -H ldaps://127.0.0.1:636 -x -w 'PASSWORD' -b "DC=lindev,DC=ch" -D "CN=Administrator,CN=Users,DC=lindev,DC=ch"
#
# To view current parameters, including directories: sbmd -b
#######
# TODO: ctdb (--with-cluster-support)

# Build order of the dependency chain of samba:
# tdb lmdb talloc
# tevent
# ldb
# samba

%define libsmbmajor 0
%define netapimajor 1
%define dcerpcmajor 0
%define hostconfigmajor 0
%define ndrmajor 3
%define krbmajor 0
%define nbtmajor 0
%define standardmajor 0
%define wbclientmajor 0
%define sambautilmajor 0
%define samdbmajor 0
%define policymajor 0
%define passdbmajor 0
%define credentialsmajor 1
%define smbconfmajor 0
%define smbldapmajor 2
%define tevent_utilmajor 0
#%%define pytalloc_utilmajor 2
%define nsswinsmajor 2
%define winbindmajor 2
%define sambaerrorsmajor 1

# Useless check which prints tones of rubbish because of missing RPATHs
# (see comments about RPATHs bellow)
%define dont_check_elf_files 1

# There are many unversioned *.so libraries which are not symlinks
# and are not devel stuff, disable devel-rpm-generator requires completely.
%global __develgen_requires %{nil}

# Default options
# gcc5 seems to build a bit faster than clang6
%bcond_with clang
%bcond_with doc
%bcond_without test
# Bundled avahi config (off by default,
# because GVFS/KIO find Samba shares automatically and make duplicates otherwise)
# We also use --enable-avahi in build options
%bcond_with avahi_service
# switch between system MIT krb5 and built-in Heimdal krb5
%bcond_with mitkrb5

# zerro is a dummy value bellow #
# this package does not contain libraries
%define libs_config %mklibname samba-libs-config 0
# In these packages libraries are private and unversioned
%define libsambalibs %mklibname samba-private
%define winbind_krb5_locator %mklibname winbind-krb5-locator 0
# transitional name (obsoleted by samba-libs)
%define libsambaserver %mklibname samba-server 0

%define libname %mklibname smbclient %{libsmbmajor}
%define devname %mklibname smbclient -d
%define libnetapi %mklibname netapi %{netapimajor}
%define netapidevel %mklibname netapi -d
%define libdcerpc %mklibname dcerpc %{dcerpcmajor}
%define libdcerpc_binding %mklibname dcerpc-binding %{dcerpcmajor}
%define libdcerpc_samr %mklibname dcerpc-samr %{dcerpcmajor}
%define libdcerpc_server %mklibname dcerpc-server %{dcerpcmajor}
%define libdcerpc_servercore %mklibname dcerpc-server-core %{dcerpcmajor}
%define dcerpcdevel %mklibname dcerpc -d
%define libsambahostconfig %mklibname samba-hostconfig %{hostconfigmajor}
%define sambahostconfigdevel %mklibname samba-hostconfig -d
%define libndr %mklibname ndr %{ndrmajor}
%define libndr_krb5pac %mklibname libndr-krb5pac %{krbmajor}
%define libndr_nbt %mklibname libndr-nbt %{nbtmajor}
%define libndr_standard %mklibname libndr-standard %{standardmajor}
%define ndrdevel %mklibname ndr -d
%define libwbclient %mklibname wbclient %{wbclientmajor}
%define wbclientdevel %mklibname wbclient -d
%define libsambautil %mklibname samba-util %{sambautilmajor}
%define sambautildevel %mklibname samba-util -d
%define libpolicy %mklibname samba-policy %{policymajor}
%define libpolicydevel %mklibname samba-policy -d
%define libsamdb %mklibname samdb %{samdbmajor}
%define libsamdbdevel %mklibname samdb -d
%define libsambapassdb %mklibname samba-passdb %{passdbmajor}
%define libcredentials %mklibname samba-credentials %{credentialsmajor}
%define libsmbconf %mklibname smbconf %{smbconfmajor}
%define libsmbldap %mklibname smbldap %{smbldapmajor}
%define libtevent_util %mklibname tevent-util %{tevent_utilmajor}
%define libnsswins %mklibname nsswins %{nsswinsmajor}
%define libwinbind %mklibname winbind %{winbindmajor}
%define libsambaerrors %mklibname samba-errors %{sambaerrorsmajor}

%global smb_usershare_dir %{_localstatedir}/lib/samba/usershare

# Needed because versioned public libraries depend from unversioned private ones
%define samba_soname_changed_meta() %{expand:
Obsoletes: %{1} < %{2}
Conflicts: %{1} < %{2}
}

Summary:	Samba SMB server
Name:		samba
Version:	4.19.5
Release:	4
Epoch:		1
License:	GPLv3+
Group:		System/Servers
Url:		http://www.samba.org
Source0:	http://ftp.samba.org/pub/samba/stable/samba-%{version}.tar.gz
Source1:	samba.log
Source10:	samba-print-pdf.sh
Source28:	samba.pamd
Source29:	system-auth-winbind.pamd
Source41:	openldap-samba.conf
%if %{with avahi_service}
Source42:	avahi_samba.xml
%endif
Source43:	samba-server.sysusers.conf
Source100:	%{name}.rpmlintrc

Patch2:		samba-4.3.11-winbind-service.patch
Patch8:		ROSA-bind-GID.patch
Patch10:	ROSA-vendor-version.patch
Patch11:	ROSA-smb-default-config.patch
Patch12:	ROSA-Clearer-debug-about-ulimits.patch

# https://bugzilla.rosalinux.ru/show_bug.cgi?id=10068
# Rediffed from https://gitlab.com/samba-team/samba/merge_requests/289
Patch14:	0001-samba-tool-dbcheck-Avoid-creating-child-DNs-via-ldb.patch
Patch15:	0002-samba-tool-dbcheck-Avoid-creating-an-RDN-via-ldb.Dn-.patch

%if %{with clang}
BuildRequires:	clang lld
%else
BuildRequires:	gcc
%endif
# Required for ldb docs
BuildRequires:	docbook-style-xsl
#BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-dtd42-xml
BuildRequires:	gnupg
BuildRequires:	perl(Parse::Yapp)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(JSON)
BuildRequires:	perl(JSON::PP)
BuildRequires:	python3-ldb
BuildRequires:	python3-tdb
BuildRequires:	python3-tevent
BuildRequires:	python3-markdown
BuildRequires:	python3egg(dnspython)
BuildRequires:	xsltproc
BuildRequires:	acl-devel
BuildRequires:	cups-devel
BuildRequires:	dbus-devel
BuildRequires:	keyutils-devel
BuildRequires:	libaio-devel
# Samba 3.2 and later should be built with capabilities support:
# http://lists.samba.org/archive/samba/2009-March/146821.html
BuildRequires:	libcap-devel
BuildRequires:	magic-devel
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ctdb) >= 2.0
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(ldb) >= 1.1.29
BuildRequires:	py3ldb-util-devel
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(liburing)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pytalloc-util-devel
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(tdb)
BuildRequires:	pkgconfig(tevent)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(python3)
BuildRequires:	%{_lib}cmocka-devel
BuildRequires:	gpgme-devel
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	icu-devel
BuildRequires:	libtasn1-devel
BuildRequires:	libtasn1-tools
BuildRequires:	pkgconfig(libnsl)
%if %{with mitkrb5}
BuildRequires:	krb5-server
%endif

%description
Samba provides SMB server which can be used to provide network services
to SMB (sometimes called "Lan Manager") clients, including various versions
of MS Windows, OS/2, and other Linux machines. Samba also provides some SMB
clients, which complement the built-in SMB filesystem in Linux. Samba uses
NetBIOS over TCP/IP (NetBT) protocols and does NOT need NetBEUI (Microsoft
Raw NetBIOS frame) protocol.
Samba also features working AD Domain Control capability.

#----------------------------------------------------------------------------
# All packages containing %%{_libdir}/samba/*.so* must manually depend from %%{libs_config}
# To find them:
# rpm -qf /usr/lib64/samba/*.so* /usr/lib64/samba/*/*.so* --qf '%%{NAME}\n' | sort -u

# This package is not a library, but 64 and 32 bit libraries will require
# architecture-specific config, so I'm prefixing the name of this package with lib64/lib via %%mklibname

# Why make a separate package for one config? Because it allows to freely split other
# libraries between packages, not all libraries in /usr/lib64/samba/ are in lib64samba-server0.
# Libraries from /usr/lib64/ and /lib64/ built from samba source package also
# depend from libraries in /usr/lib64/samba/.

# Yes, packaging plain text as 'lib64samba-libs-config0' violates packaging policy...
# What to do? urpmi can't handle bi/multiarch packages with the same name, as far as I understand.
# Leaving ld.so.conf.d/*.conf in e.g. lib64sambaserver0, as it was in samba < 4.9,
# is not a good idea in general.
# We can try enabling RPATH in build options, then all resulting libraries will have hardcoded
# RPATH = %%{_libdir}/samba. We will also need to move libwbclient.so* to %%{_libdir}/samba/
# to fix its issues with RPATH (see Fedora's spec). Not a good idea.

%package -n %{libs_config}
Summary:	ldconfig configuration for Samba libraries
Group:		System/Libraries

%description -n %{libs_config}
ldconfig configuration for Samba libraries

%files -n %{libs_config}
%dir %{_libdir}/samba
%dir %{_libdir}/samba/krb5
%{_sysconfdir}/ld.so.conf.d/samba_%{_arch}.conf
#----------------------------------------------------------------------------

%package server
Summary:	Samba (SMB) server programs
Group:		Networking/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{libsambalibs} = %{EVRD}
# samba-tool is used both for domain provisioning and as a client
Requires:	%{name}-client = %{EVRD}
# AD controller needs winbindd
Requires:	%{name}-winbind = %{EVRD}
# pull deps for python scripts
Requires:	python3-%{name} = %{EVRD}
# distro-type(desktop) is provided by branding-configs
Recommends:	(%{name}-share-role if distro-type(desktop))
Requires(pre):	/bin/systemd-sysusers
# samba.service is domain controller
Provides:	samba = %{EVRD}

%description server
Samba-server provides SMB server which can be used to provide network services
to SMB (sometimes called "Lan Manager") clients, including various versions
of MS Windows, OS/2, and other Linux machines. Samba also provides some SMB
clients, which complement the built-in SMB filesystem in Linux. Samba uses
NetBIOS over TCP/IP (NetBT) protocols and does NOT need NetBEUI (Microsoft
Raw NetBIOS frame) protocol.
Samba also features an AD domain capability.

%files server
%{_bindir}/oLschema2ldif
%{_sbindir}/samba
%{_sbindir}/samba_dnsupdate
%{_sbindir}/samba_downgrade_db
%{_sbindir}/samba_spnupdate
%{_sbindir}/samba_upgradedns
%{_sbindir}/samba-gpupdate
%{_sbindir}/smbd
%{_sbindir}/nmbd
%{_libexecdir}/samba/samba-bgqd
%{_libexecdir}/samba/rpcd_classic
%{_libexecdir}/samba/rpcd_epmapper
%{_libexecdir}/samba/rpcd_fsrvp
%{_libexecdir}/samba/rpcd_lsad
%{_libexecdir}/samba/rpcd_mdssvc
%{_libexecdir}/samba/rpcd_spoolss
%{_libexecdir}/samba/rpcd_winreg
%if %{with mitkrb5}
%{_libdir}/krb5/plugins/kdb/samba.so
%endif
%attr(-,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}-server
%attr(-,root,root) %config(noreplace) %{_sysconfdir}/pam.d/%{name}
%{_mandir}/man?/oLschema2ldif.*
%attr(775,root,adm) %dir %{_localstatedir}/lib/%{name}/netlogon
%attr(755,root,root) %dir %{_localstatedir}/lib/%{name}/profiles
%attr(755,root,root) %dir %{_localstatedir}/lib/%{name}/printers
%attr(2775,root,adm) %dir %{_localstatedir}/lib/%{name}/printers/*
%attr(1777,root,root) %dir /var/spool/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/scripts
%{_datadir}/samba/setup
%dir %{_datadir}/samba/admx
%{_datadir}/samba/admx/samba.admx
%{_datadir}/samba/admx/GNOME_Settings.admx
%dir %{_datadir}/samba/admx/en-US
%dir %{_datadir}/samba/admx/ru-RU
%{_datadir}/samba/admx/en-US/samba.adml
%{_datadir}/samba/admx/en-US/GNOME_Settings.adml
%{_datadir}/samba/admx/ru-RU/GNOME_Settings.adml
%attr(0755,root,root) %{_datadir}/%{name}/scripts/print-pdf
%{_mandir}/man8/samba.8*
%{_mandir}/man8/samba-gpupdate.8*
%{_mandir}/man8/samba_downgrade_db.8*
%{_mandir}/man8/samba-bgqd.8*
%{_unitdir}/samba.service
%{_unitdir}/smb.service
%{_unitdir}/nmb.service
%{_sysusersdir}/samba-server.conf
%attr(1770,root,sambashare) %dir %{smb_usershare_dir}
%config(noreplace) %{_sysconfdir}/sysconfig/samba

%pre server
%sysusers_create_package samba-server %{SOURCE43}

%post server
%systemd_post nmb.service
%systemd_post samba.service
%systemd_post smb.service

if [ $1 -gt 1 ] ; then
	echo "Flushing Samba cache."
	/usr/bin/net cache flush > /dev/null 2>&1 || :
fi

%preun server
%systemd_preun nmb.service
%systemd_preun samba.service
%systemd_preun smb.service

%postun server
# Here it is important to restart services on upgrade because they
# dlopen libs like full_audit.so in runtime. If the library is
# upgraded and the daemon is not restarted, it will try to dlopen
# it some time later and fail some time later after the upgrade.
%systemd_postun_with_restart nmb.service
%systemd_postun_with_restart smb.service
%systemd_postun_with_restart samba.service

#----------------------------------------------------------------------------

%package share-role
Summary:	Allow users from the "wheel" group to manage Samba shares
Group:		System/Configuration/Other
Requires:	libnss-role

%description share-role
Allow users from the "wheel" group to manage Samba shares.
Install this package to automatically add any member of the group "wheel"
to the group "sambashare". It will allow admin users of graphical desktops
to create and manage Samba shares from GUIs like file managers.

%files share-role
%config(noreplace) %{_sysconfdir}/role.d/sambashare.role

#----------------------------------------------------------------------------

%package -n %{libsambalibs}
Summary:	Samba libraries
Group:		System/Libraries
Requires:	%{libs_config}
# samba-common is the package with smb.conf and manuals
# /etc/samba/smb.conf is read by e.g. libsmbclient.so.0
Requires:	%{name}-common = %{EVRD}
# Package was renamed
Obsoletes:	%{_lib}samba-libs0 < 1:4.15
Conflicts:	%{_lib}samba-libs0 < 1:4.15

%description -n %{libsambalibs}
Provides libraries for Samba

%files -n %{libsambalibs}
%{_libdir}/%{name}/vfs/*.so
%{_libdir}/samba/ldb
%{_libdir}/samba/service
%{_libdir}/samba/process_model
%{_libdir}/samba/gensec
#%%{_libdir}/samba/auth
%{_libdir}/samba/libCHARSET3-samba4.so
%{_libdir}/samba/libMESSAGING-SEND-samba4.so
%{_libdir}/samba/libLIBWBCLIENT-OLD-samba4.so
%{_libdir}/samba/libMESSAGING-samba4.so
%{_libdir}/samba/libREG-FULL-samba4.so
%{_libdir}/samba/libRPC-SERVER-LOOP-samba4.so
%{_libdir}/samba/libRPC-WORKER-samba4.so
%{_libdir}/samba/libad-claims-samba4.so
%{_libdir}/samba/libaddns-samba4.so
%{_libdir}/samba/libads-samba4.so
%{_libdir}/samba/libasn1util-samba4.so
%{_libdir}/samba/libauth-samba4.so
%{_libdir}/samba/libauth-unix-token-samba4.so
%{_libdir}/samba/libauth4-samba4.so
%{_libdir}/samba/libauthkrb5-samba4.so
%{_libdir}/samba/libauthn-policy-util-samba4.so
%{_libdir}/samba/libcli-ldap-common-samba4.so
%{_libdir}/samba/libcli-ldap-samba4.so
%{_libdir}/samba/libcli-nbt-samba4.so
%{_libdir}/samba/libcli-cldap-samba4.so
%{_libdir}/samba/libcli-smb-common-samba4.so
%{_libdir}/samba/libcli-spoolss-samba4.so
%{_libdir}/samba/libcliauth-samba4.so
%{_libdir}/samba/libclidns-samba4.so
%{_libdir}/samba/libcluster-samba4.so
%{_libdir}/samba/libcmdline-contexts-samba4.so
%{_libdir}/samba/libcmdline-samba4.so
%{_libdir}/samba/libdcerpc-pkt-auth-samba4.so
%{_libdir}/samba/libgpext-samba4.so
%{_libdir}/samba/libcommon-auth-samba4.so
%{_libdir}/samba/libdb-glue-samba4.so
%{_libdir}/samba/libdbwrap-samba4.so
%{_libdir}/samba/libdcerpc-samba-samba4.so
%{_libdir}/samba/libdcerpc-samba4.so
%{_libdir}/samba/libdfs-server-ad-samba4.so
%{_libdir}/samba/libdlz-bind9-for-torture-samba4.so
%{_libdir}/samba/libdnsserver-common-samba4.so
%{_libdir}/samba/libdsdb-garbage-collect-tombstones-samba4.so
%{_libdir}/samba/libscavenge-dns-records-samba4.so
%{_libdir}/samba/libdsdb-module-samba4.so
%{_libdir}/samba/libevents-samba4.so
%{_libdir}/samba/libflag-mapping-samba4.so
%{_libdir}/samba/libgenrand-samba4.so
%{_libdir}/samba/libgensec-samba4.so
%{_libdir}/samba/libgpo-samba4.so
%{_libdir}/samba/libgse-samba4.so
%{_libdir}/samba/libhttp-samba4.so
%{_libdir}/samba/libidmap-samba4.so
%{_libdir}/samba/libinterfaces-samba4.so
%{_libdir}/samba/libiov-buf-samba4.so
%{_libdir}/samba/libkrb5samba-samba4.so
#%%{_libdir}/samba/libldb-cmdline.so - does not build. removed? not configured? to be investigated.
%{_libdir}/samba/libldbsamba-samba4.so
%{_libdir}/samba/liblibcli-lsa3-samba4.so
%{_libdir}/samba/liblibcli-netlogon3-samba4.so
%{_libdir}/samba/liblibsmb-samba4.so
%{_libdir}/samba/libmessages-dgm-samba4.so
%{_libdir}/samba/libmessages-util-samba4.so
%{_libdir}/samba/libmscat-samba4.so
%{_libdir}/samba/libmsghdr-samba4.so
%{_libdir}/samba/libmsrpc3-samba4.so
%{_libdir}/samba/libndr-samba-samba4.so
%{_libdir}/samba/libndr-samba4.so
%{_libdir}/samba/libnet-keytab-samba4.so
%{_libdir}/samba/libnetif-samba4.so
%{_libdir}/samba/libnpa-tstream-samba4.so
%{_libdir}/samba/libnss-info-samba4.so
%{_libdir}/samba/libpac-samba4.so
%{_libdir}/samba/libposix-eadb-samba4.so
%{_libdir}/samba/libprinter-driver-samba4.so
%{_libdir}/samba/libprinting-migrate-samba4.so
%{_libdir}/samba/libprocess-model-samba4.so
%{_libdir}/samba/libregistry-samba4.so
%{_libdir}/samba/libreplace-samba4.so
%{_libdir}/samba/libsamba-cluster-support-samba4.so
%{_libdir}/samba/libsamba-debug-samba4.so
%{_libdir}/samba/libsamba-modules-samba4.so
%{_libdir}/samba/libsamba-net.cpython*-samba4.so
%{_libdir}/samba/libsamba-python.cpython*-samba4.so
%{_libdir}/samba/libsamba-security-samba4.so
%{_libdir}/samba/libsamba-sockets-samba4.so
%{_libdir}/samba/libsamba3-util-samba4.so
%{_libdir}/samba/libsamdb-common-samba4.so
%{_libdir}/samba/libsecrets3-samba4.so
%{_libdir}/samba/libserver-id-db-samba4.so
%{_libdir}/samba/libserver-role-samba4.so
%{_libdir}/samba/libservice-samba4.so
%{_libdir}/samba/libshares-samba4.so
%{_libdir}/samba/libsmb-transport-samba4.so
%{_libdir}/samba/libsmbclient-raw-samba4.so
%{_libdir}/samba/libsmbd-base-samba4.so
%{_libdir}/samba/libsmbd-shim-samba4.so
%{_libdir}/samba/libsmbldaphelper-samba4.so
%{_libdir}/samba/libsmbpasswdparser-samba4.so
%{_libdir}/samba/libsocket-blocking-samba4.so
%{_libdir}/samba/libstable-sort-samba4.so
%{_libdir}/samba/libsys-rw-samba4.so
%{_libdir}/samba/libtalloc-report-samba4.so
%{_libdir}/samba/libtalloc-report-printf-samba4.so
%{_libdir}/samba/libtdb-wrap-samba4.so
%{_libdir}/samba/libtime-basic-samba4.so
%{_libdir}/samba/libtorture-samba4.so
%{_libdir}/samba/libtrusts-util-samba4.so
%{_libdir}/samba/libutil-reg-samba4.so
%{_libdir}/samba/libutil-setid-samba4.so
%{_libdir}/samba/libutil-tdb-samba4.so
%{_libdir}/samba/libxattr-tdb-samba4.so
%{_libdir}/samba/bind9
%if %{without mitkrb5}
%{_libdir}/samba/libHDB-SAMBA4-samba4.so
%{_libdir}/samba/libasn1-samba4.so
%{_libdir}/samba/libcom-err-samba4.so
%{_libdir}/samba/libgssapi-samba4.so
%{_libdir}/samba/libgss-preauth-samba4.so
%{_libdir}/samba/libhcrypto-samba4.so
%{_libdir}/samba/libhdb-samba4.so
%{_libdir}/samba/libheimbase-samba4.so
%{_libdir}/samba/libheimntlm-samba4.so
%{_libdir}/samba/libhx509-samba4.so
%{_libdir}/samba/libkdc-samba4.so
%{_libdir}/samba/libkrb5-samba4.so
%{_libdir}/samba/libroken-samba4.so
%{_libdir}/samba/libwind-samba4.so
%endif
%dir %{_libdir}/samba/vfs
%{_libdir}/%{name}/nss_info
%{_libdir}/%{name}/idmap

#----------------------------------------------------------------------------

%package client
Summary:	Samba (SMB) client programs
Group:		Networking/Other
Requires:	%{name}-common = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	mount-cifs
# For samba-tool
Requires:	python3-%{name} = %{EVRD}
# samba-tool needs tdbbackup
Requires:	tdb-utils
# samba-tool needs mdb_copy for domain backup or upgrade provision
Requires:	lmdb
# issues with /usr/lib64/cups being a symlink to /usr/lib/cups
OrderWithRequires(pre):	cups
# smbclient is common in other distros
Provides:	smbclient = %{EVRD}

%description client
Samba-client provides some SMB clients, which complement the built-in
SMB filesystem in Linux. These allow the accessing of SMB shares, and
printing to SMB printers.

%files client
%{_bindir}/cifsdd
%{_bindir}/dbwrap_tool
%{_bindir}/dumpmscat
%{_bindir}/mvxattr
%{_bindir}/net
%{_bindir}/nmblookup
%{_bindir}/pdbedit
%{_bindir}/profiles
%{_bindir}/rpcclient
%{_sbindir}/samba_kcc
%{_sbindir}/eventlogadm
%{_bindir}/samba-tool
%{_bindir}/sharesec
%{_bindir}/smbcacls
%{_bindir}/smbclient
%{_bindir}/smbcontrol
%{_bindir}/smbcquotas
%{_bindir}/smbget
%{_bindir}/smbpasswd
%{_bindir}/smbspool
%{_bindir}/smbstatus
%{_bindir}/smbtree
%{_bindir}/samba-regedit
%{_bindir}/smbtar
%{_bindir}/mdsearch
%{_mandir}/man1/dbwrap_tool.1*
%{_mandir}/man1/mdsearch.1*
%{_mandir}/man8/samba-tool.8*
%{_mandir}/man8/samba-regedit.8*
%{_prefix}/lib/cups/backend/smb
# see smbspool_krb5_wrapper(8) why such attributes
%attr(0700,root,root) %{_libexecdir}/samba/smbspool_krb5_wrapper

#----------------------------------------------------------------------------

%package common
Summary:	Files used by both Samba servers and clients
Group:		System/Servers
# rpcclient etc. use samba python modules
Requires:	python3-%{name} = %{EVRD}

%description common
Samba-common provides files necessary for both the server and client
packages of Samba.

%files common
%{_tmpfilesdir}/samba.conf
%dir /var/cache/%{name}
%dir /var/log/%{name}
%dir %{_libexecdir}/samba
%dir %{_datadir}/samba/mdssvc
%dir /var/lib/%{name}/private
%{_bindir}/ntlm_auth
%{_bindir}/testparm
%{_bindir}/regdiff
%{_bindir}/regpatch
%{_bindir}/regshell
%{_bindir}/regtree
%{_bindir}/samba-log-parser
%dir %{_sysconfdir}/%{name}
%attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/smb.conf
%attr(-,root,root) %config(noreplace) %{_sysconfdir}/%{name}/lmhosts
%if %{with avahi_service}
%config %{_sysconfdir}/avahi/services/smb.service
%endif
%dir %{_localstatedir}/lib/%{name}
%attr(-,root,root) %{_localstatedir}/lib/%{name}/codepages
# run by both winbind and smbd
# https://bugzilla.redhat.com/show_bug.cgi?id=2136763
%{_libexecdir}/samba/samba-dcerpcd
%{_mandir}/man1/ntlm_auth.1*
%{_mandir}/man1/regdiff.1*
%{_mandir}/man1/regpatch.1*
%{_mandir}/man1/regshell.1*
%{_mandir}/man1/regtree.1*
%{_mandir}/man1/log2pcap.1*
%{_mandir}/man1/mvxattr.1*
%{_mandir}/man1/nmblookup.1*
%{_mandir}/man1/profiles.1*
%{_mandir}/man1/rpcclient.1*
%{_mandir}/man1/sharesec.1*
%{_mandir}/man1/samba-log-parser.1*
%{_mandir}/man1/smbcacls.1*
%{_mandir}/man1/smbclient.1*
%{_mandir}/man1/smbcontrol.1*
%{_mandir}/man1/smbcquotas.1*
%{_mandir}/man1/smbget.1*
%{_mandir}/man1/smbstatus.1*
%{_mandir}/man1/smbtar.1*
%{_mandir}/man1/smbtree.1*
%{_mandir}/man1/testparm.1*
%{_mandir}/man1/wbinfo.1*
%{_mandir}/man5/lmhosts.5*
%{_mandir}/man5/pam_winbind.conf.5*
%{_mandir}/man5/smb.conf.5*
%{_mandir}/man5/smbpasswd.5*
%{_mandir}/man7/samba.7*
%{_mandir}/man7/traffic_learner.7*
%{_mandir}/man7/traffic_replay.7*
%{_mandir}/man8/cifsdd.8*
%{_mandir}/man8/eventlogadm.8*
%{_mandir}/man8/net.8*
%{_mandir}/man8/nmbd.8*
%{_mandir}/man8/pam_winbind.8*
%{_mandir}/man8/pdbedit.8*
%{_mandir}/man8/samba-dcerpcd.8*
%{_mandir}/man8/smbd.8*
%{_mandir}/man8/smbpasswd.8*
%{_mandir}/man8/smbspool.8*
%{_mandir}/man8/smbspool_krb5_wrapper.8*
%{_mandir}/man8/winbind_krb5_locator.8*
%{_mandir}/man8/vfs_acl_tdb.8*
%{_mandir}/man8/vfs_acl_xattr.8*
%{_mandir}/man8/vfs_aio_fork.8*
%{_mandir}/man8/vfs_aio_pthread.8*
%{_mandir}/man8/vfs_audit.8*
%{_mandir}/man8/vfs_cap.8*
%{_mandir}/man8/vfs_catia.8*
%{_mandir}/man8/vfs_commit.8*
%{_mandir}/man8/vfs_crossrename.8*
%{_mandir}/man8/vfs_default_quota.8*
%{_mandir}/man8/vfs_dirsort.8*
%{_mandir}/man8/vfs_expand_msdfs.8*
%{_mandir}/man8/vfs_extd_audit.8*
%{_mandir}/man8/vfs_fake_perms.8*
%{_mandir}/man8/vfs_fileid.8*
%{_mandir}/man8/vfs_fruit.8*
%{_mandir}/man8/vfs_full_audit.8*
%{_mandir}/man8/vfs_glusterfs_fuse.8*
%{_mandir}/man8/vfs_gpfs.8*
%{_mandir}/man8/vfs_io_uring.8*
%{_mandir}/man8/vfs_media_harmony.8*
#%%{_mandir}/man8/vfs_netatalk.8*
%{_mandir}/man8/vfs_offline.8*
%{_mandir}/man8/vfs_preopen.8*
%{_mandir}/man8/vfs_readahead.8*
%{_mandir}/man8/vfs_readonly.8*
%{_mandir}/man8/vfs_recycle.8*
%{_mandir}/man8/vfs_shadow_copy.8*
%{_mandir}/man8/vfs_shadow_copy2.8*
%{_mandir}/man8/vfs_shell_snap.8*
%{_mandir}/man8/vfs_snapper.8*
%{_mandir}/man8/vfs_streams_depot.8*
%{_mandir}/man8/vfs_streams_xattr.8*
%{_mandir}/man8/vfs_time_audit.8*
%{_mandir}/man8/vfs_xattr_tdb.8*
%{_mandir}/man8/vfs_unityed_media.8*
%{_mandir}/man8/vfs_worm.8*
%{_mandir}/man8/vfs_btrfs.8*
%{_mandir}/man8/vfs_linux_xfs_sgid.8*
%{_mandir}/man8/vfs_syncops.8*
%{_mandir}/man8/vfs_virusfilter.8*
%{_mandir}/man8/vfs_widelinks.8*
%{_datadir}/samba/mdssvc/elasticsearch_mappings.json

%post common
%tmpfiles_create samba.conf
# And this too, in case we don't have smbd to create it for us
[ -f /var/cache/%{name}/unexpected.tdb ] || {
	touch /var/cache/%{name}/unexpected.tdb
}

#----------------------------------------------------------------------------

%if %{with doc}
%package doc
Summary:	Documentation for Samba servers and clients
Group:		Documentation

%description doc
Samba-doc provides documentation files for both the server and client
packages of Samba.

%files doc
%doc README COPYING
%doc WHATSNEW.txt Roadmap
%doc clean-docs/samba-doc/docs/*
%doc clean-docs/samba-doc/examples
%endif

#----------------------------------------------------------------------------

%package -n %{libwinbind}
Summary:	Samba-winbind daemon libraries
Group:		System/Libraries
Provides:	pam_winbind = %{EVRD}
Provides:	nss_winbind = %{EVRD}
Provides:	pam_winbind%{_isa} = %{EVRD}
Provides:	nss_winbind%{_isa} = %{EVRD}

%description -n %{libwinbind}
Provides libraries for winbind daemon and testing tools

%files -n %{libwinbind} -f pam_winbind.lang
%if %{mdvver} >= 202310
%attr(755,root,root) %{_libdir}/security/pam_winbind*
%{_libdir}/libnss_winbind*
%else
%attr(755,root,root) /%{_lib}/security/pam_winbind*
/%{_lib}/libnss_winbind*
%endif

#----------------------------------------------------------------------------

%package winbind
Summary: 	Samba-winbind daemon, utilities and documentation
Group:		System/Servers
Recommends:	%{winbind_krb5_locator}
Requires:	%{libwinbind}
# compat with other distros
Provides:	samba-winbind-clients = %{EVRD}
Provides:	winbind = %{EVRD}

%description winbind
Provides the winbind daemon and testing tools to allow authentication
and group/user enumeration from a Windows or Samba domain controller.

%files winbind
# %%config(noreplace) %%{_sysconfdir}/security/pam_winbind.conf
%{_sbindir}/winbindd
%{_bindir}/wbinfo
%attr(-,root,root) %config(noreplace) %{_sysconfdir}/pam.d/system-auth-winbind*
%{_unitdir}/winbind.service
%{_sysconfdir}/NetworkManager/dispatcher.d/30-winbind
%{_mandir}/man8/winbindd.8*
%{_mandir}/man8/idmap_*.8*
%if %{with mitkrb5}
%{_libdir}/samba/krb5/winbind_krb5_localauth.so
%{_mandir}/man8/winbind_krb5_localauth.8*
%endif

%post winbind
# winbind service must not be auto-enabled e.g. because it will break Samba as a Domain Controller
# https://wiki.samba.org/index.php/Configuring_Winbindd_on_a_Samba_AD_DC#The_winbindd_Service
%systemd_post winbind.service

#----------------------------------------------------------------------------

%package -n %{libnsswins}
Summary:	Name Service Switch service for WINS
Group:		System/Libraries
Provides:	nss_wins = %{EVRD}

%description -n %{libnsswins}
Provides the libnss_wins shared library which resolves NetBIOS names to
IP addresses.

%files -n %{libnsswins}
%if %{mdvver} >= 202310
%{_libdir}/libnss_wins.so*
%else
/%{_lib}/libnss_wins.so*
%endif

%post -n %{libnsswins}
if [ $1 = 1 ]; then
    cp -af %{_sysconfdir}/nsswitch.conf %{_sysconfdir}/nsswitch.conf.rpmsave
    grep '^hosts' %{_sysconfdir}/nsswitch.conf |grep -v 'wins' >/dev/null
    if [ $? = 0 ];then
        echo "Adding a wins entry to the hosts section of %{_sysconfdir}/nsswitch.conf"
        awk '/^hosts/ {print $0 " wins"};!/^hosts/ {print}' %{_sysconfdir}/nsswitch.conf.rpmsave >%{_sysconfdir}/nsswitch.conf;
    else
        echo "wins entry found in %{_sysconfdir}/nsswitch.conf"
    fi
fi

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Samba Python modules
Group:		Development/Python
Requires:	python3-talloc
Requires:	python3-tevent
Requires:	python3-tdb
Requires:	python3-ldb
Requires:	python3egg(dnspython)
# for ms_forest_updates_markdown.py and ms_schema_markdown.py
Requires:	python3egg(markdown)
Requires:	ldb-utils
# old name
Provides:	samba-python3 = %{EVRD}

# A clumzy approach to get rid of LOOPS - provide deps for individual libs _by hand_
Requires:	%{libpolicy} = %{EVRD}

%description -n python3-%{name}
Samba Python modules.

%files -n python3-%{name}
%{python3_sitearch}/samba

#----------------------------------------------------------------------------

%if %{with test}
%package test
Summary:	Debugging and benchmarking tools for samba
Group:		System/Servers
Requires:	%{name}-common = %{EVRD}

%description test
This package provides tools for benchmarking samba, and debugging the correct
operation of tools against smb servers.

%files test
%{_bindir}/locktest
%{_bindir}/masktest
%{_bindir}/gentest
%{_bindir}/ndrdump
%{_bindir}/smbtorture
%{_mandir}/man1/locktest.1*
%{_mandir}/man1/masktest.1*
%{_mandir}/man1/ndrdump.1*
%{_mandir}/man1/gentest.1*
%{_mandir}/man1/smbtorture.1*
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	SMB Client Library
Group:		System/Libraries
Provides:	libsmbclient = %{EVRD}

%description -n %{libname}
This package contains the SMB client library, part of the samba suite of
networking software, allowing other software to access SMB shares.

%files -n %{libname}
%{_libdir}/libsmbclient.so.%{libsmbmajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	SMB Client Library Development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	samba-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for the SMB client library, part
of the samba suite of networking software, allowing the development of other
software to access SMB shares.

%files -n %{devname}
%{_includedir}/samba-4.0/libsmbclient.h
%{_libdir}/libsmbclient.so
%{_mandir}/man7/libsmbclient.7*
%{_libdir}/pkgconfig/smbclient.pc

#----------------------------------------------------------------------------

%package devel
Summary:	Samba 4 development package
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Requires:	%{libsambalibs} = %{EVRD}

%description devel
Samba 4 development libraries.

%files devel
%{_includedir}/samba-4.0/charset.h
%dir %{_includedir}/samba-4.0/core
%{_includedir}/samba-4.0/core/*.h
%{_includedir}/samba-4.0/credentials.h
%{_includedir}/samba-4.0/domain_credentials.h
%dir %{_includedir}/samba-4.0/gen_ndr
%{_includedir}/samba-4.0/gen_ndr/*.h
%{_includedir}/samba-4.0/ndr.h
%{_includedir}/samba-4.0/ndr
%{_includedir}/samba-4.0/param.h
%{_includedir}/samba-4.0/samba/
%{_includedir}/samba-4.0/share.h
%{_includedir}/samba-4.0/tdr.h
%{_includedir}/samba-4.0/tsocket.h
%{_includedir}/samba-4.0/tsocket_internal.h
%{_includedir}/samba-4.0/rpc_common.h
%dir %{_includedir}/samba-4.0/util/
%{_includedir}/samba-4.0/util/*.h
%{_includedir}/samba-4.0/util_ldb.h
%{_includedir}/samba-4.0/ldb_wrap.h
%{_libdir}/libsamba-errors.so
%{_libdir}/libsamba-passdb.so
%{_libdir}/libsmbconf.so
%{_libdir}/libsmbldap.so
%{_libdir}/libtevent-util.so
%{_includedir}/samba-4.0/lookup_sid.h
%{_includedir}/samba-4.0/machine_sid.h
%{_includedir}/samba-4.0/passdb.h
%{_includedir}/samba-4.0/policy.h
%{_includedir}/samba-4.0/smb2_lease_struct.h
%{_includedir}/samba-4.0/smb_ldap.h
%{_includedir}/samba-4.0/smbconf.h
%{_includedir}/samba-4.0/smbldap.h
%{_includedir}/samba-4.0/dcesrv_core.h
%{_libdir}/pkgconfig/samba-credentials.pc

#----------------------------------------------------------------------------

%package pidl
Summary:	Perl IDL compiler for Samba4
Group:		Development/Perl

%description pidl
Perl Interface Description Language compiler for Samba4.

%files pidl
%{_bindir}/pidl
%{perl_vendorlib}/Parse/Pidl*
%{_mandir}/man1/pidl.1.*
%{_mandir}/man3/Parse::Pidl*.3pm.*

#----------------------------------------------------------------------------

%package -n %{libnetapi}
Summary:	Samba library for accessing functions in 'net' binary
Group:		System/Libraries
%samba_soname_changed_meta %{quote:%{mklibname netapi 0}} 1:4.15

%description -n %{libnetapi}
Samba library for accessing functions in 'net' binary.

%files -n %{libnetapi}
%{_libdir}/libnetapi.so.%{netapimajor}*

#----------------------------------------------------------------------------

%package -n %{netapidevel}
Summary:	Samba library for accessing functions in 'net' binary
Group:		Development/C
Requires:	%{libnetapi} = %{EVRD}
Requires:	samba-devel = %{EVRD}
Provides:	netapi-devel = %{EVRD}

%description -n %{netapidevel}
Samba library for accessing functions in 'net' binary.

%files -n %{netapidevel}
%{_libdir}/libnetapi*.so
%{_includedir}/samba-4.0/netapi.h
%{_libdir}/pkgconfig/netapi.pc

#----------------------------------------------------------------------------

%package -n %{libdcerpc}
Summary:	Library implementing DCE/RPC for Samba4
Group:		System/Libraries

%description -n %{libdcerpc}
Library implementing DCE/RPC for Samba4 (libdcerpc)

%files -n %{libdcerpc}
%{_libdir}/libdcerpc.so.%{dcerpcmajor}*

#----------------------------------------------------------------------------

%package -n %{libdcerpc_binding}
Summary:	Library implementing DCE/RPC for Samba4
Group:		System/Libraries
# splitted from %%libdcerpc
Conflicts:	%{libdcerpc} < 1:4.17

%description -n %{libdcerpc_binding}
Library implementing DCE/RPC for Samba4 (libdcerpc-binding)

%files -n %{libdcerpc_binding}
%{_libdir}/libdcerpc-binding.so.%{dcerpcmajor}*

#----------------------------------------------------------------------------

%package -n %{libdcerpc_samr}
Summary:	Library implementing DCE/RPC for Samba4
Group:		System/Libraries
# splitted from %%libdcerpc
Conflicts:	%{libdcerpc} < 1:4.17

%description -n %{libdcerpc_samr}
Library implementing DCE/RPC for Samba4 (libdcerpc-samr)

%files -n %{libdcerpc_samr}
%{_libdir}/libdcerpc-samr.so.%{dcerpcmajor}*

#----------------------------------------------------------------------------

%package -n %{libdcerpc_server}
Summary:	Library implementing DCE/RPC for Samba4
Group:		System/Libraries
# splitted from %%libdcerpc
Conflicts:	%{libdcerpc} < 1:4.17

%description -n %{libdcerpc_server}
Library implementing DCE/RPC for Samba4 (libdcerpc-server)

%files -n %{libdcerpc_server}
%{_libdir}/libdcerpc-server.so.%{dcerpcmajor}*

#----------------------------------------------------------------------------

%package -n %{libdcerpc_servercore}
Summary:	Library implementing DCE/RPC for Samba4
Group:		System/Libraries
# splitted from %%libdcerpc
Conflicts:	%{libdcerpc} < 1:4.17

%description -n %{libdcerpc_servercore}
Library implementing DCE/RPC for Samba4 (libdcerpc-server-core)

%files -n %{libdcerpc_servercore}
%{_libdir}/libdcerpc-server-core.so.%{dcerpcmajor}*

#----------------------------------------------------------------------------

%package -n %{dcerpcdevel}
Summary:	Library implementing Samba's memory allocator
Group:		Development/C
Requires:	%{libdcerpc} = %{EVRD}
Requires:	samba-devel = %{EVRD}
Provides:	dcerpc-devel = %{EVRD}

%description -n %{dcerpcdevel}
Library implementing Samba's memory allocator.

%files -n %{dcerpcdevel}
%{_libdir}/pkgconfig/dcerpc*.pc
%{_includedir}/samba-4.0/dcerpc*.h
%{_libdir}/libdcerpc.so
%{_libdir}/libdcerpc-samr.so
%{_libdir}/libdcerpc-binding.so
%{_libdir}/libdcerpc-server.so
%{_libdir}/libdcerpc-server-core.so

#----------------------------------------------------------------------------

%package -n %{libndr}
Summary:	Network Data Representation library (libndr) from Samba
Group:		System/Libraries
%samba_soname_changed_meta %{quote:%{mklibname ndr 1}} 1:4.15
%samba_soname_changed_meta %{quote:%{mklibname ndr 2}} 1:4.15

%description -n %{libndr}
Network Data Representation library from Samba4.

%files -n %{libndr}
%{_libdir}/libndr.so.%{ndrmajor}*

#----------------------------------------------------------------------------

%package -n %{libndr_krb5pac}
Summary:	Network Data Representation library (libndr-krb5pac) from Samba
Group:		System/Libraries
Conflicts:	%{_lib}ndr1 < 1:4.17
Conflicts:	%{_lib}ndr2 < 1:4.17

%description -n %{libndr_krb5pac}
Network Data Representation (libndr-krb5pac) library from Samba

%files -n %{libndr_krb5pac}
%{_libdir}/libndr-krb5pac.so.%{krbmajor}*

#----------------------------------------------------------------------------

%package -n %{libndr_nbt}
Summary:	Network Data Representation library (libndr-nbt) from Samba
Group:		System/Libraries
Conflicts:	%{_lib}ndr1 < 1:4.17
Conflicts:	%{_lib}ndr2 < 1:4.17

%description -n %{libndr_nbt}
Network Data Representation (libndr-nbt) library from Samba

%files -n %{libndr_nbt}
%{_libdir}/libndr-nbt.so.%{nbtmajor}*

#----------------------------------------------------------------------------

%package -n %{libndr_standard}
Summary:	Network Data Representation library (libndr-standard) from Samba
Group:		System/Libraries
Conflicts:	%{_lib}ndr1 < 1:4.17
Conflicts:	%{_lib}ndr2 < 1:4.17

%description -n %{libndr_standard}
Network Data Representation (libndr-standard) library from Samba

%files -n %{libndr_standard}
%{_libdir}/libndr-standard.so.%{standardmajor}*

#----------------------------------------------------------------------------

%package -n %{ndrdevel}
Summary:	Development files for Network Data Representation library from Samba4
Group:		Development/C
Requires:	%{libndr} = %{EVRD}
Requires:	%{libndr_krb5pac} = %{EVRD}
Requires:	%{libndr_nbt} = %{EVRD}
Requires:	%{libndr_standard} = %{EVRD}
Requires:	samba-devel = %{EVRD}
Provides:	ndr-devel = %{EVRD}

%description -n %{ndrdevel}
Development files for Network Data Representation library from Samba4.

%files -n %{ndrdevel}
%{_libdir}/pkgconfig/ndr*.pc
%{_libdir}/libndr*.so

#----------------------------------------------------------------------------

%package -n %{libsambahostconfig}
Summary:	Samba4's host configuration library
Group:		System/Libraries

%description -n %{libsambahostconfig}
Samba4's host configuration library.

%files -n %{libsambahostconfig}
%{_libdir}/libsamba-hostconfig.so.%{hostconfigmajor}*

#----------------------------------------------------------------------------

%package -n %{sambahostconfigdevel}
Summary:	Samba4's host configuration library
Group:		Development/C
Requires:	%{libsambahostconfig} = %{EVRD}
Requires:	samba-devel = %{EVRD}
Provides:	samba-hostconfig-devel = %{EVRD}

%description -n %{sambahostconfigdevel}
Samba4's host configuration library.

%files -n %{sambahostconfigdevel}
%{_libdir}/libsamba-hostconfig.so
%{_libdir}/pkgconfig/samba-hostconfig.pc

#----------------------------------------------------------------------------

%package -n %{libwbclient}
Summary:	Library providing access to winbindd
Group:		System/Libraries

%description -n %{libwbclient}
Library providing access to winbindd.

%files -n %{libwbclient}
%{_libdir}/libwbclient.so.%{wbclientmajor}*

#----------------------------------------------------------------------------

%package -n %{wbclientdevel}
Summary:	Library providing access to winbindd
Group:		Development/C
Requires:	%{libwbclient} = %{EVRD}
Requires:	samba-devel = %{EVRD}
Provides:	wbclient-devel = %{EVRD}

%description -n %{wbclientdevel}
Library providing access to winbindd.

%files -n %{wbclientdevel}
%{_libdir}/libwbclient.so
%{_includedir}/samba-4.0/wbclient.h
%{_libdir}/pkgconfig/wbclient.pc

#----------------------------------------------------------------------------

%package -n %{libsambautil}
Summary:	Samba4 utility library
Group:		System/Libraries

%description -n %{libsambautil}
Samba4 utility library.

%files -n %{libsambautil}
%{_libdir}/libsamba-util.so.%{sambautilmajor}*

#----------------------------------------------------------------------------

%package -n %{sambautildevel}
Summary:	Development files for Samba4 utility library
Group:		Development/C
Requires:	%{libsambautil} = %{EVRD}
Requires:	samba-devel = %{EVRD}
Provides:	samba-util-devel = %{EVRD}

%description -n %{sambautildevel}
Development files for Samba4 utility library.

%files -n %{sambautildevel}
%{_libdir}/libsamba-util.so
%{_libdir}/pkgconfig/samba-util.pc

#----------------------------------------------------------------------------

%package -n %{libpolicy}
Summary:	Samba4 policy library
Group:		System/Libraries

%description -n %{libpolicy}
Samba4 policy library.

%files -n %{libpolicy}
%{_libdir}/libsamba-policy.cpython-*.so.%{policymajor}*

#----------------------------------------------------------------------------

%package -n %{libpolicydevel}
Summary:	Development files for Samba4 policy library
Group:		Development/C
Requires:	%{libpolicy} = %{EVRD}
Requires:	samba-devel = %{EVRD}
Provides:	policy-devel = %{EVRD}

%description -n %{libpolicydevel}
Development files for Samba4 policy library.

%files -n %{libpolicydevel}
%{_libdir}/libsamba-policy.cpython*.so
%{_libdir}/pkgconfig/samba-policy.cpython*.pc

#----------------------------------------------------------------------------

%package -n %{libsamdb}
Summary:	Samba4 samdb library
Group:		System/Libraries

%description -n %{libsamdb}
Samba4 samdb library.

%files -n %{libsamdb}
%{_libdir}/libsamdb.so.%{samdbmajor}*

#----------------------------------------------------------------------------

%package -n %{libsamdbdevel}
Summary:	Development files for Samba4 samdb library
Group:		Development/C
Requires:	%{libsamdb} = %{EVRD}
Requires:	samba-devel = %{EVRD}
Provides:	samdb-devel = %{EVRD}

%description -n %{libsamdbdevel}
Development files for Samba4 samdb library.

%files -n %{libsamdbdevel}
%{_libdir}/libsamdb.so
%{_libdir}/pkgconfig/samdb.pc

#----------------------------------------------------------------------------

%package -n %{libsambapassdb}
Summary:	Library for working with the Samba user database
Group:		System/Libraries

%description -n %{libsambapassdb}
Library for working with the Samba user database.

%files -n %{libsambapassdb}
%{_libdir}/libsamba-passdb.so.%{passdbmajor}*

#----------------------------------------------------------------------------

%package -n %{libcredentials}
Summary:	Library for working with Samba credentials
Group:		System/Libraries
%samba_soname_changed_meta %{quote:%{mklibname samba-credentials 0}} 1:4.15

%description -n %{libcredentials}
Library for working with Samba credentials.

%files -n %{libcredentials}
%{_libdir}/libsamba-credentials.so.%{credentialsmajor}*

#----------------------------------------------------------------------------

%package -n %{libsmbconf}
Summary:	Library for working with Samba config files
Group:		System/Libraries

%description -n %{libsmbconf}
Library for working with Samba config files.

%files -n %{libsmbconf}
%{_libdir}/libsmbconf.so.%{smbconfmajor}*

#----------------------------------------------------------------------------

%package -n %{libsmbldap}
Summary:	Samba LDAP library
Group:		System/Libraries

%description -n %{libsmbldap}
Samba LDAP library.

%files -n %{libsmbldap}
%{_libdir}/libsmbldap.so.%{smbldapmajor}*

#----------------------------------------------------------------------------

%package -n %{libtevent_util}
Summary:	Utility library for working with the Tevent library
Group:		System/Libraries

%description -n %{libtevent_util}
Utility library for working with the Tevent library.

%files -n %{libtevent_util}
%{_libdir}/libtevent-util.so.%{tevent_utilmajor}*

#----------------------------------------------------------------------------

%package -n %{libsambaerrors}
Summary:	Samba errors library
Group:		System/Libraries

%description -n %{libsambaerrors}
Samba errors library.

%files -n %{libsambaerrors}
%{_libdir}/libsamba-errors.so.%{sambaerrorsmajor}*

#----------------------------------------------------------------------------

%package -n openldap-schemas-%{name}
Summary:	OpenLDAP schema files from Samba source tree
Group:		Databases
BuildArch:	noarch

%description -n openldap-schemas-%{name}
OpenLDAP schema files from Samba source tree

%files -n openldap-schemas-%{name}
%config(noreplace) %{_sysconfdir}/openldap/schema/*
%attr(750,ldap,ldap) %config(noreplace) %{_sysconfdir}/openldap/slapd.d/%{name}.conf

#----------------------------------------------------------------------------
# From Fedora

%package -n %{winbind_krb5_locator}
Summary: Samba winbind krb5 locator
Requires: %{libwbclient} = %{EVRD}
Requires: samba-winbind = %{EVRD}

# Handle winbind_krb5_locator.so as alternatives to allow
# IPA AD trusts case where it should not be used by libkrb5
# The plugin will be diverted to /dev/null by the FreeIPA
# freeipa-server-trust-ad subpackage due to higher priority
# and restored to the proper one on uninstall
Requires(post): update-alternatives
Requires(postun): update-alternatives
Requires(preun): update-alternatives

%description -n %{winbind_krb5_locator}
The winbind krb5 locator is a plugin for the system kerberos library to allow
the local kerberos library to use the same KDC as samba and winbind use

%files -n %{winbind_krb5_locator}
%ghost %{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so
%{_libdir}/samba/krb5/winbind_krb5_locator.so
%{_libdir}/samba/krb5/async_dns_krb5_locator.so
# Fedora ships mans in the same package with libraries
# We can't do that to allow coexisting of 32 and 64 bit libraries in one system
# So we ship it in samba-common
#%%{_mandir}/man8/winbind_krb5_locator.8*

%postun -n %{winbind_krb5_locator}
if [ "$1" -ge "1" ]; then
	if [ "`readlink %{_sysconfdir}/alternatives/winbind_krb5_locator.so`" == "%{_libdir}/samba/krb5/winbind_krb5_locator.so" ]; then
		%{_sbindir}/update-alternatives --set winbind_krb5_locator.so %{_libdir}/samba/krb5/winbind_krb5_locator.so
	fi
fi

%post -n %{winbind_krb5_locator}
%{_sbindir}/update-alternatives --install %{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so \
	winbind_krb5_locator.so %{_libdir}/samba/krb5/winbind_krb5_locator.so 10

%preun -n %{winbind_krb5_locator}
if [ $1 -eq 0 ]; then
	%{_sbindir}/update-alternatives --remove winbind_krb5_locator.so %{_libdir}/samba/krb5/winbind_krb5_locator.so
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1
grep -q '@ROSA_VENDOR_PATCH@' VERSION # validate
# SAMBA_VERSION_VENDOR_PATCH is a floating constant
sed -e 's/@ROSA_VENDOR_PATCH@/%{release}/g' -i VERSION

%build

%if %{with clang}
%clang_gcc_wrapper
%endif

%serverbuild

./configure \
	--enable-fhs \
	--with-modulesdir=%{_libdir}/samba \
	--localstatedir=%{_localstatedir} \
	--libexecdir=%{_libexecdir} \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--sysconfdir=%{_sysconfdir} \
	--datadir=%{_datadir} \
	--with-piddir=%{_rundir}/samba \
	--with-lockdir=%{_rundir}/samba \
	--with-sockets-dir=%{_rundir}/samba \
	--with-statedir=%{_var}/lib/samba \
	--with-cachedir=%{_var}/cache/samba \
	--bundled-libraries=heimdal,!zlib,!popt,!talloc,!talloc-util,!tevent,!tdb,!ldb \
	--enable-cups \
	--enable-avahi \
	--with-pam \
	--with-smb1-server \
	--with-winbind \
	--with-ads \
	--with-ldap \
%if %{with mitkrb5}
	--with-system-mitkrb5 \
	--with-experimental-mit-ad-dc \
%endif
	--disable-rpath \
	--disable-rpath-install \
	--disable-rpath-private-install \
	--enable-pthreadpool \
	--with-iconv \
	--with-acl-support \
	--with-automount \
	--with-systemd \
	--with-systemddir=%{_unitdir} \
	--systemd-install-services \
	--

%make

( cd pidl
perl Makefile.PL PREFIX=%{_prefix}
%make
)

%install
# yes, we need -jN here, compilation is done (why?)
%makeinstall_std %{?_smp_mflags}

# no external consumers, no need in devel package
unlink %{buildroot}%{_libdir}/libsamba-credentials.so

#Even though we tell waf above where to put perl it gets it wrong
#mkdir -p %{buildroot}/%{perl_vendorlib}
#mv %{buildroot}%_datadir/perl5/* %{buildroot}/%{perl_vendorlib}

#need to stay
mkdir -p %{buildroot}/{sbin,bin}
mkdir -p %{buildroot}%{_sysconfdir}/{logrotate.d,pam.d,xinetd.d}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}/var/cache/%{name}
mkdir -p %{buildroot}/var/log/%{name}
mkdir -p %{buildroot}/var%{_rundir}/%{name}
mkdir -p %{buildroot}/var/spool/%{name}
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/private
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/{netlogon,profiles,printers}
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/printers/{W32X86,WIN40,W32ALPHA,W32MIPS,W32PPC}
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}/codepages/src
mkdir -p %{buildroot}%{smb_usershare_dir}
mkdir -p %{buildroot}%{_libdir}/pkgconfig
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libdir}/%{name}/vfs
mkdir -p %{buildroot}%{_datadir}/%{name}/scripts

# Fix some paths so provision works:
perl -pi -e 's,default_ldb_modules_dir = None,default_ldb_modules_dir = \"%{_libdir}/%{name}/ldb\",g' %{buildroot}/%{python3_sitearch}/samba/__init__.py
#perl -pi -e 's,share/samba/setup,share/%{name}/setup,g' %{buildroot}/%{python3_sitearch}/samba/provision.py

# Install other stuff

install -m644 %{SOURCE28} %{buildroot}/%{_sysconfdir}/pam.d/%{name}
install -m644 %{SOURCE29} %{buildroot}/%{_sysconfdir}/pam.d/system-auth-winbind
#
install -m644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/logrotate.d/%{name}-server

# install pam_winbind.conf sample file
mkdir -p %{buildroot}%{_sysconfdir}/security

# Install patched default config
install -m0644 examples/smb.conf.default %{buildroot}/%{_sysconfdir}/%{name}/smb.conf
sed -i -e 's,@ROSA_PLATFORM@,%{rosa_release},g' %{buildroot}/%{_sysconfdir}/%{name}/smb.conf
sed -i -e 's,@smb_usershare_dir@,%{smb_usershare_dir},g' %{buildroot}/%{_sysconfdir}/%{name}/smb.conf

echo 127.0.0.1 localhost > %{buildroot}/%{_sysconfdir}/%{name}/lmhosts

install -c -m 755 %{SOURCE10} %{buildroot}%{_datadir}/%{name}/scripts/print-pdf

rm -f %{buildroot}/%{_mandir}/man1/testprns*

mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
cat >%{buildroot}%{_sysconfdir}/ld.so.conf.d/samba_%{_arch}.conf <<EOF
%{_libdir}/samba
EOF

mkdir -p %{buildroot}%{_unitdir} %{buildroot}%{_sysconfdir}/sysconfig

install -m644 packaging/systemd/samba.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/samba

# NetworkManager online/offline script
install -d -m 0755 %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/
install -m 0755 packaging/NetworkManager/30-winbind-systemd %{buildroot}%{_sysconfdir}/NetworkManager/dispatcher.d/30-winbind

# winbind krb5 plugins
install -d -m 0755 %{buildroot}%{_libdir}/krb5/plugins/libkrb5
touch %{buildroot}%{_libdir}/krb5/plugins/libkrb5/winbind_krb5_locator.so

sed -i "s|/usr/bin/kill|$(which kill)|g" %{buildroot}%{_unitdir}/*.service

# create %{_rundir}/samba too.
mkdir -p %{buildroot}%{_tmpfilesdir}/
echo "d %{_rundir}/samba 755 root root" >> %{buildroot}%{_tmpfilesdir}/samba.conf

# Prepare schema files to be included into OpenLDAP configuration
mkdir	-p %{buildroot}%{_sysconfdir}/openldap/{schema,slapd.d}
install -m 0644 examples/LDAP/samba.schema %{buildroot}%{_sysconfdir}/openldap/schema/
install -m 0644 examples/LDAP/samba.ldif %{buildroot}%{_sysconfdir}/openldap/schema/
install -m 0644 examples/LDAP/README %{buildroot}%{_sysconfdir}/openldap/schema/README.samba
install -m 0640 %{SOURCE41} %{buildroot}%{_sysconfdir}/openldap/slapd.d/%{name}.conf

# From Fedora
( cd pidl
make DESTDIR=%{buildroot} install_vendor
rm -f %{buildroot}%{perl_archlib}/perllocal.pod
rm -f %{buildroot}%{perl_archlib}/vendor_perl/auto/Parse/Pidl/.packlist
# Already packaged by perl Parse:Yapp
rm -rf %{buildroot}%{perl_vendorlib}/Parse/Yapp
)

# Make managing Samba shares from GUIs (e.g. Dolphin, Thunar) work out of the box where needed
mkdir -p %{buildroot}%{_sysconfdir}/role.d
echo "wheel: sambashare" > %{buildroot}%{_sysconfdir}/role.d/sambashare.role

mkdir -p %{buildroot}%{_sysusersdir}
cat %{SOURCE43} > %{buildroot}%{_sysusersdir}/samba-server.conf

%if %{with avahi_service}
mkdir -p %{buildroot}%{_sysconfdir}/avahi/services/
install -m 0644 %{SOURCE42} %{buildroot}%{_sysconfdir}/avahi/services/smb.service
sed -i -e 's,@SAMBA_VERSION@,%{version},g' -e 's,@ROSA_VERSION@,%{rosa_release},g' \
	%{buildroot}%{_sysconfdir}/avahi/services/smb.service
%endif

# Manually build localizations of pam_winbind
# https://bugzilla.samba.org/show_bug.cgi?id=14491
( cd source3/locale/pam_winbind
  for i in *.po
  do
    # ru.po -> ru
    lang="$(echo "$i" | awk -F '.' '{print $1}')"
    mkdir -p %{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/
    msgfmt --output-file=%{buildroot}%{_datadir}/locale/${lang}/LC_MESSAGES/pam_winbind.mo ${i}
  done
)
%find_lang pam_winbind

# We upstreamized patches to samba to make smbspool_krb5_wrapper work both with and without krb5 auth
mkdir -p %{buildroot}%{_prefix}/lib/cups/backend
ln -sf ../../../libexec/samba/smbspool_krb5_wrapper %{buildroot}%{_prefix}/lib/cups/backend/smb
test -e "$(realpath %{buildroot}%{_prefix}/lib/cups/backend/smb)"

%if %{mdvver} < 202310
mkdir -p %{buildroot}/%{_lib}/security/
mv -v %{buildroot}%{_libdir}/security/*.so* %{buildroot}/%{_lib}/security/
mv %{buildroot}%{_libdir}/libnss* %{buildroot}/%{_lib}/
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17129 |21mr|samba-mounter-0.1-0.20210613.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20210613

Summary:	Plasma 5 network samba drives
Name:		samba-mounter
Version:	0.1
Release:	0.%{git}.2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	%{name}-%{git}.tar.bz2
Patch0:		samba-mounter-20210613-ru.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5auth-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5solid-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Plasma 5 network samba drives.

%files -f kcm_sambamounter.lang
%{_kde5_applicationsdir}/sambamounter.desktop
%{_kde5_applicationsdir}/sambamounterapp.desktop
%{_kde5_bindir}/samba-onstart
%{_kde5_bindir}/samba-realmounter
%{_kde5_bindir}/samba-realumounter
%{_kde5_libexecdir}/kauth/samba_helper
%{_kde5_services}/sambamount.desktop
%{_kde5_sysconfdir}/xdg/autostart/sambamounter.desktop
%{_datadir}/polkit-1/actions/org.kde.sambamounter.policy
%{_datadir}/dbus-1/system-services/org.kde.sambamounter.service
%{_datadir}/dbus-1/system.d/org.kde.sambamounter.conf
%{_qt5_plugindir}/kcm_sambamount.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{git}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_sambamounter

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17130 |21mr|sane-1.2.1-1.git32f335.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without git

%if %{with git}
%define commit 32f335d0f1bb9f4fa25fdab722d0201043614df3
%define commit_short %(echo %{commit} | head -c6)
%define tardir backends-%{commit}
%else
%define tardir sane-backends-%{version}
%endif

%define iscanversion 2.30.4

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} %{major} -d

%bcond_without gphoto2
%ifarch %{armx} %{e2k} %{riscv}
%bcond_with primax
%else
%bcond_without primax
%endif
%bcond_without v4l
%bcond_without epkowa

# All sane backends have SONAME libsane.so.1. We do not want
# sane-backends-iscan to provide libsane.so.1, so filter these out.
%global __provides_exclude_from %{_libdir}/sane

%define __libtoolize /bin/true

# Setting this makes the /etc/sane.d/dll.conf empty so that scanning apps
# do not search for all existing scanner models which makes their startup
# slow (the user or "scannerdrake" has to insert the names of the really
# installed scanners then)
%bcond_with empty_dll_conf

Summary:	SANE - local and remote scanner access
Name:		sane
Version:	1.2.1
%if %{without git}
Release:	3
%else
Release:	1.git%{commit_short}.3
%endif
# lib/ is LGPLv2+, backends are GPLv2+ with exceptions
# Tools are GPLv2+, docs are public domain
License:	GPLv2+ and GPLv2+ with exceptions and Public Domain
Group:		Graphics
Url:		http://www.sane-project.org/
%if %{with git}
Source0:	https://gitlab.com/sane-project/backends/-/archive/%{commit}/%{name}-%{commit}.tar.gz
%else
Source0:	https://gitlab.com/sane-project/backends/uploads/7d30fab4e115029d91027b6a58d64b43/sane-backends-%{version}.tar.gz
%endif
Source3:	http://downloads.sourceforge.net/project/px-backend/primaxscan-source/1.1.beta1/primaxscan-1.1.beta1.tar.gz
Source9:	http://downloads.sourceforge.net/project/hp44x0backend/hp44x0backend/sane_hp_rts88xx-0.18/sane_hp_rts88xx-0.18.tar.gz
Source10:	http://downloads.sourceforge.net/project/brother-mfc/brother-mfc/sane-driver/sane-driver-0.2.tar.gz
Source11:	http://www.geocities.com/trsh0101/SANE/primascan.h
Source12:	http://www.geocities.com/trsh0101/SANE/primascan.c
# The free part of Epson's scanner driver package IScan, full package
# downloaded from http://www.avasys.jp/english/linux_e/index.html
# Non-free part stripped out with
# mkdir x; cd x; tar -xvzf ../iscan_2.21.0-6.tar.gz; rm -f */non-free/EAPL*.txt */non-free/lib*.so; tar -cvjf ../iscan_2.21.0-6-free.tar.bz2 *; cd ..; rm -rf x
Source13:	http://support.epson.net/linux/src/scanner/iscan/iscan_%{iscanversion}-2.tar.gz
Source14:	http://downloads.sourceforge.net/project/geniusvp2/sane-backend-geniusvp2/1.0.16.1/sane-backend-geniusvp2_1.0.16.1.tar.gz
Source15:	sane.rpmlintrc
Source20:	saned.service
Source21:	saned.socket
Patch0:		sane-backends-1.0.18-plustek-s12.patch
# (fc) 1.0.19-12mdv fix group for device
Patch1:		sane-backends-1.0.20-group.patch
# (fc) list Brother MFC-260C, DCP130C as supported (Mdv bug # 52951)
Patch2:		sane-backends-1.0.22-brother2list.patch
Patch3:		sane-backends-1.0.20-strformat.patch

# add back SANE_CAP_ALWAYS_SETTABLE which was mistakenly
# removed from SANE 1.0.20
Patch11:	06_cap_always_settable.dpatch

# Fedora patches
Patch20:	sane-backends-1.0.20-open-macro.patch
Patch21:	sane-backends-1.0.23-udev.patch

Patch30:	iscan-2.29.3-fix-link.patch
Patch31:	iscan-2.20.1-no_non-free_please.diff
Patch32:	iscan-2.28.1-linkage_fix.patch
Patch33:	iscan-2.30.4-c99.patch
Patch34:	iscan-2.30.3.1-fix-x86-unknown-types.patch

Patch50:	sane-1.0.24-primaxscan-gcc5.patch

Patch1000:	xerox_workcentre_3220_support.patch

BuildRequires:	autoconf-archive
BuildRequires:	gettext
BuildRequires:	gettext-devel
BuildRequires:	ieee1284-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
%if %{with gphoto2}
BuildRequires:	pkgconfig(libgphoto2)
%endif
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libusb-1.0)
%if %{with v4l}
BuildRequires:	pkgconfig(libv4l1)
%endif
# ensure resmgr is not pulled
BuildConflicts:	resmgr-devel

%description
SANE (Scanner Access Now Easy) is a sane and simple interface
to both local and networked scanners and other image acquisition devices
like digital still and video cameras.  SANE currently includes modules for
accessing a range of scanners, including models from Agfa SnapScan, Apple,
Artec, Canon, CoolScan, Epson, HP, Microtek, Mustek, Nikon, Siemens,
Tamarack, UMAX, Connectix, QuickCams and other SANE devices via network.

For the latest information on SANE, the SANE standard definition, and
mailing list access, see http://www.mostang.com/sane/

This package does not enable network scanning by default; if you wish
to enable it, install the saned package.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for SANE
License:	LGPLv2.1+
Group:		System/Libraries

%description -n %{libname}
This package contains the shared libraries for %{name}.

%files -n %{libname}
%{_libdir}/libsane.so.%{major}*
%dir %{_libdir}/sane
%{_libdir}/sane/*.so.%{major}*
%if %{with epkowa}
%exclude %{_libdir}/sane/libsane-epkowa.so.%{major}*
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for SANE
License:	LGPLv2.1+
Group: 		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	sane-devel = %{EVRD}

%description -n %{devname}
This package contains the headers and development libraries necessary
to develop applications using SANE.

%files -n %{devname}
%{_bindir}/sane-config
%{_libdir}/libsane.so
%{_libdir}/sane/*.so
%{_includedir}/sane
%{_libdir}/pkgconfig/sane-backends.pc
%if %{with epkowa}
%exclude %{_libdir}/sane/libsane-epkowa.so
%endif

#----------------------------------------------------------------------------

%package backends
Summary:	SANE - local and remote scanner access
License:	LGPLv2.1+
Group:		System/Kernel and hardware
Provides:	%{name} = %{EVRD}
%if %{with epkowa}
Recommends:	iscan
%endif
Recommends:	sane-firmware
Requires(pre,postun):	rpm-helper

%description backends
This package contains the backends for different scanners.

%files backends -f sane-backends.lang
%doc %{_docdir}/sane-backends-%{version}
%{_bindir}/sane-find-scanner
%{_bindir}/scanimage
%{_bindir}/gamma4scanimage
%if %{with primax}
%{_bindir}/primax_scan
%endif
%{_bindir}/umax_pp
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man7/*
%dir %{_sysconfdir}/sane.d
%config(noreplace) %{_sysconfdir}/sane.d/*
%{_udevrulesdir}/*-libsane.rules
%attr(1777,root,root) %dir /var/lib/lock/sane
%if %{with epkowa}
# iscan files
%exclude %{_sysconfdir}/sane.d/epkowa.conf
%exclude %{_mandir}/man5/sane-epkowa.5*
%endif

%pre backends
%_pre_groupadd scanner

%postun backends
%_postun_groupdel scanner

#----------------------------------------------------------------------------

%if %{with epkowa}
%package backends-iscan
Summary:	SANE - local and remote scanner access
License:	LGPLv2.1+
Group:		System/Kernel and hardware
Provides:	iscan = %{iscanversion}

%description backends-iscan
This package contains the iscan backend, in order to not conflict with
manufacturer-supplied packages.

%files backends-iscan
%{_libdir}/sane/libsane-epkowa.so.%{major}*
%{_libdir}/sane/libsane-epkowa.so
%{_sysconfdir}/sane.d/epkowa.conf
%{_mandir}/man5/sane-epkowa.5*
%{_mandir}/man8/iscan-registry.*
%endif

#----------------------------------------------------------------------------

%package backends-doc
Summary:	Documentation for SANE backends
Group:		Documentation

%description backends-doc
This package contains the SANE backend documentation for different
scanners.

%files backends-doc
%doc %{_docdir}/sane-backends-doc-%{version}

#----------------------------------------------------------------------------

%package -n saned
Summary:	SANE - local and remote scanner access
License:	LGPLv2.1+
Group:		System/Kernel and hardware
Requires:	sane-backends >= %{EVRD}
# compat with Fedora/RH
Provides:	sane-backends-daemon = %{EVRD}
Provides:	sane-daemon = %{EVRD}

%description -n saned
This package contains saned, a daemon that allows remote clients to
access image acquisition devices available on the local host.

%files -n saned
%{_sbindir}/iscan-registry
%{_sbindir}/saned
%{_mandir}/man8/saned*
%{_sysusersdir}/saned.conf
%{_unitdir}/saned.service
%{_unitdir}/saned.socket

%post -n saned
%sysusers_create saned.conf
%systemd_post saned.socket saned.service

%preun -n saned
%systemd_preun saned.socket saned.service

#----------------------------------------------------------------------------

%prep
%setup -qn %{tardir}

%patch0 -p1 -b .plusteks12
%patch1 -p1 -b .group
%patch2 -p1 -b .brother2list
%patch3 -p1 -b .strformat

%patch11 -p1

# Fedora patches
%patch20 -p1 -b .open-macro
%patch21 -p1 -b .udev

# Primax parallel port scanners
%if %{with primax}
%setup -q -T -D -a 3 -n %{tardir}
%patch50 -p1 -b .gcc5

# "primascan" backend
# (commented out in dll.conf, as it claims to support every USB scanner)
cat %{SOURCE11} > backend/primascan.h
cat %{SOURCE12} > backend/primascan.c
echo '#primascan' >> backend/dll.conf.in
%endif
# Epson Avasys driver for Epson scanners
%if %{with epkowa}
%setup -q -T -D -a 13 -n %{tardir}
%endif

# lib64 fixes (avoid patch)
# NOTE: don't regenerate configure script past this line
perl -pi -e "s@/lib(\"|\b[^/])@/%_lib\1@g if /LDFLAGS=.*with_ptal/" configure

# Reduce number of retries done by the "snapscan" backend when accessing
# the scanner
perl -p -i -e 's:for \(retries = 20; retries; retries--\):for (retries = 5; retries; retries--):' backend/snapscan-scsi.c

%if %{with epkowa}
pushd iscan-%{iscanversion}
%patch30 -p0 -b .iscan-2.10.0-1_fix_link
%patch31 -p0 -b .no_non-free_please
%if %{without git}
%patch32 -p2 -b .linkage_fix
%endif
%patch33 -p0
%patch34 -p1 -b .u_char
popd
%endif

%patch1000 -p1

# Remove the backend/dll.conf file generated by the patches, it prevents
# the Makefile from generating  the real dll.conf file
rm -f backend/dll.conf

%build
%if %{with git}
sed -i -e 's,is_release=no,is_release=yes,g' configure.ac
sed -i -e "s,\$VERSION,%{version},g" configure.ac
%endif
./autogen.sh
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--sysconfdir=%{_sysconfdir} \
	--localstatedir=%{_localstatedir} \
	--disable-static \
	--enable-rpath=no \
	--with-systemd \
%if !%{with gphoto2}
	--without-gphoto2
%endif

%make

# Primax parallel port scanners
%if %{with primax}
chmod a+rx tools/sane-config
cd primaxscan*
#autoreconf -fi
PATH=`pwd`/../tools:${PATH}
CFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -fPIC -I`pwd`/../include -L`pwd`/../backend/.libs/"
%configure \
	--disable-static

%make
%make primax_scan
cd ..
%endif

# Epson Avasys driver for Epson scanners
%if %{with epkowa}
chmod a+rx tools/sane-config
PATH=`pwd`/tools:${PATH}
cd iscan-%{iscanversion}
cp -f /usr/share/aclocal/libtool.m4 m4/.
autoreconf -if
export CFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -I`pwd`/../include -L`pwd`/../backend/ -fPIC"
export CXXFLAGS="${RPM_OPT_FLAGS/-ffast-math/} -I`pwd`/../include -L`pwd`/../backend/ -fPIC"
%configure \
	--disable-static \
	--disable-frontend
%make
cd ..
%endif

%install
%makeinstall_std

# Create missing lock dir
install -d %{buildroot}/var/lib/lock/sane

perl -pi -e "s/installed.*/installed=yes/g" %{buildroot}%{_libdir}/libsane.la

# Comment out entry for the "geniusvp2" backend in
# /etc/sane.d/dll.conf as it makes SANE hanging on some systems when
# the appropriate scanner is not present
perl -p -i -e 's/^(\s*geniusvp2)/\#$1/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf

# Comment out entry for the "epson" backend in /etc/sane.d/dll.conf as
# we have also Epson's "epkowa" backend which supports the same
# scanners
perl -p -i -e 's/^(\s*epson)/\#$1/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf

# Remove "hpoj" line from /etc/sane.d/dll.con
perl -p -i -e 's/HP\s+OfficeJet/HPLIP/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf
perl -p -i -e 's/hpoj.sf.net/hplip.sf.net/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf
perl -p -i -e 's/hpoj/hpaio/g' %{buildroot}%{_sysconfdir}/sane.d/dll.conf

%if %{with empty_dll_conf}
# The /etc/sane.d/dll.conf contains lines for every backend, so every
# backend probes for a scanner when a SANE frontend (e. g. xsane) is
# started. With this the user has always to wait around one minute
# before he can scan. We simply replace the file by a nearly empty one
# and let scannerdrake only insert the needed backends. So the
# frontends will start immediately
mv %{buildroot}%{_sysconfdir}/sane.d/dll.conf %{buildroot}%{_sysconfdir}/sane.d/dll.conf.orig
cat > %{buildroot}%{_sysconfdir}/sane.d/dll.conf <<EOF
# enable the next line if you want to allow access through the network:
net
EOF
%endif

# Move documentation from /usr/doc to /usr/share/doc
install -d %{buildroot}%{_docdir}/sane-backends-%{version}/
install -d %{buildroot}%{_docdir}/sane-backends-doc-%{version}/
pushd %{buildroot}%{_docdir}/sane-backends
mv `find -mindepth 1 -type d` *.html *.txt %{buildroot}%{_docdir}/sane-backends-doc-%{version}/
mv README README.linux %{buildroot}%{_docdir}/sane-backends-%{version}/
rm -f README.*
mv * %{buildroot}%{_docdir}/sane-backends-%{version}/
popd

# Primax parallel port scanners
%if %{with primax}
cd primaxscan*
%makeinstall_std
rm -f %{buildroot}%{_libdir}/libsane-primax.a %{buildroot}%{_prefix}/lib/sane/libsane-primax.a
cp primax_scan %{buildroot}%{_bindir}
cd ..
%endif

# Epson Avasys driver for Epson scanners
%if %{with epkowa}
cd iscan-%{iscanversion}
%makeinstall_std
rm -f %{buildroot}%{_libdir}/sane/libsane-epkowa.a
rm -f %{buildroot}%{_mandir}/man1/iscan.1*
rm -rf %{buildroot}%{_libdir}/iscan
cp backend/epkowa.conf %{buildroot}%{_sysconfdir}/sane.d/
echo 'epkowa' >> %{buildroot}%{_sysconfdir}/sane.d/dll.conf
cd ..
%endif

# XXX TODO: fix in upstream
%ifarch %{x86_64}
mv -v %{buildroot}/usr/lib/sane/* %{buildroot}%{_libdir}/sane/
%endif

mkdir -p %{buildroot}%{_unitdir}
install -m 644 %{SOURCE20} %{buildroot}%{_unitdir}/
install -m 644 %{SOURCE21} %{buildroot}%{_unitdir}/

mkdir -p %{buildroot}%{_sysusersdir}
cat > %{buildroot}%{_sysusersdir}/saned.conf << 'EOF'
u saned - "saned daemon" /usr/share/sane
g saned - -
m saned saned
# Add saned to group scanner, cdwriter and usb for scanner access
m saned cdwriter
m saned usb
m saned scanner
EOF

# udev rules for libusb user support
mkdir -p %{buildroot}%{_udevrulesdir}
install -m644 tools/udev/libsane.rules %{buildroot}%{_udevrulesdir}/60-libsane.rules
# Shorten too long comments
perl -p -i -e 's/(\#.{500}).*$/$1 .../' %{buildroot}%{_udevrulesdir}/60-libsane.rules

%find_lang sane-backends

sed -i '/^%dir/d' sane-backends.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17131 |21mr|sane-airscan-0.99.30-1.git89fb0.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 89fb0787f660f6a3bf0848fc4477c0628dfb8baa
%define commit_short %(echo %{commit} | head -c 5)

%define major 1

Summary: SANE backend for AirScan (eSCL) and WSD document scanners
Name:    sane-airscan	
Version: 0.99.30
Release: 1.git%{commit_short}.1
License: GPL-2.0
Group:   System/Configuration/Printing
Url:     https://github.com/alexpevzner/sane-airscan
Source0: https://github.com/alexpevzner/%{name}/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
BuildRequires: ctags
BuildRequires: pkgconfig(avahi-client)
BuildRequires: pkgconfig(libxml-2.0)
BuildRequires: pkgconfig(gnutls)
BuildRequires: pkgconfig(libjpeg)
BuildRequires: pkgconfig(libpng)
BuildRequires: pkgconfig(libtiff-4)
BuildRequires: pkgconfig(sane-backends)
# Pull owners of parent directories, but actually
# /usr/bin/airscan-discover may work without SANE
#Recommends: %{_sysconfdir}/sane.d
Recommends: %{_libdir}/sane

%description
This backend implements both protocols, choosing automatically between them.
It was successfully tested with many devices from Brother, Canon, Dell, 
Kyocera, Lexmark, Epson, HP, Ricoh, Samsung and Xerox both in WSD 
and eSCL modes.

%files
%license COPYING LICENSE
%doc README*
%config(noreplace) %{_sysconfdir}/sane.d/airscan.conf
%config(noreplace) %{_sysconfdir}/sane.d/dll.d/airscan
%{_bindir}/airscan-discover
%{_libdir}/sane/libsane-airscan.so.%{major}
%{_mandir}/man1/airscan-discover.1*
%{_mandir}/man5/sane-airscan.5*

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%make CFLAGS="%{optflags}" CPPFLAGS="%{optflags}"

%install
%makeinstall_std STRIP=''

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17132 |21mr|sane-frontends-1.0.14-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define beta %nil

# Enable debug mode
%define debug 0

Summary:	Graphical frontend to SANE
Name:		sane-frontends
Version:	1.0.14
Release:	29
License:	GPLv2+
Group:		Graphics
Url:		http://www.mostang.com/sane/
Source0:	ftp://ftp.sane-project.org/pub/sane/sane-frontends-%{version}/%{name}-%{version}%{beta}.tar.bz2
Source1:	sane-frontends16.png
Source2:	sane-frontends32.png
Source3:	sane-frontends48.png
Patch0:		sane-frontends-1.0.14-segfault.patch
Patch1:		sane-frontends-1.0.14-gimp-hard-localization.patch
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(sane-backends)
Requires:	sane
Recommends:	(gimp-plugin-xscanimage if gimp)

%description
This is the xscanimage program, used to scan images using SANE.
Also includes xcam and scanadf.

%files
%doc INSTALL NEWS README AUTHORS
%{_bindir}/*
%{_datadir}/sane/sane-style.rc
%{_mandir}/man1/*
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/*.png

#----------------------------------------------------------------------------

%package -n gimp-plugin-xscanimage
Summary:	GIMP plugin to scan with xscanimage
Group:		Graphics
# file was moved
Conflicts:	%{name} < 1.0.14-23

%description -n gimp-plugin-xscanimage
GIMP plugin to scan with xscanimage

%files -n gimp-plugin-xscanimage
%{_libdir}/gimp/2.0/plug-ins/xscanimage

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n sane-frontends-%{version}%{beta}

%build
%if %{debug}
export DONT_STRIP=1
CFLAGS="`echo %{optflags} |perl -pi -e 's,-O3,-g,g'`" CXXFLAGS="`echo %{optflags} |perl -pi -e 's,-O3,-g,g'`" \
%endif
%configure
perl -pi -e 's#,-rpath,/usr/lib##' src/Makefile #yves 1.0.5-4mdk
# glibc 2.1 has stpcpy, but sane's configure is apparently unable to detect it.
perl -p -i -e "s|\/\* #undef HAVE_STPCPY \*\/|#define HAVE_STPCPY 1|" include/sane/config.h
%make

%install
%if %{debug}
export DONT_STRIP=1
%endif

%makeinstall_std

mkdir -p %{buildroot}%{_libdir}/gimp/2.0/plug-ins
ln -s %{_bindir}/xscanimage %{buildroot}%{_libdir}/gimp/2.0/plug-ins

# menu icons
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
install -m 0644 %{SOURCE1} %{buildroot}/%{_iconsdir}/hicolor/16x16/apps/sane-frontends.png
install -m 0644 %{SOURCE2} %{buildroot}/%{_iconsdir}/hicolor/32x32/apps/sane-frontends.png
install -m 0644 %{SOURCE3} %{buildroot}/%{_iconsdir}/hicolor/48x48/apps/sane-frontends.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/xscanimage.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=XScanImage
Comment=A simple frontend for the SANE scanning system
Comment[ru]=Простой интерфейс для системы сканирования SANE
Exec=%{_bindir}/xscanimage
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;Graphics;Scanning;
NotShowIn=KDE;
EOF

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/xcam.desktop <<EOF
[Desktop Entry]
Encoding=UTF-8
Name=XCam
Comment=A SANE-based frontend for webcams
Comment[ru]=Фронтенд системы сканирования SANE для веб-камер
Exec=%{_bindir}/xcam
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=GTK;AudioVideo;Video;
NotShowIn=KDE;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17133 |21mr|sary-1.2.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 10
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Suffix array library (with tools)
Name:		sary
Version:	1.2.0
Release:	21
License:	LGPLv2+
Group:		System/Internationalization
Url:		http://prime.sourceforge.jp/src/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		sary-linkage_fix.diff
Patch1:		sary-conflicting-types.patch
BuildRequires:	pkgconfig(glib-2.0)

%description
Sary is a suffix array library. It provides fast full-text search facilities
for text files on the order of 10 to 100 MB using a data structure called a
suffix array. It can also search specific fields in a text file by assigning
index points to those fields.

%files
%doc AUTHORS ChangeLog NEWS README TODO
%{_bindir}/mksary
%{_bindir}/sary
%{_datadir}/%{name}
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Sary shared library
Group:		System/Libraries

%description -n %{libname}
Sary is a suffix array library. It provides fast full-text search facilities
for text files on the order of 10 to 100 MB using a data structure called a
suffix array. It can also search specific fields in a text file by assigning
index points to those fields.

%files -n %{libname}
%{_libdir}/libsary.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for sary
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Sary is a suffix array library. It provides fast full-text search facilities
for text files on the order of 10 to 100 MB using a data structure called a
suffix array. It can also search specific fields in a text file by assigning
index points to those fields.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libsary.so
%{_libdir}/pkgconfig/sary.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17134 |21mr|sash-3.8-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A statically linked shell, including some built-in basic commands
Name:		sash
Version:	3.8
Release:	26
License:	GPL
Group:		Shells
Url:		http://www.canb.auug.org.au/~dbell/
Source0:	http://www.canb.auug.org.au/~dbell/programs/%{name}-%{version}.tar.gz
Source100:	sash.rpmlintrc
Patch5:		sash-3.8-scriptarg.patch
Patch6:		sash-pwdfunc.patch
Patch7:		sash-3.7-segfault.patch
Patch8:		sash-3.8-special-script-call-esp-for-glibc-post.patch
Patch9:		sash-3.8-mga-nostrip.patch
BuildRequires:	glibc-static-devel
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(zlib)

%description
Sash is a simple, standalone, statically linked shell which includes
simplified versions of built-in commands like ls, dd and gzip. Sash
is statically linked so that it can work without shared libraries, so
it is particularly useful for recovering from certain types of system
failures. Sash can also be used to safely upgrade to new versions of
shared libraries.

%files
/sbin/sash
%{_mandir}/man8/sash.8*


#----------------------------------------------------------------------------

%prep
%setup -q
%patch5 -p1 -b .scriptarg
%patch6 -p1 -b ".pwd"
%patch7 -p1 -b ".segf"
%patch8 -p1 -b ".scriptarg" -z .pix
%patch9 -p1 -b ".nostrip"

%build
make OPT="%{optflags}"

%install
install -m755 sash -D %{buildroot}/sbin/sash
install -m644 sash.1 -D %{buildroot}%{_mandir}/man8/sash.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17135 |21mr|sassc-3.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global testspec_version 3.6.3

%bcond_with tests

Summary:	Wrapper around libsass to compile CSS stylesheet
Name:		sassc
Version:	3.6.1
Release:	1
License:	MIT
Group:		Development/Tools
Url:		http://github.com/sass/sassc
Source0:	https://github.com/sass/sassc/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Test suite spec. According to this comment from an upstream dev, we should
# not use the release tags on the test spec:
# https://github.com/sass/libsass/issues/2258#issuecomment-268196004
# https://github.com/sass/sass-spec/archive/master.zip
# https://github.com/sass/sass-spec/archive/v%{testspec_version}.tar.gz
Source1:	sass-spec-libsass-3.6.3.tar.gz
BuildRequires:	pkgconfig(libsass) >= %{version}
%if %{with tests}
BuildRequires:	ruby
BuildRequires:	rubygem(minitest)
%endif

%description
SassC is a wrapper around libsass used to generate a useful command-line
application that can be installed and packaged for several operating systems.

%files
%doc LICENSE Readme.md
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -a1
mv sass-spec-libsass-%{testspec_version} sass-spec

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

%if %{with tests}
%check
ruby sass-spec/sass-spec.rb -V 3.4 -c bin/%{name} --impl libsass sass-spec/spec
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17136 |21mr|sat4j-2.3.5-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# should be consistent across one release
%global build_date 20130405

Name:           sat4j
Version:        2.3.5
Release:        16
Summary:        A library of SAT solvers written in Java
Group:          Development/Java
License:        EPL-1.0 or LGPLv2
URL:            http://www.sat4j.org/
# Created by sh sat4j-fetch.sh
Source0:        sat4j-%{version}.tar.xz
Source1:        sat4j-fetch.sh
Patch0:         sat4j-classpath.patch

BuildRequires:  ant
BuildRequires:  javapackages-local

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The aim of the SAT4J library is to provide an efficient library of SAT
solvers in Java. The SAT4J library targets first users of SAT "black
boxes", those willing to embed SAT technologies into their application
without worrying about the details.

%prep
%setup -q -n sat4j-%{version}
%patch0

%build
ant -Dbuild.compiler=modern -Drelease=%{version} \
 -Dtarget=1.5 -DBUILD_DATE=%{build_date} p2 

%mvn_artifact "org.ow2.sat4j:org.ow2.sat4j.core::%{version}" dist/%{version}/org.sat4j.core.jar
%mvn_artifact "org.ow2.sat4j:org.ow2.sat4j.pb::%{version}" dist/%{version}/org.sat4j.pb.jar
%mvn_file ":org.ow2.sat4j.core" org.sat4j.core
%mvn_file ":org.ow2.sat4j.pb" org.sat4j.pb

%install
%mvn_install

%files -f .mfiles
# No %%doc files as the about.html is in the jar


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17137 |21mr|satyr-0.29-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define _disable_ld_no_undefined 1
%define enable_python_manpage 0

%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%global __python %{__python3}

Summary:	Tools to create anonymous, machine-friendly problem reports
Name:		satyr
Version:	0.29
Release:	2
License:	GPLv2+
Group:		System/Libraries
Url:		https://github.com/abrt/satyr
Source0:	https://github.com/abrt/satyr/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	automake
BuildRequires:	binutils-devel
BuildRequires:	dwz
BuildRequires:	elfutils-devel
BuildRequires:	gcc-c++
BuildRequires:	gperf
BuildRequires:	libtool
BuildRequires:	pkgconfig
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(python3)
BuildRequires:	rpm-devel
%if %{?enable_python_manpage}
BuildRequires:	python-sphinx
%endif

%description
Satyr is a library that can be used to create and process microreports.
Microreports consist of structured data suitable to be analyzed in a fully
automated manner, though they do not necessarily contain sufficient information
to fix the underlying problem. The reports are designed not to contain any
potentially sensitive data to eliminate the need for review before submission.
Included is a tool that can create microreports and perform some basic
operations on them.

%files
%doc README NEWS COPYING
%{_bindir}/satyr
%{_mandir}/man1/%{name}.1*

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:        %{summary}
Group:          %{group}

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with satyr.

%files -n %{libname}
%{_libdir}/libsatyr.so.%{major}*

#-----------------------------------------------------------------------

%package -n %{devname}
Summary: Development libraries for %{name}
Group: Development/C
Requires: %{libname} = %{EVRD}
Requires: %{name} = %{EVRD}

%description -n %{devname}
Development libraries and headers for %{name}.

%files -n %{devname}
%{_includedir}/satyr/
%{_libdir}/libsatyr.so
%{_libdir}/pkgconfig/satyr.pc

#-----------------------------------------------------------------------

%package -n python3-%{name}
Summary: Python bindings for %{name}
Group: Development/Python
Requires: %{name} = %{EVRD}

%description -n python3-%{name}
Python bindings for %{name}.

%files -n python3-%{name}
%{py3_platsitedir}/%{name}

#-----------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1
printf '%s' '%{version}' > satyr-version
autoreconf -fiv

%build
%configure
%make

%install
%makeinstall_std

%check
# FIXME As of 0.24, 2 tests are failing:
# 86: sr_core_stacktrace_from_gdb_limit               FAILED (core_stacktrace.at:205)
# 92: sr_ruby_frame_from_json                         FAILED (ruby_frame.at:184)
#
# Once fixed, shouldn't allow make check to fail

%make check || :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17138 |21mr|saxon-9.4.0.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#
%global version_str %(sed -e 's/\\./-/g' <<<"%{version}")
%global version_major_minor %(sed -e 's/\\([0-9]*\\.[0-9]*\\)\\..*/\\1/g' <<<"%{version}")
%global version_major_minor_str %(sed -e 's/\\./-/g' <<<"%{version_major_minor}")
%global version_maven %(sed -e 's/\\(.*\\)\\.\\([0-9]*\\)/\\1-\\2/g' <<<"%{version}")
%global artifact_id Saxon-HE
Summary:        Java XPath, XSLT 2.0 and XQuery implementation
Name:           saxon
Version:        9.4.0.9
Release:        10
# net.sf.saxon.om.XMLChar is from ASL-licensed Xerces
# net/sf/saxon/option/jdom/ is MPLv1.1
# net/sf/saxon/serialize/codenorm/ is UCD
# net/sf/saxon/expr/sort/GenericSorter.java is MIT
# net/sf/saxon/expr/Tokenizer.java and few other bits are BSD
License:        MPLv1.0 and MPLv1.1 and ASL 1.1 and UCD and MIT
Group:          Development/Java
URL:            http://saxon.sourceforge.net/
Source0:        https://downloads.sourceforge.net/project/saxon/Saxon-HE/%{version_major_minor}/saxon%{version_str}source.zip
Source1:        %{name}.saxon.script
Source2:        %{name}.saxonq.script
Source3:        %{name}.build.script
Source4:        %{name}.1
Source5:        %{name}q.1
Source6:        https://downloads.sourceforge.net/project/saxon/Saxon-HE/%{version_major_minor}/saxon-resources%{version_major_minor_str}.zip
Source8:        http://www.mozilla.org/MPL/1.0/index.txt#/mpl-1.0.txt
Source9:        http://www.mozilla.org/MPL/1.0/index.txt#/mpl-1.1.txt
BuildRequires:  unzip
BuildRequires:  java-devel >= 1:1.6.0
BuildRequires:  ant
BuildRequires:  javapackages-local
BuildRequires:  bea-stax-api
BuildRequires:  xml-commons-apis
BuildRequires:  xml-commons-resolver
BuildRequires:  xom
BuildRequires:  java-javadoc
BuildRequires:  jdom >= 0:1.0-0.b7
BuildRequires:  jdom-javadoc >= 0:1.0-0.b9.3jpp
BuildRequires:  jdom2
BuildRequires:  dom4j
Requires:       bea-stax-api
Requires:       bea-stax

# Older versions were split into multile packages
Obsoletes:  %{name}-xpath < %{version}-%{release}
Provides:   %{name}-xpath = %{version}-%{release}
Obsoletes:  %{name}-xom < %{version}-%{release}
Provides:   %{name}-xom = %{version}-%{release}
Obsoletes:  %{name}-sql < %{version}-%{release}
Provides:   %{name}-sql = %{version}-%{release}
Obsoletes:  %{name}-jdom < %{version}-%{release}
Provides:   %{name}-jdom = %{version}-%{release}
Obsoletes:  %{name}-dom < %{version}-%{release}
Provides:   %{name}-dom = %{version}-%{release}

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Saxon HE is Saxonica's non-schema-aware implementation of the XPath 2.0,
XSLT 2.0, and XQuery 1.0 specifications aligned with the W3C Candidate
Recommendation published on 3 November 2005. It is a complete and
conformant implementation, providing all the mandatory features of
those specifications and nearly all the optional features.

%package        manual
Summary:        Manual for %{name}

%description    manual
Manual for %{name}.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%package        demo
Summary:        Demos for %{name}
Requires:       %{name} = %{version}-%{release}

%description    demo
Demonstrations and samples for %{name}.

%package        scripts
Summary:        Utility scripts for %{name}
Requires:       %{name} = %{version}-%{release}

%description    scripts
Utility scripts for %{name}.


%prep
%setup -q -c

unzip -q %{SOURCE6}
cp -p %{SOURCE3} ./build.xml

# deadNET
rm -rf net/sf/saxon/dotnet samples/cs

# Depends on XQJ (javax.xml.xquery)
rm -rf net/sf/saxon/xqj

# This requires a EE edition feature (com.saxonica.xsltextn)
rm -rf net/sf/saxon/option/sql/SQLElementFactory.java

# cleanup unnecessary stuff we'll build ourselves
rm -rf docs/api
find . \( -name "*.jar" -name "*.pyc" \) -delete

cp %{SOURCE8} %{SOURCE9} .

cat >%{artifact_id}-%{version_maven}.pom <<POM_XML
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">

  <modelVersion>4.0.0</modelVersion>
  <groupId>net.sf.saxon</groupId>
  <artifactId>%{artifact_id}</artifactId>
  <version>%{version_maven}</version>
  <packaging>jar</packaging>
  <name>%{artifact_id}</name>
  <url>http://saxon.sf.net/</url>
  <description>The XSLT and XQuery Processor</description>
  <licenses>
    <license>
      <name>Mozilla Public License Version 2.0</name>
      <url>http://www.mozilla.org/MPL/2.0/</url>
      <distribution>repo</distribution>
    </license>
  </licenses>

  <scm>
    <connection>scm:svn:https://dev.saxonica.com/repos/archive/opensource/latest%{version_major_minor}/</connection>
    <developerConnection>scm:svn:https://dev.saxonica.com/repos/archive/opensource/latest%{version_major_minor}/</developerConnection>
    <url>https://saxon.svn.sourceforge.net/svnroot/saxon/latest%{version_major_minor}/</url>
  </scm>
</project> 
POM_XML

%build
mkdir -p build/classes
cat >build/classes/edition.properties <<EOF
config=net.sf.saxon.Configuration
platform=net.sf.saxon.java.JavaPlatform
EOF

export CLASSPATH=$(build-classpath axiom xml-commons-apis xml-commons-resolver jdom jdom2 xom bea-stax-api dom4j)
ant \
  -Dj2se.javadoc=%{_javadocdir}/java \
  -Djdom.javadoc=%{_javadocdir}/jdom

%mvn_artifact %{artifact_id}-%{version_maven}.pom build/lib/saxon.jar
%mvn_alias : :saxon
%mvn_alias : net.sf.saxon:saxon::dom:

%install
%mvn_install

# For compactability
ln -s %{artifact_id}.jar $RPM_BUILD_ROOT/%{_javadir}/saxon/saxon.jar

# javadoc
mkdir -p $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr build/api/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}

# demo
mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr samples/* $RPM_BUILD_ROOT%{_datadir}/%{name}

# scripts
mkdir -p $RPM_BUILD_ROOT%{_bindir}
install -p -m755 %{SOURCE1} $RPM_BUILD_ROOT%{_bindir}/%{name}
install -p -m755 %{SOURCE2} $RPM_BUILD_ROOT%{_bindir}/%{name}q
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man1/%{name}.1
install -p -m644 %{SOURCE5} $RPM_BUILD_ROOT%{_mandir}/man1/%{name}q.1

%post
# update-alternatives will remove the symlink - preserve it
mv %{_javadir}/jaxp_transform_impl.jar{,.tmp} || :
# alternatives removed in f26
update-alternatives --remove jaxp_transform_impl %{_javadir}/saxon/%{artifact_id}.jar &>/dev/null || :
# restore the symlink
mv %{_javadir}/jaxp_transform_impl.jar{.tmp,} || :

%files -f .mfiles
%license mpl-1.0.txt mpl-1.1.txt
%{_javadir}/%{name}/saxon.jar

%files manual
%doc doc/*

%files javadoc
%doc mpl-1.0.txt mpl-1.1.txt
%{_javadocdir}/%{name}

%files demo
%{_datadir}/%{name}

%files scripts
%{_bindir}/%{name}
%{_bindir}/%{name}q
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{name}q.1*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17139 |21mr|saxpath-1.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       saxpath
Version:    1.0
Release:    19
Summary:    Simple API for XPath
License:    Saxpath
URL:        http://sourceforge.net/projects/saxpath/
Source0:    http://downloads.sourceforge.net/saxpath/saxpath-1.0.tar.gz
Source1:    %{name}-%{version}.pom
Source2:    LICENSE
Group:      Development/Java
BuildArch:  noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  javapackages-local
Requires:       jpackage-utils

%description
The SAXPath project is a Simple API for XPath. SAXPath is analogous to SAX
in that the API abstracts away the details of parsing and provides a simple
event based callback interface.

%package javadoc
Summary:    API documentation for %{name}

%description javadoc
This package contains %{summary}.

%prep
%setup -q -n %{name}-%{version}-FCS

find -name \*.jar -delete

cp %{SOURCE2} .

%build
mkdir src/conf
touch src/conf/MANIFEST.MF

ant

# fix rpmlint warings: saxpath-javadoc.noarch: W: wrong-file-end-of-line-encoding /usr/share/javadoc/saxpath/**/*.css
for file in `find build/doc -type f | grep .css`; do
    sed -i 's/\r//g' $file
done

%install
install -d -m 755 %{buildroot}/%{_javadir}
install -d -m 755 %{buildroot}/%{_mavenpomdir}
install -d -m 755 %{buildroot}/%{_javadocdir}/%{name}

install -p -m 644 build/%{name}.jar %{buildroot}/%{_javadir}/
install -p -m 644 %{SOURCE1} %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap
cp -a build/doc/* %{buildroot}/%{_javadocdir}/%{name}/

%check
ant test

%files -f .mfiles
%doc LICENSE

%files javadoc
%doc LICENSE
%{_javadocdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17140 |21mr|sbc-1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Bluetooth SBC utilities
Name:		sbc
Version:	1.5
Release:	3
License:	GPLv2+
Group:		Communications
Url:		http://www.bluez.org/
Source0:	http://www.kernel.org/pub/linux/bluetooth/%{name}-%{version}.tar.xz
Patch0:		sbc-fix-non-x86.patch
BuildRequires:	pkgconfig(bluez)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(sndfile)

%description
Bluetooth SBC utilities.

%files
%{_bindir}/sbcdec
%{_bindir}/sbcenc
%{_bindir}/sbcinfo

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Bluetooth SBC shared library
Group:		System/Libraries

%description -n %{libname}
Bluetooth SBC shared library.

%files -n %{libname}
%{_libdir}/libsbc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Bluetooth SBC development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Bluetooth SBC development files.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libsbc.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%ifarch %{e2k}
sed -i -e '/-fgcse-after-reload/d; /-funswitch-loops/d' Makefile.am
%endif

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17141 |21mr|sbinary-0.4.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global sbinary_version 0.4.2
%global scala_version 2.10
%global scala_long_version 2.10.3
%global build_with_sbt 0
%global want_scalacheck 0

Name:           sbinary
Version:        %{sbinary_version}
Release:        11
Summary:        Library for describing binary formats for Scala types

License:        MIT
URL:            https://github.com/harrah/sbinary
Source0:        https://github.com/harrah/sbinary/archive/v%{sbinary_version}.tar.gz
Source1:	https://raw.github.com/willb/climbing-nemesis/master/climbing-nemesis.py

Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
%if %{build_with_sbt}
BuildRequires:  sbt
BuildRequires:	python
%else
BuildRequires:	java-devel
%endif
BuildRequires:  mvn(org.scala-lang:scala-compiler)
BuildRequires:	mvn(net.sourceforge.fmpp:fmpp)
BuildRequires:	mvn(org.beanshell:bsh)
BuildRequires:	mvn(xml-resolver:xml-resolver)
BuildRequires:	mvn(org.freemarker:freemarker)
BuildRequires:	maven-local
BuildRequires:	javapackages-tools
Requires:	javapackages-tools
Requires:       scala

%description

SBinary is a library for describing binary protocols, in the form of
mappings between Scala types and binary formats. It can be used as a
robust serialization mechanism for Scala objects or a way of dealing
with existing binary formats found in the wild.

It started out life as a loose port of Haskell's Data.Binary. It's
since evolved a bit from there to take advantage of the features Scala
implicits offer over Haskell type classes, but the core idea has
remained the same.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q

%if %{build_with_sbt}
sed -i -e 's/2[.]10[.]2/2.10.3/g' project/SBinaryProject.scala

sed -i -e 's|"scalacheck" % "1[.]10[.]0"|"scalacheck" % "1.11.0"|g' project/SBinaryProject.scala
sed -i -e 's|[.]identity||g' project/SBinaryProject.scala
sed -i -e 's/0[.]13[.]0/0.13.1/g' project/build.properties || echo sbt.version=0.13.1 > project/build.properties

cp -r /usr/share/java/sbt/ivy-local .
mkdir boot

cp %{SOURCE1} .

chmod 755 climbing-nemesis.py

%if %{want_scalacheck}
./climbing-nemesis.py --jarfile /usr/share/java/scalacheck.jar org.scalacheck scalacheck ivy-local --version 1.11.0 --scala %{scala_version}
%endif

./climbing-nemesis.py net.sourceforge.fmpp fmpp ivy-local
./climbing-nemesis.py org.freemarker freemarker ivy-local
./climbing-nemesis.py org.beanshell bsh ivy-local --override org.beanshell:bsh
./climbing-nemesis.py xml-resolver xml-resolver ivy-local
%endif

%build

%if %{build_with_sbt}

export SBT_BOOT_DIR=boot
export SBT_IVY_DIR=ivy-local
sbt package deliverLocal publishM2Configuration

%else # build without sbt

mkdir -p core/target/scala-%{scala_version}/src_managed
mkdir -p core/target/scala-%{scala_version}/classes
mkdir -p core/target/scala-%{scala_version}/api

java -cp $(build-classpath fmpp freemarker bsh oro) fmpp.tools.CommandLine -S core/src -O core/target/scala-%{scala_version}/src_managed

scalac core/target/scala-%{scala_version}/src_managed/*.scala -d core/target/scala-%{scala_version}/classes
jar -cvf core/target/scala-%{scala_version}/%{name}_%{scala_version}-%{version}.jar -C core/target/scala-%{scala_version}/classes .

scaladoc core/target/scala-2.10/src_managed/*.scala -d core/target/scala-2.10/api

cat << EOF > core/target/scala-%{scala_version}/%{name}_%{scala_version}-%{version}.pom
<?xml version='1.0' encoding='UTF-8'?>
<project xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0">
    <modelVersion>4.0.0</modelVersion>
    <groupId>org.scala-tools.sbinary</groupId>
    <artifactId>sbinary_%{scala_version}</artifactId>
    <packaging>jar</packaging>
    <description>SBinary</description>
    <version>%{version}</version>
    <name>SBinary</name>
    <organization>
        <name>org.scala-tools.sbinary</name>
    </organization>
    <dependencies>
        <dependency>
            <groupId>org.scala-lang</groupId>
            <artifactId>scala-library</artifactId>
            <version>%{scala_long_version}</version>
        </dependency>
    </dependencies>
</project>
EOF

%endif

%install
mkdir -p %{buildroot}/%{_javadir}
mkdir -p %{buildroot}/%{_mavenpomdir}

mkdir -p %{buildroot}/%{_javadocdir}/%{name}

install -pm 644 core/target/scala-%{scala_version}/%{name}_%{scala_version}-%{version}.jar %{buildroot}/%{_javadir}/%{name}.jar
install -pm 644 core/target/scala-%{scala_version}/%{name}_%{scala_version}-%{version}.pom %{buildroot}/%{_mavenpomdir}/JPP-%{name}.pom

cp -rp core/target/scala-%{scala_version}/api/* %{buildroot}/%{_javadocdir}/%{name}

%add_maven_depmap JPP-%{name}.pom %{name}.jar

%files -f .mfiles
%doc LICENSE README

%files javadoc
%{_javadocdir}/%{name}
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17142 |21mr|sblim-sfcc-2.2.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libcimcClientXML_major 0
%define libcimcClientXML %mklibname cimcClientXML %{libcimcClientXML_major}
%define libcimcclient_major 0
%define libcimcclient %mklibname cimcclient %{libcimcclient_major}
%define libcmpisfcc_major 1
%define libcmpisfcc %mklibname cmpisfcc %{libcmpisfcc_major}
%define devname %mklibname %{name} -d

Summary:	Standards Based Linux Instrumentation for Manageability
Name:		sblim-sfcc
Version:	2.2.8
Release:	1
License:	CPL and EPL
Group:		System/Libraries
Url:		https://sourceforge.net/projects/sblim/
Source0:	https://sourceforge.net/projects/sblim/files/sblim-sfcc/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openssl)

%description
SBLIM (pronounced "sublime"), the Standards Based Linux Instrumentation for
Manageability is an IBM-initiated Open Source project, intended to enhance
the manageability of GNU/Linux systems. It does so by enabling WBEM, Web
Based Enterprise Management.

#----------------------------------------------------------------------------

%package -n %{libcimcClientXML}
Summary:	Standards Based Linux Instrumentation for Manageability
Group:		System/Libraries

%description -n %{libcimcClientXML}
SBLIM (pronounced "sublime"), the Standards Based Linux Instrumentation for
Manageability is an IBM-initiated Open Source project, intended to enhance
the manageability of GNU/Linux systems. It does so by enabling WBEM, Web
Based Enterprise Management.

%files -n %{libcimcClientXML}
%{_libdir}/libcimcClientXML.so.%{libcimcClientXML_major}*

#----------------------------------------------------------------------------

%package -n %{libcimcclient}
Summary:	Standards Based Linux Instrumentation for Manageability
Group:		System/Libraries

%description -n %{libcimcclient}
SBLIM (pronounced "sublime"), the Standards Based Linux Instrumentation for
Manageability is an IBM-initiated Open Source project, intended to enhance
the manageability of GNU/Linux systems. It does so by enabling WBEM, Web
Based Enterprise Management.

%files -n %{libcimcclient}
%{_libdir}/libcimcclient.so.%{libcimcclient_major}*

#----------------------------------------------------------------------------

%package -n %{libcmpisfcc}
Summary:	Standards Based Linux Instrumentation for Manageability
Group:		System/Libraries

%description -n %{libcmpisfcc}
SBLIM (pronounced "sublime"), the Standards Based Linux Instrumentation for
Manageability is an IBM-initiated Open Source project, intended to enhance
the manageability of GNU/Linux systems. It does so by enabling WBEM, Web
Based Enterprise Management.

%files -n %{libcmpisfcc}
%{_libdir}/libcmpisfcc.so.%{libcmpisfcc_major}*

#----------------------------------------------------------------------------

%package doc
Summary:	Standards Based Linux Instrumentation for Manageability
Group:		Documentation

%description doc
SBLIM (pronounced "sublime"), the Standards Based Linux Instrumentation for
Manageability is an IBM-initiated Open Source project, intended to enhance
the manageability of GNU/Linux systems. It does so by enabling WBEM, Web
Based Enterprise Management.

%files doc
%{_datadir}/doc/sfcc-%{version}/AUTHORS
%{_datadir}/doc/sfcc-%{version}/COPYING
%{_datadir}/doc/sfcc-%{version}/README
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Standards Based Linux Instrumentation for Manageability
Group:		Development/C
Requires:	%{libcimcClientXML} = %{EVRD}
Requires:	%{libcimcclient} = %{EVRD}
Requires:	%{libcmpisfcc} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	sfcc-devel = %{EVRD}

%description -n %{devname}
SBLIM (pronounced "sublime"), the Standards Based Linux Instrumentation for
Manageability is an IBM-initiated Open Source project, intended to enhance
the manageability of GNU/Linux systems. It does so by enabling WBEM, Web
Based Enterprise Management.

%files -n %{devname}
%{_includedir}/CimClientLib/*.h
%{_includedir}/cimc/*.h
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%setup -q

# make autoreconf more happy
sed -i -e 's,AM_INIT_AUTOMAKE.*,AM_INIT_AUTOMAKE(\[subdir-objects\]),' configure.ac

%build
# fix build on aarch64
autoreconf -vfi

%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17143 |21mr|sbsigntools-0.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Canonical EFI binary signing tools
Name:		sbsigntools
Version:	0.9.4
Release:	1
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		https://git.kernel.org/cgit/linux/kernel/git/jejb/sbsigntools.git/
Source0:	https://git.kernel.org/pub/scm/linux/kernel/git/jejb/sbsigntools.git/snapshot/%{name}-%{version}.tar.gz
Source1:	ccan-0.0.2.tar.gz
Patch0:		0001-sbsigntools-fix-autogen.sh-for-build-service.patch
BuildRequires:	gnu-efi
BuildRequires:	gnu-efi-devel
BuildRequires:	help2man
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(libcrypto)
BuildRequires:	pkgconfig(uuid)

%description
This package installs tools which can cryptographically sign EFI
binaries and drivers.

%files
%doc COPYING
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -T -D -n %{name}-%{version}/lib/ccan.git -a 1
%setup -T -D
%patch0 -p1

%build
NOCONFIGURE=1 ./autogen.sh
%configure
# hack to make sure ccan uses correct config file
cp lib/ccan.git/config.h lib/ccan/
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17144 |21mr|sbt-0.13.1-9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# doing a bootstrap build from public sbt binaries
# bootstrap exception is here:  https://fedorahosted.org/fpc/ticket/389
# meeting minutes with vote are here:  http://meetbot.fedoraproject.org/fedora-meeting-1/2014-02-13/fpc.2014-02-13-17.00.html

%global do_bootstrap 0

# build non-bootstrap packages with tests, cross-referenced sources, etc
%global do_proper 0
%global pkg_rel 9
%global scala_version 2.10.6
%global scala_short_version 2.10
%global sbt_bootstrap_version 0.13.1
%global sbt_major 0
%global sbt_minor 13
%global sbt_patch 1
%global sbt_build %{nil}
%global sbt_short_version %{sbt_major}.%{sbt_minor}
%global sbt_version %{sbt_major}.%{sbt_minor}.%{sbt_patch}
%global sbt_full_version %{sbt_version}%{sbt_build}
%global typesafe_repo http://repo.typesafe.com/typesafe/ivy-releases

%global ivy_local_dir ivy-local

%global installed_ivy_local %{_datadir}/%{name}/%{ivy_local_dir}

%global generic_ivy_artifact() %{1}/%{2}/%{3}/%{4}/jars/%{5}.jar
%global generic_ivy_descriptor() %{1}/%{2}/%{3}/%{4}/ivys/ivy.xml#/%{5}-%{4}-ivy.xml

%global sbt_ivy_artifact() %{typesafe_repo}/org.scala-sbt/%{1}/%{sbt_bootstrap_version}/jars/%{1}.jar
%global sbt_ivy_descriptor() %{typesafe_repo}/org.scala-sbt/%{1}/%{sbt_bootstrap_version}/ivys/ivy.xml#/%{1}-%{sbt_bootstrap_version}-ivy.xml

%global sbt_ghpages_version 0.5.1
%global sbt_git_version 0.6.3
%global sbt_site_version 0.6.2
%global sbt_site_jar_version 0.6.2

%global want_sxr 1
%global want_specs2 0
%global want_scalacheck 1
%global want_dispatch_http 1


%global sxr_version 0.3.0
%global sbinary_version 0.4.2
%global scalacheck_version 1.11.0
%global specs2_version 1.12.3
%global testinterface_version 1.0
%global dispatch_http_version 0.8.9

Name:		sbt
Version:	%{sbt_version}
Release:	%{pkg_rel}.1
Summary:	The simple build tool for Scala and Java projects
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

License:	BSD
URL:	http://www.scala-sbt.org
Source0:	https://github.com/sbt/sbt/archive/v%{version}%{sbt_build}.tar.gz

Patch0:	sbt-0.13.1-sbt-scala.patch 
Patch1:	sbt-0.13.1-RC3-release-scala.patch 
Patch2:	sbt-0.13.1-ivy-2.3.0.patch
Patch3:	sbt-0.13.1-ivy-docs.patch
Patch4:		sbt-0.13.1-sxr.patch
Patch5:	sbt-0.13.1-ivy-2.4.0.patch

# sbt-ghpages plugin
Source1:	https://github.com/sbt/sbt-ghpages/archive/v%{sbt_ghpages_version}.tar.gz

# sbt-git plugin
Source2:	https://github.com/sbt/sbt-git/archive/v%{sbt_git_version}.tar.gz

# sbt-site plugin
Source3:	https://github.com/sbt/sbt-site/archive/%{sbt_site_version}.tar.gz

# sxr
Source4:	https://github.com/harrah/browse/archive/v%{sxr_version}.tar.gz

# scalacheck
# nb:  no "v" in this tarball URL
%if %{?want_scalacheck}
Source6:	https://github.com/rickynils/scalacheck/archive/%{scalacheck_version}.tar.gz
%endif

# specs 
# nb:  no "v" in this tarball url
# nb:  this depends on scalaz; might need to excise
Source7:	https://github.com/etorreborre/specs2/archive/SPECS2-%{specs2_version}.tar.gz	

Source16:	https://raw.github.com/willb/climbing-nemesis/master/climbing-nemesis.py
Source17:	https://raw.github.com/willb/rpm-packaging/master/sbt-packaging/sbt.boot.properties
Source15:	https://raw.github.com/willb/rpm-packaging/master/sbt-packaging/rpmbuild-sbt.boot.properties

# Ivy POM
# necessary for bootstrapping with sbt 0.13.1
Source18:	http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0-rc1/ivy-2.3.0-rc1.pom
# necessary for F19 (which doesn't ship with an Ivy pom)
Source20:	http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0/ivy-2.3.0.pom

# Ivy 2.3.0-rc1 jar (necessary for bootstrapping with sbt 0.13.1)
Source19:	http://repo1.maven.org/maven2/org/apache/ivy/ivy/2.3.0-rc1/ivy-2.3.0-rc1.jar


# sbt script (to be obsoleted in future releases)
Source21:	https://raw.github.com/willb/rpm-packaging/master/sbt-packaging/sbt

%if %{do_bootstrap}
# include bootstrap libraries

Source32:	%sbt_ivy_artifact ivy 

Source132:	%sbt_ivy_descriptor ivy

Source33:	%sbt_ivy_artifact task-system 

Source133:	%sbt_ivy_descriptor task-system

Source34:	%generic_ivy_artifact %{typesafe_repo} org.scala-sbt compiler-interface %{sbt_bootstrap_version} compiler-interface-src

Source134:	%generic_ivy_descriptor %{typesafe_repo} org.scala-sbt compiler-interface %{sbt_bootstrap_version} compiler-interface-src

Source35:	%generic_ivy_artifact %{typesafe_repo} org.scala-sbt compiler-interface %{sbt_bootstrap_version} compiler-interface-bin

Source135:	%generic_ivy_descriptor %{typesafe_repo} org.scala-sbt compiler-interface %{sbt_bootstrap_version} compiler-interface-bin

Source36:	%sbt_ivy_artifact testing 

Source136:	%sbt_ivy_descriptor testing

Source37:	%sbt_ivy_artifact command 

Source137:	%sbt_ivy_descriptor command

Source38:	%sbt_ivy_artifact test-agent 

Source138:	%sbt_ivy_descriptor test-agent

Source39:	%sbt_ivy_artifact launcher-interface 

Source139:	%sbt_ivy_descriptor launcher-interface

Source40:	%sbt_ivy_artifact run 

Source140:	%sbt_ivy_descriptor run

Source41:	%sbt_ivy_artifact compiler-ivy-integration 

Source141:	%sbt_ivy_descriptor compiler-ivy-integration

Source42:	%sbt_ivy_artifact scripted-sbt 

Source142:	%sbt_ivy_descriptor scripted-sbt

Source44:	%sbt_ivy_artifact collections 

Source144:	%sbt_ivy_descriptor collections

Source45:	%sbt_ivy_artifact persist 

Source145:	%sbt_ivy_descriptor persist

Source46:	%sbt_ivy_artifact classfile 

Source146:	%sbt_ivy_descriptor classfile

Source47:	%sbt_ivy_artifact control 

Source147:	%sbt_ivy_descriptor control

Source48:	%sbt_ivy_artifact launcher 

Source148:	%sbt_ivy_descriptor launcher

Source49:	%sbt_ivy_artifact apply-macro 

Source149:	%sbt_ivy_descriptor apply-macro

Source50:	%sbt_ivy_artifact datatype-generator 

Source150:	%sbt_ivy_descriptor datatype-generator

Source51:	%sbt_ivy_artifact interface 

Source151:	%sbt_ivy_descriptor interface

Source52:	%sbt_ivy_artifact main-settings 

Source152:	%sbt_ivy_descriptor main-settings

Source53:	%sbt_ivy_artifact incremental-compiler 

Source153:	%sbt_ivy_descriptor incremental-compiler

Source54:	%sbt_ivy_artifact cache 

Source154:	%sbt_ivy_descriptor cache

Source55:	%sbt_ivy_artifact compiler-integration 

Source155:	%sbt_ivy_descriptor compiler-integration

Source56:	%sbt_ivy_artifact api 

Source156:	%sbt_ivy_descriptor api

Source57:	%sbt_ivy_artifact main 

Source157:	%sbt_ivy_descriptor main

Source58:	%sbt_ivy_artifact classpath 

Source158:	%sbt_ivy_descriptor classpath

Source59:	%sbt_ivy_artifact logging 

Source159:	%sbt_ivy_descriptor logging

Source60:	%sbt_ivy_artifact compile 

Source160:	%sbt_ivy_descriptor compile

Source61:	%sbt_ivy_artifact process 

Source161:	%sbt_ivy_descriptor process

Source62:	%sbt_ivy_artifact actions

Source162:	%sbt_ivy_descriptor actions

Source63:	%sbt_ivy_artifact sbt-launch 

Source163:	%sbt_ivy_descriptor sbt-launch

Source64:	%sbt_ivy_artifact scripted-plugin 

Source164:	%sbt_ivy_descriptor scripted-plugin

Source65:	%sbt_ivy_artifact tracking 

Source165:	%sbt_ivy_descriptor tracking

Source66:	%sbt_ivy_artifact tasks 

Source166:	%sbt_ivy_descriptor tasks

Source67:	%sbt_ivy_artifact completion 

Source167:	%sbt_ivy_descriptor completion

Source68:	%sbt_ivy_artifact cross 

Source168:	%sbt_ivy_descriptor cross

Source69:	%sbt_ivy_artifact relation 

Source169:	%sbt_ivy_descriptor relation

Source70:	%sbt_ivy_artifact io 

Source170:	%sbt_ivy_descriptor io

Source71:	%sbt_ivy_artifact sbt 

Source171:	%sbt_ivy_descriptor sbt

Source72:	%sbt_ivy_artifact scripted-framework 

Source172:	%sbt_ivy_descriptor scripted-framework

# sbt plugins
Source73:	http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-ghpages/scala_%{scala_short_version}/sbt_%{sbt_short_version}/%{sbt_ghpages_version}/jars/sbt-ghpages.jar
Source74:	http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-site/scala_%{scala_short_version}/sbt_%{sbt_short_version}/%{sbt_site_jar_version}/jars/sbt-site.jar
Source75:	http://scalasbt.artifactoryonline.com/scalasbt/sbt-plugin-releases/com.typesafe.sbt/sbt-git/scala_%{scala_short_version}/sbt_%{sbt_short_version}/%{sbt_git_version}/jars/sbt-git.jar

%if %{?want_sxr}
# sxr
Source76:	http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt.sxr/sxr_%{scala_short_version}/%{sxr_version}/jars/sxr_%{scala_short_version}.jar
%endif

# scalacheck
%if %{?want_scalacheck}
Source78:	http://oss.sonatype.org/content/repositories/releases/org/scalacheck/scalacheck_%{scala_short_version}/%{scalacheck_version}/scalacheck_%{scala_short_version}-%{scalacheck_version}.jar
%endif

%if %{?want_specs2}
# specs
Source79:	http://oss.sonatype.org/content/repositories/releases/org/specs2/specs2_%{scala_short_version}/%{specs2_version}/specs2_%{scala_short_version}-%{specs2_version}.jar
%endif

%if %{?want_dispatch_http}
# dispatch-http
Source81:	http://oss.sonatype.org/content/repositories/releases/net/databinder/dispatch-http_%{scala_short_version}/%{dispatch_http_version}/dispatch-http_%{scala_short_version}-%{dispatch_http_version}.jar
%endif

# precompiled (need only for bootstrapping)

Source82:	http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_8_2/%{sbt_bootstrap_version}/jars/compiler-interface-bin.jar#/compiler-interface-bin-2_8_2.jar

Source182:	%sbt_ivy_descriptor precompiled-2_8_2

Source83:	http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_2/%{sbt_bootstrap_version}/jars/compiler-interface-bin.jar#/compiler-interface-bin-2_9_2.jar

Source183:	%sbt_ivy_descriptor precompiled-2_9_2

Source84:	http://repo.typesafe.com/typesafe/ivy-releases/org.scala-sbt/precompiled-2_9_3/%{sbt_bootstrap_version}/jars/compiler-interface-bin.jar#/compiler-interface-bin-2_9_3.jar

Source184:	%sbt_ivy_descriptor precompiled-2_9_3


%endif

BuildRequires:	mvn(org.scala-lang:scala-compiler)
BuildRequires:	java-devel
BuildRequires:	python
# maven is required because climbing-nemesis.py uses xmvn-resolve
BuildRequires:	maven-local

BuildRequires:	mvn(org.bouncycastle:bcprov-jdk16)
BuildRequires:	mvn(org.bouncycastle:bcpg-jdk16)
BuildRequires:	hawtjni
BuildRequires:	mvn(org.fusesource.jansi:jansi)
BuildRequires:	jline2
BuildRequires:	proguard

BuildRequires:	javapackages-tools
Requires:	javapackages-tools

BuildRequires:	mvn(oro:oro)
BuildRequires:	mvn(com.jcraft:jsch)
BuildRequires:	mvn(commons-httpclient:commons-httpclient)
BuildRequires:	apache-ivy
BuildRequires:	mvn(org.scala-lang:scala-compiler)
BuildRequires:	mvn(org.scala-lang:scala-library)
BuildRequires:	mvn(org.scala-lang:scala-reflect)
BuildRequires:	mvn(org.jsoup:jsoup)

Requires:	mvn(oro:oro)
Requires:	mvn(com.jcraft:jsch)
Requires:	mvn(commons-httpclient:commons-httpclient)
Requires:	apache-ivy
Requires:	mvn(org.scala-lang:scala-compiler)
Requires:	mvn(org.scala-lang:scala-library)
Requires:	mvn(org.scala-lang:scala-reflect)
Requires:	mvn(org.jsoup:jsoup)
Requires:	proguard

Requires:	mvn(org.bouncycastle:bcprov-jdk16)
Requires:	mvn(org.bouncycastle:bcpg-jdk16)
Requires:	mvn(org.fusesource.jansi:jansi)
Requires:	jline2

BuildRequires:	sbinary = %{sbinary_version}
BuildRequires:	test-interface = %{testinterface_version}

Requires:	sbinary = %{sbinary_version}
Requires:	test-interface = %{testinterface_version}

%if !%{do_bootstrap}
BuildRequires:	sbt = %{sbt_bootstrap_version}

%if %{do_proper}
BuildRequires:	sbt-ghpages = %{sbt_ghpages_version}
BuildRequires:	sbt-site = %{sbt_site_version}
BuildRequires:	sbt-git = %{sbt_git_version}

BuildRequires:	sxr = %{sxr_version}
BuildRequires:	scalacheck = %{scalacheck_version}
BuildRequires:	specs2 = %{specs2_version}
%endif

%endif

%description
sbt is the simple build tool for Scala and Java projects.

%prep
%setup -q -n %{name}-%{sbt_version}%{sbt_build}

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%if !%{do_proper}
%patch4 -p1
%endif

%patch5

sed -i -e '/% "test"/d' project/Util.scala

cp %{SOURCE16} .
cp %{SOURCE15} .
chmod 755 climbing-nemesis.py

cp %{SOURCE17} .

%if %{do_bootstrap}
cp %{SOURCE63} .
%endif

sed -i -e '/dispatch-http/d' project/p.sbt
sed -i -e '/sbt-site/d' project/p.sbt
sed -i -e '/sbt-ghpages/d' project/p.sbt


sed -i -e 's/0.7.1/0.6.2/g' project/p.sbt

for props in rpmbuild-sbt.boot.properties sbt.boot.properties ; do
    sed -i -e 's/FEDORA_SCALA_VERSION/%{scala_version}/g' $props
    sed -i -e 's/FEDORA_SBT_VERSION/%{sbt_version}/g' $props
done

sed -i -e 's/0.13.0/%{sbt_bootstrap_version}/g' project/build.properties

######################################################################
# Here we're going to use the climbing-nemesis script to populate a local
# Ivy repository.  sbt needs these dependencies to be resolvable by Ivy
# and not merely on the classpath.  When we build a package, we'll be taking
# this repository and installing it alongside the sbt jars so our sbt binary
# can use it.
######################################################################

./climbing-nemesis.py org.jsoup jsoup %{ivy_local_dir} --version 1.7.1

# fake on F19
./climbing-nemesis.py com.jcraft jsch %{ivy_local_dir} --version 0.1.46

# scala compiler; nb; we may need to treat the compiler specially to remove the spurious jline dependency
./climbing-nemesis.py org.scala-lang scala-library %{ivy_local_dir} --version %{scala_version}
./climbing-nemesis.py org.scala-lang scala-compiler %{ivy_local_dir} --version %{scala_version}
./climbing-nemesis.py org.scala-lang scala-reflect %{ivy_local_dir} --version %{scala_version}

# fake on F19
./climbing-nemesis.py jline jline %{ivy_local_dir} --version 2.11
./climbing-nemesis.py org.fusesource.jansi jansi %{ivy_local_dir} --version 1.12
./climbing-nemesis.py org.fusesource.jansi jansi-native %{ivy_local_dir} --version 1.8
./climbing-nemesis.py org.fusesource.hawtjni hawtjni-runtime %{ivy_local_dir} --version 1.17

%if %{do_bootstrap}
# we need to use the bundled ivy in the bootstrap build because 2.3.0
# is source and binary incompatible with 2.3.0-rc1 (which upstream sbt
# 0.13.1 is built against)

./climbing-nemesis.py org.apache.ivy ivy %{ivy_local_dir} --version 2.3.0-rc1 --pomfile %{SOURCE18} --jarfile %{SOURCE19} # --extra-dep org.bouncycastle:bcpg-jdk16:1.46 --extra-dep org.bouncycastle:bcprov-jdk16:1.46
%endif

# we're building against Ivy 2.3.0, though
./climbing-nemesis.py org.apache.ivy ivy %{ivy_local_dir} --version 2.3.0 --pomfile %{SOURCE20} --jarfile %{_javadir}/ivy.jar # --extra-dep org.bouncycastle:bcpg-jdk16:1.46 --extra-dep org.bouncycastle:bcprov-jdk16:1.46

## BEGIN OPTIONAL IVY DEPS

# bouncycastle pgp signature generator
# ./climbing-nemesis.py org.bouncycastle bcpg-jdk16 %{ivy_local_dir} --version 1.46
# ./climbing-nemesis.py org.bouncycastle bcprov-jdk16 %{ivy_local_dir} --version 1.46

# ORO (blast from the past)
./climbing-nemesis.py oro oro  %{ivy_local_dir} --version 2.0.8

# JSCH
./climbing-nemesis.py com.jcraft jsch  %{ivy_local_dir} --version 0.1.31

# commons-httpclient
./climbing-nemesis.py commons-httpclient commons-httpclient %{ivy_local_dir} --version 3.0

## END OPTIONAL IVY DEPS

./climbing-nemesis.py net.sf.proguard proguard-base %{ivy_local_dir} --version 4.8 --jarfile %{_javadir}/proguard/proguard.jar

%if %{do_bootstrap}
cp %{SOURCE132} org.scala-sbt.ivy-%{sbt_bootstrap_version}.ivy.xml
cp %{SOURCE171} org.scala-sbt.sbt-%{sbt_bootstrap_version}.ivy.xml

sed -i -e '/precompiled/d' org.scala-sbt.ivy-%{sbt_bootstrap_version}.ivy.xml
sed -i -e '/precompiled/d' org.scala-sbt.sbt-%{sbt_bootstrap_version}.ivy.xml

./climbing-nemesis.py --jarfile %{SOURCE32} --ivyfile org.scala-sbt.ivy-%{sbt_bootstrap_version}.ivy.xml org.scala-sbt ivy %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE33} --ivyfile %{SOURCE133} org.scala-sbt task-system %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE34} --ivyfile %{SOURCE134} org.scala-sbt compiler-interface-src %{ivy_local_dir} --version %{sbt_bootstrap_version} --override org.scala-sbt:compiler-interface --override-dir-only
./climbing-nemesis.py --jarfile %{SOURCE35} --ivyfile %{SOURCE135} org.scala-sbt compiler-interface-bin %{ivy_local_dir} --version %{sbt_bootstrap_version} --override org.scala-sbt:compiler-interface --override-dir-only
./climbing-nemesis.py --jarfile %{SOURCE36} --ivyfile %{SOURCE136} org.scala-sbt testing %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE37} --ivyfile %{SOURCE137} org.scala-sbt command %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE38} --ivyfile %{SOURCE138} org.scala-sbt test-agent %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE39} --ivyfile %{SOURCE139} org.scala-sbt launcher-interface %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE40} --ivyfile %{SOURCE140} org.scala-sbt run %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE41} --ivyfile %{SOURCE141} org.scala-sbt compiler-ivy-integration %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE42} --ivyfile %{SOURCE142} org.scala-sbt scripted-sbt %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE44} --ivyfile %{SOURCE144} org.scala-sbt collections %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE45} --ivyfile %{SOURCE145} org.scala-sbt persist %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE46} --ivyfile %{SOURCE146} org.scala-sbt classfile %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE47} --ivyfile %{SOURCE147} org.scala-sbt control %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE48} --ivyfile %{SOURCE148} org.scala-sbt launcher %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE49} --ivyfile %{SOURCE149} org.scala-sbt apply-macro %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE50} --ivyfile %{SOURCE150} org.scala-sbt datatype-generator %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE51} --ivyfile %{SOURCE151} org.scala-sbt interface %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE52} --ivyfile %{SOURCE152} org.scala-sbt main-settings %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE53} --ivyfile %{SOURCE153} org.scala-sbt incremental-compiler %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE54} --ivyfile %{SOURCE154} org.scala-sbt cache %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE55} --ivyfile %{SOURCE155} org.scala-sbt compiler-integration %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE56} --ivyfile %{SOURCE156} org.scala-sbt api %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE57} --ivyfile %{SOURCE157} org.scala-sbt main %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE58} --ivyfile %{SOURCE158} org.scala-sbt classpath %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE59} --ivyfile %{SOURCE159} org.scala-sbt logging %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE60} --ivyfile %{SOURCE160} org.scala-sbt compile %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE61} --ivyfile %{SOURCE161} org.scala-sbt process %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE62} --ivyfile %{SOURCE162} org.scala-sbt actions %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE63} --ivyfile %{SOURCE163} org.scala-sbt sbt-launch %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE64} --ivyfile %{SOURCE164} org.scala-sbt scripted-plugin %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE65} --ivyfile %{SOURCE165} org.scala-sbt tracking %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE66} --ivyfile %{SOURCE166} org.scala-sbt tasks %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE67} --ivyfile %{SOURCE167} org.scala-sbt completion %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE68} --ivyfile %{SOURCE168} org.scala-sbt cross %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE69} --ivyfile %{SOURCE169} org.scala-sbt relation %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE70} --ivyfile %{SOURCE170} org.scala-sbt io %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE71} --ivyfile org.scala-sbt.sbt-%{sbt_bootstrap_version}.ivy.xml org.scala-sbt sbt %{ivy_local_dir} --version %{sbt_bootstrap_version}
./climbing-nemesis.py --jarfile %{SOURCE72} --ivyfile %{SOURCE172} org.scala-sbt scripted-framework %{ivy_local_dir} --version %{sbt_bootstrap_version}

# plugins

./climbing-nemesis.py --jarfile %{SOURCE73} com.typesafe.sbt sbt-ghpages %{ivy_local_dir} --version %{sbt_ghpages_version} --meta e:scalaVersion=%{scala_short_version} --meta e:sbtVersion=%{sbt_short_version}
./climbing-nemesis.py --jarfile %{SOURCE74} com.typesafe.sbt sbt-site %{ivy_local_dir} --version %{sbt_site_version} --meta e:scalaVersion=%{scala_short_version} --meta e:sbtVersion=%{sbt_short_version}
./climbing-nemesis.py --jarfile %{SOURCE75} com.typesafe.sbt sbt-git %{ivy_local_dir} --version %{sbt_git_version} --meta e:scalaVersion=%{scala_short_version} --meta e:sbtVersion=%{sbt_short_version}

# SXR
%if %{?want_sxr}
./climbing-nemesis.py --jarfile %{SOURCE76} org.scala-sbt.sxr sxr %{ivy_local_dir} --version %{sxr_version} --scala %{scala_short_version}
%endif

# test-interface
./climbing-nemesis.py org.scala-sbt test-interface %{ivy_local_dir} --version 1.0

# sbinary
./climbing-nemesis.py org.scala-tools.sbinary sbinary_%{scala_short_version} %{ivy_local_dir} # --scala %{scala_short_version}

# scalacheck
%if %{?want_scalacheck}
./climbing-nemesis.py --jarfile %{SOURCE78} org.scalacheck scalacheck %{ivy_local_dir} --version %{scalacheck_version} --scala %{scala_short_version}
%endif

# specs2
%if %{?want_specs2}
./climbing-nemesis.py --jarfile %{SOURCE79} org.specs2 specs2 %{ivy_local_dir} --version %{specs2_version} --scala %{scala_short_version}
%endif

%if %{?want_dispatch_http}
# dispatch-http
./climbing-nemesis.py --jarfile %{SOURCE81} net.databinder dispatch-http_%{scala_short_version} %{ivy_local_dir} --version %{dispatch_http_version}
%endif

%else
# If we aren't bootstrapping, copy installed jars into local ivy cache
# dir.  In the future, we'll use Mikołaj's new xmvn Ivy resolver.

# sbt components
for jar in actions api apply-macro cache classfile classpath collections command compile compiler-integration compiler-ivy-integration completion control cross datatype-generator incremental-compiler interface io ivy launcher launcher-interface logging main main-settings persist process relation run sbt scripted-framework scripted-plugin scripted-sbt tasks task-system test-agent testing tracking; do
    ./climbing-nemesis.py --jarfile %{_javadir}/%{name}/${jar}.jar --ivyfile %{installed_ivy_local}/org.scala-sbt/${jar}/%{sbt_bootstrap_version}/ivy.xml org.scala-sbt ${jar} %{ivy_local_dir}
done

./climbing-nemesis.py --jarfile %{_javadir}/%{name}/compiler-interface-src.jar --ivyfile %{installed_ivy_local}/org.scala-sbt/compiler-interface/%{sbt_bootstrap_version}/ivy.xml org.scala-sbt compiler-interface-src %{ivy_local_dir} --version %{sbt_bootstrap_version} --override org.scala-sbt:compiler-interface --override-dir-only

./climbing-nemesis.py --jarfile %{_javadir}/%{name}/compiler-interface-bin.jar --ivyfile %{installed_ivy_local}/org.scala-sbt/compiler-interface/%{sbt_bootstrap_version}/ivy.xml org.scala-sbt compiler-interface-bin %{ivy_local_dir} --version %{sbt_bootstrap_version} --override org.scala-sbt:compiler-interface --override-dir-only

# test-interface
./climbing-nemesis.py org.scala-sbt test-interface %{ivy_local_dir} --version 1.0

# sbinary
./climbing-nemesis.py org.scala-tools.sbinary sbinary_%{scala_short_version} %{ivy_local_dir} # --scala %{scala_short_version}

%endif

# better not to try and compile the docs project
rm -f project/Docs.scala

mkdir sbt-boot-dir

%if %{do_bootstrap}
mkdir -p sbt-boot-dir/scala-%{scala_version}/org.scala-sbt/%{name}/%{sbt_bootstrap_version}/
mkdir -p sbt-boot-dir/scala-%{scala_version}/lib

for jar in $(find %{ivy_local_dir}/ -name \*.jar | grep fusesource) ; do 
   cp --symbolic-link $(readlink $jar) sbt-boot-dir/scala-%{scala_version}/lib
done

# this is a hack, obvs
for jar in $(find %{ivy_local_dir}/ -name \*.jar | grep bouncycastle) ; do 
   cp --symbolic-link $(readlink $jar) sbt-boot-dir/scala-%{scala_version}/lib
done

%endif
mkdir -p scala/lib
for jar in %{_javadir}/scala/*.jar ; do
   cp --symbolic-link $jar scala/lib
done

sed -i -e 's/["]2[.]10[.][234]["]/\"%{scala_version}\"/g' $(find . -name \*.sbt -type f) $(find . -name \*.xml) $(find . -name \*.scala)
sed -i -e 's/["]2[.]10[.]2-RC2["]/\"%{scala_version}\"/g' $(find . -name \*.sbt -type f)

# work around proguard bugs with the Scala library
sed -i -e 's/"-dontnote",/"-dontnote", "-dontshrink", "-dontoptimize",/g' project/Proguard.scala
sed -i -e 's/mapLibraryJars.all filterNot in[.]toSet./mapLibraryJars(all.map {f => new java.io.File(f.getCanonicalPath())} filterNot in.map {f => new java.io.File(f.getCanonicalPath())}.toSet)/g' project/Proguard.scala

%build

%if %{do_bootstrap}
java -Xms512M -Xmx1536M -Xss1M -XX:+CMSClassUnloadingEnabled -jar -Dfedora.sbt.ivy.dir=ivy-local -Dfedora.sbt.boot.dir=sbt-boot-dir -Divy.checksums='""' -Dsbt.boot.properties=rpmbuild-sbt.boot.properties sbt-launch.jar package "set publishTo in Global := Some(Resolver.file(\"published\", file(\"published\"))(Resolver.ivyStylePatterns) ivys \"$(pwd)/published/[organization]/[module]/[revision]/ivy.xml\" artifacts \"$(pwd)/published/[organization]/[module]/[revision]/[artifact]-[revision].[ext]\")" publish makePom
%else
export SBT_IVY_DIR=$PWD/ivy-local
export SBT_BOOT_DIR=$PWD/sbt-boot-dir
export SBT_BOOT_PROPERTIES=rpmbuild-sbt.boot.properties
sbt package "set publishTo in Global := Some(Resolver.file(\"published\", file(\"published\"))(Resolver.ivyStylePatterns) ivys \"$(pwd)/published/[organization]/[module]/[revision]/ivy.xml\" artifacts \"$(pwd)/published/[organization]/[module]/[revision]/[artifact]-[revision].[ext]\")" publish makePom
%endif

# XXX: this is a hack; we seem to get correct metadata but bogus JARs
# from "sbt publish" for some reason
for f in $(find published -name \*.jar ) ; do
    find . -ipath \*target\* -and -name $(basename $f) -exec cp '{}' $f \;
done

%install

mkdir -p %{buildroot}/%{_javadir}/%{name}

# collect and install SBT jars
find published -name \*.jar | grep -v sbt-launch.jar | grep %{sbt_full_version}.jar | xargs -I JAR cp JAR %{buildroot}/%{_javadir}/%{name}

mkdir -p %{buildroot}/%{_bindir}
cp -p %{SOURCE21} %{buildroot}/%{_bindir}/%{name}
chmod 755 %{buildroot}/%{_bindir}/%{name}

pushd %{buildroot}/%{_javadir}/%{name}
for jar in *.jar ; do
    mv $jar $(echo $jar | sed -e 's/-%{sbt_full_version}//g')
done
popd

rm -f %{buildroot}/%{_javadir}/%{name}/sbt-launch.jar

mkdir -p %{buildroot}/%{_sysconfdir}/%{name}

# XXXXXXX
for props in rpmbuild-sbt.boot.properties sbt.boot.properties ; do
    sed 's/debug/info/' < $props > %{buildroot}/%{_sysconfdir}/%{name}/$props
done

mkdir -p %{buildroot}/%{installed_ivy_local}

# remove things that we only needed for the bootstrap build

rm -rf %{ivy_local_dir}/net.databinder
rm -rf %{ivy_local_dir}/com.typesafe.sbt
rm -rf %{ivy_local_dir}/org.scalacheck
rm -rf %{ivy_local_dir}/org.scala-sbt.sxr
rm -rf %{ivy_local_dir}/cache

rm -rf %{ivy_local_dir}/org.scala-sbt/sbt-launch

(cd %{ivy_local_dir} ; tar --exclude=.md5 --exclude=.sha1 -cf - .) | (cd %{buildroot}/%{installed_ivy_local} ; tar -xf - )
(cd published ; tar --exclude=\*.md5 --exclude=\*.sha1 -cf - .) | (cd %{buildroot}/%{installed_ivy_local} ; tar -xf - )

for bootjar in $(find %{buildroot}/%{installed_ivy_local}/org.scala-sbt -type l) ; do
rm -f $bootjar
ln -s %{_javadir}/%{name}/$(basename $bootjar) $bootjar
done

%if %{do_bootstrap}
# remove bootstrap ivy 2.3.0-rc1 jar if we're using it
find %{buildroot}/%{installed_ivy_local} -lname %{SOURCE19} | xargs dirname | xargs rm -rf

concretize() {
    src=$(readlink $1)
    rm $1 && cp $src $1
}

# copy other bootstrap dependency jars from their sources
for depjar in $(find %{buildroot}/%{installed_ivy_local} -lname %{_sourcedir}\* ) ; do
concretize $depjar
done

%endif # do_bootstrap

find %{buildroot}/%{installed_ivy_local} -name \*.lock -delete

find %{buildroot}/%{_datadir}/%{name} -name \*test-interface\* | xargs rm -rf
./climbing-nemesis.py org.scala-sbt test-interface %{buildroot}/%{installed_ivy_local} --version %{testinterface_version}

### install POM files
mkdir -p %{buildroot}/%{_mavenpomdir}
rm -f .rpm_pomfiles
touch .rpm_pomfiles
declare -a shortnames

for pom in $(find . -name \*.pom | grep -v compiler-interface | grep -v launch-test | grep -v sbt-launch ) ; do 
    shortname=$(echo $pom | sed -e 's/^.*[/]\([a-z-]\+\)-0.13.1.pom$/\1/g')
    echo installing POM $pom to %{_mavenpomdir}/JPP.%{name}-${shortname}.pom
    cp $pom %{buildroot}/%{_mavenpomdir}/JPP.%{name}-${shortname}.pom
    echo %{_mavenpomdir}/JPP.%{name}-${shortname}.pom >> .rpm_pomfiles
    shortnames=( "${shortnames[@]}" $shortname )
done

echo shortnames are ${shortnames[@]}

for sub in ${shortnames[@]} ; do
    echo running add_maven_depmap JPP.%{name}-${sub}.pom %{name}/${sub}.jar
    %add_maven_depmap JPP.%{name}-${sub}.pom %{name}/${sub}.jar
done

%files -f .mfiles
%{_datadir}/%{name}
%{_bindir}/%{name}*
%{_javadir}/sbt/compiler-interface*.jar
%{_sysconfdir}/%{name}
%doc README.md LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17145 |21mr|scala-2.10.6-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global fullversion %{version}
%global release_repository http://nexus.scala-tools.org/content/repositories/releases
%global snapshot_repository http://nexus.scala-tools.org/content/repositories/snapshots
%global jansi_jar %{_javadir}/jansi/jansi.jar
%global jline2_jar %{_javadir}/jline/jline.jar
%global scaladir %{_datadir}/scala

%global want_jdk8 1
%global bootstrap_build 0

Name:           scala
Version:        2.10.6
Release:        16
Summary:        A hybrid functional/object-oriented language for the JVM
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
# License was confirmed to be standard BSD by fedora-legal
# https://www.redhat.com/archives/fedora-legal-list/2007-December/msg00012.html
# files in forkjoin module are under CC0
# files in threadpool module are under Public Domain
License:        BSD and CC0 and Public Domain
URL:            http://www.scala-lang.org/

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
Source1:        scala-library-2.10.0-bnd.properties
# Bootstrap file generated by ./get-sources.sh
Source2:        scala-2.10.3-bootstrap.tgz
# git information generated by ./get-sources.sh
Source3:        scala.gitinfo


# we need this binary copy of the scala 2.10.4 compiler
# for bootstrapping under Java 8; this can be removed if
# necessary after Scala 2.10.5 is released if it uses 2.10.4
# for bootstrapping.
Source4:        http://www.scala-lang.org/files/archive/scala-2.10.4.tgz

# Remove bundled binaries which are possibly proprietary
Source5:        generate-tarball.sh

# Source0:        http://www.scala-lang.org/downloads/distrib/files/scala-sources-%%{fullversion}.tgz
# Change the default classpath (SCALA_HOME)
Patch1:         scala-2.10.0-tooltemplate.patch
# Use system jline2 instead of bundled jline2
Patch2:         scala-2.10.3-use_system_jline.patch
# change org.scala-lang jline in org.sonatype.jline jline
Patch3:         scala-2.10.3-compiler-pom.patch
# Patch Swing module for JDK 1.7
Patch4:         scala-2.10.2-java7.patch
# fix incompatibilities with JLine 2.7
Patch6:         scala-2.10-jline.patch
# work around a known bug when running binary-compatibility tests against
# non-optimized builds (we can't do optimized builds due to another bug):
# http://grokbase.com/t/gg/scala-internals/1347g1jahq/2-10-x-bc-test-fails
# Patch7:         scala-2.10.1-bc.patch
Patch8:         scala-2.10.4-build_xml.patch
# Stop scaladoc from trying to bundle non-existent resources that were
# removed due to being in object form only, whithout sources
Patch9:         scala-2.10.6-scaladoc-resources.patch

Source21:       scala.keys
Source22:       scala.mime
Source23:       scala-mime-info.xml
Source24:       scala.ant.d

Source31:       scala-bootstript.xml

BuildRequires:  java-devel >= 1:1.7.0
BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  ant-contrib
BuildRequires:  jline >= 2.10
BuildRequires:  aqute-bnd
BuildRequires:  junit
BuildRequires:  javapackages-local

%if !(0%{?bootstrap_build})
BuildRequires:  scala
%endif

# Require full javapackages-tools since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools
Requires:       jansi

Requires:       java-headless >= 1:1.7.0
Requires:       jline >= 2.10

%{?filter_setup:
%filter_from_requires /ant/d;
%filter_setup
}

%description
Scala is a general purpose programming language designed to express common
programming patterns in a concise, elegant, and type-safe way. It smoothly
integrates features of object-oriented and functional languages. It is also
fully interoperable with Java.

%package apidoc
Summary:        Documentation for the Scala programming language

%description apidoc
Scala is a general purpose programming language for the JVM that blends
object-oriented and functional programming. This package provides
reference and API documentation for the Scala programming language.

%package swing
Summary:        The swing library for the scala programming languages
Requires:       scala = %{version}-%{release}
Requires:       java >= 1:1.7.0

%description swing
This package contains the swing library for the scala programming languages.
This library is required to develope GUI-releate applications in scala.
The release provided by this packageis not the original version 
from upstream because this version is not compatible with JDK-1.7.

%package -n ant-scala
Summary:        Development files for Scala
Requires:       scala = %{version}-%{release}, ant

%description -n ant-scala
Scala is a general purpose programming language for the JVM that blends
object-oriented and functional programming. This package enables support for
the scala ant tasks.

%if 0
%package examples
Summary:        Examples for the Scala programming language
# Otherwise it will pick up some perl module
Autoprov:       0
Requires:       scala = %{version}-%{release}
Requires:       ant

%description examples
Scala is a general purpose programming language for the JVM that blends
object-oriented and functional programming. This package contains examples for
the Scala programming language

%package swing-examples
Summary:        Examples for the Scala Swing library
Requires:       scala = %{version}-%{release}
Requires:       ant

%description swing-examples
This package contains examples for the Swing library of the Scala language which is required
to create GUI applications in the Scala programming language. 
%endif

%prep

%global _default_patch_fuzz 2

%setup -q 
%patch1 -p1 -b .tool
%patch2 -p1 -b .sysjline
%patch3 -p1 -b .compiler-pom
%patch4 -p1 -b .jdk7
%patch6 -p1 -b .rvk
# %patch7 -p1 -b .bc
%patch8 -p1 -b .bld
%patch9 -p1 -b .scaladoc

echo "starr.version=2.10.4\nstarr.use.released=0" > starr.number

pushd src
rm -rf jline
popd

sed -i '/is not supported by/d' build.xml
sed -i '/exec.*pull-binary-libs.sh/d' build.xml

%if 0%{?bootstrap_build}
%global do_bootstrap -DdoBootstrapBuild=yes
tar -xzvf %{SOURCE2}
%if %{want_jdk8}
tar -xzvf %{SOURCE4} --strip-components=1 scala-2.10.4/lib
%endif
%else
%global do_bootstrap %{nil}
%endif

pushd lib
#  fjbg.jar ch.epfl.lamp
#  forkjoin.jar scala.concurrent.forkjoin available @ https://bugzilla.redhat.com/show_bug.cgi?id=854234 as jsr166y
#  find -not \( -name 'scala-compiler.jar' -or -name 'scala-library.jar' -or -name 'midpapi10.jar' -or \
#       -name 'msil.jar' -or -name 'fjbg.jar' -or -name 'forkjoin.jar' \) -and -name '*.jar' -delete


#  midpapi10.jar https://bugzilla.redhat.com/show_bug.cgi?id=807242 ?
#  msil.jar ch.epfl.lamp.compiler
#  scala-compiler.jar
#  scala-library-src.jar
#  scala-library.jar
%if !(0%{?bootstrap_build})
    rm -rf scala-compiler.jar
    ln -s $(build-classpath scala/scala-compiler.jar) scala-compiler.jar
    rm -rf scala-library.jar
    ln -s $(build-classpath scala/scala-library.jar) scala-library.jar
    rm -rf scala-reflect.jar
    ln -s $(build-classpath scala/scala-reflect.jar) scala-reflect.jar
%endif
  pushd ant
    rm -rf ant.jar
    rm -rf ant-contrib.jar
    ln -s $(build-classpath ant.jar) ant.jar
    ln -s $(build-classpath ant/ant-contrib) ant-contrib.jar
#    rm -rf ant-dotnet-1.0.jar
#    rm -rf maven-ant-tasks-2.1.1.jar
#    rm -rf vizant.jar
  popd
popd

cp -rf %{SOURCE31} .


sed -i -e 's!@JLINE@!%{jline2_jar}!g' build.xml

echo echo $(head -n 1 %{SOURCE3}) > tools/get-scala-commit-sha
echo echo $(tail -n 1 %{SOURCE3}) > tools/get-scala-commit-date
chmod 755 tools/get-scala-*

%build

export ANT_OPTS="-Xms2048m -Xmx2048m %{do_bootstrap}"

# NB:  the "build" task is (unfortunately) necessary
#  build-opt will fail due to a scala optimizer bug
#  and its interaction with the system jline
# ant -f scala-bootstript.xml build
ant build docs || exit 1
pushd build/pack/lib
mv scala-library.jar scala-library.jar.no
bnd wrap --properties %{SOURCE1} --output scala-library.jar \
    --version "%{version}" scala-library.jar.no
popd

%check

# these tests fail, but their failures appear spurious
rm -f test/files/run/parserJavaIdent.scala
rm -rf test/files/presentation/implicit-member
rm -rf test/files/presentation/t5708
rm -rf test/files/presentation/ide-bug-1000349
rm -rf test/files/presentation/ide-bug-1000475
rm -rf test/files/presentation/callcc-interpreter
rm -rf test/files/presentation/ide-bug-1000531
rm -rf test/files/presentation/visibility
rm -rf test/files/presentation/ping-pong

rm -f test/osgi/src/ReflectionToolboxTest.scala

# fails under mock but not under rpmbuild
rm -f test/files/run/t6223.scala

## Most test dependencies still aren't available in Fedora
# ant test

%install

install -d $RPM_BUILD_ROOT%{_bindir}
for prog in scaladoc fsc scala scalac scalap; do
        install -p -m 755 build/pack/bin/$prog $RPM_BUILD_ROOT%{_bindir}
done

install -p -m 755 -d $RPM_BUILD_ROOT%{scaladir}/lib

# Add symlinks in lib directory
%mvn_file ':{*}:jar:' %{name}/@1 %{scaladir}/lib/@1
# Add compat symlinks to POMs because climbing-nemesis uses the old JPP naming convention
%mvn_file ':{*}:pom:' %{name}/@1 JPP.%{name}-@1

%mvn_package :scala-swing swing

# XXX: add scala-partest when it works again
for libname in scala-compiler \
    scala-library \
    scala-reflect \
    scalap \
    scala-swing ; do
        sed -i "s|@VERSION@|%{fullversion}|" src/build/maven/$libname-pom.xml
        sed -i "s|@RELEASE_REPOSITORY@|%{release_repository}|" src/build/maven/$libname-pom.xml
        sed -i "s|@SNAPSHOT_REPOSITORY@|%{snapshot_repository}|" src/build/maven/$libname-pom.xml
        %mvn_artifact src/build/maven/$libname-pom.xml build/pack/lib/$libname.jar
done
ln -s $(abs2rel %{jline2_jar} %{scaladir}/lib) $RPM_BUILD_ROOT%{scaladir}/lib
ln -s $(abs2rel %{jansi_jar} %{scaladir}/lib) $RPM_BUILD_ROOT%{scaladir}/lib

%mvn_install

install -d $RPM_BUILD_ROOT%{_sysconfdir}/ant.d
install -p -m 644 %{SOURCE24} $RPM_BUILD_ROOT%{_sysconfdir}/ant.d/scala

%if 0
cp -pr docs/examples $RPM_BUILD_ROOT%{_datadir}/scala/
%endif 

install -d $RPM_BUILD_ROOT%{_datadir}/mime-info
install -p -m 644 %{SOURCE21} %{SOURCE22} $RPM_BUILD_ROOT%{_datadir}/mime-info/

install -d $RPM_BUILD_ROOT%{_datadir}/mime/packages/
install -p -m 644 %{SOURCE23} $RPM_BUILD_ROOT%{_datadir}/mime/packages/

sed -i -e 's,@JAVADIR@,%{_javadir},g' -e 's,@DATADIR@,%{_datadir},g' $RPM_BUILD_ROOT%{_bindir}/*

install -d $RPM_BUILD_ROOT%{_mandir}/man1
install -p -m 644 build/scaladoc/manual/man/man1/* $RPM_BUILD_ROOT%{_mandir}/man1

%files -f .mfiles
%{_bindir}/*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/lib
%{_datadir}/%{name}/lib/j*.jar
%{_datadir}/mime-info/*
%{_datadir}/mime/packages/*
%{_mandir}/man1/*
%license docs/LICENSE

%files swing -f .mfiles-swing
%license docs/LICENSE

%files -n ant-scala
# Following is plain config because the ant task classpath could change from
# release to release
%config %{_sysconfdir}/ant.d/*
%license docs/LICENSE

%files apidoc
%doc build/scaladoc/library/*
%license docs/LICENSE

%if 0
%files examples
%{_datadir}/scala/examples
%exclude %{_datadir}/scala/examples/swing 
%license docs/LICENSE

%files swing-examples
%{_datadir}/scala/examples/swing 
%license docs/LICENSE
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17146 |21mr|scannotation-1.0.3-0.19.r12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
%global alphatag r12

Name:          scannotation
Version:       1.0.3
Release:       0.19.%{alphatag}
Summary:       A Java annotation scanner
License:       ASL 2.0
URL:           http://scannotation.sourceforge.net
# Also available here https://github.com/jharting/scannotation
# How we created tarball:
# svn export -r 12  https://scannotation.svn.sourceforge.net/svnroot/scannotation scannotation-1.0.3.Final
# tar -caJf scannotation-1.0.3.Final.tar.xz scannotation-1.0.3.Final
Source0:       %{name}-%{namedversion}.tar.xz
# Adding License file
Source1:       License.txt

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: maven-local
BuildRequires: mvn(javassist:javassist)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(junit:junit)

%description
Scannotation is a Java library that creates an annotation database 
from a set of .class files.This database is really just a set of maps that index
what annotations are used and what classes are using them. Why do you need this? 
What if you are an annotation framework like an EJB 3.0 container and you want 
to automatically scan your classpath for EJB annotations so that you know what 
to deploy? Scannotation gives you apis that allow you to find archives in your 
classpath or WAR (web application) that you want to scan, then automatically 
scans them without loading each and every class within those archives

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_disable_module titan-test-jar
%pom_remove_dep :titan-cruise %{name}

# Force use servlet 3.1 apis
%pom_change_dep :servlet-api javax.servlet:javax.servlet-api:3.1.0 %{name}

cp -p %SOURCE1 .

%mvn_file org.%{name}:%{name} %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license License.txt

%files javadoc -f .mfiles-javadoc
%license License.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17147 |21mr|schroedinger-1.0.11-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Portable libraries for the high quality Dirac video codec
Name:		schroedinger
Version:	1.0.11
Release:	9
License:	LGPL/MIT/MPL
Group:		Video
Url:		http://www.diracvideo.org/
Source0:	http://www.diracvideo.org/download/schroedinger/%{name}-%{version}.tar.gz
Patch0:		schroedinger-1.0.9-fix-linking.patch
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(orc-0.4)

%description
The Schrödinger project will implement portable libraries for the high
quality Dirac video codec created by BBC Research and
Development. Dirac is a free and open source codec producing very high
image quality video.

The Schrödinger project is a project done by BBC R&D and Fluendo in
order to create a set of high quality decoder and encoder libraries
for the Dirac video codec.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Portable libraries for the high quality Dirac video codec
Group:		System/Libraries

%description -n %{libname}
The Schrödinger project will implement portable libraries for the high
quality Dirac video codec created by BBC Research and
Development. Dirac is a free and open source codec producing very high
image quality video.

The Schrödinger project is a project done by BBC R&D and Fluendo in
order to create a set of high quality decoder and encoder libraries
for the Dirac video codec.

%files -n %{libname}
%doc COPYING* NEWS TODO
%{_libdir}/libschroedinger-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for schrodinger
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for schrodinger

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/schroedinger
%{_includedir}/schroedinger-%{api}
%{_libdir}/*.so
%{_libdir}/pkgconfig/schroedinger-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
gtkdocize
autoreconf -fi
%configure \
	--disable-static \
	--enable-gtk-doc
%make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17148 |21mr|sconfigs-1.17-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Configs for greater security
Name:		sconfigs
Version:	1.17
Release:	2
License:	BSD
Group:		Security
Url:		https://abf.rosalinux.ru/import/sconfigs
Source9:	LICENSE
Source10:	Makefile
Source11:	sshd_hardening.conf
Source12:	restrict_net_modules.conf
Source13:	restrict_fs_modules.conf
Source14:	motd
Source15:	issue.net
Source16:	issue
Source17:	95-kernel-hardening.conf
Source18:	96-network-hardening.conf
Source19:	96-network-disable-IPv6.conf
Source20:	96-disable-coredumps.conf
Source21:	90-disable-coredumps.conf
Source22:	modprobe-disabled-module.sh
Source23:	20-basic-audit.rules
Source24:	30-detailed-audit.rules
Source25:	sconfigs-audit-test.sh
Source26:	kscreenlockerrc
BuildRequires:	gawk
BuildRequires:	grep
BuildArch:	noarch

%description
Configs for greater security

#------------------------------------------------------------------

%package filesystem
Summary:	Fielsystem skeleton for sconfigs packages

%description filesystem
%{summary}

%files filesystem
%dir %{_libexecdir}/sconfigs
%dir %{_sysconfdir}/sconfigs
%dir %{_sysconfdir}/sconfigs/audit-rules

#------------------------------------------------------------------

%package modprobe
Summary:	Helper binary to block loading modules with a message
Requires:   %{name}-filesystem
Requires:   util-linux

%description modprobe
%{summary}

%files modprobe
%license LICENSE
%{_libexecdir}/sconfigs/modprobe-disabled-module.sh

#------------------------------------------------------------------

%package disable-network-modules
Summary:	Disable loading very rarely needed and potentially insecure network kernel modules
Requires:   %{name}-modprobe

%description disable-network-modules
%{summary}

%files disable-network-modules
%license LICENSE
%config(noreplace) %{_sysconfdir}/modprobe.d/restrict_net_modules.conf

#------------------------------------------------------------------

%package disable-filesystems-modules
Summary:	Disable loading very rarely needed and potentially insecure filesystems kernel modules
Requires:   %{name}-modprobe

%description disable-filesystems-modules
%{summary}

%files disable-filesystems-modules
%license LICENSE
%config(noreplace) %{_sysconfdir}/modprobe.d/restrict_fs_modules.conf

#------------------------------------------------------------------

%package disable-coredumps
Summary:	Disable storing coredumps

%description disable-coredumps
%{summary}

%files disable-coredumps
%license LICENSE
%config(noreplace) %{_sysconfdir}/sysctl.d/96-disable-coredumps.conf
%config(noreplace) %{_sysconfdir}/security/limits.d/90-disable-coredumps.conf

#------------------------------------------------------------------

%package disable-ipv6
Summary:	Disable IPv6

%description disable-ipv6
%{summary}

%files disable-ipv6
%license LICENSE
%config(noreplace) %{_sysconfdir}/sysctl.d/96-network-disable-IPv6.conf

#------------------------------------------------------------------

%package harden-kernel
Summary:	Harden kernel settings

%description harden-kernel
%{summary}
Different settings of the Linux kernel for hardening.

%files harden-kernel
%license LICENSE
%config(noreplace) %{_sysconfdir}/sysctl.d/95-kernel-hardening.conf

#------------------------------------------------------------------

%package harden-network-settings
Summary:	Harden network settings

%description harden-network-settings
%{summary}

%files harden-network-settings
%license LICENSE
%config(noreplace) %{_sysconfdir}/sysctl.d/96-network-hardening.conf

#------------------------------------------------------------------

%package sshd
Summary:	Hardening for OpenSSH SSH daemon
Requires:	openssh-server

%description sshd
%{summary}

%files sshd
%license LICENSE
%config(noreplace) %{_sysconfdir}/ssh/sshd_config.d/sshd_hardening.conf
# sshd_hardeninig.conf uses issue.sconfigs.net
%config(noreplace) %{_sysconfdir}/issue.sconfigs.net

#------------------------------------------------------------------

%package kscreenlocker
Summary:        Secure KDE screen lock settings
Requires:       kscreenlocker

%description kscreenlocker
%{summary}

%files kscreenlocker
%license LICENSE
%config(noreplace) %{_sysconfdir}/xdg/kscreenlockerrc

#------------------------------------------------------------------


%package login-warning
Summary:	Security warnings on login

%description login-warning
%{summary}

THe following will be done automatically after instalaltion:
cat %{_sysconfdir}/issue.sconfigs > %{_sysconfdir}/issue
cat %{_sysconfdir}/motd.sconfigs > %{_sysconfdir}/motd

Run the following to disable automatic configuration
of %{_sysconfdir}/issue and %{_sysconfdir}/motd:
 touch %{_sysconfdir}/sconfigs-disable-autoconfig

%files login-warning
%license LICENSE
# not noreplace -- for copying into /etc/issue and /etc/motd manually
%{_sysconfdir}/issue.sconfigs
%{_sysconfdir}/motd.sconfigs
%ghost %{_sysconfdir}/sconfigs-configured-login-warnings
%ghost %{_sysconfdir}/sconfigs-disable-autoconfig

%posttrans login-warning
set -x
if ! test -f %{_sysconfdir}/sconfigs-disable-autoconfig ; then
	cp -p %{_sysconfdir}/issue.sconfigs %{_sysconfdir}/issue.bak-sconfigs
	cp -p %{_sysconfdir}/motd.sconfigs %{_sysconfdir}/motd.bak-sconfigs
	cat %{_sysconfdir}/issue.sconfigs > %{_sysconfdir}/issue
	cat %{_sysconfdir}/motd.sconfigs > %{_sysconfdir}/motd
fi
touch %{_sysconfdir}/sconfigs-configured-login-warnings

%transfiletriggerin login-warning -P 100000 -- %{_sysconfdir}/issue %{_sysconfdir}/motd
# default -P is 1000000, we use 10000 to ensure running after branding-configs
set -x
if ! test -f %{_sysconfdir}/sconfigs-disable-autoconfig ; then
	cp -p %{_sysconfdir}/issue.sconfigs %{_sysconfdir}/issue.bak-sconfigs
	cp -p %{_sysconfdir}/motd.sconfigs %{_sysconfdir}/motd.bak-sconfigs
	cat %{_sysconfdir}/issue.sconfigs > %{_sysconfdir}/issue
	cat %{_sysconfdir}/motd.sconfigs > %{_sysconfdir}/motd
fi

%preun login-warning
if [ $1 -eq 0 ]; then
    cat %{_sysconfdir}/issue.bak-sconfigs > %{_sysconfdir}/issue || :
    cat %{_sysconfdir}/motd.bak-sconfigs > %{_sysconfdir}/motd || :
fi

#------------------------------------------------------------------

%package basic-audit
Summary:	Basic (not very detailed) audit rules
Requires:   %{name}-filesystem
Requires:   audit
Requires(post,postun):	update-alternatives

%description basic-audit
%{summary}

%files basic-audit
%license LICENSE
# probably no need of noreplace,
# all such configs can be created manually
%config %{_sysconfdir}/sconfigs/audit-rules/20-basic-audit.rules
# symlink, ruled by alternatives(8)
%ghost %{_sysconfdir}/audit/rules.d/10-sconfigs-audit.rules

%post basic-audit
update-alternatives --install \
	%{_sysconfdir}/audit/rules.d/10-sconfigs-audit.rules \
	sconfigs-audit \
	%{_sysconfdir}/sconfigs/audit-rules/20-basic-audit.rules \
	20

%postun basic-audit
[ $1 = 0 ] || exit 0
update-alternatives --remove \
	sconfigs-audit \
	%{_sysconfdir}/sconfigs/audit-rules/20-basic-audit.rules

#------------------------------------------------------------------

%package detailed-audit
Summary:	Detailed audit rules
Requires:   %{name}-filesystem
Requires:   audit
Requires(post,postun):	update-alternatives

%description detailed-audit
%{summary}

%files detailed-audit
%license LICENSE
# probably no need of noreplace,
# all such configs can be created manually
%config %{_sysconfdir}/sconfigs/audit-rules/30-detailed-audit.rules
# symlink, ruled by alternatives(8)
%ghost %{_sysconfdir}/audit/rules.d/10-sconfigs-audit.rules

%post detailed-audit
update-alternatives --install \
	%{_sysconfdir}/audit/rules.d/10-sconfigs-audit.rules \
	sconfigs-audit \
	%{_sysconfdir}/sconfigs/audit-rules/30-detailed-audit.rules \
	30

%postun detailed-audit
[ $1 = 0 ] || exit 0
update-alternatives --remove \
	sconfigs-audit \
	%{_sysconfdir}/sconfigs/audit-rules/30-detailed-audit.rules

#------------------------------------------------------------------

%package audit-test
Summary:	Script to test audit rules from sconfigs

%description audit-test
%{summary}

%files audit-test
%{_sbindir}/sconfigs-audit-test

#------------------------------------------------------------------


%prep
cp %sources .

%install
%make_install

mkdir -p %{buildroot}%{_sbindir}
install -m0755 sconfigs-audit-test.sh %{buildroot}%{_sbindir}/sconfigs-audit-test
echo "$(grep -e 'key=' *audit.rules | awk -F 'key=' '{print $NF}')
      $(grep -e '-k ' *audit.rules | awk -F '-k ' '{print $NF}')" | \
      grep -v '50-privileged.rules' |
sort -u | while read -r line
do
	echo "ausearch -k $line >/dev/null 2>/dev/null || echo $line" >> %{buildroot}%{_sbindir}/sconfigs-audit-test
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17149 |21mr|scons-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Open Source software construction tool
Name:		scons
Version:	3.1.2
Release:	1
Epoch:		1
License:	MIT
Group:		Development/Other
Url:		http://www.scons.org/
Source0:	http://download.sourceforge.net/scons/%{name}-%{version}.tar.gz
Source1:	scons.macros
BuildRequires:	pkgconfig(python3)
Requires:	python3-%{name} = %{EVRD}
BuildArch:	noarch

%description
SCons is an Open Source software construction tool--that is, a build
tool; an improved substitute for the classic Make utility; a better way
to build software. SCons is based on the design which won the Software
Carpentry build tool design competition in August 2000.

SCons "configuration files" are Python scripts, eliminating the need
to learn a new build tool syntax. SCons maintains a global view of
all dependencies in a tree, and can scan source (or other) files for
implicit dependencies, such as files specified on #include lines. SCons
uses MD5 signatures to rebuild only when the contents of a file have
really changed, not just when the timestamp has been touched. SCons
supports side-by-side variant builds, and is easily extended with user-
defined Builder and/or Scanner objects.

%files
%doc CHANGES.txt LICENSE.txt README.txt RELEASE.txt PKG-INFO
%{_bindir}/scons
%{_bindir}/scons*.bat
%{_bindir}/scons-configure-cache
%{_bindir}/scons-time
%{_bindir}/sconsign
%{_bindir}/scons-%{version}
%{_bindir}/scons-configure-cache-%{version}
%{_bindir}/sconsign-%{version}
%{_bindir}/scons-time-%{version}
%{_rpmmacrodir}/*%{name}*
%{_mandir}/man1/scons.1*
%{_mandir}/man1/scons-time.1*
%{_mandir}/man1/sconsign.1*

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	SCons library
Group:		Development/Python

%description -n python3-%{name}
The SCons library is required by scons.

%files -n python3-%{name}
%{py3_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
CFLAGS="%{optflags}" %__python3 setup.py build

%install
%{__python3} setup.py install \
	--root=%{buildroot} \
	--record=INSTALLED_FILES \
	--symlink-scons \
	--standard-lib
mkdir -p %{buildroot}%{_mandir}
mv %{buildroot}%{_prefix}/man/* %{buildroot}%{_mandir}

# install scons rpm macro helper
%install_macro %{name} %{SOURCE1}
pathfix.py -i "%{__python3} -s" -p %{buildroot}/%{_bindir}/%{name}*-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17150 |21mr|screen-4.9.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A screen manager that supports multiple logins on one terminal
Name:		screen
Version:	4.9.0
Release: 	2
License:	GPLv2+
Group:		Terminals
URL:		http://www.gnu.org/software/screen/
Source0:	ftp://ftp.gnu.org/gnu/screen/screen-%{version}.tar.gz
Patch0:		screen-4.2.1-fix-utmp.patch
Patch1:		screen-4.0.2-screenrc-utf8-switch.patch
Patch2:		screen-4.9.0-compile.patch
Patch3:		CVE-2023-24626.patch
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	utempter-devel
BuildRequires:	perl(Texinfo::Config)


%description
The screen utility allows you to have multiple logins on just one
terminal.  Screen is useful for users who telnet into a machine or
are connected via a dumb terminal, but want to use more than just
one login.

Install the screen package if you need a screen manager that can
support multiple logins on one terminal.

%files
%doc README doc/FAQ doc/README.DOTSCREEN ChangeLog
%{_bindir}/screen
%{_infodir}/screen.info*
%config(noreplace) %{_sysconfdir}/profile.d/20screen.sh
%config(noreplace) %{_sysconfdir}/screenrc
%attr(644,root,root) %config(noreplace) %{_sysconfdir}/skel/.screenrc
%{_datadir}/screen/
%{_mandir}/man1/screen.1*
#--------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
autoreconf -fi
# 5 is tty group
%configure --enable-colors256 \
               --with-pty-mode=0620 \
               --with-pty-group=5 \
               --enable-telnet

perl -pi -e 's|.*#undef HAVE_BRAILLE.*|#define HAVE_BRAILLE 1|' config.h
perl -pi -e 's|%{_prefix}/etc/screenrc|%{_sysconfdir}/screenrc|' config.h
perl -pi -e 's|/usr/local/etc/screenrc|%{_sysconfdir}/screenrc|' etc/etcscreenrc doc/*
perl -pi -e 's|/local/etc/screenrc|%{_sysconfdir}/screenrc|' doc/*

%make_build CFLAGS="%{optflags} -DETCSCREENRC=\\\"%{_sysconfdir}/screenrc\\\""

%install
%make_install SCREENENCODINGS=%{_datadir}/screen/utf8encodings/

( cd %{buildroot}%{_bindir} && {
	rm -f screen.old screen
	mv screen-%{version} screen
  }
)
mkdir -p %{buildroot}%{_sysconfdir}/skel
install -c -m 0644 etc/etcscreenrc %{buildroot}%{_sysconfdir}/screenrc
install -c -m 0644 etc/screenrc %{buildroot}%{_sysconfdir}/skel/.screenrc

mkdir -p %{buildroot}%{_sysconfdir}/profile.d

cat > %{buildroot}%{_sysconfdir}/profile.d/20screen.sh <<'EOF'
if [ -z "$SCREENDIR" ]; then
    export SCREENDIR=$HOME/tmp
fi
EOF





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17151 |21mr|screengrab-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Screen grabber
Name:		screengrab
Version:	2.6.0
Release:	1
License:	GPLv2
Group:		Graphical desktop/Other
Url:		https://lxqt.org/
Source0:	https://github.com/lxqt/screengrab/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xdg)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:  xdg-utils
BuildRequires:  lxqt-build-tools
BuildRequires:  libqtxdg
BuildRequires:  pkgconfig(lxqt)

%description
ScreenGrab -- program getting screenshots working in Linux and Windows. 
The program uses Qt and is independent from any desktop environment.
Main features:
    * grab screenshot of desktop
    * working on Window and Linux operating systems
    * save screenshots in PNG and JPEG format
    * grab screenshot with delay (1 - 90 sec)
    * hide its window
    * minimize to system tray and work from at (tray menu) 

%files
%doc AUTHORS CHANGELOG COPYING README.md docs/html
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%config(noreplace) %{_datadir}/%{name}/%{name}.conf
%{_datadir}/%{name}/translations/%{name}_*.qm
%{_iconsdir}/hicolor/*/*/%{name}.svg
%{_datadir}/metainfo/%{name}.metainfo.xml

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17152 |21mr|screenpen-0.0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA ScreenPen
Name:		screenpen
Version:	0.0.3
Release:	11
Epoch:		1
License:	GPLv3+
Group:		Graphics
Url:		http://www.rosalab.ru/
Source0:	https://abf.io/uxteam/screenpen-devel/archive/screenpen-devel-v%{version}.tar.gz
#Patch0:		screenpen-devel-v0.0.3-gnome-shell-3.12.patch
BuildRequires:	cmake
BuildRequires:	qmake5
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
ROSA on-screen drawing application for presentations.

%files
%{_bindir}/screenpen

#----------------------------------------------------------------------------
%prep
%setup -qn screenpen-devel-v%{version}
%apply_patches

%build
%cmake \
	-DCMAKE_BUILD_TYPE=Release \
	-DLIBRARY_INSTALL_DIR=%{_lib}
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17153 |21mr|scrub-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		scrub
Version:	2.6.1
Release:	1
Summary:	Disk scrubbing program
License:	GPLv2+
Group:		System/Base
URL:		http://code.google.com/p/diskscrub/
Source0:	https://github.com/chaos/scrub/releases/download/%{version}/%{name}-%{version}.tar.gz

%description
Scrub writes patterns on files or disk devices to make
retrieving the data more difficult.  It operates in one of three
modes: 1) the special file corresponding to an entire disk is scrubbed
and all data on it is destroyed;  2) a regular file is scrubbed and
only the data in the file (and optionally its name in the directory
entry) is destroyed; or 3) a regular file is created, expanded until
the file system is full, then scrubbed as in 2).

%prep
%setup -q

%build
# fix build on aarch64
autoreconf -vfi -Iconfig

%configure
%make_build

%install
%make_install

%files
%doc NEWS ChangeLog DISCLAIMER COPYING
%{_bindir}/scrub
%{_mandir}/man1/scrub.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17154 |21mr|sddm-0.21.0-1.git63780f.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 63780fcd79f1dbf81a30eef48c28c699ab15aded
%define commit_short %(echo %{commit} | head -c6)

Name:	sddm
Summary:	Lightweight display manager
Version:	0.21.0
Release:	1.git%{commit_short}.3
Epoch:	1
Url:	https://github.com/sddm/sddm
Source0:	https://github.com/sddm/sddm/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Group:	Graphical desktop/KDE
License:	GPLv2
# Adds sddm to drakedm
Source1:	11sddm.conf
Source2:	sddm.conf
Source3:	sddm.pam
Source4:	sddm-autologin.pam
Source5:	tmpfiles-sddm.conf
Source6:	sddm.sysusers
Source7:	sddm.sysconfig
Patch0:	    sddm-0.18.1-add-suport-to-plymouth-smooth-transition.patch
# PR: https://github.com/sddm/sddm/pull/2020
Patch1:	    show-saved-users.patch
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	imagemagick
BuildRequires:	Rosa-theme-EE
BuildRequires:	qt5-linguist-tools
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-xkb)
# for converting man-pages
BuildRequires:	/usr/bin/rst2man
Recommends:	%{name}-theme-elarun
Recommends:	%{name}-theme-maldives
Recommends:	%{name}-theme-maya
# breeze theme does not work without plasma5-workspace
# but breeze is KDE-native theme
Recommends:	(%{name}-config-breeze if (plasma5-workspace and breeze-cursor-theme))
# For /usr/share/X11/xdm/Xsession
Requires:	xinitrc
# needed to get xcb plugin on Qt platform
Requires:	qt5-output-driver-default
Requires:	%{_lib}qt5svg5
# needed for QtQuick
Requires:	qt5-qtdeclarative
Requires:	%{_lib}qt5imageformats-plugins

%description
Lightweight display manager (login screen).

%files
%{_bindir}/%{name}
%{_bindir}/%{name}-greeter
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/themes
%{_datadir}/%{name}/faces/
%{_datadir}/%{name}/flags/
%{_datadir}/%{name}/scripts/
%{_datadir}/%{name}/translations-qt*/
%{_datadir}/dbus-1/system.d/org.freedesktop.DisplayManager.conf
%dir %{_prefix}/lib/%{name}
%dir %{_prefix}/lib/%{name}/sddm.conf.d
%config %{_prefix}/lib/%{name}/sddm.conf.d/00-default.conf
%dir %{_sysconfdir}/sddm.conf.d
%config(noreplace) %{_sysconfdir}/sddm.conf
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/pam.d/%{name}-greeter
%config(noreplace) %{_sysconfdir}/pam.d/%{name}-autologin
%config(noreplace) %{_sysconfdir}/sysconfig/sddm
%{_sysusersdir}/sddm.conf
%{_tmpfilesdir}/sddm.conf
%{_libexecdir}/sddm-helper
%{_libexecdir}/sddm-helper-start-wayland
%{_libexecdir}/sddm-helper-start-x11user
%{_unitdir}/%{name}.service
%{_libdir}/qt5/qml/SddmComponents
%{_datadir}/X11/dm.d/11sddm.conf
%attr(0750,sddm,sddm) %{_localstatedir}/lib/%{name}
%{_mandir}/man1/sddm-greeter.1.*
%{_mandir}/man1/sddm.1.*
%{_mandir}/man5/sddm-state.conf.5.*
%{_mandir}/man5/sddm.conf.5.*

%pre
%sysusers_create_package sddm %{SOURCE6}

%post
%tmpfiles_create sddm.conf
%systemd_post sddm.service

%preun
%systemd_preun sddm.service

#----------------------------------------------------------------------------

%package theme-elarun
Summary:	Elarun theme for SDDM
Group:		Graphical desktop/KDE

%description theme-elarun
Elarun theme for SDDM.

%files theme-elarun
%{_datadir}/%{name}/themes/elarun/

#----------------------------------------------------------------------------

%package theme-maldives
Summary:	Maldives theme for SDDM
Group:		Graphical desktop/KDE

%description theme-maldives
Maldives theme for SDDM.

%files theme-maldives
%{_datadir}/%{name}/themes/maldives/

#----------------------------------------------------------------------------

%package theme-maya
Summary:	Maya theme for SDDM
Group:		Graphical desktop/KDE

%description theme-maya
Maya theme for SDDM.

%files theme-maya
%{_datadir}/%{name}/themes/maya/

#----------------------------------------------------------------------------

%package config-breeze
Summary:	Set breeze themes in SDDM
Group:		Graphical desktop/KDE
Requires:	%{name}
Requires:	breeze-cursor-theme
Requires:	sddm-theme-breeze

%description config-breeze
Set breeze themes in SDDM

%files config-breeze
%config %{_prefix}/lib/sddm/sddm.conf.d/51-breeze.conf

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

sed -i -e 's,system-login,system-auth,g' services/*.pam

# optimize $PATH when /bin and /sbin are symlinks to /usr/bin and /usr/sbin
%if %{mdvver} >= 202310
sed -i -e 's,:/bin,,' -e 's,:/sbin,,' src/common/Configuration.h
%endif

%build
%cmake_kde5 \
    -DCMAKE_BUILD_TYPE:STRING="Release" \
    -DSESSION_COMMAND:PATH=/usr/share/X11/xdm/Xsession \
    -DSYSTEMD_SYSUSERS_DIR:PATH=%{_sysusersdir} \
    -DENABLE_JOURNALD=ON \
    -DBUILD_MAN_PAGES=ON \
    -DUID_MIN="500" \
    -DUID_MAX="60000"

%make

%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_sysconfdir}/sddm.conf.d

install -Dpm 644 %{SOURCE1} %{buildroot}%{_datadir}/X11/dm.d/11sddm.conf
install -Dpm 644 %{SOURCE2} %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/00-default.conf
install -Dpm 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/pam.d/sddm
install -Dpm 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/pam.d/sddm-autologin
install -Dpm 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/sddm.conf
install -Dpm 644 %{SOURCE6} %{buildroot}%{_sysusersdir}/sddm.conf
install -Dpm 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/sysconfig/sddm

touch %{buildroot}%{_sysconfdir}/sddm.conf

cat << EOF > %{buildroot}%{_prefix}/lib/sddm/sddm.conf.d/51-breeze.conf
[Theme]
Current=breeze
CursorTheme=breeze_cursors
EOF

mkdir --mode=750 -p %{buildroot}%{_localstatedir}/lib/%{name}

# use default.jpg as sddm background
sed -i -e 's,\(^background=\).*,\1%{_datadir}/mdk/backgrounds/default.jpg,' %{buildroot}%{_datadir}/sddm/themes/*/theme.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17155 |21mr|sddm-config-editor-0.1-2.git5c890b.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5c890b90d2de0864fbc682c1d663464ca6416459
%define short_commit %(echo %{commit} | head -c 6)

Summary:	SDDM Configuration Editor
Name:		sddm-config-editor
Version:	0.1
Release:	2.git%{short_commit}.3
License:	ASL 2.0
Group:		System/Configuration/Other
Url:		https://github.com/hagabaka/sddm-config-editor
Source0:	https://github.com/hagabaka/sddm-config-editor/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Patch0:		sddm-config-editor-040221-expected-before-TRANSLATION_DIR.patch
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	qt5-qtquickcontrols-qml

%description
SDDM Configuration Editor.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
cd cpp
export PATH=%{_qt5_bindir}:$PATH
%qmake_qt5
%make

%install
%makeinstall_qt -C cpp

sed -i "s/Exec=\(.*\)/Exec=xdg-su -c \1/" %{buildroot}%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17156 |21mr|sddm-kcm-5.27.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 SDDM configuration module
Name:		sddm-kcm
Version:	5.27.11
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Patch0:	    minimumuid_user.patch
Patch2:	    maximumuid_user.patch
Patch3:	    manual-autologin.patch
Patch4:	    mos-auth-messages.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5auth-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-shm)
BuildRequires:	pkgconfig(xcb-xkb)
BuildRequires:	pkgconfig(xcursor)
Requires:	sddm

%description
Plasma 5 SDDM configuration module.

%files -f kcm_sddm.lang
%{_kde5_bindir}/sddmthemeinstaller
%{_kde5_datadir}/knsrcfiles/sddmtheme.knsrc
%{_kde5_libexecdir}/kauth/kcmsddm_authhelper
%{_kde5_applicationsdir}/kcm_sddm.desktop
%{_qt5_plugindir}/plasma/kcms/systemsettings/kcm_sddm.so
%{_datadir}/dbus-1/system.d/org.kde.kcontrol.kcmsddm.conf
%{_datadir}/dbus-1/system-services/org.kde.kcontrol.kcmsddm.service
%{_datadir}/polkit-1/actions/org.kde.kcontrol.kcmsddm.policy
%{_kde5_datadir}/kpackage/kcms/kcm_sddm/contents/ui/Advanced.qml
%{_kde5_datadir}/kpackage/kcms/kcm_sddm/contents/ui/DetailsDialog.qml
%{_kde5_datadir}/kpackage/kcms/kcm_sddm/contents/ui/main.qml

#----------------------------------------------------------------------------

%prep
%setup -n %{name}-%{version}
%patch0 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_sddm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17157 |21mr|sddm-theme-rosa-fresh-5.6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA Desktop Fresh theme for SDDM
Name:		sddm-theme-rosa-fresh
Version:	5.6.8
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://rosalinux.com/
# Based on Breeze SDDM theme from Plasma Workspace package.
# Only description and wallpaper were changed.
Source0:	https://abf.io/uxteam/%{name}/archive/%{name}-%{version}.tar.gz
Requires:	kf5plasma-qml
Requires:	plasma-workspace-qml
Requires:	plasma5-look-and-feel-rosa-fresh
BuildArch:	noarch

%description
ROSA Desktop Fresh theme for SDDM.

%files
%dir %{_datadir}/sddm/themes/rosa-fresh
%{_datadir}/sddm/themes/rosa-fresh/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/sddm/themes/
cp -r rosa-fresh %{buildroot}%{_datadir}/sddm/themes/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17158 |21mr|SDL12-1.2.15-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO switch to sdl12-compat

%define	fname	SDL
%define	api	1.2
%define	major	0
%define	libname	%mklibname %{fname} %{api} %{major}
%define	devname	%mklibname %{fname} -d

%define	build_plugins	0
%define	build_directfb	0
%define	build_ggi	0
%define	build_aalib	0

Summary:	Simple DirectMedia Layer
Name:		SDL12
Version:	1.2.15
Release:	17
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.libsdl.org/
Source0:	http://www.libsdl.org/release/%{fname}-%{version}.tar.gz
Patch0:		SDL-1.2.10-fixrpath.patch
Patch1:		SDL-1.2.14-anonymous-enums.patch
# (cg) 1.2.13-10mdv Use pulse output by default
Patch2:		SDL-1.2.14-dont-propagate-lpthread.patch
# (fc) 1.2.13-7mdv fix crash in pulseaudio backend when /proc is not mounted (Mdv bug #38220)
Patch3:		SDL-1.2.14-noproc.patch
# (misc) patch from fedora to solve ri-li crash ( mdv bug #45721 )
Patch4:		SDL-1.2.13-rh484362.patch
# (MD) from fedora
Patch5:		SDL-1.2.15-const_XData32.patch

# Fix CVE-2019-7577 (a buffer overread in MS_ADPCM_decode), bug #1676510,
# upstream bug #4492, in upstream after 1.2.15
Patch9:		SDL-1.2.15-CVE-2019-7577-Fix-a-buffer-overread-in-MS_ADPCM_deco.patch
# Fix CVE-2019-7575 (a buffer overwrite in MS_ADPCM_decode), bug #1676744,
# upstream bug #4493, in upstream after 1.2.15
Patch10:	SDL-1.2.15-CVE-2019-7575-Fix-a-buffer-overwrite-in-MS_ADPCM_dec.patch
# Fix CVE-2019-7574 (a buffer overread in IMA_ADPCM_decode), bug #1676750,
# upstream bug #4496, in upstream after 1.2.15
Patch11:	SDL-1.2.15-CVE-2019-7574-Fix-a-buffer-overread-in-IMA_ADPCM_dec.patch
# Fix CVE-2019-7572 (a buffer overread in IMA_ADPCM_nibble), bug #1676754,
# upstream bug #4495, in upstream after 1.2.15
Patch12:	SDL-1.2.15-CVE-2019-7572-Fix-a-buffer-overread-in-IMA_ADPCM_nib.patch
# Fix CVE-2019-7572 (a buffer overwrite in IMA_ADPCM_nibble), bug #1676754,
# upstream bug #4495, in upstream after 1.2.15
Patch13:	SDL-1.2.15-CVE-2019-7572-Fix-a-buffer-overwrite-in-IMA_ADPCM_de.patch
# Fix CVE-2019-7573, CVE-2019-7576 (buffer overreads in InitMS_ADPCM),
# bugs #1676752, #1676756, upstream bugs #4491, #4490,
# in upstream after 1.2.15
Patch14:	SDL-1.2.15-CVE-2019-7573-CVE-2019-7576-Fix-buffer-overreads-in-.patch
# Fix CVE-2019-7578, (a buffer overread in InitIMA_ADPCM), bug #1676782,
# upstream bug #4491, in upstream after 1.2.15
Patch15:	SDL-1.2.15-CVE-2019-7578-Fix-a-buffer-overread-in-InitIMA_ADPCM.patch
# Fix CVE-2019-7638, CVE-2019-7636 (buffer overflows when processing BMP
# images with too high number of colors), bugs #1677144, #1677157,
# upstream bugs #4500, #4499, in upstream after 1.2.15
Patch16:	SDL-1.2.15-CVE-2019-7638-CVE-2019-7636-Refuse-loading-BMP-image.patch
# Fix CVE-2019-7637 (an integer overflow in SDL_CalculatePitch), bug #1677152,
# upstream bug #4497, in upstream after 1.2.15
Patch17:	SDL-1.2.15-CVE-2019-7637-Fix-in-integer-overflow-in-SDL_Calcula.patch
# Fix CVE-2019-7635 (a buffer overread when blitting a BMP image with pixel
# colors out the palette), bug #1677159, upstream bug #4498,
# in upstream after 1.2.15
Patch18:	SDL-1.2.15-CVE-2019-7635-Reject-BMP-images-with-pixel-colors-ou.patch
# Reject 2, 3, 5, 6, 7-bpp BMP images (related to CVE-2019-7635),
# bug #1677159, upstream bug #4498, in upstream after 1.2.15
Patch19:	SDL-1.2.15-Reject-2-3-5-6-7-bpp-BMP-images.patch
# Fix CVE-2019-7577 (Fix a buffer overread in MS_ADPCM_nibble and
# MS_ADPCM_decode on an invalid predictor), bug #1676510, upstream bug #4492,
# in upstream after 1.2.15
Patch20:	SDL-1.2.15-CVE-2019-7577-Fix-a-buffer-overread-in-MS_ADPCM_nibb.patch
# Fix retrieving an error code after stopping and resuming a CD-ROM playback,
# upstream bug #4108, in upstream after 1.2.15
Patch21:	SDL-1.2.15-Fixed-bug-4108-Missing-break-statements-in-SDL_CDRes.patch
# Fix SDL_Surface reference counter initialization and a possible crash when
# opening a mouse device when using a framebuffer video output, bug #1602687
Patch22:	SDL-1.2.15-fix-small-errors-detected-by-coverity.patch
# Fix Windows drivers broken with a patch for CVE-2019-7637, bug #1677152,
# upstream bug #4497, in upstream after 1.2.15
Patch23:	SDL-1.2.15-fix_copy_paste_mistakes_in_commit_9b0e5c555c0f.patch
# Fix CVE-2019-13616 (a heap buffer over-read in BlitNtoN), bug #1747237,
# upstream bug #4538, in upstream after 1.2.15
Patch24:	SDL-1.2.15-CVE-2019-13616-validate_image_size_when_loading_BMP_files.patch
Patch25:	SDL-1.2.15-Use-system-glext.h.patch

# debian patches
Patch102:	060_disable_ipod.diff
Patch103:	205_x11_keysym_fix.diff
# needs to be updated or dropped
#Patch104:	221_check_SDL_NOKBD_environment_variable.diff
Patch107:	310_fixmouseclicks

BuildRequires:	chrpath
%ifarch %{x86_64} %{armx} %{ix86}
BuildRequires:	nas-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
%ifarch %{ix86}
BuildRequires:	yasm
%endif
%if %{build_plugins}
BuildRequires:	libltdl-devel
%endif
%if %{build_directfb}
BuildRequires:	pkgconfig(directfb)
%endif
%if %{build_ggi}
BuildRequires:	libggi-devel
%endif
%if %{build_aalib}
BuildRequires:	aalib-devel
%endif

%description
This is the Simple DirectMedia Layer, a generic API that provides low level
access to audio, keyboard, mouse, and display framebuffer across multiple
platforms.

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc README-SDL.txt CREDITS BUGS
%{_libdir}/libSDL-%{api}.so.%{major}*
%if %{build_plugins}
%dir %{_libdir}/SDL
%endif

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	SDL-devel = %{EVRD}

%description -n	%{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README README-SDL.txt CREDITS BUGS WhatsNew docs.html
%doc docs/html/*.html
%{_bindir}/sdl-config
%{_libdir}/pkgconfig/sdl.pc
%{_libdir}/*.so
%{_libdir}/*.a
%dir %{_includedir}/SDL
%{_includedir}/SDL/*.h
%{_datadir}/aclocal/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%if %{build_plugins}
%if %{build_ggi}
%package -n	%{libname}-video-ggi
Summary:	GGI video support for SDL
Group:		System/Libraries

%description -n	%{libname}-video-ggi
This is the Simple DirectMedia Layer, a generic API that provides low level
access to audio, keyboard, mouse, and display framebuffer across multiple
platforms.

This package provides GGI video support as a plugin to SDL.

%files -n %{libname}-video-ggi
%{_libdir}/SDL/video_ggi.*
%endif
%endif

#----------------------------------------------------------------------------

%if %{build_plugins}
%if %{build_directfb}
%package -n %{libname}-video-directfb
Summary:	DirectFB video support for SDL
Group:		System/Libraries

%description -n %{libname}-video-directfb
This is the Simple DirectMedia Layer, a generic API that provides low level
access to audio, keyboard, mouse, and display framebuffer across multiple
platforms.

This package provides DirectFB video support as a plugin to SDL.

%files -n %{libname}-video-directfb
%{_libdir}/SDL/video_directfb.*
%endif
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn %{fname}-%{version}
%apply_patches

iconv -f ISO-8859-1 -t UTF-8 CREDITS > CREDITS.tmp
touch -r CREDITS CREDITS.tmp
mv CREDITS.tmp CREDITS

./autogen.sh

%build
export CFLAGS="%{optflags} -funroll-loops -ffast-math -O3"
export CXXFLAGS="$CFLAGS"
%configure \
	--disable-static \
	--enable-video-opengl \
	--disable-video-svga \
%if %{build_ggi}
	--enable-video-ggi \
%if %{build_plugins}
	--enable-video-ggi-plugin \
%endif
%endif
%if %{build_directfb}
	--enable-video-directfb \
%if %{build_plugins}
	--enable-video-directfb-plugin \
%endif
%endif
%if %{build_aalib}
	--enable-video-aalib \
%if %{build_plugins}
	--enable-video-aalib-plugin \
%endif
%endif
%ifarch %{ix86} x86_64
	--enable-nasm \
%else
	--disable-nasm \
%endif
	--enable-assembly \
	--enable-sdl-dlopen \
	--enable-nas \
	--enable-nas-shared \
	--enable-pulseaudio \
	--enable-pulseaudio-shared \
	--enable-alsa \
	--enable-alsa-shared \
	--disable-arts \
	--disable-esd \
	--program-prefix= \
	--disable-rpath
%make

%install
%makeinstall_std

# --disable-rpath does not seem to work correctly
chrpath -d %{buildroot}%{_libdir}/libSDL.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17159 |21mr|SDL2-2.24.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oversion %(echo %{version} |cut -d. -f2- |sed "s/^/0./" |sed "s/\\./00./2")

%define api 2.0
%define major 0
%define libname %mklibname %{name}_ %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple DirectMedia Layer
Name:		SDL2
Version:	2.24.0
Release:	6
License:	Zlib
Group:		System/Libraries
Url:		http://www.libsdl.org
Source0:	http://www.libsdl.org/release/%{name}-%{version}.tar.gz
Source1:	FindSDL2.cmake
# Keep major stable, should be 0
Patch1:		SDL2-2.0.16-soversion.patch
BuildRequires:	cmake
%ifarch %{x86_64} %{ix86} %{armx}
BuildRequires:	nas-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xscrnsaver)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	vulkan-devel

%description
This is the Simple DirectMedia Layer, a generic API that provides low level
access to audio, keyboard, mouse, and display framebuffer across multiple
platforms.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc README.md README-SDL.txt CREDITS.txt BUGS.txt WhatsNew.txt
%license LICENSE.txt
%{_libdir}/lib%{name}-%{api}.so.%{major}
%{_libdir}/lib%{name}-%{api}.so.%{oversion}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README.md README-SDL.txt CREDITS.txt BUGS.txt WhatsNew.txt
%license LICENSE.txt
%{_bindir}/sdl2-config
%{_datadir}/aclocal/sdl2.m4
%{_datadir}/cmake/Modules/Find%{name}.cmake
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}*.a
%{_libdir}/pkgconfig/sdl2.pc
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DESD:BOOL=OFF		\
	-DESD_SHARED:BOOL=OFF	\
	-DRPATH:BOOL=OFF	\
	-DSDL_STATIC:BOOL=OFF	\
%ifnarch %{ix86} %{x86_64}
	-DSSEMATH:BOOL=OFF	\
%endif
%ifarch znver1
	-DSSEMATH:BOOL=ON	\
%endif
	-DVIDEO_VULKAN:BOOL=ON
%make_build

%install
%make_install -C build
install -m644 %{SOURCE1} -D %{buildroot}%{_datadir}/cmake/Modules/Find%{name}.cmake

rm -rf %{buildroot}%{_datadir}/licenses

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17160 |21mr|SDL2_image-2.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 2.0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple DirectMedia Layer 2 - image
Name:		SDL2_image
Version:	2.6.2
Release:	1
License:	Zlib
Group:		System/Libraries
Url:		http://www.libsdl.org/projects/SDL_image/index.html
Source0:	http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(sdl2)

%description
This is a simple library to load images of various formats as SDL2 surfaces.
This library currently supports BMP, PPM, PCX, GIF, JPEG, and PNG formats.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README.txt CHANGES.txt
%license LICENSE.txt
%{_includedir}/SDL2/*
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/SDL2_image.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# (anssi) --disable-x-shared disable dlopening, so that we link to them
# dynamically instead, and thus get correct autorequires
%configure \
	--disable-jpg-shared	\
	--disable-png-shared	\
	--disable-static	\
	--disable-tif-shared	\
	--enable-bmp		\
	--enable-gif		\
	--enable-jpg		\
	--enable-pcx		\
	--enable-png		\
	--enable-tif		\
	--enable-xpm
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17161 |21mr|SDL2_mixer-2.6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 2.0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple DirectMedia Layer 2 - mixer
Name:		SDL2_mixer
Version:	2.6.2
Release:	1
License:	Zlib
Group:		System/Libraries
Url:		http://www.libsdl.org/projects/SDL_mixer/
Source0:	http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
BuildRequires:	libmikmod-devel
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(opusfile)

%description
SDL2_mixer is a sample multi-channel audio mixer library. It supports any
number of simultaneously playing channels of 16 bit stereo audio, plus a
single channel of music, mixed by the popular MikMod MOD, Timidity MIDI
and SMPEG MP3 libraries.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc src/codecs/timidity/FAQ src/codecs/timidity/README
%license LICENSE.txt
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README.txt CHANGES.txt
%{_includedir}/SDL2/*
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n %{name}-player
Summary:	Players using %{name}
Group:		System/Libraries
Conflicts:	SDL_mixer-player

%description -n %{name}-player
This package contains binary to test the associated library.

%files -n %{name}-player
%doc README.txt
%{_bindir}/playwave
%{_bindir}/playmus

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-music-flac-shared	\
	--disable-music-ogg-shared	\
	--disable-static		\
	--enable-music-mod
%make

%install
%makeinstall_std install-bin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17162 |21mr|SDL2_net-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 2.0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple DirectMedia Layer 2 - network
Name:		SDL2_net
Version:	2.2.0
Release:	1
License:	ZLib
Group:		System/Libraries
Url:		http://www.libsdl.org/projects/SDL_net/
Source0:	http://www.libsdl.org/projects/SDL_net/release/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(sdl2)

%description
This is a small sample cross-platform networking library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README.txt CHANGES.txt
%license LICENSE.txt
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/SDL2/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17163 |21mr|SDL2_ttf-2.20.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 2.0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple DirectMedia Layer 2 - Sample TrueType Font Library
Name:		SDL2_ttf
Version:	2.20.1
Release:	1
License:	Zlib
Group:		System/Libraries
Url:		http://www.libsdl.org/projects/SDL_ttf/
Source0:	http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
BuildRequires:	gtk-doc
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(sdl2)

%description
This is a sample library which allows you to use TrueType fonts in your SDL2
applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README.txt CHANGES.txt
%license LICENSE.txt
%{_includedir}/SDL2/*
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
rm -rf external/*

%build
%configure \
	--disable-dependency-tracking	\
	--disable-static		\
	--enable-freetype-builtin=no	\
	--enable-harfbuzz-builtin=no
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17164 |21mr|SDL_gfx-2.0.26-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 16
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -d -s

Summary:	SDL graphics drawing primitives and other support functions
Name:		SDL_gfx
Version:	2.0.26
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.ferzkopp.net/~aschiffler/Software/SDL_gfx-2.0/index.html
Source0:	http://www.ferzkopp.net/Software/SDL_gfx-2.0/%{name}-%{version}.tar.gz
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)

%description
The SDL_gfx library evolved out of the SDL_gfxPrimitives code.

The current components of the SDL_gfx library are:
- Graphic Primitives (SDL_gfxPrimitves.h)
- Rotozoomer (SDL_rotozoom.h)
- Framerate control (SDL_framerate.h)
- MMX image filters (SDL_imageFilter.h)

The library is backwards compatible to the above mentioned code. It's
is written in plain C and can be used in C++ code.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	SDL graphics drawing primitives and other support functions
Group:		System/Libraries

%description -n %{libname}
The SDL_gfx library evolved out of the SDL_gfxPrimitives code.

The current components of the SDL_gfx library are:
- Graphic Primitives (SDL_gfxPrimitves.h)
- Rotozoomer (SDL_rotozoom.h)
- Framerate control (SDL_framerate.h)
- MMX image filters (SDL_imageFilter.h)

The library is backwards compatible to the above mentioned code. It's
is written in plain C and can be used in C++ code.

%files -n %{libname}
%{_libdir}/libSDL_gfx.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and more to develop SDL_gfx applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(sdl)
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and more to develop SDL_gfx applications.

%files -n %{devname}
%doc README ChangeLog AUTHORS Docs
%{_includedir}/SDL/*.h
%{_libdir}/libSDL_gfx.so
%{_libdir}/pkgconfig/SDL_gfx.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static SDL_gfx libraries
Group:		Development/C
Requires:	%{devname} = %{EVRD}

%description -n %{sdevname}
Static SDL_gfx libraries.

%files -n %{sdevname}
%{_libdir}/lib*.a

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./autogen.sh
%configure --disable-mmx --enable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17165 |21mr|SDL_image-1.2.12-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 1.2
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple DirectMedia Layer - image
Name:		SDL_image
Version:	1.2.12
Release:	12
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.libsdl.org/projects/SDL_image/index.html
Source0:	http://www.libsdl.org/projects/SDL_image/release/%{name}-%{version}.tar.gz
Patch0:		SDL_image-1.2.12-CVE-2019-13616.patch
BuildRequires:	jpeg-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl)

%description
This is a simple library to load images of various formats as SDL surfaces.
This library currently supports BMP, PPM, PCX, GIF, JPEG, and PNG formats.

This package contains the binary `sdlshow' to test the library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}SDL_image1.2 < 1.2.6-2

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/lib*%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(sdl)
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}%{major}-devel = %{EVRD}
Obsoletes:	%{_lib}SDL_image1.2-devel < 1.2.6-2

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README CHANGES
%{_libdir}/lib*.so
%{_includedir}/SDL/*
%{_libdir}/pkgconfig/SDL_image.pc

#----------------------------------------------------------------------------

%package -n %{libname}-test
Summary:	Test binary for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}SDL_image1.2-test < 1.2.6-2

%description -n %{libname}-test
This package contains binary to test the associated library.

%files -n %{libname}-test
%{_bindir}/sdlshow

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
# (anssi) --disable-x-shared disable dlopening, so that we link to them
# dynamically instead, and thus get correct autorequires
%configure \
	--enable-bmp \
	--enable-gif \
	--enable-jpg \
	--enable-pcx \
	--enable-png \
	--enable-tif \
	--enable-xpm \
	--disable-jpg-shared \
	--disable-png-shared \
	--disable-tif-shared \
	--disable-static

%make

%install
%makeinstall_std
install -d %{buildroot}%{_bindir}
install -m755 .libs/showimage %{buildroot}%{_bindir}/sdlshow

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17166 |21mr|SDL_mixer-1.2.12-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define apiver 1.2
%define libname %mklibname %{name} %{apiver} %{major}
%define devname %mklibname %{name} -d

Summary:	Simple DirectMedia Layer - mixer
Name:		SDL_mixer
Version:	1.2.12
Release:	9
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.libsdl.org/projects/SDL_mixer/
Source0:	http://www.libsdl.org/projects/SDL_mixer/release/%{name}-%{version}.tar.gz
Patch0:		SDL_mixer-MikMod-1.patch
Patch1:		SDL_mixer-MikMod-2.patch
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconfig(esound)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(zlib)

%description
SDL_mixer is a sample multi-channel audio mixer library. It supports any
number of simultaneously playing channels of 16 bit stereo audio, plus a
single channel of music, mixed by the popular MikMod MOD, Timidity MIDI
and SMPEG MP3 libraries.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}SDL_mixer1.2_0 < 1.2.10

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc timidity/FAQ timidity/README
%{_libdir}/lib*%{apiver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(sdl)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc README CHANGES
%{_libdir}/lib*.so
%{_includedir}/SDL/*
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package player
Summary:	Players using %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description player
This package contains binary to test the associated library.

%files player
%doc README
%{_bindir}/playwave
%{_bindir}/playmus

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
# (Anssi 02/2010) The below --disable-music-foo-shared options do not disable
# support for the format in question. They just disable dlopen, and using the
# shared libraries directly, allowing rpm autodeps to work. Just using dlopen
# on them would make it quite likely that adding the deps later on downstream
# packages using SDL_mixer manually would be forgotten.
%configure \
	--enable-music-libmikmod=no \
	--enable-music-native-midi \
	--disable-music-ogg-shared \
	--disable-music-flac-shared \
	--disable-music-mod-shared \
	--disable-music-mp3-shared \
	--disable-static
%make

iconv -f ISO-8859-1 -t UTF-8 CHANGES > CHANGES.tmp
touch -r CHANGES CHANGES.tmp
mv CHANGES.tmp CHANGES

%install
%makeinstall_std install-bin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17167 |21mr|SDL_net-1.2.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		major 0
%define		apiver 1.2
%define		libname %mklibname %{name} %{apiver} %{major}
%define		develname %mklibname %{name} -d

Summary:	Simple DirectMedia Layer - network
Name:		SDL_net
Version:	1.2.8
Release:	6
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.libsdl.org/projects/SDL_net/
Source0:	http://www.libsdl.org/projects/SDL_net/release/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(sdl)
BuildRequires:	texinfo

%description
This is an example portable network library for use with SDL. Note that this
isn't necessarily how you would want to write a chat program, but it
demonstrates how to use the basic features of the network and GUI libraries.

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%package -n %{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Requires:	pkgconfig(sdl)
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files -n %{libname}
%{_libdir}/lib*%{apiver}.so.%{major}*

%files -n %{develname}
%doc README CHANGES
%{_includedir}/SDL/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17168 |21mr|SDL_sound-1.0.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# For SDL2_sound use https://abf.io/import/sdl2_sound

%define major 1
%define apiver 1.0
%define libname %mklibname %{name} %{apiver} %{major}
%define develname %mklibname %{name} -d
%define staticname %mklibname %{name} -d -s
%define oldlibname %mklibname %{name} 1.0

Summary:	An abstract SDL soundfile decoder
Name:		SDL_sound
Version:	1.0.3
Release:	15
Group:		Sound
License:	LGPLv2+
URL:		http://www.icculus.org/SDL_sound
Source0:	http://www.icculus.org/SDL_sound/downloads/%{name}-%{version}.tar.gz
Patch0:		SDL_sound-1.0.3-linkage.patch
Patch1:		sdl-sound-1.0.3-physfs-3.0.1.patch
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(flac)
BuildRequires:	libmikmod-devel
BuildRequires:	pkgconfig(libmodplug)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(speex)
BuildRequires:	physfs-devel
BuildRequires:	doxygen

%description
SDL_sound is a library that handles the decoding of several popular
sound file formats, such as .WAV and .MP3. It is meant to make the
programmer's sound playback tasks simpler. The programmer gives
SDL_sound a filename, or feeds it data directly from one of many
sources, and then reads the decoded waveform data back at her
leisure. If resource constraints are a concern, SDL_sound can process
sound data in programmer-specified blocks. Alternately, SDL_sound can
decode a whole sound file and hand back a single pointer to the whole
waveform. SDL_sound can also handle sample rate, audio format, and
channel conversion on-the-fly and behind-the-scenes, if the programmer
desires.


%package -n %{libname}
Summary:	SDL graphics drawing primitives and other support functions
Group:		System/Libraries
Obsoletes:	%{oldlibname} < 1.0.1-15

%description -n %{libname}
SDL_sound is a library that handles the decoding of several popular
sound file formats, such as .WAV and .MP3. It is meant to make the
programmer's sound playback tasks simpler. The programmer gives
SDL_sound a filename, or feeds it data directly from one of many
sources, and then reads the decoded waveform data back at her
leisure. If resource constraints are a concern, SDL_sound can process
sound data in programmer-specified blocks. Alternately, SDL_sound can
decode a whole sound file and hand back a single pointer to the whole
waveform. SDL_sound can also handle sample rate, audio format, and
channel conversion on-the-fly and behind-the-scenes, if the programmer
desires.

%package -n %{develname}
Summary:	Header files and more to develop SDL_sound applications
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{oldlibname}-devel < 1.0.1-15

%description -n %{develname}
Header files and more to develop SDL_sound applications.

%package -n %{staticname}
Summary:	Static SDL_sound libraries
Group:		Development/C
Requires:	%{develname} = %{version}-%{release}
Obsoletes:	%{oldlibname}-static-devel < 1.0.1-15

%description -n %{staticname}
Static SDL_sound libraries.

%prep
%autosetup -p1

%build
export CPPFLAGS="-I%{_includedir}/libmodplug"
%configure --enable-static
%make
doxygen

%install
%makeinstall_std

%if "%{_lib}" == "lib64"
perl -pi -e "s|-L/usr/lib\b|-L%{_libdir}|g" %{buildroot}%{_libdir}/*.la
%endif

%files
%doc README
%{_bindir}/*

%files -n %{libname}
%{_libdir}/lib*%{apiver}.so.%{major}*

%files -n %{develname}
%doc CHANGELOG TODO CREDITS docs/html
%{_libdir}/lib*.so
%{_includedir}/SDL/*

%files -n %{staticname}
%{_libdir}/lib*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17169 |21mr|SDL_ttf-2.0.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	lib_name_orig	lib%{name}
%define	major 0
%define	apiver 2.0
%define	libname %mklibname %{name} %{apiver} %{major}
%define	develname %mklibname -d %{name}

Summary:	Simple DirectMedia Layer - Sample TrueType Font Library
Name:		SDL_ttf
Version:	2.0.11
Release:	6
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.libsdl.org/projects/SDL_ttf/
Source0:	http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(freetype2)

%description
This is a sample library which allows you to use TrueType fonts in your SDL
applications. It comes with an example program "showfont" which displays an
example string for a given TrueType font file.

Warning! TrueType font decoding is under patent, and software using this
library may be in violation of this patent. Use at your own risk! See
http://www.freetype.org/ for details.

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

Warning! TrueType font decoding is under patent, and software using this
library may be in violation of this patent. Use at your own risk! See
http://www.freetype.org/ for details.

%package -n %{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{lib_name_orig}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

Warning! TrueType font decoding is under patent, and software using this
library may be in violation of this patent. Use at your own risk! See
http://www.freetype.org/ for details.

%package -n %{libname}-test
Summary:	Test binary for %{name}
Group:		System/Libraries
Conflicts:	showfont

%description -n	%{libname}-test
This package contains binary to test the associated library.

%prep
%setup -q

%build
export CFLAGS="%{optflags} -lm"
%configure --disable-static
%make

%install
%makeinstall_std
%__install -d %{buildroot}%{_bindir}
%__install -m755 .libs/{showfont,glfont} %{buildroot}%{_bindir}

%files -n %{libname}-test
%{_bindir}/showfont
%{_bindir}/glfont

%files -n %{libname}
%{_libdir}/lib*%{apiver}.so.%{major}*

%files -n %{develname}
%doc README CHANGES
%{_libdir}/lib*.so
%{_includedir}/SDL/*
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17170 |21mr|sdparm-1.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	List or change SCSI disk parameters

Name:		sdparm
Version:	1.12
Release:	2
License:	BSD
Group:		System/Kernel and hardware
URL:		http://sg.danny.cz/sg/sdparm.html 
Source0:	http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz

%description
SCSI disk parameters are held in mode pages. This utility lists or
changes those parameters. Other SCSI devices (or devices that use
the SCSI command set) such as CD/DVD and tape drives may also find
parts of sdparm useful. Requires the linux kernel 2.4 series or later.
In the 2.4 series SCSI generic device names (e.g. /dev/sg0)
must be used. In the 2.6 series other device names may be used as
well (e.g. /dev/sda).

Warning: It is possible (but unlikely) to change SCSI disk settings
that stop or slow it down. Use with care.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%doc ChangeLog README CREDITS AUTHORS COPYING
%{_bindir}/*
%{_mandir}/man*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17171 |21mr|seabios-1.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Seabios is noarch, but required on architectures which cannot build it.
# Disable debuginfo because it is of no use to us.
%global debug_package %{nil}

# You can build a debugging version of the BIOS by setting this to a
# value > 1.  See src/config.h for possible values, but setting it to
# a number like 99 will enable all possible debugging.  Note that
# debugging goes to a special qemu port that you have to enable.  See
# the SeaBIOS top-level README file for the magic qemu invocation to
# enable this.
%global debug_level 1

# Special case, don't exit on "Arch dependent binaries in noarch package"
%global _binaries_in_noarch_packages_terminate_build 0

Summary:	Open-source legacy BIOS implementation
Name:		seabios
Version:	1.14.0
Release:	1
License:	LGPLv3
Group:		Emulators
Url:		http://www.coreboot.org/SeaBIOS
Source0:	https://www.seabios.org/downloads/%{name}-%{version}.tar.gz
Source10:	config.vga-cirrus
Source11:	config.vga-isavga
Source12:	config.vga-qxl
Source13:	config.vga-stdvga
Source14:	config.vga-vmware
Source15:	config.csm
Source16:	config.coreboot
Source17:	config.seabios-128k
Source18:	config.seabios-256k
Source19:	config.vga-virtio
Source20:	config.vga-ramfb
Source21:	config.vga-bochs-display
Source22:	config.vga-ati
Source23:	config.seabios-microvm
Patch0001:	0001-Workaround-for-a-win8.1-32-S4-resume-bug.patch
Patch0002:	0002-reserve-more-memory-on-fseg.patch
Patch0003:	0003-vgabios-Reorder-video-modes-to-work-around-a-Windows.patch
Patch0004:	0004-nvme-Record-maximum-allowed-request-size.patch
Patch0005:	0005-nvme-improve-namespace-allocation.patch
Patch0006:	0006-ignore-note.patch
BuildRequires:	iasl
BuildRequires:	python3
Requires:	%{name}-bin = %{EVRD}
Requires:	seavgabios-bin = %{EVRD}
# iasl not avail for aarch64
ExcludeArch:	%{armx}

%description
SeaBIOS is an open-source legacy BIOS implementation which can be used as
a coreboot payload. It implements the standard BIOS calling interfaces
that a typical x86 proprietary BIOS implements.

%files
%doc COPYING COPYING.LESSER README

#----------------------------------------------------------------------------

%package bin
Summary:	Seabios for x86

%description bin
SeaBIOS is an open-source legacy BIOS implementation which can be used as
a coreboot payload. It implements the standard BIOS calling interfaces
that a typical x86 proprietary BIOS implements.

%files bin
%dir %{_datadir}/seabios/
%{_datadir}/seabios/bios*.bin

#----------------------------------------------------------------------------

%package -n seavgabios-bin
Summary:	Seavgabios for x86
Obsoletes:	vgabios < 1.11
Provides:	vgabios = %{EVRD}

%description -n seavgabios-bin
SeaVGABIOS is an open-source VGABIOS implementation.

%files -n seavgabios-bin
%dir %{_datadir}/seavgabios/
%{_datadir}/seavgabios/vgabios*.bin

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%define _lto_cflags %{nil}
export CFLAGS="%{optflags}"
mkdir binaries

build_bios() {
	make clean distclean
	cp $1 .config
	echo "CONFIG_DEBUG_LEVEL=%{debug_level}" >> .config
	make oldnoconfig V=1

	make V=1 EXTRAVERSION="-%{release}" \
	PYTHON=python3 $4
	cp out/$2 binaries/$3
}

# seabios
build_bios %{_sourcedir}/config.seabios-128k bios.bin bios.bin
build_bios %{_sourcedir}/config.seabios-256k bios.bin bios-256k.bin
build_bios %{_sourcedir}/config.csm Csm16.bin bios-csm.bin
build_bios %{_sourcedir}/config.coreboot bios.bin.elf bios-coreboot.bin
build_bios %{_sourcedir}/config.seabios-microvm bios.bin bios-microvm.bin

# seavgabios
%global vgaconfigs bochs-display cirrus isavga qxl stdvga ramfb vmware virtio ati
for config in %{vgaconfigs}; do
    build_bios %{_sourcedir}/config.vga-${config} \
               vgabios.bin vgabios-${config}.bin out/vgabios.bin
done

%install
mkdir -p %{buildroot}%{_datadir}/seabios
mkdir -p %{buildroot}%{_datadir}/seavgabios
install -m 0644 binaries/bios.bin %{buildroot}%{_datadir}/seabios/bios.bin
install -m 0644 binaries/bios-256k.bin %{buildroot}%{_datadir}/seabios/bios-256k.bin
install -m 0644 binaries/bios-csm.bin %{buildroot}%{_datadir}/seabios/bios-csm.bin
install -m 0644 binaries/bios-coreboot.bin %{buildroot}%{_datadir}/seabios/bios-coreboot.bin
install -m 0644 binaries/bios-microvm.bin %{buildroot}%{_datadir}/seabios/bios-microvm.bin
install -m 0644 binaries/vgabios*.bin %{buildroot}%{_datadir}/seavgabios
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17172 |21mr|seahorse-42.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME frontend to GnuPG
Name:		seahorse
Version:	42.0
Release:	4
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/seahorse
Source0:	https://download.gnome.org/sources/seahorse/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	gnupg2
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	xsltproc
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	xsltproc
BuildRequires:	gpgme-devel
BuildRequires:	libldap-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(gck-1)
BuildRequires:	pkgconfig(gcr-3)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gladeui-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(pwquality)
BuildRequires:	pkgconfig(sm)
Requires:	gcr3
Requires:	gnupg

%description
Seahorse is a GNOME frontend for the GNU Privacy Guard ecryption tool. It can
be used for file encryption and decryption and for digitally signing files and
for verifying those signatures. Key management options are also included.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_appdatadir}/org.gnome.%{name}.Application.appdata.xml
%{_bindir}/%{name}
%{_datadir}/applications/org.gnome.%{name}.Application.desktop
%{_datadir}/dbus-1/services/org.gnome.%{name}.Application.service
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/gnome-shell/search-providers/%{name}-search-provider.ini
%{_datadir}/icons/*/*/*/*
%{_datadir}/%{name}/icons/hicolor/*
%{_libexecdir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dmanpage=true
sed -i 's/^\(#define GPG_MICRO [0-9]*\).*/\1/' ./*/config*
%meson_build

%install
%meson_install

# Menu
desktop-file-install --vendor="" \
	--remove-category="Advanced" \
	--remove-category="Application" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*.desktop

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17173 |21mr|secure-delete-3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools to wipe files, free disk space, swap and memory
Name:		secure-delete
Version:	3.1
Release:	1
License:	GPL
Group:		System/Base
Url:		http://www.thc.org/
Source0:	secure-delete_3.1.orig.tar.gz
Patch0:		secure-delete_3.1-5.diff
Conflicts:	srm

%description
Even if you overwrite a file 10+ times, it can still be recovered. This
package contains tools to securely wipe data from files, free disk space,
swap and memory.

%files
%doc CHANGES README usenix6-gutmann.doc secure_delete.doc the_cleaner.sh
%{_bindir}/sdmem
%{_bindir}/sfill
%{_bindir}/srm
%{_bindir}/sswap
%{_mandir}/man1/sdmem.1*
%{_mandir}/man1/sfill.1*
%{_mandir}/man1/srm.1*
%{_mandir}/man1/sswap.1*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}.orig
%patch0 -p1

%build
make OPT="%{optflags} -D_FILE_OFFSET_BITS=64 -D_LARGEFILE_SOURCE"

%install
install -d -m 0755 %{buildroot}%{_bindir}
install -d -m 0755 %{buildroot}%{_mandir}/man1

# Rename smem to sdmem to avoid conflict with smem package
mv smem sdmem
mv smem.1 sdmem.1

install -m 755 sfill sdmem sswap srm %{buildroot}%{_bindir}/
install -m 644 sfill.1 sdmem.1 sswap.1 srm.1 %{buildroot}%{_mandir}/man1/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17174 |21mr|sed-4.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Distro-specific default value is defined in branding-configs package
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	A GNU stream text editor
Name:		sed
Version:	4.8
Release:	5
License:	GPL
Group:		Text tools
Url:		http://www.gnu.org/software/sed/
Source0:	ftp://ftp.gnu.org/pub/gnu/sed/%{name}-%{version}.tar.xz
Provides:	/bin/sed
Provides:	%{_bindir}/sed
BuildRequires:	texinfo
BuildRequires:	pkgconfig(libacl)
%if %{with selinux}
# TODO: is it needed?
BuildRequires:	selinux-devel
%endif

%description
The sed (Stream EDitor) editor is a stream or batch (non-interactive)
editor. Sed takes text as input, performs an operation or set of
operations on the text and outputs the modified text.  The operations
that sed performs (substitutions, deletions, insertions, etc.) can be
specified in a script file or from the command line.

%files -f %{name}.lang
%license COPYING
%doc BUGS NEWS README
%attr(755,root,root) /bin/sed 
%{_bindir}/sed
%{_infodir}/sed.info*
%{_mandir}/man1/sed.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# off test which fails depending on selinux config on build host
test -f testsuite/inplace-selinux.sh
cat > testsuite/inplace-selinux.sh << 'EOF'
#!/bin/sh
exit 0
EOF
chmod 755 testsuite/inplace-selinux.sh

%build
%serverbuild_hardened
%configure \
	--bindir=/bin

%make_build

%check
%make check

%install
%make_install
rm -f %{buildroot}%{_docdir}/sed.html
# Compat with Fedora etc.
# /usr/bin/sed is used in upstream code, for example:
# https://gitlab.freedesktop.org/NetworkManager/NetworkManager/blob/master/data/84-nm-drivers.rules
mkdir -p %{buildroot}%{_bindir}
ln -s /bin/sed %{buildroot}%{_bindir}/sed

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17175 |21mr|selinux-policy-3.14.5-57.587.rosa202110
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# github repo with selinux-policy base sources
%global commit0 31db3dc710352793e122ccc2bab65f1de1021a77
%global shortcommit0 %(c=%{commit0}; echo ${c:0:7})

# github repo with selinux-policy contrib sources
%global commit1 bfb130fe27395f109ebbeb7d861304b5efd546f3
%global shortcommit1 %(c=%{commit1}; echo ${c:0:7})

# ROSA does not use /usr/libexec in most cases, but here let's use it to easify
# copying selinux-related stuff from Red Hat and because putting non-binary scripts
# into /usr/lib64 is not a good idea
%define _libexecdir /usr/libexec
# Define some macros so that we can just copy-paste the rest of the spec from Fedora
%define utf8 export LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9564
%define _sharedstatedir /var/lib

Summary:	SELinux policy configuration
Name:		selinux-policy
Version:	3.14.5
# The distsuffix need for different %%_libexecdir
Release:	57.587.%{distsuffix}%{mdvver}
License:	GPLv2+
Group:		System/Base
Url:		https://github.com/fedora-selinux/selinux-policy
Source0:	%{name}-%{shortcommit0}.tar.gz
# https://github.com/fedora-selinux/selinux-policy-contrib
Source1:	%{name}-contrib-%{shortcommit1}.tar.gz
# Include SELinux policy for container from separate container-selinux repo
# Git repo: https://github.com/containers/container-selinux.git
Source2:	container-selinux.tgz
Source3:	booleans-mls.conf
Source4:	booleans-rosa.conf
Source5:	booleans-targeted.conf
Source6:	booleans.subs_dist
Source7:	class
Source8:	customizable_types
Source9:	file_contexts.subs_dist
# Tool helps during policy development, to expand system m4 macros to raw allow rules
# Git repo: https://github.com/fedora-selinux/macro-expander.git
Source10:	macro-expander
Source11:	Makefile.devel
Source12:	modules-mls-base.conf
Source13:	modules-mls-contrib.conf
Source14:	modules-targeted-contrib.conf
Source15:	rosa_add.te
Source16:	rosa_add.fc
Source17:	rosa_add.if
Source18:	rosa_allow_policy.te
Source19:	rosa_mls_exceptions_policy.te
Source20:	rosa_mls_disable_policy.te
Source21:	secolor.conf
Source22:	securetty_types-mls
Source23:	setrans-mls.conf
Source24:	selinux-policy.conf
Source25:	users-mls
# Provide rpm macros for packages installing SELinux modules
Source100:	rpm.macros
# ROSA patches
Source101:	rosa_allow_multiplication.sh
Source102:	rosa-paths.sh
Source1000:	selinux-policy.rpmlintrc
# diff against Fedora's source
# generated by cat /var/log/audit/audit.log | audit2allow (in permissive mode)
Patch0:		selinux-policy.diff
Patch1:		0001-Add-urpmi-and-urpm-tools.patch
Patch2:		0002-Add-draklive-rules-from-old-Nickel.patch
Patch3:		0003-Add-KDM.patch
Patch4:		0004-Add-Mandriva-X-init-scripts.patch
Patch6:		0006-rosa-deneverallow.patch
Patch7:		0007-rosa-dedeprecated.patch
Patch8:		0008-rosa-s15-s3.patch
Patch9:		0009-rosa-allow-login-sysadm_r.patch
Patch10:	0010-rosa-allow-redhat-user_r-for-all.patch
Patch11:	0011-rosa_allow_policy-fc.patch
Patch12:	0012-rosa-files-model-sysadm.patch
Patch13:	0013-rosa-add-kde4-fcontext.patch
Patch14:	0014-rosa-secure-roles.patch
Patch15:	0015-rosa-add-watch-permissions.patch
Patch16:	0016-rosa-replace-home-types.patch
# required by freeipa
Patch17:	0017-Makefile-fix-tmp-.mod.fc-target.patch
Patch18:	0018-rosa_mls_disable_policy.patch
Patch19:	0019-rosa-replace-audit-log-type.patch
Patch20:	0020-rosa-disable-rw-selinux-config.patch
Patch21:	0021-rosa-add-qt5-support.patch
Patch22:	0022-remove-user-home-dir-type-for-files.patch
Patch23:	0023-replace-grub-config-type.patch
# https://security-tracker.debian.org/tracker/CVE-2020-24612
Patch24:	CVE-2020-24612.patch
Patch25:	0025-disable-media-mnt-fc.patch
BuildArch:	noarch
BuildRequires:	bzip2
BuildRequires:	checkpolicy
BuildRequires:	gawk
BuildRequires:	gcc
BuildRequires:	git-core
# For UTF-8 on ROSA
BuildRequires:	locales-en
BuildRequires:	m4
BuildRequires:	policycoreutils-python-utils
BuildRequires:	python3
BuildRequires:	policycoreutils-devel
Requires(pre):	policycoreutils
Requires(post):	coreutils
Requires(post):	gawk

%description
SELinux Base package for SELinux Reference Policy - modular.
Based off of reference policy: Checked out revision 2.20091117

%files
%config(noreplace) %{_sysconfdir}/selinux/config
%ghost %{_sysconfdir}/sysconfig/selinux
%{_usr}/lib/tmpfiles.d/selinux-policy.conf
%{_rpmmacrodir}/*selinux-policy*

%post
if [ ! -s /etc/selinux/config ]; then
#
#	New install so we will default to disabled policy
#
echo "
# This file controls the state of SELinux on the system.
# SELINUX= can take one of these three values:
#	enforcing - SELinux security policy is enforced.
#	permissive - SELinux prints warnings instead of enforcing.
#	disabled - No SELinux policy is loaded.
SELINUX=disabled
# SELINUXTYPE= can take one of these three values:
#	mls - Multi Level Security protection.
SELINUXTYPE=mls

" > /etc/selinux/config

	ln -sf ../selinux/config /etc/sysconfig/selinux
	restorecon /etc/selinux/config 2> /dev/null || :
else
	. /etc/selinux/config
fi
exit 0

%postun
if [ $1 = 0 ]; then
	setenforce 0 2> /dev/null
	if [ ! -s /etc/selinux/config ]; then
		echo "SELINUX=disabled" > /etc/selinux/config
	else
		sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
	fi
fi
exit 0

#------------------------------------------------------------------

%package devel
Summary:	SELinux policy devel
Group:		System/Base
Requires:	checkpolicy
Requires:	m4
Requires:	make
Requires:	selinux-policy = %{EVRD}
Requires(pre):	selinux-policy = %{EVRD}
Requires(post):	policycoreutils-devel

%description devel
SELinux policy development and man page package

%files devel
%{_bindir}/macro-expander
%{_datadir}/selinux/devel/include/*
%{_datadir}/selinux/devel/Makefile
%{_datadir}/selinux/devel/example.*
%{_datadir}/selinux/devel/policy.*
%ghost %{_sharedstatedir}/sepolgen/interface_info

%post devel
selinuxenabled && /usr/bin/sepolgen-ifgen 2>/dev/null
exit 0

#------------------------------------------------------------------

%package doc
Summary:	SELinux policy documentation
Group:		Documentation
Requires:	selinux-policy = %{EVRD}
Requires(pre):	selinux-policy = %{EVRD}

%description doc
SELinux policy documentation package

%files doc
%doc %{_defaultdocdir}/%{name}
%{_mandir}/ru/*/*

#------------------------------------------------------------------

%package mls
Summary:	SELinux mls base policy
Group:		System/Base
Requires:	policycoreutils-newrole
Requires:	selinux-policy = %{EVRD}
Requires:	setransd
Requires(pre):	coreutils
Requires(pre):	policycoreutils
Requires(pre):	selinux-policy = %{EVRD}
Provides:	selinux-policy-base = %{EVRD}

%description mls
SELinux Reference policy mls base module.

%files mls -f %{buildroot}/%{_datadir}/selinux/mls/nonbasemodules.lst
%{_datadir}/selinux/mls
%{_sbindir}/mls-first-boot
%dir %attr(700,root,root) %{_sharedstatedir}/selinux/mls/active/modules
%{_sharedstatedir}/selinux/mls/active/modules/100/unprivuser/cil
%{_sharedstatedir}/selinux/mls/active/modules/100/unprivuser/hll
%{_sharedstatedir}/selinux/mls/active/modules/100/unprivuser/lang_ext
%{_sharedstatedir}/selinux/mls/active/commit_num
%{_sharedstatedir}/selinux/mls/active/file_contexts
%{_sharedstatedir}/selinux/mls/active/file_contexts.homedirs
%{_sharedstatedir}/selinux/mls/active/homedir_template
%{_sharedstatedir}/selinux/mls/active/modules/100/base
%{_sharedstatedir}/selinux/mls/active/modules/100/sandbox/cil
%{_sharedstatedir}/selinux/mls/active/modules/100/sandbox/hll
%{_sharedstatedir}/selinux/mls/active/modules/100/sandbox/lang_ext
%{_sharedstatedir}/selinux/mls/active/policy.kern
%ghost %{_sharedstatedir}/selinux/mls/active/policy.linked
%ghost %{_sharedstatedir}/selinux/mls/active/seusers.linked
%{_sharedstatedir}/selinux/mls/active/seusers
%{_sharedstatedir}/selinux/mls/active/users_extra
%ghost %{_sharedstatedir}/selinux/mls/active/users_extra.linked
%{_sharedstatedir}/selinux/mls/semanage.read.LOCK
%{_sharedstatedir}/selinux/mls/semanage.trans.LOCK
%{_sysconfdir}/selinux/mls/.policy.sha512
%{_sysconfdir}/selinux/mls/booleans.subs_dist
%config %{_sysconfdir}/selinux/mls/contexts/customizable_types
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/dbus_contexts
%config %{_sysconfdir}/selinux/mls/contexts/default_contexts
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/default_type
%{_sysconfdir}/selinux/mls/contexts/files/file_contexts
%ghost %{_sysconfdir}/selinux/mls/contexts/files/file_contexts.bin
%ghost %{_sysconfdir}/selinux/mls/contexts/files/file_contexts.homedirs.bin
%{_sysconfdir}/selinux/mls/contexts/files/file_contexts.homedirs
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/files/file_contexts.local
%ghost %{_sysconfdir}/selinux/mls/contexts/files/file_contexts.local.bin
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/files/file_contexts.subs
%{_sysconfdir}/selinux/mls/contexts/files/file_contexts.subs_dist
%config %{_sysconfdir}/selinux/mls/contexts/files/media
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/failsafe_context
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/initrc_context
%config %{_sysconfdir}/selinux/mls/contexts/lxc_contexts
%config %{_sysconfdir}/selinux/mls/contexts/openssh_contexts
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/securetty_types
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/removable_context
%config %{_sysconfdir}/selinux/mls/contexts/sepgsql_contexts
%config %{_sysconfdir}/selinux/mls/contexts/snapperd_contexts
%config %{_sysconfdir}/selinux/mls/contexts/systemd_contexts
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/userhelper_context
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/users/root
%config(noreplace) %{_sysconfdir}/selinux/mls/contexts/users/user_u
%config %{_sysconfdir}/selinux/mls/contexts/virtual_domain_context
%config %{_sysconfdir}/selinux/mls/contexts/virtual_image_context
%config %{_sysconfdir}/selinux/mls/contexts/x_contexts
%{_sysconfdir}/selinux/mls/policy/policy.32
%config(noreplace) %{_sysconfdir}/selinux/mls/secolor.conf
%config(noreplace) %{_sysconfdir}/selinux/mls/setrans.conf
%config(noreplace) %{_sysconfdir}/selinux/mls/seusers
%{_unitdir}/mls-first-boot.service

# backupConfigLua()
%pretrans mls -p <lua>
local sysconfdir = rpm.expand("%{_sysconfdir}")
local config_file = sysconfdir .. "/selinux/config"
local config_backup = sysconfdir .. "/selinux/.config_backup"
os.remove(config_backup)
if posix.stat(config_file) then
	local f = assert(io.open(config_file, "r"), "Failed to read " .. config_file)
	local content = f:read("*all")
	f:close()
	local backup = content:gsub("SELINUX", "BACKUP_SELINUX")
	local bf = assert(io.open(config_backup, "w"), "Failed to open " .. config_backup)
	bf:write(backup)
	bf:close()
end

%pre mls
# preInstall()
if [ $1 -ne 1 ] && [ -s /etc/selinux/config ]; then
	if [ -d %{_sharedstatedir}/selinux/mls/active/modules/100/ganesha ]; then
		%{_sbindir}/semodule -n -d ganesha
	fi
	. %{_sysconfdir}/selinux/config
	FILE_CONTEXT=%{_sysconfdir}/selinux/mls/contexts/files/file_contexts
	if [ "${SELINUXTYPE}" = mls -a -f ${FILE_CONTEXT} ]; then
		[ -f ${FILE_CONTEXT}.pre ] || cp -f ${FILE_CONTEXT} ${FILE_CONTEXT}.pre
	fi
	touch /etc/selinux/mls/.rebuild
	if [ -e /etc/selinux/mls/.policy.sha512 ]; then
		POLICY_FILE=`ls /etc/selinux/mls/policy/policy.* | sort | head -1`
		sha512=`sha512sum $POLICY_FILE | cut -d ' ' -f 1`
		checksha512=`cat /etc/selinux/mls/.policy.sha512`
		if [ "$sha512" == "$checksha512" ] ; then
			rm /etc/selinux/mls/.rebuild
		fi
	fi
fi

%post mls
# checkConfigConsistency()
. %{_sysconfdir}/selinux/config
if [ -f %{_sysconfdir}/selinux/.config_backup ]; then
	. %{_sysconfdir}/selinux/.config_backup
else
	BACKUP_SELINUXTYPE=targeted
fi
if ls %{_sysconfdir}/selinux/$BACKUP_SELINUXTYPE/policy/policy.* &>/dev/null; then
	if [ "$BACKUP_SELINUXTYPE" != "$SELINUXTYPE" ]; then
		sed -i 's/^SELINUXTYPE=.*/SELINUXTYPE='"$BACKUP_SELINUXTYPE"'/g' %{_sysconfdir}/selinux/config
	fi
elif [ "mls" = "targeted" ]; then
	if [ "mls" != "$SELINUXTYPE" ]; then
		sed -i 's/^SELINUXTYPE=.*/SELINUXTYPE=mls/g' %{_sysconfdir}/selinux/config
	fi
elif ! ls %{_sysconfdir}/selinux/$SELINUXTYPE/policy/policy.* &>/dev/null; then
	if [ "mls" != "$SELINUXTYPE" ]; then
		sed -i 's/^SELINUXTYPE=.*/SELINUXTYPE=mls/g' %{_sysconfdir}/selinux/config
	fi
fi

# postInstall()
. %{_sysconfdir}/selinux/config
if [ -e /etc/selinux/mls/.rebuild ]; then
	rm /etc/selinux/mls/.rebuild
	/usr/sbin/semodule -B -n -s mls
fi
[ "${SELINUXTYPE}" == "mls" ] && selinuxenabled && load_policy
if [ $1 -eq 1 ]; then
	/sbin/restorecon -R /root /var/log /run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null
else
	# relabel() mls
	. %{_sysconfdir}/selinux/config
	FILE_CONTEXT=%{_sysconfdir}/selinux/mls/contexts/files/file_contexts
	/usr/sbin/selinuxenabled
	if [ $? = 0 -a "${SELINUXTYPE}" = mls -a -f ${FILE_CONTEXT}.pre ]; then
		/sbin/fixfiles -C ${FILE_CONTEXT}.pre restore &> /dev/null > /dev/null
		rm -f ${FILE_CONTEXT}.pre
	fi
	if /sbin/restorecon -e /run/media -R /root /var/log /var/run /etc/passwd* /etc/group* /etc/*shadow* 2> /dev/null; then
		continue
	fi
fi

exit 0

%posttrans mls
# checkConfigConsistency()
. %{_sysconfdir}/selinux/config
if [ -f %{_sysconfdir}/selinux/.config_backup ]; then
	. %{_sysconfdir}/selinux/.config_backup
else
	BACKUP_SELINUXTYPE=targeted
fi
if ls %{_sysconfdir}/selinux/$BACKUP_SELINUXTYPE/policy/policy.* &>/dev/null; then
	if [ "$BACKUP_SELINUXTYPE" != "$SELINUXTYPE" ]; then
		sed -i 's/^SELINUXTYPE=.*/SELINUXTYPE='"$BACKUP_SELINUXTYPE"'/g' %{_sysconfdir}/selinux/config
	fi
elif [ "mls" = "targeted" ]; then
	if [ "mls" != "$SELINUXTYPE" ]; then
		sed -i 's/^SELINUXTYPE=.*/SELINUXTYPE=mls/g' %{_sysconfdir}/selinux/config
	fi
elif ! ls %{_sysconfdir}/selinux/$SELINUXTYPE/policy/policy.* &>/dev/null; then
	if [ "mls" != "$SELINUXTYPE" ]; then
		sed -i 's/^SELINUXTYPE=.*/SELINUXTYPE=mls/g' %{_sysconfdir}/selinux/config
	fi
fi

%postun mls
if [ $1 = 0 ]; then
	source /etc/selinux/config
	if [ "$SELINUXTYPE" = "mls" ]; then
		setenforce 0 2> /dev/null
		if [ ! -s /etc/selinux/config ]; then
			echo "SELINUX=disabled" > /etc/selinux/config
		else
			sed -i 's/^SELINUX=.*/SELINUX=disabled/g' /etc/selinux/config
		fi
	fi
fi
exit 0

#------------------------------------------------------------------

%build

%prep
%utf8
%setup -n %{name}-%{commit1} -q -b 1
tar -xf %{SOURCE2}
contrib_path=`pwd`
install -m 0644 %{SOURCE15} ./rosa_add.te
install -m 0644 %{SOURCE16} ./rosa_add.fc
install -m 0644 %{SOURCE17} ./rosa_add.if
install -m 0644 %{SOURCE18} ./rosa_allow_policy.te
touch rosa_allow_policy.if rosa_allow_policy.fc
touch rosa_allow_multiplication.if rosa_allow_multiplication.fc
%patch1 -p1
%patch2 -p1

%setup -n %{name}-%{commit0} -q
# selinux-policy.diff
patch -p1 < %{PATCH0}
%patch3 -p1
%patch4 -p1
refpolicy_path=`pwd`
cp $contrib_path/* $refpolicy_path/policy/modules/contrib

# CVE
pushd ../
%patch24 -p1
popd

# Clean roles
pushd ../
rm -f %{name}-%{commit0}/config/appconfig-mls/{guest,staff,unconfined,xguest}_u_default_contexts
rm -f %{name}-%{commit0}/policy/modules/roles/{staff,logadm,unconfineduser}.*
rm -rf %{name}-%{commit0}/config/appconfig-{mcs,standard}
rm -f %{name}-%{commit0}/selinux_config/*-{minimum,targeted}*
rm -f %{name}-%{commit1}/{,x}guest.*
rm -f %{name}-%{commit0}/policy/modules/contrib/{,x}guest.*
popd

### Replace *_home_t with home_t ###
pushd ../
find . -regex ".*\.\(te\|if\|fc\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i -e "s/[a-zA-Z_]*_home_t\([\:\|\)\|\;\| |,\]\)/home_t\1/g" {}'
popd

pushd ../
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
popd
%patch17 -p1
pushd ../
%patch18 -p1
%patch19 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch25 -p1
popd

### Revert and move all mls_*
pushd ../
find . -regex ".*\.\(te\|if\|fc\)\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "/mls_[a-z_]*[\(].*[\)]/d" {}'
popd
install -m 0644 %{SOURCE19} ./rosa_mls_exceptions_policy.te
touch rosa_mls_exceptions_policy.if rosa_mls_exceptions_policy.fc
install -m 0644 %{SOURCE20} ./rosa_mls_disable_policy.te
touch rosa_mls_disable_policy.if rosa_mls_disable_policy.fc

### Regeneration rosa_allow_multiplication.te ###
cp %{SOURCE7} %{SOURCE12} %{SOURCE13} %{SOURCE14} ./
bash -x %{SOURCE101}						&>/dev/null
touch rosa_allow_multiplication.te

### Disable add_name, append, create, relabelfrom, relabelto, setattr, write allow for users ###
## user_t
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i -e "s/^[#]*allow user_t [0-9a-zA-Z_]*_t:\(dir\|file\|lnk_file\) .*\(add_name\|append\|create\|relabelfrom\|relabelto\|setattr\|write\).*$/# autodisable &/" -e "/^# autodisable allow user_t \(self\|home_t\|user_tmp_t\|user_home_dir_t\|var_run_t\|var_tmp_t\|tmp_t\):\(dir\|file\|lnk_file\) .*\(add_name\|append\|create\|relabelfrom\|relabelto\|setattr\|write\).*$/ s/^# autodisable //" {}'
# Users need to set passwords
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "/^# autodisable \(allow user_t pam_var_run_t:dir write\|allow user_t pam_var_run_t:dir add_name\|allow user_t passwd_file_t:file write\)/ s/^# autodisable //" {}'
# Users need to use domen
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "/^# autodisable allow user_t \(var_run_t\|home_root_t\):dir \(add_name\|write\)/ s/^# autodisable //" {}'
## auditadm_t
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i -e "s/^[#]*allow auditadm_t [0-9a-zA-Z_]*_t:\(dir\|file\|lnk_file\) .*\(add_name\|append\|create\|relabelfrom\|relabelto\|setattr\|write\).*$/# autodisable &/" -e "/^# autodisable allow auditadm_t \(self\|home_t\|user_tmp_t\|user_home_dir_t\|etc_t\|var_log_t\|var_run_t\|var_tmp_t\|tmp_t\):\(dir\|file\|lnk_file\) .*\(add_name\|append\|create\|relabelfrom\|relabelto\|setattr\|write\).*$/ s/^# autodisable //" {}'

### Disable relabelfrom, relabelto for sysadm ###
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i -e "s/^[#]*allow sysadm_t [0-9a-zA-Z_]*_t:\(dir\|file\|lnk_file\) .*\(relabelfrom\|relabelto\).*$/# autodisable &/" {}'
# Sysadm need to set secure types
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "/^# autodisable allow sysadm_t \(disable_file_t\|home_t\|home_root_t\):\(file\|lnk_file\) relabelto/ s/^# autodisable //" {}'
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "/^# autodisable allow sysadm_t disable_file_t:dir relabelto/ s/^# autodisable //" {}'

### Security root_config_file_t ###
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "s/^[#]*allow \(sysadm\|secadm\)_\(\|sudo_\|su_\)t root_config_file_t:\(file\|lnk_file\) .*\(add_name\|append\|create\|relabelfrom\|relabelto\|rename\|setattr\|unlink\|write\).*$/# autodisable &/" {}'

### Security setenforce ###
find . -regex ".*\(\.if\|\.te\)\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "s/selinux_set_enforce_mode(.*)/# autodisable &/" {}'

### Security tty for users ###
find . -regex ".*userdomain\.if$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "s/.*term_user_[pt]ty(.*/# autodisable &/" {}'

### Security home types ###
find . -regex ".*\.te\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "s/^userdom_home_filetrans_user_home_dir(.*$/# autodisable &/" {}'
find . -regex ".*\.fc\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "/^\(HOME_DIR\|HOME_ROOT\|\x2froot\)\(\x2f\|\t\| \)/ s/\(.*\)/# autodisable &/" {}'
find . -regex ".*/rosa_add\.fc$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "/\(HOME_DIR\|HOME_ROOT\|\x2froot\)\(\x2f\|\t\| \)/ s/# autodisable//" {}'
# Set userdom_user_home_dir_filetrans, userdom_admin_home_dir_filetrans, userdom_user_home_content_filetrans to home_t
find . -regex ".*\(\.if\|\.te\)\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "s/^\(.*userdom_\)\(admin\|user\)\(_home_\)\(content\|dir\)\(_filetrans([_a-zA-Z0-9$]*, \)[_a-zA-Z0-9$]*\(,.*\)$/\tgen_require(\x60\n\t\ttype home_t;\n\t\x27)\n\1\2\3\4\5home_t\6/" {}'
# Set files_home_filetrans, gnome_cache_filetrans, arpwatch_data_filetrans to home_t
find . -regex ".*\(\.if\|\.te\)\(\|\.in\)$" -print | xargs -P "$(nproc)" -I{} bash -c 'sed -i "s/^\([ \t]*\)\(files_home\|gnome_cache\|arpwatch_data\)\(_filetrans([_a-zA-Z0-9$]*, \)[_a-zA-Z0-9$]*\(,.*\)$/\tgen_require(\x60\n\t\ttype home_t;\n\t\x27)\n\1\2\3home_t\4/" {}'

# init local git so that we get a diff before and after running rosa-paths.sh
git init
git config user.email "noreply@nixtux.ru"
git config user.name "Nixtux Commit Bot"
git add .
git commit -m "Init"
# duplicate paths so that they become correct for ROSA
env PKG_BUILD=1 MODE=alias-dups-remove bash -x %{SOURCE102}	&>/dev/null
# print diff into build log
env PAGER=none git diff
# commit changes to be able to get them in packed RPM build root
git add .
git commit -m "Processed by rosa-paths.sh"
git format-patch -1

mkdir selinux_config
for i in %{SOURCE3} %{SOURCE4} %{SOURCE5} %{SOURCE8} %{SOURCE9} %{SOURCE11} %{SOURCE12} %{SOURCE13} %{SOURCE14} %{SOURCE22} %{SOURCE23} %{SOURCE25} ; do
	cp $i selinux_config
done

# Add modules from targeted
pushd selinux_config
for i in modules-targeted-contrib.conf modules-mls-contrib.conf; do
	mv -v "$i" "${i}.orig"; done
	cat modules-targeted-contrib.conf.orig modules-mls-contrib.conf.orig | grep -v '^#' | grep '=[[:space:]]' | sort -u > modules-mls-contrib.conf
	cp modules-mls-contrib.conf modules-targeted-contrib.conf
	sed -i -e '/unprivuser/d' modules-targeted-contrib.conf
	sed -i -e '/^rtas[[:space:]]/d' modules-mls-contrib.conf
	rm -fv *.conf.orig
	for i in modules-mls-contrib.conf modules-targeted-contrib.conf; do
		if [ "$(cat "$i" | wc -l)" -lt 300 ]; then
			echo "Probably some contrib modules got lost!"
			exit 1
		fi
done
# Add booleans from targeted
for i in booleans-targeted.conf booleans-mls.conf; do
	mv -v "$i" "${i}.orig"
done
cat booleans-targeted.conf.orig booleans-mls.conf.orig booleans-rosa.conf | sort -u > booleans-targeted.conf
cp booleans-targeted.conf booleans-mls.conf
popd

# Set fcontext for all files
for i in $(find -name init.fc); do
	sed -i -e 's,\-\-,\t,g' "$i"
done

%install
%utf8

# Build targeted policy
%{__rm} -fR %{buildroot}
mkdir -p %{buildroot}%{_sysconfdir}/selinux
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
touch %{buildroot}%{_sysconfdir}/selinux/config
touch %{buildroot}%{_sysconfdir}/sysconfig/selinux
mkdir -p %{buildroot}%{_usr}/lib/tmpfiles.d/
cp %{SOURCE24} %{buildroot}%{_usr}/lib/tmpfiles.d/
mkdir -p %{buildroot}%{_bindir}
cp %{SOURCE10} %{buildroot}%{_bindir}/

# Always create policy module package directories
mkdir -p %{buildroot}%{_datadir}/selinux/{targeted,mls,minimum,modules}/
mkdir -p %{buildroot}%{_sharedstatedir}/selinux/{targeted,mls,minimum,modules}/

mkdir -p %{buildroot}%{_datadir}/selinux/packages

# Install devel
make clean

# makeCmds()
%make UNK_PERMS=deny NAME=mls TYPE=mls DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n MLS_CATS=1024 MCS_CATS=1024 bare
%make UNK_PERMS=deny NAME=mls TYPE=mls DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n MLS_CATS=1024 MCS_CATS=1024 conf
cp -f selinux_config/booleans-mls.conf ./policy/booleans.conf
cp -f selinux_config/users-mls ./policy/users

# makeModulesConf()
cp -f selinux_config/modules-mls-base.conf ./policy/modules-base.conf
cp -f selinux_config/modules-mls-base.conf ./policy/modules.conf
if [ contrib == "contrib" ];then
	cp selinux_config/modules-mls-contrib.conf ./policy/modules-contrib.conf
	cat selinux_config/modules-mls-contrib.conf >> ./policy/modules.conf
fi

# installCmds()
%make UNK_PERMS=deny NAME=mls TYPE=mls DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n MLS_CATS=1024 MCS_CATS=1024 base.pp
%make validate UNK_PERMS=deny NAME=mls TYPE=mls DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n MLS_CATS=1024 MCS_CATS=1024 modules
make UNK_PERMS=deny NAME=mls TYPE=mls DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n DESTDIR=%{buildroot} MLS_CATS=1024 MCS_CATS=1024 install
make UNK_PERMS=deny NAME=mls TYPE=mls DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n DESTDIR=%{buildroot} MLS_CATS=1024 MCS_CATS=1024 install-appconfig
make UNK_PERMS=deny NAME=mls TYPE=mls DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n DESTDIR=%{buildroot} MLS_CATS=1024 MCS_CATS=1024 SEMODULE="semodule -v -p %{buildroot} -X 100 " load
mkdir -p %{buildroot}/%{_sysconfdir}/selinux/mls/logins
touch %{buildroot}%{_sysconfdir}/selinux/mls/contexts/files/file_contexts.subs
install -m0644 selinux_config/securetty_types-mls %{buildroot}%{_sysconfdir}/selinux/mls/contexts/securetty_types
install -m0644 selinux_config/file_contexts.subs_dist %{buildroot}%{_sysconfdir}/selinux/mls/contexts/files
install -m0644 selinux_config/setrans-mls.conf %{buildroot}%{_sysconfdir}/selinux/mls/setrans.conf
install -m0644 selinux_config/customizable_types %{buildroot}%{_sysconfdir}/selinux/mls/contexts/customizable_types
touch %{buildroot}%{_sysconfdir}/selinux/mls/contexts/files/file_contexts.bin
touch %{buildroot}%{_sysconfdir}/selinux/mls/contexts/files/file_contexts.local
touch %{buildroot}%{_sysconfdir}/selinux/mls/contexts/files/file_contexts.local.bin
cp %{SOURCE6} %{buildroot}%{_sysconfdir}/selinux/mls
rm -f %{buildroot}/%{_datadir}/selinux/mls/*pp*
/usr/bin/sha512sum %{buildroot}%{_sysconfdir}/selinux/mls/policy/policy.32 | cut -d' ' -f 1 > %{buildroot}%{_sysconfdir}/selinux/mls/.policy.sha512
rm -rf %{buildroot}%{_sysconfdir}/selinux/mls/contexts/netfilter_contexts
rm -rf %{buildroot}%{_sysconfdir}/selinux/mls/modules/active/policy.kern
rm -f %{buildroot}%{_sharedstatedir}/selinux/mls/active/*.linked

# modulesList()
awk '$1 !~ "/^#/" && $2 == "=" && $3 == "module" { printf "%%s ", $1 }' ./policy/modules-base.conf > %{buildroot}/%{_datadir}/selinux/mls/modules-base.lst
awk '$1 !~ "/^#/" && $2 == "=" && $3 == "base" { printf "%%s ", $1 }' ./policy/modules-base.conf > %{buildroot}/%{_datadir}/selinux/mls/base.lst
if [ -e ./policy/modules-contrib.conf ];then
	awk '$1 !~ "/^#/" && $2 == "=" && $3 == "module" { printf "%%s ", $1 }' ./policy/modules-contrib.conf > %{buildroot}/%{_datadir}/selinux/mls/modules-contrib.lst
fi

# nonBaseModulesList()
contrib_modules=`cat %{buildroot}/%{_datadir}/selinux/mls/modules-contrib.lst`
base_modules=`cat %{buildroot}/%{_datadir}/selinux/mls/modules-base.lst`
for i in $contrib_modules $base_modules; do
	if [ $i != "sandbox" ]; then
		if [ $i != "unprivuser" ]; then
			echo "%{_sharedstatedir}/selinux/mls/active/modules/100/$i" >> %{buildroot}/%{_datadir}/selinux/mls/nonbasemodules.lst
		fi
	fi
done

# installFactoryResetFiles()
mkdir -p %{buildroot}%{_datadir}/selinux/mls/default
cp -R --preserve=mode,ownership,timestamps,links %{buildroot}%{_sharedstatedir}/selinux/mls/active %{buildroot}%{_datadir}/selinux/mls/default/
find %{buildroot}%{_datadir}/selinux/mls/default/ -name hll | xargs rm -f
find %{buildroot}%{_datadir}/selinux/mls/default/ -name lang_ext | xargs sed -i 's/pp/cil/'
mkdir -p %{buildroot}/%{_libexecdir}/selinux/

# remove leftovers when save-previous=true (semanage.conf) is used
rm -rf %{buildroot}%{_sharedstatedir}/selinux/{minimum,targeted,mls}/previous

mkdir -p %{buildroot}%{_mandir}
cp -R man/* %{buildroot}%{_mandir}
make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n DESTDIR=%{buildroot} PKGNAME=%{name} MLS_CATS=1024 MCS_CATS=1024 install-docs
make UNK_PERMS=allow NAME=targeted TYPE=mcs DISTRO=redhat UBAC=n DIRECT_INITRC=n MONOLITHIC=n DESTDIR=%{buildroot} PKGNAME=%{name} MLS_CATS=1024 MCS_CATS=1024 install-headers
mkdir %{buildroot}%{_datadir}/selinux/devel/
mv %{buildroot}%{_datadir}/selinux/targeted/include %{buildroot}%{_datadir}/selinux/devel/include
install -m 644 selinux_config/Makefile.devel %{buildroot}%{_datadir}/selinux/devel/Makefile
install -m 644 doc/example.* %{buildroot}%{_datadir}/selinux/devel/
install -m 644 doc/policy.* %{buildroot}%{_datadir}/selinux/devel/
mkdir %{buildroot}%{_datadir}/selinux/devel/html

cat %{SOURCE100} | sed -e 's/SELINUXPOLICYVERSION/%{EVRD}/' -e 's@SELINUXSTOREPATH@%{_sharedstatedir}/selinux@' > macro
%install_macro %{name} macro

mkdir -p %{buildroot}%{_sharedstatedir}/sepolgen
mkdir -p %{buildroot}%{_sharedstatedir}/selinux/{minimum,mls}/active
touch %{buildroot}%{_sharedstatedir}/sepolgen/interface_info
touch %{buildroot}%{_sharedstatedir}/selinux/mls/active/{policy,seusers,users_extra}.linked

# Need for semanage login -a firstuser and relabeling some files on first boot
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sbindir}
cat > %{buildroot}%{_sbindir}/mls-first-boot <<EOF
#!/bin/bash

if ! [ -f /etc/selinux/config ]; then exit 0; fi
. /etc/selinux/config
if ! [ "\$SELINUX" = enforcing ] || ! [ "\$SELINUXTYPE" = mls ]; then exit 0; fi

if [ -d /home/live ]; then
	echo "Need to relabel some files in live..."
	restorecon -FRiv		\
		/sbin			\
		/etc			\
		/home			\
		/usr/share/config/kres-migratorrc \
		/usr/libexec/getconf	\
		/usr/lib64/git-core	\
		/run			\
		/var/lib		\
		/var/spool/postfix	\
		/var/log		\
		/var/cache/dnf		\
		/root			\
		/tmp			\
		/sys/firmware/efi
	echo "End of relabel some files in live"
	exit 0
fi

if grep -q ^wheel: /etc/group; then
	firstuser=\$(grep ^wheel: /etc/group | head -n 1 | cut -d: -f4 | cut -d, -f1)
	echo "Need to set aib_u for \$firstuser"
	semanage login -a -s aib_u -r s0 \$firstuser
fi

echo "Need to relabel some files in /home..."
restorecon -FRiv /home
find /home -type d -name "[!.]*" -maxdepth 2 -exec chcon -l s0-s3 {} \;
echo "End of relabel some files in /home"

echo "Need to relabel /run/hplip..."
chcon -l s0-s3:c0.c1023 /run/hplip
echo "End of relabel /run/hplip/"

if find /var/cache/dnf/* -context '*unlabeled_t*' |grep -q ""; then
	echo "Need to relabel some files in /var/cache/dnf..."
	restorecon -FRiv /var/cache/dnf
	echo "End of relabel some files in /var/cache/dnf"
fi
restorecon -FRiv			\
		/usr/share/config/kres-migratorrc \
		/etc/audit/audit.rules \
		/etc/audisp

#TODO who make this dirs?
rm -rf /etc/skel/.compose-cache
rm -rf /etc/skel/.gvfs
#TODO who corrupt this?
dd if=/etc/X11/xorg.conf.d/00-keyboard.conf bs=8k |sed 's/\x22ru,us\x22/\x22us,ru\x22/g' |dd conv=notrunc of=/etc/X11/xorg.conf.d/00-keyboard.conf

echo "Need to set secure types for some files..."
# Use /usr/bin for /usr/sbin in semanage fcontext
semanage fcontext -m -ff -t secadm_file_t /usr/bin/semanage
chcon -t secadm_file_t /usr/sbin/semanage
if [ -f /usr/sbin/semodule ]; then chcon -t secadm_file_t /usr/sbin/semodule; fi

echo "Disable mls-first-boot.service"
systemctl disable mls-first-boot.service
EOF
chmod +x %{buildroot}%{_sbindir}/mls-first-boot
cat > %{buildroot}%{_unitdir}/mls-first-boot.service <<EOF
[Unit]
Description=Restorecon some files for mls use on first boot
Before=kdm.service

[Service]
Type=oneshot
ExecStart=/usr/sbin/mls-first-boot

[Install]
WantedBy=graphical.target
EOF

rm -rf selinux_config

install -m644 %{SOURCE21} %{buildroot}%{_sysconfdir}/selinux/mls/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17176 |21mr|sendmail-8.17.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	alternatives	1
%define sendmaildir	%{_prefix}/lib

%define miltersomajor 1.0
%define libname %mklibname milter %{miltersomajor}
%define devname %mklibname milter -d

Summary:	A widely used Mail Transport Agent (MTA)
Name:		sendmail
Version: 	8.17.1
Release: 	1
License:	Sendmail
Group:		System/Servers
Provides:	mail-server sendmail-command
Conflicts:	vacation postfix
URL:		http://www.sendmail.com/sm/open_source/

Source0:	ftp://ftp.sendmail.org/pub/sendmail/%{name}.%{version}.tar.gz
Source3:	aliases
Source4:	sendmail.sysconfig
Source5:	sendmail-etc-mail-Makefile
Source6:	sendmail-mandrake.mc
Source7:	Sendmail.conf
Source8:	sendmail.pam
Source9:	sendmail-real-time.mc
Source10:	README.mdk
Source13:	sendmail-certs.sh
Source14:	sendmail.service
Source15:	sm-client.service

Patch1:		sendmail-8.10.0-makemapman.patch
Patch3:		sendmail-8.8.7-rmail.patch
Patch5:		sendmail-8.16.1-movefiles.patch
# build configuration
Patch9:		sendmail-8.14.0-mdk.patch
# (cjw) set .pid file for queue runner and set some other Mageia defaults
#       adapted from fedora sendmail package, originally applied in mdv
Patch12:	sendmail-submit.mc-mandriva.patch
# (cjw) fix cyrus-imapd path, from fedora pkg
Patch13:	sendmail-8.13.0-cyrus.patch
# (ngompa) make sendmail dynamic with pie, from fedora
Patch14:	sendmail-8.16.1-dynamic.patch
Patch15:	sendmail-8.14.8-link.patch
# From debian: allow fd:N socket address specifications for sendmail socket activation
# http://anonscm.debian.org/cgit/collab-maint/sendmail.git/plain/debian/patches/socket_activation.patch
Patch16:	sendmail-8.16.1-socket-activation.patch
# (ngompa) make sendmail make a shared library
Patch20:	sendmail-8.14.3-sharedmilter.patch

Patch50:	sendmail-8.11.1-up-limit.patch

Patch51:	fix.build.patch

Requires(pre):	rpm-helper
Requires(pre):	update-alternatives

Provides:      mail-server
Provides:      sendmail-command
Conflicts:     postfix
Conflicts:     vacation

Requires:	procmail
Requires:	bash >= 2.0
Requires:	cyrus-sasl
Requires:	openssl
Requires: 	setup
BuildRequires:	db-devel
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	cyrus-sasl
BuildRequires:	groff-for-man
BuildRequires:	gdbm-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	tcp_wrappers-devel
BuildRequires:	openldap-devel
BuildRequires:	openssl

%description
The Sendmail program is a widely used Mail Transport Agent (MTA).
MTAs send mail from one machine to another.

Sendmail is not a client program, which you use to read your e-mail.
Sendmail is a behind-the-scenes program which moves your
e-mail over networks or the Internet to where you want it to go.

If you ever need to reconfigure Sendmail, you'll also need to have the
sendmail.cf package installed.  If you need documentation on Sendmail, you can
install the sendmail-doc package.

%files
%license LICENSE
%attr(0555,bin,bin) /usr/bin/vacation
/usr/bin/hoststat
/usr/bin/purgestat
/usr/bin/makemap
%attr(0555,bin,bin) /usr/sbin/makemap
%attr(0555,bin,bin) /usr/sbin/editmap
%attr(0555,bin,bin) /usr/sbin/mail.local
%attr(0555,bin,bin) /usr/sbin/smrsh
%attr(0555,bin,bin) /usr/sbin/mailstats
%attr(0555,bin,bin) /usr/sbin/praliases
%if %{alternatives}
/usr/sbin/sendmail
%attr(2555,root,mail)/usr/sbin/sendmail.sendmail
%{sendmaildir}/sendmail.sendmail
%else
%attr(2555,root,mail) /usr/sbin/sendmail
%attr(0555,bin,bin) /usr/bin/rmail
%{sendmaildir}/sendmail
%endif
/usr/bin/rmail
/usr/bin/newaliases
/usr/bin/mailq
%{_mandir}/man1/mailq.1.*
%{_mandir}/man1/newaliases.1.*
%{_mandir}/man1/vacation.1.*
%{_mandir}/man5/aliases.5.*
%{_mandir}/man8/editmap.8.*
%{_mandir}/man8/mail.local.8.*
%{_mandir}/man8/mailstats.8.*
%{_mandir}/man8/makemap.8.*
%{_mandir}/man8/praliases.8.*
%{_mandir}/man8/rmail.8.*
%{_mandir}/man8/sendmail.8.*
%{_mandir}/man8/smrsh.8.*

# XXX can't do noreplace here or new sendmail will not deliver.
%dir %_sysconfdir/smrsh
%dir %_sysconfdir/mail
%attr(0755,root,mail) %dir %_sysconfdir/ssl/%{name}
%attr(0600,root,mail) %config(noreplace)        %_sysconfdir/ssl/%{name}/*

%config(noreplace) %_sysconfdir/mail/Makefile
%attr(0444,root,mail) %config(noreplace)	%_sysconfdir/mail/sendmail.cf
%attr(0444,root,mail) %config(noreplace)	%_sysconfdir/mail/submit.cf
%attr(0644,root,mail) %config(noreplace) %_sysconfdir/mail/sendmail.mc
%attr(0644,root,mail) %config(noreplace) %_sysconfdir/mail/submit.mc
%config(noreplace)	%_sysconfdir/mail/local-host-names
%config(noreplace)	%_sysconfdir/aliases
%attr(0644,root,root) %ghost %_sysconfdir/aliases.db
%attr(0750,root,mail) %dir /var/spool/mqueue
%attr(0770,mail,mail) %dir /var/spool/clientmqueue
%attr(4555,root,mail) /var/log/statistics
%attr(0644,root,root) %ghost			%_sysconfdir/mail/virtusertable.db
%attr(0644,root,root) %config(noreplace)	%_sysconfdir/mail/virtusertable

%attr(0644,root,root) %ghost			%_sysconfdir/mail/access.db
%attr(0644,root,root) %config(noreplace)	%_sysconfdir/mail/access

%attr(0644,root,root) %ghost			%_sysconfdir/mail/domaintable.db
%attr(0644,root,root) %config(noreplace)	%_sysconfdir/mail/domaintable

%attr(0644,root,root) %ghost			%_sysconfdir/mail/mailertable.db
%attr(0644,root,root) %config(noreplace)	%_sysconfdir/mail/mailertable

%attr(0644,bin,bin) %config(noreplace)	%_sysconfdir/mail/helpfile
%attr(0644,root,root) %config(noreplace)	%_sysconfdir/mail/trusted-users

%config(noreplace) %_sysconfdir/sysconfig/sendmail

%{_unitdir}/sendmail.service
%{_unitdir}/sm-client.service

%config(noreplace) %{_libdir}/sasl2/Sendmail.conf
%config(noreplace) %_sysconfdir/logrotate.d/statistics
%config(noreplace) %_sysconfdir/pam.d/smtp

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation about the Sendmail Mail Transport Agent program
Group:		Documentation

%description doc
The sendmail-doc package contains documentation about the Sendmail
Mail Transport Agent (MTA) program, including release notes, the
Sendmail FAQ and a few papers written about Sendmail.  The papers are
provided in PostScript(TM) and troff formats.

Install the sendmail-doc package if you need documentation about
Sendmail.

%files doc
%doc contrib sendmail-docs%{_docdir}/sendmail

#----------------------------------------------------------------------------

%package cf
Summary:	The files needed to reconfigure Sendmail
Group:		System/Servers
Requires:	m4
Requires:	make

%description cf
This package includes the configuration files which you'd need to generate the
sendmail.cf file distributed with the sendmail package.

You'll need the sendmail-cf package if you ever need to reconfigure and rebuild
your sendmail.cf file. For example, the default sendmail.cf file is not
configured for UUCP. If someday you needed to send and receive mail over UUCP,
you'd need to install the sendmail-cf package to help you reconfigure Sendmail.

Install the sendmail-cf package if you need to reconfigure your
sendmail.cf file.

%files cf
%{_datadir}/sendmail-cf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:        Sendmail milter library
Group:		System/Libraries

%description -n %{libname}
This package provides the Sendmail milter shared library.

%files -n %{libname}
%license LICENSE
%{_libdir}/libmilter.so.%{miltersomajor}{,.*}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Sendmail milter development libraries and headers
Group:		Development/C
Conflicts:	%{name}-devel < 8.15.2-5
Obsoletes:	%{name}-devel < 8.15.2-5
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{name}-milter-devel = %{version}-%{release}
Provides:	libmilter-devel = %{version}-%{release}
Requires:	%{libname}%{?_isa} = %{version}-%{release}

%description -n %{devname}
This package includes the libraries and header files
to build applications using sendmail libmilter.

%files -n %{devname}
%doc libsm/{*.html,README} sendmail-docs%{_docdir}/sendmail/{libmilter,README.libmilter}
%{_includedir}/libmilter/
%{_libdir}/libmilter.so

#----------------------------------------------------------------------------

%prep
%setup -q
cp devtools/M4/UNIX/{,shared}library.m4
%autopatch -p1

# XXX REVERTING
sed -e 's|@@PATH@@|\.\.|' < %{SOURCE6} > cf/cf/mandrake.mc
sed -e 's|@@PATH@@|\.\.|' < %{SOURCE9} > cf/cf/real-time.mc
# (sb) smrsh path fixes in docs
perl -pi -e 's|\/usr\/libexec|\/usr\/sbin|g' smrsh/README
perl -pi -e 's|\/usr\/adm\/sm.bin|\/etc\/smrsh|g' smrsh/README
perl -pi -e 's|\/usr\/lib\/sendmail|\/usr\/sbin\/sendmail|g' smrsh/README
echo 'Paths modified for ROSALINUX.' >> smrsh/README

perl -pi -e 's|\/usr\/adm\/sm.bin|\/etc\/smrsh|g' smrsh/smrsh.8
perl -pi -e 's|sm.bin|\/etc\/smrsh|g' smrsh/smrsh.8
head -n -17 smrsh/smrsh.8 > smrsh/smrsh.8.mdk
cat << EOF >> smrsh/smrsh.8.mdk
.SH FILES
/etc/smrsh \- directory for restricted programs
.SH SEE ALSO
sendmail(8)
EOF
mv smrsh/smrsh.8.mdk smrsh/smrsh.8

# (sb) m4 path
perl -pi -e 's|\`sh \$BUILDTOOLS\/bin\/find_m4.sh\`|\/usr\/bin\/m4|g' cf/cf/Build

%build

%serverbuild
export RPM_OPT_FLAGS="%optflags -DNETINET6 -DHAS_GETHOSTBYNAME2"

export confLIBDIR=%{_libdir}

%make_build LDOPTS="%ldflags -fPIC"

%install
mkdir -p %buildroot/{%_sysconfdir/sysconfig,%{_unitdir},%_sysconfdir/pam.d}
mkdir -p %buildroot/{%_bindir,%_libdir,%{sendmaildir},%{_mandir}/man{1,5,8},%_sbindir}
mkdir -p %buildroot/{var/log,var/spool,%_datadir/sendmail-cf,%_includedir/libmilter}
mkdir -p %buildroot/%_docdir/sendmail

OBJDIR=obj.$(uname -s).$(uname -r).$(arch)

# fix default id and gid during install steps

nameuser=`id -nu`
namegroup=`id -ng`

export confLIBDIR=%{_libdir}
export ID="SBINOWN=${nameuser} SBINGRP=${namegroup} UBINOWN=${nameuser} UBINGRP=${namegroup} MANOWN=${nameuser} MANGRP=${namegroup} MSPQOWN=${nameuser} GBINGRP=${namegroup} GBINOWN=${nameuser} GBINGRP=${namegroup} MSPQOWN=${nameuser} MBINOWN=${nameuser} MBINGRP=${namegroup} LIBOWN=${nameuser} LIBGRP=${namegroup} CFOWN=${nameuser} CFGRP=${namegroup} INCOWN=${nameuser} INCGRP=${namegroup} CFMODE=0644"

# (sb) fix example perl script interpreter paths
sed -i 's|/usr/local/bin/perl|/usr/bin/perl|' contrib/*.pl
sed -i 's|/usr/perl5/bin/perl|/usr/bin/perl|' contrib/*.pl
sed -i 's|/bin/perl|/usr/bin/perl|' contrib/passwd-to-alias.pl

# see https://bugzilla.mandriva.com/show_bug.cgi?id=34050
cat cf/cf/mandrake.mc | \
        sed -e "s,%{_datadir}/sendmail-cf/m4/cf\.m4,../../cf/m4/cf.m4," \
        > cf/cf/mandrake-build.mc
cat cf/cf/submit.mc | \
        sed -e "s,%{_datadir}/sendmail-cf/m4/cf\.m4,../../cf/m4/cf.m4," \
        > cf/cf/submit-build.mc
%make_install MANROOT=%{_mandir}/man CF=mandrake-build SUBMIT=submit-build $ID

%make_install MANROOT=%{_mandir}/man $ID force-install -C $OBJDIR/rmail
%make_install MANROOT=%{_mandir}/man $ID force-install -C $OBJDIR/mail.local

%make_install MANROOT=%{_mandir}/man $ID install -C $OBJDIR/smrsh

ln -sf ../sbin/makemap %{buildroot}/%{_bindir}/makemap

# install docs by hand - do it in builddir instead of RPM_BUILD_ROOT
rm -fr sendmail-docs
mkdir -p sendmail-docs%{_docdir}/sendmail
cp -ar FAQ LICENSE KNOWNBUGS README RELEASE_NOTES doc sendmail-docs%{_docdir}/sendmail
cp smrsh/README sendmail-docs%{_docdir}/sendmail/README.smrsh
cp sendmail/README sendmail-docs%{_docdir}/sendmail/README.sendmail
cp sendmail/SECURITY sendmail-docs%{_docdir}/sendmail/SECURITY.sendmail
cp sendmail/TUNING sendmail-docs%{_docdir}/sendmail/TUNING.sendmail
cp mail.local/README sendmail-docs%{_docdir}/sendmail/README.mail.local
cp cf/README sendmail-docs%{_docdir}/sendmail/README.cf
cp cf/cf/README sendmail-docs%{_docdir}/sendmail/README.install-cf
cp %{SOURCE10} sendmail-docs%{_docdir}/sendmail/README.mga
cp libmilter/README sendmail-docs%{_docdir}/sendmail/README.libmilter
cp -ar libmilter/docs/ sendmail-docs%{_docdir}/sendmail/libmilter

# install the cf files
make DESTDIR=%{buildroot} MANROOT=%{_mandir}/man $ID CF=mandrake-build SUBMIT=submit-build install-cf -C cf/cf
# restore include path
sed -i -e "s,\.\./\.\./cf/m4/cf\.m4,%{_datadir}/sendmail-cf/m4/cf.m4,g" \
        %{buildroot}%{_sysconfdir}/mail/sendmail.cf
rm -f cf/cf/mandrake-build.mc
rm -f cf/cf/submit-build.mc
pushd cf
cp -ar * %{buildroot}/usr/share/sendmail-cf
install -m 644 %{SOURCE9} %{buildroot}/usr/share/sendmail-cf/cf
rm -f %{buildroot}/usr/share/sendmail-cf/*/*.m4path
make -C cf mandrake-build.cf
popd

rm -f %{buildroot}%{_datadir}/sendmail-cf/cf/mandrake-build.cf

mkdir -p %{buildroot}/%_sysconfdir/mail
sed -e 's|@@PATH@@|/usr/share/sendmail-cf|' < %{SOURCE6} > %{buildroot}/%_sysconfdir/mail/sendmail.mc
cp cf/cf/submit.mc %{buildroot}/%_sysconfdir/mail/

echo "# local-host-names - include all aliases for your machine here." > %{buildroot}/%_sysconfdir/mail/local-host-names
( echo "# trusted-users - users that can send mail as others without a warning"
echo "# apache, mailman, majordomo, uucp, are good candidates" ) \
	> %{buildroot}/%_sysconfdir/mail/trusted-users


install -d -m755 %buildroot/var/spool/mqueue
install -d -m755 %buildroot/var/spool/clientmqueue

# dangling symlinks
ln -sf ../sbin/sendmail.sendmail %buildroot/%{sendmaildir}/sendmail
for f in hoststat mailq newaliases purgestat
  do
    ln -sf ../sbin/sendmail.sendmail %buildroot/%_bindir/${f}
  done

mkdir -p %buildroot/%_sysconfdir/smrsh

cat <<EOF > %{buildroot}/%_sysconfdir/mail/access
# Check the /usr/share/doc/sendmail-%{version}/README.cf file for a description
# of the format of this file. (search for access_db in that file)
# The /usr/share/doc/sendmail-%{version}/README.cf is part of the sendmail-doc
# package.
#
# by default we allow relaying from localhost...
localhost.localdomain		RELAY
localhost			RELAY
127.0.0.1			RELAY

EOF

for map in virtusertable access domaintable mailertable
  do
    touch %{buildroot}/%_sysconfdir/mail/${map}
    chmod 0644 %{buildroot}/%_sysconfdir/mail/${map}
    %{buildroot}/usr/sbin/makemap -C %{buildroot}/%_sysconfdir/mail/sendmail.cf hash %{buildroot}/%_sysconfdir/mail/${map}.db < %{buildroot}/%_sysconfdir/mail/${map}
    chmod 0644 %{buildroot}/%_sysconfdir/mail/${map}.db
  done
install -m644 %{SOURCE3} %{buildroot}/%_sysconfdir/aliases
%{buildroot}/usr/sbin/makemap -C %{buildroot}/%_sysconfdir/mail/sendmail.cf hash %{buildroot}/%_sysconfdir/aliases.db < %{SOURCE3}

install -m644 %SOURCE4 %{buildroot}/%_sysconfdir/sysconfig/sendmail
install -d -m 755 %{buildroot}%{_unitdir}
install -m644 %SOURCE14 %{buildroot}%{_unitdir}
install -m644 %SOURCE15 %{buildroot}%{_unitdir}

install -m 644 %{SOURCE5} %{buildroot}/%_sysconfdir/mail/Makefile

chmod u+w %{buildroot}/usr/sbin/{mailstats,praliases}
chmod u+w %{buildroot}/usr/bin/rmail

install -m755 -d %{buildroot}%{_libdir}/sasl2
install -m 644 %{SOURCE7} %{buildroot}%{_libdir}/sasl2/Sendmail.conf
install -m 644 %{SOURCE8} %{buildroot}/%_sysconfdir/pam.d/smtp

# add certs directory for STARTTLS
mkdir -p %{buildroot}/%_sysconfdir/ssl/%{name}
# create placeholder certs
pushd %{buildroot}/%_sysconfdir/ssl/%{name}
sh %{SOURCE13}
popd

%if %{alternatives}
mv %{buildroot}%{_sbindir}/sendmail %{buildroot}%{_sbindir}/sendmail.sendmail
mv %{buildroot}/%{sendmaildir}/sendmail %{buildroot}/%{sendmaildir}/sendmail.sendmail
%endif

# (sb) logrotate
install -d %{buildroot}%_sysconfdir/logrotate.d
cat << EOF > %{buildroot}%_sysconfdir/logrotate.d/statistics
/var/log/statistics {
    missingok
    compress
    postrotate
        service sendmail reload
    endscript
}
EOF

# make strip able to touch these
chmod 755 %{buildroot}%{_bindir}/* %{buildroot}%{_sbindir}/*
chmod 755 %{buildroot}%{_libdir}/libmilter.so.%{miltersomajor}*

%if %{alternatives}
ln -sf %{name}.%{name} %{buildroot}%{_sbindir}/%{name}
%endif

#-----------------------------------------------------------------------------------
%pre
%_pre_useradd mailnull /var/spool/mqueue /dev/null
%_pre_useradd smmsp /var/spool/mqueue /dev/null

%_postun_userdel mailnull
%_postun_userdel smmsp

%post
#
# Convert old format to new
#
if [ -f %_sysconfdir/mail/deny ] ; then
    cat %_sysconfdir/mail/deny | \
	awk 'BEGIN{ print "# Entries from obsoleted /etc/mail/deny"} \
		  {print $1" REJECT"}' >> %_sysconfdir/mail/access
    cp %_sysconfdir/mail/deny %_sysconfdir/mail/deny.rpmorig
fi
for oldfile in relay_allow ip_allow name_allow ; do
    if [ -f %_sysconfdir/mail/$oldfile ] ; then
	cat %_sysconfdir/mail/$oldfile | \
		awk "BEGIN { print \"# Entries from obsoleted /etc/mail/$oldfile\" ;} \
	     { print \$1\" RELAY\" }" >> %_sysconfdir/mail/access
	cp %_sysconfdir/mail/$oldfile %_sysconfdir/mail/$oldfile.rpmorig
     fi
done

%if %{alternatives}
#
# Set up the alternatives files for MTAs.
#
/usr/sbin/update-alternatives --install %{_sbindir}/sendmail sendmail-command %{_sbindir}/sendmail.sendmail 10 \
        --slave %{sendmaildir}/sendmail sendmail-command-in_libdir %{_sbindir}/sendmail.sendmail \
        #--initscript sendmail
%endif


#
# Oops, these files moved
#
if [ -f %_sysconfdir/sendmail.cf -a ! -f %_sysconfdir/mail/sendmail.cf ] ; then
	sed -e 's/^O AutoRebuildAliases/#O AutoRebuildAliases/'  %_sysconfdir/sendmail.cf > %_sysconfdir/mail/sendmail.cf
	mv %_sysconfdir/sendmail.cf %_sysconfdir/sendmail.cf.rpmorig
fi

if [ -f %_sysconfdir/sendmail.cw ] ; then
    cat %_sysconfdir/sendmail.cw  | \
      awk 'BEGIN { print "# Entries from obsoleted /etc/sendmail.cw" ;} \
           { print $1 }' >> %_sysconfdir/mail/local-host-names
    cp %_sysconfdir/sendmail.cw %_sysconfdir/sendmail.cw.rpmorig
fi
#
# Rebuild maps (next reboot will rebuild also)
#
{ /usr/bin/newaliases
  for map in virtusertable access domaintable mailertable bitdomain uudomain genericstable authinfo
  do
    if [ -f %_sysconfdir/mail/${map} ] ; then
      /usr/sbin/makemap hash %_sysconfdir/mail/${map} < %_sysconfdir/mail/${map}
      sleep 1
    fi
  done
  for map in userdb
  do
    if [ -f %_sysconfdir/mail/${map} ] ; then
      /usr/sbin/makemap btree %_sysconfdir/mail/${map} < %_sysconfdir/mail/${map}
      sleep 1
    fi
  done
} > /dev/null 2>&1

if [ "$1" = "1" ]; then
  touch /var/lib/rpm-helper/systemd-migration/sendmail
fi

if [ "$1" = "2" ]; then
  if ! [ -f /var/lib/rpm-helper/systemd-migration/sendmail ]; then
    export SENDMAIL_SYSTEMD_MIGRATION=1
  fi
fi

%_post_service sendmail

if [ "$1" = "2" ] && [ "$SENDMAIL_SYSTEMD_MIGRATION" = "1" ]; then
  if grep '^DAEMON=yes$' %{_sysconfdir}/sysconfig/sendmail >/dev/null 2>&1; then
     # do nothing
     :
  else
     # disable daemons...
     systemctl disable sendmail.service
     systemctl disable sm-client.service
     systemctl stop sendmail.service
     systemctl stop sm-client.service
  fi

  chkconfig --del sendmail
fi

%preun
%_preun_service sendmail
if [ $1 = 0 ]; then
   %if %alternatives
           update-alternatives --remove sendmail-command %{_sbindir}/sendmail.sendmail
   %endif
fi


%triggerpostun -- sendmail < 8.10.0
/sbin/chkconfig --add sendmail

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17177 |21mr|sequence-library-1.0.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sequence-library
Version:        1.0.3
Release:        4
Summary:        Textual diff and merge library
Group:          Development/Java
License:        Sequence     
URL:            http://svn.svnkit.com/repos/3rdparty/de.regnis.q.sequence/

# Tarball generated with:
#  svn export http://svn.svnkit.com/repos/3rdparty/de.regnis.q.sequence/tags/1.0.3/ sequence-library-1.0.3 && \
#      tar caf sequence-library-1.0.3.tar.gz sequence-library-1.0.3/
Source0:        %{name}-%{version}.tar.gz
Source1:        http://repo1.maven.org/maven2/de/regnis/q/sequence/sequence-library/%{version}/sequence-library-%{version}.pom
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)

%description
A textual diff and merge library.

%package javadoc
Summary: Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

find -name '*.jar' -o -name '*.class' -delete

cp -pr %{SOURCE1} pom.xml

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17178 |21mr|serd-0.30.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define api 0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Lightweight RDF syntax library
Name:		serd
Version:	0.30.10
Release:	2
License:	MIT
Group:		System/Libraries
Url:		http://drobilla.net/software/
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.bz2
BuildRequires:	waf
BuildRequires:	expat-devel
BuildRequires:	uuid-devel

%description
Lightweight C library for RDF syntax which supports reading
and writing Turtle and NTriples. Serd is not intended to be a swiss-army
knife of RDF syntax, but rather is suited to resource limited or
performance critical applications, or situations where a simple
reader/writer with minimal dependencies is ideal
(e.g. in LV2 hosts or plugins).

%files
%{_bindir}/serdi
%{_mandir}/man1/serdi.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lightweight RDF syntax library
Group:		System/Libraries
Conflicts:	%{_lib}serd0 < 0.18.2-3
Obsoletes:	%{_lib}serd0 < 0.18.2-3

%description -n %{libname}
Lightweight C library for RDF syntax which supports reading
and writing Turtle and NTriples. Serd is not intended to be a swiss-army
knife of RDF syntax, but rather is suited to resource limited or
performance critical applications, or situations where a simple
reader/writer with minimal dependencies is ideal
(e.g. in LV2 hosts or plugins).

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for the Lightweight RDF syntax library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files needed to build applications against serd.

%files -n %{devname}
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
./waf configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--libdir=%{_libdir}
./waf

%install
./waf install --destdir=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17179 |21mr|serf-1.3.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name}1_ %{major}
%define devname %mklibname %{name} -d

Summary:	A high-performance asynchronous HTTP client library
Name:		serf
Version:	1.3.9
Release:	3
License:	Apache License
Group:		System/Libraries
Url:		http://serf.apache.org
Source0:	https://www.apache.org/dist/serf/%{name}-%{version}.tar.bz2
Patch0:		serf-1.3.9-python3.patch
Patch1:		serf-1.3.9-python3_byte.patch
BuildRequires:	scons
BuildRequires:	db-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(apr-1)
BuildRequires:	pkgconfig(apr-util-1)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
The serf library is a C-based HTTP client library built upon the Apache
Portable Runtime (APR) library. It multiplexes connections, running the
read/write communication asynchronously. Memory copies and transformations are
kept to a minimum to provide high performance operation.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A high-performance asynchronous HTTP client library
Group:		System/Libraries

%description -n %{libname}
The serf library is a C-based HTTP client library built upon the Apache
Portable Runtime (APR) library. It multiplexes connections, running the
read/write communication asynchronously. Memory copies and transformations are
kept to a minimum to provide high performance operation.

%files -n %{libname}
%doc CHANGES LICENSE NOTICE README design-guide.txt
%{_libdir}/libserf-1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries and headers for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The serf library is a C-based HTTP client library built upon the Apache
Portable Runtime (APR) library. It multiplexes connections, running the
read/write communication asynchronously. Memory copies and transformations are
kept to a minimum to provide high performance operation.

This package contains all of the development files that you will need in order
to compile %{name} applications.

%files -n %{devname}
%{_includedir}/%{name}-%{major}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/serf-1.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%serverbuild
scons \
	PREFIX=%{_prefix} \
	LIBDIR=%{_libdir} \
	APR=%{_prefix} \
	OPENSSL=%{_prefix} \
	ZLIB=%{_prefix} \
	DEBUG=yes \
	CFLAGS="%{optflags}" \
	APR_STATIC=no

%scons

%install
scons install \
	--install-sandbox=%{buildroot}

# enable strip and debug packages
chmod 755 %{buildroot}%{_libdir}/libserf*.so*

# Don't ship static libs
rm -fR %{buildroot}%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17180 |21mr|serp-1.15.2-0.11.20150412cvs
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          serp
Version:       1.15.2
Release:       0.11.20150412cvs
Summary:       Byte-code manipulation framework
License:       BSD
Group:         Development/Java
Url:           http://serp.sourceforge.net/
# cvs -d:pserver:anonymous@serp.cvs.sourceforge.net:/cvsroot/serp login
# cvs -z3 -d:pserver:anonymous@serp.cvs.sourceforge.net:/cvsroot/serp  export -r HEAD serp
# tar cJf serp-1.15.2-20150412-cvs.tar.xz serp
Source0:       serp-1.15.2-20150412-cvs.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The goal of the serp byte-code framework is to tap the full 
power of byte-code modification while lowering its associated
costs. The framework provides a set of high-level APIs for 
manipulating all aspects of byte-code, from large-scale 
structures like class member fields to the individual 
instructions that comprise the code of methods. While in 
order to perform any advanced manipulation, some understanding 
of the class file format and especially of the JVM instruction 
set is necessary, the framework makes it as easy as possible
to enter the world of byte-code development.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}
find . -name "*.class" -delete
find . -name "*.jar" -delete

%pom_remove_plugin :jxr-maven-plugin
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :surefire-report-maven-plugin
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']"

%mvn_file :%{name} %{name}
%mvn_alias :%{name} %{name}:%{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17181 |21mr|sessreg-1.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Manage utmp/wtmp entries for non-init clients
Name:		sessreg
Version:	1.1.2
Release:	2
License:	MIT
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)

%description
Sessreg is a simple program for managing utmp/wtmp entries for xdm sessions.

%files
%{_bindir}/sessreg
%{_mandir}/man1/sessreg.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

# Debug info from the preprocessor breaks the man build
make -C man CPPFLAGS=-ftrack-macro-expansion=0

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17182 |21mr|setools-4.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# % global setools_pre_ver rc
# % global gitver f1e5b20

%global sepol_ver 2.9-1
%global selinux_ver 2.9-1


Name:           setools
Version:        4.3.0
Release:        2%{?setools_pre_ver:.%{setools_pre_ver}}%{?dist}
Summary:        Policy analysis tools for SELinux
Group:		System/Base
License:        GPLv2
URL:            https://github.com/SELinuxProject/setools/wiki
Source0:        https://github.com/SELinuxProject/setools/archive/%{version}%{?setools_pre_ver:-%{setools_pre_ver}}.tar.gz
Source1:        setools.pam
Source2:        apol.desktop
Patch1001:      1001-Do-not-use-Werror-during-build.patch
Patch1002:      1002-Do-not-export-use-setools.InfoFlowAnalysis-and-setoo.patch
Patch1003:      1003-Require-networkx-on-package-level.patch
Obsoletes:      setools < 4.0.0, setools-devel < 4.0.0
BuildRequires:  flex, bison
BuildRequires:  glibc-devel, gcc, git
BuildRequires:  sepol-static-devel >= %{sepol_ver}
BuildRequires:  qt5-qtbase-devel
BuildRequires:  swig
BuildRequires:  python3-cython
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  selinux-devel

Requires:       %{name}-console = %{version}-%{release}
Requires:       %{name}-console-analyses = %{version}-%{release}
Requires:       %{name}-gui = %{version}-%{release}

%description
SETools is a collection of graphical tools, command-line tools, and
Python modules designed to facilitate SELinux policy analysis.

%package     console
Summary:     Policy analysis command-line tools for SELinux
License:     GPLv2
Requires:    python3-setools = %{version}-%{release}
Requires:    libselinux >= %{selinux_ver}

%description console
SETools is a collection of graphical tools, command-line tools, and
libraries designed to facilitate SELinux policy analysis.

This package includes the following console tools:

  sediff       Compare two policies to find differences.
  seinfo       List policy components.
  sesearch     Search rules (allow, type_transition, etc.)


%package     console-analyses
Summary:     Policy analysis command-line tools for SELinux
License:     GPLv2
Requires:    python3-setools = %{version}-%{release}
Requires:    libselinux >= %{selinux_ver}
Requires:    python3-networkx

%description console-analyses
SETools is a collection of graphical tools, command-line tools, and
libraries designed to facilitate SELinux policy analysis.

This package includes the following console tools:

  sedta        Perform domain transition analyses.
  seinfoflow   Perform information flow analyses.


%package     -n python3-setools
Summary:     Policy analysis tools for SELinux  
Obsoletes:   setools-libs < 4.0.0
Recommends:  python3-libselinux
%{?python_provide:%python_provide python3-setools}
Requires:    python3-setuptools

%description -n python3-setools
SETools is a collection of graphical tools, command-line tools, and
Python 3 modules designed to facilitate SELinux policy analysis.


%package     gui
Summary:     Policy analysis graphical tools for SELinux
Requires:    python3-setools = %{version}-%{release}
Requires:    python3-qt5
Requires:    python3-networkx

%description gui
SETools is a collection of graphical tools, command-line tools, and
Python modules designed to facilitate SELinux policy analysis.


%prep
%autosetup -p 1 -S git -n setools-%{version}%{?setools_pre_ver:-%{setools_pre_ver}}


%build
%py3_build


%install
%py3_install

%check
%if %{?_with_check:1}%{!?_with_check:0}
%{__python3} setup.py test
%endif


%files

%files console
%{_bindir}/sediff
%{_bindir}/seinfo
%{_bindir}/sesearch
%{_mandir}/man1/sediff*
%{_mandir}/man1/seinfo*
%{_mandir}/man1/sesearch*
%{_mandir}/ru/man1/sediff*
%{_mandir}/ru/man1/seinfo*
%{_mandir}/ru/man1/sesearch*

%files console-analyses
%{_bindir}/sedta
%{_bindir}/seinfoflow
%{_mandir}/man1/sedta*
%{_mandir}/man1/seinfoflow*
%{_mandir}/ru/man1/sedta*
%{_mandir}/ru/man1/seinfoflow*

%files -n python3-setools
%license COPYING COPYING.GPL COPYING.LGPL
%{python3_sitearch}/setools
%{python3_sitearch}/setools-*

%files gui
%{_bindir}/apol
%{python3_sitearch}/setoolsgui
%{_mandir}/man1/apol*
%{_mandir}/ru/man1/apol*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17183 |21mr|setroubleshoot-3.3.23-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global pkgpythondir  %{python3_sitelib}/%{name}
%global pkgguidir     %{_datadir}/%{name}/gui
%global pkgdatadir    %{_datadir}/%{name}
%global pkglibexecdir %{_prefix}/libexec/%{name}
%global pkgvardatadir %{_localstatedir}/lib/%{name}
%global pkgconfigdir  %{_sysconfdir}/%{name}
%global pkgdatabase   %{pkgvardatadir}/setroubleshoot_database.xml
%global username      setroubleshoot

Summary:	Helps troubleshoot SELinux problems
Name:		setroubleshoot
Version:	3.3.23
Release:	3
License:	GPLv2+
Group:		System/Base
Url:		https://pagure.io/setroubleshoot
Source0:	https://releases.pagure.org/setroubleshoot/%{name}-%{version}.tar.gz
Source1:	%{name}.tmpfiles
Patch1:		0001-framework-fix-allowed_target_types.patch
Patch2:		0002-No-autostart-in-LiveCD.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	perl-XML-Parser
BuildRequires:	xdg-utils
BuildRequires:	pkgconfig(audit)
BuildRequires:	pkgconfig(auparse)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(polkit-agent-1)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-libselinux
BuildRequires:	python3-gi
BuildRequires:	python3-pydbus
Requires:	%{name}-server = %{EVRD} 
Requires:	libreport-gtk
Requires:	python3-libreport
Requires:	xdg-utils
Requires(post,postun):	desktop-file-utils
Requires(post,postun):	dbus

%description
setroubleshoot GUI. Application that allows you to view setroubleshoot-server 
messages.
Provides tools to help diagnose SELinux problems. When AVC messages
are generated an alert can be generated that will give information
about the problem and help track its resolution. Alerts can be configured
to user preference. The same tools can be run on existing log files.

%files
%{pkgguidir}
%config(noreplace) %{_sysconfdir}/xdg/autostart/*
%{_datadir}/applications/*.desktop
%{_datadir}/appdata/*.appdata.xml
%{_datadir}/dbus-1/services/sealert.service
%{_datadir}/icons/hicolor/*/*/*
%dir %attr(0755,root,root) %{pkgpythondir}
%{pkgpythondir}/browser.py
%{pkgpythondir}/__pycache__/browser.cpython*
%{pkgpythondir}/gui_utils.py
%{pkgpythondir}/__pycache__/gui_utils.cpython*
%{_bindir}/seapplet

%post
#dbus-send --system /com/redhat/%%{name}d com.redhat.%%{name}dIface.restart string:'rpm install' >/dev/null 2>&1 || :
%systemd_post auditd.service

%postun
%systemd_postun_with_restart auditd.service

#------------------------------------------------------------------

%package server
Summary:	SELinux troubleshoot server
Group:		System/Base
Requires:	audit
Requires:	dbus
Requires:	python3-libxml2
Requires:	policycoreutils
Requires:	polkit
Requires:	python3-audit
Requires:	python3-gi
Requires:	python3-rpm
Requires:	python3-libselinux
Requires:	python3egg(dbus-python)
Requires:	python3egg(sepolicy)
Requires:	python3egg(slip.dbus)
Requires(pre):	shadow-utils
Suggests:	%{name}-plugins

%description server
Provides tools to help diagnose SELinux problems. When AVC messages
are generated an alert can be generated that will give information
about the problem and help track its resolution. Alerts can be configured
to user preference. The same tools can be run on existing log files.

%files server -f %{name}.lang
%{_bindir}/sealert
%{_sbindir}/sedispatch
%{_sbindir}/setroubleshootd
%{python3_sitelib}/setroubleshoot*.egg-info
%dir %attr(0755,root,root) %{pkgconfigdir}
%dir %{pkgpythondir}
%dir %{pkgpythondir}/__pycache__
%{pkgpythondir}/Plugin.py
%{pkgpythondir}/__init__.py
%{pkgpythondir}/access_control.py
%{pkgpythondir}/analyze.py
%{pkgpythondir}/audit_data.py
%{pkgpythondir}/avc_audit.py
%{pkgpythondir}/config.py
%{pkgpythondir}/email_alert.py
%{pkgpythondir}/errcode.py
%{pkgpythondir}/html_util.py
%{pkgpythondir}/rpc.py
%{pkgpythondir}/serverconnection.py
%{pkgpythondir}/rpc_interfaces.py
%{pkgpythondir}/server.py
%{pkgpythondir}/signature.py
%{pkgpythondir}/util.py
%{pkgpythondir}/uuid.py
%{pkgpythondir}/xml_serialize.py
%{pkgpythondir}/__pycache__/*
%{_datadir}/%{name}/__pycache__/*
%dir %{pkgdatadir}
%{pkgdatadir}/SetroubleshootFixit.py
%{pkgdatadir}/SetroubleshootPrivileged.py
%config(noreplace) %{pkgconfigdir}/%{name}.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.fedoraproject.Setroubleshootd.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.fedoraproject.SetroubleshootPrivileged.conf
%attr(0700,setroubleshoot,setroubleshoot) %dir %{pkgvardatadir}
%ghost %attr(0600,setroubleshoot,setroubleshoot) %{pkgdatabase}
%ghost %attr(0644,setroubleshoot,setroubleshoot) %{pkgvardatadir}/email_alert_recipients
%{_mandir}/man1/seapplet.1.*
%{_mandir}/man8/sealert.8.*
%{_mandir}/man8/sedispatch.8.*
%{_mandir}/man8/setroubleshootd.8.*
%config /etc/audit/plugins.d/sedispatch.conf
%{_datadir}/dbus-1/system-services/org.fedoraproject.Setroubleshootd.service
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootPrivileged.service
%{_datadir}/polkit-1/actions/org.fedoraproject.setroubleshootfixit.policy
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.fedoraproject.SetroubleshootFixit.conf
%{_datadir}/dbus-1/system-services/org.fedoraproject.SetroubleshootFixit.service
%attr(0644,root,root) %{_tmpfilesdir}/%{name}.conf
%attr(0711,setroubleshoot,setroubleshoot) %dir %{_rundir}/setroubleshoot
%doc AUTHORS COPYING ChangeLog DBUS.md NEWS README TODO

%package legacy
Summary: SELinux troubleshoot legacy applet
Requires: %{name} = %{EVRD}

%description legacy
SELinux troubleshoot legacy applet

%files legacy
%{_bindir}/seappletlegacy

%pre server
getent group %{name} >/dev/null || groupadd -r %{name}
getent passwd %{name} >/dev/null || useradd -r -g %{name} -s /sbin/nologin -d %{_localstatedir}/lib/%{name} %{name}

%post server
%systemd_post auditd.service

%postun server
%systemd_postun_with_restart auditd.service

#------------------------------------------------------------------

%prep
%autosetup -p2

%build
%configure PYTHON=%{__python3} --enable-seappletlegacy=yes --with-auditpluginsdir=/etc/audit/plugins.d
%make_build

%install 
%make_install

desktop-file-install --vendor="" --dir=%{buildroot}%{_datadir}/applications %{buildroot}/%{_datadir}/applications/%{name}.desktop
mkdir -p %{buildroot}%{_localstatedir}/lib/%{name}
mkdir -p %{buildroot}/run/%{name}
touch %{buildroot}%{_localstatedir}/lib/%{name}/%{name}_database.xml
touch %{buildroot}%{_localstatedir}/lib/%{name}/email_alert_recipients
rm -rf %{buildroot}%{_datadir}/doc/
# create /run/setroubleshoot on boot
install -m644 -D %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17184 |21mr|setserial-2.17-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility for configuring serial ports
Name:		setserial
Version:	2.17
Release:	25
License:	GPLv2+
Group:		System/Configuration/Hardware
Url:		http://setserial.sourceforge.net/
Source0: 	ftp://tsx-11.mit.edu/pub/linux/sources/sbin/%{name}-%{version}.tar.bz2
Patch0:		setserial-2.17-LDFLAGS.diff
Patch1:		setserial-hayesesp.patch
BuildRequires:	groff-for-man

%description
Setserial is a basic system utility for displaying or setting serial port
information. Setserial can reveal and allow you to alter the I/O port and IRQ
that a particular serial device is using, and more.

You should install setserial because you may find it useful for detecting
and/or altering device information.

%files
%defattr(644,root,root,755)
%doc README rc.serial *.lsm *.conf Documentation
%{_mandir}/man8/%{name}.8*
%defattr(755,root,root,755)
/bin/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1 -b .hayesesp

%build
rm -f config.cache

%configure

%ifarch %{ix86}
%make
%else
%make DEFS="-DHAVE_ASM_IOCTLS_H=1"
%endif

%install
install -m755 %{name} -D %{buildroot}/bin/%{name}
install -m644 %{name}.8 -D %{buildroot}%{_mandir}/man8/%{name}.8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17185 |21mr|setup-2.9.3.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Exclude /bin/sh etc.
# This package is dependency of very basic system,
# depending from bash breaks installation orderю
# Exclude autodeps of /etc/profile.d/*
%global __requires_exclude ^/.*$

Summary:	A set of system configuration and setup files
Name:		setup
Version:	2.9.3.2
Release:	4
License:	Public Domain
Group:		System/Configuration/Other
Url:		https://github.com/OpenMandrivaSoftware/setup
Source0:	https://github.com/OpenMandrivaSoftware/setup/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	setup.rpmlintrc
Requires(posttrans):shadow-conv
Requires(posttrans):coreutils
BuildArch:	noarch

%description
The setup package contains a set of very important system configuration
and setup files, such as passwd, group, profile and more.

You should install the setup package because you will find yourself using
its many features for system administration.

%files
%doc NEWS
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/passwd
%verify(not md5 size mtime) %attr(0440,root,shadow) %config(noreplace,missingok) %{_sysconfdir}/shadow
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/group
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/hosts
%verify(not md5 size mtime) %attr(0440,root,shadow) %config(noreplace,missingok) %{_sysconfdir}/gshadow
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/subgid
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/subuid
%config(noreplace) %{_sysconfdir}/services
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/inputrc
%config(noreplace) %{_sysconfdir}/filesystems
%config(noreplace) %{_sysconfdir}/host.conf
%config(noreplace) %{_sysconfdir}/hosts.allow
%config(noreplace) %{_sysconfdir}/hosts.deny
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/motd
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/motd-ssh
%config(noreplace) %{_sysconfdir}/printcap
%config(noreplace) %{_sysconfdir}/profile
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/shells
%config(noreplace) %{_sysconfdir}/ethertypes
%config(noreplace) %{_sysconfdir}/protocols
%config(noreplace) %{_sysconfdir}/csh.login
%config(noreplace) %{_sysconfdir}/csh.cshrc
%dir %{_sysconfdir}/profile.d
%{_sysconfdir}/profile.d/*.csh
%{_sysconfdir}/profile.d/*.sh
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_logdir}/lastlog
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/fstab


%posttrans

# Fix ownership, group shadow does not exist when chroot is bootstrapped
# https://github.com/rpm-software-management/rpm/issues/1789
# TODO: fix packages somehow to avoid need to to this
chgrp shadow %{_sysconfdir}/shadow
chgrp shadow %{_sysconfdir}/gshadow

pwconv 2>/dev/null >/dev/null  || :
grpconv 2>/dev/null >/dev/null  || :

[ -f /var/log/lastlog ] || echo -n '' > /var/log/lastlog

if [ -x /usr/sbin/nscd ]; then
	nscd -i passwd -i group || :
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# "lusers::1000:" does not make sense
# and prevents from creating users with this UID
sed -i '/:1000:/d' group

%build
%make_build

%install
%make_install

# There is no documented format of comments in these files,
# so keeping them just empty by default
# https://bugzilla.redhat.com/show_bug.cgi?id=1309425
# podman fails if these files do not exist
touch %{buildroot}%{_sysconfdir}/subgid
touch %{buildroot}%{_sysconfdir}/subuid

cat <<- 'EOF' > %{buildroot}/%{_sysconfdir}/motd-ssh
##################################################################
#                  Welcome to RosaLinux system                   #
#   Disconnect IMMEDIATELY if you are not an authorized user!    #
#                     www.rosalinux.ru                           #
##################################################################
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17186 |21mr|setxkbmap-1.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: setxkbmap
Version:	1.3.2
Release:	2
Summary: Set the keyboard using the X Keyboard Extension

Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xkbfile) >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
The setxkbmap command maps the keyboard to use the layout determined by the
options specified on the command line.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/setxkbmap
%{_mandir}/man1/setxkbmap.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17187 |21mr|sezpoz-1.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sezpoz
Version:        1.10
Release:        8
Summary:        Lightweight Java library that lets you perform modular service lookups

License:        CDDL
URL:            https://github.com/jglick/sezpoz
Source0:        https://github.com/jglick/%{name}/archive/pom-%{version}.tar.gz
Source1:        https://netbeans.org/cddl.txt

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
SezPoz is a lightweight and easy-to-learn library that lets you
perform modular service lookups. It provides some of the same
capabilities as (for example) java.util.ServiceLoader, but SezPoz
has some special advantages. The service registrations are made
just using type-checked Java annotations. There are no configuration
files to edit.

%package        javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-pom-%{version}

cp %{SOURCE1} LICENSE

# We don't need demos (4 jars)
%pom_disable_module demo

%pom_remove_plugin :animal-sniffer-maven-plugin sezpoz
%pom_remove_dep :animal-sniffer-annotations sezpoz
sed -i '/IgnoreJRERequirement/d' sezpoz/src/main/java/net/java/sezpoz/impl/Indexer6.java

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17188 |21mr|sfml-2.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname SFML

%define	major		%(echo %{version} |cut -d. -f1,2)
%define	minor		%(echo %{version} |cut -d. -f3)

%define	libname_a	%mklibname %{name}-audio %{major}
%define	libname_g	%mklibname %{name}-graphics %{major}
%define	libname_n	%mklibname %{name}-network %{major}
%define	libname_s	%mklibname %{name}-system %{major}
%define	libname_w	%mklibname %{name}-window %{major}
%define	devname		%mklibname %{name} -d

Summary:	Simple and Fast Multimedia Library
Name:		sfml
Version:	2.5.1
Release:	2
License:	zlib/libpng License
Group:		System/Libraries
Url:		http://www.sfml-dev.org
Source0:	http://www.sfml-dev.org/files/%{oname}-%{version}-sources.zip
Patch0:		sfml-2.5.0-fix-linkage.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	doxygen
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(flac)

%description
SFML is a portable and easy to use multimedia API written in C++.

Its features are :
 - portability,
 - object-oriented design,
 - flexibility (a lot of small packages),
 - easy to use,
 - easy to integrate with GUI toolkits.

The library is divided in 5 small packages :
 - audio
 - graphics
 - network
 - system
 - window

#----------------------------------------------------------------------------

%package -n %{libname_a}
Summary:	Dynamic libraries from %{name}-audio
Group:		System/Libraries
Provides:	%{name}-audio = %{EVRD}
Conflicts:	%{_lib}sfml2-audio2.0 < 2.1
Obsoletes:	%{_lib}sfml2-audio2.0 < 2.1

%description -n %{libname_a}
Dynamic libraries from %{name}-audio.

%files -n %{libname_a}
%{_libdir}/libsfml-audio.so.%{major}
%{_libdir}/libsfml-audio.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{libname_g}
Summary:	Dynamic libraries from %{name}-graphics
Group:		System/Libraries
Provides:	%{name}-graphics = %{EVRD}
Conflicts:	%{_lib}sfml2-graphics2.0 < 2.1
Obsoletes:	%{_lib}sfml2-graphics2.0 < 2.1

%description -n %{libname_g}
Dynamic libraries from %{name}-graphics.

%files -n %{libname_g}
%{_libdir}/libsfml-graphics.so.%{major}
%{_libdir}/libsfml-graphics.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{libname_n}
Summary:	Dynamic libraries from %{name}-network
Group:		System/Libraries
Provides:	%{name}-network = %{EVRD}
Conflicts:	%{_lib}sfml2-network2.0 < 2.1
Obsoletes:	%{_lib}sfml2-network2.0 < 2.1

%description -n %{libname_n}
Dynamic libraries from %{name}-network.

%files -n %{libname_n}
%{_libdir}/libsfml-network.so.%{major}
%{_libdir}/libsfml-network.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{libname_s}
Summary:	Dynamic libraries from %{name}-system
Group:		System/Libraries
Provides:	%{name}-system = %{EVRD}
Conflicts:	%{_lib}sfml2-system2.0 < 2.1
Obsoletes:	%{_lib}sfml2-system2.0 < 2.1

%description -n %{libname_s}
Dynamic libraries from %{name}-system.

%files -n %{libname_s}
%{_libdir}/libsfml-system.so.%{major}
%{_libdir}/libsfml-system.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{libname_w}
Summary:	Dynamic libraries from %{name}-window
Group:		System/Libraries
Provides:	%{name}-window = %{EVRD}
Conflicts:	%{_lib}sfml2-window2.0 < 2.1
Obsoletes:	%{_lib}sfml2-window2.0 < 2.1

%description -n %{libname_w}
Dynamic libraries from %{name}-window.

%files -n %{libname_w}
%{_libdir}/libsfml-window.so.%{major}
%{_libdir}/libsfml-window.so.%{major}.%{minor}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header and .so files for %{name}
Group:		Development/C++
Requires:	%{name}-audio = %{EVRD}
Requires:	%{name}-graphics = %{EVRD}
Requires:	%{name}-network = %{EVRD}
Requires:	%{name}-system = %{EVRD}
Requires:	%{name}-window = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	libsfml-audio-devel < %{version}
Conflicts:	libsfml-graphics-devel < %{version}
Conflicts:	libsfml-network-devel < %{version}
Conflicts:	libsfml-system-devel < %{version}
Conflicts:	libsfml-window-devel < %{version}

%description -n %{devname}
Includes files for developing programs based on %{name}.

%files -n %{devname}
%defattr(0644,root,root,0755)
%{_includedir}/SFML
%{_libdir}/libsfml-*.so
%{_libdir}/cmake/SFML/*.cmake
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documenation for %{name}
Group:		Books/Computer books
BuildArch:	noarch

%description doc
Documenation for %{name}.

%files doc
#%%defattr(0644,root,root,0755)
%{_datadir}/SFML/doc/
%{_datadir}/SFML/readme.md
%{_datadir}/SFML/license.md
%{_datadir}/SFML/examples/

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake \
    -DSFML_BUILD_DOC=TRUE \
    -DSFML_INSTALL_PKGCONFIG_FILES=TRUE \
    -G Ninja

%ninja_build

%install
%ninja_install -C build

#copy examples, remove cmake files
cp -fr examples %{buildroot}%{_datadir}/SFML/examples
find %{buildroot}%{_datadir}/SFML/examples -name CMakeLists.txt -exec rm -f {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17189 |21mr|sg3_utils-1.44-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define libname	%mklibname sgutils %{major}
%define develname %mklibname sgutils -d

Summary:	Utils for Linux's SCSI generic driver devices + raw devices

Name:		sg3_utils
Version:	1.44
Release:	3
License:	GPL+
Group:		System/Kernel and hardware
URL:		http://sg.danny.cz/sg/sg3_utils.html
Source0:	http://sg.danny.cz/sg/p/%{name}-%{version}.tar.xz
BuildRequires:	libtool

%description
Collection of tools for SCSI devices that use the Linux SCSI
generic (sg) interface. Includes utilities to copy data based on
"dd" syntax and semantics (called sg_dd, sgp_dd and sgm_dd); check
INQUIRY data and associated pages (sg_inq); check mode and log
pages (sg_modes and sg_logs); spin up and down disks (sg_start);
do self tests (sg_senddiag); and various other functions. See the
README and CHANGELOG files. Requires the lk 2.4 series or better.
[In the lk 2.5 development series many of these utilities can be
used on the primary block device name (e.g. /dev/sda).]

Warning: Some of these tools access the internals of your system
and the incorrect usage of them may render your system inoperable.

%package -n %{libname}
Summary:	Shared library for %{name}

Group:		System/Libraries

%description -n %{libname}
This package contains the shared library for %{name}.

%package -n %{develname}
Summary:	Static library and header files for the sgutils library

Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	libsgutils-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{mklibname sgutils 1 -d} < 1.26

%description -n	%{develname}
This package contains the sgutils library and its header
files.

%define devel_name_static %mklibname %{name} -d -s
%package -n	%{devel_name_static}
Summary:	Static library and header files for the sgutils library

Group:		Development/C
Provides:	%{name}-static-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:      %{mklibname sgutils 1 -d} < 1.26

%description -n	%{devel_name_static}
This package contains the static sgutils library and its header
files.

%prep
%setup -q

%build
%configure \
	--enable-static \
	--bindir=%{_sbindir}
%make

%install
%makeinstall_std 
find %{buildroot} -name \*.la|xargs rm -f


%files
%doc ChangeLog COVERAGE CREDITS README README.sg_start
%attr(0755,root,root) %{_sbindir}/*
%{_mandir}/man8/*

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_includedir}/scsi/*.h
%{_libdir}/*.so

%files -n %{devel_name_static}
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17190 |21mr|sgabios-0-0.svn.20110622
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sgabios
Version:        0
Release:        %mkrel 0.svn.20110622
Summary:        Open-source serial graphics BIOS option rom

Group:          Emulators
License:        ASL 2.0
URL:            http://code.google.com/p/sgabios/
# Tarball created from SVN archive using the following commands:
# svn export -r 8 http://sgabios.googlecode.com/svn/trunk sgabios-0
# tar -czvf sgabios-0-svnr8.tar.gz sgabios-0
Source0:        sgabios-0-svnr8.tar.gz

ExclusiveArch: %{ix86} x86_64

Requires: %{name}-bin = %{version}-%{release}

# Sgabios is noarch, but required on architectures which cannot build it.
# Disable debuginfo because it is of no use to us.
%global debug_package %{nil}

%description
SGABIOS is designed to be inserted into a BIOS as an option rom to provide over
a serial port the display and input capabilities normally handled by a VGA
adapter and a keyboard, and additionally provide hooks for logging displayed
characters for later collection after an operating system boots.

%ifarch %{ix86} x86_64 
%package bin
Summary: Sgabios for x86
Buildarch: noarch

%description bin
SGABIOS is designed to be inserted into a BIOS as an option rom to provide over 
a serial port the display and input capabilities normally handled by a VGA
adapter and a keyboard, and additionally provide hooks for logging displayed
characters for later collection after an operating system boots.
%endif

%prep
%setup -q

%build
mkdir -p bfd
ln -s %{_bindir}/ld.bfd bfd/ld
export PATH=$PWD/bfd:$PATH
unset MAKEFLAGS
%ifarch %{ix86} x86_64 
export CFLAGS="$RPM_OPT_FLAGS"
make
%endif


%install
mkdir -p %{buildroot}%{_datadir}/sgabios
%ifarch %{ix86} x86_64 
install -m 0644 sgabios.bin %{buildroot}%{_datadir}/sgabios
%endif


%files
%doc COPYING design.txt

%ifarch %{ix86} x86_64 
%files bin
%dir %{_datadir}/sgabios/
%{_datadir}/sgabios/sgabios.bin
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17191 |21mr|sgml-common-0.6.3-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sgmlbase %{_datadir}/sgml

Summary:	Base ISO character entities and utilities for SGML and XML
Name:		sgml-common
Version:	0.6.3
Release:	27
License:	GPLv2+
Group:		Publishing
Url:		http://www.w3.org/2003/entities/
Source0:	ftp://sources.redhat.com/pub/docbook-tools/new-trials/SOURCES/%{name}-%{version}.tar.bz2
Source1:	http://oasis-open.org/committees/docbook/xmlcharent/0.3/xmlcharent-0.3.tar.bz2
Source2:	xmlcharent-catalog.tar.bz2
# http://www.w3.org/2003/entities/iso8879/
Patch0:		sgml-common-0.6.3-umask.patch
Patch1:		sgml-common-xmldir.patch
Patch2:		sgml-common-quotes.patch
Patch3:		sgml-common-0.6.3-automake-fix.patch
BuildRequires:	libxml2-utils
Requires:	coreutils
Requires:	grep
Requires:	libxml2-utils
Provides:	xml-common = %{EVRD}
BuildArch:	noarch

%description
The ISO standardization organization has normalized a set of characters
symbolic names ("character entities") used by SGML documents of many types.
There are character entities for latin languages, math symbols, greek,
cyrillic, etc. This package also includes very basic utilities to allow
SGML catalogs manipulation.

%files
%doc doc/HTML/*.html
%dir /etc/sgml
%config(noreplace) /etc/sgml/sgml.conf
%dir %{sgmlbase}
%dir %{sgmlbase}/sgml-iso-entities-8879.1986
%{sgmlbase}/sgml-iso-entities-8879.1986/*
%{_bindir}/sgmlwhich
%{_bindir}/install-catalog
%{_mandir}/man8/*
%dir /etc/xml
%config(noreplace) /etc/xml/catalog
%dir %{sgmlbase}/docbook
%config(noreplace) %{sgmlbase}/docbook/xmlcatalog
%dir %{sgmlbase}/xml-iso-entities-8879.1986/
%{sgmlbase}/xml-iso-entities-8879.1986/*

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -q -D -a 1
%setup -q -D -a 2
%patch0 -p1 -b .umask
%patch1 -p1 -b .xmldir
%patch2 -p1 -b .quotes
%patch3 -p1 -b .automake

autoreconf -fi

%build
%configure

%install
DESTDIR=%{buildroot}
%makeinstall
# remove installed doc (added later in %files)
rm -rf $DESTDIR/usr/doc

# remove xml.dcl, it is now in openjade
rm -f %{buildroot}%{sgmlbase}/xml.dcl

# remove entities to install them later in /usr/share/sgml
# instead of /usr/share/xml
rm -rf $DESTDIR/usr/share/xml
mkdir %{buildroot}/etc/xml
mkdir %{buildroot}%{sgmlbase}/docbook
# Create an empty XML catalog.
XMLCATALOG=%{buildroot}/etc/xml/catalog
/usr/bin/xmlcatalog --noout --create $XMLCATALOG
# install common ISO entities character set
rm -rf %{buildroot}%{sgmlbase}/xml-iso-entities-8879.1986/
mkdir %{buildroot}%{sgmlbase}/xml-iso-entities-8879.1986/
install iso-*.ent %{buildroot}%{sgmlbase}/xml-iso-entities-8879.1986/
install catalog %{buildroot}%{sgmlbase}/xml-iso-entities-8879.1986/
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
	"-//OASIS//ENTITIES DocBook XML" \
	"file://%{sgmlbase}/xml-iso-entities-8879.1986/catalog" $XMLCATALOG
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
	"ISO 8879:1986" \
	"file://%{sgmlbase}/xml-iso-entities-8879.1986/catalog" $XMLCATALOG
# Also create the common DocBook catalog
/usr/bin/xmlcatalog --noout --create \
	%{buildroot}%{sgmlbase}/docbook/xmlcatalog
# Now put the common DocBook entries
/usr/bin/xmlcatalog --noout --add "delegatePublic" \
	"-//OASIS//DTD DocBook XML" \
	"file://%{sgmlbase}/docbook/xmlcatalog" $XMLCATALOG
/usr/bin/xmlcatalog --noout --add "delegateSystem" \
	"http://www.oasis-open.org/docbook/" \
	"file://%{sgmlbase}/docbook/xmlcatalog" $XMLCATALOG
/usr/bin/xmlcatalog --noout --add "delegateURI" \
	"http://www.oasis-open.org/docbook/" \
	"file://%{sgmlbase}/docbook/xmlcatalog" $XMLCATALOG

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17192 |21mr|shaderc-2024.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# Glslang revision from packaged version
%global glslang_version d1517d64cfca91f573af1bf7341dc3a5113349c0

Summary:	A collection of tools, libraries, and tests for Vulkan shader compilation
Name:		shaderc
Version:	2024.0
Release:	1
License:	ASL 2.0
Group:		System/Libraries
Url:		https://github.com/google/shaderc
Source0:	https://github.com/google/shaderc/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		shaderc-2024.0-Drop-third-party-code-in-CMakeLists.txt.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	glslang-devel
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(SPIRV-Headers)
BuildRequires:	pkgconfig(SPIRV-Tools)

%description
A collection of tools, libraries and tests for shader compilation.

Shaderc aims to to provide:
 - a command line compiler with GCC- and Clang-like usage, for better
integration with build systems
 - an API where functionality can be added without breaking existing clients
 - an API supporting standard concurrency patterns across multiple
operating systems
 - increased functionality such as file include support

#----------------------------------------------------------------------------

%package -n glslc
Summary:	A command line compiler for GLSL/HLSL to SPIR-V
Group:		Development/Tools

%description -n glslc
A command line compiler for GLSL/HLSL to SPIR-V.

%files -n glslc
%doc glslc/README.asciidoc
%license LICENSE
%{_bindir}/glslc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for compiling shader strings into SPIR-V
Group:		System/Libraries

%description -n %{libname}
A library for compiling shader strings into SPIR-V.

%files -n %{libname}
%doc AUTHORS CHANGES CONTRIBUTORS* README.md
%license LICENSE
%{_libdir}/lib%{name}_shared.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libshaderc
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
A library for compiling shader strings into SPIR-V.
Development files for libshaderc.

%files -n %{devname}
%{_includedir}/%{name}/
%{_libdir}/lib%{name}_shared.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

rm -r third_party

# Stolen from Gentoo
# Create build-version.inc since we want to use our packaged
# SPIRV-Tools and glslang
sed -i -e '/build-version/d' glslc/CMakeLists.txt
echo \"shaderc $(grep -m1 -o '^v[[:digit:]]\{4\}\.[[:digit:]]\(-dev\)\? [[:digit:]]\{4\}-[[:digit:]]\{2\}-[[:digit:]]\{2\}$' CHANGES)\" > glslc/src/build-version.inc
echo \"spirv-tools $(grep -m1 -o '^v[[:digit:]]\{4\}\.[[:digit:]]\(-dev\)\? [[:digit:]]\{4\}-[[:digit:]]\{2\}-[[:digit:]]\{2\}$' /usr/share/doc/spirv-tools/CHANGES)\" >> glslc/src/build-version.inc
echo \"glslang %{glslang_version}\" >> glslc/src/build-version.inc

# Point to correct include
sed -i 's|SPIRV/GlslangToSpv.h|glslang/SPIRV/GlslangToSpv.h|' libshaderc_util/src/compiler.cc

%build
CFLAGS="%{optflags} -flto=auto"
CXXFLAGS="%{optflags} -flto=auto"
%cmake \
	-DCMAKE_BUILD_TYPE=RelWithDebInfo	\
	-DCMAKE_SKIP_RPATH=ON		\
	-DSHADERC_SKIP_TESTS=ON		\
	-G Ninja
%ninja_build

%install
%ninja_install -C build

rm -f %{buildroot}%{_libdir}/*.a
rm -f %{buildroot}%{_libdir}/pkgconfig/shaderc_*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17193 |21mr|shadow-utils-4.10-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major_subid 0
%define libname_subid %mklibname subid %{major_subid}
%define devname_subid %mklibname subid -d

# (cg) Certain binaries build in this package are no longer wanted or are now
# provided by other packages (e.g. coreutils, util-linux or passwd)
%define unwanted chfn chsh groups passwd porttime su suauth nologin chgpasswd getspnam
# (cg) Some localised man pages are provided by the man-pages package rather
# than here so kill them off
# (Question: why?? See "urpmf share.*man.*/XXXX\\." where XXXX is one of the below)
%define unwanted_i18n_mans sg shadow

# Distro-specific default value is defined in branding-configs package
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

# autoreconf is enough
%define _disable_rebuild_configure 1

# https://github.com/shadow-maint/shadow/issues/469
# (this hack will not affect resulting binaries)
%define _disable_ld_no_undefined 1

Summary:	Utilities for managing shadow password files and user/group accounts
Name:		shadow-utils
Epoch:		2
Version:	4.10
Release:	10
License:	BSD and GPLv2+
Group:		System/Base
Url:		http://pkg-shadow.alioth.debian.org/
Source0:	https://github.com/shadow-maint/shadow/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	shadow-970616.login.defs
Source2:	shadow-970616.useradd
Source3:	adduser.8
Source4:	pwunconv.8
Source5:	grpconv.8
Source6:	grpunconv.8
# http://qa.mandriva.com/show_bug.cgi?id=27082
Source7:	shadow-utils-nl.po
Source8:	user-group-mod.pamd
Source9:	chpasswd-newusers.pamd
Source10:	chage-chfn-chsh.pamd
Patch0:		shadow-utils-4.10-fix-allocated-dirname-change-segfault.patch
Patch2:		shadow-4.1.5.1-rpmsave.patch
Patch4:		shadow-4.1.4.2-dotinname.patch
Patch5:		shadow-svace-fixes.patch
# backport from 4.14.0
# https://github.com/shadow-maint/shadow/commit/e8d2bc8d8b2c827e67cb8e3f9a6e1800af25c86f
# https://github.com/shadow-maint/shadow/commit/b312bc0b4d79a54352f7eea28ed261b8c67e2602
# https://abf.io/import/shadow-utils/pull_requests/3
Patch6:		supplementary-groups-feature.patch
Patch7:		CVE-2023-4641.patch
# New option `SYS_USER_AUTO_GROUPS_ENAB` in `login.defs`,
# which controls the automatic addition of supplements groups for system users.
Patch8:		sys-user-auto-groups-option.patch
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	bison
BuildRequires:	xsltproc
BuildRequires:	docbook-dtd45-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	itstool
BuildRequires:	pkgconfig(libcrypt) >= 4.1.1-2
BuildRequires:	pkgconfig(libacl)
BuildRequires:	pkgconfig(libattr)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(audit)
BuildRequires:	pkgconfig(libcap)
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libsemanage)
%endif
Requires:	setup
Requires(pre):	setup
Requires(post):	bash
Requires(post):	coreutils
Provides:	shadow = %{EVRD}
Provides:	adduser = %{EVRD}
Provides:	newgrp = %{EVRD}
# compat with Fedora/RH
Provides:	shadow-utils-subid = %{EVRD}
# it is a package with library there -> may be required in arch-specified way
Provides:	shadow-utils-subid%{_isa} = %{EVRD}

%description
The shadow-utils package includes the necessary programs for
converting UNIX password files to the shadow password format, plus
programs for managing user and group accounts.
- The pwck command checks the integrity of password and shadow files.
- The lastlog command prints out the last login times for all users.
- The useradd, userdel and usermod commands are used for managing
  user accounts.
- The groupadd, groupdel and groupmod commands are used for managing
  group accounts.

%files -f shadow.lang
%doc doc/HOWTO NEWS
%doc doc/WISHLIST doc/README.limits doc/README.platforms
%attr(0640,root,shadow) %config(noreplace) %{_sysconfdir}/login.defs
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/default/useradd
%{_bindir}/sg
%attr(2711,root,shadow) %{_bindir}/chage
%{_bindir}/faillog
%{_bindir}/getsubids
%{_bindir}/gpasswd
%{_bindir}/expiry
%{_bindir}/login
%attr(4711,root,root) %{_bindir}/newgrp
%{_bindir}/lastlog
%{_bindir}/newuidmap
%{_bindir}/newgidmap
%{_sbindir}/logoutd
%{_sbindir}/adduser
%{_sbindir}/user*
%{_sbindir}/group*
%{_sbindir}/grpck
%{_sbindir}/pwck
%{_sbindir}/chpasswd
%{_sbindir}/newusers
%{_sbindir}/vipw
%{_sbindir}/vigr
%{_mandir}/man1/chage.1*
%{_mandir}/man1/expiry.1*
%{_mandir}/man1/newgrp.1*
%{_mandir}/man1/sg.1*
%{_mandir}/man1/getsubids.1*
%{_mandir}/man1/gpasswd.1*
%{_mandir}/man1/newgidmap.1*
%{_mandir}/man1/newuidmap.1*
%{_mandir}/man3/shadow.3*
%{_mandir}/man5/shadow.5*
%{_mandir}/man5/gshadow.5*
%{_mandir}/man5/login.defs.5*
%{_mandir}/man5/faillog.5*
%{_mandir}/man5/subgid.5*
%{_mandir}/man5/subuid.5*
%{_mandir}/man8/adduser.8*
%{_mandir}/man8/group*.8*
%{_mandir}/man8/user*.8*
%{_mandir}/man8/pwck.8*
%{_mandir}/man8/grpck.8*
%{_mandir}/man8/chpasswd.8*
%{_mandir}/man8/logoutd.8*
%{_mandir}/man8/newusers.8*
%{_mandir}/man8/vipw.8*
%{_mandir}/man8/vigr.8*
%{_mandir}/man8/lastlog.8*
%{_mandir}/man8/faillog.8*
%attr(640,root,shadow) %config(noreplace) %{_sysconfdir}/pam.d/chage-chfn-chsh
%{_sysconfdir}/pam.d/chage
%attr(640,root,shadow) %config(noreplace) %{_sysconfdir}/pam.d/chpasswd-newusers
%{_sysconfdir}/pam.d/chpasswd
%{_sysconfdir}/pam.d/newusers
%attr(640,root,shadow) %config(noreplace) %{_sysconfdir}/pam.d/user-group-mod
%{_sysconfdir}/pam.d/useradd
%{_sysconfdir}/pam.d/userdel
%{_sysconfdir}/pam.d/usermod
%{_sysconfdir}/pam.d/groupadd
%{_sysconfdir}/pam.d/groupdel
%{_sysconfdir}/pam.d/groupmod

#----------------------------------------------------------------------------

%package -n shadow-conv
Summary:	Conversion tools for %{name}
Group:		System/Libraries

%description -n shadow-conv
This package contains the conversion tools for %{name} needed by setup.
- The pwconv command converts passwords to the shadow password format.
- The pwunconv command unconverts shadow passwords and generates
  an npasswd file (a standard UNIX password file).

%files -n shadow-conv
%{_sbindir}/*conv
%{_mandir}/man8/*conv.8*

#----------------------------------------------------------------------------

%package -n %{libname_subid}
Summary:	A library to manage subordinate UID and GID ranges
Group:		System/Libraries

%description -n %{libname_subid}
A library to manage subordinate UID and GID ranges

%files -n %{libname_subid}
%{_libdir}/libsubid.so.%{major_subid}*

#----------------------------------------------------------------------------

%package -n %{devname_subid}
Summary:	Development files for a library to manage subordinate UID and GID ranges
Group:		Development/C
Requires:	%{libname_subid} = %{EVRD}
# compat with Fedora/RH
Provides:	shadow-utils-subid-devel = %{EVRD}

%description -n %{devname_subid}
Development files for a library to manage subordinate UID and GID ranges

%files -n %{devname_subid}
%{_libdir}/libsubid.so
# move ownership of %%dir later if needed
%dir %{_includedir}/shadow
%{_includedir}/shadow/subid.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n shadow-%{version}

cp -f %{SOURCE7} po/nl.po
rm -f po/nl.gmo

# Force regeneration of getdate.c
rm -fv libmisc/getdate.c

%build
# (tpg) needed for autofoo
autoreconf -v -f --install

%serverbuild

%configure \
	--enable-shadowgrp \
	--enable-man \
	--with-audit \
	--with-bcrypt \
	--with-sha-crypt \
	--with-yescrypt \
%if %{with selinux}
	--with-selinux \
%endif
	--without-libcrack \
	--without-libpam \
	--enable-shared \
	--with-group-name-max-length=32

%make_build
# because of the extra po file added manually
make -C po update-gmo

%install
%make_install gnulocaledir=%{buildroot}/%{_datadir}/locale MKINSTALLDIRS=`pwd`/mkinstalldirs

install -d -m 750 %{buildroot}%{_sysconfdir}/default
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/login.defs
install -m 0600 %{SOURCE2} %{buildroot}%{_sysconfdir}/default/useradd

ln -s useradd %{buildroot}%{_sbindir}/adduser
install -m644 %{SOURCE3} %{buildroot}%{_mandir}/man8/
install -m644 %{SOURCE4} %{buildroot}%{_mandir}/man8/
install -m644 %{SOURCE5} %{buildroot}%{_mandir}/man8/
install -m644 %{SOURCE6} %{buildroot}%{_mandir}/man8/
perl -pi -e "s/encrpted/encrypted/g" %{buildroot}%{_mandir}/man8/newusers.8

# add pam support files
rm -rf %{buildroot}%{_sysconfdir}/pam.d/
mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
install -m 0600 %{SOURCE8} %{buildroot}%{_sysconfdir}/pam.d/user-group-mod
install -m 0600 %{SOURCE9} %{buildroot}%{_sysconfdir}/pam.d/chpasswd-newusers
install -m 0600 %{SOURCE10} %{buildroot}%{_sysconfdir}/pam.d/chage-chfn-chsh

pushd %{buildroot}%{_sysconfdir}/pam.d
    for f in chpasswd newusers; do
        ln -s chpasswd-newusers ${f}
    done
    for f in chage; do
        # chfn and chsh are built without pam support in util-linux-ng
        ln -s chage-chfn-chsh ${f}
    done
    for f in groupadd groupdel groupmod useradd userdel usermod; do
        ln -s user-group-mod ${f}
    done
popd

# (cg) Remove unwanted binaries (and their corresponding man pages)
for unwanted in %{unwanted}; do
  rm -f %{buildroot}{%{_bindir},%{_sbindir}}/$unwanted
  rm -f %{buildroot}%{_mandir}/{,{??,??_??}/}man*/$unwanted.*
done

rm -f %{buildroot}%{_mandir}/man1/login.1*
rm -f %{buildroot}%{_mandir}/man5/login.access*
rm -f %{buildroot}%{_mandir}/man5/limits*
rm -f %{buildroot}%{_mandir}/*/man1/login.1*
rm -f %{buildroot}%{_mandir}/*/man5/login.access*
rm -f %{buildroot}%{_mandir}/*/man5/limits*

rm -f %{buildroot}%{_sysconfdir}/limits
rm -f %{buildroot}%{_sysconfdir}/login.access


# (cg) Remove man pages provided by the "man-pages" package...
for unwanted in %{unwanted_i18n_mans}; do
  rm -f %{buildroot}%{_mandir}/{??,??_??}/man*/$unwanted.*
done

# (cg) Find all localised man pages
find %{buildroot}%{_mandir} -depth -type d -empty -delete

%find_lang shadow

for dir in $(ls -1d %{buildroot}%{_mandir}/{??,??_??}) ; do
  dir=$(echo $dir | sed -e "s|^%{buildroot}||")
  lang=$(basename $dir)
  echo "%%lang($lang) $dir/man*/*" >> shadow.lang
done

%post
#!/bin/sh
if [ -f %{_sysconfdir}/shadow.lock ]; then
    /bin/rm -f %{_sysconfdir}/shadow.lock
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17194 |21mr|shairplay-0.9.0-0.20180824.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	0
%define	libname	%mklibname shairplay %{major}
%define	devname	%mklibname shairplay -d

%define snap 20180824
%define rel 1

Summary:	Apple AirPlay server implementation
Name:		shairplay
Version:	0.9.0
Release:	0.%{snap}.%{rel}
License:	MIT
Group:		Networking/Other
Url:		https://github.com/juhovh/shairplay
# git archive --prefix shairplay-20120111/ master | xz > shairplay-20120111.tar.xz
Source0:	%{name}-%{snap}.tar.xz
Patch0:		%{name}-20180824-fix-dns_sd-header-detection.patch
BuildRequires:	libltdl-devel
BuildRequires:	pkgconfig(ao) >= 1.1.0
BuildRequires:	pkgconfig(avahi-compat-libdns_sd)
Requires:	%{libname} = %{version}-%{release}

%description
Server for the Apple RAOP protocol, emulating an AirPort Express for the
purpose of streaming music from iTunes and compatible iPods.

%files
%doc README.md LICENSE
%{_bindir}/%{name}

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of shairplay
Group:		System/Libraries

%description -n %{libname}
Shairplay is an Apple RAOP protocol server, emulating an AirPort Express
for the purpose of streaming music from iTunes and compatible iPods.
This package contains the library needed to run programs dynamically
linked with libshairplay.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for libshairplay development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Shairplay is an Apple RAOP protocol server. This package contains the headers
that are needed to compile applications that use libshairplay.

%files -n %{devname}
%doc LICENSE
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{snap}
%patch0 -p1


%build
autoreconf -vfi
%configure	\
				--with-playfair \
				--disable-static

%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17195 |21mr|shapelib-1.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	API in "C" for Shapefile handling
Name:		shapelib
Version:	1.5.0
Release:	2
License:	LGPLv2+
Group:		Sciences/Geosciences
Url:		http://shapelib.maptools.org/
Source0:	http://download.osgeo.org/shapelib/shapelib-%{version}.tar.gz
# Fix CVE-2022-0699
# https://nvd.nist.gov/vuln/detail/CVE-2022-0699
# https://github.com/OSGeo/shapelib/issues/39
# https://github.com/OSGeo/shapelib/commit/c75b9281a5b9452d92e1682bdfe6019a13ed819f
Patch0:		fix-CVE-2022-0699.patch
BuildRequires:	proj-devel
Requires:	proj >= 4.4.1

%description
The Shapefile C Library provides the ability to write simple C programs
for reading, writing and updating (to a limited extent) ESRI Shapefiles,
and the associated attribute file (.dbf).

%files
%doc README.tree README NEWS ChangeLog
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	API in "C" for Shapefile handling
Group:		System/Libraries

%description -n %{libname}
The Shapefile C Library provides the ability to write simple C programs
for reading, writing and updating (to a limited extent) ESRI Shapefiles,
and the associated attribute file (.dbf).

%files -n %{libname}
%{_libdir}/libshp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	API in "C" for Shapefile handling
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
The Shapefile C Library provides the ability to write simple C programs
for reading, writing and updating (to a limited extent) ESRI Shapefiles,
and the associated attribute file (.dbf).

%files -n %{devname}
%{_includedir}/shapefil.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/shapelib.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make_build


%install
%make_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17196 |21mr|shared-mime-info-2.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	Shared MIME-Info Specification
Name:		shared-mime-info
Version:	2.4
Release:	4
License:	GPLv2+
Group:		Graphical desktop/Other
Url:		http://www.freedesktop.org/wiki/Software/shared-mime-info
Source0:	https://gitlab.freedesktop.org/xdg/shared-mime-info/-/archive/%{version}/%{name}-%{version}.tar.bz2
Source1:	mimeapps.list
BuildRequires:	intltool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	xmlto
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(glib-2.0)

%description
This is the freedesktop.org shared MIME info database.

Many programs and desktops use the MIME system to represent the types of
files. Frequently, it is necessary to work out the correct MIME type for
a file. This is generally done by examining the file's name or contents,
and looking up the correct MIME type in a database.

For interoperability, it is useful for different programs to use the
same database so that different programs agree on the type of a file,
and new rules for determining the type apply to all programs.

This specification attempts to unify the type-guessing systems currently
in use by GNOME, KDE and ROX. Only the name-to-type and contents-to-type
mappings are covered by this spec; other MIME type information, such as
the default handler for a particular type, or the icon to use to display
it in a file manager, are not covered since these are a matter of style.

In addition, freedesktop.org provides a shared database in this format
to avoid inconsistencies between desktops. This database has been
created by converting the existing KDE and GNOME databases to the new
format and merging them together.

%files -f %{name}.lang
%doc README.md NEWS
%license COPYING
%{_bindir}/update-mime-database
%dir %{_datadir}/mime/
%{_datadir}/applications/mimeapps.list
%{_datadir}/gettext/its/%{name}.*
%dir %{_datadir}/mime/application
%dir %{_datadir}/mime/image
%dir %{_datadir}/mime/message
%dir %{_datadir}/mime/multipart
%dir %{_datadir}/mime/text
%dir %{_datadir}/mime/audio
%dir %{_datadir}/mime/inode
%dir %{_datadir}/mime/model
%dir %{_datadir}/mime/packages
%dir %{_datadir}/mime/video
%ghost %{_datadir}/mime/XMLnamespaces
%ghost %{_datadir}/mime/aliases
%ghost %{_datadir}/mime/globs
%ghost %{_datadir}/mime/magic
%ghost %{_datadir}/mime/subclasses
%ghost %{_datadir}/mime/mime.cache
%{_datadir}/mime/packages/freedesktop.org.xml
%{_mandir}/man1/update-mime-database.1*

%post
%{_bindir}/update-mime-database %{_datadir}/mime > /dev/null

%transfiletriggerin -- %{_datadir}/mime/packages/
%{_bindir}/update-mime-database -n %{_datadir}/mime > /dev/null

%transfiletriggerun -- %{_datadir}/mime/packages/
%{_bindir}/update-mime-database -n %{_datadir}/mime > /dev/null

#----------------------------------------------------------------------------

%package devel
Summary:	development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}

%description devel
Development files for %{name}.

%files devel
%{_datadir}/pkgconfig/shared-mime-info.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/mime/{application,image,message,multipart,text,audio,inode,model,packages,video}

touch %{buildroot}%{_datadir}/mime/{XMLnamespaces,aliases,globs,magic,subclasses,mime.cache}

%find_lang %{name}

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17197 |21mr|sharutils-4.15.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	The GNU shar utilities for packaging and unpackaging shell archives
Name:		sharutils
Version:	4.15.2
Release:	5
License:	GPLv3+
Group:		Archiving/Backup
Url:		http://www.gnu.org/software/sharutils/
Source0:	ftp://ftp.gnu.org/pub/gnu/%{name}/%{name}-%{version}.tar.xz
# fix for CVE-2018-1000097
Patch0:		CVE-2018-1000097-Pass-compilation-with-Werror-format-security.patch
Patch1:		CVE-2018-1000097-heap-buffer-overflow.patch
BuildRequires:	texinfo
# for autoreconf
BuildRequires:	gettext-devel

%description
The sharutils package contains the GNU shar utilities, a set of tools
for encoding and decoding packages of files (in binary or text format)
in a special plain text format called shell archives (shar).  This
format can be sent through email (which can be problematic for
regular binary files).  The shar utility supports a wide range of
capabilities (compressing, uuencoding, splitting long files for
multi-part mailings, providing checksums), which make it very flexible
at creating shar files.  After the files have been sent, the unshar
tool scans mail messages looking for shar files.  Unshar automatically
strips off mail headers and introductory text and then unpacks the shar
files.

Install sharutils if you send binary files through email very often.

%files -f %{name}.lang
%{_bindir}/*
%{_infodir}/*
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%setup_compile_flags

# (from coreutils)
# Compatibility with newer glibc for older coreutils;
# remove these hacks with the next update of coreutils.
grep -Irl 'defined _IO_ftrylockfile ' | xargs sed -i "s/defined _IO_ftrylockfile /defined _IO_EOF_SEEN || defined _IO_ftrylockfile /g"
# From gnulib/lib/stdio-impl.h of newer coreutils
export CFLAGS="${CFLAGS} -D_IO_IN_BACKUP=0x100"
# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,^#include <sys/types.h>,#include <sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;
autoreconf -if
# /

%configure
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17198 |21mr|shibboleth-java-parent-v3-8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          shibboleth-java-parent-v3
Version:       8
Release:       7
Summary:       Shibboleth Project V3 Super POM
License:       ASL 2.0
URL:           http://shibboleth.net/
#git clone git://git.shibboleth.net/java-parent-project-v3
#(cd java-parent-project-v3/ && git archive --format=tar --prefix=shibboleth-java-parent-v3-8/ 8 | xz > ../shibboleth-java-parent-v3-8.tar.xz)
Source0:       %{name}-%{version}.tar.xz
Group:         Development/Java
BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:jul-to-slf4j)
BuildRequires: mvn(org.slf4j:log4j-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(xmlunit:xmlunit)

Provides:      opensaml-java-parent = %{version}
# com.unboundid:unboundid-ldapsdk:2.3.8
# org.cryptacular:cryptacular:1.0
# org.ldaptive:ldaptive:1.0.6
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A POM containing properties, profiles, plugin configurations,
etc. that are common across all Shibboleth V3 projects.

%prep
%setup -q -n %{name}-%{version}

%mvn_alias : net.shibboleth:parent

%build

%mvn_build -j

%install
%mvn_install

%files -f .mfiles
%doc resources/doc/RELEASE-NOTES.txt
%license resources/doc/LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17199 |21mr|shibboleth-java-support-7.1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          shibboleth-java-support
Version:       7.1.1
Release:       8
Summary:       Java Support for Shibboleth projects
License:       ASL 2.0 and BSD
URL:           http://shibboleth.net/
# git clone git://git.shibboleth.net/java-support
# (cd java-support/ && git archive --format=tar --prefix=shibboleth-java-support-7.1.1/ 7.1.1 | xz > ../shibboleth-java-support-7.1.1.tar.xz)
Source0:       %{name}-%{version}.tar.xz
Patch0:        shibboleth-java-support-7.1.1-port-to-servlet-3.1.patch

BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(ch.qos.logback:logback-core)
BuildRequires: mvn(com.beust:jcommander)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(net.shibboleth:parent-v3:pom:)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpclient-cache)
BuildRequires: mvn(org.apache.velocity:velocity)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-test)
# test deps listed in net.shibboleth:parent-v3:pom:
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:jul-to-slf4j)
BuildRequires: mvn(org.slf4j:log4j-over-slf4j)
BuildRequires: mvn(org.testng:testng)
BuildRequires: mvn(xmlunit:xmlunit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java Support for Shibboleth projects.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1

# Use web connection
# UnknownHostException: buildvm-19.phx2.fedoraproject.org: buildvm-19.phx2.fedoraproject.org: unknown error
rm src/test/java/net/shibboleth/utilities/java/support/net/IPRangeTest.java
# AssertionError only on koji builders
rm src/test/java/net/shibboleth/utilities/java/support/collection/LazyMapTest.java \
 src/test/java/net/shibboleth/utilities/java/support/collection/ClassToInstanceMultiMapTest.java \
 src/test/java/net/shibboleth/utilities/java/support/httpclient/IdleConectionSweeperTest.java

%mvn_file : %{name} java-support
%mvn_package :java-support::tests:

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc doc/RELEASE-NOTES.txt
%license doc/LICENSE.txt doc/NOTICE.txt doc/OWASP-LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license doc/LICENSE.txt doc/NOTICE.txt doc/OWASP-LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17200 |21mr|shiboken-1.2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define py2_ver_mod2 %(python3 -c "import sys; sys.stdout.write(sys.version[:3].replace('.','')+sys.abiflags)")
%define pyname     Shiboken

Name:		shiboken
Version:	1.2.4
Release:	1
License:	GPLv2
Summary:	Creates the PySide bindings source files

Group:		Development/KDE and Qt
URL:		http://www.pyside.org
Source0:	https://pypi.io/packages/source/P/PySide/PySide-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
# Patches from Debian
Patch1:		shiboken-1.2.4-python-version.patch
Patch2:		python3.3-and-multiarch.patch
Patch3:		python3.3-nolong.patch
Patch4:		memleak-instead-crash.patch
Patch5:		fix_py3_expect.patch
Patch6:		pkg-config-depend-on-python.patch
Patch7:		0008-Cast-ifstream-to-bool-explicitely-to-work-with-GCC-6.patch
Patch8:		fix-collector_external_operator_test.patch
# /
BuildRequires:	cmake
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	sparsehash-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
Obsoletes:	generatorrunner < 0.6.17

%description
The Shiboken Generator (A.K.A. shiboken) is the plugin that creates the
PySide bindings source files from Qt headers and auxiliary files
(typesystems, global.h and glue files).

Since 1.1.1 it's merged with apiextractor and generatorrunner.

%files
%{_bindir}/%{name}
%{python2_sitearch}/%{name}.so
%{_mandir}/man1/%{name}.1.*

#------------------------------------------------------------------------------

%define libmajor 1
%define libname %mklibname %{name} %{libmajor}

%define oldapiexlib %mklibname apiextractor 0
%define oldgenlib %mklibname genrunner 0

%package -n %{libname}
Summary:	Shiboken Generator core lib

Group:		System/Libraries
Obsoletes:	%{oldapiexlib} <= 0.10.11
Obsoletes:	%{oldgenlib} <= 0.6.17

%description -n %{libname}
Shiboken Generator core lib.

%files -n %{libname}
%{_libdir}/lib%{name}-python%{py2_ver}.so.%{libmajor}*

#------------------------------------------------------------------------------

%define oldapiexdev %mklibname apiextractor -d

%package devel
Summary:	Devel stuff for Shiboken Generator

Group:		Development/KDE and Qt
Requires:	%{libname} = %{version}-%{release}
Requires:	%{name} = %{version}-%{release}
Obsoletes:	%{oldapiexdev} < 0.10.11
Obsoletes:	generatorrunner-devel < 0.6.17

%description devel
Devel stuff for Shiboken Generator.

%files devel
%{_includedir}/%{name}
%{_libdir}/lib%{name}-python%{py2_ver}.so
%{_libdir}/pkgconfig/%{name}.pc
%exclude %{_libdir}/cmake/%{pyname}-%{version}/%{pyname}Config.cpython-%{py2_ver_mod2}*.cmake
%{_libdir}/cmake/*

#------------------------------------------------------------------------------

%package -n python3-%{name}
Summary:        Creates the PySide bindings source files
Group:          Development/KDE and Qt

%description -n python3-%{name}
The Shiboken Generator (A.K.A. shiboken) is the plugin that creates the
PySide bindings source files from Qt headers and auxiliary files
(typesystems, global.h and glue files). This is the Python3 version.

%files -n python3-%{name}
%{_bindir}/%{name}-%{py3_ver}
%{python3_sitearch}/%{name}.so
%{_mandir}/man1/%{name}-%{py3_ver}.1*

#------------------------------------------------------------------------------

%define py3libname %mklibname python3-%{name} %{libmajor}

%package -n %{py3libname}
Summary:        Shiboken Generator core lib
Group:          System/Libraries

%description -n %{py3libname}
Shiboken Generator core lib. This is the Python3 version.

%files -n %{py3libname}
%{_libdir}/lib%{name}.cpython-%{py2_ver_mod2}*.so.%{libmajor}*

#------------------------------------------------------------------------------

%package -n python3-%{name}-devel
Summary:        Devel stuff for Shiboken Generator
Group:          Development/KDE and Qt
Requires:       %{py3libname} = %{version}
Requires:       python3-%{name} = %{version}
Requires:       %{name}-devel = %{version}

%description -n python3-%{name}-devel
Devel stuff for Shiboken Generator. This is the Python3 version.

%files -n python3-%{name}-devel
%{_libdir}/lib%{name}.cpython-%{py2_ver_mod2}*.so
%exclude %{_libdir}/cmake/%{pyname}-%{version}/%{pyname}Config-python%{py2_ver}.cmake
%exclude %{_libdir}/cmake/%{pyname}-%{version}/%{pyname}Config.cmake
%exclude %{_libdir}/cmake/%{pyname}-%{version}/%{pyname}ConfigVersion.cmake
%{_libdir}/cmake/%{pyname}-%{version}/

#------------------------------------------------------------------------------

%prep
%setup -q -n PySide-%{version}
cd sources/%{name}
%apply_patches
cp -a . %{py3dir}
# (From Fedora) Build against sparsehash package
rm -rf ext/sparsehash/

%build
cd sources/%{name}
pushd %{py3dir}
%cmake -DUSE_PYTHON3=True
%make
popd

%cmake
%make

%install
cd sources/%{name}
pushd %{py3dir}
%makeinstall_std -C build
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_bindir}/%{name}-%{py3_ver}
mv %{buildroot}%{_mandir}/man1/%{name}.1 %{buildroot}%{_mandir}/man1/%{name}-%{py3_ver}.1
popd

%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17201 |21mr|shim-unsigned-15-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global debugcflags %{nil}

%global efidir %(eval echo $(. /etc/os-release && echo $ID))

Name:		shim-unsigned
Version:	15
Release:	3
Summary:	First-stage UEFI bootloader
Group:		System/Kernel and hardware
License:	BSD
URL:		https://github.com/rhboot/shim
Source0:	https://github.com/rhboot/shim/releases/download/%{version}/shim-%{version}.tar.bz2
#Source0:	shim-%{gitdate}-git%{gitrev}.tar.xz
Source1:	rosa.cer
Source2:	%{name}.rpmlintrc

BuildRequires:	gnu-efi-devel >= 3.0.5
BuildRequires:	openssl
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pesign >= 0.106-1
BuildRequires:	pkgconfig(libelf) >= 0.167

# Shim uses OpenSSL, but cannot use the system copy as the UEFI ABI is not
# compatible with SysV (there's no red zone under UEFI) and there isn't a
# POSIX-style C library.
Provides:	bundled(openssl) = 1.0.2j

Provides:	shim = %{EVRD}
Requires:	efi-filesystem

# A subdirectory in /boot/efi/EFI/ where the boot files for ROSA are located.
%define efidir rosa

%ifarch %{x86_64}
%define efiarch x64
%endif
%ifarch %{ix86}
%define efiarch ia32
%endif
%ifarch aarch64
%define efiarch aa64
%endif

%define shim_boot_filename shim%{efiarch}.efi
%define shim_file shim%{efiarch}.efi
%define shim_hash_file shim%{efiarch}.hash
%define mokmgr_file mm%{efiarch}.efi
%define fallback_file fb%{efiarch}.efi
%define grub_file grub%{efiarch}.efi


%description
Initial UEFI bootloader that handles chaining to a trusted full bootloader
under secure boot environments. Not signed by trusted authority.

%files
%doc README*
%doc MokVars.txt
%dir %{_datadir}/shim
%{_datadir}/shim/*
# XXX for now they are here
/boot/efi/EFI/%{efidir}/*

#---------------------------------------------------------------------------

%prep
%setup -qn shim-%{version}
%autopatch -p1
# remove it on next rel
sed -i 's!-Werror !!g' Makefile Make.defaults

%build

%make \
	'DEFAULT_LOADER=\\\\%{grub_file}' \
	EFIDIR=%{efidir} \
	PKGNAME=shim \
	RELEASE=%{release} \
	ENABLE_HTTPBOOT=true \
	ENABLE_SHIM_HASH=true \
	VENDOR_CERT_FILE=%{SOURCE1} \
	all

# Uncomment this when automatic signing of EFI binaries is working again.
#%if %{defined auto_sign}
#    %auto_sign %{shim_file} %{mokmgr_file} %{fallback_file}
#%endif

%install
pesign -h -P -i %{shim_file} > %{shim_hash_file}
install -D -d -m 0755 %{buildroot}%{_datadir}/shim/
install -m 0644 %{shim_file} %{buildroot}%{_datadir}/shim/
install -m 0644 %{shim_hash_file} %{buildroot}%{_datadir}/shim/
install -m 0644 %{fallback_file} %{buildroot}%{_datadir}/shim/
install -m 0644 %{mokmgr_file} %{buildroot}%{_datadir}/shim/

# The files from /boot/efi/EFI/rosa/ should be properly signed.
# Package "shim" should take care of that, rather than "shim-unsigned".
# XXX for now shipping only unsigned shim
# TODO: ship signed shim
install -D -d -m 0755 %{buildroot}/boot/efi/EFI/%{efidir}
install -m 0644 %{shim_file} %{buildroot}/boot/efi/EFI/%{efidir}/%{shim_boot_filename}
install -m 0644 %{mokmgr_file} %{buildroot}/boot/efi/EFI/%{efidir}/

# TODO: what to do with these files?!
%if 0
# now install our .debug files...
install -D -d -m 0755 %{buildroot}/usr/lib/debug/%{_datadir}/shim/
install -m 0644 %{shim_file}.debug %{buildroot}/usr/lib/debug/%{_datadir}/shim/%{shim_file}.debug
install -m 0644 %{fallback_file}.debug %{buildroot}/usr/lib/debug/%{_datadir}/shim/%{fallback_file}.debug
install -m 0644 %{mokmgr_file}.debug %{buildroot}/usr/lib/debug/%{_datadir}/shim/%{mokmgr_file}.debug
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17202 |21mr|shorewall-5.2.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define url_ver %(echo %{version}|cut -d. -f1,2)
%define version_main %{version}
%define version_lite %{version}
%define ipv6_ver %{version}
%define ipv6_lite_ver %{version}
%define sha1sums_ver %{version}
%define ftp_path https://shorewall.org/pub/shorewall/%{url_ver}/%{name}-%{version}

%define name6 %{name}6

Summary:	Iptables-based firewall for Linux systems
Name:		shorewall
Version:	5.2.8
Release:	2
License:	GPLv2+ and LGPLv2.1+
Group:		System/Servers
URL:		http://www.shorewall.net/
Source0:	%{ftp_path}/%{name}-%{version}.tar.bz2
Source1:	%{ftp_path}/%{name}-lite-%{version_lite}.tar.bz2
Source2:	%{ftp_path}/%{name}-docs-html-%{version}.tar.bz2
Source3:	%{ftp_path}/%{name6}-%{ipv6_ver}.tar.bz2
Source4:	%{ftp_path}/%{name6}-lite-%{ipv6_lite_ver}.tar.bz2
Source5:	%{ftp_path}/%{sha1sums_ver}.sha1sums
Source6:	%{ftp_path}/%{name}-core-%{version}.tar.bz2
Source100:      shorewall.rpmlintrc
Patch4:		%{name}-4.4.23-allow-netmask-0.patch
Patch6:		shorewall-5.2-rosa_fix.patch
Patch9:		shorewall-5.2-working-config.patch
Patch10:	shorewall6-5.2-working-config.patch
Requires:	iptables
Requires:	iproute2
Requires:	shorewall-core = %{EVRD}
Requires(post):	rpm-helper
Requires(preun): rpm-helper
BuildConflicts:	apt-common
BuildArch:	noarch

%description
The Shoreline Firewall, more commonly known as "Shorewall", is a Netfilter
(iptables) based firewall that can be used on a dedicated firewall system,
a multi-function gateway/ router/server or on a standalone GNU/Linux system.

%package core
Summary:	Shorewall core libraries
Group:		System/Servers
Conflicts:	shorewall < 4.5-3
Requires(post):	rpm-helper
Requires(preun):	rpm-helper

%description core
An IPv6 enabled and capable Shoreline Firewall.


%package ipv6
Summary:	IPv6 capable Shorewall
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	iptables-ipv6
Requires:	iproute2
Requires:	shorewall-core
Requires(post):	rpm-helper
Requires(preun):	rpm-helper

%description ipv6
An IPv6 enabled and capable Shoreline Firewall.

%package ipv6-lite
Summary:	Lite version of ipv6 shorewall
Group:		System/Servers
Requires:	%{name}-ipv6 = %{EVRD}
Requires:	shorewall-core
Requires(post):	rpm-helper
Requires(preun):	rpm-helper

%description ipv6-lite
Shorewall IPv6 Lite is a companion product to Shorewall IPv6 that allows 
network administrators to centralize the configuration of Shorewall-based
firewalls.

%package lite
Summary:	Lite version of shorewall
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	shorewall-core
Requires(post):	rpm-helper
Requires(preun):	rpm-helper

%description lite
Shorewall Lite is a companion product to Shorewall that allows network
administrators to centralize the configuration of Shorewall-based firewalls.

%package doc
Summary:	Firewall scripts
Group:		System/Servers

%description doc 
The Shoreline Firewall, more commonly known as "Shorewall", is a Netfilter
(iptables) based firewall that can be used on a dedicated firewall system,
a multi-function gateway/ router/server or on a standalone GNU/Linux system.

This package contains the docs.

%prep
%setup -q -c -n %{name}-%{version}
%setup -q -T -D -a 1
%setup -q -T -D -a 2
%setup -q -T -D -a 3
%setup -q -T -D -a 4
%setup -q -T -D -a 6

pushd %{name}-%{version_main}
%patch4 -p1 -b .allow-netmask-0
popd

# use one patch for all (easiest fix)
for i in shorewall-%{version} shorewall6-%{version} \
    shorewall6-lite-%{version} shorewall-core-%{version} \
    shorewall-lite-%{version}; do
pushd $i
%patch6 -p1
popd
done

pushd shorewall-%{version}
%patch9 -p1
popd
pushd shorewall6-%{version}
%patch10 -p1
popd

# another fixup
for i in shorewall-%{version} shorewall6-%{version} \
    shorewall6-lite-%{version}  shorewall-lite-%{version}; do
pushd $i
cp default.debian.systemd sysconfig
popd
done

# remove hardcoded unitdir path, we set it via environment variable
sed -i '/SYSTEMD=/d' %{name}-%{version_main}/shorewallrc.redhat

%build
# (tpg) we do nothing here

%install
mkdir -p %{buildroot}%{_unitdir}

export PREFIX=%{buildroot}
export OWNER=`id -n -u`
export GROUP=`id -n -g`

export CONFDIR=%{_sysconfdir}/%{name}

pushd %{name}-core-%{version_main}
./configure.pl INITFILE= SERVICEDIR=%{_unitdir} SBINDIR=%{_sbindir} LIBEXEC=%{_libexecdir} HOST=redhat
DESTDIR=%{buildroot} ./install.sh shorewallrc.redhat
popd

pushd %{name}-%{version_main}
# (blino) enable startup (new setting as of 2.1.3)
perl -pi -e 's/STARTUP_ENABLED=.*/STARTUP_ENABLED=Yes/' configfiles/%{name}.conf

# Keep synced with net.ipv4.ip_forward var in /etc/sysctl.conf
perl -pi -e 's/IP_FORWARDING=.*/IP_FORWARDING=Keep/' configfiles/%{name}.conf

# blank Internal option	 
perl -pi -e 's/TC_ENABLED=Internal/TC_ENABLED=/' configfiles/%{name}.conf

# (tpg) do the optimizations
perl -pi -e 's/OPTIMIZE=.*/OPTIMIZE=1/' configfiles/%{name}.conf

# (tpg) set config path
perl -pi -e 's#CONFIG_PATH=.*#CONFIG_PATH=configfiles/%{/g_sysconfdir}/%{name}#' configpath

# (lmenut) kernel modules are compressed by default (mga #1147)
perl -pi -e 's#MODULE_SUFFIX=.*#MODULE_SUFFIX="ko ko.xz ko.gz"#' configfiles/%{name}.conf

# (alien) have accounting by default in the mangle table
perl -pi -e 's#ACCOUNTING_TABLE=.*#ACCOUNTING_TABLE=mangle#' configfiles/%{name}.conf

perl -pi -e 's#SERVICEDIR=.*#SERVICEDIR=%{_unitdir}#' shorewallrc.redhat

# fix path in service file
sed -i 's|=/sbin|=%{_sbindir}|' shorewall.service

./configure.pl INITFILE= SERVICEDIR=%{_unitdir} SBINDIR=%{_sbindir} LIBEXEC=%{_libexecdir} HOST=redhat

# let's do the install
DESTDIR=%{buildroot} ./install.sh shorewallrc.redhat
popd

#(tpg) IPv6
pushd %{name6}-%{ipv6_ver}
# (blino) enable startup (new setting as of 2.1.3)
perl -pi -e 's/STARTUP_ENABLED=.*/STARTUP_ENABLED=Yes/' configfiles/%{name6}.conf
# Keep synced with net.ipv4.ip_forward var in /etc/sysctl.conf
perl -pi -e 's/IP_FORWARDING=.*/IP_FORWARDING=Keep/' configfiles/%{name6}.conf
# (lmenut) kernel modules are compressed by default (mga #1147)
perl -pi -e 's#MODULE_SUFFIX=.*#MODULE_SUFFIX="ko ko.xz ko.gz"#' configfiles/%{name6}.conf
./configure.pl INITFILE= SERVICEDIR=%{_unitdir} SBINDIR=%{_sbindir} LIBEXEC=%{_libexecdir} HOST=redhat
DESTDIR=%{buildroot} ./install.sh
popd

pushd %{name6}-lite-%{ipv6_lite_ver}
./configure.pl INITFILE= SERVICEDIR=%{_unitdir} SBINDIR=%{_sbindir} LIBEXEC=%{_libexecdir} HOST=redhat
DESTDIR=%{buildroot} ./install.sh
popd

pushd %{name}-lite-%{version_lite}
./configure.pl INITFILE= SERVICEDIR=%{_unitdir} SBINDIR=%{_sbindir} LIBEXEC=%{_libexecdir} HOST=redhat
DESTDIR=%{buildroot} ./install.sh
popd

# Suppress automatic replacement of "echo" by "gprintf" in the shorewall
# startup script by RPM. This automatic replacement is broken.
export DONT_GPRINTIFY=1

#(tpg) looks like these files are needed
touch %{buildroot}/%{_var}/lib/shorewall/{chains,nat,proxyarp,restarted,zones,restore-base,restore-tail,state,.modules,.modulesdir,.iptables-restore-input,.start,.restart,.restore}
touch %{buildroot}/%{_var}/lib/shorewall-lite/firewall

#(tpg) ipv6
touch %{buildroot}/%{_var}/lib/%{name6}/{chains,restarted,zones,restore-base,restore-tail,state,.modules,.modulesdir,.iptables-restore-input,.start,.restart,.restore}
touch %{buildroot}/%{_var}/lib/%{name6}-lite/firewall

#remove unused files because of %exclude misbehaviour
rm -f %{buildroot}%{_datadir}/%{name6}/configfiles/*
rm -f %{buildroot}%{_datadir}/shorewall/configfiles/*

# Remove sysv init file
rm -f %{buildroot}%{_initrddir}/%{name}

# Don't install systemd service in /lib/systemd
# rm -f %{buildroot}/lib/systemd/system/shorewall.service

# (tmb) allow outgoing traffic on any interface by default (mga#10947)
# (cg) drop the ?FORMAT 2 line as it disagrees with 'detect' (mga#11928)
perl -n -i -e 'print unless m!^?FORMAT 2$!' %{buildroot}%{_sysconfdir}/%{name}/interfaces
echo "net	+	detect" >> %{buildroot}%{_sysconfdir}/%{name}/interfaces
perl -n -i -e 'print unless m!^?FORMAT 2$!' %{buildroot}%{_sysconfdir}/%{name6}/interfaces
echo "net	+	detect" >> %{buildroot}%{_sysconfdir}/%{name6}/interfaces

# Fix install path to match systemd units
mv %{buildroot}/sbin/%{name} %{buildroot}%{_sbindir}/%{name}

%post
if [ "$1" -gt 1 ] ; then
  perl -pi -e 's#MODULE_SUFFIX=ko$#MODULE_SUFFIX="ko ko.xz ko.gz"#' %{_sysconfdir}/%{name}/%{name}.conf
  perl -pi -e 's#MODULE_SUFFIX=\"ko ko.gz\"$#MODULE_SUFFIX="ko ko.xz ko.gz"#' %{_sysconfdir}/%{name}/%{name}.conf
fi
%_post_service shorewall

%create_ghostfile %{_var}/lib/%{name}/chains root root 644
%create_ghostfile %{_var}/lib/%{name}/nat root root 644
%create_ghostfile %{_var}/lib/%{name}/proxyarp root root 644
%create_ghostfile %{_var}/lib/%{name}/restarted root root 644
%create_ghostfile %{_var}/lib/%{name}/zones root root 644
%create_ghostfile %{_var}/lib/%{name}/restore-base root root 644
%create_ghostfile %{_var}/lib/%{name}/restore-tail root root 644
%create_ghostfile %{_var}/lib/%{name}/state root root 644
%create_ghostfile %{_var}/lib/%{name}/.modules root root 644
%create_ghostfile %{_var}/lib/%{name}/.modulesdir root root 644
%create_ghostfile %{_var}/lib/%{name}/.iptables-restore-input root root 644
%create_ghostfile %{_var}/lib/%{name}/.restart root root 700
%create_ghostfile %{_var}/lib/%{name}/.restore root root 700
%create_ghostfile %{_var}/lib/%{name}/.start root root 700

%preun
%_preun_service %{name}
if [ $1 = 0 ] ; then
  rm -f %{_sysconfdir}/%{name}/startup_disabled
  rm -f %{_var}/lib/%{name}/*
fi

%post lite
%_post_service %{name}-lite
%create_ghostfile %{_var}/lib/%{name}-lite/firewall root root 644

%preun lite
%_preun_service %{name}-lite

%post ipv6
if [ "$1" -gt 1 ] ; then
  perl -pi -e 's#MODULE_SUFFIX=ko$#MODULE_SUFFIX="ko ko.xz ko.gz"#' %{_sysconfdir}/%{name6}/%{name6}.conf
  perl -pi -e 's#MODULE_SUFFIX=\"ko ko.gz\"$#MODULE_SUFFIX="ko ko.xz ko.gz"#' %{_sysconfdir}/%{name6}/%{name6}.conf
fi
%_post_service %{name6}

%create_ghostfile %{_var}/lib/%{name6}/chains root root 644
%create_ghostfile %{_var}/lib/%{name6}/restarted root root 644
%create_ghostfile %{_var}/lib/%{name6}/zones root root 644
%create_ghostfile %{_var}/lib/%{name6}/restore-base root root 644
%create_ghostfile %{_var}/lib/%{name6}/restore-tail root root 644
%create_ghostfile %{_var}/lib/%{name6}/state root root 644
%create_ghostfile %{_var}/lib/%{name6}/.modules root root 644
%create_ghostfile %{_var}/lib/%{name6}/.modulesdir root root 644
%create_ghostfile %{_var}/lib/%{name6}/.iptables-restore-input root root 644
%create_ghostfile %{_var}/lib/%{name6}/.restart root root 700
%create_ghostfile %{_var}/lib/%{name6}/.restore root root 700
%create_ghostfile %{_var}/lib/%{name6}/.start root root 700

%preun ipv6
%_preun_service %{name6}
if [ $1 = 0 ] ; then
  rm -f %{_sysconfdir}/%{name6}/startup_disabled
  rm -f %{_var}/lib/%{name6}/*
fi

%post ipv6-lite
%_post_service %{name6}-lite
%create_ghostfile %{_var}/lib/%{name6}-lite/firewall root root 644

%preun ipv6-lite
%_preun_service %{name6}-lite

%files
%doc %{name}-%{version_main}/{changelog.txt,releasenotes.txt,Samples}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%dir %{_datadir}/%{name}
%dir %attr(755,root,root) %{_var}/lib/%{name}
%ghost %{_var}/lib/%{name}/*
%ghost %{_var}/lib/%{name}/.??*
%config %{_sysconfdir}/logrotate.d/%{name}
%attr(0600,root,root) %config(noreplace) %{_sysconfdir}/%{name}
%attr(755,root,root) %{_sbindir}/%{name}
%{_datadir}/%{name}/action*
%{_datadir}/%{name}/configpath
%{_datadir}/%{name}/helpers
%{_datadir}/%{name}/lib.cli-std
%{_datadir}/%{name}/lib.core
%{_datadir}/%{name}/lib.runtime
%{_datadir}/%{name}/macro.*
%{_datadir}/%{name}/version
/usr/libexec/%{name}/getparams
/usr/libexec/%{name}/wait4ifup
%{_mandir}/man5/%{name}-accounting.5.*
%{_mandir}/man5/%{name}-actions.5.*
%{_mandir}/man5/%{name}-addresses.5.xz
%{_mandir}/man5/%{name}-ecn.5.*
%{_mandir}/man5/%{name}-exclusion.5.*
%{_mandir}/man5/%{name}-files.5.xz
%{_mandir}/man5/%{name}-hosts.5.*
%{_mandir}/man5/%{name}-interfaces.5.*
%{_mandir}/man5/%{name}-ipsets.5.*
%{_mandir}/man5/%{name}-logging.5.xz
%{_mandir}/man5/%{name}-maclist.5.*
%{_mandir}/man5/%{name}-mangle.5.*
%{_mandir}/man5/%{name}-modules.5.*
%{_mandir}/man5/%{name}-nat.5.*
%{_mandir}/man5/%{name}-names.5.xz
%{_mandir}/man5/%{name}-nesting.5.*
%{_mandir}/man5/%{name}-netmap.5.*
%{_mandir}/man5/%{name}-params.5.*
%{_mandir}/man5/%{name}-policy.5.*
%{_mandir}/man5/%{name}-providers.5.*
%{_mandir}/man5/%{name}-proxyarp.5.*
%{_mandir}/man5/%{name}-proxyndp.5.xz
%{_mandir}/man5/%{name}-routes.5.*
%{_mandir}/man5/%{name}-rules.5.*
%{_mandir}/man5/%{name}-secmarks.5.*
%{_mandir}/man5/%{name}-snat.5.xz
%{_mandir}/man5/%{name}-tcclasses.5.*
%{_mandir}/man5/%{name}-tcinterfaces.5.*
%{_mandir}/man5/%{name}-tcpri.5.*
%{_mandir}/man5/%{name}-tcdevices.5.*
%{_mandir}/man5/%{name}-tcfilters.5.*
%{_mandir}/man5/%{name}-tunnels.5.*
%{_mandir}/man5/%{name}-vardir.5.*
%{_mandir}/man5/%{name}-zones.5.*
%{_mandir}/man5/%{name}.conf.5.*
%{_mandir}/man8/%{name}.8.*
%{_mandir}/man8/%{name}-init.8.*
%{_mandir}/man5/%{name}-blrules.5.*
%{_mandir}/man5/%{name}-conntrack.5.*
%{_mandir}/man5/%{name}-rtrules.5.*
%{_mandir}/man5/%{name}-stoppedrules.5.*
%{_mandir}/man5/%{name}-arprules.5*
%{_datadir}/perl5/vendor_perl/Shorewall/*.pm
/usr/libexec/shorewall/compiler.pl
%{_datadir}/shorewall/prog.footer
%{_unitdir}/shorewall.service

%files ipv6
%doc %{name6}-%{ipv6_ver}/{changelog.txt,releasenotes.txt,tunnel,ipsecvpn,Samples6}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name6}
%dir %{_sysconfdir}/%{name6}
%dir %{_datadir}/%{name6}
%dir %attr(755,root,root) %{_var}/lib/%{name6}
%ghost %{_var}/lib/%{name6}/*
%ghost %{_var}/lib/%{name6}/.??*
%config(noreplace) %{_sysconfdir}/%{name6}/*
%config %{_sysconfdir}/logrotate.d/%{name6}
%attr(755,root,root) %{_sbindir}/%{name6}
%{_datadir}/%{name6}/action*
%{_datadir}/%{name6}/configpath
%{_datadir}/%{name6}/functions
%{_datadir}/%{name6}/helpers
%{_datadir}/%{name6}/lib.*
%{_datadir}/%{name6}/macro.*
%{_datadir}/%{name6}/version
%{_mandir}/man5/%{name6}-accounting.5.*
%{_mandir}/man5/%{name6}-actions.5.*
%{_mandir}/man5/%{name6}-blacklist.5.*
%{_mandir}/man5/%{name6}-exclusion.5.*
%{_mandir}/man5/%{name6}-hosts.5.*
%{_mandir}/man5/%{name6}-interfaces.5.*
%{_mandir}/man5/%{name6}-ipsets.5.*
%{_mandir}/man5/%{name6}-maclist.5.*
%{_mandir}/man5/%{name6}-mangle.5.*
%{_mandir}/man5/%{name6}-modules.5.*
%{_mandir}/man5/%{name6}-nesting.5.*
%{_mandir}/man5/%{name6}-nat.5.xz
%{_mandir}/man5/%{name6}-params.5.*
%{_mandir}/man5/%{name6}-policy.5.*
%{_mandir}/man5/%{name6}-providers.5.*
%{_mandir}/man5/%{name6}-proxyndp.5.*
%{_mandir}/man5/%{name6}-routes.5.*
%{_mandir}/man5/%{name6}-routestopped.5.*
%{_mandir}/man5/%{name6}-rules.5.*
%{_mandir}/man5/%{name6}-secmarks.5.*
%{_mandir}/man5/%{name6}-snat.5.xz
%{_mandir}/man5/%{name6}-tcclasses.5.*
%{_mandir}/man5/%{name6}-tcdevices.5.*
%{_mandir}/man5/%{name6}-tcfilters.5.*
%{_mandir}/man5/%{name6}-tcinterfaces.5.*
%{_mandir}/man5/%{name6}-tcpri.5.*
%{_mandir}/man5/%{name6}-tcrules.5.*
%{_mandir}/man5/%{name6}-tos.5.*
%{_mandir}/man5/%{name6}-tunnels.5.*
%{_mandir}/man5/%{name6}-vardir.5.*
%{_mandir}/man5/%{name6}-zones.5.*
%{_mandir}/man5/%{name6}.conf.5.*
%{_mandir}/man8/%{name6}.8.*
%{_mandir}/man5/%{name6}-blrules.5.*
%{_mandir}/man5/%{name6}-conntrack.5.*
%{_mandir}/man5/%{name6}-rtrules.5.*
%{_mandir}/man5/%{name6}-stoppedrules.5.*
%{_mandir}/man5/%{name6}-netmap.5.*
%{_mandir}/man5/%{name6}-masq.5*
%{_unitdir}/shorewall6.service

%files lite
%doc %{name}-lite-%{version_lite}/*.txt
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}-lite
%dir %{_datadir}/%{name}-lite
%dir %attr(755,root,root) %{_var}/lib/%{name}-lite
%ghost %{_var}/lib/%{name}-lite/*
%config(noreplace) %{_sysconfdir}/%{name}-lite/*
%config %{_sysconfdir}/logrotate.d/%{name}-lite
%attr(755,root,root) %{_sbindir}/%{name}-lite
%{_datadir}/%{name}-lite/configpath
%{_datadir}/%{name}-lite/functions
%{_datadir}/%{name}-lite/helpers
%{_datadir}/%{name}-lite/lib.*
%{_datadir}/%{name}-lite/version
%{_mandir}/man5/%{name}-lite*
%{_mandir}/man8/%{name}-lite*
/usr/libexec/%{name}-lite/shorecap
#%{_libexecdir}/%{name}-lite/wait4ifup
%{_unitdir}/shorewall-lite.service

%files ipv6-lite
%doc %{name6}-lite-%{ipv6_lite_ver}/*.txt
%config(noreplace) %{_sysconfdir}/sysconfig/%{name6}-lite
%dir %{_datadir}/%{name6}-lite
%dir %attr(755,root,root) %{_var}/lib/%{name6}-lite
%ghost %{_var}/lib/%{name6}-lite/*
%config(noreplace) %{_sysconfdir}/%{name6}-lite/*
%config %{_sysconfdir}/logrotate.d/%{name6}-lite
%attr(755,root,root) %{_sbindir}/%{name6}-lite
%{_datadir}/%{name6}-lite/configpath
%{_datadir}/%{name6}-lite/functions
%{_datadir}/%{name6}-lite/helpers
%{_datadir}/%{name6}-lite/lib.*
/usr/libexec/%{name6}-lite/shorecap
%{_datadir}/%{name6}-lite/version
#%{_datadir}/%{name6}-lite/wait4ifup
%{_mandir}/man5/%{name6}-lite*
%{_mandir}/man8/%{name6}-lite*
%{_unitdir}/shorewall6-lite.service

%files doc
%doc %{name}-docs-html-%{version}/*

%files core
%doc shorewall-core-%{version}/{COPYING,changelog.txt,releasenotes.txt}
%dir %{_datadir}/shorewall/
%{_datadir}/shorewall/coreversion
%{_datadir}/shorewall/functions
%{_datadir}/shorewall/lib.base
%{_datadir}/shorewall/lib.cli
%{_datadir}/shorewall/lib.common
%{_datadir}/shorewall/shorewallrc
#%dir %{_libexecdir}/shorewall
#%{_libexecdir}/shorewall/wait4ifup

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17203 |21mr|shotcut-22.01.30-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free, open source, cross-platform video editor
Name:		shotcut
Version:	22.01.30
Release:	6
License:	GPLv3+
Group:		Video
Url:		https://www.shotcut.org
Source0:	https://github.com/mltframework/shotcut/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		shotcut-22.01.30-disable-upgrade-check.patch
BuildRequires:	ffmpeg-devel
BuildRequires:	ladspa-devel
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(dav1d)
BuildRequires:	pkgconfig(frei0r)
BuildRequires:	pkgconfig(mlt++-7)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.15.2
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5WebSockets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(rubberband)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(x264)
BuildRequires:	pkgconfig(x265)
BuildRequires:	pkgconfig(zimg)
# Mandatory req.
# Apparently dependencies are dlopen()'ed
Requires:	ffmpeg
Requires:	frei0r-plugins
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-plugins-ugly
Requires:	ladspa
Requires:	lame
Requires:	mlt-cli
Requires:	mlt-glaxnimate
Requires:	mlt-multimedia
Requires:	mlt-qt
Requires:	qt5-qtquickcontrols-qml
Requires:	rubberband

%description
Free, open source, cross-platform video editor.

%files
%doc COPYING README.md
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/org.%{name}.Shotcut.desktop
%{_datadir}/metainfo/org.%{name}.Shotcut.metainfo.xml
%{_datadir}/mime/packages/org.%{name}.Shotcut.xml
%{_iconsdir}/hicolor/*/apps/org.%{name}.Shotcut.png
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

# Postmortem debugging tools for MinGW.
rm -rf drmingw

lrelease-qt5 translations/*.ts


%build
%qmake_qt5 PREFIX=%{_prefix} SHOTCUT_VERSION="%{version}-%{release}"
%make


%install
%makeinstall_qt

# Fix perms
chmod +x %{buildroot}%{_datadir}/%{name}/qml/export-edl/rebuild.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17204 |21mr|showfont-1.0.5-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: showfont
Version: 1.0.5
Release: 5
Summary: Font dumper for X font server
Group: Development/X11
URL: http://xorg.freedesktop.org
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT
BuildRequires: libfs-devel >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

Patch1: 0001-Update-to-match-mandriva-default-fontserver-config.patch

%description
Showfont  displays  data  about  a font that matches the given pattern.
The information shown includes font information, font properties, character
metrics, and character bitmaps.

%prep
%setup -q -n %{name}-%{version}
%patch1 -p1

%build
%configure	\
		--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/showfont
%{_mandir}/man1/showfont.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17205 |21mr|shredder-kernel-0.2-0.faa8b.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit faa8b051daa489729058d663b53e1991aa0439f3
%define short_commit %(echo %{commit} | head -c 5)

Name: shredder-kernel
Summary: Kernel module and userspace utility to wipe files
Group: System/Kernel and hardware
License: GPLv3+
Version: 0.2
Release: 0.%{short_commit}.1
Url: https://abf.io/soft/shredder-kernel
Source0: https://abf.io/soft/shredder-kernel/archive/shredder-kernel-%{commit}.tar.gz

BuildRequires: kernel-headers

%description
This Linux kernel module catches deleting files and calls a userspace helper
which wipes disk space to ensure that the deleted file cannot be easily recovered.
#-------------------------------------------------------------------------------------

%package userspace
Summary: Userspace utility to shred files (called by kernel module)
Group: System/Kernel and hardware
Provides: rosa-shredder-user = %{EVRD}

%description userspace
Userspace utility to shred files (called by kernel module)

%files userspace
%{_sbindir}/rosa-shredder-user
#-------------------------------------------------------------------------------------

%package -n kernel-source-shredder-kernel
Summary: Userspace utility toi shred files (called by kernel module)
Group: System/Kernel and hardware

%description -n kernel-source-shredder-kernel
Source code of the kernel module which catches deleting files and
calls a userspace helper which wipes disk space to ensure that the
deleted file cannot be easily recovered.

%files -n kernel-source-shredder-kernel
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/shredder-kernel.c
%{_usr}/src/%{name}-%{version}-%{release}/shredder-kernel.h
%{_usr}/src/%{name}-%{version}-%{release}/Makefile

# A DKMS subpackage may also be provided if needed,
# for now a binary kernel mosule is prebuild inside the kernel using kernmel-source
#-------------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{commit}

%build
cd systable_version/userspace
%make CFLAGS="%{optflags}"

%install
cd systable_version/userspace
mkdir -p %{buildroot}%{_sbindir}
install -m0755 rosa-shredder-user %{buildroot}%{_sbindir}/
#make clean
cd ..
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -rv kernelspace/* %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17206 |21mr|shrinkwrap-1.2.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}
Name:          shrinkwrap
Version:       1.2.3
Release:       8
Summary:       A simple mechanism to assemble Java archives
# Some file are without license headers
# reported @ https://issues.jboss.org/browse/SHRINKWRAP-501
License:       ASL 2.0
Url:           http://arquillian.org/modules/shrinkwrap-shrinkwrap/
Source0:       https://github.com/shrinkwrap/shrinkwrap/archive/%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.apiviz:apiviz)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Shrinkwrap provides a simple mechanism to assemble archives
like JARs, WARs, and EARs with a friendly, fluent API.

%package api-nio2
Summary:       ShrinkWrap NIO.2 API

%description api-nio2
ShrinkWrap NIO.2 API.

%package bom
Summary:       ShrinkWrap Bill of Materials

%description bom
Centralized dependencyManagement for the ShrinkWrap Project.

%package build-resources
Summary:       Shrinkwrap Build Resources

%description build-resources
Shrinkwrap Build Resources.

%package depchain
Summary:       ShrinkWrap Dependency Chain

%description depchain
Single-POM Definition to export the
ShrinkWrap artifacts in proper scope.

%package depchain-java7
Summary:       ShrinkWrap Dependency Chain for Java7 Environments

%description depchain-java7
Single-POM Definition to export the
ShrinkWrap artifacts in proper scope
for Java 7 Environments.

%package impl-base
Summary:       ShrinkWrap Implementation Base
# Public Domain:
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/InvalidHeaderException.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarArchive.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarBuffer.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarEntry.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarGzOutputStream.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarHeader.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarInputStream.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarOutputStream.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarOutputStreamImpl.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarProgressDisplay.java
# ./impl-base/src/main/java/org/jboss/shrinkwrap/impl/base/io/tar/TarTransFileTyper.java
License:       ASL 2.0 and Public Domain

%description impl-base
Common Base for Implementations of the ShrinkWrap Project.

%package impl-nio2
Summary:       ShrinkWrap NIO.2 Implementation

%description impl-nio2
ShrinkWrap NIO.2 Implementation.

%package parent
Summary:       ShrinkWrap Aggregator and Build Parent

%description parent
ShrinkWrap Aggregator POM.

%package spi
Summary:       ShrinkWrap SPI

%description spi
Generic Service Provider Contract of the ShrinkWrap Project.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_disable_module dist

# remove env.JAVA"x"_HOME
%pom_xpath_remove "pom:requireProperty"
# Option UseSplitVerifier support was removed in 8.0
# <argLine>-XX:-UseSplitVerifier</argLine>
%pom_xpath_remove "pom:configuration/pom:argLine" 
%pom_xpath_remove "pom:configuration/pom:jvm" api
%pom_xpath_remove "pom:configuration/pom:jvm" impl-base
%pom_xpath_remove "pom:profiles" impl-base 

%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r org.eclipse.m2e:lifecycle-mapping

# Convert from dos to unix line ending
sed -i.orig 's|\r||g' LICENSE
touch -r LICENSE.orig LICENSE
rm LICENSE.orig

%mvn_package :%{name}-api::tests: %{name}-api
%mvn_package :%{name}-impl-base::tests: %{name}-impl-base

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}-api
%license LICENSE

%files api-nio2 -f .mfiles-%{name}-api-nio2
%files impl-base -f .mfiles-%{name}-impl-base
%files impl-nio2 -f .mfiles-%{name}-impl-nio2
%files spi -f .mfiles-%{name}-spi

%files bom -f .mfiles-%{name}-bom
%license LICENSE

%files build-resources -f .mfiles-%{name}-build-resources
%license LICENSE

%files depchain -f .mfiles-%{name}-depchain
%license LICENSE

%files depchain-java7 -f .mfiles-%{name}-depchain-java7
%license LICENSE

%files parent -f .mfiles-%{name}-parent
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17207 |21mr|shrinkwrap-descriptors-2.0.0-0.23.alpha9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag -alpha-9
%global namedversion %{version}%{?namedreltag}

Name:          shrinkwrap-descriptors
Version:       2.0.0
Release:       0.23.alpha9
Summary:       ShrinkWrap sub-project for creating Archive Descriptors
# Some file are without license headers
# reported @ https://github.com/shrinkwrap/descriptors/issues/106
License:       ASL 2.0
Url:           http://arquillian.org/modules/descriptors-shrinkwrap/
Source0:       https://github.com/shrinkwrap/descriptors/archive/%{namedversion}.tar.gz
Group:          Development/Java
# Related to SHRINKDESC-137
Patch0:        shrinkwrap-descriptors-2.0.0-alpha-8-saxon9.4.patch

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: graphviz
BuildRequires: maven-local
BuildRequires: mvn(com.sun.codemodel:codemodel)
BuildRequires: mvn(com.sun.xml.dtd-parser:dtd-parser)
BuildRequires: mvn(com.thoughtworks.qdox:qdox)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.saxon:saxon)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-testutil)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
#BuildRequires: mvn(org.apache.maven.plugins:maven-checkstyle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-clean-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.apiviz:apiviz)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(xmlunit:xmlunit)

%description
ShrinkWrap sub-project for creating Archive Descriptors

This package contains the ShrinkWrap Descriptors API Base.
API Base for Client View of the ShrinkWrap Descriptors Project.

%package ant
Summary:       ShrinkWrap Descriptors Ant Extension

%description ant
Extension module for ShrinkWrap Descriptors Ant Tasks.

%package api-javaee
Summary:       ShrinkWrap Descriptors Generated Java EE API

%description api-javaee
Client View of the ShrinkWrap Descriptors Project.

%package api-javaee-prototype
Summary:       ShrinkWrap Descriptors Prototype Java EE API

%description api-javaee-prototype
Client View of the ShrinkWrap Descriptors Project.

%package api-jboss
Summary:      ShrinkWrap Descriptors Generated JBoss API

%description api-jboss
Client View of the JBoss related ShrinkWrap Descriptors Project.

%package api-misc
Summary:      ShrinkWrap Descriptors Generated Misc API

%description api-misc
Client View of the ShrinkWrap Descriptors Project.

%package bom
Summary:      ShrinkWrap Descriptors Bill of Materials

%description bom
Centralized dependency Management for the
ShrinkWrap Descriptors Project.

%package build-resources
Summary:      Shrinkwrap Descriptors Build Resources

%description build-resources
Shrinkwrap Descriptors Build Resources.

%package depchain
Summary:      ShrinkWrap Descriptors Dependency Chain

%description depchain
Single-POM Definition to export the ShrinkWrap Descriptors
artifacts in proper scope.

%package gen
Summary:       ShrinkWrap Descriptors Source Generator

%description gen
Generates various deployment descriptors via XSLT transformation.

%package impl-base
Summary:       ShrinkWrap Descriptors Implementation
# LGPLv2: ./impl-base/src/main/java/org/jboss/shrinkwrap/descriptor/impl/base/Strings.java
License:       ASL 2.0 and LGPLv2+

%description impl-base
Implementation of the ShrinkWrap Descriptors Project.

%package impl-javaee
Summary:       ShrinkWrap Descriptors Generated Java EE Implementation

%description impl-javaee
Generated Implementation of the ShrinkWrap Descriptors Project.

%package impl-javaee-prototype
Summary:       ShrinkWrap Descriptors Prototype Java EE Implementation

%description impl-javaee-prototype
Prototype Implementation of the ShrinkWrap Descriptors Project.

%package impl-jboss
Summary:       ShrinkWrap Descriptors Generated JBoss Implementation

%description impl-jboss
Generated JBoss Implementation of the ShrinkWrap Descriptors Project.

%package impl-misc
Summary:       ShrinkWrap Descriptors Generated Misc Implementation

%description impl-misc
Generated JBoss Implementation of the ShrinkWrap Descriptors Project.

%package metadata-parser
Summary:       ShrinkWrap Descriptors Metadata Parser

%description metadata-parser
XSD and DTD parser for the ShrinkWrap Descriptors.

%package metadata-parser-test
Summary:       ShrinkWrap Descriptors Metadata Parser Tests

%description metadata-parser-test
Hand-coded Tests for the generated descriptors via metadata plugin.

%package parent
Summary:       ShrinkWrap Descriptors Aggregator POM

%description parent
ShrinkWrap Descriptors Aggregator POM.

%package spi
Summary:       ShrinkWrap Descriptors SPI

%description spi
Service Provider Interface of the ShrinkWrap Descriptors Project.

%package test-util
Summary:       ShrinkWrap Descriptors Test Utilities

%description test-util
Commonly used custom assertions.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n descriptors-%{namedversion}
%patch0 -p1
rm -r gen/doc/*

%pom_remove_plugin -r :maven-checkstyle-plugin

# saxon-dom is built in saxon in Fedora
%pom_remove_dep :saxon-dom metadata-parser
# Unavailable test dep
%pom_remove_dep -r org.easytesting:fest-assert

# Do not build test module, which is only for tests
%pom_disable_module test

# java.lang.NoClassDefFoundError: org/apache/maven/execution/MavenExecutionResult
%pom_add_dep org.apache.maven:maven-core::test metadata-parser

# Remove classpath in MANIFEST files
%pom_xpath_set -r "pom:addClasspath" false ant metadata-parser

# testConfiguration(org.jboss.shrinkwrap.descriptor.metadata.mojo.MetadataParserMojoTest)  Time elapsed: 1.212 sec  <<< ERROR!
# org.codehaus.plexus.component.repository.exception.ComponentLookupException: 
#java.util.NoSuchElementException
#      role: org.apache.maven.repository.RepositorySystem
rm metadata-parser/src/test/java/org/jboss/shrinkwrap/descriptor/metadata/mojo/MetadataParserMojoTest.java


%mvn_package :%{name}-impl-base::tests: %{name}-impl-base

%build

export JAVA5_HOME=%{_jvmdir}/java
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}-api-base
%license LICENSE

%files ant -f .mfiles-%{name}-ant
%files api-javaee -f .mfiles-%{name}-api-javaee
%files api-javaee-prototype -f .mfiles-%{name}-api-javaee-prototype
%files api-jboss -f .mfiles-%{name}-api-jboss
%files api-misc -f .mfiles-%{name}-api-misc

%files bom -f .mfiles-%{name}-bom
%license LICENSE

%files build-resources -f .mfiles-%{name}-build-resources
%license LICENSE

%files depchain -f .mfiles-%{name}-depchain
%license LICENSE

%files gen -f .mfiles-%{name}-gen
%doc gen/readme.txt
%license LICENSE

%files impl-base -f .mfiles-%{name}-impl-base
%files impl-javaee -f .mfiles-%{name}-impl-javaee
%files impl-javaee-prototype -f .mfiles-%{name}-impl-javaee-prototype
%files impl-jboss -f .mfiles-%{name}-impl-jboss
%files impl-misc -f .mfiles-%{name}-impl-misc
%files metadata-parser -f .mfiles-%{name}-metadata-parser
%files metadata-parser-test -f .mfiles-%{name}-metadata-parser-test

%files parent -f .mfiles-%{name}-parent
%license LICENSE

%files spi -f .mfiles-%{name}-spi

%files test-util -f .mfiles-%{name}-test-util
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17208 |21mr|shrinkwrap-resolver-2.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          shrinkwrap-resolver
Version:       2.2.7
Release:       1
Summary:       Java API to obtain Maven artifacts
# Some file are without license headers
# reported @ https://issues.jboss.org/projects/SHRINKRES/issues/SHRINKRES-242
License:       ASL 2.0
URL:           http://arquillian.org/modules/resolver-shrinkwrap/
Source0:       https://github.com/shrinkwrap/resolver/archive/%{version}.tar.gz
Group:         Development/Java
Patch0:        shrinkwrap-resolver-2.2.2-maven-model3.4.patch
Patch1:        shrinkwrap-resolver-2.2.2-override.patch
Patch2:        0001-Fix-building-with-modern-org.eclipse.aether.patch

BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven:maven-aether-provider)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-model-builder)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-repository-metadata)
BuildRequires: mvn(org.apache.maven:maven-settings)
BuildRequires: mvn(org.apache.maven:maven-settings-builder)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-plugin)
BuildRequires: mvn(org.apache.maven.wagon:wagon-file)
BuildRequires: mvn(org.apache.maven.wagon:wagon-http-lightweight)
BuildRequires: mvn(org.apache.maven.wagon:wagon-provider-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires: mvn(org.codehaus.plexus:plexus-compiler-javac)
BuildRequires: mvn(org.codehaus.plexus:plexus-component-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-interpolation)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.eclipse.aether:aether:pom:)
BuildRequires: mvn(org.eclipse.aether:aether-api)
BuildRequires: mvn(org.eclipse.aether:aether-impl)
BuildRequires: mvn(org.eclipse.aether:aether-spi)
BuildRequires: mvn(org.eclipse.aether:aether-util)
BuildRequires: mvn(org.eclipse.aether:aether-connector-basic)
BuildRequires: mvn(org.eclipse.aether:aether-transport-wagon)
BuildRequires: mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires: mvn(org.gradle:gradle-tooling-api)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-api)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.sonatype.plexus:plexus-sec-dispatcher)
BuildRequires: xmvn

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The ShrinkWrap Resolvers project provides a Java API to obtain artifacts
from a repository system. This is handy to include third party libraries
available in any Maven repository in your test archive. ShrinkWrap Resolvers
additionally allows you to reuse all the configuration you've already specified
in Maven build file, making packaging of an application archive much easier job.

%package api
Summary:          ShrinkWrap Resolver API

%description api
API to Resolve Dependencies from a Generic Backend.

%package api-gradle-embedded-archive
Summary:          ShrinkWrap Resolver Embedded Gradle Archive API

%description api-gradle-embedded-archive
API for Resolving Dependencies from a Gradle Backend to
a ShrinkWrap Archive and Gradle Importer.

%package api-maven
Summary:          ShrinkWrap Resolver Maven API

%description api-maven
API to Resolve Dependencies from a Maven Backend.

%package api-maven-archive
Summary:          ShrinkWrap Resolver Maven Archive API

%description api-maven-archive
API for Resolving Dependencies from a Maven Backend to
a ShrinkWrap Archive and Maven Importer.

%package bom
Summary:          ShrinkWrap Resolver Bill of Materials

%description bom
Centralized dependencyManagement for the
ShrinkWrap Resolver Project.

%package build-resources
Summary:          Shrinkwrap Resolver Build Resources

%description build-resources
Shrinkwrap Resolver Build Resources.

%package depchain
Summary:          ShrinkWrap Resolver Dependency Chain

%description depchain
Single-POM Definition to export the
ShrinkWrap Resolver artifacts
in proper scope.

%package gradle-depchain
Summary:          ShrinkWrap Resolver Gradle Dependency Chain

%description gradle-depchain
Single-POM Definition to export the
ShrinkWrap Resolver Gradle artifacts
in proper scope.

%package impl-gradle-embedded-archive
Summary:          ShrinkWrap Resolver Embedded Gradle Archive Implementation

%description impl-gradle-embedded-archive
Implementation for Resolving Dependencies
from a Gradle Backend to a ShrinkWrap Archive.

%package impl-maven
Summary:          ShrinkWrap Resolver Maven Implementation

%description impl-maven
Implementation for Resolving Dependencies from a Maven Backend.

%package impl-maven-archive
Summary:          ShrinkWrap Resolver Maven Archive Implementation

%description impl-maven-archive
Implementation for Resolving Dependencies
from a Maven Backend to a ShrinkWrap Archive.

%package maven-plugin
Summary:          ShrinkWrap Resolver Maven Plugin

%description maven-plugin
ShrinkWrap Resolver Maven Plugin.

%package parent
Summary:          ShrinkWrap Resolver Aggregator

%description parent
ShrinkWrap Resolver Aggregator.

%package spi
Summary:          ShrinkWrap Resolver SPI

%description spi
Service Provider Interface to Resolve Dependencies from a Generic Backend.

%package spi-maven
Summary:          ShrinkWrap Resolver Maven SPI

%description spi-maven
Service Provider Interface to Resolve Dependencies from a Maven Backend.

%package spi-maven-archive
Summary:          ShrinkWrap Resolver Maven Archive SPI

%description spi-maven-archive
Service Provider Interface for Resolving Dependencies
from a Maven Backend to a ShrinkWrap Archive and
Importing Maven Project.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n resolver-%{version}
# Cleanup
find -name '*.jar' -print -delete
rm -rf */target

%autopatch -p1

# Build problems, use old configurations
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin ":maven-enforcer-plugin"
%pom_remove_plugin :maven-invoker-plugin maven-plugin

# No test deps org.mortbay.jetty:jetty:6.1.16, org.easytesting:fest-assert:1.4
%pom_remove_dep -r org.easytesting:fest-assert
%pom_xpath_remove "pom:dependency[pom:scope = 'test']" impl-maven
rm -r impl-maven/src/test/java impl-gradle-embedded-archive/src/test/java

# Could not transfer artifact org.slf4j:slf4j-api:pom:1.6.1,
# org.jboss.spec:jboss-javaee-web-6.0:pom:3.0.2.Final from/to central (https://repo.maven.apache.org/maven2)
rm -r impl-maven-archive/src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/archive/importer/ConfiguredMavenImporterTestCase.java \
 impl-maven-archive/src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/archive/importer/JarMavenImporterTestCase.java \
 impl-maven-archive/src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/archive/importer/ManifestTestCase.java \
 impl-maven-archive/src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/archive/importer/WarMavenImporterTestCase.java \
 impl-maven-archive/src/test/java/org/jboss/shrinkwrap/resolver/impl/maven/archive/usecases/ShrinkWrapMavenTestCase.java

%build

%mvn_build -s

%install
%mvn_install

%files api -f .mfiles-%{name}-api
%doc README.asciidoc
%license LICENSE

%files api-gradle-embedded-archive -f .mfiles-%{name}-api-gradle-embedded-archive
%files api-maven -f .mfiles-%{name}-api-maven
%files api-maven-archive -f .mfiles-%{name}-api-maven-archive

%files bom -f .mfiles-%{name}-bom
%license LICENSE

%files build-resources -f .mfiles-%{name}-build-resources
%license LICENSE

%files depchain -f .mfiles-%{name}-depchain
%license LICENSE

%files gradle-depchain -f .mfiles-%{name}-gradle-depchain
%license LICENSE

%files impl-gradle-embedded-archive -f .mfiles-%{name}-impl-gradle-embedded-archive
%files impl-maven -f .mfiles-%{name}-impl-maven
%files impl-maven-archive -f .mfiles-%{name}-impl-maven-archive
%files maven-plugin -f .mfiles-%{name}-maven-plugin

%files parent -f .mfiles-%{name}-parent
%license LICENSE

%files spi -f .mfiles-%{name}-spi
%files spi-maven -f .mfiles-%{name}-spi-maven
%files spi-maven-archive -f .mfiles-%{name}-spi-maven-archive

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17209 |21mr|sidplay-libs-2.1.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define spmajor 2
%define libname    %mklibname sidplay %{spmajor}
%define sumajor 0
%define libnamesu %mklibname sidutils %{sumajor}
%define develnamesu %mklibname -d sidutils
%define staticdevelnamesu %mklibname -s -d sidutils
%define builders %{_libdir}/sidplay/builders

Summary:	A Commodore 64 music player and SID chip emulator library
Name:		sidplay-libs
Version:	2.1.1
Release:	20
License:	GPLv2+
Group:		System/Libraries
URL:		http://sidplay2.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/sidplay2/%{name}-%version.tar.bz2
Patch0:		sidplay-libs-2.1.1-gcc4.3.patch
#gw from xsidplay 2.0.3
Patch1:		cia1.patch
Patch2:		sidplay-libs-2.1.1-fix-narrowing-error.patch 
BuildRequires:	automake
BuildRequires:	chrpath

%description
This is a cycle-based version of a C64 music playing library
developed by Simon White. This library provides no internal
SID emulation. Instead a means to drive any external SID hardware or
emulation has been provided using the SID Builder Classes.

A ReSID Builder Class using a modified version of ReSID 0.13
is included in this package. Alternative/updated classes can be
obtained from the SIDPlay2 homepage.

#-------------------------------------------------------------------------
%package -n %{libname}
Summary:	A Commodore 64 music player and SID chip emulator library
Group:		System/Libraries

%description -n %{libname}
This is a cycle-based version of a C64 music playing library
developed by Simon White. This library provides no internal
SID emulation. Instead a means to drive any external SID hardware or
emulation has been provided using the SID Builder Classes.

A ReSID Builder Class using a modified version of ReSID 0.13
is included in this package. Alternative/updated classes can be
obtained from the SIDPlay2 homepage.

%files -n %libname
%doc libsidplay/AUTHORS libsidplay/ChangeLog libsidplay/README libsidplay/TODO
%{_libdir}/libsidplay*.so.*

#-------------------------------------------------------------------------

#gw don't use libsidplay-devel here, that's libsidplay1
%package -n %{libname}-devel
Summary:	Development headers and libraries for %{libname}
Group:		Development/C++
Requires:	%{libname} = %{version}
Provides:	libsidplay-devel = %{version}-%{release}
Provides:	sidplay2-devel = %{version}-%{release}

%description -n %{libname}-devel
This package includes the header and library files necessary
for developing applications to use %{libname}.

%files -n %libname-devel
%dir %{_libdir}/sidplay/
%dir %{_libdir}/sidplay/builders
%dir %{_includedir}/sidplay/builders/
%{_includedir}/sidplay/*.h
%{_includedir}/sidplay/builders/*.h

%{_libdir}/libsidplay*.so
%{_libdir}/libsidplay*.a
%{_libdir}/pkgconfig/libsidplay*.pc
%{builders}/*.a

#-------------------------------------------------------------------------

%package -n %{libnamesu}
Summary:	General utility library for use in sidplayers
Requires:	%{libname} = %{version}-%{release}
Group:		System/Libraries

%description -n %{libnamesu}
This library provides general utilities that are not considered core
to the C64 emulation.  Utilities include decoding and obtaining tune
lengths from the songlength database, INI file format parser and SID
filter files (types 1 and 2).

%files -n %{libnamesu}
%doc libsidutils/AUTHORS libsidutils/ChangeLog libsidutils/README libsidutils/TODO
%{_libdir}/libsidutils*.so.*

#-------------------------------------------------------------------------

%package -n %{develnamesu}
Summary:	Development headers and libraries for libsidutils
Group:		Development/C++
Requires:	%{libnamesu} = %{version}-%{release}
Requires:	%{libname}-devel = %{version}-%{release}
Provides:	libsidutils-devel = %{version}-%{release}

%description -n %{develnamesu}
This package includes the header and library files necessary
for developing applications to use %{libnamesu}.

%files -n %{develnamesu}
%dir %{_includedir}/sidplay/utils/
%{_includedir}/sidplay/utils/*
%{_libdir}/libsidutils*.so
%{_libdir}/pkgconfig/libsidutils*pc

#-------------------------------------------------------------------------

%package -n %{staticdevelnamesu}
Summary:	Static library for %{libnamesu}
Group:		Development/C++
Requires:	%{develnamesu} = %{version}
Provides:	libsidutils-static-devel = %{version}-%{release}

%description -n %{staticdevelnamesu}
This package includes the static library file necessary
for developing applications to use %{libnamesu}.

%files -n %{staticdevelnamesu}
%{_libdir}/libsidutils*.a

#-------------------------------------------------------------------------

%prep
%autosetup -p1

for i in . * */*; do
	[ -d "$i" ] || continue
	[ -e "$i/configure.in" -o -e "$i/configure.ac" ] || continue
	pushd $i
	aclocal -I unix
	libtoolize --copy --force
	automake -a
	autoconf
	popd
done

%build
export CFLAGS="%optflags -fPIC"
export CXXFLAGS="%optflags -fPIC"
%configure --enable-static
%make

%install
#hack to prevent relinking
sed s/relink_command.*// < libsidutils/src/libsidutils.la > tmp.la
mv tmp.la libsidutils/src/libsidutils.la
%makeinstall_std
chrpath -d %{buildroot}%{_libdir}/libsidutils.so

rm -f %{buildroot}%{builders}/libsid*
rm -rf %{buildroot}%{builders}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17210 |21mr|sign-file-5.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to sign Linux kernel modules
Name:		sign-file
# from Linux kernel 5.19
Version:	5.19
Release:	1
License:	GPLv2
Group:		Development/Kernel
Url:		https://abf.io/import/sign-file
Source0:	sign-file.c
# libressl is used to support GOST
BuildRequires:	libressl-devel

%description
Tool to sign Linux kernel modules
(taken from Linux kernel, but packaged separately
and able to use GOST algorithms).

%files
%{_bindir}/sign-file

#------------------------------------------------------------------

%prep

%install
mkdir -p %{buildroot}%{_bindir}
%__cc \
	-L%{libressl_prefix}/lib \
	-I%{libressl_prefix}/include \
	-o %{buildroot}%{_bindir}/sign-file \
	%{SOURCE0} \
	-lcrypto

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17211 |21mr|signon-8.61-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1

%define libextension %mklibname signon-extension %{major}
%define libplugins %mklibname signon-plugins %{major}
%define libpluginscommon %mklibname signon-plugins-common %{major}
%define libqt %mklibname signon-qt5_ %{major}

%define devname %mklibname signond -d
%define devextension %mklibname signon-extension -d
%define devplugins %mklibname signon-plugins -d
%define devqt %mklibname signon-qt5 -d

Summary:	A framework for centrally storing authentication credentials
Name:		signon
Version:	8.61
Release:	1
Group:		System/Libraries
License:	LGPLv2.1+
Url:		https://gitlab.com/accounts-sso/signond
Source0:	https://gitlab.com/accounts-sso/signond/-/archive/VERSION_%{version}/signond-VERSION_%{version}.tar.gz
Source1:	signon-dbus-specification.tar.gz
Patch0:		signon-8.56-missing-moc-include.patch
Patch1:		signon-8.57-no_static.patch
BuildRequires:	doxygen
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Xml)
Conflicts:	signond < 8.57
Obsoletes:	signond < 8.57

%description
Single Sign-On is a framework for centrally storing authentication credentials
and handling authentication on behalf of applications as requested by
applications. It consists of a secure storage of login credentials (for example
usernames and passwords), plugins for different authentication systems and a
client library for applications to communicate with this system.

%files
%{_bindir}/signond
%{_bindir}/signonpluginprocess
%{_datadir}/dbus-1/services/*.service
%dir %{_libdir}/signon
%{_libdir}/signon/*.so
%config(noreplace) %{_sysconfdir}/signond.conf

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Conflicts:	signond < 8.57

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%{_includedir}/signond
%{_libdir}/pkgconfig/signond.pc
%{_datadir}/dbus-1/interfaces/*.xml

#----------------------------------------------------------------------------

%package -n %{libextension}
Summary:	A framework for centrally storing authentication credentials
Group:		System/Libraries

%description -n %{libextension}
Single Sign-On is a framework for centrally storing authentication credentials
and handling authentication on behalf of applications as requested by
applications. It consists of a secure storage of login credentials (for example
usernames and passwords), plugins for different authentication systems and a
client library for applications to communicate with this system.

%files -n %{libextension}
%{_libdir}/libsignon-extension.so.%{major}
%{_libdir}/libsignon-extension.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devextension}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libextension} = %{EVRD}

%description -n %{devextension}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devextension}
%{_includedir}/signon-extension
%{_libdir}/libsignon-extension.so
%{_libdir}/pkgconfig/SignOnExtension.pc

#----------------------------------------------------------------------------

%package -n %{libplugins}
Summary:	A framework for centrally storing authentication credentials
Group:		System/Libraries

%description -n %{libplugins}
Single Sign-On is a framework for centrally storing authentication credentials
and handling authentication on behalf of applications as requested by
applications. It consists of a secure storage of login credentials (for example
usernames and passwords), plugins for different authentication systems and a
client library for applications to communicate with this system.

%files -n %{libplugins}
%{_libdir}/libsignon-plugins.so.%{major}
%{_libdir}/libsignon-plugins.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{libpluginscommon}
Summary:	A framework for centrally storing authentication credentials
Group:		System/Libraries

%description -n %{libpluginscommon}
Single Sign-On is a framework for centrally storing authentication credentials
and handling authentication on behalf of applications as requested by
applications. It consists of a secure storage of login credentials (for example
usernames and passwords), plugins for different authentication systems and a
client library for applications to communicate with this system.

%files -n %{libpluginscommon}
%{_libdir}/libsignon-plugins-common.so.%{major}
%{_libdir}/libsignon-plugins-common.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devplugins}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libplugins} = %{EVRD}
Requires:	%{libpluginscommon} = %{EVRD}

%description -n %{devplugins}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devplugins}
%{_includedir}/signon-plugins
%{_libdir}/libsignon-plugins.so
%{_libdir}/libsignon-plugins-common.so
%{_libdir}/pkgconfig/signon-plugins.pc
%{_libdir}/pkgconfig/signon-plugins-common.pc

#----------------------------------------------------------------------------

%package -n %{libqt}
Summary:	A framework for centrally storing authentication credentials
Group:		System/Libraries

%description -n %{libqt}
Single Sign-On is a framework for centrally storing authentication credentials
and handling authentication on behalf of applications as requested by
applications. It consists of a secure storage of login credentials (for example
usernames and passwords), plugins for different authentication systems and a
client library for applications to communicate with this system.

%files -n %{libqt}
%{_libdir}/libsignon-qt5.so.%{major}
%{_libdir}/libsignon-qt5.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devqt}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libqt} = %{EVRD}

%description -n %{devqt}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devqt}
%{_includedir}/signon-qt5
%{_libdir}/libsignon-qt5.so
%{_libdir}/cmake/SignOnQt5
%{_libdir}/pkgconfig/libsignon-qt5.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
Documentation for %{name}.

%files doc
%{_defaultdocdir}/libsignon-qt
%{_defaultdocdir}/signon
%{_defaultdocdir}/signon-plugins
%{_defaultdocdir}/signon-plugins-dev

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n signond-VERSION_%{version}

pushd lib/signond/interfaces
tar xvzf %{SOURCE1}
popd

%build
%qmake_qt5 \
	LIBDIR=%{_libdir} \
	signon.pro
%make

%install
%makeinstall_qt
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17212 |21mr|signon-kwallet-extension-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	KWallet SignOn extension
Name:		signon-kwallet-extension
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/games/kapman/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5wallet-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(SignOnExtension)
Recommends:	kaccounts-integration
Requires:	kwallet
Requires:	signon

%description
KWallet SignOn extension.

%files
%{_kde5_libdir}/signon/extensions/libkeyring-kwallet.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17213 |21mr|signon-plugin-oauth2-0.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OAuth2 plugin for the Accounts framework
Name:		signon-plugin-oauth2
Version:	0.25
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		https://gitlab.com/accounts-sso/signon-plugin-oauth2
Source0:	https://gitlab.com/accounts-sso/signon-plugin-oauth2/-/archive/VERSION_%{version}/signon-plugin-oauth2-VERSION_%{version}.tar.gz
Patch0:		signon-plugin-oauth2-0.22-no-werror.patch
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(signon-plugins)
Requires:	signon

%description
OAuth2 plugin for the Accounts framework.

%files
%{_libdir}/signon/liboauth2plugin.so

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C++

%description devel
Development files for %{name}.

%files devel
%{_includedir}/signon-plugins/*.h
%{_libdir}/pkgconfig/signon-oauth2plugin.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-VERSION_%{version}


%build
%qmake_qt5 LIBDIR=%{?_libdir} signon-oauth2.pro
%make


%install
%makeinstall_qt

# Delete tests
rm -fv %{buildroot}/%{_bindir}/signon-oauth2plugin-tests
rm -rfv %{buildroot}/%{_datadir}/signon-oauth2plugin-tests

# Delete examples
rm -fv %{buildroot}/%{_bindir}/oauthclient
rm -rvf %{buildroot}/%{_sysconfdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17214 |21mr|signon-ui-0.17-0.20160416.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 20160416

Summary:	Online Accounts Sign-on UI
Name:		signon-ui
Version:	0.17
Release:	0.%{git}.3
License:	GPLv3+
Group:		System/Libraries
Url:		https://launchpad.net/signon-ui
#Source0:	https://launchpad.net/signon-ui/trunk/%{version}/+download/signon-ui-%{version}.tar.bz2
Source0:	signon-ui-%{version}-%{git}.tar.bz2
Patch0:		signon-ui-0.15-fix-qt5-build.patch
BuildRequires:	pkgconfig(accounts-qt5)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(signond)
BuildRequires:	pkgconfig(signon-plugins)
BuildRequires:	pkgconfig(signon-plugins-common)

%description
Sign-on UI is the component responsible for handling the user interactions
which can happen during the login process of an online account.
It can show password dialogs and dialogs with embedded web pages.

%files
%license COPYING
%doc README TODO NOTES
%{_bindir}/signon-ui
%{_datadir}/dbus-1/services/com.canonical.indicators.webcredentials.service
%{_datadir}/dbus-1/services/com.nokia.singlesignonui.service
%dir %{_sysconfdir}/signon-ui/webkit-options.d

#----------------------------------------------------------------------------

%prep
%setup -qn signon-ui-%{version}-%{git}
%patch0 -p1 -b .qt5

%build
%qmake_qt5 \
	QMF_INSTALL_ROOT=%{_prefix} \
	CONFIG+=release \
	signon-ui.pro
%make

%install
%makeinstall_qt

# Own directory where others can install provider-specific configuration
mkdir -p %{buildroot}/%{_sysconfdir}/signon-ui/webkit-options.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17215 |21mr|signpost-core-1.2.1.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash 3017160f847564879520c564b4bb04abb7b680fe


Name:           signpost-core
Version:        1.2.1.2
Release:        16
Summary:        A simple, light-weight, and modular OAuth client library for the Java platform

License:        ASL 2.0
URL:            https://github.com/mttkay/signpost
Source0:        https://github.com/mttkay/signpost/archive/%{githash}/signpost-%{githash}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch:      noarch 
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  maven-local
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpcore)
BuildRequires:  mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:  mvn(org.mockito:mockito-core)

%description
Signpost is the easy and intuitive solution for signing HTTP messages on the 
Java platform in conformance with the OAuth Core 1.0a standard. 
Signpost follows a modular and flexible design, allowing you to combine it with
different HTTP messaging layers

%package -n oauth-signpost
Summary:        Parent POM for %{name}

%description -n oauth-signpost
This package contains the Parent POM for %{name}.

%package -n signpost-commonshttp4
Summary:        Signpost Apache HttpClient Supports

%description -n signpost-commonshttp4
Signpost Apache HttpClient Supports.
 
%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n signpost-%{githash}

##remove test
rm -fr signpost-*/src/test

# Remove pre-built JAR and class files
find -name '*.jar' -delete
find -name '*.class' -delete

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

# Unneeded modules
%pom_disable_module signpost-jetty6

# Resolve javadoc doclint problems
%pom_remove_plugin :maven-javadoc-plugin
# Unneeded task
%pom_remove_plugin -r :maven-antrun-plugin

%mvn_file :%{name} %{name}
%mvn_file :signpost-commonshttp4 signpost-commonshttp4

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.markdown
%license LICENSE

%files -n oauth-signpost -f .mfiles-oauth-signpost
%license LICENSE

%files -n signpost-commonshttp4 -f .mfiles-signpost-commonshttp4

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17216 |21mr|silc-toolkit-1.1.10-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_version 1.1
%define silcmajor 2
%define clientmajor 3
%define silclibname %mklibname silc %{api_version} %{silcmajor}
%define silclibname_orig %mklibname silc %{api_version}
%define clientlibname %mklibname silcclient %{api_version} %{clientmajor}
%define clientlibname_orig %mklibname silcclient %{api_version}

Summary:	SILC toolkit
Name:		silc-toolkit
Version:	1.1.10
Release:	13
License:	GPLv2
Group:		Networking/Chat
URL:		http://silcnet.org/
Source0:	http://silcnet.org/download/toolkit/sources/%{name}-%{version}.tar.gz
Patch2:		silc-toolkit-1.1.5-docinst.patch
#gw fix linking, link libsilc with pthread and dl, link silcclient with silc
Patch3:		silc-toolkit-1.1.10-fix-linking.patch
Requires:	%{silclibname} = %{version}-%{release}
BuildRequires:	libtool
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	nasm

%description
SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services on the Internet over insecure channel.
SILC is IRC-like software although internally they are very different.
The biggest similarity between SILC and IRC is that they both provide
conferencing services and that SILC has almost the same commands as IRC.
Other than that they are nothing alike.  Major differences are that SILC
is secure what IRC is not in any way.  The network model is also entirely
different compared to IRC.

This package provides development related files for any application that
has SILC support.

%package -n %{silclibname}
Summary:	SILC library
Group:		System/Libraries
Provides:	%{silclibname_orig} = %{version}-%{release}
Requires:	%{name} = %{version}-%{release}

%description -n %{silclibname}
SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services on the Internet over insecure channel.
SILC is IRC-like software although internally they are very different.
The biggest similarity between SILC and IRC is that they both provide
conferencing services and that SILC has almost the same commands as IRC.
Other than that they are nothing alike.  Major differences are that SILC
is secure what IRC is not in any way.  The network model is also entirely
different compared to IRC.

This is the library implementing SILC protocol, including core components,
cryptographic algorithms and utility functions.

%package -n %{clientlibname}
Summary:	SILC client library
Group:		System/Libraries
Provides:	%{clientlibname_orig} = %{version}-%{release}
Provides:	%{_lib}silc-client1 = %{version}-%{release}

%description -n %{clientlibname}
SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services on the Internet over insecure channel.
SILC is IRC-like software although internally they are very different.
The biggest similarity between SILC and IRC is that they both provide
conferencing services and that SILC has almost the same commands as IRC.
Other than that they are nothing alike.  Major differences are that SILC
is secure what IRC is not in any way.  The network model is also entirely
different compared to IRC.

The SILC Client library. Implementation of the SILC Client without
the user interface.  The library provides an interface for user
interface designers.

%package devel
Summary:	SILC toolkit
Group:		Development/Other
# rpmlint wants that, so be it
Requires:	%{name} = %{version}-%{release}
Provides:	%{clientlibname_orig}-devel = %{version}-%{release}
Requires:	%{clientlibname} = %{version}-%{release}
Provides:	%{silclibname_orig}-devel = %{version}-%{release}
Requires:	%{silclibname} = %{version}-%{release}
Provides:	%{_lib}client1-devel = %{version}-%{release}
Provides:	%{_lib}silc-client1-devel = %{version}-%{release}

%description devel
SILC (Secure Internet Live Conferencing) is a protocol which provides
secure conferencing services on the Internet over insecure channel.
SILC is IRC-like software although internally they are very different.
The biggest similarity between SILC and IRC is that they both provide
conferencing services and that SILC has almost the same commands as IRC.
Other than that they are nothing alike.  Major differences are that SILC
is secure what IRC is not in any way.  The network model is also entirely
different compared to IRC.

This package contains all development related files for developing or 
compiling applications using SILC protocol.

%prep
%setup -q
%patch2 -p1 -b .docinst
%patch3 -p1

find -type f | xargs file | grep -v script | cut -d: -f1 | xargs chmod -x
autoreconf -fi

%build

%configure \
	--with-simdir=%{_libdir}/silc/modules \
	--enable-ipv6 \
	--enable-shared \
	--includedir=%{_includedir}/silc

# parallel will succeed but produce broken library
%make -j1 LIBTOOL=%{_bindir}/libtool

%install
%makeinstall_std LIBTOOL=%{_bindir}/libtool

chmod 0755 %{buildroot}%{_libdir}/silc/modules/*.so

%triggerpostun -- libsilc-client1 <= 1.0.1-2mdk
tempfile=`mktemp /etc/ld.so.conf.XXXXXX` || exit $?
grep -v "^%{_libdir}/silc$" /etc/ld.so.conf > $tempfile && cat $tempfile > /etc/ld.so.conf
rm -f $tempfile

%files
%doc %{_docdir}/%{name}/README*
%doc %{_docdir}/%{name}/ChangeLog
%doc %{_docdir}/%{name}/TODO
%{_libdir}/silc

%files -n %{silclibname}
%{_libdir}/libsilc-%{api_version}.so.%{silcmajor}*

%files -n %{clientlibname}
%{_libdir}/libsilcclient-%{api_version}.so.%{clientmajor}*

%files devel
%doc %{_docdir}/%{name}/*
%exclude %{_docdir}/%{name}/README*
%exclude %{_docdir}/%{name}/ChangeLog
%exclude %{_docdir}/%{name}/TODO
%{_includedir}/silc
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17217 |21mr|simple-6.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          simple
Version:       6.0.1
Release:       10
Summary:       Asynchronous HTTP server for Java
License:       ASL 2.0 and LGPLv2+
URL:           http://www.simpleframework.org/
Source0:       http://sourceforge.net/projects/simpleweb/files/simpleweb/%{version}/%{name}-%{version}.tar.gz
# https://github.com/ngallagher/simpleframework/issues/7
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Simple is a high performance asynchronous HTTP server for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# cleanup
find . -name "*.class" -delete
find . -name "*.jar" -delete

for p in common http transport; do
%pom_remove_plugin :maven-source-plugin %{name}-${p}
%pom_xpath_remove "pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions" %{name}-${p}
%pom_xpath_remove "pom:build/pom:extensions" %{name}-${p}

%pom_xpath_set "pom:packaging" bundle %{name}-${p}
%pom_add_plugin org.apache.felix:maven-bundle-plugin %{name}-${p} '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

done

# testAccuracy(org.simpleframework.common.lease.ContractQueueTest)  Time elapsed: 2 sec  <<< FAILURE!
# junit.framework.AssertionFailedError: Value -2000 is not less than or equal to -2001
rm -r simple-common/src/test/java/org/simpleframework/common/lease/ContractQueueTest.java

cp -p %{SOURCE1} .
sed -i 's/\r//' LICENSE-2.0.txt

%build
# disable test suite
# Created Tue, 21 Jun 2016 00:15:55 UTC
# Started Tue, 21 Jun 2016 00:15:59 UTC
# Canceled Tue, 21 Jun 2016 13:14:20 UTC
# blocked on Running org.simpleframework.http.core.ReactorProcessorTest
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17218 |21mr|simple-jndi-0.11.4.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          simple-jndi
Version:       0.11.4.1
Release:       16
Summary:       A JNDI implementation
License:       BSD
Url:           https://github.com/hen/osjava
Source0:       http://osjava.googlecode.com/svn/dist/releases/official/simple-jndi/simple-jndi-0.11.4.1-src.tar.gz
# wget -O simple-jndi-0.11.4.1.pom http://osjava.googlecode.com/svn/releases/simple-jndi-0.11.4.1/pom.xml
Source1:       simple-jndi-%{version}.pom
Patch0:        simple-jndi-0.11.4.1-jdk7.patch

BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: apache-commons-dbcp
BuildRequires: apache-commons-pool
BuildRequires: junit

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Simple-JNDI is intended to solve two problems. The first is
that of finding a container independent way of opening a
database connection, the second is to find a good way of
specifying application configurations.
1. Unit tests or prototype code often need to emulate the
  environment within which the code is expected to run.
  A very common one is to get an object of type
  javax.sql.DataSource from JNDI so a java.sql.Connection
  to your database of choice may be opened.
2. Applications need configuration; a JNDI implementation
  makes a handy location for configuration values. Either
  as a globally available system, or via IoC through the
  use of some kind of JNDI configuration facade (see gj-config).
A solution: simple implementation of JNDI. It is entirely
library based, so no server instances are started, and it
sits upon Java .properties files, XML files or Windows-style
.ini files, so it is easy to use and simple to understand.
The files may be either on the file system or in the classpath.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n simple-jndi-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -delete
%patch0 -p0

# this test at random fails
rm -r src/test/org/osjava/sj/memory/SharedMemoryTest.java

%build

%ant \
  -Dlibdir=lib \
  -Dcommons-pool.jar=file://$(build-classpath commons-pool) \
  -Dcommons-dbcp.jar=file://$(build-classpath commons-dbcp) \
  jar javadoc

%install
%mvn_artifact %{SOURCE1} target/%{name}-%{version}.jar
%mvn_file %{name}:%{name} %{name}
%mvn_install -J dist/docs/api

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17219 |21mr|simplelogin-0.0-0.20210401.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 20210401

Name:		simplelogin
Version:	0.0
Release:	%{?date:0.%{date}.}1
Source0:	https://invent.kde.org/bshah/simplelogin/-/archive/master/simplelogin-master.tar.bz2
Group:		Graphical desktop/KDE
Patch0:		simplelogin-20200818-pam-session.patch
Patch1:		simplelogin-omvconfig.patch
License:	GPLv2+
Summary:	Simple autologin manager without a UI
BuildRequires:	cmake(ECM)
BuildRequires:	cmake(Qt5DBus)
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(systemd)
BuildRequires:	ninja

%description
Simplelogin is an autologin-only login manager, a display manager
without the display.

It is meant primarily as a lightweight sddm replacement for
embedded devices that have only one user.

%prep
%autosetup -p1 -n %{name}-master

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

%files
%{_bindir}/simplelogin
%{_unitdir}/simplelogin.service
%{_sysconfdir}/init
%{_sysconfdir}/pam.d/simplelogin


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17220 |21mr|simple-scan-44.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Simple scanning utility
Name:		simple-scan
Version:	44.0
Release:	8
License:	GPLv3+
Group:		Graphical desktop/GNOME
Url:		https://gitlab.gnome.org/GNOME/simple-scan
Source0:	https://gitlab.gnome.org/GNOME/simple-scan/-/archive/%{version}/%{name}-%{version}.tar.gz
# Added TIFF support by MOS. Tiff is needed for GIA etc.
Patch0:		TIFF_supported.patch
# Changed the length of translations
Patch1:		translations_length_fix.patch
# ROSA-specific patch, not for upstream
Patch2:		0001-ROSA-automate-installing-panamfs-scan.patch
Patch3:		0001-Add-Panasonic-KV-S1028Y-support.patch
Patch4:		0001-Add-selection-of-displayed-devices.patch
BuildRequires:	cmake
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	vala-devel
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(colord)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(gmodule-export-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(gusb)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(packagekit-glib2)
BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	typelib(GUsb)
Requires:	gnome-icon-theme
Requires:	gnome-icon-theme-symbolic
Requires:	xdg-utils
Requires:	yelp
# used in task-scanning
Provides:	scanner-gui

%description
Simple Scan is an easy-to-use application, designed to let users connect their
scanner and quickly have the image/document in an appropriate format.

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.SimpleScan.gschema.xml
%{_datadir}/metainfo/simple-scan.appdata.xml
%{_iconsdir}/hicolor/*/apps/org.gnome.*.svg
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --with-man --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17221 |21mr|simplescreenrecorder-0.4.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# There's no library major version here
%define	oname ssr
%define	libname %mklibname %{oname}-glinject

# glinject uses x86-specific ELF hacks
%ifarch %{ix86} %{x86_64}
%bcond_without glinject
%else
%bcond_with glinject
%endif

Summary:	A feature-rich screen recorder that supports X11 and OpenGL
Name:		simplescreenrecorder
Version:	0.4.4
Release:	2
License:	GPLv3+
Group:		Video
Url:		https://www.maartenbaert.be/simplescreenrecorder
Source0:	https://github.com/MaartenBaert/ssr/archive/%{version}.tar.gz?/%{oname}-%{version}.tar.gz
BuildRequires:	cmake >= 3.1
BuildRequires:	qt5-linguist-tools
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(Qt5Core) >= 5.7
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
%if %{with glinject}
Requires:	%{libname}%{_isa} = %{EVRD}
%endif
# Be able to record 32 bit OpenGL apps
%ifarch %{x86_64}
Recommends:	lib%{oname}-glinject(x86-32)
%endif

%description
SimpleScreenRecorder is a Linux program that was created to record programs
and games. The original goal was to create a program that was just really
simple to use, the result is actually a pretty powerful program. It's 'simple'
in the sense that it's easier to use than ffmpeg/avconv or VLC, because it has
a straightforward user interface.
Features:
 * Graphical user interface (Qt4 or Qt5 based).
 * Faster than VLC and ffmpeg/avconv.
 * Records the entire screen or part of it, or records OpenGL applications
   directly (similar to Fraps on Windows).
 * Synchronizes audio and video properly (a common issue with VLC and
   ffmpeg/avconv).
 * Reduces the video frame rate if your computer is too slow (rather than
   using up all your RAM like VLC does).
 * Fully multi-threaded: small delays in any of the components will never
   block the other components, resulting is smoother video and better
   performance on computers with multiple processors.
 * Pause and resume recording at any time (either by clicking a button or by
   pressing a hotkey).
 * Shows statistics during recording (file size, bit rate, total recording
   time, actual frame rate, ...).
 * Can show a preview during recording, so you don't waste time recording
   something only to figure out afterwards that some setting was wrong.
 * Uses libav/ffmpeg libraries for encoding, so it supports many different
   codecs and file formats (adding more is trivial).
 * Sensible default settings: no need to change anything if you don't want to.
 * Tooltips for almost everything: no need to read the documentation to find
   out what something does.

%files
%license COPYING
%doc CHANGELOG.md notes.txt todo.txt README.md data/resources/about.htm
%{_bindir}/%{name}
%{_bindir}/%{oname}-glinject
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}/
%{_iconsdir}/hicolor/*/apps/%{name}*
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/%{oname}-glinject.1*
%{_metainfodir}/%{name}.metainfo.xml

#----------------------------------------------------------------------------

%if %{with glinject}
%package -n %{libname}
Summary:	A feature-rich screen recorder library
Group:		System/Libraries

%description -n %{libname}
This package provides SimpleScreenRecorder's library.

%files -n %{libname}
%doc COPYING README.md
%{_libdir}/libssr-glinject.so

%endif
#/with_glinject

#----------------------------------------------------------------------------

%prep
%autosetup -n %{oname}-%{version}

# The BS doesn't like %% in filenames
pushd data/output-profiles
	mv High\%20Quality\%20Intermediate.conf HighQualityIntermediate.conf
	mv Live\%20Stream\%20\%281000kbps\%29.conf LiveStream1000kbps.conf
	mv Live\%20Stream\%20\%282000kbps\%29.conf LiveStream2000kbps.conf
	mv Live\%20Stream\%20\%283000kbps\%29.conf LiveStream3000kbps.conf
popd

pushd src/translations
	for i in `ls *.ts`; do lrelease-qt5 $i ; done
popd


%build
%cmake \
	-DWITH_QT5=TRUE \
%if %{with glinject}
	-DWITH_GLINJECT=TRUE
%else
	-DWITH_GLINJECT=FALSE
%endif

%make


%install
%makeinstall_std -C build

mkdir -p %{buildroot}%{_datadir}/simplescreenrecorder/translations
cp src/translations/*qm %{buildroot}%{_datadir}/simplescreenrecorder/translations/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17222 |21mr|simple-xml-2.7.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          simple-xml
Summary:       An XML serialization framework for Java
Version:       2.7.1
Release:       15
License:       ASL 2.0
Group:         Development/Java
Url:           http://simple.sourceforge.net/
Source0:       http://downloads.sourceforge.net/simple/%{name}-%{version}.tar.gz
Source1:       http://repo1.maven.org/maven2/org/simpleframework/%{name}/%{version}/%{name}-%{version}.pom

BuildRequires: java-devel
BuildRequires: javapackages-local
BuildRequires: javapackages-tools
BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: bea-stax
BuildRequires: bea-stax-api
BuildRequires: junit
BuildRequires: xpp3

Requires:      bea-stax
Requires:      xpp3

Requires:      javapackages-tools
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Simple is a high performance XML serialization and
configuration framework for Java. Its goal is to
provide an XML framework that enables rapid development
of XML configuration and communication systems.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# clean up
rm -r javadoc/* test/report/*
find . -name "*.jar" -delete
find . -name "*.class" -delete

sed -i 's/\r//' LICENSE.txt
# test @ random fails
sed -i 's|haltonfailure="yes"|haltonfailure="no"|' test/build.xml

%build

%ant -Dlib.path=%{_javadir} all

%install

mkdir -p %{buildroot}%{_javadir}
install -m 644 jar/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr javadoc/* %{buildroot}%{_javadocdir}/%{name}

%files -f .mfiles
%license LICENSE.txt

%files javadoc
%{_javadocdir}/%{name}
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17223 |21mr|sink-0.9.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname sink %{major}
%define devname %mklibname sink -d

Summary:	Backend for the Kube mail system
Name:		sink
Version:	0.9.0
Release:	3
License:	GPL
Group:		Graphical desktop/KDE
Url:		https://www.kube-project.com/
Source0:	https://invent.kde.org/pim/sink/-/archive/v%{version}/%{name}-v%{version}.tar.bz2
Patch0:		sink-kmime-headers.patch
Patch1:		sink-compile.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5calendarcore-devel
BuildRequires:	kf5mime-devel
BuildRequires:	kf5pimkdav2-devel
BuildRequires:	kf5imap2-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:  pkgconfig(gpgme)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgit2)
BuildRequires:	pkgconfig(readline)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	lmdb-devel
BuildRequires:	kasync-devel
BuildRequires:	flatbuffers-devel >= 1.4
BuildRequires:	xapian-core-devel >= 1.4

%description
Backend for the Kube mail system.

%files
%{_kde5_bindir}/sink_smtp_test
%{_kde5_bindir}/sink_synchronizer
%{_kde5_bindir}/sinksh
%{_kde5_libdir}/qt5/plugins/sink

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Backend for the Kube mail system
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
Backend for the Kube mail system.

%files -n %{libname}
%{_kde5_libdir}/libsink.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for sink
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers for sink.

%files -n %{devname}
%{_includedir}/sink
%{_kde5_libdir}/cmake/Sink
%{_kde5_libdir}/libsink.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}
sed -e '/CMAKE_CXX_STANDARD/d' -i CMakeLists.txt

# Don't build tests
find -name CMakeLists.txt | xargs sed -e '/add_subdirectory(tests)/d' -i

%build
export CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
export CXXFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17224 |21mr|sisu-0.3.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Release type, either "milestone" or "release"
%global reltype release
#global reltag .M1

Name:           sisu
Epoch:          1
Version:        0.3.3
Release:        8
Summary:        Eclipse dependency injection framework
# sisu is EPL-1.0
# bundled asm is BSD
License:        EPL-1.0 and BSD
URL:            http://eclipse.org/sisu

Source0:        http://git.eclipse.org/c/%{name}/org.eclipse.%{name}.inject.git/snapshot/%{reltype}s/%{version}%{?reltag}.tar.bz2#/org.eclipse.%{name}.inject-%{version}%{?reltag}.tar.bz2
Source1:        http://git.eclipse.org/c/%{name}/org.eclipse.%{name}.plexus.git/snapshot/%{reltype}s/%{version}%{?reltag}.tar.bz2#/org.eclipse.%{name}.plexus-%{version}%{?reltag}.tar.bz2

Source100:      %{name}-parent.pom
Source101:      %{name}-inject.pom
Source102:      %{name}-plexus.pom

Patch0:         %{name}-OSGi-import-guava.patch
Patch2:         %{name}-ignored-tests.patch
Patch3:         %{name}-osgi-api.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.inject.extensions:guice-servlet)
BuildRequires:  mvn(com.google.inject:guice::no_aop:)
BuildRequires:  mvn(javax.annotation:javax.annotation-api)
BuildRequires:  mvn(javax.enterprise:cdi-api)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.testng:testng)

Provides:       bundled(objectweb-asm)


%description
Java dependency injection framework with backward support for plexus and bean
style dependency injection.

%package        inject
Summary:        Sisu inject
Obsoletes:      %{name}-tests < 1:0.3.2-5

%description    inject
This package contains %{summary}.

%package        plexus
Summary:        Sisu Plexus

%description    plexus
This package contains %{summary}.

%package        javadoc
Summary:        API documentation for Sisu

%description    javadoc
This package contains %{summary}.

%prep
%setup -q -c -T
tar xf %{SOURCE0} && mv %{reltype}s/* sisu-inject && rmdir %{reltype}s
tar xf %{SOURCE1} && mv %{reltype}s/* sisu-plexus && rmdir %{reltype}s

cp %{SOURCE100} pom.xml
cp %{SOURCE101} sisu-inject/pom.xml
cp %{SOURCE102} sisu-plexus/pom.xml

%patch0
%patch2
%patch3

%pom_xpath_set -r /pom:project/pom:version %{version}

%mvn_file ":{*}" @1
%mvn_package ":*{inject,plexus}" @1
%mvn_package : __noinstall
%mvn_alias :org.eclipse.sisu.plexus org.sonatype.sisu:sisu-inject-plexus

%build
%mvn_build

%install
%mvn_install

%files inject -f .mfiles-inject
%doc sisu-inject/LICENSE.txt

%files plexus -f .mfiles-plexus

%files javadoc -f .mfiles-javadoc
%doc sisu-inject/LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17225 |21mr|sisu-mojos-0.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sisu-mojos
Version:        0.3.3
Release:        2
Summary:        Sisu plugin for Apache Maven
License:        EPL-1.0
URL:            http://www.eclipse.org/sisu
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://git.eclipse.org/c/sisu/org.eclipse.sisu.mojos.git/snapshot/releases/%{version}.tar.gz#/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.inject)
BuildRequires:  mvn(org.slf4j:slf4j-nop)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

Obsoletes:      sisu-maven-plugin < 1:0.1

%description
The Sisu Plugin for Maven provides mojos to generate
META-INF/sisu/javax.inject.Named index files for the Sisu container.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains %{summary}.

%prep
%setup -q -c
mv releases/%{version}/* .
# Animal Sniffer is not useful in Fedora
%pom_remove_plugin :animal-sniffer-maven-plugin
%mvn_alias : org.sonatype.plugins:

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17226 |21mr|si-units-0.6.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          si-units
Version:       0.6.5
Release:       6
Summary:       International System of Units (JSR 363)
License:       BSD
URL:           https://github.com/unitsofmeasurement/%{name}
Source0:       https://github.com/unitsofmeasurement/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: junit
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin
BuildRequires: maven-local
BuildRequires: maven-jar-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-license-plugin
BuildRequires: maven-dependency-plugin
BuildRequires: mvn(org.jacoco:jacoco-maven-plugin)
BuildRequires: mvn(javax.measure:unit-api)
BuildRequires: mvn(tec.uom:uom-parent:pom:)
BuildRequires: mvn(tec.uom:uom-se:pom:)

Group:          Development/Java
BuildArch:     noarch

%description
A library of SI quantities and unit types (JSR 363).

%package javadoc
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Summary: Javadoc for the library of SI quantities and unit types

%description javadoc
This package contains documentation for the International System
of Units - a library of SI quantities and unit types (JSR 363).

%prep
%setup -q -n %{name}-%{version}
%pom_disable_module units	# use only Java 8+
%pom_xpath_remove "pom:properties/pom:si.quantity.version"
%pom_xpath_inject "pom:properties" "<si.quantity.version>%{version}</si.quantity.version>"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17227 |21mr|skanpage-23.08.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %version | cut -d. -f1,2)

Summary:	Utility to scan images and multi-page documents
Name:		skanpage
Version:	23.08.4
Release:	6
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/applications/graphics/skanlite/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Patch0:		fix.name.new.document.patch
Patch1:		0001-Add-file-name-template.patch
Patch2:		0002-Add-auto-save.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5sanecore-devel
BuildRequires:  kquickimageeditor-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(libpng)
Provides:	scanner-gui
Requires:	kquickimageeditor

%description
Utility to scan images and multi-page documents.

%files -f %{name}.lang
%{_kde5_bindir}/%{name}
%{_kde5_applicationsdir}/*.desktop
%{_kde5_iconsdir}/hicolor/*/apps/skanpage.*
%{_appdatadir}/org.kde.skanpage.appdata.xml
%{_kde5_datadir}/qlogging-categories5/skanpage.categories

#------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17228 |21mr|skkdic-20070529-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define version	20070529
%define release	14

Name:      skkdic
Summary:   SKK Dictionaries for Japanese
Version:   %{version}
Release:   %{release}
Group:     System/Internationalization
License:   GPL
URL:       http://openlab.ring.gr.jp/skk/

# Use this file:
# http://openlab.jp/skk/skk/dic/SKK-JISYO.L 
Source0:   %{name}-%{version}.tar.bz2

BuildArch: noarch

%description
SKK dictionaries for Japanese.
SKK is a Simple Kana-to-Kanji conversion program.


%prep
%setup -q -n %name-%version.orig

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/%{_datadir}/skk
install -m 644 SKK-JISYO.* $RPM_BUILD_ROOT/%{_datadir}/skk

%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root)
%{_datadir}/skk/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17229 |21mr|skopeo-1.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define		debug_package %{nil}

Name:		skopeo
Version:	1.4.1
Release:	2
Summary:	Tools image comtainers or registry
Group:		Development/Other
License:	ASL 2.0
URL:		https://github.com/containers/skopeo
Source0:	%{url}/archive/v%{version}/%{name}-%{version}.tar.gz
Source10:	%{name}.rpmlintrc
BuildRequires:	go >= 1.11
BuildRequires:	git-core
BuildRequires:	upx
BuildRequires:	gpgme-devel
BuildRequires:	pkgconfig(devmapper)

%description
skopeo is a command line utility that performs various
operations on container images and image repositories.

skopeo does not require the user to be running as root
to do most of its operations.

skopeo does not require a daemon to be running to perform
its operations.

skopeo can work with OCI images as well as the original
Docker v2 images.

%prep
%setup -q

%build
CGO_CFLAGS="" CGO_LDFLAGS="-L%{_libdir} -lgpgme -lassuan -lgpg-error" GO111MODULE=on go build -mod=vendor "-buildmode=pie" -ldflags '-X main.gitCommit= ' -gcflags "" -tags "btrfs_noversion exclude_graphdriver_btrfs " -o bin/skopeo ./cmd/skopeo

upx bin/%{name}


%install
install -Dm0755 bin/%{name} %{buildroot}%{_bindir}/%{name}

%files
%doc README.md LICENSE
%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17230 |21mr|skrooge-2.24.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Personal Finance Management Tool
Name:		skrooge
Version:	2.24.6
Release:	4
License:	GPLv3+
Group:		Office
Url:		https://skrooge.org
Source0:	https://download.kde.org/stable/skrooge/%{name}-%{version}.tar.xz
Source1:	%{name}-2.24.6_ru.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	cmake >= 2.8.12
BuildRequires:	extra-cmake-modules >= 1.7.0
BuildRequires:	grantlee-qt5-devel >= 2.20.0
BuildRequires:	kf5activities-devel >= 5.0.0
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5designerplugin-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5guiaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libofx)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core) >= 5.9.0
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Designer)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(sqlcipher)
BuildRequires:	pkgconfig(sqlite3)
Requires:	qca2-qt5-plugin-openssl
Requires:	qt5-database-plugin-sqlite
%rename		%{name}-devel

%description
Skrooge is a personal finance management tool for KDE, with the aim of being
highly intuitive, while providing powerful functions such as graphics,
persistent Undo/Redo, infinite category levels, and much more...

%files -f %{name}.lang
%doc AUTHORS CHANGELOG COPYING README
%{_kde5_applicationsdir}/*.desktop
%{_kde5_bindir}/*
%{_kde5_datadir}/config.kcfg/*.kcfg
%{_kde5_datadir}/skrooge/
%{_kde5_iconsdir}/*/*/*/*
%{_kde5_notificationsdir}/skrooge.notifyrc
%{_kde5_services}/*.desktop
%{_kde5_servicetypes}/*.desktop
%{_kde5_sysconfdir}/xdg/*.knsrc
%{_kde5_xmlguidir}/*/*.rc
%{_appdatadir}/org.kde.skrooge.appdata.xml
%{_datadir}/mime/packages/*.xml
%{_qt5_plugindir}/*.so
%{_qt5_plugindir}/designer/*.so
%{_qt5_plugindir}/grantlee/*/grantlee_skgfilters.so
%{_qt5_plugindir}/sqldrivers/libskgsqlcipher.so

#-----------------------------------------------------------------------------

%define libskgbankgui_major 2
%define libskgbankgui %mklibname skgbankgui %{libskgbankgui_major}

%package -n %{libskgbankgui}
Summary:	 library for %{name}
Group:		System/Libraries

%description -n %{libskgbankgui}
Library for %{name}.

%files -n %{libskgbankgui}
%doc COPYING
%{_kde5_libdir}/libskgbankgui.so.%{libskgbankgui_major}*

#-----------------------------------------------------------------------------

%define libskgbankmodeler_major 2
%define libskgbankmodeler %mklibname skgbankmodeler %{libskgbankmodeler_major}

%package -n %{libskgbankmodeler}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libskgbankmodeler}
Library for %{name}.

%files -n %{libskgbankmodeler}
%doc COPYING
%{_kde5_libdir}/libskgbankmodeler.so.%{libskgbankmodeler_major}*

#-----------------------------------------------------------------------------

%define libskgbasegui_major 2
%define libskgbasegui %mklibname skgbasegui %{libskgbasegui_major}

%package -n %{libskgbasegui}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libskgbasegui}
Library for %{name}.

%files -n %{libskgbasegui}
%doc COPYING
%{_kde5_libdir}/libskgbasegui.so.%{libskgbasegui_major}*

#-----------------------------------------------------------------------------

%define libskgbasemodeler_major 2
%define libskgbasemodeler %mklibname skgbasemodeler %{libskgbasemodeler_major}

%package -n %{libskgbasemodeler}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libskgbasemodeler}
Library for %{name}.

%files -n %{libskgbasemodeler}
%doc COPYING
%{_kde5_libdir}/libskgbasemodeler.so.%{libskgbasegui_major}*

#--------------------------------------------------------------------

%prep
%setup -q

pushd po/ru
tar -xvzf %{SOURCE1}
popd


%build
%cmake_kde5 -DSKG_DESIGNER=ON
%make


%install
%makeinstall_std -C build

%find_lang %{name} --with-html --with-kde

# Quick workaround for wrong placement
# FIXME: Properly fix in the build config files
mv %{buildroot}%{_kde5_services}/sources/*.desktop %{buildroot}%{_kde5_services}/
rmdir %{buildroot}%{_kde5_services}/sources/

# Fix perms
chmod -x %{buildroot}%{_kde5_applicationsdir}/*.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17231 |21mr|slang-2.3.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define minor 3
%define modules %{mklibname %{name}}-modules
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -s -d

%bcond_without	pcre
%bcond_without	png
%bcond_with	onig

Summary:	The shared library for the S-Lang extension language
Name:		slang
Version:	2.3.2
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.s-lang.org
Source0:	http://www.jedsoft.org/releases/slang/%{name}-%{version}.tar.bz2
Patch0:		slang-2.3.1a-modules-makefile.patch
# don't use memcpy() on overlapping buffers
Patch1:         slang-getkey-memmove.patch
Patch2:		slang-2.3.2-slarray-ub.patch
# disable test that fails with SIGHUP ignored (e.g. in koji)
Patch3:         slang-sighuptest.patch

BuildRequires:	libtool
BuildRequires:	ncurses
BuildRequires:	onig-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)

%description
S-Lang is an interpreted language and a programming library.  The
S-Lang language was designed so that it can be easily embedded into
a program to provide the program with a powerful extension language.
The S-Lang library, provided in this package, provides the S-Lang
extension language.  S-Lang's syntax resembles C, which makes it easy
to recode S-Lang procedures in C if you need to.

#----------------------------------------------------------------------------

%package -n %{modules}
Summary:	Modules for the S-Lang extension language
Group:		Development/Other
Conflicts:	%{libname} < 2.2.4-3

%description -n %{modules}
This package contains the main modules for the S-Lang extension language.

%files -n %{modules}
%dir %{_libdir}/slang
%{_libdir}/slang/v%{major}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The shared library for the S-Lang extension language
Group:		System/Libraries
Requires:	%{modules} = %{EVRD}

%description -n %{libname}
S-Lang is an interpreted language and a programming library.  The
S-Lang language was designed so that it can be easily embedded into
a program to provide the program with a powerful extension language.
The S-Lang library, provided in this package, provides the S-Lang
extension language.  S-Lang's syntax resembles C, which makes it easy
to recode S-Lang procedures in C if you need to.

%files -n %{libname}
%{_libdir}/libslang.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The library and header files for development using S-Lang
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the S-Lang extension language libraries and
header files which you'll need if you want to develop S-Lang based
applications.  Documentation which may help you write S-Lang based
applications is also included.

Install the slang-devel package if you want to develop applications
based on the S-Lang extension language.

%files -n %{devname}
%{_libdir}/libslang.so
%dir %{_includedir}/slang/
%{_includedir}/slang/*.h
%{_libdir}/pkgconfig/slang.pc

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static development files for %{name}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Static development files for %{name}.

%files -n %{sdevname}
%{_libdir}/libslang.a

#----------------------------------------------------------------------------

%package doc
Summary:	Extra documentation for slang libraries
Group:		Documentation

%description doc
This package contains documentation about S-Lang.
S-Lang is an interpreted language and a programming library.  The
S-Lang language was designed so that it can be easily embedded into
a program to provide the program with a powerful extension language.
The S-Lang library, provided in this package, provides the S-Lang
extension language.  S-Lang's syntax resembles C, which makes it easy
to recode S-Lang procedures in C if you need to.

%files doc
%{_defaultdocdir}/slang

#----------------------------------------------------------------------------

%package slsh
Summary:	S-Lang script interpreter
Group:		Shells

%description slsh
slsh is a program that embeds the S-Lang interpreter and may be used
to test slang scripts.

%files slsh
%doc %{_docdir}/slsh
%{_bindir}/slsh
%{_datadir}/slsh
%{_mandir}/man1/slsh.1*
%config(noreplace) %{_sysconfdir}/slsh.rc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--with-{onig,pcre,png,z}lib=%{_libdir} \
	--with-{onig,pcre,png,z}inc=%{_includedir} \
	--includedir=%{_includedir}/slang

make

%install
%makeinstall_std install-static

chmod +x %{buildroot}%{_libdir}/slang/v*/modules/*.so

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17232 |21mr|slapi-nis-0.56.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	NIS Server and Schema Compatibility plugins for Directory Server
Name:		slapi-nis
Version:	0.56.7
Release:	3
License:	GPLv2
Group:		System/Servers
Url:		https://pagure.io/slapi-nis
Source0:	https://pagure.io/slapi-nis/archive/slapi-nis-0.56.5/slapi-nis-slapi-nis-%{version}.tar.gz
Patch1:		slapi-nis-bz1832190.patch
BuildRequires:	libtool
BuildRequires:	389-ds-base-devel
BuildRequires:	openldap-devel
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(sss_nss_idmap)
BuildRequires:	pam-devel
BuildRequires:	tcp_wrappers-devel
Requires:	389-ds-base

%description
This package provides two plugins for Red Hat and 389 Directory Server.

The NIS Server plugin allows the directory server to act as a NIS server
for clients, dynamically generating and updating NIS maps according to
its configuration and the contents of the DIT, and serving the results to
clients using the NIS protocol as if it were an ordinary NIS server.

The Schema Compatibility plugin allows the directory server to provide an
alternate view of entries stored in part of the DIT, optionally adding,
dropping, or renaming attribute values, and optionally retrieving values
for attributes from multiple entries in the tree.

%files
%doc COPYING NEWS README STATUS doc/*.txt doc/examples/*.ldif doc/ipa
%{_mandir}/man1/*
%{_libdir}/dirsrv/plugins/*.so
%{_sbindir}/nisserver-plugin-defs

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
#libtoolize -f -c
#aclocal --force -I m4
#autoheader
#automake -f -a -i
#autoconf -f -i

autoreconf -f -i
%configure \
	--disable-static \
	--with-tcp-wrappers \
	--with-ldap=openldap \
	--with-nsswitch \
	--with-pam \
	--with-pam-service=system-auth \
	--with-sss-nss-idmap \
	--with-tirpc \
	--enable-be-txns-by-default

sed -i -e 's,%{_libdir}/dirsrv/plugins/,,g' -e 's,.so$,,g' doc/examples/*.ldif
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17233 |21mr|sleuthkit-4.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major      19
%define libname    %mklibname tsk %{major}
%define develname  %mklibname tsk -d

Summary:        The Sleuth Kit
Name:           sleuthkit
Version:        4.9.0
Release:        1
License:        CPL
Group:          Security
URL:            http://www.sleuthkit.org/sleuthkit/
Source0:        https://github.com/sleuthkit/sleuthkit/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz

BuildRequires:  libstdc++-devel
BuildRequires:  pkgconfig(afflib)
BuildRequires:  pkgconfig(libewf)
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(zlib)
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(sqlite3)

Requires:       mac-robber
Requires:       file
Requires:       afflib
Requires:       libewf
Provides:       task = %{version}
Obsoletes:      task = %{version}
Conflicts:      dstat

%description
The Sleuth Kit (previously known as TASK) is a collection of UNIX-based command
line file system forensic tools that allow an investigator to examine NTFS,
FAT, FFS, EXT2FS, EXT3FS and ExFAT file systems of a suspect computer in a
non-intrusive fashion. The  tools have a layer-based design and can extract
data from internal file system structures. Because the tools do not rely on the
operating system to process the file systems, deleted and hidden content is
shown.

When performing a complete analysis of a system, command line tools can become
tedious. The Autopsy Forensic Browser is a graphical interface to the tools in
The Sleuth Kit, which allows one to more easily conduct an investigation.
Autopsy provides case management, image integrity, keyword searching, and other
automated operations.

%package -n     %{libname}
Summary:        Library for %{name}
Group:          System/Libraries

%description -n %{libname}
The %{libname} package contains library for %{name}.

%package -n     %{develname}
Summary:        Development files for %{name}
Group:          Development/C
Requires:       %{libname} = %{version}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{develname}
The %{develname} package contains libraries and header files for
developing applications that use %{name}.

%prep
%autosetup -p1

%build
export LIBS='-lpthread -ldl -lstdc++'

%configure --disable-static --disable-java

# remove rpath from libtool (fedora)
sed -i.rpath 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i.rpath 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make_build

%install
%make_install

find %{buildroot} -name '*.la' -delete

%files
%doc ChangeLog.txt NEWS.txt README.md licenses/*
# License is CPL 1.0 exept for some files.
%{_bindir}/blkcalc
%{_bindir}/blkcat
%{_bindir}/blkls
%{_bindir}/blkstat
%{_bindir}/fcat
%{_bindir}/ffind
%{_bindir}/fiwalk
%{_bindir}/fls
%{_bindir}/fsstat
%{_bindir}/hfind
%{_bindir}/icat
%{_bindir}/ifind
%{_bindir}/ils
%{_bindir}/img_cat
%{_bindir}/img_stat
%{_bindir}/istat
%{_bindir}/jcat
%{_bindir}/jpeg_extract
%{_bindir}/jls
# This file is described as GPL in the doc
# But the license remains CPL in the source.
%{_bindir}/mactime
##
%{_bindir}/mmcat
%{_bindir}/mmls
%{_bindir}/mmstat
%{_bindir}/pstat
%{_bindir}/sigfind
%{_bindir}/sorter
%{_bindir}/tsk_comparedir
%{_bindir}/tsk_gettimes
%{_bindir}/tsk_loaddb
%{_bindir}/tsk_recover
%{_bindir}/usnjls
## This file is GPLv2+
%{_bindir}/srch_strings
#
%{_mandir}/man1/blkcalc.1*
%{_mandir}/man1/blkcat.1*
%{_mandir}/man1/blkls.1*
%{_mandir}/man1/blkstat.1*
%{_mandir}/man1/fcat.1*
%{_mandir}/man1/ffind.1*
%{_mandir}/man1/fls.1*
%{_mandir}/man1/fsstat.1*
%{_mandir}/man1/hfind.1*
%{_mandir}/man1/icat.1*
%{_mandir}/man1/ifind.1*
%{_mandir}/man1/ils.1*
%{_mandir}/man1/img_cat.1*
%{_mandir}/man1/img_stat.1*
%{_mandir}/man1/istat.1*
%{_mandir}/man1/jcat.1*
%{_mandir}/man1/jls.1*
%{_mandir}/man1/mactime.1*
%{_mandir}/man1/mmcat.1*
%{_mandir}/man1/mmls.1*
%{_mandir}/man1/mmstat.1*
%{_mandir}/man1/sigfind.1*
%{_mandir}/man1/sorter.1*
%{_mandir}/man1/tsk_comparedir.1*
%{_mandir}/man1/tsk_gettimes.1*
%{_mandir}/man1/tsk_loaddb.1*
%{_mandir}/man1/tsk_recover.1*
%{_mandir}/man1/usnjls.1*
%dir %{_datadir}/tsk
%{_datadir}/tsk/sorter/

%files -n %{libname}
%{_libdir}/libtsk.so.%{major}{,.*}

%files -n %{develname}
# CPL and IBM
%{_includedir}/tsk/
%{_libdir}/libtsk.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17234 |21mr|slf4j-1.7.26-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2009, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           slf4j
Version:        1.7.26
Release:        2
Epoch:          0
Summary:        Simple Logging Facade for Java
# the log4j-over-slf4j and jcl-over-slf4j submodules are ASL 2.0, rest is MIT
License:        MIT and ASL 2.0
URL:            http://www.slf4j.org/
Source0:        https://github.com/qos-ch/slf4j/archive/refs/tags/v_1.7.26.tar.gz?/%{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt
Source2:	MANIFEST.MF-api
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  maven-local
BuildRequires:  mvn(ch.qos.cal10n:cal10n-api)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(javassist:javassist)
BuildRequires:  mvn(log4j:log4j:1.2.17)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)

%description
The Simple Logging Facade for Java or (SLF4J) is intended to serve
as a simple facade for various logging APIs allowing to the end-user
to plug in the desired implementation at deployment time. SLF4J also
allows for a gradual migration path away from
Jakarta Commons Logging (JCL).

Logging API implementations can either choose to implement the
SLF4J interfaces directly, e.g. NLOG4J or SimpleLogger. Alternatively,
it is possible (and rather easy) to write SLF4J adapters for the given
API implementation, e.g. Log4jLoggerAdapter or JDK14LoggerAdapter..

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%package manual
Summary:        Manual for %{name}

%description manual
This package provides documentation for %{name}.

%package jdk14
Summary:        SLF4J JDK14 Binding

%description jdk14
SLF4J JDK14 Binding.

%package log4j12
Summary:        SLF4J LOG4J-12 Binding

%description log4j12
SLF4J LOG4J-12 Binding.

%package jcl
Summary:        SLF4J JCL Binding

%description jcl
SLF4J JCL Binding.

%package ext
Summary:        SLF4J Extensions Module

%description ext
Extensions to the SLF4J API.

%package -n jcl-over-slf4j
Summary:        JCL 1.1.1 implemented over SLF4J

%description -n jcl-over-slf4j
JCL 1.1.1 implemented over SLF4J.

%package -n log4j-over-slf4j
Summary:        Log4j implemented over SLF4J

%description -n log4j-over-slf4j
Log4j implemented over SLF4J.

%package -n jul-to-slf4j
Summary:        JUL to SLF4J bridge

%description -n jul-to-slf4j
JUL to SLF4J bridge.

%package sources
Summary:        SLF4J Source JARs

%description sources
SLF4J Source JARs.

%prep
%setup -qn %{name}-v_%{version}
cp -p %{SOURCE1} APACHE-LICENSE
find . -name "*.jar" | xargs rm

%pom_disable_module integration
%pom_disable_module osgi-over-slf4j
%pom_disable_module slf4j-android
%pom_disable_module slf4j-migrator

# Because of a non-ASCII comment in slf4j-api/src/main/java/org/slf4j/helpers/MessageFormatter.java
%pom_xpath_inject "pom:project/pom:properties" "
    <project.build.sourceEncoding>ISO-8859-1</project.build.sourceEncoding>"

# Fix javadoc links
%pom_xpath_remove "pom:links"
%pom_xpath_inject "pom:plugin[pom:artifactId[text()='maven-javadoc-plugin']]/pom:configuration" "
    <detectJavaApiLink>false</detectJavaApiLink>
    <isOffline>false</isOffline>
    <links><link>/usr/share/javadoc/java</link></links>"

# dos2unix
find -name "*.css" -o -name "*.js" -o -name "*.txt" | \
    xargs -t sed -i 's/\r$//'

# Remove wagon-ssh build extension
%pom_xpath_remove pom:extensions

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
    <execution>
      <id>default-jar</id>
      <phase>skip</phase>
    </execution>" slf4j-api

# The general pattern is that the API package exports API classes and does
# not require impl classes. slf4j was breaking that causing "A cycle was
# detected when generating the classpath slf4j.api, slf4j.nop, slf4j.api."
# The API bundle requires impl package, so to avoid cyclic dependencies
# during build time, it is necessary to mark the imported package as an
# optional one.
# Reported upstream: http://bugzilla.slf4j.org/show_bug.cgi?id=283
sed -i "/Import-Package/s/.$/;resolution:=optional&/" slf4j-api/src/main/resources/META-INF/MANIFEST.MF

# Source JARs for are required by Maven 3.4.0
%mvn_package :::sources: sources

%mvn_package :%{name}-parent __noinstall
%mvn_package :%{name}-site __noinstall
%mvn_package :%{name}-api
%mvn_package :%{name}-simple
%mvn_package :%{name}-nop

rm -frv slf4j-api/src/main/resources/META-INF/MANIFEST.MF
cp -frv %{SOURCE2} slf4j-api/src/main/resources/META-INF/MANIFEST.MF

%build
%mvn_build -f -s

%install
# Compat symlinks
%mvn_file ':%{name}-{*}' %{name}/%{name}-@1 %{name}/@1

%mvn_install

# manual
install -d -m 0755 $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual
rm -rf target/site/{.htaccess,apidocs}
cp -pr target/site/* $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}-manual

%files -f .mfiles
%license LICENSE.txt APACHE-LICENSE

%files jdk14 -f .mfiles-%{name}-jdk14
%files log4j12 -f .mfiles-%{name}-log4j12
%files jcl -f .mfiles-%{name}-jcl
%files ext -f .mfiles-%{name}-ext
%files -n jcl-over-slf4j -f .mfiles-jcl-over-slf4j
%files -n log4j-over-slf4j -f .mfiles-log4j-over-slf4j
%files -n jul-to-slf4j -f .mfiles-jul-to-slf4j

%files sources -f .mfiles-sources
%license LICENSE.txt APACHE-LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt APACHE-LICENSE

%files manual
%license LICENSE.txt APACHE-LICENSE
%{_defaultdocdir}/%{name}-manual


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17235 |21mr|slf4j-jboss-logmanager-1.0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .GA
%global namedversion %{version}%{?namedreltag}

Name:             slf4j-jboss-logmanager
Version:          1.0.3
Release:          7
Summary:          SLF4J backend for JBoss LogManager
License:          LGPLv2+
URL:              https://github.com/jboss-logging/slf4j-jboss-logmanager
Source0:          https://github.com/jboss-logging/slf4j-jboss-logmanager/archive/%{namedversion}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:    maven-local
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.slf4j:slf4j-api)

%description
This package contains SLF4J backend for JBoss LogManager

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin :maven-source-plugin

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17236 |21mr|slib-3b6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Platform independent library for scheme
Name:		slib
Version:	3b6
Release:	1
License:	SLIB
Group:		Development/Other
Url:		http://people.csail.mit.edu/jaffer/SLIB.html
Source0:	http://groups.csail.mit.edu/mac/ftpdir/scm/%{name}-%{version}.zip
BuildArch:	noarch

%description
"SLIB" is a portable library for the programming language Scheme.
It provides a platform independent framework for using "packages" of
Scheme procedures and syntax. As distributed, SLIB contains useful
packages for all Scheme implementations. Its catalog can be
transparently extended to accommodate packages specific to a site,
implementation, user, or directory.

%files
%doc ANNOUNCE README FAQ ChangeLog
%license COPYING
%{_datadir}/%{name}
%{_infodir}/%{name}.*

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}
sed -r -i "s,/usr/(local/)?lib/%{name},%{_datadir}/%{name},g" *.init
chmod 644 COPYING

%build

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp *.scm *.init *.xyz *.txt *.dat *.ps %{buildroot}%{_datadir}/%{name}
mkdir -p %{buildroot}%{_infodir}
install -m644 %{name}.info %{buildroot}%{_infodir}

chmod 644 %{buildroot}%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17237 |21mr|slirp4netns-1.1.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Used for comparing with latest upstream tag
# to decide whether to autobuild and set download_url (non-rawhide only)
%global built_tag v1.1.12
%global built_tag_strip %(b=%{built_tag}; echo ${b:1})

Name:		slirp4netns
Version:	1.1.12
Release:	1
Summary:	slirp for network namespaces
Group:		Networking/Other
License:	GPLv2
URL:		https://github.com/rootless-containers/%{name}
Source0:	%{url}/archive/%{built_tag}.tar.gz
BuildRequires:	glib2-devel
BuildRequires:	git
BuildRequires:	go-md2man
BuildRequires:	libcap-devel
BuildRequires:	seccomp-devel
BuildRequires:	slirp-devel

%description
slirp for network namespaces, without copying buffers across the namespaces.

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#------------------------------------------------------------------------
%package devel
Summary:	%{summary}
Group:		Networking/Other
BuildArch:	noarch

%description devel
%{summary}

This package contains library source intended for
building other packages which use import path with
%{import_path} prefix.


#------------------------------------------------------------------------

%prep
%autosetup -Sgit -n %{name}-%{built_tag_strip}

%build
./autogen.sh
./configure --prefix=%{_usr} --libdir=%{_libdir}
%{__make} generate-man

%install
make DESTDIR=%{buildroot} install install-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17238 |21mr|smack-4.1.5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          smack
Version:       4.1.5
Release:       9
Summary:       Open Source XMPP (Jabber) client library
License:       ASL 2.0
URL:           http://www.igniterealtime.org/projects/smack/index.jsp
Source0:       https://github.com/igniterealtime/Smack/archive/%{version}.tar.gz
# Default use gradle
# sh smack-get-poms.sh < VERSION >
Source1:       smack-%{version}-poms.tar.xz
Source2:       smack-get-poms.sh
Patch0:        smack-4.1.1-antrun-plugin.patch
# https://issues.igniterealtime.org/browse/SMACK-739
Patch1:        smack-4.1.5-SMACK-739.patch

BuildRequires: maven-local
BuildRequires: mvn(com.jamesmurty.utils:java-xmlbuilder)
BuildRequires: mvn(com.jcraft:jzlib)
BuildRequires: mvn(de.measite.minidns:minidns)
BuildRequires: mvn(dnsjava:dnsjava)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.iharder:base64)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.igniterealtime.jbosh:jbosh)
BuildRequires: mvn(org.igniterealtime.jxmpp:jxmpp-core)
BuildRequires: mvn(org.igniterealtime.jxmpp:jxmpp-util-cache)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.powermock:powermock-api-mockito)
BuildRequires: mvn(org.powermock:powermock-module-junit4)
BuildRequires: mvn(org.powermock:powermock-reflect)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(xmlunit:xmlunit)
BuildRequires: mvn(xpp3:xpp3)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Smack is an Open Source XMPP (Jabber) client library for instant
messaging and presence. A pure Java library, it can be embedded
into your applications to create anything from a full XMPP client
to simple XMPP integrations such as sending notification messages and
presence-enabling devices.

%package bosh
Summary:       Smack BOSH API

%description bosh
Smack BOSH API.

%package compression-jzlib
Summary:       Smack compression with jzlib

%description compression-jzlib
Allow to compress the XMPP stream with help of jzlib.

%package debug
Summary:       Smack GUI debugger

%description debug
Inspect the exchanged XMPP stanzas.

%package debug-slf4j
Summary:       Smack slf4j debugger

%description debug-slf4j
Inspect the exchanged XMPP stanzas.
Connect your favorite slf4j back-end of
choice to get output inside of it.

%package experimental
Summary:       Smack experimental extensions

%description experimental
Classes and methods for XEPs that are in status
'experimental' or that should otherwise carefully
considered for deployment. The API may change even
between patch versions.

%package extensions
Summary:       Smack extensions

%description extensions
Classes and methods that implement support for the
various XMPP XEPs (Multi-User Chat, PubSub, …) and
other XMPP extensions.

%package im
Summary:       Smack IM

%description im
Classes and methods for XMPP-IM (RFC 6121):
Roster, Chat and other functionality.

%package java7
Summary:       Smack for Java7 (or higher)

%description java7
This is a pseudo-artifact that pulls all the required dependencies to
run Smack on Java 7 (or higher) JVMs. Usually you want to add additional
dependencies to smack-tcp, smack-extensions and smack-experimental.

%package legacy
Summary:       Smack legacy extensions

%description legacy
Usually XEPs in the state 'retracted', 'rejected',
'deprecated', 'obsolete' or in a long standing
'deferred' state.

%package resolver-dnsjava
Summary:       DNS SRV with dnsjava

%description resolver-dnsjava
Use dnsjava for DNS SRV lookups. For platforms
that don't provide the javax.naming API (e.g. Android).

%package resolver-javax
Summary:       DNS SRV with Java7

%description resolver-javax
Use javax.naming for DNS SRV lookups. The
javax.naming API is available in JavaSE
since Java7.

%package resolver-minidns
Summary:       DNS SRV with minidns

%description resolver-minidns
Use minidns for DNS SRV lookups.
For platforms that don't provide the
javax.naming API (e.g. Android).

%package sasl-javax
Summary:       Smack javax SASL

%description sasl-javax
SASL with javax.security.sasl
Use javax.security.sasl for SASL.

%package sasl-provided
Summary:       Smack SASL provided code

%description sasl-provided
SASL with Smack provided code
Use Smack provided code for SASL.

%package tcp
Summary:       Smack TCP

%description tcp
Smack for standard XMPP connections over TCP.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n Smack-%{version} -a1
# cleanup
find . -name "*.class" -print -delete
find . -name "*.dll" -print -delete
find . -name "*.jar" -print  -delete

%patch0 -p0
%patch1 -p1

# remove prebuilt documentation
rm -rf javadoc/* documentation/*

# This is a dummy POM added just to ease building in the RPM platforms
# These are not all the modules, only those that we can currently build
cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.igniterealtime.smack</groupId>
  <artifactId>smack-parent</artifactId>
  <packaging>pom</packaging>
  <name>Smack Parent POM</name>
  <version>%{version}</version>
  <description>Smack Project</description>

  <modules>
    <module>smack-bosh</module>
    <module>smack-compression-jzlib</module>
    <module>smack-core</module>
    <module>smack-debug</module>
    <module>smack-debug-slf4j</module>
    <module>smack-experimental</module>
    <module>smack-extensions</module>
    <module>smack-im</module>
    <module>smack-java7</module>
    <module>smack-legacy</module>
    <module>smack-resolver-dnsjava</module>
    <module>smack-resolver-javax</module>
    <module>smack-resolver-minidns</module>
    <module>smack-sasl-javax</module>
    <module>smack-sasl-provided</module>
    <module>smack-tcp</module>
  </modules>

</project>
EOF

for m in bosh \
 compression-jzlib \
 core \
 debug \
 debug-slf4j \
 experimental \
 extensions \
 im \
 java7 \
 legacy \
 resolver-dnsjava \
 resolver-javax \
 resolver-minidns \
 sasl-javax \
 sasl-provided \
 tcp; do

%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.4 %{name}-${m} "
<configuration>
  <archive>
    <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
    <manifest>
      <addDefaultImplementationEntries>true</addDefaultImplementationEntries>
      <addDefaultSpecificationEntries>true</addDefaultSpecificationEntries>
    </manifest>
  </archive>
</configuration>"

%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" %{name}-${m}
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 %{name}-${m} "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Name>\${project.artifactId}</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.1 %{name}-${m} "
<configuration>
  <source>1.7</source>
  <target>1.7</target>
</configuration>"

sed -i "s|name>Smack|name>Smack ${m}|" %{name}-${m}/pom.xml

done

# Do not use OSGi manifest in test JAR
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:configuration" %{name}-core

# Fix test deps
%pom_xpath_inject "pom:plugin[pom:artifactId = 'maven-jar-plugin']" "
<executions>
  <execution>
    <goals>
      <goal>test-jar</goal>
    </goals>
  </execution>
</executions>" %{name}-core

for m in debug debug-slf4j experimental extensions im legacy sasl-javax sasl-provided tcp; do
%pom_add_dep org.igniterealtime.smack:smack-core:'${project.version}':test %{name}-${m} "<type>test-jar</type>"
done

%pom_add_dep com.jamesmurty.utils:java-xmlbuilder::test %{name}-experimental
%pom_add_dep junit:junit::test %{name}-experimental
%pom_add_dep junit:junit::test %{name}-extensions
#%%pom_add_dep org.hamcrest:hamcrest-all::test %%{name}-extensions
%pom_add_dep com.jamesmurty.utils:java-xmlbuilder::test %{name}-extensions
%pom_add_dep org.mockito:mockito-core::test %{name}-extensions
%pom_add_dep org.powermock:powermock-reflect::test %{name}-extensions
# org.powermock:powermock-api-mockito
%pom_add_dep xmlunit:xmlunit::test %{name}-extensions
%pom_add_dep junit:junit::test %{name}-im
%pom_add_dep junit:junit::test %{name}-legacy
%pom_add_dep junit:junit::test %{name}-sasl-javax
%pom_add_dep junit:junit::test %{name}-sasl-provided
%pom_add_dep junit:junit::test %{name}-tcp
%pom_add_dep com.jamesmurty.utils:java-xmlbuilder::test %{name}-tcp

# org.junit.ComparisonFailure
rm -r %{name}-extensions/src/test/java/org/jivesoftware/smackx/caps/EntityCapsManagerTest.java \
 %{name}-extensions/src/test/java/org/jivesoftware/smackx/vcardtemp/VCardTest.java \
 %{name}-extensions/src/test/java/org/jivesoftware/smackx/xdatavalidation/provider/DataValidationTest.java

# expected null, but was:<en>
rm -r %{name}-core/src/test/java/org/jivesoftware/smack/util/PacketParserUtilsTest.java

# Use web connection
rm -r %{name}-im/src/test/java/org/jivesoftware/smack/roster/RosterVersioningTest.java \
 %{name}-im/src/test/java/org/jivesoftware/smack/roster/rosterstore/DirectoryRosterStoreTest.java \
 %{name}-im/src/test/java/org/jivesoftware/smack/roster/RosterTest.java

# fix non ASCII chars
for s in %{name}-core/src/main/java/org/jivesoftware/smack/util/dns/HostAddress.java \
 %{name}-extensions/src/main/java/org/jivesoftware/smackx/caps/cache/SimpleDirectoryPersistentCache.java \
 %{name}-extensions/src/main/java/org/jivesoftware/smackx/bytestreams/socks5/Socks5BytestreamManager.java \
 %{name}-extensions/src/main/java/org/jivesoftware/smackx/address/MultipleRecipientManager.java \
 %{name}-extensions/src/main/java/org/jivesoftware/smackx/caps/packet/CapsExtension.java \
 %{name}-extensions/src/main/java/org/jivesoftware/smackx/caps/provider/CapsExtensionProvider.java \
 %{name}-extensions/src/main/java/org/jivesoftware/smackx/caps/EntityCapsManager.java \
 %{name}-extensions/src/main/java/org/jivesoftware/smackx/caps/cache/EntityCapsPersistentCache.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

%mvn_package :%{name}-core::tests: %{name}-core
%mvn_package :%{name}-parent __noinstall

%build

%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}-core
%doc README.md resources/releasedocs/README.html resources/releasedocs/changelog.html
%license LICENSE

%files bosh -f .mfiles-%{name}-bosh
%files compression-jzlib -f .mfiles-%{name}-compression-jzlib
%files debug -f .mfiles-%{name}-debug
%files debug-slf4j -f .mfiles-%{name}-debug-slf4j
%files experimental -f .mfiles-%{name}-experimental
%files extensions -f .mfiles-%{name}-extensions
%files im -f .mfiles-%{name}-im
%files java7 -f .mfiles-%{name}-java7
%files legacy -f .mfiles-%{name}-legacy
%files resolver-dnsjava -f .mfiles-%{name}-resolver-dnsjava
%files resolver-javax -f .mfiles-%{name}-resolver-javax
%files resolver-minidns -f .mfiles-%{name}-resolver-minidns
%files sasl-javax -f .mfiles-%{name}-sasl-javax
%files sasl-provided -f .mfiles-%{name}-sasl-provided
%files tcp -f .mfiles-%{name}-tcp

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17239 |21mr|smartmontools-7.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	For monitoring S.M.A.R.T. disks and devices
Name:		smartmontools
Version:	7.4
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://www.smartmontools.org/
Source0:	https://sourceforge.net/projects/smartmontools/files/%{name}/%{version}/%{name}-%{version}.tar.gz
Source2:	smartd.conf
Source3:	smartd.sysconfig
Source4:	smartd.service
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libselinux)
Provides:	smartsuite = %{EVRD}

%description
SMARTmontools controls and monitors storage devices using the Self-Monitoring,
Analysis and Reporting Technology System (S.M.A.R.T.) built into ATA and SCSI
Hard Drives. This is used to check the reliability of the hard drive and
predict drive failures. The suite contains two utilities. The first, smartctl,
is a command-line utility designed to perform simple S.M.A.R.T. tasks. The
second, smartd, is a daemon that periodically monitors smart status and
reports errors to syslog. The package is compatible with the ATA/ATAPI-5
specification. Future releases will be compatible with the ATA/ATAPI-6 and
ATA/ATAPI-7 specifications. The package is intended to incorporate as much
"vendor specific" and "reserved" information as possible about disk drives.
man smartctl and man smartd will provide more information.

%files
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/smartd.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/smartd_warning.sh
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/smartd
%attr(0644,root,root) %{_unitdir}/smartd.service
%{_sbindir}/*
%{_mandir}/man?/*
%{_docdir}/%{name}
%{_datadir}/%{name}/drivedb.h

%post
%systemd_post smartd.service

%preun
%systemd_preun smartd.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--with-libcap-ng=yes \
	--with-drivedb \
	--with-selinux=yes

%make_build

%install
install -d %{buildroot}%{_sysconfdir}/sysconfig

%make_install

install %{SOURCE2} %{buildroot}%{_sysconfdir}/
install %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/smartd
install -D -p -m 644 %{SOURCE4} %{buildroot}/lib/systemd/system/smartd.service
rm -f %{buildroot}%{_initrddir}/smartd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17240 |21mr|smb4k-3.1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	SMB share browser for KDE
Name:		smb4k
Version:	3.1.0
Release:	3
License:	GPLv2+
Group:		Networking/Other
Url:		http://smb4k.sourceforge.net
Source0:	http://downloads.sourceforge.net/smb4k/%{name}-%{version}.tar.xz
Source1:	smb4k-3.1.0_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5auth-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5dnssd-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5jobwidgets-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5solid-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(smbclient)
Requires:	samba-client

%description
An SMB network and share browser for KDE.

%files -f %{name}.lang
%doc README AUTHORS BUGS COPYING ChangeLog
%{_kde5_applicationsdir}/org.kde.%{name}.desktop
%{_kde5_bindir}/%{name}*
%{_kde5_datadir}/config.kcfg/%{name}.kcfg
%{_kde5_datadir}/kconf_update/*
%{_kde5_datadir}/kxmlgui5/%{name}/
%{_kde5_datadir}/plasma/plasmoids/org.kde.smb4kqml/*
%{_kde5_docdir}/HTML/*/smb4k/
%{_kde5_iconsdir}/*/*/*/%{name}.png
%{_kde5_libexecdir}/kauth/mounthelper
%{_kde5_notificationsdir}/%{name}.notifyrc
%{_kde5_qmldir}/org/kde/smb4k/smb4kqmlplugin/*
%{_kde5_services}/plasma-applet-org.kde.smb4kqml.desktop
%{_appdatadir}/org.kde.%{name}.appdata.xml
%{_appdatadir}/org.kde.%{name}qml.appdata.xml
%{_datadir}/dbus-1/system-services/org.kde.%{name}.mounthelper.service
%{_datadir}/dbus-1/system.d/org.kde.%{name}.mounthelper.conf
%{_datadir}/polkit-1/actions/org.kde.%{name}.mounthelper.policy
%{_qt5_plugindir}/*.so
%{_kde5_libdir}/libsmb4kcore.so

#----------------------------------------------------------------------------

%prep
%setup -q

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-html --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17241 |21mr|smpeg-0.4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 0.4
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	SDL MPEG Library
Name:		smpeg
Version:	0.4.5
Release:	1
License:	LGPLv2+
Group:		Video
Url:		http://icculus.org/smpeg/
Source0:	%{name}-%{version}.tar.gz
Patch0:		smpeg-remove-rpath-in-smpeg-config.patch
Patch1:		smpeg-0.4.4-format_not_a_string_literal_and_no_format_arguments.diff
Patch2:		smpeg-0.4.4-automake.patch
Patch3:		smpeg-gtv.patch
Patch4:		smpeg-0.4.4-plaympeg.patch
BuildRequires:	libstdc++-static-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(sdl)

%description
SMPEG is based on UC Berkeley's mpeg_play software MPEG decoder and SPLAY,
an mpeg audio decoder created by Woo-jae Jung. We have completed the
initial work to wed these two projects in order to create a general
purpose MPEG video/audio player for the Linux OS.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Conflicts:	%{_lib}smpeg0.4 < 0.4.4-50
Obsoletes:	%{_lib}smpeg0.4 < 0.4.4-50

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%doc README
%{_libdir}/libsmpeg-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
#gw smpeg-config calls sdl-config
Requires:	pkgconfig(sdl)
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc CHANGES COPYING README
%{_bindir}/smpeg-config
%{_includedir}/*
%{_libdir}/libsmpeg.so
%{_datadir}/aclocal/smpeg.m4

#----------------------------------------------------------------------------
%package tools
Summary:	Command line tools for working with %{name}
Group:		Video
Requires:	%{libname} = %{EVRD}

%description tools
Command line tools for working with %{name}

%files tools
%{_bindir}/plaympeg
%exclude %{_mandir}/man1/gtv*
%{_mandir}/man1/plaympeg*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p0
%patch1 -p0 -b .format_not_a_string_literal_and_no_format_arguments
%patch2 -p1
%patch3 -p1
%patch4 -p1

# needed by Patch1
touch NEWS AUTHORS ChangeLog

%build
rm -rf acinclude
cp -f /usr/share/automake*/depcomp . || :
cat >acinclude.m4 <<EOF #HACK
AC_DEFUN([AC_TYPE_SOCKLEN_T],
[AC_CACHE_CHECK([for socklen_t], ac_cv_type_socklen_t,
[
  AC_TRY_COMPILE(
  [#include <sys/socket.h>],
  [socklen_t len = 42; return len;],
  ac_cv_type_socklen_t=yes,
  ac_cv_type_socklen_t=no)
])
  if test $ac_cv_type_socklen_t != yes; then
    AC_DEFINE(socklen_t, int)
  fi
])
AC_DEFUN([AM_PATH_GTK], [return 1])
EOF

%global optflags %{optflags} -Wno-error=narrowing

./autogen.sh
%configure  --disable-debug \
	    --disable-gtk-player \
	    --disable-opengl-player \
	    --with-sdl-prefix=%_prefix \
	    --disable-static
# (gc) this sucking rpath thing...
perl -pi -e 's/finalize_rpath="\$rpath"/finalize_rpath=/' libtool
make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17242 |21mr|smplayer-24.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Complete front-end for mplayer written in Qt
Name:		smplayer
Version:	24.5.0
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Video
Url:		http://www.smplayer.info
Source0:	https://github.com/smplayer-dev/smplayer/releases/download/%{version}/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
Patch0:		default.gui.patch
Patch1:		0001-Enable-hardware-accelerated-decoding-by-default.patch
Patch2:		smplayer-24.5.0-drop-unneeded-functional.patch
BuildRequires:	gcc-c++
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Requires:	mpv
Requires:	mpv-core
Recommends:	smplayer-themes
Recommends:	smtube

%description
SMPlayer intends to be a complete front-end for MPlayer, from basic features
like playing videos, DVDs, and VCDs to more advanced features like support
for MPlayer filters and more.
One of the most interesting features of SMPlayer: it remembers the
settings of all files you play. So you start to watch a movie but you
have to leave... don't worry, when you open that movie again it will
resume at the same point you left it, and with the same settings:
audio track, subtitles, volume...
SMPlayer supports themes which can be found in smplayer-themes package.

%files
%doc README.md Release_notes.md *.txt
%license Copying*
%{_appdatadir}/%{name}.appdata.xml
%{_bindir}/%{name}
%{_bindir}/simple_web_server
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}/*.conf
%{_datadir}/%{name}/shortcuts/*
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/shortcuts
%dir %{_datadir}/%{name}/translations
%{_docdir}/%{name}/*/gpl.html
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.svg
%lang(am) %{_datadir}/%{name}/translations/smplayer_am.qm
%lang(ar) %{_datadir}/%{name}/translations/smplayer_ar.qm
%lang(ar_SY) %{_datadir}/%{name}/translations/smplayer_ar_SY.qm
%lang(bg) %{_datadir}/%{name}/translations/smplayer_bg.qm
%lang(ca) %{_datadir}/%{name}/translations/smplayer_ca.qm
%lang(cs) %{_datadir}/%{name}/translations/smplayer_cs.qm
%lang(da) %{_datadir}/%{name}/translations/smplayer_da.qm
%lang(de) %{_datadir}/%{name}/translations/smplayer_de.qm
%lang(el) %{_datadir}/%{name}/translations/smplayer_el.qm
%lang(en) %{_datadir}/%{name}/translations/smplayer_en_GB.qm
%lang(en) %{_datadir}/%{name}/translations/smplayer_en.qm
%lang(en_US) %{_datadir}/%{name}/translations/smplayer_en_US.qm
%lang(es) %{_datadir}/%{name}/translations/smplayer_es.qm
%lang(es_ES) %{_datadir}/%{name}/translations/smplayer_es_ES.qm
%lang(et) %{_datadir}/%{name}/translations/smplayer_et.qm
%lang(eu) %{_datadir}/%{name}/translations/smplayer_eu.qm
%lang(fa) %{_datadir}/%{name}/translations/smplayer_fa.qm
%lang(fi) %{_datadir}/%{name}/translations/smplayer_fi.qm
%lang(fr) %{_datadir}/%{name}/translations/smplayer_fr.qm
%lang(gl) %{_datadir}/%{name}/translations/smplayer_gl.qm
%lang(he_IL) %{_datadir}/%{name}/translations/smplayer_he_IL.qm
%lang(hr) %{_datadir}/%{name}/translations/smplayer_hr.qm
%lang(hu) %{_datadir}/%{name}/translations/smplayer_hu.qm
%lang(id) %{_datadir}/%{name}/translations/smplayer_id.qm
%lang(it) %{_datadir}/%{name}/translations/smplayer_it.qm
%lang(ja) %{_datadir}/%{name}/translations/smplayer_ja.qm
%lang(ka) %{_datadir}/%{name}/translations/smplayer_ka.qm
%lang(ko) %{_datadir}/%{name}/translations/smplayer_ko.qm
%lang(ku) %{_datadir}/%{name}/translations/smplayer_ku.qm
%lang(lt) %{_datadir}/%{name}/translations/smplayer_lt.qm
%lang(mk) %{_datadir}/%{name}/translations/smplayer_mk.qm
%lang(ms_MY) %{_datadir}/%{name}/translations/smplayer_ms_MY.qm
%lang(nb_NO) %{_datadir}/%{name}/translations/smplayer_nb_NO.qm
%lang(nl) %{_datadir}/%{name}/translations/smplayer_nl.qm
%lang(nn_NO) %{_datadir}/%{name}/translations/smplayer_nn_NO.qm
%lang(pl) %{_datadir}/%{name}/translations/smplayer_pl.qm
%lang(pt_BR) %{_datadir}/%{name}/translations/smplayer_pt_BR.qm
%lang(pt) %{_datadir}/%{name}/translations/smplayer_pt.qm
%lang(ro_RO) %{_datadir}/%{name}/translations/smplayer_ro_RO.qm
%lang(ru_RU) %{_datadir}/%{name}/translations/smplayer_ru_RU.qm
%lang(sk) %{_datadir}/%{name}/translations/smplayer_sk.qm
%lang(sl) %{_datadir}/%{name}/translations/smplayer_sl_SI.qm
%lang(sq_AL) %{_datadir}/%{name}/translations/smplayer_sq_AL.qm
%lang(sr) %{_datadir}/%{name}/translations/smplayer_sr.qm
%lang(sv) %{_datadir}/%{name}/translations/smplayer_sv.qm
%lang(th) %{_datadir}/%{name}/translations/smplayer_th.qm
%lang(tr) %{_datadir}/%{name}/translations/smplayer_tr.qm
%lang(uk_UA) %{_datadir}/%{name}/translations/smplayer_uk_UA.qm
%lang(uz) %{_datadir}/%{name}/translations/smplayer_uz.qm
%lang(vi) %{_datadir}/%{name}/translations/smplayer_vi_VN.qm
%lang(zh_CN) %{_datadir}/%{name}/translations/smplayer_zh_CN.qm
%lang(zh_TW) %{_datadir}/%{name}/translations/smplayer_zh_TW.qm
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# fix some linting
perl -i -pe 's/\r\n/\n/gs' {Copying,Copying_BSD,Copying_libmaia,Copying_openssl,Readme,Portable_Edition}.txt
perl -i -pe 's/\r\n/\n/gs' Release_notes.md

# Drop unneeded files
rm -f src/prefupdates*
rm -f src/reminderdialog*
rm -f src/share*
rm -f src/updatechecker*

%build
%setup_compile_flags
%make	\
	'DOC_PATH=\"%{_docdir}/%{name}\"'	\
	LRELEASE=lrelease-qt5	\
	PREFIX=%{_prefix}	\
	QMAKE=qmake-qt5

%install
%makeinstall_std PREFIX=%{_prefix}

# Allow html docs
mv %{buildroot}%{_docdir}/packages/%{name} %{buildroot}%{_docdir}/%{name}
rm -fr %{buildroot}%{_docdir}/packages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17243 |21mr|smplayer-themes-20.11.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Themes for SMPlayer
Name:		smplayer-themes
Version:	20.11.0
Release:	2
Epoch:		2
License:	GPLv2+
Group:		Video
Url:		http://smplayer.sourceforge.net
Source0:	http://downloads.sourceforge.net/project/smplayer/SMPlayer-themes/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	qt4-devel
Requires:	smplayer
BuildArch:	noarch

%description
A set of themes for SMPlayer.

%files
%doc README.txt Changelog
%dir %{_datadir}/smplayer/themes
%{_datadir}/smplayer/themes/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
%makeinstall_std DESTDIR=%{buildroot} PREFIX=%{_prefix}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17244 |21mr|smproxy-1.0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: smproxy
Version: 1.0.6
Release: 7
Summary: Session Manager Proxy
Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: libxmu-devel >= 1.0.0
BuildRequires: libxt-devel >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
Smproxy allows X applications that do not support X11R6 session management
to participate in an X11R6 session.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/smproxy
%{_mandir}/man1/smproxy.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17245 |21mr|smtube-21.10.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Allows to play and download videos from YouTube
Name:		smtube
Version:	21.10.0
Release:	4
License:	GPLv2+
Group:		Video
Url:		https://www.smtube.org/
Source0:	https://github.com/smplayer-dev/smtube/releases/download/v%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
Recommends:	smplayer
Recommends:	yt-dlp

%description
SMTube is a tool for searching and downloading videos from YouTube.
It supports SMPlayer, VLC and some other players.

%files
%{_bindir}/%{name}
%{_datadir}/applications//%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/%{name}/translations/*.qm
%{_docdir}/%{name}/

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%setup_compile_flags
%make \
	QMAKE=%{_bindir}/qmake-qt5 \
	LRELEASE=%{_bindir}/lrelease-qt5 \
	PREFIX=%{_prefix}


%install
%makeinstall_std PREFIX=%{_prefix}

find %{buildroot} -size 0 -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17246 |21mr|snakeyaml-1.25-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global vertag 8450addf3473

%bcond_with spring

Name:           snakeyaml
Summary:        YAML parser and emitter for Java
Version:        1.25
Release:        1
License:        ASL 2.0

URL:            https://bitbucket.org/asomov/%{name}
Source0:        %{url}/get/%{name}-%{version}.tar.gz

# Upstream has forked gdata-java and base64 and refuses [1] to
# consider replacing them by external dependencies.  Bundled libraries
# need to be removed and their use replaced by system libraries.
# See rhbz#875777 and http://code.google.com/p/snakeyaml/issues/detail?id=175
#
# Remove use of bundled Base64 implementation
Patch0:         0001-Replace-bundled-base64-implementation.patch
# We don't have gdata-java in Fedora any longer, use commons-codec instead
Patch1:         0002-Replace-bundled-gdata-java-client-classes-with-commo.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(biz.source_code:base64coder)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(joda-time:joda-time)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.velocity:velocity)
%if %{with spring}
BuildRequires:  mvn(org.springframework:spring-core)
BuildRequires:  mvn(org.springframework:spring-beans)
BuildRequires:  mvn(org.springframework:spring-context-support)
%endif

%description
SnakeYAML features:
    * a complete YAML 1.1 parser. In particular,
      SnakeYAML can parse all examples from the specification.
    * Unicode support including UTF-8/UTF-16 input/output.
    * high-level API for serializing and deserializing
      native Java objects.
    * support for all types from the YAML types repository.
    * relatively sensible error messages.


%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package contains %{summary}.


%prep
%setup -q -n asomov-%{name}-%{vertag}
%patch0 -p1
%patch1 -p1

%mvn_file : %{name}

%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :maven-changes-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-license-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :nexus-staging-maven-plugin

sed -i "/<artifactId>spring</s/spring/&-core/" pom.xml
rm -f src/test/java/examples/SpringTest.java

# Replacement for bundled gdata-java-client
%pom_add_dep commons-codec:commons-codec
# Re-add bundled base64coder
%pom_add_dep biz.source_code:base64coder

# remove bundled stuff
rm -rf target

# fails in rpmbuild only due to different locale
rm src/test/java/org/yaml/snakeyaml/issues/issue67/NonAsciiCharsInClassNameTest.java
# fails after unbundling
rm src/test/java/org/yaml/snakeyaml/issues/issue318/ContextClassLoaderTest.java

# convert CR+LF to LF
sed -i 's/\r//g' LICENSE.txt

%if %{without spring}
%pom_remove_dep org.springframework
rm -r src/test/java/org/yaml/snakeyaml/issues/issue9
rm src/test/java/org/yaml/snakeyaml/helpers/FileTestHelper.java
%endif


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17247 |21mr|snappy-1.1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Fast compression and decompression library
Name:		snappy
Version:	1.1.8
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://code.google.com/p/snappy/
Source0:	https://github.com/google/snappy/archive/%{version}.tar.gz
Patch0:		snappy-gtest.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	gtest-devel
BuildRequires:	pkgconfig(gmock)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(zlib)

%description
Snappy is a compression/decompression library. It does not aim for maximum
compression, or compatibility with any other compression library; instead, it
aims for very high speeds and reasonable compression. For instance, compared to
the fastest mode of zlib, Snappy is an order of magnitude faster for most
inputs, but the resulting compressed files are anywhere from 20% to 100%
bigger.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
%rename		%{name}

%description -n %{libname}
Snappy is a compression/decompression library. It does not aim for maximum
compression, or compatibility with any other compression library; instead, it
aims for very high speeds and reasonable compression. For instance, compared to
the fastest mode of zlib, Snappy is an order of magnitude faster for most
inputs, but the resulting compressed files are anywhere from 20% to 100%
bigger.

This package contains shared libraries for %{name}.

%files -n %{libname}
%{_libdir}/libsnappy.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc AUTHORS COPYING NEWS
%doc format_description.txt
%{_includedir}/snappy*.h
%{_libdir}/libsnappy.so
%{_libdir}/cmake/Snappy/*
%{_libdir}/pkgconfig/snappy.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DBUILD_SHARED_LIBS:BOOL=ON \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

# create pkgconfig file
cat << EOF >snappy.pc
prefix=%{_prefix}
exec_prefix=%{_exec_prefix}
includedir=%{_includedir}
libdir=%{_libdir}

Name: %{name}
Description: A fast compression/decompression library
Version: %{version}
Cflags: -I\${includedir}
Libs: -L\${libdir} -lsnappy
EOF

install -m644 -D snappy.pc %{buildroot}%{_libdir}/pkgconfig/snappy.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17248 |21mr|snappy-java-1.1.2.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# empty debuginfo
%global debug_package %nil

Name:             snappy-java
Version:          1.1.2.4
Release:          12
Summary:          Fast compressor/decompresser
License:          ASL 2.0
Group:            Development/Java
URL:              http://xerial.org/snappy-java/
Source0:          https://github.com/xerial/snappy-java/archive/%{version}.tar.gz
# Not able to build snappy-java jni library with sbt:
# use sbt = 0.13.8 (use scala 2.11.6) available 0.13.1 (use scala 2.10.4)
# Too many missing plugins:
# com.etsy:sbt-checkstyle-plugin:0.4.3
# com.github.gseitz:sbt-release:1.0.0
# com.jsuereth:sbt-pgp:1.0.0
# com.typesafe.sbt:sbt-osgi:0.7.0
# de.johoop:findbugs4sbt:1.4.0
# de.johoop:jacoco4sbt:2.1.5
# org.xerial.sbt:sbt-sonatype:0.5.0
Source1:          http://central.maven.org/maven2/org/xerial/snappy/%{name}/%{version}/%{name}-%{version}.pom
Patch0:           snappy-java-1.1.2-build.patch
Patch1:           snappy-java-1.1.2.4-lsnappy.patch

BuildRequires:    make
BuildRequires:    gcc-c++
BuildRequires:    libstdc++-static-devel
BuildRequires:    snappy-devel

BuildRequires:    maven-local
BuildRequires:    mvn(com.sun:tools)
BuildRequires:    mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:    mvn(org.apache.felix:org.osgi.core)
BuildRequires:    mvn(org.apache.maven.plugins:maven-antrun-plugin)

Requires:         snappy

%description
A Java port of the snappy, a fast compresser/decompresser written in C++.

%package javadoc
Summary:          Javadoc for %{name}
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
# Cleanup
find -name "*.class" -print -delete
find -name "*.jar" -print -delete
rm -r ./*sbt* project

# Remove prebuilt libraries
find -name "*.jnilib" -print -delete
find -name "*.dll" -print -delete
find -name "*.so" -print -delete
find -name "*.a" -print -delete
find -name "*.h" -print -delete

%patch0 -p1
%patch1 -p1

cp %{SOURCE1} pom.xml
%pom_change_dep org.osgi: org.apache.felix::1.4.0
%pom_xpath_remove "pom:dependency[pom:scope = 'test']"

# Build JNI library
%pom_add_plugin org.apache.maven.plugins:maven-antrun-plugin . '
<dependencies>
 <dependency>
  <groupId>com.sun</groupId>
  <artifactId>tools</artifactId>
  <version>1.8.0</version>
 </dependency>
</dependencies>

<executions>
  <execution>
  <id>compile</id>
  <phase>process-classes</phase>
    <configuration>
      <target>
       <javac destdir="lib"
         srcdir="src/main/java"
         source="1.6" target="1.6" debug="on"
         classpathref="maven.plugin.classpath">
         <include name="**/OSInfo.java"/>
       </javac>
       <exec executable="make" failonerror="true">
        <arg line="%{?_smp_mflags}"/>
       </exec>
      </target>
    </configuration>
    <goals>
      <goal>run</goal>
    </goals>
  </execution>
</executions>'
# Add OSGi support
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Activator>org.xerial.snappy.SnappyBundleActivator</Bundle-Activator>
    <Bundle-ActivationPolicy>lazy</Bundle-ActivationPolicy>
    <Bundle-SymbolicName>${project.groupId}.${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Version>${project.version}</Bundle-Version>
    <Import-Package>org.osgi.framework,*</Import-Package>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 . '
<configuration>
 <source>1.6</source>
 <target>1.6</target>
</configuration>'

chmod 644 NOTICE README.md
# Convert from dos to unix line ending
for file in LICENSE NOTICE README.md; do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

%build

CXXFLAGS="${CXXFLAGS:-%optflags}"
export CXXFLAGS
# No test deps available:
#    org.xerial.java:xerial-core:2.1
#    org.xerial:xerial-core:3.2.3
#    org.scalatest:scalatest_2.11:2.2.0
#    com.novocode:junit-interface:0.10
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17249 |21mr|sndio-1.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major	7
%define	libname %mklibname sndio %{major}
%define	devel	%mklibname sndio -d

Summary:	A sound library
Name:		sndio
Version:	1.8.1
Release:	1
Group:		Sound
License:	ISC
Url:		http://www.sndio.org
Source0:	http://www.sndio.org/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	pkgconfig(alsa)
Requires:	%{libname} = %{EVRD}
Requires(pre,post,preun,postun):	rpm-helper

%description
Sndio is a small audio and MIDI framework. It provides a lightweight audio &
MIDI server and a fully documented user-space API to access either the server
or directly the hardware in a uniform way. Reliability through simplicity are
part of the project goals. 

%files
%{_bindir}/aucat
%{_bindir}/midicat
%{_bindir}/sndiod
%{_bindir}/sndioctl
%{_mandir}/man*/*
%{_unitdir}/sndiod.service
%{_sysconfdir}/default/sndiod

%pre
%_pre_useradd sndiod /dev/null /bin/false
/usr/sbin/usermod -a -G audio sndiod

%post
%_post_service sndiod

%preun
%_preun_service sndiod

%postun
/usr/sbin/usermod -G sndiod sndiod
%_postun_userdel sndiod

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the libraries for %{name}.

%files -n %{libname}
%{_libdir}/libsndio.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{devel}
Summary:	The development files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n	%{devel}
This package contains the development files for %{name}.

%files -n %{devel}
%{_includedir}/%{name}.h
%{_libdir}/libsndio.so
%{_libdir}/pkgconfig/sndio.pc

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%setup_compile_flags
./configure \
--prefix=%{_prefix} \
--libdir=%{_libdir} \
--mandir=%{_mandir} \
--pkgconfdir=%{_libdir}/pkgconfig

%make


%install
%makeinstall_std

# Install sndiod systemd service file
%__install -Dm 755 contrib/sndiod.service %{buildroot}%{_unitdir}/sndiod.service
%__install -Dm 644 contrib/default.sndiod %{buildroot}%{_sysconfdir}/default/sndiod

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17250 |21mr|snmp4j-2.4.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          snmp4j
Version:       2.4.1
Release:       8
Summary:       The Object Oriented SNMP API for Java Managers and Agents
License:       ASL 2.0
URL:           http://www.snmp4j.org/
Source0:       https://oosnmp.net/dist/release/org/snmp4j/%{name}/%{version}/%{name}-%{version}-distribution.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
SNMP4J is an enterprise class free open source and
state-of-the-art SNMP implementation for Java 2SE 1.4 or
later. SNMP4J supports command generation (managers) as
well as command responding (agents). Its clean object
oriented design is inspired by SNMP++, which is a
well-known SNMPv1/v2c/v3 API for C++ (see http://www.agentpp.com).

The SNMP4J Java SNMP API provides the following features:

* SNMPv3 with MD5 and SHA authentication and DES, 3DES,
  AES 128, AES 192, and AES 256 privacy.
* Pluggable Message Processing Models with implementations
  for MPv1, MPv2c, and MPv3
* All PDU types.
* Pluggable transport mappings. UDP, TCP, and TLS are supported
  out-of-the-box.
* Pluggable timeout model.
* Synchronous and asynchronous requests.
* Command generator as well as command res-ponder support.
* Free open source with the Apache license model
* Java 1.4.1 or later (1.6 for version 2.0 or later)
* Logging based on Log4J
* Row-based efficient asynchronous table retrieval with GETBULK.
* Multi-threading support.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
# cleanup
find -name "*.jar" -delete
find -name "*.class" -delete

# remove wagon-webdav-jackrabbit
%pom_xpath_remove "pom:build/pom:extensions"

# required by Apache Camel
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration/pom:excludes"
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration" '
<archive>
  <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
</archive>'
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Export-Package>org.snmp4j.*;version="${project.version}"</Export-Package>
    <Import-Package>javax.crypto*,javax.net.ssl,javax.security*,org.apache.log4j*;resolution:=optional,*</Import-Package>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-source-plugin

for s in src/main/java/org/snmp4j/PDUv1.java \
 src/main/java/org/snmp4j/Snmp.java \
 src/main/java/org/snmp4j/SNMP4JSettings.java \
 src/main/java/org/snmp4j/mp/MessageProcessingModel.java \
 src/main/java/org/snmp4j/mp/MPv3.java \
 src/main/java/org/snmp4j/security/TSM.java \
 src/main/java/org/snmp4j/security/USM.java \
 src/main/java/org/snmp4j/security/UsmUser.java \
 src/main/java/org/snmp4j/transport/DefaultSshTransportMapping.java; do
  native2ascii -encoding UTF8 ${s} ${s}
done

%pom_change_dep :log4j ::1.2.17

# Convert from dos to unix line ending
for file in CHANGES.txt \
 LICENSE-2_0.txt \
 NOTICE \
 snmp4j_usage.txt \
 mibs/OOSNMP-USM-MIB.txt \
 mibs/SNMP-USM-HMAC-SHA2-MIB.txt
do
 sed -i.orig 's|\r||g' $file
 touch -r $file.orig $file
 rm $file.orig
done

# AssertionFailedError: null
rm src/test/java/org/snmp4j/SnmpTest.java

%mvn_file :%{name} %{name}
%mvn_alias :%{name} "org.apache.servicemix.bundles:org.apache.servicemix.bundles.snmp4j"

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.txt snmp4j_usage.txt mibs
%license LICENSE-2_0.txt NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE-2_0.txt NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17251 |21mr|snort-2.9.18-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An Intrusion Detection System (IDS)
Name:		snort
Version:	2.9.18
Release:	1
License:	GPLv2+
Group:		Networking/Other
Url:		https://www.snort.org
Source0:	https://www.snort.org/downloads/snort/%{name}-%{version}.tar.gz
Source1:	snort-tmpfiles.conf
Source3:	snort.service
Source4:	snort.logrotate
Source5:	snort.sysconfig
Source6:	snortdb-extra
Source7:	snort-wrapper.sh
Source100:	%{name}.rpmlintrc
Patch0:		snort-lib64.diff
# (oe) http://www.inliniac.net/files/
Patch1:		snort-2.9.8.0-snortsam.diff
Patch2:		snort-2.9.8.0-plugins_fix.diff
Patch5:		snort-2.9.4.6-conf.diff
Patch6:		snort-2.9.2.2-pcre-ldflags.patch
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	flex
#BuildRequires:	latex2html
BuildRequires:	texinfo
BuildRequires:	daq-devel
BuildRequires:	daq-static-devel
BuildRequires:	dnet-devel
BuildRequires:	libnet-devel
BuildRequires:	mysql-devel
BuildRequires:	netfilter_queue-devel
BuildRequires:	pcap-devel
BuildRequires:	postgresql-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libipq)
BuildRequires:	pkgconfig(libnfnetlink)
BuildRequires:	pkgconfig(libnghttp2)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libprelude)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(luajit)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(xtables)
BuildRequires:	pkgconfig(zlib)
Requires:	daq-modules
Requires:	pcre
Requires:	pcap
Requires:	snort-rules
Recommends:	snortsam
Obsoletes:	snort-bloat < 2.9.16-3
Obsoletes:	snort-inline < 2.9.16-3
Obsoletes:	snort-inline+flexresp < 2.9.16-3
Obsoletes:	snort-mysql < 2.9.16-3
Obsoletes:	snort-mysql+flexresp < 2.9.16-3
Obsoletes:	snort-postgresql < 2.9.16-3
Obsoletes:	snort-postgresql+flexresp < 2.9.16-3
Obsoletes:	snort-prelude < 2.9.16-3
Obsoletes:	snort-prelude+flexresp < 2.9.16-3
Requires(post,preun,pre,postun):	rpm-helper
Requires(preun,post):	snort-rules

%description
Snort is a libpcap-based packet sniffer/logger which can be used as a
lightweight network intrusion detection system. It features rules based logging
and can perform protocol analysis, content searching/matching and can be used
to detect a variety of attacks and probes, such as buffer overflows, stealth
port scans, CGI attacks, SMB probes, OS fingerprinting attempts, and much more.
Snort has a real-time alerting capabilty, with alerts being sent to syslog, a
separate "alert" file, or as a WinPopup message via Samba's smbclient

This rpm is different from previous rpms and while it will not clobber
your current snort file, you will need to modify it.

There are 9 different packages available

All of them require the base snort rpm.  Additionally, you will need
to chose a binary to install.

%{_sbindir}/snort should end up being a symlink to a binary in one of
the following configurations. We use update-alternatives for this.
Here are the different packages along with their priorities:
- plain(10)
- plain+flexresp(11)

Please see the documentation in %{_docdir}/%{name}

%files
%doc COPYING ChangeLog RELEASE.NOTES
%doc doc/AUTHORS doc/BUGS doc/CREDITS doc/generators doc/INSTALL doc/NEWS doc/PROBLEMS doc/README
%doc doc/README.* doc/TODO doc/USAGE doc/WISHLIST
%doc doc/*.pdf doc/*.tex
%doc tools/u2boat/README.u2boat
%{_sbindir}/%{name}-plain
%{_bindir}/appid_detector_builder.sh
%{_bindir}/u2boat
%{_bindir}/u2openappid
%{_bindir}/u2spewfoo
%{_bindir}/u2streamer
%{_mandir}/man8/%{name}.8*
%attr(0755,snort,snort) %dir /var/log/%{name}
%attr(0755,snort,snort) %dir /var/log/%{name}/empty
%ghost %attr(0755,snort,snort) %dir /var/run/%{name}
%attr(0755,root,root) %dir %{_sysconfdir}/%{name}
%attr(0755,root,root) %dir %{_sysconfdir}/%{name}/rules
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/file_magic.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/*.config
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/threshold.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/%{name}/*.map
%attr(0640,root,root) %config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0644,root,root) %{_unitdir}/%{name}.service
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/dynamicengine
%dir %{_libdir}/%{name}/dynamicpreprocessor
%dir %{_libdir}/%{name}/dynamic_output
%{_libdir}/%{name}/dynamicengine/libsf_engine.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_appid_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_dce2_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_dnp3_preproc.*
%{_libdir}/%{name}/dynamicpreprocessor/libsf_dns_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_ftptelnet_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_gtp_preproc.*
%{_libdir}/%{name}/dynamicpreprocessor/libsf_imap_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_modbus_preproc.*
%{_libdir}/%{name}/dynamicpreprocessor/libsf_pop_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_reputation_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_sdf_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_sip_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_smtp_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_ssh_preproc.so
%{_libdir}/%{name}/dynamicpreprocessor/libsf_ssl_preproc.so
%{_libdir}/snort_dynamicpreprocessor/libsf_s7commplus_preproc.so.*
%attr(0755,root,root) %{_libexecdir}/snort-wrapper.sh
%{_tmpfilesdir}/%{name}.conf

%pre
%_pre_useradd snort /var/log/snort /bin/false

%post
%{_sbindir}/update-alternatives --install %{_sbindir}/%{name} %{name} %{_sbindir}/%{name}-plain 10
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%systemd_post snort

%preun
%systemd_preun snort

%postun
%_postun_userdel snort
# remove the link if not upgrade
if [ $1 = 0 ]; then
    %{_sbindir}/update-alternatives --remove %{name} %{_sbindir}/%{name}-plain
fi

#----------------------------------------------------------------------------

%package plain+flexresp
Summary:	Snort with Flexible Response
Group:		Networking/Other
Requires:	%{name} >= %{EVRD}

%description plain+flexresp
Snort compiled with flexresp support. FlexResp allows snort to actively close
offending connections.

%files plain+flexresp
%{_sbindir}/%{name}-plain+flexresp

%post plain+flexresp
%{_sbindir}/update-alternatives --install %{_sbindir}/%{name} %{name} %{_sbindir}/%{name}-plain+flexresp 11

%postun plain+flexresp
%{_sbindir}/update-alternatives --remove %{name} %{_sbindir}/%{name}-plain+flexresp

#----------------------------------------------------------------------------

%package devel
Summary:	Snort development files
Group:		Networking/Other
Conflicts:	%{name} < 2.9.16-3

%description devel
This package includes the development files for %{name}.

%files devel
%dir %{_libdir}/pkgconfig
%{_libdir}/pkgconfig/snort_output.pc
%{_libdir}/pkgconfig/snort.pc
%{_libdir}/pkgconfig/snort_preproc.pc
%{_libdir}/snort_dynamicpreprocessor/libsf_s7commplus_preproc.so
%{_libdir}/%{name}/dynamic_output/libsf_dynamic_output.a
%{_libdir}/%{name}/dynamic_preproc/libsf_dynamic_preproc.a
%dir %{_includedir}/%{name}/dynamic_preproc
%{_includedir}/%{name}/dynamic_preproc/*.h
%dir %{_includedir}/%{name}/dynamic_output
%{_includedir}/%{name}/dynamic_output/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .lib64
%patch1 -p1 -b .snortsam
%patch2 -p1 -b .plugins_fix
%patch5 -p0
%patch6 -p0

# fix pid file path
echo "#define _PATH_VARRUN \"%{_var}/run/%{name}\"" >> acconfig.h

cp -a %{SOURCE6} .

%build
%config_update
%serverbuild
export WANT_AUTOCONF_2_5=1
rm -f configure
libtoolize --automake --copy --force; aclocal -I m4; autoheader; automake --foreign --add-missing --copy; autoconf

# build snort
rm -rf building && mkdir -p building && cd building
SNORT_BASE_CONFIG="--prefix=%{_prefix} \
    --libdir=%{_libdir} \
    --libexecdir=%{_libdir}/%{name} \
    --mandir=%{_mandir} \
    --sysconfdir=%{_sysconfdir}/%{name} \
    --disable-prelude \
    --disable-static \
    --enable-shared \
    --enable-pthread \
    --enable-perfprofiling \
    --enable-linux-smp-stats \
    --enable-static-daq \
    --enable-ppm \
    --cache-file=../../config.cache \
    --enable-reload \
    --enable-reload-error-restart \
    --enable-zlib \
    --enable-mpls \
    --enable-targetbased \
    --enable-perfprofiling \
    --enable-active-response \
    --enable-normalizer \
    --enable-react \
    --with-pic \
    --with-daq-includes=%{_includedir} \
    --with-daq-libraries=%{_libdir}"

# Will be, when I port razorback into Mandriva/Mageia
#    --enable-rzb-saac"

# there are some strange configure errors
# when not doing a distclean between major builds.
# plain 
{
mkdir -p plain; cd plain
../../configure $SNORT_BASE_CONFIG
%make
mv src/%{name} ../%{name}-plain
#make distclean 
cd ..
}

# plain+flexresp
{
mkdir -p plain+flexresp; cd plain+flexresp
../../configure $SNORT_BASE_CONFIG \
    --enable-flexresp3 \
    --with-dnet-includes=%{_includedir} \
    --with-dnet-libraries=%{_libdir}
%make
mv src/%{name} ../%{name}-plain+flexresp
# make distclean 
cd ..
}

cd ..

## make the html versions of the faq and manual
#pushd doc
#    latex2html -info 0 -local_icons -show_section_numbers -link +2 -split +1 faq.tex
#    latex2html -info 0 -local_icons -show_section_numbers -link +2 -split +2 -noaddress snort_manual.tex
#    # cleanup
#    rm -f faq/WARNINGS faq/*.tex faq/*.idx faq/*.log faq/*.aux faq/*.pl
#    rm -f snort_manual/WARNINGS snort_manual/*.tex snort_manual/*.aux snort_manual/*.log snort_manual/*.pl
#popd

%install
mkdir -p %{buildroot}%{_sysconfdir}/%{name}/rules
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}/var/log/%{name}/empty
mkdir -p %{buildroot}/var/run/%{name}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_initrddir}
mkdir -p %{buildroot}%{_mandir}/man8

%makeinstall_std -C building/plain

# cleanup
rm -f  %{buildroot}%{_bindir}/%{name}
rm -rf %{buildroot}%{_prefix}/src
rm -f  %{buildroot}%{_libdir}/%{name}/dynamicengine/*.{a,la}
rm -f  %{buildroot}%{_libdir}/%{name}/dynamicpreprocessor/*.{a,la}
rm -f  %{buildroot}%{_libdir}/%{name}/dynamic_preproc/libsf_dynamic_utils.a

{
pushd building
install %{name}-plain %{buildroot}%{_sbindir}/%{name}-plain
install %{name}-plain+flexresp %{buildroot}%{_sbindir}/%{name}-plain+flexresp
popd
}

install %{name}.8* %{buildroot}%{_mandir}/man8
perl -pi -e "s|var RULE_PATH ../rules|var RULE_PATH rules|" etc/%{name}.conf

install -m0644 etc/*.conf %{buildroot}%{_sysconfdir}/%{name}/
install -m0644 etc/*.config %{buildroot}%{_sysconfdir}/%{name}/
install -m0644 etc/*.map %{buildroot}%{_sysconfdir}/%{name}/

install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_unitdir}/%{name}.service

install -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
install -m0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

install -D -m755 %{SOURCE7} %{buildroot}%{_libexecdir}/snort-wrapper.sh
sed "s:libexecdir:%{_libexecdir}:" -i %{buildroot}%{_unitdir}/%{name}.service

# strip rpath
chrpath -d %{buildroot}%{_sbindir}/%{name}-*

# fix libexecdir
perl -pi -e "s|/usr/local/lib/snort_|%{_libdir}/%{name}/|g" %{buildroot}%{_sysconfdir}/%{name}/snort.conf

# fix path to daq modules
perl -pi -e "s|/usr/local/lib/daq|%{_libdir}/daq|g" %{buildroot}%{_sysconfdir}/%{name}/snort.conf

#install tmpfiles conf
install -D -m644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# not used by anything, come from examples
rm -f %{buildroot}%{_libdir}/libsf_sorules.a
rm -f %{buildroot}%{_libdir}/libsf_sorules.so
rm -f %{buildroot}%{_libdir}/libsf_sorules.so.0*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17252 |21mr|snort-rules-2.9-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The GPL'ed Rulesets from snortrules-pr-%{version}
Name:		snort-rules
Version:	2.9
Release:	5
License:	GPL
Group:		Networking/Other
URL:		http://www.snort.org
Source0:	https://www.snort.org/downloads/community/community-rules.tar.gz
BuildArch:	noarch
Recommends:	oinkmaster

%description
Community rules for snort.

%files
%doc AUTHORS LICENSE VRT-License.txt
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/snort/rules/*

#----------------------------------------------------------------------------

%prep
%setup -qn community-rules

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}/snort/rules
install -m0644 *rules %{buildroot}%{_sysconfdir}/snort/rules/
install -m0644 *map %{buildroot}%{_sysconfdir}/snort/rules/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17253 |21mr|snowball-java-0-0.13.20130902
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          snowball-java
Version:       0
Release:       0.13.20130902
Summary:       Java stemming algorithm library
License:       BSD
URL:           http://snowball.tartarus.org/index.php
Source0:       http://snowball.tartarus.org/dist/libstemmer_java.tgz
Group:         Development/Java
# Custom pom file
Source1:       snowball-template-pom.xml
# http://snowball.tartarus.org/license.php
Source2:       snowball-notice.txt
# see http://snowball.tartarus.org/license.php
# http://www.opensource.org/licenses/bsd-license.html
Source3:       snowball-BSD-license.txt
# Build fix remove 'break;' 
Patch0:        snowball-remove-unreachable-statement.patch

BuildRequires: maven-local
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Snowball is a small string processing language
designed for creating stemming algorithms
for use in Information Retrieval.

This package contains all you need to include the
snowball stemming algorithms into a Java
project of your own. If you use this,
you don't need to use the snowball compiler,
or worry about the internals of the
stemmers in any way.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n libstemmer_java

%patch0 -p0

cp -p %{SOURCE1} pom.xml
sed -i "s|@VERSION@|%{version}|" pom.xml

cp -p %{SOURCE2} notice.txt
cp -p %{SOURCE3} license.txt
sed -i 's/\r//' license.txt notice.txt

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license license.txt notice.txt

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17254 |21mr|socat-1.7.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Multipurpose relay
Name:		socat
Version:	1.7.4.3
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://www.dest-unreach.org/%{name}/
Source0:	http://www.dest-unreach.org/socat/download/%{name}-%{version}.tar.gz
BuildRequires:	readline-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)

%description
socat is a relay for bidirectional data transfer between two independent data
channels. Each of these data channels may be a file, pipe, device (serial line
etc. or a pseudo terminal), a socket (UNIX, IP4, IP6 - raw, UDP, TCP), an
SSL socket, proxy CONNECT connection, a file descriptor (stdin etc.), the GNU
line editor (readline), a program, or a combination of two of these.

%files
%doc README
%{_bindir}/%{name}
%{_bindir}/filan
%{_bindir}/procan
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17255 |21mr|soci-4.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without mysql
%bcond_without sqlite3
%bcond_without postgresql
%bcond_without odbc

%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ Database Access Library
Name:		soci
Version:	4.0.3
Release:	1
License:	MIT
Group:		Development/Databases
URL:		http://soci.sourceforge.net/
Source0:	http://downloads.sourceforge.net/project/soci/%{name}/%{name}-%{version}/%{name}-%{version}.zip
BuildRequires:	cmake
BuildRequires:	boost-devel
%if %{with_sqlite3}
BuildRequires:	sqlite3-devel
%endif
%if %{with_postgresql}
BuildRequires:	postgresql-devel
%endif
%if %{with_mysql}
BuildRequires:	mysql-devel
%endif
%if %{with_odbc}
BuildRequires:	unixODBC-devel
%endif

%description
SOCI is a database access library for C++ that makes the illusion of
embedding SQL queries in the regular C++ code, staying entirely within
the Standard C++.

PostgreSQL, Firebird, MySQL, SQLite are supported databases.

%files
%doc CHANGES LICENSE_1_0.txt

#---------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ Database Access Libraries
Group:		Development/Databases

%description -n %{libname}
SOCI is a database access library for C++ that makes the illusion of
embedding SQL queries in the regular C++ code, staying entirely within
the Standard C++.

PostgreSQL, MySQL, SQLite are supported databases.

%files -n %{libname}
%{_libdir}/libsoci_*.so.%{major}*

#---------------------------------------------------------------------

%package -n %{devname}
Summary:	C++ Database Access Library development files
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{EVRD}
Group:		Development/Databases

%description -n %{devname}
SOCI is a database access library for C++ that makes the illusion of
embedding SQL queries in the regular C++ code, staying entirely within
the Standard C++.

This package contains development files.

%files -n %{devname}
%{_libdir}/libsoci_*.so
%{_libdir}/libsoci_*.a
%{_libdir}/cmake/SOCI/*
%{_includedir}/soci

#---------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
	-DSOCI_CXX11=ON \
	-DSOCI_EMPTY:BOOL=OFF \
%if %{with_mysql}
	-DSOCI_MYSQL:BOOL=ON \
%else
	-DSOCI_MYSQL:BOOL=OFF \
%endif
%if %{with_odbc}
	-DSOCI_ODBC:BOOL=ON \
%else
	-DSOCI_ODBC:BOOL=OFF \
%endif
%if %{with_postgresql}
	-DSOCI_POSTGRESQL:BOOL=ON \
%else
	-DSOCI_POSTGRESQL:BOOL=OFF \
%endif
%if %{with_sqlite3}
	-DSOCI_SQLITE3:BOOL=ON
%else
	-DSOCI_SQLITE3:BOOL=OFF
%endif

%make

%install
pushd build
%makeinstall_std
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17256 |21mr|softhsm-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Software version of a PKCS#11 Hardware Security Module
Name:		softhsm
Version:	2.6.1
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://www.opendnssec.org/
Source0:	http://dist.opendnssec.org/source/softhsm-%{version}.tar.gz
Source1:	softhsm.sysusers.conf
Patch0:		softhsm-2.6.1-rh1831086-exit.patch
BuildRequires:	sqlite-tools
BuildRequires:	cmake
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(p11-kit-1)
BuildRequires:	pkgconfig(sqlite3)
# %%sysusers_create_package was backported to systemd-230
BuildRequires:  systemd >= 230-14
Requires:	p11-kit
Requires(pre):  systemd >= 230-14

%description
OpenDNSSEC is providing a software implementation of a generic
cryptographic device with a PKCS#11 interface, the SoftHSM. SoftHSM is
designed to meet the requirements of OpenDNSSEC, but can also work together
with other cryptographic products because of the PKCS#11 interface.

%files
%doc FIPS-NOTES.md LICENSE NEWS README.md
%config(noreplace) %{_sysconfdir}/softhsm2.conf
%{_sysconfdir}/softhsm2.conf.sample
%{_bindir}/*softhsm2-*
# Real library location
%{_libdir}/softhsm/libsofthsm2.so
# 4 symlinks for compatibility
%{_libdir}/softhsm/libsofthsm.so
%{_libdir}/pkcs11/libsofthsm2.so
%{_libdir}/pkcs11/libsofthsm.so
%{_libdir}/libsofthsm2.so
%attr(0750,%{name},%{name}) %dir /var/lib/%{name}
%attr(1770,%{name},%{name}) %dir /var/lib/%{name}/tokens
%{_mandir}/man1/softhsm2-*.1*
%{_mandir}/man5/softhsm2.conf.5*
%attr(0664,root,root) %{_datadir}/p11-kit/modules/softhsm2.module
%{_sysusersdir}/softhsm.conf

%pre
%sysusers_create_package softhsm %{SOURCE1}

#----------------------------------------------------------------------------

%package devel
Summary:	Development package of softhsm that includes the header files
Group:		Development/Other

%description devel
The devel package contains the libsofthsm include files.

%files devel
%dir %{_includedir}/softhsm
%{_includedir}/softhsm/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
# Fix linking errors and runtime/dlopen undefinied symbols
%global optflags %{optflags} -lcrypto
%cmake -DCMAKE_INSTALL_PREFIX:PATH=%{_prefix} \
    -DCMAKE_INSTALL_LIBDIR:PATH=%{_libdir} \
    -DCMAKE_BUILD_TYPE=RelWithDebInfo \
    -DENABLE_GOST:BOOL=OFF \
    -DENABLE_STATIC:BOOL=OFF \
    -DENABLE_VISIBILITY:BOOL=ON \
    -DENABLE_ECC:BOOL=ON \
    -DDISABLE_NON_PAGED_MEMORY:BOOL=ON \
    -DBUILD_TESTS:BOOL=ON

%make

%install
%makeinstall_std -C build

install -d %{buildroot}%{_includedir}/softhsm
cp src/lib/*.h %{buildroot}%{_includedir}/softhsm

install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/softhsm.conf

# Compatibility with locations used in softhsm-1.x and in Fedora
mkdir -p %{buildroot}/%{_libdir}/pkcs11/
ln -s ../softhsm/libsofthsm2.so %{buildroot}/%{_libdir}/pkcs11/libsofthsm.so
ln -s ../softhsm/libsofthsm2.so %{buildroot}/%{_libdir}/pkcs11/libsofthsm2.so
ln -s ./libsofthsm2.so %{buildroot}/%{_libdir}/softhsm/libsofthsm.so
# rhbz#1272423 NSS needs it to be in the search path too
( cd  %{buildroot}/%{_libdir} ; ln -s softhsm/libsofthsm2.so )

rm -fv %{buildroot}%{_libdir}/softhsm/libsofthsm2.a

%check
cd build
ctest

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17257 |21mr|solid-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 module with various classes for hardware information
Name:		solid
Version:	5.116.0
Release:	3
Group:		Graphical desktop/KDE
License:	GPLv2+
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
# (tpg) sort cores
Patch0: sort_cores.patch
BuildRequires:	bison
BuildRequires:	extra-cmake-modules
BuildRequires:	flex
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(mount)
# for ios device support
BuildRequires:	pkgconfig(libimobiledevice-1.0)
BuildRequires:	pkgconfig(libplist-2.0)

# Enables identification and querying of portable media players
# Support for m-p-i is included even if not found during build
Recommends:	media-player-info

%description
KDE Frameworks 5 module with various classes for hardware information.

%files
%{_kde5_bindir}/solid-hardware5
%{_kde5_bindir}/solid-power
%{_kde5_datadir}/qlogging-categories5/solid.categories
%{_kde5_datadir}/qlogging-categories5/solid.renamecategories

#--------------------------------------------------------------------

%package i18n
Summary:	Solid translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Solid translations.

%files i18n -f %{name}.lang

#--------------------------------------------------------------------

%define qmlkf5solid %mklibname kf5solid-qml

%package -n %{qmlkf5solid}
Summary:	QML plugin for KDE Frameworks 5 Solid
Group:		System/Libraries
Provides:	kf5solid-qml = %{EVRD}

%description -n %{qmlkf5solid}
QML plugin for KDE Frameworks 5 Solid.

%files -n %{qmlkf5solid}
%dir %{_kde5_qmldir}/org/kde/solid/
%{_kde5_qmldir}/org/kde/solid/*

#--------------------------------------------------------------------

%define kf5solid_major 5
%define libkf5solid %mklibname kf5solid %{kf5solid_major}

%package -n %{libkf5solid}
Summary:	KDE Frameworks 5 Solid shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}
Requires:	%{qmlkf5solid} = %{EVRD}

%description -n %{libkf5solid}
KDE Frameworks 5 Solid shared library.

%files -n %{libkf5solid}
%{_kde5_libdir}/libKF5Solid.so.%{kf5solid_major}*

#--------------------------------------------------------------------

%define devkf5solid %mklibname kf5solid -d

%package -n %{devkf5solid}
Summary:	Development files for KDE Frameworks 5 Solid
Group:		Development/KDE and Qt
Requires:	%{libkf5solid} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5solid-devel = %{version}

%description -n %{devkf5solid}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5solid}
%{_kde5_includedir}/KF5/Solid
%{_kde5_libdir}/cmake/KF5Solid
%{_kde5_libdir}/libKF5Solid.so
%{_kde5_mkspecsdir}/*.pri

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5 \
  -DWITH_NEW_POWER_ASYNC_API:BOOL=ON \
  -DWITH_NEW_POWER_ASYNC_FREEDESKTOP:BOOL=ON \
  -DWITH_NEW_SOLID_JOB:BOOL=ON

%make_build

%install
%make_install -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17258 |21mr|solr3-3.6.2-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             solr3
Version:          3.6.2
Release:          20
Summary:          Apache Solr
License:          ASL 2.0
Url:              http://lucene.apache.org/solr/

# wget http://archive.apache.org/dist/lucene/solr/3.6.2/apache-solr-3.6.2-src.tgz
# tar -xf apache-solr-3.6.2-src.tgz apache-solr-3.6.2/solr/
# rm -rf apache-solr-3.6.2/solr/lib 
# find apache-solr-3.6.2/solr/ -name "*.jar" -delete
# find apache-solr-3.6.2/solr/ -name "*.class" -delete
# tar -cvjf apache-solr-3.6.2.tar.gz apache-solr-3.6.2/solr/
Source0:          apache-solr-%{version}.tar.gz

Source1:          https://repository.jboss.org/nexus/service/local/repositories/central/content/org/apache/lucene/lucene-solr-grandparent/%{version}/lucene-solr-grandparent-%{version}.pom
Source2:          https://repository.jboss.org/nexus/service/local/repositories/central/content/org/apache/solr/solr-parent/%{version}/solr-parent-%{version}.pom
Source3:          https://repository.jboss.org/nexus/service/local/repositories/central/content/org/apache/solr/solr-core/%{version}/solr-core-%{version}.pom
Source4:          https://repository.jboss.org/nexus/service/local/repositories/central/content/org/apache/solr/solr-solrj/%{version}/solr-solrj-%{version}.pom

Source10:         https://repository.jboss.org/nexus/service/local/repositories/central/content/org/apache/solr/solr-analysis-extras/%{version}/solr-analysis-extras-%{version}.pom

Source20:         solr-contrib.pom

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(com.google.guava:guava:20.0)
BuildRequires:  mvn(com.ibm.icu:icu4j)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-fileupload:commons-fileupload)
BuildRequires:  mvn(commons-httpclient:commons-httpclient)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(jakarta-regexp:jakarta-regexp)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpmime)
BuildRequires:  mvn(org.apache.lucene:lucene-analyzers:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-core:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-grouping:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-highlighter:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-icu:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-kuromoji:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-memory:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-misc:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-phonetic:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-queries:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-smartcn:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-solr-grandparent:pom:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-spatial:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-spellchecker:3.6.2)
BuildRequires:  mvn(org.apache.lucene:lucene-stempel:3.6.2)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires:  mvn(org.slf4j:jcl-over-slf4j)
BuildRequires:  mvn(org.slf4j:slf4j-api)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Solr is the popular, blazing fast open source enterprise search platform from
the Apache LuceneTM project. Its major features include powerful full-text
search, hit highlighting, faceted search, near real-time indexing, dynamic
clustering, database integration, rich document (e.g., Word, PDF) handling, and
geospatial search. Solr is highly reliable, scalable and fault tolerant,
providing distributed indexing, replication and load-balanced querying,
automated failover and recovery, centralized configuration and more. Solr
powers the search and navigation features of many of the world's largest
internet sites.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
# Unpack manually only the solr directory
tar -xf %{SOURCE0} apache-solr-%{version}/solr

%setup -D -T -n apache-solr-%{version}

mkdir -p parent
mv solr/* .
rm -rf solr

cp %{SOURCE1} parent/pom.xml

# Gmaven is retired
%pom_remove_plugin ":gmaven-plugin" parent/pom.xml
# Make it build
%pom_remove_plugin ":maven-enforcer-plugin" parent/pom.xml
%pom_remove_plugin ":buildnumber-maven-plugin" parent/pom.xml

cp %{SOURCE2} pom.xml

# Make sure the relative path is valid
sed -i "s|../pom.xml|parent/pom.xml|" pom.xml

# Disable test deps
%pom_xpath_remove "pom:dependencies/pom:dependency[pom:scope = 'test']"

# Disable modules
%pom_disable_module webapp
%pom_disable_module test-framework

# Copy POMs
cp %{SOURCE3} core/pom.xml
cp %{SOURCE4} solrj/pom.xml
cp %{SOURCE10} contrib/analysis-extras/pom.xml
cp %{SOURCE20} contrib/pom.xml

%pom_xpath_remove "pom:build/pom:directory" pom.xml
%pom_xpath_remove "pom:build/pom:directory" parent/pom.xml

for m in core contrib/analysis-extras solrj; do
%pom_xpath_remove "pom:build/pom:directory" ${m}/pom.xml
%pom_xpath_remove "pom:build/pom:outputDirectory" ${m}/pom.xml
done

# Remove Jetty support
%pom_remove_dep "org.mortbay.jetty:" core/pom.xml
rm core/src/java/org/apache/solr/client/solrj/embedded/JettySolrRunner.java

# Use proper woodstox aid
sed -i "s|wstx-asl|woodstox-core-asl|" solrj/pom.xml

%mvn_compat_version : %{version} 3

%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17259 |21mr|sonatype-gossip-1.7-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global shortname gossip

Name:             sonatype-gossip
Version:          1.7
Release:          21
Summary:          SLF4j Gossip Provider
License:          ASL 2.0
URL:              http://github.com/jdillon/gossip

# git clone git://github.com/jdillon/gossip.git
# cd gossip/ && git checkout gossip-1.7
# git archive --format=tar --prefix=gossip-1.7/ gossip-1.7 | xz > gossip-1.7.tar.xz
Source0:          %{shortname}-%{version}.tar.xz
Patch0:           %{shortname}-%{version}-use-java5-modello.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(com.mycila.maven-license-plugin:maven-license-plugin)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires:    mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:    mvn(org.fusesource.jansi:jansi)
BuildRequires:    mvn(org.slf4j:slf4j-api)
BuildRequires:    mvn(org.sonatype.forge:forge-parent:pom:)

%description
Gossip is a plugin for SLF4j which has simple and flexible configuration.

%package bootstrap
Summary:          Gossip Bootstrap

%description bootstrap
Contains just enough Gossip to allow the
internal org.sonatype.gossip.Log to function.

%package bootstrap-slf4j
Summary:          Gossip Bootstrap SLF4j

%description bootstrap-slf4j
SLF4j bindings for Gossip Bootstrap.

%package core
Summary:          Gossip Core

%description core
Gossip Core.

%package extra
Summary:          Gossip Extra

%description extra
Gossip Extra.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}

%package slf4j
Summary:          Gossip SLF4j

%description slf4j
Gossip SLF4j.

%package support
Summary:          Gossip Support

%description support
Gossip Support, helper and utilities.

%prep
%setup -q -n %{shortname}-%{version}
%patch0 -p1

%pom_remove_plugin org.codehaus.mojo:animal-sniffer-maven-plugin

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-gossip
%license header.txt

%files bootstrap -f .mfiles-gossip-bootstrap
%doc README.md
%license header.txt

%files bootstrap-slf4j -f .mfiles-gossip-bootstrap-slf4j
%files core -f .mfiles-gossip-core
%license header.txt

%files extra -f .mfiles-gossip-extra

%files javadoc -f .mfiles-javadoc
%license header.txt

%files slf4j -f .mfiles-gossip-slf4j
%files support -f .mfiles-gossip-support


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17260 |21mr|sonatype-oss-parent-7-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sonatype-oss-parent
Version:        7
Release:        18
Summary:        Sonatype OSS Parent

License:        ASL 2.0
URL:            https://github.com/sonatype/oss-parents
# git clone git://github.com/sonatype/oss-parents.git
# (cd ./oss-parents; git archive --prefix %{name}-%{version}/ oss-parent-%{version}) | gzip >%{name}-%{version}.tar.gz
Source:         %{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local

Provides:       deprecated()

%description
Sonatype OSS parent pom used by other sonatype packages.

%prep
%setup -q
cp -p %{SOURCE1} LICENSE
%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17261 |21mr|sonatype-plugins-parent-8-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global tag a594629

Name:           sonatype-plugins-parent
Version:        8
Release:        15
Summary:        Sonatype Plugins Parent POM
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
License:        ASL 2.0
URL:            https://github.com/sonatype/oss-parents
Source:         https://github.com/sonatype/oss-parents/tarball/plugins-parent-%{version}#/%{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  forge-parent

%description
This package provides Sonatype plugins parent POM used by other Sonatype
packages.

%prep
%setup -q -n sonatype-oss-parents-%{tag}
cp -p %{SOURCE1} LICENSE

%build
cd ./plugins-parent
%mvn_build

%install
cd ./plugins-parent
%mvn_install

%files -f plugins-parent/.mfiles
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17262 |21mr|sonnet-5.116.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 spell checking module
Name:		sonnet
Version:	5.116.0
Release:	3
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Patch0:		myspelldictdir.patch
Patch1:		add_variety_support_for_aspell.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-linguist-tools
# Disabled in 5.6.x
#BuildRequires:	pkgconfig(enchant)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
# Force ASpell backend, it seems to be the most useful
Requires:	%{name}-aspell
Requires:	%{name}-hspell
Requires:	%{name}-hunspell

%description
Sonnet is a plugin-based spell checking library for Qt-based applications.
It supports several different plugins, including ASpell, Enchant, HSpell
and Hunspell.

It also supports automated language detection, based on a combination of
different algorithms.

%files
%{_kde5_bindir}/gentrigrams
%{_kde5_bindir}/parsetrigrams
%{_kde5_datadir}/qlogging-categories5/sonnet.categories
%{_kde5_datadir}/qlogging-categories5/sonnet.renamecategories
%{_kde5_qmldir}/org/kde/%{name}

#----------------------------------------------------------------------------

%package aspell
Summary:	ASpell backend for the Sonnet spell checking library
Group:		Graphical desktop/KDE
Provides:	sonnet-backend = %{EVRD}
BuildRequires:	aspell-devel
Requires:	aspell
Requires:	%{name}

%description aspell
ASpell backend for the Sonnet spell checking library.

%files aspell
%{_kde5_plugindir}/sonnet/sonnet_aspell.so

#----------------------------------------------------------------------------

%package hspell
Summary:	HSpell backend for the Sonnet spell checking library
Group:		Graphical desktop/KDE
Provides:	sonnet-backend = %{EVRD}
BuildRequires:	hspell-devel
Requires:	hspell
Requires:	%{name}

%description hspell
HSpell backend for the Sonnet spell checking library.

%files hspell
%{_kde5_plugindir}/sonnet/sonnet_hspell.so

#----------------------------------------------------------------------------

%package hunspell
Summary:	Hunspell backend for the Sonnet spell checking library
Group:		Graphical desktop/KDE
Provides:	sonnet-backend = %{EVRD}
BuildRequires:	pkgconfig(hunspell)
Requires:	hunspell
Requires:	%{name}

%description hunspell
Hunspell backend for the Sonnet spell checking library.

%files hunspell
%{_kde5_plugindir}/sonnet/sonnet_hunspell.so

#----------------------------------------------------------------------------

%package i18n
Summary:	Sonnet translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Sonnet translations.

%files i18n -f %{name}.lang

#----------------------------------------------------------------------------

%package -n qt5-designer-plugin-%{name}
Summary:	Qt5 Designer plugin for %{name}
Group:		Development/KDE and Qt

%description -n qt5-designer-plugin-%{name}
Qt5 Designer plugin for %{name}.

%files -n qt5-designer-plugin-%{name}
%{_qt5_plugindir}/designer/sonnetui5widgets.so

#----------------------------------------------------------------------------

%define kf5sonnetcore_major 5
%define libkf5sonnetcore %mklibname kf5sonnetcore %{kf5sonnetcore_major}

%package -n %{libkf5sonnetcore}
Summary:	KDE Frameworks 5 spell checking shared library
Group:		System/Libraries
Requires:	%{name}
Requires:	%{name}-i18n

%description -n %{libkf5sonnetcore}
KDE Frameworks 5 spell checking shared library.

%files -n %{libkf5sonnetcore}
%{_kde5_libdir}/libKF5SonnetCore.so.%{kf5sonnetcore_major}*

#----------------------------------------------------------------------------

%define kf5sonnetui_major 5
%define libkf5sonnetui %mklibname kf5sonnetui %{kf5sonnetui_major}

%package -n %{libkf5sonnetui}
Summary:	KDE Frameworks 5 spell checking shared library
Group:		System/Libraries

%description -n %{libkf5sonnetui}
KDE Frameworks 5 spell checking shared library.

%files -n %{libkf5sonnetui}
%{_kde5_libdir}/libKF5SonnetUi.so.%{kf5sonnetui_major}*

#----------------------------------------------------------------------------

%define devkf5sonnet %mklibname kf5sonnet -d

%package -n %{devkf5sonnet}
Summary:	Development files for KDE Frameworks 5 Sonnet
Group:		Development/KDE and Qt
Requires:	%{libkf5sonnetcore} = %{EVRD}
Requires:	%{libkf5sonnetui} = %{EVRD}
Requires:	qt5-designer-plugin-%{name}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5sonnet-devel = %{version}

%description -n %{devkf5sonnet}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5sonnet}
%{_kde5_includedir}/KF5/SonnetCore
%{_kde5_includedir}/KF5/SonnetUi
%{_kde5_includedir}/KF5/Sonnet/sonnet_version.h
%{_kde5_libdir}/cmake/KF5Sonnet
%{_kde5_libdir}/libKF5SonnetCore.so
%{_kde5_libdir}/libKF5SonnetUi.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-qt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17263 |21mr|soprano-2.9.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with java

%if %{with java}
# Do not require java stuff just because we have a java backend
%if %{_use_internal_dependency_generator}
%global __requires_exclude libjvm\\.so(.*)
%else
%define _requires_exceptions libjvm\.so
%endif
%endif

%bcond_with clucene

Summary:	Library which provides a nice QT interface to RDF
Name:		soprano
Version:	2.9.4
Release:	10
Epoch:		4
License:	LGPLv2+
Group:		System/Libraries
Url:		http://soprano.sourceforge.net
Source:		http://ovh.dl.sourceforge.net/project/soprano/Soprano/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	cmake >= 2.6.2
BuildRequires:	pkgconfig(redland) >= 1.0.6
BuildRequires:	pkgconfig(raptor2)
BuildRequires:	pkgconfig(libiodbc)
BuildRequires:	pkgconfig(QtCore)
BuildRequires:	pkgconfig(QtNetwork)
BuildRequires:	pkgconfig(QtXml)
BuildRequires:	pkgconfig(QtDBus)
BuildRequires:	kde4-macros
%if %{with java}
BuildRequires:	java-rpmbuild
BuildRequires:	chrpath
%endif
%if %{with clucene}
BuildRequires:	clucene-devel
%else
BuildConflicts:	clucene-devel
Obsoletes:	%{mklibname sopranoindex 1} < %{EVRD}
%endif
BuildRequires:	doxygen
Requires:	soprano-plugin-virtuoso = %{EVRD}

%description
Soprano (formally known as QRDF) is a library which provides a nice QT
interface to RDF storage solutions.  It has a modular structure which allows to
replace the actual RDF storage implementation used.  Currently two
implementations are working.  The first and most important backend used in
Soprano is based on librdf, the Redland RDF Application Framework.  The second
backend is the more interesting one as it uses the NEPOMUK-KDE backbone library
to connect to a NEPOMUK RDF triple service, thus providing a nice interface for
applications not aware of Nepomuk services.

%files
%{_bindir}/sopranocmd
%{_bindir}/sopranod
%dir %{_datadir}/soprano
%{_datadir}/soprano/rules

#---------------------------------------------------------------------------------

%if %{with java}
%package plugin-sesame2
Summary:	Sesame2 soprano plugin
Group:		System/Libraries
Requires:	soprano-plugin-common = %{EVRD}
Requires:	java

%description plugin-sesame2
This package provide the sesame2 java indexer plugin for soprano.

%files plugin-sesame2
%dir %{_datadir}/soprano/plugins
%{_datadir}/soprano/plugins/sesame2backend.desktop
%{_datadir}/soprano/sesame2
%dir %{_libdir}/soprano
%{_libdir}/soprano/libsoprano_sesame2backend.so
%endif

#---------------------------------------------------------------------------------

%package plugin-virtuoso
Summary:	Virtuoso soprano plugin
Group:		System/Libraries
%ifnarch i686
Requires:	virtuoso-opensource >= 5.0.12
%endif
Requires:	soprano-plugin-common = %{EVRD}

%description plugin-virtuoso
This package provide the virtuoso plugin for soprano.

%files plugin-virtuoso
%dir %{_datadir}/soprano/plugins
%{_datadir}/soprano/plugins/virtuosobackend.desktop
%dir %{_libdir}/soprano
%{_libdir}/soprano/libsoprano_virtuosobackend.so

#---------------------------------------------------------------------------------

%package plugin-redland
Summary:	redland soprano plugin
Group:		System/Libraries
Requires:	soprano-plugin-common = %{EVRD}

%description plugin-redland
This package provide the redland indexer plugin for soprano.

%files plugin-redland
%dir %{_datadir}/soprano/plugins
%{_datadir}/soprano/plugins/redlandbackend.desktop
%dir %{_libdir}/soprano
%{_libdir}/soprano/libsoprano_redlandbackend.so

#---------------------------------------------------------------------------------

%package plugin-common
Summary:	Common parsers and serializers
Group:		System/Libraries

%description plugin-common
Common parser and serializers

%files plugin-common
%dir %{_datadir}/soprano/plugins
%{_datadir}/soprano/plugins/*parser.desktop
%{_datadir}/soprano/plugins/*serializer.desktop
%dir %{_libdir}/soprano
%{_libdir}/soprano/libsoprano_*serializer.so
%{_libdir}/soprano/libsoprano_*parser.so

#---------------------------------------------------------------------------------

%define libsopranomajor 4
%define libsoprano %mklibname soprano %{libsopranomajor}

%package -n %{libsoprano}
Summary:	Library for %{name}
Group:		Development/C

%description -n %{libsoprano}
Soprano (formally known as QRDF) is a library which provides a nice QT
interface to RDF storage solutions.  It has a modular structure which allows to
replace the actual RDF storage implementation used.  Currently two
implementations are working.  The first and most important backend used in
Soprano is based on librdf, the Redland RDF Application Framework.  The second
backend is the more interesting one as it uses the NEPOMUK-KDE backbone library
to connect to a NEPOMUK RDF triple service, thus providing a nice interface for
applications not aware of Nepomuk services.

%files -n %{libsoprano}
%{_libdir}/libsoprano.so.%{libsopranomajor}*

#---------------------------------------------------------------------------------

%define sopranoclient_major 1
%define libsopranoclient %mklibname sopranoclient %{sopranoclient_major}

%package -n %{libsopranoclient}
Summary:	Library for %{name}
Group:		Development/C

%description -n %{libsopranoclient}
Soprano (formally known as QRDF) is a library which provides a nice QT
interface to RDF storage solutions.  It has a modular structure which allows to
replace the actual RDF storage implementation used.  Currently two
implementations are working.  The first and most important backend used in
Soprano is based on librdf, the Redland RDF Application Framework.  The second
backend is the more interesting one as it uses the NEPOMUK-KDE backbone library
to connect to a NEPOMUK RDF triple service, thus providing a nice interface for
applications not aware of Nepomuk services.

%files -n %{libsopranoclient}
%{_libdir}/libsopranoclient.so.%{sopranoclient_major}*

#---------------------------------------------------------------------------------

%define sopranoserver_major 1
%define libsopranoserver %mklibname sopranoserver %{sopranoserver_major}

%package -n %{libsopranoserver}
Summary:	Library for %{name}
Group:		Development/C

%description -n %{libsopranoserver}
Soprano (formally known as QRDF) is a library which provides a nice QT
interface to RDF storage solutions.  It has a modular structure which allows to
replace the actual RDF storage implementation used.  Currently two
implementations are working.  The first and most important backend used in
Soprano is based on librdf, the Redland RDF Application Framework.  The second
backend is the more interesting one as it uses the NEPOMUK-KDE backbone library
to connect to a NEPOMUK RDF triple service, thus providing a nice interface for
applications not aware of Nepomuk services.

%files -n %{libsopranoserver}
%{_libdir}/libsopranoserver.so.%{sopranoserver_major}*

#---------------------------------------------------------------------------------

%if %{with clucene}
%define sopranoindex_major 1
%define libsopranoindex %mklibname sopranoindex %{sopranoindex_major}

%package -n %{libsopranoindex}
Summary:	Library for %{name}
Group:		Development/C

%description -n %{libsopranoindex}
Soprano (formally known as QRDF) is a library which provides a nice QT
interface to RDF storage solutions.  It has a modular structure which allows to
replace the actual RDF storage implementation used.  Currently two
implementations are working.  The first and most important backend used in
Soprano is based on librdf, the Redland RDF Application Framework.  The second
backend is the more interesting one as it uses the NEPOMUK-KDE backbone library
to connect to a NEPOMUK RDF triple service, thus providing a nice interface for
applications not aware of Nepomuk services.

%files -n %{libsopranoindex}
%{_libdir}/libsopranoindex.so.%{sopranoindex_major}*
%endif

#---------------------------------------------------------------------------------

%package devel
Summary:	Library
Group:		Development/C
Provides:	libsoprano-devel = %{EVRD}
Requires:	%{libsoprano} = %{EVRD}
Obsoletes:	%{libsoprano}-devel < 3:3.0-0.714066.1
Requires:	%{libsoprano} = %{EVRD}
Requires:	%{libsopranoclient} = %{EVRD}
Requires:	%{libsopranoserver} = %{EVRD}
%if %{with clucene}
Requires:	%{libsopranoindex} = %{EVRD}
%endif
Requires:	soprano = %{EVRD}
Requires:	%{name}-plugin-virtuoso = %{EVRD}
Requires:	%{name}-plugin-redland = %{EVRD}

%description devel
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files devel
%{_bindir}/onto2vocabularyclass
%dir %{_includedir}/soprano/
%{_includedir}/soprano/*
%dir %{_includedir}/Soprano/
%{_includedir}/Soprano/*
%{_libdir}/pkgconfig/*.pc
%{_libdir}/*.so
%{_datadir}/dbus-1/interfaces/*
%{_datadir}/soprano/cmake

#---------------------------------------------------------------------------------

%prep
%setup -q

%build
%if %{with java}
export JAVA_HOME=%{java_home}
%endif

%cmake_qt4 \
%if !%{with clucene}
	-DSOPRANO_DISABLE_CLUCENE_INDEX=True
%endif

%make

%install
%makeinstall_std -C build

%if %{with java}
# Load libjvm.so from the JRE directory instead of SDK directory. This
# works with Sun-derived JREs, but GCJ/Jamvm etc have libjvm.so in different
# directories. Maybe there should be an alternative pointing to libjvm.so.
old_rpath=$(chrpath -l %{buildroot}%{_libdir}/soprano/libsoprano_sesame2backend.so | cut -d= -f2)
new_rpath=$(echo "$old_rpath" | sed "s,%{java_home},%{_jvmdir},")
chrpath -r "$new_rpath" %{buildroot}%{_libdir}/soprano/libsoprano_sesame2backend.so
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17264 |21mr|sord-0.16.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define api 0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Lightweight C library for storing RDF data in memory
Name:		sord
Version:	0.16.8
Release:	2
License:	ISC
Group:		System/Libraries
Url:		http://drobilla.net/software/%{name}/
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.bz2
BuildRequires:	waf
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(serd-0)

%description
Lightweight C library for storing RDF data in memory.

%files
%doc COPYING
%doc %{_mandir}/man1/*
%{_bindir}/sordi
%{_bindir}/sord_validate

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lightweight RDF syntax library
Group:		System/Libraries

%description -n %{libname}
Lightweight C library for storing RDF data in memory.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}
%{_libdir}/lib%{name}-%{api}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for the sord RDF storage library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files needed to build applications against sord.

%files -n %{devname}
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_includedir}/%{name}-%{api}/%{name}/*.hpp
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%setup_compile_flags
%{__python3} ./waf configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--libdir=%{_libdir}
%{__python3} ./waf -v

%install
%{__python3} ./waf install \
	--destdir=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17265 |21mr|sos-3.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of tools to gather troubleshooting information from a system
Name:		sos
Version:	3.9.1
Release:	1
Group:		System/Base
Source0:	https://github.com/sosreport/sos/archive/%{version}.tar.gz
Source100:	sos.rpmlintrc
License:	GPLv2+
BuildArch:	noarch
Url:		https://github.com/sosreport/sos
BuildRequires:	python3-devel
BuildRequires:	gettext
Requires:	bzip2
Requires:	python3-libxml2
Requires:	python3-six
Requires:	xz

%description
Sos is a set of tools that gathers information about system
hardware and configuration. The information can then be used for
diagnostic purposes and debugging. Sos is commonly used to help
support technicians and developers.

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install '--install-scripts=%{_sbindir}'

install -Dm644 %{name}.conf %{buildroot}%{_sysconfdir}/%{name}.conf
%find_lang %{name} || echo 0

%files -f %{name}.lang
%{_sbindir}/sosreport
%{python3_sitelib}/*
%{_mandir}/man1/*
%{_mandir}/man5/*
%doc AUTHORS README.md
%license LICENSE
%config(noreplace) %{_sysconfdir}/sos.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17266 |21mr|sound-juicer-3.38.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	CD ripping tool using GTK+ and GStreamer
Name:		sound-juicer
Version:	3.38.0
Release:	9
License:	GPLv2+
Group:		Sound
Url:		https://download.gnome.org/sources/sound-juicer
Source0:	https://download.gnome.org/sources/sound-juicer/%{url_ver}/%{name}-%{version}.tar.xz
Source100:	%{name}.rpmlintrc
Patch0:		fix-for-new-meson.patch
BuildRequires:	appstream-util
BuildRequires:	gettext
BuildRequires:	gstreamer1.0-flac
BuildRequires:	gstreamer1.0-plugins-good
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-export-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(iso-codes)
BuildRequires:	pkgconfig(libbrasero-media3)
BuildRequires:	pkgconfig(libcanberra-gtk3)
BuildRequires:	pkgconfig(libdiscid)
BuildRequires:	pkgconfig(libmusicbrainz5)
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-good
Requires:	gstreamer1.0-cdparanoia
Recommends:	gstreamer1.0-flac
Recommends:	gstreamer1.0-lame
Recommends:	gstreamer1.0-faac

%description
This is Sound Juicer, a CD ripping tool using GTK+ and GStreamer.

%files -f %{name}.lang
%doc AUTHORS COPYING NEWS README.md
%{_appdatadir}/org.gnome.SoundJuicer.metainfo.xml
%{_bindir}/*
%{_datadir}/applications/org.gnome.SoundJuicer.desktop
%{_datadir}/%{name}
%{_datadir}/dbus-1/services/org.gnome.SoundJuicer.service
%{_datadir}/GConf/gsettings/%{name}.convert
%{_datadir}/glib-2.0/schemas/org.gnome.%{name}.gschema.xml
%{_iconsdir}/hicolor/*/apps/org.gnome.SoundJuicer.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
%meson
%meson_build

%install
%meson_install

rm -rf %{buildroot}%{_prefix}/doc/%{name}/{AUTHORS,COPYING,NEWS,README.md}

# appdata
appstream-util validate-relax --nonet %{buildroot}%{_appdatadir}/*.xml

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17267 |21mr|sound-scripts-0.62-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The sound scripts
Name:		sound-scripts
Version:	0.62
Release:	11
License:	GPLv2+
Group:		System/Base
Url:		http://www.rosalinux.com
Source0:	%{name}-%{version}.tar.xz
Patch1:		sound-scripts-0.62-fix-lsb-init.patch
Patch2:		sound-scripts-0.62-fix-oss-emulation-for-kmod.patch
Requires:	alsa-utils >= 1.0.25
Requires:	aumix-text
Requires:	kmod
Requires:	procps
Requires(post,preun):	rpm-helper
BuildArch:	noarch

%description
The sound-scripts package contains the basic system scripts used:
- to setup default sound mixer on first boot
- save sound mixer level on shutdown
- restore sound mixer on bootstrapping

%files
%doc ChangeLog
%{_bindir}/reset_sound
/bin/reset_sound
%{_sbindir}/alsa.agent
/sbin/alsa.agent
%{_sysconfdir}/rc.d/rc.alsa_default
%{_sysconfdir}/sound/profiles/alsa/snd-oss.conf
%{_sysconfdir}/sound/profiles/pulse/snd-oss.conf
%config(noreplace) %{_sysconfdir}/sysconfig/alsa
%config(noreplace) %attr(0644,root,root) /lib/udev/rules.d/*
%config(noreplace) %{_sysconfdir}/modprobe.d/snd-oss.conf
%{_datadir}/alsa/alsa-utils

%pre
if [ -e /etc/modprobe.d/snd-oss ]; then
	mv /etc/modprobe.d/snd-oss{,.conf}
fi

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%make

%install
%makeinstall_std

# there's no interesting string that is already gprintified
export DONT_GPRINTIFY=1

# (cg) The modprobe tweaks to snd-usb-audio prevents it from loading
# unless the sysvinit scritps are loaded. This is incorrect as when
# using systemd, the sysvinit scripts are not used (instead the upstream
# solution to save/restore volume from alsa-utils package is used)
rm -f %{buildroot}%{_sysconfdir}/modprobe.d/snd-usb-audio.conf

# (cg) We no longer ship the sysvinit scripts so no need to ship the masked systemd units.
rm -f %{buildroot}%{_unitdir}/*.service
rm -f %{buildroot}%{_initddir}/*

# (cg) Move the OSS config into sound profiles so we can easily
# use osspd with PulseAudio by default
mkdir -p %{buildroot}%{_sysconfdir}/sound/profiles/{alsa,pulse}
mv %{buildroot}%{_sysconfdir}/modprobe.d/snd-oss.conf %{buildroot}%{_sysconfdir}/sound/profiles/alsa
ln -sf %{_sysconfdir}/sound/profiles/current/snd-oss.conf %{buildroot}%{_sysconfdir}/modprobe.d/snd-oss.conf
cat >%{buildroot}%{_sysconfdir}/sound/profiles/pulse/snd-oss.conf <<EOF
# We need to ensure that no ALSA OSS compatibility modules are loaded so
# we can use osspd easily
blacklist snd_pcm_oss
blacklist snd_mixer_oss
blacklist snd_seq_oss
EOF

# (cg) udev rules should be in /lib/udev/rules.d
mkdir -p %{buildroot}/lib/
mv %{buildroot}%{_sysconfdir}/udev %{buildroot}/lib/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17268 |21mr|sound-theme-freedesktop-0.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	freedesktop.org default sound theme
Name:		sound-theme-freedesktop
Version:	0.8
Release:	4
# For details on the licenses used, see README
License:	GPLv2+ and LGPLv2+ and CC-BY-SA and CC-BY
Group:		System/X11
Url:		http://www.freedesktop.org/wiki/Specifications/sound-theme-spec
Source0:	http://people.freedesktop.org/~mccann/dist/%{name}-%{version}.tar.bz2
BuildRequires:	intltool
BuildRequires:	gettext-devel
BuildRequires:	glib-gettextize
BuildRequires:	perl(XML::Parser)
Requires(post,postun): coreutils
Provides:	fdo-sound-theme = %{EVRD}
Provides:	gnome-audio = %{EVRD}
Provides:	gnome-audio-extra = %{EVRD}
BuildArch:	noarch

%description
The default freedesktop.org sound theme following the XDG theming
specification. (http://0pointer.de/public/sound-theme-spec.html).

%files
%doc README NEWS
%dir %{_datadir}/sounds/freedesktop
%dir %{_datadir}/sounds/freedesktop/stereo
%{_datadir}/sounds/freedesktop/index.theme
%{_datadir}/sounds/freedesktop/stereo/*.oga

# (cg) libcanberra will purge it's cache and reload it's themes
# when the %{_datadir}/sounds folder is touched.
# While it's technically not needed to touch the folder itself,
# the RH rpm still does this so we will too. It may be needed in the
# future :)
%post
touch --no-create %{_datadir}/sounds %{_datadir}/sounds/freedesktop

%postun
touch --no-create %{_datadir}/sounds %{_datadir}/sounds/freedesktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17269 |21mr|soundtouch-2.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d
%define	oname SoundTouch

Summary:	An open-source audio processing library
Name:		soundtouch
Version:	2.1.2
Release:	2
License:	LGPLv2.1+
Group:		Sound
Url:		http://www.surina.net/soundtouch/
Source0:	https://gitlab.com/soundtouch/soundtouch/-/archive/%{version}/%{name}-%{version}.tar.bz2
BuildRequires:	dos2unix
BuildRequires:	gettext >= 0.11.5
Conflicts:	%{oname}

%description
SoundTouch is an open-source audio processing library. It allows changing the
sound tempo, pitch and playback rate parameters independently from each other.

%files
%doc COPYING.TXT README.html
%{_bindir}/soundstretch

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An open-source audio processing library
Group:		System/Libraries

%description -n %{libname}
SoundTouch is an open-source audio processing library. It allows changing the
sound tempo, pitch and playback rate parameters independently from each other.
This package contains the shared libraries.

%files -n %{libname}
%doc COPYING.TXT
%{_libdir}/libSoundTouch.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development package with static libs and headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries and header files required for compiling SoundTouch plugins.

%files -n %{devname}
%doc COPYING.TXT
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h
%{_libdir}/libSoundTouch.so
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/aclocal/%{name}.m4

#----------------------------------------------------------------------------

%prep
%setup -q
#apply_patches

# Fix permissions
find . -type d -perm 0700 -exec chmod 755 {} \;
find . -type f -perm 0555 -exec chmod 755 {} \;
find . -type f -perm 0444 -exec chmod 644 {} \;
find . -name "*.h" -o -name "*.cpp" -exec chmod 644 {} \;

chmod 644 COPYING.TXT README.html

# Strip away annoying ^M
find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix


%build
sh ./bootstrap
%configure --enable-shared
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17270 |21mr|soundwrapper-1.7-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Directs a program's sound output to Pulse, ALSA or esd
Name:		soundwrapper
Version:	1.7
Release:	16
License:	LGPLv2.1+
Group:		System/Base
Url:		http://cvs.mandriva.com/cgi-bin/cvsweb.cgi/SPECS/%{name}/
Source0:	%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(esound)
BuildRequires:	pkgconfig(libpulse)

%description
When placed before a command to run a program with some audio component,
that program's audio output is redirected to the ALSA sound device or to
the PulseAudio or EsounD sound servers if either of them is in control
of the sound device, enabling programs to play sounds at the same time.

%files
%{_bindir}/soundwrapper

#----------------------------------------------------------------------------

%prep
%setup -q

aclocal
automake --add-missing
autoconf

%build
%configure --disable-arts
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17271 |21mr|source-highlight-3.1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Produces a document with syntax highlighting
Name:		source-highlight
Version:	3.1.9
Release:	2
License:	GPLv3+
Group:		Development/Other
Url:		http://www.gnu.org/software/src-highlite/
Source0:	ftp://ftp.gnu.org/gnu/src-highlite/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	ctags
BuildRequires:	flex
BuildRequires:	help2man
BuildRequires:	boost-devel
Requires:	ctags
Requires:	help2man
Provides:	cpp2html = %{EVRD}
Provides:	java2html = %{EVRD}

%description
GNU Source-highlight produces a document with syntax highlighting
when given a source file. It handles many languages, e.g., Java,
C/C++, Prolog, Perl, PHP3, Python, Flex, HTML, and other formats,
e.g., ChangeLog and log files, as source languages and HTML, XHTML,
DocBook, ANSI color escapes, LaTeX, and Texinfo as output formats.
Input and output formats can be specified with a regular expression-
oriented syntax.

%files
%doc AUTHORS README CREDITS NEWS TODO.txt THANKS
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*
%{_infodir}/*
%{_sysconfdir}/bash_completion.d/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Produces a document with syntax highlighting
Group:		System/Libraries

%description -n %{libname}
GNU Source-highlight produces a document with syntax highlighting
when given a source file. It handles many languages, e.g., Java,
C/C++, Prolog, Perl, PHP3, Python, Flex, HTML, and other formats,
e.g., ChangeLog and log files, as source languages and HTML, XHTML,
DocBook, ANSI color escapes, LaTeX, and Texinfo as output formats.
Input and output formats can be specified with a regular expression-
oriented syntax.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Produces a document with syntax highlighting
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
GNU Source-highlight produces a document with syntax highlighting
when given a source file. It handles many languages, e.g., Java,
C/C++, Prolog, Perl, PHP3, Python, Flex, HTML, and other formats,
e.g., ChangeLog and log files, as source languages and HTML, XHTML,
DocBook, ANSI color escapes, LaTeX, and Texinfo as output formats.
Input and output formats can be specified with a regular expression-
oriented syntax.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/srchilite/


#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CXXFLAGS="-std=c++14 %{optflags}"
%configure \
	--disable-dependency-tracking \
	--with-boost-libdir=%{_libdir}
%make

%install
%makeinstall_std

rm -fr %{buildroot}%{_datadir}/doc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17272 |21mr|sox-14.4.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A general purpose sound file conversion tool
Name:		sox
Version:	14.4.2
Release:	6
License:	LGPLv2+
Group:		Sound
Url:		http://sox.sourceforge.net/
# TODO: Consider switching to git snapshot (last commit was on May 2021)
# to avoid this long list of patches
Source0:	https://sourceforge.net/projects/sox/files/sox/%{version}/%{name}-%{version}.tar.bz2
Patch0:		sox-14.4.2-CVE-2017-11332.patch
Patch1:		sox-14.4.2-CVE-2017-11358.patch
Patch2:		sox-14.4.2-CVE-2017-11359.patch
Patch3:		sox-14.4.2-CVE-2017-15370.patch
Patch4:		sox-14.4.2-CVE-2017-15371.patch
Patch5:		sox-14.4.2-CVE-2017-15372.patch
Patch6:		sox-14.4.2-CVE-2017-15642.patch
Patch7:		sox-14.4.2-CVE-2017-18189.patch
Patch8:		sox-14.4.2-lsx_symbols.patch
Patch9:		sox-14.4.2-lpc10.patch
Patch10:	sox-14.4.2-fsf_address_fix.patch
Patch11:	sox-14.4.2-hcom_stopwrite_big_endian_bug_fix.patch
# -rhbz: https://bugzilla.redhat.com/show_bug.cgi?id=1309426 [CLOSED DUPL]
# https://bugzilla.redhat.com/show_bug.cgi?id=1226675
# https://bugzilla.redhat.com/show_bug.cgi?id=1540762 [CLOSED DUPL]
# https://bugzilla.redhat.com/show_bug.cgi?id=1492910 [CLOSED DUPL]
# - upstream discussion: https://sourceforge.net/p/sox/bugs/309/
Patch12:	sox-14.4.2-bug_1226675_fix.patch
Patch13:	sox-14.4.2-installcheck_fix.patch
Patch14:	sox-14.4.2-fix-CVE-2019-8354.patch
Patch15:	sox-14.4.2-fix-CVE-2019-8356.patch
Patch16:	sox-14.4.2-fix-CVE-2019-8357.patch
Patch17:	sox-14.4.2-fix-CVE-2019-13590.patch
Patch18:	CVE-2022-31650.patch
Patch19:	CVE-2022-31651.patch
BuildRequires:	libtool
BuildRequires:	ffmpeg-devel
BuildRequires:	gsm-devel
BuildRequires:	ladspa-devel
BuildRequires:	lame-devel
BuildRequires:	libamrnb-devel
BuildRequires:	libamrwb-devel
BuildRequires:	libgomp-devel
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libmagic)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndfile)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(wavpack)

%description
SoX (Sound eXchange) is a sound file format converter for Linux, UNIX and DOS
PCs. The self-described 'Swiss Army knife of sound tools,' SoX can convert
between many different digitized sound formats and perform simple sound
manipulation functions, including sound effects.
Install this package if you'd like to convert sound file formats or manipulate
some sounds.

%files
%doc ChangeLog README NEWS AUTHORS
%{_bindir}/play
%{_bindir}/rec
%{_bindir}/sox*
%{_mandir}/man1/*
%{_mandir}/man7/*
%{_libdir}/%{name}/libsox_fmt_*.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for SoX
Group:		System/Libraries

%description -n %{libname}
Libraries for SoX.

%files -n %{libname}
%doc README
%{_libdir}/libsox.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for libst
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for SoX.

%files -n %{devname}
%{_includedir}/*.h
%{_libdir}/libsox.a
%{_libdir}/libsox.so
%{_libdir}/pkgconfig/%{name}.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%ifarch %{e2k}
sed -i 's/Wtraditional-/W/' configure
sed -i 's/Wtraditional-/W/' configure.ac
sed -i 's/Wtraditional-/W/' src/CMakeLists.txt
%endif

%build
export CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64 -fPIC -DPIC"


%configure --with-gsm \
           --includedir=%{_includedir} \
           --enable-static \
           --with-distro=ROSA \
           --with-dyn-default \
%ifarch %{e2k}
           --disable-openmp
%endif

%make -j1

%install
%makeinstall_std

ln -sf play %{buildroot}%{_bindir}/rec

cat << EOF > %{buildroot}%{_bindir}/soxplay
#!/bin/sh

%{_bindir}/sox \$1 -t .au - > /dev/audio

EOF
chmod 755 %{buildroot}%{_bindir}/soxplay

ln -snf play %{buildroot}%{_bindir}/rec
ln -s play.1%{_extension} %{buildroot}%{_mandir}/man1/rec.1%{_extension}

rm -rf %{buildroot}%{_libdir}/sox/*.{la,a}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17273 |21mr|soxr-0.1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define	major 0
%define	libname %mklibname %{name} %{major}
%define	liblsr %mklibname %{name}-lsr %{major}
%define	devname %mklibname %{name} -d
%define	devlsr %mklibname %{name}-lsr -d

%bcond_without test

Summary:	The SoX Resampler library
Name:		soxr
Version:	0.1.3
Release:	6
License:	LGPLv2.1+
Group:		Sound
Url:		https://sourceforge.net/p/soxr/wiki/Home/
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}-Source.tar.xz
BuildRequires:	cmake

%description
The SoX Resampler library performs one-dimensional sample-rate conversion; it
may be used, for example, to resample PCM-encoded audio.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The SoX Resampler shared library
Group:		System/Libraries

%description -n %{libname}
The SoX Resampler shared library.
It's high quality, one-dimensional sample-rate conversion library.

%files -n %{libname}
%doc LICENCE NEWS README
%{_libdir}/libsoxr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.
It's high quality, one-dimensional sample-rate conversion library.

%files -n %{devname}
%doc LICENCE
%{_includedir}/soxr.h
%{_libdir}/libsoxr.so
%{_libdir}/pkgconfig/soxr.pc

#----------------------------------------------------------------------------

%package -n %{liblsr}
Summary:	The SoX Resampler shared library
Group:		System/Libraries

%description -n %{liblsr}
The SoX Resampler shared library.
It's high quality, one-dimensional sample-rate conversion library
(with libsamplerate-like bindings).

%files -n %{liblsr}
%doc LICENCE NEWS README
%{_libdir}/libsoxr-lsr.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devlsr}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{liblsr} = %{EVRD}

%description -n %{devlsr}
This package contains libraries and header files for developing applications
that use %{name}.
It's high quality, one-dimensional sample-rate conversion library
(with libsamplerate-like bindings).

%files -n %{devlsr}
%doc LICENCE
%{_includedir}/soxr-lsr.h
%{_libdir}/libsoxr-lsr.so
%{_libdir}/pkgconfig/soxr-lsr.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}-Source

%build
%ifarch %{e2k}
# has up to SSE4.1 actually
sed -i 's,defined\([( ]\)__x86_64__\([ )]\),& || defined\1__e2k__\2,' src/{pffft.c,soxr.c}
%endif
%cmake \
	-DCMAKE_BUILD_TYPE='Release' \
	-DLIB_INSTALL_DIR="%{_libdir}" \
	-DBUILD_EXAMPLES='OFF' \
	-DBUILD_SHARED_LIBS='ON' \
%ifarch %{e2k}
	-DWITH_CR64='OFF' \
	-DWITH_CR64S='OFF' \
%endif
	-DWITH_AVFFT='ON' \
	-DWITH_LSR_BINDINGS='ON' \
	-DWITH_OPENMP='ON' \
	-DBUILD_TESTS='OFF' \
	-DBUILD_EXAMPLES='OFF' \
%if %{without test}
	-DBUILD_TESTS:BOOL=OFF \
%endif
	-DWITH_PFFFT='ON'

%make -s

%install
%makeinstall_std -C build

# Remove docs and use the rpmbuild macro instead
rm -rf %{buildroot}%{_docdir}/*

# fix pc file
sed -i -e "s/-L%{_lib}//g" %{buildroot}%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17274 |21mr|spacebar-23.01.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Instant messenger for Plasma Mobile
Name:		spacebar
Version:	23.01.0
Release:	2
Group:		Graphical desktop/KDE
License:	GPLv3
Source0:	https://download.kde.org/stable/plasma-mobile/%{version}/%{name}-%{version}.tar.xz
Source1:	spacebar-23.0_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	telepathy-qt5-devel
BuildRequires:	qcoro-qt5-devel
BuildRequires:	kf5contacts-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5modemmanagerqt-devel
BuildRequires:	kf5people-devel
BuildRequires:	kirigami-addons-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(ModemManager)
BuildRequires:	phonenumber-devel

%description
Instant messenger for Plasma Mobile.

%files -f spacebar.lang
%{_kde5_bindir}/spacebar
%{_kde5_applicationsdir}/org.kde.spacebar.desktop
%{_appdatadir}/org.kde.spacebar.appdata.xml
%{_kde5_datadir}/icons/hicolor/scalable/apps/org.kde.spacebar.svg
%{_kde5_libexecdir}/spacebar-daemon
%{_kde5_notificationsdir}/spacebar.notifyrc
%{_sysconfdir}/xdg/autostart/org.kde.spacebar.daemon.desktop

#-------------------------------------------------------

%prep
%autosetup -p1

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17275 |21mr|spamassassin-3.4.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

%define fname Mail-SpamAssassin

Summary:	A spam filter for email which can be invoked from mail delivery agents
Name:		spamassassin
Version:	3.4.6
Release:	1
License:	Apache License
Group:		Networking/Mail
URL:		http://spamassassin.apache.org/
Source0:	http://www.apache.org/dist/spamassassin/source/%{fname}-%{version}.tar.bz2
Source3:	spamd.sysconfig
Source4:	spamassassin-default.rc
Source5:	spamassassin-spamc.rc
Source6:	sa-update.crontab
Source7:	sa-update.cronscript
Source8:	spamd.logrotate
Source9:	spamd.conf
Source10:	%{name}.service
Source11:	%{name}-tmpfiles.conf
Source12:	spamassassin-official.conf
Source13: 	sought.conf
Source14: 	README.Rosa
Patch0:		spamassassin-3.2.0-fixbang.patch
Patch1:		Mail-SpamAssassin-3.1.5-no_spamcop.diff
# Switch to using gnupg2 instead of gnupg1
Patch2:		spamassassin-3.3.2-gnupg2.patch
Patch3:		spamassassin-3.4.1-add-logfile-homedir-options.patch
# Patches 100+ are SVN backports (DO NOT REUSE!)
# https://bz.apache.org/SpamAssassin/show_bug.cgi?id=7871
Patch100:	GeoIP-fix.patch
Requires(post):  systemd
Requires(post):  rpm-helper
Requires(preun): rpm-helper
BuildRequires:	geoip
BuildRequires:	gnupg2
BuildRequires:	pkgconfig(openssl)
BuildRequires:	perl(Apache::Test)
BuildRequires:	perl(Archive::Tar)
BuildRequires:	perl(DB_File)
BuildRequires:	perl(Digest::SHA)
BuildRequires:	perl(Encode::Detect)
BuildRequires:	perl(ExtUtils::MakeMaker) >= 6.17
BuildRequires:	perl(Geo::IP)
BuildRequires:	perl(HTML::Parser)
BuildRequires:	perl(IO::Socket::IP) >= 0.09
BuildRequires:	perl(IO::Socket::SSL)
BuildRequires:	perl(IO::Zlib)
BuildRequires:	perl(LWP)
BuildRequires:	perl(Mail::DKIM) >= 0.37
BuildRequires:	perl(Mail::SPF)
BuildRequires:	perl(Net::DNS)
BuildRequires:	perl(Net::Ident)
BuildRequires:	perl(Net::Patricia) >= 1.16
#BuildRequires:	perl(Razor2::Client::Agent) >= 2.61 # Contrib
BuildRequires:	perl(Socket6)
BuildRequires:	perl(Sys::Hostname::Long)
BuildRequires:	perl(Time::HiRes)
BuildRequires:	perl-devel
BuildRequires:	perl-version
BuildRequires:	re2c
BuildRequires:	webfetch
BuildRequires:	apache-mod_perl
# The requires are derived automatically from META.yml. The below require is 
# given on http://svn.apache.org/repos/asf/spamassassin/branches/3.3/INSTALL 
# but missing from META.yml ... better safe than sorry!
Requires:	perl(LWP)
# And one on a package we create ourselves:
Requires:	perl-Mail-SpamAssassin = %{version}
# This should be required and not just suggested:
Requires:	gnupg2
# Suggests unfortunately do not get derived automatically yet:
Recommends:	perl(Compress::Zlib)
Recommends:	perl(DBI)
Recommends:	perl(DB_File)
Recommends:	perl(Digest::SHA)
Recommends:	perl(Encode::Detect)
Recommends:	perl(Geo::IP)
Recommends:	perl(Getopt::Long)
Recommends:	perl(HTTP::Date)
Recommends:	perl(IO::Socket::IP) >= 0.09
Recommends:	perl(IO::Socket::SSL)
Recommends:	perl(LWP::UserAgent)
Recommends:	perl(MIME::Base64)
Recommends:	perl(Mail::DKIM) >= 0.37
Recommends:	perl(Mail::SPF)
Recommends:	perl(Net::DNS) >= 0.58
Recommends:	perl(Net::Ident)
Recommends:	perl(Net::Patricia) >= 1.16
Recommends:	perl(Net::SMTP)
#Recommends:	perl(Razor2::Client::Agent) >= 2.61 # Contrib
Recommends:	webfetch

%if %{without bootstrap}
Requires:	spamassassin-rules >= 3.3.2
%endif

%description
SpamAssassin provides you with a way to reduce if not completely eliminate
Unsolicited Commercial Email (SPAM) from your incoming email.  It can
be invoked by a MDA such as sendmail or postfix, or can be called from
a procmail script, .forward file, etc.  It uses a genetic-algorithm
evolved scoring system to identify messages which look spammy, then
adds headers to the message so they can be filtered by the user's mail
reading software.  This distribution includes the spamd/spamc components
which create a server that considerably speeds processing of mail.

SpamAssassin also includes support for reporting spam messages
automatically, and/or manually, to collaborative filtering databases such
as Vipul's Razor, DCC or pyzor. 
Install perl-Razor-Agent package to get Vipul's Razor support. 
Install dcc package to get Distributed Checksum Clearinghouse (DCC) support.
Install pyzor package to get Pyzor support.

To enable spamassassin, if you are receiving mail locally, simply add
this line to your ~/.procmailrc:
INCLUDERC=/etc/mail/spamassassin/spamassassin-default.rc
 
To filter spam for all users, add that line to /etc/procmailrc or
create that file if doesn't exist yet.

%files
%doc README Changes sample-*.txt procmailrc.example INSTALL TRADEMARK
%doc CREDITS UPGRADE USAGE META.yml README.Rosa
%dir %{_sysconfdir}/mail/%{name}
%dir %attr(0700,root,root) %{_sysconfdir}/mail/%{name}/sa-update-keys
%config(noreplace) %{_sysconfdir}/mail/%{name}/*.cf
%config(noreplace) %{_sysconfdir}/mail/%{name}/*.pre
%config(noreplace) %{_sysconfdir}/mail/%{name}/spamassassin-default.rc
%config(noreplace) %{_sysconfdir}/mail/%{name}/channel.d
%config(noreplace) %{_sysconfdir}/logrotate.d/spamd
%dir %attr(0777,root,root) /var/spool/spamassassin
%{_sysconfdir}/cron.d/sa-update
%dir /var/lib/spamassassin
%{_bindir}/sa-awl
%{_bindir}/sa-check_spamd
%{_bindir}/sa-learn
%{_bindir}/sa-update
%{_bindir}/spamassassin
%{_mandir}/man1/sa-awl.1*
%{_mandir}/man1/sa-check_spamd.1*
%{_mandir}/man1/sa-learn.1*
%{_mandir}/man1/sa-update.1*
%{_mandir}/man1/spamassassin.1*
%{_mandir}/man1/spamassassin-run.1*
%{_datadir}/spamassassin
%dir %{_logdir}/spamassassin

%post
[ -f %{_sysconfdir}/spamassassin.cf ] && %{__mv} %{_sysconfdir}/spamassassin.cf %{_sysconfdir}/mail/spamassassin/migrated.cf || true
[ -f %{_sysconfdir}/mail/spamassassin.cf ] && /bin/mv %{_sysconfdir}/mail/spamassassin.cf %{_sysconfdir}/mail/spamassassin/migrated.cf || true

#--------------------------------------------------------------------------
%package	sa-compile
Summary:	Compiles SpamAssassin rulesets into native perl code
Group:		Networking/Mail
Requires:	gcc make
Requires:	perl-devel
Requires:	re2c

%description	sa-compile
sa-compile uses re2c to compile the site-wide parts of the SpamAssassin
ruleset. No part of user_prefs or any files included from user_prefs can be
built into the compiled set. This compiled set is then used by the
"Mail::SpamAssassin::Plugin::Rule2XSBody" plugin to speed up SpamAssassin's
operation, where possible, and when that plugin is loaded. re2c can match
strings much faster than perl code, by constructing a DFA to match many simple
strings in parallel, and compiling that to native object code. Not all
SpamAssassin rules are amenable to this conversion, however.

%files sa-compile
%{_bindir}/sa-compile
%{_mandir}/man1/sa-compile.1*

#--------------------------------------------------------------------------

%package	tools
Summary:        Miscleanous tools for SpamAssassin
Group:		Networking/Mail
Requires:	perl-Mail-SpamAssassin = %{version}

%description	tools
Miscleanous tools from various authors, distributed with SpamAssassin.
See /usr/share/doc/spamassassin-tools-*/.

%files tools
%doc sql ldap

#--------------------------------------------------------------------------

%package	spamd
Summary:	Daemonized version of SpamAssassin
Group:		System/Servers
%if %{without bootstrap}
Requires(post): spamassassin-rules >= 3.3.0
%endif
Requires(post):  rpm-helper
Requires(preun): rpm-helper
Requires:	spamassassin = %{version}

%description	spamd
The purpose of this program is to provide a daemonized version of the
spamassassin executable. The goal is improving throughput performance
for automated mail checking.

This is intended to be used alongside "spamc", a fast, low-overhead C
client program.

%files spamd
%doc spamd/README* spamd/PROTOCOL
%{_unitdir}/spamd.service
%config(noreplace) %{_sysconfdir}/sysconfig/spamd
%{_bindir}/spamd
%{_mandir}/man1/spamd.1*
%{_tmpfilesdir}/%{name}.conf

%post spamd
%tmpfiles_create %{name}.conf

# -a and --auto-whitelist options were removed from 3.0.0
# prevent service startup failure
perl -p -i -e 's/(["\s]-\w+)a/$1/ ; s/(["\s]-)a(\w+)/$1$2/ ; s/(["\s])-a\b/$1/' /etc/sysconfig/spamd
perl -p -i -e 's/ --auto-whitelist//' /etc/sysconfig/spamd

# fix permissions
if [ -f %{_sysconfdir}/mail/%{name}/local.cf ]; then

    auto_whitelist_path="`grep "^auto_whitelist_path" %{_sysconfdir}/mail/%{name}/local.cf | awk '{ print $2 }'`"
    auto_whitelist_file_mode="`grep "^auto_whitelist_file_mode" %{_sysconfdir}/mail/%{name}/local.cf | awk '{ print $2 }'`"

    if [ "${auto_whitelist_path}" == "/var/spool/%{name}" ]; then
	echo "Correcting \"auto_whitelist_path\" (#27424) in the %{_sysconfdir}/mail/%{name}/local.cf file..."
	perl -pi -e "s|/var/spool/%{name}\b|/var/spool/%{name}/auto-whitelist|g" %{_sysconfdir}/mail/%{name}/local.cf
	auto_whitelist_path="/var/spool/%{name}/auto-whitelist"
    fi

    if ! [ -z "${auto_whitelist_path}" ]; then
        touch ${auto_whitelist_path}
        if [ -z "${auto_whitelist_file_mode}" ]; then
            auto_whitelist_file_mode="0666"
        fi
        chmod ${auto_whitelist_file_mode} ${auto_whitelist_path}
    fi

fi
# Need to run sa-update otherwise the spamd will not start until a cron job completes
echo "need to run sa-update"
/usr/bin/sa-update -v

%_post_service spamd

%preun spamd
%_preun_service spamd

#--------------------------------------------------------------------------

%package	spamc
Summary:	A client for spamd
Group:		Networking/Mail

%description	spamc
Spamc is the client half of the spamc/spamd pair. It should be used in
place of "spamassassin" in scripts to process mail. It will read the
mail from STDIN, and spool it to its connection to spamd, then read
the result back and print it to STDOUT. Spamc has extremely low
overhead in loading, so it should be much faster to load than the
whole spamassassin program.

%files spamc
%config(noreplace) %{_sysconfdir}/mail/%{name}/spamassassin-spamc.rc
%{_bindir}/spamc
%{_mandir}/man1/spamc.1*

#--------------------------------------------------------------------------

%package -n	perl-%{fname}
Summary:        SpamAssassin e-mail filter Perl modules
Group:		Development/Perl
Requires:       perl(HTML::Parser)

%description -n perl-%{fname}
Mail::SpamAssassin is a module to identify spam using text analysis and
several internet-based realtime blacklists. Using its rule base, it uses a
wide range of heuristic tests on mail headers and body text to identify
``spam'', also known as unsolicited commercial email. Once identified, the
mail can then be optionally tagged as spam for later filtering using the
user's own mail user-agent application.

%files -n perl-%{fname}
%{perl_vendorlib}/Mail/SpamAssassin*
%exclude %{perl_vendorlib}/Mail/SpamAssassin/Spamd
%{perl_vendorlib}/spamassassin-run.pod
%{_mandir}/man3/Mail::SpamAssassin*
%exclude %{_mandir}/man3/Mail::SpamAssassin::Spamd*
%{_mandir}/man3/spamassassin-run.3pm*

#--------------------------------------------------------------------------

%package -n	perl-%{fname}-Spamd
Summary:        A mod_perl2 module implementing the spamd protocol
Group:		Development/Perl
Requires:       apache-mod_perl

%description -n	perl-%{fname}-Spamd
This distribution contains a mod_perl2 module, implementing the spamd protocol
from the SpamAssassin (http://spamassassin.apache.org/) project in Apache2.
It's mostly compatible with the original spamd.

%files -n perl-%{fname}-Spamd
%doc spamd-apache2/README.apache
%config(noreplace) %{_sysconfdir}/httpd/conf/webapps.d/spamd.conf
%{perl_vendorlib}/Mail/SpamAssassin/Spamd
%{_mandir}/man3/Mail::SpamAssassin::Spamd*

#--------------------------------------------------------------------------

%prep
%setup -q -n %{fname}-%{version}
%patch0 -p0 -b .fixbang
%patch1 -p0


# svn cleansing...
for i in `find . -type d -name .svn`; do
    if [ -e "$i" ]; then rm -rf $i; fi >&/dev/null
done

%build

%{__perl} \
    Makefile.PL \
    INSTALLDIRS=vendor \
    SYSCONFDIR=%{_sysconfdir} \
    DATADIR=%{_datadir}/spamassassin \
    ENABLE_SSL=yes \
    RUN_NET_TESTS=no < /dev/null

%make OPTIMIZE="%{optflags}" LDFLAGS="%{ldflags}"

pushd spamd-apache2
    %{__perl} Makefile.PL INSTALLDIRS=vendor < /dev/null
    %make
popd

%check
#cat >> t/config.dist << EOF
#run_net_tests=y
#run_spamd_prefork_stress_test=y
#EOF
export LANG=C 
export LC_ALL=C
export LANGUAGE=C
# useless and broken test case
rm -f t/make_install.t
# may be broken on mga4 only? NO...
rm -f t/sa_compile.t
%ifnarch %{ix86}
make FULLPERL="%{_bindir}/perl" test #TEST_VERBOSE=1
%endif
%install

%makeinstall_std

pushd spamd-apache2
    %makeinstall_std
popd

install -d %{buildroot}%{_sysconfdir}/mail/%{name}/sa-update-keys
install -d %{buildroot}%{_sysconfdir}/sysconfig
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}/var/spool/spamassassin
install -d %{buildroot}/var/log/spamassassin
install -d %{buildroot}/var/lib/spamassassin
install -d %{buildroot}%{_sysconfdir}/httpd/conf/webapps.d

cat << EOF >> %{buildroot}%{_sysconfdir}/mail/%{name}/v330.pre

# Mail::SpamAssassin::Plugin::AWL - Normalize scores via auto-whitelist
loadplugin Mail::SpamAssassin::Plugin::AWL
EOF

cat << EOF >> %{buildroot}%{_sysconfdir}/mail/%{name}/local.cf
required_hits 5
rewrite_header Subject [SPAM]
report_safe 0
ifplugin Mail::SpamAssassin::Plugin::AWL
auto_whitelist_path        /var/spool/spamassassin/auto-whitelist
auto_whitelist_file_mode   0666
endif # Mail::SpamAssassin::Plugin::AWL
EOF

install -d %{buildroot}%{_sysconfdir}/cron.d
install -m0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/spamd
install -m0644 %{SOURCE6} %buildroot/etc/cron.d/sa-update
# installed mode 744 as non root users can't run it, but can read it.
install -m0744 %{SOURCE7} %buildroot%{_datadir}/spamassassin/sa-update.cron
install -m0644 %{SOURCE8} %{buildroot}%{_sysconfdir}/logrotate.d/spamd
install -m0644 %{SOURCE9} %{buildroot}/%{_sysconfdir}/httpd/conf/webapps.d/spamd.conf

install -m0644 %{SOURCE4} %{buildroot}%{_sysconfdir}/mail/spamassassin/
install -m0644 %{SOURCE5} %{buildroot}%{_sysconfdir}/mail/spamassassin/
install -D -p -m 644 %{SOURCE10} %{buildroot}%{_unitdir}/spamd.service
install -D -p -m 644 %{SOURCE11} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# sa-update channels and keyring directory
install -d %{buildroot}%{_sysconfdir}/mail/spamassassin/channel.d/
install -m0644 %{SOURCE12} %{buildroot}%{_sysconfdir}/mail/spamassassin/channel.d/
install -m0644 %{SOURCE13} %{buildroot}%{_sysconfdir}/mail/spamassassin/channel.d/

install -m 0644 %{SOURCE14} $RPM_BUILD_DIR/Mail-SpamAssassin-%{version}/


# bork bork
install -m0644 rules/*.pre %{buildroot}%{_sysconfdir}/mail/%{name}/

# cleanup
rm -f %{buildroot}%{_bindir}/apache-spamd.pl
rm -f %{buildroot}%{_mandir}/man1/apache-spamd.pl.1*

# these are not meant to be released
rm -f %{buildroot}%{perl_vendorlib}/Mail/SpamAssassin/Plugin/P595Body.pm
rm -f %{buildroot}%{perl_vendorlib}/Mail/SpamAssassin/Plugin/RabinKarpBody.pm

# fix perms
chmod 755 %{buildroot}%{_bindir}/*




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17276 |21mr|spamassassin-rules-3.4.0-20140707.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without tarball

%define date 20140707

Summary:	Rules for SpamAssassin
Name:		spamassassin-rules
Version:	3.4.0
Release:	%{date}.1
License:	Apache License
Group:		Networking/Mail
Url:		http://spamassassin.org/
%if %{with tarball}
# sa-update --gpghomedir . --channel updates.spamassassin.org --updatedir .
Source0:	updates-%{date}.tar.bz2
%endif
Requires:	spamassassin > 3.3.0
Conflicts:	spamassassin < 3.3.0
%if %{without tarball}
Buildrequires:	gnupg
Buildrequires:	spamassassin
%endif
BuildArch:	noarch

%description
This package contains the default rules for SpamAssassin.

WARNING: These rules may be old at install time. This package is NOT
supported by Rosa. You should immediately update your rules set as
explained in the official SpamAssassin documentations.

%files
%attr(0644,root,root) %{_datadir}/spamassassin/*.cf

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -n %{name}-%{version}
%if %{with tarball}
tar -xf %{SOURCE0}
%else
sa-update --gpghomedir . --channel updates.spamassassin.org --updatedir .
%endif

%build

%install
install -d %{buildroot}%{_datadir}/spamassassin
install -m0644 updates_spamassassin_org/*.cf %{buildroot}%{_datadir}/spamassassin/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17277 |21mr|spandsp-3.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 232ee167ebcb9c4ca38aac1a60d43fcaf66b1c0c

%define major 3

%define libnamedevold %{mklibname spandsp 0}-devel
%define libname %mklibname spandsp %{major}
%define libnamedev %mklibname spandsp -d
%define libnamestaticdev %mklibname spandsp -d -s

Name:		spandsp
Version:	3.0.0
Release:	1
Summary:	A DSP library for telephony
Group:		System/Libraries
License:	GPLv2
URL:		http://www.soft-switch.org/
Source0:	https://github.com/freeswitch/spandsp/archive/%{commit}.tar.gz
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	libxml2-devel
BuildRequires:	pkgconfig(sndfile)

%description
SpanDSP is a library of DSP functions for telephony, in the 8000
sample per second world of E1s, T1s, and higher order PCM channels. It
contains low level functions, such as basic filters. It also contains
higher level functions, such as cadenced supervisory tone detection,
and a complete software FAX machine. The software has been designed to
avoid intellectual property issues, using mature techniques where all
relevant patents have expired. See the file DueDiligence for important
information about these intellectual property issues.

#----------------------------------------------------------------------
%package -n %{libname}
Summary:	A DSP library for telephony
Group:		System/Libraries

%description -n %{libname}
spandsp is a library for DSP in telephony spans. It can perform many of the
common DSP functions, such as the generation and detection of DTMF and
supervisory tones.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING DueDiligence INSTALL NEWS README
%{_libdir}/lib*.so.%{major}*

#----------------------------------------------------------------------

%package -n %{libnamedev}
Summary:	Header files and libraries needed for development with SpanDSP
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{libnamedev}
This package includes the header files and libraries needed for developing
programs using SpanDSP.

%files -n %{libnamedev}
%{_includedir}/spandsp
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------

%package -n %{libnamestaticdev}
Summary:	Static libraries needed for development with SpanDSP
Group:		Development/C
Provides:	%{name}-static-devel = %{EVRD}
Requires:	%{libnamedev} = %{EVRD}

%description -n %{libnamestaticdev}
This package includes the static libraries needed for developing programs
using SpanDSP.

%files -n %{libnamestaticdev}
%{_libdir}/*.a

#----------------------------------------------------------------------

%prep

%setup -q -n spandsp-%{commit}

%build
autoreconf -i
%configure --enable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17278 |21mr|sparsehash-2.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# No debug package is needed here
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	Extremely memory-efficient hash_map implementation
Name:		sparsehash
Version:	2.0.3
Release:	6
License:	BSD
Group:		Development/C++
Url:		http://code.google.com/p/sparsehash
Source:		http://%{name}.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	gcc-c++

%description
The Google SparseHash project contains several C++ template hash-map
implementations with different performance characteristics, including
an implementation that optimizes for space and one that optimizes for
speed.

%package devel
Summary:	Extremely memory-efficient C++ hash_map implementation
Group:		Development/C++

%description devel
The Google SparseHash project contains several C++ template hash-map
implementations with different performance characteristics, including
an implementation that optimizes for space and one that optimizes for
speed.

%prep
%setup -qn %{name}-%{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%files devel
# Though version is 2.0.3, not all sources are updated
%doc %{_docdir}/%{name}-2.0.2
%{_includedir}/google/
%{_includedir}/sparsehash/
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17279 |21mr|spatial4j0.5.0-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oldname spatial4j
Group: Development/Java
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name:          spatial4j0.5.0
Version:       0.5.0
Release:       1
Summary:       A Geospatial Library for Java
License:       ASL 2.0
URL:           https://github.com/locationtech/spatial4j
Source0:       https://github.com/spatial4j/spatial4j/archive/%{oldname}-0.5.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.vividsolutions:jts:1.14.0)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.noggit:noggit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

# test deps
%if 0
BuildRequires: mvn(com.carrotsearch.randomizedtesting:randomizedtesting-runner)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.slf4j:slf4j-simple)
%endif

BuildArch:     noarch
Source44: import.info

%description
Spatial4j is a general purpose spatial/geospatial Java library.
It's core capabilities are 3-fold: to provide common geospatially-aware shapes,
to provide distance calculations and other math, and to read and write the
shapes to strings.

%package javadoc
Group: Development/Java
Summary:       Javadoc for %{oldname}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{oldname}.

%prep
%setup -q -n %{oldname}-%{oldname}-0.5

# Unwanted tasks
%pom_remove_plugin de.thetaphi:forbiddenapis
%pom_remove_plugin org.jacoco:jacoco-maven-plugin

# the attach-sources execution breaks OSGi manifest generation
%pom_remove_plugin :maven-jar-plugin

%mvn_file : %{oldname}

%pom_change_dep com.vividsolutions:jts:1.13 com.vividsolutions:jts:1.14.0
%mvn_compat_version : 0.5 %{version}

%build

# Test skipped for unavailable test deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.md README.md
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt

%changelog
* Wed Jun 19 2019 Igor Vlasenko <viy@altlinux.ru> 0.5.0-alt3_7jpp8
- compat package

* Tue Jun 18 2019 Igor Vlasenko <viy@altlinux.ru> 0.5.0-alt2_7jpp8
- build with jts1.14

* Thu Apr 19 2018 Igor Vlasenko <viy@altlinux.ru> 0.5.0-alt1_7jpp8
- java update

* Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 0.5.0-alt1_6jpp8
- fc27 update

* Sun Oct 22 2017 Igor Vlasenko <viy@altlinux.ru> 0.5.0-alt1_5jpp8
- new jpp release

* Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 0.5.0-alt1_4jpp8
- new fc release

* Tue Dec 06 2016 Igor Vlasenko <viy@altlinux.ru> 0.5.0-alt1_3jpp8
- new version

* Sat Feb 06 2016 Igor Vlasenko <viy@altlinux.ru> 0.4.1-alt1_4jpp8
- java 8 mass update


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17280 |21mr|spatial4j-0.7-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          spatial4j
Version:       0.7
Release:       4
Summary:       A Geospatial Library for Java
License:       ASL 2.0
URL:           https://projects.eclipse.org/projects/locationtech.spatial4j
Source0:       https://github.com/locationtech/spatial4j/archive/%{name}-%{version}/%{name}-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(com.carrotsearch.randomizedtesting:randomizedtesting-runner)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.google.code.maven-replacer-plugin:replacer)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.locationtech.jts:jts-core)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.noggit:noggit)
BuildRequires:  mvn(org.slf4j:slf4j-simple)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Spatial4j is a general purpose spatial/geospatial Java library.
It's core capabilities are 3-fold: to provide common geospatially-aware shapes,
to provide distance calculations and other math, and to read and write the
shapes to strings.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# Unwanted tasks
%pom_remove_plugin de.thetaphi:forbiddenapis
%pom_remove_plugin org.jacoco:jacoco-maven-plugin

# Backward compatibility aliases
%mvn_alias org.locationtech.spatial4j:spatial4j com.spatial4j:spatial4j

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.md README.md FORMATS.md
%license asl-v20.txt notice.md

%files javadoc -f .mfiles-javadoc
%license asl-v20.txt notice.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17281 |21mr|spdlog-1.8.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global user            gabime
%global debug_package   %{nil}
%global major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	Super fast C++ logging library
Name:		spdlog
Version:	1.8.5
Release:	1
License:	MIT
Group:		Development/C
Url:		https://github.com/%{user}/%{name}/
Source0:	https://github.com/%{user}/%{name}/archive/v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	fmt-devel
BuildRequires:	pkgconfig(systemd)
#BuildRequires:	google-benchmark-devel

%description
This is a packaged version of the gabime/spdlog header-only C++
logging library available at Github.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Super fast C++ logging library
Group:		System/Libraries

%description -n %{libname}
Super fast C++ logging library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Provides:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	fmt-devel
Requires:	libstdc++-devel

%description -n	%{devname}
The %{name}-devel package contains C++ header files for developing
applications that use %{name}.

%files -n %{devname}
%doc README.md example/
%doc LICENSE
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q
mkdir -p %{_target_platform}
find . -name '.gitignore' -exec rm {} \;
sed -i -e "s,\r,," README.md
# FC compatibility:
ln -sf %{_target_platform} build

%build
pushd %{_target_platform}
    cd ..
    %cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
    -DSPDLOG_BUILD_SHARED=ON \
    -DSPDLOG_BUILD_EXAMPLES=OFF \
    -DSPDLOG_BUILD_BENCH=OFF \
    -DSPDLOG_BUILD_TESTS=ON \
    -DSPDLOG_FMT_EXTERNAL=ON \
 
popd
%ninja_build -C %{_target_platform}

%install
%ninja_install -C %{_target_platform}

%check
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}/%{_libdir}
pushd %{_target_platform}
    ctest --output-on-failure
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17282 |21mr|spec-helper-0.31.49-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tools to ease the creation of rpm packages
Name:		spec-helper
Version:	0.31.49
Release:	3
License:	GPLv2+
Group:		Development/Tools
Url:		https://github.com/OpenMandrivaSoftware/spec-helper
Source0:	https://github.com/OpenMandrivaSoftware/spec-helper/archive/v%{version}.tar.gz?/spec-helper-%{version}.tar.gz
Patch0:		spec-helper-0.31.46-rosa_spec_cleaner.patch
# https://github.com/OpenMandrivaSoftware/spec-helper/pull/4
Patch1:		0001-Delete-RPATHs-inside-RPM-build-root.patch
BuildRequires:	perl(Digest::MD5)
BuildRequires:	perl(File::Slurp)
BuildRequires:	perl(IPC::Run)
BuildRequires:	perl(List::MoreUtils)
# tests
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl(Test::More)
Requires:	chrpath
Requires:	findutils
Requires:	gettext
BuildArch:	noarch

%description
Tools to ease the creation of rpm packages for the
%{distribution} distribution.
Compress man pages using xz, convert links and perform some sanitizing on
packages built...

%files
%doc README NEWS
%{_bindir}/*
%{_datadir}/spec-helper
%{_rpmmacrodir}/*%{name}*

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build

%install
%makeinstall_std bindir=%{_bindir}

rm -rf %{buildroot}%{_sysconfdir}
%install_macro %{name} %{name}.macros

%check
make test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17283 |21mr|specspo-1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ROSA package descriptions, summaries, and groups
Name:		specspo
Version:	1.3
Release:	4
Group:		System/Configuration/Packaging
Source:		%{name}-%{version}.tar.xz
# No version given, only license attribution is spec file
# Since this is Red Hat generated, we can safely assume it is correct.
License:	GPL+
BuildArch:	noarch
BuildRequires:	gettext

%description
The specspo package contains the portable object catalogues used to
internationalize tags of RPM packages.

%prep
%setup -q

%build
make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_sysconfdir}/rpm
echo '%%_i18ndomains	rosa-dist' > %{buildroot}%{_sysconfdir}/rpm/macros.specspo

%find_lang rosa-dist

%files -f rosa-dist.lang
%config(noreplace) %{_sysconfdir}/rpm/macros.specspo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17284 |21mr|spectacle-23.08.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Plasma 5 screenshot taking utility
Name:		spectacle
Version:	23.08.4
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/unstable/release-service/%{version}/src/%{name}-%{version}.tar.xz
# Patch sent to upstream
# https://invent.kde.org/graphics/spectacle/-/merge_requests/245
Patch0:		Added-checkbox-for-transparent-background-enabling.patch
Patch1:		transparent-translations.patch
# Fix capturing self:
# https://bugs.kde.org/show_bug.cgi?id=476811
# https://bugs.kde.org/show_bug.cgi?id=495216
Patch2:		fix-capture-self.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kipi-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5pipewire-devel
BuildRequires:	kf5purpose-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	wayland-devel
BuildRequires:	pipewire-devel
BuildRequires:	pkgconfig(kscreen2)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(xcb-cursor)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcb-xfixes)
BuildRequires:	plasma-wayland-protocols-devel
Conflicts:	ksnapshot

%description
Plasma 5 screenshot taking utility.

%files -f %{name}.lang
%{_kde5_bindir}/spectacle
%{_kde5_applicationsdir}/org.kde.spectacle.desktop
%{_kde5_datadir}/kconf_update/spectacle_shortcuts.upd
%{_kde5_datadir}/kglobalaccel/org.kde.spectacle.desktop
%{_kde5_datadir}/qlogging-categories5/spectacle.categories
%{_kde5_datadir}/kconf_update/50-clipboard_settings_change.py
%{_kde5_datadir}/kconf_update/__pycache__/50-clipboard_settings_change.cpython-*
%{_kde5_datadir}/kconf_update/spectacle_clipboard.upd
%{_kde5_datadir}/kconf_update/spectacle_rememberregion.upd
%{_kde5_libdir}/kconf_update_bin/spectacle-migrate-rememberregion
%{_kde5_libdir}/kconf_update_bin/spectacle-migrate-shortcuts
%{_kde5_iconsdir}/hicolor/*/*/spectacle.*
%{_kde5_notificationsdir}/spectacle.notifyrc
%{_appdatadir}/org.kde.spectacle.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.Spectacle.xml
%{_datadir}/dbus-1/services/org.kde.Spectacle.service
%{_kde5_datadir}/kconf_update/spectacle_newConfig.upd
%{_prefix}/lib/systemd/user/app-org.kde.spectacle.service
%{_mandir}/man1/spectacle.1.xz

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17285 |21mr|spec-version-maven-plugin-1.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          spec-version-maven-plugin
Version:       1.2
Release:       14
Summary:       Spec Version Maven Plugin
License:       CDDL or GPLv2 with exceptions
URL:           http://glassfish.java.net/
# svn export https://svn.java.net/svn/glassfish~svn/tags/spec-version-maven-plugin-1.2
# tar czf spec-version-maven-plugin-1.2-src-svn.tar.gz spec-version-maven-plugin-1.2
Source0:       %{name}-%{version}-src-svn.tar.gz
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# spec-version-maven-plugin package don't include the license file
Source1:       glassfish-LICENSE.txt


BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.codehaus.plexus:plexus-resources)

# test dep
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

BuildRequires: maven-local
BuildRequires: maven-plugin-build-helper
BuildRequires: maven-plugin-plugin

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Maven Plugin to configure APIs version and
specs in a MANIFEST.MF file.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

sed -i "s|mvn|mvn-rpmbuild|" src/main/resources/checkVersion.sh

cp -p %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%mvn_file :%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17286 |21mr|speech-dispatcher-0.11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global	optflags %{optflags} -fcommon

%global	_disable_ld_no_undefined 1

%define	oname speechd
%define	major 2
%define	libname %mklibname %{oname} %{major}
%define	devname %mklibname %{oname} -d

%bcond_without alsa
%bcond_without pulse
%bcond_without nas
%bcond_without espeak
%bcond_without libao

Summary:	Speech Dispatcher provides a device independent layer for speech synthesis
Name:		speech-dispatcher
Group:		System/Libraries
Version:	0.11.1
Release:	1
License:	GPLv2
Url:		https://freebsoft.org/speechd
Source0:	https://github.com/brailcom/speechd/archive/%{version}.tar.gz?/speech-dispatcher-%{version}.tar.gz
# modified Fedora init script
Source2:	speech-dispatcher.logrotate
Source3:	speech-dispatcherd.default
Source4:	speech-dispatcher-user-pulse.example
Source100:	%{name}.rpmlintrc
Patch0:		speech-dispatcher-0.11.1-remove-pyxdg-dependency.patch
Patch1:		speech-dispatcher-0.11.1-fix-env-shebangs.patch
BuildRequires:	gettext >= 0.19.8
BuildRequires:	intltool
BuildRequires:	texinfo
BuildRequires:	libltdl-devel
%if %{with nas}
BuildRequires:	nas-devel
BuildRequires:	pkgconfig(xau)
%endif
%if %{with alsa}
BuildRequires:	pkgconfig(alsa)
%endif
%if %{with libao}
BuildRequires:	pkgconfig(ao)
%endif
BuildRequires:	pkgconfig(dotconf) >= 1.3
%if %{with espeak}
BuildRequires:	pkgconfig(espeak-ng)
%endif
%if %{with pulse}
BuildRequires:	pkgconfig(libpulse)
%endif
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(setuptools)
Requires:	%{libname} = %{EVRD}
BuildRequires:	pkgconfig(sndfile)
%if %{with espeak}
Requires:	espeak
%endif
Requires:	logrotate
Requires(post,preun):	rpm-helper
Requires(post,preun):	systemd

%description
This is the Speech Dispatcher project (speech-dispatcher). It is a part of the
Free(b)soft project, which is intended to allow blind and visually impaired
people to work with computer and Internet based on free software.

%post
%_post_service speech-dispatcherd || :

%preun
%_preun_service speech-dispatcherd || :

%files -f %{name}.lang
%doc AUTHORS NEWS README* COPYING*
%doc speech-dispatcher-user-pulse.example
%{_bindir}/spd-say
%{_bindir}/spd-conf
%{_bindir}/spdsend
%{_bindir}/%{name}
%{_unitdir}/speech-dispatcherd.service
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/speechd.conf
%config(noreplace) %{_sysconfdir}/%{name}/clients/*.conf
%config(noreplace) %{_sysconfdir}/%{name}/modules/*.conf
%config(noreplace) %{_sysconfdir}/default/speech-dispatcherd
%{_libdir}/%{name}-modules
%{_libdir}/%{name}
%{_datadir}/sounds/%{name}
%{_infodir}/*.info.*
#{_mandir}/man1/*.1*
%{_logdir}/%{name}

#--------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries

%description -n %libname
This package provides the shared libraries for Speech Dispatcher.

%files -n %{libname}
%doc COPYING*
%{_libdir}/libspeechd.so.%{major}*

#--------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc COPYING*
%{_includedir}/%{name}/*.h
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/%{name}.pc

#--------------------------------------------------------------------------

%package -n python3-%{oname}
Summary:	A Python3 library for communication with Speech Dispatcher
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n python3-%{oname}
This package provides a Python library for communication
with Speech Dispatcher.

%files -n python3-%{oname}
%doc COPYING*
%{python3_sitearch}/%{oname}/*.py*
%{python3_sitearch}/%{oname}/__pycache__/*
%{python3_sitearch}/%{oname}_config/*

#-------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

cp -p %{SOURCE4} .


%build
./build.sh
%configure \
	LDFLAGS=' -Wl,--as-needed -Wl,-z,relro -Wl,-O1 -Wl,--build-id' \
	--libexecdir="%{_libdir}" \
	--disable-static \
	--with-default-audio-method=pulse \
	--with-kali=no \
	--with-baratinoo=no \
	--with-ibmtts=no \
	--with-voxin=no \
%if %{with alsa}
	--with-alsa \
%else
	--without-alsa \
%endif
%if %{with pulse}
	--with-pulse \
%else
	--without-pulse \
%endif
%if %{with nas}
	--with-nas \
%else
	--without-nas \
%endif
%if %{with espeak}
	--with-espeak-ng \
%else
	--without-espeak-ng \
%endif
%if %{with libao}
	--with-libao
%else
	--without-libao
%endif

%make


%install
%makeinstall_std

# Remove duplicates with /etc conf files 
rm -rf %{buildroot}%{_datadir}/%{name}

# Logrotate install
install -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# Create the needed directory for logs
install -d -m 0700 %{buildroot}%{_logdir}/%{name}

# Install the /etc/default configuration file
install -d -m 0755 %{buildroot}%{_sysconfdir}/default
install -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/default/speech-dispatcherd

# Remove flite module from the default configuration in speechd.conf
sed -i -e "210 s:AddModule:#AddModule:g" %{buildroot}%{_sysconfdir}/%{name}/speechd.conf

# Enable pulseaudio as default with a fallback to alsa
sed -i 's/# AudioOutputMethod "pulse"/AudioOutputMethod "pulse,alsa"/' %{buildroot}%{_sysconfdir}/%{name}/speechd.conf

# Fix version in pkgconfig file
sed -i 's/0.11.1-dirty/0.11.1/' %{buildroot}%{_libdir}/pkgconfig/%{name}.pc

# Fix perms
chmod +x %{buildroot}%{python3_sitearch}/%{oname}/_test.py

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17287 |21mr|speedcrunch-0.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fast, high precision and powerful desktop calculator
Name:		speedcrunch
Version:	0.12.0
Release:	4
License:	GPLv2+
Group:		Sciences/Mathematics
Url:		https://bitbucket.org/heldercorreia/speedcrunch
# Obtaining the source:
# git clone https://bitbucket.org/heldercorreia/speedcrunch.git --branch release-%%{version} --single-branch
# tar -zcvf %%{name}-%%{version}.tar.gz %%{name}
Source0:	%{name}-%{version}.tar.gz
Source1:	%{name}-%{version}-alt3.tar.xz
Source2:	speedcrunch.desktop
Patch0:		speedcrunch-0.12.0-ts-ru-translation.patch
Patch1:		speedcrunch-0.12.0-clear.patch
BuildRequires:	imagemagick
BuildRequires:	qt5-linguist-tools
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
SpeedCrunch is a fast, high precision and powerful desktop calculator.

Among its features are:
- high precision, up to 50 decimal digits
- to be enjoyed using keyboard
- result shown in scrollable window
- history of last expressions (use up and down arrow)
- built-in functions: abs, sqrt, pi, log, exp, ln, sin, cos, tan, sinh,
 cosh, tanh, asin, acos, atan, arsinh, arcosh, artanh
- postfix operator ! lets you compute factorials
- support for variables, e.g try x=pi/3 and then sin(x)
- special variable ans holds the last calculation result
- percent operator, try e.g. 45%*75 or price/80%
- angle mode: Alt+D for degrees, Alt+R for radians
- automatic parentheses closing, e.g. cos(pi/4 becomes cos(pi/4)

%files
%doc README.md doc/legacy/logic-unit.pdf doc/legacy/new_engine.pdf doc/legacy/speedcrunch-manual.odt
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qn %{name} -a1
patch -p1 < %{name}-%{version}-alt3.patch
%apply_patches
rm -f src/resources/locale/*.qm
pushd src/resources/locale/
for i in *.ts; do
	lconvert-qt5 $i -o $(echo $i |sed "s/\.ts/.qm/")
done
popd

%build
%qmake_qt5 src/%{name}.pro

%install
%makeinstall_qt

mkdir -p %{buildroot}%{_prefix}
mv %{buildroot}/bin %{buildroot}%{_prefix}/
mv %{buildroot}/share %{buildroot}%{_prefix}/

install -Dp -m 0644 %{SOURCE2} %{buildroot}%{_datadir}/applications/%{name}.desktop

# move and convert speedcrunch icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48}/apps
pushd %{buildroot}%{_datadir}/icons/hicolor/48x48/apps
mv %{buildroot}%{_datadir}/pixmaps/%{name}.png %{name}.png
convert -resize 16x16 %{name}.png \
	%{buildroot}%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
convert -resize 32x32 %{name}.png \
	%{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
rm -rf %{buildroot}%{_datadir}/pixmaps

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17288 |21mr|speedtouch-firmware-extractor-0.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname firmware-extractor

Summary:	Speedtouch firmware extractor
Name:		speedtouch-firmware-extractor
Version:	0.1
Release:	15
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.linux-usb.org/SpeedTouch/firmware/index.html
Source0:	%{oname}.tar.bz2

%description
This is a small application to prepare and install the firmware for a
SpeedTouch USB modem so that a 2.6.10 kernel (or later) can load the
firmware without the assistance of modem_run.

The firmware extractor splits the firmware file (old mgmt.o) in
smaller firmware files (stage1 and stage2) that are meant to be used
with hotplug firmware loading.

%files
%doc README
%{_sbindir}/%{oname}

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}

%build
gcc %{optflags} -o %{oname} firmware.c

%install
install -D -m755 %{oname} %{buildroot}%{_sbindir}/%{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17289 |21mr|speex-1.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An open-source, patent-free speech codec
Name:		speex
Version:	1.2.0
Release:	4
License:	BSD
Group:		Sound
Url:		http://www.speex.org/
Source0:	http://downloads.us.xiph.org/releases/speex/%{name}-%{version}.tar.gz
Patch1:		speex-1.1.6-fix-pkgconfig-path.patch
Patch2:		speex-1.2rc1-CVE-2008-1686.patch
BuildRequires:	chrpath
BuildRequires:	pkgconfig(vorbis)
%ifnarch %{e2k}
BuildRequires:	pkgconfig(speexdsp)
%endif

%description
Speex is a patent-free audio codec designed especially for voice (unlike 
Vorbis which targets general audio) signals and providing good narrowband 
and wideband quality. This project aims to be complementary to the Vorbis
codec.

%files
%doc COPYING AUTHORS ChangeLog NEWS README
%attr(755,root,root) %{_bindir}/speex*
%{_mandir}/man1/speexenc.1*
%{_mandir}/man1/speexdec.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of the Speex codec
Group:		System/Libraries

%description -n %{libname}
This package contains the shared library required for running
applications based on Speex.

%files -n %{libname}
%{_libdir}/libspeex.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Speex development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{mklibname -s -d speex} < 1.2-0.rc1.7

%description -n %{devname}
Speex development files.

%files -n %{devname}
%doc doc/manual.pdf
%{_libdir}/libspeex.so
%{_includedir}/speex/*.h
%{_libdir}/pkgconfig/speex.pc
%{_datadir}/aclocal/speex.m4

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
autoreconf -fi
export CFLAGS='%{optflags} -DRELEASE'
%configure \
	--disable-static \
	--enable-binaries

%make_build

%install
%makeinstall_std
chrpath -d %{buildroot}%{_bindir}/*
rm -f %{buildroot}%{_datadir}/doc/*/manual.pdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17290 |21mr|speexdsp-1.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	Preprocessing, echo cancellation and jitter buffer helpers for Speex
Name:		speexdsp
Version:	1.2.0
Release:	2
License:	BSD
Group:		Sound
Url:		http://www.speex.org/
Source0:	http://downloads.us.xiph.org/releases/speex/%{name}-%{version}.tar.gz
Patch0:		speexdsp-1.2rc3-fix-pkg-config-file.patch

%description
Preprocessing, echo cancellation and jitter buffer helpers for Speex.

Speex is a patent-free audio codec designed especially for voice (unlike
Vorbis which targets general audio) signals and providing good narrowband
and wideband quality. This project aims to be complementary to the Vorbis
codec.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of the Speex codec
Group:		System/Libraries
Conflicts:	%{_lib}speex1 < 1.2.0

%description -n %{libname}
This package contains the shared library required for running
applications based on Speex.

%files -n %{libname}
%{_libdir}/libspeexdsp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	SpeexDSP development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}speex-devel < 1.2.0

%description -n %{devname}
SpeexDSP development files.

%files -n %{devname}
%doc %{_docdir}/speexdsp
%{_libdir}/libspeexdsp.so
%{_includedir}/speex/speex_echo.h
%{_includedir}/speex/speex_jitter.h
%{_includedir}/speex/speex_preprocess.h
%{_includedir}/speex/speex_resampler.h
%{_includedir}/speex/speexdsp_config_types.h
%{_includedir}/speex/speexdsp_types.h
%{_libdir}/pkgconfig/speexdsp.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%autopatch -p1

%build
autoreconf -fi
export CFLAGS='%{optflags} -DRELEASE'
%configure \
%ifarch %{e2k} %{x86_64} %{ix86}
	--enable-sse \
	--disable-neon \
%endif
	--enable-binaries

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17291 |21mr|spglib-1.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname symspg %{major}
%define develname	%mklibname -d %{name}

Name:		spglib
Version:	1.16.0
Release:	1
Summary:	C library for finding and handling crystal symmetries
License:	BSD
Group:		System/Libraries
Url:		https://atztogo.github.io/spglib/
Source0:	https://github.com/atztogo/spglib/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	libtool

%description
C library for finding and handling crystal symmetries.

#----------------------------------------------------

%package -n	%{libname}
Summary:	C library for finding and handling crystal symmetries
Group:		System/Libraries

%description -n	%{libname}
C library for finding and handling crystal symmetries.
This package contains library files for %{name}.

#----------------------------------------------------

%package -n	%{develname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} >= %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	libspg-devel = %{version}-%{release}

%description -n	%{develname}
The %{develname} package contains libraries and header files for
developing applications that use %{name}.

#----------------------------------------------------

%prep
%setup -q

%build
touch INSTALL NEWS README AUTHORS
autoreconf -vfi

%configure --disable-static

%make

%install
%makeinstall_std

find %{buildroot} -name '*.la' -delete

%files -n %{libname}
%doc README.md
%{_libdir}/libsymspg.so.*

%files -n %{develname}
%doc ChangeLog README.md
# %license COPYING
%{_includedir}/%{name}/
%{_libdir}/libsymspg.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17292 |21mr|spice-gtk-0.41-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without vala

%define glibapi 2.0
%define glibmajor 8
%define libglib %mklibname spice-client-glib %{glibapi} %{glibmajor}
%define glibgir %mklibname spice-client-glib-gir %{glibapi}

%define gtkapi 3.0
%define gtkmajor 5
%define libgtk %mklibname spice-client-gtk %{gtkapi} %{gtkmajor}
%define gtkgir %mklibname spice-client-gtk-gir %{gtkapi}

%define devname %mklibname %{name} -d

# subprojects/spice-common/tests/generated_test_demarshallers.c
%global optflags %{optflags} -Wno-error=strict-aliasing

Summary:	A GTK client widget for accessing SPICE desktop servers
Name:		spice-gtk
Version:	0.41
Release:	1
License:	LGPLv2+
Group:		Networking/Remote access
Url:		http://spice-space.org/page/Spice-Gtk
Source0:	http://www.spice-space.org/download/gtk/%{name}-%{version}.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	python3-parsing
BuildRequires:	gettext-devel
BuildRequires:	jpeg-devel
# for virtmanager
BuildRequires:	python3-six
BuildRequires:	sasl-devel
BuildRequires:  pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-base-1.0)
BuildRequires:  pkgconfig(gstreamer-app-1.0)
BuildRequires:  pkgconfig(gstreamer-audio-1.0)
BuildRequires:  pkgconfig(gstreamer-video-1.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(celt051)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk+-x11-3.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libcacard)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libphodav-2.0)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libpulse-mainloop-glib)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libusbredirhost)
BuildRequires:	pkgconfig(libusbredirparser-0.5)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(spice-server)
BuildRequires:	pkgconfig(spice-protocol)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libacl)
%if %{with vala}
BuildRequires:	vala-devel
BuildRequires:	vala-tools
%endif

%description
Spice-GTK is a GTK client widget for accessing SPICE desktop 
servers. This package contains two simple clients based on the 
library:
	spicy is a client to access SPICE desktops.
	snappy is a tool to capture screen-shots of a SPICE desktop.

%files -f %{name}.lang
%{_bindir}/spicy
%{_bindir}/spicy-screenshot
%{_bindir}/spicy-stats
%{_libexecdir}/spice-gtk-%{_arch}/spice-client-glib-usb-acl-helper
%{_bindir}/spice-client-glib-usb-acl-helper
%{_datadir}/polkit-1/actions/org.spice-space.lowlevelusbaccess.policy
%{_mandir}/man1/spice-client.1*

#----------------------------------------------------------------------------

%package -n %{libglib}
Summary:	Runtime libraries for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}spice-gtk3.0_1 < 0.7.81-2

%description -n %{libglib}
Runtime libraries for %{name}.

%files -n %{libglib}
%{_libdir}/libspice-client-glib-%{glibapi}.so.%{glibmajor}
%{_libdir}/libspice-client-glib-%{glibapi}.so.%{glibmajor}.*

#----------------------------------------------------------------------------

%package -n %{glibgir}
Summary:	GObject introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libglib} = %{EVRD}
Conflicts:	%{_lib}spice-gtk3.0_1 < 0.7.81-2

%description -n %{glibgir}
GObject introspection interface library for %{name}.

%files -n %{glibgir}
%{_libdir}/girepository-1.0/SpiceClientGLib-%{glibapi}.typelib

#----------------------------------------------------------------------------

%package -n %{libgtk}
Summary:	Runtime libraries for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}spice-gtk3.0_1 < 0.7.81-2

%description -n %{libgtk}
Runtime libraries for %{name}.

%files -n %{libgtk}
%{_libdir}/libspice-client-gtk-%{gtkapi}.so.%{gtkmajor}
%{_libdir}/libspice-client-gtk-%{gtkapi}.so.%{gtkmajor}.*

#----------------------------------------------------------------------------

%package -n %{gtkgir}
Summary:	GObject introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{libgtk} = %{EVRD}
Conflicts:	%{_lib}spice-gtk3.0_1 < 0.7.81-2

%description -n %{gtkgir}
GObject introspection interface library for %{name}.

%files -n %{gtkgir}
%{_libdir}/girepository-1.0/SpiceClientGtk-%{gtkapi}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libglib} = %{EVRD}
Requires:	%{libgtk} = %{EVRD}
Requires:	%{glibgir} = %{EVRD}
Requires:	%{gtkgir} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}spice-gtk3.0-devel < 0.7.81-2

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/spice-gtk
%{_includedir}/spice-client-glib-%{glibapi}/
%{_includedir}/spice-client-gtk-%{gtkapi}/
%{_libdir}/libspice-client-glib-%{glibapi}.so
%{_libdir}/libspice-client-gtk-%{gtkapi}.so
%{_libdir}/pkgconfig/spice-client-glib-%{glibapi}.pc
%{_libdir}/pkgconfig/spice-client-gtk-%{gtkapi}.pc
%{_datadir}/gir-1.0/SpiceClientGLib-%{glibapi}.gir
%{_datadir}/gir-1.0/SpiceClientGtk-%{gtkapi}.gir
%{_datadir}/vala/vapi/spice-client-glib-%{glibapi}.deps
%{_datadir}/vala/vapi/spice-client-glib-%{glibapi}.vapi
%{_datadir}/vala/vapi/spice-client-gtk-%{gtkapi}.deps
%{_datadir}/vala/vapi/spice-client-gtk-%{gtkapi}.vapi

#----------------------------------------------------------------------------

%prep
%setup -q

%build
# (From Fedora)

# gstreamer should be enough, may be deprecated in the future
%global mjpegflag -Dbuiltin-mjpeg=false

%meson \
  --auto-features=enabled \
  %{mjpegflag} \
%ifarch s390x # https://gitlab.freedesktop.org/spice/spice-gtk/issues/120
  -Dusbredir=disabled \
%endif
  -Dusb-acl-helper-dir=%{_libexecdir}/spice-gtk-%{_arch}/

%meson_build

%install
%meson_install

# compat symlink, compat with old location
( cd %{buildroot}
  ln -s %{_libexecdir}/spice-gtk-%{_arch}/spice-client-glib-usb-acl-helper \
  ./%{_bindir}/spice-client-glib-usb-acl-helper
)

# needed because of the upstream issue described in
# http://lists.freedesktop.org/archives/spice-devel/2012-August/010343.html
# these are unwanted spice-protocol files
rm -rf %{buildroot}%{_includedir}/spice-1
rm -rf %{buildroot}%{_datadir}/pkgconfig/spice-protocol.pc

%find_lang %{name}

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17293 |21mr|spice-parent-26-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           spice-parent
Version:        26
Release:        11
Summary:        Sonatype Spice Components
License:        ASL 2.0
URL:            http://github.com/sonatype/oss-parents
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://repo1.maven.org/maven2/org/sonatype/spice/%{name}/%{version}/%{name}-%{version}.pom
Source1:        http://apache.org/licenses/LICENSE-2.0.txt

Patch0:         pom.patch

BuildRequires:  maven-local
BuildRequires:  forge-parent

%description
Spice components and libraries are common components
used throughout the Sonatype Forge.

%prep
%setup -qcT
cp -p %{SOURCE0} pom.xml
cp -p %{SOURCE1} .

#Remove plexus-javadoc
%patch0

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17294 |21mr|spice-protocol-0.14.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Spice protocol header files
Name:		spice-protocol
Version:	0.14.3
Release:	1
# Main headers are BSD, controller / foreign menu are LGPL, macros.h is GPL?
License:	BSD and LGPLv2+ and GPLv2+
Group:		Development/Other
Url:		http://www.spice-space.org/
Source0:	http://www.spice-space.org/download/releases/%{name}-%{version}.tar.xz
BuildArch:	noarch
BuildRequires:  meson

%description
Header files describing the spice protocol and the para-virtual
graphics card QXL.

%files
%doc COPYING
%{_includedir}/spice-1
%{_datadir}/pkgconfig/spice-protocol.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17295 |21mr|spice-server-0.14.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define Werror_cflags %nil
%define _disable_ld_no_undefined 1
%define _disable_rebuild_configure 1

%define libname %mklibname %{name} %major
%define libnamedev %mklibname %{name} -d

Name:		spice-server
Version:	0.14.3
Release:	1
Summary:	Implements the SPICE protocol
Group:		Networking/Remote access
License:	LGPLv2+
URL:		http://www.spice-space.org/
Source0:	http://www.spice-space.org/download/releases/%{name}/spice-%{version}.tar.bz2
Source1:	spice-xpi-client-spicec

# https://bugzilla.redhat.com/show_bug.cgi?id=613529
ExclusiveArch:	%{ix86} %{x86_64} %{armx}

BuildRequires:	pkgconfig
BuildRequires:	spice-protocol >= 0.12.14
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	python3egg(pyparsing)
BuildRequires:	alsa-oss-devel openssl-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(glib-2.0)
#BuildRequires:	cegui06-devel
BuildRequires:	pkgconfig(libcacard)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-base-1.0)
BuildRequires:  pkgconfig(gstreamer-app-1.0)
BuildRequires:  pkgconfig(gstreamer-audio-1.0)
BuildRequires:  pkgconfig(gstreamer-video-1.0)

%description
The Simple Protocol for Independent Computing Environments (SPICE) is
a remote display system built for virtual environments which allows
you to view a computing 'desktop' environment not only on the machine
where it is running, but from anywhere on the Internet and from a wide
variety of machine architectures.

%package -n %libname
Summary:	Implements the server side of the SPICE protocol
Group:		System/Libraries

%description -n %libname
The Simple Protocol for Independent Computing Environments (SPICE) is
a remote display system built for virtual environments which allows
you to view a computing 'desktop' environment not only on the machine
where it is running, but from anywhere on the Internet and from a wide
variety of machine architectures.

This package contains the run-time libraries for any application that wishes
to be a SPICE server.

%package -n %libnamedev
Summary:	Header files, libraries and development documentation for spice-server
Group:		Development/C
Requires:	%libname = %{version}-%{release}
Requires:	pkgconfig(libcacard)
Provides:	%name-devel = %version-%release


%description -n %libnamedev
This package contains the header files, static libraries and development
documentation for spice-server. If you like to develop programs
using spice-server, you will need to install spice-server-devel.

%package client
Summary:       Implements the client side of the SPICE protocol
Group:         Networking/Remote access
Requires(post,postun): update-alternatives

%description client
The Simple Protocol for Independent Computing Environments (SPICE) is
a remote display system built for virtual environments which allows
you to view a computing 'desktop' environment not only on the machine
where it is running, but from anywhere on the Internet and from a wide
variety of machine architectures.

This package contains the SPICE client application.

%files client
%doc COPYING README
%ghost %{_bindir}/spicec
%ghost %{_libexecdir}/spice-xpi-client
%{_libexecdir}/spice-xpi-client-spicec

%post client
update-alternatives --install %{_libexecdir}/spice-xpi-client \
  spice-xpi-client %{_libexecdir}/spice-xpi-client-spicec 10

%postun client
if [ $1 -eq 0 ] ; then
  update-alternatives --remove spice-xpi-client %{_libexecdir}/spice-xpi-client-spicec
fi

%prep
%setup -q -n spice-%{version}
%autopatch -p1


%build
export PYTHON=%__python3
export CC=gcc
export CXX=g++
%configure --enable-smartcard --disable-werror --disable-celt051
%make WARN_CFLAGS='' V=1 LIBS="-lX11 -lXext -lXrandr -lXrender -lXfixes -lasound"

%install
%makeinstall_std
rm -f %{buildroot}%{_libdir}/libspice-server.a
rm -f %{buildroot}%{_libdir}/libspice-server.la

mkdir -p %{buildroot}%{_libexecdir}
touch %{buildroot}%{_libexecdir}/spice-xpi-client
install -m 0755 %{SOURCE1} %{buildroot}%{_libexecdir}/

%files -n %libname
%doc COPYING README
%{_libdir}/libspice-server.so.%{major}*

%files -n %libnamedev
%{_includedir}/spice-server
%{_libdir}/libspice-server.so
%{_libdir}/pkgconfig/spice-server.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17296 |21mr|spice-server-0.14.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define Werror_cflags %nil
%define _disable_ld_no_undefined 1
%define _disable_rebuild_configure 1

%define libname %mklibname %{name} %major
%define libnamedev %mklibname %{name} -d

Name:		spice-server
Version:	0.14.3
Release:	2
Summary:	Implements the SPICE protocol
Group:		Networking/Remote access
License:	LGPLv2+
URL:		http://www.spice-space.org/
Source0:	http://www.spice-space.org/download/releases/%{name}/spice-%{version}.tar.bz2
Source1:	spice-xpi-client-spicec

# https://bugzilla.redhat.com/show_bug.cgi?id=613529
ExclusiveArch:	%{ix86} %{x86_64} %{armx} %{e2k}

BuildRequires:	pkgconfig
BuildRequires:	spice-protocol >= 0.12.14
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	python3egg(pyparsing)
BuildRequires:	alsa-oss-devel openssl-devel
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(glib-2.0)
#BuildRequires:	cegui06-devel
BuildRequires:	pkgconfig(libcacard)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:  pkgconfig(gstreamer-base-1.0)
BuildRequires:  pkgconfig(gstreamer-app-1.0)
BuildRequires:  pkgconfig(gstreamer-audio-1.0)
BuildRequires:  pkgconfig(gstreamer-video-1.0)

%description
The Simple Protocol for Independent Computing Environments (SPICE) is
a remote display system built for virtual environments which allows
you to view a computing 'desktop' environment not only on the machine
where it is running, but from anywhere on the Internet and from a wide
variety of machine architectures.

%package -n %libname
Summary:	Implements the server side of the SPICE protocol
Group:		System/Libraries

%description -n %libname
The Simple Protocol for Independent Computing Environments (SPICE) is
a remote display system built for virtual environments which allows
you to view a computing 'desktop' environment not only on the machine
where it is running, but from anywhere on the Internet and from a wide
variety of machine architectures.

This package contains the run-time libraries for any application that wishes
to be a SPICE server.

%package -n %libnamedev
Summary:	Header files, libraries and development documentation for spice-server
Group:		Development/C
Requires:	%libname = %{version}-%{release}
Requires:	pkgconfig(libcacard)
Provides:	%name-devel = %version-%release


%description -n %libnamedev
This package contains the header files, static libraries and development
documentation for spice-server. If you like to develop programs
using spice-server, you will need to install spice-server-devel.

%package client
Summary:       Implements the client side of the SPICE protocol
Group:         Networking/Remote access
Requires(post,postun): update-alternatives

%description client
The Simple Protocol for Independent Computing Environments (SPICE) is
a remote display system built for virtual environments which allows
you to view a computing 'desktop' environment not only on the machine
where it is running, but from anywhere on the Internet and from a wide
variety of machine architectures.

This package contains the SPICE client application.

%files client
%doc COPYING README
%ghost %{_bindir}/spicec
%ghost %{_libexecdir}/spice-xpi-client
%{_libexecdir}/spice-xpi-client-spicec

%post client
update-alternatives --install %{_libexecdir}/spice-xpi-client \
  spice-xpi-client %{_libexecdir}/spice-xpi-client-spicec 10

%postun client
if [ $1 -eq 0 ] ; then
  update-alternatives --remove spice-xpi-client %{_libexecdir}/spice-xpi-client-spicec
fi

%prep
%setup -q -n spice-%{version}
%autopatch -p1


%build
export PYTHON=%__python3
export CC=gcc
export CXX=g++
%configure --enable-smartcard --disable-werror --disable-celt051
%make WARN_CFLAGS='' V=1 LIBS="-lX11 -lXext -lXrandr -lXrender -lXfixes -lasound"

%install
%makeinstall_std
rm -f %{buildroot}%{_libdir}/libspice-server.a
rm -f %{buildroot}%{_libdir}/libspice-server.la

mkdir -p %{buildroot}%{_libexecdir}
touch %{buildroot}%{_libexecdir}/spice-xpi-client
install -m 0755 %{SOURCE1} %{buildroot}%{_libexecdir}/

%files -n %libname
%doc COPYING README
%{_libdir}/libspice-server.so.%{major}*

%files -n %libnamedev
%{_includedir}/spice-server
%{_libdir}/libspice-server.so
%{_libdir}/pkgconfig/spice-server.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17297 |21mr|spice-vdagent-0.22.1-6.gitaa0816.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit aa08162f036840d3e33502dc0a836b03b9cec97c
%define commit_short %(echo %{commit} | head -c 6)

Summary:	Agent for Spice guests
Name:		spice-vdagent
Version:	0.22.1
Release:	6.git%{commit_short}.4
License:	GPLv3+
Group:		System/Kernel and hardware
Url:		http://spice-space.org/
#Source0:	http://spice-space.org/download/releases/%{name}-%{version}.tar.bz2
Source0:	https://gitlab.freedesktop.org/spice/linux/vd_agent/-/archive/%{commit}/vd_agent-%{commit}.tar
# https://build.opensuse.org/package/view_file/openSUSE:Factory/spice-vdagent/harden_spice-vdagentd.service.patch?expand=1
Patch0:		harden_spice-vdagentd.service.patch
BuildRequires:	spice-protocol
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(systemd)
# pkg-config --variable=udevdir udev
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
Recommends:	(%{name}-gdm if gdm)

%description
Spice agent for Linux guests offering the following features:

Features:
* Client mouse mode (no need to grab mouse by client, no mouse lag)
  this is handled by the daemon by feeding mouse events into the kernel
  via uinput. This will only work if the active X-session is running a
  spice-vdagent process so that its resolution can be determined.
* Automatic adjustment of the X-session resolution to the client resolution
* Support of copy and paste (text and images) between the active X-session
  and the client
* And more. See README.

%files
%doc CHANGELOG.md README.md
%license COPYING
%{_bindir}/spice-vdagent
%{_mandir}/man1/spice-vdagent.1*
%{_mandir}/man1/spice-vdagentd.1*
%{_sbindir}/spice-vdagentd
%{_tmpfilesdir}/spice-vdagentd.conf
%{_udevrulesdir}/70-spice-vdagentd.rules
%{_unitdir}/spice-vdagentd.service
%{_unitdir}/spice-vdagentd.socket
%{_userunitdir}/spice-vdagent.service
%{_sysconfdir}/xdg/autostart/spice-vdagent.desktop

%post
%tmpfiles_create %{_tmpfilesdir}/spice-vdagentd.conf
%systemd_post spice-vdagentd.service spice-vdagentd.socket
%systemd_user_post spice-vdagent.service

%if %{mdvver} <= 202110
%posttrans
# if updating from version without https://gitlab.freedesktop.org/spice/linux/vd_agent/-/commit/aa08162f
# and if spice-vdagent-xdg-autostart is not installed
# (because %%systemd_user_post will not enable the user service on package upgrade)
if ! test -f %{_sysconfdir}/xdg/autostart/spice-vdagent.desktop; then
systemctl --global preset spice-vdagent.service || :
fi
%endif

%preun
%systemd_preun spice-vdagentd.service spice-vdagentd.socket
%systemd_user_preun spice-vdagent.service

%postun
%systemd_postun_with_restart spice-vdagentd.service
%systemd_user_postun_with_restart spice-vdagent.service


#----------------------------------------------------------------------------

%package gdm
Summary:	Integration of spice-vdagent with GDM
Group:		Graphical desktop/GNOME
BuildArch:	noarch
Requires:	gdm
Requires:	%{name}
# files were moved to a new subpackage
Conflicts:	spice-vdagent < 0.21.0-3

%description gdm
Integration of spice-vdagent with GDM

%files gdm
%{_datadir}/gdm/autostart/LoginWindow/spice-vdagent.desktop
%{_datadir}/gdm/greeter/autostart/spice-vdagent.desktop

#----------------------------------------------------------------------------

%prep
#autosetup -p1
%autosetup -p1 -n vd_agent-%{commit}

%build
autoreconf -if

# --with-gtk4=yes breaks mouse in KDE after changing resolution,
# without it, gtk3 is used automatically
%configure \
	--with-session-info=systemd \
	--with-init-script=systemd \
	--

%make_build

%install
%make_install

# When building from git, mans are not created, create them
# XXX spice-vdagentd must have section 8, not 1:
# https://gitlab.freedesktop.org/spice/linux/vd_agent/-/issues/25
mkdir -p %{buildroot}%{_mandir}/man1
( cd data
  for i in *.1.in
  do
    new_name="$(echo "$i" | sed -e 's,.in$,,')"
    sed "$i" -e 's,@PACKAGE_STRING@,%{name},g' > %{buildroot}%{_mandir}/man1/"$new_name"
  done
)

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17298 |21mr|spirv-headers-1.3.283.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname SPIRV-Headers

Summary:	Headers for working with SPIR-V, a language for running on GPUs
Name:		spirv-headers
Version:	1.3.283.0
Release:	1
Epoch:		1
License:	BSD
Group:		Development/C
Url:		https://github.com/KhronosGroup/SPIRV-Headers
Source0:	https://github.com/KhronosGroup/SPIRV-Headers/archive/vulkan-sdk-%{version}.tar.gz?/%{oname}-vulkan-sdk-%{version}.tar.gz
BuildRequires:	cmake
BuildArch:	noarch

%description
This package contains machine-readable files for the SPIR-V Registry.
It includes:
* Header files for various languages.
* JSON files describing the grammar for the SPIR-V core instruction
  set and the extended instruction sets.
* The XML registry file.
Headers are placed in the include directory, with up-to-date headers in the
unified1 sub-directory. Older headers are placed in subdirectories according
to their version.

%files
%doc README.md
%license LICENSE
%{_datadir}/cmake/%{oname}
%{_datadir}/pkgconfig/%{oname}.pc
%{_includedir}/spirv

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-vulkan-sdk-%{version}

%build
%cmake
%make 

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17299 |21mr|spirv-llvm-translator-17.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 16
%define devname %mklibname LLVMSPIRVLib -d

%define oname SPIRV-LLVM-Translator

%if %{mdvver} < 202310
%bcond_without alt_llvm
%else
%bcond_with alt_llvm
%endif

%global llvm_ver 17
%global llvm_path /opt/llvm%{llvm_ver}

Name:		spirv-llvm-translator
Version:	17.0.0
Release:	2
Summary:	LLVM to SPIRV Translator
Group:		Development/Other
License:	NCSA
URL:		https://github.com/KhronosGroup/SPIRV-LLVM-Translator
Source0:        https://github.com/KhronosGroup/SPIRV-LLVM-Translator/archive/refs/tags/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
# https://github.com/KhronosGroup/SPIRV-LLVM-Translator/pull/2258
Patch0:         SPIRV-LLVM-Translator-17.0.0-upstream.patch
BuildRequires:	cmake
BuildRequires:	ninja
%if %{with alt_llvm}
BuildRequires:	llvm%{llvm_ver}
%else
BuildRequires:	llvm-devel
%endif
BuildRequires:	spirv-headers
BuildRequires:	pkgconfig(zlib)
BuildRequires:	spirv-tools

%description
Khronos LLVM to SPIRV Translator. This is a library
to be used by Mesa for OpenCL support. It translate
LLVM IR to Khronos SPIR-V. It also includes a
standalone tool used for building libclc.

#------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for LLVM to SPIRV Translator
Group:		Development/Other
Requires:	spirv-headers
Provides:	spirv-llvm-devel = %{EVRD}
Provides:	llvm-spirv-devel = %{EVRD}
Obsoletes:	%{mklibname LLVMSPIRVLib}15 < 15.0.0-1

%description -n %{devname}
This package contains libraries and header files for
developing against %{name}

%files -n %{devname}
%{_includedir}/LLVMSPIRVLib
%{_libdir}/libLLVMSPIRVLib.a
%{_libdir}/pkgconfig/LLVMSPIRVLib.pc

#------------------------------------------------------------

%package tools
Summary:	Standalone llvm to spirv translator tool
Group:		Development/Other
Provides:	llvm-spirv-tools = %{EVRD}
Provides:	spirv-llvm-tools = %{EVRD}

%description tools
This package contains the standalone llvm to spirv tool.

%files tools
%{_bindir}/llvm-spirv

#------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}


%build

%if %{with alt_llvm}
export PATH="%{llvm_path}/bin:$PATH"
%endif

%cmake -G Ninja \
       -DLLVM_BUILD_TOOLS=ON \
       -DBUILD_SHARED_LIBS:BOOL=OFF \
       -DCMAKE_BUILD_TYPE=RelWithDebInfo \
       -DLLVM_EXTERNAL_PROJECTS="SPIRV-Headers" \
       -DLLVM_EXTERNAL_SPIRV_HEADERS_SOURCE_DIR="/usr/include/spirv/" \
       -DCMAKE_INSTALL_RPATH:BOOL=";"

%ninja_build

%install
%ninja_install -C build
rm -rf %{buildroot}/%{_includedir}/spirv/



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17300 |21mr|spirv-tools-1.3.204.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	__requires_exclude devel\\(libgcc_s*

%define	oname	SPIRV-Tools

# No soname upstream, arbitrarily using 0 for now
%define major 0
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname -d %{name}

Summary:	API and commands for processing SPIR-V modules
Name:		spirv-tools
Version:	1.3.204.1
Release:	1
Epoch:		1
Group:		Development/Tools
License:	ASL 2.0
Url:		https://github.com/KhronosGroup/SPIRV-Tools
Source0:	https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/sdk-%{version}.tar.gz?/%{oname}-sdk-%{version}.tar.gz
Patch0:		spirv-tools-2020.6-soname.patch
# Fix upstream issue #3905: https://github.com/KhronosGroup/SPIRV-Tools/pull/3906
Patch2:		spirv-tools-2020.6-fix-pkgconfig-libdir-with-absolute-path.patch
BuildRequires:	cmake
BuildRequires:	spirv-headers
BuildRequires:	python3egg(numpy)
BuildRequires:	python3egg(simplejson)
BuildRequires:	pkgconfig(python3)
Requires:	%{libname} = %{EVRD}

%description
This package provides an API and various tools for processing SPIR-V modules.
It includes an assembler, a binary parser, a disassembler, and a validator.

%files
%doc README.md CHANGES
%license LICENSE
%{_bindir}/spirv-as
%{_bindir}/spirv-cfg
%{_bindir}/spirv-dis
%{_bindir}/spirv-lesspipe.sh
%{_bindir}/spirv-link
%{_bindir}/spirv-lint
%{_bindir}/spirv-opt
%{_bindir}/spirv-reduce
%{_bindir}/spirv-val

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}%{name} < %{version}
Obsoletes:	%{_lib}%{name} < %{version}

%description -n %{libname}
Library files for programs included in %{name}.

%files -n %{libname}
%license LICENSE
%{_libdir}/lib%{oname}-link.so.%{major}*
%{_libdir}/lib%{oname}-opt.so.%{major}*
%{_libdir}/lib%{oname}-reduce.so.%{major}*
%{_libdir}/lib%{oname}-shared.so.%{major}*
%{_libdir}/lib%{oname}.so.%{major}*
%{_libdir}/lib%{oname}-link.so.%{version}
%{_libdir}/lib%{oname}-opt.so.%{version}
%{_libdir}/lib%{oname}-reduce.so.%{version}
%{_libdir}/lib%{oname}-shared.so.%{version}
%{_libdir}/lib%{oname}.so.%{version}

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	spirv-headers
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for using %{libname}.

%files -n %{devname}
%license LICENSE
%{_includedir}/%{name}/*
%{_libdir}/lib%{oname}-link.so
%{_libdir}/lib%{oname}-lint.so
%{_libdir}/lib%{oname}-opt.so
%{_libdir}/lib%{oname}-reduce.so
%{_libdir}/lib%{oname}-shared.so
%{_libdir}/lib%{oname}.so
%{_libdir}/cmake/%{oname}-link/%{oname}-*.cmake
%{_libdir}/cmake/%{oname}-lint/%{oname}-lint*.cmake
%{_libdir}/cmake/%{oname}-opt/%{oname}-*.cmake
%{_libdir}/cmake/%{oname}-reduce/%{oname}-*.cmake
%{_libdir}/cmake/%{oname}/%{oname}*.cmake
%{_libdir}/pkgconfig/%{oname}-shared.pc
%{_libdir}/pkgconfig/%{oname}.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-sdk-%{version}

%build
%cmake	.. \
	-DSPIRV_WERROR=OFF			\
	-DCMAKE_SYSTEM_NAME="Linux"		\
	-DCMAKE_BUILD_TYPE=Release		\
	-DCMAKE_INSTALL_LIBDIR="%{_lib}"	\
	-DSPIRV_TOOLS_BUILD_STATIC=OFF		\
	-DSPIRV_TOOLS_SOVERSION=%{major}	\
	-DSPIRV_TOOLS_VERSION=%{version}	\
	-DPYTHON_EXECUTABLE:FILEPATH="%{_bindir}/python3"	\
	-DSPIRV-Headers_SOURCE_DIR="%{_prefix}"
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{prefix}/lib/debug

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17301 |21mr|spirv-tools-1.3.283.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	__requires_exclude devel\\(libgcc_s*

%define	oname SPIRV-Tools

# No soname upstream, arbitrarily using 0 for now
%define major 0
%define	libname	%mklibname %{name} %{major}
%define	devname	%mklibname -d %{name}

Summary:	API and commands for processing SPIR-V modules
Name:		spirv-tools
Version:	1.3.283.0
Release:	1
Epoch:		1
Group:		Development/Tools
License:	ASL 2.0
Url:		https://github.com/KhronosGroup/SPIRV-Tools
Source0:	https://github.com/KhronosGroup/SPIRV-Tools/archive/refs/tags/vulkan-sdk-%{version}.tar.gz?/%{oname}-vulkan-sdk-%{version}.tar.gz
Patch0:		spirv-tools-2020.6-soname.patch
# Fix upstream issue #3905: https://github.com/KhronosGroup/SPIRV-Tools/pull/3906
Patch2:		spirv-tools-1.3.283.0.patch
BuildRequires:	cmake
BuildRequires:	spirv-headers
BuildRequires:	python3dist(numpy)
BuildRequires:	python3dist(simplejson)
BuildRequires:	pkgconfig(python3)
Requires:	%{libname} = %{EVRD}

%description
This package provides an API and various tools for processing SPIR-V modules.
It includes an assembler, a binary parser, a disassembler, and a validator.

%files
%doc README.md CHANGES
%license LICENSE
%{_bindir}/spirv-*

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library files for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}%{name} < %{version}
Obsoletes:	%{_lib}%{name} < %{version}

%description -n %{libname}
Library files for programs included in %{name}.

%files -n %{libname}
%license LICENSE
%{_libdir}/lib%{oname}*.so.%{major}*
%{_libdir}/lib%{oname}*.so.%{version}

#-----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	spirv-headers
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for using %{libname}.

%files -n %{devname}
%license LICENSE
%{_includedir}/%{name}/*
%{_libdir}/lib%{oname}*.so
%{_libdir}/cmake/%{oname}*
%{_libdir}/pkgconfig/%{oname}*.pc

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-vulkan-sdk-%{version}

%build
%cmake	\
	-DCMAKE_BUILD_TYPE=Release		\
	-DCMAKE_INSTALL_LIBDIR="%{_lib}"	\
	-DCMAKE_SYSTEM_NAME="Linux"		\
	-DENABLE_RTTI=ON			\
	-DPYTHON_EXECUTABLE:FILEPATH="%{_bindir}/python3"	\
	-DSPIRV-Headers_SOURCE_DIR="%{_prefix}"	\
	-DSPIRV_TOOLS_BUILD_STATIC=OFF		\
	-DSPIRV_TOOLS_SOVERSION=%{major}	\
	-DSPIRV_TOOLS_VERSION=%{version}	\
	-DSPIRV_WERROR=OFF			\
	..
%make

%install
%makeinstall_std -C build

rm -rf %{buildroot}%{prefix}/lib/debug

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17302 |21mr|springframework-3.2.18-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}

Name:          springframework
Version:       3.2.18
Release:       4
Summary:       Spring Java Application Framework
Epoch:         0
License:       ASL 2.0
URL:           http://projects.spring.io/spring-framework/

Source0:       https://github.com/spring-projects/spring-framework/archive/v%{namedversion}/%{name}-%{namedversion}.tar.gz

Source101:     springframework-%{namedversion}.pom
Source102:     http://repo1.maven.org/maven2/org/%{name}/spring-core/%{namedversion}/spring-core-%{namedversion}.pom
Source103:     http://repo1.maven.org/maven2/org/%{name}/spring-expression/%{namedversion}/spring-expression-%{namedversion}.pom
Source104:     http://repo1.maven.org/maven2/org/%{name}/spring-context/%{namedversion}/spring-context-%{namedversion}.pom
Source105:     http://repo1.maven.org/maven2/org/%{name}/spring-aop/%{namedversion}/spring-aop-%{namedversion}.pom
Source106:     http://repo1.maven.org/maven2/org/%{name}/spring-instrument/%{namedversion}/spring-instrument-%{namedversion}.pom
Source107:     http://repo1.maven.org/maven2/org/%{name}/spring-beans/%{namedversion}/spring-beans-%{namedversion}.pom
Source108:     http://repo1.maven.org/maven2/org/%{name}/spring-orm/%{namedversion}/spring-orm-%{namedversion}.pom
Source109:     http://repo1.maven.org/maven2/org/%{name}/spring-test/%{namedversion}/spring-test-%{namedversion}.pom
Source110:     http://repo1.maven.org/maven2/org/%{name}/spring-context-support/%{namedversion}/spring-context-support-%{namedversion}.pom
Source111:     http://repo1.maven.org/maven2/org/%{name}/spring-instrument-tomcat/%{namedversion}/spring-instrument-tomcat-%{namedversion}.pom
Source112:     http://repo1.maven.org/maven2/org/%{name}/spring-jdbc/%{namedversion}/spring-jdbc-%{namedversion}.pom
Source113:     http://repo1.maven.org/maven2/org/%{name}/spring-jms/%{namedversion}/spring-jms-%{namedversion}.pom
Source114:     http://repo1.maven.org/maven2/org/%{name}/spring-tx/%{namedversion}/spring-tx-%{namedversion}.pom
Source115:     http://repo1.maven.org/maven2/org/%{name}/spring-web/%{namedversion}/spring-web-%{namedversion}.pom
Source116:     http://repo1.maven.org/maven2/org/%{name}/spring-oxm/%{namedversion}/spring-oxm-%{namedversion}.pom
Source117:     http://repo1.maven.org/maven2/org/%{name}/spring-struts/%{namedversion}/spring-struts-%{namedversion}.pom
Source118:     http://repo1.maven.org/maven2/org/%{name}/spring-webmvc/%{namedversion}/spring-webmvc-%{namedversion}.pom
Source119:     http://repo1.maven.org/maven2/org/%{name}/spring-webmvc-portlet/%{namedversion}/spring-webmvc-portlet-%{namedversion}.pom
# Customized pom file
# Some project use these classes.
Source120:     spring-test-mvc-%{namedversion}.pom
Source121:     spring-orm-hibernate4-template.pom

Patch0:        springframework-3.2.6-java.io.IOException-is-never-thrown.patch
Patch1:        springframework-3.2.6-port-spring-jms-to-javax.resources-1.7.patch
Patch2:        springframework-3.2.6-port-spring-orm-to-javax.persistence-2.0.patch
Patch3:        springframework-3.2.6-port-spring-test-to-servlet-3.1.patch
Patch4:        springframework-3.2.6-port-spring-tx-to-javax.resources-1.7.patch
Patch5:        springframework-3.2.6-port-to-hibernate-validator-5.patch
# Derby 10.6+ support
Patch6:        springframework-3.2.13-derby.patch
# jopt-simple 4.6 support
Patch7:        springframework-3.2.14-jopt-simple.patch
Patch8:        springframework-3.2.14-build-with-tomcat8.patch
# Hibernate 4.3+ and for JTA 1.1 support
Patch9:        springframework-3.2.18-hibernate4.3.patch
# ROSA
Patch10:       0001-Fix-building-with-Servlet-4.x.patch

BuildRequires:  maven-local
BuildRequires:  mvn(aopalliance:aopalliance)
BuildRequires:  mvn(c3p0:c3p0)
BuildRequires:  mvn(com.caucho:hessian)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires:  mvn(com.h2database:h2)
BuildRequires:  mvn(com.jamonapi:jamon)
BuildRequires:  mvn(com.lowagie:itext)
BuildRequires:  mvn(com.rometools:rome)
BuildRequires:  mvn(commons-beanutils:commons-beanutils)
BuildRequires:  mvn(commons-fileupload:commons-fileupload)
BuildRequires:  mvn(commons-httpclient:commons-httpclient)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(commons-pool:commons-pool)
BuildRequires:  mvn(com.thoughtworks.xstream:xstream)
BuildRequires:  mvn(hsqldb:hsqldb:1)
BuildRequires:  mvn(jasperreports:jasperreports)
BuildRequires:  mvn(javax.ejb:ejb-api)
BuildRequires:  mvn(javax.faces:jsf-api)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(javax.jdo:jdo-api)
BuildRequires:  mvn(javax.mail:mail)
BuildRequires:  portlet-2.0-api
BuildRequires:  mvn(javax.servlet:javax.servlet-api)
BuildRequires:  mvn(javax.servlet.jsp:jsp-api)
BuildRequires:  mvn(javax.servlet:jstl)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(javax.xml:jaxrpc-api)
BuildRequires:  mvn(javax.xml.soap:saaj-api)
BuildRequires:  mvn(joda-time:joda-time)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j)
BuildRequires:  mvn(net.sf.cglib:cglib)
BuildRequires:  mvn(net.sf.ehcache:ehcache-core)
BuildRequires:  mvn(net.sourceforge.jexcelapi:jxl)
BuildRequires:  mvn(org.apache.derby:derby)
BuildRequires:  mvn(org.apache.derby:derbyclient)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-interceptor_3.0_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires:  mvn(org.apache.geronimo.specs:geronimo-validation_1.0_spec)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.openjpa:openjpa-lib)
BuildRequires:  mvn(org.apache.openjpa:openjpa-persistence)
BuildRequires:  mvn(org.apache.poi:poi)
BuildRequires:  mvn(org.apache.struts:struts-core)
BuildRequires:  mvn(org.apache.struts:struts-extras)
BuildRequires:  mvn(org.apache.struts:struts-tiles)
BuildRequires:  mvn(org.apache.tiles:tiles-api)
BuildRequires:  mvn(org.apache.tiles:tiles-core)
BuildRequires:  mvn(org.apache.tiles:tiles-el)
BuildRequires:  mvn(org.apache.tiles:tiles-jsp)
BuildRequires:  mvn(org.apache.tiles:tiles-servlet)
BuildRequires:  mvn(org.apache.tomcat:tomcat-catalina)
BuildRequires:  mvn(org.apache.tomcat:tomcat-el-api)
BuildRequires:  mvn(org.apache.tomcat:tomcat-jsp-api)
BuildRequires:  mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires:  mvn(org.apache.xmlbeans:xmlbeans)
BuildRequires:  mvn(org.aspectj:aspectjweaver)
BuildRequires:  mvn(org.beanshell:bsh)
BuildRequires:  mvn(org.codehaus.castor:castor-xml)
BuildRequires:  mvn(org.codehaus.groovy:groovy)
BuildRequires:  mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:  mvn(org.eclipse.persistence:org.eclipse.persistence.core)
BuildRequires:  mvn(org.eclipse.persistence:org.eclipse.persistence.jpa)
BuildRequires:  mvn(org.freemarker:freemarker)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.hibernate:hibernate-core:4)
BuildRequires:  mvn(org.hibernate:hibernate-core:3)
BuildRequires:  mvn(org.hibernate:hibernate-entitymanager:4)
BuildRequires:  mvn(org.hibernate:hibernate-entitymanager:3)
BuildRequires:  mvn(org.hibernate:hibernate-validator)
BuildRequires:  mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires:  mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires:  mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec)
BuildRequires:  mvn(org.jibx:jibx-run)
BuildRequires:  mvn(org.jruby.extras:bytelist)
BuildRequires:  mvn(org.jruby:jruby)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.quartz-scheduler:quartz)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.testng:testng)
BuildRequires:  mvn(toplink.essentials:toplink-essentials)
BuildRequires:  mvn(velocity-tools:velocity-tools-view)
BuildRequires:  mvn(velocity:velocity)
BuildRequires:  mvn(xmlunit:xmlunit)
BuildRequires:  mvn(org.apache.taglibs:taglibs-standard-jstlel)
BuildRequires:  mvn(javax.servlet:jstl)
BuildRequires:  mvn(org.apache.taglibs:taglibs-standard-spec)
BuildRequires:  mvn(com.jayway.jsonpath:json-path)
BuildRequires:  mvn(net.sf.jopt-simple:jopt-simple)
BuildRequires:  xmvn

Obsoletes:     %{name}-instrument-tomcat

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Spring is a layered Java/J2EE application framework, based on code published in
Expert One-on-One J2EE Design and Development by Rod Johnson (Wrox, 2002). 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package aop
Summary:       Spring Aspect Oriented Framework

%description aop
Spring AOP is an enabling technology that allows the implementation of custom
aspects and provides declarative transaction management without EJB.

%package beans
Summary:       Spring Bean Factory

%description beans
The Spring Bean Factory provides an advanced configuration mechanism capable of
managing beans of any nature, using potentially any kind of storage facility.

%package context
Summary:       Spring Application Context

%description context
The Spring Application Context is a complete superset of a bean factory, and
adds enhanced capabilities to it, some of them more J2EE and
enterprise-centric.

%package context-support
Summary:       Spring Context Support

%description context-support
This package provide Quartz/CommonJ scheduling,
UI templating, mail and caching.

%package expression
Summary:       Spring Expression Language (SpEL)

%description expression
The Spring Expression Language (SpEL for short) is a powerful expression
language that supports querying and manipulating an object graph at runtime.

%package instrument
Summary:       Spring Instrumentation

%description instrument
The Spring Instrumentation Framework exposes performance and
resource utilization metrics for the Spring container and
gives you runtime control of the container.

#%%package instrument-tomcat
#Summary:       Spring Instrument Tomcat Weaver

#%%description instrument-tomcat
#Extension of Tomcat's default class loader which
#adds instrumentation to loaded classes without the
#need to use a VM-wide agent.

%package jdbc
Summary:       Spring JDBC

%description jdbc
Spring JDBC takes care of all the low-level details associated to the
development with JDBC.

%package jms
Summary:       Spring jms

%description jms
This package provide Java Message Service 1.0.2/1.1 support.

%package orm
Summary:       Spring ORM

%description orm
This package provide JDO support, JPA support, Hibernate
support, TopLink support.

%package orm-hibernate4
Summary:       Spring ORM Hibernate 4 Support

%description orm-hibernate4
This package provide Hibernate 4 support.

%package oxm
Summary:       Spring OXM

%description oxm
This package provide marshaling and unmarshalling
for XML with JAXB context and JiBX binding factories.

%package struts
Summary:       Spring Web Struts

%description struts
This package provide integrate a Struts
application with Spring

%package test
Summary:       Spring test context framework

%description test
Spring's test context framework. Also includes common Servlet and
Portlet API mocks.

%package test-mvc
Summary:       Spring Test MVC Framework

%description test-mvc
Spring's test MVC framework.

%package tx
Summary:       Spring Transaction Management

%description tx
Spring provides a consistent abstraction for transaction management that
provides a consistent programming model across different transaction APIs,
supports declarative transaction management, provides a simpler API for
programmatic transaction management and integrates with Spring's various data
access abstractions.

%package web
Summary:       Spring Web

%description web
This package provide web application context, multipart
resolver, HTTP-based remoting support.

%package webmvc
Summary:       Spring Web Servlet

%description webmvc
This package provide framework servlets, web MVC framework,
web controllers, web views for JSP, Velocity, Tiles,
iText and POI.

%package webmvc-portlet
Summary:       Spring Web Portlet

%description webmvc-portlet
This package provide support development of Portlet
applications with Spring.

%prep
%setup -q -n spring-framework-%{namedversion}
find -name "*.class" -delete
find -name "*.jar" -print -delete

%autopatch -p1

cp %{SOURCE101} pom.xml
cp %{SOURCE102} spring-core/pom.xml
cp %{SOURCE103} spring-expression/pom.xml
cp %{SOURCE104} spring-context/pom.xml
cp %{SOURCE105} spring-aop/pom.xml
cp %{SOURCE106} spring-instrument/pom.xml
cp %{SOURCE107} spring-beans/pom.xml
cp %{SOURCE108} spring-orm/pom.xml
cp %{SOURCE109} spring-test/pom.xml
cp %{SOURCE110} spring-context-support/pom.xml

%pom_disable_module spring-instrument-tomcat
#cp %%{SOURCE111} spring-instrument-tomcat/pom.xml

cp %{SOURCE112} spring-jdbc/pom.xml
cp %{SOURCE113} spring-jms/pom.xml
cp %{SOURCE114} spring-tx/pom.xml
cp %{SOURCE115} spring-web/pom.xml
cp %{SOURCE116} spring-oxm/pom.xml
cp %{SOURCE117} spring-struts/pom.xml
cp %{SOURCE118} spring-webmvc/pom.xml
cp %{SOURCE119} spring-webmvc-portlet/pom.xml
cp %{SOURCE120} spring-test-mvc/pom.xml
cp %{SOURCE121} spring-orm-hibernate4/pom.xml
sed -i "s|@VERSION@|%{namedversion}|" spring-orm-hibernate4/pom.xml
%pom_xpath_inject pom:modules "<module>spring-orm-hibernate4</module>"
%pom_change_dep -r org.hibernate: ::4 spring-orm-hibernate4

# do not generate R on hiberante4, we use version 3
%pom_remove_dep :hibernate-entitymanager spring-orm
%pom_add_dep org.hibernate:hibernate-entitymanager:3 spring-orm
%pom_remove_dep :hibernate-core spring-orm
%pom_add_dep org.hibernate:hibernate-core:3 spring-orm

%pom_remove_dep struts:struts spring-struts
%pom_add_dep org.apache.struts:struts-core spring-struts
%pom_add_dep org.apache.struts:struts-extras spring-struts
%pom_add_dep org.apache.struts:struts-tiles spring-struts

# remove optional/missing deps
%pom_remove_dep org.apache.tiles:tiles-extras spring-webmvc
%pom_change_dep :tiles-el ::2.1.2 spring-webmvc
%pom_remove_dep ::3.0.4 spring-webmvc

# build against connector-api 1.7 instead of 1.5
%pom_remove_dep javax.resource:connector-api spring-tx
%pom_add_dep org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec spring-tx

# Remove the dependency on WebSphere UOW as it is not open source and we will
# never be able to build it:
%pom_remove_dep com.ibm.websphere:uow spring-tx
rm spring-tx/src/main/java/org/springframework/transaction/jta/WebSphereUowTransactionManager.java \
 spring-tx/src/test/java/org/springframework/transaction/jta/WebSphereUowTransactionManagerTests.java

# hiberante3 is a compat package
%pom_remove_dep :hibernate-annotations spring-orm
%pom_remove_dep :hibernate-core spring-orm
%pom_add_dep org.hibernate:hibernate-core:3 spring-orm

# missing dep ibatis
rm -rf spring-orm/src/main/java/org/springframework/orm/ibatis/*
%pom_remove_dep :ibatis-sqlmap spring-orm

%pom_remove_dep :openjpa spring-orm
%pom_add_dep org.apache.openjpa:openjpa-lib spring-orm

%pom_add_dep org.apache.openjpa:openjpa-persistence spring-orm

# build against connector-api 1.7 instead of 1.5
%pom_remove_dep javax.resource:connector-api spring-jms
%pom_add_dep org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec spring-jms

# hsqldb1 is a compat package, fix version
%pom_remove_dep hsqldb:hsqldb spring-jdbc
%pom_add_dep hsqldb:hsqldb:1 spring-jdbc

# use tomcat 7 lib
#%% pom_remove_dep org.apache.tomcat:catalina spring-instrument-tomcat
#%% pom_add_dep org.apache.tomcat:tomcat-catalina spring-instrument-tomcat

# missing dep jcache TODO use geronimo-jcache
rm -Rf spring-context-support/src/main/java/org/springframework/cache/jcache/
%pom_remove_dep javax.cache:cache-api spring-context-support

# missing dep commonj
rm -Rf spring-context-support/src/main/java/org/springframework/scheduling/
%pom_remove_dep org.codehaus.fabric3.api:commonj spring-context-support

# replace javax deps
for p in beans \
 web \
 webmvc; do
  %pom_remove_dep :el-api spring-${p}
  %pom_add_dep org.apache.tomcat:tomcat-el-api spring-${p}
done

%pom_remove_dep :persistence-api spring-context
%pom_add_dep org.hibernate.javax.persistence:hibernate-jpa-2.0-api spring-context
%pom_remove_dep :validation-api spring-context
%pom_add_dep org.apache.geronimo.specs:geronimo-validation_1.0_spec spring-context

%pom_add_dep org.apache.geronimo.specs:geronimo-interceptor_3.0_spec spring-context
%pom_add_dep org.jruby.extras:bytelist spring-context

%pom_remove_dep :persistence-api spring-orm
%pom_add_dep org.hibernate.javax.persistence:hibernate-jpa-2.0-api spring-orm
%pom_remove_dep javax.servlet:servlet-api spring-orm
%pom_add_dep org.apache.tomcat:tomcat-servlet-api spring-context

%pom_remove_dep :persistence-api spring-test
%pom_add_dep org.apache.tomcat:tomcat-el-api spring-test
%pom_remove_dep javax.servlet.jsp:jsp-api spring-test
%pom_add_dep org.apache.tomcat:tomcat-jsp-api spring-test

%pom_remove_dep -r javax.activation:activation

%pom_add_dep org.apache.taglibs:taglibs-standard-jstlel spring-test '<optional>true</optional>'

%pom_add_dep javax.servlet:jstl spring-web '<optional>true</optional>'
%pom_remove_dep taglibs:standard spring-web

%pom_add_dep org.apache.taglibs:taglibs-standard-spec spring-webmvc '<optional>true</optional>'

# ERROR: XThis is not public in Bsh
rm spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptFactory.java
rm spring-context/src/main/java/org/springframework/scripting/bsh/BshScriptUtils.java

# Don't depend on backport-util-concurrent (upstream dropped this dep in 4.x)
%pom_remove_dep :backport-util-concurrent spring-context

# TODO: missing deps in upstream poms?
%pom_add_dep org.ow2.asm:asm spring-core
%pom_add_dep net.sf.cglib:cglib:4.2 spring-core

%pom_xpath_set "pom:dependencies/pom:dependency[pom:groupId = 'org.codehaus.groovy']/pom:artifactId" groovy spring-context

find ./ -name "*.java" -exec sed -i "s/org.springframework.asm/org.objectweb.asm/g" {} +
find ./ -name "*.java" -exec sed -i "s/org.springframework.cglib/net.sf.cglib/g" {} +
find ./ -name "*.java" -exec sed -i "/edu.emory.mathcs.backport/d" {} +

%pom_change_dep -r :rome com.rometools: spring-test-mvc spring-web spring-webmvc
find ./spring-test-mvc -name "*.java" -exec sed -i "s/com.sun.syndication/com.rometools.rome/g" {} + 
find ./spring-web -name "*.java" -exec sed -i "s/com.sun.syndication/com.rometools.rome/g" {} +
find ./spring-webmvc -name "*.java" -exec sed -i "s/com.sun.syndication/com.rometools.rome/g" {} +


rm spring-context/src/main/java/org/springframework/scheduling/backportconcurrent/*

# copy license and notice file
cp -p src/dist/* .

# Copy resources in non standard directory. Several projects (also test suite) use these resources
mkdir -p spring-context/src/main/resources/org/springframework/remoting/rmi
cp -p spring-context/src/main/java/org/springframework/remoting/rmi/RmiInvocationWrapperRTD.xml \
 spring-context/src/main/resources/org/springframework/remoting/rmi/
mkdir -p spring-context-support/src/main/resources/org/springframework/mail/javamail
cp -p spring-context-support/src/main/java/org/springframework/mail/javamail/mime.types \
 spring-context-support/src/main/resources/org/springframework/mail/javamail/
mkdir -p spring-web/src/main/resources/org/springframework/web/context
cp -p spring-web/src/main/java/org/springframework/web/context/ContextLoader.properties \
 spring-web/src/main/resources/org/springframework/web/context/
mkdir -p spring-webmvc/src/main/resources/org/springframework/web/servlet/view/velocity
cp -p spring-webmvc/src/main/java/org/springframework/web/servlet/DispatcherServlet.properties \
 spring-webmvc/src/main/resources/org/springframework/web/servlet/
cp -p spring-webmvc/src/main/java/org/springframework/web/servlet/view/velocity/spring.vm \
 spring-webmvc/src/main/resources/org/springframework/web/servlet/view/velocity
mkdir -p spring-webmvc/src/main/resources/org/springframework/web/servlet/view/freemarker
cp -p spring-webmvc/src/main/java/org/springframework/web/servlet/view/freemarker/spring.ftl \
 spring-webmvc/src/main/resources/org/springframework/web/servlet/view/freemarker/
mkdir -p spring-webmvc-portlet/src/main/resources/org/springframework/web/portlet
cp -p spring-webmvc-portlet/src/main/java/org/springframework/web/portlet/DispatcherPortlet.properties \
 spring-webmvc-portlet/src/main/resources/org/springframework/web/portlet/

#  instrument-tomcat
for p in aop \
 beans \
 context \
 context-support \
 core \
 expression \
 instrument \
 jdbc \
 jms \
 orm \
 oxm \
 struts \
 test \
 test-mvc \
 tx \
 web \
 webmvc \
 webmvc-portlet; do
 %pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" spring-${p}
 %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 spring-${p} "
 <extensions>true</extensions>
 <configuration>
   <instructions>
     <Bundle-SymbolicName>\${project.groupId}.${p}</Bundle-SymbolicName>
     <Bundle-Name>\${project.name}</Bundle-Name>
     <Bundle-Version>\${project.version}</Bundle-Version>
   </instructions>
 </configuration>
 <executions>
   <execution>
     <id>bundle-manifest</id>
     <phase>process-classes</phase>
     <goals>
       <goal>manifest</goal>
     </goals>
   </execution>
 </executions>"
done

%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" spring-orm-hibernate4
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 spring-orm-hibernate4 "
<extensions>true</extensions>
 <configuration>
  <instructions>
    <Bundle-SymbolicName>\${project.groupId}.orm.hibernate4</Bundle-SymbolicName>
    <Bundle-Name>\${project.name}</Bundle-Name>
    <Bundle-Version>\${project.version}</Bundle-Version>
  </instructions>
 </configuration>
 <executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%mvn_package ":spring-core" %{name}
%mvn_package :spring-project __noinstall

%build
# Build without the tests, as they bring a lot of dependecies that are not
# available in the distribution at the moment:
%mvn_build -X -f -s -- -Dproject.build.sourceEncoding=ISO-8859-1

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license license.txt  notice.txt
%files javadoc -f .mfiles-javadoc
%license license.txt  notice.txt
%files aop -f .mfiles-spring-aop
%files beans -f .mfiles-spring-beans
%files context -f .mfiles-spring-context
%files context-support -f .mfiles-spring-context-support
%files expression -f .mfiles-spring-expression
%files instrument -f .mfiles-spring-instrument
%license license.txt  notice.txt
#%%files instrument-tomcat -f .mfiles-spring-instrument-tomcat
#%%license license.txt  notice.txt
%files jdbc -f .mfiles-spring-jdbc
%files jms -f .mfiles-spring-jms
%files orm -f .mfiles-spring-orm
%files orm-hibernate4 -f .mfiles-spring-orm-hibernate4
%files oxm -f .mfiles-spring-oxm
%files struts -f .mfiles-spring-struts
%files test -f .mfiles-spring-test
%files test-mvc -f .mfiles-spring-test-mvc
%files tx -f .mfiles-spring-tx
%files web -f .mfiles-spring-web
%files webmvc -f .mfiles-spring-webmvc
%files webmvc-portlet -f .mfiles-spring-webmvc-portlet



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17303 |21mr|springframework-amqp-1.3.9-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
%global oname spring-amqp

# https://bugzilla.redhat.com/show_bug.cgi?id=1231430
%bcond_with jinterface

Name:          springframework-amqp
Version:       1.3.9
Release:       11
Summary:       Support for Spring programming model with AMQP
License:       ASL 2.0
URL:           http://projects.spring.io/spring-amqp/
# Newer release require springframework >= 4.1.7.RELEASE
Source0:       https://github.com/spring-projects/spring-amqp/archive/v%{namedversion}.tar.gz
# Use gradle
Source1:       http://repo1.maven.org/maven2/org/springframework/amqp/spring-amqp/%{namedversion}/spring-amqp-%{namedversion}.pom
Source2:       http://repo1.maven.org/maven2/org/springframework/amqp/spring-erlang/%{namedversion}/spring-erlang-%{namedversion}.pom
Source3:       http://repo1.maven.org/maven2/org/springframework/amqp/spring-rabbit/%{namedversion}/spring-rabbit-%{namedversion}.pom
# rabbitmq-java-client 3.6.x support
Patch0:        springframework-amqp-1.3.9-amqp-client36.patch
# Security fix for CVE-2016-2173
Patch1:        springframework-amqp-1.3.9-CVE-2016-2173.patch

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
# Use rabbitmq-java-client:3.3.4
BuildRequires: mvn(com.rabbitmq:amqp-client)
BuildRequires: mvn(commons-cli:commons-cli)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.jackson:jackson-core-asl)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
%if %{with jinterface}
BuildRequires: mvn(org.erlang.otp:jinterface)
%endif
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.springframework:spring-aop)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-oxm)
BuildRequires: mvn(org.springframework:spring-test)
BuildRequires: mvn(org.springframework:spring-tx)
BuildRequires: mvn(org.springframework.retry:spring-retry)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Spring AMQP project applies core Spring concepts to the
development of AMQP-based messaging solutions. It provides
a "template" as a high-level abstraction for sending and
receiving messages. It also provides support for Message
driven POJOs with a "listener container". These libraries
facilitate management of AMQP resources while promoting the
use of dependency injection and declarative configuration.
In all of these cases, you will see similarities to the
JMS support in the Spring Framework.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{namedversion}
find . -name "*.bat" -delete
find . -name "*.class" -delete
find . -name "*.jar" -delete

%patch0 -p1
%patch1 -p1

# This is a dummy POM added just to ease building in the RPM platforms
cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.springframework.amqp</groupId>
  <artifactId>spring-amqp-parent</artifactId>
  <packaging>pom</packaging>
  <name>Spring AMQP - Parent</name>
  <version>%{namedversion}</version>
  <description>Spring AMQP Parent</description>

  <modules>
    <module>spring-amqp</module>
    <module>spring-erlang</module>
    <module>spring-rabbit</module>
  </modules>
</project>
EOF

cp -p %{SOURCE1} %{oname}/pom.xml
%if %{with jinterface}
 cp -p %{SOURCE2} spring-erlang/pom.xml
%else
 %pom_disable_module spring-erlang
%endif
cp -p %{SOURCE3} spring-rabbit/pom.xml

%pom_add_dep cglib:cglib:3.1:test spring-amqp
%pom_add_dep junit:junit:4.11:test spring-amqp
%pom_add_dep log4j:log4j:1.2.17:test spring-amqp
%pom_add_dep org.hamcrest:hamcrest-all:1.3:test spring-amqp
%pom_add_dep org.mockito:mockito-core:1.9.5:test spring-amqp
%pom_add_dep org.springframework:spring-test:3.2.9.RELEASE:test spring-amqp

%if %{with jinterface}
%pom_add_dep commons-cli:commons-cli:1.2:test spring-rabbit
%pom_add_dep junit:junit:4.11:test spring-rabbit
%pom_add_dep org.hamcrest:hamcrest-all:1.3:test spring-rabbit
%pom_add_dep org.mockito:mockito-core:1.9.5:test spring-rabbit
%pom_add_dep org.springframework.amqp:spring-erlang:'${project.version}':test spring-rabbit
%pom_add_dep org.springframework:spring-test:3.2.9.RELEASE:test spring-rabbit
# unreported exception java.util.concurrent.TimeoutException; must be caught or declared to be thrown
rm -r spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/CachingConnectionFactoryTests.java \
 spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/AbstractConnectionFactoryTests.java \
 spring-rabbit/src/test/java/org/springframework/amqp/rabbit/connection/SingleConnectionFactoryTests.java
%else
rm -r spring-rabbit/src/test/java/*
%endif

for p in %{oname} \
%if %{with jinterface}
 spring-erlang \
%endif
 spring-rabbit; do
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" ${p}
%pom_add_plugin org.apache.felix:maven-bundle-plugin ${p} '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-Vendor>SpringSource</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'
done

%mvn_package :%{oname}-parent __noinstall

%build
%if %{without jinterface}
opts="-f"
%endif
# no test deps spring-erlang
%mvn_build $opts -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc src/dist/README.md
%license src/dist/apache-license.txt src/dist/notice.txt

%files javadoc -f .mfiles-javadoc
%license src/dist/apache-license.txt src/dist/notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17304 |21mr|springframework-batch-2.2.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
%global oname spring-batch

%if 0%{?fedora}
# Unavailable deps
# https://bugzilla.redhat.com/show_bug.cgi?id=1240475
%bcond_with vpp
%endif

Name:          springframework-batch
Version:       2.2.7
Release:       8
Summary:       Tools for enterprise batch or bulk processing
License:       ASL 2.0
URL:           http://www.springsource.org/spring-batch
# lastest release require springframework >= 4
Source0:       https://github.com/spring-projects/spring-batch/archive/%{namedversion}.tar.gz
Patch0:        %{name}-2.2.7-spring-retry1.1.0.patch

BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.h2database:h2)
BuildRequires: mvn(com.thoughtworks.xstream:xstream)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-dbcp:commons-dbcp)
BuildRequires: mvn(commons-io:commons-io)
%if %{with vpp}
# antrun-plugin deps
BuildRequires: mvn(foundrylogic.vpp:vpp)
%endif
BuildRequires: mvn(javax.mail:mail)

BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.java.dev.jets3t:jets3t)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.ant:ant-apache-regexp)
BuildRequires: mvn(org.apache.derby:derby)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.felix:org.osgi.core)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jms_1.1_spec)
BuildRequires: mvn(org.apache.geronimo.specs:geronimo-jta_1.1_spec)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.aspectj:aspectjweaver)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires: mvn(org.codehaus.jettison:jettison)
BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires: mvn(org.eclipse.gemini.blueprint:gemini-blueprint-core)
BuildRequires: mvn(org.jruby.jcodings:jcodings)
BuildRequires: mvn(org.hibernate:hibernate-core)
BuildRequires: mvn(org.hibernate:hibernate-entitymanager)
BuildRequires: mvn(org.hibernate:hibernate-validator)
BuildRequires: mvn(org.hsqldb:hsqldb)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.springframework:spring-aop)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-context-support)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-jdbc)
BuildRequires: mvn(org.springframework:spring-jms)
BuildRequires: mvn(org.springframework:spring-orm)
BuildRequires: mvn(org.springframework:spring-oxm)
BuildRequires: mvn(org.springframework:spring-test)
BuildRequires: mvn(org.springframework:spring-tx)
BuildRequires: mvn(org.springframework.amqp:spring-amqp)
BuildRequires: mvn(org.springframework.amqp:spring-rabbit)
BuildRequires: mvn(org.springframework.data:spring-data-commons)
BuildRequires: mvn(org.springframework.data:spring-data-mongodb)
BuildRequires: mvn(org.springframework.data:spring-data-redis)
BuildRequires: mvn(org.springframework.retry:spring-retry)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Spring Batch provides tools for enterprise batch or bulk processing. It
can be used to wire up jobs, and track their execution, or simply as an
optimization for repetitive processing in a transactional environment.
Spring Batch is part of the Spring Portfolio.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{namedversion}
%patch0 -p1

sed -i 's/\r//' src/assembly/*.txt
cp -p src/assembly/license.txt .
cp -p src/assembly/notice.txt .

%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin com.agilejava.docbkx:docbkx-maven-plugin
%pom_remove_plugin org.codehaus.mojo:jdepend-maven-plugin
%pom_remove_plugin -r :com.springsource.bundlor.maven
# require com.springsource.bundlor:com.springsource.bundlor.maven
%pom_remove_plugin org.eclipse.m2e:lifecycle-mapping spring-batch-parent
# org.springframework.build.aws org.springframework.build.aws.maven
%pom_xpath_remove -r pom:build/pom:extensions

sed -i 's|${pom.version}|${project.version}|' pom.xml spring-batch-parent/pom.xml spring-batch-core/pom.xml

# antrun-plugin deps
%pom_remove_dep org.springframework.build:
%pom_remove_dep :ant-trax spring-batch-parent
# hibernate-annotations apis are available in hibernate-core
%pom_remove_dep -r :hibernate-annotations

# Fix cglib aId
%pom_xpath_set -r "pom:dependency[pom:groupId = 'cglib']/pom:artifactId" cglib

# Fix org.osgi.core gId aId
%pom_change_dep -r :osgi_R4_core org.apache.felix:org.osgi.core

%pom_xpath_set "pom:dependency[pom:groupId = 'org.aspectj']/pom:artifactId" aspectjweaver  spring-batch-test
%pom_remove_dep -r :aspectjrt

%pom_xpath_set "pom:dependency[pom:groupId = 'log4j']/pom:version" 1.2.17 spring-batch-parent

# Use newer org.springframework.osgi
%pom_change_dep -r :spring-osgi-core org.eclipse.gemini.blueprint:gemini-blueprint-core:1.0.2.RELEASE
sed -i "s|org.springframework.osgi|org.eclipse.gemini.blueprint|" spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support/OsgiBundleXmlApplicationContextFactory.java
  
# Unavailable deps.
# require: 2.3.4.726 < ibatis-sqlmap > 2.3.0
%pom_remove_dep org.apache.ibatis:ibatis-sqlmap spring-batch-infrastructure
rm -r spring-batch-infrastructure/src/main/java/org/springframework/batch/item/database/Ibatis*.java \
  spring-batch-infrastructure/src/test/java/org/springframework/batch/item/database/Ibatis*.java

# AGPLv3
%pom_remove_dep org.springframework.data:spring-data-neo4j spring-batch-infrastructure
rm -r spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemReader.java \
 spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/Neo4jItemWriter.java \
 spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/Neo4jItemReaderTests.java \
 spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/Neo4jItemWriterTests.java

# NON free
%pom_remove_dep org.springframework.data:spring-data-gemfire spring-batch-infrastructure
rm -r spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/GemfireItemWriter.java \
 spring-batch-infrastructure/src/main/java/org/springframework/batch/item/data/SpELMappingGemfireItemWriter.java \
 spring-batch-infrastructure/src/test/java/org/springframework/batch/item/data/GemfireItemWriterTests.java

# require foundrylogic.vpp vpp 2.2.1 for generate sql resources
%if %{with vpp}
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-antrun-plugin']" \
"<dependencies>
  <dependency>
    <groupId>foundrylogic.vpp</groupId>
    <artifactId>vpp</artifactId>
    <version>2.2.1</version>
  </dependency>
</dependencies>" spring-batch-core
# regenerate resources.
rm -r spring-batch-core/src/main/resources/org/springframework/batch/core/*.sql
# Fix resources location
sed -i 's|${basedir}/target/generated-resources|${basedir}/target/generated-resources/org/springframework/batch/core|' spring-batch-core/pom.xml
%pom_xpath_inject "pom:project/pom:build" '
<resources>
  <resource>
    <directory>${basedir}/src/main/resources</directory>
    <includes>
      <include>**/*</include>
    </includes>
  </resource>
  <resource>
    <directory>${basedir}/target/generated-resources</directory>
    <includes>
      <include>**/*</include>
    </includes>
  </resource>
</resources>' spring-batch-core
%else
%pom_remove_plugin org.apache.maven.plugins:maven-antrun-plugin spring-batch-core
%pom_remove_plugin org.apache.maven.plugins:maven-antrun-plugin spring-batch-parent
%endif

%pom_xpath_inject pom:properties '
  <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>' spring-batch-parent

# add OSGi support and FIX Bundle-SymbolicName
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 spring-batch-infrastructure '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.springframework.batch.infrastructure</Bundle-SymbolicName>
    <Bundle-Name>Spring Batch Infrastructure</Bundle-Name>
    <Bundle-Vendor>Spring</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 spring-batch-core '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.springframework.batch.core</Bundle-SymbolicName>
    <Bundle-Name>Spring Batch Core</Bundle-Name>
    <Bundle-Vendor>Spring</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 spring-batch-test '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.springframework.batch.test</Bundle-SymbolicName>
    <Bundle-Name>Spring Batch Test</Bundle-Name>
    <Bundle-Vendor>Spring</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%build
# Test disabled, because:
# due to the incompatibility of jettison 1.2+ with xstream
# com.thoughtworks.xstream.converters.ConversionException: Cannot construct java.util.Map$Entry as it does not have a no-args constructor : Cannot construct java.util.Map$Entry as it does not have a no-args constructor
# ---- Debugging information ----
# message             : Cannot construct java.util.Map$Entry as it does not have a no-args constructor
# cause-exception     : com.thoughtworks.xstream.converters.reflection.ObjectAccessException
# cause-message       : Cannot construct java.util.Map$Entry as it does not have a no-args constructor
# class               : java.util.HashMap
# required-type       : java.util.Map$Entry
# path                : /map/map/entry
# line number         : -1
# -------------------------------
# unavailable test deps: package org.springframework.orm.hibernate4 does not exist
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license license.txt notice.txt

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17305 |21mr|springframework-data-commons-1.8.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
%global oname spring-data-commons

Name:          springframework-data-commons
Version:       1.8.4
Release:       13
Summary:       Interfaces between relational and non-relational data stores
License:       ASL 2.0
URL:           http://projects.spring.io/spring-data/
# Newer release require springframework >= 4.0.7.RELEASE
Source0:       https://github.com/spring-projects/spring-data-commons/archive/%{namedversion}.tar.gz


BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.mysema.querydsl:querydsl-apt)
BuildRequires: mvn(com.mysema.querydsl:querydsl-core)
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(javax.ejb:ejb-api)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-expression)
BuildRequires: mvn(org.springframework:spring-oxm)
BuildRequires: mvn(org.springframework:spring-tx)
BuildRequires: mvn(org.springframework:spring-web)
BuildRequires: mvn(org.springframework:spring-webmvc)
BuildRequires: mvn(org.springframework.hateoas:spring-hateoas)

%if 0
# Test deps
# https://bugzilla.redhat.com/show_bug.cgi?id=1217162
BuildRequires: mvn(com.mysema.maven:apt-maven-plugin)
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(javax.el:javax.el-api)
BuildRequires: mvn(org.apache.openwebbeans.test:cditest-owb)
BuildRequires: mvn(org.codehaus.groovy:groovy-all:1.8.6)
BuildRequires: mvn(xmlunit:xmlunit)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Spring Data Commons is part of the umbrella Spring Data project that
provides shared infrastructure across the Spring Data projects. Most
importantly at the moment it contains technology neutral repository
interfaces as well as a meta-data model for persisting Java classes.

Features:
° Powerful Repository and custom object-mapping abstractions
° Support for cross-store persistence
° Dynamic query generation from query method names
° Implementation domain base classes providing basic properties
° Support for transparent auditing (created, last changed)
° Possibility to integrate custom repository code
° Easy Spring integration with custom name-space

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{namedversion}

cp -p src/main/resources/*.txt .
sed -i 's/\r//' *.txt

# https://github.com/spring-projects/spring-data-build
%pom_remove_parent
# Remove unavailable plugins
%pom_remove_plugin :apt-maven-plugin
%pom_remove_plugin :wagon-maven-plugin
# Remove unwanted plugin
%pom_remove_plugin :maven-assembly-plugin

# Set dependecies version (available in parent pom)
%pom_xpath_set "pom:dependency[pom:groupId='com.fasterxml.jackson.core']/pom:version" 2.5.0
%pom_xpath_set "pom:dependency[pom:groupId='javax.enterprise']/pom:version" 1.1
%pom_xpath_set "pom:dependency[pom:groupId='joda-time']/pom:version" 2.3
%pom_xpath_set "pom:dependency[pom:groupId='org.apache.openwebbeans.test']/pom:version" 1.2.0
%pom_xpath_set "pom:dependency[pom:groupId='com.mysema.querydsl']/pom:version" 3.6.4

# Force EL 3.0 apis
%pom_xpath_set "pom:dependency[pom:groupId='javax.el']/pom:artifactId" javax.el-api
%pom_xpath_set "pom:dependency[pom:groupId='javax.el']/pom:version" 3.0.0
# Force servlet 3.1 apis
%pom_xpath_set "pom:dependency[pom:groupId='javax.servlet']/pom:artifactId" javax.servlet-api
%pom_xpath_set "pom:dependency[pom:groupId='javax.servlet']/pom:version" 3.1.0

# Use jvm apis (java.util.Optional)
%pom_remove_dep org.springframework.data.build:spring-data-java8-stub

# Add OSGi support
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.springframework.data.core</Bundle-SymbolicName>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-Vendor>Pivotal Software, Inc.</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%mvn_file : %{oname}

%build

# Unavailable test deps
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc changelog.txt readme.*
%license license.txt notice.txt

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17306 |21mr|springframework-data-mongodb-1.5.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
%global oname spring-data-mongodb

%if 0%{?fedora}
%bcond_with aspectj
# https://bugzilla.redhat.com/show_bug.cgi?id=1217162
%bcond_with test
%endif

Name:          springframework-data-mongodb
# Newer release require springframework >= 4.0.7.RELEASE
Version:       1.5.2
Release:       11
Summary:       MongoDB support for Spring Data
License:       ASL 2.0
URL:           http://projects.spring.io/spring-data-mongodb/
Source0:       https://github.com/spring-projects/spring-data-mongodb/archive/%{namedversion}.tar.gz

BuildRequires: maven-local
# https://jira.spring.io/browse/DATACMNS-670
BuildRequires: mvn(com.mysema.querydsl:querydsl-apt)
BuildRequires: mvn(com.mysema.querydsl:querydsl-mongodb)
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(net.sf.cglib:cglib)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.mongodb:mongo-java-driver:2)
BuildRequires: mvn(org.objenesis:objenesis)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-expression)
BuildRequires: mvn(org.springframework:spring-tx)
BuildRequires: mvn(org.springframework.data:spring-data-commons)

# spring-data-mongodb-cross-store
%if %{with aspectj}
BuildRequires: mvn(org.aspectj:aspectjrt)
BuildRequires: mvn(org.aspectj:aspectjtools)
BuildRequires: mvn(org.codehaus.mojo:aspectj-maven-plugin)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.0-api)
BuildRequires: mvn(org.springframework:spring-aspects)
BuildRequires: mvn(org.springframework:spring-orm)
%endif

# Test deps
%if %{with test}
BuildRequires: mvn(hsqldb:hsqldb:1)
BuildRequires: mvn(javax.el:el-api)
BuildRequires: mvn(javax.servlet:servlet-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(org.apache.openwebbeans.test:cditest-owb)
BuildRequires: mvn(org.hibernate:hibernate-entitymanager)
BuildRequires: mvn(org.hibernate:hibernate-validator)
# https://bugzilla.redhat.com/show_bug.cgi?id=1217162
BuildRequires: mvn(com.mysema.maven:apt-maven-plugin)
BuildRequires: mvn(org.slf4j:jul-to-slf4j)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Spring Data MongoDB project provides integration with the
MongoDB document database. Key functional areas of Spring
Data MongoDB are a POJO centric model for interacting with a
MongoDB DBCollection and easily writing a Repository style
data access layer.

%package log4j
Summary:       Spring Data MongoDB - Log4J Appender

%description log4j
Spring Data Mongo DB Log4J Appender.

%package parent
Summary:       Spring Data MongoDB Parent POM

%description parent
Spring Data MongoDB Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{namedversion}
sed -i 's/\r//' src/main/resources/*.txt
cp -p src/main/resources/*.txt .

# org.springframework.data.build:spring-data-parent:pom:1.4.2.RELEASE
%pom_remove_parent

%if %{without aspectj}
%pom_disable_module %{oname}-cross-store
%endif
%if %{without test}
%pom_remove_plugin com.mysema.maven:apt-maven-plugin %{oname}
%endif

%pom_disable_module %{oname}-distribution
%pom_remove_plugin :maven-assembly-plugin %{oname}-distribution
%pom_remove_plugin :wagon-maven-plugin %{oname}-distribution

# Fix version
%pom_xpath_set "pom:project/pom:properties/pom:mongo" 2
%pom_xpath_set "pom:project/pom:properties/pom:mongo.osgi" 2
%pom_xpath_set "pom:properties/pom:log4j" 1.2.17 %{oname}-log4j

%pom_change_dep :cdi-api ::1.0 %{oname}
%pom_change_dep :cditest-owb ::1.2.8 %{oname}
%pom_change_dep :querydsl-apt ::3.6.4 %{oname}
%pom_change_dep :querydsl-mongodb ::3.6.4 %{oname}
%pom_change_dep :el-api ::3.0.0 %{oname}
%pom_change_dep :joda-time ::2.8.1 %{oname}
%pom_change_dep :jul-to-slf4j ::1.7.12 %{oname}
%pom_change_dep :objenesis ::2.1 %{oname}
%pom_change_dep :validation-api ::1.1.0.Final %{oname}

# Remove internal cglib
find ./ -name "*.java" -exec sed -i "s/org.springframework.cglib/net.sf.cglib/g" {} +
%pom_add_dep net.sf.cglib:cglib


# Ass OSGi support
for p in %{oname} %{oname}-log4j; do
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" ${p}
done

%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 %{oname} '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.springframework.data.mongodb</Bundle-SymbolicName>
    <Bundle-Name>Spring Data MongoDB Support</Bundle-Name>
    <Bundle-Vendor>Pivotal Software, Inc.</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 %{oname}-log4j '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.springframework.data.mongodb.log4j</Bundle-SymbolicName>
    <Bundle-Name>Spring Data Mongo DB Log4J Appender</Bundle-Name>
    <Bundle-Vendor>Pivotal Software, Inc.</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

%build

%if %{without test}
opts="-f"
%endif
# Unavailable test deps
%mvn_build -s $opts -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{oname}
%doc CONTRIBUTING.MD README.md changelog.txt
%license license.txt notice.txt

%files log4j -f .mfiles-%{oname}-log4j
%doc %{oname}-log4j/README.md

%files parent -f .mfiles-%{oname}-parent
%license license.txt notice.txt

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17307 |21mr|springframework-data-redis-1.3.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
%global oname spring-data-redis
Name:          springframework-data-redis
# Newer release require springframework >= 4.0.7.RELEASE
Version:       1.3.5
Release:       6
Group:         Development/Java
Summary:       Provides support to increase developer productivity in Java when using Redis
License:       ASL 2.0
URL:           http://projects.spring.io/spring-data-redis/
Source0:       https://github.com/spring-projects/spring-data-redis/archive/v%{namedversion}.tar.gz
# Default use gradle
Source1:       http://central.maven.org/maven2/org/springframework/data/%{oname}/%{namedversion}/%{oname}-%{namedversion}.pom
# Build fix for jedis 2.7.2
Patch0:        %{name}-1.3.5-jedis27.patch


BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.github.spullara.redis:client)
BuildRequires: mvn(com.lambdaworks:lettuce)
BuildRequires: mvn(com.thoughtworks.xstream:xstream)
BuildRequires: mvn(commons-beanutils:commons-beanutils-core)
BuildRequires: mvn(javax.annotation:jsr250-api)
BuildRequires: mvn(javax.transaction:jta)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.cglib:cglib)
BuildRequires: mvn(org.apache.commons:commons-pool2)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires: mvn(org.jredis:jredis-core-api)
BuildRequires: mvn(org.jredis:jredis-core-ri)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.springframework:spring-aop)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-context-support)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-jdbc)
BuildRequires: mvn(org.springframework:spring-oxm)
BuildRequires: mvn(org.springframework:spring-test)
BuildRequires: mvn(org.springframework:spring-tx)
BuildRequires: mvn(redis.clients:jedis)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Spring Data Redis, part of the larger Spring Data family, provides
easy configuration and access to Redis from Spring applications. It
offers both low-level and high-level abstractions for interacting with
the store, freeing the user from infrastructural concerns.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{namedversion}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

cp -p %{SOURCE1} pom.xml

%patch0 -p1

cp -p docs/src/info/*.txt .

# Remove internal cglib
find ./ -name "*.java" -exec sed -i "s/org.springframework.cglib/net.sf.cglib/g" {} +
%pom_add_dep net.sf.cglib:cglib
# Use jvm Base64
rm src/main/java/org/springframework/data/redis/connection/util/Base64.java
find ./ -name "*.java" -exec sed -i "s/org.springframework.data.redis.connection.util.Base64/java.util.Base64/g" {} +
sed -i "s/Base64.encodeToString(bytes, false)/java.util.Base64.getEncoder().encodeToString(bytes)/g" \
 src/main/java/org/springframework/data/redis/connection/util/DecodeUtils.java
sed -i "s/Base64.decode(string)/java.util.Base64.getDecoder().decode(string)/g" \
 src/main/java/org/springframework/data/redis/connection/util/DecodeUtils.java

# Add test deps
%pom_add_dep com.thoughtworks.xstream:xstream::test
%pom_add_dep javax.annotation:jsr250-api::test
%pom_add_dep javax.transaction:jta::test
%pom_add_dep junit:junit::test
%pom_add_dep org.mockito:mockito-core::test
%pom_add_dep org.springframework:spring-test::test
%pom_add_dep org.springframework:spring-jdbc::test

# Add OSGi support
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.springframework.data.redis</Bundle-SymbolicName>
    <Bundle-Name>Spring Data Redis Support</Bundle-Name>
    <Bundle-Vendor>Pivotal Software, Inc.</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# NullPointerException
rm -r src/test/java/org/springframework/data/redis/config/NamespaceTest.java \
 src/test/java/org/springframework/data/redis/PropertyEditorsTest.java
# NullPointerException IllegalArgumentException
rm -r src/test/java/org/springframework/data/redis/listener/adapter/MessageListenerTest.java
# RuntimeException
rm -r src/test/java/org/springframework/data/redis/mapping/BeanUtilsHashMapperTest.java \
 src/test/java/org/springframework/data/redis/core/SessionTest.java
# IncompatibleClassChangeError" message="class org.springframework.core.LocalVariableTableParameterNameDiscoverer$ParameterNameDiscoveringVisitor has interface org.objectweb.asm.ClassVisitor as super class
rm -r src/test/java/org/springframework/data/redis/listener/adapter/ContainerXmlSetupTest.java
# InstantiationException
rm -r src/test/java/org/springframework/data/redis/cache/AbstractNativeCacheTest.java \
 src/test/java/org/springframework/data/redis/mapping/AbstractHashMapperTest.java \
 src/test/java/org/springframework/data/redis/mapping/JacksonHashMapperTest.java \
 src/test/java/org/springframework/data/redis/cache/RedisCacheTest.java


%mvn_file : %{oname}

%build

%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license license.txt notice.txt

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17308 |21mr|springframework-hateoas-0.16.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
%global oname spring-hateoas
Name:          springframework-hateoas
Version:       0.16.0
Release:       11
Summary:       Representations for hyper-text driven REST web services
License:       ASL 2.0
URL:           http://github.com/SpringSource/spring-hateoas
# Newer release require springframework >= 4.0.9.RELEASE
Source0:       https://github.com/spring-projects/spring-hateoas/archive/%{namedversion}.tar.gz
Patch0:        springframework-hateoas-0.16.0-jackson2.7.patch

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.jayway.jsonpath:json-path)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.ws.rs:jsr311-api)
BuildRequires: mvn(net.sf.cglib:cglib)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.atteo:evo-inflector)
BuildRequires: mvn(org.objenesis:objenesis)
# BuildRequires: mvn(org.projectlombok:lombok:1.14.4) @  https://github.com/rzwitserloot/lombok/
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.springframework:spring-aop)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-web)
BuildRequires: mvn(org.springframework:spring-webmvc)
BuildRequires: mvn(org.springframework.plugin:spring-plugin-core)
%if 0
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.jadler:jadler-all)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.springframework:spring-test)
BuildRequires: mvn(xmlunit:xmlunit)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This project provides some APIs to ease creating REST representations that
follow the HATEOAS principle when working with Spring and especially Spring
MVC. The core problem it tries to address is link creation and representation
assembly.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{namedversion}

cp -p src/main/resources/changelog.txt .
cp -p src/main/resources/license.txt .
cp -p src/main/resources/notice.txt .
sed -i 's/\r//' *.txt readme.md

%patch0 -p1

%pom_remove_plugin :com.springsource.bundlor.maven
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

%pom_change_dep :servlet-api javax.servlet:javax.servlet-api:3.1.0

find ./ -name "*.java" -exec sed -i "s/org.springframework.cglib/net.sf.cglib/g" {} +
%pom_add_dep net.sf.cglib:cglib

%pom_remove_plugin :maven-jar-plugin
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.springframework.hateoas</Bundle-SymbolicName>
    <Bundle-Name>Spring HATEOAS</Bundle-Name>
    <Bundle-Vendor>SpringSource</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# org.projectlombok:lombok:jar:1.14.4
%pom_remove_dep org.projectlombok:lombok
rm -r src/main/java/org/springframework/hateoas/alps/Alps.java \
 src/main/java/org/springframework/hateoas/alps/Descriptor.java \
 src/main/java/org/springframework/hateoas/alps/Doc.java \
 src/main/java/org/springframework/hateoas/alps/Ext.java

%mvn_file : %{oname}

%build

# Unavailable test deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc changelog.txt readme.md
%license license.txt notice.txt 

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17309 |21mr|springframework-plugin-1.1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
%global oname spring-plugin
Name:          springframework-plugin
Version:       1.1.0
Release:       12
Summary:       Simple plugin infrastructure
License:       ASL 2.0
URL:           https://github.com/SpringSource/spring-plugin
Source0:       https://github.com/spring-projects/spring-plugin/archive/%{namedversion}.tar.gz
# https://github.com/spring-projects/spring-plugin/issues/12
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.springframework:spring-aop)
BuildRequires: mvn(org.springframework:spring-beans)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-test)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Spring Plugin provides a more pragmatic approach to plugin
development by providing the core flexibility of having
plugin implementations extending a core system's functionality
but of course not delivering core OSGi features like dynamic
class loading or run-time installation and deployment of plugins.
Although Spring Plugin thus is not nearly as powerful as OSGi,
it servers poor man's requirements to build a modular extensible
application.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{namedversion}

%pom_remove_plugin :com.springsource.bundlor.maven
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:project/pom:build/pom:plugins/pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"

for p in core metadata; do
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>" ${p}
done

%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-Vendor>SpringSource, a division of VMware</Bundle-Vendor>
    <Bundle-Version>${project.version}</Bundle-Version>
    <Bundle-RequiredExecutionEnvironment>J2SE-1.6</Bundle-RequiredExecutionEnvironment>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

%mvn_file :%{oname}-core %{oname}-core
%mvn_file :%{oname}-metadata %{oname}-metadata

%build
# Problem with new cglib: NoSuchFieldError: HASH_ASM_TYPE
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README.markdown

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17310 |21mr|springframework-retry-1.1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name spring-retry

Name:           springframework-retry
Version:        1.1.1
Release:        10
Summary:        Abstraction around retrying failed operations

License:        ASL 2.0
URL:            https://github.com/spring-projects/spring-retry
Source0:        https://github.com/spring-projects/%{short_name}/archive/%{version}.RELEASE.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:1.2.17)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.aspectj:aspectjweaver)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.springframework:spring-context)
BuildRequires:  mvn(org.springframework:spring-test)
BuildRequires:  mvn(org.springframework:spring-tx)

Provides:       spring-retry = %{version}-%{release}
Obsoletes:      spring-retry < %{version}-%{release}

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Spring Retry provides an abstraction around retrying failed operations, 
with an emphasis on declarative control of the process and policy-based 
bahaviour that is easy to extend and customize. For instance, you can 
configure a plain POJO operation to retry if it fails, based on the type 
of exception, and with a fixed or exponential backoff.

%package        javadoc
Summary:        Javadoc for %{name}

Provides:       spring-retry-javadoc = %{version}-%{release}
Obsoletes:      spring-retry-javadoc < %{version}-%{release}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{short_name}-%{version}.RELEASE

%pom_remove_dep org.springframework:spring-test

# bom dependency, we don't have it
%pom_remove_dep org.springframework:spring-framework-bom

%pom_remove_plugin :maven-javadoc-plugin

%pom_change_dep :log4j ::1.2.17

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17311 |21mr|spring-ldap-1.3.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           spring-ldap
Version:        1.3.1
Release:        20
Summary:        Java library for simplifying LDAP operations
License:        ASL 2.0
URL:            http://www.springframework.org/ldap
# https://github.com/spring-projects/spring-ldap
# svn export https://src.springframework.org/svn/spring-ldap/tags/spring-ldap-1.3.1.RELEASE spring-ldap-1.3.1
# tar cfJ spring-ldap-1.3.1.tar.xz spring-ldap-1.3.1
Source0:        %{name}-%{version}.tar.xz
# Don't use ldapbp.jar, as I couldn't find the source and I doubt it has a valid
# open source license:
Patch0:         %{name}-remove-ldapbp.patch
# Use Java 5 to build the core as the JavaCC generated source code uses Java 5
# features like generics and annotations:
Patch1:         %{name}-use-java-5-to-build-core.patch
# Remove the dependency on spring-orm:
Patch2:         %{name}-remove-spring-orm.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  dos2unix
BuildRequires:  maven-local
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-lang:commons-lang)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(commons-pool:commons-pool)
BuildRequires:  mvn(gsbase:gsbase)
BuildRequires:  mvn(jdepend:jdepend)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(org.freemarker:freemarker)
BuildRequires:  mvn(org.springframework:spring-beans)
BuildRequires:  mvn(org.springframework:spring-context)
BuildRequires:  mvn(org.springframework:spring-core)
BuildRequires:  mvn(org.springframework:spring-jdbc)
BuildRequires:  mvn(org.springframework:spring-tx)
BuildRequires:  mvn(org.springframework.batch:spring-batch-core)
BuildRequires:  mvn(org.springframework.batch:spring-batch-infrastructure)
BuildRequires:  mvn(org.springframework.batch:spring-batch-test)

%description
Spring LDAP is a Java library for simplifying LDAP operations, based on the
pattern of Spring's JdbcTemplate. The framework relieves the user of common
chores, such as looking up and closing contexts, looping through results,
encoding/decoding values and filters, and more. The LdapTemplate class
encapsulates all the plumbing work involved in traditional LDAP programming,
such as creating a DirContext, looping through NamingEnumerations, handling
exceptions and cleaning up resources. This leaves the programmer to handle the
important stuff - where to find data (DNs and Filters) and what do do with it
(map to and from domain objects, bind, modify, unbind, etc.), in the same way
that JdbcTemplate relieves the programmer of all but the actual SQL and how the
data maps to the domain model. In addition to this, Spring LDAP provides
transaction support, a pooling library, exception translation from
NamingExceptions to a mirrored unchecked Exception hierarchy, as well as
several utilities for working with filters, LDAP paths and Attributes.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep

# Unpack and patch the source:
%setup -q
# Build the core only
%pom_disable_module test-support
%pom_disable_module test

%pom_xpath_inject "pom:project/pom:parent" "<relativePath>../../parent/tiger</relativePath>" ldif/ldif-batch

%pom_remove_plugin :cobertura-maven-plugin parent

# Disable the AWS extension
%pom_xpath_remove "pom:build/pom:extensions" parent
%patch0 -p1
%patch1 -p1
%patch2 -p1

# Remove binary files:
find . -name '*.jar' -print -delete

# Fix line endings in documentation files:
dos2unix notice.txt
dos2unix license.txt
dos2unix readme.txt

%build

# Skip the tests for now, as they bring dependencies that are not available in
# the distribution right now:
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license license.txt notice.txt
%doc readme.txt

%files javadoc -f .mfiles-javadoc
%license license.txt notice.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17312 |21mr|spymemcached-2.11.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          spymemcached
Version:       2.11.4
Release:       11
Summary:       Java client for memcached
# ASL src/scripts/write-version-info.sh
License:       ASL 2.0 and MIT
Url:           https://github.com/dustin/java-memcached-client
Source0:       https://github.com/dustin/java-memcached-client/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.codahale.metrics:metrics-core)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.springframework:spring-beans)

%if 0
# test deps
BuildRequires: mvn(jmock:jmock) >= 1.2.0
BuildRequires: mvn(junit:junit)
%endif

Requires:      mvn(log4j:log4j:1.2.17)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A simple, asynchronous, single-threaded memcached client written in java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n java-memcached-client-%{version}
find -name '*.jar' -delete
find -name '*.class' -delete

sed -i "s|2.999.999-SNAPSHOT|%{version}|" pom.xml
sed -i.log4j12 "s|<version>1.2.16|<version>1.2.17|" pom.xml

native2ascii -encoding UTF-8 src/main/java/net/spy/memcached/MemcachedConnection.java \
 src/main/java/net/spy/memcached/MemcachedConnection.java

# Unavailable test dep
%pom_remove_dep :jmock

%mvn_file :%{name} %{name}
%mvn_alias :%{name} spy:spymemcached spy:memcached

%build

%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README.markdown
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17313 |21mr|sqlcipher-4.4.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	An SQLite extension that provides 256 bit AES encryption of database files
Name:		sqlcipher
# Make sure to rebuild Skrooge after every sqlcipher version update
Version:	4.4.3
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://www.zetetic.net/sqlcipher/
Source0:	https://github.com/sqlcipher/sqlcipher/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	tcl
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(openssl)

%description
SQLCipher is an SQLite extension that provides transparent 256-bit AES
encryption of database files. Pages are encrypted before being written to
disk and are decrypted when read back. Due to the small footprint and great
performance it’s ideal for protecting embedded application databases and
is well suited for mobile development.

%files
%doc CHANGELOG.md README.md LICENSE
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	An SQLite extension that provides 256 bit AES encryption of database files
Group:		System/Libraries

%description -n %{libname}
SQLCipher is an SQLite extension that provides transparent 256-bit AES
encryption of database files. Pages are encrypted before being written to
disk and are decrypted when read back. Due to the small footprint and great
performance it’s ideal for protecting embedded application databases and
is well suited for mobile development.

This package contains the shared libraries for %{name}

%files -n %{libname}
%doc CHANGELOG.md README.md LICENSE
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
SQLCipher is an SQLite extension that provides transparent 256-bit AES
encryption of database files. Pages are encrypted before being written to
disk and are decrypted when read back. Due to the small footprint and great
performance it’s ideal for protecting embedded application databases and
is well suited for mobile development.

This package contains development files.

%files -n %{devname}
%doc CHANGELOG.md README.md LICENSE
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -DSQLITE_HAS_CODEC"
autoreconf -fiv
%configure \
	--disable-static \
	--disable-tcl \
	--enable-tempstore=yes
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17314 |21mr|sqlite-3.41.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Mixed automake/non-automake use
%define _disable_rebuild_configure 1
%define realver %(echo %version |cut -d. -f1)%(echo %version |cut -d. -f2)0%(echo %version |cut -d. -f3)00%(echo %version |cut -d. -f4)

%define api 3
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} %{api} -d

Summary:	C library that implements an embeddable SQL database engine
Name:		sqlite
Version:	3.41.2
Release:	2
License:	Public Domain
Group:		System/Libraries
Url:		http://www.sqlite.org
Source0:	http://www.sqlite.org/%(date +%Y)/%{name}-autoconf-%{realver}.tar.gz
Patch0:		CVE-2023-7104.patch
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)
%rename	sqlite3

%description
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C library that implements an embeddable SQL database engine
Group:		System/Libraries

%description -n %{libname}
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

This package contains the shared libraries for %{name}

%files -n %{libname}
%doc README.txt
%{_libdir}/lib%{name}%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename sqlite3-devel

%description -n %{devname}
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

This package contains the static %{libname} library and its header
files.

%files -n %{devname}
%doc README.txt
%{_includedir}/*.h
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package tools
Summary:	Command line tools for managing the %{libname} library
Group:		Databases
Requires:	%{libname} >= %{EVRD}
%rename	sqlite3-tools

%description tools
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

This package contains command line tools for managing the
%{libname} library.

%files tools
%{_bindir}/sqlite*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-autoconf-%{realver}

autoreconf -fi

%build
export CFLAGS="${CFLAGS:-%{optflags}} -Wall -fno-strict-aliasing -DNDEBUG=1 -DSQLITE_ENABLE_COLUMN_METADATA=1 -DSQLITE_ENABLE_FTS3=3 -DSQLITE_ENABLE_RTREE=1 -DSQLITE_SECURE_DELETE=1 -DSQLITE_ENABLE_UNLOCK_NOTIFY=1 -DSQLITE_DISABLE_DIRSYNC=1 -DSQLITE_ENABLE_DBSTAT_VTAB=1 -DSQLITE_ENABLE_FTS3_TOKENIZER=1"

%configure \
	--disable-static \
	--enable-fts5 \
	--enable-threadsafe \
	--enable-dynamic-extensions

# rpath removal
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%make

%install
%makeinstall_std

# cleanup
ln -s sqlite3 %{buildroot}%{_bindir}/sqlite

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17315 |21mr|sqlite-jdbc-3.15.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%% global githash
# empty debuginfo
%global debug_package %nil

Name:          sqlite-jdbc
Version:       3.15.1
Release:       9
Summary:       SQLite JDBC library
Group:         Development/Java
# ASL 2.0:
# ./src/main/java/org/sqlite/SQLiteConfig.java
# ./src/main/java/org/sqlite/SQLiteDataSource.java
# ./src/main/java/org/sqlite/SQLiteErrorCode.java
# ./src/main/java/org/sqlite/SQLiteJDBCLoader.java
# ./src/main/java/org/sqlite/SQLiteOpenMode.java
# ./src/main/java/org/sqlite/javax/SQLiteConnectionPoolDataSource.java
# ./src/main/java/org/sqlite/javax/SQLitePooledConnection.java
# ./src/main/java/org/sqlite/util/OSInfo.java
# ./src/main/java/org/sqlite/util/ResourceFinder.java

# ISC:
# ./src/main/java/org/sqlite/Function.java
# ./src/main/java/org/sqlite/JDBC.java
# ./src/main/java/org/sqlite/SQLiteConnection.java: 
# ./src/main/java/org/sqlite/core/Codes.java
# ./src/main/java/org/sqlite/core/CoreDatabaseMetaData.java
# ./src/main/java/org/sqlite/core/CoreResultSet.java
# ./src/main/java/org/sqlite/core/CoreStatement.java
# ./src/main/java/org/sqlite/core/CorePreparedStatement.java
# ./src/main/java/org/sqlite/core/DB.java
# ./src/main/java/org/sqlite/core/NativeDB.c
# ./src/main/java/org/sqlite/core/NativeDB.java

# This package is a fork of zentus sqlite driver the
# original code is under BSD license. See LICENSE.zentus
# ./src/main/java/org/sqlite/Function.java
# ./src/main/java/org/sqlite/JDBC.java
# ./src/main/java/org/sqlite/core/Codes.java
# ./src/main/java/org/sqlite/core/DB.java
# ./src/main/java/org/sqlite/core/NativeDB.c
# ./src/main/java/org/sqlite/core/NativeDB.java

License:       ASL 2.0 and BSD and ISC
URL:           https://github.com/xerial/sqlite-jdbc
Source0:       https://github.com/xerial/sqlite-jdbc/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:        %{name}-3.15.1-build.patch

BuildRequires: gcc
BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: sqlite-devel


%description
SQLite JDBC, is a library for accessing and
creating SQLite database files in Java.

%package javadoc
Summary:       Javadoc for %{name}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
# Cleanup
find . -name "*.class" -delete
# Do not delete test resources
find . -name "*.jar" ! -name "testdb.jar" -delete

# Remove prebuilt libraries
find -name "*.jnilib" -print -delete
find -name "*.dll" -print -delete
find -name "*.so" -print -delete
find -name "*.h" -print -delete
rm -r archive/* docker/*

# extensions won't work with our sqlite (should be patched)
# or use http://www.sqlite.org/2016/sqlite-amalgamation-3150100.zip
# ./sqlite-amalgamation-3150100/shell.c
# ./sqlite-amalgamation-3150100/sqlite3.c
# ./sqlite-amalgamation-3150100/sqlite3.h
# ./sqlite-amalgamation-3150100/sqlite3ext.h
# disable extensions and remove tests for them
# java.sql.SQLException: [SQLITE_ERROR] SQL error or missing database (no such function: radians)
rm -r src/test/java/org/sqlite/ExtensionTest.java
sed -i '/ExtensionTest/d' src/test/java/org/sqlite/AllTests.java
# secondConnWillWait(org.sqlite.TransactionTest)  Time elapsed: 23.213 sec
rm -r src/test/java/org/sqlite/TransactionTest.java
sed -i '/TransactionTest/d' src/test/java/org/sqlite/AllTests.java

%ifarch %{power64}
# failed test on big endian arches
# ComparisonFailure: expected:<UTF-16[l]e> but was:<UTF-16[b]e>
rm -r src/test/java/org/sqlite/SQLiteDataSourceTest.java
sed -i '/SQLiteDataSourceTest/d' src/test/java/org/sqlite/AllTests.java
%endif

%patch0 -p1

# Build JNI library. Use native task to avoid to run multiple, conflicting,
# operations at the same time
%pom_add_plugin org.apache.maven.plugins:maven-antrun-plugin:1.7 . '
<dependencies>
 <dependency>
  <groupId>com.sun</groupId>
  <artifactId>tools</artifactId>
  <version>1.8.0</version>
 </dependency>
</dependencies>

<executions>
  <execution>
  <id>compile</id>
  <phase>process-classes</phase>
    <configuration>
      <target>
       <javac destdir="lib"
         srcdir="lib"
         source="1.6" target="1.6" debug="on"
         classpathref="maven.plugin.classpath">
         <include name="**/OSInfo.java"/>
       </javac>
       <exec executable="make">
        <arg line="%{?_smp_mflags}
        JAVA_HOME=%{_jvmdir}/java
        JAVA=%{_jvmdir}/java/bin/java
        JAVAC=%{_jvmdir}/java/bin/javac
        JAVAH=%{_jvmdir}/java/bin/javah
        native"/>
       </exec>
      </target>
    </configuration>
    <goals>
      <goal>run</goal>
    </goals>
  </execution>
</executions>'

# Used for build JNI library
cp -p src/main/java/org/sqlite/util/OSInfo.java lib/org/sqlite/
sed -i "s|package org.sqlite.util;|package org.sqlite;|" lib/org/sqlite/OSInfo.java

%mvn_file org.xerial:%{name} %{name}

%build

%ifarch %{arm}
opts='-f'
%endif

sed -i 's|$(CCFLAGS) -I|$(CCFLAGS) $(CFLAGS) -I|' Makefile
CFLAGS="${CFLAGS:-%optflags}" ; export CFLAGS ;
sed -i 's|$(CCFLAGS) -o|$(CCFLAGS) $(LDFLAGS) -o|' Makefile
LDFLAGS="${LDFLAGS:-%__global_ldflags}"; export LDFLAGS;
%mvn_build $opts -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files -f .mfiles
%doc CHANGELOG README.md Usage.md
%license LICENSE* NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE* NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17316 |21mr|sqljet-1.1.10-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           sqljet
Version:        1.1.10
Release:        13
Summary:        Pure Java SQLite
Group:          Development/Java
License:        GPLv2
URL:            http://sqljet.com/
Source0:        http://sqljet.com/files/%{name}-%{version}-src.zip

Source4:        %{name}-build.xml
Source5:        %{name}-pom.xml

BuildRequires:  ant
BuildRequires:  antlr
BuildRequires:  antlr32-java
BuildRequires:  antlr32-tool
BuildRequires:  easymock3
BuildRequires:  junit
BuildRequires:  stringtemplate
BuildRequires:  hamcrest-core
BuildRequires:  javapackages-local
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
SQLJet is an independent pure Java implementation of a popular SQLite database
management system. SQLJet is a software library that provides API that enables
Java application to read and modify SQLite databases.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

find \( -name '*.class' -o -name '*.jar' \) -delete

rm -rf gradlew.bat gradlew gradle

cp %{SOURCE4} build.xml
cp %{SOURCE5} pom.xml

cat > sqljet.build.properties <<EOF
sqljet.version.major=1
sqljet.version.minor=1
sqljet.version.micro=10
sqljet.version.build=local

antlr.version=3.2
sqlite.version=3.8.3
EOF


%build
export CLASSPATH=$(build-classpath antlr32/antlr-runtime-3.2 antlr32/antlr-3.2 antlr stringtemplate easymock3 junit hamcrest-core)
ant jars osgi javadoc pom

%install
%mvn_artifact pom.xml build/sqljet.jar
%mvn_file ":sqljet" sqljet
%mvn_install -J build/javadoc

%files -f .mfiles
%license LICENSE.txt
%doc README.txt CHANGES.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17317 |21mr|squashfs-tools-4.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		squashfs-tools
Version:	4.5.1
Release:	1
Summary:	Utilities for the creation of compressed squashfs images
License:	GPLv2+
Group:		File tools
URL:		http://squashfs.sourceforge.net/
Source0:	https://github.com/plougher/squashfs-tools/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz

BuildRequires:	attr-devel
BuildRequires:	liblzo-devel
BuildRequires:	help2man
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libzstd)

%description
squashfs-tools are utilities for the creation
of compressed squashfs images.

%prep
%autosetup -p1 -n %{name}-%{version}/squashfs-tools
sed -i'' Makefile -E \
	-e 's,^INSTALL_PREFIX =.+,INSTALL_PREFIX = %{buildroot}%{_prefix},' \
	-e 's,^INSTALL_MANPAGES_DIR =.+,INSTALL_MANPAGES_DIR = %{buildroot}%{_mandir}/man1,'

%build
%setup_compile_flags
%make_build ZSTD_SUPPORT=1 XZ_SUPPORT=1 LZO_SUPPORT=1 LZ4_SUPPORT=1 COMP_DEFAULT=zstd EXTRA_CFLAGS="%{optflags}"

%install
%make_install

%files
%license ../COPYING
%doc ../CHANGES ../README* ../USAGE
%{_bindir}/mksquashfs
%{_bindir}/sqfstar
%{_bindir}/unsquashfs
%{_bindir}/sqfscat
%{_mandir}/man1/mksquashfs.1*
%{_mandir}/man1/sqfstar.1*
%{_mandir}/man1/unsquashfs.1*
%{_mandir}/man1/sqfscat.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17318 |21mr|squashfuse-0.1.103-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define libfuseprivate %mklibname fuseprivate %{major}

Summary:	FUSE filesystem to mount squashfs archives
Name:		squashfuse
Version:	0.1.103
Release:	3
License:	BSD
Group:		System/Base
Url:		https://github.com/vasi/squashfuse
Source0:	https://github.com/vasi/squashfuse/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	attr-devel
BuildRequires:	liblzo-devel
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libzstd)
Requires:	fuse

%description
Squashfuse lets you mount SquashFS archives in user-space. It supports almost
all features of the SquashFS format, yet is still fast and memory-efficient.
SquashFS is an efficiently compressed, read-only storage format. Support for it
has been built into the Linux kernel since 2009. It is very common on Live CDs
and embedded Linux distributions.

%files
%doc LICENSE
%{_bindir}/squashfuse
%{_bindir}/squashfuse_ll
%{_mandir}/man1/squashfuse.1*

#----------------------------------------------------------------------------
%package -n %{libname}
Summary:	%{summary}
Group:		System/Libraries

%description -n %{libname}
%{name} shared library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#------------------------------------------------------------------

%package -n %{libfuseprivate}
Summary:	%{summary}
Group:		System/Libraries

%description -n %{libfuseprivate}
%{name} shared library.

%files -n %{libfuseprivate}
%{_libdir}/libfuseprivate.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libfuseprivate} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{name} development files.

%files -n %{devname}
%{_includedir}/squashfuse/*.h
%{_libdir}/*.so
%{_libdir}/pkgconfig/squashfuse.pc

#------------------------------------------------------------------
%prep
%autosetup -p1

%build
%configure --disable-demo --includedir=%{_includedir}/squashfuse
%make

%install
%makeinstall_std

cp *.h %{buildroot}%{_includedir}/squashfuse
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17319 |21mr|squid-5.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^.*Authen::Sm.*$

# ECI disabled for fix CVE-2024-45802
# https://github.com/squid-cache/squid/security/advisories/GHSA-f975-v7qw-q7hj
%bcond_with esi

Summary:	The Squid proxy caching server
Name:		squid
Version:	5.10
Release:	1
Epoch:		7
Group:		System/Servers
# See CREDITS for breakdown of non GPLv2+ code
License:	GPLv2+ and (LGPLv2+ and MIT and BSD and Public Domain)
Url:		http://www.squid-cache.org
Source0:	http://www.squid-cache.org/Versions/v5/squid-%{version}.tar.xz
Source3:	squid.logrotate
Source4:	squid.sysconfig
Source5:	squid.pam
Source6:	squid.nm
Source7:	squid.service
Source8:	cache_swap.sh
Source9:	squid.sysusers.conf
# Upstream patches
# Backported patches
# Local patches
# Applying upstream patches first makes it less likely that local patches
# will break upstream ones.
Patch201:	squid-4.0.11-config.patch
Patch202:	squid-3.1.0.9-location.patch
Patch203:	squid-3.0.STABLE1-perlpath.patch
Patch204:	squid-3.5.9-include-guards.patch
# CVE's
# CVE-2023-46847 fixed
# CVE-2023-46848 fixed
# CVE-2023-49285 fixed
# CVE-2023-46724 fixed
Patch301:	CVE-2023-46728.patch
# CVE-2023-46846 fixed
# CVE-2023-50269 fixed
# CVE-2024-23638 fixed
BuildRequires:	perl-generators
# time_quota requires DB
BuildRequires:	db-devel
#ip_user helper requires
BuildRequires:	libtool-devel
# squid_kerb_aut requires Kerberos development libs
BuildRequires:	krb5-devel
# squid_ldap_auth and other LDAP helpers require OpenLDAP
BuildRequires:	openldap-devel
# squid_pam_auth requires PAM development libs
BuildRequires:	pam-devel
# For test suite
BuildRequires:	pkgconfig(cppunit)
# SSL support requires OpenSSL
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libsasl2)
# TPROXY requires libcap, and also increases security somewhat
BuildRequires:	pkgconfig(libcap)
# eCAP support
BuildRequires:	pkgconfig(libecap)
%if %{with esi}
# ESI support requires Expat & libxml2
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libxml-2.0)
%endif
BuildRequires:	samba-client
BuildRequires:	samba-winbind
BuildRequires:	pkgconfig(tdb)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(nettle)
# cache_swap.sh
Requires:	bash
Requires:	gawk
Requires:	grep
Requires(pre):	shadow-utils
Requires(pre):	/bin/systemd-sysusers
# Old NetworkManager expects the dispatcher scripts in a different place
Conflicts:	NetworkManager < 1.20

%description
Squid is a high-performance proxy caching server for Web clients,
supporting FTP, gopher, and HTTP data objects. Unlike traditional
caching software, Squid handles all requests in a single,
non-blocking, I/O-driven process. Squid keeps meta data and especially
hot objects cached in RAM, caches DNS lookups, supports non-blocking
DNS lookups, and implements negative caching of failed requests.

Squid consists of a main server program squid, a Domain Name System
lookup program (dnsserver), a program for retrieving FTP data
(ftpget), and some management and client tools.

%files
%license COPYING
%doc CONTRIBUTORS README ChangeLog QUICKSTART src/squid.conf.documented
%doc contrib/url-normalizer.pl contrib/user-agents.pl

%{_unitdir}/squid.service
%attr(755,root,root) %dir %{_libexecdir}/squid
%attr(755,root,root) %{_libexecdir}/squid/cache_swap.sh
%attr(755,root,root) %dir %{_sysconfdir}/squid
%attr(755,root,root) %dir %{_libdir}/squid
%attr(770,squid,root) %dir %{_localstatedir}/log/squid
%attr(750,squid,squid) %dir %{_localstatedir}/spool/squid
%attr(755,squid,squid) %dir /run/squid

%config(noreplace) %attr(644,root,root) %{_sysconfdir}/httpd/conf.d/squid.conf
%config(noreplace) %attr(640,root,squid) %{_sysconfdir}/squid/squid.conf
%config(noreplace) %attr(644,root,squid) %{_sysconfdir}/squid/cachemgr.conf
%config(noreplace) %{_sysconfdir}/squid/mime.conf
%config(noreplace) %{_sysconfdir}/squid/errorpage.css
%config(noreplace) %{_sysconfdir}/sysconfig/squid
# These are not noreplace because they are just sample config files
%config %{_sysconfdir}/squid/squid.conf.default
%config %{_sysconfdir}/squid/mime.conf.default
%config %{_sysconfdir}/squid/errorpage.css.default
%config %{_sysconfdir}/squid/cachemgr.conf.default
%config(noreplace) %{_sysconfdir}/pam.d/squid
%config(noreplace) %{_sysconfdir}/logrotate.d/squid

%dir %{_datadir}/squid
%attr(-,root,root) %{_datadir}/squid/errors
%{_prefix}/lib/NetworkManager
%{_datadir}/squid/icons
%{_sbindir}/squid
%{_bindir}/squidclient
%{_bindir}/purge
%{_mandir}/man8/*
%{_mandir}/man1/*
%{_libdir}/squid/*
%{_datadir}/snmp/mibs/SQUID-MIB.txt
%{_tmpfilesdir}/squid.conf
%{_sysusersdir}/squid.conf

%pre
# create user and group
%sysusers_create_package squid %{SOURCE9}

for i in /var/log/squid /var/spool/squid ; do
  if [ -d $i ] ; then
    for adir in `find $i -maxdepth 0 \! -user squid`; do
      chown -R squid:squid $adir
    done
  fi
done
exit 0

%post
%systemd_post squid.service

%preun
%systemd_preun squid.service

%postun
%systemd_postun_with_restart squid.service

%triggerin -- samba-common
if ! getent group wbpriv >/dev/null 2>&1 ; then
  /usr/sbin/groupadd -g 88 wbpriv >/dev/null 2>&1 || :
fi
/usr/sbin/usermod -a -G wbpriv squid >/dev/null 2>&1 || \
    chgrp squid /var/cache/samba/winbindd_privileged >/dev/null 2>&1 || :


#----------------------------------------------------------------------------

%prep
%autosetup -p1

# https://bugzilla.redhat.com/show_bug.cgi?id=1679526
# Patch in the vendor documentation and used different location for documentation
sed -i 's|@SYSCONFDIR@/squid.conf.documented|%{_pkgdocdir}/squid.conf.documented|' src/squid.8.in

sed -i 's!touch $@!!g' libltdl/Makefile.in

%build
export SSLLIB="-L%{_libdir} `pkg-config --libs openssl`"
export CPPFLAGS="-I%{_includedir}/openssl -I`find /usr/include -type f -name db_185.h|head -n1|xargs dirname` %{optflags} "

%ifarch %{x86_64} aarch64
export CFLAGS="$CFLAGS -I`find /usr/include -type f -name db_185.h|head -n1|xargs dirname` -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
export CXXFLAGS="$CXXFLAGS -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64"
%else
export CFLAGS="$CFLAGS -I`find /usr/include -type f -name db_185.h|head -n1|xargs dirname` -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
export CXXFLAGS="$CXXFLAGS -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64"
%endif

autoreconf -if

# NIS helper has been removed because of the following bug
# https://bugzilla.redhat.com/show_bug.cgi?id=1531540
%configure \
	--libexecdir=%{_libdir}/squid \
	--datadir=%{_datadir}/squid \
	--sysconfdir=%{_sysconfdir}/squid \
	--with-logdir='%{_localstatedir}/log/squid' \
	--with-pidfile='/run/squid.pid' \
	--disable-dependency-tracking \
	--enable-eui \
	--enable-follow-x-forwarded-for \
	--enable-auth \
	--enable-auth-basic="DB,fake,getpwnam,LDAP,NCSA,PAM,POP3,RADIUS,SASL,SMB,SMB_LM" \
	--enable-auth-ntlm="SMB_LM,fake" \
	--enable-auth-digest="file,LDAP" \
	--enable-auth-negotiate="kerberos" \
	--enable-external-acl-helpers="LDAP_group,time_quota,session,unix_group,wbinfo_group,kerberos_ldap_group" \
	--enable-storeid-rewrite-helpers="file" \
	--enable-cache-digests \
	--with-systemd \
	--enable-cachemgr-hostname=localhost \
	--enable-delay-pools \
	--enable-epoll \
	--enable-icap-client \
	--enable-ident-lookups \
%ifnarch %{power64} ia64 %{x86_64} s390x aarch64
	--with-large-files \
%endif
	--enable-linux-netfilter \
	--enable-removal-policies="heap,lru" \
	--enable-snmp \
	--enable-ssl \
	--enable-ssl-crtd \
	--enable-storeio="aufs,diskd,ufs,rock" \
	--enable-diskio \
	--enable-wccpv2 \
%if %{with esi}
	--enable-esi \
%else
	--disable-esi \
%endif
	--enable-ecap \
	--with-aio \
	--with-default-user="squid" \
	--with-dl \
	--with-openssl \
	--with-pthreads \
	--disable-arch-native \
	--disable-security-cert-validators \
	--disable-strict-error-checking \
	--with-swapdir=%{_localstatedir}/spool/squid

unlink libltdl/config-h.in
cp -fv %{_datadir}/libtool/config-h.in libltdl/config-h.in

# workaround to build squid v5
mkdir -p src/icmp/tests
mkdir -p tools/squidclient/tests
mkdir -p tools/tests

%make_build

%install
%make_install

echo "
#
# This is %{_sysconfdir}/httpd/conf.d/squid.conf
#

ScriptAlias /Squid/cgi-bin/cachemgr.cgi %{_libdir}/squid/cachemgr.cgi

# Only allow access from localhost by default
<Location /Squid/cgi-bin/cachemgr.cgi>
 Require local
 # Add additional allowed hosts as needed
 # Require host example.com
</Location>" > %{buildroot}/squid.httpd.tmp


mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d/
mkdir -p %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_libexecdir}/squid
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/squid
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/sysconfig/squid
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/pam.d/squid
install -m 644 %{SOURCE7} %{buildroot}%{_unitdir}
install -m 755 %{SOURCE8} %{buildroot}%{_libexecdir}/squid
install -m 644 %{buildroot}/squid.httpd.tmp %{buildroot}%{_sysconfdir}/httpd/conf.d/squid.conf
install -m 755 %{SOURCE6} %{buildroot}%{_prefix}/lib/NetworkManager/dispatcher.d/20-squid
mkdir -p %{buildroot}%{_localstatedir}/log/squid
mkdir -p %{buildroot}%{_localstatedir}/spool/squid
mkdir -p %{buildroot}/run/squid
chmod 644 contrib/url-normalizer.pl contrib/user-agents.pl
iconv -f ISO88591 -t UTF8 ChangeLog -o ChangeLog.tmp
mv -f ChangeLog.tmp ChangeLog

# install /usr/lib/tmpfiles.d/squid.conf
mkdir -p %{buildroot}%{_tmpfilesdir}
cat > %{buildroot}%{_tmpfilesdir}/squid.conf <<EOF
# See tmpfiles.d(5) for details

d /run/squid 0755 squid squid - -
EOF

# Move the MIB definition to the proper place (and name)
mkdir -p %{buildroot}%{_datadir}/snmp/mibs
mv %{buildroot}%{_datadir}/squid/mib.txt %{buildroot}%{_datadir}/snmp/mibs/SQUID-MIB.txt

# squid.conf.documented is documentation. We ship that in doc/
rm -f %{buildroot}%{_sysconfdir}/squid/squid.conf.documented

# remove unpackaged files from the buildroot
rm -f %{buildroot}%{_bindir}/{RunAccel,RunCache}
rm -f %{buildroot}/squid.httpd.tmp

# install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE9} %{buildroot}%{_sysusersdir}/squid.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17320 |21mr|sratom-0.6.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	_enable_debug_packages %{nil}
%define	debug_package %{nil}

%define	api 0
%define	major 0
%define	libname %mklibname %{name} %{api} %{major}
%define	devname %mklibname %{name} -d

Summary:	Library for serialising LV2 atoms to/from RDF, particularly the Turtle syntax
Name:		sratom
Version:	0.6.4
Release:	2
License:	MIT-like
Group:		System/Libraries
Url:		http://drobilla.net/software/%{name}/
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.bz2
BuildRequires:	doxygen
BuildRequires:	waf
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(lv2) >= 1.16.0
BuildRequires:	pkgconfig(serd-0) >= 0.30.0
BuildRequires:	pkgconfig(sord-0) >= 0.14.0

%description
Lightweight C library for storing RDF data in memory.

%files
%doc COPYING README.md

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for serialising LV2 atoms to/from RDF, particularly the Turtle syntax
Group:		System/Libraries

%description -n %{libname}
Lightweight C library for storing RDF data in memory.

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}-%{api}.so.%{major}
%{_libdir}/lib%{name}-%{api}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for the sord RDF storage library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files needed to build applications against %{name}.

%files -n %{devname}
%doc build/doc/html/*
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}-%{api}.pc
%{_mandir}/man3/%{name}.3*

#----------------------------------------------------------------------------

%prep
%setup -q


%build
./waf configure \
	--prefix=%{_prefix} \
	--mandir=%{_mandir} \
	--libdir=%{_libdir} \
	--docs

./waf


%install
./waf install \
	--destdir=%{buildroot}

# Drop installed devel docs: we have our macro to do this
rm -rf %{buildroot}%{_datadir}/doc/%{name}-0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17321 |21mr|sscg-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global provider        github
%global provider_tld    com
%global project sgallagher
%global repo sscg
# https://github.com/sgallagher/sscg
%global provider_prefix %{provider}.%{provider_tld}/%{project}/%{repo}
%global import_path     %{provider_prefix}


Name:           sscg
Version:        2.6.1
Release:        1
Group:		System/Base
Summary:        Simple SSL certificate generator

License:        BSD
URL:            https://%{provider_prefix}
Source0:        https://%{provider_prefix}/releases/download/%{repo}-%{version}/%{repo}-%{version}.tar.xz

BuildRequires:  talloc-devel
BuildRequires:  openssl-devel
BuildRequires:  popt-devel
BuildRequires:  meson
BuildRequires:  pkgconfig(path_utils)
BuildRequires:  ninja
BuildRequires:  help2man

Patch0001: 0001-Make-clang-format-optional.patch


%description
A utility to aid in the creation of more secure "self-signed"
certificates. The certificates created by this tool are generated in a
way so as to create a CA certificate that can be safely imported into a
client machine to trust the service certificate without needing to set
up a full PKI environment and without exposing the machine to a risk of
false signatures from the service certificate.

%prep
%autosetup -p1


%build
%meson
%meson_build

%install
%meson_install

%files
%license COPYING
%doc README.md
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17322 |21mr|ssd-utils-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ssd-utils
Summary:	Utilities for SSD drives needed for regular TRIMming
Version:	1.0
Release:	7
License:	Public Domain
Group:		System/Base
Source0:	fstrim-all
Source1:	fstrim.cron
BuildArch:	noarch

Requires:	anacron
Requires:	util-linux

%description
This package sets up automatic TRIMming for SSD drives, which should lessen
the performance degradation.
See http://en.wikipedia.org/wiki/Trim_(computing) for details.

%install
install -m755 -d %{buildroot}/sbin
install -p -m755 %{SOURCE0} %{buildroot}/sbin

install -m755 -d %{buildroot}%{_sysconfdir}/cron.daily
install -p -m755 %{SOURCE1} %{buildroot}%{_sysconfdir}/cron.daily

%post
/sbin/fstrim-all || true

%files 
# Place fstrim-all to /sbin, where fstrim itself is.
/sbin/fstrim-all
%{_sysconfdir}/cron.daily/fstrim.cron

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17323 |21mr|sshfs-fuse-3.7.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Filesystem running over SFTP
Name:		sshfs-fuse
Version:	3.7.3
Release:	2
License:	GPLv2+
Group:		Networking/Remote access
Url:		https://github.com/libfuse/sshfs
Source0:	https://github.com/libfuse/sshfs/releases/download/sshfs-%{version}/sshfs-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	openssh-clients
BuildRequires:  python3-docutils
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(fuse3)
# for tests
BuildRequires:  fuse
BuildRequires:  python3-pytest
Requires:	fuse >= 3
# stick to major FUSE version we were build against
Requires:	openssh-clients
Provides:	sshfs = %{EVRD}
# compat with Fedora/RH
Provides:	fuse-sshfs = %{EVRD}

%description
This is a filesystem client based on the SSH File Transfer Protocol.
Since most SSH servers already support this protocol it is very easy to set up:
i.e. on the server side there's nothing to do.  On the client side mounting the
filesystem is as easy as logging into the server with ssh.

    * Based on FUSE
    * Multithreading: more than one request can be on it's way to the server
    * Allowing large reads (max 64k)
    * Caching directory contents

%files
%license COPYING
%doc AUTHORS README.rst ChangeLog.rst
%{_bindir}/sshfs
%{_sbindir}/mount.sshfs
%{_sbindir}/mount.fuse.sshfs
%{_mandir}/man1/sshfs.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n sshfs-%{version}

%build
%meson
%meson_build

%install
%meson_install

%check
%{__python3} -m pytest test/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17324 |21mr|sshj-0.13.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          sshj
Version:       0.13.0
Release:       11
Summary:       SSHv2 library for Java
License:       ASL 2.0
URL:           https://github.com/hierynomus/sshj
Source0:       https://github.com/hierynomus/sshj/archive/v%{version}.tar.gz

BuildRequires: gradle-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(com.jcraft:jzlib) >= 1.1.0-2
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.iharder:base64)
BuildRequires: mvn(org.apache.sshd:sshd-core)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: /usr/bin/perl

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
SSH, scp and sftp library for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find . -name "*.jar" -print -delete

# Enable local mode
perl -p -e "s/mavenCentral/xmvn()\n  mavenCentral/" build.gradle > build.gradle.temp
mv  build.gradle.temp  build.gradle

# fix non ASCII chars
native2ascii -encoding UTF8 \
  src/main/java/net/schmizz/sshj/SSHClient.java \
  src/main/java/net/schmizz/sshj/SSHClient.java

# Remove bundle library
rm -r src/main/java/net/schmizz/sshj/common/Base64.java
sed -i "s|net.schmizz.sshj.common.Base64|net.iharder.Base64|" \
  src/main/java/net/schmizz/sshj/transport/verification/OpenSSHKnownHosts.java \
  src/main/java/net/schmizz/sshj/userauth/keyprovider/OpenSSHKeyFile.java \
  src/main/java/net/schmizz/sshj/userauth/keyprovider/PuTTYKeyFile.java
perl -p -e 's/compile "com.jcraft:jzlib:1.1.3"/compile "net.iharder:base64:2.3.8"\n  compile "com.jcraft:jzlib:1.1.3"/' \
 build.gradle > build.gradle.temp
mv build.gradle.temp build.gradle

# Fix javadoc task
perl -p -e 's/task javadocJar/task javadocs(type: Javadoc) {\n  source = sourceSets.main.allJava\n}\n\ntask javadocJar/' \
 build.gradle > build.gradle.temp
mv build.gradle.temp build.gradle

# https://discuss.gradle.org/t/rootproject-name-in-settings-gradle-vs-projectname-in-build-gradle/5704/2
echo 'rootProject.name="sshj"' >> settings.gradle

# Test fails on koji only, cause: authenticated FAILED 
rm -r src/test/java/com/hierynomus/sshj/userauth/GssApiTest.java

%mvn_file com.hierynomus:%{name} %{name}
%mvn_alias com.hierynomus:%{name} net.schmizz:%{name}

%build

# Disable test suite
# On ARM builder test fails @ random
# com.hierynomus.sshj.transport.DisconnectionTest > listenerNotifiedOnServerDisconnect FAILED
#     net.schmizz.sshj.transport.TransportException at DisconnectionTest.java:36
#         Caused by: java.util.concurrent.TimeoutException at DisconnectionTest.java:36
# ? Test com.hierynomus.sshj.transport.DisconnectionTest; Executed: 4/3/1
# 69 tests completed, 1 failed
gradle -s --offline -x javadocs install

%install
%mvn_artifact build/poms/pom-default.xml build/libs/%{name}-%{version}.jar
%mvn_install -J build/docs/javadoc

%files -f .mfiles
%doc CONTRIBUTORS README.adoc
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17325 |21mr|sshpass-1.09-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Non-interactive SSH authentication utility
Name:		sshpass
Version:	1.09
Release:	1
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://sshpass.sourceforge.net/
Source0:	http://downloads.sourceforge.net/sshpass/%{name}-%{version}.tar.gz

%description
Tool for non-interactively performing password authentication with so called
"interactive keyboard password authentication" of SSH. Most users should use
more secure public key authentication of SSH instead.

%files
%doc AUTHORS COPYING ChangeLog NEWS
%{_bindir}/sshpass
%{_mandir}/man1/sshpass.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17326 |21mr|sslext-1.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          sslext
Version:       1.2
Release:       16
Summary:       Struts SSL Switching Extension
License:       ASL 1.1
Url:           http://sslext.sourceforge.net/
#cvs -d:pserver:anonymous@sslext.cvs.sourceforge.net:/cvsroot/sslext login
#cvs -z3 -d:pserver:anonymous@sslext.cvs.sourceforge.net:/cvsroot/sslext export -r Release1_2_1 sslext120
#rm -rf sslext120/web/WEB-INF/lib/*.jar
#rm -rf sslext120/sslext-struts1.2-*.*
#rm -rf $(find sslext120 -name "CVS")
#rm -rf $(find sslext120 -name "*.class")
#rm -rf $(find sslext120 -name "*.bak")
# non free
# rm -rf sslext120/web/WEB-INF/web-app_2_3.dtd
#mv sslext120 sslext-1.2
#tar czf sslext-1.2-realclean-src-cvs.tar.gz sslext-1.2
Source0:       %{name}-%{version}-realclean-src-cvs.tar.gz
Source1:       http://repo1.maven.org/maven2/%{name}/%{name}/%{version}-0/%{name}-%{version}-0.pom
Patch0:        %{name}-%{version}-build.patch
# fix build java5+
Patch1:        %{name}-%{version}-SecureRequestUtils.patch
# update struts reference
Patch2:        %{name}-%{version}-pom.patch
# build apis documentation
Patch3:        %{name}-%{version}-javadocs.patch

BuildRequires: java-devel
BuildRequires: javapackages-local

BuildRequires: ant
BuildRequires: apache-commons-beanutils
BuildRequires: apache-commons-collections
BuildRequires: apache-commons-digester
BuildRequires: apache-commons-fileupload
BuildRequires: apache-commons-logging
BuildRequires: apache-commons-validator
BuildRequires: jakarta-oro
BuildRequires: struts
BuildRequires: tomcat-jsp-2.3-api
BuildRequires: tomcat-servlet-4.0-api

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Extension to the Struts framework that allows developers to configure web
applications to automatically switch between the HTTP and HTTPS protocols.
Configuration is performed within the Struts config XML file.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
mkdir -p web/WEB-INF/classes
%patch0 -p0
sed -i "s|tomcat-servlet-3.0-api|tomcat-servlet-api|" build.xml
sed -i "s|tomcat-jsp-2.2-api|tomcat-jsp-api|" build.xml
sed -i "s|1.5|1.6|" build.xml
%patch1 -p0
cp -p %{SOURCE1} pom.xml
%patch2 -p0
%patch3 -p0

%build

export CLASSPATH=$(build-classpath tomcat-servlet-api tomcat-jsp-api)
%ant compile make-jar javadoc

%install
%mvn_artifact pom.xml web/WEB-INF/lib/%{name}.jar
%mvn_file %{name}:%{name} %{name}
%mvn_install -J docs

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17327 |21mr|sssd-2.9.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Don't provide private python extension libs
%define __provides_exclude_from ^%{python3_sitearch}/.*\.so$

%define servicename sssd
%define sssdstatedir %{_localstatedir}/lib/sss
%define dbpath %{sssdstatedir}/db
%define keytabdir %{sssdstatedir}/keytabs
%define pipepath %{sssdstatedir}/pipes
%define mcpath %{sssdstatedir}/mc
%define pubconfpath %{sssdstatedir}/pubconf
%define gpocachepath %{sssdstatedir}/gpo_cache
%define secdbpath %{sssdstatedir}/secrets
%define	deskprofilepath %{sssdstatedir}/deskprofile
%define	ldb_modulesdir %(pkg-config --variable=modulesdir ldb)

%define	sssd_user sssd
# Set setuid bit on child helpers if we support non-root user.
%define	child_attrs 4750

%define	libipa_hbac %mklibname ipa_hbac 0
%define	libsss_nss_idmap %mklibname sss_nss_idmap 0
%define	libsss_certmap %mklibname sss_certmap 0
%define	libsss_simpleifp %mklibname sss_simpleifp 0
%define	libnsssss %mklibname nss_sss 2

%global	Werror_cflags %{nil}
# Do not remove disable_ld_no_undefined:
# undefined symbols in debug files
%global	_disable_ld_no_undefined 1

# TODO: package /usr/include/shadow/subid.h and enable it
%bcond_with subid

# autoreconf is enough
%define	_disable_rebuild_configure 1

Summary:	System Security Services Daemon
Name:		sssd
Version:	2.9.2
Release:	4
License:	GPLv3+
Group:		System/Base
Url:		https://github.com/SSSD/sssd
Source0:	https://github.com/SSSD/sssd/releases/download/%{version}/sssd-%{version}.tar.gz
Source10:	sssd.sysusers.conf
Source100:	sssd.rpmlintrc
BuildRequires:	bind-utils
BuildRequires:	docbook-dtd44-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	doxygen
BuildRequires:	samba-common
BuildRequires:	sed
BuildRequires:	xsltproc
BuildRequires:	gettext-devel
BuildRequires:	cifs-utils-devel
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	samba-devel
%ifnarch %{e2k}
BuildRequires:	systemtap-sdt-devel
%endif
BuildRequires:	config(nss)
BuildRequires:	config(openssl)
BuildRequires:	pkgconfig(augeas)
BuildRequires:	pkgconfig(check)
BuildRequires:	pkgconfig(collection)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dhash)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(jose)
BuildRequires:	pkgconfig(ini_config)
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(ldb)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libkeyutils)
BuildRequires:	pkgconfig(libnfsidmap)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libsasl2)
BuildRequires:	pkgconfig(libselinux)
BuildRequires:	pkgconfig(libsemanage)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libunistring)
BuildRequires:	pkgconfig(ndr)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(p11-kit-1)
BuildRequires:	pkgconfig(path_utils)
BuildRequires:	pkgconfig(popt)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(samba-util)
BuildRequires:	pkgconfig(smbclient)
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(tdb)
BuildRequires:	pkgconfig(tevent)

Requires:	sssd-ad = %{EVRD}
Requires:	sssd-common = %{EVRD}
Requires:	sssd-ipa = %{EVRD}
Requires:	sssd-krb5 = %{EVRD}
Requires:	sssd-ldap = %{EVRD}
Recommends:	sssd-proxy = %{EVRD}
Recommends:	logrotate
# XXX Suggests in Fedora
Recommends:	python3-sssdconfig = %{EVRD}
Recommends:	sssd-dbus = %{EVRD}

# Subpackages were reworked
Obsoletes:	%{_lib}sssd0 < 2.6.1
Conflicts:	%{_lib}sssd0 < 2.6.1
# packages removed
Obsoletes:	%{_lib}sss_wbclient0 < 2.6.1
Conflicts:	%{_lib}sss_wbclient0 < 2.6.1

%description
Provides a set of daemons to manage access to remote directories and
authentication mechanisms. It provides an NSS and PAM interface toward
the system and a pluggable back end system to connect to multiple different
account sources. It is also the basis to provide client auditing and policy
services for projects like FreeIPA.

The sssd subpackage is a meta-package that pulls the daemon as well as all
the existing back ends.

%files
%license COPYING

#----------------------------------------------------------------------------

%package common
Summary:	Common files for the SSSD
License:	GPLv3+
Requires:	libldb
Requires:	libtevent
Requires:	sssd-client%{_isa} = %{EVRD}
Recommends:	libsss_sudo = %{EVRD}
Recommends:	libsss_autofs%{_isa} = %{EVRD}
Recommends:	sssd-nfs-idmap = %{EVRD}
# sssd may be configured to work from root, not sssd user
Recommends:	%{name}-polkit-rules = %{EVRD}
Requires:	logrotate
Requires:	libsss_idmap%{_isa} = %{EVRD}
Requires:	libsss_certmap%{_isa} = %{EVRD}
Requires(pre):	/bin/systemd-sysusers

%description common
Common files for the SSSD. The common package includes all the files needed
to run a particular back end, however, the back ends are packaged in separate
subpackages such as sssd-ldap.

%files common -f sssd.lang -f libsss_certmap.lang
%license COPYING
%doc src/examples/sssd-example.conf
%{_sbindir}/sssd
%{_unitdir}/sssd.service
%{_unitdir}/sssd-autofs.socket
%{_unitdir}/sssd-autofs.service
%{_unitdir}/sssd-nss.socket
%{_unitdir}/sssd-nss.service
%{_unitdir}/sssd-pac.socket
%{_unitdir}/sssd-pac.service
%{_unitdir}/sssd-pam.socket
%{_unitdir}/sssd-pam-priv.socket
%{_unitdir}/sssd-pam.service
%{_unitdir}/sssd-ssh.socket
%{_unitdir}/sssd-ssh.service
%{_unitdir}/sssd-sudo.socket
%{_unitdir}/sssd-sudo.service
%{_presetdir}/86-sssd.preset
%{_sysusersdir}/%{name}.conf

%dir %{_libexecdir}/%{servicename}
%{_libexecdir}/%{servicename}/sssd_be
%{_libexecdir}/%{servicename}/sssd_nss
%{_libexecdir}/%{servicename}/sssd_pam
%{_libexecdir}/%{servicename}/sssd_autofs
%{_libexecdir}/%{servicename}/sssd_ssh
%{_libexecdir}/%{servicename}/sssd_sudo
%{_libexecdir}/%{servicename}/p11_child
%{_libexecdir}/%{servicename}/sssd_check_socket_activated_responders

%dir %{_libdir}/%{name}
# The files provider is intentionally packaged in -common
%{_libdir}/%{name}/libsss_files.so
%{_libdir}/%{name}/libsss_simple.so

%dir %{_libdir}/%{name}/modules

#Internal shared libraries
%{_libdir}/%{name}/libsss_child.so
%{_libdir}/%{name}/libsss_crypt.so
%{_libdir}/%{name}/libsss_cert.so
%{_libdir}/%{name}/libsss_debug.so
%{_libdir}/%{name}/libsss_krb5_common.so
%{_libdir}/%{name}/libsss_ldap_common.so
%{_libdir}/%{name}/libsss_util.so
%{_libdir}/%{name}/libsss_semanage.so
%{_libdir}/%{name}/libifp_iface.so
%{_libdir}/%{name}/libifp_iface_sync.so
%{_libdir}/%{name}/libsss_iface.so
%{_libdir}/%{name}/libsss_iface_sync.so
%{_libdir}/%{name}/libsss_sbus.so
%{_libdir}/%{name}/libsss_sbus_sync.so

%{ldb_modulesdir}/memberof.so
%{_bindir}/sss_ssh_authorizedkeys
%{_bindir}/sss_ssh_knownhostsproxy
%{_sbindir}/sss_cache
%{_libexecdir}/%{servicename}/sss_signal

%dir %{sssdstatedir}
%dir %{_localstatedir}/cache/krb5rcache
%attr(700,%{sssd_user},%{sssd_user}) %dir %{dbpath}
%attr(775,%{sssd_user},%{sssd_user}) %dir %{mcpath}
%attr(700,root,root) %dir %{secdbpath}
%attr(751,root,root) %dir %{deskprofilepath}
%ghost %attr(0664,%{sssd_user},%{sssd_user}) %verify(not md5 size mtime) %{mcpath}/passwd
%ghost %attr(0664,%{sssd_user},%{sssd_user}) %verify(not md5 size mtime) %{mcpath}/group
%ghost %attr(0664,%{sssd_user},%{sssd_user}) %verify(not md5 size mtime) %{mcpath}/initgroups
%attr(755,%{sssd_user},%{sssd_user}) %dir %{pipepath}
%attr(750,%{sssd_user},root) %dir %{pipepath}/private
%attr(755,%{sssd_user},%{sssd_user}) %dir %{pubconfpath}
%attr(755,%{sssd_user},%{sssd_user}) %dir %{gpocachepath}
%attr(750,%{sssd_user},%{sssd_user}) %dir %{_var}/log/%{name}
%attr(700,%{sssd_user},%{sssd_user}) %dir %{_sysconfdir}/sssd
%attr(711,%{sssd_user},%{sssd_user}) %dir %{_sysconfdir}/sssd/conf.d
%attr(711,root,root) %dir %{_sysconfdir}/sssd/pki
%ghost %attr(0600,root,root) %config(noreplace) %{_sysconfdir}/sssd/sssd.conf
%config(noreplace) %{_sysconfdir}/logrotate.d/sssd
#dir %%{_sysconfdir}/rwtab.d
%config(noreplace) %{_sysconfdir}/rwtab.d/sssd
%dir %{_datadir}/sssd
%config(noreplace) %{_sysconfdir}/pam.d/sssd-shadowutils
%dir %{_libdir}/%{name}/conf
%{_libdir}/%{name}/conf/sssd.conf

%{_datadir}/sssd/cfg_rules.ini
%{_mandir}/man1/sss_ssh_authorizedkeys.1*
%{_mandir}/man1/sss_ssh_knownhostsproxy.1*
%{_mandir}/man5/sssd.conf.5*
%{_mandir}/man5/sssd-files.5*
%{_mandir}/man5/sssd-simple.5*
%{_mandir}/man5/sssd-sudo.5*
%{_mandir}/man5/sssd-session-recording.5*
%{_mandir}/man5/sss-certmap.5*
%{_mandir}/man8/sssd.8*
%{_mandir}/man8/sss_cache.8*
%ifnarch %{e2k}
%dir %{_datadir}/sssd/systemtap
%{_datadir}/sssd/systemtap/id_perf.stp
%{_datadir}/sssd/systemtap/nested_group_perf.stp
%{_datadir}/sssd/systemtap/dp_request.stp
%{_datadir}/sssd/systemtap/ldap_perf.stp
%{_datadir}/systemtap/tapset/sssd.stp
%{_datadir}/systemtap/tapset/sssd_functions.stp
%{_mandir}/man5/sssd-systemtap.5*
%endif

%pre common
%sysusers_create_package sssd %{SOURCE10}

%triggerun common -- sssd < 2.6.1
# sssd.service was moved from sssd into sssd-common in 2.6.1,
# %%preun of old sssd will disable it, keep it enabled.
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Scriptlets/#ordering
if systemctl -q is-enabled sssd.service; then
	touch /tmp/.sssd_was_enabled
fi

%triggerpostun common -- sssd < 2.6.1
if test -f /tmp/.sssd_was_enabled; then
	systemctl enable sssd.service
	rm -f /tmp/.sssd_was_enabled
fi

%post common
%systemd_post sssd.service
%systemd_post sssd-autofs.socket
%systemd_post sssd-nss.socket
%systemd_post sssd-pac.socket
%systemd_post sssd-pam.socket
%systemd_post sssd-pam-priv.socket
%systemd_post sssd-ssh.socket
%systemd_post sssd-sudo.socket

%posttrans common
%systemd_postun_with_restart sssd.service

%preun common
%systemd_preun sssd.service
%systemd_preun sssd-autofs.socket
%systemd_preun sssd-nss.socket
%systemd_preun sssd-pac.socket
%systemd_preun sssd-pam.socket
%systemd_preun sssd-pam-priv.socket
%systemd_preun sssd-ssh.socket
%systemd_preun sssd-sudo.socket

%postun common
%systemd_postun_with_restart sssd-autofs.socket
%systemd_postun_with_restart sssd-nss.socket
%systemd_postun_with_restart sssd-pac.socket
%systemd_postun_with_restart sssd-pam.socket
%systemd_postun_with_restart sssd-pam-priv.socket
%systemd_postun_with_restart sssd-ssh.socket
%systemd_postun_with_restart sssd-sudo.socket

# Services have RefuseManualStart=true, therefore we can't request restart.
%systemd_postun sssd-autofs.service
%systemd_postun sssd-nss.service
%systemd_postun sssd-pac.service
%systemd_postun sssd-pam.service
%systemd_postun sssd-ssh.service
%systemd_postun sssd-sudo.service

#----------------------------------------------------------------------------

%package client
Summary:	SSSD Client libraries for NSS and PAM
License:	LGPLv3+
Requires:	libsss_nss_idmap%{_isa} = %{EVRD}
Requires:	libsss_idmap%{_isa} = %{EVRD}
Requires:	%{libnsssss}%{_isa} = %{EVRD}
Requires:	cifs-utils%{_isa}
Requires(post):	update-alternatives
Requires(preun):	update-alternatives
# files may conflict
Conflicts:	sssd-client < 2.6.1

%description client
Provides the libraries needed by the PAM and NSS stacks to connect to the SSSD
service.

%files client -f sssd_client.lang
%license src/sss_client/COPYING src/sss_client/COPYING.LESSER
%if %{mdvver} >= 202310
%{_libdir}/security/pam_sss.so
%{_libdir}/security/pam_sss_gss.so
%else
/%{_lib}/security/pam_sss.so
/%{_lib}/security/pam_sss_gss.so
%endif
%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so
%{_libdir}/krb5/plugins/authdata/sssd_pac_plugin.so
%{_libdir}/cifs-utils/cifs_idmap_sss.so
%ghost %{_sysconfdir}/cifs-utils/idmap-plugin
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/modules
%{_libdir}/%{name}/modules/sssd_krb5_localauth_plugin.so
%{_mandir}/man8/pam_sss.8*
%{_mandir}/man8/pam_sss_gss.8*
%{_mandir}/man8/sssd_krb5_locator_plugin.8*
%{_mandir}/man8/sssd_krb5_localauth_plugin.8*

%post client
update-alternatives --install /etc/cifs-utils/idmap-plugin cifs-idmap-plugin %{_libdir}/cifs-utils/cifs_idmap_sss.so 20

%preun client
if [ $1 -eq 0 ] ; then
	update-alternatives --remove cifs-idmap-plugin %{_libdir}/cifs-utils/cifs_idmap_sss.so
fi

#----------------------------------------------------------------------------

%package -n %{libnsssss}
Summary:	SSSD plugin for NSS
Group:		System/Libraries
Provides:	nss_sss = %{EVRD}

%description -n %{libnsssss}
SSSD plugin for the Name Service Switch.

%files -n %{libnsssss}
%license src/sss_client/COPYING src/sss_client/COPYING.LESSER
%if %{mdvver} >= 202310
%{_libdir}/libnss_sss.so.2*
%else
/%{_lib}/libnss_sss.so.2*
%endif

#----------------------------------------------------------------------------

%package -n %{libipa_hbac}
Summary:	FreeIPA HBAC Evaluator library
License:	LGPLv3+
Group:		System/Libraries
# Compat with Fedora/RH
Provides:	libipa_hbac = %{EVRD}
Provides:	libipa_hbac%{_isa} = %{EVRD}
# Package was renamed to match soname
Obsoletes:	%{_lib}sss_ipa_hbac0 < 2.6.1
Conflicts:	%{_lib}sss_ipa_hbac0 < 2.6.1

%description -n %{libipa_hbac}
Utility library to validate FreeIPA HBAC rules for authorization requests

%files -n %{libipa_hbac}
%license src/sss_client/COPYING src/sss_client/COPYING.LESSER
%{_libdir}/libipa_hbac.so.0*

#----------------------------------------------------------------------------

%package -n %{libsss_nss_idmap}
Summary:	Library for SID and certificate based lookups
License:	LGPLv3+
Group:		System/Libraries
# Compat with Fedora/RH
Provides:	libsss_nss_idmap = %{EVRD}
Provides:	libsss_nss_idmap%{_isa} = %{EVRD}
# Package was renamed to match soname
Obsoletes:	%{_lib}sss_idmap_nss0 < 2.6.1
Conflicts:	%{_lib}sss_idmap_nss0 < 2.6.1

%description -n %{libsss_nss_idmap}
Utility library for SID and certificate based lookups

%files -n %{libsss_nss_idmap}
%license src/sss_client/COPYING src/sss_client/COPYING.LESSER
%{_libdir}/libsss_nss_idmap.so.0*

#----------------------------------------------------------------------------

%package -n %{libsss_simpleifp}
Summary:	The SSSD D-Bus responder helper library
License:	GPLv3+
Group:		System/Libraries
Requires:	sssd-dbus%{_isa} = %{EVRD}

%description -n %{libsss_simpleifp}
Provides library that simplifies D-Bus API for the SSSD InfoPipe responder.

%files -n %{libsss_simpleifp}
%{_libdir}/libsss_simpleifp.so.0*

#----------------------------------------------------------------------------

%package -n %{libsss_certmap}
Summary:	SSSD Certificate Mapping Library
License:	LGPLv3+
Group:		System/Libraries
# Compat with Fedora/RH
Provides:	libsss_certmap = %{EVRD}
Provides:	libsss_certmap%{_isa} = %{EVRD}

%description -n %{libsss_certmap}
Library to map certificates to users based on rules

%files -n %{libsss_certmap} 
# -f libsss_certmap.lang is in -common
%license src/sss_client/COPYING src/sss_client/COPYING.LESSER
%{_libdir}/libsss_certmap.so.0*
# man5/sss-certmap.5* is in -common

#----------------------------------------------------------------------------


%package -n libsss_sudo
Summary:	A library to allow communication between SUDO and SSSD
License:	LGPLv3+
Requires:	sudo

%description -n libsss_sudo
A utility library to allow communication between SUDO and SSSD

%files -n libsss_sudo
%license src/sss_client/COPYING
# Here we could make a package lib64sss_sudo0,
# but other libsss* modules are inside private directories...
%{_libdir}/libsss_sudo.so

#----------------------------------------------------------------------------

# Rename it into %%{_lib}sss_idmap0 if libsss_sudo.so becomes libsss_sudo.so.0

%package -n libsss_idmap
Summary:	FreeIPA Idmap library
License:	LGPLv3+
Provides:	%{_lib}sss_idmap0 = %{EVRD}
Obsoletes:	%{_lib}sss_idmap0 < 2.6.1
Conflicts:	%{_lib}sss_idmap0 < 2.6.1

%description -n libsss_idmap
Utility library to convert SIDs to Unix uids and gids

%files -n libsss_idmap
%license src/sss_client/COPYING src/sss_client/COPYING.LESSER
%{_libdir}/libsss_idmap.so.0*

#----------------------------------------------------------------------------

%package -n libsss_autofs
Summary:	A library to allow communication between Autofs and SSSD
License:	LGPLv3+
Requires:	autofs

%description -n libsss_autofs
A utility library to allow communication between Autofs and SSSD

%files -n libsss_autofs
%license src/sss_client/COPYING src/sss_client/COPYING.LESSER
%{_libdir}/%{name}/modules/libsss_autofs.so

#----------------------------------------------------------------------------

%package tools
Summary:	Userspace tools for use with the SSSD
License:	GPLv3+
Requires:	sssd-common = %{EVRD}
# Required by sss_obfuscate
Requires:	python3-sss = %{EVRD}
Requires:	python3-sssdconfig = %{EVRD}
Requires:	libsss_certmap = %{EVRD}
# For logger=journald support with sss_analyze
Requires:	python3-systemd
Requires:	sssd-dbus

%description tools
Provides several administrative tools:
	* sss_debuglevel to change the debug level on the fly
	* sss_seed which pre-creates a user entry for use in kickstarts
	* sss_obfuscate for generating an obfuscated LDAP password
	* sssctl -- an sssd status and control utility.

%files tools -f sssd_tools.lang
%license COPYING
%{_sbindir}/sss_obfuscate
%{_sbindir}/sss_override
%{_sbindir}/sss_debuglevel
%{_sbindir}/sss_seed
%{_sbindir}/sssctl
%{_libexecdir}/%{servicename}/sss_analyze
%{python3_sitelib}/sssd/
%{_mandir}/man8/sss_obfuscate.8*
%{_mandir}/man8/sss_override.8*
%{_mandir}/man8/sss_debuglevel.8*
%{_mandir}/man8/sss_seed.8*
%{_mandir}/man8/sssctl.8*

#----------------------------------------------------------------------------

%package ldap
Summary:	The LDAP back end of the SSSD
License:	GPLv3+
Requires:	sssd-common = %{EVRD}
Requires:	sssd-krb5-common = %{EVRD}
Requires:	libsss_idmap = %{EVRD}
Requires:	libsss_certmap = %{EVRD}

%description ldap
Provides the LDAP back end that the SSSD can utilize to fetch identity data
from and authenticate against an LDAP server.

%files ldap -f sssd_ldap.lang
%license COPYING
%{_libdir}/%{name}/libsss_ldap.so
%{_mandir}/man5/sssd-ldap.5*
%{_mandir}/man5/sssd-ldap-attributes.5*

#----------------------------------------------------------------------------

%package krb5-common
Summary:	SSSD helpers needed for Kerberos and GSSAPI authentication
License:	GPLv3+
#Requires:	cyrus-sasl-gssapi%%{_isa}
Requires:	sasl-plug-gssapi
Requires:	sssd-common = %{EVRD}

%description krb5-common
Provides helper processes that the LDAP and Kerberos back ends can use for
Kerberos user or host authentication.

%files krb5-common
%license COPYING
%attr(755,%{sssd_user},%{sssd_user}) %dir %{pubconfpath}/krb5.include.d
%attr(%{child_attrs},root,%{sssd_user}) %{_libexecdir}/%{servicename}/ldap_child
%attr(%{child_attrs},root,%{sssd_user}) %{_libexecdir}/%{servicename}/krb5_child

#----------------------------------------------------------------------------

%package krb5
Summary:	The Kerberos authentication back end for the SSSD
License:	GPLv3+
Requires:	sssd-common = %{EVRD}
Requires:	sssd-krb5-common = %{EVRD}

%description krb5
Provides the Kerberos back end that the SSSD can utilize authenticate
against a Kerberos server.

%files krb5 -f sssd_krb5.lang
%license COPYING
%{_libdir}/%{name}/libsss_krb5.so
%{_mandir}/man5/sssd-krb5.5*
%dir %{_datadir}/sssd/krb5-snippets
%{_datadir}/sssd/krb5-snippets/enable_sssd_conf_dir
%config(noreplace) %{_sysconfdir}/krb5.conf.d/enable_sssd_conf_dir

#----------------------------------------------------------------------------

%package common-pac
Summary:	Common files needed for supporting PAC processing
License:	GPLv3+
Requires:	sssd-common = %{EVRD}
Requires:	libsss_idmap = %{EVRD}

%description common-pac
Provides common files needed by SSSD providers such as IPA and Active Directory
for handling Kerberos PACs.

%files common-pac
%license COPYING
%{_libexecdir}/%{servicename}/sssd_pac

#----------------------------------------------------------------------------

%package ipa
Summary:	The IPA back end of the SSSD
License:	GPLv3+
Requires:	libsmbclient
Requires:	sssd-common = %{EVRD}
Requires:	sssd-krb5-common = %{EVRD}
Requires:	libipa_hbac%{_isa} = %{EVRD}
Requires:	libsss_certmap = %{EVRD}
Recommends:	bind-utils
Requires:	sssd-common-pac = %{EVRD}
Requires:	libsss_idmap = %{EVRD}

%description ipa
Provides the IPA back end that the SSSD can utilize to fetch identity data
from and authenticate against an IPA server.

%files ipa -f sssd_ipa.lang
%license COPYING
%attr(700,%{sssd_user},%{sssd_user}) %dir %{keytabdir}
%{_libdir}/%{name}/libsss_ipa.so
%attr(%{child_attrs},root,%{sssd_user}) %{_libexecdir}/%{servicename}/selinux_child
%{_mandir}/man5/sssd-ipa.5*

#----------------------------------------------------------------------------

%package ad
Summary:	The AD back end of the SSSD
License:	GPLv3+
Requires:	libsmbclient
Requires:	sssd-common = %{EVRD}
Requires:	sssd-krb5-common = %{EVRD}
Requires:	sssd-common-pac = %{EVRD}
Requires:	libsss_idmap = %{EVRD}
Requires:	libsss_certmap = %{EVRD}
Recommends:	bind-utils
Recommends:	adcli
#Suggests:	sssd-winbind-idmap = %%{EVRD}

%description ad
Provides the Active Directory back end that the SSSD can utilize to fetch
identity data from and authenticate against an Active Directory server.

%files ad -f sssd_ad.lang
%license COPYING
%{_libdir}/%{name}/libsss_ad.so
%{_libexecdir}/%{servicename}/gpo_child
%{_mandir}/man5/sssd-ad.5*

#----------------------------------------------------------------------------

%package proxy
Summary:	The proxy back end of the SSSD
License:	GPLv3+
Requires:	sssd-common = %{EVRD}

%description proxy
Provides the proxy back end which can be used to wrap an existing NSS and/or
PAM modules to leverage SSSD caching.

%files proxy
%license COPYING
%attr(%{child_attrs},root,%{sssd_user}) %{_libexecdir}/%{servicename}/proxy_child
%{_libdir}/%{name}/libsss_proxy.so

#----------------------------------------------------------------------------

%package dbus
Summary:	The D-Bus responder of the SSSD
License:	GPLv3+
Requires:	sssd-common = %{EVRD}

%description dbus
Provides the D-Bus responder of the SSSD, called the InfoPipe, that allows
the information from the SSSD to be transmitted over the system bus.

%files dbus -f sssd_dbus.lang
%license COPYING
%{_libexecdir}/%{servicename}/sssd_ifp
%{_mandir}/man5/sssd-ifp.5*
%{_unitdir}/sssd-ifp.service
# InfoPipe DBus plumbing
%{_datadir}/dbus-1/system.d/org.freedesktop.sssd.infopipe.conf
%{_datadir}/dbus-1/system-services/org.freedesktop.sssd.infopipe.service

%post dbus
%systemd_post sssd-ifp.service

%preun dbus
%systemd_preun sssd-ifp.service

%postun dbus
%systemd_postun_with_restart sssd-ifp.service

#----------------------------------------------------------------------------

%package polkit-rules
Summary:	Rules for polkit integration for SSSD
Group:		System/Base
License:	GPLv3+
Requires:	polkit

%description polkit-rules
Provides rules for polkit integration with SSSD. This is required
for smartcard support.

%files polkit-rules
%{_datadir}/polkit-1/rules.d/*

#----------------------------------------------------------------------------

%package winbind-idmap
Summary:	SSSD's idmap_sss Backend for Winbind
License:	GPLv3+ and LGPLv3+
Requires:	libsss_nss_idmap = %{EVRD}
Requires:	libsss_idmap = %{EVRD}

%description winbind-idmap
The idmap_sss module provides a way for Winbind to call SSSD to map UIDs/GIDs
and SIDs.

%files winbind-idmap -f sssd_winbind_idmap.lang
%dir %{_libdir}/samba/idmap
%{_libdir}/samba/idmap/sss.so
%{_mandir}/man8/idmap_sss.8*

#----------------------------------------------------------------------------

%package nfs-idmap
Summary:	SSSD plug-in for NFSv4 rpc.idmapd
License:	GPLv3+

%description nfs-idmap
The libnfsidmap sssd module provides a way for rpc.idmapd to call SSSD to map
UIDs/GIDs to names and vice versa. It can be also used for mapping principal
(user) name to IDs(UID or GID) or to obtain groups which user are member of.

%files nfs-idmap -f sssd_nfs_idmap.lang
%{_mandir}/man5/sss_rpcidmapd.5*
%{_libdir}/libnfsidmap/sss.so

#----------------------------------------------------------------------------

%package idp
Summary:	SSSD Kerberos plugins and OIDC helper for external identity providers
Requires:	sssd-common = %{EVRD}

%description idp
This package provides Kerberos plugins that are required to enable
authentication against external identity providers. Additionally a helper
program to handle the OAuth 2.0 Device Authorization Grant is provided.

%files idp
%{_libexecdir}/%{servicename}/oidc_child
%{_libdir}/%{name}/modules/sssd_krb5_idp_plugin.so
%{_datadir}/sssd/krb5-snippets/sssd_enable_idp
%config(noreplace) %{_sysconfdir}/krb5.conf.d/sssd_enable_idp

#----------------------------------------------------------------------------

%package kcm
Summary:	An implementation of a Kerberos KCM server
License:	GPLv3+
Requires:	sssd-common = %{EVRD}
Requires:	krb5

%description kcm
An implementation of a Kerberos KCM server. Use this package if you want to
use the KCM Kerberos credentials cache.

%files kcm -f sssd_kcm.lang
%{_libexecdir}/%{servicename}/sssd_kcm
%config(noreplace) %{_sysconfdir}/krb5.conf.d/kcm_default_ccache
%dir %{_datadir}/sssd-kcm
%{_datadir}/sssd-kcm/kcm_default_ccache
%{_unitdir}/sssd-kcm.socket
%{_unitdir}/sssd-kcm.service
%{_mandir}/man8/sssd-kcm.8*

%post kcm
%systemd_post sssd-kcm.socket

%preun kcm
%systemd_preun sssd-kcm.socket

%postun kcm
%systemd_postun_with_restart sssd-kcm.socket
%systemd_postun_with_restart sssd-kcm.service

#----------------------------------------------------------------------------

%package -n python3-sssdconfig
Summary:	SSSD and IPA configuration file manipulation classes and functions
License:	GPLv3+
Group:		Development/Python
BuildArch:	noarch
Conflicts:	python3-sssd < 2.6.1
Conflicts:	sssd < 2.6.1

%description -n python3-sssdconfig
Provides python3 files for manipulation SSSD and IPA configuration files.

%files -n python3-sssdconfig -f python3_sssdconfig.lang
%dir %{python3_sitelib}/SSSDConfig
%{python3_sitelib}/SSSDConfig/*.py*
%dir %{python3_sitelib}/SSSDConfig/__pycache__
%{python3_sitelib}/SSSDConfig/__pycache__/*.py*
%dir %{_datadir}/sssd
%{_datadir}/sssd/sssd.api.conf
%{_datadir}/sssd/sssd.api.d

#----------------------------------------------------------------------------

%package -n python3-sss
Summary:	Python3 bindings for sssd
License:	LGPLv3+
Requires:	sssd-common = %{EVRD}
Group:		Development/Python
Obsoletes:	python3-sssd < 2.6.1
Conflicts:	python3-sssd < 2.6.1

%description -n python3-sss
Provides python3 bindings:
	* function for retrieving list of groups user belongs to
	* class for obfuscation of passwords.

%files -n python3-sss
%{python3_sitearch}/pysss.so

#----------------------------------------------------------------------------

%package -n python3-sss-murmur
Summary:	Python3 bindings for murmur hash function
License:	LGPLv3+
Group:		Development/Python
Conflicts:	python3-sssd < 2.6.1

%description -n python3-sss-murmur
Provides python3 module for calculating the murmur hash version 3.

%files -n python3-sss-murmur
%{python3_sitearch}/pysss_murmur.so

#----------------------------------------------------------------------------

%package -n python3-libipa_hbac
Summary:	Python3 bindings for the FreeIPA HBAC Evaluator library
License:	LGPLv3+
Group:		Development/Python
Requires:	%{libipa_hbac} = %{EVRD}
Conflicts:	python3-sssd < 2.6.1

%description -n python3-libipa_hbac
The python3-libipa_hbac contains the bindings so that libipa_hbac can be
used by Python applications.

%files -n python3-libipa_hbac
%{python3_sitearch}/pyhbac.so

#----------------------------------------------------------------------------

%package -n python3-libsss_nss_idmap
Summary:	Python3 bindings for libsss_nss_idmap
License:	LGPLv3+
Group:		Development/Python
Requires:	libsss_nss_idmap%{_isa} = %{EVRD}
Conflicts:	python3-sssd < 2.6.1

%description -n python3-libsss_nss_idmap
The python3-libsss_nss_idmap contains the bindings so that libsss_nss_idmap can
be used by Python applications.

%files -n python3-libsss_nss_idmap
%{python3_sitearch}/pysss_nss_idmap.so

#----------------------------------------------------------------------------

%package devel
Summary:	SSSD development package
Group:		Development/C
Provides:	%{mklibname sssd -d} = %{EVRD}
#Requires:	%%{name}-common = %%{EVRD}
Requires:	%{libsss_simpleifp} = %{EVRD}
Requires:	%{libsss_nss_idmap} = %{EVRD}
Requires:	%{libipa_hbac} = %{EVRD}
Requires:	%{libsss_certmap} = %{EVRD}
# libsss_sudo.so is an unversioned library
#Requires:	libsss_sudo%%{_isa} = %%{EVRD}
Requires:	libsss_idmap%{_isa} = %{EVRD}
# package was renamed
Obsoletes:	%{_lib}sssd-devel < 2.6.1
Conflicts:	%{_lib}sssd-devel < 2.6.1

%description devel
System Security Services daemon (SSSD) development files.

%files devel
%{_includedir}/*
%{_libdir}/libsss_simpleifp.so
%{_libdir}/libsss_nss_idmap.so
%{_libdir}/libsss_idmap.so
%{_libdir}/libipa_hbac.so
%{_libdir}/libsss_certmap.so
%{_libdir}/pkgconfig/sss_simpleifp.pc
%{_libdir}/pkgconfig/sss_nss_idmap.pc
%{_libdir}/pkgconfig/sss_idmap.pc
%{_libdir}/pkgconfig/ipa_hbac.pc
%{_libdir}/pkgconfig/sss_certmap.pc
%{_mandir}/man5/sss_rpcidmapd.5*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Versionize shebang
sed -i'' -E -e '1s,.+,#!%{__python3},' ./src/tools/analyzer/sss_analyze


%build
autoreconf -ivf

%configure \
    --disable-rpath \
    --disable-static \
    --enable-gss-spnego-for-zero-maxssf \
    --enable-nfsidmaplibdir=%{_libdir}/libnfsidmap \
%if %{mdvver} >= 202310
    --enable-nsslibdir=%{_libdir} \
    --enable-pammoddir=%{_libdir}/security \
%else
    --enable-nsslibdir=/%{_lib} \
    --enable-pammoddir=/%{_lib}/security \
%endif
    --enable-sss-default-nss-plugin \
%ifnarch %{e2k}
    --enable-systemtap \
%endif
%if %{with subid}
    --with-subid \
%else
    --without-subid \
%endif
    --with-db-path=%{dbpath} \
    --with-gpo-cache-path=%{gpocachepath} \
    --with-initscript=systemd \
    --with-krb5-rcache-dir=%{_localstatedir}/cache/krb5rcache \
    --with-mcache-path=%{mcpath} \
    --with-pid-path=%{_rundir} \
    --with-pipe-path=%{pipepath} \
    --with-pubconf-path=%{pubconfpath} \
    --with-sssd-user=%{sssd_user} \
    --with-syslog=journald \
    --with-test-dir=/dev/shm \
    --with-files-provider \
    --with-libsifp

# this library deprecated and removed in next releases --with-files-provider --with-libsifp

%make_build all docs runstatedir=%{_rundir}


%install
%make_install

# Prepare language files
%find_lang sssd

# Copy default logrotate file
mkdir -p %{buildroot}/%{_sysconfdir}/logrotate.d
install -m644 src/examples/logrotate %{buildroot}%{_sysconfdir}/logrotate.d/sssd

# Make sure SSSD is able to run on read-only root
mkdir -p %{buildroot}/%{_sysconfdir}/rwtab.d
install -m644 src/examples/rwtab %{buildroot}%{_sysconfdir}/rwtab.d/sssd

# Enable sssd service by default
mkdir -p %{buildroot}%{_presetdir}
echo 'enable sssd.service' > %{buildroot}%{_presetdir}/86-sssd.preset

# Kerberos KCM credential cache by default
mkdir -p %{buildroot}/%{_sysconfdir}/krb5.conf.d
cp %{buildroot}/%{_datadir}/sssd-kcm/kcm_default_ccache \
   %{buildroot}/%{_sysconfdir}/krb5.conf.d/kcm_default_ccache

# Enable krb5 idp plugins by default (when sssd-idp package is installed)
cp %{buildroot}/%{_datadir}/sssd/krb5-snippets/sssd_enable_idp \
   %{buildroot}/%{_sysconfdir}/krb5.conf.d/sssd_enable_idp

# krb5 configuration snippet
cp %{buildroot}/%{_datadir}/sssd/krb5-snippets/enable_sssd_conf_dir \
   %{buildroot}/%{_sysconfdir}/krb5.conf.d/enable_sssd_conf_dir

# Create directory for cifs-idmap alternative
# Otherwise this directory could not be owned by sssd-client
mkdir -p %{buildroot}/%{_sysconfdir}/cifs-utils

# Remove .la files created by libtool
find %{buildroot} -name "*.la" -exec rm -f {} \;

# Suppress developer-only documentation
rm -Rf %{buildroot}/%{_docdir}/%{name}

# Older versions of rpmbuild can only handle one -f option
# So we need to append to the sssd*.lang file
for file in `ls %{buildroot}/%{python3_sitelib}/*.egg-info 2> /dev/null`
do
    echo %{python3_sitelib}/`basename $file` >> python3_sssdconfig.lang
done

touch sssd.lang
for subpackage in sssd_ldap sssd_krb5 sssd_ipa sssd_ad sssd_proxy sssd_tools \
                  sssd_client sssd_dbus sssd_nfs_idmap sssd_winbind_idmap \
                  libsss_certmap sssd_kcm
do
    touch $subpackage.lang
done

for man in `find %{buildroot}/%{_mandir}/??/man?/ -type f | sed -e "s#%{buildroot}/%{_mandir}/##"`
do
    lang=`echo $man | cut -c 1-2`
    case `basename $man` in
        sss_cache*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd.lang
            ;;
        sss_ssh*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd.lang
            ;;
        sss_rpcidmapd*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_nfs_idmap.lang
            ;;
        sss_*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_tools.lang
            ;;
        sssctl*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_tools.lang
            ;;
        sssd_krb5_*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_client.lang
            ;;
        pam_sss*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_client.lang
            ;;
        sssd-ldap*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_ldap.lang
            ;;
        sssd-krb5*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_krb5.lang
            ;;
        sssd-ipa*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_ipa.lang
            ;;
        sssd-ad*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_ad.lang
            ;;
        sssd-proxy*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_proxy.lang
            ;;
        sssd-ifp*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_dbus.lang
            ;;
        sssd-kcm*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_kcm.lang
            ;;
        idmap_sss*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd_winbind_idmap.lang
            ;;
        sss-certmap*)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> libsss_certmap.lang
            ;;
        *)
            echo \%lang\(${lang}\) \%{_mandir}/${man}\* >> sssd.lang
            ;;
    esac
done

# Print these to the rpmbuild log
echo "sssd.lang:"
cat sssd.lang

echo "python3_sssdconfig.lang:"
cat python3_sssdconfig.lang

for subpackage in sssd_ldap sssd_krb5 sssd_ipa sssd_ad sssd_proxy sssd_tools \
                  sssd_client sssd_dbus sssd_nfs_idmap sssd_winbind_idmap \
                  libsss_certmap sssd_kcm
do
    echo "$subpackage.lang:"
    cat $subpackage.lang
done


# ROSA-specific:

# Versionize shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_sbindir}/sss_obfuscate

mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE10} %{buildroot}%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17328 |21mr|sstp-client-1.0.18-2.gitb9e4b2.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit b9e4b2db88f0a46f9f77f9cdb4b3a98b55619c5a
%define commit_short %(echo %{commit} | head -c6)

%define ppp_version %((%{__awk} '/^#define VERSION/ { print $NF }' %{_includedir}/pppd/patchlevel.h 2>/dev/null||echo none)|tr -d '"')
#global ppp_version %(rpm -q ppp --queryformat '%{VERSION}')
# This spec file is based on:
# [0] Work by djam@ (Sergey Zhemoitel), based on RPM spec from upstream
# [1] https://packages.altlinux.org/ru/Sisyphus/srpms/sstp-client/spec (shaba@)

%define major 0
%define oname sstp-client
%define oname_api sstp_api
%define libname %mklibname %{oname_api} %{major}
%define devname %mklibname %{oname_api} -d

Summary:	Secure Socket Tunneling Protocol (SSTP) Client
Name:		sstp-client
Version:	1.0.18
Release:	2.git%{commit_short}.1
License:	GPLv2+
Group:		System/Servers
URL:		http://sstp-client.sourceforge.net/
Source0:	https://gitlab.com/sstp-project/sstp-client/-/archive/%{commit}/sstp-client-%{commit}.tar.gz
Source1:	%{name}.sysusers
Source2:	%{name}.tmpfiles
BuildRequires:	ppp-devel
Buildrequires:	pkgconfig(libevent) >= 2.0.10
Buildrequires:	pkgconfig(openssl)
Requires:	ppp = %{ppp_version}
Requires:	%{libname} = %{EVRD}

%description
Client for the proprietary Microsoft Secure Socket Tunneling Protocol, SSTP.
Allows connection to a SSTP based VPN as used by employers and some cable 
and ADSL service providers.

%files
%license COPYING
%doc AUTHORS DEVELOPERS NEWS README TODO USING
%doc ChangeLog
%doc sstp-test-nopty.example sstp-test.example
%{_sbindir}/sstpc
%{_mandir}/man8/sstpc.8*
%{_libdir}/pppd/%{ppp_version}/*.so
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf

%post
%sysusers_create %{name}.conf
%tmpfiles_create %{name}.conf

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The libsstp library
Group:		System/Libraries

%description -n %{libname}
This package contains the libsstp library.

%files -n %{libname}
%{_libdir}/libsstp_api-%{major}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers for sstp-client
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{oname_api}-devel = %{EVRD}

%description -n %{devname}
This package contains the necessary header files for sstp-client development.
This package is required to compile plugin's for sstp-client.

%files -n %{devname}
%{_libdir}/libsstp_api.so
%{_includedir}/%{oname}*
%{_libdir}/pkgconfig/%{name}*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
autoreconf -ifv
%configure \
	--disable-static \
	--with-libevent=2 \
	--with-pppd-plugin-dir=%{_libdir}/pppd/%{ppp_version} \
	--with-runtime-dir="/run/sstp-client" \
	--enable-user=sstp-client \
	--enable-group=sstp-client
%make

%install
%makeinstall_std
install -c -d -m 755 %{buildroot}%{_mandir}/man8
install -c -m 755 sstpc.8 %{buildroot}%{_mandir}/man8
install -Dpm 644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -Dpm 644 %{SOURCE1} %{buildroot}%{_sysusersdir}/%{name}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17329 |21mr|stardict-3.0.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure 1

# used to indicate difference between new/old dictionary formats
%define dict_format_version 2.4.2

Summary:	International dictionary written for GNOME
Name:		stardict
Version:	3.0.6.3
Release:	1
License:	GPLv3+
Group:		Text tools
Url:		https://stardict-4.sourceforge.net/index_en.php
Source0:	https://sourceforge.net/projects/stardict-4/files/%{version}/%{name}-%{version}-2-src.7z?/%{name}-%{version}.7z
Source1:	defaultdict.cfg
Source2:	stardict_128.png
Patch3:		stardict-3.0.6-zlib.patch
# Avoid underlinking of plugins
Patch4:		stardict-3.0.3-alt-linkage.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gnome-common
BuildRequires:	gnome-doc-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	p7zip
BuildRequires:	scrollkeeper
BuildRequires:	libespeak-devel
BuildRequires:	mysql-devel
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk+-2.0)
%if %{with gnome}
BuildRequires:	pkgconfig(libgnomeui-2.0)
%endif
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sigc++-2.0)
BuildRequires:	pkgconfig(zlib)
Provides:	%{name}-tools = %{EVRD}
Requires:	espeak
Requires:	stardict-dictionary = %{dict_format_version}
Conflicts:	stardict-dictionary < %{dict_format_version}
Conflicts:	stardict-dictionary > %{dict_format_version}

%description
StarDict is an international dictionary written for the GNOME environment.
It has evolved from Motif/Lesstif based Chinese dictionary, into a full
featured international dictionary written in GTK+. Here are some of its
features:

- Instantly popup word definition when word is selected on screen
- Wildcard search ( e.g. "wo?d*" )
- Fuzzy query
- Dock into notification area
- Find text in word definition
- Many dictionaries available, including freedict, *quick, xdict,
  dict.org dictionaries

%files -f %{name}.lang
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/%{name}/defaultdict.cfg
%{_datadir}/appdata/stardict.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%dir %{_sysconfdir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_libdir}/%{name}
%{_mandir}/man?/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CXXFLAGS="%{optflags} -std=gnu++11 -Wno-error=format-security"
pushd dict
%before_configure
popd
./autogen.sh
%configure	\
	--disable-espeak	\
	--disable-festival	\
	--disable-flite		\
	--disable-gnome-support	\
	--disable-gucharmap	\
	--disable-schemas-install	\
	--enable-espeak-ng
%make

%install
%makeinstall_std

# copy config file of locale specific default dictionaries
install -Dpm644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}/defaultdict.cfg

# menu
desktop-file-install --vendor="" \
	--remove-category="Application" \
	--add-category="GTK" \
	--add-category="Office" \
	--add-category="Dictionary" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

# install menu icons
for N in 16 32 48 64 128;
do
convert %{SOURCE2} -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# own various directories
mkdir -p %{buildroot}%{_datadir}/stardict/dic \
	 %{buildroot}%{_datadir}/stardict/treedict

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17330 |21mr|stardict-freedict-afr-deu-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Afrikaans -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-afr-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_afr-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Afrikaans -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_afr-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17331 |21mr|stardict-freedict-afr-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Afrikaans -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-afr-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_afr-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Afrikaans -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_afr-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17332 |21mr|stardict-freedict-cze-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Czech -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-cze-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_cze-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Czech -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_cze-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17333 |21mr|stardict-freedict-dan-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Danish -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-dan-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_dan-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Danish -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_dan-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17334 |21mr|stardict-freedict-deu-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	German -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-deu-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_deu-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_deu-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17335 |21mr|stardict-freedict-deu-fra-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	German -> French Freedict dictionary for StarDict 2
Name:		stardict-freedict-deu-fra
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_deu-fra-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> French Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_deu-fra-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17336 |21mr|stardict-freedict-deu-ita-2.4.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 15
%define dict_format_version	2.4.2

Summary:	German -> Italian Freedict dictionary for StarDict 2
Name:		stardict-freedict-deu-ita
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_deu-ita-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> Italian Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_deu-ita-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17337 |21mr|stardict-freedict-deu-nld-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	German -> Nederland Freedict dictionary for StarDict 2
Name:		stardict-freedict-deu-nld
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_deu-nld-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> Nederland Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_deu-nld-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17338 |21mr|stardict-freedict-deu-por-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	German -> Portugese Freedict dictionary for StarDict 2
Name:		stardict-freedict-deu-por
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_deu-por-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> Portugese Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_deu-por-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17339 |21mr|stardict-freedict-eng-afr-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Afrikaans Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-afr
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-afr-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Afrikaans Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-afr-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17340 |21mr|stardict-freedict-eng-deu-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	English -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17341 |21mr|stardict-freedict-eng-fra-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> French Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-fra
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-fra-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> French Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-fra-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17342 |21mr|stardict-freedict-eng-hun-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	English -> Hungarian Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-hun
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-hun-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Hungarian Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-hun-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17343 |21mr|stardict-freedict-eng-iri-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Irish Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-iri
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-iri-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Irish Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-iri-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17344 |21mr|stardict-freedict-eng-ita-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Italian Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-ita
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-ita-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Italian Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-ita-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17345 |21mr|stardict-freedict-eng-lat-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Latin Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-lat
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-lat-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Latin Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-lat-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17346 |21mr|stardict-freedict-eng-nld-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Nederland Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-nld
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-nld-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Nederland Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-nld-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17347 |21mr|stardict-freedict-eng-por-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Portugese Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-por
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-por-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Portugese Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-por-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17348 |21mr|stardict-freedict-eng-rom-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Romanian Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-rom
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-rom-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Romanian Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-rom-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17349 |21mr|stardict-freedict-eng-rus-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	English -> Russian Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-rus
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-rus-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Russian Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-rus-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17350 |21mr|stardict-freedict-eng-scr-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Serbo-Croat Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-scr
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

# http://freedict.sourceforge.net/download/linux/eng-scr.tar.gz
Source0:	http://deaddog.org/stardict/stardict-dictd_www.freedict.de_eng-scr-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Serbo-Croat Freedict dictionary in StarDict 2 format
(originally for dictd)

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-scr-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17351 |21mr|stardict-freedict-eng-spa-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Spanish Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-spa
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-spa-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Spanish Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-spa-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17352 |21mr|stardict-freedict-eng-swe-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Swedish Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-swe
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Swedish Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17353 |21mr|stardict-freedict-eng-wel-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Welsh Freedict dictionary for StarDict 2
Name:		stardict-freedict-eng-wel
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_eng-wel-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Welsh Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_eng-wel-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17354 |21mr|stardict-freedict-fra-deu-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	French -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-fra-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_fra-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
French -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_fra-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17355 |21mr|stardict-freedict-fra-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	French -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-fra-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_fra-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
French -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_fra-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17356 |21mr|stardict-freedict-fra-nld-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	French -> Nederland Freedict dictionary for StarDict 2
Name:		stardict-freedict-fra-nld
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_fra-nld-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
French -> Nederland Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_fra-nld-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17357 |21mr|stardict-freedict-hun-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Hungarian -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-hun-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_hun-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Hungarian -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_hun-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17358 |21mr|stardict-freedict-iri-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Irish -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-iri-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_iri-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Irish -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_iri-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17359 |21mr|stardict-freedict-ita-deu-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Italian -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-ita-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_ita-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Italian -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_ita-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17360 |21mr|stardict-freedict-ita-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Italian -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-ita-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

# http://freedict.sourceforge.net/download/linux/ita-eng.tar.gz
Source0:	http://deaddog.org/stardict/stardict-dictd_www.freedict.de_ita-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Italian -> English Freedict dictionary in StarDict 2 format
(originally for dictd)

%prep
%setup -q -n stardict-dictd_www.freedict.de_ita-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17361 |21mr|stardict-freedict-jpn-deu-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Japanese -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-jpn-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_jpn-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Japanese -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_jpn-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17362 |21mr|stardict-freedict-kha-deu-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Khasi -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-kha-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

# http://freedict.sourceforge.net/download/linux/kha-deu.tar.gz
Source0:	http://deaddog.org/stardict/stardict-dictd_www.freedict.de_kha-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Khasi -> German Freedict dictionary in StarDict 2 format
(originally for dictd)

%prep
%setup -q -n stardict-dictd_www.freedict.de_kha-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17363 |21mr|stardict-freedict-lat-deu-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Latin -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-lat-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_lat-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Latin -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_lat-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17364 |21mr|stardict-freedict-lat-eng-2.4.2-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 18
%define dict_format_version	2.4.2

Summary:	Latin -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-lat-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_lat-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Latin -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_lat-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17365 |21mr|stardict-freedict-nld-deu-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Nederland -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-nld-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_nld-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Nederland -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_nld-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17366 |21mr|stardict-freedict-nld-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Nederland -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-nld-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_nld-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Nederland -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_nld-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17367 |21mr|stardict-freedict-nld-fra-2.4.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 15
%define dict_format_version	2.4.2

Summary:	Nederland -> French Freedict dictionary for StarDict 2
Name:		stardict-freedict-nld-fra
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_nld-fra-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Nederland -> French Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_nld-fra-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17368 |21mr|stardict-freedict-por-deu-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Portugese -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-por-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_por-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Portugese -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_por-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17369 |21mr|stardict-freedict-por-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Portugese -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-por-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_por-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Portugese -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_por-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17370 |21mr|stardict-freedict-sco-deu-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Scottish -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-sco-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_sco-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Scottish -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_sco-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17371 |21mr|stardict-freedict-scr-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Serbo-Croat -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-scr-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_scr-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Serbo-Croat -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_scr-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17372 |21mr|stardict-freedict-slo-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Slovak -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-slo-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_slo-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Slovak -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_slo-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17373 |21mr|stardict-freedict-spa-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Spanish -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-spa-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_spa-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Spanish -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_spa-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17374 |21mr|stardict-freedict-swa-eng-2.4.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 15
%define dict_format_version	2.4.2

Summary:	Swahili -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-swa-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_swa-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Swahili -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_swa-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17375 |21mr|stardict-freedict-swe-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Swedish -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-swe-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_swe-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Swedish -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_swe-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17376 |21mr|stardict-freedict-tur-deu-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Turkish -> German Freedict dictionary for StarDict 2
Name:		stardict-freedict-tur-deu
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_tur-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Turkish -> German Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_tur-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17377 |21mr|stardict-freedict-tur-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Turkish -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-tur-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-dictd_www.freedict.de_tur-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Turkish -> English Freedict dictionary in StarDict 2 format

%prep
%setup -q -n stardict-dictd_www.freedict.de_tur-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17378 |21mr|stardict-freedict-wel-eng-2.4.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 16
%define dict_format_version	2.4.2

Summary:	Welsh -> English Freedict dictionary for StarDict 2
Name:		stardict-freedict-wel-eng
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

# http://freedict.sourceforge.net/download/linux/wel-eng.tar.gz
Source0:	http://deaddog.org/stardict/stardict-dictd_www.freedict.de_wel-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Welsh -> English Freedict dictionary in StarDict 2 format
(originally for dictd)

%prep
%setup -q -n stardict-dictd_www.freedict.de_wel-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17379 |21mr|stardict-quick-afr-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Afrikaanss -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-afr-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_afr-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Afrikaanss -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_afr-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17380 |21mr|stardict-quick-dan-deu-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Danish -> German *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-deu
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Danish -> German *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17381 |21mr|stardict-quick-dan-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Danish -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Danish -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17382 |21mr|stardict-quick-dan-fra-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Danish -> French *Quick dictionary for StarDict 2
Name:		stardict-quick-dan-fra
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_dan-fra-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Danish -> French *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_dan-fra-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17383 |21mr|stardict-quick-deu-dan-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	German -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-deu-dan
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_deu-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_deu-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17384 |21mr|stardict-quick-deu-deu-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	German -> German *Quick dictionary for StarDict 2
Name:		stardict-quick-deu-deu
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_deu-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> German *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_deu-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17385 |21mr|stardict-quick-deu-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	German -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-deu-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_deu-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_deu-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17386 |21mr|stardict-quick-deu-swe-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	German -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-deu-swe
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_deu-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
German -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_deu-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17387 |21mr|stardict-quick-eng-afr-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Afrikaanss *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-afr
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-afr-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Afrikaanss *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-afr-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17388 |21mr|stardict-quick-eng-dan-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-dan
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17389 |21mr|stardict-quick-eng-deu-2.4.2-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 16
%define dict_format_version	2.4.2

Summary:	English -> German *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-deu
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> German *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17390 |21mr|stardict-quick-eng-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	English -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17391 |21mr|stardict-quick-eng-fin-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Finnish *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-fin
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-fin-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Finnish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-fin-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17392 |21mr|stardict-quick-eng-fra-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	English -> French *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-fra
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-fra-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> French *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-fra-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17393 |21mr|stardict-quick-eng-gre-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Greek *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-gre
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-gre-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Greek *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-gre-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17394 |21mr|stardict-quick-eng-hun-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Hungarian *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-hun
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-hun-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Hungarian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-hun-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17395 |21mr|stardict-quick-eng-ind-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Indonesian *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-ind
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-ind-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Indonesian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-ind-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17396 |21mr|stardict-quick-eng-ita-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Italian *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-ita
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-ita-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Italian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-ita-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17397 |21mr|stardict-quick-eng-jpn-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Japanese *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-jpn
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-jpn-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Japanese *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-jpn-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17398 |21mr|stardict-quick-eng-lat-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	English -> Latin *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-lat
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-lat-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Latin *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-lat-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17399 |21mr|stardict-quick-eng-nld-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Dutch *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-nld
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-nld-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Dutch *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-nld-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17400 |21mr|stardict-quick-eng-nor-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	English -> Norwegian *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-nor
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-nor-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Norwegian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-nor-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17401 |21mr|stardict-quick-eng-por-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Portuguese *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-por
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-por-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Portuguese *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-por-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17402 |21mr|stardict-quick-eng-rus-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Russian *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-rus
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-rus-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Russian *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-rus-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17403 |21mr|stardict-quick-eng-spa-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Spanish *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-spa
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-spa-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Spanish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-spa-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17404 |21mr|stardict-quick-eng-swa-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Swahili *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-swa
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-swa-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Swahili *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-swa-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17405 |21mr|stardict-quick-eng-swe-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	English -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-eng-swe
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_eng-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
English -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_eng-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17406 |21mr|stardict-quick-fin-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Finnish -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-fin-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_fin-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Finnish -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_fin-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17407 |21mr|stardict-quick-fra-dan-2.4.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 15
%define dict_format_version	2.4.2

Summary:	French -> Danish *Quick dictionary for StarDict 2
Name:		stardict-quick-fra-dan
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_fra-dan-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
French -> Danish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_fra-dan-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17408 |21mr|stardict-quick-fra-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	French -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-fra-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_fra-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
French -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_fra-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17409 |21mr|stardict-quick-fra-swe-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	French -> Swedish *Quick dictionary for StarDict 2
Name:		stardict-quick-fra-swe
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_fra-swe-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
French -> Swedish *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_fra-swe-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17410 |21mr|stardict-quick-gre-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Greek -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-gre-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_gre-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Greek -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_gre-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17411 |21mr|stardict-quick-hun-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Hungarian -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-hun-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_hun-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Hungarian -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_hun-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17412 |21mr|stardict-quick-ind-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Indonesian -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-ind-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_ind-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Indonesian -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_ind-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17413 |21mr|stardict-quick-ita-eng-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Italian -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-ita-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_ita-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Italian -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_ita-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17414 |21mr|stardict-quick-jpn-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Japanese -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-jpn-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_jpn-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Japanese -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_jpn-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17415 |21mr|stardict-quick-lat-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Latin -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-lat-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_lat-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Latin -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_lat-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17416 |21mr|stardict-quick-nld-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Dutch -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-nld-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_nld-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Dutch -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_nld-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17417 |21mr|stardict-quick-nor-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Norwegian -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-nor-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_nor-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Norwegian -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_nor-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17418 |21mr|stardict-quick-por-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Portuguese -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-por-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_por-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Portuguese -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_por-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17419 |21mr|stardict-quick-rus-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Russian -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-rus-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_rus-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Russian -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_rus-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17420 |21mr|stardict-quick-spa-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Spanish -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-spa-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_spa-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Spanish -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_spa-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17421 |21mr|stardict-quick-swa-eng-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	Swahili -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-swa-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swa-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Swahili -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swa-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17422 |21mr|stardict-quick-swe-deu-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Swedish -> German *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-deu
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-deu-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Swedish -> German *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-deu-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17423 |21mr|stardict-quick-swe-eng-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Swedish -> English *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-eng
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-eng-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Swedish -> English *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-eng-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17424 |21mr|stardict-quick-swe-fra-2.4.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 14
%define dict_format_version	2.4.2

Summary:	Swedish -> French *Quick dictionary for StarDict 2
Name:		stardict-quick-swe-fra
Version:	%{version}
Release:	%{release}
License:	Distributable
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-quick_swe-fra-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Swedish -> French *Quick dictionary in StarDict 2 format.
*Quick is an open source translation application. For more info, visit

http://www.futureware.at/.

%prep
%setup -q -n stardict-quick_swe-fra-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17425 |21mr|stardict-stardict1.3-en-zh_CN-2.4.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 12
%define dict_format_version	2.4.2

Summary:	StarDict 1.3 dictionary (English -> Simplified Chinese) converted to StarDict 2
Name:		stardict-stardict1.3-en-zh_CN
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-stardict1.3-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
This package contains StarDict 1.3 dictionary (English -> Simplified Chinese)
database converted into StarDict 2 format.

%prep
%setup -q -n stardict-stardict1.3-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17426 |21mr|stardict-xdict-en-zh_CN-2.4.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 15
%define dict_format_version	2.4.2

Summary:	Simplified Chinese dictionary for stardict 2
Name:		stardict-xdict-en-zh_CN
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-xdict-ec-gb-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Xdict is an old English to Chinese dictionary application.
This package contains xdict database converted into stardict format.

%prep
%setup -q -n stardict-xdict-ec-gb-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17427 |21mr|stardict-xdict-en-zh_TW-2.4.2-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 15
%define dict_format_version	2.4.2

Summary:	Traditional Chinese dictionary for stardict 2
Name:		stardict-xdict-en-zh_TW
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-xdict-ec-big5-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Xdict is an old English to Chinese dictionary application.
This package contains xdict database converted into stardict format.

%prep
%setup -q -n stardict-xdict-ec-big5-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17428 |21mr|stardict-xdict-zh_CN-en-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Xdict Simplified Chinese -> English dictionary for stardict 2
Name:		stardict-xdict-zh_CN-en
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-xdict-ce-gb-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Xdict is an old English to Chinese dictionary application.
This package contains xdict database converted into stardict format.

%prep
%setup -q -n stardict-xdict-ce-gb-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17429 |21mr|stardict-xdict-zh_TW-en-2.4.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	version	2.4.2
%define release 13
%define dict_format_version	2.4.2

Summary:	Xdict Traditional Chinese -> English dictionary for stardict 2
Name:		stardict-xdict-zh_TW-en
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Databases
URL:		http://stardict.sourceforge.net/
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot
BuildArch:	noarch

Source0:	ftp://osdn.dl.sourceforge.net/pub/sourceforge/s/st/stardict/stardict-xdict-ce-big5-%{version}.tar.bz2

Provides:	stardict-dictionary = %{dict_format_version}
Requires:	stardict >= %{dict_format_version}

%description
Xdict is an old English to Chinese dictionary application.
This package contains xdict database converted into stardict format.

%prep
%setup -q -n stardict-xdict-ce-big5-%{version}

%build

%install
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_datadir}/stardict/dic
install -m 0644 * $RPM_BUILD_ROOT%{_datadir}/stardict/dic

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%{_datadir}/stardict/dic/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17430 |21mr|startup-notification-0.12-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 0
%define libname %mklibname %{name}- %{api} %{major}
%define devname %mklibname %{name}- %{api}  -d

Summary:	Library used to monitor application startup
Name:		startup-notification
Version:	0.12
Release:	13
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.freedesktop.org/
Source0:	http://www.freedesktop.org/software/%{name}/releases/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(x11-xcb)

%description
Startup-notification is a library used to monitor application startup.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library used to monitor application startup
Group:		System/Libraries
Provides:	lib%{name}-%{api} = %{EVRD}

%description -n %{libname}
Startup-notification is a library used to monitor application startup.

%files -n %{libname}
%{_libdir}/libstartup-notification-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Library used to monitor application startup
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{mklibname startup-notification- 1 0 -d} < 0.12-5

%description -n %{devname}
Startup-notification is a library used to monitor application startup.

%files -n %{devname}
%doc ChangeLog
%{_libdir}/libstartup-notification-%{api}.so
%{_libdir}/pkgconfig/*
%{_includedir}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17431 |21mr|station-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Terminal for Plasma Mobile
Name:		station
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv3
URL:		https://invent.kde.org/maui/station/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		station-cmake_locale.patch
Patch1:		station-russian_locale.patch
Patch2:		station-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:  qmltermwidget
BuildRequires:	mauikit-devel
BuildRequires:	mauikit-filebrowsing-devel

Requires: qmltermwidget

%description
Terminal for Plasma Mobile.

%files -f %{name}.lang
%{_kde5_bindir}/station
%{_kde5_applicationsdir}/org.kde.station.desktop
%{_kde5_datadir}/icons/hicolor/scalable/apps/station.svg

#------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17432 |21mr|stax2-api-4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             stax2-api
Version:          4.2
Release:          1
Summary:          Experimental API extending basic StAX implementation
License:          BSD

URL:              https://github.com/FasterXML/%{name}
Source0:          %{url}/archive/%{name}-%{version}.tar.gz

Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml:oss-parent:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%description
StAX2 is an experimental API that is intended to extend
basic StAX specifications in a way that allows implementations
to experiment with features before they end up in the actual
StAX specification (if they do). As such, it is intended
to be freely implementable by all StAX implementations same way
as StAX, but without going through a formal JCP process.

%package javadoc
Summary:          API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_xpath_remove pom:Import-Package

# javadoc generation fails due to strict doclint in JDK 8
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :moditect-maven-plugin

%build
%mvn_file :%{name} %{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17433 |21mr|stax-ex-1.7.7-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          stax-ex
Version:       1.7.7
Release:       11
Summary:       StAX API extensions
License:       CDDL or GPLv2
Url:           https://stax-ex.dev.java.net
# svn export https://svn.java.net/svn/stax-ex~svn/tags/stax-ex-1.7.7/ stax-ex-1.7.7
# find stax-ex-1.7.7/ -name '*.jar' -delete
# tar czf stax-ex-1.7.7.tar.gz stax-ex-1.7.7
Source0:       %{name}-%{version}.tar.gz

BuildRequires: dos2unix
BuildRequires: maven-local
BuildRequires: mvn(javax.xml.stream:stax-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This project develops a few extensions to complement JSR-173 StAX API in the
following area.

* Enable parser instance reuse (which is important in the
  high-performance environment like JAXB and JAX-WS)
* Improve the support for reading from non-text XML infoset,
  such as FastInfoset.
* Improve the namespace support.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

%pom_remove_dep javax.activation:activation
%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
%pom_remove_plugin org.codehaus.mojo:findbugs-maven-plugin
%pom_remove_plugin org.glassfish.copyright:glassfish-copyright-maven-plugin
%pom_remove_plugin org.apache.maven.plugins:maven-deploy-plugin

# Convert the license to UTF-8:
mv LICENSE.txt LICENSE.txt.tmp
iconv -f ISO-8859-1 -t UTF-8 LICENSE.txt.tmp > LICENSE.txt
dos2unix LICENSE.txt

%mvn_file :stax-ex %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17434 |21mr|staxmapper-1.2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             staxmapper
Version:          1.2.0
Release:          6
Summary:          StAX Mapper
License:          LGPLv2+
URL:              https://github.com/jbossas/staxmapper
Source0:          https://github.com/jbossas/staxmapper/archive/%{namedversion}.tar.gz
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)

%description
This package contains the StAX Mapper.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%build
%mvn_build

%install
%mvn_install

# Not available license file reported @ https://issues.jboss.org/browse/STXM-14
%files -f .mfiles
%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17435 |21mr|staxmate-2.3.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          staxmate
Version:       2.3.0
Release:       9
Summary:       Light-weight Java framework for streaming XML processing
License:       BSD
URL:           https://github.com/FasterXML/StaxMate
Source0:       https://github.com/FasterXML/StaxMate/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(javax.xml.stream:stax-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.codehaus.woodstox:stax2-api)
BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
StaxMate is a light-weight framework that
adds convenience to streaming XML-processing
without significant additional overhead. It
builds on top of a Stax (JSR-173) compliant
XML processors such as Woodstox or Sjsxp
(default Stax implementation of JDK 1.6) and
offers two basic abstractions: Cursors, which
build on XMLStreamReaders and Output objects,
which build on XMLStreamWriters.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n StaxMate-%{name}-%{version}
find . -name '*.jar' -delete
find . -name '*.class' -delete

# Unwanted
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :cobertura-maven-plugin

# these tests fails
#rm src/test/java/org/codehaus/staxmate/dom/TestDOMConverter.java \
# src/test/java/org/codehaus/staxmate/out/TestBinary.java

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md release-notes/*
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17436 |21mr|stb-2.37-1.5736b1.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5736b15f7ea0ffb08dd38af21067c314d6a3aae9
%define git %(echo %{commit} | head -c6)
%define devname %mklibname %{name} -d

Name:		stb
Version:	2.37
Release:	1.%{git}.1
Summary:	single-file libraries for C/C++
Group:		Development/C++
License:	MIT
# see stb.h for the version
Url:		http://github.com/nothings/stb
Source0:	https://github.com/nothings/stb/archive/%{commit}.zip?/%{name}-%{git}.zip
Source1:	stb.pc
BuildArch:	noarch

%description
Noteworthy:
* image loader: stb_image.h
* image writer: stb_image_write.h
* image resizer: stb_image_resize.h
* font text rasterizer: stb_truetype.h
* typesafe containers: stb_ds.h

#-----------------------------------------------------------------
%package -n %{devname}
Summary:	single-file libraries for C/C++
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for STB library.

Noteworthy:
* image loader: stb_image.h
* image writer: stb_image_write.h
* image resizer: stb_image_resize.h
* font text rasterizer: stb_truetype.h
* typesafe containers: stb_ds.h

%files -n %{devname}
%{_includedir}/stb
%{_datadir}/pkgconfig/stb.pc
%doc *.md docs/*

#-----------------------------------------------------------------
%prep
%setup -n %{name}-%{commit}

%build

%install
mv stb_vorbis.c stb_vorbis.h
mkdir -p %{buildroot}%{_includedir}/stb
mkdir -p %{buildroot}%{_datadir}/pkgconfig
install -pm644 *.h %{buildroot}%{_includedir}/stb
install -pm644 %{SOURCE1} %{buildroot}%{_datadir}/pkgconfig/stb.pc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17437 |21mr|step-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define eigen_version 3.2.2

Summary:	Interactive physical simulator
Name:		step
Version:	23.08.4
Release:	1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://edu.kde.org/step/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5khtml-devel
BuildRequires:	kf5newstuff-devel
BuildRequires:	kf5plotting-devel
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(eigen3) >= %{eigen_version}
BuildRequires:	pkgconfig(libqalculate)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
Step is an interactive physical simulator. It works like this:
you place some bodies on the scene, add some forces such as gravity
or springs, then click "Simulate" and Step shows you how your scene
will evolve according to the laws of physics. You can change every
property of bodies/forces in your experiment (even during simulation)
and see how this will change evolution of the experiment. With Step
you can not only learn but feel how physics works!

%files -f %{name}.lang
%doc README AUTHORS ChangeLog DESIGN TODO
%{_kde5_applicationsdir}/org.kde.step.desktop
%{_kde5_bindir}/step
%{_kde5_datadir}/config.kcfg/step.kcfg
%{_kde5_datadir}/step
%{_kde5_iconsdir}/hicolor/*/actions/pointer.*
%{_kde5_iconsdir}/hicolor/*/actions/step_*.*
%{_kde5_iconsdir}/hicolor/*/apps/step.*
%{_kde5_datadir}/knsrcfiles/step.knsrc
%{_appdatadir}/org.kde.step.appdata.xml
%{_datadir}/mime/packages/org.kde.step.xml
%lang(nn) %{_localedir}/nn/LC_SCRIPTS/step

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang step_example_files step_objinfo_files %{name} %{name}.lang --with-kde --with-html --with-qt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17438 |21mr|stk-4.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Synthesis ToolKit in C++
Name:		stk
Version:	4.6.1
Release:	1
Group:		Sound
License:	MIT
Url:		http://ccrma.stanford.edu/software/stk/
# Original tarfile can be found at %%{url}/release/%%{name}-%%{version}.tar.gz
# We remove legally questionable files as well as accidentally packed
# object files.
#github.com/thestk/stk
Source0:	%{name}-%{version}-stripped.tar.xz
Source1:	README.fedora
Source2:	stk.rpmlintrc
Patch1:		%{name}-4.5.1-cflags-lib.patch
Patch2:		%{name}-4.6.1-fix-install-path.patch
BuildRequires:	autoconf
BuildRequires:	symlinks
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(jack)
Conflicts:	%{_lib}stk4 < 4.5.1-5

%description
The Synthesis ToolKit in C++ (STK) is a set of open source audio signal
processing and algorithmic synthesis classes written in the C++ programming
language. STK was designed to facilitate rapid development of music synthesis
and audio processing software, with an emphasis on cross-platform
functionality, realtime control, ease of use, and educational example code.
The Synthesis ToolKit is extremely portable (it's mostly platform-independent
C and C++ code), and it's completely user-extensible (all source included, no
unusual libraries, and no hidden drivers). We like to think that this
increases the chances that our programs will still work in another 5-10 years.
In fact, the ToolKit has been working continuously for about 10 years now. STK
currently runs with real-time support (audio and MIDI) on Linux, Macintosh OS
X and Windows computer platforms. Generic, non-realtime support has been
tested under NeXTStep, Sun, and other platforms and should work with any
standard C++ compiler.

%files
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/rawwaves

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
This package contains the main library for %{name}.

%files -n %{libname}
%doc README.md
%{_libdir}/libstk.so.%{major}*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.

%files -n %{devname}
%doc README.md doc/* README.fedora
%{_libdir}/libstk.so
%{_includedir}/stk/

#------------------------------------------------------------------------------

%package demos
Summary:	Demo applications for %{name}
Group:		Sound
Requires:	tk >= 8.0
Requires:	%{libname} = %{EVRD}

%description demos
The %{name}-demo package contains the demo applications for the C++ Sound
Synthesis ToolKit.

%files demos
%doc README.md README.fedora
%{_bindir}/%{name}-*
%{_bindir}/Md2Skini
%{_datadir}/%{name}/demo
%{_datadir}/%{name}/examples
%{_datadir}/%{name}/effects
%{_datadir}/%{name}/ragamatic
%{_datadir}/%{name}/eguitar

#--------------------------------------------------------------------------------

%prep
%autosetup -p1

# we patched configure.ac in P1
autoreconf -vfi

cp -a %{SOURCE1} README.fedora

# Already generated file
#rm projects/examples/libMakefile

# Remove backup files
find . -name '*~' -exec rm {} \;


%build
%configure \
	--enable-shared \
	--disable-static \
	--with-jack \
	--with-alsa \
	RAWWAVE_PATH=%{_datadir}/stk/rawwaves/
# Build first the main library
%make -C src
# Next build demos and examples
%make -C projects/demo libdemo libMd2Skini
%make -C projects/examples -f libMakefile
%make -C projects/effects libeffects
%make -C projects/ragamatic libragamat
%make -C projects/eguitar libeguitar


%install
%makeinstall_std

# The above only installs the main library and the related devel files:
# go manually for demos and examples
# 1. Prepare the needed dirs
mkdir -p \
    %{buildroot}%{_bindir} \
    %{buildroot}%{_datadir}/stk/rawwaves \
    %{buildroot}%{_datadir}/stk/demo \
    %{buildroot}%{_datadir}/stk/examples \
    %{buildroot}%{_datadir}/stk/effects \
    %{buildroot}%{_datadir}/stk/ragamatic \
    %{buildroot}%{_datadir}/stk/eguitar
# 2. Install sample sound files
#cp -p include/* %%{buildroot}%%{_includedir}/stk
#cp -pd src/libstk.* %%{buildroot}%%{_libdir}
cp -p rawwaves/*.raw %{buildroot}%{_datadir}/stk/rawwaves
# 3. Install demos
cp -pr projects/demo/tcl %{buildroot}%{_datadir}/stk/demo
cp -pr projects/demo/scores %{buildroot}%{_datadir}/stk/demo
cp -p projects/demo/stk-demo %{buildroot}%{_bindir}/
cp -p projects/demo/Md2Skini %{buildroot}%{_bindir}/
for f in Banded Drums Modal Physical Shakers StkDemo Voice ; do
  chmod +x projects/demo/$f
  sed -e 's,\./demo,%{_bindir}/stk-demo,' -e '1i#! /bin/sh' -i projects/demo/$f
  cp -p projects/demo/$f %{buildroot}%{_datadir}/stk/demo
done
# 4. Install examples
cp -pr projects/examples/midifiles %{buildroot}%{_datadir}/stk/examples
cp -pr projects/examples/rawwaves %{buildroot}%{_datadir}/stk/examples
cp -pr projects/examples/scores %{buildroot}%{_datadir}/stk/examples
for f in sine sineosc foursine audioprobe midiprobe duplex play \
  record inetIn inetOut rtsine crtsine bethree controlbee threebees playsmf grains ; do
    cp -p projects/examples/$f %{buildroot}%{_bindir}/stk-$f
    # absolute links, will be shortened later
    ln -s %{buildroot}%{_bindir}/stk-$f %{buildroot}%{_datadir}/stk/examples/$f
done
# 5. Install effects
cp -pr projects/effects/tcl %{buildroot}%{_datadir}/stk/effects
cp -p projects/effects/effects %{buildroot}%{_bindir}/stk-effects
sed -e 's,\./effects,%{_bindir}/stk-effects,' -e '1i#! /bin/sh' \
  -i projects/effects/StkEffects
cp -p projects/effects/StkEffects %{buildroot}%{_datadir}/stk/effects
# 6. Install other examples (ragamatic)
cp -pr projects/ragamatic/tcl %{buildroot}%{_datadir}/stk/ragamatic
cp -pr projects/ragamatic/rawwaves %{buildroot}%{_datadir}/stk/ragamatic
cp -p projects/ragamatic/ragamat %{buildroot}%{_bindir}/stk-ragamat
sed -e 's,\./ragamat,%{_bindir}/stk-ragamat,' -e '1i#! /bin/sh' \
  -i projects/ragamatic/Raga
cp -p projects/ragamatic/Raga %{buildroot}%{_datadir}/stk/ragamatic
# 6. Install other examples (eguitar)
cp -pr projects/eguitar/tcl %{buildroot}%{_datadir}/stk/eguitar
cp -pr projects/eguitar/scores %{buildroot}%{_datadir}/stk/eguitar
cp -p projects/eguitar/eguitar %{buildroot}%{_bindir}/stk-eguitar
sed -e 's,\./eguitar,%{_bindir}/stk-eguitar,' -e '1i#! /bin/sh' \
  -i projects/eguitar/ElectricGuitar
cp -p projects/eguitar/ElectricGuitar %{buildroot}%{_datadir}/stk/eguitar

# Fix encoding
iconv -f iso-8859-1 -t utf-8 doc/doxygen/index.txt \
  -o doc/doxygen/index.txt.tmp
mv doc/doxygen/index.txt.tmp doc/doxygen/index.txt

# fix symlinks
symlinks -crv %{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17439 |21mr|strace-4.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tracks and displays system calls associated with a running process
Name:		strace
Version:	4.20
Release:	1
License:	BSD
Group:		Development/Kernel
Url:		https://strace.io
Source0:	https://github.com/strace/strace/releases/download/v%{version}/%{name}-%{version}.tar.xz
Patch100:	0001-Add-beta-version-of-e2k-patch-for-strace-4.20.add.patch
Patch101:	0001-Add-beta-version-of-e2k-patch-for-strace-4.20.mod.patch
Patch102:	0002-Update-some-e2k-syscalls-for-correct-arg-number.patch
Patch103:	0003-Delete-HAVE_M32_RUNTIME-HAVE_MX32_RUNTIME.patch
BuildRequires:	binutils-devel
ExclusiveArch:	%{e2k}

%description
The strace program intercepts and records the system calls called
and received by a running process.  Strace can print a record of
each system call, its arguments and its return value.  Strace is useful
for diagnosing problems and debugging, as well as for instructional
purposes.

Install strace if you need a tool to track the system calls made and
received by a process.

%files
%license COPYING
%doc README* CREDITS ChangeLog NEWS
%{_bindir}/strace
%{_bindir}/strace-log-merge
%optional %{_bindir}/strace-graph
%{_mandir}/man1/strace*.1*

#------------------------------------------------------------------

%prep
%setup -q
%ifarch %{e2k}
%patch100 -p1
%patch101 -p1
%patch102 -p1
%patch103 -p1
%endif

%build
%global optflags %{optflags} -Wno-error=strict-aliasing
autoreconf -fi
# https://sourceforge.net/p/strace/mailman/message/36236388/
%configure --enable-mpers=check

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17440 |21mr|strace-6.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tracks and displays system calls associated with a running process
Name:		strace
Version:	6.6
Release:	1
License:	BSD
Group:		Development/Kernel
Url:		https://strace.io
Source0:	https://github.com/strace/strace/releases/download/v%{version}/%{name}-%{version}.tar.xz
BuildRequires:	binutils-devel
BuildRequires:	elfutils-devel
ExcludeArch:	%{e2k}

%description
The strace program intercepts and records the system calls called
and received by a running process.  Strace can print a record of
each system call, its arguments and its return value.  Strace is useful
for diagnosing problems and debugging, as well as for instructional
purposes.

Install strace if you need a tool to track the system calls made and
received by a process.

%files
%license COPYING
%doc README* CREDITS ChangeLog NEWS
%{_bindir}/strace
%{_bindir}/strace-log-merge
%{_mandir}/man1/strace*.1*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -Wno-error=strict-aliasing
# https://sourceforge.net/p/strace/mailman/message/36236388/
%configure --enable-mpers=check

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17441 |21mr|stream-lib-2.6.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# NB: this package includes a forked version of Bloom filter code
# from Apache Cassandra.  FPC has granted a bundling exception since
# it is a fork; see https://fedorahosted.org/fpc/ticket/401 and
# http://meetbot.fedoraproject.org/fedora-meeting-1/2014-03-20/fedora-meeting-1.2014-03-20-17.05.html

%global streamlib_version 2.6.0
%global commit 214c92595d5be3a1cedc881b50231ccb34862074
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:           stream-lib
Version:        %{streamlib_version}
Release:        12
Summary:        Stream summarizer and cardinality estimator
License:        ASL 2.0
URL:            https://github.com/addthis/stream-lib/
Source0:        https://github.com/addthis/stream-lib/archive/%{commit}/stream-lib-%{commit}.tar.gz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(it.unimi.dsi:fastutil)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)

%description
A Java library for summarizing data in streams for which it is
infeasible to store all events. More specifically, there are classes
for estimating: cardinality (i.e. counting things); set membership;
top-k elements and frequency. One particularly useful feature is that
cardinality estimators with compatible configurations may be safely
merged.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -qn %{name}-%{commit}

%pom_remove_plugin org.apache.maven.plugins:maven-shade-plugin pom.xml
# Unneeded task
%pom_remove_plugin :maven-source-plugin
# Fix doclint issues
%pom_remove_plugin :maven-javadoc-plugin

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.mdown
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17442 |21mr|stringtemplate-3.2.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: A Java template engine
Name: stringtemplate
Version: 3.2.1
Release: 20
URL: http://www.stringtemplate.org/
Source0: http://www.stringtemplate.org/download/stringtemplate-%{version}.tar.gz
# Build jUnit tests + make the antlr2 generated code before preparing sources
Patch0: stringtemplate-3.1-build-junit.patch
License: BSD

BuildRequires: ant
BuildRequires: ant-antlr
BuildRequires: ant-junit
BuildRequires: javapackages-local

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
StringTemplate is a java template engine (with ports for 
C# and Python) for generating source code, web pages,
emails, or any other formatted text output. StringTemplate
is particularly good at multi-targeted code generators,
multiple site skins, and internationalization/localization.

%package        javadoc
Summary:        API documentation for %{name}
Requires:       java-javadoc

%description    javadoc
API documentation for %{name}.

%prep
%setup -q
%patch0

%build
rm -rf lib target
ant jar
ant javadocs -Dpackages= -Djavadocs.additionalparam="-Xdoclint:none"

%install
%mvn_artifact pom.xml build/%{name}.jar
%mvn_file : %{name}
%mvn_install -J docs/api/

%files -f .mfiles
%license LICENSE.txt
%doc README.txt

%files javadoc
%license LICENSE.txt
%{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17443 |21mr|stringtemplate4-4.0.8-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           stringtemplate4
Version:        4.0.8
Release:        9
Summary:        A Java template engine
License:        BSD
URL:            http://www.stringtemplate.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/antlr/stringtemplate4/archive/%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.antlr:antlr-runtime) >= 3.5.2
BuildRequires:  mvn(org.antlr:antlr3-maven-plugin) >= 3.5.2
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)


%description
StringTemplate is a java template engine (with ports for
C# and Python) for generating source code, web pages,
emails, or any other formatted text output. StringTemplate
is particularly good at multi-targeted code generators,
multiple site skins, and internationalization/localization.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-shade-plugin

# Bug, should be reported upstream
sed -i '/tmpdir =/s,;,+"/"&,' test/org/stringtemplate/v4/test/BaseTest.java
# Tests fail for unknown reason
sed -i /testUnknownNamedArg/s/@Test// test/org/stringtemplate/v4/test/TestGroups.java
sed -i /testMissingImportString/s/@Test// test/org/stringtemplate/v4/test/TestGroupSyntaxErrors.java
# Requires running X server
rm -r test/org/stringtemplate/v4/test/TestEarlyEvaluation.java

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.txt contributors.txt README.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17444 |21mr|string-template-maven-plugin-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           string-template-maven-plugin
Version:        1.1
Release:        1
Summary:        Execute StringTemplate files during a maven build

License:        MIT
URL:            http://kevinbirch.github.io/%{name}/
Group:          Development/Java
BuildArch:      noarch
Source0:        https://github.com/kevinbirch/%{name}/archive/%{name}-%{version}.tar.gz
# The license file was added to git after the last release
Source1:        https://raw.githubusercontent.com/kevinbirch/%{name}/master/LICENSE
# Update org.sonatype.aether to org.eclipse.aether
# https://github.com/kevinbirch/string-template-maven-plugin/pull/12
Patch0:         %{name}-aether.patch
# Tell javadoc about maven mojo tags
# https://github.com/kevinbirch/string-template-maven-plugin/pull/13
Patch1:         %{name}-javadoc.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.antlr:ST4)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.twdata.maven:mojo-executor-maven-plugin)
ExcludeArch:    %{ix86}

%description
This plugin allows you to execute StringTemplate template files during
your build.  The values for templates can come from static declarations
or from a Java class specified to be executed.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains %{summary}.

%prep
%autosetup -n %{name}-%{name}-%{version} -p1
cp -p %{SOURCE1} .

# Updated name
%pom_change_dep :stringtemplate :ST4

# We do not need the versions reports
%pom_remove_plugin :versions-maven-plugin

# We do not have the secret key for signing jars
%pom_remove_plugin :maven-gpg-plugin

# We do not create any soure JARs
%pom_remove_plugin :maven-source-plugin

# We use xmvn-javadoc instead of maven-javadoc-plugin
%pom_remove_plugin :maven-javadoc-plugin

# sonatype-oss-parent is deprecated in Fedora
%pom_remove_parent

%build
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17445 |21mr|strongswan-5.9.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%define Werror_cflags %%nil

%define	major	0
%define	libswan	%mklibname	%{name} %{major}

%bcond_without	nm

Summary:	IPSEC implementation
Name:		strongswan
Version:	5.9.12
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		https://www.strongswan.org/
Source0:	http://download.strongswan.org/%{name}-%{version}.tar.bz2
Source1:	tmpfiles-%{name}.conf
Patch0:		strongswan-5.6.0-uintptr_t.patch
# To fix openssl plugin failure at loading (rbz #10579)
Patch1:		strongswan-5.8.4-openssl-disable-fips.patch
Source100:	%{name}.rpmlintrc
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	gettext-devel
BuildRequires:	gmp-devel >= 4.1.4
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
BuildRequires:	tpm2-tss-devel
BuildRequires:	trousers-devel
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(sqlite3) >= 3.3.1
BuildRequires:	pkgconfig(systemd)
%if %{with nm}
BuildRequires:	pkgconfig(libnm)
%endif
Requires(post,preun,postun):	systemd
Requires:	%{libswan} = %{EVRD}

%description
FreeS/WAN is a free implementation of IPSEC & IKE for Linux. IPSEC is the
Internet Protocol Security and uses strong cryptography to provide both
authentication and encryption services. These services allow you to build
secure tunnels through untrusted networks. Everything passing through the
untrusted net is encrypted by the ipsec gateway machine and decrypted by the
gateway at the other end of the tunnel. The resulting tunnel is a virtual
private network or VPN.
This package contains the daemons and userland tools for setting up FreeS/WAN
on a freeswan enabled kernel.

%files
%doc COPYING NEWS README TODO
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/nm-%{name}-service.conf
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/ipsec.conf
%config(noreplace) %{_sysconfdir}/%{name}/ipsec.secrets
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%dir %{_sysconfdir}/%{name}/ipsec.d/
%dir %{_sysconfdir}/%{name}/ipsec.d/aacerts
%dir %{_sysconfdir}/%{name}/ipsec.d/acerts
%dir %{_sysconfdir}/%{name}/ipsec.d/certs
%dir %{_sysconfdir}/%{name}/ipsec.d/cacerts
%dir %{_sysconfdir}/%{name}/ipsec.d/crls
%dir %{_sysconfdir}/%{name}/ipsec.d/ocspcerts
%dir %{_sysconfdir}/%{name}/ipsec.d/private
%dir %{_sysconfdir}/%{name}/ipsec.d/reqs
%dir %{_sysconfdir}/%{name}/%{name}.d
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/aikgen.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/attest.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/charon.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/charon-logging.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/charon-systemd.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/imcv.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/pki.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/sec-updater.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/starter.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/swanctl.conf
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/tnc.conf
%dir %{_sysconfdir}/%{name}/%{name}.d/charon
#{_sysconfdir}/%%{name}/%%{name}.d/charon/*.conf
# We need to prevent overwriting of user's custom config
# but there are near 90 files here...
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.d/charon/*.conf
%dir %{_sysconfdir}/%{name}/swanctl
%config(noreplace) %{_sysconfdir}/%{name}/swanctl/swanctl.conf
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-starter.service
%{_sbindir}/charon-cmd
%{_sbindir}/charon-systemd
%{_sbindir}/sec-updater
%{_sbindir}/sw-collector
%{_sbindir}/%{name}
%{_sbindir}/swanctl
%{_bindir}/aikgen
%{_bindir}/pki
%{_bindir}/pt-tls-client
%{_bindir}/tpm_extendpcr
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/_imv_policy
%{_libexecdir}/%{name}/_updown
%{_libexecdir}/%{name}/charon
%{_libexecdir}/%{name}/duplicheck
%{_libexecdir}/%{name}/imv_policy_manager
#{_libexecdir}/%%{name}/pt-tls-client
%{_libexecdir}/%{name}/starter
%{_libexecdir}/%{name}/stroke
%{_libexecdir}/%{name}/xfrmi
%{_datadir}/%{name}/swidtag/*.swidtag
%{_datadir}/%{name}/templates/config/plugins/*.conf
%{_datadir}/%{name}/templates/config/%{name}.conf
%{_datadir}/%{name}/templates/config/%{name}.d/*.conf
%{_datadir}/%{name}/templates/database/imv/*.sql
%{_datadir}/%{name}/templates/database/sw-collector/*.sql
%{_mandir}/man1/%{name}*.1.*
%{_mandir}/man5/%{name}.conf.5.*
%{_mandir}/man5/%{name}_ipsec.conf.5.*
%{_mandir}/man5/%{name}_ipsec.secrets.5.*
%{_mandir}/man5/%{name}_swanctl.conf.5.*
%{_mandir}/man8/%{name}.8.*
%{_mandir}/man8/%{name}_charon-cmd.8.*
%{_mandir}/man8/%{name}_sec-updater.8.*
%{_mandir}/man8/%{name}_sw-collector.8.*
%{_mandir}/man8/%{name}_swanctl.8.*

%post
# FIXME: New releases changed the way of starting the daemon;
# the old way (using ipsec) is now in %%{name}-starter.service:
# use it until we are sure that swanctl config is OK.
#systemd_post %%{name}.service
%systemd_post %{name}-starter.service

%preun
#systemd_preun %%{name}.service
%systemd_preun %{name}-starter.service

%postun
#systemd_postun_with_restart %%{name}.service
%systemd_postun_with_restart %{name}-starter.service

#----------------------------------------------------------------------------

%package -n %{libswan}
Summary:	Libraries and plugins for Strongswan
Group:		System/Libraries

%description -n %{libswan}
FreeS/WAN is a free implementation of IPSEC & IKE for Linux. IPSEC is the
Internet Protocol Security and uses strong cryptography to provide both
authentication and encryption services.
This package contains the libraries needed from %{name}, including the
IMC/IMV dynamic libraries that can be used by any third party TNC
Client/Server implementation possessing a standard IF-IMC/IMV interface.

%files -n %{libswan}
%doc COPYING
%{_libdir}/%{name}/libcharon.so.%{major}*
%{_libdir}/%{name}/libimcv.so.%{major}*
%{_libdir}/%{name}/libipsec.so.%{major}*
%{_libdir}/%{name}/libpttls.so.%{major}*
%{_libdir}/%{name}/libradius.so.%{major}*
%{_libdir}/%{name}/lib%{name}.so.%{major}*
%{_libdir}/%{name}/libsimaka.so.%{major}*
%{_libdir}/%{name}/libtls.so.%{major}*
%{_libdir}/%{name}/libtpmtss.so.%{major}*
%{_libdir}/%{name}/libtnccs.so.%{major}*
%{_libdir}/%{name}/libvici.so.%{major}*
%dir %{_libdir}/%{name}/imcvs
%{_libdir}/%{name}/plugins/libstrongswan-gcm.so
%{_libdir}/%{name}/plugins/libstrongswan-kdf.so
%{_libdir}/%{name}/imcvs/imc-attestation.so
%{_libdir}/%{name}/imcvs/imc-hcd.so
%{_libdir}/%{name}/imcvs/imc-os.so
%{_libdir}/%{name}/imcvs/imc-scanner.so
%{_libdir}/%{name}/imcvs/imc-swima.so
%{_libdir}/%{name}/imcvs/imc-test.so
%{_libdir}/%{name}/imcvs/imv-attestation.so
%{_libdir}/%{name}/imcvs/imv-hcd.so
%{_libdir}/%{name}/imcvs/imv-os.so
%{_libdir}/%{name}/imcvs/imv-scanner.so
%{_libdir}/%{name}/imcvs/imv-swima.so
%{_libdir}/%{name}/imcvs/imv-test.so
%dir %{_libdir}/%{name}/plugins
%{_libdir}/%{name}/plugins/lib%{name}-acert.so
%{_libdir}/%{name}/plugins/lib%{name}-aes.so
%{_libdir}/%{name}/plugins/lib%{name}-attr.so
%{_libdir}/%{name}/plugins/lib%{name}-chapoly.so
%{_libdir}/%{name}/plugins/lib%{name}-cmac.so
%{_libdir}/%{name}/plugins/lib%{name}-constraints.so
%{_libdir}/%{name}/plugins/lib%{name}-counters.so
%{_libdir}/%{name}/plugins/lib%{name}-curl.so
%{_libdir}/%{name}/plugins/lib%{name}-curve25519.so
%{_libdir}/%{name}/plugins/lib%{name}-des.so
%{_libdir}/%{name}/plugins/lib%{name}-dhcp.so
%{_libdir}/%{name}/plugins/lib%{name}-dnskey.so
%{_libdir}/%{name}/plugins/lib%{name}-drbg.so
%{_libdir}/%{name}/plugins/lib%{name}-duplicheck.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-aka.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-aka-3gpp.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-aka-3gpp2.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-dynamic.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-md5.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-gtc.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-identity.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-mschapv2.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-peap.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-radius.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-sim.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-sim-file.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-tls.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-tnc.so
%{_libdir}/%{name}/plugins/lib%{name}-eap-ttls.so
%{_libdir}/%{name}/plugins/lib%{name}-ext-auth.so
%{_libdir}/%{name}/plugins/lib%{name}-farp.so
%{_libdir}/%{name}/plugins/lib%{name}-fips-prf.so
%{_libdir}/%{name}/plugins/lib%{name}-gmp.so
%{_libdir}/%{name}/plugins/lib%{name}-ha.so
%{_libdir}/%{name}/plugins/lib%{name}-hmac.so
%{_libdir}/%{name}/plugins/lib%{name}-ipseckey.so
%{_libdir}/%{name}/plugins/lib%{name}-kernel-libipsec.so
%{_libdir}/%{name}/plugins/lib%{name}-kernel-netlink.so
%{_libdir}/%{name}/plugins/lib%{name}-ldap.so
%{_libdir}/%{name}/plugins/lib%{name}-led.so
%{_libdir}/%{name}/plugins/lib%{name}-md4.so
%{_libdir}/%{name}/plugins/lib%{name}-md5.so
%{_libdir}/%{name}/plugins/lib%{name}-mgf1.so
%{_libdir}/%{name}/plugins/lib%{name}-nonce.so
%{_libdir}/%{name}/plugins/lib%{name}-openssl.so
%{_libdir}/%{name}/plugins/lib%{name}-pem.so
%{_libdir}/%{name}/plugins/lib%{name}-pkcs1.so
%{_libdir}/%{name}/plugins/lib%{name}-pkcs7.so
%{_libdir}/%{name}/plugins/lib%{name}-pkcs8.so
%{_libdir}/%{name}/plugins/lib%{name}-pkcs11.so
%{_libdir}/%{name}/plugins/lib%{name}-pkcs12.so
%{_libdir}/%{name}/plugins/lib%{name}-pgp.so
%{_libdir}/%{name}/plugins/lib%{name}-pubkey.so
%{_libdir}/%{name}/plugins/lib%{name}-rc2.so
%{_libdir}/%{name}/plugins/lib%{name}-sshkey.so
%{_libdir}/%{name}/plugins/lib%{name}-random.so
%{_libdir}/%{name}/plugins/lib%{name}-resolve.so
%{_libdir}/%{name}/plugins/lib%{name}-revocation.so
%{_libdir}/%{name}/plugins/lib%{name}-sha1.so
%{_libdir}/%{name}/plugins/lib%{name}-sha2.so
%{_libdir}/%{name}/plugins/lib%{name}-sha3.so
%{_libdir}/%{name}/plugins/lib%{name}-socket-default.so
%{_libdir}/%{name}/plugins/lib%{name}-soup.so
%{_libdir}/%{name}/plugins/lib%{name}-sqlite.so
%{_libdir}/%{name}/plugins/lib%{name}-stroke.so
%{_libdir}/%{name}/plugins/lib%{name}-systime-fix.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-ifmap.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-imc.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-imv.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-pdp.so
%{_libdir}/%{name}/plugins/lib%{name}-tnc-tnccs.so
%{_libdir}/%{name}/plugins/lib%{name}-tnccs-20.so
%{_libdir}/%{name}/plugins/lib%{name}-tnccs-11.so
%{_libdir}/%{name}/plugins/lib%{name}-tnccs-dynamic.so
%{_libdir}/%{name}/plugins/lib%{name}-tpm.so
%{_libdir}/%{name}/plugins/lib%{name}-unity.so
%{_libdir}/%{name}/plugins/lib%{name}-updown.so
%{_libdir}/%{name}/plugins/lib%{name}-vici.so
%{_libdir}/%{name}/plugins/lib%{name}-x509.so
%{_libdir}/%{name}/plugins/lib%{name}-xauth-eap.so
%{_libdir}/%{name}/plugins/lib%{name}-xauth-generic.so
%{_libdir}/%{name}/plugins/lib%{name}-xauth-noauth.so
%{_libdir}/%{name}/plugins/lib%{name}-xauth-pam.so
%{_libdir}/%{name}/plugins/lib%{name}-xcbc.so

#----------------------------------------------------------------------------

%if %{with nm}
%package	charon-nm
Summary:	NetworkManager plugin for Strongswan
Group:		System/Servers

%description charon-nm
NetworkManager plugin integrates a subset of Strongswan capabilities
to NetworkManager.

%files charon-nm
%doc COPYING
%{_libexecdir}/%{name}/charon-nm
%endif

#----------------------------------------------------------------------------

%package tnc-imcvs
Summary:	Trusted network connect (TNC)'s IMC/IMV functionality
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires:	%{libswan} = %{EVRD}

%description tnc-imcvs
This package provides Trusted Network Connect's (TNC) IMC and IMV
functionality. Specifically it includes PTS based IMC/IMV for TPM based
remote attestation and scanner and test IMCs and IMVs.

%files tnc-imcvs
%doc COPYING
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/attest

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1


%build
libtoolize --install --copy --force --automake
aclocal -I m4
autoconf
autoheader
automake --add-missing --copy

%serverbuild
# TODO: Command-line too long: consider using --enable-all
#  by default and selectively disabling unwanted options, if any
%configure \
	--disable-static \
	--with-ipsec-script=%{name} \
	--sysconfdir=%{_sysconfdir}/%{name} \
	--with-ipsecdir=%{_libexecdir}/%{name} \
	--with-ipseclibdir=%{_libdir}/%{name} \
	--with-piddir="/run/%{name}" \
	--with-fips-mode=2 \
	--enable-acert \
	--enable-aikgen \
	--enable-chapoly \
	--enable-cmd \
	--enable-curl \
	--enable-dhcp \
	--enable-duplicheck \
	--enable-eap-aka \
	--enable-eap-aka-3gpp \
	--enable-eap-aka-3gpp2 \
	--enable-eap-dynamic \
	--enable-eap-gtc \
	--enable-eap-identity \
	--enable-eap-md5 \
	--enable-eap-mschapv2 \
	--enable-eap-peap \
	--enable-eap-radius \
	--enable-eap-sim \
	--enable-eap-sim-file \
	--enable-eap-tls \
	--enable-eap-ttls \
	--enable-eap-tnc \
	--enable-ext-auth \
	--enable-farp \
	--enable-ha \
	--enable-imc-attestation \
	--enable-imc-hcd \
	--enable-imc-os \
	--enable-imc-scanner \
	--enable-imc-swima \
	--enable-imc-test \
	--enable-imv-attestation \
	--enable-imv-hcd \
	--enable-imv-os \
	--enable-imv-scanner  \
	--enable-imv-swima \
	--enable-imv-test \
	--enable-ipseckey \
	--enable-kernel-libipsec \
	--enable-ldap \
	--enable-led \
	--enable-md4 \
%if %{with nm}
	--enable-nm \
%endif
	--enable-openssl \
	--enable-pkcs11 \
	--enable-sha3 \
	--enable-soup \
	--enable-sqlite \
	--enable-swanctl \
	--enable-systemd \
	--enable-systime-fix \
	--enable-tnc-ifmap \
	--enable-tnc-imc \
	--enable-tnc-imv \
	--enable-tnc-pdp \
	--enable-tnccs-11 \
	--enable-tnccs-20 \
	--enable-tnccs-dynamic \
	--enable-tpm \
	--enable-tss-trousers \
	--disable-tss-tss2 \
	--enable-unity \
	--enable-vici \
	--enable-xauth-eap \
	--enable-xauth-noauth \
	--enable-xauth-pam

%make


%install
%makeinstall_std

# Prefix man pages
for i in %{buildroot}%{_mandir}/*/*; do
	if echo "$i" | grep -vq '/%{name}[^\/]*$'; then
		mv "$i" "`echo "$i" | sed -re 's|/([^/]+)$|/%{name}_\1|'`"
	fi
done

# Delete unwanted library files: no -devel package
rm %{buildroot}%{_libdir}/%{name}/*.so
find %{buildroot} -type f -name '*.la' -delete

# Fix config permissions
chmod 644 %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf

# Protect configuration from ordinary user's eyes
chmod 700 %{buildroot}%{_sysconfdir}/%{name}

# Create ipsec.d directory tree.
install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/ipsec.d
for i in aacerts acerts certs cacerts crls ocspcerts private reqs; do
	install -d -m 700 %{buildroot}%{_sysconfdir}/%{name}/ipsec.d/${i}
done

# Install tmpfiles support
install -D -m 0644 %{SOURCE1} %{buildroot}/%{_tmpfilesdir}/%{name}.conf

# Put a config file in the right spot
mkdir -p %{buildroot}%{_sysconfdir}/dbus-1/system.d/
cp %{buildroot}%{_datadir}/dbus-1/system.d/nm-%{name}-service.conf %{buildroot}%{_sysconfdir}/dbus-1/system.d/
rm -rf %{buildroot}%{_datadir}/dbus-1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17446 |21mr|struts-1.3.10-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          struts
Version:       1.3.10
Release:       24
Summary:       Web application framework
License:       ASL 2.0
URL:           http://struts.apache.org/
# wget http://www.apache.org/dist/struts/source/struts-1.3.10-src.zip
# remove non free resources
# unzip -qq struts-1.3.10-src.zip
# rm -r struts-1.3.10/src/core/src/main/resources/org/apache/struts/resources/web-app_2_3.dtd
# tar czf struts-1.3.10-clean-src.tar.gz struts-1.3.10
Source0:       %{name}-%{version}-clean-src.tar.gz

# fix build for junit servlet-3.0-api
Patch1:        struts-1.3.10-fix-build.patch
# Thanks to Arun Babu Neelicattu aneelica@redhat.com
# and Brandon.Vincent@asu.edu
Patch2:        struts-1.3.10-CVE-2014-0114.patch
Patch3:        struts-1.3.10-CVE-2015-0899.patch
Patch4:        struts-1.3.10-CVE-2016-1181-CVE-2016-1182.patch

BuildRequires: maven-local
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-chain:commons-chain)
BuildRequires: mvn(commons-digester:commons-digester)
BuildRequires: mvn(commons-fileupload:commons-fileupload)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(commons-validator:commons-validator)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.bsf:bsf)
BuildRequires: mvn(org.apache.taglibs:taglibs-standard-jstlel)
BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires: mvn(oro:oro)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Obsoletes:     %{name}-manual < %{version}
Obsoletes:     %{name}-webapps-tomcat5 < %{version}

%description
Welcome to the Struts Framework! The goal of this project is to provide
an open source framework useful in building web applications with Java
Servlet and JavaServer Pages (JSP) technology. Struts encourages
application architectures based on the Model-View-Controller (MVC)
design paradigm, colloquially known as Model 2 in discussions on various
servlet and JSP related mailing lists.
Struts includes the following primary areas of functionality:
A controller servlet that dispatches requests to appropriate Action
classes provided by the application developer.
JSP custom tag libraries, and associated support in the controller
servlet, that assists developers in creating interactive form-based
applications.
Utility classes to support XML parsing, automatic population of
JavaBeans properties based on the Java reflection APIs, and
internationalization of prompts and messages.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
find -name "*.jar" -delete
find -name "*.class" -delete

%patch1 -p1
%patch2 -p0
%patch3 -p1
%patch4 -p1

sed -i 's/\r//' LICENSE.txt NOTICE.txt

# fix non ASCII chars
for s in src/tiles/src/main/java/org/apache/struts/tiles/ComponentDefinition.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

cd src

%pom_remove_parent

%pom_change_dep -r :servlet-api org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec:1.0.0.Beta1
%pom_change_dep -r :jstl org.apache.taglibs:taglibs-standard-jstlel:1.2.3
%pom_remove_dep -r taglibs:standard

%pom_change_dep -r :jsp-api org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec:1.0.0.Beta1
%pom_change_dep -r :myfaces-jsf-api org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec:2.2.0
%pom_change_dep -r :bsf org.apache.bsf:

# package javax.servlet.jsp.el does not exist
%pom_add_dep org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec:1.0.0.Beta1 core

%mvn_file :%{name}-core %{name}/core
%mvn_file :%{name}-el %{name}/el
%mvn_file :%{name}-extras %{name}/extras
%mvn_file :%{name}-faces %{name}/faces
%mvn_file :%{name}-mailreader-dao %{name}/mailreader-dao
%mvn_file :%{name}-scripting %{name}/scripting
%mvn_file :%{name}-taglib %{name}/taglib
%mvn_file :%{name}-tiles %{name}/tiles

%build

cd src
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install

(
cd src
%mvn_install
)

%files -f src/.mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f src/.mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17447 |21mr|stunnel-5.56-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#rebuild configure fails, not enable it
%define _disable_rebuild_configure 1

Summary:	Program that wraps normal socket connections with SSL/TLS
Name:		stunnel
Version:	5.56
Release:	2
License:	GPLv2+
Group:		System/Servers
Url:		http://www.stunnel.org/
Source0:	https://www.stunnel.org/downloads/%{name}-%{version}.tar.gz
Source2:	stunnel.service
Source3:	stunnel.tmpfiles
#patch for disable automake in tools dir, automake rebuild configure
#(_disable_rebuild_configure not help) and build fail.
Patch0:		stunnel-autoconf.patch
BuildRequires:	util-linux
BuildRequires:	pkgconfig(openssl)
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig
BuildRequires:	libtool
BuildRequires:	pkgconfig(systemd)
Requires:	tcp_wrappers
Conflicts:	%{mklibname %{name} 0} < 5.00
Obsoletes:	%{mklibname %{name} 0} < 5.00
Obsoletes:	%{mklibname %{name} -d} < 5.00
Obsoletes:	%{mklibname %{name} -d -s} < 5.00

%description
The stunnel program is designed to work as SSL encryption wrapper between
remote clients and local (inetd-startable) or remote servers. The concept is
that having non-SSL aware daemons running on your system you can easily set
them up to communicate with clients over secure SSL channels.

stunnel can be used to add SSL functionality to commonly used inetd daemons
like POP-2, POP-3, and IMAP servers, to standalone daemons like NNTP, SMTP
and HTTP, and in tunneling PPP over network sockets without changes to the
source code.

%files
%doc doc-to-install/*
%{_bindir}/stunnel
%{_bindir}/stunnel3
%{_mandir}/man8/stunnel.8.*
%lang(pl) %{_mandir}/pl/man8/stunnel.8*
%config(noreplace) %{_sysconfdir}/%{name}/stunnel.conf
%{_unitdir}/stunnel.service
%{_prefix}/lib/tmpfiles.d/stunnel.conf
%{_libdir}/libstunnel.so

%post
%tmpfiles_create stunnel.conf

#----------------------------------------------------------------------------


%prep
%autosetup -p1

# XXX don't install /var/lib/stunnel
perl -ni -e '/INSTALL.*-m 1770 -g nogroup.*stunnel$/ or print' tools/Makefile.am

%build

%configure \
	--with-threads=fork \
	--with-ssl=%{_prefix} \
	--disable-static \
	--enable-shared
#make string from OMV spec
%make LDADD="-pie -Wl,-z,defs,-z,relro,-z,now"

%install
# (oe) hack... don't generate the pem file, and stunnel.conf
install -d %{buildroot}%{_sysconfdir}/%{name}
touch %{buildroot}%{_sysconfdir}/%{name}/stunnel.pem

%makeinstall docdir=`pwd`/doc-to-install pkglibdir=%{buildroot}%{_libdir}

install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/stunnel.service
install -D -m 644 %{SOURCE3} %{buildroot}%{_prefix}/lib/tmpfiles.d/stunnel.conf

install -d %{buildroot}%{_var}/openssl/certs/trusted
# install -d -m755 %{buildroot}/usr/var/lib/%{name}

mv %{buildroot}%{_sysconfdir}/%{name}/stunnel.conf-sample \
    %{buildroot}%{_sysconfdir}/%{name}/stunnel.conf

perl -pi \
    -e 's|chroot = .*|chroot = /run/stunnel|;' \
    -e 's|cert = .*|cert = /etc/pki/tls/certs/stunnel.pem|;' \
    -e 's|;key = .*|key = /etc/pki/tls/private/stunnel.pem|;' \
    -e 's|;pid = .*|pid = /run/stunnel/stunnel.pid|;' \
    -e 's|options = NO_SSLv2|options = NO_SSLv2\noptions = NO_SSLv3|;' \
    %{buildroot}%{_sysconfdir}/%{name}/stunnel.conf

# Move the translated man pages to the right subdirectories, and strip off the
# language suffixes.
for lang in pl ; do
        mkdir -p %{buildroot}%{_mandir}/${lang}/man8
        mv %{buildroot}%{_mandir}/man8/*.${lang}.8* %{buildroot}%{_mandir}/${lang}/man8/
        rename ".${lang}" "" %{buildroot}%{_mandir}/${lang}/man8/*
done

# cleanup
rm -f ./doc-to-install/INSTALL.W32
rm -f %{buildroot}%{_sysconfdir}/%{name}/stunnel.pem

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17448 |21mr|stunnel-5.61-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#rebuild configure fails, not enable it
%define _disable_rebuild_configure 1

Summary:	Program that wraps normal socket connections with SSL/TLS
Name:		stunnel
Version:	5.61
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://www.stunnel.org/
Source0:	https://www.stunnel.org/downloads/%{name}-%{version}.tar.gz
Source2:	stunnel.service
Source3:	stunnel.tmpfiles
#patch for disable automake in tools dir, automake rebuild configure
#(_disable_rebuild_configure not help) and build fail.
Patch0:		stunnel-autoconf.patch
BuildRequires:	util-linux
BuildRequires:	pkgconfig(openssl)
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig
BuildRequires:	libtool
BuildRequires:	pkgconfig(systemd)
Requires:	tcp_wrappers
Conflicts:	%{mklibname %{name} 0} < 5.00
Obsoletes:	%{mklibname %{name} 0} < 5.00
Obsoletes:	%{mklibname %{name} -d} < 5.00
Obsoletes:	%{mklibname %{name} -d -s} < 5.00

%description
The stunnel program is designed to work as SSL encryption wrapper between
remote clients and local (inetd-startable) or remote servers. The concept is
that having non-SSL aware daemons running on your system you can easily set
them up to communicate with clients over secure SSL channels.

stunnel can be used to add SSL functionality to commonly used inetd daemons
like POP-2, POP-3, and IMAP servers, to standalone daemons like NNTP, SMTP
and HTTP, and in tunneling PPP over network sockets without changes to the
source code.

%files
%doc doc-to-install/*
%{_bindir}/stunnel
%{_bindir}/stunnel3
%{_mandir}/man8/stunnel.8.*
%lang(pl) %{_mandir}/pl/man8/stunnel.8*
%config(noreplace) %{_sysconfdir}/%{name}/stunnel.conf
%{_unitdir}/stunnel.service
%{_prefix}/lib/tmpfiles.d/stunnel.conf
%{_libdir}/libstunnel.so

%post
%tmpfiles_create stunnel.conf

#----------------------------------------------------------------------------


%prep
%autosetup -p1

# XXX don't install /var/lib/stunnel
perl -ni -e '/INSTALL.*-m 1770 -g nogroup.*stunnel$/ or print' tools/Makefile.am

%build

%configure \
	--with-threads=fork \
	--with-ssl=%{_prefix} \
	--disable-static \
	--enable-shared
#make string from OMV spec
%make LDADD="-pie -Wl,-z,defs,-z,relro,-z,now"

%install
# (oe) hack... don't generate the pem file, and stunnel.conf
install -d %{buildroot}%{_sysconfdir}/%{name}
touch %{buildroot}%{_sysconfdir}/%{name}/stunnel.pem

%makeinstall docdir=`pwd`/doc-to-install pkglibdir=%{buildroot}%{_libdir}

install -D -m 644 %{SOURCE2} %{buildroot}%{_unitdir}/stunnel.service
install -D -m 644 %{SOURCE3} %{buildroot}%{_prefix}/lib/tmpfiles.d/stunnel.conf

install -d %{buildroot}%{_var}/openssl/certs/trusted
# install -d -m755 %{buildroot}/usr/var/lib/%{name}

mv %{buildroot}%{_sysconfdir}/%{name}/stunnel.conf-sample \
    %{buildroot}%{_sysconfdir}/%{name}/stunnel.conf

perl -pi \
    -e 's|chroot = .*|chroot = /run/stunnel|;' \
    -e 's|cert = .*|cert = /etc/pki/tls/certs/stunnel.pem|;' \
    -e 's|;key = .*|key = /etc/pki/tls/private/stunnel.pem|;' \
    -e 's|;pid = .*|pid = /run/stunnel/stunnel.pid|;' \
    -e 's|options = NO_SSLv2|options = NO_SSLv2\noptions = NO_SSLv3|;' \
    %{buildroot}%{_sysconfdir}/%{name}/stunnel.conf

# Move the translated man pages to the right subdirectories, and strip off the
# language suffixes.
for lang in pl ; do
        mkdir -p %{buildroot}%{_mandir}/${lang}/man8
        mv %{buildroot}%{_mandir}/man8/*.${lang}.8* %{buildroot}%{_mandir}/${lang}/man8/
        rename ".${lang}" "" %{buildroot}%{_mandir}/${lang}/man8/*
done

# cleanup
rm -f ./doc-to-install/INSTALL.W32
rm -f %{buildroot}%{_sysconfdir}/%{name}/stunnel.pem

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17449 |21mr|stylewriter-0.9.9.1-0.git20170426.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define date 20170426
%define git  66bb9eb

Summary:	Non-MacOS StyleWriter driver
Name:		stylewriter
Version:	0.9.9.1
Release:	%mkrel -c %{?git:git%{date}} 2
License:	GPL
Group:		System/Printing
URL:		https://github.com/Godzil/lpstyl/
Source0:	https://github.com/Godzil/lpstyl/archive/master/%{name}-%{version}%{?git:-%{git}}.tar.gz
BuildRequires:	cmake

%description
This is a driver for certain types of Apple StyleWriter printers. 

%prep
%setup -qn lpstyl-master

%build
%cmake
%make_build

%install
install -d %{buildroot}%{_bindir}
install -m0755 build/lpstyl %{buildroot}%{_bindir}
#install -m0755 lpstyl-atalk %{buildroot}%{_bindir}

%files
%defattr(0644,root,root,0755)
%doc scripts README* printcap* styl.ppd
%attr(0755,root,root) %{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17450 |21mr|subethasmtp-3.1.7-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash db8a995386c9808c893384023eee78e087ad9ad7
Name:          subethasmtp
Version:       3.1.7
Release:       15
Summary:       A SMTP mail server for Java
# BSD: src/main/java/org/subethamail/smtp/util/Base64.java
License:       ASL 2.0 and BSD
# http://code.google.com/p/subethasmtp/
# https://github.com/vivosys/subethasmtp
URL:           https://github.com/voodoodyne/subethasmtp
Source0:       https://github.com/voodoodyne/subethasmtp/archive/%{githash}/%{name}-%{githash}.tar.gz

BuildRequires: java-javadoc
BuildRequires: maven-local
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(javax.mail:mail)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-simple)
%if 0
BuildRequires: mvn(com.googlecode.jmockit:jmockit) >= 0.999.11
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
SubEtha SMTP is an easy-to-use server-side SMTP library for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-gpg-plugin

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration" "
<excludes>
  <exclude>org/subethamail/smtp/test/**</exclude>
</excludes>"

%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']" "
<configuration>
  <nodeprecated>false</nodeprecated>
  <use>false</use>
  <author>true</author>
  <version>true</version>
  <detectJavaApiLink>false</detectJavaApiLink>
  <offlineLinks>
    <offlineLink>
      <url>http://download.oracle.com/javase/6/docs/api/</url>
      <location>%{_javadocdir}/java</location>
    </offlineLink>
  </offlineLinks>
  <excludePackageNames>org.subethamail.smtp.test.*:**Test**</excludePackageNames>
</configuration>"

# use system jvm apis
%pom_remove_dep javax.activation:activation

# unavailable test dep
%pom_remove_dep :jmockit
rm -r src/test/java/org/subethamail/smtp/MessageHandlerTest.java
# this test fails ComparisonFailure
rm -r src/test/java/org/subethamail/smtp/TimeoutTest.java \
 src/test/java/org/subethamail/smtp/WiserFailuresTest.java \
 src/test/java/org/subethamail/smtp/ReceivedHeaderStreamTest.java

sed -i.java8 "s|MDC.setContextMap(parentLoggingMdcContext);|MDC.setContextMap((Map<String, String>)parentLoggingMdcContext);|" src/main/java/org/subethamail/smtp/server/Session.java

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.html
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17451 |21mr|subunit-1.4.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without python3

%define major 0
%define libname %mklibname subunit %{major}
%define libcppname %mklibname subcppunit %{major}
%define devname %mklibname -d subunit
%define devcppname %mklibname -d subcppunit

Name:           subunit
Version:        1.4.0
Release:        3%{?dist}
Summary:        C bindings for subunit
Group:		Development/Python

%global majver  %(cut -d. -f-2 <<< %{version})

License:        ASL 2.0 or BSD
URL:            https://launchpad.net/%{name}
Source0:        https://launchpad.net/%{name}/trunk/%{version}/+download/%{name}-%{version}.tar.gz

BuildRequires:  gnupg2
BuildRequires:  libtool
BuildRequires:  perl-generators
BuildRequires:  perl(ExtUtils::MakeMaker)
BuildRequires:  pkgconfig
BuildRequires:  pkgconfig(check)
BuildRequires:  pkgconfig(cppunit)

%if %{with python3}
BuildRequires:  python3-devel
BuildRequires:  python3dist(docutils)
BuildRequires:  python3dist(extras)
BuildRequires:  python3dist(fixtures)
BuildRequires:  python3dist(hypothesis)
BuildRequires:  python3dist(setuptools)
BuildRequires:  python3dist(testscenarios)
BuildRequires:  python3dist(testtools) >= 1.8.0
%endif

%description
Subunit C bindings.  See the python-subunit package for test processing
functionality.

%package -n	%{devname}
Summary:        Header files for developing C applications that use subunit
Requires:       %{libname} = %{EVRD}

%description -n %{devname}
Header files and libraries for developing C applications that use subunit.

%package -n	%{libname}
Summary:        Header files for developing C applications that use subunit

%description -n %{libname}
subunit libs

%package -n	%{libcppname}
Summary:        Subunit integration into cppunit
Requires:       %{libname} = %{EVRD}

%description -n	%{libcppname}
Subunit integration into cppunit.

%package -n	%{devcppname}
Summary:        Header files for applications that use cppunit and subunit
Requires:       %{libname} = %{EVRD}
Requires:       %{libcppname} = %{EVRD}
Requires:       %{devname} = %{EVRD}

%description -n	%{devcppname}
Header files and libraries for developing applications that use cppunit
and subunit.

%package perl
Summary:        Perl bindings for subunit
BuildArch:      noarch

%description perl
Subunit perl bindings.  See the python-subunit package for test
processing functionality.

%package shell
Summary:        Shell bindings for subunit
BuildArch:      noarch

%description shell
Subunit shell bindings.  See the python-subunit package for test
processing functionality.

%if %{with python3}
%package -n python3-%{name}
Summary:        Streaming protocol for test results
BuildArch:      noarch
Provides:       bundled(python3-iso8601) = 0.1.4

%description -n python3-%{name}
Subunit is a streaming protocol for test results.  The protocol is a
binary encoding that is easily generated and parsed.  By design all the
components of the protocol conceptually fit into the xUnit TestCase ->
TestResult interaction.

Subunit comes with command line filters to process a subunit stream and
language bindings for python, C, C++ and shell.  Bindings are easy to
write for other languages.

A number of useful things can be done easily with subunit:
- Test aggregation: Tests run separately can be combined and then
  reported/displayed together.  For instance, tests from different
  languages can be shown as a seamless whole.
- Test archiving: A test run may be recorded and replayed later.
- Test isolation: Tests that may crash or otherwise interact badly with
  each other can be run separately and then aggregated, rather than
  interfering with each other.
- Grid testing: subunit can act as the necessary serialization and
  deserialization to get test runs on distributed machines to be
  reported in real time.

%package -n python3-%{name}-test
Summary:        Test code for the python 3 subunit bindings
BuildArch:      noarch
Requires:       python3-%{name} = %{EVRD}
Requires:       %{name}-filters = %{EVRD}

%description -n python3-%{name}-test
%{summary}.
%endif

%package filters
Summary:        Command line filters for processing subunit streams
BuildArch:      noarch
%if %{with python3}
Requires:       python3-%{name} = %{EVRD}
Requires:       python3-gobject
Requires:       libnotify >= 0.7.7
Requires:       python3dist(junitxml)
%endif

%description filters
Command line filters for processing subunit streams.

%package static
Summary:        Static C library for subunit
Requires:       %{devname} = %{EVRD}

%description static
Subunit C bindings in a static library, for building statically linked
test cases.


%prep
%autosetup -p1

fixtimestamp() {
  touch -r $1.orig $1
  rm $1.orig
}

# Fix underlinked library
sed "/^tests_LDADD/ilibcppunit_subunit_la_LIBADD = -lcppunit libsubunit.la\n" \
    -i Makefile.am

# Depend on versioned python
sed -i.orig 's,%{_bindir}/python,&2,' python/subunit/run.py
fixtimestamp python/subunit/run.py

# Do not use env
for fil in $(grep -Frl "%{_bindir}/env python"); do
  sed -i.orig 's,%{_bindir}/env python,%{_bindir}/python2,' $fil
  fixtimestamp $fil
done

# Generate the configure script
autoreconf -fi

%if %{with python3}
# Prepare to build for python 3
cp -a ../%{name}-%{version} ../python3
mv ../python3 .
pushd python3
for fil in $(grep -Frl "%{_bindir}/python2"); do
  sed -i.orig 's,\(%{_bindir}/python\)2,\13,' $fil
  fixtimestamp $fil
done
popd
%endif

%build
export INSTALLDIRS=perl

# Build for python3
%if %{with python3}
pushd python3
export PYTHON=%{_bindir}/python3
%configure --enable-shared --enable-static

# Get rid of undesirable hardcoded rpaths; workaround libtool reordering
# -Wl,--as-needed after all the libraries.
sed -e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
    -e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
    -e 's|CC=.g..|& -Wl,--as-needed|' \
    -i libtool

%make_build
%py3_build
popd
%endif

%install
# Install for python 2 first so that the python 3 install overwrites files
%if %{with python3}
pushd python3
%py3_install
chmod 0755 %{buildroot}%{python3_sitelib}/%{name}/run.py
chmod 0755 %{buildroot}%{python3_sitelib}/%{name}/tests/sample-script.py
chmod 0755 %{buildroot}%{python3_sitelib}/%{name}/tests/sample-two-script.py

# Patch the test code to look for filters in _bindir
sed -i "s|root, 'filters'|'/usr', 'bin'|" \
  %{buildroot}%{python3_sitelib}/%{name}/tests/test_subunit_filter.py

# We set pkgpython_PYTHON for efficiency to disable automake python compilation
%make_install pkgpython_PYTHON='' INSTALL="%{_bindir}/install -p"
popd
%endif

# Install the shell interface
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
cp -p shell/share/%{name}.sh %{buildroot}%{_sysconfdir}/profile.d

# Remove unwanted libtool files
rm -f %{buildroot}%{_libdir}/*.la

# Fix perl installation
mkdir -p %{buildroot}%{perl_vendorlib}
mv %{buildroot}%{perl_privlib}/Subunit* %{buildroot}%{perl_vendorlib}
rm -fr %{buildroot}%{perl_archlib}

# Fix permissions
chmod 0755 %{buildroot}%{_bindir}/subunit-diff
%if %{with python3}
chmod 0755 %{buildroot}%{python3_sitelib}/%{name}/tests/sample-script.py
chmod 0755 %{buildroot}%{python3_sitelib}/%{name}/tests/sample-two-script.py
%endif

# Fix timestamps
touch -r c/include/%{name}/child.h %{buildroot}%{_includedir}/%{name}/child.h
touch -r c++/SubunitTestProgressListener.h \
      %{buildroot}%{_includedir}/%{name}/SubunitTestProgressListener.h
touch -r perl/subunit-diff %{buildroot}%{_bindir}/subunit-diff
for fil in filters/*; do
  touch -r $fil %{buildroot}%{_bindir}/$(basename $fil)
done

%check
%if %{with python3} && 0%{?!disable_tests}
# Run the tests for python3
pushd python3
export LD_LIBRARY_PATH=$PWD/.libs
export PYTHON=%{__python3}
make check
# Make sure subunit.iso8601 is importable from buildroot
PYTHONPATH=%{buildroot}%{python3_sitelib} %{__python3} -c "import subunit.iso8601"
popd
%endif

%files -n %{libname}
%doc NEWS README.rst
%license Apache-2.0 BSD COPYING
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{devname}
%doc c/README
%dir %{_includedir}/%{name}/
%{_includedir}/%{name}/child.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc

%files -n %{libcppname}
%{_libdir}/libcppunit_%{name}.so.%{major}*

%files -n %{devcppname}
%doc c++/README
%{_includedir}/%{name}/SubunitTestProgressListener.h
%{_libdir}/libcppunit_%{name}.so
%{_libdir}/pkgconfig/libcppunit_%{name}.pc

%files perl
%license Apache-2.0 BSD COPYING
%{_bindir}/%{name}-diff
%{perl_vendorlib}/*

%files shell
%doc shell/README
%license Apache-2.0 BSD COPYING
%config(noreplace) %{_sysconfdir}/profile.d/%{name}.sh

%if %{with python3}
%files -n python3-%{name}
%license Apache-2.0 BSD COPYING
%{python3_sitelib}/%{name}/
%{python3_sitelib}/python_%{name}-%{version}-*.egg-info
%exclude %{python3_sitelib}/%{name}/tests/

%files -n python3-%{name}-test
%{python3_sitelib}/%{name}/tests/
%endif

%files static
%{_libdir}/*.a

%files filters
%{_bindir}/*
%exclude %{_bindir}/%{name}-diff

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17452 |21mr|subversion-1.14.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1
%define major 0
%define libname %mklibname svn %{api} %{major}
%define devname %mklibname svn -d

%bcond_without python
%bcond_without perl
%bcond_with ruby
%bcond_with gnome_keyring
%bcond_with kwallet
%bcond_with test
%bcond_with debug

# Java stack is not supported on x86_32
%ifarch %{ix86} %{e2k} %{riscv}
%bcond_with java
%else
%bcond_without java
%endif

Summary:	A Concurrent Versioning System
Name:		subversion
Epoch:		2
Version:	1.14.2
Release:	1
License:	Apache License
Group:		Development/Tools
Url:		http://subversion.apache.org/
Source0:	http://www.apache.org/dist/subversion/%{name}-%{version}.tar.gz
Source1:	http://www.apache.org/dist/subversion/%{name}-%{version}.tar.gz.asc
Source2:	mod_dav_svn.conf
Source3:	subversion.conf
Source5:	%{name}-1.3.0-global-config
Source6:	%{name}-1.3.0-global-servers
Source7:	http://svnbook.red-bean.com/nightly/en/svn-book-html-chunk.tar.bz2
Source8:	svnserve.service
Source9:	svnserve-tmpfiles.conf
Source100:	%{name}.rpmlintrc

BuildRequires:	apache-devel
BuildRequires:	boost-devel
BuildRequires:	chrpath
BuildRequires:	docbook-style-xsl
BuildRequires:	doxygen
BuildRequires:	db-devel
BuildRequires:	pkgconfig(apr-1)
BuildRequires:	pkgconfig(apr-util-1)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libexslt)
BuildRequires:	pkgconfig(libutf8proc)
BuildRequires:	pkgconfig(neon)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(py3c)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(serf-1)
BuildRequires:	krb5-devel
BuildRequires:	locales
BuildRequires:	locales-en
BuildRequires:	magic-devel
BuildRequires:	rsync

# Swig is runtime only
BuildRequires:	swig >= 1.3.27
%if %{with ruby}
# needs this despite with ruby 0
BuildRequires:	ruby
BuildRequires:	ruby-devel
BuildRequires:	%{_bindir}/rdoc
%endif

Provides:	%{name}-ra-method = %{EVRD}
Provides:	%{name}-client-tools = %{EVRD}
Provides:	svn = %{EVRD}
# MD because of the sysconfig files moved to this pkg
Conflicts:	%{libname} < 2:1.8.5-2

%description
Subversion (SVN) is a concurrent version control system which enables one or
more users to collaborate in developing and maintaining a hierarchy of files
and directories while keeping a history of all changes.  Subversion only stores
the differences between versions, instead of every complete file.  Subversion
also keeps a log of who, when, and why changes occurred.

As such it basically does the same thing CVS does (Concurrent Versioning
System) but has major enhancements compared to CVS and fixes a lot of the
annoyances that CVS users face.

This package contains the client, if you're looking for the server end
of things you want %{name}-server.

%files -f %{name}.lang
%doc LICENSE
# MD moved from lib pkg
%dir %{_sysconfdir}/subversion
%config(noreplace) %{_sysconfdir}/subversion/*
%{_bindir}/svn
%{_bindir}/svnversion
%{_bindir}/svnlook
%{_mandir}/man1/svn.*
%{_mandir}/man1/svnlook.*
%{_mandir}/man1/svnversion.*
%{_mandir}/man1/svnsync.*
%dir %{_datadir}/subversion-%{version}
%{_sysconfdir}/bash_completion.d/subversion

#--------------------------------------------------------------------------

%package doc
Summary:	Subversion Documenation
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains the subversion book and design info files.

%files doc
%doc svnbook-1.*
%doc doc/user/*.html
%doc doc/user/*.txt

#-------------------------------------------------------------------------

%define svnlibs svn_client svn_delta svn_diff svn_fs svn_fs_base svn_fs_fs svn_fs_util svn_fs_x svn_repos svn_subr svn_ra svn_ra_local svn_ra_serf svn_ra_svn svn_wc

%package -n %{libname}
Summary:	Subversion libraries
Group:		System/Libraries

%description -n %{libname}
Subversion common libraries.

%files -n %{libname}
%doc LICENSE
%{expand:%(for lib in %svnlibs; do cat <<EOF
%{_libdir}/lib$lib-%{api}.so.%{major}*
EOF
done)}

#---------------------------------------------------------------------------

%package -n %{devname}
Summary:	Subversion headers/libraries for development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 2:1.8.5-2

%description -n %{devname}
This package contains the header files and linker scripts for
subversion libraries.

%files -n %{devname}
%doc tools/examples/minimal_client.c
%{_includedir}/subversion-1/*
%{expand:%(for lib in %svnlibs; do cat <<EOF
%{_libdir}/lib$lib-%{api}.so
%{_libdir}/pkgconfig/lib$lib.pc
EOF
done)}
# MD should we remove this?
%{_libdir}/libsvn_diff.so

%if %{with java}
%exclude %{_libdir}/libsvnjavahl*
%endif

#----------------------------------------------------------------

%if %{with gnome_keyring}
%define libgnomekeyring %mklibname svn_auth_gnome_keyring %{api} %{major}
%define devgnomekeyring %mklibname svn_auth_gnome_keyring -d

%package -n %{libgnomekeyring}
Summary:	gnome-keyring support for svn
Group:		System/Libraries
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gnome-keyring-1)
Requires:	gnome-keyring >= 2.26.1

%description -n %{libgnomekeyring}
Subversion library that allow interaction with the gnome-keyring daemon.

%files -n %{libgnomekeyring}
%doc LICENSE
%{_libdir}/libsvn_auth_gnome_keyring-%{api}.so.%{major}*

#--------------------------------------------------------------------------

%package -n %{devgnomekeyring}
Summary:	Subversion headers/libraries for development
Group:		Development/GNOME and GTK+
Requires:	%{name}-devel = %{EVRD}
Requires:	%{libgnomekeyring} = %{EVRD}
Conflicts:	%{name}-devel < 2:1.6.17-2

%description -n %{devgnomekeyring}
This package contains the header files and linker scripts for the
subversion library using gnome-keyring auth.

%files -n %{devgnomekeyring}
%doc LICENSE
%{_libdir}/libsvn_auth_gnome_keyring-%{api}.so
%{_libdir}/pkgconfig/libsvn_auth_gnome_keyring.pc
%endif

#--------------------------------------------------------------------------

%if %{with kwallet}
%define libkwallet %mklibname svn_auth_kwallet %{api} %{major}
%define devkwallet %mklibname svn_auth_kwallet -d

%package -n %{libkwallet}
Summary:	kwallet support for svn
Group:		System/Libraries
BuildRequires:	kdelibs4-devel
BuildRequires:	pkgconfig(dbus-1)
Requires:	kwallet

%description -n %{libkwallet}
Subversion library that allow interaction with the kwallet daemon.

%files -n %{libkwallet}
%doc LICENSE
%{_libdir}/libsvn_auth_kwallet-%{api}.so.%{major}*

#--------------------------------------------------------------------------

%package -n %{devkwallet}
Summary:	Subversion headers/libraries for development
Group:		Development/KDE and Qt
Requires:	%{name}-devel = %{EVRD}
Requires:	%{libkwallet} = %{EVRD}
Conflicts:	%{name}-devel < 2:1.6.17-2

%description -n %{devkwallet}
This package contains the header files and linker scripts for the
subversion library using kwallet auth.

%files -n %{devkwallet}
%doc LICENSE
%{_libdir}/libsvn_auth_kwallet-%{api}.so
%{_libdir}/pkgconfig/libsvn_auth_kwallet.pc
%endif

#--------------------------------------------------------------------------

%package server
Summary:	Subversion Server
Group:		System/Servers
Requires:	%{name} = %{EVRD}
Requires(pre,preun,postun,post):	rpm-helper
Requires(post):	sed
Requires(post):	systemd

%description server
This package contains the subversion server and configuration files. 

%pre server
%_pre_useradd svn /var/lib/svn /bin/false

%preun server
%_preun_service svnserve

%post server
%tmpfiles_create svnserve.conf
%_post_service svnserve
# fix svn entries in /etc/services
if ! grep -qE '^svn[[:space:]]+3690/(tcp|udp)[[:space:]]+svnserve' %{_sysconfdir}/services; then
	# cleanup
	sed -i -e '/^svn\(serve\)\?/d;/^# svnserve ports added by subversion-server/d' %{_sysconfdir}/services
	echo "# svnserve ports added by subversion-server" >> /etc/services
	echo -e "svn\t3690/tcp\tsvnserve\t# Subversion svnserve" >> /etc/services
	echo -e "svn\t3690/udp\tsvnserve\t# Subversion svnserve" >> /etc/services
fi

%postun server
%_postun_userdel svn

%files server
%doc BUGS CHANGES COMMITTERS LICENSE README
%{_bindir}/svnserve
%{_unitdir}/svnserve.service
/var/lib/svn
%{_mandir}/man8/svnserve.8*
%{_mandir}/man5/svnserve.conf.5*
%{_tmpfilesdir}/svnserve.conf

#--------------------------------------------------------------------------

%package tools
Summary:	Subversion Repo/Server Tools
Group:		Development/Tools
Requires:	%{name} = %{EVRD}

%description tools
This package contains a myriad of tools for subversion server
and repository admins:
  * hot-backup makes a backup of a svn repo without stopping
  * mirror_dir_through_svn.cgi
  * various hook scripts
  * xslt example

Note that cvs2svn has moved out of subversion and is a separate
project.  It has not released its own package yet, but you can
find it at http://cvs2svn.tigris.org/

%files tools
%doc LICENSE
%{_bindir}/hot-backup*
%{_bindir}/svnadmin
%{_bindir}/svnbench
%{_bindir}/svndumpfilter
%{_bindir}/svnfsfs
%{_bindir}/svnmucc
%{_bindir}/svnrdump
%{_bindir}/svnsync
%dir %{_libexecdir}/svn-tools
%{_libexecdir}/svn-tools/svn-mergeinfo-normalizer
%{_libexecdir}/svn-tools/svnconflict
%{_libexecdir}/svn-tools/svnmover
%{_libexecdir}/svn-tools/diff
%{_libexecdir}/svn-tools/diff3
%{_libexecdir}/svn-tools/diff4
%{_libexecdir}/svn-tools/fsfs-access-map
%{_libexecdir}/svn-tools/fsfs-stats
%{_libexecdir}/svn-tools/svnauthz
%{_libexecdir}/svn-tools/svnauthz-validate
%{_libexecdir}/svn-tools/svn-bench
%{_libexecdir}/svn-tools/svnmucc
%{_libexecdir}/svn-tools/svn-populate-node-origins-index
%{_libexecdir}/svn-tools/svnraisetreeconflict
%{_libexecdir}/svn-tools/x509-parser
%{_datadir}/%{name}-%{version}/repo-tools
%{_mandir}/man1/svnadmin.1*
%{_mandir}/man1/svndumpfilter.1*
%{_mandir}/man1/svnrdump.1*
%{_mandir}/man1/svnmucc.1*

#--------------------------------------------------------------------------

%if %{with python}
%package -n python3-svn
Summary:	Python bindings for Subversion
Group:		Development/Python
Provides:	python3-subversion = %{EVRD}
Requires:	python3

%description -n python3-svn
This package contains the files necessary to use the subversion
library functions within python scripts.

%files -n python3-svn
%{_libdir}/libsvn_swig_py-%{api}.so.%{major}*
%{py3_puresitedir}/svn
%{py3_platsitedir}/libsvn
%doc tools/examples/*.py subversion/bindings/swig/INSTALL subversion/bindings/swig/NOTES

#--------------------------------------------------------------------------

%package -n python3-svn-devel
Summary:	Subversion headers/libraries for development
Group:		Development/Python
Requires:	%{name}-devel = %{EVRD}
Requires:	python3-svn = %{EVRD}
Obsoletes:	python3-svn-devel < 2:1.5.2-2
Conflicts:	%{name}-devel < 2:1.6.17-2

%description -n python3-svn-devel
This package contains the header files and linker scripts for
subversion libraries using perl.

%files -n python3-svn-devel
%doc LICENSE
%{_libdir}/libsvn_swig_py-%{api}.so
%endif

#--------------------------------------------------------------------------

%if %{with ruby}
%package -n ruby-svn
Summary:	Ruby bindings for Subversion
Group:		Development/Ruby
BuildRequires:	ruby-devel
Requires:	ruby
Provides:	ruby-subversion = %{EVRD}

%description -n ruby-svn
This package contains the files necessary to use the subversion
library functions within ruby scripts.

%files -n ruby-svn
%doc LICENSE
%{ruby_vendorarchdir}/svn
%{ruby_vendorlibdir}/*/*.rb
%{_libdir}/libsvn_swig_ruby-%{api}.so.%{major}*

#--------------------------------------------------------------------------

%package -n ruby-svn-devel
Summary:	Subversion headers/libraries for development
Group:		Development/Ruby
Requires:	ruby-svn = %{EVRD}
Obsoletes:	ruby-svn-devel < 2:1.5.2-2
Conflicts:	%{name}-devel < 2:1.6.17-2

%description -n ruby-svn-devel
This package contains the header files and linker scripts for
subversion libraries using perl.

%files -n ruby-svn-devel
%doc LICENSE
%{_libdir}/libsvn_swig_ruby-%{api}.so
%endif

#--------------------------------------------------------------------------

%if %{with java}
# We have the non-major symlink also in this package (due to java design),
# so we only have %%api in package name.
%define libsvnjavahl %mklibname svnjavahl %{api}

%package -n %{libsvnjavahl}
Summary:	Svn Java bindings library
Group:		System/Libraries

%description -n %{libsvnjavahl}
Svn Java bindings library

%files -n %{libsvnjavahl}
%doc LICENSE
%{_libdir}/libsvnjavahl-%{api}.so*

#--------------------------------------------------------------------------

%package -n svn-javahl
Summary:	Java bindings for Subversion
Group:		Development/Java
Provides:	java-svn = %{EVRD}
Provides:	java-subversion = %{EVRD}
Provides:	subversion-javahl = %{EVRD}
Requires:	%{name} = %{EVRD}
Requires:	%{libsvnjavahl} = %{EVRD}
BuildRequires:	junit
BuildRequires:	java-1.8.0-devel

%description -n svn-javahl
This package contains the files necessary to use the subversion
library functions from Java.

%files -n svn-javahl
%doc subversion/bindings/javahl/README
%{_javadir}/svn-javahl.jar
%{_javadir}/svn-javahl-%{version}.jar
%endif

#--------------------------------------------------------------------------

%if %{with perl}
%package -n perl-SVN
Summary:	Perl bindings for Subversion
Group:		Development/Perl
BuildRequires:	perl-devel
BuildRequires:	perl-ExtUtils-Embed
Requires:	%{name} = %{EVRD}
Provides:	perl-svn = %{EVRD}

%description -n perl-SVN
This package contains the files necessary to use the subversion
library functions within perl scripts.

%files -n perl-SVN
%doc subversion/bindings/swig/INSTALL subversion/bindings/swig/NOTES
%{_libdir}/libsvn_swig_perl-%{api}.so.%{major}*
%{perl_archlib}/*
%{_mandir}/man3/SVN::*.3*

#--------------------------------------------------------------------------

%package -n perl-svn-devel
Summary:	Subversion headers/libraries for development
Group:		Development/Perl
Requires:	%{name}-devel = %{EVRD}
Requires:	perl-SVN = %{EVRD}
Obsoletes:	perl-SVN-devel < 2:1.5.2-2
Provides:	perl-SVN-devel = %{EVRD}
Conflicts:	%{name}-devel < 2:1.6.17-2

%description -n perl-svn-devel
This package contains the header files and linker scripts for
subversion libraries using perl.

%files -n perl-svn-devel
%doc LICENSE
%{_libdir}/libsvn_swig_perl-%{api}.so
%endif

#----------------------------------------------------------------

%package -n apache-mod_dav_svn
Summary:	Subversion server DSO module for apache
Group:		System/Servers
Requires:	%{name}-tools = %{EVRD}
Requires:	apache-mod_dav

%description -n apache-mod_dav_svn
This package contains the apache server extension DSO for running
a subversion server.

%files -n apache-mod_dav_svn
%doc subversion/mod_authz_svn/INSTALL
%config(noreplace) %{_sysconfdir}/httpd/modules.d/10_mod_dav_svn.conf
%config(noreplace) %{_sysconfdir}/httpd/conf.d/subversion.conf
%{_libdir}/apache/mod_dav_svn.so
%{_libdir}/apache/mod_authz_svn.so
%{_libdir}/apache/mod_dontdothat.so

#--------------------------------------------------------------------------

%prep
%setup -q -a 7
%apply_patches

# fix shellbang lines, #111498
perl -pi -e 's|/usr/bin/env perl|%{_bindir}/perl|g' tools/hook-scripts/*.pl.in

# fix file perms
chmod 644 BUGS CHANGES COMMITTERS LICENSE INSTALL README

# move latest svnbook snapshot as their target version
mv svn-book-html-chunk svnbook-1.8

# This PATH order makes the fugly test for libtoolize work...
PATH=/usr/bin:$PATH ./autogen.sh --release

# lib64 fixes
perl -pi -e "s|\\$serf_prefix/lib\b|\\$serf_prefix/%{_lib}|g" build/ac-macros/serf.m4 configure*

%build
%serverbuild

%if %{with java}
export JAVADIR=%{_jvmdir}/java
%endif

%define _disable_ld_no_undefined 1

%if %{with ruby}
# override weird -shrext from ruby
export svn_cv_ruby_link="%{__cc} -shared"
export svn_cv_ruby_sitedir_libsuffix=""
export svn_cv_ruby_sitedir_archsuffix=""
%endif

%configure \
	--localstatedir=/var/lib \
	--with-apr_memcache=%{_prefix} \
	--with-apxs=%{_bindir}/apxs \
	--with-apache-libexecdir=%{_libdir}/apache/ \
	--with-apr=%{_bindir}/apr-1-config \
	--with-apr-util=%{_bindir}/apu-1-config \
	--disable-mod-activation \
	--with-swig=%{_prefix} \
	--disable-static \
%if %{with debug}
	--enable-maintainer-mode \
	--enable-debug \
%endif
%if %{with java}
	--enable-javahl \
	--with-jdk=%{_jvmdir}/java \
	--with-junit=%{_javadir}/junit.jar \
%endif
%if %{with gnome_keyring}
	--with-gnome-keyring \
%endif
%if %{with kwallet}
	--with-kwallet \
%endif
	--enable-shared \
	--with-gssapi=%{_prefix} \
	--with-libmagic=%{_prefix} \
	--with-serf=%{_prefix} \
	--with-sqlite=%{_prefix} \
	--enable-bdb6

%if %{with ruby}
# fix weird broken autopoo
perl -pi -e "s|^SWIG_RB_SITE_ARCH_DIR.*|SWIG_RB_SITE_ARCH_DIR=\"%{ruby_vendorarchdir}\"|g" Makefile
perl -pi -e "s|^SWIG_RB_SITE_LIB_DIR.*|SWIG_RB_SITE_LIB_DIR=\"%{ruby_vendorlibdir}\"|g" Makefile
%endif

# fix weird broken autopoo
perl -pi -e "s|^toolsdir.*|toolsdir=%{_libexecdir}/svn-tools|g" Makefile
perl -pi -e "s|^pkgconfig_dir.*|pkgconfig_dir = %{_libdir}/pkgconfig|g" Makefile

%make all

%if %{with python}
make swig-py swig_pydir=%{py3_platsitedir}/libsvn swig_pydir_extra=%{py3_puresitedir}/svn
%endif

%if %{with perl}
make swig-pl
pushd  subversion/bindings/swig/perl/native
	perl Makefile.PL
popd
%endif

%if %{with ruby}
make swig-rb
%endif

%if %{with java}
make javahl
%endif

%check
%if %{with test}
echo "###########################################################################"
echo "This can take quite some time to finish, so please be patient..."
echo "Don't be too surprised it the tests takes 30 minutes on a dual xeon machine..."
make LC_ALL=C LANG=C LD_LIBRARY_PATH="`pwd`/subversion/bindings/swig/perl/libsvn_swig_perl/.libs:`pwd`/subversion/bindings/swig/python/libsvn_swig_py/.libs:\
`pwd`/subversion/bindings/swig/python/.libs:`pwd`/subversion/libsvn_ra_local/.libs:`pwd`/subversion/svnadmin/.libs:\
`pwd`/subversion/tests/libsvn_ra_local/.libs:`pwd`/subversion/tests/libsvn_fs/.libs:`pwd`/subversion/tests/libsvn_wc/.libs:\
`pwd`/subversion/tests/libsvn_fs_base/.libs:`pwd`/subversion/tests/libsvn_diff/.libs:`pwd`/subversion/tests/libsvn_subr/.libs:\
`pwd`/subversion/tests/libsvn_delta/.libs:`pwd`/subversion/tests/libsvn_repos/.libs:`pwd`/subversion/tests/.libs:\
`pwd`/subversion/svnserve/.libs:`pwd`/subversion/libsvn_fs/.libs:`pwd`/subversion/libsvn_ra/.libs:`pwd`/subversion/libsvn_wc/.libs:\
`pwd`/subversion/mod_dav_svn/.libs:`pwd`/subversion/mod_authz_svn/.libs:`pwd`/subversion/svnlook/.libs:`pwd`/subversion/svndumpfilter/.libs:\
`pwd`/subversion/libsvn_client/.libs:`pwd`/subversion/libsvn_fs_base/bdb/.libs:`pwd`/subversion/libsvn_fs_base/util/.libs:\
`pwd`/subversion/libsvn_fs_base/.libs:`pwd`/subversion/libsvn_diff/.libs:`pwd`/subversion/libsvn_subr/.libs:`pwd`/subversion/svnversion/.libs:\
`pwd`/subversion/libsvn_ra_dav/.libs:`pwd`/subversion/libsvn_ra_svn/.libs:`pwd`/subversion/libsvn_delta/.libs:`pwd`/subversion/libsvn_fs_fs/.libs:\
`pwd`/subversion/libsvn_repos/.libs:`pwd`/subversion/clients/cmdline/.libs:$LD_LIBRARY_PATH" check
%endif

%install
%makeinstall_std

%if %{with python}
%makeinstall_std install-swig-py swig_pydir=%{py3_platsitedir}/libsvn swig_pydir_extra=%{py3_puresitedir}/svn
# Precompile python
#% py_compile %{buildroot}/%{py3_platsitedir}/libsvn
#% py_compile %{buildroot}/%{py3_puresitedir}/svn
%endif

%if %{with perl}
%makeinstall_std install-swig-pl-lib
pushd subversion/bindings/swig/perl/native/
	perl Makefile.PL
	%makeinstall_std
popd
# XXX relocate from weird place, maybe fix the build itself?
rsync -av --progress %{buildroot}/usr/local/%{_lib}/ %{buildroot}%{_libdir}/
rsync -av --progress %{buildroot}/usr/local/share/ %{buildroot}%{_datadir}/
rm -fvr %{buildroot}/usr/local
%endif

%if %{with ruby}
%makeinstall_std install-swig-rb
%endif
%if %{with java}
%makeinstall_std install-javahl

mkdir -p %{buildroot}%{_javadir}
mv %{buildroot}%{_libdir}/svn-javahl/svn-javahl.jar %{buildroot}%{_javadir}/svn-javahl-%{version}.jar
ln -s svn-javahl-%{version}.jar %{buildroot}%{_javadir}/svn-javahl.jar

%{_bindir}/chrpath -d %{buildroot}%{_libdir}/libsvnjavahl-1.so
%endif

%if %{with perl}
# perl bindings
make pure_vendor_install -C subversion/bindings/swig/perl/native DESTDIR=%{buildroot}
%endif

install -D -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/modules.d/10_mod_dav_svn.conf
install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/httpd/conf.d/subversion.conf

install -D -p -m 0644 %{SOURCE9} %{buildroot}%{_tmpfilesdir}/svnserve.conf

# install the extra module
%makeinstall_std install-tools

######################
###  client-tools  ###
######################

# various commands
# contrib was removed in subversion-1.7.x :
#  -- http://subversion.apache.org/docs/release-notes/1.7.html
#  -- (shlomif)
# install -m 755 contrib/client-side/search-svnlog.pl %%{buildroot}%%{_bindir}
# (cd  %%{buildroot}/%%{_bindir}; ln -sf  search-svnlog.pl search-svnlog)
# install -m 755 contrib/client-side/svn_all_diffs.pl %%{buildroot}%%{_bindir}
# (cd  %%{buildroot}/%%{_bindir}; ln -sf  svn_all_diffs.pl svn_all_diffs)
# install -m 755 contrib/client-side/svn_load_dirs/svn_load_dirs.pl %%{buildroot}%%{_bindir}
# (cd  %%{buildroot}/%%{_bindir}; ln -sf  svn_load_dirs.pl svn_load_dirs)
# install -m 755 contrib/client-side/svn-log.pl %%{buildroot}%%{_bindir}
# (cd  %%{buildroot}/%%{_bindir}; ln -sf  svn-log.pl svn-log)

# removed in 1.9.x
# install -m 755 tools/client-side/showchange.pl %{buildroot}%{_bindir}
# (cd  %{buildroot}/%{_bindir}; ln -sf  showchange.pl showchange)

install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 644 tools/client-side/bash_completion \
    %{buildroot}%{_sysconfdir}/bash_completion.d/subversion

# Global configs
install -d -m 755 %{buildroot}%{_sysconfdir}/subversion
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/subversion/config
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/subversion/servers

####################
###  repo-tools  ###
####################

# hotbackup tool
sed -i 's!python!python3!g' tools/backup/hot-backup.py
install -m 755 tools/backup/hot-backup.py %{buildroot}%{_bindir}
(cd %{buildroot}%{_bindir}; ln -sf  hot-backup.py hot-backup)

# hook-scripts
install -d -m755 %{buildroot}%{_datadir}/%{name}-%{version}/repo-tools/hook-scripts
pushd tools/hook-scripts
install -m 644 commit-access-control.cfg.example %{buildroot}/%{_datadir}/%{name}-%{version}/repo-tools/hook-scripts
install -m 755 commit-access-control.pl %{buildroot}/%{_datadir}/%{name}-%{version}/repo-tools/hook-scripts
install -m 644 svnperms.conf.example %{buildroot}/%{_datadir}/%{name}-%{version}/repo-tools/hook-scripts
install -m 755 svnperms.py %{buildroot}/%{_datadir}/%{name}-%{version}/repo-tools/hook-scripts
install -m 755 mailer/mailer.py %{buildroot}/%{_datadir}/%{name}-%{version}/repo-tools/hook-scripts
install -m 644 mailer/mailer.conf.example %{buildroot}/%{_datadir}/%{name}-%{version}/repo-tools/hook-scripts
popd

pushd tools/hook-scripts
install -m 755 commit-email.rb %{buildroot}/%{_datadir}/%{name}-%{version}/repo-tools/hook-scripts
popd

#xslt
install -d -m755 %{buildroot}%{_datadir}/%{name}-%{version}/repo-tools/xslt
install -m 644 tools/xslt/svnindex.css %{buildroot}%{_datadir}/%{name}-%{version}/repo-tools/xslt
install -m 644 tools/xslt/svnindex.xsl %{buildroot}%{_datadir}/%{name}-%{version}/repo-tools/xslt

#cgi
# contrib was removed in subversion-1.7.x :
# install -d -m755 %%{buildroot}%%{_datadir}/%%{name}-%%{version}/repo-tools/cgi
# install -m 755 contrib/cgi/mirror_dir_through_svn.cgi %%{buildroot}%%{_datadir}/%%{name}-%%{version}/repo-tools/cgi
# install -m 644 contrib/cgi/mirror_dir_through_svn.README %%{buildroot}%%{_datadir}/%%{name}-%%{version}/repo-tools/cgi
# install -m 755 contrib/cgi/tweak-log.cgi %%{buildroot}%%{_datadir}/%%{name}-%%{version}/repo-tools/cgi

# fix a missing file...
ln -sf libsvn_diff-1.so.0.0.0 %{buildroot}%{_libdir}/libsvn_diff.so

%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svn
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svnlook
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svnversion
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svnserve
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svnadmin
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svndumpfilter
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svnsync
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/svnrdump

%if %{with perl}
# fix the stupid rpath stuff...
myf() { find %{buildroot}%{perl_vendorarch} -type f -name "*.so"; }
# Fix the readonly permissions of the perl files.
myf | xargs chmod u+w
myf | xargs chrpath -d

%endif

# handle translations
%find_lang %{name}

# fix the server parts
mkdir -p %{buildroot}%{_unitdir}
install -p -m644 %{SOURCE8} %{buildroot}%{_unitdir}/svnserve.service
install -d %{buildroot}/var/lib/svn/repositories

# cleanup
find %{buildroot} -name "perllocal.pod" | xargs rm -f

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17453 |21mr|sudo-1.9.15p4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Allows command execution as root for specified users
Name:		sudo
Version:	1.9.15p4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Base
Url:		https://www.sudo.ws
Source0:	https://www.sudo.ws/sudo/dist/%{name}-%{version}.tar.gz
Source2:	sudo.pamd
Source3:	sudo-1.7.4p4-sudoers
Source4:	sudo.rpmlintrc
Patch1:		sudo-1.6.7p5-strip.patch
Patch2:		no-sample-plugin.diff
BuildRequires:	autoconf-archive
BuildRequires:	bison
BuildRequires:	groff-for-man
BuildRequires:	audit-devel
BuildRequires:	cap-devel
BuildRequires:	openldap-devel
BuildRequires:	pam-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
Requires:	%{_bindir}/vi
Requires(post):	coreutils

%description
Sudo (superuser do) allows a system administrator to give certain users (or
groups of users) the ability to run some (or all) commands as root while
logging all commands and arguments. Sudo operates on a per-command basis.
It is not a replacement for the shell. Features include: the ability to
restrict what commands a user may run on a per-host basis, copious logging
of each command (providing a clear audit trail of who did what), a
configurable timeout of the sudo command, and the ability to use the same
configuration file (sudoers) on many different machines.

%files -f %{name}.lang
%doc %{_docdir}/%{name}
%attr(0440,root,root) %config(noreplace) %{_sysconfdir}/sudoers
%attr(0440,root,root) %config(noreplace) %{_sysconfdir}/sudoers.dist
%attr(0750,root,root) %dir %{_sysconfdir}/sudoers.d/
%config(noreplace) %{_sysconfdir}/logrotate.d/sudo
%config(noreplace) %{_sysconfdir}/pam.d/sudo
%config(noreplace) %{_sysconfdir}/pam.d/sudo-i
%config(noreplace) %{_sysconfdir}/sudo.conf
%config(noreplace) %{_sysconfdir}/sudo_logsrvd.conf
%attr(4111,root,root) %{_bindir}/sudo
# Symlink to sudo, no attr
%{_bindir}/sudoedit
%attr(0111,root,root) %{_bindir}/sudoreplay
%attr(0755,root,root) %{_bindir}/cvtsudoers
%attr(0755,root,root) %{_sbindir}/sudo_logsrvd
%attr(0755,root,root) %{_sbindir}/sudo_sendlog
%attr(0755,root,root) %{_sbindir}/visudo
%ghost %{_logdir}/sudo.log
%{_mandir}/man8/sudoreplay.8*
%{_mandir}/man8/visudo.8*
%{_mandir}/man8/sudoedit.8*
%{_mandir}/man8/sudo.8*
%{_mandir}/man5/sudo.conf.5*
%{_mandir}/man5/sudoers.ldap.5*
%{_mandir}/man5/sudoers.5*
%{_mandir}/man1/cvtsudoers.1.*
%{_mandir}/man5/sudo_logsrv.proto.5*
%{_mandir}/man5/sudo_logsrvd.conf.5*
%{_mandir}/man5/sudoers_timestamp.5*
%{_mandir}/man8/sudo_logsrvd.8*
%{_mandir}/man8/sudo_sendlog.8*
%attr(0700,root,root) %dir %{_var}/db/sudo
%attr(0750,root,root) %dir %{_logdir}/sudo-io
%attr(0755,root,root) %dir %{_libdir}/sudo
%{_libdir}/sudo/*
%{_tmpfilesdir}/sudo.conf

%post
chmod 0440 %{_sysconfdir}/sudoers || :
# Do not depend from spec-helper to avoid pulling ~50 MB of perl packages
# %%create_ghostfile %{_logdir}/sudo.log root root 600
if [ ! -e %{_logdir}/sudo.log ]; then
	touch %{_logdir}/sudo.log
	chmod 0600 %{_logdir}/sudo.log
fi

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
The %{name}-devel package contains header files developing sudo
plugins that use %{name}.

%files devel
%{_includedir}/sudo_plugin.h
%{_mandir}/man5/sudo_plugin.5*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix attribs and filenames
find -name "Makefile.*" | xargs sed -i -e "s|-m 0444|-m 0644|g;s|configure.in|configure.ac|g"

%build
%serverbuild
export CFLAGS="%{optflags} -D_GNU_SOURCE"

pushd plugins/sudoers/po
rm -f ru.mo
msgfmt ru.po -o ru.mo
popd

%configure \
	--without-rpath \
	--with-logging=both \
	--with-logfac=authpriv \
	--with-logpath=%{_logdir}/sudo.log \
	--with-editor=%{_bindir}/vi \
	--enable-log-host \
	--enable-tmpfiles.d=%{_tmpfilesdir} \
%if %{with selinux}
	--with-selinux \
%endif
	--with-pam \
	--with-pam-login \
	--with-env-editor \
	--with-noexec=no \
	--with-linux-audit \
	--with-ignore-dot \
	--with-tty-tickets \
	--libexecdir=%{_libdir}/sudo \
	--with-plugindir=%{_libdir}/sudo \
	--with-noexec=%{_libdir}/sudo/sudo_noexec.so \
	--with-ldap \
	--with-ldap-conf-file=%{_sysconfdir}/ldap.conf \
	--with-secure-path="/sbin:%{_sbindir}:/bin:%{_bindir}:/usr/local/bin:/usr/local/sbin" \
	--with-passprompt="[sudo] password for %p: " \
	--with-sssd

%make

%install
install -d %{buildroot}/usr
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -d %{buildroot}%{_sysconfdir}/sudoers.d
install -d %{buildroot}%{_var}/db/sudo
install -d %{buildroot}%{_logdir}/sudo
install -d %{buildroot}%{_logdir}/sudo-io

%make_install install_uid=`id -u` install_gid=`id -g` sudoers_uid=`id -u` sudoers_gid=`id -g`

install -m0644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/pam.d/sudo
install -m0644 %{SOURCE3} -D %{buildroot}%{_sysconfdir}/sudoers

# Installing logrotated file
cat <<END >%{buildroot}%{_sysconfdir}/logrotate.d/sudo
%{_logdir}/sudo.log {
    missingok
    monthly
    compress
}
END

cat > %{buildroot}%{_sysconfdir}/pam.d/sudo << EOF
#%%PAM-1.0
auth       include      system-auth
account    include      system-auth
password   include      system-auth
session    optional     pam_keyinit.so revoke
session    required     pam_limits.so
EOF

cat > %{buildroot}%{_sysconfdir}/pam.d/sudo-i << EOF
#%%PAM-1.0
auth       include      sudo
account    include      sudo
password   include      sudo
session    optional     pam_keyinit.so force revoke
session    required     pam_limits.so
EOF

# so that strip can touch it...
chmod 755 %{buildroot}%{_bindir}/*
chmod 755 %{buildroot}%{_sbindir}/*

# (tpg) create the missing log file
touch %{buildroot}%{_logdir}/sudo.log

%find_lang sudo sudoers %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17454 |21mr|suil-0.10.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define	api 0
%define	major 0
%define	libname %mklibname %{name} %{api} %{major}
%define	devname %mklibname %{name} %{api} -d

Summary:	Lightweight C library for loading and wrapping LV2 plugin UIs
Name:		suil
Version:	0.10.6
Release:	3
License:	MIT
Group:		System/Libraries
Url:		http://drobilla.net/software/%{name}/
Source0:	http://download.drobilla.net/%{name}-%{version}.tar.bz2
BuildRequires:	waf
BuildRequires:	qt5-devel
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(lv2)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(serd-0)
BuildRequires:	pkgconfig(sratom-0)

%description
Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.

Suil makes it possible to load a UI of any toolkit in a host using any
other toolkit (assuming the toolkits are both supported by Suil).
Hosts do not need to build against or link to foreign toolkit libraries
to use UIs written with that toolkit (Suil performs its magic at
runtime using dynamically loaded modules). The API is designed such that
hosts do not need to explicitly support particular toolkits whatsoever.
If Suil supports a particular toolkit, then all hosts that use Suil will
support that toolkit.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lightweight RDF syntax library
Group:		System/Libraries
Conflicts:	%{_lib}suil0 < 0.10.0
Obsoletes:	%{_lib}suil0 < 0.10.0

%description -n %{libname}
Suil is a lightweight C library for loading and wrapping LV2 plugin UIs.
It makes it possible to load a UI of any toolkit in a host using any other
toolkit (assuming the toolkits are both supported by Suil). Hosts do not need
to build against or link to foreign toolkit libraries to use UIs written with
that toolkit (the library performs its magic at runtime using dynamically
loaded modules). The API is designed such that hosts do not need to explicitly
support particular toolkits whatsoever. If Suil supports a particular toolkit,
then all hosts that use Suil will support that toolkit.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for the sord RDF storage library
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{_lib}suil-devel < 0.10.0
Obsoletes:	%{_lib}suil-devel < 0.10.0

%description -n %{devname}
Development files needed to build applications against suil.

%files -n %{devname}
%{_libdir}/lib%{name}-%{api}.so
%dir %{_includedir}/%{name}-%{api}/%{name}
%{_includedir}/%{name}-%{api}/%{name}/*.h
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%package -n %{_lib}%{name}-x11-in-gtk2
Summary:	Shared object for GTK2 hosts displaying X11 LV2 GUIs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-x11-in-gtk2 = %{EVRD}

%description -n %{_lib}%{name}-x11-in-gtk2
Shared object for GTK2 hosts displaying X11 LV2 GUIs.

%files -n %{_lib}%{name}-x11-in-gtk2
%{_libdir}/%{name}-%{api}/libsuil_x11_in_gtk2.so

#----------------------------------------------------------------------------

%package -n %{_lib}%{name}-x11-in-gtk3
Summary:	Shared object for GTK3 hosts displaying X11 LV2 GUIs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-x11-in-gtk3 = %{EVRD}

%description -n %{_lib}%{name}-x11-in-gtk3
Shared object for GTK3 hosts displaying X11 LV2 GUIs.

%files -n %{_lib}%{name}-x11-in-gtk3
%{_libdir}/%{name}-%{api}/libsuil_x11.so
%{_libdir}/%{name}-%{api}/libsuil_x11_in_gtk3.so

#----------------------------------------------------------------------------

%package -n %{_lib}%{name}-x11-in-qt5
Summary:	Shared object for Qt5 hosts displaying X11 LV2 GUIs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-x11-in-qt5 = %{EVRD}

%description -n %{_lib}%{name}-x11-in-qt5
Shared object for Qt5 hosts displaying X11 LV2 GUIs.

%files -n %{_lib}%{name}-x11-in-qt5
%{_libdir}/%{name}-%{api}/libsuil_x11_in_qt5.so

#----------------------------------------------------------------------------

%package -n %{_lib}%{name}-qt5-in-gtk2
Summary:	Shared object for GTK2 hosts displaying Qt5 LV2 GUIs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-qt5-in-gtk2 = %{EVRD}

%description -n %{_lib}%{name}-qt5-in-gtk2
Shared object for GTK2 hosts displaying Qt5 LV2 GUIs.

%files -n %{_lib}%{name}-qt5-in-gtk2
%{_libdir}/%{name}-%{api}/lib%{name}_qt5_in_gtk2.so

#----------------------------------------------------------------------------

%package -n %{_lib}%{name}-qt5-in-gtk3
Summary:	Shared object for GTK2 hosts displaying Qt5 LV2 GUIs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-qt5-in-gtk3 = %{EVRD}

%description -n %{_lib}%{name}-qt5-in-gtk3
Shared object for GTK3 hosts displaying Qt5 LV2 GUIs.

%files -n %{_lib}%{name}-qt5-in-gtk3
%{_libdir}/%{name}-%{api}/lib%{name}_qt5_in_gtk3.so

#----------------------------------------------------------------------------

%package -n %{_lib}%{name}-gtk2-in-qt5
Summary:	Shared object for Qt5 hosts displaying GTK2 LV2 GUIs
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-gtk2-in-qt5 = %{EVRD}

%description -n %{_lib}%{name}-gtk2-in-qt5
Shared object for Qt5 hosts displaying GTK2 LV2 GUIs.

%files -n %{_lib}%{name}-gtk2-in-qt5
%{_libdir}/%{name}-%{api}/lib%{name}_gtk2_in_qt5.so

#----------------------------------------------------------------------------

%prep
%setup -q


%build
export CXXFLAGS="%{optflags} -std=gnu++11"
./waf configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir}
./waf


%install
./waf install --destdir=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17455 |21mr|suitesparse-5.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define amd_version_major 2
%define amd_packagename %mklibname amd %{amd_version_major}
%define amd_packagedev %mklibname amd -d
%define btf_version_major 1
%define btf_packagename %mklibname btf %{btf_version_major}
%define btf_packagedev %mklibname btf -d
%define camd_version_major 2
%define camd_packagename %mklibname camd %{camd_version_major}
%define camd_packagedev %mklibname camd -d
%define ccolamd_version_major 2
%define ccolamd_packagename %mklibname ccolamd %{ccolamd_version_major}
%define ccolamd_packagedev %mklibname ccolamd -d
%define cholmod_version_major 3
%define cholmod_packagename %mklibname cholmod %{cholmod_version_major}
%define cholmod_packagedev %mklibname cholmod -d
%define colamd_version_major 2
%define colamd_packagename %mklibname colamd %{colamd_version_major}
%define colamd_packagedev %mklibname colamd -d
%define cxsparse_version_major 3
%define cxsparse_packagename %mklibname cxsparse %{cxsparse_version_major}
%define cxsparse_packagedev %mklibname cxsparse -d
%define klu_version_major 1
%define klu_packagename %mklibname klu %{klu_version_major}
%define klu_packagedev %mklibname klu -d
%define ldl_version_major 2
%define ldl_packagename %mklibname ldl %{ldl_version_major}
%define ldl_packagedev %mklibname ldl -d
%define umfpack_version_major 5
%define umfpack_packagename %mklibname umfpack %{umfpack_version_major}
%define umfpack_packagedev %mklibname umfpack -d
%define spqr_version_major 2
%define spqr_packagename %mklibname spqr %{spqr_version_major}
%define spqr_packagedev %mklibname spqr -d
%define rbio_version_major 2
%define rbio_packagename %mklibname rbio %{rbio_version_major}
%define rbio_packagedev %mklibname rbio -d
%define suitesparseconfig_version %{version}
%define suitesparseconfig_version_major 5
%define suitesparseconfig_packagename %mklibname suitesparseconfig %{suitesparseconfig_version_major}
%define suitesparseconfig_packagedev %mklibname suitesparseconfig -d
%define mongoose_version_major 2
%define mongoose_packagename %mklibname mongoose %{mongoose_version_major}
%define mongoose_packagedev %mklibname mongoose -d


%define sliplu_version_major 1
%define sliplu_packagename %mklibname sliplu %{sliplu_version_major}
%define sliplu_packagedev %mklibname sliplu -d

%define graphblas_version_major 7
%define graphblas_packagename %mklibname graphblas %{graphblas_version_major}
%define graphblas_packagedev %mklibname graphblas -d

Name:		suitesparse
Version:	5.13.0
Release:	1
Summary:	A collection of sparse matrix libraries
Group:		Development/C
License:	LGPLv2+ and GPLv2+
URL:		http://faculty.cse.tamu.edu/davis/suitesparse.html
Source0:	https://github.com/DrTimothyAldenDavis/SuiteSparse/archive/v%{version}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0:		lcc-pragma.patch

BuildRequires:	cmake
BuildRequires:	blas-devel
BuildRequires:	lapack-devel
BuildRequires:	metis-devel
%ifnarch aarch64 %{e2k}
BuildRequires:	tbb-devel
%endif
BuildRequires:	hardlink
BuildRequires:	gomp-devel
BuildRequires:	mpfr-devel

%description
suitesparse is a collection of libraries for computations involving sparse
matrices.  The package includes the following libraries:
  AMD                 approximate minimum degree ordering
  BTF                 permutation to block triangular form
  CAMD                constrained approximate minimum degree ordering
  COLAMD              column approximate minimum degree ordering
  CCOLAMD             constrained column approximate minimum degree ordering
  CHOLMOD             sparse Cholesky factorization
  CSparse             a concise sparse matrix package
  CXSparse            int/long/real/complex version of CSparse
  KLU                 sparse LU factorization, BLAS-free
  LDL                 a simple LDL factorization
  SQPR                a multithread, multifrontal, rank-revealing sparse QR
                      factorization method
  UMFPACK             sparse LU factorization, with the BLAS
  SuiteSparse_config  configuration file for all the above packages.
  RBio                read/write files in Rutherford/Boeing format

#---------------------------------------------------------------------

%package -n %{suitesparseconfig_packagedev}
Summary:	Development headers for SuiteSparse
Group:		Development/C
Requires:	%{suitesparseconfig_packagename} = %{EVRD}
Provides:	suitesparse-common-devel = %{EVRD}
Provides:	%{suitesparseconfig_packagedev} = %{EVRD}
Obsoletes:	%{suitesparseconfig_packagedev} < %{EVRD}
Obsoletes:	suitesparse-common-devel < %{EVRD}

Requires:	%{amd_packagename} = %{EVRD}
Provides:	amd-devel = %{EVRD}
Provides:	%{amd_packagedev} = %{EVRD}
Obsoletes:	%{amd_packagedev} < %{EVRD}
Obsoletes:	amd-devel < %{EVRD}

Requires:	%{btf_packagename} = %{EVRD}
Provides:	btf-devel = %{EVRD}
Provides:	%{btf_packagedev} = %{EVRD}
Obsoletes:	%{btf_packagedev} < %{EVRD}
Obsoletes:	btf-devel < %{EVRD}

Requires:	%{camd_packagename} = %{EVRD}
Provides:	camd-devel = %{EVRD}
Provides:	%{camd_packagedev} = %{EVRD}
Obsoletes:	%{camd_packagedev} < %{EVRD}
Obsoletes:	camd-devel < %{EVRD}

Requires:	%{ccolamd_packagename} = %{EVRD}
Provides:	ccolamd-devel = %{EVRD}
Provides:	%{ccolamd_packagedev} = %{EVRD}
Obsoletes:	%{ccolamd_packagedev} < %{EVRD}
Obsoletes:	ccolamd-devel < %{EVRD}

Requires:	%{cholmod_packagename} = %{EVRD}
Provides:	cholmod-devel = %{EVRD}
Provides:	%{cholmod_packagedev} = %{EVRD}
Obsoletes:	%{cholmod_packagedev} < %{EVRD}
Obsoletes:	cholmod-devel < %{EVRD}

Requires:	%{colamd_packagename} = %{EVRD}
Provides:	colamd-devel = %{EVRD}
Provides:	%{colamd_packagedev} = %{EVRD}
Obsoletes:	%{colamd_packagedev} < %{EVRD}
Obsoletes:	colamd-devel < %{EVRD}

Requires:	%{cxsparse_packagename} = %{EVRD}
Provides:	cxsparse-devel = %{EVRD}
Provides:	%{cxsparse_packagedev} = %{EVRD}
Obsoletes:	%{cxsparse_packagedev} < %{EVRD}
Obsoletes:	cxsparse-devel < %{EVRD}

Requires:	%{klu_packagename} = %{EVRD}
Provides:	klu-devel = %{EVRD}
Provides:	%{klu_packagedev} = %{EVRD}
Obsoletes:	%{klu_packagedev} < %{EVRD}
Obsoletes:	klu-devel < %{EVRD}

Requires:	%{ldl_packagename} = %{EVRD}
Provides:	ldl-devel = %{EVRD}
Provides:	%{ldl_packagedev} = %{EVRD}
Obsoletes:	%{ldl_packagedev} < %{EVRD}
Obsoletes:	ldl-devel < %{EVRD}

Requires:	%{umfpack_packagename} = %{EVRD}
Provides:	umfpack-devel = %{EVRD}
Provides:	%{umfpack_packagedev} = %{EVRD}
Obsoletes:	%{umfpack_packagedev} < %{EVRD}
Obsoletes:	umfpack-devel < %{EVRD}

Requires:	%{spqr_packagename} = %{EVRD}
Provides:	spqr-devel = %{EVRD}
Provides:	%{spqr_packagedev} = %{EVRD}
Obsoletes:	%{spqr_packagedev} < %{EVRD}
Obsoletes:	spqr-devel < %{EVRD}

Requires:	%{rbio_packagename} = %{EVRD}
Provides:	rbio-devel = %{EVRD}
Provides:	%{rbio_packagedev} = %{EVRD}
Obsoletes:	%{rbio_packagedev} < %{EVRD}
Obsoletes:	rbio-devel < %{EVRD}

Requires:	%{mongoose_packagename} = %{EVRD}
Provides:	mongoose-devel = %{EVRD}
Provides:	%{mongoose_packagedev} = %{EVRD}
Obsoletes:	%{mongoose_packagedev} < %{EVRD}
Obsoletes:	mongoose-devel < %{EVRD}

Requires:	%{sliplu_packagename} = %{EVRD}
Provides:	sliplu-devel = %{EVRD}
Provides:	%{sliplu_packagedev} = %{EVRD}
Obsoletes:	%{sliplu_packagedev} < %{EVRD}
Obsoletes:	sliplu-devel < %{EVRD}

%description -n %{suitesparseconfig_packagedev}
The suitesparse-devel package contains files needed for developing
applications which use the suitesparse libraries.


%files -n %{suitesparseconfig_packagedev}
%{_includedir}/*.h
%exclude %{_includedir}/GraphBLAS.h
%{_includedir}/%{name}/*.*
%{_libdir}/libsuitesparseconfig.so
%{_libdir}/libamd.so
%{_libdir}/libbtf.so
%{_libdir}/libcamd.so
%{_libdir}/libccolamd.so
%{_libdir}/libcholmod.so
%{_libdir}/libcolamd.so
%{_libdir}/libcxsparse.so
%{_libdir}/libklu.so
%{_libdir}/libldl.so
%{_libdir}/libumfpack.so
%{_libdir}/libspqr.so
%{_libdir}/librbio.so
%{_libdir}/libmongoose.so
%{_libdir}/libsliplu.so

#---------------------------------------------------------------------

%package doc
Summary:	Documentation files for SuiteSparse
Group:		Documentation
BuildArch:	noarch

%description doc
This package contains documentation files for %{name}.

%files doc
%{_docdir}/suitesparse-%{version}/*.txt
%{_docdir}/suitesparse-%{version}/*.pdf
%{_docdir}/suitesparse-%{version}/SuiteSparse_README.md

#---------------------------------------------------------------------

%package -n %{suitesparseconfig_packagename}
Summary:	Configuration file for SuiteSparse packages
Group:		Development/C
Provides:	%{suitesparseconfig_packagename} = %{EVRD}
Obsoletes:	%{suitesparseconfig_packagename} < %{EVRD}

%description -n %{suitesparseconfig_packagename}
SuiteSparse_config provides a configuration header file needed by most of
the other packages in SuiteSparse.

%files -n %{suitesparseconfig_packagename}
%{_libdir}/libsuitesparseconfig.so.%{suitesparseconfig_version_major}*

#---------------------------------------------------------------------

%package -n %{amd_packagename}
Summary:	Routines for permuting sparse matricies prior to factorization
Group:		Development/C
Provides:	%{amd_packagename} = %{EVRD}
Obsoletes:	%{amd_packagename} < %{EVRD}

%description -n %{amd_packagename}
AMD provides a set of routines for permuting sparse matricies prior to
Cholesky factorization (or LU factorization with diagonal pivoting).

%files -n %{amd_packagename}
%{_libdir}/libamd.so.%{camd_version_major}*

#---------------------------------------------------------------------

%package -n %{btf_packagename}
Summary:	Routines for permuting sparse matricies to block triangular form
Group:		Development/C
Provides:	%{btf_packagename} = %{EVRD}
Obsoletes:	%{btf_packagename} < %{EVRD}

%description -n %{btf_packagename}
BTF is a software package for permuting a matrix into block upper triangular
form.  It includes a maximum transversal algorithm, which finds a permutation
of a square or rectangular matrix so that it has a zero-free diagonal (if one
exists); otherwise, it finds a maximal matching which maximizes the number of
nonzeros on the diagonal.  The package also includes a method for finding the
strongly connected components of a graph.  These two methods together give the
permutation to block upper triangular form.

%files -n %{btf_packagename}
%{_libdir}/libbtf.so.%{btf_version_major}*

#---------------------------------------------------------------------

%package -n %{camd_packagename}
Summary:	Routines for permuting sparse matricies prior to factorization
Group:		Development/C
Provides:	%{camd_packagename} = %{EVRD}
Obsoletes:	%{camd_packagename} < %{EVRD}

%description -n %{camd_packagename}
CAMD provides a set of routines for permuting sparse matricies prior
to factorization.

%files -n %{camd_packagename}
%{_libdir}/libcamd.so.%{camd_version_major}*

#---------------------------------------------------------------------

%package -n %{ccolamd_packagename}
Summary:	Routines for computing column approximate minimum degree ordering
Group:		Development/C
Provides:	%{ccolamd_packagename} = %{EVRD}
Obsoletes:	%{ccolamd_packagename} < %{EVRD}

%description -n %{ccolamd_packagename}
The CCOLAMD column approximate minimum degree ordering algorithm computes
a permutation vector P such that the LU factorization of A (:,P)
tends to be sparser than that of A.  The Cholesky factorization of
(A (:,P))'*(A (:,P)) will also tend to be sparser than that of A'*A.

%files -n %{ccolamd_packagename}
%{_libdir}/libccolamd.so.%{ccolamd_version_major}*

#---------------------------------------------------------------------

%package -n %{cholmod_packagename}
Summary:	Routines for factorizing sparse symmetric positive definite matricies
Group:		Development/C
Provides:	%{cholmod_packagename} = %{EVRD}
Obsoletes:	%{cholmod_packagename} < %{EVRD}

%description -n %{cholmod_packagename}
CHOLMOD is a set of routines for factorizing sparse symmetric positive
definite matrices of the form A or AA', updating/downdating a sparse
Cholesky factorization, solving linear systems, updating/downdating
the solution to the triangular system Lx=b, and many other sparse
matrix functions for both symmetric and unsymmetric matrices.  Its
supernodal Cholesky factorization relies on LAPACK and the Level-3
BLAS, and obtains a substantial fraction of the peak performance of
the BLAS.  Both real and complex matrices are supported.

%files -n %{cholmod_packagename}
%{_libdir}/libcholmod.so.%{cholmod_version_major}*

#---------------------------------------------------------------------

%package -n %{colamd_packagename}
Summary:	Routines for computing column approximate minimum degree ordering
Group:		Development/C
Provides:	%{colamd_packagename} = %{EVRD}
Obsoletes:	%{colamd_packagename} < %{EVRD}

%description -n %{colamd_packagename}
The COLAMD column approximate minimum degree ordering algorithm computes
a permutation vector P such that the LU factorization of A (:,P)
tends to be sparser than that of A.  The Cholesky factorization of
(A (:,P))'*(A (:,P)) will also tend to be sparser than that of A'*A.

%files -n %{colamd_packagename}
%{_libdir}/libcolamd.so.%{colamd_version_major}*

#---------------------------------------------------------------------

%package -n %{cxsparse_packagename}
Summary:	Direct methods for sparse linear systems
Group:		Development/C
Provides:	%{cxsparse_packagename} = %{EVRD}
Obsoletes:	%{cxsparse_packagename} < %{EVRD}

%description -n %{cxsparse_packagename}
CSparse is a package of direct methods for sparse linear systems written
to complement the book "Direct Methods for Sparse Linear Systems", by
Timothy A. Davis. The algorithms in CSparse have been chosen with
five goals in mind:

(1) they must embody much of the theory behind sparse matrix algorithms,
(2) they must be either asymptotically optimal in their run time and memory
    usage or be fast in practice,
(3) they must be concise so as to be easily understood and short enough to
    print in the book,
(4) they must cover a wide spectrum of matrix operations, and
(5) they must be accurate and robust.

The focus is on direct methods; iterative methods and solvers for
eigenvalue problems are beyond the scope of this package.

CXSparse is a version of CSparse that operates on both real and complex
matrices, using either int or UF_long integers.

%files -n %{cxsparse_packagename}
%{_libdir}/libcxsparse.so.%{cxsparse_version_major}*

#---------------------------------------------------------------------

%package -n %{klu_packagename}
Summary:	Sparse LU factorization, for circuit simulation
Group:		Development/C
Provides:	%{klu_packagename} = %{EVRD}
Obsoletes:	%{klu_packagename} < %{EVRD}

%description -n %{klu_packagename}
KLU is a sparse LU factorization algorithm well-suited for use in
circuit simulation.

%files -n %{klu_packagename}
%{_libdir}/libklu.so.%{klu_version_major}*

#---------------------------------------------------------------------

%package -n %{ldl_packagename}
Summary:	A consise sparse Cholesky factorization package
Group:		Development/C
Provides:	%{ldl_packagename} = %{EVRD}
Obsoletes:	%{ldl_packagename} < %{EVRD}

%description -n %{ldl_packagename}
LDL is a set of concise routines for factorizing symmetric positive-definite
sparse matrices, with some applicability to symmetric indefinite matrices.
Its primary purpose is to illustrate much of the basic theory of sparse matrix
algorithms in as concise a code as possible, including an elegant new method
of sparse symmetric factorization that computes the factorization row-by-row
but stores it column-by-column. The entire symbolic and numeric factorization
consists of a total of only 49 lines of code. The package is written in C,
and includes a MATLAB interface.

%files -n %{ldl_packagename}
%{_libdir}/libldl.so.%{ldl_version_major}*

#---------------------------------------------------------------------

%package -n %{umfpack_packagename}
Summary:	Routines for solving unsymmetric sparse linear systems
Group:		Development/C
Provides:	%{umfpack_packagename} = %{EVRD}
Obsoletes:	%{umfpack_packagename} < %{EVRD}

%description -n %{umfpack_packagename}
UMFPACK provides a set of routines for solving unsymmetric sparse
linear systems Ax=b using the Unsymmetric MultiFrontal method. It is
written in ANSI/ISO C. Note that "UMFPACK" is pronounced in two
syllables, "Umph Pack"; it is not "You Em Ef Pack".

%files -n %{umfpack_packagename}
%{_libdir}/libumfpack.so.%{umfpack_version_major}*

#---------------------------------------------------------------------

%package -n %{spqr_packagename}
Summary:	Multithreaded multifrontal sparse QR factorization
Group:		Development/C
Provides:	%{spqr_packagename} = %{EVRD}
Obsoletes:	%{spqr_packagename} < %{EVRD}

%description -n %{spqr_packagename}
SuiteSparseQR is an implementation of the multifrontal sparse QR factorization
method. Parallelism is exploited both in the BLAS and across different frontal
matrices using Intel's Threading Building Blocks, a shared-memory programming
model for modern multicore architectures. It can obtain a substantial fraction
of the theoretical peak performance of a multicore computer. The package is
written in C++ with user interfaces for MATLAB, C, and C++.

%files -n %{spqr_packagename}
%{_libdir}/libspqr.so.%{spqr_version_major}*

#---------------------------------------------------------------------

%package -n %{rbio_packagename}
Summary:	MATLAB toolbox for reading/writing sparse matrices in Rutherford/Boeing
Group:		Development/C
Provides:	%{rbio_packagename} = %{EVRD}
Obsoletes:	%{rbio_packagename} < %{EVRD}

%description -n %{rbio_packagename}
RBio - MATLAB toolbox for reading/writing sparse matrices in the
Rutherford/Boeing format, and for reading/writing problems in the UF Sparse
Matrix Collection from/to a set of files in a directory.
Version 2.0 is written in C. Older versions are in Fortran.

%files -n %{rbio_packagename}
%{_libdir}/librbio.so.%{rbio_version_major}*

#---------------------------------------------------------------------

%package -n %{mongoose_packagename}
Summary:	Mongoose is a graph partitioning library
Group:		Development/C
Provides:	%{mongoose_packagename} = %{EVRD}
Obsoletes:	%{mongoose_packagename} < %{EVRD}

%description -n %{mongoose_packagename}
Mongoose is a graph partitioning library. Currently, Mongoose only supports edge partitioning,
but in the future a vertex separator extension will be added.

%files -n %{mongoose_packagename}
%{_libdir}/libmongoose.so.%{mongoose_version_major}*

#---------------------------------------------------------------------

%package -n mongoose-bin
Summary:	Mongoose is a graph partitioning library
Group:		Development/C
Requires:	%{mongoose_packagename} = %{EVRD}

%description -n mongoose-bin
Mongoose is a graph partitioning library. Currently, Mongoose only supports edge partitioning,
but in the future a vertex separator extension will be added.

%files -n mongoose-bin
%{_bindir}/mongoose

#---------------------------------------------------------------------

%package -n %{sliplu_packagename}
Summary:	Mongoose is a graph partitioning library
Group:		Development/C
Provides:	%{sliplu_packagename} = %{EVRD}
Obsoletes:	%{sliplu_packagename} < %{EVRD}

%description -n %{sliplu_packagename}
Mongoose is a graph partitioning library. Currently, Mongoose only supports edge partitioning,
but in the future a vertex separator extension will be added.

%files -n %{sliplu_packagename}
%{_libdir}/libsliplu.so.%{sliplu_version_major}*

#---------------------------------------------------------------------

%package -n %{graphblas_packagename}
Summary:	SuiteSparse:GraphBLAS is an full implementation of the GraphBLAS standard
Group:		Development/C
Provides:	%{graphblas_packagename} = %{EVRD}
Obsoletes:	%{graphblas_packagename} < %{EVRD}


%description -n %{graphblas_packagename}
SuiteSparse:GraphBLAS is an full implementation of the GraphBLAS standard,
which defines a set of sparse matrix operations on an extended algebra of
semirings using an almost unlimited variety of operators and types.
When applied to sparse adjacency matrices, these algebraic operations are
equivalent to computations on graphs. GraphBLAS provides a powerful
and expressive framework for creating graph algorithms based on the elegant
mathematics of sparse matrix operations on a semiring.

See the user guide in Doc/GraphBLAS_UserGuide.pdf for documentation on the
SuiteSparse implementation of GraphBLAS, and how to use it in your applications.

%files -n %{graphblas_packagename}
#%%{_bindir}/gr*
%{_libdir}/libgraphblas.so.%{graphblas_version_major}*

#---------------------------------------------------------------------

%package -n %{graphblas_packagedev}
Summary:	SuiteSparse:GraphBLAS development files
Group:		Development/C
Requires:	%{graphblas_packagename} = %{EVRD}
Provides:	graphblas-devel = %{EVRD}
Provides:	%{graphblas_packagedev} = %{EVRD}
Obsoletes:	%{graphblas_packagedev} < %{EVRD}
Obsoletes:	graphblas-devel < %{EVRD}

%description -n %{graphblas_packagedev}
SuiteSparse:GraphBLAS development files

%files -n %{graphblas_packagedev}
%{_libdir}/libgraphblas.so
%{_includedir}/GraphBLAS.h

#---------------------------------------------------------------------

%prep
%setup -qn SuiteSparse-%{version}
%ifarch %{e2k}
%patch0 -p1
%endif

%build
export BLAS=-lblas
export LAPACK=-llapack
export CFLAGS="%{optflags}"
export MY_METIS_LIB=-lmetis
%make_build config
%make_build

%install
#do not use makeinstall macros
make install BLAS=-lblas LAPACK=-llapack MY_METIS_LIB=-lmetis INSTALL=%{buildroot}%{_prefix} INSTALL_LIB=%{buildroot}%{_libdir}

mkdir -p %{buildroot}/%{_includedir}/%{name}/
cp -v SuiteSparse_config/SuiteSparse_config.h %{buildroot}/%{_includedir}/%{name}/
cp -v SuiteSparse_config/SuiteSparse_config.mk %{buildroot}/%{_includedir}/%{name}/

#remove unneeded files
rm  %{buildroot}%{_includedir}/*.hpp
rm  %{buildroot}%{_libdir}/libmongoose.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17456 |21mr|suitesparse-common-devel-4.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define ONAME	SuiteSparse_config

Summary:	Configuration file for SuiteSparse packages
Name:		suitesparse-common-devel
Version:	4.0.2
Release:	7
License:	LGPL
Group:		Development/C
Url:		http://www.cise.ufl.edu/research/sparse/UFconfig/
Source0:	http://www.cise.ufl.edu/research/sparse/UFconfig/%{ONAME}-%{version}.tar.gz
Provides:	ufsparse-common-devel = %{version}-%{release}

%description
UFconfig provides a configuration header file needed by most of the other
packages in SuiteSparse. And static library with few functions.

%prep
%setup -q -n %{ONAME}
chmod 0644 README.txt

%build
%make CF="%{optflags}"

%install
install -d -m 755 %{buildroot}/%{_includedir}/suitesparse
install -m 644 *.h %{buildroot}/%{_includedir}/suitesparse
install -m 644 *.mk %{buildroot}/%{_includedir}/suitesparse

install -d -m 755 %{buildroot}/%{_libdir}
install -m 644 *.a %{buildroot}/%{_libdir}

%files
%doc README.txt
%{_includedir}/suitesparse/*.*
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17457 |21mr|super-csv-2.4.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          super-csv
Version:       2.4.0
Release:       10
Summary:       A fast, programmer-friendly, free CSV library for Java
License:       ASL 2.0
URL:           http://super-csv.github.io/super-csv/index.html
Source0:       https://github.com/super-csv/super-csv/archive/v%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.sf.dozer:dozer)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The main motivation for Super CSV is to be the foremost,
fastest, and most programmer-friendly, free CSV package
for Java.

%package dozer
Summary:       Super CSV Dozer Extension

%description dozer
An extension for Super CSV that uses Dozer for
reading/writing between CSV and POJOs.

%package java8
Summary:       Super CSV Java 8 Extension

%description java8
An extension for Super CSV for use with Java 8.

%package joda
Summary:       Super CSV Joda-Time Extension

%description joda
An extension for Super CSV that contains cell processors for
Joda-Time classes.

%package parent
Summary:       Super CSV parent POM

%description parent
Super CSV parent project.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
# Cleanup
find -name '*.class' -print -delete
find -name '*.jar' -print -delete

# Unavailable plugins
%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :cobertura-maven-plugin
# Unwanted tasks
%pom_remove_plugin -r :maven-assembly-plugin
%pom_remove_plugin -r :maven-eclipse-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-release-plugin
%pom_remove_plugin -r :maven-scm-publish-plugin
%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :maven-source-plugin

# Empty artifact, only for testing
%pom_disable_module %{name}-benchmark

%pom_disable_module %{name}-distribution

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}
%doc README.md
%license LICENSE.txt

%files dozer -f .mfiles-%{name}-dozer
%files java8 -f .mfiles-%{name}-java8
%files joda -f .mfiles-%{name}-joda

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17458 |21mr|superlu-5.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname superlu %{major}
%define devname %mklibname superlu -d
%define _disable_ld_no_undefined %nil

%define oname SuperLU
%define Werror_cflags %{nil}

Summary:	Matrix solver
Name:		superlu
Version:	5.2.2
Release:	1
License:	BSD
Group:		Development/C
Url:		http://crd.lbl.gov/~xiaoye/SuperLU/
Source0:	https://github.com/xiaoyeli/superlu/archive/v%{version}.tar.gz
BuildRequires:	gcc-gfortran
BuildRequires:	tcsh
BuildRequires:	pkgconfig(blas)
BuildRequires:	cmake
# Build with -fPIC
Patch0:		%{name}-5x-add-fpic.patch
# Build shared library
Patch1:		%{name}-5x-build-shared-lib3.patch
# Fixes testsuite
Patch3:		%{name}-5x-fix-testsuite.patch
#Patch4:		https://data.gpo.zugaina.org/gentoo/sci-libs/superlu/files/superlu-5.2.2-no-internal-blas.patch
# remove non-free mc64 functionality
# patch obtained from the debian package
#Patch4:		%{name}-removemc64.patch

%description
SuperLU is an algorithm that uses group theory to optimize LU
decomposition of sparse matrices. It's the fastest direct solver for
linear systems that the author is aware of.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for SuperLU
Group:		System/Libraries

%description -n %{libname}
SuperLU is an algorithm that uses group theory to optimize LU
decomposition of sparse matrices. It's the fastest direct solver for
linear systems that the author is aware of.

%files -n %{libname}
%{_libdir}/libsuperlu.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for SuperLU development
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
Header files and libraries for SuperLU development.

%files -n %{devname}
%doc README
%doc DOC
%{_includedir}/*.h
%{_libdir}/cmake/superlu/*.cmake
%{_libdir}/libsuperlu.so
%{_libdir}/pkgconfig/superlu.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

# respect user's CFLAGS
sed -i -e 's/O3//' CMakeLists.txt

find . -type f | sed -e "/TESTING/d" | xargs chmod a-x

cp -p MAKE_INC/make.linux make.inc
sed -i	-e "s|-O3|%{optflags}|"							\
	-e "s|\$(SUPERLULIB) ||"							\
	-e "s|\$(HOME)/Dropbox/Codes/%{name}/%{name}|%{_builddir}/%{name}_%{version}|"	\
	-e 's|SuperLUroot.*|SuperLUroot = "%{_builddir}/%{name}_%{version}"|'		\
	-e 's!lib/libsuperlu_5.1.a$!SRC/libsuperlu.so!'					\
	-e 's!-shared!& %{ldflags}!'							\
	-e "s|-L/usr/lib -lblas|-L%{_libdir}/atlas -lsatlas|"				\
	make.inc

%build
%set_build_flags
%cmake -DCMAKE_BUILD_TYPE=Release \
	-Denable_internal_blaslib:BOOL=OFF \
	-DUSE_XSDK_DEFAULTS='FALSE' \
	-Denable_tests=OFF \
	-DBUILD_SHARED_LIBS=ON

%make_build

%install
%make_install -C build
#fix permissions
chmod 644 MATLAB/*

# remove all build examples
cd EXAMPLE
make clean
rm -rf *itersol*
cd ..
mv EXAMPLE examples
cp FORTRAN/README README.fortran

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17459 |21mr|supermin-5.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifnarch %{ocaml_native_compiler}
%global __strip /bin/true
%global debug_package %{nil}
%endif

# The source directory.
%global source_directory 5.2-stable

Summary:       Tool for creating supermin appliances
Name:          supermin
Version:       5.2.0
Release:       4
License:       GPLv2+
Group:         File tools

URL:           http://people.redhat.com/~rjones/supermin/
Source0:       http://download.libguestfs.org/supermin/%{source_directory}/%{name}-%{version}.tar.gz
# Fix: ppc64le: ibmvscsi driver missing from supermin appliance.
# Upstream patch, fixes RHBZ#1819019
Patch1:        0001-supermin-Fix-IBM-Virtual-SCSI-driver-name.patch

BuildRequires: /usr/bin/pod2man
BuildRequires: /usr/bin/pod2html
BuildRequires: rpm
BuildRequires: rpm-devel
BuildRequires: dnf
BuildRequires: glibc-static-devel
BuildRequires: dnf-plugins-core
BuildRequires: e2fsprogs
BuildRequires: pkgconfig(ext2fs)
BuildRequires: findutils
BuildRequires: ocaml, ocaml-findlib-devel

# For complicated reasons, this is required so that
# /bin/kernel-install puts the kernel directly into /boot, instead of
# into a /boot/<machine-id> subdirectory (in Fedora >= 23).  Read the
# kernel-install script to understand why.
BuildRequires: grubby

Requires:      rpm
Requires:      dnf
Requires:      dnf-plugins-core
Requires:      util-linux-ng
Requires:      cpio
Requires:      tar
Requires:      e2fsprogs
Requires:      findutils

# For automatic RPM dependency generation.
# See: http://www.rpm.org/wiki/PackagerDocs/DependencyGenerator
Source3:       supermin.attr
Source4:       supermin-find-requires


%description
Supermin is a tool for building supermin appliances.  These are tiny
appliances (similar to virtual machines), usually around 100KB in
size, which get fully instantiated on-the-fly in a fraction of a
second when you need to boot one of them.


%package devel
Summary:       Development tools for %{name}
Requires:      %{name} = %{version}-%{release}
Requires:      rpm-build


%description devel
%{name}-devel contains development tools for %{name}.

It just contains tools for automatic RPM dependency generation
from supermin appliances.


%prep
%autosetup -p1


%build
%configure --disable-network-tests
%make_build


%install
%make_install

mkdir -p %{buildroot}%{_rpmconfigdir}/fileattrs/
install -m 0644 %{SOURCE3} %{buildroot}%{_rpmconfigdir}/fileattrs/
install -m 0755 %{SOURCE4} %{buildroot}%{_rpmconfigdir}/


%files
%doc COPYING README examples/build-basic-vm.sh
%{_bindir}/supermin
%{_mandir}/man1/supermin.1*

%files devel
%{_rpmconfigdir}/fileattrs/supermin.attr
%{_rpmconfigdir}/supermin-find-requires

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17460 |21mr|suricata-6.0.20-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# prelude support BROKEN!!! enable it in configure after close this ticket
# https://redmine.openinfosecfoundation.org/issues/4065

%define major 2
%define libhtp %mklibname htp %{major}
%define devhtp %mklibname htp -d

%define update_version 1.2.3

Summary:	Intrusion Detection System
Name:		suricata
Version:	6.0.20
Release:	2
License:	GPLv2+
Group:		Security
Url:		http://suricata-ids.org/
Source0:	http://www.openinfosecfoundation.org/download/%{name}-%{version}.tar.gz
Source3:	suricata.sysconfig
Source4:	suricata.sysusers.conf
Source5:	suricata-tmpfiles.conf
# Irrelevant docs are getting installed, drop them
Patch0:		suricata-2.0.9-docs.patch
Patch1:		suricata-service.patch
Patch2:		suricata-rules.patch
Patch3:		CVE-2024-45796.patch
BuildRequires:	cargo
BuildRequires:	rustc
BuildRequires:	python3-yaml
BuildRequires:	libnet-devel
BuildRequires:	magic-devel
BuildRequires:	pcap-devel
BuildRequires:	pkgconfig(geoip)
BuildRequires:	pkgconfig(jansson)
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libmaxminddb)
BuildRequires:	pkgconfig(libnetfilter_queue)
BuildRequires:	pkgconfig(libnfnetlink)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libprelude)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(yaml-0.1)
BuildRequires:	pkgconfig(zlib)
Requires(pre):	/bin/systemd-sysusers
Requires(post,preun):	rpm-helper

%description
The Suricata Engine is an Open Source Next Generation Intrusion
Detection and Prevention Engine. This engine is not intended to
just replace or emulate the existing tools in the industry, but
will bring new ideas and technologies to the field. This new Engine
supports Multi-threading, Automatic Protocol Detection (IP, TCP,
UDP, ICMP, HTTP, TLS, FTP and SMB! ), Gzip Decompression, Fast IP
Matching and coming soon hardware acceleration on CUDA and OpenCL
GPU cards.

%files
%doc COPYING doc/INSTALL
%{_sbindir}/suricata
%{_sbindir}/suricatasc
%{_sbindir}/suricatactl
%{_sbindir}/suricata-update
%{_datadir}/suricata
%{_usr}/lib/suricata/python/suricata/*
%{_usr}/lib/suricata/python/suricatasc
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/rules
%{_sysusersdir}/%{name}.conf
%{_unitdir}/suricata.service
%attr(755,suricata,suricata) %dir %{_logdir}/suricata
%config(noreplace) %{_sysconfdir}/%{name}/suricata.yaml
%config(noreplace) %{_sysconfdir}/%{name}/*.config
%config(noreplace) %{_sysconfdir}/%{name}/rules/*.rules
%config(noreplace) %{_sysconfdir}/logrotate.d/suricata
%config(noreplace) %{_sysconfdir}/sysconfig/suricata
%config(noreplace) %{_tmpfilesdir}/%{name}.conf
%{_mandir}/man1/suricata.1*
%{_mandir}/man1/suricatactl-filestore.1*
%{_mandir}/man1/suricatactl.1*
%{_mandir}/man1/suricatasc.1*

%pre
# create users and groups
%sysusers_create_package suricata %{SOURCE4}

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service suricata

%preun
%_preun_service suricata

#----------------------------------------------------------------------------

%package -n %{libhtp}
Summary:	Security-aware parser for the HTTP protocol shared library
Group:		System/Libraries

%description  -n %{libhtp}
Security-aware parser for the HTTP protocol shared library.

%files -n %{libhtp}
%{_libdir}/libhtp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devhtp}
Summary:	Security-aware parser for the HTTP protocol library development files
Group:		Development/C
Provides:	htp-devel = %{EVRD}

%description  -n %{devhtp}
Security-aware parser for the HTTP protocol library development files.

%files -n %{devhtp}
%{_includedir}/htp/
%{_includedir}/suricata-plugin.h
%{_libdir}/libhtp.so
%{_libdir}/pkgconfig/htp.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--enable-af-packet \
	--disable-coccinelle \
	--disable-gccmarch-native \
	--enable-gccprotect \
	--enable-geoip \
	--enable-jansson \
	--enable-lua \
	--enable-nfqueue \
	--enable-pie \
	--disable-prelude \
	--enable-rust

%make

%install
%makeinstall_std bindir=%{_sbindir}


# Setup etc directory
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
install -m 644 suricata.yaml %{buildroot}%{_sysconfdir}/%{name}
install -m 644 *.config %{buildroot}%{_sysconfdir}/%{name}

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}/rules
install -m 644 rules/*.rules %{buildroot}%{_sysconfdir}/%{name}/rules

install -D -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/suricata

install -D -m 644 etc/suricata.service %{buildroot}%{_unitdir}/suricata.service

install -D -m 644 etc/suricata.logrotate %{buildroot}%{_sysconfdir}/logrotate.d/suricata

install -D -m 644 etc/classification.config %{buildroot}%{_sysconfdir}/%{name}/classification.config
install -D -m 644 etc/reference.config %{buildroot}%{_sysconfdir}/%{name}/reference.config

# Make logging directory
install -d -m 755 %{buildroot}%{_logdir}/%{name}

rm -fr %{buildroot}%{_docdir}/%{name}

# Setup tmpdirs
install -d -m 755 %{buildroot}%{_tmpfilesdir}
install -m 644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/suricata.conf


%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17461 |21mr|sushi-42.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Find in LibreOffice
%global __requires_exclude LOKDocView

%define url_ver %(echo %{version}|cut -d. -f1)

%define api 1.0
%define major 0
%define gmajor 1.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{gmajor}
%define devname %mklibname %{name} %{api} -d

Summary:	Quick Previewer for Nautilus
Name:		sushi
Version:	42.0
Release:	3
License:	GPLv2+
Group:		File tools
Url:		https://download.gnome.org/sources/sushi
Source0:	https://download.gnome.org/sources/sushi/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gjs
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	unoconv
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(clutter-1.0)
BuildRequires:	pkgconfig(clutter-gst-3.0)
BuildRequires:	pkgconfig(clutter-gtk-1.0)
BuildRequires:	pkgconfig(evince-document-3.0)
BuildRequires:	pkgconfig(evince-view-3.0)
BuildRequires:	pkgconfig(gjs-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-tag-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(libmusicbrainz5)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
Requires:	%{libname} = %{EVRD}
Requires:	typelib(GstBase)
Requires:	typelib(GstTag)
Requires:	typelib(ClutterGst)
Requires:	typelib(GstVideo)
Recommends:	nautilus
Recommends:	unoconv

%description
Sushi is a quick previewer for Nautilus, the GNOME desktop file manager.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%license COPYING
%{_appdatadir}/org.gnome.NautilusPreviewer.appdata.xml
%{_bindir}/%{name}
%{_datadir}/dbus-1/services/org.gnome.NautilusPreviewer.service
%{_datadir}/%{name}/gtksourceview-4/styles/builder-dark.style-scheme.xml
%{_datadir}/%{name}/org.gnome.NautilusPreviewer.data.gresource
%{_datadir}/%{name}/org.gnome.NautilusPreviewer.src.gresource
%{_libexecdir}/org.gnome.NautilusPreviewer

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Runtime libraries for %{name}
Group:		System/Libraries
# When built with unoconv support, the library will use unoconv to
# read LibreOffice files
Recommends:	unoconv

%description -n %{libname}
Runtime libraries for %{name}.

%files -n %{libname}
%license COPYING
%{_libdir}/%{name}/lib%{name}-%{api}.so

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject introspection interface for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/%{name}/girepository-1.0/Sushi-%{gmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The sushi-devel package contains libraries and header files for developing
applications that use sushi.

%files -n %{devname}
%license COPYING
%{_datadir}/%{name}/gir-1.0/Sushi-%{gmajor}.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17462 |21mr|svgcleaner-0.9.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to clean up SVG files
Name:		svgcleaner
Version:	0.9.5
Release:	4
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/RazrFalcon/svgcleaner
Source0:	https://github.com/RazrFalcon/svgcleaner/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/RazrFalcon/svgcleaner-gui/archive/refs/tags/v%{version}.tar.gz?/%{name}-gui-%{version}.tar.gz
Source2:	vendor.tar.xz
BuildRequires:	cargo
BuildRequires:	rust
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	p7zip
Provides:	SVGCleaner = %{EVRD}

%description
Generally, SVG files produced by vector editors contain a lot of unused
elements and attributes that just blow up their size without providing better
visible quality.
SVG Cleaner could help you to clean up your SVG files from unnecessary data.
It has a lot of options for cleanup and optimization, works in batch mode,
provides threaded processing on the multicore processors and basically does
two things:
  - removing elements and attributes that don't contribute to the final
    rendering;
  - making those elements and attributes in use more compact.
Images cleaned by SVG Cleaner are typically 10-60 percent smaller than the
original ones.

%files
%doc README.rst
%license LICENSE.txt
%{_bindir}/svgcleaner
%{_bindir}/svgcleaner-gui
%{_datadir}/applications/svgcleaner.desktop
%{_iconsdir}/hicolor/*/apps/svgcleaner.*

#-----------------------------------------------------------------------------

%prep
%setup -q
%setup -q -a1
%setup -q -D -T -a2
mkdir cargo-home
cat >cargo-home/config <<EOF
[source.crates-io]
registry = 'https://github.com/rust-lang/crates.io-index'
replace-with = 'vendored-sources'
[source.vendored-sources]
directory = './vendor'
EOF

%build
export CARGO_HOME=$(pwd)/cargo-home/
cargo build --release %{?_smp_mflags} --offline

pushd %{name}-gui-%{version}
%qmake_qt5
%make
popd

%install
export CARGO_HOME=$(pwd)/cargo-home/
cargo install --root %{buildroot}%{_prefix} --offline

%makeinstall_qt -C %{name}-gui-%{version}

rm -f %{buildroot}%{_prefix}/.crates*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17463 |21mr|svgpart-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	A KPart to display SVG images
Name:		svgpart
Version:	23.08.4
Release:	1
Epoch:		2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5parts-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
A KPart to display SVG images.

%files -f %{name}.lang
%{_kde5_services}/svgpart.desktop
%{_qt5_plugindir}/kf5/parts/svgpart.so
%{_appdatadir}/org.kde.svgpart.metainfo.xml

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17464 |21mr|svnkit-1.8.12-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The version of Subversion that we are compatible with
%global svn_version 1.8.1

Epoch:   1
Name:    svnkit
Version: 1.8.12
Release: 7
Summary: Pure Java library to manage Subversion working copies and repositories

# License located at https://svnkit.com/license.html
License:        TMate and ASL 2.0
URL:            https://www.svnkit.com/
Source0:        https://www.svnkit.com/org.tmatesoft.svn_%{version}.src.zip

# POMs
Source1:        http://repo1.maven.org/maven2/org/tmatesoft/svnkit/svnkit/%{version}/svnkit-%{version}.pom
Source2:        http://repo1.maven.org/maven2/org/tmatesoft/svnkit/svnkit-cli/%{version}/svnkit-cli-%{version}.pom
Source3:        http://repo1.maven.org/maven2/org/tmatesoft/svnkit/svnkit-javahl16/%{version}/svnkit-javahl16-%{version}.pom

# Custom aggregator pom to avoid reliance on gradle
Source4:        svnkit-parent.pom

# SVNKit provides a pure-Java implementation of the Subversion JavaHL API, but it only provides an older
# Subversion JavaHL API, so we need an old version of the JavaHL source to build against. This is that:
#  $ svn export https://svn.apache.org/repos/asf/subversion/tags/1.8.1/subversion/bindings/javahl/src/ javahl-1.8.1
Source5:        javahl-%{svn_version}.tar.gz

# Just in SRPM due to nailgun comes included in svnkit upstream sources:
Source10:       https://www.apache.org/licenses/LICENSE-2.0.txt
Source11:       https://www.apache.org/licenses/LICENSE-1.1.txt

# svnkit's trilead-ssh2 does not throw InterruptedException from Session.waitForCondition()
# Fedora's trilead-ssh2 trhows ...
Patch1:         svnkit-1.8.5-SshSession-unreported-exception.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.jcraft:jsch.agentproxy.connector-factory)
BuildRequires:  mvn(com.jcraft:jsch.agentproxy.svnkit-trilead-ssh2)
BuildRequires:  mvn(com.trilead:trilead-ssh2)
BuildRequires:  mvn(de.regnis.q.sequence:sequence-library) >= 1.0.3
BuildRequires:  mvn(net.java.dev.jna:jna)
BuildRequires:  mvn(net.java.dev.jna:jna-platform)
BuildRequires:  mvn(org.tmatesoft.sqljet:sqljet)

%description
SVNKit is a pure java Subversion client library. You would like to use SVNKit
when you need to access or modify Subversion repository from your Java
application, as a standalone program and plugin or web application. Being a
pure java program, SVNKit doesn't need any additional configuration or native
binaries to work on any OS that runs java.

%package cli
Summary: SVNKit based Subversion command line client
# Explicit requires for javapackages-tools since scripts
# use /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description cli
%{summary}.

%package javahl
Summary: SVNKit based Subversion JavaHL API implementation

%description javahl
%{summary}.

%package javadoc
Summary: Javadoc for SVNKit

%description javadoc
API documentation for SVNKit.

%prep
%setup -q -n %{name}-%{version}

%patch1 -p1

# Delete all pre-built binaries, except for "template.jar" which is important
# for the function of svnkit and contains no actual bytecode:
find -name *.class -delete
find -name *.jar -a ! -name template.jar -delete

cp -pr %{SOURCE1} svnkit/pom.xml
cp -pr %{SOURCE2} svnkit-cli/pom.xml
cp -pr %{SOURCE3} svnkit-javahl16/pom.xml
cp -pr %{SOURCE4} pom.xml

# Build against the bundled version of the JavaHL API source
(cd svnkit-javahl16/src/main/java/ &&  tar xf %{SOURCE5} --strip-components=1 --skip-old-files)
%pom_remove_dep ":svn-javahl-api" svnkit-javahl16
%pom_remove_dep ":svn-javahl-tests" svnkit-javahl16

rev="t$(date -u +%Y%m%d%H%M)"
cat > svnkit/src/main/resources/svnkit.build.properties <<EOF
svnkit.version=%{version}
build.number=$rev

svnkit.version.string=SVN/%{svn_version} SVNKit/%{version} (http://svnkit.com/) $rev
svnkit.version.major=$(echo "%{version}" | cut -f1 -d.)
svnkit.version.minor=$(echo "%{version}" | cut -f2 -d.)
svnkit.version.micro=$(echo "%{version}" | cut -f3 -d.)
svnkit.version.revision=$rev

svnkit.svn.version=%{svn_version}
EOF

# Don't install our custom aggregator pom
%mvn_package ":parent" __noinstall

%build
# Upstream builds with ignore test failures set to true, so I guess we shouldn't expect them to work...
# Let's skip tests for now.
%mvn_build -s -f -- -Dproject.buildVersion.baseVersion=%{version}

%install
%mvn_install

# Generate scripts for command line tools
for class in SVN SVNAdmin SVNDumpFilter SVNLook SVNSync SVNVersion ; do
  mainclass=org.tmatesoft.svn.cli.$class
  script=j$(echo $class | tr '[:upper:]' '[:lower:]')
  %jpackage_script "$mainclass" "-Dsun.io.useCanonCaches=false" "" "svnkit:sequence-library:sqljet:antlr32/antlr-runtime-3.2:trilead-ssh2" "$script" true
done

%files -f .mfiles-svnkit
%license LICENSE.txt README.txt CHANGES.txt

%files cli -f .mfiles-svnkit-cli
%{_bindir}/*

%files javahl -f .mfiles-svnkit-javahl16

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17465 |21mr|svt-av1-1.7.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname SVT-AV1

%define	major 0
%define	enc_major 1
%define	libname %mklibname svt-av1 %{major}
%define	devname %mklibname svt-av1 -d

Summary:	Scalable Video Technology for AV1 Encoder
Name:		svt-av1
Version:	1.7.0
Release:	1
License:	BSD 3-clause
Group:		System/Libraries
Url:		https://gitlab.com/AOMediaCodec/SVT-AV1
Source0:	https://gitlab.com/AOMediaCodec/SVT-AV1/-/archive/v%{version}/%{oname}-v%{version}.tar.bz2
BuildRequires:	cmake
BuildRequires:	help2man
BuildRequires:	meson
BuildRequires:	yasm
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
Requires:	%{libname} = %{EVRD}
Requires:	gstreamer1.0-%{name} = %{EVRD}

%description
The Scalable Video Technology for AV1 Encoder (SVT-AV1 Encoder) is an
AV1-compliant encoder library core. The SVT-AV1 development is a
work-in-progress targeting performance levels applicable to both VOD and Live
encoding / transcoding video applications.

%files
%{_bindir}/SvtAv1DecApp
%{_bindir}/SvtAv1EncApp
%{_mandir}/man1/SvtAv1DecApp.1*
%{_mandir}/man1/SvtAv1EncApp.1*

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	SVT-AV1 libraries
Group:		System/Libraries

%description -n %{libname}
This package contains SVT-AV1 libraries.

%files -n %{libname}
%doc CHANGELOG.md CONTRIBUTING.md README.md
%license LICENSE.md PATENTS.md
%{_libdir}/libSvtAv1Dec.so.%{major}*
%{_libdir}/libSvtAv1Enc.so.%{enc_major}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for SVT-AV1
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Recommends:	%{name}-devel-docs = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for SVT-AV1.

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/libSvtAv1Dec.so
%{_libdir}/libSvtAv1Enc.so
%{_libdir}/pkgconfig/SvtAv1Dec.pc
%{_libdir}/pkgconfig/SvtAv1Enc.pc

#------------------------------------------------------------------------

%package devel-docs
Summary:	Development documentation for SVT-AV1
Group:		Documentation
BuildArch:	noarch

%description devel-docs
This package contains the documentation for development of SVT-AV1.

%files devel-docs
%doc Docs
%license LICENSE.md PATENTS.md

#------------------------------------------------------------------------

%package -n gstreamer1.0-%{name}
Summary:	GStreamer 1.0 %{name}-based plug-in
Group:		Video
Requires:	gstreamer1.0-plugins-base

%description -n gstreamer1.0-%{name}
This package provides %{name}-based GStreamer plug-in.
%files -n gstreamer1.0-%{name}
%{_libdir}/gstreamer-1.0/libgstsvtav1enc.so

#------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-v%{version}

# Patch build gstreamer plugin
sed -e "s|install: true,|install: true, include_directories : [ include_directories('../Source/API') ], link_args : '-lSvtAv1Enc',|" \
-e "/svtav1enc_dep =/d" -e 's|, svtav1enc_dep||' -e "s|svtav1enc_dep.found()|true|" -i gstreamer-plugin/meson.build


%build
%cmake -DCMAKE_BUILD_TYPE=Release
%make_build

cd ..
export LIBRARY_PATH="$LIBRARY_PATH:$(pwd)/Bin/Release"
pushd gstreamer-plugin
    %meson
    %meson_build
popd


%install
%make_install -C build

install -d -m0755 %{buildroot}/%{_mandir}/man1
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:%{buildroot}%{_libdir}
help2man -N --help-option=-help --version-string=%{version} %{buildroot}%{_bindir}/SvtAv1DecApp > %{buildroot}%{_mandir}/man1/SvtAv1DecApp.1
help2man -N --help-option=-help --no-discard-stderr --version-string=%{version} %{buildroot}%{_bindir}/SvtAv1EncApp > %{buildroot}%{_mandir}/man1/SvtAv1EncApp.1

pushd gstreamer-plugin
    %meson_install
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17466 |21mr|swagger-core-1.5.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %nil
%global namedversion %{version}%{?namedreltag}
Name:          swagger-core
Version:       1.5.10
Release:       6
Summary:       Java implementation of Swagger
# Source files without license headers https://github.com/swagger-api/swagger-core/issues/1882
License:       ASL 2.0
URL:           http://swagger.io/
Source0:       https://github.com/swagger-api/swagger-core/archive/v%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(asm:asm)
BuildRequires: mvn(ch.qos.logback:logback-classic)
BuildRequires: mvn(ch.qos.logback:logback-core)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-xml)
BuildRequires: mvn(com.fasterxml.jackson.dataformat:jackson-dataformat-yaml)
BuildRequires: mvn(com.fasterxml.jackson.datatype:jackson-datatype-guava)
BuildRequires: mvn(com.fasterxml.jackson.datatype:jackson-datatype-joda)
BuildRequires: mvn(com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.sun.jersey:jersey-client:1)
BuildRequires: mvn(com.sun.jersey:jersey-core:1)
BuildRequires: mvn(com.sun.jersey:jersey-server:1)
BuildRequires: mvn(com.sun.jersey:jersey-servlet:1)
BuildRequires: mvn(com.sun.jersey.contribs:jersey-multipart:1)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.validation:validation-api)
BuildRequires: mvn(javax.ws.rs:jsr311-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires: mvn(org.glassfish.jersey.containers:jersey-container-servlet-core)
BuildRequires: mvn(org.glassfish.jersey.media:jersey-media-multipart)
BuildRequires: mvn(org.hibernate:hibernate-validator)
BuildRequires: mvn(org.joda:joda-convert)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.powermock:powermock-api-mockito)
BuildRequires: mvn(org.reflections:reflections)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.testng:testng)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The goal of Swagger is to define a standard, language-agnostic interface
to REST APIs which allows both humans and computers to discover and
understand the capabilities of the service without access to source code,
documentation, or through network traffic inspection. When properly defined
via Swagger, a consumer can understand and interact with the remote service
with a minimal amount of implementation logic. Similar to what interfaces
have done for lower level programming, Swagger removes the guesswork
in calling the service.

%package annotations
Summary:       Swagger Annotations

%description annotations
Swagger Annotations that configures definition level metadata.

%package hibernate-validations
Summary:       Swagger Hibernate Validations

%description hibernate-validations
Swagger Hibernate Validations support.

%package jaxrs
Summary:       Swagger JAXRS

%description jaxrs
Swagger *JAX-RS* support.

%package jersey-jaxrs
Summary:       Swagger Models

%description jersey-jaxrs
Swagger Jersey 1.x *JAX-RS* support.

%package jersey2-jaxrs
Summary:       Swagger Models

%description jersey2-jaxrs
Swagger Jersey 2.x *JAX-RS* support.

%package models
Summary:       Swagger Models

%description models
Swagger Models module.

%package mule
Summary:       Swagger Mule

%description mule
Swagger Mule.

%package project
Summary:       Swagger Parent POM

%description project
Swagger Parent POM.

%package servlet
Summary:       Swagger Servlet

%description servlet
Swagger Servlet.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# Dependency convergence error
%pom_remove_plugin :maven-enforcer-plugin

# Unwanted plugins
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin org.jacoco:jacoco-maven-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin -r :jetty-maven-plugin

# Unwanted task
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"

%pom_change_dep -r org.glassfish.hk2.external:javax.inject javax.inject:javax.inject:1

%pom_xpath_set "pom:properties/pom:jersey-version" 1

# Force glassfish-servlet-api use
%pom_xpath_set "pom:properties/pom:servlet-api-version" 3.1.0
%pom_change_dep -r javax.servlet:servlet-api javax.servlet:javax.servlet-api:'${servlet-api-version}'

# Unavailable Test deps
# com.openpojo:openpojo:0.8.0
%pom_remove_dep com.openpojo:openpojo modules/swagger-models
rm modules/swagger-models/src/test/java/io/swagger/PojosTest.java
# org.powermock:powermock-module-testng:1.6.4
%pom_remove_dep org.powermock:powermock-module-testng modules/swagger-models
rm modules/swagger-models/src/test/java/io/swagger/models/ArrayModelTest.java \
 modules/swagger-models/src/test/java/io/swagger/models/ModelImplTest.java

#java.lang.AssertionError: expected [4] but found [2]
rm modules/swagger-core/src/test/java/io/swagger/ModelConverterTest.java
#java.lang.AssertionError: Serialized object:
#{"in":"query","required":false,"type":"integer","default":1234,"format":"1nt64"}
#does not equal to expected serialized string:
#{"in":"query","required":false,"type":"integer","default":1234,"format":"1nt64"}
rm modules/swagger-core/src/test/java/io/swagger/parameter/ParameterSerializationTest.java

# com.jayway.restassured:rest-assured:2.8.0
%pom_remove_dep -r com.jayway.restassured:rest-assured
rm modules/swagger-jaxrs/src/test/java/io/swagger/functional/test/ApiListingResourceIT.java

%build
# Disable (temporarily) test suite. Until rhbz#1369224, 1369232 are not fixed
%mvn_build -sf

%install
%mvn_install

%files -f .mfiles-swagger-core
%doc README.md

%files annotations -f .mfiles-swagger-annotations
%license LICENSE

%files hibernate-validations -f .mfiles-swagger-hibernate-validations
%files jaxrs -f .mfiles-swagger-jaxrs
%files jersey-jaxrs -f .mfiles-swagger-jersey-jaxrs
%files jersey2-jaxrs -f .mfiles-swagger-jersey2-jaxrs
%files models -f .mfiles-swagger-models
%files mule -f .mfiles-swagger-mule
%files project -f .mfiles-swagger-project
%license LICENSE

%files servlet -f .mfiles-swagger-servlet

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17467 |21mr|sweeper-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Clean unwanted traces from your system
Name:		sweeper
Version:	23.08.4
Release:	1
License:	LGPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org/
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activitiesstats-devel
BuildRequires:	kf5bookmarks-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
Sweeper helps to clean unwanted traces the user leaves on the system.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.sweeper.desktop
%{_kde5_bindir}/sweeper
%{_kde5_xmlguidir}/sweeper/sweeperui.rc
%{_appdatadir}/org.kde.sweeper.appdata.xml
%{_datadir}/dbus-1/interfaces/org.kde.sweeper.xml
%{_kde5_datadir}/qlogging-categories5/sweeper.categories

#----------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --with-kde --with-html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17468 |21mr|swh-plugins-0.4.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of audio plugins for LADSPA
Name:		swh-plugins
Version:	0.4.17
Release:	1
License:	GPLv2+
Group:		Sound
Url:		http://plugin.org.uk/
Source0:	https://github.com/swh/ladspa/releases/tag/ladspa-%{version}.tar.gz
Patch0:		swh-plugins-0.4.17-drop-inline-from-functions.patch
Patch1:		swh-plugins-0.4.17-drop-ABOUT_NLS-file.patch
Patch2:		swh-plugins-0.4.17-drop-broken-lookahead_limiter.patch
Patch3:		swh-plugins-0.4.17-fix-floating-point-errors.patch
Patch4:		swh-plugins-0.4.17-added-bypass-button-to-pitchshift.patch
Patch5:		swh-plugins-0.4.17-fix-multiple-instances-of-impulse-convolver.patch
BuildRequires:	perl-XML-Parser
BuildRequires:	gettext-devel >= 0.19.3
BuildRequires:	ladspa-devel
BuildRequires:	pkgconfig(fftw3)

%description
A set of audio plugins for LADSPA (see http://plugin.org.uk/ for more info).

%files -f %{name}.lang
%doc README ChangeLog AUTHORS
%{_libdir}/ladspa/*.so
%dir %{_datadir}/ladspa/
%dir %{_datadir}/ladspa/rdf/
%{_datadir}/ladspa/rdf/*.rdf

#-----------------------------------------------------------------------------

%prep
%setup -qn ladspa-%{version}
%apply_patches


%build
./autogen.sh
%configure \
%ifnarch aarch64
--enable-sse
%else
--disable-sse
%endif

%make CFLAGS="%{optflags} -fPIC"


%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17469 |21mr|swig-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with guile
%ifarch %{e2k} %{riscv}
%bcond_with mono
%bcond_with ocaml
%else
%bcond_without mono
%bcond_without ocaml
%endif
%bcond_without php
%bcond_without ruby
%bcond_without lua

Summary:	Simplified Wrapper and Interface Generator (SWIG)
Name:		swig
Version:	4.0.2
Release:	1
Epoch:		1
License:	BSD
Group:		Development/Other
Url:		http://www.swig.org/
Source0:	http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	imake
BuildRequires:	libtool
%if %{with mono}
BuildRequires:	mono
BuildRequires:	pkgconfig(mono)
%endif
%if %{with ocaml}
BuildRequires:	ocaml
%endif
BuildRequires:	boost-devel
BuildRequires:	libstdc++-devel
%if %{with guile}
BuildRequires:	lua-devel
%endif
BuildRequires:	perl-devel
%if %{with php}
BuildRequires:	php-devel
%endif
%if %{with ruby}
BuildRequires:	ruby-devel
%endif
BuildRequires:	tcl-devel
%if %{with guile}
BuildRequires:	pkgconfig(guile-2.0)
%endif
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(python2)
Obsoletes:	swig-devel < 2.0.7
Conflicts:	swig2

%description
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

%files
%doc ANNOUNCE INSTALL CHANGES CHANGES.current LICENSE README TODO
%{_bindir}/swig
%{_bindir}/ccache-swig
%{_datadir}/swig

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation and examples for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description doc
SWIG takes an interface description file written in a combination of C/C++
and special directives and produces interfaces to Perl, Python, and Tcl.
It allows scripting languages to use C/C++ code with minimal effort.

Install the %{name}-doc package if you want to look at example and
documentation.

%files doc
%doc Examples Doc/Manual

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
./autogen.sh
%configure \
	--with-2to3=%{_bindir}/2to3 \
	--with-python=%{_bindir}/python2 \
	--with-python3=%{_bindir}/python3
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17470 |21mr|swingx-1.6.5.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Because dash is not allowed in RPM version numbers
%global real_version 1.6.5-1

Name:           swingx
Version:        1.6.5.1
Release:        14
Summary:        A collection of Swing components
License:        LGPLv2
URL:            https://swingx.java.net/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Generated by
# svn export https://svn.java.net/svn/swingx~svn/tags/swingx-project-1.6.5-1/
# tar -cJf swingx-project-1.6.5-1.tar.xz swingx-project-1.6.5-1
Source0:        swingx-project-%{real_version}.tar.xz

# Remove dep that is not needed for successful test run
Patch0:         swingx-remove-jhlabs-filters.patch
# Remove use of internal com.sun API for Java 7 compatibility
Patch1:         swingx-java7-swing-painter-compat.patch
# Accomodate in tests for extra validation performed in Java 7
Patch2:         swingx-java7-treepath-compat.patch
# These two tests fail for an unknown reason
Patch3:         swingx-uititlelabel-test-failure.patch
# Handle Java 8 verisons
Patch4:         swingx-java8-compat.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java:jvnet-parent:pom:)
BuildRequires:  mvn(org.kohsuke.metainf-services:metainf-services)
BuildRequires:  mvn(org.mockito:mockito-core)


%description
SwingX contains a collection of powerful, useful, and just plain fun Swing
components. Each of the Swing components have been extended, providing
data-aware functionality out of the box. New useful components have been
created like the JXDatePicker, JXTaskPane, and JXImagePanel.


%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{name}-project-%{real_version}
%patch0 -p1 -b.orig
%patch1 -p0 -b.orig
%patch2 -p0 -b.orig
%patch3 -p0 -b.orig
%patch4 -p0 -b.orig

# Remove all binaries
find . -name "*.jar" -exec rm -f {} \;
find . -name "*.class" -exec rm -f {} \;
find . -name "*.so" -exec rm -f {} \;
find . -name "*.dll" -exec rm -f {} \;

# Don't build or install SwingX Test Support module (code and classes
# to support testing SwingX). Classes contained in this module are for
# internal SwingX use only. And the Test Support module doesn't build
# against the version of mockito in Fedora >= 30.
%pom_disable_module swingx-testsupport


%build
%mvn_build -f


%install
%mvn_install


%files -f .mfiles
%doc COPYING


%files javadoc -f .mfiles-javadoc
%doc COPYING



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17471 |21mr|swizzle-1.6.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          swizzle
Version:       1.6.2
Release:       11
Summary:       Collection of Java data processing and RPC utilities
License:       ASL 2.0
URL:           https://github.com/codehaus/swizzle
Source0:       https://github.com/codehaus/swizzle/archive/%{name}-%{version}.tar.gz
# swizzle package don't include the license file
# reported @ http://jira.codehaus.org/browse/SWIZZLE-61
#            https://github.com/codehaus/swizzle/issues/1
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.velocity:velocity)
BuildRequires: mvn(org.apache.xmlrpc:xmlrpc-client)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Collection of Java data processing and RPC utilities.

%package confluence
Summary:       Swizzle :: Confluence

%description confluence
Strongly typed Java Client for the Confluence XML-RPC API.
Can add, update, find and delete pages and more.

%package jira
Summary:       Swizzle :: JIRA

%description jira
Strongly typed Java Client for the Jira XML-RPC API or the
JIRA RSS API. Far more expressive and natural to code against.
Implements caching of response data. Can screen scrape using
Swizzle Stream for data which is not available through XML-RPC
or RSS, such as lists of voters or sub-tasks for a given item.

%package jirareport
Summary:       Swizzle :: JIRA Report

%description jirareport
A simple command line utility library that combines Velocity with
Swizzle JIRA to easily create reports. The Velocity template
is 100% self contained, no "coding" necessary. Simply point the
swizzle-jirareport jar at a velocity template and get your
formatted data back.

%package stream
Summary:       Swizzle :: Stream

%description stream
Stream editor implemented as a series of InputStream and
OutputStream filters. Like the UNIX SED and can manipulate an
endless stream with little memory. Unlike SED it does not support
regular expressions, but the lack of it keeps buffering down and
processing fast as all scanning is done with string literals of
known content and length.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

%pom_remove_plugin :maven-assembly-plugin %{name}-jirareport

for m in confluence jira; do
%pom_change_dep org.sonatype.sisu:sisu-xmlrpc-client org.apache.xmlrpc:xmlrpc-client:3.1.3 %{name}-${m}
done

# Change  org.sonatype.sisu:sisu-xmlrpc-client support (project seem upstream dead) with Apache xmlrpc-client
sed -i "s|XmlRpcAhcTransportFactory|XmlRpcCommonsTransportFactory|" \
 %{name}-confluence/src/main/java/org/codehaus/swizzle/confluence/Confluence.java \
 %{name}-jira/src/main/java/org/codehaus/swizzle/jira/Jira.java

%pom_change_dep :log4j :log4j:1.2.17 %{name}-jirareport
%pom_change_dep :velocity org.apache.velocity: %{name}-jirareport

# Disable tests, required web connection
# org.codehaus.swizzle.confluence.ConfluenceException:
# I/O error while communicating with HTTP server: docs.codehaus.org
rm -r %{name}-confluence/src/test \
 %{name}-jira/src/test \
 %{name}-jirareport/src/test

%build

%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}
%license LICENSE

%files confluence -f .mfiles-%{name}-confluence
%license LICENSE

%files jira -f .mfiles-%{name}-jira
%license LICENSE

%files jirareport -f .mfiles-%{name}-jirareport
%license LICENSE

%files stream -f .mfiles-%{name}-stream
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17472 |21mr|swt-chart-0.10.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           swt-chart
Version:        0.10.0
Release:        7
Summary:        SWTChart Feature
Group:          Development/Java
License:        EPL-1.0
URL:            http://www.swtchart.org/
Source0:        http://sourceforge.net/code-snapshots/svn/s/sw/swt-chart/code/swt-chart-code-312-tags-%{version}.zip

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  tycho >= 0.14.0
Requires:       eclipse-platform >= 3.4.0

%description
SWTChart is a light-weight charting component for SWT.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
%{summary}.

%prep
%setup -q -n %{name}-code-312-tags-%{version}
# Create the poms
xmvn -o org.eclipse.tycho:tycho-pomgenerator-plugin:generate-poms -DgroupId=org.swtchart
%mvn_package "::pom::" __noinstall
%mvn_package :org.swtchart.example* __noinstall

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17473 |21mr|sxc-0.8-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          sxc
Version:       0.8
Release:       8
Summary:       Simple XML Compiler
License:       CDDL
URL:           https://github.com/dblevins/sxc
Source0:       https://github.com/dblevins/sxc/archive/%{name}-%{version}.tar.gz
# Add missing ecj4 method stub
Patch0:        %{name}-0.8-ecj.patch

BuildRequires: maven-local
BuildRequires: mvn(com.sun.xml.bind:jaxb-impl)
BuildRequires: mvn(com.sun.xml.bind:jaxb-xjc)
BuildRequires: mvn(jaxen:jaxen)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
# optional build requires
# BuildRequires: mvn(org.codehaus.swizzle:dependency-report-plugin)
BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires: mvn(org.eclipse.jdt:core)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(stax:stax-api)
BuildRequires: mvn(xmlunit:xmlunit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
SXC (Simple XML Compiler) allows you to created optimized parsers and
writers for XML. Through a declarative API you're able to tell SXC
what type of XML to expect and what actions to associate with it.

%package core
Summary:       SXC Core
# ASL 2.0: sxc-core/src/main/java/org/metatype/sxc/util/XPathAssert.java
License:       CDDL and ASL 2.0

%description core
Simple XML Compiler Core.

%package jaxb
Summary:       SXC JAXB
# ASL 2.0: sxc-jaxb/src/main/java/org/metatype/sxc/jaxb/*
# sxc-jaxb/src/main/java/org/metatype/sxc/jaxb/model/*
License:       CDDL and ASL 2.0

%description jaxb
Simple XML Compiler JAXB.

%package jaxb-core
Summary:       SXC JAXB :: Core
# ASL 2.0: sxc-jaxb-core/src/main/java/org/metatype/sxc/jaxb/*
License:       CDDL and ASL 2.0

%description jaxb-core
Simple XML Compiler JAXB :: Core.

%package jaxb-maven-plugin
Summary:       SXC JAXB :: Maven Plugin

%description jaxb-maven-plugin
Simple XML Compiler JAXB :: Maven Plugin.

%package runtime
Summary:       SXC Runtime
# ASL 2.0: sxc-runtime/src/main/java/org/metatype/sxc/util/Base64.java
# sxc-runtime/src/main/java/org/metatype/sxc/util/W3CDOMStreamWriter.java
# sxc-runtime/src/main/java/org/metatype/sxc/util/W3CNamespaceContext.java
# sxc-runtime/src/main/java/org/metatype/sxc/util/XmlFactories.java
# CDDL: sxc-runtime/src/main/java/org/metatype/sxc/Context.java
License:       CDDL and ASL 2.0

%description runtime
Simple XML Compiler Runtime.

%package xpath
Summary:       SXC XPath

%description xpath
Simple XML Compiler XPath.

%package javadoc
Summary:       Javadoc for %{name}
License:       CDDL and ASL 2.0

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0 -p0

%pom_remove_plugin :maven-assembly-plugin %{name}-jaxb
%pom_remove_plugin org.codehaus.swizzle:dependency-report-plugin %{name}-jaxb-core
%pom_remove_plugin org.codehaus.swizzle:dependency-report-plugin %{name}-jaxb-maven-plugin

# Remove org.apache.maven.wagon:wagon-webdav:1.0-beta-1
%pom_xpath_remove "pom:build/pom:extensions"

%pom_change_dep -r :wstx-asl :woodstox-core-asl

# Use maven3 apis
%pom_change_dep :maven-project :maven-compat %{name}-jaxb-maven-plugin

%pom_xpath_remove "pom:dependency[pom:artifactId = 'tools' ]/pom:scope" %{name}-core
%pom_xpath_remove "pom:systemPath" %{name}-core

# Add OSGi support, required by other projects
for p in core jaxb jaxb-core runtime xpath; do
    %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.5.4 %{name}-${p} '
    <executions>
     <execution>
      <id>bundle-manifest</id>
      <phase>process-classes</phase>
      <goals>
        <goal>manifest</goal>
      </goals>
     </execution>
    </executions>'
    %pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.6 %{name}-${p} '
    <configuration>
     <archive>
      <manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
     </archive>
    </configuration>'
done

# These test fails
# [javax.xml.stream.XMLStreamException: Underlying stream encoding 'ASCII' and
# input paramter for writeStartDocument() method 'UTF-8' do not match.]
rm -r \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/simple/SimpleReadWriteTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/simple/SimpleGlobalTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/fields/FieldsTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/root/RootTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/any/AnyTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/collection/CollectionsTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/mixed/MixedTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/node/NodeTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/EverythingAttributeTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/properties/PropertiesTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/xmllist/XmlListTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/EverythingTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/invoice/InvoiceTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/listener/ListenerTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/CustomerTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/enums/EnumTest.java \
 %{name}-jaxb/src/test/java/org/metatype/sxc/jaxb/array/ArraysTest.java

# spurious executable perm
chmod 644 LICENSE.txt %{name}-core/NOTES.txt

%build

%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}
%license LICENSE.txt

%files core -f .mfiles-%{name}-core
%doc %{name}-core/NOTES.txt
%license LICENSE.txt

%files jaxb -f .mfiles-%{name}-jaxb
%license LICENSE.txt

%files jaxb-core -f .mfiles-%{name}-jaxb-core
%license LICENSE.txt

%files jaxb-maven-plugin -f .mfiles-%{name}-jaxb-maven-plugin
%license LICENSE.txt

%files runtime -f .mfiles-%{name}-runtime
%license LICENSE.txt

%files xpath -f .mfiles-%{name}-xpath
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17474 |21mr|symlinks-1.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility which maintains a system's symbolic links
Name:		symlinks
Version:	1.4
Release:	8
Group:		File tools
License:	BSD-style
Source0:	ftp://sunsite.unc.edu/pub/Linux/utils/file/%{name}-%{version}.tar.gz
URL:		http://www.ibiblio.org/pub/Linux/utils/file/
Patch0:		symlinks-1.4-noroot.patch
Patch2:		symlinks-1.4-short.patch
Buildroot:	%{_tmppath}/%{name}-%{version}-buildroot

%description
The symlinks utility performs maintenance on symbolic links.  Symlinks
checks for symlink problems, including dangling symlinks which point to
nonexistent files.  Symlinks can also automatically convert absolute
symlinks to relative symlinks.

Install the symlinks package if you need a program for maintaining
symlinks on your system.

%prep
%setup -q
%patch0 -p1 -b .noroot~
%patch2 -p1 -b .short~

%build
%make CFLAGS="%{optflags} -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64" 

%install
install -D %{name} %{buildroot}%{_bindir}/%{name}
install -D %{name}.8 %{buildroot}%{_mandir}/man8/%{name}.8

%files
%defattr(644,root,root,755)
%attr(755,root,root) %{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17475 |21mr|syndication-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 RSS/Atom parser module
Name:		syndication
Version:	5.116.0
Release:	2
Epoch:		1
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5codecs-devel = %{version}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 RSS/Atom parser module.

%files
%{_kde5_datadir}/qlogging-categories5/syndication.categories
%{_kde5_datadir}/qlogging-categories5/syndication.renamecategories

#----------------------------------------------------------------------------

%define kf5syndication_major 5
%define libkf5syndication %mklibname kf5syndication %{kf5syndication_major}

%package -n %{libkf5syndication}
Summary:	KDE Frameworks 5 RSS/Atom parser shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libkf5syndication}
KDE Frameworks 5 RSS/Atom parser shared library.

%files -n %{libkf5syndication}
%{_kde5_libdir}/libKF5Syndication.so.%{kf5syndication_major}*

#----------------------------------------------------------------------------

%define devkf5syndication %mklibname kf5syndication -d

%package -n %{devkf5syndication}
Summary:	Development files for KDE Frameworks 5 RSS/Atom parser module
Group:		Development/KDE and Qt
Requires:	%{libkf5syndication} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5syndication-devel = %{version}

%description -n %{devkf5syndication}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5syndication}
%{_kde5_includedir}/KF5/Syndication
%{_kde5_libdir}/cmake/KF5Syndication
%{_kde5_libdir}/libKF5Syndication.so
%{_kde5_mkspecsdir}/*.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17476 |21mr|syntax-highlighting-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

# filter kf5 qml/plugins provides
%global __provides_exclude_from ^(%{_kde5_qmldir}/.*\\.so|%{_kde5_plugindir}/.*\\.so)$

Summary:	KDE Frameworks 5 syntax highlighting engine
Name:		syntax-highlighting
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	http://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
BuildRequires:	pkgconfig(Qt5PrintSupport)

%description
KDE Frameworks 5 syntax highlighting engine.

This is a stand-alone implementation of the Kate syntax highlighting engine.
It's meant as a building block for text editors as well as for simple
highlighted text rendering (e.g. as HTML), supporting both integration with
a custom editor as well as a ready-to-use QSyntaxHighlighter sub-class.

%files
%{_kde5_bindir}/kate-syntax-highlighter
%{_kde5_datadir}/qlogging-categories5/ksyntaxhighlighting.categories
%{_kde5_datadir}/qlogging-categories5/ksyntaxhighlighting.renamecategories
%{_kde5_qmldir}/org/kde/syntaxhighlighting/

#----------------------------------------------------------------------------

%package i18n
Summary:	KDE Frameworks 5 syntax highlighting translations
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
KDE Frameworks 5 syntax highlighting translations.

%files i18n -f syntaxhighlighting5_qt.lang

#----------------------------------------------------------------------------

%define kf5syntaxhighlighting_major 5
%define libkf5syntaxhighlighting %mklibname kf5syntaxhighlighting %{kf5syntaxhighlighting_major}

%package -n %{libkf5syntaxhighlighting}
Summary:	KDE Frameworks 5 syntax highlighting engine shared library
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libkf5syntaxhighlighting}
KDE Frameworks 5 syntax highlighting engine shared library.

%files -n %{libkf5syntaxhighlighting}
%{_kde5_libdir}/libKF5SyntaxHighlighting.so.%{kf5syntaxhighlighting_major}*

#----------------------------------------------------------------------------

%define devkf5syntaxhighlighting %mklibname kf5syntaxhighlighting -d

%package -n %{devkf5syntaxhighlighting}
Summary:	Development files for KDE Frameworks 5 syntax highlighting engine
Group:		Development/KDE and Qt
Requires:	%{libkf5syntaxhighlighting} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5syntaxhighlighting-devel = %{version}

%description -n %{devkf5syntaxhighlighting}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5syntaxhighlighting}
%{_kde5_includedir}/KF5/KSyntaxHighlighting
%{_kde5_libdir}/cmake/KF5SyntaxHighlighting
%{_kde5_libdir}/libKF5SyntaxHighlighting.so
%{_kde5_mkspecsdir}/qt_KSyntaxHighlighting.pri

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

ls %{buildroot}%{_datadir}/locale/*/LC_MESSAGES/*.qm |while read r; do
	F="$(echo $r |sed -e 's,%{buildroot},,')"
	L="$(echo $F |cut -d/ -f5)"
	echo "%%lang($L) $F" >>syntaxhighlighting5_qt.lang
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17477 |21mr|sysfsutils-2.1.0-27
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	fname	sysfs
%define	major	2
%define	libname	%mklibname %{fname} %{major}
%define	devname	%mklibname %{fname} -d
%define	static	%mklibname %{fname} -d -s

Summary:	Utility suite to enjoy sysfs
Name:		sysfsutils
Version:	2.1.0
Release:	27
License:	GPLv2
Group:		System/Kernel and hardware
Url:		http://linux-diag.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/linux-diag/%{name}-%{version}.tar.bz2
Patch0:		sysfsutils-2.0.0-class-dup.patch
Patch1:		sysfsutils-2.1.0-get_link.patch
Patch2:		sysfsutils-2.1.0-srcdir-include.patch

%description
This package's purpose is to provide a set of utilities for interfacing
with sysfs, a virtual filesystem in Linux kernel versions 2.5+ that
provides a tree of system devices. While a filesystem is a very useful
interface, we've decided to provide a stable programming interface
that will hopefully make it easier for applications to query system devices
and their attributes.

This package currently includes:

- lsbus: a small application to query system bus information.
- systool: an application to view system device information by bus, class,
  and topology.

%files
%doc AUTHORS README NEWS
%{_bindir}/systool
%{_bindir}/dlist_test
%{_bindir}/get_device
%{_bindir}/get_driver
%{_bindir}/get_module
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Main library for %{name}
License:	LGPLv2.1
Group:		System/Libraries

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with %{name}. The libsysfs library enables to access system devices.

%files -n %{libname}
/%{_lib}/libsysfs.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Headers for developing programs that will use %{name}
License:	LGPLv2.1
Group:		Development/C
Requires:	%{libname} = %{EVRD}
# for Turbolinux compatibility:
Provides:	sysfsutils-devel = %{EVRD}
Conflicts:	%{_lib}sysfs1-devel < 2.1.0

%description -n	%{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%doc docs/libsysfs.txt
%{_libdir}/libsysfs.so
%{_includedir}/sysfs/libsysfs.h
%{_includedir}/sysfs/dlist.h

#----------------------------------------------------------------------------

%package -n	%{static}
Summary:	Static library for developing programs that will use %{name}
License:	LGPLv2.1
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	sysfsutils-static-devel = %{EVRD}

%description -n	%{static}
This package contains the static library that programmers will need to develop
applications which will use %{name}.

%files -n %{static}
%{_libdir}/libsysfs.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1
autoreconf -fi -Im4

%build
%configure \
	--libdir=/%{_lib} \
	--enable-static

%make_build

%install
%make_install

install -d %{buildroot}%{_libdir}
mv %{buildroot}/%{_lib}/*.{so,a} %{buildroot}%{_libdir}
ln -rsf %{buildroot}/%{_lib}/libsysfs.so.%{major}.* %{buildroot}%{_libdir}/libsysfs.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17478 |21mr|syslinux-6.04-0.4.pre1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tarball_version 6.04-pre1
%define tftpbase /tftpboot

Summary:	A bootloader for linux using floppies, CD
Name:		syslinux
Version:	6.04
Release:	0.4.pre1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://syslinux.zytor.com/wiki/index.php/The_Syslinux_Project
Source0:	http://www.kernel.org/pub/linux/utils/boot/syslinux/%{name}-%{tarball_version}.tar.xz
Source1:	pxelinux-help.txt
Source2:	pxelinux-messages
Source3:	pxelinux-default
Source4:	%{name}.rpmlintrc
Patch0001:	0001-Add-install-all-target-to-top-side-of-HAVE_FIRMWARE.patch
Patch0002:	0002-ext4-64bit-feature.patch
# FTBFS with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
Patch0003:	0003-include-sysmacros-h.patch
Patch0004:	0004-Add-RPMOPTFLAGS-to-CFLAGS-for-some-stuff.patch
Patch0005:	0005-Workaround-multiple-definition-of-symbol-errors.patch
Patch0006:	0006-Replace-builtin-strlen-that-appears-to-get-optimized.patch

BuildRequires:	nasm
BuildRequires:	netpbm
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	perl

Requires:	syslinux-nonlinux = %{version}-%{release}
Provides:	isolinux = %{version}
ExcludeArch:	%{armx}

%description
SYSLINUX is a suite of bootloaders, currently supporting DOS FAT
filesystems, Linux ext2/ext3 filesystems (EXTLINUX), PXE network boots
(PXELINUX), or ISO 9660 CD-ROMs (ISOLINUX).  It also includes a tool,
MEMDISK, which loads legacy operating systems from these media.

%files
%doc COPYING
%doc NEWS README*
%doc doc/* 
%doc sample
%{_mandir}/man1/gethostip*
%{_mandir}/man1/syslinux*
%{_mandir}/man1/extlinux*
%{_mandir}/man1/isohybrid*
%{_mandir}/man1/memdiskfind*
%{_bindir}/gethostip
%{_bindir}/isohybrid
%{_bindir}/memdiskfind
%{_bindir}/syslinux
%dir %{_datadir}/syslinux
%dir %{_datadir}/syslinux/dosutil
%{_datadir}/syslinux/dosutil/*
%dir %{_datadir}/syslinux/diag
%{_datadir}/syslinux/diag/*
############################################################################

%package perl
Summary:	Syslinux tools written in perl
Group:		System/Kernel and hardware

%description perl
Syslinux tools written in perl

%files perl
%doc COPYING
%{_mandir}/man1/lss16toppm*
%{_mandir}/man1/ppmtolss16*
%{_bindir}/keytab-lilo
%{_bindir}/lss16toppm
%{_bindir}/md5pass
%{_bindir}/mkdiskimage
%{_bindir}/ppmtolss16
%{_bindir}/pxelinux-options
%{_bindir}/sha1pass
%{_bindir}/syslinux2ansi
%{_bindir}/isohybrid.pl
############################################################################

%package devel
Summary:	Headers and libraries for syslinux development
Group:		Development/C

%description devel
Headers and libraries for syslinux development.

%files devel
%doc COPYING
%dir %{_datadir}/syslinux/com32
%{_datadir}/syslinux/com32/*
############################################################################

%package extlinux
Summary:	The EXTLINUX bootloader, for booting the local system
Group:		System/Kernel and hardware
Requires:	syslinux = %{EVRD}
Requires:	syslinux-extlinux-nonlinux = %{EVRD}

%description extlinux
The EXTLINUX bootloader, for booting the local system, as well as all
the SYSLINUX/PXELINUX modules in /boot.

%files extlinux
%{_sbindir}/extlinux
%config /etc/extlinux.conf
############################################################################

%package tftpboot
Summary:	SYSLINUX modules in /tftpboot, available for network booting
Group:		System/Kernel and hardware
Requires:	syslinux = %{EVRD}
Obsoletes:	pxelinux < %{EVRD}
Provides:	pxelinux = %{EVRD}

%description tftpboot
All the SYSLINUX/PXELINUX modules directly available for network
booting in the /tftpboot directory.

%files tftpboot
%doc doc/pxelinux.txt
%dir %{tftpbase}
%{tftpbase}/*.0
%{tftpbase}/*.c32
%{tftpbase}/memdisk
%ifarch x86_64
%dir %{tftpbase}/efi64
%{tftpbase}/efi64/*
%endif
%dir %{tftpbase}/pxelinux.cfg
%config(noreplace) %{tftpbase}/messages
%config(noreplace) %{tftpbase}/help.txt
%config(noreplace) %{tftpbase}/pxelinux.cfg/default
############################################################################

%package extlinux-nonlinux
Summary:	The parts of the EXTLINUX bootloader which aren't run from linux
Group:		System/Kernel and hardware
Requires:	syslinux = %{EVRD}

%description extlinux-nonlinux
All the EXTLINUX binaries that run from the firmware rather than
from a linux host.

%files extlinux-nonlinux
/boot/extlinux
############################################################################

%package nonlinux
Summary:	SYSLINUX modules which aren't run from linux
Group:		System/Kernel and hardware
Requires:	syslinux = %{EVRD}

%description nonlinux
All the SYSLINUX binaries that run from the firmware rather than from a
linux host. It also includes a tool, MEMDISK, which loads legacy operating
systems from media.

%files nonlinux
%{_datadir}/syslinux/*.com
%{_datadir}/syslinux/*.c32
%{_datadir}/syslinux/*.bin
%{_datadir}/syslinux/*.0
%{_datadir}/syslinux/memdisk
############################################################################

%ifarch x86_64
%package efi64
Summary:	SYSLINUX binaries and modules for 64-bit UEFI systems
Group:		System/Kernel and hardware

%description efi64
SYSLINUX binaries and modules for 64-bit UEFI systems

%files efi64
%doc COPYING
%dir %{_datadir}/syslinux/efi64
%{_datadir}/syslinux/efi64/*
%endif
############################################################################

%prep
%setup -q -n %{name}-%{tarball_version}
%autopatch -p1

%build
make RPMCFLAGS='%{optflags}' RPMLDFLAGS='%{build_ldflags}' bios clean all
%ifarch %{x86_64}
make RPMCFLAGS='%{optflags}' RPMLDFLAGS='%{build_ldflags}' efi64 clean all
%endif

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_prefix}/lib/syslinux
mkdir -p %{buildroot}%{_includedir}
make bios install-all \
	INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
	LIBDIR=%{_prefix}/lib DATADIR=%{_datadir} \
	MANDIR=%{_mandir} INCDIR=%{_includedir} \
	TFTPBOOT=%{tftpbase} EXTLINUXDIR=/boot/extlinux \
	LDLINUX=ldlinux.c32
%ifarch x86_64
make efi64 install netinstall \
	INSTALLROOT=%{buildroot} BINDIR=%{_bindir} SBINDIR=%{_sbindir} \
	LIBDIR=%{_prefix}/lib DATADIR=%{_datadir} \
	MANDIR=%{_mandir} INCDIR=%{_includedir} \
	TFTPBOOT=%{tftpbase} EXTLINUXDIR=/boot/extlinux \
	LDLINUX=ldlinux.c32
%endif

mkdir -p %{buildroot}/%{_docdir}/%{name}/sample
install -m 644 sample/sample.* %{buildroot}/%{_docdir}/%{name}/sample/
mkdir -p %{buildroot}/etc
( cd %{buildroot}/etc && ln -s ../boot/extlinux/extlinux.conf . )

# don't ship libsyslinux, at least, not for now
rm -f %{buildroot}%{_prefix}/lib/libsyslinux*
rm -f %{buildroot}%{_includedir}/syslinux.h

install -d %{buildroot}%{tftpbase}/pxelinux.cfg/
install -m 0644 %{SOURCE1} %{buildroot}%{tftpbase}/help.txt
install -m 0644 %{SOURCE2} %{buildroot}%{tftpbase}/messages
install -m 0644 %{SOURCE3} %{buildroot}%{tftpbase}/pxelinux.cfg/default
perl -pi -e "s|VERSION|%{version}|g" %{buildroot}%{tftpbase}/messages

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17479 |21mr|sysprof-3.44.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 4
%define libname %mklibname %{name} %{api}
%define libnameui %mklibname %{name}-ui %{api}
%define libnamemem %mklibname %{name}-memory %{api}
%define libnamespeed %mklibname %{name}-speedtrack %{api}
%define devname %mklibname %{name} %{api} -d

# All libraries are LD_PRELOAD'ed to do the profiling and must be always installed,
# but _theoretically_ they may have consumers (see the devel subpackage),
# so keeping libraries in separate packages.
%define libs_req %{expand:\
Requires:	%{libname} = %{EVRD} \
Requires:	%{libnameui} = %{EVRD} \
Requires:	%{libnamemem} = %{EVRD} \
Requires:	%{libnamespeed} = %{EVRD} \
}

Summary:	System-wide Linux Profiler
Name:		sysprof
Version:	3.44.0
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		https://download.gnome.org/sources/sysprof
Source0:	https://download.gnome.org/sources/sysprof/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		sysprof-3.42.0-rename-seek.patch
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	binutils-devel
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libdazzle-1.0)
BuildRequires:	pkgconfig(libsystemd)
%ifnarch %{e2k}
BuildRequires:	pkgconfig(libunwind)
%endif
BuildRequires:	pkgconfig(polkit-gobject-1)
%{libs_req}

%description
Sysprof is a sampling profiler that uses a kernel module to generate
stacktraces which are then interpreted by the userspace program
"sysprof".

Sysprof handles shared libraries and applications do not need to be
recompiled. In fact they don't even have to be restarted.

Just insert the kernel module and start sysprof.

%files -f %{name}.lang
%doc AUTHORS README.md
%license COPYING
%{_appdatadir}/org.gnome.Sysprof3.appdata.xml
%{_bindir}/sysprof
%{_bindir}/sysprof-cli
%{_datadir}/applications/org.gnome.Sysprof3.desktop
%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof2.xml
%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Profiler.xml
%{_datadir}/dbus-1/interfaces/org.gnome.Sysprof3.Service.xml
%{_datadir}/dbus-1/system.d/org.gnome.Sysprof2.conf
%{_datadir}/dbus-1/system.d/org.gnome.Sysprof3.conf
%{_datadir}/dbus-1/system-services/org.gnome.Sysprof2.service
%{_datadir}/dbus-1/system-services/org.gnome.Sysprof3.service
%{_datadir}/glib-2.0/schemas/org.gnome.sysprof3.gschema.xml
%{_datadir}/mime/packages/sysprof-mime.xml
%{_datadir}/polkit-1/actions/org.gnome.sysprof3.policy
%{_iconsdir}/hicolor/*/*/*
%{_libexecdir}/sysprofd
%{_unitdir}/sysprof2.service
%{_unitdir}/sysprof3.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libsysprof-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libnamemem}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnamemem}
Shared library for %{name}.

%files -n %{libnamemem}
%{_libdir}/libsysprof-memory-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libnamespeed}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnamespeed}
Shared library for %{name}.

%files -n %{libnamespeed}
%{_libdir}/libsysprof-speedtrack-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libnameui}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libnameui}
Shared library for %{name}.

%files -n %{libnameui}
%{_libdir}/libsysprof-ui-%{api}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
%{libs_req}
Provides:	%{name}%{api}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_includedir}/sysprof-%{api}/
%{_libdir}/libsysprof-capture-%{api}.a
%{_libdir}/pkgconfig/sysprof-%{api}.pc
%{_libdir}/pkgconfig/sysprof-capture-%{api}.pc
%{_libdir}/pkgconfig/sysprof-ui-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types -Wno-error=implicit-function-declaration"
%meson -Denable_gtk=true
%meson_build

%install
%meson_install

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17480 |21mr|sysstat-12.7.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Includes the sar and iostat system monitoring commands
Name:		sysstat
Version:	12.7.2
Release:	2
License:	GPLv2+
Group:		Monitoring
Url:		http://pagesperso-orange.fr/sebastien.godard/
# Source http://pagesperso-orange.fr/sebastien.godard/%{name}-%{version}.tar.xz installs systemd stuff incorrectly
Source0:	https://github.com/sysstat/sysstat/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source100:	%{name}.rpmlintrc
# fix CVE-2022-39377
# fix CVE-2023-33204
# https://nvd.nist.gov/vuln/detail/CVE-2023-33204
# https://github.com/sysstat/sysstat/pull/360
Patch1:		CVE-2023-33204-CVE-2022-39377.patch
BuildRequires:	lm_sensors-devel
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(libpcp)

Requires:	findutils
Requires:	xz

%description
This package provides the sar and iostat commands for the Linux operating
system, similar to their traditional UNIX counterparts. They enable system
monitoring of disk, network, and other IO activity.

%files -f %{name}.lang
%license COPYING
%doc CHANGES CREDITS
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}.ioconf
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_bindir}/cifsiostat
%{_bindir}/iostat
%{_bindir}/mpstat
%{_bindir}/pidstat
%{_bindir}/sadf
%{_bindir}/sar
%{_bindir}/tapestat
%{_unitdir}/%{name}.service
%{_unitdir}/%{name}-collect.service
%{_unitdir}/%{name}-collect.timer
%{_unitdir}/%{name}-summary.service
%{_unitdir}/%{name}-summary.timer
%{_systemd_util_dir}/system-sleep/%{name}.sleep
%{_libdir}/sa
%{_mandir}/man1/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_localstatedir}/log/sa

%post
%systemd_post %{name}.service %{name}-collect.timer %{name}-summary.timer

%preun
%systemd_preun %{name}.service %{name}-collect.timer %{name}-summary.timer

if [[ $1 -eq 0 ]]; then
#	Remove sa logs if removing sysstat completely
	rm -f %{_localstatedir}/log/sa/*
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
export sa_lib_dir=%{_libdir}/sa
%configure \
	--enable-install-cron \
	--disable-file-attr \
	--disable-stripping
# hack to avoid enabling units inside package build
sed -i'' -E -e 's,^SYSTEMCTL =.+,SYSTEMCTL = /bin/true,' Makefile
make CFLAGS="%{optflags}" \
	PREFIX="%{_prefix}" \
	SA_LIB_DIR="%{_libdir}/sa" \
	MAN_DIR="%{_mandir}"


%install
make \
	MAN_DIR=%{_mandir} \
	PREFIX=%{_prefix} \
	DESTDIR=%{buildroot}\
	SA_LIB_DIR=%{_libdir}/sa \
	install

# We have our macro for docs
rm -fr %{buildroot}%{_datadir}/doc/%{name}-%{version}
rm -fr %{buildroot}%{_prefix}/doc

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17481 |21mr|system-autoupdate-1.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Automatically update system and block shutdown
Name:		system-autoupdate
Version:	1.16
Release:	3
License:	GPL
Group:		System/Configuration/Packaging
Url:		https://gitlab.com/mikhailnov/system-autoupdate/-/archive/v%{version}/
Source0:	%{url}/system-autoupdate-v%{version}.tar.gz
#AutoReq:	no
# some requirements like grep, gawk are currently missing and probably will not be added by AutoReq
# Don't Require 'polkit' because it may be intentionally not installed where it's not needed
# system-autoupdate will work without polkit
BuildRequires: pkgconfig(systemd)
Requires:	libnotify
# Requiring 'polkit' is not really necessary because it may be intentionally not installed where it's not needed,
# system-autoupdate will work without polkit,
# but than the directory /usr/share/polkit-1/rules.d does not belong to any package, so we depend from polkit
Requires: polkit
BuildArch:	noarch

%description
Auto updates system using systemd capabilities
and prevents it from being shut down while updating.
Shows notifications to user when attempting
to shutdown during update.
Allows blocking shutdown only without auto updates.

Run 'saur enable' after installation to enable autoupdate.

%files
%doc README.md
%{_bindir}/saur
%{_datadir}/polkit-1/rules.d/90-%{name}.rules
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_presetdir}/85-%{name}.preset
%{_sbindir}/%{name}*
%{_unitdir}/%{name}*
# sudoers configs are an important part of this packages
# sudoers configs must not be 'noreplace'
%config %{_sysconfdir}/sudoers.d/%{name}-polkit
%dir %{_sysconfdir}/%{name}
%config %{_sysconfdir}/%{name}/*

%post
#!/bin/sh
# http://meinit.nl/rpm-spec-prepostpreunpostun-argument-values
# This is an initial install
if [ "$1" = '1' ]; then
if echo "$LANG" | grep -Ei "^ru_|^ru$" | grep -qi utf8
	then echo "Выполните 'saur enable' для включения автообновлений, 'saur disable' для их выключения."
	else echo "Run 'saur enable' to turn on autoupdates, 'saur disable' to turn them off."
fi
fi

%preun
#!/bin/sh
# This is a full uninstall
# Unblock shutdown on uninstallation
[ "$1" = '0' ] && %{_sbindir}/system-autoupdate-runner disable || :

#------------------------------------------------------------------

%prep
%setup -n %{name}-v%{version}

%build

%install
%makeinstall_std
# remove scripts for updating other disctributions but ROSA
# It's not really needed when 'AutoReq: no'
find %{buildroot}%{_datadir}/%{name}/update-scripts/ ! -name 'rosa.sh' -type f -exec rm -fv {} +

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17482 |21mr|system-config-printer-1.5.18-5.git77540d.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 77540d0cb539364bbf63e21cfa970e62d9a86ed3
%define commit_short %(echo %{commit} | head -c6)

%global udevhelperdir %(realpath %{_udevrulesdir}/..)

Summary:	A printer administration tool
Name:		system-config-printer
Version:	1.5.18
Release:	5.git%{commit_short}.2
License:	LGPLv2+
Group:		System/Configuration/Printing
Url:		https://github.com/OpenPrinting/system-config-printer/
#Source0:	https://github.com/OpenPrinting/system-config-printer/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source0:	https://github.com/OpenPrinting/system-config-printer/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
Source100:	%{name}.rpmlintrc
Patch0002:	system-config-printer-gettext.patch
# patch for MOS, may be changed to show another link in ROSA also
# (for now that link contains manuals that require apt2dnf to be installed)
Patch0003:	link-to-wiki-in-new-printer-window.patch
#BuildRequires: intltool
BuildRequires:	gettext-devel
BuildRequires:	xmlto-notex
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	cups-devel
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(glib-2.0)
Requires:	packagekit
# devel package is needed for install-printerdriver
# Requires:	packagekit-devel
# not it's DON'T
# requires only typelib and NEVER fetch devel packages to non-devel distro
Requires:   typelib(PackageKitGlib)
# end
Requires:	acl
Requires:	dbus-x11
Requires:	desktop-file-utils
Requires:	gnome-icon-theme
Requires:	python3-libxml2
Requires:	python3-cups
Requires:	python3-curl
Requires:	python3-dbus
Requires:	python3-gi
Requires:	python3-gobject3
Requires:	python3-pyinotify
Requires:	python3-smbc
Requires:	python3-cairo
Requires:	system-config-printer-common = %{EVRD}
Requires:	system-config-printer-udev = %{EVRD}
Requires:	virtual-notification-daemon
#For non GTK3 system
Requires:	canberra-gtk
# typelib() deps are generated auytomatically by generator
# from gobject-introcpection, actually they can be removed here
Requires:	typelib(Atk)
Requires:	typelib(GdkPixbuf)
Requires:	typelib(Gio)
Requires:	typelib(Gtk) = 3.0
Requires:	typelib(Polkit)
Requires:	typelib(Pango)
Requires:	typelib(Notify)
Recommends:	samba-client
# code gently handles missing cups-pk-helper,
# if it is available - polkit is used,
# otherwise CUPS authentication is used
Recommends:	(cups-pk-helper if polkit)
Recommends:	(hplip-model-data if hplip)

%description
system-config-printer is a graphical user interface that allows
the user to configure a CUPS print server.

%files
%doc README
%{_bindir}/scp-dbus-service
%{_bindir}/%{name}
%{_bindir}/%{name}-applet
%{_bindir}/install-printerdriver
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/ui
%dir %{_datadir}/%{name}/xml
%{_datadir}/%{name}/__pycache__
%{_datadir}/%{name}/*.py*
%{_datadir}/%{name}/troubleshoot
%{_datadir}/%{name}/ui/*.ui
%{_datadir}/%{name}/xml/*
%{_datadir}/%{name}/icons
%{_datadir}/applications/%{name}.desktop
%{_datadir}/metainfo/%{name}.appdata.xml
#{_datadir}/appdata/#{name}.appdata.xml
%{_sysconfdir}/xdg/autostart/print-applet.desktop
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package udev
Summary:	Rules for udev for automatic configuration of USB printers
Group:		System/Configuration/Hardware
Requires:	system-config-printer-common = %{EVRD}
Requires:	udev

%description udev
The udev rules and helper programs for automatically configuring USB
printers.

%files udev
%{udevhelperdir}/udev-add-printer
%{udevhelperdir}/udev-configure-printer
%{_udevrulesdir}/70-printers.rules
%{_unitdir}/configure-printer@.service

#----------------------------------------------------------------------------

%package  common
Summary:	Common code for the graphical and non-graphical pieces
Group:		System/Libraries
Requires:	cups
Requires:	python3
Requires:	python3-cups
# files were moved here, subpackage libs was removed
Conflicts:	system-config-printer-libs < 1.5.15
Obsoletes:	system-config-printer-libs < 1.5.15

%description common
The common code used by both the graphical and non-graphical parts of
the configuration tool.

%files common -f system-config-printer.lang
%dir %{_sysconfdir}/cupshelpers/
%config(noreplace) %{_sysconfdir}/cupshelpers/preferreddrivers.xml
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.NewPrinterNotification.conf
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/com.redhat.PrinterDriversInstaller.conf
%config(noreplace) %{_datadir}/dbus-1/interfaces/org.fedoraproject.Config.Printing.xml
%config(noreplace) %{_datadir}/dbus-1/services/org.fedoraproject.Config.Printing.service
%dir %{python3_sitelib}/cupshelpers
#{python3_sitelib}/__pycache__
%{python3_sitelib}/cupshelpers/__pycache__
%{python3_sitelib}/cupshelpers/__init__.py*
%{python3_sitelib}/cupshelpers/cupshelpers.py*
%{python3_sitelib}/cupshelpers/openprinting.py*
%{python3_sitelib}/cupshelpers/ppds.py*
%{python3_sitelib}/cupshelpers/config.py*
%{python3_sitelib}/cupshelpers/installdriver.py*
%{python3_sitelib}/cupshelpers/xmldriverprefs.py*
%{python3_sitelib}/*.egg-info

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
touch ChangeLog
autoreconf -if
# find serverbin-dir from cups-config --serverbin
%configure \
	--prefix=%{_prefix} \
	--with-systemdsystemunitdir=%{_unitdir} \
	--with-udevdir=%{udevhelperdir}\
	--with-udev-rules \
	--with-polkit-1 \
	--with-cups-serverbin-dir=%{_prefix}/lib/cups

%make

%install
# to hide rpm build error about empty file
echo "See man(1) %{name}, %{name}-applet" >> ./README

%makeinstall_std udevrulesdir=%{_udevrulesdir} udevhelperdir=%{udevhelperdir}

%py3_compile %{buildroot}

%find_lang system-config-printer

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17483 |21mr|systemd-249-1.gitfab79a.21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit fab79a85af29ba1c1e237ace6c8078357c04b488
%define commit_short %(echo %{commit} | head -c 6)
%ifarch %{e2k}
%bcond_with efi
%else
%bcond_without efi
%endif

# https://github.com/systemd/systemd-stable
# https://github.com/systemd/systemd
#define stable 0
%define main_version 249
%if 0%{?stable}
%define sub_version .0
%endif

%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define libnss_major 2
%define libnss_myhostname %mklibname nss_myhostname %{libnss_major}
%define libnss_systemd %mklibname nss_systemd %{libnss_major}

%define udev_major 1
%define libudev %mklibname udev %{udev_major}
%define libudev_devel %mklibname udev -d
%define sharedlibVpkg %mklibname systemd-shared_ %{main_version}

# systemd-243 started to use some new APIs available only in the newest version of libseccomp library.
# But when updating both libseccomp and systemd, systemd was updated before libseccomp,
# and so, in systemd's %%postrrans, systemd binaries, requiring newest libseccomp's symbols, failed tor run:
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9690#c19
# To prevent this, we make systemd depend from >= the version of libseccomp that it was built against.
# Note that systemd-243 can be built against both new libseccomp with those new APIs and a one without them.
# This hack is really weird, we would better port hashing of provided and required symbols from ALT (set.c), for example.
%define libseccomp_maj %(grep '#.*define.*SCMP_VER_MAJOR' %{_includedir}/seccomp.h | tail -n 1 | awk '{print $NF}' || echo 2)
%define libseccomp_min %(grep '#.*define.*SCMP_VER_MINOR' %{_includedir}/seccomp.h | tail -n 1 | awk '{print $NF}' || echo 0)
%define libseccomp_micro %(grep '#.*define.*SCMP_VER_MICRO' %{_includedir}/seccomp.h | tail -n 1 | awk '{print $NF}' || echo 0)
%define libseccomp_libname %mklibname seccomp %{libseccomp_maj}
%define libseccomp_target_min_version %(\
	r=`rpm -q --queryformat='%{EPOCH}' %{libseccomp_libname}`; \
	if [ $? = 0 ]; then \
	   if [ -n "$r" ] && [ "$r" != '(none)' ]; \
	      then echo "${r}:%{libseccomp_maj}.%{libseccomp_min}.%{libseccomp_micro}"; \
	      else echo "%{libseccomp_maj}.%{libseccomp_min}.%{libseccomp_micro}"; \
	   fi; \
	else echo 0; \
	fi )

%define systemd_libdir /lib/systemd
%define systemd_usrlibdir %{_prefix}/lib/systemd
%define udev_libdir /lib/udev
%define udev_rules_dir %{udev_libdir}/rules.d
%define udev_user_rules_dir %{_sysconfdir}/udev/rules.d

%define _udevhwdbdir	/lib/udev/hwdb.d
%define _libexecdir		%{_prefix}/lib

%bcond_with bootstrap
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

# https://github.com/moby/moby/issues/40360
# Docker 20.10+ now supports cgroupv2
# We may need to revert this enablement if find other problems
%bcond_with hybrid_hierarchy

Summary:	A System and Session Manager
Name:		systemd
Version:	%{main_version}%{?sub_version}
Release:	1.git%{commit_short}.21
License:	LGPLv2.1+
Group:		System/Configuration/Boot and Init
Url:		http://www.freedesktop.org/wiki/Software/systemd
%if 0%{?stable}
Source0:	https://github.com/systemd/systemd-stable/archive/v%{version}.tar.gz?/%{name}-stable-%{version}.tar.gz
%else
#Source0:	https://github.com/systemd/systemd/archive/v%{version}/%{name}-%{version}.tar.gz
Source0:	https://github.com/systemd/systemd/archive/%{commit}/%{name}-%{commit}.tar.gz
%endif
Source2:	50-udev-mandriva.rules
Source3:	69-printeracl.rules
# (hk) udev rules for zte 3g modems with drakx-net
Source10:	61-mobile-zte-drakx-net.rules
# (tpg) default preset for services
Source12:	90-default.preset
Source13:	85-display-manager.preset
Source14:	99-default-disable.preset
# Our efi boot generator
Source15:	systemd-efi-boot-generator
Source19:	10-imx.rules
# From Fedora + added paths without /usr/
Source23:	triggers.rpm4
Source25:	systemd-user.pam
Source26:	sysusers.prov
Source27:	sysusers.attr
Source100:	%{name}.rpmlintrc
# elbrus port
Source200:	add-e2k-support.patch
Source201:	0001-fix-syntax-error.patch
Source202:	0002-shm-header-fix.patch
Source203:	0001-CONST_MAX-macro-remove.patch
Source204:	249-buildfix-systemd.patch

# Patches are commited here:
# https://github.com/mikhailnov/systemd/tree/rosa-v246
Patch0001:	0001-Silence-udev-version-print-during-boot-as-it-breaks-.patch
Patch0002:	0002-Preserve-locale-settings-for-login-bz5189.patch
Patch0003:	0003-Don-t-create-etc-os-release.patch
Patch0004:	0004-disable-duplicate-services.patch
# not a cherry-pick from upstream, do not loose it
Patch0005:	0005-sysctl.d-Prevent-traffic-hijacking-and-disclosing-IP.patch
# https://github.com/systemd/systemd/pull/15479
Patch0006:	0006-vconsole-setup-always-run-setfont-8-despite-empty-et.patch
Patch0007:	0007-Drop-warning-about-depreceated-var-run.patch
# https://github.com/systemd/systemd/pull/20219
# Userspace is not ready for this, avoid regressions
Patch0008:	0008-Revert-NEWS-Note-Intel-HID-rfkill-mask-is-removed.patch
Patch0009:	0009-Revert-hwdb-Remove-intel-hid-rfkill-mask.patch
Patch0010:	0010-sulogin-shell-allow-locked-root-by-default.patch
Patch0011:	0011-xdg-autostart-service-Ignore-missing-desktop-sepcifi.patch
Patch0012:	0012-xdg-autostart-generator-make-parameter-const.patch
Patch0013:	0013-xdg-autostart-generator-rework-debug-logging.patch
Patch0014:	0014-xdg-autostart-generator-use-ASSERT_PTR-more.patch
Patch0015:	0015-xdg-autostart-service-Use-common-boolean-parser.patch
Patch0016:	0016-xdg-autostart-service-Fix-binary-escaping-and-simpli.patch
Patch0017:	0017-xdg-autostart-service-expand-tilde-in-Exec-lines.patch
Patch0018:	0018-xdg-autostart-service-Add-comments-to-tilde-expansio.patch
Patch0019:	0019-xdg-autostart-generator-do-not-warn-about-unknown-fi.patch
Patch0020:	0020-macro-add-ASSERT_SE_PTR-macro.patch
Patch0021:	0021-macro-fundamental-allow-to-nest-ASSERT_PTR.patch
Patch0022:	0022-xdg-autostart-service-handle-gnome-autostart-phase-b.patch
Patch0023:	0023-rm-rf-optionally-fsync-after-removing-directory-tree.patch
Patch0024:	0024-tmpfiles-st-may-have-been-used-uninitialized.patch
Patch0025:	0025-tree-wide-make-FOREACH_DIRENT_ALL-define-the-iterato.patch
Patch0026:	0026-shared-rm_rf-refactor-rm_rf_children_inner-to-shorte.patch
Patch0027:	0027-shared-rm_rf-refactor-rm_rf-to-shorten-code-a-bit.patch
Patch0028:	0028-macro-add-new-helper-RET_NERRNO.patch
# CVE-2021-3997
Patch0029:	0029-shared-rm-rf-loop-over-nested-directories-instead-of.patch
Patch0030:	0030-coredump-adjust-whitespace.patch
Patch0031:	0031-coredump-drop-an-unused-variable.patch
Patch0032:	0032-define-and-use-STRERROR_OR_EOF.patch
Patch0033:	0033-basic-add-STRERROR-wrapper-for-strerror_r.patch
# CVE-2022-4415
Patch0034:	0034-coredump-do-not-allow-user-to-access-coredumps-with-.patch
Patch0035:	0035-Use-ExitType-cgroup-for-autostart-generated-services.patch
Patch0036:	0036-Reintroduce-ExitType.patch
Patch0037:	CVE-2022-3821.patch
# CVE-2021-33910 already fixed in Source0

BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd42-xml
BuildRequires:	docbook-dtd45-xml
# for %%autosetup -S git_am
BuildRequires:	git-core
BuildRequires:	gperf
BuildRequires:	meson
BuildRequires:	cmake
# make sure we have /etc/os-release available, required by --with-distro
#BuildRequires:	rosa-release-common
BuildRequires:	vala
BuildRequires:	xsltproc
BuildRequires:	acl-devel
BuildRequires:	audit-devel
BuildRequires:	libcap-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pam-devel
BuildRequires:	qrencode-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	perl(XML::Parser)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
%if %{with efi}
BuildRequires:	pkgconfig(efivar)
# For EFI support in bootctl (systemd-boot)
BuildRequires:	gnu-efi-devel
%endif
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(mount)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcryptsetup)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libkmod)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpci)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(libmicrohttpd)
BuildRequires:	pkgconfig(libqrencode)
BuildRequires:	pkgconfig(libiptc)
BuildRequires:	pkgconfig(libzstd)
%if %{without bootstrap}
BuildRequires:	python3-lxml
# requires to build with tpm2 support for systemd-cryptenroll
BuildRequires:	pkgconfig(tss2-esys)
BuildRequires:	pkgconfig(tss2-rc)
BuildRequires:	pkgconfig(tss2-mu)
%endif
BuildRequires:	python3-jinja2
BuildRequires:	elfutils-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(gnutls)
# for %%_openssldir
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libseccomp)
# /run etc.
Requires:	filesystem
Requires(pre):	filesystem
Requires:	bash-completion
Requires:	dbus
Requires:	efivar
#Need for efi generator
Requires:	gdisk
# (tpg) just to be sure we install this libraries
Requires:	%{libname} = %{EVRD}
Requires:	nss_myhostname = %{EVRD}
Requires:	kmod
Requires:	kbd
Requires:	udev = %{EVRD}
Requires:	%{libudev} = %{EVRD}
Requires:	%{sharedlibVpkg} = %{EVRD}
Requires:	%{name}-units = %{EVRD}
Requires(pre,post):	coreutils
Requires(post):	awk
Requires(post):	gawk
Requires(post):	grep
Requires(pre):	util-linux
Requires(pre):	shadow-utils
# see comments above
Requires(post):	%{libseccomp_libname} >= %{libseccomp_target_min_version}
Requires:	rosa-kernel-tools
Conflicts:	%{name}-units < %{EVRD}
Conflicts:	%{name}-units > %{EVRD}
Provides:	should-restart = system
#(tpg)for future releases... systemd provides also a full functional syslog tool
Provides:	syslog-daemon
Provides:	readahead
# keeping this versionized untill some packages still conflict with sysvinit < xxx
Provides:	sysvinit = 2.87-17
Provides:	SysVinit = 2.87-17
# files were moved
Conflicts:	systemd-units < 1.gitfab79a.2
Provides:	systemd-coredump = %{EVRD}
Provides:	systemd-polkit = %{EVRD}
Provides:	systemd-console = %{EVRD}
Provides:	systemd-coredump = %{EVRD}
Provides:	systemd-cryptsetup = %{EVRD}
Provides:	systemd-analyze = %{EVRD}
# compat with Fedora/RH
# systemd-libs there contains different libraries,
# this package pulls most of them.
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=11912
Provides:	systemd-libs%{_isa} = %{EVRD}
Provides:	systemd-libs = %{EVRD}

%description
systemd is a system and session manager for Linux, compatible with
SysV and LSB init scripts. systemd provides aggressive parallelization
capabilities, uses socket and D-Bus activation for starting services,
offers on-demand starting of daemons, keeps track of processes using
Linux cgroups, supports snapshotting and restoring of the system
state, maintains mount and automount points and implements an
elaborate transactional dependency-based service control logic. It can
work as a drop-in replacement for sysvinit.

%files -f %{name}.lang
%license LICENSE.LGPL2.1
#TODO: uncomment on next update
#%%license LICENSE.LGPL2.1 LICENSES/*.txt LICENSES/*.md
%{_datadir}/dbus-1/system-services/org.freedesktop.portable1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.timesync1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.hostname1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.import1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.locale1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.login1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.machine1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.network1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.portable1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.resolve1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.systemd1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.timedate1.conf
%{_datadir}/dbus-1/system.d/org.freedesktop.timesync1.conf
%config(noreplace) %{_sysconfdir}/systemd/coredump.conf
%config(noreplace) %{_sysconfdir}/systemd/system.conf
%config(noreplace) %{_sysconfdir}/systemd/logind.conf
%config(noreplace) %{_sysconfdir}/systemd/journald.conf
%config(noreplace) %{_sysconfdir}/systemd/user.conf
%config(noreplace) %{_sysconfdir}/systemd/networkd.conf
%config(noreplace) %{_sysconfdir}/systemd/pstore.conf
%config(noreplace) %{_sysconfdir}/systemd/sleep.conf
%config(noreplace) %{_sysconfdir}/systemd/resolved.conf
%config(noreplace) %{_sysconfdir}/systemd/timesyncd.conf
%config %{_prefix}/lib/sysctl.d/50-coredump.conf
%if "%{?_lib}" == "lib64"
%config %{_prefix}/lib/sysctl.d/50-pid-max.conf
%endif
%config %{_prefix}/lib/sysctl.d/50-default.conf
%config %{_prefix}/lib/sysusers.d/basic.conf
%config %{_prefix}/lib/sysusers.d/systemd.conf
%config %{_prefix}/lib/environment.d/99-environment.conf
%config /lib/modprobe.d/systemd.conf
%doc /lib/modprobe.d/systemd.README
%config /lib/systemd/resolv.conf
/%{_lib}/cryptsetup/libcryptsetup-token-systemd-pkcs11.so
%if %{without bootstrap}
/%{_lib}/cryptsetup/libcryptsetup-token-systemd-tpm2.so
%endif
%ghost %config(noreplace) %{_sysconfdir}/hostname
%ghost %config(noreplace) %{_sysconfdir}/localtime
%ghost %config(noreplace) %{_sysconfdir}/vconsole.conf
%ghost %config(noreplace) %{_sysconfdir}/locale.conf
%ghost %config(noreplace) %{_sysconfdir}/machine-id
%ghost %config(noreplace) %{_sysconfdir}/machine-info
%ghost %config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf
%ghost %verify(not md5 size mtime) %config(noreplace,missingok) %{_sysconfdir}/crypttab

%ghost %{_localstatedir}/lib/systemd/.presetted
%ghost %attr(0664,root,utmp) %{_localstatedir}/run/utmp
%ghost %attr(0664,root,utmp) %{_localstatedir}/log/wtmp
%ghost %attr(0600,root,utmp) %{_localstatedir}/log/btmp
%{_sysconfdir}/pam.d/%{name}-user

%{systemd_usrlibdir}/user-environment-generators/30-systemd-environment-d-generator
%{systemd_usrlibdir}/user-generators/systemd-xdg-autostart-generator
%{_prefix}/lib/kernel/install.d/*.install
%{_sysconfdir}/X11/xinit.d/50-systemd-user.sh
%{_sysconfdir}/xdg/systemd
%dir %{_localstatedir}/lib/systemd
%attr(0755,root,systemd-coredump) %dir %{_localstatedir}/lib/systemd/coredump
%attr(02755,root,systemd-journal) %dir %{_logdir}/journal

# (law) from sysvinit subpackage
/sbin/init
/bin/reboot
/sbin/reboot
/bin/halt
/sbin/halt
/bin/systemctl
/bin/machinectl
/bin/poweroff
/bin/userdbctl
/sbin/poweroff
/sbin/shutdown
/sbin/telinit
/sbin/runlevel
/sbin/resolvconf
#
/bin/systemd-ask-password
/bin/systemd-creds
/bin/systemd-notify
/bin/systemd-tmpfiles
/bin/systemd-tty-ask-password-agent
/bin/systemd-sysext
/bin/systemd
/bin/networkctl
/bin/systemd-escape
/bin/systemd-firstboot
/bin/systemd-sysusers
/bin/journalctl
/bin/loginctl
/bin/systemd-inhibit
/bin/portablectl
/sbin/systemd-machine-id-setup
%{_bindir}/busctl
%{_bindir}/systemd-analyze
%{_bindir}/systemd-delta
%{_bindir}/systemd-detect-virt
%{_bindir}/systemd-loginctl
%{_bindir}/systemd-path
%{_bindir}/hostnamectl
%{_bindir}/kernel-install
%{_bindir}/localectl
%{_bindir}/coredumpctl
%{_bindir}/timedatectl
%{_bindir}/systemctl
%{_bindir}/systemd-cryptenroll
%{_bindir}/systemd-dissect
%{_bindir}/systemd-resolve
%{_bindir}/systemd-run
%{_bindir}/systemd-socket-activate
%{_bindir}/resolvectl
%{_bindir}/systemd-id128
%{_bindir}/systemd-mount
%{_bindir}/systemd-umount
%{systemd_libdir}/systemd
%{systemd_libdir}/import-pubring.gpg
%{systemd_libdir}/systemd-ac-power
%{systemd_libdir}/systemd-backlight
%{systemd_libdir}/systemd-binfmt
%if %{with efi}
%{systemd_libdir}/systemd-bless-boot
%{_bindir}/bootctl
%{systemd_usrlibdir}/boot/*
%endif
%{systemd_libdir}/systemd-boot-check-no-failures
%{systemd_libdir}/systemd-cgroups-agent
%{systemd_libdir}/systemd-coredump
%{systemd_libdir}/systemd-cryptsetup
%{systemd_libdir}/systemd-export
%{systemd_libdir}/systemd-fsck
%{systemd_libdir}/systemd-growfs
%{systemd_libdir}/systemd-hibernate-resume
%{systemd_libdir}/systemd-hostnamed
%{systemd_libdir}/systemd-import
%{systemd_libdir}/systemd-importd
%{systemd_libdir}/systemd-import-fs
%{systemd_libdir}/systemd-initctl
%{systemd_libdir}/systemd-journald
%{systemd_libdir}/systemd-localed
%{systemd_libdir}/systemd-logind
%{systemd_libdir}/systemd-machined
%{systemd_libdir}/systemd-makefs
%{systemd_libdir}/systemd-modules-load
%{systemd_libdir}/systemd-networkd
%{systemd_libdir}/systemd-networkd-wait-online
%{systemd_libdir}/systemd-network-generator
%{systemd_libdir}/systemd-portabled
%{systemd_libdir}/systemd-pstore
%{systemd_libdir}/systemd-pull
%{systemd_libdir}/systemd-quotacheck
%{systemd_libdir}/systemd-random-seed
%{systemd_libdir}/systemd-remount-fs
%{systemd_libdir}/systemd-reply-password
%{systemd_libdir}/systemd-resolved
%{systemd_libdir}/systemd-rfkill
%{systemd_libdir}/systemd-shutdown
%{systemd_libdir}/systemd-sleep
%{systemd_libdir}/systemd-socket-proxyd
%{systemd_libdir}/systemd-sulogin-shell
%{systemd_libdir}/systemd-sysctl
%{systemd_libdir}/systemd-timedated
%{systemd_libdir}/systemd-timesyncd
%{systemd_libdir}/systemd-time-wait-sync
%{systemd_libdir}/systemd-update-done
%{systemd_libdir}/systemd-update-helper
%{systemd_libdir}/systemd-update-utmp
%{systemd_libdir}/systemd-userdbd
%{systemd_libdir}/systemd-user-runtime-dir
%{systemd_libdir}/systemd-user-sessions
%{systemd_libdir}/systemd-userwork
%{systemd_libdir}/systemd-vconsole-setup
%{systemd_libdir}/systemd-veritysetup
%{systemd_libdir}/systemd-volatile-root
%{systemd_libdir}/systemd-xdg-autostart-condition
%exclude %{systemd_libdir}/systemd-udevd
%exclude %{systemd_libdir}/systemd-journal-upload
%exclude %{systemd_libdir}/systemd-journal-gatewayd
%exclude %{systemd_libdir}/systemd-journal-remote
%{systemd_libdir}/*-generators/*
%{systemd_libdir}/system-preset/*.preset
%{_tmpfilesdir}/*.conf
/%{_lib}/security/pam_systemd.so
%{_bindir}/systemd-cgls
%{_bindir}/systemd-nspawn
%{_bindir}/systemd-stdio-bridge
%{_bindir}/systemd-cat
%{_bindir}/systemd-cgtop
%{_mandir}/man1/bootctl.*
%{_mandir}/man1/busctl.1.*
%{_mandir}/man1/coredumpctl.*
%{_mandir}/man1/hostnamectl.*
%{_mandir}/man1/init.*
%{_mandir}/man1/journalctl.1*
%{_mandir}/man1/localectl.*
%{_mandir}/man1/loginctl.*
%{_mandir}/man1/machinectl.*
%{_mandir}/man1/networkctl.1*
%{_mandir}/man1/systemctl.*
%{_mandir}/man1/systemd-analyze.1*
%{_mandir}/man1/systemd-ask-password.*
%{_mandir}/man1/systemd-cat.1*
%{_mandir}/man1/systemd-cgls.*
%{_mandir}/man1/systemd-cgtop.*
%{_mandir}/man1/systemd-creds.1*
%{_mandir}/man1/systemd-cryptenroll.1*
%{_mandir}/man1/systemd-delta.1.*
%{_mandir}/man1/systemd-detect-virt.1.*
%{_mandir}/man1/systemd-dissect.1.*
%{_mandir}/man1/systemd-escape.1.*
%{_mandir}/man1/systemd-firstboot*.1.*
%{_mandir}/man1/systemd-inhibit.1.*
%{_mandir}/man1/systemd-machine-id-setup.1*
%{_mandir}/man1/systemd-notify.*
%{_mandir}/man1/systemd-nspawn.*
%{_mandir}/man1/systemd-path.1.*
%{_mandir}/man1/systemd-run.*
%{_mandir}/man1/systemd-socket-activate.1*
%{_mandir}/man1/systemd-tty-ask-password-agent.*
%{_mandir}/man1/systemd.*
%{_mandir}/man1/timedatectl.*
%{_mandir}/man1/portablectl.1.*
%{_mandir}/man1/resolvconf.1.*
%{_mandir}/man1/resolvectl.1.*
%{_mandir}/man1/systemd-id128.1.*
%{_mandir}/man1/systemd-mount.1.*
%{_mandir}/man1/systemd-umount.1.*
%{_mandir}/man1/userdbctl.1.*
%{_mandir}/man5/binfmt.d.5*
%{_mandir}/man5/coredump.conf.5*
%{_mandir}/man5/coredump.conf.d.5*
%{_mandir}/man5/crypttab.5*
%{_mandir}/man5/dnssec-trust-anchors.d.5*
%{_mandir}/man5/environment.d.5*
%{_mandir}/man5/extension-release.5*
%{_mandir}/man5/hostname.5*
%{_mandir}/man5/initrd-release.5*
%{_mandir}/man5/journald.conf.5*
%{_mandir}/man5/journald@.conf.5*
%{_mandir}/man5/journald.conf.d.5*
%{_mandir}/man5/journal-remote.conf.5*
%{_mandir}/man5/journal-remote.conf.d.5*
%{_mandir}/man5/journal-upload.conf.5*
%{_mandir}/man5/journal-upload.conf.d.5*
%{_mandir}/man5/loader.conf.5*
%{_mandir}/man5/locale.conf.5*
%{_mandir}/man5/localtime.5*
%{_mandir}/man5/logind.conf.5*
%{_mandir}/man5/logind.conf.d.5*
%{_mandir}/man5/machine-id.5*
%{_mandir}/man5/machine-info.5*
%{_mandir}/man5/modules-load.d.5*
%{_mandir}/man5/networkd.conf.5*
%{_mandir}/man5/networkd.conf.d.5*
%{_mandir}/man5/org.freedesktop.hostname1.5*
%{_mandir}/man5/org.freedesktop.import1.5*
%{_mandir}/man5/org.freedesktop.locale1.5*
%{_mandir}/man5/org.freedesktop.LogControl1.5*
%{_mandir}/man5/org.freedesktop.login1.5*
%{_mandir}/man5/org.freedesktop.machine1.5*
%{_mandir}/man5/org.freedesktop.portable1.5*
%{_mandir}/man5/org.freedesktop.resolve1.5*
%{_mandir}/man5/org.freedesktop.systemd1.5*
%{_mandir}/man5/org.freedesktop.timedate1.5*
%{_mandir}/man5/os-release.5*
%{_mandir}/man5/pstore.conf.5*
%{_mandir}/man5/pstore.conf.d.5*
%{_mandir}/man5/resolved.conf.5*
%{_mandir}/man5/resolved.conf.d.5*
%{_mandir}/man5/sleep.conf.d.5*
%{_mandir}/man5/sysctl.d.5*
%{_mandir}/man5/system.conf.d.5*
%{_mandir}/man5/systemd.automount.5*
%{_mandir}/man5/systemd.device.5*
%{_mandir}/man5/systemd.dnssd.5*
%{_mandir}/man5/systemd.exec.5*
%{_mandir}/man5/systemd.kill.5*
%{_mandir}/man5/systemd.link.5*
%{_mandir}/man5/systemd.mount.5*
%{_mandir}/man5/systemd.negative.5*
%{_mandir}/man5/systemd.netdev.5*
%{_mandir}/man5/systemd.network.5*
%{_mandir}/man5/systemd.nspawn.5*
%{_mandir}/man5/systemd.path.5*
%{_mandir}/man5/systemd.positive.5*
%{_mandir}/man5/systemd.preset.5*
%{_mandir}/man5/systemd.resource-control.5*
%{_mandir}/man5/systemd.scope.5*
%{_mandir}/man5/systemd.service.5*
%{_mandir}/man5/systemd-sleep.conf.5*
%{_mandir}/man5/systemd.slice.5*
%{_mandir}/man5/systemd.socket.5*
%{_mandir}/man5/systemd.swap.5*
%{_mandir}/man5/systemd-system.conf.5*
%{_mandir}/man5/systemd.target.5*
%{_mandir}/man5/systemd.timer.5*
%{_mandir}/man5/systemd.unit.5*
%{_mandir}/man5/systemd-user.conf.5*
%{_mandir}/man5/systemd-user-runtime-dir.5*
%{_mandir}/man5/sysusers.d.5*
%{_mandir}/man5/timesyncd.conf.5*
%{_mandir}/man5/timesyncd.conf.d.5*
%{_mandir}/man5/tmpfiles.d.5*
%{_mandir}/man5/udev.conf.5*
%{_mandir}/man5/user.conf.d.5*
%{_mandir}/man5/user-runtime-dir@.service.5*
%{_mandir}/man5/user@.service.5*
%{_mandir}/man5/vconsole.conf.5*
%{_mandir}/man5/veritytab.5*
%{_mandir}/man7/bootup.7*
%{_mandir}/man7/daemon.7*
%{_mandir}/man7/file-hierarchy.7*
%{_mandir}/man7/hwdb.7*
%{_mandir}/man7/kernel-command-line.7*
%{_mandir}/man7/linuxaa64.efi.stub.7*
%{_mandir}/man7/linuxia32.efi.stub.7*
%{_mandir}/man7/linuxx64.efi.stub.7*
%{_mandir}/man7/sd-boot.7*
%{_mandir}/man7/systemd-boot.7*
%{_mandir}/man7/systemd.directives.7*
%{_mandir}/man7/systemd.environment-generator.7*
%{_mandir}/man7/systemd.generator.7*
%{_mandir}/man7/systemd.index.7*
%{_mandir}/man7/systemd.journal-fields.7*
%{_mandir}/man7/systemd.net-naming-scheme.7*
%{_mandir}/man7/systemd.offline-updates.7*
%{_mandir}/man7/systemd.special.7*
%{_mandir}/man7/systemd-stub.7*
%{_mandir}/man7/systemd.syntax.7*
%{_mandir}/man7/systemd.time.7*
%{_mandir}/man8/30-systemd-environment-d-generator.8*
%{_mandir}/man8/halt.8*
%{_mandir}/man8/kernel-install.8*
%{_mandir}/man8/libnss_systemd.so.2.8*
%{_mandir}/man8/nss-systemd.8*
%{_mandir}/man8/pam_systemd.8*
%{_mandir}/man8/poweroff.8*
%{_mandir}/man8/rc-local.service.8*
%{_mandir}/man8/reboot.8*
%{_mandir}/man8/runlevel.8*
%{_mandir}/man8/shutdown.8*
%{_mandir}/man8/systemd-ask-password-console.path.8*
%{_mandir}/man8/systemd-ask-password-console.service.8*
%{_mandir}/man8/systemd-ask-password-wall.path.8*
%{_mandir}/man8/systemd-ask-password-wall.service.8*
%{_mandir}/man8/systemd-backlight.8*
%{_mandir}/man8/systemd-backlight@.service.8*
%{_mandir}/man8/systemd-binfmt.8*
%{_mandir}/man8/systemd-binfmt.service.8*
%{_mandir}/man8/systemd-bless-boot.8*
%{_mandir}/man8/systemd-bless-boot-generator.8*
%{_mandir}/man8/systemd-bless-boot.service.8*
%{_mandir}/man8/systemd-boot-check-no-failures.8*
%{_mandir}/man8/systemd-boot-check-no-failures.service.8*
%{_mandir}/man8/systemd-boot-system-token.service.8*
%{_mandir}/man8/systemd-coredump.8*
%{_mandir}/man8/systemd-coredump@.service.8*
%{_mandir}/man8/systemd-coredump.socket.8*
%{_mandir}/man8/systemd-cryptsetup.8*
%{_mandir}/man8/systemd-cryptsetup-generator.8*
%{_mandir}/man8/systemd-cryptsetup@.service.8*
%{_mandir}/man8/systemd-debug-generator.8*
%{_mandir}/man8/systemd-environment-d-generator.8*
%{_mandir}/man8/systemd-fsck.8*
%{_mandir}/man8/systemd-fsck-root.service.8*
%{_mandir}/man8/systemd-fsck@.service.8*
%{_mandir}/man8/systemd-fstab-generator.8*
%{_mandir}/man8/systemd-getty-generator.8*
%{_mandir}/man8/systemd-gpt-auto-generator.8*
%{_mandir}/man8/systemd-growfs.8*
%{_mandir}/man8/systemd-growfs@.service.8*
%{_mandir}/man8/systemd-halt.service.8*
%{_mandir}/man8/systemd-hibernate-resume.8*
%{_mandir}/man8/systemd-hibernate-resume-generator.8*
%{_mandir}/man8/systemd-hibernate-resume@.service.8*
%{_mandir}/man8/systemd-hibernate.service.8*
%{_mandir}/man8/systemd-hostnamed.8*
%{_mandir}/man8/systemd-hostnamed.service.8*
%{_mandir}/man8/systemd-hwdb.8*
%{_mandir}/man8/systemd-hybrid-sleep.service.8*
%{_mandir}/man8/systemd-importd.8*
%{_mandir}/man8/systemd-importd.service.8*
%{_mandir}/man8/systemd-initctl.8*
%{_mandir}/man8/systemd-initctl.service.8*
%{_mandir}/man8/systemd-initctl.socket.8*
%{_mandir}/man8/systemd-journald.8*
%{_mandir}/man8/systemd-journald-audit.socket.8*
%{_mandir}/man8/systemd-journald-dev-log.socket.8*
%{_mandir}/man8/systemd-journald.service.8*
%{_mandir}/man8/systemd-journald@.service.8*
%{_mandir}/man8/systemd-journald.socket.8*
%{_mandir}/man8/systemd-journald@.socket.8*
%{_mandir}/man8/systemd-journald-varlink@.socket.8*
%{_mandir}/man8/systemd-kexec.service.8*
%{_mandir}/man8/systemd-localed.8*
%{_mandir}/man8/systemd-localed.service.8*
%{_mandir}/man8/systemd-logind.8*
%{_mandir}/man8/systemd-logind.service.8*
%{_mandir}/man8/systemd-machined.8*
%{_mandir}/man8/systemd-machined.service.8*
%{_mandir}/man8/systemd-machine-id-commit.service.8*
%{_mandir}/man8/systemd-makefs.8*
%{_mandir}/man8/systemd-makefs@.service.8*
%{_mandir}/man8/systemd-mkswap@.service.8*
%{_mandir}/man8/systemd-modules-load.8*
%{_mandir}/man8/systemd-modules-load.service.8*
%{_mandir}/man8/systemd-networkd.8*
%{_mandir}/man8/systemd-networkd.service.8*
%{_mandir}/man8/systemd-networkd-wait-online.8*
%{_mandir}/man8/systemd-networkd-wait-online.service.8*
%{_mandir}/man8/systemd-network-generator.8*
%{_mandir}/man8/systemd-network-generator.service.8*
%{_mandir}/man8/systemd-portabled.8*
%{_mandir}/man8/systemd-portabled.service.8*
%{_mandir}/man8/systemd-poweroff.service.8*
%{_mandir}/man8/systemd-pstore.8*
%{_mandir}/man8/systemd-pstore.service.8*
%{_mandir}/man8/systemd-quotacheck.8*
%{_mandir}/man8/systemd-quotacheck.service.8*
%{_mandir}/man8/systemd-random-seed.8*
%{_mandir}/man8/systemd-random-seed.service.8*
%{_mandir}/man8/systemd-rc-local-generator.8*
%{_mandir}/man8/systemd-reboot.service.8*
%{_mandir}/man8/systemd-remount-fs.8*
%{_mandir}/man8/systemd-remount-fs.service.8*
%{_mandir}/man8/systemd-resolved.8*
%{_mandir}/man8/systemd-resolved.service.8*
%{_mandir}/man8/systemd-rfkill.8*
%{_mandir}/man8/systemd-rfkill.service.8*
%{_mandir}/man8/systemd-rfkill.socket.8*
%{_mandir}/man8/systemd-run-generator.8*
%{_mandir}/man8/systemd-shutdown.8*
%{_mandir}/man8/systemd-sleep.8*
%{_mandir}/man8/systemd-socket-proxyd.8*
%{_mandir}/man8/systemd-suspend.service.8*
%{_mandir}/man8/systemd-suspend-then-hibernate.service.8*
%{_mandir}/man8/systemd-sysctl.8*
%{_mandir}/man8/systemd-sysctl.service.8*
%{_mandir}/man8/systemd-sysext.8*
%{_mandir}/man8/systemd-sysext.service.8*
%{_mandir}/man8/systemd-system-update-generator.8*
%{_mandir}/man8/systemd-sysusers.8*
%{_mandir}/man8/systemd-sysusers.service.8*
%{_mandir}/man8/systemd-sysv-generator.8*
%{_mandir}/man8/systemd-timedated.8*
%{_mandir}/man8/systemd-timedated.service.8*
%{_mandir}/man8/systemd-timesyncd.8*
%{_mandir}/man8/systemd-timesyncd.service.8*
%{_mandir}/man8/systemd-time-wait-sync.8*
%{_mandir}/man8/systemd-time-wait-sync.service.8*
%{_mandir}/man8/systemd-tmpfiles.8*
%{_mandir}/man8/systemd-tmpfiles-clean.service.8*
%{_mandir}/man8/systemd-tmpfiles-clean.timer.8*
%{_mandir}/man8/systemd-tmpfiles-setup-dev.service.8*
%{_mandir}/man8/systemd-tmpfiles-setup.service.8*
%{_mandir}/man8/systemd-udevd.8*
%{_mandir}/man8/systemd-udevd-control.socket.8*
%{_mandir}/man8/systemd-udevd-kernel.socket.8*
%{_mandir}/man8/systemd-udevd.service.8*
%{_mandir}/man8/systemd-udev-settle.service.8*
%{_mandir}/man8/systemd-update-done.8*
%{_mandir}/man8/systemd-update-done.service.8*
%{_mandir}/man8/systemd-update-utmp.8*
%{_mandir}/man8/systemd-update-utmp-runlevel.service.8*
%{_mandir}/man8/systemd-update-utmp.service.8*
%{_mandir}/man8/systemd-userdbd.8*
%{_mandir}/man8/systemd-userdbd.service.8*
%{_mandir}/man8/systemd-user-sessions.8*
%{_mandir}/man8/systemd-user-sessions.service.8*
%{_mandir}/man8/systemd-vconsole-setup.8*
%{_mandir}/man8/systemd-vconsole-setup.service.8*
%{_mandir}/man8/systemd-veritysetup.8*
%{_mandir}/man8/systemd-veritysetup-generator.8*
%{_mandir}/man8/systemd-veritysetup@.service.8*
%{_mandir}/man8/systemd-volatile-root.8*
%{_mandir}/man8/systemd-volatile-root.service.8*
%{_mandir}/man8/systemd-xdg-autostart-generator.8*
%{_mandir}/man8/telinit.8*
%exclude %{_mandir}/man8/systemd-journal-gatewayd.*
%exclude %{_mandir}/man8/systemd-journal-remote.*
%exclude %{_mandir}/man8/systemd-journal-upload.*
%exclude %{_mandir}/man8/systemd-journal-upload.service.*
%{_datadir}/dbus-1/system-services/org.freedesktop.hostname1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.import1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.locale1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.login1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.machine1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.network1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.resolve1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/services/org.freedesktop.systemd1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.timedate1.service
%{_datadir}/polkit-1/actions/org.freedesktop.systemd1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.hostname1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.import1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.locale1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.login1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.machine1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.timedate1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.network1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.portable1.policy
%{_datadir}/polkit-1/actions/org.freedesktop.resolve1.policy
%{_datadir}/polkit-1/rules.d/systemd-networkd.rules
%{_datadir}/systemd/kbd-model-map
%{_datadir}/systemd/language-fallback-map
%{_datadir}/factory/etc/nsswitch.conf
%{_datadir}/factory/etc/pam.d/other
%{_datadir}/factory/etc/pam.d/system-auth
%{_datadir}/factory/etc/issue
%{_docdir}/systemd
%doc %{_initddir}/systemd.README
%doc %{_var}/log/systemd.README
/var/spool/initramfs-regen/systemd
%{_rpmconfigdir}/sysusers.prov
%{_rpmconfigdir}/fileattrs/sysusers.attr

#----------------------------------------------------------------------------

%package units
Summary:	Configuration files, directories and installation tool for systemd
Group:		System/Configuration/Boot and Init
# files were moved
Conflicts:	systemd < 1.gitfab79a.2
Provides:	systemd-locale = %{EVRD}

%description units
Basic configuration files, directories and installation tool for the systemd
system and session manager.

%files units
%exclude /*udev*
%exclude /*hwdb*
%dir %{_prefix}/lib/binfmt.d
%dir %{_prefix}/lib/modules-load.d
%dir %{_prefix}/lib/sysctl.d
%dir %{_prefix}/lib/sysusers.d
%doc %{_prefix}/lib/sysctl.d/README
%doc %{_prefix}/lib/sysusers.d/README
%dir %{_prefix}/lib/tmpfiles.d
%doc %{_prefix}/lib/tmpfiles.d/README
%dir %{_sysconfdir}/systemd
%dir %{_sysconfdir}/systemd/system
%dir %{_sysconfdir}/systemd/user
%dir %{_sysconfdir}/systemd/user/default.target.wants
%dir %{_sysconfdir}/systemd/system/getty.target.wants
%dir %{_sysconfdir}/tmpfiles.d
%dir %{_sysconfdir}/sysctl.d
%config(noreplace) %{_sysconfdir}/sysctl.d/99-sysctl.conf
# symlink to /etc/sysctl.d/99-sysctl.conf
%{_sysconfdir}/sysctl.conf
%dir %{_sysconfdir}/modules-load.d
%dir %{_sysconfdir}/binfmt.d
%dir %{systemd_libdir}
%dir %{systemd_libdir}/system-generators
%dir %{systemd_libdir}/network
%dir %{systemd_libdir}/ntp-units.d
%dir %{systemd_libdir}/system
%dir %{systemd_libdir}/system/basic.target.wants
%dir %{systemd_libdir}/system/bluetooth.target.wants
%dir %{systemd_libdir}/system/dbus.target.wants
%dir %{systemd_libdir}/system/default.target.wants
%dir %{systemd_libdir}/system/graphical.target.wants
%dir %{systemd_libdir}/system/halt.target.wants
%dir %{systemd_libdir}/system/initrd.target.wants
%if %{with efi}
%dir %{systemd_libdir}/system/initrd-root-device.target.wants
%endif
%dir %{systemd_libdir}/system/initrd-switch-root.target.wants
%dir %{systemd_libdir}/system/kexec.target.wants
%dir %{systemd_libdir}/system/local-fs.target.wants
%dir %{systemd_libdir}/system/machines.target.wants
%dir %{systemd_libdir}/system/multi-user.target.wants
%dir %{systemd_libdir}/system/poweroff.target.wants
%dir %{systemd_libdir}/system/reboot.target.wants
%dir %{systemd_libdir}/system/remote-fs.target.wants
%dir %{systemd_libdir}/system/rescue.target.wants
%dir %{systemd_libdir}/system/runlevel1.target.wants
%dir %{systemd_libdir}/system/runlevel2.target.wants
%dir %{systemd_libdir}/system/runlevel3.target.wants
%dir %{systemd_libdir}/system/runlevel4.target.wants
%dir %{systemd_libdir}/system/runlevel5.target.wants
%dir %{systemd_libdir}/system/sockets.target.wants
%dir %{systemd_libdir}/system/sound.target.wants
%dir %{systemd_libdir}/system/sysinit.target.wants
%dir %{systemd_libdir}/system/syslog.target.wants
%dir %{systemd_libdir}/system/timers.target.wants
%dir %{systemd_libdir}/system-preset
%dir %{systemd_libdir}/system-sleep
%dir %{systemd_libdir}/portable
%dir %{systemd_libdir}/portable/profile
%dir %{systemd_libdir}/portable/profile/default
%dir %{systemd_libdir}/portable/profile/nonetwork
%dir %{systemd_libdir}/portable/profile/strict
%dir %{systemd_libdir}/portable/profile/trusted
%dir %{systemd_libdir}/user-preset
%dir %{_sysconfdir}/systemd/network
%dir %{systemd_usrlibdir}
%dir %{systemd_usrlibdir}/catalog
%dir %{systemd_usrlibdir}/system-generators
%dir %{systemd_usrlibdir}/system-environment-generators
%dir %{systemd_usrlibdir}/user-environment-generators
%dir %{systemd_usrlibdir}/user
%dir %{systemd_usrlibdir}/user-generators
%dir %{systemd_usrlibdir}/user-preset
%dir %{_datadir}/bash-completion
%dir %{_datadir}/bash-completion/completions
%{_datadir}/bash-completion/completions/*
%{_datadir}/zsh/site-functions/*
%{_sysconfdir}/profile.d/40systemd.sh
%{_rpmmacrodir}/*%{name}*
%{systemd_libdir}/system/initrd-root-device.target.wants/remote-cryptsetup.target
%{systemd_libdir}/system/initrd-root-device.target.wants/remote-veritysetup.target
%{systemd_libdir}/system/local-fs.target.wants/*.mount
%{systemd_libdir}/system/remote-fs.target.wants/*.mount
%{systemd_libdir}/system/machines.target.wants/*.mount
%{systemd_libdir}/system/multi-user.target.wants/*.target
%{systemd_libdir}/system/multi-user.target.wants/*.path
%{systemd_libdir}/system/multi-user.target.wants/*.service
%{systemd_libdir}/system/sockets.target.wants/*.socket
%{systemd_libdir}/system/sysinit.target.wants/cryptsetup.target
%{systemd_libdir}/system/sysinit.target.wants/veritysetup.target
%if %{with efi}
%{systemd_libdir}/system/systemd-boot-update.service
%endif
%{systemd_libdir}/system/sysinit.target.wants/*.*mount
%{systemd_libdir}/system/sysinit.target.wants/*.service
%{systemd_libdir}/system/sysinit.target.wants/*.path
%{systemd_libdir}/system/timers.target.wants/*.timer
%{systemd_libdir}/system/graphical.target.wants/*.service
%{systemd_libdir}/system/rescue.target.wants/*.service
%{systemd_libdir}/system/*.automount
%{systemd_libdir}/system/*.mount
%{systemd_libdir}/system/*.path
%{systemd_libdir}/system/auto*.service
%{systemd_libdir}/system/console*.service
%{systemd_libdir}/system/container-getty@.service
%{systemd_libdir}/system/dbus-org.freedesktop.hostname1.service
%{systemd_libdir}/system/dbus-org.freedesktop.import1.service
%{systemd_libdir}/system/dbus-org.freedesktop.locale1.service
%{systemd_libdir}/system/dbus-org.freedesktop.login1.service
%{systemd_libdir}/system/dbus-org.freedesktop.machine1.service
%{systemd_libdir}/system/dbus-org.freedesktop.portable1.service
%{systemd_libdir}/system/dbus-org.freedesktop.timedate1.service
%{systemd_libdir}/system/de*.service
%{systemd_libdir}/system/emergency*.service
%{systemd_libdir}/system/getty*.service
%{systemd_libdir}/system/initrd-*.service
%{systemd_libdir}/system/kmod-*.service
%{systemd_libdir}/system/ldconfig.service
%{systemd_libdir}/system/modprobe@.service
%{systemd_libdir}/system/quota*.service
%{systemd_libdir}/system/rc-*.service
%{systemd_libdir}/system/rescue*.service
%{systemd_libdir}/system/serial-*.service
%{systemd_libdir}/system/systemd-ask-password*.service
%{systemd_libdir}/system/systemd-backlight*.service
%{systemd_libdir}/system/systemd-binfmt*.service
%{systemd_libdir}/system/systemd-coredump@.service
%{systemd_libdir}/system/systemd-exit.service
%{systemd_libdir}/system/systemd-firstboot.service
%{systemd_libdir}/system/systemd-fsck*.service
%{systemd_libdir}/system/systemd-halt*.service
%{systemd_libdir}/system/systemd-hibernate*.service
%{systemd_libdir}/system/systemd-hostnamed*.service
%{systemd_libdir}/system/systemd-hybrid*.service
%{systemd_libdir}/system/systemd-importd.service
%{systemd_libdir}/system/systemd-initctl*.service
%{systemd_libdir}/system/systemd-journal-flush.service
%{systemd_libdir}/system/systemd-journal-catalog-update.service
%{systemd_libdir}/system/systemd-journald.service
%{systemd_libdir}/system/systemd-journald-dev-log.socket
%{systemd_libdir}/system/systemd-journald-varlink@.socket
%{systemd_libdir}/system/systemd-journald@.service
%{systemd_libdir}/system/systemd-journald@.socket
%{systemd_libdir}/system/systemd-kexec*.service
%{systemd_libdir}/system/systemd-localed*.service
%{systemd_libdir}/system/systemd-logind*.service
%{systemd_libdir}/system/systemd-machined.service
%{systemd_libdir}/system/systemd-machine-id-commit.service
%{systemd_libdir}/system/systemd-modules-load.service
%{systemd_libdir}/system/systemd-networkd.service
%{systemd_libdir}/system/systemd-networkd-wait-online.service
%{systemd_libdir}/system/systemd-nspawn*.service
%{systemd_libdir}/system/systemd-poweroff.service
%{systemd_libdir}/system/systemd-quotacheck.service
%{systemd_libdir}/system/systemd-random*service
%{systemd_libdir}/system/systemd-reboot.service
%{systemd_libdir}/system/systemd-remount*.service
%{systemd_libdir}/system/systemd-resolved.service
%{systemd_libdir}/system/systemd-rfkill.service
%{systemd_libdir}/system/systemd-suspend.service
%{systemd_libdir}/system/systemd-sysctl.service
%{systemd_libdir}/system/systemd-sysext.service
%{systemd_libdir}/system/systemd-sysusers.service
%{systemd_libdir}/system/systemd-timedated.service
%{systemd_libdir}/system/systemd-timesyncd.service
%{systemd_libdir}/system/systemd-tmpfiles-*.service
%{systemd_libdir}/system/systemd-tmpfiles-*.timer
%{systemd_libdir}/system/systemd-update-*.service
%{systemd_libdir}/system/systemd-user-*.service
%{systemd_libdir}/system/systemd-userdbd.service
%{systemd_libdir}/system/systemd-userdbd.socket
%{systemd_libdir}/system/systemd-vconsole-*.service
%{systemd_libdir}/system/system-update-cleanup.service
%if %{with efi}
%{systemd_libdir}/system/systemd-bless-boot.service
%{systemd_libdir}/system/systemd-boot-system-token.service
%endif
%{systemd_libdir}/system/systemd-boot-check-no-failures.service
%{systemd_libdir}/system/systemd-network-generator.service
%{systemd_libdir}/system/systemd-portabled.service
%{systemd_libdir}/system/systemd-pstore.service
%{systemd_libdir}/system/systemd-suspend-then-hibernate.service
%{systemd_libdir}/system/systemd-time-wait-sync.service
%{systemd_libdir}/system/systemd-volatile-root.service
%{systemd_libdir}/system/user*.service
%config %{systemd_libdir}/portable/profile/default/service.conf
%config %{systemd_libdir}/portable/profile/nonetwork/service.conf
%config %{systemd_libdir}/portable/profile/strict/service.conf
%config %{systemd_libdir}/portable/profile/trusted/service.conf

%{systemd_libdir}/system/*.slice
%dir %{systemd_libdir}/system/user-.slice.d
%config %{systemd_libdir}/system/user-.slice.d/10-defaults.conf

%{systemd_libdir}/system/syslog.socket
%{systemd_libdir}/system/systemd-coredump.socket
%{systemd_libdir}/system/systemd-initctl.socket
%{systemd_libdir}/system/systemd-journald.socket
%{systemd_libdir}/system/systemd-journald-audit.socket
%{systemd_libdir}/system/systemd-networkd.socket
%{systemd_libdir}/system/systemd-rfkill.socket
%{systemd_libdir}/system/systemd-udev*.socket
%{systemd_libdir}/system/*.target

%{systemd_libdir}/network/80-container-host0.network
%{systemd_libdir}/network/80-container-ve.network
%{systemd_libdir}/network/80-container-vz.network
%{systemd_libdir}/network/80-vm-vt.network
%{systemd_libdir}/network/80-wifi-adhoc.network
%{systemd_libdir}/network/80-wifi-ap.network.example
%{systemd_libdir}/network/80-wifi-station.network.example
%{systemd_libdir}/network/99-default.link

%{systemd_libdir}/ntp-units.d/80-systemd-timesync.list

%{systemd_usrlibdir}/catalog/*.catalog
%{systemd_usrlibdir}/user/*.service
%{systemd_usrlibdir}/user/*.slice
%{systemd_usrlibdir}/user/*.timer
%{systemd_usrlibdir}/user/*.target
%{systemd_usrlibdir}/user-preset/90-systemd.preset

#----------------------------------------------------------------------------

%package journal-gateway
Summary:	Gateway for serving journal events over the network using HTTP
Requires:	%{name} = %{EVRD}
# files were moved
Conflicts:	systemd < 1.gitfab79a.2
Conflicts:	systemd-units < 1.gitfab79a.2

%description journal-gateway
Offers journal events over the network using HTTP.

%files journal-gateway
%config(noreplace) %{_sysconfdir}/systemd/journal-remote.conf
%config(noreplace) %{_sysconfdir}/systemd/journal-upload.conf
%dir %{_datadir}/systemd/gatewayd
%{systemd_libdir}/systemd-journal-gatewayd
%{systemd_libdir}/systemd-journal-remote
%{systemd_libdir}/systemd-journal-upload
%{systemd_libdir}/system/systemd-journal-gatewayd.service
%{systemd_libdir}/system/systemd-journal-gatewayd.socket
%{systemd_libdir}/system/systemd-journal-remote.service
%{systemd_libdir}/system/systemd-journal-remote.socket
%{systemd_libdir}/system/systemd-journal-upload.service
%{_sysusersdir}/systemd-remote.conf
%{_mandir}/man5/journal-remote.conf.5*
%{_mandir}/man5/journal-remote.conf.d.5*
%{_mandir}/man5/journal-upload.conf.5*
%{_mandir}/man5/journal-upload.conf.d.5*
%{_mandir}/man8/systemd-journal-gatewayd.8*
%{_mandir}/man8/systemd-journal-upload.8*
%{_mandir}/man8/systemd-journal-upload.service.8*
%{_mandir}/man8/systemd-journal-remote*.8*
%{_mandir}/man8/systemd-journal-gatewayd.service.8*
%{_mandir}/man8/systemd-journal-gatewayd.socket.8*
%{_datadir}/systemd/gatewayd/browse.html

#----------------------------------------------------------------------------

%package oomd
Summary:	Daemon to prevent out-of-memory conditions
Group:		System/Kernel and hardware
# files were moved
Conflicts:	systemd < 1.gitfab79a.2
Conflicts:	systemd-units < 1.gitfab79a.2

%description oomd
Daemon to prevent out-of-memory conditions

%files oomd
/bin/oomctl
%{systemd_libdir}/systemd-oomd
%config(noreplace) %{_sysconfdir}/systemd/oomd.conf
%{systemd_libdir}/system/systemd-oomd.service
%{systemd_libdir}/system/systemd-oomd.socket
%{systemd_libdir}/system/dbus-org.freedesktop.oom1.service
%{_datadir}/dbus-1/system-services/org.freedesktop.oom1.service
%{_datadir}/dbus-1/system.d/org.freedesktop.oom1.conf
%{_mandir}/man1/oomctl.1*
%{_mandir}/man5/oomd.conf.5*
%{_mandir}/man5/oomd.conf.d.5*
%{_mandir}/man5/org.freedesktop.oom1.5*
%{_mandir}/man8/systemd-oomd.8*
%{_mandir}/man8/systemd-oomd.service.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Systemd library package
Group:		System/Libraries
Provides:	libsystemd = %{EVRD}

%description -n %{libname}
This package provides the libsystemd shared library.

%files -n %{libname}
/%{_lib}/libsystemd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{sharedlibVpkg}
Summary:	Systemd library package
Group:		System/Libraries

%description -n %{sharedlibVpkg}
This package provides the main systemd shared library.

%files -n %{sharedlibVpkg}
%{_libdir}/libsystemd-shared-%{main_version}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Systemd library development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libsystemd-devel = %{EVRD}
# files were moved
Conflicts:	systemd < 1.gitfab79a.2
Conflicts:	systemd-units < 1.gitfab79a.2

%description -n %{devname}
Development files for the systemd shared library.

%files -n %{devname}
%dir %{_includedir}/systemd
%{_includedir}/systemd/_sd-common.h
%{_includedir}/systemd/sd-bus-protocol.h
%{_includedir}/systemd/sd-bus-vtable.h
%{_includedir}/systemd/sd-bus.h
%{_includedir}/systemd/sd-daemon.h
%{_includedir}/systemd/sd-event.h
%{_includedir}/systemd/sd-id128.h
%{_includedir}/systemd/sd-journal.h
%{_includedir}/systemd/sd-login.h
%{_includedir}/systemd/sd-messages.h
%{_includedir}/systemd/sd-device.h
%{_includedir}/systemd/sd-hwdb.h
%{_includedir}/systemd/sd-path.h
/%{_lib}/libsystemd.so
%{_libdir}/pkgconfig/libsystemd.pc
%{_datadir}/pkgconfig/systemd.pc
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package -n %{libnss_myhostname}
Summary:	Library for local system host name resolution
Group:		System/Libraries
Provides:	libnss_myhostname = %{EVRD}
Provides:	nss_myhostname = %{EVRD}

%description -n %{libnss_myhostname}
nss-myhostname is a plugin for the GNU Name Service Switch (NSS)
functionality of the GNU C Library (glibc) providing host name
resolution for the locally configured system hostname as returned by
gethostname(2).

%files -n %{libnss_myhostname}
/%{_lib}/libnss_myhostname.so.%{libnss_major}*
/%{_lib}/libnss_mymachines.so.%{libnss_major}*
/%{_lib}/libnss_resolve.so.%{libnss_major}*
%{_mandir}/man8/libnss_myhostname.so*.8*
%{_mandir}/man8/libnss_mymachines.so*.8*
%{_mandir}/man8/libnss_resolve.so*.8*
%{_mandir}/man8/nss-myhostname.8*
%{_mandir}/man8/nss-mymachines.8*
%{_mandir}/man8/nss-resolve.8*

#----------------------------------------------------------------------------

%package -n %{libnss_systemd}
Summary:	NSS plugin for dynamic user and group allocation via systemd
Group:		System/Libraries
Provides:	libnss_systemd = %{EVRD}
Provides:	nss_systemd = %{EVRD}
Provides:	nss-systemd = %{EVRD}

%description -n %{libnss_systemd}
nss-systemd is a plug-in module for the GNU Name Service Switch (NSS)
functionality of the GNU C Library (glibc), providing UNIX user and group
name resolution for dynamic users and groups allocated through the
DynamicUser= option in systemd unit files. See systemd.exec(5)
for details on this option.

This module also ensures that the root and nobody users and groups
(i.e. the users/groups with the UIDs/GIDs 0 and 65534)
remain resolvable at all times, even if they aren't listed in
/etc/passwd or /etc/group, or if these files are missing.

To activate the NSS module, add "systemd" to the lines starting
with "passwd:" and "group:" in /etc/nsswitch.conf.

It is recommended to place "systemd" after the "files" or
"compat" entry of the /etc/nsswitch.conf lines so that
/etc/passwd and /etc/group based mappings take precedence.

%files -n %{libnss_systemd}
/%{_lib}/libnss_systemd.so.%{libnss_major}*

#----------------------------------------------------------------------------

%package -n udev
Summary:	Device manager for the Linux kernel
Group:		System/Configuration/Hardware
License:	GPLv2+
Requires:	acl
Requires:	setup >= 2.7.16
Requires:	util-linux-ng >= 2.15
Requires:	rosa-kernel-tools
# for disk/lp groups
Requires(pre):	setup
Requires(pre):	coreutils
Provides:	should-restart = system
# files were moved
Conflicts:	systemd < 1.gitfab79a.2
Conflicts:	systemd-units < 1.gitfab79a.2
Provides:	systemd-hwdb = %{EVRD}

%description -n udev
A collection of tools and a daemon to manage events received
from the kernel and deal with them in user-space. Primarily this
involves managing permissions, and creating and removing meaningful
symlinks to device nodes in /dev when hardware is discovered or
removed from the system

%files -n udev
%license LICENSE.GPL2
%dir /lib/firmware
%dir /lib/firmware/updates
%dir %{udev_libdir}
%dir %{_sysconfdir}/udev
%dir %{udev_rules_dir}
%dir %{_udevhwdbdir}
%{_udevhwdbdir}/20-*.hwdb
%{_udevhwdbdir}/60-*.hwdb
%{_udevhwdbdir}/70-*.hwdb
%{_udevhwdbdir}/80-*.hwdb
%doc %{_udevhwdbdir}/README
%dir %{_sysconfdir}/udev/agents.d
%dir %{_sysconfdir}/udev/agents.d/usb
%config(noreplace) %{_sysconfdir}/udev/*.conf
%ghost %config(noreplace,missingok) %attr(0644,root,root) %{_sysconfdir}/scsi_id.config
%{systemd_libdir}/systemd-udevd
%{systemd_libdir}/system/sockets.target.wants/systemd-udevd-control.socket
%{systemd_libdir}/system/sockets.target.wants/systemd-udevd-kernel.socket
%{systemd_libdir}/system/sysinit.target.wants/systemd-hwdb-update.service
%{systemd_libdir}/system/sysinit.target.wants/systemd-udevd.service
%{systemd_libdir}/system/sysinit.target.wants/systemd-udev-trigger.service
%{systemd_libdir}/system/initrd-udevadm-cleanup-db.service
%{systemd_libdir}/system/systemd-hwdb-update.service
%{systemd_libdir}/system/systemd-udevd-control.socket
%{systemd_libdir}/system/systemd-udevd-kernel.socket
%{systemd_libdir}/system/systemd-udevd.service
%{systemd_libdir}/system/systemd-udev-settle.service
%{systemd_libdir}/system/systemd-udev-trigger.service
%{_datadir}/bash-completion/completions/udevadm
%{_datadir}/zsh/site-functions/_udevadm
%{_bindir}/udevadm
/bin/udevadm
/bin/systemd-hwdb
/sbin/udevadm
%{_sbindir}/udevadm
%{udev_rules_dir}/*.rules
%doc %{udev_rules_dir}/README
%attr(0755,root,root) %{udev_libdir}/ata_id
%attr(0755,root,root) %{udev_libdir}/cdrom_id
%ifarch %{ix86} %{armx} %{x86_64}
%attr(0755,root,root) %{udev_libdir}/dmi_memory_id
%endif
%attr(0755,root,root) %{udev_libdir}/fido_id
%attr(0755,root,root) %{udev_libdir}/scsi_id
%attr(0755,root,root) %{udev_libdir}/v4l_id
%attr(0755,root,root) %{udev_libdir}/mtd_probe
%{_mandir}/man5/udev.conf.5*
%{_mandir}/man7/hwdb.7*
%{_mandir}/man7/udev.7*
%{_mandir}/man8/systemd-hwdb.8*
%{_mandir}/man8/systemd-udevd.8*
%{_mandir}/man8/systemd-udevd-control.socket.8*
%{_mandir}/man8/systemd-udevd-kernel.socket.8*
%{_mandir}/man8/systemd-udevd.service.8*
%{_mandir}/man8/systemd-udev-settle.service.8*
%{_mandir}/man8/udevadm.8*
/var/spool/initramfs-regen/udev

#----------------------------------------------------------------------------

%package -n %{libudev}
Summary:	Library for udev
Group:		System/Libraries

%description -n %{libudev}
Library for udev.

%files -n %{libudev}
/%{_lib}/libudev.so.%{udev_major}*

#----------------------------------------------------------------------------

%package -n %{libudev_devel}
Summary:	Devel library for udev
Group:		Development/C
License:	LGPLv2+
Provides:	udev-devel = %{EVRD}
Requires:	%{libudev} = %{EVRD}

%description -n %{libudev_devel}
Devel library for udev.

%files -n %{libudev_devel}
/%{_lib}/libudev.so
%{_libdir}/pkgconfig/libudev.pc
%{_datadir}/pkgconfig/udev.pc
%{_includedir}/libudev.h

#----------------------------------------------------------------------------

%prep
# Here is a ready to use git:
# https://github.com/mikhailnov/systemd/tree/rosa-v249
%autosetup -S git_am -n systemd%{?stable:-stable}-%{commit}
%ifarch %{e2k}
patch -p1 < %{SOURCE200}
patch -p1 < %{SOURCE201}
patch -p1 < %{SOURCE202}
patch -p1 < %{SOURCE203}
patch -p1 < %{SOURCE204}
cat /usr/include/sys/cdefs.h
%endif

# was *set-max-journal-size-to-150M.patch
sed -i -e 's,^#SystemMaxUse=$,SystemMaxUse=500M,g' -e 's,^#RuntimeMaxUse=$,RuntimeMaxUse=500M,g' src/journal/journald.conf
# verify it
grep -q '^SystemMaxUse=500M' src/journal/journald.conf
grep -q '^RuntimeMaxUse=500M' src/journal/journald.conf

find src/ -name "*.vala" -exec touch '{}' \;
find -type d |xargs chmod 755

# RPATHs are not needed
find . -name meson.build | xargs sed -i -e '/install_rpath/d'
PAGER= git diff

%build
%serverbuild

%meson \
	-Drootlibdir=/%{_lib} \
	-Ddns-servers="77.88.8.8 77.88.8.1 8.8.8.8 8.8.4.4" \
	-Dntp-servers="ntp.rosalinux.ru ntp2.rosalinux.ru 0.pool.ntp.org 1.pool.ntp.org 2.pool.ntp.org 3.pool.ntp.org" \
	-Dsystem-uid-max=499 -Dsystem-gid-max=499 \
	-Ddefault-locale="C.UTF-8" \
	-Dsetfont-path=%{_bindir}/setfont \
	-Dsysvinit-path=%{_initrddir} \
	-Dcertificate-root=%{_openssldir} \
%if %{with hybrid_hierarchy}
	-Ddefault-hierarchy=hybrid \
%else
	-Ddefault-hierarchy=unified \
%endif
	-Ddefault-kill-user-processes=true \
	-Dmemory-accounting-default=true \
	-Ddefault-net-naming-scheme=latest \
%if %{with selinux}
	-Dselinux=true \
%else
	-Dselinux=false \
%endif
	-Dseccomp=true \
	-Dima=true \
%if %{with bootstrap}
	-Dlibcryptsetup=false \
	-Dtpm2=false \
%else
	-Dlibcryptsetup=true \
	-Dtpm2=true \
%endif
	-Dsplit-usr=true \
	-Dsplit-bin=true \
	-Dxkbcommon=true \
	-Ddefault-dnssec=no \
	-Ddefault-mdns=resolve \
	-Ddefault-llmnr=resolve \
%if %{with efi}
	-Dgnu-efi=true \
	-Defi=true \
    -Defi-libdir=%{_libdir} \
%endif
	-Dlibidn2=true \
	-Daudit=true \
	-Dman=true \
%ifarch %{ix86} && %{mdvver} >= 201910
	-Db_pie=false \
%else
	-Db_pie=true \
%endif
	-Duser-path=/usr/local/bin:/usr/local/sbin:/usr/bin:/bin:/usr/sbin:/sbin \
	-Dfallback-hostname="%{distsuffix}%{mandriva_release}" \
	-Dsupport-url="https://bugzilla.rosalinux.ru"
%meson_build

%install
%meson_install

mkdir -p %{buildroot}{/bin,%{_sbindir}}

# (bor) create late shutdown and sleep directory
mkdir -p %{buildroot}%{systemd_libdir}/system-shutdown
mkdir -p %{buildroot}%{systemd_libdir}/system-sleep

# Create SysV compatibility symlinks. systemctl/systemd are smart
# enough to detect in which way they are called.
mkdir -p %{buildroot}/sbin
ln -s ..%{systemd_libdir}/systemd %{buildroot}/bin/systemd
ln -s ../bin/systemctl %{buildroot}/bin/reboot
ln -s ../bin/systemctl %{buildroot}/bin/halt
ln -s ../bin/systemctl %{buildroot}/bin/poweroff
ln -s /bin/loginctl %{buildroot}%{_bindir}/systemd-loginctl

# Compatiblity and documentation files
touch %{buildroot}/etc/crypttab
chmod 600 %{buildroot}/etc/crypttab

# (tpg) dracut needs this
ln -s /bin/systemctl %{buildroot}%{_bindir}/systemctl

# We create all wants links manually at installation time to make sure
# they are not owned and hence overriden by rpm after the used deleted
# them.
rm -f %{buildroot}%{_sysconfdir}/systemd/system/display-manager.service

# Make sure these directories are properly owned
mkdir -p %{buildroot}%{systemd_libdir}/system/basic.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/default.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/dbus.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/halt.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/initrd.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/initrd-switch-root.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/kexec.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/poweroff.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/reboot.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/sound.target.wants
mkdir -p %{buildroot}%{systemd_libdir}/system/syslog.target.wants
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/getty.target.wants
mkdir -p %{buildroot}%{_localstatedir}/lib/systemd/coredump
mkdir -p %{buildroot}%{_localstatedir}/run
mkdir -p %{buildroot}%{_localstatedir}/log
touch %{buildroot}%{_localstatedir}/run/utmp
touch %{buildroot}%{_localstatedir}/log/{w,b}tmp
# Precreate some directories missing by default
# They will be empty but must exist to allow to use mans
mkdir -p %{buildroot}/usr/lib/systemd/system-environment-generators
mkdir -p %{buildroot}/usr/lib/systemd/user-environment-generators
# TODO: precreate more directories in /etc
mkdir -p %{buildroot}/etc/systemd/network

# ghost file
touch %{buildroot}%{_localstatedir}/lib/systemd/.presetted

# (tpg) this is needed
mkdir -p %{buildroot}%{systemd_usrlibdir}/system-generators
mkdir -p %{buildroot}%{systemd_usrlibdir}/user-generators

# (bor) make sure we own directory for bluez to install service
mkdir -p %{buildroot}/%{systemd_libdir}/system/bluetooth.target.wants

# (tpg) use systemd's own mounting capability
sed -i -e 's/^#MountAuto=yes$/MountAuto=yes/' %{buildroot}/etc/systemd/system.conf
sed -i -e 's/^#SwapAuto=yes$/SwapAuto=yes/' %{buildroot}/etc/systemd/system.conf

# (bor) enable rpcbind.target by default so we have something to plug portmapper service into
ln -s ../rpcbind.target %{buildroot}/%{systemd_libdir}/system/multi-user.target.wants

# (bor) machine-id-setup is in /sbin in post-v20
install -d %{buildroot}/sbin && mv %{buildroot}/bin/systemd-machine-id-setup %{buildroot}/sbin

# (tpg) create missing dir
mkdir -p %{buildroot}%{_libdir}/systemd/user/
mkdir -p %{buildroot}%{_sysconfdir}/systemd/user/default.target.wants

# Create new-style configuration files so that we can ghost-own them
touch %{buildroot}%{_sysconfdir}/hostname
touch %{buildroot}%{_sysconfdir}/vconsole.conf
touch %{buildroot}%{_sysconfdir}/locale.conf
touch %{buildroot}%{_sysconfdir}/machine-id
touch %{buildroot}%{_sysconfdir}/machine-info
touch %{buildroot}%{_sysconfdir}/localtime
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
touch %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/00-keyboard.conf

# (cg) Set up the pager to make it generally more useful
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
cat > %{buildroot}%{_sysconfdir}/profile.d/40systemd.sh << EOF
export SYSTEMD_PAGER="/usr/bin/less -FR"
EOF
chmod 644 %{buildroot}%{_sysconfdir}/profile.d/40systemd.sh

# Make sure the NTP units dir exists
mkdir -p %{buildroot}%{systemd_libdir}/ntp-units.d/

# (cg) Make the journal's persistent in order to provide a real syslog implementation
install -m 0755 -d %{buildroot}%{_logdir}/journal

# (tpg) Install default Mandriva preset policy for services
# (mikhailnov) TODO: systemd-preset are in /lib/systemd, user-preset are in /usr/lib/systemd,
# fix this crap by moving everything to /usr/lib!
mkdir -p %{buildroot}%{systemd_libdir}/system-preset/
mkdir -p %{buildroot}%{systemd_libdir}/user-preset/
install -m 0644 %{SOURCE12} %{buildroot}%{systemd_libdir}/system-preset/
install -m 0644 %{SOURCE13} %{buildroot}%{systemd_libdir}/system-preset/
install -m 0644 %{SOURCE14} %{buildroot}%{systemd_libdir}/system-preset/

# Move to ROSA-specific directory
# This scripts solves problems of $DISPLAY variable not seens by systemd user units
# in some environments, e.g. LightDM + XFCE (not needed on GDM + XFCE)
# https://bbs.archlinux.org/viewtopic.php?id=232076
# https://forums.centos.org/viewtopic.php?t=75141
mkdir -p %{buildroot}%{_sysconfdir}/X11/xinit.d
mv -v %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/50-systemd-user.sh %{buildroot}%{_sysconfdir}/X11/xinit.d/50-systemd-user.sh
rmdir %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d
rmdir %{buildroot}%{_sysconfdir}/X11/xinit

# we use custom /etc/pam.d/systemd-user
rm -v %{buildroot}/usr/lib/pam.d/systemd-user
rmdir %{buildroot}/usr/lib/pam.d

# regenerate initrds (which contain systemd) in posttrans by rosa-kernel-tools
mkdir -p %{buildroot}/var/spool/initramfs-regen
touch %{buildroot}/var/spool/initramfs-regen/systemd
touch %{buildroot}/var/spool/initramfs-regen/udev

# Ensure that sysrq is 16 (upstream default)
SYSRQ=16
sed -i -E -e "s,^kernel.sysrq.+,kernel.sysrq = ${SYSRQ},g" %{buildroot}/usr/lib/sysctl.d/50-default.conf
# ensure that sysrq is set
grep -q "^kernel.sysrq = ${SYSRQ}$" %{buildroot}/usr/lib/sysctl.d/50-default.conf
unset SYSRQ

#################
#	UDEV	#
#	START	#
#################

install -m 644 %{SOURCE2} %{buildroot}%{udev_rules_dir}/
install -m 644 %{SOURCE3} %{buildroot}%{udev_rules_dir}/

install -m 0644 %{SOURCE10} %{buildroot}%{udev_rules_dir}/
install -m 0644 %{SOURCE19} %{buildroot}%{udev_rules_dir}/

# add nvram devices
# see http://t.me/elbrus_gensokyo/15113
%ifarch %{e2k}
cat >> %{buildroot}/%{udev_rules_dir}/e2k-nvram.rules << EOF
TEST=="/sys/bus/spi/devices/spi0.1/nvram", RUN+="/bin/ln -sr /sys/bus/spi/devices/spi0.1/nvram /dev/nvram"
EOF
%endif

# unless we make a decision to merge /*bin with /usr/*bin, we'll aim for FHS
# compliance and make sure to keep thing in their traditional locations
mv %{buildroot}/bin/udevadm %{buildroot}/sbin
# probably not required, but let's just be on the safe side for now..
ln -sf /sbin/udevadm %{buildroot}%{_bindir}/udevadm
# /lib/systemd/systemd-udevd is an upstream symlink to here
ln -sf /sbin/udevadm %{buildroot}/bin/udevadm
ln -sf /sbin/udevadm %{buildroot}%{_sbindir}/udevadm

# (tpg) this is needed, because udevadm is in /sbin
# altering the path allows to boot on before root pivot
sed -i --follow-symlinks -e 's#/bin/udevadm#/sbin/udevadm#g' %{buildroot}/%{systemd_libdir}/system/*.service

mkdir -p %{buildroot}%{_prefix}/lib/firmware/updates
mkdir -p %{buildroot}%{_sysconfdir}/udev/agents.d/usb
touch %{buildroot}%{_sysconfdir}/scsi_id.config

# udev rules for zte 3g modems and drakx-net

mkdir -p %{buildroot}/lib/firmware/updates

#################
#	UDEV	#
#	END	#
#################


# Rename README to systemd.README in non-systemd-specific directories
mv %{buildroot}%{_initddir}/README %{buildroot}%{_initddir}/systemd.README
mv %{buildroot}%{_docdir}/systemd/README.logs %{buildroot}%{_var}/log/systemd.README
mv %{buildroot}/lib/modprobe.d/README %{buildroot}/lib/modprobe.d/systemd.README

# (akdengi) Use our implementation of efi boot generator to mount EFI partition on /boot/efi
rm -f %{buildroot}%{systemd_libdir}/system-generators/systemd-efi-boot-generator
install -m 0755 %{SOURCE15} %{buildroot}%{systemd_libdir}/system-generators/systemd-efi-boot-generator

# (mikhailnov) /etc/sysctl.conf is common in manuals and other distros
( cd %{buildroot}%{_sysconfdir} ; ln -s %{_sysconfdir}/sysctl.d/99-sysctl.conf sysctl.conf )
cat <<EOF > %{buildroot}%{_sysconfdir}/sysctl.d/99-sysctl.conf
# systemd reads kernel options from /usr/lib/sysctl.d/*.conf and /etc/sysctl.d/*.conf
# /usr/lib/sysctl.d/*.conf are files from packages,
# /etc/sysctl.d/*.conf are to be editied locally.
# You can write kernel options here.
# See sysctl.d(5) for documentation.
# Example:
#vm.min_free_kbytes = 67584
EOF

# Restore systemd-user pam config from before "removal of Fedora-specific bits"
# https://github.com/systemd/systemd/commit/baed1fed
# We need to include system-auth on ROSA
install -Dm0644 %{SOURCE25} %{buildroot}%{_sysconfdir}/pam.d/systemd-user
# pam_selinux.so should not cause problems on systems without selinux
# but may write weird stuff to logs and is also not needed to keep
# configs the same in stable not SELinux-enabled platforms
%if !%{with selinux}
sed -i -e '/pam_selinux/d' %{buildroot}%{_sysconfdir}/pam.d/systemd-user
%endif

# install user() and group() RPM generators
install -Dm0755 %{SOURCE26} %{buildroot}%{_rpmconfigdir}/sysusers.prov
install -Dm0644 %{SOURCE27} %{buildroot}%{_rpmconfigdir}/fileattrs/sysusers.attr

# Relocate library to a more common location (RPATH is also removed above)
mv -v %{buildroot}%{systemd_libdir}/libsystemd-shared-%{main_version}.so %{buildroot}%{_libdir}/

%find_lang %{name}

%post -n udev
/bin/systemctl --quiet try-restart systemd-udevd.service >/dev/null 2>&1 || :
/sbin/udevadm hwdb --update >/dev/null 2>&1 || :

%pre
getent group cdrom >/dev/null 2>&1 || groupadd -r -g 11 cdrom >/dev/null 2>&1 || :
getent group utmp >/dev/null 2>&1 || groupadd -r -g 22 utmp >/dev/null 2>&1 || :
getent group tape >/dev/null 2>&1 || groupadd -r -g 33 tape >/dev/null 2>&1 || :
getent group dialout >/dev/null 2>&1 || groupadd -r -g 18 dialout >/dev/null 2>&1 || :
getent group input >/dev/null 2>&1 || groupadd -r input >/dev/null 2>&1 || :
getent group systemd-journal >/dev/null 2>&1 || groupadd -r -g 190 systemd-journal 2>&1 || :
getent group systemd-timesync >/dev/null 2>&1 || groupadd -r systemd-timesync 2>&1 || :
getent passwd systemd-timesync >/dev/null 2>&1 || useradd -r -l -g systemd-timesync -d / -s /sbin/nologin -c "systemd Time Synchronization" systemd-timesync >/dev/null 2>&1 || :
getent group systemd-network >/dev/null 2>&1 || groupadd -r systemd-network 2>&1 || :
getent passwd systemd-network >/dev/null 2>&1 || useradd -r -l -g systemd-network -d / -s /sbin/nologin -c "systemd Network Management" systemd-network >/dev/null 2>&1 || :
getent group systemd-resolve >/dev/null 2>&1 || groupadd -r systemd-resolve 2>&1 || :
getent passwd systemd-resolve >/dev/null 2>&1 || useradd -r -l -g systemd-resolve -d / -s /sbin/nologin -c "systemd Resolver" systemd-resolve >/dev/null 2>&1 || :
getent group systemd-bus-proxy >/dev/null 2>&1 || groupadd -r systemd-bus-proxy 2>&1 || :
getent passwd systemd-bus-proxy >/dev/null 2>&1 || useradd -r -l -g systemd-bus-proxy -d / -s /sbin/nologin -c "systemd Bus Proxy" systemd-bus-proxy >/dev/null 2>&1 || :
getent group systemd-coredump >/dev/null 2>&1 || groupadd -r systemd-coredump 2>&1 || :
getent passwd systemd-coredump >/dev/null 2>&1 || useradd -r -l -g systemd-coredump -d %{_localstatedir}/lib/systemd/coredump -s /sbin/nologin -c "systemd Core Dumper" systemd-coredump >/dev/null 2>&1 || :

systemctl stop systemd-udevd-control.socket systemd-udevd-kernel.socket systemd-udevd.service >/dev/null 2>&1 || :

# TODO: remove this hack later
# There has been a broken symlink for a long time, it does not make sense and makes `systemctl preset-all` fail, remove it
if [ -L /etc/systemd/system/syslog.service ] && [ ! -e "$(realpath /etc/systemd/system/syslog.service)" ]; then
   rm -f /etc/systemd/system/syslog.service
fi

%post

# It it is an upgrade of an existing installation, avoid running systemctl preset-all
if [ $1 = 2 ] && [ ! -e %{_localstatedir}/lib/systemd/.presetted ]; then
	# it must be enabled but was not, fix existing installations
	systemctl enable getty@tty1.service || :
	touch %{_localstatedir}/lib/systemd/.presetted
fi

/sbin/systemd-machine-id-setup > /dev/null 2>&1 || :
/lib/systemd/systemd-random-seed save > /dev/null 2>&1 || :
/bin/systemctl daemon-reexec > /dev/null 2>&1 || :
/bin/systemctl start systemd-udevd.service systemd-udev.service >/dev/null 2>&1 || :
/sbin/udevadm hwdb --update >/dev/null 2>&1 || :
/bin/journalctl --update-catalog >/dev/null 2>&1 || :
/bin/systemd-tmpfiles --create >/dev/null 2>&1 || :

# (tpg) do not use fistboot here as id hangs on firstboot in lxc :)
# systemd-firstboot --setup-machine-id
systemd-sysusers || :

# Make sure new journal files will be owned by the "systemd-journal" group
chgrp systemd-journal /run/log/journal/ /run/log/journal/`cat /etc/machine-id 2> /dev/null` /var/log/journal/ /var/log/journal/`cat /etc/machine-id 2> /dev/null` >/dev/null 2>&1 || :
chmod g+s /run/log/journal/ /run/log/journal/`cat /etc/machine-id 2> /dev/null` /var/log/journal/ /var/log/journal/`cat /etc/machine-id 2> /dev/null` >/dev/null 2>&1 || :

# Apply ACL to the journal directory
setfacl -Rnm g:wheel:rx,d:g:wheel:rx,g:adm:rx,d:g:adm:rx /var/log/journal/ >/dev/null 2>&1 || :

if [ $1 == 1 ]; then
	# On first install process all tmpfiles that may have been installed before us
	# Hard requires on some packages on systemd might make cyclic deps on early
	# transactions.
	# We avoid systemd.conf so as not to create /run/nologin
	# NOTE We can probably revert to using filetriggers again for tmpfiles now that
	#      there is a --boot option which should make running --create without a
	#      basename config nice and safe.
	for tmpfile in %{_tmpfilesdir}/*.conf; do
		if [ -f "$tmpfile" -a "$tmpfile" != "%{_tmpfilesdir}/systemd-nologin.conf" ]; then
			/bin/systemd-tmpfiles --create $(basename "$tmpfile") || :
		fi
	done
fi

# Set default font if not defined
unset FONT
[ -e /etc/vconsole.conf ] && . /etc/vconsole.conf >/dev/null 2>&1 || :
[ ! -n "$FONT" ] && echo FONT="LatArCyrHeb-16" >> /etc/vconsole.conf 2>&1 || :

# sed-fu to add myhostname to the hosts line of /etc/nsswitch.conf
# TODO: deal with nss-systemd
if [ -f /etc/nsswitch.conf ] ; then
        sed -i.bak -e '
                /^hosts:/ !b
                /\<myhostname\>/ b
                s/[[:blank:]]*$/ myhostname/
                ' /etc/nsswitch.conf >/dev/null 2>&1 || :

        sed -i.bak -e '
                /^hosts:/ !b
                /\<mymachines\>/ b
                s/[[:blank:]]*$/ mymachines/
                ' /etc/nsswitch.conf >/dev/null 2>&1 || :
fi

%preun
if [ $1 -eq 0 ] && [ -f /etc/nsswitch.conf ]; then
		sed -i.bak -e '
			/^hosts:/ !b
			s/[[:blank:]]\+myhostname\>//
			' /etc/nsswitch.conf >/dev/null 2>&1 || :

		sed -i.bak -e '
			/^hosts:/ !b
			s/[[:blank:]]\+mymachines\>//
			' /etc/nsswitch.conf >/dev/null 2>&1 || :
fi

%posttrans

# Do this only once, after all packages which are inside a transaction,
# e.g. when building an ISO and installing all packages in one transaction,
# have already been installed.
# In systemd < 242, services like getty@tty1.service were enabled by symlinks
# created by ninja/make install, but now they are not.
# https://github.com/systemd/systemd/issues/12345
# Do this only once to avoid resetting units states on upgrades.
# --preset-mode=enable-only to ensure to not disable services explicitly enabled
# in scriptlets of different packages (those packages should migrate to systemd
# presets, but they do exist however). We have no explicit disablements in our presets.
# Note that `systemctl preset` stops working if any error occurs, not just ignores a failure
# on a specific unit, but stops whole work and does not process further. This must never
# happen when building an ISO, otherwise fix packages that contain bad units...
# https://github.com/systemd/systemd/issues/19407
failed=0
if [ ! -e %{_localstatedir}/lib/systemd/.presetted ]; then
	systemctl preset-all --preset-mode=enable-only || failed=$((failed+1))
	systemctl --global preset-all --preset-mode=enable-only || failed=$((failed+1))
	# try again later if sth went wrong, https://github.com/systemd/systemd/issues/19407
	if [ "$failed" = 0 ]; then
		touch %{_localstatedir}/lib/systemd/.presetted
	fi
fi
exit "$failed"

# rpm4 filetriggers
%include %{SOURCE23}

%pre journal-gateway
getent group systemd-journal-gateway >/dev/null 2>&1 || groupadd -r -g 191 systemd-journal-gateway 2>&1 || :
getent passwd systemd-journal-gateway >/dev/null 2>&1 || useradd -r -l -u 191 -g systemd-journal-gateway -d %{_localstatedir}/log/journal -s /sbin/nologin -c "Journal Gateway" systemd-journal-gateway >/dev/null 2>&1 || :
getent group systemd-journal-remote >/dev/null 2>&1 || groupadd -r systemd-journal-remote 2>&1 || :
getent passwd systemd-journal-remote >/dev/null 2>&1 || useradd -r -l -g systemd-journal-remote -d /%{_localstatedir}/log/journal/remote -s /sbin/nologin -c "Journal Remote" systemd-journal-remote >/dev/null 2>&1 || :
getent group systemd-journal-upload >/dev/null 2>&1 || groupadd -r systemd-journal-upload 2>&1 || :
getent passwd systemd-journal-upload >/dev/null 2>&1 || useradd -r -l -g systemd-journal-upload -d /%{_localstatedir}/log/journal/upload -s /sbin/nologin -c "Journal Upload" systemd-journal-upload >/dev/null 2>&1 || :

%post journal-gateway
%systemd_post systemd-journal-gatewayd.socket systemd-journal-gatewayd.service
%systemd_post systemd-journal-remote.socket systemd-journal-remote.service
%systemd_post systemd-journal-upload.service
# % firewalld_reload

%preun journal-gateway
%systemd_preun systemd-journal-gatewayd.socket systemd-journal-gatewayd.service
%systemd_preun systemd-journal-remote.socket systemd-journal-remote.service
%systemd_preun systemd-journal-upload.service

%postun journal-gateway
%systemd_postun_with_restart systemd-journal-gatewayd.service
%systemd_postun_with_restart systemd-journal-remote.service
%systemd_postun_with_restart systemd-journal-upload.service
# % firewalld_reload

%check
# Verify that needed features have been enabled or disabled
export LD_LIBRARY_PATH=%{buildroot}%{_lib}:%{buildroot}%{_libdir}
o="$(%{buildroot}/bin/systemctl --version | tail -n 1 | sed -e 's, ,\n,g')"
for i in \
	+ACL \
	+AUDIT \
	+GNUTLS \
	+IDN2 \
	+IMA \
	+GCRYPT \
	+LIBCRYPTSETUP \
	+PAM \
	+SECCOMP \
%if %{with selinux}
	+SELINUX \
%endif
	+SYSVINIT \
%if %{with hybrid_hierarchy}
	'default-hierarchy=hybrid'
%else
	'default-hierarchy=unified'
%endif
do
	echo "$o" | grep -q "$i"
done

# Validate that systemd macros point to correct paths
# When they point to incorrect ones, it may be not noticed
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=10537
macrolist="$(cat %{buildroot}%{_rpmmacrodir}/*%{name}* | sed -e 's, ,\n,g' | grep -E '^/lib|^/bin|^/sbin|^/usr' | sort -u)"
if [ -z "$macrolist" ]; then exit 1; fi
for i in $macrolist ; do
  if ! [ -f "%{buildroot}/$i" -o -d "%{buildroot}/$i" ]; then
    echo "$i from macros does not exist!"
    exit 1
  fi
done
# Ensure that no templates were left
if grep '@' %{buildroot}%{_rpmmacrodir}/*%{name}* ; then
  echo "Macros were not changed from template!"
  exit 1
fi

# Ensure that there is no RPATH
! readelf -a %{buildroot}/bin/systemctl | grep PATH

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17484 |21mr|systemtap-4.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

%bcond_with	java
# systemtap uses nested functions in loc2c.c
%global __cc gcc
%global __cxx g++
%define _disable_ld_no_undefined %nil

%bcond_without	avahi
%bcond_with	docs
%bcond_without	exporter
%bcond_without	python3

Summary:	Infrastructure to gather information about the running Linux system
Name:		systemtap
Epoch:		1
Version:	4.2
Release:	5
License:	GPLv2+
Group:		Development/Kernel
Url:		http://sourceware.org/systemtap/
Source0:	http://sourceware.org/systemtap/ftp/releases/%{name}-%{version}.tar.gz
Patch3:		systemtap-2.5-fix-aliasing-violations.patch
Patch4:         e2k-fix-assembly.patch

BuildRequires:	cap-devel
BuildRequires:	elfutils-devel
BuildRequires:	gettext
BuildRequires:	gettext-devel
%if %{with avahi}
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	avahi-common-devel
%endif
%if %{with docs}
BuildRequires:	xmlto
BuildRequires:	texlive-dvips texlive-charter texlive-mathdesign
%endif
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(sqlite3)
%if %{with python3}
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-setuptools
%endif
BuildRequires:	pkgconfig(rpm)
BuildRequires:	pkgconfig(popt)
%if %{with java}
BuildRequires:	jpackage-utils java-1.8.0-openjdk-devel
%endif

%description
SystemTap provides free software (GPL) infrastructure to simplify the gathering
of information about the running Linux system. This assists diagnosis of a 
performance or functional problem. SystemTap eliminates the need for the 
developer to go through the tedious and disruptive instrument, recompile, 
install, and reboot sequence that may be otherwise required to collect data.

SystemTap provides a simple command line interface and scripting language for
writing instrumentation for a live running kernel. We are publishing samples, 
as well as enlarging the internal "tapset" script library to aid reuse and 
abstraction. We also plan to support probing userspace applications. We are 
investigating interfacing Systemtap with similar tools such as Frysk, 
Oprofile and LTT.

Current project members include Red Hat, IBM, Intel, and Hitachi.

%files
%{_bindir}/stap
%{_mandir}/man[17]/*
%lang(cs) %{_mandir}/cs/man[17]/*
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/tapset

%package	runtime
Summary:	Runtime environment for systemtap
Group:		Development/Other
Conflicts:	systemtap < 1:2.1-3

%description	runtime
SystemTap is an instrumentation system for systems running Linux.
This package contains the runtime environment for systemtap programs.

%files runtime -f systemtap.lang
%{_bindir}/stapbpf
%{_bindir}/staprun
%{_bindir}/stapsh
%{_bindir}/stap-merge
%{_bindir}/stap-report
%{_mandir}/man3/*
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/stapio
%{_libexecdir}/%{name}/stap-env
%{_libexecdir}/%{name}/stap-authorize-cert
%{_mandir}/man8/stapbpf.8.*
%{_mandir}/man8/staprun.8*
%{_mandir}/man8/stapsh.8.*
%{_mandir}/man8/systemtap-service.8.*
%lang(cs) %{_mandir}/cs/man8/stapsh.8*

%if %{with python3}
%package runtime-python3
Summary: Systemtap Python 3 Runtime Support
Group: Development/Python
License: GPLv2+
URL: https://sourceware.org/systemtap/
Requires: systemtap = %{EVRD}
# compat with FC:
Provides: systemtap-runtime-python3 = %{EVRD}

%description runtime-python3
This package includes support files needed to run systemtap scripts
that probe python 3 processes.

%files runtime-python3
%{python3_sitearch}/HelperSDT
%{python3_sitearch}/HelperSDT-*.egg-info
%endif

%package	examples
Summary:	Examples for systemtap
Group:		Development/Other

%description	examples
SystemTap is an instrumentation system for systems running Linux.
This package contains examples for systemtap programs.

%files examples
%{_datadir}/%{name}/examples

%if %{with java}
%package	runtime-java
Summary:	Systemtap Java Runtime Support
Group:		Development/Java
Requires:	systemtap-runtime = %{EVRD}
# Not packaged yet..
#Requires:	byteman > 2.0

%description	runtime-java
This package includes support files needed to run systemtap scripts
that probe Java processes running on the OpenJDK 1.6 and OpenJDK 1.7
runtimes using Byteman.
%endif

%package	server
Summary:	Systemtap server
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Conflicts:	systemtap < 1:2.1-3

%description	server
SystemTap is an instrumentation system for systems running Linux.
This package contains the server component of systemtap.

%files server
%{_bindir}/stap-server
%{_libexecdir}/%{name}/stap-gen-cert
%{_libexecdir}/%{name}/stap-serverd
%{_libexecdir}/%{name}/stap-sign-module
%{_libexecdir}/%{name}/stap-start-server
%{_libexecdir}/%{name}/stap-stop-server
%{_mandir}/man8/stap-server.8*
%lang(cs) %{_mandir}/cs/man8/stap-server.8*

%if %{with exporter}
%package	exporter
Summary:	Systemtap-prometheus interoperation mechanism
Group:		Development/Kernel
License:	GPLv2+
URL:		http://sourceware.org/systemtap/

%description exporter
This package includes files for a systemd service that manages
systemtap sessions and relays prometheus metrics from the sessions
to remote requesters on demand.
%endif

%package	devel
Summary:	Header files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{name}-sdt-devel = %{EVRD}
Conflicts:	systemtap < 1:2.1-3

%description	devel
The package includes the header files for %{name}.

%files devel -f systemtap.lang
%{_bindir}/stap
#{_bindir}/stap-prep
%{_bindir}/stap-report
%dir %{_datadir}/systemtap
%{_datadir}/systemtap/runtime
%{_datadir}/systemtap/tapset
%{_mandir}/man1/stap.1*
%{_mandir}/man1/stap-prep.1*
%{_mandir}/man1/stap-report.1*
%{_mandir}/man7/error*
%{_mandir}/man7/stappaths.7*
%{_mandir}/man7/warning*
%doc README README.unprivileged AUTHORS NEWS
%{!?_licensedir:%global license %%doc}
%license COPYING
# Notice that the stap-resolve-module-function.py file is used by
# *both* the python2 and python3 subrpms.  Both subrpms use that same
# python script to help list python probes.
%if %{with python3}
%{_libexecdir}/systemtap/python/stap-resolve-module-function.py
%{_libexecdir}/systemtap/python/__pycache__/*
%exclude %{_libexecdir}/systemtap/python/stap-resolve-module-function.py?
%endif

%package sdt-devel
Summary: Static probe support tools
License: GPLv2+ and Public Domain
URL: http://sourceware.org/systemtap/
Requires: python3-parsing

%description sdt-devel
This package includes the <sys/sdt.h> header file used for static
instrumentation compiled into userspace programs and libraries, along
with the optional dtrace-compatibility preprocessor to process related
.d files into tracing-macro-laden .h headers.

%files sdt-devel
%{_bindir}/dtrace
%{_includedir}/sys/sdt.h
%{_includedir}/sys/sdt-config.h
%{_mandir}/man1/dtrace.1*
%{_rpmmacrodir}/macros.systemtap
%doc README AUTHORS NEWS
%{!?_licensedir:%global license %%doc}
%license COPYING

%prep
%setup -q
%ifarch %{e2k}
%autopatch -p1
%else
%autopatch -p1 -M3
%endif

sed -i 's!$(DESTDIR)$(prefix)/lib/systemd!$(DESTDIR)/lib/systemd!g' stap-exporter/Makefile.*
sed -i 's!python-config!python3-config!g' configure.ac

autoreconf -fi

%build
export ac_cv_path_PYTHON=%{__python3}
export PYTHON=%{__python3}
%global optflags %{optflags} -Wno-error
%configure	--with-rpm \
%if %{with python}
		--with-python3 \
		--with-python3-probes \
		--without-python2-probes \
%endif
		--with-selinux \
%if %{with java}
		--with-java=/usr/lib/jvm/java \
%endif
		--enable-sqlite \
		--disable-docs
%make_build

%install
%make_install
sed -i 's!/usr/bin/python$!%{__python3}!g' %{buildroot}/%{_bindir}/dtrace

# we add testsuite with a lot of examples
install -m 766 -d testsuite %{buildroot}%{_datadir}/%{name}/
install -D -m 644 macros.systemtap %{buildroot}/%{_rpmmacrodir}/macros.systemtap

%find_lang %{name} --all-name --with-man

%if %{with java}
%files runtime-java
%dir %{_libexecdir}/systemtap
%{_libexecdir}/systemtap/libHelperSDT_*.so
%{_libexecdir}/systemtap/HelperSDT.jar
%{_libexecdir}/systemtap/stapbm
%endif


%if %{with exporter}
%files exporter
%{_sysconfdir}/stap-exporter
%{_sysconfdir}/sysconfig/stap-exporter
%{_unitdir}/stap-exporter.service
%{_mandir}/man8/stap-exporter.8*
%{_sbindir}/stap-exporter
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17485 |21mr|system-tools-backends2-2.10.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname system-tools-backends

Summary:	GNOME System Tools Backends
Name:		system-tools-backends2
Version:	2.10.2
Release:	7
License:	GPLv2+ and LGPLv2+
Group:		System/Configuration/Other
Url:		http://www.gnome.org/projects/gst/
Source0:	http://ftp.gnome.org/pub/GNOME/sources/%{oname}/%{oname}-%{version}.tar.bz2
Source1:	system-tools-backends2.rpmlintrc
Patch0:		system-tools-backends-2.8.1-mandriva.patch
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	perl-Net-DBus
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	intltool
Requires:	polkit-agent
Conflicts:	system-tools-backends

%description
Day-to-day system management on Unix systems is a chore. Even when 
you're using a friendly graphical desktop, seemingly basic tasks 
like setting the system time, changing the network setup, importing 
and exporting network shared filesystems and configuring swap partitions 
requires editing configuration files by hand, and the exact procedure 
varies between different operating systems and distributions.

The GNOME System Tools solve all these problems, giving you a simple
graphical interface for each task, which uses an advanced backend to 
edit all the relevant files and apply your changes. The interface 
looks and acts in exactly the same way regardless of what platform 
you're using.

This package contains the backends of GNOME System Tools.

%files -f %{oname}.lang
%doc README AUTHORS NEWS
%config(noreplace) %{_sysconfdir}/dbus-1/system.d/org.freedesktop.SystemToolsBackends.conf
%{_sbindir}/%{oname}
%{_datadir}/dbus-1/system-services/org.freedesktop.SystemToolsBackends*.service
%{_datadir}/polkit-1/actions/org.freedesktop.SystemToolsBackends.policy
%{_datadir}/system-tools-backends-2.0/
%{_libdir}/pkgconfig/system-tools-backends-2.0.pc
%{_localstatedir}/cache/%{oname}

#----------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}

%build
#gw for backports, it has hardwired LOCALSTATEDIR/run as path
%define _localstatedir /var
intltoolize --force
autoreconf -fiv
%configure \
	--with-stb-group=wheel

%make

%install
%makeinstall_std
mkdir -p %{buildroot}%{_localstatedir}/cache/%{oname}

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17486 |21mr|sysvinit-2.87-31
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	enable_bootlogd_service 0
%define	_disable_ld_no_undefined 1

Summary:	Programs which control basic system processes
Name:		sysvinit
Version:	2.87
Release:	31
License:	GPLv2+
Group:		System/Configuration/Boot and Init
Source0:	https://alioth.debian.org/frs/download.php/3060/sysvinit-%{version}.tar.gz
Source1:	bootlogd
Source2:	stop-bootlogd
Url:		https://alioth.debian.org/projects/pkg-sysvinit/
Patch1:		sysvinit-2.78-man.patch
Patch4:		sysvinit-2.86-autofsck.patch
Patch5:		sysvinit-2.86-loginshell.patch
Patch8:		sysvinit-2.86-inittab.patch
Patch10:	sysvinit-2.87-pidof.patch
Patch13:	sysvinit-2.86-single.patch
Patch16:	sysvinit-2.86-quiet.patch
Patch23:	sysvinit-2.86-pidof-man.patch
Patch24:	sysvinit-2.87-sulogin.patch
Patch25:	sysvinit-2.87-wide.patch
Patch26:	sysvinit-2.87-ipv6.patch
# Add -m option to pidof to omit processes that match existing omitted pids (#632321)
Patch27:	sysvinit-2.87-omit.patch
Patch28:	sysvinit-2.87-crypt-lib.patch

# Mandriva patches
Patch100:	sysvinit-2.86-shutdown.patch
Patch104:	sysvinit-2.85-walltty.patch
Patch105:	sysvinit-disable-respawn-more-quickly.patch
# do not try to take over console tty for rc.sysinit, it conflicts with speedboot (Mdv bug #58488)
Patch106:	sysvinit-2.87-speedboot-ioctl.patch
# we are Mandriva heirs, so perhaps this patch goes here...
Patch107:	sysvinit-2.87-fix-build-with-glibc-2.25.patch

# Debian patches
Patch200:	50_bootlogd_devsubdir.patch
Patch201:	54_bootlogd_findptyfail.patch
Patch202:	55_bootlogd_flush.patch
Patch203:	99_ftbfs_define_enoioctlcmd.patch
BuildRequires:	glibc-static-devel
Requires(post):	coreutils
Requires:	pam >= 0.66-5
Requires:	sysvinit-tools = %{version}-%{release}
Obsoletes:	SysVinit < 2.86-6mdv2008.1
Provides:	SysVinit = %{version}-%{release}
Conflicts:	util-linux =< 2.24
Conflicts:	bash-completion < 2.1-8

%description
The sysvinit package contains a group of processes that control the very basic
functions of your system. sysvinit includes the init program, the first
program started by the Linux kernel when the system boots. Init then controls
the startup, running, and shutdown of all other programs.

#-----------------------------------------------------------------------------

%package tools
Summary:	Tools used for process and utmp management
Group:		System/Configuration/Boot and Init
Conflicts:	sysvinit < 2.87-2mdv

%description tools
The sysvinit-tools package contains various tools used for process management.

%files tools
%doc doc/Changelog COPYRIGHT
/bin/pidof
%{_bindir}/lastb
/sbin/pidof
/sbin/killall5
%{_mandir}/man1/*
%{_mandir}/man8/killall5*
%{_mandir}/man8/pidof*

#-----------------------------------------------------------------------------

%prep
%setup -q -n sysvinit-%{version}dsf
# We use a shell, not sulogin. Other random man fixes go here (such as #192804)
%patch1 -p1 -b .manpatch
# Unlink /.autofsck on shutdown -f
%patch4 -p1 -b .autofsck
# Invoke single-user shell as a login shell (#105653)
%patch5 -p1 -b .loginshell
# Adjust examples in inittab(5) to more accurately reflect RH/Fedora
# usage (#173572)
%patch8 -p1 -b .inittabdocs
# Fix various things in pidof - pidof /x/y matching /z/y, pidof -x
# for scripts, etc.
%patch10 -p1 -b .pidof
# Fix single user mode (#176348)
%patch13 -p1 -b .single
# Be less verbose when booted with 'quiet'
%patch16 -p1 -b .quiet
# Document some of the behavior of pidof. (#201317)
%patch23 -p1 -b .pidof
# get_default_context_with_level returns 0 on success (#568530)
%patch24 -p1 -b .sulogin
# Add wide output names with -w (#550333)
%patch25 -p1 -b .wide
# Change accepted ipv6 addresses (#573346)
%patch26 -p1 -b .ipv6
# Support -m option for pidof (#632321)
%patch27 -p1 -b .omit
%patch28 -p1 -b .crypt_lib~

%patch100 -p1 -b .shutdown
%patch104 -p1 -b .wall
%patch105 -p1 -b .disable-respawn-more-quickly
%patch106 -p1 -b .speedboot-ioctl
%patch107 -p1 -b .glibc

%patch200 -p1 -b .bootlogd_devsubdir
%patch201 -p1 -b .bootlogd_findptyfail
%patch202 -p1 -b .bootlogd_flush
%patch203 -p1 -b .define_enoioctlcmd


%build
%global optflags %{optflags} -Os
%make CFLAGS="%{optflags} -D_GNU_SOURCE" LDFLAGS="%{ldflags}" LCRYPT="-lcrypt" -C src


%install
for I in bin sbin usr/{bin,include} %{_mandir}/man{1,3,5,8} etc var/run dev; do
	mkdir -p %{buildroot}/$I
done

make -C src ROOT=%{buildroot} MANDIR=%{_mandir} STRIP=/bin/true \
	BIN_OWNER=`id -nu` BIN_GROUP=`id -ng` install

# If this already exists, just do nothing (the ||: part)
mknod --mode=0600 %{buildroot}/dev/initctl p ||:
ln -snf killall5 %{buildroot}/sbin/pidof

chmod 755 %{buildroot}/usr/bin/utmpdump

mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d/
install -m755 %{SOURCE1} %{SOURCE2} %{buildroot}%{_sysconfdir}/rc.d/init.d/

%if !%{enable_bootlogd_service}
sed -i -e 's/chkconfig\: 2345/chkconfig: -/g' %{buildroot}%{_sysconfdir}/rc.d/init.d/bootlogd %{buildroot}%{_sysconfdir}/rc.d/init.d/stop-bootlogd
%endif

mkdir -p  %{buildroot}%{_sysconfdir}/sysconfig
cat << EOF > %{buildroot}%{_sysconfdir}/sysconfig/bootlogd
BOOTLOGD_ENABLED=no
EOF

# Remove unpackaged file(s)
rm -rf	%{buildroot}/usr/include

# (tpg) kill these in the name of systemd
rm %{buildroot}/sbin/bootlogd
rm %{buildroot}/sbin/halt
rm %{buildroot}/sbin/init
rm %{buildroot}/sbin/poweroff
rm %{buildroot}%{_bindir}/last
rm %{buildroot}%{_bindir}/mesg
rm %{buildroot}/sbin/reboot
rm %{buildroot}/sbin/runlevel
rm %{buildroot}/sbin/shutdown
rm %{buildroot}/sbin/telinit
rm %{buildroot}%{_sysconfdir}/rc.d/init.d/*bootlogd
rm %{buildroot}%{_sysconfdir}/sysconfig/bootlogd
rm %{buildroot}%{_mandir}/man5/*
rm %{buildroot}%{_mandir}/man8/halt*
rm %{buildroot}%{_mandir}/man8/init*
rm %{buildroot}%{_mandir}/man1/last.*
rm %{buildroot}%{_mandir}/man1/mesg.*
rm %{buildroot}%{_mandir}/man8/poweroff*
rm %{buildroot}%{_mandir}/man8/reboot*
rm %{buildroot}%{_mandir}/man8/runlevel*
rm %{buildroot}%{_mandir}/man8/shutdown*
rm %{buildroot}%{_mandir}/man8/telinit*
rm %{buildroot}%{_mandir}/man8/bootlogd*
rm %{buildroot}%{_mandir}/man1/mountpoint*
rm %{buildroot}%{_mandir}/man1/wall*

# Remove sulogin and utmpdump, they're part of util-linux these days
rm %{buildroot}/sbin/sulogin %{buildroot}%{_mandir}/man8/sulogin*
rm %{buildroot}%{_bindir}/utmpdump
# (tpg) in util-linux-2.23
rm %{buildroot}/bin/mountpoint
rm %{buildroot}%{_bindir}/wall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17487 |21mr|taglib-1.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
#undefine	_find_debuginfo_dwz_opts

%define	major 1
%define	minor 0
%define	libname %mklibname %{name} %{major}
%define	libnametagc %mklibname %{name}_c %{minor}
%define	devname %mklibname %{name} -d

Summary:	Library for reading and editing audio meta data
Name:		taglib
Version:	1.12
Release:	1
License:	LGPLv2+
Group:		File tools
Url:		https://taglib.org/
Source0:	https://taglib.org/releases/%{name}-%{version}.tar.gz
#Patch0:	https://raw.github.com/RussianFedora/taglib/master/taglib-1.11-ds-rusxmms.patch
Patch0:		taglib-1.12-ds-rusxmms.patch
BuildRequires:	cmake >= 3.0.0
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(librcc)
BuildRequires:	pkgconfig(zlib)

%description
TagLib, is well, a library for reading and editing audio meta data, commonly
know as tags.
Some goals of TagLib:
- A clean, high level, C++ API to handling audio meta data.
- Support for at least ID3v1, ID3v2 and Ogg Vorbis comments.
- A generic, simple API for the most common tagging related functions.
- Binary compatibility between minor releases using the standard KDE/Qt
  techniques for C++ binary compatibility.
- Make the tagging framework extensible by library users; i.e. it will be
  possible for libarary users to implement additional ID3v2 frames, without
  modifying the TagLib source.
Because TagLib desires to be toolkit agnostic, in hope of being widely adopted
and the most flexible in licensing TagLib provides many of its own toolkit
classes; in fact the only external dependency that TagLib has, it a semi-sane
STL implementation.

#-----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for reading and editing audio meta data
Group:		System/Libraries

%description -n %{libname}
TagLib, is well, a library for reading and editing audio meta data.
This package contains the main library.

%files -n %{libname}
%doc COPYING.LGPL
%{_libdir}/libtag.so.%{major}*

#---------------------------------------------------------------------

%package -n %{libnametagc}
Group:		System/Libraries
Summary:	C bindings for taglib library

%description -n %{libnametagc}
TagLib, is well, a library for reading and editing audio meta data.
This package contains the C bindings for taglib library.

%files -n %{libnametagc}
%doc COPYING.LGPL
%{_libdir}/libtag_c.so.%{minor}*

#---------------------------------------------------------------------

%package -n %{devname}
Group:		Development/C
Summary:	Headers and other files for taglib development
Requires:	%{libname} = %{EVRD}
Requires:	%{libnametagc} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and other files needed to compile applications using the
libtag library.

%files -n %{devname}
%doc AUTHORS COPYING.LGPL NEWS
%doc build/doc/html
%{_bindir}/%{name}-config
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_includedir}/%{name}/*.h
%{_includedir}/%{name}/*.tcc

#---------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%cmake -DBUILD_SHARED_LIBS=ON \
		-DWITH_ASF=ON \
		-DWITH_MP4=ON
%make

%make docs


%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17488 |21mr|taglib-extras-1.0.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname tag-extras %{major}
%define devname %mklibname tag-extras -d

Summary:	Taglib support for other formats
Name:		taglib-extras
Version:	1.0.1
Release:	15
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://websvn.kde.org/trunk/kdesupport/taglib-extras/
Source0:	http://www.jefferai.com/taglib-extras/%{name}-%{version}.tar.gz
Patch0:		taglib-extras-1.0.1-taglib-version.patch
Patch1:		taglib-extras-1.0.1-version.patch
BuildRequires:	cmake
BuildRequires:	pkgconfig(taglib)

%description
Taglib-extras delivers support for reading and editing the meta-data of
audio formats not supported by taglib, including: asf, mp4v2, rmff, wav.

#--------------------------------------------------------------------

%package -n %{libname}
Summary:	Taglib support for other formats
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Conflicts:	%{name} < 1.0.1-10
Obsoletes:	%{name} < 1.0.1-10

%description -n %{libname}
Taglib-extras delivers support for reading and editing the meta-data of
audio formats not supported by taglib, including: asf, mp4v2, rmff, wav.

%files -n %{libname}
%doc COPYING.LGPL
%{_libdir}/libtag-extras.so.%{major}*

#--------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	%{name}-devel < 1.0.1-10
Obsoletes:	%{name}-devel < 1.0.1-10

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_bindir}/taglib-extras-config
%{_includedir}/taglib-extras/
%{_libdir}/libtag-extras.so
%{_libdir}/pkgconfig/taglib-extras.pc

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17489 |21mr|tagsoup-1.2.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distributio4.3n.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           tagsoup
Version:        1.2.1
Release:        18
Epoch:          0
Summary:        A SAX-compliant HTML parser written in Java 
# AFL/GPLv2+ license for src/java/org/ccil/cowan/tagsoup/PYXScanner.java is
# likely mixup of upstream but needs to be cleared up
Group:          Development/Java
License:        ASL 2.0 and (GPLv2+ or AFL)
Source0:        http://home.ccil.org/~cowan/XML/tagsoup/tagsoup-1.2.1-src.zip
URL:            http://home.ccil.org/~cowan/XML/tagsoup/
Source1:        http://repo1.maven.org/maven2/org/ccil/cowan/tagsoup/tagsoup/%{version}/tagsoup-%{version}.pom
# fix version
Patch0:         tagsoup-1.2.1-man.patch
BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  ant-apache-xalan2
BuildRequires:  xalan-j2

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
TagSoup is a SAX-compliant parser written in Java that, instead of
parsing well-formed or valid XML, parses HTML as it is found in the wild: nasty
and brutish, though quite often far from short. TagSoup is designed for people
who have to process this stuff using some semblance of a rational application
design. By providing a SAX interface, it allows standard XML tools to be
applied to even the worst HTML.

%package javadoc
Summary:       Javadoc for %{name}
Requires:      jpackage-utils >= 0:1.6

%description javadoc
Javadoc for %{name}.

%prep
%setup -q

find . -name '*.class' -delete
find . -name "*.jar" -delete

%patch0 -p0

%build

export CLASSPATH=$(build-classpath xalan-j2-serializer xalan-j2)
ant \
  -Dtagsoup.version=%{version} \
  -Dj2se.apiurl=%{_javadocdir}/java \
  dist docs-api

%install
%mvn_file : %{name}
%mvn_artifact %{SOURCE1} dist/lib/%{name}-%{version}.jar

%mvn_install -J docs/api

mkdir -p %{buildroot}%{_mandir}/man1
install -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/

%files -f .mfiles
%{_mandir}/man1/%{name}.1.xz
%doc CHANGES README TODO %{name}.txt
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17490 |21mr|takari-archiver-0.1.19-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           takari-archiver
Version:        0.1.19
Release:        3
Summary:        Takari Archiver
# License information can be found in effective POM.
# For more info, see https://bugzilla.redhat.com/show_bug.cgi?id=1200768#c4
# Bundled FileMode.java is under BSD license, bundling was approved by
# FPC, see https://fedorahosted.org/fpc/ticket/510
License:        EPL and BSD
URL:            http://takari.io
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
# Clean tarball generated by running ./create-tarball.sh
Source0:        %{name}-%{version}-clean.tar.xz
Source1:        create-tarball.sh

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava:14.0.1)
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)
BuildRequires:  mvn(io.takari:takari:pom:)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)


%description
Takari Archiver is replacement for Maven Archiver for use with Takari
Lifecycle Plugin.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.


%prep
%setup -q

%build
%mvn_build -f

%install
%mvn_install


%files -f .mfiles
%license epl-v10.html

%files javadoc -f .mfiles-javadoc
%license epl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17491 |21mr|takari-incrementalbuild-0.20.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap
%global artifact_name io.takari.incrementalbuild

Name:           takari-incrementalbuild
Version:        0.20.7
Release:        3
Summary:        Takari Incremental Build
License:        EPL
URL:            http://takari.io
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        https://github.com/takari/%{artifact_name}/archive/%{artifact_name}-%{version}.tar.gz
Source1:        http://www.eclipse.org/legal/epl-v10.html

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.inject:guice::no_aop:)
BuildRequires:  mvn(com.squareup:javapoet)
BuildRequires:  mvn(io.takari.maven.plugins:takari-plugin-testing)
BuildRequires:  mvn(javax.enterprise:cdi-api)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.resolver:maven-resolver-api)
BuildRequires:  mvn(org.apache.maven.resolver:maven-resolver-util)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.slf4j:slf4j-api)

%if %{without bootstrap}
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)
BuildRequires:  mvn(io.takari:takari:pom:)
%else
BuildRequires:  mvn(org.eclipse.sisu:sisu-maven-plugin)
%endif

%description
Incremental build support library for Apache Maven.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.


%prep
%setup -q -n %{artifact_name}-%{artifact_name}-%{version}

cp -a %{SOURCE1} .

# XXX skip ITs for now
%pom_disable_module incrementalbuild-its
%pom_disable_module takari-builder-demo

# Upstream comments out some modules and relies on older version being pulled
# in from maven central. We need them all at once
for module in takari-builder-security-manager incrementalbuild-workspace; do
    %pom_xpath_inject /pom:project/pom:modules "<module>$module</module>"
    %pom_set_parent io.takari:io.takari.incrementalbuild:%{version} $module
    %pom_change_dep -r :$module ::%{version}
done

%pom_remove_plugin -r :animal-sniffer-maven-plugin

%if %{with bootstrap}
%pom_remove_parent
%pom_add_plugin org.eclipse.sisu:sisu-maven-plugin '
<executions>
  <execution>
    <id>index-project</id>
    <goals>
      <goal>main-index</goal>
    </goals>
  </execution>
</executions>'
%pom_xpath_remove -r 'pom:project/pom:packaging[contains(text(),"takari")]'
%pom_add_plugin :maven-compiler-plugin '
<configuration>
  <source>1.8</source>
  <target>1.8</target>
  <compilerArgument>-proc:none</compilerArgument>
</configuration>'
%endif

%build
%mvn_build -f

%install
%mvn_install


%files -f .mfiles
%license epl-v10.html

%files javadoc -f .mfiles-javadoc
%license epl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17492 |21mr|takari-lifecycle-1.13.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

Name:           takari-lifecycle
Version:        1.13.10
Release:        1%{?with_bootstrap:.boot}
Summary:        Optimized replacement for the Maven default lifecycle
# Everything is under EPL, but one file (AetherUtils.java) is under both EPL and ASL 2.0
License:        EPL and ASL 2.0
URL:            http://takari.io
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/takari/%{name}/archive/%{name}-%{version}.tar.gz
Source1:        http://www.apache.org/licenses/LICENSE-2.0.txt

Patch0001:      0001-Port-to-mustache-java-0.9.1.patch
Patch0002:      0002-Use-commons-codec-instead-of-takari-hash-in-tests.patch
Patch0003:      0003-Adapt-to-ProjectDependencyGraph-API-change.patch
# https://github.com/takari/takari-lifecycle/pull/62
Patch0004:      0004-FTBFS-switch-to-modern-xmlunit.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.github.spullara.mustache.java:compiler)
BuildRequires:  mvn(com.google.code.gson:gson)
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(com.squareup:javapoet)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(io.takari.builder:takari-builder)
BuildRequires:  mvn(io.takari.m2e.workspace:org.eclipse.m2e.workspace.cli)
BuildRequires:  mvn(io.takari.maven.plugins:takari-plugin-testing)
BuildRequires:  mvn(io.takari:incrementalbuild)
BuildRequires:  mvn(io.takari:takari-archiver)
BuildRequires:  mvn(io.takari:takari:pom:)
BuildRequires:  mvn(javax.inject:javax.inject)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-exec)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.wagon:wagon-file)
BuildRequires:  mvn(org.apache.maven:maven-aether-provider)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-repository-metadata)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.codehaus.modello:modello-maven-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.aether:aether-connector-basic)
BuildRequires:  mvn(org.eclipse.aether:aether-impl)
BuildRequires:  mvn(org.eclipse.aether:aether-spi)
BuildRequires:  mvn(org.eclipse.aether:aether-transport-wagon)
BuildRequires:  mvn(org.eclipse.aether:aether-util)
BuildRequires:  mvn(org.eclipse.jdt:org.eclipse.jdt.compiler.apt)
BuildRequires:  mvn(org.eclipse.jdt:org.eclipse.jdt.core)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.osgi)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  mvn(org.sonatype.sisu:sisu-guice::no_aop:)
# Patch4 switches from xmlunit-legacy to xmlunit
BuildRequires:  xmlunit

%if ! %{with bootstrap}
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.eclipse.sisu:sisu-maven-plugin)
%else
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)
%endif


%description
Takari Maven Lifecycle includes an optimized replacement for the Maven
default lifecycle.  The Takari Lifecycle Plugin is a Maven plugin with
a small set of dependencies that provides equivalent functionality to
five plugins with a large set of transitive dependencies.  This
reduces the download times to retrieve the needed components as well
as the storage space requirements in your repositories.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.


%prep
%setup -q -n %{name}-%{name}-%{version}
%autopatch -p1

cp %{SOURCE1} .

# Replace bundled test dependency with symlink to system JAR
ln -sf %{_javadir}/commons-lang.jar takari-lifecycle-plugin/src/test/jars/commons-lang-2.0.jar

# XXX skip ITs for now
%pom_disable_module takari-lifecycle-plugin-its

%pom_remove_plugin -r :animal-sniffer-maven-plugin
%pom_remove_plugin -r :license-maven-plugin

# changed by patch
%pom_change_dep -r :takari-hash commons-codec:commons-codec::test

%pom_change_dep -r org.eclipse.platform:org.eclipse.osgi org.eclipse.osgi:
%pom_add_dep org.eclipse:java9api:9 takari-lifecycle-plugin

# FIXME failing test
rm takari-lifecycle-plugin/src/test/java/io/takari/maven/plugins/compile/CompileIncrementalTest.java

%if %{with bootstrap}
# Bootstrap build
%pom_remove_parent
%pom_xpath_set pom:project/pom:packaging maven-plugin takari-lifecycle-plugin
%pom_add_plugin :maven-compiler-plugin '
<configuration>
  <source>1.8</source>
  <target>1.8</target>
</configuration>'
%pom_add_plugin org.apache.maven.plugins:maven-plugin-plugin takari-lifecycle-plugin '
<executions>
  <execution>
    <id>mojo-descriptor</id>
    <configuration>
      <phase>process-classes</phase>
      <packagingTypes>
        <packaging>maven-plugin</packaging>
      </packagingTypes>
    </configuration>
    <goals>
      <goal>descriptor</goal>
    </goals>
  </execution>
</executions>'
%pom_add_plugin org.eclipse.sisu:sisu-maven-plugin takari-lifecycle-plugin '
<executions>
  <execution>
    <id>index-project</id>
    <goals>
      <goal>main-index</goal>
    </goals>
  </execution>
</executions>
'
%endif

%build
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 -e

%install
%mvn_install


%files -f .mfiles
%license LICENSE.txt LICENSE-2.0.txt
%doc README.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt LICENSE-2.0.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17493 |21mr|takari-plugin-testing-2.9.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           takari-plugin-testing
Version:        2.9.2
Release:        7
Summary:        Maven plugin testing library
License:        EPL and ASL 2.0
URL:            http://takari.io/
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        https://github.com/takari/%{name}/archive/%{name}-%{version}.tar.gz
# Upstream is known to refuse to include license texts in the repository
Source1:        http://www.eclipse.org/legal/epl-v10.html
Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(io.takari.m2e.workspace:org.eclipse.m2e.workspace.cli)
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)
BuildRequires:  mvn(io.takari:takari:pom:)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.commons:commons-exec)
BuildRequires:  mvn(org.apache.maven:maven-aether-provider)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-settings)
BuildRequires:  mvn(org.apache.maven:maven-settings-builder)
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.aether:aether-api)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.sonatype.sisu:sisu-guice::no_aop:)


%description
Small, cohesive, one-stop library for developing unit and integration tests for
Maven plugins. Provides alternative to, and arguably supersedes,
maven-plugin-testing-harness and maven-verifier.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.


%prep
%setup -q -n %{name}-project-%{name}-%{version}

# disable its for now
%pom_disable_module takari-plugin-testing-its

cp %{SOURCE1} %{SOURCE2} .

%build
%mvn_build

%install
%mvn_install


%files -f .mfiles
%doc readme.md
%license epl-v10.html LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license epl-v10.html LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17494 |21mr|takari-polyglot-0.4.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          takari-polyglot
Version:       0.4.4
Release:       5
Summary:       Modules to enable Maven usage in other JVM languages
License:       EPL-1.0
Group:         Development/Java
URL:           https://github.com/takari/polyglot-maven
Source0:       https://github.com/takari/polyglot-maven/archive/polyglot-%{version}.tar.gz

Patch0: 0001-Revert-072fbcb-to-fix-problem-with-building-Eclipse.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-model-builder)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.slf4j:slf4j-api)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Package was renamed upstream tesla -> takari F31
Provides:  tesla-polyglot = %{version}-%{release}
Obsoletes: tesla-polyglot < 0.4.4-3

%description
Polyglot for Maven is an experimental distribution of Maven
that allows the expression of a POM in something other than
XML. A couple of the dialects also have the capability to
write plugins inline: the Groovy, Ruby and Scala dialects
allow this.

%package atom
Summary: Takari Polyglot :: Atom
# Package was renamed upstream tesla -> takari F31
Provides:  tesla-polyglot-atom = %{version}-%{release}
Obsoletes: tesla-polyglot-atom < 0.4.4-3

%description atom
Takari Polyglot :: Atom.

%package common
Summary: Takari Polyglot :: Common
# Package was renamed upstream tesla -> takari F31
Provides:  tesla-polyglot-common = %{version}-%{release}
Obsoletes: tesla-polyglot-common < 0.4.4-3

# Obsoletes added for retired sub-packages in F31
Obsoletes: tesla-polyglot-groovy < 0.4.4-3
Obsoletes: tesla-polyglot-yaml < 0.4.4-3

%description common
Takari Polyglot :: Common.

%package xml
Summary: Takari Polyglot :: XML
# Package was renamed upstream tesla -> takari F31
Provides:  tesla-polyglot-xml = %{version}-%{release}
Obsoletes: tesla-polyglot-xml < 0.4.4-3

%description xml
Takari Polyglot :: XML.

%package maven-plugin
Summary: Takari Polyglot :: Maven Plugin
# Package was renamed upstream tesla -> takari F31
Provides:  tesla-polyglot-maven-plugin = %{version}-%{release}
Obsoletes: tesla-polyglot-maven-plugin < 0.4.4-3

%description maven-plugin
This package contains Takari Polyglot Maven Plugin.

%package translate-plugin
Summary: Polyglot :: Translate Plugin
# Package was renamed upstream tesla -> takari F31
Provides:  tesla-polyglot-translate-plugin = %{version}-%{release}
Obsoletes: tesla-polyglot-translate-plugin < 0.4.4-3

%description translate-plugin
This package contains Polyglot Translate Plugin.

%package javadoc
Summary: Javadoc for %{name}
# Package was renamed upstream tesla -> takari F31
Provides:  tesla-polyglot-javadoc = %{version}-%{release}
Obsoletes: tesla-polyglot-javadoc < 0.4.4-3

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n polyglot-maven-polyglot-%{version}
%patch0 -p1

find -name "*.class" -delete
find -name "*.jar" -delete

# Unecessary for RPM builds
%pom_remove_plugin ":maven-enforcer-plugin"

# Takari stack is unavailable, so build like an ordinary maven plugin project
%pom_remove_parent
%pom_xpath_remove "pom:packaging" polyglot-common polyglot-atom polyglot-xml
%pom_xpath_set "pom:packaging" "maven-plugin" polyglot-maven-plugin polyglot-translate-plugin
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 '
<configuration>
 <source>1.8</source>
 <target>1.8</target>
 <encoding>UTF-8</encoding>
</configuration>'
for p in maven-plugin translate-plugin; do
  %pom_add_plugin "org.apache.maven.plugins:maven-plugin-plugin" polyglot-${p} "
  <configuration>
    <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
  </configuration>"
  %pom_xpath_inject "pom:dependency[pom:groupId = 'org.apache.maven']" "<version>3.3.1</version>" polyglot-${p}
done
%pom_xpath_inject "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'org.apache.maven']" '<version>${mavenVersion}</version>'

# Unavailable build deps/tools
%pom_disable_module polyglot-clojure
%pom_disable_module polyglot-scala
%pom_remove_dep -r :polyglot-scala
%pom_disable_module polyglot-ruby
%pom_remove_dep -r :polyglot-ruby
%pom_disable_module polyglot-groovy
%pom_remove_dep -r :polyglot-groovy
%pom_disable_module polyglot-java
%pom_remove_dep -r :polyglot-java
%pom_disable_module polyglot-kotlin
%pom_remove_dep -r :polyglot-kotlin
%pom_disable_module polyglot-yaml
%pom_remove_dep -r :polyglot-yaml

# Test dep com.cedarsoftware:java-util:1.19.3 is missing from Fedora
sed -i '/DeepEquals/d' polyglot-xml/src/test/java/org/sonatype/maven/polyglot/xml/TestReaderComparedToDefault.java
%pom_remove_dep com.cedarsoftware:java-util polyglot-xml

# Back-compat aliases
%mvn_alias ':polyglot-{*}' io.tesla.polyglot:tesla-polyglot-@1

%build
%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-polyglot
%doc poms
%license LICENSE.txt

%files atom -f .mfiles-polyglot-atom

%files common -f .mfiles-polyglot-common
%license LICENSE.txt

%files xml -f .mfiles-polyglot-xml
%doc polyglot-xml/README.md

%files maven-plugin -f .mfiles-polyglot-maven-plugin

%files translate-plugin -f .mfiles-polyglot-translate-plugin

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17495 |21mr|takari-pom-27-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           takari-pom
Version:        27
Release:        2
Summary:        Takari parent POM
License:        EPL-1.0
URL:            https://github.com/takari/takari-pom/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/takari/%{name}/archive/takari-%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)

Obsoletes:      tesla-pom < 4-7

%description
Takari is a next generation development infrastructure framework.  This
package provides Takari POM file to by used by Apache Maven.

%prep
%setup -q -n %{name}-takari-%{version}
%mvn_alias : io.tesla:tesla

# takari expects no annotations processors on classpath by default, but we
# always have some in /usr/share/java
%pom_xpath_inject 'pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId="takari-lifecycle-plugin"]/pom:configuration' '<proc>none</proc>'

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17496 |21mr|takari-smart-builder-0.6.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global         maven_version %(rpm -q --qf "%%{version}" maven)
Name:           takari-smart-builder
Version:        0.6.1
Release:        3
Summary:        A replacement scheduling projects builds in a Maven multi-module build

# https://github.com/takari/takari-smart-builder/issues/7 says that the package
# WILL be licensed under ASL 2.0,
# but the parent pom of this project is using EPL.
License:        EPL and ASL 2.0
URL:            https://github.com/takari/%{name}
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/takari/%{name}/archive/takari-smart-builder-%{version}.tar.gz

BuildRequires:  maven
BuildRequires:  maven-local
BuildRequires:  junit
BuildRequires:  mvn(com.google.guava:guava)
BuildRequires:  mvn(io.takari:incrementalbuild)
BuildRequires:  mvn(io.takari.m2e.workspace:org.eclipse.m2e.workspace.cli)
# Only takari-lifecycle-plugin >= 1.12.0 provides:
# org.eclipse.jdt.internal.compiler.classfmt.MethodInfo.getParameterAnnotations(I)
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin) >= 1.12.0
BuildRequires:  mvn(io.takari.maven.plugins:takari-plugin-testing)
BuildRequires:  mvn(io.takari:takari-archiver)
BuildRequires:  mvn(io.takari:takari:pom:)


%description
The Takari Smart Builder is a replacement scheduling projects builds in
a Maven multi-module build.

Documentation for usage and more is available in the Takari TEAM documentation
at http://takari.io/book/index.html

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%prep
%setup -q -n %{name}-%{name}-%{version}

# No need to test maven-3.3.1 installation
# src/test/java/io/takari/maven/builder/smart/TestProjectDependencyGraph.java Does not implement
# ProjectDependencyGraph.getAllProjects()
# Thus remove test under smart/
rm -fr src/test/java/io/takari/maven/builder/smart/*

%build
%mvn_build -X -- -Dproject.build.sourceEncoding=UTF-8 -Dmaven.version=%{maven_version}

rm -f target/site/apidocs/javadoc.sh

%install
%mvn_install -X
mkdir -p %{buildroot}/%{_datadir}/maven/lib/ext
ln -s %{_javadir}/%{name}/%{name}.jar %{buildroot}/%{_datadir}/maven/lib/ext/%{name}.jar


%files -f .mfiles
%license LICENSE
%doc README.md
%{_datadir}/maven/lib/ext/%{name}.jar

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17497 |21mr|takari-tycho-support-0.16.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           takari-tycho-support
Version:        0.16.0
Release:        9
Summary:        Takari Tycho Base
License:        EPL
URL:            https://github.com/takari/tycho-support/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/takari/tycho-support/archive/tycho-support-%{version}.tar.gz
# Requested upstream to include license text:
# https://github.com/takari/tycho-support/pull/1
Source1:        http://www.eclipse.org/legal/epl-v10.html

BuildRequires:  maven-local
BuildRequires:  mvn(io.takari:takari:pom:)
BuildRequires:  mvn(org.eclipse.tycho:target-platform-configuration)
BuildRequires:  mvn(org.eclipse.tycho:tycho-maven-plugin)

Obsoletes:      tesla-tycho-support < 0.16.0-2

%description
Takari is a next generation development infrastructure framework.
This package provides Maven POM file which serves as the base of Tycho
projects which have plugins, tests, and deployable features.
Everything that is required is provided and parameterized by
specifying properties in the host POM.

%prep
%setup -q -n tycho-support-tycho-support-%{version}
cp -p %{SOURCE1} .

# Remove plugins which are not useful in Fedora.
%pom_remove_plugin :maven-upload-plugin

# Removing this fixes "Invalid repository URL" errors when trying to build tycho
# projects that use takari due to missing property "repoHost"
%pom_xpath_remove pom:repositories

%mvn_alias : io.tesla.tycho:

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc epl-v10.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17498 |21mr|taktuk-3.7.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Parallel, scalable launcher for cluster and lightweight grids
Name:		taktuk
Version:	3.7.7
Release:	7
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://taktuk.gforge.inria.fr/
Source0:	https://gforge.inria.fr/frs/download.php/file/37055/%{name}-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
BuildRequires:	perl-devel
Provides:	parallel-tools = %{EVRD}

%description
TakTuk is a tool for deploying parallel remote executions of commands to a
potentially large set of remote nodes. It spreads itself using an adaptive
algorithm and sets up an interconnection network to transport commands and
perform I/Os multiplexing/demultiplexing. The TakTuk mechanics dynamically
adapt to environment (machine performance and current load, network
contention) by using a reactive work-stealing algorithm that mix local
parallelization and work distribution.

%files
%{_bindir}/taktuk
%{_bindir}/taktuk-light
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_defaultdocdir}/%{name}-%{version}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Parallel, scalable launcher for cluster development
Group:		System/Libraries
Conflicts:	%{_lib}taktuk0 < 3.7.5-3
Obsoletes:	%{_lib}taktuk0 < 3.7.5-3

%description -n %{libname}
TakTuk is a tool for deploying parallel remote executions of commands to a
potentially large set of remote nodes.

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING DISCLAIMER INSTALL NEWS README TODO
%{_libdir}/libtaktuk.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Taktuk
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}taktuk0-devel < 3.7.5-3
Obsoletes:	%{_lib}taktuk0-devel < 3.7.5-3

%description -n %{devname}
Development files for Taktuk.

%files -n %{devname}
%{_includedir}/*
%{_datadir}/*
%{_libdir}/libtaktuk.so*
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n perl-%{name}
Summary:	Taktuk Perl package
Group:		Development/Perl
Requires:	%{libname} = %{EVRD}

%description -n perl-%{name}
Taktuk Perl package.

%files -n perl-%{name}
%doc AUTHORS ChangeLog COPYING DISCLAIMER INSTALL NEWS README TODO
%{perl_vendorlib}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make
pushd Perl-Module
%{__perl} Makefile.PL INSTALLDIRS=vendor DESTDIR=%{buildroot}
%make
popd

%install
%makeinstall pkgdocdir=%{buildroot}%{_defaultdocdir}/%{name}-%{version}
pushd Perl-Module
%makeinstall pkgdocdir=%{buildroot}%{_defaultdocdir}/%{name}-%{version}
popd
cp taktuk-light %{buildroot}/%{_bindir}/taktuk-light
chmod 755 %{buildroot}/%{_bindir}/taktuk-light

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17499 |21mr|tali-40.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME Tali game
Name:		tali
Version:	40.7
Release:	2
License:	GPLv2+ and GFDL
Group:		Games/Other
Url:		https://download.gnome.org/sources/tali
Source0:	https://download.gnome.org/sources/tali/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	pkgconfig(gdk-3.0)
BuildRequires:	pkgconfig(libgnome-games-support-1)
BuildRequires:	pkgconfig(librsvg-2.0)
Provides:	gtali = %{EVRD}

%description
Sort of poker with dice and less money. An ancient Roman game.

%files -f %{name}.lang
%license COPYING
%attr(2551, root, games) %{_bindir}/tali
%{_appdatadir}/org.gnome.Tali.appdata.xml
%{_datadir}/applications/org.gnome.Tali.desktop
%{_datadir}/glib-2.0/schemas/org.gnome.Tali.gschema.xml
%{_datadir}/icons/*/*/*/*
%{_datadir}/tali
%{_mandir}/man6/tali.6*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17500 |21mr|talloc-2.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tallocmajor 2
%define libtalloc %mklibname talloc %{tallocmajor}
%define tallocdev %mklibname talloc -d
%define libpytalloc %mklibname pytalloc-util %{tallocmajor}
%define libpytallocdev %mklibname pytalloc-util -d
%define libpy3talloc %mklibname py3talloc-util %{tallocmajor}
%define libpy3tallocdev %mklibname py3talloc-util -d

Summary:	Library implementing Samba's memory allocator
Name:		talloc
Version:	2.4.2
Release:	1
# tallocversion was not used when in samba4, so it was 4.0.0
Epoch:		1
License:	GPLv3+
Group:		System/Libraries
Url:		http://talloc.samba.org
Source0:	http://talloc.samba.org/ftp/talloc/talloc-%{version}.tar.gz
BuildRequires:	docbook-style-xsl
BuildRequires:	swig
BuildRequires:	xsltproc
BuildRequires:	acl-devel
BuildRequires:	pkgconfig(python3)

%description
Library implementing Samba's memory allocator.

#----------------------------------------------------------------------------

%package -n %{libtalloc}
Summary:	Library implementing Samba's memory allocator
Group:		System/Libraries

%description -n %{libtalloc}
Library implementing Samba's memory allocator.

%files -n %{libtalloc}
%{_libdir}/libtalloc.so.%{tallocmajor}*

#----------------------------------------------------------------------------

%package -n %{tallocdev}
Summary:	Development files for library implementing Samba's memory allocator
Group:		Development/C
Requires:	%{libtalloc} = %{EVRD}
Provides:	talloc-devel = %{EVRD}

%description -n %{tallocdev}
Development files for library implementing Samba's memory allocator.

%files -n %{tallocdev}
%{_libdir}/libtalloc.so
%{_includedir}/talloc.h
%{_libdir}/pkgconfig/talloc.pc
%{_mandir}/man3/talloc*

#----------------------------------------------------------------------------

%package -n python3-talloc
Summary:	Python3 module for Samba's talloc memory allocator
Group:		Development/Python

%description -n python3-talloc
Python3 module for Samba's talloc memory allocator.

%files -n python3-talloc
%{python3_sitearch}/talloc.cpython*.so

#----------------------------------------------------------------------------

%package -n %{libpy3talloc}
Summary:	Utility functions for using talloc objects with Python3
Group:		Development/C

%description -n %{libpy3talloc}
Utility functions for using talloc objects with Python3.

%files -n %{libpy3talloc}
%{_libdir}/libpytalloc-util.cpython-3*.so.%{tallocmajor}*

#----------------------------------------------------------------------------

%package -n %{libpy3tallocdev}
Summary:	Development files for utility functions for using talloc objects with Python
Group:		Development/C
Provides:	pytalloc-util-devel = %{EVRD}
Requires:	%{libpy3talloc} = %{EVRD}

%description -n %{libpy3tallocdev}
Development files for utility functions for using talloc objects with Python.

%files -n %{libpy3tallocdev}
%{py3_incdir}/pytalloc.h
%{_libdir}/libpytalloc-util.cpython-3*.so
%{_libdir}/pkgconfig/pytalloc-util.cpython-3*.pc

#----------------------------------------------------------------------------

%prep
%setup -q
chmod +r -R .

%build
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--disable-rpath \
	--bundled-libraries=NONE \
	--builtin-libraries=replace 
%make all

%install
%makeinstall_std
chmod +x %{buildroot}{%{_libdir}/lib*.so.%{tallocmajor}*,%{python3_sitearch}/*talloc*.so}

# From OpenSUSE
# TODO@mikhailnov: beautify python3 filenames
mkdir -p %{buildroot}/%{py3_incdir}
mv %{buildroot}/%{_includedir}/pytalloc.h %{buildroot}/%{py3_incdir}/pytalloc.h
sed -i 's;%{_includedir};%{py3_incdir};g' %{buildroot}/%{_libdir}/pkgconfig/pytalloc-util.cpython-3*.pc
#sed -i 's;-lpytalloc-util.%{py3_soflags_dash};-lpytalloc-util.%{py3_soflags};g' %{buildroot}/%{_libdir}/pkgconfig/pytalloc-util.cpython-3*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17501 |21mr|tang-11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Network Presence Binding Daemon
Name:		tang
Version:	11
Release:	4
License:	GPLv3+
Group:		Networking/Other
Url:		https://github.com/latchset/tang
Source0:	https://github.com/latchset/%{name}/releases/download/v%{version}/%{name}-%{version}.tar.xz
Source1:	tang.sysusers
Patch0:		CVE-2023-1672.patch
BuildRequires:	asciidoc
BuildRequires:	coreutils
BuildRequires:	curl
BuildRequires:	git-core
BuildRequires:	jose
BuildRequires:	meson
BuildRequires:	socat
BuildRequires:	systemd-units
BuildRequires:	http-parser-devel
BuildRequires:	pkgconfig(jose)
BuildRequires:	pkgconfig(systemd)
Requires:	coreutils
Requires:	grep
Requires:	jose
Requires:	sed
Requires:	systemd
Requires(pre):	/bin/systemd-sysusers

%description
Tang is a small daemon for binding data to the presence of a third party.

%files
%doc README.md
%license COPYING
%attr(0700, %{name}, %{name}) %{_localstatedir}/db/%{name}
%{_bindir}/%{name}-show-keys
%{_libexecdir}/%{name}d
%{_libexecdir}/%{name}d-keygen
%{_libexecdir}/%{name}d-rotate-keys
%{_sysusersdir}/tang.conf
%{_unitdir}/%{name}d@.service
%{_unitdir}/%{name}d.socket

%pre
%sysusers_create_package tang %{SOURCE1}

%post
%systemd_post %{name}d.socket

# Let's make sure any existing keys are readable only
# by the owner/group.
if [ -d /var/db/tang ]; then
	for k in /var/db/tang/*.jwk; do
		test -e "${k}" || continue
		chmod 0440 -- "${k}"
	done
	for k in /var/db/tang/.*.jwk; do
		test -e "${k}" || continue
		chmod 0440 -- "${k}"
	done
	chown tang:tang -R /var/db/tang
fi

%preun
%systemd_preun %{name}d.socket

%postun
%systemd_postun_with_restart %{name}d.socket

#------------------------------------------------------------------

%prep
%autosetup -S git
sed -i "s:^systemunitdir.*:systemunitdir = '"%{_unitdir}"':" meson.build

%build
%meson
%meson_build

%install
%meson_install
install -p -D -m 0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/tang.conf
mkdir -p %{buildroot}%{_localstatedir}/db/%{name}

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17502 |21mr|tap-1.03-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Write tests that implement the Test Anything Protocol
Name:		tap
Version:	1.03
Release:	7
License:	GPLv2+
Group:		System/Libraries
Url:		http://jc.ngo.org.uk/trac-bin/trac.cgi/wiki/LibTap
Source0:	http://download.berlios.de/web-cpan/%{name}-%{version}.tar.gz

%description
The tap library provides functions for writing test scripts that produce output
consistent with the Test Anything Protocol.  A test harness that parses this
protocol can run these tests and produce useful reports indicating their
success or failure.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Write tests that implement the Test Anything Protocol
Group:		System/Libraries

%description -n %{libname}
The tap library provides functions for writing test scripts that produce output
consistent with the Test Anything Protocol.  A test harness that parses this
protocol can run these tests and produce useful reports indicating their
success or failure.

%files -n %{libname}
%doc INSTALL README
%{_libdir}/libtap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_libdir}/*.so
%{_includedir}/*
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make CFLAGS+=-UHAVE_LIBPTHREAD

%install
%makeinstall_std
rm -fr %{buildroot}%{_libdir}/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17503 |21mr|tar-1.35-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	A GNU file archiving program
Name:		tar
Version:	1.35
Release:	2
License:	GPLv3
Group:		Archiving/Backup
Url:		https://www.gnu.org/software/tar/tar.html
Source0:	https://ftp.gnu.org/gnu/tar/%{name}-%{version}.tar.xz
# Required for the checks
BuildRequires:	acl
BuildRequires:	attr
BuildRequires:	bison
BuildRequires:	help2man
BuildRequires:	policycoreutils
BuildRequires:	texinfo
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libacl)
%if %{with selinux}
BuildRequires:	pkgconfig(libselinux)
%endif
# see man tar(1), why rsh is recommended.
# Do not pull a very rarely needed interpreter into certified systems.
%if %{mdvver} <= 202110
Recommends:	rsh-client
%endif
Provides:	gnutar = %{EVRD}

%description
The GNU tar program saves many files together into one archive and
can restore individual files (or all of the files) from the archive.
Tar can also be used to add supplemental files to an archive and to
update or list files in the archive.

Tar includes multivolume support, automatic archive compression/
decompression, the ability to perform remote archives and the
ability to perform incremental and full backups.

If you want to use Tar for remote backups, you'll also need to
install the rmt package.

You should install the tar package, because you'll find its
compression and decompression utilities essential for working
with files.

%files -f %{name}.lang
%doc AUTHORS NEWS README THANKS TODO
%license COPYING
%{_bindir}/*
/bin/gtar
/bin/tar
%{_infodir}/*.info*
%{_libexecdir}/backup.sh
%{_libexecdir}/dump-remind
%{_mandir}/man?/*
%{_sbindir}/*

#---------------------------------------------------------------------

%prep
%autosetup -p1

# (misc, 02-11-2010, sigpipe test do not pass on iurt )
sed -i 's/.*sigpipe.at.*//' tests/testsuite.at

# (kekepower, 2019-01-04, dirrem01 and dirrem02 fails on iurt)
sed -i 's/.*dirrem01.*//' tests/testsuite.at
sed -i 's/.*dirrem02.*//' tests/testsuite.at

rm -f tests/testsuite

%build
autoreconf -vfi
%configure	\
	DEFAULT_RMT_DIR=%{_sbindir}	\
	--disable-rpath			\
%ifarch %{ix86}	
	--disable-year2038			\
%endif
	--enable-backup-scripts		\
	RSH=/usr/bin/ssh		\
	--with-lzma="xz --format=lzma"	\
	%{!?with_selinux:--without-selinux}	\
	%{nil}
%make

# thanks to diffutils Makefile rule
(echo '[NAME]' && sed 's@/\* *@@; s/-/\\-/; q' src/tar.c) | (help2man -i - -S '%{name} %{version}' src/tar ) | sed 's/^\.B info .*/.B info %{name}/' > %{name}.1

%check
# tests broken
# upstream forgot to put 2 tests
make check || exit 0

%install
%makeinstall_std

ln -sf tar %{buildroot}%{_bindir}/gtar

install -D -m 644 tar.1 %{buildroot}%{_mandir}/man1/tar.1

# conflicts with coda-debug-backup
mv %{buildroot}%{_sbindir}/backup %{buildroot}%{_sbindir}/tar-backup
mv %{buildroot}%{_sbindir}/restore %{buildroot}%{_sbindir}/tar-restore

# rmt is provided by rmt ...
mv %{buildroot}%{_sbindir}/rmt %{buildroot}%{_sbindir}/rmt-tar
mv %{buildroot}%{_mandir}/man8/rmt.8 %{buildroot}%{_mandir}/man8/rmt-tar.8

# Symlinks for tar to maintain compatibility with the older releases.
mkdir %{buildroot}/bin
ln -s %{_bindir}/gtar %{buildroot}/bin/gtar
ln -s %{_bindir}/tar %{buildroot}/bin/tar

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17504 |21mr|task-archiving-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: task-archiving
Summary: Meta package to pull archiving and unarchiving software
License: MIT
Group: Archiving/Compression
Version: 1.1
Release: 1

# 7zip suports a lot of formats
Recommends: %{_bindir}/tar
Recommends: %{_bindir}/zip
# XXX is rarely used arj needed here?
Recommends: %{_bindir}/arj
Recommends: %{_bindir}/unarj
Recommends: %{_bindir}/ar
# unar is a free implementation, unrar is proprietary
# TODO: package unar
Recommends: (%{_bindir}/unar or %{_bindir}/unrar)
Recommends: cpio
Recommends: p7zip

# List from sources of file-roller
# grep -nHr PACKAGES | sed -e 's,(,\n,' | grep '^"' | sed -e 's,",,g' -e 's,),,' -e 's,;,,' -e 's!,!\n!g' | sort -u | while read -r line; do echo "Recommends: %{_bindir}/$line"; done
# Removed: binutils, dpkg, unace (32bit-only blob for a rare format), /usr/bin/p7zip* (it is /usr/bin/7z)
Recommends: %{_bindir}/arj
Recommends: %{_bindir}/brotli
Recommends: %{_bindir}/bzip2
Recommends: %{_bindir}/cpio
Recommends: %{_bindir}/genisoimage
Recommends: %{_bindir}/gzip
Recommends: %{_bindir}/lha
Recommends: %{_bindir}/lrzip
Recommends: %{_bindir}/lz4
Recommends: %{_bindir}/lzip
Recommends: %{_bindir}/lzma
Recommends: %{_bindir}/lzop
Recommends: %{_bindir}/ncompress
Recommends: %{_bindir}/rar
Recommends: %{_bindir}/rpm
Recommends: %{_bindir}/rzip
Recommends: %{_bindir}/tar
Recommends: %{_bindir}/unalz
Recommends: %{_bindir}/unarchiver
Recommends: %{_bindir}/unrar
Recommends: %{_bindir}/unsquashfs
Recommends: %{_bindir}/unstaff
Recommends: %{_bindir}/unzip
Recommends: %{_bindir}/xz
Recommends: %{_bindir}/zip
Recommends: %{_bindir}/zoo
Recommends: %{_bindir}/zstd

%description
Meta package to pull archiving and unarchiving software
which may be used by e.g. GUI archive managers

%files
# empty, meta package

#---------------------------------------------------------------

%prep
%build
%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17505 |21mr|task-c-devel-2014.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for C development
Name:		task-c-devel
Version:	2014.1
Release:	5
License:	GPLv2+
Group:		Development/C
Requires:	autoconf
Requires:	automake
Requires:	binutils
Requires:	bison
Requires:	byacc
Requires:	ctags
Requires:	diffutils
Requires:	flex
Requires:	gcc
# Somebody added it, perhaps for a reason?
Requires:	gcc-cpp
Requires:	libtool
Requires:	m4
Requires:	make
Requires:	patch
Requires:	texinfo
Requires:	glibc-devel
Requires:	pkgconfig(glib-2.0)
Requires:	pkgconfig(ncurses)
Requires:	pkgconfig(slang)
Requires:	pkgconfig(zlib)
BuildArch:	noarch

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies for a complete environment for development of programs in
the C programming language.

It itself includes no software, only dependencies on software.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17506 |21mr|task-c++-devel-2014.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for C++ development
Name:		task-c++-devel
Version:	2014.1
Release:	8
License:	GPLv2+
Group:		Development/C++
Requires:	task-c-devel
Requires:	gcc-c++
BuildArch:	noarch

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies for a complete environment for development of programs in
the C++ programming language.

It itself includes no software, only dependencies on software.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17507 |21mr|task-iso-2021.1-1.02
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tasks for all iso
Name:		task-iso
Version:	2021.1
Release:	1.02
License:	MIT
Group:		Graphical desktop/Other
Url:		https://abf.io

%description
Tasks for all iso.

task-iso-common - packages common to all iso.
When exclude_from_weak_autodetect=true (default)
	If Recommends new package to this, it will soft-installed on all systems.
	This is useful for new packages when it is unclear where to attach them.
When exclude_from_weak_autodetect=false in /etc/dnf/dnf.conf
	If package deleted manually, it will return when updating this project.
	This is useful for "quiet" system repairs.

task-iso-common-var - packages common that can be deleted more freely.
When exclude_from_weak_autodetect=true (default)
	If Recommends new package to this, it will soft-installed on new systems only.
	This is useful for new packages when it is unclear where to attach them
	but there is no need to send them to the installed systems.
When exclude_from_weak_autodetect=false in /etc/dnf/dnf.conf
	If package deleted manually, they will not return when updating this project.
	However, they can be returned with the dnf distrosync command.
	This is useful for fixing the system manually.

task-iso-XXX - analog of task-iso-common with specific packages for XXX DE iso.

task-iso-XXX-var - analog of task-iso-common-var with specific packages for XXX DE iso.

#----------------------------------------------------------------------------

%package common
Summary:	Task for all iso
Group:		Graphical desktop/Other
Requires:	%{name}-common-var
Recommends:	alsa-sof-firmware
Recommends:	alsa-plugins
Recommends:	alsa-plugins-doc
Recommends:	aspell-en
Recommends:	aspell-de
Recommends:	aspell-es
Recommends:	aspell-fr
Recommends:	aspell-it
Recommends:	aspell-pt
Recommends:	aspell-ru
Recommends:	auto-krokodil-cli
Recommends:	basesystem-mandatory
Recommends:	branding-configs-fresh-desktop
Recommends:	chrony
Recommends:	console-gentoo-style
Recommends:	gnome-keyring
Recommends:	grub2-theme-rosa
Recommends:	gtk2-modules
Recommends:	htop
Recommends:	iputils
Recommends:	libressl
Recommends:	luksunlock
Recommends:	man-pages
Recommends:	mc
Recommends:	myspell-en_US
Recommends:	myspell-ru_RU
Recommends:	nano
Recommends:	ncdu
Recommends:	ncurses
Recommends:	networkmanager-l2tp
Recommends:	networkmanager-openvpn
Recommends:	networkmanager-pptp
Recommends:	networkmanager-vpnc
Recommends:	openssh-server
Recommends:	(pulseaudio-utils if pulseaudio)
# pulseaudio >= 14 means real pulseaudio, not pipewire
Recommends:	(pulseaudio-module-x11 if pulseaudio >= 14)
Recommends:	(pulseaudio-module-bluetooth if (bluez and pulseaudio >= 14))
Recommends:	(pulseaudio-module-gsettings if pulseaudio >= 14)
Recommends:	rosa-repos
Recommends:	Rosa-theme-EE
Recommends:	screen
Recommends:	squashfs-tools
Recommends:	strace
Recommends:	task-kernel
Recommends:	task-x11
Recommends:	task-archiving
Recommends:	task-smartcards
Recommends:	termcap
Recommends:	timezone
Recommends:	tree
Recommends:	wsdd
Recommends:	xterm

# Lost
Recommends:	branding-configs-fresh-desktop

%description common
Task for all iso.

%files common

#----------------------------------------------------------------------------

%package common-var
Summary:	Variable task for common iso
Group:		Graphical desktop/Other
Release:	1.var
Recommends:	bluez
Recommends:	grub2-efi
Recommends:	pcmemtest
Recommends:	pulseaudio
Recommends:	spice-vdagent
Recommends:	task-printing
Recommends:	task-scanning

%description common-var
Variable task for common iso.

%files common-var

#----------------------------------------------------------------------------

%package gnome
Summary:	Task for gnome iso
Group:		Graphical desktop/GNOME
Requires:	%{name}-common
Requires:	%{name}-gnome-var
Recommends:	abattis-cantarell-fonts
Recommends:	adwaita-gtk2-theme
Recommends:	aria2
Recommends:	atk1.0-common
Recommends:	atmel-firmware
Recommends:	baobab
Recommends:	bijiben
Recommends:	canberra-common
Recommends:	canberra-gtk
Recommends:	cheese
Recommends:	chrome-gnome-shell
Recommends:	crontabs
Recommends:	cups-common
Recommends:	dconf-editor
Recommends:	deja-dup
Recommends:	dhcp-common
Recommends:	dmraid-events
Recommends:	dmsetup
Recommends:	dnf
Recommends:	dnfdragora-gtk
Recommends:	dvgrab
Recommends:	eog
Recommends:	evince
Recommends:	file-roller
Recommends:	folks
Recommends:	fontconfig
Recommends:	fonts-ttf-droid
Recommends:	fonts-ttf-google-noto-emoji
Recommends:	fonts-ttf-google-noto-emoji-color
Recommends:	fonts-ttf-google-noto-sans-bengali
Recommends:	fonts-ttf-google-noto-sans-devanagari
Recommends:	fonts-ttf-google-noto-sans-ethiopic
Recommends:	fonts-ttf-google-noto-sans-gujarati
Recommends:	fonts-ttf-google-noto-sans-gurmukhi
Recommends:	fonts-ttf-google-noto-sans-kaithi
Recommends:	fonts-ttf-google-noto-sans-kannada
Recommends:	fonts-ttf-google-noto-sans-khmer
Recommends:	fonts-ttf-google-noto-sans-malayalam
Recommends:	fonts-ttf-google-noto-sans-myanmar
Recommends:	fonts-ttf-google-noto-sans-oriya
Recommends:	fonts-ttf-google-noto-sans-sinhala
Recommends:	fonts-ttf-google-noto-sans-tamil
Recommends:	fonts-ttf-google-noto-sans-telugu
Recommends:	fonts-ttf-google-noto-sans-thai
Recommends:	fonts-ttf-google-noto-sans-tibetan
Recommends:	fonts-ttf-google-noto-sans-tirhuta
Recommends:	fonts-ttf-paratype
Recommends:	foomatic-db
Recommends:	fprintd-pam
# Recommends:	gcc-cpp
Recommends:	gcr
Recommends:	gedit-plugins
Recommends:	gettext
Recommends:	ghostscript-common
Recommends:	gnome-bluetooth
Recommends:	gnome-calculator
Recommends:	gnome-characters
Recommends:	gnome-clocks
Recommends:	gnome-contacts
Recommends:	gnome-control-center
Recommends:	gnome-desktop3
Recommends:	gnome-disk-utility
Recommends:	gnome-font-viewer
Recommends:	gnome-online-accounts
Recommends:	gnome-photos
Recommends:	gnome-power-manager
Recommends:	gnome-screenshot
Recommends:	gnome-session-wayland-session
Recommends:	gnome-shell-rosa-extensions
Recommends:	gnome-sound-recorder
Recommends:	gnome-system-monitor
Recommends:	gnome-terminal
Recommends:	gnome-themes-standard
Recommends:	gnome-tweak-tool
Recommends:	gnome-user-docs
Recommends:	gnome-weather
Recommends:	gparted
Recommends:	graphviz
Recommends:	gstreamer1.0-sid
Recommends:	gstreamer1.0-tools
Recommends:	gstreamer1.0-x264
Recommends:	gtk+3.0-common
Recommends:	gtk3-modules
Recommends:	gtksourceview
Recommends:	gutenprint-escputil
Recommends:	gvfs-archive
Recommends:	gvfs-fuse
Recommends:	gvfs-gphoto2
Recommends:	gvfs-smb
Recommends:	hw-probe-pyqt5-gui
Recommends:	imagemagick
Recommends:	irqbalance
Recommends:	isomd5sum
Recommends:	jasper
Recommends:	keychain
Recommends:	krb5
Recommends:	ldetect
Recommends:	lftp
Recommends:	libfprint
Recommends:	libgnomekbd-common
Recommends:	libwnck3
Recommends:	lightsoff
Recommends:	linux-firmware
Recommends:	lm_sensors
Recommends:	lsof
Recommends:	lvm2
Recommends:	mailcap
Recommends:	make
Recommends:	makedev
Recommends:	mdadm
Recommends:	menu-messages
Recommends:	mesa-demos
Recommends:	microcode_ctl
Recommends:	mlocate
Recommends:	modemmanager
Recommends:	mutter
Recommends:	nautilus-sendto
Recommends:	nautilus-share
Recommends:	netcat-openbsd
Recommends:	networkmanager-applet
Recommends:	nfs-utils
Recommends:	nmap
Recommends:	notification-daemon
Recommends:	nss
Recommends:	nss_mdns
Recommends:	nss_wins
Recommends:	openldap
Recommends:	orca
Recommends:	pciutils
Recommends:	perl-Pod-Perldoc
Recommends:	phonon-gstreamer
Recommends:	pkgconf
Recommends:	plymouth-scripts
Recommends:	poppler
Recommends:	popt-data
Recommends:	postscript-ppds
Recommends:	ppmtomd
Recommends:	printer-testpages
Recommends:	printer-utils
Recommends:	pulseaudio-esound-compat
Recommends:	pulseaudio-module-bluetooth
Recommends:	pulseaudio-module-x11
Recommends:	pulseaudio-module-zeroconf
Recommends:	pulseaudio-utils
Recommends:	qpdfview
Recommends:	qt5-platformtheme-gtk3
Recommends:	qt5-platformtheme-qgnomeplatform
Recommends:	qt5-qttranslations
Recommends:	qt6-platformtheme-qgnomeplatform
Recommends:	ralink-firmware
Recommends:	rootfiles
Recommends:	rosa-gsettings-desktop-schemas-theme
Recommends:	rosa-icons-2021-gnome
Recommends:	rosa-icons-2021-gnome-dark
Recommends:	rosa-imagewriter
Recommends:	(rosa-update-system-nopass if branding-configs-fresh else rosa-update-wheel)
Recommends:	rpm
Recommends:	rtkit
Recommends:	samba-server
Recommends:	samba-client
Recommends:	seahorse
Recommends:	simple-scan
Recommends:	sound-scripts
Recommends:	stylewriter
Recommends:	sudo
Recommends:	sushi
Recommends:	templates
Recommends:	termhelper
Recommends:	testdisk
Recommends:	time
Recommends:	usb_modeswitch-data
Recommends:	usbutils
Recommends:	userdrake
Recommends:	usermode
Recommends:	utempter
Recommends:	v4l-utils
Recommends:	vaapi-driver-intel
Recommends:	vaapi-driver-vdpau
Recommends:	vte
Recommends:	wireless-tools
Recommends:	wpa_supplicant
Recommends:	x11-driver-input-evdev
Recommends:	x11-driver-input-libinput
Recommends:	x11-driver-input-vmmouse
Recommends:	x11-driver-input-wacom
Recommends:	x11-font-bitstream-type1
Recommends:	x11-font-type1
Recommends:	x11-font-xfree86-type1
Recommends:	x11-server-xwayland
Recommends:	xdg-desktop-portal-gnome
Recommends:	xdg-user-dirs-gtk
Recommends:	xfsprogs
Recommends:	xkbcomp
Recommends:	xkill
Recommends:	xprop
Recommends:	xrandr
Recommends:	xrdb
Recommends:	xset
Recommends:	xsetroot
Recommends:	yelp
Recommends:	typelib(CoglPango)
Recommends:	typelib(Eog)

# Lost
Recommends:	%{_lib}pulseglib2_0
Suggests:	polkit-gnome

%description gnome
Task for gnome iso.

%files gnome

#----------------------------------------------------------------------------

%package gnome-var
Summary:	Variable task for gnome iso
Group:		Graphical desktop/GNOME
Release:	1.var
Recommends:	aisleriot
Recommends:	audacious-gtk
Recommends:	audacity
Recommends:	brasero
Recommends:	deluge-gtk
Recommends:	drawing
Recommends:	five-or-more
Recommends:	firefox-ru
Recommends:	four-in-a-row
Recommends:	gdm
Recommends:	gimp
Recommends:	gnome-calendar
Recommends:	gnome-chess
Recommends:	gnome-klotski
Recommends:	gnome-mahjongg
Recommends:	gnome-maps
Recommends:	gnome-mines
Recommends:	gnome-music
Recommends:	gnome-robots
Recommends:	gnome-sudoku
Recommends:	gnome-tetravex
Recommends:	iagno
Recommends:	inkscape
Recommends:	libreoffice-calc
Recommends:	libreoffice-gnome
Recommends:	libreoffice-help-ru
Recommends:	libreoffice-impress
Recommends:	libreoffice-l10n-de
Recommends:	libreoffice-l10n-en_GB
Recommends:	libreoffice-l10n-es
Recommends:	libreoffice-l10n-fr
Recommends:	libreoffice-l10n-it
Recommends:	libreoffice-l10n-pt_BR
Recommends:	libreoffice-l10n-ru
Recommends:	libreoffice-math
Recommends:	libreoffice-style-breeze
Recommends:	libreoffice-style-colibre
Recommends:	libreoffice-style-elementary
Recommends:	libreoffice-style-karasa_jaga
Recommends:	libreoffice-style-sifr
Recommends:	libreoffice-style-sukapura
Recommends:	libreoffice-writer
Recommends:	nemo-desktop-icons
Recommends:	portproton
Recommends:	rosa-media-player
Recommends:	rosa-wallpapers-2019
Recommends:	rospo-icon-theme
Recommends:	shotcut
Recommends:	tali
Recommends:	telegram-desktop
Recommends:	virtualbox-guest-additions
Recommends:	yandex-browser-install

# Lost
Recommends:	firefox

%description gnome-var
User variable task for gnome iso.

%files gnome-var

%posttrans gnome-var
if [[ -f %{_unitdir}/gdm.service ]]; then
	systemctl disable lightdm &>/dev/null
	systemctl disable sddm &>/dev/null
	systemctl disable xdm &>/dev/null
	systemctl enable gdm
fi

X11_LANGS="$(localectl status |grep "X11 Layout: " |rev |cut -d" " -f1 |rev)"
if echo $X11_LANGS |grep -q ru; then
	# Configure keyboard for tty
	localectl set-keymap ruwin_ct_sh-UTF-8
fi

# Set font for tty
sed -i 's/FONT=.*/FONT=latarcyrheb-sun16/' /etc/vconsole.conf

cat >> /usr/bin/keyboard-settings << 'EOF'
#!/bin/bash
# Save X11 langs
X11_LANGS="$(localectl status |grep "X11 Layout: " |rev |cut -d" " -f1 |rev)"
WAYLAND_LANGS="$(echo $X11_LANGS |sed "s/,/\x27), (\x27xkb\x27, \x27/" |sed "s/^/[(\x27xkb\x27, \x27/" |sed "s/$/\x27)]/")"
# Set wayland langs
gsettings set org.gnome.desktop.input-sources sources "$WAYLAND_LANGS"

# Configure keyboard switchers
gsettings set org.gnome.desktop.wm.keybindings switch-input-source "['<Super>space', '<Alt>Shift_L', '<Shift>Alt_L', '<Control>Shift_L', '<Shift>Control_L', 'XF86Keyboard']"
gsettings set org.gnome.desktop.input-sources xkb-options "['compose:caps']"

if echo $X11_LANGS |grep -q ru; then
	# Fix bug with cotrol in some apps (set en first)
	gsettings set org.gnome.desktop.input-sources sources "$(localectl status |grep "X11 Layout: " |rev |cut -d" " -f1 |rev |sed "s/\(us,\|,us$\)//" |sed "s/^/us,/" |sed "s/,/\x27), (\x27xkb\x27, \x27/" |sed "s/^/[(\x27xkb\x27, \x27/" |sed "s/$/\x27)]/")"
fi

# One shot
rm -f ~/.config/autostart/keyboard-settings.desktop
EOF
chmod +x /usr/bin/keyboard-settings
/usr/bin/keyboard-settings

mkdir -p /etc/skel/.config/autostart
cat >> /etc/skel/.config/autostart/keyboard-settings.desktop << 'EOF'
[Desktop Entry]
Type=Application
Name=Keyboard
Comment=Set keyboard to default
Exec=/usr/bin/keyboard-settings
X-GNOME-AutoRestart=true
NoDisplay=true
EOF

# Add extensions
for i in $(ls /home); do
	[ -d /home/$i/.local ] || continue
	! [ -d /home/$i/.local/share/gnome-shell/extensions ] || continue
	if [ -d %{_datadir}/gnome-shell-rosa-extensions/extensions/ ]; then
		mkdir -p /home/$i/.local/share/gnome-shell/extensions/ /home/$i/.config/dconf
		cp -rf %{_datadir}/gnome-shell-rosa-extensions/extensions /home/$i/.local/share/gnome-shell/
		if echo $X11_LANGS |grep -q ru; then
			cp -f %{_datadir}/gnome-shell-rosa-extensions/user /home/$i/.config/dconf/user
		else
			cp -f %{_datadir}/gnome-shell-rosa-extensions/user-en /home/$i/.config/dconf/user
			pushd /home/$i/.local/share/gnome-shell/extensions/
				for PATCH in $(ls /usr/share/gnome-shell-rosa-extensions |grep "hard-ru-translate.patch"); do
					patch -p0 -F3 -R </usr/share/gnome-shell-rosa-extensions/$PATCH || :
				done
			popd
		fi
		chown -R $i:$i /home/$i/.local/share/gnome-shell/extensions /home/$i/.config/dconf
	fi
done

%postun gnome-var
rm -f /usr/bin/keyboard-settings

#----------------------------------------------------------------------------

%package lxqt
Summary:	Task for LXQt iso
Group:		Graphical desktop/LXQt
Requires:	%{name}-common
Requires:	%{name}-lxqt-var
Recommends:	a52dec
Recommends:	accountsservice
Recommends:	acpi
Recommends:	adwaita-gtk2-theme
Recommends:	adwaita-gtk3-theme
Recommends:	aoss
Recommends:	aria2
Recommends:	at
Recommends:	atmel-firmware
Recommends:	autofs
Recommends:	avahi-dnsconfd
Recommends:	awesfx
Recommends:	bind-utils
Recommends:	bootloader-utils
Recommends:	busybox-static
Recommends:	canberra-gtk3
Recommends:	cdrtools
Recommends:	cjet
Recommends:	cpupower
Recommends:	cronie
Recommends:	crontabs
Recommends:	davfs2
Recommends:	dhcp-common
Recommends:	dialog
Recommends:	djvulibre
Recommends:	dmraid-events
Recommends:	dmsetup
Recommends:	dnf
Recommends:	dnfdragora-qt
Recommends:	dnf-urpm
Recommends:	dnsmasq
Recommends:	dump
Recommends:	edidbins
Recommends:	enchant
Recommends:	etcskel
Recommends:	faac
Recommends:	faad2
Recommends:	ffmpegthumbs
Recommends:	flac
Recommends:	fontconfig
Recommends:	fonts-ttf-decoratives
Recommends:	fonts-ttf-droid
Recommends:	fonts-ttf-google-noto-emoji
Recommends:	fonts-ttf-google-noto-emoji-color
Recommends:	fonts-ttf-google-noto-sans-bengali
Recommends:	fonts-ttf-google-noto-sans-devanagari
Recommends:	fonts-ttf-google-noto-sans-ethiopic
Recommends:	fonts-ttf-google-noto-sans-gujarati
Recommends:	fonts-ttf-google-noto-sans-gurmukhi
Recommends:	fonts-ttf-google-noto-sans-kaithi
Recommends:	fonts-ttf-google-noto-sans-kannada
Recommends:	fonts-ttf-google-noto-sans-khmer
Recommends:	fonts-ttf-google-noto-sans-malayalam
Recommends:	fonts-ttf-google-noto-sans-myanmar
Recommends:	fonts-ttf-google-noto-sans-oriya
Recommends:	fonts-ttf-google-noto-sans-sinhala
Recommends:	fonts-ttf-google-noto-sans-tamil
Recommends:	fonts-ttf-google-noto-sans-telugu
Recommends:	fonts-ttf-google-noto-sans-thai
Recommends:	fonts-ttf-google-noto-sans-tibetan
Recommends:	fonts-ttf-google-noto-sans-tirhuta
Recommends:	fonts-ttf-opensans
Recommends:	fonts-ttf-paratype
Recommends:	fonts-ttf-west_european
Recommends:	font-tools
Recommends:	fprintd-pam
Recommends:	fuse2
Recommends:	fuse-exfat
Recommends:	gcr
Recommends:	genhdlist2
Recommends:	geoip
Recommends:	gettext
Recommends:	ghostscript-common
Recommends:	gnupg
Recommends:	grub-customizer
Recommends:	gstreamer1.0-dts
Recommends:	gstreamer1.0-dv
Recommends:	gstreamer1.0-faac
Recommends:	gstreamer1.0-faad
Recommends:	gstreamer1.0-flac
Recommends:	gstreamer1.0-gsm
Recommends:	gstreamer1.0-libav
Recommends:	gstreamer1.0-mms
Recommends:	gstreamer1.0-mpeg2enc
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-good
Recommends:	gstreamer1.0-plugins-ugly
Recommends:	gstreamer1.0-rtmp
Recommends:	gstreamer1.0-speex
Recommends:	gstreamer1.0-tools
Recommends:	gstreamer1.0-vp8
Recommends:	gstreamer1.0-wavpack
Recommends:	gtksourceview
Recommends:	gutenprint-escputil
Recommends:	gvfs-archive
Recommends:	gvfs-fuse
Recommends:	gvfs-gphoto2
Recommends:	gvfs-smb
Recommends:	hicolor-icon-theme
Recommends:	hw-probe-pyqt5-gui
Recommends:	ibus
Recommends:	ifmetric
Recommends:	ifplugd
Recommends:	imagemagick
Recommends:	info
Recommends:	ipw2100-firmware
Recommends:	ipw2200-firmware
Recommends:	ipw3945-ucode
Recommends:	irqbalance
Recommends:	isomd5sum
Recommends:	iwlwifi-3945-ucode
Recommends:	iwlwifi-4965-ucode
Recommends:	jasper
Recommends:	keychain
Recommends:	kimageformats
Recommends:	laptop-mode-tools
Recommends:	ld10k1
Recommends:	ldetect
Recommends:	libiscsi-utils
Recommends:	libqtxdg
Recommends:	libva-utils
Recommends:	libvdpau-va-gl
Recommends:	linux-firmware
Recommends:	lm_sensors
Recommends:	lockdev
Recommends:	lshw
Recommends:	lsof
Recommends:	madwimax
Recommends:	make
Recommends:	makedev
Recommends:	mandi-ifw
Recommends:	mandriva-doc-common
Recommends:	mdadm
Recommends:	menu-messages
Recommends:	mesa-demos
Recommends:	microcode_ctl
Recommends:	ml85p
Recommends:	mlocate
Recommends:	monitor-edid
Recommends:	mpeg2dec
Recommends:	nail
Recommends:	netcat-openbsd
Recommends:	net-tools
Recommends:	networkmanager-applet
Recommends:	nfs-utils
Recommends:	nss
Recommends:	nss_mdns
Recommends:	nss_wins
Recommends:	obex-data-server
Recommends:	open
Recommends:	openldap
Recommends:	openldap-clients
Recommends:	oxygen-icon-theme
Recommends:	ozerocdoff
Recommends:	pam_krb5
Recommends:	pam_ldap
Recommends:	pango
Recommends:	partitionmanager
Recommends:	pciutils
Recommends:	pcmcia-cis-firmware
Recommends:	pcmciautils
Recommends:	perf
Recommends:	perl-CGI
Recommends:	perl-Class-ISA
Recommends:	perl-Geo-IP
Recommends:	perl-Net-DNS
Recommends:	perl-Pod-Perldoc
Recommends:	perl-Pod-Plainer
Recommends:	perl-Safe
Recommends:	perl-Term-ReadLine-Gnu
Recommends:	pkgconf
Recommends:	plymouth-scripts
Recommends:	polkit-gnome
Recommends:	poppler
Recommends:	popt-data
Recommends:	postscript-ppds
Recommends:	ppmtomd
Recommends:	ppp-pppoatm
Recommends:	preload
Recommends:	printer-testpages
Recommends:	printer-utils
Recommends:	prism54-firmware
Recommends:	pulseaudio
Recommends:	pyatspi
Recommends:	python3-ldap
Recommends:	python3-numpy
Recommends:	python3-OpenSSL
Recommends:	python3-pycrypto
Recommends:	python3-sip
Recommends:	python3-zope-interface
Recommends:	qpdfview
Recommends:	qt4-qtconfig
Recommends:	qt5-imageformats-plugins
Recommends:	qt5-qttranslations
Recommends:	qtermwidget
Recommends:	radeontool
Recommends:	rdesktop
Recommends:	rootfiles
Recommends:	rosa-icons
Recommends:	rosa-icons-2021-lxqt
Recommends:	rosa-icons-2021-lxqt-dark
%ifnarch %{ix86} 

Recommends:	rosa-update-system-nopass
%endif
Recommends:	rpm
Recommends:	rtkit
Recommends:	saned
Recommends:	sash
Recommends:	sasl-plug-gssapi
Recommends:	sharutils
Recommends:	sound-scripts
Recommends:	sound-theme-freedesktop
Recommends:	soundwrapper
Recommends:	speedtouch-firmware
Recommends:	speedtouch-firmware-extractor
Recommends:	stylewriter
Recommends:	sudo
Recommends:	taglib-extras
Recommends:	tar
Recommends:	task-lxqt
Recommends:	task-pulseaudio
Recommends:	telegram-desktop
%ifnarch %{ix86} %{e2k}
Recommends:	termhelper
%endif
Recommends:	testdisk
Recommends:	time
Recommends:	tmpwatch
Recommends:	traceroute
Recommends:	twolame
Recommends:	udisks2
Recommends:	upower
Recommends:	usb_modeswitch-data
Recommends:	usbmuxd
Recommends:	usbutils
Recommends:	userdrake
Recommends:	utempter
Recommends:	v4l-utils
Recommends:	vaapi-driver-intel
Recommends:	vaapi-driver-vdpau
Recommends:	vdpauinfo
Recommends:	vte
Recommends:	wavpack
Recommends:	whdd
Recommends:	whois
Recommends:	wireless-tools
Recommends:	wpa_supplicant
Recommends:	x11-driver-input-evdev
Recommends:	x11-driver-input-libinput
Recommends:	x11-driver-input-vmmouse
Recommends:	x11-driver-input-wacom
Recommends:	x11-font-adobe-75dpi
Recommends:	x11-font-bh-75dpi
Recommends:	x11-font-bh-lucidatypewriter-75dpi
Recommends:	x11-font-bitstream-75dpi
Recommends:	x11-font-cyrillic
Recommends:	x11-font-encodings
Recommends:	x11-server-xwayland
Recommends:	x264
Recommends:	xdg-user-dirs
Recommends:	xkbcomp
Recommends:	xmessage
Recommends:	xorg-x11
Recommends:	xprop
Recommends:	xrandr
Recommends:	xscreensaver
Recommends:	xscreensaver-gl
Recommends:	xset
Recommends:	xsetroot
Recommends:	xsm
Recommends:	xxd
Recommends:	zcip
Recommends:	zd1201-firmware
Recommends:	zd1211-firmware
Recommends:	zenity

%description lxqt
Task for LXQt iso.

%files lxqt

%transfiletriggerin -- %{_datadir}/themes/Breeze/gtk-2.0/ %{_datadir}/themes/Breeze/gtk-3.0/
# Drop when fix Breeze theme
sed -i	\
	-e "s/#efede8/#eff0f1/g"	\
	-e "s/#4a7acd/#7ab4dc/g"	\
	-e "s/#e2ebf0/#f7f7f7/g"	\
	-e "s/#141312/#000000/g"	\
	-e "s/#679dcd/#7ab4dc/g"	\
	%{_datadir}/themes/Breeze/gtk-2.0/gtkrc	\
	%{_datadir}/themes/Breeze/gtk-3.0/gtk.css

%posttrans lxqt
# Drop when fix Breeze theme
sed -i	\
	-e "s/#efede8/#eff0f1/g"	\
	-e "s/#4a7acd/#7ab4dc/g"	\
	-e "s/#e2ebf0/#f7f7f7/g"	\
	-e "s/#141312/#000000/g"	\
	-e "s/#679dcd/#7ab4dc/g"	\
	%{_datadir}/themes/Breeze/gtk-2.0/gtkrc	\
	%{_datadir}/themes/Breeze/gtk-3.0/gtk.css

#----------------------------------------------------------------------------

%package lxqt-var
Summary:	Variable task for LXQt iso
Group:		Graphical desktop/LXQt
Release:	1.var
Recommends:	audacious-plugins
Recommends:	audacious-pulse
Recommends:	audacity
%ifnarch %{ix86} %{e2k}
Recommends:	gdm-default-to-xorg
%endif
Recommends:	kamoso
Recommends:	libreoffice-calc
Recommends:	libreoffice-gnome
Recommends:	libreoffice-gtk3-kde5
Recommends:	libreoffice-l10n-de
Recommends:	libreoffice-l10n-en_GB
Recommends:	libreoffice-l10n-es
Recommends:	libreoffice-l10n-fr
Recommends:	libreoffice-l10n-it
Recommends:	libreoffice-l10n-pt_BR
Recommends:	libreoffice-l10n-ru
Recommends:	libreoffice-openclipart
Recommends:	libreoffice-style-colibre
Recommends:	libreoffice-style-elementary
Recommends:	libreoffice-style-karasa_jaga
Recommends:	libreoffice-style-sifr
Recommends:	libreoffice-style-sukapura
Recommends:	libreoffice-writer
%ifarch %{ix86} %{e2k}
Recommends:	lightdm
%endif
Recommends:	newmoon
Recommends:	qbittorrent
Recommends:	rosa-media-player
Recommends:	virtualbox-guest-additions

%description lxqt-var
User variable task for LXQt iso.

%files lxqt-var

%posttrans lxqt-var
%ifnarch %{ix86} %{e2k}
if [[ -f %{_unitdir}/gdm.service ]]; then
	systemctl disable lightdm &>/dev/null
	systemctl disable sddm &>/dev/null
	systemctl disable xdm &>/dev/null
	systemctl enable gdm
fi
%else
if [[ -f %{_unitdir}/lightdm.service ]]; then
	systemctl disable gdm &>/dev/null
	systemctl disable sddm &>/dev/null
	systemctl disable xdm &>/dev/null
	systemctl enable lightdm
	sed -i "s!^background=.*!background=/usr/share/wallpapers/ROSA-light-default.svg!" /etc/lightdm/lightdm-gtk-greeter.conf
fi
%endif

#----------------------------------------------------------------------------
%package mate
Summary:	Task for Mate iso
Group:		Graphical desktop/MATE
Requires:	%{name}-common
Requires:	%{name}-mate-var
Recommends:	firefox-de
Recommends:	firefox-es_ES
Recommends:	firefox-fr
Recommends:	firefox-it
Recommends:	firefox-pt_PT
Recommends:	firefox-ru
Recommends:	desktop-file-utils
Recommends:	dnf
Recommends:	dnfdragora-gtk
Recommends:	gsettings-desktop-schemas
Recommends:	hicolor-icon-theme
Recommends:	hw-probe
Recommends:	ima-evm-utils
Recommends:	ima-inspect
Recommends:	libiscsi-utils
Recommends:	onboard
Recommends:	passwd
Recommends:	plymouth
Recommends:	qpdfview
Recommends:	quota
Recommends:	rosa-icons-2021-mate
Recommends:	rosa-icons-2021-mate-dark
Recommends:	rosa-update-system-nopass
Recommends:	rpcbind
Recommends:	sudo
Recommends:	tar
Recommends:	task-mate
Recommends:	templates
Recommends:	termhelper
Recommends:	udisks2
Recommends:	unzip
Recommends:	xdotool

%description mate
Task for Mate iso.

%files mate

#----------------------------------------------------------------------------
%package mate-var
Summary:	Variable task for Mate iso
Group:		Graphical desktop/MATE
Release:	1.var
Recommends:	libreoffice-calc
Recommends:	libreoffice-gnome
Recommends:	libreoffice-impress
Recommends:	libreoffice-l10n-de
Recommends:	libreoffice-l10n-en_GB
Recommends:	libreoffice-l10n-es
Recommends:	libreoffice-l10n-fr
Recommends:	libreoffice-l10n-it
Recommends:	libreoffice-l10n-pt_BR
Recommends:	libreoffice-l10n-ru
Recommends:	libreoffice-math
Recommends:	libreoffice-openclipart
Recommends:	libreoffice-style-breeze
Recommends:	libreoffice-style-colibre
Recommends:	libreoffice-style-elementary
Recommends:	libreoffice-style-karasa_jaga
Recommends:	libreoffice-style-sifr
Recommends:	libreoffice-style-sukapura
Recommends:	libreoffice-writer
Recommends:	mate-user-admin
Recommends:	gdm

# Lost
Recommends:	firefox

%description mate-var
User variable task for Mate iso.

%files mate-var

%posttrans mate-var
if [[ -f %{_unitdir}/gdm.service ]]; then
	systemctl disable lightdm &>/dev/null
	systemctl disable sddm &>/dev/null
	systemctl disable xdm &>/dev/null
	systemctl enable gdm
fi

#----------------------------------------------------------------------------

%package plasma5
Summary:	Task for Plasma5 iso
Group:		Graphical desktop/KDE
Requires:	%{name}-common
Requires:	%{name}-plasma5-var
Recommends:	a52dec
Recommends:	acpi
Recommends:	adwaita-cursor-theme
Recommends:	aha
Recommends:	aoss
Recommends:	aria2
Recommends:	at
Recommends:	atk1.0-common
Recommends:	autofs
Recommends:	avahi-dnsconfd
Recommends:	bind-utils
Recommends:	bluez-hid2hci
Recommends:	bluez-qt
Recommends:	bootloader-utils
Recommends:	busybox-static
Recommends:	canberra-common
Recommends:	cdialog
Recommends:	coreutils-doc
Recommends:	cpupower
Recommends:	cronie
Recommends:	crontabs
Recommends:	cryfs
Recommends:	davfs2
Recommends:	dhcp-common
Recommends:	dmraid-events
Recommends:	dmsetup
Recommends:	dnfdragora-qt
Recommends:	dnf-urpm
Recommends:	drakx-net
Recommends:	dump
Recommends:	edidbins
Recommends:	eject
Recommends:	(audacious if branding-configs-chrome else elisa)
Recommends:	enchant
Recommends:	enchant2
Recommends:	etcskel
Recommends:	faac
Recommends:	faad2
Recommends:	filelight
Recommends:	flac
Recommends:	fonts-ttf-decoratives
Recommends:	fonts-ttf-droid
Recommends:	fonts-ttf-google-noto-emoji
Recommends:	fonts-ttf-google-noto-emoji-color
Recommends:	fonts-ttf-google-noto-sans-bengali
Recommends:	fonts-ttf-google-noto-sans-devanagari
Recommends:	fonts-ttf-google-noto-sans-ethiopic
Recommends:	fonts-ttf-google-noto-sans-gujarati
Recommends:	fonts-ttf-google-noto-sans-gurmukhi
Recommends:	fonts-ttf-google-noto-sans-kaithi
Recommends:	fonts-ttf-google-noto-sans-kannada
Recommends:	fonts-ttf-google-noto-sans-khmer
Recommends:	fonts-ttf-google-noto-sans-malayalam
Recommends:	fonts-ttf-google-noto-sans-myanmar
Recommends:	fonts-ttf-google-noto-sans-oriya
Recommends:	fonts-ttf-google-noto-sans-sinhala
Recommends:	fonts-ttf-google-noto-sans-tamil
Recommends:	fonts-ttf-google-noto-sans-telugu
Recommends:	fonts-ttf-google-noto-sans-thai
Recommends:	fonts-ttf-google-noto-sans-tibetan
Recommends:	fonts-ttf-google-noto-sans-tirhuta
Recommends:	fonts-ttf-opensans
Recommends:	fonts-ttf-paratype
Recommends:	fonts-ttf-west_european
Recommends:	font-tools
Recommends:	freetype
Recommends:	freetype-tools
Recommends:	fuse
Recommends:	fuse2
Recommends:	fuse-exfat
Recommends:	GConf2
Recommends:	qemu-guest-agent
Recommends:	genhdlist2
Recommends:	gettext
Recommends:	ghostscript-common
Recommends:	glibc-i18ndata
Recommends:	glibc_lsb
Recommends:	gnupg
Recommends:	gparted
Recommends:	groff-for-man
Recommends:	gstreamer1.0-dts
Recommends:	gstreamer1.0-dv
Recommends:	gstreamer1.0-faac
Recommends:	gstreamer1.0-faad
Recommends:	gstreamer1.0-flac
Recommends:	gstreamer1.0-gsm
Recommends:	gstreamer1.0-libav
Recommends:	gstreamer1.0-mms
Recommends:	gstreamer1.0-mpeg2enc
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-good
Recommends:	gstreamer1.0-plugins-ugly
Recommends:	gstreamer1.0-rtmp
Recommends:	gstreamer1.0-speex
Recommends:	gstreamer1.0-tools
Recommends:	gstreamer1.0-vp8
Recommends:	gstreamer1.0-wavpack
Recommends:	gtk+2.0
Recommends:	gtk+3.0
Recommends:	gvfs
Recommends:	gwenview
Recommends:	harddrake
Recommends:	hfsplus-tools
Recommends:	hfsutils
Recommends:	hw-probe-pyqt5-gui
Recommends:	ifmetric
Recommends:	ifplugd
Recommends:	imagemagick
Recommends:	indexhtml
Recommends:	info
Recommends:	info-install
Recommends:	(inkscape if branding-configs-chrome)
Recommends:	iso-codes
Recommends:	isomd5sum
Recommends:	jasper
Recommends:	kaccounts-integration
Recommends:	kaccounts-providers
Recommends:	kamoso
Recommends:	kcalc
Recommends:	kcalcore
Recommends:	kcolorchooser
Recommends:	kcron
Recommends:	kdegraphics-thumbnailers
Recommends:	kdenlive
Recommends:	kde-print-manager
Recommends:	keychain
Recommends:	(kid3-qt if branding-configs-fresh)
Recommends:	kio-fuse
Recommends:	kipi-common
Recommends:	klines
Recommends:	kmahjongg
Recommends:	kmahjongglib
Recommends:	kmines
Recommends:	knotifications
Recommends:	kolourpaint
Recommends:	kpartx
Recommends:	kpat
Recommends:	krb5
Recommends:	krb5-workstation
Recommends:	krusader
Recommends:	kxmlrpcclient
Recommends:	lame
Recommends:	lcms2
Recommends:	ld10k1
Recommends:	ldetect
Recommends:	libiscsi-utils
Recommends:	libnss-role
Recommends:	libva-utils
Recommends:	libvdpau-va-gl
Recommends:	linux-firmware
Recommends:	lm_sensors
Recommends:	lockdev
Recommends:	lshw
Recommends:	lsof
Recommends:	lvm2
Recommends:	lynx
Recommends:	mailcap
Recommends:	makedev
Recommends:	mandriva-doc-common
Recommends:	mdadm
Recommends:	menu-messages
Recommends:	mesa-demos
Recommends:	microcode_ctl
Recommends:	mkxauth
Recommends:	mlocate
Recommends:	monitor-edid
Recommends:	mpeg2dec
Recommends:	myspell-en_US
Recommends:	myspell-ru_RU
Recommends:	nail
Recommends:	netcat-openbsd
Recommends:	net-tools
Recommends:	NetworkManager-l2tp
Recommends:	nss
Recommends:	nss_mdns
Recommends:	nss_wins
Recommends:	okular
Recommends:	open
Recommends:	openl2tp
Recommends:	openldap
Recommends:	openldap-clients
Recommends:	pam_krb5
Recommends:	pam_ldap
Recommends:	pam_pwquality
Recommends:	pango
Recommends:	pciutils
Recommends:	perf
Recommends:	perl-Authen-PAM
Recommends:	perl-Authen-SASL
Recommends:	perl-CGI
Recommends:	perl-Class-ISA
Recommends:	perl-Geo-IP
Recommends:	perl-Net-DNS
Recommends:	perl-Pod-Perldoc
Recommends:	perl-Pod-Plainer
Recommends:	perl-Safe
Recommends:	perl-Term-ReadLine-Gnu
Recommends:	pkgconfig
Recommends:	plasma5-applet-mediacontroller
Recommends:	plasma5-applet-milou
Recommends:	plasma5-ark
Recommends:	plasma5-calendar-holidays
Recommends:	plasma5-color-scheme-breeze
Recommends:	plasma5-color-scheme-breeze-high-contrast
Recommends:	plasma5-config-fresh
Recommends:	plasma5-config-plasma-fresh
Recommends:	plasma5-dolphin
Recommends:	plasma5-kdenetwork-filesharing
Recommends:	plasma5-kget
Recommends:	plasma5-konsole
Recommends:	plasma5-kwrite
Recommends:	plasma5-systemmonitor
Recommends:	plasma5-vault
Recommends:	plasma5-workspace-wayland
Recommends:	plymouth-scripts
Recommends:	poppler
Recommends:	popt-data
Recommends:	ppp-pppoatm
Recommends:	python2
Recommends:	python3-cairo
Recommends:	python3-ldap
Recommends:	python3-notify
Recommends:	python3-numpy
Recommends:	python3-OpenSSL
Recommends:	python3-pycrypto
Recommends:	python3-pycryptodomex
Recommends:	python3-pyxdg
Recommends:	python3-qt5-gui
Recommends:	python3-qt5-multimedia
Recommends:	python3-qt5-multimediawidgets
Recommends:	python3-qt5-qml
Recommends:	python3-qt5-widgets
Recommends:	python3-sip
Recommends:	python3-zope-interface
Recommends:	(qbittorrent if branding-configs-fresh)
Recommends:	qphotorec
Recommends:	qt5-style-breeze
Recommends:	quota
Recommends:	radeontool
Recommends:	ralink-firmware
Recommends:	rdesktop
Recommends:	reiserfsprogs
Recommends:	rfkill
Recommends:	rootfiles
Recommends:	rosa-imagewriter
Recommends:	rosa-gdm-in-plasma5
Recommends:	(rosa-update-system-nopass if branding-configs-fresh else rosa-update-system-wheel)
Recommends:	rosa-wallpapers-2021
Recommends:	rpm
Recommends:	rtkit
Recommends:	samba-client
Recommends:	samba-server
Recommends:	saned
Recommends:	sash
Recommends:	sasl-plug-gssapi
Recommends:	sdparm
Recommends:	sharutils
Recommends:	simple-scan
Recommends:	smplayer
Recommends:	sound-scripts
Recommends:	soundwrapper
Recommends:	spectacle
Recommends:	sudo
Recommends:	sddm
Recommends:	sysvinit-tools
Recommends:	taglib-extras
Recommends:	task-plasma5
Recommends:	termhelper
Recommends:	testdisk
Recommends:	time
Recommends:	tmpwatch
Recommends:	traceroute
Recommends:	twolame
Recommends:	udisks2
Recommends:	upower
Recommends:	usb_modeswitch-data
Recommends:	usbmuxd
Recommends:	usbutils
Recommends:	userdrake
Recommends:	usermode
Recommends:	utempter
Recommends:	v4l-utils
Recommends:	vaapi-driver-intel
Recommends:	vaapi-driver-vdpau
Recommends:	vdpauinfo
Recommends:	vnstat
Recommends:	vte
Recommends:	wavpack
Recommends:	wget
Recommends:	whois
Recommends:	wireless-tools
Recommends:	virtualbox-guest-additions
Recommends:	wpa_supplicant
Recommends:	x11-driver-input-evdev
Recommends:	x11-driver-input-libinput
Recommends:	x11-font-adobe-75dpi
Recommends:	x11-font-bh-75dpi
Recommends:	x11-font-bh-lucidatypewriter-75dpi
Recommends:	x11-font-bitstream-75dpi
Recommends:	x11-font-cyrillic
Recommends:	x11-font-encodings
Recommends:	x11-server-xwayland
Recommends:	x264
Recommends:	x265
Recommends:	xclock
Recommends:	xconsole
Recommends:	xdg-utils
Recommends:	xkbcomp
Recommends:	xmessage
Recommends:	xorg-x11
Recommends:	xrandr
Recommends:	xrefresh
Recommends:	xsetmode
Recommends:	xsetpointer
Recommends:	xsettingsd
Recommends:	xsm
Recommends:	xterm
Recommends:	youtube-dl
Recommends:	zcip
Recommends:	zenity
Recommends:	zip

# Lost
Recommends:	%{_lib}qt5gui5-eglfs
Recommends:	%{_lib}qt5gui5-minimalegl
Recommends:	%{_lib}qt5pdfwidgets5

%description plasma5
Task for Plasma5 iso.

%files plasma5

#----------------------------------------------------------------------------

%package plasma5-var
Summary:	Variable task for Plasma5 iso
Group:		Graphical desktop/KDE
Release:	1.var
Recommends:	audacity
Recommends:	chromium-browser-stable
Recommends:	gdm-default-to-xorg
Recommends:	gimp
Recommends:	libreoffice-calc
Recommends:	libreoffice-impress
Recommends:	libreoffice-kde5
Recommends:	libreoffice-l10n-ru
Recommends:	libreoffice-math
Recommends:	libreoffice-writer
Recommends:	yandex-browser-repo-install
Recommends:	telegram-desktop

%description plasma5-var
User variable task for Plasma5 iso.

%files plasma5-var

%posttrans plasma5-var
if [[ -f %{_unitdir}/gdm.service ]]; then
	systemctl disable lightdm &>/dev/null
	systemctl disable sddm &>/dev/null
	systemctl disable xdm &>/dev/null
	systemctl enable gdm
fi

# default session
if [ -f /etc/sddm.conf ]; then
	sed -i 's/^Current=/Current=breeze/' /etc/sddm.conf
	sed -i 's/^CursorTheme=/CursorTheme=breeze_cursors/' /etc/sddm.conf
fi



#----------------------------------------------------------------------------

%package xfce
Summary:	Task for XFCE iso
Group:		Graphical desktop/Xfce
Recommends:	%{name}-common
Recommends:	rosa-update-system-nopass
Recommends:	termhelper
Requires:	gdm
Requires:	task-x11
# XXX change to Requires in minimal after moving XFCE from main to contrib
Recommends:	task-xfce-minimal
Recommends:	task-xfce


%description xfce
Task for XFCE iso.

%files xfce

%posttrans xfce
if [[ -f %{_unitdir}/gdm.service ]]; then
	systemctl disable lightdm &>/dev/null
	systemctl disable sddm &>/dev/null
	systemctl disable xdm &>/dev/null
	systemctl enable gdm
fi

#----------------------------------------------------------------------------

%package icewm
Summary:	Task for Icewm iso
Group:		Graphical desktop/Icewm
Recommends:	%{name}-common
Requires:	gdm
Recommends:	task-x11
Recommends:	icewm
Recommends:	icewm-i18n
Recommends:	pcmanfm
Recommends:	gxkb
Recommends:	hplip-gui
Recommends:	numlock
Recommends:	networkmanager-applet
Recommends:	gparted
Recommends:	picom
Recommends:	icewm-config-rosa
Recommends:	rosa-update-system-nopass
Recommends:	sane-frontends
Recommends:	seahorse
Recommends:	system-config-printer
Recommends:	termhelper
Recommends:	xsane
Recommends:	xscreensaver

%description icewm
Task for Icewm iso.

%files icewm

%posttrans icewm
if [[ -f %{_unitdir}/gdm.service ]]; then
	systemctl disable lightdm &>/dev/null
	systemctl disable sddm &>/dev/null
	systemctl disable xdm &>/dev/null
	systemctl enable gdm
fi

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17508 |21mr|task-kernel-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Meta package to install and update Linux kernel
Name:		task-kernel
Version:	0.5
Release:	1
License:	GPLv3
Group:		System/Kernel and hardware
Url:		https://abf.io/import/task-kernel

# Be ok with any kernel, but prefer 6.1 if another is not explicitly installed
Requires:	meta(kernel)
Suggests:	meta(kernel) = 6.6

# Force dnf to keep multiple (default 3) versions of this
# empty meta package installed. If we decide to migrate users from
# e.g. kernel 5.10 to 5.20, this will allow to:
# 1) recommends a new kernel;
# 2) keep older one installed and do not orphan it,
#    because the version of the meta package which pulled it will
#    be kep installed.
# Obsoletes can be used to force removal of installonlypkgs (?).
Provides: installonlypkg(kernel) = %{EVRD}.meta

%define _description \
Meta package to install and update Linux kernel.\
\
It may be needed to add additional binary kernel modules\
or even migrate users to a new mahor kernel version inside\
the release cycle of a ROSA platform. This meta package\
allows to centrally control which kernel packages\
are recommended (but not forced!) to be installed.\
\
Usage of installonlypkg() here allows to keep multiple\
version of this meta package installed and not remove an\
older major kernel version as an orphan if we decide to\
migrate to a newer one\
(see dnf options installonlypkgs and installonly_limit).\
\
%{nil}

%description
%_description

%files
# empty files, keep empty to allow coninstalling multiple versions

#-----------------------------------------------------------

%package 5.10-generic
Summary:	Meta package for Linux kernel 5.10
# a dummy provide used in the main package
Provides:	meta(kernel) = 5.10
# installonlypkg() is NOT needed this for this subpackage!
# Requires make more sense than Recommends here
Requires:	kernel-5.10-generic
# More binary kmods for different WiFis etc will be added here
Recommends:	kernel-module-8821ce-5.10-generic
Recommends:	kernel-module-8821cu-5.10-generic
Recommends:	kernel-module-88x2bu-5.10-generic
Recommends:	kernel-module-8812au-5.10-generic
Recommends:	kernel-module-8821au-5.10-generic
Recommends:	kernel-module-8814au-5.10-generic
Recommends:	kernel-module-rtk_btusb-5.10-generic
Recommends:	kernel-module-wl-5.10-generic
Recommends:	kernel-modules-rtw88-5.10-generic
Recommends:	kernel-modules-rtw89-5.10-generic

%description 5.10-generic
%_description
This meta package pulls Linux kernel v5.10.

%files 5.10-generic
# empty

#-----------------------------------------------------------

%package 5.15-generic
Summary:	Meta package for Linux kernel 5.15
# a dummy provide used in the main package
Provides:	meta(kernel) = 5.15
# installonlypkg() is NOT needed this for this subpackage!
# Requires make more sense than Recommends here
Requires:	kernel-5.15-generic
# More binary kmods for different WiFis etc will be added here
Recommends:	kernel-module-8821ce-5.15-generic
Recommends:	kernel-module-8821cu-5.15-generic
Recommends:	kernel-module-88x2bu-5.15-generic
Recommends:	kernel-module-8812au-5.15-generic
Recommends:	kernel-module-8821au-5.15-generic
Recommends:	kernel-module-8814au-5.15-generic
Recommends:	kernel-module-rtk_btusb-5.15-generic
Recommends:	kernel-module-8723au-5.15-generic
Recommends:	kernel-module-8188gu-5.15-generic
Recommends:	kernel-module-8723bu-5.15-generic
Recommends:	kernel-module-8723ds-5.15-generic
Recommends:	kernel-module-8723du-5.15-generic
Recommends:	kernel-module-8852au-5.15-generic
Recommends:	kernel-module-8192au-5.15-generic
Recommends:	kernel-module-8192du-5.15-generic
Recommends:	kernel-module-wl-5.15-generic
Recommends:	kernel-modules-rtw88-5.15-generic
Recommends:	kernel-modules-rtw89-5.15-generic

%description 5.15-generic
%_description
This meta package pulls Linux kernel v5.15.

%files 5.15-generic
# empty

#-----------------------------------------------------------

%package 6.1-generic
Summary:	Meta package for Linux kernel 6.1
# a dummy provide used in the main package
Provides:	meta(kernel) = 6.1
# installonlypkg() is NOT needed this for this subpackage!
# Requires make more sense than Recommends here
Requires:	kernel-6.1-generic
Recommends:	kernel-module-8188gu-6.1-generic
Recommends:	kernel-module-8192du-6.1-generic
Recommends:	kernel-module-8723du-6.1-generic
Recommends:	kernel-module-8812au-6.1-generic
Recommends:	kernel-module-8814au-6.1-generic
Recommends:	kernel-module-8821au-6.1-generic
Recommends:	kernel-module-8821cu-6.1-generic
Recommends:	kernel-module-8852au-6.1-generic
Recommends:	kernel-module-88x2bu-6.1-generic
# Kernel is patched: support of devices supported by r8168
# is removed from in-kernel r8169. Do not install r8168
# on kernels without such patch without blacklisting r8169.
Recommends:	kernel-module-r8168-6.1-generic
Recommends:	kernel-module-rtk_btusb-6.1-generic
Recommends:	kernel-module-wl-6.1-generic
Recommends:	kernel-modules-rtw89-6.1-generic

%description 6.1-generic
%_description
This meta package pulls Linux kernel v6.1.

%files 6.1-generic
# empty

#-----------------------------------------------------------

%package 6.6-generic
Summary:	Meta package for Linux kernel 6.6
# a dummy provide used in the main package
Provides:	meta(kernel) = 6.6
# installonlypkg() is NOT needed this for this subpackage!
# Requires make more sense than Recommends here
Requires:	kernel-6.6-generic
Recommends:	kernel-module-8188gu-6.6-generic
Recommends:	kernel-module-8192du-6.6-generic
Recommends:	kernel-module-8812au-6.6-generic
Recommends:	kernel-module-8814au-6.6-generic
Recommends:	kernel-module-8821au-6.6-generic
Recommends:	kernel-module-8821cu-6.6-generic
Recommends:	kernel-module-8852au-6.6-generic
Recommends:	kernel-module-8852bu-6.6-generic
Recommends:	kernel-module-88x2bu-6.6-generic
# Kernel is patched: support of devices supported by r8168
# is removed from in-kernel r8169. Do not install r8168
# on kernels without such patch without blacklisting r8169.
Recommends:	kernel-module-r8168-6.6-generic
Recommends:	kernel-module-rtk_btusb-6.6-generic
Recommends:	kernel-module-wl-6.6-generic

%description 6.6-generic
%_description
This meta package pulls Linux kernel v6.6.

%files 6.6-generic
# empty

#-----------------------------------------------------------

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17509 |21mr|task-lxqt-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for the LXQt (LXDE-Qt) desktop environment
Name:		task-lxqt
Version:	1.4.0
Release:	1
License:	LGPLv2.1+
Group:		Graphical desktop/LXQt
Url:		https://abf.io
# lxqt-image
Requires:	lximage-qt >= %{version}
Requires:	lxqt-about >= %{version}
Requires:	lxqt-admin >= %{version}
Requires:	lxqt-config >= %{version}
Requires:	lxqt-globalkeys >= %{version}
Requires:	lxqt-notificationd >= %{version}
Requires:	lxqt-openssh-askpass >= %{version}
Requires:	lxqt-panel >= %{version}
Requires:	lxqt-policykit >= %{version}
Requires:	lxqt-powermanagement >= %{version}
Requires:	lxqt-runner >= %{version}
Requires:	lxqt-session >= %{version}
Requires:	lxqt-sudo >= %{version}
Requires:	lxqt-themes
Requires:	obconf-qt
Requires:	openbox
Requires:	pavucontrol-qt >= %{version}
Requires:	pcmanfm-qt >= %{version}
Requires:	qt5-platformtheme-lxqt >= %{version} 
Requires:	qps
Requires:	qterminal >= %{version}
Recommends:	easypaint
Recommends:	feathernotes
Recommends:	featherpad
Recommends:	lftp
Recommends:	lxqt-archiver
Recommends:	net_monitor
Recommends:	nomacs
Recommends:	picom
Recommends:	qlipper
Recommends:	rosa-imagewriter
Recommends:	speedcrunch
Recommends:	trojita
BuildArch:	noarch

%description
This package is a meta-package, meaning that its purpose is to contain
all LXQt applications and libraries.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17510 |21mr|task-obsoletes-2016.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage to make Rosa releases upgrade smooth
Name:		task-obsoletes
Version:	2016.1
Release:	3
License:	GPLv2+
Group:		System/Base
Obsoletes:	akonadi-kde < 3:16.08
Obsoletes:	kdepim4-core < 3:16.08
Obsoletes:	kdepim4-kresources < 3:16.08
Obsoletes:	ksendemail < 3:16.08
BuildArch:	noarch

%description
Metapackage to make Rosa releases upgrade smooth.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17511 |21mr|task-plasma5-17-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for Plasma 5
Name:		task-plasma5
Version:	17
Release:	5
License:	GPLv2+
Group:		Graphical desktop/KDE
Requires:	task-plasma5-minimal
Recommends:	keditbookmarks
Recommends:	kwallet-pam
Recommends:	okular
Recommends:	purpose
Recommends: (gdm or sddm or lightdm)
#Requires:	sddm-kcm
Recommends:	(sddm-theme-breeze if sddm)
BuildArch:	noarch

%description
This package is a meta-package, meaning that its purpose is to contain
the complete dependencies for running the Plasma 5 desktop.

%files

#----------------------------------------------------------------------------

%package minimal
Summary:	Minimal dependencies needed for Plasma 5
Group:		Graphical desktop/KDE
Provides:	task-plasma-minimal = %{EVRD}
# Basic
Requires:	dbus-x11
Requires:	phonon4qt5-backend
Recommends:	readahead
Recommends:	task-x11
# Plasma 5
Requires:	breeze
Requires:	gobject-introspection
Recommends:	gwenview
Recommends:	(flatpak-kcm if flatpak)
Requires:	frameworkintegration
Requires:	kde-cli-tools
Requires:	kdialog
Recommends:	kfind
Requires:	kinit
Recommends:	kscreenlocker
Recommends:	kshutdown
Recommends:	kio-admin
Recommends:	ksshaskpass
Requires:	kdesignerplugin
Recommends:	%{_lib}dri-drivers
Recommends:	%{_lib}atk-gir1.0
Recommends:	%{_lib}gdk_pixbuf-gir2.0
Recommends:	%{_lib}gdk_pixbuf_xlib2.0_0
Requires:	kwrited
Recommends:	oxygen-sounds
Recommends:	plasma5-ark
Requires:	plasma5-baloo
# prefere -fresh over other variants
Requires:	plasma5-config
Suggests:	plasma5-config-fresh
Requires:	plasma5-config-plasma
Suggests:	plasma5-config-plasma-fresh
Requires:	plasma5-decoration-aurorae
Requires:	plasma5-desktop
Recommends:	plasma5-dolphin
Requires:	plasma5-kde-gtk-config
Requires:	plasma5-kdeplasma-addons
Recommends:	plasma5-kgamma
Requires:	plasma5-khotkeys
Requires:	plasma5-kinfocenter
Recommends:	plasma5-kio-extras
Requires:	plasma5-kmenuedit
Recommends:	plasma5-konsole
Requires:	plasma5-kscreen
Recommends:	plasma5-kwalletmanager
Requires:	plasma5-kwin
Recommends:	plasma5-kwrite
Recommends:	(plasma5-nm if networkmanager)
Requires:	plasma5-powerdevil
Recommends:	(plasma5-pulseaudio if pulseaudio)
Requires:	plasma5-systemsettings
Requires:	plasma5-systemmonitor
Requires:	plasma5-workspace
Recommends:	plasma5-applet-binaryclock
Recommends:	plasma5-applet-bluetooth
Recommends:	plasma5-applet-kickerdash
Recommends:	plasma5-applet-notes
Recommends:	plasma5-applet-weather
Recommends:	plasma5-bluedevil
Recommends:	plasma5-ffmpegthumbs
Recommends:	plasma5-kamera
Recommends:	plasma5-kdenetwork-filesharing
Recommends:	plasma5-kcm-drakauth
Recommends:	plasma5-kcm-drakxservices
Recommends:	plasma5-kcm-harddrake
Recommends:	plasma5-kcm-userdrake
Recommends:	qt5-imageformats-plugins
Recommends:	qt5-qtgraphicaleffects-qml
Recommends:	qt5-qtquickcontrols-qml
Recommends:	qt5-qtquickcontrols2-qml
Recommends:	qt5-qttranslations
Recommends:	qt5-platformtheme-plasma5
Recommends:	kimageformats
Recommends:	adwaita-gtk2-theme
Recommends:	adwaita-gtk3-theme
Recommends:	kcalc
Recommends:	partitionmanager
Recommends:	spectacle
Recommends:	udisks2

%description minimal
This package is a meta-package, meaning that its purpose is to contain
minimal dependencies for running a minimal Plama 5 desktop environment.


%files minimal

#----------------------------------------------------------------------------

%package    mobile-minimal
Summary:	Minimal set of packages for Plasma Mobile
Group:		Graphical desktop/KDE
# Basic
Requires:	pinentry-qt5
Requires:	libproxy-kde
Requires:	libproxy-networkmanager
# Plasma 5
Requires:	breeze
Requires:	breeze-icon-theme
Requires:	oxygen-sounds
Requires:	frameworkintegration
Requires:	kde-cli-tools
Requires:	kinit
Requires:	kded
Requires:	kdeclarative
Requires:	plasma5-pulseaudio
Requires:	qt5-platformtheme-plasma5
Requires:	qt5-qtfeedback
Requires:	plasma5-desktop
Requires:	plasma-framework
#Requires:	plasma5-mobile-config
#Requires:	plasma-phone-settings
Requires:	plasma5-workspace
Requires:	kservice
Requires:	ksshaskpass
Requires:	plasma5-kwalletmanager
Requires:	phonon4qt5-backend
Requires:	qmlkonsole
Requires:	plasma5-nm-mobile
Requires:	plasma5-powerdevil
Requires:	solid
Requires:	polkit-kde-agent-1-kf5
Requires:	xdg-desktop-portal-kde
Requires:	milou
Requires:	kconfig
Requires:	plasma5-kwin
Requires:	plasma5-mobile
Requires:	kweather
Requires:	kclock
Requires:	angelfish
Requires:	plasma-settings
Requires:	qt5-qtvirtualkeyboard
Requires:	qt5-wayland-client
Requires:	qt5-wayland-compositor
#Recommends:	task-pulseaudio

%description    mobile-minimal
This package is a meta-package, meaning that its purpose is to contain
a minimal version of the mobile version of the Plama 5 desktop environment.


%files      mobile-minimal
#----------------------------------------------------------------------------

%package    mobile
Summary:	Packages for Plasma Mobile
Group:		Graphical desktop/KDE
Provides:   task-plasma-mobile = %{EVRD}
# Basic
Requires:	task-plasma5-mobile-minimal
Requires:	alligator
Requires:	spacebar
Requires:	maui-pix
Requires:	kaidan
Requires:	calindori
Requires:	keysmith
Requires:	kalk
Requires:	plasma-phonebook
Recommends:	megapixels
Recommends:	plasmatube
Requires:	index-fm
Requires:	qmlkonsole
Requires:	buho
Requires:	plasma5-kscreen
Requires:	plasma5-pulseaudio
Requires:	vvave
Requires:	koko
Requires:	nota
Requires:	station
Requires:	communicator
Requires:	itinerary
Requires:	clip

%description mobile
This package is a meta-package, meaning that its purpose is to contain
the mobile version of the Plasma 5 desktop environment.

%files mobile
#----------------------------------------------------------------------------

%prep

%build

%install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17512 |21mr|task-printing-2021.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# First, high-level tasks. Then, manufacturer-level tasks

Summary:	Meta package for printing
Name:		task-printing
Version:	%{rosa_release}
Release:	16
License:	GPL
Group:		System/Printing
Url:		http://www.rosalinux.ru
# <mrl> Due to sane-hpaio and to avoid rebuilding sane now (2008rc2)
#BuildArch:  noarch

Recommends:	task-printing-minimal    = %{EVRD}
Recommends:	task-printing-canon      = %{EVRD}
Recommends:	task-printing-epson      = %{EVRD}
Recommends:	task-printing-hp         = %{EVRD}
Recommends:	task-printing-lexmark    = %{EVRD}
Recommends:	task-printing-misc       = %{EVRD}
Recommends:	task-printing-oki        = %{EVRD}
Recommends:	task-printing-server     = %{EVRD}
# GUI + tray applet
Recommends:	(system-config-printer if task-x11)

%description
This task package contains the full selection of printing and
scanning packages used in ROSA.

%files


%package -n task-printing-minimal
Group:          System/Printing
Summary:        Task package for printing (minimal)
Recommends:       imagemagick
Recommends:       ipp-usb
Recommends:       cups
Recommends:       cups-drivers
Recommends:       cups-common
Recommends:       cups-filters
Recommends:       foomatic-db
Recommends:       foomatic-db-engine
Recommends:       foomatic-filters
Recommends:       ghostscript
Recommends:       groff
Recommends:       gutenprint-cups
Recommends:       gutenprint-escputil
Recommends:       lesstif
Recommends:       mpage
Recommends:       netcat
Recommends:       net-tools
Recommends:       nmap
Recommends:       postscript-ppds
Recommends:       printer-filters
Recommends:       printer-testpages
Recommends:       printer-utils

%description -n task-printing-minimal
This task package contains the minimal selection of printing packages
used in ROSA.

%files -n task-printing-minimal

#-------------------------------------------------------------------------------

%package -n task-printing-server
Summary:	Meta package for a full CUPS server
Group:		System/Printing
Recommends:	cups
Recommends:	ghostscript
Recommends:	printer-tools
Recommends:	foomatic-db-nonfree
Recommends:	foomatic-db-engine
Recommends:	foomatic-filters

%description -n task-printing-server
This meta package will install every package needed for a full
CUPS server, including some utilities.

%files -n task-printing-server

################################################################################
############### Manufacturer specific tasks sits bellow this ###################
################################################################################

%package -n task-printing-canon
Summary:	Meta package for Cannon printer drivers
Group:		System/Printing
Recommends:	task-printing-server	= %{EVRD}

# The drivers
Recommends:	cjet
Recommends:	ghostscript
Recommends:	gutenprint-cups
Recommends:	hplip-hpijs
Recommends:	cups-drivers-lbp660
Recommends:	cups-drivers-carps
Recommends:	cups-drivers-capt
Recommends:	cups-drivers-captdriver

%description -n task-printing-canon
This meta package will install every printer driver available for Cannon
printers.

If you have a printer of this kind installing this package is all you need to
get it working.

%files -n task-printing-canon

#-------------------------------------------------------------------------------

%package -n task-printing-epson
Summary:	Meta package for printer drivers for Epson
Group:		System/Printing
Recommends:	task-printing-server	= %{EVRD}

# The drivers
Recommends:	ghostscript
Recommends:	gutenprint-cups
Recommends:	hplip-hpijs

# Some utils
Recommends:	gutenprint-escputil
Recommends:	printer-tools

%description -n task-printing-epson
This meta package will install every printer driver available for printers from
Epson.

If you have a printer of this kind installing this package is all you need to
get it working.

%files -n task-printing-epson

#-------------------------------------------------------------------------------

%package -n task-printing-hp
Summary: Meta package for printer drivers for HP
Group: System/Printing
Recommends: task-printing-server	= %{EVRD}

# The drivers
Recommends:	ghostscript
Recommends:	gutenprint-cups
Recommends:	cups-drivers-foo2zjs
Recommends:	hplip
# try to avoid pulling GUI stuff on printing servers
Recommends:	(hplip-gui if task-x11)
Recommends:	pnm2ppa

%description -n task-printing-hp
This meta package will install every printer driver available for printers from
HP.

If you have a printer of this kind installing this package is all you need to
get it working.

%files -n task-printing-hp

#-------------------------------------------------------------------------------

%package -n task-printing-lexmark
Summary: Meta package for printer drivers for Lexmark
Group: System/Printing
Recommends: task-printing-server = %{EVRD}

# The drivers
Recommends:	c2050
Recommends:	c2070
Recommends:	drv_z42
Recommends:	ghostscript
Recommends:	gutenprint-cups
Recommends:	hplip-hpijs
Recommends:	lexmark2070
Recommends:	lexmark7000linux
Recommends:	cups-drivers-lxx74
Recommends:	lm1100
Recommends:	cups-drivers-lz11
Recommends:	pbm2l2030

# Some lex utils
Recommends:	printer-tools

%description -n task-printing-lexmark
This meta package will install every printer driver available for printers from
Lexmark.

If you have a printer of this kind installing this package is all you need to
get it working.

%files -n task-printing-lexmark

#-------------------------------------------------------------------------------

%package -n task-printing-misc
Summary:	Meta package for printer drivers for miscelaneous printers
Group:		System/Printing
Recommends:	task-printing-server	= %{EVRD}

# The drivers
Recommends:	drv_z42
Recommends:	cups-drivers-foo2zjs
# Samsung Printer Language, e.g. SCX-3400
Recommends:	cups-drivers-splix
# Konica Minolta
Recommends:	cups-drivers-magicolor2430dl
Recommends:	cups-drivers-magicolor2530dl
Recommends:	cups-drivers-magicolor5430dl
Recommends:	cups-drivers-magicolor5440dl
Recommends:	cups-drivers-m2300w
# Brother
Recommends:	printer-driver-brlaser
# Kyocera
Recommends:	cups-drivers-foo2kyo
Recommends:	rastertokpsl-re
# Ricoh Aficio SP 1000S, 1100S, Xerox Phaser 3100MFP
Recommends:	printer-driver-rastertosag-gdi
# Ricoh Aficio SP 100, SP 112, SP 202SN, SP 204
Recommends:	printer-driver-pstoricohddst-gdi
Recommends:	ghostscript
Recommends:	hplip-hpijs
Recommends:	stylewriter
Recommends:	ml85p
Recommends:	ppmtomd

%description -n task-printing-misc
This meta package will install every printer driver available for printers from
miscelaneous manufacturers.

This package should cover printers from:
Alps, Anitech, Apollo, Apple, Avery, Brother, Citizen, Citoh, Compaq, Dec,
Dell, Dymo, Fujitsu, IBM, Imagen, Infotec, Kodak, Kyocera, Minolta, Mitsubishi,
Nec, Oce, Olivetti, Panasonic, Pcpi, Pentax, QMS, Ricoh, Samsung, Star,
Tektronix and Xerox.

%files -n task-printing-misc

#-------------------------------------------------------------------------------

%package -n task-printing-oki
Summary:	Meta package for printer drivers for Okidata
Group:		System/Printing
Recommends:	task-printing-server	= %{EVRD}
%rename task-printing-okidata

# The drivers
Recommends:	ghostscript
Recommends:	hplip-hpijs
Recommends:	oki4linux
Recommends:	ppmtomd
Recommends:	printer-driver-oki

%description -n task-printing-oki
This meta package will install every printer driver available for printers from
Okidata.

If you have a printer of this kind installing this package is all you need to
get it working.

%files -n task-printing-oki

#-------------------------------------------------------------------------------

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17513 |21mr|task-pulseaudio-2021.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Metapackage for PulseAudio
Name:		task-pulseaudio
Version:	2021.1
Release:	1
Group:		Sound
License:	GPLv2+
#
Requires:	paprefs
Requires:	pulseaudio
Requires:	pulseaudio-module-bluetooth
Requires:	pulseaudio-module-x11
Requires:	pulseaudio-utils
#
Recommends:	alsa-plugins-pulseaudio
Recommends:	gstreamer1.0-pulse
BuildArch:	noarch

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies and recommended additions for running PulseAudio.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17514 |21mr|task-scanning-2021.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:    task-scanning
Version: %{rosa_release}
Release: 11
Summary: Metapackage for scanning
Group:   Graphics
License: GPL

Recommends: scanner-gui
# Multiple packages (xsane, simple-scan, scanlite etc.) should provide scanner-gui
# but dnf must be able to choose something among alternatives when none of them are installed
Suggests: xsane
Recommends: sane-frontends
# non-free
Recommends: sane-firmware
# network scanning host, not needed in most cases
#Recommends: saned
Recommends: sane-backends-hpaio
Recommends: sane-backends-iscan
Recommends: sane-backends
# This is sane-backends, but make sure that they do exist if moved to another package (e.g. sane-utils)
Recommends: %{_bindir}/sane-find-scanner
Recommends: %{_bindir}/scanimage
#Recommends: %{_sysconfdir}/sane.d
Recommends: %{_libdir}/sane
# WSD and MDNS (Avahi, Bonjour) discovery
Recommends: sane-airscan
# SANE driver for Epson scanners
Recommends: epsonscan2-sane
# TODO: add IPP-over-USB as in README.md of sane-airscan

BuildArch: noarch

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies and recommended additions for scanning.

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17515 |21mr|task-smartcards-3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Meta package to install what is required for USB tokens and smartcards
Name:		task-smartcards
Version:	3
Release:	1
License:	MIT
Group:		System/Configuration/Hardware
Url:		https://abf.io/import/task-smartcards
Source0:	tokenlogin.sysusers.conf
BuildArch:	noarch
BuildRequires:	systemd-units

Requires:	pcsc-lite
Recommends:	ccid
Recommends:	opensc
Recommends:	engine_pkcs11
# dnf rq --file '/usr/lib64/pcsc/drivers/*'
Recommends:	acr38u
# Driver for Rutoken S, all other Rutokens are supported by ccid
Recommends:	rutokens-driver
# 410 is for serial devices, default config file makes pcscd try to
# work with /dev/ttyS0, but it may be a different device;
# as such devices are very old, better not include this package by default
# acr38u and ifd-gempc430 are more modern USB devices
#Recommends:	ifd-gempc410
Recommends:	ifd-gempc430
# in contrib, it is for very old serial devices (1998-2001)
#Recommends:	towitoko-linux
# from contrib, contains a strange udev rule
#Recommends:	acsccid

Requires(post):	/bin/systemd-sysusers

%description
Meta package to install what is required for USB tokens and smartcards.

If you have serial devices, also have a look at the following packages:
* ifd-gempc410
* towitoko-linux
* acsccid

%files
%{_sysusersdir}/tokenlogin.conf

%post
%sysusers_create tokenlogin.conf

#------------------------------------------------------------------

%install
mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE0} %{buildroot}%{_sysusersdir}/tokenlogin.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17516 |21mr|task-x11-2021.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:	 task-x11
Version: %{rosa_release}
Release: 6
Summary: Metapackage for X.org X11
Group:	 System/X11
License: GPL

# rpm4+dnf+file coloring allow to install both
# task-x11.x86_64 and task-x11.i686 in one x86_64 system;
# the idea of %%_isa here is to make task-x11.i686 pull
# i686 deps and task-x11.x86_64 - pull x86_64 deps

#
Recommends: dbus-x11%{_isa}
Recommends: xauth%{_isa}
Recommends: iceauth%{_isa}
Recommends: rgb%{_isa}
Recommends: x11-data-cursor-themes
Recommends: xinput%{_isa}
Recommends: xhost%{_isa}
Recommends: xrandr%{_isa}
#
Recommends: x11-driver-video%{_isa}
Recommends: x11-driver-input%{_isa}
Recommends:	mesa%{_isa}
#%%ifarch %{x86_64}
# OpenGL/Vulkan/etc drivers for 32 bit applications.
# It is a controversional dependency because it pulls ~400MiB of packages
# which are not needed by default in most cases.
#Recommends:	mesa(x86-32)
#%%endif
#
# /usr/lib64/dri/*_drv_video.so for AMD and Nvidia are in mesa, for Intel - here
# for old Intel GPUs
Recommends: vaapi-driver-intel%{_isa}
# for newer Intel GPUs
Recommends: intel-media-driver%{_isa}
Recommends: x11-font-misc-misc
Recommends: x11-font-cursor-misc
# Font with most UTF-8 characters
Recommends: fonts-ttf-freefont
Recommends: x11-font-alias
#
Recommends: setxkbmap%{_isa}
#
Recommends: x11-server-xorg%{_isa}
#
Recommends: xinit%{_isa}
#
# for debugging multimedia keyboard inet(common) (cf x11-data-xkbdata):
Recommends: xev%{_isa}

# (mikhailnov) No noarch here for correct dependencies!
#BuildArch: noarch

%description
This package is a meta-package, meaning that its purpose is to contain
dependencies for running X.org X11.

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17517 |21mr|tbb-2020.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2

%define libtbb %mklibname tbb %{major}
%define libtbbmalloc %mklibname tbbmalloc %{major}
%define libtbbmalloc_proxy %mklibname tbbmalloc_proxy %{major}
%define libirml %mklibname irml 1
%define devname %mklibname -d tbb

Summary:	Thread Building Blocks
Name:		tbb
Version:	2020.3
Release:	1
Url:		http://threadbuildingblocks.org/
Source0:	https://github.com/intel/tbb/archive/v%{version}/%{name}-%{version}.tar.gz
License:	Apache 2.0
Group:		System/Libraries
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	pkgconfig(python3)
BuildRequires:	swig
# Only for the dependency generator
BuildRequires:	cmake
# Don't snip -Wall from C++ flags.  Add -fno-strict-aliasing, as that
# uncovers some static-aliasing warnings.
# Related: https://bugzilla.redhat.com/show_bug.cgi?id=1037347
Patch0:		https://src.fedoraproject.org/rpms/tbb/raw/master/f/tbb-2019-dont-snip-Wall.patch
# Make attributes of aliases match those on the aliased function.
Patch1:		tbb-2020-attributes.patch
# Fix test-thread-monitor, which had multiple bugs that could (and did, on
# ppc64le) result in a hang.
Patch2:		https://src.fedoraproject.org/rpms/tbb/raw/master/f/tbb-2019-test-thread-monitor.patch
# Fix a test that builds a 4-thread barrier, but cannot guarantee that more
# than 2 threads will be available to use it.
Patch3:		https://src.fedoraproject.org/rpms/tbb/raw/master/f/tbb-2019-test-task-scheduler-init.patch
# Fix compilation on aarch64 and s390x.  See
# https://github.com/intel/tbb/issues/186
Patch4:		https://src.fedoraproject.org/rpms/tbb/raw/master/f/tbb-2019-fetchadd4.patch

%description
Thread Building Blocks

#----------------------------------------------------------------------

%package -n %{libtbb}
Summary:	Thread Building Blocks library
Group:		System/Libraries

%description -n %{libtbb}
Thread Building Blocks library

%files -n %{libtbb}
%{_libdir}/libtbb.so.%{major}

#----------------------------------------------------------------------

%package -n %{libtbbmalloc}
Summary:	Thread Building Blocks library
Group:		System/Libraries

%description -n %{libtbbmalloc}
Thread Building Blocks library

%files -n %{libtbbmalloc}
%{_libdir}/libtbbmalloc.so.%{major}

#----------------------------------------------------------------------

%package -n %{libtbbmalloc_proxy}
Summary:	Thread Building Blocks library
Group:		System/Libraries

%description -n %{libtbbmalloc_proxy}
Thread Building Blocks library

%files -n %{libtbbmalloc_proxy}
%{_libdir}/libtbbmalloc_proxy.so.%{major}

#----------------------------------------------------------------------

%package -n %{libirml}
Summary:	Thread Building Blocks library
Group:		System/Libraries

%description -n %{libirml}
Thread Building Blocks library

%files -n %{libirml}
%{_libdir}/libirml.so.1

#----------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the Thread Building Blocks library
Group:		Development/C++
Requires:	%{libtbb} = %{EVRD}
Requires:	%{libtbbmalloc} = %{EVRD}
Requires:	%{libtbbmalloc_proxy} = %{EVRD}
Requires:	%{libirml} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the Thread Building Blocks library

%files -n %{devname}
%doc html
%{_includedir}/tbb
%{_includedir}/rml
%{_includedir}/serial
%{_libdir}/*.so
%{_libdir}/cmake/tbb
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------

%package -n python-%{name}
Summary:	Python bindings for Thread Building Blocks
Group:		System/Libraries

%description -n python-%{name}
Python bindings for Thread Building Blocks

%files -n python-%{name}
%{python3_sitearch}/TBB*
%{python3_sitearch}/tbb
%{python3_sitearch}/__pycache__/TBB*

#----------------------------------------------------------------------
%prep
%autosetup -p1 -n oneTBB-%{version}

# For repeatable builds, don't query the hostname or architecture
sed -i 's/"`hostname -s`" ("`uname -m`"/fedorabuild (%{_arch}/' \
    build/version_info_linux.sh

# Do not assume the RTM instructions are available.
# Insert --as-needed before the libraries to be linked.
sed -e 's/-mrtm//' \
    -e "s/-fPIC/& -Wl,--as-needed/" \
    -i build/linux.gcc.inc

# Invoke the right python binary directly
sed -i 's,env python,python3,' python/TBB.py python/tbb/__*.py

# Remove shebang from files that don't need it
sed -i '/^#!/d' python/tbb/{pool,test}.py

%build
%ifarch %{e2k}
%global ldflags %{ldflags} -lstdc++
%endif
if echo %{__cc} | grep -q gcc; then
	COMPILER=gcc
else
	# Workaround for clang bug
	COMPILER=gcc #clang
fi
%make_build tbb_build_prefix=obj all compiler=$COMPILER stdver=c++14 \
	CXXFLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD" \
	LDFLAGS="%{ldflags} -pthread"

# Build for python3
. build/*_release/tbbvars.sh
cd python
%make_build -C rml stdver=c++14 \
	CPLUS_FLAGS="%{optflags} -DDO_ITT_NOTIFY -DUSE_PTHREAD" \
	LDFLAGS="%{ldflags} -pthread"
cp -a rml/libirml.so* .
%py3_build
cd -

# Build the documentation
%make_build doxygen


%install
mkdir -p %{buildroot}%{_libdir}/cmake %{buildroot}%{_libdir}/pkgconfig
install -p -D -m 755 build/*_release/*.so.%{major} %{buildroot}%{_libdir}/

cd %{buildroot}%{_libdir}
for i in *.so.*; do
	ln -s $i $(echo $i |sed -e 's,\.so\..*,.so,')
done
cd -

cp -a include %{buildroot}%{_includedir}
cp -a src/rml/include %{buildroot}%{_includedir}/rml

find %{buildroot}%{_includedir} -name "*.html" |xargs rm -f

. build/*_release/tbbvars.sh
cd python
%py3_install
find %{buildroot} -name "*.py" |xargs chmod +x
cp -a libirml.so.1 %{buildroot}%{_libdir}/
ln -s libirml.so.1 %{buildroot}%{_libdir}/libirml.so
cd -

rm cmake/README.rst
cp -a cmake %{buildroot}%{_libdir}/cmake/%{name}

for i in tbb tbbmalloc tbbmalloc_proxy irml; do
	cat >%{buildroot}%{_libdir}/pkgconfig/$i.pc <<EOF
Name: Thread Building Blocks - $i
Description: %{summary}
URL: http://threadbuildingblocks.org/
Version: %{version}
Libs: -l$i
EOF
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17518 |21mr|tcb-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define set_tcbver 0.7

%define major 0
%define nssmajor 2
%define libname %mklibname %{name} %{major}
%define libnss  %mklibname nss_%{name} %{nssmajor}
%define devname %mklibname %{name} -d
%define libpamname %mklibname pam 0

Summary:	Libraries and tools implementing the tcb password shadowing scheme
Name:		tcb
Version:	1.2
Release:	1
License:	BSD or GPL
Group:		System/Libraries
Url:		http://www.openwall.com/tcb/
Source0:	https://www.openwall.com/tcb/%{name}-%{version}.tar.gz
Source1:	tcb_chkpwd.control
Patch0:		tcb-0.9.9-alt-makefile-pam.patch
Patch1:		tcb-0.9.9-alt-tcb_convert-try_auth.patch
BuildRequires:	control
BuildRequires:	glibc-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(libtirpc)
Requires:	%{libname} >= %{version}
Requires:	nss_tcb = %{version}
Requires:	pam_tcb = %{version}
Requires:	shadow-utils

%description
The tcb package consists of three components: pam_tcb, libnss_tcb, and
libtcb.  pam_tcb is a PAM module which supersedes pam_unix and pam_pwdb.
It also implements the tcb password shadowing scheme (see tcb(5) for
details).  The tcb scheme allows many core system utilities (passwd(1)
being the primary example) to operate with little privilege.  libnss_tcb
is the accompanying NSS module.  libtcb contains code shared by the
PAM and NSS modules and is also used by programs from the shadow-utils
package.

%files
%doc LICENSE
%attr(710,root,shadow) %ghost /etc/tcb
/sbin/tcb_convert
/sbin/tcb_unconvert
%{_mandir}/man8/tcb_convert.8*
%{_mandir}/man8/tcb_unconvert.8*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries and tools implementing the tcb password shadowing scheme
Group:		System/Libraries
# To make sure we have chkpwd and shadow groups
Requires(pre):	setup

%description -n %{libname}
libtcb contains code shared by the PAM and NSS modules and is also used
by programs from the shadow-utils package.

%files -n %{libname}
%doc LICENSE
/%{_lib}/libtcb.so.%{major}*
%attr(0755,root,chkpwd) %verify(not mode group) %dir %{_libdir}/chkpwd
%attr(2755,root,shadow) %verify(not mode group) %{_libdir}/chkpwd/tcb_chkpwd
%config %{_controldir}/tcb_chkpwd
%{_mandir}/man5/tcb.5*

#----------------------------------------------------------------------------

%package -n pam_tcb
Summary:	PAM module for TCB
Group:		System/Libraries
Requires:	%{libname} >= %{version}

%description -n pam_tcb
pam_tcb is a PAM module which supersedes pam_unix and pam_pwdb.
It also implements the tcb password shadowing scheme (see tcb(5) for
details).  The tcb scheme allows many core system utilities (passwd(1)
being the primary example) to operate with little privilege.

%files -n pam_tcb
%doc LICENSE
/%{_lib}/security/pam_*.so
%{_mandir}/man8/pam_pwdb.8*
%{_mandir}/man8/pam_tcb.8*

#----------------------------------------------------------------------------

%package -n %{libnss}
Summary:	NSS library for TCB
Group:		System/Libraries
Requires(post,postun):	rpm-helper
Requires:	%{libname} = %{EVRD}
Provides:	nss_tcb = %{EVRD}
Conflicts:	nss_tcb < 1.1-4
Obsoletes:	nss_tcb < 1.1-4

%description -n %{libnss}
libnss_tcb is the accompanying NSS module for pam_tcb.

%files -n %{libnss}
%doc LICENSE
/%{_lib}/libnss_tcb.so.%{nssmajor}

%post -n %{libnss}
if [ -f %{_initrddir}/nscd ]; then
    %_post_service nscd
fi

%postun -n %{libnss}
if [ -f %{_initrddir}/nscd ]; then
    %_preun_service nscd
fi

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries and header files for building tcb-aware applications
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains static libraries and header files needed for
building tcb-aware applications.

%files -n %{devname}
%doc LICENSE
%{_includedir}/tcb.h
%{_libdir}/libtcb.a
%{_libdir}/libtcb.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

cat Make.defs | sed -e "s|LIBEXECDIR = /usr/libexec|LIBEXECDIR = %{_libdir}|" >Make.defs.new
cat Make.defs.new | sed -e "s|/lib$|/%{_lib}|g" >Make.defs
chmod 644 LICENSE

%build
%serverbuild
CFLAGS="%{optflags} -DENABLE_SETFSUGID" %make

%install
make install-non-root install-pam_pwdb \
    DESTDIR=%{buildroot} \
    MANDIR=%{_mandir} \
    LIBDIR=%{_libdir} \
    LIBEXECDIR=%{_libdir} \
    SLIBDIR=/%{_lib}

install -pD -m755 %{SOURCE1} %{buildroot}%{_controldir}/tcb_chkpwd
sed -i 's|@libexecdir@|%{_libexecdir}|' %{buildroot}%{_controldir}/tcb_chkpwd
mkdir -p %{buildroot}/etc/tcb


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17519 |21mr|tcl-8.6.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 8.6
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	An embeddable scripting language
Name:		tcl
Version:	8.6.13
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://tcl.tk
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-core%{version}-src.tar.gz
Source1:	tcl.macros
Patch0:		tcl-8.5a6-soname.patch
Patch1:		tcl-8.6.11-autopath.patch
Patch3:		tcl-8.6.3-fix_includes.patch
Patch4:		tcl-8.6.3-expect-5.43.0.patch
BuildRequires:	pkgconfig(zlib)
Provides:	/usr/bin/tclsh

%description
Tcl is a simple scripting language designed to be embedded into
other applications.  Tcl is designed to be used with Tk, a widget
set, which is provided in the tk package.  This package also includes
tclsh, a simple example of a Tcl application.

If you're installing the tcl package and you want to use Tcl for
development, you should also install the tk package.

%files
%{_bindir}/*
%{_datadir}/%{name}%{api}
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/mann/*
%{_datadir}/tcl8
# if Config files not needed, move it to devel pkg
%{_libdir}/%{name}%{api}/tclConfig.sh
%{_libdir}/tclConfig.sh
%{_libdir}/tclooConfig.sh

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}tcl8.6 < 8.6.4
Obsoletes:	%{_lib}tcl8.6 < 8.6.4

%description -n %{libname}
Tcl is a simple scripting language designed to be embedded into
other applications.  Tcl is designed to be used with Tk, a widget
set, which is provided in the tk package.  This package also includes
tclsh, a simple example of a Tcl application.

If you're installing the tcl package and you want to use Tcl for
development, you should also install the tk and tclx packages.

%files -n %{libname}
%{_libdir}/libtcl%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%dir %{_includedir}/tcl%{version}
%dir %{_includedir}/tcl%{version}/compat
%dir %{_includedir}/tcl%{version}/generic
%dir %{_includedir}/tcl%{version}/unix
%{_includedir}/tcl%{version}/compat/*.h
%{_includedir}/tcl%{version}/generic/*.h
%{_includedir}/tcl%{version}/unix/*.h
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/tcl.pc
%{_rpmmacrodir}/macros.tcl

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}%{version}
%autopatch -p1

%build
pushd unix
    autoconf
    %configure \
	--enable-threads \
%ifnarch %{ix86}
	--enable-64bit \
%endif
	--disable-rpath \
	--includedir=%{_includedir}/tcl%{version}
    %make TCL_LIBRARY=%{_datadir}/%{name}%{api}

    cp libtcl%{api}.so libtcl%{api}.so.%{major}
#    make test
popd

%install
%makeinstall -C unix TCL_LIBRARY=%{buildroot}%{_datadir}/%{name}%{api}

# create the arch-dependent dir
mkdir -p %{buildroot}%{_libdir}/%{name}%{api}

# fix libname
mv %{buildroot}%{_libdir}/libtcl%{api}.so %{buildroot}%{_libdir}/libtcl%{api}.so.%{major}
ln -snf libtcl%{api}.so.%{major} %{buildroot}%{_libdir}/libtcl%{api}.so

# install all headers
install -d %{buildroot}%{_includedir}/tcl%{version}/compat
install -d %{buildroot}%{_includedir}/tcl%{version}/generic
install -d %{buildroot}%{_includedir}/tcl%{version}/unix
install -m0644 compat/*.h %{buildroot}%{_includedir}/tcl%{version}/compat/
install -m0644 generic/*.h %{buildroot}%{_includedir}/tcl%{version}/generic/
install -m0644 unix/*.h %{buildroot}%{_includedir}/tcl%{version}/unix/

pushd %{buildroot}%{_bindir}
    ln -fs tclsh* tclsh
popd

pushd %{buildroot}%{_libdir}
cat > lib%{name}.so << EOF
/* GNU ld script
   We want -l%{name} to include the actual system library,
   which is lib%{name}%{api}.so.%{major}  */
INPUT ( -l%{name}%{api} )
EOF
popd

# fix config script
perl -pi -e "s|-L`pwd`/unix\b|-L%{_libdir}|g" %{buildroot}%{_libdir}/tclConfig.sh
perl -pi -e "s|`pwd`/unix/lib|%{_libdir}/lib|g" %{buildroot}%{_libdir}/tclConfig.sh
perl -pi -e "s|`pwd`|%{_includedir}/tcl%{version}|g" %{buildroot}%{_libdir}/tclConfig.sh

# and let it be found (we don't look in /usr/lib any more)
ln -s ../%{name}Config.sh %{buildroot}/%{_libdir}/%{name}%{api}/%{name}Config.sh

# (fc) make sure .so files are writable by root
chmod 755 %{buildroot}%{_libdir}/*.so*

# set up the macros
mkdir -p %{buildroot}%{_rpmmacrodir}
install -m 0644 %{SOURCE1} %{buildroot}%{_rpmmacrodir}/macros.tcl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17520 |21mr|tclap-1.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		tclap
Version:	1.2.2
Release:	1
Summary:	Templatized C++ Command Line Parser
Group:		System/Libraries
License:	MIT
URL:		http://tclap.sourceforge.net/
Source0:	http://sourceforge.net/projects/tclap/files/%{name}-%{version}.tar.gz
BuildArch:	noarch
Provides:	%{name}-devel = %{version}-%{release}

%description
This is a simple C++ library that facilitates parsing command line
arguments in a type independent manner.  It doesn't conform exactly
to either the GNU or POSIX standards, although it is close.

%files
%doc README AUTHORS ChangeLog NEWS
%doc %{_docdir}/tclap/*.html
%doc %{_docdir}/tclap/style.css
%{_includedir}/*
%{_datadir}/pkgconfig/*.pc

#------------------------------------------------------------------
%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%__mkdir_p %{buildroot}%{_datadir}/pkgconfig
%__mv %{buildroot}%{_libdir}/pkgconfig/*.pc %{buildroot}%{_datadir}/pkgconfig/

%check
# looks like requires network in chroot
#% make check


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17521 |21mr|tcl-sqlite3-3.7.7-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realname sqlite
%define realver 3070700
%define rpmver %(echo %{realver}|sed -e "s/00//g" -e "s/0/./g")

Summary:	Tcl binding for sqlite3
Name:		tcl-sqlite3
Version:	%{rpmver}
Release:	8
License:	Public Domain
Group:		Databases
Url:		http://www.sqlite.org/
Source0:	http://www.sqlite.org/%{realname}-autoconf-%{realver}.tar.gz
Patch0:		sqlite-tea-3070400-link.patch
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(tcl)
BuildRequires:	tcl
Provides:	sqltie3-tcl = %{version}

%description
SQLite is a C library that implements an embeddable SQL database
engine. Programs that link with the SQLite library can have SQL
database access without running a separate RDBMS process. The
distribution comes with a standalone command-line access program
(sqlite) that can be used to administer an SQLite database and
which serves as an example of how to use the SQLite library.

This package contains tcl binding for %{name}.

%files
%{tcl_sitearch}/sqlite3

#----------------------------------------------------------------------------

%prep
%setup -q -n %{realname}-autoconf-%{realver}/tea
%patch0 -p0

%build
%configure \
%ifarch x86_64 aarch64
	--enable-64bit \
%endif
	--with-system-sqlite
%make

%install
mkdir -p %{buildroot}%{tcl_sitearch}/sqlite3
install -m755 *.so %{buildroot}%{tcl_sitearch}/sqlite3/
install -m644 pkgIndex.tcl %{buildroot}%{tcl_sitearch}/sqlite3/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17522 |21mr|tcpdump-4.99.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define tcpslice_dir tcpslice-master

Summary:	A network traffic monitoring tool
Name:		tcpdump
Version:	4.99.4
Release:	2
Epoch:		2
Group:		Monitoring
License:	BSD
Url:		http://www.tcpdump.org/
Source0:	http://www.tcpdump.org/release/%{name}-%{version}.tar.gz
Source1:	https://github.com/the-tcpdump-group/tcpslice/archive/refs/heads/master.zip
Source2:	tcpdump-sysusers.conf
Patch0003:	0003-Drop-root-privileges-before-opening-first-savefile.patch
BuildRequires:	pcap-devel >= 1.2.0
BuildRequires:	openssl-devel
BuildRequires:	libsmi-devel

%description
Tcpdump is a command-line tool for monitoring network traffic.  Tcpdump can
capture and display the packet headers on a particular network interface or on
all interfaces.  Tcpdump can display all of the packet headers, or just the
ones that match particular criteria.

Install tcpdump if you need a program to monitor network traffic.

%files
%doc README.md CHANGES CREDITS LICENSE
%{_sbindir}/%{name}
%{_sbindir}/tcpslice
%{_mandir}/man8/tcp*
%{_sysusersdir}/tcpdump.conf

%pre
%sysusers_create_package %{name} %{SOURCE2}

#--------------------------------------------------------------------

%prep
%autosetup -p1 -a1

%build
%serverbuild
export CFLAGS="%{optflags} -I. -DIP_MAX_MEMBERSHIPS=20"

pushd %{tcpslice_dir}
# update config.{guess,sub}
./autogen.sh
automake -a -f 2> /dev/null || :
%configure
%make_build
popd

%configure \
 --with-crypto \
 --with-user=tcpdump \
 --enable-ipv6

%make_build

%install
mkdir -p %{buildroot}/%{_libdir}
mkdir -p %{buildroot}/%{_mandir}/man8
mkdir -p %{buildroot}/%{_sbindir}
pushd %{tcpslice_dir}
install -m755 tcpslice %{buildroot}/%{_sbindir}
install -m644 tcpslice.1 %{buildroot}/%{_mandir}/man8/tcpslice.8
popd
install -m755 tcpdump %{buildroot}/%{_sbindir}
install -m644 tcpdump.1 %{buildroot}/%{_mandir}/man8/tcpdump.8

install -p -D -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/tcpdump.conf

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17523 |21mr|tcp_wrappers-7.6-60
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# To avoid BuildRequires conflict in openldap when building it with heimdal
%global __requires_exclude devel\\(libnsl(.*)\\)

%define LIB_MAJOR 0
%define LIB_MINOR 7
%define LIB_REL 6

%define major %{LIB_MAJOR}
%define libname %mklibname wrap %{major}
%define devname %mklibname wrap -d

Summary:	A security tool which acts as a wrapper for TCP daemons
Name:		tcp_wrappers
Version:	7.6
Release:	60
License:	BSD
Group:		System/Servers
Url:		ftp://ftp.porcupine.org/pub/security/index.html
Source0:	http://ftp.porcupine.org/pub/security/%{name}_%{version}.tar.gz
Patch0:		tcpw7.2-config.patch
Patch1:		tcpw7.2-setenv.patch
Patch2:		tcpw7.6-netgroup.patch
Patch3:		tcp_wrappers-7.6-bug11881.patch
Patch4:		tcp_wrappers-7.6-bug17795.patch
Patch5:		tcp_wrappers-7.6-bug17847.patch
Patch6:		tcp_wrappers-7.6-fixgethostbyname.patch
Patch7:		tcp_wrappers-7.6-docu.patch
Patch9:		tcp_wrappers.usagi-ipv6.patch
Patch10:	tcp_wrappers.ume-ipv6.patch
Patch11:	tcp_wrappers-7.6-shared.patch
Patch12:	tcp_wrappers-7.6-sig.patch
Patch13:	tcp_wrappers-7.6-strerror.patch
Patch14:	tcp_wrappers-7.6-ldflags.patch
Patch15:	tcp_wrappers-7.6-fix_sig-bug141110.patch
Patch16:	tcp_wrappers-7.6-162412.patch
Patch17:	tcp_wrappers-7.6-220015.patch
Patch18:	tcp_wrappers-7.6-restore_sigalarm.patch
Patch19:	tcp_wrappers-7.6-siglongjmp.patch
Patch20:	tcp_wrappers-7.6-sigchld.patch
Patch21:	tcp_wrappers-7.6-196326.patch
Patch22:	tcp_wrappers_7.6-249430.patch
Patch100:	tcp_wrappers-bug41864.diff
BuildRequires:	pkgconfig(libnsl)

%description
The tcp_wrappers package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, FTP, telnet,
rlogin, rsh, exec, tftp, talk and other network services.

Install the tcp_wrappers program if you need a security tool for
filtering incoming network services requests.

This version also supports IPv6.

%files
%doc BLURB CHANGES README* DISCLAIMER Banners.Makefile
%{_sbindir}/*
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A security library which acts as a wrapper for TCP daemons
Group:		System/Libraries

%description -n %{libname}
The tcp_wrappers package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, ftp, telnet,
rlogin, rsh, exec, tftp, talk and other network services.

This package contains the shared tcp_wrappers library (libwrap).

%files -n %{libname}
%doc README
/%{_lib}/libwrap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A security library which acts as a wrapper for TCP daemons
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libwrap-devel = %{EVRD}
Provides:	wrap-devel = %{EVRD}

%description -n %{devname}
The tcp_wrappers package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, ftp, telnet,
rlogin, rsh, exec, tftp, talk and other network services.

This package contains the static tcp_wrappers library (libwrap) and
its header files.

%files -n %{devname}
%doc DISCLAIMER
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}_%{version}
%patch0 -p1 -b .config
%patch1 -p1 -b .setenv
%patch2 -p1 -b .netgroup
%patch3 -p1 -b .bug11881
%patch4 -p1 -b .bug17795
%patch5 -p1 -b .bug17847
%patch6 -p1 -b .fixgethostbyname
%patch7 -p1 -b .docu
%patch9 -p1 -b .usagi-ipv6
%patch10 -p1 -b .ume-ipv6
%patch11 -p1 -b .shared
%patch12 -p1 -b .sig
%patch13 -p1 -b .strerror
%patch14 -p1 -b .cflags
%patch15 -p1 -b .fix_sig
%patch16 -p1 -b .162412
%patch17 -p1 -b .220015
%patch18 -p1 -b .restore_sigalarm
%patch19 -p1 -b .siglongjmp
%patch20 -p1 -b .sigchld
%patch21 -p1 -b .196326
%patch22 -p1 -b .249430

%patch100 -p0 -b .bug41864

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"
%make \
	RPM_OPT_FLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" \
	LDFLAGS="%{ldflags} -pie" REAL_DAEMON_DIR=%{_sbindir} \
	MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux

%install
install -d %{buildroot}%{_includedir}
install -d %{buildroot}/%{_lib}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man{3,5,8}

install -m644 hosts_access.3 %{buildroot}%{_mandir}/man3
install -m644 hosts_access.5 hosts_options.5 %{buildroot}%{_mandir}/man5
ln hosts_access.5 %{buildroot}%{_mandir}/man5/hosts.allow.5
ln hosts_access.5 %{buildroot}%{_mandir}/man5/hosts.deny.5
install -m644 tcpd.8 tcpdchk.8 tcpdmatch.8 %{buildroot}%{_mandir}/man8

install -m755 libwrap.so.%{LIB_MAJOR}.%{LIB_MINOR}.%{LIB_REL} %{buildroot}/%{_lib}/
ln -s libwrap.so.%{LIB_MAJOR}.%{LIB_MINOR}.%{LIB_REL} %{buildroot}/%{_lib}/libwrap.so.%{LIB_MAJOR}
ln -s /%{_lib}/libwrap.so.%{LIB_MAJOR}.%{LIB_MINOR}.%{LIB_REL} %{buildroot}%{_libdir}/libwrap.so

install -m644 libwrap.a %{buildroot}%{_libdir}
install -m644 tcpd.h %{buildroot}%{_includedir}

install -m755 safe_finger %{buildroot}%{_sbindir}
install -m755 tcpd %{buildroot}%{_sbindir}
install -m755 tcpdchk %{buildroot}%{_sbindir}
install -m755 tcpdmatch %{buildroot}%{_sbindir}
install -m755 try-from %{buildroot}%{_sbindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17524 |21mr|tcp_wrappers-7.6-61
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# To avoid BuildRequires conflict in openldap when building it with heimdal
%global __requires_exclude devel\\(libnsl(.*)\\)

%define LIB_MAJOR 0
%define LIB_MINOR 7
%define LIB_REL 6

%define major %{LIB_MAJOR}
%define libname %mklibname wrap %{major}
%define devname %mklibname wrap -d

Summary:	A security tool which acts as a wrapper for TCP daemons
Name:		tcp_wrappers
Version:	7.6
Release:	61
License:	BSD
Group:		System/Servers
Url:		ftp://ftp.porcupine.org/pub/security/index.html
Source0:	http://ftp.porcupine.org/pub/security/%{name}_%{version}.tar.gz
Patch0:		tcpw7.2-config.patch
Patch1:		tcpw7.2-setenv.patch
Patch2:		tcpw7.6-netgroup.patch
Patch3:		tcp_wrappers-7.6-bug11881.patch
Patch4:		tcp_wrappers-7.6-bug17795.patch
Patch5:		tcp_wrappers-7.6-bug17847.patch
Patch6:		tcp_wrappers-7.6-fixgethostbyname.patch
Patch7:		tcp_wrappers-7.6-docu.patch
Patch9:		tcp_wrappers.usagi-ipv6.patch
Patch10:	tcp_wrappers.ume-ipv6.patch
Patch11:	tcp_wrappers-7.6-shared.patch
Patch12:	tcp_wrappers-7.6-sig.patch
Patch13:	tcp_wrappers-7.6-strerror.patch
Patch14:	tcp_wrappers-7.6-ldflags.patch
Patch15:	tcp_wrappers-7.6-fix_sig-bug141110.patch
Patch16:	tcp_wrappers-7.6-162412.patch
Patch17:	tcp_wrappers-7.6-220015.patch
Patch18:	tcp_wrappers-7.6-restore_sigalarm.patch
Patch19:	tcp_wrappers-7.6-siglongjmp.patch
Patch20:	tcp_wrappers-7.6-sigchld.patch
Patch21:	tcp_wrappers-7.6-196326.patch
Patch22:	tcp_wrappers_7.6-249430.patch
Patch100:	tcp_wrappers-bug41864.diff
BuildRequires:	pkgconfig(libnsl)

%description
The tcp_wrappers package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, FTP, telnet,
rlogin, rsh, exec, tftp, talk and other network services.

Install the tcp_wrappers program if you need a security tool for
filtering incoming network services requests.

This version also supports IPv6.

%files
%doc BLURB CHANGES README* DISCLAIMER Banners.Makefile
%{_sbindir}/*
%{_mandir}/man*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A security library which acts as a wrapper for TCP daemons
Group:		System/Libraries

%description -n %{libname}
The tcp_wrappers package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, ftp, telnet,
rlogin, rsh, exec, tftp, talk and other network services.

This package contains the shared tcp_wrappers library (libwrap).

%files -n %{libname}
%doc README
/%{_lib}/libwrap.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A security library which acts as a wrapper for TCP daemons
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libwrap-devel = %{EVRD}
Provides:	wrap-devel = %{EVRD}

%description -n %{devname}
The tcp_wrappers package provides small daemon programs which can
monitor and filter incoming requests for systat, finger, ftp, telnet,
rlogin, rsh, exec, tftp, talk and other network services.

This package contains the static tcp_wrappers library (libwrap) and
its header files.

%files -n %{devname}
%doc DISCLAIMER
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/*.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}_%{version}
%patch0 -p1 -b .config
%patch1 -p1 -b .setenv
%patch2 -p1 -b .netgroup
%patch3 -p1 -b .bug11881
%patch4 -p1 -b .bug17795
%patch5 -p1 -b .bug17847
%patch6 -p1 -b .fixgethostbyname
%patch7 -p1 -b .docu
%patch9 -p1 -b .usagi-ipv6
%patch10 -p1 -b .ume-ipv6
%patch11 -p1 -b .shared
%patch12 -p1 -b .sig
%patch13 -p1 -b .strerror
%patch14 -p1 -b .cflags
%patch15 -p1 -b .fix_sig
%patch16 -p1 -b .162412
%patch17 -p1 -b .220015
%patch18 -p1 -b .restore_sigalarm
%patch19 -p1 -b .siglongjmp
%patch20 -p1 -b .sigchld
%patch21 -p1 -b .196326
%patch22 -p1 -b .249430

%patch100 -p0 -b .bug41864

%build
%serverbuild
export CFLAGS="%{optflags} -fPIC"
%make \
	RPM_OPT_FLAGS="$CFLAGS -fPIC -DPIC -D_REENTRANT -DHAVE_STRERROR" \
	LDFLAGS="%{ldflags} -pie" REAL_DAEMON_DIR=%{_sbindir} \
	MAJOR=%{LIB_MAJOR} MINOR=%{LIB_MINOR} REL=%{LIB_REL} linux

%install
install -d %{buildroot}%{_includedir}
install -d %{buildroot}/%{_lib}
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{_sbindir}
install -d %{buildroot}%{_mandir}/man{3,5,8}

install -m644 hosts_access.3 %{buildroot}%{_mandir}/man3
install -m644 hosts_access.5 hosts_options.5 %{buildroot}%{_mandir}/man5
ln hosts_access.5 %{buildroot}%{_mandir}/man5/hosts.allow.5
ln hosts_access.5 %{buildroot}%{_mandir}/man5/hosts.deny.5
install -m644 tcpd.8 tcpdchk.8 tcpdmatch.8 %{buildroot}%{_mandir}/man8

install -m755 libwrap.so.%{LIB_MAJOR}.%{LIB_MINOR}.%{LIB_REL} %{buildroot}/%{_lib}/
ln -s libwrap.so.%{LIB_MAJOR}.%{LIB_MINOR}.%{LIB_REL} %{buildroot}/%{_lib}/libwrap.so.%{LIB_MAJOR}
ln -s /%{_lib}/libwrap.so.%{LIB_MAJOR}.%{LIB_MINOR}.%{LIB_REL} %{buildroot}%{_libdir}/libwrap.so

install -m644 libwrap.a %{buildroot}%{_libdir}
install -m644 tcpd.h %{buildroot}%{_includedir}

install -m755 safe_finger %{buildroot}%{_sbindir}
install -m755 tcpd %{buildroot}%{_sbindir}
install -m755 tcpdchk %{buildroot}%{_sbindir}
install -m755 tcpdmatch %{buildroot}%{_sbindir}
install -m755 try-from %{buildroot}%{_sbindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17525 |21mr|tcsh-6.22.04-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	An enhanced version of csh, the C shell
Name:		tcsh
Version:	6.22.04
Release:	1
License:	BSD
Group:		Shells
Url:		http://www.tcsh.org/
Source0:	ftp://ftp.astron.com/pub/%{name}/%{name}-%{version}.tar.gz
Source1:	alias.csh

# NOTE: 'autosetup' macro (below) uses 'git' for applying the patches:
#       ->> All the patches should be provided in 'git format-patch' format.
#       ->> Auxiliary repository will be created during 'fedpkg prep', you
#           can see all the applied patches there via 'git log'.
# Upstream patches -- official upstream patches released by upstream since the
# ----------------    last rebase that are necessary for any reason:

# Downstream patches -- these should be always included when doing rebase:
# ------------------
Patch100:	tcsh-6.20.00-manpage-memoryuse.patch

BuildRequires:	groff-for-man
BuildRequires:	pkgconfig(ncurses)
Requires(post,postun):	rpm-helper
Provides:	csh = %{version}
Provides:	/bin/csh
Provides:	/bin/tcsh

%description
Tcsh is an enhanced but completely compatible version of csh, the C
shell. Tcsh is a command language interpreter which can be used both
as an interactive login shell and as a shell script command processor.
Tcsh includes a command line editor, programmable word completion,
spelling correction, a history mechanism, job control and a C language
like syntax.

%files
%defattr(644,root,root,755)
%doc NewThings FAQ Fixes eight-bit.txt complete.tcsh
%doc Ported README* WishList Y2K
%config(noreplace) %{_sysconfdir}/profile.d/*
%attr(755,root,root) /bin/*
%{_mandir}/*/*

%post
%_add_shell_helper %{name} $1 /bin/csh
%_add_shell_helper %{name} $1 /bin/tcsh

%postun
%_del_shell_helper %{name} $1 /bin/csh
%_del_shell_helper %{name} $1 /bin/tcsh

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--bindir=/bin \
	--without-hesiod
%make
nroff -me eight-bit.me > eight-bit.txt

%install
install -D tcsh %{buildroot}/bin/tcsh
install -D tcsh.man %{buildroot}%{_mandir}/man1/tcsh.1

ln -s tcsh.1 %{buildroot}%{_mandir}/man1/csh.1
ln -sf tcsh %{buildroot}/bin/csh

install -D %{SOURCE1} %{buildroot}/etc/profile.d/$(basename %{SOURCE1})

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17526 |21mr|tdb-1.4.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# XXX configure checks fail
%define _disable_ld_no_undefined 1

Summary:	Library implementing Samba's embedded database
Name:		tdb
Version:	1.4.10
# We shipped it in samba3 versioned with the samba3 version
Epoch:		1
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://tdb.samba.org/
Source0:	http://talloc.samba.org/ftp/tdb/tdb-%{version}.tar.gz
BuildRequires:	docbook-style-xsl
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)

%description
Library implementing Samba's embedded database and utilities for backing up,
restoring and manipulating the database.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library implementing Samba's embedded database
Group:		System/Libraries

%description -n %{libname}
Library implementing Samba's embedded database.

%files -n %{libname}
%{_libdir}/libtdb.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for library implementing Samba's embedded database
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for library implementing Samba's embedded database.

%files -n %{devname}
%{_libdir}/libtdb.so
%{_includedir}/tdb.h
%{_libdir}/pkgconfig/tdb.pc

#----------------------------------------------------------------------------

%package -n python3-tdb
Summary:	Python3 bindings to Samba's tdb embedded database
Group:		Development/Python

%description -n python3-tdb
Pyhton3 bindings to Samba's tdb embedded database.

%files -n python3-tdb
%{python3_sitearch}/tdb.cpython-3*.so
%{python3_sitearch}/_tdb_text.py*
%{python3_sitearch}/__pycache__/*

#----------------------------------------------------------------------------

%package utils
Summary:	Tools for backing up, restoring, and manipulating Samba's embedded database
Group:		Databases

%description utils
Tools for backing up, restoring, and manipulating Samba's embedded database.

%files utils
%{_bindir}/tdb*
%{_mandir}/man8/tdb*.8*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%setup_compile_flags
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--disable-rpath \
	--bundled-libraries=NONE \
	--builtin-libraries=replace

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17527 |21mr|teckit-2.5.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname teckit %{major}
%define libname_d %mklibname teckit -d
%define libname_d_s %mklibname teckit -d -s
%define _disable_rebuild_configure 1
%define _disable_lto 1

Name:		teckit
Version:	2.5.9
Release:	3
Summary:	Conversion library and mapping compiler
License:	LGPL
Group:		System/Libraries
URL:		http://scripts.sil.org/teckit
Source0:	https://github.com/silnrsi/teckit/releases/download/v%{version}/teckit-%{version}.tar.gz
BuildRequires:	chrpath
BuildRequires:	expat-devel
BuildRequires:	zlib-devel

%description 
TECkit is a low-level toolkit intended to be used by other
applications that need to perform encoding conversions (e.g., when
importing legacy data into a Unicode-based application). The
primary component of the TECkit package is therefore a library that
performs conversions; this is the "TECkit engine". The engine
relies on mapping tables in a specific binary format (for which
documentation is available); there is a compiler that creates such
tables from a human-readable mapping description (a simple text file).

%package -n %{libname}
Summary:	Conversion library and mapping compiler
Group:		System/Libraries

%description -n %{libname}
TECkit is a low-level toolkit intended to be used by other
applications that need to perform encoding conversions (e.g., when
importing legacy data into a Unicode-based application). The
primary component of the TECkit package is therefore a library that
performs conversions; this is the "TECkit engine". The engine
relies on mapping tables in a specific binary format (for which
documentation is available); there is a compiler that creates such
tables from a human-readable mapping description (a simple text file).

%package -n %{libname_d}
Summary:	Development files for teckit
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{libname_d}
Development files for teckit.

%package -n %{libname_d_s} 
Summary:	Static Library for developing applications with %{name}
Group:		Development/C
Requires:	%{libname_d} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{libname_d_s}
Static library for teckit.

%prep
%setup -q
[ -e autogen.sh ] && ./autogen.sh
%__rm -r zlib*

%build
%configure --enable-static
%make

%install
%makeinstall_std

%{_bindir}/chrpath -d %{buildroot}%{_bindir}/sfconv
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/teckit_compile
%{_bindir}/chrpath -d %{buildroot}%{_bindir}/txtconv

%check
%{make} check

%files
%{_bindir}/sfconv
%{_bindir}/teckit_compile
%{_bindir}/txtconv
%{_mandir}/man1/*

%files -n %{libname}
%doc AUTHORS ChangeLog COPYING INSTALL NEWS README
%{_libdir}/libTECkit.so.*
%{_libdir}/libTECkit_Compiler.so.*

%files -n %{libname_d}
%doc docs/*.pdf
%dir %{_includedir}/teckit/
%{_includedir}/teckit/TECkit_Common.h
%{_includedir}/teckit/TECkit_Compiler.h
%{_includedir}/teckit/TECkit_Engine.h
%{_libdir}/libTECkit.so
%{_libdir}/libTECkit_Compiler.so
%{_libdir}/pkgconfig/*.pc

%files -n %{libname_d_s}
%{_libdir}/libTECkit.a
%{_libdir}/libTECkit_Compiler.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17528 |21mr|telegram-desktop-5.6.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# See also:
# https://github.com/rpmfusion/telegram-desktop
# https://github.com/rpmfusion/tg_owt

# XXX rpmlint fails (it has a bug)
#DEBUG:   File "/usr/share/rpmlint/AbstractCheck.py", line 51, in check
#DEBUG:     return self.check_binary(pkg)
#DEBUG:   File "/usr/share/rpmlint/DistributionCheck.py", line 40, in check_binary
#DEBUG:     for fname in pkg.files():
#DEBUG:   File "/usr/share/rpmlint/Pkg.py", line 633, in files
#DEBUG:     self._gatherFilesInfo()
#DEBUG:   File "/usr/share/rpmlint/Pkg.py", line 718, in _gatherFilesInfo
#DEBUG:     pkgfile.size = sizes[idx]
#DEBUG: IndexError: list index out of range
%global _build_pkgcheck_set /bin/true

# Telegram Desktop require patched version of rlottie since 1.8.0.
# Pull Request pending: https://github.com/Samsung/rlottie/pull/252
%bcond_with rlottie
%bcond_without fonts
%bcond_without webkit
# use Qt5 on platforms <rosa2023.1
%if %{mdvver} >= 202310
%bcond_without qt6
%else
%bcond_with qt6
%endif

# Telegram Desktop's constants...
%global appname tdesktop
%global tarsuffix -full

# Telegram API tokens...
%global apiid 208164
%global apihash dfbe1bc42dc9d20507e17d1814cc2f0a

# From https://github.com/telegramdesktop/tdesktop/blob/v%{version}/snap/snapcraft.yaml
%define tg_owt_commit 4a60ce1ab9fdb962004c6a959f682ace3db50cbd
# https://chromium.googlesource.com/libyuv/libyuv
# Commit hash is from https://github.com/desktop-app/tg_owt/tree/master/src/third_party
%define libyuv_commit 04821d1e7d60845525e8db55c7bcd41ef5be9406
# Just latest commit from https://github.com/cisco/libsrtp
%define libsrtp_commit a566a9cfcd619e8327784aa7cff4a1276dc1e895
# https://github.com/abseil/abseil-cpp/releases
%define abseil_version 20240116.2

%define ada_version 2.9.0

# Decrease debuginfo verbosity to reduce memory consumption...
%if %{__isa_bits} == 32
%global debugcflags %{nil}
%global debug_package %{nil}
%endif

%if %{mdvver} <= 202115
%global __provides_exclude ^lib(gio.*|giomm.*|glib.*|gmodule.*|gobject.*|gthread.*).so.++$
%global __requries_exclude ^lib(gio.*|giomm.*|glib.*|gmodule.*|gobject.*|gthread.*).so.++$

%global ldflags %{ldflags} -Wl,-rpath,%{_libdir}/%{name}
%endif

%define glib_ver 2.78.6
%define glibmm_ver 2.78.1

Name:		telegram-desktop
Version:	5.6.2
Release:	3
Group:	Networking/Instant messaging

# Application and 3rd-party modules licensing:
# * Telegram Desktop - GPLv3+ with OpenSSL exception -- main tarball;
# * rlottie - LGPLv2+ -- static dependency;
# * qt_functions.cpp - LGPLv3 -- build-time dependency.
License: GPLv3+ and LGPLv2+ and LGPLv3
URL: https://github.com/telegramdesktop/tdesktop
Summary: Telegram Desktop official messaging app

Source0: %{url}/releases/download/v%{version}/%{appname}-%{version}%{tarsuffix}.tar.gz
Source1: https://github.com/desktop-app/tg_owt/archive/%{tg_owt_commit}.tar.gz?/tg_owt-%{tg_owt_commit}.tar.gz
# API of libyuv is not stable, upstgream of tdesktop supports only bundled libyuv in tg_owt and tdesktop
Source2: https://chromium.googlesource.com/libyuv/libyuv/+archive/%{libyuv_commit}.tar.gz?/libyuv-%{libyuv_commit}.tar.gz
Source3: https://github.com/cisco/libsrtp/archive/%{libsrtp_commit}.tar.gz?/libsrtp-%{libsrtp_commit}.tar.gz
Source4: https://github.com/abseil/abseil-cpp/archive/%{abseil_version}.tar.gz?/abseil-cpp-%{abseil_version}.tar.gz
Source5: https://github.com/GNOME/glib/archive/refs/tags/%{glib_ver}.tar.gz?/glib-%{glib_ver}.tar.gz
Source7: https://github.com/GNOME/glibmm/archive/refs/tags/%{glibmm_ver}.tar.gz?/glibmm-%{glibmm_ver}.tar.gz
Source8: https://github.com/GNOME/gvdb/archive/0854af0fdb6d527a8d1999835ac2c5059976c210.zip?/gvdb-0854af0fdb6d527a8d1999835ac2c5059976c210.zip
Source9: https://github.com/ada-url/ada/archive/v%{ada_version}.tar.gz?/ada-%{ada_version}.tar.gz
# Upstream rejected https://github.com/telegramdesktop/tdesktop/pull/8263
Patch1: ru.diff
# https://github.com/telegramdesktop/tdesktop/issues/16311#issuecomment-840784493
Patch2: Disable-register-custom-scheme.patch
# e2k
Patch3:	e2k-tg-owt.patch
Patch4:	tg_owt-system-libs.patch
%if %{mdvver} <= 202115
Patch6:	variant-inc.patch
%endif
Patch7:	webview-build-fix.patch

# Telegram Desktop require patched version of rlottie since 1.8.0.
# Pull Request pending: https://github.com/Samsung/rlottie/pull/252
%if %{with rlottie}
BuildRequires:	rlottie-devel
%else
Provides: bundled(rlottie) = 0~git
%endif

# Compilers and tools...
BuildRequires:	desktop-file-utils
BuildRequires:	cmake
BuildRequires:	gyp

# Development packages for Telegram Desktop...
BuildRequires:	guidelines-support-library-devel
BuildRequires:	mapbox-variant-devel
BuildRequires:	google-crc32c-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	expected-devel
BuildRequires:	qr-code-generator-devel
BuildRequires:	qr-code-generator-c++-devel
BuildRequires:	openal-soft-devel
BuildRequires:	libstdc++-devel
BuildRequires:	openssl-devel
BuildRequires:	minizip-devel
BuildRequires:	xxhash-devel
BuildRequires:	xcb-util-keysyms-devel
BuildRequires:	appstream-util
%if %{with qt6}
BuildRequires:	qt6-cmake
BuildRequires:	cmake(OpenAL)
BuildRequires:	cmake(Qt6Concurrent)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6Core5Compat)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6OpenGLWidgets)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6WaylandClient)
BuildRequires:	cmake(Qt6Widgets)
%else
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5WaylandCompositor)
BuildRequires:	pkgconfig(dbusmenu-qt5)
%endif
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(rnnoise)
BuildRequires:	pkgconfig(liblzma)
%if %{mdvver} <= 202115
BuildRequires:	chrpath
BuildRequires:	%{_bindir}/dot
BuildRequires:	meson
BuildRequires:	mm-common
BuildRequires:	perl-open
BuildRequires:	perl(XML::Parser)
BuildRequires:	doxygen
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(libavresample)
%else
BuildRequires:	glib2.0-devel
BuildRequires:	pkgconfig(glibmm-2.68)
BuildRequires:	range-v3-devel
%endif
BuildRequires:	pkgconfig(json11)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(RapidJSON)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(wayland-client)
%if %{with webkit}
BuildRequires:	pkgconfig(webkitgtk-6.0)
%endif
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-record)
BuildRequires:	pkgconfig(xcb-screensaver)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	ninja
BuildRequires:	girepository-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	enchant2-devel
# using bundled abseil-cpp
%if %{mdvver} == 202310
BuildRequires:	cmake(absl)
%endif
BuildRequires:	clang
# for tg_owt
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libswscale)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(openh264)
BuildRequires:	pkgconfig(sigc++-3.0)
# for bundled cppgir
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(fmt)
# XXX https://gitlab.com/mnauw/cppgir/-/blob/f90581/CMakeLists.txt#L68
# Strange library, only libstdc++fs.a exists, .so does not
BuildRequires:	stdc++-static-devel

Requires:	hicolor-icon-theme
# keep in sync with telegram-webkit.patch
%if %{with webkit}
%if %{mdvver} >= 202310
Requires:	(libwebkit2gtk-4.1.so.0%{_arch_tag_suffix} or libwebkit2gtk-4.0.so.37%{_arch_tag_suffix})
%else
# only libwebkit2gtk-4.0.so.37 exists in rosa2021.1
Requires:	libwebkit2gtk-4.0.so.37%{_arch_tag_suffix}
%endif
# The library runs /usr/libexec/webkit2gtk-4.0/WebKitNetworkProcess, but in general telegram-desktop can work without this
# dependency, so make it soft, but keep dep from library strict to be able to catch breakage in repoclosure
# Not needed in rosa2023.1 after https://abf.io/import/webkit4/commit/8bdf980517
Recommends:	webkit2gtk4.0
# end webkit
%endif

%if %{with fonts}
Requires:	fonts-ttf-opensans
%endif
%if %{with qt6}
Requires:	qt6-qtimageformats%{?_isa}
%else
Requires:	qt5-qtimageformats%{?_isa}
%endif
# Telegram Desktop require patched version of lxqt-qtplugin.
# Pull Request pending: https://github.com/lxqt/lxqt-qtplugin/pull/52
Provides:	bundled(lxqt-qtplugin) = 0.14.0~git
Provides:	telegram = %{EVRD}

ExcludeArch: %{ix86} %{e2k}

%description
Telegram is a messaging app with a focus on speed and security, it’s super
fast, simple and free. You can use Telegram on all your devices at the same
time — your messages sync seamlessly across any number of your phones,
tablets or computers.

With Telegram, you can send messages, photos, videos and files of any type
(doc, zip, mp3, etc), as well as create groups for up to 50,000 people or
channels for broadcasting to unlimited audiences. You can write to your
phone contacts and find people by their usernames. As a result, Telegram is
like SMS and email combined — and can take care of all your personal or
business messaging needs.

%prep
# Unpacking Telegram Desktop source archive...
%setup -q -n %{appname}-%{version}%{tarsuffix} -a1
# stabilize path in patches
mv tg_owt-%{tg_owt_commit} tg_owt
tar -xf %{SOURCE2} -C tg_owt/src/third_party/libyuv
tar -xf %{SOURCE3} -C tg_owt/src/third_party/libsrtp --strip=1
tar -xf %{SOURCE4} -C tg_owt/src/third_party/abseil-cpp --strip=1
tar -xf %{SOURCE9} -C %{_builddir}

%autopatch -p1

%if %{mdvver} <= 202115
mkdir -p %{_builddir}/bundle_glib
tar xf %{SOURCE5} -C %{_builddir}
tar xf %{SOURCE7} -C %{_builddir}
unzip -qq %{SOURCE8} -d %{_builddir}

rm -frv \
	%{_builddir}/glibmm-%{glibmm_ver}/subprojects/{glib,gvdb}

mv -v %{_builddir}/glib-%{glib_ver} \
	%{_builddir}/glibmm-%{glibmm_ver}/subprojects/glib

mv -v %{_builddir}/gvdb-* \
	%{_builddir}/glibmm-%{glibmm_ver}/subprojects/gvdb
%endif

%ifarch %{e2k}
sed -i 's!cxx_std_20!cxx_std_17!g' cmake/init_target.cmake tg_owt/cmake/init_target.cmake
%endif

%build
pushd %{_builddir}/ada-%{ada_version}
mkdir -p ../ada
%setup_compile_flags
%__cmake -S . -B build \
	-DCMAKE_INSTALL_PREFIX:PATH="" \
	-DADA_TESTING=OFF \
	-DADA_TOOLS=OFF   \
	-DBUILD_SHARED_LIBS=OFF
%make -C build
%makeinstall_std -C build DESTDIR=%{_builddir}/ada
popd

rm -fr %{_builddir}/ada-%{ada_version}

%if %{mdvver} <= 202115
pushd %{_builddir}/glibmm-*
%setup_compile_flags
meson bld --prefix="%{_prefix}"		\
	-Dmaintainer-mode=true		\
        --default-library shared	\
	-Dbuild-documentation=false	\
	-Dbuild-examples=false
ninja -C bld
DESTDIR="%{_builddir}/bundle_glib" ninja install -C bld
popd

sed -i -e "s|/usr|%{_builddir}/bundle_glib/usr|g" \
	%{_builddir}/bundle_glib%{_libdir}/pkgconfig/*.pc
export PKG_CONFIG_PATH="%{_builddir}/bundle_glib%{_libdir}/pkgconfig:$PKG_CONFIG_PATH"

rm -fr %{_builddir}/glibmm-*
%endif

( cd tg_owt

# Make sure nothing pulls in superfluous bundled libraries
rm -rf src/third_party/libvpx cmake/libvpx.cmake src/third_party/openh264 cmake/libopenh264.cmake
sed -i'' -e '/include(cmake\/libvpx.cmake)/d' -e '/include(cmake\/libopenh264.cmake)/d' CMakeLists.txt

# (mikhailnov) Building a static library only because:
# - upstream of telegram-desktop officially supports only static linkage of tg_owt
# - there are some community efforts to support using it as a shared library
#   https://github.com/desktop-app/tg_owt/commit/13d889f52ebf5a1a54
# - but support of this may be dropped anytime
#   https://www.opennet.ru/opennews/art.shtml?num=54681
# - telegram-desktop is and will be the only consumer of tg_owt
# So, to my mind, it is absolutely OK to build a static version.
# The only advantage of the dynamic one is potentially a bit easier debugging.

# CMAKE_BUILD_TYPE should always be Release due to some hardcoded checks.

%cmake -G Ninja\
    -DCMAKE_BUILD_TYPE=Release \
    -DBUILD_SHARED_LIBS=OFF
%ninja_build
)

%cmake -G Ninja \
    -DCMAKE_BUILD_TYPE=Release \
%if 0
    -DCMAKE_C_COMPILER=$(which clang) \
    -DCMAKE_CXX_COMPILER=$(which clang++) \
%endif
    -Dtg_owt_DIR="${PWD}/../tg_owt/build" \
%if %{without fonts}
    -DDESKTOP_APP_USE_PACKAGED_FONTS:BOOL=OFF \
%endif
%if %{with rlottie}
    -DDESKTOP_APP_LOTTIE_USE_CACHE:BOOL=OFF \
%endif
%if %{with qt6}
    -DQT_VERSION_MAJOR=6 \
%else
    -DQT_VERSION_MAJOR=5 \
%endif
    -DTDESKTOP_API_ID=%{apiid} \
    -DTDESKTOP_API_HASH=%{apihash} \
    -Dada_DIR:PATH=%{_builddir}/ada/%{_lib}/cmake/ada

%ninja_build

%install
%ninja_install -C build

%if %{mdvver} <= 202115
mkdir -p %{buildroot}%{_libdir}/%{name}
pushd %{buildroot}%{_libdir}/%{name}

for libs in libgio libglib libgmodule libgobject libgthread;do
cp -frv %{_builddir}/bundle_glib%{_libdir}/$libs-2.0.so.0.7800.6 .

ln -sv $libs-2.0.so.0.7800.6 $libs-2.0.so.0
done

for libs2 in libgiomm libglibmm libglibmm_generate_extra_defs;do
cp -frv %{_builddir}/bundle_glib%{_libdir}/$libs2-2.68.so.1.3.0 .

ln -sv $libs2-2.68.so.1.3.0 $libs2-2.68.so.1
	done
popd

rm -fr %{_builddir}/bundle_glib
%endif

# Compatibility with symlinks and configs before the desktop file was renamed
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=13419#c2
# This will keep valid "Favourites" entries in KDE Kickoff and XFCE Whisker menus,
# but will not help on GNOME with default configuration on ROSA.
# Based on discussion with mymedia@ and Ilya Fedin.
! test -f %{buildroot}%{_datadir}/applications/telegramdesktop.desktop
sed -E -e 's,^MimeType=.+,OnlyShowIn=NotExistingDE,' %{buildroot}%{_datadir}/applications/org.telegram.desktop.desktop > %{buildroot}%{_datadir}/applications/telegramdesktop.desktop
grep -q '^OnlyShowIn=NotExistingDE$' %{buildroot}%{_datadir}/applications/telegramdesktop.desktop

%check
# seems to contain <url> with newer type attribute than supported
#appstream-util validate-relax --nonet %{buildroot}%{_metainfodir}/org.telegram.desktop.metainfo.xml
# v1.5 is not supported yet
#desktop-file-validate %{buildroot}%{_datadir}/applications/org.telegram.desktop.desktop

%files
%doc README.md changelog.txt
%license LICENSE LEGAL
%{_bindir}/%{name}*
%{_datadir}/applications/org.telegram.desktop.desktop
%{_datadir}/applications/telegramdesktop.desktop
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/dbus-1/services/org.telegram.desktop.service
%{_metainfodir}/org.telegram.desktop.metainfo.xml
%{_iconsdir}/hicolor/symbolic/apps/*.svg
%if %{mdvver} <= 202115
%{_libdir}/%{name}/*.so*
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17529 |21mr|telepathy-accounts-signon-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Telepathy providers for libaccounts/libsignon
Name:		telepathy-accounts-signon
Version:	2.1
Release:	1
License:	LGPLv2.1+
Group:		Networking/Instant messaging
Url:		https://gitlab.com/accounts-sso/%{name}
Source0:	https://gitlab.com/accounts-sso/%{name}/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(mission-control-plugins)
BuildRequires:	pkgconfig(libaccounts-glib)
BuildRequires:	pkgconfig(libsignon-glib)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(signond)

%description
A mission control plugin for Telepathy, integrating with libaccounts and
libsignon to provide IM accounts and authentication.

%files
%{_libdir}/mission-control-plugins.0/mcp-account-manager-accounts-sso.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17530 |21mr|telepathy-farstream-0.6.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major		3
%define	libname		%mklibname %{name} %{major}
%define	develname	%mklibname -d %{name}

Summary:	Stream Engine to handle media streaming channels
Name:		telepathy-farstream
Version:	0.6.2
Release:	5
License:	LGPLv2+
Group:		Networking/Instant messaging
Url:		http://telepathy.freedesktop.org/wiki/
Source0:	http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(farstream-0.2)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(telepathy-glib) >= 0.13.4
BuildRequires:	gobject-introspection-devel
Provides:       %{name}-python = %{version}
Obsoletes:      %{name}-python < 0.6.0

%description
Stream Engine is a Telepathy client that uses Farsight and GStreamer
to handle media streaming channels. It's used as a background process
by other Telepathy clients, rather than presenting any user interface
of its own.

Telepathy is a D-Bus framework for unifying real time communication,
including instant messaging, voice calls and video calls. It abstracts
differences between protocols to provide a unified interface for
applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Group:		System/Libraries
Summary:	Stream Engine to handle media streaming channels

%description -n %{libname}
Stream Engine is a Telepathy client that uses Farsight and GStreamer
to handle media streaming channels. It's used as a background process
by other Telepathy clients, rather than presenting any user interface
of its own.

Telepathy is a D-Bus framework for unifying real time communication,
including instant messaging, voice calls and video calls. It abstracts
differences between protocols to provide a unified interface for
applications.

%files -n %{libname}
%{_libdir}/libtelepathy-farstream.so.%{major}*
%{_libdir}/girepository-1.0/TelepathyFarstream-0.6.typelib

#----------------------------------------------------------------------------

%package -n %{develname}
Group:		Development/C
Summary:	Stream Engine to handle media streaming channels
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the development library and header files
for %{name}.

%files -n %{develname}
%doc ChangeLog
%{_libdir}/libtelepathy-farstream.so
%{_includedir}/telepathy-1.0/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gtk-doc/html/%{name}
%{_datadir}/gir-1.0/TelepathyFarstream-0.6.gir

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure --disable-static
%make


%install
rm -rf %{buildroot}
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17531 |21mr|telepathy-filesystem-0.0.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Telepathy filesystem layout
Name:		telepathy-filesystem
Version:	0.0.1
Release:	14
License:	Public Domain
Group:		System/Base
Requires:	filesystem
BuildArch:	noarch

%description
This package provides some directories which are required by other packages
which comprise the Telepathy release.

%files
%dir %{_datadir}/telepathy
%dir %{_datadir}/telepathy/managers

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_datadir}/telepathy/managers

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17532 |21mr|telepathy-gabble-0.18.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# .so is just for plugin thing, not a devel .so
%global __requires_exclude devel\\(.*\\)
%global __provides_exclude devel\\(.*\\)

Name:		telepathy-gabble
Version:	0.18.4
Release:	2
Summary:	A Jabber/XMPP connection manager
Group:		Networking/Instant messaging
License:	LGPLv2+
URL:		http://telepathy.freedesktop.org/wiki/
Source0:	http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
Source100:	telepathy-gabble.rpmlintrc
# https://bugs.freedesktop.org/show_bug.cgi?id=78093
Patch0:   telepathy-gabble-carbons-support.patch
Patch1:   telepathy-gabble-0.18.4-openssl11.patch
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gthread-2.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(nice)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(telepathy-glib)
#BuildRequires:	pkgconfig(telepathy-yell)
BuildRequires:	rootcerts
BuildRequires:	libxslt-proc
BuildRequires:	pkgconfig(python2)
Requires:	telepathy-filesystem

%description
A Jabber/XMPP connection manager, that handles single and multi-user
chats and voice calls.

%files
%doc NEWS README AUTHORS
%doc %{_docdir}/telepathy-gabble/*.html
%{_bindir}/telepathy-gabble-xmpp-console
%{_datadir}/dbus-1/services/*.service
%{_datadir}/telepathy/managers/*.manager
%{_libexecdir}/telepathy-gabble
%{_libdir}/telepathy/gabble-0
%{_mandir}/man*/*.*

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
export PYTHON=%{__python2}
%configure --with-ca-certificates=%{_sysconfdir}/pki/tls/certs/ca-bundle.crt
%make

%install
%makeinstall_std

# don't ship .la
find %buildroot -name '*.la' | xargs rm -f

sed '1 s,^.*$,#!%{__python2},' -i %{buildroot}%{_bindir}/telepathy-gabble-xmpp-console

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17533 |21mr|telepathy-glib-0.24.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define api 0.12
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Summary:	A glib utility library for the telepathy framework
Name:		telepathy-glib
Version:	0.24.2
Release:	1
Group:		Networking/Instant messaging
License:	LGPLv2+
URL:		http://telepathy.freedesktop.org/wiki/
Source0:	http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
Patch0:		telepathy-glib-0.11.11-missing-file.patch

BuildRequires:	gtk-doc
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(python)
BuildRequires:	vala-devel >= 0.12
BuildRequires:	vala-tools

%description
%{name} is a glib utility library for the telepathy framework.

%package -n %{libname}
Summary:	A glib utility library for the telepathy framework
Group:		System/Libraries
Requires:	telepathy-filesystem
%rename		%{name}

%description -n %{libname}
%name is a glib utility library for the telepathy framework.

%package -n %{devname}
Summary:	A glib utility library for the telepathy framework
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{devname}
%{name} is a glib utility library for the telepathy framework.

%prep
%setup -q
%patch0 -p0

%build
%configure \
	--enable-vala-bindings \
	--disable-static

%make

%install
%makeinstall_std
find %{buildroot} -name '*.la' -exec rm -f {} ';'

%files -n %{libname}
%{_libdir}/libtelepathy-glib.so.%{major}*
%{_libdir}/girepository-1.0/TelepathyGLib-%{api}.typelib

%files -n %{devname}
%{_libdir}/libtelepathy-glib.so
%{_datadir}/gir-1.0/TelepathyGLib-%{api}.gir
%dir %{_includedir}/telepathy-1.0/
%dir %{_includedir}/telepathy-1.0/telepathy-glib/
%dir %{_includedir}/telepathy-1.0/telepathy-glib/_gen
%{_includedir}/telepathy-1.0/telepathy-glib/*.h
%{_includedir}/telepathy-1.0/telepathy-glib/_gen/*.h
%{_datadir}/gtk-doc/html/telepathy-glib/
%{_libdir}/pkgconfig/telepathy-glib.pc
%{_datadir}/vala/vapi/telepathy-glib.deps
%{_datadir}/vala/vapi/telepathy-glib.vapi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17534 |21mr|telepathy-haze-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A multiprotocol connection manager based on pidgin
Name:		telepathy-haze
Version:	0.8.1
Release:	1
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		http://telepathy.freedesktop.org/wiki/
Source0:	http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
Patch0:		telepathy-automake-1.13.patch
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(purple)
BuildRequires:	pkgconfig(telepathy-glib)
Requires:	telepathy-filesystem
Recommends:	pidgin-plugins

%description
This connection manager allows you to use libpurple, pidgin backend, with
telepathy, allowing you to access to numerous instant messaging network with
telepathy enabled software, such as empathy.

%files
%doc AUTHORS NEWS
%{_datadir}/dbus-1/services/*.service
%{_libexecdir}/%{name}
%{_mandir}/man*/*.xz

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17535 |21mr|telepathy-idle-0.2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		telepathy-idle
Version:	0.2.0
Release:	7
Summary:	A Telepathy connection manager implementation for the IRC protocol
Group:		Networking/Instant messaging
License:	LGPLv2
URL:		http://telepathy.freedesktop.org/wiki/
Source0:	http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.gz
# https://github.com/TelepathyIM/telepathy-idle/pull/8
Patch0:		0001-tools-Fix-errors-running-glib-ginterface-gen-under-P.patch
Patch1:		0002-tools-Remove-outdated-is-unicode-checks.patch
# https://gitlab.freedesktop.org/telepathy/telepathy-idle/-/merge_requests/3
Patch2:		properly-handle-long-irc-messages.patch
# https://gitlab.freedesktop.org/telepathy/telepathy-idle/-/merge_requests/2
Patch3:		fix-critical.patch
BuildRequires:	glib2-devel
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(libxslt) libxslt-proc
BuildRequires:	python3
Requires:	telepathy-filesystem
Requires:	telepathy-glib

%description
A Telepathy connection manager implementation for the IRC protocol.

%files
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.ConnectionManager.idle.service
%{_datadir}/telepathy/managers/idle.manager
%{_libexecdir}/telepathy-idle
%{_mandir}/man8/telepathy-idle.8*

#------------------------------------------------------------------------------------
%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17536 |21mr|telepathy-kde-accounts-kcm-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-accounts-kcm

Summary:	KControl Module which handles Telepathy Accounts
Name:		telepathy-kde-accounts-kcm
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/extragear/network/telepathy/ktp-accounts-kcm
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	intltool
BuildRequires:	kaccounts-devel
BuildRequires:	kf5codecs-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(TelepathyQt5)
Requires:	telepathy-kde-auth-handler
Requires:	telepathy-kde-common-internals

%description
This is a KControl Module which handles adding/editing/removing Telepathy
Accounts. It interacts with any Telepathy Spec compliant AccountManager,
such as telepathy-accountmanager-kwallet to manipulate the accounts.

%files -f %{name}.lang
%{_kde5_datadir}/telepathy/profiles/
%{_kde5_services}/*.desktop
%{_kde5_servicetypes}/ktpaccountskcminternal-accountuiplugin.desktop
%{_datadir}/accounts/providers/kde/*.provider
%{_datadir}/accounts/services/kde/*.service
%{_qt5_plugindir}/kaccounts/ui/ktpaccountskcm_plugin_kaccounts.so
%{_qt5_plugindir}/ktpaccountskcm_plugin_*.so

#------------------------------------------------------------------------------

%define major 9
%define libname %mklibname ktpaccountskcminternal %{major}

%package -n %{libname}
Summary:	Library package for %{name}
Group:		System/Libraries

%description -n %{libname}
Library package for %{name}.

%files -n %{libname}
%{_kde5_libdir}/libktpaccountskcminternal.so.%{major}
%{_kde5_libdir}/libktpaccountskcminternal.so.%{version}

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_ktp_accounts kcmtelepathyaccounts_plugin_butterfly kcmtelepathyaccounts_plugin_gabble \
	kcmtelepathyaccounts_plugin_haze kcmtelepathyaccounts_plugin_idle kcmtelepathyaccounts_plugin_morse \
	kcmtelepathyaccounts_plugin_pintxo kcmtelepathyaccounts_plugin_rakia kcmtelepathyaccounts_plugin_salut \
	kcmtelepathyaccounts_plugin_sipe kcmtelepathyaccounts_plugin_sunshine %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17537 |21mr|telepathy-kde-approver-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-approver

Summary:	KDE Channel Approver for Telepathy
Name:		telepathy-kde-approver
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://community.kde.org/Real-Time_Communication_and_Collaboration
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5service-devel
BuildRequires:	pkgconfig(TelepathyQt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)

%description
KDE Channel Approver for Telepathy.

%files -f kded_ktp_approver.lang
%{_kde5_services}/kded/ktp_approver.desktop
%{_kde5_servicetypes}/ktp-approver.desktop
%{_kde5_sysconfdir}/xdg/ktp_approverrc
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.Approver.service
%{_qt5_plugindir}/kded_ktp_approver.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kded_ktp_approver

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17538 |21mr|telepathy-kde-auth-handler-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-auth-handler

Summary:	UI/Kwallet Integration for telepathy-kde
Name:		telepathy-kde-auth-handler
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://projects.kde.org/projects/playground/network/telepathy/telepathy-auth-handler
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kaccounts-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5webkit-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(accounts-qt5)
BuildRequires:	pkgconfig(libsignon-qt5)
BuildRequires:	pkgconfig(qca2-qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(TelepathyQt5)
Requires:	telepathy-kde-common-internals
Requires:	qca2-qt5-plugin-gnupg
Requires:	qca2-qt5-plugin-openssl

%description
Provide UI/KWallet Integration For Passwords and SSL Errors on Account Connect.

%files -f ktp-auth-handler.lang
%{_kde5_libexecdir}/ktp-auth-handler
%{_datadir}/telepathy/clients/KTp.ConfAuthObserver.client
%{_datadir}/telepathy/clients/KTp.SASLHandler.client
%{_datadir}/telepathy/clients/KTp.TLSHandler.client
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.ConfAuthObserver.service
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.SASLHandler.service
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.TLSHandler.service

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang ktp-auth-handler

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17539 |21mr|telepathy-kde-call-ui-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-call-ui

Summary:	Voice/Video Call UI for Telepathy
Name:		telepathy-kde-call-ui
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/network/telepathy/ktp-call-ui
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(farstream-0.2)
BuildRequires:	pkgconfig(phonon4qt5)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5GStreamer-1.0)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(telepathy-farstream)
BuildRequires:	pkgconfig(TelepathyQt5)
BuildRequires:	pkgconfig(TelepathyQt5Farstream)
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-ugly
Recommends:	telepathy-kde-accounts-kcm
Requires:	telepathy-kde-common-internals

%description
Voice/Video Call UI for Telepathy.

%files -f %{oname}.lang
%{_kde5_bindir}/ktp-dialout-ui
%{_kde5_datadir}/ktp-call-ui/
%{_kde5_libexecdir}/ktp-call-ui
%{_kde5_xmlguidir}/ktp-call-ui/callwindowui.rc
%{_datadir}/telepathy/clients/KTp.CallUi.client
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.CallUi.service

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17540 |21mr|telepathy-kde-common-internals-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ktp-common-internals
%define major 9

Summary:	KDE Telepathy Parts
Name:		telepathy-kde-common-internals
Version:	22.12.3
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/extragear/network/telepathy/ktp-common-internals
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	doxygen
BuildRequires:	extra-cmake-modules
BuildRequires:	kaccounts-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5people-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5wallet-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	telepathy-logger-qt5-devel
BuildRequires:	pkgconfig(accounts-qt5)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libotr)
BuildRequires:	pkgconfig(libsignon-qt5)
BuildRequires:	pkgconfig(mission-control-plugins)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(TelepathyQt5)
Requires:	kaccounts-integration
Requires:	kaccounts-providers
Requires:	telepathy-accounts-signon
Requires:	telepathy-logger

%description
This package provides the commons part used by telepathy-kde.

%files -f %{name}.lang
%{_kde5_datadir}/config.kcfg/ktp-proxy-config.kcfg
%{_kde5_datadir}/katepart5/syntax/ktpdebugoutput.xml
%{_kde5_datadir}/telepathy/clients/KTp.Proxy.client
%{_kde5_iconsdir}/hicolor/*/*/*
%{_kde5_libexecdir}/ktp-proxy
%{_kde5_notificationsdir}/ktelepathy.notifyrc
%{_kde5_services}/ktploggerplugin_tplogger.desktop
%{_kde5_servicetypes}/ktp_logger_plugin.desktop
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.Proxy.service
%{_qt5_plugindir}/kaccounts/daemonplugins/kaccounts_ktp_plugin.so
%{_qt5_plugindir}/kpeople/actions/ktp_kpeople_plugin.so
%{_qt5_plugindir}/kpeople/datasource/im_persons_data_source_plugin.so
%{_qt5_plugindir}/kpeople/widgets/imdetailswidgetplugin.so
%{_qt5_plugindir}/kpeople/widgets/kpeople_chat_plugin.so
%{_qt5_plugindir}/ktploggerplugin_tplogger.so

#----------------------------------------------------------------------------

%define libktpcommoninternals %mklibname ktpcommoninternals %{major}

%package -n %{libktpcommoninternals}
Summary:	Runtime library for %{name}
Group:		System/Libraries
Requires:	telepathy-kde-qml

%description -n %{libktpcommoninternals}
Runtime library for %{name}.

%files -n %{libktpcommoninternals}
%{_kde5_libdir}/libKTpCommonInternals.so.%{major}
%{_kde5_libdir}/libKTpCommonInternals.so.%{version}

#----------------------------------------------------------------------------

%define libktplogger %mklibname ktplogger %{major}

%package -n %{libktplogger}
Summary:	Runtime library for %{name}
Group:		System/Libraries

%description -n %{libktplogger}
Runtime library for %{name}.

%files -n %{libktplogger}
%{_kde5_libdir}/libKTpLogger.so.%{major}
%{_kde5_libdir}/libKTpLogger.so.%{version}

#----------------------------------------------------------------------------

%define libktpmodels %mklibname ktpmodels %{major}

%package -n %{libktpmodels}
Summary:	Runtime library for %{name}
Group:		System/Libraries

%description -n %{libktpmodels}
Runtime library for %{name}.

%files -n %{libktpmodels}
%{_kde5_libdir}/libKTpModels.so.%{major}
%{_kde5_libdir}/libKTpModels.so.%{version}

#----------------------------------------------------------------------------

%define libktpotr %mklibname ktpotr %{major}

%package -n %{libktpotr}
Summary:	Runtime library for %{name}
Group:		System/Libraries

%description -n %{libktpotr}
Runtime library for %{name}.

%files -n %{libktpotr}
%{_kde5_libdir}/libKTpOTR.so.%{major}
%{_kde5_libdir}/libKTpOTR.so.%{version}

#----------------------------------------------------------------------------

%define libktpwidgets %mklibname ktpwidgets %{major}

%package -n %{libktpwidgets}
Summary:	Runtime library for %{name}
Group:		System/Libraries

%description -n %{libktpwidgets}
Runtime library for %{name}.

%files -n %{libktpwidgets}
%{_kde5_libdir}/libKTpWidgets.so.%{major}
%{_kde5_libdir}/libKTpWidgets.so.%{version}

#----------------------------------------------------------------------------

%define qmlname %mklibname telepathy-kde-qml

%package -n %{qmlname}
Summary:	QML plugin for %{name}
Group:		System/Libraries
Provides:	telepathy-kde-qml = %{EVRD}

%description -n %{qmlname}
QML plugin for %{name}.

%files -n %{qmlname}
%dir %{_kde5_qmldir}/org/kde/telepathy/
%{_kde5_qmldir}/org/kde/telepathy/*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/KDE and Qt
Requires:	%{libktpcommoninternals} = %{EVRD}
Requires:	%{libktplogger} = %{EVRD}
Requires:	%{libktpmodels} = %{EVRD}
Requires:	%{libktpotr} = %{EVRD}
Requires:	%{libktpwidgets} = %{EVRD}
Requires:	telepathy-logger-qt5-devel
Requires:	pkgconfig(TelepathyQt5)
Provides:	ktp-devel = %{version}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
Development files for %{name}.

%files -n %{devname}
%{_kde5_includedir}/KTp/
%{_kde5_libdir}/cmake/KTp/
%{_kde5_libdir}/libKTpCommonInternals.so
%{_kde5_libdir}/libKTpLogger.so
%{_kde5_libdir}/libKTpModels.so
%{_kde5_libdir}/libKTpOTR.so
%{_kde5_libdir}/libKTpWidgets.so
%{_kde5_bindir}/ktp-debugger

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang ktp-debugger ktp-common-internals %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17541 |21mr|telepathy-kde-contact-list-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-contact-list

Summary:	KDE Telepathy contact list application
Name:		telepathy-kde-contact-list
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/extragear/network/telepathy/ktp-contact-list
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5people-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	kpeoplevcard-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(TelepathyQt5)
Requires:	telepathy-kde-accounts-kcm
Requires:	telepathy-kde-approver
Requires:	telepathy-kde-auth-handler
Requires:	telepathy-kde-call-ui
Requires:	telepathy-kde-common-internals
Requires:	telepathy-kde-contact-runner
Requires:	telepathy-kde-desktop-applets
Requires:	telepathy-kde-filetransfer-handler
Requires:	telepathy-kde-kded-module
Requires:	telepathy-kde-send-file
Requires:	telepathy-kde-text-ui
# needed by MSN
Recommends:	telepathy-butterfly
#Needed for Jabber
Recommends:	telepathy-gabble
# various protocol provided by libpurple
Recommends:	telepathy-haze
# needed for irc
Recommends:	telepathy-idle
Requires:	telepathy-mission-control
# needed for local XMPP
Recommends:	telepathy-salut

%description
KDE Telepathy contact list application.

%files -f ktp-contactlist.lang
%{_kde5_applicationsdir}/org.kde.ktpcontactlist.desktop
%{_kde5_bindir}/ktp-contactlist
%{_datadir}/dbus-1/services/org.kde.ktpcontactlist.service

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang ktp-contactlist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17542 |21mr|telepathy-kde-contact-runner-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-contact-runner

Summary:	KRunner plugin for KDE Telepathy
Name:		telepathy-kde-contact-runner
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/extragear/network/telepathy/ktp-contact-runner
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5runner-devel
BuildRequires:	kf5service-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(TelepathyQt5)
Requires:	telepathy-kde-common-internals
Provides:	plasma5-runner-ktp-contacts = %{EVRD}

%description
KRunner plugin for KDE Telepathy.

%files -f plasma_runner_ktp_contacts.lang
%{_qt5_plugindir}/kf5/krunner/krunner_ktp_contacts.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_runner_ktp_contacts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17543 |21mr|telepathy-kde-desktop-applets-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-desktop-applets

Summary:	Telepathy KDE desktop applets
Name:		telepathy-kde-desktop-applets
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/extragear/network/telepathy/%{oname}
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(TelepathyQt5)
Requires:	telepathy-kde-common-internals
Requires:	plasma5-applet-ktp-chat
Requires:	plasma5-applet-ktp-contactlist
Requires:	plasma5-applet-ktp-person

%description
Telepathy KDE desktop applets.

%files

#----------------------------------------------------------------------------

%package -n plasma5-applet-ktp-chat
Summary:	Plasma 5 Telepathy chat plasmoid
Group:		Graphical desktop/KDE
Requires:	plasma5-runner-ktp-contacts

%description -n plasma5-applet-ktp-chat
Plasma 5 Telepathy chat plasmoid.

%files -n plasma5-applet-ktp-chat -f plasma_applet_org.kde.ktp-chat.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.ktp-chat/
%{_kde5_datadir}/plasma/plasmoids/org.kde.ktp-chat/*
%dir %{_kde5_qmldir}/org/kde/ktpchat/
%{_kde5_qmldir}/org/kde/ktpchat/*
%{_kde5_services}/plasma-applet-org.kde.ktp-chat.desktop

#----------------------------------------------------------------------------

%package -n plasma5-applet-ktp-contactlist
Summary:	Plasma 5 Telepathy contact list plasmoid
Group:		Graphical desktop/KDE
Requires:	plasma5-runner-ktp-contacts

%description -n plasma5-applet-ktp-contactlist
Plasma 5 Telepathy contact list plasmoid.

%files -n plasma5-applet-ktp-contactlist -f plasma_applet_org.kde.ktp-contactlist.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.ktp-contactlist/
%{_kde5_datadir}/plasma/plasmoids/org.kde.ktp-contactlist/*
%dir %{_kde5_qmldir}/org/kde/ktpcontactlist/
%{_kde5_qmldir}/org/kde/ktpcontactlist/*
%{_kde5_services}/plasma-applet-org.kde.ktp-contactlist.desktop

#----------------------------------------------------------------------------

%package -n plasma5-applet-ktp-person
Summary:	Plasma 5 Telepathy person plasmoid
Group:		Graphical desktop/KDE
Requires:	plasma5-runner-ktp-contacts

%description -n plasma5-applet-ktp-person
Plasma 5 Telepathy person plasmoid.

%files -n plasma5-applet-ktp-person -f plasma_applet_org.kde.person.lang
%dir %{_kde5_datadir}/plasma/plasmoids/org.kde.person/
%{_kde5_datadir}/plasma/plasmoids/org.kde.person/*
%{_kde5_services}/plasma-applet-org.kde.person.desktop

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang plasma_applet_org.kde.ktp-chat

%find_lang plasma_applet_org.kde.ktp-contactlist

%find_lang plasma_applet_org.kde.person

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17544 |21mr|telepathy-kde-filetransfer-handler-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-filetransfer-handler

Summary:	Telepathy KDE File transfer handler
Name:		telepathy-kde-filetransfer-handler
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/network/telepathy/telepathy-filetransfer-handler
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
Requires:	telepathy-kde-common-internals

%description
Telepathy-KDE file transfer handler.

%files -f ktp-filetransfer-handler.lang
%{_kde5_libexecdir}/ktp-filetransfer-handler
%{_datadir}/telepathy/clients/KTp.FileTransferHandler.client
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.FileTransferHandler.service

#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang ktp-filetransfer-handler

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17545 |21mr|telepathy-kde-kded-module-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-kded-module

Summary:	KDE integration for Telepathy
Name:		telepathy-kde-kded-module
Version:	22.12.3
Release:	2
License:	LGPLv2.1+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/extragear/network/telepathy/ktp-kded-module
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5activities-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5configwidgets-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5idletime-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(TelepathyQt5)
Requires:	telepathy-kde-common-internals
Obsoletes:	telepathy-kde-kded-integration-module < 16.08.2

%description
This module sits in KDED and takes care of various bits of system
integration like setting user to auto-away or handling connection errors.

%files -f kded_ktp_integration_module.lang
%{_kde5_services}/kcm_ktp_integration_module.desktop
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.KdedIntegrationModule.service
%{_qt5_plugindir}/kcm_ktp_integration_module.so
%{_qt5_plugindir}/kf5/kded/ktp_integration_module.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kded_ktp_integration_module

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17546 |21mr|telepathy-kde-send-file-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ktp-send-file

Summary:	File Manager plugin to launch a file transfer job with a specified contact
Name:		telepathy-kde-send-file
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/network/telepathy/telepathy-send-file
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(TelepathyQt5)
Requires:	telepathy-kde-common-internals

%description
A File manager plugin to launch a file transfer job with a specified contact.

%files -f %{oname}.lang
%{_kde5_bindir}/ktp-send-file

#--------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{oname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17547 |21mr|telepathy-kde-text-ui-22.12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define oname ktp-text-ui

Summary:	Telepathy handler for Text Chats
Name:		telepathy-kde-text-ui
Version:	22.12.3
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://projects.kde.org/projects/playground/network/telepathy/telepathy-text-ui
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{oname}-%{version}.tar.xz
Source1:	%{name}.rpmlintrc
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5archive-devel
BuildRequires:	kf5dbusaddons-devel
BuildRequires:	kf5emoticons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5itemviews-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5notifyconfig-devel
BuildRequires:	kf5people-devel
BuildRequires:	kf5service-devel
BuildRequires:	kf5sonnet-devel
BuildRequires:	kf5textwidgets-devel
BuildRequires:	kf5webkit-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	ktp-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5WebEngine)
BuildRequires:	pkgconfig(Qt5WebEngineWidgets)
Requires:	telepathy-kde-common-internals
Requires:	telepathy-kde-send-file

%description
Telepathy handler for Text Chats.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.ktplogviewer.desktop
%{_kde5_bindir}/ktp-log-viewer
%{_kde5_datadir}/ktelepathy/*
%{_kde5_datadir}/ktp-log-viewer/log-viewer.rc
%{_kde5_libdir}/libktpchat.so
%{_kde5_libdir}/libktpimagesharer.so
%{_kde5_libexecdir}/ktp-adiumxtra-protocol-handler
%{_kde5_libexecdir}/ktp-text-ui
%{_kde5_services}/adiumxtra.protocol
%{_kde5_services}/kcm_ktp_chat_appearance.desktop
%{_kde5_services}/kcm_ktp_chat_behavior.desktop
%{_kde5_services}/kcm_ktp_chat_messages.desktop
%{_kde5_services}/kcm_ktp_chat_otr.desktop
%{_kde5_services}/kcm_ktp_logviewer_behavior.desktop
%{_kde5_services}/kcm_ktptextui_message_filter_latex.desktop
%{_kde5_services}/kcm_ktptextui_message_filter_emoticons.desktop
%{_kde5_services}/ktptextui_message_filter_bugzilla.desktop
%{_kde5_services}/ktptextui_message_filter_emoticons.desktop
%{_kde5_services}/ktptextui_message_filter_formatting.desktop
%{_kde5_services}/ktptextui_message_filter_geopoint.desktop
%{_kde5_services}/ktptextui_message_filter_highlight.desktop
%{_kde5_services}/ktptextui_message_filter_images.desktop
%{_kde5_services}/ktptextui_message_filter_latex.desktop
%{_kde5_services}/ktptextui_message_filter_otr.desktop
%{_kde5_services}/ktptextui_message_filter_searchexpansion.desktop
%{_kde5_services}/ktptextui_message_filter_tts.desktop
%{_kde5_services}/ktptextui_message_filter_urlexpansion.desktop
%{_kde5_services}/ktptextui_message_filter_youtube.desktop
%{_kde5_servicetypes}/ktptxtui_message_filter.desktop
%{_kde5_xmlguidir}/ktp-text-ui/chatwindow.rc
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.KTp.TextUi.service
%{_datadir}/telepathy/clients/KTp.TextUi.client
%{_qt5_plugindir}/kcm_ktp_chat_appearance.so
%{_qt5_plugindir}/kcm_ktp_chat_behavior.so
%{_qt5_plugindir}/kcm_ktp_chat_messages.so
%{_qt5_plugindir}/kcm_ktp_chat_otr.so
%{_qt5_plugindir}/kcm_ktp_logviewer_behavior.so
%{_qt5_plugindir}/kcm_ktptextui_message_filter_emoticons.so
%{_qt5_plugindir}/kcm_ktptextui_message_filter_latex.so
%{_qt5_plugindir}/ktptextui_message_filter_bugzilla.so
%{_qt5_plugindir}/ktptextui_message_filter_emoticons.so
%{_qt5_plugindir}/ktptextui_message_filter_formatting.so
%{_qt5_plugindir}/ktptextui_message_filter_geopoint.so
%{_qt5_plugindir}/ktptextui_message_filter_highlight.so
%{_qt5_plugindir}/ktptextui_message_filter_images.so
%{_qt5_plugindir}/ktptextui_message_filter_latex.so
%{_qt5_plugindir}/ktptextui_message_filter_otr.so
%{_qt5_plugindir}/ktptextui_message_filter_searchexpansion.so
%{_qt5_plugindir}/ktptextui_message_filter_tts.so
%{_qt5_plugindir}/ktptextui_message_filter_urlexpansion.so
%{_qt5_plugindir}/ktptextui_message_filter_youtube.so
#------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang kcm_ktp_chat_appearance kcm_ktp_chat_behavior kcm_ktp_chat_messages kcm_ktp_chat_otr \
	ktp-adiumxtra-protocol-handler ktp-filters ktp-log-viewer ktp-text-ui ktpchat %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17548 |21mr|telepathy-logger-0.8.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define api 0.2
%define libname %mklibname %{name} %{major}
%define girname %mklibname %{name}-gir %{api}
%define develname %mklibname -d %{name}

Name:		telepathy-logger
Version:	0.8.2
Release:	2
Summary:	A logger for the telepathy framework
Group:		Networking/Instant messaging
License:	LGPLv2+
URL:		http://telepathy.freedesktop.org/wiki/
Source0:	http://telepathy.freedesktop.org/releases/%{name}/%{name}-%{version}.tar.bz2
# https://bugzilla.redhat.com/show_bug.cgi?id=1800190
Patch0:		0001-tools-Fix-the-build-with-Python-3.patch
BuildRequires:	glib2.0-common
BuildRequires:	intltool
BuildRequires:	libxslt-proc
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(telepathy-glib) >= 0.13.4

Requires:	telepathy-filesystem

%description
%{name} is a logger for the telepathy framework.

%files
%{_libexecdir}/%{name}
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Logger.service
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Logger.service
%{_datadir}/telepathy/clients/Logger.client
%{_datadir}/glib-2.0/schemas/org.freedesktop.Telepathy.Logger.gschema.xml

#---------------------------------------------------------------------
%package -n %{libname}
Group:		System/Libraries
Summary:	A logger library for the telepathy framework

%description -n %{libname}
This package contains the shared library for %{name}.

%files -n %{libname}
%{_libdir}/libtelepathy-logger.so.%{major}*

#---------------------------------------------------------------------

%package -n %{girname}
Summary:    GObject Introspection interface description for %{name}
Group:      System/Libraries
Requires:   %{libname} = %{version}-%{release}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/TelepathyLogger-%{api}.typelib

#---------------------------------------------------------------------

%package -n %{develname}
Group:		Development/C
Summary:	A logger library for the telepathy framework
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the development library and header files for 
%{name}.

%files -n %{develname}
%{_libdir}/libtelepathy-logger.so
%{_includedir}/%{name}-%{api}
%{_datadir}/gtk-doc/html/telepathy-logger/
%{_libdir}/pkgconfig/telepathy-logger-%{api}.pc
%{_datadir}/gir-1.0/TelepathyLogger-%{api}.gir

#---------------------------------------------------------------------

%prep
%autosetup -p1
# https://fedoraproject.org/wiki/Changes/Make_ambiguous_python_shebangs_error
pathfix.py -i %__python3 -n tools

# more rpath hacks
%if "%{_libdir}" != "/usr/lib"
sed -i.rpath -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure
%endif

%build
%configure \
	--enable-call \
	--disable-static

sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool

%ifarch %{e2k}
export LC_ALL="C.UTF-8"
%endif
%make LIBS='-lgmodule-2.0'

%install
rm -rf %{buildroot}
%makeinstall_std
find %{buildroot} -name "*.la" -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17549 |21mr|telepathy-logger-qt-17.09.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Telepathy Logging for Qt
Name:		telepathy-logger-qt
Version:	17.09.0
Release:	2
License:	GPLv2+
Group:		Networking/Instant messaging
Url:		https://projects.kde.org/projects/extragear/network/telepathy/%{name}
Source0:	https://github.com/KDE/telepathy-logger-qt/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	extra-cmake-modules
BuildRequires:	qt5-tools
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(telepathy-logger-0.2)
BuildRequires:	pkgconfig(TelepathyQt5)

%description
Telepathy Logging for Qt.

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Telepathy Logging for Qt
Group:		System/Libraries
Provides:	%{name}5 = %{EVRD}

%description -n %{libname}
Telepathy Logging for Qt.

%files -n %{libname}
%{_libdir}/libtelepathy-logger-qt.so.%{major}*
%{_libdir}/libtelepathy-logger-qt.so.0.9.80.0

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files, libraries and development documentation for %{name}
Group:		Development/KDE and Qt
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}5-devel = %{EVRD}

%description -n %{devname}
This package contains the header files, static libraries and development
documentation for %{name}. If you like to develop programs using 
%{name}, you will need to install %{name}-devel.

%files -n %{devname}
%{_includedir}/TelepathyLoggerQt
%{_libdir}/cmake/TelepathyLoggerQt
%{_libdir}/libtelepathy-logger-qt.so

#------------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_qt5 \
	-DBUILD_SHARED_LIBS=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17550 |21mr|telepathy-mission-control-5.16.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

%define major 0
%define libname %mklibname mission-control-plugins %major
%define develname %mklibname -d mission-control-plugins

Name:           telepathy-mission-control
Version:	5.16.6
Release:	1
Summary:        Telepathy component managing connection managers
Group:          Networking/Instant messaging
License:        LGPLv2+
URL:            http://mission-control.sourceforge.net/
Source0:        http://telepathy.freedesktop.org/releases/telepathy-mission-control/%{name}-%{version}.tar.gz

BuildRequires: chrpath
BuildRequires: glib2.0-common
BuildRequires: python
BuildRequires: xsltproc
BuildRequires: pkgconfig(dbus-glib-1)
BuildRequires: pkgconfig(glib-2.0)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: pkgconfig(telepathy-glib) => 0.17.5

Requires:      telepathy-filesystem

%description
Mission Control, or MC, is a Telepathy component providing a way for "end-user"
applications to abstract some of the details of connection managers, to provide
a simple way to manipulate a bunch of connection managers at once, and to
remove the need to have in each program the account definitions
and credentials.

%package -n %{libname}
Summary: Run time library for telepathy-mission-control
Group:   System/Libraries
Obsoletes: %{_lib}missioncontrol5.4.0 < 5.6.0

%description -n %{libname}
Run time library for telepathy-mission-control

%package -n %{develname}
Summary: Development library for telepathy-mission-control
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%{_lib}missioncontrol-devel < 5.6.0

%description -n %{develname}
Development library for telepathy-mission-control

%prep
%setup -q
%apply_patches

%build
%configure \
	--enable-gnome-keyring=yes \
	--disable-static

%make

%install
%makeinstall_std

%files
%doc AUTHORS 
%{_bindir}/*
%{_datadir}/glib-2.0/schemas/im.telepathy.MissionControl.FromEmpathy.gschema.xml
%{_datadir}/dbus-1/services/*.service
%{_libexecdir}/mission-control-5
%{_mandir}/man1/*
%{_mandir}/man8/*

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{develname}
%{_datadir}/gtk-doc/html/
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17551 |21mr|telepathy-qt5-0.9.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define oname telepathy-qt

Summary:	Base classes for use in connection managers, and proxy classes
Name:		telepathy-qt5
Version:	0.9.8
Release:	3
License:	LGPLv2.1+
Group:		Networking/Instant messaging
Url:		http://telepathy.freedesktop.org/wiki/Telepathy-Qt5
Source0:	http://telepathy.freedesktop.org/releases/%{oname}/%{oname}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	libxml2-utils
BuildRequires:	python3-dbus
BuildRequires:	qt5-assistant
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(farstream-0.2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(telepathy-farstream)
BuildRequires:	pkgconfig(telepathy-glib)

%description
Qt5 libraries for use in Telepathy clients and connection managers.

#----------------------------------------------------------------------------

%define telepathy_qt5_major 0
%define libtelepathy_qt5 %mklibname telepathy-qt5_ %{telepathy_qt5_major}

%package -n %{libtelepathy_qt5}
Summary:	Telepathy Qt5 shared library
Group:		System/Libraries

%description -n %{libtelepathy_qt5}
Telepathy Qt5 shared library.

%files -n %{libtelepathy_qt5}
%{_libdir}/libtelepathy-qt5.so.%{telepathy_qt5_major}*

#----------------------------------------------------------------------------

%define telepathy_qt5_farstream_major 0
%define libtelepathy_qt5_farstream %mklibname telepathy-qt5-farstream %{telepathy_qt5_farstream_major}

%package -n %{libtelepathy_qt5_farstream}
Summary:	Telepathy Qt5 shared library
Group:		System/Libraries

%description -n %{libtelepathy_qt5_farstream}
Telepathy Qt5 shared library.

%files -n %{libtelepathy_qt5_farstream}
%{_libdir}/libtelepathy-qt5-farstream.so.%{telepathy_qt5_farstream_major}*

#----------------------------------------------------------------------------

%define telepathy_qt5_service_major 0
%define libtelepathy_qt5_service %mklibname telepathy-qt5-service %{telepathy_qt5_service_major}

%package -n %{libtelepathy_qt5_service}
Summary:	Telepathy Qt5 shared library
Group:		System/Libraries

%description -n %{libtelepathy_qt5_service}
Telepathy Qt5 shared library.

%files -n %{libtelepathy_qt5_service}
%{_libdir}/libtelepathy-qt5-service.so.%{telepathy_qt5_service_major}*
%{_libdir}/libtelepathy-qt5-service.so.1

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	%{name} development files
Group:		Development/Other
Requires:	%{libtelepathy_qt5} = %{EVRD}
Requires:	%{libtelepathy_qt5_farstream} = %{EVRD}
Requires:	%{libtelepathy_qt5_service} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Telepathy-qt development files.

%files -n %{devname}
%{_includedir}/telepathy-qt5
%{_libdir}/pkgconfig/TelepathyQt5.pc
%{_libdir}/pkgconfig/TelepathyQt5Farstream.pc
%{_libdir}/pkgconfig/TelepathyQt5Service.pc
%{_libdir}/*.so
%{_libdir}/cmake/TelepathyQt5
%{_libdir}/cmake/TelepathyQt5Farstream
%{_libdir}/cmake/TelepathyQt5Service

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%cmake_qt5	\
	-DDESIRED_QT_VERSION=5	\
	-DGIOUNIX_MAIN_INCLUDE_DIR:PATH=%{_includedir}/gio-unix-2.0/gio
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17552 |21mr|telepathy-salut-0.8.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Rebuild ./configure to allow underlinking of plugins
# https://abf.io/import/libtool/blob/rosa2019.05/drop-ld-no-undefined-for-shared-lib-modules.patch
%undefine _disable_rebuild_configure

Summary:	Connection manager implementing link-local messaging for XMPP
Name:		telepathy-salut
Version:	0.8.1
Release:	8
License:	LGPLv2+
Group:		Networking/Instant messaging
Url:		http://telepathy.freedesktop.org/wiki/
Source0:	http://telepathy.freedesktop.org/releases/%name/%{name}-%{version}.tar.gz
Patch0:		telepathy-salut-0.8.1-python3-syntax.patch
Source10:	%{name}.rpmlintrc
BuildRequires:	avahi-python3
BuildRequires:	gtk-doc
BuildRequires:	python3dist(twisted)
BuildRequires:	python3dist(xmldiff)
BuildRequires:	pkgconfig(avahi-gobject)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libexslt)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(uuid)
Requires:	telepathy-filesystem
Obsoletes:	%{_lib}telepathy-salut-devel < 0.8.1-3

%description
telepathy-salut is a connection manager implementing link-local
messaging for XMPP

http://www.xmpp.org/extensions/xep-0174.html

%files -n %{name}
%doc docs/clique.xml NEWS README
%doc %{_defaultdocdir}/%{name}/*.html
%{_libdir}/telepathy/salut-*/*/libsalut-plugins-%{version}.so
%{_libdir}/telepathy/salut-*/*/libwocky-telepathy-salut-%{version}.so
%{_libexecdir}/telepathy-salut
%{_mandir}/man8/telepathy-salut.8.*
%{_datadir}/dbus-1/services/*.service
%{_datadir}/telepathy/managers/salut.manager

#--------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--enable-gtk-doc \
	--disable-static
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/%{name}
rm -f %{buildroot}%{_libdir}/telepathy/salut-0/lib/*.la
# We don't have development headers
rm -f %{buildroot}%{_libdir}/telepathy/salut-0/lib/libsalut-plugins.so
rm -f %{buildroot}%{_libdir}/telepathy/salut-0/lib/libwocky.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17553 |21mr|template-glib-3.34.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%global api 1.0
%global major 0
%define libname %mklibname template_glib %{api} %{major}
%define girname %mklibname template-gir %{api}
%define devname %mklibname template_glib -d

Summary:	A templating library for GLib
Name:		template-glib
Version:	3.34.1
Release:	2
License:	LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/template-glib
Source0:	https://download.gnome.org/sources/template-glib/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)

%description
Template-GLib is a templating library for GLib. It includes a simple template
format along with integration into GObject-Introspection for properties and
methods. It separates the parsing of templates and the expansion of templates
for faster expansion. You can also define scope, custom functions, and more
with the embedded expression language.

#----------------------------------------------------------------------------

%package i18n
Summary:	Internationalization and locale data for %{name}
Group:		System/Internationalization
BuildArch:	noarch

%description i18n
Internationalization and locale data for %{name}.

%files i18n -f template-glib.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries
Requires:	%{name}-i18n

%description -n %{libname}
Template-GLib is a templating library for GLib. It includes a simple template
format along with integration into GObject-Introspection for properties and
methods. It separates the parsing of templates and the expansion of templates
for faster expansion. You can also define scope, custom functions, and more
with the embedded expression language.

%files -n %{libname}
%doc AUTHORS NEWS README.md
%license COPYING
%{_libdir}/libtemplate_glib-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject introspection interface library for Template
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject introspection interface library for Template.

%files -n %{girname}
%{_libdir}/girepository-1.0/Template-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/template-glib
%{_datadir}/gir-1.0/Template-%{api}.gir
%{_datadir}/vala/vapi/template-glib-%{api}.*
%{_includedir}/*
%{_libdir}/libtemplate_glib-%{api}.so
%{_libdir}/pkgconfig/template-glib-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -Wno-error=incompatible-pointer-types"
%meson -Denable_gtk_doc=true
%meson_build

%install
%meson_install

%find_lang template-glib

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17554 |21mr|templates-1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define git 6d12ba9

Summary:	Standard templates for the user directory
Name:		templates
Version:	1.1
Release:	9
License:	GPLv3+
Group:		Graphical desktop/Other
Url:		http://git.altlinux.org/people/antohami/packages/templates.git
Source0:	%{name}-%{git}.tar.gz
Source1:	Templates.tar.gz
Patch0:		templates-1.1-ru-po.patch
Patch1:		templates-1.1-gnome-file.patch
BuildArch:	noarch
Requires:	%{_bindir}/gettext
Requires:	%{_bindir}/gettext.sh

%description
Standard templates for the user directory and the script for automatic
installation template, if template directory user is empty.

%files -f %{name}.lang
%{_datadir}/Templates
%{_sysconfdir}/profile.d/templates.sh
%{_sysconfdir}/xdg/autostart/update_templates.desktop.desktop

#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{git} -a1
touch Templates/Text.txt

%build
msgfmt templates-of-ru.po -o templates-of-ru.mo
mkdir -p locale/ru/LC_MESSAGES/
mv templates-of-ru.mo locale/ru/LC_MESSAGES/templates.mo

%install
install -D -m755 templates.sh %{buildroot}%{_sysconfdir}/profile.d/templates.sh
install -d -m755 %{buildroot}%{_sysconfdir}/xdg/autostart/
install -m644 update_templates.desktop.desktop %{buildroot}%{_sysconfdir}/xdg/autostart/
install -d -m755 %{buildroot}%{_datadir}/Templates
install -m644 Templates/* %{buildroot}%{_datadir}/Templates
cp -R locale %{buildroot}%{_datadir}/

rm -f %{buildroot}%{_datadir}/Templates/Drawing.odg
rm -f %{buildroot}%{_datadir}/Templates/Spreadsheet.ods
rm -f %{buildroot}%{_datadir}/Templates/Presentation.odp
rm -f %{buildroot}%{_datadir}/Templates/file

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17555 |21mr|tempus-fugit-1.2-0.7.SNAPSHOT
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global githash b46a6e39d2348eb73f01b42f43a5a0cc869d89df
Name:          tempus-fugit
# This pre release offers JDK8 support
Version:       1.2
Release:       0.7.SNAPSHOT
Summary:       Java classes for temporal testing and concurrency
License:       ASL 2.0
URL:           http://tempusfugitlibrary.org/
Source0:       https://github.com/tobyweston/tempus-fugit/archive/%{githash}/%{name}-%{githash}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.hamcrest:hamcrest-core)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.jmock:jmock-junit4)
BuildRequires: mvn(org.jmock:jmock-legacy)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Java micro-library for time sensitive testing and concurrency.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{githash}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

# Unwanted
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-idea-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

# java.util.concurrent.TimeoutException: null
rm -r src/test/java/com/google/code/tempusfugit/concurrency/DeadlockDetectorTest.java \
  src/test/java/com/google/code/tempusfugit/concurrency/DefaultTimeoutableCompletionServiceTest.java
# java.lang.AssertionError
rm -r src/test/java/com/google/code/tempusfugit/concurrency/ConcurrentTestRunnerTest.java \
 src/test/java/com/google/code/tempusfugit/concurrency/OverrideConcurrentTestRunnerTest.java \
 src/test/java/com/google/code/tempusfugit/concurrency/InterrupterTest.java \
 src/test/java/com/google/code/tempusfugit/concurrency/RunConcurrentlyTest.java \
 src/test/java/com/google/code/tempusfugit/concurrency/ThreadUtilsTest.java \
 src/test/java/com/google/code/tempusfugit/temporal/TimerTest.java \
 src/test/java/com/google/code/tempusfugit/temporal/WaitForTest.java
# java.lang.InterruptedException: sleep interrupted
rm -r src/test/java/com/google/code/tempusfugit/concurrency/InterruptCapturingThreadTest.java

sed -i 's/\r//' LICENCE.md README.md

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENCE.md

%files javadoc -f .mfiles-javadoc
%license LICENCE.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17556 |21mr|tepl-6.00.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 6
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Text editor product line
Name:		tepl
Version:	6.00.0
Release:	10
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/tepl
Source0:	https://download.gnome.org/sources/tepl/%{url_ver}/tepl-%{version}.tar.xz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uchardet)
BuildRequires:	pkgconfig(amtk-5)
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	cmake

%description
Tepl is a library that eases the development of GtkSourceView-based text
editors and IDEs. Tepl is the acronym for "Text editor product line".

#----------------------------------------------------------------------------

%package i18n
Summary:	Translations for %{name}
Group:		System/Internationalization

%description i18n
Translations for %{name}.

%files i18n -f %{name}-%{api}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{libname}
%{_libdir}/libtepl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Tepl-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc NEWS README.md
%{_includedir}/tepl-%{api}/
%{_libdir}/libtepl-%{api}.so
%{_libdir}/pkgconfig/tepl-%{api}.pc
%{_datadir}/gir-1.0/Tepl-%{api}.gir
%{_datadir}/gtk-doc/html/tepl-*/

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17557 |21mr|tepl-6.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 6
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

%define url_ver %(echo %{version} | cut -d. -f1,2)

Summary:	Text editor product line
Name:		tepl
Version:	6.1.2
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/tepl
Source0:	https://download.gnome.org/sources/tepl/%{url_ver}/tepl-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	pkgconfig(amtk-5)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtksourceview-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(uchardet)

%description
Tepl is a library that eases the development of GtkSourceView-based text
editors and IDEs. Tepl is the acronym for "Text editor product line".

#----------------------------------------------------------------------------

%package i18n
Summary:	Translations for %{name}
Group:		System/Internationalization

%description i18n
Translations for %{name}.

%files i18n -f %{name}-%{api}.lang

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Requires:	%{name}-i18n = %{EVRD}

%description -n %{libname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{libname}
%{_libdir}/lib%{name}-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/Tepl-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
This package contains libraries and header files for developing applications
that use %{name}.

%files -n %{devname}
%doc NEWS README.md
%{_datadir}/gir-1.0/Tepl-%{api}.gir
%{_datadir}/gtk-doc/html/%{name}-*/
%{_includedir}/%{name}-%{api}/
%{_libdir}/lib%{name}-%{api}.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17558 |21mr|termcap-11.0.1-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The terminal feature database used by certain applications
Name:		termcap
Version:	11.0.1
Release:	29
License:	none
Group:		System/Libraries
Url:		http://www.catb.org/~esr/terminfo/
Source0:	http://www.ccil.org/~esr/terminfo/termtypes.tc.bz2
Patch0:		termcap-linuxlat.patch
Patch1:		termcap-xtermchanges.patch
Patch2:		termcap-utf8.patch
# (fc) 11.0.1-4mdk patch to correctly handle Home/End with X11R6 keycode
Patch3:		termcap-xtermX11R6.patch
# (vdanen) 11.0.1-6mdk patch so Eterm is seen as a color-capable term
Patch4:		termcap-Eterm.patch
# (shikamaru) 11.0.1-17mdv add urxvt as well
Patch5:		termcap-urxvt.patch
BuildArch:	noarch

%description
The termcap package provides the /etc/termcap file. /etc/termcap is
a database which defines the capabilities of various terminals and
terminal emulators.  Certain programs use the /etc/termcap file to
access various features of terminals (the bell, colors, and graphics,
etc.).

%files
%config(noreplace) %{_sysconfdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -T -c %{name}-%{version}
bzcat %{SOURCE0} > %{name}
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
%patch5 -p0

%build

%install
install -m644 %{name} -D %{buildroot}%{_sysconfdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17559 |21mr|termhelper-0.5-20240216
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev	52ec8eb
%define gitdate 20240216

### #!/bin/bash
### git clone https://github.com/betcher/termhelper.git 
### pushd ./termhelper
### hash="$(git log -1 --format='%h')" 
### date="$(git log -1 --format='%cd' --date=short | tr -d -)"
### rm -rf .git
### tar czf ../termhelper-${date}-git${hash}.tar.gz ../termhelper
### popd
### sed -i '/^.define/s/gitdate.*/gitdate '"$date"'/' ./termhelper.spec
### sed -i '/^.define/s/gitrev.*/gitrev	'"$hash"'/' ./termhelper.spec
### sed -i 's/^Release.*/Release:	'"$date"'/' ./termhelper.spec
### rm -rf ./termhelper

# To get sources and set version please run: 
# bash <(cat ./termhelper.spec |sed -e '/^###/!d' -e 's/^###[[:space:]]*//')

Summary:	Terminal based help system
Name:		termhelper
Version:	0.5
Release:	20240216
License:	GPLv3
Group:		System/Base
Url:		https://github.com/betcher/termhelper
Source0:	%{name}-%{gitdate}-git%{gitrev}.tar.gz
Source100:	%{name}.rpmlintrc
BuildRequires:	make
BuildRequires:	gettext
Requires:	bash
Requires:	gettext
Recommends:		bash-completion
Provides:		termhelper-ru
BuildArch:	noarch 
Recommends:	(anaconda-%{name} if anaconda-core)

%description
Termhelper is a fork of termhelper-ru (https://abf.io/survolog/termhelper-ru), 
terminal based help system.

%files
%{_bindir}/%{name}
%{_bindir}/%{name}-functions
%{_datadir}/%{name}/
%lang(ru) %{_localedir}/ru/LC_MESSAGES/termhelper.mo
%lang(it) %{_localedir}/it/LC_MESSAGES/termhelper.mo
%{_mandir}/*/*
%{_sysconfdir}/bash_completion.d/%{name}
%{_sysconfdir}/profile.d/%{name}_header.sh
%{_sysconfdir}/profile.d/%{name}.sh
# Directory for drop-in configs
%dir %{_sysconfdir}/termhelper.d

#------------------------------------------------------------------

%package -n wiki2helper
Summary: Convert Rosa wiki to a termhelper page
Requires: python3
Requires: python3dist(requests)

%description -n wiki2helper
Convert Rosa wiki to termhelper page.

%files -n wiki2helper
%{_bindir}/wiki2helper

#------------------------------------------------------------------

# Anaconda post install script removes all anaconda* packages (not *anaconda)

%package -n anaconda-%{name}
Summary:	Setup termhelper in Anaconda installer
Requires:	%{name}
Requires:	%{name}-estimate-speed
Requires:	anaconda-core
Requires:	time

%description -n anaconda-%{name}
Setup termhelper in Anaconda installer:
- calculate how long it takes to load metadata in dnf and disable.
- querying dnf when command is not found if it takes 4 seconds or more.
- Also make a quick estimation and disable this in LiveCD if CPU speed
is < 2 GHz.

%files -n anaconda-%{name}
%{_sysconfdir}/anaconda-scripts.d/post-install/anaconda-termhelper.sh
%{_sysconfdir}/anaconda-scripts.d/livecd-init/termhelper-estimate-speed.sh

#------------------------------------------------------------------

%package estimate-speed
Summary:	Configure termhelper at system startup
Requires:	%{name}

%description estimate-speed
Estimate if CPU is quick enough for querying dnf when command is not found
at system startup.

%files estimate-speed
%{_bindir}/%{name}-estimate-speed
%{_unitdir}/%{name}-estimate-speed.service

%post estimate-speed
%systemd_post %{name}-estimate-speed.service

%preun estimate-speed
%systemd_preun %{name}-estimate-speed.service

#------------------------------------------------------------------

%prep
%setup -qn %{name}

%build

%install
%makeinstall_std UNITDIR=%{_unitdir}

# Directory for drop-in configs
mkdir -p %{buildroot}%{_sysconfdir}/termhelper.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17560 |21mr|terracotta-statistics-1.1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          terracotta-statistics
Version:       1.1.0
Release:       8
Summary:       Terracotta Statistics
# Public Domain: ./src/main/java/org/terracotta/statistics/jsr166e
License:       ASL 2.0 and Public Domain
URL:           https://github.com/Terracotta-OSS/statistics/
Source0:       https://github.com/Terracotta-OSS/statistics/archive/v%{version}/statistics-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.rat:apache-rat-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-jdk14)

Provides:      bundled(jsr166e) = 1.8

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A statistics framework used inside Ehcache and the Terracotta products.

%package javadoc
Summary:       Javadoc for Terracotta Statistics

%description javadoc
This package contains javadoc for Terracotta Statistics.

%prep
%setup -q -n statistics-%{version}

# Unwanted tasks
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin

%pom_change_dep junit: :junit

%pom_xpath_inject "pom:plugin[pom:artifactId = 'apache-rat-plugin' ]/pom:configuration/pom:excludes" '
  <exclude>.xmvn/**</exclude>'

%mvn_file org.terracotta:statistics %{name} statistics

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17561 |21mr|tesla-polyglot-0.2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionally build ruby support
# Re-enable when https://bugzilla.redhat.com/show_bug.cgi?id=1234368 is fixed
%bcond_with ruby

# Conditionally build groovy support
%bcond_without groovy

# Conditionally build yaml support
# XXX not buildable:
# [ERROR] ModelRepresenter.java:[218:27] Exception IntrospectionException is not
 # compatible with throws clause in Representer.getProperties(Class<? extends Object>)

%bcond_with snakeyaml

Name:          tesla-polyglot
Version:       0.2.1
Release:       4
Summary:       Modules to enable Maven usage in other JVM languages
License:       EPL
URL:           https://github.com/takari/maven-polyglot
Source0:       https://github.com/takari/polyglot-maven/archive/polyglot-%{version}.tar.gz
Source1:       eclipse-1.0.txt

BuildRequires:  maven-local
BuildRequires:  mvn(io.takari.maven.plugins:takari-lifecycle-plugin)
BuildRequires:  mvn(io.takari:takari:pom:)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-model-builder)
BuildRequires:  mvn(org.apache.maven:maven-parent:pom:)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.slf4j:slf4j-api)

%if %{with snakeyaml}
# Yaml module
BuildRequires:  mvn(org.yaml:snakeyaml)
%endif

%if %{with groovy}
# Groovy module
BuildRequires:  mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
BuildRequires:  mvn(org.codehaus.groovy:groovy)
%endif

%if %{with ruby}
# Ruby module
BuildRequires:  mvn(de.saumya.mojo:gem-maven-plugin)
BuildRequires:  mvn(org.jruby:jruby-core)
%endif

%if 0
# clojure-maven-plugin dont work with clojure 1.5.1
# Clojure module
BuildRequires: mvn(com.theoryinpractise:clojure-maven-plugin:1.3.1)
BuildRequires: mvn(org.clojure:clojure:1.1.0)
# Scala module
BuildRequires: mvn(com.twitter:util-eval_2.10:6.23.0)
BuildRequires: mvn(com.googlecode.kiama:kiama_2.10:1.8.0)
BuildRequires: mvn(net.alchim31.maven:scala-maven-plugin:3.2.0)
BuildRequires: mvn(org.scala-lang:scala-library:2.10.5)
# Test deps
# Clojure module
BuildRequires: mvn(org.easytesting:fest-assert)
# Scala module
BuildRequires: mvn(org.specs2:specs2-junit_2.10:2.4.17)
# XML module
BuildRequires: mvn(com.cedarsoftware:java-util)
%endif

Obsoletes:     %{name}-cli
Obsoletes:     %{name}-clojure
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Polyglot for Maven is an experimental distribution of Maven
that allows the expression of a POM in something other than
XML. A couple of the dialects also have the capability to
write plugins inline: the Groovy, Ruby and Scala dialects
allow this.

%package atom
Summary:       Polyglot Tesla :: Atom

%description atom
Polyglot Tesla :: Atom.

%package common
Summary:       Polyglot Tesla :: Common

%description common
Polyglot Tesla :: Common.

%if %{with groovy}
%package groovy
Summary:       Polyglot Tesla :: Groovy

%description groovy
Polyglot Tesla :: Groovy.
%endif

%package maven-plugin
Summary:       Polyglot Tesla :: Maven Plugin

%description maven-plugin
This package contains Polyglot Tesla Maven Plugin.

%if %{with ruby}
%package ruby
Summary:       Polyglot Tesla :: Ruby

%description ruby
Polyglot Tesla :: Ruby.
%endif

%package translate-plugin
Summary:       Polyglot :: Translate Plugin

%description translate-plugin
This package contains Polyglot Translate Plugin.

%if 0
%package clojure
Summary:       Polyglot Tesla :: Clojure

%description clojure
Polyglot Tesla :: Clojure.

%package scala
Summary:       Polyglot Tesla :: Scala

%description scala
Polyglot Tesla :: Scala.
%endif

%package xml
Summary:       Polyglot Tesla :: XML

%description xml
Polyglot Tesla :: XML.

%if %{with snakeyaml}
%package yaml
Summary:       Polyglot Tesla :: YAML

%description yaml
Polyglot Tesla :: YAML.
%endif

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n polyglot-maven-polyglot-%{version}

find -name "*.class" -delete
find -name "*.jar" -delete

# Unavailable build deps/tools
%pom_disable_module polyglot-clojure
%pom_disable_module polyglot-scala

%pom_remove_dep :polyglot-scala polyglot-translate-plugin

%if %{without ruby}
%pom_disable_module polyglot-ruby
%pom_remove_dep -r :polyglot-ruby
%endif

%if %{without groovy}
%pom_disable_module polyglot-groovy
%pom_remove_dep -r :polyglot-groovy
%endif

%if %{without snakeyaml}
%pom_disable_module polyglot-yaml
%pom_remove_dep -r :polyglot-yaml
%endif

%pom_remove_dep rubygems:maven-tools polyglot-ruby
# TODO: remove following line once maven-tools gem is in Fedora
rm -Rf polyglot-ruby/src/{test,it}
%pom_remove_plugin :maven-invoker-plugin polyglot-ruby

# Unavailable plugin
%pom_remove_plugin org.codehaus.groovy:groovy-eclipse-compiler polyglot-groovy
%pom_remove_dep org.codehaus.groovy:groovy-eclipse-batch polyglot-groovy
%pom_remove_dep org.codehaus.groovy:groovy-eclipse-compiler polyglot-groovy
%pom_remove_plugin :maven-compiler-plugin polyglot-groovy
# use gmavenplus
%pom_add_plugin org.codehaus.gmavenplus:gmavenplus-plugin:1.5 polyglot-groovy "
 <executions>
  <execution>
   <goals>
    <goal>generateStubs</goal>
    <goal>testGenerateStubs</goal>
    <!--goal>compile</goal>
    <goal>testCompile</goal-->
   </goals>
  </execution>
 </executions>"

for p in maven-plugin translate-plugin; do
  %pom_add_plugin "org.apache.maven.plugins:maven-plugin-plugin:3.4" polyglot-${p} "
  <configuration>
    <skipErrorNoDescriptorsFound>true</skipErrorNoDescriptorsFound>
  </configuration>"
%pom_xpath_inject "pom:dependency[pom:groupId = 'org.apache.maven']" "<version>3.3.1</version>" polyglot-${p}
done

%pom_xpath_inject "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'org.apache.maven']" '<version>${mavenVersion}</version>'

# atom common maven-plugin translate-plugin
# diamond operator
for m in yaml groovy
do
%pom_add_plugin org.apache.maven.plugins:maven-compiler-plugin:3.0 polyglot-${m} '
<configuration>
 <source>1.7</source>
 <target>1.7</target>
 <encoding>UTF-8</encoding>
</configuration>'
done

# Use web access
sed -i '/pyyaml/d' polyglot-yaml/src/test/java/org/sonatype/maven/polyglot/yaml/CompactFormatTest.java

# test skipped for unavailable dependency org.easytesting:fest-assert:1.1
rm -rf polyglot-clojure/src/test/java/*

# com.cedarsoftware:java-util:1.19.3
sed -i '/DeepEquals/d' polyglot-xml/src/test/java/org/sonatype/maven/polyglot/xml/TestReaderComparedToDefault.java
%pom_remove_dep com.cedarsoftware:java-util polyglot-xml

# ComparisonFailure
rm polyglot-yaml/src/test/java/org/sonatype/maven/polyglot/yaml/SnakeYamlModelReaderTest.java

cp -p %{SOURCE1} .
sed -i 's/\r//' eclipse-1.0.txt

%mvn_alias ':polyglot-{*}' io.tesla.polyglot:tesla-polyglot-@1
%mvn_alias ':polyglot-{*}' org.sonatype.pmaven:pmaven-@1

%build
%mvn_build -s -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-polyglot
%doc poms
%license eclipse-1.0.txt license-header.txt

%files atom -f .mfiles-polyglot-atom
%files common -f .mfiles-polyglot-common

%if %{with groovy}
%files groovy -f .mfiles-polyglot-groovy
%endif

%if %{with ruby}
%files ruby -f .mfiles-polyglot-ruby
%endif

%if 0
%files clojure -f .mfiles-polyglot-clojure
%files scala -f .mfiles-polyglot-scala
%endif

%files maven-plugin -f .mfiles-polyglot-maven-plugin
%files translate-plugin -f .mfiles-polyglot-translate-plugin

%files xml -f .mfiles-polyglot-xml
%doc polyglot-xml/README.md

%if %{with snakeyaml}
%files yaml -f .mfiles-polyglot-yaml
%endif

%files javadoc -f .mfiles-javadoc
%license eclipse-1.0.txt license-header.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17562 |21mr|tesseract-5.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Autorequire pkgconfig(lept) instead
%global __requires_exclude \\(cmake\\(leptonica\\) or cmake\\(Leptonica\\)

%define	major 5
%define	libtesseract %mklibname %{name} %{major}
%define	libtraining %mklibname %{name}_training
%define	devtesseract %mklibname %{name} -d

%define	ver_data 4.1.0

Summary:	A high-performance OCR engine
Name:		tesseract
Version:	5.3.1
Release:	1
License:	ASL 2.0
Group:		Graphics
Url:		https://github.com/tesseract-ocr/
Source0:	https://github.com/tesseract-ocr/tesseract/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	https://github.com/tesseract-ocr/tessdata/archive/refs/tags/tessdata-%{ver_data}.tar.gz
Patch0:		tesseract-5.3.0-e2k-omp.patch
Patch1:		https://src.fedoraproject.org/rpms/tesseract/raw/rawhide/f/tesseract_neon.patch
BuildRequires:	asciidoc
BuildRequires:	cmake
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(lept)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(pangocairo)
Recommends:	tesseract-eng
Recommends:	(tesseract-rus if locales-ru)

%description
The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV
Accuracy test. Since then it has had little work done on it, but it is
probably one of the most accurate open source OCR engines available.
The source code will read a binary, grey or color image and output text. A
tiff reader is built in that will read uncompressed TIFF images, or libtiff
can be added to read compressed images.

%files
%doc AUTHORS ChangeLog README.md
%license LICENSE
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man*/*
%exclude %{_datadir}/%{name}/tessdata/osd.*
%exclude %{_datadir}/%{name}/tessdata/*.traineddata

#-----------------------------------------------------------------

%package -n %{libtesseract}
Summary:	%{name} support library
Group:		System/Libraries

%description -n %{libtesseract}
%{name} library.

%files -n %{libtesseract}
%{_libdir}/lib%{name}.so.%{major}*

#-----------------------------------------------------------------

%package -n %{libtraining}
Summary:	Training support libraries for %{name}
Group:		System/Libraries

%description -n %{libtraining}
Training support libraries for %{name}.

%files -n %{libtraining}
%{_libdir}/libcommon_training.so
%{_libdir}/libpango_training.so
%{_libdir}/libunicharset_training.so

#-----------------------------------------------------------------

%package -n %{devtesseract}
Summary:	Development files from %{name}
Group:		Development/C++
Requires:	%{libtesseract} = %{EVRD}
Requires:	%{libtraining} = %{EVRD}
Provides:	%{devtesseract} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}

%description -n %{devtesseract}
The Tesseract OCR engine was one of the top 3 engines in the 1995 UNLV
Accuracy test. Since then it has had little work done on it, but it is
probably one of the most accurate open source OCR engines available.
The source code will read a binary, grey or color image and output text. A
tiff reader is built in that will read uncompressed TIFF images, or libtiff
can be added to read compressed images.

%files -n %{devtesseract}
%doc AUTHORS ChangeLog README.md
%license LICENSE
%{_includedir}/%{name}
%{_libdir}/cmake/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#-----------------------------------------------------------------

%package osd
Summary:	Orientation & script detection data pack for %{name}
Group:		Graphics

%description osd
Data files required to recognize text orientation and scripts.

%files osd
%license LICENSE
%{_datadir}/%{name}/tessdata/osd.*

#-----------------------------------------------------------------

%define langdata() \
%package %{1}\
Group:		Graphics \
Summary:	%{3}%{?4: (%4)} language data for Tesseract \
Requires:	%{name} >= 4.00 \
Requires:	locales-%{2} \
Supplements:	(%{name} and locales-%{2}) \
Provides:	%{name}-language = %{EVRD} \
BuildArch:	noarch \
%description %{1} \
Tesseract data files required to recognize %{?4:%4 }%{3} text. \
%files %{1} \
%doc ../tessdata-%{ver_data}/README.md \
%license ../tessdata-%{ver_data}/LICENSE \
%{_datadir}/%{name}/tessdata/%{1}.* \
%{nil}

%langdata afr af Afrikaans
%langdata amh am Amharic
%langdata ara ar Arabic
%langdata asm as Assamese
%langdata aze_cyrl az Azerbaijani (Cyrillic)
%langdata aze az Azerbauijani
%langdata bel be Belarusian
%langdata ben bn Bengali
%langdata bod bo Tibetan Standard
%langdata bos bs Bosnian
%langdata bul bg Bulgarian
%langdata bre br Breton
%langdata cat ca Catalan
%langdata ceb en Cebuano
%langdata ces cs Czech
%langdata chi_sim zh Chinese Simplified
%langdata chi_tra zh Chinese Traditional
%langdata chi_sim_vert zh Chinese Simplified (vertical)
%langdata chi_tra_vert zh Chinese Traditional (vertical)
%langdata chr en Cherokee
%langdata cym en Welsh
%langdata dan_frak da Danish (Fraktur)
%langdata dan da Danish
%langdata deu_frak de German (Fraktur)
%langdata deu de German
%langdata div dv Divehi, Dhivehi, Maldivian
%langdata dzo dz Dzongkha
%langdata ell el Greek
%langdata eng en English
%langdata enm en Middle English (1100-1500)
%langdata epo eo Esperanto
%langdata equ en Equations
%langdata est et Estonian
%langdata eus eu Basque
%langdata fas fa Persian
%langdata fin fi Finnish
%langdata fra fr French
%langdata frk fr Frankish
%langdata frm fr Middle French (1400-1600)
%langdata fao fo Faroese
%langdata fil fi Filipino
%langdata fry fy Western Frisian
%langdata gle ga Irish
%langdata glg gl Galician
%langdata gla gd Gaelic, Scottish Gaelic
%langdata grc el Ancient Greek
%langdata guj gu Gujarati
%langdata hat ha Haitian
%langdata heb he Hebrew
%langdata hin hi Hindi
%langdata hrv hr Croation
%langdata hun hu Hungarian
%langdata hye hy Armenian
%langdata iku en Inuktitut
%langdata ind id Indonesian
%langdata isl is Icelandic
%langdata ita_old it Old Italian
%langdata ita it Italian
%langdata jav ja Javanese
%langdata jpn ja Japanese
%langdata jpn_vert ja Japanese
%langdata kan kn Kannada
%langdata kat_old ka Old Georgian
%langdata kat ka Georgian
%langdata kaz kk Kazakh
%langdata khm km Khmer
%langdata kir ky Kyrgyz
%langdata kor ko Korean
%langdata kor_vert ko Korean
%langdata lao lo Lao
%langdata lat en Latin
%langdata lav lv Latvian
%langdata lit lt Lithuanian
%langdata ltz lb Luxembourgish
%langdata mal ml Malayalam
%langdata mar mr Marathi
%langdata mkd mk Macedonian
%langdata mlt mt Maltese
%langdata mon mn Mongolian
%langdata mri mi Maori
%langdata msa ms Malay
%langdata mya my Burmese
%langdata nep ne Nepali
%langdata nld nl Dutch
%langdata nor no Norwegian
%langdata ori or Oriya
%langdata oci oc Occitan
%langdata pan pa Punjabi
%langdata pol pl Polish
%langdata por pt Portuguese
%langdata pus ps Pashto
%langdata ron ro Romanian
%langdata rus ru Russian
%langdata san sa Sanskrit
%langdata sin si Sinhala
%langdata snd sd Sindhi
%langdata slk_frak sk Slovakian (Fraktur)
%langdata slk sk Slovakian
%langdata slv sl Slovenian
%langdata spa_old es Old Spanish
%langdata spa es Spanish
%langdata sqi sq Albanian
%langdata srp_latn st Serbian Latin
%langdata srp st Serbian
%langdata swa sw Swahili
%langdata swe sv Swedish
%langdata syr ar Syriac
%langdata tam ta Tamil
%langdata tat tt Tatar
%langdata tel te Telugu
%langdata tgk tg Tajik
%langdata tgl tl Tagalog
%langdata tha th Thai
%langdata tir th Tigrinya
%langdata tur tr Turkish
%langdata uig ug Uyghur
%langdata ukr uk Ukrainian
%langdata urd ur Urdu
%langdata uzb_cyrl uz Uzbek (Cyrillic)
%langdata uzb uz Uzbek
%langdata vie vi Vietnamese
%langdata yid yi Yiddish
%langdata yor yo Yoruba

#-----------------------------------------------------------------

%prep
%setup -q -b1
%ifarch %{e2k}
%patch0 -p1
%endif
%patch1 -p1
sed -i "s:share/tessdata:share/%{name}/tessdata:" CMakeLists.txt

%build
%ifarch %{e2k}
# LCC autovectorization perform better than these brief SIMD snippets
sed -i "/CHECK_COMPILE_FLAG/{N;/_OPT/s/=true/=false/}" configure.ac
export CFLAGS="%{optflags} -mno-sse"
export LDFLAGS="%{ldflags} -lgomp -lpthread"
%else
export LDFLAGS="%{ldflags} -pthread"
%endif
%cmake	\
	-DCMAKE_INSTALL_LIBDIR=%{_lib}	\
	-DTESSDATA_PREFIX=%{_datadir}/%{name}
%make

chrpath --delete src/training/libpango_training.so

pushd ../doc
for i in *.asc; do
	asciidoc -b docbook -d manpage -o - $i | XML_CATALOG_FILES=%{_sysconfdir}/xml/catalog xsltproc --nonet -o $(echo $i |sed "s/.asc$//") http://docbook.sourceforge.net/release/xsl/current/manpages/docbook.xsl -
done
popd

%install
%makeinstall_std -C build

cp build/src/training/libpango_training.so %{buildroot}%{_libdir}

#remove lang unsupported glibc
rm ../tessdata-%{ver_data}/cos.traineddata
rm ../tessdata-%{ver_data}/que.traineddata
rm ../tessdata-%{ver_data}/sun.traineddata
rm ../tessdata-%{ver_data}/ton.traineddata

for i in ../tessdata-%{ver_data}/*.traineddata; do
	cp $i %{buildroot}%{_datadir}/%{name}/tessdata
done

mkdir -p %{buildroot}%{_mandir}/man{1,5}
cp doc/*.1 %{buildroot}%{_mandir}/man1
cp doc/*.5 %{buildroot}%{_mandir}/man5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17563 |21mr|testdisk-7.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ver_e2fsprogs 1.42
%define ver_progsreiserfs 0.3.1-rc8
%bcond_without	qt5

Summary:	Tool to check and undelete partition
Name:		testdisk
Version:	7.1
Release:	7
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.cgsecurity.org/wiki/TestDisk
Source0:	http://www.cgsecurity.org/%{name}-%{version}.tar.bz2
Source1:	progsreiserfs-%{ver_progsreiserfs}.tar.bz2
# Upstream patch
Patch0:		progsreiserfs-journal.patch
# Another upstream patch
Patch1:		progsreiserfs-file-read.patch
# Upstream patch
Patch2:		testdisk-7.00-qphotorec-show-partitions-at-start.patch
# Russian translate desktop file
Patch3:		qphotorec-desktop.patch
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(ncurses) >= 5.2
BuildRequires:	pkgconfig(ext2fs) >= %{ver_e2fsprogs}
BuildRequires:	pkgconfig(libntfs-3g)
BuildRequires:	pkgconfig(reiserfscore)
BuildRequires:	pkgconfig(libewf)
BuildRequires:	pkgconfig(uuid)

%description
Tool to check and undelete partition. Works with the following
filesystems:
    * BeFS ( BeOS )
    * BSD disklabel ( FreeBSD/OpenBSD/NetBSD )
    * CramFS, Compressed File System
    * DOS/Windows FAT12, FAT16 and FAT32
    * HFS and HFS+, Hierarchical File System
    * JFS, IBM's Journaled File System
    * Linux Ext2 and Ext3
    * Linux Raid
          o RAID 1: mirroring
          o RAID 4: striped array with parity device
          o RAID 5: striped array with distributed parity information
          o RAID 6: striped array with distributed dual redundancy information
    * Linux Swap (versions 1 and 2)
    * LVM and LVM2, Linux Logical Volume Manager
    * Mac partition map
    * Novell Storage Services NSS
    * NTFS ( Windows NT/2K/XP/2003/Vista )
    * ReiserFS 3.5, 3.6 and 4
    * Sun Solaris i386 disklabel
    * Unix File System UFS and UFS2 (Sun/BSD/...)
    * XFS, SGI's Journaled File System

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog INFO INSTALL NEWS THANKS
# doc/*.html
%attr(755,root,root) %{_bindir}/testdisk
%{_mandir}/man8/testdisk*

#----------------------------------------------------------------------------

%package -n photorec
Summary:	Data recovery software
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description -n photorec
PhotoRec is file data recovery software designed to recover lost files
including video, documents and archives from Hard Disks and CDRom and lost
pictures (thus, its 'Photo Recovery' name) from digital camera memory.

PhotoRec ignores the filesystem and goes after the underlying data, so it
will still work even if your media's filesystem has been severely damaged
or re-formatted.

%files -n photorec -f photorec.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog INFO INSTALL NEWS THANKS
%attr(755,root,root) %{_bindir}/photorec
%{_mandir}/man8/photorec*

#----------------------------------------------------------------------------
%if %{with qt5}
%package -n qphotorec
Summary:	GUI for photorec
Group:		System/Kernel and hardware
Requires:	photorec = %{EVRD}
BuildRequires:  qt5-linguist
BuildRequires:	qt5-linguist-tools
BuildRequires:	qt5-qtbase-devel

%description -n qphotorec
Experimental GUI for PhotoRec.

%files -n qphotorec -f qphotorec.lang
%{_bindir}/qphotorec
%{_datadir}/applications/qphotorec.desktop
%{_datadir}/polkit-1/actions/org.testdisk.pkexec.photorec.policy
%{_iconsdir}/hicolor/*/apps/*
%{_mandir}/man8/qphotorec*
%{_sbindir}/qphotorec
%endif
#----------------------------------------------------------------------------

%package -n fidentify
Summary:	Data recovery software
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description -n fidentify
Recover lost files from harddisk, digital camera and cdrom fidentify the file
type, the "extension", by using thr same database than PhotoRec.

%files -n fidentify -f fidentify.lang
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog INFO INSTALL NEWS THANKS
%attr(755,root,root) %{_bindir}/fidentify
%{_mandir}/man8/fidentify*

#----------------------------------------------------------------------------

%prep
%setup -q -a 1 -D
%patch0 -p0
%patch1 -p0
%patch2 -p1
%patch3 -p1

%build
TOP_DIR="$PWD"
CONFIGURE_TOP=..
CFLAGS="$(echo %{optflags} | sed -e 's,-Werror=format-security,-Wformat-security,g')"
export CFLAGS

mkdir -p progsreiserfs-%{ver_progsreiserfs}/system
pushd progsreiserfs-%{ver_progsreiserfs}/system
cp /usr/share/libtool/config/config.guess ../config.guess
cp /usr/share/libtool/config/config.sub ../config.sub
%configure	--enable-shared=no \
		--enable-static=yes \
		--disable-Werror
%make_build
popd

%config_update
mkdir -p system
pushd system
%configure	--with-dal-lib="${TOP_DIR}/progsreiserfs-%{ver_progsreiserfs}/system/libdal/.libs/" \
		--with-reiserfs-lib="${TOP_DIR}/progsreiserfs-%{ver_progsreiserfs}/system/libreiserfs/.libs/" \
		--with-reiserfs-includes="${TOP_DIR}/progsreiserfs-%{ver_progsreiserfs}/include/" \
		--enable-shared=no \
		--enable-static=yes
%make_build
popd

%install
%makeinstall_std -C system

rm -rf %{buildroot}%{_docdir}

%if %{with qt5}
mkdir %{buildroot}%{_sbindir}
mv %{buildroot}%{_bindir}/qphotorec %{buildroot}%{_sbindir}
cat > %{buildroot}%{_bindir}/qphotorec << 'EOF'
#!/bin/sh
pkexec %{_sbindir}/qphotorec $@
EOF
chmod 755 %{buildroot}%{_bindir}/qphotorec

mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
cat > %{buildroot}%{_datadir}/polkit-1/actions/org.testdisk.pkexec.photorec.policy << 'EOF'
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN"
 "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd">
<policyconfig>

    <vendor>ROSA Linux</vendor>
    <vendor_url>https://rosalinux.ru</vendor_url>
    <icon_name>qphotorec</icon_name>
    <action id="org.testdisk.pkexec.qphotorec">

	<description>Data Recovery Utility</description>
	<description xml:lang="ru">Утилита восстановления данных</description>
	<message>Enter password to run QPhotoRec</message>
	<message xml:lang="ru">Введите пароль для запуска QPhotoRec</message>
	<defaults>
	<allow_any>auth_admin</allow_any>
	<allow_inactive>auth_admin</allow_inactive>
	<allow_active>auth_admin</allow_active>
	</defaults>
	<annotate key="org.freedesktop.policykit.exec.path">/usr/sbin/qphotorec</annotate>
	<annotate key="org.freedesktop.policykit.exec.allow_gui">true</annotate>
     </action>

</policyconfig>
EOF

%find_lang qphotorec --with-man
%endif
%find_lang photorec --with-man
%find_lang testdisk --with-man
%find_lang fidentify --with-man

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17564 |21mr|test-drive-0.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		test-drive
Version:	0.5.0
Release:	1
Summary:	The simple testing framework
Group:		System/Libraries
License:	ASL 2.0 or MIT
URL:		https://github.com/fortran-lang/test-drive
Source0:	https://github.com/fortran-lang/test-drive/archive/v%{version}/%{name}-%{version}.tar.gz

BuildRequires:	gcc-gfortran
BuildRequires:	cmake

%description
This project offers a lightweight, procedural unit testing framework
based on nothing but standard Fortran.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libname}
This project offers a lightweight, procedural unit testing framework
based on nothing but standard Fortran.

%files -n %{libname}
%{_libdir}/libtest-drive.so.0*

#----------------------------------------------
%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname}%{?_isa} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%license  %{_datadir}/licenses/test-drive
%{_fmoddir}/testdrive*.mod
%{_libdir}/pkgconfig/test-drive.pc
%{_libdir}/cmake/test-drive/
%{_libdir}/libtest-drive.so

#----------------------------------------------
%prep
%setup -q

%build
%cmake
%make_build

%install
%make_install -C build
# Move module files
mkdir -p %{buildroot}%{_fmoddir}
mv %{buildroot}%{_includedir}/test-drive/*/*.mod %{buildroot}%{_fmoddir}
rm -rf %{buildroot}%{_includedir}/test-drive/




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17565 |21mr|test-interface-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global test_interface_version 1.0
%global build_with_sbt 0

Name:           test-interface
Version:        %{test_interface_version}
Release:        13
Summary:        Uniform interface to Scala and Java test frameworks
Group:          Development/Java
License:        BSD
URL:            https://github.com/sbt/test-interface
Source0:        https://github.com/sbt/test-interface/archive/v%{test_interface_version}.tar.gz
%if !%{build_with_sbt}
Source1:	http://mirrors.ibiblio.org/maven2/org/scala-sbt/%{name}/%{version}/%{name}-%{version}.pom
%endif

BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
%if %{build_with_sbt}
BuildRequires:  sbt
%else
BuildRequires:	java-devel
%endif
BuildRequires:	javapackages-local
Requires:	javapackages-local

%description

Uniform test interface to Scala/Java test frameworks (specs,
ScalaCheck, ScalaTest, JUnit and other)

%package javadoc
Summary:	Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
%mvn_file org.scala-sbt:test-interface %{name}

%if %{build_with_sbt}
sed -i -e 's/2[.]10[.]2/2.10.3/g' build.sbt
sed -i -e '/scalatest_2.10/d' build.sbt

sed -i -e 's/0[.]12[.]4/0.13.1/g' project/build.properties
rm project/plugins.sbt

cp -r /usr/share/java/sbt/ivy-local .
mkdir boot
%else 
# building without sbt

cp -p %{SOURCE1} pom.xml
# Remove unavailable test dep
%pom_remove_dep :scalatest_2.10

%endif

%build

%if %{build_with_sbt}
export SBT_BOOT_DIR=boot
export SBT_IVY_DIR=ivy-local
sbt package deliverLocal publishM2Configuration
%else 
# building without sbt
mkdir -p classes target/api
%javac -d classes $(find src/main/java -name "*.java")

(
cd classes
mkdir -p META-INF
cat > META-INF/MANIFEST.MF << 'EOF'
Manifest-Version: 1.0
Implementation-Vendor: org.scala-sbt
Implementation-Title: %{name}
Implementation-Version: %{version}
Implementation-Vendor-Id: org.scala-sbt
Specification-Vendor: org.scala-sbt
Specification-Title: %{name}
Specification-Version: %{version}
EOF
%jar -cMf ../target/%{name}.jar *
)

%javadoc -d target/api -classpath $PWD/target/%{name}.jar $(find src/main/java -name "*.java")

cp pom.xml target/%{name}-%{version}.pom

%mvn_artifact target/%{name}-%{version}.pom target/%{name}.jar

%endif

%install

%mvn_install -J target/api

%files -f .mfiles
%doc LICENSE README

%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17566 |21mr|testng-6.14.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with    groovy
%bcond_without snakeyaml

Name:           testng
Version:        6.14.3
Release:        9
Summary:        Java-based testing framework
License:        ASL 2.0
URL:            http://testng.org/
# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz

# Allows building with maven instead of gradle
Source1:        pom.xml

# Remove bundled binaries to make sure we don't ship anything forbidden
Source2:        generate-tarball.sh

Patch0:         0001-Avoid-accidental-javascript-in-javadoc.patch
Patch1:         0002-Replace-bundled-jquery-with-CDN-link.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.beust:jcommander)
BuildRequires:  mvn(com.google.inject:guice)
BuildRequires:  mvn(com.google.code.findbugs:jsr305)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache-extras.beanshell:bsh)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.sonatype.oss:oss-parent:pom:)
%if %{with groovy}
BuildRequires:  mvn(org.assertj:assertj-core) >= 3.8.0
BuildRequires:  mvn(org.codehaus.gmavenplus:gmavenplus-plugin)
BuildRequires:  mvn(org.codehaus.groovy:groovy-all)
BuildRequires:  mvn(org.spockframework:spock-core)
%endif
%if %{with snakeyaml}
BuildRequires:  mvn(org.yaml:snakeyaml)
%endif

%description
TestNG is a testing framework inspired from JUnit and NUnit but introducing
some new functionality, including flexible test configuration, and
distributed test running.  It is designed to cover unit tests as well as
functional, end-to-end, integration, etc.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

%patch0 -p1
%patch1 -p1

cp %{SOURCE1} .

# remove any bundled libs, but not test resources
find ! -path "*/test/*" -name *.jar -print -delete
find -name *.class -delete

# these are unnecessary
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-javadoc-plugin

%if %{without snakeyaml}
%pom_remove_dep org.yaml:snakeyaml
rm src/main/java/org/testng/internal/Yaml*.java
rm src/main/java/org/testng/Converter.java
%endif

# missing test deps
%if %{with groovy}
%pom_add_plugin "org.codehaus.gmavenplus:gmavenplus-plugin" pom.xml \
  "<executions><execution><goals><goal>addTestSources</goal><goal>testGenerateStubs</goal><goal>testCompile</goal><goal>removeTestStubs</goal></goals></execution></executions>"
%pom_add_dep "org.assertj:assertj-core::test"
%pom_add_dep "org.spockframework:spock-core::test"
%pom_add_dep "org.codehaus.groovy:groovy-all::test"

# java.lang.NoClassDefFoundError: net/sf/cglib/proxy/CallbackFilter when executing tests
%pom_add_dep "net.sf.cglib:cglib::test"
%endif

sed -i -e 's/DEV-SNAPSHOT/%{version}/' src/main/java/org/testng/internal/Version.java

cp -p ./src/main/java/*.dtd.html ./src/main/resources/.

%mvn_file : %{name}
# jdk15 classifier is used by some other packages
%mvn_alias : :::jdk15:

%build
%if %{with groovy} && %{with snakeyaml}
# A couple of parallelisation tests are *sometimes* failing, so let's ignore failures
# because they do complete successfully most of the time
%mvn_build -- -Dmaven.test.failure.ignore=true
%else
%mvn_build -f
%endif

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.txt README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17567 |21mr|testng-remote-1.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global gittag testng-remote-parent-%{version}

Name:    testng-remote
Version: 1.3.0
Release: 5
Summary: Modules for running TestNG remotely
# org/testng/remote/strprotocol/AbstractRemoteTestRunnerClient.java is CPL
License: ASL 2.0 and CPL
URL:     https://github.com/testng-team/testng-remote
Source0: https://github.com/testng-team/testng-remote/archive/%{gittag}.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.auto.service:auto-service)
BuildRequires:  mvn(com.google.code.gson:gson)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.testng:testng) >= 6.12

Requires:  mvn(org.testng:testng) >= 6.12

%description
TestNG Remote contains the modules for running TestNG remotely. This is
normally used by IDE to communicate with TestNG run-time, e.g. receive the
Test Result from run-time so that can display them on IDE views.

%package javadoc
Summary: API documentation for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n testng-remote-%{gittag}

# Avoid bundling gson
%pom_remove_plugin :maven-shade-plugin remote

# Plugin not in Fedora
%pom_remove_plugin :git-commit-id-plugin
%pom_remove_plugin :git-commit-id-plugin remote
sed -i -e 's/${git.branch}/%{gittag}/' -e 's/${git.commit.id}/%{gittag}/' -e 's/${git.build.version}/%{version}/' \
  remote/src/main/resources/revision.properties

# Not needed for RPM builds
%pom_remove_plugin -r :jacoco-maven-plugin

# Disable support for old versions of TestNG that are not in Fedora
%pom_disable_module remote6_10
%pom_disable_module remote6_9_10
%pom_disable_module remote6_9_7
%pom_disable_module remote6_5
%pom_disable_module remote6_0
%pom_remove_dep :testng-remote6_10 dist
%pom_remove_dep :testng-remote6_9_10 dist
%pom_remove_dep :testng-remote6_9_7 dist
%pom_remove_dep :testng-remote6_5 dist
%pom_remove_dep :testng-remote6_0 dist

# Package the shaded artifact (contains all testng-remote modules in a single jar)
%mvn_package ":testng-remote-dist:jar:shaded:"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17568 |21mr|tetex-latex-arab-3.11s-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name tetex-latex-arab
%define version 3.11s

Name:		%{name}
Summary:	Files for processing Arabic LaTeX documents
Version:	%{version}
Release:	13
License:	LPPL
URL:		ftp://ftp.informatik.uni-stuttgart.de/pub/arabtex/arabtex.htm
Source:		ftp://ftp.informatik.uni-stuttgart.de/pub/arabtex/arab311.tar.bz2
Group:		Publishing
BuildRequires:	texlive-tlpkg
Requires:	texlive-tetex
BuildArch:	noarch

%description
ArabTeX is a TeX macro package with associated Naskh fonts designed to generate
the Arabic writing from texts coded in an ASCII transliteration as well as in 
some other popular encodings for Arabic and Hebrew, e.g. ASMO 449, ISO 8859-6 
(ASMO 708), Arabic Windows encoding, and HED. It is compatible with Plain TeX, 
LaTeX, NFSS, and the EDMAC package. It also cooperates well with LaTeX 2e of 
June 1996 or later. There is some support for Persian, Urdu, Pashto, and 
Sindhi. Unicode Arabic and Hebrew support is present but not extensively 
tested.

The version 3.11d supports vowelized and non-vowelized Hebrew, and 
bidirectional line-breaking within insertions. The former limitation that an 
insertion must fit on the current line no more exists.

%files
%{_texmfdistdir}/fonts/source/arabtex
%{_texmfdistdir}/fonts/tfm/arabtex
%{_texmfdistdir}/fonts/type1/arabtex
%{_texmfdistdir}/fonts/pk/arabtex
%{_texmfdistdir}/tex/latex/arabtex
%doc %{_texmfdistdir}/doc/arabtex

#------------------------------------------------------------------------------
%prep
%setup -q -c

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc fonts %{buildroot}%{_texmfdistdir}





@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17569 |21mr|tevent-0.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname tevent %{major}
%define devname %mklibname tevent -d

Summary:	Samba4 event management library
Name:		tevent
Version:	0.16.1
Release:	1
# Shipped in samba4 without internal version:
Epoch:		1
License:	GPLv3+
Group:		System/Libraries
Url:		http://tevent.samba.org/
Source0:	http://www.samba.org/ftp/tevent/tevent-%{version}.tar.gz
#BuildRequires:	python-talloc
# TODO@mikhailnov: to use pkgconfig()-style BRs, we have to fix strange name
# containing major Python version in *.pc file in lib64py3talloc-util-devel
BuildRequires:	%{_lib}py3talloc-util-devel
BuildRequires:	pkgconfig(talloc)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(cmocka)

%description
Tevent is an event system based on the talloc memory management library. It is
the core event system used in Samba. Tevent has support for many event types,
including timers, signals, and the classic file descriptor events. Tevent also
provide helpers to deal with asynchronous code providing the tevent_req (Tevent
Request) functions.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Samba4 event management library
Group:		System/Libraries
Provides:	libtevent = %{EVRD}
Provides:	libtevent%{_isa} = %{EVRD}

%description -n %{libname}
Samba4 event management library.

%files -n %{libname}
%{_libdir}/libtevent.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Samba4 event management library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(talloc) >= 2.1.2
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for Samba4 event management library.

%files -n %{devname}
%{_libdir}/libtevent.so
%{_includedir}/tevent.h
%{_libdir}/pkgconfig/tevent.pc

#----------------------------------------------------------------------------

%package -n python3-tevent
Summary:	Python3 module for Samba4 event management library
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-tevent
Python3 module for Samba4 event management library.

%files -n python3-tevent
%{python3_sitearch}/_tevent.cpython-3*.so
%{python3_sitearch}/tevent.py*
%{python3_sitearch}/__pycache__/*

#----------------------------------------------------------------------------

%prep
%setup -q
chmod +r -R .

%if %{mdvver} >= 201910
# fix for python3.8
sed -i -e "/all_flags/s,\('--libs'\),\1\, '--embed'," third_party/waf/waflib/Tools/python.py
%endif

%build
%set_build_flags
./configure \
       --prefix=%{_prefix} \
       --libdir=%{_libdir} \
       --disable-rpath \
       --bundled-libraries=NONE \
       --builtin-libraries=replace

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17570 |21mr|texi2html-5.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __provides_exclude_from %{_datadir}/texi2html

Summary:	Highly customizable texinfo to HTML and other formats translator
Name:		texi2html
Version:	5.0
Release:	6
License:	GPLv2+
Group:		Publishing
Url:		http://www.nongnu.org/texi2html/
Source0:	http://download.savannah.nongnu.org/releases/texi2html/texi2html-%{version}.tar.bz2
BuildArch:	noarch

%description
The basic purpose of texi2html is to convert Texinfo documents into HTML,
and other formats. Configuration files written in perl provide fine degree
of control over the final output, allowing most every aspect of the final
output not specified in the Texinfo input file to be specified.

%files -f %{name}.lang
%doc AUTHORS COPYING ChangeLog NEWS README TODO texi2html.init
%{_bindir}/texi2html
%{_datadir}/texinfo/html/texi2html.html
%{_datadir}/texinfo/init/*.init
%{_mandir}/man*/texi2html*
%{_infodir}/texi2html.info*
%dir %{_datadir}/texi2html
%{_datadir}/texi2html/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --build=%{_arch}-rosa-linux-gnu
%make

%install
%makeinstall_std

%find_lang %{name} %{name}_document %{name}.lang

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17571 |21mr|texinfo-6.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Maybe we should disable more perl() provides and exclude them from autoreq?
%global __provides_exclude perl\\(Text.*|perl\\(Locale.*
%global __requires_exclude perl\\(Text.*|perl\\(Locale.*

Summary:	Tools needed to create Texinfo format documentation files
Name:		texinfo
Version:	6.7
Release:	2
License:	GPLv3+
Group:		Publishing
Url:		http://www.gnu.org/software/texinfo/
Source0:	ftp://ftp.gnu.org/pub/gnu/texinfo/%{name}-%{version}.tar.xz
Source2:	%{name}.rpmlintrc
Patch1:		texinfo-3.12h-fix.patch
Patch107:	texinfo-4.13-vikeys-segfault-fix.patch
BuildRequires:	help2man
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	perl-devel

# Not detected by the dependency generator because these perl modules
# go to %{_datadir}/texinfo rather than a default perl directory
# (tpg) why not use: global __provides_exclude ^perl\\(.*Texinfo.*\\)$ global __requires_exclude ^perl\\(.*Texinfo.*\\)$ ?
Provides:	perl(Texinfo::Common)
Provides:	perl(Texinfo::Convert)
Provides:	perl(Texinfo::Convert::Converter)
Provides:	perl(Texinfo::Convert::DocBook)
Provides:	perl(Texinfo::Convert::HTML)
Provides:	perl(Texinfo::Convert::Info)
Provides:	perl(Texinfo::Convert::IXIN)
Provides:	perl(Texinfo::Convert::IXINSXML)
Provides:	perl(Texinfo::Convert::Line)
Provides:	perl(Texinfo::Convert::NodeNameNormalization)
Provides:	perl(Texinfo::Convert::ParagraphNonXS)
Provides:	perl(Texinfo::Convert::Paragraph)
Provides:	perl(Texinfo::Convert::PlainTexinfo)
Provides:	perl(Texinfo::Convert::Plaintext)
Provides:	perl(Texinfo::Convert::Texinfo)
Provides:	perl(Texinfo::Convert::TexinfoSXML)
Provides:	perl(Texinfo::Convert::TexinfoXML)
Provides:	perl(Texinfo::Convert::TextContent)
Provides:	perl(Texinfo::Convert::Text)
Provides:	perl(Texinfo::Convert::UnFilled)
Provides:	perl(Texinfo::Convert::Unicode)
Provides:	perl(Texinfo::Convert::XSParagraph)
Provides:	perl(Texinfo::Convert::XSParagraph::TestXS)
Provides:	perl(Texinfo::Documentlanguages)
Provides:	perl(Texinfo::Encoding)
Provides:	perl(Texinfo::MiscXS)
Provides:	perl(Texinfo::ModulePath)
Provides:	perl(Texinfo::Parser)
Provides:	perl(Texinfo::ParserNonXS)
Provides:	perl(Texinfo::Report)
Provides:	perl(Texinfo::Structuring)
Provides:	perl(Texinfo::Transformations)
Provides:	perl(Texinfo::XSLoader)

%description
Texinfo is a documentation system that can produce both online information
and printed output from a single source file.  Normally, you'd have to
write two separate documents: one for online help or other online
information and the other for a typeset manual or other printed work.
Using Texinfo, you only need to write one source document.  Then when the
work needs revision, you only have to revise one source document.  The GNU
Project uses the Texinfo file format for most of its documentation.

Install texinfo if you want a documentation system for producing both
online and print documentation from the same source file and/or if you are
going to write documentation for the GNU Project.

%package -n info
Summary:	A stand-alone TTY-based reader for GNU texinfo documentation
Group:		System/Base
Requires(pre):	bash
Requires(pre):	coreutils
Requires(pre):	grep
Requires(pre):	less
Requires(pre):	xz
Requires:	less
Requires:	xz
Provides:	/sbin/install-info
%rename		info-install

%description -n info
The GNU project uses the texinfo file format for much of its
documentation. The info package provides a standalone TTY-based browser
program for viewing texinfo files.

You should install info, because GNU's texinfo documentation is a valuable
source of information about the software on your system.

%prep
%autosetup -p1

%build
%configure --disable-rpath
%make_build
%make_build -C util

%check
# all tests must pass
make check

%install
%make_install
mkdir -p %{buildroot}/sbin
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin
touch %{buildroot}%{_infodir}/dir

%find_lang %{name} --all-name

%triggerin -n info -- %{_infodir}/*.info*, %{_infodir}/texinfo.*
if [ $1 -eq 1 -o $2 -eq 1 ]; then
    while [ -n "$3" ]; do
	if [ -f "$3" ]; then
	    LESSOPEN="|/usr/bin/lesspipe.sh %s" LESS_ADVANCED_PREPROCESSOR=1 less "$3" | grep -q -e INFO-DIR-SECTION && /sbin/install-info "$3" --dir=%{_infodir}/dir
	fi
	shift
    done
fi

%triggerun -n info -- %{_infodir}/*.info*, %{_infodir}/texinfo.*
if [ $2 -eq 0 ]; then
    while [ -n "$3" ]; do
	if [ -f "$3" ]; then
	    LESSOPEN="|/usr/bin/lesspipe.sh %s" LESS_ADVANCED_PREPROCESSOR=1 less "$3" | grep -q -e INFO-DIR-SECTION && /sbin/install-info "$3" --dir=%{_infodir}/dir --remove
	fi
	shift
    done
fi

%files -f %{name}.lang
%doc AUTHORS NEWS README TODO
%{_bindir}/makeinfo
%{_bindir}/pdftexi2dvi
%{_bindir}/pod2texi
%{_bindir}/texindex
%{_bindir}/texi2any
%{_bindir}/texi2dvi
%{_bindir}/texi2pdf
%{_infodir}/info-stnd.info*
%{_infodir}/texinfo*
%{_mandir}/man1/makeinfo.1*
%{_mandir}/man1/pdftexi2dvi.1*
%{_mandir}/man1/pod2texi.1*
%{_mandir}/man1/texi2any.1*
%{_mandir}/man1/texi2dvi.1*
%{_mandir}/man1/texi2pdf.1*
%{_mandir}/man1/texindex.1*
%{_mandir}/man5/texinfo.5*
%{_datadir}/texinfo
%{_libdir}/texinfo/Parsetexi.so
%{_libdir}/texinfo/XSParagraph.so
%{_libdir}/texinfo/MiscXS.so

%files -n info
/sbin/install-info
%{_bindir}/info
%ghost %{_infodir}/dir
%{_mandir}/man1/info.1*
%{_mandir}/man1/install-info.1*
%{_mandir}/man5/info.5*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17572 |21mr|texinfo-6.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Maybe we should disable more perl() provides and exclude them from autoreq?
%global __provides_exclude perl\\(Text.*|perl\\(Locale.*
%global __requires_exclude perl\\(Text.*|perl\\(Locale.*

Summary:	Tools needed to create Texinfo format documentation files
Name:		texinfo
Version:	6.8
Release:	1
License:	GPLv3+
Group:		Publishing
Url:		http://www.gnu.org/software/texinfo/
Source0:	ftp://ftp.gnu.org/pub/gnu/texinfo/%{name}-%{version}.tar.xz
Source2:	%{name}.rpmlintrc
Patch1:		texinfo-3.12h-fix.patch
Patch107:	texinfo-4.13-vikeys-segfault-fix.patch
BuildRequires:	help2man
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	perl-devel

# Not detected by the dependency generator because these perl modules
# go to %{_datadir}/texinfo rather than a default perl directory
# (tpg) why not use: global __provides_exclude ^perl\\(.*Texinfo.*\\)$ global __requires_exclude ^perl\\(.*Texinfo.*\\)$ ?
Provides:	perl(Texinfo::Common)
Provides:	perl(Texinfo::Convert)
Provides:	perl(Texinfo::Convert::Converter)
Provides:	perl(Texinfo::Convert::DocBook)
Provides:	perl(Texinfo::Convert::HTML)
Provides:	perl(Texinfo::Convert::Info)
Provides:	perl(Texinfo::Convert::IXIN)
Provides:	perl(Texinfo::Convert::IXINSXML)
Provides:	perl(Texinfo::Convert::Line)
Provides:	perl(Texinfo::Convert::NodeNameNormalization)
Provides:	perl(Texinfo::Convert::ParagraphNonXS)
Provides:	perl(Texinfo::Convert::Paragraph)
Provides:	perl(Texinfo::Convert::PlainTexinfo)
Provides:	perl(Texinfo::Convert::Plaintext)
Provides:	perl(Texinfo::Convert::Texinfo)
Provides:	perl(Texinfo::Convert::TexinfoSXML)
Provides:	perl(Texinfo::Convert::TexinfoXML)
Provides:	perl(Texinfo::Convert::TextContent)
Provides:	perl(Texinfo::Convert::Text)
Provides:	perl(Texinfo::Convert::UnFilled)
Provides:	perl(Texinfo::Convert::Unicode)
Provides:	perl(Texinfo::Convert::XSParagraph)
Provides:	perl(Texinfo::Convert::XSParagraph::TestXS)
Provides:	perl(Texinfo::Documentlanguages)
Provides:	perl(Texinfo::Encoding)
Provides:	perl(Texinfo::MiscXS)
Provides:	perl(Texinfo::ModulePath)
Provides:	perl(Texinfo::Parser)
Provides:	perl(Texinfo::ParserNonXS)
Provides:	perl(Texinfo::Report)
Provides:	perl(Texinfo::Structuring)
Provides:	perl(Texinfo::Transformations)
Provides:	perl(Texinfo::XSLoader)

%description
Texinfo is a documentation system that can produce both online information
and printed output from a single source file.  Normally, you'd have to
write two separate documents: one for online help or other online
information and the other for a typeset manual or other printed work.
Using Texinfo, you only need to write one source document.  Then when the
work needs revision, you only have to revise one source document.  The GNU
Project uses the Texinfo file format for most of its documentation.

Install texinfo if you want a documentation system for producing both
online and print documentation from the same source file and/or if you are
going to write documentation for the GNU Project.

%package -n info
Summary:	A stand-alone TTY-based reader for GNU texinfo documentation
Group:		System/Base
Requires(pre):	bash
Requires(pre):	coreutils
Requires(pre):	grep
Requires(pre):	less
Requires(pre):	xz
Requires:	less
Requires:	xz
Provides:	/sbin/install-info
%rename		info-install

%description -n info
The GNU project uses the texinfo file format for much of its
documentation. The info package provides a standalone TTY-based browser
program for viewing texinfo files.

You should install info, because GNU's texinfo documentation is a valuable
source of information about the software on your system.

%prep
%autosetup -p1

%build
%configure --disable-rpath
%make_build
%make_build -C util

%check
# all tests must pass
make check

%install
%make_install
mkdir -p %{buildroot}/sbin
mv %{buildroot}%{_bindir}/install-info %{buildroot}/sbin
touch %{buildroot}%{_infodir}/dir

%find_lang %{name} --all-name

%triggerin -n info -- %{_infodir}/*.info*, %{_infodir}/texinfo.*
if [ $1 -eq 1 -o $2 -eq 1 ]; then
    while [ -n "$3" ]; do
	if [ -f "$3" ]; then
	    LESSOPEN="|/usr/bin/lesspipe.sh %s" LESS_ADVANCED_PREPROCESSOR=1 less "$3" | grep -q -e INFO-DIR-SECTION && /sbin/install-info "$3" --dir=%{_infodir}/dir
	fi
	shift
    done
fi

%triggerun -n info -- %{_infodir}/*.info*, %{_infodir}/texinfo.*
if [ $2 -eq 0 ]; then
    while [ -n "$3" ]; do
	if [ -f "$3" ]; then
	    LESSOPEN="|/usr/bin/lesspipe.sh %s" LESS_ADVANCED_PREPROCESSOR=1 less "$3" | grep -q -e INFO-DIR-SECTION && /sbin/install-info "$3" --dir=%{_infodir}/dir --remove
	fi
	shift
    done
fi

%files -f %{name}.lang
%doc AUTHORS NEWS README TODO
%{_bindir}/makeinfo
%{_bindir}/pdftexi2dvi
%{_bindir}/pod2texi
%{_bindir}/texindex
%{_bindir}/texi2any
%{_bindir}/texi2dvi
%{_bindir}/texi2pdf
%{_infodir}/info-stnd.info*
%{_infodir}/texinfo*
%{_mandir}/man1/makeinfo.1*
%{_mandir}/man1/pdftexi2dvi.1*
%{_mandir}/man1/pod2texi.1*
%{_mandir}/man1/texi2any.1*
%{_mandir}/man1/texi2dvi.1*
%{_mandir}/man1/texi2pdf.1*
%{_mandir}/man1/texindex.1*
%{_mandir}/man5/texinfo.5*
%{_datadir}/texinfo
%{_libdir}/texinfo/Parsetexi.so
%{_libdir}/texinfo/XSParagraph.so
%{_libdir}/texinfo/MiscXS.so

%files -n info
/sbin/install-info
%{_bindir}/info
%ghost %{_infodir}/dir
%{_mandir}/man1/info.1*
%{_mandir}/man1/install-info.1*
%{_mandir}/man5/info.5*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17573 |21mr|texlive-20200406-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _disable_rebuild_configure 1
# redefine macro here for bootstrap
%global _texmfvardir /var/lib/texmf
%global _texmfconfdir %{_sysconfdir}/texmf
%global _texmfdistdir %{_datadir}/texmf-dist

%define _texmf_enable_asymptote		0
%define _texmf_enable_biber		0
%define _texmf_enable_xindy		0
%bcond_without dvik
%define _texmf_with_system_dialog	1
%define _texmf_with_system_icu		1
%define _texmf_with_system_lcdf		0
%define _texmf_with_system_poppler	1
%define _texmf_with_system_psutils	1
%define _texmf_with_system_t1lib	0
%define _texmf_with_system_tex4ht	0
%define _texmf_with_system_teckit	1

%define enable_shared			1

%define historic			1

%define kpathsea_major 6
%define libkpathsea %mklibname kpathsea %{kpathsea_major}
%define devkpathsea %mklibname kpathsea -d

%define ptexenc_major 1
%define libptexenc %mklibname ptexenc %{ptexenc_major}
%define devptexenc %mklibname ptexenc -d

%define synctex_major 2
%define libsynctex %mklibname synctex %{synctex_major}
%define devsynctex %mklibname synctex -d

%define texlua53_major 5
%define libtexlua53 %mklibname texlua53 %{texlua53_major}
%define devtexlua53 %mklibname texlua53 -d

%define texluajit_major 2
%define libtexluajit %mklibname texluajit %{texluajit_major}
%define devtexluajit %mklibname texluajit -d


Summary:	The TeX formatting system
Name:		texlive
Version:	20200406
Release:	14
Group:		Publishing
License:	http://www.tug.org/texlive/LICENSE.TL
Url:		http://tug.org/texlive/
%if %{historic}
Source0:	ftp://tug.org/historic/systems/texlive/%(echo %{version}|cut -b1-4)/texlive-%{version}-source.tar.xz
%else
# svn co svn://tug.org/texlive/branches/branch2019/Build/source texlive-source
# cd texlive-source
# svn export . /tmp/texlive-$(date +%Y%m%d)-source
# cd /tmp
# tar cJf texlive-$(date +%Y%m%d)-source.tar.xz texlive-$(date +%Y%m%d)-source/
Source0:	texlive-20131212-source.tar.xz
%endif
Source100:	%{name}.rpmlintrc
Patch1:		texlive-asymptote.patch
Patch2:		texlive-xdvi.patch
# New definition only misses default location...
Patch3:		texlive-texmfcnf.patch
Patch4:		texlive-2019-poppler-83.patch
Patch7:		texlive-20190413-poppler-0.76.patch
Patch8:		poppler076.patch
Patch9:		texlive-2018-libdl-linkage.patch
Patch10:	e2k-ffi.patch

BuildRequires:	texlive-tlpkg

BuildRequires:	bison
%if %{_texmf_enable_xindy}
BuildRequires:	clisp
BuildRequires:	ffcall-devel
%endif
BuildRequires:	flex
%if %{_texmf_enable_asymptote}
BuildRequires:	pkgconfig(fftw3)
%endif
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fontconfig)
%if %{_texmf_enable_asymptote}
BuildRequires:	pkgconfig(bdw-gc)
BuildRequires:	libsigsegv-devel
BuildRequires:	ghostscript-dvipdf
BuildRequires:	pkgconfig(gsl)
BuildRequires:	pkgconfig(gl)
%endif
BuildRequires:	gd-devel
%if %{_texmf_with_system_icu}
BuildRequires:	pkgconfig(icu-i18n)
%endif
%if %{_texmf_with_system_poppler}
BuildRequires:	libpoppler117-devel
%endif
BuildRequires:	pkgconfig(xaw7)
%if !%{_texmf_with_system_dialog}
BuildRequires:	pkgconfig(ncurses)
%endif
BuildRequires:	pkgconfig(libpng)
%if %{_texmf_with_system_t1lib}
BuildRequires:	t1lib-devel
%endif
%if %{_texmf_with_system_teckit}
BuildRequires:	teckit-devel
%endif
%if %{_texmf_enable_xindy}
BuildRequires:	texlive
%endif
%if %{_texmf_enable_asymptote}
BuildRequires:	texinfo
%endif
BuildRequires:	pkgconfig(zziplib)
BuildRequires:	ghostscript-devel
BuildRequires:	gmp-devel
BuildRequires:	mpfr-devel
BuildRequires:	pkgconfig(xaw3d)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(graphite2)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	libpaper-devel

Requires:	ghostscript
%if %{_texmf_enable_asymptote}
Requires:	gv
Requires:	tkinter
%endif
%if %{_texmf_with_system_teckit}
Requires:	teckit
%endif
Requires:	texlive-latex
Requires:	texlive-collection-basic
Recommends:	texlive-scheme-full texlive-scheme-xml
Recommends:	texlive-collection-latexextra
Requires(post):	texlive-tlpkg

Obsoletes:	tetex-usrlocal < 3.0-1

%description
TeX Live is an easy way to get up and running with the TeX document
production system. It provides a comprehensive TeX system. It includes
all the major TeX-related programs, macro packages, and fonts that are
free software, including support for many languages around the world.

%files
%dir %{_texmfvardir}
%dir %{_texmfconfdir}

#-----------------------------------------------------------------------

%if %{enable_shared}
%package -n %{libkpathsea}
Summary:	Path searching library for TeX-related files
Group:		System/Libraries
Provides:	kpathsea = %{EVRD}

%description -n %{libkpathsea}
Kpathsea implements generic path searching, configuration,
and TeX-specific file searching.

%files -n %{libkpathsea}
%{_libdir}/libkpathsea.so.%{kpathsea_major}*
%endif

#-----------------------------------------------------------------------

%if %{enable_shared}
%package -n %{devkpathsea}
Summary:	Kpathsea development files
Group:		Development/C
Requires:	%{libkpathsea} = %{EVRD}
Provides:	kpathsea-devel = %{EVRD}

%description -n %{devkpathsea}
Kpathsea implements generic path searching, configuration,
and TeX-specific file searching.
This package includes the kpathsea development files.

%files -n %{devkpathsea}
%{_includedir}/kpathsea
%{_libdir}/libkpathsea.so
%{_libdir}/pkgconfig/kpathsea.pc
%endif

#----------------------------------------------------------------------------

%if %{enable_shared}
%package -n %{libptexenc}
Summary:	Library for Japanese pTeX
Group:		System/Libraries
Provides:	ptexenc = %{EVRD}

%description -n %{libptexenc}
ptexenc is a useful library for Japanese pTeX
(which stands for publishing TeX, and is an extension of
TeX by ASCII Co.) and its surrounding tools.

%files -n %{libptexenc}
%{_libdir}/libptexenc.so.%{ptexenc_major}*
%endif

#-----------------------------------------------------------------------

%if %{enable_shared}
%package -n %{devptexenc}
Summary:	Library for Japanese pTeX
Group:		Development/C
Requires:	%{libptexenc} = %{EVRD}
Provides:	ptexenc-devel = %{EVRD}

%description -n %{devptexenc}
ptexenc is a useful library for Japanese pTeX
(which stands for publishing TeX, and is an extension of
TeX by ASCII Co.) and its surrounding tools.
This package includes the ptexenc development files.

%files -n %{devptexenc}
%{_includedir}/ptexenc/
%{_libdir}/libptexenc.so
%{_libdir}/pkgconfig/ptexenc.pc
%endif

#----------------------------------------------------------------------------

%package -n texlive-afm2pl.bin
Summary:	Binary files of afm2pl
Conflicts:	texlive < 20110705-7

%description -n texlive-afm2pl.bin
texlive afm2pl.bin package.

%files -n texlive-afm2pl.bin
%{_bindir}/afm2pl

#----------------------------------------------------------------------------

%package -n texlive-aleph.bin
Summary:	Binary files of aleph
Conflicts:	texlive < 20110705-7

%description -n texlive-aleph.bin
texlive aleph.bin package.

%files -n texlive-aleph.bin
%{_bindir}/aleph
%{_bindir}/lamed

#----------------------------------------------------------------------------

%package -n texlive-axohelp.bin
Summary:        Binary files of axohelp

%description    -n texlive-axohelp.bin
texlive axohelp.bin package.

%files -n texlive-axohelp.bin
%{_bindir}/axohelp

#-----------------------------------------------------------------------

%if %{_texmf_enable_biber}
%package -n texlive-biber.bin
Summary:	Binary files of biber
Conflicts:	texlive < 20110705-7

%description -n texlive-biber.bin
texlive biber.bin package.

%files -n texlive-biber.bin
%{_bindir}/biber
%endif

#----------------------------------------------------------------------------

%package -n texlive-bibtex.bin
Summary:	Binary files of bibtex
Conflicts:	texlive < 20110705-7

%description -n texlive-bibtex.bin
texlive bibtex.bin package.

%files -n texlive-bibtex.bin
%{_bindir}/bibtex

#----------------------------------------------------------------------------

%package -n texlive-bibtex8.bin
Summary:	Binary files of bibtex8
Conflicts:	texlive < 20110705-7

%description -n texlive-bibtex8.bin
texlive bibtex8.bin package.

%files -n texlive-bibtex8.bin
%{_bindir}/bibtex8
#----------------------------------------------------------------------------

%package -n texlive-bibtexu.bin
Summary:	Binary files of bibtexu
Conflicts:	texlive < 20110705-7

%description -n texlive-bibtexu.bin
texlive bibtexu.bin package.

%files -n texlive-bibtexu.bin
%{_bindir}/bibtexu

#----------------------------------------------------------------------------

%package -n texlive-chktex.bin
Summary:	Binary files of chktex
Conflicts:	texlive < 20110705-7

%description -n texlive-chktex.bin
texlive chktex.bin package.

%files -n texlive-chktex.bin
%{_bindir}/chktex
#-----------------------------------------------------------------------
%package       -n texlive-chkdvifont.bin
Summary:       Binary files of chkdvifont

%description   -n texlive-chkdvifont.bin
texlive chkdvifont.bin package.

%files -n texlive-chkdvifont.bin
%{_bindir}/chkdvifont

#-----------------------------------------------------------------------
%package       -n texlive-ctwill.bin
Summary:       Binary files of ctwill

%description   -n texlive-ctwill.bin
texlive ctwill.bin package.

%files -n texlive-ctwill.bin
%{_bindir}/ctwill
%{_bindir}/ctwill-refsort
%{_bindir}/ctwill-twinx

#-----------------------------------------------------------------------
%package       -n texlive-dvispc.bin
Summary:       Binary files of dvispc

%description   -n texlive-dvispc.bin
texlive dvispc.bin package.

%files -n texlive-dvispc.bin
%{_bindir}/dvispc

#----------------------------------------------------------------------------

%package -n texlive-cjkutils.bin
Summary:	Binary files of cjkutils
Conflicts:	texlive < 20110705-7

%description -n texlive-cjkutils.bin
texlive cjkutils.bin package.

%files -n texlive-cjkutils.bin
%{_bindir}/bg5+latex
%{_bindir}/bg5+pdflatex
%{_bindir}/bg5conv
%{_bindir}/bg5latex
%{_bindir}/bg5pdflatex
%{_bindir}/cef5conv
%{_bindir}/cef5latex
%{_bindir}/cef5pdflatex
%{_bindir}/cefconv
%{_bindir}/ceflatex
%{_bindir}/cefpdflatex
%{_bindir}/cefsconv
%{_bindir}/cefslatex
%{_bindir}/cefspdflatex
%{_bindir}/extconv
%{_bindir}/gbklatex
%{_bindir}/gbkpdflatex
%{_bindir}/hbf2gf
%{_bindir}/sjisconv
%{_bindir}/sjislatex
%{_bindir}/sjispdflatex
#-----------------------------------------------------------------------
%package        -n texlive-cluttex.bin
Summary:        Binary files of cluttex

%description    -n texlive-cluttex.bin
texlive cluttex.bin package.

%files -n texlive-cluttex.bin
%{_bindir}/cluttex
%{_texmfdistdir}/scripts/cluttex/cluttex.lua
%{_bindir}/clxelatex
%{_bindir}/cllualatex

#-----------------------------------------------------------------------
%package        -n texlive-ctanbib.bin
Summary:        Binary files of ctanbib

%description    -n texlive-ctanbib.bin
texlive ctanbib.bin package.

%files -n texlive-ctanbib.bin
%{_bindir}/ctanbib
%{_texmfdistdir}/scripts/ctanbib/ctanbib
#----------------------------------------------------------------------------

%package -n texlive-ctie.bin
Summary:	Binary files of ctie
Conflicts:	texlive < 20110705-7

%description -n texlive-ctie.bin
texlive ctie.bin package.

%files -n texlive-ctie.bin
%{_bindir}/ctie

#----------------------------------------------------------------------------

%package -n texlive-cweb.bin
Summary:	Binary files of cweb
Conflicts:	texlive < 20110705-7

%description -n texlive-cweb.bin
texlive cweb.bin package.

%files -n texlive-cweb.bin
%{_bindir}/ctangle
%{_bindir}/cweave

#----------------------------------------------------------------------------

%package -n texlive-detex.bin
Summary:	Binary files of detex
Conflicts:	texlive < 20110705-7

%description -n texlive-detex.bin
texlive detex.bin package.

%files -n texlive-detex.bin
%{_bindir}/detex

#----------------------------------------------------------------------------

%package -n texlive-devnag.bin
Summary:	Binary files of devnag
Conflicts:	texlive < 20110705-7

%description -n texlive-devnag.bin
texlive devnag.bin package.

%files -n texlive-devnag.bin
%{_bindir}/devnag

#----------------------------------------------------------------------------

%package -n texlive-dtl.bin
Summary:	Binary files of dtl
Conflicts:	texlive < 20110705-7

%description -n texlive-dtl.bin
texlive dtl.bin package.

%files -n texlive-dtl.bin
%{_bindir}/dt2dv
%{_bindir}/dv2dt

#----------------------------------------------------------------------------

%package -n texlive-dvi2tty.bin
Summary:	Binary files of dvi2tty
Conflicts:	texlive < 20110705-7

%description -n texlive-dvi2tty.bin
texlive dvi2tty.bin package.

%files -n texlive-dvi2tty.bin
%{_bindir}/disdvi
%{_bindir}/dvi2tty

#----------------------------------------------------------------------------

%package -n texlive-dvicopy.bin
Summary:	Binary files of dvicopy
Conflicts:	texlive < 20110705-7

%description -n texlive-dvicopy.bin
texlive dvicopy.bin package.

%files -n texlive-dvicopy.bin
%{_bindir}/dvicopy

#----------------------------------------------------------------------------

%package -n texlive-dvidvi.bin
Summary:	Binary files of dvidvi
Conflicts:	texlive < 20110705-7

%description -n texlive-dvidvi.bin
texlive dvidvi.bin package.

%files -n texlive-dvidvi.bin
%{_bindir}/dvidvi

#----------------------------------------------------------------------------

%package -n texlive-dviljk.bin
Summary:	Binary files of dviljk
Conflicts:	texlive < 20110705-7

%description -n texlive-dviljk.bin
texlive dviljk.bin package.

%files -n texlive-dviljk.bin
%{_bindir}/dvihp
%{_bindir}/dvilj
%{_bindir}/dvilj2p
%{_bindir}/dvilj4
%{_bindir}/dvilj4l
%{_bindir}/dvilj6

#----------------------------------------------------------------------------

%package -n texlive-dvipdfmx.bin
Summary:	Binary files of dvipdfmx
Provides:	texlive-dvipdfm.bin = %{EVRD}
Conflicts:	texlive < 20110705-7

%description -n texlive-dvipdfmx.bin
texlive dvipdfmx.bin package.

%files -n texlive-dvipdfmx.bin
%{_bindir}/dvipdfm
%{_bindir}/dvipdfmx
%{_bindir}/ebb
%{_bindir}/extractbb
%{_bindir}/xdvipdfmx
#----------------------------------------------------------------------------

%package -n texlive-dvipng.bin
Summary:	Binary files of dvipng
Conflicts:	texlive < 20110705-7

%description -n texlive-dvipng.bin
texlive dvipng.bin package.

%files -n texlive-dvipng.bin
%{_bindir}/dvigif
%{_bindir}/dvipng

#----------------------------------------------------------------------------

%package -n texlive-dvipos.bin
Summary:	Binary files of dvipos
Conflicts:	texlive < 20110705-7

%description -n texlive-dvipos.bin
texlive dvipos.bin package.

%files -n texlive-dvipos.bin
%{_bindir}/dvipos

#----------------------------------------------------------------------------

%package -n texlive-dvips.bin
Summary:	Binary files of dvips
Conflicts:	texlive < 20110705-7

%description -n texlive-dvips.bin
texlive dvips.bin package.

%files -n texlive-dvips.bin
%{_bindir}/afm2tfm
%{_bindir}/dvips
#----------------------------------------------------------------------------

%package -n texlive-dvisvgm.bin
Summary:	Binary files of dvisvgm
Conflicts:	texlive < 20110705-7

%description -n texlive-dvisvgm.bin
texlive dvisvgm.bin package.

%files -n texlive-dvisvgm.bin
%{_bindir}/dvisvgm

#----------------------------------------------------------------------------

%package -n texlive-fontware.bin
Summary:	Binary files of fontware
Conflicts:	texlive < 20110705-7

%description -n texlive-fontware.bin
texlive fontware.bin package.

%files -n texlive-fontware.bin
%{_bindir}/pltotf
%{_bindir}/tftopl
%{_bindir}/vftovp
%{_bindir}/vptovf

#----------------------------------------------------------------------------

%package -n texlive-gsftopk.bin
Summary:	Binary files of gsftopk
Conflicts:	texlive < 20110705-7

%description -n texlive-gsftopk.bin
texlive gsftopk.bin package.

%files -n texlive-gsftopk.bin
%{_bindir}/gsftopk

#----------------------------------------------------------------------------

%package -n texlive-kpathsea.bin
Summary:	Binary files of kpathsea
Conflicts:	texlive < 20110705-7

%description -n texlive-kpathsea.bin
texlive kpathsea.bin package.

%files -n texlive-kpathsea.bin
%{_bindir}/kpseaccess
%{_bindir}/kpsepath
%{_bindir}/kpsereadlink
%{_bindir}/kpsestat
%{_bindir}/kpsetool
%{_bindir}/kpsewhich
%{_bindir}/kpsexpand
%{_bindir}/mkocp
%{_bindir}/mkofm
#provided texlive-tetex package
#%%{_bindir}/mktexfmt
%{_bindir}/mktexlsr
%{_bindir}/mktexmf
%{_bindir}/mktexpk
%{_bindir}/mktextfm
%{_bindir}/texhash
%{_texmfdistdir}/scripts/texlive-extra/kpsetool.sh
%{_texmfdistdir}/scripts/texlive/mktexlsr
%{_texmfdistdir}/scripts/texlive/mktexmf
%{_texmfdistdir}/scripts/texlive/mktexpk
%{_texmfdistdir}/scripts/texlive/mktextfm

#----------------------------------------------------------------------------

%package -n texlive-lacheck.bin
Summary:	Binary files of lacheck
Conflicts:	texlive < 20110705-7

%description -n texlive-lacheck.bin
texlive lacheck.bin package.

%files -n texlive-lacheck.bin
%{_bindir}/lacheck

#----------------------------------------------------------------------------

%package -n texlive-lcdftypetools.bin
Summary:	Binary files of lcdftypetools
Provides:	t1utils = %{EVRD}
Obsoletes:	t1utils < %{EVRD}
Conflicts:	texlive < 20110705-7

%description -n texlive-lcdftypetools.bin
texlive lcdftypetools.bin package.

%files -n texlive-lcdftypetools.bin
%{_bindir}/cfftot1
%{_bindir}/mmafm
%{_bindir}/mmpfb
%{_bindir}/otfinfo-texlive
%{_bindir}/otftotfm
%{_bindir}/t1dotlessj
%{_bindir}/t1lint
%{_bindir}/t1rawafm
%{_bindir}/t1reencode
%{_bindir}/t1testpage
%{_bindir}/ttftotype42
%{_bindir}/t1ascii
%{_bindir}/t1asm
%{_bindir}/t1binary
%{_bindir}/t1disasm
%{_bindir}/t1mac
%{_bindir}/t1unmac

#----------------------------------------------------------------------------

%package -n texlive-luatex.bin
Summary:	Binary files of luatex
Conflicts:	texlive < 20110705-7

%description -n texlive-luatex.bin
texlive luatex.bin package.

%files -n texlive-luatex.bin
%{_bindir}/dviluatex
%{_bindir}/luatex
%{_bindir}/dvilualatex
%{_bindir}/lualatex
%{_bindir}/texlua
%{_bindir}/texluac
%{_bindir}/mflua
%{_bindir}/mflua-nowin
%ifnarch %{riscv} %{mips} %{power64} s390 s390x %{e2k}
%{_bindir}/luajittex
%{_bindir}/mfluajit
%{_bindir}/mfluajit-nowin
%endif

#----------------------------------------------------------------------------

%package -n texlive-m-tx.bin
Summary:	Binary files of m-tx
Conflicts:	texlive < 20110705-7

%description -n texlive-m-tx.bin
texlive m-tx.bin package.

%files -n texlive-m-tx.bin
%{_bindir}/prepmx
#----------------------------------------------------------------------------

%package -n texlive-makeindex.bin
Summary:	Binary files of makeindex
Conflicts:	texlive < 20110705-7

%description -n texlive-makeindex.bin
texlive makeindex.bin package.

%files -n texlive-makeindex.bin
%{_bindir}/makeindex
%{_bindir}/mkindex
%{_bindir}/xindex
%{_texmfdistdir}/scripts/xindex/xindex.lua
#----------------------------------------------------------------------------

%package -n texlive-metafont.bin
Summary:	Binary files of metafont
Conflicts:	texlive < 20110705-7

%description -n texlive-metafont.bin
texlive metafont.bin package.

%files -n texlive-metafont.bin
%{_bindir}/inimf
%{_bindir}/mf
%{_bindir}/mf-nowin

#----------------------------------------------------------------------------

%package -n texlive-metapost.bin
Summary:	Binary files of metapost
Conflicts:	texlive < 20110705-7

%description -n texlive-metapost.bin
texlive metapost.bin package.

%files -n texlive-metapost.bin
%{_bindir}/dvitomp
%{_bindir}/mfplain
%{_bindir}/mpost
%{_bindir}/pdvitomp
%{_bindir}/pmpost
%{_bindir}/updvitomp
%{_bindir}/upmpost
%{_bindir}/r-mpost
%{_bindir}/r-pmpost
%{_bindir}/r-upmpost

#----------------------------------------------------------------------------

%package -n texlive-mfware.bin
Summary:	Binary files of mfware
Conflicts:	texlive < 20110705-7

%description -n texlive-mfware.bin
texlive mfware.bin package.

%files -n texlive-mfware.bin
%{_bindir}/gftodvi
%{_bindir}/gftopk
%{_bindir}/gftype
%{_bindir}/mft
%{_bindir}/pktogf
%{_bindir}/pktype

#-----------------------------------------------------------------------
%package       -n texlive-msxlint.bin
Summary:       Binary files of msxlint

%description   -n texlive-msxlint.bin
texlive msxlint.bin package.

%files -n texlive-msxlint.bin
%{_bindir}/msxlint

#----------------------------------------------------------------------------

%package -n texlive-omegaware.bin
Summary:	Binary files of omegaware
Conflicts:	texlive < 20110705-7

%description -n texlive-omegaware.bin
texlive omegaware.bin package.

%files -n texlive-omegaware.bin
%{_bindir}/odvicopy
%{_bindir}/odvitype
%{_bindir}/ofm2opl
%{_bindir}/omfonts
%{_bindir}/opl2ofm
%{_bindir}/otangle
%{_bindir}/otp2ocp
%{_bindir}/outocp
%{_bindir}/ovf2ovp
%{_bindir}/ovp2ovf

#----------------------------------------------------------------------------

%package -n texlive-patgen.bin
Summary:	Binary files of patgen
Conflicts:	texlive < 20110705-7

%description -n texlive-patgen.bin
texlive patgen.bin package.

%files -n texlive-patgen.bin
%{_bindir}/patgen

#----------------------------------------------------------------------------

%package -n texlive-pdftex.bin
Summary:	Binary files of pdftex
Provides:	texlive-amstex.bin = %{EVRD}
Provides:	texlive-cslatex.bin = %{EVRD}
Provides:	texlive-csplain.bin = %{EVRD}
Provides:	texlive-eplain.bin = %{EVRD}
Provides:	texlive-jadetex.bin = %{EVRD}
Provides:	texlive-mex.bin = %{EVRD}
Provides:	texlive-mltex.bin = %{EVRD}
Provides:	texlive-texsis.bin = %{EVRD}
Provides:	texlive-xmltex.bin = %{EVRD}
Provides:	texlive-latex.bin = %{EVRD}
Conflicts:	texlive < 20110705-7

%description -n texlive-pdftex.bin
texlive pdftex.bin package.

%files -n texlive-pdftex.bin
%{_bindir}/amstex
%{_bindir}/cslatex
%{_bindir}/csplain
%{_bindir}/pdfcsplain
%{_bindir}/eplain
%{_bindir}/etex
%{_bindir}/jadetex
%{_bindir}/mex
%{_bindir}/mllatex
%{_bindir}/mltex
%{_bindir}/pdfcslatex
%{_bindir}/pdfetex
%{_bindir}/pdfjadetex
%{_bindir}/pdfmex
%{_bindir}/pdftex
%{_bindir}/pdftex-quiet
%{_bindir}/pdfxmltex
%{_bindir}/latex
%{_bindir}/pdflatex
%{_bindir}/texsis
%{_bindir}/utf8mex
%{_bindir}/xmltex
%{_texmfdistdir}/scripts/pdftex-quiet/pdftex-quiet
#----------------------------------------------------------------------------

%package -n texlive-pdftools.bin
Summary:	Binary files of pdftools
Conflicts:	texlive < 20110705-7

%description -n texlive-pdftools.bin
texlive pdftools.bin package.

%files -n texlive-pdftools.bin
%{_bindir}/pdfclose
%{_bindir}/pdfopen
%{_bindir}/pdftosrc

#----------------------------------------------------------------------------

%package -n texlive-pmx.bin
Summary:	Binary files of pmx
Conflicts:	texlive < 20110705-7

%description -n texlive-pmx.bin
texlive pmx.bin package.

%files -n texlive-pmx.bin
%{_bindir}/pmxab
%{_bindir}/scor2prt

#----------------------------------------------------------------------------

%package -n texlive-ps2pkm.bin
Summary:	Binary files of ps2pkm
Conflicts:	texlive < 20110705-7

%description -n texlive-ps2pkm.bin
texlive ps2pkm.bin package.

%files -n texlive-ps2pkm.bin
%{_bindir}/mag
%{_bindir}/pfb2pfa
%{_bindir}/pk2bm
%{_bindir}/ps2pk

#----------------------------------------------------------------------------

%package -n texlive-pstools.bin
Summary:	Binary files of pstools
Conflicts:	texlive < 20110705-7

%description -n texlive-pstools.bin
texlive pstools.bin package.

%files -n texlive-pstools.bin
%{_bindir}/bbox

#----------------------------------------------------------------------------

%package -n texlive-ptex.bin
Summary:	Binary files of ptex
Conflicts:	texlive < 20110705-7

%description -n texlive-ptex.bin
texlive ptex.bin package.

%files -n texlive-ptex.bin
%{_bindir}/eptex
%{_bindir}/makejvf
%{_bindir}/mendex
%{_bindir}/pbibtex
%{_bindir}/pdvitype
%{_bindir}/platex
%{_bindir}/ppltotf
%{_bindir}/ptex
%{_bindir}/ptftopl

#----------------------------------------------------------------------------

%package -n texlive-seetexk.bin
Summary:	Binary files of seetexk
Conflicts:	texlive < 20110705-7

%description -n texlive-seetexk.bin
texlive seetexk.bin package.

%files -n texlive-seetexk.bin
%{_bindir}/dvibook
%{_bindir}/dviconcat
%{_bindir}/dviselect
%{_bindir}/dvitodvi

#----------------------------------------------------------------------------

%package -n texlive-synctex.bin
Summary:	Binary files of synctex
Conflicts:	texlive < 20110705-7

%description -n texlive-synctex.bin
texlive synctex.bin package.

%files -n texlive-synctex.bin
%{_bindir}/synctex

#----------------------------------------------------------------------------

%package -n texlive-tex.bin
Summary:	Binary files of tex
Conflicts:	texlive < 20110705-7

%description -n texlive-tex.bin
texlive tex.bin package.

%files -n texlive-tex.bin
%{_bindir}/initex
%{_bindir}/tex

#----------------------------------------------------------------------------

%package -n texlive-tex4ht.bin
Summary:	Binary files of tex4ht
Conflicts:	texlive < 20110705-7

%description -n texlive-tex4ht.bin
texlive tex4ht.bin package.

%files -n texlive-tex4ht.bin
%{_bindir}/t4ht
%{_bindir}/tex4ht
#----------------------------------------------------------------------------

%package -n texlive-texware.bin
Summary:	Binary files of texware
Conflicts:	texlive < 20110705-7

%description -n texlive-texware.bin
texlive texware.bin package.

%files -n texlive-texware.bin
%{_bindir}/dvitype
%{_bindir}/pooltype

#----------------------------------------------------------------------------

%package -n texlive-tie.bin
Summary:	Binary files of tie
Conflicts:	texlive < 20110705-7

%description	-n texlive-tie.bin
texlive tie.bin package.

%files -n texlive-tie.bin
%{_bindir}/tie

#----------------------------------------------------------------------------

%package -n texlive-ttfutils.bin
Summary:	Binary files of ttfutils
Conflicts:	texlive < 20110705-7

%description	-n texlive-ttfutils.bin
texlive ttfutils.bin package.

%files -n texlive-ttfutils.bin
%{_bindir}/ttf2afm
%{_bindir}/ttf2pk
%{_bindir}/ttf2tfm
%{_bindir}/ttfdump
#----------------------------------------------------------------------------

%package -n texlive-uptex.bin
Summary:	Binary files of uptex
Conflicts:	texlive < 20110705-7

%description -n texlive-uptex.bin
texlive uptex.bin package.

%files -n texlive-uptex.bin
%{_bindir}/euptex
%{_bindir}/upbibtex
%{_bindir}/updvitype
%{_bindir}/uplatex
%{_bindir}/upmendex
%{_bindir}/uppltotf
%{_bindir}/uptex
%{_bindir}/uptftopl
%{_bindir}/wovp2ovf

#----------------------------------------------------------------------------

%package -n texlive-vlna.bin
Summary:	Binary files of vlna
Conflicts:	texlive < 20110705-7

%description -n texlive-vlna.bin
texlive vlna.bin package.

%files -n texlive-vlna.bin
%{_bindir}/vlna

#----------------------------------------------------------------------------

%package -n texlive-web.bin
Summary:	Binary files of web
Conflicts:	texlive < 20110705-7

%description -n texlive-web.bin
texlive web.bin package.

%files -n texlive-web.bin
%{_bindir}/tangle
%{_bindir}/weave
%{_bindir}/webquiz
%{_texmfdistdir}/scripts/webquiz/__pycache__/webquiz.cpython-*.pyc
%{_texmfdistdir}/scripts/webquiz/webquiz.py

#----------------------------------------------------------------------------

%if %{with dvik}
%package -n texlive-xdvi.bin
Summary:	Binary files of xdvi
Conflicts:	texlive < 20110705-7
Conflicts:	xdvi < 22.86
Obsoletes:	xdvi < 22.86
Provides:	xdvi = %{EVRD}

%description -n texlive-xdvi.bin
texlive xdvi.bin package.

%files -n texlive-xdvi.bin
%{_bindir}/xdvi
%{_bindir}/xdvi-xaw
%{_datadir}/applications/xdvi.desktop
%endif

#----------------------------------------------------------------------------

%package -n texlive-xetex.bin
Summary:	Binary files of xetex
Conflicts:	texlive < 20110705-7
%if ! %{_texmf_with_system_teckit}
Requires:      teckit
%endif

%description -n texlive-xetex.bin
texlive xetex.bin package.

%files -n texlive-xetex.bin
%if ! %{_texmf_with_system_teckit}
%{_bindir}/teckit_compile
%endif
%{_bindir}/xelatex
%{_bindir}/xetex

#-----------------------------------------------------------------------

%package -n texlive-autosp.bin
Summary: Autosp binary, part of TeX Live

%description -n texlive-autosp.bin
autosp binary, part of TeX Live

%files -n texlive-autosp.bin
%{_bindir}/autosp

#-----------------------------------------------------------------------
%package -n texlive-gregorio.bin
Summary: Gregorio - tool for working with Gregorian Chants in TeX

%description -n texlive-gregorio.bin
gregorio - tool for working with Gregorian Chants in TeX

%files -n texlive-gregorio.bin
%{_bindir}/gregorio

#-----------------------------------------------------------------------
%package -n texlive-tex2aspc.bin
Summary:        Binary files of tex2aspc

%description    -n texlive-tex2aspc.bin
texlive tex2aspc.bin package.

%files -n texlive-tex2aspc.bin
%{_bindir}/tex2aspc

#-----------------------------------------------------------------------

%package -n %{libsynctex}
Summary:	Library for SyncTeX
Group:		System/Libraries
Provides:	synctex = %{EVRD}

%description -n %{libsynctex}
Library for SyncTeX.

%files -n %{libsynctex}
%{_libdir}/libsynctex.so.%{synctex_major}*

#-----------------------------------------------------------------------

%package -n %{devsynctex}
Summary:       SyncTeX development files
Group:         Development/C
Requires:      texlive-synctex.bin = %{EVRD}
Requires:      %{libsynctex} = %{EVRD}

%description   -n %{devsynctex}
This package includes the SyncTeX development files.

%files -n %{devsynctex}
%{_includedir}/synctex
%{_libdir}/libsynctex.so
%{_libdir}/pkgconfig/synctex.pc

#-----------------------------------------------------------------------

%package -n %{libtexlua53}
Summary:	Library for TeXLua
Group:		System/Libraries

%description -n %{libtexlua53}
Library for TeXLua.

%files -n %{libtexlua53}
%{_libdir}/libtexlua53.so.%{texlua53_major}*

%ifnarch %{e2k} %{riscv}
#-----------------------------------------------------------------------
%package -n %{libtexluajit}
Summary:	Library for TeXLuaJit
Group:		System/Libraries

%description -n %{libtexluajit}
Library for TeXLuaJit.

%files -n %{libtexluajit}
%{_libdir}/libtexluajit.so.%{texluajit_major}*
%endif
#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}-source
%if %{_texmf_enable_asymptote}
%patch1 -p1
%endif
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1

cd libs/luajit
libtoolize --force
aclocal
automake -a
autoconf
cd ../..

# setup default builtin values, added to paths.h from texmf.cnf
perl -pi -e 's|^(TEXMFMAIN\s+= ).*|$1%{_texmfdistdir}|;'                  \
         -e 's|^(TEXMFDIST\s+= ).*|$1%{_texmfdistdir}|;'                  \
         -e 's|\@\@TEXMFCNF\@\@|%{_texmfdistdir}/web2c|;'                 \
         -e 's|^(TEXMFLOCAL\s+= ).*|$1%{_texmflocaldir}|;'                \
         -e 's|^(TEXMFSYSVAR\s+= ).*|$1%{_texmfvardir}|;'                 \
         -e 's|^(TEXMFSYSCONFIG\s+= ).*|$1%{_texmfconfdir}|;'             \
         -e 's|^(TEXMFHOME\s+= ).*|$1\$HOME/texmf|;'                      \
         -e 's|^(TEXMFVAR\s+= ).*|$1\$HOME/.texlive2013/texmf-var|;'      \
         -e 's|^(TEXMFCONFIG\s+= ).*|$1\$HOME/.texlive2013/texmf-config|;'\
         -e 's|^(OSFONTDIR\s+= ).*|$1%{_datadir}/fonts|;'                 \
        texk/kpathsea/texmf.cnf

# t4ht expects to be un /usr/share/texmf/bin/t4ht (FS#27251)
sed -i s/SELFAUTOPARENT/TEXMFROOT/ texk/tex4htk/t4ht.c

## prevent compiling Xdvi with libXp
sed -i~ 's|-lXp ||' texk/xdvik/configure
find texk/web2c/{lua,pdf}texdir -type f | xargs sed -e 's|gTrue|true|g' -e 's|gFalse|false|g' -e 's|GBool|bool|g' -i
cp -pv texk/web2c/pdftexdir/pdftoepdf{-poppler0.86.0,}.cc
cp -pv texk/web2c/pdftexdir/pdftosrc{-poppler0.83.0,}.cc
sed -i	\
	-e "s/const Dict& dic1 = page->getGroup();/const Dict\& dic1 = *page->getGroup();/"		\
	-e "s/const Dict& dic2 = groupDict.getDict();/const Dict\& dic2 = *groupDict.getDict();/"	\
	texk/web2c/pdftexdir/pdftoepdf.cc

%build
%config_update
export CFLAGS="%{optflags}"
export CXXFLAGS="%{optflags} -std=c++17"
mkdir texlive
pushd texlive

# As of 2.9.1, freetype-config doesn't exist anymore -- but texlive
# uses it in so many places that patching its use away would be painful.
# Let's provide it instead...
cat >freetype-config <<'EOF'
#!/bin/sh
for i in "$@"; do
       if [ "$i" = "--ftversion" ]; then
               ARGS="$ARGS --modversion"
       else
               ARGS="$ARGS $i"
       fi
done
exec pkg-config $ARGS freetype2
EOF
chmod +x freetype-config
export PATH=$PATH:`pwd`

CONFIGURE_TOP=.. \
%configure \
	--with-banner-add="/ROSA" \
	--disable-native-texlive-build \
%ifarch %{e2k} %{riscv}
    --disable-luajittex \
    --disable-luajithbtex \
    --disable-mfluajit \
%endif
	--enable-missing \
%if %{_texmf_enable_biber}
	--enable-biber \
%else
	--disable-biber \
%endif
%if %{enable_shared}
	--enable-shared \
	--disable-static \
%else
	--disable-shared \
%endif
%if %{_texmf_enable_xindy}
	--enable-xindy \
%else
	--disable-xindy \
%endif
	--with-system-freetype2 \
	--with-freetype2-includes=%{_includedir}/freetype2 \
%if %{_texmf_with_system_dialog}
	--disable-dialog \
%else
	--enable-dialog \
%endif
%if %{_texmf_with_system_psutils}
	--disable-psutils \
%else
	--enable-psutils \
%endif
	--with-system-gd \
	--with-system-mpfr \
	--with-system-gmp \
%if %{_texmf_with_system_lcdf}
	--disable-lcdf-typetools \
%endif
%if %{_texmf_with_system_icu}
	--with-system-icu \
%endif
	--with-system-png \
%if %{_texmf_with_system_t1lib}
	--with-system-t1lib \
	--disable-t1utils \
%endif
%if %{_texmf_with_system_teckit}
	--disable-teckit \
	--with-teckit-includes=%{_includedir}/teckit \
%endif
%if %{_texmf_with_system_tex4ht}
	--disable-tex4htk \
%endif
%if %{_texmf_with_system_poppler}
	--with-system-xpdf \
	--with-system-poppler \
%else
	--without-system-xpdf \
	--without-system-poppler \
%endif
%if %{without dvik}
        --disable-xdvik                                         \
%else
        --enable-xdvik                                          \
%endif
        --disable-static                                        \
        --with-system-pixman                                    \
        --with-system-harfbuzz                                  \
        --with-system-cairo                                     \
        --with-system-libpaper                                  \
	--with-system-zziplib
%make LIBGS_LIBS="-lgs -ldl"
popd

%if %{_texmf_enable_asymptote}
mkdir asympote
pushd asympote
CONFIGURE_TOP=../utils/asymptote
%configure \
	--enable-gc=system \
	--enable-texlive-build \
	--datadir=%{_texmfdir}
# for fix mplib.h: No such file or directory use -j2
%make -j2 LIBGS_LIBS="-lgs -ldl"
popd
%endif

%install
pushd texlive
%makeinstall_std
popd

%if %{_texmf_enable_asymptote}
pushd asymptote
%makeinstall_std
popd
%endif

for dir in texmf texmf-dist; do
    if [ -d %{buildroot}%{_prefix}/$dir ]; then
	mkdir -p %{buildroot}%{_datadir}/$dir
	mv -v %{buildroot}%{_prefix}/$dir/* %{buildroot}%{_datadir}/$dir/
	rm -fr %{buildroot}%{_prefix}/$dir
    fi
done

mkdir -p %{buildroot}%{_texmfvardir}
mkdir -p %{buildroot}%{_texmfconfdir}

%if %{_texmf_with_system_lcdf}
# stray directory left
rm -fr %{buildroot}%{_datadir}/lcdf-typetools-for-tex-live
%else
# openmpi has a program with the same name
if [ -f %{buildroot}%{_bindir}/otfinfo ]; then
    mv -f %{buildroot}%{_bindir}/otfinfo{,-texlive}
fi
%endif

pushd %{buildroot}%{_bindir}
    # missing symbolic links
    ln -sf aleph lamed
    ln -sf euptex uplatex
    ln -sf luatex dvilualatex
    ln -sf luatex lualatex
    ln -sf luatex dviluatex
    ln -sf pdftex amstex
    ln -sf pdftex cslatex
    ln -sf pdftex csplain
    ln -sf pdftex eplain
    ln -sf pdftex etex
    ln -sf pdftex jadetex
    ln -sf pdftex latex
    ln -sf pdftex mex
    ln -sf pdftex mltex
    ln -sf pdftex mllatex
    ln -sf pdftex pdfcslatex
    ln -sf pdftex pdfcsplain
    ln -sf pdftex pdfetex
    ln -sf pdftex pdfjadetex
    ln -sf pdftex pdflatex
    ln -sf pdftex pdfmex
    ln -sf pdftex pdfxmltex
    ln -sf pdftex utf8mex
    ln -sf pdftex texsis
    ln -sf pdftex xmltex
    ln -sf ptex platex
    ln -sf mpost mfplain
    ln -sf xetex xelatex
%if %{_texmf_enable_asymptote}
    ln -sf %{_texmfdir}/asymptote/GUI/xasy.py xasy
%endif

    # use scripts from noarch packages
    rm -f a5toa4 adhocfilelist allcm allneeded arara bib2gls biburl2doi \
          chkweb context convertgls2bib ctan-o-mat                      \
          ctxtools dtxgen dvi2fax dviinfox dvired fmtutil fmtutil-sys   \
          fontinst jfmutil                                              \
          kanji-config-updmap kanji-config-updmap-sys                   \
          kanji-fontmap-creator kpsewhere                               \
          l3build latexdef  latexpand ltxfileinfo                       \
          lua2dox_filter luaotfload-tool luatools mtxrun                \
          multibibliography pfarrei ps2frag pslatex pstopdf ptex2pdf    \
          rlxtools rubibtex rumakeindex texconfig texconfig-dialog      \
          texconfig-sys texexec tlcockpit tlshell tpic2pdftex wordcount

    # use symlinks from noarch packages
    rm -f a2ping afm2afm allec arlatex authorindex autoinst bbl2bib     \
          bibexport bibdoiadd bibmradd bibzbladd bundledoc cachepic     \
          checkcites checklistings cjk-gs-integrate cmap2enc contextjit \
          convbkmk diadia getmapdl pygmentex \
          ctanify ctanupload de-macro depythontex deweb dviasm dvipdft  \
          dosepsbin ebong e2pall epspdf epspdftk epstopdf exceltex      \
          fig4latex findhyph font2afm fragmaster fmtutil-user           \
          ht htcontext htlatex htmex httex httexi htxelatex htxetex     \
          installfont-tl jamo-normalize                                 \
          kanji-config-updmap-user komkindex latex2man latex-git-log    \
          latexdiff latexdiff-vc latexfileversion latexindent latexmk   \
          latex-papersize latexrevise latex2nemeth                      \
          lily-glyph-commands lily-image-commands lily-rebuild-pdfs     \
          listbib listings-ext.sh ltximg lwarpmk                        \
          m-tx make4ht makedtx makeglossaries                           \
          makeglossaries-lite match_parens mathspic mf2pt1 mk4ht mkgrkindex mkjobtexmf \
          mkluatexfontdb mkpic mkt1font mktexfmt mptopdf mtxrunjit musixflx \
          musixtex ot2kpx pdf180 pdf270 pdf90 pdfannotextractor pdfatfi \
          pdfbook pdfbook2 pdfcrop pdfflip pdflatexpicscale pdfjam pdfjam-pocketmod \
          pdfjam-slides3up pdfjam-slides6up pdfjoin pdfnup pdfpun       \
          pdfthumb pdfxup pedigree perltex pfm2kpx pkfix pkfix-helper   \
          pmxchords pn2pdf ppower4 ps2eps ps4pdf pst2pdf pmx2pdf purifyeps \
          pythontex repstopdf rpdfcrop rubikrotation rungs srcredact showglyphs \
          simpdftex splitindex sty2dtx svn-multi tex4ebook texcount texdef \
          texdiff texdirflatten texdoc texdoctk texfot texlinks         \
          texliveonfly texloganalyser texluajit texluajitc texmfstart   \
          texosquery texosquery-jre5 texosquery-jre8                    \
          thumbpdf tlmgr ttf2kotexfont typeoutfileinfo ulqda updmap     \
          updmap-user                                                   \
          updmap-setup-kanji updmap-sys urlbst vpe vpl2ovp vpl2vpl      \
          wofm2opl wopl2ofm wovf2ovp xhlatex yplan chklref ketcindy     \
          luahbtex luajithbtex pamphletangler texplate ltx2crossrefxml


popd

# use texmf data
#rm -fr %{buildroot}%{_texmfdir} %{buildroot}%{_texmfdistdir}
# remove files from noarch packages
rm -rf %{buildroot}%{_texmfdistdir}/scripts/a2ping
rm -rf %{buildroot}%{_texmfdistdir}/scripts/accfonts
rm -rf %{buildroot}%{_texmfdistdir}/scripts/adhocfilelist
rm -rf %{buildroot}%{_texmfdistdir}/scripts/arara
rm -rf %{buildroot}%{_texmfdistdir}/scripts/bib2gls
rm -rf %{buildroot}%{_texmfdistdir}/scripts/bibexport
rm -rf %{buildroot}%{_texmfdistdir}/scripts/bundledoc
rm -rf %{buildroot}%{_texmfdistdir}/scripts/cachepic
rm -rf %{buildroot}%{_texmfdistdir}/scripts/checkcites
rm -rf %{buildroot}%{_texmfdistdir}/scripts/checklistings
rm -rf %{buildroot}%{_texmfdistdir}/scripts/chklref
rm -rf %{buildroot}%{_texmfdistdir}/scripts/cjk-gs-integrate
rm -rf %{buildroot}%{_texmfdistdir}/scripts/context
rm -rf %{buildroot}%{_texmfdistdir}/scripts/convbkmk
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ctan-o-mat
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ctanify
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ctanupload
rm -rf %{buildroot}%{_texmfdistdir}/scripts/de-macro
rm -rf %{buildroot}%{_texmfdistdir}/scripts/diadia
rm -rf %{buildroot}%{_texmfdistdir}/scripts/dosepsbin
rm -rf %{buildroot}%{_texmfdistdir}/scripts/dtxgen
rm -rf %{buildroot}%{_texmfdistdir}/scripts/dviasm
rm -rf %{buildroot}%{_texmfdistdir}/scripts/dviinfox
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ebong
rm -rf %{buildroot}%{_texmfdistdir}/scripts/epspdf
rm -rf %{buildroot}%{_texmfdistdir}/scripts/epstopdf
rm -rf %{buildroot}%{_texmfdistdir}/scripts/exceltex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/fig4latex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/findhyph
rm -rf %{buildroot}%{_texmfdistdir}/scripts/fragmaster
rm -rf %{buildroot}%{_texmfdistdir}/scripts/getmap
rm -rf %{buildroot}%{_texmfdistdir}/scripts/glossaries
rm -rf %{buildroot}%{_texmfdistdir}/scripts/installfont
rm -rf %{buildroot}%{_texmfdistdir}/scripts/jfmutil
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ketcindy
rm -rf %{buildroot}%{_texmfdistdir}/scripts/kotex-utils
rm -rf %{buildroot}%{_texmfdistdir}/scripts/l3build
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latex-git-log
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latex-papersize
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latex2man
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latex2nemeth
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latexdiff
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latexfileversion
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latexindent
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latexmk
rm -rf %{buildroot}%{_texmfdistdir}/scripts/latexpand
rm -rf %{buildroot}%{_texmfdistdir}/scripts/lilyglyphs
rm -rf %{buildroot}%{_texmfdistdir}/scripts/listbib
rm -rf %{buildroot}%{_texmfdistdir}/scripts/listings-ext
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ltxfileinfo
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ltximg
rm -rf %{buildroot}%{_texmfdistdir}/scripts/luaotfload
rm -rf %{buildroot}%{_texmfdistdir}/scripts/lwarp
rm -rf %{buildroot}%{_texmfdistdir}/scripts/make4ht
rm -rf %{buildroot}%{_texmfdistdir}/scripts/makedtx
rm -rf %{buildroot}%{_texmfdistdir}/scripts/match_parens
rm -rf %{buildroot}%{_texmfdistdir}/scripts/mathspic
rm -rf %{buildroot}%{_texmfdistdir}/scripts/mf2pt1
rm -rf %{buildroot}%{_texmfdistdir}/scripts/mkgrkindex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/mkjobtexmf
rm -rf %{buildroot}%{_texmfdistdir}/scripts/mkpic
rm -rf %{buildroot}%{_texmfdistdir}/scripts/multibibliography
rm -rf %{buildroot}%{_texmfdistdir}/scripts/musixtex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pax
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pdfbook2
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pdfcrop
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pdfjam
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pdflatexpicscale
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pdfxup
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pedigree-perl
rm -rf %{buildroot}%{_texmfdistdir}/scripts/perltex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/petri-nets
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pfarrei
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pkfix-helper
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pkfix
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pmxchords
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ps2eps
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pst2pdf
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ptex-fontmaps
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ptex2pdf
rm -rf %{buildroot}%{_texmfdistdir}/scripts/purifyeps
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pygmentex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pythontex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/rubik
rm -rf %{buildroot}%{_texmfdistdir}/scripts/simpdftex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/splitindex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/srcredact
rm -rf %{buildroot}%{_texmfdistdir}/scripts/sty2dtx
rm -rf %{buildroot}%{_texmfdistdir}/scripts/svn-multi
rm -rf %{buildroot}%{_texmfdistdir}/scripts/tex4ebook
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texcount
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texdef
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texdiff
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texdirflatten
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texdoc
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texdoctk
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texfot
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/allcm.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/allneeded.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/dvi2fax.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/dvired.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/e2pall.pl
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/fontinst.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/kpsewhere.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/ps2frag.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/pslatex.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/rubibtex.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/rumakeindex.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/texconfig-dialog.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/texconfig-sys.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/texconfig.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive-extra/texlinks.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive/fmtutil-sys.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive/fmtutil-user.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive/fmtutil.pl
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive/rungs.tlu
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive/tlmgr.pl
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive/updmap-sys.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive/updmap-user.sh
rm -f %{buildroot}%{_texmfdistdir}/scripts/texlive/updmap.pl
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texliveonfly
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texloganalyser
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texosquery
rm -rf %{buildroot}%{_texmfdistdir}/scripts/texplate
rm -rf %{buildroot}%{_texmfdistdir}/scripts/thumbpdf
rm -rf %{buildroot}%{_texmfdistdir}/scripts/tlcockpit
rm -rf %{buildroot}%{_texmfdistdir}/scripts/tlshell
rm -rf %{buildroot}%{_texmfdistdir}/scripts/typeoutfileinfo
rm -rf %{buildroot}%{_texmfdistdir}/scripts/ulqda
rm -rf %{buildroot}%{_texmfdistdir}/scripts/urlbst
rm -rf %{buildroot}%{_texmfdistdir}/scripts/vpe
rm -rf %{buildroot}%{_texmfdistdir}/scripts/wordcount
rm -rf %{buildroot}%{_texmfdistdir}/scripts/yplan
rm -rf %{buildroot}%{_texmfdistdir}/source/fonts/zhmetrics
rm -rf %{buildroot}%{_texmfdistdir}/texconfig
rm -rf %{buildroot}%{_texmfdistdir}/web2c
rm -rf %{buildroot}%{_texmfdistdir}/fonts/map/glyphlist
rm -rf %{buildroot}%{_texmfdistdir}/scripts/attachfile2
rm -rf %{buildroot}%{_texmfdistdir}/scripts/authorindex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/clojure-pamphlet
rm -rf %{buildroot}%{_texmfdistdir}/scripts/crossrefware
rm -rf %{buildroot}%{_texmfdistdir}/scripts/fontools
rm -rf %{buildroot}%{_texmfdistdir}/scripts/pst-pdf
rm -rf %{buildroot}%{_texmfdistdir}/dvipdfmx
rm -rf %{buildroot}%{_texmfdistdir}/fonts/cmap/dvipdfmx
rm -rf %{buildroot}%{_texmfdistdir}/fonts/map/dvipdfmx
rm -rf %{buildroot}%{_texmfdistdir}/dvips
rm -rf %{buildroot}%{_texmfdistdir}/dvips/gsftopk
rm -rf %{buildroot}%{_texmfdistdir}/fonts/enc/dvips
rm -rf %{buildroot}%{_texmfdistdir}/xdvi
rm -rf %{buildroot}%{_texmfdistdir}/scripts/tex4ht
rm -rf %{buildroot}%{_texmfdistdir}/bibtex
rm -rf %{buildroot}%{_texmfdistdir}/doc/bibtex8
rm -rf %{buildroot}%{_texmfdistdir}/chktex
rm -rf %{buildroot}%{_texmfdistdir}/doc/chktex
rm -rf %{buildroot}%{_texmfdistdir}/scripts/chktex
rm -rf %{buildroot}%{_texmfdistdir}/hbf2gf
rm -rf %{buildroot}%{_texmfdistdir}/fonts/enc/ttf2pk
rm -rf %{buildroot}%{_texmfdistdir}/fonts/sfd/ttf2pk
rm -rf %{buildroot}%{_texmfdistdir}/ttf2pk
rm -rf %{buildroot}%{_texmfdistdir}/scripts/m-tx



# install manual pages and info files from noarch packages
rm -fr %{buildroot}%{_mandir} %{buildroot}%{_infodir}

# Stuff should really use upstream lua
rm -rf %{buildroot}%{_includedir}/texlua53 \
        %{buildroot}%{_includedir}/texlua52 \
        %{buildroot}%{_includedir}/texluajit \
        %{buildroot}%{_libdir}/libtexlua*.a \
        %{buildroot}%{_libdir}/libtexlua*.so \
        %{buildroot}%{_libdir}/pkgconfig/texlua*.pc

%if ! %{enable_shared}
    # do not generate dynamic libraries and do not install static ones
    rm -fr %{buildroot}%{_libdir}
    rm -fr %{buildroot}%{_includedir}
%endif

# TODO: drop, only required to build with old teckit
%if %{_texmf_with_system_teckit}
    rm -fr %{buildroot}%{_bindir}/teckit_compile
%endif

%check
# Manipulations with moving directories above have already caused broken symlinks
cd %{buildroot}%{_bindir}
broken=0
set +x
for i in * ; do
    if [ ! -e "$i" ]; then
	echo "%{_bindir}/$i is a broken symlink to $(readlink $i)!"
	broken=$((++broken))
    fi
done
if [ "$broken" -gt 0 ]; then
    echo "$broken broken symlinks found, see above!"
    exit 1
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17574 |21mr|texlive-2up-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-2up
Version:	20190228
Release:	1
Summary:	TeXLive 2up package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/2up.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/2up.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive 2up package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/2up
%doc %{_texmfdistdir}/doc/generic/2up

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17575 |21mr|texlive-a0poster-1.22b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/a0poster
# catalog-date 2006-11-28 22:38:04 +0100
# catalog-license lppl
# catalog-version 1.22b
Name:		texlive-a0poster
Version:	1.22b
Release:	7
Summary:	Support for designing posters on large paper
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/a0poster
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/a0poster.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/a0poster.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides fonts in sizes of 12pt up to 107pt and also makes sure
that in math formulas the symbols appear in the right size. Can
also create a PostScript header file for dvips which ensures
that the poster will be printed in the right size. Supported
sizes are DIN A0, DIN A1, DIN A2 and DIN A3.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/a0poster/a0poster.cls
%{_texmfdistdir}/tex/latex/a0poster/a0size.sty
%doc %{_texmfdistdir}/doc/latex/a0poster/a0.pdf
%doc %{_texmfdistdir}/doc/latex/a0poster/a0.tex
%doc %{_texmfdistdir}/doc/latex/a0poster/a0_eng.pdf
%doc %{_texmfdistdir}/doc/latex/a0poster/a0_eng.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17576 |21mr|texlive-a4wide-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20943
# category Package
# catalog-ctan /macros/latex/contrib/a4wide
# catalog-date 2011-01-05 08:46:38 +0100
# catalog-license lppl1
# catalog-version undef
Name:		texlive-a4wide
Version:	20190228
Release:	1
Summary:	"Wide" a4 layout
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/a4wide
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/a4wide.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/a4wide.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package increases the width of the typeset area of an a4
page. This sort of operation is capable of producing
typographically poor results; the operation itself is better
provided by the geometry package. The package uses the a4
package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/a4wide/a4wide.sty
%doc %{_texmfdistdir}/doc/latex/a4wide/a4wide.pdf
%doc %{_texmfdistdir}/doc/latex/a4wide/a4wide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17577 |21mr|texlive-a5comb-4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17020
# category Package
# catalog-ctan /macros/latex/contrib/a5comb
# catalog-date 2010-02-23 16:03:07 +0100
# catalog-license pd
# catalog-version 4
Name:		texlive-a5comb
Version:	4
Release:	7
Summary:	Support for a5 paper sizes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/a5comb
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/a5comb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/a5comb.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Superceded by geometry.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/a5comb/a5comb.sty
%doc %{_texmfdistdir}/doc/latex/a5comb/a5comb.pdf
%doc %{_texmfdistdir}/doc/latex/a5comb/a5comb.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17578 |21mr|texlive-aastex-6.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-aastex
Version:	6.2
Release:	1
Summary:	Macros for Manuscript Preparation for AAS Journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/aastex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aastex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aastex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a document class for preparing papers for
American Astronomical Society publications. Authors who wish to
submit papers to AAS journals are strongly urged to use this
class in preference to any of the alternatives available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/aastex
%doc %{_texmfdistdir}/doc/latex/aastex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17579 |21mr|texlive-abc-2.0b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-abc
Version:	2.0b
Release:	2
Epoch:		1
Summary:	Support ABC music notation in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/abc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The abc package lets you include lines of music written in the
ABC Plus language. The package will then employ the \write18
facility to convert your notation to PostScript (using the
established utility abcm2ps) and hence to the format needed for
inclusion in your document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/abc
%doc %{_texmfdistdir}/doc/latex/abc
#- source
%doc %{_texmfdistdir}/source/latex/abc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17580 |21mr|texlive-abnt-20200606-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-abnt
Version:	20200606
Release:	1
Summary:	Typesetting academic works according to ABNT rules
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/abnt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abnt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abnt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The ABNT package provides a clean and practical implementation
of the ABNT rules for academic texts. Its purpose is to be as
simple and user-friendly as possible.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/abnt
%doc %{_texmfdistdir}/doc/latex/abnt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17581 |21mr|texlive-abntex2-1.9.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32794
# category Package
# catalog-ctan /macros/latex/contrib/abntex2
# catalog-date 2014-01-26 14:22:53 +0100
# catalog-license lppl1.3
# catalog-version 1.9.2
Name:		texlive-abntex2
Version:	1.9.6
Release:	1
Summary:	Typeset technical and scientific Brazilian documents based on ABNT rules
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/abntex2
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abntex2.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abntex2.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides support for writing technical and
scientific Brazilian documents (like academic thesis, articles,
reports, research project and others) based on ABNT rules
(Associacao Brasileira de Normas Tecnicas). It replaces the old
abntex.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/abntex2/abntex2-options.bib
%{_texmfdistdir}/bibtex/bst/abntex2/abntex2-alf.bst
%{_texmfdistdir}/bibtex/bst/abntex2/abntex2-num.bst
%{_texmfdistdir}/tex/latex/abntex2/abntex2.cls
%{_texmfdistdir}/tex/latex/abntex2/abntex2abrev.sty
%{_texmfdistdir}/tex/latex/abntex2/abntex2cite.sty
%doc %{_texmfdistdir}/doc/latex/abntex2/README
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2-doc-abnt-10520.bib
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2-doc-abnt-6023.bib
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2-doc-options.bib
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2-doc-test.bib
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2-doc.bib
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2cite-alf.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2cite-alf.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2cite.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/abntex2cite.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-artigo.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-artigo.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-glossarios.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-glossarios.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-img-grafico.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-img-marca.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-include-comandos.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-livro-bandeirinha.jpg
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-livro-pintassilgo.jpg
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-livro-saira-amarela.jpg
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-livro.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-livro.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-projeto-pesquisa.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-projeto-pesquisa.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-references.bib
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-relatorio-tecnico.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-relatorio-tecnico.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-slides.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-slides.tex
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-trabalho-academico.pdf
%doc %{_texmfdistdir}/doc/latex/abntex2/examples/abntex2-modelo-trabalho-academico.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17582 |21mr|texlive-abraces-1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27880
# category Package
# catalog-ctan /macros/latex/contrib/abraces
# catalog-date 2012-09-06 08:51:08 +0200
# catalog-license lppl
# catalog-version 1.-
Name:		texlive-abraces
Version:	1
Release:	11
Summary:	Asymmetric over-/underbraces in maths
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/abraces
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abraces.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abraces.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a character key-driven interface to
supplement new constructions of the traditional \overbrace and
\underbrace pairs in an asymmetric or arbitrary way.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/abraces/abraces.sty
%doc %{_texmfdistdir}/doc/latex/abraces/abraces-doc.pdf
%doc %{_texmfdistdir}/doc/latex/abraces/abraces-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17583 |21mr|texlive-abstract-1.2a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/abstract
# catalog-date 2009-09-02 11:33:10 +0200
# catalog-license lppl
# catalog-version 1.2a
Name:		texlive-abstract
Version:	1.2a
Release:	7
Summary:	Control the typesetting of the abstract environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/abstract
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abstract.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abstract.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/abstract.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The abstract package gives you control over the typesetting of
the abstract environment, and in particular provides for a one
column abstract in a two column paper.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/abstract/abstract.sty
%doc %{_texmfdistdir}/doc/latex/abstract/README
%doc %{_texmfdistdir}/doc/latex/abstract/abstract.pdf
#- source
%doc %{_texmfdistdir}/source/latex/abstract/abstract.dtx
%doc %{_texmfdistdir}/source/latex/abstract/abstract.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17584 |21mr|texlive-accfonts-0.25-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18835
# category Package
# catalog-ctan /fonts/utilities/accfonts
# catalog-date 2009-04-10 11:27:58 +0200
# catalog-license gpl
# catalog-version 0.25
Name:		texlive-accfonts
Version:	0.25
Release:	7
Summary:	Utilities to derive new fonts from existing ones
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/utilities/accfonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/accfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/accfonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-accfonts.bin = %{EVRD}

%description
The accfonts package contains three utilities to permit easy
manipulation of fonts, in particular the creation of unusual
accented characters. Mkt1font works on Adobe Type 1 fonts,
vpl2vpl works on TeX virtual fonts and vpl2ovp transforms a TeX
font to an Omega one. All three programs read in a font (either
the font itself or a property list), together with a simple
definition file containing lines such as '128 z acute'; they
then write out a new version of the font with the requested new
characters in the numerical slots specified. Great care is
taken over the positioning of accents, and over the provision
of kerning information for new characters; mkt1font also
generates suitable "hints" to enhance quality at small sizes or
poor resolutions. The programs are written in Perl.


#-----------------------------------------------------------------------
%files
%{_bindir}/mkt1font
%{_bindir}/vpl2ovp
%{_bindir}/vpl2vpl
%{_texmfdistdir}/scripts/accfonts/mkt1font
%{_texmfdistdir}/scripts/accfonts/vpl2ovp
%{_texmfdistdir}/scripts/accfonts/vpl2vpl
%{_texmfdistdir}/tex/latex/accfonts/CSX.def
%{_texmfdistdir}/tex/latex/accfonts/ISO-Latin1.def
%{_texmfdistdir}/tex/latex/accfonts/ISO-Latin2.def
%{_texmfdistdir}/tex/latex/accfonts/IndUni_Omega.def
%{_texmfdistdir}/tex/latex/accfonts/Norman.def
%doc %{_texmfdistdir}/doc/fonts/accfonts/CHANGES
%doc %{_texmfdistdir}/doc/fonts/accfonts/COPYING
%doc %{_texmfdistdir}/doc/fonts/accfonts/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/accfonts/mkt1font mkt1font
    ln -sf %{_texmfdistdir}/scripts/accfonts/vpl2ovp vpl2ovp
    ln -sf %{_texmfdistdir}/scripts/accfonts/vpl2vpl vpl2vpl
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17585 |21mr|texlive-achemso-3.12a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-achemso
Version:	3.12a
Release:	1
Summary:	Support for American Chemical Society journal submissions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/achemso
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/achemso.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/achemso.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/achemso.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides the official macros (achemso.cls) and
BibTeX styles (achemso.bst and biochem.bst) for submission to
the journals of the American Chemical Society. The natmove
package, which moves citations relative to punctuation, is
distributed as part of the bundle.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/achemso
%{_texmfdistdir}/tex/latex/achemso
%doc %{_texmfdistdir}/doc/latex/achemso
#- source
%doc %{_texmfdistdir}/source/latex/achemso

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17586 |21mr|texlive-acmart-1.80-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-acmart
Version:	1.80
Release:	1
Summary:	Class for typesetting publications of ACM
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/acmart
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acmart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acmart.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acmart.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a class for typesetting publications of
the Association for Computing Machinery (ACM).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/acmart
%doc %{_texmfdistdir}/doc/latex/acmart
#- source
%doc %{_texmfdistdir}/source/latex/acmart

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17587 |21mr|texlive-acmconf-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/acmconf
# catalog-date 2008-05-14 19:23:34 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-acmconf
Version:	1.3
Release:	7
Summary:	Class for ACM conference proceedings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/acmconf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acmconf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acmconf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acmconf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class may be used to typeset articles to be published in
the proceedings of ACM (Association for Computing Machinery)
conferences and workshops. The layout produced by the acmconf
class is based on the ACM's own specification.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/acmconf/acmconf.cls
%doc %{_texmfdistdir}/doc/latex/acmconf/README
%doc %{_texmfdistdir}/doc/latex/acmconf/THIS-IS-VERSION-1.3
%doc %{_texmfdistdir}/doc/latex/acmconf/accept.tex
%doc %{_texmfdistdir}/doc/latex/acmconf/acmconf.pdf
%doc %{_texmfdistdir}/doc/latex/acmconf/body.eps
%doc %{_texmfdistdir}/doc/latex/acmconf/error.tex
%doc %{_texmfdistdir}/doc/latex/acmconf/prepare.tex
%doc %{_texmfdistdir}/doc/latex/acmconf/print.tex
%doc %{_texmfdistdir}/doc/latex/acmconf/pubform.bib
%doc %{_texmfdistdir}/doc/latex/acmconf/pubform.tex
%doc %{_texmfdistdir}/doc/latex/acmconf/publish.tex
%doc %{_texmfdistdir}/doc/latex/acmconf/submit.tex
#- source
%doc %{_texmfdistdir}/source/latex/acmconf/Makefile
%doc %{_texmfdistdir}/source/latex/acmconf/acmconf.dtx
%doc %{_texmfdistdir}/source/latex/acmconf/acmconf.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17588 |21mr|texlive-acro-2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-acro
Version:	2.9
Release:	1
Summary:	Typeset acronyms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/acro
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acro.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acro.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the author to create acronyms in a simple
way, and provides means to add them to different 'classes' of
acronyms. Lists can be created of separate acronym classes. The
package option 'single' instructs the package to ignore
acronyms that are used only once in the whole document. As an
experimental feature the package also offers the option 'sort'
which automatically sorts the list created by \printacronyms.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/acro/acro.sty
%doc %{_texmfdistdir}/doc/latex/acro

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17589 |21mr|texlive-acronym-1.41-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-acronym
Version:	1.41
Release:	1
Summary:	Expand acronyms at least once
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/acronym
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acronym.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acronym.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acronym.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package ensures that all acronyms used in the text are
spelled out in full at least once. It also provides an
environment to build a list of acronyms used. The package is
compatible with pdf bookmarks. The package requires the suffix
package, which in turn requires that it runs under e-TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/acronym/acronym.sty
%doc %{_texmfdistdir}/doc/latex/acronym/README
%doc %{_texmfdistdir}/doc/latex/acronym/acronym.pdf
%doc %{_texmfdistdir}/doc/latex/acronym/acrotest.tex
#- source
%doc %{_texmfdistdir}/source/latex/acronym/acronym.dtx
%doc %{_texmfdistdir}/source/latex/acronym/acronym.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17590 |21mr|texlive-acroterm-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20498
# category Package
# catalog-ctan /macros/latex/contrib/acroterm
# catalog-date 2010-11-19 20:33:28 +0100
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-acroterm
Version:	0.1
Release:	7
Summary:	Manage and index acronyms and terms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/acroterm
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acroterm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acroterm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/acroterm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Yet another package for acronyms: the package offers simple
markup of acronyms and technical terms in the text, giving an
index each of terms and acronyms with their expanded form.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/acroterm/acroterm.sty
%doc %{_texmfdistdir}/doc/latex/acroterm/README
%doc %{_texmfdistdir}/doc/latex/acroterm/acroterm.pdf
#- source
%doc %{_texmfdistdir}/source/latex/acroterm/acroterm.dtx
%doc %{_texmfdistdir}/source/latex/acroterm/acroterm.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17591 |21mr|texlive-active-conf-0.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/conferences/active-conf
# catalog-date 2008-05-24 14:41:17 +0200
# catalog-license lppl
# catalog-version 0.3a
Name:		texlive-active-conf
Version:	0.3a
Release:	7
Summary:	Class for typesetting ACTIVE conference papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/conferences/active-conf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/active-conf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/active-conf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/active-conf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Active-conf is a class for typesetting papers for the Active
conference on noise and vibration control. It is initially
intended for the 2006 conference in Adelaide, Australia. The
class is based on article with more flexible front-matter, and
can be customised for conferences in future years with a header
file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/active-conf/active-conf.cls
%doc %{_texmfdistdir}/doc/latex/active-conf/README
%doc %{_texmfdistdir}/doc/latex/active-conf/active-conf.pdf
%doc %{_texmfdistdir}/doc/latex/active-conf/example/active-example.ltx
%doc %{_texmfdistdir}/doc/latex/active-conf/example/active-header-2006.tex
%doc %{_texmfdistdir}/doc/latex/active-conf/example/header-logo-2006.eps
%doc %{_texmfdistdir}/doc/latex/active-conf/example/header-logo-2006.pdf
#- source
%doc %{_texmfdistdir}/source/latex/active-conf/active-conf.dtx
%doc %{_texmfdistdir}/source/latex/active-conf/active-conf.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17592 |21mr|texlive-actuarialangle-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-actuarialangle
Version:	2.0
Epoch:		1
Release:	2
Summary:	Symbol for use in "present value" statements of an annuity
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/actuarialangle
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/actuarialangle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/actuarialangle.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a single command \actuarialangle to typeset
"angles" in the 'present value of an annuity' symbols common in
actuarial and financial notation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/actuarialangle
%doc %{_texmfdistdir}/doc/latex/actuarialangle

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17593 |21mr|texlive-actuarialsymbol-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-actuarialsymbol
Version:	1.1
Release:	1
Summary:	Actuarial symbols of life contingencies and financial mathematics
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/actuarialsymbol
License:	The LATEX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/actuarialsymbol.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/actuarialsymbol.doc.tar.xz
Source2:    http://ctan.altspu.ru/systems/texlive/tlnet/archive/actuarialsymbol.source.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea
Requires: texlive-actuarialangle

%description
This package provides commands to compose actuarial symbols of life
contingencies and financial mathematics characterized by subscripts
and superscripts on both sides of a principal symbol. The package
also features commands to easily and consistently position precedence
numbers above or below statuses in symbols for multiple lives contracts.

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/actuarialsymbol/actuarialsymbol.sty
%doc /usr/share/texmf-dist/doc/latex/actuarialsymbol/actuarialsymbol.pdf
%doc /usr/share/texmf-dist/doc/latex/actuarialsymbol/README.md
%doc /usr/share/texmf-dist/doc/latex/actuarialsymbol/mosaic.jpg
# - source
/usr/share/texmf-dist/source/latex/actuarialsymbol/actuarialsymbol.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc source %{buildroot}/usr/share/texmf-dist
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17594 |21mr|texlive-addlines-0.2a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/addlines
# catalog-date 2009-04-24 13:36:42 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-addlines
Version:	0.2a
Release:	2
Summary:	A user-friendly wrapper around \enlargethispage
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/addlines
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/addlines.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/addlines.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/addlines.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small package provides the command \addlines for adding or
removing space in the textblock of the page it's used on. E.g.,
adding an extra line of text to the page so that a section fits
better on the next page. It will also add space to the facing
page in a two-sided document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/addlines/addlines.sty
%doc %{_texmfdistdir}/doc/latex/addlines/README
%doc %{_texmfdistdir}/doc/latex/addlines/addlines-example.ltx
%doc %{_texmfdistdir}/doc/latex/addlines/addlines.pdf
#- source
%doc %{_texmfdistdir}/source/latex/addlines/addlines.dtx
%doc %{_texmfdistdir}/source/latex/addlines/addlines.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17595 |21mr|texlive-adfathesis-2.42-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26048
# category Package
# catalog-ctan /macros/latex/contrib/adfathesis
# catalog-date 2011-11-23 23:58:18 +0100
# catalog-license pd
# catalog-version 2.42
Name:		texlive-adfathesis
Version:	2.42
Release:	7
Summary:	Australian Defence Force Academy thesis format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/adfathesis
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adfathesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adfathesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adfathesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle includes a BibTeX style file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/adfathesis/adfathesis.bst
%{_texmfdistdir}/tex/latex/adfathesis/adfathesis.cls
%doc %{_texmfdistdir}/doc/latex/adfathesis/README
%doc %{_texmfdistdir}/doc/latex/adfathesis/adfathesis.pdf
%doc %{_texmfdistdir}/doc/latex/adfathesis/template.tex
#- source
%doc %{_texmfdistdir}/source/latex/adfathesis/adfathesis.dtx
%doc %{_texmfdistdir}/source/latex/adfathesis/adfathesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17596 |21mr|texlive-adjmulticol-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28936
# category Package
# catalog-ctan /macros/latex/contrib/adjmulticol
# catalog-date 2013-01-24 12:03:40 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-adjmulticol
Version:	1.1
Release:	10
Summary:	Adjusting margins for multicolumn and single column output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/adjmulticol
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adjmulticol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adjmulticol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adjmulticol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
package extends the multicol package with the option to change
the margins for multicolumn and unicolumn layout. The package
understands the difference between the even and odd margins for
two side printing.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/adjmulticol/adjmulticol.sty
%doc %{_texmfdistdir}/doc/latex/adjmulticol/Makefile
%doc %{_texmfdistdir}/doc/latex/adjmulticol/README
%doc %{_texmfdistdir}/doc/latex/adjmulticol/adjmulticol.bib
%doc %{_texmfdistdir}/doc/latex/adjmulticol/adjmulticol.pdf
%doc %{_texmfdistdir}/doc/latex/adjmulticol/sample.pdf
%doc %{_texmfdistdir}/doc/latex/adjmulticol/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/adjmulticol/adjmulticol.dtx
%doc %{_texmfdistdir}/source/latex/adjmulticol/adjmulticol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17597 |21mr|texlive-adjustbox-20131013-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26555
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-adjustbox
Epoch:		1
Version:	20131013
Release:	10
Summary:	TeXLive adjustbox package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adjustbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adjustbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adjustbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive adjustbox package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/adjustbox/adjcalc.sty
%{_texmfdistdir}/tex/latex/adjustbox/adjustbox.sty
%{_texmfdistdir}/tex/latex/adjustbox/tc-dvips.def
%{_texmfdistdir}/tex/latex/adjustbox/tc-pdftex.def
%{_texmfdistdir}/tex/latex/adjustbox/tc-pgf.def
%{_texmfdistdir}/tex/latex/adjustbox/tc-xetex.def
%{_texmfdistdir}/tex/latex/adjustbox/trimclip.sty
%doc %{_texmfdistdir}/doc/latex/adjustbox/README
%doc %{_texmfdistdir}/doc/latex/adjustbox/adjcalc.pdf
%doc %{_texmfdistdir}/doc/latex/adjustbox/adjustbox.pdf
%doc %{_texmfdistdir}/doc/latex/adjustbox/trimclip.pdf
#- source
%doc %{_texmfdistdir}/source/latex/adjustbox/adjcalc.dtx
%doc %{_texmfdistdir}/source/latex/adjustbox/adjustbox.dtx
%doc %{_texmfdistdir}/source/latex/adjustbox/adjustbox.ins
%doc %{_texmfdistdir}/source/latex/adjustbox/trimclip.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17598 |21mr|texlive-adobemapping-20190402-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-adobemapping
Version:	20190402
Release:	1
Summary:	Adobe cmap and pdfmapping files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/adobemapping
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adobemapping.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package comprises the collection of CMap and PDF mapping
files now made available for distribution by Adobe systems
incorporated.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/cmap/adobemapping

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17599 |21mr|texlive-adrconv-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17683
# category Package
# catalog-ctan /macros/latex/contrib/adrconv
# catalog-date 2010-04-05 11:11:18 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-adrconv
Version:	1.4
Release:	2
Summary:	BibTeX styles to implement an address database
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/adrconv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adrconv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adrconv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/adrconv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Adrconv is a collection of BibTeX style files to turn an
address database stored in the .bib format into files suitable
for printing as address books or included into letter classes
like akletter or scrletter2. Adrconv will sort the data either
by name or birthday and create output files in various formats
for address books or time planers.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/adrconv/adrbirthday.bst
%{_texmfdistdir}/bibtex/bst/adrconv/adrconv.bst
%{_texmfdistdir}/bibtex/bst/adrconv/adrfax.bst
%{_texmfdistdir}/tex/latex/adrconv/adrdir.cfg
%{_texmfdistdir}/tex/latex/adrconv/adrplaner.cfg
%{_texmfdistdir}/tex/latex/adrconv/adrsmall.cfg
%doc %{_texmfdistdir}/doc/latex/adrconv/2latex.vim
%doc %{_texmfdistdir}/doc/latex/adrconv/adrconv.tex
%doc %{_texmfdistdir}/doc/latex/adrconv/adrconv_pages08.pages/Contents/PkgInfo
%doc %{_texmfdistdir}/doc/latex/adrconv/adrconv_pages08.pages/QuickLook/Thumbnail.jpg
%doc %{_texmfdistdir}/doc/latex/adrconv/adrconv_pages08.pages/index.xml.gz
%doc %{_texmfdistdir}/doc/latex/adrconv/adrdir.tex
%doc %{_texmfdistdir}/doc/latex/adrconv/adrfax.tex
%doc %{_texmfdistdir}/doc/latex/adrconv/adrguide.pdf
%doc %{_texmfdistdir}/doc/latex/adrconv/adrguide.tex
%doc %{_texmfdistdir}/doc/latex/adrconv/adrmontage1.tex
%doc %{_texmfdistdir}/doc/latex/adrconv/adrmontage2.tex
%doc %{_texmfdistdir}/doc/latex/adrconv/birthday.tex
%doc %{_texmfdistdir}/doc/latex/adrconv/example.bib
#- source
%doc %{_texmfdistdir}/source/latex/adrconv/adrconv.dtx
%doc %{_texmfdistdir}/source/latex/adrconv/adrconv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17600 |21mr|texlive-advdate-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20538
# category Package
# catalog-ctan /macros/latex/contrib/advdate
# catalog-date 2010-11-22 09:08:01 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-advdate
Version:	20190228
Release:	1
Summary:	Print a date relative to "today"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/advdate
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/advdate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/advdate.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides macros which can add a specified number of days to the
current date (as specified in \today), to save, set and restore
the 'current date' and print it. Intended for use, for example,
in invoices payable within 14 days from today etc. Has only
been tested with Czech dates.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/advdate/advdate.sty
%doc %{_texmfdistdir}/doc/latex/advdate/advdate.pdf
%doc %{_texmfdistdir}/doc/latex/advdate/advdate.tex
%doc %{_texmfdistdir}/doc/latex/advdate/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17601 |21mr|texlive-ae-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/ae
# catalog-date 2009-06-30 11:37:01 +0200
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-ae
Version:	1.4
Release:	7
Summary:	Virtual fonts for T1 encoded CMR-fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ae
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ae.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ae.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ae.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of virtual fonts which emulates T1 coded fonts using the
standard CM fonts. The package name, AE fonts, supposedly
stands for "Almost European". The main use of the package was
to produce PDF files using Adobe Type 1 versions of the CM
fonts instead of bitmapped EC fonts. Note that direct
substitutes for the bitmapped EC fonts are now available, via
the CM-super, Latin Modern and (in a restricted way) CM-LGC
font sets.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/ae/aeb10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebx10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebx12.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebx5.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebx6.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebx7.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebx8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebx9.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aebxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aecsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aeitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aer10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aer12.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aer17.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aer5.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aer6.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aer7.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aer8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aer9.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aesl10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aesl12.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aesl8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aesl9.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aesltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aess10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aess12.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aess17.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aess8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aess9.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aessbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aessdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aessi10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aessi12.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aessi17.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aessi8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aessi9.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aetcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aeti10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aeti12.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aeti7.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aeti8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aeti9.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aett10.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aett12.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aett8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/aett9.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/laess8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/laessb8.tfm
%{_texmfdistdir}/fonts/tfm/public/ae/laessi8.tfm
%{_texmfdistdir}/fonts/vf/public/ae/aeb10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebx10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebx12.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebx5.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebx6.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebx7.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebx8.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebx9.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebxsl10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aebxti10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aecsc10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aeitt10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aer10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aer12.vf
%{_texmfdistdir}/fonts/vf/public/ae/aer17.vf
%{_texmfdistdir}/fonts/vf/public/ae/aer5.vf
%{_texmfdistdir}/fonts/vf/public/ae/aer6.vf
%{_texmfdistdir}/fonts/vf/public/ae/aer7.vf
%{_texmfdistdir}/fonts/vf/public/ae/aer8.vf
%{_texmfdistdir}/fonts/vf/public/ae/aer9.vf
%{_texmfdistdir}/fonts/vf/public/ae/aesl10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aesl12.vf
%{_texmfdistdir}/fonts/vf/public/ae/aesl8.vf
%{_texmfdistdir}/fonts/vf/public/ae/aesl9.vf
%{_texmfdistdir}/fonts/vf/public/ae/aesltt10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aess10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aess12.vf
%{_texmfdistdir}/fonts/vf/public/ae/aess17.vf
%{_texmfdistdir}/fonts/vf/public/ae/aess8.vf
%{_texmfdistdir}/fonts/vf/public/ae/aess9.vf
%{_texmfdistdir}/fonts/vf/public/ae/aessbx10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aessdc10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aessi10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aessi12.vf
%{_texmfdistdir}/fonts/vf/public/ae/aessi17.vf
%{_texmfdistdir}/fonts/vf/public/ae/aessi8.vf
%{_texmfdistdir}/fonts/vf/public/ae/aessi9.vf
%{_texmfdistdir}/fonts/vf/public/ae/aetcsc10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aeti10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aeti12.vf
%{_texmfdistdir}/fonts/vf/public/ae/aeti7.vf
%{_texmfdistdir}/fonts/vf/public/ae/aeti8.vf
%{_texmfdistdir}/fonts/vf/public/ae/aeti9.vf
%{_texmfdistdir}/fonts/vf/public/ae/aett10.vf
%{_texmfdistdir}/fonts/vf/public/ae/aett12.vf
%{_texmfdistdir}/fonts/vf/public/ae/aett8.vf
%{_texmfdistdir}/fonts/vf/public/ae/aett9.vf
%{_texmfdistdir}/fonts/vf/public/ae/laess8.vf
%{_texmfdistdir}/fonts/vf/public/ae/laessb8.vf
%{_texmfdistdir}/fonts/vf/public/ae/laessi8.vf
%{_texmfdistdir}/tex/latex/ae/ae.sty
%{_texmfdistdir}/tex/latex/ae/aecompl.sty
%{_texmfdistdir}/tex/latex/ae/omlaer.fd
%{_texmfdistdir}/tex/latex/ae/omsaer.fd
%{_texmfdistdir}/tex/latex/ae/ot1aer.fd
%{_texmfdistdir}/tex/latex/ae/ot1aess.fd
%{_texmfdistdir}/tex/latex/ae/ot1aett.fd
%{_texmfdistdir}/tex/latex/ae/ot1laess.fd
%{_texmfdistdir}/tex/latex/ae/ot1laett.fd
%{_texmfdistdir}/tex/latex/ae/t1aer.fd
%{_texmfdistdir}/tex/latex/ae/t1aess.fd
%{_texmfdistdir}/tex/latex/ae/t1aett.fd
%{_texmfdistdir}/tex/latex/ae/t1laess.fd
%{_texmfdistdir}/tex/latex/ae/t1laett.fd
%doc %{_texmfdistdir}/doc/fonts/ae/COPYING
%doc %{_texmfdistdir}/doc/fonts/ae/MANIFEST
%doc %{_texmfdistdir}/doc/fonts/ae/README
#- source
%doc %{_texmfdistdir}/source/fonts/ae/aefonts.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aefonts.tex
%doc %{_texmfdistdir}/source/fonts/ae/aehax5.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aehaxit.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aehaxrm.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aehaxsc.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aehaxsl.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aehaxss.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aelatin.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aelatint.mtx
%doc %{_texmfdistdir}/source/fonts/ae/aesample.tex
%doc %{_texmfdistdir}/source/fonts/ae/aet1.etx
%doc %{_texmfdistdir}/source/fonts/ae/bxittest.tex
%doc %{_texmfdistdir}/source/fonts/ae/clean
%doc %{_texmfdistdir}/source/fonts/ae/germtest.tex
%doc %{_texmfdistdir}/source/fonts/ae/go
%doc %{_texmfdistdir}/source/fonts/ae/install
%doc %{_texmfdistdir}/source/fonts/ae/makepl
%doc %{_texmfdistdir}/source/fonts/ae/ot1tt.etx
%doc %{_texmfdistdir}/source/fonts/ae/slitest.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17602 |21mr|texlive-aeguill-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/aeguill
# catalog-date 2009-04-30 00:32:08 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-aeguill
Version:	20190228
Release:	1
Summary:	Add several kinds of guillemets to the ae fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/aeguill
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aeguill.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aeguill.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to add guillemets from several
source (Polish cmr, Cyrillic cmr, lasy and ec) to the ae fonts.
This was useful when the ae fonts were used to produce PDF
files, since the additional guillemets exist in fonts available
in Adobe Type 1 format.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/aeguill/aeguill.sty
%doc %{_texmfdistdir}/doc/latex/aeguill/README
%doc %{_texmfdistdir}/doc/latex/aeguill/guil-test1.pdf
%doc %{_texmfdistdir}/doc/latex/aeguill/guil-test1.tex
%doc %{_texmfdistdir}/doc/latex/aeguill/guil-test2.pdf
%doc %{_texmfdistdir}/doc/latex/aeguill/guil-test2.tex
%doc %{_texmfdistdir}/doc/latex/aeguill/license.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17603 |21mr|texlive-afm2pl-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-afm2pl
Version:	20190327
Release:	1
Summary:	TeXLive afm2pl package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/afm2pl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/afm2pl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-afm2pl.bin
%rename tetex-afm
%rename texlive-texmf-afm

%description
TeXLive afm2pl package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/afm2pl/afm2pl-ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/afm2pl/afm2pl-ot1ital.enc
%{_texmfdistdir}/fonts/enc/dvips/afm2pl/afm2pl-ot1tt.enc
%{_texmfdistdir}/fonts/enc/dvips/afm2pl/afm2pl-texnanlc.enc
%{_texmfdistdir}/fonts/enc/dvips/afm2pl/afm2pl-texnanuc.enc
%{_texmfdistdir}/fonts/lig/afm2pl/accents.lig
%{_texmfdistdir}/fonts/lig/afm2pl/bound.lig
%{_texmfdistdir}/fonts/lig/afm2pl/default.lig
%{_texmfdistdir}/fonts/lig/afm2pl/defpost.lig
%{_texmfdistdir}/fonts/lig/afm2pl/defpre.lig
%{_texmfdistdir}/fonts/lig/afm2pl/forge.lig
%{_texmfdistdir}/fonts/lig/afm2pl/ligtex.lig
%{_texmfdistdir}/tex/fontinst/afm2pl/README
%{_texmfdistdir}/tex/fontinst/afm2pl/ly1.etx
%{_texmfdistdir}/tex/fontinst/afm2pl/ly1c.etx
%{_texmfdistdir}/tex/fontinst/afm2pl/makesc8y.tex
%doc %{_mandir}/man1/afm2pl.1*
%doc %{_texmfdistdir}/doc/man/man1/afm2pl.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17604 |21mr|texlive-afparticle-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-afparticle
Version:	1.3
Release:	1
Summary:	Typesetting articles for Archives of Forensic Psychology
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/afparticle
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/afparticle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/afparticle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/afparticle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a class for typesetting articles for the
open access journal Archives of Forensic Psychology.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/afparticle
%doc %{_texmfdistdir}/doc/latex/afparticle
#- source
%doc %{_texmfdistdir}/source/latex/afparticle

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17605 |21mr|texlive-afthesis-2.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/afthesis
# catalog-date 2008-11-01 22:12:33 +0100
# catalog-license pd
# catalog-version 2.7
Name:		texlive-afthesis
Version:	2.7
Release:	7
Summary:	Air Force Institute of Technology thesis class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/afthesis
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/afthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/afthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX thesis/dissertation class for US Air Force Institute Of
Technology.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/afthesis/thesnumb.bst
%{_texmfdistdir}/tex/latex/afthesis/afthes10.sty
%{_texmfdistdir}/tex/latex/afthesis/afthes11.sty
%{_texmfdistdir}/tex/latex/afthesis/afthes12.sty
%{_texmfdistdir}/tex/latex/afthesis/afthesis.cls
%{_texmfdistdir}/tex/latex/afthesis/afthesis.sty
%doc %{_texmfdistdir}/doc/latex/afthesis/README
%doc %{_texmfdistdir}/doc/latex/afthesis/thesnumb.doc
%doc %{_texmfdistdir}/doc/latex/afthesis/usethesis.pdf
%doc %{_texmfdistdir}/doc/latex/afthesis/usethesis.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17606 |21mr|texlive-aguplus-1.6b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17156
# category Package
# catalog-ctan /macros/latex/contrib/aguplus
# catalog-date 2010-02-24 21:28:09 +0100
# catalog-license lppl
# catalog-version 1.6b
Name:		texlive-aguplus
Version:	1.6b
Release:	7
Summary:	Styles for American Geophysical Union
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/aguplus
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aguplus.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aguplus.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle started as an extension to the AGU's own published
styles, providing extra facilities and improved usability. The
AGU now publishes satisfactory LaTeX materials of its own; the
author of aguplus recommends that users switch to using the
official distribution.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/aguplus/agu.bst
%{_texmfdistdir}/bibtex/bst/aguplus/agu04.bst
%{_texmfdistdir}/bibtex/bst/aguplus/agufull.bst
%{_texmfdistdir}/bibtex/bst/aguplus/agufull04.bst
%{_texmfdistdir}/tex/latex/aguplus/aguplus.cls
%{_texmfdistdir}/tex/latex/aguplus/aguplus.sty
%{_texmfdistdir}/tex/latex/aguplus/agupp.sty
%doc %{_texmfdistdir}/doc/latex/aguplus/README
%doc %{_texmfdistdir}/doc/latex/aguplus/README.aguplus
%doc %{_texmfdistdir}/doc/latex/aguplus/aguplus.pdf
%doc %{_texmfdistdir}/doc/latex/aguplus/aguplus.tex
%doc %{_texmfdistdir}/doc/latex/aguplus/changes.v16b
%doc %{_texmfdistdir}/doc/latex/aguplus/geophys.tex
%doc %{_texmfdistdir}/doc/latex/aguplus/sample.bib
%doc %{_texmfdistdir}/doc/latex/aguplus/samplus.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17607 |21mr|texlive-aiaa-3.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/aiaa
# catalog-date 2006-09-12 13:40:13 +0200
# catalog-license lppl
# catalog-version 3.6
Name:		texlive-aiaa
Version:	3.6
Release:	7
Summary:	Typeset AIAA conference papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/aiaa
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aiaa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aiaa.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aiaa.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A bundle of LaTeX/BibTeX files and sample documents to aid
those producing papers and journal articles according to the
guidelines of the American Institute of Aeronautics and
Astronautics (AIAA).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/aiaa/aiaa.bst
%{_texmfdistdir}/tex/latex/aiaa/aiaa-tc.cls
%doc %{_texmfdistdir}/doc/latex/aiaa/README
%doc %{_texmfdistdir}/doc/latex/aiaa/aiaa.pdf
%doc %{_texmfdistdir}/doc/latex/aiaa/author_guide.pdf
%doc %{_texmfdistdir}/doc/latex/aiaa/author_guide.tex
%doc %{_texmfdistdir}/doc/latex/aiaa/bibtex_database.bib
%doc %{_texmfdistdir}/doc/latex/aiaa/figure_magnet.eps
%doc %{_texmfdistdir}/doc/latex/aiaa/figure_magnet.pdf
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/CHANGES
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/MANIFEST
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/README
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/aiaa.dtx
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/aiaa.ins
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/aiaa.pdf
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/aiaalgo.eps
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/paper/smpaiaa.ps
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/paper/smpaiaa.tex
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/paper/smpbtx.bib
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/paper/smpfig.eps
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/refs/tstbtx.bib
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/refs/tstref.tex
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/subfigs/smpfig.eps
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/subfigs/smpsubf.tex
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/talk/smpfig.eps
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/talk/smptalk.ps
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/talk/smptalk.sty
%doc %{_texmfdistdir}/doc/latex/aiaa/pre2004/demos/talk/smptalk.tex
%doc %{_texmfdistdir}/doc/latex/aiaa/template_advanced.pdf
%doc %{_texmfdistdir}/doc/latex/aiaa/template_advanced.tex
%doc %{_texmfdistdir}/doc/latex/aiaa/template_basic.pdf
%doc %{_texmfdistdir}/doc/latex/aiaa/template_basic.tex
#- source
%doc %{_texmfdistdir}/source/latex/aiaa/aiaa.dtx
%doc %{_texmfdistdir}/source/latex/aiaa/aiaa.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17608 |21mr|texlive-akktex-0.3.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26055
# category Package
# catalog-ctan /macros/latex/contrib/akktex
# catalog-date 2010-08-24 18:19:56 +0200
# catalog-license lppl
# catalog-version 0.3.2
Name:		texlive-akktex
Version:	0.3.2
Release:	6
Summary:	A collection of packages and classes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/akktex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/akktex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/akktex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides: - new document classes for technical
documents, thesis works, manuscripts and lecture notes; - many
mathematical packages providing a large number of macros for
mathematical texts; - layout providing a non-empty parskip with
extended length corrections and new section definition
commands; - easy label creation for counters; and - german
language tools and predefined abbreviations.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/akktex/akkconditional.sty
%{_texmfdistdir}/tex/latex/akktex/akkcounterlabelpattern.sty
%{_texmfdistdir}/tex/latex/akktex/akkcs.sty
%{_texmfdistdir}/tex/latex/akktex/akkdoc.sty
%{_texmfdistdir}/tex/latex/akktex/akkgerman.sty
%{_texmfdistdir}/tex/latex/akktex/akkgermanabbreviations.sty
%{_texmfdistdir}/tex/latex/akktex/akklecture.cls
%{_texmfdistdir}/tex/latex/akktex/akklongpage.sty
%{_texmfdistdir}/tex/latex/akktex/akkmath.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathbasic.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathdisc.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathfun.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathnum.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathpaper.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathproof.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathrel.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathset.sty
%{_texmfdistdir}/tex/latex/akktex/akkmathtext.sty
%{_texmfdistdir}/tex/latex/akktex/akknum.sty
%{_texmfdistdir}/tex/latex/akktex/akkparskip.sty
%{_texmfdistdir}/tex/latex/akktex/akkscript.cls
%{_texmfdistdir}/tex/latex/akktex/akksection.sty
%{_texmfdistdir}/tex/latex/akktex/akkstring.sty
%{_texmfdistdir}/tex/latex/akktex/akktecdoc.cls
%{_texmfdistdir}/tex/latex/akktex/akktex.sty
%{_texmfdistdir}/tex/latex/akktex/akkwidepage.sty
%doc %{_texmfdistdir}/doc/latex/akktex/README
%doc %{_texmfdistdir}/doc/latex/akktex/README.TEXLIVE

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17609 |21mr|texlive-akletter-1.5i-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/akletter
# catalog-date 2009-01-23 15:11:09 +0100
# catalog-license lppl
# catalog-version 1.5i
Name:		texlive-akletter
Version:	1.5i
Release:	7
Summary:	Comprehensive letter support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/akletter
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/akletter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/akletter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An advanced letter document class which extends LaTeX's usual
letter class, providing support for building your own
letterhead and marking fold points for window envelopes.
Options supported by the package include: letterpaper for US
letter; a4offset for a modified A4 layout suitable for platic
binders that cover a part of the left margin. The class's
handling of dates has inspired an extended version of date-
handling in the isodate package. The class supersedes an
earlier class called myletter.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/akletter/akfax.cfg
%{_texmfdistdir}/tex/latex/akletter/akletter.cfg
%{_texmfdistdir}/tex/latex/akletter/akletter.cls
%{_texmfdistdir}/tex/latex/akletter/myletter.cls
%doc %{_texmfdistdir}/doc/latex/akletter/akletter.tex
%doc %{_texmfdistdir}/doc/latex/akletter/akletter.upl
%doc %{_texmfdistdir}/doc/latex/akletter/letterdoc.pdf
%doc %{_texmfdistdir}/doc/latex/akletter/letterdoc.tex
%doc %{_texmfdistdir}/doc/latex/akletter/lettereng.pdf
%doc %{_texmfdistdir}/doc/latex/akletter/lettereng.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17610 |21mr|texlive-aleph-RC2-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category Package
# catalog-ctan /systems/aleph
# catalog-date 2012-12-31 10:35:50 +0100
# catalog-license gpl
# catalog-version RC2
Name:		texlive-aleph
Version:	RC2
Release:	17
Summary:	Extended TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/aleph
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aleph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aleph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-tetex
Requires:	texlive-latex
Requires:	texlive-plain
Requires:	texlive-lambda
Requires:	texlive-aleph.bin

%description
An development of omega, using most of the extensions of TeX
itself developed for e-TeX.

#-----------------------------------------------------------------------
%files
%_texmf_fmtutil_d/aleph
%doc %{_texmfdistdir}/doc/aleph/base/News
%doc %{_texmfdistdir}/doc/aleph/base/readme.txt
%doc %{_mandir}/man1/aleph.1*
%doc %{_texmfdistdir}/doc/man/man1/aleph.man1.pdf
%doc %{_mandir}/man1/lamed.1*
%doc %{_texmfdistdir}/doc/man/man1/lamed.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/aleph <<EOF
#
# from aleph:
aleph aleph - *aleph.ini
lamed aleph language.dat *lambda.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17611 |21mr|texlive-alg-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/alg
# catalog-date 2006-12-17 11:41:28 +0100
# catalog-license lppl
# catalog-version 2001-03-13
Name:		texlive-alg
Version:	20190228
Release:	1
Summary:	LaTeX environments for typesetting algorithms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/alg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines two environments for typesetting algorithms in LaTeX2e.
The algtab environment is used to typeset an algorithm with
automatically numbered lines. The algorithm environment can be
used to encapsulate the algtab environment algorithm in a
floating body together with a header, a caption, etc.
\listofalgorithms is defined.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/alg/alg.sty
%doc %{_texmfdistdir}/doc/latex/alg/readme.txt
#- source
%doc %{_texmfdistdir}/source/latex/alg/alg.dtx
%doc %{_texmfdistdir}/source/latex/alg/alg.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17612 |21mr|texlive-algorithm2e-5.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-algorithm2e
Version:	5.2
Release:	3
Summary:	Floating algorithm environment with algorithmic keywords
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/algorithm2e
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algorithm2e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algorithm2e.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Algorithm2e is an environment for writing algorithms. An
algorithm becomes a floating object (like figure, table, etc.).
The package provides macros that allow you to create different
keywords, and a set of predefined key words is provided; you
can change the typography of the keywords. The package allows
vertical lines delimiting a block of instructions in an
algorithm, and defines different sorts of algorithms such as
Procedure or Function; the name of these functions may be
reused in the text or in other algorithms.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/algorithm2e
%doc %{_texmfdistdir}/doc/latex/algorithm2e

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17613 |21mr|texlive-algorithmicx-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/algorithmicx
# catalog-date 2006-10-12 12:11:58 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-algorithmicx
Version:	20190228
Release:	1
Summary:	The algorithmic style you always wanted
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/algorithmicx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algorithmicx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algorithmicx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Algorithmicx provides a very flexible, yet easy to use way for
inserting good looking pseudocode or source code in your
papers. It has built in support for Pseudocode, Pascal, C, and
powerful means to create definitions for any programming
language. You can easily adapt a Pseudocode style to your
native language.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/algorithmicx/algc.sty
%{_texmfdistdir}/tex/latex/algorithmicx/algcompatible.sty
%{_texmfdistdir}/tex/latex/algorithmicx/algmatlab.sty
%{_texmfdistdir}/tex/latex/algorithmicx/algorithmicx.sty
%{_texmfdistdir}/tex/latex/algorithmicx/algpascal.sty
%{_texmfdistdir}/tex/latex/algorithmicx/algpseudocode.sty
%doc %{_texmfdistdir}/doc/latex/algorithmicx/README
%doc %{_texmfdistdir}/doc/latex/algorithmicx/algorithmicx.pdf
%doc %{_texmfdistdir}/doc/latex/algorithmicx/algorithmicx.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17614 |21mr|texlive-algorithms-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/algorithms
# catalog-date 2009-08-25 14:02:57 +0200
# catalog-license lgpl
# catalog-version 0.1
Name:		texlive-algorithms
Version:	0.1
Release:	7
Summary:	A suite of tools for typesetting algorithms in pseudo-code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/algorithms
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algorithms.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algorithms.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/algorithms.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Consists of two environments: algorithm and algorithmic. The
algorithm package defines a floating algorithm environment
designed to work with the algorithmic style. Within an
algorithmic environment a number of commands for typesetting
popular algorithmic constructs are available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/algorithms/algorithm.sty
%{_texmfdistdir}/tex/latex/algorithms/algorithmic.sty
%doc %{_texmfdistdir}/doc/latex/algorithms/COPYING
%doc %{_texmfdistdir}/doc/latex/algorithms/README
%doc %{_texmfdistdir}/doc/latex/algorithms/THANKS
%doc %{_texmfdistdir}/doc/latex/algorithms/algorithms.pdf
#- source
%doc %{_texmfdistdir}/source/latex/algorithms/algorithms.dtx
%doc %{_texmfdistdir}/source/latex/algorithms/algorithms.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17615 |21mr|texlive-alkalami-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-alkalami
Version:	1.0
Release:	1
Summary:	A font for Arabic-based writing systems in Nigeria and Niger
Group:		Publishing
URL:		https://fedora.pkgs.org/33/fedora-x86_64/texlive-alkalami-svn44497-27.fc33.noarch.rpm.html
License:	MIT
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/alkalami.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/alkalami.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This font is designed for Arabic-based writing systems in the Kano region of Nigeria and Niger.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17616 |21mr|texlive-alnumsec-v0.03-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/alnumsec
# catalog-date 2008-05-11 02:21:17 +0200
# catalog-license lppl
# catalog-version v0.03
Name:		texlive-alnumsec
Version:	v0.03
Release:	7
Summary:	Alphanumeric section numbering
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/alnumsec
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alnumsec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alnumsec.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alnumsec.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows you to use alphanumeric section numbering,
for instance "A. Introduction ... III. International Law". Its
output is similar to alphanum, but you can use the standard
LaTeX sectioning commands, so that it is possible to switch
numbering schemes easily. Greek letters, double letters (bb)
and different delimiters around them are supported.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/alnumsec/alnumsec.sty
%doc %{_texmfdistdir}/doc/latex/alnumsec/README
%doc %{_texmfdistdir}/doc/latex/alnumsec/alnumsec.pdf
#- source
%doc %{_texmfdistdir}/source/latex/alnumsec/alnumsec.dtx
%doc %{_texmfdistdir}/source/latex/alnumsec/alnumsec.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17617 |21mr|texlive-alterqcm-3.7c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23385
# category Package
# catalog-ctan /macros/latex/contrib/alterqcm
# catalog-date 2011-06-06 00:10:59 +0200
# catalog-license lppl
# catalog-version 3.7c
Name:		texlive-alterqcm
Version:	3.7c
Release:	7
Summary:	Multiple choice questionnaires in two column tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/alterqcm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alterqcm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/alterqcm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Macros to support the creation of multiple-choice
questionnaires in two-column tables.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/alterqcm/alterqcm.sty
%doc %{_texmfdistdir}/doc/latex/alterqcm/README
%doc %{_texmfdistdir}/doc/latex/alterqcm/README.doc
%doc %{_texmfdistdir}/doc/latex/alterqcm/doc_aq-screen.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/AntillesESjuin2006.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/alea.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/annexe.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/correct.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/example_1.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/example_2.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/language.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/points.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/sep.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/transparent-final.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/transparent-init.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/latex/verb.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/AntillesESjuin2006.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/alea.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/annexe.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/correct.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/doc_aq.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/example_1.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/example_2.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/language.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/points.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/sep.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/transparent-final.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/transparent-init.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/examples/pdf/verb.pdf
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/180px-Gustave_Moreau_007.jpg
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/240px-Mort_du_fossoyeur.jpg
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/The_Wounded_Angel_-_Hugo_Simberg.jpg
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/aq.ist
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc-aq-def.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc-aq-excomp.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc-aq-globales.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc-aq-installation.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc-aq-locales.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc-aq-mc.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc-aq-points.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc-aq-problem.tex
%doc %{_texmfdistdir}/doc/latex/alterqcm/latex/doc_aq-main.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17618 |21mr|texlive-altfont-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/altfont
# catalog-date 2007-09-25 20:36:22 +0200
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-altfont
Version:	1.1
Release:	7
Summary:	Alternative font handling in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/altfont
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/altfont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/altfont.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/altfont.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a replacement for that part of psnfss and
mfnfss that changes the default font. The package is
distributed together with the psfont package, by the same
author.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/altfont/altfont.cfg
%{_texmfdistdir}/tex/latex/altfont/altfont.sty
%{_texmfdistdir}/tex/latex/altfont/psfont.cfg
%{_texmfdistdir}/tex/latex/altfont/psfont.sty
%doc %{_texmfdistdir}/doc/latex/altfont/README
%doc %{_texmfdistdir}/doc/latex/altfont/altfont.pdf
%doc %{_texmfdistdir}/doc/latex/altfont/psfont.pdf
#- source
%doc %{_texmfdistdir}/source/latex/altfont/altfont.dtx
%doc %{_texmfdistdir}/source/latex/altfont/altfont.ins
%doc %{_texmfdistdir}/source/latex/altfont/psfont.dtx
%doc %{_texmfdistdir}/source/latex/altfont/psfont.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17619 |21mr|texlive-ametsoc-4.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ametsoc
Version:	4.3.2
Release:	2
Summary:	Official American Meteorological Society Latex Template
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ametsoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ametsoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ametsoc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package contains all the files necessary to write an
article using latex for the American Meteorological Society
journals. The article and bibliography style files are provided
along with two PDFs describing the use of the files and a blank
template for authors to use in writing their article. Also
available is a separate style file used to format a two-column,
journal page layout draft for the author's personal use.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/ametsoc
%{_texmfdistdir}/tex/latex/ametsoc
%doc %{_texmfdistdir}/doc/latex/ametsoc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17620 |21mr|texlive-amiri-0.110-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-amiri
Epoch:		1
Version:	0.110
Release:	2
Summary:	A classical Arabic typeface, Naskh style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/amiri
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amiri.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amiri.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a beta-release of the font, though it is believed to be
largely usable. (The author retains the right to make
incompatible changes in the future.) The font covers the Arabic
and Arabic Supplement blocks of Unicode 6.0, which means it
essentially covers any language written in Arabic script and
supported by Unicode.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/truetype/public/amiri
%doc %{_texmfdistdir}/doc/fonts/amiri

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17621 |21mr|texlive-amsaddr-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29630
# category Package
# catalog-ctan /macros/latex/contrib/amsaddr
# catalog-date 2013-04-03 11:32:41 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-amsaddr
Version:	1.1
Release:	10
Summary:	Alter the position of affiliations in amsart
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/amsaddr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsaddr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsaddr.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsaddr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is to be used with the amsart documentclass. It
lets you move the authors' affiliations either just below the
authors' names on the front page or as footnotes on the first
page. The email addresses are always listed as a footnote on
the front page.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/amsaddr/amsaddr.sty
%doc %{_texmfdistdir}/doc/latex/amsaddr/README
%doc %{_texmfdistdir}/doc/latex/amsaddr/amsaddr.pdf
#- source
%doc %{_texmfdistdir}/source/latex/amsaddr/amsaddr.dtx
%doc %{_texmfdistdir}/source/latex/amsaddr/amsaddr.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17622 |21mr|texlive-amscls-2.20.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-amscls
Version:	2.20.4
Release:	2
Epoch:		1
Summary:	AMS document classes for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/required/amslatex/amscls
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amscls.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amscls.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amscls.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle contains three AMS classes, amsart (for writing
articles for the AMS), amsbook (for books) and amsproc (for
proceedings), together with some supporting material. The
material is made available as part of the AMS-LaTeX
distribution.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/amscls
%{_texmfdistdir}/tex/latex/amscls
%doc %{_texmfdistdir}/doc/latex/amscls
#- source
%doc %{_texmfdistdir}/source/latex/amscls

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17623 |21mr|texlive-amsfonts-3.04-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29208
# category Package
# catalog-ctan /fonts/amsfonts
# catalog-date 2013-01-28 18:05:09 +0100
# catalog-license ofl
# catalog-version 3.04
Name:		texlive-amsfonts
Version:	3.04
Release:	11
Summary:	TeX fonts from the American Mathematical Society
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/amsfonts
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsfonts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsfonts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
An extended set of fonts for use in mathematics, including:
extra mathematical symbols; blackboard bold letters (uppercase
only); fraktur letters; subscript sizes of bold math italic and
bold Greek letters; subscript sizes of large symbols such as
sum and product; added sizes of the Computer Modern small caps
font; cyrillic fonts (from the University of Washington); Euler
mathematical fonts. All fonts are provided as Adobe Type 1
files, and all except the Euler fonts are provided as Metafont
source. The distribution also includes the canonical Type 1
versions of the Computer Modern family of fonts. Plain TeX and
LaTeX macros for using the fonts are provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmb10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbsy10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbx10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbx12.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbx5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbx6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbx7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbx8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbx9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbxsl10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmbxti10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmcsc10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmdunh10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmex10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmff10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmfi10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmfib8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cminch.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmitt10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmmi10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmmi12.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmmi5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmmi6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmmi7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmmi8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmmi9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmmib10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmr10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmr12.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmr17.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmr5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmr6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmr7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmr8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmr9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsl10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsl12.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsl8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsl9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsltt10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmss10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmss12.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmss17.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmss8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmss9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssbx10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssdc10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssi10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssi12.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssi17.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssi8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssi9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssq8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmssqi8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsy10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsy5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsy6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsy7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsy8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmsy9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmtcsc10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmtex10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmtex8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmtex9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmti10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmti12.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmti7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmti8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmti9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmtt10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmtt12.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmtt8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmtt9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmu10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cm/cmvtt10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmbsy5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmbsy6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmbsy7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmbsy8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmbsy9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmcsc8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmcsc9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmex7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmex8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmex9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmmib5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmmib6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmmib7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmmib8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cmextra/cmmib9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cyrillic/wncyb10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cyrillic/wncyi10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cyrillic/wncyr10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cyrillic/wncysc10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/cyrillic/wncyss10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/euex10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/euex7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/euex8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/euex9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eufb10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eufb5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eufb7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eufm10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eufm5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eufm7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eurb10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eurb5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eurb7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eurm10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eurm5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eurm7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eusb10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eusb5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eusb7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eusm10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eusm5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/euler/eusm7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lasy10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lasy5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lasy6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lasy7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lasy8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lasy9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lasyb10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lcircle1.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lcirclew.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lcmss8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lcmssb8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/lcmssi8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/line10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/latxfont/linew10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msam10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msam5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msam6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msam7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msam8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msam9.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msbm10.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msbm5.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msbm6.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msbm7.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msbm8.afm
%{_texmfdistdir}/fonts/afm/public/amsfonts/symbols/msbm9.afm
%{_texmfdistdir}/fonts/map/dvips/amsfonts/cm.map
%{_texmfdistdir}/fonts/map/dvips/amsfonts/cmextra.map
%{_texmfdistdir}/fonts/map/dvips/amsfonts/cyrillic.map
%{_texmfdistdir}/fonts/map/dvips/amsfonts/euler.map
%{_texmfdistdir}/fonts/map/dvips/amsfonts/latxfont.map
%{_texmfdistdir}/fonts/map/dvips/amsfonts/symbols.map
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmbsy5.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmbsy6.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmbsy7.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmbsy8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmbsy9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmcsc8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmcsc9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmex7.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmex8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmex9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmmib5.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmmib6.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmmib7.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmmib8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cmextra/cmmib9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrcsc.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrfont.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrilu.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrital.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrmax.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrpunc.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrspl.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrspu.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/cyrti.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/serb.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/serbspu.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyb10.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyb5.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyb6.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyb7.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyb8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyb9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyi10.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyi5.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyi6.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyi7.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyi8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyi9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyr10.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyr5.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyr6.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyr7.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyr8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyr9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncysc10.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyss10.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyss8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/cyrillic/wncyss9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/dummy/dummy.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/amsya.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/amsyb.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/asymbols.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/bsymbols.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msam10.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msam5.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msam6.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msam7.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msam8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msam9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msbm10.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msbm5.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msbm6.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msbm7.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msbm8.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/msbm9.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/xbbase.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/xbbold.mf
%{_texmfdistdir}/fonts/source/public/amsfonts/symbols/xbcaps.mf
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmbsy5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmbsy6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmbsy7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmbsy8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmbsy9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmcsc8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmcsc9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmex7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmex8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmex9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmmib5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmmib6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmmib7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmmib8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cmextra/cmmib9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyb10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyb5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyb6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyb7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyb8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyb9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyi10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyi5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyi6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyi7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyi8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyi9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyr10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyr5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyr6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyr7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyr8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyr9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncysc10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyss10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyss8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/cyrillic/wncyss9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/dummy/dummy.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/euex10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/euex7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/euex8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/euex9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufb10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufb5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufb6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufb7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufb8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufb9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufm10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufm5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufm6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufm7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufm8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eufm9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurb10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurb5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurb6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurb7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurb8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurb9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurm10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurm5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurm6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurm7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurm8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eurm9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusb10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusb5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusb6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusb7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusb8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusb9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusm10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusm5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusm6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusm7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusm8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/euler/eusm9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msam10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msam5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msam6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msam7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msam8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msam9.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msbm10.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msbm5.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msbm6.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msbm7.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msbm8.tfm
%{_texmfdistdir}/fonts/tfm/public/amsfonts/symbols/msbm9.tfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmb10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmb10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbsy10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbsy10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx12.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx12.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbx9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbxsl10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbxsl10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbxti10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmbxti10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmcsc10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmcsc10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmdunh10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmdunh10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmex10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmex10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmff10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmff10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmfi10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmfi10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmfib8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmfib8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cminch.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cminch.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmitt10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmitt10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi12.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi12.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmi9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmib10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmmib10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr12.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr12.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr17.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr17.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmr9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsl10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsl10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsl12.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsl12.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsl8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsl8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsl9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsl9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsltt10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsltt10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss12.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss12.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss17.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss17.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmss9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssbx10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssbx10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssdc10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssdc10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi12.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi12.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi17.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi17.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssi9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssq8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssq8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssqi8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmssqi8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmsy9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtcsc10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtcsc10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtex10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtex10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtex8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtex8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtex9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtex9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti12.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti12.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmti9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtt10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtt10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtt12.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtt12.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtt8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtt8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtt9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmtt9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmu10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmu10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmvtt10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cm/cmvtt10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmbsy9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmcsc8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmcsc8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmcsc9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmcsc9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmex7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmex7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmex8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmex8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmex9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmex9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cmextra/cmmib9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncyb10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncyb10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncyi10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncyi10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncyr10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncyr10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncysc10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncysc10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncyss10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/cyrillic/wncyss10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/euex10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/euex10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/euex7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/euex7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/euex8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/euex8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/euex9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/euex9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufb10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufb10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufb5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufb5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufb7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufb7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufm10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufm10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufm5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufm5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufm7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eufm7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurb10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurb10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurb5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurb5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurb7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurb7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurm10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurm10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurm5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurm5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurm7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eurm7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusb10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusb10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusb5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusb5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusb7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusb7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusm10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusm10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusm5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusm5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusm7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/euler/eusm7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasy9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasyb10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lasyb10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcircle1.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcircle1.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcirclew.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcirclew.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcmss8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcmss8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcmssb8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcmssb8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcmssi8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/lcmssi8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/line10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/line10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/linew10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/latxfont/linew10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msam9.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm10.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm10.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm5.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm5.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm6.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm6.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm7.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm7.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm8.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm8.pfm
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm9.pfb
%{_texmfdistdir}/fonts/type1/public/amsfonts/symbols/msbm9.pfm
%{_texmfdistdir}/tex/latex/amsfonts/amsfonts.sty
%{_texmfdistdir}/tex/latex/amsfonts/amssymb.sty
%{_texmfdistdir}/tex/latex/amsfonts/cmmib57.sty
%{_texmfdistdir}/tex/latex/amsfonts/eucal.sty
%{_texmfdistdir}/tex/latex/amsfonts/eufrak.sty
%{_texmfdistdir}/tex/latex/amsfonts/euscript.sty
%{_texmfdistdir}/tex/latex/amsfonts/ueuex.fd
%{_texmfdistdir}/tex/latex/amsfonts/ueuf.fd
%{_texmfdistdir}/tex/latex/amsfonts/ueur.fd
%{_texmfdistdir}/tex/latex/amsfonts/ueus.fd
%{_texmfdistdir}/tex/latex/amsfonts/umsa.fd
%{_texmfdistdir}/tex/latex/amsfonts/umsb.fd
%{_texmfdistdir}/tex/plain/amsfonts/amssym.def
%{_texmfdistdir}/tex/plain/amsfonts/amssym.tex
%{_texmfdistdir}/tex/plain/amsfonts/cyracc.def
%_texmf_updmap_d/amsfonts
%doc %{_texmfdistdir}/doc/fonts/amsfonts/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/amsfonts/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/amsfonts/README
%doc %{_texmfdistdir}/doc/fonts/amsfonts/amsfndoc.pdf
%doc %{_texmfdistdir}/doc/fonts/amsfonts/amsfonts.pdf
%doc %{_texmfdistdir}/doc/fonts/amsfonts/amssymb.pdf
%doc %{_texmfdistdir}/doc/fonts/amsfonts/cmmib57.pdf
%doc %{_texmfdistdir}/doc/fonts/amsfonts/eufrak.pdf
%doc %{_texmfdistdir}/doc/fonts/amsfonts/euscript.pdf
#- source
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfndoc.cyr
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfndoc.def
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfndoc.fnt
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfndoc.ins
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfndoc.tex
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfonts.bug
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfonts.dtx
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfonts.faq
%doc %{_texmfdistdir}/source/latex/amsfonts/amsfonts.ins
%doc %{_texmfdistdir}/source/latex/amsfonts/amssymb.dtx
%doc %{_texmfdistdir}/source/latex/amsfonts/cmmib57.dtx
%doc %{_texmfdistdir}/source/latex/amsfonts/eufrak.dtx
%doc %{_texmfdistdir}/source/latex/amsfonts/euscript.dtx
%doc %{_texmfdistdir}/source/latex/amsfonts/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/amsfonts <<EOF
Map      euler.map
MixedMap cm.map
MixedMap cmextra.map
MixedMap cyrillic.map
MixedMap latxfont.map
MixedMap symbols.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17624 |21mr|texlive-amslatex-primer-2.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22612
# category Package
# catalog-ctan /info/amslatex/primer
# catalog-date 2011-05-25 00:58:45 +0200
# catalog-license lppl
# catalog-version 2.3
Name:		texlive-amslatex-primer
Version:	2.3
Release:	6
Summary:	Getting up and running with AMS-LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/amslatex/primer
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amslatex-primer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amslatex-primer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document aims to get you up and running with AMS-LaTeX as
quickly as possible. These instructions (along with a template
file template.tex) are not a substitute for the full
documentation, but they may get you started quickly enough so
that you will only need to refer to the main documentation
occasionally. In addition to 'AMS-LaTeX out of the box', the
document contains: - a section describing how to draw
commutative diagrams using Xy-pic; and - a section describing
how to use amsrefs to create a bibliography.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/amslatex-primer/README
%doc %{_texmfdistdir}/doc/latex/amslatex-primer/amshelp.md5
%doc %{_texmfdistdir}/doc/latex/amslatex-primer/amshelp.pdf
%doc %{_texmfdistdir}/doc/latex/amslatex-primer/amshelp.tex
%doc %{_texmfdistdir}/doc/latex/amslatex-primer/template.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17625 |21mr|texlive-amsldoc-it-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-amsldoc-it
Version:	20190228
Release:	1
Summary:	TeXLive amsldoc-it package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsldoc-it.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsldoc-it.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive amsldoc-it package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/amsldoc-it/itamsldoc.pdf
%doc %{_texmfdistdir}/doc/latex/amsldoc-it/itamsldoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17626 |21mr|texlive-amsldoc-vn-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21855
# category Package
# catalog-ctan /info/amslatex/vietnamese
# catalog-date 2007-01-26 22:11:52 +0100
# catalog-license lgpl
# catalog-version 2.0
Name:		texlive-amsldoc-vn
Version:	2.0
Release:	6
Summary:	Vietnamese documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/amslatex/vietnamese
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsldoc-vn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsldoc-vn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a Vietnamese translation of amsldoc, the users' guide
to amsmath.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/amsldoc-vn/Makefile
%doc %{_texmfdistdir}/doc/latex/amsldoc-vn/README
%doc %{_texmfdistdir}/doc/latex/amsldoc-vn/TODO
%doc %{_texmfdistdir}/doc/latex/amsldoc-vn/amsldoc-print-vi.pdf
%doc %{_texmfdistdir}/doc/latex/amsldoc-vn/amsldoc-print-vi.tex
%doc %{_texmfdistdir}/doc/latex/amsldoc-vn/amsldoc-vi.pdf
%doc %{_texmfdistdir}/doc/latex/amsldoc-vn/amsldoc-vi.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17627 |21mr|texlive-amsmath-2.17a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-amsmath
Version:	2.17a
Release:	2
Summary:	AMS mathematical facilities for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/required/amslatex/math
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsmath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsmath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsmath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the principal packages in the AMS-LaTeX
distribution. It adapts for use in LaTeX most of the
mathematical features found in AMS-TeX; it is highly
recommendsd as an adjunct to serious mathematical typesetting
in LaTeX. When amsmath is loaded, AMS-LaTeX packages amsbsy
(for bold symbols), amsopn (for operator names) and amstext
(for text embdedded in mathematics) are also loaded. Amsmath is
part of the LaTeX required distribution; however, several
contributed packages add still further to its appeal; examples
are empheq, which provides functions for decorating and
highlighting mathematics, and ntheorem, for specifying theorem
(and similar) definitions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/amsmath
%doc %{_texmfdistdir}/doc/latex/amsmath
#- source
%doc %{_texmfdistdir}/source/latex/amsmath

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17628 |21mr|texlive-amsmath-it-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22930
# category Package
# catalog-ctan /info/translations/amsmath/it
# catalog-date 2011-03-29 16:35:51 +0200
# catalog-license noinfo
# catalog-version undef
Name:		texlive-amsmath-it
Version:	20190228
Release:	1
Summary:	Italian translations of some old AMSmath documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/amsmath/it
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsmath-it.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsmath-it.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The documents are: diffs-m.txt of December 1999, and
amsmath.faq of March 2000.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/amsmath-it/README
%doc %{_texmfdistdir}/doc/latex/amsmath-it/amsmath.faq
%doc %{_texmfdistdir}/doc/latex/amsmath-it/diffs-m_it.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17629 |21mr|texlive-amstex-2.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29764
# category Package
# catalog-ctan /macros/amstex
# catalog-date 2012-04-13 20:24:15 +0200
# catalog-license lppl
# catalog-version 2.2
Name:		texlive-amstex
Version:	2.2
Release:	13
Summary:	American Mathematical Society plain TeX macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/amstex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amstex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amstex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-tex
Requires:	texlive-amstex.bin

%description
AMSTeX is a TeX macro package, originally written by Michael
Spivak for the American Mathematical Society (AMS) during 1983-
1985 and is described in the book 'The Joy of TeX'. It is based
on Plain TeX, and provides many features for producing more
professional-looking maths formulas with less burden on
authors. More recently, the focus of attention has switched to
amslatex, but AMSTeX remains as a working system.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/amstex/base/amsppt.sti
%{_texmfdistdir}/tex/amstex/base/amsppt.sty
%{_texmfdistdir}/tex/amstex/base/amsppt1.tex
%{_texmfdistdir}/tex/amstex/base/amstex.bug
%{_texmfdistdir}/tex/amstex/base/amstex.tex
%{_texmfdistdir}/tex/amstex/config/amstex.ini
%_texmf_fmtutil_d/amstex
%doc %{_texmfdistdir}/doc/amstex/base/README
%doc %{_texmfdistdir}/doc/amstex/base/amsguide.pdf
%doc %{_texmfdistdir}/doc/amstex/base/amsguide.tex
%doc %{_texmfdistdir}/doc/amstex/base/amsppt.doc
%doc %{_texmfdistdir}/doc/amstex/base/amsppt.faq
%doc %{_texmfdistdir}/doc/amstex/base/amstinst.ps.gz
%doc %{_texmfdistdir}/doc/amstex/base/amstinst.tex
%doc %{_texmfdistdir}/doc/amstex/base/joyerr.tex
%doc %{_texmfdistdir}/doc/amstex/base/joyerr2.tex
%doc %{_mandir}/man1/amstex.1*
%doc %{_texmfdistdir}/doc/man/man1/amstex.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/amstex <<EOF
#
# from amstex:
amstex pdftex - -translate-file=cp227.tcx *amstex.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17630 |21mr|texlive-amsthdoc-it-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-amsthdoc-it
Version:	20190228
Release:	1
Summary:	TeXLive amsthdoc-it package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsthdoc-it.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/amsthdoc-it.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive amsthdoc-it package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/amsthdoc-it/README
%doc %{_texmfdistdir}/doc/latex/amsthdoc-it/amsthdoc_it.pdf
%doc %{_texmfdistdir}/doc/latex/amsthdoc-it/amsthdoc_it.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17631 |21mr|texlive-animate-20190308-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-animate
Version:	20190308
Release:	1
Summary:	Create PDF animations from graphics files and inline graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/animate
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/animate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/animate.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an interface to create portable,
JavaScript driven PDF animations from sets of graphics files or
from inline graphics, such as LaTeX picture environment,
PSTricks or pgf/TikZ generated pictures, or just from typeset
text.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/animate
%doc %{_texmfdistdir}/doc/latex/animate

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17632 |21mr|texlive-anonchap-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17049
# category Package
# catalog-ctan /macros/latex/contrib/anonchap
# catalog-date 2010-02-23 16:03:07 +0100
# catalog-license lppl
# catalog-version 1.1a
Name:		texlive-anonchap
Version:	1.1a
Release:	7
Summary:	Make chapters be typeset like sections
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/anonchap
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/anonchap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/anonchap.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The command \simplechapter sets up the \chapter command not to
number chapters, though they may possibly have a prefix, and a
suffix (the \simplechapterdelim command, which the user may
alter). The \restorechapter command restores the status quo
ante.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/anonchap/anonchap.sty
%doc %{_texmfdistdir}/doc/latex/anonchap/anonchap.pdf
%doc %{_texmfdistdir}/doc/latex/anonchap/anonchap.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17633 |21mr|texlive-answers-2.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-answers
Version:	2.16
Release:	2
Summary:	Setting questions (or exercises) and answers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/answers
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/answers.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/answers.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/answers.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows a lot of flexibility in constructing
question and answer sheets.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/answers
%doc %{_texmfdistdir}/doc/latex/answers
#- source
%doc %{_texmfdistdir}/source/latex/answers

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17634 |21mr|texlive-antomega-0.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21933
# category Package
# catalog-ctan /systems/omega/contrib/antomega
# catalog-date 2007-01-23 22:34:44 +0100
# catalog-license lppl
# catalog-version 0.8
Name:		texlive-antomega
Version:	0.8
Release:	7
Summary:	Alternative language support for Omega/Lambda
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/omega/contrib/antomega
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/antomega.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/antomega.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/antomega.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-omega

%description
A language support package for Omega/Lambda. This replaces the
original omega package for use with Lambda, and provides extra
facilities (including Babel-like language switching, which
eases porting of LaTeX documents to Lambda).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/omega/ocp/antomega/babel2de.ocp
%{_texmfdistdir}/omega/ocp/antomega/babel2es.ocp
%{_texmfdistdir}/omega/ocp/antomega/babel2la.ocp
%{_texmfdistdir}/omega/ocp/antomega/babel2pl.ocp
%{_texmfdistdir}/omega/ocp/antomega/babel2punct.ocp
%{_texmfdistdir}/omega/ocp/antomega/babel2ru.ocp
%{_texmfdistdir}/omega/ocp/antomega/bblgrk2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/dosrus2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/greek2punct.ocp
%{_texmfdistdir}/omega/ocp/antomega/iso2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/isobaltic2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/isoce2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/isocyr2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/isogrk2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/koirus2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/latcyr2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/latin/la-lig.ocp
%{_texmfdistdir}/omega/ocp/antomega/latin/la-longs.ocp
%{_texmfdistdir}/omega/ocp/antomega/latin/la-noj.ocp
%{_texmfdistdir}/omega/ocp/antomega/latin/la-nouv.ocp
%{_texmfdistdir}/omega/ocp/antomega/oldstyle.ocp
%{_texmfdistdir}/omega/ocp/antomega/rhobre.ocp
%{_texmfdistdir}/omega/ocp/antomega/rhonobre.ocp
%{_texmfdistdir}/omega/ocp/antomega/tex2punct.ocp
%{_texmfdistdir}/omega/ocp/antomega/texgrk2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/uni2accents.ocp
%{_texmfdistdir}/omega/ocp/antomega/uni2lgr.ocp
%{_texmfdistdir}/omega/ocp/antomega/uni2lig.ocp
%{_texmfdistdir}/omega/ocp/antomega/uni2omega.ocp
%{_texmfdistdir}/omega/ocp/antomega/uni2t1.ocp
%{_texmfdistdir}/omega/ocp/antomega/uni2t2a.ocp
%{_texmfdistdir}/omega/ocp/antomega/uniutf2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/uppercase-dflt.ocp
%{_texmfdistdir}/omega/ocp/antomega/win2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/winbaltic2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/wince2uni.ocp
%{_texmfdistdir}/omega/ocp/antomega/wincyr2uni.ocp
%{_texmfdistdir}/omega/otp/antomega/babel2de.otp
%{_texmfdistdir}/omega/otp/antomega/babel2es.otp
%{_texmfdistdir}/omega/otp/antomega/babel2la.otp
%{_texmfdistdir}/omega/otp/antomega/babel2pl.otp
%{_texmfdistdir}/omega/otp/antomega/babel2punct.otp
%{_texmfdistdir}/omega/otp/antomega/babel2ru.otp
%{_texmfdistdir}/omega/otp/antomega/bblgrk2uni.otp
%{_texmfdistdir}/omega/otp/antomega/dosrus2uni.otp
%{_texmfdistdir}/omega/otp/antomega/greek2punct.otp
%{_texmfdistdir}/omega/otp/antomega/iso2uni.otp
%{_texmfdistdir}/omega/otp/antomega/isobaltic2uni.otp
%{_texmfdistdir}/omega/otp/antomega/isoce2uni.otp
%{_texmfdistdir}/omega/otp/antomega/isocyr2uni.otp
%{_texmfdistdir}/omega/otp/antomega/isogrk2uni.otp
%{_texmfdistdir}/omega/otp/antomega/koirus2uni.otp
%{_texmfdistdir}/omega/otp/antomega/latcyr2uni.otp
%{_texmfdistdir}/omega/otp/antomega/latin/la-lig.otp
%{_texmfdistdir}/omega/otp/antomega/latin/la-longs.otp
%{_texmfdistdir}/omega/otp/antomega/latin/la-noj.otp
%{_texmfdistdir}/omega/otp/antomega/latin/la-nouv.otp
%{_texmfdistdir}/omega/otp/antomega/rhobre.otp
%{_texmfdistdir}/omega/otp/antomega/rhonobre.otp
%{_texmfdistdir}/omega/otp/antomega/tex2punct.otp
%{_texmfdistdir}/omega/otp/antomega/texgrk2uni.otp
%{_texmfdistdir}/omega/otp/antomega/uni2accents.otp
%{_texmfdistdir}/omega/otp/antomega/uni2lgr.otp
%{_texmfdistdir}/omega/otp/antomega/uni2lig.otp
%{_texmfdistdir}/omega/otp/antomega/uni2omega.otp
%{_texmfdistdir}/omega/otp/antomega/uni2t1.otp
%{_texmfdistdir}/omega/otp/antomega/uni2t2a.otp
%{_texmfdistdir}/omega/otp/antomega/uniutf2uni.otp
%{_texmfdistdir}/omega/otp/antomega/uppercase-dflt.otp
%{_texmfdistdir}/omega/otp/antomega/win2uni.otp
%{_texmfdistdir}/omega/otp/antomega/winbaltic2uni.otp
%{_texmfdistdir}/omega/otp/antomega/wince2uni.otp
%{_texmfdistdir}/omega/otp/antomega/wincyr2uni.otp
%{_texmfdistdir}/tex/lambda/antomega/antomega.cfg
%{_texmfdistdir}/tex/lambda/antomega/antomega.sty
%{_texmfdistdir}/tex/lambda/antomega/grhyph16.tex
%{_texmfdistdir}/tex/lambda/antomega/hyphen.cfg
%{_texmfdistdir}/tex/lambda/antomega/language.dat.sample
%{_texmfdistdir}/tex/lambda/antomega/lgc0700.def
%{_texmfdistdir}/tex/lambda/antomega/lgrenc-antomega.def
%{_texmfdistdir}/tex/lambda/antomega/ograhyph4.tex
%{_texmfdistdir}/tex/lambda/antomega/ogrmhyph4.tex
%{_texmfdistdir}/tex/lambda/antomega/ogrphyph4.tex
%{_texmfdistdir}/tex/lambda/antomega/omega-english.ldf
%{_texmfdistdir}/tex/lambda/antomega/omega-french.ldf
%{_texmfdistdir}/tex/lambda/antomega/omega-german.ldf
%{_texmfdistdir}/tex/lambda/antomega/omega-greek.ldf
%{_texmfdistdir}/tex/lambda/antomega/omega-latin.ldf
%{_texmfdistdir}/tex/lambda/antomega/omega-latvian.ldf
%{_texmfdistdir}/tex/lambda/antomega/omega-polish.ldf
%{_texmfdistdir}/tex/lambda/antomega/omega-russian.ldf
%{_texmfdistdir}/tex/lambda/antomega/omega-spanish.ldf
%{_texmfdistdir}/tex/lambda/antomega/ruhyph16.tex
%{_texmfdistdir}/tex/lambda/antomega/t1enc-antomega.def
%{_texmfdistdir}/tex/lambda/antomega/t2aenc-antomega.def
%{_texmfdistdir}/tex/lambda/antomega/uni0100.def
%{_texmfdistdir}/tex/lambda/antomega/uni0370.def
%{_texmfdistdir}/tex/lambda/antomega/uni0400.def
%{_texmfdistdir}/tex/lambda/antomega/uni1f00.def
%{_texmfdistdir}/tex/lambda/antomega/ut1enc-antomega.def
%doc %{_texmfdistdir}/doc/omega/antomega/README
%doc %{_texmfdistdir}/doc/omega/antomega/antomega.pdf
#- source
%doc %{_texmfdistdir}/source/lambda/antomega/antenc.dtx
%doc %{_texmfdistdir}/source/lambda/antomega/antenc.ins
%doc %{_texmfdistdir}/source/lambda/antomega/antomega.dtx
%doc %{_texmfdistdir}/source/lambda/antomega/antomega.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar omega tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17635 |21mr|texlive-antt-2.08-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/antt
# catalog-date 2007-08-24 10:36:49 +0200
# catalog-license gfsl
# catalog-version 2.08
Name:		texlive-antt
Version:	2.08
Release:	7
Summary:	Antykwa Torunska: a Type 1 family of a Polish traditional type
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/antt
License:	GFSL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/antt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/antt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Antykwa Torunska is a serif font designed by the late Polish
typographer Zygfryd Gardzielewski, reconstructed and digitized
as as Type 1.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/antt/anttb.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttbi.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttcb.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttcbi.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttcl.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttcli.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttcm.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttcmi.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttcr.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttcri.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttl.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttli.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttm.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttmi.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttr.afm
%{_texmfdistdir}/fonts/afm/public/antt/anttri.afm
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-cs.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-ec.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-el.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-ex.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-exp.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-greek.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-mi.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-qx.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-rm.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-sy.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-t5.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-texnansi.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/antt-wncy.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/anttcap-cs.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/anttcap-ec.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/anttcap-qx.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/anttcap-t5.enc
%{_texmfdistdir}/fonts/enc/dvips/antt/anttcap-texnansi.enc
%{_texmfdistdir}/fonts/map/dvips/antt/antt-cs.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-ec.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-el.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-ex.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-exp.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-greek.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-mi.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-qx.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-rm.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-sy.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-t2a.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-t2b.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-t2c.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-t5.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-texnansi.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-ts1.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt-wncy.map
%{_texmfdistdir}/fonts/map/dvips/antt/antt.map
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunska-Bold.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunska-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunska-Italic.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunska-Regular.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaCond-Bold.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaCond-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaCond-Italic.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaCond-Regular.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaCondLight-Italic.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaCondLight-Regular.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaCondMed-Italic.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaCondMed-Regular.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaLight-Italic.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaLight-Regular.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaMed-Italic.otf
%{_texmfdistdir}/fonts/opentype/public/antt/AntykwaTorunskaMed-Regular.otf
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttclcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttclicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttcricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttlcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttlicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/cs-anttricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttclcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttclicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttcricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttlcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttlicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ec-anttricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/el-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ex-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ex-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ex-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ex-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ex-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ex-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ex-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ex-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/exp-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/greek-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/mi-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/mi-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/mi-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/mi-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/mi-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/mi-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/mi-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/mi-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttclcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttclicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttcricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttlcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttlicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/qx-anttricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/rm-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/sy-anttbz.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/sy-anttcbz.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/sy-anttclz.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/sy-anttcmz.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/sy-anttcrz.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/sy-anttlz.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/sy-anttmz.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/sy-anttrz.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2a-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2b-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t2c-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttclcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttclicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttcricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttlcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttlicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/t5-anttricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcbcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcbicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttclcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttclicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttcricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttlcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttlicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttmcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttmicap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttrcap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/texnansi-anttricap.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/ts1-anttri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttcb.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttcbi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttcl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttcli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttcm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttcmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttcr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttcri.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttl.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttli.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttm.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttmi.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttr.tfm
%{_texmfdistdir}/fonts/tfm/public/antt/wncy-anttri.tfm
%{_texmfdistdir}/fonts/type1/public/antt/anttb.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttbi.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttcb.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttcbi.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttcl.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttcli.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttcm.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttcmi.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttcr.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttcri.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttl.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttli.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttm.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttmi.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttr.pfb
%{_texmfdistdir}/fonts/type1/public/antt/anttri.pfb
%{_texmfdistdir}/tex/latex/antt/anttor.sty
%{_texmfdistdir}/tex/latex/antt/antyktor.sty
%{_texmfdistdir}/tex/latex/antt/il2antt.fd
%{_texmfdistdir}/tex/latex/antt/il2anttc.fd
%{_texmfdistdir}/tex/latex/antt/il2anttl.fd
%{_texmfdistdir}/tex/latex/antt/il2anttlc.fd
%{_texmfdistdir}/tex/latex/antt/ly1antt.fd
%{_texmfdistdir}/tex/latex/antt/ly1anttc.fd
%{_texmfdistdir}/tex/latex/antt/ly1anttl.fd
%{_texmfdistdir}/tex/latex/antt/ly1anttlc.fd
%{_texmfdistdir}/tex/latex/antt/omlantt.fd
%{_texmfdistdir}/tex/latex/antt/omlanttc.fd
%{_texmfdistdir}/tex/latex/antt/omlanttl.fd
%{_texmfdistdir}/tex/latex/antt/omlanttlc.fd
%{_texmfdistdir}/tex/latex/antt/omsantt.fd
%{_texmfdistdir}/tex/latex/antt/omsanttc.fd
%{_texmfdistdir}/tex/latex/antt/omsanttl.fd
%{_texmfdistdir}/tex/latex/antt/omsanttlc.fd
%{_texmfdistdir}/tex/latex/antt/omxantt.fd
%{_texmfdistdir}/tex/latex/antt/omxanttc.fd
%{_texmfdistdir}/tex/latex/antt/omxanttl.fd
%{_texmfdistdir}/tex/latex/antt/omxanttlc.fd
%{_texmfdistdir}/tex/latex/antt/ot1antt.fd
%{_texmfdistdir}/tex/latex/antt/ot1anttc.fd
%{_texmfdistdir}/tex/latex/antt/ot1anttcm.fd
%{_texmfdistdir}/tex/latex/antt/ot1anttl.fd
%{_texmfdistdir}/tex/latex/antt/ot1anttlc.fd
%{_texmfdistdir}/tex/latex/antt/ot1anttlcm.fd
%{_texmfdistdir}/tex/latex/antt/ot1anttlm.fd
%{_texmfdistdir}/tex/latex/antt/ot1anttm.fd
%{_texmfdistdir}/tex/latex/antt/ot2antt.fd
%{_texmfdistdir}/tex/latex/antt/ot2anttc.fd
%{_texmfdistdir}/tex/latex/antt/ot2anttl.fd
%{_texmfdistdir}/tex/latex/antt/ot2anttlc.fd
%{_texmfdistdir}/tex/latex/antt/ot4antt.fd
%{_texmfdistdir}/tex/latex/antt/ot4anttc.fd
%{_texmfdistdir}/tex/latex/antt/ot4anttl.fd
%{_texmfdistdir}/tex/latex/antt/ot4anttlc.fd
%{_texmfdistdir}/tex/latex/antt/qxantt.fd
%{_texmfdistdir}/tex/latex/antt/qxanttc.fd
%{_texmfdistdir}/tex/latex/antt/qxanttl.fd
%{_texmfdistdir}/tex/latex/antt/qxanttlc.fd
%{_texmfdistdir}/tex/latex/antt/t1antt.fd
%{_texmfdistdir}/tex/latex/antt/t1anttc.fd
%{_texmfdistdir}/tex/latex/antt/t1anttl.fd
%{_texmfdistdir}/tex/latex/antt/t1anttlc.fd
%{_texmfdistdir}/tex/latex/antt/t2aantt.fd
%{_texmfdistdir}/tex/latex/antt/t2aanttc.fd
%{_texmfdistdir}/tex/latex/antt/t2aanttl.fd
%{_texmfdistdir}/tex/latex/antt/t2aanttlc.fd
%{_texmfdistdir}/tex/latex/antt/t2bantt.fd
%{_texmfdistdir}/tex/latex/antt/t2banttc.fd
%{_texmfdistdir}/tex/latex/antt/t2banttl.fd
%{_texmfdistdir}/tex/latex/antt/t2banttlc.fd
%{_texmfdistdir}/tex/latex/antt/t2cantt.fd
%{_texmfdistdir}/tex/latex/antt/t2canttc.fd
%{_texmfdistdir}/tex/latex/antt/t2canttl.fd
%{_texmfdistdir}/tex/latex/antt/t2canttlc.fd
%{_texmfdistdir}/tex/latex/antt/t5antt.fd
%{_texmfdistdir}/tex/latex/antt/t5anttc.fd
%{_texmfdistdir}/tex/latex/antt/t5anttl.fd
%{_texmfdistdir}/tex/latex/antt/t5anttlc.fd
%{_texmfdistdir}/tex/latex/antt/ts1antt.fd
%{_texmfdistdir}/tex/latex/antt/ts1anttc.fd
%{_texmfdistdir}/tex/latex/antt/ts1anttl.fd
%{_texmfdistdir}/tex/latex/antt/ts1anttlc.fd
%{_texmfdistdir}/tex/plain/antt/antt-math.tex
%doc %{_texmfdistdir}/doc/fonts/antt/AntykwaTorunska-doc-en-2_03.pdf
%doc %{_texmfdistdir}/doc/fonts/antt/AntykwaTorunska-doc-pl-2_03.pdf
%doc %{_texmfdistdir}/doc/fonts/antt/AntykwaTorunska-doc-src-2_03.zip
%doc %{_texmfdistdir}/doc/fonts/antt/GUST-FONT-NOSOURCE-LICENSE.txt
%doc %{_texmfdistdir}/doc/fonts/antt/MANIFEST.txt
%doc %{_texmfdistdir}/doc/fonts/antt/README
%doc %{_texmfdistdir}/doc/fonts/antt/antt-latex-cyr.tex
%doc %{_texmfdistdir}/doc/fonts/antt/antt-latex-math.tex
%doc %{_texmfdistdir}/doc/fonts/antt/antt-latex-pl.tex
%doc %{_texmfdistdir}/doc/fonts/antt/antt-latex-t2a.tex
%doc %{_texmfdistdir}/doc/fonts/antt/antt-latex-t5.tex
%doc %{_texmfdistdir}/doc/fonts/antt/antt-mathtest.tex
%doc %{_texmfdistdir}/doc/fonts/antt/antt-table.tex
%doc %{_texmfdistdir}/doc/latex/antt/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17636 |21mr|texlive-anufinalexam-20120417-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26053
# category Package
# catalog-ctan /macros/latex/contrib/anufinalexam/ANUfinalexam.tex
# catalog-date 2012-04-17 00:02:56 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-anufinalexam
Version:	20120417
Release:	6
Summary:	LaTeX document shell for ANU final exam
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/anufinalexam/ANUfinalexam.tex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/anufinalexam.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/anufinalexam.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This LaTeX document shell is created for the standard
formatting of final exams in The Australian National
University.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/anufinalexam/ANUfinalexam.tex
%doc %{_texmfdistdir}/doc/latex/anufinalexam/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17637 |21mr|texlive-anyfontsize-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17050
# category Package
# catalog-ctan /macros/latex/contrib/anyfontsize
# catalog-date 2010-02-15 00:07:58 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-anyfontsize
Version:	20190228
Release:	1
Summary:	Select any font size in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/anyfontsize
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/anyfontsize.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/anyfontsize.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the to user select any font size (via e.g.
\fontsize{...}{...}\selectfont), even those sizes that are not
listed in the .fd file. If such a size is requested, LaTeX will
search for and select the nearest listed size; anyfontsize will
then scale the font to the size actually requested. Similar
functionality is available for the CM family, for the EC
family, or for either computer modern encoding; the present
package generalises the facility.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/anyfontsize/anyfontsize.sty
%doc %{_texmfdistdir}/doc/latex/anyfontsize/README
%doc %{_texmfdistdir}/doc/latex/anyfontsize/anyfontsize.pdf
%doc %{_texmfdistdir}/doc/latex/anyfontsize/anyfontsize.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17638 |21mr|texlive-anysize-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/anysize
# catalog-date 2009-09-24 14:57:17 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-anysize
Version:	20190228
Release:	1
Summary:	A simple package to set up document margins
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/anysize
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/anysize.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/anysize.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is considered obsolete; alternatives are the
typearea package from the koma-script bundle, or the geometry
package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/anysize/anysize.sty
%doc %{_texmfdistdir}/doc/latex/anysize/README
%doc %{_texmfdistdir}/doc/latex/anysize/anysize.pdf
%doc %{_texmfdistdir}/doc/latex/anysize/anysize.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17639 |21mr|texlive-aobs-tikz-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32662
# category Package
# catalog-ctan /graphics/pgf/contrib/aobs-tikz
# catalog-date 2014-01-13 12:12:15 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-aobs-tikz
Version:	1.0
Release:	6
Summary:	TikZ styles for creating overlaid pictures in beamer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/aobs-tikz
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aobs-tikz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aobs-tikz.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aobs-tikz.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines auxiliary TikZ styles useful for overlaying
pictures' elements in Beamer. The TikZ styles are grouped in a
library, overlay-beamer-styles which is automatically called by
the package itself. Users may either load just aobs-tikz or the
library; the latter method necessitates TikZ manual load.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/aobs-tikz/tikzlibraryoverlay-beamer-styles.code.tex
%doc %{_texmfdistdir}/doc/latex/aobs-tikz/README
%doc %{_texmfdistdir}/doc/latex/aobs-tikz/aobs-tikz.pdf
%doc %{_texmfdistdir}/doc/latex/aobs-tikz/example.tex
#- source
%doc %{_texmfdistdir}/source/latex/aobs-tikz/aobs-tikz.dtx
%doc %{_texmfdistdir}/source/latex/aobs-tikz/aobs-tikz.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17640 |21mr|texlive-aomart-1.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-aomart
Version:	1.21
Release:	2
Summary:	Typeset articles for the Annals of Mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/aomart
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aomart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aomart.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aomart.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a class for typesetting articles for The
Annals of Mathematics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/aomart
%{_texmfdistdir}/tex/latex/aomart
%doc %{_texmfdistdir}/doc/latex/aomart
#- source
%doc %{_texmfdistdir}/source/latex/aomart

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17641 |21mr|texlive-apa-1.3.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/apa
# catalog-date 2008-12-23 16:23:48 +0100
# catalog-license lppl
# catalog-version 1.3.4
Name:		texlive-apa
Version:	1.3.4
Release:	7
Summary:	American Psychological Association format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/apa
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX class to format text according to the American
Psychological Association Publication Manual (5th ed.)
specifications for manuscripts or to the APA journal look found
in journals like the Journal of Experimental Psychology etc. In
addition, it provides regular LaTeX-like output with a few
enhancements and APA-motivated changes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/apa/apa.cls
%{_texmfdistdir}/tex/latex/apa/dutch.apa
%{_texmfdistdir}/tex/latex/apa/english.apa
%{_texmfdistdir}/tex/latex/apa/greek.apa
%doc %{_texmfdistdir}/doc/latex/apa/APAendfloat.cfg
%doc %{_texmfdistdir}/doc/latex/apa/CHANGELOG.txt
%doc %{_texmfdistdir}/doc/latex/apa/LICENCE
%doc %{_texmfdistdir}/doc/latex/apa/README
%doc %{_texmfdistdir}/doc/latex/apa/apacls.html
%doc %{_texmfdistdir}/doc/latex/apa/apacls.txt
%doc %{_texmfdistdir}/doc/latex/apa/apaenum.txt
%doc %{_texmfdistdir}/doc/latex/apa/apaexample.tex
%doc %{_texmfdistdir}/doc/latex/apa/examplebib.bib
%doc %{_texmfdistdir}/doc/latex/apa/examples.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17642 |21mr|texlive-apa6-2.33-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-apa6
Version:	2.33
Release:	1
Summary:	Format documents in APA style (6th edition)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/apa6
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apa6.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apa6.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apa6.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class formats documents in APA style (6th Edition). It
provides a full set of facilities in three different output
modes (journal-like appearance, double-spaced manuscript,
LaTeX-like document), in contrast to the earlier apa6e, which
only formats double-spaced manuscripts in APA style. The class
can mask author identity for copies for use in masked peer
review. Citations are provided using the apacite bundle; the
class requires that package if citations are to be typeset. The
class is a development of the apa class (which is no longer
maintained).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/apa6
%doc %{_texmfdistdir}/doc/latex/apa6
#- source
%doc %{_texmfdistdir}/source/latex/apa6

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17643 |21mr|texlive-apa6e-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23350
# category Package
# catalog-ctan /macros/latex/contrib/apa6e
# catalog-date 2011-07-03 10:15:22 +0200
# catalog-license other-free
# catalog-version 0.3
Name:		texlive-apa6e
Version:	0.3
Release:	7
Summary:	Format manuscripts to APA 6th edition guidelines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/apa6e
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apa6e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apa6e.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apa6e.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a minimalist class file for formatting manuscripts in
the style described in the American Psychological Association
(APA) 6th edition guidelines. Some day, the established (and
more capable) apa class will perhaps gain support for the 6th
edition of the APA guidelines, in which case users should
probably use it instead. But in the mean time, this class may
be useful.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/apa6e/apa6e.cls
%doc %{_texmfdistdir}/doc/latex/apa6e/README
%doc %{_texmfdistdir}/doc/latex/apa6e/apa6e.pdf
#- source
%doc %{_texmfdistdir}/source/latex/apa6e/apa6e.dtx
%doc %{_texmfdistdir}/source/latex/apa6e/apa6e.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17644 |21mr|texlive-appendix-1.2b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/appendix
# catalog-date 2009-09-02 11:33:10 +0200
# catalog-license lppl
# catalog-version 1.2b
Name:		texlive-appendix
Version:	1.2b
Release:	7
Summary:	Extra control of appendices
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/appendix
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/appendix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/appendix.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/appendix.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The appendix package provides various ways of formatting the
titles of appendices. Also (sub)appendices environments are
provided that can be used, for example, for per chapter/section
appendices. The word `Appendix' or similar can be prepended to
the appendix number for article class documents. The word
`Appendices' or similar can be added to the table of contents
before the appendices are listed. The word `Appendices' or
similar can be typeset as a \part-like heading (page) in the
body. An appendices environment is provided which can be used
instead of the \appendix command.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/appendix/appendix.sty
%doc %{_texmfdistdir}/doc/latex/appendix/README
%doc %{_texmfdistdir}/doc/latex/appendix/appendix.pdf
#- source
%doc %{_texmfdistdir}/source/latex/appendix/appendix.dtx
%doc %{_texmfdistdir}/source/latex/appendix/appendix.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17645 |21mr|texlive-appendixnumberbeamer-1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-appendixnumberbeamer
Version:	1.2
Epoch:		1
Release:	3
Summary:	Manage frame numbering in appendixes in beamer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/appendixnumberbeamer
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/appendixnumberbeamer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/appendixnumberbeamer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package arranges that an appendix in a beamer presentation
is not counted in the frame count of the presentation;
appendixes are numbered starting from one.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/appendixnumberbeamer
%doc %{_texmfdistdir}/doc/latex/appendixnumberbeamer

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17646 |21mr|texlive-apprends-latex-4.02-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19306
# category Package
# catalog-ctan /info/apprends-latex
# catalog-date 2010-07-09 10:38:38 +0200
# catalog-license lppl
# catalog-version 4.02
Name:		texlive-apprends-latex
Version:	4.02
Release:	6
Summary:	Apprends LaTeX!
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/apprends-latex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apprends-latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apprends-latex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Apprends LaTeX! ("Learn LaTeX", in English) is French
documentation for LaTeX beginners.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/apprends-latex/Apprends_LaTeX.pdf
%doc %{_texmfdistdir}/doc/latex/apprends-latex/Apprends_LaTeX.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/README
%doc %{_texmfdistdir}/doc/latex/apprends-latex/avance.bib
%doc %{_texmfdistdir}/doc/latex/apprends-latex/bibliographie-index.bib
%doc %{_texmfdistdir}/doc/latex/apprends-latex/divers.bib
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/Makefile
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/beamer-themes.pl
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/beamer-titlepage.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/currvita.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/curve-experience.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/curve-extra.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/curve-formation.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/curve-langues.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/curve-methodologies.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/curve-references.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/curve.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/letter.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/moderncv.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/polices.pl
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/scrlttr2.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/seraphin-lampion.jpg
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/slides.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/exemples/tikz.tex
%doc %{_texmfdistdir}/doc/latex/apprends-latex/graphisme.bib
%doc %{_texmfdistdir}/doc/latex/apprends-latex/index.ist
%doc %{_texmfdistdir}/doc/latex/apprends-latex/latex.bib
%doc %{_texmfdistdir}/doc/latex/apprends-latex/latexmkrc
%doc %{_texmfdistdir}/doc/latex/apprends-latex/typographie.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17647 |21mr|texlive-apptools-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28400
# category Package
# catalog-ctan /macros/latex/contrib/apptools
# catalog-date 2012-11-29 15:27:46 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-apptools
Version:	1.0
Release:	10
Summary:	Tools for customising appendices
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/apptools
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apptools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apptools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/apptools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an \AtAppendix command to add code to a
hook that is executed when \appendix is called by the user.
Additionally, a TeX conditional \ifappendix and a LaTeX-style
conditional \IfAppendix are provided to check if \appendix has
already been called.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/apptools/apptools.sty
%doc %{_texmfdistdir}/doc/latex/apptools/apptools-test.tex
%doc %{_texmfdistdir}/doc/latex/apptools/apptools.pdf
#- source
%doc %{_texmfdistdir}/source/latex/apptools/apptools.drv
%doc %{_texmfdistdir}/source/latex/apptools/apptools.dtx
%doc %{_texmfdistdir}/source/latex/apptools/apptools.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17648 |21mr|texlive-arabi-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25095
# category Package
# catalog-ctan /language/arabic/arabi
# catalog-date 2011-12-04 22:44:34 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-arabi
Version:	1.1
Release:	8
Summary:	(La)TeX support for Arabic and Farsi, compliant with Babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/arabic/arabi
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arabi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arabi.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the Arabic and Farsi script support for
TeX without the need of any external pre-processor, and in a
way that is compatible with babel. The bi-directional
capability supposes that the user has a TeX engine that knows
the four primitives \beginR, \endR, \beginL and \endL. That is
the case in both the TeX--XeT and e-TeX engines. Arabi will
accept input in several 8-bit encodings, including UTF-8. Arabi
can make use of a wide variety of Arabic and Farsi fonts; PDF
files generated using Arabi may be searched, and text may be
copied from them and pasted elsewhere.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/arabi/arabeyes/ae_almohanad_boldItalitalic.afm
%{_texmfdistdir}/fonts/afm/arabi/arabeyes/ae_almohanad_thin.afm
%{_texmfdistdir}/fonts/afm/arabi/arabeyes/ae_almohanad_xxbold.afm
%{_texmfdistdir}/fonts/enc/dvips/arabi/ararabeyes.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/ardtpnaskh.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/ardtpthuluth.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/armonotype.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/aromega.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/arsimplified.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/arunicode.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/farsitex.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/farsiwebencoding.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/frmonotype.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/frsimple.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/frsimplified.enc
%{_texmfdistdir}/fonts/enc/dvips/arabi/frunicode.enc
%{_texmfdistdir}/fonts/map/dvips/arabi/arabi.map
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/ae_almohanad_xxbold.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/ae_alyermook.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/ae_arab.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/ae_tholoth.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aealbattar.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aealmateen.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aealmohanadb.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aealmohanadbolditalic.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aealmothnna.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aealyermook.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aearab.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aecortoba.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aedimnah.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aefurat.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aegranada.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aegraph.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aehani.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aehor.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aekayrawan.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aekhalid.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aemashq.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aemetal.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aenada.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aenagham.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aenice.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aeostorah.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aeouhod.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aepetra.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aerehan.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aesalem.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aeshado.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aesharjah.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aesindibad.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aetarablus.tfm
%{_texmfdistdir}/fonts/tfm/arabi/arabeyes/aetholoth.tfm
%{_texmfdistdir}/fonts/tfm/arabi/farsiweb/homa.tfm
%{_texmfdistdir}/fonts/tfm/arabi/farsiweb/nazli.tfm
%{_texmfdistdir}/fonts/tfm/arabi/farsiweb/nazlib.tfm
%{_texmfdistdir}/fonts/tfm/arabi/farsiweb/nazlibout.tfm
%{_texmfdistdir}/fonts/tfm/arabi/farsiweb/nazliout.tfm
%{_texmfdistdir}/fonts/tfm/arabi/farsiweb/titr.tfm
%{_texmfdistdir}/fonts/tfm/arabi/farsiweb/titrout.tfm
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_albattar.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_almateen.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_almohanad_bold.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_almohanad_boldItalitalic.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_almohanad_thin.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_almohanad_xxbold.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_almothnna.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_alyermook.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_arab.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_cortoba.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_dimnah.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_furat.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_granada.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_graph.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_hani.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_hor.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_kayrawan.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_khalid.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_mashq.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_metal.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_nada.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_nagham.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_nice.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_ostorah.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_ouhod.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_petra.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_rehan.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_salem.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_shado.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_sharjah.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_sindibad.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_tarablus.pfb
%{_texmfdistdir}/fonts/type1/arabi/arabeyes/ae_tholoth.pfb
%{_texmfdistdir}/fonts/type1/arabi/farsiweb/homa.pfb
%{_texmfdistdir}/fonts/type1/arabi/farsiweb/nazli.pfb
%{_texmfdistdir}/fonts/type1/arabi/farsiweb/nazlib.pfb
%{_texmfdistdir}/fonts/type1/arabi/farsiweb/titr.pfb
%{_texmfdistdir}/tex/latex/arabi/8859-6.def
%{_texmfdistdir}/tex/latex/arabi/PPRarabic.sty
%{_texmfdistdir}/tex/latex/arabi/arabi4ht.cfg
%{_texmfdistdir}/tex/latex/arabi/arabic.cfg
%{_texmfdistdir}/tex/latex/arabi/arabic.ldf
%{_texmfdistdir}/tex/latex/arabi/arabicfnt.sty
%{_texmfdistdir}/tex/latex/arabi/arabicore.sty
%{_texmfdistdir}/tex/latex/arabi/arabiftoday.sty
%{_texmfdistdir}/tex/latex/arabi/arabnovowel.sty
%{_texmfdistdir}/tex/latex/arabi/arfonts.sty
%{_texmfdistdir}/tex/latex/arabi/calendrierfpar.sty
%{_texmfdistdir}/tex/latex/arabi/calendrierfpmodified.sty
%{_texmfdistdir}/tex/latex/arabi/cp1256.def
%{_texmfdistdir}/tex/latex/arabi/farsi.ldf
%{_texmfdistdir}/tex/latex/arabi/farsifnt.sty
%{_texmfdistdir}/tex/latex/arabi/fmultico.sty
%{_texmfdistdir}/tex/latex/arabi/fnum.sty
%{_texmfdistdir}/tex/latex/arabi/frfonts.sty
%{_texmfdistdir}/tex/latex/arabi/haparabica.sty
%{_texmfdistdir}/tex/latex/arabi/laeaealbattar.fd
%{_texmfdistdir}/tex/latex/arabi/laeaealmateen.fd
%{_texmfdistdir}/tex/latex/arabi/laeaealmohanadb.fd
%{_texmfdistdir}/tex/latex/arabi/laeaealmothnna.fd
%{_texmfdistdir}/tex/latex/arabi/laeaealyermook.fd
%{_texmfdistdir}/tex/latex/arabi/laeaearab.fd
%{_texmfdistdir}/tex/latex/arabi/laeaecortoba.fd
%{_texmfdistdir}/tex/latex/arabi/laeaedimnah.fd
%{_texmfdistdir}/tex/latex/arabi/laeaefurat.fd
%{_texmfdistdir}/tex/latex/arabi/laeaegranada.fd
%{_texmfdistdir}/tex/latex/arabi/laeaegraph.fd
%{_texmfdistdir}/tex/latex/arabi/laeaehani.fd
%{_texmfdistdir}/tex/latex/arabi/laeaehor.fd
%{_texmfdistdir}/tex/latex/arabi/laeaekayrawan.fd
%{_texmfdistdir}/tex/latex/arabi/laeaekhalid.fd
%{_texmfdistdir}/tex/latex/arabi/laeaemashq.fd
%{_texmfdistdir}/tex/latex/arabi/laeaemetal.fd
%{_texmfdistdir}/tex/latex/arabi/laeaenada.fd
%{_texmfdistdir}/tex/latex/arabi/laeaenagham.fd
%{_texmfdistdir}/tex/latex/arabi/laeaenice.fd
%{_texmfdistdir}/tex/latex/arabi/laeaeostorah.fd
%{_texmfdistdir}/tex/latex/arabi/laeaeouhod.fd
%{_texmfdistdir}/tex/latex/arabi/laeaepetra.fd
%{_texmfdistdir}/tex/latex/arabi/laeaerehan.fd
%{_texmfdistdir}/tex/latex/arabi/laeaesalem.fd
%{_texmfdistdir}/tex/latex/arabi/laeaeshado.fd
%{_texmfdistdir}/tex/latex/arabi/laeaesharjah.fd
%{_texmfdistdir}/tex/latex/arabi/laeaesindibad.fd
%{_texmfdistdir}/tex/latex/arabi/laeaetarablus.fd
%{_texmfdistdir}/tex/latex/arabi/laeaetholoth.fd
%{_texmfdistdir}/tex/latex/arabi/laeandlso.fd
%{_texmfdistdir}/tex/latex/arabi/laeararial.fd
%{_texmfdistdir}/tex/latex/arabi/laearcour.fd
%{_texmfdistdir}/tex/latex/arabi/laearomega.fd
%{_texmfdistdir}/tex/latex/arabi/laearsimpo.fd
%{_texmfdistdir}/tex/latex/arabi/laeartimes.fd
%{_texmfdistdir}/tex/latex/arabi/laeasv.fd
%{_texmfdistdir}/tex/latex/arabi/laecmr.fd
%{_texmfdistdir}/tex/latex/arabi/laecmss.fd
%{_texmfdistdir}/tex/latex/arabi/laecmtt.fd
%{_texmfdistdir}/tex/latex/arabi/laedthuluth.fd
%{_texmfdistdir}/tex/latex/arabi/laedtpn.fd
%{_texmfdistdir}/tex/latex/arabi/laedtpnsp.fd
%{_texmfdistdir}/tex/latex/arabi/laeenc.def
%{_texmfdistdir}/tex/latex/arabi/laeenc.dfu
%{_texmfdistdir}/tex/latex/arabi/laekacstbook.fd
%{_texmfdistdir}/tex/latex/arabi/laemaghribi.fd
%{_texmfdistdir}/tex/latex/arabi/laenaskhi.fd
%{_texmfdistdir}/tex/latex/arabi/laereqaa.fd
%{_texmfdistdir}/tex/latex/arabi/laetraditionalarabic.fd
%{_texmfdistdir}/tex/latex/arabi/lagally.sty
%{_texmfdistdir}/tex/latex/arabi/lfecmr.fd
%{_texmfdistdir}/tex/latex/arabi/lfecmss.fd
%{_texmfdistdir}/tex/latex/arabi/lfecmtt.fd
%{_texmfdistdir}/tex/latex/arabi/lfeelham.fd
%{_texmfdistdir}/tex/latex/arabi/lfeenc.def
%{_texmfdistdir}/tex/latex/arabi/lfefandlso.fd
%{_texmfdistdir}/tex/latex/arabi/lfefarsismpl.fd
%{_texmfdistdir}/tex/latex/arabi/lfefrarial.fd
%{_texmfdistdir}/tex/latex/arabi/lfefrtimes.fd
%{_texmfdistdir}/tex/latex/arabi/lfeftraditionalarabic.fd
%{_texmfdistdir}/tex/latex/arabi/lfehoma.fd
%{_texmfdistdir}/tex/latex/arabi/lfekoodak.fd
%{_texmfdistdir}/tex/latex/arabi/lfenazli.fd
%{_texmfdistdir}/tex/latex/arabi/lfenazliout.fd
%{_texmfdistdir}/tex/latex/arabi/lferoya.fd
%{_texmfdistdir}/tex/latex/arabi/lfesmplarabic.fd
%{_texmfdistdir}/tex/latex/arabi/lfeterafik.fd
%{_texmfdistdir}/tex/latex/arabi/lfetitr.fd
%{_texmfdistdir}/tex/latex/arabi/lfetitrout.fd
%{_texmfdistdir}/tex/latex/arabi/mosq.def
%{_texmfdistdir}/tex/latex/arabi/poetry.sty
%{_texmfdistdir}/tex/latex/arabi/puenc-ar.def
%{_texmfdistdir}/tex/latex/arabi/transcmr.fd
%{_texmfdistdir}/tex/latex/arabi/translit.sty
%doc %{_texmfdistdir}/doc/latex/arabi/README
%doc %{_texmfdistdir}/doc/latex/arabi/bblopts.cfg
%doc %{_texmfdistdir}/doc/latex/arabi/big2.pdf
%doc %{_texmfdistdir}/doc/latex/arabi/big2.tex
%doc %{_texmfdistdir}/doc/latex/arabi/fontchart_arabic.pdf
%doc %{_texmfdistdir}/doc/latex/arabi/fontchart_farsi.pdf
%doc %{_texmfdistdir}/doc/latex/arabi/lion.pdf
%doc %{_texmfdistdir}/doc/latex/arabi/lppl.tex
%doc %{_texmfdistdir}/doc/latex/arabi/samplebook.css
%doc %{_texmfdistdir}/doc/latex/arabi/samplebook.html
%doc %{_texmfdistdir}/doc/latex/arabi/samplebook.pdf
%doc %{_texmfdistdir}/doc/latex/arabi/samplebook.tex
%doc %{_texmfdistdir}/doc/latex/arabi/test_beamer.pdf
%doc %{_texmfdistdir}/doc/latex/arabi/testplaintex.pdf
%doc %{_texmfdistdir}/doc/latex/arabi/testplaintex.tex
%doc %{_texmfdistdir}/doc/latex/arabi/user_guide.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17649 |21mr|texlive-arabtex-3.17-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25711
# category Package
# catalog-ctan /language/arabic/arabtex
# catalog-date 2012-03-20 14:44:41 +0100
# catalog-license lppl
# catalog-version 3.17 
Name:		texlive-arabtex
Version:	3.17
Release:	6
Summary:	Macros and fonts for typesetting Arabic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/arabic/arabtex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arabtex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arabtex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
ArabTeX is a package extending the capabilities of TeX/LaTeX to
generate Arabic and Hebrew text. Input may be in ASCII
transliteration or other encodings (including UTF-8); output
may be Arabic, Hebrew, or any of several languages that use the
Arabic script. ArabTeX consists of a TeX macro package and
Arabic and Hebrew fonts (provided both in Metafont format and
Adobe Type 1). The Arabic font is presently only available in
the Naskhi style. ArabTeX will run with Plain TeX and also with
LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/arabtex/arabtex.map
%{_texmfdistdir}/fonts/source/public/arabtex/arabsymb.mf
%{_texmfdistdir}/fonts/source/public/arabtex/hcaption.mf
%{_texmfdistdir}/fonts/source/public/arabtex/hcbase.mf
%{_texmfdistdir}/fonts/source/public/arabtex/hclassic.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nash.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nash14.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nash14bf.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nashbase.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nashchar.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nashdia.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nashdig.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nashlig.mf
%{_texmfdistdir}/fonts/source/public/arabtex/nashspec.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xarbsymb.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnsh.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnsh14.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnsh14bf.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnshbase.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnshchar.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnshdia.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnshdig.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnshlig.mf
%{_texmfdistdir}/fonts/source/public/arabtex/xnshspec.mf
%{_texmfdistdir}/fonts/tfm/public/arabtex/hcaption.tfm
%{_texmfdistdir}/fonts/tfm/public/arabtex/hclassic.tfm
%{_texmfdistdir}/fonts/tfm/public/arabtex/nash14.tfm
%{_texmfdistdir}/fonts/tfm/public/arabtex/nash14bf.tfm
%{_texmfdistdir}/fonts/tfm/public/arabtex/xnsh14.tfm
%{_texmfdistdir}/fonts/tfm/public/arabtex/xnsh14bf.tfm
%{_texmfdistdir}/fonts/tfm/public/arabtex/yarborn.tfm
%{_texmfdistdir}/fonts/type1/public/arabtex/hcaption-4.pfb
%{_texmfdistdir}/fonts/type1/public/arabtex/hclassic-4.pfb
%{_texmfdistdir}/fonts/type1/public/arabtex/xnsh14.pfb
%{_texmfdistdir}/fonts/type1/public/arabtex/xnsh14bf.pfb
%{_texmfdistdir}/tex/latex/arabtex/Uxnsh.fd
%{_texmfdistdir}/tex/latex/arabtex/abidir.sty
%{_texmfdistdir}/tex/latex/arabtex/abjad.sty
%{_texmfdistdir}/tex/latex/arabtex/aboxes.sty
%{_texmfdistdir}/tex/latex/arabtex/acjk.sty
%{_texmfdistdir}/tex/latex/arabtex/acmd.sty
%{_texmfdistdir}/tex/latex/arabtex/aconfig.sty
%{_texmfdistdir}/tex/latex/arabtex/aedpatch.sty
%{_texmfdistdir}/tex/latex/arabtex/afonts.sty
%{_texmfdistdir}/tex/latex/arabtex/afonts0.sty
%{_texmfdistdir}/tex/latex/arabtex/afonts1.sty
%{_texmfdistdir}/tex/latex/arabtex/afonts2.sty
%{_texmfdistdir}/tex/latex/arabtex/afoot.sty
%{_texmfdistdir}/tex/latex/arabtex/alatex.sty
%{_texmfdistdir}/tex/latex/arabtex/aligs.sty
%{_texmfdistdir}/tex/latex/arabtex/alists.sty
%{_texmfdistdir}/tex/latex/arabtex/alocal.sty
%{_texmfdistdir}/tex/latex/arabtex/altxext.sty
%{_texmfdistdir}/tex/latex/arabtex/amac.sty
%{_texmfdistdir}/tex/latex/arabtex/aoutput.sty
%{_texmfdistdir}/tex/latex/arabtex/aparse.sty
%{_texmfdistdir}/tex/latex/arabtex/apatch.sty
%{_texmfdistdir}/tex/latex/arabtex/arababel.sty
%{_texmfdistdir}/tex/latex/arabtex/arabart.cls
%{_texmfdistdir}/tex/latex/arabtex/arabaux.sty
%{_texmfdistdir}/tex/latex/arabtex/arabbook.cls
%{_texmfdistdir}/tex/latex/arabtex/arabchrs.sty
%{_texmfdistdir}/tex/latex/arabtex/arabext.sty
%{_texmfdistdir}/tex/latex/arabtex/arabrep.cls
%{_texmfdistdir}/tex/latex/arabtex/arabrep1.cls
%{_texmfdistdir}/tex/latex/arabtex/arabskel.sty
%{_texmfdistdir}/tex/latex/arabtex/arabsymb.sty
%{_texmfdistdir}/tex/latex/arabtex/arabtex-doc.tex
%{_texmfdistdir}/tex/latex/arabtex/arabtex.sty
%{_texmfdistdir}/tex/latex/arabtex/arabtex.tex
%{_texmfdistdir}/tex/latex/arabtex/arabtoks.sty
%{_texmfdistdir}/tex/latex/arabtex/arwindoc.tex
%{_texmfdistdir}/tex/latex/arabtex/ascan.sty
%{_texmfdistdir}/tex/latex/arabtex/asect.sty
%{_texmfdistdir}/tex/latex/arabtex/asize10.clo
%{_texmfdistdir}/tex/latex/arabtex/asize11.clo
%{_texmfdistdir}/tex/latex/arabtex/asize12.clo
%{_texmfdistdir}/tex/latex/arabtex/asmo449.sty
%{_texmfdistdir}/tex/latex/arabtex/asmo449a.sty
%{_texmfdistdir}/tex/latex/arabtex/atabg.sty
%{_texmfdistdir}/tex/latex/arabtex/atrans.sty
%{_texmfdistdir}/tex/latex/arabtex/awrite.sty
%{_texmfdistdir}/tex/latex/arabtex/bhs.sty
%{_texmfdistdir}/tex/latex/arabtex/bhslabel.sty
%{_texmfdistdir}/tex/latex/arabtex/buck.sty
%{_texmfdistdir}/tex/latex/arabtex/captions.def
%{_texmfdistdir}/tex/latex/arabtex/cp1256.sty
%{_texmfdistdir}/tex/latex/arabtex/etrans.sty
%{_texmfdistdir}/tex/latex/arabtex/gedalin.sty
%{_texmfdistdir}/tex/latex/arabtex/guha.tex
%{_texmfdistdir}/tex/latex/arabtex/hebchrs.sty
%{_texmfdistdir}/tex/latex/arabtex/hebsymb.sty
%{_texmfdistdir}/tex/latex/arabtex/hebtex.sty
%{_texmfdistdir}/tex/latex/arabtex/hebtex.tex
%{_texmfdistdir}/tex/latex/arabtex/hecmd.sty
%{_texmfdistdir}/tex/latex/arabtex/hefonts.sty
%{_texmfdistdir}/tex/latex/arabtex/hefonts0.sty
%{_texmfdistdir}/tex/latex/arabtex/hefonts1.sty
%{_texmfdistdir}/tex/latex/arabtex/hefonts2.sty
%{_texmfdistdir}/tex/latex/arabtex/heparse.sty
%{_texmfdistdir}/tex/latex/arabtex/hepatch.sty
%{_texmfdistdir}/tex/latex/arabtex/hescan.sty
%{_texmfdistdir}/tex/latex/arabtex/hetrans.sty
%{_texmfdistdir}/tex/latex/arabtex/hewrite.sty
%{_texmfdistdir}/tex/latex/arabtex/hmac.sty
%{_texmfdistdir}/tex/latex/arabtex/isiri.sty
%{_texmfdistdir}/tex/latex/arabtex/iso88596.sty
%{_texmfdistdir}/tex/latex/arabtex/kashmiri.tex
%{_texmfdistdir}/tex/latex/arabtex/ligtable.tex
%{_texmfdistdir}/tex/latex/arabtex/malay.tex
%{_texmfdistdir}/tex/latex/arabtex/nashbf.sty
%{_texmfdistdir}/tex/latex/arabtex/omar.tex
%{_texmfdistdir}/tex/latex/arabtex/raw.sty
%{_texmfdistdir}/tex/latex/arabtex/saw.sty
%{_texmfdistdir}/tex/latex/arabtex/sindhi.tex
%{_texmfdistdir}/tex/latex/arabtex/sotoku.sty
%{_texmfdistdir}/tex/latex/arabtex/twoblks.sty
%{_texmfdistdir}/tex/latex/arabtex/uheb.fd
%{_texmfdistdir}/tex/latex/arabtex/uighur.tex
%{_texmfdistdir}/tex/latex/arabtex/unash.fd
%{_texmfdistdir}/tex/latex/arabtex/utf8.sty
%{_texmfdistdir}/tex/latex/arabtex/utfcode.sty
%{_texmfdistdir}/tex/latex/arabtex/verses.sty
%{_texmfdistdir}/tex/latex/arabtex/witbhs.sty
%{_texmfdistdir}/tex/latex/arabtex/xarbskel.sty
%{_texmfdistdir}/tex/latex/arabtex/xarbsymb.sty
%{_texmfdistdir}/tex/latex/arabtex/yiddish.sty
%doc %{_texmfdistdir}/doc/latex/arabtex/announce.txt
%doc %{_texmfdistdir}/doc/latex/arabtex/arabtex-doc.pdf
%doc %{_texmfdistdir}/doc/latex/arabtex/arabtex.doc
%doc %{_texmfdistdir}/doc/latex/arabtex/arabtex.faq
%doc %{_texmfdistdir}/doc/latex/arabtex/arabtex.gif
%doc %{_texmfdistdir}/doc/latex/arabtex/arabtex.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/arabtex1.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/arabtex2.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/changes.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/changes.txt
%doc %{_texmfdistdir}/doc/latex/arabtex/changes2.txt
%doc %{_texmfdistdir}/doc/latex/arabtex/chg311.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/chg311a.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/chg311b.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/chg311c.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/chg311d.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/guha.ps
%doc %{_texmfdistdir}/doc/latex/arabtex/hebrew.305
%doc %{_texmfdistdir}/doc/latex/arabtex/install.txt
%doc %{_texmfdistdir}/doc/latex/arabtex/lppl.txt
%doc %{_texmfdistdir}/doc/latex/arabtex/malay.ps
%doc %{_texmfdistdir}/doc/latex/arabtex/manifest.txt
%doc %{_texmfdistdir}/doc/latex/arabtex/miktex.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/miktex.mai
%doc %{_texmfdistdir}/doc/latex/arabtex/new1.gif
%doc %{_texmfdistdir}/doc/latex/arabtex/new2.gif
%doc %{_texmfdistdir}/doc/latex/arabtex/readme.305
%doc %{_texmfdistdir}/doc/latex/arabtex/readme.txt
%doc %{_texmfdistdir}/doc/latex/arabtex/refer.htm
%doc %{_texmfdistdir}/doc/latex/arabtex/sindhi.ps
%doc %{_texmfdistdir}/doc/latex/arabtex/tetex.txt
%doc %{_texmfdistdir}/doc/latex/arabtex/uighur.ps
%doc %{_texmfdistdir}/doc/latex/arabtex/xarbsymb.dat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17650 |21mr|texlive-arabxetex-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17470
# category Package
# catalog-ctan /macros/xetex/latex/arabxetex
# catalog-date 2010-03-06 08:51:23 +0100
# catalog-license lppl
# catalog-version v1.1.4
Name:		texlive-arabxetex
Version:	1.2.1
Release:	1
Summary:	An ArabTeX-like interface for XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/arabxetex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arabxetex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arabxetex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arabxetex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
ArabXeTeX provides a convenient ArabTeX-like user-interface for
typesetting languages using the Arabic script in XeLaTeX, with
flexible access to font features. Input in ArabTeX notation can
be set in three different vocalization modes or in roman
transliteration. Direct UTF-8 input is also supported. The
parsing and converting of ArabTeX input to Unicode is done by
means of TECkit mappings. Version 1.0 provides support for
Arabic, Maghribi Arabic, Farsi (Persian), Urdu, Sindhi,
Kashmiri, Ottoman Turkish, Kurdish, Jawi (Malay) and Uighur.
The documentation (not yet complete) covers topics such as
typesetting the Holy Quran, typesetting bidirectional critical
editions (with ednotes), and information on various recommended
OpenType fonts for the Arabic script and for transliterating
Oriental languages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/arabxetex
%{_texmfdistdir}/tex/xelatex/arabxetex/arabxetex.sty
%doc %{_texmfdistdir}/doc/xelatex/arabxetex
#- source
%doc %{_texmfdistdir}/source/xelatex/arabxetex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17651 |21mr|texlive-aramaic-serto-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30042
# category Package
# catalog-ctan /language/aramaic/serto
# catalog-date 2013-04-18 13:30:17 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-aramaic-serto
Version:	1.0
Release:	10
Summary:	Fonts and LaTeX for Syriac written in Serto
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/aramaic/serto
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aramaic-serto.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aramaic-serto.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package enables (La)TeX users to typeset words or phrases
(e-tex extensions are needed) in Syriac (Aramaic) using the
Serto-alphabet. The package includes a preprocessor written in
Python (>= 1.5.2) in order to deal with right-to-left
typesetting for those who do not want to use elatex and to
choose the correct letter depending on word context
(initial/medial/final form). Detailed documentation and
examples are included.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/aramaic-serto/assy.afm
%{_texmfdistdir}/fonts/afm/public/aramaic-serto/assyrb10.afm
%{_texmfdistdir}/fonts/afm/public/aramaic-serto/serto10.afm
%{_texmfdistdir}/fonts/afm/public/aramaic-serto/sertob10.afm
%{_texmfdistdir}/fonts/map/dvips/aramaic-serto/syriac.map
%{_texmfdistdir}/fonts/source/public/aramaic-serto/assy.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/assyrb10.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/assyrfont.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/serto.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/serto10.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/sertob10.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/sertobase.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/sertofont.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/sertomacros.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/syriacvowels.mf
%{_texmfdistdir}/fonts/source/public/aramaic-serto/test.mf
%{_texmfdistdir}/fonts/tfm/public/aramaic-serto/assy.tfm
%{_texmfdistdir}/fonts/tfm/public/aramaic-serto/assyrb10.tfm
%{_texmfdistdir}/fonts/tfm/public/aramaic-serto/serto10.tfm
%{_texmfdistdir}/fonts/tfm/public/aramaic-serto/sertob10.tfm
%{_texmfdistdir}/fonts/type1/public/aramaic-serto/assy.pfb
%{_texmfdistdir}/fonts/type1/public/aramaic-serto/assyrb10.pfb
%{_texmfdistdir}/fonts/type1/public/aramaic-serto/serto10.pfb
%{_texmfdistdir}/fonts/type1/public/aramaic-serto/sertob10.pfb
%{_texmfdistdir}/tex/latex/aramaic-serto/assyr.sty
%{_texmfdistdir}/tex/latex/aramaic-serto/serto.sty
%{_texmfdistdir}/tex/latex/aramaic-serto/syriac.sty
%{_texmfdistdir}/tex/latex/aramaic-serto/uassyr.fd
%{_texmfdistdir}/tex/latex/aramaic-serto/userto.fd
%doc %{_texmfdistdir}/doc/latex/aramaic-serto/README
%doc %{_texmfdistdir}/doc/latex/aramaic-serto/assyr.font
%doc %{_texmfdistdir}/doc/latex/aramaic-serto/example.ptex
%doc %{_texmfdistdir}/doc/latex/aramaic-serto/serto.font
%doc %{_texmfdistdir}/doc/latex/aramaic-serto/serto.py
%doc %{_texmfdistdir}/doc/latex/aramaic-serto/sertodoc.pdf
%doc %{_texmfdistdir}/doc/latex/aramaic-serto/sertodoc.ptex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17652 |21mr|texlive-arcs-2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/arcs
# catalog-date 2006-10-12 15:06:10 +0200
# catalog-license lppl
# catalog-version 1
Name:		texlive-arcs
Version:	2
Release:	7
Summary:	Draw arcs over and under text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/arcs
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arcs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arcs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arcs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides two commands for placing an arc over
(\overarc) or under (\underarc) a piece of text. (The text may
be up to three letters long.) The commands generate an \hbox,
and may be used both in text and in maths formulae.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/arcs/arcs.sty
%doc %{_texmfdistdir}/doc/latex/arcs/README
%doc %{_texmfdistdir}/doc/latex/arcs/arcs.pdf
%doc %{_texmfdistdir}/doc/latex/arcs/arcstest.tex
#- source
%doc %{_texmfdistdir}/source/latex/arcs/arcs.dtx
%doc %{_texmfdistdir}/source/latex/arcs/arcs.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17653 |21mr|texlive-around-the-bend-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/challenges/AroBend
# catalog-date 2009-11-09 13:03:38 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-around-the-bend
Version:	20190228
Release:	1
Summary:	Typeset exercises in TeX, with answers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/challenges/AroBend
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/around-the-bend.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/around-the-bend.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a typeset version of the files of the aro-bend, plus
three extra questions (with their answers) that Michael Downes
didn't manage to get onto CTAN.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/around-the-bend/AroundTheBend.pdf
%doc %{_texmfdistdir}/doc/generic/around-the-bend/AroundTheBend.tex
%doc %{_texmfdistdir}/doc/generic/around-the-bend/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17654 |21mr|texlive-arphic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/arphic
# catalog-date 2007-05-25 18:39:01 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-arphic
Version:	20190228
Release:	1
Summary:	Arphic (Chinese) font packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/arphic
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arphic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arphic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
These are font bundles for the Chinese Arphic fonts which work
with the CJK package. Arphic is actually the name of the
company that which created the fonts (and put them under a GPL-
like licence).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/arphic/config.bkaiu
%{_texmfdistdir}/dvips/arphic/config.bsmiu
%{_texmfdistdir}/dvips/arphic/config.gbsnu
%{_texmfdistdir}/dvips/arphic/config.gkaiu
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu00.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu02.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu03.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu20.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu21.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu22.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu25.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu26.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu30.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu31.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu32.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu33.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu4e.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu4f.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu50.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu51.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu52.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu53.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu54.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu55.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu56.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu57.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu58.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu59.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu5a.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu5b.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu5c.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu5d.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu5e.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu5f.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu60.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu61.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu62.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu63.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu64.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu65.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu66.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu67.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu68.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu69.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu6a.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu6b.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu6c.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu6d.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu6e.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu6f.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu70.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu71.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu72.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu73.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu74.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu75.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu76.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu77.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu78.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu79.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu7a.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu7b.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu7c.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu7d.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu7e.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu7f.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu80.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu81.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu82.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu83.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu84.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu85.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu86.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu87.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu88.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu89.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu8a.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu8b.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu8c.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu8d.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu8e.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu8f.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu90.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu91.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu92.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu93.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu94.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu95.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu96.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu97.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu98.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu99.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu9a.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu9b.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu9c.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu9d.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu9e.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiu9f.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiuee.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiuf6.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiuf7.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiuf8.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiufa.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiufe.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiuff.afm
%{_texmfdistdir}/fonts/afm/arphic/bkaiu/bkaiuv.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu00.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu02.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu03.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu20.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu21.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu22.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu25.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu26.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu30.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu31.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu32.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu33.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu4e.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu4f.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu50.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu51.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu52.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu53.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu54.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu55.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu56.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu57.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu58.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu59.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu5a.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu5b.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu5c.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu5d.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu5e.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu5f.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu60.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu61.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu62.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu63.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu64.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu65.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu66.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu67.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu68.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu69.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu6a.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu6b.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu6c.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu6d.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu6e.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu6f.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu70.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu71.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu72.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu73.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu74.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu75.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu76.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu77.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu78.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu79.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu7a.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu7b.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu7c.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu7d.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu7e.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu7f.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu80.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu81.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu82.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu83.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu84.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu85.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu86.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu87.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu88.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu89.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu8a.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu8b.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu8c.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu8d.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu8e.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu8f.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu90.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu91.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu92.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu93.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu94.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu95.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu96.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu97.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu98.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu99.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu9a.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu9b.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu9c.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu9d.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu9e.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiu9f.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiuee.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiuf6.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiuf7.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiuf8.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiufa.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiufe.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiuff.afm
%{_texmfdistdir}/fonts/afm/arphic/bsmiu/bsmiuv.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu00.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu01.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu02.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu03.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu04.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu20.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu21.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu22.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu23.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu24.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu25.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu26.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu30.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu31.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu32.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu4e.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu4f.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu50.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu51.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu52.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu53.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu54.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu55.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu56.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu57.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu58.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu59.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu5a.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu5b.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu5c.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu5d.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu5e.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu5f.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu60.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu61.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu62.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu63.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu64.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu65.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu66.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu67.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu68.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu69.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu6a.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu6b.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu6c.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu6d.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu6e.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu6f.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu70.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu71.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu72.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu73.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu74.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu75.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu76.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu77.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu78.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu79.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu7a.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu7b.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu7c.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu7d.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu7e.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu7f.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu80.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu81.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu82.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu83.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu84.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu85.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu86.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu87.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu88.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu89.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu8a.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu8b.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu8c.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu8d.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu8e.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu8f.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu90.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu91.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu92.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu93.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu94.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu95.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu96.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu97.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu98.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu99.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu9a.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu9b.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu9c.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu9e.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnu9f.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnufe.afm
%{_texmfdistdir}/fonts/afm/arphic/gbsnu/gbsnuff.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu00.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu01.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu02.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu03.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu04.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu20.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu21.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu22.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu23.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu24.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu25.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu26.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu30.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu31.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu32.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu4e.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu4f.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu50.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu51.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu52.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu53.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu54.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu55.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu56.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu57.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu58.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu59.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu5a.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu5b.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu5c.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu5d.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu5e.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu5f.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu60.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu61.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu62.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu63.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu64.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu65.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu66.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu67.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu68.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu69.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu6a.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu6b.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu6c.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu6d.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu6e.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu6f.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu70.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu71.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu72.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu73.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu74.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu75.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu76.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu77.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu78.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu79.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu7a.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu7b.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu7c.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu7d.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu7e.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu7f.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu80.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu81.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu82.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu83.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu84.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu85.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu86.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu87.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu88.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu89.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu8a.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu8b.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu8c.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu8d.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu8e.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu8f.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu90.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu91.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu92.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu93.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu94.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu95.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu96.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu97.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu98.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu99.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu9a.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu9b.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu9c.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu9e.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiu9f.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiufe.afm
%{_texmfdistdir}/fonts/afm/arphic/gkaiu/gkaiuff.afm
%{_texmfdistdir}/fonts/map/dvips/arphic/bkaiu.map
%{_texmfdistdir}/fonts/map/dvips/arphic/bsmiu.map
%{_texmfdistdir}/fonts/map/dvips/arphic/gbsnu.map
%{_texmfdistdir}/fonts/map/dvips/arphic/gkaiu.map
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp00.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp01.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp02.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp03.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp04.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp05.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp06.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp07.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp08.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp09.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp10.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp11.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp12.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp13.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp14.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp15.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp16.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp17.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp18.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp19.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp20.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp21.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp22.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp23.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp25.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp26.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp27.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp28.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp29.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp30.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp31.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp32.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp33.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp34.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp35.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp36.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp37.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp38.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp39.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp40.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp41.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp42.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp43.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp44.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp45.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp46.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp47.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp48.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp49.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp50.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp51.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp52.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp53.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp54.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimp55.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaimp/bkaimpv.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu00.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu02.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu03.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu20.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu21.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu22.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu25.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu26.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu30.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu31.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu32.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu33.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu4e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu4f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu50.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu51.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu52.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu53.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu54.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu55.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu56.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu57.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu58.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu59.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu5a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu5b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu5c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu5d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu5e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu5f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu60.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu61.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu62.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu63.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu64.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu65.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu66.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu67.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu68.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu69.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu6a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu6b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu6c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu6d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu6e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu6f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu70.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu71.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu72.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu73.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu74.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu75.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu76.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu77.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu78.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu79.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu7a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu7b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu7c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu7d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu7e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu7f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu80.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu81.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu82.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu83.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu84.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu85.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu86.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu87.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu88.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu89.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu8a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu8b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu8c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu8d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu8e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu8f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu90.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu91.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu92.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu93.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu94.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu95.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu96.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu97.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu98.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu99.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu9a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu9b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu9c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu9d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu9e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiu9f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiuee.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiuf6.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiuf7.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiuf8.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiufa.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiufe.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiuff.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bkaiu/bkaiuv.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp00.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp01.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp02.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp03.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp04.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp05.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp06.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp07.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp08.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp09.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp10.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp11.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp12.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp13.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp14.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp15.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp16.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp17.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp18.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp19.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp20.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp21.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp22.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp23.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp25.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp26.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp27.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp28.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp29.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp30.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp31.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp32.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp33.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp34.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp35.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp36.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp37.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp38.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp39.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp40.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp41.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp42.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp43.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp44.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp45.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp46.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp47.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp48.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp49.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp50.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp51.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp52.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp53.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp54.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilp55.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmilp/bsmilpv.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu00.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu02.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu03.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu20.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu21.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu22.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu25.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu26.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu30.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu31.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu32.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu33.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu4e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu4f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu50.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu51.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu52.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu53.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu54.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu55.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu56.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu57.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu58.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu59.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu5a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu5b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu5c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu5d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu5e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu5f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu60.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu61.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu62.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu63.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu64.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu65.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu66.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu67.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu68.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu69.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu6a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu6b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu6c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu6d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu6e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu6f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu70.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu71.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu72.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu73.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu74.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu75.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu76.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu77.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu78.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu79.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu7a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu7b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu7c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu7d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu7e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu7f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu80.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu81.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu82.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu83.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu84.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu85.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu86.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu87.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu88.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu89.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu8a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu8b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu8c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu8d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu8e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu8f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu90.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu91.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu92.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu93.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu94.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu95.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu96.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu97.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu98.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu99.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu9a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu9b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu9c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu9d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu9e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiu9f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiuee.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiuf6.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiuf7.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiuf8.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiufa.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiufe.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiuff.tfm
%{_texmfdistdir}/fonts/tfm/arphic/bsmiu/bsmiuv.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp00.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp01.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp02.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp03.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp04.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp06.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp07.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp08.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp09.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp10.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp11.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp12.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp13.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp14.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp15.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp16.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp17.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp18.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp19.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp20.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp21.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp22.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp23.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp24.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp25.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp26.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp27.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp28.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp29.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp30.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp31.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnlp/gbsnlp32.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu00.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu01.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu02.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu03.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu04.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu20.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu21.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu22.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu23.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu24.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu25.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu26.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu30.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu31.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu32.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu4e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu4f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu50.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu51.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu52.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu53.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu54.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu55.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu56.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu57.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu58.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu59.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu5a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu5b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu5c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu5d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu5e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu5f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu60.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu61.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu62.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu63.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu64.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu65.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu66.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu67.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu68.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu69.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu6a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu6b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu6c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu6d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu6e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu6f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu70.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu71.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu72.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu73.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu74.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu75.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu76.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu77.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu78.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu79.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu7a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu7b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu7c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu7d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu7e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu7f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu80.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu81.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu82.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu83.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu84.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu85.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu86.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu87.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu88.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu89.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu8a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu8b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu8c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu8d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu8e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu8f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu90.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu91.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu92.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu93.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu94.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu95.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu96.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu97.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu98.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu99.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu9a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu9b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu9c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu9e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnu9f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnufe.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gbsnu/gbsnuff.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp00.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp01.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp02.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp03.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp04.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp06.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp07.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp08.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp09.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp10.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp11.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp12.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp13.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp14.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp15.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp16.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp17.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp18.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp19.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp20.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp21.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp22.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp23.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp24.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp25.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp26.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp27.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp28.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp29.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp30.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp31.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaimp/gkaimp32.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu00.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu01.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu02.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu03.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu04.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu20.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu21.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu22.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu23.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu24.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu25.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu26.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu30.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu31.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu32.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu4e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu4f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu50.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu51.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu52.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu53.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu54.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu55.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu56.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu57.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu58.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu59.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu5a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu5b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu5c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu5d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu5e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu5f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu60.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu61.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu62.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu63.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu64.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu65.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu66.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu67.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu68.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu69.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu6a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu6b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu6c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu6d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu6e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu6f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu70.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu71.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu72.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu73.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu74.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu75.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu76.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu77.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu78.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu79.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu7a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu7b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu7c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu7d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu7e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu7f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu80.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu81.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu82.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu83.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu84.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu85.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu86.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu87.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu88.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu89.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu8a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu8b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu8c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu8d.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu8e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu8f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu90.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu91.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu92.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu93.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu94.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu95.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu96.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu97.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu98.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu99.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu9a.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu9b.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu9c.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu9e.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiu9f.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiufe.tfm
%{_texmfdistdir}/fonts/tfm/arphic/gkaiu/gkaiuff.tfm
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu00.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu02.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu03.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu20.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu21.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu22.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu25.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu26.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu30.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu31.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu32.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu33.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu4e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu4f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu50.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu51.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu52.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu53.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu54.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu55.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu56.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu57.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu58.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu59.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu5a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu5b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu5c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu5d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu5e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu5f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu60.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu61.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu62.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu63.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu64.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu65.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu66.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu67.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu68.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu69.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu6a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu6b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu6c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu6d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu6e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu6f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu70.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu71.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu72.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu73.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu74.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu75.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu76.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu77.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu78.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu79.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu7a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu7b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu7c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu7d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu7e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu7f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu80.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu81.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu82.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu83.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu84.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu85.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu86.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu87.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu88.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu89.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu8a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu8b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu8c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu8d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu8e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu8f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu90.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu91.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu92.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu93.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu94.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu95.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu96.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu97.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu98.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu99.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu9a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu9b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu9c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu9d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu9e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiu9f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiuee.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiuf6.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiuf7.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiuf8.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiufa.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiufe.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiuff.pfb
%{_texmfdistdir}/fonts/type1/arphic/bkaiu/bkaiuv.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu00.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu02.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu03.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu20.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu21.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu22.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu25.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu26.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu30.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu31.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu32.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu33.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu4e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu4f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu50.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu51.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu52.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu53.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu54.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu55.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu56.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu57.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu58.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu59.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu5a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu5b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu5c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu5d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu5e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu5f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu60.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu61.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu62.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu63.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu64.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu65.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu66.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu67.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu68.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu69.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu6a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu6b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu6c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu6d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu6e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu6f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu70.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu71.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu72.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu73.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu74.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu75.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu76.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu77.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu78.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu79.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu7a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu7b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu7c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu7d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu7e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu7f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu80.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu81.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu82.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu83.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu84.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu85.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu86.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu87.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu88.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu89.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu8a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu8b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu8c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu8d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu8e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu8f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu90.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu91.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu92.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu93.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu94.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu95.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu96.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu97.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu98.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu99.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu9a.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu9b.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu9c.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu9d.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu9e.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiu9f.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiuee.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiuf6.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiuf7.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiuf8.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiufa.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiufe.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiuff.pfb
%{_texmfdistdir}/fonts/type1/arphic/bsmiu/bsmiuv.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu00.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu01.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu02.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu03.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu04.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu20.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu21.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu22.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu23.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu24.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu25.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu26.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu30.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu31.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu32.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu4e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu4f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu50.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu51.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu52.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu53.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu54.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu55.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu56.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu57.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu58.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu59.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu5a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu5b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu5c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu5d.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu5e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu5f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu60.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu61.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu62.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu63.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu64.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu65.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu66.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu67.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu68.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu69.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu6a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu6b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu6c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu6d.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu6e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu6f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu70.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu71.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu72.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu73.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu74.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu75.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu76.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu77.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu78.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu79.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu7a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu7b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu7c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu7d.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu7e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu7f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu80.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu81.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu82.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu83.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu84.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu85.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu86.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu87.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu88.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu89.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu8a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu8b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu8c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu8d.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu8e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu8f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu90.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu91.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu92.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu93.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu94.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu95.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu96.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu97.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu98.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu99.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu9a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu9b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu9c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu9e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnu9f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnufe.pfb
%{_texmfdistdir}/fonts/type1/arphic/gbsnu/gbsnuff.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu00.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu01.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu02.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu03.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu04.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu20.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu21.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu22.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu23.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu24.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu25.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu26.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu30.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu31.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu32.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu4e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu4f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu50.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu51.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu52.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu53.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu54.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu55.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu56.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu57.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu58.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu59.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu5a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu5b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu5c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu5d.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu5e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu5f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu60.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu61.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu62.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu63.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu64.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu65.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu66.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu67.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu68.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu69.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu6a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu6b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu6c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu6d.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu6e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu6f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu70.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu71.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu72.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu73.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu74.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu75.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu76.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu77.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu78.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu79.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu7a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu7b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu7c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu7d.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu7e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu7f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu80.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu81.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu82.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu83.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu84.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu85.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu86.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu87.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu88.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu89.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu8a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu8b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu8c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu8d.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu8e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu8f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu90.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu91.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu92.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu93.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu94.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu95.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu96.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu97.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu98.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu99.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu9a.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu9b.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu9c.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu9e.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiu9f.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiufe.pfb
%{_texmfdistdir}/fonts/type1/arphic/gkaiu/gkaiuff.pfb
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp00.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp01.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp02.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp03.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp04.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp05.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp06.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp07.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp08.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp09.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp10.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp11.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp12.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp13.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp14.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp15.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp16.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp17.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp18.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp19.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp20.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp21.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp22.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp23.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp25.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp26.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp27.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp28.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp29.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp30.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp31.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp32.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp33.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp34.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp35.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp36.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp37.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp38.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp39.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp40.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp41.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp42.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp43.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp44.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp45.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp46.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp47.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp48.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp49.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp50.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp51.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp52.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp53.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp54.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimp55.vf
%{_texmfdistdir}/fonts/vf/arphic/bkaimp/bkaimpv.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp00.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp01.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp02.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp03.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp04.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp05.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp06.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp07.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp08.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp09.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp10.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp11.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp12.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp13.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp14.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp15.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp16.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp17.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp18.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp19.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp20.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp21.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp22.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp23.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp25.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp26.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp27.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp28.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp29.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp30.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp31.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp32.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp33.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp34.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp35.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp36.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp37.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp38.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp39.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp40.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp41.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp42.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp43.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp44.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp45.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp46.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp47.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp48.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp49.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp50.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp51.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp52.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp53.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp54.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilp55.vf
%{_texmfdistdir}/fonts/vf/arphic/bsmilp/bsmilpv.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp00.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp01.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp02.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp03.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp04.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp06.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp07.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp08.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp09.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp10.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp11.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp12.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp13.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp14.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp15.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp16.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp17.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp18.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp19.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp20.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp21.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp22.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp23.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp24.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp25.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp26.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp27.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp28.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp29.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp30.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp31.vf
%{_texmfdistdir}/fonts/vf/arphic/gbsnlp/gbsnlp32.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp00.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp01.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp02.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp03.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp04.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp06.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp07.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp08.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp09.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp10.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp11.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp12.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp13.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp14.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp15.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp16.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp17.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp18.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp19.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp20.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp21.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp22.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp23.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp24.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp25.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp26.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp27.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp28.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp29.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp30.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp31.vf
%{_texmfdistdir}/fonts/vf/arphic/gkaimp/gkaimp32.vf
%_texmf_updmap_d/arphic
%doc %{_texmfdistdir}/doc/fonts/arphic/arphic-sampler.pdf
%doc %{_texmfdistdir}/doc/fonts/arphic/arphic-sampler.tex
%doc %{_texmfdistdir}/doc/fonts/arphic/bkaiu/README
%doc %{_texmfdistdir}/doc/fonts/arphic/bsmiu/README
%doc %{_texmfdistdir}/doc/fonts/arphic/gbsnu/README
%doc %{_texmfdistdir}/doc/fonts/arphic/gkaiu/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/arphic <<EOF
Map bkaiu.map
Map bsmiu.map
Map gbsnu.map
Map gkaiu.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17655 |21mr|texlive-arrayjobx-1.04-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18125
# category Package
# catalog-ctan /macros/generic/arrayjobx
# catalog-date 2010-05-11 12:36:30 +0200
# catalog-license lppl
# catalog-version 1.04
Name:		texlive-arrayjobx
Version:	1.04
Release:	7
Summary:	Array data structures for (La)TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/arrayjobx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arrayjobx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arrayjobx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides array data structures in (La)TeX, in the
meaning of the classical procedural programming languages like
Fortran, Ada or C, and macros to manipulate them. Arrays can be
mono or bi-dimensional. This is useful for applications which
require high level programming techniques, like algorithmic
graphics programmed in the TeX language. The package supersedes
the arrayjob package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/arrayjobx/arrayjob.sty
%{_texmfdistdir}/tex/generic/arrayjobx/arrayjobx.sty
%doc %{_texmfdistdir}/doc/generic/arrayjobx/README
%doc %{_texmfdistdir}/doc/generic/arrayjobx/arrayjob.pdf
%doc %{_texmfdistdir}/doc/generic/arrayjobx/arrayjob.tex
%doc %{_texmfdistdir}/doc/generic/arrayjobx/arrayjobx.pdf
%doc %{_texmfdistdir}/doc/generic/arrayjobx/arrayjobx.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17656 |21mr|texlive-arraysort-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31576
# category Package
# catalog-ctan /macros/latex/contrib/arraysort
# catalog-date 2013-09-04 23:50:27 +0200
# catalog-license lppl1.2
# catalog-version 1.0
Name:		texlive-arraysort
Version:	1.0
Release:	10
Summary:	Sort arrays (or portions of them)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/arraysort
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arraysort.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arraysort.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arraysort.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a mechanism for sorting arrays (or
portions of them); the arrays should have been created using
the arrayjobx package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/arraysort/arraysort.sty
%doc %{_texmfdistdir}/doc/latex/arraysort/Makefile
%doc %{_texmfdistdir}/doc/latex/arraysort/README
%doc %{_texmfdistdir}/doc/latex/arraysort/arraysort.pdf
#- source
%doc %{_texmfdistdir}/source/latex/arraysort/arraysort.dtx
%doc %{_texmfdistdir}/source/latex/arraysort/arraysort.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17657 |21mr|texlive-arsclassica-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-arsclassica
Version:	20190228
Release:	1
Summary:	A different view of the ClassicThesis package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/arsclassica
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arsclassica.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arsclassica.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package changes some typographical points of the
ClassicThesis style, by Andre Miede. It enables the user to
reproduce the look of the guide The art of writing with LaTeX
(the web page is in Italian).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tlpkg/tlpobj/arsclassica*
%{_texmfdistdir}/tex/latex/arsclassica
%doc %{_texmfdistdir}/doc/latex/arsclassica

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tlpkg tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17658 |21mr|texlive-articleingud-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/articleingud
# catalog-date 2012-11-19 10:50:11 +0100
# catalog-license lppl1.2
# catalog-version 0.2
Name:		texlive-articleingud
Version:	0.3
Release:	2
Summary:	LaTeX class for articles published in INGENIERIA review
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/articleingud
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/articleingud.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/articleingud.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/articleingud.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is for articles published in INGENIERIA review. It is
derived from the standard LaTeX class article.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/articleingud/articleingud.cls
%doc %{_texmfdistdir}/doc/latex/articleingud/README
%doc %{_texmfdistdir}/doc/latex/articleingud/articleingud.pdf
%doc %{_texmfdistdir}/doc/latex/articleingud/plantilla.tex
%doc %{_texmfdistdir}/doc/latex/articleingud/template.tex
#- source
%doc %{_texmfdistdir}/source/latex/articleingud/articleingud.dtx
%doc %{_texmfdistdir}/source/latex/articleingud/articleingud.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17659 |21mr|texlive-arydshln-1.76-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/arydshln
# catalog-date 2007-04-06 18:29:05 +0200
# catalog-license lppl
# catalog-version 1.71
Name:		texlive-arydshln
Version:	1.76
Release:	1
Summary:	Horizontal and vertical dashed lines in arrays and tabulars
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/arydshln
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arydshln.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arydshln.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/arydshln.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Definitions of horizontal and vertical dashed lines for the
array and tabular environment. Horizontal lines are drawn by
\hdashline and \cdashline while vertical ones can be specified
as a part of preamble using ':'. The shape of dashed lines may
be controlled through style parameters or optional arguments.
The package is compatible with array and colortab.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/arydshln/arydshln.sty
%doc %{_texmfdistdir}/doc/latex/arydshln/README
%doc %{_texmfdistdir}/doc/latex/arydshln/arydshln-man.pdf
%doc %{_texmfdistdir}/doc/latex/arydshln/arydshln-man.tex
%doc %{_texmfdistdir}/doc/latex/arydshln/arydshln.pdf
#- source
%doc %{_texmfdistdir}/source/latex/arydshln/arydshln.dtx
%doc %{_texmfdistdir}/source/latex/arydshln/arydshln.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17660 |21mr|texlive-asaetr-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/asaetr
# catalog-date 2009-04-30 00:32:08 +0200
# catalog-license pd
# catalog-version 1.0a
Name:		texlive-asaetr
Version:	1.0a
Release:	7
Summary:	Transactions of the ASAE
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/asaetr
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/asaetr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/asaetr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class and BibTeX style for submissions to the Transactions of
the American Society of Agricultural Engineers. Also included
is the MetaFont source of a slanted Computer Modern Caps and
Small Caps font.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/asaetr/asaetr.bst
%{_texmfdistdir}/tex/latex/asaetr/asaesub.sty
%{_texmfdistdir}/tex/latex/asaetr/asaetr.cls
%{_texmfdistdir}/tex/latex/asaetr/asaetr.sty
%doc %{_texmfdistdir}/doc/latex/asaetr/MANIFEST
%doc %{_texmfdistdir}/doc/latex/asaetr/asaetr.bib
%doc %{_texmfdistdir}/doc/latex/asaetr/asaetr.pdf
%doc %{_texmfdistdir}/doc/latex/asaetr/asaetr.tex
%doc %{_texmfdistdir}/doc/latex/asaetr/cmcscsl10.mf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17661 |21mr|texlive-Asana-Math-000.958-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-Asana-Math
Version:	000.958
Release:	1
Summary:	A font to typeset maths in Xe(La)TeX and Lua(La)TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/Asana-Math
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/Asana-Math.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/Asana-Math.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Asana-Math font is an OpenType font that includes almost
all mathematical Unicode symbols and it can be used to typeset
mathematical text with any software that can understand the
MATH OpenType table (e.g., XeTeX 0.997 and Microsoft Word
2007). The font is beta software. Typesetting support for use
with LaTeX is provided by the fontspec and unicode-math
packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/Asana-Math
%{_texmfdistdir}/fonts/truetype/public/Asana-Math
%doc %{_texmfdistdir}/doc/fonts/Asana-Math

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17662 |21mr|texlive-ascelike-2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29129
# category Package
# catalog-ctan /macros/latex/contrib/ascelike
# catalog-date 2012-02-05 17:55:30 +0100
# catalog-license lppl
# catalog-version 2.2
Name:		texlive-ascelike
Version:	2.3
Release:	2
Summary:	Bibliography style for the ASCE
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ascelike
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ascelike.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ascelike.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A document class and bibliographic style that prepares
documents in the style required by the American Society of
Civil Engineers (ASCE). These are unofficial files, not
sanctioned by that organization, and the files specifically
give this caveat. Also included is a short
documentation/example of how to use the class.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/ascelike/ascelike.bst
%{_texmfdistdir}/tex/latex/ascelike/ascelike.cls
%doc %{_texmfdistdir}/doc/latex/ascelike/README
%doc %{_texmfdistdir}/doc/latex/ascelike/ascexmpl.bib
%doc %{_texmfdistdir}/doc/latex/ascelike/ascexmpl.pdf
%doc %{_texmfdistdir}/doc/latex/ascelike/ascexmpl.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17663 |21mr|texlive-ascii-chart-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20536
# category Package
# catalog-ctan /info/ascii-chart
# catalog-date 2010-11-22 13:41:51 +0100
# catalog-license noinfo
# catalog-version undef
Name:		texlive-ascii-chart
Version:	20190228
Release:	1
Summary:	An ASCII wall chart
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/ascii-chart
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ascii-chart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ascii-chart.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document may be converted between Plain TeX and LaTeX
(2.09) by a simple editing action.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/support/ascii-chart/ascii.pdf
%doc %{_texmfdistdir}/doc/support/ascii-chart/ascii.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17664 |21mr|texlive-asciilist-2.2b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 2
# category TLCore
# catalog-ctan /graphics/asciilist/asciilist.pl
# catalog-date 2021-02-11 17:30:51 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-asciilist
Version:	2.2b
Release:	1
Epoch:		1
Summary:	Environments AsciiList and AsciiDocList for prototyping nested lists in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/asciilist
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/asciilist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/asciilist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/asciilist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the environments AsciiList and AsciiDocList, 
which enable quickly typesetting nested lists in LaTeX without having
to type individual item macros or opening/closing list environments.
The package provides auxiliary functionality for loading such lists from
files and provides macros for configuring the use of the list environments
and the appearance of the typeset results.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/asciilist/asciilist.sty
%doc %{_texmfdistdir}/doc/latex/asciilist/README.md
%doc %{_texmfdistdir}/doc/latex/asciilist/AsciiList.example
%doc %{_texmfdistdir}/doc/latex/asciilist/AsciiDocList.example
%doc %{_texmfdistdir}/doc/latex/asciilist/asciilist.pdf
#- source
%doc %{_texmfdistdir}/source/latex/asciilist/asciilist.dtx
%doc %{_texmfdistdir}/source/latex/asciilist/asciilist.ins
 
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17665 |21mr|texlive-askmaps-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32320
# category Package
# catalog-ctan /macros/latex/contrib/askmaps
# catalog-date 2013-12-04 20:39:16 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-askmaps
Version:	0.1
Release:	6
Summary:	Typeset American style Karnaugh maps
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/askmaps
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/askmaps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/askmaps.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides 2, 3, 4 and 5 variable Karnaugh maps, in
the style used in numerous textbooks on digital design. The
package draws K-maps where the most significant input variables
are placed on top of the columns and the least significant
variables are placed left of the rows.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/askmaps/askmaps.sty
%doc %{_texmfdistdir}/doc/latex/askmaps/README
%doc %{_texmfdistdir}/doc/latex/askmaps/askmaps.pdf
%doc %{_texmfdistdir}/doc/latex/askmaps/askmaps.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17666 |21mr|texlive-assignment-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20431
# category Package
# catalog-ctan /macros/latex/contrib/assignment
# catalog-date 2006-10-12 15:12:24 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-assignment
Version:	20190228
Release:	1
Summary:	A class file for typesetting homework and lab assignments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/assignment
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/assignment.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/assignment.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class file for typesetting homework and lab assignments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/assignment/assignment.cls
%doc %{_texmfdistdir}/doc/latex/assignment/Changelog
%doc %{_texmfdistdir}/doc/latex/assignment/LICENSE
%doc %{_texmfdistdir}/doc/latex/assignment/README
%doc %{_texmfdistdir}/doc/latex/assignment/assignment.pdf
%doc %{_texmfdistdir}/doc/latex/assignment/assignment.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17667 |21mr|texlive-assoccnt-0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 38497
# category Package
# catalog-ctan /macros/latex/contrib/assoccnt
# catalog-date 2016-06-24 19:18:15 +0200
# catalog-license lppl1.3
# catalog-version 0.8
Name:		texlive-assoccnt
Version:	0.8
Release:	2
Summary:	Associate counters, making them step when a master steps
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/assoccnt
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/assoccnt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/assoccnt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means of declaring a set of counters to be stepped, each time some ‘master’ counter is stepped.

#-----------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/latex/assoccnt/assoccnt.sty
%doc %{_texmfdistdir}/doc/latex/assoccnt/assoccnt_doc.pdf
%doc %{_texmfdistdir}/doc/latex/assoccnt/assoccnt_doc.tex
%doc %{_texmfdistdir}/doc/latex/assoccnt/assoccnt_example.pdf
%doc %{_texmfdistdir}/doc/latex/assoccnt/assoccnt_example.tex
%doc %{_texmfdistdir}/doc/latex/assoccnt/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17668 |21mr|texlive-asyfig-0.1c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17512
# category Package
# catalog-ctan /macros/latex/contrib/asyfig
# catalog-date 2010-03-20 11:11:38 +0100
# catalog-license lppl
# catalog-version 0.1c
Name:		texlive-asyfig
Version:	0.1c
Release:	7
Summary:	Commands for using Asymptote figures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/asyfig
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/asyfig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/asyfig.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/asyfig.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of reading Asymptote figures from
separate files, rather than within the document, as is standard
in the asymptote package, which is provided as part of the
Asymptote bundle. The asymptote way can prove cumbersome in a
large document; the present package allows the user to process
one picture at a time, in simple test documents, and then to
migrate (with no fuss) to their use in the target document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/asyfig/asyalign.sty
%{_texmfdistdir}/tex/latex/asyfig/asyfig.sty
%{_texmfdistdir}/tex/latex/asyfig/asyprocess.sty
%doc %{_texmfdistdir}/doc/latex/asyfig/README
%doc %{_texmfdistdir}/doc/latex/asyfig/asyfig.pdf
%doc %{_texmfdistdir}/doc/latex/asyfig/example/frf.asy
%doc %{_texmfdistdir}/doc/latex/asyfig/example/test-asyfig.tex
#- source
%doc %{_texmfdistdir}/source/latex/asyfig/asyfig.ins
%doc %{_texmfdistdir}/source/latex/asyfig/asyfig.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17669 |21mr|texlive-attachfile-1.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21866
# category Package
# catalog-ctan /macros/latex/contrib/attachfile
# catalog-date 2011-03-28 07:44:29 +0200
# catalog-license lppl1.3
# catalog-version v1.5b
Name:		texlive-attachfile
Version:	1.9
Release:	3
Summary:	Attach arbitrary files to a PDF document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/attachfile
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/attachfile.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/attachfile.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/attachfile.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Starting with PDF 1.3 (Adobe Acrobat 4.0), PDF files can
contain file attachments -- arbitrary files that a reader can
extract, just like attachments to an e-mail message. The
attachfile package brings this functionality to pdfLaTeX and
provides some additional features not available in Acrobat,
such as the ability to use arbitrary LaTeX code for the file
icon -- including things like \includegraphics, tabular, and
mathematics. Settings can be made either globally or on a per-
attachment basis. Attachfile makes it easy to attach files and
customize their appearance in the enclosing document. The
package supports the Created, Modified, and Size keys in the
EmbeddedFile's Params dictionary.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/attachfile/attachfile.sty
%doc %{_texmfdistdir}/doc/latex/attachfile/README
%doc %{_texmfdistdir}/doc/latex/attachfile/attachfile.pdf
#- source
%doc %{_texmfdistdir}/source/latex/attachfile/attachfile.dtx
%doc %{_texmfdistdir}/source/latex/attachfile/attachfile.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17670 |21mr|texlive-aurl-20160812-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 2
# category TLCore
# catalog-ctan /macros/latex/contrib/aurl/aurl.pl
# catalog-date 2021-03-34 11:50:51 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-aurl
Version:	20160812
Release:	1
Epoch:		1
Summary:	Extension with a mechanism for hyperlinked URLs abbreviated with prefixes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/aurl
License:	Public Domain
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aurl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/aurl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Semantic Web resource URLs are often abbreviated with prefixes, 
like "owl:Class" or "rdf:type". The abbreviated URL (aurl) package 
provides the correct hyperlinks for those URLs. The 1000 most common 
prefixes are predefined and more can be added.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/aurl/
%doc %{_texmfdistdir}/doc/latex/aurl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17671 |21mr|texlive-authoraftertitle-0.9-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24863
# category Package
# catalog-ctan /macros/latex/contrib/authoraftertitle
# catalog-date 2011-12-17 14:41:04 +0100
# catalog-license pd
# catalog-version 0.9
Name:		texlive-authoraftertitle
Version:	0.9
Release:	8
Summary:	Make author, etc., available after \maketitle
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/authoraftertitle
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/authoraftertitle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/authoraftertitle.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This jiffy package makes the author, title and date of the
package available to the user (as \MyAuthor, etc) after the
\maketitle command has been executed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/authoraftertitle/authoraftertitle.sty
%doc %{_texmfdistdir}/doc/latex/authoraftertitle/authoraftertitle.pdf
%doc %{_texmfdistdir}/doc/latex/authoraftertitle/authoraftertitle.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17672 |21mr|texlive-authorarchive-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 2
# category TLCore
# catalog-ctan /macros/latex/contrib/authorarchive/authorarchive.pl
# catalog-date 2021-03-34 12:06:51 +0200
# catalog-license FreeBSD, LPPL1.3c
# catalog-version undef
Name:		texlive-authorarchive
Version:	1.1.1
Release:	1
Epoch:		1
Summary:	Adds self-archiving information to scientific papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/authorarchive
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/authorarchive.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/authorarchive.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a LATEX style for producing author self-archiving copies 
of (academic) papers.

The following layout-styles are pre-defined:

ACMfor the two-column layout used by many ACM conferences
IEEE for the two-column layout used by many IEEE conferences
LNCS for the LNCS layout (as used by Springer)
LNI for the Lecture Notes in Informatics, published by the GI
ENTCS for the Elsevier ENTCS layout


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/authorarchive/
%doc %{_texmfdistdir}/doc/latex/authorarchive/

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17673 |21mr|texlive-authorindex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /indexing/authorindex
# catalog-date 2008-08-10 21:45:45 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-authorindex
Version:	20190228
Release:	1
Summary:	Index citations by author names
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/indexing/authorindex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/authorindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/authorindex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-authorindex.bin = %{EVRD}

%description
This package allows the user to create an index of all authors
cited in a LaTeX document. Each author entry in the index
contains the pages where these citations occur. Alternatively,
the package can list the labels of the citations that appear in
the references rather than the text pages. The package relies
on BibTeX being used to handle citations. Additionally, it
requires Perl (version 5 or higher).

#-----------------------------------------------------------------------
%files
%{_bindir}/authorindex
%{_texmfdistdir}/scripts/authorindex/authorindex
%{_texmfdistdir}/tex/latex/authorindex/authorindex.sty
%doc %{_texmfdistdir}/doc/latex/authorindex/COPYING
%doc %{_texmfdistdir}/doc/latex/authorindex/NEWS
%doc %{_texmfdistdir}/doc/latex/authorindex/README
%doc %{_texmfdistdir}/doc/latex/authorindex/authorindex.pdf
%doc %{_texmfdistdir}/doc/latex/authorindex/authorindex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/authorindex/authorindex authorindex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17674 |21mr|texlive-autoarea-0.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pictex/addon/autoarea
# catalog-date 2008-08-17 11:40:59 +0200
# catalog-license lppl
# catalog-version 0.3a
Name:		texlive-autoarea
Version:	0.3a
Release:	7
Summary:	Automatic computation of bounding boxes with PiCTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pictex/addon/autoarea
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autoarea.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autoarea.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package makes PiCTeX recognize lines and arcs in
determining the "bounding box" of a picture. (PiCTeX so far
accounted for put commands only). The "bounding box" is
essential for proper placement of a picture between running
text and margins and for keeping the running text away.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/autoarea/autoarea.sty
%doc %{_texmfdistdir}/doc/latex/autoarea/ANNOUNCE.txt
%doc %{_texmfdistdir}/doc/latex/autoarea/README.aa
%doc %{_texmfdistdir}/doc/latex/autoarea/autodemo/README.autodemo
%doc %{_texmfdistdir}/doc/latex/autoarea/autodemo/autodemo+.log
%doc %{_texmfdistdir}/doc/latex/autoarea/autodemo/autodemo+.pdf
%doc %{_texmfdistdir}/doc/latex/autoarea/autodemo/autodemo+.tex
%doc %{_texmfdistdir}/doc/latex/autoarea/autodemo/autodemo-.log
%doc %{_texmfdistdir}/doc/latex/autoarea/autodemo/autodemo-.pdf
%doc %{_texmfdistdir}/doc/latex/autoarea/autodemo/autodemo-.tex
%doc %{_texmfdistdir}/doc/latex/autoarea/autodemo/autodemo.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17675 |21mr|texlive-automata-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19717
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/automata
# catalog-date 2010-09-13 12:42:36 +0200
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-automata
Version:	0.3
Release:	7
Summary:	Finite state machines, graphs and trees in MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/automata
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/automata.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/automata.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a collection of macros for MetaPost to make
easier to draw finite-state machines, automata, labelled
graphs, etc. The user defines nodes, which may be isolated or
arranged into matrices or trees; edges connect pairs of nodes
through arbitrary paths. Parameters, that specify the shapes of
nodes and the styles of edges, may be adjusted.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/automata/automata.mp
%doc %{_texmfdistdir}/doc/metapost/automata/README
%doc %{_texmfdistdir}/doc/metapost/automata/example.mp
%doc %{_texmfdistdir}/doc/metapost/automata/example.pdf
%doc %{_texmfdistdir}/doc/metapost/automata/example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17676 |21mr|texlive-autonum-0.3.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33438
# category Package
# catalog-ctan /macros/latex/contrib/autonum
# catalog-date 2014-04-14 19:46:34 +0200
# catalog-license lppl1.3
# catalog-version 0.3.8
Name:		texlive-autonum
Version:	0.3.11
Release:	3
Summary:	Automatic equation references
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/autonum
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autonum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autonum.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autonum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package arranges that equation numbers are applied only to
those equations that are referenced. This operation is similar
to the showonlyrefs option of the package mathtools.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/autonum/autonum.sty
%doc %{_texmfdistdir}/doc/latex/autonum/README
%doc %{_texmfdistdir}/doc/latex/autonum/autonum.pdf
%doc %{_texmfdistdir}/doc/latex/autonum/test-autonum.pdf
%doc %{_texmfdistdir}/doc/latex/autonum/test-autonum.tex
%doc %{_texmfdistdir}/doc/latex/autonum/test-freeze.tex
#- source
%doc %{_texmfdistdir}/source/latex/autonum/autonum.dtx
%doc %{_texmfdistdir}/source/latex/autonum/autonum.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17677 |21mr|texlive-autopdf-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32377
# category Package
# catalog-ctan /macros/latex/contrib/autopdf
# catalog-date 2013-12-10 19:56:36 +0100
# catalog-license lppl1.2
# catalog-version 1.1
Name:		texlive-autopdf
Version:	1.1
Release:	6
Summary:	Conversion of graphics to pdfLaTeX-compatible formats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/autopdf
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autopdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autopdf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/autopdf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package facilitates the on-the-fly conversion of various
graphics formats to formats supported by pdfLaTeX (e.g. PDF).
It uses a range of external programs, and therefore requires
that the LaTeX run starts with write18 enabled.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/autopdf/autopdf.sty
%doc %{_texmfdistdir}/doc/latex/autopdf/README.txt
%doc %{_texmfdistdir}/doc/latex/autopdf/autopdf.pdf
#- source
%doc %{_texmfdistdir}/source/latex/autopdf/autopdf.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17678 |21mr|texlive-auto-pst-pdf-0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23723
# category Package
# catalog-ctan /macros/latex/contrib/auto-pst-pdf
# catalog-date 2011-08-27 23:30:14 +0200
# catalog-license lppl
# catalog-version 0.6
Name:		texlive-auto-pst-pdf
Version:	0.6
Release:	7
Summary:	Wrapper for pst-pdf (with some psfrag features)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/auto-pst-pdf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/auto-pst-pdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/auto-pst-pdf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/auto-pst-pdf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses --shell-escape to execute pst-pdf when
necessary. This makes it especially easy to integrate into the
workflow of an editor with just "LaTeX" and "pdfLaTeX" buttons.
Wrappers are provided for various psfrag-related features so
that Matlab figures via laprint, Mathematica figures via
MathPSfrag, and regular psfrag figures can all be input
consistently and easily.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/auto-pst-pdf/auto-pst-pdf.sty
%doc %{_texmfdistdir}/doc/latex/auto-pst-pdf/README
%doc %{_texmfdistdir}/doc/latex/auto-pst-pdf/auto-pst-pdf-DE.pdf
%doc %{_texmfdistdir}/doc/latex/auto-pst-pdf/auto-pst-pdf-DE.tex
%doc %{_texmfdistdir}/doc/latex/auto-pst-pdf/auto-pst-pdf.pdf
%doc %{_texmfdistdir}/doc/latex/auto-pst-pdf/example-psfrag.tex
%doc %{_texmfdistdir}/doc/latex/auto-pst-pdf/example.eps
%doc %{_texmfdistdir}/doc/latex/auto-pst-pdf/example.tex
#- source
%doc %{_texmfdistdir}/source/latex/auto-pst-pdf/auto-pst-pdf.dtx
%doc %{_texmfdistdir}/source/latex/auto-pst-pdf/auto-pst-pdf.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17679 |21mr|texlive-avantgar-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31835
# category Package
# catalog-ctan /fonts/urw/base35
# catalog-date 2012-06-06 22:57:48 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-avantgar
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/avantgar.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/avantgar/config.uag
%{_texmfdistdir}/fonts/afm/adobe/avantgar/pagd8a.afm
%{_texmfdistdir}/fonts/afm/adobe/avantgar/pagdo8a.afm
%{_texmfdistdir}/fonts/afm/adobe/avantgar/pagk8a.afm
%{_texmfdistdir}/fonts/afm/adobe/avantgar/pagko8a.afm
%{_texmfdistdir}/fonts/afm/urw/avantgar/uagb8a.afm
%{_texmfdistdir}/fonts/afm/urw/avantgar/uagbi8a.afm
%{_texmfdistdir}/fonts/afm/urw/avantgar/uagd8a.afm
%{_texmfdistdir}/fonts/afm/urw/avantgar/uagdo8a.afm
%{_texmfdistdir}/fonts/afm/urw/avantgar/uagk8a.afm
%{_texmfdistdir}/fonts/afm/urw/avantgar/uagko8a.afm
%{_texmfdistdir}/fonts/afm/urw/avantgar/uagr8a.afm
%{_texmfdistdir}/fonts/afm/urw/avantgar/uagri8a.afm
%{_texmfdistdir}/fonts/map/dvips/avantgar/uag.map
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagd.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagd7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagd8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagd8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagd8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagdc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagdc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagdc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagdo.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagdo7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagdo8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagdo8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagdo8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagk.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagk7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagk8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagk8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagk8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagkc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagkc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagkc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagko.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagko7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagko8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagko8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/avantgar/pagko8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagb7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagb8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagb8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagb8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbi7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbi8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbi8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbi8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbo7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbo8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbo8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagbo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagd7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagd8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagd8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagd8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagdc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagdc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagdo7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagdo8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagdo8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagdo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagk7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagk8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagk8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagk8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagkc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagkc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagko7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagko8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagko8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagko8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagr7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagr8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagr8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagr8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagrc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagrc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagri7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagri8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagri8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagri8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagro7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagro8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagro8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/avantgar/uagro8t.tfm
%{_texmfdistdir}/fonts/type1/urw/avantgar/uagd8a.pfb
%{_texmfdistdir}/fonts/type1/urw/avantgar/uagd8a.pfm
%{_texmfdistdir}/fonts/type1/urw/avantgar/uagdo8a.pfb
%{_texmfdistdir}/fonts/type1/urw/avantgar/uagdo8a.pfm
%{_texmfdistdir}/fonts/type1/urw/avantgar/uagk8a.pfb
%{_texmfdistdir}/fonts/type1/urw/avantgar/uagk8a.pfm
%{_texmfdistdir}/fonts/type1/urw/avantgar/uagko8a.pfb
%{_texmfdistdir}/fonts/type1/urw/avantgar/uagko8a.pfm
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagd.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagd7t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagd8c.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagd8t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagdc.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagdc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagdc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagdo.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagdo7t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagdo8c.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagdo8t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagk.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagk7t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagk8c.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagk8t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagkc.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagkc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagkc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagko.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagko7t.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagko8c.vf
%{_texmfdistdir}/fonts/vf/adobe/avantgar/pagko8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagb7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagb8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagb8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagbc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagbc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagbi7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagbi8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagbi8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagbo7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagbo8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagbo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagd7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagd8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagd8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagdc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagdc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagdo7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagdo8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagdo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagk7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagk8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagk8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagkc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagkc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagko7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagko8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagko8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagr7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagr8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagr8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagrc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagrc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagri7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagri8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagri8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagro7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagro8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/avantgar/uagro8t.vf
%{_texmfdistdir}/tex/latex/avantgar/8ruag.fd
%{_texmfdistdir}/tex/latex/avantgar/omluag.fd
%{_texmfdistdir}/tex/latex/avantgar/omsuag.fd
%{_texmfdistdir}/tex/latex/avantgar/ot1uag.fd
%{_texmfdistdir}/tex/latex/avantgar/t1uag.fd
%{_texmfdistdir}/tex/latex/avantgar/ts1uag.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17680 |21mr|texlive-avremu-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-avremu
Version:	0.1
Release:	1
Summary:	A fully working package to simulate a Microprocessor in pure latex
Group:      Education	
URL:		https://www.ctan.org/pkg/avremu
License:	The LaTeX Project Public License 1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/avremu.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/avremu.doc.tar.xz
BuildArch:      noarch
BuildRequires:	texlive-tlpkg
Requires:       texlive-units
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A fully working package to simulate a Microprocessor in pure LATEX. The simulator is able to calculate complex pictures, like Mandelbrot sets.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17681 |21mr|texlive-axessibility-3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 57105
# category Package
# catalog-ctan /macros/latex/contrib/axessibility
# catalog-license lppl1.3
# catalog-version 3.0
Name:		texlive-axessibility
Version:	3.0
Release:    2
Summary:	Access to formulas in PDF files by assistive technologies
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/axessibility
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/axessibility.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/axessibility.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/axessibility.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
PDF documents containing formulas generated by LaTeX are
usually not accessible by assistive technologies for visually
impaired people and people with special educational needs
(i.e., by screen readers and braille displays). The
axessibility package manages this issue, allowing to create a
PDF document where the formulas are read by these assistive
technologies, since it automatically generates hidden comments
in the PDF document (by means of the /ActualText attribute
and/or suitable tags) in correspondence to each formula.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/axessibility/axessibility.lua
%{_texmfdistdir}/tex/latex/axessibility/axessibility.sty
%doc %{_texmfdistdir}/doc/latex/axessibility/axessibility.pdf
%doc %{_texmfdistdir}/doc/latex/axessibility/axessibilityExampleAlignA.tex
%doc %{_texmfdistdir}/doc/latex/axessibility/axessibilityExampleAlignT.tex
%doc %{_texmfdistdir}/doc/latex/axessibility/axessibilityExampleSingleLineA.tex
%doc %{_texmfdistdir}/doc/latex/axessibility/axessibilityExampleSingleLineT.tex
%doc %{_texmfdistdir}/doc/latex/axessibility/README
#- source
%doc %{_texmfdistdir}/source/latex/axessibility/axessibility.dtx
%doc %{_texmfdistdir}/source/latex/axessibility/axessibility.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17682 |21mr|texlive-babel-3.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel
Version:	3.30
Release:	1
Summary:	Multilingual support for Plain TeX or LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/required/babel/base
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package manages culturally-determined typographical (and
other) rules, and hyphenation patterns for a wide range of
languages. A document may select a single language to be
supported, or it may select several, in which case the document
may switch from one language to another in a variety of ways.
Babel uses contributed configuration files that provide the
detail of what has to be done for each language. Users of XeTeX
are advised to use polyglossia rather than Babel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/babel
%{_texmfdistdir}/tex/generic/babel
%doc %{_texmfdistdir}/doc/latex/babel
#- source
%doc %{_texmfdistdir}/source/latex/babel

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17683 |21mr|texlive-babel-albanian-1.0c-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30254
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/albanian
# catalog-date 2011-09-19 08:05:09 +0100
# catalog-license lppl
# catalog-version 1.0c
Name:		texlive-babel-albanian
Version:	1.0c
Release:	10
Summary:	Support for Albanian within babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/albanian
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-albanian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-albanian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-albanian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for typesetting Albanian (as part
of the babel system).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-albanian/albanian.ldf
%doc %{_texmfdistdir}/doc/generic/babel-albanian/albanian.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-albanian/albanian.dtx
%doc %{_texmfdistdir}/source/generic/babel-albanian/albanian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17684 |21mr|texlive-babel-bahasa-1.0l-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30255
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/bahasa
# catalog-date 2013-05-06 22:45:34 +0200
# catalog-license lppl1.3
# catalog-version 1.0l
Name:		texlive-babel-bahasa
Version:	1.0l
Release:	10
Summary:	Support for Bahasa within babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/bahasa
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-bahasa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-bahasa.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-bahasa.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides two sets of language typesetting support,
for Bahasa Indonesia and Bahasa Malaysia.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-bahasa/bahasai.ldf
%{_texmfdistdir}/tex/generic/babel-bahasa/bahasam.ldf
%doc %{_texmfdistdir}/doc/generic/babel-bahasa/bahasa.pdf
%doc %{_texmfdistdir}/doc/generic/babel-bahasa/bahasam.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-bahasa/bahasa.dtx
%doc %{_texmfdistdir}/source/generic/babel-bahasa/bahasa.ins
%doc %{_texmfdistdir}/source/generic/babel-bahasa/bahasam.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17685 |21mr|texlive-babel-basque-1.0f-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-basque
Version:	1.0f
Release:	2
Epoch:		1
Summary:	TeXLive babel-basque package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-basque.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-basque.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-basque.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-basque package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-basque
%doc %{_texmfdistdir}/doc/generic/babel-basque
#- source
%doc %{_texmfdistdir}/source/generic/babel-basque

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17686 |21mr|texlive-babelbib-1.32-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25245
# category Package
# catalog-ctan /biblio/bibtex/contrib/babelbib
# catalog-date 2012-01-30 12:34:22 +0100
# catalog-license lppl1
# catalog-version 1.31
Name:		texlive-babelbib
Version:	1.32
Release:	1
Summary:	Multilingual bibliographies
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/babelbib
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babelbib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babelbib.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package enables to generate multilingual bibliographies in
cooperation with babel. Two approaches are possible: Each
citation may be written in another language, or the whole
bibliography can be typeset in a language chosen by the user.
In addition, the package supports commands to change the
typography of the bibliographies.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/babelbib/bababbr3-fl.bst
%{_texmfdistdir}/bibtex/bst/babelbib/bababbr3-lf.bst
%{_texmfdistdir}/bibtex/bst/babelbib/bababbr3.bst
%{_texmfdistdir}/bibtex/bst/babelbib/bababbrv-fl.bst
%{_texmfdistdir}/bibtex/bst/babelbib/bababbrv-lf.bst
%{_texmfdistdir}/bibtex/bst/babelbib/bababbrv.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babalpha-fl.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babalpha-lf.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babalpha.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babamspl.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babplai3-fl.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babplai3-lf.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babplai3.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babplain-fl.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babplain-lf.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babplain.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babunsrt-fl.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babunsrt-lf.bst
%{_texmfdistdir}/bibtex/bst/babelbib/babunsrt.bst
%{_texmfdistdir}/tex/latex/babelbib/afrikaans.bdf
%{_texmfdistdir}/tex/latex/babelbib/babelbib.sty
%{_texmfdistdir}/tex/latex/babelbib/bahasa.bdf
%{_texmfdistdir}/tex/latex/babelbib/catalan.bdf
%{_texmfdistdir}/tex/latex/babelbib/croatian.bdf
%{_texmfdistdir}/tex/latex/babelbib/czech.bdf
%{_texmfdistdir}/tex/latex/babelbib/danish.bdf
%{_texmfdistdir}/tex/latex/babelbib/dutch.bdf
%{_texmfdistdir}/tex/latex/babelbib/english.bdf
%{_texmfdistdir}/tex/latex/babelbib/esperanto.bdf
%{_texmfdistdir}/tex/latex/babelbib/finnish.bdf
%{_texmfdistdir}/tex/latex/babelbib/french.bdf
%{_texmfdistdir}/tex/latex/babelbib/galician.bdf
%{_texmfdistdir}/tex/latex/babelbib/german.bdf
%{_texmfdistdir}/tex/latex/babelbib/greek.bdf
%{_texmfdistdir}/tex/latex/babelbib/italian.bdf
%{_texmfdistdir}/tex/latex/babelbib/norsk.bdf
%{_texmfdistdir}/tex/latex/babelbib/portuguese.bdf
%{_texmfdistdir}/tex/latex/babelbib/romanian.bdf
%{_texmfdistdir}/tex/latex/babelbib/russian.bdf
%{_texmfdistdir}/tex/latex/babelbib/serbian.bdf
%{_texmfdistdir}/tex/latex/babelbib/spanish.bdf
%{_texmfdistdir}/tex/latex/babelbib/swedish.bdf
%doc %{_texmfdistdir}/doc/bibtex/babelbib/ChangeLog
%doc %{_texmfdistdir}/doc/bibtex/babelbib/Makefile
%doc %{_texmfdistdir}/doc/bibtex/babelbib/README
%doc %{_texmfdistdir}/doc/bibtex/babelbib/babelbib.dtx
%doc %{_texmfdistdir}/doc/bibtex/babelbib/babelbib.ins
%doc %{_texmfdistdir}/doc/bibtex/babelbib/babelbib.pdf
%doc %{_texmfdistdir}/doc/bibtex/babelbib/babelbibtest.bib
%doc %{_texmfdistdir}/doc/bibtex/babelbib/babelbibtest.tex
%doc %{_texmfdistdir}/doc/bibtex/babelbib/getversion.tex
%doc %{_texmfdistdir}/doc/bibtex/babelbib/tugboat-babelbib.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17687 |21mr|texlive-babel-breton-1.0h-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-breton
Version:	1.0h
Release:	2
Epoch:		1
Summary:	TeXLive babel-breton package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-breton.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-breton.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-breton.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-breton package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-breton
%doc %{_texmfdistdir}/doc/generic/babel-breton
#- source
%doc %{_texmfdistdir}/source/generic/babel-breton

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17688 |21mr|texlive-babel-bulgarian-1.2g-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31902
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/bulgarian
# catalog-date 2013-10-14 16:08:13 +0200
# catalog-license lppl1.3
# catalog-version 1.2g
Name:		texlive-babel-bulgarian
Epoch:		1
Version:	1.2g
Release:	10
Summary:	(Babel contributed support for Bulgarian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/bulgarian
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-bulgarian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-bulgarian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-bulgarian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for documents in Bulgarian (or
simply containing some Bulgarian text).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-bulgarian/bulgarian.ldf
%doc %{_texmfdistdir}/doc/generic/babel-bulgarian/README
%doc %{_texmfdistdir}/doc/generic/babel-bulgarian/bulgarian.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-bulgarian/bulgarian.dtx
%doc %{_texmfdistdir}/source/generic/babel-bulgarian/bulgarian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17689 |21mr|texlive-babel-catalan-2.2p-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30259
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-catalan
Version:	2.2p
Release:	2
Epoch:		1
Summary:	TeXLive babel-catalan package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-catalan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-catalan.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-catalan.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-catalan package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-catalan/catalan.ldf
%doc %{_texmfdistdir}/doc/generic/babel-catalan/catalan.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-catalan/catalan.dtx
%doc %{_texmfdistdir}/source/generic/babel-catalan/catalan.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17690 |21mr|texlive-babel-croatian-1.3l-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30260
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-croatian
Version:	1.3l
Release:	2
Epoch:		1
Summary:	TeXLive babel-croatian package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-croatian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-croatian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-croatian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-croatian package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-croatian/croatian.ldf
%doc %{_texmfdistdir}/doc/generic/babel-croatian/croatian.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-croatian/croatian.dtx
%doc %{_texmfdistdir}/source/generic/babel-croatian/croatian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17691 |21mr|texlive-babel-czech-3.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30261
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-czech
Version:	3.1a
Release:	2
Epoch:		1
Summary:	TeXLive babel-czech package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-czech.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-czech.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-czech.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-czech package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-czech/czech.ldf
%doc %{_texmfdistdir}/doc/generic/babel-czech/czech.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-czech/czech.dtx
%doc %{_texmfdistdir}/source/generic/babel-czech/czech.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17692 |21mr|texlive-babel-danish-1.3r-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30262
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-danish
Version:	1.3r
Release:	2
Epoch:		1
Summary:	TeXLive babel-danish package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-danish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-danish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-danish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-danish package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-danish/danish.ldf
%doc %{_texmfdistdir}/doc/generic/babel-danish/danish.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-danish/danish.dtx
%doc %{_texmfdistdir}/source/generic/babel-danish/danish.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17693 |21mr|texlive-babel-dutch-3.8i-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30263
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-dutch
Version:	3.8i
Release:	2
Epoch:		1
Summary:	TeXLive babel-dutch package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-dutch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-dutch.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-dutch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-dutch package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-dutch/dutch.ldf
%doc %{_texmfdistdir}/doc/generic/babel-dutch/dutch.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-dutch/dutch.dtx
%doc %{_texmfdistdir}/source/generic/babel-dutch/dutch.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17694 |21mr|texlive-babel-english-3.3r-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30264
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-english
Version:	3.3r
Release:	2
Epoch:		1
Summary:	TeXLive babel-english package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-english.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-english.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-english.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-english package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-english/*.ldf
%doc %{_texmfdistdir}/doc/generic/babel-english/README
%doc %{_texmfdistdir}/doc/generic/babel-english/english.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-english/english.dtx
%doc %{_texmfdistdir}/source/generic/babel-english/english.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17695 |21mr|texlive-babel-esperanto-1.4t-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30265
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-esperanto
Version:	1.4t
Release:	2
Epoch:		1
Summary:	TeXLive babel-esperanto package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-esperanto.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-esperanto.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-esperanto.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-esperanto package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-esperanto/esperanto.ldf
%doc %{_texmfdistdir}/doc/generic/babel-esperanto/esperanto.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-esperanto/esperanto.dtx
%doc %{_texmfdistdir}/source/generic/babel-esperanto/esperanto.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17696 |21mr|texlive-babel-estonian-1.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-estonian
Epoch:		1
Version:	1.1a
Release:	2
Summary:	Babel support for Estonian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/estonian
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-estonian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-estonian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-estonian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the language definition file for support
of Estonian in babel. Some shortcuts are defined, as well as
translations to Estonian of standard "LaTeX names".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-estonian
%doc %{_texmfdistdir}/doc/generic/babel-estonian
#- source
%doc %{_texmfdistdir}/source/generic/babel-estonian

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17697 |21mr|texlive-babel-finnish-1.3q-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30267
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-finnish
Version:	1.3q
Release:	2
Epoch:		1
Summary:	TeXLive babel-finnish package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-finnish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-finnish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-finnish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-finnish package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-finnish/finnish.ldf
%doc %{_texmfdistdir}/doc/generic/babel-finnish/finnish.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-finnish/finnish.dtx
%doc %{_texmfdistdir}/source/generic/babel-finnish/finnish.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17698 |21mr|texlive-babel-french-3.5e-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-french
Version:	3.5e
Release:	1
Summary:	Babel contributed support for French
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/french
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-french.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-french.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-french.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package establishes French conventions in a document (or a
subset of the conventions, if French is not the main language
of the document).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-french
%doc %{_texmfdistdir}/doc/generic/babel-french
#- source
%doc %{_texmfdistdir}/source/generic/babel-french

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17699 |21mr|texlive-babel-friulan-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-friulan
Version:	1.3
Release:	2
Epoch:		1
Summary:	Babel/Polyglossia support for Friulan(Furlan)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/friulan
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-friulan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-friulan.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-friulan.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a language description file that enables
support of Friulan either with babel or with polyglossia.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-friulan
%doc %{_texmfdistdir}/doc/generic/babel-friulan
#- source
%doc %{_texmfdistdir}/source/generic/babel-friulan

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17700 |21mr|texlive-babel-galician-4.3c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30270
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-galician
Version:	4.3c
Release:	2
Epoch:		1
Summary:	TeXLive babel-galician package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-galician.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-galician.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-galician.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-galician package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-galician/galician.ldf
%doc %{_texmfdistdir}/doc/generic/babel-galician/galician.pdf
%doc %{_texmfdistdir}/doc/generic/babel-galician/glbst.tex
%doc %{_texmfdistdir}/doc/generic/babel-galician/glromidx.tex
#- source
%doc %{_texmfdistdir}/source/generic/babel-galician/galician.dtx
%doc %{_texmfdistdir}/source/generic/babel-galician/galician.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17701 |21mr|texlive-babel-georgian-2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-georgian
Version:	2.2
Release:	2
Summary:	Babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/georgian
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-georgian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-georgian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for use of Babel in documents
written in Georgian. The package is adapted for use both under
'traditional' TeX engines, and under XeTeX and LuaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-georgian
%doc %{_texmfdistdir}/doc/generic/babel-georgian

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17702 |21mr|texlive-babel-german-2.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32421
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/german
# catalog-date 2013-12-15 16:16:02 +0100
# catalog-license lppl1.3
# catalog-version 2.7
Epoch:		1
Name:		texlive-babel-german
Version:	2.11
Release:	1
Summary:	Babel support for documents written in German
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/german
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-german.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-german.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-german.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines LaTeX support, within the Babel package, of
German (including its Austrian dialect), in both 'old' and
'new' orthographies.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-german/austrian.ldf
%{_texmfdistdir}/tex/generic/babel-german/german.ldf
%{_texmfdistdir}/tex/generic/babel-german/germanb.ldf
%{_texmfdistdir}/tex/generic/babel-german/naustrian.ldf
%{_texmfdistdir}/tex/generic/babel-german/ngerman.ldf
%{_texmfdistdir}/tex/generic/babel-german/ngermanb.ldf
%{_texmfdistdir}/tex/generic/babel-german/nswissgerman.ldf
%{_texmfdistdir}/tex/generic/babel-german/swissgerman.ldf
%doc %{_texmfdistdir}/doc/generic/babel-german/README
%doc %{_texmfdistdir}/doc/generic/babel-german/germanb.pdf
%doc %{_texmfdistdir}/doc/generic/babel-german/ngermanb.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-german/german.ins
%doc %{_texmfdistdir}/source/generic/babel-german/germanb.dtx
%doc %{_texmfdistdir}/source/generic/babel-german/ngermanb.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17703 |21mr|texlive-babel-greek-1.9g-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-greek
Version:	1.9g
Release:	2
Summary:	Babel support for documents written in Greek
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/greek
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-greek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-greek.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-greek.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The file provides modes for monotonic (single-diacritic) and
polytonic (multiple-diacritic) modes of writing. Provision is
made for Greek function names in mathematics, and for
classical-era symbols.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-greek
%doc %{_texmfdistdir}/doc/generic/babel-greek
#- source
%doc %{_texmfdistdir}/source/generic/babel-greek

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17704 |21mr|texlive-babel-hebrew-2.3h-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30273
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-hebrew
Version:	2.3h
Release:	2
Epoch:		1
Summary:	TeXLive babel-hebrew package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-hebrew.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-hebrew.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-hebrew.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-hebrew package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-hebrew/8859-8.def
%{_texmfdistdir}/tex/generic/babel-hebrew/cp1255.def
%{_texmfdistdir}/tex/generic/babel-hebrew/cp862.def
%{_texmfdistdir}/tex/generic/babel-hebrew/he8OmegaHebrew.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8aharoni.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8cmr.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8cmss.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8cmtt.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8david.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8drugulin.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8enc.def
%{_texmfdistdir}/tex/generic/babel-hebrew/he8frankruehl.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8miriam.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8nachlieli.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/he8yad.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/hebcal.sty
%{_texmfdistdir}/tex/generic/babel-hebrew/hebfont.sty
%{_texmfdistdir}/tex/generic/babel-hebrew/hebrew.ldf
%{_texmfdistdir}/tex/generic/babel-hebrew/hebrew_newcode.sty
%{_texmfdistdir}/tex/generic/babel-hebrew/hebrew_oldcode.sty
%{_texmfdistdir}/tex/generic/babel-hebrew/hebrew_p.sty
%{_texmfdistdir}/tex/generic/babel-hebrew/lheclas.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lhecmr.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lhecmss.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lhecmtt.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lhecrml.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lheenc.def
%{_texmfdistdir}/tex/generic/babel-hebrew/lhefr.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lheredis.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lheshold.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lheshscr.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/lheshstk.fd
%{_texmfdistdir}/tex/generic/babel-hebrew/rlbabel.def
%{_texmfdistdir}/tex/generic/babel-hebrew/si960.def
%doc %{_texmfdistdir}/doc/generic/babel-hebrew/00readme.heb
%doc %{_texmfdistdir}/doc/generic/babel-hebrew/heb209.pdf
%doc %{_texmfdistdir}/doc/generic/babel-hebrew/hebinp.pdf
%doc %{_texmfdistdir}/doc/generic/babel-hebrew/hebrew.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-hebrew/heb209.dtx
%doc %{_texmfdistdir}/source/generic/babel-hebrew/hebinp.dtx
%doc %{_texmfdistdir}/source/generic/babel-hebrew/hebrew.dtx
%doc %{_texmfdistdir}/source/generic/babel-hebrew/hebrew.fdd
%doc %{_texmfdistdir}/source/generic/babel-hebrew/hebrew.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17705 |21mr|texlive-babel-hungarian-1.5c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-hungarian
Version:	1.5c
Release:	2
Summary:	Babel support for Hungarian (Magyar)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/hungarian/magyar.ldf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-hungarian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a language definition file that enables
support of Magyar (Hungarian) with babel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-hungarian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17706 |21mr|texlive-babel-icelandic-1.2b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-icelandic
Version:	1.2b
Release:	2
Epoch:		1
Summary:	TeXLive babel-icelandic package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-icelandic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-icelandic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-icelandic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-icelandic package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-icelandic
%doc %{_texmfdistdir}/doc/generic/babel-icelandic
#- source
%doc %{_texmfdistdir}/source/generic/babel-icelandic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17707 |21mr|texlive-babel-interlingua-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30276
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-interlingua
Version:	1.6
Release:	2
Epoch:		1
Summary:	TeXLive babel-interlingua package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-interlingua.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-interlingua.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-interlingua.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-interlingua package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-interlingua/interlingua.ldf
%doc %{_texmfdistdir}/doc/generic/babel-interlingua/interlingua.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-interlingua/interlingua.dtx
%doc %{_texmfdistdir}/source/generic/babel-interlingua/interlingua.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17708 |21mr|texlive-babel-irish-1.0h-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30277
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-irish
Version:	1.0h
Release:	2
Epoch:		1
Summary:	TeXLive babel-irish package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-irish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-irish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-irish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-irish package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-irish/irish.ldf
%doc %{_texmfdistdir}/doc/generic/babel-irish/irish.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-irish/irish.dtx
%doc %{_texmfdistdir}/source/generic/babel-irish/irish.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17709 |21mr|texlive-babel-italian-1.3n-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33321
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/italian
# catalog-date 2014-03-29 17:24:56 +0100
# catalog-license lppl1.3
# catalog-version 1.3k
Name:		texlive-babel-italian
Version:	1.3n
Release:	2
Summary:	Babel support for Italian text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/italian
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-italian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-italian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-italian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides language definitions for use in babel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-italian/italian.ldf
%doc %{_texmfdistdir}/doc/generic/babel-italian/italian.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-italian/italian.dtx
%doc %{_texmfdistdir}/source/generic/babel-italian/italian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17710 |21mr|texlive-babel-kurmanji-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30279
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-kurmanji
Version:	1.1
Release:	2
Epoch:		1
Summary:	TeXLive babel-kurmanji package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-kurmanji.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-kurmanji.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-kurmanji.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-kurmanji package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-kurmanji/kurmanji.ldf
%doc %{_texmfdistdir}/doc/generic/babel-kurmanji/kurmanji.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-kurmanji/kurmanji.dtx
%doc %{_texmfdistdir}/source/generic/babel-kurmanji/kurmanji.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17711 |21mr|texlive-babel-latin-3.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30280
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-latin
Version:	3.5
Release:	2
Epoch:		1
Summary:	TeXLive babel-latin package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-latin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-latin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-latin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-latin package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-latin/latin.ldf
%doc %{_texmfdistdir}/doc/generic/babel-latin/latin.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-latin/latin.dtx
%doc %{_texmfdistdir}/source/generic/babel-latin/latin.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17712 |21mr|texlive-babel-norsk-2.0i-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30281
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-norsk
Version:	2.0i
Release:	2
Epoch:		1
Summary:	TeXLive babel-norsk package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-norsk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-norsk.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-norsk.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-norsk package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-norsk/norsk.ldf
%doc %{_texmfdistdir}/doc/generic/babel-norsk/norsk.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-norsk/norsk.dtx
%doc %{_texmfdistdir}/source/generic/babel-norsk/norsk.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17713 |21mr|texlive-babel-piedmontese-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30282
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-piedmontese
Version:	1.0
Release:	2
Epoch:		1
Summary:	TeXLive babel-piedmontese package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-piedmontese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-piedmontese.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-piedmontese.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-piedmontese package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-piedmontese/piedmontese.ldf
%doc %{_texmfdistdir}/doc/generic/babel-piedmontese/piedmontese.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-piedmontese/piedmontese.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17714 |21mr|texlive-babel-polish-1.2l-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30283
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-polish
Version:	1.2l
Release:	2
Epoch:		1
Summary:	TeXLive babel-polish package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-polish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-polish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-polish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-polish package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-polish/polish.ldf
%doc %{_texmfdistdir}/doc/generic/babel-polish/polish.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-polish/polish.dtx
%doc %{_texmfdistdir}/source/generic/babel-polish/polish.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17715 |21mr|texlive-babel-portuges-1.2q-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30284
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-portuges
Version:	1.2q
Release:	2
Epoch:		1
Summary:	TeXLive babel-portuges package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-portuges.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-portuges.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-portuges.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-portuges package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-portuges/portuges.ldf
%doc %{_texmfdistdir}/doc/generic/babel-portuges/portuges.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-portuges/portuges.dtx
%doc %{_texmfdistdir}/source/generic/babel-portuges/portuges.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17716 |21mr|texlive-babel-romanian-1.2l-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30285
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-romanian
Version:	1.2l
Release:	2
Epoch:		1
Summary:	TeXLive babel-romanian package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-romanian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-romanian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-romanian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-romanian package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-romanian/romanian.ldf
%doc %{_texmfdistdir}/doc/generic/babel-romanian/romanian.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-romanian/romanian.dtx
%doc %{_texmfdistdir}/source/generic/babel-romanian/romanian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17717 |21mr|texlive-babel-romansh-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30286
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/romansh
# catalog-date 2013-05-04 16:14:02 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-babel-romansh
Version:	20190228
Release:	1
Summary:	Babel/Polyglossia support for the Romansh language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/romansh
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-romansh.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-romansh.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-romansh.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a language description file that enables
support of Romansh either with babel or with polyglossia.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-romansh/romansh.ldf
%doc %{_texmfdistdir}/doc/generic/babel-romansh/romansh.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-romansh/romansh.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17718 |21mr|texlive-babel-russian-1.3j-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30287
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/russian
# catalog-date 2013-05-03 12:18:01 +0200
# catalog-license lppl1.3
# catalog-version 1.3
Name:		texlive-babel-russian
Version:	1.3j
Release:	2
Summary:	Russian language module for Babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/russian
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-russian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-russian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-russian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for use of Babel in documents
written in Russian. The package is adapted for use both under
'traditional' TeX engines, and under XeTeX and LuaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-russian/russianb.ldf
%doc %{_texmfdistdir}/doc/generic/babel-russian/README
%doc %{_texmfdistdir}/doc/generic/babel-russian/russianb.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-russian/russianb.dtx
%doc %{_texmfdistdir}/source/generic/babel-russian/russianb.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17719 |21mr|texlive-babel-samin-1.0c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30288
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-samin
Version:	1.0c
Release:	2
Epoch:		1
Summary:	TeXLive babel-samin package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-samin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-samin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-samin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-samin package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-samin/samin.ldf
%doc %{_texmfdistdir}/doc/generic/babel-samin/samin.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-samin/samin.dtx
%doc %{_texmfdistdir}/source/generic/babel-samin/samin.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17720 |21mr|texlive-babel-scottish-1.0g-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30289
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-scottish
Version:	1.0g
Release:	2
Epoch:		1
Summary:	TeXLive babel-scottish package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-scottish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-scottish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-scottish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-scottish package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-scottish/scottish.ldf
%doc %{_texmfdistdir}/doc/generic/babel-scottish/scottish.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-scottish/scottish.dtx
%doc %{_texmfdistdir}/source/generic/babel-scottish/scottish.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17721 |21mr|texlive-babel-serbian-1.0d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30290
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-serbian
Version:	1.0d
Release:	2
Epoch:		1
Summary:	TeXLive babel-serbian package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-serbian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-serbian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-serbian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-serbian package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-serbian/serbian.ldf
%doc %{_texmfdistdir}/doc/generic/babel-serbian/serbian.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-serbian/serbian.dtx
%doc %{_texmfdistdir}/source/generic/babel-serbian/serbian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17722 |21mr|texlive-babel-serbianc-2.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30348
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/serbianc
# catalog-date 2013-05-04 16:25:22 +0200
# catalog-license lppl1.3
# catalog-version 2.2
Name:		texlive-babel-serbianc
Version:	2.2
Release:	10
Summary:	Babel module to support Serbian Cyrillic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/serbianc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-serbianc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-serbianc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-serbianc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for Serbian documents written in
Cyrillic, in babel.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-serbianc/serbianc.ldf
%{_texmfdistdir}/tex/generic/babel-serbianc/serbianc.sty
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/COPYING
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/ChangeLog
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/Copyright
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/INSTALL
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/README
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/README.Files
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/README.serbianc
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/sample.pdf
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/sample.tex
%doc %{_texmfdistdir}/doc/generic/babel-serbianc/serbianc.patch
#- source
%doc %{_texmfdistdir}/source/generic/babel-serbianc/serbianc.dtx
%doc %{_texmfdistdir}/source/generic/babel-serbianc/serbianc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17723 |21mr|texlive-babel-slovak-3.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30292
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-slovak
Version:	3.1a
Release:	2
Epoch:		1
Summary:	TeXLive babel-slovak package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-slovak.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-slovak.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-slovak.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-slovak package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-slovak/slovak.ldf
%doc %{_texmfdistdir}/doc/generic/babel-slovak/slovak.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-slovak/slovak.dtx
%doc %{_texmfdistdir}/source/generic/babel-slovak/slovak.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17724 |21mr|texlive-babel-slovenian-1.2i-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30351
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/slovene
# catalog-date 2013-05-08 21:33:39 +0200
# catalog-license lppl1.3
# catalog-version 1.2i
Name:		texlive-babel-slovenian
Version:	1.2i
Release:	10
Summary:	Babel support for typesetting Slovenian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/slovene
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-slovenian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-slovenian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-slovenian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the language definition file for support
of Slovenian in babel. Several shortcuts are defined, as well
as translations to Slovenian of standard "LaTeX names".


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-slovenian/slovene.ldf
%doc %{_texmfdistdir}/doc/generic/babel-slovenian/slovene.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-slovenian/slovene.dtx
%doc %{_texmfdistdir}/source/generic/babel-slovenian/slovene.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17725 |21mr|texlive-babel-sorbian-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30294
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-sorbian
Version:	20190228
Release:	1
Summary:	TeXLive babel-sorbian package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-sorbian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-sorbian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-sorbian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-sorbian package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-sorbian/lsorbian.ldf
%{_texmfdistdir}/tex/generic/babel-sorbian/usorbian.ldf
%doc %{_texmfdistdir}/doc/generic/babel-sorbian/lsorbian.pdf
%doc %{_texmfdistdir}/doc/generic/babel-sorbian/usorbian.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-sorbian/lsorbian.dtx
%doc %{_texmfdistdir}/source/generic/babel-sorbian/sorbian.ins
%doc %{_texmfdistdir}/source/generic/babel-sorbian/usorbian.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17726 |21mr|texlive-babel-spanish-5.0p-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-spanish
Version:	5.0p
Release:	2
Summary:	Babel support for Spanish
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/spanish
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-spanish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-spanish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-spanish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle provides the means to typeset Spanish text, with
the support provided by the LaTeX standard package babel. Note
that separate support is provided for those who wish to typeset
Spanish as written in Mexico.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-spanish
%doc %{_texmfdistdir}/doc/generic/babel-spanish
#- source
%doc %{_texmfdistdir}/source/generic/babel-spanish

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17727 |21mr|texlive-babel-swedish-2.3d-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30296
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/swedish
# catalog-date 2013-05-06 23:49:45 +0200
# catalog-license lppl1.3
# catalog-version 2.3d
Name:		texlive-babel-swedish
Version:	2.3d
Release:	10
Summary:	Babel support for typesetting Swedish
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/swedish
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-swedish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-swedish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-swedish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the language definition file for Swedish.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-swedish/swedish.ldf
%doc %{_texmfdistdir}/doc/generic/babel-swedish/swedish.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-swedish/swedish.dtx
%doc %{_texmfdistdir}/source/generic/babel-swedish/swedish.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17728 |21mr|texlive-babel-thai-1.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30564
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/thai
# catalog-date 2013-05-19 01:05:23 +0200
# catalog-license lppl1.3
# catalog-version 1.0.0
Name:		texlive-babel-thai
Version:	1.0.0
Release:	10
Summary:	Support for Thai within babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/thai
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-thai.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-thai.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-thai.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for typesetting Thai text. within
the babel system.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-thai/lthenc.def
%{_texmfdistdir}/tex/generic/babel-thai/thai.ldf
%{_texmfdistdir}/tex/generic/babel-thai/tis620.def
%doc %{_texmfdistdir}/doc/generic/babel-thai/thai.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-thai/thai.dtx
%doc %{_texmfdistdir}/source/generic/babel-thai/thai.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17729 |21mr|texlive-babel-turkish-1.30b-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32676
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/turkish
# catalog-date 2014-01-14 18:49:01 +0100
# catalog-license lppl1.3
# catalog-version 1.3
Name:		texlive-babel-turkish
Version:	1.30b
Release:	6
Summary:	Babel support for Turkish documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/turkish
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-turkish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-turkish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-turkish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support, within babel, of the Turkish
language.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-turkish/turkish.ldf
%doc %{_texmfdistdir}/doc/generic/babel-turkish/README
%doc %{_texmfdistdir}/doc/generic/babel-turkish/turkish.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-turkish/turkish.dtx
%doc %{_texmfdistdir}/source/generic/babel-turkish/turkish.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17730 |21mr|texlive-babel-ukraineb-20131013-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30298
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-babel-ukraineb
Version:	20131013
Release:	10
Summary:	TeXLive babel-ukraineb package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-ukraineb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-ukraineb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-ukraineb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive babel-ukraineb package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-ukraineb/ukraineb.ldf
%doc %{_texmfdistdir}/doc/generic/babel-ukraineb/ukraineb.pdf
#- source
%doc %{_texmfdistdir}/source/generic/babel-ukraineb/ukraineb.dtx
%doc %{_texmfdistdir}/source/generic/babel-ukraineb/ukraineb.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17731 |21mr|texlive-babel-vietnamese-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-vietnamese
Version:	1.4
Release:	2
Summary:	Babel support for typesetting Vietnamese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/vietnamese
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-vietnamese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-vietnamese.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the language definition file for support
of Vietnamese in babel.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-vietnamese
#- source
%doc %{_texmfdistdir}/source/generic/babel-vietnamese

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17732 |21mr|texlive-babel-welsh-1.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-babel-welsh
Version:	1.1a
Release:	2
Summary:	babel-welshBabel support for Welsh
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/welsh
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-welsh.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-welsh.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/babel-welsh.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the language definition file for Welsh.
(Mostly Welsh-language versions of the standard names in a
LaTeX file.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/babel-welsh
%doc %{_texmfdistdir}/doc/generic/babel-welsh
#- source
%doc %{_texmfdistdir}/source/generic/babel-welsh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17733 |21mr|texlive-background-2.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33100
# category Package
# catalog-ctan /macros/latex/contrib/background
# catalog-date 2014-03-04 21:07:04 +0100
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-background
Version:	2.1
Release:	6
Summary:	Placement of background material on pages of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/background
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/background.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/background.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/background.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers the placement of background material on the
pages of a document. The user can control many aspects
(contents, position, color, opacity) of the background material
that will be displayed; all placement and attribute settings
are controlled by setting key values. The package makes use of
the everypage package, and uses pgf/tikz for attribute control.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/background/background.sty
%doc %{_texmfdistdir}/doc/latex/background/README
%doc %{_texmfdistdir}/doc/latex/background/background.pdf
#- source
%doc %{_texmfdistdir}/source/latex/background/background.dtx
%doc %{_texmfdistdir}/source/latex/background/background.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17734 |21mr|texlive-bangtex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/bangtex
# catalog-date 2006-12-14 21:17:11 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-bangtex
Version:	20190228
Release:	1
Summary:	Writing Bangla and Assamese with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/bangtex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bangtex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bangtex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides class files for writing Bangla and Assamese
with LaTeX, and MetaFont sources for fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/bangtex/bang10.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangbase.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangconso.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangdefs.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangfala.mf
%{_texmfdistdir}/fonts/source/public/bangtex/banghalf.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangjuk.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangkaar.mf
%{_texmfdistdir}/fonts/source/public/bangtex/banglig.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangmac.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangnum.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangpunc.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangsl10.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangvow.mf
%{_texmfdistdir}/fonts/source/public/bangtex/bangwd10.mf
%{_texmfdistdir}/fonts/tfm/public/bangtex/bang10.tfm
%{_texmfdistdir}/fonts/tfm/public/bangtex/bangsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/bangtex/bangwd10.tfm
%{_texmfdistdir}/tex/latex/bangtex/bangfont.tex
%{_texmfdistdir}/tex/latex/bangtex/barticle.cls
%{_texmfdistdir}/tex/latex/bangtex/bbk10.clo
%{_texmfdistdir}/tex/latex/bangtex/bbk11.clo
%{_texmfdistdir}/tex/latex/bangtex/bbk12.clo
%{_texmfdistdir}/tex/latex/bangtex/bbook.cls
%{_texmfdistdir}/tex/latex/bangtex/bletter.cls
%{_texmfdistdir}/tex/latex/bangtex/bsize10.clo
%{_texmfdistdir}/tex/latex/bangtex/bsize11.clo
%{_texmfdistdir}/tex/latex/bangtex/bsize12.clo
%doc %{_texmfdistdir}/doc/latex/bangtex/README.bangtex
%doc %{_texmfdistdir}/doc/latex/bangtex/manual.tex
%doc %{_texmfdistdir}/doc/latex/bangtex/samplett.tex
%doc %{_texmfdistdir}/doc/latex/bangtex/samptex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17735 |21mr|texlive-bankstatement-0.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 38857
# category Package
# catalog-ctan /macros/latex/contrib/bankstatement
# catalog-date 2017-04-18 05:31:40 +0200
# catalog-license lppl
# catalog-version 0.9.2
Name:		texlive-bankstatement
Version:	0.9.2
Release:	2
Summary:	A LaTeX class for bank statements based on csv data
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/bankstatement
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/bankstatement/bankstatement.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/bankstatement/bankstatement.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
More and more banks allow their customers to download posting
records in various formats. By using the bankstatement class,
you can create bank statements, as long as a csv format is
available. At the moment, the csv-mt940 and csv-camt formats --
used by many german Sparkassen -- are supported. You can quite
easily add support for other csv formats. Simply define the
order of the keys in the csv data file and how to use them. The
terminology in this class -- such as BIC (Business Identifier
Code) or IBAN (International Bank Account Number) -- is based
on usage in the SEPA (Single Euro Payments Area). The user may
adjust the terminology to suit local needs.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bankstatement/bankstatement.cls
%{_texmfdistdir}/tex/latex/bankstatement/csv-camt.def
%{_texmfdistdir}/tex/latex/bankstatement/csv-mt940.def
%{_texmfdistdir}/tex/latex/bankstatement/csv-standard-bank-na.def
%{_texmfdistdir}/tex/latex/bankstatement/stmenglish.def
%{_texmfdistdir}/tex/latex/bankstatement/stmgerman.def
%{_texmfdistdir}/tex/latex/bankstatement/stmnamibian.def
%doc %{_texmfdistdir}/doc/latex/bankstatement/201412.csv
%doc %{_texmfdistdir}/doc/latex/bankstatement/bankstatement.dtx
%doc %{_texmfdistdir}/doc/latex/bankstatement/bankstatement.pdf
%doc %{_texmfdistdir}/doc/latex/bankstatement/bankstatement-example.pdf
%doc %{_texmfdistdir}/doc/latex/bankstatement/bankstatement-example.tex
%doc %{_texmfdistdir}/doc/latex/bankstatement/makefile
%doc %{_texmfdistdir}/doc/latex/bankstatement/README.md
%doc %{_texmfdistdir}/doc/latex/bankstatement/stmlogo.jpg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17736 |21mr|texlive-bardiag-0.4a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22013
# category Package
# catalog-ctan /graphics/bardiag
# catalog-date 2006-12-21 16:38:41 +0100
# catalog-license lppl
# catalog-version 0.4a
Name:		texlive-bardiag
Version:	0.4a
Release:	7
Summary:	LateX package for drawing bar diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/bardiag
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bardiag.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bardiag.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The main purpose of the package is to make the drawing of bar
diagrams possible and easy in LaTeX. The BarDiag package is
inspired by and based on PSTricks.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bardiag/barddoc.sty
%{_texmfdistdir}/tex/latex/bardiag/bardiag.bar
%{_texmfdistdir}/tex/latex/bardiag/bardiag.cfg
%{_texmfdistdir}/tex/latex/bardiag/bardiag.sty
%{_texmfdistdir}/tex/latex/bardiag/pstfp.sty
%doc %{_texmfdistdir}/doc/latex/bardiag/README
%doc %{_texmfdistdir}/doc/latex/bardiag/bardiag.pdf
%doc %{_texmfdistdir}/doc/latex/bardiag/bardiag.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/bardiag1.pdf
%doc %{_texmfdistdir}/doc/latex/bardiag/bardiag1.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/bardiag2.pdf
%doc %{_texmfdistdir}/doc/latex/bardiag/bardiag2.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/altdiags.ps
%doc %{_texmfdistdir}/doc/latex/bardiag/example/altdiags.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/compile.all
%doc %{_texmfdistdir}/doc/latex/bardiag/example/diagrams.dvi
%doc %{_texmfdistdir}/doc/latex/bardiag/example/diagrams.ps
%doc %{_texmfdistdir}/doc/latex/bardiag/example/diagrams.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/diagramsbw.ps
%doc %{_texmfdistdir}/doc/latex/bardiag/example/diagramsbw.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/10.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/1a.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/1b.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/2a.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/2b.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/3.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/4.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/5.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/6.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/7.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/8.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/example/src/9.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/diag.eps
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/diagleg.eps
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp1.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp1a.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp1b.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp2.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp2er.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp3.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp4.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp5.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/examp6.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/exampcr.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/figs/tddiag.eps
%doc %{_texmfdistdir}/doc/latex/bardiag/src/10.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/1a.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/1b.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/2a.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/2b.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/3.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/4.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/5.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/6.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/7.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/8.tex
%doc %{_texmfdistdir}/doc/latex/bardiag/src/9.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17737 |21mr|texlive-bartel-chess-fonts-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20619
# category Package
# catalog-ctan /fonts/bartel-chess-fonts
# catalog-date 2010-11-29 08:56:06 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-bartel-chess-fonts
Version:	20190228
Release:	1
Summary:	A set of fonts supporting chess diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/bartel-chess-fonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bartel-chess-fonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bartel-chess-fonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts are provided as MetaFont source.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-bishop.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-blackfield.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-chbase.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-equi.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-geo.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-king.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-knight.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-pawn.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-queen.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/elch-rook.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch10.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch11.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch12.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch13.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch14.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch16.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch17.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch20.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch24.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch32.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch36.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch6.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch7.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch8.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/fselch9.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkbase.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkbishop.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkblackfield.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkelch10.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkelch11.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkelch12.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkelch14.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkelch16.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkelch8.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkelch9.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkgeo.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkking.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkknight.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkpawn.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkqueen.mf
%{_texmfdistdir}/fonts/source/public/bartel-chess-fonts/pkrook.mf
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch10.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch11.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch12.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch13.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch14.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch16.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch17.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch20.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch24.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch32.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch36.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch6.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch7.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch8.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/fselch9.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/pkelch10.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/pkelch11.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/pkelch12.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/pkelch14.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/pkelch16.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/pkelch8.tfm
%{_texmfdistdir}/fonts/tfm/public/bartel-chess-fonts/pkelch9.tfm
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/README
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/CGA.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/agfa.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/amiga-PAL.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/amiga.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/chess.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/fselch15.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/fselch30.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/fselch34.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/fselch5mm.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/pkelch.mfj
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/pkfootbows.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/pkmakeneutral.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/pkparallel.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/pkscreengrid.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/pkshorten.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px150.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px17.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px20.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px21.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px23.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px25.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px29.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px31.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px33.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px41.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px45.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px49.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px53.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px57.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px63.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px700.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px71.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px72.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px79.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/px9.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/scan.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/screengrid.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/tt.mf
%doc %{_texmfdistdir}/doc/fonts/bartel-chess-fonts/other-sources/turnboard.mf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17738 |21mr|texlive-bashful-0.93-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25597
# category Package
# catalog-ctan /macros/latex/contrib/bashful
# catalog-date 2011-06-17 14:38:58 +0200
# catalog-license lppl1.3
# catalog-version 0.92
Name:		texlive-bashful
Version:	0.93
Release:	3
Summary:	Invoke bash commands from within LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bashful
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bashful.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bashful.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes it possible to execute Unix bash shell
scripts from within LaTeX. The main application is in writing
computer-science texts, in which you want to make sure the
programs listed in the document are executed directly from the
input. The package may use other Unix shells than bash, but
does not work without modification in a Windows environment.
The package requires the -shell-escape flag when LaTeX is
processing your document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bashful/bashful.sty
%doc %{_texmfdistdir}/doc/latex/bashful/Makefile
%doc %{_texmfdistdir}/doc/latex/bashful/README
%doc %{_texmfdistdir}/doc/latex/bashful/bashful.pdf
%doc %{_texmfdistdir}/doc/latex/bashful/bashful.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17739 |21mr|texlive-basicarith-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-basicarith
Version:	1.1
Release:	1
Summary:	The package provides macros for typesetting basic arithmetic
Group:		Publishing
URL:		https://ctan.org/pkg/basicarith
License:	MIT
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/basicarith.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/basicarith.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/basicarith.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for typesetting basic arithmetic, in the style typically found in textbooks.
It focuses on the American style of performing these algorithms.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17740 |21mr|texlive-basque-book-1.20-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27049
# category Package
# catalog-ctan /macros/latex/contrib/basque-book
# catalog-date 2012-07-09 13:17:27 +0200
# catalog-license lppl1.2
# catalog-version 1.20
Name:		texlive-basque-book
Version:	1.20
Release:	6
Summary:	Class for book-type documents written in Basque
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/basque-book
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/basque-book.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/basque-book.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/basque-book.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is derived from the LaTeX book class. The extensions
solve grammatical and numeration issues that occur when book-
type documents are written in Basque. The class is useful for
writing books, PhD and Master Theses, etc., in Basque.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/basque-book
%doc %{_texmfdistdir}/doc/latex/basque-book
#- source
%doc %{_texmfdistdir}/source/latex/basque-book

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17741 |21mr|texlive-basque-date-1.05-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26477
# category Package
# catalog-ctan /macros/latex/contrib/basque-date
# catalog-date 2012-05-17 14:56:37 +0200
# catalog-license lppl1.2
# catalog-version 1.05
Name:		texlive-basque-date
Version:	1.05
Release:	6
Summary:	Print the date in Basque
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/basque-date
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/basque-date.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/basque-date.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/basque-date.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides two LaTeX commands to print the current
date in Basque according to the correct forms ruled by The
Basque Language Academy (Euskaltzaindia). The commands
automatically solve the complex declination issues of numbers
in Basque.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/basque-date/basque-date.sty
%doc %{_texmfdistdir}/doc/latex/basque-date/README
%doc %{_texmfdistdir}/doc/latex/basque-date/basque-date.pdf
#- source
%doc %{_texmfdistdir}/source/latex/basque-date/basque-date.dtx
%doc %{_texmfdistdir}/source/latex/basque-date/basque-date.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17742 |21mr|texlive-bbcard-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/bbcard
# catalog-date 2008-08-17 01:00:50 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-bbcard
Version:	20190228
Release:	1
Summary:	Bullshit bingo, calendar and baseball-score cards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/bbcard
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbcard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbcard.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Three jiffy packages for creating cards of various sorts with
MetaPost.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/bbcard/bbcard.mp
%{_texmfdistdir}/metapost/bbcard/breakwidth.mp
%{_texmfdistdir}/metapost/bbcard/calendar.mp
%{_texmfdistdir}/metapost/bbcard/scorecard.mp
%doc %{_texmfdistdir}/doc/metapost/bbcard/README.TEXLIVE
%doc %{_texmfdistdir}/doc/metapost/bbcard/README.bbcard
%doc %{_texmfdistdir}/doc/metapost/bbcard/README.calendar
%doc %{_texmfdistdir}/doc/metapost/bbcard/README.scorecard

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17743 |21mr|texlive-bbm-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/cm/bbm
# catalog-date 2009-11-19 15:03:53 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-bbm
Version:	20190228
Release:	1
Summary:	"Blackboard-style" cm fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cm/bbm
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Blackboard variants of Computer Modern fonts. The fonts are
distributed as MetaFont source (only); LaTeX support is
available with the bbm-macros package. The Sauter font package
has MetaFont parameter source files for building the fonts at
more sizes than you could reasonably imagine. A sample of these
fonts appears in the blackboard bold sampler.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/bbm/bbm10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbm12.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbm17.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbm5.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbm6.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbm7.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbm8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbm9.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmb10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmbx10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmbx12.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmbx5.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmbx6.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmbx7.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmbx8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmbx9.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmbxsl10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmdunh10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmfib8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmfxib8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbminch.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmsl10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmsl12.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmsl8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmsl9.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmsltt10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmss10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmss12.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmss17.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmss8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmss9.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssbx10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssdc10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssi10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssi12.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssi17.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssi8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssi9.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssq8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmssqi8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmtt10.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmtt12.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmtt8.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmtt9.mf
%{_texmfdistdir}/fonts/source/public/bbm/bbmvtt10.mf
%{_texmfdistdir}/fonts/source/public/bbm/blbbase.mf
%{_texmfdistdir}/fonts/source/public/bbm/blbord.mf
%{_texmfdistdir}/fonts/source/public/bbm/blbordl.mf
%{_texmfdistdir}/fonts/source/public/bbm/blbordsp.mf
%{_texmfdistdir}/fonts/source/public/bbm/blbordu.mf
%{_texmfdistdir}/fonts/tfm/public/bbm/bbm10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbm12.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbm17.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbm5.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbm6.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbm7.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbm8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbm9.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmfib8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmfxib8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbm/bbmtt9.tfm
%doc %{_texmfdistdir}/doc/fonts/bbm/README
%doc %{_texmfdistdir}/doc/fonts/bbm/gfbatch.batch
%doc %{_texmfdistdir}/doc/fonts/bbm/mfbatch.batch
%doc %{_texmfdistdir}/doc/fonts/bbm/test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17744 |21mr|texlive-bbm-macros-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17224
# category Package
# catalog-ctan /macros/latex/contrib/bbm
# catalog-date 2010-02-15 23:28:51 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-bbm-macros
Version:	20190228
Release:	1
Summary:	LaTeX support for "blackboard-style" cm fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bbm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbm-macros.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbm-macros.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbm-macros.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides LaTeX support for Blackboard variants of Computer
Modern fonts. Declares a font family bbm so you can in
principle write running text in blackboard bold, and lots of
math alphabets for using the fonts within maths.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bbm-macros/bbm.sty
%{_texmfdistdir}/tex/latex/bbm-macros/ubbm.fd
%{_texmfdistdir}/tex/latex/bbm-macros/ubbmss.fd
%{_texmfdistdir}/tex/latex/bbm-macros/ubbmtt.fd
%doc %{_texmfdistdir}/doc/latex/bbm-macros/README
%doc %{_texmfdistdir}/doc/latex/bbm-macros/bbm.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bbm-macros/bbm.drv
%doc %{_texmfdistdir}/source/latex/bbm-macros/bbm.dtx
%doc %{_texmfdistdir}/source/latex/bbm-macros/bbm.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17745 |21mr|texlive-bbold-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17187
# category Package
# catalog-ctan /fonts/bbold
# catalog-date 2010-02-15 23:28:51 +0100
# catalog-license bsd
# catalog-version 1.01
Name:		texlive-bbold
Version:	1.01
Release:	7
Summary:	Sans serif blackboard bold
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/bbold
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbold.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbold.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bbold.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A geometric sans serif blackboard bold font, for use in
mathematics; MetaFont sources are provided, as well as macros
for use with LaTeX. The Sauter font package has MetaFont
parameter source files for building the fonts at more sizes
than you could reasonably imagine. See the blackboard sampler
for a feel for the font's appearance.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/bbold/bbbase.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbgreekl.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbgreeku.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbligs.mf
%{_texmfdistdir}/fonts/source/public/bbold/bblower.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbnum.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold10.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold12.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold17.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold5.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold6.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold7.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold8.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbold9.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbparams.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbpunc.mf
%{_texmfdistdir}/fonts/source/public/bbold/bbupper.mf
%{_texmfdistdir}/fonts/tfm/public/bbold/bbold10.tfm
%{_texmfdistdir}/fonts/tfm/public/bbold/bbold12.tfm
%{_texmfdistdir}/fonts/tfm/public/bbold/bbold17.tfm
%{_texmfdistdir}/fonts/tfm/public/bbold/bbold5.tfm
%{_texmfdistdir}/fonts/tfm/public/bbold/bbold6.tfm
%{_texmfdistdir}/fonts/tfm/public/bbold/bbold7.tfm
%{_texmfdistdir}/fonts/tfm/public/bbold/bbold8.tfm
%{_texmfdistdir}/fonts/tfm/public/bbold/bbold9.tfm
%{_texmfdistdir}/tex/latex/bbold/Ubbold.fd
%{_texmfdistdir}/tex/latex/bbold/bbold.sty
%doc %{_texmfdistdir}/doc/latex/bbold/INSTALL
%doc %{_texmfdistdir}/doc/latex/bbold/README
%doc %{_texmfdistdir}/doc/latex/bbold/bbold.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bbold/bbold.dtx
%doc %{_texmfdistdir}/source/latex/bbold/bbold.ins
%doc %{_texmfdistdir}/source/latex/bbold/fonttabl.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17746 |21mr|texlive-bchart-0.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bchart
Version:	0.1.3
Release:	2
Summary:	Draw simple bar charts in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bchart
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bchart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bchart.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides horizontal bar charts, drawn using TikZ on
a numeric X-axis. The focus of the package is simplicity and
aesthetics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bchart
%doc %{_texmfdistdir}/doc/latex/bchart

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17747 |21mr|texlive-bclogo-3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bclogo
Version:	3.1
Release:	2
Summary:	Creating colourful boxes with logos
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/bclogo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bclogo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bclogo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package facilitates the creation of colorful boxes with a
title and logo. It may use either tikz or PSTricks as graphics
engine.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/bclogo
%{_texmfdistdir}/tex/latex/bclogo
%doc %{_texmfdistdir}/doc/latex/bclogo

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17748 |21mr|texlive-beamer2thesis-2.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24496
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/themes/beamer2thesis
# catalog-date 2011-10-28 19:27:59 +0200
# catalog-license lppl
# catalog-version 2.2
Name:		texlive-beamer2thesis
Version:	2.2
Release:	8
Summary:	Thesis presentations using beamer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/themes/beamer2thesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamer2thesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamer2thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package specifies a beamer theme for presenting a thesis.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamer2thesis/beamer2thesis.jpg
%{_texmfdistdir}/tex/latex/beamer2thesis/beamercolorthemetorinoth.sty
%{_texmfdistdir}/tex/latex/beamer2thesis/beamerfontthemetorinoth.sty
%{_texmfdistdir}/tex/latex/beamer2thesis/beamerinnerthemetorinoth.sty
%{_texmfdistdir}/tex/latex/beamer2thesis/beamerouterthemetorinoth.sty
%{_texmfdistdir}/tex/latex/beamer2thesis/beamerthemeTorinoTh.sty
%{_texmfdistdir}/tex/latex/beamer2thesis/logopolito.jpg
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/README
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/beamer2thesis.pdf
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/beamer2thesis.tex
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/beamer2thesis_ita.pdf
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/beamer2thesis_ita.tex
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/content_end.tex
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/content_end_ita.tex
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/content_initial.tex
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/content_initial_ita.tex
%doc %{_texmfdistdir}/doc/latex/beamer2thesis/license

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17749 |21mr|texlive-beamer-3.55-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamer
Version:	3.55
Release:	1
Summary:	A LaTeX class for producing presentations and slides
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-pgf
Requires:	texlive-xcolor

%description
The beamer LaTeX class can be used for producing slides. Its
functionality is similar to Prosper but does not need any
external programs and can directly produce a presentation using
pdflatex. Beamer uses pgf for pdf/ps independent graphics.
Frames are created using \frame{...}, and a frame can build
multiple slides through a simple notation for specifying
material for each slide within a frame. Beamer supports
bibliographies, appendicies and transitions. Short versions of
title, authors, institute can also be specified as optional
parameters. A \plainframe{} allows a picture, for example, to
fill the whole frame. Support figure and table environments,
transparency effects, a \transduration command, animation
commands, a pauses environment. Beamer also provides
compatibility with other packages like prosper. The package now
incorporates the functionality of the former translator
package, which is used for customising the package for use in
other language environments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamer
%doc %{_texmfdistdir}/doc/latex/beamer

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17750 |21mr|texlive-beameraudience-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23427
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/beameraudience
# catalog-date 2011-08-05 01:50:01 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-beameraudience
Version:	0.1
Release:	7
Summary:	Assembling beamer frames according to audience
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/beameraudience
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beameraudience.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beameraudience.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Beamer Audience package provides macros to easily assemble
frames according to different audiences. It enables to pick up
the frames for a specific audience while leaving their order
according to a logical structure in the LaTeX source.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beameraudience/beameraudience.sty
%doc %{_texmfdistdir}/doc/latex/beameraudience/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17751 |21mr|texlive-beamercolorthemeowl-0.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamercolorthemeowl
Version:	0.1.1
Release:	1
Summary:	This package provides a flexible dark or light colour theme
Group:		Publishing
URL:		https://ctan.org/pkg/beamercolorthemeowl
License:	The LATEX Project Public License 1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/beamercolorthemeowl.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/beamercolorthemeowl.doc.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/beamercolorthemeowl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a flexible dark or light colour theme designed for maximum
readability in environments where most themes fall flat.

Main features:

Dark color theme for presenting in low-light conditions.
Optional light color theme for presenting in bright ambient light.
Redefines color names “red”, “green”, “blue”, “yellow” to values that are visible
when displayed by certain projectors, particularly those with a very bright green
channel and dim red and blue channels. This behaviour can be optionally disabled,
with the provided colours also available as “OwlRed”, “OwlGreen”, etc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17752 |21mr|texlive-beamerdarkthemes-0.5.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamerdarkthemes
Version:	0.5.1
Release:	1
Summary:	A package with three dark color themes for beamer, designed for presentations with pictures and/or for bright rooms without screen
Group:		Publishing
URL:		https://ctan.org/pkg/beamerdarkthemes
License:	CC BY 4.0
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/beamerdarkthemes.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/beamerdarkthemes.doc.tar.xz
BuildArch:	noarch
BuildRequires:  texlive-tlpkg
Requires(pre):  texlive-tlpkg
Requires(post):  texlive-kpathsea

%description
A package with three dark color themes for beamer, designed for presentations with pictures and/or for bright rooms without screen

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17753 |21mr|texlive-beamer-FUBerlin-0.02b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamer-FUBerlin
Version:	0.02b
Release:	2
Summary:	Beamer, using the style of FU Berlin
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-FUBerlin
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamer-FUBerlin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamer-FUBerlin.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a beamer-derived class and a theme style
file for the corporate design of the Free University in Berlin.
Users may use the class itself (FUbeamer) or use the theme in
the usual way with \usetheme{BerlinFU}. Examples of using both
the class and the theme are provided; the PDF is visually
identical, so the catalogue only lists one; the sources of the
examples do of course differ.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamer-FUBerlin
%doc %{_texmfdistdir}/doc/latex/beamer-FUBerlin

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}/tex/latex/beamer-FUBerlin
cp -fpar doc/latex/beamer-FUBerlin/tex/latex/* %{buildroot}%{_texmfdistdir}/tex/latex/beamer-FUBerlin
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17754 |21mr|texlive-beamerposter-1.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17066
# category Package
# catalog-ctan /macros/latex/contrib/beamerposter
# catalog-date 2010-02-16 13:45:15 +0100
# catalog-license lppl
# catalog-version 1.07
Name:		texlive-beamerposter
Version:	1.13
Release:	2
Summary:	Extend beamer and a0poster for custom sized posters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamerposter
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamerposter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamerposter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to use beamer style operations on
a canvas of the sizes provided by a0poster; font scaling is
available (using packages such as type1cm if necessary). In
addition, the package allows the user to benefit from the nice
colour box handling and alignment provided by the beamer class
(for example, with rounded corners and shadows). Good looking
posters may be created very rapidly. Features include: -
scalable fonts using the fp and type1cm packages; - posters in
A-series sizes, and custom sizes like double A0 are possible; -
still applicable to custom beamer slides, e.g. 16:9 slides for
a wide-screen (i.e. 1.78 aspect ratio); - orientation may be
portrait or landscape; - a 'debug mode' is provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamerposter/beamerposter.sty
%doc %{_texmfdistdir}/doc/latex/beamerposter/README
%doc %{_texmfdistdir}/doc/latex/beamerposter/beamerposter.pdf
%doc %{_texmfdistdir}/doc/latex/beamerposter/beamerposter.tex
%doc %{_texmfdistdir}/doc/latex/beamerposter/example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17755 |21mr|texlive-beamersubframe-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23510
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/beamersubframe
# catalog-date 2011-08-11 10:23:40 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-beamersubframe
Version:	0.2
Release:	7
Summary:	Reorder frames in the PDF file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/beamersubframe
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamersubframe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamersubframe.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamersubframe.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a method to reorder frames in the PDF file
without reordering the source. Its principal use is to embed or
append frames with details on some subject. The author
describes the package as "experimental".


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamersubframe/beamersubframe.sty
%doc %{_texmfdistdir}/doc/latex/beamersubframe/README
%doc %{_texmfdistdir}/doc/latex/beamersubframe/beamersubframe-append.pdf
%doc %{_texmfdistdir}/doc/latex/beamersubframe/beamersubframe-append.svg
%doc %{_texmfdistdir}/doc/latex/beamersubframe/beamersubframe-embed.pdf
%doc %{_texmfdistdir}/doc/latex/beamersubframe/beamersubframe-embed.svg
%doc %{_texmfdistdir}/doc/latex/beamersubframe/beamersubframe.pdf
%doc %{_texmfdistdir}/doc/latex/beamersubframe/bsf-example.tex
#- source
%doc %{_texmfdistdir}/source/latex/beamersubframe/beamersubframe.dtx
%doc %{_texmfdistdir}/source/latex/beamersubframe/beamersubframe.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17756 |21mr|texlive-beamertheme-cuerna-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamertheme-cuerna
Version:	1.1
Release:	1
Summary:	The package contains a theme for Beamer which is referenced as "Cuerna" inside beamer and has four basic colour themes
Group:		Publishing
URL:		https://ctan.org/pkg/beamertheme-cuerna
License:	The LATEX Project Public License 1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/beamertheme-cuerna.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/beamertheme-cuerna.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/beamertheme-cuerna.source.tar.xz
BuildArch:	noarch
BuildRequires:  texlive-tlpkg
Requires(pre):  texlive-tlpkg
Requires(post):  texlive-kpathsea

%description
The package contains a theme for Beamer which is referenced as "Cuerna" inside beamer and has four basic colour themes

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17757 |21mr|texlive-beamertheme-detlevcm-1.02-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22142
# category Package
# catalog-ctan /macros/latex/contrib/beamertheme-detlevcm
# catalog-date 2011-04-20 18:25:54 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-beamertheme-detlevcm
Version:	1.02
Release:	2
Summary:	personal/custom beamertheme for LaTeX - repo to log changes & supply Linux file endings
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/themes/beamertheme-epyt
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-detlevcm.tar.xz 
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-detlevcm.doc.tar.xz 
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pootis

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamertheme-detlevcm/beamercolorthemeETII.sty
%{_texmfdistdir}/tex/latex/beamertheme-detlevcm/beamerfontthemeDetlevCM.sty
%{_texmfdistdir}/tex/latex/beamertheme-detlevcm/beamerouterthemeDetlevCM.sty
%{_texmfdistdir}/tex/latex/beamertheme-detlevcm/beamerthemeDetlevCM.sty
%doc %{_texmfdistdir}/doc/latex/beamertheme-detlevcm/beamertheme-detlevcm.pdf
%doc %{_texmfdistdir}/doc/latex/beamertheme-detlevcm/beamertheme-detlevcm.tex
%doc %{_texmfdistdir}/doc/latex/beamertheme-detlevcm/FS-img1.png
%doc %{_texmfdistdir}/doc/latex/beamertheme-detlevcm/FS-img2.png
%doc %{_texmfdistdir}/doc/latex/beamertheme-detlevcm/FS-img3.png
%doc %{_texmfdistdir}/doc/latex/beamertheme-detlevcm/LogoTop.png
%doc %{_texmfdistdir}/doc/latex/beamertheme-detlevcm/README.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17758 |21mr|texlive-beamertheme-epyt-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22142
# category Package
# catalog-ctan /macros/latex/contrib/beamertheme-epyt
# catalog-date 2011-04-20 18:25:54 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-beamertheme-epyt
Version:	1.0
Release:	2
Summary:	Package epyt: a simple and clean theme for LaTeX beamer class
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/themes/beamertheme-epyt
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-epyt.tar.xz 
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-epyt.doc.tar.xz 
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a simple but nice theme for Beamer, with the following features:
simple structure: with page numbers at footer, no head bar and side bar
simple templates: displaying theorems with traditional inline style
simple colors: using only several foreground and background colors

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamertheme-epyt/beamerthemeepyt.sty
%doc %{_texmfdistdir}/doc/latex/beamertheme-epyt/epyt-demo-cn.pdf
%doc %{_texmfdistdir}/doc/latex/beamertheme-epyt/epyt-demo-cn.tex
%doc %{_texmfdistdir}/doc/latex/beamertheme-epyt/epyt-demo.pdf
%doc %{_texmfdistdir}/doc/latex/beamertheme-epyt/epyt-demo.tex
%doc %{_texmfdistdir}/doc/latex/beamertheme-epyt/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17759 |21mr|texlive-beamertheme-focus-20091109-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18835
# category TLCore
# catalog-ctan /graphics/beamertheme-focus/beamertheme-focus.pl
# catalog-date 2009-11-09 13:03:38 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-beamertheme-focus
Version:	20091109
Release:	2
Summary:	A presentation theme for LaTeX Beamer
Group:		Publishing
URL:		https://github.com/elauksap/focus-beamertheme
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-focus.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-focus.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-beamertheme-focus.bin = %{EVRD}

%description
A presentation theme for LaTeX Beamer that aims at a clean and minimalist design, so to minimize distractions 
and put the focus directly on the content


%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamertheme-focus
%doc %{_texmfdistdir}/doc/latex/beamertheme-focus

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17760 |21mr|texlive-beamerthemejltree-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21977
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/themes/beamerthemeJLTree.sty
# catalog-date 2010-07-13 19:58:19 +0200
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-beamerthemejltree
Version:	1.1
Release:	7
Summary:	Contributed beamer theme
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/themes/beamerthemeJLTree.sty
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamerthemejltree.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A theme for beamer presentations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamerthemejltree/beamerthemeJLTree.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17761 |21mr|texlive-beamertheme-light-20091109-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18835
# category TLCore
# catalog-ctan /graphics/beamertheme-light/beamertheme-light.pl
# catalog-date 2009-11-09 13:03:38 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-beamertheme-light
Version:	20091109
Release:	2
Summary:	The LaTeX package beamertheme-light provides an aesthetic and minimal beamer style by redefining colors and fonts
Group:		Publishing
URL:		https://fedora.pkgs.org/33/fedora-aarch64/texlive-beamertheme-light-svn49867-27.fc33.noarch.rpm.html
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-light.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-light.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-beamertheme-light.bin = %{EVRD}

%description
The LaTeX package beamertheme-light provides an aesthetic and
minimal beamer style by redefining colors and fonts

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamertheme-light
%doc %{_texmfdistdir}/doc/latex/beamertheme-light
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17762 |21mr|texlive-beamertheme-metropolis-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamertheme-metropolis
Version:	1.2
Release:	1
Summary:	 The package provides a simple, modern Beamer theme for anyone to use. It tries to minimize noise and maximize space for content
Group:		Publishing
URL:		https://www.ctan.org/pkg/beamertheme-metropolis
License:	The LATEX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/beamertheme-metropolis.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/beamertheme-metropolis.doc.tar.xz
Source2:        http://ctan.altspu.ru/systems/texlive/tlnet/archive/beamertheme-metropolis.source.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea
Requires: texlive-actuarialangle

%description
Metropolis is a simple, modern Beamer theme suitable for anyone to use. It tries
to minimize noise and maximize space for content; the only visual flourish it
offers is an (optional) progress bar added to each slide. The core design
principles of the theme were described in a blog post

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/beamertheme-metropolis
/usr/share/texmf-dist/source/latex/beamertheme-metropolis
%doc /usr/share/texmf-dist/doc/latex/beamertheme-metropolis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc source %{buildroot}/usr/share/texmf-dist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17763 |21mr|texlive-beamerthemenirma-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20765
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/themes/nirma
# catalog-date 2010-12-16 01:15:22 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-beamerthemenirma
Version:	0.1
Release:	7
Summary:	A Beamer theme for academic presentations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/themes/nirma
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamerthemenirma.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamerthemenirma.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package developed for academic purposes. The distribution
includes nothing more than style file needed for preparing
presentations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamerthemenirma/beamerthemenirma.sty
%doc %{_texmfdistdir}/doc/latex/beamerthemenirma/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17764 |21mr|texlive-beamertheme-npbt-4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamertheme-npbt
Version:	4.1
Release:	1
Summary:	“NPBT” stands for “Norman’s Pandoc Beamer Themes”
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/beamertheme-npbt
License:	The LATEX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/beamertheme-npbt.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/beamertheme-npbt.doc.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea
Requires: texlive-actuarialangle

%description
“NPBT” stands for “Norman’s Pandoc Beamer Themes”

%files
/usr/share/texmf-dist/tex/latex/beamertheme-npbt
%doc /usr/share/texmf-dist/doc/latex/beamertheme-npbt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc %{buildroot}/usr/share/texmf-dist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17765 |21mr|texlive-beamerthemephnompenh-20131013-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31392
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-beamerthemephnompenh
Version:	20131013
Release:	10
Summary:	TeXLive beamerthemephnompenh package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamerthemephnompenh.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamerthemephnompenh.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive beamerthemephnompenh package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamerthemephnompenh/beamerthemePhnomPenh.sty
%doc %{_texmfdistdir}/doc/latex/beamerthemephnompenh/README
%doc %{_texmfdistdir}/doc/latex/beamerthemephnompenh/beamerthemePhnomPenh.pdf
%doc %{_texmfdistdir}/doc/latex/beamerthemephnompenh/beamerthemePhnomPenh.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17766 |21mr|texlive-beamertheme-saintpetersburg-20171121-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-beamertheme-saintpetersburg
Version:	20171121
Release:	1
Summary:	A small theme that incorporates university colours and fonts from official web-site
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/themes/beamertheme-saintpetersburg
License:	lppl1.3c
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/beamertheme-saintpetersburg.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/beamertheme-saintpetersburg.doc.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/beamertheme-saintpetersburg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A small theme that incorporates university colours and fonts from official web-site.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17767 |21mr|texlive-beamertheme-upenn-bc-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29937
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/themes/upenn-bc
# catalog-date 2013-04-14 16:59:43 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-beamertheme-upenn-bc
Version:	1.0
Release:	10
Summary:	Beamer themies for Boston College and the University of Pennsylvania
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/themes/upenn-bc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-upenn-bc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamertheme-upenn-bc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Beamer themes in the colors of the - University of
Pennsylvania, USA, and - Boston College, USA. Both were tested
for the presentation theme 'Warsaw. Please note that these
color themes are neither official nor exact! The colours are
approximated from the universities' style guidelines and
websites, and slightly modified where necessary to generate an
appealing look. The universities neither endorse, nor provide
any support for, these color themes. I give no warranty for the
code.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beamertheme-upenn-bc/beamercolorthemegoeagles.sty
%{_texmfdistdir}/tex/latex/beamertheme-upenn-bc/beamercolorthemepenn.sty
%doc %{_texmfdistdir}/doc/latex/beamertheme-upenn-bc/README
%doc %{_texmfdistdir}/doc/latex/beamertheme-upenn-bc/beamerBCstyle.pdf
%doc %{_texmfdistdir}/doc/latex/beamertheme-upenn-bc/beamerBCstyle.tex
%doc %{_texmfdistdir}/doc/latex/beamertheme-upenn-bc/beamerPENNstyle.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17768 |21mr|texlive-beamer-tut-pt-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/portuguese/beamer
# catalog-date 2007-03-05 14:17:42 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-beamer-tut-pt
Version:	20190228
Release:	1
Summary:	An introduction to the Beamer class, in Portuguese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/portuguese/beamer
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamer-tut-pt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beamer-tut-pt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive beamer-tut-pt package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/AnnArbor1.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/AnnArbor2.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/CambridgeUS1.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/CambridgeUS2.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/LEIAME
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/README
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/anim1.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/anim2.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/anim3.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/anim4.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/automato1.jpg
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/automato2.jpg
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/automato3.jpg
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/automato4.jpg
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/automato5.jpg
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/berkeley1.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/berkeley2.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/blocos.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/boadilla1.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/boadilla2.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/exemplo.tex
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/madrid1.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/madrid2.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/montpellier1.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/montpellier2.ps
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/tutorialbeamer.pdf
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/tutorialbeamer.tex
%doc %{_texmfdistdir}/doc/latex/beamer-tut-pt/ufpellogo.jpg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17769 |21mr|texlive-begriff-1.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/begriff
# catalog-date 2007-01-29 23:57:18 +0100
# catalog-license gpl
# catalog-version 1.6
Name:		texlive-begriff
Version:	1.6
Release:	7
Summary:	Typeset Begriffschrift
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/begriff
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/begriff.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/begriff.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines maths mode commands for typesetting Frege's
Begriffschrift.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/begriff/begriff.sty
%doc %{_texmfdistdir}/doc/latex/begriff/COPYING
%doc %{_texmfdistdir}/doc/latex/begriff/README
%doc %{_texmfdistdir}/doc/latex/begriff/examples.pdf
%doc %{_texmfdistdir}/doc/latex/begriff/examples.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17770 |21mr|texlive-bengali-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20987
# category Package
# catalog-ctan /language/bengali/pandey
# catalog-date 2011-01-08 01:32:58 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-bengali
Version:	20190228
Release:	1
Summary:	Support for the Bengali language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/bengali/pandey
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bengali.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bengali.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bengali.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is based on Velthuis' transliteration scheme, with
extensions to deal with the Bengali letters that are not in
Devanagari. The package also supports Assamese.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/bengali/bn.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnbanjon.mf
%{_texmfdistdir}/fonts/source/public/bengali/bndigit.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnjuk.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnkaar.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnlig.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnligtbl.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnmacro.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnmisc.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnpunct.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnr10.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnsl10.mf
%{_texmfdistdir}/fonts/source/public/bengali/bnswar.mf
%{_texmfdistdir}/fonts/source/public/bengali/xbnr10.mf
%{_texmfdistdir}/fonts/source/public/bengali/xbnsl10.mf
%{_texmfdistdir}/fonts/source/public/bengali/xbnsupp.mf
%{_texmfdistdir}/fonts/tfm/public/bengali/bnr10.tfm
%{_texmfdistdir}/fonts/tfm/public/bengali/bnsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/bengali/xbnr10.tfm
%{_texmfdistdir}/fonts/tfm/public/bengali/xbnsl10.tfm
%{_texmfdistdir}/tex/latex/bengali/beng.sty
%{_texmfdistdir}/tex/latex/bengali/ubn.fd
%{_texmfdistdir}/tex/latex/bengali/ubnx.fd
%doc %{_texmfdistdir}/doc/fonts/bengali/README
%doc %{_texmfdistdir}/doc/fonts/bengali/bengdoc.bn
%doc %{_texmfdistdir}/doc/fonts/bengali/bengdoc.pdf
%doc %{_texmfdistdir}/doc/fonts/bengali/example.bn
%doc %{_texmfdistdir}/doc/fonts/bengali/example.pdf
%doc %{_texmfdistdir}/doc/fonts/bengali/manifest.txt
#- source
%doc %{_texmfdistdir}/source/latex/bengali/beng.c

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17771 |21mr|texlive-betababel-0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/betababel
# catalog-date 2009-03-27 13:15:14 +0100
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-betababel
Version:	0.5
Release:	7
Summary:	Insert ancient greek text coded in Beta Code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/betababel
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/betababel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/betababel.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The betababel package extends the babel polutonikogreek option
to provide a simple way to insert ancient Greek texts with
diacritical characters into your document using the commonly
used Beta Code transliteration. You can directly insert Beta
Code texts -- as they can be found at the Perseus project, for
example -- without modification.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/betababel/betababel.sty
%doc %{_texmfdistdir}/doc/latex/betababel/betatest.pdf
%doc %{_texmfdistdir}/doc/latex/betababel/betatest.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17772 |21mr|texlive-beton-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/beton
# catalog-date 2009-09-24 15:05:48 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-beton
Version:	20190228
Release:	1
Summary:	Use Concrete fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beton
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beton.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beton.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/beton.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typeset a LaTeX2e document with the Concrete fonts designed by
Don Knuth and used in his book "Concrete Mathematics".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/beton/beton.sty
%doc %{_texmfdistdir}/doc/latex/beton/beton.pdf
%doc %{_texmfdistdir}/doc/latex/beton/legal.txt
#- source
%doc %{_texmfdistdir}/source/latex/beton/beton.dtx
%doc %{_texmfdistdir}/source/latex/beton/beton.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17773 |21mr|texlive-bewerbung-1220201124-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bewerbung
Version:	1220201124
Release:	1
Summary:	LATEX-classes and -packages for typesetting niceapplications and tables of applications
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/latex/contrib/bewerbung
License:	lppl1.3c
Source0:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/bewerbung.tar.xz
Source1:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/bewerbung.doc.tar.xz
Source2:	https://ctan.altspu.ru/systems/texlive/tlnet/archive/bewerbung.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This project has the aim to provide packages and classes for typesetting an application with
titlepage, letter, cv and additional documents in just one document. Also there is a class for
printing a table with the latest applications that can be shown to the german authorities. The 
data of the applications can be edited in a simple csv file.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17774 |21mr|texlive-bez123-1.1b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/bez123
# catalog-date 2009-09-02 11:33:10 +0200
# catalog-license lppl1.3
# catalog-version 1.1b
Name:		texlive-bez123
Version:	1.1b
Release:	7
Summary:	Support for Bezier curves
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bez123
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bez123.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bez123.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bez123.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides additional facilities in a picture environment for
drawing linear, cubic, and rational quadratic Bezier curves
(standard LaTeX only offers non-rational quadratic splines).
Provides a package multiply that provides a command for
multiplication of a length without numerical overflow.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bez123/bez123.sty
%{_texmfdistdir}/tex/latex/bez123/multiply.sty
%doc %{_texmfdistdir}/doc/latex/bez123/README
%doc %{_texmfdistdir}/doc/latex/bez123/bez123.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bez123/bez123.dtx
%doc %{_texmfdistdir}/source/latex/bez123/bez123.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17775 |21mr|texlive-bezos-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25507
# category Package
# catalog-ctan /macros/latex/contrib/bezos
# catalog-date 2010-10-14 20:46:53 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-bezos
Version:	20190228
Release:	1
Summary:	Packages by Javier Bezos
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bezos
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bezos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bezos.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of packages that provide: - tools for maths accents; - a
tool that changes page-numbering in frontmatter to arabic; -
tools for dealing with some annoyances in babel; - a tool for
making end-environment checking more meaningful; - tensorial
indexes; - support for multi-file documents; - tools for easy
entry of Spanish index entries; and - dotless i's and j's for
maths fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bezos/accents.sty
%{_texmfdistdir}/tex/latex/bezos/arabicfront.sty
%{_texmfdistdir}/tex/latex/bezos/babeltools.sty
%{_texmfdistdir}/tex/latex/bezos/checkend.sty
%{_texmfdistdir}/tex/latex/bezos/dotlessi.sty
%{_texmfdistdir}/tex/latex/bezos/esindex.sty
%{_texmfdistdir}/tex/latex/bezos/soulpos.sty
%{_texmfdistdir}/tex/latex/bezos/subdocs.sty
%{_texmfdistdir}/tex/latex/bezos/tensind.sty
%doc %{_texmfdistdir}/doc/latex/bezos/README
%doc %{_texmfdistdir}/doc/latex/bezos/accents.pdf
%doc %{_texmfdistdir}/doc/latex/bezos/accents.tex
%doc %{_texmfdistdir}/doc/latex/bezos/babeltools.pdf
%doc %{_texmfdistdir}/doc/latex/bezos/babeltools.tex
%doc %{_texmfdistdir}/doc/latex/bezos/bezos.pdf
%doc %{_texmfdistdir}/doc/latex/bezos/bezos.tex
%doc %{_texmfdistdir}/doc/latex/bezos/esindex.pdf
%doc %{_texmfdistdir}/doc/latex/bezos/esindex.tex
%doc %{_texmfdistdir}/doc/latex/bezos/soulpos.pdf
%doc %{_texmfdistdir}/doc/latex/bezos/soulpos.tex
%doc %{_texmfdistdir}/doc/latex/bezos/tensind.pdf
%doc %{_texmfdistdir}/doc/latex/bezos/tensind.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17776 |21mr|texlive-bgreek-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/greek/bgreek
# catalog-date 2009-02-21 22:05:10 +0100
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-bgreek
Version:	0.3
Release:	7
Summary:	Using Beccari's fonts in betacode for classical Greek
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/greek/bgreek
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bgreek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bgreek.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements a dialect of the Beta Code encoding
(TLG and Perseus Projects) for typesetting classical Greek
using Claudio Beccari's Greek Fonts. The package provides
virtual fonts, to reference Beccari's fonts in bgreek mode, and
support macros for use with LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgmo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bgxo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqmo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/bgreek/bqxo2488.tfm
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmc2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmn2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgmo2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxc2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxn2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bgxo2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmc2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmn2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqmo2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxc2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxn2488.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo0500.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo0600.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo0700.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo0800.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo0900.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo1000.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo1095.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo1200.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo1440.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo1728.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo2074.vf
%{_texmfdistdir}/fonts/vf/public/bgreek/bqxo2488.vf
%{_texmfdistdir}/tex/latex/bgreek/bcgcmr.fd
%{_texmfdistdir}/tex/latex/bgreek/bcgenc.def
%{_texmfdistdir}/tex/latex/bgreek/bcglmr.fd
%{_texmfdistdir}/tex/latex/bgreek/bcqcmr.fd
%{_texmfdistdir}/tex/latex/bgreek/bcqenc.def
%{_texmfdistdir}/tex/latex/bgreek/bcqlmr.fd
%{_texmfdistdir}/tex/latex/bgreek/bgfonts.tex
%{_texmfdistdir}/tex/latex/bgreek/bgreek.ldf
%{_texmfdistdir}/tex/latex/bgreek/bgreek.sty
%{_texmfdistdir}/tex/latex/bgreek/ibygreek.ldf
%doc %{_texmfdistdir}/doc/latex/bgreek/MANIFEST.TXT
%doc %{_texmfdistdir}/doc/latex/bgreek/README
%doc %{_texmfdistdir}/doc/latex/bgreek/bgman.pdf
%doc %{_texmfdistdir}/doc/latex/bgreek/bgman.tex
%doc %{_texmfdistdir}/doc/latex/bgreek/bgreek.etx
%doc %{_texmfdistdir}/doc/latex/bgreek/cbgreek.etx
%doc %{_texmfdistdir}/doc/latex/bgreek/qbgreek.etx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17777 |21mr|texlive-bgteubner-2.11-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bgteubner
Version:	2.11
Release:	3
Summary:	Class for producing books for the publisher "Teubner Verlag"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bgteubner
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bgteubner.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bgteubner.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bgteubner.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bgteubner document class has been programmed by order of
the Teubner Verlag, Wiesbaden, Germany, to ensure that books of
this publisher have a unique layout. Unfortunately, most of the
documentation is only available in German. Since the document
class is intended to generate a unique layout, many things
(layout etc.) are fixed and cannot be altered by the user. If
you want to use the document class for another purpose than
publishing with the Teubner Verlag, this may arrise unwanted
restrictions (For instance, the document class provides only
two paper sizes: DIN A-5 and 17cm x 24cm; only two font
families are supported: Times and European Computer Modern).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/bgteubner
%{_texmfdistdir}/makeindex/bgteubner
%{_texmfdistdir}/tex/latex/bgteubner
%doc %{_texmfdistdir}/doc/latex/bgteubner
#- source
%doc %{_texmfdistdir}/source/latex/bgteubner

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17778 |21mr|texlive-bhcexam-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23304
# category Package
# catalog-ctan /macros/latex/contrib/bhcexam
# catalog-date 2011-07-31 15:37:23 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-bhcexam
Version:	0.4
Release:	2
Summary:	A LaTeX document class designed for High School Math Teachers in China
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bhcexam
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bhcexam.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bhcexam.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bhcexam.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX document class based on the exam class, which is
specially designed for High School Math Teachers in China.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bhcexam/BHCexam.cfg
%{_texmfdistdir}/tex/latex/bhcexam/BHCexam.cls
%doc %{_texmfdistdir}/doc/latex/bhcexam/Makefile
%doc %{_texmfdistdir}/doc/latex/bhcexam/README
%doc %{_texmfdistdir}/doc/latex/bhcexam/test1.tex
%doc %{_texmfdistdir}/doc/latex/bhcexam/test2.tex
%doc %{_texmfdistdir}/doc/latex/bhcexam/test3.tex
%doc %{_texmfdistdir}/doc/latex/bhcexam/test4.tex
#- source
%doc %{_texmfdistdir}/source/latex/bhcexam/BHCexam.dtx
%doc %{_texmfdistdir}/source/latex/bhcexam/BHCexam.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17779 |21mr|texlive-biber-2.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-biber
Version:	2.12
Release:	1
Summary:	A BibTeX replacement for users of biblatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/biber
License:	ARTISTIC
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biber.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biber.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biber.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Biber is a BibTeX replacement for users of biblatex. Biber
supports full UTF-8, can (re)-encode input and output, supports
highly configurable sorting, dynamic bibliography sets and many
other features. The CTAN distribution offers a compressed tar
archive of the sources, etc., together with "binary"
distributions for a variety of platforms. Note: on SourceForge
biber is formally named "biblatex-biber", to distinguish it
from an earlier (now apparently moribund) project called
"biber".

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/bibtex/biber
#- source
%doc %{_texmfdistdir}/source/bibtex/biber

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17780 |21mr|texlive-bib-fr-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/bib-fr
# catalog-date 2009-11-09 14:03:25 +0100
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-bib-fr
Version:	1.5
Release:	7
Summary:	French translation of classical BibTeX styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/bib-fr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bib-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bib-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These files are French translations of the classical BibTeX
style files. The translations can easily be modified by simply
redefining FUNCTIONs named fr.*, at the beginning (lines 50-
150) of each file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/bib-fr/abbrv-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/abbrvnat-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/alpha-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/apalike-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/ieeetr-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/plain-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/plainnat-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/siam-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/unsrt-fr.bst
%{_texmfdistdir}/bibtex/bst/bib-fr/unsrtnat-fr.bst
%doc %{_texmfdistdir}/doc/bibtex/bib-fr/CHANGELOG
%doc %{_texmfdistdir}/doc/bibtex/bib-fr/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17781 |21mr|texlive-bibleref-1.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bibleref
Version:	1.23
Release:	1
Summary:	Format bible citations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibleref
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bibleref package offers consistent formatting of references
to parts of the Christian bible, in a number of well-defined
formats.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibleref
%doc %{_texmfdistdir}/doc/latex/bibleref
#- source
%doc %{_texmfdistdir}/source/latex/bibleref

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17782 |21mr|texlive-bibleref-french-2.3.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27098
# category Package
# catalog-ctan /macros/latex/contrib/bibleref-french
# catalog-date 2012-07-14 16:43:20 +0200
# catalog-license lppl1.3
# catalog-version 2.3.1
Name:		texlive-bibleref-french
Version:	2.3.1
Release:	6
Summary:	French translations for bibleref
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibleref-french
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-french.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-french.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-french.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides translations and alternative typesetting
conventions for use of bibleref in French.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibleref-french/bibleref-french.sty
%doc %{_texmfdistdir}/doc/latex/bibleref-french/Lacroux-Bible.pdf
%doc %{_texmfdistdir}/doc/latex/bibleref-french/bibleref-french-francais.pdf
%doc %{_texmfdistdir}/doc/latex/bibleref-french/bibleref-french-francais.tex
%doc %{_texmfdistdir}/doc/latex/bibleref-french/bibleref-french.pdf
%doc %{_texmfdistdir}/doc/latex/bibleref-french/inclus/bible.bib
%doc %{_texmfdistdir}/doc/latex/bibleref-french/inclus/livres.tex
%doc %{_texmfdistdir}/doc/latex/bibleref-french/inclus/styles.tex
%doc %{_texmfdistdir}/doc/latex/bibleref-french/makefile
%doc %{_texmfdistdir}/doc/latex/bibleref-french/test.tex
#- source
%doc %{_texmfdistdir}/source/latex/bibleref-french/bibleref-french.dtx
%doc %{_texmfdistdir}/source/latex/bibleref-french/bibleref-french.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17783 |21mr|texlive-bibleref-german-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21923
# category Package
# catalog-ctan /macros/latex/contrib/bibleref-german
# catalog-date 2011-04-02 19:46:11 +0200
# catalog-license lppl1.3
# catalog-version 1.0a
Name:		texlive-bibleref-german
Version:	1.0a
Release:	7
Summary:	German adaptation of bibleref
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibleref-german
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-german.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-german.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides translations and various formats for the
use of bibleref in German documents. The German naming of the
bible books complies with the 'Loccumer Richtlinien' (Locum
guidelines). In addition, the Vulgate (Latin bible) is
supported.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibleref-german/bibleref-german.sty
%doc %{_texmfdistdir}/doc/latex/bibleref-german/CHANGES
%doc %{_texmfdistdir}/doc/latex/bibleref-german/LIESMICH
%doc %{_texmfdistdir}/doc/latex/bibleref-german/README
%doc %{_texmfdistdir}/doc/latex/bibleref-german/bibleref-german-preamble.tex
%doc %{_texmfdistdir}/doc/latex/bibleref-german/bibleref-german-print.tex
%doc %{_texmfdistdir}/doc/latex/bibleref-german/bibleref-german-screen.tex
%doc %{_texmfdistdir}/doc/latex/bibleref-german/de-bibleref-german.pdf
%doc %{_texmfdistdir}/doc/latex/bibleref-german/de-bibleref-german.tex
%doc %{_texmfdistdir}/doc/latex/bibleref-german/en-bibleref-german.pdf
%doc %{_texmfdistdir}/doc/latex/bibleref-german/en-bibleref-german.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17784 |21mr|texlive-bibleref-lds-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25526
# category Package
# catalog-ctan /macros/latex/contrib/bibleref-lds
# catalog-date 2012-02-27 12:45:12 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-bibleref-lds
Version:	1.0
Release:	7
Summary:	Bible references, including Church of Jesus Christ of Latter Day Saints
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibleref-lds
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-lds.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-lds.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-lds.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends the bibleref-mouth package to support
references to the scriptures of The Church of Jesus Christ of
Latter-day Saints (LDS). The package requires bibleref-mouth to
run, and its reference syntax is the same as that of the parent
package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibleref-lds/bibleref-lds.sty
%doc %{_texmfdistdir}/doc/latex/bibleref-lds/README
%doc %{_texmfdistdir}/doc/latex/bibleref-lds/bibleref-lds.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bibleref-lds/bibleref-lds.dtx
%doc %{_texmfdistdir}/source/latex/bibleref-lds/bibleref-lds.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17785 |21mr|texlive-bibleref-mouth-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25527
# category Package
# catalog-ctan /macros/latex/contrib/bibleref-mouth
# catalog-date 2012-02-27 12:45:12 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-bibleref-mouth
Version:	1.0
Release:	7
Summary:	Consistent formatting of Bible references
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibleref-mouth
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-mouth.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-mouth.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-mouth.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows Bible references to be formatted in a
consistent way. It is similar to the bibleref package, except
that the formatting macros are all purely expandable -- that
is, they are all implemented in TeX's mouth. This means that
they can be used in any expandable context, such as an argument
to a \url command.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibleref-mouth/bibleref-mouth.sty
%doc %{_texmfdistdir}/doc/latex/bibleref-mouth/README
%doc %{_texmfdistdir}/doc/latex/bibleref-mouth/bibleref-mouth.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bibleref-mouth/bibleref-mouth.dtx
%doc %{_texmfdistdir}/source/latex/bibleref-mouth/bibleref-mouth.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17786 |21mr|texlive-bibleref-parse-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22054
# category Package
# catalog-ctan /macros/latex/contrib/bibleref-parse
# catalog-date 2011-04-11 08:43:57 +0200
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-bibleref-parse
Version:	1.1
Release:	7
Summary:	Specify Bible passages in human-readable format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibleref-parse
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-parse.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibleref-parse.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package parses Bible passages that are given in human
readable format. It accepts a wide variety of formats. This
allows for a simpler and more convenient interface to the
functionality of the bibleref package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibleref-parse/bibleref-parse.sty
%doc %{_texmfdistdir}/doc/latex/bibleref-parse/README
%doc %{_texmfdistdir}/doc/latex/bibleref-parse/bibleref-parse.pdf
%doc %{_texmfdistdir}/doc/latex/bibleref-parse/bibleref-parse.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17787 |21mr|texlive-bibletext-0.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 45196
# category Package
# catalog-ctan /macros/latex/contrib/bibletext
# catalog-date 2017-09-02 12:55:57 +0200
# catalog-license MIT
Name:		texlive-bibletext
Version:	0.1.2
Release:	1
Summary:	Insert Bible passages by their reference
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/bibletext
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibletext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibletext.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows to insert Bible texts in a document by
specifying references.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibletext
%doc %{_texmfdistdir}/doc/latex/bibletext

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17788 |21mr|texlive-bibtex-20200304-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bibtex
Version:	20200304
Release:	1
Summary:	Process bibliographies for LaTeX, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/base
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-bibtex.bin

%description
BibTeX allows the user to store his citation data in generic
form, while printing citations in a document in the form
specified by a BibTeX style, to be specified in the document
itself (one often needs a LaTeX citation-style package, such as
natbib as well). BibTeX itself is an ASCII-only program; there
is, however, a version that copes with 8-bit character sets.
However, BibTeX's facilities rapidly run out as one moves away
from simple ASCII (for example, in the various national sorting
rules for languages expressed in different parts of ISO-8859 --
the "ISO Latin" series). For more flexibility, the user is
urged to consider using biber with biblatex to typeset its
output. In particular, it is best to avoid BibTeX in favour of
biblatex, if at all possible.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/base/xampl.bib
%{_texmfdistdir}/bibtex/bst/base/abbrv.bst
%{_texmfdistdir}/bibtex/bst/base/acm.bst
%{_texmfdistdir}/bibtex/bst/base/alpha.bst
%{_texmfdistdir}/bibtex/bst/base/apalike.bst
%{_texmfdistdir}/bibtex/bst/base/ieeetr.bst
%{_texmfdistdir}/bibtex/bst/base/plain.bst
%{_texmfdistdir}/bibtex/bst/base/siam.bst
%{_texmfdistdir}/bibtex/bst/base/unsrt.bst
%doc %{_texmfdistdir}/doc/bibtex/base/README
%doc %{_texmfdistdir}/doc/bibtex/base/btxbst.doc
%doc %{_texmfdistdir}/doc/bibtex/base/btxdoc.bib
%doc %{_texmfdistdir}/doc/bibtex/base/btxdoc.pdf
%doc %{_texmfdistdir}/doc/bibtex/base/btxdoc.tex
%doc %{_texmfdistdir}/doc/bibtex/base/btxhak.pdf
%doc %{_texmfdistdir}/doc/bibtex/base/btxhak.tex
%doc %{_mandir}/man1/bibtex.1*
%doc %{_texmfdistdir}/doc/man/man1/bibtex.man1.pdf
%doc %{_texmfdistdir}/tex/generic/bibtex/apalike.sty
%doc %{_texmfdistdir}/tex/generic/bibtex/apalike.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17789 |21mr|texlive-bibtex8-20191119-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bibtex8
Version:	20191119
Release:	2
Summary:	A fully 8-bit adaptation of BibTeX 0.99
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/8-bit
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtex8.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtex8.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-bibtex8.bin

%description
An enhanced, portable C version of BibTeX. Enhanced by
conversion to "big" (32-bit) capacity, addition of run-time
selectable capacity and 8-bit support extensions. National
character set and sorting order are controlled by an external
configuration file. Various examples are included.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/csf/base/88591lat.csf
%{_texmfdistdir}/bibtex/csf/base/88591sca.csf
%{_texmfdistdir}/bibtex/csf/base/README.TEXLIVE
%{_texmfdistdir}/bibtex/csf/base/ascii.csf
%{_texmfdistdir}/bibtex/csf/base/cp437lat.csf
%{_texmfdistdir}/bibtex/csf/base/cp850lat.csf
%{_texmfdistdir}/bibtex/csf/base/cp850sca.csf
%{_texmfdistdir}/bibtex/csf/base/cp866rus.csf
%{_texmfdistdir}/bibtex/csf/base/csfile.txt
%{_texmfdistdir}/bibtex/csf/polish-csf/88592pl.csf
%{_texmfdistdir}/bibtex/csf/polish-csf/cp1250pl.csf
%{_texmfdistdir}/bibtex/csf/polish-csf/cp852pl.csf
%{_texmfdistdir}/bibtex/csf/polish-csf/iso8859-7.csf
%doc %{_texmfdistdir}/doc/bibtex8/00readme.txt
%doc %{_texmfdistdir}/doc/bibtex8/HISTORY
%doc %{_texmfdistdir}/doc/bibtex8/csfile.txt
%doc %{_texmfdistdir}/doc/bibtex8/file_id.diz
%doc %{_mandir}/man1/bibtex8.1*
%doc %{_texmfdistdir}/doc/bibtex8/bibtex8.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
cp -fpar texmf-dist %{buildroot}%{_datadir}
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/bibtex8.1 %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/bibtex8.man1.pdf %{buildroot}%{_texmfdistdir}/doc/bibtex8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17790 |21mr|texlive-bibtopic-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/bibtopic
# catalog-date 2006-10-17 00:49:54 +0200
# catalog-license gpl
# catalog-version 1.1a
Name:		texlive-bibtopic
Version:	1.1a
Release:	7
Summary:	Include multiple bibliographies in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bibtopic
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtopic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtopic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bibtopic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to include several bibliographies
covering different 'topics' or bibliographic material into a
document (e.g., one bibliography for primary literature and one
for secondary literature). The package provides commands to
include either all references from a .bib file, only the
references actually cited or those not cited in your document.
The user has to construct a separate .bib file for each
bibliographic 'topic', each of which will be processed
separately by BibTeX. If you want to have bibliographies
specific to one part of a document, see the packages bibunits
or chapterbib.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bibtopic/bibtopic.sty
%doc %{_texmfdistdir}/doc/latex/bibtopic/README
%doc %{_texmfdistdir}/doc/latex/bibtopic/articles.bib
%doc %{_texmfdistdir}/doc/latex/bibtopic/bibtopic.pdf
%doc %{_texmfdistdir}/doc/latex/bibtopic/books.bib
%doc %{_texmfdistdir}/doc/latex/bibtopic/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/bibtopic/bibtopic.dtx
%doc %{_texmfdistdir}/source/latex/bibtopic/bibtopic.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17791 |21mr|texlive-bidi-35.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bidi
Version:	35.8
Release:	1
Summary:	Bidirectional typesetting in plain TeX and LaTeX, using XeTeX engine
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/bidi
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bidi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bidi.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bidi.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A convenient interface for typesetting bidirectional texts with
plain TeX and LaTeX. The package includes adaptations for use
with many other commonly-used packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/bidi
%doc %{_texmfdistdir}/doc/xelatex/bidi
#- source
%doc %{_texmfdistdir}/source/xelatex/bidi

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17792 |21mr|texlive-bigfoot-2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bigfoot
Version:	2.1
Release:	3
Epoch:		1
Summary:	Footnotes for critical editions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bigfoot
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bigfoot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bigfoot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bigfoot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package aims to provide a 'one-stop' solution to
requirements for footnotes. It offers: - Multiple footnote
apparatus superior to that of the manyfoot; - Footnotes can be
formatted in separate paragraphs, or be run into a single
paragraph (this choice may be selected per footnote series); -
Things you might have expected (like \verb-like material in
footnotes, and colour selections over page breaks) now work.
Note that the majority of the bigfoot package's interface is
identical to that of manyfoot; users should seek information
from that package's documentation. The bigfoot bundle also
provides the perpage and suffix packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bigfoot
%doc %{_texmfdistdir}/doc/latex/bigfoot
#- source
%doc %{_texmfdistdir}/source/latex/bigfoot

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17793 |21mr|texlive-bigints-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/bigints
# catalog-date 2012-04-28 20:54:25 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-bigints
Version:	20190228
Release:	1
Summary:	Writing big integrals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bigints
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bigints.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bigints.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides facilities for drawing big integral signs
when needed. An example would be when the integrand is a
matrix.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bigints/bigints.sty
%doc %{_texmfdistdir}/doc/latex/bigints/Makefile
%doc %{_texmfdistdir}/doc/latex/bigints/README
%doc %{_texmfdistdir}/doc/latex/bigints/bigints.forlisting
%doc %{_texmfdistdir}/doc/latex/bigints/bigints.pdf
%doc %{_texmfdistdir}/doc/latex/bigints/bigints.tex
%doc %{_texmfdistdir}/doc/latex/bigints/perso.ist

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17794 |21mr|texlive-biochemistry-colors-1.00-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54512
# category Package
# catalog-ctan /macros/latex/contrib/biochemistry-colors
# catalog-license lppl gpl
Name:		texlive-biochemistry-colors
Version:	1.00
Release:	1
Summary:	Colors used to display amino acids, nucleotides, sugars or atoms in biochemistry
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/biochemistry-colors
License:	lppl gpl
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biochemistry-colors.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biochemistry-colors.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Biochemistry-colors.sty defines the standard colors of biochemistry
colors for use with D.P. Carlisle's color-package and U. Kern's
xcolor (xcolor is loaded by Biochemistry-colors). They may be used
by authors (with \usepackage) or by package writers (with
\RequirePackage, e.g. to create Beamer color themes).

Colors include:
  - Shapely-colors for amino acids and nucleotides
  - CPK-Colors (Corey, Pauling and Koltun) of elements 		
  - Jmol-colors of elements, important isotopes and structures	
  - Glycopedia colors for sugars		

Biochemistry-colors.pdf provides a list of these colors with
components in rgb (hex, word, decimal) and hsl-format. The source
for this file is the spreadsheet Biochemistry-colors.xls


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biochemistry-colors
%doc %{_texmfdistdir}/doc/latex/biochemistry-colors

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17795 |21mr|texlive-biocon-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/biocon
# catalog-date 2007-01-23 22:34:44 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-biocon
Version:	20190228
Release:	1
Summary:	Typesetting biological species names
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/biocon
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biocon.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/biocon.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The biocon--biological conventions--package aids the
typesetting of some biological conventions. At the moment, it
makes a good job of typesetting species names (and ranks below
the species level). A distinction is made between the Plant,
Fungi, Animalia and Bacteria kingdoms. There are default
settings for the way species names are typeset, but they can be
customized. Different default styles are used in different
situations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/biocon/biocon-old.sty
%{_texmfdistdir}/tex/latex/biocon/biocon.sty
%doc %{_texmfdistdir}/doc/latex/biocon/COPYING
%doc %{_texmfdistdir}/doc/latex/biocon/INSTALL
%doc %{_texmfdistdir}/doc/latex/biocon/README
%doc %{_texmfdistdir}/doc/latex/biocon/biocon.nw
%doc %{_texmfdistdir}/doc/latex/biocon/literature.bib
%doc %{_texmfdistdir}/doc/latex/biocon/manual-old.pdf
%doc %{_texmfdistdir}/doc/latex/biocon/manual-old.tex
%doc %{_texmfdistdir}/doc/latex/biocon/manual.pdf
%doc %{_texmfdistdir}/doc/latex/biocon/manual.tex
%doc %{_texmfdistdir}/doc/latex/biocon/source.pdf
%doc %{_texmfdistdir}/doc/latex/biocon/source.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17796 |21mr|texlive-bizcard-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/bizcard
# catalog-date 2009-04-30 00:32:08 +0200
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-bizcard
Version:	1.1
Release:	7
Summary:	Typeset business cards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bizcard
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bizcard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bizcard.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bizcard.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is an adaption for current LaTeX of a LaTeX 2.09 style by
Silvano Balemi. It produces cards at the normal US card size,
76.2mm x 50.8mm.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bizcard/bizcard.sty
%doc %{_texmfdistdir}/doc/latex/bizcard/bizcard.pdf
%doc %{_texmfdistdir}/doc/latex/bizcard/bizex.pdf
%doc %{_texmfdistdir}/doc/latex/bizcard/bizex.tex
#- source
%doc %{_texmfdistdir}/source/latex/bizcard/bizcard.drv
%doc %{_texmfdistdir}/source/latex/bizcard/bizcard.dtx
%doc %{_texmfdistdir}/source/latex/bizcard/bizcard.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17797 |21mr|texlive-blindtext-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25039
# category Package
# catalog-ctan /macros/latex/contrib/blindtext
# catalog-date 2011-11-23 08:28:31 +0100
# catalog-license lppl
# catalog-version 1.9c
Name:		texlive-blindtext
Version:	2.0
Release:	2
Summary:	Producing 'blind' text for testing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/blindtext
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blindtext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blindtext.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blindtext.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the commands \blindtext and \Blindtext for
creating 'blind' text useful in testing new classes and
packages, and \blinddocument, \Blinddocument for creating an
entire random document with sections, lists, mathematics, etc.
The package supports three languages, english, (n)german and
latin; the latin option provides a short "lorem ipsum" (for a
fuller lorem ipsum text, see the lipsum package).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/blindtext/blindtext.sty
%doc %{_texmfdistdir}/doc/latex/blindtext/README
%doc %{_texmfdistdir}/doc/latex/blindtext/blindtext.pdf
#- source
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext.dtx
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext.ins
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext_american.dtx
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext_catalan.dtx
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext_english.dtx
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext_french.dtx
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext_german.dtx
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext_latin.dtx
%doc %{_texmfdistdir}/source/latex/blindtext/blindtext_ngerman.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17798 |21mr|texlive-blkarray-0.07-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17089
# category Package
# catalog-ctan /macros/latex/contrib/blkarray
# catalog-date 2010-02-23 16:09:16 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-blkarray
Version:	0.07
Release:	2
Epoch:		1
Summary:	Extended array and tabular
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/blkarray
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blkarray.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blkarray.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An experimental package which implements an environment,
blockarray, that may be used in the same way as the array or
tabular environments of standard LaTeX, or their extended
versions defined in array. If used in math-mode, blockarray
acts like array, otherwise it acts like tabular. The package
implements a new method of defining column types, and also
block and block* environments, for specifying sub-arrays of the
main array. What's more, the \footnote command works inside a
blockarray.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/blkarray/blkarray.sty
%doc %{_texmfdistdir}/doc/latex/blkarray/README
%doc %{_texmfdistdir}/doc/latex/blkarray/blkarray.pdf
%doc %{_texmfdistdir}/doc/latex/blkarray/blkarray.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17799 |21mr|texlive-block-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17209
# category Package
# catalog-ctan /macros/latex/contrib/block
# catalog-date 2010-02-26 11:17:49 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-block
Version:	20190228
Release:	1
Summary:	A block letter style for the letter class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/block
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/block.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/block.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A style file for use with the letter class that overwrites the
\opening and \closing macros so that letters can be styled with
the block letter style instead of the default style. Thus, the
return address, the closing, and the signature appear flushed
on the left margin.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/block/block.sty
%doc %{_texmfdistdir}/doc/latex/block/block.pdf
%doc %{_texmfdistdir}/doc/latex/block/block.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17800 |21mr|texlive-blockdraw_mp-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/blockdraw_mp
# catalog-date 2008-08-17 01:00:50 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-blockdraw_mp
Version:	20190228
Release:	1
Summary:	Block diagrams and bond graphs, with MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/blockdraw_mp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blockdraw_mp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blockdraw_mp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of simple MetaPost macros for the task. While the task is
not itself difficult to program, it is felt that many users
will be happy to have a library for the job..

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/blockdraw_mp/blockdraw.mp
%{_texmfdistdir}/metapost/blockdraw_mp/bonddemo.mp
%{_texmfdistdir}/metapost/blockdraw_mp/bondgraph.mp
%{_texmfdistdir}/metapost/blockdraw_mp/cascadedemo.mp
%{_texmfdistdir}/metapost/blockdraw_mp/docblockprefs.mp
%{_texmfdistdir}/metapost/blockdraw_mp/shiftoff.mp
%doc %{_texmfdistdir}/doc/metapost/blockdraw_mp/README
%doc %{_texmfdistdir}/doc/metapost/blockdraw_mp/blockdraw_mp.pdf
%doc %{_texmfdistdir}/doc/metapost/blockdraw_mp/blockdraw_mp.tex
%doc %{_texmfdistdir}/doc/metapost/blockdraw_mp/bonddemo.pdf
%doc %{_texmfdistdir}/doc/metapost/blockdraw_mp/cascadedemo.pdf
%doc %{_texmfdistdir}/doc/metapost/blockdraw_mp/tiddetext.sty
%doc %{_texmfdistdir}/doc/metapost/blockdraw_mp/tighttoc.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17801 |21mr|texlive-bloques-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22490
# category Package
# catalog-ctan /graphics/pgf/contrib/bloques
# catalog-date 2011-05-15 09:47:34 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-bloques
Version:	1.0
Release:	7
Summary:	Generate control diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/bloques
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bloques.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bloques.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses TikZ to provide commands for generating
control diagrams (specially in power electronics).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bloques/bloques.sty
%doc %{_texmfdistdir}/doc/latex/bloques/README
%doc %{_texmfdistdir}/doc/latex/bloques/example.pdf
%doc %{_texmfdistdir}/doc/latex/bloques/example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17802 |21mr|texlive-blowup-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-blowup
Version:	1.0
Release:	2
Summary:	Upscale or downscale all pages of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/blowup
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blowup.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blowup.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/blowup.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package blowup only defines the user-level macro \blowup,
which can be used to upscale or downscale all pages of a
document. It is similar to the TeX primitive \magnification but
more accurate and user-friendly.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/blowup
%doc %{_texmfdistdir}/doc/latex/blowup
#- source
%doc %{_texmfdistdir}/source/latex/blowup

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17803 |21mr|texlive-bodegraph-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20047
# category Package
# catalog-ctan /graphics/pgf/contrib/bodegraph
# catalog-date 2010-10-10 09:51:39 +0200
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-bodegraph
Version:	1.4
Release:	7
Summary:	Draw Bode, Nyquist and Black plots with gnuplot and TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/bodegraph
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bodegraph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bodegraph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides facilities to draw Bode, Nyquist and Black
plots using Gnuplot and Tikz. Elementary Transfer Functions and
basic correctors are preprogrammed for use.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bodegraph/bodegraph.sty
%doc %{_texmfdistdir}/doc/latex/bodegraph/README
%doc %{_texmfdistdir}/doc/latex/bodegraph/bodegraph.pdf
%doc %{_texmfdistdir}/doc/latex/bodegraph/bodegraph.tex
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/1.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/1.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/10.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/10.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/11.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/11.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/12.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/12.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/13.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/13.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/14.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/14.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/15.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/15.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/16.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/16.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/17.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/17.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/18.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/18.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/19.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/19.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/20.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/20.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/21.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/21.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/22.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/22.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/23.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/23.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/24.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/24.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/25.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/25.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/26.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/26.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/27.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/27.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/28.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/28.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/29.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/29.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/3.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/3.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/30.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/30.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/31.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/31.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/32.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/32.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/33.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/33.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/34.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/34.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/35.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/35.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/36.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/36.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/37.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/37.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/38.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/38.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/39.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/39.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/4.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/4.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/40.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/40.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/41.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/41.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/42.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/42.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/43.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/43.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/44.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/44.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/45.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/45.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/46.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/46.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/47.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/47.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/48.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/48.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/49.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/49.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/5.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/5.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/50.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/50.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/51.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/51.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/52.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/52.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/53.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/53.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/54.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/54.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/55.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/55.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/56.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/56.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/57.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/57.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/58.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/58.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/59.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/59.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/6.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/6.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/60.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/60.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/61.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/61.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/62.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/62.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/63.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/63.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/64.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/64.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/66.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/66.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/67.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/67.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/68.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/68.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/69.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/69.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/7.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/7.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/70.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/70.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/72.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/72.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/73.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/73.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/74.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/74.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/75.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/75.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/76.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/76.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/78.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/78.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/79.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/79.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/8.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/8.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/81.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/81.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/82.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/82.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/83.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/83.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/84.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/84.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/85.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/85.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/86.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/86.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/87.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/87.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/89.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/89.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/9.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/9.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/90.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/90.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/91.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/91.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/93.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/93.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/94.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/94.table
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/95.gnuplot
%doc %{_texmfdistdir}/doc/latex/bodegraph/gnuplot/bodegraph/95.table

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17804 |21mr|texlive-bohr-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bohr
Version:	1.0
Release:	3
Summary:	Simple atom representation according to the Bohr model
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bohr
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bohr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bohr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides means for the creation of simple Bohr
models of atoms up to the atomic number 112. In addition,
commands are provided to convert atomic numbers to element
symbols or element names and vice versa.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bohr
%doc %{_texmfdistdir}/doc/latex/bohr

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17805 |21mr|texlive-boites-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32235
# category Package
# catalog-ctan /macros/latex/contrib/boites
# catalog-date 2013-11-23 08:21:35 +0100
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-boites
Epoch:		1
Version:	1.1
Release:	10
Summary:	Boxes that may break across pages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/boites
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boites.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boites.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boites.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines environments that allow page breaks inside framed boxes
whose edges may be variously fancy. The bundle includes a few
examples (shaded box, box with a wavy line on its side, etc).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/boites/boites.sty
%{_texmfdistdir}/tex/latex/boites/boites_exemples.sty
%doc %{_texmfdistdir}/doc/latex/boites/Makefile
%doc %{_texmfdistdir}/doc/latex/boites/README
%doc %{_texmfdistdir}/doc/latex/boites/README.docu
%doc %{_texmfdistdir}/doc/latex/boites/boites.pdf
%doc %{_texmfdistdir}/doc/latex/boites/demo.pdf
%doc %{_texmfdistdir}/doc/latex/boites/demo.tex
%doc %{_texmfdistdir}/doc/latex/boites/ligne_qui_ondule_sur_la_gauche.eps
#- source
%doc %{_texmfdistdir}/source/latex/boites/boites.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17806 |21mr|texlive-bold-extra-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17076
# category Package
# catalog-ctan /macros/latex/contrib/bold-extra
# catalog-date 2010-02-23 16:09:16 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-bold-extra
Version:	0.1
Release:	7
Summary:	Use bold small caps and typewriter fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bold-extra
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bold-extra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bold-extra.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Allows access to extra bold fonts for Computer Modern OT1
encoding (such fonts are available as MetaFont source). Since
there is more than one bold tt-family font set, the version
required is selected by a package option.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bold-extra/bold-extra.sty
%doc %{_texmfdistdir}/doc/latex/bold-extra/bold-extra.pdf
%doc %{_texmfdistdir}/doc/latex/bold-extra/bold-extra.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17807 |21mr|texlive-bondgraph-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21670
# category Package
# catalog-ctan /macros/latex/contrib/bondgraph
# catalog-date 2011-03-09 21:09:16 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-bondgraph
Version:	1.0
Release:	7
Summary:	Create bond graph figures in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bondgraph
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bondgraph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bondgraph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package draws bond graphs using PGF and TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bondgraph/bondgraph.sty
%doc %{_texmfdistdir}/doc/latex/bondgraph/License.txt
%doc %{_texmfdistdir}/doc/latex/bondgraph/README
%doc %{_texmfdistdir}/doc/latex/bondgraph/bondgraph_arrows.tex
%doc %{_texmfdistdir}/doc/latex/bondgraph/bondgraph_example.pdf
%doc %{_texmfdistdir}/doc/latex/bondgraph/bondgraph_example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17808 |21mr|texlive-bookest-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/bookest
# catalog-date 2008-08-17 01:00:50 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-bookest
Version:	1.1
Release:	7
Summary:	Extended book class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bookest
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookest.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookest.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class extends the standard book class, in the areas of
colour scheme management, document layout, headings and
footers, front page layout, and other minor items.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bookest/bookest.cls
%doc %{_texmfdistdir}/doc/latex/bookest/README
%doc %{_texmfdistdir}/doc/latex/bookest/bookestdoc-en.pdf
%doc %{_texmfdistdir}/doc/latex/bookest/bookestdoc-en.tex
%doc %{_texmfdistdir}/doc/latex/bookest/bookestdoc-it.pdf
%doc %{_texmfdistdir}/doc/latex/bookest/bookestdoc-it.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17809 |21mr|texlive-booklet-0.7b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/booklet
# catalog-date 2009-09-02 11:33:10 +0200
# catalog-license lppl1.3
# catalog-version 0.7b
Name:		texlive-booklet
Version:	0.7b
Release:	7
Summary:	Aids for printing simple booklets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/booklet
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booklet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booklet.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booklet.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pages of a document processed with the booklet package will be
reordered and scalled so that they can be printed as four pages
per physical sheet of paper, two pages per side. The resulting
sheets will, when folded in half, assemble into a booklet.
Instructions on producing the manual itself as a booklet are
included.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/booklet/bkltprnt.sty
%{_texmfdistdir}/tex/latex/booklet/booklet.sty
%doc %{_texmfdistdir}/doc/latex/booklet/README
%doc %{_texmfdistdir}/doc/latex/booklet/booklet.pdf
#- source
%doc %{_texmfdistdir}/source/latex/booklet/booklet.dtx
%doc %{_texmfdistdir}/source/latex/booklet/booklet.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17810 |21mr|texlive-bookman-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31835
# category Package
# catalog-ctan /fonts/urw/base35
# catalog-date 2012-06-06 22:57:48 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-bookman
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookman.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/bookman/config.ubk
%{_texmfdistdir}/fonts/afm/adobe/bookman/pbkd8a.afm
%{_texmfdistdir}/fonts/afm/adobe/bookman/pbkdi8a.afm
%{_texmfdistdir}/fonts/afm/adobe/bookman/pbkl8a.afm
%{_texmfdistdir}/fonts/afm/adobe/bookman/pbkli8a.afm
%{_texmfdistdir}/fonts/afm/urw/bookman/ubkd8a.afm
%{_texmfdistdir}/fonts/afm/urw/bookman/ubkdi8a.afm
%{_texmfdistdir}/fonts/afm/urw/bookman/ubkl8a.afm
%{_texmfdistdir}/fonts/afm/urw/bookman/ubkli8a.afm
%{_texmfdistdir}/fonts/map/dvips/bookman/ubk.map
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkd.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkd7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkd8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkd8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkd8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdi.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdi7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdi8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdi8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdi8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdo.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdo7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdo8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdo8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkdo8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkl.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkl7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkl8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkl8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkl8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbklc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbklc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbklc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkli.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkli7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkli8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkli8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbkli8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbklo.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbklo7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbklo8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbklo8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/bookman/pbklo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkb7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkb8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkb8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkb8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbi7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbi8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbi8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbi8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbo7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbo8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbo8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkbo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkd7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkd8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkd8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkd8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdi7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdi8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdi8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdi8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdo7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdo8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdo8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkdo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkl7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkl8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkl8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkl8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubklc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubklc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkli7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkli8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkli8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkli8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubklo7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubklo8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubklo8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubklo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkr7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkr8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkr8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkr8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkrc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkrc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkri7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkri8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkri8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkri8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkro7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkro8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkro8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/bookman/ubkro8t.tfm
%{_texmfdistdir}/fonts/type1/urw/bookman/ubkd8a.pfb
%{_texmfdistdir}/fonts/type1/urw/bookman/ubkd8a.pfm
%{_texmfdistdir}/fonts/type1/urw/bookman/ubkdi8a.pfb
%{_texmfdistdir}/fonts/type1/urw/bookman/ubkdi8a.pfm
%{_texmfdistdir}/fonts/type1/urw/bookman/ubkl8a.pfb
%{_texmfdistdir}/fonts/type1/urw/bookman/ubkl8a.pfm
%{_texmfdistdir}/fonts/type1/urw/bookman/ubkli8a.pfb
%{_texmfdistdir}/fonts/type1/urw/bookman/ubkli8a.pfm
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkd.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkd7t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkd8c.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkd8t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdc.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdi.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdi7t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdi8c.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdi8t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdo.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdo7t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdo8c.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkdo8t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkl.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkl7t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkl8c.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkl8t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbklc.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbklc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbklc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkli.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkli7t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkli8c.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbkli8t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbklo.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbklo7t.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbklo8c.vf
%{_texmfdistdir}/fonts/vf/adobe/bookman/pbklo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkb7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkb8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkb8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkbc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkbc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkbi7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkbi8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkbi8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkbo7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkbo8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkbo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkd7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkd8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkd8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkdc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkdc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkdi7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkdi8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkdi8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkdo7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkdo8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkdo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkl7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkl8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkl8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubklc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubklc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkli7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkli8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkli8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubklo7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubklo8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubklo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkr7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkr8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkr8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkrc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkrc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkri7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkri8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkri8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkro7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkro8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/bookman/ubkro8t.vf
%{_texmfdistdir}/tex/latex/bookman/8rubk.fd
%{_texmfdistdir}/tex/latex/bookman/omlubk.fd
%{_texmfdistdir}/tex/latex/bookman/omsubk.fd
%{_texmfdistdir}/tex/latex/bookman/ot1ubk.fd
%{_texmfdistdir}/tex/latex/bookman/t1ubk.fd
%{_texmfdistdir}/tex/latex/bookman/ts1ubk.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17811 |21mr|texlive-bookmark-1.29-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 56885
# category Package
# catalog-date 2020-11-10 00:58:00 +0100
# catalog-license lppl
# catalog-version 1.29
Name:		texlive-bookmark
Version:	1.29
Release:	1
Summary:	Implements a new bookmark (outline) organization for package hyperref
Group:		Publishing
URL:		https://www.ctan.org/pkg/bookmark
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookmark.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookmark.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bookmark.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements a new bookmark (outline) organization for package hyperref.
Bookmark properties such as style and color can now be set. Other action types
are available (URI, GoToR, Named). The bookmarks are generated in the first
compile run. Package hyperref uses two runs.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bookmark/bkm-dvipdfm-2019-12-03.def
%{_texmfdistdir}/tex/latex/bookmark/bkm-dvipdfm.def
%{_texmfdistdir}/tex/latex/bookmark/bkm-dvips-2019-12-03.def
%{_texmfdistdir}/tex/latex/bookmark/bkm-dvips.def
%{_texmfdistdir}/tex/latex/bookmark/bkm-pdftex-2019-12-03.def
%{_texmfdistdir}/tex/latex/bookmark/bkm-pdftex.def
%{_texmfdistdir}/tex/latex/bookmark/bkm-vtex-2019-12-03.def
%{_texmfdistdir}/tex/latex/bookmark/bkm-vtex.def
%{_texmfdistdir}/tex/latex/bookmark/bookmark.sty
%doc %{_texmfdistdir}/doc/latex/bookmark/bookmark.pdf
%doc %{_texmfdistdir}/doc/latex/bookmark/bookmark-example.tex
%doc %{_texmfdistdir}/doc/latex/bookmark/README.md
#- source
%doc %{_texmfdistdir}/source/latex/bookmark/bookmark.dtx
%doc %{_texmfdistdir}/source/latex/bookmark/bookmark-frozen.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17812 |21mr|texlive-booktabs-1.618033-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-booktabs
Version:	1.618033
Release:	3
Summary:	Publication quality tables in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booktabs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booktabs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booktabs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enhances the quality of tables in LaTeX, providing
extra commands as well as behind-the-scenes optimisation.
Guidelines are given as to what constitutes a good table in
this context. From version 1.61, the package offers longtable
compatibility.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/booktabs
%doc %{_texmfdistdir}/doc/latex/booktabs
#- source
%doc %{_texmfdistdir}/source/latex/booktabs

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17813 |21mr|texlive-booktabs-de-1.61803-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21907
# category Package
# catalog-ctan /macros/latex/contrib/booktabs-de
# catalog-date 2011-03-30 22:23:52 +0200
# catalog-license gpl
# catalog-version 1.61803
Name:		texlive-booktabs-de
Version:	1.61803
Release:	6
Summary:	German version of booktabs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/booktabs-de
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booktabs-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booktabs-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a "translation" of the booktabs.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/booktabs-de/README-DE
%doc %{_texmfdistdir}/doc/latex/booktabs-de/booktabs-de.dtx
%doc %{_texmfdistdir}/doc/latex/booktabs-de/booktabs-de.ins
%doc %{_texmfdistdir}/doc/latex/booktabs-de/booktabs-de.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17814 |21mr|texlive-booktabs-fr-1.00-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21948
# category Package
# catalog-ctan /info/translations/booktabs/fr
# catalog-date 2011-04-03 23:29:51 +0200
# catalog-license lppl
# catalog-version 1.00
Name:		texlive-booktabs-fr
Version:	1.00
Release:	6
Summary:	French translation of booktabs documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/booktabs/fr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booktabs-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/booktabs-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The translation comes from a collection provided by Benjamin
Bayart.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/booktabs-fr/README
%doc %{_texmfdistdir}/doc/latex/booktabs-fr/f-booktabs.dtx
%doc %{_texmfdistdir}/doc/latex/booktabs-fr/f-booktabs.pdf
%doc %{_texmfdistdir}/doc/latex/booktabs-fr/ltxdoc.cfg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17815 |21mr|texlive-boolexpr-3.14-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17830
# category Package
# catalog-ctan /macros/latex/contrib/boolexpr
# catalog-date 2010-04-12 11:39:15 +0200
# catalog-license lppl
# catalog-version 3.14
Name:		texlive-boolexpr
Version:	3.14
Release:	7
Summary:	A boolean expression evaluator and a switch command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/boolexpr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boolexpr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boolexpr.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boolexpr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The \boolexpr macro evaluates boolean expressions in a purely
expandable way. \boolexpr{ A \OR B \AND C } expands to 0 if the
logical expression is TRUE. A, B, C may be: - numeric
expressions such as: x=y, x<>y, x>y or x<y; - boolean switches:
\iftrue 0\else 1\fi; - conditionals: \ifcsname
whatsit\endcsname 0\else 1\fi; - another \boolexpr: \boolexpr{
D \OR E \AND F }: \boolexpr may be used with \ifcase:
\ifcase\boolexpr{ A \OR B \AND C } What to do if true \else
What to do if false \fi The \switch command (which is also
expandable) has the form: \switch \case{<boolean expression>}
... \case{<boolean expression>} ... ... \otherwise ...
\endswitch.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/boolexpr/boolexpr.sty
%doc %{_texmfdistdir}/doc/latex/boolexpr/README
%doc %{_texmfdistdir}/doc/latex/boolexpr/boolexpr.pdf
#- source
%doc %{_texmfdistdir}/source/latex/boolexpr/boolexpr.dtx
%doc %{_texmfdistdir}/source/latex/boolexpr/boolexpr.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17816 |21mr|texlive-bophook-0.02-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17062
# category Package
# catalog-ctan /macros/latex/contrib/bophook
# catalog-date 2006-12-31 16:08:10 +0100
# catalog-license lppl
# catalog-version 0.02
Name:		texlive-bophook
Version:	0.02
Release:	7
Summary:	Provides an At-Begin-Page hook
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bophook
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bophook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bophook.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bophook.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Using the \AtBeginPage hook, you can add material in the
background of a page. \PageLayout can be used to give page
makeup commands to be executed on every page (e.g., depend on
the page style).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bophook/bophook.sty
%doc %{_texmfdistdir}/doc/latex/bophook/bophook.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bophook/bophook.dtx
%doc %{_texmfdistdir}/source/latex/bophook/bophook.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17817 |21mr|texlive-boxedminipage-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17087
# category Package
# catalog-ctan /macros/latex/contrib/boxedminipage
# catalog-date 2010-02-23 16:09:16 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-boxedminipage
Version:	20190228
Release:	1
Summary:	A package for producing framed minipages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/boxedminipage
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boxedminipage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boxedminipage.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX package which defines the boxedminipage environment --
like minipage, but with a frame around it.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/boxedminipage/boxedminipage.sty
%doc %{_texmfdistdir}/doc/latex/boxedminipage/boxedminipage.pdf
%doc %{_texmfdistdir}/doc/latex/boxedminipage/boxedminipage.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17818 |21mr|texlive-boxhandler-1.30-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28031
# category Package
# catalog-ctan /macros/latex/contrib/boxhandler
# catalog-date 2012-10-18 23:00:43 +0200
# catalog-license lppl
# catalog-version 1.30
Name:		texlive-boxhandler
Version:	1.30
Release:	10
Summary:	Flexible Captioning and Deferred Box/List Printing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/boxhandler
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boxhandler.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boxhandler.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/boxhandler.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to optimise presentation of LaTeX
tables and figures. Boxhandler will lay out table and figure
captions with a variety of stylistic apperances, and will also
allow figures and tables to be "wrapped" in a manner consistent
with many business and government documents. For a document
that might appear in different venues with different
formatting, boxhandler permits the creation of a LaTeX source
document that can, with a single-line change in the source
code, produce an output that has very different layout from the
baseline configuration, not only in terms of caption style, but
more importantly in terms of the locations where figures,
tables and lists appear (or not) in the document. Deferral
routines also allow one to keep all figure and table data in a
separate source file, while nonetheless producing a document
with figures and tables appearing in the desired location.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/boxhandler/boxhandler.sty
%doc %{_texmfdistdir}/doc/latex/boxhandler/README
%doc %{_texmfdistdir}/doc/latex/boxhandler/boxhandler.pdf
#- source
%doc %{_texmfdistdir}/source/latex/boxhandler/boxhandler.dtx
%doc %{_texmfdistdir}/source/latex/boxhandler/boxhandler.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17819 |21mr|texlive-bpchem-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bpchem
Version:	1.1
Release:	2
Summary:	Typeset chemical names, formulae, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bpchem
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bpchem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bpchem.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bpchem.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for typesetting simple chemical
formulae, those long IUPAC compound names, and some chemical
idioms. It also supports the labelling of compounds and
reference to labelled compounds.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bpchem/bpchem.sty
%doc %{_texmfdistdir}/doc/latex/bpchem/bpchem.pdf
%doc %{_texmfdistdir}/doc/latex/bpchem/README.md
#- source
%doc %{_texmfdistdir}/source/latex/bpchem/bpchem.dtx
%doc %{_texmfdistdir}/source/latex/bpchem/bpchem.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17820 |21mr|texlive-bpolynomial-0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/bpolynomial
# catalog-date 2008-08-17 01:00:50 +0200
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-bpolynomial
Version:	0.5
Release:	7
Summary:	Drawing polynomial functions of up to order 3
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/bpolynomial
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bpolynomial.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bpolynomial.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This MetaPost package helps plotting polynomial and root
functions up to order three. The package provides macros to
calculate Bezier curves exactly matching a given constant,
linear, quadratic or cubic polynomial, or square or cubic root
function. In addition, tangents on all functions and
derivatives of polynomials can be calculated.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/bpolynomial/bpolynomial.mp
%doc %{_texmfdistdir}/doc/metapost/bpolynomial/CHANGES
%doc %{_texmfdistdir}/doc/metapost/bpolynomial/README
%doc %{_texmfdistdir}/doc/metapost/bpolynomial/TODO
%doc %{_texmfdistdir}/doc/metapost/bpolynomial/bpolynomial.pdf
%doc %{_texmfdistdir}/doc/metapost/bpolynomial/bpolynomial.tex
%doc %{_texmfdistdir}/doc/metapost/bpolynomial/examples.mp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17821 |21mr|texlive-bracketkey-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17129
# category Package
# catalog-ctan /macros/latex/contrib/bracketkey
# catalog-date 2010-02-19 21:33:30 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-bracketkey
Version:	1.0
Release:	7
Summary:	Produce bracketed identification keys
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bracketkey
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bracketkey.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bracketkey.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an environment bracketkey for use when
producing lists of species.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bracketkey/bracketkey.sty
%doc %{_texmfdistdir}/doc/latex/bracketkey/Malva.pdf
%doc %{_texmfdistdir}/doc/latex/bracketkey/Malva.tex
%doc %{_texmfdistdir}/doc/latex/bracketkey/README
%doc %{_texmfdistdir}/doc/latex/bracketkey/bracketkey.pdf
%doc %{_texmfdistdir}/doc/latex/bracketkey/bracketkey.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17822 |21mr|texlive-braids-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23790
# category Package
# catalog-ctan /graphics/pgf/contrib/braids
# catalog-date 2011-08-30 13:04:52 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-braids
Version:	1.0
Release:	7
Summary:	Draw braid diagrams with PGF/TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/braids
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/braids.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/braids.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/braids.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables drawing of braid diagrams with PGF/TikZ
using a simple syntax. The braid itself is specified by giving
a word in the braid group, and there are many options for
styling the strands and for drawing "floors".


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/braids/braids.sty
%doc %{_texmfdistdir}/doc/latex/braids/README
%doc %{_texmfdistdir}/doc/latex/braids/braids_doc.pdf
%doc %{_texmfdistdir}/doc/latex/braids/braids_doc.tex
#- source
%doc %{_texmfdistdir}/source/latex/braids/braids.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17823 |21mr|texlive-braket-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17127
# category Package
# catalog-ctan /macros/latex/contrib/braket
# catalog-date 2010-02-23 16:09:16 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-braket
Version:	20190228
Release:	1
Summary:	Dirac bra-ket and set notations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/braket
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/braket.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/braket.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides macros to typeset bra-ket notation, as well as set
specifiers, with a single ("|") or a double ("||" or ("\|")
vertical bar specifier in between two bracketed parts. Each
macro comes in a fixed-size version and an expanding version.
If the package finds itself operating under e-tex, it uses the
extended primitive \middle for more reliable results.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/braket/braket.sty
%doc %{_texmfdistdir}/doc/latex/braket/braket.pdf
%doc %{_texmfdistdir}/doc/latex/braket/braket.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17824 |21mr|texlive-brandeis-dissertation-2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32047
# category Package
# catalog-ctan /macros/latex/contrib/brandeis-dissertation
# catalog-date 2013-10-31 19:22:02 +0100
# catalog-license lppl1.2
# catalog-version 2.0
Name:		texlive-brandeis-dissertation
Version:	2.0
Release:	10
Summary:	Class for Brandeis University dissertations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/brandeis-dissertation
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/brandeis-dissertation.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/brandeis-dissertation.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/brandeis-dissertation.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class will enable the user to typeset a dissertation which
adheres to the formatting guidelines of Brandeis University
Graduate School of Arts and Sciences (GSAS).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/brandeis-dissertation/brandeis-dissertation.cls
%doc %{_texmfdistdir}/doc/latex/brandeis-dissertation/README
%doc %{_texmfdistdir}/doc/latex/brandeis-dissertation/brandeis-dissertation.pdf
%doc %{_texmfdistdir}/doc/latex/brandeis-dissertation/brandeis-dissertation.tex
#- source
%doc %{_texmfdistdir}/source/latex/brandeis-dissertation/brandeis-dissertation.dtx
%doc %{_texmfdistdir}/source/latex/brandeis-dissertation/brandeis-dissertation.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17825 |21mr|texlive-breakurl-1.40-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29901
# category Package
# catalog-ctan /macros/latex/contrib/breakurl
# catalog-date 2013-04-12 10:31:24 +0200
# catalog-license lppl
# catalog-version 1.40
Name:		texlive-breakurl
Version:	1.40
Release:	10
Summary:	Line-breakable \url-like links in hyperref when compiling via dvips/ps2pdf
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/breakurl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/breakurl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/breakurl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/breakurl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a command much like hyperref's \url that
typesets a URL using a typewriter-like font. However, if the
dvips driver is being used, the original \url doesn't allow
line breaks in the middle of the created link: the link comes
in one atomic piece. This package allows such line breaks in
the generated links.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/breakurl/breakurl.sty
%doc %{_texmfdistdir}/doc/latex/breakurl/README
%doc %{_texmfdistdir}/doc/latex/breakurl/breakurl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/breakurl/breakurl.dtx
%doc %{_texmfdistdir}/source/latex/breakurl/breakurl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17826 |21mr|texlive-breqn-0.98k-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-breqn
Version:	0.98k
Release:	1
Summary:	Automatic line breaking of displayed equations
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/breqn
License:	LPPL1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/breqn.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/breqn.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/breqn.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides solutions to a number of common
difficulties in writing displayed equations and getting
high-quality output. For example, it is a well-known
inconvenience that if an equation must be broken into more than
one line, 'left...right' constructs cannot span lines. The
breqn package makes them work as one would expect whether or
not there is an intervening line break.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/breqn
%doc %{_texmfdistdir}/doc/latex/breqn
#- source
%doc %{_texmfdistdir}/source/latex/breqn

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17827 |21mr|texlive-bullcntr-0.04-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/bullcntr
# catalog-date 2008-08-17 01:00:50 +0200
# catalog-license lppl
# catalog-version 0.04
Name:		texlive-bullcntr
Version:	0.04
Release:	7
Summary:	Display list item counter as regular pattern of bullets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bullcntr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bullcntr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bullcntr.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bullcntr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bullcntr package defines the command bullcntr, which can be
thought of as an analogue of the \fnsymbol command: like the
latter, it displays the value of a counter lying between 1 and
9, but uses, for the purpose, a regular pattern of bullets.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bullcntr/bullcntr.sty
%{_texmfdistdir}/tex/latex/bullcntr/bullenum.sty
%doc %{_texmfdistdir}/doc/latex/bullcntr/00readme.txt
%doc %{_texmfdistdir}/doc/latex/bullcntr/README
%doc %{_texmfdistdir}/doc/latex/bullcntr/bullcntr-man.pdf
%doc %{_texmfdistdir}/doc/latex/bullcntr/bullcntr-man.tex
%doc %{_texmfdistdir}/doc/latex/bullcntr/bullcntr-sam.tex
%doc %{_texmfdistdir}/doc/latex/bullcntr/bullenum-sam.tex
%doc %{_texmfdistdir}/doc/latex/bullcntr/manifest.txt
#- source
%doc %{_texmfdistdir}/source/latex/bullcntr/bullcntr.dtx
%doc %{_texmfdistdir}/source/latex/bullcntr/bullcntr.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17828 |21mr|texlive-burmese-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25185
# category Package
# catalog-ctan /language/burmese
# catalog-date 2006-12-21 23:43:15 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-burmese
Version:	20190228
Release:	1
Summary:	Basic Support for Writing Burmese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/burmese
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/burmese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/burmese.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/burmese.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides basic support for writing Burmese. The
package provides a preprocessor (written in Perl), an Adobe
Type 1 font, and LaTeX macros.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/burmese/burmese.map
%{_texmfdistdir}/fonts/tfm/public/burmese/burm.tfm
%{_texmfdistdir}/fonts/type1/public/burmese/burm.pfb
%{_texmfdistdir}/tex/latex/burmese/birm.sty
%{_texmfdistdir}/tex/latex/burmese/ubirm.fd
%doc %{_texmfdistdir}/doc/fonts/burmese/burmguide.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/burmese/birm.pl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17829 |21mr|texlive-bussproofs-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/bussproofs
# catalog-date 2007-03-05 14:17:42 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-bussproofs
Version:	1.1
Release:	1
Summary:	Proof trees in the style of the sequent calculus
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bussproofs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bussproofs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bussproofs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the construction of proof trees in the style
of the sequent calculus and many other proof systems. One novel
feature of the macros is they support the horizontal alignment
according to some centre point specified with the command
\fCenter. This is the style often used in sequent calculus
proofs. The package works in a Plain TeX document, as well as
in LaTeX; an exposition of the commands available is given in
the package file itself.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bussproofs/bussproofs.sty
%doc %{_texmfdistdir}/doc/latex/bussproofs/testbp2.pdf
%doc %{_texmfdistdir}/doc/latex/bussproofs/testbp2.tex
%doc %{_texmfdistdir}/doc/latex/bussproofs/BussGuide2.pdf
%doc %{_texmfdistdir}/doc/latex/bussproofs/BussGuide2.tex
%doc %{_texmfdistdir}/doc/latex/bussproofs/README.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17830 |21mr|texlive-bxbase-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxbase
Version:	1.1
Release:	1
Summary:	BX bundle base components
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/BX/bxbase
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxbase.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxbase.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive bxbase package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxbase
%{_texmfdistdir}/doc/latex/bxbase

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17831 |21mr|texlive-bxcalc-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxcalc
Version:	1.1
Release:	1
Summary:	Extend the functionality of the calc package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/bxcalc
License:	MIT
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/bxcalc.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/bxcalc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package bundle consists of the following packages:
bxcalcize: To make calc expressions available in more places.
bxcalcux: To add user-defined units to the calc syntax.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17832 |21mr|texlive-bxcjkjatype-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxcjkjatype
Version:	0.3
Release:	2
Summary:	Typeset Japanese with pdfLaTeX and CJK
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/bxcjkjatype
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxcjkjatype.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxcjkjatype.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a working configuration of the CJK
package, suitable for Japanese typesetting of moderate quality.
Moreover, it facilitates use of the CJK package for pLaTeX
users, by providing commands that are similar to those used by
the pLaTeX kernel and some other packages used with it.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxcjkjatype
%doc %{_texmfdistdir}/doc/latex/bxcjkjatype

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17833 |21mr|texlive-bxdpx-beamer-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxdpx-beamer
Version:	0.3
Release:	2
Summary:	Dvipdfmx extras for use with beamer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/bxdpx-beamer
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxdpx-beamer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxdpx-beamer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a driver to support beamer Navigation symbols
and \framezoomed regions when using dvipdfmx as PDF generator
(e.g., as part of e-pTeX). The package does not define any
'user' commands.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxdpx-beamer
%doc %{_texmfdistdir}/doc/latex/bxdpx-beamer

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17834 |21mr|texlive-bxdvidriver-0.2a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 2
# category TLCore
# catalog-ctan /macros/latex/contrib/bxdvidriver/bxdvidriver.pl
# catalog-date 2021-03-34 11:50:51 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-bxdvidriver
Version:	0.2a
Release:	1
Epoch:		1
Summary:	Enables specifying a driver option effective only in DVI output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bxdvidriver
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxdvidriver.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxdvidriver.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This single-function package enables authors to specify a global driver 
option  (dvips, dvipdfmx, etc) which is applied only when the engine
outputs a DVI file. 
It is useful to create special document- 
templates that can be compiled in both PDF-mode and DVI-mode.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxdvidriver/
%doc %{_texmfdistdir}/doc/latex/bxdvidriver

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17835 |21mr|texlive-bxeepic-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30559
# category Package
# catalog-ctan /macros/latex/contrib/bxeepic
# catalog-date 2013-05-18 23:56:07 +0200
# catalog-license other-free
# catalog-version 0.2
Name:		texlive-bxeepic
Version:	0.2
Release:	10
Summary:	Eepic facilities using pict2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bxeepic
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxeepic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxeepic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an eepic driver to use pict2e facilities.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxeepic/bxdpxp2e.def
%{_texmfdistdir}/tex/latex/bxeepic/bxeepic.sty
%doc %{_texmfdistdir}/doc/latex/bxeepic/LICENSE
%doc %{_texmfdistdir}/doc/latex/bxeepic/README
%doc %{_texmfdistdir}/doc/latex/bxeepic/sample-bxeepic.pdf
%doc %{_texmfdistdir}/doc/latex/bxeepic/sample-bxeepic.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17836 |21mr|texlive-bxenclose-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 2
# category TLCore
# catalog-ctan /macros/latex/contrib/bxenclose/bxenclose.pl
# catalog-date 2021-03-34 11:50:51 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-bxenclose
Version:	0.2
Release:	1
Epoch:		1
Summary:	Enclose the document body with some pieces of code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bxenclose
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxenclose.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxenclose.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables authors to designate in the preamble to make
the document body enclosed with the given pieces of code.
As is known, there are already various mechanisms provided by LATEX
kernel or packages that attach hooks at the beginning and end of documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxenclose/
%doc %{_texmfdistdir}/doc/latex/bxenclose

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17837 |21mr|texlive-bxjscls-1.9f-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxjscls
Version:	1.9f
Release:	1
Summary:	Document classes based on jsclasses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/BX/bxjscls
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxjscls.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxjscls.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxjscls.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides classes, based on jsclasses.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxjscls
%doc %{_texmfdistdir}/doc/latex/bxjscls
#- source
%doc %{_texmfdistdir}/source/latex/bxjscls

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17838 |21mr|texlive-bxnewfont-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxnewfont
Version:	0.2
Release:	1
Summary:	This package provides a new command newfontx
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/bxnewfont
License:	MIT License
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/bxnewfont.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/bxnewfont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a new command newfontx. It is similar to the old 
(and deprecated) command newfont in function, but is more compatible with NFSS

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17839 |21mr|texlive-bxpdfver-0.5a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxpdfver
Version:	0.5a
Release:	1
Summary:	Specify version and compression level of output PDF files
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/bxpdfver
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxpdfver.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxpdfver.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires: texlive-atbegshi
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package enables users to specify in their sources
the following settings on the PDF document to output:

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxpdfver/bxpdfver.sty
%doc %{_texmfdistdir}/doc/latex/bxpdfver/LICENSE
%doc %{_texmfdistdir}/doc/latex/bxpdfver/README-ja.md
%doc %{_texmfdistdir}/doc/latex/bxpdfver/README.md
%doc %{_texmfdistdir}/doc/latex/bxpdfver/sample-bxpdfver.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17840 |21mr|texlive-bxtexlogo-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-bxtexlogo
Version:	0.4
Release:	1
Summary:	Additional TeX-family logos
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/bxtexlogo
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxtexlogo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bxtexlogo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Recommends:	texlive-hologo
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The hologo package provides many useful logos of popular (and
not so popular) TeX-family software. However, its interface is
a bit cumbersome because you must type \hologo{BibTeX} instead
of \BibTeX. This package makes it possible to import some of
the logos provided by hologo as single commands, such as
\BibTeX. Additionally, the package provides logos of some
TeX-family software that is popular mainly in Japan. These
logos can be imported in the same way as those provided by the
\hologo command. bxtexlogo depends on hologo and cjhebrew (if
\logoAleph and \logoLamed are used).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bxtexlogo/bxtexlogo.sty
%doc %{_texmfdistdir}/doc/latex/bxtexlogo/LICENSE
%doc %{_texmfdistdir}/doc/latex/bxtexlogo/README.md
%doc %{_texmfdistdir}/doc/latex/bxtexlogo/bxtexlogo-sample.pdf
%doc %{_texmfdistdir}/doc/latex/bxtexlogo/bxtexlogo-sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17841 |21mr|texlive-bytefield-2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27580
# category Package
# catalog-ctan /macros/latex/contrib/bytefield
# catalog-date 2012-05-24 17:58:39 +0200
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-bytefield
Version:	2.4
Release:	2
Summary:	Create illustrations for network protocol specifications
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/bytefield
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bytefield.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bytefield.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bytefield.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bytefield package helps the user create illustrations for
network protocol specifications and anything else that utilizes
fields of data. These illustrations show how the bits and bytes
are laid out in a packet or in memory. Users should note that
the present version 2.0 offers a different (and incompatible)
user interface from earlier versions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/bytefield/bytefield.sty
%doc %{_texmfdistdir}/doc/latex/bytefield/README
%doc %{_texmfdistdir}/doc/latex/bytefield/bf-example.pdf
%doc %{_texmfdistdir}/doc/latex/bytefield/bf-example.tex
%doc %{_texmfdistdir}/doc/latex/bytefield/bytefield.pdf
#- source
%doc %{_texmfdistdir}/source/latex/bytefield/bytefield.dtx
%doc %{_texmfdistdir}/source/latex/bytefield/bytefield.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17842 |21mr|texlive-c90-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-c90
Version:	20190228
Release:	1
Summary:	TeXLive c90 package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/c90.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/c90.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/c90.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive c90 package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/c90/c90.enc
%doc %{_texmfdistdir}/doc/fonts/enc/c90/c90.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/enc/c90/c90.etx
%doc %{_texmfdistdir}/source/fonts/enc/c90/c90.mtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17843 |21mr|texlive-cachepic-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /macros/latex/contrib/cachepic
# catalog-date 2012-04-29 18:30:38 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-cachepic
Version:	1.0
Release:	8
Summary:	Convert document fragments into graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cachepic
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cachepic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cachepic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-cachepic.bin = %{EVRD}

%description
The bundle simplifies and automates conversion of document
fragments into external EPS or PDF files. The bundle consists
of two parts: a LaTeX package that implements a document level
interface, and a command line tool (written in lua) that
generates the external graphics.


#-----------------------------------------------------------------------
%files
%{_bindir}/cachepic
%{_texmfdistdir}/scripts/cachepic/cachepic.cmd
%{_texmfdistdir}/scripts/cachepic/cachepic.tlu
%{_texmfdistdir}/tex/latex/cachepic/cachepic.sty
%{_texmfdistdir}/tex/latex/cachepic/prcachepic.def
%doc %{_texmfdistdir}/doc/latex/cachepic/README
%doc %{_texmfdistdir}/doc/latex/cachepic/cachepic.pdf
%doc %{_texmfdistdir}/doc/latex/cachepic/cachepic.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/cachepic/cachepic.tlu cachepic
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17844 |21mr|texlive-calcage-0.90-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27725
# category Package
# catalog-ctan /macros/latex/contrib/calcage
# catalog-date 2012-09-16 15:15:03 +0200
# catalog-license lppl1.3
# catalog-version 0.90
Name:		texlive-calcage
Version:	0.90
Release:	11
Summary:	Calculate the age of something, in years
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/calcage
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calcage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calcage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calcage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package calculates the age of someone or something in
years. Internally it uses the datenumber package to calculate
the age in days; conversion from days to years is then
performed, taking care of leap years and such odd things.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/calcage/calcage.sty
%doc %{_texmfdistdir}/doc/latex/calcage/README
%doc %{_texmfdistdir}/doc/latex/calcage/calcage.pdf
#- source
%doc %{_texmfdistdir}/source/latex/calcage/calcage.dtx
%doc %{_texmfdistdir}/source/latex/calcage/calcage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17845 |21mr|texlive-calctab-0.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/calctab
# catalog-date 2009-07-14 21:55:02 +0200
# catalog-license lppl
# catalog-version v0.6.1
Name:		texlive-calctab
Version:	0.6.1
Release:	2
Summary:	Language for numeric tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/calctab
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calctab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calctab.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The calctab package helps the user to typeset a kind of
economic table such as invoices, expense notes and liquidation,
or other tabular material with a values column. The code
computes sum and percentage with floating point numeric methods
(using the fltpoint package) and builds the render table task.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/calctab/calctab.sty
%doc %{_texmfdistdir}/doc/latex/calctab/README
%doc %{_texmfdistdir}/doc/latex/calctab/calctab_manual.pdf
%doc %{_texmfdistdir}/doc/latex/calctab/calctab_manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17846 |21mr|texlive-calculator-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33041
# category Package
# catalog-ctan /macros/latex/contrib/calculator
# catalog-date 2014-02-24 19:14:14 +0100
# catalog-license lppl1.2
# catalog-version 2.0
Name:		texlive-calculator
Version:	2.0
Release:	7
Summary:	Use LaTeX as a scientific calculator
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/calculator
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calculator.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calculator.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calculator.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The calculator and calculus packages define several
instructions which allow us to realise algebraic operations and
to evaluate elementary functions and derivatives in our
documents. The package's main goal is to define the arithmetic
and functional calculations need in the author's package
xpicture, but the numeric abilities of "calculator" and
"calculus" may be useful in other contexts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/calculator/calculator.sty
%{_texmfdistdir}/tex/latex/calculator/calculus.sty
%doc %{_texmfdistdir}/doc/latex/calculator/README
%doc %{_texmfdistdir}/doc/latex/calculator/calculator.pdf
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator1.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator10.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator11.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator12.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator13.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator14.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator15.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator16.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator17.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator18.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator19.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator2.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator20.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator21.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator22.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator23.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator24.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator25.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator26.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator27.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator28.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator29.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator3.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator30.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator31.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator32.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator33.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator34.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator35.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator36.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator37.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator38.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator39.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator4.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator40.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator41.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator42.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator43.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator44.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator45.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator46.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator47.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator48.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator49.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator5.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator50.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator51.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator52.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator53.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator54.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator55.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator56.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator57.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator58.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator59.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator6.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator60.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator61.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator62.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator7.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator8.tex
%doc %{_texmfdistdir}/doc/latex/calculator/examples/calculator9.tex
#- source
%doc %{_texmfdistdir}/source/latex/calculator/calculator.dtx
%doc %{_texmfdistdir}/source/latex/calculator/calculator.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17847 |21mr|texlive-calrsfs-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17125
# category Package
# catalog-ctan /macros/latex/contrib/calrsfs
# catalog-date 2010-02-20 21:59:31 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-calrsfs
Version:	20190228
Release:	1
Summary:	Copperplate calligraphic letters in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/calrsfs
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calrsfs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calrsfs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a maths interface to the rsfs fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/calrsfs/OMSrsfs.fd
%{_texmfdistdir}/tex/latex/calrsfs/calrsfs.sty
%doc %{_texmfdistdir}/doc/latex/calrsfs/README
%doc %{_texmfdistdir}/doc/latex/calrsfs/calrsfs.pdf
%doc %{_texmfdistdir}/doc/latex/calrsfs/calrsfs.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17848 |21mr|texlive-cals-2.4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cals
Version:	2.4.2
Release:	2
Summary:	Multipage tables with wide range of features
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cals
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cals.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cals.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cals.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to typeset multipage tables with
repeatable headers and footers, and with cells spanned over
rows and columns. Decorations are supported: padding,
background color, width of separation rules. The package is
compatible with multicol and pdfsync.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cals
%doc %{_texmfdistdir}/doc/latex/cals
#- source
%doc %{_texmfdistdir}/source/latex/cals

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17849 |21mr|texlive-calxxxx-yyyy-20.19a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-calxxxx-yyyy
Version:	20.19a
Release:	1
Summary:	Print a calendar for a group of years
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/calxxxx-yyyy
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calxxxx-yyyy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/calxxxx-yyyy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package prints a calendar for 2 or more years, according to
a language selection. The package is also "culture dependent",
in the sense that it will start weeks according to local rules:
e.g., weeks conventionally start on Monday in the English-
speaking world.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/calxxxx-yyyy
%doc %{_texmfdistdir}/doc/latex/calxxxx-yyyy

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17850 |21mr|texlive-cancel-2.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32508
# category Package
# catalog-ctan /macros/latex/contrib/cancel
# catalog-date 2013-12-30 10:37:07 +0100
# catalog-license pd
# catalog-version 2.2
Name:		texlive-cancel
Version:	2.2
Release:	6
Summary:	Place lines through maths formulae
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cancel
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cancel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cancel.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package to draw diagonal lines ("cancelling" a term) and
arrows with limits (cancelling a term "to a value") through
parts of maths formulae.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cancel/cancel.sty
%doc %{_texmfdistdir}/doc/latex/cancel/cancel.pdf
%doc %{_texmfdistdir}/doc/latex/cancel/cancel.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17851 |21mr|texlive-canoniclayout-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24523
# category Package
# catalog-ctan /macros/latex/contrib/canoniclayout
# catalog-date 2011-11-06 17:08:08 +0100
# catalog-license lppl1.3
# catalog-version 0.4
Name:		texlive-canoniclayout
Epoch:		1
Version:	0.4
Release:	7
Summary:	Create canonical page layouts with memoir
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/canoniclayout
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/canoniclayout.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/canoniclayout.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/canoniclayout.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A canonic text layout has specified relations to a circle
inscribed within the enclosing page. The package allows the
user to use a canonic layout with the memoir class.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/canoniclayout/canoniclayout.sty
%doc %{_texmfdistdir}/doc/latex/canoniclayout/README
%doc %{_texmfdistdir}/doc/latex/canoniclayout/canoniclayout.pdf
#- source
%doc %{_texmfdistdir}/source/latex/canoniclayout/canoniclayout.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17852 |21mr|texlive-captcont-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/captcont
# catalog-date 2006-12-31 11:53:07 +0100
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-captcont
Version:	2.0
Release:	7
Summary:	Retain float number across several floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/captcont
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/captcont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/captcont.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/captcont.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The captcont package provides the ability to continue the
numbering in your float environment (figure, table, etc.) with
minimal overhead. This package adds three commands: \caption*,
\captcont, and \captcont*. Along with the \caption command,
these give full control over the caption numbering, caption
text and the entries in the list-of pages. The \caption and
\captcont commands generate list-of page entries. The \caption
and \caption* commands increment the figure or table counter.
Captcont also fully supports the subfigure package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/captcont/captcont.sty
%doc %{_texmfdistdir}/doc/latex/captcont/README
%doc %{_texmfdistdir}/doc/latex/captcont/captcont.pdf
%doc %{_texmfdistdir}/doc/latex/captcont/ltxdoc.cfg
%doc %{_texmfdistdir}/doc/latex/captcont/test.tex
#- source
%doc %{_texmfdistdir}/source/latex/captcont/Makefile
%doc %{_texmfdistdir}/source/latex/captcont/captcont.dtx
%doc %{_texmfdistdir}/source/latex/captcont/captcont.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17853 |21mr|texlive-captdef-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17353
# category Package
# catalog-ctan /macros/latex/contrib/captdef
# catalog-date 2010-03-09 12:54:42 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-captdef
Version:	20190228
Release:	1
Summary:	Declare free-standing \caption commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/captdef
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/captdef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/captdef.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The \DeclareCaption command defines a class of caption command
associated with the counter specified to the command. These
commands are free-standing (i.e., don't need to be inside a
float environment). The package uses \DeclareCaption to define
\figcaption and \tabcaption, which can be used outside figure
or table environments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/captdef/captdef.sty
%doc %{_texmfdistdir}/doc/latex/captdef/captdef.pdf
%doc %{_texmfdistdir}/doc/latex/captdef/captdef.tex
%doc %{_texmfdistdir}/doc/latex/captdef/miscdoc.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17854 |21mr|texlive-caption-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30449
# category Package
# catalog-ctan /macros/latex/contrib/caption
# catalog-date 2013-05-13 11:02:43 +0200
# catalog-license lppl1.3
# catalog-version 2013-05-12
Name:		texlive-caption
Epoch:		1
Version:	20190228
Release:	1
Summary:	Customising captions in floating environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/caption
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/caption.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/caption.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/caption.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The caption package provides many ways to customise the
captions in floating environments like figure and table, and
cooperates with many other packages. Facilities include
rotating captions, sideways captions, continued captions (for
tables or figures that come in several parts). A list of
compatibility notes, for other packages, is provided in the
documentation. The package also provides the "caption outside
float" facility, in the same way that simpler packages like
capt-of do. The package supersedes caption2.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/caption/bicaption.sty
%{_texmfdistdir}/tex/latex/caption/caption.sty
%{_texmfdistdir}/tex/latex/caption/caption2.sty
%{_texmfdistdir}/tex/latex/caption/caption3.sty
%{_texmfdistdir}/tex/latex/caption/ltcaption.sty
%{_texmfdistdir}/tex/latex/caption/newfloat.sty
%{_texmfdistdir}/tex/latex/caption/subcaption.sty
%{_texmfdistdir}/tex/latex/caption/totalcount.sty
%doc %{_texmfdistdir}/doc/latex/caption/CHANGELOG
%doc %{_texmfdistdir}/doc/latex/caption/README
%doc %{_texmfdistdir}/doc/latex/caption/SUMMARY
%doc %{_texmfdistdir}/doc/latex/caption/bicaption.pdf
%doc %{_texmfdistdir}/doc/latex/caption/caption-deu.pdf
%doc %{_texmfdistdir}/doc/latex/caption/caption-eng.pdf
%doc %{_texmfdistdir}/doc/latex/caption/caption-rus.pdf
%doc %{_texmfdistdir}/doc/latex/caption/ltcaption.pdf
%doc %{_texmfdistdir}/doc/latex/caption/newfloat.pdf
%doc %{_texmfdistdir}/doc/latex/caption/subcaption.pdf
%doc %{_texmfdistdir}/doc/latex/caption/totalcount.pdf
#- source
%doc %{_texmfdistdir}/source/latex/caption/bicaption.dtx
%doc %{_texmfdistdir}/source/latex/caption/caption-deu.tex
%doc %{_texmfdistdir}/source/latex/caption/caption-eng.tex
%doc %{_texmfdistdir}/source/latex/caption/caption-rus.tex
%doc %{_texmfdistdir}/source/latex/caption/caption.dtx
%doc %{_texmfdistdir}/source/latex/caption/caption.ins
%doc %{_texmfdistdir}/source/latex/caption/caption2.dtx
%doc %{_texmfdistdir}/source/latex/caption/caption3.dtx
%doc %{_texmfdistdir}/source/latex/caption/cat.eps
%doc %{_texmfdistdir}/source/latex/caption/elephant.eps
%doc %{_texmfdistdir}/source/latex/caption/ltcaption.dtx
%doc %{_texmfdistdir}/source/latex/caption/newfloat.dtx
%doc %{_texmfdistdir}/source/latex/caption/subcaption.dtx
%doc %{_texmfdistdir}/source/latex/caption/totalcount.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17855 |21mr|texlive-capt-of-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/capt-of
# catalog-date 2012-04-27 20:27:12 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-capt-of
Version:	20190228
Release:	1
Summary:	Captions on more than floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/capt-of
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/capt-of.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/capt-of.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/capt-of.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a command \captionof for putting a caption to something
that's not a float. Note that the caption package includes a
\captionof command that is an extension of that provided by
this package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/capt-of/capt-of.sty
%doc %{_texmfdistdir}/doc/latex/capt-of/README
%doc %{_texmfdistdir}/doc/latex/capt-of/capt-of.pdf
#- source
%doc %{_texmfdistdir}/source/latex/capt-of/capt-of.dtx
%doc %{_texmfdistdir}/source/latex/capt-of/capt-of.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17856 |21mr|texlive-carbohydrates-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-carbohydrates
Version:	0.1
Release:	1
Summary:    Carbohydrate molecules with chemfig
Group:      Education	
URL:		https://ctan.org/pkg/carbohydrates
License:	The LaTeX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/carbohydrates.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/carbohydrates.doc.tar.xz
BuildArch:      noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package offers macros that make the preparation of exercise sheets for teaching carbohydrate chemistry a lot less tedious.
It uses chemfig for drawing the formulas.
Different representation models (Fischer, Haworth, chair…) are supported as well as alpha, beta, and chain isomers. 


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17857 |21mr|texlive-carlisle-20170414-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18258
# category Package
# catalog-ctan /macros/latex/contrib/carlisle
# catalog-date 2010-02-18 13:36:42 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-carlisle
Version:	20170414
Release:	3
Summary:	David Carlisle's small packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/carlisle
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/carlisle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/carlisle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/carlisle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Many of David Carlisle's more substantial packages stand on
their own, or as part of the LaTeX tools set; this set
contains: - Making dotless 'j' characters for fonts that don't
have them; - Fix marks in 2-column output; - A method for
combining the capabilities of longtable and tabularx; - A
proforma for building personalised LaTeX formats; - A jiffy to
suppress page numbers; - An environment for including Plain TeX
in LaTeX documents; - A jiffy to remove counters from other
counters' reset lists; - A package to rescale fonts to
arbitrary sizes; - A jiffy to create 'slashed' for physicists;
and - An environment for including HTML in LaTeX documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/carlisle/dotlessj.sty
%{_texmfdistdir}/tex/latex/carlisle/ltxtable.sty
%{_texmfdistdir}/tex/latex/carlisle/mylatex.ltx
%{_texmfdistdir}/tex/latex/carlisle/plain.sty
%{_texmfdistdir}/tex/latex/carlisle/remreset.sty
%{_texmfdistdir}/tex/latex/carlisle/scalefnt.sty
%{_texmfdistdir}/tex/latex/carlisle/slashed.sty
%doc %{_texmfdistdir}/doc/latex/carlisle/README
%doc %{_texmfdistdir}/doc/latex/carlisle/ltx1.tex
%doc %{_texmfdistdir}/doc/latex/carlisle/ltxtable.pdf
#- source
%doc %{_texmfdistdir}/source/latex/carlisle/ltxtable.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17858 |21mr|texlive-cascadilla-1.8.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25144
# category Package
# catalog-ctan /macros/latex/contrib/cascadilla
# catalog-date 2012-01-18 17:26:55 +0100
# catalog-license lppl
# catalog-version 1.8.2
Name:		texlive-cascadilla
Version:	1.8.2
Release:	7
Summary:	Typeset papers conforming to the stylesheet of Cascadilla Proceedings Project
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cascadilla
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cascadilla.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cascadilla.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides an extension of the standard LaTeX article
class that may be used to typeset papers conforming to the
stylesheet of the Cascadilla Proceedings Project, which is used
by a number of linguistics conference proceedings (e.g.,
WCCFL).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/cascadilla/cascadilla.bst
%{_texmfdistdir}/tex/latex/cascadilla/cascadilla.cls
%doc %{_texmfdistdir}/doc/latex/cascadilla/LICENSE.txt
%doc %{_texmfdistdir}/doc/latex/cascadilla/README
%doc %{_texmfdistdir}/doc/latex/cascadilla/example.pdf
%doc %{_texmfdistdir}/doc/latex/cascadilla/example.tex
%doc %{_texmfdistdir}/doc/latex/cascadilla/exampleref.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17859 |21mr|texlive-cases-2.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17123
# category Package
# catalog-ctan /macros/latex/contrib/cases
# catalog-date 2010-02-23 16:16:11 +0100
# catalog-license pd
# catalog-version 2.5
Name:		texlive-cases
Version:	2.5
Release:	7
Summary:	Numbered cases environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cases
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cases.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cases.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Define the environment numcases: equations with several
alternative right-hand sides, with equation numbers for each
alternative. Also environment subnumcases, where each
alternative is a sub-number (e.g., 8a, 8b, ...) of the equation
set as a whole.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cases/cases.sty
%doc %{_texmfdistdir}/doc/latex/cases/cases.pdf
%doc %{_texmfdistdir}/doc/latex/cases/cases.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17860 |21mr|texlive-casyl-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/casyl
# catalog-date 2008-10-26 18:17:50 +0100
# catalog-license pd
# catalog-version 2.0
Name:		texlive-casyl
Version:	2.0
Release:	7
Summary:	Typeset Cree/Inuktitut in Canadian Aboriginal Syllabics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/casyl
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/casyl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/casyl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle constitutes a font (as MetaFont source) and LaTeX
macros for its use within a document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/casyl/casyll10.mf
%{_texmfdistdir}/fonts/tfm/public/casyl/casyll10.tfm
%{_texmfdistdir}/tex/latex/casyl/casyltex.sty
%doc %{_texmfdistdir}/doc/latex/casyl/README
%doc %{_texmfdistdir}/doc/latex/casyl/casyldoc.pdf
%doc %{_texmfdistdir}/doc/latex/casyl/casyldoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17861 |21mr|texlive-catchfilebetweentags-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21476
# category Package
# catalog-ctan /macros/latex/contrib/catchfilebetweentags
# catalog-date 2011-02-19 16:41:47 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-catchfilebetweentags
Version:	1.1
Release:	7
Summary:	Catch text delimited by docstrip tags
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/catchfilebetweentags
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catchfilebetweentags.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catchfilebetweentags.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catchfilebetweentags.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package (built using the facilities of catchfile) provides
a macro \catchfilebetweentags acts like the original \catchfile
but only extracts a portion of the file instead of the complete
file. The extracted portion can be delimited by strings or by
docstrip tags: %<*tag> .... %</tag> (comments in the caught
region may be included or dropped).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/catchfilebetweentags/catchfilebetweentags.sty
%doc %{_texmfdistdir}/doc/latex/catchfilebetweentags/README
%doc %{_texmfdistdir}/doc/latex/catchfilebetweentags/catchfilebetweentags.pdf
#- source
%doc %{_texmfdistdir}/source/latex/catchfilebetweentags/catchfilebetweentags.drv
%doc %{_texmfdistdir}/source/latex/catchfilebetweentags/catchfilebetweentags.dtx
%doc %{_texmfdistdir}/source/latex/catchfilebetweentags/catchfilebetweentags.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17862 |21mr|texlive-catechis-2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-catechis
Version:	2.5
Release:	1
Summary:	Macros for typesetting catechisms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/catechis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catechis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catechis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catechis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The macros include: - format for question-and-answer; -
comments on answers; - citations; - a specialised enumerate
which only operates in the catechism parts of a document. The
macros are all highly customisable.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/catechis
%doc %{_texmfdistdir}/doc/latex/catechis
#- source
%doc %{_texmfdistdir}/source/latex/catechis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17863 |21mr|texlive-catoptions-0.2.7h-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-catoptions
Version:	0.2.7h
Release:	2
Summary:	Preserving and recalling standard catcodes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/catoptions
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catoptions.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/catoptions.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package changes package loading internals so that all
subsequently loaded packages can rely on normal/standard
catcodes of all ASCII characters. The package defines canonical
control sequences to represent all the visible ASCII
characters. It also provides robust option parsing mechanisms
(XDeclareOption, XExecuteOptions and XProcessOptions, which
will be used by \documentclass if the package has already been
loaded). The package also provides a range of other TeX
programming tools.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/catoptions
%doc %{_texmfdistdir}/doc/latex/catoptions

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17864 |21mr|texlive-cbcoptic-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16666
# category Package
# catalog-ctan /language/coptic/cbcoptic
# catalog-date 2010-01-11 08:55:42 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-cbcoptic
Version:	0.2
Release:	7
Summary:	Coptic fonts and LaTeX macros for general usage and for philology
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/coptic/cbcoptic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cbcoptic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cbcoptic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
CBcoptic is a bundle of files for typesetting Coptic
philological text with the proper fonts and hyphenation. The
fonts are based on, but much extend, the fonts of the original
coptic bundle. The CBcoptic bundle includes font description
files, MetaFont sources and equivalent Adobe Type 1 fonts in
pfb format. The bundle also includes a package that provides
some macros of philological interest.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/cbcoptic/coptbase.mf
%{_texmfdistdir}/fonts/source/public/cbcoptic/copti.mf
%{_texmfdistdir}/fonts/source/public/cbcoptic/copto.mf
%{_texmfdistdir}/fonts/tfm/public/cbcoptic/copti.tfm
%{_texmfdistdir}/fonts/tfm/public/cbcoptic/copto.tfm
%{_texmfdistdir}/fonts/type1/public/cbcoptic/copti.pfb
%{_texmfdistdir}/fonts/type1/public/cbcoptic/copto.pfb
%{_texmfdistdir}/tex/latex/cbcoptic/coptic.sty
%{_texmfdistdir}/tex/latex/cbcoptic/lcopcoptic.fd
%{_texmfdistdir}/tex/latex/cbcoptic/prnthyph.sty
%doc %{_texmfdistdir}/doc/latex/cbcoptic/README
%doc %{_texmfdistdir}/doc/latex/cbcoptic/coptfont.pdf
%doc %{_texmfdistdir}/doc/latex/cbcoptic/testcop.tex
%doc %{_texmfdistdir}/doc/latex/cbcoptic/testcopOK.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17865 |21mr|texlive-cbfonts-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31624
# category Package
# catalog-ctan /fonts/greek/cbfonts
# catalog-date 2013-04-19 12:28:38 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-cbfonts
Version:	20190228
Release:	1
Summary:	Complete set of Greek fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/cbfonts
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cbfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cbfonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-cbfonts-fd

%description
This bundle presents the whole of Beccari's original Greek font
set, which use the 'Lispiakos' font shape derived from the
shape of the fonts used in printers' shops in Lispia. The fonts
are available both as Metafont source and in Adobe Type 1
format, and at the same wide set of design sizes as are such
font sets as the EC fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/cbfonts/CB.enc
%{_texmfdistdir}/fonts/enc/dvips/cbfonts/gmtr.enc
%{_texmfdistdir}/fonts/map/dvips/cbfonts/cbgreek-full.map
%{_texmfdistdir}/fonts/source/public/cbfonts/cbaccent.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbbase.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbdigits.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbgreek.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cblig.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbligit.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbligrm.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbligsc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbligtt.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cblower.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbmetre.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbpunct.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbspline.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/cbupper.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glic4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glii4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glin4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glio4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gliu4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljc4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljn4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gljo4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmc4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmi4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmn4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmo4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glmu4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltc4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gltn4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glto4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwc4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwi4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwn4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwo4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glwu4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxc4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxi4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxn4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxo4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu1382.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu1659.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu1991.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu2389.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu2866.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu3440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/glxu4128.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmmo3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmtr3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gmxo3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomc3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomi3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomo3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gomu3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxc3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxi3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxo3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/goxu3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grbl3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmc3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmi3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grml3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmo3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grmu3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxc3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxi3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxl3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxo3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/grxu3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsma3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmc3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsme3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmi3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmo3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsmu3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxa3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxc3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxe3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxi3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxo3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gsxu3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttc3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtti3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttn3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gtto3583.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu0500.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu0600.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu0700.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu0800.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu0900.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu1000.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu1095.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu1200.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu1440.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu1728.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu2074.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu2488.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu2986.mf
%{_texmfdistdir}/fonts/source/public/cbfonts/gttu3583.mf
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glic4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glii4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glin4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glio4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gliu4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljc4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljn4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gljo4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmc4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmi4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmn4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmo4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glmu4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltc4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gltn4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glto4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwc4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwi4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwn4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwo4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glwu4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxc4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxi4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxn4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxo4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu1382.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu1659.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu1991.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu2389.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu2866.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu3440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/glxu4128.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmmo3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmtr3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gmxo3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomo3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gomu3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxo3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/goxu3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grbl3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grml3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmo3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grmu3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxl3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxo3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/grxu3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsma3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsme3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmo3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsmu3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxa3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxe3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxi3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxo3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gsxu3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttc3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtti3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttn3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gtto3583.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu0500.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu0600.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu0700.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu0800.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu0900.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu1000.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu1095.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu1200.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu1440.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu1728.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu2074.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu2488.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu2986.tfm
%{_texmfdistdir}/fonts/tfm/public/cbfonts/gttu3583.tfm
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glic4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glii4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glin4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glio4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gliu4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljc4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljn4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gljo4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmc4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmi4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmn4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmo4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glmu4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltc4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gltn4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glto4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwc4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwi4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwn4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwo4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glwu4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxc4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxi4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxn4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxo4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu1382.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu1659.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu1991.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu2389.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu2866.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu3440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/glxu4128.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmmo3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmtr3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gmxo3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomo3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gomu3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxo3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/goxu3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grbl3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grml3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmo3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grmu3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxl3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxo3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/grxu3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsma3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsme3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmo3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsmu3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxa3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxe3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxo3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gsxu3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtti3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttn3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gtto3583.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu0500.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu0600.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu0700.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu0800.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu0900.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu1000.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu1095.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu1200.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu1440.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu1728.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu2074.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu2488.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu2986.pfb
%{_texmfdistdir}/fonts/type1/public/cbfonts/gttu3583.pfb
%doc %{_texmfdistdir}/doc/fonts/cbfonts/README
%doc %{_texmfdistdir}/doc/fonts/cbfonts/cbgreek.pdf
%doc %{_texmfdistdir}/doc/fonts/cbfonts/cbgreek.tex
%doc %{_texmfdistdir}/doc/fonts/cbfonts/grmn1000table.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17866 |21mr|texlive-cbfonts-fd-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31624
# category Package
# catalog-ctan /fonts/greek/cbfonts-fd
# catalog-date 2013-09-10 12:13:23 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-cbfonts-fd
Version:	1.2
Release:	2
Summary:	LaTeX font description files for the CB Greek fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/cbfonts-fd
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cbfonts-fd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cbfonts-fd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cbfonts-fd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides font description files for all the many
shapes available from the cbfonts collection. The files provide
the means whereby the NFSS knows which fonts a LaTeX user is
requesting.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrcmr.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrcmro.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrcmss.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrcmtt.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrlcmss.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrlcmtt.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrlmr.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrlmro.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrlmss.fd
%{_texmfdistdir}/tex/latex/cbfonts-fd/lgrlmtt.fd
%doc %{_texmfdistdir}/doc/fonts/cbfonts-fd/README
%doc %{_texmfdistdir}/doc/fonts/cbfonts-fd/cbfonts-fd.pdf
%doc %{_texmfdistdir}/doc/fonts/cbfonts-fd/manifest.txt
#- source
%doc %{_texmfdistdir}/source/fonts/cbfonts-fd/cbfonts-fd.fdd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17867 |21mr|texlive-ccaption-3.2c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23443
# category Package
# catalog-ctan /macros/latex/contrib/ccaption
# catalog-date 2009-09-02 11:33:10 +0200
# catalog-license lppl1.3
# catalog-version 3.2b
Name:		texlive-ccaption
Version:	3.2c
Release:	2
Summary:	Continuation headings and legends for floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ccaption
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccaption.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccaption.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccaption.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package providing commands for 'continuation captions',
unnumbered captions, and also a non-specific legend heading for
any environment. Methods are also provided to define captions
for use outside float (e.g., figure and table) environments,
and to define new float environments and Lists of Floats. Tools
are provided for specifying your own captioning styles.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ccaption/ccaption.sty
%doc %{_texmfdistdir}/doc/latex/ccaption/README
%doc %{_texmfdistdir}/doc/latex/ccaption/ccaption.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ccaption/ccaption.dtx
%doc %{_texmfdistdir}/source/latex/ccaption/ccaption.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17868 |21mr|texlive-ccicons-1.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30020
# category Package
# catalog-ctan /fonts/ccicons
# catalog-date 2013-04-17 11:42:52 +0200
# catalog-license lppl1.3
# catalog-version 1.5
Name:		texlive-ccicons
Epoch:		1
Version:	1.6
Release:	3
Summary:	LaTeX support for Creative Commons icons
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ccicons
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccicons.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccicons.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ccicons.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to typeset Creative Commons
icons, in documents licensed under CC licences. A font (in
Adobe Type 1 format) and LaTeX support macros are provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/ccicons/ccicons-u.enc
%{_texmfdistdir}/fonts/map/dvips/ccicons/ccicons.map
%{_texmfdistdir}/fonts/opentype/public/ccicons/ccicons.otf
%{_texmfdistdir}/fonts/tfm/public/ccicons/ccicons.tfm
%{_texmfdistdir}/fonts/type1/public/ccicons/ccicons.pfb
%{_texmfdistdir}/tex/latex/ccicons/ccicons.sty
%doc %{_texmfdistdir}/doc/fonts/ccicons/FONTLOG.txt
%doc %{_texmfdistdir}/doc/fonts/ccicons/OFL.txt
%doc %{_texmfdistdir}/doc/latex/ccicons/ccicons.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/ccicons/ccicons.sfd
%doc %{_texmfdistdir}/source/latex/ccicons/ccicons.dtx
%doc %{_texmfdistdir}/source/latex/ccicons/ccicons.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17869 |21mr|texlive-cclicenses-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cclicenses
# catalog-date 2008-08-17 13:56:26 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-cclicenses
Version:	20190228
Release:	1
Summary:	Typeset Creative Commons licence logos
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cclicenses
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cclicenses.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cclicenses.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cclicenses.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The cclicenses package helps users typesetting Creative Commons
logos in LaTeX. It defines some commands useful to quickly
write these logos, related to CC licences versions 1.0 and 2.0.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cclicenses/cclicenses.sty
%doc %{_texmfdistdir}/doc/latex/cclicenses/README
%doc %{_texmfdistdir}/doc/latex/cclicenses/cclicenses_short.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cclicenses/cclicenses.dtx
%doc %{_texmfdistdir}/source/latex/cclicenses/cclicenses.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17870 |21mr|texlive-cc-pl-1.02.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/cc-pl
# catalog-date 2009-09-24 20:53:04 +0200
# catalog-license pd
# catalog-version 1.02.2
Name:		texlive-cc-pl
Version:	1.02.2
Release:	7
Summary:	Polish extension of Computer Concrete fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cc-pl
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cc-pl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cc-pl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These MetaFont sources rely on the availability of the MetaFont
'Polish' fonts and of the MetaFont sources of the original
Concrete fonts. Adobe Type 1 versions of the fonts are
included.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/cc-pl/ccpl.map
%{_texmfdistdir}/fonts/source/public/cc-pl/fic_mic.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pccsc10.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcmi10.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcr10.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcr5.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcr6.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcr7.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcr8.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcr9.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcsl10.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcslc9.mf
%{_texmfdistdir}/fonts/source/public/cc-pl/pcti10.mf
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pccsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcslc9.tfm
%{_texmfdistdir}/fonts/tfm/public/cc-pl/pcti10.tfm
%{_texmfdistdir}/fonts/type1/public/cc-pl/pccsc10.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcmi10.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcr10.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcr5.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcr6.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcr7.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcr8.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcr9.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcsl10.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcslc9.pfb
%{_texmfdistdir}/fonts/type1/public/cc-pl/pcti10.pfb
%doc %{_texmfdistdir}/doc/fonts/cc-pl/README.cc-pl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17871 |21mr|texlive-cd-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cd
# catalog-date 2008-05-06 19:08:04 +0200
# catalog-license gpl
# catalog-version 1.3
Name:		texlive-cd
Version:	1.4
Release:	2
Summary:	Typeset CD covers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cd
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Normal usage will ordinarily require no more than a simple data
file per cover; the package will make a full insert for a CD
case (it copes with both normal and slim cases).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cd/cd.cls
%doc %{_texmfdistdir}/doc/latex/cd/CD.tex
%doc %{_texmfdistdir}/doc/latex/cd/CDlist.tex
%doc %{_texmfdistdir}/doc/latex/cd/README
%doc %{_texmfdistdir}/doc/latex/cd/cd.pdf
%doc %{_texmfdistdir}/doc/latex/cd/example.dat
%doc %{_texmfdistdir}/doc/latex/cd/parsecd.rb
%doc %{_texmfdistdir}/doc/latex/cd/slimCD.tex
%doc %{_texmfdistdir}/doc/latex/cd/slimCDlist.tex
#- source
%doc %{_texmfdistdir}/source/latex/cd/cd.dtx
%doc %{_texmfdistdir}/source/latex/cd/cd.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17872 |21mr|texlive-cd-cover-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17121
# category Package
# catalog-ctan /macros/latex/contrib/cd-cover
# catalog-date 2010-02-21 01:36:59 +0100
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-cd-cover
Version:	1.0
Release:	7
Summary:	Typeset CD covers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cd-cover
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cd-cover.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cd-cover.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cd-cover.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The CD-cover class will typeset front and back cover sheets for
CD jewel cases, or an entire paper cover, or a label for a
plastic slip-cover.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cd-cover/cd-cover.cls
%doc %{_texmfdistdir}/doc/latex/cd-cover/README
%doc %{_texmfdistdir}/doc/latex/cd-cover/cd-cover.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cd-cover/cd-cover.dtx
%doc %{_texmfdistdir}/source/latex/cd-cover/cd-cover.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17873 |21mr|texlive-cdpbundl-0.36d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cdpbundl
Version:	0.36d
Release:	2
Summary:	Business letters in the Italian style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cdpbundl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cdpbundl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cdpbundl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cdpbundl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The C.D.P. Bundle can be used to typeset high-quality business
letters formatted according to Italian style conventions. It is
highly configurable, and its modular structure provides you
with building blocks of increasing level, by means of which you
can compose a large variety of letters. It is also possible to
write letters divided into sections and paragraphs, to include
floating figures and tables, and to have the relevant indexes
compiled automatically. A single input file can contain several
letters, and each letter will have its own table of contents,
etc., independant from the other ones.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cdpbundl
%doc %{_texmfdistdir}/doc/latex/cdpbundl
#- source
%doc %{_texmfdistdir}/source/latex/cdpbundl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17874 |21mr|texlive-cellprops-2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cellprops
Version:	2
Release:	1
Summary:    Reworking of internal components of tabular, massive, and similar structures
Group:      Education	
URL:		https://www.ctan.org/pkg/cellprops
License:	The LaTeX Project Public License 1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/cellprops.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/cellprops.doc.tar.xz
BuildArch:      noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package reworks the internals of tabular, array, and similar constructs, and adds a \cellprops command accepting CSS-like selectors and properties. 
It depends on mdwtab, xcolor, expl3, and xparse.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17875 |21mr|texlive-cellspace-1.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cellspace
# catalog-date 2009-08-03 16:22:07 +0200
# catalog-license lppl
# catalog-version 1.6
Name:		texlive-cellspace
Version:	1.8.1
Release:	1
Summary:	Ensure minimal spacing of table cells
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cellspace
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cellspace.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cellspace.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
It is well known that high or deep cells tend to touch the
\hlines of a tabular. This package provides a modifier S acting
on usual column types so that to ensure a minimal distance that
can be controlled through two parameters \cellspacetoplimit and
\cellspacebottomlimit. The approach employed by this package is
noticeably simpler than that of tabls, which considers the
dimensions of each entire row; whereas you can ask the
cellspace only to look at the cells of potentially difficult
columns.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cellspace/cellspace.sty
%doc %{_texmfdistdir}/doc/latex/cellspace/README
%doc %{_texmfdistdir}/doc/latex/cellspace/cellspace.pdf
%doc %{_texmfdistdir}/doc/latex/cellspace/cellspace.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17876 |21mr|texlive-censor-3.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31332
# category Package
# catalog-ctan /macros/latex/contrib/censor
# catalog-date 2013-07-31 09:50:54 +0200
# catalog-license lppl1.3
# catalog-version 3.21
Name:		texlive-censor
Version:	3.22
Release:	1
Summary:	Facilities for controlling restricted text in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/censor
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/censor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/censor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows a convenient redaction/censor capability to
be employed, for those who need to protect restricted
information, etc. The package can "redact" anything that can be
enclosed by a LaTeX box.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/censor/censor.sty
%doc %{_texmfdistdir}/doc/latex/censor/README
%doc %{_texmfdistdir}/doc/latex/censor/censor.pdf
%doc %{_texmfdistdir}/doc/latex/censor/censor.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17877 |21mr|texlive-changebar-3.5c-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/changebar
# catalog-date 2011-09-30 20:51:09 +0200
# catalog-license lppl
# catalog-version 3.5c
Name:		texlive-changebar
Version:	3.5c
Release:	12
Summary:	Generate changebars in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/changebar
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changebar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changebar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changebar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Identify areas of text to be marked with changebars with the
\cbstart and \cbend commands; the bars may be coloured. The
package uses 'drivers' to place the bars; the available drivers
can work with dvitoln03, dvitops, dvips, the emTeX and TeXtures
DVI drivers, and VTeX and PDFTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/changebar/changebar.sty
%doc %{_texmfdistdir}/doc/latex/changebar/00readme.txt
%doc %{_texmfdistdir}/doc/latex/changebar/catalog.txt
%doc %{_texmfdistdir}/doc/latex/changebar/cbtest1-ltx.pdf
%doc %{_texmfdistdir}/doc/latex/changebar/cbtest1-pdf.pdf
%doc %{_texmfdistdir}/doc/latex/changebar/cbtest1.tex
%doc %{_texmfdistdir}/doc/latex/changebar/cbtest2-ltx.pdf
%doc %{_texmfdistdir}/doc/latex/changebar/cbtest2-pdf.pdf
%doc %{_texmfdistdir}/doc/latex/changebar/cbtest2.tex
%doc %{_texmfdistdir}/doc/latex/changebar/changebar.bug
%doc %{_texmfdistdir}/doc/latex/changebar/changebar.pdf
%doc %{_texmfdistdir}/doc/latex/changebar/chbar.1
%doc %{_texmfdistdir}/doc/latex/changebar/chbar.sh
%doc %{_texmfdistdir}/doc/latex/changebar/manifest.txt
#- source
%doc %{_texmfdistdir}/source/latex/changebar/changebar.dtx
%doc %{_texmfdistdir}/source/latex/changebar/changebar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17878 |21mr|texlive-changelayout-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16094
# category Package
# catalog-ctan /macros/latex/contrib/changelayout
# catalog-date 2009-11-09 14:16:05 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-changelayout
Version:	1.0
Release:	7
Summary:	Change the layout of individual pages and their text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/changelayout
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changelayout.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changelayout.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is an extension of the changepage package to permit
the user to change the layout of individual pages and their
texts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/changelayout/changelayout.sty
%doc %{_texmfdistdir}/doc/latex/changelayout/README
%doc %{_texmfdistdir}/doc/latex/changelayout/changelayout-guide.pdf
%doc %{_texmfdistdir}/doc/latex/changelayout/changelayout-guide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17879 |21mr|texlive-changelog-2.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-changelog
Version:	2.4.0
Release:	1
Summary:    Providing a changelog environment 
Group:      Education	
URL:		https://www.ctan.org/pkg/changelog
License:	The LaTeX Project Public License 1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/changelog.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/changelog.doc.tar.xz
BuildArch:      noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a changelog environment (which itself provides a version environment) to represent a changelog.
The package supports multiple authors, unreleased changes, and yanked (revoked) releases.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17880 |21mr|texlive-changepage-1.0c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/changepage
# catalog-date 2009-11-09 14:16:05 +0100
# catalog-license lppl1.3
# catalog-version 1.0c
Name:		texlive-changepage
Version:	1.0c
Release:	7
Summary:	Margin adjustment and detection of odd/even pages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/changepage
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changepage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changepage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changepage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to change the page layout in the
middle of a document, and to robustly check for typesetting on
odd or even pages. Instructions for use are at the end of the
file. The package is an extraction of code from the memoir
class, whose user interface it shares. It is intended the this
package will eventually replace the chngpage package, which is
distributed with the package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/changepage/changepage.sty
%{_texmfdistdir}/tex/latex/changepage/chngpage.sty
%doc %{_texmfdistdir}/doc/latex/changepage/README
%doc %{_texmfdistdir}/doc/latex/changepage/changepage.pdf
#- source
%doc %{_texmfdistdir}/source/latex/changepage/changepage.ins
%doc %{_texmfdistdir}/source/latex/changepage/changepage.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17881 |21mr|texlive-changes-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-changes
Version:	3.1.2
Release:	1
Summary:	Manual change markup
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/changes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/changes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to manually markup changes of text,
such as additions, deletions, or replacements. Changed text is
shown in a different colour; deleted text is crossed out. The
package allows definition of additional authors and their
associated colour. It also allows you to define a markup for
authors or annotations. A bash script is provided for removing
the changes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/changes
%doc %{_texmfdistdir}/doc/latex/changes
#- source
%doc %{_texmfdistdir}/source/latex/changes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17882 |21mr|texlive-chappg-2.1b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/chappg
# catalog-date 2009-05-30 13:37:26 +0200
# catalog-license lppl
# catalog-version 2.1b
Name:		texlive-chappg
Version:	2.1b
Release:	7
Summary:	Page numbering by chapter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chappg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chappg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chappg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chappg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides for 'chapterno-pageno' or 'chaptername-
pageno' page numbering. Provision is made for front- and
backmatter in book class.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chappg/chappg.sty
%doc %{_texmfdistdir}/doc/latex/chappg/chappg.pdf
#- source
%doc %{_texmfdistdir}/source/latex/chappg/chappg.dtx
%doc %{_texmfdistdir}/source/latex/chappg/chappg.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17883 |21mr|texlive-chapterfolder-2.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/chapterfolder
# catalog-date 2008-02-29 20:00:41 +0100
# catalog-license lppl
# catalog-version 2.0.1
Name:		texlive-chapterfolder
Version:	2.0.1
Release:	7
Summary:	Package for working with complicated folder structures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chapterfolder
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chapterfolder.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chapterfolder.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chapterfolder.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package simplifies working with folder structures that
match the chapter/section/subsection structure. It provides
macros to define a folder that contains the file for a
chapter/section/subsection, and provides macros that allow
inclusion without using the full path, rather the path relative
to the current folder of the chapter/section/subsection. It
makes easy changing the name of a folder, for example.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chapterfolder/chapterfolder.sty
%doc %{_texmfdistdir}/doc/latex/chapterfolder/chapterfolder.pdf
#- source
%doc %{_texmfdistdir}/source/latex/chapterfolder/chapterfolder.dtx
%doc %{_texmfdistdir}/source/latex/chapterfolder/chapterfolder.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17884 |21mr|texlive-charter-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/charter
# catalog-date 2009-05-23 20:19:02 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-charter
Version:	20190228
Release:	1
Summary:	Charter fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/charter
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/charter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/charter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A commercial text font donated for the common good. Support for
use with LaTeX is available in freenfss, part of psnfss.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/bitstrea/charter/bchb8a.afm
%{_texmfdistdir}/fonts/afm/bitstrea/charter/bchbi8a.afm
%{_texmfdistdir}/fonts/afm/bitstrea/charter/bchr8a.afm
%{_texmfdistdir}/fonts/afm/bitstrea/charter/bchri8a.afm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchb7t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchb8c.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchb8r.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchb8t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbc7t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbc8t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbi7t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbi8c.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbi8r.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbi8t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbo7t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbo8c.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbo8r.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchbo8t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchr7t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchr8c.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchr8r.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchr8t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchrc7t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchrc8t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchri7t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchri8c.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchri8r.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchri8t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchro7t.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchro8c.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchro8r.tfm
%{_texmfdistdir}/fonts/tfm/bitstrea/charter/bchro8t.tfm
%{_texmfdistdir}/fonts/type1/bitstrea/charter/bchb8a.pfb
%{_texmfdistdir}/fonts/type1/bitstrea/charter/bchbi8a.pfb
%{_texmfdistdir}/fonts/type1/bitstrea/charter/bchr8a.pfb
%{_texmfdistdir}/fonts/type1/bitstrea/charter/bchri8a.pfb
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchb7t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchb8c.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchb8t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchbc7t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchbc8t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchbi7t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchbi8c.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchbi8t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchbo7t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchbo8c.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchbo8t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchr7t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchr8c.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchr8t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchrc7t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchrc8t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchri7t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchri8c.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchri8t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchro7t.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchro8c.vf
%{_texmfdistdir}/fonts/vf/bitstrea/charter/bchro8t.vf
%doc %{_texmfdistdir}/doc/fonts/charter/readme.charter

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17885 |21mr|texlive-cheatsheet-0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cheatsheet
Version:	0.8
Release:	1
Summary:    A simple cheatsheet class
Group:      Education	
URL:		https://ctan.org/pkg/cheatsheet
License:	MIT License
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cheatsheet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cheatsheet.doc.tar.xz
BuildArch:      noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a clean, multi-column design intended for cheat sheets.
It imports the most useful packages and encloses the document in a multicol environment. 


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17886 |21mr|texlive-checkcites-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28572
# category Package
# catalog-ctan /support/checkcites
# catalog-date 2012-12-18 18:32:41 +0100
# catalog-license lppl1.3
# catalog-version 1.0i
Name:		texlive-checkcites
Version:	2.0
Release:	2
Summary:	Check citation commands in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/checkcites
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/checkcites.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/checkcites.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-checkcites.bin = %{EVRD}

%description
The package provides a lua script written for the sole purpose
of detecting undefined and unused references from LaTeX
auxiliary or bibliography files.

#-----------------------------------------------------------------------
%files
%{_bindir}/checkcites
%{_texmfdistdir}/scripts/checkcites/checkcites.lua
%doc %{_texmfdistdir}/doc/support/checkcites/README
%doc %{_texmfdistdir}/doc/support/checkcites/checkcites-doc.pdf
%doc %{_texmfdistdir}/doc/support/checkcites/checkcites-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/checkcites/checkcites.lua checkcites
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17887 |21mr|texlive-chemarrow-0.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17146
# category Package
# catalog-ctan /macros/latex/contrib/chemarrow
# catalog-date 2010-02-21 18:58:04 +0100
# catalog-license pd
# catalog-version 0.9
Name:		texlive-chemarrow
Version:	0.9
Release:	7
Summary:	Arrows for use in chemistry
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chemarrow
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemarrow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemarrow.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemarrow.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle consists of a font (available as metafont source,
metapost source, and generated type 1 versions), and a package
to use it. The arrows in the font are designed to look more
like those in chemistry text-books than do Knuth's originals.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/chemarrow/arrow.afm
%{_texmfdistdir}/fonts/map/dvips/chemarrow/chemarrow.map
%{_texmfdistdir}/fonts/source/public/chemarrow/arrow.mf
%{_texmfdistdir}/fonts/tfm/public/chemarrow/arrow.tfm
%{_texmfdistdir}/fonts/type1/public/chemarrow/arrow.inf
%{_texmfdistdir}/fonts/type1/public/chemarrow/arrow.pfb
%{_texmfdistdir}/fonts/type1/public/chemarrow/arrow.pfm
%{_texmfdistdir}/tex/latex/chemarrow/chemarrow.sty
%doc %{_texmfdistdir}/doc/fonts/chemarrow/Liesmich.txt
%doc %{_texmfdistdir}/doc/fonts/chemarrow/README
%doc %{_texmfdistdir}/doc/fonts/chemarrow/arrow.Mac.sit.hqx
%doc %{_texmfdistdir}/doc/fonts/chemarrow/chemarrow-de.pdf
%doc %{_texmfdistdir}/doc/fonts/chemarrow/chemarrow-de.tex
%doc %{_texmfdistdir}/doc/fonts/chemarrow/chemarrow.pdf
%doc %{_texmfdistdir}/doc/fonts/chemarrow/chemarrow.tex
%doc %{_texmfdistdir}/doc/fonts/chemarrow/testchem.tex
#- source
%doc %{_texmfdistdir}/source/fonts/chemarrow/Arrow.vfb
%doc %{_texmfdistdir}/source/fonts/chemarrow/arrow.mp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17888 |21mr|texlive-chemcompounds-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/chemcompounds
# catalog-date 2007-03-05 14:17:42 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-chemcompounds
Version:	20190228
Release:	1
Summary:	Simple consecutive numbering of chemical compounds
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chemcompounds
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemcompounds.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemcompounds.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemcompounds.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The chemcompounds package allows for a simple consecutive
numbering of chemical compounds. Optionally, it is possible to
supply a custom name for each compound. The package differs
from the chemcono package by not generating an odd-looking list
of compounds inside the text.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chemcompounds/chemcompounds.sty
%doc %{_texmfdistdir}/doc/latex/chemcompounds/README
%doc %{_texmfdistdir}/doc/latex/chemcompounds/chemcompounds.pdf
#- source
%doc %{_texmfdistdir}/source/latex/chemcompounds/chemcompounds.dtx
%doc %{_texmfdistdir}/source/latex/chemcompounds/chemcompounds.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17889 |21mr|texlive-chemcono-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17119
# category Package
# catalog-ctan /macros/latex/contrib/chemcono
# catalog-date 2010-02-21 19:20:01 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-chemcono
Version:	1.3
Release:	7
Summary:	Support for compound numbers in chemistry documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chemcono
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemcono.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemcono.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for using compound numbers in chemistry
documents. It works like \cite and the \thebibliography, using
\fcite and \theffbibliography instead. It allows compound names
in documents to be numbered and does not affect the normal
citation routines.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chemcono/chemcono.sty
%{_texmfdistdir}/tex/latex/chemcono/drftcono.sty
%{_texmfdistdir}/tex/latex/chemcono/showkeysff.sty
%doc %{_texmfdistdir}/doc/latex/chemcono/chemcono.pdf
%doc %{_texmfdistdir}/doc/latex/chemcono/chemcono.tex
%doc %{_texmfdistdir}/doc/latex/chemcono/example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17890 |21mr|texlive-chemexec-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21632
# category Package
# catalog-ctan /macros/latex/contrib/chemexec
# catalog-date 2011-03-06 18:27:32 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-chemexec
Version:	1.0
Release:	7
Summary:	Creating (chemical) exercise sheets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chemexec
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemexec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemexec.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides environments and commands that the author
needed when preparing exercise sheets and other teaching
material. In particular, the package supports the creation of
exercise sheets, with separating printing of solutions.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chemexec/chemexec.sty
%doc %{_texmfdistdir}/doc/latex/chemexec/README
%doc %{_texmfdistdir}/doc/latex/chemexec/chemexec_de.pdf
%doc %{_texmfdistdir}/doc/latex/chemexec/chemexec_de.tex
%doc %{_texmfdistdir}/doc/latex/chemexec/chemexec_en.pdf
%doc %{_texmfdistdir}/doc/latex/chemexec/chemexec_en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17891 |21mr|texlive-chemfig-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chemfig
Version:	1.4
Release:	1
Summary:	Draw molecules with easy syntax
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/chemfig
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemfig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemfig.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the command \chemfig{<code>}, which draws
molecules using the tikz package. The <code> argument provides
instructions for the drawing operation. While the diagrams
produced are essentially 2-dimensional, the package supports
many of the conventional notations for illustrating the 3-
dimensional layout of a molecule. The package uses TikZ for its
actual drawing operations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/chemfig
%doc %{_texmfdistdir}/doc/generic/chemfig

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17892 |21mr|texlive-chem-journal-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/chem-journal
# catalog-date 2007-01-01 10:31:54 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-chem-journal
Version:	20190228
Release:	1
Summary:	Various BibTeX formats for journals in Chemistry
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/chem-journal
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chem-journal.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Various BibTeX formats for journals in Chemistry, including
Reviews in Computational Chemistry, Journal of Physical
Chemistry, Journal of Computational Chemistry, and Physical
Chemistry Chemical Physics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/chem-journal/jcc.bst
%{_texmfdistdir}/bibtex/bst/chem-journal/jpc.bst
%{_texmfdistdir}/bibtex/bst/chem-journal/pccp.bst
%{_texmfdistdir}/bibtex/bst/chem-journal/revcompchem.bst

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17893 |21mr|texlive-chemmacros-5.8b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chemmacros
Version:	5.8b
Release:	2
Summary:	A collection of macros to support typesetting chemistry documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chemmacros
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemmacros.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemmacros.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle offers a collection of macros and commands which are
intended to make typesetting chemistry documents faster and
more convenient. Coverage includes some nomenclature commands,
oxidation numbers, thermodynamic data, newman projections, etc.
The four packages in the bundle are: chemmacros, providing the
basic requirements; chemformula (v4.2a), providing a command
for typesetting chemical formulae and reactions (doing a
similar task to that of mhchem); chemgreek (v0.2a), offering
support for use of greek letters; and ghsystem, providing for
the UN globally harmonised chemical notation. The packages are
written using current versions of the experimental LaTeX 3
coding conventions and the LaTeX 3 support packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chemmacros
%doc %{_texmfdistdir}/doc/latex/chemmacros

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17894 |21mr|texlive-chemnum-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33161
# category Package
# catalog-ctan /macros/latex/contrib/chemnum
# catalog-date 2014-03-12 17:25:07 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-chemnum
Version:	1.2
Release:	2
Summary:	A method of numbering chemical compounds
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chemnum
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemnum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemnum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a \label- and \ref-like commands for
compound numbers. The package requires LaTeX 3 packages expl3
(from the l3kernel bundle) and xparse (from the l3packages
bundle).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chemnum/chemnum.sty
%doc %{_texmfdistdir}/doc/latex/chemnum/README
%doc %{_texmfdistdir}/doc/latex/chemnum/chemnum_en.pdf
%doc %{_texmfdistdir}/doc/latex/chemnum/chemnum_en.tex
%doc %{_texmfdistdir}/doc/latex/chemnum/scheme-bla.ps
%doc %{_texmfdistdir}/doc/latex/chemnum/scheme-tmp.ps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17895 |21mr|texlive-chemstyle-2.0m-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31096
# category Package
# catalog-ctan /macros/latex/contrib/chemstyle
# catalog-date 2013-07-05 11:22:34 +0200
# catalog-license lppl1.3
# catalog-version 2.0m
Name:		texlive-chemstyle
Version:	2.0m
Release:	10
Summary:	Writing chemistry with style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chemstyle
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemstyle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemstyle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chemstyle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Chemstyle has been developed as a successor to the LaTeX
package provided by the rsc bundle. The package provides an
extensible system for formatting chemistry documents according
to the conventions of a number of leading journals. It also
provides some handy chemistry-related macros. Chemstyle is much
enhanced compared to its predecessor, and users of rsc are
strongly encouraged to migrate (all of the additional macros in
the rsc LaTeX package are present in chemstyle). The package
chemscheme is distributed with chemstyle; chemstyle itself
incorporates ideas that come from the trivfloat package; the
documentation uses the auto-pst-pdf package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chemstyle/chemscheme.sty
%{_texmfdistdir}/tex/latex/chemstyle/chemstyle.sty
%{_texmfdistdir}/tex/latex/chemstyle/config/angew.chemstyle.cfg
%{_texmfdistdir}/tex/latex/chemstyle/config/ic.chemstyle.cfg
%{_texmfdistdir}/tex/latex/chemstyle/config/jacs.chemstyle.cfg
%{_texmfdistdir}/tex/latex/chemstyle/config/jomc.chemstyle.cfg
%{_texmfdistdir}/tex/latex/chemstyle/config/orglett.chemstyle.cfg
%{_texmfdistdir}/tex/latex/chemstyle/config/rsc.chemstyle.cfg
%{_texmfdistdir}/tex/latex/chemstyle/config/tetlett.chemstyle.cfg
%doc %{_texmfdistdir}/doc/latex/chemstyle/README
%doc %{_texmfdistdir}/doc/latex/chemstyle/chemscheme.cdx
%doc %{_texmfdistdir}/doc/latex/chemstyle/chemstyle-demo.tex
%doc %{_texmfdistdir}/doc/latex/chemstyle/chemstyle.pdf
#- source
%doc %{_texmfdistdir}/source/latex/chemstyle/chemstyle.dtx
%doc %{_texmfdistdir}/source/latex/chemstyle/chemstyle.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17896 |21mr|texlive-chess-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20582
# category Package
# catalog-ctan /fonts/chess/chess
# catalog-date 2006-12-31 18:14:50 +0100
# catalog-license pd
# catalog-version 1.2
Name:		texlive-chess
Version:	1.2
Release:	7
Summary:	Fonts for typesetting chess boards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/chess/chess
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chess.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chess.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The original (and now somewhat dated) TeX chess font package.
Potential users should consider skak (for alternative fonts,
and notation support), texmate (for alternative notation
support), or chessfss (for flexible font choices).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/chess/README.mf
%{_texmfdistdir}/fonts/source/public/chess/chess10.mf
%{_texmfdistdir}/fonts/source/public/chess/chess20.mf
%{_texmfdistdir}/fonts/source/public/chess/chess30.mf
%{_texmfdistdir}/fonts/source/public/chess/chessbase.mf
%{_texmfdistdir}/fonts/source/public/chess/chessdiag.mf
%{_texmfdistdir}/fonts/source/public/chess/chessf10.mf
%{_texmfdistdir}/fonts/source/public/chess/chesspieces.mf
%{_texmfdistdir}/fonts/source/public/chess/empty.mf
%{_texmfdistdir}/fonts/tfm/public/chess/chess10.tfm
%{_texmfdistdir}/fonts/tfm/public/chess/chess20.tfm
%{_texmfdistdir}/fonts/tfm/public/chess/chess30.tfm
%{_texmfdistdir}/fonts/tfm/public/chess/chessf10.tfm
%{_texmfdistdir}/fonts/tfm/public/chess/chessfig10.tfm
%{_texmfdistdir}/tex/latex/chess/chess.sty
%doc %{_texmfdistdir}/doc/fonts/chess/board.epsf
%doc %{_texmfdistdir}/doc/fonts/chess/boards.ltx
%doc %{_texmfdistdir}/doc/fonts/chess/changes12
%doc %{_texmfdistdir}/doc/fonts/chess/chessdiag.Xmf
%doc %{_texmfdistdir}/doc/fonts/chess/copyright
%doc %{_texmfdistdir}/doc/fonts/chess/dutch-tt.ltx
%doc %{_texmfdistdir}/doc/fonts/chess/dutch-tt.tex
%doc %{_texmfdistdir}/doc/fonts/chess/installation
%doc %{_texmfdistdir}/doc/fonts/chess/kasparov.ltx
%doc %{_texmfdistdir}/doc/fonts/chess/makefile
%doc %{_texmfdistdir}/doc/fonts/chess/readme
%doc %{_texmfdistdir}/doc/fonts/chess/schaakmaatje.ltx
%doc %{_texmfdistdir}/doc/fonts/chess/symbols.ltx
%doc %{_texmfdistdir}/doc/fonts/chess/symbols.tex
%doc %{_texmfdistdir}/doc/fonts/chess/tal.ltx
%doc %{_texmfdistdir}/doc/fonts/chess/tal.tex
%doc %{_texmfdistdir}/doc/fonts/chess/tugboat.ltx
%doc %{_texmfdistdir}/doc/fonts/chess/tuggame.ltx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17897 |21mr|texlive-chessboard-1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/chessboard
# catalog-date 2008-08-17 13:56:26 +0200
# catalog-license lppl
# catalog-version 1.7
Name:		texlive-chessboard
Version:	1.7
Release:	7
Summary:	Print chess boards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chessboard
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chessboard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chessboard.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chessboard.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package offers commands to print chessboards. It can print
partial boards, hide pieces and fields, color the boards and
put various marks on the board. It has a lot of options to
place pieces on the board. Using exotic pieces (e.g., for fairy
chess) is possible. The documentation includes an example of an
animated chessboard, for those whose PDF viewer can display
animations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chessboard/chessboard-keys-main.sty
%{_texmfdistdir}/tex/latex/chessboard/chessboard-keys-pgf.sty
%{_texmfdistdir}/tex/latex/chessboard/chessboard-pgf.sty
%{_texmfdistdir}/tex/latex/chessboard/chessboard.sty
%doc %{_texmfdistdir}/doc/latex/chessboard/README
%doc %{_texmfdistdir}/doc/latex/chessboard/README.TEXLIVE
#- source
%doc %{_texmfdistdir}/source/latex/chessboard/chessboard-src.dtx
%doc %{_texmfdistdir}/source/latex/chessboard/chessboard.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17898 |21mr|texlive-chessfss-1.2a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/chessfss
# catalog-date 2008-08-17 13:56:26 +0200
# catalog-license lppl
# catalog-version 1.2a
Name:		texlive-chessfss
Version:	1.2a
Release:	7
Summary:	A package to handle chess fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chessfss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chessfss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chessfss.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chessfss.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package offers commands to use and switch between chess
fonts. It uses the LaTeX font selection scheme (nfss). The
package doesn't parse, format and print PGN input like e.g. the
packages skak or texmate; the aim of the package is to offer
writers of chess packages a bundle of commands for fonts, so
that they don't have to implement all these commands for
themselves. A normal user can use the package to print e.g.
single chess symbols and simple diagrams. The documentation
contains also a section about installation of chess fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/chessfss/chess-board-example-enc.enc
%{_texmfdistdir}/fonts/enc/dvips/chessfss/chess-fig-example-enc.enc
%{_texmfdistdir}/tex/latex/chessfss/chessfss.sty
%{_texmfdistdir}/tex/latex/chessfss/lsb1enc.def
%{_texmfdistdir}/tex/latex/chessfss/lsb1skak.fd
%{_texmfdistdir}/tex/latex/chessfss/lsb1skaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsb2enc.def
%{_texmfdistdir}/tex/latex/chessfss/lsb2skak.fd
%{_texmfdistdir}/tex/latex/chessfss/lsb2skaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsb3enc.def
%{_texmfdistdir}/tex/latex/chessfss/lsb3skak.fd
%{_texmfdistdir}/tex/latex/chessfss/lsb3skaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsbc1enc.def
%{_texmfdistdir}/tex/latex/chessfss/lsbc1skaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsbc2enc.def
%{_texmfdistdir}/tex/latex/chessfss/lsbc2skaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsbc3enc.def
%{_texmfdistdir}/tex/latex/chessfss/lsbc3skaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsbc4enc.def
%{_texmfdistdir}/tex/latex/chessfss/lsbc4skaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsbc5enc.def
%{_texmfdistdir}/tex/latex/chessfss/lsbc5skaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsbenc.def
%{_texmfdistdir}/tex/latex/chessfss/lsbskak.fd
%{_texmfdistdir}/tex/latex/chessfss/lsbskaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsfenc.def
%{_texmfdistdir}/tex/latex/chessfss/lsfskak.fd
%{_texmfdistdir}/tex/latex/chessfss/lsfskaknew.fd
%{_texmfdistdir}/tex/latex/chessfss/lsienc.def
%{_texmfdistdir}/tex/latex/chessfss/lsiskak.fd
%{_texmfdistdir}/tex/latex/chessfss/lsiskaknew.fd
%doc %{_texmfdistdir}/doc/latex/chessfss/README
%doc %{_texmfdistdir}/doc/latex/chessfss/README.TEXLIVE
#- source
%doc %{_texmfdistdir}/source/latex/chessfss/chessfss-src.dtx
%doc %{_texmfdistdir}/source/latex/chessfss/chessfss.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17899 |21mr|texlive-chess-problem-diagrams-1.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30870
# category Package
# catalog-ctan /macros/latex/contrib/chess-problem-diagrams
# catalog-date 2013-06-22 23:41:37 +0200
# catalog-license lppl1.2
# catalog-version 1.6.5
Name:		texlive-chess-problem-diagrams
Version:	1.12
Release:	2
Summary:	A package for typesetting chess problem diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chess-problem-diagrams
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chess-problem-diagrams.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chess-problem-diagrams.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chess-problem-diagrams.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides macros to typeset chess problem diagrams
including fairy chess problems (mostly using rotated images of
pieces) and other boards.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chess-problem-diagrams/diagram.sty
%doc %{_texmfdistdir}/doc/latex/chess-problem-diagrams/README
%doc %{_texmfdistdir}/doc/latex/chess-problem-diagrams/diagram.pdf
#- source
%doc %{_texmfdistdir}/source/latex/chess-problem-diagrams/diagram.dtx
%doc %{_texmfdistdir}/source/latex/chess-problem-diagrams/diagram.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17900 |21mr|texlive-chet-2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32384
# category Package
# catalog-ctan /macros/latex/contrib/chet
# catalog-date 2013-12-11 21:08:43 +0100
# catalog-license lppl1.3
# catalog-version 1.6
Name:		texlive-chet
Version:	2.2
Release:	2
Summary:	LaTeX layout inspired by harvmac
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chet
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chet.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is designed to streamline the work of typesetting,
and to provide the look and feel of harvmac for readers.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/chet/chetref.bst
%{_texmfdistdir}/tex/latex/chet/chet.sty
%doc %{_texmfdistdir}/doc/latex/chet/README
%doc %{_texmfdistdir}/doc/latex/chet/chetdoc.pdf
%doc %{_texmfdistdir}/doc/latex/chet/chetdoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17901 |21mr|texlive-chextras-1.01-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27118
# category Package
# catalog-ctan /macros/latex/contrib/chextras
# catalog-date 2012-07-20 19:39:58 +0200
# catalog-license lppl1.3
# catalog-version 1.01
Name:		texlive-chextras
Version:	1.01
Release:	6
Summary:	A companion package for the Swiss typesetter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chextras
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chextras.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chextras.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chextras.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package simplifies the preparation of Swiss documents and
letters by setting up linguistic and common packages. While it
is a useful addition to the chletter document class, it is not
tied to it and may be used as a general purpose package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chextras/chextras.sty
%{_texmfdistdir}/tex/latex/chextras/eu1lmros.fd
%{_texmfdistdir}/tex/latex/chextras/eu1lmssos.fd
%{_texmfdistdir}/tex/latex/chextras/eu1lmttos.fd
%{_texmfdistdir}/tex/latex/chextras/eu1lmvttos.fd
%{_texmfdistdir}/tex/latex/chextras/t1lmros.fd
%{_texmfdistdir}/tex/latex/chextras/t1lmssos.fd
%{_texmfdistdir}/tex/latex/chextras/t1lmttos.fd
%{_texmfdistdir}/tex/latex/chextras/t1lmvttos.fd
%doc %{_texmfdistdir}/doc/latex/chextras/README
%doc %{_texmfdistdir}/doc/latex/chextras/chextras.pdf
#- source
%doc %{_texmfdistdir}/source/latex/chextras/chextras.dtx
%doc %{_texmfdistdir}/source/latex/chextras/chextras.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17902 |21mr|texlive-chickenize-0.2.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chickenize
Version:	0.2.5
Release:	3
Summary:	Use lua callbacks for "interesting" textual effects
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/chickenize
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chickenize.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chickenize.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chickenize.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows manipulations of any LuaTeX document (it is
known to work with Plain LuaTeX and LuaLaTeX). Most of the
package's functions are merely for fun or educational use, but
some functions (for example, colorstretch for visualising the
badness and font expansion of each line, and letterspaceadjust
doing what its name says) could be useful in a "normal" LuaTeX
document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/chickenize
%doc %{_texmfdistdir}/doc/luatex/chickenize
#- source
%doc %{_texmfdistdir}/source/luatex/chickenize

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17903 |21mr|texlive-chkfloat-0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27473
# category Package
# catalog-ctan /macros/latex/contrib/chkfloat
# catalog-date 2012-08-20 08:30:38 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-chkfloat
Version:	0.1
Release:	12
Summary:	Warn whenever a float is placed "to far away"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chkfloat
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chkfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chkfloat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package checks for floats that are placed too far from
their origin. It was motivated by a question on the question
and answer page.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chkfloat/chkfloat.sty
%doc %{_texmfdistdir}/doc/latex/chkfloat/README
%doc %{_texmfdistdir}/doc/latex/chkfloat/chkfloat.pdf
%doc %{_texmfdistdir}/doc/latex/chkfloat/chkfloat.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17904 |21mr|texlive-chletter-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20060
# category Package
# catalog-ctan /macros/latex/contrib/chletter
# catalog-date 2010-10-11 07:24:02 +0200
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-chletter
Version:	2.0
Release:	7
Summary:	Class for typesetting letters to Swiss rules
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chletter
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chletter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chletter.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chletter.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class enables composition of letters fitting into Swiss C5
& C6/5 windowed envelopes. No assumption is made about the
language used. The class is based on the standard LaTeX classes
and is compatible with the LaTeX letter class. It is not
limited to letters and may be used as a generic document class;
it is used with the chextras package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chletter/chletter.cls
%doc %{_texmfdistdir}/doc/latex/chletter/README
%doc %{_texmfdistdir}/doc/latex/chletter/chletter.pdf
%doc %{_texmfdistdir}/doc/latex/chletter/chlettmp.tex
#- source
%doc %{_texmfdistdir}/source/latex/chletter/chletter.dtx
%doc %{_texmfdistdir}/source/latex/chletter/chletter.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17905 |21mr|texlive-chngcntr-1.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17157
# category Package
# catalog-ctan /macros/latex/contrib/chngcntr
# catalog-date 2010-03-09 12:54:42 +0100
# catalog-license lppl
# catalog-version 1.0a
Name:		texlive-chngcntr
Version:	1.1a
Release:	2
Summary:	Change the resetting of counters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chngcntr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chngcntr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chngcntr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines commands \counterwithin (which sets up a counter to be
reset when another is incremented) and \counterwithout (which
unsets such a relationship).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chngcntr/chngcntr.sty
%doc %{_texmfdistdir}/doc/latex/chngcntr/chngcntr.pdf
%doc %{_texmfdistdir}/doc/latex/chngcntr/chngcntr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17906 |21mr|texlive-chronology-1.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-chronology
Version:	1.1.1
Release:	2
Summary:	Provides a horizontal timeline
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/chronology
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chronology.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/chronology.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A timeline package that allows labelling of events with per-day
granularity. Other features include relative positioning with
unit specification, adjustable tick mark step size, and scaling
to specified width.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/chronology
%doc %{_texmfdistdir}/doc/latex/chronology

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17907 |21mr|texlive-circ-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/generic/diagrams/circ
# catalog-date 2006-12-31 18:14:50 +0100
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-circ
Version:	1.1
Release:	7
Summary:	Macros for typesetting circuit diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/diagrams/circ
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/circ.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/circ.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/circ.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Several electrical symbols like resistor, capacitor,
transistors etc., are defined. The symbols can be connected
with wires. The package also contains an American resistor
symbol for those of us on that side of the Atlantic. The
package also has simple facilities for producing optics
diagrams; however, no-one would deny that the PSTricks pst-
optic package, or the MetaPost makecirc package does the job
better.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/circ/cibimos.mf
%{_texmfdistdir}/fonts/source/public/circ/cicirc.mf
%{_texmfdistdir}/fonts/source/public/circ/cidiod.mf
%{_texmfdistdir}/fonts/source/public/circ/cioptic.mf
%{_texmfdistdir}/fonts/source/public/circ/ciphysic.mf
%{_texmfdistdir}/fonts/source/public/circ/cirest.mf
%{_texmfdistdir}/fonts/source/public/circ/cisym.mf
%{_texmfdistdir}/fonts/source/public/circ/ciwidko.mf
%{_texmfdistdir}/fonts/source/public/circ/csym.mf
%{_texmfdistdir}/fonts/source/public/circ/defcirc.mf
%{_texmfdistdir}/fonts/tfm/public/circ/cioptic.tfm
%{_texmfdistdir}/tex/latex/circ/basic.def
%{_texmfdistdir}/tex/latex/circ/box.def
%{_texmfdistdir}/tex/latex/circ/circ.sty
%{_texmfdistdir}/tex/latex/circ/gate.def
%{_texmfdistdir}/tex/latex/circ/ic.def
%{_texmfdistdir}/tex/latex/circ/oldgate.def
%{_texmfdistdir}/tex/latex/circ/optics.def
%{_texmfdistdir}/tex/latex/circ/physics.def
%doc %{_texmfdistdir}/doc/latex/circ/COPYING
%doc %{_texmfdistdir}/doc/latex/circ/README
%doc %{_texmfdistdir}/doc/latex/circ/cidoc.tex
%doc %{_texmfdistdir}/doc/latex/circ/circ.pdf
%doc %{_texmfdistdir}/doc/latex/circ/circ.txt
%doc %{_texmfdistdir}/doc/latex/circ/cisyms.tex
%doc %{_texmfdistdir}/doc/latex/circ/index.hlp
#- source
%doc %{_texmfdistdir}/source/latex/circ/Makefile
%doc %{_texmfdistdir}/source/latex/circ/circ.drv
%doc %{_texmfdistdir}/source/latex/circ/circ.dtx
%doc %{_texmfdistdir}/source/latex/circ/circ.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17908 |21mr|texlive-circuitikz-0.8.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-circuitikz
Version:	0.8.3
Release:	2
Summary:	Draw electrical networks with TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/circuitikz
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/circuitikz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/circuitikz.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a set of macros for naturally typesetting
electrical and (somewhat less naturally, perhaps) electronic
networks. It is designed as a tool that is easy to use, with a
lean syntax, native to LaTeX, and directly supporting PDF
output format. So is based on the very impressive pgf/TikZ
package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/circuitikz
%{_texmfdistdir}/tex/generic/circuitikz
%{_texmfdistdir}/tex/context/third/circuitikz
%doc %{_texmfdistdir}/doc/generic/circuitikz
%doc %{_texmfdistdir}/doc/latex/circuitikz
%doc %{_texmfdistdir}/doc/context/third/circuitikz

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17909 |21mr|texlive-cite-5.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19955
# category Package
# catalog-ctan /macros/latex/contrib/cite
# catalog-date 2010-09-12 10:54:58 +0200
# catalog-license other-free
# catalog-version 5.3
Name:		texlive-cite
Version:	5.5
Release:	2
Summary:	Improved citation handling in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cite
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cite.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cite.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports compressed, sorted lists of numerical
citations, and also deals with various punctuation and other
issues of representation, including comprehensive management of
break points. The package is compatible with both hyperref and
backref. The package is (unsurprisingly) part of the cite
bundle of the author's citation-related packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cite/chapterbib.sty
%{_texmfdistdir}/tex/latex/cite/cite.sty
%{_texmfdistdir}/tex/latex/cite/drftcite.sty
%{_texmfdistdir}/tex/latex/cite/overcite.sty
%doc %{_texmfdistdir}/doc/latex/cite/README
%doc %{_texmfdistdir}/doc/latex/cite/chapterbib.ltx
%doc %{_texmfdistdir}/doc/latex/cite/chapterbib.pdf
%doc %{_texmfdistdir}/doc/latex/cite/cite.ltx
%doc %{_texmfdistdir}/doc/latex/cite/cite.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17910 |21mr|texlive-cjhebrew-0.2a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cjhebrew
Version:	0.2a
Release:	2
Summary:	Typeset Hebrew with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hebrew/cjhebrew
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjhebrew.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjhebrew.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The cjhebrew package provides Adobe Type 1 fonts for Hebrew,
and LaTeX macros to support their use. Hebrew text can be
vocalised, and a few accents are also available. The package
makes it easy to include Hebrew text in other-language
documents. The package makes use of the e-TeX extensions to
TeX, so should be run using an "e-LaTeX".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/cjhebrew
%{_texmfdistdir}/fonts/enc/dvips/cjhebrew
%{_texmfdistdir}/fonts/map/dvips/cjhebrew
%{_texmfdistdir}/fonts/tfm/public/cjhebrew
%{_texmfdistdir}/fonts/type1/public/cjhebrew
%{_texmfdistdir}/fonts/vf/public/cjhebrew
%{_texmfdistdir}/tex/latex/cjhebrew
%doc %{_texmfdistdir}/doc/latex/cjhebrew

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17911 |21mr|texlive-cjk-4.8.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30576
# category Package
# catalog-ctan /language/chinese/CJK
# catalog-date 2012-05-09 20:27:35 +0200
# catalog-license gpl
# catalog-version 4.8.3
Name:		texlive-cjk
Version:	4.8.4
Release:	3
Summary:	CJK language support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/chinese/CJK
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjk.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjk.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-arphic
Requires:	texlive-cns
Requires:	texlive-garuda-c90
Requires:	texlive-norasi-c90
Requires:	texlive-uhc
Requires:	texlive-wadalab

%description
CJK is a macro package for LaTeX, providing simultaneous
support for various Asian scripts in many encodings (including
Unicode): - Chinese (both traditional and simplified), -
Japanese, - Korean and - Thai. A special add-on feature is an
interface to the Emacs editor (cjk-enc.el) which gives
simultaneous, easy-to-use support to a bunch of other scripts
in addition to the above: - Cyrillic, - Greek, - Latin-based
scripts, - Russian and - Vietnamese.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c42goth.fd
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c42goth.fdx
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c42maru.fd
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c42maru.fdx
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c42min.fd
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c42min.fdx
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c52maru.fd
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c52maru.fdx
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c52min.fd
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c52min.fdx
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c70goth.fd
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c70goth.fdx
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c70maru.fd
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c70maru.fdx
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c70min.fd
%{_texmfdistdir}/tex/latex/cjk/contrib/wadalab/c70min.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/Bg5.cap
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/Bg5.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/Bg5.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/Bg5.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/HK.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00bkai.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00bkai.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00bsmi.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00bsmi.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00bsmir.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00bsmir.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00cns.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00fs.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00kai.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00kair.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00kair.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c00song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c01song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c05song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/Bg5/c09song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CEF/c80song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CEF/c81song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CJK.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/CJK.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/CJKfntef.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/CJKnumb.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/CJKspace.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/CJKulem.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/CJKutf8.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/CJKvert.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/EUC-TW.bdg
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/EUC-TW.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/EUC-TW.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/c31song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/c32song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/c33song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/c34song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/c35song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/c36song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/CNS/c37song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/GB.cap
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/GB.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c10fs.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c10gbsn.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c10gbsn.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c10gkai.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c10gkai.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c10song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c11song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c19song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c20song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/GB/c21song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/EUC-JP.bdg
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/EUC-JP.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/EUC-JP.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/EUC-JPdnp.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/JIS.cap
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/JIS.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/JISdnp.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/c40song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/c41song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/c42song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/c43song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/JIS/c50song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/HLaTeX.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/KSHL.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63bm.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63dn.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63gr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63gs.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63gt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63jgt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63jmj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63jnv.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63jsr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63mj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63pg.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63pga.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63ph.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63pn.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63sh.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63tz.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63vd.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c63yt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64bm.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64dn.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64gr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64gs.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64gt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64jgt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64jmj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64jnv.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64jsr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64mj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64pg.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64pga.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64ph.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64pn.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64sh.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64tz.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64vd.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c64yt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65bm.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65dn.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65gr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65gs.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65gt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65jgt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65jmj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65jnv.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65jsr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65mj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65pg.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65pga.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65ph.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65pn.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65sh.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65tz.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65vd.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/c65yt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/HLaTeX/pshan.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/KS.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/KS.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60dr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60gr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60gs.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60gt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60hgt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60hmj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60hol.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60hpg.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c60mj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61dr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61gr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61gs.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61gt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61hgt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61hmj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61hol.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61hpg.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c61mj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/c62song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/hangul.cap
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/hangul.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/hangul2.cap
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/hangul2.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/hanja.cap
%{_texmfdistdir}/tex/latex/cjk/texinput/KS/hanja.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/SJIS/SJIS.bdg
%{_texmfdistdir}/tex/latex/cjk/texinput/SJIS/SJIS.cap
%{_texmfdistdir}/tex/latex/cjk/texinput/SJIS/SJIS.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/SJIS/SJIS.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/SJIS/SJIS.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/SJIS/SJISdnp.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/SJIS/SJISdnp.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/SJIS/c49song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/UTF8.bdg
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/UTF8.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/UTF8.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70bkai.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70bkai.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70bsmi.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70bsmi.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70gbsn.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70gbsn.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70gkai.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70gkai.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70mj.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70mj.fdx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/c70song.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/ja.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/ko-Hang.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/ko-Hang2.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/ko-Hani.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/zh-Hans.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/UTF8/zh-Hant.cpx
%{_texmfdistdir}/tex/latex/cjk/texinput/extended.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/extended.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/mule/MULEenc.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/pinyin.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/pmC.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/pmCbig.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/pmCsmall.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/ruby.sty
%{_texmfdistdir}/tex/latex/cjk/texinput/standard.bdg
%{_texmfdistdir}/tex/latex/cjk/texinput/standard.chr
%{_texmfdistdir}/tex/latex/cjk/texinput/standard.enc
%{_texmfdistdir}/tex/latex/cjk/texinput/thai/c90cmr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/thai/c90cmss.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/thai/c90cmtt.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/thai/c90enc.def
%{_texmfdistdir}/tex/latex/cjk/texinput/thai/c90gar.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/thai/c90nrsr.fd
%{_texmfdistdir}/tex/latex/cjk/texinput/thai/thaicjk.ldf
%{_texmfdistdir}/tex/latex/cjk/utils/pyhyphen/pinyin.ldf
%doc %{_texmfdistdir}/doc/latex/cjk/ChangeLog
%doc %{_texmfdistdir}/doc/latex/cjk/MANIFEST
%doc %{_texmfdistdir}/doc/latex/cjk/Makefile
%doc %{_texmfdistdir}/doc/latex/cjk/README
%doc %{_texmfdistdir}/doc/latex/cjk/TODO
%doc %{_texmfdistdir}/doc/latex/cjk/doc/CEF.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/CJK.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/CJKnumb.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/CJKspace.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/CJKutf8.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/COPYING
%doc %{_texmfdistdir}/doc/latex/cjk/doc/INSTALL
%doc %{_texmfdistdir}/doc/latex/cjk/doc/TDS.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/chinese/README
%doc %{_texmfdistdir}/doc/latex/cjk/doc/chinese/READMEb5.tex
%doc %{_texmfdistdir}/doc/latex/cjk/doc/chinese/READMEgb.tex
%doc %{_texmfdistdir}/doc/latex/cjk/doc/chinese/emTeXb5.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/chinese/teTeXb5.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/cjk-enc.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/cjk/README
%doc %{_texmfdistdir}/doc/latex/cjk/doc/cjk/READMEb5.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/doc/commands.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/dvidrv.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/fdxfiles.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/fonts.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/hbf2gf.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/history.2_5
%doc %{_texmfdistdir}/doc/latex/cjk/doc/history.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/japanese/README
%doc %{_texmfdistdir}/doc/latex/cjk/doc/japanese/ascii.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/japanese/japanese.jis
%doc %{_texmfdistdir}/doc/latex/cjk/doc/japanese/japanese.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/japanese/jp-fonts.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/japanese/jp-tex.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/japanese/preview.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/japanese/shibuaki.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdf/READMEb5.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdf/READMEgb.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/HOWTO.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/bkai.map
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/cid-x.map
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/cwtb.map
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/dvipdfmx.cfg
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/gen-map.pl
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/map.list
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/texinput/Bg5/c00cwtb.fd
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/texinput/Bg5/c00tmpl.fd
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/texinput/GB/c10tmpl.fd
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/texinput/JIS/c40tmpl.fd
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/texinput/SJIS/c49tmpl.fd
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/updmap.my
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pdfhowto/examples/wcl.sfd
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pinyin.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/pyhyphen.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/reftex.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/ruby.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/thaifont.txt
%doc %{_texmfdistdir}/doc/latex/cjk/doc/vertical.txt
%doc %{_texmfdistdir}/doc/latex/cjk/examples/Big5.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/Big5vert.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/CEF_test.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/CJKbabel.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/CJKfntef.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/CJKmixed.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/CJKspace.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/CJKutf8.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/GB.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/JIS.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/KS.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/README
%doc %{_texmfdistdir}/doc/latex/cjk/examples/SJIS.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/UTF8.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/cjk/Big5.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/examples/cjk/Big5vert.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/examples/cjk/CEF_test.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/examples/cjk/CJKbabel.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/examples/cjk/SJIS.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/examples/cjk/muletest.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/examples/cjk/rubytest.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/examples/cjk/thai.cjk
%doc %{_texmfdistdir}/doc/latex/cjk/examples/muletest.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/Big5.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/Big5vert.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/CEF_test.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/CJKbabel.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/CJKfntef.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/CJKmixed.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/CJKspace.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/CJKutf8.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/GB.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/JIS.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/KS.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/SJIS.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/UTF8.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/muletest.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/py_test.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/pytest.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/rubytest.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/thai.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/pdf/thai_utf8.pdf
%doc %{_texmfdistdir}/doc/latex/cjk/examples/py_test.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/rubytest.tex
%doc %{_texmfdistdir}/doc/latex/cjk/examples/thai.tex
%doc %{_texmfdistdir}/doc/latex/cjk/texlive/bin-cjkutils.pl
%doc %{_texmfdistdir}/doc/latex/cjk/texlive/c90.pl
%doc %{_texmfdistdir}/doc/latex/cjk/texlive/cjk-build.pl
%doc %{_texmfdistdir}/doc/latex/cjk/texlive/cjk.pl
%doc %{_texmfdistdir}/doc/latex/cjk/texlive/dnp.pl
%doc %{_texmfdistdir}/doc/latex/cjk/texlive/garuda-c90.pl
%doc %{_texmfdistdir}/doc/latex/cjk/texlive/norasi-c90.pl
%doc %{_texmfdistdir}/doc/latex/cjk/utils/pyhyphen/pytest.tex
#- source
%doc %{_texmfdistdir}/source/latex/cjk/contrib/wadalab/fixwada
%doc %{_texmfdistdir}/source/latex/cjk/contrib/wadalab/fixwada2.pl
%doc %{_texmfdistdir}/source/latex/cjk/contrib/wadalab/makefont
%doc %{_texmfdistdir}/source/latex/cjk/contrib/wadalab/makeuniwada.pl
%doc %{_texmfdistdir}/source/latex/cjk/contrib/wadalab/wadalab.map
%doc %{_texmfdistdir}/source/latex/cjk/contrib/wadalab/wadalab.txt
%doc %{_texmfdistdir}/source/latex/cjk/texinput/KS/HLaTeX/c63mj.fd
%doc %{_texmfdistdir}/source/latex/cjk/texinput/KS/HLaTeX/c64mj.fd
%doc %{_texmfdistdir}/source/latex/cjk/texinput/KS/HLaTeX/c65mj.fd
%doc %{_texmfdistdir}/source/latex/cjk/utils/Bg5conv/bg5conv.w
%doc %{_texmfdistdir}/source/latex/cjk/utils/Bg5conv/bg5latex.bat
%doc %{_texmfdistdir}/source/latex/cjk/utils/Bg5conv/bg5latex.cmd
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/cef5conv.w
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/cef5ltx.bat
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/cef5ltx.cmd
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/cefconv.w
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/ceflatex.bat
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/ceflatex.cmd
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/cefsconv.w
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/cefsltx.bat
%doc %{_texmfdistdir}/source/latex/cjk/utils/CEFconv/cefsltx.cmd
%doc %{_texmfdistdir}/source/latex/cjk/utils/SJISconv/sjisconv.w
%doc %{_texmfdistdir}/source/latex/cjk/utils/SJISconv/sjisltx.bat
%doc %{_texmfdistdir}/source/latex/cjk/utils/SJISconv/sjisltx.cmd
%doc %{_texmfdistdir}/source/latex/cjk/utils/extconv/bg5pltx.bat
%doc %{_texmfdistdir}/source/latex/cjk/utils/extconv/bg5pltx.cmd
%doc %{_texmfdistdir}/source/latex/cjk/utils/extconv/extconv.w
%doc %{_texmfdistdir}/source/latex/cjk/utils/extconv/gbklatex.bat
%doc %{_texmfdistdir}/source/latex/cjk/utils/extconv/gbklatex.cmd
%doc %{_texmfdistdir}/source/latex/cjk/utils/f_name.bat
%doc %{_texmfdistdir}/source/latex/cjk/utils/hbf2gf/Makefile.gnu
%doc %{_texmfdistdir}/source/latex/cjk/utils/hbf2gf/Makefile.in
%doc %{_texmfdistdir}/source/latex/cjk/utils/hbf2gf/README
%doc %{_texmfdistdir}/source/latex/cjk/utils/hbf2gf/c-auto.h
%doc %{_texmfdistdir}/source/latex/cjk/utils/hbf2gf/dvidrv.btm
%doc %{_texmfdistdir}/source/latex/cjk/utils/lisp/cjkspace.el
%doc %{_texmfdistdir}/source/latex/cjk/utils/lisp/cjktilde.el
%doc %{_texmfdistdir}/source/latex/cjk/utils/lisp/emacs/cjk-enc.el
%doc %{_texmfdistdir}/source/latex/cjk/utils/lisp/emacs/thai-word.el
%doc %{_texmfdistdir}/source/latex/cjk/utils/lisp/mule-2.3/cjk-enc.el
%doc %{_texmfdistdir}/source/latex/cjk/utils/pyhyphen/pinyin.c
%doc %{_texmfdistdir}/source/latex/cjk/utils/pyhyphen/pinyin.tr
%doc %{_texmfdistdir}/source/latex/cjk/utils/pyhyphen/pyhyph.tex
%doc %{_texmfdistdir}/source/latex/cjk/utils/subfonts/clonevf.pl
%doc %{_texmfdistdir}/source/latex/cjk/utils/subfonts/hlatex2agl.pl
%doc %{_texmfdistdir}/source/latex/cjk/utils/subfonts/makefdx.pl
%doc %{_texmfdistdir}/source/latex/cjk/utils/subfonts/sfd2uni.pl
%doc %{_texmfdistdir}/source/latex/cjk/utils/subfonts/subfonts.pe
%doc %{_texmfdistdir}/source/latex/cjk/utils/subfonts/uni2sfd.pl
%doc %{_texmfdistdir}/source/latex/cjk/utils/subfonts/vertical.pe
%doc %{_texmfdistdir}/source/latex/cjk/utils/subfonts/vertref.pe

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17912 |21mr|texlive-cjk-ko-1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32342
# category Package
# catalog-ctan /language/korean/cjk-ko
# catalog-date 2013-12-06 13:41:45 +0100
# catalog-license other-free
# catalog-version 1.3
Name:		texlive-cjk-ko
Version:	1.8
Release:	2
Summary:	Extension of the CJK package for Korean typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/korean/cjk-ko
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjk-ko.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjk-ko.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports typesetting UTF-8-encoded modern Korean
documents with the help of the LaTeX2e CJK package. The package
requires nanumtype1 fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cjk-ko/cjkutf8-josa.sty
%{_texmfdistdir}/tex/latex/cjk-ko/cjkutf8-ko.sty
%{_texmfdistdir}/tex/latex/cjk-ko/cjkutf8-nanummjhanja.sty
%{_texmfdistdir}/tex/latex/cjk-ko/kolabels-utf.sty
%{_texmfdistdir}/tex/latex/cjk-ko/konames-utf.sty
%{_texmfdistdir}/tex/latex/cjk-ko/kotex.sty
%doc %{_texmfdistdir}/doc/latex/cjk-ko/ChangeLog
%doc %{_texmfdistdir}/doc/latex/cjk-ko/README
%doc %{_texmfdistdir}/doc/latex/cjk-ko/cjk-ko-doc.pdf
%doc %{_texmfdistdir}/doc/latex/cjk-ko/cjk-ko-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17913 |21mr|texlive-cjkpunct-4.8.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cjkpunct
Version:	4.8.4
Release:	2
Summary:	Adjust locations and kerning of CJK punctuation marks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/chinese/cjkpunct
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjkpunct.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjkpunct.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjkpunct.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package serves as a companion package for CJK.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cjkpunct
%doc %{_texmfdistdir}/doc/latex/cjkpunct
#- source
%doc %{_texmfdistdir}/source/latex/cjkpunct

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17914 |21mr|texlive-cjkutils-20191119-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cjkutils
Version:	20191119
Release:	1
Summary:	TeXLive cjkutils package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjkutils.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cjkutils.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-cjkutils.bin

%description
TeXLive cjkutils package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/hbf2gf
%doc %{_mandir}/man1/bg5conv.1*
%doc %{_texmfdistdir}/doc/man/man1/bg5conv.man1.pdf
%doc %{_mandir}/man1/cef5conv.1*
%doc %{_texmfdistdir}/doc/man/man1/cef5conv.man1.pdf
%doc %{_mandir}/man1/cefconv.1*
%doc %{_texmfdistdir}/doc/man/man1/cefconv.man1.pdf
%doc %{_mandir}/man1/cefsconv.1*
%doc %{_texmfdistdir}/doc/man/man1/cefsconv.man1.pdf
%doc %{_mandir}/man1/extconv.1*
%doc %{_texmfdistdir}/doc/man/man1/extconv.man1.pdf
%doc %{_mandir}/man1/hbf2gf.1*
%doc %{_texmfdistdir}/doc/man/man1/hbf2gf.man1.pdf
%doc %{_mandir}/man1/sjisconv.1*
%doc %{_texmfdistdir}/doc/man/man1/sjisconv.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17915 |21mr|texlive-classics-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29018
# category Package
# catalog-ctan /macros/latex/contrib/classics
# catalog-date 2013-02-04 00:32:07 +0100
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-classics
Version:	0.1
Release:	11
Summary:	Cite classic works
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/classics
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/classics.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/classics.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a basic framework to cite classic works
(specially from authors such as Homer, Plato, Aristotle,
Descartes, Hume, and Kant) in accordance with traditional
pagination systems. It may be used in conjunction with other
citation packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/classics/classics.sty
%doc %{_texmfdistdir}/doc/latex/classics/README
%doc %{_texmfdistdir}/doc/latex/classics/classics.pdf
%doc %{_texmfdistdir}/doc/latex/classics/classics.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17916 |21mr|texlive-classicthesis-4.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-classicthesis
Version:	4.6
Release:	2
Summary:	A "classically styled" thesis package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/classicthesis
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/classicthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/classicthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The classicthesis package provides an elegant layout designed
in homage to Bringhurst's "The Elements of Typographic Style".
It makes use of a range of techniques to get the best results
achievable using TeX. Included in the bundle are templates to
make thesis writing easier.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/classicthesis
%doc %{_texmfdistdir}/doc/latex/classicthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17917 |21mr|texlive-clefval-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16549
# category Package
# catalog-ctan /macros/latex/contrib/clefval
# catalog-date 2006-12-07 15:13:33 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-clefval
Version:	20190228
Release:	1
Summary:	Key/value support with a hash
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/clefval
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clefval.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clefval.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clefval.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides only two macros viz. \TheKey and
\TheValue to define then use pairs of key/value and gives a
semblance of a hash. Syntax: \TheKey{key}{value} to define the
value associated to the key, does not produce text;
\TheValue{key} to return the value linked to the key. Both
arguments of \TheKey are 'moving' as LaTeX defines the term and
we have sometimes to protect them.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/clefval/clefval.sty
%doc %{_texmfdistdir}/doc/latex/clefval/Changements
%doc %{_texmfdistdir}/doc/latex/clefval/Changes
%doc %{_texmfdistdir}/doc/latex/clefval/LISEZMOI
%doc %{_texmfdistdir}/doc/latex/clefval/README
%doc %{_texmfdistdir}/doc/latex/clefval/clefval.pdf
%doc %{_texmfdistdir}/doc/latex/clefval/example.pdf
%doc %{_texmfdistdir}/doc/latex/clefval/example.tex
%doc %{_texmfdistdir}/doc/latex/clefval/exemple.pdf
%doc %{_texmfdistdir}/doc/latex/clefval/exemple.tex
#- source
%doc %{_texmfdistdir}/source/latex/clefval/Makefile
%doc %{_texmfdistdir}/source/latex/clefval/clefval.dtx
%doc %{_texmfdistdir}/source/latex/clefval/clefval.ins
%doc %{_texmfdistdir}/source/latex/clefval/fra-clefval.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17918 |21mr|texlive-cleveref-0.21.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32513
# category Package
# catalog-ctan /macros/latex/contrib/cleveref
# catalog-date 2013-12-28 19:56:25 +0100
# catalog-license lppl
# catalog-version 0.19
Name:		texlive-cleveref
Version:	0.21.4
Release:	2
Summary:	Intelligent cross-referencing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cleveref
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cleveref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cleveref.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cleveref.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enhances LaTeX's cross-referencing features,
allowing the format of references to be determined
automatically according to the type of reference. The formats
used may be customised in the preamble of a document; babel
support is available (though the choice of languages remains
limited: currently Danish, Dutch, English, French, German,
Italian, Norwegian, Russian, Spanish and Ukranian). The package
also offers a means of referencing a list of references, each
formatted according to its type. In such lists, it can collapse
sequences of numerically-consecutive labels to a reference
range.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cleveref/cleveref.sty
%doc %{_texmfdistdir}/doc/latex/cleveref/README
%doc %{_texmfdistdir}/doc/latex/cleveref/cleveref.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cleveref/cleveref.dtx
%doc %{_texmfdistdir}/source/latex/cleveref/cleveref.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17919 |21mr|texlive-clipboard-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28876
# category Package
# catalog-ctan /macros/latex/contrib/clipboard
# catalog-date 2013-01-19 09:54:49 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-clipboard
Version:	0.3
Release:	2
Summary:	Copy and paste into and across documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/clipboard
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clipboard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clipboard.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The clipboard package provides a basic framework for copying
and pasting text and commands into and across multiple
documents. It replaces the copypaste package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/clipboard/clipboard.sty
%doc %{_texmfdistdir}/doc/latex/clipboard/README
%doc %{_texmfdistdir}/doc/latex/clipboard/clipboard.pdf
%doc %{_texmfdistdir}/doc/latex/clipboard/clipboard.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17920 |21mr|texlive-clock-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/clock
# catalog-date 2008-04-19 23:05:28 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-clock
Version:	20190228
Release:	1
Summary:	Graphical and textual clocks for TeX and LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/clock
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clock.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clock.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Features graphical clocks (with a classical 12h dial and two
hands) and text clocks (in 24h format) which can show system
time or any time the user desires. Works with both TeX and
LaTeX. The clock faces (appearances of the dial) are easily
expandable; the default uses a custom MetaFont font.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/clock/clock.mf
%{_texmfdistdir}/fonts/tfm/public/clock/clock.tfm
%{_texmfdistdir}/tex/latex/clock/clock.sty
%{_texmfdistdir}/tex/latex/clock/clock.tex
%doc %{_texmfdistdir}/doc/latex/clock/COPYING
%doc %{_texmfdistdir}/doc/latex/clock/EMTEX
%doc %{_texmfdistdir}/doc/latex/clock/HISTORY
%doc %{_texmfdistdir}/doc/latex/clock/INSTALL
%doc %{_texmfdistdir}/doc/latex/clock/MIKTEX
%doc %{_texmfdistdir}/doc/latex/clock/README
%doc %{_texmfdistdir}/doc/latex/clock/clockdoc.pdf
%doc %{_texmfdistdir}/doc/latex/clock/clockdoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17921 |21mr|texlive-cloze-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cloze
Version:	1.6
Release:	1
Summary:	A LuaLaTeX package for creating cloze texts
Group:		Publishing
URL:		https://ctan.org/pkg/cloze
License:	LPPL1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/cloze.tar.xz 
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/cloze.doc.tar.xz 
Source2:        http://ctan.altspu.ru/systems/texlive/tlnet/archive/cloze.source.tar.xz 
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
This is a LuaTeX or LuaLaTeX package for generating cloze
texts. The main feature of the package is that the formatting
doesn't change when using the hide and show options. There are
the commands \cloze, \clozefix, \clozefil, \clozenol,
\clozestrike and the environments clozepar and clozebox to
generate cloze texts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%{_texmfdistdir}/scripts/*
%doc %{_texmfdistdir}/doc/*
#- source
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source scripts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17922 |21mr|texlive-clrdblpg-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-clrdblpg
Version:	1.0
Release:	1
Summary:	Control pagestyle of pages left blank by \cleardoublepage
Group:		Publishing
URL:		https://ctan.org/pkg/clrdblpg
License:	LPPL1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/clrdblpg.tar.xz 
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/clrdblpg.doc.tar.xz 
Source2:        http://ctan.altspu.ru/systems/texlive/tlnet/archive/clrdblpg.source.tar.xz 
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
This tiny package allows easy manipulation of the headers and
footers on pages left blank by \cleardoublepage. By default,
LaTeX has no easy facilities for this. This package uses more
or less the algorithm listed in the fancyhdr package
documentation, with some better indentation and added
flexibility.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17923 |21mr|texlive-clrscode-1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/clrscode
# catalog-date 2007-03-29 23:17:09 +0200
# catalog-license lppl
# catalog-version 1.7
Name:		texlive-clrscode
Version:	1.7
Release:	7
Summary:	Typesets pseudocode as in Introduction to Algorithms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/clrscode
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clrscode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/clrscode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows you to typeset pseudocode in the style of
Introduction to Algorithms, Second edition, by Cormen,
Leiserson, Rivest, and Stein. The package was written by the
authors. You use the commands the same way the package's author
did when writing the book, and your output will look just like
the pseudocode in the text.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/clrscode/clrscode.sty
%doc %{_texmfdistdir}/doc/latex/clrscode/README
%doc %{_texmfdistdir}/doc/latex/clrscode/clrscode.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17924 |21mr|texlive-clrstrip-20200123-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-clrstrip
Version:	20200123
Release:	1
Summary:	Place contents into a full width colour strip
Group:		Publishing
URL:		https://www.ctan.org/pkg/clrstrip
License:	LPPL1.3c
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/clrstrip.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/clrstrip.doc.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/clrstrip.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This lightweight package provides the colorstrip environment,
that places its contents into a full page width colour strip.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17925 |21mr|texlive-cm-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cm
Version:	20190228
Release:	1
Summary:	Computer Modern fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cm
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Knuth's final iteration of his re-interpretation of a c.19
Modern-style font from Monotype. The family is comprehensive,
offering both sans and roman styles, and a monospaced font,
together with mathematics fonts closely integrated with the
mathematical facilities of TeX itself. The base fonts are
distributed as Metafont source, but autotraced PostScript Type
1 versions are available (one version in the AMS fonts
distribution, and also the BaKoMa distribution). The Computer
Modern fonts have inspired many later families, notably the
European Computer Modern and the Latin Modern families.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/cm
%{_texmfdistdir}/fonts/pk/ljfour/public/cm
%{_texmfdistdir}/fonts/source/public/cm
%{_texmfdistdir}/fonts/tfm/public/cm
%doc %{_texmfdistdir}/doc/fonts/cm

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17926 |21mr|texlive-cmap-1.0h-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31477
# category Package
# catalog-ctan /macros/latex/contrib/cmap
# catalog-date 2012-11-14 17:49:35 +0100
# catalog-license lppl
# catalog-version 1.0h
Name:		texlive-cmap
Epoch:		1
Version:	1.0h
Release:	10
Summary:	Make PDF files searchable and copyable
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cmap
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmap.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The cmap package provides character map tables, which make PDF
files generated by pdfLaTeX both searchable and copy-able in
acrobat reader and other compliant PDF viewers. Encodings
supported are OT1, T1, T2A, T2B, T2C and T5, together with LAE
(Arabic), LFE (Farsi) and LGR (Greek) and a variant OT1tt for
cmtt-like fonts. The package's main limitation currently is the
inability to work with virtual fonts, because of limitations of
pdfTeX. This restriction may be resolved in a future version of
pdfTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cmap/cmap.sty
%{_texmfdistdir}/tex/latex/cmap/lae.cmap
%{_texmfdistdir}/tex/latex/cmap/lfe.cmap
%{_texmfdistdir}/tex/latex/cmap/lgr.cmap
%{_texmfdistdir}/tex/latex/cmap/ot1.cmap
%{_texmfdistdir}/tex/latex/cmap/ot1tt.cmap
%{_texmfdistdir}/tex/latex/cmap/ot6.cmap
%{_texmfdistdir}/tex/latex/cmap/t1.cmap
%{_texmfdistdir}/tex/latex/cmap/t2a.cmap
%{_texmfdistdir}/tex/latex/cmap/t2b.cmap
%{_texmfdistdir}/tex/latex/cmap/t2c.cmap
%{_texmfdistdir}/tex/latex/cmap/t5.cmap
%doc %{_texmfdistdir}/doc/latex/cmap/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17927 |21mr|texlive-cmarrows-0.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24378
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/cmarrows
# catalog-date 2007-03-05 14:17:42 +0100
# catalog-license lppl
# catalog-version v0.9
Name:		texlive-cmarrows
Version:	0.9
Release:	2
Summary:	MetaPost arrows and braces in the Computer Modern style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/cmarrows
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmarrows.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmarrows.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This MetaPost package contains macros to draw arrows and braces
in the Computer Modern style.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/cmarrows/cmarrows.mp
%{_texmfdistdir}/metapost/cmarrows/rgbx0009.mp
%{_texmfdistdir}/metapost/cmarrows/rgbx0016.mp
%{_texmfdistdir}/metapost/cmarrows/rgbx0020.mp
%{_texmfdistdir}/metapost/cmarrows/rgbx0025.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0008.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0010.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0011.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0012.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0013.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0014.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0015.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0017.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0018.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0019.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0021.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0022.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0023.mp
%{_texmfdistdir}/metapost/cmarrows/sgbx0024.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0000.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0001.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0002.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0003.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0004.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0005.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0006.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0007.mp
%{_texmfdistdir}/metapost/cmarrows/tgbx0027.mp
%doc %{_texmfdistdir}/doc/metapost/cmarrows/README
%doc %{_texmfdistdir}/doc/metapost/cmarrows/cmarrows.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17928 |21mr|texlive-cmbright-8.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21107
# category Package
# catalog-ctan /fonts/cmbright
# catalog-date 2007-01-01 00:37:00 +0100
# catalog-license lppl
# catalog-version 8.1
Name:		texlive-cmbright
Version:	8.1
Release:	7
Summary:	Computer Modern Bright fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cmbright
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmbright.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmbright.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmbright.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A family of sans serif fonts for TeX and LaTeX, based on Donald
Knuth's CM fonts. It comprises OT1, T1 and TS1 encoded text
fonts of various shapes as well as all the fonts necessary for
mathematical typesetting, including AMS symbols. This
collection provides all the necessary files for using the fonts
with LaTeX. A commercial-quality Adobe Type 1 version of these
fonts is available from Micropress. Free versions are
available, in the cm-super font bundle (the T1 and TS1 encoded
part of the set), and in the hfbright (the OT1 encoded part,
and the maths fonts).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/cmbright/ams10pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ams8pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ams9pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/baccent.mf
%{_texmfdistdir}/fonts/source/public/cmbright/bgreeku.mf
%{_texmfdistdir}/fonts/source/public/cmbright/bitalms.mf
%{_texmfdistdir}/fonts/source/public/cmbright/bpunct.mf
%{_texmfdistdir}/fonts/source/public/cmbright/br10pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/br17pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/br8pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/br9pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/brmsa.mf
%{_texmfdistdir}/fonts/source/public/cmbright/brmsb.mf
%{_texmfdistdir}/fonts/source/public/cmbright/broman.mf
%{_texmfdistdir}/fonts/source/public/cmbright/bromanl.mf
%{_texmfdistdir}/fonts/source/public/cmbright/bromlig.mf
%{_texmfdistdir}/fonts/source/public/cmbright/bromms.mf
%{_texmfdistdir}/fonts/source/public/cmbright/brs10pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/brs17pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/brs8pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/brs9pt.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbr10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbr17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbr8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbr9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbras10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbras8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbras9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrbs10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrbs8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrbs9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrbx10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrmb10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrmi10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrmi8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrmi9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrsl10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrsl17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrsl8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrsl9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrsy10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrsy8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmbrsy9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmsltl10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/cmtl10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebaccess.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebbase.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebbraces.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebbx10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebmo10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebmo17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebmo8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebmo9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebmr10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebmr17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebmr8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebmr9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebpseudo.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebpunct.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebrleast.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebrlig.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebrligtb.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebrllett.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebrlwest.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebroman.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebso10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebso17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebso8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebso9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebsr10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebsr17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebsr8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebsr9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebtl10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ebto10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/mathsl.mf
%{_texmfdistdir}/fonts/source/public/cmbright/msa.mf
%{_texmfdistdir}/fonts/source/public/cmbright/msb.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbbx10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbmo10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbmo17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbmo8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbmo9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbmr10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbmr17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbmr8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbmr9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbpseudo.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbso10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbso17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbso8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbso9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbsr10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbsr17.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbsr8.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbsr9.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbsymb.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbsymbol.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbtl10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/tbto10.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ttsymb.mf
%{_texmfdistdir}/fonts/source/public/cmbright/ttsymbol.mf
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbras10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbras8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbras9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrbs10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrbs8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrbs9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrmi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrsl17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrsy10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrsy8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmbrsy9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmsltl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/cmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebmo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebmo17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebmo8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebmo9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebso10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebso17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebso8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebso9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebsr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebsr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebsr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebsr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/ebto10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbmo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbmo17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbmo8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbmo9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbso10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbso17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbso8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbso9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbsr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbsr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbsr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbsr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmbright/tbto10.tfm
%{_texmfdistdir}/tex/latex/cmbright/cmbright.sty
%{_texmfdistdir}/tex/latex/cmbright/omlcmbr.fd
%{_texmfdistdir}/tex/latex/cmbright/omlcmbrm.fd
%{_texmfdistdir}/tex/latex/cmbright/omscmbr.fd
%{_texmfdistdir}/tex/latex/cmbright/omscmbrs.fd
%{_texmfdistdir}/tex/latex/cmbright/ot1cmbr.fd
%{_texmfdistdir}/tex/latex/cmbright/ot1cmtl.fd
%{_texmfdistdir}/tex/latex/cmbright/t1cmbr.fd
%{_texmfdistdir}/tex/latex/cmbright/t1cmtl.fd
%{_texmfdistdir}/tex/latex/cmbright/ts1cmbr.fd
%{_texmfdistdir}/tex/latex/cmbright/ts1cmtl.fd
%doc %{_texmfdistdir}/doc/fonts/cmbright/LICENSE
%doc %{_texmfdistdir}/doc/fonts/cmbright/README
%doc %{_texmfdistdir}/doc/fonts/cmbright/cmbright.txt
%doc %{_texmfdistdir}/doc/fonts/cmbright/manifest.txt
%doc %{_texmfdistdir}/doc/latex/cmbright/cmbright.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cmbright/cmbright.dtx
%doc %{_texmfdistdir}/source/latex/cmbright/cmbright.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17929 |21mr|texlive-cmcyr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16696
# category Package
# catalog-ctan /fonts/cyrillic/cmcyr
# catalog-date 2007-09-16 18:06:50 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-cmcyr
Version:	20190228
Release:	1
Summary:	Computer Modern fonts with cyrillic extensions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cyrillic/cmcyr
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmcyr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmcyr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These are the Computer Modern fonts extended with Russian
letters, in MetaFont sources and ATM Compatible Type 1 format.
The fonts are provided in KOI-7, but virtual fonts are
available to recode them to three other Russian 8-bit
encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/cmcyr/cmcyr.map
%{_texmfdistdir}/fonts/source/public/cmcyr/ccsc.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/citall.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcb10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbx10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbx12.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbx5.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbx6.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbx7.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbx8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbx9.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbxsl1.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcbxti1.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmccsc10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmccsc8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmccsc9.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcinch.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcitt10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsc11.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsc12.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsc14.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsc18.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsc24.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsc36.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcscsl1.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsl10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsl12.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsl8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsl9.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcsltt1.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcss10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcss12.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcss17.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcss8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcss9.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssbx1.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssdc1.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssi10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssi12.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssi17.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssi8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssi9.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssq8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcssqi8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcti10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcti12.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcti7.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcti8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcti9.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmctitle.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmctt10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmctt12.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmctt8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmctt9.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcu10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcyr10.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcyr12.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcyr17.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcyr5.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcyr6.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcyr7.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcyr8.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cmcyr9.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/coding.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cyrillic.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cyrl.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cyrlc.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cyrsymb.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cyrt.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cyru.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cytextit.mf
%{_texmfdistdir}/fonts/source/public/cmcyr/cytitle.mf
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcbxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmccsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmccsc8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmccsc9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcinch.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcti12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcti7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcti8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcti9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmctt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmctt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmctt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmctt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcu10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcyr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcyr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcyr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcyr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcyr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcyr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcyr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/cmcyr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmbxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmcsc8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmcsc9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcminch.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmmi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmmi5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmmi6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmmi7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmmi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmmib10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmti12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmti7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmti8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmti9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/kcmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmbxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmcsc8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmcsc9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcminch.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmmi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmmi5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmmi6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmmi7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmmi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmmib10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmti12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmti7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmti8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmti9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/wcmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmbxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmcsc8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmcsc9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcminch.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmmi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmmi5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmmi6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmmi7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmmi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmmib10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmti12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmti7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmti8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmti9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/xcmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmbxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmcsc8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmcsc9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycminch.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmmi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmmi5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmmi6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmmi7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmmi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmmib10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmti12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmti7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmti8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmti9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmcyr/ycmu10.tfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcb10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcb10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx12.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx12.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx5.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx5.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx6.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx6.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx7.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx7.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx9.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbx9.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbxsl1.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbxsl1.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbxti1.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcbxti1.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmccsc10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmccsc10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmccsc8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmccsc8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmccsc9.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmccsc9.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcinch7.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcinch7.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcitt10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcitt10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsl10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsl10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsl12.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsl12.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsl8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsl8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsl9.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsl9.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsltt1.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcsltt1.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss12.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss12.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss17.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss17.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss9.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcss9.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssbx1.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssbx1.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssdc1.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssdc1.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi12.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi12.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi17.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi17.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi9.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssi9.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssq8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssq8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssqi8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcssqi8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti12.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti12.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti7.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti7.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti9.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcti9.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmctt10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmctt10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmctt12.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmctt12.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmctt8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmctt8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmctt9.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmctt9.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcu10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcu10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr10.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr10.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr12.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr12.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr17.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr17.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr5.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr5.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr6.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr6.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr7.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr7.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr8.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr8.pfm
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr9.pfb
%{_texmfdistdir}/fonts/type1/public/cmcyr/cmcyr9.pfm
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmb10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbx10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbx12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbx5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbx6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbx7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbx8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbx9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbxsl10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmbxti10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmcsc10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmcsc8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmcsc9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcminch.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmitt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmmi10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmmi12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmmi5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmmi6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmmi7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmmi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmmi9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmmib10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmr10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmr12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmr17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmr5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmr6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmr7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmr8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmr9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmsl10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmsl12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmsl8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmsl9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmsltt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmss10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmss12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmss17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmss8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmss9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssbx10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssdc10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssi10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssi12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssi17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssi9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssq8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmssqi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmti10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmti12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmti7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmti8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmti9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmtt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmtt12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmtt8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmtt9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/kcmu10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmb10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbx10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbx12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbx5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbx6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbx7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbx8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbx9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbxsl10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmbxti10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmcsc10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmcsc8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmcsc9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcminch.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmitt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmmi10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmmi12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmmi5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmmi6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmmi7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmmi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmmi9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmmib10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmr10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmr12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmr17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmr5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmr6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmr7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmr8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmr9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmsl10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmsl12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmsl8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmsl9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmsltt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmss10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmss12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmss17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmss8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmss9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssbx10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssdc10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssi10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssi12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssi17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssi9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssq8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmssqi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmti10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmti12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmti7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmti8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmti9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmtt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmtt12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmtt8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmtt9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/wcmu10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmb10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbx10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbx12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbx5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbx6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbx7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbx8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbx9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbxsl10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmbxti10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmcsc10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmcsc8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmcsc9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcminch.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmitt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmmi10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmmi12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmmi5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmmi6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmmi7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmmi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmmi9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmmib10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmr10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmr12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmr17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmr5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmr6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmr7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmr8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmr9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmsl10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmsl12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmsl8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmsl9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmsltt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmss10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmss12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmss17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmss8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmss9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssbx10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssdc10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssi10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssi12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssi17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssi9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssq8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmssqi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmti10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmti12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmti7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmti8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmti9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmtt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmtt12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmtt8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmtt9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/xcmu10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmb10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbx10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbx12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbx5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbx6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbx7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbx8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbx9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbxsl10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmbxti10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmcsc10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmcsc8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmcsc9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycminch.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmitt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmmi10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmmi12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmmi5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmmi6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmmi7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmmi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmmi9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmmib10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmr10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmr12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmr17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmr5.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmr6.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmr7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmr8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmr9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmsl10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmsl12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmsl8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmsl9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmsltt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmss10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmss12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmss17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmss8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmss9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssbx10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssdc10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssi10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssi12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssi17.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssi9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssq8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmssqi8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmti10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmti12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmti7.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmti8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmti9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmtt10.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmtt12.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmtt8.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmtt9.vf
%{_texmfdistdir}/fonts/vf/public/cmcyr/ycmu10.vf
%doc %{_texmfdistdir}/doc/fonts/cmcyr/README
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmalt
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmalte
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmiso
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmisoe
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmkde
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmkdee
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmkoi8
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmkoi8e
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmwin
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cmwine
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyralt
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyralte
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyriso
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyrisoe
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyrkde
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyrkdee
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyrkoi8
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyrkoi8e
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyrwin
%doc %{_texmfdistdir}/doc/fonts/cmcyr/cyrwine
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.6i
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.6k
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.6w
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.alt
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.bat
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.iso
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.koi
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.o6w
%doc %{_texmfdistdir}/doc/fonts/cmcyr/merge.win
%doc %{_texmfdistdir}/doc/fonts/cmcyr/vf/cmcyr6i/merge.bat
%doc %{_texmfdistdir}/doc/fonts/cmcyr/vf/cmcyr6k/merge.bat
%doc %{_texmfdistdir}/doc/fonts/cmcyr/vf/cmcyr6w/merge.bat
%doc %{_texmfdistdir}/doc/fonts/cmcyr/wncalt
%doc %{_texmfdistdir}/doc/fonts/cmcyr/wncalte
%doc %{_texmfdistdir}/doc/fonts/cmcyr/wnciso
%doc %{_texmfdistdir}/doc/fonts/cmcyr/wncisoe
%doc %{_texmfdistdir}/doc/fonts/cmcyr/wnckoi8
%doc %{_texmfdistdir}/doc/fonts/cmcyr/wnckoi8e

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17930 |21mr|texlive-cmdstring-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cmdstring
# catalog-date 2008-08-18 10:38:42 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-cmdstring
Version:	1.1
Release:	7
Summary:	Get command name reliably
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cmdstring
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmdstring.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmdstring.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Extracts the letters of a command's name (e.g., foo for command
\foo), in a reliable way.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cmdstring/cmdstring.sty
%doc %{_texmfdistdir}/doc/latex/cmdstring/README
%doc %{_texmfdistdir}/doc/latex/cmdstring/cmdstring.pdf
%doc %{_texmfdistdir}/doc/latex/cmdstring/cmdstring.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17931 |21mr|texlive-cmdtrack-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28910
# category Package
# catalog-ctan /macros/latex/contrib/cmdtrack
# catalog-date 2012-12-18 12:17:57 +0100
# catalog-license lppl1
# catalog-version undef
Name:		texlive-cmdtrack
Version:	20190228
Release:	1
Summary:	Check used commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cmdtrack
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmdtrack.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmdtrack.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmdtrack.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package keeps track of whether a command defined in a
document preamble is actually used somewhere in the document.
After the package is loaded in the preamble of a document, all
\newcommand (and similar command definitions) between that
point and the beginning of the document will be marked for
logging. At the end of the document a report of command usage
will be printed in the TeX log, for example: - "mdash was used
on line 25"; - "ndash was never used".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cmdtrack/cmdtrack.sty
%doc %{_texmfdistdir}/doc/latex/cmdtrack/Makefile
%doc %{_texmfdistdir}/doc/latex/cmdtrack/README
%doc %{_texmfdistdir}/doc/latex/cmdtrack/cmdtrack.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cmdtrack/cmdtrack.dtx
%doc %{_texmfdistdir}/source/latex/cmdtrack/cmdtrack.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17932 |21mr|texlive-cmextra-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32831
# category Package
# catalog-ctan /systems/knuth/local
# catalog-date 2012-06-11 20:26:30 +0200
# catalog-license knuth
# catalog-version undef
Name:		texlive-cmextra
Version:	20190228
Release:	1
Summary:	Knuth's local information
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/knuth/local
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of experimental programs and developments based
on, or complementary to, the matter in his distribution
directories.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/cmextra/bible12.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmbxcd10.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmbxti12.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmbxti7.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmcscsl10.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmfibs8.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmitt12.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmitt9.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmman.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmntex10.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmntt10.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmsl6.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmsltt9.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmssbxo10.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmsslu30.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmssu30.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmsytt10.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmtim.mf
%{_texmfdistdir}/fonts/source/public/cmextra/cmvtti10.mf
%{_texmfdistdir}/fonts/source/public/cmextra/diam12.mf
%{_texmfdistdir}/fonts/source/public/cmextra/gen.mf
%{_texmfdistdir}/fonts/source/public/cmextra/gen10.mf
%{_texmfdistdir}/fonts/source/public/cmextra/gen8.mf
%{_texmfdistdir}/fonts/source/public/cmextra/gen9.mf
%{_texmfdistdir}/fonts/tfm/public/cmextra/bible12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmbxcd10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmbxti12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmbxti7.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmcscsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmfibs8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmitt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmitt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmman.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmntex10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmntt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmsl6.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmsltt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmssbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmsslu30.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmssu30.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmsytt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmtim.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/cmvtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/diam12.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/gen10.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/gen8.tfm
%{_texmfdistdir}/fonts/tfm/public/cmextra/gen9.tfm

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17933 |21mr|texlive-cmpj-3.01-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28862
# category Package
# catalog-ctan /macros/latex/contrib/cmpj
# catalog-date 2017-05-10 15:16:26 +0200
# catalog-license lppl
# catalog-version 3.01
Name:		texlive-cmpj
Version:	3.01
Release:	2
Summary:	Style for the journal Condensed Matter Physics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cmpj
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmpj.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmpj.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains macros and some documentation for
typesetting papers for submission to the Condensed Matter
Physics journal published by the Institute for Condensed Matter
Physics of the National Academy of Sciences of Ukraine.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/cmpj/cmpj.bst
%{_texmfdistdir}/tex/latex/cmpj/cmp-logo.eps
%{_texmfdistdir}/tex/latex/cmpj/cmp-logo.pdf
%{_texmfdistdir}/tex/latex/cmpj/cmpj.sty
%{_texmfdistdir}/tex/latex/cmpj/cmpj2.sty
%{_texmfdistdir}/tex/latex/cmpj/cmpj3.sty
%{_texmfdistdir}/tex/latex/cmpj/cmpj-cc-by-small*
%doc %{_texmfdistdir}/doc/latex/cmpj/README
%doc %{_texmfdistdir}/doc/latex/cmpj/eps_demo.eps
%doc %{_texmfdistdir}/doc/latex/cmpj/eps_demo.pdf
%doc %{_texmfdistdir}/doc/latex/cmpj/icmphome.eps
%doc %{_texmfdistdir}/doc/latex/cmpj/icmphome.pdf
%doc %{_texmfdistdir}/doc/latex/cmpj/template.pdf
%doc %{_texmfdistdir}/doc/latex/cmpj/template.tex
%doc %{_texmfdistdir}/doc/latex/cmpj/cmpjxampl.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17934 |21mr|texlive-cmsd-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18787
# category Package
# catalog-ctan /macros/latex/contrib/cmsd
# catalog-date 2006-12-18 23:50:36 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-cmsd
Version:	20190228
Release:	1
Summary:	Interfaces to the CM Sans Serif Bold fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cmsd
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmsd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cmsd.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Thr purpose of the package is to provide an alternative
interface to the CM Sans Serif boldface fonts. The EC (T1,
Cork) encoded versions of the 'CM Sans Serif boldface extended'
fonts differ considerably from the traditionally (OT1) encoded
ones: at large sizes, >10pt, they have thinner strokes and are
much wider. At 25pt they are hardly to be recognized as being
'boldface'. This package attempts to make these T1 fonts look
like the traditional ones did. You do not need any new fonts;
the package just changes the way LaTeX makes use of the current
ones.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cmsd/cmsd.sty
%{_texmfdistdir}/tex/latex/cmsd/t1cmsd.fd
%{_texmfdistdir}/tex/latex/cmsd/ts1cmsd.fd
%doc %{_texmfdistdir}/doc/latex/cmsd/liesmich
%doc %{_texmfdistdir}/doc/latex/cmsd/readme

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17935 |21mr|texlive-cm-super-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/ps-type1/cm-super
# catalog-date 2008-01-16 21:31:11 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-cm-super
Version:	20190228
Release:	1
Summary:	CM-Super family of fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ps-type1/cm-super
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cm-super.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cm-super.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
%rename tetex-cmsuper
%rename texlive-texmf-cmsuper
Requires(post):	texlive-tetex

%description
CM-Super family of fonts are Adobe Type 1 fonts that replace
the T1/TS1-encoded Computer Modern (EC/TC), T1/TS1-encoded
Concrete, T1/TS1-encoded CM bright and LH fonts (thus
supporting all European languages except Greek, and all
Cyrillic-based languages), and bringing many ameliorations in
typesetting quality. The fonts exhibit the same metrics as the
MetaFont-encoded originals.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/cm-super/cm-super.GS
%{_texmfdistdir}/dvips/cm-super/config.cm-super
%{_texmfdistdir}/fonts/afm/public/cm-super/isflb8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/isfli8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/isflo8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/isflq8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/isfltt8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbbx10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbi3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbl3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbm3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbmo10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbmo17.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbmo8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbmo9.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbmr10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbmr17.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbmr8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbmr9.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbso10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbso17.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbso8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbso9.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbsr10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbsr17.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbsr8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbsr9.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbtl10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbto10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfbx3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfcc3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfci3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfdh3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffb2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfff0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfff1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfff1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfff1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfff1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfff2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffi0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffi1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffi1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffi1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffi1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffi1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffi2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sffs2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfit2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sflb8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfli8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sflo8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sflq8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfltt8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoc3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfocc10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sform10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sform5.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sform6.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sform7.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sform8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sform9.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfosl10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfosl5.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfosl6.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfosl7.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfosl8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfosl9.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfoti10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfqi8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrb3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfrm3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsc3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsi3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsl3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfso3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsq8.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfss3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfssdc10.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfst3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfsx3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftc3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfti3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sftt3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfui3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvi3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfvt3583.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc0500.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc0600.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc0700.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc0800.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc0900.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc1000.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc1095.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc1200.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc1440.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc1728.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc2074.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc2488.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc2986.afm.gz
%{_texmfdistdir}/fonts/afm/public/cm-super/sfxc3583.afm.gz
%{_texmfdistdir}/fonts/enc/dvips/cm-super/cm-super-t1.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-super/cm-super-t2a.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-super/cm-super-t2b.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-super/cm-super-t2c.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-super/cm-super-ts1.enc
%{_texmfdistdir}/fonts/enc/dvips/cm-super/cm-super-x2.enc
%{_texmfdistdir}/fonts/map/dvips/cm-super/cm-super-t1.map
%{_texmfdistdir}/fonts/map/dvips/cm-super/cm-super-t2a.map
%{_texmfdistdir}/fonts/map/dvips/cm-super/cm-super-t2b.map
%{_texmfdistdir}/fonts/map/dvips/cm-super/cm-super-t2c.map
%{_texmfdistdir}/fonts/map/dvips/cm-super/cm-super-ts1.map
%{_texmfdistdir}/fonts/map/dvips/cm-super/cm-super-x2.map
%{_texmfdistdir}/fonts/map/vtex/cm-super/cm-super-t1.ali
%{_texmfdistdir}/fonts/map/vtex/cm-super/cm-super-t2a.ali
%{_texmfdistdir}/fonts/map/vtex/cm-super/cm-super-t2b.ali
%{_texmfdistdir}/fonts/map/vtex/cm-super/cm-super-t2c.ali
%{_texmfdistdir}/fonts/map/vtex/cm-super/cm-super-ts1.ali
%{_texmfdistdir}/fonts/map/vtex/cm-super/cm-super-x2.ali
%{_texmfdistdir}/fonts/map/vtex/cm-super/cm-super.ali
%{_texmfdistdir}/fonts/type1/public/cm-super/isflb8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/isfli8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/isflo8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/isflq8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/isfltt8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbbx10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbl3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbm3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbmo10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbmo17.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbmo8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbmo9.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbmr10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbmr17.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbmr8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbmr9.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbso10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbso17.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbso8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbso9.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbsr10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbsr17.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbsr8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbsr9.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbtl10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbto10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfbx3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfcc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfci3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfdh3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffb2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfff0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfff1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfff1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfff1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfff1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfff2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sffs2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfit2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sflb8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfli8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sflo8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sflq8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfltt8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfocc10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sform10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sform5.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sform6.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sform7.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sform8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sform9.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfosl10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfosl5.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfosl6.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfosl7.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfosl8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfosl9.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfoti10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfqi8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrb3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfrm3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsl3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfso3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsq8.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfss3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfssdc10.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfst3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfsx3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftc3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfti3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sftt3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfui3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvi3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfvt3583.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc0500.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc0600.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc0700.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc0800.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc0900.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc1000.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc1095.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc1200.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc1440.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc1728.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc2074.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc2488.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc2986.pfb
%{_texmfdistdir}/fonts/type1/public/cm-super/sfxc3583.pfb
%{_texmfdistdir}/tex/latex/cm-super/type1ec.sty
%_texmf_updmap_d/cm-super
%doc %{_texmfdistdir}/doc/fonts/cm-super/COPYING
%doc %{_texmfdistdir}/doc/fonts/cm-super/ChangeLog
%doc %{_texmfdistdir}/doc/fonts/cm-super/FAQ
%doc %{_texmfdistdir}/doc/fonts/cm-super/INSTALL
%doc %{_texmfdistdir}/doc/fonts/cm-super/README
%doc %{_texmfdistdir}/doc/fonts/cm-super/TODO
%doc %{_texmfdistdir}/doc/fonts/cm-super/cm-super-inf.tar.bz2

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/cm-super <<EOF
MixedMap cm-super-t1.map
MixedMap cm-super-t2a.map
MixedMap cm-super-t2b.map
MixedMap cm-super-t2c.map
MixedMap cm-super-ts1.map
MixedMap cm-super-x2.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17936 |21mr|texlive-cnbwp-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32550
# category Package
# catalog-ctan /macros/latex/contrib/cnbwp
# catalog-date 2014-01-02 10:00:56 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-cnbwp
Version:	20190228
Release:	1
Summary:	Typeset working papers of the Czech National Bank
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cnbwp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cnbwp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cnbwp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports proper formatting of Working Papers of the
Czech National Bank (WP CNB). The package was developed for CNB
but it is also intended for authors from outside CNB.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/cnbwp/abbrvcnb.bst
%{_texmfdistdir}/makeindex/cnbwp/cnbindex.ist
%{_texmfdistdir}/tex/latex/cnbwp/cnbwp-manual.sty
%{_texmfdistdir}/tex/latex/cnbwp/cnbwp.cls
%{_texmfdistdir}/tex/latex/cnbwp/cnbwpsizes.clo
%doc %{_texmfdistdir}/doc/latex/cnbwp/README
%doc %{_texmfdistdir}/doc/latex/cnbwp/biblio.tex
%doc %{_texmfdistdir}/doc/latex/cnbwp/cnbpaper.pdf
%doc %{_texmfdistdir}/doc/latex/cnbwp/cnbpaper.tex
%doc %{_texmfdistdir}/doc/latex/cnbwp/cnbsample.bib
%doc %{_texmfdistdir}/doc/latex/cnbwp/cnbwp-manual-cs.pdf
%doc %{_texmfdistdir}/doc/latex/cnbwp/cnbwp-manual-cs.tex
%doc %{_texmfdistdir}/doc/latex/cnbwp/cnbwp-manual-en.pdf
%doc %{_texmfdistdir}/doc/latex/cnbwp/cnbwp-manual-en.tex
%doc %{_texmfdistdir}/doc/latex/cnbwp/graph18.eps
%doc %{_texmfdistdir}/doc/latex/cnbwp/graph18.gif
%doc %{_texmfdistdir}/doc/latex/cnbwp/graph18.jpg
%doc %{_texmfdistdir}/doc/latex/cnbwp/graph18.pdf
%doc %{_texmfdistdir}/doc/latex/cnbwp/graph18.png
%doc %{_texmfdistdir}/doc/latex/cnbwp/numtable.tex
%doc %{_texmfdistdir}/doc/latex/cnbwp/widematrix.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex makeindex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17937 |21mr|texlive-cnltx-0.130-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cnltx
Version:	0.130
Release:	2
Summary:	LaTeX tools and documenting facilities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cnltx
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cnltx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cnltx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a versatile bundle of packages and classes for
consistent formatting of control sequences, package options,
source code examples, and writing a package manual (including
an index containing the explained control sequences, options,
ldots). The bundle also provides several other small ideas of
mine such as a mechansim for providing abbreviations etc. Not
at least it provides a number of programming tools. The
intention behind this bundle mainly is a selfish one:
documenting my own packages. The bundle contains an index style
file cnltx.ist that should be placed in a directory in a TDS
makeindex directory.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/cnltx
%{_texmfdistdir}/makeindex/cnltx
%{_texmfdistdir}/tex/latex/cnltx
%doc %{_texmfdistdir}/doc/latex/cnltx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex makeindex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17938 |21mr|texlive-cns-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-cns
Version:	20190228
Release:	1
Summary:	TeXLive cns package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cns.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cns.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive cns package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/misc/cns/4040w0.bin
%{_texmfdistdir}/fonts/misc/cns/4040w1.bin
%{_texmfdistdir}/fonts/misc/cns/4040w2.bin
%{_texmfdistdir}/fonts/misc/cns/4040w3.bin
%{_texmfdistdir}/fonts/misc/cns/4040w4.bin
%{_texmfdistdir}/fonts/misc/cns/4040w5.bin
%{_texmfdistdir}/fonts/misc/cns/4040w6.bin
%{_texmfdistdir}/fonts/misc/cns/4040w7.bin
%{_texmfdistdir}/fonts/misc/cns/cns40-1.hbf
%{_texmfdistdir}/fonts/misc/cns/cns40-2.hbf
%{_texmfdistdir}/fonts/misc/cns/cns40-3.hbf
%{_texmfdistdir}/fonts/misc/cns/cns40-4.hbf
%{_texmfdistdir}/fonts/misc/cns/cns40-5.hbf
%{_texmfdistdir}/fonts/misc/cns/cns40-6.hbf
%{_texmfdistdir}/fonts/misc/cns/cns40-7.hbf
%{_texmfdistdir}/fonts/misc/cns/cns40-b5.hbf
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1201.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1202.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1203.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1204.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1205.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1206.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1207.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1208.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1209.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1210.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1211.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1212.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1213.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1214.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1215.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1216.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1217.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1218.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1219.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1220.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1221.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1222.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1223.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1224.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1225.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1226.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1227.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1228.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1229.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1230.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1231.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1232.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1233.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1234.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1235.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1236.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1237.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1238.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1239.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1240.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1241.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1242.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1243.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1244.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1245.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1246.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1247.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1248.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1249.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1250.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1251.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1252.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1253.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1254.tfm
%{_texmfdistdir}/fonts/tfm/cns/c0so12/c0so1255.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1201.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1202.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1203.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1204.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1205.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1206.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1207.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1208.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1209.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1210.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1211.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1212.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1213.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1214.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1215.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1216.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1217.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1218.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1219.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1220.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1221.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1222.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1223.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1224.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1225.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1226.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1227.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1228.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1229.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1230.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1231.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1232.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1233.tfm
%{_texmfdistdir}/fonts/tfm/cns/c1so12/c1so1234.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1201.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1202.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1203.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1204.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1205.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1206.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1207.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1208.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1209.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1210.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1211.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1212.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1213.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1214.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1215.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1216.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1217.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1218.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1219.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1220.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1221.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1222.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1223.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1224.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1225.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1226.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1227.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1228.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1229.tfm
%{_texmfdistdir}/fonts/tfm/cns/c2so12/c2so1230.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1201.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1202.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1203.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1204.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1205.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1206.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1207.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1208.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1209.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1210.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1211.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1212.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1213.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1214.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1215.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1216.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1217.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1218.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1219.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1220.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1221.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1222.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1223.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1224.tfm
%{_texmfdistdir}/fonts/tfm/cns/c3so12/c3so1225.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1201.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1202.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1203.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1204.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1205.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1206.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1207.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1208.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1209.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1210.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1211.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1212.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1213.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1214.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1215.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1216.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1217.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1218.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1219.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1220.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1221.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1222.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1223.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1224.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1225.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1226.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1227.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1228.tfm
%{_texmfdistdir}/fonts/tfm/cns/c4so12/c4so1229.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1201.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1202.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1203.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1204.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1205.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1206.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1207.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1208.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1209.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1210.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1211.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1212.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1213.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1214.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1215.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1216.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1217.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1218.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1219.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1220.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1221.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1222.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1223.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1224.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1225.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1226.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1227.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1228.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1229.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1230.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1231.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1232.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1233.tfm
%{_texmfdistdir}/fonts/tfm/cns/c5so12/c5so1234.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1201.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1202.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1203.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1204.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1205.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1206.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1207.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1208.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1209.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1210.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1211.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1212.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1213.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1214.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1215.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1216.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1217.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1218.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1219.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1220.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1221.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1222.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1223.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1224.tfm
%{_texmfdistdir}/fonts/tfm/cns/c6so12/c6so1225.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1201.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1202.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1203.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1204.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1205.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1206.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1207.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1208.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1209.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1210.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1211.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1212.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1213.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1214.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1215.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1216.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1217.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1218.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1219.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1220.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1221.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1222.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1223.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1224.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1225.tfm
%{_texmfdistdir}/fonts/tfm/cns/c7so12/c7so1226.tfm
%doc %{_texmfdistdir}/doc/fonts/cns/cns40-1/README
%doc %{_texmfdistdir}/doc/fonts/cns/cns40-2/README
%doc %{_texmfdistdir}/doc/fonts/cns/cns40-3/README
%doc %{_texmfdistdir}/doc/fonts/cns/cns40-4/README
%doc %{_texmfdistdir}/doc/fonts/cns/cns40-5/README
%doc %{_texmfdistdir}/doc/fonts/cns/cns40-6/README
%doc %{_texmfdistdir}/doc/fonts/cns/cns40-7/README
%doc %{_texmfdistdir}/doc/fonts/cns/cns40-b5/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17939 |21mr|texlive-cntformats-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cntformats
Version:	0.7
Release:	1
Summary:	A different way to read counters
Group:		Publishing
URL:		https://www.ctan.org/pkg/cntformats
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/cntformats.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/cntformats.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers package or class authors a way to format
counters with 'patterns'. These patterns do not affect 'normal'
LaTeX treatment of counters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17940 |21mr|texlive-cntperchap-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cntperchap
Version:	0.3
Release:	1
Summary:	The aim of package is to provide support for a summary
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/cntperchap
License:	GNU General Public
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/cntperchap.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/cntperchap.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package stores values of counters (which have been registered beforehand) on a per chapter base and 
provides the values on demand in the 2nd LATEX compilation run. In this way it is possible to know how many sections etc. 
there are lying ahead and to react to these counter values, if needed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17941 |21mr|texlive-codedoc-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17630
# category Package
# catalog-ctan /macros/latex/contrib/codedoc
# catalog-date 2010-03-30 18:14:30 +0200
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-codedoc
Version:	0.3
Release:	7
Summary:	LaTeX code and documentation in LaTeX-format file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/codedoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/codedoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/codedoc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The CodeDoc class is an alternative to DocStrip (and others) to
produce LaTeX code along with its documentation without
departing from LaTeX's ordinary syntax. The documentation is
prepared like any other LaTeX document and the code to be
commented verbatim is simply delimited by an environment. When
an option is turned on in the class options, this code is
written to the desired file(s). The class also includes fully
customizable verbatim environments which provide the author
with separate commands to typeset the material and/or to
execute it.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/codedoc/codedoc.cls
%doc %{_texmfdistdir}/doc/latex/codedoc/CodeDoc-manual.pdf
%doc %{_texmfdistdir}/doc/latex/codedoc/CodeDoc-manual.tex
%doc %{_texmfdistdir}/doc/latex/codedoc/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17942 |21mr|texlive-codepage-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21126
# category Package
# catalog-ctan /macros/latex/contrib/codepage
# catalog-date 2011-01-18 23:40:40 +0100
# catalog-license other-free
# catalog-version undef

Name:		texlive-codepage
Version:	20190228
Release:	2
Summary:	Support for variant code pages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/codepage
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/codepage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/codepage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/codepage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
BuildRequires:  zip
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a mechanism for inputting non-ASCII text.
Nowadays, the job is mostly done by the inputenc package in the
LaTeX distribution.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/codepage/code437.tex
%{_texmfdistdir}/tex/latex/codepage/code850.tex
%{_texmfdistdir}/tex/latex/codepage/codeiso1.tex
%{_texmfdistdir}/tex/latex/codepage/codemac.tex
%{_texmfdistdir}/tex/latex/codepage/codepage.sty
%{_texmfdistdir}/tex/latex/codepage/initcar.tex
%{_texmfdistdir}/tex/latex/codepage/shapecm.tex
%{_texmfdistdir}/tex/latex/codepage/shapedc.tex
%doc %{_texmfdistdir}/doc/latex/codepage/LISEZMOI
%doc %{_texmfdistdir}/doc/latex/codepage/README
%doc %{_texmfdistdir}/doc/latex/codepage/codepage.pdf
%doc %{_texmfdistdir}/doc/latex/codepage/demo.zip
%doc %{_texmfdistdir}/doc/latex/codepage/frintro.pdf
#- source
%doc %{_texmfdistdir}/source/latex/codepage/codepage.drv
%doc %{_texmfdistdir}/source/latex/codepage/codepage.dtx
%doc %{_texmfdistdir}/source/latex/codepage/codepage.ins
%doc %{_texmfdistdir}/source/latex/codepage/frintro.drv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install

# fix broken *.zip files in docs
pushd ./doc/latex/codepage/
unzip demo.zip
rm -rf demo.zip
zip -r demo.zip *.tex
rm -rf *.tex
popd

mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17943 |21mr|texlive-codesection-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-codesection
Version:	0.1
Release:	1
Summary:	Provides an Environment which can be included from compilation
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/codesection
License:	The LATEX Project Public License 1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/codesection.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/codesection.doc.tar.xz
Source2: 	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/codesection.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This packages provides an environment to switch a section of code on or off. The
code can be placed anywhere in the file and is not limited to the document or the
preamble. 
The motivation for this package was to have commands which allow to
preselect if sections of code in a preamble of a template are executed or not.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17944 |21mr|texlive-codicefiscaleitaliano-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26234
# category Package
# catalog-ctan /macros/latex/contrib/codicefiscaleitaliano
# catalog-date 2012-05-05 09:37:49 +0200
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-codicefiscaleitaliano
Version:	1.2
Release:	7
Summary:	Test the consistency of the Italian personal Fiscal Code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/codicefiscaleitaliano
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/codicefiscaleitaliano.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/codicefiscaleitaliano.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/codicefiscaleitaliano.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The alphanumeric string that forms the Italian personal Fiscal
Code is prone to be misspelled thus rendering a legal document
invalid. The package quickly verifies the consistency of the
fiscal code string, and can therefore be useful for lawyers and
accountants that use fiscal codes very frequently.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/codicefiscaleitaliano/codicefiscaleitaliano.sty
%doc %{_texmfdistdir}/doc/latex/codicefiscaleitaliano/README
%doc %{_texmfdistdir}/doc/latex/codicefiscaleitaliano/codicefiscaleitaliano.pdf
#- source
%doc %{_texmfdistdir}/source/latex/codicefiscaleitaliano/codicefiscaleitaliano.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17945 |21mr|texlive-collcell-0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21539
# category Package
# catalog-ctan /macros/latex/contrib/collcell
# catalog-date 2011-02-27 21:54:29 +0100
# catalog-license lppl1.3
# catalog-version 0.5
Name:		texlive-collcell
Version:	0.5
Release:	7
Summary:	Collect contents of a tabular cell as argument to a macro
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/collcell
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collcell.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collcell.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collcell.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros that collect the content of a
tabular cell, and offer them as an argument to a macro. Special
care is taken to remove all aligning macros inserted by tabular
from the cell content. The macros also work in the last column
of a table, but do not support verbatim material inside the
cells.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/collcell/collcell.sty
%doc %{_texmfdistdir}/doc/latex/collcell/collcell.pdf
#- source
%doc %{_texmfdistdir}/source/latex/collcell/Makefile
%doc %{_texmfdistdir}/source/latex/collcell/README
%doc %{_texmfdistdir}/source/latex/collcell/collcell.dtx
%doc %{_texmfdistdir}/source/latex/collcell/collcell.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17946 |21mr|texlive-collectbox-0.4b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26557
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collectbox
Version:	0.4b
Release:	2
Epoch:		1
Summary:	TeXLive collectbox package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collectbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collectbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collectbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive collectbox package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/collectbox/collectbox.sty
%doc %{_texmfdistdir}/doc/latex/collectbox/README
%doc %{_texmfdistdir}/doc/latex/collectbox/collectbox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/collectbox/collectbox.dtx
%doc %{_texmfdistdir}/source/latex/collectbox/collectbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17947 |21mr|texlive-collection-basic-20200308-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-collection-basic
Epoch:		1
Version:	20200308
Release:	1
Summary:	Essential programs and files
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-basic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-amsfonts
Requires:	texlive-bibtex
Requires:	texlive-cm
Requires:	texlive-dvipdfmx
Requires:	texlive-dvips
Requires:	texlive-enctex
Requires:	texlive-etex
Requires:	texlive-etex-pkg
Requires:	texlive-glyphlist
Requires:	texlive-gsftopk
Requires:	texlive-hyph-utf8
Requires:	texlive-hyphen-base
Requires:	texlive-ifluatex
Requires:	texlive-ifxetex
Requires:	texlive-kpathsea
Requires:	texlive-lua-alt-getopt
Requires:	texlive-luatex
Requires:	texlive-makeindex
Requires:	texlive-metafont
Requires:	texlive-mflogo
Requires:	texlive-mfware
Requires:	texlive-pdftex
Requires:	texlive-plain
Requires:	texlive-tetex
Requires:	texlive-tex
Requires:	texlive-texlive-scripts
Requires:	texlive-xdvi
Recommends:	texlive-colorprofiles
Recommends:	texlive-graphics-def
Recommends:	texlive-knuth-lib
Recommends:	texlive-knuth-local
Recommends:	texlive-tex-ini-files
Requires:	texlive-texlive-common
Requires:	texlive-texlive-docindex
Requires:	texlive-texlive-en
Recommends:	texlive-tlshell
Recommends:	texlive-unicode-data
Recommends:	texlive-updmap-map

%description
These files are regarded as basic for any TeX system, covering
plain TeX macros, Computer Modern fonts, and configuration for
common drivers; no LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tlpkg/tlpobj/collection*
#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar * %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17948 |21mr|texlive-collection-context-20200403-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54074
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef

%bcond_with unknown_recommends

Name:		texlive-collection-context
Epoch:		1
Version:	20200403
Release:	2
Summary:	ConTeXt and packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-context.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-context
Requires:	texlive-collection-basic
Requires:	texlive-jmn
Requires:	texlive-context-account
Requires:	texlive-context-algorithmic
Requires:	texlive-context-bnf
Requires:	texlive-context-chromato
Requires:	texlive-context-construction-plan
Requires:	texlive-context-cyrillicnumbers
Requires:	texlive-context-degrade
Requires:	texlive-context-filter
Requires:	texlive-context-french
Requires:	texlive-context-fullpage
Requires:	texlive-context-gantt
Requires:	texlive-context-gnuplot
Requires:	texlive-context-letter
Requires:	texlive-context-lettrine
Requires:	texlive-context-mathsets
Requires:	texlive-context-notes-zh-cn
Requires:	texlive-context-rst
Requires:	texlive-context-ruby
Requires:	texlive-context-simplefonts
Requires:	texlive-context-simpleslides
Requires:	texlive-context-transliterator
Requires:	texlive-context-typearea
Requires:	texlive-context-typescripts
Requires:	texlive-context-vim
# Some suggested pkgs are in contrib
Recommends:	texlive-context-animation
Recommends:	texlive-context-annotation
Recommends:	texlive-context-cmscbf
Recommends:	texlive-context-layout
Recommends:	texlive-context-title
Recommends:	texlive-context-cmttbf
Recommends:	texlive-context-fancybreak
%if %{with unknown_recommends}
Recommends:	texlive-npp-for-context
Recommends:	texlive-context-handlecsv
Recommends:	texlive-context-inifile
Recommends:	texlive-context-visualcounter
%endif

%description
Hans Hagen's powerful ConTeXt system, http://pragma-ade.com.
Also includes third-party ConTeXt packages.


#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17949 |21mr|texlive-collection-fontsrecommended-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32620
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-fontsrecommended
Epoch:		1
Version:	20190228
Release:	2
Summary:	Recommended fonts
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-fontsrecommended.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-avantgar
Requires:	texlive-bookman
Requires:	texlive-charter
Requires:	texlive-cm-super
Requires:	texlive-cmextra
Requires:	texlive-courier
Requires:	texlive-ec
Requires:	texlive-euro
Requires:	texlive-euro-ce
Requires:	texlive-eurosym
Requires:	texlive-fpl
Requires:	texlive-helvetic
Requires:	texlive-lm
Requires:	texlive-lm-math
Requires:	texlive-marvosym
Requires:	texlive-mathpazo
Requires:	texlive-ncntrsbk
Requires:	texlive-palatino
Requires:	texlive-pxfonts
Requires:	texlive-rsfs
Requires:	texlive-symbol
Requires:	texlive-tex-gyre
Requires:	texlive-tex-gyre-math
Requires:	texlive-times
Requires:	texlive-tipa
Requires:	texlive-txfonts
Requires:	texlive-utopia
Requires:	texlive-wasy
Requires:	texlive-wasysym
Requires:	texlive-zapfchan
Requires:	texlive-zapfding
Requires:	texlive-manfnt-font
# Not in repos yet
Recommends:	texlive-mflogo-font
Recommends:	texlive-wasy2-ps
%rename texlive-fonts
%rename texlive-texmf-fonts

%description
Recommended fonts, including the base 35 PostScript fonts,
Latin Modern, TeX Gyre, and T1 and other encoding support for
Computer Modern, in outline form.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17950 |21mr|texlive-collection-fontutils-20190228-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30396
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-fontutils
Epoch:		1
Version:	20190228
Release:	3
Summary:	Graphics and font utilities
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-fontutils.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-accfonts
Requires:	texlive-afm2pl
Requires:	texlive-dosepsbin
Requires:	texlive-epstopdf
Requires:	texlive-fontware
Requires:	texlive-lcdftypetools
Requires:	texlive-ps2pkm
Requires:	texlive-pstools
Requires:	psutils
Requires:	texlive-dvipsconfig
Requires:	texlive-fontinst
Requires:	texlive-fontools
Requires:	texlive-mf2pt1
Requires:	texlive-ttfutils
Requires:	texlive-metatype1
# To be obsoleted by ps2pk
Requires:	texlive-ps2pkm

%description
Programs for conversion between font formats, testing fonts,
virtual fonts, .gf and .pk manipulation, mft, fontinst, etc.
Manipulating OpenType, TrueType, Type 1,and for manipulation of
PostScript and other image formats.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17951 |21mr|texlive-collection-games-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32893
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-games
Epoch:		1
Version:	20190228
Release:	2
Summary:	Games typesetting
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-games.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-latex
Requires:	texlive-bartel-chess-fonts
Requires:	texlive-chess
Requires:	texlive-chess-problem-diagrams
Requires:	texlive-chessboard
Requires:	texlive-chessfss
Requires:	texlive-crossword
Requires:	texlive-crosswrd
Requires:	texlive-egameps
Requires:	texlive-gamebook
Requires:	texlive-go
Requires:	texlive-hanoi
Requires:	texlive-hexgame
Requires:	texlive-horoscop
Requires:	texlive-logicpuzzle
Requires:	texlive-othello
Requires:	texlive-othelloboard
Requires:	texlive-pas-crosswords
Requires:	texlive-psgo
Requires:	texlive-reverxii
Requires:	texlive-rubik
Requires:	texlive-schwalbe-chess
Requires:	texlive-sgame
Requires:	texlive-skak
Requires:	texlive-skaknew
Requires:	texlive-sudoku
Requires:	texlive-sudokubundle
Requires:	texlive-xq
Requires:	texlive-xskak
Requires:	texlive-musikui
# Packages from contrib
Recommends:	texlive-havannah
# Packages missing in repos
Recommends:	texlive-jigsaw
Recommends:	texlive-labyrinth
Recommends:	texlive-onedown
Recommends:	texlive-soup

%description
Setups for typesetting various games, including chess.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17952 |21mr|texlive-collection-genericrecommended-20131013-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30396
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-genericrecommended
Epoch:		1
Version:	20131013
Release:	9
Summary:	Generic recommended packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-genericrecommended.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-epsf
Requires:	texlive-fontname
Requires:	texlive-genmisc
Requires:	texlive-kastrup
Requires:	texlive-multido
Requires:	texlive-path
Requires:	texlive-tex-ps
Requires:	texlive-ulem

%description
Recommended packages that work with multiple formats.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17953 |21mr|texlive-collection-humanities-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32323
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-humanities
Epoch:		1
Version:	20190228
Release:	1
Summary:	Humanities packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-humanities.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-latex
Requires:	texlive-arydshln
Requires:	texlive-bibleref
Requires:	texlive-bibleref-lds
Requires:	texlive-bibleref-mouth
Requires:	texlive-bibleref-parse
Requires:	texlive-covington
Requires:	texlive-dramatist
Requires:	texlive-dvgloss
Requires:	texlive-ecltree
Requires:	texlive-edfnotes
Requires:	texlive-ednotes
Requires:	texlive-eledform
Requires:	texlive-eledmac
Requires:	texlive-expex
Requires:	texlive-gb4e
Requires:	texlive-gmverse
Requires:	texlive-jura
Requires:	texlive-juraabbrev
Requires:	texlive-juramisc
Requires:	texlive-jurarsp
Requires:	texlive-ledmac
Requires:	texlive-lexikon
Requires:	texlive-lexref
Requires:	texlive-linguex
Requires:	texlive-liturg
Requires:	texlive-metrix
Requires:	texlive-parallel
Requires:	texlive-parrun
Requires:	texlive-phonrule
Requires:	texlive-plari
Requires:	texlive-play
Requires:	texlive-poemscol
Requires:	texlive-poetrytex
Requires:	texlive-qobitree
Requires:	texlive-qtree
Requires:	texlive-rrgtrees
Requires:	texlive-rtklage
Requires:	texlive-screenplay
Requires:	texlive-sides
Requires:	texlive-stage
Requires:	texlive-textglos
Requires:	texlive-thalie
Requires:	texlive-tree-dvips
Requires:	texlive-verse
Requires:	texlive-xyling
# These are in contrib
Recommends: texlive-theatre
Recommends: texlive-reledmac
Recommends: texlive-screenplay-pkg
Recommends: texlive-ling-macros
Recommends: texlive-poetry
Recommends: texlive-adtrees
Recommends: texlive-diadia

%description
Packages for law, linguistics, social sciences, humanities,
etc.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17954 |21mr|texlive-collection-langafrican-20131013-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30372
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langafrican
Epoch:		1
Version:	20131013
Release:	9
Summary:	African scripts
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langafrican.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-ethiop
Requires:	texlive-ethiop-t1
Requires:	texlive-fc
Requires:	texlive-hyphen-ethiopic

%description
Support for African scripts.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17955 |21mr|texlive-collection-langarabic-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31684
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langarabic
Epoch:		1
Version:	20190228
Release:	2
Summary:	Arabic
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langarabic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-amiri
Requires:	texlive-arabi
Requires:	texlive-arabtex
Requires:	texlive-bidi
Requires:	texlive-ghab
Requires:	texlive-hyphen-arabic
Requires:	texlive-hyphen-farsi
Requires:	texlive-imsproc
Requires:	texlive-lshort-persian
Requires:	texlive-persian-bib
Requires:	texlive-simurgh
Requires:	texlive-tram
Recommends:	texlive-alkalami
Recommends:	texlive-alpha-persian
Recommends:	texlive-arabi-add
Recommends:	texlive-arabluatex
Recommends:	texlive-bidihl
Recommends:	texlive-dad
Recommends:	texlive-kurdishlipsum
Requires:	texlive-luabidi
Recommends:	texlive-na-box
Recommends:	texlive-sexam
Recommends:	texlive-xepersian

%description
Support for Arabic and Persian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17956 |21mr|texlive-collection-langarabic-20190228-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31684
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langarabic
Epoch:		1
Version:	20190228
Release:	4
Summary:	Arabic
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langarabic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-amiri
Requires:	texlive-arabi
Requires:	texlive-arabtex
Requires:	texlive-bidi
Requires:	texlive-ghab
Requires:	texlive-hyphen-arabic
Requires:	texlive-hyphen-farsi
Requires:	texlive-imsproc
Requires:	texlive-lshort-persian
Requires:	texlive-persian-bib
Requires:	texlive-simurgh
Requires:	texlive-tram
Requires:	texlive-alkalami
Recommends:	texlive-arabluatex
Recommends:	texlive-bidihl
Recommends:	texlive-dad
Requires:	texlive-kurdishlipsum
Requires:	texlive-luabidi
Requires:	texlive-na-box
Requires:	texlive-sexam
Requires:	texlive-xepersian

# These are in contrib
Recommends:	texlive-alpha-persian
Recommends:	texlive-arabi-add

%description
Support for Arabic and Persian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17957 |21mr|texlive-collection-langarmenian-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20529
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langarmenian
Epoch:		1
Version:	20120224
Release:	5
Summary:	Armenian
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langarmenian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic

%description
Support for typesetting Armenian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17958 |21mr|texlive-collection-langcjk-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32105
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langcjk
Epoch:		1
Version:	20190228
Release:	2
Summary:	Chinese/Japanese/Korean
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langcjk.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-adobemapping
Requires:	texlive-c90
Requires:	texlive-cjk
Requires:	texlive-cjkpunct
Requires:	texlive-cjkutils
Requires:	texlive-dnp
Requires:	texlive-garuda-c90
Requires:	texlive-norasi-c90
Requires:	texlive-xcjk2uni
Requires:	texlive-zxjafont
Recommends:	texlive-cjk-gs-integrate
Requires:	texlive-fixjfm
Recommends:	texlive-jfmutil
Recommends:	texlive-pxtatescale

%description
CJK (Chinese, Japanese, Korean) macros, fonts, documentation.
Also Thai in the c90 encoding, since there is some overlap in
those fonts.  Standard Thai support is in collection-langother.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17959 |21mr|texlive-collection-langcroatian-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21190
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langcroatian
Epoch:		1
Version:	20120224
Release:	5
Summary:	Croatian
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langcroatian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-hrlatex
Requires:	texlive-hyphen-croatian
Requires:	texlive-collection-basic

%description
Support for typesetting Croatian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17960 |21mr|texlive-collection-langcyrillic-20190228-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30455
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langcyrillic
Epoch:		1
Version:	20190228
Release:	5
Summary:	Cyrillic
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langcyrillic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-collection-latex
Recommends:	texlive-babel-bulgarian
Requires:	texlive-babel-russian
Recommends:	texlive-babel-serbian
Recommends:	texlive-babel-serbianc
Requires:	texlive-babel-ukraineb
Requires:	texlive-cmcyr
Requires:	texlive-cyrillic
Requires:	texlive-cyrillic-bin
Requires:	texlive-cyrplain
Requires:	texlive-disser
Requires:	texlive-eskd
Requires:	texlive-eskdx
Requires:	texlive-gost
Requires:	texlive-hyphen-bulgarian
Recommends:	texlive-hyphen-mongolian
Requires:	texlive-hyphen-russian
Requires:	texlive-hyphen-serbian
Requires:	texlive-hyphen-ukrainian
Requires:	texlive-lcyw
Requires:	texlive-lh
Requires:	texlive-lhcyr
Recommends:	texlive-lshort-bulgarian
Recommends:	texlive-lshort-mongol
Requires:	texlive-lshort-russian
Requires:	texlive-lshort-ukr
Recommends:	texlive-mongolian-babel
Requires:	texlive-montex
Requires:	texlive-mpman-ru
Requires:	texlive-pst-eucl-translation-bg
Requires:	texlive-ruhyphen
Requires:	texlive-russ
Recommends:	texlive-serbian-apostrophe
Recommends:	texlive-serbian-date-lat
Recommends:	texlive-serbian-def-cyr
Recommends:	texlive-serbian-lig
Requires:	texlive-t2
Requires:	texlive-texlive-ru
Recommends:	texlive-texlive-sr
Requires:	texlive-ukrhyph
Recommends:	texlive-babel-belarusian
Recommends:	texlive-babel-ukrainian
Recommends:	texlive-churchslavonic
Requires:	texlive-hyphen-belarusian
Requires:	texlive-hyphen-churchslavonic
Recommends:	texlive-numnameru

%description
Support for Cyrillic scripts (Bulgarian, Russian, Serbian,
Ukrainian), even if Latin alphabets may also be used.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17961 |21mr|texlive-collection-langczechslovak-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32550
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langczechslovak
Epoch:		1
Version:	20190228
Release:	1
Summary:	Czech/Slovak
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langczechslovak.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-collection-latex
Requires:	texlive-babel-czech
Requires:	texlive-babel-slovak
Requires:	texlive-cnbwp
Requires:	texlive-cs
Requires:	texlive-csbulletin
Requires:	texlive-cslatex
Requires:	texlive-csplain
Requires:	texlive-cstex
Requires:	texlive-hyphen-czech
Requires:	texlive-hyphen-slovak
Requires:	texlive-vlna
Requires:	texlive-lshort-czech
Requires:	texlive-lshort-slovak
Requires:	texlive-texlive-cz

%description
Support for Czech/Slovak.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17962 |21mr|texlive-collection-langdanish-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langdanish
Epoch:		1
Version:	20120224
Release:	5
Summary:	Danish
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langdanish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-hyphen-danish
Requires:	texlive-collection-basic

%description
Support for typesetting Danish.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17963 |21mr|texlive-collection-langdutch-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langdutch
Epoch:		1
Version:	20120224
Release:	5
Summary:	Dutch
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langdutch.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-hyphen-dutch
Requires:	texlive-collection-basic

%description
Support for typesetting Dutch.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17964 |21mr|texlive-collection-langenglish-20140215-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32952
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langenglish
Epoch:		1
Version:	20140215
Release:	7
Summary:	US and UK English
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langenglish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-babel-english
Requires:	texlive-hyphen-english
Requires:	texlive-FAQ-en
Requires:	texlive-MemoirChapStyles
Requires:	texlive-Type1fonts
Requires:	texlive-amslatex-primer
Requires:	texlive-around-the-bend
Requires:	texlive-ascii-chart
Requires:	texlive-components-of-TeX
Requires:	texlive-comprehensive
Requires:	texlive-dickimaw
Requires:	texlive-dtxtut
Requires:	texlive-first-latex-doc
Requires:	texlive-gentle
Requires:	texlive-guide-to-latex
Requires:	texlive-happy4th
Requires:	texlive-impatient
Requires:	texlive-intro-scientific
Requires:	texlive-knuth
Requires:	texlive-l2tabu-english
Requires:	texlive-latex-brochure
Requires:	texlive-latex-course
Requires:	texlive-latex-doc-ptr
Requires:	texlive-latex-graphics-companion
Requires:	texlive-latex-veryshortguide
Requires:	texlive-latex-web-companion
Requires:	texlive-latex2e-help-texinfo
Requires:	texlive-latex4wp
Requires:	texlive-latexcheat
Requires:	texlive-latexfileinfo-pkgs
Requires:	texlive-lshort-english
Requires:	texlive-macros2e
Requires:	texlive-math-e
Requires:	texlive-memdesign
Requires:	texlive-metafont-beginners
Requires:	texlive-metapost-examples
Requires:	texlive-mil3
Requires:	texlive-patgen2-tutorial
Requires:	texlive-pictexsum
Requires:	texlive-plain-doc
Requires:	texlive-presentations-en
Requires:	texlive-simplified-latex
Requires:	texlive-svg-inkscape
Requires:	texlive-tabulars-e
Requires:	texlive-tamethebeast
Requires:	texlive-tds
Requires:	texlive-tex-font-errors-cheatsheet
Requires:	texlive-tex-overview
Requires:	texlive-tex-refs
Requires:	texlive-texbytopic
Requires:	texlive-titlepages
Requires:	texlive-tlc2
Requires:	texlive-visualfaq
Requires:	texlive-voss-mathmode
Requires:	texlive-webguide
Requires:	texlive-xetexref

%description
Support for (and documentation in) English.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17965 |21mr|texlive-collection-langeuropean-20190228-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30457
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langeuropean
Version:	20190228
Release:	3
Summary:	Other European languages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langeuropean.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-babel-albanian
Requires:	texlive-babel-breton
Requires:	texlive-babel-croatian
Requires:	texlive-babel-danish
Requires:	texlive-babel-dutch
Requires:	texlive-babel-estonian
Requires:	texlive-babel-finnish
Requires:	texlive-babel-friulan
Requires:	texlive-babel-hungarian
Requires:	texlive-babel-icelandic
Requires:	texlive-babel-irish
Requires:	texlive-babel-kurmanji
Requires:	texlive-babel-latin
Requires:	texlive-babel-norsk
Requires:	texlive-babel-piedmontese
Requires:	texlive-babel-romanian
Requires:	texlive-babel-romansh
Requires:	texlive-babel-samin
Requires:	texlive-babel-scottish
Requires:	texlive-babel-slovenian
Requires:	texlive-babel-swedish
Requires:	texlive-babel-turkish
Requires:	texlive-babel-welsh
Requires:	texlive-finbib
Requires:	texlive-hrlatex
Requires:	texlive-hyphen-croatian
Requires:	texlive-hyphen-danish
Requires:	texlive-hyphen-dutch
Requires:	texlive-hyphen-estonian
Requires:	texlive-hyphen-finnish
Requires:	texlive-hyphen-friulan
Requires:	texlive-hyphen-hungarian
Requires:	texlive-hyphen-icelandic
Requires:	texlive-hyphen-irish
Requires:	texlive-hyphen-kurmanji
Requires:	texlive-hyphen-latin
Requires:	texlive-hyphen-latvian
Requires:	texlive-hyphen-lithuanian
Requires:	texlive-hyphen-norwegian
Requires:	texlive-hyphen-piedmontese
Requires:	texlive-hyphen-romanian
Requires:	texlive-hyphen-romansh
Requires:	texlive-hyphen-slovenian
Requires:	texlive-hyphen-swedish
Requires:	texlive-hyphen-turkish
Requires:	texlive-hyphen-uppersorbian
Requires:	texlive-hyphen-welsh
Requires:	texlive-lithuanian
Requires:	texlive-lshort-dutch
Requires:	texlive-lshort-finnish
Requires:	texlive-lshort-slovenian
Requires:	texlive-lshort-turkish
Requires:	texlive-swebib
Requires:	texlive-turkmen
Requires:	texlive-hyphen-occitan
Requires:	texlive-lshort-estonian
# These are in contrib
Recommends:	texlive-babel-occitan
Recommends:	texlive-babel-macedonian
Recommends: texlive-gloss-occitan
Recommends: texlive-hulipsum
Recommends: texlive-babel-bosnian
Recommends: texlive-babel-latvian
# And these ones are currently absent
Recommends: texlive-armtex
Recommends: texlive-nevelok

%description
Support for a number of European languages; others (Greek,
German, French, ...) have their own collections, depending
simply on the size of the support.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17966 |21mr|texlive-collection-langfinnish-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langfinnish
Epoch:		1
Version:	20120224
Release:	5
Summary:	Finnish
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langfinnish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-finbib
Requires:	texlive-hyphen-finnish
Requires:	texlive-collection-basic

%description
Support for typesetting Finnish.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17967 |21mr|texlive-collection-langfrench-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30372
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langfrench
Epoch:		1
Version:	20190228
Release:	1
Summary:	French
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langfrench.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-aeguill
Requires:	texlive-apprends-latex
Requires:	texlive-babel-basque
Requires:	texlive-babel-french
Requires:	texlive-basque-book
Requires:	texlive-basque-date
Requires:	texlive-bib-fr
Requires:	texlive-bibleref-french
Requires:	texlive-booktabs-fr
Requires:	texlive-droit-fr
Requires:	texlive-epslatex-fr
Requires:	texlive-facture
Requires:	texlive-frletter
Requires:	texlive-hyphen-basque
Requires:	texlive-hyphen-french
Requires:	texlive-impatient-fr
Requires:	texlive-impnattypo
Requires:	texlive-l2tabu-french
Requires:	texlive-lshort-french
Requires:	texlive-mafr
Requires:	texlive-tabvar
Requires:	texlive-tdsfrmath
Requires:	texlive-texlive-fr
Requires:	texlive-translation-array-fr
Requires:	texlive-translation-dcolumn-fr
Requires:	texlive-translation-natbib-fr
Requires:	texlive-translation-tabbing-fr
Requires:	texlive-variations
Recommends:	texlive-e-french
Recommends:	texlive-formation-latex-ul
Recommends:	texlive-frenchmath
Recommends:	texlive-guide-latex-fr
Recommends:	texlive-latex2e-help-texinfo-fr
Recommends:	texlive-visualtikz

%description
Support for French and Basque.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17968 |21mr|texlive-collection-langgerman-20190228-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32954
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langgerman
Epoch:		1
Version:	20190228
Release:	3
Summary:	German
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langgerman.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-babel-german
Requires:	texlive-bibleref-german
Requires:	texlive-booktabs-de
Requires:	texlive-csquotes-de
Requires:	texlive-dehyph-exptl
Requires:	texlive-dhua
Requires:	texlive-einfuehrung
Requires:	texlive-etoolbox-de
Requires:	texlive-fifinddo-info
Requires:	texlive-geometry-de
Requires:	texlive-german
Requires:	texlive-germbib
Requires:	texlive-germkorr
Requires:	texlive-hausarbeit-jura
Requires:	texlive-hyphen-german
Requires:	texlive-koma-script-examples
Requires:	texlive-l2picfaq
Requires:	texlive-l2tabu
Requires:	texlive-latex-bib-ex
Requires:	texlive-latex-referenz
Requires:	texlive-latex-tabellen
Requires:	texlive-lshort-german
Requires:	texlive-lualatex-doc-de
Requires:	texlive-microtype-de
Requires:	texlive-presentations
Requires:	texlive-r_und_s
Requires:	texlive-templates-fenn
Requires:	texlive-templates-sommer
Requires:	texlive-texlive-de
Requires:	texlive-tipa-de
Requires:	texlive-translation-arsclassica-de
Requires:	texlive-translation-biblatex-de
Requires:	texlive-translation-chemsym-de
Requires:	texlive-translation-ecv-de
Requires:	texlive-translation-enumitem-de
Requires:	texlive-translation-europecv-de
Requires:	texlive-translation-filecontents-de
Requires:	texlive-translation-moreverb-de
Requires:	texlive-udesoftec
Requires:	texlive-umlaute
Requires:	texlive-voss-mathcol
Recommends:	texlive-apalike-german
Requires:	texlive-dehyph
Recommends:	texlive-einfuehrung2
Requires:	texlive-etdipa
Recommends:	texlive-latex-bib2-ex
Recommends:	texlive-latexcheat-de
Recommends:	texlive-milog
Recommends:	texlive-termcal-de
Recommends:	texlive-uhrzeit

%description
Support for German.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17969 |21mr|texlive-collection-langgreek-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31679
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langgreek
Epoch:		1
Version:	20190228
Release:	1
Summary:	Greek
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langgreek.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-babel-greek
Requires:	texlive-betababel
Requires:	texlive-bgreek
Requires:	texlive-cbfonts
Requires:	texlive-cbfonts-fd
Requires:	texlive-gfsbaskerville
Requires:	texlive-gfsporson
Requires:	texlive-greek-fontenc
Requires:	texlive-greek-inputenc
Requires:	texlive-greekdates
Requires:	texlive-greektex
Requires:	texlive-hyphen-greek
Requires:	texlive-hyphen-ancientgreek
Requires:	texlive-ibycus-babel
Requires:	texlive-ibygrk
Requires:	texlive-kerkis
Requires:	texlive-levy
Requires:	texlive-lgreek
Requires:	texlive-mkgrkindex
Requires:	texlive-teubner
Requires:	texlive-xgreek
Requires:	texlive-yannisgr
Recommends:	texlive-begingreek
Recommends:	texlive-greektonoi

%description
Support for Greek.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17970 |21mr|texlive-collection-langhebrew-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langhebrew
Epoch:		1
Version:	20120224
Release:	5
Summary:	Hebrew
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langhebrew.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-cjhebrew
Requires:	texlive-collection-basic

%description
Support for typesetting Hebrew.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17971 |21mr|texlive-collection-langhungarian-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langhungarian
Epoch:		1
Version:	20120224
Release:	5
Summary:	Hungarian
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langhungarian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-magyar
Requires:	texlive-hyphen-hungarian
Requires:	texlive-collection-basic

%description
Support for typesetting Hungarian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17972 |21mr|texlive-collection-langindic-20131013-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30372
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langindic
Epoch:		1
Version:	20131013
Release:	9
Summary:	Indic scripts
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langindic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-bangtex
Requires:	texlive-bengali
Requires:	texlive-burmese
Requires:	texlive-devnag
Requires:	texlive-ebong
Requires:	texlive-hyphen-indic
Requires:	texlive-hyphen-sanskrit
Requires:	texlive-sanskrit
Requires:	texlive-velthuis
Requires:	texlive-wnri
Requires:	texlive-wnri-latex
Requires:	texlive-xetex-devanagari

%description
Support for Indic scripts.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17973 |21mr|texlive-collection-langitalian-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30372
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langitalian
Epoch:		1
Version:	20190228
Release:	1
Summary:	Italian
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langitalian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-amsldoc-it
Requires:	texlive-amsmath-it
Requires:	texlive-amsthdoc-it
Requires:	texlive-babel-italian
Requires:	texlive-codicefiscaleitaliano
Requires:	texlive-fancyhdr-it
Requires:	texlive-fixltxhyph
Requires:	texlive-frontespizio
Requires:	texlive-hyphen-italian
Requires:	texlive-itnumpar
Requires:	texlive-l2tabu-italian
Requires:	texlive-latex4wp-it
Requires:	texlive-layaureo
Requires:	texlive-lshort-italian
Requires:	texlive-psfrag-italian
Requires:	texlive-texlive-it

%description
Support for Italian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17974 |21mr|texlive-collection-langlatin-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langlatin
Epoch:		1
Version:	20120224
Release:	5
Summary:	Latin
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langlatin.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-hyphen-latin
Requires:	texlive-collection-basic

%description
Support for typesetting Latin.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17975 |21mr|texlive-collection-langlatvian-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langlatvian
Epoch:		1
Version:	20120224
Release:	5
Summary:	Latvian
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langlatvian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-hyphen-latvian
Requires:	texlive-collection-basic

%description
Support for typesetting Latvian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17976 |21mr|texlive-collection-langlithuanian-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langlithuanian
Epoch:		1
Version:	20120224
Release:	5
Summary:	Lithuanian
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langlithuanian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-lithuanian
Requires:	texlive-hyphen-lithuanian
Requires:	texlive-collection-basic

%description
Support for typesetting Lithuanian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17977 |21mr|texlive-collection-langmongolian-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22468
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langmongolian
Epoch:		1
Version:	20120224
Release:	5
Summary:	Mongolian
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langmongolian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-hyphen-mongolian
Requires:	texlive-mongolian-babel
Requires:	texlive-montex

%description
Support for typesetting Mongolian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17978 |21mr|texlive-collection-langnorwegian-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langnorwegian
Epoch:		1
Version:	20120224
Release:	5
Summary:	Norwegian
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langnorwegian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-hyphen-norwegian
Requires:	texlive-collection-basic

%description
Support for typesetting Norwegian.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17979 |21mr|texlive-collection-langother-20190228-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31014
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langother
Epoch:		1
Version:	20190228
Release:	4
Summary:	Other languages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langother.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-amsldoc-vn
Requires:	texlive-aramaic-serto
Requires:	texlive-babel-bahasa
Requires:	texlive-babel-esperanto
Requires:	texlive-babel-georgian
Requires:	texlive-babel-hebrew
Requires:	texlive-babel-interlingua
Requires:	texlive-babel-sorbian
Requires:	texlive-babel-thai
Requires:	texlive-babel-vietnamese
Requires:	texlive-cjhebrew
Requires:	texlive-ctib
Requires:	texlive-fonts-tlwg
Requires:	texlive-hyphen-afrikaans
Requires:	texlive-hyphen-armenian
Requires:	texlive-hyphen-coptic
Requires:	texlive-hyphen-esperanto
Requires:	texlive-hyphen-georgian
Requires:	texlive-hyphen-indonesian
Requires:	texlive-hyphen-interlingua
Requires:	texlive-hyphen-thai
Requires:	texlive-hyphen-turkmen
Requires:	texlive-lshort-thai
Requires:	texlive-lshort-vietnamese
Requires:	texlive-ntheorem-vn
Requires:	texlive-vntex
Recommends:	texlive-hyphen-armenian
Recommends:	texlive-babel-azerbaijani
Recommends:	texlive-babel-indonesian
Recommends:	texlive-babel-malay
Recommends:	texlive-bangtex
Recommends:	texlive-bengali
Recommends:	texlive-burmese
Requires:	texlive-ebong
Requires:	texlive-ethiop
Recommends:	texlive-ethiop-t1
Recommends:	texlive-fc
Recommends:	texlive-hyphen-ethiopic
Recommends:	texlive-hyphen-indic
Recommends:	texlive-hyphen-sanskrit
Recommends:	texlive-latex-mr 
Recommends:	texlive-latexbangla 
Recommends:	texlive-padauk 
Recommends:	texlive-sanskrit 
Recommends:	texlive-sanskrit-t1 
Recommends:	texlive-thaienum 
Recommends:	texlive-thaispec 
Recommends:	texlive-velthuis
Recommends:	texlive-wnri
Recommends:	texlive-wnri-latex
Recommends:	texlive-xetex-devanagari

%description
Support for languages not otherwise listed, including Thai,
Vietnamese, Hebrew, Indonesian, and plenty more.  The split is
made simply on the basis of the size of the support, to keep
both collection sizes and the number of collections reasonable.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17980 |21mr|texlive-collection-langother-20190228-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31014
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langother
Epoch:		1
Version:	20190228
Release:	5
Summary:	Other languages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langother.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-amsldoc-vn
Requires:	texlive-aramaic-serto
Requires:	texlive-babel-bahasa
Requires:	texlive-babel-esperanto
Requires:	texlive-babel-georgian
Requires:	texlive-babel-hebrew
Requires:	texlive-babel-interlingua
Requires:	texlive-babel-sorbian
Requires:	texlive-babel-thai
Requires:	texlive-babel-vietnamese
Requires:	texlive-cjhebrew
Requires:	texlive-ctib
Requires:	texlive-fonts-tlwg
Requires:	texlive-hyphen-afrikaans
Requires:	texlive-hyphen-armenian
Requires:	texlive-hyphen-coptic
Requires:	texlive-hyphen-esperanto
Requires:	texlive-hyphen-georgian
Requires:	texlive-hyphen-indonesian
Requires:	texlive-hyphen-interlingua
Requires:	texlive-hyphen-thai
Requires:	texlive-hyphen-turkmen
Requires:	texlive-lshort-thai
Requires:	texlive-lshort-vietnamese
Requires:	texlive-ntheorem-vn
Requires:	texlive-vntex
Recommends:	texlive-babel-indonesian
Recommends:	texlive-babel-malay
Recommends:	texlive-bangtex
Requires:	texlive-ebong
Recommends:	texlive-hyphen-sanskrit
Recommends:	texlive-latex-mr 
Recommends:	texlive-sanskrit-t1 
Recommends:	texlive-thaispec 
Recommends:	texlive-velthuis
Recommends:	texlive-xetex-devanagari

# These are present in repos,
# but we don't want to force their installation
Recommends:	texlive-bengali
Recommends:	texlive-babel-azerbaijani
Recommends:	texlive-fc
Recommends:	texlive-hyphen-armenian
Recommends:	texlive-hyphen-ethiopic
Recommends:	texlive-hyphen-indic
Recommends:	texlive-latexbangla 
Recommends:	texlive-padauk
Recommends:	texlive-sanskrit
Recommends:	texlive-thaienum 
Recommends:	texlive-burmese
Recommends:	texlive-ethiop
Recommends:	texlive-ethiop-t1
Recommends:	texlive-wnri
Recommends:	texlive-wnri-latex

%description
Support for languages not otherwise listed, including Thai,
Vietnamese, Hebrew, Indonesian, and plenty more.  The split is
made simply on the basis of the size of the support, to keep
both collection sizes and the number of collections reasonable.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17981 |21mr|texlive-collection-langpolish-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30372
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langpolish
Epoch:		1
Version:	20190228
Release:	1
Summary:	Polish
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langpolish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-latex
Requires:	texlive-collection-basic
Requires:	texlive-babel-polish
Requires:	texlive-cc-pl
Requires:	texlive-gustlib
Requires:	texlive-gustprog
Requires:	texlive-hyphen-polish
Requires:	texlive-lshort-polish
Requires:	texlive-mex
Requires:	texlive-mwcls
Requires:	texlive-pl
Requires:	texlive-polski
Requires:	texlive-przechlewski-book
Requires:	texlive-qpxqtx
Requires:	texlive-tap
Requires:	texlive-tex-virtual-academy-pl
Requires:	texlive-texlive-pl
Requires:	texlive-utf8mex
# Not in repos yet
Recommends:	texlive-bredzenie

%description
Support for Polish.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17982 |21mr|texlive-collection-langportuguese-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30962
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langportuguese
Epoch:		1
Version:	20190228
Release:	2
Summary:	Portuguese
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langportuguese.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-babel-portuges
Requires:	texlive-beamer-tut-pt
Requires:	texlive-cursolatex
Requires:	texlive-feupphdteses
Requires:	texlive-hyphen-portuguese
Requires:	texlive-latexcheat-ptbr
Requires:	texlive-lshort-portuguese
Requires:	texlive-ordinalpt
Requires:	texlive-xypic-tut-pt
# Not in repos yet
#Recommends:	latex-via-exemplos

%description
Support for Portuguese.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17983 |21mr|texlive-collection-langspanish-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30372
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langspanish
Epoch:		1
Version:	20190228
Release:	1
Summary:	Spanish
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langspanish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-babel-catalan
Requires:	texlive-babel-galician
Requires:	texlive-babel-spanish
Requires:	texlive-es-tex-faq
Requires:	texlive-hyphen-catalan
Requires:	texlive-hyphen-galician
Requires:	texlive-hyphen-spanish
Requires:	texlive-l2tabu-spanish
Requires:	texlive-latex2e-help-texinfo-spanish
Requires:	texlive-latexcheat-esmx
Requires:	texlive-lshort-spanish
Requires:	texlive-spanish-mx
Recommends:	texlive-babel-spanglish
Recommends:	texlive-texlive-es

%description
Support for Spanish.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17984 |21mr|texlive-collection-langswedish-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langswedish
Epoch:		1
Version:	20120224
Release:	5
Summary:	Swedish
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langswedish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-swebib
Requires:	texlive-hyphen-swedish
Requires:	texlive-collection-basic

%description
Support for typesetting Swedish.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17985 |21mr|texlive-collection-langtibetan-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 14727
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langtibetan
Epoch:		1
Version:	20120224
Release:	5
Summary:	Tibetan
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langtibetan.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-ctib
Requires:	texlive-otibet
Requires:	texlive-collection-basic

%description
Support for typesetting Tibetan.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17986 |21mr|texlive-collection-langturkmen-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17578
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langturkmen
Epoch:		1
Version:	20120224
Release:	5
Summary:	Turkmen
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langturkmen.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-turkmen
Requires:	texlive-hyphen-turkmen
Requires:	texlive-collection-basic

%description
Support for typesetting Turkmen.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17987 |21mr|texlive-collection-langvietnamese-20120224-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15272
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-langvietnamese
Epoch:		1
Version:	20120224
Release:	5
Summary:	Vietnamese
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-langvietnamese.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-vntex
Requires:	texlive-collection-basic

%description
Support for typesetting Vietnamese.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17988 |21mr|texlive-collection-latex-20190228-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25030
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-latex
Epoch:		1
Version:	20190228
Release:	3
Summary:	Basic LaTeX packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-latex.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-ae
Requires:	texlive-amscls
Requires:	texlive-amsmath
Requires:	texlive-babel
Requires:	texlive-babelbib
Requires:	texlive-carlisle
Requires:	texlive-colortbl
Requires:	texlive-fancyhdr
Requires:	texlive-fix2col
Requires:	texlive-geometry
Requires:	texlive-graphics
Requires:	texlive-hyperref
Requires:	texlive-latex
Requires:	texlive-latex-fonts
Requires:	texlive-latexconfig
Requires:	texlive-ltxmisc
Requires:	texlive-mfnfss
Requires:	texlive-mptopdf
Requires:	texlive-natbib
Requires:	texlive-oberdiek
Requires:	texlive-pslatex
Requires:	texlive-psnfss
Requires:	texlive-pspicture
Requires:	texlive-tools
Requires:	texlive-babel-english
Requires:	texlive-url
Recommends:	texlive-graphics-cfg

%description
These packages are mandated by the core LaTeX team, or at least
very strongly recommended.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17989 |21mr|texlive-collection-latexextra-20190406-33
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32944
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef

%bcond_with unknown_recommends

Name:		texlive-collection-latexextra
Epoch:		2
Version:	20190406
Release:	33
Summary:	LaTeX additional packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-latexextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Recommends:	texlive-exceltex
Requires:	texlive-collection-latexrecommended
Requires:	texlive-collection-pictures
Requires:	texlive-2up
Requires:	texlive-ESIEEcv
Requires:	texlive-GS1
Requires:	texlive-HA-prosper
Requires:	texlive-Tabbing
Requires:	texlive-a0poster
Requires:	texlive-a4wide
Requires:	texlive-a5comb
Requires:	texlive-abraces
Requires:	texlive-abstract
Requires:	texlive-achemso
Requires:	texlive-acro
Requires:	texlive-acronym
Requires:	texlive-acroterm
Requires:	texlive-actuarialangle
Requires:	texlive-addlines
Requires:	texlive-adjmulticol
Requires:	texlive-adjustbox
Requires:	texlive-adrconv
Requires:	texlive-advdate
Requires:	texlive-akktex
Requires:	texlive-akletter
Requires:	texlive-alnumsec
Requires:	texlive-alterqcm
Requires:	texlive-altfont
Requires:	texlive-amsaddr
Requires:	texlive-animate
Requires:	texlive-anonchap
Requires:	texlive-answers
Requires:	texlive-anyfontsize
Requires:	texlive-appendix
Requires:	texlive-appendixnumberbeamer
Requires:	texlive-apptools
Requires:	texlive-arcs
Requires:	texlive-arrayjobx
Requires:	texlive-arraysort
Requires:	texlive-arydshln
Requires:	texlive-assignment
Requires:	texlive-attachfile
Requires:	texlive-autopdf
Requires:	texlive-authoraftertitle
Requires:	texlive-authorindex
Requires:	texlive-autonum
Requires:	texlive-background
Requires:	texlive-bashful
Requires:	texlive-bchart
Requires:	texlive-beamer2thesis
Requires:	texlive-beameraudience
Requires:	texlive-beamerposter
Requires:	texlive-beamersubframe
Requires:	texlive-beamertheme-upenn-bc
Requires:	texlive-beamerthemejltree
Requires:	texlive-beamerthemenirma
Requires:	texlive-beamerthemephnompenh
Requires:	texlive-beton
Requires:	texlive-bez123
Requires:	texlive-bezos
Requires:	texlive-bhcexam
Requires:	texlive-bigfoot
Requires:	texlive-bigints
Requires:	texlive-bizcard
Requires:	texlive-blindtext
Requires:	texlive-blkarray
Requires:	texlive-block
Requires:	texlive-blowup
Requires:	texlive-boites
Requires:	texlive-bold-extra
Requires:	texlive-bookest
Requires:	texlive-booklet
Requires:	texlive-boolexpr
Requires:	texlive-bophook
Requires:	texlive-boxedminipage
Requires:	texlive-boxhandler
Requires:	texlive-bracketkey
Requires:	texlive-braket
Requires:	texlive-breakurl
Requires:	texlive-bullcntr
Requires:	texlive-bussproofs
Recommends:	texlive-bxpapersize
Requires:	texlive-bxdpx-beamer
Requires:	texlive-calcage
Requires:	texlive-calctab
Requires:	texlive-calculator
Requires:	texlive-calrsfs
Requires:	texlive-cals
Requires:	texlive-calxxxx-yyyy
Requires:	texlive-cancel
Requires:	texlive-canoniclayout
Requires:	texlive-capt-of
Requires:	texlive-captcont
Requires:	texlive-captdef
Requires:	texlive-cases
Requires:	texlive-casyl
Requires:	texlive-catchfilebetweentags
Requires:	texlive-catechis
Requires:	texlive-catoptions
Requires:	texlive-cbcoptic
Requires:	texlive-ccaption
Requires:	texlive-cclicenses
Requires:	texlive-cd
Requires:	texlive-cd-cover
Requires:	texlive-cdpbundl
Requires:	texlive-cellspace
Requires:	texlive-censor
Requires:	texlive-changebar
Requires:	texlive-changelayout
Requires:	texlive-changepage
Requires:	texlive-changes
Requires:	texlive-chappg
Requires:	texlive-chapterfolder
Requires:	texlive-chet
Requires:	texlive-chextras
Requires:	texlive-chkfloat
Requires:	texlive-chletter
Requires:	texlive-chngcntr
Requires:	texlive-chronology
Requires:	texlive-circ
Requires:	texlive-classics
Requires:	texlive-clefval
Requires:	texlive-cleveref
Requires:	texlive-clipboard
Requires:	texlive-clock
Requires:	texlive-cmdstring
Requires:	texlive-cmdtrack
Requires:	texlive-cmsd
Requires:	texlive-cnltx
Requires:	texlive-codedoc
Requires:	texlive-codepage
Requires:	texlive-collcell
Requires:	texlive-collectbox
Requires:	texlive-colordoc
Requires:	texlive-colorinfo
Requires:	texlive-colortab
Requires:	texlive-colorwav
Requires:	texlive-colorweb
Requires:	texlive-colourchange
Requires:	texlive-combelow
Requires:	texlive-combine
Requires:	texlive-comma
Requires:	texlive-commado
Requires:	texlive-comment
Requires:	texlive-concepts
Requires:	texlive-concprog
Requires:	texlive-constants
Requires:	texlive-contour
Requires:	texlive-contracard
Requires:	texlive-cooking
Requires:	texlive-cool
Requires:	texlive-coollist
Requires:	texlive-coolstr
Requires:	texlive-coolthms
Requires:	texlive-cooltooltips
Requires:	texlive-coordsys
Requires:	texlive-copyrightbox
Requires:	texlive-coseoul
Requires:	texlive-counttexruns
Requires:	texlive-courseoutline
Requires:	texlive-coursepaper
Requires:	texlive-coverpage
Requires:	texlive-cprotect
Requires:	texlive-crbox
Requires:	texlive-crossreference
Requires:	texlive-csquotes
Requires:	texlive-csvsimple
Requires:	texlive-cuisine
Requires:	texlive-currfile
Requires:	texlive-currvita
Requires:	texlive-cutwin
Requires:	texlive-cv
Requires:	texlive-cv4tw
Requires:	texlive-cweb-latex
Requires:	texlive-dashbox
Requires:	texlive-dashrule
Requires:	texlive-dashundergaps
Requires:	texlive-dataref
Requires:	texlive-datatool
Requires:	texlive-dateiliste
Requires:	texlive-datenumber
Requires:	texlive-datetime
Requires:	texlive-dblfloatfix
Requires:	texlive-decimal
Requires:	texlive-decorule
Requires:	texlive-delimtxt
Requires:	texlive-diagbox
Requires:	texlive-diagnose
Requires:	texlive-dialogl
Requires:	texlive-dichokey
Requires:	texlive-dinbrief
Requires:	texlive-directory
Requires:	texlive-dirtytalk
Requires:	texlive-dlfltxb
Requires:	texlive-dnaseq
Requires:	texlive-docmfp
Requires:	texlive-docmute
Requires:	texlive-documentation
Requires:	texlive-doi
Requires:	texlive-dotarrow
Requires:	texlive-dotseqn
Requires:	texlive-download
Requires:	texlive-dox
Requires:	texlive-dpfloat
Requires:	texlive-dprogress
Requires:	texlive-drac
Requires:	texlive-draftcopy
Requires:	texlive-draftwatermark
Requires:	texlive-dtk
Requires:	texlive-dtxgallery
Requires:	texlive-dvdcoll
Requires:	texlive-dynblocks
Requires:	texlive-easy
Requires:	texlive-easy-todo
Requires:	texlive-easyfig
Requires:	texlive-easylist
Requires:	texlive-ean13isbn
Requires:	texlive-ebezier
Requires:	texlive-ecclesiastic
Requires:	texlive-ecv
Requires:	texlive-ed
Requires:	texlive-edmargin
Requires:	texlive-eemeir
Requires:	texlive-egplot
Requires:	texlive-ellipsis
Requires:	texlive-elmath
Requires:	texlive-elpres
Requires:	texlive-emarks
Requires:	texlive-embedall
Requires:	texlive-embrac
Requires:	texlive-emptypage
Requires:	texlive-emulateapj
Requires:	texlive-endfloat
Requires:	texlive-endheads
Requires:	texlive-endnotes
Requires:	texlive-engpron
Requires:	texlive-engrec
Requires:	texlive-enotez
Requires:	texlive-enumitem
Requires:	texlive-enumitem-zref
Requires:	texlive-envbig
Requires:	texlive-environ
Requires:	texlive-envlab
Requires:	texlive-epigraph
Requires:	texlive-epiolmec
Requires:	texlive-eqell
Requires:	texlive-eqlist
Requires:	texlive-eqname
Requires:	texlive-eqparbox
Requires:	texlive-errata
Requires:	texlive-esami
Requires:	texlive-esdiff
Requires:	texlive-esint
Requires:	texlive-esint-type1
Requires:	texlive-etaremune
Requires:	texlive-etextools
Requires:	texlive-etoc
Requires:	texlive-eukdate
Requires:	texlive-europecv
Requires:	texlive-everyhook
Requires:	texlive-everypage
Requires:	texlive-exam
Requires:	texlive-examdesign
Requires:	texlive-examplep
Requires:	texlive-excludeonly
Requires:	texlive-exercise
Requires:	texlive-exp-testopt
Requires:	texlive-expdlist
Requires:	texlive-export
Requires:	texlive-exsheets
Requires:	texlive-exsol
Requires:	texlive-extract
Requires:	texlive-facsimile
Requires:	texlive-factura
Requires:	texlive-fancynum
Requires:	texlive-fancypar
Requires:	texlive-fancytabs
Requires:	texlive-fancytooltips
Requires:	texlive-figsize
Requires:	texlive-filecontents
Requires:	texlive-filedate
Requires:	texlive-fileinfo
Requires:	texlive-filemod
Requires:	texlive-fink
Requires:	texlive-finstrut
Requires:	texlive-fixfoot
Requires:	texlive-fixme
Requires:	texlive-fixmetodonotes
Requires:	texlive-fjodor
Requires:	texlive-flabels
Requires:	texlive-flacards
Requires:	texlive-flagderiv
Requires:	texlive-flashcards
Requires:	texlive-flashmovie
Requires:	texlive-flipbook
Requires:	texlive-flippdf
Requires:	texlive-floatflt
Requires:	texlive-floatrow
Requires:	texlive-flowfram
Requires:	texlive-fmp
Requires:	texlive-fmtcount
Requires:	texlive-fn2end
Requires:	texlive-fnbreak
Requires:	texlive-fncychap
Requires:	texlive-fncylab
Requires:	texlive-fnpara
Requires:	texlive-fnpct
Requires:	texlive-fnumprint
Requires:	texlive-foilhtml
Requires:	texlive-fontaxes
Requires:	texlive-fonttable
Requires:	texlive-footmisc
Requires:	texlive-footnotebackref
Requires:	texlive-footnoterange
Requires:	texlive-footnpag
Requires:	texlive-forarray
Requires:	texlive-foreign
Requires:	texlive-forloop
Requires:	texlive-formlett
Requires:	texlive-formular
Requires:	texlive-fragments
Requires:	texlive-frame
Requires:	texlive-framed
Requires:	texlive-frankenstein
Requires:	texlive-frege
Requires:	texlive-ftcap
Requires:	texlive-ftnxtra
Requires:	texlive-fullblck
Requires:	texlive-fullwidth
Requires:	texlive-fundus-calligra
Requires:	texlive-fundus-cyr
Requires:	texlive-fundus-sueterlin
Requires:	texlive-fwlw
Requires:	texlive-g-brief
Requires:	texlive-gauss
Requires:	texlive-gcard
Requires:	texlive-gcite
Requires:	texlive-genmpage
Requires:	texlive-getfiledate
Requires:	texlive-ginpenc
Requires:	texlive-gitinfo
Requires:	texlive-gloss
Requires:	texlive-glossaries
Requires:	texlive-gmdoc
Requires:	texlive-gmdoc-enhance
Requires:	texlive-gmiflink
Requires:	texlive-gmutils
Requires:	texlive-gmverb
Requires:	texlive-graphicx-psmin
Requires:	texlive-graphicxbox
Requires:	texlive-grfpaste
Requires:	texlive-grid
Requires:	texlive-grid-system
Requires:	texlive-gridset
Requires:	texlive-guitlogo
Requires:	texlive-hanging
Requires:	texlive-hardwrap
Requires:	texlive-harnon-cv
Requires:	texlive-harpoon
Requires:	texlive-hc
Requires:	texlive-he-she
Requires:	texlive-hhtensor
Requires:	texlive-histogr
Requires:	texlive-hitec
Requires:	texlive-hletter
Requires:	texlive-hpsdiss
Requires:	texlive-hrefhide
Requires:	texlive-hvindex
Requires:	texlive-hypdvips
Requires:	texlive-hyper
Requires:	texlive-hypernat
Requires:	texlive-hyperxmp
Requires:	texlive-hyphenat
Requires:	texlive-idxcmds
Requires:	texlive-idxlayout
Requires:	texlive-ifmslide
Requires:	texlive-ifmtarg
Requires:	texlive-ifnextok
Requires:	texlive-ifoddpage
Requires:	texlive-ifplatform
Requires:	texlive-ifthenx
Requires:	texlive-iitem
Requires:	texlive-image-gallery
Requires:	texlive-imakeidx
Requires:	texlive-import
Requires:	texlive-incgraph
Requires:	texlive-inlinedef
Requires:	texlive-inputtrc
Requires:	texlive-interactiveworkbook
Requires:	texlive-interfaces
Requires:	texlive-inversepath
Requires:	texlive-invoice
Requires:	texlive-iso
Requires:	texlive-iso10303
Requires:	texlive-isodate
Requires:	texlive-isonums
Requires:	texlive-isodoc
Requires:	texlive-isorot
Requires:	texlive-isotope
Requires:	texlive-issuulinks
Requires:	texlive-iwhdp
Requires:	texlive-jlabels
Requires:	texlive-jvlisting
Requires:	texlive-kantlipsum
Requires:	texlive-kerntest
Requires:	texlive-keycommand
Requires:	texlive-keyreader
Requires:	texlive-keystroke
Requires:	texlive-keyval2e
Requires:	texlive-kix
Requires:	texlive-koma-moderncvclassic
Requires:	texlive-koma-script-sfs
Requires:	texlive-ktv-texdata
Requires:	texlive-labbook
Requires:	texlive-labels
Requires:	texlive-lastpage
Requires:	texlive-latex-tds
Requires:	texlive-layouts
Requires:	texlive-lazylist
Requires:	texlive-lcd
Requires:	texlive-lcg
Requires:	texlive-leading
Requires:	texlive-leaflet
Requires:	texlive-leftidx
Requires:	texlive-leipzig
Requires:	texlive-lengthconvert
Requires:	texlive-lettre
Requires:	texlive-lettrine
Requires:	texlive-lewis
Requires:	texlive-lhelp
Requires:	texlive-libgreek
Requires:	texlive-limap
Requires:	texlive-linegoal
Requires:	texlive-lipsum
Requires:	texlive-lisp-on-tex
Requires:	texlive-listing
Requires:	texlive-listofsymbols
Requires:	texlive-listliketab
Requires:	texlive-lkproof
Requires:	texlive-lmake
Requires:	texlive-locality
Requires:	texlive-localloc
Requires:	texlive-logbox
Requires:	texlive-logical-markup-utils
Requires:	texlive-logpap
Requires:	texlive-longnamefilelist
Requires:	texlive-loops
Requires:	texlive-lsc
Requires:	texlive-lstaddons
Requires:	texlive-lt3graph
Requires:	texlive-ltablex
Requires:	texlive-ltabptch
Requires:	texlive-ltxdockit
Requires:	texlive-ltxindex
Requires:	texlive-ltxkeys
Requires:	texlive-ltxnew
Requires:	texlive-ltxtools
Requires:	texlive-macroswap
Requires:	texlive-magaz
Requires:	texlive-mailing
Requires:	texlive-mailmerge
Requires:	texlive-makebarcode
Requires:	texlive-makebox
Requires:	texlive-makecell
Requires:	texlive-makecirc
Requires:	texlive-makecmds
Requires:	texlive-makedtx
Requires:	texlive-makeglos
Recommends:	texlive-mandi
Requires:	texlive-manfnt
Requires:	texlive-manuscript
Requires:	texlive-marginfix
Requires:	texlive-marginnote
Requires:	texlive-mathalfa
Requires:	texlive-mathastext
Requires:	texlive-mathexam
Requires:	texlive-maybemath
Requires:	texlive-mbenotes
Requires:	texlive-mcaption
Requires:	texlive-mceinleger
Requires:	texlive-mcite
Requires:	texlive-mciteplus
Requires:	texlive-mdframed
Requires:	texlive-media9
Requires:	texlive-meetingmins
Requires:	texlive-memexsupp
Requires:	texlive-memory
Requires:	texlive-menu
Requires:	texlive-menukeys
Requires:	texlive-method
Requires:	texlive-metre
Requires:	texlive-mftinc
Requires:	texlive-midpage
Requires:	texlive-minibox
Requires:	texlive-minifp
Requires:	texlive-minipage-marginpar
Requires:	texlive-minitoc
Requires:	texlive-minorrevision
Requires:	texlive-minted
Requires:	texlive-minutes
Requires:	texlive-mla-paper
Requires:	texlive-mlist
Requires:	texlive-mmap
Requires:	texlive-mnotes
Requires:	texlive-moderncv
Requires:	texlive-moderntimeline
Requires:	texlive-modref
Requires:	texlive-modroman
Requires:	texlive-monofill
Requires:	texlive-moreenum
Requires:	texlive-morefloats
Requires:	texlive-morehype
Requires:	texlive-moresize
Requires:	texlive-moreverb
Requires:	texlive-morewrites
Requires:	texlive-movie15
Requires:	texlive-mparhack
Requires:	texlive-msc
Requires:	texlive-msg
Requires:	texlive-mslapa
Requires:	texlive-mtgreek
Requires:	texlive-multenum
Requires:	texlive-multibbl
Requires:	texlive-multicap
Requires:	texlive-multienv
Requires:	texlive-multiexpand
Requires:	texlive-multirow
Requires:	texlive-mversion
Requires:	texlive-mwe
Requires:	texlive-mycv
Requires:	texlive-mylatexformat
Requires:	texlive-nag
Requires:	texlive-nameauth
Requires:	texlive-namespc
Requires:	texlive-ncclatex
Requires:	texlive-ncctools
Requires:	texlive-needspace
Requires:	texlive-nestquot
Requires:	texlive-newcommand
Requires:	texlive-newenviron
Requires:	texlive-newfile
Requires:	texlive-newlfm
Requires:	texlive-newspaper
Requires:	texlive-newunicodechar
Requires:	texlive-newvbtm
Requires:	texlive-newverbs
Requires:	texlive-nextpage
Requires:	texlive-nfssext-cfr
Requires:	texlive-nicefilelist
Requires:	texlive-niceframe
Requires:	texlive-nicetext
Requires:	texlive-nlctdoc
Requires:	texlive-noconflict
Requires:	texlive-noindentafter
Requires:	texlive-noitcrul
Requires:	texlive-nolbreaks
Requires:	texlive-nomencl
Requires:	texlive-nomentbl
Requires:	texlive-nonfloat
Requires:	texlive-nonumonpart
Requires:	texlive-nopageno
Requires:	texlive-notes
Requires:	texlive-notoccite
Requires:	texlive-nowidow
Requires:	texlive-nox
Requires:	texlive-ntheorem
Requires:	texlive-numberedblock
Requires:	texlive-numname
Requires:	texlive-numprint
Requires:	texlive-ocg-p
Requires:	texlive-ocgx
Requires:	texlive-ocr-latex
Requires:	texlive-octavo
Requires:	texlive-oldstyle
Requires:	texlive-onlyamsmath
Requires:	texlive-opcit
Requires:	texlive-optional
Requires:	texlive-outline
Requires:	texlive-outliner
Requires:	texlive-outlines
Requires:	texlive-overpic
Requires:	texlive-pagecolor
Requires:	texlive-pagecont
Requires:	texlive-pagenote
Requires:	texlive-pagerange
Requires:	texlive-pageslts
Requires:	texlive-paper
Requires:	texlive-papercdcase
Requires:	texlive-papermas
Requires:	texlive-papertex
Requires:	texlive-paracol
Requires:	texlive-paralist
Requires:	texlive-paresse
Requires:	texlive-parnotes
Requires:	texlive-parselines
Requires:	texlive-pas-cours
Requires:	texlive-pas-cv
Requires:	texlive-pas-tableur
Requires:	texlive-patch
Requires:	texlive-patchcmd
Requires:	texlive-pauldoc
Requires:	texlive-pawpict
Requires:	texlive-pax
Requires:	texlive-pbox
Requires:	texlive-pbsheet
Requires:	texlive-pdf14
Requires:	texlive-pdfcomment
Requires:	texlive-pdfcprot
Requires:	texlive-pdfmarginpar
Requires:	texlive-pdfscreen
Requires:	texlive-pdfslide
Requires:	texlive-pdfsync
Requires:	texlive-pdfwin
Requires:	texlive-pdfx
Requires:	texlive-pecha
Requires:	texlive-perltex
Requires:	texlive-permute
Requires:	texlive-petiteannonce
Requires:	texlive-philex
Requires:	texlive-photo
Requires:	texlive-piff
Requires:	texlive-pkgloader
Requires:	texlive-placeins
Requires:	texlive-plates
Requires:	texlive-plantslabels
Requires:	texlive-plweb
Requires:	texlive-polynom
Requires:	texlive-polynomial
Requires:	texlive-polytable
Requires:	texlive-postcards
Requires:	texlive-poster-mac
Requires:	texlive-ppr-prv
Requires:	texlive-preprint
Requires:	texlive-prettyref
Requires:	texlive-preview
Requires:	texlive-printlen
Requires:	texlive-probsoln
Requires:	texlive-program
Requires:	texlive-progress
Requires:	texlive-progressbar
Requires:	texlive-properties
Requires:	texlive-prosper
Requires:	texlive-protex
Requires:	texlive-protocol
Requires:	texlive-psfragx
Requires:	texlive-pst-pdf
Requires:	texlive-pstool
Requires:	texlive-pxgreeks
Requires:	texlive-python
Requires:	texlive-qcm
Requires:	texlive-quoting
Requires:	texlive-qstest
Requires:	texlive-qsymbols
Requires:	texlive-quotchap
Requires:	texlive-quotmark
Requires:	texlive-ran_toks
Requires:	texlive-randtext
Requires:	texlive-rccol
Requires:	texlive-rcs-multi
Requires:	texlive-rcsinfo
Requires:	texlive-readarray
Requires:	texlive-realboxes
Requires:	texlive-recipe
Requires:	texlive-recipecard
Requires:	texlive-rectopma
Requires:	texlive-refcheck
Requires:	texlive-refenums
Requires:	texlive-reflectgraphics
Requires:	texlive-refman
Requires:	texlive-refstyle
Requires:	texlive-regcount
Requires:	texlive-regexpatch
Requires:	texlive-register
Requires:	texlive-regstats
Requires:	texlive-relenc
Requires:	texlive-relsize
Requires:	texlive-repeatindex
Requires:	texlive-rjlparshap
Requires:	texlive-rlepsf
Requires:	texlive-rmpage
Requires:	texlive-robustcommand
Requires:	texlive-robustindex
Requires:	texlive-romanbar
Requires:	texlive-romanneg
Requires:	texlive-romannum
Requires:	texlive-rotfloat
Requires:	texlive-rotpages
Requires:	texlive-roundbox
Requires:	texlive-rterface
Requires:	texlive-rtkinenc
Requires:	texlive-rulercompass
Requires:	texlive-rvwrite
Requires:	texlive-sauerj
Requires:	texlive-savefnmark
Requires:	texlive-savesym
Requires:	texlive-savetrees
Requires:	texlive-scale
Requires:	texlive-scalebar
Requires:	texlive-scalerel
Requires:	texlive-scanpages
Requires:	texlive-sdrt
Requires:	texlive-secdot
Requires:	texlive-sectionbox
Requires:	texlive-sectsty
Requires:	texlive-selectp
Requires:	texlive-semantic
Requires:	texlive-semioneside
Requires:	texlive-sepfootnotes
Requires:	texlive-seqsplit
Requires:	texlive-sf298
Requires:	texlive-sffms
Requires:	texlive-sfmath
Requires:	texlive-shadow
Requires:	texlive-shadowtext
Requires:	texlive-shadethm
Requires:	texlive-shapepar
Requires:	texlive-shipunov
Requires:	texlive-shorttoc
Requires:	texlive-show2e
Requires:	texlive-showcharinbox
Requires:	texlive-showdim
Requires:	texlive-showexpl
Requires:	texlive-showlabels
Requires:	texlive-sidecap
Requires:	texlive-sidenotes
Requires:	texlive-silence
Requires:	texlive-simplecd
Requires:	texlive-simplecv
Requires:	texlive-sitem
Requires:	texlive-skb
Requires:	texlive-skdoc
Requires:	texlive-skeycommand
Requires:	texlive-skeyval
Requires:	texlive-skrapport
Requires:	texlive-slantsc
Requires:	texlive-smalltableof
Requires:	texlive-smartref
Requires:	texlive-snapshot
Requires:	texlive-snotez
Requires:	texlive-soul
Requires:	texlive-sparklines
Requires:	texlive-sphack
Requires:	texlive-spreadtab
Requires:	texlive-spverbatim
Requires:	texlive-splitindex
Requires:	texlive-spot
Requires:	texlive-spotcolor
Requires:	texlive-srbook-mem
Requires:	texlive-srcltx
Requires:	texlive-sseq
Requires:	texlive-sslides
Requires:	texlive-stack
Requires:	texlive-stackengine
Requires:	texlive-standalone
Requires:	texlive-stdclsdv
Requires:	texlive-stdpage
Requires:	texlive-stex
Requires:	texlive-storebox
Requires:	texlive-storecmd
Requires:	texlive-stringstrings
Requires:	texlive-sttools
Requires:	texlive-stubs
Requires:	texlive-subdepth
Requires:	texlive-subeqn
Requires:	texlive-subeqnarray
Requires:	texlive-subfigmat
Requires:	texlive-subfigure
Requires:	texlive-subfiles
Requires:	texlive-subfloat
Requires:	texlive-substitutefont
Requires:	texlive-substr
Requires:	texlive-supertabular
Requires:	texlive-svg
Requires:	texlive-svgcolor
Requires:	texlive-svn
Requires:	texlive-svn-multi
Requires:	texlive-svn-prov
Requires:	texlive-svninfo
Requires:	texlive-syntax
Requires:	texlive-syntrace
Requires:	texlive-synttree
Requires:	texlive-tabfigures
Requires:	texlive-tableaux
Requires:	texlive-tablefootnote
Requires:	texlive-tableof
Requires:	texlive-tablists
Requires:	texlive-tabls
Requires:	texlive-tabstackengine
Requires:	texlive-tabto-ltx
Requires:	texlive-tabu
Requires:	texlive-tabularborder
Requires:	texlive-tabularcalc
Requires:	texlive-tabularew
Requires:	texlive-tabulary
Requires:	texlive-tagging
Requires:	texlive-talk
Requires:	texlive-tamefloats
Requires:	texlive-tcldoc
Requires:	texlive-tcolorbox
Requires:	texlive-tdclock
Requires:	texlive-technics
Requires:	texlive-ted
Requires:	texlive-termcal
Requires:	texlive-termlist
Requires:	texlive-tex-label
Requires:	texlive-texlogos
Requires:	texlive-texmate
Requires:	texlive-texments
Requires:	texlive-texpower
Requires:	texlive-texshade
Requires:	texlive-textfit
Requires:	texlive-textmerg
Requires:	texlive-textpos
Requires:	texlive-theoremref
Requires:	texlive-threadcol
Requires:	texlive-threeparttable
Requires:	texlive-threeparttablex
Requires:	texlive-thinsp
Requires:	texlive-thmtools
Requires:	texlive-thumb
Requires:	texlive-thumbs
Requires:	texlive-thumby
Requires:	texlive-ticket
Requires:	texlive-titlecaps
Requires:	texlive-titlefoot
Requires:	texlive-titlepic
Requires:	texlive-titleref
Requires:	texlive-titlesec
Requires:	texlive-titling
Requires:	texlive-tocbibind
Requires:	texlive-tocloft
Requires:	texlive-tocvsec2
Requires:	texlive-todo
Requires:	texlive-todonotes
Requires:	texlive-tokenizer
Requires:	texlive-toolbox
Requires:	texlive-topfloat
Requires:	texlive-totcount
Requires:	texlive-totpages
Requires:	texlive-translations
Requires:	texlive-trfsigns
Requires:	texlive-trimspaces
Requires:	texlive-trsym
Requires:	texlive-trivfloat
Requires:	texlive-truncate
Requires:	texlive-tucv
Requires:	texlive-turnthepage
Requires:	texlive-twoinone
Requires:	texlive-twoup
Requires:	texlive-txgreeks
Requires:	texlive-type1cm
Requires:	texlive-typeface
Requires:	texlive-typogrid
Requires:	texlive-ucs
Requires:	texlive-uebungsblatt
Requires:	texlive-umoline
Requires:	texlive-underlin
Requires:	texlive-underoverlap
Requires:	texlive-undolabl
Requires:	texlive-units
Requires:	texlive-unravel
Requires:	texlive-upmethodology
Requires:	texlive-upquote
Requires:	texlive-uri
Requires:	texlive-ushort
Requires:	texlive-uwmslide
Requires:	texlive-varindex
Requires:	texlive-varsfromjobname
Requires:	texlive-varwidth
Requires:	texlive-vdmlisting
Requires:	texlive-verbasef
Requires:	texlive-verbatimbox
Requires:	texlive-verbatimcopy
Requires:	texlive-verbdef
Requires:	texlive-verbments
Requires:	texlive-version
Requires:	texlive-versions
Requires:	texlive-vertbars
Requires:	texlive-vgrid
Requires:	texlive-vhistory
Requires:	texlive-vmargin
Requires:	texlive-volumes
Requires:	texlive-vpe
Requires:	texlive-vruler
Requires:	texlive-vwcol
Requires:	texlive-wallpaper
Requires:	texlive-warning
Requires:	texlive-warpcol
Requires:	texlive-was
Requires:	texlive-widetable
Requires:	texlive-williams
Requires:	texlive-withargs
Requires:	texlive-wordlike
Requires:	texlive-wrapfig
Requires:	texlive-xargs
Requires:	texlive-xcomment
Requires:	texlive-xhfill
Requires:	texlive-xtab
Requires:	texlive-xdoc
Requires:	texlive-xfor
Requires:	texlive-xifthen
Requires:	texlive-xint
Requires:	texlive-xmpincl
Requires:	texlive-xnewcommand
Requires:	texlive-xoptarg
Requires:	texlive-xpatch
Requires:	texlive-xpeek
Requires:	texlive-xpunctuate
Requires:	texlive-xstring
Requires:	texlive-xwatermark
Requires:	texlive-xytree
Requires:	texlive-yafoot
Requires:	texlive-yagusylo
Requires:	texlive-ydoc
Requires:	texlive-yplan
Requires:	texlive-zed-csp
Requires:	texlive-ziffer
Requires:	texlive-zwgetfdate
Requires:	texlive-zwpagelayout
Requires:	texlive-actuarialsymbol
%if %{with unknown_recommends}
Recommends: texlive-addfont
Recommends: texlive-alertmessage
%endif
Requires: texlive-asciilist
Requires: texlive-assoccnt
Requires: texlive-aurl
Requires: texlive-authorarchive
Requires: texlive-avremu
Requires: texlive-axessibility
Requires: texlive-bankstatement
Requires: texlive-basicarith
Requires: texlive-beamercolorthemeowl
Requires: texlive-beamerdarkthemes
Requires: texlive-beamertheme-cuerna
Requires: texlive-beamertheme-detlevcm
Requires: texlive-beamertheme-epyt
Requires: texlive-beamertheme-focus
Requires: texlive-beamertheme-light
Requires: texlive-beamertheme-metropolis
Requires: texlive-beamertheme-npbt
Requires: texlive-beamertheme-saintpetersburg
Requires: texlive-bewerbung
Requires: texlive-bibletext
Requires: texlive-biochemistry-colors
Recommends: texlive-bookcover
Recommends: texlive-boxedminipage2e
%if %{with unknown_recommends}
Recommends: texlive-bnumexpr
%endif
Requires: texlive-bxcalc
Requires: texlive-bxdvidriver
Requires: texlive-bxenclose
Requires: texlive-bxnewfont
Requires: texlive-bxpdfver
Requires: texlive-bxtexlogo
Requires: texlive-carbohydrates
Requires: texlive-cellprops
Requires: texlive-changelog
Requires: texlive-cheatsheet
%if %{with unknown_recommends}
Recommends: texlive-childdoc
Recommends: texlive-classpack
%endif
Requires: texlive-cloze
Requires: texlive-clrdblpg
Requires: texlive-clrstrip
Requires: texlive-cntformats
Requires: texlive-cntperchap
Requires: texlive-codesection
Requires: texlive-colophon
Requires: texlive-coloring
Requires: texlive-colorspace
Requires: texlive-commedit
Requires: texlive-competences
Requires: texlive-continue
Requires: texlive-conv-xkv
Requires: texlive-cooking-units
Requires: texlive-copyedit
Requires: texlive-crossreftools
Recommends: texlive-cybercic
Recommends: texlive-datetime2
Recommends: texlive-denisbdoc
%if %{with unknown_recommends}
Recommends: texlive-css-colors
Recommends: texlive-currency
Recommends: texlive-cyber
Recommends: texlive-datetime2-bahasai
Recommends: texlive-datetime2-basque
Recommends: texlive-datetime2-breton
Recommends: texlive-datetime2-bulgarian
Recommends: texlive-datetime2-catalan
Recommends: texlive-datetime2-croatian
Recommends: texlive-datetime2-czech
Recommends: texlive-datetime2-danish
Recommends: texlive-datetime2-dutch
Recommends: texlive-datetime2-en-fulltext
Recommends: texlive-datetime2-english
Recommends: texlive-datetime2-esperanto
Recommends: texlive-datetime2-estonian
Recommends: texlive-datetime2-finnish
Recommends: texlive-datetime2-french
Recommends: texlive-datetime2-galician
Recommends: texlive-datetime2-german
Recommends: texlive-datetime2-greek
Recommends: texlive-datetime2-hebrew
Recommends: texlive-datetime2-icelandic
Recommends: texlive-datetime2-irish
Recommends: texlive-datetime2-italian
Recommends: texlive-datetime2-it-fulltext
Recommends: texlive-datetime2-latin
Recommends: texlive-datetime2-lsorbian
Recommends: texlive-datetime2-magyar
Recommends: texlive-datetime2-norsk
Recommends: texlive-datetime2-polish
Recommends: texlive-datetime2-portuges
Recommends: texlive-datetime2-romanian
Recommends: texlive-datetime2-russian
Recommends: texlive-datetime2-samin
Recommends: texlive-datetime2-scottish
Recommends: texlive-datetime2-serbian
Recommends: texlive-datetime2-slovak
Recommends: texlive-datetime2-slovene
Recommends: texlive-datetime2-spanish
Recommends: texlive-datetime2-swedish
Recommends: texlive-datetime2-turkish
Recommends: texlive-datetime2-ukrainian
Recommends: texlive-datetime2-usorbian
Recommends: texlive-datetime2-welsh
Recommends: texlive-doclicense
Recommends: texlive-doctools
%endif
Requires: texlive-draftfigure
%if %{with unknown_recommends}
Recommends: texlive-dtxdescribe
%endif
Requires: texlive-duckuments
Requires: texlive-ducksay
Requires: texlive-dynamicnumber
Requires: texlive-easyformat
Requires: texlive-easyreview
Requires: texlive-efbox
Requires: texlive-elegantbook
Requires: texlive-elegantnote
Requires: texlive-elegantpaper
Requires: texlive-elements
Requires: texlive-elocalloc
%if %{with unknown_recommends}
Recommends: texlive-elzcards
%endif
Requires: texlive-eqnalign
Recommends: texlive-erw-l3
Requires: texlive-eulerpx
Requires: texlive-europasscv
Requires: texlive-exam-n
%if %{with unknown_recommends}
Recommends: texlive-exam-randomizechoices
Recommends: texlive-exframe
Recommends: texlive-example
%endif
Requires: texlive-exercisebank
Requires: texlive-exercisepoints
%if %{with unknown_recommends}
Recommends: texlive-exercises
%endif
Requires: texlive-fancyhandout
Requires: texlive-fancylabel
Requires: texlive-fancyslides
%if %{with unknown_recommends}
Recommends: texlive-fcolumn
%endif
Requires: texlive-fetchcls
Requires: texlive-ffslides
%if %{with unknown_recommends}
Recommends: texlive-fgruler
Recommends: texlive-fibeamer
Recommends: texlive-fifo-stack
%endif
Requires: texlive-filecontentsdef
Requires: texlive-fithesis
Requires: texlive-fixcmex
%if %{with unknown_recommends}
Recommends: texlive-footmisx
Recommends: texlive-footnotehyper
Recommends: texlive-forms16be
Recommends: texlive-fullminipage
Recommends: texlive-fvextra
Recommends: texlive-gatherenum
Recommends: texlive-gender
Recommends: texlive-getitems
Recommends: texlive-gitfile-info
Recommends: texlive-gitinfo2
Recommends: texlive-gitlog
Recommends: texlive-gitver
Recommends: texlive-globalvals
Recommends: texlive-glossaries-danish
Recommends: texlive-glossaries-dutch
Recommends: texlive-glossaries-english
Recommends: texlive-glossaries-estonian
Recommends: texlive-glossaries-extra
Recommends: texlive-glossaries-finnish
Recommends: texlive-glossaries-french
Recommends: texlive-glossaries-german
Recommends: texlive-glossaries-irish
Recommends: texlive-glossaries-italian
Recommends: texlive-glossaries-magyar
Recommends: texlive-glossaries-polish
Recommends: texlive-glossaries-portuges
Recommends: texlive-glossaries-serbian
Recommends: texlive-glossaries-spanish
Recommends: texlive-grabbox
Recommends: texlive-graphbox
Recommends: texlive-grayhints
Recommends: texlive-gridslides
Recommends: texlive-halloweenmath
Recommends: texlive-hackthefootline
Recommends: texlive-handin
Recommends: texlive-handout
Recommends: texlive-hang
Recommends: texlive-hyperbar
Recommends: texlive-identkey
Recommends: texlive-iffont
Recommends: texlive-indextools
Recommends: texlive-inline-images
Recommends: texlive-intopdf
Recommends: texlive-invoice-class
Recommends: texlive-invoice2
Recommends: texlive-isopt
Recommends: texlive-jslectureplanner
Recommends: texlive-jumplines
Recommends: texlive-kalendarium
Recommends: texlive-keyfloat
Recommends: texlive-keyvaltable
Recommends: texlive-knowledge
Recommends: texlive-komacv
Recommends: texlive-komacv-rg
Recommends: texlive-l3build
Recommends: texlive-labelschanged
Recommends: texlive-lastpackage
Recommends: texlive-latex-uni8
Recommends: texlive-latexcolors
Recommends: texlive-latexdemo
Recommends: texlive-latexgit
Recommends: texlive-lccaps
Recommends: texlive-lectures
Recommends: texlive-linop
Recommends: texlive-listlbls
Recommends: texlive-longfbox
Recommends: texlive-longfigure
Recommends: texlive-lstfiracode
%endif
Requires: texlive-ltxguidex
Requires: texlive-lua-check-hyphen
%if %{with unknown_recommends}
Recommends: texlive-luatodonotes
%endif
Requires: texlive-makecookbook
Requires: texlive-makebase
Requires: texlive-manyind
Requires: texlive-marginfit
Requires: texlive-markdown
Requires: texlive-mathfam256
Requires: texlive-mathfont
Requires: texlive-mcexam
Recommends: texlive-medstarbeamer
Recommends: texlive-mensa-tex
Requires: texlive-metalogox
Requires: texlive-mfirstuc
Requires: texlive-mi-solns
%if %{with unknown_recommends}
Recommends: texlive-minidocument
%endif
Requires: texlive-modernposter
Requires: texlive-modular
%if %{with unknown_recommends}
Recommends: texlive-moodle
%endif
Requires: texlive-mpostinl
Requires: texlive-multiaudience
%if %{with unknown_recommends}
Recommends: texlive-multicolrule
Recommends: texlive-multidef
Recommends: texlive-multilang
Recommends: texlive-nidanfloat
%endif
Requires: texlive-normalcolor
Requires: texlive-notespages
%if %{with unknown_recommends}
Recommends: texlive-notestex
Recommends: texlive-numspell
Recommends: texlive-ocgx2
%endif
Requires: texlive-optidef
Requires: texlive-options
Requires: texlive-outlining
%if %{with unknown_recommends}
Recommends: texlive-overlays
Recommends: texlive-padcount
Recommends: texlive-parades
%endif
Requires: texlive-pdfoverlay
Requires: texlive-pdfpagediff
Requires: texlive-pdfpc-movie
Requires: texlive-pdfprivacy
%if %{with unknown_recommends}
Recommends: texlive-pdfreview
Recommends: texlive-phffullpagefigure
Recommends: texlive-phfnote
Recommends: texlive-phfparen
Recommends: texlive-phfqit
Recommends: texlive-phfquotetext
Recommends: texlive-phfsvnwatermark
Recommends: texlive-phfthm
Recommends: texlive-phonenumbers
Recommends: texlive-pressrelease
Recommends: texlive-proofread
Recommends: texlive-pstring
Recommends: texlive-pygmentex
%endif
Requires: texlive-quicktype
%if %{with unknown_recommends}
Recommends: texlive-recipebook
Recommends: texlive-repltext
Recommends: texlive-returntogrid
Recommends: texlive-rgltxdoc
Recommends: texlive-romanbarpagenumber
Recommends: texlive-sanitize-umlaut
Recommends: texlive-scrlttr2copy
Recommends: texlive-sectionbreak
Recommends: texlive-seealso
Recommends: texlive-semantic-markup
Recommends: texlive-semproc
Recommends: texlive-sesstime
Recommends: texlive-shdoc
%endif
Requires: texlive-showhyphens
%if %{with unknown_recommends}
Recommends: texlive-simpleinvoice
Recommends: texlive-smartunits
Recommends: texlive-spark-otf
Recommends: texlive-stealcaps
Recommends: texlive-studenthandouts
Recommends: texlive-tablestyles
Recommends: texlive-tablvar
Recommends: texlive-tagpair
Recommends: texlive-tagpdf
Recommends: texlive-tasks
Recommends: texlive-templatetools
Recommends: texlive-testhyphens
Recommends: texlive-testidx
Recommends: texlive-tex-locale
Recommends: texlive-texvc
Recommends: texlive-textualicomma
Recommends: texlive-tocdata
Recommends: texlive-topiclongtable
Recommends: texlive-typed-checklist
Recommends: texlive-typoaid
Recommends: texlive-uassign
Recommends: texlive-uspace
Recommends: texlive-variablelm
Recommends: texlive-versonotes
Recommends: texlive-wallcalendar
Recommends: texlive-widows-and-orphans
Recommends: texlive-wordcount
Recommends: texlive-worksheet
Recommends: texlive-wtref
Recommends: texlive-xassoccnt
Recommends: texlive-xbmks
Recommends: texlive-xcntperchap
Recommends: texlive-xcolor-material
Recommends: texlive-xcolor-solarized
%endif
Recommends: texlive-xcookybooky
%if %{with unknown_recommends}
Recommends: texlive-xellipsis
Recommends: texlive-xfakebold
Recommends: texlive-xltabular
Recommends: texlive-xprintlen
Recommends: texlive-xsavebox
Recommends: texlive-xsim
Recommends: texlive-xurl
Recommends: texlive-yaletter
Recommends: texlive-ycbook
Recommends: texlive-zebra-goodies
%endif

%rename tetex-latex
%rename texlive-texmf-latex

%description
A very large collection of add-on packages for LaTeX.

%posttrans
    %{_sbindir}/texlive.post -

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17990 |21mr|texlive-collection-latexrecommended-20190324-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25795
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-latexrecommended
Epoch:		1
Version:	20190324
Release:	5
Summary:	LaTeX recommended packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-latexrecommended.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-latex
Requires:	texlive-anysize
Requires:	texlive-beamer
Requires:	texlive-booktabs
Requires:	texlive-caption
Requires:	texlive-cite
Requires:	texlive-cmap
Requires:	texlive-crop
Requires:	texlive-ctable
Requires:	texlive-eso-pic
Requires:	texlive-euenc
Requires:	texlive-euler
Requires:	texlive-extsizes
Requires:	texlive-fancybox
Requires:	texlive-fancyref
Requires:	texlive-fancyvrb
Requires:	texlive-float
Requires:	texlive-fontspec
Requires:	texlive-fp
Requires:	texlive-index
Requires:	texlive-jknapltx
Requires:	texlive-koma-script
Requires:	texlive-l3kernel
Requires:	texlive-l3packages
Requires:	texlive-l3experimental
Requires:	texlive-listings
Requires:	texlive-lineno
Requires:	texlive-mathspec
Requires:	texlive-mdwtools
Requires:	texlive-memoir
Requires:	texlive-metalogo
Requires:	texlive-microtype
Requires:	texlive-ms
Requires:	texlive-ntgclass
Requires:	texlive-parskip
Requires:	texlive-pdfpages
Requires:	texlive-polyglossia
Requires:	texlive-powerdot
Requires:	texlive-psfrag
Requires:	texlive-rcs
Requires:	texlive-sansmath
Requires:	texlive-section
Requires:	texlive-seminar
Requires:	texlive-sepnum
Requires:	texlive-setspace
Requires:	texlive-subfig
Requires:	texlive-textcase
Requires:	texlive-thumbpdf
Requires:	texlive-typehtml
Requires:	texlive-underscore
Requires:	texlive-xcolor
Requires:	texlive-xkeyval
Requires:       texlive-xltxtra
Requires:       texlive-xunicode
Requires:       texlive-unicode-math
Requires:	texlive-etoolbox
Requires:	texlive-filehook
Requires:	texlive-lineno
Recommends:	texlive-mathtools
Requires:	texlive-breqn
Requires:	texlive-latexbug
Recommends: texlive-lwarp
Requires:	texlive-translator
Requires:	texlive-ucharcat

%description
A collection of recommended add-on packages for LaTeX which
have widespread use.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17991 |21mr|texlive-collection-luatex-20190430-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30790
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef

%bcond_with unknown_recommends

Name:		texlive-collection-luatex
Epoch:		1
Version:	20190430
Release:	5
Summary:	LuaTeX packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-luatex.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-checkcites
Requires:	texlive-chickenize
Requires:	texlive-enigma
Requires:	texlive-interpreter
Requires:	texlive-lua-visual-debug
Requires:	texlive-lua2dox
Requires:	texlive-luacode
Requires:	texlive-luaindex
Requires:	texlive-luainputenc
Requires:	texlive-luaintro
Requires:	texlive-lualatex-doc
Requires:	texlive-lualatex-math
Requires:	texlive-lualibs
Requires:	texlive-luamplib
Requires:	texlive-luaotfload
Requires:	texlive-luasseq
Requires:	texlive-luatexbase
Requires:	texlive-luatexko
Requires:	texlive-luatextra
Requires:	texlive-luaxml
Requires:	texlive-odsfile
Requires:	texlive-selnolig
Requires:	texlive-spelling
%if %{with unknown_recommends}
Recommends: texlive-auto-pst-pdf-lua
Recommends: texlive-bezierplot
Recommends: texlive-combofont
Recommends: texlive-cstypo
Recommends: texlive-ctablestack
Recommends: texlive-kanaparser
%endif
Requires: texlive-luahyphenrules
Requires: texlive-lualatex-truncate
Requires:	texlive-luapackageloader
Requires:	texlive-luarandom
%if %{with unknown_recommends}
Recommends: texlive-luatex85
Recommends: texlive-luavlna
%endif
Requires: texlive-nodetree
%if %{with unknown_recommends}
Recommends: texlive-placeat
Recommends: texlive-plantuml
Recommends: texlive-typewriter
%endif

%description
Packages for LuaTeX, a Unicode-aware extension of pdfTeX, using
Lua as an embedded scripting and extension language.
http://luatex.org/.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17992 |21mr|texlive-collection-metapost-20190309-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32455
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-metapost
Epoch:		1
Version:	20190309
Release:	8
Summary:	MetaPost and Metafont packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-metapost.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-automata
Requires:	texlive-bbcard
Requires:	texlive-blockdraw_mp
Requires:	texlive-bpolynomial
Requires:	texlive-cmarrows
Requires:	texlive-drv
Requires:	texlive-dviincl
Requires:	texlive-emp
Requires:	texlive-epsincl
Requires:	texlive-expressg
Requires:	texlive-exteps
Requires:	texlive-featpost
Requires:	texlive-feynmf
Requires:	texlive-feynmp-auto
Requires:	texlive-garrigues
Requires:	texlive-gmp
Requires:	texlive-hatching
Requires:	texlive-latexmp
Requires:	texlive-metago
Requires:	texlive-metaobj
Requires:	texlive-metaplot
Requires:	texlive-metapost
Requires:	texlive-metauml
Requires:	texlive-mfpic
Requires:	texlive-mfpic4ode
Requires:	texlive-mp3d
Requires:	texlive-mpcolornames
Requires:	texlive-mpattern
Requires:	texlive-mpgraphics
Requires:	texlive-piechartmp
Requires:	texlive-repere
Requires:	texlive-roex
Requires:	texlive-slideshow
Requires:	texlive-splines
Requires:	texlive-suanpan
Requires:	texlive-textpath
Requires:	texlive-threeddice
Requires:	texlive-mcf2graph
Requires:	texlive-metapost-colorbrewer
Requires:	texlive-mparrows
Requires:	texlive-mptrees
# These ones are in contrib
Recommends:	texlive-roundrect
Recommends:	texlive-shapes

%description
TeXLive collection-metapost package.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17993 |21mr|texlive-collection-music-20190228-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32405
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-music
Epoch:		1
Version:	20190228
Release:	4
Summary:	Music packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-music.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-latex
Requires:	texlive-abc
Requires:	texlive-figbas
Requires:	texlive-gchords
Requires:	texlive-gtrcrd
Requires:	texlive-guitar
Requires:	texlive-guitarchordschemes
Requires:	texlive-harmony
Requires:	texlive-lilyglyphs
Requires:	texlive-m-tx
Requires:	texlive-musixguit
Requires:	texlive-musixtex
Requires:	texlive-musixtex-fonts
Requires:	texlive-pmx
Requires:	texlive-pmxchords
Requires:	texlive-songbook
Requires:	texlive-songs
Requires:	texlive-musicography
Requires:	texlive-piano
# Not in repos yet
Recommends:	texlive-autosp
Recommends:	texlive-bagpipe
Recommends:	texlive-chordbars
Recommends:	texlive-gregoriotex
Recommends:	texlive-guitartabs
Recommends:	texlive-leadsheets
Recommends:	texlive-latex4musicians
Requires:	texlive-lyluatex
Recommends:	texlive-musixtnt
Recommends:	texlive-octave
Recommends:	texlive-xpiano

%description
Music-related fonts and packages.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17994 |21mr|texlive-collection-pictures-20190406-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-collection-pictures
Epoch:		1
Version:	20190406
Release:	7
Summary:	Graphics, pictures, diagrams
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-pictures.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-aobs-tikz
Requires:	texlive-askmaps
Requires:	texlive-asyfig
Requires:	texlive-autoarea
Requires:	texlive-bardiag
Requires:	texlive-bloques
Requires:	texlive-bodegraph
Requires:	texlive-bondgraph
Requires:	texlive-braids
Requires:	texlive-bxeepic
Requires:	texlive-cachepic
Requires:	texlive-chemfig
Requires:	texlive-combinedgraphics
Requires:	texlive-circuitikz
Requires:	texlive-curve
Requires:	texlive-curve2e
Requires:	texlive-curves
Requires:	texlive-dcpic
Requires:	texlive-diagmac2
Requires:	texlive-doc-pictex
Requires:	texlive-dottex
Requires:	texlive-dot2texi
Requires:	texlive-dratex
Requires:	texlive-drs
Requires:	texlive-duotenzor
Requires:	texlive-eepic
Requires:	texlive-epspdf
Requires:	texlive-epspdfconversion
Requires:	texlive-esk
Requires:	texlive-fast-diagram
Requires:	texlive-fig4latex
Requires:	texlive-flowchart
Requires:	texlive-forest
Requires:	texlive-gincltex
Requires:	texlive-gnuplottex
Requires:	texlive-gradientframe
Requires:	texlive-grafcet
Requires:	texlive-graphviz
Requires:	texlive-harveyballs
Requires:	texlive-here
Requires:	texlive-hf-tikz
Requires:	texlive-hobby
Requires:	texlive-hvfloat
Requires:	texlive-knitting
Requires:	texlive-knittingpattern
Requires:	texlive-lapdf
Requires:	texlive-lpic
Requires:	texlive-makeshape
Requires:	texlive-mathspic
Requires:	texlive-miniplot
Requires:	texlive-modiagram
Requires:	texlive-neuralnetwork
Requires:	texlive-numericplots
Requires:	texlive-pb-diagram
Requires:	texlive-petri-nets
Requires:	texlive-pgf
Requires:	texlive-pgf-blur
Requires:	texlive-pgf-soroban
Requires:	texlive-pgf-umlsd
Requires:	texlive-pgfgantt
Requires:	texlive-pgfkeyx
Requires:	texlive-pgfmolbio
Requires:	texlive-pgfopts
Requires:	texlive-pgfplots
Requires:	texlive-picinpar
Requires:	texlive-pict2e
Requires:	texlive-pictex
Requires:	texlive-pictex2
Requires:	texlive-pinlabel
Requires:	texlive-pmgraph
Requires:	texlive-prerex
Requires:	texlive-productbox
Requires:	texlive-pxpgfmark
Requires:	texlive-randbild
Requires:	texlive-randomwalk
Requires:	texlive-reotex
Requires:	texlive-rviewport
Requires:	texlive-sa-tikz
Requires:	texlive-schemabloc
Requires:	texlive-setdeck
Requires:	texlive-smartdiagram
Requires:	texlive-spath3
Requires:	texlive-swimgraf
Requires:	texlive-texdraw
Requires:	texlive-tikz-3dplot
Requires:	texlive-tikz-bayesnet
Requires:	texlive-tikz-cd
Requires:	texlive-tikz-dependency
Requires:	texlive-tikz-inet
Requires:	texlive-tikz-opm
Requires:	texlive-tikz-qtree
Requires:	texlive-tikz-timing
Requires:	texlive-tikzinclude
Requires:	texlive-tikzmark
Requires:	texlive-tikzorbital
Requires:	texlive-tikzpagenodes
Requires:	texlive-tikzpfeile
Requires:	texlive-tikzposter
Requires:	texlive-tikzscale
Requires:	texlive-tikzsymbols
Requires:	texlive-timing-diagrams
Requires:	texlive-tqft
Requires:	texlive-tkz-base
Requires:	texlive-tkz-berge
Requires:	texlive-tkz-doc
Requires:	texlive-tkz-euclide
Requires:	texlive-tkz-fct
Requires:	texlive-tkz-graph
Requires:	texlive-tkz-kiviat
Requires:	texlive-tkz-linknodes
Requires:	texlive-tkz-orm
Requires:	texlive-tkz-tab
Requires:	texlive-tsemlines
Requires:	texlive-tufte-latex
Requires:	texlive-venndiagram
Requires:	texlive-xpicture
Requires:	texlive-xypic
# Not in repos yet
Recommends:	texlive-adigraph
Recommends:	texlive-asypictureb
Recommends:	texlive-beamerswitch
Recommends:	texlive-binarytree
Recommends:	texlive-blochsphere
Recommends:	texlive-blox
Recommends:	texlive-bondgraphs
Recommends:	texlive-callouts
Recommends:	texlive-celtic
Requires:	texlive-ditaa
Requires:	texlive-dynkin-diagrams
Recommends:	texlive-ecgdraw
Requires:	texlive-ellipse
Recommends:	texlive-endofproofwd
Requires:	texlive-euflag
Recommends:	texlive-fitbox
Recommends:	texlive-genealogytree
Recommends:	texlive-getmap
Recommends:	texlive-graph35
Recommends:	texlive-graphicxpsd
Recommends:	texlive-gtrlib-largetrees
Recommends:	texlive-istgame
Recommends:	texlive-ladder
Recommends:	texlive-latex-make
Requires:	texlive-lroundrect
Requires:	texlive-luamesh
Requires:	texlive-luasseq
Requires:	texlive-maker
Recommends:	texlive-milsymb
Recommends:	texlive-mkpic
Recommends:	texlive-penrose
Recommends:	texlive-pgf-cmykshadings
Recommends:	texlive-pgf-spectra
Recommends:	texlive-pgf-umlcd
Recommends:	texlive-pgfornament
Recommends:	texlive-pixelart
Recommends:	texlive-postage
Recommends:	texlive-qcircuit
Recommends:	texlive-quantikz
Requires:	texlive-qrcode
Recommends:	texlive-realhats
Recommends:	texlive-scsnowman
Recommends:	texlive-scratch
Recommends:	texlive-scratch3
Recommends:	texlive-signchart
Recommends:	texlive-spectralsequences
Recommends:	texlive-table-fct
Recommends:	texlive-ticollege
Recommends:	texlive-tipfr
Recommends:	texlive-tikz-dimline
Recommends:	texlive-tikz-feynhand
Recommends:	texlive-tikz-feynman
Recommends:	texlive-tikz-imagelabels
Recommends:	texlive-tikz-kalender
Recommends:	texlive-tikz-karnaugh
Recommends:	texlive-tikz-ladder
Recommends:	texlive-tikz-layers
Recommends:	texlive-tikz-nef
Recommends:	texlive-tikz-network
Recommends:	texlive-tikz-optics
Recommends:	texlive-tikz-page
Recommends:	texlive-tikz-palattice
Recommends:	texlive-tikz-relay
Recommends:	texlive-tikz-sfc
Recommends:	texlive-tikz-truchet
Recommends:	texlive-tikzcodeblocks
Recommends:	texlive-tikzducks
Recommends:	texlive-tikzlings
Recommends:	texlive-tikzmarmots
Recommends:	texlive-tikzpeople
Recommends:	texlive-visualpstricks

%description
Including TikZ, pict, etc., but MetaPost and PStricks are
separate.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17995 |21mr|texlive-collection-pstricks-20190228-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33373
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-pstricks
Epoch:		1
Version:	20190228
Release:	4
Summary:	PSTricks
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-pstricks.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Recommends:	texlive-collection-plaingeneric
Requires:	texlive-auto-pst-pdf
Requires:	texlive-bclogo
Requires:	texlive-makeplot
Requires:	texlive-pdftricks
Requires:	texlive-pedigree-perl
Requires:	texlive-psbao
Requires:	texlive-pst-2dplot
Requires:	texlive-pst-3d
Requires:	texlive-pst-3dplot
Requires:	texlive-pst-abspos
Requires:	texlive-pst-am
Requires:	texlive-pst-asr
Requires:	texlive-pst-bar
Requires:	texlive-pst-barcode
Requires:	texlive-pst-bezier
Requires:	texlive-pst-blur
Requires:	texlive-pst-bspline
Requires:	texlive-pst-calendar
Requires:	texlive-pst-circ
Requires:	texlive-pst-coil
Requires:	texlive-pst-cox
Requires:	texlive-pst-dbicons
Requires:	texlive-pst-diffraction
Requires:	texlive-pst-electricfield
Requires:	texlive-pst-eps
Requires:	texlive-pst-eucl
Requires:	texlive-pst-exa
Requires:	texlive-pst-fill
Requires:	texlive-pst-fr3d
Requires:	texlive-pst-fractal
Requires:	texlive-pst-fun
Requires:	texlive-pst-func
Requires:	texlive-pst-gantt
Requires:	texlive-pst-geo
Requires:	texlive-pst-ghsb
Requires:	texlive-pst-gr3d
Requires:	texlive-pst-grad
Requires:	texlive-pst-graphicx
Requires:	texlive-pst-infixplot
Requires:	texlive-pst-jtree
Requires:	texlive-pst-knot
Requires:	texlive-pst-labo
Requires:	texlive-pst-layout
Requires:	texlive-pst-lens
Requires:	texlive-pst-light3d
Requires:	texlive-pst-magneticfield
Requires:	texlive-pst-math
Requires:	texlive-pst-mirror
Requires:	texlive-pst-node
Requires:	texlive-pst-ob3d
Requires:	texlive-pst-optexp
Requires:	texlive-pst-optic
Requires:	texlive-pst-osci
Requires:	texlive-pst-pad
Requires:	texlive-pst-pdgr
Requires:	texlive-pst-platon
Requires:	texlive-pst-plot
Requires:	texlive-pst-poly
Requires:	texlive-pst-pulley
Requires:	texlive-pst-qtree
Requires:	texlive-pst-rubans
Requires:	texlive-pst-sigsys
Requires:	texlive-pst-slpe
Requires:	texlive-pst-solarsystem
Requires:	texlive-pst-spectra
Requires:	texlive-pst-solides3d
Requires:	texlive-pst-soroban
Requires:	texlive-pst-stru
Requires:	texlive-pst-support
Requires:	texlive-pst-text
Requires:	texlive-pst-thick
Requires:	texlive-pst-tools
Requires:	texlive-pst-tree
Requires:	texlive-pst-tvz
Requires:	texlive-pst-uml
Requires:	texlive-pst-vowel
Requires:	texlive-pst-vue3d
Requires:	texlive-pst2pdf
Requires:	texlive-pstricks
Requires:	texlive-pstricks-add
Requires:	texlive-pstricks_calcnotes
Requires:	texlive-uml
Requires:	texlive-vaucanson-g
Requires:	texlive-vocaltract
Requires:	texlive-dsptricks
# Not in repos yet
Recommends:	texlive-pdftricks2
Recommends:	texlive-pst-arrow
Recommends:	texlive-pst-antiprism
Recommends:	texlive-pst-calculate
Recommends:	texlive-pst-cie
Recommends:	texlive-pst-contourplot
Recommends:	texlive-pst-dart
Recommends:	texlive-pst-feyn
Recommends:	texlive-pst-fit
Recommends:	texlive-pst-geometrictools
Recommends:	texlive-pst-intersect
Recommends:	texlive-pst-lsystem
Recommends:	texlive-pst-marble
Recommends:	texlive-pst-moire
Recommends:	texlive-pst-ode
Recommends:	texlive-pst-ovl
Recommends:	texlive-pst-pdf
Recommends:	texlive-pst-perspective
Recommends:	texlive-pst-poker
Recommends:	texlive-pst-rputover
Recommends:	texlive-pst-shell
Recommends:	texlive-pst-spinner
Recommends:	texlive-pst-spirograph
Recommends:	texlive-pst-vectorian
Recommends:	texlive-pst-vehicle
Recommends:	texlive-pst-venn

%description
PSTricks core and all add-on packages.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17996 |21mr|texlive-collection-publishers-20201114-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 56927
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-publishers
Epoch:		1
Version:	20201114
Release:	1
Summary:	Publisher styles, theses, etc
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-publishers.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-latex
Requires:	texlive-IEEEconf
Requires:	texlive-IEEEtran
Requires:	texlive-aastex
Requires:	texlive-abntex2
Requires:	texlive-acmconf
Requires:	texlive-active-conf
Requires:	texlive-adfathesis
Requires:	texlive-afthesis
Requires:	texlive-aguplus
Requires:	texlive-aiaa
Requires:	texlive-ametsoc
Requires:	texlive-anufinalexam
Requires:	texlive-aomart
Requires:	texlive-apa
Requires:	texlive-apa6
Requires:	texlive-apa6e
Requires:	texlive-arsclassica
Requires:	texlive-articleingud
Requires:	texlive-asaetr
Requires:	texlive-ascelike
Requires:	texlive-beamer-FUBerlin
Requires:	texlive-bgteubner
Requires:	texlive-brandeis-dissertation
Requires:	texlive-cascadilla
Requires:	texlive-chem-journal
Requires:	texlive-classicthesis
Requires:	texlive-cmpj
Requires:	texlive-confproc
Requires:	texlive-dccpaper
Requires:	texlive-ebook
Requires:	texlive-ebsthesis
Requires:	texlive-ejpecp
Requires:	texlive-elbioimp
Requires:	texlive-elsarticle
Requires:	texlive-elteikthesis
Requires:	texlive-erdc
Requires:	texlive-estcpmm
Requires:	texlive-fbithesis
Requires:	texlive-fcltxdoc
Requires:	texlive-gaceta
Requires:	texlive-gatech-thesis
Requires:	texlive-har2nat
Requires:	texlive-hobete
Requires:	texlive-icsv
Requires:	texlive-ieeepes
Requires:	texlive-ijmart
Requires:	texlive-imac
Requires:	texlive-imtekda
Requires:	texlive-jmlr
Requires:	texlive-jpsj
Requires:	texlive-kdgdocs
Requires:	texlive-kluwer
Requires:	texlive-lps
Requires:	texlive-matc3
Requires:	texlive-matc3mem
Requires:	texlive-mentis
Requires:	texlive-msu-thesis
Requires:	texlive-musuos
Requires:	texlive-muthesis
Requires:	texlive-nature
Requires:	texlive-nddiss
Requires:	texlive-nih
Requires:	texlive-nostarch
Requires:	texlive-nrc
Requires:	texlive-onrannual
Requires:	texlive-opteng
Requires:	texlive-philosophersimprint
Requires:	texlive-pittetd
Requires:	texlive-pkuthss
Requires:	texlive-powerdot-FUBerlin
Requires:	texlive-pracjourn
Requires:	texlive-procIAGssymp
Requires:	texlive-proposal
Requires:	texlive-ptptex
Requires:	texlive-psu-thesis
Requires:	texlive-resphilosophica
Requires:	texlive-resumecls
Requires:	texlive-revtex
Requires:	texlive-revtex4
Requires:	texlive-ryethesis
Requires:	texlive-sageep
Requires:	texlive-sapthesis
Requires:	texlive-scrjrnl
Requires:	texlive-seuthesis
Requires:	texlive-soton
Requires:	texlive-spie
Requires:	texlive-sr-vorl
Requires:	texlive-stellenbosch
Requires:	texlive-suftesi
Requires:	texlive-sugconf
Requires:	texlive-tabriz-thesis
Requires:	texlive-texilikechaps
Requires:	texlive-texilikecover
Requires:	texlive-thesis-titlepage-fhac
Requires:	texlive-thuthesis
Requires:	texlive-toptesi
Requires:	texlive-tugboat
Requires:	texlive-tugboat-plain
Requires:	texlive-tui
Requires:	texlive-uaclasses
Requires:	texlive-uafthesis
Requires:	texlive-ucdavisthesis
Requires:	texlive-ucthesis
Requires:	texlive-uestcthesis
Requires:	texlive-uiucredborder
Requires:	texlive-uiucthesis
Requires:	texlive-ulthese
Requires:	texlive-umthesis
Requires:	texlive-umich-thesis
Requires:	texlive-unamthesis
Requires:	texlive-unswcover
Requires:	texlive-ut-thesis
Requires:	texlive-uothesis
Requires:	texlive-uowthesis
Requires:	texlive-uowthesistitlepage
Requires:	texlive-uspatent
Requires:	texlive-uwthesis
Requires:	texlive-vancouver
Requires:	texlive-wsemclassic
Requires:	texlive-xcookybooky
Requires:	texlive-york-thesis
Requires:	texlive-emisa
Requires:	texlive-etsvthor

# Not in repos yet
Recommends: texlive-abnt
Recommends: texlive-acmart
Recommends: texlive-afparticle
Recommends: texlive-bangorcsthesis
Recommends: texlive-bangorexam
Recommends: texlive-bath-bst
Recommends: texlive-beamer-verona
Recommends: texlive-beilstein
Recommends: texlive-br-lex
Recommends: texlive-brandeis-problemset
Recommends: texlive-cesenaexam
Recommends: texlive-chs-physics-report
Recommends: texlive-cje
Recommends: texlive-cleanthesis
Recommends: texlive-ecothesis
Recommends: texlive-ekaia
Recommends: texlive-facture-belge-simple-sans-tva
Recommends: texlive-fcavtex
Recommends: texlive-fei
Recommends: texlive-ftc-notebook
Recommends: texlive-gammas
Recommends: texlive-gradstudentresume
Recommends: texlive-grant
Recommends: texlive-gsemthesis
Recommends: texlive-gzt
Recommends: texlive-h2020proposal
Recommends: texlive-hagenberg-thesis
Recommends: texlive-hecthese
Recommends: texlive-hithesis
Recommends: texlive-hustthesis
Recommends: texlive-ijsra
Recommends: texlive-iodhbwm
Recommends: texlive-iscram
Recommends: texlive-jacow
Recommends: texlive-jnuexam
Recommends: texlive-ksp-thesis
Recommends: texlive-ku-template
Recommends: texlive-langsci
Recommends: texlive-limecv
Recommends: texlive-lion-msc
Recommends: texlive-llncsconf
Recommends: texlive-lni
Recommends: texlive-mcmthesis
Recommends: texlive-mnras
Recommends: texlive-modeles-factures-belges-assocs
Recommends: texlive-mynsfc
Recommends: texlive-navydocs
Recommends: texlive-ndsu-thesis
Recommends: texlive-novel
Recommends: texlive-nwejm
Recommends: texlive-nihbiosketch
Recommends: texlive-powerdot-tuliplab
Recommends: texlive-rutitlepage
Recommends: texlive-ryersonsgsthesis
Recommends: texlive-schule
Recommends: texlive-scientific-thesis-cover
Recommends: texlive-sduthesis
Recommends: texlive-seuthesix
Recommends: texlive-sphdthesis
Recommends: texlive-srdp-mathematik
Recommends: texlive-technion-thesis-template
Recommends: texlive-thesis-ekf
Recommends: texlive-thesis-gwu
Recommends: texlive-thesis-qom
Recommends: texlive-thucoursework
Recommends: texlive-timbreicmc
Recommends: texlive-tlc-article
Recommends: texlive-topletter
Recommends: texlive-tudscr
Recommends: texlive-turabian
Recommends: texlive-uantwerpendocs
Recommends: texlive-ucbthesis
Recommends: texlive-ucsmonograph
Recommends: texlive-uhhassignment
Recommends: texlive-umbclegislation
Recommends: texlive-unamth-template
Recommends: texlive-unitn-bimrep
Recommends: texlive-univie-ling
Recommends: texlive-urcls
Recommends: texlive-utexasthesis
Recommends: texlive-xduthesis
Recommends: texlive-yathesis

# These are in repos, but doubt that we need them by default
# so they are in contrib
Recommends: texlive-aucklandthesis
Recommends: texlive-cquthesis
Recommends: texlive-dithesis
Recommends: texlive-mucproc
Recommends: texlive-mugsthesis

%description
TeXLive collection-publishers package.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17997 |21mr|texlive-collection-publishers-20201114-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 56927
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-publishers
Epoch:		1
Version:	20201114
Release:	2
Summary:	Publisher styles, theses, etc
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-publishers.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-latex
Requires:	texlive-IEEEconf
Requires:	texlive-IEEEtran
Requires:	texlive-aastex
Requires:	texlive-abntex2
Requires:	texlive-acmconf
Requires:	texlive-active-conf
Requires:	texlive-adfathesis
Requires:	texlive-afthesis
Requires:	texlive-aguplus
Requires:	texlive-aiaa
Requires:	texlive-ametsoc
Requires:	texlive-anufinalexam
Requires:	texlive-aomart
Requires:	texlive-apa
Requires:	texlive-apa6
Requires:	texlive-apa6e
Requires:	texlive-arsclassica
Requires:	texlive-articleingud
Requires:	texlive-asaetr
Requires:	texlive-ascelike
Requires:	texlive-beamer-FUBerlin
Requires:	texlive-bgteubner
Requires:	texlive-brandeis-dissertation
Requires:	texlive-cascadilla
Requires:	texlive-chem-journal
Requires:	texlive-classicthesis
Requires:	texlive-cmpj
Requires:	texlive-confproc
Requires:	texlive-dccpaper
Requires:	texlive-ebook
Requires:	texlive-ebsthesis
Requires:	texlive-ejpecp
Requires:	texlive-elbioimp
Requires:	texlive-elsarticle
Requires:	texlive-elteikthesis
Requires:	texlive-erdc
Requires:	texlive-estcpmm
Requires:	texlive-fbithesis
Requires:	texlive-fcltxdoc
Requires:	texlive-gaceta
Requires:	texlive-gatech-thesis
Requires:	texlive-har2nat
Requires:	texlive-hobete
Requires:	texlive-icsv
Requires:	texlive-ieeepes
Requires:	texlive-ijmart
Requires:	texlive-imac
Requires:	texlive-imtekda
Requires:	texlive-jmlr
Requires:	texlive-jpsj
Requires:	texlive-kdgdocs
Requires:	texlive-kluwer
Requires:	texlive-lps
Requires:	texlive-matc3
Requires:	texlive-matc3mem
Requires:	texlive-mentis
Requires:	texlive-msu-thesis
Requires:	texlive-musuos
Requires:	texlive-muthesis
Requires:	texlive-nature
Requires:	texlive-nddiss
Requires:	texlive-nih
Requires:	texlive-nostarch
Requires:	texlive-nrc
Requires:	texlive-onrannual
Requires:	texlive-opteng
Requires:	texlive-philosophersimprint
Requires:	texlive-pittetd
Requires:	texlive-pkuthss
Requires:	texlive-powerdot-FUBerlin
Requires:	texlive-pracjourn
Requires:	texlive-procIAGssymp
Requires:	texlive-proposal
Requires:	texlive-ptptex
Requires:	texlive-psu-thesis
Requires:	texlive-resphilosophica
Requires:	texlive-resumecls
Requires:	texlive-revtex
Requires:	texlive-revtex4
Requires:	texlive-ryethesis
Requires:	texlive-sageep
Requires:	texlive-sapthesis
Requires:	texlive-scrjrnl
Requires:	texlive-seuthesis
Requires:	texlive-soton
Requires:	texlive-spie
Requires:	texlive-sr-vorl
Requires:	texlive-stellenbosch
Requires:	texlive-suftesi
Requires:	texlive-sugconf
Requires:	texlive-tabriz-thesis
Requires:	texlive-texilikechaps
Requires:	texlive-texilikecover
Requires:	texlive-thesis-titlepage-fhac
Requires:	texlive-thuthesis
Requires:	texlive-toptesi
Requires:	texlive-tugboat
Requires:	texlive-tugboat-plain
Requires:	texlive-tui
Requires:	texlive-uaclasses
Requires:	texlive-uafthesis
Requires:	texlive-ucdavisthesis
Requires:	texlive-ucthesis
Requires:	texlive-uestcthesis
Requires:	texlive-uiucredborder
Requires:	texlive-uiucthesis
Requires:	texlive-ulthese
Requires:	texlive-umthesis
Requires:	texlive-umich-thesis
Requires:	texlive-unamthesis
Requires:	texlive-unswcover
Requires:	texlive-ut-thesis
Requires:	texlive-uothesis
Requires:	texlive-uowthesis
Requires:	texlive-uowthesistitlepage
Requires:	texlive-uspatent
Requires:	texlive-uwthesis
Requires:	texlive-vancouver
Requires:	texlive-wsemclassic
Requires:	texlive-xcookybooky
Requires:	texlive-york-thesis
Requires:	texlive-emisa
Requires:	texlive-etsvthor
Requires: texlive-abnt
Requires: texlive-acmart
Requires: texlive-afparticle
Requires: texlive-gsemthesis

# Not in repos yet
Recommends: texlive-beilstein
Recommends: texlive-br-lex
Recommends: texlive-chs-physics-report
Recommends: texlive-ekaia
Recommends: texlive-gsemthesis
Recommends: texlive-hecthese
Recommends: texlive-hithesis
Recommends: texlive-hustthesis
Recommends: texlive-ijsra
Recommends: texlive-iodhbwm
Recommends: texlive-ksp-thesis
Recommends: texlive-ku-template
Recommends: texlive-langsci
Recommends: texlive-ndsu-thesis
Recommends: texlive-sduthesis
Recommends: texlive-seuthesix
Recommends: texlive-sphdthesis
Recommends: texlive-srdp-mathematik
Recommends: texlive-technion-thesis-template
Recommends: texlive-thesis-ekf
Recommends: texlive-thesis-gwu
Recommends: texlive-thesis-qom
Recommends: texlive-thucoursework
Recommends: texlive-uantwerpendocs

# These are in repos, but doubt that we need them by default
# so they are in contrib
Recommends: texlive-aucklandthesis
Recommends: texlive-bangorcsthesis
Recommends: texlive-bangorexam
Recommends: texlive-bath-bst
Recommends: texlive-beamer-verona
Recommends: texlive-brandeis-problemset
Recommends: texlive-cesenaexam
Recommends: texlive-cje
Recommends: texlive-cquthesis
Recommends: texlive-dithesis
Recommends: texlive-cleanthesis
Recommends: texlive-ecothesis
Recommends: texlive-facture-belge-simple-sans-tva
Recommends: texlive-fcavtex
Recommends: texlive-fei
Recommends: texlive-ftc-notebook
Recommends: texlive-gradstudentresume
Recommends: texlive-gammas
Recommends: texlive-grant
Recommends: texlive-gzt
Recommends: texlive-h2020proposal
Recommends: texlive-hagenberg-thesis
Recommends: texlive-iscram
Recommends: texlive-jacow
Recommends: texlive-jnuexam
Recommends: texlive-limecv
Recommends: texlive-lion-msc
Recommends: texlive-llncsconf
Recommends: texlive-lni
Recommends: texlive-mucproc
Recommends: texlive-mugsthesis
Recommends: texlive-mcmthesis
Recommends: texlive-mnras
Recommends: texlive-modeles-factures-belges-assocs
Recommends: texlive-mynsfc
Recommends: texlive-navydocs
Recommends: texlive-nihbiosketch
Recommends: texlive-novel
Recommends: texlive-nwejm
Recommends: texlive-powerdot-tuliplab
Recommends: texlive-rutitlepage
Recommends: texlive-ryersonsgsthesis
Recommends: texlive-timbreicmc
Recommends: texlive-topletter
Recommends: texlive-schule
Recommends: texlive-scientific-thesis-cover
Recommends: texlive-tlc-article
Recommends: texlive-tudscr
Recommends: texlive-turabian
Recommends: texlive-ucbthesis
Recommends: texlive-umbclegislation
Recommends: texlive-unamth-template
Recommends: texlive-unitn-bimrep
Recommends: texlive-univie-ling
Recommends: texlive-urcls
Recommends: texlive-utexasthesis
Recommends: texlive-xduthesis
Recommends: texlive-yathesis
Recommends: texlive-ucsmonograph
Recommends: texlive-uhhassignment

%description
TeXLive collection-publishers package.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17998 |21mr|texlive-collection-texinfo-20120224-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15216
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-texinfo
Epoch:		1
Version:	20120224
Release:	6
Summary:	GNU Texinfo
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-texinfo.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-texinfo
Requires:	texlive-collection-basic

%description
TeX macros for the GNU Texinfo documentation system.  The
programs and documentation are no longer distributed with TeX
Live; get the original Texinfo package for your system.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 17999 |21mr|texlive-collection-xetex-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30396
# category Collection
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-collection-xetex
Epoch:		1
Version:	20190228
Release:	2
Summary:	XeTeX and packages
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/collection-xetex.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-arabxetex
Requires:	texlive-fixlatvian
Requires:	texlive-fontbook
Requires:	texlive-fontwrap
Requires:	texlive-philokalia
Requires:	texlive-ptext
Requires:	texlive-realscripts
Requires:	texlive-ucharclasses
Requires:	texlive-unisugar
Requires:	texlive-xecjk
Requires:	texlive-xecolor
Requires:	texlive-xecyr
Requires:	texlive-xeindex
Requires:	texlive-xepersian
Requires:	texlive-xesearch
Requires:	texlive-xetex
Requires:	texlive-xetex-itrans
Requires:	texlive-xetex-pstricks
Requires:	texlive-xetex-tibetan
Requires:	texlive-xetexconfig
Requires:	texlive-xetexfontinfo
Requires:	texlive-xetexko
Requires:	texlive-xevlna
Requires: texlive-font-change-xetex
# These are in contrib
Recommends: texlive-awesomebox
Recommends: texlive-bidishadowtext
Recommends: texlive-bidipresentation
Recommends: texlive-na-position
Recommends: texlive-quran
Recommends: texlive-xechangebar
Recommends: texlive-xespotcolor
Recommends: texlive-unicode-bidi
Recommends: texlive-xebaposter
Recommends: texlive-simple-thesis-dissertation
Recommends: texlive-tetragonos
# These are not built yet
Recommends: texlive-bidi-atbegshi
Recommends: texlive-bidicontour
Recommends: texlive-bidipagegrid
Recommends: texlive-businesscard-qrcode
Recommends: texlive-cqubeamer
Recommends: texlive-interchar
Recommends: texlive-quran-de
Recommends: texlive-simple-resume-cv

%description
Packages for XeTeX, the Unicode/OpenType-enabled TeX by
Jonathan Kew, http://tug.org/xetex.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18000 |21mr|texlive-colophon-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-colophon
Version:	1.1
Release:	1
Summary:	Colophons are a once-common design device by which a book (or document) designer gave some information to his readers about the design and makeup of the text 
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/colophon
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/colophon.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/colophon.doc.tar.xz
Source2:        http://ctan.altspu.ru/systems/texlive/tlnet/archive/colophon.source.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea
Requires: texlive-actuarialangle

%description

The colophon package provides commands for producing a
*colophon*, or that bit at the end of many books describing
the production process, along with the font, size, leading,
and measure.  Every aspect of its production is easily
configured.
#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/colophon
%doc /usr/share/texmf-dist/doc/latex/colophon
# - source
/usr/share/texmf-dist/source/latex/colophon

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc source %{buildroot}/usr/share/texmf-dist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18001 |21mr|texlive-colordoc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18270
# category Package
# catalog-ctan /macros/latex/contrib/colordoc
# catalog-date 2010-06-06 13:50:32 +0200
# catalog-license lppl1
# catalog-version undef
Name:		texlive-colordoc
Version:	20190228
Release:	1
Summary:	Coloured syntax highlights in documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/colordoc
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colordoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colordoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colordoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is used in documentation files (that use the doc
package); with it the code listings will highlight (for
example) pairs of curly braces with matching colors. Other
delimiters like \if ... \fi, are highlighted, as are the names
of new commands. All this makes code a little more readable,
and helps during process of writing. Three options are
provided, including a non-color option designed for printing
(which numbers delimiters and underlines new commands).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/colordoc/colordoc.sty
%doc %{_texmfdistdir}/doc/latex/colordoc/README
%doc %{_texmfdistdir}/doc/latex/colordoc/colordoc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/colordoc/colordoc.dtx
%doc %{_texmfdistdir}/source/latex/colordoc/colordoc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18002 |21mr|texlive-colorinfo-0.3c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/colorinfo
# catalog-date 2007-02-03 12:09:11 +0100
# catalog-license lppl
# catalog-version 0.3c
Name:		texlive-colorinfo
Version:	0.3c
Release:	7
Summary:	Retrieve colour model and values for defined colours
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/colorinfo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorinfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorinfo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive colorinfo package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/colorinfo/colorinfo.sty
%doc %{_texmfdistdir}/doc/latex/colorinfo/README
%doc %{_texmfdistdir}/doc/latex/colorinfo/colorinfo-test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18003 |21mr|texlive-coloring-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-coloring
Version:	0.2
Release:	1
Summary:	This package makes it possible to define colors automatically by their names 
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/coloring
License:	The LATEX Project Public License 1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/coloring.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/coloring.doc.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea
Requires: texlive-actuarialangle

%description
Package coloring: define missing colors by their names
#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/coloring
%doc /usr/share/texmf-dist/doc/latex/coloring

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc %{buildroot}/usr/share/texmf-dist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18004 |21mr|texlive-colorspace-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-colorspace
Version:	1.3
Release:	1
Summary:	The package provides PDF color spaces
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/colorspace
License:	MIT
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/colorspace.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/colorspace.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides some tools related to PDF color spaces and color management. 
It requires xcolor, which is loaded if it has not been before.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18005 |21mr|texlive-colortab-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22155
# category Package
# catalog-ctan /macros/generic/colortab
# catalog-date 2010-09-08 11:26:01 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-colortab
Version:	1.0
Release:	7
Summary:	Shade cells of tables and halign
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/colortab
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colortab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colortab.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Lets you shade or colour the cells in the alignment
environments such as \halign and LaTeX's tabular and array
environments. The colortbl or package is to be preferred today
with LaTeX (it assures compatibility with the longtable
package, which is no longer true with colortab); another modern
option is the table-colouring option of the xcolor. However,
colortab remains an adequate solution for use with Plain TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/colortab/colortab.sty
%{_texmfdistdir}/tex/generic/colortab/colortab.tex
%doc %{_texmfdistdir}/doc/generic/colortab/Changes
%doc %{_texmfdistdir}/doc/generic/colortab/Makefile
%doc %{_texmfdistdir}/doc/generic/colortab/colortab-doc.pdf
%doc %{_texmfdistdir}/doc/generic/colortab/colortab-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18006 |21mr|texlive-colortbl-1.0a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-colortbl
Version:	1.0a
Release:	2
Summary:	Add colour to LaTeX tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/colortbl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colortbl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colortbl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colortbl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows rows and columns to be coloured, and even
individual cells.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/colortbl/colortbl.sty
%doc %{_texmfdistdir}/doc/latex/colortbl/README
%doc %{_texmfdistdir}/doc/latex/colortbl/colortbl-DE.pdf
%doc %{_texmfdistdir}/doc/latex/colortbl/colortbl-DE.tex
%doc %{_texmfdistdir}/doc/latex/colortbl/colortbl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/colortbl/colortbl.dtx
%doc %{_texmfdistdir}/source/latex/colortbl/colortbl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18007 |21mr|texlive-colorwav-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/colorwav
# catalog-date 2008-08-18 10:38:42 +0200
# catalog-license lgpl
# catalog-version 1.0
Name:		texlive-colorwav
Version:	1.0
Release:	7
Summary:	Colours by wavelength of visible light
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/colorwav
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorwav.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorwav.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorwav.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to obtain an RGB value (suitable
for use in the color package) from a wavelength of light. The
default unit is nanometres, but other units may be used. Note
that this function is also available within the xcolor.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/colorwav/colorwav.sty
%doc %{_texmfdistdir}/doc/latex/colorwav/README
%doc %{_texmfdistdir}/doc/latex/colorwav/colorwav.pdf
#- source
%doc %{_texmfdistdir}/source/latex/colorwav/colorwav.dtx
%doc %{_texmfdistdir}/source/latex/colorwav/colorwav.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18008 |21mr|texlive-colorweb-1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31490
# category Package
# catalog-ctan /macros/latex/contrib/colorweb
# catalog-date 2013-08-21 17:22:18 +0200
# catalog-license lppl1.3
# catalog-version 1.3
Name:		texlive-colorweb
Version:	1.3
Release:	10
Summary:	Extend the color package colour space
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/colorweb
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorweb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorweb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colorweb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes the 216 "web-safe colours" available to the
standard color package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/colorweb/colorweb.sty
%doc %{_texmfdistdir}/doc/latex/colorweb/README
%doc %{_texmfdistdir}/doc/latex/colorweb/colorweb.pdf
%doc %{_texmfdistdir}/doc/latex/colorweb/colorwebfull.pdf
%doc %{_texmfdistdir}/doc/latex/colorweb/colorwebuser.pdf
%doc %{_texmfdistdir}/doc/latex/colorweb/descript.ion
#- source
%doc %{_texmfdistdir}/source/latex/colorweb/colorweb.dtx
%doc %{_texmfdistdir}/source/latex/colorweb/colorweb.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18009 |21mr|texlive-colourchange-1.22-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21741
# category Package
# catalog-ctan /macros/latex/contrib/colourchange
# catalog-date 2011-03-16 12:04:55 +0100
# catalog-license gpl3
# catalog-version 1.22
Name:		texlive-colourchange
Version:	1.22
Release:	7
Summary:	Colourchange
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/colourchange
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colourchange.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/colourchange.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows you to change the colour of the structural
elements (inner theme and outer theme) of your beamer
presentation during the presentation. There is a manual option
but there is also the option to have your structure colour
change from one colour to another as a function of how far
through the presentation you are.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/colourchange/colourchange.sty
%doc %{_texmfdistdir}/doc/latex/colourchange/README
%doc %{_texmfdistdir}/doc/latex/colourchange/colourchangedoc.pdf
%doc %{_texmfdistdir}/doc/latex/colourchange/colourchangedoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18010 |21mr|texlive-combelow-0.99f-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18462
# category Package
# catalog-ctan /macros/latex/contrib/combelow
# catalog-date 2010-05-24 13:39:10 +0200
# catalog-license lppl1.3
# catalog-version 0.99f
Name:		texlive-combelow
Version:	0.99f
Release:	7
Summary:	Typeset "comma-below" letters, as in Romanian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/combelow
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/combelow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/combelow.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a command \cb that positions a comma below
a letter, as required (for example) in Romanian typesetting.
The command is robust, but interferes with hyphenation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/combelow/combelow.sty
%doc %{_texmfdistdir}/doc/latex/combelow/README
%doc %{_texmfdistdir}/doc/latex/combelow/combelow.bib
%doc %{_texmfdistdir}/doc/latex/combelow/combelow.pdf
%doc %{_texmfdistdir}/doc/latex/combelow/combelow.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18011 |21mr|texlive-combine-0.7a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19361
# category Package
# catalog-ctan /macros/latex/contrib/combine
# catalog-date 2010-07-10 16:18:55 +0200
# catalog-license lppl1.3
# catalog-version 0.7a
Name:		texlive-combine
Version:	0.7a
Release:	7
Summary:	Bundle individual documents into a single document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/combine
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/combine.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/combine.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/combine.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The combine class lets you bundle individual documents into a
single document, such as when preparing a conference
proceedings. The auxiliary combinet package puts the titles and
authors from \maketitle commands into the main document's Table
of Contents. The package cooperates with the abstract and
titling packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/combine/combcite.sty
%{_texmfdistdir}/tex/latex/combine/combine.cls
%{_texmfdistdir}/tex/latex/combine/combinet.sty
%{_texmfdistdir}/tex/latex/combine/combnat.sty
%doc %{_texmfdistdir}/doc/latex/combine/README
%doc %{_texmfdistdir}/doc/latex/combine/combine.pdf
#- source
%doc %{_texmfdistdir}/source/latex/combine/combine.dtx
%doc %{_texmfdistdir}/source/latex/combine/combine.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18012 |21mr|texlive-combinedgraphics-0.2.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27198
# category Package
# catalog-ctan /macros/latex/contrib/combinedgraphics
# catalog-date 2012-07-16 18:35:20 +0200
# catalog-license gpl
# catalog-version 0.2.2
Name:		texlive-combinedgraphics
Version:	0.2.2
Release:	6
Summary:	Include graphic (EPS or PDF)/LaTeX combinations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/combinedgraphics
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/combinedgraphics.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/combinedgraphics.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/combinedgraphics.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a macro (\includecombinedgraphics) for
the inclusion of combined EPS/LaTeX and PDF/LaTeX graphics (an
export format of Gnuplot, Xfig, and maybe other programs).
Instead of including the graphics with a simple \input, the
\includecombinedgraphics macro has some comforts: - changing
the font and color of the text of the LaTeX part; - rescaling
the graphics without affecting the font of the LaTeX part; -
automatic inclusion of the vector graphics part, as far as
LaTeX part does not do it (e.g., for files exported from
Gnuplot before version 4.2); and - rescaling and rotating of
complete graphics (similar to \includegraphics from the
graphicx package).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/combinedgraphics/combinedgraphics.sty
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/COPYING
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/Makefile
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/README
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/combinedgraphics.pdf
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/Makefile
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/combinedgraphics_test.pdf
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/combinedgraphics_test.tex
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/gnuplot42.eps
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/gnuplot42.pdf
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/gnuplot42.plt
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/gnuplot42.tex
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/xfig325.eps
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/xfig325.fig
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/xfig325.pdf
%doc %{_texmfdistdir}/doc/latex/combinedgraphics/test/xfig325.tex
#- source
%doc %{_texmfdistdir}/source/latex/combinedgraphics/combinedgraphics.dtx
%doc %{_texmfdistdir}/source/latex/combinedgraphics/combinedgraphics.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18013 |21mr|texlive-comma-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18259
# category Package
# catalog-ctan /macros/latex/contrib/comma
# catalog-date 2010-05-23 19:54:42 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-comma
Version:	1.2
Release:	7
Summary:	Formats a number by inserting commas
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/comma
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comma.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comma.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A flexible package that allows commas (or anything else) to be
inserted every three digits in a number, as in 1,234.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/comma/comma.sty
%doc %{_texmfdistdir}/doc/latex/comma/README
%doc %{_texmfdistdir}/doc/latex/comma/comma.pdf
%doc %{_texmfdistdir}/doc/latex/comma/comma.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18014 |21mr|texlive-commado-r0.11a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28419
# category Package
# catalog-ctan /macros/generic/commado
# catalog-date 2012-12-02 13:05:20 +0100
# catalog-license lppl1.3
# catalog-version 0.11
Name:		texlive-commado
Version:	r0.11a
Release:	2
Summary:	Expandable iteration on comma-separated and filename lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/commado
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/commado.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/commado.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/commado.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides two packages: commado and filesdo. The
package commado provides the command \DoWithCSL:
\DoWithCSL{cmd}{list} applies an existing one-parameter macro
cmd to each item in a list list in which terms are separated by
commas. The package filesdo provides the command
\DoWithBasesExts: \DoWithBasesExts{cmd}{bases}{exts} which runs
the single parameter command cmd on each file whose base and
extension are respectively from the comma-separated lists bases
and exts. These 'loop'-like commands are (themselves) entirely
expandable. The packages rely on packages plainpkg, and
stacklet.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/commado/commado.RLS
%{_texmfdistdir}/tex/generic/commado/commado.sty
%{_texmfdistdir}/tex/generic/commado/filesdo.sty
%doc %{_texmfdistdir}/doc/generic/commado/README
%doc %{_texmfdistdir}/doc/generic/commado/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/generic/commado/commado.pdf
#- source
%doc %{_texmfdistdir}/source/generic/commado/commado.tex
%doc %{_texmfdistdir}/source/generic/commado/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18015 |21mr|texlive-commedit-1.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-commedit
Version:	1.02
Release:	1
Summary:	The package is intended for commented editions
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/commedit
License:	LPPL
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/commedit.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/commedit.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/commedit.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is intended for commented editions. 
An example of commented edition is a teacher's book based on a student's textbook. 
Each page of a teacher's book is a page from the textbook and comments for the teacher.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18016 |21mr|texlive-comment-3.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-comment
Version:	3.8
Release:	2
Summary:	Selectively include/excludes portions of text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/comment
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comment.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comment.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Selectively include/exclude pieces of text, allowing the user
to define new, separately controlled, comment versions. All
text between \comment ... \endcomment or \begin{comment} ...
\end{comment} is discarded. The opening and closing commands
should appear on a line of their own. No starting spaces,
nothing after it. This environment should work with arbitrary
amounts of comment, and the comment can be arbitrary text.
Other 'comment' environments are defined and
selected/deselected with \includecomment{versiona} and
\excludecoment{versionb} These environments are used as
\versiona ... \endversiona or \begin{versiona} ...
\end{versiona} with the opening and closing commands again on a
line of their own.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/comment
%doc %{_texmfdistdir}/doc/latex/comment

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18017 |21mr|texlive-competences-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-competences
Version:	1.0
Release:	1
Summary:	Track skills of classroom checks
Group:		Publishing
URL:		https://ctan.org/pkg/competences
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/competences.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/competences.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/competences.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is an attempt to track skills assessed during a
classroom check. Each question can be associated with one or
more skills and be assigned a number of points to be earned. At
the end of the text, a table set summarizes the skills
assessed, and in what proportions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18018 |21mr|texlive-complexity-0.81a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/complexity
# catalog-date 2007-02-03 21:01:24 +0100
# catalog-license lppl
# catalog-version 0.76
Name:		texlive-complexity
Version:	0.81a
Release:	2
Summary:	Computational complexity class names
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/complexity
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/complexity.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/complexity.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Complexity is a LaTeX package that defines commands to typeset
Computational Complexity Classes such as $\P$ and $\NP$ (as
well as hundreds of others). It also offers several options
including which font classes are typeset in and how many are
defined (all of them or just the basic, most commonly used
ones). The package has no dependencies other than the standard
ifthen package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/complexity/complexity.sty
%{_texmfdistdir}/tex/latex/complexity/mycomplexity.sty
%doc %{_texmfdistdir}/doc/latex/complexity/README
%doc %{_texmfdistdir}/doc/latex/complexity/complexity.pdf
%doc %{_texmfdistdir}/doc/latex/complexity/complexity.tex
%doc %{_texmfdistdir}/doc/latex/complexity/tableofclasses.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18019 |21mr|texlive-components-of-TeX-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/components-of-TeX
# catalog-date 2009-01-09 17:16:29 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-components-of-TeX
Version:	20190228
Release:	1
Summary:	Components of TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/components-of-TeX
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/components-of-TeX.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/components-of-TeX.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
An introduction to the components and files users of TeX may
encounter.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/components-of-TeX/README
%doc %{_texmfdistdir}/doc/generic/components-of-TeX/etexkomp.tex
%doc %{_texmfdistdir}/doc/generic/components-of-TeX/figkomp.tex
%doc %{_texmfdistdir}/doc/generic/components-of-TeX/figtotal.tex
%doc %{_texmfdistdir}/doc/generic/components-of-TeX/names.sty
%doc %{_texmfdistdir}/doc/generic/components-of-TeX/texrep.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18020 |21mr|texlive-comprehensive-12.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-comprehensive
Version:	12.3
Release:	2
Summary:	Symbols accessible from LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/symbols/comprehensive
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comprehensive.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/comprehensive.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Around 5000 symbols are listed as a set of tables. The tables
of symbols are ordered in a logical way (the document begins
with a 'frequently requested symbols' list), the aim being to
make the document a convenient way of looking up symbols.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/comprehensive

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18021 |21mr|texlive-computational-complexity-2.25f-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-computational-complexity
Version:	2.25f
Release:	2
Summary:	Class for the journal Computational Complexity
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/computational-complexity
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/computational-complexity.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/computational-complexity.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/computational-complexity.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The LaTeX2e class cc was written for the journal Computational
Complexity, and it can also be used for a lot of other
articles. You may like it since it contains a lot of features
as more intelligent references, a set of theorem definitions,
an algorithm environment, ... The class requires natbib.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/computational-complexity/README
%doc %{_texmfdistdir}/doc/latex/computational-complexity/cc-journals.bib
%{_texmfdistdir}/bibtex/bst/computational-complexity/cc.bst
%{_texmfdistdir}/bibtex/bst/computational-complexity/cc2.bst
%{_texmfdistdir}/tex/latex/computational-complexity/cc-cls.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cc.cls
%{_texmfdistdir}/tex/latex/computational-complexity/cc2cite.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cc4amsart.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cc4apjrnl.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cc4elsart.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cc4jT.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cc4llncs.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cc4siamltex.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cc4svjour.sty
%{_texmfdistdir}/tex/latex/computational-complexity/ccalgo.sty
%{_texmfdistdir}/tex/latex/computational-complexity/ccaux.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cccite.sty
%{_texmfdistdir}/tex/latex/computational-complexity/ccdbs.sty
%{_texmfdistdir}/tex/latex/computational-complexity/cclayout.sty
%{_texmfdistdir}/tex/latex/computational-complexity/ccproof.sty
%{_texmfdistdir}/tex/latex/computational-complexity/ccqed.sty
%{_texmfdistdir}/tex/latex/computational-complexity/ccref.sty
%{_texmfdistdir}/tex/latex/computational-complexity/ccreltx.sty
%{_texmfdistdir}/tex/latex/computational-complexity/ccthm.sty
%{_texmfdistdir}/tex/latex/computational-complexity/relabel.sty
%{_texmfdistdir}/tex/latex/computational-complexity/thcc.sty
%doc %{_texmfdistdir}/doc/latex/computational-complexity/cc-cls-inline.tex
%doc %{_texmfdistdir}/doc/latex/computational-complexity/cc-portability-frame.tex
%doc %{_texmfdistdir}/doc/latex/computational-complexity/cc.pdf
%doc %{_texmfdistdir}/doc/latex/computational-complexity/cc2.dbj
%doc %{_texmfdistdir}/doc/latex/computational-complexity/ccquickref.tex
%doc %{_texmfdistdir}/doc/latex/computational-complexity/cctemplate.tex
#- source
%doc %{_texmfdistdir}/source/latex/computational-complexity/cc.dtx
%doc %{_texmfdistdir}/source/latex/computational-complexity/cc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18022 |21mr|texlive-concepts-0.0.5r1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29020
# category Package
# catalog-ctan /macros/latex/contrib/concepts
# catalog-date 2012-12-31 10:20:52 +0100
# catalog-license lppl
# catalog-version 0.0.5-r1
Name:		texlive-concepts
Version:	0.0.5r1
Release:	12
Summary:	Keeping track of formal 'concepts' for a particular field
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/concepts
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concepts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concepts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package helps to keep track of formal 'concepts' for a
specific field or document. This is particularly useful for
scientific papers (for example, in physics, mathematics or
computer science), which may introduce several concepts (with
their own symbols). The package's commands allow the user to
define a concept (typically, near its first use), and will
ensure consistent use throughout the document. The package
depends on several other packages; while these are fairly
common packages, the user should check the package's README
file for the complete list.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/concepts/concepts.sty
%doc %{_texmfdistdir}/doc/latex/concepts/README
%doc %{_texmfdistdir}/doc/latex/concepts/concepts.pdf
%doc %{_texmfdistdir}/doc/latex/concepts/concepts.tex
%doc %{_texmfdistdir}/doc/latex/concepts/dry.sty
%doc %{_texmfdistdir}/doc/latex/concepts/packagedoc.cls
%doc %{_texmfdistdir}/doc/latex/concepts/with.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18023 |21mr|texlive-concprog-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18791
# category Package
# catalog-ctan /macros/latex/contrib/concprog
# catalog-date 2007-01-01 11:39:06 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-concprog
Version:	20190228
Release:	1
Summary:	Concert programmes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/concprog
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concprog.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concprog.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class which provides the necessary macros to prepare a
(classical) concert programme; a sample is provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/concprog/ConcProg.cls
%doc %{_texmfdistdir}/doc/latex/concprog/program.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18024 |21mr|texlive-concrete-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/concrete
# catalog-date 2006-12-08 15:31:01 +0100
# catalog-license knuth
# catalog-version undef
Name:		texlive-concrete
Version:	20190228
Release:	1
Summary:	Concrete Roman fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/concrete
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concrete.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/concrete.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Concrete Roman fonts, designed by Donald E. Knuth, originally
for use with Euler mathematics fonts. Alternative mathematics
fonts, based on the concrete 'parameter set' are available as
the concmath fonts bundle. LaTeX support is offered by the
beton, concmath and ccfonts packages. T1- and TS1-encoded
versions of the fonts are available in the ecc bundle, and
Adobe Type 1 versions of the ecc fonts are part of the cm-super
bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/concrete/cccsc10.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccmi10.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccmic9.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccr10.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccr5.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccr6.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccr7.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccr8.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccr9.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccsl10.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccsl9.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccslc9.mf
%{_texmfdistdir}/fonts/source/public/concrete/ccti10.mf
%{_texmfdistdir}/fonts/source/public/concrete/odigs.mf
%{_texmfdistdir}/fonts/tfm/public/concrete/cccsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccmic9.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccr10.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccr5.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccr6.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccr7.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccr8.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccr9.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccslc9.tfm
%{_texmfdistdir}/fonts/tfm/public/concrete/ccti10.tfm
%doc %{_texmfdistdir}/doc/fonts/concrete/CATALOGUE
%doc %{_texmfdistdir}/doc/fonts/concrete/Makefile
%doc %{_texmfdistdir}/doc/fonts/concrete/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18025 |21mr|texlive-confproc-0.8-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/conferences/confproc
# catalog-date 2012-06-27 14:08:30 +0200
# catalog-license lppl
# catalog-version 0.8
Name:		texlive-confproc
Version:	0.8
Release:	12
Summary:	A set of tools for generating conference proceedings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/conferences/confproc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/confproc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/confproc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/confproc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The confproc collection comprises a class, a BibTeX style, and
some scripts for generating conference proceedings. It derives
from LaTeX scripts written for the DAFx-06 conference
proceedings, largely based on the pdfpages package for
including the proceedings papers and the hyperref package for
creating a proper table of contents, bookmarks and general
bibliography back-references. Confproc also uses many other
packages for fine tuning of the table of contents, bibliography
and index of authors. The added value of the class resides in
its time-saving aspects when designing conference proceedings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/confproc/newapave.bst
%{_texmfdistdir}/makeindex/confproc/confproc1.ist
%{_texmfdistdir}/makeindex/confproc/confproc2.ist
%{_texmfdistdir}/tex/latex/confproc/confproc.cfg
%{_texmfdistdir}/tex/latex/confproc/confproc.cls
%{_texmfdistdir}/tex/latex/confproc/newapave.sty
%doc %{_texmfdistdir}/doc/latex/confproc/README
%doc %{_texmfdistdir}/doc/latex/confproc/buildcls.sh
%doc %{_texmfdistdir}/doc/latex/confproc/buildcppdfpapers.sh
%doc %{_texmfdistdir}/doc/latex/confproc/buildpapers.sh
%doc %{_texmfdistdir}/doc/latex/confproc/buildproc.sh
%doc %{_texmfdistdir}/doc/latex/confproc/buildprocelpb.sh
%doc %{_texmfdistdir}/doc/latex/confproc/cleancls.sh
%doc %{_texmfdistdir}/doc/latex/confproc/confproc-short.tex
%doc %{_texmfdistdir}/doc/latex/confproc/confproc.pdf
%doc %{_texmfdistdir}/doc/latex/confproc/confproc_diag.pdf
%doc %{_texmfdistdir}/doc/latex/confproc/countnbpages.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/IEEEtran.bst
%doc %{_texmfdistdir}/doc/latex/confproc/example/buildcppdfpapers.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/buildpapers.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/buildproc.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/buildprocelpb.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/countnbpages.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/example1empty.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/example2custom.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/example3optim.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/example4optim.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/exbiblio.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/exclasslastel.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/exclasslastpb.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/exclasspre.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/expages.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/expapersswitch.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/exportIndividualPDFs.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/exprogram.csv
%doc %{_texmfdistdir}/doc/latex/confproc/example/generateswitch.pl
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/IEEEtran.bst
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/expages.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/p_001.pdf
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/p_003.pdf
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/p_005.pdf
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/p_007.pdf
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/p_009.pdf
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_001/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_001/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_001/p_001.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_001/p_001.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_003/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_003/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_003/p_003.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_003/p_003.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_005/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_005/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_005/p_005.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_005/p_005.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_007/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_007/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_007/p_007.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_pdftex/p_007/p_007.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_tex/p_009/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_tex/p_009/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_tex/p_009/p_009.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/papers/sources_tex/p_009/p_009.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/papersinfo.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/paperssplitpreamble.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/pictures/ex_1stpage.pdf
%doc %{_texmfdistdir}/doc/latex/confproc/example/removeLaTeXcmds.sh
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_001/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_001/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_001/p_001.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_001/p_001.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_003/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_003/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_003/p_003.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_003/p_003.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_005/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_005/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_005/p_005.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_005/p_005.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_007/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_007/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_007/p_007.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_pdftex/p_007/p_007.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_tex/p_009/dafx_06.sty
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_tex/p_009/fft_plot2.png
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_tex/p_009/p_009.bib
%doc %{_texmfdistdir}/doc/latex/confproc/example/sources_tex/p_009/p_009.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example1empty.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example2custom.tex
%doc %{_texmfdistdir}/doc/latex/confproc/example3optim.tex
%doc %{_texmfdistdir}/doc/latex/confproc/exbiblio.bib
%doc %{_texmfdistdir}/doc/latex/confproc/exclasslastel.tex
%doc %{_texmfdistdir}/doc/latex/confproc/exclasslastpb.tex
%doc %{_texmfdistdir}/doc/latex/confproc/exclasspre.tex
%doc %{_texmfdistdir}/doc/latex/confproc/expages.tex
%doc %{_texmfdistdir}/doc/latex/confproc/expapersswitch.tex
%doc %{_texmfdistdir}/doc/latex/confproc/exportIndividualPDFs.sh
%doc %{_texmfdistdir}/doc/latex/confproc/exprogram.csv
%doc %{_texmfdistdir}/doc/latex/confproc/generateswitch.pl
%doc %{_texmfdistdir}/doc/latex/confproc/papersinfo.sh
%doc %{_texmfdistdir}/doc/latex/confproc/paperssplitpreamble.sh
%doc %{_texmfdistdir}/doc/latex/confproc/prepareexample.sh
%doc %{_texmfdistdir}/doc/latex/confproc/removeLaTeXcmds.sh
#- source
%doc %{_texmfdistdir}/source/latex/confproc/confproc.drv
%doc %{_texmfdistdir}/source/latex/confproc/confproc.dtx
%doc %{_texmfdistdir}/source/latex/confproc/confproc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18026 |21mr|texlive-constants-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/constants
# catalog-date 2008-08-18 10:38:42 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-constants
Version:	1.0
Release:	7
Summary:	Automatic numbering of constants
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/constants
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/constants.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/constants.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/constants.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a way to number constants in a
mathematical proof automatically, with a system for
labelling/referencing. In addition, several families of
constants (with different symbols) may be defined.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/constants/constants.sty
%doc %{_texmfdistdir}/doc/latex/constants/README
%doc %{_texmfdistdir}/doc/latex/constants/constants.pdf
#- source
%doc %{_texmfdistdir}/source/latex/constants/constants.dtx
%doc %{_texmfdistdir}/source/latex/constants/constants.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18027 |21mr|texlive-context-20200524-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context
Version:	20200524
Release:	1
Summary:	The ConTeXt macro package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/current
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-metapost
Requires:	texlive-pdftex
Requires:	texlive-xetex
Requires:	texlive-luatex
Requires:	texlive-lm
Requires:	texlive-lm-math
Requires:	texlive-stmaryrd
Requires:	texlive-amsfonts
Requires:	texlive-mptopdf
Provides:	texlive-context.bin = %{EVRD}
%rename texlive-texmf-contex

%description
A full featured, parameter driven macro package, which fully
supports advanced interactive documents. See the ConTeXt garden
for a wealth of support information.

#-----------------------------------------------------------------------
%files
%{_bindir}/*
%{_mandir}/man1/context.1*
%{_mandir}/man1/luatools.1*
%{_mandir}/man1/mtx-babel.1*
%{_mandir}/man1/mtx-base.1*
%{_mandir}/man1/mtx-bibtex.1*
%{_mandir}/man1/mtx-cache.1*
%{_mandir}/man1/mtx-chars.1*
%{_mandir}/man1/mtx-check.1*
%{_mandir}/man1/mtx-colors.1*
%{_mandir}/man1/mtx-context.1*
%{_mandir}/man1/mtx-dvi.1*
%{_mandir}/man1/mtx-epub.1*
%{_mandir}/man1/mtx-evohome.1*
%{_mandir}/man1/mtx-fcd.1*
%{_mandir}/man1/mtx-flac.1*
%{_mandir}/man1/mtx-fonts.1*
%{_mandir}/man1/mtx-grep.1*
%{_mandir}/man1/mtx-interface.1*
%{_mandir}/man1/mtx-metapost.1*
#%%{_mandir}/man1/mtx-metatex.1*
%{_mandir}/man1/mtx-modules.1*
%{_mandir}/man1/mtx-package.1*
%{_mandir}/man1/mtx-patterns.1*
%{_mandir}/man1/mtx-pdf.1*
%{_mandir}/man1/mtx-plain.1*
%{_mandir}/man1/mtx-profile.1*
%{_mandir}/man1/mtx-rsync.1*
%{_mandir}/man1/mtx-scite.1*
%{_mandir}/man1/mtx-server.1*
%{_mandir}/man1/mtx-texworks.1*
%{_mandir}/man1/mtx-timing.1*
%{_mandir}/man1/mtx-tools.1*
%{_mandir}/man1/mtx-unicode.1*
%{_mandir}/man1/mtx-unzip.1*
%{_mandir}/man1/mtx-update.1*
%{_mandir}/man1/mtx-vscode.1*
%{_mandir}/man1/mtx-watch.1*
%{_mandir}/man1/mtx-youless.1*
%{_mandir}/man1/mtxrun.1*
%{_mandir}/man1/texexec.1*
%{_mandir}/man1/texmfstart.1*
%{_texmfdistdir}/bibtex/bst/context/mkii/cont-ab.bst
%{_texmfdistdir}/bibtex/bst/context/mkii/cont-au.bst
%{_texmfdistdir}/bibtex/bst/context/mkii/cont-no.bst
%{_texmfdistdir}/bibtex/bst/context/mkii/cont-ti.bst
%{_texmfdistdir}/context/data/npp/context/notepad++.ini
%{_texmfdistdir}/context/data/scite/context/documents/scite-context-readme.pdf
%{_texmfdistdir}/context/data/scite/context/documents/scite-context-readme.tex
%{_texmfdistdir}/context/data/scite/context/documents/scite-context-visual.pdf
%{_texmfdistdir}/context/data/scite/context/documents/scite-context-visual.png
%{_texmfdistdir}/context/data/scite/context/lexers/data/scite-context-data-bidi.lua
%{_texmfdistdir}/context/data/scite/context/lexers/data/scite-context-data-context.lua
%{_texmfdistdir}/context/data/scite/context/lexers/data/scite-context-data-interfaces.lua
%{_texmfdistdir}/context/data/scite/context/lexers/data/scite-context-data-metafun.lua
%{_texmfdistdir}/context/data/scite/context/lexers/data/scite-context-data-metapost.lua
%{_texmfdistdir}/context/data/scite/context/lexers/data/scite-context-data-tex.lua
%{_texmfdistdir}/context/data/scite/context/lexers/lexer.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-bibtex.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-bnf.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-cld.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-cpp-web.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-cpp.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-dummy.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-lua-longstring.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-lua.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-mps.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-pdf-object.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-pdf-xref.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-pdf.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-json.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-sas.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-sql.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-tex-web.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-tex.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-txt.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-web-snippets.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-web.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-xml-cdata.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-xml-comment.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-xml-script.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer-xml.lua
%{_texmfdistdir}/context/data/scite/context/lexers/scite-context-lexer.lua
%{_texmfdistdir}/context/data/scite/context/lexers/themes/scite-context-theme.lua
%{_texmfdistdir}/context/data/scite/context/scite-context-data-context.properties
%{_texmfdistdir}/context/data/scite/context/scite-context-data-interfaces.properties
%{_texmfdistdir}/context/data/scite/context/scite-context-data-metafun.properties
%{_texmfdistdir}/context/data/scite/context/scite-context-data-metapost.properties
%{_texmfdistdir}/context/data/scite/context/scite-context-data-tex.properties
%{_texmfdistdir}/context/data/scite/context/scite-context-external.properties
%{_texmfdistdir}/context/data/scite/context/scite-context-internal.properties
%{_texmfdistdir}/context/data/scite/context/scite-context-user.properties
%{_texmfdistdir}/context/data/scite/context/scite-context.properties
%{_texmfdistdir}/context/data/scite/context/scite-ctx-context.properties
%{_texmfdistdir}/context/data/scite/context/scite-ctx-example.properties
%{_texmfdistdir}/context/data/scite/context/scite-ctx-bidi.lua
%{_texmfdistdir}/context/data/scite/context/scite-ctx-templates.lua
%{_texmfdistdir}/context/data/scite/context/scite-ctx.lua
%{_texmfdistdir}/context/data/scite/context/scite-ctx.properties
%{_texmfdistdir}/context/data/scite/context/scite-metapost.properties
%{_texmfdistdir}/context/data/scite/context/scite-pragma.properties
%{_texmfdistdir}/context/data/scite/context/scite-tex.properties
%{_texmfdistdir}/context/data/texfont/type-buy.dat
%{_texmfdistdir}/context/data/texfont/type-fsf.dat
%{_texmfdistdir}/context/data/texfont/type-ghz.dat
%{_texmfdistdir}/context/data/texfont/type-tmf.dat
%{_texmfdistdir}/context/data/textadept/context/data/scite-context-data-bidi.lua
%{_texmfdistdir}/context/data/textadept/context/data/scite-context-data-context.lua
%{_texmfdistdir}/context/data/textadept/context/data/scite-context-data-interfaces.lua
%{_texmfdistdir}/context/data/textadept/context/data/scite-context-data-metafun.lua
%{_texmfdistdir}/context/data/textadept/context/data/scite-context-data-metapost.lua
%{_texmfdistdir}/context/data/textadept/context/data/scite-context-data-tex.lua
%{_texmfdistdir}/context/data/textadept/context/init.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/lexer.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/lexer.rme
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-bibtex.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-bidi.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-bnf.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-cld.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-cpp-web.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-cpp.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-dummy.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-json.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-lua-longstring.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-lua.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-mps.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-pdf-object.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-pdf-xref.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-pdf.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-sas.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-sql.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-tex-web.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-tex.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-txt.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-web-snippets.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-web.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-xml-cdata.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-xml-comment.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-xml-script.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer-xml.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/scite-context-lexer.lua
%{_texmfdistdir}/context/data/textadept/context/lexers/text.lua
%{_texmfdistdir}/context/data/textadept/context/modules/textadept-context-files.lua
%{_texmfdistdir}/context/data/textadept/context/modules/textadept-context-runner.lua
%{_texmfdistdir}/context/data/textadept/context/modules/textadept-context-settings.lua
%{_texmfdistdir}/context/data/textadept/context/modules/textadept-context-types.lua
%{_texmfdistdir}/context/data/textadept/context/textadept-context.cmd
%{_texmfdistdir}/context/data/textadept/context/textadept-context.sh
%{_texmfdistdir}/context/data/textadept/context/themes/scite-context-theme.lua
%{_texmfdistdir}/context/data/texworks/TUG/TeXworks.ini
%{_texmfdistdir}/context/data/texworks/completion/tw-context.txt
%{_texmfdistdir}/context/data/texworks/configuration/auto-indent-patterns.txt
%{_texmfdistdir}/context/data/texworks/configuration/delimiter-pairs.txt
%{_texmfdistdir}/context/data/texworks/configuration/smart-quotes-modes.txt
%{_texmfdistdir}/context/data/texworks/configuration/syntax-patterns.txt
%{_texmfdistdir}/context/data/texworks/configuration/tag-patterns.txt
%{_texmfdistdir}/context/data/texworks/configuration/texworks-config.txt
%{_texmfdistdir}/context/data/texworks/configuration/tools.ini
%{_texmfdistdir}/context/data/texworks/texworks-context.rme
%{_texmfdistdir}/context/data/texworks/texworks-setup.ini
%{_texmfdistdir}/context/data/vscode/extensions/context/keybindings/context.json
%{_texmfdistdir}/context/data/vscode/extensions/context/package.json
%{_texmfdistdir}/context/data/vscode/extensions/context/package.nls.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-bibtex.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-bnf.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-cld.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-cpp.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-json.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-lua.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-mps.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-pdf.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-sql.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-tex.json
%{_texmfdistdir}/context/data/vscode/extensions/context/settings/context-settings-xml.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-bibtex.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-bnf.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-cld.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-cpp.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-json.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-lua.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-mps.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-pdf.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-sql.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-tex.json
%{_texmfdistdir}/context/data/vscode/extensions/context/syntaxes/context-syntax-xml.json
%{_texmfdistdir}/context/data/vscode/extensions/context/tasks/context.json
%{_texmfdistdir}/context/data/vscode/extensions/context/themes/context.json
%{_texmfdistdir}/context/data/vscode/extensions/context/vscode-context.readme
%{_texmfdistdir}/context/data/vscode/settings.json
%{_texmfdistdir}/context/data/vscode/tasks.json
%{_texmfdistdir}/context/data/vscode/vscode-context.cmd
%{_texmfdistdir}/doc/context/documents/general/leaflets/leaflet-context.pdf
%{_texmfdistdir}/doc/context/documents/general/leaflets/leaflet-luametatex.pdf
%{_texmfdistdir}/doc/context/documents/general/leaflets/leaflet-mixing.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-0000-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-0002-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-0006-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-0007-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-0010-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-1101-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-1102-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-1103-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/magazines/mag-1104-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/about.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/bidi.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/charts-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/cld-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/colors-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/columnsets.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/details.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/ecmascript-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/epub-mkiv-demo.epub
%{_texmfdistdir}/doc/context/documents/general/manuals/epub-mkiv-demo.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/epub-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/evenmore.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/followingup.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/fonts-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/graphics.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/hybrid.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/interaction.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/languages-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/libraries-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/lowlevel-boxes.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/lowlevel-conditionals.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/lowlevel-expansion.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/lowlevel-registers.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/lua-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/luametafun.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/luametatex.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/luatex.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/ma-cb-en.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/math-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/metafun-p.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/metafun-s.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/mkiv-publications.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/mk.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/mmlexamp.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/mmlprime.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/mreadme.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/musings.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/nodes.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/notnow.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/onandon.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/pagecolumns.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/rules-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/spacing-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/spreadsheets-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/sql-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/steps-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/still.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/svg-lmtx.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/swiglib-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/templates-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/texit.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/tiptrick.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/tools-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/units-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/workflows-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/xml-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/manuals/xtables-mkiv.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-cs.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-de.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-en.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-fr.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-it.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-nl.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-ro.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-mapping-cs.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-mapping-de.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-mapping-en.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-mapping-fr.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-mapping-it.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-mapping-nl.pdf
%{_texmfdistdir}/doc/context/documents/general/qrcs/setup-mapping-ro.pdf
%{_texmfdistdir}/doc/context/examples/calculator/calculator.pdf
%{_texmfdistdir}/doc/context/examples/calculator/calculator.tex
%{_texmfdistdir}/doc/context/examples/clock/clock.pdf
%{_texmfdistdir}/doc/context/examples/clock/clock.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2005/bachotex-2005-fonts.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2005/bachotex-2005-hyphenation.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2009/bachotex-2009-luatex.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2009/bachotex-2009-math.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2009/bachotex-2009-opentype.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2010/bachotex-2010-clash.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2010/bachotex-2010-clash.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2010/bachotex-2010-move.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2010/bachotex-2010-move.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2011/bachotex-2011-cld-and-mkvi.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2011/bachotex-2011-cld-and-mkvi.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2011/bachotex-2011-ebook.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2011/bachotex-2011-math.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2011/bachotex-2011-metapost.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2012/bachotex-2012-context.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2012/bachotex-2012-future.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2013/bachotex-2013-bits.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2013/bachotex-2013-bits.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2013/bachotex-2013-luatex.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2013/bachotex-2013-luatex.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2013/bachotex-2013-sense.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2013/bachotex-2013-sense.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2013/bachotex-2013-speed.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2013/bachotex-2013-speed.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2014/bachotex-2014-luatex.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2014/bachotex-2014-metapost.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2015/bachotex-2015-ligatures.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2015/bachotex-2015-ligatures.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2016/bachotex-2016-opentype.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2016/bachotex-2016-opentype.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2016/bachotex-2016-toolbox.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2016/bachotex-2016-toolbox.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2017/bachotex-2017-emoji-demo.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2017/bachotex-2017-emoji-demo.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2017/bachotex-2017-emoji.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2017/bachotex-2017-emoji.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2017/bachotex-2017-variablefonts-demo.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2017/bachotex-2017-variablefonts-demo.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2017/bachotex-2017-variablefonts.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2017/bachotex-2017-variablefonts.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2018/bachotex-2018-fonteffects.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2018/bachotex-2018-fonteffects.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2018/bachotex-2018-mp.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2018/bachotex-2018-mp.tex
%{_texmfdistdir}/doc/context/presentations/bachotex/2019/bachotex-2019-followingup.pdf
%{_texmfdistdir}/doc/context/presentations/bachotex/2019/bachotex-2019-followingup.tex
%{_texmfdistdir}/doc/context/presentations/context/2007/context-2007-luatex.tex
%{_texmfdistdir}/doc/context/presentations/context/2007/context-2007-mkiv.tex
%{_texmfdistdir}/doc/context/presentations/context/2010/context-2010-just-in-time-1.tex
%{_texmfdistdir}/doc/context/presentations/context/2010/context-2010-just-in-time-2.tex
%{_texmfdistdir}/doc/context/presentations/context/2010/context-2010-requirements.tex
%{_texmfdistdir}/doc/context/presentations/context/2010/context-2010-structure-matters.tex
%{_texmfdistdir}/doc/context/presentations/context/2010/context-2010-workflows.tex
%{_texmfdistdir}/doc/context/presentations/context/2011/context-2011-ebook-export.pdf
%{_texmfdistdir}/doc/context/presentations/context/2011/context-2011-ebook-export.tex
%{_texmfdistdir}/doc/context/presentations/context/2011/context-2011-mathml-update.pdf
%{_texmfdistdir}/doc/context/presentations/context/2011/context-2011-mathml-update.tex
%{_texmfdistdir}/doc/context/presentations/context/2011/context-2011-metapost-how-we-adapt.pdf
%{_texmfdistdir}/doc/context/presentations/context/2011/context-2011-metapost-how-we-adapt.tex
%{_texmfdistdir}/doc/context/presentations/context/2011/context-2011-sorting-registers.pdf
%{_texmfdistdir}/doc/context/presentations/context/2011/context-2011-sorting-registers.tex
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-after-the-cleanup.pdf
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-after-the-cleanup.tex
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-lexing-sources.pdf
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-lexing-sources.tex
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-mixed-columns.pdf
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-mixed-columns.tex
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-the-script.pdf
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-the-script.tex
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-visual-debugging.pdf
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-visual-debugging.tex
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-xml-news.pdf
%{_texmfdistdir}/doc/context/presentations/context/2012/context-2012-xml-news.tex
%{_texmfdistdir}/doc/context/presentations/context/2013/context-2013-math.pdf
%{_texmfdistdir}/doc/context/presentations/context/2013/context-2013-math.tex
%{_texmfdistdir}/doc/context/presentations/context/2013/context-2013-speed.pdf
%{_texmfdistdir}/doc/context/presentations/context/2013/context-2013-speed.tex
%{_texmfdistdir}/doc/context/presentations/context/2015/context-2015-status.pdf
%{_texmfdistdir}/doc/context/presentations/context/2015/context-2015-status.tex
%{_texmfdistdir}/doc/context/presentations/context/2016/context-2016-luatex.pdf
%{_texmfdistdir}/doc/context/presentations/context/2016/context-2016-luatex.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-css-selectors.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-css-selectors.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-chaintest.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-chaintest.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-kerntest.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-kerntest.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-pairtest.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-pairtest.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-singletest.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-singletest.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-spacetest.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-spacetest.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-substitutiontest.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features-substitutiontest.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-features.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-performance.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-performance.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-synctex.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-synctex.tex
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-tables.pdf
%{_texmfdistdir}/doc/context/presentations/context/2017/context-2017-tables.tex
%{_texmfdistdir}/doc/context/presentations/context/2019/context-2019-lmtx.pdf
%{_texmfdistdir}/doc/context/presentations/context/2019/context-2019-lmtx.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-balls-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-balls-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-colorful-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-colorful-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-funny-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-funny-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-fuzzy-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-fuzzy-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-green-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-green-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-grow-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-grow-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-organic-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-organic-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-original-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-original-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-punk-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-punk-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-random-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-random-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-shaded-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-shaded-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-split-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-split-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-stepper-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-stepper-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-steps-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-steps-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-tiles-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-tiles-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-windows-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-windows-001.tex
%{_texmfdistdir}/doc/context/presentations/examples/present-weird-001.pdf
%{_texmfdistdir}/doc/context/presentations/examples/present-weird-001.tex
%{_texmfdistdir}/doc/context/presentations/tug/2001/tug-2001-ideas.pdf
%{_texmfdistdir}/doc/context/presentations/tug/2001/tug-2001-ideas.tex
%{_texmfdistdir}/doc/context/presentations/tug/2007/tug-2007-fonts.pdf
%{_texmfdistdir}/doc/context/presentations/tug/2007/tug-2007-fonts.tex
%{_texmfdistdir}/doc/context/presentations/present-readme.pdf
%{_texmfdistdir}/doc/context/presentations/present-readme.tex
%{_texmfdistdir}/doc/context/scripts/mkii/ctxtools.html
%{_texmfdistdir}/doc/context/scripts/mkii/ctxtools.man
%{_texmfdistdir}/doc/context/scripts/mkii/ctxtools.xml
%{_texmfdistdir}/doc/context/scripts/mkii/imgtopdf.html
%{_texmfdistdir}/doc/context/scripts/mkii/imgtopdf.man
%{_texmfdistdir}/doc/context/scripts/mkii/imgtopdf.xml
%{_texmfdistdir}/doc/context/scripts/mkii/mptopdf.html
%{_texmfdistdir}/doc/context/scripts/mkii/mptopdf.xml
%{_texmfdistdir}/doc/context/scripts/mkii/pdftools.html
%{_texmfdistdir}/doc/context/scripts/mkii/pdftools.man
%{_texmfdistdir}/doc/context/scripts/mkii/pdftools.xml
%{_texmfdistdir}/doc/context/scripts/mkii/pstopdf.html
%{_texmfdistdir}/doc/context/scripts/mkii/pstopdf.man
%{_texmfdistdir}/doc/context/scripts/mkii/pstopdf.xml
%{_texmfdistdir}/doc/context/scripts/mkii/rlxtools.html
%{_texmfdistdir}/doc/context/scripts/mkii/rlxtools.man
%{_texmfdistdir}/doc/context/scripts/mkii/rlxtools.xml
%{_texmfdistdir}/doc/context/scripts/mkii/texexec.html
%{_texmfdistdir}/doc/context/scripts/mkii/texexec.man
%{_texmfdistdir}/doc/context/scripts/mkii/texexec.xml
%{_texmfdistdir}/doc/context/scripts/mkii/texmfstart.html
%{_texmfdistdir}/doc/context/scripts/mkii/texmfstart.man
%{_texmfdistdir}/doc/context/scripts/mkii/texmfstart.xml
%{_texmfdistdir}/doc/context/scripts/mkii/textools.html
%{_texmfdistdir}/doc/context/scripts/mkii/textools.man
%{_texmfdistdir}/doc/context/scripts/mkii/textools.xml
%{_texmfdistdir}/doc/context/scripts/mkii/texutil.html
%{_texmfdistdir}/doc/context/scripts/mkii/texutil.man
%{_texmfdistdir}/doc/context/scripts/mkii/texutil.xml
%{_texmfdistdir}/doc/context/scripts/mkii/tmftools.html
%{_texmfdistdir}/doc/context/scripts/mkii/tmftools.man
%{_texmfdistdir}/doc/context/scripts/mkii/tmftools.xml
%{_texmfdistdir}/doc/context/scripts/mkii/xmltools.html
%{_texmfdistdir}/doc/context/scripts/mkii/xmltools.man
%{_texmfdistdir}/doc/context/scripts/mkii/xmltools.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/context.html
%{_texmfdistdir}/doc/context/scripts/mkiv/context.man
%{_texmfdistdir}/doc/context/scripts/mkiv/context.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/luatools.html
%{_texmfdistdir}/doc/context/scripts/mkiv/luatools.man
%{_texmfdistdir}/doc/context/scripts/mkiv/luatools.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-babel.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-babel.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-babel.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-base.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-base.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-base.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-bibtex.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-bibtex.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-bibtex.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-cache.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-cache.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-cache.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-chars.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-chars.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-chars.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-check.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-check.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-check.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-colors.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-colors.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-colors.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-context.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-context.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-context.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-dvi.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-dvi.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-dvi.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-epub.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-epub.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-epub.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-evohome.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-evohome.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-evohome.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-fcd.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-fcd.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-fcd.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-flac.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-flac.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-flac.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-fonts.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-fonts.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-fonts.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-grep.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-grep.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-grep.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-interface.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-interface.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-interface.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-metapost.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-metapost.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-metapost.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-modules.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-modules.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-modules.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-package.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-package.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-package.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-patterns.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-patterns.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-patterns.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-pdf.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-pdf.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-pdf.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-plain.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-plain.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-plain.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-profile.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-profile.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-profile.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-rsync.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-rsync.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-rsync.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-scite.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-scite.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-scite.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-server.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-server.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-server.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-texworks.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-texworks.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-texworks.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-timing.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-timing.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-timing.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-tools.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-tools.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-tools.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-unicode.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-unicode.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-unicode.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-unzip.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-unzip.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-unzip.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-update.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-update.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-update.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-vscode.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-vscode.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-vscode.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-watch.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-watch.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-watch.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-youless.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-youless.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtx-youless.xml
%{_texmfdistdir}/doc/context/scripts/mkiv/mtxrun.html
%{_texmfdistdir}/doc/context/scripts/mkiv/mtxrun.man
%{_texmfdistdir}/doc/context/scripts/mkiv/mtxrun.xml
%{_texmfdistdir}/doc/context/sources/general/leaflets/leaflet-common.tex
%{_texmfdistdir}/doc/context/sources/general/leaflets/leaflet-context.tex
%{_texmfdistdir}/doc/context/sources/general/leaflets/leaflet-luametatex.tex
%{_texmfdistdir}/doc/context/sources/general/leaflets/leaflet-mixing.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-0000-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-0002-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-0006-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-0007-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-0010-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-1101-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-1102-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-1103-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/magazines/mag-1104-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-calls.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-expanding.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-hashing.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-hz.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-jitting-jit-2013-06-04.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-jitting-jit.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-jitting.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-luafunctions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-mathstackers.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-mathstyles.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-metafun.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-mobility.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-nodes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-nuts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-properties.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-speed.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-threequarters.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/about.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/demo-data.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/about/luatest-hash-luajittex-073-JIT20.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/about/luatest-hash-luajittex-073-LUA51-40-6.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/about/luatest-hash-luajittex-073-LUA51.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/about/luatest-hash-luatex-073-LUA52-40-6.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/about/luatest-hash-luatex-073-LUA52.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/about/pi-speed-1.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/pi-speed-2.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/pi-speed-3.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/pi-speed-4.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/pi-speed-5.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-1.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-10.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-2.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-3.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-4.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-5.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-6.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-7.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-8.png
%{_texmfdistdir}/doc/context/sources/general/manuals/about/still-expanding-9.png
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-fonts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-lua.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-mixed.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-numbering.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi-vertical.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/bidi/bidi.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/charts/charts-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-abitoflua.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-afewdetails.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-backendcode.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-callbacks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-ctxfunctions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-files.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-gettingstarted.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-goodies.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-graphics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-logging.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-luafunctions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-macros.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-moreonfunctions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-nicetoknow.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-somemoreexamples.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-specialcommands.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-summary.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/cld/cld-verbatim.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/colors/colors-basics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/colors/colors-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/colors/colors-graphics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/colors/colors-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/colors/colors-metafun.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/colors/colors-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-000.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-001.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-002.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-003.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-004.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-005.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-006.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-007.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-101.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-102.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-103.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-201.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-202.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-203.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-204.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-205.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-206.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-301.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-401.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-402.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-403.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-404.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-405.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-601.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-701.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-702.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-703.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-704.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-801.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-802.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-803.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-804.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-805.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-806.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-901.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-902.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets-903.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/columnsets/columnsets.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/back-0.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/back-1.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/back-2.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/back-4.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/back-5.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/cow.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-backpage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-captiontrickery.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-colofon.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-finetuningfloats.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-floatingaround.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-frontpage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-gridtrickery.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-index.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-ornaments.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-pseudocolumns.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-snappingheads.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-textbackgrounds.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details-tuningformulas.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/details.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/detcow.mp
%{_texmfdistdir}/doc/context/sources/general/manuals/details/detcow.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/details/detcowmp.mps
%{_texmfdistdir}/doc/context/sources/general/manuals/details/hacker.jpg
%{_texmfdistdir}/doc/context/sources/general/manuals/details/mill.png
%{_texmfdistdir}/doc/context/sources/general/manuals/epub/epub-mkiv-demo.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/epub/epub-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/benchmark-1.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/benchmark-2.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/benchmark-3.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/benchmark-4.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/benchmark-5.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/calibri-fontshop.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/ebook-metafun-1.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/ebook-metafun-2.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/ebook-pdf.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/ebook-xhtml.png
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-expansion.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-fonts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-libraries.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-normalization.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-pi.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-threesix.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore-whattex.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/evenmore.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/evenmore/mozilla-svg-001.svg
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-bitmaps.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-cleanup.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-compilation.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-directions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-evolution.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-feedback.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-logging.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-lua.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-mp.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-performance.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-rejected.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-retrospect.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-stripping.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-stubs.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-tex.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup-whatsits.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/followingup/followingup.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-appendix.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-demo-rule.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-extensions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-features.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-formats.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-hooks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-lookups.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-math.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-methods.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-modes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-scripts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/fonts/fonts-tricks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/graphics/graphics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-backend.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-bidi.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-callbacks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-characters.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-codebase.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-ebooks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-export.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-fontnames.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-glocal.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-goodies.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-grouping.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-inserts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-intermezzo.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-italics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-jit.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-languages.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-math.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-mathml.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-merge.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-mkvi.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-optimize.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-parbuilder.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-partests.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-tags.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid-weird.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/hybrid.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/luatex-co-acceptablelowres.jpg
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/mtx-server-ctx-fonttest.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-001.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-002.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-003.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-004.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-005.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-006.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-007.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-008.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-009.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-010.png
%{_texmfdistdir}/doc/context/sources/general/manuals/hybrid/tagged-011.png
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-actions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-annotations.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-attachments.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-bookmarks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-buttons.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-comments.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-enabling.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-hyperlinks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-importing.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-javascript.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-menus.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-progress.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-structure.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-tagging.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-transitions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction-widgets.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/interaction/interaction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-appendix.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-basics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-goodies.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-hyphenation.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-labels.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-numbering.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/languages/languages-sorting.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/libraries/ecmascript-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/libraries/libraries-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/lowlevel/lowlevel-boxes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/lowlevel/lowlevel-conditionals.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/lowlevel/lowlevel-expansion.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/lowlevel/lowlevel-registers.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/lowlevel/lowlevel-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-arrow.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-axis.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-chart.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-contour.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-followtext.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-fonts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-function.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-grid.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-groups.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-interface.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-mesh-examples.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-mesh.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-outline.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-placeholder.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-shade.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-surface.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-svg.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-text.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/luametafun.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/mozilla-svg-001.svg
%{_texmfdistdir}/doc/context/sources/general/manuals/luametafun/mozilla-svg-002.svg
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-callbacks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-differences.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-enhancements.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-firstpage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-fonts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-languages.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-libraries.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-lua.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-math.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-metapost.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-modifications.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-nodes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-pdf.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-preamble.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-primitives.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-registers.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-statistics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-tex.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luametatex/luametatex-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/lua/lua-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-enhancements.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-fonts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-languages.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-logos.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-lua.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-math.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-modifications.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-nodes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-firstpage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-preamble.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-registers.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/luatex/luatex-statistics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-alignments.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-definitions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-input.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-oddities.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-suboptimal.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-tricks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/cow-fun.mps
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/hacker.png
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/m-1.png
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/m-2.png
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-backgrounds.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-backpage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-basics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-colofon-paper.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-colofon-screen.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-colofon.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-conventions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-debugging.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-document.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-effects.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-embedding.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-environment-layout.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-environment-samples.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-environment-screen.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-examples.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-functions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-gadgets.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-graphics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-index.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-layout.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-lua.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-macros.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-positioning.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-reference.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-sneaky.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-styles.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-syntax.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-text.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-titlepage-paper.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-titlepage-screen.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun-welcome.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/metafun.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-700.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-771.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-772.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-773.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-774.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-775.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-776.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-800.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-900.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-901.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-902.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mfun-mrun-demo.mp
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mycow.mp
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/mycow.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/metafun/somecow.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-children.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-names.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-perception.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-plain.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-roadmap.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-stability.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-staygo.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings-whytex.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/musings/musings.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/manuals-explaining-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/manuals-explaining-cover.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/manuals-explaining-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/manuals-xml-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-combining.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-features.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-framing-001.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-framing.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-layout.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-numbering.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-spacing-001.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-spacing.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/math/math-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/envexamp.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/mmlexamp.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/mmlprime.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-001.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-002.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-003.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-004.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-005.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-006.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-007.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-008.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-009.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-010.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-011.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-043.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-d-051.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-i-022.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-i-380.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-s-001.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-s-002.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/pc-s-003.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-001.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-002.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-003.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-004.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-005.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-006.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-007.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-008.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-009.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-010.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-011.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-012.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-013.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-014.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-015.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-g-016.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-l-001.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-l-002.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-l-003.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-l-004.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-s-001.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mathml/wh-s-002.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mcommon.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/luatexref-t-luatex-progress-intermediate.lut
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/luatexref-t-luatex-progress-runtime.lut
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-arabic.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-breakingapart.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-calcmath.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-cjk.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-code.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-colors.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-debug.png
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-dirtytricks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-error.png
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-fallback.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-fonts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-goingbeta.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-goingutf.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-halfway.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-iitoiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-initialization.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-itworks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-last-state.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-last.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-luafitsin.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-luatex-progress.lut
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-math.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-memory.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-mix.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-mplib.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-nicetoknow.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-nodes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-open.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-optimization.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-order.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-performance.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-plain.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-punk.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-reflection.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-structure.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-timing-1-luatex-progress.lut
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-timing-1.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-timing-2-luatex-progress.lut
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-timing-2.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-timing-3-luatex-progress.lut
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-timing-3.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-tokenspeak.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-tracking.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-xml.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-xml.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk-zapfino.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/mk/mk.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/nodes/nodes-sun-pia-03149.jpg
%{_texmfdistdir}/doc/context/sources/general/manuals/nodes/nodes-sun-pia-03150.jpg
%{_texmfdistdir}/doc/context/sources/general/manuals/nodes/nodes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/notnow/notnow-columns-and-notes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/notnow/notnow-sidefloats.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/notnow/notnow.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/m-fonts-plugins-timings-luajittex.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/m-fonts-plugins-timings-luatex.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-110.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-53.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-decade.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-editing.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-emoji.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-execute.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-expansion.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-fences.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-ffi.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-media.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-modern.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-performance.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-runtoks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-seguiemj.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-seguiemj.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-000.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-001.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-002.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-003.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-005.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-006.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-007.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-008.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-009.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-010.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-011.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-speed-012.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon-variable.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/onandon/onandon.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns-000.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns-001.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns-002.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns-003.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns-004.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns-005.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns-006.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns-007.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/pagecolumns/pagecolumns.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/122176.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/124484.mol
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/124484.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/4953942.mol
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/4953942.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/971.mol
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/971.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/C6H6O.bib
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/boekplan.bib
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/duane.bib
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/manuals.bib
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/mkiv-publications.bib
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/mkiv-publications.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/mkiv-publications.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-citations.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-completeness.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-customize.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-database.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-datasets.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-exporting.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-extensions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-fields.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-journals.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-lua.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-otheruse.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-overviews.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-performance.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-quick-example.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-quick.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-rendering.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/publications-tracing.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/publications/template-clean.bib
%{_texmfdistdir}/doc/context/sources/general/manuals/readme/mreadme.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/rules/rules-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spacing/spacing-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spacing/spacing-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spacing/spacing-linecorrection.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spacing/spacing-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spacing/spacing-periods.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spacing/spacing-spaces.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spacing/spacing-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spacing/spacing-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/spreadsheets/spreadsheets-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/sql/sql-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/hasseltbook.bib
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/hasseltbook.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/hasseltbook.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-alignments.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-backpage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-bibliography.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-chemical.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-citations.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-color.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-columns.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-commandlist.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-commands.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-composedcharacters.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-descriptions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-document.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-enumerations.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-errors.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-figures.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-fonts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-footnotes.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-framedtexts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-frames.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-gettingstarted.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-headers.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-heads.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-interactivity.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-itemizations.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-layout.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-margintexts.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-math.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-mathcharacters.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-metapost.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-modules.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-pagebackgrounds.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-pages.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-paragraphs.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-presentations.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-processingfiles.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-references.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-registers.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-runtimefiles.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-setupcommands.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-sortedlists.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-specialcharacters.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-structure.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-support.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-synonyms.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-tables.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-tablesofcontent.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-tabulations.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-textbackgrounds.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-texteditor.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-units.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-usersetups.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en-whatever.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-en.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/ma-cb-language.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/en/sounds-001.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/cow.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/fig-page-areas-en.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/fig-page-parameters-en.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-00.eps
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-00.mp
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-00.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-01.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-03.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-04.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-07.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-08.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-12.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-13.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-15.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-16.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-18.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-19.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-20.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-21.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-22.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-23.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-24.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-25.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/ma-cb-26.png
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/minibook-en.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/start/graphics/minibook-en.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/ma-cb-abbreviations.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/ma-cb-colofon.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/ma-cb-copyright.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/ma-cb-graphics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/ma-cb-links.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/ma-cb-screen.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/ma-cb-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/start/ma-cb.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/steps/steps-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-acrobat-math.png
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-acrobat-text.png
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-backend.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-environment.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-expanding.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-math-stripe.png
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-math.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-one.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-opentypemath.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-profiling.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-simple.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-sumatra-math.png
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-sumatra-text.png
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still-tokens.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/still/still.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/svg/mozilla-tiger.svg
%{_texmfdistdir}/doc/context/sources/general/manuals/svg/svg-lmtx-microsoft.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/svg/svg-lmtx-mozilla.lua
%{_texmfdistdir}/doc/context/sources/general/manuals/svg/svg-lmtx.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/svg/svglogo.svg
%{_texmfdistdir}/doc/context/sources/general/manuals/swiglib/swiglib-mkiv-gm-1.jpg
%{_texmfdistdir}/doc/context/sources/general/manuals/swiglib/swiglib-mkiv-gm-1.pdf
%{_texmfdistdir}/doc/context/sources/general/manuals/swiglib/swiglib-mkiv-gm-1.png
%{_texmfdistdir}/doc/context/sources/general/manuals/swiglib/swiglib-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/templates/templates-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/texit/texit-conditions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/texit/texit-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/texit/texit-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/texit/texit-leaders.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/texit/texit-lookahead.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/texit/texit-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/texit/texit-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/texit/texit.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/tiptrick/tiptrick.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/tiptrick/tiptrick.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/tools/tools-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/units/units-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-graphics.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-injectors.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-resources.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-running.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-synctex.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-setups.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-suspects.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/workflows/workflows-xml.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-01.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-02.xml
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-commands.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-contents.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-converter.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-examples.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-expressions.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-filtering.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-introduction.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-lookups.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-lpath.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-style.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-titlepage.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv-tricks.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xml/xml-mkiv.tex
%{_texmfdistdir}/doc/context/sources/general/manuals/xtables/xtables-mkiv.tex
%{_texmfdistdir}/doc/man/man1/context.man1.pdf
%{_texmfdistdir}/doc/man/man1/luatools.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-babel.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-base.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-bibtex.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-cache.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-chars.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-check.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-colors.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-context.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-dvi.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-epub.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-evohome.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-fcd.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-flac.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-fonts.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-grep.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-interface.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-metapost.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-modules.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-package.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-patterns.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-pdf.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-plain.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-profile.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-rsync.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-scite.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-server.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-texworks.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-timing.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-tools.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-unicode.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-unzip.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-update.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-vscode.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-watch.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtx-youless.man1.pdf
%{_texmfdistdir}/doc/man/man1/mtxrun.man1.pdf
%{_texmfdistdir}/doc/man/man1/texexec.man1.pdf
%{_texmfdistdir}/doc/man/man1/texmfstart.man1.pdf
%{_texmfdistdir}/fonts/afm/hoekwater/context/contnav.afm
%{_texmfdistdir}/fonts/cid/fontforge/Adobe-CNS1-4.cidmap
%{_texmfdistdir}/fonts/cid/fontforge/Adobe-GB1-4.cidmap
%{_texmfdistdir}/fonts/cid/fontforge/Adobe-Identity-0.cidmap
%{_texmfdistdir}/fonts/cid/fontforge/Adobe-Japan1-5.cidmap
%{_texmfdistdir}/fonts/cid/fontforge/Adobe-Japan1-6.cidmap
%{_texmfdistdir}/fonts/cid/fontforge/Adobe-Japan2-0.cidmap
%{_texmfdistdir}/fonts/cid/fontforge/Adobe-Korea1-2.cidmap
%{_texmfdistdir}/fonts/enc/dvips/context/cmin.enc
%{_texmfdistdir}/fonts/enc/dvips/context/cmit.enc
%{_texmfdistdir}/fonts/enc/dvips/context/cmitt.enc
%{_texmfdistdir}/fonts/enc/dvips/context/cmrm.enc
%{_texmfdistdir}/fonts/enc/dvips/context/cmsc.enc
%{_texmfdistdir}/fonts/enc/dvips/context/cmtt.enc
%{_texmfdistdir}/fonts/enc/dvips/context/ec-2004.enc
%{_texmfdistdir}/fonts/enc/dvips/context/q-8r.enc
%{_texmfdistdir}/fonts/enc/dvips/context/teff-trinite.enc
%{_texmfdistdir}/fonts/map/dvips/context/contnav.map
%{_texmfdistdir}/fonts/map/luatex/context/demo-font.lum
%{_texmfdistdir}/fonts/map/pdftex/context/8r-base.map
%{_texmfdistdir}/fonts/map/pdftex/context/ec-base.map
%{_texmfdistdir}/fonts/map/pdftex/context/ec-os-public-lm.map
%{_texmfdistdir}/fonts/map/pdftex/context/mkiv-base.map
%{_texmfdistdir}/fonts/map/pdftex/context/mkiv-px.map
%{_texmfdistdir}/fonts/map/pdftex/context/mkiv-tx.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-adobe-euro.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-ams-base.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-ams-cmr.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-ams-euler.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-base.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-context-symbol.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-dummy.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-empty.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-micropress-informal.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-public-csr.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-public-lm.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-public-plr.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-public-vnr.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-vogel-symbol.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-wasy.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-youngryu-px.map
%{_texmfdistdir}/fonts/map/pdftex/context/original-youngryu-tx.map
%{_texmfdistdir}/fonts/map/pdftex/context/qx-base.map
%{_texmfdistdir}/fonts/map/pdftex/context/qx-os-public-lm.map
%{_texmfdistdir}/fonts/map/pdftex/context/t5-base.map
%{_texmfdistdir}/fonts/map/pdftex/context/t5-os-public-lm.map
%{_texmfdistdir}/fonts/map/pdftex/context/texnansi-base.map
%{_texmfdistdir}/fonts/map/pdftex/context/texnansi-os-public-lm.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/context/tlig.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/context/tlig.tec
%{_texmfdistdir}/fonts/tfm/hoekwater/context/contnav.tfm
%{_texmfdistdir}/fonts/type1/hoekwater/context/contnav.pfb
%{_texmfdistdir}/fonts/type1/hoekwater/context/contnav.pfm
%{_texmfdistdir}/metapost/context/base/common/metafun.mp
%{_texmfdistdir}/metapost/context/base/common/mp-back.mp
%{_texmfdistdir}/metapost/context/base/common/mp-fobg.mp
%{_texmfdistdir}/metapost/context/base/common/mp-symb.mp
%{_texmfdistdir}/metapost/context/base/mpii/metafun.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-back.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-base.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-butt.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-char.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-core.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-figs.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-fobg.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-form.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-func.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-grid.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-grph.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-page.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-shap.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-spec.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-step.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-symb.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-text.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-tool.mpii
%{_texmfdistdir}/metapost/context/base/mpii/mp-txts.mpii
%{_texmfdistdir}/metapost/context/base/mpiv/metafun.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/metafun.mpxl
%{_texmfdistdir}/metapost/context/base/mpiv/minifun.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/minifun.mpxl
%{_texmfdistdir}/metapost/context/base/mpiv/mp-abck.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-apos.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-asnc.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-back.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-bare.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-base.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-blob.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-butt.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-char.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-chem.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-core.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-cont.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-cont.mpxl
%{_texmfdistdir}/metapost/context/base/mpiv/mp-cows.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-crop.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-figs.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-fobg.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-form.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-func.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-grap.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-grid.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-grph.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-idea.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-lmtx.mpxl
%{_texmfdistdir}/metapost/context/base/mpiv/mp-luas.mpxl
%{_texmfdistdir}/metapost/context/base/mpiv/mp-luas.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-math.mpxl
%{_texmfdistdir}/metapost/context/base/mpiv/mp-mlib.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-node.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-page.mpxl
%{_texmfdistdir}/metapost/context/base/mpiv/mp-page.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-shap.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-step.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-symb.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-text.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-tool.mpiv
%{_texmfdistdir}/metapost/context/base/mpiv/mp-tres.mpiv
%{_texmfdistdir}/metapost/context/fonts/mpiv/bidi-symbols.mp
%{_texmfdistdir}/metapost/context/fonts/mpiv/bidi-symbols.tex
%{_texmfdistdir}/metapost/context/fonts/mpiv/demo-symbols.mp
%{_texmfdistdir}/metapost/context/fonts/mpiv/demo-symbols.tex
%{_texmfdistdir}/metapost/context/fonts/mpiv/punkfont-bold.mp
%{_texmfdistdir}/metapost/context/fonts/mpiv/punkfont-boldslanted.mp
%{_texmfdistdir}/metapost/context/fonts/mpiv/punkfont-characters.mp
%{_texmfdistdir}/metapost/context/fonts/mpiv/punkfont-definitions.mp
%{_texmfdistdir}/metapost/context/fonts/mpiv/punkfont-slanted.mp
%{_texmfdistdir}/metapost/context/fonts/mpiv/punkfont.mp
%{_texmfdistdir}/scripts/context/lua/context.lua
%{_texmfdistdir}/scripts/context/lua/mtx-babel.lua
%{_texmfdistdir}/scripts/context/lua/mtx-base.lua
%{_texmfdistdir}/scripts/context/lua/mtx-bibtex.lua
%{_texmfdistdir}/scripts/context/lua/mtx-cache.lua
%{_texmfdistdir}/scripts/context/lua/mtx-chars.lua
%{_texmfdistdir}/scripts/context/lua/mtx-check.lua
%{_texmfdistdir}/scripts/context/lua/mtx-colors.lua
%{_texmfdistdir}/scripts/context/lua/mtx-context.lua
%{_texmfdistdir}/scripts/context/lua/mtx-context.xml
%{_texmfdistdir}/scripts/context/lua/mtx-convert.lua
%{_texmfdistdir}/scripts/context/lua/mtx-dvi.lua
%{_texmfdistdir}/scripts/context/lua/mtx-epub.lua
%{_texmfdistdir}/scripts/context/lua/mtx-evohome.lua
%{_texmfdistdir}/scripts/context/lua/mtx-fcd.lua
%{_texmfdistdir}/scripts/context/lua/mtx-flac.lua
%{_texmfdistdir}/scripts/context/lua/mtx-fonts.lua
%{_texmfdistdir}/scripts/context/lua/mtx-grep.lua
%{_texmfdistdir}/scripts/context/lua/mtx-install.lua
%{_texmfdistdir}/scripts/context/lua/mtx-interface.lua
%{_texmfdistdir}/scripts/context/lua/mtx-metapost.lua
%{_texmfdistdir}/scripts/context/lua/mtx-mk-help.lua
%{_texmfdistdir}/scripts/context/lua/mtx-modules.lua
%{_texmfdistdir}/scripts/context/lua/mtx-package.lua
%{_texmfdistdir}/scripts/context/lua/mtx-patterns.lua
%{_texmfdistdir}/scripts/context/lua/mtx-pdf.lua
%{_texmfdistdir}/scripts/context/lua/mtx-plain.lua
%{_texmfdistdir}/scripts/context/lua/mtx-profile.lua
%{_texmfdistdir}/scripts/context/lua/mtx-rsync.lua
%{_texmfdistdir}/scripts/context/lua/mtx-scite.lua
%{_texmfdistdir}/scripts/context/lua/mtx-server-ctx-fonttest.lua
%{_texmfdistdir}/scripts/context/lua/mtx-server-ctx-help.lua
%{_texmfdistdir}/scripts/context/lua/mtx-server-ctx-startup.lua
%{_texmfdistdir}/scripts/context/lua/mtx-server.lua
%{_texmfdistdir}/scripts/context/lua/mtx-synctex.lua
%{_texmfdistdir}/scripts/context/lua/mtx-texworks.lua
%{_texmfdistdir}/scripts/context/lua/mtx-timing.lua
%{_texmfdistdir}/scripts/context/lua/mtx-tools.lua
%{_texmfdistdir}/scripts/context/lua/mtx-unicode.lua
%{_texmfdistdir}/scripts/context/lua/mtx-unzip.lua
%{_texmfdistdir}/scripts/context/lua/mtx-update.lua
%{_texmfdistdir}/scripts/context/lua/mtx-vscode.lua
%{_texmfdistdir}/scripts/context/lua/mtx-watch.lua
%{_texmfdistdir}/scripts/context/lua/mtx-youless.lua
%{_texmfdistdir}/scripts/context/lua/mtxlibs.lua
%{_texmfdistdir}/scripts/context/lua/mtxrun.lua
%{_texmfdistdir}/scripts/context/perl/makempy.pl
%{_texmfdistdir}/scripts/context/perl/path_tre.pm
%{_texmfdistdir}/scripts/context/perl/pdftrimwhite.pl
%{_texmfdistdir}/scripts/context/perl/texfind.pl
%{_texmfdistdir}/scripts/context/perl/texfont.pl
%{_texmfdistdir}/scripts/context/ruby/base/ctx.rb
%{_texmfdistdir}/scripts/context/ruby/base/exa.rb
%{_texmfdistdir}/scripts/context/ruby/base/file.rb
%{_texmfdistdir}/scripts/context/ruby/base/kpse.rb
%{_texmfdistdir}/scripts/context/ruby/base/kpse/drb.rb
%{_texmfdistdir}/scripts/context/ruby/base/kpse/soap.rb
%{_texmfdistdir}/scripts/context/ruby/base/kpse/trees.rb
%{_texmfdistdir}/scripts/context/ruby/base/kpsedirect.rb
%{_texmfdistdir}/scripts/context/ruby/base/kpsefast.rb
%{_texmfdistdir}/scripts/context/ruby/base/kpseremote.rb
%{_texmfdistdir}/scripts/context/ruby/base/kpserunner.rb
%{_texmfdistdir}/scripts/context/ruby/base/logger.rb
%{_texmfdistdir}/scripts/context/ruby/base/merge.rb
%{_texmfdistdir}/scripts/context/ruby/base/mp.rb
%{_texmfdistdir}/scripts/context/ruby/base/pdf.rb
%{_texmfdistdir}/scripts/context/ruby/base/state.rb
%{_texmfdistdir}/scripts/context/ruby/base/switch.rb
%{_texmfdistdir}/scripts/context/ruby/base/system.rb
%{_texmfdistdir}/scripts/context/ruby/base/tex.rb
%{_texmfdistdir}/scripts/context/ruby/base/texutil.rb
%{_texmfdistdir}/scripts/context/ruby/base/tool.rb
%{_texmfdistdir}/scripts/context/ruby/base/variables.rb
%{_texmfdistdir}/scripts/context/ruby/concheck.rb
%{_texmfdistdir}/scripts/context/ruby/ctxtools.rb
%{_texmfdistdir}/scripts/context/ruby/graphics/gs.rb
%{_texmfdistdir}/scripts/context/ruby/graphics/inkscape.rb
%{_texmfdistdir}/scripts/context/ruby/graphics/magick.rb
%{_texmfdistdir}/scripts/context/ruby/imgtopdf.rb
%{_texmfdistdir}/scripts/context/ruby/pdftools.rb
%{_texmfdistdir}/scripts/context/ruby/pstopdf.rb
%{_texmfdistdir}/scripts/context/ruby/rlxtools.rb
%{_texmfdistdir}/scripts/context/ruby/rscortool.rb
%{_texmfdistdir}/scripts/context/ruby/rsfiltool.rb
%{_texmfdistdir}/scripts/context/ruby/rslb/base.rb
%{_texmfdistdir}/scripts/context/ruby/rslibtool.rb
%{_texmfdistdir}/scripts/context/ruby/runtools.rb
%{_texmfdistdir}/scripts/context/ruby/texexec.rb
%{_texmfdistdir}/scripts/context/ruby/texmfstart.rb
%{_texmfdistdir}/scripts/context/ruby/textools.rb
%{_texmfdistdir}/scripts/context/ruby/texutil.rb
%{_texmfdistdir}/scripts/context/ruby/tmftools.rb
%{_texmfdistdir}/scripts/context/ruby/xmltools.rb
%{_texmfdistdir}/tex/context/base/context-version.pdf
%{_texmfdistdir}/tex/context/base/context-version.png
%{_texmfdistdir}/tex/context/base/context.rme
%{_texmfdistdir}/tex/context/base/mkii/anch-bar.mkii
%{_texmfdistdir}/tex/context/base/mkii/anch-pgr.mkii
%{_texmfdistdir}/tex/context/base/mkii/anch-pos.mkii
%{_texmfdistdir}/tex/context/base/mkii/anch-snc.mkii
%{_texmfdistdir}/tex/context/base/mkii/bibl-tra.mkii
%{_texmfdistdir}/tex/context/base/mkii/buff-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/buff-ver.mkii
%{_texmfdistdir}/tex/context/base/mkii/catc-act.mkii
%{_texmfdistdir}/tex/context/base/mkii/catc-ctx.mkii
%{_texmfdistdir}/tex/context/base/mkii/catc-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/catc-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/catc-sym.mkii
%{_texmfdistdir}/tex/context/base/mkii/catc-xml.mkii
%{_texmfdistdir}/tex/context/base/mkii/colo-ema.mkii
%{_texmfdistdir}/tex/context/base/mkii/colo-ext.mkii
%{_texmfdistdir}/tex/context/base/mkii/colo-hex.mkii
%{_texmfdistdir}/tex/context/base/mkii/colo-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/colo-rgb.mkii
%{_texmfdistdir}/tex/context/base/mkii/colo-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/colo-x11.mkii
%{_texmfdistdir}/tex/context/base/mkii/colo-xwi.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-cs.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-de.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-en.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-err.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-fil.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-fr.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-gb.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-it.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-log.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-new.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-nl.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-ro.mkii
%{_texmfdistdir}/tex/context/base/mkii/cont-sys.ori
%{_texmfdistdir}/tex/context/base/mkii/context.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-con.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-ctx.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-env.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-fil.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-fnt.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-gen.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-job.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-mis.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-par.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-stg.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-sys.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-two.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-uti.mkii
%{_texmfdistdir}/tex/context/base/mkii/core-var.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-032.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-037.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-acc.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-agr.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-ans.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-cas.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-chi.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-com.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-cyr.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-ec.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-ecm.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-el.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-fde.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-ffr.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-fpl.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-fro.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-fsl.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-grk.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-heb.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-ibm.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-il2.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-l7x.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-lat.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-mis.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-pdf.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-pfr.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-pol.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-qx.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-raw.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-t5.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-tbo.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-uc.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-vis.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-vna.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-win.mkii
%{_texmfdistdir}/tex/context/base/mkii/enco-x5.mkii
%{_texmfdistdir}/tex/context/base/mkii/filt-bas.mkii
%{_texmfdistdir}/tex/context/base/mkii/filt-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-arb.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-bfm.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-chi.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-heb.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-jap.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-uni.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-unk.mkii
%{_texmfdistdir}/tex/context/base/mkii/font-xtx.mkii
%{_texmfdistdir}/tex/context/base/mkii/grph-fig.mkii
%{_texmfdistdir}/tex/context/base/mkii/grph-inc.mkii
%{_texmfdistdir}/tex/context/base/mkii/grph-trf.mkii
%{_texmfdistdir}/tex/context/base/mkii/hand-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/hand-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/java-ans.mkii
%{_texmfdistdir}/tex/context/base/mkii/java-exa.mkii
%{_texmfdistdir}/tex/context/base/mkii/java-fil.mkii
%{_texmfdistdir}/tex/context/base/mkii/java-fld.mkii
%{_texmfdistdir}/tex/context/base/mkii/java-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/java-stp.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-alt.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-ana.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-art.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-bal.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-cel.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-chi.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-ctx.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-cyr.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-dis.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-frd.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-frq.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-ger.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-grk.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-ind.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-ita.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-jap.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-lab.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-mis.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-sla.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-spa.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-spe.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-ura.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-url.mkii
%{_texmfdistdir}/tex/context/base/mkii/lang-vn.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-ams.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-arr.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-cow.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-eul.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-fou.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-frc.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-lbr.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-pln.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-tex.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-tim.mkii
%{_texmfdistdir}/tex/context/base/mkii/math-uni.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-clp.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-dum.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-fig.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-mis.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-nav.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-pag.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-pdf.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-pre.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-tex.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-txt.mkii
%{_texmfdistdir}/tex/context/base/mkii/meta-xml.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-aux.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-chk.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-com.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-con.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-cs.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-de.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-en.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-fr.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-fst.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-it.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-mcs.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-mde.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-men.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-mfr.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-mit.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-mnl.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-mno.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-mpe.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-mro.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-nl.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-pe.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-ro.mkii
%{_texmfdistdir}/tex/context/base/mkii/mult-sys.mkii
%{_texmfdistdir}/tex/context/base/mkii/norm-alo.mkii
%{_texmfdistdir}/tex/context/base/mkii/norm-ctx.mkii
%{_texmfdistdir}/tex/context/base/mkii/norm-etx.mkii
%{_texmfdistdir}/tex/context/base/mkii/norm-ltx.mkii
%{_texmfdistdir}/tex/context/base/mkii/norm-ptx.mkii
%{_texmfdistdir}/tex/context/base/mkii/norm-tex.mkii
%{_texmfdistdir}/tex/context/base/mkii/norm-xtx.mkii
%{_texmfdistdir}/tex/context/base/mkii/pack-box.mkii
%{_texmfdistdir}/tex/context/base/mkii/pack-lyr.mkii
%{_texmfdistdir}/tex/context/base/mkii/pack-obj.mkii
%{_texmfdistdir}/tex/context/base/mkii/pack-rul.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-app.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-bck.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-flw.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-imp.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-ins.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-lay.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-lin.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-log.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-mak.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-mar.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-mis.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-mul.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-not.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-one.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-par.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-plg.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-set.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-sid.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-spr.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-str.mkii
%{_texmfdistdir}/tex/context/base/mkii/page-txt.mkii
%{_texmfdistdir}/tex/context/base/mkii/pdfr-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/pdfr-ec.mkii
%{_texmfdistdir}/tex/context/base/mkii/pdfr-il2.mkii
%{_texmfdistdir}/tex/context/base/mkii/prop-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/prop-lay.mkii
%{_texmfdistdir}/tex/context/base/mkii/prop-mis.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-1.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-10.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-13.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-15.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-16.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-2.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-3.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-4.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-5.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-7.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-8859-9.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-cp1250.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-cp1251.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-cp1252.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-cp1253.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-cp1254.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-cp1257.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-cyp.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-cyr.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-ibm.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-mac.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-syn.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-uni.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-utf.mkii
%{_texmfdistdir}/tex/context/base/mkii/regi-vis.mkii
%{_texmfdistdir}/tex/context/base/mkii/scrn-fld.mkii
%{_texmfdistdir}/tex/context/base/mkii/scrn-hlp.mkii
%{_texmfdistdir}/tex/context/base/mkii/scrn-int.mkii
%{_texmfdistdir}/tex/context/base/mkii/scrn-nav.mkii
%{_texmfdistdir}/tex/context/base/mkii/sort-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/sort-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/sort-lan.mkii
%{_texmfdistdir}/tex/context/base/mkii/spac-gen.mkii
%{_texmfdistdir}/tex/context/base/mkii/spac-grd.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-dpm.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-dpx.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-dvi.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-fdf.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-mis.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-pdf.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-ps.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-tpd.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-tr.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-tst.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-var.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-win.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-xet.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-xtx.mkii
%{_texmfdistdir}/tex/context/base/mkii/spec-yy.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-blk.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-des.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-flt.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-itm.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-lnt.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-lst.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-mar.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-mat.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-not.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-num.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-pag.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-ref.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-reg.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-sec.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-swd.mkii
%{_texmfdistdir}/tex/context/base/mkii/strc-syn.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-ali.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-box.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-dir.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-emp.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-eps.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-fil.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-fun.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-lat.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-mat.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-mis.tex
%{_texmfdistdir}/tex/context/base/mkii/supp-mpe.tex
%{_texmfdistdir}/tex/context/base/mkii/supp-mps.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-mrk.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-num.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-pat.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-pdf.tex
%{_texmfdistdir}/tex/context/base/mkii/supp-ran.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-spe.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-tpi.mkii
%{_texmfdistdir}/tex/context/base/mkii/supp-vis.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-cow.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-eur.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-glm.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-jmn.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-mis.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-mvs.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-nav.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-uni.mkii
%{_texmfdistdir}/tex/context/base/mkii/symb-was.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-con.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-ext.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-fnt.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-gen.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-new.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-pln.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-rtp.mkii
%{_texmfdistdir}/tex/context/base/mkii/syst-str.mkii
%{_texmfdistdir}/tex/context/base/mkii/tabl-com.mkii
%{_texmfdistdir}/tex/context/base/mkii/tabl-ltb.mkii
%{_texmfdistdir}/tex/context/base/mkii/tabl-ntb.mkii
%{_texmfdistdir}/tex/context/base/mkii/tabl-nte.mkii
%{_texmfdistdir}/tex/context/base/mkii/tabl-pln.mkii
%{_texmfdistdir}/tex/context/base/mkii/tabl-tab.mkii
%{_texmfdistdir}/tex/context/base/mkii/tabl-tbl.mkii
%{_texmfdistdir}/tex/context/base/mkii/tabl-tsp.mkii
%{_texmfdistdir}/tex/context/base/mkii/thrd-pic.mkii
%{_texmfdistdir}/tex/context/base/mkii/thrd-ran.mkii
%{_texmfdistdir}/tex/context/base/mkii/thrd-tab.mkii
%{_texmfdistdir}/tex/context/base/mkii/thrd-trg.mkii
%{_texmfdistdir}/tex/context/base/mkii/trac-vis.mkii
%{_texmfdistdir}/tex/context/base/mkii/type-def.mkii
%{_texmfdistdir}/tex/context/base/mkii/type-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/type-one.mkii
%{_texmfdistdir}/tex/context/base/mkii/type-otf.mkii
%{_texmfdistdir}/tex/context/base/mkii/type-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/type-set.mkii
%{_texmfdistdir}/tex/context/base/mkii/type-siz.mkii
%{_texmfdistdir}/tex/context/base/mkii/type-tmf.mkii
%{_texmfdistdir}/tex/context/base/mkii/typo-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-000.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-001.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-002.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-003.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-004.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-005.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-030.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-031.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-032.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-033.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-034.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-035.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-037.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-039.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-251.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-cjk.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-exp.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/unic-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-c.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-eif.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-js.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-jv.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-mp.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-pas.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-pl.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-raw.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-sql.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-tex.mkii
%{_texmfdistdir}/tex/context/base/mkii/verb-xml.mkii
%{_texmfdistdir}/tex/context/base/mkii/xetx-chr.mkii
%{_texmfdistdir}/tex/context/base/mkii/xetx-cls.mkii
%{_texmfdistdir}/tex/context/base/mkii/xetx-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/xetx-utf.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-cml.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-ent.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-exp.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-ext.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-hyp.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-ini.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-map.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mea.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-meb.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mec.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-meh.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-men.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-meo.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mer.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mmc.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mml.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mmp.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mxa.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mxb.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mxc.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mxh.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mxn.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mxo.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-mxr.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-pml.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-pmu.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-pre.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-prs.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-raw.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-rng.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-run.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-stk.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-utf.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-xsd.mkii
%{_texmfdistdir}/tex/context/base/mkii/xtag-xsl.mkii
%{_texmfdistdir}/tex/context/base/mkiv/anch-bar.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/anch-bck.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/anch-pgr.lua
%{_texmfdistdir}/tex/context/base/mkiv/anch-pgr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/anch-pos.lua
%{_texmfdistdir}/tex/context/base/mkiv/anch-pos.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/anch-snc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/anch-snc.lua
%{_texmfdistdir}/tex/context/base/mkiv/anch-tab.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/attr-col.lua
%{_texmfdistdir}/tex/context/base/mkiv/attr-col.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/attr-eff.lua
%{_texmfdistdir}/tex/context/base/mkiv/attr-eff.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/attr-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/attr-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/attr-lay.lua
%{_texmfdistdir}/tex/context/base/mkiv/attr-lay.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/attr-mkr.lua
%{_texmfdistdir}/tex/context/base/mkiv/attr-mkr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/attr-neg.lua
%{_texmfdistdir}/tex/context/base/mkiv/attr-neg.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/back-exp.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-exp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/back-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-ini.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/back-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/back-pdf.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-pdf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/back-pdf.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/back-pdp.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-swf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/back-u3d.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/bibl-bib.lua
%{_texmfdistdir}/tex/context/base/mkiv/bibl-bib.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/back-res.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-res.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/back-trf.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-trf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/bibl-tra.lua
%{_texmfdistdir}/tex/context/base/mkiv/bibl-tra.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/bibl-tst.lua
%{_texmfdistdir}/tex/context/base/mkiv/blob-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/blob-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-default.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-default.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-escaped.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-escaped.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-lua.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-mp.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-mp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-nested.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-nested.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-parsed-xml.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-parsed-xml.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-tex.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-tex.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-xml.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-imp-xml.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/buff-ver.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/back-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-lua.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/back-mps.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-mps.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/back-out.lua
%{_texmfdistdir}/tex/context/base/mkiv/back-out.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/buff-par.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-par.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/buff-ver.lua
%{_texmfdistdir}/tex/context/base/mkiv/buff-ver.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/bxml-apa.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/catc-act.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/catc-ctx.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/catc-def.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/catc-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/catc-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/catc-sym.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/catc-xml.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/char-act.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/char-cjk.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-def.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-emj.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-enc.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-enc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/char-ent.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-fio.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/char-map.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-prv.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-tex.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-utf.lua
%{_texmfdistdir}/tex/context/base/mkiv/char-utf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/chem-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/chem-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/chem-str.lua
%{_texmfdistdir}/tex/context/base/mkiv/chem-str.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cldf-bas.lua
%{_texmfdistdir}/tex/context/base/mkiv/cldf-bas.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cldf-com.lua
%{_texmfdistdir}/tex/context/base/mkiv/cldf-com.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cldf-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/cldf-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cldf-int.lua
%{_texmfdistdir}/tex/context/base/mkiv/cldf-int.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cldf-prs.lua
%{_texmfdistdir}/tex/context/base/mkiv/cldf-scn.lua
%{_texmfdistdir}/tex/context/base/mkiv/cldf-stp.lua
%{_texmfdistdir}/tex/context/base/mkiv/cldf-ver.lua
%{_texmfdistdir}/tex/context/base/mkiv/cldf-ver.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-ext.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-grp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-icc.lua
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-crayola.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-dem.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-ema.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-rainbow.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-ral.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-rgb.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-solarized.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-svg.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-ini.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-x11.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-imp-xwi.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/colo-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/colo-run.lua
%{_texmfdistdir}/tex/context/base/mkiv/colo-run.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-cs.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-cs.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-de.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-de.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-en.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-en.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-fil.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-fr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-fr.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-gb.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-gb.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-it.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-it.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-log.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-new.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-nl.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-nl.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-nop.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-pe.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-pe.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-ro.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-ro.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/cont-run.lua
%{_texmfdistdir}/tex/context/base/mkiv/cont-run.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/cont-yes.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/context-base.lmx
%{_texmfdistdir}/tex/context/base/mkiv/context-characters.lmx
%{_texmfdistdir}/tex/context/base/mkiv/context-debug.lmx
%{_texmfdistdir}/tex/context/base/mkiv/context-error.lmx
%{_texmfdistdir}/tex/context/base/mkiv/context-fonttest.lmx
%{_texmfdistdir}/tex/context/base/mkiv/context-help.lmx
%{_texmfdistdir}/tex/context/base/mkiv/context-lmtx-error.pdf
%{_texmfdistdir}/tex/context/base/mkiv/context-lmtx-error.tex
%{_texmfdistdir}/tex/context/base/mkiv/context-performance.tex
%{_texmfdistdir}/tex/context/base/mkiv/context-timing.lmx
%{_texmfdistdir}/tex/context/base/mkiv/context-todo.tex
%{_texmfdistdir}/tex/context/base/mkiv/context.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/context.css
%{_texmfdistdir}/tex/context/base/mkiv/context.lus
%{_texmfdistdir}/tex/context/base/mkiv/context.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-con.lua
%{_texmfdistdir}/tex/context/base/mkiv/core-con.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-ctx.ctx
%{_texmfdistdir}/tex/context/base/mkiv/core-ctx.lua
%{_texmfdistdir}/tex/context/base/mkiv/core-ctx.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-dat.lua
%{_texmfdistdir}/tex/context/base/mkiv/core-dat.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-def.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-env.lua
%{_texmfdistdir}/tex/context/base/mkiv/core-env.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-lmt.lua
%{_texmfdistdir}/tex/context/base/mkiv/core-lmt.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/core-sys.lua
%{_texmfdistdir}/tex/context/base/mkiv/core-sys.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-two.lua
%{_texmfdistdir}/tex/context/base/mkiv/core-two.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/core-uti.lua
%{_texmfdistdir}/tex/context/base/mkiv/core-uti.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/data-aux.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-bin.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-con.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-crl.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-ctx.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-env.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-exp.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-fil.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-gen.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-inp.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-lst.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-met.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-out.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-pre.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-res.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-sch.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-tex.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-tmf.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-tmp.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-tre.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-use.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-vir.lua
%{_texmfdistdir}/tex/context/base/mkiv/data-zip.lua
%{_texmfdistdir}/tex/context/base/mkiv/driv-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/driv-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/driv-ini.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/driv-shp.lua
%{_texmfdistdir}/tex/context/base/mkiv/driv-shp.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/enco-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/example.rng
%{_texmfdistdir}/tex/context/base/mkiv/export-example.css
%{_texmfdistdir}/tex/context/base/mkiv/export-example.rng
%{_texmfdistdir}/tex/context/base/mkiv/export-example.tex
%{_texmfdistdir}/tex/context/base/mkiv/file-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/file-ini.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/file-job.lua
%{_texmfdistdir}/tex/context/base/mkiv/file-job.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/file-lib.lua
%{_texmfdistdir}/tex/context/base/mkiv/file-lib.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/file-mod.lua
%{_texmfdistdir}/tex/context/base/mkiv/file-mod.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/file-res.lua
%{_texmfdistdir}/tex/context/base/mkiv/file-res.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/file-syn.lua
%{_texmfdistdir}/tex/context/base/mkiv/file-syn.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-afk.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-age.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-agl.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-aux.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-aux.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-cff.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-cft.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-chk.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-chk.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/font-cid.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-col.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-col.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-con.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ctx.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-def.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-dsp.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-emp.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-emp.mklx
%{_texmfdistdir}/tex/context/base/mkiv/font-enc.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-enh.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-fbk.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-fea.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-fil.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-fil.mklx
%{_texmfdistdir}/tex/context/base/mkiv/font-gds.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-hsh.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-dimensions.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-effects.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-italics.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-ligatures.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-math.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-notused.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-properties.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-quality.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-reorder.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-spacekerns.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-tex.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-tracing.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-tweaks.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-imp-unicode.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ini.mklx
%{_texmfdistdir}/tex/context/base/mkiv/font-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ini.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-lib.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-lig.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-log.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-map.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-mat.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-mat.mklx
%{_texmfdistdir}/tex/context/base/mkiv/font-mis.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-mps.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-nod.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ocl.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ogr.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-one.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-onr.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-osd.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ota.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-otc.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-otd.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-oth.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-oti.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-otj.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-otl.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-oto.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-otr.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ots.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ott.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-oup.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-pat.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-pre.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/font-prv.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-run.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/font-sel.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-sel.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-set.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-shp.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-sol.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-sol.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-sty.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-sty.mklx
%{_texmfdistdir}/tex/context/base/mkiv/font-sym.mklx
%{_texmfdistdir}/tex/context/base/mkiv/font-sym.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-syn.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-tfm.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-tpk.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-tra.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/font-trt.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-ttf.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-uni.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/font-unk.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/font-var.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/font-vfc.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-vir.lua
%{_texmfdistdir}/tex/context/base/mkiv/font-web.lua
%{_texmfdistdir}/tex/context/base/mkiv/good-ctx.lua
%{_texmfdistdir}/tex/context/base/mkiv/good-gen.lua
%{_texmfdistdir}/tex/context/base/mkiv/good-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/good-mth.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-bmp.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-con.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-chk.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-epd.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-epd.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/grph-fig.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/grph-fil.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-img.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-inc.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-inc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/grph-mem.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-pat.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-pat.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/grph-raw.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-raw.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/grph-rul.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-rul.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/grph-swf.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-trf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/grph-u3d.lua
%{_texmfdistdir}/tex/context/base/mkiv/grph-wnd.lua
%{_texmfdistdir}/tex/context/base/mkiv/hand-ini.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/hand-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/java-imp-example.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/java-imp-fields.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/java-imp-highlight.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/java-imp-print.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/java-imp-steps.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/java-imp-videoplayer.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/java-imp-vplayer.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/java-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/java-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/l-bit32.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-boolean.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-dir.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-file.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-function.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-gzip.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-io.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-lpeg.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-math.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-macro-imp-optimize.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-macro.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-md5.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-number.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-os.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-package.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-pdfview.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-sandbox.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-set.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-sha.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-string.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-table.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-unicode.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-url.lua
%{_texmfdistdir}/tex/context/base/mkiv/l-xml.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-cnt.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-def.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-def.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-dis.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-exc.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-exp.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-frd.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-frq-de.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-frq-en.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-frq-nl.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-frq-pt.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-frq.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-hyp.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-hyp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-ini.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/lang-lab.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/lang-lab.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-lab.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-mis.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-rep.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-rep.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-spa.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-txt.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-url.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-url.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lang-wrd.lua
%{_texmfdistdir}/tex/context/base/mkiv/lang-wrd.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/layo-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/layo-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-curl.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-ghostscript.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-graphicsmagick.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-mujs.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-mujs.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-mysql.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-postgress.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-sqlite.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-zint.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-imp-zint.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/libs-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/libs-ini.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-ano.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-aux.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-col.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-emb.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-enc.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-eng.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-epa.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-fld.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-fmt.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-fnt.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-grp.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-img.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-lmt.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-mis.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-mov.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-nod.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-pda.xml
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-pde.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-pdx.xml
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-pua.xml
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-ren.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-res.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-soc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-swf.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-tag.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-u3d.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-wid.lua
%{_texmfdistdir}/tex/context/base/mkiv/lpdf-xmp.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-bas.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/luat-bwc.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-cbk.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-cnf.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-cod.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-cod.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/luat-env.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-exe.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-fio.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-fmt.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/luat-iop.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-lib.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/luat-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-mac.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-run.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-sta.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-sto.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-usr.lua
%{_texmfdistdir}/tex/context/base/mkiv/luat-usr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lxml-aux.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-css.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-css.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lxml-ctx.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-ctx.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lxml-dir.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-ent.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-inf.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lxml-lpt.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-mis.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-sor.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-sor.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/lxml-tab.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-tex.lua
%{_texmfdistdir}/tex/context/base/mkiv/lxml-xml.lua
%{_texmfdistdir}/tex/context/base/mkiv/m-gnuplot.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/m-fonts-plugins.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/m-newcolumnsets.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/m-oldbibtex.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-acc.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/math-act.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-ali.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-arr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-def.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-del.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-dim.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-dir.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-dis.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-ext.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-fbk.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-fen.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-for.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-frc.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-frc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-inc.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-inc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-inl.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-int.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-map.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-mis.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-noa.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-pln.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-rad.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/math-ren.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-scr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/math-spa.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-stc.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/math-tag.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-ttv.lua
%{_texmfdistdir}/tex/context/base/mkiv/math-vfu.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-blb.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-blb.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-fig.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-fnt.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-fnt.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-fun.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-fun.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-grd.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-clp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-dum.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-fen.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-gamesymbols.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-grid.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-mat.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-mis.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-nav.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-outlines.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-pre.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-symbols.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-tab.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-threesix.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/meta-imp-txt.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-ini.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/meta-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-lua.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-mac.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/meta-nod.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-nod.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-pag.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/meta-pag.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-pdf.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-pdf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-pdh.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-pdh.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-tex.lua
%{_texmfdistdir}/tex/context/base/mkiv/meta-tex.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/meta-xml.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mlib-cnt.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-ctx.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-ctx.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mlib-ctx.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/mlib-int.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-lmp.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-lmt.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-mat.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-pdf.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-pdf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mlib-pdf.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/mlib-scn.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-pps.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-pps.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mlib-run.lua
%{_texmfdistdir}/tex/context/base/mkiv/mlib-svg.lua
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-arrange.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-combine.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-common.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-compare.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-copy.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-domotica.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-fonts.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-ideas.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-listing.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-meaning.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-module.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-precache.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-select.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-setups.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-sql.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-timing.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-trim.tex
%{_texmfdistdir}/tex/context/base/mkiv/mtx-context-xml.tex
%{_texmfdistdir}/tex/context/base/mkiv/mult-aux.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-aux.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mult-aux.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/mult-chk.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-chk.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mult-def.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-def.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mult-dim.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/mult-fun.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mult-low.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-mes.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-mps.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-prm.lua
%{_texmfdistdir}/tex/context/base/mkiv/mult-prm.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/mult-sys.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/node-acc.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-aux.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-bck.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-bck.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/node-cmp.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-dir.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-ext.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-fin.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-fin.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/node-fnt.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/node-ltp.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-met.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-mig.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-mig.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/node-nut.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-pag.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-pag.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/node-par.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-ppt.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-pro.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-ref.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-res.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-rul.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-rul.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/node-scn.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-ser.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-shp.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-snp.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-syn.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-tex.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-tra.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-tsk.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-tst.lua
%{_texmfdistdir}/tex/context/base/mkiv/node-typ.lua
%{_texmfdistdir}/tex/context/base/mkiv/norm-ctx.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-bar.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-bck.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/pack-box.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-com.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-cut.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-fen.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-lyr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-lyr.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/pack-mis.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/pack-mrl.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-obj.lua
%{_texmfdistdir}/tex/context/base/mkiv/pack-obj.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-ori.lua
%{_texmfdistdir}/tex/context/base/mkiv/pack-ori.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/pack-pos.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-rul.lua
%{_texmfdistdir}/tex/context/base/mkiv/pack-rul.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/pack-rul.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/page-app.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-bck.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-box.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/page-brk.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-col.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-com.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-cst.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-cst.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-fac.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-ffl.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-flt.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-flt.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-flw.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-imp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-inf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-inj.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-inj.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/page-ins.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-ins.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-lay.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-lin.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-lin.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/page-mak.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/page-mbk.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/page-mix.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-mix.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-mrk.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-mul.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-not.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-one.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-otr.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-otr.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/page-par.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-plg.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-pcl.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-pst.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-pst.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-run.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-run.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-sel.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/page-set.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-sid.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-smp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-spr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-str.lua
%{_texmfdistdir}/tex/context/base/mkiv/page-str.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/page-txt.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/page-txt.mklx
%{_texmfdistdir}/tex/context/base/mkiv/page-var.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/phys-dim.lua
%{_texmfdistdir}/tex/context/base/mkiv/phys-dim.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/prop-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/publ-aut.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-dat.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-fnd.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-apa.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-apa.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-aps.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-aps.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-author.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-cite.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-chicago.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-chicago.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-commands.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-default.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-default.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-definitions.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-list.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-page.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-replacements.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-imp-test.bib
%{_texmfdistdir}/tex/context/base/mkiv/publ-inc.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-inc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/publ-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/publ-jrn.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-old.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/publ-oth.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-reg.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-sor.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-tra.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-tra.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/publ-usr.lua
%{_texmfdistdir}/tex/context/base/mkiv/publ-usr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/publ-xml.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-1.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-10.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-11.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-13.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-14.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-15.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-16.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-2.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-3.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-4.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-5.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-6.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-7.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-8.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-8859-9.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1250.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1251.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1252.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1253.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1254.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1255.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1256.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1257.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-cp1258.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-demo.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-ibm.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/regi-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/regi-pdfdoc.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrn-bar.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/scrn-but.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrn-but.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/scrn-fld.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrn-fld.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/scrn-hlp.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrn-hlp.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/scrn-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrn-ini.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/scrn-pag.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrn-pag.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/scrn-ref.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrn-ref.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/scrn-wid.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrn-wid.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/scrp-cjk.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrp-eth.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrp-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrp-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/scrp-tha.lua
%{_texmfdistdir}/tex/context/base/mkiv/scrp-tib.lua
%{_texmfdistdir}/tex/context/base/mkiv/sort-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/sort-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/sort-lan.lua
%{_texmfdistdir}/tex/context/base/mkiv/spac-ali.lua
%{_texmfdistdir}/tex/context/base/mkiv/spac-ali.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-chr.lua
%{_texmfdistdir}/tex/context/base/mkiv/spac-chr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-def.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-flr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-grd.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-hor.lua
%{_texmfdistdir}/tex/context/base/mkiv/spac-hor.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-lin.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-pag.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-par.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-prf.lua
%{_texmfdistdir}/tex/context/base/mkiv/spac-prf.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/spac-ver.lua
%{_texmfdistdir}/tex/context/base/mkiv/spac-ver.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/spac-ver.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/status-files.pdf
%{_texmfdistdir}/tex/context/base/mkiv/status-lua.pdf
%{_texmfdistdir}/tex/context/base/mkiv/strc-bkm.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-bkm.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-blk.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-blk.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-con.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-con.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-def.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-des.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-doc.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-doc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-enu.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-flt.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-flt.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-ind.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-ini.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-itm.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-itm.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-itm.mklx
%{_texmfdistdir}/tex/context/base/mkiv/strc-lab.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-lev.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-lev.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-lnt.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-lst.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-lst.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-mar.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-mar.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-mat.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-mat.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-not.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-not.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-num.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-num.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-pag.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-pag.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-ref.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-ref.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/strc-reg.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-reg.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-ren.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-rsc.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-sbe.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-sec.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-syn.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-syn.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-tag.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-tag.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-tnt.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-usr.lua
%{_texmfdistdir}/tex/context/base/mkiv/strc-usr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/strc-xml.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/supp-box.lua
%{_texmfdistdir}/tex/context/base/mkiv/supp-box.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/supp-box.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/supp-dir.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/supp-mat.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/supp-ran.lua
%{_texmfdistdir}/tex/context/base/mkiv/supp-ran.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/supp-vis.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-emj.lua
%{_texmfdistdir}/tex/context/base/mkiv/symb-emj.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-imp-cc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-imp-cow.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-imp-eur.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-imp-fontawesome.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-imp-jmn.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-imp-mis.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-imp-mvs.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-imp-nav.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/symb-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/symb-run.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-aux.lua
%{_texmfdistdir}/tex/context/base/mkiv/syst-aux.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-aux.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/syst-cmp.lua
%{_texmfdistdir}/tex/context/base/mkiv/syst-cmp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-con.lua
%{_texmfdistdir}/tex/context/base/mkiv/syst-con.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-con.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/syst-fnt.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-ini.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/syst-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/syst-lua.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-lua.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/syst-mes.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-pln.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/syst-rtp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-com.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-frm.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-ltb.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-mis.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-ntb.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-ntb.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/tabl-nte.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-pln.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-tab.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-tbl.lua
%{_texmfdistdir}/tex/context/base/mkiv/tabl-tbl.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-tbl.mkxl
%{_texmfdistdir}/tex/context/base/mkiv/tabl-tsp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/tabl-xnt.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/tabl-xtb.lua
%{_texmfdistdir}/tex/context/base/mkiv/tabl-xtb.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/task-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/task-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/toks-aux.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/toks-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/toks-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/toks-map.lua
%{_texmfdistdir}/tex/context/base/mkiv/toks-map.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/toks-scn.lua
%{_texmfdistdir}/tex/context/base/mkiv/toks-scn.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/toks-tra.lua
%{_texmfdistdir}/tex/context/base/mkiv/toks-tra.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/trac-ctx.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-ctx.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/trac-deb.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-deb.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/trac-exp.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-fil.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-inf.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-jus.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-jus.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/trac-lmx.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-log.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-par.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-pro.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-set.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-tex.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-tex.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/trac-tim.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-vis.lua
%{_texmfdistdir}/tex/context/base/mkiv/trac-vis.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/trac-xml.lua
%{_texmfdistdir}/tex/context/base/mkiv/type-def.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/type-fbk.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/type-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/type-ini.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/type-ini.mklx
%{_texmfdistdir}/tex/context/base/mkiv/type-lua.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/type-one.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/type-otf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/type-set.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/type-siz.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/type-tmf.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-bld.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-bld.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-brk.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-brk.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-cap.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-cap.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-chr.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-chr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-cln.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-cln.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-del.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-dha.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-dig.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-dig.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-dir.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-dir.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-drp.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-drp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-dua.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-dub.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-duc.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-fkr.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-fkr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-fln.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-fln.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-inj.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-inj.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-itc.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-itc.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/typo-itm.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-krn.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-krn.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-lan.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-lan.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-lig.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-lin.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-lin.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-man.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-mar.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-mar.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-ovl.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-ovl.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-pag.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-pag.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-par.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-pnc.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-pnc.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-prc.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-prc.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/typo-rep.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-rep.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-rub.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-rub.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-scr.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-spa.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-spa.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-sus.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-sus.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-tal.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-tal.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/typo-txt.mkvi
%{_texmfdistdir}/tex/context/base/mkiv/typo-wrp.lua
%{_texmfdistdir}/tex/context/base/mkiv/typo-wrp.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/unic-ini.lua
%{_texmfdistdir}/tex/context/base/mkiv/unic-ini.mkiv
%{_texmfdistdir}/tex/context/base/mkiv/util-deb.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-dim.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-env.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-evo-imp-server.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-evo.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-fil.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-fmt.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-jsn.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-lib-imp-gm.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-lib-imp-gs.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-lib.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-lua.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-mrg.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-pck.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-prs.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-ran.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sac.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sbx.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sci.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-seq.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-copas.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-ftp.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-headers.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-http.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-ltn12.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-mime.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-reset.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-smtp.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-socket.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-tp.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc-imp-url.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-soc.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sha.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-imp-client.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-imp-library.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-imp-sqlite.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-imp-swiglib.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-imp-ffi.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-loggers.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-logins.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-sessions.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-tickets.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-tracers.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql-users.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sql.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sta.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-sto.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-str.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-tab.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-tpl.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-you.lua
%{_texmfdistdir}/tex/context/base/mkiv/util-zip.lua
%{_texmfdistdir}/tex/context/bib/common/sample.bib
%{_texmfdistdir}/tex/context/bib/mkii/bibl-ams.tex
%{_texmfdistdir}/tex/context/bib/mkii/bibl-apa-de.tex
%{_texmfdistdir}/tex/context/bib/mkii/bibl-apa-fr.tex
%{_texmfdistdir}/tex/context/bib/mkii/bibl-apa-it.tex
%{_texmfdistdir}/tex/context/bib/mkii/bibl-apa.tex
%{_texmfdistdir}/tex/context/bib/mkii/bibl-aps.tex
%{_texmfdistdir}/tex/context/bib/mkii/bibl-num-fr.tex
%{_texmfdistdir}/tex/context/bib/mkii/bibl-num.tex
%{_texmfdistdir}/tex/context/bib/mkii/bibl-ssa.tex
%{_texmfdistdir}/tex/context/colors/icc/context/colorprofiles.lua
%{_texmfdistdir}/tex/context/colors/icc/context/colorprofiles.xml
%{_texmfdistdir}/tex/context/filenames.pdf
%{_texmfdistdir}/tex/context/filenames.tex
%{_texmfdistdir}/tex/context/fonts/mkii/type-buy.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-cbg.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-cow.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-exp.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-fsf.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-ghz.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-hgz.mkii
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-firacode.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-gofonts.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-modernlatin.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-plex.mkiv
%{_texmfdistdir}/tex/context/fonts/mkii/type-mac.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-msw.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-pre.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-win.mkii
%{_texmfdistdir}/tex/context/fonts/mkii/type-xtx.mkii
%{_texmfdistdir}/tex/context/fonts/mkiv/antykwa-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/antykwapoltawskiego.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/asana-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/bonum-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/cambria-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/cambria.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/cc-icons.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/ccicons.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/dejavu-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/demo.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/dingbats.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/ebgaramond.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/euler-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/hanbatanglvt.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/husayni.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/hvmath-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/informal-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/iwona-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/lm-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/lm.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/lucida-opentype-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/lucida-typeone-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/mathtimes-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/mdbch-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/mdici-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/mdpgd-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/mdpus-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/mdput-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/mdugm-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/minion-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/minion.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/pagella-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/px-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/schola-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/stix-two-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/symbol-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/termes-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/texgyre.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/treatments.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/tx-math.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-antykwa.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-antykwapoltawskiego.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-asana.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-averia.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-buy.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-cambria.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-charter.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-cleartype.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-computer-modern-unicode.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-cow.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-dejavu.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-ebgaramond.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-euler.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-gentium.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-ghz.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-hgz.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-husayni.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-hvmath.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-inconsolata.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-informal.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-ipaex.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-iwona.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-koeielettersot.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-kurier.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-latinmodern.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-lato.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-liberation.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-libertine.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-libertinus.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-lmnames.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-lucida-opentype.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-lucida-typeone.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-mathdesign.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-mathdigits.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-mathtimes.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-minion.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-mscore.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-opendyslexic.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-osx.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-postscript.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-punknova.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-source.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-stix.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-texgyre.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-unfonts.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-xits.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/type-imp-xitsbidi.mkiv
%{_texmfdistdir}/tex/context/fonts/mkiv/unifraktur.lfg
%{_texmfdistdir}/tex/context/fonts/mkiv/xits-math.lfg
%{_texmfdistdir}/tex/context/interface/mkii/cont-cs.xml
%{_texmfdistdir}/tex/context/interface/mkii/cont-de.xml
%{_texmfdistdir}/tex/context/interface/mkii/cont-fr.xml
%{_texmfdistdir}/tex/context/interface/mkii/cont-it.xml
%{_texmfdistdir}/tex/context/interface/mkii/cont-nl.xml
%{_texmfdistdir}/tex/context/interface/mkii/cont-pe.xml
%{_texmfdistdir}/tex/context/interface/mkii/cont-ro.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-cs.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-cz.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-de.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-en.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-fr.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-it.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-nl.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-pe.xml
%{_texmfdistdir}/tex/context/interface/mkii/keys-ro.xml
%{_texmfdistdir}/tex/context/interface/mkiv/context-en.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-accent.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-align.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-anchor.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-attachment.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-attribute.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-backend.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-background.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-bar.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-blackrule.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-bleed.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-block.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-bookmark.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-boxes.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-buffer.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-button.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-capitals.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-catcodes.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-character.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-characteralign.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-characterspacing.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-characterstripping.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-chart.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-charwidth.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-chemical.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-cleaning.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-clipping.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-collector.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-color.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-columns.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-combination.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-commandhandler.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-comment.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-common-argument.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-common-assignment.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-common-definitions.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-common-instance.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-common-keyword.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-common-string.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-common-value.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-context.pdf
%{_texmfdistdir}/tex/context/interface/mkiv/i-context.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-context-modules.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-contextname.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-conversion.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-counter.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-database.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-dataset.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-define.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-delimitedtext.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-description.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-digits.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-dimension.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-direction.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-document.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-dummy.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-effect.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-enumeration.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-export.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-field.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-figure.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-file.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-filler.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-fillinline.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-fillinrule.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-firstline.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-fittingpage.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-floats.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-fontfamily.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-fonts.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-form.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-formula.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-fraction.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-framed.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-framedtable.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-graphics.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-grid.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-help.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-hemistich.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-highlight.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-hspace.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-hyphenation.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-imposition.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-indent.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-indentedtext.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-initial.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-injector.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-insertion.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-interaction.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-interactionbar.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-interactionmenu.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-interactionscreen.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-interface.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-interlinespace.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-ipsum.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-italiccorrection.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-itemgroup.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-items.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-javascript.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-kerning.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-label.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-labeltext.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-language.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-layer.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-layout.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-linenumber.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-lines.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-linetable.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-linewidth.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-linefiller.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-list.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-logo.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-lohi.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-lua.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-makeup.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-marginblock.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-margindata.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-marker.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-marking.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-math.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mathalignment.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mathcases.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mathfence.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mathmatrix.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mathname.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mathornament.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mathradical.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mathstackers.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-metapost.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-mixedcolumns.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-modes.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-modules.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-narrow.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-naturaltable.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-note.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-object.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-offset.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-opposite.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-ornament.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-output.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-overlay.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagebreak.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagecomment.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagecolumns.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagefigure.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagegrid.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pageinjection.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagelayout.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagemarks.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagenumber.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pageselection.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pageshift.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pagestate.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pairedbox.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-papersize.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-paragraph.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-paragraphnumber.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-paragraphs.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-parallel.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-parbuilder.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-pdf.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-penalty.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-periods.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-phantom.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-placement.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-position.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-positionbar.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-positioning.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-postponing.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-processor.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-profile.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-publication.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-random.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-readme.pdf
%{_texmfdistdir}/tex/context/interface/mkiv/i-readme.tex
%{_texmfdistdir}/tex/context/interface/mkiv/i-references.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-regime.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-register.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-renderingwindow.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-replacement.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-rotatation.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-ruby.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-scale.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-scite.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-script.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-section.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-sectionblock.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-selector.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-setup.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-setups.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-shift.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-sidebar.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-simplecolumns.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-smash.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-sort.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-soundtrack.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-spellchecking.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-spreadsheet.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-startstop.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-steps.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-stream.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-string.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-strut.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-symbol.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-synonym.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-synctex.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-system.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-systemlog.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-table.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-tabulation.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-tagging.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-tex.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-textbackground.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-textflow.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-textrule.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-texts.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-thinrule.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-todo.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-token.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-tolerance.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-tooltip.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-tracker.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-translate.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-translation.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-twopassdata.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-typography.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-unit.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-userdata.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-variables.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-verbatim.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-version.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-viewerlayer.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-visual.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-visualizer.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-vspace.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-whitespace.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-xml.xml
%{_texmfdistdir}/tex/context/interface/mkiv/i-xtable.xml
%{_texmfdistdir}/tex/context/modules/common/s-abbreviations-extras.tex
%{_texmfdistdir}/tex/context/modules/common/s-abbreviations-logos.tex
%{_texmfdistdir}/tex/context/modules/common/s-abbreviations-mixed.mkiv
%{_texmfdistdir}/tex/context/modules/common/s-abbreviations-pseudocaps.mkiv
%{_texmfdistdir}/tex/context/modules/common/s-abbreviations-smallcaps.mkiv
%{_texmfdistdir}/tex/context/modules/common/s-abbreviations-words.mkiv
%{_texmfdistdir}/tex/context/modules/common/s-cdr-01.tex
%{_texmfdistdir}/tex/context/modules/common/s-faq-00.tex
%{_texmfdistdir}/tex/context/modules/common/s-faq-01.tex
%{_texmfdistdir}/tex/context/modules/common/s-faq-02.tex
%{_texmfdistdir}/tex/context/modules/common/s-faq-03.tex
%{_texmfdistdir}/tex/context/modules/common/s-mod.ctx
%{_texmfdistdir}/tex/context/modules/common/s-pre-00.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-06.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-07.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-08.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-12.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-13.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-16.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-18.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-22.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-23.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-26.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-27.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-50.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-66.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-67.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-93.tex
%{_texmfdistdir}/tex/context/modules/common/s-pre-96.tex
%{_texmfdistdir}/tex/context/modules/mkii/m-arabtex.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-chart.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-chemic.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-cweb.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-database.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-dratex.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-edtsnc.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-educat.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-format.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-graph.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-layout.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-level.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-narrowtt.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-obsolete.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-pdfsnc.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-pictex.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-pstricks.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-quest.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-r.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-steps.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-streams.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-subsub.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-tex4ht.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-units.mkii
%{_texmfdistdir}/tex/context/modules/mkii/m-visual.mkii
%{_texmfdistdir}/tex/context/modules/mkii/ppchtex.mkii
%{_texmfdistdir}/tex/context/modules/mkii/rlxcache.rlx
%{_texmfdistdir}/tex/context/modules/mkii/rlxtools.rlx
%{_texmfdistdir}/tex/context/modules/mkii/s-abr-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-abr-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-chi-00.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-fnt-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-fnt-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-grk-00.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-jap-00.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-mag-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-map-10.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-mod-00.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-mod-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-mod-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-03.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-04.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-05.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-09.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-10.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-11.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-14.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-15.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-17.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-19.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-30.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-60.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-61.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-62.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-63.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-64.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-68.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-pre-71.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-ptj-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/s-syntax.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-calcmath.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-chemml.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-chemml.xsd
%{_texmfdistdir}/tex/context/modules/mkii/x-contml.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-contml.xsd
%{_texmfdistdir}/tex/context/modules/mkii/x-corres.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-corres.rng
%{_texmfdistdir}/tex/context/modules/mkii/x-dir-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-dir-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-dir-05.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-fdf-00.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-fe.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-fig-00.dtd
%{_texmfdistdir}/tex/context/modules/mkii/x-fig-00.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-fig-00.xsd
%{_texmfdistdir}/tex/context/modules/mkii/x-fig-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-fig-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-fig-03.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-fo.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-foxet.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-mathml.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-mathml.xsd
%{_texmfdistdir}/tex/context/modules/mkii/x-newcml.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-newmme.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-newmml.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-newmmo.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-newpml.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-om2cml.xsl
%{_texmfdistdir}/tex/context/modules/mkii/x-openmath.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-openmath.xsl
%{_texmfdistdir}/tex/context/modules/mkii/x-physml.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-physml.xsd
%{_texmfdistdir}/tex/context/modules/mkii/x-res-00.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-03.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-04.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-08.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-09.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-10.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-11.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-12.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-20.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-res-50.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-sch-00.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-sch-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-set-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-set-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-set-11.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-set-12.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-sm2om.xsl
%{_texmfdistdir}/tex/context/modules/mkii/x-steps.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-xml-01.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-xml-02.mkii
%{_texmfdistdir}/tex/context/modules/mkii/x-xml-11.mkii
%{_texmfdistdir}/tex/context/modules/mkiv/m-asymptote.lua
%{_texmfdistdir}/tex/context/modules/mkiv/m-asymptote.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-barcodes.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-catchword.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-chart.lua
%{_texmfdistdir}/tex/context/modules/mkiv/m-chart.mkvi
%{_texmfdistdir}/tex/context/modules/mkiv/m-chemic.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-compatible.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-cweb.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-database.lua
%{_texmfdistdir}/tex/context/modules/mkiv/m-database.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-directives.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-educat.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-escrito.lua
%{_texmfdistdir}/tex/context/modules/mkiv/m-escrito.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-fields.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-format.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-graph.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-hemistich.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-ipsum.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-json.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-layout.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-logcategories.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-mathcrap.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-matrix.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-maybe.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-media.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-mkii.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-mkivhacks.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-morse.mkvi
%{_texmfdistdir}/tex/context/modules/mkiv/m-narrowtt.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-nodechart.lua
%{_texmfdistdir}/tex/context/modules/mkiv/m-nodechart.mkvi
%{_texmfdistdir}/tex/context/modules/mkiv/m-ntb-to-xtb.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-obsolete.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-oldfun.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-oldnum.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-old-columnsets.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-old-multicolumns.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-pictex.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-pipemode.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-pstricks.lua
%{_texmfdistdir}/tex/context/modules/mkiv/m-pstricks.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-punk.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-scite.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-simulate.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-spreadsheet.lua
%{_texmfdistdir}/tex/context/modules/mkiv/m-spreadsheet.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-sql.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-steps.lua
%{_texmfdistdir}/tex/context/modules/mkiv/m-steps.mkvi
%{_texmfdistdir}/tex/context/modules/mkiv/m-subsub.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-timing.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-three.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-trackers.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-translate.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-typesetting.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-units.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/m-visual.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/ppchtex.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-abbreviations-mixed.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-abbreviations-pseudocaps.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-abbreviations-smallcaps.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-abbreviations-words.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-article-basic.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-article-titlepage.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-article-titletop.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-cgj.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-characters-properties.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-characters-properties.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-domotica-settings.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-domotica-settings.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-evohome.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-figures-names.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-basics.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-cjk.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-charts.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-complete.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-coverage.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-coverage.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-effects.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-emoji.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-engines.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-features.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-features.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-goodies.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-goodies.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-kerns.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-ligatures.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-missing.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-missing.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-overlay.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-shapes.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-shapes.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-statistics.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-steps.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-system.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-system.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-tables.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-tables.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-variable.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-variable.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-vectors.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-fonts-vectors.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-inf-01.mkvi
%{_texmfdistdir}/tex/context/modules/mkiv/s-inf-02.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-inf-03.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-inf-04.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-counters.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-counters.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-frequencies.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-frequencies.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-hyphenation.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-hyphenation.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-sorting.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-sorting.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-system.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-system.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-words.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-languages-words.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-lingual-de.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-magazine-basic.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-maps.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-characters.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-characters.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-coverage.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-coverage.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-extensibles.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-ligatures.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-ligatures.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-parameters.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-parameters.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-math-repertoire.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-module-basic.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-pages-statistics.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-physics-units.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-balls.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-banner.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-bars.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-colorful.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-common.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-dark.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-four.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-funny.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-fuzzy.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-green.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-grow.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-lines.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-luatex.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-organic.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-original.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-ovals.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-overlap.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-phone.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-punk.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-random.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-random.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-shaded.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-simple.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-slanted.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-split.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-stack.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-steps.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-stepper.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-stepwise.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-tiles.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-weird.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-windows.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-present-wobbling.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-references-identify.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-references-show.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-regimes-list.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-setups-macros.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-setups-missing.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-sql-tables.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-sql-tables.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-structure-sections.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-syntax.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-tugboat.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-tugboat-columns.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-typesetting-kerning.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-xml-analyzers.lua
%{_texmfdistdir}/tex/context/modules/mkiv/s-xml-analyzers.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/s-youless.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-asciimath.lua
%{_texmfdistdir}/tex/context/modules/mkiv/x-asciimath.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-calcmath.lua
%{_texmfdistdir}/tex/context/modules/mkiv/x-calcmath.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-cals.lua
%{_texmfdistdir}/tex/context/modules/mkiv/x-cals.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-chemml.lua
%{_texmfdistdir}/tex/context/modules/mkiv/x-chemml.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-ct.lua
%{_texmfdistdir}/tex/context/modules/mkiv/x-ct.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-entities.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-foxet.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-html.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-ldx.ctx
%{_texmfdistdir}/tex/context/modules/mkiv/x-ldx.lua
%{_texmfdistdir}/tex/context/modules/mkiv/x-ldx.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-lmx-demo.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-lmx-html.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-math-svg.lua
%{_texmfdistdir}/tex/context/modules/mkiv/x-math-svg.mkvi
%{_texmfdistdir}/tex/context/modules/mkiv/x-mathml-basics.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-mathml-html.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-mathml.lua
%{_texmfdistdir}/tex/context/modules/mkiv/x-mathml.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-newmml.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-pandoc.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-pfs-01.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-pfsense.ctx
%{_texmfdistdir}/tex/context/modules/mkiv/x-physml.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-res-01.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-res-50.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-setups-basics.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-setups-generate.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-setups-overview.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-setups-proofing.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-setups.ctx
%{_texmfdistdir}/tex/context/modules/mkiv/x-setups.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-steps.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-udhr.mkiv
%{_texmfdistdir}/tex/context/modules/mkiv/x-xfdf.mkiv
%{_texmfdistdir}/tex/context/patterns/common/lang-af.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-agr.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-ala.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-bg.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-ca.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-cs.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-cy.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-da.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-de.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-deo.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-es.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-et.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-eu.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-fi.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-fr.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-gb.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-hr.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-hu.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-is.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-it.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-la.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-lt.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-lv.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-mk.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-ml.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-mn.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-nb.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-nl.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-nn.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-pl.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-pt.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-ro.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-ru.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-sk.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-sl.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-sr.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-sv.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-th.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-tk.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-tr.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-uk.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-us.rme
%{_texmfdistdir}/tex/context/patterns/common/lang-zh.rme
%{_texmfdistdir}/tex/context/patterns/mkii/lang-af.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-af.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-agr.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-agr.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ala.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ala.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-bg.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-bg.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ca.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ca.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-cs.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-cs.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-cy.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-cy.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-da.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-da.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-de.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-de.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-deo.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-deo.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-es.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-es.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-et.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-et.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-eu.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-eu.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-fi.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-fi.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-fr.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-fr.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-gb.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-gb.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-hr.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-hr.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-hu.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-hu.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-is.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-is.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-it.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-it.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-la.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-la.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-lt.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-lt.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-lv.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-lv.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-mk.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-mk.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ml.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ml.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-mn.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-mn.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-nb.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-nb.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-nl.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-nl.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-nn.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-nn.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-pl.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-pl.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-pt.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-pt.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ro.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ro.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ru.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-ru.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-sk.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-sk.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-sl.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-sl.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-sr.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-sr.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-sv.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-sv.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-th.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-th.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-tk.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-tk.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-tr.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-tr.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-uk.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-uk.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-us.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-us.pat
%{_texmfdistdir}/tex/context/patterns/mkii/lang-zh.hyp
%{_texmfdistdir}/tex/context/patterns/mkii/lang-zh.pat
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-af.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-agr.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-ala.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-bg.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-ca.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-cs.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-cy.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-da.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-de.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-deo.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-es.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-et.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-eu.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-fi.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-fr.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-gb.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-hr.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-hu.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-is.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-it.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-la.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-lt.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-lv.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-mk.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-ml.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-mn.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-nb.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-nl.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-nn.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-pl.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-pt.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-ro.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-ru.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-sk.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-sl.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-sr.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-sv.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-th.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-tk.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-tr.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-uk.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-us.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/lang-zh.lua
%{_texmfdistdir}/tex/context/patterns/mkiv/word-xx.lua
%{_texmfdistdir}/tex/context/sample/common/bryson.tex
%{_texmfdistdir}/tex/context/sample/common/carey.tex
%{_texmfdistdir}/tex/context/sample/common/carrol.tex
%{_texmfdistdir}/tex/context/sample/common/cow-black.mps
%{_texmfdistdir}/tex/context/sample/common/cow-black.pdf
%{_texmfdistdir}/tex/context/sample/common/cow-brown.mps
%{_texmfdistdir}/tex/context/sample/common/cow-brown.pdf
%{_texmfdistdir}/tex/context/sample/common/cow.pdf
%{_texmfdistdir}/tex/context/sample/common/d-res-01.xml
%{_texmfdistdir}/tex/context/sample/common/darwin.tex
%{_texmfdistdir}/tex/context/sample/common/davis.tex
%{_texmfdistdir}/tex/context/sample/common/dawkins.tex
%{_texmfdistdir}/tex/context/sample/common/demo-mps.tex
%{_texmfdistdir}/tex/context/sample/common/demo-tex.tex
%{_texmfdistdir}/tex/context/sample/common/demo-xml.tex
%{_texmfdistdir}/tex/context/sample/common/douglas.tex
%{_texmfdistdir}/tex/context/sample/common/gray.tex
%{_texmfdistdir}/tex/context/sample/common/greenfield.tex
%{_texmfdistdir}/tex/context/sample/common/jojomayer.tex
%{_texmfdistdir}/tex/context/sample/common/klein.tex
%{_texmfdistdir}/tex/context/sample/common/hacker.jpg
%{_texmfdistdir}/tex/context/sample/common/hawking.tex
%{_texmfdistdir}/tex/context/sample/common/knuth.tex
%{_texmfdistdir}/tex/context/sample/common/linden.tex
%{_texmfdistdir}/tex/context/sample/common/lorem.tex
%{_texmfdistdir}/tex/context/sample/common/materie.tex
%{_texmfdistdir}/tex/context/sample/common/mill.png
%{_texmfdistdir}/tex/context/sample/common/montgomery.tex
%{_texmfdistdir}/tex/context/sample/common/mcnish.tex
%{_texmfdistdir}/tex/context/sample/common/poe.tex
%{_texmfdistdir}/tex/context/sample/common/reich.tex
%{_texmfdistdir}/tex/context/sample/common/sample.tex
%{_texmfdistdir}/tex/context/sample/common/samples.bib
%{_texmfdistdir}/tex/context/sample/common/samples.tex
%{_texmfdistdir}/tex/context/sample/common/sapolsky.tex
%{_texmfdistdir}/tex/context/sample/common/spider.eps
%{_texmfdistdir}/tex/context/sample/common/thuan.tex
%{_texmfdistdir}/tex/context/sample/common/tufte.tex
%{_texmfdistdir}/tex/context/sample/common/waltham.tex
%{_texmfdistdir}/tex/context/sample/common/ward.tex
%{_texmfdistdir}/tex/context/sample/common/weisman.tex
%{_texmfdistdir}/tex/context/sample/common/zapf.tex
%{_texmfdistdir}/tex/context/sample/third/aesop-de.tex
%{_texmfdistdir}/tex/context/sample/third/aristotle-grc.tex
%{_texmfdistdir}/tex/context/sample/third/capek-cz.tex
%{_texmfdistdir}/tex/context/sample/third/capek-vlnka-cz.tex
%{_texmfdistdir}/tex/context/sample/third/cervantes-es.tex
%{_texmfdistdir}/tex/context/sample/third/dequincey.tex
%{_texmfdistdir}/tex/context/sample/third/dyrynk-cz.tex
%{_texmfdistdir}/tex/context/sample/third/dyrynk-vlnka-cz.tex
%{_texmfdistdir}/tex/context/sample/third/hviezdoslav-sk.tex
%{_texmfdistdir}/tex/context/sample/third/hviezdoslav-vlnka-sk.tex
%{_texmfdistdir}/tex/context/sample/third/jaros-sk.tex
%{_texmfdistdir}/tex/context/sample/third/jaros-vlnka-sk.tex
%{_texmfdistdir}/tex/context/sample/third/khatt-ar.tex
%{_texmfdistdir}/tex/context/sample/third/khatt-en.tex
%{_texmfdistdir}/tex/context/sample/third/kollar-cz.tex
%{_texmfdistdir}/tex/context/sample/third/kollar-vlnka-cz.tex
%{_texmfdistdir}/tex/context/sample/third/komensky-cz.tex
%{_texmfdistdir}/tex/context/sample/third/komensky-vlnka-cz.tex
%{_texmfdistdir}/tex/context/sample/third/krdel-sk.tex
%{_texmfdistdir}/tex/context/sample/third/kun-cz.tex
%{_texmfdistdir}/tex/context/sample/third/quevedo-es.tex
%{_texmfdistdir}/tex/context/sample/third/slova-sk.tex
%{_texmfdistdir}/tex/context/sample/third/smrek-sk.tex
%{_texmfdistdir}/tex/context/sample/third/smrek-vlnka-sk.tex
%{_texmfdistdir}/tex/context/test/mkiv/context-test.tex
%{_texmfdistdir}/tex/context/test/mkiv/pdf-a1a-2005.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-a1b-2005.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-a2a.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-a2b.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-a2u.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-a3a.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-a3b.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-a3u.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-ua.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-x-common.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-x1a-2001.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-x1a-2003.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-x3-2002.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-x3-2003.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-x4.mkiv
%{_texmfdistdir}/tex/context/test/mkiv/pdf-x4p.mkiv
%{_texmfdistdir}/tex/context/user/mkii/cont-sys.rme
%{_texmfdistdir}/tex/generic/context/luatex/luatex-basics-chr.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-basics-gen.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-basics-nod.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-basics-prepare.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-basics.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-core.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-core.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-def.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-demo-tt.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-demo-vf-1.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-demo-vf-4.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-enc.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-ext.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-gbn.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-lig.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-merged.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-mis.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-syn.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts-tfm.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-fonts.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-gadgets.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-gadgets.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-languages.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-languages.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-math.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-math.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-mplib.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-mplib.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-pdf.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-plain.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-preprocessor-test.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-preprocessor.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-preprocessor.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-swiglib-test.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-swiglib-test.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-swiglib.lua
%{_texmfdistdir}/tex/generic/context/luatex/luatex-swiglib.tex
%{_texmfdistdir}/tex/generic/context/luatex/luatex-test.tex
%{_texmfdistdir}/tex/generic/context/ppchtex/m-ch-de.tex
%{_texmfdistdir}/tex/generic/context/ppchtex/m-ch-en.tex
%{_texmfdistdir}/tex/generic/context/ppchtex/m-ch-nl.tex
%{_texmfdistdir}/tex/generic/context/ppchtex/ppchtex.noc
%{_texmfdistdir}/tex/latex/context/ppchtex/m-ch-de.sty
%{_texmfdistdir}/tex/latex/context/ppchtex/m-ch-en.sty
%{_texmfdistdir}/tex/latex/context/ppchtex/m-ch-nl.sty
%{_texmfdistdir}/tex/latex/context/ppchtex/m-pictex.sty
%{_datadir}/tlpkg/fmtutil.cnf.d/context

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/context/stubs/unix/context context
    ln -sf %{_texmfdistdir}/scripts/context/stubs/unix/ctxtools ctxtools
    ln -sf %{_texmfdistdir}/scripts/context/stubs/unix/luatools luatools
    ln -sf %{_texmfdistdir}/scripts/context/stubs/unix/mtxrun mtxrun
    ln -sf %{_texmfdistdir}/scripts/context/stubs/unix/pstopdf pstopdf
    ln -sf %{_texmfdistdir}/scripts/context/stubs/unix/texexec texexec
    ln -sf %{_texmfdistdir}/scripts/context/stubs/unix/texmfstart texmfstart
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
rm -fr  %{buildroot}%{_texmfdistdir}/scripts/context/stubs
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/context <<EOF
#
# from context:
cont-en pdftex cont-usr.tex -8bit *cont-en.mkii
cont-en xetex cont-usr.tex -8bit *cont-en.mkii
#! cont-fr pdftex cont-usr.tex -8bit *cont-fr.mkii
#! cont-it pdftex cont-usr.tex -8bit *cont-it.mkii
#! cont-nl pdftex cont-usr.tex -8bit *cont-nl.mkii
#! cont-ro pdftex cont-usr.tex -8bit *cont-ro.mkii
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18028 |21mr|texlive-context-account-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-account
# catalog-date 2009-02-07 09:38:09 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-context-account
Version:	20170414
Release:	2
Summary:	A simple accounting package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-account
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-account.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-account.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
TeXLive context-account package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/interface/third/t-account.xml
%{_texmfdistdir}/tex/context/third/account/t-account.mkii
%{_texmfdistdir}/tex/context/third/account/t-account.mkiv
%{_texmfdistdir}/tex/context/third/account/t-account.tex
%{_texmfdistdir}/tex/context/third/account/t-floatnumber.mkii
%{_texmfdistdir}/tex/context/third/account/t-floatnumber.mkiv
%{_texmfdistdir}/tex/context/third/account/t-floatnumber.tex
%doc %{_texmfdistdir}/doc/context/third/account/README
%doc %{_texmfdistdir}/doc/context/third/account/account-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18029 |21mr|texlive-context-algorithmic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31026
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-algorithmic
# catalog-date 2013-06-05 11:32:28 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-context-algorithmic
Version:	20190228
Release:	1
Summary:	Algorithm handling in ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-algorithmic
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-algorithmic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
Support for typesetting algorithms (a port of the LaTeX package
algorithmic, which was a predecessor of algorithmicx).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/algorithmic/t-algorithmic.mkii
%{_texmfdistdir}/tex/context/third/algorithmic/t-algorithmic.mkiv

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18030 |21mr|texlive-context-bnf-20170414-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-bnf
# catalog-date 2008-08-18 23:54:09 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-bnf
Version:	20170414
Release:	3
Summary:	A BNF module for Context
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-bnf
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-bnf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-bnf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The module provides a simple way to write good-looking BNF-
style grammars in ConTeXt. Grammars are written using the BNF
syntax right in your ConTeXt documents, so there is a clear
separation between content and layout. This allows the user to
decide exactly how the grammar is to be displayed, while also
allowing the gist of the grammar to be understood from simply
looking at the source ConTeXt document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/bnf/t-bnf.tex
%doc %{_texmfdistdir}/doc/context/third/bnf/NEWS
%doc %{_texmfdistdir}/doc/context/third/bnf/README
%doc %{_texmfdistdir}/doc/context/third/bnf/t-bnf.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18031 |21mr|texlive-context-chromato-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-chromato
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-chromato
Version:	20170414
Release:	2
Summary:	ConTeXt macros for chromatograms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-chromato
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-chromato.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-chromato.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The module provides macros for drawing chromatograms.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/chromato/t-chromato.tex
%doc %{_texmfdistdir}/doc/context/third/chromato/chromato-demo.pdf
%doc %{_texmfdistdir}/doc/context/third/chromato/chromato-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18032 |21mr|texlive-context-construction-plan-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-construction-plan
# catalog-date 2008-08-18 23:54:09 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-construction-plan
Version:	20170414
Release:	2
Summary:	Construction plans in ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-construction-plan
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-construction-plan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-construction-plan.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
Generate a page with a figure at a well-defined scale.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/construction-plan/t-construction-plan.tex
%doc %{_texmfdistdir}/doc/context/third/construction-plan/construction-plan-demo.pdf
%doc %{_texmfdistdir}/doc/context/third/construction-plan/construction-plan-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18033 |21mr|texlive-context-cyrillicnumbers-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29905
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-cyrillicnumbers
# catalog-date 2013-04-12 11:27:24 +0200
# catalog-license bsd
# catalog-version undef
Name:		texlive-context-cyrillicnumbers
Version:	20170414
Release:	2
Summary:	Write numbers as cyrillic glyphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-cyrillicnumbers
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-cyrillicnumbers.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-cyrillicnumbers.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The package extends Context's system of number conversion, by
adding numeration using cyrillic letters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/interface/third/t-cyrillicnumbers.xml
%{_texmfdistdir}/tex/context/third/cyrillicnumbers/cyrillicnumbers.lua
%{_texmfdistdir}/tex/context/third/cyrillicnumbers/t-cyrillicnumbers.mkii
%{_texmfdistdir}/tex/context/third/cyrillicnumbers/t-cyrillicnumbers.mkvi
%doc %{_texmfdistdir}/doc/context/third/cyrillicnumbers/COPYING
%doc %{_texmfdistdir}/doc/context/third/cyrillicnumbers/README.rst
%doc %{_texmfdistdir}/doc/context/third/cyrillicnumbers/cyrillicnumbers.pdf
%doc %{_texmfdistdir}/doc/context/third/cyrillicnumbers/cyrillicnumbers.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18034 |21mr|texlive-context-degrade-20170414-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-degrade
# catalog-date 2008-08-18 23:54:09 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-degrade
Version:	20170414
Release:	3
Summary:	Degrading JPEG images in ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-degrade
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-degrade.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-degrade.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
TeXLive context-degrade package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/degrade/t-degrade.tex
%doc %{_texmfdistdir}/doc/context/third/degrade/degrade-demo.pdf
%doc %{_texmfdistdir}/doc/context/third/degrade/degrade-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18035 |21mr|texlive-context-filter-20171114-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29983
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-filter
# catalog-date 2013-04-16 16:51:49 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-context-filter
Version:	20171114
Release:	2
Summary:	Run external programs on the contents of a start-stop environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-filter
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-filter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-filter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The filter module provides a simple interface to run external
programs on the contents of a start-stop environment. Options
are available to run the external program only if the content
of the environment has changed, to specify how the program
output should be read back, and to choose the name of the
temporary files that are created. The module is compatible with
both MkII and MkIV.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/filter/t-filter.mkii
%{_texmfdistdir}/tex/context/third/filter/t-filter.mkiv
%{_texmfdistdir}/tex/context/third/filter/t-module-catcodes.tex
%doc %{_texmfdistdir}/doc/context/third/filter/filter.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18036 |21mr|texlive-context-french-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24582
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-french
# catalog-date 2011-11-10 06:26:05 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-french
Version:	20170414
Release:	2
Summary:	Support for writing French in ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-french
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-french.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-french.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context
Requires:	texlive-context

%description
Deals with spacing around French punctuation; the package is
distributed for ConTeXt Mark iv only.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/french/t-french.mkiv
%doc %{_texmfdistdir}/doc/context/third/french/french-demo.pdf
%doc %{_texmfdistdir}/doc/context/third/french/french-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18037 |21mr|texlive-context-fullpage-20171114-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-fullpage
# catalog-date 2011-01-27 09:54:35 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-fullpage
Version:	20171114
Release:	2
Summary:	Overfull pages with ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-fullpage
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-fullpage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-fullpage.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The (ConTeXt) module copies the functionality of the fullpage,
and adds a styling parameter, given in the \usemodule command.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/interface/third/t-fullpage.xml
%{_texmfdistdir}/tex/context/third/fullpage/t-fullpage.mkii
%{_texmfdistdir}/tex/context/third/fullpage/t-fullpage.mkiv
%doc %{_texmfdistdir}/doc/context/third/fullpage/README
%doc %{_texmfdistdir}/doc/context/third/fullpage/fullpage-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18038 |21mr|texlive-context-gantt-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27472
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-gantt
# catalog-date 2012-03-20 08:48:23 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-context-gantt
Version:	20170414
Release:	2
Summary:	GANTT module for ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-gantt
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-gantt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-gantt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context
Requires:	texlive-hatching

%description
Gantt is a module for drawing Gantt charts via metapost or
pgf/tikz.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/gantt/gantt-s-mp.tex
%{_texmfdistdir}/tex/context/third/gantt/gantt-s-tikz.tex
%{_texmfdistdir}/tex/context/third/gantt/t-gantt.tex
%doc %{_texmfdistdir}/doc/context/third/gantt/README
%doc %{_texmfdistdir}/doc/context/third/gantt/examples/gantt-1.tex
%doc %{_texmfdistdir}/doc/context/third/gantt/examples/gantt-2.tex
%doc %{_texmfdistdir}/doc/context/third/gantt/examples/gantt-3.tex
%doc %{_texmfdistdir}/doc/context/third/gantt/examples/gantt-4.tex
%doc %{_texmfdistdir}/doc/context/third/gantt/examples/gantt-5.tex
%doc %{_texmfdistdir}/doc/context/third/gantt/gantt.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18039 |21mr|texlive-context-gnuplot-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30380
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-gnuplot
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-gnuplot
Version:	20170414
Release:	2
Summary:	Inclusion of Gnuplot graphs in ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-gnuplot
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-gnuplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-gnuplot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
Enables simple creation and inclusion of graphs with Gnuplot.
The package writes a script into temporary file, runs Gnuplot
and includes the resulting graphic directly into the document.
See the ConTeXt Garden package page for further details.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/context/third/gnuplot/mp-gnuplot.mp
%{_texmfdistdir}/tex/context/third/gnuplot/t-gnuplot.mkii
%{_texmfdistdir}/tex/context/third/gnuplot/t-gnuplot.mkiv
%doc %{_texmfdistdir}/doc/context/third/gnuplot/example.plt
%doc %{_texmfdistdir}/doc/context/third/gnuplot/fullpage-example.pdf
%doc %{_texmfdistdir}/doc/context/third/gnuplot/fullpage-example.tex
%doc %{_texmfdistdir}/doc/context/third/gnuplot/gnuplot-context-doc.pdf
%doc %{_texmfdistdir}/doc/context/third/gnuplot/gnuplot-context-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18040 |21mr|texlive-context-letter-20171114-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-letter
Version:	20171114
Release:	2
Summary:	Context package for writing letters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-letter
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-letter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-letter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
A means of writing 'vanilla' letters and memos is provided,
with support covering Context Mkii and Mkiv. The design of
letters may be amended by a wide range of style specifications.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/interface/third/t-letter.xml
%{_texmfdistdir}/tex/context/interface/third/t-memo.xml
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-00.lua
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-00.mkii
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-00.mkvi
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-01.mkii
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-01.mkvi
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-02.mkii
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-02.mkvi
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-03.mkvi
%{_texmfdistdir}/tex/context/third/letter/base/s-cor-06.mkvi
%{_texmfdistdir}/tex/context/third/letter/base/t-letter.mkii
%{_texmfdistdir}/tex/context/third/letter/base/t-letter.mkiv
%{_texmfdistdir}/tex/context/third/letter/base/t-memo.mkii
%{_texmfdistdir}/tex/context/third/letter/base/t-memo.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-blockstyle.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-blockstyle.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-default.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-default.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-dina.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-dina.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-dinb.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-dinb.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-dutch.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-dutch.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-french.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-french.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-fullblock.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-fullblock.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-gbrief.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-gbrief.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-hanging.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-hanging.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-knuth.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-knuth.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-modified.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-modified.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-semiblock.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-semiblock.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-setups.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-setups.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-simplified.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-simplified.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-swiss.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-swiss.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-swissleft.mkii
%{_texmfdistdir}/tex/context/third/letter/style/letter-imp-swissleft.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/memo-imp-default.mkii
%{_texmfdistdir}/tex/context/third/letter/style/memo-imp-default.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/memo-imp-margin.mkii
%{_texmfdistdir}/tex/context/third/letter/style/memo-imp-margin.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/memo-imp-memo.mkii
%{_texmfdistdir}/tex/context/third/letter/style/memo-imp-memo.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/memo-imp-table.mkii
%{_texmfdistdir}/tex/context/third/letter/style/memo-imp-table.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-casual-blue.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-casual-green.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-casual-grey.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-casual-orange.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-casual-red.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-casual.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-classic-blue.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-classic-green.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-classic-grey.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-classic-orange.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-classic-red.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-classic.mkiv
%{_texmfdistdir}/tex/context/third/letter/style/resume-imp-default.mkiv
%doc %{_texmfdistdir}/doc/context/third/letter/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18041 |21mr|texlive-context-lettrine-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-lettrine
# catalog-date 2009-01-30 23:54:25 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-context-lettrine
Version:	20170414
Release:	2
Summary:	A ConTeXt implementation of lettrines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-lettrine
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-lettrine.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-lettrine.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
This is a re-implementation of the LaTeX package lettrine.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/interface/third/lettrine.xml
%{_texmfdistdir}/tex/context/third/lettrine/t-lettrine.tex
%doc %{_texmfdistdir}/doc/context/third/lettrine/W.pdf
%doc %{_texmfdistdir}/doc/context/third/lettrine/lettrine-doc.pdf
%doc %{_texmfdistdir}/doc/context/third/lettrine/lettrine-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18042 |21mr|texlive-context-mathsets-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-mathsets
# catalog-date 2011-05-13 02:08:48 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-context-mathsets
Version:	20170414
Release:	2
Summary:	Set notation in ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-mathsets
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-mathsets.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-mathsets.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
Typeset good-looking set notation (e.g., {x|x \in Y}), as well
as similar things such as Dirac bra-ket notation, conditional
probabilities, etc. The package is a partial port of Donald
Arseneau's LaTeX package braket.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/interface/third/t-mathsets.xml
%{_texmfdistdir}/tex/context/third/mathsets/t-mathsets.tex
%doc %{_texmfdistdir}/doc/context/third/mathsets/mathsets-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18043 |21mr|texlive-context-notes-zh-cn-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23171
# category Package
# catalog-ctan /info/context-notes-zh-cn
# catalog-date 2009-11-09 14:30:19 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-notes-zh-cn
Version:	20190228
Release:	1
Summary:	Notes on using ConTeXt MkIV
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/context-notes-zh-cn
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-notes-zh-cn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-notes-zh-cn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-context

%description
An introductory tutorial on ConTeXt, in Chinese. The document
covers ConTeXt installation, fonts, layout design, cross-
reference, project structure, metafun and presentation design.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/README
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/ctxnotes.pdf
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/Makefile
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/basis.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/bibl-lyr.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/bibliography.bib
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/ctxnotes.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/doc-env.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/figures/bookmark.png
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/figures/cow.pdf
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/figures/gardeninglion.jpg
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/figures/header.png
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/fonts.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/layout.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/metafun.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/project.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/references.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/t-layout.tex
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/t-zhfonts.lua
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/t-zhfonts.mkiv
%doc %{_texmfdistdir}/doc/context/third/context-notes-zh-cn/src/t-zhspuncs.lua

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18044 |21mr|texlive-context-rst-0.6c-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33092
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-rst
# catalog-date 2014-03-03 08:58:55 +0100
# catalog-license other-free
# catalog-version 0.6c
Name:		texlive-context-rst
Version:	0.6c
Release:	6
Summary:	Process reStructuredText with ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-rst
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-rst.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-rst.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The package provides a converter and module for typesetting
reStructuredText with ConTeXt. The module uses several lua
scripts in doing its work. Documentation is supplied in rst,
which seems to be readable as text, but...

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/context/lua/third/rst/mtx-t-rst.lua
%{_texmfdistdir}/tex/context/interface/third/t-rst.xml
%{_texmfdistdir}/tex/context/third/rst/rst_context.lua
%{_texmfdistdir}/tex/context/third/rst/rst_directives.lua
%{_texmfdistdir}/tex/context/third/rst/rst_helpers.lua
%{_texmfdistdir}/tex/context/third/rst/rst_parser.lua
%{_texmfdistdir}/tex/context/third/rst/rst_setups.lua
%{_texmfdistdir}/tex/context/third/rst/t-rst.mkiv
%doc %{_texmfdistdir}/doc/context/third/rst/OMakefile
%doc %{_texmfdistdir}/doc/context/third/rst/OMakefile.omc
%doc %{_texmfdistdir}/doc/context/third/rst/documentation.rst
%doc %{_texmfdistdir}/doc/context/third/rst/hybridtest.tex
%doc %{_texmfdistdir}/doc/context/third/rst/inc-first.rst
%doc %{_texmfdistdir}/doc/context/third/rst/inc-second.rst
%doc %{_texmfdistdir}/doc/context/third/rst/inc-third.rst
%doc %{_texmfdistdir}/doc/context/third/rst/inc.tex
%doc %{_texmfdistdir}/doc/context/third/rst/manual.bib
%doc %{_texmfdistdir}/doc/context/third/rst/manual.pdf
%doc %{_texmfdistdir}/doc/context/third/rst/manual.tex
%doc %{_texmfdistdir}/doc/context/third/rst/moduletest.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18045 |21mr|texlive-context-ruby-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28434
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-ruby
# catalog-date 2012-11-30 11:03:17 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-context-ruby
Version:	20170414
Release:	2
Summary:	Ruby annotations in ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-ruby
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-ruby.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-ruby.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
Ruby markup (aka furigana in Japan) are inline annotations
above or below a word to indicate the reading of ideographic
characters. The module implements the W3C specification for
simple ruby in ConTeXt. The position and layout of the base
text and the ruby text can becontrolled by parameters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/ruby/t-ruby.mkii
%{_texmfdistdir}/tex/context/third/ruby/t-ruby.mkiv
%{_texmfdistdir}/tex/context/third/ruby/t-ruby.mkvi
%doc %{_texmfdistdir}/doc/context/third/ruby/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18046 |21mr|texlive-context-simplefonts-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29229
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-simplefonts
# catalog-date 2012-08-13 18:29:21 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-simplefonts
Version:	20170414
Release:	2
Summary:	Simplified font usage for ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-simplefonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-simplefonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-simplefonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The package defines a set of commands for loading and using
fonts in ConTeXt.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/simplefonts/t-simplefonts.lua
%{_texmfdistdir}/tex/context/third/simplefonts/t-simplefonts.mkii
%{_texmfdistdir}/tex/context/third/simplefonts/t-simplefonts.mkiv
%doc %{_texmfdistdir}/doc/context/third/simplefonts/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18047 |21mr|texlive-context-simpleslides-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-context-simpleslides
Version:	20190228
Release:	1
Summary:	TeXLive context-simpleslides package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-simpleslides.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-simpleslides.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
TeXLive context-simpleslides package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/context/lua/third/simpleslides
%{_texmfdistdir}/tex/context/interface/third/t-simpleslides.xml
%{_texmfdistdir}/tex/context/third/simpleslides
%doc %{_texmfdistdir}/doc/context/third/simpleslides

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18048 |21mr|texlive-context-transliterator-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29801
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-transliterator
# catalog-date 2013-04-09 13:56:04 +0200
# catalog-license bsd
# catalog-version undef
Name:		texlive-context-transliterator
Version:	20170414
Release:	2
Summary:	Transliterate text from 'other' alphabets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-transliterator
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-transliterator.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-transliterator.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The package will read text in one alphabet, and provide a
transliterated version in another; this is useful for readers
who cannot read the original alphabet. The package can make
allowance for hyphenation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/interface/third/t-transliterator.xml
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.ctl
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.log
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.mkii
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.mkiv
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.mkiv.prep
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.pdf
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.run
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.tex
%{_texmfdistdir}/tex/context/third/transliterator/t-transliterator.tuc
%{_texmfdistdir}/tex/context/third/transliterator/trans_tables_bg.lua
%{_texmfdistdir}/tex/context/third/transliterator/trans_tables_glag.lua
%{_texmfdistdir}/tex/context/third/transliterator/trans_tables_gr.lua
%{_texmfdistdir}/tex/context/third/transliterator/trans_tables_iso9.lua
%{_texmfdistdir}/tex/context/third/transliterator/trans_tables_scntfc.lua
%{_texmfdistdir}/tex/context/third/transliterator/trans_tables_sr.lua
%{_texmfdistdir}/tex/context/third/transliterator/trans_tables_trsc.lua
%{_texmfdistdir}/tex/context/third/transliterator/transliterator.ctl
%{_texmfdistdir}/tex/context/third/transliterator/transliterator.log
%{_texmfdistdir}/tex/context/third/transliterator/transliterator.lua
%{_texmfdistdir}/tex/context/third/transliterator/transliterator.run
%{_texmfdistdir}/tex/context/third/transliterator/transliterator.tuc
%doc %{_texmfdistdir}/doc/context/third/transliterator/COPYING
%doc %{_texmfdistdir}/doc/context/third/transliterator/transliterator.pdf
%doc %{_texmfdistdir}/doc/context/third/transliterator/transliterator.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18049 |21mr|texlive-context-typearea-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23167
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-typearea
# catalog-date 2008-08-18 23:54:09 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-context-typearea
Version:	20170414
Release:	2
Summary:	Something like Koma-Script typearea
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-typearea
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-typearea.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-typearea.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The module provides a command that calculates the page layout
as the LaTeX package typearea does.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/typearea/t-typearea.tex
%doc %{_texmfdistdir}/doc/context/third/typearea/typearea-demo.pdf
%doc %{_texmfdistdir}/doc/context/third/typearea/typearea-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18050 |21mr|texlive-context-typescripts-20170414-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25411
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-typescripts
# catalog-date 2012-02-16 15:23:58 +0100
# catalog-license gpl2
# catalog-version undef
Name:		texlive-context-typescripts
Version:	20170414
Release:	2
Summary:	Small modules to load various fonts for use in ConTeXt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-typescripts
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-typescripts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-typescripts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context

%description
The package provides files offering interfaces to 33 publicly
available fonts (or collections of fonts from the same
foundry); each is available in a .mkii and a .mkiv version.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/typescripts/type-adobe.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-adobe.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-aller.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-aller.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-anivers.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-anivers.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-audimat.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-audimat.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-axel.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-axel.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-azuro.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-azuro.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-calluna.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-calluna.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-charissil.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-charissil.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-charter.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-charter.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-delicious.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-delicious.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-diavlo.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-diavlo.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-droid.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-droid.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-ernestine.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-fertigo.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-fertigo.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-fontin.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-fontin.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-goudysans.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-goudysans.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-junicode.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-junicode.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-justus.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-justus.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-kaffeesatz.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-kaffeesatz.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-kontrapunkt.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-kontrapunkt.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-liberation.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-liberation.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-luxi.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-luxi.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-miso.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-miso.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-museo.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-museo.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-office.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-pigiarniq.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-pigiarniq.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-sabon.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-sabon.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-tallys.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-tallys.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-tuffy.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-tuffy.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-ubuntu.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-ubuntu.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-uqammaq.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-uqammaq.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-vera.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-vera.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-verajja.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-verajja.mkiv
%{_texmfdistdir}/tex/context/third/typescripts/type-vollkorn.mkii
%{_texmfdistdir}/tex/context/third/typescripts/type-vollkorn.mkiv
%doc %{_texmfdistdir}/doc/context/third/typescripts/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18051 |21mr|texlive-context-vim-20171129-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29984
# category ConTeXt
# catalog-ctan /macros/context/contrib/context-vim
# catalog-date 2012-08-13 18:31:33 +0200
# catalog-license bsd
# catalog-version undef
Name:		texlive-context-vim
Version:	20171129
Release:	3
Summary:	Generate Context syntax highlighting code from vim
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/context/contrib/context-vim
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-vim.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/context-vim.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-context
Requires:	texlive-context-filter

%description
ConTeXt has excellent pretty printing capabilities for many
languages. The code for pretty printing is written in TeX, and
due to catcode juggling, such verbatim typesetting is perhaps
the trickiest part of TeX. This makes it difficult for a
"normal" user to define syntax highlighting rules for a new
language. This module takes the onus of defining syntax
highlighting rules away from the user and uses ViM editor to
generate the syntax highlighting. There is a helper
2context.vim script to do the syntax parsing in ViM.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/vim/2context.vim
%{_texmfdistdir}/tex/context/third/vim/t-syntax-groups.tex
%{_texmfdistdir}/tex/context/third/vim/t-syntax-highlight.mkii
%{_texmfdistdir}/tex/context/third/vim/t-syntax-highlight.mkiv
%{_texmfdistdir}/tex/context/third/vim/t-vim.tex
%doc %{_texmfdistdir}/doc/context/third/vim/vim.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18052 |21mr|texlive-continue-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-continue
Version:	0.2
Release:	2
Summary:	Prints 'continuation' marks on pages of multipage documents
Group:		Publishing
URL:		https://ctan.org/pkg/continue
License:	lppl1.3
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/continue.tar.xz
Source1:	https://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/continue.doc.tar.xz
Source2:	https://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/continue.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides for a variety of continuation indicators
on pages when the text continues on the following page. The
default is to only mark odd pages, but all pages can be marked
and the marking can be stopped or started at any point.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18053 |21mr|texlive-contour-2.14-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18950
# category Package
# catalog-ctan /macros/latex/contrib/contour
# catalog-date 2006-12-09 15:50:57 +0100
# catalog-license lppl
# catalog-version 2.14
Name:		texlive-contour
Version:	2.14
Release:	7
Summary:	Print a coloured contour around text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/contour
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/contour.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/contour.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/contour.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package generates a coloured contour around a given text
in order to enable printing text over a background without the
need of a coloured box around the text.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/contour/contour.cfg
%{_texmfdistdir}/tex/latex/contour/contour.sty
%{_texmfdistdir}/tex/latex/contour/dvips.cnt
%{_texmfdistdir}/tex/latex/contour/dvipsone.cnt
%{_texmfdistdir}/tex/latex/contour/pdftex.cnt
%{_texmfdistdir}/tex/latex/contour/vtex.cnt
%doc %{_texmfdistdir}/doc/latex/contour/ChangeLog
%doc %{_texmfdistdir}/doc/latex/contour/Makefile
%doc %{_texmfdistdir}/doc/latex/contour/README
%doc %{_texmfdistdir}/doc/latex/contour/contour.pdf
%doc %{_texmfdistdir}/doc/latex/contour/contourtest.tex
#- source
%doc %{_texmfdistdir}/source/latex/contour/contour.dtx
%doc %{_texmfdistdir}/source/latex/contour/contour.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18054 |21mr|texlive-contracard-2.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-contracard
Version:	2.0.0
Release:	1
Summary:	Generate calling cards for dances
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/contracard
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/contracard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/contracard.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/contracard.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class may be used to create calling cards for traditional
country dances, such as contra and square dances.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/contracard
%doc %{_texmfdistdir}/doc/latex/contracard
#- source
%doc %{_texmfdistdir}/source/latex/contracard

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18055 |21mr|texlive-convbkmk-0.30-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 49252
# category Package
# catalog-ctan /support/convbkmk
# catalog-date 2019-02-28
# catalog-license other-free
# catalog-version 0.30
Name:		texlive-convbkmk
Version:	0.30
Release:	1
Summary:	Correct platex/uplatex bookmarks in PDF created with hyperref
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/convbkmk
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/convbkmk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/convbkmk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-convbkmk.bin = %{EVRD}

%description
The package provides a small Ruby script that corrects
bookmarks in PDF files created by platex/uplatex, using
hyperref.

#-----------------------------------------------------------------------
%files
%{_bindir}/convbkmk
%{_texmfdistdir}/scripts/convbkmk/convbkmk.rb
%doc %{_texmfdistdir}/doc/support/convbkmk/README.md

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/convbkmk/convbkmk.rb convbkmk
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18056 |21mr|texlive-conv-xkv-2017.02.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-conv-xkv
Version:	2017.02.17
Release:	1
Summary:	This small package supports key-value syntax other than the standard latex syntax of <key>=<value>
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/conv-xkv
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/conv-xkv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/conv-xkv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/conv-xkv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Using this package, create key-values of the form <key>:<value> or <key>-><value>, for example
The package converts the new notation to xkeyval notation and passes it on to xkeyval

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18057 |21mr|texlive-cooking-0.9b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cooking
# catalog-date 2006-12-09 15:50:57 +0100
# catalog-license gpl
# catalog-version 0.9b
Name:		texlive-cooking
Version:	0.9b
Release:	7
Summary:	Typeset recipes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cooking
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooking.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooking.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooking.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package typesets recipes according to the style used in a
well-respected German cookery book.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cooking/cooking.sty
%doc %{_texmfdistdir}/doc/latex/cooking/COPYING
%doc %{_texmfdistdir}/doc/latex/cooking/README
%doc %{_texmfdistdir}/doc/latex/cooking/cooking.pdf
%doc %{_texmfdistdir}/doc/latex/cooking/kraut.tex
#- source
%doc %{_texmfdistdir}/source/latex/cooking/cooking.dtx
%doc %{_texmfdistdir}/source/latex/cooking/cooking.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18058 |21mr|texlive-cooking-units-1.46-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cooking-units
Version:	1.46
Release:	1
Summary:	The package provides commands to typeset amounts and units consistently and offers an easy-to-use key-value syntax to convert one unit into another
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cooking-units
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooking-units.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooking-units.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooking-units.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
While writing a cookery book, units and their format can be quite troublesome
This contains not only the question of how to print those units, but also the question of the conversion of units
A cookery book doesn't contain only SI units, it contains a much more colorful range of units
(kg, dag, g, oz, ... for example) and it may cause some confusion if too many different units are used,
but if you just write a cookery book for fun you don't think about this ... until someone (my mother in my case) tells you that it's too confusing
This package solves both problems: It formats your input and you have the option to convert the units globally or locally using an easy to use key-value system
Please note that this package is not intended to be used to print units (and numbers) physically correct.
It should be used for more light-hearted stuff (like a cookery book for example)

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*
#- source
%doc %{_texmfdistdir}/source/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18059 |21mr|texlive-cool-1.35-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cool
# catalog-date 2007-03-05 15:26:58 +0100
# catalog-license lgpl
# catalog-version 1.35
Name:		texlive-cool
Version:	1.35
Release:	7
Summary:	COntent-Oriented LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cool
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cool.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cool.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cool.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package gives LaTeX the power to retain mathematical
meaning of its expressions in addition to the typsetting
instructions; essentially separating style from the content of
the math. One advantage of keeping mathematical meaning is that
conversion of LaTeX documents to other executable formats (such
as Content MathML or Mathematica code) is greatly simplified.
The package requires the coolstr, coollist and forloop
packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cool/cool.sty
%doc %{_texmfdistdir}/doc/latex/cool/Content_LaTeX_Package_Demo.pdf
%doc %{_texmfdistdir}/doc/latex/cool/Content_LaTeX_Package_Demo.tex
%doc %{_texmfdistdir}/doc/latex/cool/README
%doc %{_texmfdistdir}/doc/latex/cool/cool.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cool/cool.dtx
%doc %{_texmfdistdir}/source/latex/cool/cool.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18060 |21mr|texlive-coollist-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/coollist
# catalog-date 2009-09-20 17:23:54 +0200
# catalog-license lgpl
# catalog-version 1.4
Name:		texlive-coollist
Version:	1.4
Release:	7
Summary:	Manipulate COntent Oriented LaTeX Lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/coollist
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coollist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coollist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coollist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Lists are defined as a sequence of tokens separated by a comma.
The coollist package allows the user to access certain elements
of the list while neglecting others--essentially turning lists
into a sort of array. Lists elements are accessed by specifying
the position of the object within the list (the index of the
item).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/coollist/coollist.sty
%doc %{_texmfdistdir}/doc/latex/coollist/README
%doc %{_texmfdistdir}/doc/latex/coollist/coollist.pdf
#- source
%doc %{_texmfdistdir}/source/latex/coollist/coollist.dtx
%doc %{_texmfdistdir}/source/latex/coollist/coollist.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18061 |21mr|texlive-coolstr-2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/coolstr
# catalog-date 2009-09-09 20:34:25 +0200
# catalog-license lgpl
# catalog-version 2.2
Name:		texlive-coolstr
Version:	2.2
Release:	7
Summary:	String manipulation in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/coolstr
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coolstr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coolstr.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coolstr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Coolstr is a subpackage of the cool bundle that deals with the
manipulation of strings. A string is defined as a sequence of
characters (not tokens). The package provides the ability to
access a specific character of a string, as well as determine
if the string contains numeric or integer data.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/coolstr/coolstr.sty
%doc %{_texmfdistdir}/doc/latex/coolstr/README
%doc %{_texmfdistdir}/doc/latex/coolstr/coolstr.pdf
#- source
%doc %{_texmfdistdir}/source/latex/coolstr/coolstr.dtx
%doc %{_texmfdistdir}/source/latex/coolstr/coolstr.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18062 |21mr|texlive-coolthms-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29062
# category Package
# catalog-ctan /macros/latex/contrib/coolthms
# catalog-date 2013-02-04 23:34:24 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-coolthms
Version:	1.2
Release:	10
Summary:	Reference items in a theorem environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/coolthms
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coolthms.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coolthms.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coolthms.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to directly reference items of
lists nested in theorem-like environments (e.g., as 'Theorem 1
a'). The package extends the ntheorem and cleveref packages.
The package also provides other theorem markup commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/coolthms/coolthms.sty
%doc %{_texmfdistdir}/doc/latex/coolthms/README
%doc %{_texmfdistdir}/doc/latex/coolthms/coolthms.pdf
#- source
%doc %{_texmfdistdir}/source/latex/coolthms/coolthms.dtx
%doc %{_texmfdistdir}/source/latex/coolthms/coolthms.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18063 |21mr|texlive-cooltooltips-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cooltooltips
# catalog-date 2007-03-05 15:26:58 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-cooltooltips
Version:	1.0
Release:	7
Summary:	Associate a pop-up window and tooltip with PDF hyperlinks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cooltooltips
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooltooltips.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooltooltips.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cooltooltips.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The cooltooltips package enables a document to contain
hyperlinks that pop up a brief tooltip when the mouse moves
over them and also open a small window containing additional
text. cooltooltips provides the mechanism used by the Visual
LaTeX FAQ to indicate the question that each hyperlink answers.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cooltooltips/cooltooltips.sty
%doc %{_texmfdistdir}/doc/latex/cooltooltips/README
%doc %{_texmfdistdir}/doc/latex/cooltooltips/cooltooltips.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cooltooltips/cooltooltips.dtx
%doc %{_texmfdistdir}/source/latex/cooltooltips/cooltooltips.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18064 |21mr|texlive-coordsys-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/coordsys
# catalog-date 2007-02-20 10:49:06 +0100
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-coordsys
Version:	1.4
Release:	7
Summary:	Draw cartesian coordinate systems
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/coordsys
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coordsys.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coordsys.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coordsys.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands for typesetting number lines
(coordinate axes), coordinate systems and grids in the picture
environment. The package may be integrated with other drawing
mechanisms: the documentation shows examples of drawing graphs
(coordinate tables created by Maple), using the eepic package's
drawing capabilities.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/coordsys/coordsys.sty
%{_texmfdistdir}/tex/latex/coordsys/logsys.sty
%doc %{_texmfdistdir}/doc/latex/coordsys/README
%doc %{_texmfdistdir}/doc/latex/coordsys/coordsys.pdf
%doc %{_texmfdistdir}/doc/latex/coordsys/putfile.maple
#- source
%doc %{_texmfdistdir}/source/latex/coordsys/coordsys.dtx
%doc %{_texmfdistdir}/source/latex/coordsys/coordsys.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18065 |21mr|texlive-copyedit-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-copyedit
Version:	1.6
Release:	1
Summary:	This package implements copyediting support for LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/copyedit
License:	The LaTeX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/copyedit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/copyedit.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/copyedit.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
 This package implements copyediting support for LaTeX documents.
 Authors can enjoy the freedom of using, for example, words with
 US or UK or Canadian or Australian spelling in a mixed way, 
 yet, they can choose any one of the usage forms for their
 entire document irrespective of kinds of spelling they have
 adopted. In the same fashion, the users can have the benefit
 of the following features available in the package:
Localization — British-American-Australian-Canadian;
Close-up, Hyphenation, and Spaced words;
Latin abbreviations; Acronyms and Abbreviations;
Itemization, nonlocal lists and labels;
Parenthetical and serial commas;
Non-local tokenization in language through Abbreviations and pronouns.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/copyedit/copyedit.sty
%doc %{_texmfdistdir}/doc/latex/copyedit/README
%doc %{_texmfdistdir}/doc/latex/copyedit/copyedit.pdf
%doc %{_texmfdistdir}/doc/latex/copyedit/manifest.txt
%doc %{_texmfdistdir}/doc/latex/copyedit/example
#- source
%doc %{_texmfdistdir}/source/latex/copyedit/copyedit.dtx
%doc %{_texmfdistdir}/source/latex/copyedit/copyedit.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18066 |21mr|texlive-copyrightbox-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24829
# category Package
# catalog-ctan /macros/latex/contrib/copyrightbox
# catalog-date 2011-12-11 19:15:48 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-copyrightbox
Version:	0.1
Release:	7
Summary:	Provide copyright notices for images in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/copyrightbox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/copyrightbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/copyrightbox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package command \copyrightbox[<placement>]{<image
command>}{<text>}, which places the text as a copyright notice
relating to the matter created by the image command.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/copyrightbox/copyrightbox.sty
%doc %{_texmfdistdir}/doc/latex/copyrightbox/README
%doc %{_texmfdistdir}/doc/latex/copyrightbox/coin.jpg
%doc %{_texmfdistdir}/doc/latex/copyrightbox/copyrightbox.pdf
%doc %{_texmfdistdir}/doc/latex/copyrightbox/copyrightbox.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18067 |21mr|texlive-coseoul-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23862
# category Package
# catalog-ctan /macros/latex/contrib/coseoul
# catalog-date 2011-09-06 16:13:05 +0200
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-coseoul
Version:	1.1
Release:	7
Summary:	Context sensitive outline elements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/coseoul
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coseoul.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coseoul.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides "relative" commands that may be used in
place of \chapter, \section, etc. The documentation shows a
number of document-management scenarios in which such commands
are valuable.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/coseoul/coseoul.sty
%doc %{_texmfdistdir}/doc/latex/coseoul/README
%doc %{_texmfdistdir}/doc/latex/coseoul/coseoul.pdf
%doc %{_texmfdistdir}/doc/latex/coseoul/coseoul.tex
%doc %{_texmfdistdir}/doc/latex/coseoul/cosexamp.pdf
%doc %{_texmfdistdir}/doc/latex/coseoul/cosexamp.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18068 |21mr|texlive-counttexruns-1.00a-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27576
# category Package
# catalog-ctan /macros/latex/contrib/counttexruns
# catalog-date 2012-08-31 19:14:38 +0200
# catalog-license lppl1.3
# catalog-version 1.00a
Name:		texlive-counttexruns
Version:	1.00a
Release:	11
Summary:	Count compilations of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/counttexruns
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/counttexruns.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/counttexruns.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/counttexruns.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package counts how often a LaTeX document is compiled,
keeping the data in an external file. To print the count, can
use the macro \thecounttexruns.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/counttexruns/counttexruns.sty
%doc %{_texmfdistdir}/doc/latex/counttexruns/README
%doc %{_texmfdistdir}/doc/latex/counttexruns/counttexruns.pdf
#- source
%doc %{_texmfdistdir}/source/latex/counttexruns/counttexruns.dtx
%doc %{_texmfdistdir}/source/latex/counttexruns/counttexruns.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18069 |21mr|texlive-courier-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-courier
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/courier.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/courier
%{_texmfdistdir}/fonts/afm/adobe/courier
%{_texmfdistdir}/fonts/afm/urw/courier
%{_texmfdistdir}/fonts/map/dvips/courier
%{_texmfdistdir}/fonts/tfm/adobe/courier
%{_texmfdistdir}/fonts/tfm/urw35vf/courier
%{_texmfdistdir}/fonts/type1/adobe/courier
%{_texmfdistdir}/fonts/type1/urw/courier
%{_texmfdistdir}/fonts/vf/adobe/courier
%{_texmfdistdir}/fonts/vf/urw35vf/courier
%{_texmfdistdir}/tex/latex/courier

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18070 |21mr|texlive-courseoutline-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/courseoutline
# catalog-date 2008-09-18 22:52:44 +0200
# catalog-license other-free
# catalog-version 1.0
Name:		texlive-courseoutline
Version:	1.0
Release:	7
Summary:	Prepare university course outlines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/courseoutline
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/courseoutline.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/courseoutline.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Courseoutline is a class designed to minimise markup in a
tedious task that needs to be repeated often.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/courseoutline/courseoutline.cls
%doc %{_texmfdistdir}/doc/latex/courseoutline/Outline.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18071 |21mr|texlive-coursepaper-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/coursepaper
# catalog-date 2008-09-18 22:52:44 +0200
# catalog-license other-free
# catalog-version 2.0
Name:		texlive-coursepaper
Version:	2.0
Release:	7
Summary:	Prepare university course papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/coursepaper
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coursepaper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coursepaper.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Coursepaper is a class with which students can provide simple
course papers, in a uniform design to ease the task of marking.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/coursepaper/coursepaper.cls
%doc %{_texmfdistdir}/doc/latex/coursepaper/coursepaper.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18072 |21mr|texlive-coverpage-1.01-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/coverpage
# catalog-date 2007-03-05 15:26:58 +0100
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-coverpage
Version:	1.01
Release:	8
Summary:	Automatic cover page creation for scientific papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/coverpage
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coverpage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coverpage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/coverpage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package CoverPage was created to supplement scientific
papers with a cover page containing bibliographical
information, a copyright notice, and/or some logos of the
author's institution. The cover page is created (almost)
automatically; this is done by parsing BibTeX information
corresponding to the main document and reading a configuration
file in which the author can set information like the
affiliation he or she is associated with. The cover page
consists of header, body and footer; all three are macros which
can be redefined using \renewcommand, thus allowing easy
customization of the package. Additionally, it should be
stressed that the cover page layout is totally independent of
the main document and its page layout. This package requires
four other packages (keyval, url, textcomp, and verbatim), but
all of them are standard packages and should be part of every
LaTeX installation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/coverpage/CoverPage.cfg
%{_texmfdistdir}/tex/latex/coverpage/CoverPage.sty
%doc %{_texmfdistdir}/doc/latex/coverpage/CoverPage.pdf
%doc %{_texmfdistdir}/doc/latex/coverpage/ECCV06Sample.pdf
%doc %{_texmfdistdir}/doc/latex/coverpage/README
%doc %{_texmfdistdir}/doc/latex/coverpage/SimpleSample.BibTeX.txt
%doc %{_texmfdistdir}/doc/latex/coverpage/SimpleSample.pdf
%doc %{_texmfdistdir}/doc/latex/coverpage/SimpleSample.tex
#- source
%doc %{_texmfdistdir}/source/latex/coverpage/CoverPage.dtx
%doc %{_texmfdistdir}/source/latex/coverpage/CoverPage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18073 |21mr|texlive-covington-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-covington
Version:	2.0
Release:	1
Epoch:		1
Summary:	Linguistic support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/covington
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/covington.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/covington.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Numerous minor LaTeX enhancements for linguistics, including
multiple accents on the same letter, interline glosses (word-
by-word translations), Discourse Representation Structures, and
example numbering.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/covington
%doc %{_texmfdistdir}/doc/latex/covington

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18074 |21mr|texlive-cprotect-1.0e-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21209
# category Package
# catalog-ctan /macros/latex/contrib/cprotect
# catalog-date 2011-01-27 23:21:47 +0100
# catalog-license lppl1.3
# catalog-version 1.0e
Name:		texlive-cprotect
Version:	1.0e
Release:	7
Summary:	Allow verbatim, etc., in macro arguments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cprotect
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cprotect.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cprotect.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cprotect.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines the macro \cprotect that makes a following
macro proof against verbatim in its argument; as, for example,
\cprotect\section{\verb"foo"} A similar macro \cprotEnv
(applied to the \begin of an environment) sanitises the
behavior of fragile environments. Moving arguments, and
corresponding "tables of ..." work happily.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cprotect/cprotect.sty
%doc %{_texmfdistdir}/doc/latex/cprotect/README
%doc %{_texmfdistdir}/doc/latex/cprotect/README.txt
%doc %{_texmfdistdir}/doc/latex/cprotect/cprotect.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cprotect/cprotect.dtx
%doc %{_texmfdistdir}/source/latex/cprotect/cprotect.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18075 |21mr|texlive-crbox-0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/crbox
# catalog-date 2013-04-04 12:47:47 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-crbox
Version:	0.1
Release:	12
Summary:	Boxes with crossed corners
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/crbox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crbox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package implements a \crbox command which produces boxes
with crossing lines at the corners.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/crbox/crbox.sty
%doc %{_texmfdistdir}/doc/latex/crbox/README
%doc %{_texmfdistdir}/doc/latex/crbox/crbox-doc.pdf
%doc %{_texmfdistdir}/doc/latex/crbox/crbox-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18076 |21mr|texlive-crop-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/crop
# catalog-date 2009-07-10 18:40:58 +0200
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-crop
Version:	1.5
Release:	7
Summary:	Support for cropmarks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/crop
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crop.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crop.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crop.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package providing corner marks for camera alignment as well
as for trimming paper stacks, and additional page information
on every page if required. Most macros are easily adaptable to
personal preferences. An option is provided for selectively
suppressing graphics or text, which may be useful for printing
just colour graphics on a colour laser printer and the rest on
a cheap mono laser printer. A page info line contains the time
and a new cropmarks index and is printed at the top of the
page. A configuration command is provided for the info line
font. Options for better collaboration with dvips, pdftex and
vtex are provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/crop/crop.sty
%doc %{_texmfdistdir}/doc/latex/crop/crop.pdf
%doc %{_texmfdistdir}/doc/latex/crop/crop.txt
#- source
%doc %{_texmfdistdir}/source/latex/crop/Makefile
%doc %{_texmfdistdir}/source/latex/crop/crop.dtx
%doc %{_texmfdistdir}/source/latex/crop/crop.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18077 |21mr|texlive-crossreference-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/crossreference
# catalog-date 2007-01-01 17:45:33 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-crossreference
Version:	20190228
Release:	1
Summary:	Crossreferences within documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/crossreference
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crossreference.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crossreference.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crossreference.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines cross-references (essentially 'grand' label
references), which may be listed in a table of cross-
references.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/crossreference/crossreference.sty
%doc %{_texmfdistdir}/doc/latex/crossreference/README
%doc %{_texmfdistdir}/doc/latex/crossreference/crossreference.pdf
%doc %{_texmfdistdir}/doc/latex/crossreference/xrefexample.tex
#- source
%doc %{_texmfdistdir}/source/latex/crossreference/crossreference.drv
%doc %{_texmfdistdir}/source/latex/crossreference/crossreference.dtx
%doc %{_texmfdistdir}/source/latex/crossreference/crossreference.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18078 |21mr|texlive-crossreftools-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-crossreftools
Version:	1.0
Release:	12
Summary:	This package extracts information from cross-referencing labels, especially those from cleveref, in an expandable manner
Group:		Publishing
URL:		https://ctan.org/pkg/crossreftools
License:	The LaTeX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crossreftools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crossreftools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides expandable extraction of information stored
in labels generated withQclev-erefand regular labels written by
the usual\labelmacro, regardless whetherQhyperrefis loaded.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/crossreftools/crossreftools.sty
%doc %{_texmfdistdir}/doc/latex/crossreftools
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18079 |21mr|texlive-crossword-1.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32657
# category Package
# catalog-ctan /macros/latex/contrib/gene/crossword
# catalog-date 2014-01-13 10:33:20 +0100
# catalog-license other-free
# catalog-version 1.9
Name:		texlive-crossword
Version:	1.9
Release:	7
Summary:	Typeset crossword puzzles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gene/crossword
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crossword.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crossword.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crossword.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An extended grid-based puzzle package, designed to take all
input (both grid and clues) from the same file. The package can
typeset grids with holes in them (for advertisements, or other
sorts of stuff), and can deal with several sorts of puzzle: The
classical puzzle contains numbers for the words and clues for
the words to be filled in. The numbered puzzle contains numbers
in each cell where identical numbers represent identical
letters. The goal is to find out which number corresponds to
which letter. The fill-in type of puzzle consists of a grid and
a list of words. The goal is to place all words in the grid.
Sudoku and Kakuro puzzles involve filling in grids of numbers
according to their own rules. Format may be block-separated, or
separated by thick lines. Input to the package is somewhat
redundant: specification of the grid is separate from
specification of the clues (if they're necessary). The author
considers this style both 'natural' and robust.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/crossword/cwpuzzle.sty
%doc %{_texmfdistdir}/doc/latex/crossword/Makefile
%doc %{_texmfdistdir}/doc/latex/crossword/README
%doc %{_texmfdistdir}/doc/latex/crossword/cwpuzzle.pdf
#- source
%doc %{_texmfdistdir}/source/latex/crossword/cwpuzzle.dtx
%doc %{_texmfdistdir}/source/latex/crossword/cwpuzzle.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18080 |21mr|texlive-crosswrd-3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16896
# category Package
# catalog-ctan /macros/latex/contrib/crosswrd
# catalog-date 2010-02-01 17:14:28 +0100
# catalog-license lppl
# catalog-version 3.0
Name:		texlive-crosswrd
Version:	3.0
Release:	7
Summary:	Macros for typesetting crossword puzzles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/crosswrd
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crosswrd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crosswrd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/crosswrd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a LaTeX method of typesetting crosswords,
and assists the composer ensure that the grid all goes together
properly. Brian Hamilton Kelly's original was written for LaTeX
2.09, and needed to be updated to run with current LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/crosswrd/crosswrd.sty
%doc %{_texmfdistdir}/doc/latex/crosswrd/README
%doc %{_texmfdistdir}/doc/latex/crosswrd/crosswrd.pdf
%doc %{_texmfdistdir}/doc/latex/crosswrd/grid0.tex
%doc %{_texmfdistdir}/doc/latex/crosswrd/grid1.tex
%doc %{_texmfdistdir}/doc/latex/crosswrd/grid2.tex
%doc %{_texmfdistdir}/doc/latex/crosswrd/test0.tex
%doc %{_texmfdistdir}/doc/latex/crosswrd/test1.tex
%doc %{_texmfdistdir}/doc/latex/crosswrd/test2.tex
#- source
%doc %{_texmfdistdir}/source/latex/crosswrd/crosswrd.dtx
%doc %{_texmfdistdir}/source/latex/crosswrd/crosswrd.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18081 |21mr|texlive-cs-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33941
# category Package
# catalog-ctan /macros/cstex/base/csfonts.tar.gz
# catalog-date 2014-04-24 13:39:23 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-cs
Version:	20190228
Release:	1
Summary:	Czech/Slovak-tuned Computer Modern fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/cstex/base/csfonts.tar.gz
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cs.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
The fonts are provided as Metafont source; Type 1 format
versions (csfonts-t1) are also available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/cs/xl2.enc
%{_texmfdistdir}/fonts/enc/dvips/cs/xl2f.enc
%{_texmfdistdir}/fonts/enc/dvips/cs/xt2.enc
%{_texmfdistdir}/fonts/map/dvips/cs/cs-a35-nodownload.map
%{_texmfdistdir}/fonts/map/dvips/cs/cs-a35-urwdownload.map
%{_texmfdistdir}/fonts/map/dvips/cs/cs-charter.map
%{_texmfdistdir}/fonts/map/dvips/cs/csfonts.map
%{_texmfdistdir}/fonts/source/public/cs/csaccent.mf
%{_texmfdistdir}/fonts/source/public/cs/csacutl.mf
%{_texmfdistdir}/fonts/source/public/cs/csacutu.mf
%{_texmfdistdir}/fonts/source/public/cs/csadded.mf
%{_texmfdistdir}/fonts/source/public/cs/csb10.mf
%{_texmfdistdir}/fonts/source/public/cs/csb12.mf
%{_texmfdistdir}/fonts/source/public/cs/csb17.mf
%{_texmfdistdir}/fonts/source/public/cs/csb5.mf
%{_texmfdistdir}/fonts/source/public/cs/csb6.mf
%{_texmfdistdir}/fonts/source/public/cs/csb7.mf
%{_texmfdistdir}/fonts/source/public/cs/csb8.mf
%{_texmfdistdir}/fonts/source/public/cs/csb9.mf
%{_texmfdistdir}/fonts/source/public/cs/csbx10.mf
%{_texmfdistdir}/fonts/source/public/cs/csbx12.mf
%{_texmfdistdir}/fonts/source/public/cs/csbx5.mf
%{_texmfdistdir}/fonts/source/public/cs/csbx6.mf
%{_texmfdistdir}/fonts/source/public/cs/csbx7.mf
%{_texmfdistdir}/fonts/source/public/cs/csbx8.mf
%{_texmfdistdir}/fonts/source/public/cs/csbx9.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxsl10.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxsl12.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxsl5.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxsl6.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxsl7.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxsl8.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxsl9.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxti10.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxti12.mf
%{_texmfdistdir}/fonts/source/public/cs/csbxti17.mf
%{_texmfdistdir}/fonts/source/public/cs/cscode.mf
%{_texmfdistdir}/fonts/source/public/cs/cscsc10.mf
%{_texmfdistdir}/fonts/source/public/cs/cscsc12.mf
%{_texmfdistdir}/fonts/source/public/cs/cscsc17.mf
%{_texmfdistdir}/fonts/source/public/cs/cscsc8.mf
%{_texmfdistdir}/fonts/source/public/cs/cscsc9.mf
%{_texmfdistdir}/fonts/source/public/cs/csdunh10.mf
%{_texmfdistdir}/fonts/source/public/cs/csdunh12.mf
%{_texmfdistdir}/fonts/source/public/cs/csdunh17.mf
%{_texmfdistdir}/fonts/source/public/cs/csdunh5.mf
%{_texmfdistdir}/fonts/source/public/cs/csdunh6.mf
%{_texmfdistdir}/fonts/source/public/cs/csdunh7.mf
%{_texmfdistdir}/fonts/source/public/cs/csdunh8.mf
%{_texmfdistdir}/fonts/source/public/cs/csdunh9.mf
%{_texmfdistdir}/fonts/source/public/cs/csff10.mf
%{_texmfdistdir}/fonts/source/public/cs/csfi10.mf
%{_texmfdistdir}/fonts/source/public/cs/csfib10.mf
%{_texmfdistdir}/fonts/source/public/cs/csfib12.mf
%{_texmfdistdir}/fonts/source/public/cs/csfib8.mf
%{_texmfdistdir}/fonts/source/public/cs/csfib9.mf
%{_texmfdistdir}/fonts/source/public/cs/cshachel.mf
%{_texmfdistdir}/fonts/source/public/cs/cshacheu.mf
%{_texmfdistdir}/fonts/source/public/cs/cshyph.mf
%{_texmfdistdir}/fonts/source/public/cs/csiacutl.mf
%{_texmfdistdir}/fonts/source/public/cs/csihachl.mf
%{_texmfdistdir}/fonts/source/public/cs/csinch.mf
%{_texmfdistdir}/fonts/source/public/cs/csiothrl.mf
%{_texmfdistdir}/fonts/source/public/cs/csitt10.mf
%{_texmfdistdir}/fonts/source/public/cs/csitt12.mf
%{_texmfdistdir}/fonts/source/public/cs/csitt17.mf
%{_texmfdistdir}/fonts/source/public/cs/csitt8.mf
%{_texmfdistdir}/fonts/source/public/cs/csitt9.mf
%{_texmfdistdir}/fonts/source/public/cs/csotherl.mf
%{_texmfdistdir}/fonts/source/public/cs/csotheru.mf
%{_texmfdistdir}/fonts/source/public/cs/csr10.mf
%{_texmfdistdir}/fonts/source/public/cs/csr12.mf
%{_texmfdistdir}/fonts/source/public/cs/csr17.mf
%{_texmfdistdir}/fonts/source/public/cs/csr5.mf
%{_texmfdistdir}/fonts/source/public/cs/csr6.mf
%{_texmfdistdir}/fonts/source/public/cs/csr7.mf
%{_texmfdistdir}/fonts/source/public/cs/csr8.mf
%{_texmfdistdir}/fonts/source/public/cs/csr9.mf
%{_texmfdistdir}/fonts/source/public/cs/cssl10.mf
%{_texmfdistdir}/fonts/source/public/cs/cssl12.mf
%{_texmfdistdir}/fonts/source/public/cs/cssl17.mf
%{_texmfdistdir}/fonts/source/public/cs/cssl5.mf
%{_texmfdistdir}/fonts/source/public/cs/cssl6.mf
%{_texmfdistdir}/fonts/source/public/cs/cssl7.mf
%{_texmfdistdir}/fonts/source/public/cs/cssl8.mf
%{_texmfdistdir}/fonts/source/public/cs/cssl9.mf
%{_texmfdistdir}/fonts/source/public/cs/cssltt10.mf
%{_texmfdistdir}/fonts/source/public/cs/cssltt12.mf
%{_texmfdistdir}/fonts/source/public/cs/cssltt8.mf
%{_texmfdistdir}/fonts/source/public/cs/cssltt9.mf
%{_texmfdistdir}/fonts/source/public/cs/csss10.mf
%{_texmfdistdir}/fonts/source/public/cs/csss12.mf
%{_texmfdistdir}/fonts/source/public/cs/csss17.mf
%{_texmfdistdir}/fonts/source/public/cs/csss8.mf
%{_texmfdistdir}/fonts/source/public/cs/csss9.mf
%{_texmfdistdir}/fonts/source/public/cs/csssbx10.mf
%{_texmfdistdir}/fonts/source/public/cs/csssbx12.mf
%{_texmfdistdir}/fonts/source/public/cs/csssbx17.mf
%{_texmfdistdir}/fonts/source/public/cs/csssbx9.mf
%{_texmfdistdir}/fonts/source/public/cs/csssdc10.mf
%{_texmfdistdir}/fonts/source/public/cs/csssi10.mf
%{_texmfdistdir}/fonts/source/public/cs/csssi12.mf
%{_texmfdistdir}/fonts/source/public/cs/csssi17.mf
%{_texmfdistdir}/fonts/source/public/cs/csssi8.mf
%{_texmfdistdir}/fonts/source/public/cs/csssi9.mf
%{_texmfdistdir}/fonts/source/public/cs/csssq8.mf
%{_texmfdistdir}/fonts/source/public/cs/csssqi8.mf
%{_texmfdistdir}/fonts/source/public/cs/cstcsc10.mf
%{_texmfdistdir}/fonts/source/public/cs/cstcsc12.mf
%{_texmfdistdir}/fonts/source/public/cs/cstcsc17.mf
%{_texmfdistdir}/fonts/source/public/cs/cstex10.mf
%{_texmfdistdir}/fonts/source/public/cs/cstex8.mf
%{_texmfdistdir}/fonts/source/public/cs/cstex9.mf
%{_texmfdistdir}/fonts/source/public/cs/csti10.mf
%{_texmfdistdir}/fonts/source/public/cs/csti12.mf
%{_texmfdistdir}/fonts/source/public/cs/csti17.mf
%{_texmfdistdir}/fonts/source/public/cs/csti7.mf
%{_texmfdistdir}/fonts/source/public/cs/csti8.mf
%{_texmfdistdir}/fonts/source/public/cs/csti9.mf
%{_texmfdistdir}/fonts/source/public/cs/cstt10.mf
%{_texmfdistdir}/fonts/source/public/cs/cstt12.mf
%{_texmfdistdir}/fonts/source/public/cs/cstt8.mf
%{_texmfdistdir}/fonts/source/public/cs/cstt9.mf
%{_texmfdistdir}/fonts/source/public/cs/csu10.mf
%{_texmfdistdir}/fonts/source/public/cs/csu12.mf
%{_texmfdistdir}/fonts/source/public/cs/csu17.mf
%{_texmfdistdir}/fonts/source/public/cs/csu7.mf
%{_texmfdistdir}/fonts/source/public/cs/csu8.mf
%{_texmfdistdir}/fonts/source/public/cs/csu9.mf
%{_texmfdistdir}/fonts/source/public/cs/csvtt10.mf
%{_texmfdistdir}/fonts/source/public/cs/csvtt12.mf
%{_texmfdistdir}/fonts/source/public/cs/csvtt8.mf
%{_texmfdistdir}/fonts/source/public/cs/csvtt9.mf
%{_texmfdistdir}/fonts/source/public/cs/icscsc10.mf
%{_texmfdistdir}/fonts/source/public/cs/icstt8.mf
%{_texmfdistdir}/fonts/source/public/cs/ilcsss8.mf
%{_texmfdistdir}/fonts/source/public/cs/ilcsssb8.mf
%{_texmfdistdir}/fonts/source/public/cs/ilcsssi8.mf
%{_texmfdistdir}/fonts/source/public/cs/kmcsc.mf
%{_texmfdistdir}/fonts/source/public/cs/kmroman.mf
%{_texmfdistdir}/fonts/source/public/cs/kmtexset.mf
%{_texmfdistdir}/fonts/source/public/cs/kmtextit.mf
%{_texmfdistdir}/fonts/source/public/cs/kmtitle.mf
%{_texmfdistdir}/fonts/source/public/cs/lcsss8.mf
%{_texmfdistdir}/fonts/source/public/cs/lcsssb8.mf
%{_texmfdistdir}/fonts/source/public/cs/lcsssi8.mf
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/README
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pagd8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pagdc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pagdo8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pagk8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pagkc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pagko8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pbkd8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pbkdc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pbkdi8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pbkl8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pbklc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pbkli8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pcrb8u.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pcrbc8u.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pcrbo8u.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pcrr8u.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pcrrc8u.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pcrro8u.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvb8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvbc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvbn8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvbnc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvbo8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvbon8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvr8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvrc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvrn8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvrnc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvro8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/phvron8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pncb8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pncbc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pncbi8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pncr8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pncrc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pncri8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pplb8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pplbc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pplbi8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pplr8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pplrc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pplri8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/ptmb8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/ptmbc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/ptmbi8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/ptmr8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/ptmrc8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/ptmri8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-a35/pzcmi8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-charter/bchb8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-charter/bchbi8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-charter/bchr8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-charter/bchri8z.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-charter/rbchb.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-charter/rbchbi.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-charter/rbchr.tfm
%{_texmfdistdir}/fonts/tfm/cs/cs-charter/rbchri.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csb10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csb12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csb17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csb5.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csb6.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csb7.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csb8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csb9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxsl5.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxsl6.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxsl7.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxti12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csbxti17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cscsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cscsc12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cscsc17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cscsc8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cscsc9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csdunh12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csdunh17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csdunh5.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csdunh6.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csdunh7.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csdunh8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csdunh9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csff10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csfi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csfib10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csfib12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csfib8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csfib9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csinch.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csitt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csitt17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csitt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csitt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csr10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csr12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csr17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csr5.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csr6.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csr7.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csr8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csr9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssl10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssl12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssl17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssl5.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssl6.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssl7.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssl8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssl9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssltt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssltt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cssltt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csss10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csss12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csss17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csss9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssbx17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cstcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cstcsc12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cstcsc17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csti10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csti12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csti17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csti7.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csti8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csti9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cstt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cstt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cstt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/cstt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csu10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csu12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csu17.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csu7.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csu8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csu9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csvtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csvtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/csvtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/icscsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/icstt8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/ilcsss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/ilcsssb8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/ilcsssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/lcsss8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/lcsssb8.tfm
%{_texmfdistdir}/fonts/tfm/public/cs/lcsssi8.tfm
%{_texmfdistdir}/fonts/type1/public/cs/README
%{_texmfdistdir}/fonts/type1/public/cs/csb10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbx10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbx12.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbx5.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbx6.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbx7.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbx8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbx9.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbxsl10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csbxti10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cscsc10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csdunh10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csff10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csfi10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csfib8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csinch.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csitt10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csr10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csr12.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csr17.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csr5.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csr6.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csr7.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csr8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csr9.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cssl10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cssl12.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cssl8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cssl9.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cssltt10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csss10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csss12.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csss17.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csss8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csss9.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssbx10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssdc10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssi10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssi12.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssi17.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssi8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssi9.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssq8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csssqi8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cstcsc10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csti10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csti12.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csti7.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csti8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csti9.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cstt10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cstt12.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cstt8.pfb
%{_texmfdistdir}/fonts/type1/public/cs/cstt9.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csu10.pfb
%{_texmfdistdir}/fonts/type1/public/cs/csvtt10.pfb
%{_texmfdistdir}/fonts/vf/cs/cs-a35/README
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pagdc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pagkc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pbkdc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pbklc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pcrbc8u.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pcrrc8u.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/phvbc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/phvbnc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/phvrc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/phvrnc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pncbc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pncrc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pplbc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/pplrc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/ptmbc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-a35/ptmrc8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-charter/bchb8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-charter/bchbi8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-charter/bchr8z.vf
%{_texmfdistdir}/fonts/vf/cs/cs-charter/bchri8z.vf
%_texmf_updmap_d/cs

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/cs <<EOF
Map cs-charter.map
Map csfonts.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18082 |21mr|texlive-csbulletin-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/csbulletin
# catalog-date 2008-08-17 11:40:59 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-csbulletin
Version:	1.1
Release:	2
Summary:	LaTeX class for articles submitted to the CSTUG Bulletin (Zpravodaj)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/csbulletin
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csbulletin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csbulletin.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the class for articles for the CSTUG
Bulletin (Zpravodaj Ceskoslovenskeho sdruzeni uzivatelu TeXu).
You can see the structure of a document by looking to the
source file of the manual.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/csbulletin/csbulacronym.sty
%{_texmfdistdir}/tex/latex/csbulletin/csbulletin.cls
%doc %{_texmfdistdir}/doc/latex/csbulletin/LICENSE.txt
%doc %{_texmfdistdir}/doc/latex/csbulletin/README
%doc %{_texmfdistdir}/doc/latex/csbulletin/csbulletin.pdf
%doc %{_texmfdistdir}/doc/latex/csbulletin/csbulletin.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18083 |21mr|texlive-cslatex-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28596
# category Package
# catalog-ctan /macros/cstex/base/cslatex.tar.gz
# catalog-date 2012-04-25 13:09:32 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-cslatex
Version:	20190327
Release:	1
Summary:	LaTeX support for Czech/Slovak typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/cstex/base/cslatex.tar.gz
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cslatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cslatex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires(post):	texlive-csplain
Requires:	texlive-latex
Requires:	texlive-cslatex.bin

%description
TeXLive cslatex package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/cslatex/base/cslatex.ini
%{_texmfdistdir}/tex/cslatex/base/czech.sty
%{_texmfdistdir}/tex/cslatex/base/fonttext.cfg
%{_texmfdistdir}/tex/cslatex/base/hyphen.cfg
%{_texmfdistdir}/tex/cslatex/base/il2cmdh.fd
%{_texmfdistdir}/tex/cslatex/base/il2cmfib.fd
%{_texmfdistdir}/tex/cslatex/base/il2cmfr.fd
%{_texmfdistdir}/tex/cslatex/base/il2cmr.fd
%{_texmfdistdir}/tex/cslatex/base/il2cmss.fd
%{_texmfdistdir}/tex/cslatex/base/il2cmtt.fd
%{_texmfdistdir}/tex/cslatex/base/il2cmvtt.fd
%{_texmfdistdir}/tex/cslatex/base/il2enc.def
%{_texmfdistdir}/tex/cslatex/base/il2lcmss.fd
%{_texmfdistdir}/tex/cslatex/base/il2lcmtt.fd
%{_texmfdistdir}/tex/cslatex/base/slovak.sty
%{_texmfdistdir}/tex/cslatex/cspsfonts/cspsfont.il2
%{_texmfdistdir}/tex/cslatex/cspsfonts/cspsfont.tex
%{_texmfdistdir}/tex/cslatex/cspsfonts/cspsfont.xl2
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2pag.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2pbk.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2pcr.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2phv.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2phvn.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2pnc.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2ppl.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2ptm.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/il2pzc.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/nhelvet.sty
%{_texmfdistdir}/tex/cslatex/cspsfonts/ntimes.sty
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2pag.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2pbk.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2pcr.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2phv.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2phvn.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2pnc.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2ppl.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2ptm.fd
%{_texmfdistdir}/tex/cslatex/cspsfonts/xl2pzc.fd
%_texmf_fmtutil_d/cslatex
#- source
%doc %{_texmfdistdir}/source/cslatex/base/cslatex.dtx
%doc %{_texmfdistdir}/source/cslatex/base/cslatex.ins

%doc %{_texmfdistdir}/source/cslatex/cspsfonts/cspsfont.doc
%doc %{_texmfdistdir}/source/cslatex/cspsfonts/cspsfont.drv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/cslatex <<EOF
#
# from cslatex:
cslatex pdftex - -etex cslatex.ini
pdfcslatex pdftex - -etex cslatex.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18084 |21mr|texlive-csplain-20190430-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-csplain
Version:	20190430
Release:	1
Summary:	Plain TeX support for Czech/Slovak typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/cstex/base/csplain.tar.gz
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csplain.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires(post):	texlive-cs
Requires:	texlive-tex
Requires:	texlive-csplain.bin

%description
TeXLive csplain package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/csplain
%{_texmf_fmtutil_d}/csplain

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/csplain <<EOF
#
# from csplain:
csplain pdftex - -etex -enc csplain-utf8.ini
pdfcsplain pdftex - -etex -enc csplain-utf8.ini
pdfcsplain xetex - -etex csplain.ini
pdfcsplain luatex - -etex csplain.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18085 |21mr|texlive-csquotes-5.2d-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-csquotes
Version:	5.2d
Release:	3
Summary:	Context sensitive quotation facilities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/csquotes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csquotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csquotes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides advanced facilities for inline and
display quotations. It is designed for a wide range of tasks
ranging from the most simple applications to the more complex
demands of formal quotations. The facilities include commands,
environments, and user-definable 'smart quotes' which
dynamically adjust to their context. Quotation marks are
switched automatically if quotations are nested and they can be
adjusted to the current language if the babel package is
available. There are additional facilities designed to cope
with the more specific demands of academic writing, especially
in the humanities and the social sciences. All quote styles as
well as the optional active quotes are freely configurable. The
package is dependent on e-TeX, and requires the author's
etoolbox package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/csquotes
%doc %{_texmfdistdir}/doc/latex/csquotes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18086 |21mr|texlive-csquotes-de-1.01-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23371
# category Package
# catalog-ctan /info/translations/csquotes/de
# catalog-date 2011-05-30 20:16:57 +0200
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-csquotes-de
Version:	1.01
Release:	6
Summary:	German translation of csquotes documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/csquotes/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csquotes-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csquotes-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a translation of the documentation of csquotes version
5.1.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/csquotes-de/LIESMICH
%doc %{_texmfdistdir}/doc/latex/csquotes-de/csquotes-DE.pdf
%doc %{_texmfdistdir}/doc/latex/csquotes-de/csquotes-DE.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18087 |21mr|texlive-cstex-20190324-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cstex
Version:	20190324
Release:	1
Summary:	Support for Czech/Slovak languages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/cstex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cstex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cstex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This package mirrors the macros part of the home site's
distribution of CSTeX. The licence (modified GPL) applies to
some of the additions that make it a Czech/Slovak language
distribution, rather than the distribution of a basic
Plain/LaTeX distribution.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/cstex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18088 |21mr|texlive-csvsimple-1.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-csvsimple
Version:	1.21
Release:	1
Summary:	Simple CSV file processing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/csvsimple
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csvsimple.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/csvsimple.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a simple LaTeX interface for the
processing of files with comma separated values (CSV); it
relies on the key value syntax supported by pgfkeys to simplify
usage. Filtering and table generation is especially supported;
however, this lightweight tool offers no support for data
sorting or data base storage.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/csvsimple
%doc %{_texmfdistdir}/doc/latex/csvsimple

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18089 |21mr|texlive-ctable-1.31-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33900
# category Package
# catalog-ctan /macros/latex/contrib/ctable
# catalog-date 2014-05-07 16:18:46 +0200
# catalog-license lppl
# catalog-version 1.29
Name:		texlive-ctable
Version:	1.31
Release:	3
Summary:	Flexible typesetting of table and figure floats using key/value directives
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ctable
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctable.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctable.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctable.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides commands to typeset centered, left- or right-aligned
table and (multiple-)figure floats, with footnotes. Instead of
an environment, a command with 4 arguments is used; the first
is optional and is used for key,value pairs generating
variations on the defaults and offering a route for future
extensions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ctable/ctable.sty
%doc %{_texmfdistdir}/doc/latex/ctable/01a
%doc %{_texmfdistdir}/doc/latex/ctable/01b
%doc %{_texmfdistdir}/doc/latex/ctable/02k
%doc %{_texmfdistdir}/doc/latex/ctable/02l
%doc %{_texmfdistdir}/doc/latex/ctable/02m
%doc %{_texmfdistdir}/doc/latex/ctable/03a
%doc %{_texmfdistdir}/doc/latex/ctable/03b
%doc %{_texmfdistdir}/doc/latex/ctable/04a
%doc %{_texmfdistdir}/doc/latex/ctable/04b
%doc %{_texmfdistdir}/doc/latex/ctable/05a
%doc %{_texmfdistdir}/doc/latex/ctable/05b
%doc %{_texmfdistdir}/doc/latex/ctable/05c
%doc %{_texmfdistdir}/doc/latex/ctable/06a
%doc %{_texmfdistdir}/doc/latex/ctable/06b
%doc %{_texmfdistdir}/doc/latex/ctable/07a
%doc %{_texmfdistdir}/doc/latex/ctable/07b
%doc %{_texmfdistdir}/doc/latex/ctable/08a
%doc %{_texmfdistdir}/doc/latex/ctable/08b
%doc %{_texmfdistdir}/doc/latex/ctable/09b
%doc %{_texmfdistdir}/doc/latex/ctable/10a
%doc %{_texmfdistdir}/doc/latex/ctable/10b
%doc %{_texmfdistdir}/doc/latex/ctable/12a
%doc %{_texmfdistdir}/doc/latex/ctable/12b
%doc %{_texmfdistdir}/doc/latex/ctable/13a
%doc %{_texmfdistdir}/doc/latex/ctable/13b
%doc %{_texmfdistdir}/doc/latex/ctable/13c
%doc %{_texmfdistdir}/doc/latex/ctable/14a
%doc %{_texmfdistdir}/doc/latex/ctable/README
%doc %{_texmfdistdir}/doc/latex/ctable/ctable.pdf
%doc %{_texmfdistdir}/doc/latex/ctable/doit
%doc %{_texmfdistdir}/doc/latex/ctable/inst
%doc %{_texmfdistdir}/doc/latex/ctable/lion.png
%doc %{_texmfdistdir}/doc/latex/ctable/penguin.jpg
#- source
%doc %{_texmfdistdir}/source/latex/ctable/ctable.dtx
%doc %{_texmfdistdir}/source/latex/ctable/ctable.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18090 |21mr|texlive-ctex-2.4.15-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ctex
Version:	2.4.15
Release:	1
Summary:	LaTeX classes and packages for Chinese typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/chinese/ctex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-ttfutils

%description
TeXLive ctex package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ctex
%{_texmfdistdir}/tex/generic/ctex
%doc %{_texmfdistdir}/doc/latex/ctex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18091 |21mr|texlive-ctex-faq-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/ctex-faq
# catalog-date 2009-11-09 15:03:08 +0100
# catalog-license fdl
# catalog-version undef
Name:		texlive-ctex-faq
Version:	20190228
Release:	1
Summary:	LaTeX FAQ by the Chinese TeX Society (ctex.org)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/ctex-faq
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctex-faq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctex-faq.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Most questions were collected on the bbs.ctex.org forum, and
were answered in detail by the author.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/ctex-faq/README
%doc %{_texmfdistdir}/doc/latex/ctex-faq/ctex-faq.pdf
%doc %{_texmfdistdir}/doc/latex/ctex-faq/src/ctex-faq.sty
%doc %{_texmfdistdir}/doc/latex/ctex-faq/src/ctex-faq.tex
%doc %{_texmfdistdir}/doc/latex/ctex-faq/src/make.bat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18092 |21mr|texlive-ctib-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/tibetan/ctib
# catalog-date 2007-02-04 13:34:13 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-ctib
Version:	20190228
Release:	1
Summary:	Tibetan for TeX and LATeX2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/tibetan/ctib
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package using a modified version of Sirlin's Tibetan font. An
advantage of this Tibetan implementation is that all consonant
clusters are formed by TeX and Metafont. No external
preprocessor is needed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/ctib/bzrsetup.mf
%{_texmfdistdir}/fonts/source/public/ctib/ctib.mf
%{_texmfdistdir}/fonts/source/public/ctib/ctibcode.mf
%{_texmfdistdir}/fonts/source/public/ctib/ctiblett.mf
%{_texmfdistdir}/fonts/source/public/ctib/ctibligs.mf
%{_texmfdistdir}/fonts/source/public/ctib/ctibnum.mf
%{_texmfdistdir}/fonts/source/public/ctib/ctibpunc.mf
%{_texmfdistdir}/fonts/source/public/ctib/ctibsplt.mf
%{_texmfdistdir}/fonts/source/public/ctib/ctibvow.mf
%{_texmfdistdir}/fonts/tfm/public/ctib/ctib.tfm
%{_texmfdistdir}/tex/latex/ctib/ctib.sty
%{_texmfdistdir}/tex/latex/ctib/ctib.tex
%{_texmfdistdir}/tex/latex/ctib/lctctib.fd
%{_texmfdistdir}/tex/latex/ctib/lctenc.def
%doc %{_texmfdistdir}/doc/latex/ctib/README
%doc %{_texmfdistdir}/doc/latex/ctib/ctib4tex.pdf
%doc %{_texmfdistdir}/doc/latex/ctib/ctib4tex.tex
#- source
%doc %{_texmfdistdir}/source/latex/ctib/COPYING
%doc %{_texmfdistdir}/source/latex/ctib/EMTEX
%doc %{_texmfdistdir}/source/latex/ctib/HISTORY
%doc %{_texmfdistdir}/source/latex/ctib/INSTALL
%doc %{_texmfdistdir}/source/latex/ctib/MIKTEX

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18093 |21mr|texlive-ctie-1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29764
# category TLCore
# catalog-ctan /web/c_cpp/ctie
# catalog-date 2012-06-18 22:39:13 +0200
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-ctie
Version:	1.1
Release:	11
Summary:	C version of tie (merging Web change files)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/web/c_cpp/ctie
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctie.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ctie.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-ctie.bin

%description
This is a version of tie converted for use with cweb.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/ctie.1*
%doc %{_texmfdistdir}/doc/man/man1/ctie.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18094 |21mr|texlive-cuisine-0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cuisine
# catalog-date 2006-12-09 15:50:57 +0100
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-cuisine
Version:	0.7
Release:	2
Summary:	Typeset recipes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cuisine
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cuisine.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cuisine.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cuisine.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typeset recipes with the ingredients lined up with their method
step (somewhat similarly to the layout used in cooking).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cuisine/cuisine.sty
%doc %{_texmfdistdir}/doc/latex/cuisine/README
%doc %{_texmfdistdir}/doc/latex/cuisine/cuisine.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cuisine/cuisine.dtx
%doc %{_texmfdistdir}/source/latex/cuisine/cuisine.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18095 |21mr|texlive-currfile-0.7c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29012
# category Package
# catalog-ctan /macros/latex/contrib/currfile
# catalog-date 2013-02-02 11:38:19 +0100
# catalog-license lppl1.3
# catalog-version 0.7b
Name:		texlive-currfile
Version:	0.7c
Release:	2
Summary:	Provide file name and path of input files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/currfile
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/currfile.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/currfile.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/currfile.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros holding file name information
(directory, base name, extension, full name and full path) for
files read by LaTeX \input and \include macros; it uses the
file hooks provided by the author's filehook. In particular, it
restores the parent file name after the trailing \clearpage of
an \included file; as a result, the macros may be usefully
employed in the page header and footer of the last printed page
of such a file. The depth of inclusion is made available,
together with the "parent" (including file) and "parents" (all
including files to the root of the tree). The package
supersedes FiNK.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/currfile/currfile-abspath.sty
%{_texmfdistdir}/tex/latex/currfile/currfile.sty
%doc %{_texmfdistdir}/doc/latex/currfile/README
%doc %{_texmfdistdir}/doc/latex/currfile/currfile.pdf
#- source
%doc %{_texmfdistdir}/source/latex/currfile/currfile.dtx
%doc %{_texmfdistdir}/source/latex/currfile/currfile.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18096 |21mr|texlive-currvita-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/currvita
# catalog-date 2006-12-09 16:04:04 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-currvita
Version:	20190228
Release:	1
Summary:	Typeset a curriculum vitae
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/currvita
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/currvita.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/currvita.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/currvita.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Currvita is a package rather than a class (like most other
curriculum vitae offerings). The author considers that a
curriculum vitae can quite reasonably form part of another
document (such as a letter, or a dissertation).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/currvita/currvita.sty
%doc %{_texmfdistdir}/doc/latex/currvita/README
%doc %{_texmfdistdir}/doc/latex/currvita/currvita.pdf
%doc %{_texmfdistdir}/doc/latex/currvita/cvtest.tex
#- source
%doc %{_texmfdistdir}/source/latex/currvita/currvita.dtx
%doc %{_texmfdistdir}/source/latex/currvita/currvita.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18097 |21mr|texlive-cursolatex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24139
# category Package
# catalog-ctan /info/portuguese/cursolatex
# catalog-date 2011-09-29 10:37:15 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-cursolatex
Version:	20190228
Release:	1
Summary:	A LaTeX tutorial
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/portuguese/cursolatex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cursolatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cursolatex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The tutorial is presented as a set of slides (in Portuguese).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/cursolatex/MiKTeX-Basic.png
%doc %{_texmfdistdir}/doc/latex/cursolatex/MiKTeX-Complete.png
%doc %{_texmfdistdir}/doc/latex/cursolatex/Musica.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/README
%doc %{_texmfdistdir}/doc/latex/cursolatex/TeXShopPNG.png
%doc %{_texmfdistdir}/doc/latex/cursolatex/TeXworksPDF.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/WinEdt.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/cursolatex.nav
%doc %{_texmfdistdir}/doc/latex/cursolatex/cursolatex.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/cursolatex.snm
%doc %{_texmfdistdir}/doc/latex/cursolatex/cursolatex.tex
%doc %{_texmfdistdir}/doc/latex/cursolatex/cursolatex.vrb
%doc %{_texmfdistdir}/doc/latex/cursolatex/emacs.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/integral.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/tabuleiro.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/texmaker.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/texniccenter.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/texstudio.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/tipografia.pdf
%doc %{_texmfdistdir}/doc/latex/cursolatex/ubuntu.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18098 |21mr|texlive-curve-1.16-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20745
# category Package
# catalog-ctan /macros/latex/contrib/curve
# catalog-date 2010-12-14 18:30:55 +0100
# catalog-license lppl
# catalog-version 1.16
Name:		texlive-curve
Version:	1.16
Release:	7
Summary:	A class for making curriculum vitae
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/curve
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curve.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curve.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curve.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
CurVe is a class for writing a CV, with configuration for the
language in which you write. The class provides a set of
commands to create rubrics, entries in these rubrics etc. CurVe
then format the CV (possibly splitting it onto multiple pages,
repeating the titles etc), which is usually the most painful
part of CV writing. Another nice feature of CurVe is its
ability to manage different CV 'flavours' simultaneously. It is
often the case that you want to maintain slightly divergent
versions of your CV at the same time, in order to emphasize on
different aspects of your background. CurVe also comes with
support for use with AUC-TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/curve/curve.cls
%doc %{_texmfdistdir}/doc/latex/curve/NEWS
%doc %{_texmfdistdir}/doc/latex/curve/README
%doc %{_texmfdistdir}/doc/latex/curve/THANKS
%doc %{_texmfdistdir}/doc/latex/curve/curve.el
%doc %{_texmfdistdir}/doc/latex/curve/curve.pdf
%doc %{_texmfdistdir}/doc/latex/curve/examples/Makefile
%doc %{_texmfdistdir}/doc/latex/curve/examples/bib.bib
%doc %{_texmfdistdir}/doc/latex/curve/examples/bib.tex
%doc %{_texmfdistdir}/doc/latex/curve/examples/raw.tex
%doc %{_texmfdistdir}/doc/latex/curve/examples/rubric.tex
%doc %{_texmfdistdir}/doc/latex/curve/header.inc
#- source
%doc %{_texmfdistdir}/source/latex/curve/curve.dtx
%doc %{_texmfdistdir}/source/latex/curve/curve.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18099 |21mr|texlive-curve2e-2.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-curve2e
Version:	2.0.1
Release:	1
Summary:	Extensions for package pict2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/curve2e
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curve2e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curve2e.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curve2e.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends the drawing capacities of the pict2e that
serves as a LaTeX 2e replacement for picture mode. In
particular, curve2e introduces new macros for lines and
vectors, new specifications for line terminations and joins,
arcs with any angular aperture, arcs with arrows at one or both
ends, generic curves specified with their nodes and the tangent
direction at these nodes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/curve2e
%doc %{_texmfdistdir}/doc/latex/curve2e
#- source
%doc %{_texmfdistdir}/source/latex/curve2e

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18100 |21mr|texlive-curves-1.55-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/curves
# catalog-date 2009-09-24 20:53:04 +0200
# catalog-license lppl
# catalog-version 1.53
Name:		texlive-curves
Version:	1.55
Release:	2
Summary:	Curves for LaTeX picture environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/curves
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curves.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curves.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/curves.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The draws curves in the standard LaTeX picture environment
using parabolas between data points with continuous slope at
joins; for circles and arcs, it uses up to 16 parabolas. The
package also draws symbols or dash patterns along curves. The
package provides facilities equivalent to technical pens with
compasses and French curves. Curves consist of short secants
drawn by overlapping disks or line-drawing \special commands
selected by package options.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/curves/curves.sty
%{_texmfdistdir}/tex/latex/curves/curvesls.sty
%doc %{_texmfdistdir}/doc/latex/curves/README
%doc %{_texmfdistdir}/doc/latex/curves/curves.pdf
%doc %{_texmfdistdir}/doc/latex/curves/latex2pdf
#- source
%doc %{_texmfdistdir}/source/latex/curves/curves.dtx
%doc %{_texmfdistdir}/source/latex/curves/curves.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18101 |21mr|texlive-cutwin-0.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/cutwin
# catalog-date 2012-05-30 14:33:40 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-cutwin
Version:	0.1
Release:	13
Summary:	Cut a window in a paragraph, typeset material in it
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cutwin
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cutwin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cutwin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cutwin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides facilities to cut windows out of
paragraphs, and to typeset text or other material in the
window. The window may be rectangular, or may have other sorts
of shape.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cutwin/cutwin.sty
%doc %{_texmfdistdir}/doc/latex/cutwin/README
%doc %{_texmfdistdir}/doc/latex/cutwin/cutwin.pdf
#- source
%doc %{_texmfdistdir}/source/latex/cutwin/cutwin.dtx
%doc %{_texmfdistdir}/source/latex/cutwin/cutwin.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18102 |21mr|texlive-cv-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/cv
# catalog-date 2008-06-30 22:37:02 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-cv
Version:	20190228
Release:	1
Summary:	A package for creating a curriculum vitae
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cv
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is distributed with two example files; they (and
their formatted output) constitute the only real documentation.
Note that cv is just a package: you choose the overall
formatting by deciding which class to use, while the package
provides the detailed formatting.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cv/CV.sty
%doc %{_texmfdistdir}/doc/latex/cv/ApplicationLetter.pdf
%doc %{_texmfdistdir}/doc/latex/cv/ApplicationLetter.tex
%doc %{_texmfdistdir}/doc/latex/cv/CVCTAN.pdf
%doc %{_texmfdistdir}/doc/latex/cv/CVCTAN.tex
%doc %{_texmfdistdir}/doc/latex/cv/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18103 |21mr|texlive-cv4tw-0.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cv4tw
Version:	0.2
Release:	3
Summary:	LaTeX CV class, with extended details
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cv4tw
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cv4tw.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cv4tw.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class offers entries for assets and social networks;
customizable styles are provided. The class comes with no
documentation, but a worked example offers some guidance.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cv4tw
%doc %{_texmfdistdir}/doc/latex/cv4tw

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18104 |21mr|texlive-cweb-3.64b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cweb
Version:	3.64b
Release:	2
Summary:	A Web system in C
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/web/c_cpp/cweb
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cweb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cweb.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-cweb.bin

%description
The Cweb system is a system for Structured Software
Documentation (also known as Literate Programming) in the
programming language C.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/cweb
%doc %{_mandir}/man1/ctangle.1*
%doc %{_texmfdistdir}/doc/man/man1/ctangle.man1.pdf
%doc %{_mandir}/man1/cweave.1*
%doc %{_texmfdistdir}/doc/man/man1/cweave.man1.pdf
%doc %{_mandir}/man1/cweb.1*
%doc %{_texmfdistdir}/doc/man/man1/cweb.man1.pdf
%doc %{_texmfdistdir}/doc/plain/cweb

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18105 |21mr|texlive-cweb-latex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28878

# category Package
# catalog-ctan /macros/latex/contrib/cweb
# catalog-date 2013-01-19 01:25:39 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-cweb-latex
Version:	20190228
Release:	1
Summary:	A LaTeX version of CWEB
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/cweb
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cweb-latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cweb-latex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle allows marking-up of CWEB code in LaTeX. The
distribution includes the "Counting Words" program distributed
with CWEB, edited to run with LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cweb-latex/cwbl-german.sty
%{_texmfdistdir}/tex/latex/cweb-latex/cweb.cls
%{_texmfdistdir}/tex/latex/cweb-latex/cwebarray.sty
%{_texmfdistdir}/tex/latex/cweb-latex/cwebbase.tex
%{_texmfdistdir}/tex/latex/cweb-latex/keyvald.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/CATALOG
%doc %{_texmfdistdir}/doc/latex/cweb-latex/History
%doc %{_texmfdistdir}/doc/latex/cweb-latex/INSTALL
%doc %{_texmfdistdir}/doc/latex/cweb-latex/License
%doc %{_texmfdistdir}/doc/latex/cweb-latex/MANIFEST
%doc %{_texmfdistdir}/doc/latex/cweb-latex/Makefile
%doc %{_texmfdistdir}/doc/latex/cweb-latex/README
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/Index
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/cwbl-deutsch.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/cwbl-french.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/cwbl-italian.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/cweb-hy/README.txt
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/cweb-hy/cwbasehy.tex
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/cweb-hy/cweb-hy.cls
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/cweb-hy/nodoc.tex
%doc %{_texmfdistdir}/doc/latex/cweb-latex/contrib/wagner/cwebzw.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/cweb-conf.pdf
%doc %{_texmfdistdir}/doc/latex/cweb-latex/cweb-user.pdf
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/Makefile
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/compare/wcltx.aux
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/compare/wcltx.bbl
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/compare/wcltx.dvi
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/compare/wcltx.idx
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/compare/wcltx.log
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/compare/wcltx.scn
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/compare/wcltx.tex
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/rcs.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/tex-it
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/wcltx.bib
%doc %{_texmfdistdir}/doc/latex/cweb-latex/examples/wcltx.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/Imakefile
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/README
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/TODO
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cwbl-german.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cweave-spec.tex
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cweb-conf.tex
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cweb-doc.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cweb-fsa.fig
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cweb-fsa.latex
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cweb-fsa.ltx
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cweb-user.tex
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cweb.doc
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cwebarray.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cwebbase.doc
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cwebparts.doc
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/cwebx.sty
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/keyvald.dtx
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/keyvald.ins
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/style/cweb-doc.el
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/Imakefile
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/badend.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/badopts.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/change.ch
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/change.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/enddocbegin.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/flat.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/german.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/language-german.ch
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/language-german.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/minimal.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/modes.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/newif.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/nolists.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/parts-code.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/parts.tex
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/refname.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/report.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/section.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/sup-changes.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/sup-format.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/sup-lists.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/titlepage.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/token.w
%doc %{_texmfdistdir}/doc/latex/cweb-latex/src/test/vbar.w

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18106 |21mr|texlive-cyklop-0.915-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/cyklop
# catalog-date 2008-12-15 08:58:20 +0100
# catalog-license gfl
# catalog-version 0.915
Name:		texlive-cyklop
Version:	0.915
Release:	7
Summary:	The Cyclop typeface
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cyklop
License:	GFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyklop.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyklop.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Cyclop typeface was designed in the 1920s at the workshop
of Warsaw type foundry "Odlewnia Czcionek J. Idzkowski i S-ka".
This sans serif typeface has a highly modulated stroke so it
has high typographic contrast. The vertical stems are much
heavier then horizontal ones. Most characters have thin
rectangles as additional counters giving the unique shape of
the characters. The lead types of Cyclop typeface were produced
in slanted variant at sizes 8-48 pt. It was heavily used for
heads in newspapers and accidents prints. Typesetters used
Cyclop in the inter-war period, during the occupation in the
underground press. The typeface was used until the beginnings
of the offset print and computer typesetting era. Nowadays it
is hard to find the metal types of this typeface. The font was
generated using the Metatype1 package. Then the original set of
characters was completed by adding the full set of accented
letters and characters of the modern Latin alphabets (including
Vietnamese). The upright variant was generated and it was more
complicated task than it appeared at the beginning. 11 upright
letters of the Cyclop typeface were presented in the book by
Filip Trzaska, "Podstawy techniki wydawniczej" ("Foundation of
the publishing techonology"), Warsaw 1967. But even the author
of the book does not know what was the source of the presented
examples. The fonts are distributed in the Type1 and OpenType
formats along with the files necessary for use these fonts in
TeX and LaTeX including encoding definition files: T1 (ec), T5
(Vietnamese), OT4, QX, texnansi and nonstandard ones (IL2 for
Czech fonts).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/cyklop/cyklopi.afm
%{_texmfdistdir}/fonts/afm/public/cyklop/cyklopr.afm
%{_texmfdistdir}/fonts/enc/dvips/cyklop/cs-cyklop-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/cs-cyklop.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/ec-cyklop-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/ec-cyklop.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/l7x-cyklop-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/l7x-cyklop.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/ly1-cyklop-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/ly1-cyklop.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/qx-cyklop-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/qx-cyklop.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/t5-cyklop-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/cyklop/t5-cyklop.enc
%{_texmfdistdir}/fonts/map/dvips/cyklop/cyklop-cs.map
%{_texmfdistdir}/fonts/map/dvips/cyklop/cyklop-ec.map
%{_texmfdistdir}/fonts/map/dvips/cyklop/cyklop-l7x.map
%{_texmfdistdir}/fonts/map/dvips/cyklop/cyklop-ly1.map
%{_texmfdistdir}/fonts/map/dvips/cyklop/cyklop-qx.map
%{_texmfdistdir}/fonts/map/dvips/cyklop/cyklop-t5.map
%{_texmfdistdir}/fonts/map/dvips/cyklop/cyklop.map
%{_texmfdistdir}/fonts/opentype/public/cyklop/cyklop-italic.otf
%{_texmfdistdir}/fonts/opentype/public/cyklop/cyklop-regular.otf
%{_texmfdistdir}/fonts/tfm/public/cyklop/cs-cyklopi-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/cs-cyklopi.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/cs-cyklopr-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/cs-cyklopr.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/ec-cyklopi-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/ec-cyklopi.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/ec-cyklopr-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/ec-cyklopr.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/l7x-cyklopi-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/l7x-cyklopi.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/l7x-cyklopr-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/l7x-cyklopr.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/ly1-cyklopi-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/ly1-cyklopi.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/ly1-cyklopr-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/ly1-cyklopr.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/qx-cyklopi-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/qx-cyklopi.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/qx-cyklopr-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/qx-cyklopr.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/t5-cyklopi-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/t5-cyklopi.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/t5-cyklopr-sc.tfm
%{_texmfdistdir}/fonts/tfm/public/cyklop/t5-cyklopr.tfm
%{_texmfdistdir}/fonts/type1/public/cyklop/cyklopi.pfb
%{_texmfdistdir}/fonts/type1/public/cyklop/cyklopr.pfb
%{_texmfdistdir}/tex/latex/cyklop/cyklop.sty
%{_texmfdistdir}/tex/latex/cyklop/il2cyklop.fd
%{_texmfdistdir}/tex/latex/cyklop/l7xcyklop.fd
%{_texmfdistdir}/tex/latex/cyklop/ly1cyklop.fd
%{_texmfdistdir}/tex/latex/cyklop/ot1cyklop.fd
%{_texmfdistdir}/tex/latex/cyklop/ot4cyklop.fd
%{_texmfdistdir}/tex/latex/cyklop/qxcyklop.fd
%{_texmfdistdir}/tex/latex/cyklop/t1cyklop.fd
%{_texmfdistdir}/tex/latex/cyklop/t5cyklop.fd
%doc %{_texmfdistdir}/doc/fonts/cyklop/00readme
%doc %{_texmfdistdir}/doc/fonts/cyklop/00readme-pl
%doc %{_texmfdistdir}/doc/fonts/cyklop/GUST-FONT-LICENSE.txt
%doc %{_texmfdistdir}/doc/fonts/cyklop/MANIFEST.txt
%doc %{_texmfdistdir}/doc/fonts/cyklop/cyklop-info.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18107 |21mr|texlive-cyrillic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-cyrillic
Version:	20190228
Release:	1
Summary:	Support for Cyrillic fonts in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/required/cyrillic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyrillic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyrillic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyrillic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-cyrillic-bin

%description
This bundle of macros files provides macro support (including
font encoding macros) for the use of Cyrillic characters in
fonts encoded under the T2* and X2 encodings. These encodings
cover (between them) pretty much every language that is written
in a Cyrillic alphabet. This directory is part of the LaTeX
"required" distribution.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/cyrillic
%doc %{_texmfdistdir}/doc/latex/cyrillic
#- source
%doc %{_texmfdistdir}/source/latex/cyrillic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18108 |21mr|texlive-cyrillic-bin-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-cyrillic-bin
Version:	20190327
Release:	1
Summary:	Cyrillic bibtex and makeindex
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyrillic-bin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyrillic-bin.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-cyrillic-bin.bin = %{EVRD}

%description
TeXLive cyrillic-bin package.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_bindir}/rubibtex
%{_bindir}/rumakeindex
%{_texmfdistdir}/scripts/texlive/rubibtex.sh
%{_texmfdistdir}/scripts/texlive/rumakeindex.sh
%doc %{_mandir}/man1/rubibtex.1*
%doc %{_texmfdistdir}/doc/man/man1/rubibtex.man1.pdf
%doc %{_mandir}/man1/rumakeindex.1*
%doc %{_texmfdistdir}/doc/man/man1/rumakeindex.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texlive/rubibtex.sh rubibtex
    ln -sf %{_texmfdistdir}/scripts/texlive/rumakeindex.sh rumakeindex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18109 |21mr|texlive-cyrplain-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-cyrplain
Version:	20190228
Release:	1
Summary:	TeXLive cyrplain package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/cyrplain.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive cyrplain package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/cyrplain/README
%{_texmfdistdir}/tex/plain/cyrplain/cyramstx.ini
%{_texmfdistdir}/tex/plain/cyrplain/cyrblue.ini
%{_texmfdistdir}/tex/plain/cyrplain/cyrcmfnt.tex
%{_texmfdistdir}/tex/plain/cyrplain/cyrecfnt.tex
%{_texmfdistdir}/tex/plain/cyrplain/cyrtex.cfg
%{_texmfdistdir}/tex/plain/cyrplain/cyrtex.ini
%{_texmfdistdir}/tex/plain/cyrplain/cyrtex.tex
%{_texmfdistdir}/tex/plain/cyrplain/cyrtxinf.ini
%{_texmfdistdir}/tex/plain/cyrplain/makefmts.bat
%{_texmfdistdir}/tex/plain/cyrplain/makefmts.sh
%{_texmfdistdir}/tex/plain/cyrplain/plainenc.tex
%{_texmfdistdir}/tex/plain/cyrplain/txxdefs.tex
%{_texmfdistdir}/tex/plain/cyrplain/txxextra.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18110 |21mr|texlive-dashbox-1.14-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23425
# category Package
# catalog-ctan /macros/latex/contrib/dashbox
# catalog-date 2011-08-05 01:24:20 +0200
# catalog-license lppl
# catalog-version 1.14
Name:		texlive-dashbox
Version:	1.14
Release:	7
Summary:	Draw dashed boxes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dashbox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dashbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dashbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dashbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can draw boxes that perform like \framebox or
\fbox, but use dashed lines. The package can also draw (an
illusion of) vertical stacks of boxes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dashbox/dashbox.sty
%doc %{_texmfdistdir}/doc/latex/dashbox/dashbox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dashbox/dashbox.dtx
%doc %{_texmfdistdir}/source/latex/dashbox/dashbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18111 |21mr|texlive-dashrule-1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29579
# category Package
# catalog-ctan /macros/latex/contrib/dashrule
# catalog-date 2013-03-31 13:01:15 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-dashrule
Version:	1.3
Release:	10
Summary:	Draw dashed rules
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dashrule
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dashrule.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dashrule.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dashrule.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The dashrule package makes it easy to draw a huge variety of
dashed rules (i.e., lines) in LaTeX. dashrule provides a
command, \hdashrule, which is a cross between LaTeX's \rule and
PostScript's setdash command. \hdashrule draws horizontally
dashed rules using the same syntax as \rule, but with an
additional, setdash-like parameter that specifies the pattern
of dash segments and the space between those segments. Because
dashrule's rules are constructed internally using \rule (as
opposed to, e.g., PostScript \specials) they are fully
compatible with every LaTeX back-end processor.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dashrule/dashrule.sty
%doc %{_texmfdistdir}/doc/latex/dashrule/README
%doc %{_texmfdistdir}/doc/latex/dashrule/dashrule.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dashrule/dashrule.dtx
%doc %{_texmfdistdir}/source/latex/dashrule/dashrule.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18112 |21mr|texlive-dashundergaps-2.0a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23373
# category Package
# catalog-ctan /macros/latex/contrib/dashundergaps
# catalog-date 2010-01-23 00:15:17 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-dashundergaps
Version:	2.0a
Release:	2
Summary:	Underline with dotted or dashed lines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dashundergaps
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dashundergaps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dashundergaps.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands (\underline, \dotuline and
\dashuline) each of which underlines its argument with one of
the styles the package is capable of. A phantom mode is
provided, where the underline (of whatever form) can serve for
a 'fill-in block' for student evaluation sheets.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dashundergaps/dashundergaps.sty
%doc %{_texmfdistdir}/doc/latex/dashundergaps/README
%doc %{_texmfdistdir}/doc/latex/dashundergaps/doc/pdf/dashundergaps.pdf
%doc %{_texmfdistdir}/doc/latex/dashundergaps/doc/tex/Makefile
%doc %{_texmfdistdir}/doc/latex/dashundergaps/doc/tex/dashundergaps-bib.bib
%doc %{_texmfdistdir}/doc/latex/dashundergaps/doc/tex/dashundergaps.forlisting
%doc %{_texmfdistdir}/doc/latex/dashundergaps/doc/tex/dashundergaps.tex
%doc %{_texmfdistdir}/doc/latex/dashundergaps/doc/tex/perso.ist

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18113 |21mr|texlive-dataref-0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dataref
Version:	0.6
Release:	2
Summary:	Manage references to experimental data
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dataref
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dataref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dataref.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a mechanism that maintains a fixed
symbolic reference to numerical results; such results may vary
as the project proceeds (and hence the project report
develops).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dataref
%doc %{_texmfdistdir}/doc/latex/dataref

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18114 |21mr|texlive-datatool-2.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datatool
Version:	2.31
Release:	1
Summary:	Tools to load and manipulate data
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/datatool
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datatool.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datatool.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datatool.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The tools comprise six packages: datatool.sty: databases may be
created using LaTeX commands or by importing external files;
they may be sorted numerically or alphabetically; repetitive
operations (such as mail merging) may be performed on each row
of a database, subject to conditions to exclude particular
rows; commands are provided to examine database elements, and
to convert formats (for example, to convert a numeric element
to a format compatible with the fp package; datapie.sty: a
database may be represented as a pie chart; flexible options
allow colouring of the chart, and annotation hooks are
available; dataplot.sty: a database may be represented as a 2-
dimensional scatter or line plot; flexible options control of
the plot's overall appearance, and of legends and other extra
information; databar.sty: a database may be represented as a
bar chart; overall appearance, colouring and annotation are
controllable; datagidx.sty: provides a way of indexing or
creating glossaries/lists of acronyms that uses TeX to do the
sorting and collating instead of using an external indexing
application, such as xindy or makeindex; databib.sty: a
bibliography may be loaded into a datatool database, and
manipulated there before being printed (this permits a LaTeX-
based route to printing bibliographies in formats for which no
BibTeX style is available); and person.sty: provides support
for displaying a person's name and pronoun in a document, thus
avoiding cumbersome use of "he/she", etc. The drawing packages
make use of PGF/TikZ for their output. The bundle replaces and
supersedes the author's csvtools bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/datatool
%{_texmfdistdir}/tex/latex/datatool
%doc %{_texmfdistdir}/doc/latex/datatool
#- source
%doc %{_texmfdistdir}/source/latex/datatool

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18115 |21mr|texlive-dateiliste-0.6-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27974
# category Package
# catalog-ctan /macros/latex/contrib/dateiliste
# catalog-date 2012-10-15 00:17:21 +0200
# catalog-license lppl
# catalog-version 0.6
Name:		texlive-dateiliste
Version:	0.6
Release:	10
Summary:	Extensions of the \listfiles concept
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dateiliste
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dateiliste.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dateiliste.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dateiliste.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a file list (similar to that offered by
\listfiles), neatly laid out as a table. The main document can
be included in the list, and a command is available for
providing RCS-maintained data for printing in the file list.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dateiliste/dateiliste.sty
%doc %{_texmfdistdir}/doc/latex/dateiliste/README
%doc %{_texmfdistdir}/doc/latex/dateiliste/README-de
%doc %{_texmfdistdir}/doc/latex/dateiliste/README-en
%doc %{_texmfdistdir}/doc/latex/dateiliste/README-eo
%doc %{_texmfdistdir}/doc/latex/dateiliste/dateiliste.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dateiliste/dateiliste.dtx
%doc %{_texmfdistdir}/source/latex/dateiliste/dateiliste.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18116 |21mr|texlive-datenumber-0.02-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18951
# category Package
# catalog-ctan /macros/latex/contrib/datenumber
# catalog-date 2006-11-16 11:36:05 +0100
# catalog-license lppl
# catalog-version 0.02
Name:		texlive-datenumber
Version:	0.02
Release:	7
Summary:	Convert a date into a number and vice versa
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/datenumber
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datenumber.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datenumber.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datenumber.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides commands to convert a date into a number
and vice versa. Additionally there are commands for
incrementing and decrementing a date. Leap years and the
Gregorian calendar reform are considered.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datenumber/datenumber.sty
%{_texmfdistdir}/tex/latex/datenumber/datenumberUSenglish.ldf
%{_texmfdistdir}/tex/latex/datenumber/datenumberdummy.ldf
%{_texmfdistdir}/tex/latex/datenumber/datenumberenglish.ldf
%{_texmfdistdir}/tex/latex/datenumber/datenumberfrench.ldf
%{_texmfdistdir}/tex/latex/datenumber/datenumbergerman.ldf
%{_texmfdistdir}/tex/latex/datenumber/datenumberspanish.ldf
%doc %{_texmfdistdir}/doc/latex/datenumber/README.txt
%doc %{_texmfdistdir}/doc/latex/datenumber/doc.pdf
%doc %{_texmfdistdir}/doc/latex/datenumber/doc.tex
%doc %{_texmfdistdir}/doc/latex/datenumber/docgerman.pdf
%doc %{_texmfdistdir}/doc/latex/datenumber/docgerman.tex
#- source
%doc %{_texmfdistdir}/source/latex/datenumber/datenumber.dtx
%doc %{_texmfdistdir}/source/latex/datenumber/datenumber.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18117 |21mr|texlive-datetime-2.60-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-datetime
Version:	2.60
Release:	2
Summary:	Change format of \today with commands for current time
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/datetime
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/datetime.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-fmtcount

%description
Provides various different formats for the text created by the
command \today, and also provides commands for displaying the
current time (or any given time), in 12-hour, 24-hour or text
format. The package overrides babel's date format, having its
own library of date formats in different languages. The package
requires the fmtcount package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/datetime
%doc %{_texmfdistdir}/doc/latex/datetime
#- source
%doc %{_texmfdistdir}/source/latex/datetime

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18118 |21mr|texlive-dblfloatfix-1.0a-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28983
# category Package
# catalog-ctan /macros/latex/contrib/dblfloatfix
# catalog-date 2013-01-29 13:50:02 +0100
# catalog-license lppl1.3
# catalog-version 1.0a
Name:		texlive-dblfloatfix
Version:	1.0a
Release:	10
Summary:	Fixes for twocolumn floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dblfloatfix
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dblfloatfix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dblfloatfix.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package solves two problems: floats in a twocolumn document
come out in the right order and allowed float positions are now
[tbp]. The package actually merges facilities from fixltx2e and
stfloats.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dblfloatfix/dblfloatfix.sty
%doc %{_texmfdistdir}/doc/latex/dblfloatfix/dblfloatfix.pdf
%doc %{_texmfdistdir}/doc/latex/dblfloatfix/dblfloatfix.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18119 |21mr|texlive-dccpaper-1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dccpaper
Version:	1.8
Release:	1
Summary:	Typeset papers for the International Journal of Digital Curation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dccpaper
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dccpaper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dccpaper.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dccpaper.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The LaTeX class ijdc-v9 produces camera-ready papers and
articles suitable for inclusion in the International Journal of
Digital Curation, with applicability from volume 9 onwards. The
similar idcc class can be used for submissions to the
International Digital Curation Conference, beginning with the
2015 conference.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dccpaper
%doc %{_texmfdistdir}/doc/latex/dccpaper
#- source
%doc %{_texmfdistdir}/source/latex/dccpaper

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18120 |21mr|texlive-dcpic-5.0.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30206
# category Package
# catalog-ctan /macros/generic/diagrams/dcpic
# catalog-date 2013-05-02 01:06:38 +0200
# catalog-license lppl1.3
# catalog-version 5.0.0
Name:		texlive-dcpic
Version:	5.0.0
Release:	10
Summary:	Commutative diagrams in a LaTeX and TeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/diagrams/dcpic
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dcpic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dcpic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
DCpic is a package for typesetting Commutative Diagrams within
a LaTeX and TeX documents. Its distinguishing features are: a
powerful graphical engine, the PiCTeX package; an easy
specification syntax in which a commutative diagram is
described in terms of its objects and its arrows (morphism),
positioned in a Cartesian coordinate system.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/dcpic/dcpic.sty
%{_texmfdistdir}/tex/generic/dcpic/europroc.cls
%doc %{_texmfdistdir}/doc/generic/dcpic/README
%doc %{_texmfdistdir}/doc/generic/dcpic/eurotex2001.pdf
%doc %{_texmfdistdir}/doc/generic/dcpic/eurotex2001.tex
%doc %{_texmfdistdir}/doc/generic/dcpic/examples.pdf
%doc %{_texmfdistdir}/doc/generic/dcpic/examples.tex
%doc %{_texmfdistdir}/doc/generic/dcpic/manDCPiC.pdf
%doc %{_texmfdistdir}/doc/generic/dcpic/manDCPiC.tex
%doc %{_texmfdistdir}/doc/generic/dcpic/manDCPiCpt.pdf
%doc %{_texmfdistdir}/doc/generic/dcpic/manDCPiCpt.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18121 |21mr|texlive-decimal-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23374
# category Package
# catalog-ctan /macros/latex/contrib/decimal
# catalog-date 2011-06-06 11:09:01 +0200
# catalog-license lppl1
# catalog-version undef
Name:		texlive-decimal
Version:	20190228
Release:	1
Summary:	LaTeX package for the English raised decimal point
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/decimal
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/decimal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/decimal.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/decimal.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package should be used by people who need the
traditional English raised decimal point, instead of the
American-style period.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/decimal/decimal.sty
%doc %{_texmfdistdir}/doc/latex/decimal/decimal.pdf
#- source
%doc %{_texmfdistdir}/source/latex/decimal/decimal.dtx
%doc %{_texmfdistdir}/source/latex/decimal/decimal.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18122 |21mr|texlive-decorule-0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23487
# category Package
# catalog-ctan /macros/latex/contrib/decorule
# catalog-date 2011-08-06 17:02:51 +0200
# catalog-license lppl1.3
# catalog-version 0.6
Name:		texlive-decorule
Version:	0.6
Release:	7
Summary:	Decorative swelled rule using font character
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/decorule
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/decorule.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/decorule.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/decorule.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package implements a decorative swelled rule using only a
symbol from a font installed with all distributions of TeX, so
it works independently, without the need to install any
additional software or fonts. This is the packaged version of
the macro which was originally published in the "Typographers'
Inn" column in TUGboat 31:1 (2010).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/decorule/decorule.sty
%doc %{_texmfdistdir}/doc/latex/decorule/MANIFEST
%doc %{_texmfdistdir}/doc/latex/decorule/README
%doc %{_texmfdistdir}/doc/latex/decorule/decorule.pdf
#- source
%doc %{_texmfdistdir}/source/latex/decorule/decorule.dtx
%doc %{_texmfdistdir}/source/latex/decorule/decorule.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18123 |21mr|texlive-dehyph-2018-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dehyph
Version:	2018
Release:	1
Summary:	Memoir-based class for formatting University of Auckland theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dehyph
License:	LPPL1.3
Source0:	http://mirror.its.dal.ca/ctan/systems/texlive/tlnet/archive/dehyph.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A memoir-based class for formatting University of Auckland
masters' and doctors' thesis dissertations in any discipline.
The title page does not handle short dissertations for
diplomas.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/dehyph

#-----------------------------------------------------------------------
%prep
%setup -c -a0 

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18124 |21mr|texlive-dehyph-exptl-0.60-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dehyph-exptl
Version:	0.60
Release:	1
Summary:	Experimental hyphenation patterns for the German language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/dehyph-exptl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dehyph-exptl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dehyph-exptl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
The package provides experimental hyphenation patterns for the
German language, covering both traditional and reformed
orthography. The patterns can be used with packages Babel and
hyphsubst.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/dehyph-exptl
%_texmf_language_dat_d/dehyph-exptl
%_texmf_language_def_d/dehyph-exptl
%_texmf_language_lua_d/dehyph-exptl
%doc %{_texmfdistdir}/doc/generic/dehyph-exptl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

cd tex/generic/dehyph-exptl
DEHYPHT="`ls dehypht-x-*.tex |head -n1`"
TVERSION="`echo $DEHYPHT |sed -e 's,^dehypht-x-,,;s,\.tex,,'`"
DEHYPHN="`ls dehyphn-x-*.tex |head -n1`"
NVERSION="`echo $DEHYPHN |sed -e 's,^dehyphn-x-,,;s,\.tex,,'`"
cd -
if ! echo $TVERSION |grep -qE '^[0-9][0-9][0-9][0-9]-[01][0-9]-[0-3][0-9]$'; then
	echo "Version detection failed, please fix the spec"
	exit 1
fi
if ! echo $NVERSION |grep -qE '^[0-9][0-9][0-9][0-9]-[01][0-9]-[0-3][0-9]$'; then
	echo "Version detection failed, please fix the spec"
	exit 1
fi

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/dehyph-exptl <<EOF
\%% from dehyph-exptl:
german-x-$TVERSION $DEHYPHT
=german-x-latest
ngerman-x-$NVERSION $DEHYPHN
=ngerman-x-latest
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/dehyph-exptl
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/dehyph-exptl <<EOF
\%% from dehyph-exptl:
\addlanguage{german-x-$TVERSION}{$DEHYPHT}{}{2}{2}
\addlanguage{german-x-latest}{$DEHYPHT}{}{2}{2}
\addlanguage{ngerman-x-$NVERSION}{$DEHYPHN}{}{2}{2}
\addlanguage{ngerman-x-latest}{$DEHYPHN}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/dehyph-exptl
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/dehyph-exptl <<EOF
-- from dehyph-exptl:
	['german-x-$TVERSION'] = {
		loader = '$DEHYPHT',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = { 'german-x-latest' },
		patterns = 'hyph-de-1901.pat.txt',
		hyphenation = 'hyph-de-1901.hyp.txt',
	},
	['ngerman-x-$NVERSION'] = {
		loader = '$DEHYPHN',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = { 'ngerman-x-latest' },
		patterns = 'hyph-de-1996.pat.txt',
		hyphenation = 'hyph-de-1996.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18125 |21mr|texlive-delim-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23974
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-delim
Version:	1.0
Release:	2
Epoch:		1
Summary:	TeXLive delim package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/delim.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/delim.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/delim.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive delim package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/delim/delim.sty
%doc %{_texmfdistdir}/doc/latex/delim/README
%doc %{_texmfdistdir}/doc/latex/delim/delim.pdf
#- source
%doc %{_texmfdistdir}/source/latex/delim/delim.dtx
%doc %{_texmfdistdir}/source/latex/delim/delim.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18126 |21mr|texlive-delimtxt-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16549
# category Package
# catalog-ctan /macros/latex/exptl/delimtxt
# catalog-date 2008-08-18 10:38:42 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-delimtxt
Version:	20190228
Release:	1
Summary:	Read and parse text tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/exptl/delimtxt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/delimtxt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/delimtxt.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/delimtxt.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This experimental package can read and parse text tables
delimited by user-defined tokens (e.g., tab). It can be used
for serial letters and the like, making it easier to export the
data file from MS-Excel/MS-Word.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/delimtxt/delimtxt.sty
%doc %{_texmfdistdir}/doc/latex/delimtxt/delimtxt.pdf
%doc %{_texmfdistdir}/doc/latex/delimtxt/resulta.dat
%doc %{_texmfdistdir}/doc/latex/delimtxt/resultb.dat
%doc %{_texmfdistdir}/doc/latex/delimtxt/resultc.dat
%doc %{_texmfdistdir}/doc/latex/delimtxt/test1.tex
%doc %{_texmfdistdir}/doc/latex/delimtxt/test2.tex
%doc %{_texmfdistdir}/doc/latex/delimtxt/test3.tex
#- source
%doc %{_texmfdistdir}/source/latex/delimtxt/delimtxt.dtx
%doc %{_texmfdistdir}/source/latex/delimtxt/delimtxt.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18127 |21mr|texlive-detex-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /support/detex
# catalog-date 2012-05-07 22:13:48 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-detex
Version:	20190327
Release:	1
Summary:	Strip TeX from a source file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/detex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/detex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/detex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-detex.bin

%description
Detex is a program to remove TeX constructs from a text file.
It recognizes the \input command. The program assumes it is
dealing with LaTeX input if it sees the string \begin{document}
in the text. In this case, it also recognizes the \include and
\includeonly commands.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/detex.1*
%doc %{_texmfdistdir}/doc/man/man1/detex.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18128 |21mr|texlive-devnag-2.15.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category TLCore
# catalog-ctan /language/devanagari/velthuis
# catalog-date 2012-05-07 21:56:17 +0200
# catalog-license gpl
# catalog-version 2.15.1
Name:		texlive-devnag
Version:	2.15.1
Release:	10
Summary:	Typeset Devanagari
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/devanagari/velthuis
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/devnag.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-devnag.bin

%description
Frans Velthuis' preprocessor for Devanagari text, and fonts and
macros to use when typesetting the processed text. The macros
provide features that support Sanskrit, Hindi, Marathi, Nepali,
and other languages typically printed in the Devanagari script.
The fonts are available both in Metafont and Type 1 format.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18129 |21mr|texlive-dhua-0.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24035
# category Package
# catalog-ctan /macros/latex/contrib/dhua
# catalog-date 2011-09-20 00:29:10 +0200
# catalog-license lppl1.3
# catalog-version 0.11
Name:		texlive-dhua
Version:	0.11
Release:	7
Summary:	German abbreviations using thin space
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dhua
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dhua.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dhua.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dhua.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands for those abbreviations of German
phrases for which the use of thin space is recommended. Setup
commands \newdhua and \newtwopartdhua are provided, as well as
commands for single cases (such as \zB for 'z. B.', saving the
user from typing such as 'z.\,B.'). To typeset the
documentation, the niceverb package, version 0.44, or later, is
required. Das Paket `dhua' stellt Befehle fur sog.
mehrgliedrige Abkurzungen bereit, fur die schmale Leerzeichen
(Festabstande) empfohlen werden (Duden, Wikipedia). In die
englische Paketdokumentation sind deutsche Erlauterungen
eingestreut.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dhua/dhua.cfg
%{_texmfdistdir}/tex/latex/dhua/dhua.sty
%doc %{_texmfdistdir}/doc/latex/dhua/README
%doc %{_texmfdistdir}/doc/latex/dhua/README.pdf
%doc %{_texmfdistdir}/doc/latex/dhua/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/dhua/dhua.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dhua/README.tex
%doc %{_texmfdistdir}/source/latex/dhua/dhua.tex
%doc %{_texmfdistdir}/source/latex/dhua/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18130 |21mr|texlive-diagbox-2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-diagbox
Version:	2.2
Release:	2
Summary:	Table heads with diagonal lines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/diagbox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diagbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diagbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diagbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package's principal command, \diagbox, takes two arguments
(texts for the slash-separated parts of the box), and an
optional argument with which the direction the slash will go,
and the box dimensions, etc., may vbe controlled. The package
also provides \slashbox and \backslashbox commands for
compatibility with the slashbox package, which it supersedes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/diagbox
%doc %{_texmfdistdir}/doc/latex/diagbox
#- source
%doc %{_texmfdistdir}/source/latex/diagbox

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18131 |21mr|texlive-diagmac2-2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/diagmac2
# catalog-date 2009-05-17 01:32:22 +0200
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-diagmac2
Version:	2.1
Release:	7
Summary:	Diagram macros, using pict2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/diagmac2
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diagmac2.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diagmac2.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a development of the long-established diagmac package,
using pict2e so that the restrictions on line direction are
removed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/diagmac2/diagmac2.sty
%doc %{_texmfdistdir}/doc/latex/diagmac2/README
%doc %{_texmfdistdir}/doc/latex/diagmac2/doc/diagmac2.pdf
%doc %{_texmfdistdir}/doc/latex/diagmac2/doc/diagmac2.tex
%doc %{_texmfdistdir}/doc/latex/diagmac2/doc/diagmactest.pdf
%doc %{_texmfdistdir}/doc/latex/diagmac2/doc/diagmactest.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18132 |21mr|texlive-diagnose-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19387
# category Package
# catalog-ctan /macros/latex/contrib/diagnose
# catalog-date 2006-12-17 18:48:45 +0100
# catalog-license gpl
# catalog-version 0.2
Name:		texlive-diagnose
Version:	0.2
Release:	7
Summary:	A diagnostic tool for a TeX installation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/diagnose
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diagnose.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/diagnose.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides macros to assist evaluation of the capabilities of a
TeX installation (i.e., what extensions it supports). An
example document that examines the installation is available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/diagnose/diagnose.sty
%doc %{_texmfdistdir}/doc/latex/diagnose/INSTALL
%doc %{_texmfdistdir}/doc/latex/diagnose/README
%doc %{_texmfdistdir}/doc/latex/diagnose/diagnose.pdf
%doc %{_texmfdistdir}/doc/latex/diagnose/diagnose.tex
%doc %{_texmfdistdir}/doc/latex/diagnose/mls-diag.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18133 |21mr|texlive-dialogl-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28946
# category Package
# catalog-ctan /macros/latex/contrib/dialogl
# catalog-date 2013-01-25 11:22:08 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-dialogl
Version:	20190228
Release:	1
Summary:	Macros for constructing interactive LaTeX scripts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dialogl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dialogl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dialogl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dialogl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Gathers together a bunch of code and examples about how to
write macros to carry on a dialogue with the user.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dialogl/dialog.sty
%{_texmfdistdir}/tex/latex/dialogl/grabhedr.sty
%{_texmfdistdir}/tex/latex/dialogl/listout.tex
%{_texmfdistdir}/tex/latex/dialogl/menus.sty
%doc %{_texmfdistdir}/doc/latex/dialogl/Makefile
%doc %{_texmfdistdir}/doc/latex/dialogl/README
%doc %{_texmfdistdir}/doc/latex/dialogl/cnvunits.tex
%doc %{_texmfdistdir}/doc/latex/dialogl/codialog.pdf
%doc %{_texmfdistdir}/doc/latex/dialogl/default.los
%doc %{_texmfdistdir}/doc/latex/dialogl/dia-driv.pdf
%doc %{_texmfdistdir}/doc/latex/dialogl/dia-driv.tex
%doc %{_texmfdistdir}/doc/latex/dialogl/dialogl-doc.sty
%doc %{_texmfdistdir}/doc/latex/dialogl/diatest.tex
%doc %{_texmfdistdir}/doc/latex/dialogl/fontmenu.lg
%doc %{_texmfdistdir}/doc/latex/dialogl/fontmenu.tex
%doc %{_texmfdistdir}/doc/latex/dialogl/manifest.txt
#- source
%doc %{_texmfdistdir}/source/latex/dialogl/dialogl.dtx
%doc %{_texmfdistdir}/source/latex/dialogl/dialogl.ins
%doc %{_texmfdistdir}/source/latex/dialogl/grabhedr.dtx
%doc %{_texmfdistdir}/source/latex/dialogl/listout.dtx
%doc %{_texmfdistdir}/source/latex/dialogl/menus.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18134 |21mr|texlive-dichokey-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17192
# category Package
# catalog-ctan /macros/latex/contrib/dichokey
# catalog-date 2010-02-23 23:30:05 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-dichokey
Version:	20190228
Release:	1
Summary:	Construct dichotomous identification keys
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dichokey
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dichokey.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dichokey.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can be used to construct dichotomous identification
keys (used especially in biology for species identification),
taking care of numbering and indentation of successive key
steps automatically. An example file is provided, which
demonstrates usage.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dichokey/dichokey.sty
%doc %{_texmfdistdir}/doc/latex/dichokey/dichokey.pdf
%doc %{_texmfdistdir}/doc/latex/dichokey/dichokey.tex
%doc %{_texmfdistdir}/doc/latex/dichokey/rhodocyb.pdf
%doc %{_texmfdistdir}/doc/latex/dichokey/rhodocyb.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18135 |21mr|texlive-dickimaw-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32925
# category Package
# catalog-ctan /info/dickimaw
# catalog-date 2014-02-09 18:16:38 +0100
# catalog-license fdl
# catalog-version undef
Name:		texlive-dickimaw
Version:	20190228
Release:	1
Summary:	Books and tutorials from the "Dickimaw LaTeX Series"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/dickimaw
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dickimaw.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dickimaw.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The package provides are some of the books and tutorials that
form part of the "Dickimaw LaTeX Series". Only the A4 PDF is
included here. Other formats, such as HTML or a screen
optimized PDF, are available from the package home page. Books
included are: "LaTeX for Complete Novices": an introductory
guide to LaTeX. "Using LaTeX to Write a PhD Thesis": a follow-
on from "LaTeX for Complete Novices" geared towards students
who want to use LaTeX to write their PhD thesis. "Creating a
LaTeX minimal example": describes how to create a minimal
example, which can be used as a debugging aid when you
encounter errors in your LaTeX documents.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/dickimaw/ERRATA
%doc %{_texmfdistdir}/doc/latex/dickimaw/README
%doc %{_texmfdistdir}/doc/latex/dickimaw/dickimaw-minexample.pdf
%doc %{_texmfdistdir}/doc/latex/dickimaw/dickimaw-novices.pdf
%doc %{_texmfdistdir}/doc/latex/dickimaw/dickimaw-thesis.pdf
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/fdl.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/minexample/dickimaw-minexample.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/minexample/minexample.sty
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/dickimaw-novices.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/glsentries.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/keywords.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/novices-a4paper.sty
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/novices-index.ist
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/novices.bib
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/novices.cls
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/acrobat.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/backtic.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/circle.pdf
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/cmdprom.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/cmdprom1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/cmdprom2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/cmdprom3.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/cmdprom4.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/cmdprom5.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/cmdprom6.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/cmdprom7.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/dinglist.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/dirviewer1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/dirviewer2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/dirviewer3.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/dirviewer4.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/draftimage.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/entersymbol.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/errormessage.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/exsamp.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/incgraph.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/incgraph2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/letterbox.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/maths.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/miktex1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/newdoc-1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/newdoc-2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/notepad1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/notepad2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/rectangle.pdf
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/reflbox.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/resizbox.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/rotbox.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/scalbox.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/shapes.pdf
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/tds.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal-texdoc.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal10.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal11.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal3.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal4.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal5.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal6.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal7.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal8.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/terminal9.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks-latexmk.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks-preferences.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks-toolconfig1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks-toolconfig2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks-toolconfig3.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks-toolconfig4.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks3.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks4.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks5-annote.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks5.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks6.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks7.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks8.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/texworks9.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/pictures/yap1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/argument.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/auxiliary.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/cls.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/command.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/declaration.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/dvi.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/environment.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/fragile.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/group.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/hyphenation.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/intersentencespacing.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/introduction.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/length.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/mandatory.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/optional.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/output.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/perl.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/preamble.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/robust.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/short.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/source.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/terminal.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/novices/term-defs/tex.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/dickimaw-thesis.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/dickimawthesis.cls
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/glsentries.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/imgsource/titlepage.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/listing-samples/helloworld.c
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/listing-samples/sqrt.c
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/arara-installer.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/bibertool.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/doibutton.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/generatekey.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-dataprop-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-dataprop.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-pref-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-pref.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-textimport1-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-textimport1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-textimport2-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-textimport2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-textimport3-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref-textimport3.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref1-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref1.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref10-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref10.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref11.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref12-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref12.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref3-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref3.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref4-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref4.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref5-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref5.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref6-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref6.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref7-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref7.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref8-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref8.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref9-thumbnail.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/jabref9.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/pagestyle.tex
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-addbutton.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-arara.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-arara2.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-bibtex.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-latexmk.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-latexmkbibtex.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-makeglossaries.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-pdflatex.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-pref.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/texworks-texindy.png
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/pictures/titlepage.pdf
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/thesis-a4paper.sty
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/thesis-index.ist
%doc %{_texmfdistdir}/doc/latex/dickimaw/src/thesis/thesis.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18136 |21mr|texlive-digiconfigs-0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/digiconfigs
# catalog-date 2007-03-05 22:02:45 +0100
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-digiconfigs
Version:	0.5
Release:	7
Summary:	Writing "configurations"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/digiconfigs
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/digiconfigs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/digiconfigs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
In Stochastic Geometry and Digital Image Analysis some problems
can be solved in terms of so-called "configurations". A
configuration is basically a square matrix of \circ and \bullet
symbols. This package provides a convenient and compact
mechanism for displaying these configurations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/digiconfigs/digiconfigs.sty
%doc %{_texmfdistdir}/doc/latex/digiconfigs/README
%doc %{_texmfdistdir}/doc/latex/digiconfigs/digiconfigs.pdf
%doc %{_texmfdistdir}/doc/latex/digiconfigs/digiconfigs.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18137 |21mr|texlive-dinbrief-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/dinbrief
# catalog-date 2009-09-25 22:54:35 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-dinbrief
Version:	20190228
Release:	1
Summary:	German letter DIN style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dinbrief
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dinbrief.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dinbrief.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dinbrief.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Implements a document layout for writing letters according to
the rules of DIN (Deutsches Institut fur Normung, German
standardisation institute). A style file for LaTeX 2.09 (with
limited support of the features) is part of the package. Since
the letter layout is based on a German standard, the user guide
is written in German, but most macros have English names from
which the user can recognize what they are used for. In
addition there are example files showing how letters may be
created with the package. A graphical interface for use of the
dinbrief is provided in the dinbrief-GUI bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dinbrief/dinbrief.cfg
%{_texmfdistdir}/tex/latex/dinbrief/dinbrief.cls
%{_texmfdistdir}/tex/latex/dinbrief/dinbrief.sty
%doc %{_texmfdistdir}/doc/latex/dinbrief/brfbody.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/brfkopf.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/dbold.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/dinbrief.pdf
%doc %{_texmfdistdir}/doc/latex/dinbrief/dinbrief.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/dintab.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/example.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/liesmich
%doc %{_texmfdistdir}/doc/latex/dinbrief/readme
%doc %{_texmfdistdir}/doc/latex/dinbrief/test10.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/test11.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/test12.tex
%doc %{_texmfdistdir}/doc/latex/dinbrief/testnorm.tex
#- source
%doc %{_texmfdistdir}/source/latex/dinbrief/dinbrief.drv
%doc %{_texmfdistdir}/source/latex/dinbrief/dinbrief.dtx
%doc %{_texmfdistdir}/source/latex/dinbrief/dinbrief.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18138 |21mr|texlive-directory-1.20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/directory
# catalog-date 2007-01-22 14:15:41 +0100
# catalog-license lppl
# catalog-version 1.20
Name:		texlive-directory
Version:	1.20
Release:	7
Summary:	An address book using BibTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/directory
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/directory.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/directory.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for LaTeX and BibTeX that facilitates the
construction, maintenance and exploitation of an address book-
like database.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/directory/business.bib
%{_texmfdistdir}/bibtex/bib/directory/family.bib
%{_texmfdistdir}/bibtex/bst/directory/address-html.bst
%{_texmfdistdir}/bibtex/bst/directory/address-ldif.bst
%{_texmfdistdir}/bibtex/bst/directory/address-vcard.bst
%{_texmfdistdir}/bibtex/bst/directory/address.bst
%{_texmfdistdir}/bibtex/bst/directory/birthday.bst
%{_texmfdistdir}/bibtex/bst/directory/email-html.bst
%{_texmfdistdir}/bibtex/bst/directory/email.bst
%{_texmfdistdir}/bibtex/bst/directory/letter.bst
%{_texmfdistdir}/bibtex/bst/directory/phone.bst
%{_texmfdistdir}/tex/latex/directory/directory.sty
%doc %{_texmfdistdir}/doc/latex/directory/README
%doc %{_texmfdistdir}/doc/latex/directory/directory.pdf
%doc %{_texmfdistdir}/doc/latex/directory/directory.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18139 |21mr|texlive-dirtytalk-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20520
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-dirtytalk
Version:	1.0
Release:	1
Epoch:		1
Summary:	TeXLive dirtytalk package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dirtytalk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dirtytalk.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dirtytalk.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive dirtytalk package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dirtytalk/dirtytalk.sty
%doc %{_texmfdistdir}/doc/latex/dirtytalk/README
%doc %{_texmfdistdir}/doc/latex/dirtytalk/dirtytalk.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dirtytalk/dirtytalk.dtx
%doc %{_texmfdistdir}/source/latex/dirtytalk/dirtytalk.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18140 |21mr|texlive-disser-1.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-disser
Version:	1.5.0
Release:	2
Summary:	Class and templates for typesetting dissertations in Russian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/disser
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/disser.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/disser.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/disser.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Disser comprises a document class and set of templates for
typesetting dissertations in Russian. One of its primary
advantages is a simplicity of format specification for
titlepage, headers and elements of automatically generated
lists (table of contents, list of figures, etc). Bibliography
styles, that conform to the requirements of the Russian
standard GOST R 7.0.11-2011, are provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/disser
%{_texmfdistdir}/tex/latex/disser
%doc %{_texmfdistdir}/doc/latex/disser
#- source
%doc %{_texmfdistdir}/source/latex/disser

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18141 |21mr|texlive-ditaa-20181020-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ditaa
Version:	20181020
Release:	1
Summary:	Use ditaa diagrams within LaTeX documents
Group:		Publishing
URL:		https://ctan.org/pkg/ditaa
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ditaa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ditaa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
With this package ditaa (DIagrams Through Ascii Art) diagrams
can be embedded directly into LaTeX files.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ditaa
%doc %{_texmfdistdir}/doc/latex/ditaa

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18142 |21mr|texlive-dithesis-20171006-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34295
# category Package
# catalog-ctan /macros/latex/contrib/ditaa
# catalog-date 2017-10-06 19:54:19 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-dithesis
Version:	20171006
Release:	2
Summary:	A class for undergraduate theses at the University of Athens
Group:		Publishing
URL:		https://ctan.org/pkg/dithesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dithesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dithesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	dithesis = %{EVRD}

%description
The class conforms to the requirements of the Department of
Informatics and Telecommunications at the University of Athens
regarding the preparation of undergraduate theses, as of Sep 1,
2011. The class is designed for use with XeLaTeX; by default
(on a Windows platform), the font Arial is used, but provision
is made for use under Linux (with a different sans-serif font).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dithesis
%doc %{_texmfdistdir}/doc/latex/dithesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18143 |21mr|texlive-dlfltxb-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17337
# category Package
# catalog-ctan /macros/latex/contrib/dlfltxb
# catalog-date 2010-03-04 23:40:34 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-dlfltxb
Version:	20190228
Release:	1
Summary:	Macros related to "Introdktion til LaTeX"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dlfltxb
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dlfltxb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dlfltxb.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle contains various macros either used for creating the
author's book "Introduktion til LaTeX" (in Danish), or
presented in the book as code tips. The bundle comprises: -
dlfltxbcodetips: various macros helpful in typesetting
mathematics; - dlfltxbmarkup: provides a macros used throughout
the book, for registering macro names, packages etc. in the
text, in the margin and in the index, all by using categorised
keys (note, a configuration file may be used; a sample is
included in the distribution); - dlfltxbtocconfig: macros for
the two tables of contents that the book has; - dlfltxbmisc:
various macros for typesetting LaTeX arguments, and the macro
used in the bibliography that can wrap a URL up into a bibtex
entry. Interested parties may review the book itself on the web
at the author's institution (it is written in Danish).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/dlfltxb/dlfltxbbibtex.bst
%{_texmfdistdir}/tex/latex/dlfltxb/dlfltxbcodetips.sty
%{_texmfdistdir}/tex/latex/dlfltxb/dlfltxbmarkup.sty
%{_texmfdistdir}/tex/latex/dlfltxb/dlfltxbmarkupbookkeys.sty
%{_texmfdistdir}/tex/latex/dlfltxb/dlfltxbmisc.sty
%{_texmfdistdir}/tex/latex/dlfltxb/dlfltxbtocconfig.sty
%doc %{_texmfdistdir}/doc/latex/dlfltxb/README
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbbibtex.dbj
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbcodetips.pdf
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbcodetips.tex
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbmarkup-showkeys.pdf
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbmarkup-showkeys.tex
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbmarkup.pdf
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbmarkup.tex
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbmisc.pdf
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbmisc.tex
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbtocconfig.pdf
%doc %{_texmfdistdir}/doc/latex/dlfltxb/dlfltxbtocconfig.tex
%doc %{_texmfdistdir}/doc/latex/dlfltxb/package_doc.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18144 |21mr|texlive-dnaseq-0.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17194
# category Package
# catalog-ctan /macros/latex/contrib/dnaseq
# catalog-date 2010-02-24 21:28:09 +0100
# catalog-license lppl
# catalog-version 0.01
Name:		texlive-dnaseq
Version:	0.01
Release:	7
Summary:	Format DNA base sequences
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dnaseq
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dnaseq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dnaseq.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dnaseq.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a means of specifying sequences of bases. The bases may
be numbered (per line) and you may specify that subsequences be
coloured. For a more 'vanilla-flavoured' way of typesetting
base sequences, the user might consider the seqsplit package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dnaseq/dnaseq.sty
%doc %{_texmfdistdir}/doc/latex/dnaseq/DNAtest.tex
%doc %{_texmfdistdir}/doc/latex/dnaseq/README
%doc %{_texmfdistdir}/doc/latex/dnaseq/dnaseq.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dnaseq/dnaseq.dtx
%doc %{_texmfdistdir}/source/latex/dnaseq/dnaseq.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18145 |21mr|texlive-dnp-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-dnp
Version:	20190228
Release:	1
Summary:	TeXLive dnp package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dnp.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive dnp package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/sfd/dnp/DNP.sfd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18146 |21mr|texlive-docmfp-1.2d-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/docmfp
# catalog-date 2009-09-02 16:56:11 +0200
# catalog-license lppl
# catalog-version 1.2d
Name:		texlive-docmfp
Version:	1.2d
Release:	7
Summary:	Document non-LaTeX code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/docmfp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/docmfp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/docmfp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/docmfp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Extends the doc package to cater for documenting non-LaTeX
code, such as MetaFont or MetaPost, or other programming
languages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/docmfp/docmfp.sty
%doc %{_texmfdistdir}/doc/latex/docmfp/README
%doc %{_texmfdistdir}/doc/latex/docmfp/docmfp.pdf
#- source
%doc %{_texmfdistdir}/source/latex/docmfp/docmfp.dtx
%doc %{_texmfdistdir}/source/latex/docmfp/docmfp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18147 |21mr|texlive-docmute-1.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25741
# category Package
# catalog-ctan /macros/latex/contrib/docmute
# catalog-date 2012-03-22 16:41:56 +0100
# catalog-license lppl1.3
# catalog-version 1.4
Name:		texlive-docmute
Version:	1.4
Release:	6
Summary:	Input files ignoring LaTeX preamble, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/docmute
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/docmute.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/docmute.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/docmute.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Input or include stand-alone LaTeX documents, ignoring
everything but the material between \begin{document} and
\end{document}.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/docmute/docmute.sty
%doc %{_texmfdistdir}/doc/latex/docmute/README
%doc %{_texmfdistdir}/doc/latex/docmute/docmute.pdf
#- source
%doc %{_texmfdistdir}/source/latex/docmute/docmute.dtx
%doc %{_texmfdistdir}/source/latex/docmute/docmute.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18148 |21mr|texlive-doc-pictex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24927
# category Package
# catalog-ctan /info/pictex/Doc-PiCTeX.txt
# catalog-date 2008-09-09 11:27:07 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-doc-pictex
Version:	20190228
Release:	1
Summary:	A summary list of PicTeX documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/pictex/Doc-PiCTeX.txt
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doc-pictex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doc-pictex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A summary of available resources providing (or merely
discussing) documentation of PicTeX.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/doc-pictex/Doc-PiCTeX.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18149 |21mr|texlive-documentation-0.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32761
# category Package
# catalog-ctan /macros/latex/contrib/documentation
# catalog-date 2011-12-02 09:08:13 +0100
# catalog-license lppl1.2
# catalog-version 0.1
Name:		texlive-documentation
Version:	0.1
Release:	15
Summary:	Documentation support for C, Java and assembler code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/documentation
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/documentation.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/documentation.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/documentation.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a simple means of typesetting computer
programs such that the result is acceptable for inclusion in
reports, etc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/documentation/documentation.sty
%doc %{_texmfdistdir}/doc/latex/documentation/README
%doc %{_texmfdistdir}/doc/latex/documentation/documentation.pdf
#- source
%doc %{_texmfdistdir}/source/latex/documentation/documentation.dtx
%doc %{_texmfdistdir}/source/latex/documentation/documentation.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18150 |21mr|texlive-doi-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/doi
# catalog-date 2008-08-18 13:49:16 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-doi
Version:	20180303
Release:	2
Summary:	Create correct hyperlinks for DOI numbers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/doi
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doi.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
You can hyperlink DOI numbers to dx.doi.org. However, some
publishers have elected to use nasty characters in their DOI
numbering scheme ('<', '>', '_' and ';' have all been spotted).
This will either upset (La)TeX, or your PDF reader. This
package contains a single user-level command \doi{}, which
takes a DOI number, and creates a correct hyperlink from it.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/doi/doi.sty
%doc %{_texmfdistdir}/doc/latex/doi/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18151 |21mr|texlive-dosepsbin-1.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29752
# category Package
# catalog-ctan /support/dosepsbin
# catalog-date 2012-03-22 21:51:23 +0100
# catalog-license artistic
# catalog-version 1.2
Name:		texlive-dosepsbin
Version:	1.2
Release:	12
Summary:	Deal with DOS binary EPS files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/dosepsbin
License:	ARTISTIC
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dosepsbin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dosepsbin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dosepsbin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-dosepsbin.bin = %{EVRD}

%description
A Encapsulated PostScript (EPS) file may given in a special
binary format to support the inclusion of a thumbnail. This
file format, commonly known as DOS EPS format starts with a
binary header that contains the positions of the possible
sections: - Postscript (PS); - Windows Metafile Format (WMF);
and - Tag Image File Format (TIFF). The PS section must be
present and either the WMF file or the TIFF file should be
given. The package provides a Perl program that will extract
any of the sections of such a file, in particular providing a
'text'-form EPS file for use with (La)TeX.


#-----------------------------------------------------------------------
%files
%{_bindir}/dosepsbin
%{_texmfdistdir}/scripts/dosepsbin/dosepsbin.pl
%doc %{_mandir}/man1/dosepsbin.1*
%doc %{_texmfdistdir}/doc/man/man1/dosepsbin.man1.pdf
%doc %{_texmfdistdir}/doc/support/dosepsbin/Makefile.in
%doc %{_texmfdistdir}/doc/support/dosepsbin/README
%doc %{_texmfdistdir}/doc/support/dosepsbin/clean-case.pl
%doc %{_texmfdistdir}/doc/support/dosepsbin/dosepsbin.html
%doc %{_texmfdistdir}/doc/support/dosepsbin/dosepsbin.ltx
%doc %{_texmfdistdir}/doc/support/dosepsbin/dosepsbin.pdf
%doc %{_texmfdistdir}/doc/support/dosepsbin/dosepsbin.txt
%doc %{_texmfdistdir}/doc/support/dosepsbin/version.pl
#- source
%doc %{_texmfdistdir}/source/support/dosepsbin/configure
%doc %{_texmfdistdir}/source/support/dosepsbin/configure.ac
%doc %{_texmfdistdir}/source/support/dosepsbin/install-sh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/dosepsbin/dosepsbin.pl dosepsbin
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18152 |21mr|texlive-dot2texi-3.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26237
# category Package
# catalog-ctan /macros/latex/contrib/dot2texi
# catalog-date 2009-02-28 02:19:00 +0100
# catalog-license gpl
# catalog-version 3.0
Name:		texlive-dot2texi
Version:	3.0
Release:	8
Summary:	Create graphs within LaTeX using the dot2tex tool
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dot2texi
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dot2texi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dot2texi.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The dot2texi package allows you to embed graphs in the DOT
graph description language in your LaTeX documents. The dot2tex
tool is used to invoke Graphviz for graph layout, and to
transform the output from Graphviz to LaTeX code. The generated
code relies on the TikZ and PGF package or the PSTricks
package. The process is automated if shell escape is enabled.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dot2texi/dot2texi.sty
%doc %{_texmfdistdir}/doc/latex/dot2texi/README
%doc %{_texmfdistdir}/doc/latex/dot2texi/dot2texi.pdf
%doc %{_texmfdistdir}/doc/latex/dot2texi/dot2texi.tex
%doc %{_texmfdistdir}/doc/latex/dot2texi/examples/d2tpstexamples.pdf
%doc %{_texmfdistdir}/doc/latex/dot2texi/examples/d2tpstexamples.tex
%doc %{_texmfdistdir}/doc/latex/dot2texi/examples/d2ttikzexamples.pdf
%doc %{_texmfdistdir}/doc/latex/dot2texi/examples/d2ttikzexamples.tex
%doc %{_texmfdistdir}/doc/latex/dot2texi/examples/docgraphs.pdf
%doc %{_texmfdistdir}/doc/latex/dot2texi/examples/docgraphs.tex
%doc %{_texmfdistdir}/doc/latex/dot2texi/examples/docgraphsorig.pdf
%doc %{_texmfdistdir}/doc/latex/dot2texi/gpl.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18153 |21mr|texlive-dotarrow-0.01a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/dotarrow
# catalog-date 2008-08-18 13:49:16 +0200
# catalog-license lppl
# catalog-version 0.01a
Name:		texlive-dotarrow
Version:	0.01a
Release:	7
Summary:	Extendable dotted arrows
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dotarrow
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dotarrow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dotarrow.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dotarrow.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can draw dotted arrows that are extendable, in the
same was as \xrightarrow.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dotarrow/DotArrow.sty
%doc %{_texmfdistdir}/doc/latex/dotarrow/DotArrow.pdf
%doc %{_texmfdistdir}/doc/latex/dotarrow/DotArrow.tex
%doc %{_texmfdistdir}/doc/latex/dotarrow/README
#- source
%doc %{_texmfdistdir}/source/latex/dotarrow/DotArrow.dtx
%doc %{_texmfdistdir}/source/latex/dotarrow/DotArrow.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18154 |21mr|texlive-dotseqn-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17195
# category Package
# catalog-ctan /macros/latex/contrib/dotseqn
# catalog-date 2010-02-24 21:28:09 +0100
# catalog-license other-free
# catalog-version 1.1
Name:		texlive-dotseqn
Version:	1.1
Release:	7
Summary:	Flush left equations with dotted leaders to the numbers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dotseqn
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dotseqn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dotseqn.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dotseqn.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a different format for typesetting
equations, one reportedly used in 'old style Britsh books':
equations aligned on the left, with dots on the right leading
to the equation number. In default of an equation number, the
package operates much like the fleqn class option (no leaders).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dotseqn/dotseqn.sty
%doc %{_texmfdistdir}/doc/latex/dotseqn/dotseqn.pdf
%doc %{_texmfdistdir}/doc/latex/dotseqn/readme
#- source
%doc %{_texmfdistdir}/source/latex/dotseqn/dotseqn.dtx
%doc %{_texmfdistdir}/source/latex/dotseqn/dotseqn.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18155 |21mr|texlive-dottex-0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/dottex
# catalog-date 2007-08-21 11:49:34 +0200
# catalog-license gpl
# catalog-version 0.6
Name:		texlive-dottex
Version:	0.6
Release:	7
Summary:	Use dot code in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dottex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dottex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dottex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dottex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The dottex package allows you to encapsulate 'dot' and 'neato'
files in your document (dot and neato are both part of
graphviz; dot creates directed graphs, neato undirected
graphs). If you have shell-escape enabled, the package will
arrange for your files to be processed at LaTeX time;
otherwise, the conversion must be done manually as an
intermediate process before a second LaTeX run.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dottex/dottex.sty
%doc %{_texmfdistdir}/doc/latex/dottex/README
%doc %{_texmfdistdir}/doc/latex/dottex/dottex.pdf
%doc %{_texmfdistdir}/doc/latex/dottex/example.tex
%doc %{_texmfdistdir}/doc/latex/dottex/gpl.txt
#- source
%doc %{_texmfdistdir}/source/latex/dottex/dottex.dtx
%doc %{_texmfdistdir}/source/latex/dottex/dottex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18156 |21mr|texlive-doublestroke-1.111-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/doublestroke
# catalog-date 2009-11-19 15:03:53 +0100
# catalog-license other-free
# catalog-version 1.111
Name:		texlive-doublestroke
Version:	1.111
Release:	10
Summary:	Typeset mathematical double stroke symbols
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/doublestroke
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doublestroke.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/doublestroke.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A font based on Computer Modern Roman useful for typesetting
the mathematical symbols for the natural numbers (N), whole
numbers (Z), rational numbers (Q), real numbers (R) and complex
numbers (C); coverage includes all Roman capital letters, '1',
'h' and 'k'. The font is available both as MetaFont source and
in Adobe Type 1 format, and LaTeX macros for its use are
provided. The fonts appear in the blackboard bold sampler.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/doublestroke/dstroke.map
%{_texmfdistdir}/fonts/source/public/doublestroke/dsrom.mf
%{_texmfdistdir}/fonts/source/public/doublestroke/dsrom10.mf
%{_texmfdistdir}/fonts/source/public/doublestroke/dsrom12.mf
%{_texmfdistdir}/fonts/source/public/doublestroke/dsrom8.mf
%{_texmfdistdir}/fonts/source/public/doublestroke/dsromo.mf
%{_texmfdistdir}/fonts/source/public/doublestroke/dsromu.mf
%{_texmfdistdir}/fonts/source/public/doublestroke/dsss10.mf
%{_texmfdistdir}/fonts/source/public/doublestroke/dsss12.mf
%{_texmfdistdir}/fonts/source/public/doublestroke/dsss8.mf
%{_texmfdistdir}/fonts/tfm/public/doublestroke/dsrom10.tfm
%{_texmfdistdir}/fonts/tfm/public/doublestroke/dsrom12.tfm
%{_texmfdistdir}/fonts/tfm/public/doublestroke/dsrom8.tfm
%{_texmfdistdir}/fonts/tfm/public/doublestroke/dsss10.tfm
%{_texmfdistdir}/fonts/tfm/public/doublestroke/dsss12.tfm
%{_texmfdistdir}/fonts/tfm/public/doublestroke/dsss8.tfm
%{_texmfdistdir}/fonts/type1/public/doublestroke/dsrom10.pfb
%{_texmfdistdir}/fonts/type1/public/doublestroke/dsrom12.pfb
%{_texmfdistdir}/fonts/type1/public/doublestroke/dsrom8.pfb
%{_texmfdistdir}/fonts/type1/public/doublestroke/dsss10.pfb
%{_texmfdistdir}/fonts/type1/public/doublestroke/dsss12.pfb
%{_texmfdistdir}/fonts/type1/public/doublestroke/dsss8.pfb
%{_texmfdistdir}/tex/latex/doublestroke/Udsrom.fd
%{_texmfdistdir}/tex/latex/doublestroke/Udsss.fd
%{_texmfdistdir}/tex/latex/doublestroke/dsfont.sty
%doc %{_texmfdistdir}/doc/fonts/doublestroke/README
%doc %{_texmfdistdir}/doc/fonts/doublestroke/dsdoc.pdf
%doc %{_texmfdistdir}/doc/fonts/doublestroke/dsdoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18157 |21mr|texlive-download-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30695
# category Package
# catalog-ctan /macros/latex/contrib/download
# catalog-date 2013-05-26 19:01:07 +0200
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-download
Version:	1.1
Release:	10
Summary:	Allow LaTeX to download files using an external process
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/download
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/download.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/download.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/download.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to download files (using cURL or
wget), from within a document. To run the external commands,
LaTeX (or whatever) needs to be run with the --shell-escape
flag; this creates a tension between your needs and the
security implications of the flag; users should exercise due
caution.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/download/download.sty
%doc %{_texmfdistdir}/doc/latex/download/README
%doc %{_texmfdistdir}/doc/latex/download/download.pdf
#- source
%doc %{_texmfdistdir}/source/latex/download/download.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18158 |21mr|texlive-dox-2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dox
Version:	2.4
Release:	2
Summary:	Extend the doc package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The doc package provides LaTeX developers with means to
describe the usage and the definition of new macros and
environments. However, there is no simple way to extend this
functionality to other items (options or counters, for
instance). The DoX package is designed to circumvent this
limitation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dox
%doc %{_texmfdistdir}/doc/latex/dox
#- source
%doc %{_texmfdistdir}/source/latex/dox

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18159 |21mr|texlive-dpfloat-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17196
# category Package
# catalog-ctan /macros/latex/contrib/dpfloat
# catalog-date 2010-02-24 00:01:31 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-dpfloat
Version:	20190228
Release:	1
Summary:	Support for double-page floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dpfloat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dpfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dpfloat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides fullpage and leftfullpage environments, that may be
used inside a figure, table, or other float environment. If the
first of a 2-page spread uses a "leftfullpage" environment, the
float will only be typeset on an even-numbered page, and the
two floats will appear side-by-side in a two-sided document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dpfloat/dpfloat.sty
%doc %{_texmfdistdir}/doc/latex/dpfloat/README
%doc %{_texmfdistdir}/doc/latex/dpfloat/dpfloat.pdf
%doc %{_texmfdistdir}/doc/latex/dpfloat/dpfloat.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18160 |21mr|texlive-dprogress-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/dprogress
# catalog-date 2008-08-18 13:49:16 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-dprogress
Version:	0.1
Release:	7
Summary:	LaTeX-relevant log information for debugging
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dprogress
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dprogress.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dprogress.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dprogress.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package logs LaTeX's progress through the file, making the
LaTeX output more verbose. This helps to make LaTeX debugging
easier, as it is simpler to find where exactly LaTeX failed.
The package outputs the typesetting of section, subsection and
subsubsection headers and (if amsmath is loaded) details of the
align environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dprogress/dprogress.sty
%doc %{_texmfdistdir}/doc/latex/dprogress/README
%doc %{_texmfdistdir}/doc/latex/dprogress/dprogress.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dprogress/dprogress.dtx
%doc %{_texmfdistdir}/source/latex/dprogress/dprogress.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18161 |21mr|texlive-drac-1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/drac
# catalog-date 2008-08-17 11:40:59 +0200
# catalog-license lppl
# catalog-version 1
Name:		texlive-drac
Version:	1
Release:	7
Summary:	Declare active character substitution, robustly
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/drac
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drac.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drac.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros \DeclareRobustActChar and
ReDeclareRobActChar. One uses \DeclareRobustActChar in the same
way one would use \DeclareRobustCommand; the macro \protects
the active character when it appears in a moving argument.
ReDeclareRobActChar redefines an active character previously
defined with \DeclareRobustActChar, in the same way that
\renewcommand works for ordinary commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/drac/drac.sty
%doc %{_texmfdistdir}/doc/latex/drac/drac-fr.pdf
%doc %{_texmfdistdir}/doc/latex/drac/drac.pdf
#- source
%doc %{_texmfdistdir}/source/latex/drac/LISEZMOI
%doc %{_texmfdistdir}/source/latex/drac/Makefile
%doc %{_texmfdistdir}/source/latex/drac/README
%doc %{_texmfdistdir}/source/latex/drac/drac-en.dtx
%doc %{_texmfdistdir}/source/latex/drac/drac-fr.dtx
%doc %{_texmfdistdir}/source/latex/drac/drac.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18162 |21mr|texlive-draftcopy-2.16-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/draftcopy
# catalog-date 2009-09-25 22:54:35 +0200
# catalog-license lppl
# catalog-version 2.16
Name:		texlive-draftcopy
Version:	2.16
Release:	7
Summary:	Identify draft copies
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/draftcopy
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/draftcopy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/draftcopy.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/draftcopy.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Places the word DRAFT (or other words) in light grey diagonally
across the background (or at the bottom) of each (or selected)
pages of the document. The package uses PostScript \special
commands, and may not therefore be used with PDFLaTeX. For that
usage, consider the wallpaper or draftwatermark packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/draftcopy/draftcopy.cfg
%{_texmfdistdir}/tex/latex/draftcopy/draftcopy.sty
%doc %{_texmfdistdir}/doc/latex/draftcopy/README
%doc %{_texmfdistdir}/doc/latex/draftcopy/THIS-IS-VERSION-2.16
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-1.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-10.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-11.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-12.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-13.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-14.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-15.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-16.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-2.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-3.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-4.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-5.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-6.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-7.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-8.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy-test-9.tex
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy.doc
%doc %{_texmfdistdir}/doc/latex/draftcopy/draftcopy.pdf
#- source
%doc %{_texmfdistdir}/source/latex/draftcopy/Makefile
%doc %{_texmfdistdir}/source/latex/draftcopy/draftcopy.dtx
%doc %{_texmfdistdir}/source/latex/draftcopy/draftcopy.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18163 |21mr|texlive-draftfigure-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 44854
# category Package
# catalog-ctan /macros/latex/contrib/draftfigure
# catalog-date 2018-01-07 14:52:23 +0100
# catalog-license lppl1.3
# catalog-version 0.2

Name:		texlive-draftfigure
Group:		Publishing
Version: 	0.2
Release:	1

Summary:	Replace figures with a white box and additional features
License:	LPPL1.3

URL:		https://www.ctan.org/pkg/draftfigure
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/draftfigure.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/draftfigure.doc.tar.xz

BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:        draftfigure.sty

%description
With this package you can control the outcome of a figure which is set to draft and modify the display with various options.

%post
	%{_sbindir}/texlive.post

%postun
	if [ $1 -eq 0]; then
		%{_sbindir}/texlive.post
	fi

#------------------------------------------------------

%files
%{_texmfdistdir}/tex/latex/draftfigure/draftfigure.sty
%doc %{_texmfdistdir}/doc/latex/draftfigure/README.md
%doc %{_texmfdistdir}/doc/latex/draftfigure/draftfigure.pdf
%doc %{_texmfdistdir}/doc/latex/draftfigure/draftfigure.tex

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18164 |21mr|texlive-draftwatermark-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25045
# category Package
# catalog-ctan /macros/latex/contrib/draftwatermark
# catalog-date 2007-03-05 22:02:45 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-draftwatermark
Version:	1.2
Release:	2
Summary:	Put a grey textual watermark on document pages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/draftwatermark
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/draftwatermark.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/draftwatermark.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/draftwatermark.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means to add a textual, light grey
watermark on every page or on the first page of a document.
Typical usage may consist in writing words such as DRAFT or
CONFIDENTIAL across document pages. The package performs a
similar function to that of draftcopy, but its implementation
is output device independent, and very made simple by relying
on everpage.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/draftwatermark/draftwatermark.sty
%doc %{_texmfdistdir}/doc/latex/draftwatermark/README
%doc %{_texmfdistdir}/doc/latex/draftwatermark/draftwatermark.pdf
%doc %{_texmfdistdir}/doc/latex/draftwatermark/test_draftwatermark.tex
#- source
%doc %{_texmfdistdir}/source/latex/draftwatermark/draftwatermark.dtx
%doc %{_texmfdistdir}/source/latex/draftwatermark/draftwatermark.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18165 |21mr|texlive-dramatist-1.2e-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dramatist
Version:	1.2e
Release:	3
Summary:	Typeset dramas, both in verse and in prose
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dramatist
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dramatist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dramatist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dramatist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is intended for typesetting drama of any length.
It provides two environments for typesetting dialogues in prose
or in verse; new document divisions corresponding to acts and
scenes; macros that control the appearance of characters and
stage directions; and automatic generation of a `dramatis
personae' list.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dramatist
%doc %{_texmfdistdir}/doc/latex/dramatist
#- source
%doc %{_texmfdistdir}/source/latex/dramatist

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18166 |21mr|texlive-dratex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/dratex
# catalog-date 2008-09-18 22:51:09 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-dratex
Version:	20190228
Release:	1
Summary:	General drawing macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/dratex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dratex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dratex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A low level (DraTex.sty) and a high-level (AlDraTex.sty)
drawing package written entirely in TeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/dratex/AlDraTex.sty
%{_texmfdistdir}/tex/generic/dratex/DraTex.sty
%{_texmfdistdir}/tex/generic/dratex/TeXProject.sty
%{_texmfdistdir}/tex/generic/dratex/wotree.sty
%doc %{_texmfdistdir}/doc/generic/dratex/Examples.tex
%doc %{_texmfdistdir}/doc/generic/dratex/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18167 |21mr|texlive-drawmatrix-1.5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 44471
# category Package
# catalog-ctan /macros/latex/contrib/drawmatrix
# catalog-date 2017-06-05 22:45:20 +0200
# catalog-license mit
# catalog-version 1.5.0

Name:		texlive-drawmatrix
Group:		Publishing
Version: 	1.5.0
Release:	1

Summary:	Draw visual representations of matricies in LaTeX
License:	MIT

URL:		https://ctan.org/pkg/drawmatrix
Source0:	https://mirrors.ctan.org/systems/texlive/tlnet/archive/drawmatrix.tar.xz
Source1:	https://mirrors.ctan.org/systems/texlive/tlnet/archive/drawmatrix.doc.tar.xz
Source2:	https://mirrors.ctan.org/systems/texlive/tlnet/archive/drawmatrix.source.tar.xz

BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	drawmatrix.sty


%description
The package provides macros to visually represent matrices. Various options allow to 
change the visualizations, e.g., drawing rectangular, triangular, or banded matrices.

#------------------------------------------------------

%files
%{_texmfdistdir}/tex/latex/drawmatrix
%doc %{_texmfdistdir}/doc/latex/drawmatrix
#- source
%doc %{_texmfdistdir}/source/latex/drawmatrix

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18168 |21mr|texlive-drawstack-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28582
# category Package
# catalog-ctan /macros/latex/contrib/drawstack
# catalog-date 2012-06-18 14:35:47 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-drawstack
Version:	20190228
Release:	1
Summary:	Draw execution stacks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/drawstack
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drawstack.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drawstack.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This simple LaTeX package provides support for drawing
execution stack (typically to illustrate assembly language
notions). The code is written on top of TikZ.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/drawstack/drawstack.sty
%doc %{_texmfdistdir}/doc/latex/drawstack/Makefile
%doc %{_texmfdistdir}/doc/latex/drawstack/README
%doc %{_texmfdistdir}/doc/latex/drawstack/stack-example.pdf
%doc %{_texmfdistdir}/doc/latex/drawstack/stack-example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18169 |21mr|texlive-droit-fr-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-droit-fr
Version:	1.2
Release:	2
Summary:	Document class and bibliographic style for French law
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/droit-fr
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/droit-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/droit-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a toolkit intended for students writing a
thesis in French law. It features: a LaTeX document class; a
bibliographic style for Biblatex package; a practical example
of french thesis document; and documentation. The class assumes
use of biber and biblatex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/droit-fr
%doc %{_texmfdistdir}/doc/latex/droit-fr

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18170 |21mr|texlive-drs-1.1b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19232
# category Package
# catalog-ctan /macros/latex/contrib/drs
# catalog-date 2010-07-03 21:56:37 +0200
# catalog-license lppl1.3
# catalog-version 1.1b
Name:		texlive-drs
Version:	1.1b
Release:	7
Summary:	Typeset Discourse Representation Structures (DRS)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/drs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package draws Discourse Representation Structures (DRSs).
It can draw embedded DRSs, if-then conditions and
quantificational "duplex conditions" (with a properly scaled
connecting diamond). Formatting parameters allow the user to
control the appearance and placement of DRSs, and of DRS
variables and conditions. The package is based on DRS macros in
the covington package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/drs/drs.sty
%doc %{_texmfdistdir}/doc/latex/drs/README
%doc %{_texmfdistdir}/doc/latex/drs/drsdoc.pdf
%doc %{_texmfdistdir}/doc/latex/drs/drsdoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18171 |21mr|texlive-drv-0.97-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/drv
# catalog-date 2012-07-03 17:35:36 +0200
# catalog-license lppl
# catalog-version 0.97
Name:		texlive-drv
Version:	0.97
Release:	12
Summary:	Derivation trees with MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/drv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/drv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of MetaPost macros for typesetting derivation trees (such
as used in sequent calculus, type inference, programming
language semantics...). No MetaPost knowledge is needed to use
these macros.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/drv/drv.mp
%doc %{_texmfdistdir}/doc/metapost/drv/README
%doc %{_texmfdistdir}/doc/metapost/drv/doc/drv-guide.mp
%doc %{_texmfdistdir}/doc/metapost/drv/doc/drv-guide.tex
%doc %{_texmfdistdir}/doc/metapost/drv/doc/drv.mp
%doc %{_texmfdistdir}/doc/metapost/drv/doc/makefile
%doc %{_texmfdistdir}/doc/metapost/drv/doc/readme.sh
%doc %{_texmfdistdir}/doc/metapost/drv/drv-guide.pdf
%doc %{_texmfdistdir}/doc/metapost/drv/sample/coq-sample.mp
%doc %{_texmfdistdir}/doc/metapost/drv/sample/coq-sample.tex
%doc %{_texmfdistdir}/doc/metapost/drv/sample/drv.mp
%doc %{_texmfdistdir}/doc/metapost/drv/sample/makefile
%doc %{_texmfdistdir}/doc/metapost/drv/sample/readme.sh
%doc %{_texmfdistdir}/doc/metapost/drv/template/drv.mp
%doc %{_texmfdistdir}/doc/metapost/drv/template/makefile
%doc %{_texmfdistdir}/doc/metapost/drv/template/readme.sh
%doc %{_texmfdistdir}/doc/metapost/drv/template/template.mp
%doc %{_texmfdistdir}/doc/metapost/drv/template/template.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18172 |21mr|texlive-dsptricks-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dsptricks
Version:	20160624
Release:	1
Summary:	Macros for Digital Signal Processing plots
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dsptricks
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dsptricks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dsptricks.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a set of LaTeX macros (based on PSTricks)
for plotting the kind of graphs and figures that are usually
employed in digital signal processing publications. DSPTricks
provides facilities for standard discrete-time "lollipop"
plots, continuous-time and frequency plots, and pole-zero
plots. The companion package DSPFunctions (dspfunctions.sty)
provides macros for computing frequency responses and DFTs,
while the package DSPBlocks (dspblocks.sty) supports DSP block
diagrams.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18173 |21mr|texlive-dtk-2.08a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dtk
Version:	2.08a
Release:	1
Summary:	Document class for the journal of DANTE
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/usergrps/dante/dtk
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a class and style file for typesetting "Die
TeXnische Komodie" -- the communications of the German TeX
Users Group DANTE e.V. The arrangement means that the class may
be used by article writers to typeset a single article as well
as to produce the complete journal.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dtk
%doc %{_texmfdistdir}/doc/latex/dtk

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18174 |21mr|texlive-dtl-0.6.1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33818
# category TLCore
# catalog-ctan /dviware/dtl
# catalog-date 2012-04-09 22:37:34 +0200
# catalog-license pd
# catalog-version 0.6.1
Name:		texlive-dtl
Version:	0.6.1
Release:	14
Summary:	Tools to dis-assemble and re-assemble DVI files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dtl
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-dtl.bin

%description
DTL (DVI Text Language) is a means of expressing the content of
a DVI file, which is readily readable by humans. The DTL bundle
contains an assembler dt2dv (which produces DVI files from DTL
files) and a disassembler dv2dt (which produces DTL files from
DVI files). The DTL bundle was developed so as to avoid some
infelicities of dvitype (among other pressing reasons).

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/dt2dv.1*
%doc %{_texmfdistdir}/doc/man/man1/dt2dv.man1.pdf
%doc %{_mandir}/man1/dv2dt.1*
%doc %{_texmfdistdir}/doc/man/man1/dv2dt.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18175 |21mr|texlive-dtxgallery-1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/dtxgallery
# catalog-date 2008-08-18 13:49:16 +0200
# catalog-license lppl
# catalog-version 1
Name:		texlive-dtxgallery
Version:	1
Release:	6
Summary:	A small collection of minimal DTX examples
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/dtxgallery
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxgallery.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxgallery.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxgallery.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A collection of files that demonstrate simple things that are
possible with the flexible and under-appreciated docstrip file
format. Each file of the collection is provided as a .dtx file
and as the corresponding .pdf. The set is intended as a
companion to Scott Pakin's excellent and influential dtxtut
example of producing LaTeX packages in this way.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/dtxgallery/README
%doc %{_texmfdistdir}/doc/latex/dtxgallery/conditional-code.pdf
%doc %{_texmfdistdir}/doc/latex/dtxgallery/dtxgallery.pdf
%doc %{_texmfdistdir}/doc/latex/dtxgallery/rearrange.pdf
%doc %{_texmfdistdir}/doc/latex/dtxgallery/single-source.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dtxgallery/conditional-code.dtx
%doc %{_texmfdistdir}/source/latex/dtxgallery/dtxgallery.dtx
%doc %{_texmfdistdir}/source/latex/dtxgallery/rearrange.dtx
%doc %{_texmfdistdir}/source/latex/dtxgallery/single-source.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18176 |21mr|texlive-dtxtut-2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/dtxtut
# catalog-date 2007-02-01 21:12:02 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-dtxtut
Version:	2.1
Release:	2
Epoch:		1
Summary:	Tutorial on writing .dtx and .ins files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/dtxtut
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxtut.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dtxtut.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This tutorial is intended for advanced LaTeX2e users who want
to learn how to create .ins and .dtx files for distributing
their homebrewed classes and style files.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/dtxtut/README
%doc %{_texmfdistdir}/doc/latex/dtxtut/cskeleton.dtx
%doc %{_texmfdistdir}/doc/latex/dtxtut/cskeleton.ins
%doc %{_texmfdistdir}/doc/latex/dtxtut/dtxtut.pdf
%doc %{_texmfdistdir}/doc/latex/dtxtut/dtxtut.tex
%doc %{_texmfdistdir}/doc/latex/dtxtut/skeleton.dtx
%doc %{_texmfdistdir}/doc/latex/dtxtut/skeleton.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18177 |21mr|texlive-ducksay-2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ducksay
Version:	2.5
Release:	1
Epoch:		1
Summary:	ducksay texlive package
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/ducksay
License:	http://www.latex-project.org/lppl.txt
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ducksay.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ducksay.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ducksay.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package draws ASCII art of animals saying a specified message

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%doc %{_texmfdistdir}/source/
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18178 |21mr|texlive-duckuments-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	texlive duckuments package
Name:		texlive-duckuments
Version:	0.5
Release:	1
License:	https://www.latex-project.org/lppl.txt
Group:		Publishing
Url:		https://ctan.org/tex-archive/macros/latex/contrib/duckuments
Source0:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/duckuments.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/duckuments.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/duckuments.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides means to create duckified dummy contents.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%doc %{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18179 |21mr|texlive-duotenzor-1.00-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18728
# category Package
# catalog-ctan /graphics/duotenzor
# catalog-date 2010-06-06 13:50:32 +0200
# catalog-license lppl1.3
# catalog-version 1.00
Name:		texlive-duotenzor
Version:	1.00
Release:	7
Summary:	Drawing package for circuit and duotensor diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/duotenzor
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/duotenzor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/duotenzor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a drawing package for circuit and duotensor diagrams
within LaTeX documents. It consists of about eighty commands,
calling on TikZ for support.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/duotenzor/duotenzor.sty
%doc %{_texmfdistdir}/doc/latex/duotenzor/README
%doc %{_texmfdistdir}/doc/latex/duotenzor/duotenzormanual.pdf
%doc %{_texmfdistdir}/doc/latex/duotenzor/duotenzormanual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18180 |21mr|texlive-dvdcoll-1.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dvdcoll
Version:	1.1a
Release:	2
Summary:	A class for typesetting DVD archives
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dvdcoll
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvdcoll.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvdcoll.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Having lost the overview of my DVD archives, I simply could not
remember if I already recorded the documentary running on TV
that day. I chose to recreate the index using LaTeX: the design
aim was a hyperlinked and fully searchable PDF-document,
listing my DVDs with all titles, lengths and so on. Further
requirements were support for seasons of tv series and a list
with all faulty or missing programs for rerecording. The
dvdcoll class supports all these requirements. dvdcoll.cls
follows the structure <number><title><length>. As a result, the
class is not limited to DVDs--you can of course typeset
archives of CD-ROMs, Audio-CDs and so on. Supported languages
at the moment: English, French, German, Italian, Polish,
Portuguese, Spanish. Some help is needed for other languages!.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/dvdcoll/dcbib.bst
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/UKenglish.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/USenglish.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/acadian.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/american.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/australian.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/austrian.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/brazil.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/brazilian.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/british.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/canadian.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/canadien.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/english.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/francais.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/french.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/frenchb.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/german.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/germanb.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/italian.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/naustrian.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/newzealand.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/ngerman.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/polish.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/portuges.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/portuguese.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcl/spanish.dcl
%{_texmfdistdir}/tex/latex/dvdcoll/dcwrtbib.sty
%{_texmfdistdir}/tex/latex/dvdcoll/dvdcoll.cls
%{_texmfdistdir}/tex/latex/dvdcoll/pdfnotiz.sty
%doc %{_texmfdistdir}/doc/latex/dvdcoll/CHANGES
%doc %{_texmfdistdir}/doc/latex/dvdcoll/INSTALL
%doc %{_texmfdistdir}/doc/latex/dvdcoll/README
%doc %{_texmfdistdir}/doc/latex/dvdcoll/dcexample.pdf
%doc %{_texmfdistdir}/doc/latex/dvdcoll/dcexample.tex
%doc %{_texmfdistdir}/doc/latex/dvdcoll/dvdcoll.pdf
%doc %{_texmfdistdir}/doc/latex/dvdcoll/dvdcoll_de.pdf
%doc %{_texmfdistdir}/doc/latex/dvdcoll/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18181 |21mr|texlive-dvgloss-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29103
# category Package
# catalog-ctan /macros/latex/contrib/dvgloss
# catalog-date 2013-02-13 12:56:56 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-dvgloss
Version:	0.1
Release:	10
Summary:	Facilities for setting interlinear glossed text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dvgloss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvgloss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvgloss.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvgloss.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides extensible macros for setting interlinear
glossed text -- useful, for instance, for typing linguistics
papers. The operative word here is "extensible": few features
are built in, but some flexible and powerful facilities are
included for adding your own.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dvgloss/dvgloss.sty
%doc %{_texmfdistdir}/doc/latex/dvgloss/README
%doc %{_texmfdistdir}/doc/latex/dvgloss/dvgloss.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dvgloss/dvgloss.dtx
%doc %{_texmfdistdir}/source/latex/dvgloss/dvgloss.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18182 |21mr|texlive-dvi2tty-6.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33818
# category TLCore
# catalog-ctan /dviware/dvi2tty
# catalog-date 2012-04-09 22:37:34 +0200
# catalog-license gpl
# catalog-version 3.5.1
Name:		texlive-dvi2tty
Version:	6.0.0
Release:	2
Summary:	Produce ASCII from DVI
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dvi2tty
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvi2tty.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvi2tty.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-dvi2tty.bin

%description
A DVI driver to produce an ASCII representation of the
document. The original version was written in Pascal, and the
present author translated the program to C.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/disdvi.1*
%doc %{_texmfdistdir}/doc/man/man1/disdvi.man1.pdf
%doc %{_mandir}/man1/dvi2tty.1*
%doc %{_texmfdistdir}/doc/man/man1/dvi2tty.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18183 |21mr|texlive-dvicopy-1.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29764
# category TLCore
# catalog-ctan /dviware/dvicopy/dvicopy.web
# catalog-date 2012-04-10 15:00:16 +0200
# catalog-license gpl
# catalog-version 1.5
Name:		texlive-dvicopy
Version:	1.5
Release:	11
Summary:	Copy DVI files, flattening VFs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dvicopy/dvicopy.web
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvicopy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvicopy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-dvicopy.bin

%description
DVICOPY is a utility program that allows one to take a DVI file
that references composite fonts (VF) and convert it into a DVI
file that does not contain such references. It also serves as a
basis for writing DVI drivers (much like DVItype).

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/dvicopy.1*
%doc %{_texmfdistdir}/doc/man/man1/dvicopy.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18184 |21mr|texlive-dvidvi-1.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /dviware/dvidvi
# catalog-date 2012-05-07 18:30:58 +0200
# catalog-license other-free
# catalog-version 1.0
Name:		texlive-dvidvi
Version:	1.0
Release:	14
Summary:	Convert one DVI file into another
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dvidvi
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvidvi.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-dvidvi.bin

%description
The output DVI file's contents are specified by page selection
commands; series of pages and page number ranges may be
specified, as well as inclusions and exclusions.

#-----------------------------------------------------------------------
%files
%{_mandir}/man1/dvidvi.1*
%{_texmfdistdir}/doc/man/man1/dvidvi.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18185 |21mr|texlive-dviincl-1.00-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/dviincl
# catalog-date 2012-04-10 15:00:16 +0200
# catalog-license pd
# catalog-version 1.00
Name:		texlive-dviincl
Version:	1.00
Release:	12
Summary:	Include a DVI page into MetaPost output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/dviincl
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dviincl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dviincl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
DVItoMP is one of the auxiliary programs available to any
MetaPost package; it converts a DVI file into a MetaPost file.
Using it, one can envisage including a DVI page into an EPS
files generated by MetaPost. Such files allow pages to include
other pages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/dviincl/fix_brks.mp
%{_texmfdistdir}/metapost/dviincl/fix_page.mp
%doc %{_texmfdistdir}/doc/metapost/dviincl/0czytaj.sla
%doc %{_texmfdistdir}/doc/metapost/dviincl/0dviincl.inf
%doc %{_texmfdistdir}/doc/metapost/dviincl/README
%doc %{_texmfdistdir}/doc/metapost/dviincl/README.pl
%doc %{_texmfdistdir}/doc/metapost/dviincl/storyx.tex
%doc %{_texmfdistdir}/doc/metapost/dviincl/test-bop.mp
%doc %{_texmfdistdir}/doc/metapost/dviincl/test-bop.tex
%doc %{_texmfdistdir}/doc/metapost/dviincl/testit.bat
%doc %{_texmfdistdir}/doc/metapost/dviincl/testit.sh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18186 |21mr|texlive-dviljk-2.6p4-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /dviware/dviljk
# catalog-date 2012-04-21 09:41:15 +0200
# catalog-license gpl
# catalog-version 2.6p4
Name:		texlive-dviljk
Version:	2.6p4
Release:	15
Summary:	DVI to Laserjet output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dviljk
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dviljk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dviljk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-dviljk.bin
%rename tetex-dvilj
%rename texlive-dvilj

%description
A dvi driver for the LaserJet printers, using kpathsea
recursive file searching. Note: this program will not compile
simply with the sources in this distribution; it needs a full
(current) kpathsea distribution environment, such as is
available from the TeX-Live source tree.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/dvihp.1*
%doc %{_texmfdistdir}/doc/man/man1/dvihp.man1.pdf
%doc %{_mandir}/man1/dvilj.1*
%doc %{_texmfdistdir}/doc/man/man1/dvilj.man1.pdf
%doc %{_mandir}/man1/dvilj2p.1*
%doc %{_texmfdistdir}/doc/man/man1/dvilj2p.man1.pdf
%doc %{_mandir}/man1/dvilj4.1*
%doc %{_texmfdistdir}/doc/man/man1/dvilj4.man1.pdf
%doc %{_mandir}/man1/dvilj4l.1*
%doc %{_texmfdistdir}/doc/man/man1/dvilj4l.man1.pdf
%doc %{_mandir}/man1/dvilj6.1*
%doc %{_texmfdistdir}/doc/man/man1/dvilj6.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18187 |21mr|texlive-dvipdfmx-20200622-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dvipdfmx
Version:	20200622
Release:	1
Summary:	An extended version of dvipdfm
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dvipdfmx/dvipdfmx.tar.gz
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvipdfmx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvipdfmx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-glyphlist
Requires:	texlive-dvipdfmx.bin
%rename texlive-dvipdfm

%description
Dvipdfmx (formerly dvipdfm-cjk) is a development of dvipdfm
created to support multi-byte character encodings and large
character sets for East Asian languages. Dvipdfmx, if "called"
with the name dvipdfm, operates in a "dvipdfm compatibility"
mode, so that users of the both packages need only keep one
executable. A secondary design goal is to support as many "PDF"
features as does pdfTeX. There being no documentation as such,
users are advised to consult the documentation of dvipdfm (as
well, of course, as the package Readme.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvipdfmx
%{_texmfdistdir}/fonts/cmap/dvipdfmx
%{_texmfdistdir}/fonts/map/dvipdfmx
%{_tlpkgdir}/tlpostcode/dvipdfmx.pl
%doc %{_texmfdistdir}/doc/dvipdfm
%doc %{_texmfdistdir}/doc/dvipdfmx
%doc %{_mandir}/man1/dvipdfm.1*
%doc %{_texmfdistdir}/doc/man/man1/dvipdfm.man1.pdf
%doc %{_mandir}/man1/dvipdfmx.1*
%doc %{_texmfdistdir}/doc/man/man1/dvipdfmx.man1.pdf
%doc %{_mandir}/man1/dvipdft.1*
%doc %{_texmfdistdir}/doc/man/man1/dvipdft.man1.pdf
%doc %{_mandir}/man1/ebb.1*
%doc %{_texmfdistdir}/doc/man/man1/ebb.man1.pdf
%doc %{_mandir}/man1/extractbb.1*
%doc %{_texmfdistdir}/doc/man/man1/extractbb.man1.pdf
%doc %{_mandir}/man1/xdvipdfmx.1*
%doc %{_texmfdistdir}/doc/man/man1/xdvipdfmx.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_tlpkgdir}
cp -fpar tlpkg/tlpostcode %{buildroot}%{_tlpkgdir}
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18188 |21mr|texlive-dvips-20200314-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dvips
Version:	20200314
Release:	2
Summary:	A DVI to PostScript driver
Group:		Publishing
URL:		http://tug.org/texlive
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvips.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvips.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-dvips.bin
Requires:	texlive-dvipsconfig
%rename tetex-dvips
%rename texlive-texmf-dvips

%description
This package has been withdrawn from CTAN, and bundled into the
distributions' package sets. The current sources of dvips may
be found in the distribution of dvipsk which forms part of the
TeX-live sources.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips
%{_texmfdistdir}/fonts/enc/dvips
%{_texmfdistdir}/tex/generic/dvips
%doc %{_texmfdistdir}/doc/dvips
%doc %{_infodir}/dvips.info*
%doc %{_mandir}/man1/afm2tfm.1*
%doc %{_texmfdistdir}/doc/man/man1/afm2tfm.man1.pdf
%doc %{_mandir}/man1/dvips.1*
%doc %{_texmfdistdir}/doc/man/man1/dvips.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18189 |21mr|texlive-dvipsconfig-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-dvipsconfig
Version:	20190228
Release:	1
Summary:	Collection of dvips PostScript headers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dvipsconfig
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dvipsconfig.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a collection of dvips PostScript header and dvips
config files. They control certain features of the printer,
including: A4, A3, usletter, simplex, duplex / long edge,
duplex / short edge, screen frequencies of images, black/white
invers, select transparency / paper for tektronix 550/560,
manual feeder, envelope feeder, and tray 1, 2 and 3, and
printing a PostScript grid underneath the page material--very
useful for measuring and eliminating paper feed errors!.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/dvipsconfig/README
%{_texmfdistdir}/dvips/dvipsconfig/addpsctrl
%{_texmfdistdir}/dvips/dvipsconfig/config.a3
%{_texmfdistdir}/dvips/dvipsconfig/config.a4
%{_texmfdistdir}/dvips/dvipsconfig/config.a4grid
%{_texmfdistdir}/dvips/dvipsconfig/config.duplong
%{_texmfdistdir}/dvips/dvipsconfig/config.dupshort
%{_texmfdistdir}/dvips/dvipsconfig/config.envelope
%{_texmfdistdir}/dvips/dvipsconfig/config.inv
%{_texmfdistdir}/dvips/dvipsconfig/config.manualfeed
%{_texmfdistdir}/dvips/dvipsconfig/config.mmgrid
%{_texmfdistdir}/dvips/dvipsconfig/config.psgrid
%{_texmfdistdir}/dvips/dvipsconfig/config.screen100
%{_texmfdistdir}/dvips/dvipsconfig/config.screen100_0
%{_texmfdistdir}/dvips/dvipsconfig/config.screen110
%{_texmfdistdir}/dvips/dvipsconfig/config.screen120
%{_texmfdistdir}/dvips/dvipsconfig/config.screen130
%{_texmfdistdir}/dvips/dvipsconfig/config.screen140
%{_texmfdistdir}/dvips/dvipsconfig/config.screen150
%{_texmfdistdir}/dvips/dvipsconfig/config.screen35
%{_texmfdistdir}/dvips/dvipsconfig/config.screen50
%{_texmfdistdir}/dvips/dvipsconfig/config.screen70
%{_texmfdistdir}/dvips/dvipsconfig/config.screen80
%{_texmfdistdir}/dvips/dvipsconfig/config.screen85
%{_texmfdistdir}/dvips/dvipsconfig/config.screen90
%{_texmfdistdir}/dvips/dvipsconfig/config.simplex
%{_texmfdistdir}/dvips/dvipsconfig/config.tek550paper
%{_texmfdistdir}/dvips/dvipsconfig/config.tek550transparency
%{_texmfdistdir}/dvips/dvipsconfig/config.tray1
%{_texmfdistdir}/dvips/dvipsconfig/config.tray2
%{_texmfdistdir}/dvips/dvipsconfig/config.tray3
%{_texmfdistdir}/dvips/dvipsconfig/config.usledger
%{_texmfdistdir}/dvips/dvipsconfig/config.usletter

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18190 |21mr|texlive-dynamicnumber-0.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 38726
# category Package
# catalogue-ctan /macros/latex/contrib/dynamicnumber
# catalog-date 2017-04-18 05:31:40 +0200
# catalog-license mit
# catalog-version 0.1.3

Name:		texlive-dynamicnumber
Version:	0.1.3
Release:	2
Summary:	Dynamically typeset numbers and values in LaTeX through "symbolic links"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dynamicnumber
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dynamicnumber.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dynamicnumber.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package dynamically typesets values generated by different
kinds of scripts in LaTeX through the use of "symbolic links"
(which are not in any way related to the "symbolic links" used
in UNIX systems!). The aim is to reduce errors resulting from
out-of-date numbers by directly setting them in the number
generating file and importing a "symbolic link" into the LaTeX
source file. It can be used to import not only numerical
values, but strings and pieces of code are also possible.
Currently only MATLAB and Python are supported to produce
Dynamic Number list files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dynamicnumber/
%doc %{_texmfdistdir}/doc/latex/dynamicnumber/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18191 |21mr|texlive-dynblocks-0.2b-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27838
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/dynblocks
# catalog-date 2012-09-27 16:18:28 +0200
# catalog-license lppl1.3
# catalog-version 0.2a
Name:		texlive-dynblocks
Version:	0.2b
Release:	3
Summary:	A simple way to create dynamic blocks for Beamer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/dynblocks
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dynblocks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dynblocks.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides full customisation of the aspect and
dimensions of blocks inside a presentation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dynblocks/dynblocks.sty
%doc %{_texmfdistdir}/doc/latex/dynblocks/README
%doc %{_texmfdistdir}/doc/latex/dynblocks/dynblocks.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/dynblocks.tex
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/alert_1.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/alert_2.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/align.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/basic_1.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/basic_2.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/cmbx_1.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/cmbx_2.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/cmby_1.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/cmby_2.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/custcol_1.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/custcol_2.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/custcol_3.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/custcol_4.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/estl.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/shdrndc_1.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/shdrndc_2.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/szeg_1.pdf
%doc %{_texmfdistdir}/doc/latex/dynblocks/images/szeg_2.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18192 |21mr|texlive-dynkin-diagrams-3.141592653-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 53018
# category Package
# catalogue-ctan /macros/latex/contrib/dynkin-diagrams
# catalog-date 2019-12-04 17:22:22 +0100
# catalog-license lppl1.3c
# catalog-version 3.141592653

Name:		texlive-dynkin-diagrams
Version:	3.141592653
Release:	1
Summary:	Draw Dynkin, Coxeter, and Satake diagrams using TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dynkin-diagrams
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dynkin-diagrams.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dynkin-diagrams.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Draws Dynkin, Coxeter, and Satake diagrams in LaTeX documents,
using the TikZ package. The package requires etoolbox, expl3,
pgfkeys, pgfopts, TikZ, xparse, and xstring.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dynkin-diagrams/
%doc %{_texmfdistdir}/doc/latex/dynkin-diagrams/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18193 |21mr|texlive-dyntree-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/dyntree
# catalog-date 2007-03-05 22:02:45 +0100
# catalog-license lgpl
# catalog-version 1.0
Name:		texlive-dyntree
Version:	1.0
Release:	7
Summary:	Construct Dynkin tree diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/dyntree
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dyntree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dyntree.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/dyntree.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is intended for users needing to typeset a Dynkin
Tree Diagram--a group theoretical construct consisting of
cartan coefficients in boxes connected by a series of lines.
Such a diagram is a tool for working out the states and their
weights in terms of the fundamental weights and the simple
roots. The package makes use of the author's coollist package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/dyntree/dyntree.sty
%doc %{_texmfdistdir}/doc/latex/dyntree/README
%doc %{_texmfdistdir}/doc/latex/dyntree/dyntree.pdf
#- source
%doc %{_texmfdistdir}/source/latex/dyntree/dyntree.dtx
%doc %{_texmfdistdir}/source/latex/dyntree/dyntree.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18194 |21mr|texlive-ean13isbn-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ean13isbn
# catalog-date 2008-08-19 08:58:40 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-ean13isbn
Version:	20190228
Release:	1
Summary:	Print EAN13 for ISBN
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ean13isbn
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ean13isbn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ean13isbn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to typeset ISBN codes with EAN-
13; it uses the (generic) package ean13.tex to typeset the
actual barcode.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ean13isbn/ean13isbn.sty
%doc %{_texmfdistdir}/doc/latex/ean13isbn/License.txt
%doc %{_texmfdistdir}/doc/latex/ean13isbn/README
%doc %{_texmfdistdir}/doc/latex/ean13isbn/ean13isbn.pdf
%doc %{_texmfdistdir}/doc/latex/ean13isbn/ean13isbn.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18195 |21mr|texlive-easy-0.99-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/easy
# catalog-date 2007-01-01 18:45:52 +0100
# catalog-license lppl
# catalog-version 0.99
Name:		texlive-easy
Version:	0.99
Release:	7
Summary:	A collection of easy-to-use macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/easy
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The collection comprises: - easybib, support for customising
bibliographies; - easybmat, support for composing block
matrices; - easyeqn, support for various aspects of equations;
- easymat, support for composing matrices; - easytable, support
for writing tables; - easyvector, a C-like syntax for writing
vectors.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/easy/easy.sty
%{_texmfdistdir}/tex/latex/easy/easybib.sty
%{_texmfdistdir}/tex/latex/easy/easybmat.sty
%{_texmfdistdir}/tex/latex/easy/easyeqn.sty
%{_texmfdistdir}/tex/latex/easy/easymat.sty
%{_texmfdistdir}/tex/latex/easy/easytable.sty
%{_texmfdistdir}/tex/latex/easy/easyvector.sty
%doc %{_texmfdistdir}/doc/latex/easy/README
%doc %{_texmfdistdir}/doc/latex/easy/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/easy/for-latex2html/easybib.perl
%doc %{_texmfdistdir}/doc/latex/easy/for-latex2html/easybmat.perl
%doc %{_texmfdistdir}/doc/latex/easy/for-latex2html/easyeqn.perl
%doc %{_texmfdistdir}/doc/latex/easy/for-latex2html/easymat.perl
%doc %{_texmfdistdir}/doc/latex/easy/for-latex2html/easytable.perl
%doc %{_texmfdistdir}/doc/latex/easy/for-latex2html/easyvector.perl
%doc %{_texmfdistdir}/doc/latex/easy/mydoc.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18196 |21mr|texlive-easyfig-1.2a-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26424
# category Package
# catalog-ctan /macros/latex/contrib/easyfig
# catalog-date 2012-05-15 13:39:37 +0200
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-easyfig
Version:	1.2a
Release:	3
Summary:	Simplifying the use of common figures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/easyfig
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyfig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyfig.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyfig.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the command \Figure[<key=value>...]{<image
filename>} to simplify the business of including an image as
figure in the most common form (centred and with caption and
label). Caption and label are set using the caption and label
keys; the label fig:<image filename> is used if none is given.
If the here key is given, the figure is not 'floated', and the
user is responsible for placement. The package uses the
author's package adjustbox to centre an image and to simplify
further modifications.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/easyfig/easyfig.sty
%doc %{_texmfdistdir}/doc/latex/easyfig/README
%doc %{_texmfdistdir}/doc/latex/easyfig/easyfig.pdf
#- source
%doc %{_texmfdistdir}/source/latex/easyfig/easyfig.dtx
%doc %{_texmfdistdir}/source/latex/easyfig/easyfig.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18197 |21mr|texlive-easyformat-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 44543
# category Package
# catalogue-ctan /macros/latex/contrib/easyformat
# catalog-date 2017-06-10 09:03:50 +0200
# catalog-license gpl3+
# catalog-version 1.4.0

Name:		texlive-easyformat
Version:	1.4.0
Release:	2
Summary:	Easily add boldface, italics and smallcaps
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/easyformat
License:	GPL3+
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyformat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyformat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows the use of underscores and circumflexes to
begin resp. end italic, bold or SMALLCAPS formatting, as an
alternative to the standard LaTeX \textit{...}, \textbf{...}
and/or \textsc{...}. The meaning of underscore and circumflex
in mathmode remain the same.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/easyformat/
%doc %{_texmfdistdir}/doc/latex/easyformat/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18198 |21mr|texlive-easylist-1.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32661
# category Package
# catalog-ctan /macros/latex/contrib/easylist
# catalog-date 2012-04-14 11:10:53 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-easylist
Version:	1.3
Release:	12
Summary:	Lists using a single active character
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/easylist
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easylist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easylist.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows you to create lists of numbered items (as
in Wittgenstein's 'Tractatus') with a single active character
as the only command. A variety of parameters are available to
configure the appearance of the list; lists may be nested
(effectively to unlimited depth).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/easylist/easylist.sty
%doc %{_texmfdistdir}/doc/latex/easylist/README
%doc %{_texmfdistdir}/doc/latex/easylist/easylist-doc.pdf
%doc %{_texmfdistdir}/doc/latex/easylist/easylist-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18199 |21mr|texlive-easyreview-20150911-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Package providing a way to reviews
Name:		texlive-easyreview
Version:	20150911
Release:	1
License:	lppl1.3
Group:		Publishing
Url:		https://github.com/jmamatos/easyReview/releases
Source0:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyreview.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyreview.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/easyreview.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The easyReview package provide a way to review (or perform 
editorial process) in LaTeX. You can use the provided 
commands to claim attention in different ways to part 
of the text, or even to indicate that a text was added, 
needs to be removed, needs to be replaced and add comments 
to the text.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/easyreview/easyReview.sty

%doc %{_texmfdistdir}/doc/latex/easyreview/README.txt
%doc %{_texmfdistdir}/doc/latex/easyreview/doc/easyReview.pdf
%doc %{_texmfdistdir}/doc/latex/easyreview/doc/easyReview.tex
#source
%doc %{_texmfdistdir}/source/latex/easyreview/easyReview.dtx
%doc %{_texmfdistdir}/source/latex/easyreview/easyReview.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18200 |21mr|texlive-easy-todo-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32677
# category Package
# catalog-ctan /macros/latex/contrib/easy-todo
# catalog-date 2014-01-14 11:49:17 +0100
# catalog-license apache2
# catalog-version undef
Name:		texlive-easy-todo
Version:	20190228
Release:	1
Summary:	To-do notes in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/easy-todo
License:	APACHE2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easy-todo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/easy-todo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides to-do notes throughout a document, and
will provide an index of things to do.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/easy-todo/easy-todo.sty
%doc %{_texmfdistdir}/doc/latex/easy-todo/LICENSE
%doc %{_texmfdistdir}/doc/latex/easy-todo/README
%doc %{_texmfdistdir}/doc/latex/easy-todo/easy-todo.pdf
%doc %{_texmfdistdir}/doc/latex/easy-todo/easy-todo.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18201 |21mr|texlive-ebezier-4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ebezier
# catalog-date 2009-01-30 10:13:19 +0100
# catalog-license lppl
# catalog-version 4
Name:		texlive-ebezier
Version:	4
Release:	7
Summary:	Device independent picture environment enhancement
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ebezier
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebezier.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebezier.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebezier.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Ebezier is a device independent extension for the standard
picture environment. Linear, quadratic, and cubic bezier curves
are supplied in connection with higher level circle drawing
commands. Additionally some macros for the calculation of curve
lenghts are part of this package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ebezier/ebezier.sty
%doc %{_texmfdistdir}/doc/latex/ebezier/ebezier.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ebezier/ebezier.dtx
%doc %{_texmfdistdir}/source/latex/ebezier/ebezier.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18202 |21mr|texlive-ebong-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /language/ebong
# catalog-date 2012-05-07 23:49:19 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-ebong
Version:	20190228
Release:	1
Summary:	Utility for writing Bengali in Rapid Roman Format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/ebong
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebong.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebong.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-ebong.bin = %{EVRD}

%description
A tool (preprocessor) for writing your pRaa-ne-r ka-thaa in the
bengali langauage. It allows one to write the text in Rapid
Roman Bangla and convert it to the bangtex format by a python
program. All LaTeX markups are preserved in the target file.

#-----------------------------------------------------------------------
%files
%{_bindir}/ebong
%{_texmfdistdir}/scripts/ebong/ebong.py
%doc %{_texmfdistdir}/doc/latex/ebong/ANNOUNCE.txt
%doc %{_texmfdistdir}/doc/latex/ebong/README
%doc %{_texmfdistdir}/doc/latex/ebong/eb.b
%doc %{_texmfdistdir}/doc/latex/ebong/eb.pdf
%doc %{_texmfdistdir}/doc/latex/ebong/eb_tex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/ebong/ebong.py ebong
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18203 |21mr|texlive-ebook-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29466
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-ebook
Version:	20190228
Release:	1
Summary:	TeXLive ebook package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebook.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive ebook package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ebook/ebook.sty
%doc %{_texmfdistdir}/doc/latex/ebook/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18204 |21mr|texlive-ebsthesis-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ebsthesis
# catalog-date 2007-01-07 11:02:17 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-ebsthesis
Version:	1.0
Release:	7
Summary:	Typesetting theses for economics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ebsthesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebsthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebsthesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ebsthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The ebsthesis class and ebstools package facilitate the
production of camera-ready manuscripts in conformance with the
guidelines of Gabler Verlag and typographical rules established
by the European Business School.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ebsthesis/ebsthesis.cls
%doc %{_texmfdistdir}/doc/latex/ebsthesis/README
%doc %{_texmfdistdir}/doc/latex/ebsthesis/ebsthesis.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ebsthesis/ebsthesis.dtx
%doc %{_texmfdistdir}/source/latex/ebsthesis/ebsthesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18205 |21mr|texlive-ec-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25033
# category Package
# catalog-ctan /fonts/ec
# catalog-date 2009-08-27 17:24:27 +0200
# catalog-license other-free
# catalog-version 1.0
Name:		texlive-ec
Version:	1.0
Release:	10
Summary:	Computer modern fonts in T1 and TS1 encodings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ec
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ec.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
The EC fonts are European Computer Modern Fonts, supporting the
complete LaTeX T1 encoding defined at the 1990 TUG conference
hold at Cork/Ireland. These fonts are intended to be stable
with no changes being made to the tfm files. The set also
contains a Text Companion Symbol font, called tc, featuring
many useful characters needed in text typesetting, for example
oldstyle digits, currency symbols (including the newly created
Euro symbol), the permille sign, copyright, trade mark and
servicemark as well as a copyleft sign, and many others. Recent
releases of LaTeX2e support the EC fonts. The EC fonts
supersede the preliminary version released as the DC fonts. The
fonts are available in (traced) Adobe Type 1 format, as part of
the cm-super bundle. The other Computer Modern-style T1-encoded
Type 1 set, Latin Modern, is not actually a direct development
of the EC set, and differs from the EC in a number of
particulars.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbi3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbl3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbm.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecbx3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eccc3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecci3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecdh3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecfb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecff.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecfi.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecfs.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecit3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eclb8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecli8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eclo8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/eclq8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecltt8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecoc3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecqi8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrb3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecrm3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsc3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsi3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsl3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecso3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsq8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecss3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecssdc10.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecst3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecsx3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectc3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecti3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ectt3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecui3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvi3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecvt3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ecxc3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exaccent.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exaccess.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exbase.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exbraces.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/excligtb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/excsc.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/excspl.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exidigit.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exileast.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exilig.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exiligtb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exillett.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exilwest.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exisixts.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exitalp.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exmligtb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/expseudo.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/expunct.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exrdigit.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exrleast.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exrlig.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exrligtb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exrllett.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exrlwest.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exroman.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exromp.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exrueast.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exrulett.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exruwest.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exsign.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/exsixtst.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/extextit.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ieclb8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/iecli8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ieclo8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/ieclq8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/iecltt8.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbi3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbl3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbm.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcbx3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcci3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcdh.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcfb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcff.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcfi.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcfs.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcit3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrb3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcrm3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsi3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsl3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcso3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcss3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcst3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcsx3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcti3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tctt3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui0500.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui0600.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui0700.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcui3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvi3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt0800.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt0900.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt1000.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt1095.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt1200.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt1440.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt1728.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt2074.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt2488.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt2986.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/tcvt3583.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txaccent.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txgen.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txifract.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txisuper.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txitlod.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txpseudo.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txrfract.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txromod.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txrsuper.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txsymb.mf
%{_texmfdistdir}/fonts/source/jknappen/ec/txsymbol.mf
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbi3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbl3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecbx3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eccc3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecci3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecdh3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecit3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eclb8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecli8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eclo8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/eclq8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecltt8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecoc3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrb3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecrm3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsc3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsi3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsl3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecso3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecss3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecst3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecsx3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectc3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecti3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ectt3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecui3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvi3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecvt3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ecxc3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ieclb8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/iecli8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ieclo8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/ieclq8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/iecltt8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbi3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbl3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcbx3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcci3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcit3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrb3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcrm3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsi3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsl3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcso3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcss3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcst3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcsx3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcti3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tctt3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui0500.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui0600.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui0700.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcui3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvi3583.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt0800.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt0900.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt1000.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt1095.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt1200.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt1440.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt1728.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt2074.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt2488.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt2986.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/ec/tcvt3583.tfm
%doc %{_texmfdistdir}/doc/fonts/ec/00bugs.txt
%doc %{_texmfdistdir}/doc/fonts/ec/00error.txt
%doc %{_texmfdistdir}/doc/fonts/ec/00files.txt
%doc %{_texmfdistdir}/doc/fonts/ec/00inst.txt
%doc %{_texmfdistdir}/doc/fonts/ec/00readme.txt
%doc %{_texmfdistdir}/doc/fonts/ec/copyrite.txt
%doc %{_texmfdistdir}/doc/fonts/ec/dc-chg.txt
%doc %{_texmfdistdir}/doc/fonts/ec/dcdoc.tex
%doc %{_texmfdistdir}/doc/fonts/ec/ec-chg.txt
%doc %{_texmfdistdir}/doc/fonts/ec/ecstdedt.tex
%doc %{_texmfdistdir}/doc/fonts/ec/tc-chg.txt
%doc %{_texmfdistdir}/doc/fonts/ec/tcstdedt.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18206 |21mr|texlive-ecclesiastic-0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ecclesiastic
Version:	0.3
Release:	3
Summary:	Typesetting Ecclesiastic Latin
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ecclesiastic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecclesiastic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecclesiastic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecclesiastic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package modifies the way the latin option to babel operates
when typesetting Latin. The style is somewhat 'frenchified' in
respect of punctuation spacings and footnote style; shortcuts
are available in order to set accents on all vowels, including
y and the diphthongs ae and oe.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ecclesiastic
%doc %{_texmfdistdir}/doc/latex/ecclesiastic
#- source
%doc %{_texmfdistdir}/source/latex/ecclesiastic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18207 |21mr|texlive-ecltree-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/eclbip
# catalog-date 2008-06-01 23:17:13 +0200
# catalog-license lppl
# catalog-version 1.1a
Name:		texlive-ecltree
Version:	1.1a
Release:	7
Summary:	Trees using epic and eepic macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eclbip
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecltree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecltree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package recursively draws trees: each subtree is defined in
a 'bundle' environment, with a set of leaves described by
\chunk macros. A chunk may have a bundle environment inside it.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ecltree/ecltree.sty
%doc %{_texmfdistdir}/doc/latex/ecltree/ecltreesample.pdf
%doc %{_texmfdistdir}/doc/latex/ecltree/ecltreesample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18208 |21mr|texlive-ecv-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24928
# category Package
# catalog-ctan /macros/latex/contrib/ecv
# catalog-date 2011-12-23 14:02:37 +0100
# catalog-license other-free
# catalog-version 0.3
Name:		texlive-ecv
Version:	0.3
Release:	7
Summary:	A fancy Curriculum Vitae class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ecv
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ecv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides an environment for creating a fancily laid
out tabular curriculum vitae inspired by the european
curriculum vitae. The distribution comes with a German and an
English template.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ecv/ecv.cls
%{_texmfdistdir}/tex/latex/ecv/ecvEnglish.ldf
%{_texmfdistdir}/tex/latex/ecv/ecvGerman.ldf
%{_texmfdistdir}/tex/latex/ecv/ecvNLS.sty
%doc %{_texmfdistdir}/doc/latex/ecv/COPYING
%doc %{_texmfdistdir}/doc/latex/ecv/README
%doc %{_texmfdistdir}/doc/latex/ecv/docstrip.cfg
%doc %{_texmfdistdir}/doc/latex/ecv/ecv.pdf
%doc %{_texmfdistdir}/doc/latex/ecv/template/CV-template_de.pdf
%doc %{_texmfdistdir}/doc/latex/ecv/template/CV-template_de.tex
%doc %{_texmfdistdir}/doc/latex/ecv/template/CV-template_en.pdf
%doc %{_texmfdistdir}/doc/latex/ecv/template/CV-template_en.tex
%doc %{_texmfdistdir}/doc/latex/ecv/template/Makefile
%doc %{_texmfdistdir}/doc/latex/ecv/template/portrait.eps
#- source
%doc %{_texmfdistdir}/source/latex/ecv/ecv.dtx
%doc %{_texmfdistdir}/source/latex/ecv/ecv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18209 |21mr|texlive-ed-1.8-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25231
# category Package
# catalog-ctan /macros/latex/contrib/ed
# catalog-date 2012-01-29 16:01:54 +0100
# catalog-license lppl1
# catalog-version 1.8
Name:		texlive-ed
Version:	1.8
Release:	6
Summary:	Editorial Notes for LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ed
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ed.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ed.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ed.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines a couple of editorial notes that simplify
collaboration on a LaTeX text. These allow authors to annotate
status information in the source. In draft mode, the
annotations are shown for communication, and in publication
mode these are suppressed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ed/ed.sty
%doc %{_texmfdistdir}/doc/latex/ed/Makefile
%doc %{_texmfdistdir}/doc/latex/ed/README
%doc %{_texmfdistdir}/doc/latex/ed/ed.pdf
%doc %{_texmfdistdir}/doc/latex/ed/ed.sty.ltxml
#- source
%doc %{_texmfdistdir}/source/latex/ed/ed.dtx
%doc %{_texmfdistdir}/source/latex/ed/ed.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18210 |21mr|texlive-edfnotes-0.6b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21540
# category Package
# catalog-ctan /macros/latex/contrib/edfnotes
# catalog-date 2011-02-22 21:47:43 +0100
# catalog-license lppl1.3
# catalog-version 0.6b
Name:		texlive-edfnotes
Version:	0.6b
Release:	7
Summary:	Critical annotations to footnotes with ednotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/edfnotes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edfnotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edfnotes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edfnotes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package modifies the annotation commands and label-test
mechanism of the ednotes package so that critical notes appear
on the pages and in the order that one would expect.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/edfnotes/edfnotes.sty
%doc %{_texmfdistdir}/doc/latex/edfnotes/PdUsample.pdf
%doc %{_texmfdistdir}/doc/latex/edfnotes/README
%doc %{_texmfdistdir}/doc/latex/edfnotes/README.pdf
%doc %{_texmfdistdir}/doc/latex/edfnotes/README.txt
%doc %{_texmfdistdir}/doc/latex/edfnotes/SRCFILEs.txt
%doc %{_texmfdistdir}/doc/latex/edfnotes/edfnotes.pdf
#- source
%doc %{_texmfdistdir}/source/latex/edfnotes/README.tex
%doc %{_texmfdistdir}/source/latex/edfnotes/edfnotes.tex
%doc %{_texmfdistdir}/source/latex/edfnotes/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18211 |21mr|texlive-edmargin-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/edmargin
# catalog-date 2008-08-19 08:58:40 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-edmargin
Version:	1.2
Release:	7
Summary:	Multiple series of endnotes for critical editions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/edmargin
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edmargin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edmargin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/edmargin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Edmargin provides a very simple scheme for endnote sections for
critical editions. Endnotes can either be marked in the text,
or with marginal references to the page in the note sections
where the note is to be found. Notes can be set in individual
paragraphs, or in block paragraph mode (where there are many
short notes). Note sections will have running headers of the
form "Textual notes to pp. xx--yy". New note sections can be
created on the fly. There are predefined endnote sections for
textual notes, emendations, and explanatory notes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/edmargin/edmargin.sty
%doc %{_texmfdistdir}/doc/latex/edmargin/README
%doc %{_texmfdistdir}/doc/latex/edmargin/edmargin.pdf
#- source
%doc %{_texmfdistdir}/source/latex/edmargin/edmargin.dtx
%doc %{_texmfdistdir}/source/latex/edmargin/edmargin.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18212 |21mr|texlive-ednotes-1.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/ednotes
# catalog-date 2008-01-07 00:37:03 +0100
# catalog-license lppl
# catalog-version 1.3a
Name:		texlive-ednotes
Version:	1.3a
Release:	7
Summary:	Typeset scholarly editions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ednotes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ednotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ednotes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A macro package for typesetting scholarly critical editions.
Provides macros for critical edition typesetting with LaTeX,
including support for line numbers and layers of footnotes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ednotes/edcntwd0.sty
%{_texmfdistdir}/tex/latex/ednotes/ednotes.sty
%{_texmfdistdir}/tex/latex/ednotes/lblchng1.sty
%{_texmfdistdir}/tex/latex/ednotes/mfparptc.sty
%{_texmfdistdir}/tex/latex/ednotes/mfparxsp.sty
%doc %{_texmfdistdir}/doc/latex/ednotes/CHANGES.txt
%doc %{_texmfdistdir}/doc/latex/ednotes/CHANGING.txt
%doc %{_texmfdistdir}/doc/latex/ednotes/README
%doc %{_texmfdistdir}/doc/latex/ednotes/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/ednotes/README4U.txt
%doc %{_texmfdistdir}/doc/latex/ednotes/READMORE.txt
%doc %{_texmfdistdir}/doc/latex/ednotes/ednotes.pdf
%doc %{_texmfdistdir}/doc/latex/ednotes/ednotes.tex
%doc %{_texmfdistdir}/doc/latex/ednotes/ednotugb.pdf
%doc %{_texmfdistdir}/doc/latex/ednotes/emathtst.tex
%doc %{_texmfdistdir}/doc/latex/ednotes/varnrule.tex
%doc %{_texmfdistdir}/doc/latex/ednotes/visible.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18213 |21mr|texlive-eemeir-1.1b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/eemeir
# catalog-date 2007-02-20 10:49:06 +0100
# catalog-license lppl
# catalog-version 1.1b
Name:		texlive-eemeir
Version:	1.1b
Release:	7
Summary:	Adjust the gender of words in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eemeir
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eemeir.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eemeir.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eemeir.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines macros for third-person singular pronouns (\E, \Em,
\Eir, \Eirs), which expand differently according to a
masculine/feminine switch. (If the switch is 'masculine', they
would expand to 'he', 'him', 'his' and 'his'; if 'feminine',
they would expand to 'she', 'her', 'her' and 'hers". Apart from
the pronouns, one can define 'word pairs', such as
mother/father, daughter/son, and so on. Gender may be defined
once per document, as an environment, or may be flipped on the
fly.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eemeir/eemeir.sty
%doc %{_texmfdistdir}/doc/latex/eemeir/README
%doc %{_texmfdistdir}/doc/latex/eemeir/eemeir.pdf
#- source
%doc %{_texmfdistdir}/source/latex/eemeir/eemeir.dtx
%doc %{_texmfdistdir}/source/latex/eemeir/eemeir.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18214 |21mr|texlive-eepic-1.1e-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/eepic
# catalog-date 2009-09-25 23:06:49 +0200
# catalog-license pd
# catalog-version 1.1e
Name:		texlive-eepic
Version:	1.1e
Release:	7
Summary:	Extensions to epic and the LaTeX drawing tools
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eepic
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eepic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eepic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Extensions to epic and the LaTeX picture drawing environment,
include the drawing of lines at any slope, the drawing of
circles in any radii, and the drawing of dotted and dashed
lines much faster with much less TeX memory, and providing
several new commands for drawing ellipses, arcs, splines, and
filled circles and ellipses. The package uses tpic \special
commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eepic/eepic.sty
%{_texmfdistdir}/tex/latex/eepic/eepicemu.sty
%{_texmfdistdir}/tex/latex/eepic/epic.sty
%doc %{_texmfdistdir}/doc/latex/eepic/eepic.pdf
%doc %{_texmfdistdir}/doc/latex/eepic/eepic.tex
%doc %{_texmfdistdir}/doc/latex/eepic/epic-eg3.fig
%doc %{_texmfdistdir}/doc/latex/eepic/epic-eg3.tex
%doc %{_texmfdistdir}/doc/latex/eepic/epic-eg4.fig
%doc %{_texmfdistdir}/doc/latex/eepic/epic-eg4.tex
%doc %{_texmfdistdir}/doc/latex/eepic/fig2eepic/epic-eg3.fig
%doc %{_texmfdistdir}/doc/latex/eepic/fig2eepic/epic-eg4.fig
%doc %{_texmfdistdir}/doc/latex/eepic/fig2eepic/fig2epic.1
%doc %{_texmfdistdir}/doc/latex/eepic/fig2eepic/makefile
%doc %{_texmfdistdir}/doc/latex/eepic/fig2eepic/readme
%doc %{_texmfdistdir}/doc/latex/eepic/grafig.shar
%doc %{_texmfdistdir}/doc/latex/eepic/readme

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18215 |21mr|texlive-efbox-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-efbox
Version:	1.0
Release:	2
Summary:	Extension of \fbox, with controllable frames and coloursfiles
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/efbox
LICENSE:	The LATEX Project Public License 1.3
Source0:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/efbox.tar.xz
Source1:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/efbox.doc.tar.xz
Source2:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/efbox.source.tar.xz
BuildArch: noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea	

%description
`efbox` is a LaTeX package that defines the `\efbox` command, which
creates a box just wide enough to hold the text created by its argument,
and optionally puts a frame around the outside of the box, and it allows
setting the box background color. It uses key-value pairs for that.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/efbox
%doc %{_texmfdistdir}/source/latex/efbox
%doc %{_texmfdistdir}/doc/latex/efbox

#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1 -a2


%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -r tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18216 |21mr|texlive-egameps-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/egameps
# catalog-date 2009-11-06 13:29:36 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-egameps
Version:	1.1
Release:	7
Summary:	LaTeX package for typesetting extensive games
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/egameps
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/egameps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/egameps.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The style is intended to have enough features to draw any
extensive game with relative ease. The facilities of PSTricks
are used for graphics. (An older version of the package, which
uses the LaTeX picture environment rather than PSTricks and
consequently has many fewer features is available on the
package home page.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/egameps/egameps.sty
%doc %{_texmfdistdir}/doc/latex/egameps/README
%doc %{_texmfdistdir}/doc/latex/egameps/egameps.pdf
%doc %{_texmfdistdir}/doc/latex/egameps/egameps.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18217 |21mr|texlive-egplot-1.02a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20617
# category Package
# catalog-ctan /macros/latex/contrib/egplot
# catalog-date 2010-11-30 14:05:46 +0100
# catalog-license gpl
# catalog-version 1.02a
Name:		texlive-egplot
Version:	1.02a
Release:	7
Summary:	Encapsulate Gnuplot sources in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/egplot
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/egplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/egplot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/egplot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package to encapsulate gnuplot commands in a LaTeX source
file, so that a document's figures are maintained in parallel
with the document source itself.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/egplot/egplot.sty
%doc %{_texmfdistdir}/doc/latex/egplot/egplot.README
%doc %{_texmfdistdir}/doc/latex/egplot/egplot.pdf
%doc %{_texmfdistdir}/doc/latex/egplot/manual.ps.gz
#- source
%doc %{_texmfdistdir}/source/latex/egplot/egplot.drv
%doc %{_texmfdistdir}/source/latex/egplot/egplot.dtx
%doc %{_texmfdistdir}/source/latex/egplot/egplot.ins
%doc %{_texmfdistdir}/source/latex/egplot/egpman.drv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18218 |21mr|texlive-einfuehrung-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /info/examples/Einfuehrung
# catalog-date 2012-04-08 22:46:50 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-einfuehrung
Version:	20190228
Release:	1
Summary:	Examples from the book Einfuhrung in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/Einfuehrung
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/einfuehrung.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/einfuehrung.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The bundle consists of examples and data files for the DANTE-
Edition book "Einfuhrung in LaTeX".

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-01-1.ltxverb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-01-2.xltxverb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-01-3.luaverb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-03-1.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-03-2.ctx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-03-3.ctxcrop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-05-3.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-05-4.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-05-5.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-05-6.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-05-7.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-06-4.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-06-5.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-06-6.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-10.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-12.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-07-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-08-3.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-08-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-08-5.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-08-6.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/03-08-7.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-3.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-4.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-5.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-6.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-7.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-02-9.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-03-5.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-04-1.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/04-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-01-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-01-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-01-3.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-01-4.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-1.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-10.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-11.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-12.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-13.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-3.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-5.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-6.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-7.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-8.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-1.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-12.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-4.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-03-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-11.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-04-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-3.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-4.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-8.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-07-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-08-2.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-7.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-8.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-09-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-10-9.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-8.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-11-9.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-12-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-12-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-13-1.ltx1
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-13-2.ltx1
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-13-3.ltx1ps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-13-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-13-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-14-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-14-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-14-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-15-1.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-15-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-15-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-15-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/05-16-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-1.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-100.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-101.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-102.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-103.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-104.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-105.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-106.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-107.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-108.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-109.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-110.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-111.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-112.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-113.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-114.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-115.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-116.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-117.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-118.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-119.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-120.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-121.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-122.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-123.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-124.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-125.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-126.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-127.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-128.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-129.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-130.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-131.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-132.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-133.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-134.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-135.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-136.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-137.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-15.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-16.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-17.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-18.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-19.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-20.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-21.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-22.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-23.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-24.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-25.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-26.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-27.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-28.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-29.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-30.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-31.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-32.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-33.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-34.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-35.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-36.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-37.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-38.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-39.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-40.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-41.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-42.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-43.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-44.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-45.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-46.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-47.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-48.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-49.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-50.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-51.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-52.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-53.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-54.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-55.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-56.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-57.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-58.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-59.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-60.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-61.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-62.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-63.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-64.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-65.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-66.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-67.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-68.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-69.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-70.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-71.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-72.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-73.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-74.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-75.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-76.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-77.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-78.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-79.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-80.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-81.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-82.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-83.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-84.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-85.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-86.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-87.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-88.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-89.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-90.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-91.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-92.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-93.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-94.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-95.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-96.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-97.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-98.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/06-03-99.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-00-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-02-5.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-04-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/07-04-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-02-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-02-2.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-02-3.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-04-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-04-2.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-05-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-05-2.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-05-3.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-05-4.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-05-5.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-05-6.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-05-7.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-10.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-11.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-12.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-13.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-2.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-3.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-4.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-5.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-6.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-7.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-8.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-06-9.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-10.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-11.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-12.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-14.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-15.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-16.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-17.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-18.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-19.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-2.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-20.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-21.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-22.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-23.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-24.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-25.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-26.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-27.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-28.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-29.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-3.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-30.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-31.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-32.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-4.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-5.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-6.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-7.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-8.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-07-9.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-10.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-11.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-08-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-09-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-09-3.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/08-09-4.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-8.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-03-9.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-05-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-15.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-16.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-17.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-18.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-19.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-20.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-21.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-22.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-23.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-24.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-25.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-26.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-27.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-28.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-29.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-30.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-31.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-32.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-33.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-34.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-35.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-36.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-37.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-38.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-39.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-40.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-41.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-42.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-43.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-44.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-45.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-46.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-47.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-48.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-49.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-06-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-15.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-16.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-17.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-18.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-19.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-20.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-21.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-22.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-23.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-24.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-25.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-26.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-27.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-28.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-29.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-30.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-31.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-32.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-33.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-34.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-35.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-36.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-37.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-38.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-39.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-40.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-41.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-42.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-43.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-44.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-45.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-46.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-47.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-48.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-49.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-50.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-51.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-52.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-53.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-54.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-55.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-56.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-57.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-58.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-59.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-60.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-61.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-62.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-63.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-64.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-65.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-07-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-15.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-16.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-17.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-18.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-19.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-20.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-21.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-22.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-23.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-24.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-25.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-26.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-27.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-28.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-29.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-30.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-31.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-32.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-33.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-34.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-35.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-36.ltx4
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-37.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-38.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-39.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-40.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-41.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-42.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-43.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-44.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-45.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-46.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/09-08-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-01-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-01-3.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-05-1.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-05-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-05-3.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-05-4.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-06-1.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-10.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-11.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-12.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-13.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-15.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-16.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-17.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-18.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-19.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-20.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-21.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-22.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-23.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-24.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-25.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-26.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-27.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-28.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-29.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-3.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-30.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-31.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-32.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-7.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-07-9.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-10.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-2.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-3.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-5.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-6.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-7.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/10-08-9.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-15.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-16.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-17.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-18.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-19.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-20.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-21.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-22.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-23.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-05-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-06-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/11-07-1.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-1.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-10.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-11.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-12.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-13.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-2.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-3.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-4.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-5.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-6.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-7.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-8.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-01-9.xinl
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-1.sh
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-10.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-11.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-12.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-13.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-14.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-15.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-16.lualtx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-17.lualtx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-18.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-2.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-3.sh
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-4.sh
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-5.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-6.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-7.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-8.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/12-04-9.lualtx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-01-1.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-01-2.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-01-3.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-01-4.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-1.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-10.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-11.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-12.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-13.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-14.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-15.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-16.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-17.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-18.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-19.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-2.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-20.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-3.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-4.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-5.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-6.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-7.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-8.ltxbps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-02-9.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-1.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-10.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-11.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-2.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-3.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-4.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-5.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-6.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-7.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-8.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-03-9.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-04-1.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-04-2.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-05-1.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-05-2.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-05-3.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-05-4.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-06-1.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-06-2.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-07-1.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/13-07-2.ltxb
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-8.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-10.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-15.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-16.ltx2crop
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-03-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-04-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/14-05-1.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-1.mp3
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-10.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-11.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-12.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-13.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-14.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-15.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-16.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-17.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-18.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-19.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-2.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-20.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-21.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-22.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-23.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-24.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-25.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-26.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-27.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-28.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-29.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-30.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-31.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-32.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-33.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-34.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-35.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-36.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-37.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-38.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-39.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-4.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-40.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-41.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-42.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-43.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-44.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-45.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-46.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-47.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-48.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-49.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-5.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-50.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-51.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-52.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-53.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-54.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-55.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-56.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-57.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-58.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-59.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-6.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-60.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-61.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-62.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-63.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-64.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-65.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-66.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-67.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-68.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-69.mp2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-7.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-8.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-02-9.mp
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-1.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-10.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-11.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-12.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-13.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-14.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-15.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-16.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-17.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-18.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-19.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-2.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-20.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-21.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-22.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-23.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-24.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-25.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-26.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-27.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-28.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-29.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-3.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-30.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-31.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-32.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-33.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-34.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-35.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-36.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-37.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-38.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-39.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-4.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-40.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-41.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-42.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-43.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-44.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-45.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-46.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-47.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-48.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-49.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-5.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-50.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-51.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-6.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-7.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-8.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-03-9.ltxps
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-10.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-11.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-12.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-13.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-14.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-15.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-16.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-17.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-18.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-19.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-20.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-21.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-22.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-23.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-24.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-25.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-26.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-27.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-28.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-29.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-30.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-31.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-32.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-33.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-34.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-35.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-36.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-37.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-38.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-39.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-40.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-41.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-42.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-43.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-44.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-45.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-46.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-47.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-48.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-49.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-50.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-51.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-52.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-53.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-54.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-55.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-56.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-57.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-58.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-59.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-60.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-61.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-62.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-63.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-64.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-65.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-66.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-67.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-68.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-69.ltx4
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-7.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-70.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-71.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-72.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-73.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-74.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-75.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-76.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-77.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-78.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-79.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-8.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-80.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/15-04-9.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-04-1.ltx2
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-12-2.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-12-3.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-12-4.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-12-5.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/A-12-6.ltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/B.pdf
%doc %{_texmfdistdir}/doc/latex/einfuehrung/CTdefault.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/DEexa.sty
%doc %{_texmfdistdir}/doc/latex/einfuehrung/DEoptions.sty
%doc %{_texmfdistdir}/doc/latex/einfuehrung/Letter.ist
%doc %{_texmfdistdir}/doc/latex/einfuehrung/LetterC.ist
%doc %{_texmfdistdir}/doc/latex/einfuehrung/LoadFonts.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/README
%doc %{_texmfdistdir}/doc/latex/einfuehrung/UTF8.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/VerbatimOut.xltx
%doc %{_texmfdistdir}/doc/latex/einfuehrung/beispiel.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/biblatex-examples.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/bspcalweekly.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/bspdvdcoll.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/bspfont.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/bsppstricks.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/data0.csv
%doc %{_texmfdistdir}/doc/latex/einfuehrung/data1T.csv
%doc %{_texmfdistdir}/doc/latex/einfuehrung/de-examples-dw.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/demo.ist
%doc %{_texmfdistdir}/doc/latex/einfuehrung/demo11.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/demo4.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/demo5.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/demo6.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/demo7.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/doc_data.txt
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exa-fontconfig.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exaarticle.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exaarticle2.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exaartplain.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exabeamer.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exabook.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exabook2.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exadante.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exafoils.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exafubeamer.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exafupd.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/examargin.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/examemoir.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/examinimal-mathsymbols.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/examinimal.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/examples-dw.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/examples.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/examplesA.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/examplesB.bib
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exapd.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exaprosper.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exareport.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exaseminar.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exaslidenotes.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exasymbol.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/exaxetex.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/fontDemo-E.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/fontDemo.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/foo.lua
%doc %{_texmfdistdir}/doc/latex/einfuehrung/mpxerr.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/myModuleB.xdy
%doc %{_texmfdistdir}/doc/latex/einfuehrung/myModuleC.xdy
%doc %{_texmfdistdir}/doc/latex/einfuehrung/myModuleE.xdy
%doc %{_texmfdistdir}/doc/latex/einfuehrung/myModuleF.xdy
%doc %{_texmfdistdir}/doc/latex/einfuehrung/myModuleG.xdy
%doc %{_texmfdistdir}/doc/latex/einfuehrung/myModuleH.xdy
%doc %{_texmfdistdir}/doc/latex/einfuehrung/myModuleI.xdy
%doc %{_texmfdistdir}/doc/latex/einfuehrung/plainDemo.bst
%doc %{_texmfdistdir}/doc/latex/einfuehrung/preamble.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/screxa.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/screxabook.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/screxareport.cls
%doc %{_texmfdistdir}/doc/latex/einfuehrung/tab.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/tabelle1.tex
%doc %{_texmfdistdir}/doc/latex/einfuehrung/textdemo.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18219 |21mr|texlive-ejpecp-1.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ejpecp
Version:	1.7
Release:	1
Summary:	Class for EJP and ECP
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ejpecp
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ejpecp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ejpecp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ejpecp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is designed for typesetting articles for the
mathematical research periodicals Electronic Journal of
Probability (EJP) and Electronic Communications in Probability
(ECP).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ejpecp
%doc %{_texmfdistdir}/doc/latex/ejpecp
#- source
%doc %{_texmfdistdir}/source/latex/ejpecp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18220 |21mr|texlive-elbioimp-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21758
# category Package
# catalog-ctan /macros/latex/contrib/elbioimp
# catalog-date 2011-03-18 18:22:40 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-elbioimp
Version:	1.2
Release:	7
Summary:	A LaTeX document class for the Journal of Electrical Bioimpedance
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/elbioimp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elbioimp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elbioimp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elbioimp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A new document class for writing articles to the Journal of
Electrical Bioimpedance.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/elbioimp/elbioimp.cls
%doc %{_texmfdistdir}/doc/latex/elbioimp/Makefile
%doc %{_texmfdistdir}/doc/latex/elbioimp/README
%doc %{_texmfdistdir}/doc/latex/elbioimp/elbioimp-basis.tex
%doc %{_texmfdistdir}/doc/latex/elbioimp/elbioimp.pdf
%doc %{_texmfdistdir}/doc/latex/elbioimp/test-bib.bib
%doc %{_texmfdistdir}/doc/latex/elbioimp/test-ill.png
%doc %{_texmfdistdir}/doc/latex/elbioimp/test1.tex
#- source
%doc %{_texmfdistdir}/source/latex/elbioimp/elbioimp.dtx
%doc %{_texmfdistdir}/source/latex/elbioimp/elbioimp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18221 |21mr|texlive-eledform-1.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eledform
Version:	1.1a
Release:	2
Summary:	Define textual variants
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eledform
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eledform.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eledform.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eledform.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to formalize textual variants in
critical editions typeset using eledmac.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eledform
%doc %{_texmfdistdir}/doc/latex/eledform
#- source
%doc %{_texmfdistdir}/source/latex/eledform

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18222 |21mr|texlive-eledmac-1.24.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eledmac
Version:	1.24.12
Release:	2
Summary:	Typeset scholarly editions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eledmac
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eledmac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eledmac.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eledmac.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for typesetting scholarly critical editions,
replacing the established ledmac package. Ledmac itself was a
LaTeX port of the plain TeX EDMAC macros. The package supports
indexing by page and by line numbers, and simple tabular- and
array-style environments. The package is distributed with the
related eledpar package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eledmac
%doc %{_texmfdistdir}/doc/latex/eledmac
#- source
%doc %{_texmfdistdir}/source/latex/eledmac

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18223 |21mr|texlive-elegantbook-3.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-elegantbook
Version:	3.11
Release:	1
Summary:	An Elegant LaTeX Template for Books
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/elegantbook
LICENSE:	The LATEX Project Public License 1.3c
Source0:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/elegantbook.tar.xz
Source1:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/elegantbook.doc.tar.xz
BuildArch: noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
ElegantBook is designed for writing Books. This template is
based on the standard LaTeX book class. The goal of this
template is to make the writing process more elegant. Just
enjoy it!

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/elegantbook
%doc %{_texmfdistdir}/doc/latex/elegantbook

#-----------------------------------------------------------------------

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -r tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18224 |21mr|texlive-elegantnote-4.48-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 53550
# category Package
# catalog-ctan /macros/latex/contrib/mcf2graph
# catalog-date 2020-01-26
# catalog-license mit
# catalog-version 4.48
Name:		texlive-elegantnote
Version:	4.48
Release:	1
Summary:	Draw chemical structure diagrams with Metafont/MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mcf2graph
License:	MIT
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/elegantnote.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/elegantnote.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Molecular Coding Format (MCF) is a linear notation for
describing chemical structure diagrams. This package converts
MCF to graphic files using Metafont / MetaPost.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18225 |21mr|texlive-elegantpaper-0.08-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-elegantpaper
Version:	0.08
Release:	1
Summary:	Draw chemical structure diagrams with Metafont/MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/elegantpaper
License:	MIT
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/elegantpaper.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/elegantpaper.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Molecular Coding Format (MCF) is a linear notation for
describing chemical structure diagrams. This package converts
MCF to graphic files using Metafont / MetaPost.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18226 |21mr|texlive-elements-0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-elements
Version:	0.3
Release:	1
Summary:	Provides properties of chemical elements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/elements
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elements.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elements.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides means for retrieving properties of chemical elements
like atomic number, element symbol, element name, electron distribution or isotope number.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/*
%doc %{_texmfdistdir}/doc/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18227 |21mr|texlive-ellipse-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ellipse
Version:	20160624
Release:	1
Summary:	Draw ellipses and elliptical arcs using the standard LaTeX2e picture environment
Group:		Publishing
URL:		https://ctan.org/pkg/ellipse
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ellipse.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ellipse.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Draw ellipses and elliptical arcs using the standard LaTeX2e
picture environment


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18228 |21mr|texlive-ellipsis-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ellipsis
# catalog-date 2007-01-02 01:17:18 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-ellipsis
Version:	20190228
Release:	1
Summary:	Fix uneven spacing around ellipses in LaTeX text mode
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ellipsis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ellipsis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ellipsis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ellipsis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a simple package that fixes a problem in the way LaTeX
handles ellipses: it always puts a tiny bit more space after
\dots in text mode than before it, which results in the
ellipsis being off-center when used between two words.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ellipsis/ellipsis.sty
%doc %{_texmfdistdir}/doc/latex/ellipsis/README
%doc %{_texmfdistdir}/doc/latex/ellipsis/ellipsis.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ellipsis/ellipsis.dtx
%doc %{_texmfdistdir}/source/latex/ellipsis/ellipsis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18229 |21mr|texlive-elmath-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-elmath
Version:	1.2
Release:	2
Summary:	Mathematics in Greek texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/elmath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elmath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elmath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elmath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package has been designed to facilitate the use of Greek
letters in mathematical mode. The package allows one to
directly type in Greek letters (in ISO 8859-7 encoding) in math
mode.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/elmath/elmath.sty
%doc %{_texmfdistdir}/doc/latex/elmath/elmath.pdf
#- source
%doc %{_texmfdistdir}/source/latex/elmath/elmath.dtx
%doc %{_texmfdistdir}/source/latex/elmath/elmath.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18230 |21mr|texlive-elocalloc-20161215-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-elocalloc
Version:	20161215
Release:	1
Summary:	Local allocation macros for LaTeX 2015
Group:		Publishing
URL:		https://ctan.org/pkg/elocalloc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elocalloc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elocalloc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Local allocation macros, with names taken from etex.sty but
with implementation based on the LaTeX 2015 allocation macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18231 |21mr|texlive-elpres-0.4a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-elpres
Version:	0.4a
Release:	2
Summary:	A simple class for electronic presentations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/elpres
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elpres.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elpres.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Elpres is a simple class for electronic presentations to be
shown on screen or a beamer. Elpres is derived from article.cls
and may be used with LaTeX or pdfLaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/elpres
%doc %{_texmfdistdir}/doc/latex/elpres

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18232 |21mr|texlive-elsarticle-1.20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/elsarticle
# catalog-date 2009-09-18 14:01:48 +0200
# catalog-license lppl1.2
# catalog-version 1.20
Name:		texlive-elsarticle
Version:	1.20
Release:	7
Summary:	Class for articles for submission to Elsevier journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/elsarticle
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elsarticle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elsarticle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elsarticle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is for typeset journal articles, is accepted for
submitted articles, both in Elsevier's electronic submission
system and elsewhere. It replaces the 10-year-old class elsart.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/elsarticle/elsarticle-harv.bst
%{_texmfdistdir}/bibtex/bst/elsarticle/elsarticle-num-names.bst
%{_texmfdistdir}/bibtex/bst/elsarticle/elsarticle-num.bst
%{_texmfdistdir}/tex/latex/elsarticle/elsarticle.cls
%doc %{_texmfdistdir}/doc/latex/elsarticle/README
%doc %{_texmfdistdir}/doc/latex/elsarticle/els-1p.pdf
%doc %{_texmfdistdir}/doc/latex/elsarticle/els-3pd.pdf
%doc %{_texmfdistdir}/doc/latex/elsarticle/els1.pdf
%doc %{_texmfdistdir}/doc/latex/elsarticle/els2.pdf
%doc %{_texmfdistdir}/doc/latex/elsarticle/elsarticle-template-harv.tex
%doc %{_texmfdistdir}/doc/latex/elsarticle/elsarticle-template-num.tex
%doc %{_texmfdistdir}/doc/latex/elsarticle/elsdoc.pdf
%doc %{_texmfdistdir}/doc/latex/elsarticle/elsdoc.tex
%doc %{_texmfdistdir}/doc/latex/elsarticle/jfigs.pdf
%doc %{_texmfdistdir}/doc/latex/elsarticle/makefile
%doc %{_texmfdistdir}/doc/latex/elsarticle/manifest.txt
%doc %{_texmfdistdir}/doc/latex/elsarticle/pdfwidgets.sty
%doc %{_texmfdistdir}/doc/latex/elsarticle/rvdtx.sty
#- source
%doc %{_texmfdistdir}/source/latex/elsarticle/elsarticle.dtx
%doc %{_texmfdistdir}/source/latex/elsarticle/elsarticle.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18233 |21mr|texlive-elteikthesis-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22513
# category Package
# catalog-ctan /macros/latex/contrib/elteikthesis
# catalog-date 2011-05-17 17:52:56 +0200
# catalog-license lppl1.2
# catalog-version 1.2
Name:		texlive-elteikthesis
Version:	1.2
Release:	7
Summary:	Thesis class for ELTE University Informatics wing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/elteikthesis
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elteikthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elteikthesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/elteikthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is not an official University class, and has not been
approved by the University.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/elteikthesis/elteikthesis.cls
%doc %{_texmfdistdir}/doc/latex/elteikthesis/README
%doc %{_texmfdistdir}/doc/latex/elteikthesis/elteikthesis.pdf
%doc %{_texmfdistdir}/doc/latex/elteikthesis/example.pdf
%doc %{_texmfdistdir}/doc/latex/elteikthesis/example.tex
%doc %{_texmfdistdir}/doc/latex/elteikthesis/pics/eltecimerszines.eps
%doc %{_texmfdistdir}/doc/latex/elteikthesis/pics/eltecimerszines.jpg
#- source
%doc %{_texmfdistdir}/source/latex/elteikthesis/elteikthesis.dtx
%doc %{_texmfdistdir}/source/latex/elteikthesis/elteikthesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18234 |21mr|texlive-eltex-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/eltex
# catalog-date 2009-11-09 17:57:09 +0100
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-eltex
Version:	2.0
Release:	7
Summary:	Simple circuit diagrams in LaTeX picture mode
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eltex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eltex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eltex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The macros enable the user to draw simple circuit diagrams in
the picture environment, with no need of special resources. The
macros are appropriate for drawing for school materials. The
circuit symbols accord to the various parts of the standard IEC
617.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eltex/eltex1.tex
%{_texmfdistdir}/tex/latex/eltex/eltex2.tex
%{_texmfdistdir}/tex/latex/eltex/eltex3.tex
%{_texmfdistdir}/tex/latex/eltex/eltex4.tex
%{_texmfdistdir}/tex/latex/eltex/eltex5.tex
%{_texmfdistdir}/tex/latex/eltex/eltex6.tex
%{_texmfdistdir}/tex/latex/eltex/eltex7.tex
%doc %{_texmfdistdir}/doc/latex/eltex/README
%doc %{_texmfdistdir}/doc/latex/eltex/man_en.pdf
%doc %{_texmfdistdir}/doc/latex/eltex/man_en.tex
%doc %{_texmfdistdir}/doc/latex/eltex/pri_cz.pdf
%doc %{_texmfdistdir}/doc/latex/eltex/pri_cz.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18235 |21mr|texlive-emarks-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24504
# category Package
# catalog-ctan /macros/latex/contrib/emarks
# catalog-date 2011-11-03 08:30:49 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-emarks
Version:	1.0
Release:	7
Summary:	Named mark registers with e-TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/emarks
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emarks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emarks.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emarks.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
E-TeX provides 32 768 mark registers; using this facility is
far more comfortable than LaTeX tricks with \markright,
\markboth, \leftmark and \rightmark. The package provides two
commands for marking: \marksthe and \marksthecs, which have *
forms which disable expansion; new mark registers are allocated
as needed. Syntax is closely modelled on the \marks primitive.
Four commands are provided for retrieving the marks registers'
content: \thefirstmarks, \thebotmarks, thetopmarks and
\getthemarks; and the command \ifmarksequal is available for
comparing the content of marks registers. The package requires
an e-TeX-enabled engine, and the etex package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/emarks/emarks.sty
%doc %{_texmfdistdir}/doc/latex/emarks/Fingerprint.jpg
%doc %{_texmfdistdir}/doc/latex/emarks/README
%doc %{_texmfdistdir}/doc/latex/emarks/emarks-fingerprint.png
%doc %{_texmfdistdir}/doc/latex/emarks/emarks.pdf
#- source
%doc %{_texmfdistdir}/source/latex/emarks/emarks.drv
%doc %{_texmfdistdir}/source/latex/emarks/emarks.dtx
%doc %{_texmfdistdir}/source/latex/emarks/emarks.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18236 |21mr|texlive-embedall-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31903
# category Package
# catalog-ctan /macros/latex/contrib/embedall
# catalog-date 2013-10-14 16:22:06 +0200
# catalog-license lppl1.2
# catalog-version 1.0
Name:		texlive-embedall
Version:	1.0
Release:	10
Summary:	Embed source files into the generated PDF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/embedall
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/embedall.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/embedall.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/embedall.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of storing a project, without
losing anything. It uses the embedfile package to attach to the
generated PDF all files used in creating your project. In
particular, it can embed images, external TeX files, external
codes and.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/embedall/embedall.sty
%doc %{_texmfdistdir}/doc/latex/embedall/embedall.pdf
#- source
%doc %{_texmfdistdir}/source/latex/embedall/embedall.dtx
%doc %{_texmfdistdir}/source/latex/embedall/embedall.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18237 |21mr|texlive-embrac-0.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33920
# category Package
# catalog-ctan /macros/latex/contrib/embrac
# catalog-date 2014-05-08 14:35:28 +0200
# catalog-license lppl1.3
# catalog-version 0.5
Name:		texlive-embrac
Version:	0.7
Release:	3
Summary:	Upright brackets in emphasised text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/embrac
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/embrac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/embrac.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package redefines the commands \emph and \textit so that
parentheses and square brackets are typeset in an upright font
in their arguments. The package requires expl3 from the
l3kernel bundle, and xparse and l3keys2e from the l3packages
bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/embrac/embrac.sty
%doc %{_texmfdistdir}/doc/latex/embrac/README
%doc %{_texmfdistdir}/doc/latex/embrac/embrac_en.pdf
%doc %{_texmfdistdir}/doc/latex/embrac/embrac_en.tex
%doc %{_texmfdistdir}/doc/latex/embrac/embrac_kerning_test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18238 |21mr|texlive-emisa-20180224-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-emisa
Version:	20180224
Release:	1
Summary:	A LaTeX package for preparing manuscripts for the journal EMISA
Group:		Publishing
URL:		https://ctan.org/pkg/emisa
License:	LPPL1.3c
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/emisa.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/emisa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The EMISA LaTeX package is provided for preparing manuscripts for submission to EMISA 
(Enterprise Modelling and Information Systems Architectures), and for preparing accepted submissions 
for publication as well as for typesetting the final document by the editorial office. Articles in EMISA 
are published online at EMISA in the Portable Document Format (PDF).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18239 |21mr|texlive-emp-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23483
# category Package
# catalog-ctan /macros/latex/contrib/emp
# catalog-date 2011-08-07 01:10:30 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-emp
Version:	20190228
Release:	1
Summary:	"Encapsulate" MetaPost figures in a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/emp
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Emp is a package for encapsulating MetaPost figures in LaTeX:
the package provides environments where you can place MetaPost
commands, and means of using that code as fragments for
building up figures to include in your document. So, with emp,
the procedure is to run your document with LaTeX, run MetaPost,
and then complete running your document in the normal way. Emp
is therefore useful for keeping illustrations in synchrony with
the text. It also frees you from inventing descriptive names
for PostScript files that fit into the confines of file system
conventions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/emp/emp.sty
%doc %{_texmfdistdir}/doc/latex/emp/COPYING
%doc %{_texmfdistdir}/doc/latex/emp/Makefile
%doc %{_texmfdistdir}/doc/latex/emp/README
%doc %{_texmfdistdir}/doc/latex/emp/emp.pdf
%doc %{_texmfdistdir}/doc/latex/emp/empman.pdf
#- source
%doc %{_texmfdistdir}/source/latex/emp/emp.drv
%doc %{_texmfdistdir}/source/latex/emp/emp.dtx
%doc %{_texmfdistdir}/source/latex/emp/emp.ins
%doc %{_texmfdistdir}/source/latex/emp/empman.drv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18240 |21mr|texlive-emptypage-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18064
# category Package
# catalog-ctan /macros/latex/contrib/emptypage
# catalog-date 2010-04-30 19:49:05 +0200
# catalog-license lppl1.2
# catalog-version 1.2
Name:		texlive-emptypage
Version:	1.2
Release:	7
Summary:	Make empty pages really empty
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/emptypage
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emptypage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emptypage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emptypage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package prevents page numbers and headings from appearing
on empty pages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/emptypage/emptypage.sty
%doc %{_texmfdistdir}/doc/latex/emptypage/README
%doc %{_texmfdistdir}/doc/latex/emptypage/emptypage.pdf
#- source
%doc %{_texmfdistdir}/source/latex/emptypage/emptypage.dtx
%doc %{_texmfdistdir}/source/latex/emptypage/emptypage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18241 |21mr|texlive-emulateapj-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28469
# category Package
# catalog-ctan /macros/latex/contrib/emulateapj
# catalog-date 2012-12-05 13:33:41 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-emulateapj
Version:	20190228
Release:	1
Summary:	Produce output similar to that of APJ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/emulateapj
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emulateapj.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/emulateapj.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX class (based on current RevTeX) to produce preprints
with the page layout similar to that of the Astrophysical
Journal.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/emulateapj/emulateapj.cls
%doc %{_texmfdistdir}/doc/latex/emulateapj/README
%doc %{_texmfdistdir}/doc/latex/emulateapj/sample.pdf
%doc %{_texmfdistdir}/doc/latex/emulateapj/sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18242 |21mr|texlive-enctex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-enctex
Version:	20190228
Release:	1
Summary:	A TeX extension that translates input on its way into TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/enctex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enctex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enctex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
EncTeX is (another) tex extension, written at the change-file
level. It provides means of translating input on the way into
TeX. It allows, for example, translation of multibyte
sequences, such as utf-8 encoding.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/enctex
%doc %{_texmfdistdir}/doc/generic/enctex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18243 |21mr|texlive-endfloat-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24962
# category Package
# catalog-ctan /macros/latex/contrib/endfloat
# catalog-date 2011-12-24 01:13:38 +0100
# catalog-license gpl
# catalog-version 2.5c
Name:		texlive-endfloat
Version:	2.7
Release:	1
Summary:	Move floats to the end, leaving markers where they belong
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/endfloat
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endfloat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endfloat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Place all floats on pages by themselves at the end of the
document, optionally leaving markers like "[Figure 3 about
here]" in the text near to where the figure (or table) would
normally have occurred. Float types figure and table are
recognised by the package, unmodified. Since several packages
define other types of float, it is possible to register these
float types with endfloat.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/endfloat/efxmpl.cfg
%{_texmfdistdir}/tex/latex/endfloat/endfloat.sty
%doc %{_texmfdistdir}/doc/latex/endfloat/COPYING
%doc %{_texmfdistdir}/doc/latex/endfloat/README
%doc %{_texmfdistdir}/doc/latex/endfloat/endfloat.pdf
#- source
%doc %{_texmfdistdir}/source/latex/endfloat/endfloat.dtx
%doc %{_texmfdistdir}/source/latex/endfloat/endfloat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18244 |21mr|texlive-endheads-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-endheads
Epoch:		1
Version:	1.6
Release:	2
Summary:	Running headers of the form "Notes to pp.xx-yy"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/endheads
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endheads.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endheads.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endheads.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Endheads provides running headers of the form "Notes to pp. xx-
yy" for endnotes sections. It also enables one to reset the
endnotes counter, and put a line marking the chapter change in
the endnotes, at the beginning of every chapter. Endheads
requires the fancyhdr, needspace, ifthen, and endnotes
packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/endheads/endheads.sty
%doc %{_texmfdistdir}/doc/latex/endheads/endheads.pdf
%doc %{_texmfdistdir}/doc/latex/endheads/README.md
#- source
%doc %{_texmfdistdir}/source/latex/endheads/endheads.dtx
%doc %{_texmfdistdir}/source/latex/endheads/endheads.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18245 |21mr|texlive-endiagram-0.1d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30025
# category Package
# catalog-ctan /macros/latex/contrib/endiagram
# catalog-date 2013-04-05 11:53:55 +0200
# catalog-license lppl1.3
# catalog-version 0.1b
Name:		texlive-endiagram
Version:	0.1d
Release:	2
Summary:	Easy creation of potential energy curve diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/endiagram
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endiagram.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endiagram.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the facility of drawing potential energy
curve diagrams with just a few simple commands. The package
cannot (yet) be considered stable.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/endiagram/endiagram.sty
%doc %{_texmfdistdir}/doc/latex/endiagram/README
%doc %{_texmfdistdir}/doc/latex/endiagram/endiagram_en.pdf
%doc %{_texmfdistdir}/doc/latex/endiagram/endiagram_en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18246 |21mr|texlive-endnotes-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17197
# category Package
# catalog-ctan /macros/latex/contrib/endnotes
# catalog-date 2010-03-09 12:54:42 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-endnotes
Version:	20190228
Release:	1
Summary:	Place footnotes at the end
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/endnotes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endnotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/endnotes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Accumulates footnotes and places them at the end of the
document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/endnotes/endnotes.sty
%doc %{_texmfdistdir}/doc/latex/endnotes/endnotes.pdf
%doc %{_texmfdistdir}/doc/latex/endnotes/endnotes.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18247 |21mr|texlive-engpron-2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16558
# category Package
# catalog-ctan /macros/latex/contrib/engpron
# catalog-date 2008-08-16 17:33:04 +0200
# catalog-license lppl
# catalog-version 2
Name:		texlive-engpron
Version:	2
Release:	7
Summary:	Helps to type the pronunciation of English words
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/engpron
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/engpron.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/engpron.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/engpron.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides macros beginning with the '' character,
made active, which enable us to write the British or American
English pronunciation as one can find it in the 'English
Pronouncing Dictionary' by Daniel Jones. There is an option to
typeset the pronunciation in the style of Harrap's dictionary.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/engpron/engpron-tools.sty
%{_texmfdistdir}/tex/latex/engpron/engpron.sty
%doc %{_texmfdistdir}/doc/latex/engpron/LISEZMOI
%doc %{_texmfdistdir}/doc/latex/engpron/README
%doc %{_texmfdistdir}/doc/latex/engpron/engpron-en.ltx
%doc %{_texmfdistdir}/doc/latex/engpron/engpron-en.pdf
%doc %{_texmfdistdir}/doc/latex/engpron/engpron-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/engpron/engpron-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/engpron/engpron-ex-fr.pdf
%doc %{_texmfdistdir}/doc/latex/engpron/engpron-ex-fr.tex
%doc %{_texmfdistdir}/doc/latex/engpron/engpron-fr.ltx
%doc %{_texmfdistdir}/doc/latex/engpron/engpron-fr.pdf
%doc %{_texmfdistdir}/doc/latex/engpron/engpron.pdf
#- source
%doc %{_texmfdistdir}/source/latex/engpron/Makefile
%doc %{_texmfdistdir}/source/latex/engpron/engpron.dtx
%doc %{_texmfdistdir}/source/latex/engpron/engpron.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18248 |21mr|texlive-engrec-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/engrec
# catalog-date 2008-05-07 22:48:57 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-engrec
Version:	1.1
Release:	7
Summary:	Enumerate with lower- or uppercase Greek letters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/engrec
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/engrec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/engrec.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/engrec.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides two macros \engrec and \EnGrec to convert
number arguments to lower case or upper case greek letters.
They have the syntax of \alph, i.e. \engrec{a_counter},
\EnGrec{a_counter}. Options are provided to work with the
upgreek and fourier packages. Requires amstext.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/engrec/engrec.sty
%doc %{_texmfdistdir}/doc/latex/engrec/LISEZMOI
%doc %{_texmfdistdir}/doc/latex/engrec/README
%doc %{_texmfdistdir}/doc/latex/engrec/engrec.pdf
#- source
%doc %{_texmfdistdir}/source/latex/engrec/Makefile
%doc %{_texmfdistdir}/source/latex/engrec/engrec.dtx
%doc %{_texmfdistdir}/source/latex/engrec/engrec.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18249 |21mr|texlive-engtlc-3.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25432
# category Package
# catalog-ctan /macros/latex/contrib/engtlc
# catalog-date 2012-02-19 15:32:47 +0100
# catalog-license lppl
# catalog-version 3.2
Name:		texlive-engtlc
Version:	3.2
Release:	6
Summary:	Support for users in Telecommunications Engineering
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/engtlc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/engtlc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/engtlc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a wide range of abbreviations for terms
used in Telecommunications Engineering.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/engtlc/engtlc.sty
%doc %{_texmfdistdir}/doc/latex/engtlc/README
%doc %{_texmfdistdir}/doc/latex/engtlc/engtlc.pdf
%doc %{_texmfdistdir}/doc/latex/engtlc/engtlc.tex
%doc %{_texmfdistdir}/doc/latex/engtlc/itengtlc.pdf
%doc %{_texmfdistdir}/doc/latex/engtlc/itengtlc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18250 |21mr|texlive-enigma-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29802
# category Package
# catalog-ctan /macros/luatex/generic/enigma
# catalog-date 2013-04-09 15:55:17 +0200
# catalog-license bsd
# catalog-version 0.1
Name:		texlive-enigma
Version:	0.1
Release:	10
Summary:	Encrypt documents with a three rotor Enigma
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/enigma
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enigma.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enigma.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides historical encryption (Enigma cipher) for
LuaTeX-based formats.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/context/lua/third/enigma/mtx-t-enigma.lua/mtx-t-enigma.lua
%{_texmfdistdir}/tex/context/third/enigma/t-enigma.mkv/t-enigma.mkvi
%{_texmfdistdir}/tex/generic/enigma/enigma.lua
%{_texmfdistdir}/tex/latex/enigma/enigma.sty
%{_texmfdistdir}/tex/plain/enigma/enigma.tex
%doc %{_texmfdistdir}/doc/context/third/enigma/enigma/COPYING
%doc %{_texmfdistdir}/doc/context/third/enigma/enigma/README
%doc %{_texmfdistdir}/doc/context/third/enigma/enigma/enigma-doc.pdf
%doc %{_texmfdistdir}/doc/context/third/enigma/enigma/enigma_manual.tex
%doc %{_texmfdistdir}/doc/context/third/enigma/enigma/examples/enigma-example-context.tex
%doc %{_texmfdistdir}/doc/context/third/enigma/enigma/examples/enigma-example-latex.tex
%doc %{_texmfdistdir}/doc/context/third/enigma/enigma/examples/enigma-example-plain.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18251 |21mr|texlive-enotez-0.9a-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-enotez
Version:	0.9a
Release:	3
Summary:	Support for end-notes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/enotez
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enotez.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enotez.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows nested endnotes, supports hyperref and
provides means for easy customization of the list of notes. The
package requires the expl3 bundle and packages from the LaTeX 3
'package set'.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/enotez
%doc %{_texmfdistdir}/doc/latex/enotez

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18252 |21mr|texlive-enumitem-3.5.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24146
# category Package
# catalog-ctan /macros/latex/contrib/enumitem
# catalog-date 2011-09-28 17:37:11 +0200
# catalog-license lppl
# catalog-version 3.5.2
Name:		texlive-enumitem
Version:	3.5.2
Release:	7
Summary:	Control layout of itemize, enumerate, description
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enumitem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enumitem.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides user control over the layout of the three
basic list environments: enumerate, itemize and description. It
supersedes both enumerate and mdwlist (providing well-
structured replacements for all their funtionality), and in
addition provides functions to compute the layout of labels,
and to 'clone' the standard environments, to create new
environments with counters of their own.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/enumitem/enumitem.sty
%doc %{_texmfdistdir}/doc/latex/enumitem/README
%doc %{_texmfdistdir}/doc/latex/enumitem/enumitem.pdf
%doc %{_texmfdistdir}/doc/latex/enumitem/enumitem.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18253 |21mr|texlive-enumitem-zref-1.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21472
# category Package
# catalog-ctan /macros/latex/contrib/enumitem-zref
# catalog-date 2011-02-19 16:41:47 +0100
# catalog-license lppl1.3
# catalog-version 1.8
Name:		texlive-enumitem-zref
Version:	1.8
Release:	7
Summary:	Extended references to items for enumitem package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/enumitem-zref
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enumitem-zref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enumitem-zref.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/enumitem-zref.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a companion for the enumitem package; it makes
it possible to reference any item in lists formatted by
enumitem lists, viz., enumerated, itemize and description
lists, and any list defined (or customised) with \newlist or
\setlist. References may be typeset differently with
options/properties and even arbitrary text. With hyperref,
anchors are added for each item to enable hyperlinks within the
document or even to external documents. Three schemes are
provided to make reference names (including the standard \label
command).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/enumitem-zref/enumitem-zref.sty
%doc %{_texmfdistdir}/doc/latex/enumitem-zref/README
%doc %{_texmfdistdir}/doc/latex/enumitem-zref/enumitem-zexample.tex
%doc %{_texmfdistdir}/doc/latex/enumitem-zref/enumitem-zref.pdf
#- source
%doc %{_texmfdistdir}/source/latex/enumitem-zref/enumitem-zref.drv
%doc %{_texmfdistdir}/source/latex/enumitem-zref/enumitem-zref.dtx
%doc %{_texmfdistdir}/source/latex/enumitem-zref/enumitem-zref.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18254 |21mr|texlive-envbig-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/envbig
# catalog-date 2008-11-11 20:51:43 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-envbig
Version:	20190228
Release:	1
Summary:	Printing addresses on envelopes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/envbig
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/envbig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/envbig.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A simple package, that prints both 'from' and 'to' addresses.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/envbig/envbig.sty
%doc %{_texmfdistdir}/doc/latex/envbig/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18255 |21mr|texlive-environ-0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33821
# category Package
# catalog-ctan /macros/latex/contrib/environ
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-environ
Version:	0.3
Release:	11
Summary:	A new interface for environments in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/environ
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/environ.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/environ.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/environ.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the \collect@body command (as in amsmath),
as well as a \long version \Collect@Body, for collecting the
body text of an environment. These commands are used to define
a new author interface to creating new environments. For
example: \NewEnviron{test} wraps the entire environment body in
square brackets, doing the right thing in ignoring leading and
trailing spaces.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/environ/environ.sty
%doc %{_texmfdistdir}/doc/latex/environ/README
%doc %{_texmfdistdir}/doc/latex/environ/environ.pdf
#- source
%doc %{_texmfdistdir}/source/latex/environ/environ.dtx
%doc %{_texmfdistdir}/source/latex/environ/environ.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18256 |21mr|texlive-envlab-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/envlab
# catalog-date 2009-01-23 15:11:09 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-envlab
Version:	1.2
Release:	7
Summary:	Addresses on envelopes or mailing labels
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/envlab
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/envlab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/envlab.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/envlab.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for producing mailing envelopes and labels,
including barcodes and address formatting according to the US
Postal Service rules. Redefines the standard \makelabels
command of the LaTeX letter documentclass.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/envlab/envlab.cfg
%{_texmfdistdir}/tex/latex/envlab/envlab.sty
%doc %{_texmfdistdir}/doc/latex/envlab/elguide.pdf
%doc %{_texmfdistdir}/doc/latex/envlab/elguide.tex
%doc %{_texmfdistdir}/doc/latex/envlab/envlab.pdf
%doc %{_texmfdistdir}/doc/latex/envlab/readme.v12
#- source
%doc %{_texmfdistdir}/source/latex/envlab/elold.ins
%doc %{_texmfdistdir}/source/latex/envlab/envlab.drv
%doc %{_texmfdistdir}/source/latex/envlab/envlab.dtx
%doc %{_texmfdistdir}/source/latex/envlab/envlab.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18257 |21mr|texlive-epigraph-1.5c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/epigraph
# catalog-date 2009-09-02 18:09:14 +0200
# catalog-license lppl1.3
# catalog-version 1.5c
Name:		texlive-epigraph
Version:	1.5c
Release:	7
Summary:	A package for typesetting epigraphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/epigraph
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epigraph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epigraph.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epigraph.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Epigraphs are the pithy quotations often found at the start (or
end) of a chapter. Both single epigraphs and lists of epigraphs
are catered for. Various aspects are easily configurable.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/epigraph/epigraph.sty
%doc %{_texmfdistdir}/doc/latex/epigraph/README
%doc %{_texmfdistdir}/doc/latex/epigraph/epigraph.pdf
#- source
%doc %{_texmfdistdir}/source/latex/epigraph/epigraph.dtx
%doc %{_texmfdistdir}/source/latex/epigraph/epigraph.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18258 |21mr|texlive-epiolmec-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/epiolmec
# catalog-date 2007-02-06 22:00:42 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-epiolmec
Version:	20190228
Release:	1
Summary:	Typesetting the Epi-Olmec Language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/epiolmec
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epiolmec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epiolmec.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epiolmec.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains all the necessary files to typeset Epi-
Olmec ``documents'', a script used in Southern Middle America
until about 500 AD.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/epiolmec/epiolmec.map
%{_texmfdistdir}/fonts/tfm/public/epiolmec/EpiOlmec.tfm
%{_texmfdistdir}/fonts/type1/public/epiolmec/Epi-Olmec.pfb
%{_texmfdistdir}/tex/latex/epiolmec/epiolmec.sty
%doc %{_texmfdistdir}/doc/latex/epiolmec/GlyphAccessCommands.pdf
#- source
%doc %{_texmfdistdir}/source/latex/epiolmec/epiolmec.dtx
%doc %{_texmfdistdir}/source/latex/epiolmec/epiolmec.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18259 |21mr|texlive-eplain-3.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eplain
Version:	3.8
Release:	3
Summary:	Extended plain tex macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/eplain
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eplain.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eplain.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eplain.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-pdftex
Requires:	texlive-eplain.bin

%description
A powerfully extended version of the plain format, adding
support for bibliographies, tables of contents, enumerated
lists, verbatim input of files, numbered equations, tables,
two-column output, footnotes, hyperlinks in PDF output and
commutative diagrams. Eplain can also load some of the more
useful LaTeX packages, notably graphics, graphicx, color,
autopict (a package instance of the LaTeX picture code),
psfrag, and url.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/eplain
%_texmf_fmtutil_d/eplain
%doc %{_texmfdistdir}/doc/eplain
%doc %{_infodir}/eplain.info*
%doc %{_mandir}/man1/eplain.1*
%doc %{_texmfdistdir}/doc/man/man1/eplain.man1.pdf
#- source
%doc %{_texmfdistdir}/source/eplain

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/eplain <<EOF
#
# from eplain:
eplain pdftex language.dat -translate-file=cp227.tcx *eplain.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18260 |21mr|texlive-epsf-2.7.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21461
# category Package
# catalog-ctan /macros/generic/epsf
# catalog-date 2011-02-18 10:32:12 +0100
# catalog-license pd
# catalog-version 2.7.4
Name:		texlive-epsf
Version:	2.7.4
Release:	7
Summary:	Simple macros for EPS inclusion
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/epsf
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The original graphics inclusion macros for use with dvips;
still widely used by Plain TeX users (in particular). For LaTeX
users, the package is nowadays deprecated in favour of the more
sophisticated standard LaTeX graphics bundle of packages (which
are also available to Plain TeX users, either via its Plain TeX
version, or through the support offered by etex).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/epsf/epsf.sty
%{_texmfdistdir}/tex/generic/epsf/epsf.tex
%doc %{_texmfdistdir}/doc/generic/epsf/LICENSE
%doc %{_texmfdistdir}/doc/generic/epsf/Makefile
%doc %{_texmfdistdir}/doc/generic/epsf/README
%doc %{_texmfdistdir}/doc/generic/epsf/bboxgrid.ps
%doc %{_texmfdistdir}/doc/generic/epsf/epsf-doc.pdf
%doc %{_texmfdistdir}/doc/generic/epsf/epsf-doc.tex
%doc %{_texmfdistdir}/doc/generic/epsf/fndbadps
%doc %{_texmfdistdir}/doc/generic/epsf/okay/teps.eps
%doc %{_texmfdistdir}/doc/generic/epsf/okay/tepsf.eps
%doc %{_texmfdistdir}/doc/generic/epsf/okay/tepsf1.dvi
%doc %{_texmfdistdir}/doc/generic/epsf/okay/tepsf2.dvi
%doc %{_texmfdistdir}/doc/generic/epsf/okay/tepsf3.dvi
%doc %{_texmfdistdir}/doc/generic/epsf/teps.eps
%doc %{_texmfdistdir}/doc/generic/epsf/tepsf.eps
%doc %{_texmfdistdir}/doc/generic/epsf/tepsf1.tex
%doc %{_texmfdistdir}/doc/generic/epsf/tepsf2.ltx
%doc %{_texmfdistdir}/doc/generic/epsf/tepsf3.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18261 |21mr|texlive-epsincl-0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/epsincl
# catalog-date 2012-07-10 22:47:12 +0200
# catalog-license pd
# catalog-version 0.2
Name:		texlive-epsincl
Version:	0.2
Release:	12
Summary:	Include EPS in MetaPost figures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/epsincl
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsincl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epsincl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package facilitates including EPS files in MetaPost
figures; it makes use of (G)AWK.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/epsincl/epsincl.mp
%doc %{_texmfdistdir}/doc/metapost/epsincl/0info.txt
%doc %{_texmfdistdir}/doc/metapost/epsincl/README
%doc %{_texmfdistdir}/doc/metapost/epsincl/epsincl.awk
%doc %{_texmfdistdir}/doc/metapost/epsincl/epsincl.bat
%doc %{_texmfdistdir}/doc/metapost/epsincl/testinc0.eps
%doc %{_texmfdistdir}/doc/metapost/epsincl/testincl.bat
%doc %{_texmfdistdir}/doc/metapost/epsincl/testincl.mp
%doc %{_texmfdistdir}/doc/metapost/epsincl/testincl.sh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18262 |21mr|texlive-epslatex-fr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /info/epslatex/french
# catalog-date 2007-02-08 01:16:19 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-epslatex-fr
Version:	20190228
Release:	1
Summary:	French version of "graphics in LaTeX"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/epslatex/french
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epslatex-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epslatex-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is the French translation of epslatex, and describes how
to use imported graphics in LaTeX(2e) documents.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/Ball.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/CHAP2.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/Construction.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/Franc-chap.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/README
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/Warning.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/alltex.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/auteurs.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/bases.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/block.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/box1.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/box2.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/boxes.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/btxdoc.bib
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/cm.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/cm.ps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/danger.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/divers.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/ebnf.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/export.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/fepslatex.pdf
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/fepslatex.tex
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/fill.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/fmparhack.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/foot.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/fr.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/franc.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/frnew.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/g_toc_entry.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/graphic.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/hands.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/header.tex
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/indentondemand.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/makecmds.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/makerobust.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/mass.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/mypatches.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/myvarioref.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/nrfoot.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/origin.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/overlay.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/pale.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/pend.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/pretzel.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/pretzel.ps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/rdanger.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/rosette.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/rosette.ps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/sgte.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/smaller.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/square.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/topcapt.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/topfig.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/warn.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/wdesc.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/whitecdp.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/wide.eps
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/widecenter.sty
%doc %{_texmfdistdir}/doc/latex/epslatex-fr/xb.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18263 |21mr|texlive-epspdf-0.6.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-epspdf
Version:	0.6.4
Release:	1
Summary:	Converter for PostScript, EPS and PDF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/epspdf
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epspdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epspdf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-epspdf.bin = %{EVRD}

%description
Epspdf[tk] is a TeXlua script which converts between PostScript
or EPS and PDF. It has both a command-line and a GUI interface.
Using pdftops (from the xpdf command-line utilities) for round-
tripping opens up several new possibilities compared to older
similarly-named utilities.

#-----------------------------------------------------------------------
%files
%{_bindir}/epspdf
%{_bindir}/epspdftk
%{_texmfdistdir}/scripts/epspdf
%doc %{_infodir}/epspdf.info*
%doc %{_texmfdistdir}/doc/support/epspdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/epspdf/epspdf.tlu epspdf
    ln -sf %{_texmfdistdir}/scripts/epspdf/epspdftk.tcl epspdftk
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18264 |21mr|texlive-epspdfconversion-0.61-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18703
# category Package
# catalog-ctan /macros/latex/contrib/epspdfconversion
# catalog-date 2010-06-02 10:36:47 +0200
# catalog-license lppl
# catalog-version 0.61
Name:		texlive-epspdfconversion
Version:	0.61
Release:	7
Summary:	On-the-fly conversion of EPS to PDF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/epspdfconversion
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epspdfconversion.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epspdfconversion.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package calls the epstopdf package to convert EPS graphics
to PDF, on the fly. It servs as a vehicle for passing
conversion options (such as grayscale, prepress or pdfversion)
to the epspdf converter.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/epspdfconversion/epspdfconversion.sty
%doc %{_texmfdistdir}/doc/latex/epspdfconversion/README
%doc %{_texmfdistdir}/doc/latex/epspdfconversion/epspdfconversion.pdf
%doc %{_texmfdistdir}/doc/latex/epspdfconversion/example/epspdfconversion_docu.tex
%doc %{_texmfdistdir}/doc/latex/epspdfconversion/example/image.eps
%doc %{_texmfdistdir}/doc/latex/epspdfconversion/example/image2.eps
%doc %{_texmfdistdir}/doc/latex/epspdfconversion/example/optionstable.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18265 |21mr|texlive-epstopdf-20220610-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-epstopdf
Epoch:		1
Version:	20220610
Release:	1
Summary:	Convert EPS to 'encapsulated' PDF using GhostScript
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/epstopdf
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epstopdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epstopdf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-latexconfig
Provides:	texlive-epstopdf.bin = %{EVRD}

%description
Epstopdf is a Perl script that converts an EPS file to an
'encapsulated' PDF file (a single page file whose media box is
the same as the original EPS's bounding box). The resulting
file suitable for inclusion by PDFTeX as an image. The script
is adapted to run both on Windows and on Unix-alike systems.
The script makes use of Ghostscript for the actual conversion
to PDF. It assumes Ghostscript version 6.51 or later, and (by
default) suppresses its automatic rotation of pages where most
of the text is not horizontal. LaTeX users may make use of the
epstopdf package, which will run the epstopdf script "on the
fly", thus giving the illusion that PDFLaTeX is accepting EPS
graphic files.

#-----------------------------------------------------------------------
%files
%{_bindir}/epstopdf
%{_bindir}/repstopdf
%{_texmfdistdir}/scripts/epstopdf
%doc %{_mandir}/man1/epstopdf.1*
%doc %{_texmfdistdir}/doc/man/man1/epstopdf.man1.pdf
%doc %{_mandir}/man1/repstopdf.1*
%doc %{_texmfdistdir}/doc/man/man1/repstopdf.man1.pdf
%doc %{_texmfdistdir}/doc/support/epstopdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/epstopdf/epstopdf.pl epstopdf
    ln -sf epstopdf repstopdf
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18266 |21mr|texlive-epstopdf-pkg-20200126-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-epstopdf-pkg
Epoch:		1
Version:	20200126
Release:	1
Summary:	Convert EPS to 'encapsulated' PDF using GhostScript
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/epstopdf-pkg
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epstopdf-pkg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/epstopdf-pkg.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package adds support for EPS files in the graphicx package when running under pdfTeX.
If an EPS graphic is detected, the package spawns a process to convert the EPS to PDF,
using the script epstopdf. This of course requires that shell escape is enabled for the pdfTeX run.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/doc
%{_texmfdistdir}/tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18267 |21mr|texlive-eqell-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22931
# category Package
# catalog-ctan /macros/latex/contrib/eqell
# catalog-date 2011-05-29 19:51:14 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-eqell
Version:	20190228
Release:	1
Summary:	Sympathetically spaced ellipsis after punctuation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eqell
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqell.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqell.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands that give a well-spaced ellipsis
after !, ?, !? or ?!.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eqell/eqell.sty
%doc %{_texmfdistdir}/doc/latex/eqell/README
%doc %{_texmfdistdir}/doc/latex/eqell/eqell.pdf
%doc %{_texmfdistdir}/doc/latex/eqell/eqell.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18268 |21mr|texlive-eqlist-2.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32257
# category Package
# catalog-ctan /macros/latex/contrib/eqlist
# catalog-date 2012-01-23 15:27:59 +0100
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-eqlist
Version:	2.1
Release:	12
Summary:	Description lists with equal indentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eqlist
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqlist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqlist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqlist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a list environment which sets a
description-like list in which the indentation corresponds to
the longest item of the list.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eqlist/eqlist.sty
%doc %{_texmfdistdir}/doc/latex/eqlist/README
%doc %{_texmfdistdir}/doc/latex/eqlist/eqlist.pdf
%doc %{_texmfdistdir}/doc/latex/eqlist/eqlist.tex
#- source
%doc %{_texmfdistdir}/source/latex/eqlist/eqlist.dtx
%doc %{_texmfdistdir}/source/latex/eqlist/eqlist.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18269 |21mr|texlive-eqnalign-20170222-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eqnalign
Version:	20170222
Release:	2
Summary:	Make eqnarray behave like align
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eqnalign
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnalign.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnalign.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqnalign.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes eqnarray environment behave like align from
amsmath'. It is intended for quick-fixing documents that use
eqnarray. In cases where it fails, manual conversion to align
is required, but these cases should be seldom.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%doc %{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18270 |21mr|texlive-eqname-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20678
# category Package
# catalog-ctan /macros/latex/contrib/gene/eqname/eqname.sty
# catalog-date 2010-12-04 00:54:21 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-eqname
Version:	20190228
Release:	1
Summary:	Name tags for equations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gene/eqname/eqname.sty
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqname.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The \eqname command provides a name tag for the current
equation, in place of an equation number. The name tag will be
picked up by a subsequent \label command.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eqname/eqname.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18271 |21mr|texlive-eqparbox-4.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29419
# category Package
# catalog-ctan /macros/latex/contrib/eqparbox
# catalog-date 2013-03-17 00:02:27 +0100
# catalog-license lppl1.3
# catalog-version 4.0
Name:		texlive-eqparbox
Version:	4.1
Release:	11
Summary:	Create equal-widthed parboxes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eqparbox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqparbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqparbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eqparbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX users sometimes need to ensure that two or more blocks of
text occupy the same amount of horizontal space on the page. To
that end, the eqparbox package defines a new command,
\eqparbox, which works just like \parbox, except that instead
of specifying a width, one specifies a tag. All eqparboxes with
the same tag--regardless of where they are in the document--
will stretch to fit the widest eqparbox with that tag. This
simple, equal-width mechanism can be used for a variety of
alignment purposes, as is evidenced by the examples in
eqparbox's documentation. Various derivatives of \eqparbox are
also provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eqparbox/eqparbox.sty
%doc %{_texmfdistdir}/doc/latex/eqparbox/README
%doc %{_texmfdistdir}/doc/latex/eqparbox/eqparbox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/eqparbox/eqparbox.dtx
%doc %{_texmfdistdir}/source/latex/eqparbox/eqparbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18272 |21mr|texlive-erdc-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/erdc
# catalog-date 2009-11-09 22:14:03 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-erdc
Version:	1.1
Release:	7
Summary:	Style for Reports by US Army Corps of Engineers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/erdc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/erdc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/erdc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/erdc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class for typesetting Technical Information Reports of the
Engineer Research and Development Center, US Army Corps of
Engineers. The class was commissioned and paid for by US Army
Corps of Engineers, Engineer Research and Development Center,
3909 Halls Ferry Road, Vicksburg, MS 39180-6199.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/erdc/erdc.cls
%doc %{_texmfdistdir}/doc/latex/erdc/README
%doc %{_texmfdistdir}/doc/latex/erdc/erdc.bib
%doc %{_texmfdistdir}/doc/latex/erdc/erdc.pdf
%doc %{_texmfdistdir}/doc/latex/erdc/nola.eps
%doc %{_texmfdistdir}/doc/latex/erdc/nola.pdf
%doc %{_texmfdistdir}/doc/latex/erdc/red_corps_castle2.eps
%doc %{_texmfdistdir}/doc/latex/erdc/red_corps_castle2.pdf
%doc %{_texmfdistdir}/doc/latex/erdc/sample.pdf
%doc %{_texmfdistdir}/doc/latex/erdc/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/erdc/Makefile
%doc %{_texmfdistdir}/source/latex/erdc/erdc.dtx
%doc %{_texmfdistdir}/source/latex/erdc/erdc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18273 |21mr|texlive-errata-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-errata
Version:	0.3
Release:	2
Summary:	Error markup for LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/errata
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/errata.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/errata.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/errata.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a simple infrastructure for recording
errata in LaTeX documents. This allows the user to maintain an
updated version of the document (with all errors corrected) and
to automatically generate an errata document highlighting the
difference to the published version.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/errata/errata.sty
%doc %{_texmfdistdir}/doc/latex/errata/README
%doc %{_texmfdistdir}/doc/latex/errata/errata-errata.tex
%doc %{_texmfdistdir}/doc/latex/errata/errata.pdf
#- source
%doc %{_texmfdistdir}/source/latex/errata/errata.dtx
%doc %{_texmfdistdir}/source/latex/errata/errata.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18274 |21mr|texlive-erw-l3-0.1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-erw-l3
Version:	0.1.6
Release:	2
Summary:	Utilities built around expl3
Group:		Publishing
URL:		https://ctan.org/pkg/erw-l3
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/erw-l3.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/erw-l3.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	erw-l3 = %{EVRD}

%description
Features: compose: compose control sequences, whether
predefined or inline csutil: narrow purpose control sequences
(backend to other packages) numbrdcs: numbered control
sequences built from other control sequences or inline


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18275 |21mr|texlive-esami-2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-esami
Version:	2.5
Release:	2
Summary:	Typeset exams with scrambled questions and answers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/esami
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esami.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esami.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to typeset exams with multiple
choice, open questions and many other types of exercise. Both
questions and answers may be randomly distributed within the
exam, and the solutions are typeset automatically. Exercises
may contain a wide number of random parameters and it is
possible to do arithmetical operations on them. The package is
localised in Italian, English, French, German, Greek and
Spanish.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/esami
%doc %{_texmfdistdir}/doc/latex/esami

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18276 |21mr|texlive-esdiff-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21385
# category Package
# catalog-ctan /macros/latex/contrib/esdiff
# catalog-date 2011-02-13 18:31:54 +0100
# catalog-license lppl1
# catalog-version 1.2
Name:		texlive-esdiff
Version:	1.2
Release:	7
Summary:	Simplify typesetting of derivatives
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/esdiff
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esdiff.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esdiff.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esdiff.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes writing derivatives very easy. It offers
macros for derivatives, partial derivatives and multiple
derivatives, and allows specification of the point at which the
value is calculated. Some typographic alternatives may be
selected by package options.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/esdiff/esdiff.sty
%doc %{_texmfdistdir}/doc/latex/esdiff/README
%doc %{_texmfdistdir}/doc/latex/esdiff/esdiff.pdf
#- source
%doc %{_texmfdistdir}/source/latex/esdiff/esdiff.dtx
%doc %{_texmfdistdir}/source/latex/esdiff/esdiff.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18277 |21mr|texlive-ESIEEcv-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ESIEEcv
Version:	20190228
Release:	1
Summary:	Curriculum vitae for French use
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ESIEEcv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ESIEEcv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ESIEEcv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ESIEEcv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to set up a curriculum vitae as a
French employer will expect.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ESIEEcv/ESIEEcv.sty
%doc %{_texmfdistdir}/doc/latex/ESIEEcv/ESIEEcv.pdf
%doc %{_texmfdistdir}/doc/latex/ESIEEcv/cvtest.pdf
%doc %{_texmfdistdir}/doc/latex/ESIEEcv/cvtest.tex
#- source
%doc %{_texmfdistdir}/source/latex/ESIEEcv/ESIEEcv.dtx
%doc %{_texmfdistdir}/source/latex/ESIEEcv/ESIEEcv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18278 |21mr|texlive-esint-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/esint
# catalog-date 2006-10-27 00:09:51 +0200
# catalog-license pd
# catalog-version 1.1
Name:		texlive-esint
Version:	1.1
Release:	7
Summary:	Extended set of integrals for Computer Modern
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/esint
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esint.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esint.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The esint package permits access to alternate integral symbols
when you're using the Computer Modern fonts. In the original
set, several integral symbols are missing, such as \oiint. Many
of these symbols are available in other font sets (pxfonts,
txfonts, etc.), but there is no good solution if you want to
use Computer Modern. The package provides Metafont source and
LaTeX macro support.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/esint/bigint.mf
%{_texmfdistdir}/fonts/source/public/esint/esint10.mf
%{_texmfdistdir}/fonts/source/public/esint/mathint.mf
%{_texmfdistdir}/fonts/tfm/public/esint/esint10.tfm
%{_texmfdistdir}/tex/latex/esint/esint.sty
%{_texmfdistdir}/tex/latex/esint/uesint.fd
%doc %{_texmfdistdir}/doc/latex/esint/README
%doc %{_texmfdistdir}/doc/latex/esint/esint.pdf
#- source
%doc %{_texmfdistdir}/source/latex/esint/esint.dtx
%doc %{_texmfdistdir}/source/latex/esint/esint.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18279 |21mr|texlive-esint-type1-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-esint-type1
Version:	20190228
Release:	1
Summary:	Font esint10 in Type 1 format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ps-type1/esint
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esint-type1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esint-type1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-esint

%description
This is Eddie Saudrais's font esint10 in Adobe Type 1 format.
The Adobe Type 1 implementation was generated from the original
MetaFont using mftrace. This distribution does not contain the
TFM files that are necessary to use the fonts with TeX; the TFM
files can be generated from the Metafont sources obtained by
following the instructions in the normal way.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/esint-type1/config.esint
%{_texmfdistdir}/fonts/map/dvips/esint-type1/esint.map
%{_texmfdistdir}/fonts/type1/public/esint-type1/esint10.pfb
%{_texmfdistdir}/tex/plain/esint-type1/esint.tex
%doc %{_texmfdistdir}/doc/fonts/esint-type1/README
%doc %{_texmfdistdir}/doc/fonts/esint-type1/README.plainTeX
%doc %{_texmfdistdir}/doc/fonts/esint-type1/table.pdf
%doc %{_texmfdistdir}/doc/fonts/esint-type1/table.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18280 |21mr|texlive-esk-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18115
# category Package
# catalog-ctan /macros/latex/contrib/esk
# catalog-date 2010-05-11 12:36:30 +0200
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-esk
Version:	1.0
Release:	7
Summary:	Package to encapsulate Sketch files in LaTeX sources
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/esk
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esk.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/esk.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The ESK package allows to encapsulate Sketch files in LaTeX
sources. This is very useful for keeping illustrations in sync
with the text. It also frees the user from inventing
descriptive names for new files that fit into the confines of
file system conventions. Sketch is a 3D scene description
language by Eugene K. Ressler and can generate TikZ and
PSTricks code. ESK behaves in a similar fashion to EMP (which
encapsulates Metapost files), and was in fact developed from
it.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/esk/esk.sty
%doc %{_texmfdistdir}/doc/latex/esk/COPYING
%doc %{_texmfdistdir}/doc/latex/esk/README
%doc %{_texmfdistdir}/doc/latex/esk/esk.pdf
%doc %{_texmfdistdir}/doc/latex/esk/eskman.pdf
#- source
%doc %{_texmfdistdir}/source/latex/esk/Makefile
%doc %{_texmfdistdir}/source/latex/esk/esk.drv
%doc %{_texmfdistdir}/source/latex/esk/esk.dtx
%doc %{_texmfdistdir}/source/latex/esk/esk.ins
%doc %{_texmfdistdir}/source/latex/esk/eskman.drv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18281 |21mr|texlive-eskd-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eskd
Version:	20190228
Release:	1
Summary:	Modern Russian typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eskd
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eskd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eskd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eskd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class offers modern Russian text formatting, in accordance
with accepted design standards. Fonts not (apparently)
available on CTAN are required for use of the class.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eskd/eskd.cls
%doc %{_texmfdistdir}/doc/latex/eskd/README
%doc %{_texmfdistdir}/doc/latex/eskd/eskd.pdf
%doc %{_texmfdistdir}/doc/latex/eskd/example.eps
%doc %{_texmfdistdir}/doc/latex/eskd/example.tex
#- source
%doc %{_texmfdistdir}/source/latex/eskd/eskd.dtx
%doc %{_texmfdistdir}/source/latex/eskd/eskd.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18282 |21mr|texlive-eskdx-0.98-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22465
# category Package
# catalog-ctan /macros/latex/contrib/eskdx
# catalog-date 2011-05-13 21:22:08 +0200
# catalog-license lppl1.3
# catalog-version 0.98
Name:		texlive-eskdx
Version:	0.98
Release:	7
Summary:	Modern Russian typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eskdx
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eskdx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eskdx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Eskdx is a collection of LaTeX classes and packages to typeset
textual and graphical documents in accordance with Russian (and
probably post USSR) standards for designers.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eskdx/eskdafterpkg.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdappsheet.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdbiblist.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdcap.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdchngsheet.sty
%{_texmfdistdir}/tex/latex/eskdx/eskddstu.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdexplan.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdfont.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdfootnote.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdfreesize.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdgraph.cls
%{_texmfdistdir}/tex/latex/eskdx/eskdhash.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdindent.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdinfo.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdlang.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdlist.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdpara.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdplain.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdrussian.def
%{_texmfdistdir}/tex/latex/eskdx/eskdsect.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdspec.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdspecii.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdstamp.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdtab.cls
%{_texmfdistdir}/tex/latex/eskdx/eskdtext.cls
%{_texmfdistdir}/tex/latex/eskdx/eskdtitle.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdtitlebase.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdtotal.sty
%{_texmfdistdir}/tex/latex/eskdx/eskdukrainian.def
%doc %{_texmfdistdir}/doc/latex/eskdx/ChangeLog
%doc %{_texmfdistdir}/doc/latex/eskdx/Makefile
%doc %{_texmfdistdir}/doc/latex/eskdx/Makefile.unpacked
%doc %{_texmfdistdir}/doc/latex/eskdx/NEWS
%doc %{_texmfdistdir}/doc/latex/eskdx/NEWS.in
%doc %{_texmfdistdir}/doc/latex/eskdx/README
%doc %{_texmfdistdir}/doc/latex/eskdx/README.in
%doc %{_texmfdistdir}/doc/latex/eskdx/include.m4
%doc %{_texmfdistdir}/doc/latex/eskdx/include.mak
%doc %{_texmfdistdir}/doc/latex/eskdx/manifest.txt
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/Makefile
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/eskdx.pdf
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/eskdx.tex.in
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/example.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/img-form1.svg
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/img-form2.svg
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/img-form2a.svg
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/img-title.svg
%doc %{_texmfdistdir}/doc/latex/eskdx/manual/latex2html-init
%doc %{_texmfdistdir}/doc/latex/eskdx/source/Makefile
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdafterpkg.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdappsheet.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdbiblist.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdcap.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdchngsheet.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskddstu.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdexplan.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdfont.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdfootnote.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdfreesize.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdgraph.cls.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdhash.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdindent.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdinfo.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdlang.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdlist.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdpara.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdplain.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdrussian.def.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdsect.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdspec.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdspecii.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdstamp.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdtab.cls.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdtext.cls.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdtitle.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdtitlebase.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdtotal.sty.in
%doc %{_texmfdistdir}/doc/latex/eskdx/source/eskdukrainian.def.in
%doc %{_texmfdistdir}/doc/latex/eskdx/test/Makefile
%doc %{_texmfdistdir}/doc/latex/eskdx/test/appsheet.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/drawing-a2.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/drawing-a3-mp.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/drawing-a3-p.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/drawing-a3.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/drawing-a4.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/footnote.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/freesizesheets.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/general.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/general2.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/numbering.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/pagestyle.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/spec.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/specii.tex
%doc %{_texmfdistdir}/doc/latex/eskdx/test/twoside.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18283 |21mr|texlive-eso-pic-2.0h-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eso-pic
Version:	2.0h
Release:	2
Summary:	Add picture commands (or backgrounds) to every page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eso-pic
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eso-pic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eso-pic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eso-pic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package adds one or more user commands to LaTeX's shipout
routine, which may be used to place the output at fixed
positions. The grid option may be used to find the correct
places.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eso-pic
%doc %{_texmfdistdir}/doc/latex/eso-pic
#- source
%doc %{_texmfdistdir}/source/latex/eso-pic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18284 |21mr|texlive-estcpmm-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17335
# category Package
# catalog-ctan /macros/latex/contrib/estcpmm
# catalog-date 2010-03-04 23:40:34 +0100
# catalog-license lppl
# catalog-version 0.4
Name:		texlive-estcpmm
Version:	0.4
Release:	7
Summary:	Style for Munitions Management Project Reports
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/estcpmm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/estcpmm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/estcpmm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/estcpmm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a class which supports typesetting Cost and
Performance Reports and Final Reports for Munitions Management
Reports, US Environmental Security Technology Certification
Program. The class was commissioned and paid for by US Army
Corps of Engineers, Engineer Research and Development Center,
3909 Halls Ferry Road, Vicksburg, MS 39180-6199.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/estcpmm/estcpmm.cls
%doc %{_texmfdistdir}/doc/latex/estcpmm/README
%doc %{_texmfdistdir}/doc/latex/estcpmm/estcp.pdf
%doc %{_texmfdistdir}/doc/latex/estcpmm/estcpmm.bib
%doc %{_texmfdistdir}/doc/latex/estcpmm/estcpmm.pdf
%doc %{_texmfdistdir}/doc/latex/estcpmm/red_corps_castle2.pdf
%doc %{_texmfdistdir}/doc/latex/estcpmm/sample.pdf
%doc %{_texmfdistdir}/doc/latex/estcpmm/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/estcpmm/Makefile
%doc %{_texmfdistdir}/source/latex/estcpmm/estcpmm.dtx
%doc %{_texmfdistdir}/source/latex/estcpmm/estcpmm.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18285 |21mr|texlive-es-tex-faq-1.97-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /help/es-tex-faq
# catalog-date 2006-10-29 10:21:33 +0100
# catalog-license lppl
# catalog-version 1.97
Name:		texlive-es-tex-faq
Version:	1.97
Release:	6
Summary:	CervanTeX (Spanish TeX Group) FAQ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/help/es-tex-faq
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/es-tex-faq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/es-tex-faq.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
SGML source, converted LaTeX version, and readable copies of
the FAQ from the Spanish TeX users group.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/es-tex-faq/FAQ-CervanTeX.html
%doc %{_texmfdistdir}/doc/generic/es-tex-faq/FAQ-CervanTeX.latin1
%doc %{_texmfdistdir}/doc/generic/es-tex-faq/FAQ-CervanTeX.pdf
%doc %{_texmfdistdir}/doc/generic/es-tex-faq/FAQ-CervanTeX.sgml
%doc %{_texmfdistdir}/doc/generic/es-tex-faq/FAQ-CervanTeX.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18286 |21mr|texlive-etaremune-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-etaremune
Version:	1.2
Release:	2
Summary:	Reverse-counting enumerate environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/etaremune
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etaremune.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etaremune.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etaremune.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements the etaremune environment which is
similar to the enumerate environment, except that labels are
decreasing instead of increasing. The package provides a
noticeably more efficient alternative to the revnum package,
which uses painfully many counters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/etaremune/etaremune.sty
%doc %{_texmfdistdir}/doc/latex/etaremune/README
%doc %{_texmfdistdir}/doc/latex/etaremune/etaremune.pdf
#- source
%doc %{_texmfdistdir}/source/latex/etaremune/etaremune.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18287 |21mr|texlive-etdipa-20200217-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-etdipa
Version:	20200217
Release:	1
Summary:	Simple, lightweight template for scientific documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/etdipa
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etdipa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etdipa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a complete working directory for the
scientific documentation of arbitrary projects. It was
originally developed to provide a template for Austrian
longdesc "Diplomarbeiten" or "Vorwissenschaftliche Arbeiten", which are
scientfic projects of students at a secondary school.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/etdipa

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18288 |21mr|texlive-etex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-etex
Version:	20190228
Release:	1
Summary:	An extended version of TeX, from the NTS project
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/e-tex
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An extended version of TeX (which is capable of running as if
it were TeX unmodified). E-TeX has been specified by the LaTeX
team as the engine for the development of LaTeX 2e, in the
immediate future; as a result, LaTeX programmers may (in all
current TeX distributions) assume e-TeX functionality.
Development versions of e-TeX are to be found in the TeX live
source repository.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/etex/xbmc10.mf
%{_texmfdistdir}/fonts/tfm/public/etex/xbmc10.tfm
%{_texmfdistdir}/tex/plain/etex/etex.src
%{_texmfdistdir}/tex/plain/etex/etexdefs.lib
%doc %{_texmfdistdir}/doc/etex/base/NTS-FAQ
%doc %{_texmfdistdir}/doc/etex/base/etex_gen.tex
%doc %{_texmfdistdir}/doc/etex/base/etex_man.pdf
%doc %{_texmfdistdir}/doc/etex/base/etex_man.sty
%doc %{_texmfdistdir}/doc/etex/base/etex_man.tex
%doc %{_texmfdistdir}/doc/etex/base/etex_ref.html
%doc %{_texmfdistdir}/doc/etex/base/etex_src.html
%doc %{_texmfdistdir}/doc/etex/base/legal.html
%doc %{_texmfdistdir}/doc/etex/base/nts-group.html
%doc %{_texmfdistdir}/doc/etex/base/webmerge.tex
%doc %{_mandir}/man1/etex.1*
%doc %{_texmfdistdir}/doc/man/man1/etex.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18289 |21mr|texlive-etex-pkg-2.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/etex-pkg/etex.sty
# catalog-date 2009-07-22 12:43:06 +0200
# catalog-license other-free
# catalog-version 2.0
Name:		texlive-etex-pkg
Version:	2.7
Release:	2
Summary:	E-TeX support package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/etex-pkg/etex.sty
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etex-pkg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etex-pkg.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a straightforward interface to many of the
extensions offered by e-TeX; in particular, it modifies LaTeX's
register allocation macros to make use of the extended register
range. The etoolbox and etextools packages provide macros that
make more sophisticated use of e-TeX's facilities.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/etex-pkg/etex.sty
%doc %{_texmfdistdir}/doc/latex/etex-pkg/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18290 |21mr|texlive-etextools-3.1415926-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20694
# category Package
# catalog-ctan /macros/latex/contrib/etextools
# catalog-date 2010-12-08 18:13:15 +0100
# catalog-license lppl
# catalog-version 3.1415926
Name:		texlive-etextools
Version:	3.1415926
Release:	7
Summary:	E-TeX tools for LaTeX users and package writers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/etextools
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etextools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etextools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etextools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides many (purely expandable) tools for LaTeX:
- Extensive list management (csv lists, lists of single
tokens/characters, etoolbox lists): * purely expandable loops
(csvloop, forcsvloop, etc.) * conversion (csvtolist, etc.)) *
addition/deletion (csvadd, listdel, etc.) - Expansion and group
control: \expandnext, \ExpandAfterCmds, \AfterGroup... - Tests
on tokens, characters and control sequences (\iffirstchar,
\ifiscs, \ifdefcount, \@ifchar...) - Tests on strings
(\ifstrnum, \ifuppercase, \DeclareStringFilter...) - Purely
expandable macros with options (\FE@testopt, \FE@ifstar) or
modifiers (\FE@modifiers) - Some purely expandable numerics
(\interval, \locinterplin). The package is dependent on the
etex and the etoolbox packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/etextools/etextools.sty
%doc %{_texmfdistdir}/doc/latex/etextools/README
%doc %{_texmfdistdir}/doc/latex/etextools/etextools-examples.pdf
%doc %{_texmfdistdir}/doc/latex/etextools/etextools-examples.tex
%doc %{_texmfdistdir}/doc/latex/etextools/etextools.pdf
#- source
%doc %{_texmfdistdir}/source/latex/etextools/etextools.drv
%doc %{_texmfdistdir}/source/latex/etextools/etextools.dtx
%doc %{_texmfdistdir}/source/latex/etextools/etextools.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18291 |21mr|texlive-ethiop-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/ethiopia/ethiop
# catalog-date 2007-02-14 08:57:40 +0100
# catalog-license gpl
# catalog-version 0.7
Name:		texlive-ethiop
Version:	0.7
Release:	7
Summary:	LaTeX macros and fonts for typesetting Amharic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/ethiopia/ethiop
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ethiop.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ethiop.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ethiop.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Ethiopian language support for the babel package, including a
collection of fonts and TeX macros for typesetting the
characters of the languages of Ethiopia, with MetaFont fonts
based on EthTeX's.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/ofm/public/ethiop/etho10.ofm
%{_texmfdistdir}/fonts/ofm/public/ethiop/ethob10.ofm
%{_texmfdistdir}/fonts/ofm/public/ethiop/ethos10.ofm
%{_texmfdistdir}/fonts/ofm/public/ethiop/ethosb10.ofm
%{_texmfdistdir}/fonts/ovf/public/ethiop/etho10.ovf
%{_texmfdistdir}/fonts/ovf/public/ethiop/ethob10.ovf
%{_texmfdistdir}/fonts/ovf/public/ethiop/ethos10.ovf
%{_texmfdistdir}/fonts/ovf/public/ethiop/ethosb10.ovf
%{_texmfdistdir}/fonts/ovp/public/ethiop/etho10.ovp
%{_texmfdistdir}/fonts/ovp/public/ethiop/ethob10.ovp
%{_texmfdistdir}/fonts/ovp/public/ethiop/ethos10.ovp
%{_texmfdistdir}/fonts/ovp/public/ethiop/ethosb10.ovp
%{_texmfdistdir}/fonts/source/public/ethiop/eth__a.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth__g.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_acce.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_b.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_c_c.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_cc.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_cc_c.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_ccc2.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_d.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_dd.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_f.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_fu.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_g.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_g_a.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_gg.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_ggu.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_gu.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_h.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_h_a.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_h_c.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_hh.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_hu_c.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_j.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_k.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_k_a.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_kk.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_kku.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_ku.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_l.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_m.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_mrf.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_mu.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_n.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_nn.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_num.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_p.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_pp.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_pu.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_punc.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_q.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_q_a.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_qq.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_qqu.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_qu.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_r.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_s.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_s_a.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_s_c.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_ss.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_t.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_tt.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_v.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_w.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_wu.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_y.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_z.mf
%{_texmfdistdir}/fonts/source/public/ethiop/eth_z_c.mf
%{_texmfdistdir}/fonts/source/public/ethiop/etha10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/etha6.mf
%{_texmfdistdir}/fonts/source/public/ethiop/etha7.mf
%{_texmfdistdir}/fonts/source/public/ethiop/etha8.mf
%{_texmfdistdir}/fonts/source/public/ethiop/etha_cod.mf
%{_texmfdistdir}/fonts/source/public/ethiop/etha_drv.mf
%{_texmfdistdir}/fonts/source/public/ethiop/etha_lig.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethab10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethab11.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethab12.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethab14.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethab18.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethab24.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethab36.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethab9.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethas10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethasb10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethasb11.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethasb12.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethasb14.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethasb18.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethasb24.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethasb36.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethasb9.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethatt10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethb10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethb6.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethb7.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethb8.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethb_cod.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethb_drv.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethb_lig.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbb10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbb11.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbb12.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbb14.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbb18.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbb24.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbb36.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbb9.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbs10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbsb10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbsb11.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbsb12.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbsb14.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbsb18.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbsb24.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbsb36.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbsb9.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethbtt10.mf
%{_texmfdistdir}/fonts/source/public/ethiop/ethiomac.mf
%{_texmfdistdir}/fonts/tfm/public/ethiop/etha10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/etha6.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/etha7.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/etha8.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethab10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethab11.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethab12.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethab14.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethab18.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethab24.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethab36.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethab9.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethas10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethasb10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethasb11.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethasb12.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethasb14.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethasb18.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethasb24.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethasb36.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethasb9.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethatt10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethb10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethb6.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethb7.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethb8.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbb10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbb11.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbb12.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbb14.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbb18.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbb24.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbb36.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbb9.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbs10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbsb10.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbsb11.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbsb12.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbsb14.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbsb18.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbsb24.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbsb36.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbsb9.tfm
%{_texmfdistdir}/fonts/tfm/public/ethiop/ethbtt10.tfm
%{_texmfdistdir}/omega/ocp/ethiop/ethospc.ocp
%{_texmfdistdir}/omega/otp/ethiop/ethospc.otp
%{_texmfdistdir}/tex/latex/ethiop/etharab.sty
%{_texmfdistdir}/tex/latex/ethiop/ethiop.ldf
%{_texmfdistdir}/tex/latex/ethiop/ethiop.sty
%{_texmfdistdir}/tex/latex/ethiop/uetha.fd
%{_texmfdistdir}/tex/latex/ethiop/uethb.fd
%{_texmfdistdir}/tex/latex/ethiop/uetho.fd
%doc %{_texmfdistdir}/doc/latex/ethiop/MANIFEST
%doc %{_texmfdistdir}/doc/latex/ethiop/README
%doc %{_texmfdistdir}/doc/latex/ethiop/codeetha.tex
%doc %{_texmfdistdir}/doc/latex/ethiop/codeethb.tex
%doc %{_texmfdistdir}/doc/latex/ethiop/ethiodoc.pdf
%doc %{_texmfdistdir}/doc/latex/ethiop/ethiodoc.tex
#- source
%doc %{_texmfdistdir}/source/latex/ethiop/ethiop.dtx
%doc %{_texmfdistdir}/source/latex/ethiop/ethiop.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts omega tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18292 |21mr|texlive-ethiop-t1-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/ps-type1/ethiop
# catalog-date 2007-02-14 08:57:40 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-ethiop-t1
Version:	20190228
Release:	1
Summary:	Type 1 versions of Amharic fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ps-type1/ethiop
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ethiop-t1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ethiop-t1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These fonts are drop-in Adobe type 1 replacements for the fonts
of the ethiop package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/ethiop-t1/ethiop.map
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/etha10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/etha6.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/etha7.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/etha8.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethab10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethab11.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethab12.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethab14.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethab18.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethab24.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethab36.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethab9.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethas10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethasb10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethasb11.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethasb12.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethasb14.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethasb18.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethasb24.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethasb36.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethasb9.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethatt10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethb10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethb6.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethb7.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethb8.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbb10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbb11.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbb12.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbb14.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbb18.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbb24.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbb36.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbb9.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbs10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbsb10.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbsb11.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbsb12.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbsb14.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbsb18.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbsb24.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbsb36.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbsb9.pfb
%{_texmfdistdir}/fonts/type1/public/ethiop-t1/ethbtt10.pfb
%doc %{_texmfdistdir}/doc/latex/ethiop-t1/COPYING
%doc %{_texmfdistdir}/doc/latex/ethiop-t1/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18293 |21mr|texlive-etoc-1.09-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-etoc
Version:	1.09
Release:	1
Summary:	Completely customisable TOCs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/etoc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package gives the user complete control of how the entries
of the table of contents should be constituted from the name,
number, and page number of each sectioning unit. The layout is
controlled by the definition of 'line styles' for each
sectioning level used in the document. The package provides its
own custom line styles (which may be used as examples), and
continues to support the standard formatting inherited from the
LaTeX document classes, but the package can also allow the user
to delegate the details to packages dealing with list making
environments (such as enumitem). The package's default global
style typesets tables of contents in a multi-column format,
with either a standard heading, or a ruled title (optionally
with a frame around the table). The \tableofcontents command
may be used arbitrarily many times in the same document, while
\localtableofcontents provides a 'local' table of contents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/etoc
%doc %{_texmfdistdir}/doc/latex/etoc
#- source
%doc %{_texmfdistdir}/source/latex/etoc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18294 |21mr|texlive-etoolbox-2.5f-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-etoolbox
Version:	2.5f
Release:	1
Summary:	Tool-box for LaTeX programmers using e-TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/etoolbox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etoolbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etoolbox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The etoolbox package is a toolbox of programming facilities
geared primarily towards LaTeX class and package authors. It
provides LaTeX frontends to some of the new primitives provided
by e-TeX as well as some generic tools which are not strictly
related to e-TeX but match the profile of this package. Note
that the initial versions of this package were released under
the name elatex. The package provides functions that seem to
offer alternative ways of implementing some LaTeX kernel
commands; nevertheless, the package will not modify any part of
the LaTeX kernel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/etoolbox
%doc %{_texmfdistdir}/doc/latex/etoolbox

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18295 |21mr|texlive-etoolbox-de-1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21906
# category Package
# catalog-ctan /info/translations/etoolbox/de
# catalog-date 2011-03-30 20:15:49 +0200
# catalog-license lppl
# catalog-version 1
Name:		texlive-etoolbox-de
Version:	1
Release:	6
Summary:	German translation of documentation of etoolbox
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/etoolbox/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etoolbox-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etoolbox-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The version translated is 2.1 or 2011-01-03.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/etoolbox-de/etoolbox-DE.pdf
%doc %{_texmfdistdir}/doc/latex/etoolbox-de/etoolbox-DE.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18296 |21mr|texlive-etsvthor-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _texmfdistdir	%{_datadir}/texmf
%define _unpackaged_files_terminate_build 0

Name:		texlive-etsvthor
Version:	0.1
Release:	1
Group:		Publishing
Summary:        Test
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/etsvthor
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etsvthor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etsvthor.doc.tar.xz
BuildArch:	noarch

%description
The package allows LaTeX users to typeset MetaPost code inline
and display figures in their documents with only and only one
run of LaTeX, PDFLaTeX or XelaTeX (no separate runs of mpost).
Mpgraphics achieves this by using the shell escape (\write 18)
feature of current TeX distributions, so that the whole process
is automatic and the end user is saved the tiresome processing.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/etsvthor/etsvthor.sty
%doc %{_texmfdistdir}/doc/latex/etsvthor/README.md

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18297 |21mr|texlive-euenc-0.1h-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19795
# category Package
# catalog-ctan /macros/latex/contrib/euenc
# catalog-date 2010-09-19 01:22:04 +0200
# catalog-license lppl1.3
# catalog-version 0.1h
Name:		texlive-euenc
Version:	0.1h
Release:	7
Summary:	Unicode font encoding definitions for XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/euenc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euenc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euenc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euenc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Font encoding definitions for unicode fonts loaded by LaTeX in
XeTeX or LuaTeX. The package provides two encodings: -- EU1,
designed for use with XeTeX, which the fontspec uses for
unicode fonts which require no macro-level processing for
accents, and -- EU2, which provides the same facilities for use
with LuaTeX. Neither encoding places any restriction on the
glyphs provided by a font; use of EU2 causes the package
euxunicode to be loaded (the package is part of this
distribution). The package includes font definition files for
use with the Latin Modern OpenType fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/euenc/eu1enc.def
%{_texmfdistdir}/tex/latex/euenc/eu1lmdh.fd
%{_texmfdistdir}/tex/latex/euenc/eu1lmr.fd
%{_texmfdistdir}/tex/latex/euenc/eu1lmss.fd
%{_texmfdistdir}/tex/latex/euenc/eu1lmssq.fd
%{_texmfdistdir}/tex/latex/euenc/eu1lmtt.fd
%{_texmfdistdir}/tex/latex/euenc/eu1lmvtt.fd
%{_texmfdistdir}/tex/latex/euenc/eu2enc.def
%{_texmfdistdir}/tex/latex/euenc/eu2lmdh.fd
%{_texmfdistdir}/tex/latex/euenc/eu2lmr.fd
%{_texmfdistdir}/tex/latex/euenc/eu2lmss.fd
%{_texmfdistdir}/tex/latex/euenc/eu2lmssq.fd
%{_texmfdistdir}/tex/latex/euenc/eu2lmtt.fd
%{_texmfdistdir}/tex/latex/euenc/eu2lmvtt.fd
%doc %{_texmfdistdir}/doc/latex/euenc/README
%doc %{_texmfdistdir}/doc/latex/euenc/euenc.pdf
%doc %{_texmfdistdir}/doc/latex/euenc/test-euxlm.ltx
#- source
%doc %{_texmfdistdir}/source/latex/euenc/Makefile
%doc %{_texmfdistdir}/source/latex/euenc/euenc.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18298 |21mr|texlive-euflag-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _texmfdistdir	%{_datadir}/texmf
%define _unpackaged_files_terminate_build 0

Name:		texlive-euflag
Version:	0.1
Release:	1
Group:		Publishing
Summary:        Test
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/euflag
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euflag.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euflag.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euflag.source.tar.xz
BuildArch:	noarch

%description
The package allows LaTeX users to typeset MetaPost code inline
and display figures in their documents with only and only one
run of LaTeX, PDFLaTeX or XelaTeX (no separate runs of mpost).
Mpgraphics achieves this by using the shell escape (\write 18)
feature of current TeX distributions, so that the whole process
is automatic and the end user is saved the tiresome processing.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/euflag/euflag.sty
%doc %{_texmfdistdir}/doc/latex/euflag/README.md
%doc %{_texmfdistdir}/doc/latex/euflag/euflag.pdf
#- source
%doc %{_texmfdistdir}/source/latex/euflag/euflag.dtx
%doc %{_texmfdistdir}/source/latex/euflag/euflag.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18299 |21mr|texlive-eukdate-1.04-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/eukdate
# catalog-date 2009-03-17 21:46:26 +0100
# catalog-license lppl
# catalog-version 1.04
Name:		texlive-eukdate
Version:	1.04
Release:	7
Summary:	UK format dates, with weekday
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/eukdate
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eukdate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eukdate.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eukdate.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is used to change the format of \today's date,
including the weekday, e.g., "Saturday, 26 June 2008", the 'UK
format', which is preferred in many parts of the world, as
distinct from that which is used in \maketitle of the article
class, "June 26, 2008", the 'US format'.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/eukdate/eukdate.sty
%doc %{_texmfdistdir}/doc/latex/eukdate/README
%doc %{_texmfdistdir}/doc/latex/eukdate/eukdate.pdf
#- source
%doc %{_texmfdistdir}/source/latex/eukdate/eukdate.dtx
%doc %{_texmfdistdir}/source/latex/eukdate/eukdate.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18300 |21mr|texlive-euler-2.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17261
# category Package
# catalog-ctan /macros/latex/contrib/euler
# catalog-date 2010-02-28 19:16:53 +0100
# catalog-license lppl
# catalog-version 2.5
Name:		texlive-euler
Version:	2.5
Release:	7
Summary:	Use AMS Euler fonts for math
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/euler
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euler.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euler.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euler.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a setup for using the AMS Euler family of fonts for
mathematics in LaTeX documents. "The underlying philosophy of
Zapf's Euler design was to capture the flavour of mathematics
as it might be written by a mathematician with excellent
handwriting." [concrete-tug] The euler package is based on
Knuth's macros for the book 'Concrete Mathematics'. The text
fonts for the Concrete book are supported by the beton package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/euler/euler.sty
%doc %{_texmfdistdir}/doc/latex/euler/euler.pdf
%doc %{_texmfdistdir}/doc/latex/euler/legal.txt
#- source
%doc %{_texmfdistdir}/source/latex/euler/euler.dtx
%doc %{_texmfdistdir}/source/latex/euler/euler.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18301 |21mr|texlive-eulerpx-20171009-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-eulerpx
Version:	20171009
Release:	1
Summary:	A modern interface for the Euler math fonts
Group:		Publishing
URL:		https://ctan.org/pkg/eulerpx
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/eulerpx.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/eulerpx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the "eulerpx" font, which started as a
hybrid of multiple other font packages, notably eulervm and
newpxmath. Its purpose is twofold: To use the eulervm symbols
for greek and latin, but the newpxmath font for braces and
brackets, and the text font for digits and operators; and to
make it easy to change between a sans and a serif font for the
digits and operators so that the font can be used seamlessly in
documents using both. This package was put together with the
intent to use it with the Palatino and Optima fonts, but it may
work with other combinations, too.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18302 |21mr|texlive-eulervm-4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/eulervm
# catalog-date 2006-12-09 23:51:48 +0100
# catalog-license lppl
# catalog-version 4.0
Name:		texlive-eulervm
Version:	4.0
Release:	7
Summary:	Euler virtual math fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/eulervm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eulervm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eulervm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eulervm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The well-known Euler fonts are suitable for typsetting
mathematics in conjunction with a variety of text fonts which
do not provide mathematical character sets of their own. Euler-
VM is a set of virtual mathematics fonts based on Euler and CM.
This approach has several advantages over immediately using the
real Euler fonts: Most noticeably, less TeX resources are
consumed, the quality of various math symbols is improved and a
usable \hslash symbol can be provided. The virtual fonts are
accompanied by a LaTeX package which makes them easy to use,
particularly in conjunction with Type1 PostScript text fonts.
They are compatible with amsmath. A package option allows the
fonts to be loaded at 95% of their nominal size, thus blending
better with certain text fonts, e.g., Minion.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeuex10.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeurb10.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeurb5.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeurb7.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeurm10.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeurm5.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeurm7.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeusb10.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeusb5.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeusb7.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeusm10.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeusm5.tfm
%{_texmfdistdir}/fonts/tfm/public/eulervm/zeusm7.tfm
%{_texmfdistdir}/fonts/vf/public/eulervm/zeuex10.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeurb10.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeurb5.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeurb7.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeurm10.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeurm5.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeurm7.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeusb10.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeusb5.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeusb7.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeusm10.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeusm5.vf
%{_texmfdistdir}/fonts/vf/public/eulervm/zeusm7.vf
%{_texmfdistdir}/tex/latex/eulervm/eulervm.sty
%{_texmfdistdir}/tex/latex/eulervm/uzeuex.fd
%{_texmfdistdir}/tex/latex/eulervm/uzeur.fd
%{_texmfdistdir}/tex/latex/eulervm/uzeus.fd
%doc %{_texmfdistdir}/doc/latex/eulervm/README.eulervm
%doc %{_texmfdistdir}/doc/latex/eulervm/eulervm.pdf
%doc %{_texmfdistdir}/doc/latex/eulervm/manifest.txt
#- source
%doc %{_texmfdistdir}/source/latex/eulervm/eulervm.dtx
%doc %{_texmfdistdir}/source/latex/eulervm/eulervm.ins
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/Makefile
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/amsrel10.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/amsrel5.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/amsrel7.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/axis10.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/axis5.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/axis7.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/eubar10.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/eubar5.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/eubar7.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/euml.etx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/eums.etx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/eumx.etx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/fontevm.tex
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/unsetams.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/unseteus.mtx
%doc %{_texmfdistdir}/source/latex/eulervm/fontinst/unsetex.mtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18303 |21mr|texlive-euro-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22191
# category Package
# catalog-ctan /macros/latex/contrib/euro
# catalog-date 2006-09-12 14:13:09 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-euro
Version:	1.1
Release:	7
Summary:	Provide Euro values for national currency amounts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/euro
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euro.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euro.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euro.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Converts arbitrary national currency amounts using the Euro as
base unit, and typesets monetary amounts in almost any desired
way. Write, e.g., \ATS{17.6} to get something like '17,60 oS
(1,28 Euro)' automatically. Conversion rates for the initial
Euro-zone countries are already built-in. Further rates can be
added easily. The package uses the fp package to do its sums.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/euro/euro.sty
%doc %{_texmfdistdir}/doc/latex/euro/Makefile
%doc %{_texmfdistdir}/doc/latex/euro/euro.pdf
%doc %{_texmfdistdir}/doc/latex/euro/euro.txt
#- source
%doc %{_texmfdistdir}/source/latex/euro/euro.dtx
%doc %{_texmfdistdir}/source/latex/euro/euro.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18304 |21mr|texlive-euro-ce-3.0b-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25714
# category Package
# catalog-ctan /fonts/euro-ce
# catalog-date 2012-03-20 10:39:30 +0100
# catalog-license bsd
# catalog-version 3.0b
Name:		texlive-euro-ce
Epoch:		1
Version:	3.0b
Release:	6
Summary:	Euro and CE sign font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/euro-ce
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euro-ce.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/euro-ce.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Metafont source for the symbols in several variants, designed
to fit with Computer Modern-set text.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/euro-ce/ceit.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/cemac.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/cerm.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/cesl.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/eurobf.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/eurobfit.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/eurobfsl.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/euroit.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/euromac.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/euroof.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/eurorm.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/eurosl.mf
%{_texmfdistdir}/fonts/source/public/euro-ce/eurosp.mf
%{_texmfdistdir}/fonts/tfm/public/euro-ce/ceit.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/cerm.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/cesl.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/eurobf.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/eurobfit.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/eurobfsl.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/euroit.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/euroof.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/eurorm.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/eurosl.tfm
%{_texmfdistdir}/fonts/tfm/public/euro-ce/eurosp.tfm
%doc %{_texmfdistdir}/doc/fonts/euro-ce/euro-ce.doc
%doc %{_texmfdistdir}/doc/fonts/euro-ce/euro-ce.dvi
%doc %{_texmfdistdir}/doc/fonts/euro-ce/euro-ce.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18305 |21mr|texlive-europasscv-20190114-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-europasscv
Version:	20190114
Release:	1
Summary:	Unofficial class for the new version of the Europass curriculum vitae
Group:		Publishing
URL:		https://ctan.org/pkg/europasscv
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/europasscv.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/europasscv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class is an unofficial LaTeX implementation of the
Europass CV, the standard model for curriculum vitae as
recommended by the European Commission. It includes the major
style updates that came out in 2013, featuring a neater, more
compact and somewhat fancier layout.


#-----------------------------------------------------------------------
%files

%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18306 |21mr|texlive-europecv-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/europecv
# catalog-date 2006-12-09 23:51:48 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-europecv
Version:	20180303
Release:	2
Summary:	Unofficial class for European curricula vitae
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/europecv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/europecv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/europecv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The europecv class is an unofficial LaTeX implementation of the
standard model for curricula vitae (the "Europass CV") as
recommended by the European Commission. Although primarily
intended for users in the European Union, the class is flexible
enough to be used for any kind of curriculum vitae. The class
has localisations for all the official languages of the EU
(plus Catalan), as well as options permitting input in UTF-8
and koi8-r.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/europecv/EuropeFlagBW.eps
%{_texmfdistdir}/tex/latex/europecv/EuropeFlagBW.pdf
%{_texmfdistdir}/tex/latex/europecv/EuropeFlagBlueCMYK.eps
%{_texmfdistdir}/tex/latex/europecv/EuropeFlagBlueCMYK.pdf
%{_texmfdistdir}/tex/latex/europecv/EuropeFlagCMYK.eps
%{_texmfdistdir}/tex/latex/europecv/EuropeFlagCMYK.pdf
%{_texmfdistdir}/tex/latex/europecv/EuropeFlagWB.eps
%{_texmfdistdir}/tex/latex/europecv/EuropeFlagWB.pdf
%{_texmfdistdir}/tex/latex/europecv/ecvbg.def
%{_texmfdistdir}/tex/latex/europecv/ecvca.def
%{_texmfdistdir}/tex/latex/europecv/ecvcs.def
%{_texmfdistdir}/tex/latex/europecv/ecvda.def
%{_texmfdistdir}/tex/latex/europecv/ecvde.def
%{_texmfdistdir}/tex/latex/europecv/ecven.def
%{_texmfdistdir}/tex/latex/europecv/ecves.def
%{_texmfdistdir}/tex/latex/europecv/ecvet.def
%{_texmfdistdir}/tex/latex/europecv/ecvfi.def
%{_texmfdistdir}/tex/latex/europecv/ecvfr.def
%{_texmfdistdir}/tex/latex/europecv/ecvgl.def
%{_texmfdistdir}/tex/latex/europecv/ecvgr.def
%{_texmfdistdir}/tex/latex/europecv/ecvhu.def
%{_texmfdistdir}/tex/latex/europecv/ecvis.def
%{_texmfdistdir}/tex/latex/europecv/ecvit.def
%{_texmfdistdir}/tex/latex/europecv/ecvlt.def
%{_texmfdistdir}/tex/latex/europecv/ecvlv.def
%{_texmfdistdir}/tex/latex/europecv/ecvmt.def
%{_texmfdistdir}/tex/latex/europecv/ecvnl.def
%{_texmfdistdir}/tex/latex/europecv/ecvno.def
%{_texmfdistdir}/tex/latex/europecv/ecvpl.def
%{_texmfdistdir}/tex/latex/europecv/ecvpt.def
%{_texmfdistdir}/tex/latex/europecv/ecvro.def
%{_texmfdistdir}/tex/latex/europecv/ecvsk.def
%{_texmfdistdir}/tex/latex/europecv/ecvsl.def
%{_texmfdistdir}/tex/latex/europecv/ecvsr.def
%{_texmfdistdir}/tex/latex/europecv/ecvsv.def
%{_texmfdistdir}/tex/latex/europecv/europasslogo.eps
%{_texmfdistdir}/tex/latex/europecv/europasslogo.pdf
%{_texmfdistdir}/tex/latex/europecv/europecv.cls
%doc %{_texmfdistdir}/doc/latex/europecv/europecv.pdf
%doc %{_texmfdistdir}/doc/latex/europecv/europecv.tex
%doc %{_texmfdistdir}/doc/latex/europecv/examples/at.pdf
%doc %{_texmfdistdir}/doc/latex/europecv/examples/bulgarian-koi8-r.tex
%doc %{_texmfdistdir}/doc/latex/europecv/examples/bulgarian-utf8.tex
%doc %{_texmfdistdir}/doc/latex/europecv/examples/greek-utf8.pdf
%doc %{_texmfdistdir}/doc/latex/europecv/examples/greek-utf8.tex
%doc %{_texmfdistdir}/doc/latex/europecv/examples/maltese-maltese.tex
%doc %{_texmfdistdir}/doc/latex/europecv/examples/maltese-utf8.tex
%doc %{_texmfdistdir}/doc/latex/europecv/examples/minimal.pdf
%doc %{_texmfdistdir}/doc/latex/europecv/examples/minimal.tex
%doc %{_texmfdistdir}/doc/latex/europecv/templates/cv_template_de.pdf
%doc %{_texmfdistdir}/doc/latex/europecv/templates/cv_template_de.tex
%doc %{_texmfdistdir}/doc/latex/europecv/templates/cv_template_en.pdf
%doc %{_texmfdistdir}/doc/latex/europecv/templates/cv_template_en.tex
%doc %{_texmfdistdir}/doc/latex/europecv/templates/cv_template_it.pdf
%doc %{_texmfdistdir}/doc/latex/europecv/templates/cv_template_it.tex
%doc %{_texmfdistdir}/doc/latex/europecv/templates/cv_template_pl.pdf
%doc %{_texmfdistdir}/doc/latex/europecv/templates/cv_template_pl.tex
%doc %{_texmfdistdir}/doc/latex/europecv/templates/publications.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18307 |21mr|texlive-eurosym-1.4subrfix-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17265
# category Package
# catalog-ctan /fonts/eurosym
# catalog-date 2009-03-31 14:27:12 +0200
# catalog-license other-free
# catalog-version 1.4-subrfix
Name:		texlive-eurosym
Version:	1.4subrfix
Release:	2
Summary:	MetaFont and macros for Euro sign
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/eurosym
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eurosym.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/eurosym.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The new European currency symbol for the Euro implemented in
MetaFont, using the official European Commission dimensions,
and providing several shapes (normal, slanted, bold, outline).
The package also includes a LaTeX package which defines the
macro, pre-compiled tfm files, and documentation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/eurosym/eurosym.map
%{_texmfdistdir}/fonts/source/public/eurosym/fey.mf
%{_texmfdistdir}/fonts/source/public/eurosym/feybl10.mf
%{_texmfdistdir}/fonts/source/public/eurosym/feybo10.mf
%{_texmfdistdir}/fonts/source/public/eurosym/feybr10.mf
%{_texmfdistdir}/fonts/source/public/eurosym/feyml10.mf
%{_texmfdistdir}/fonts/source/public/eurosym/feymo10.mf
%{_texmfdistdir}/fonts/source/public/eurosym/feymr10.mf
%{_texmfdistdir}/fonts/tfm/public/eurosym/feybl10.tfm
%{_texmfdistdir}/fonts/tfm/public/eurosym/feybo10.tfm
%{_texmfdistdir}/fonts/tfm/public/eurosym/feybr10.tfm
%{_texmfdistdir}/fonts/tfm/public/eurosym/feyml10.tfm
%{_texmfdistdir}/fonts/tfm/public/eurosym/feymo10.tfm
%{_texmfdistdir}/fonts/tfm/public/eurosym/feymr10.tfm
%{_texmfdistdir}/fonts/type1/public/eurosym/feybl10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/feybo10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/feybr10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/feyml10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/feymo10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/feymr10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/geybl10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/geybo10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/geybr10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/geyml10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/geymo10.pfb
%{_texmfdistdir}/fonts/type1/public/eurosym/geymr10.pfb
%{_texmfdistdir}/tex/latex/eurosym/eurosym.sty
%doc %{_texmfdistdir}/doc/fonts/eurosym/COPYING
%doc %{_texmfdistdir}/doc/fonts/eurosym/Changes
%doc %{_texmfdistdir}/doc/fonts/eurosym/Makefile
%doc %{_texmfdistdir}/doc/fonts/eurosym/README
%doc %{_texmfdistdir}/doc/fonts/eurosym/README.type1
%doc %{_texmfdistdir}/doc/fonts/eurosym/c/Makefile
%doc %{_texmfdistdir}/doc/fonts/eurosym/eurosym.cpp
%doc %{_texmfdistdir}/doc/fonts/eurosym/makemfs
%doc %{_texmfdistdir}/doc/fonts/eurosym/rundvips
%doc %{_texmfdistdir}/doc/fonts/eurosym/runlatex
%doc %{_texmfdistdir}/doc/fonts/eurosym/src/Makefile
%doc %{_texmfdistdir}/doc/fonts/eurosym/testeuro.pdf
%doc %{_texmfdistdir}/doc/fonts/eurosym/testeuro.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18308 |21mr|texlive-everyhook-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-everyhook
Version:	1.2
Release:	2
Summary:	Hooks for standard TeX token lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/everyhook
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/everyhook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/everyhook.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/everyhook.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package takes control of the six TeX token registers
\everypar, \everymath, \everydisplay, \everyhbox, \everyvbox
and \everycr. Real hooks for each of the registers may be
installed using a stack like interface. For backwards
compatibility, each of the \everyX token lists can be set
without interfering with the hooks.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/everyhook
%doc %{_texmfdistdir}/doc/latex/everyhook
#- source
%doc %{_texmfdistdir}/source/latex/everyhook

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18309 |21mr|texlive-everypage-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/everypage
# catalog-date 2008-02-19 19:31:19 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-everypage
Version:	1.1
Release:	7
Summary:	Provide hooks to be run on every page of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/everypage
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/everypage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/everypage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/everypage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides hooks to perform actions on every page, or
on the current page. Specifically, actions are performed after
the page is composed, but before it is shipped, so they can be
used to prepare the output page in tasks like putting
watermarks in the background, or in setting the next page
layout, etc.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/everypage/everypage.sty
%doc %{_texmfdistdir}/doc/latex/everypage/README
%doc %{_texmfdistdir}/doc/latex/everypage/everypage.pdf
#- source
%doc %{_texmfdistdir}/source/latex/everypage/everypage.dtx
%doc %{_texmfdistdir}/source/latex/everypage/everypage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18310 |21mr|texlive-exam-2.603-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exam
Version:	2.603
Release:	2
Summary:	Package for typesetting exam scripts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/exam
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exam.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exam.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a class exam, which eases production of exams, even by
a LaTeX novice. Simple commands are provided to: - create
questions, parts of questions, subparts of parts, and
subsubparts of subparts, all with optional point values; -
create a grading table, indexed either by question number
(listing each question and the total possible points for that
question) or by page number (listing each page with points and
the total possible points for that page); - create headers and
footers that are each specified in three parts: one part to be
left justified, one part to be centered, and one part to be
right justified, in the manner of fancyhdr Headers and/or
footers can be different on the first page of the exam, can be
different on the last page of the exam, and can vary depending
on whether the page number is odd or even, or on whether the
current page continues a question from a previous page, or on
whether the last question on the current page continues onto
the following page. Multiple line headers and/or footers are
allowed, and it's easy to increase the part of the page devoted
to headers and/or footers to allow for this. Note that the
bundle exams also provides a file exam.cls; the two bundles
therefore clash, and should not be installed on the same
system.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/exam
%doc %{_texmfdistdir}/doc/latex/exam

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18311 |21mr|texlive-examdesign-1.101-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/examdesign
# catalog-date 2006-12-09 23:51:48 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-examdesign
Version:	1.101
Release:	2
Epoch:		1
Summary:	LaTeX class for typesetting exams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/examdesign
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/examdesign.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/examdesign.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/examdesign.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle provides a class examdesign. The class provides
several features useful for designing tests or question sets: -
it allows for explicit markup of questions and answers; - the
class will, at the user's request, automatically generate
answer keys; - multiple versions of the same test can be
generated automatically, with the ordering of questions within
each section randomly permuted so as to minimize cheating; -
the generated answer keys can be constructed either with or
without the questions included; - environments are provided to
assist in constructing the most common types of test question:
matching, true/false, multiple-choice, fill-in-the-blank, and
short answer/essay questions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/examdesign/examdesign.cls
%doc %{_texmfdistdir}/doc/latex/examdesign/Bugs
%doc %{_texmfdistdir}/doc/latex/examdesign/Changes
%doc %{_texmfdistdir}/doc/latex/examdesign/INSTALL
%doc %{_texmfdistdir}/doc/latex/examdesign/README
%doc %{_texmfdistdir}/doc/latex/examdesign/examdesign.pdf
%doc %{_texmfdistdir}/doc/latex/examdesign/examplea.pdf
%doc %{_texmfdistdir}/doc/latex/examdesign/examplea.tex
%doc %{_texmfdistdir}/doc/latex/examdesign/exampleb.pdf
%doc %{_texmfdistdir}/doc/latex/examdesign/exampleb.tex
%doc %{_texmfdistdir}/doc/latex/examdesign/examplec.pdf
%doc %{_texmfdistdir}/doc/latex/examdesign/examplec.tex
%doc %{_texmfdistdir}/doc/latex/examdesign/foobar.tex
#- source
%doc %{_texmfdistdir}/source/latex/examdesign/examdesign.dtx
%doc %{_texmfdistdir}/source/latex/examdesign/examdesign.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18312 |21mr|texlive-exam-n-20170418-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exam-n
Version:	20170418
Release:	1
Summary:	Exam class, focused on collaborative authoring
Group:		Publishing
URL:		https://ctan.org/pkg/exam-n
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/exam-n.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/exam-n.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/exam-n.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Exam class, focused on collaborative authoring

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%doc %{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18313 |21mr|texlive-examplep-0.04-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16916
# category Package
# catalog-ctan /macros/latex/contrib/examplep
# catalog-date 2010-02-04 09:03:57 +0100
# catalog-license gpl
# catalog-version 0.04
Name:		texlive-examplep
Version:	0.04
Release:	7
Summary:	Verbatim phrases and listings in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/examplep
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/examplep.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/examplep.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Examplep provides sophisticated features for typesetting
verbatim source code listings, including the display of the
source code and its compiled LaTeX or METAPOST output side-by-
side, with automatic width detection and enabled page breaks
(in the source), without the need for specifying the source
twice. Special care is taken that section, page and footnote
numbers do not interfere with the main document. For
typesetting short verbatim phrases, a replacement for the \verb
command is also provided in the package, which can be used
inside tables and moving arguments such as footnotes and
section titles. The listings package is used for syntax
highlighting. The accompanying codep package and the wrfiles.pl
Perl script provide a convenient interface to the examplep
package for authors of manuals. With codep it is possible to
generate the source code, the LaTeX or METAPOST output and the
compilable example file from a single source embedded into the
appropriate place of the .tex document file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/examplep/codep.sty
%{_texmfdistdir}/tex/latex/examplep/examplep.sty
%{_texmfdistdir}/tex/latex/examplep/verbfwr.sty
%doc %{_texmfdistdir}/doc/latex/examplep/README
%doc %{_texmfdistdir}/doc/latex/examplep/eurotex_2005_examplep.pdf
%doc %{_texmfdistdir}/doc/latex/examplep/eurotex_2005_examplep.tex
%doc %{_texmfdistdir}/doc/latex/examplep/houses.eps
%doc %{_texmfdistdir}/doc/latex/examplep/houses.pdf
%doc %{_texmfdistdir}/doc/latex/examplep/pexaminipage.eps
%doc %{_texmfdistdir}/doc/latex/examplep/pexaminipage.pdf
%doc %{_texmfdistdir}/doc/latex/examplep/shorthyp_t1xtts.eps
%doc %{_texmfdistdir}/doc/latex/examplep/shorthyp_t1xtts.pdf
%doc %{_texmfdistdir}/doc/latex/examplep/wrfiles.pl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18314 |21mr|texlive-exceltex-0.5.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /macros/latex/contrib/exceltex
# catalog-date 2012-05-07 22:43:29 +0200
# catalog-license gpl
# catalog-version 0.5.1
Name:		texlive-exceltex
Version:	0.5.1
Release:	7
Summary:	Get data from Excel files into LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/exceltex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exceltex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exceltex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-exceltex.bin = %{EVRD}

%description
Exceltex is a LaTeX package combined with a helper program
written in Perl. It provides an easy to use yet powerfull and
flexible way to get data from Spreadsheets into LaTeX. In
contrast to other solutions, exceltex does not seek to make the
creation of tables in LaTeX easier, but to get data from
Spreadsheets into LaTeX as easily as possible. The Excel (TM)
file format only acts as an interface between the spreadsheet
application and exceltex beacause it is easily accessible (via
the Spreadsheet::ParseExcel Perl module) and because most
spreadsheet applications are able to read and write Excel
files.


#-----------------------------------------------------------------------
%files
%{_bindir}/exceltex
%{_texmfdistdir}/scripts/exceltex/exceltex
%{_texmfdistdir}/tex/latex/exceltex/exceltex.sty
%doc %{_texmfdistdir}/doc/latex/exceltex/CHANGES
%doc %{_texmfdistdir}/doc/latex/exceltex/INSTALL
%doc %{_texmfdistdir}/doc/latex/exceltex/README
%doc %{_texmfdistdir}/doc/latex/exceltex/README.TEXLIVE

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/exceltex/exceltex exceltex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18315 |21mr|texlive-excludeonly-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17262
# category Package
# catalog-ctan /macros/latex/contrib/excludeonly
# catalog-date 2010-03-01 08:47:36 +0100
# catalog-license pd
# catalog-version 1.0
Name:		texlive-excludeonly
Version:	1.0
Release:	7
Summary:	Prevent files being \include-ed
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/excludeonly
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/excludeonly.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/excludeonly.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines an \excludeonly command, which is (in
effect) the opposite of \includeonly. If both \includeonly and
\excludeonly exist in a document, only files "allowed" by both
will be included. The package redefines the internal \@include
command, so it conflicts with packages that do the same.
Examples are the classes paper.cls and thesis.cls.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/excludeonly/excludeonly.sty
%doc %{_texmfdistdir}/doc/latex/excludeonly/excludeonly.pdf
%doc %{_texmfdistdir}/doc/latex/excludeonly/excludeonly.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18316 |21mr|texlive-exercise-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exercise
Version:	1.6
Release:	2
Summary:	Typeset exercises, problems, etc. and their answers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/exercise
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exercise.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exercise.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exercise.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package helps to typeset exercises or list of exercises
within any document. Exercises, questions and sub-questions are
automatically numbered. It is possible to put answers in the
same document, and display them immediatly, later in the
document or not to print answers at all. The layout of
exercises is fully customisable. It is possible to typeset long
problems, short exercises, questionnaires, etc. Usage of the
babel package is detected, but not fully supported yet (only
English and French are implemented).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/exercise
%doc %{_texmfdistdir}/doc/latex/exercise
#- source
%doc %{_texmfdistdir}/source/latex/exercise

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18317 |21mr|texlive-exercisebank-20190318-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exercisebank
Version:	20190318
Release:	1
Summary:	Creating and managing exercises, and reusing them as composed sets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/afthesis
License:	LPPL1.3c
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/exercisebank.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/exercisebank.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package makes it easier to maintain and edit your exercise
sets. Exercises are saved as separate files containing part
problems. These files can be used to make sets, and you can
cherry-pick or exclude certain part problems as you see fit.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/exercisebank
%doc %{_texmfdistdir}/doc/latex/exercisebank

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18318 |21mr|texlive-exercisepoints-20190105-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exercisepoints
Version:	20190105
Release:	1
Summary:	A LaTeX package to count exercises and points
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/afthesis
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/exercisepoints.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/exercisepoints.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can be used to facilitate exercise counting and
exercise point counting in a LaTeX-document. It counts the
number of exercises and it sums all the points of the exercises
in a document. Especially for exams it is also common to have
an overview of all exercises and their maximal points. This is
also supported by this package by providing a macro to retrieve
the points of each exercise.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/exercisepoints
%doc %{_texmfdistdir}/doc/latex/exercisepoints

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18319 |21mr|texlive-expdlist-2.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/expdlist
# catalog-date 2008-06-23 23:47:50 +0200
# catalog-license lppl
# catalog-version 2.4
Name:		texlive-expdlist
Version:	2.4
Release:	7
Summary:	Expanded description environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/expdlist
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/expdlist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/expdlist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/expdlist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides additional features for the LaTeX
description environment, including adjustable left margin. The
package also allows the user to 'break' a list (for example, to
interpose a comment) without affecting the structure of the
list (so that, for example, numbered lists remain in sequence).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/expdlist/expdlist.sty
%doc %{_texmfdistdir}/doc/latex/expdlist/expdlisg.pdf
%doc %{_texmfdistdir}/doc/latex/expdlist/expdlist.pdf
%doc %{_texmfdistdir}/doc/latex/expdlist/readme.txt
#- source
%doc %{_texmfdistdir}/source/latex/expdlist/expdlisg.drv
%doc %{_texmfdistdir}/source/latex/expdlist/expdlist.drv
%doc %{_texmfdistdir}/source/latex/expdlist/expdlist.dtx
%doc %{_texmfdistdir}/source/latex/expdlist/expdlist.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18320 |21mr|texlive-expex-5.1b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33163
# category Package
# catalog-ctan /macros/plain/contrib/expex
# catalog-date 2014-03-12 20:21:38 +0100
# catalog-license lppl
# catalog-version 5.0b
Name:		texlive-expex
Version:	5.1b
Release:	2
Summary:	Format linguistic examples and glosses, with reference capabilities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/expex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/expex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/expex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for typesetting linguistic examples
and glosses, with a refined mechanism for referencing examples
and parts of examples. The package can be used with LaTex using
the .sty wrapper or with PlainTex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/expex/epltxchapno.sty
%{_texmfdistdir}/tex/generic/expex/epltxfn.sty
%{_texmfdistdir}/tex/generic/expex/eptexfn.tex
%{_texmfdistdir}/tex/generic/expex/expex-demo.tex
%{_texmfdistdir}/tex/generic/expex/expex.sty
%{_texmfdistdir}/tex/generic/expex/expex.tex
%doc %{_texmfdistdir}/doc/generic/expex/README
%doc %{_texmfdistdir}/doc/generic/expex/doc-source.zip
%doc %{_texmfdistdir}/doc/generic/expex/expex-doc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18321 |21mr|texlive-export-1.8-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27206
# category Package
# catalog-ctan /macros/latex/contrib/export
# catalog-date 2012-07-11 14:19:50 +0200
# catalog-license lppl
# catalog-version 1.8
Name:		texlive-export
Version:	1.8
Release:	12
Summary:	Import and export values of LaTeX registers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/export
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/export.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/export.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/export.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to export/import the values of
LaTeX registers (counters, rigid and rubber lengths only). It
is not for faint-hearted users. The package may be used, for
example, to communicate between documents for the purposes of
dvipaste.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/export/dvipaste.sty
%{_texmfdistdir}/tex/latex/export/export.sty
%doc %{_texmfdistdir}/doc/latex/export/00readme
%doc %{_texmfdistdir}/doc/latex/export/export.pdf
#- source
%doc %{_texmfdistdir}/source/latex/export/export.dtx
%doc %{_texmfdistdir}/source/latex/export/export.ins
%doc %{_texmfdistdir}/source/latex/export/export.l

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18322 |21mr|texlive-expressg-1.5-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/expressg
# catalog-date 2012-07-11 14:19:50 +0200
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-expressg
Version:	1.5
Release:	12
Summary:	Diagrams consisting of boxes, lines, and annotations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/expressg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/expressg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/expressg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/expressg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A MetaPost package providing facilities to assist in drawing
diagrams that consist of boxes, lines, and annotations.
Particular support is provided for creating EXPRESS-G diagrams,
for example IDEF1X, OMT, Shlaer-Mellor, and NIAM diagrams. The
package may also be used to create UML and most other Box-Line-
Annotation charts, but not Gantt charts directly.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/expressg/aam.mp
%{_texmfdistdir}/metapost/expressg/expeg.mp
%{_texmfdistdir}/metapost/expressg/expressg.mp
%doc %{_texmfdistdir}/doc/metapost/expressg/README
%doc %{_texmfdistdir}/doc/metapost/expressg/aamfigs.pdf
%doc %{_texmfdistdir}/doc/metapost/expressg/aamfigs.tex
%doc %{_texmfdistdir}/doc/metapost/expressg/expeg.pdf
%doc %{_texmfdistdir}/doc/metapost/expressg/expeg.tex
%doc %{_texmfdistdir}/doc/metapost/expressg/expressg.pdf
%doc %{_texmfdistdir}/doc/metapost/expressg/n2mps.sh
%doc %{_texmfdistdir}/doc/metapost/expressg/n2mpsprl.prl
#- source
%doc %{_texmfdistdir}/source/metapost/expressg/expressg.dtx
%doc %{_texmfdistdir}/source/metapost/expressg/expressg.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18323 |21mr|texlive-exp-testopt-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/exp-testopt
# catalog-date 2009-03-08 17:38:29 +0100
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-exp-testopt
Version:	0.3
Release:	7
Summary:	Expandable \@testopt (and related) macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/exp-testopt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exp-testopt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exp-testopt.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exp-testopt.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an expandable variant of the LaTeX kernel
command \@testopt, named \@expandable@testopt, and a more
general \@expandable@ifopt, both intended for package writers.
Also we have a variant of \newcommand which uses these macros
to check for optional arguments.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/exp-testopt/exp-testopt.sty
%doc %{_texmfdistdir}/doc/latex/exp-testopt/README
%doc %{_texmfdistdir}/doc/latex/exp-testopt/exp-testopt.pdf
%doc %{_texmfdistdir}/doc/latex/exp-testopt/exp-testopt.test
#- source
%doc %{_texmfdistdir}/source/latex/exp-testopt/exp-testopt.dtx
%doc %{_texmfdistdir}/source/latex/exp-testopt/exp-testopt.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18324 |21mr|texlive-exsheets-0.21i-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exsheets
Epoch:		1
Version:	0.21i
Release:	2
Summary:	Create exercise sheets and exams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/exsheets
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exsheets.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exsheets.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to create exercises or questions
and their corresponding solutions. The questions may be divided
into classes and/or topics and may be printed selectively.
Meta-data to questions can be added and recovered. The
solutions may be printed where they are, or collected and
printed at a later point in the document all together, section-
wise or selectively by ID. The package provides the means to
selectively include questions from an external file, and to
control the style of headings of both questions and solutions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/exsheets
%doc %{_texmfdistdir}/doc/latex/exsheets

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18325 |21mr|texlive-exsol-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-exsol
Version:	1.4
Release:	1
Summary:	Exercises and solutions from same source, into a book
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/exsol
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exsol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exsol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exsol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The packageThe exsol package provides macros to allow for
embedding exercises and solutions in the LaTeX source of an
instructional text (e.g., a book or a course text) while
generating the following separate documents: - your original
text that only contains the exercises, and - a solution book
that contains only the solutions to the exercises (optionally,
the exercises themselves are also copied to the solution book).
The exercise data are generated when running LaTeX on your
document; the first run also writes the solutions to a
secondary file that may be included in a simple document
harness, may be processed by LaTeX, to generate a nice solution
book. The code of the package was derived (in large part) from
fancyvrb.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/exsol
%doc %{_texmfdistdir}/doc/latex/exsol
#- source
%doc %{_texmfdistdir}/source/latex/exsol

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18326 |21mr|texlive-exteps-0.41-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19859
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/exteps
# catalog-date 2007-03-06 10:34:25 +0100
# catalog-license gpl
# catalog-version 0.41
Name:		texlive-exteps
Version:	0.41
Release:	7
Summary:	Include EPS figures in MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/exteps
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exteps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/exteps.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Exteps is a module for including external EPS figures into
MetaPost figures. It is written entirely in MetaPost, and does
not therefore require any post processing of the MetaPost
output.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/exteps/exteps.mp
%doc %{_texmfdistdir}/doc/metapost/exteps/LICENSE
%doc %{_texmfdistdir}/doc/metapost/exteps/README
%doc %{_texmfdistdir}/doc/metapost/exteps/delfin
%doc %{_texmfdistdir}/doc/metapost/exteps/exteps.pdf
%doc %{_texmfdistdir}/doc/metapost/exteps/exteps.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18327 |21mr|texlive-extract-1.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/extract
# catalog-date 2006-11-09 15:16:55 +0100
# catalog-license lppl
# catalog-version 1.8
Name:		texlive-extract
Version:	1.8
Release:	7
Summary:	Extract parts of a document and write to another document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/extract
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extract.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extract.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extract.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to extract specific content from
a source document and write that to a target document. One
could, for instance, use this to extract all exercises from
lecture notes and generate an exercises book on the fly. The
package also provides an environment which writes its body
entirely to the target file. Another environment will write to
the target file, but will also execute the body. This allows to
share code (for instance, a preamble) between the source
document and the target file. Finally, the package provides an
interface to conditionally extract content. With a single
package option, one can specify exactly which commands (counted
from the start of the document) should be extracted and which
not. This might be useful for extracting specific slides from a
presentation and use them in a new file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/extract/extract.sty
%doc %{_texmfdistdir}/doc/latex/extract/README
%doc %{_texmfdistdir}/doc/latex/extract/extract.pdf
#- source
%doc %{_texmfdistdir}/source/latex/extract/extract.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18328 |21mr|texlive-extsizes-1.4a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17263
# category Package
# catalog-ctan /macros/latex/contrib/extsizes
# catalog-date 2010-02-28 19:16:53 +0100
# catalog-license lppl
# catalog-version 1.4a
Name:		texlive-extsizes
Version:	1.4a
Release:	7
Summary:	Extend the standard classes' size options
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/extsizes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extsizes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/extsizes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides classes extarticle and extreport, extletter, extbook,
extproc which allow for documents with a base font of size 8-
20pt.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/extsizes/autopagewidth.sty
%{_texmfdistdir}/tex/latex/extsizes/extarticle.cls
%{_texmfdistdir}/tex/latex/extsizes/extbook.cls
%{_texmfdistdir}/tex/latex/extsizes/extletter.cls
%{_texmfdistdir}/tex/latex/extsizes/extproc.cls
%{_texmfdistdir}/tex/latex/extsizes/extreport.cls
%{_texmfdistdir}/tex/latex/extsizes/extsizes.sty
%{_texmfdistdir}/tex/latex/extsizes/size14.clo
%{_texmfdistdir}/tex/latex/extsizes/size17.clo
%{_texmfdistdir}/tex/latex/extsizes/size20.clo
%{_texmfdistdir}/tex/latex/extsizes/size8.clo
%{_texmfdistdir}/tex/latex/extsizes/size9.clo
%doc %{_texmfdistdir}/doc/latex/extsizes/README
%doc %{_texmfdistdir}/doc/latex/extsizes/extsizes.pdf
%doc %{_texmfdistdir}/doc/latex/extsizes/extsizes.tex
%doc %{_texmfdistdir}/doc/latex/extsizes/readme.extsizes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18329 |21mr|texlive-facsimile-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21328
# category Package
# catalog-ctan /macros/latex/contrib/facsimile
# catalog-date 2007-01-03 21:31:08 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-facsimile
Version:	1.0
Release:	7
Summary:	Document class for preparing faxes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/facsimile
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/facsimile.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/facsimile.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/facsimile.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The facsimile class provides a simple interface for creating a
document for sending as a fax, with LaTeX. The class covers two
areas: - First, a title page is created with a detailed fax
header; - second, every page gets headers and footers so that
the recipient can be sure that every page has been received and
all pages are complete, and in the correct order. The class
evolved from the fax package, and provides much better language
support.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/facsimile/fac-de.cfg
%{_texmfdistdir}/tex/latex/facsimile/fac-en.cfg
%{_texmfdistdir}/tex/latex/facsimile/facsimile.cls
%doc %{_texmfdistdir}/doc/latex/facsimile/README
%doc %{_texmfdistdir}/doc/latex/facsimile/example.tex
%doc %{_texmfdistdir}/doc/latex/facsimile/facsimile.pdf
#- source
%doc %{_texmfdistdir}/source/latex/facsimile/facsimile.dtx
%doc %{_texmfdistdir}/source/latex/facsimile/facsimile.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18330 |21mr|texlive-factura-3.57-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-factura
Version:	3.57
Release:	2
Epoch:		1
Summary:	TeXLive factura package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/factura.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/factura.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive factura package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/factura
%doc %{_texmfdistdir}/doc/latex/factura

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18331 |21mr|texlive-facture-1.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-facture
Version:	1.2.2
Release:	2
Summary:	Generate an invoice
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/facture
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/facture.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/facture.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/facture.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Une classe simple permettant de produite une facture, avec ou
sans TVA, avec gestion d'une adresse differente pour la
livraison et pour la facturation. A simple class that allows
production of an invoice, with or without VAT; different
addresses for delivery and for billing are permitted.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/facture
%doc %{_texmfdistdir}/doc/xelatex/facture
#- source
%doc %{_texmfdistdir}/source/xelatex/facture

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18332 |21mr|texlive-fancybox-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18304
# category Package
# catalog-ctan /macros/latex/contrib/fancybox
# catalog-date 2010-05-15 22:45:27 +0200
# catalog-license lppl1.2
# catalog-version 1.4
Name:		texlive-fancybox
Version:	1.4
Release:	7
Summary:	Variants of \fbox and other games with boxes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fancybox
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancybox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancybox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides variants of \fbox: \shadowbox, \doublebox, \ovalbox,
\Ovalbox, with helpful tools for using box macros and flexible
verbatim macros. You can box mathematics, floats, center,
flushleft, and flushright, lists, and pages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fancybox/fancybox.sty
%doc %{_texmfdistdir}/doc/latex/fancybox/Changes
%doc %{_texmfdistdir}/doc/latex/fancybox/Makefile
%doc %{_texmfdistdir}/doc/latex/fancybox/README
%doc %{_texmfdistdir}/doc/latex/fancybox/fancybox-doc.pdf
%doc %{_texmfdistdir}/doc/latex/fancybox/fancybox-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18333 |21mr|texlive-fancyhandout-20180122-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fancyhandout
Version:	20180122
Release:	1
Summary:	Provides a way of typesetting documents not exclusively consisting of running text in a beautiful way
Group:		Publishing
URL:		https://github.com/SFr682k/fancyhandout
License:	LPPL 1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyhandout.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyhandout.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a way of typesetting documents not exclusively consisting of running text in a beautiful way.

%files
%{_texmfdistdir}/tex/
%doc %{_texmfdistdir}/doc/
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18334 |21mr|texlive-fancyhdr-3.9a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/fancyhdr
# catalog-date 2009-01-10 12:36:34 +0100
# catalog-license lppl
# catalog-version 3.1
Name:		texlive-fancyhdr
Version:	3.9a
Release:	2
Summary:	Extensive control of page headers and footers in LaTeX2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fancyhdr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyhdr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyhdr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides extensive facilities, both for
constructing headers and footers, and for controlling their use
(for example, at times when LaTeX would automatically change
the heading style in use).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fancyhdr/extramarks.sty
%{_texmfdistdir}/tex/latex/fancyhdr/fancyhdr.sty
%{_texmfdistdir}/tex/latex/fancyhdr/fancyheadings.sty
%doc %{_texmfdistdir}/doc/latex/fancyhdr/README
%doc %{_texmfdistdir}/doc/latex/fancyhdr/fancyhdr.pdf
%doc %{_texmfdistdir}/doc/latex/fancyhdr/fancyhdr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18335 |21mr|texlive-fancyhdr-it-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fancyhdr-it
Version:	20190228
Release:	1
Summary:	Italian translation of fancyhdr documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/fancyhdr/it
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyhdr-it.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyhdr-it.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The translation is of documentation provided with the fancyhdr
package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/fancyhdr-it

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18336 |21mr|texlive-fancylabel-20171230-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fancylabel
Version:	20171230
Release:	1
Summary:	The package provides a complex labelling scheme
Group:		Publishing
URL:		https://ctan.org/pkg/fancylabel
License:	LPPL Version 1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancylabel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancylabel.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancylabel.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a complex labelling scheme.

%files
%{_texmfdistdir}/tex/
%{_texmfdistdir}/source/
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar source tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18337 |21mr|texlive-fancynum-0.92-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/fancynum
# catalog-date 2008-04-19 23:11:03 +0200
# catalog-license other-free
# catalog-version 0.92
Name:		texlive-fancynum
Version:	0.92
Release:	7
Summary:	Typeset numbers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fancynum
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancynum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancynum.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancynum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for typesetting numbers, in particular floating
point numbers, such as you find in program output.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fancynum/fancynum.sty
%doc %{_texmfdistdir}/doc/latex/fancynum/CHANGES
%doc %{_texmfdistdir}/doc/latex/fancynum/README
%doc %{_texmfdistdir}/doc/latex/fancynum/aue.txt
%doc %{_texmfdistdir}/doc/latex/fancynum/ctt.txt
%doc %{_texmfdistdir}/doc/latex/fancynum/dbltable.tex
%doc %{_texmfdistdir}/doc/latex/fancynum/examples.tex
%doc %{_texmfdistdir}/doc/latex/fancynum/fancynum.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fancynum/Makefile
%doc %{_texmfdistdir}/source/latex/fancynum/fancynum.dtx
%doc %{_texmfdistdir}/source/latex/fancynum/fancynum.ins
%doc %{_texmfdistdir}/source/latex/fancynum/tables.c

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18338 |21mr|texlive-fancypar-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18018
# category Package
# catalog-ctan /macros/latex/contrib/fancypar
# catalog-date 2010-04-29 12:40:52 +0200
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-fancypar
Version:	1.2
Release:	1
Summary:	Decoration of individual paragraphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fancypar
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancypar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancypar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancypar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Decorates individual paragraphs of a document, offering five
pre-defined styles. The command offers an optional 'key-value'
argument with the user may define parameters of the selected
style. Predefined styles offer a spiral-notebook, a zebra-like,
a dashed, a marked design, and an underlined style. Users may
also define their own styles. Decorated paragraphs may not
include displayed mathematics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fancypar/fancypar.sty
%doc %{_texmfdistdir}/doc/latex/fancypar/README
%doc %{_texmfdistdir}/doc/latex/fancypar/fancypar.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fancypar/fancypar.dtx
%doc %{_texmfdistdir}/source/latex/fancypar/fancypar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18339 |21mr|texlive-fancyref-0.9c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/fancyref
# catalog-date 2006-12-05 17:23:05 +0100
# catalog-license gpl
# catalog-version 0.9c
Name:		texlive-fancyref
Version:	0.9c
Release:	7
Summary:	A LaTeX package for fancy cross-referencing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fancyref
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyref.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyref.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides fancy cross-referencing support, based on the
package's reference commands (\fref and \Fref) that recognise
what sort of object is being referenced. So, for example, the
label for a \section would be expected to be of the form
'sec:foo': the package would recognise the 'sec:' part.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fancyref/fancyref.sty
%doc %{_texmfdistdir}/doc/latex/fancyref/COPYING
%doc %{_texmfdistdir}/doc/latex/fancyref/README
%doc %{_texmfdistdir}/doc/latex/fancyref/fancyref.pdf
%doc %{_texmfdistdir}/doc/latex/fancyref/freftest.tex
#- source
%doc %{_texmfdistdir}/source/latex/fancyref/fancyref.dtx
%doc %{_texmfdistdir}/source/latex/fancyref/fancyref.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18340 |21mr|texlive-fancyslides-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fancyslides
Version:	1.0
Release:	1
Summary:	This class is prepared for short presentations with a modern look & feel
Group:		Publishing
URL:		https://www.ctan.org/pkg/fancyslides
License:	LPPL Version 1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyslides.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyslides.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class is prepared for short presentations with a modern look & feel.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/
%doc %{_texmfdistdir}/doc/
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18341 |21mr|texlive-fancytabs-1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27684
# category Package
# catalog-ctan /macros/latex/contrib/fancytabs
# catalog-date 2012-09-17 18:38:18 +0200
# catalog-license lppl1.3
# catalog-version 1.8
Name:		texlive-fancytabs
Version:	1.9
Release:	2
Summary:	Fancy page border tabs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fancytabs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancytabs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancytabs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancytabs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can typeset tabs on the side of a page. It requires
TikZ from the pgf bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fancytabs/fancytabs.sty
%doc %{_texmfdistdir}/doc/latex/fancytabs/README
%doc %{_texmfdistdir}/doc/latex/fancytabs/fancytabs.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fancytabs/fancytabs.dtx
%doc %{_texmfdistdir}/source/latex/fancytabs/fancytabs.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18342 |21mr|texlive-fancytooltips-1.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27129
# category Package
# catalog-ctan /macros/latex/contrib/fancytooltips
# catalog-date 2012-06-03 20:06:11 +0200
# catalog-license lppl1.2
# catalog-version 1.8
Name:		texlive-fancytooltips
Version:	1.8
Release:	10
Summary:	Include a wide range of material in PDF tooltips
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fancytooltips
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancytooltips.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancytooltips.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancytooltips.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package was inspired by the cooltooltips package. In
contrast to cooltooltips, fancytooltips allows inclusion of
tooltips which contain arbitrary TeX material or a series of
TeX materials (animated graphics) from an external PDF file. To
see the tooltips, you have to open the files in Adobe Reader.
The links and JavaScripts are inserted using eforms package
from the AcroTeX bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fancytooltips/fancytipmark.eps
%{_texmfdistdir}/tex/latex/fancytooltips/fancytipmark.pdf
%{_texmfdistdir}/tex/latex/fancytooltips/fancytipmark.svg
%{_texmfdistdir}/tex/latex/fancytooltips/fancytooltips.sty
%doc %{_texmfdistdir}/doc/latex/fancytooltips/cite.png
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/fancy-preview-demo.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/fancy-preview-demo.sin.table
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/fancy-preview-demo.tex
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/fancy-preview-demo2.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/fancy-preview-demo2.tex
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/fancytooltips-example.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/fancytooltips-example.tex
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/pics/tecna2.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/pics/tooltipy.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/pics/tooltipy.tex
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/pics/tooltipy.tips
%doc %{_texmfdistdir}/doc/latex/fancytooltips/examples/readme
%doc %{_texmfdistdir}/doc/latex/fancytooltips/fancy-preview
%doc %{_texmfdistdir}/doc/latex/fancytooltips/fancytipmark1.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/fancytipmark2.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/fancytipmark3.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/fancytipmark4.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/fancytooltips.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/readme
%doc %{_texmfdistdir}/doc/latex/fancytooltips/tip.pdf
%doc %{_texmfdistdir}/doc/latex/fancytooltips/tip.tex
#- source
%doc %{_texmfdistdir}/source/latex/fancytooltips/fancytooltips.dtx
%doc %{_texmfdistdir}/source/latex/fancytooltips/fancytooltips.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18343 |21mr|texlive-fancyvrb-3.2a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18492
# category Package
# catalog-ctan /macros/latex/contrib/fancyvrb
# catalog-date 2010-05-25 20:13:54 +0200
# catalog-license lppl
# catalog-version 2.8
Name:		texlive-fancyvrb
Version:	3.2a
Release:	1
Summary:	Sophisticated verbatim text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fancyvrb
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyvrb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyvrb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fancyvrb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Flexible handling of verbatim text including: verbatim commands
in footnotes; a variety of verbatim environments with many
parameters; ability to define new customized verbatim
environments; save and restore verbatim text and environments;
write and read files in verbatim mode; build "example"
environments (showing both result and verbatim source).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fancyvrb
%doc %{_texmfdistdir}/doc/latex/fancyvrb
#- source
%doc %{_texmfdistdir}/source/latex/fancyvrb

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18344 |21mr|texlive-fandol-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fandol
Version:	0.3
Release:	2
Summary:	Four basic fonts for Chinese typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/fandol
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fandol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fandol.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Fandol fonts designed for Chinese typesetting. The current
version contains four styles: Song, Hei, Kai, Fang. All fonts
are in OpenType format.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/fandol
%doc %{_texmfdistdir}/doc/fonts/fandol

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18345 |21mr|texlive-FAQ-en-3.27-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25791
# category Package
# catalog-ctan /help/uk-tex-faq
# catalog-date 2012-03-30 16:18:37 +0200
# catalog-license pd
# catalog-version 3.27
Name:		texlive-FAQ-en
Version:	3.27
Release:	2
Summary:	A compilation of Frequently Asked Questions with answers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/help/uk-tex-faq
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/FAQ-en.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/FAQ-en.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The FAQ that has in the past been published in the UK TeX Users
Group journal Baskerville (though updated more frequently on
CTAN). It is also available (and searchable) on the web.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/FAQ-en

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18346 |21mr|texlive-fast-diagram-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29264
# category Package
# catalog-ctan /graphics/pgf/contrib/fast-diagram
# catalog-date 2013-02-27 20:12:49 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-fast-diagram
Version:	1.1
Release:	10
Summary:	Easy generation of FAST diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/fast-diagram
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fast-diagram.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fast-diagram.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides simple means of producing FAST diagrams,
using TikZ/pgf tools. FAST diagrams are useful for functional
analysis techniques in design methods.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fast-diagram/fast-diagram.sty
%doc %{_texmfdistdir}/doc/latex/fast-diagram/README
%doc %{_texmfdistdir}/doc/latex/fast-diagram/help.pdf
%doc %{_texmfdistdir}/doc/latex/fast-diagram/help.tex
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/commandes.tex
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/exemple.tex
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/antenne.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/batterie.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/biellettes.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/bouton.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/moteur.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/pedalier.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/pignons.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/recepteur.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/roue.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/images/servomoteur.png
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/installation.tex
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/intro.tex
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/miseEnForme.tex
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/reglages.tex
%doc %{_texmfdistdir}/doc/latex/fast-diagram/sources_help/tikz.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18347 |21mr|texlive-fbithesis-1.2m-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21340
# category Package
# catalog-ctan /macros/latex/contrib/fbithesis
# catalog-date 2011-02-07 09:47:54 +0100
# catalog-license other-free
# catalog-version 1.2m
Name:		texlive-fbithesis
Version:	1.2m
Release:	7
Summary:	Computer Science thesis class for University of Dortmund
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fbithesis
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fbithesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fbithesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fbithesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
At the department of computer science at the University of
Dortmund there are cardboard cover pages for research or
internal reports like master/phd-theses. The main function of
this LaTeX2e document-class is a replacement for the \maketitle
command to typeset a title page that is adjusted to these cover
pages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fbithesis/fbithesis.cfg
%{_texmfdistdir}/tex/latex/fbithesis/fbithesis.cls
%doc %{_texmfdistdir}/doc/latex/fbithesis/README
%doc %{_texmfdistdir}/doc/latex/fbithesis/distribution.key
%doc %{_texmfdistdir}/doc/latex/fbithesis/example.pdf
%doc %{_texmfdistdir}/doc/latex/fbithesis/example.tex
%doc %{_texmfdistdir}/doc/latex/fbithesis/exampleaux.tex
%doc %{_texmfdistdir}/doc/latex/fbithesis/fbithesis.dtx.asc
%doc %{_texmfdistdir}/doc/latex/fbithesis/fbithesis.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fbithesis/fbithesis.drv
%doc %{_texmfdistdir}/source/latex/fbithesis/fbithesis.dtx
%doc %{_texmfdistdir}/source/latex/fbithesis/fbithesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18348 |21mr|texlive-fc-1.4-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32796
# category Package
# catalog-ctan /fonts/jknappen/fc
# catalog-date 2012-05-29 13:27:24 +0200
# catalog-license gpl2
# catalog-version 1.4
Name:		texlive-fc
Version:	1.4
Release:	12
Summary:	Fonts for African languages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/jknappen/fc
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts are provided as Metafont source, in the familiar
arrangement of lots of (autogenerated) preamble files and a
modest set of glyph specifications. (A similar arrangement
appears in the ec and lh font bundles.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcbx.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcbxi.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcbxsl.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcbxu.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fccsc.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fci.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcitt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcr.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcsibx.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcsitt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcsl.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcss.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcssbx.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcssi.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcsstt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fctt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/b-fcu.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/c-fcsstt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcaccent.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbx9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxi9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxsl9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcbxu9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccoding.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccsc9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fccscspu.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fci9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcilig.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitalic.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitligt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitlpct.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcitt9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcmacros.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcpunct.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcr9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcrlig.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcroligt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcroman.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcrompct.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcscligt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsfligt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsibx9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsitt9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsl9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcss9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssbx9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcssi9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcsstt9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fctt9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcttligt.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu10.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu11.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu12.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu14.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu17.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu20.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu25.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu5.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu6.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu7.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu8.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/fcu9.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/itala.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italbcd.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/itale.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italfgh.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italij.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italklm.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italn.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italo.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italpqr.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italst.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italuvw.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/italxyz.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowera.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowerbcd.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowere.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowerfgh.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowerij.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowerklm.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowern.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowero.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowerpqr.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowerst.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/loweruvw.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/lowerxyz.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/uppera.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/upperbcd.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/uppere.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/upperfgh.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/upperij.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/upperklm.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/uppern.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/uppero.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/upperpqr.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/upperst.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/upperuvw.mf
%{_texmfdistdir}/fonts/source/jknappen/fc/upperxyz.mf
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbx9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxi9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxsl9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcbxu9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fccsc9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fci9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcitt9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcr9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsibx9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsitt9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsl9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcss9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssbx9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcssi9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcsstt9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fctt9.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu10.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu11.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu12.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu14.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu17.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu20.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu25.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu5.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu6.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu7.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu8.tfm
%{_texmfdistdir}/fonts/tfm/jknappen/fc/fcu9.tfm
%{_texmfdistdir}/tex/latex/fc/fclfont.sty
%{_texmfdistdir}/tex/latex/fc/fcuse.sty
%{_texmfdistdir}/tex/latex/fc/t4cmr.fd
%{_texmfdistdir}/tex/latex/fc/t4cmss.fd
%{_texmfdistdir}/tex/latex/fc/t4cmtt.fd
%{_texmfdistdir}/tex/latex/fc/t4enc.def
%{_texmfdistdir}/tex/latex/fc/t4fcr.fd
%{_texmfdistdir}/tex/latex/fc/t4phonet.sty
%doc %{_texmfdistdir}/doc/fonts/fc/fc.bug
%doc %{_texmfdistdir}/doc/fonts/fc/fc.rme
%doc %{_texmfdistdir}/doc/fonts/fc/fclfont.sty_old
%doc %{_texmfdistdir}/doc/fonts/fc/fctugbot.tex
%doc %{_texmfdistdir}/doc/fonts/fc/fontdef.fc_old
%doc %{_texmfdistdir}/doc/fonts/fc/licence.gnu

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18349 |21mr|texlive-fcltxdoc-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24500
# category Package
# catalog-ctan /macros/latex/contrib/fcltxdoc
# catalog-date 2011-11-03 08:30:49 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-fcltxdoc
Version:	1.0
Release:	7
Summary:	Macros for use in the author's documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fcltxdoc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fcltxdoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fcltxdoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fcltxdoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is not advertised for public use, but is necessary
for the support of others of the author's packages (which are
compiled under the ltxdoc class).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fcltxdoc/fcltxdoc.sty
%doc %{_texmfdistdir}/doc/latex/fcltxdoc/fcltxdoc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fcltxdoc/fcltxdoc.drv
%doc %{_texmfdistdir}/source/latex/fcltxdoc/fcltxdoc.dtx
%doc %{_texmfdistdir}/source/latex/fcltxdoc/fcltxdoc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18350 |21mr|texlive-featpost-0.8.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-featpost
Version:	0.8.8
Release:	2
Summary:	MetaPost macros for 3D
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/featpost
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/featpost.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/featpost.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These macros allow the production of three-dimensional schemes
containing: angles, circles, cylinders, cones and spheres,
among other things.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/featpost
%doc %{_texmfdistdir}/doc/metapost/featpost

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18351 |21mr|texlive-fetamont-20170415-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 43812
# category Package
# catalog-ctan /fonts/fetamont
# catalogue-date 2017-04-15 14:54:39 +0200
# catalog-license lppl1.3
# catalog-version 20170415
Name:		texlive-fetamont
Version:	20170415
Release:	1
Summary:	Extended version of Knuth's logo typeface
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/fetamont
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fetamont.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fetamont.doc.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fetamont.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Logo typeface, which is known from logos like METAFONT, METAPOST or 
METATYPE1 used to be very limited in the number of glyphs. The Fetamont 
typeface extends the Logo fonts to complete the T1 encoding. The designs
of the glyphs A, E, F, M, N, O, P, S, T are based on the METAFONT 
constructions by D. E. Knuth. The glyphs Y and 1 imitate the shapes of 
the corresponding glyphs in the METATYPE1 logo that is due to the 
METATYPE1 team (Boguslaw Jackowski, Janusz M. Nowacki and Piotr 
Strzelczyk). There exists a LaTeX package for the Fetamont typeface.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/fetamont
%{_texmfdistdir}/fonts/map/dvips/fetamont
%{_texmfdistdir}/fonts/opentype/public
%{_texmfdistdir}/fonts/source/public/fetamont
%{_texmfdistdir}/fonts/tfm/public/fetamont
%{_texmfdistdir}/fonts/type1/public/fetamont
%{_texmfdistdir}/tex/latex/fetamont
%doc %{_texmfdistdir}/doc/fonts/fetamont
#- source
%doc %{_texmfdistdir}/source/fonts/fetamont

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18352 |21mr|texlive-fetchcls-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fetchcls
Version:	1.0
Release:	1
Summary:	Fetch the current class name
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fetchcls
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fetchcls.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fetchcls.doc.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/fetchcls.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
With standard LaTeX you are able to check for the class in use
invoking the kernel command \@ifclassloaded. However, doing so
you cannot get the explicit class name, unless you want to loop
over every possible class name until \@ifclassloaded returns
true -- don't do that! With the help of the present package you
can obtain the name of the current class with significantly
less effort. Just load the package as usual:
\usepackage{fetchcls}; then, the control sequence \classname
will hold the name you were looking for.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fetchcls
%doc %{_texmfdistdir}/doc/latex/fetchcls
%doc %{_texmfdistdir}/source/latex/fetchcls
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18353 |21mr|texlive-feupphdteses-4.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30962
# category Package
# catalog-ctan /macros/latex/contrib/feupphdteses
# catalog-date 2013-06-19 18:27:53 +0200
# catalog-license lppl
# catalog-version 4.0
Name:		texlive-feupphdteses
Version:	4.0
Release:	10
Summary:	Typeset Engineering PhD theses at the University of Porto
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/feupphdteses
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feupphdteses.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feupphdteses.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A complete template for thesis/works of Faculdade de Engenharia
da Universidade do Porto (FEUP) Faculty of Engineering
University of Porto.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/feupphdteses/feupphdteses.sty
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Abbs.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Abstract.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Acknow.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Appendix.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Chapter2.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Chapter3.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Conclusions.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Dedicatory.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Figures/uporto-feup.pdf
%doc %{_texmfdistdir}/doc/latex/feupphdteses/IEEEtranN.bst
%doc %{_texmfdistdir}/doc/latex/feupphdteses/IEEEtranSN.bst
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Intro.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Publications.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Quote.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/README
%doc %{_texmfdistdir}/doc/latex/feupphdteses/References.bib
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Resumo.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Template_EN.pdf
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Template_EN.tcp
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Template_EN.tex
%doc %{_texmfdistdir}/doc/latex/feupphdteses/Template_EN.tps
%doc %{_texmfdistdir}/doc/latex/feupphdteses/mymacros.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18354 |21mr|texlive-feynmf-1.08-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17259
# category Package
# catalog-ctan /macros/latex/contrib/feynmf
# catalog-date 2010-03-01 15:04:13 +0100
# catalog-license gpl
# catalog-version 1.08
Name:		texlive-feynmf
Version:	1.08
Release:	7
Summary:	Macros and fonts for creating Feynman (and other) diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/feynmf
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feynmf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feynmf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feynmf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The feynmf package provides an interface to MetaFont (inspired
by the facilities of mfpic) to use simple structure
specifications to produce relatively complex diagrams. (The
feynmp package, also part of this bundle, uses MetaPost in the
same way.) While the package was designed for Feynman diagrams,
it could in principle be used for diagrams in graph and similar
theories, where the structure is semi-algorithmically
determined.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metafont/feynmf/feynmf.mf
%{_texmfdistdir}/metapost/feynmf/feynmp.mp
%{_texmfdistdir}/metapost/feynmf/manpics.mp
%{_texmfdistdir}/tex/latex/feynmf/feynmf.sty
%{_texmfdistdir}/tex/latex/feynmf/feynmp.sty
%doc %{_texmfdistdir}/doc/latex/feynmf/Announce
%doc %{_texmfdistdir}/doc/latex/feynmf/COPYING
%doc %{_texmfdistdir}/doc/latex/feynmf/Feynman.Diagrams
%doc %{_texmfdistdir}/doc/latex/feynmf/README
%doc %{_texmfdistdir}/doc/latex/feynmf/Tutorial
%doc %{_texmfdistdir}/doc/latex/feynmf/fmfman.pdf
%doc %{_texmfdistdir}/doc/latex/feynmf/manpics.1
%doc %{_texmfdistdir}/doc/latex/feynmf/manpics.2
%doc %{_texmfdistdir}/doc/latex/feynmf/manpics.3
%doc %{_texmfdistdir}/doc/latex/feynmf/template.tex
#- source
%doc %{_texmfdistdir}/source/latex/feynmf/Makefile
%doc %{_texmfdistdir}/source/latex/feynmf/feynmf.drv
%doc %{_texmfdistdir}/source/latex/feynmf/feynmf.dtx
%doc %{_texmfdistdir}/source/latex/feynmf/feynmf.ins
%doc %{_texmfdistdir}/source/latex/feynmf/feynmf.pl
%doc %{_texmfdistdir}/source/latex/feynmf/feynmf209.ins
%doc %{_texmfdistdir}/source/latex/feynmf/feynmp.drv
%doc %{_texmfdistdir}/source/latex/feynmf/fmfman.drv
%doc %{_texmfdistdir}/source/latex/feynmf/fmfmanps.drv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metafont metapost tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18355 |21mr|texlive-feynmp-auto-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30223
# category Package
# catalog-ctan /macros/latex/contrib/feynmp-auto
# catalog-date 2013-05-03 17:23:09 +0200
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-feynmp-auto
Version:	1.1
Release:	10
Summary:	Automatic processing of feynmp graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/feynmp-auto
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feynmp-auto.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feynmp-auto.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/feynmp-auto.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package takes care of running Metapost on the output files
produced by the feynmp package, so that the compiled pictures
will be available in the next run of LaTeX. The package honours
options that apply to feynmp.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/feynmp-auto/feynmp-auto.sty
%doc %{_texmfdistdir}/doc/latex/feynmp-auto/README
%doc %{_texmfdistdir}/doc/latex/feynmp-auto/feynmp-auto.pdf
#- source
%doc %{_texmfdistdir}/source/latex/feynmp-auto/feynmp-auto.dtx
%doc %{_texmfdistdir}/source/latex/feynmp-auto/feynmp-auto.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18356 |21mr|texlive-ffslides-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ffslides
Version:	20160624
Release:	1
Summary:	Freeform slides based on the article class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ffslides
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/ffslides.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/ffslides.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The ffslides ("freeform slides") class is intended to make it
easier to place various types of content freely on the page,
and therefore easier to design documents with a strong visual
component: presentations, posters, research or lecture notes,
and so on. The goal of the class is to be less rigid and less
complex than some of the popular presentation-making options.
It is essentially a small set of macros added to the article
class. A well-organized template file is included, and the
documentation is itself an extensive example of the class's
capabilities.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ffslides
%doc %{_texmfdistdir}/doc/latex/ffslides

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18357 |21mr|texlive-fifinddo-info-1.1b-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /info/fifinddo-info
# catalog-date 2012-05-29 13:27:24 +0200
# catalog-license lppl1.3
# catalog-version 1.1b
Name:		texlive-fifinddo-info
Version:	1.1b
Release:	12
Summary:	German HTML beamer presentation on nicetext and morehype
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/fifinddo-info
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fifinddo-info.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fifinddo-info.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fifinddo-info.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The bundle: - exhibits the process of making an "HTML beamer
presentation" with the blogdot package from the morehype
bundle, and - offers a sketch (in German) of package
documentation and HTML generation based on the fifinddo
package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/LIESMICH.txt
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/README
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/dante-mv45-lueck.pdf
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/dantev45.htm
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/mdoccorr.pdf
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-1180-clean.html
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-1180-com.html
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-768-com.html
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-768-exact-frame.html
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-768-exact-show.html
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-768-filltype-show.html
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-992-com.html
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-992-exact-frame.html
%doc %{_texmfdistdir}/doc/latex/fifinddo-info/variants/dantev45-992-exact.html
#- source
%doc %{_texmfdistdir}/source/latex/fifinddo-info/SrcFILEs.txt
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makeelse/expose.tex
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makeelse/mdoccorr.tex
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makeelse/srcfiles.tex
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makeelse/updsfl.sh
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makeone/dantev45.fdf
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makeone/dantev45.tex
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makeone/makedot.tex
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makevars/bashvars.sh
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makevars/dantev45.cfg
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makevars/longdan.sh
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makevars/makedots.tex
%doc %{_texmfdistdir}/source/latex/fifinddo-info/makevars/texvars.sh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18358 |21mr|texlive-fig4latex-0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /graphics/fig4latex
# catalog-date 2009-11-09 22:14:03 +0100
# catalog-license gpl3
# catalog-version 0.2
Name:		texlive-fig4latex
Version:	0.2
Release:	8
Summary:	Management of figures for large LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/fig4latex
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fig4latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fig4latex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-fig4latex.bin = %{EVRD}

%description
Fig4LaTeX simplifies management of the figures in a large LaTeX
document. Fig4LaTeX is appropriate for projects that include
figures with graphics created by XFig -- in particular,
graphics which use the combined PS/LaTeX (or PDF/LaTeX) export
method. An example document (with its output) is provided.


#-----------------------------------------------------------------------
%files
%{_bindir}/fig4latex
%{_texmfdistdir}/scripts/fig4latex/fig4latex
%doc %{_texmfdistdir}/doc/support/fig4latex/CHANGES
%doc %{_texmfdistdir}/doc/support/fig4latex/COPYING
%doc %{_texmfdistdir}/doc/support/fig4latex/README
%doc %{_texmfdistdir}/doc/support/fig4latex/example.pdf
%doc %{_texmfdistdir}/doc/support/fig4latex/example.tex
%doc %{_texmfdistdir}/doc/support/fig4latex/figs/div_alg_flowchart.fig
%doc %{_texmfdistdir}/doc/support/fig4latex/figs/if-then_flowchart.fig

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/fig4latex/fig4latex fig4latex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18359 |21mr|texlive-figbas-1.0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28943
# category Package
# catalog-ctan /fonts/figbas
# catalog-date 2012-08-15 13:45:23 +0200
# catalog-license lppl
# catalog-version 1.0.3
Name:		texlive-figbas
Version:	1.0.3
Release:	10
Summary:	Mini-fonts for figured-bass notation in music
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/figbas
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/figbas.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/figbas.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package consists of three mini-fonts (and associated
metrics) of conventional ligatures for the figured-bass
notations 2+, 4+, 5+, 6+ and 9+ in music manuscripts. The fonts
are usable with Computer Modern Roman and Sans, and
Palatino/Palladio, respectively.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/figbas/cmrj.afm
%{_texmfdistdir}/fonts/afm/public/figbas/cmssj.afm
%{_texmfdistdir}/fonts/afm/public/figbas/plrj.afm
%{_texmfdistdir}/fonts/map/dvips/figbas/figbas.map
%{_texmfdistdir}/fonts/tfm/public/figbas/cmrj.tfm
%{_texmfdistdir}/fonts/tfm/public/figbas/cmssj.tfm
%{_texmfdistdir}/fonts/tfm/public/figbas/plrj.tfm
%{_texmfdistdir}/fonts/type1/public/figbas/cmrj.pfb
%{_texmfdistdir}/fonts/type1/public/figbas/cmssj.pfb
%{_texmfdistdir}/fonts/type1/public/figbas/plrj.pfb
%doc %{_texmfdistdir}/doc/fonts/figbas/README
%doc %{_texmfdistdir}/doc/fonts/figbas/example.pdf
%doc %{_texmfdistdir}/doc/fonts/figbas/example.tex
%doc %{_texmfdistdir}/doc/fonts/figbas/figbas.pdf
%doc %{_texmfdistdir}/doc/fonts/figbas/figbas.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18360 |21mr|texlive-figsize-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18784
# category Package
# catalog-ctan /macros/latex/contrib/figsize
# catalog-date 2006-12-13 12:28:27 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-figsize
Version:	0.1
Release:	7
Summary:	Auto-size graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/figsize
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/figsize.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/figsize.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The FigSize package enables automatic sizing of graphics,
especially when including graphics with the graphicx package.
The user only has to specify the number of graphics that should
fit to a page or fraction there of and the package will
dynamically calculate the correct graphics sizes relative to
the page size. Thus, graphics can be auto-sized to fill a whole
page or fraction and manual changes of graphic sizes are never
needed when changing document layouts. Finally, the package's
dynamic lengths can be used to allow other document element
sizes to be dynamic.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/figsize/figsize.sty
%doc %{_texmfdistdir}/doc/latex/figsize/README
%doc %{_texmfdistdir}/doc/latex/figsize/epsfig.eps
%doc %{_texmfdistdir}/doc/latex/figsize/figsize.pdf
%doc %{_texmfdistdir}/doc/latex/figsize/figsize.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18361 |21mr|texlive-filecontents-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24250
# category Package
# catalog-ctan /macros/latex/contrib/filecontents
# catalog-date 2011-10-09 16:42:04 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-filecontents
Version:	1.4
Release:	2
Summary:	Extended filecontents and filecontents* environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/filecontents
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filecontents.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filecontents.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filecontents.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX2e's filecontents and filecontents* environments enable a
LaTeX source file to generate external files as it runs through
LaTeX. However, there are two limitations of these
environments: they refuse to overwrite existing files, and they
can only be used in the preamble of a document. The
filecontents package removes these limitations, letting you
overwrite existing files and letting you use
filecontents/filecontents* anywhere.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/filecontents/filecontents.sty
%doc %{_texmfdistdir}/doc/latex/filecontents/README
%doc %{_texmfdistdir}/doc/latex/filecontents/filecontents.pdf
#- source
%doc %{_texmfdistdir}/source/latex/filecontents/filecontents.dtx
%doc %{_texmfdistdir}/source/latex/filecontents/filecontents.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18362 |21mr|texlive-filecontentsdef-1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-filecontentsdef
Version:	1.5
Release:	2
Epoch:		1
Summary:	TeXLive filecontentsdef package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filecontentsdef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filecontentsdef.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filecontentsdef.source.tar.xz 
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides two environments called 
filecontentsdef and filecontentshere. They 
are derived from the LATEX filecontents 
environment as provided by Scott Pakin's 
filecontents package. In addition to the file 
creation they either store the (verbatim) 
contents in a macro (filecontentsdef) or 
typeset them (verbatim) on the spot 
(filecontentshere).
The author developed the package to display 
TEX code verbatim in documentation and the 
same time produce the corresponding files 
during the LATEX run in order to embed them 
in the PDF as file attachment annotations 
(by using Scott Pakin's package attachfile).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18363 |21mr|texlive-filedate-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29529
# category Package
# catalog-ctan /macros/latex/contrib/filedate
# catalog-date 2012-11-14 11:01:29 +0100
# catalog-license lppl
# catalog-version 0.4
Name:		texlive-filedate
Version:	20190228
Release:	1
Summary:	Access and compare info and modification dates
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/filedate
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filedate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filedate.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filedate.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides basic access to the date of a LaTeX source
file according to its \Provides... entry (the "info date") as
well as to its modification date according to \pdffilemoddate
if the latter is available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/filedate/filedate.RLS
%{_texmfdistdir}/tex/latex/filedate/filedate.sty
%doc %{_texmfdistdir}/doc/latex/filedate/Announce.txt
%doc %{_texmfdistdir}/doc/latex/filedate/README
%doc %{_texmfdistdir}/doc/latex/filedate/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/filedate/filedate.pdf
#- source
%doc %{_texmfdistdir}/source/latex/filedate/fdatechk.tex
%doc %{_texmfdistdir}/source/latex/filedate/filedate.tex
%doc %{_texmfdistdir}/source/latex/filedate/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18364 |21mr|texlive-filehook-0.5d-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24280
# category Package
# catalog-ctan /macros/latex/contrib/filehook
# catalog-date 2011-10-13 10:45:00 +0200
# catalog-license lppl1.3
# catalog-version 0.5d
Name:		texlive-filehook
Version:	0.5d
Release:	7
Summary:	Hooks for input files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/filehook
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filehook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filehook.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filehook.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides several file hooks (AtBegin, AtEnd, ...)
for files read by \input, \include and \InputIfFileExists.
General hooks for all such files (e.g. all \include'd ones) and
file specific hooks only used for named files are provided; two
hooks are provided for the end of \included files -- one
before, and one after the final \clearpage.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/filehook/filehook-fink.sty
%{_texmfdistdir}/tex/latex/filehook/filehook-listings.sty
%{_texmfdistdir}/tex/latex/filehook/filehook-memoir.sty
%{_texmfdistdir}/tex/latex/filehook/filehook-scrlfile.sty
%{_texmfdistdir}/tex/latex/filehook/filehook.sty
%{_texmfdistdir}/tex/latex/filehook/pgf-filehook.sty
%doc %{_texmfdistdir}/doc/latex/filehook/README
%doc %{_texmfdistdir}/doc/latex/filehook/filehook.pdf
#- source
%doc %{_texmfdistdir}/source/latex/filehook/filehook.dtx
%doc %{_texmfdistdir}/source/latex/filehook/filehook.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18365 |21mr|texlive-fileinfo-0.81a-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28421
# category Package
# catalog-ctan /macros/latex/contrib/fileinfo
# catalog-date 2012-12-02 13:05:20 +0100
# catalog-license lppl1.3
# catalog-version 0.81a
Name:		texlive-fileinfo
Version:	0.81a
Release:	10
Summary:	Enhanced display of LaTeX File Information
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fileinfo
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fileinfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fileinfo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fileinfo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides two packages, readprov and myfilist. The
readprov package provides a means of reading file information
without loading the body of the file. The myfilist package uses
readprov and controls what \listfiles will report.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fileinfo/fileinfo.RLS
%{_texmfdistdir}/tex/latex/fileinfo/myfilist.sty
%{_texmfdistdir}/tex/latex/fileinfo/readprov.sty
%doc %{_texmfdistdir}/doc/latex/fileinfo/README
%doc %{_texmfdistdir}/doc/latex/fileinfo/README.pdf
%doc %{_texmfdistdir}/doc/latex/fileinfo/RELEASEs.txt
%doc %{_texmfdistdir}/doc/latex/fileinfo/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/fileinfo/myfilist.pdf
%doc %{_texmfdistdir}/doc/latex/fileinfo/readprov.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fileinfo/README.tex
%doc %{_texmfdistdir}/source/latex/fileinfo/fdatechk.tex
%doc %{_texmfdistdir}/source/latex/fileinfo/gather.tex
%doc %{_texmfdistdir}/source/latex/fileinfo/myfilist.tex
%doc %{_texmfdistdir}/source/latex/fileinfo/readprov.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18366 |21mr|texlive-filemod-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24042
# category Package
# catalog-ctan /macros/latex/contrib/filemod
# catalog-date 2011-09-21 00:38:26 +0200
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-filemod
Version:	1.2
Release:	7
Summary:	Provide file modification times, and compare them
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/filemod
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filemod.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/filemod.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros to read and compare the
modification dates of files. The files may be .tex files,
images or other files (as long as they can be found by LaTeX).
It uses the \pdffilemoddate primitive of pdfLaTeX to find the
file modification date as PDF date string, parses the string
and returns the value to the user. The package will also work
for DVI output with recent versions of the LaTeX compiler which
uses pdfLaTeX in DVI mode. The functionality is provided by
purely expandable macros or by faster but non-expandable ones.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/filemod/filemod-expmin.tex
%{_texmfdistdir}/tex/generic/filemod/filemod.tex
%{_texmfdistdir}/tex/latex/filemod/filemod-expmin.sty
%{_texmfdistdir}/tex/latex/filemod/filemod.sty
%doc %{_texmfdistdir}/doc/latex/filemod/README
%doc %{_texmfdistdir}/doc/latex/filemod/filemod.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18367 |21mr|texlive-finbib-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/misc/finplain.bst
# catalog-date 2008-12-07 00:01:13 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-finbib
Version:	20190228
Release:	1
Summary:	A Finnish version of plain.bst
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/misc/finplain.bst
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/finbib.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive finbib package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/finbib/finplain.bst

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18368 |21mr|texlive-fink-2.2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24329
# category Package
# catalog-ctan /macros/latex/contrib/fink
# catalog-date 2011-10-19 14:04:28 +0200
# catalog-license lppl
# catalog-version 2.2.1
Name:		texlive-fink
Version:	2.2.1
Release:	7
Summary:	The LaTeX2e File Name Keeper
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fink
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fink.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fink.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fink.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
This package "looks over your shoulder" and keeps track of
files \input'ed (the LaTeX way) or \include'ed in your
document. You then have permanent access to the name of the
file currently being processed through the macro \finkfile.
FiNK also comes with support for AUC-TeX. As of version 2.2.1,
FiNK has been deprecated and is not maintained anymore. People
interested in FiNK's functionality are invited to use a package
named currfile instead.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fink/fink.sty
%doc %{_texmfdistdir}/doc/latex/fink/NEWS
%doc %{_texmfdistdir}/doc/latex/fink/README
%doc %{_texmfdistdir}/doc/latex/fink/THANKS
%doc %{_texmfdistdir}/doc/latex/fink/fink.el
%doc %{_texmfdistdir}/doc/latex/fink/fink.pdf
%doc %{_texmfdistdir}/doc/latex/fink/header.inc
#- source
%doc %{_texmfdistdir}/source/latex/fink/fink.dtx
%doc %{_texmfdistdir}/source/latex/fink/fink.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18369 |21mr|texlive-finstrut-0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21719
# category Package
# catalog-ctan /macros/latex/contrib/finstrut
# catalog-date 2011-03-14 20:53:55 +0100
# catalog-license lppl1.3
# catalog-version 0.5
Name:		texlive-finstrut
Version:	0.5
Release:	7
Summary:	Adjust behaviour of the ends of footnotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/finstrut
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/finstrut.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/finstrut.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/finstrut.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The LaTeX internal command \@finalstrut is used automatically
used at the end of footnote texts to insert a strut to avoid
mis-spacing of multiple footnotes. Unfortunately the command
can cause a blank line at the end of a footnote. The package
provides a solution to this problem.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/finstrut/finstrut.sty
%doc %{_texmfdistdir}/doc/latex/finstrut/README
%doc %{_texmfdistdir}/doc/latex/finstrut/SRCFILEs.txt
%doc %{_texmfdistdir}/doc/latex/finstrut/finstrut.pdf
%doc %{_texmfdistdir}/doc/latex/finstrut/fstrutst.pdf
#- source
%doc %{_texmfdistdir}/source/latex/finstrut/finstrut.tex
%doc %{_texmfdistdir}/source/latex/finstrut/fstrutst.tex
%doc %{_texmfdistdir}/source/latex/finstrut/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18370 |21mr|texlive-first-latex-doc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-first-latex-doc
Version:	20190228
Release:	1
Summary:	A document for absolute LaTeX beginners
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/first-latex-doc
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/first-latex-doc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/first-latex-doc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document leads a reader, who knows nothing about LaTeX,
through the production of a two page document. The user who has
completed that first document, and wants to carry on, will find
recommendations for tutorials.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/first-latex-doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18371 |21mr|texlive-fithesis-0.3.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fithesis
Version:	0.3.50
Release:	1
Summary:	fithesis – Thesis class and template for Masaryk University (Brno, Czech Republic)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fithesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fithesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fithesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fithesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A document class for the typesetting of theses at the Masaryk
University (Brno, Czech Republic). The class has been designed
for easy extensibility by style and locale files of other
academic institutions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fithesis
%doc %{_texmfdistdir}/doc/latex/fithesis
%doc %{_texmfdistdir}/source/latex/fithesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18372 |21mr|texlive-fix2col-0.04-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17133
# category Package
# catalog-ctan /macros/latex/contrib/fix2col
# catalog-date 2010-02-23 16:16:11 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-fix2col
Version:	0.04
Release:	3
Epoch:		1
Summary:	Fix miscellaneous two column mode features
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fix2col
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fix2col.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fix2col.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fix2col.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Fix mark handling so that \firstmark is taken from the first
column if that column has any marks at all; keep two column
floats like figure* in sequence with single column floats like
figure.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fix2col/fix2col.sty
%doc %{_texmfdistdir}/doc/latex/fix2col/README
%doc %{_texmfdistdir}/doc/latex/fix2col/fix2col.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fix2col/fix2col.dtx
%doc %{_texmfdistdir}/source/latex/fix2col/fix2col.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18373 |21mr|texlive-fixcmex-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fixcmex
Version:	1.1
Release:	1
Summary:	The fixcmex package provides fully scalable Computer Modern Math Extensions font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fixcmex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixcmex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixcmex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixcmex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a fully scalable version of the Computer
Modern Math Extension font for curing sizing problems mainly
with lmodern. It can be used when the main font of the document
is Computer Modern (or European Modern, if T1 encoding is
selected), or Latin Modern. It redefines the math extension
font so that it becomes arbitrarily scalable, using the optical
size fonts provided by the AMS together with the original
cmex10 font.

%files
%{_texmfdistdir}/tex/latex/fixcmex/fixcmex.sty
%doc %{_texmfdistdir}/doc/latex/fixcmex/fixcmex.pdf
%doc %{_texmfdistdir}/doc/latex/fixcmex/README
#- source
%doc %{_texmfdistdir}/source/latex/fixcmex/fixcmex.dtx
%doc %{_texmfdistdir}/source/latex/fixcmex/fixcmex.ins

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18374 |21mr|texlive-fixfoot-0.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17131
# category Package
# catalog-ctan /macros/latex/contrib/fixfoot
# catalog-date 2010-02-20 00:32:21 +0100
# catalog-license lppl
# catalog-version 0.3a
Name:		texlive-fixfoot
Version:	0.3a
Release:	7
Summary:	Multiple use of the same footnote text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fixfoot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixfoot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixfoot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a \DeclareFixedFootnote command to provide a single
command for a frequently-used footnote. The package ensures
that only one instance of the footnote text appears on each
page (LaTeX needs to be run several times to achieve this).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fixfoot/fixfoot.sty
%doc %{_texmfdistdir}/doc/latex/fixfoot/README
%doc %{_texmfdistdir}/doc/latex/fixfoot/fixfoot.pdf
%doc %{_texmfdistdir}/doc/latex/fixfoot/fixfoot.tex
%doc %{_texmfdistdir}/doc/latex/fixfoot/testfix.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18375 |21mr|texlive-fixjfm-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fixjfm
Version:	1.1
Release:	1
Summary:	The fixjfm package provides fully scalable Computer Modern Math Extensions font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fixjfm
License:	Knuth License
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixjfm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixjfm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package fixes several bugs in the JFM format. Both LaTeX and plain TeX are supported.

%files
%{_texmfdistdir}/tex/generic/fixjfm/fixjfm.sty
%doc %{_texmfdistdir}/doc/generic/fixjfm/fixjfm-doc.pdf
%doc %{_texmfdistdir}/doc/generic/fixjfm/fixjfm-doc.tex
%doc %{_texmfdistdir}/doc/generic/fixjfm/README

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18376 |21mr|texlive-fixlatvian-1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21631
# category Package
# catalog-ctan /macros/xetex/latex/fixlatvian
# catalog-date 2011-03-06 19:31:04 +0100
# catalog-license lppl1.3
# catalog-version 1a
Name:		texlive-fixlatvian
Version:	1a
Release:	7
Summary:	Improve Latvian language support in XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/fixlatvian
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixlatvian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixlatvian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixlatvian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers improvement of the Latvian language support
in polyglossia, in particular in the area of the standard
classes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/fixlatvian/lv.ist
%{_texmfdistdir}/tex/xelatex/fixlatvian/fixlatvian.sty
%doc %{_texmfdistdir}/doc/xelatex/fixlatvian/Makefile
%doc %{_texmfdistdir}/doc/xelatex/fixlatvian/README
%doc %{_texmfdistdir}/doc/xelatex/fixlatvian/fixlatvian.pdf
#- source
%doc %{_texmfdistdir}/source/xelatex/fixlatvian/fixlatvian.dtx
%doc %{_texmfdistdir}/source/xelatex/fixlatvian/fixlatvian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18377 |21mr|texlive-fixltxhyph-0.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25832
# category Package
# catalog-ctan /macros/latex/contrib/fixltxhyph
# catalog-date 2012-04-02 21:14:13 +0200
# catalog-license lppl1.3
# catalog-version 0.4
Name:		texlive-fixltxhyph
Version:	0.4
Release:	6
Summary:	Allow hyphenation of partially-emphasised substrings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fixltxhyph
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixltxhyph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixltxhyph.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixltxhyph.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package fixes the problem of TeX failing to hyphenate
letter strings that seem (to TeX) to be words, but which are
followed by an apostrophe and then an emphasis command. The
cause of the problem is not the apostrophe, but the font change
in the middle of the string. The problem arises in Catalan,
French and Italian (it could arise in Romansh, were there LaTeX
support for it).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fixltxhyph/fixltxhyph.sty
%doc %{_texmfdistdir}/doc/latex/fixltxhyph/README
%doc %{_texmfdistdir}/doc/latex/fixltxhyph/fixltxhyph.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fixltxhyph/fixltxhyph.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18378 |21mr|texlive-fixme-4.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fixme
Version:	4.5
Release:	1
Summary:	Insert "fixme" notes into draft documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fixme
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixme.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixme.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixme.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a way to insert fixme notes in documents
being developed (in draft mode). Such notes can appear in the
margin of the document, as index entries, in the log file and
as warnings on stdout. It is also possible to summarize them in
a list. If your document is in a final version, any remaining
fixme notes will produce an error. FiXme also comes with
support for AUC-TeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fixme
%doc %{_texmfdistdir}/doc/latex/fixme
#- source
%doc %{_texmfdistdir}/source/latex/fixme

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18379 |21mr|texlive-fixmetodonotes-0.2.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30168
# category Package
# catalog-ctan /macros/latex/contrib/fixmetodonotes
# catalog-date 2013-04-28 19:46:12 +0200
# catalog-license pd
# catalog-version 0.2.2
Name:		texlive-fixmetodonotes
Version:	0.2.2
Release:	10
Summary:	Add notes on document development
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fixmetodonotes
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixmetodonotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixmetodonotes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fixmetodonotes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides tools to highlight FIXME and TODO
annotations. The command \listofnotes prints a list of
outstanding notes, with links to the pages on which they
appear.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fixmetodonotes/fixmetodonotes.sty
%doc %{_texmfdistdir}/doc/latex/fixmetodonotes/LICENSE
%doc %{_texmfdistdir}/doc/latex/fixmetodonotes/README
#- source
%doc %{_texmfdistdir}/source/latex/fixmetodonotes/fixmetodonotes.dtx
%doc %{_texmfdistdir}/source/latex/fixmetodonotes/fixmetodonotes.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18380 |21mr|texlive-fjodor-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20220
# category Package
# catalog-ctan /macros/latex/contrib/fjodor
# catalog-date 2010-10-26 21:52:03 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-fjodor
Version:	20190228
Release:	1
Summary:	A selection of layout styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fjodor
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fjodor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fjodor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides several page layouts, selectable by
package options.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fjodor/fjodor.sty
%doc %{_texmfdistdir}/doc/latex/fjodor/README
%doc %{_texmfdistdir}/doc/latex/fjodor/dostojevski.pdf
%doc %{_texmfdistdir}/doc/latex/fjodor/dostojevski.tex
%doc %{_texmfdistdir}/doc/latex/fjodor/fjodor.pdf
%doc %{_texmfdistdir}/doc/latex/fjodor/fjodor.tex
%doc %{_texmfdistdir}/doc/latex/fjodor/srbook-mem.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18381 |21mr|texlive-flabels-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17272
# category Package
# catalog-ctan /macros/latex/contrib/flabels
# catalog-date 2010-02-28 22:13:22 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-flabels
Version:	1.0
Release:	7
Summary:	Labels for files and folders
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/flabels
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flabels.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flabels.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flabels.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Macros for typesetting pretty labels (optionally colored) for
the back of files or binders (currently only the special A4
"Leitz-Ordner" ring binder is supported).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/flabels/flabels.sty
%doc %{_texmfdistdir}/doc/latex/flabels/README
%doc %{_texmfdistdir}/doc/latex/flabels/flabels.pdf
%doc %{_texmfdistdir}/doc/latex/flabels/makedoc
%doc %{_texmfdistdir}/doc/latex/flabels/makedoc-patched
%doc %{_texmfdistdir}/doc/latex/flabels/makedoc.bat
#- source
%doc %{_texmfdistdir}/source/latex/flabels/flabels.dtx
%doc %{_texmfdistdir}/source/latex/flabels/flabels.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18382 |21mr|texlive-flacards-0.1.1b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/flacards
# catalog-date 2010-01-16 19:56:06 +0100
# catalog-license gpl
# catalog-version 0.1.1b
Name:		texlive-flacards
Version:	0.1.1b
Release:	7
Summary:	Generate flashcards for printing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/flacards
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flacards.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flacards.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The flacards class provides an easy interface to produce
flashcards. It will print several cards per page, on both sides
of the paper.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/flacards/flacards.cls
%doc %{_texmfdistdir}/doc/latex/flacards/COPYING
%doc %{_texmfdistdir}/doc/latex/flacards/README
%doc %{_texmfdistdir}/doc/latex/flacards/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/flacards/changelog.txt
%doc %{_texmfdistdir}/doc/latex/flacards/flacards_ex.pdf
%doc %{_texmfdistdir}/doc/latex/flacards/flacards_ex.tex
%doc %{_texmfdistdir}/doc/latex/flacards/flacards_ex1.tex
%doc %{_texmfdistdir}/doc/latex/flacards/flacards_ex2.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18383 |21mr|texlive-flagderiv-0.10-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/flagderiv
# catalog-date 2007-02-22 16:49:05 +0100
# catalog-license gpl
# catalog-version 0.10
Name:		texlive-flagderiv
Version:	0.10
Release:	7
Summary:	Flag style derivation package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/flagderiv
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flagderiv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flagderiv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flagderiv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The flagderiv package is used to create mathematical
derivations using the flag/flagpole notation. The package
features an intuitive command syntax, opening and closing
multiple flagpoles, different comment styles, customizable
symbols and label namespaces.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/flagderiv/flagderiv.sty
%doc %{_texmfdistdir}/doc/latex/flagderiv/README
%doc %{_texmfdistdir}/doc/latex/flagderiv/flagderiv.pdf
#- source
%doc %{_texmfdistdir}/source/latex/flagderiv/flagderiv.dtx
%doc %{_texmfdistdir}/source/latex/flagderiv/flagderiv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18384 |21mr|texlive-flashcards-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19667
# category Package
# catalog-ctan /macros/latex/contrib/flashcards
# catalog-date 2010-08-06 13:03:06 +0200
# catalog-license gpl
# catalog-version 1.0.1
Name:		texlive-flashcards
Version:	1.0.1
Release:	7
Summary:	A class for typesetting flashcards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/flashcards
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flashcards.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flashcards.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flashcards.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The FlashCards class provides for the typesetting of flash
cards. By flash card, we mean a two sided card which has a
prompt or a question on one side and the response or the answer
on the flip (back) side. Flash cards come in many sizes
depending on the nature of the information they contain.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/flashcards/avery5371.cfg
%{_texmfdistdir}/tex/latex/flashcards/avery5388.cfg
%{_texmfdistdir}/tex/latex/flashcards/flashcards.cls
%doc %{_texmfdistdir}/doc/latex/flashcards/COPYING
%doc %{_texmfdistdir}/doc/latex/flashcards/README
%doc %{_texmfdistdir}/doc/latex/flashcards/flashcards.pdf
%doc %{_texmfdistdir}/doc/latex/flashcards/samplecards.tex
#- source
%doc %{_texmfdistdir}/source/latex/flashcards/flashcards.dtx
%doc %{_texmfdistdir}/source/latex/flashcards/flashcards.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18385 |21mr|texlive-flashmovie-0.4-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25768
# category Package
# catalog-ctan /macros/latex/contrib/flashmovie
# catalog-date 2012-03-21 09:27:37 +0100
# catalog-license lppl1.3
# catalog-version 0.4
Name:		texlive-flashmovie
Version:	0.4
Release:	8
Summary:	Directly embed flash movies into PDF files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/flashmovie
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flashmovie.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flashmovie.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows direct embedding of flash movies into PDF
files. It is designed for use with pdflatex. The package takes
advantage of the embedded Adobe Flash player in Adobe Reader 9;
the reader is invoked with the 'rich media annotation' feature,
described in "Adobe Supplement to the ISO 32000 BaseVersion:
1.7 ExtensionLevel: 3". This method of embedding movies is
attractive since it removes all platform dependencies; however,
the user is required to use Acrobat 9.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/flashmovie/flashmovie.sty
%{_texmfdistdir}/tex/latex/flashmovie/player_flv_maxi.swf
%doc %{_texmfdistdir}/doc/latex/flashmovie/README
%doc %{_texmfdistdir}/doc/latex/flashmovie/flv-player-license/MPL-1.1
%doc %{_texmfdistdir}/doc/latex/flashmovie/flv-player-license/license.txt
%doc %{_texmfdistdir}/doc/latex/flashmovie/test-beamer-0.pdf
%doc %{_texmfdistdir}/doc/latex/flashmovie/test-beamer-0.tex
%doc %{_texmfdistdir}/doc/latex/flashmovie/test-beamer-1.tex
%doc %{_texmfdistdir}/doc/latex/flashmovie/test-flv.pdf
%doc %{_texmfdistdir}/doc/latex/flashmovie/test-flv.tex
%doc %{_texmfdistdir}/doc/latex/flashmovie/test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18386 |21mr|texlive-flipbook-0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25584
# category Package
# catalog-ctan /macros/latex/contrib/flipbook
# catalog-date 2012-03-07 15:39:23 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-flipbook
Version:	0.2
Release:	6
Summary:	Typeset flipbook animations, in the corners of documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/flipbook
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flipbook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flipbook.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides techniques for adding flip book animations
in the corner of your LaTeX documents (using images or ASCII
art). Animations are defined as a set of numbered files (e.g.,
"im1.pdf", "im2.pdf", "im3.pdf", ...). The package relies on
fancyhdr to control the corners.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/flipbook/flipbook.sty
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im01.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im01.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im01.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im02.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im02.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im02.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im03.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im03.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im03.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im04.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im04.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im04.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im05.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im05.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im05.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im06.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im06.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an1b/im06.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/an2.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/an2.xcf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im0.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im0.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im00.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im01.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im01.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im02.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im02.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im03.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im03.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im04.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im04.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im05.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im05.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im06.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im06.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im07.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im07.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im08.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im08.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im09.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im09.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im1.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im1.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im10.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im10.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im10.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im10.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im11.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im11.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im11.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im11.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im12.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im12.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im12.gif
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im12.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im13.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im13.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im13.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im14.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im14.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im14.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im15.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im15.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im15.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im16.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im16.fig
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im16.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im2.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im2.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im3.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im3.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im4.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im4.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im5.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im5.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im6.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im6.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im7.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im7.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im8.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im8.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im9.eps
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an2/im9.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/an3.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/an3.pnm
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/an3.xcf
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im1.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im10.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im11.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im12.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im13.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im14.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im15.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im16.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im17.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im18.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im19.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im2.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im20.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im21.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im22.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im23.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im24.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im25.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im26.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im27.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im28.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im29.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im3.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im30.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im31.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im32.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im33.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im34.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im35.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im36.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im37.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im38.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im39.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im4.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im40.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im41.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im42.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im43.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im44.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im45.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im46.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im5.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im6.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im7.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im8.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/an3/im9.png
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/anASCII/an0.tex
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/anASCII/an1.tex
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/anASCII/an2.tex
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/anASCII/an3.tex
%doc %{_texmfdistdir}/doc/latex/flipbook/Images/Anims/anASCII/an4.tex
%doc %{_texmfdistdir}/doc/latex/flipbook/Makefile
%doc %{_texmfdistdir}/doc/latex/flipbook/README
%doc %{_texmfdistdir}/doc/latex/flipbook/flipbook-doc.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/flipbook-doc.tex
%doc %{_texmfdistdir}/doc/latex/flipbook/flipbook-ex.pdf
%doc %{_texmfdistdir}/doc/latex/flipbook/flipbook-ex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18387 |21mr|texlive-flippdf-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/flippdf
# catalog-date 2007-02-27 14:19:10 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-flippdf
Version:	1.0
Release:	7
Summary:	Horizontal flipping of pages with pdfLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/flippdf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flippdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flippdf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flippdf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the production of a document with pages
"mirrored". This is sometimes required by publishers who want
camera-ready documents to be printed on transparent film (to be
viewed from the "wrong" side). The package requires everypage,
and only works with pdfLaTeX in PDF mode.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/flippdf/flippdf.sty
%doc %{_texmfdistdir}/doc/latex/flippdf/README
%doc %{_texmfdistdir}/doc/latex/flippdf/flippdf.pdf
#- source
%doc %{_texmfdistdir}/source/latex/flippdf/flippdf.dtx
%doc %{_texmfdistdir}/source/latex/flippdf/flippdf.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18388 |21mr|texlive-float-1.3d-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/float
# catalog-date 2009-09-26 09:33:53 +0200
# catalog-license lppl
# catalog-version 1.3d
Name:		texlive-float
Version:	1.3d
Release:	7
Summary:	Improved interface for floating objects
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/float
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/float.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/float.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/float.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Improves the interface for defining floating objects such as
figures and tables. Introduces the boxed float, the ruled float
and the plaintop float. You can define your own floats and
improve the behaviour of the old ones. The package also
provides the H float modifier option of the obsolete here
package. You can select this as automatic default with
\floatplacement{figure}{H}.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/float/float.sty
%doc %{_texmfdistdir}/doc/latex/float/README
%doc %{_texmfdistdir}/doc/latex/float/float.pdf
#- source
%doc %{_texmfdistdir}/source/latex/float/float.dtx
%doc %{_texmfdistdir}/source/latex/float/float.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18389 |21mr|texlive-floatflt-1.31-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25540
# category Package
# catalog-ctan /macros/latex/contrib/floatflt
# catalog-date 2012-02-29 15:33:26 +0100
# catalog-license lppl1.3
# catalog-version 1.31
Name:		texlive-floatflt
Version:	1.31
Release:	9
Summary:	Wrap text around floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/floatflt
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/floatflt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/floatflt.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/floatflt.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can float text around figures and tables which do
not span the full width of a page; it improves upon floatfig,
and allows tables/figures to be set left/right or alternating
on even/odd pages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/floatflt/floatflt.sty
%doc %{_texmfdistdir}/doc/latex/floatflt/README
%doc %{_texmfdistdir}/doc/latex/floatflt/floatexm.tex
%doc %{_texmfdistdir}/doc/latex/floatflt/floatfge.tex
%doc %{_texmfdistdir}/doc/latex/floatflt/floatfig.txt
%doc %{_texmfdistdir}/doc/latex/floatflt/floatflt.pdf
#- source
%doc %{_texmfdistdir}/source/latex/floatflt/floatflt.dtx
%doc %{_texmfdistdir}/source/latex/floatflt/floatflt.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18390 |21mr|texlive-floatrow-0.3b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/floatrow
# catalog-date 2009-09-27 10:36:15 +0200
# catalog-license lppl
# catalog-version 0.3b
Name:		texlive-floatrow
Version:	0.3b
Release:	7
Summary:	Modifying the layout of floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/floatrow
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/floatrow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/floatrow.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/floatrow.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The floatrow package provides many ways to customize layouts of
floating environments and has code to cooperate with the
caption 3.x package. The package offers mechanisms to put
floats side by side, and to put the caption beside its float.
The floatrow settings could be expanded to the floats created
by packages rotating, wrapfig, subfig (in the case of rows of
subfloats), and longtable.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/floatrow/floatpagestyle.sty
%{_texmfdistdir}/tex/latex/floatrow/floatrow.sty
%{_texmfdistdir}/tex/latex/floatrow/fr-fancy.sty
%{_texmfdistdir}/tex/latex/floatrow/fr-longtable.sty
%{_texmfdistdir}/tex/latex/floatrow/fr-subfig.sty
%{_texmfdistdir}/tex/latex/floatrow/listpen.sty
%doc %{_texmfdistdir}/doc/latex/floatrow/README
%doc %{_texmfdistdir}/doc/latex/floatrow/floatrow-rus.pdf
%doc %{_texmfdistdir}/doc/latex/floatrow/floatrow-rus.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/floatrow.pdf
%doc %{_texmfdistdir}/doc/latex/floatrow/fr-sample.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample01.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample02.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample03.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample04.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample05.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample06.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample07.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample10.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample11.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/frsample12.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/pictures.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/sample-longtable-rus.tex
%doc %{_texmfdistdir}/doc/latex/floatrow/sample-longtable.tex
#- source
%doc %{_texmfdistdir}/source/latex/floatrow/floatrow.dtx
%doc %{_texmfdistdir}/source/latex/floatrow/floatrow.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18391 |21mr|texlive-flowchart-3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29153
# category Package
# catalog-ctan /graphics/pgf/contrib/flowchart
# catalog-date 2013-02-18 18:17:35 +0100
# catalog-license lppl1.3
# catalog-version 3.2
Name:		texlive-flowchart
Version:	3.3
Release:	2
Summary:	Shapes for drawing flowcharts, using TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/flowchart
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flowchart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flowchart.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flowchart.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a set of 'traditional' flowchart element
shapes; the documentation shows how to build a flowchart from
these elements, using pgf/TikZ. The package also requires the
makeshape package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/flowchart/flowchart.sty
%doc %{_texmfdistdir}/doc/latex/flowchart/README
%doc %{_texmfdistdir}/doc/latex/flowchart/flowchart.pdf
#- source
%doc %{_texmfdistdir}/source/latex/flowchart/flowchart.dtx
%doc %{_texmfdistdir}/source/latex/flowchart/flowchart.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18392 |21mr|texlive-flowfram-1.17-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-flowfram
Version:	1.17
Release:	3
Summary:	Create text frames for posters, brochures or magazines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/flowfram
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flowfram.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flowfram.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/flowfram.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The flowfram package enables you to create frames in a document
such that the contents of the document environment flow from
one frame to the next in the order in which they were defined.
This is useful for creating posters or magazines, indeed any
form of document that does not conform to the standard one or
two column layout.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/flowfram
%{_texmfdistdir}/tex/latex/flowfram
%doc %{_texmfdistdir}/doc/latex/flowfram
#- source
%doc %{_texmfdistdir}/source/latex/flowfram

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18393 |21mr|texlive-fmp-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fmp
Version:	20190228
Release:	1
Summary:	Include Functional MetaPost in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fmp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fmp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fmp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fmp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive fmp package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fmp
%doc %{_texmfdistdir}/doc/latex/fmp
#- source
%doc %{_texmfdistdir}/source/latex/fmp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18394 |21mr|texlive-fmtcount-3.05-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fmtcount
Version:	3.05
Release:	3
Summary:	Display the value of a LaTeX counter in a variety of formats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fmtcount
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fmtcount.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fmtcount.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fmtcount.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands that display the value of a LaTeX
counter in a variety of formats (ordinal, text, hexadecimal,
decimal, octal, binary etc). The package offers some
multilingual support; configurations for use in English (both
British and American usage), French (including Belgian and
Swiss variants), German, Italian, Portuguese and Spanish
documents are provided. This package was originally provided as
part of the author's datetime package, but is now distributed
separately.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/fmtcount
%{_texmfdistdir}/tex/latex/fmtcount
%doc %{_texmfdistdir}/doc/latex/fmtcount
#- source
%doc %{_texmfdistdir}/source/latex/fmtcount

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18395 |21mr|texlive-fn2end-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/fn2end
# catalog-date 2009-01-03 10:55:55 +0100
# catalog-license pd
# catalog-version 1.1
Name:		texlive-fn2end
Version:	1.1
Release:	7
Summary:	Convert footnotes to endnotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fn2end
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fn2end.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fn2end.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines macros \makeendnotes, which converts \footnote to
produce endnotes; and \theendnotes which prints them out.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fn2end/fn2end.sty
%doc %{_texmfdistdir}/doc/latex/fn2end/fn2end.pdf
%doc %{_texmfdistdir}/doc/latex/fn2end/fn2end.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18396 |21mr|texlive-fnbreak-1.30-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25003
# category Package
# catalog-ctan /macros/latex/contrib/fnbreak
# catalog-date 2012-01-02 14:24:13 +0100
# catalog-license lppl
# catalog-version 1.30
Name:		texlive-fnbreak
Version:	1.30
Release:	6
Summary:	Warn for split footnotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fnbreak
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnbreak.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnbreak.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnbreak.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package detects footnotes that are split over several
pages, and writes a warning to the log file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fnbreak/fnbreak.sty
%doc %{_texmfdistdir}/doc/latex/fnbreak/ChangeLog
%doc %{_texmfdistdir}/doc/latex/fnbreak/Makefile
%doc %{_texmfdistdir}/doc/latex/fnbreak/README
%doc %{_texmfdistdir}/doc/latex/fnbreak/fnbreak-v.tex
%doc %{_texmfdistdir}/doc/latex/fnbreak/fnbreak.pdf
%doc %{_texmfdistdir}/doc/latex/fnbreak/fnbreak.xml
%doc %{_texmfdistdir}/doc/latex/fnbreak/fnbreaktest.tex
#- source
%doc %{_texmfdistdir}/source/latex/fnbreak/fnbreak.dtx
%doc %{_texmfdistdir}/source/latex/fnbreak/fnbreak.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18397 |21mr|texlive-fncychap-1.34-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fncychap
Version:	1.34
Release:	2
Summary:	Seven predefined chapter heading styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fncychap
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fncychap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fncychap.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Each style can be modified using a set of simple commands.
Optionally one can modify the formatting routines in order to
create additional chapter headings. This package was previously
known as FancyChapter.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fncychap/fncychap.sty
%doc %{_texmfdistdir}/doc/latex/fncychap/Bjarne.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Bjarnes.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Bjornstrup.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/BjornstrupS.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Conny.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Connys.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Glenn.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Glenns.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Lenny.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Lennys.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/README
%doc %{_texmfdistdir}/doc/latex/fncychap/Rejne.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Rejnes.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Sonny.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/Sonnys.eps
%doc %{_texmfdistdir}/doc/latex/fncychap/fncychap.pdf
%doc %{_texmfdistdir}/doc/latex/fncychap/fncychap.tex
%doc %{_texmfdistdir}/doc/latex/fncychap/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18398 |21mr|texlive-fncylab-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17382
# category Package
# catalog-ctan /macros/latex/contrib/fncylab
# catalog-date 2010-03-09 12:54:42 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-fncylab
Version:	1.0
Release:	7
Summary:	Alter the format of \label references
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fncylab
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fncylab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fncylab.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX provides a mechanism for altering the appearance of
references to labels, but it's somewhat flawed, and requires
that the user manipulate internal commands. The package fixes
the flaw in LaTeX, and provides a \labelformat command for
changing the format of references to labels. The package also
provides a \Ref command to make reference to such redefined
labels at the start of a sentence.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fncylab/fncylab.sty
%doc %{_texmfdistdir}/doc/latex/fncylab/fncylab-example.tex
%doc %{_texmfdistdir}/doc/latex/fncylab/fncylab.pdf
%doc %{_texmfdistdir}/doc/latex/fncylab/fncylab.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18399 |21mr|texlive-fnpara-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fnpara
Version:	20190228
Release:	1
Summary:	Footnotes in paragraphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fnpara
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnpara.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnpara.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typeset footnotes in run-on paragraphs, instead of one above
another; this is a re-seating, for the LaTeX environment, of an
example in the TeXbook. The same basic code, improved for use
in e-TeX-based LaTeX, appears in the comprehensive footnote
package footmisc, and superior versions are also available in
the manyfoot and bigfoot packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fnpara
%doc %{_texmfdistdir}/doc/latex/fnpara

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18400 |21mr|texlive-fnpct-0.4f-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fnpct
Version:	0.4f
Release:	1
Summary:	Manage footnote marks' interaction with punctuation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fnpct
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnpct.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnpct.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package moves footnote marks after following punctuation
(comma or full stop), and adjusts kerning as appropriate. As a
side effect, a change to the handling of multiple footnotes is
provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fnpct
%doc %{_texmfdistdir}/doc/latex/fnpct

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18401 |21mr|texlive-fnumprint-1.1a-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29173
# category Package
# catalog-ctan /macros/latex/contrib/fnumprint
# catalog-date 2013-02-19 09:29:17 +0100
# catalog-license lppl1.3
# catalog-version 1.1a
Name:		texlive-fnumprint
Version:	1.1a
Release:	11
Summary:	Print a number in 'appropriate' format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fnumprint
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnumprint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnumprint.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fnumprint.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines two macros which decide to typeset a number
either as an Arabic number or as a word (or words) for the
number. If the number is between zero and twelve (including
zero and twelve) then words will be used; if the number is
outside that range, it will be typeset using the package
numprint Words for English representation of numbers are
generated within the package, while those for German are
generated using the package zahl2string.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fnumprint/fnumprint.sty
%doc %{_texmfdistdir}/doc/latex/fnumprint/README
%doc %{_texmfdistdir}/doc/latex/fnumprint/fnumprint.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fnumprint/fnumprint.dtx
%doc %{_texmfdistdir}/source/latex/fnumprint/fnumprint.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18402 |21mr|texlive-foilhtml-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21855
# category Package
# catalog-ctan /macros/latex/contrib/foilhtml
# catalog-date 2007-01-05 16:07:21 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-foilhtml
Version:	1.2
Release:	7
Summary:	Interface between foiltex and LaTeX2HTML
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/foilhtml
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/foilhtml.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/foilhtml.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/foilhtml.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides integration between FoilTeX and LaTeX2HTML, adding
sectioning commands and elements of logical formatting to
FoilTeX and providing support for FoilTeX commands in
LaTeX2HTML.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/foilhtml/foilhtml.cfg
%{_texmfdistdir}/tex/latex/foilhtml/foilhtml.sty
%doc %{_texmfdistdir}/doc/latex/foilhtml/foilhtml-96.perl
%doc %{_texmfdistdir}/doc/latex/foilhtml/foils-97.perl
%doc %{_texmfdistdir}/doc/latex/foilhtml/foils.perl
%doc %{_texmfdistdir}/doc/latex/foilhtml/readme.v12
#- source
%doc %{_texmfdistdir}/source/latex/foilhtml/foilhtml.drv
%doc %{_texmfdistdir}/source/latex/foilhtml/foilhtml.dtx
%doc %{_texmfdistdir}/source/latex/foilhtml/foilhtml.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18403 |21mr|texlive-fontaxes-1.0d-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24880
# category Package
# catalog-ctan /macros/latex/contrib/fontaxes
# catalog-date 2014-03-23 16:44:03 +0100
# catalog-license lppl1.3
# catalog-version 1.0d
Name:		texlive-fontaxes
Version:	1.0d
Release:	7
Summary:	Additional font axes for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fontaxes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontaxes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontaxes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontaxes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package adds several new font axes on top of LaTeX's New
Font Selection Scheme. In particular, it splits the shape axis
into a primary and a secondary shape axis, and it adds three
new axes to deal with the different figure versions offered by
many professional fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fontaxes/fontaxes.sty
%doc %{_texmfdistdir}/doc/latex/fontaxes/README
%doc %{_texmfdistdir}/doc/latex/fontaxes/fontaxes.pdf
%doc %{_texmfdistdir}/doc/latex/fontaxes/test-fontaxes.tex
#- source
%doc %{_texmfdistdir}/source/latex/fontaxes/fontaxes.dtx
%doc %{_texmfdistdir}/source/latex/fontaxes/fontaxes.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18404 |21mr|texlive-fontbook-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23608
# category Package
# catalog-ctan /macros/xetex/latex/fontbook
# catalog-date 2011-08-17 19:15:50 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-fontbook
Version:	0.2
Release:	7
Summary:	Generate a font book
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/fontbook
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontbook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontbook.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontbook.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of producing a 'book' of font
samples (for evaluation, etc.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/fontbook/fontbook.sty
%doc %{_texmfdistdir}/doc/xelatex/fontbook/README
%doc %{_texmfdistdir}/doc/xelatex/fontbook/fontbook-freefonts.pdf
%doc %{_texmfdistdir}/doc/xelatex/fontbook/fontbook-freefonts.tex
%doc %{_texmfdistdir}/doc/xelatex/fontbook/fontbook.pdf
#- source
%doc %{_texmfdistdir}/source/xelatex/fontbook/fontbook.dtx
%doc %{_texmfdistdir}/source/xelatex/fontbook/fontbook.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18405 |21mr|texlive-font-change-xetex-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-font-change-xetex
Version:	20160624
Release:	1
Summary:	Macros to change text and mathematics fonts in plain XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/font-change-xetex
License:	OTHER-FREE
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/font-change-xetex.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/font-change-xetex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package consists of macros that can be used to typeset
"plain" XeTeX documents using any OpenType or TrueType font
installed on the computer system. The macros allow the user to
change the text mode fonts and some math mode fonts. For any
declared font family, various font style, weight, and size
variants like bold, italics, small caps, etc., are available
through standard and custom TeX control statements. Using the
optional argument of the macros, the available XeTeX font
features and OpenType tags can be accessed. Other features of
the package include activating and deactivating hanging
punctuation, and support for special Unicode characters.

%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18406 |21mr|texlive-fontinst-1.933-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29764
# category Package
# catalog-ctan /fonts/utilities/fontinst
# catalog-date 2012-07-06 12:12:34 +0200
# catalog-license lppl
# catalog-version 1.933
Name:		texlive-fontinst
Version:	1.933
Release:	15
Summary:	Help with installing fonts for TeX and LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/utilities/fontinst
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontinst.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontinst.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontinst.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-fontinst.bin = %{EVRD}

%description
TeX macros for converting Adobe Font Metric files to TeX metric
and virtual font format. Fontinst helps mainly with the number
crunching and shovelling parts of font installation. This means
in practice that it creates a number of files which give the
TeX metrics (and related information) for a font family that
(La)TeX needs to do any typesetting in these fonts. Fontinst
furthermore makes it easy to create fonts containing glyphs
from more than one base font, taking advantage of (e.g.)
"expert" font sets. Fontinst cannot examine files to see if
they contain any useful information, nor automatically search
for files or work with binary file formats; those tasks must
normally be done manually or with the help of some other tool,
such as the pltotf and vptovf programs.


#-----------------------------------------------------------------------
%files
%{_bindir}/fontinst
%{_texmfdistdir}/scripts/texlive/fontinst.sh
%{_texmfdistdir}/tex/fontinst/base/bbox.sty
%{_texmfdistdir}/tex/fontinst/base/cfntinst.sty
%{_texmfdistdir}/tex/fontinst/base/finstmsc.sty
%{_texmfdistdir}/tex/fontinst/base/fontinst.ini
%{_texmfdistdir}/tex/fontinst/base/fontinst.sty
%{_texmfdistdir}/tex/fontinst/base/multislot.sty
%{_texmfdistdir}/tex/fontinst/base/xfntinst.sty
%{_texmfdistdir}/tex/fontinst/latinetx/8r.etx
%{_texmfdistdir}/tex/fontinst/latinetx/8y.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1c.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1cj.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1ctt.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1i.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1ij.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1itt.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1j.etx
%{_texmfdistdir}/tex/fontinst/latinetx/ot1tt.etx
%{_texmfdistdir}/tex/fontinst/latinetx/t1.etx
%{_texmfdistdir}/tex/fontinst/latinetx/t1c.etx
%{_texmfdistdir}/tex/fontinst/latinetx/t1cj.etx
%{_texmfdistdir}/tex/fontinst/latinetx/t1i.etx
%{_texmfdistdir}/tex/fontinst/latinetx/t1ij.etx
%{_texmfdistdir}/tex/fontinst/latinetx/t1j.etx
%{_texmfdistdir}/tex/fontinst/latinetx/txtfdmns.etx
%{_texmfdistdir}/tex/fontinst/latinmtx/8r.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/8y.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/latin.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/latinsc.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/llbuild.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/lsbuild.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/lsfake.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/lsmisc.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/ltcmds.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/ltpunct.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/lubuild.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/newlatin.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/resetsc.mtx
%{_texmfdistdir}/tex/fontinst/latinmtx/unsetalf.mtx
%{_texmfdistdir}/tex/fontinst/mathetx/euex.etx
%{_texmfdistdir}/tex/fontinst/mathetx/eufrak.etx
%{_texmfdistdir}/tex/fontinst/mathetx/eurm.etx
%{_texmfdistdir}/tex/fontinst/mathetx/euscr.etx
%{_texmfdistdir}/tex/fontinst/mathetx/msam.etx
%{_texmfdistdir}/tex/fontinst/mathetx/msbm.etx
%{_texmfdistdir}/tex/fontinst/mathetx/oml.etx
%{_texmfdistdir}/tex/fontinst/mathetx/oms.etx
%{_texmfdistdir}/tex/fontinst/mathetx/omx.etx
%{_texmfdistdir}/tex/fontinst/mathetx/rsfs.etx
%{_texmfdistdir}/tex/fontinst/mathmtx/mathex.mtx
%{_texmfdistdir}/tex/fontinst/mathmtx/mathit.mtx
%{_texmfdistdir}/tex/fontinst/mathmtx/mathsy.mtx
%{_texmfdistdir}/tex/fontinst/misc/csc2x.tex
%{_texmfdistdir}/tex/fontinst/misc/csckrn2x.tex
%{_texmfdistdir}/tex/fontinst/misc/glyphbox.mtx
%{_texmfdistdir}/tex/fontinst/misc/glyphoff.mtx
%{_texmfdistdir}/tex/fontinst/misc/glyphon.mtx
%{_texmfdistdir}/tex/fontinst/misc/kernoff.mtx
%{_texmfdistdir}/tex/fontinst/misc/kernon.mtx
%{_texmfdistdir}/tex/fontinst/misc/osf2x.tex
%{_texmfdistdir}/tex/fontinst/smbletx/digit2.etx
%{_texmfdistdir}/tex/fontinst/smbletx/ts1.etx
%{_texmfdistdir}/tex/fontinst/smbletx/ts1i.etx
%{_texmfdistdir}/tex/fontinst/smbletx/ts1ij.etx
%{_texmfdistdir}/tex/fontinst/smbletx/ts1j.etx
%{_texmfdistdir}/tex/fontinst/smblmtx/resetosf.mtx
%{_texmfdistdir}/tex/fontinst/smblmtx/textcomp.mtx
%{_texmfdistdir}/tex/fontinst/smblmtx/unsetnum.mtx
%{_texmfdistdir}/tex/latex/fontinst/fontdoc.sty
%doc %{_texmfdistdir}/doc/fonts/fontinst/README
%doc %{_texmfdistdir}/doc/fonts/fontinst/encspecs/encspecs.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/encspecs/omxdraft.etx
%doc %{_texmfdistdir}/doc/fonts/fontinst/encspecs/ot1draft.etx
%doc %{_texmfdistdir}/doc/fonts/fontinst/encspecs/t1draft.etx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/basic/basicex.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/basic/basicex2.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/eurofont/Makefile
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/eurofont/eurofont.map
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/eurofont/eurofont.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/Makefile
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/fontptcm.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/mathtest.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/resetsy.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/unsetmu.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/zrhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/zrmhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/zrmkern.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/zrvhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptm/zryhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/Makefile
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/fontptcmx.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/mathptmx.sty
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/mathtestx.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/resetsy.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/unsetmu.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/zrhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/zrmhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/zrmkernx.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/zrvhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/zryhax.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/examples/mathptmx/zrykernx.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/manual/fontinst.pdf
%doc %{_texmfdistdir}/doc/fonts/fontinst/manual/fontinst.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/manual/intro98.pdf
%doc %{_texmfdistdir}/doc/fonts/fontinst/manual/intro98.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/manual/roadmap.eps
%doc %{_texmfdistdir}/doc/fonts/fontinst/talks/et99-font-tables.pdf
%doc %{_texmfdistdir}/doc/fonts/fontinst/talks/et99-font-tutorial.pdf
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/cc-pl.enc
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/comparemetrics.sty
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/comparepls.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/fadrr.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/multislot-test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/multislot.etx
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/omsdraft.etx
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/testsc.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1901test.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1901test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1902test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1905test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1906test.etx
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1906test.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1906test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1913test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1914test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1914testmap.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1914testshow.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1915test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1915testmap.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1916test.mtx
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1916test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1916test2.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1923test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1927test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1928test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1928test2.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1930test.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1931test0.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1931test1.tex
%doc %{_texmfdistdir}/doc/fonts/fontinst/test/v1931test2.tex
%doc %{_mandir}/man1/fontinst.1*
%doc %{_texmfdistdir}/doc/man/man1/fontinst.man1.pdf
#- source
%doc %{_texmfdistdir}/source/fontinst/base/CHANGES
%doc %{_texmfdistdir}/source/fontinst/base/fibasics.dtx
%doc %{_texmfdistdir}/source/fontinst/base/ficommon.dtx
%doc %{_texmfdistdir}/source/fontinst/base/ficonv.dtx
%doc %{_texmfdistdir}/source/fontinst/base/filtfam.dtx
%doc %{_texmfdistdir}/source/fontinst/base/fimain.dtx
%doc %{_texmfdistdir}/source/fontinst/base/fimapgen.dtx
%doc %{_texmfdistdir}/source/fontinst/base/fisource.dvi
%doc %{_texmfdistdir}/source/fontinst/base/fisource.ist
%doc %{_texmfdistdir}/source/fontinst/base/fisource.sty
%doc %{_texmfdistdir}/source/fontinst/base/fisource.tex
%doc %{_texmfdistdir}/source/fontinst/base/fitrig.dtx
%doc %{_texmfdistdir}/source/fontinst/base/fontinst.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texlive/fontinst.sh fontinst
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18407 |21mr|texlive-fontname-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category Package
# catalog-ctan /info/fontname
# catalog-date 2012-07-06 23:09:35 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-fontname
Version:	20190228
Release:	1
Summary:	Scheme for naming fonts in TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/fontname
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontname.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontname.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The scheme for assigning names is described (in the
documentation part of the package), and map files giving the
relation between foundry name and 'TeX-name' are also provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/fontname/adobe.map
%{_texmfdistdir}/fonts/map/fontname/apple.map
%{_texmfdistdir}/fonts/map/fontname/bitstrea.map
%{_texmfdistdir}/fonts/map/fontname/dtc.map
%{_texmfdistdir}/fonts/map/fontname/itc.map
%{_texmfdistdir}/fonts/map/fontname/linot-cd.map
%{_texmfdistdir}/fonts/map/fontname/linotype-cd.map
%{_texmfdistdir}/fonts/map/fontname/linotype.map
%{_texmfdistdir}/fonts/map/fontname/monotype.map
%{_texmfdistdir}/fonts/map/fontname/skey1250.map
%{_texmfdistdir}/fonts/map/fontname/skey1555.map
%{_texmfdistdir}/fonts/map/fontname/softkey-1250.map
%{_texmfdistdir}/fonts/map/fontname/softkey-1555.map
%{_texmfdistdir}/fonts/map/fontname/softkey.map
%{_texmfdistdir}/fonts/map/fontname/special.map
%{_texmfdistdir}/fonts/map/fontname/supplier.map
%{_texmfdistdir}/fonts/map/fontname/texfonts.map
%{_texmfdistdir}/fonts/map/fontname/typeface.map
%{_texmfdistdir}/fonts/map/fontname/urw.map
%{_texmfdistdir}/fonts/map/fontname/variant.map
%{_texmfdistdir}/fonts/map/fontname/weight.map
%{_texmfdistdir}/fonts/map/fontname/width.map
%{_texmfdistdir}/fonts/map/fontname/yandy.map
%doc %{_texmfdistdir}/doc/fonts/fontname/8a.html
%doc %{_texmfdistdir}/doc/fonts/fontname/8r.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Adobe-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Apple-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Bitstream-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/ChangeLog
%doc %{_texmfdistdir}/doc/fonts/fontname/DTC-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Encodings.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Filenames-for-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Font-legalities.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Font-name-lists.html
%doc %{_texmfdistdir}/doc/fonts/fontname/History.html
%doc %{_texmfdistdir}/doc/fonts/fontname/ITC-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Introduction.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Linotype-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Long-names.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Long-naming-scheme.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Makefile
%doc %{_texmfdistdir}/doc/fonts/fontname/Monotype-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Name-mapping-file.html
%doc %{_texmfdistdir}/doc/fonts/fontname/References.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Standard-PostScript-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Suppliers.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Typefaces.html
%doc %{_texmfdistdir}/doc/fonts/fontname/URW-fonts.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Variants.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Weights.html
%doc %{_texmfdistdir}/doc/fonts/fontname/Widths.html
%doc %{_texmfdistdir}/doc/fonts/fontname/bitstrea.aka
%doc %{_texmfdistdir}/doc/fonts/fontname/cork.html
%doc %{_texmfdistdir}/doc/fonts/fontname/dvips.html
%doc %{_texmfdistdir}/doc/fonts/fontname/fontname.aux
%doc %{_texmfdistdir}/doc/fonts/fontname/fontname.cp
%doc %{_texmfdistdir}/doc/fonts/fontname/fontname.html
%doc %{_texmfdistdir}/doc/fonts/fontname/fontname.pdf
%doc %{_texmfdistdir}/doc/fonts/fontname/fontname.texi
%doc %{_texmfdistdir}/doc/fonts/fontname/fontname.toc
%doc %{_texmfdistdir}/doc/fonts/fontname/index.html
%doc %{_texmfdistdir}/doc/fonts/fontname/texmext.html
%doc %{_texmfdistdir}/doc/fonts/fontname/texmital.html
%doc %{_texmfdistdir}/doc/fonts/fontname/texmsym.html
%doc %{_texmfdistdir}/doc/fonts/fontname/texnansi.html
%doc %{_texmfdistdir}/doc/fonts/fontname/texnansx.html
%doc %{_texmfdistdir}/doc/fonts/fontname/xl2.html
%doc %{_texmfdistdir}/doc/fonts/fontname/xt2.html
%doc %{_infodir}/fontname.info*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18408 |21mr|texlive-fontools-20180327-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32749
# category Package
# catalog-ctan /fonts/utilities/fontools
# catalog-date 2014-01-21 20:21:36 +0100
# catalog-license gpl2
# catalog-version undef
Name:		texlive-fontools
Version:	20180327
Release:	2
Summary:	Tools to simplify using fonts (especially TT/OTF ones)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/utilities/fontools
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-fontools.bin = %{EVRD}

%description
This package provides a few tools to ease using fonts
(especially Truetype/Opentype ones) with Latex and fontinst:
afm2afm - reencode .afm files; designed to replace fontinst's
\reencodefont for big .afm files; autoinst - simplify the use
of the LCDF TypeTools by creating a command file for otftotfm,
plus .fd and .sty files; and ot2kpx - extract all kerning pairs
from an OpenType font.

#-----------------------------------------------------------------------
%files
%{_bindir}/*
%{_texmfdistdir}/fonts/enc/dvips/fontools/fontools_ly1.enc
%{_texmfdistdir}/fonts/enc/dvips/fontools/fontools_ot1.enc
%{_texmfdistdir}/fonts/enc/dvips/fontools/fontools_t1.enc
%{_texmfdistdir}/fonts/enc/dvips/fontools/fontools_ts1.enc
%{_texmfdistdir}/scripts/fontools/afm2afm
%{_texmfdistdir}/scripts/fontools/autoinst
%{_texmfdistdir}/scripts/fontools/ot2kpx
%doc %{_mandir}/man1/afm2afm.1*
%doc %{_texmfdistdir}/doc/man/man1/afm2afm.man1.pdf
%doc %{_mandir}/man1/autoinst.1*
%doc %{_texmfdistdir}/doc/man/man1/autoinst.man1.pdf
%doc %{_mandir}/man1/ot2kpx.1*
%doc %{_texmfdistdir}/doc/man/man1/ot2kpx.man1.pdf
%doc %{_texmfdistdir}/doc/support/fontools/GPLv2.txt
%doc %{_texmfdistdir}/doc/support/fontools/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/fontools/afm2afm afm2afm
    ln -sf %{_texmfdistdir}/scripts/fontools/autoinst autoinst
    ln -sf %{_texmfdistdir}/scripts/fontools/ot2kpx ot2kpx
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18409 |21mr|texlive-fontspec-2.7c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fontspec
Version:	2.7c
Release:	1
Summary:	Advanced font selection in XeLaTeX and LuaLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fontspec
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontspec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontspec.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontspec.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-iftex
Requires:	texlive-kastrup
Requires:	texlive-l3kernel
Requires:	texlive-l3packages
Requires:	texlive-lm

%description
Fontspec is a package for XeLaTeX and LuaLaTeX. It provides an
automatic and unified interface to feature-rich AAT and
OpenType fonts through the NFSS in LaTeX running on XeTeX or
LuaTeX engines. The package requires the l3kernel and xparse
bundles from the LaTeX 3 development team.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fontspec
%doc %{_texmfdistdir}/doc/latex/fontspec
#- source
%doc %{_texmfdistdir}/source/latex/fontspec

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18410 |21mr|texlive-fonts-tlwg-0.6.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fonts-tlwg
Version:	0.6.5
Release:	2
Summary:	Thai fonts for LaTeX from TLWG
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/thai/fonts-tlwg
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fonts-tlwg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fonts-tlwg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fonts-tlwg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
A collection of free Thai fonts, supplied as FontForge sources,
and with LaTeX .fd files. This package depends on the thailatex
package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/fonts-tlwg
%{_texmfdistdir}/fonts/enc/dvips/fonts-tlwg
%{_texmfdistdir}/fonts/map/dvips/fonts-tlwg
%{_texmfdistdir}/fonts/tfm/public/fonts-tlwg
%{_texmfdistdir}/fonts/type1/public/fonts-tlwg
%{_texmfdistdir}/fonts/vf/public/fonts-tlwg
%{_texmfdistdir}/tex/latex/fonts-tlwg
%_texmf_updmap_d/fonts-tlwg
%doc %{_texmfdistdir}/doc/fonts/fonts-tlwg
#- source
%doc %{_texmfdistdir}/source/fonts/fonts-tlwg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/fonts-tlwg <<EOF
Map nectec.map
Map nf.map
Map tlwg.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18411 |21mr|texlive-fonttable-1.6c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fonttable
Version:	1.6c
Release:	2
Summary:	Print font tables from a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fonttable
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fonttable.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fonttable.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fonttable.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a package version of nfssfont.tex (part of the LaTeX
distribution); it enables you to print a table of the
characters of a font and/or some text (for demonstration or
testing purposes), from within a document. (Packages such as
testfont and nfssfont.tex provide these facilities, but they
run as interactive programs: the user is expected to type
details of what is needed.) Note that the package mftinc also
has a \fonttable function; the documentation explains how avoid
a clash with that package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fonttable
%doc %{_texmfdistdir}/doc/latex/fonttable
#- source
%doc %{_texmfdistdir}/source/latex/fonttable

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18412 |21mr|texlive-fontware-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-fontware
Version:	20190327
Release:	1
Summary:	TeXLive fontware package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontware.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontware.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-fontware.bin

%description
TeXLive fontware package.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/pltotf.1*
%doc %{_texmfdistdir}/doc/man/man1/pltotf.man1.pdf
%doc %{_mandir}/man1/tftopl.1*
%doc %{_texmfdistdir}/doc/man/man1/tftopl.man1.pdf
%doc %{_mandir}/man1/vftovp.1*
%doc %{_texmfdistdir}/doc/man/man1/vftovp.man1.pdf
%doc %{_mandir}/man1/vptovf.1*
%doc %{_texmfdistdir}/doc/man/man1/vptovf.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18413 |21mr|texlive-fontwrap-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-fontwrap
Version:	20190228
Release:	1
Summary:	Bind fonts to specific unicode blocks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/fontwrap
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontwrap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fontwrap.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package (which runs under XeLaTeX) lets you bind fonts to
specific unicode blocks, for automatic font tagging of
multilingual text. The package uses Perl (via perltex) to
construct its tables.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/fontwrap
%doc %{_texmfdistdir}/doc/xelatex/fontwrap

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18414 |21mr|texlive-footmisc-5.5b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23330
# category Package
# catalog-ctan /macros/latex/contrib/footmisc
# catalog-date 2011-06-09 17:50:36 +0200
# catalog-license lppl1.3
# catalog-version 5.5b
Name:		texlive-footmisc
Version:	5.5b
Release:	7
Summary:	A range of footnote options
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/footmisc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footmisc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footmisc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footmisc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of ways to change the typesetting of footnotes.
The package provides means of changing the layout of the
footnotes themselves (including setting them in 'paragraphs' --
the para option), a way to number footnotes per page (the
perpage option), to make footnotes disappear when an argument
moves (stable option) and to deal with multiple references to
footnotes from the same place (multiple option). The package
also has a range of techniques for labelling footnotes with
symbols rather than numbers. Some of the functions of the
package are overlap with the functionality of other packages.
The para option is also provided by the manyfoot and bigfoot
packages, though those are both also portmanteau packages.
(Don't be seduced by fnpara, whose implementation is improved
by the present package.) The perpage option is also offered by
footnpag and by the rather more general-purpose perpage.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/footmisc/footmisc.sty
%doc %{_texmfdistdir}/doc/latex/footmisc/README
%doc %{_texmfdistdir}/doc/latex/footmisc/footmisc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/footmisc/footmisc.dtx
%doc %{_texmfdistdir}/source/latex/footmisc/footmisc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18415 |21mr|texlive-footnotebackref-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27034
# category Package
# catalog-ctan /macros/latex/contrib/footnotebackref
# catalog-date 2012-07-05 10:27:55 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-footnotebackref
Version:	1.0
Release:	6
Summary:	Back-references from footnotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/footnotebackref
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footnotebackref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footnotebackref.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means of creating hyperlinks, from a
footnote at the bottom of the page, back to the occurence of
the footnote in the main text.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/footnotebackref/footnotebackref.sty
%doc %{_texmfdistdir}/doc/latex/footnotebackref/README
%doc %{_texmfdistdir}/doc/latex/footnotebackref/footnotebackref.pdf
%doc %{_texmfdistdir}/doc/latex/footnotebackref/footnotebackref.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18416 |21mr|texlive-footnoterange-1.0a-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25430
# category Package
# catalog-ctan /macros/latex/contrib/footnoterange
# catalog-date 2012-02-19 15:01:00 +0100
# catalog-license lppl1.3
# catalog-version 1.0a
Name:		texlive-footnoterange
Version:	1.0a
Release:	6
Summary:	References to ranges of footnotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/footnoterange
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footnoterange.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footnoterange.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footnoterange.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides environments footnoterange and
footnoterange*. Multiple footnotes inside these environments
are not referenced as (e.g.) "1 2 3 4" but as "1-4", i.e., the
range (from first to last referred footnote at that place) is
given. If hyperref package and use of its hyperfootnotes-option
the references are hyperlinked. (References to footnotes in the
footnoterange* environment are never hyperlinked.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/footnoterange/footnoterange.sty
%doc %{_texmfdistdir}/doc/latex/footnoterange/README
%doc %{_texmfdistdir}/doc/latex/footnoterange/footnoterange-example.pdf
%doc %{_texmfdistdir}/doc/latex/footnoterange/footnoterange-example.tex
%doc %{_texmfdistdir}/doc/latex/footnoterange/footnoterange.pdf
#- source
%doc %{_texmfdistdir}/source/latex/footnoterange/footnoterange.drv
%doc %{_texmfdistdir}/source/latex/footnoterange/footnoterange.dtx
%doc %{_texmfdistdir}/source/latex/footnoterange/footnoterange.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18417 |21mr|texlive-footnpag-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/footnpag
# catalog-date 2009-09-26 11:43:36 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-footnpag
Version:	20190228
Release:	1
Summary:	Per-page numbering of footnotes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/footnpag
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footnpag.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footnpag.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/footnpag.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Allows footnotes on individual pages to be numbered from 1,
rather than being numbered sequentially through the document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/footnpag/footnpag.sty
%doc %{_texmfdistdir}/doc/latex/footnpag/CATALOG
%doc %{_texmfdistdir}/doc/latex/footnpag/History
%doc %{_texmfdistdir}/doc/latex/footnpag/INSTALL
%doc %{_texmfdistdir}/doc/latex/footnpag/Imakefile
%doc %{_texmfdistdir}/doc/latex/footnpag/License
%doc %{_texmfdistdir}/doc/latex/footnpag/MANIFEST
%doc %{_texmfdistdir}/doc/latex/footnpag/README
%doc %{_texmfdistdir}/doc/latex/footnpag/TODO
%doc %{_texmfdistdir}/doc/latex/footnpag/footnpag-doc.sty
%doc %{_texmfdistdir}/doc/latex/footnpag/footnpag-user.pdf
%doc %{_texmfdistdir}/doc/latex/footnpag/footnpag-user.tex
%doc %{_texmfdistdir}/doc/latex/footnpag/footnpag.doc
%doc %{_texmfdistdir}/doc/latex/footnpag/test/Imakefile
%doc %{_texmfdistdir}/doc/latex/footnpag/test/eqnarray-fnmark.tex
%doc %{_texmfdistdir}/doc/latex/footnpag/test/late.tex
%doc %{_texmfdistdir}/doc/latex/footnpag/test/many.tex
%doc %{_texmfdistdir}/doc/latex/footnpag/test/minipage.tex
%doc %{_texmfdistdir}/doc/latex/footnpag/test/report.tex
%doc %{_texmfdistdir}/doc/latex/footnpag/test/title-2col.tex
#- source
%doc %{_texmfdistdir}/source/latex/footnpag/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18418 |21mr|texlive-forarray-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/forarray
# catalog-date 2008-08-19 20:38:14 +0200
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-forarray
Version:	1.01
Release:	7
Summary:	Using array structures in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/forarray
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forarray.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forarray.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forarray.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides functionality for processing lists and
array structures in LaTeX. Arrays can contain characters as
well as TeX and LaTeX commands, nesting of arrays is possible,
and arrays are processed within the same brace level as their
surrounding environment. Array levels can be delimited by
characters or control sequences defined by the user. Practical
uses of this package include data management, construction of
lists and tables, and calculations based on the contents of
lists and arrays.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/forarray/forarray.sty
%doc %{_texmfdistdir}/doc/latex/forarray/README.txt
%doc %{_texmfdistdir}/doc/latex/forarray/forarray
%doc %{_texmfdistdir}/doc/latex/forarray/forarray-test.pdf
%doc %{_texmfdistdir}/doc/latex/forarray/forarray-test.tex
%doc %{_texmfdistdir}/doc/latex/forarray/forarray.dtm
%doc %{_texmfdistdir}/doc/latex/forarray/forarray.dts
%doc %{_texmfdistdir}/doc/latex/forarray/forarray.pdf
#- source
%doc %{_texmfdistdir}/source/latex/forarray/forarray.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18419 |21mr|texlive-foreign-2.7-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27819
# category Package
# catalog-ctan /macros/latex/contrib/foreign
# catalog-date 2012-09-26 16:23:18 +0200
# catalog-license lppl1.3
# catalog-version 2.7
Name:		texlive-foreign
Version:	2.7
Release:	10
Summary:	Systematic treatment of 'foreign' words in documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/foreign
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/foreign.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/foreign.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/foreign.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports authors' use of consistent typesetting of
foreign words in documents.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/foreign/foreign.sty
%doc %{_texmfdistdir}/doc/latex/foreign/README
%doc %{_texmfdistdir}/doc/latex/foreign/foreign.pdf
#- source
%doc %{_texmfdistdir}/source/latex/foreign/foreign.dtx
%doc %{_texmfdistdir}/source/latex/foreign/foreign.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18420 |21mr|texlive-forest-2.1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-forest
Version:	2.1.5
Release:	2
Summary:	Drawing (linguistic) trees
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/forest
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forest.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forest.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forest.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is provides a PGF/TikZ-based mechanism for drawing
linguistic (and other kinds of) trees. Its main features are: a
packing algorithm which can produce very compact trees; a user-
friendly interface consisting of the familiar bracket encoding
of trees plus the key-value interface to option-setting; many
tree-formatting options, with control over option values of
individual nodes and mechanisms for their manipulation; the
possibility to decorate the tree using the full power of
PGF/TikZ; and an externalization mechanism sensitive to code-
changes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/forest
%doc %{_texmfdistdir}/doc/latex/forest
#- source
%doc %{_texmfdistdir}/source/latex/forest

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18421 |21mr|texlive-forloop-3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/forloop
# catalog-date 2007-02-27 14:19:10 +0100
# catalog-license lgpl
# catalog-version 3.0
Name:		texlive-forloop
Version:	3.0
Release:	7
Summary:	Iteration in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/forloop
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forloop.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forloop.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/forloop.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a command \forloop for doing iteration in
LaTeX macro programming.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/forloop/forloop.sty
%doc %{_texmfdistdir}/doc/latex/forloop/README
%doc %{_texmfdistdir}/doc/latex/forloop/forloop.pdf
#- source
%doc %{_texmfdistdir}/source/latex/forloop/forloop.dtx
%doc %{_texmfdistdir}/source/latex/forloop/forloop.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18422 |21mr|texlive-formlett-2.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21480
# category Package
# catalog-ctan /macros/generic/formlett
# catalog-date 2010-12-21 20:58:16 +0100
# catalog-license noinfo
# catalog-version 2.3
Name:		texlive-formlett
Version:	2.3
Release:	7
Summary:	Letters to multiple recipients
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/formlett
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/formlett.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/formlett.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for multiple letters from the same basic source; the
package offers parametrisation of the letters actually sent.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/formlett/formlett.sty
%doc %{_texmfdistdir}/doc/generic/formlett/prog_manual.pdf
%doc %{_texmfdistdir}/doc/generic/formlett/prog_manual.tex
%doc %{_texmfdistdir}/doc/generic/formlett/user_manual.pdf
%doc %{_texmfdistdir}/doc/generic/formlett/user_manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18423 |21mr|texlive-formular-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/formular
# catalog-date 2007-01-05 21:30:32 +0100
# catalog-license lppl
# catalog-version 1.0a
Name:		texlive-formular
Version:	1.0a
Release:	7
Summary:	Create forms containing field for manual entry
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/formular
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/formular.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/formular.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/formular.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
When typesetting forms there often arises the need for defining
fields which consist of one or more lines where the customer
can write something down manually. This package offers some
commands for defining such fields in a distinctive way.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/formular/formular.sty
%doc %{_texmfdistdir}/doc/latex/formular/README
%doc %{_texmfdistdir}/doc/latex/formular/formular.pdf
#- source
%doc %{_texmfdistdir}/source/latex/formular/formular.dtx
%doc %{_texmfdistdir}/source/latex/formular/formular.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18424 |21mr|texlive-fouridx-2.00-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/fouridx
# catalog-date 2008-08-19 20:38:14 +0200
# catalog-license lppl
# catalog-version 2.00
Name:		texlive-fouridx
Version:	2.00
Release:	7
Summary:	Left sub- and superscripts in maths mode
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fouridx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fouridx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fouridx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fouridx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables left subscripts and superscripts in maths
mode. The sub- and superscripts are raised for optimum fitting
to the symbol indexed, in such a way that left and right sub-
and superscripts are set on the same level, as appropriate. The
package provides an alternative to the use of the \sideset
command in the amsmath package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fouridx/fouridx.sty
%doc %{_texmfdistdir}/doc/latex/fouridx/README
%doc %{_texmfdistdir}/doc/latex/fouridx/fouridx.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fouridx/fouridx.dtx
%doc %{_texmfdistdir}/source/latex/fouridx/fouridx.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18425 |21mr|texlive-fp-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/fp
# catalog-date 2009-09-26 11:43:36 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-fp
Version:	20180303
Release:	2
Summary:	Fixed point arithmetic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An extensive collection of arithmetic operations for fixed
point real numbers of high precision.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fp/defpattern.sty
%{_texmfdistdir}/tex/latex/fp/fp-addons.sty
%{_texmfdistdir}/tex/latex/fp/fp-basic.sty
%{_texmfdistdir}/tex/latex/fp/fp-eqn.sty
%{_texmfdistdir}/tex/latex/fp/fp-eval.sty
%{_texmfdistdir}/tex/latex/fp/fp-exp.sty
%{_texmfdistdir}/tex/latex/fp/fp-pas.sty
%{_texmfdistdir}/tex/latex/fp/fp-random.sty
%{_texmfdistdir}/tex/latex/fp/fp-snap.sty
%{_texmfdistdir}/tex/latex/fp/fp-trigo.sty
%{_texmfdistdir}/tex/latex/fp/fp-upn.sty
%{_texmfdistdir}/tex/latex/fp/fp.sty
%{_texmfdistdir}/tex/latex/fp/lfp.sty
%{_texmfdistdir}/tex/plain/fp/fp.tex
%doc %{_texmfdistdir}/doc/latex/fp/README
%doc %{_texmfdistdir}/doc/latex/fp/fp.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18426 |21mr|texlive-fpl-1.003-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/fpl
# catalog-date 2007-09-28 22:20:10 +0200
# catalog-license gpl
# catalog-version 1.002
Name:		texlive-fpl
Version:	1.003
Release:	1
Summary:	SC and OsF fonts for URW Palladio L
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/fpl
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fpl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fpl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fpl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The FPL Fonts provide a set of SC/OsF fonts for URW Palladio L
which are compatible with respect to metrics with the Palatino
SC/OsF fonts from Adobe. Note that it is not my aim to exactly
reproduce the outlines of the original Adobe fonts. The SC and
OsF in the FPL Fonts were designed with the glyphs from URW
Palladio L as starting point. For some glyphs (e.g. 'o') I got
the best result by scaling and boldening. For others (e.g. 'h')
shifting selected portions of the character gave more
satisfying results. All this was done using the free font
editor FontForge. The kerning data in these fonts comes from
Walter Schmidt's improved Palatino metrics. LaTeX use is
enabled by the mathpazo package, which is part of the psnfss
distribution.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/fpl/fplbij8a.afm
%{_texmfdistdir}/fonts/afm/public/fpl/fplbj8a.afm
%{_texmfdistdir}/fonts/afm/public/fpl/fplrc8a.afm
%{_texmfdistdir}/fonts/afm/public/fpl/fplrij8a.afm
%{_texmfdistdir}/fonts/afm/public/fpl/pplb9d-kern.afm
%{_texmfdistdir}/fonts/afm/public/fpl/pplbi9d-kern.afm
%{_texmfdistdir}/fonts/afm/public/fpl/pplrc9d-kern.afm
%{_texmfdistdir}/fonts/afm/public/fpl/pplri9d-kern.afm
%{_texmfdistdir}/fonts/type1/public/fpl/fplbij8a.pfb
%{_texmfdistdir}/fonts/type1/public/fpl/fplbij8a.pfm
%{_texmfdistdir}/fonts/type1/public/fpl/fplbj8a.pfb
%{_texmfdistdir}/fonts/type1/public/fpl/fplbj8a.pfm
%{_texmfdistdir}/fonts/type1/public/fpl/fplrc8a.pfb
%{_texmfdistdir}/fonts/type1/public/fpl/fplrc8a.pfm
%{_texmfdistdir}/fonts/type1/public/fpl/fplrij8a.pfb
%{_texmfdistdir}/fonts/type1/public/fpl/fplrij8a.pfm
%doc %{_texmfdistdir}/doc/fonts/fpl/COPYING
%doc %{_texmfdistdir}/doc/fonts/fpl/README
#- source
%doc %{_texmfdistdir}/source/fonts/fpl/AddException
%doc %{_texmfdistdir}/source/fonts/fpl/AddGPL
%doc %{_texmfdistdir}/source/fonts/fpl/Makefile
%doc %{_texmfdistdir}/source/fonts/fpl/Palladio-BoldItalicOsF.sfd
%doc %{_texmfdistdir}/source/fonts/fpl/Palladio-BoldOsF.sfd
%doc %{_texmfdistdir}/source/fonts/fpl/Palladio-ItalicOsF.sfd
%doc %{_texmfdistdir}/source/fonts/fpl/Palladio-SC.sfd
%doc %{_texmfdistdir}/source/fonts/fpl/README
%doc %{_texmfdistdir}/source/fonts/fpl/TeXPalladioL-BoldItalicOsF.pe
%doc %{_texmfdistdir}/source/fonts/fpl/TeXPalladioL-BoldOsF.pe
%doc %{_texmfdistdir}/source/fonts/fpl/TeXPalladioL-ItalicOsF.pe
%doc %{_texmfdistdir}/source/fonts/fpl/TeXPalladioL-SC.pe
%doc %{_texmfdistdir}/source/fonts/fpl/URW-OtherSubrs.ps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18427 |21mr|texlive-fragments-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/fragments
# catalog-date 2009-01-16 17:12:15 +0100
# catalog-license collection
# catalog-version undef
Name:		texlive-fragments
Version:	20190228
Release:	1
Summary:	Fragments of LaTeX code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fragments
License:	COLLECTION
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fragments.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fragments.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of fragments of LaTeX code, suitable for inclusion
in packages, or (possibly) in users' documents. Included are: -
checklab, for modifying the label checking code at
\end{document}; - overrightarrow, defining a doubled over-arrow
macro; - removefr, for removing 'reset' relations between
counters; and - subscript, defining a \textsubscript command.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fragments/checklab.tex
%{_texmfdistdir}/tex/latex/fragments/overrightarrow.sty
%{_texmfdistdir}/tex/latex/fragments/removefr.tex
%{_texmfdistdir}/tex/latex/fragments/subscript.sty
%doc %{_texmfdistdir}/doc/latex/fragments/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18428 |21mr|texlive-frame-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18312
# category Package
# catalog-ctan /macros/generic/frame
# catalog-date 2010-06-06 13:50:32 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-frame
Version:	1.0
Release:	7
Summary:	Framed boxes for Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/frame
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frame.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frame.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A jiffy file (taken from fancybox) for placing a frame around a
box of text. The macros also provide for typesetting an empty
box of given dimensions.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/frame/frame.sty
%{_texmfdistdir}/tex/generic/frame/frame.tex
%doc %{_texmfdistdir}/doc/generic/frame/Changes
%doc %{_texmfdistdir}/doc/generic/frame/Makefile
%doc %{_texmfdistdir}/doc/generic/frame/README
%doc %{_texmfdistdir}/doc/generic/frame/frame-doc.pdf
%doc %{_texmfdistdir}/doc/generic/frame/frame-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18429 |21mr|texlive-framed-0.96-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26789
# category Package
# catalog-ctan /macros/latex/contrib/framed
# catalog-date 2012-06-01 12:48:04 +0200
# catalog-license other-free
# catalog-version 0.96
Name:		texlive-framed
Version:	0.96
Release:	6
Summary:	Framed or shaded regions that can break across pages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/framed
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/framed.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/framed.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package creates three environments: - framed, which puts an
ordinary frame box around the region, - shaded, which shades
the region, and - leftbar, which places a line at the left
side. The environments allow a break at their start (the
\FrameCommand enables creation of a title that is "attached" to
the environment); breaks are also allowed in the course of the
framed/shaded matter. There is also a command \MakeFramed to
make your own framed-style environments.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/framed/framed.sty
%doc %{_texmfdistdir}/doc/latex/framed/framed.pdf
%doc %{_texmfdistdir}/doc/latex/framed/framed.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18430 |21mr|texlive-frankenstein-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/frankenstein
# catalog-date 2008-08-19 20:38:14 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-frankenstein
Version:	20190228
Release:	1
Summary:	A collection of LaTeX packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/frankenstein
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frankenstein.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frankenstein.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frankenstein.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Frankenstein is a bundle of LaTeX packages serving various
purposes and a BibTeX bibliography style. Descriptions are
given under the individual packages: abbrevs, achicago package,
achicago bibstyle, attrib, blkcntrl, compsci, dialogue, lips,
moredefs, newclude, slemph, titles.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/frankenstein/frankenstein.bib
%{_texmfdistdir}/bibtex/bst/frankenstein/achicago.bst
%{_texmfdistdir}/tex/latex/frankenstein/abbrevs.cfg
%{_texmfdistdir}/tex/latex/frankenstein/abbrevs.stq
%{_texmfdistdir}/tex/latex/frankenstein/abbrevs.sty
%{_texmfdistdir}/tex/latex/frankenstein/achicago.stq
%{_texmfdistdir}/tex/latex/frankenstein/achicago.sty
%{_texmfdistdir}/tex/latex/frankenstein/allocate.sto
%{_texmfdistdir}/tex/latex/frankenstein/attrib.stq
%{_texmfdistdir}/tex/latex/frankenstein/attrib.sty
%{_texmfdistdir}/tex/latex/frankenstein/blkcntrl.stq
%{_texmfdistdir}/tex/latex/frankenstein/blkcntrl.sty
%{_texmfdistdir}/tex/latex/frankenstein/compsci.cfg
%{_texmfdistdir}/tex/latex/frankenstein/compsci.stq
%{_texmfdistdir}/tex/latex/frankenstein/compsci.sty
%{_texmfdistdir}/tex/latex/frankenstein/dialogue.stq
%{_texmfdistdir}/tex/latex/frankenstein/dialogue.sty
%{_texmfdistdir}/tex/latex/frankenstein/lips.stq
%{_texmfdistdir}/tex/latex/frankenstein/lips.sty
%{_texmfdistdir}/tex/latex/frankenstein/moredefs.stq
%{_texmfdistdir}/tex/latex/frankenstein/moredefs.sty
%{_texmfdistdir}/tex/latex/frankenstein/newclude.stq
%{_texmfdistdir}/tex/latex/frankenstein/newclude.sty
%{_texmfdistdir}/tex/latex/frankenstein/simple.sto
%{_texmfdistdir}/tex/latex/frankenstein/slemph.cfg
%{_texmfdistdir}/tex/latex/frankenstein/slemph.stq
%{_texmfdistdir}/tex/latex/frankenstein/slemph.sty
%{_texmfdistdir}/tex/latex/frankenstein/tag.sto
%{_texmfdistdir}/tex/latex/frankenstein/titles.cfg
%{_texmfdistdir}/tex/latex/frankenstein/titles.stq
%{_texmfdistdir}/tex/latex/frankenstein/titles.sty
%doc %{_texmfdistdir}/doc/latex/frankenstein/ChangeLog
%doc %{_texmfdistdir}/doc/latex/frankenstein/Frankenfile
%doc %{_texmfdistdir}/doc/latex/frankenstein/INSTALL
%doc %{_texmfdistdir}/doc/latex/frankenstein/README
%doc %{_texmfdistdir}/doc/latex/frankenstein/abbrevs.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/abbrevs.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/achicago-bst.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/achicago-bst.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/achicago-bst.ver
%doc %{_texmfdistdir}/doc/latex/frankenstein/achicago.bsq
%doc %{_texmfdistdir}/doc/latex/frankenstein/achicago.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/achicago.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/attrib.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/attrib.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/blkcntrl.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/blkcntrl.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/compsci.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/compsci.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/dialogue.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/dialogue.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/lips.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/lips.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/moredefs.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/moredefs.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/newclude.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/newclude.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/slemph.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/slemph.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/titles.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/titles.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/README-unsupported
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/bits.cfg
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/bits.ins
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/bits.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/bits.sty
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/bits.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/drama.ins
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/drama.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/drama.sty
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/drama.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/includex-test.tex
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/includex.ins
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/includex.pdf
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/includex.sty
%doc %{_texmfdistdir}/doc/latex/frankenstein/unsupported/includex.tex
#- source
%doc %{_texmfdistdir}/source/latex/frankenstein/Makefile
%doc %{_texmfdistdir}/source/latex/frankenstein/abbrevs.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/achicago-bst.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/achicago.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/attrib.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/blkcntrl.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/compsci.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/dialogue.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/lips.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/moredefs.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/newclude.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/slemph.ins
%doc %{_texmfdistdir}/source/latex/frankenstein/titles.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18431 |21mr|texlive-frege-1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27417
# category Package
# catalog-ctan /macros/latex/contrib/frege
# catalog-date 2012-08-15 12:04:21 +0200
# catalog-license gpl
# catalog-version 1.3
Name:		texlive-frege
Version:	1.3
Release:	10
Summary:	Typeset fregean Begriffsschrift
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/frege
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frege.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frege.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a number of new commands for typesetting
fregean Begriffsschrift in LaTeX. It is loosely based on the
package begriff, and offers a number of improvements including
better relative lengths of the content stroke with respect to
other strokes, content strokes that point at the middle of
lines rather than the bottom, a greater width for the assertion
stroke as compared to the content stroke, a more intuitive
structure for the conditional, greater care taken to allow for
the linewidth in the spacing of formulas.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/frege/frege.sty
%doc %{_texmfdistdir}/doc/latex/frege/GNU.txt
%doc %{_texmfdistdir}/doc/latex/frege/INSTALL
%doc %{_texmfdistdir}/doc/latex/frege/README
%doc %{_texmfdistdir}/doc/latex/frege/frege.pdf
%doc %{_texmfdistdir}/doc/latex/frege/frege.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18432 |21mr|texlive-frenchle-5.9995-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /language/french/frenchle
# catalog-date 2012-05-31 00:57:47 +0200
# catalog-license lppl
# catalog-version 5.9995
Name:		texlive-frenchle
Version:	5.9995
Release:	11
Summary:	French macros, usable stand-alone or with Babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/french/frenchle
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frenchle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frenchle.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a redistribution and repackaging of the late Bernard
Gaulle's "light" package to typeset French documents according
to the rules of the "Imprimerie Nationale". The package offers
a package, two Babel language definition files (french.ldf and
frenchle.ldf), and a package to enable the non-standard
definition files to be loaded into an unmodified Babel. The
user may simply use frenchle.sty if typesetting a French-only
document, but should use Babel with the frenchle option for a
multilingual document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/frenchle/babelfr.sty
%{_texmfdistdir}/tex/latex/frenchle/french.ldf
%{_texmfdistdir}/tex/latex/frenchle/frenchle.cfg
%{_texmfdistdir}/tex/latex/frenchle/frenchle.ldf
%{_texmfdistdir}/tex/latex/frenchle/frenchle.sty
%doc %{_texmfdistdir}/doc/latex/frenchle/ALIRE.le
%doc %{_texmfdistdir}/doc/latex/frenchle/README
%doc %{_texmfdistdir}/doc/latex/frenchle/README.le
%doc %{_texmfdistdir}/doc/latex/frenchle/faq.pdf
%doc %{_texmfdistdir}/doc/latex/frenchle/frenchle.pdf
%doc %{_texmfdistdir}/doc/latex/frenchle/sources/faq.tex
%doc %{_texmfdistdir}/doc/latex/frenchle/sources/frenchle.tex
%doc %{_texmfdistdir}/doc/latex/frenchle/sources/myfroptn.sty
%doc %{_texmfdistdir}/doc/latex/frenchle/sources/mymaj.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18433 |21mr|texlive-friulan-20120413-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25957
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/friulan
# catalog-date 2012-04-13 12:36:19 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-friulan
Version:	20120413
Release:	7
Summary:	Babel/Polyglossia support for Friulan(Furlan)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/friulan
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/friulan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/friulan.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/friulan.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a language description file that enables
support of Friulan either with babel or with polyglossia.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/friulan/friulan.ldf
%{_texmfdistdir}/tex/latex/friulan/furlan.ldf
%doc %{_texmfdistdir}/doc/latex/friulan/friulan.pdf
#- source
%doc %{_texmfdistdir}/source/latex/friulan/friulan.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18434 |21mr|texlive-frletter-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/frletter
# catalog-date 2008-08-19 21:00:04 +0200
# catalog-license pd
# catalog-version undef


Summary:	Typeset letters in the French style
Name:		texlive-frletter
Version:	20190228
Release:	1
License:	PD
Group:		Publishing
Url:		http://www.ctan.org/tex-archive/macros/latex/contrib/frletter
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frletter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frletter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A small class for typesetting letters in France. No assumption
is made about the language in use. The class represents a small
modification of the beletter class, which is itself a
modification of the standard LaTeX letter class.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/frletter/frletter.cls
%doc %{_texmfdistdir}/doc/latex/frletter/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18435 |21mr|texlive-frontespizio-1.4a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24054
# category Package
# catalog-ctan /macros/latex/contrib/frontespizio
# catalog-date 2011-09-21 15:45:55 +0200
# catalog-license lppl
# catalog-version 1.4a
Name:		texlive-frontespizio
Version:	1.4a
Release:	7
Summary:	Create a frontispiece for Italian theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/frontespizio
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frontespizio.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frontespizio.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/frontespizio.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typesetting a frontispiece independently of the layout of the
main document is difficult. This package provides a solution by
producing an auxiliary TeX file to be typeset on its own and
the result is automatically included at the next run. The
markup necessary for the frontispiece is written in the main
document in a frontespizio environment. Documentation is mainly
in Italian, as the style is probably apt only to theses in
Italy.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/frontespizio/frontespizio.sty
%doc %{_texmfdistdir}/doc/latex/frontespizio/README
%doc %{_texmfdistdir}/doc/latex/frontespizio/examplea.pdf
%doc %{_texmfdistdir}/doc/latex/frontespizio/examplea.tex
%doc %{_texmfdistdir}/doc/latex/frontespizio/exampleasuf.pdf
%doc %{_texmfdistdir}/doc/latex/frontespizio/exampleasuf.tex
%doc %{_texmfdistdir}/doc/latex/frontespizio/exampleb.pdf
%doc %{_texmfdistdir}/doc/latex/frontespizio/exampleb.tex
%doc %{_texmfdistdir}/doc/latex/frontespizio/examplec.pdf
%doc %{_texmfdistdir}/doc/latex/frontespizio/examplec.tex
%doc %{_texmfdistdir}/doc/latex/frontespizio/exampled.pdf
%doc %{_texmfdistdir}/doc/latex/frontespizio/exampled.tex
%doc %{_texmfdistdir}/doc/latex/frontespizio/examplee.pdf
%doc %{_texmfdistdir}/doc/latex/frontespizio/examplee.tex
%doc %{_texmfdistdir}/doc/latex/frontespizio/fakelogo.mp
%doc %{_texmfdistdir}/doc/latex/frontespizio/fakelogo.pdf
%doc %{_texmfdistdir}/doc/latex/frontespizio/frontespizio.pdf
#- source
%doc %{_texmfdistdir}/source/latex/frontespizio/frontespizio.dtx
%doc %{_texmfdistdir}/source/latex/frontespizio/frontespizio.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18436 |21mr|texlive-ftcap-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17275
# category Package
# catalog-ctan /macros/latex/contrib/ftcap
# catalog-date 2010-03-09 13:05:51 +0100
# catalog-license gpl
# catalog-version 1.4
Name:		texlive-ftcap
Version:	1.4
Release:	7
Summary:	Allows \caption at the beginning of a table-environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ftcap
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ftcap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ftcap.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
For several reasons a \caption may be desirable at the top of a
table environment. This package changes the table environment
such that \abovecaptionskip and \belowcaptionskip are swapped.
The package should also work with a non-standard table
environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ftcap/ftcap.sty
%doc %{_texmfdistdir}/doc/latex/ftcap/ftcap.pdf
%doc %{_texmfdistdir}/doc/latex/ftcap/ftcap.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18437 |21mr|texlive-ftnxtra-0.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29652
# category Package
# catalog-ctan /macros/latex/contrib/ftnxtra
# catalog-date 2013-04-04 15:10:30 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-ftnxtra
Version:	0.1
Release:	12
Summary:	Extend the applicability of the \footnote command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ftnxtra
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ftnxtra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ftnxtra.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ftnxtra.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package treats footnotes in \caption, the tabular
environment, and \chapter and other \section-like commands.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ftnxtra/ftnxtra.sty
%doc %{_texmfdistdir}/doc/latex/ftnxtra/README
%doc %{_texmfdistdir}/doc/latex/ftnxtra/ftnxtra.pdf
%doc %{_texmfdistdir}/doc/latex/ftnxtra/ftnxtra.tex
#- source
%doc %{_texmfdistdir}/source/latex/ftnxtra/ftnxtra.dtx
%doc %{_texmfdistdir}/source/latex/ftnxtra/ftnxtra.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18438 |21mr|texlive-fullblck-1.03-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25434
# category Package
# catalog-ctan /macros/latex/contrib/fullblck
# catalog-date 2008-09-12 11:36:07 +0200
# catalog-license lppl
# catalog-version 1.03
Name:		texlive-fullblck
Version:	1.03
Release:	8
Summary:	Left-blocking for letter class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fullblck
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fullblck.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fullblck.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fullblck.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Used with the letter documentclass to set the letter in a
fullblock style (everything at the left margin).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fullblck/fullblck.sty
%doc %{_texmfdistdir}/doc/latex/fullblck/README
%doc %{_texmfdistdir}/doc/latex/fullblck/fullblck.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fullblck/fullblck.dtx
%doc %{_texmfdistdir}/source/latex/fullblck/fullblck.dtx.asc
%doc %{_texmfdistdir}/source/latex/fullblck/fullblck.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18439 |21mr|texlive-fullwidth-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24684
# category Package
# catalog-ctan /macros/latex/contrib/fullwidth
# catalog-date 2011-11-28 12:38:18 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-fullwidth
Version:	0.1
Release:	7
Summary:	Adjust margins of text block
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fullwidth
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fullwidth.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fullwidth.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the environment fullwidth, which sets the
left and right margins in a simple way. There is no constraint
about page breaks; if you are using the twoside mode, you can
set the inner and outer margins to avoid the effects of the
different margins.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fullwidth/fullwidth.sty
%doc %{_texmfdistdir}/doc/latex/fullwidth/README
%doc %{_texmfdistdir}/doc/latex/fullwidth/fullwidth-test.pdf
%doc %{_texmfdistdir}/doc/latex/fullwidth/fullwidth-test.tex
%doc %{_texmfdistdir}/doc/latex/fullwidth/fullwidth.pdf
%doc %{_texmfdistdir}/doc/latex/fullwidth/fullwidth.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18440 |21mr|texlive-functan-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-functan
Version:	20190228
Release:	1
Summary:	Macros for functional analysis and PDE theory
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/functan
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/functan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/functan.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/functan.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a convenient and coherent way to deal
with name of functional spaces (mainly Sobolev spaces) in
functional analysis and PDE theory. It also provides a set of
macros for dealing with norms, scalar products and convergence
with some object oriented flavor (it gives the possibility to
override the standard behavior of norms, ...).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/functan
%doc %{_texmfdistdir}/doc/latex/functan
#- source
%doc %{_texmfdistdir}/source/latex/functan

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18441 |21mr|texlive-fundus-20080912-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18146
# category Package
# catalog-ctan /macros/latex/contrib/gene/fundus
# catalog-date 2008-09-12 11:49:08 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-fundus
Version:	20080912
Release:	7
Summary:	Providing LaTeX access to various font families
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gene/fundus
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Fonts supported are Peter Vanroose's calligra and handwriting
fonts, the Washington University cyrillic fonts, the la and lla
children's handwriting fonts, the Computer Modern outline
fonts, various 'Star Trek' fonts, Sutterlin and schwell
handwriting fonts, the twcal calligraphic fonts, and the va
handwriting fonts. Note that the Washington University fonts
are now officially supported by LaTeX, as the OT2 encoding.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fundus/calligra.sty
%{_texmfdistdir}/tex/latex/fundus/cyr.sty
%{_texmfdistdir}/tex/latex/fundus/la.sty
%{_texmfdistdir}/tex/latex/fundus/ot1ocm.fd
%{_texmfdistdir}/tex/latex/fundus/ot1ocmss.fd
%{_texmfdistdir}/tex/latex/fundus/ot1ocmtt.fd
%{_texmfdistdir}/tex/latex/fundus/pvscript.sty
%{_texmfdistdir}/tex/latex/fundus/startrek.sty
%{_texmfdistdir}/tex/latex/fundus/suetterl.sty
%{_texmfdistdir}/tex/latex/fundus/twcal.sty
%{_texmfdistdir}/tex/latex/fundus/va.sty
%doc %{_texmfdistdir}/doc/latex/fundus/doc/calligra.pdf
%doc %{_texmfdistdir}/doc/latex/fundus/doc/la.pdf
%doc %{_texmfdistdir}/doc/latex/fundus/doc/outline.pdf
%doc %{_texmfdistdir}/doc/latex/fundus/doc/twcal.pdf
%doc %{_texmfdistdir}/doc/latex/fundus/startrek.map
%doc %{_texmfdistdir}/doc/latex/fundus/stclass.zip
%doc %{_texmfdistdir}/doc/latex/fundus/stmov.zip
%doc %{_texmfdistdir}/doc/latex/fundus/tngcril.zip
%doc %{_texmfdistdir}/doc/latex/fundus/tngmon.zip
%doc %{_texmfdistdir}/doc/latex/fundus/tngtit.zip
#- source
%doc %{_texmfdistdir}/source/latex/fundus/calligra.dtx
%doc %{_texmfdistdir}/source/latex/fundus/calligra.ins
%doc %{_texmfdistdir}/source/latex/fundus/la.dtx
%doc %{_texmfdistdir}/source/latex/fundus/la.ins
%doc %{_texmfdistdir}/source/latex/fundus/outline.dtx
%doc %{_texmfdistdir}/source/latex/fundus/outline.ins
%doc %{_texmfdistdir}/source/latex/fundus/pvscript.dtx
%doc %{_texmfdistdir}/source/latex/fundus/pvscript.ins
%doc %{_texmfdistdir}/source/latex/fundus/startrek.dtx
%doc %{_texmfdistdir}/source/latex/fundus/startrek.ins
%doc %{_texmfdistdir}/source/latex/fundus/suetterl.dtx
%doc %{_texmfdistdir}/source/latex/fundus/suetterl.ins
%doc %{_texmfdistdir}/source/latex/fundus/twcal.dtx
%doc %{_texmfdistdir}/source/latex/fundus/twcal.ins
%doc %{_texmfdistdir}/source/latex/fundus/va.dtx
%doc %{_texmfdistdir}/source/latex/fundus/va.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18442 |21mr|texlive-fundus-calligra-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26018
# category Package
# catalog-ctan /macros/latex/contrib/fundus/calligra
# catalog-date 2012-04-15 00:54:55 +0200
# catalog-license other-free
# catalog-version 1.2
Name:		texlive-fundus-calligra
Version:	1.2
Release:	7
Summary:	Support for the calligra font in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fundus/calligra
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus-calligra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus-calligra.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus-calligra.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers support for the calligra handwriting font,
in LaTeX documents. The package is part of the fundus bundle.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fundus-calligra/calligra.sty
%doc %{_texmfdistdir}/doc/latex/fundus-calligra/calligra.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fundus-calligra/calligra.dtx
%doc %{_texmfdistdir}/source/latex/fundus-calligra/calligra.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18443 |21mr|texlive-fundus-cyr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26019
# category Package
# catalog-ctan /macros/latex/contrib/fundus/cyr/cyr.sty
# catalog-date 2012-04-15 11:57:05 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-fundus-cyr
Version:	20190228
Release:	1
Summary:	Support for Washington University Cyrillic fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fundus/cyr/cyr.sty
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus-cyr.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports the use of the Washington Cyrillic fonts
with LaTeX (Note that standard LateX has support, too, as
encoding OT2). The package is distributed as part of the fundus
bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fundus-cyr/cyr.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18444 |21mr|texlive-fundus-sueterlin-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26030
# category Package
# catalog-ctan /macros/latex/contrib/fundus/suetterl
# catalog-date 2012-04-18 12:42:25 +0200
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-fundus-sueterlin
Version:	1.2
Release:	7
Summary:	Sutterlin
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fundus/suetterl
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus-sueterlin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus-sueterlin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fundus-sueterlin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports use, in LaTeX, of the MetaFont emulation
of the Sueterlin handwriting fonts The package is distributed
as part of the fundus bundle..


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fundus-sueterlin/suetterl.sty
%doc %{_texmfdistdir}/doc/latex/fundus-sueterlin/suetterl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/fundus-sueterlin/suetterl.dtx
%doc %{_texmfdistdir}/source/latex/fundus-sueterlin/suetterl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18445 |21mr|texlive-fwlw-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/fwlw
# catalog-date 2012-06-04 11:02:08 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-fwlw
Version:	20190228
Release:	1
Summary:	Get first and last words of a page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/fwlw
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fwlw.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/fwlw.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extracts the first and last words of a page,
together with the first word of the next page, just before the
page is formed into the object to print. The package defines a
couple of page styles that use the words that have been
extracted.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/fwlw/fwlw.sty
%doc %{_texmfdistdir}/doc/latex/fwlw/README
%doc %{_texmfdistdir}/doc/latex/fwlw/fwlw.pdf
%doc %{_texmfdistdir}/doc/latex/fwlw/fwlw.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18446 |21mr|texlive-gaceta-1.06-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/gaceta
# catalog-date 2008-08-19 21:00:04 +0200
# catalog-license lppl
# catalog-version 1.06
Name:		texlive-gaceta
Version:	1.06
Release:	7
Summary:	A class to typeset La Gaceta de la RSME
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gaceta
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gaceta.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gaceta.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class will typeset papers for <<La Gaceta de la Real
Sociedad Matematica Espanola>>.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gaceta/gaceta.cls
%doc %{_texmfdistdir}/doc/latex/gaceta/README
%doc %{_texmfdistdir}/doc/latex/gaceta/plantilla-articulo-de-seccion.pdf
%doc %{_texmfdistdir}/doc/latex/gaceta/plantilla-articulo-de-seccion.tex
%doc %{_texmfdistdir}/doc/latex/gaceta/plantilla-articulo-suelto.pdf
%doc %{_texmfdistdir}/doc/latex/gaceta/plantilla-articulo-suelto.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18447 |21mr|texlive-galois-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/galois
# catalog-date 2006-12-02 11:49:32 +0100
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-galois
Version:	1.5
Release:	7
Summary:	Typeset Galois connections
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/galois
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/galois.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/galois.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/galois.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package deals with connections in two-dimensional style,
optionally in colour.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/galois/galois.sty
%doc %{_texmfdistdir}/doc/latex/galois/README
%doc %{_texmfdistdir}/doc/latex/galois/galois.pdf
#- source
%doc %{_texmfdistdir}/source/latex/galois/Makefile
%doc %{_texmfdistdir}/source/latex/galois/galois.dtx
%doc %{_texmfdistdir}/source/latex/galois/galois.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18448 |21mr|texlive-gamebook-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24714
# category Package
# catalog-ctan /macros/latex/contrib/gamebook
# catalog-date 2011-11-29 16:55:00 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-gamebook
Version:	1.0
Release:	7
Summary:	Typeset gamebooks and other interactive novels
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gamebook
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gamebook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gamebook.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gamebook.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the means in order to lay-out gamebooks
with LaTeX. A simple gamebook example is included with the
package, and acts as a tutorial.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gamebook/gamebook.sty
%doc %{_texmfdistdir}/doc/latex/gamebook/README
%doc %{_texmfdistdir}/doc/latex/gamebook/gamebook-example.pdf
%doc %{_texmfdistdir}/doc/latex/gamebook/gamebook-example.tex
%doc %{_texmfdistdir}/doc/latex/gamebook/gamebook.pdf
%doc %{_texmfdistdir}/doc/latex/gamebook/lppl.txt
#- source
%doc %{_texmfdistdir}/source/latex/gamebook/gamebook.dtx
%doc %{_texmfdistdir}/source/latex/gamebook/gamebook.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18449 |21mr|texlive-garrigues-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/garrigues
# catalog-date 2009-11-10 09:15:37 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-garrigues
Version:	20190228
Release:	1
Summary:	MetaPost macros for the reproduction of Garrigues' Easter nomogram
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/garrigues
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/garrigues.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/garrigues.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Metapost macros for the reproduction of Garrigues' Easter
nomogram. These macros are described in Denis Roegel: An
introduction to nomography: Garrigues' nomogram for the
computation of Easter, TUGboat (volume 30, number 1, 2009,
pages 88-104).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/garrigues/garrigues.mp
%doc %{_texmfdistdir}/doc/metapost/garrigues/README
%doc %{_texmfdistdir}/doc/metapost/garrigues/article.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18450 |21mr|texlive-garuda-c90-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30642
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-garuda-c90
Version:	20190228
Release:	1
Summary:	TeX support (from CJK) for the garuda font
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/garuda-c90.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/garuda-c90.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-fonts-tlwg

%description
TeXLive garuda-c90 package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/garuda-c90/config.garuda-c90
%{_texmfdistdir}/fonts/map/dvips/garuda-c90/garuda-c90.map
%{_texmfdistdir}/fonts/tfm/public/garuda-c90/fgdb8z.tfm
%{_texmfdistdir}/fonts/tfm/public/garuda-c90/fgdbo8z.tfm
%{_texmfdistdir}/fonts/tfm/public/garuda-c90/fgdo8z.tfm
%{_texmfdistdir}/fonts/tfm/public/garuda-c90/fgdr8z.tfm
#- source
%doc %{_texmfdistdir}/source/fonts/garuda-c90/garuda-c90.fontinst

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18451 |21mr|texlive-gastex-2.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/gastex
# catalog-date 2007-03-07 00:33:49 +0100
# catalog-license lppl
# catalog-version 2.8
Name:		texlive-gastex
Version:	2.8
Release:	7
Summary:	Graphs and Automata Simplified in TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/gastex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gastex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gastex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
GasTeX is a set of LaTeX macros which enable the user to draw
graphs, automata, nets, diagrams, etc., very easily, in the
LaTeX picture environment. The package offers no documentation
(per se), but offers a couple of example files in the
distribution, and more on its home page. GasTeX generates its
own PostScript code, and therefore doesn't work directly under
PDFLaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/gastex/gastex.pro
%{_texmfdistdir}/tex/latex/gastex/gastex.sty
%doc %{_texmfdistdir}/doc/latex/gastex/README
%doc %{_texmfdistdir}/doc/latex/gastex/ex-beamer-gastex.tex
%doc %{_texmfdistdir}/doc/latex/gastex/ex-gastex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18452 |21mr|texlive-gatech-thesis-1.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19886
# category Package
# catalog-ctan /macros/latex/contrib/gatech-thesis
# catalog-date 2010-07-26 16:46:28 +0200
# catalog-license gpl
# catalog-version 1.8
Name:		texlive-gatech-thesis
Version:	1.8
Release:	7
Summary:	Georgia Institute of Technology thesis class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gatech-thesis
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gatech-thesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gatech-thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The output generated by using this class has been approved by
the Georgia Tech Office of Graduate Studies. It satisfies their
undocumented moving-target requirements in additional to the
actual documented requirements of the June 2002 Georgia Tech
Thesis Style Manual, as amended up to 2010.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/gatech-thesis/gatech-thesis-losa.bst
%{_texmfdistdir}/bibtex/bst/gatech-thesis/gatech-thesis.bst
%{_texmfdistdir}/makeindex/gatech-thesis/gatech-thesis-index.ist
%{_texmfdistdir}/tex/latex/gatech-thesis/gatech-thesis-gloss.sty
%{_texmfdistdir}/tex/latex/gatech-thesis/gatech-thesis-index.sty
%{_texmfdistdir}/tex/latex/gatech-thesis/gatech-thesis-losa.sty
%{_texmfdistdir}/tex/latex/gatech-thesis/gatech-thesis-patch.sty
%{_texmfdistdir}/tex/latex/gatech-thesis/gatech-thesis.cls
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/CHANGES
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/COMPLIANCE
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/COPYING
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/ChangeLog
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/INSTALL
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/MANIFEST
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/NEWS
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/NOTES
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/README
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/TODO
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/example-thesis.bib
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/example-thesis.pdf
%doc %{_texmfdistdir}/doc/latex/gatech-thesis/example-thesis.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex makeindex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18453 |21mr|texlive-gauss-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32934
# category Package
# catalog-ctan /macros/latex/contrib/gauss
# catalog-date 2012-04-10 17:44:48 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-gauss
Version:	20190228
Release:	1
Summary:	A package for Gaussian operations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gauss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gauss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gauss.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The gauss package provides configurable tools for producing row
and column operations on matrices (a.k.a. Gaussian operations).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gauss/gauss.sty
%doc %{_texmfdistdir}/doc/latex/gauss/README
%doc %{_texmfdistdir}/doc/latex/gauss/gauss-doc.pdf
%doc %{_texmfdistdir}/doc/latex/gauss/gauss-ex.pdf
%doc %{_texmfdistdir}/doc/latex/gauss/gauss-ex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18454 |21mr|texlive-gb4e-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19216
# category Package
# catalog-ctan /macros/latex/contrib/gb4e
# catalog-date 2010-07-03 20:09:25 +0200
# catalog-license lppl1.2
# catalog-version undef
Name:		texlive-gb4e
Version:	20190228
Release:	1
Summary:	Linguistic tools
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gb4e
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gb4e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gb4e.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides an environment for linguistic examples, tools for
glosses, and various other goodies. The code was developed from
the midnight and covington packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gb4e/cgloss4e.sty
%{_texmfdistdir}/tex/latex/gb4e/gb4e.sty
%doc %{_texmfdistdir}/doc/latex/gb4e/README
%doc %{_texmfdistdir}/doc/latex/gb4e/gb4e-doc.pdf
%doc %{_texmfdistdir}/doc/latex/gb4e/gb4e-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18455 |21mr|texlive-g-brief-4.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21140
# category Package
# catalog-ctan /macros/latex/contrib/g-brief
# catalog-date 2009-01-23 15:11:09 +0100
# catalog-license lppl
# catalog-version 4.0.2
Name:		texlive-g-brief
Version:	4.0.3
Release:	1
Summary:	Letter document class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/g-brief
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/g-brief.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/g-brief.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/g-brief.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Designed for formatting formless letters in German; can also be
used for English (by those who can read the documentation).
There are LaTeX 2.09 documentstyle and LaTeX 2e class files for
both an 'old' and a 'new' version of g-brief.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/g-brief/g-brief.cls
%{_texmfdistdir}/tex/latex/g-brief/g-brief.sty
%{_texmfdistdir}/tex/latex/g-brief/g-brief2.cls
%{_texmfdistdir}/tex/latex/g-brief/g-brief2.sty
%doc %{_texmfdistdir}/doc/latex/g-brief/beispiel.pdf
%doc %{_texmfdistdir}/doc/latex/g-brief/beispiel.tex
%doc %{_texmfdistdir}/doc/latex/g-brief/beispiel2.pdf
%doc %{_texmfdistdir}/doc/latex/g-brief/beispiel2.tex
%doc %{_texmfdistdir}/doc/latex/g-brief/g-brief.pdf
#- source
%doc %{_texmfdistdir}/source/latex/g-brief/g-brief.drv
%doc %{_texmfdistdir}/source/latex/g-brief/g-brief.dtx
%doc %{_texmfdistdir}/source/latex/g-brief/g-brief.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18456 |21mr|texlive-gcard-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gcard
Version:	20190228
Release:	1
Summary:	Arrange text on a sheet to fold into a greeting card
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gcard
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gcard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gcard.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a simple means of producing greeting
cards. It arranges four panels onto a single sheet so that when
the sheet is folded twice the four panels are arranged as front
cover, inside left and right pages, and back cover. It uses the
textpos package for placement on the sheet and the graphicx
package for the necessary rotation. The four panels are set in
minipages for formatting by the user.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gcard
%doc %{_texmfdistdir}/doc/latex/gcard

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18457 |21mr|texlive-gchords-1.20-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /graphics/gchords
# catalog-date 2012-06-04 13:21:54 +0200
# catalog-license gpl
# catalog-version 1.20
Name:		texlive-gchords
Version:	1.20
Release:	12
Summary:	Typeset guitar chords
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/gchords
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gchords.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gchords.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for typesetting of guitar chord diagrams,
including options for chord names, finger numbers and
typesetting above lyrics. The bundle also includes a TCL script
(chordbox.tcl) that provides a graphical application which
creates LaTeX files that use gchords.sty.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gchords/gchords.sty
%doc %{_texmfdistdir}/doc/latex/gchords/README
%doc %{_texmfdistdir}/doc/latex/gchords/chordbox.tcl
%doc %{_texmfdistdir}/doc/latex/gchords/gchords_doc.pdf
%doc %{_texmfdistdir}/doc/latex/gchords/gchords_doc.tex
%doc %{_texmfdistdir}/doc/latex/gchords/get2knowu.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18458 |21mr|texlive-gcite-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/exptl/gcite
# catalog-date 2009-07-04 21:47:31 +0200
# catalog-license lppl1.3
# catalog-version 1.0.1
Name:		texlive-gcite
Version:	1.0.1
Release:	7
Summary:	Citations in a reader-friendly style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/exptl/gcite
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gcite.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gcite.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gcite.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows citations in the German style, which is
considered by many to be particularly reader-friendly. The
citation provides a small amount of bibliographic information
in a footnote on the page where each citation is made. It
combines a desire to eliminate unnecessary page-turning with
the look-up efficiency afforded by numeric citations. The
package makes use of the (still experimental) BibLaTeX package,
and is itself also considered experimental; comment is invited.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gcite/gcite.sty
%doc %{_texmfdistdir}/doc/latex/gcite/CHANGES
%doc %{_texmfdistdir}/doc/latex/gcite/README
%doc %{_texmfdistdir}/doc/latex/gcite/gcite.bib
%doc %{_texmfdistdir}/doc/latex/gcite/gcite.pdf
#- source
%doc %{_texmfdistdir}/source/latex/gcite/gcite.dtx
%doc %{_texmfdistdir}/source/latex/gcite/gcite.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18459 |21mr|texlive-gene-logic-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/gene/logic
# catalog-date 2008-10-04 10:00:56 +0200
# catalog-license other-free
# catalog-version 1.4
Name:		texlive-gene-logic
Version:	1.4
Release:	7
Summary:	Typeset logic formulae, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gene/logic
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gene-logic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gene-logic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a facility to typeset certain logic
formulae. It provides an environment like eqnarray, an extended
newtheorem environment, and several macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gene-logic/gn-logic14.sty
%doc %{_texmfdistdir}/doc/latex/gene-logic/gn-logic14.pdf
%doc %{_texmfdistdir}/doc/latex/gene-logic/gn-logic14.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18460 |21mr|texlive-genmisc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27208
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-genmisc
Version:	20190228
Release:	1
Summary:	TeXLive genmisc package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/genmisc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive genmisc package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/genmisc/anti.tex
%{_texmfdistdir}/tex/generic/genmisc/apldef.tex
%{_texmfdistdir}/tex/generic/genmisc/arabic.tex
%{_texmfdistdir}/tex/generic/genmisc/backgrnd.tex
%{_texmfdistdir}/tex/generic/genmisc/balancedquotes.sty
%{_texmfdistdir}/tex/generic/genmisc/chessmin.tex
%{_texmfdistdir}/tex/generic/genmisc/compare.tex
%{_texmfdistdir}/tex/generic/genmisc/cropmark.sty
%{_texmfdistdir}/tex/generic/genmisc/cropmark.tex
%{_texmfdistdir}/tex/generic/genmisc/croptest.tex
%{_texmfdistdir}/tex/generic/genmisc/dayofweek.tex
%{_texmfdistdir}/tex/generic/genmisc/daytime.sty
%{_texmfdistdir}/tex/generic/genmisc/default.sty
%{_texmfdistdir}/tex/generic/genmisc/dow.tex
%{_texmfdistdir}/tex/generic/genmisc/emtrees.tex
%{_texmfdistdir}/tex/generic/genmisc/endnote.tex
%{_texmfdistdir}/tex/generic/genmisc/fakebold.tex
%{_texmfdistdir}/tex/generic/genmisc/hep.tex
%{_texmfdistdir}/tex/generic/genmisc/inscrutable.tex
%{_texmfdistdir}/tex/generic/genmisc/laps.tex
%{_texmfdistdir}/tex/generic/genmisc/letterspacing.tex
%{_texmfdistdir}/tex/generic/genmisc/longdiv.tex
%{_texmfdistdir}/tex/generic/genmisc/mandel.tex
%{_texmfdistdir}/tex/generic/genmisc/mathlig.tex
%{_texmfdistdir}/tex/generic/genmisc/nth.sty
%{_texmfdistdir}/tex/generic/genmisc/outerhbox.sty
%{_texmfdistdir}/tex/generic/genmisc/pagereference.tex
%{_texmfdistdir}/tex/generic/genmisc/quotation.tex
%{_texmfdistdir}/tex/generic/genmisc/ragged.sty
%{_texmfdistdir}/tex/generic/genmisc/random.tex
%{_texmfdistdir}/tex/generic/genmisc/ruler.tex
%{_texmfdistdir}/tex/generic/genmisc/selectpage.tex
%{_texmfdistdir}/tex/generic/genmisc/shadebox.tex
%{_texmfdistdir}/tex/generic/genmisc/swrule.sty
%{_texmfdistdir}/tex/generic/genmisc/underlin.tex
%{_texmfdistdir}/tex/generic/genmisc/undertilde.tex
%{_texmfdistdir}/tex/generic/genmisc/verbatim.tex
%{_texmfdistdir}/tex/generic/genmisc/weekday.sty
%{_texmfdistdir}/tex/generic/genmisc/wiggly.tex
%{_texmfdistdir}/tex/generic/genmisc/zip.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18461 |21mr|texlive-genmpage-0.3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/genmpage
# catalog-date 2007-03-07 00:33:49 +0100
# catalog-license lppl
# catalog-version 0.3.1
Name:		texlive-genmpage
Version:	0.3.1
Release:	7
Summary:	Generalization of LaTeX's minipages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/genmpage
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/genmpage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/genmpage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/genmpage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The GenMPage package generalizes LaTeX's minipages. Keyval
options and styles can be used to determine their appearance in
an easy and consistent way. Includes options for paragraph
indentation and vertical alignment with respect to the visual
top and bottom margins.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/genmpage/genmpage.sty
%doc %{_texmfdistdir}/doc/latex/genmpage/README
%doc %{_texmfdistdir}/doc/latex/genmpage/genmpage.pdf
#- source
%doc %{_texmfdistdir}/source/latex/genmpage/genmpage.dtx
%doc %{_texmfdistdir}/source/latex/genmpage/genmpage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18462 |21mr|texlive-gentium-tug-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gentium-tug
Version:	1.1
Release:	2
Summary:	Gentium fonts (in two formats) and support files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/gentium-tug
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gentium-tug.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gentium-tug.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gentium-tug.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Gentium is a typeface family designed to enable the diverse
ethnic groups around the world who use the Latin, Cyrillic and
Greek scripts to produce readable, high-quality publications.
It supports a wide range of Latin- and Cyrillic-based
alphabets. The package consists of: - The original (unaltered)
GentiumPlus, GentiumBook, and other Gentium-family fonts in
TrueType format, as developed by SIL and released under the OFL
(see OFL.txt and OFL-FAQ.txt); - Converted fonts in PostScript
Type 1 format, released under the same terms. These incorporate
the name "Gentium" by permission of SIL given to the TeX Users
Group; - ConTeXt, LaTeX and other supporting files; - TeX-
related documentation, and the SIL documentation and other
files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gentium-tug
%{_texmfdistdir}/fonts/enc/dvips/gentium-tug
%{_texmfdistdir}/fonts/map/dvips/gentium-tug
%{_texmfdistdir}/fonts/map/pdftex/gentium-tug
%{_texmfdistdir}/fonts/tfm/public/gentium-tug
%{_texmfdistdir}/fonts/truetype/public/gentium-tug
%{_texmfdistdir}/fonts/type1/public/gentium-tug
%{_texmfdistdir}/tex/context/third/gentium-tug
%{_texmfdistdir}/tex/latex/gentium-tug
%doc %{_texmfdistdir}/doc/fonts/gentium-tug
#- source
%doc %{_texmfdistdir}/source/fonts/gentium-tug

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18463 |21mr|texlive-gentle-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/gentle
# catalog-date 2009-01-04 11:16:40 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-gentle
Version:	20190228
Release:	1
Summary:	A Gentle Introduction to TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/gentle
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gentle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gentle.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The "Gentle Introduction" is the longest-established
comprehensive free tutorial on the use of plain TeX.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/plain/gentle/gentle.pdf
%doc %{_texmfdistdir}/doc/plain/gentle/gentle.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18464 |21mr|texlive-geometry-5.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19716
# category Package
# catalog-ctan /macros/latex/contrib/geometry
# catalog-date 2010-09-13 00:36:13 +0200
# catalog-license lppl
# catalog-version 5.6
Name:		texlive-geometry
Version:	5.7
Release:	2
Summary:	Flexible and complete interface to document dimensions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/geometry
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/geometry.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/geometry.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/geometry.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an easy and flexible user interface to
customize page layout, implementing auto-centering and auto-
balancing mechanisms so that the users have only to give the
least description for the page layout. For example, if you want
to set each margin 2cm without header space, what you need is
just \usepackage[margin=2cm,nohead]{geometry}. The package
knows about all the standard paper sizes, so that the user need
not know what the nominal 'real' dimensions of the paper are,
just its standard name (such as a4, letter, etc.). An important
feature is the package's ability to communicate the paper size
it's set up to the output (whether via DVI \specials or via
direct interaction with PDF(La)TeX).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/geometry/geometry.sty
%doc %{_texmfdistdir}/doc/latex/geometry/README
%doc %{_texmfdistdir}/doc/latex/geometry/changes.txt
%doc %{_texmfdistdir}/doc/latex/geometry/geometry-samples.tex
%doc %{_texmfdistdir}/doc/latex/geometry/geometry.cfg
%doc %{_texmfdistdir}/doc/latex/geometry/geometry.pdf
#- source
%doc %{_texmfdistdir}/source/latex/geometry/geometry.drv
%doc %{_texmfdistdir}/source/latex/geometry/geometry.dtx
%doc %{_texmfdistdir}/source/latex/geometry/geometry.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18465 |21mr|texlive-geometry-de-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21882
# category Package
# catalog-ctan /macros/latex/contrib/geometry-de
# catalog-date 2011-03-29 21:39:15 +0200
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-geometry-de
Version:	1.1
Release:	6
Summary:	German translation of the geometry package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/geometry-de
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/geometry-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/geometry-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
German translation of the geometry package, by Hans-Martin
Haase of the University of Jena.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/geometry-de/README
%doc %{_texmfdistdir}/doc/latex/geometry-de/README-DE
%doc %{_texmfdistdir}/doc/latex/geometry-de/geometry-de.dtx
%doc %{_texmfdistdir}/doc/latex/geometry-de/geometry-de.pdf
%doc %{_texmfdistdir}/doc/latex/geometry-de/geometry.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18466 |21mr|texlive-german-2.5e-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30567
# category Package
# catalog-ctan /language/german
# catalog-date 2012-06-19 20:29:15 +0200
# catalog-license lppl
# catalog-version 2.5e
Name:		texlive-german
Version:	2.5e
Release:	12
Summary:	Support for German typography
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/german
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/german.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/german.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/german.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Supports the new German orthography (neue deutsche
Rechtschreibung).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/german/german.sty
%{_texmfdistdir}/tex/generic/german/ngerman.sty
%doc %{_texmfdistdir}/doc/generic/german/00readme.1st
%doc %{_texmfdistdir}/doc/generic/german/betatest/00readme.1st
%doc %{_texmfdistdir}/doc/generic/german/gerdoc.pdf
%doc %{_texmfdistdir}/doc/generic/german/gerdoc.tex
%doc %{_texmfdistdir}/doc/generic/german/german.MISSING
%doc %{_texmfdistdir}/doc/generic/german/hyphxmpl.cfg
#- source
%doc %{_texmfdistdir}/source/generic/german/german.dtx
%doc %{_texmfdistdir}/source/generic/german/german.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18467 |21mr|texlive-germbib-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /biblio/bibtex/contrib/germbib
# catalog-date 2009-01-04 15:06:03 +0100
# catalog-license noinfo
# catalog-version undef
Name:		texlive-germbib
Version:	20190228
Release:	1
Summary:	German variants of standard BibTeX styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/germbib
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/germbib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/germbib.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A development of the (old) german.sty, this bundle provides
German packages, BibTeX styles and documentary examples, for
writing documents with bibliographies. The author has since
developed the babelbib bundle, which (he asserts) supersedes
germbib.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/germbib/gerabbrv.bst
%{_texmfdistdir}/bibtex/bst/germbib/geralpha.bst
%{_texmfdistdir}/bibtex/bst/germbib/gerapali.bst
%{_texmfdistdir}/bibtex/bst/germbib/gerplain.bst
%{_texmfdistdir}/bibtex/bst/germbib/gerunsrt.bst
%{_texmfdistdir}/tex/latex/germbib/bibgerm.sty
%{_texmfdistdir}/tex/latex/germbib/mynormal.sty
%doc %{_texmfdistdir}/doc/bibtex/germbib/README.bibgerm
%doc %{_texmfdistdir}/doc/bibtex/germbib/apalike.doc
%doc %{_texmfdistdir}/doc/bibtex/germbib/apalike.germbib_sty
%doc %{_texmfdistdir}/doc/bibtex/germbib/apalike.tex
%doc %{_texmfdistdir}/doc/bibtex/germbib/btxdoc.tex
%doc %{_texmfdistdir}/doc/bibtex/germbib/btxhak.tex
%doc %{_texmfdistdir}/doc/bibtex/germbib/gerbibtx.bib
%doc %{_texmfdistdir}/doc/bibtex/germbib/gerbibtx.tex
%doc %{_texmfdistdir}/doc/bibtex/germbib/gerxampl.bib
%doc %{_texmfdistdir}/doc/bibtex/germbib/schaum.bib
%doc %{_texmfdistdir}/doc/bibtex/germbib/testbibgerm.tex
%doc %{_texmfdistdir}/doc/bibtex/germbib/testgerb.tex
%doc %{_texmfdistdir}/doc/bibtex/germbib/xampl.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18468 |21mr|texlive-germkorr-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/germkorr
# catalog-date 2009-11-10 09:15:37 +0100
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-germkorr
Version:	1.0
Release:	7
Summary:	Change kerning for german quotation marks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/germkorr
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/germkorr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/germkorr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package germcorr has to be loaded after the package german.
It brings some letters like T nearer to german single and
double quotes even when that letter wears a standard accent
like "`\.T"'.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/germkorr/germkorr.sty
%doc %{_texmfdistdir}/doc/latex/germkorr/COPYING
%doc %{_texmfdistdir}/doc/latex/germkorr/README
%doc %{_texmfdistdir}/doc/latex/germkorr/germkorr.pdf
%doc %{_texmfdistdir}/doc/latex/germkorr/germkorr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18469 |21mr|texlive-getfiledate-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16189
# category Package
# catalog-ctan /macros/latex/contrib/getfiledate
# catalog-date 2009-11-26 14:59:55 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-getfiledate
Version:	1.2
Release:	7
Summary:	Find the date of last modification of a file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/getfiledate
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/getfiledate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/getfiledate.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package fetches from the system the date of last
modification or opening of an existing file, using the function
\pdffilemoddate (present in recent versions of PDFTeX); the
user may specify how the date is to be presented.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/getfiledate/getfiledate.sty
%doc %{_texmfdistdir}/doc/latex/getfiledate/README
%doc %{_texmfdistdir}/doc/latex/getfiledate/getfiledate-guide.pdf
%doc %{_texmfdistdir}/doc/latex/getfiledate/getfiledate-guide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18470 |21mr|texlive-gfsbaskerville-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /fonts/greek/gfs/gfsbaskerville
# catalog-date 2008-08-19 21:00:04 +0200
# catalog-license other-free
# catalog-version 1.0
Name:		texlive-gfsbaskerville
Version:	1.0
Release:	7
Summary:	A Greek font, from one such by Baskerville
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/gfs/gfsbaskerville
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsbaskerville.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsbaskerville.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The font is a digital implementation of Baskerville's classic
Greek font, provided by the Greek Font Society. The font covers
Greek only, and LaTeX support provides for the use of LGR
encoding.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gfsbaskerville/GFSBaskerville-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/gfsbaskerville/gpgfsbaskerville.enc
%{_texmfdistdir}/fonts/map/dvips/gfsbaskerville/gfsbaskerville.map
%{_texmfdistdir}/fonts/opentype/public/gfsbaskerville/GFSBaskerville.otf
%{_texmfdistdir}/fonts/tfm/public/gfsbaskerville/ggfsbaskervillerg6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsbaskerville/ggfsbaskervillerg6r.tfm
%{_texmfdistdir}/fonts/type1/public/gfsbaskerville/GFSBaskerville-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/gfsbaskerville/ggfsbaskervillerg6a.vf
%{_texmfdistdir}/tex/latex/gfsbaskerville/gfsbaskerville.sty
%{_texmfdistdir}/tex/latex/gfsbaskerville/lgrgfsbaskerville.fd
%doc %{_texmfdistdir}/doc/fonts/gfsbaskerville/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/gfsbaskerville/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/gfsbaskerville/README
%doc %{_texmfdistdir}/doc/fonts/gfsbaskerville/README.TEXLIVE
%doc %{_texmfdistdir}/doc/fonts/gfsbaskerville/gfsbaskerville.pdf
%doc %{_texmfdistdir}/doc/fonts/gfsbaskerville/gfsbaskerville.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18471 |21mr|texlive-gfsporson-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/greek/gfs/gfsporson
# catalog-date 2008-08-19 21:00:04 +0200
# catalog-license other-free
# catalog-version 1.01
Name:		texlive-gfsporson
Version:	1.01
Release:	7
Summary:	A Greek font, originally from Porson
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/gfs/gfsporson
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsporson.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gfsporson.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Porson is an elegant Greek font, originally cut at the turn of
the 19th Century in England. The present version has been
provided by the Greek Font Society. The font supports the Greek
alphabet only. LaTeX support is provided, using the LGR
encoding.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/gfsporson/GFSPorson-Regular.afm
%{_texmfdistdir}/fonts/enc/dvips/gfsporson/porsonel.enc
%{_texmfdistdir}/fonts/map/dvips/gfsporson/gfsporson.map
%{_texmfdistdir}/fonts/opentype/public/gfsporson/GFSPorson.otf
%{_texmfdistdir}/fonts/tfm/public/gfsporson/gporsonrg6a.tfm
%{_texmfdistdir}/fonts/tfm/public/gfsporson/gporsonrg6r.tfm
%{_texmfdistdir}/fonts/type1/public/gfsporson/GFSPorson-Regular.pfb
%{_texmfdistdir}/fonts/vf/public/gfsporson/gporsonrg6a.vf
%{_texmfdistdir}/tex/latex/gfsporson/gfsporson.sty
%{_texmfdistdir}/tex/latex/gfsporson/lgrporson.fd
%doc %{_texmfdistdir}/doc/fonts/gfsporson/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/gfsporson/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/gfsporson/README
%doc %{_texmfdistdir}/doc/fonts/gfsporson/gfsporson.pdf
%doc %{_texmfdistdir}/doc/fonts/gfsporson/gfsporson.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18472 |21mr|texlive-ghab-0.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/ghab
# catalog-date 2013-04-05 13:20:40 +0200
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-ghab
Version:	0.5
Release:	10
Summary:	Typeset ghab boxes in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ghab
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ghab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ghab.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a command \darghab that will typeset its
argument in a box with a decorated frame. The width of the box
may be set using an optional argument.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/ghab/ghab.mf
%{_texmfdistdir}/tex/latex/ghab/ghab.sty
%doc %{_texmfdistdir}/doc/latex/ghab/README
%doc %{_texmfdistdir}/doc/latex/ghab/ghab-doc.pdf
%doc %{_texmfdistdir}/doc/latex/ghab/ghab-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18473 |21mr|texlive-gincltex-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23835
# category Package
# catalog-ctan /macros/latex/contrib/gincltex
# catalog-date 2011-09-05 20:39:25 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-gincltex
Version:	0.3
Release:	7
Summary:	Include TeX files as graphics (.tex support for \includegraphics)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gincltex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gincltex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gincltex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gincltex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package builds on the standard LaTeX packages graphics
and/or graphicx and allows external LaTeX source files to be
included, in the same way as graphic files, by
\includegraphics. In effect, then package adds support for the
.tex extension. Some of the lower level operations like
clipping and trimming are implemented using the adjustbox
package which includes native pdflatex support and uses the pdf
pacakge for other output formats.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gincltex/gincltex.sty
%doc %{_texmfdistdir}/doc/latex/gincltex/README
%doc %{_texmfdistdir}/doc/latex/gincltex/gincltex.pdf
#- source
%doc %{_texmfdistdir}/source/latex/gincltex/gincltex.dtx
%doc %{_texmfdistdir}/source/latex/gincltex/gincltex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18474 |21mr|texlive-ginpenc-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24980
# category Package
# catalog-ctan /macros/latex/contrib/ginpenc
# catalog-date 2007-07-08 11:00:26 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-ginpenc
Version:	1.0
Release:	8
Summary:	Modification of inputenc for German
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ginpenc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ginpenc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ginpenc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ginpenc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
If the inputenc is used and German umlauts are input directly,
they are converted to the LICR representation \"a (etc.). This
breaks the sort algorithm of makeindex, for instance. Ginpenc
converts umlauts and the sharp-s to the short forms defined by
babel, e.g., "a instead, if the text is typeset in German.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ginpenc/ansinew.gie
%{_texmfdistdir}/tex/latex/ginpenc/applemac.gie
%{_texmfdistdir}/tex/latex/ginpenc/ascii.gie
%{_texmfdistdir}/tex/latex/ginpenc/cp1250.gie
%{_texmfdistdir}/tex/latex/ginpenc/cp1252.gie
%{_texmfdistdir}/tex/latex/ginpenc/cp437.gie
%{_texmfdistdir}/tex/latex/ginpenc/cp437de.gie
%{_texmfdistdir}/tex/latex/ginpenc/cp850.gie
%{_texmfdistdir}/tex/latex/ginpenc/cp852.gie
%{_texmfdistdir}/tex/latex/ginpenc/cp865.gie
%{_texmfdistdir}/tex/latex/ginpenc/decmulti.gie
%{_texmfdistdir}/tex/latex/ginpenc/ginpenc.sty
%{_texmfdistdir}/tex/latex/ginpenc/latin1.gie
%{_texmfdistdir}/tex/latex/ginpenc/latin2.gie
%{_texmfdistdir}/tex/latex/ginpenc/latin3.gie
%{_texmfdistdir}/tex/latex/ginpenc/latin5.gie
%{_texmfdistdir}/tex/latex/ginpenc/latin9.gie
%{_texmfdistdir}/tex/latex/ginpenc/next.gie
%doc %{_texmfdistdir}/doc/latex/ginpenc/ChangeLog
%doc %{_texmfdistdir}/doc/latex/ginpenc/Makefile
%doc %{_texmfdistdir}/doc/latex/ginpenc/README
%doc %{_texmfdistdir}/doc/latex/ginpenc/ginpenc.pdf
%doc %{_texmfdistdir}/doc/latex/ginpenc/news-message.txt
%doc %{_texmfdistdir}/doc/latex/ginpenc/testginpenc.tex
#- source
%doc %{_texmfdistdir}/source/latex/ginpenc/ginpenc.dtx
%doc %{_texmfdistdir}/source/latex/ginpenc/ginpenc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18475 |21mr|texlive-gitinfo-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34049
# category Package
# catalog-ctan /macros/latex/contrib/gitinfo
# catalog-date 2014-05-15 00:10:33 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-gitinfo
Version:	1.0
Release:	12
Summary:	Access metadata from the git distributed version control system
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gitinfo
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gitinfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gitinfo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes it possible to incorporate git version
control metadata into documents. Note this version is now
deprecated, but is kept on the archive, pro tem, for continuity
for existing users. For memoir users, the package provides the
means to tailor page headers and footers to use the metadata.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gitinfo/gitinfo.sty
%{_texmfdistdir}/tex/latex/gitinfo/gitsetinfo.sty
%doc %{_texmfdistdir}/doc/latex/gitinfo/README
%doc %{_texmfdistdir}/doc/latex/gitinfo/gitHeadInfo.gin
%doc %{_texmfdistdir}/doc/latex/gitinfo/gitinfo.pdf
%doc %{_texmfdistdir}/doc/latex/gitinfo/gitinfo.tex
%doc %{_texmfdistdir}/doc/latex/gitinfo/post-xxx-sample.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18476 |21mr|texlive-gloss-1.5.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/gloss
# catalog-date 2006-12-11 14:57:52 +0100
# catalog-license lppl
# catalog-version 1.5.2
Name:		texlive-gloss
Version:	1.5.2
Release:	7
Summary:	Create glossaries using BibTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gloss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gloss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gloss.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A glossary package using BibTeX with \cite replaced by \gloss.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/gloss/glsbase.bib
%{_texmfdistdir}/bibtex/bib/gloss/sample.bib
%{_texmfdistdir}/bibtex/bst/gloss/glsplain.bst
%{_texmfdistdir}/bibtex/bst/gloss/glsshort.bst
%{_texmfdistdir}/tex/latex/gloss/gloss.sty
%doc %{_texmfdistdir}/doc/latex/gloss/README
%doc %{_texmfdistdir}/doc/latex/gloss/gloss.pdf
%doc %{_texmfdistdir}/doc/latex/gloss/gloss.tex
%doc %{_texmfdistdir}/doc/latex/gloss/sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18477 |21mr|texlive-glossaries-4.42-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-glossaries
Epoch:		1
Version:	4.42
Release:	1
Summary:	Create glossaries and lists of acronyms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/glossaries
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glossaries.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-glossaries.bin = %{EVRD}

%description
The glossaries package supports acronyms and multiple
glossaries, and has provision for operation in several
languages (using the facilities of either babel or
polyglossia). New entries are defined to have a name and
description (and optionally an associated symbol). Support for
multiple languages is offered, and plural forms of terms may be
specified. An additional package, glossaries-accsupp, can make
use of the accsupp package mechanisms for accessibility support
for PDF files containing glossaries. The user may define new
glossary styles, and preambles and postambles can be specified.
There is provision for loading a database of terms, but only
terms used in the text will be added to the relevant glossary.
The package uses an indexing program to provide the actual
glossary; either makeindex or xindy may serve this purpose, and
a Perl script is provided to serve as interface. The package
distribution also provides the mfirstuc package, for changing
the first letter of a word to upper case. The package
supersedes the author's glossary package (which is now
obsolete), and a conversion tool is provided.

#-----------------------------------------------------------------------
%files
%{_bindir}/makeglossaries
%{_texmfdistdir}/scripts/glossaries
%{_texmfdistdir}/tex/latex/glossaries
%doc %{_texmfdistdir}/doc/latex/glossaries
%doc %{_texmfdistdir}/doc/man/man1/*
#- source
%doc %{_texmfdistdir}/source/latex/glossaries

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/glossaries/makeglossaries makeglossaries
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18478 |21mr|texlive-glyphlist-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28576
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-glyphlist
Version:	20190228
Release:	1
Summary:	TeXLive glyphlist package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/glyphlist.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive glyphlist package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/glyphlist/glyphlist.txt
%{_texmfdistdir}/fonts/map/glyphlist/pdfglyphlist.txt
%{_texmfdistdir}/fonts/map/glyphlist/texglyphlist.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18479 |21mr|texlive-gmdoc-0.993-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21292
# category Package
# catalog-ctan /macros/latex/contrib/gmdoc
# catalog-date 2011-02-02 20:24:54 +0100
# catalog-license lppl
# catalog-version 0.993
Name:		texlive-gmdoc
Version:	0.993
Release:	7
Summary:	Documentation of LaTeX packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gmdoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmdoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmdoc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package and an example class for documenting (La)TeX
packages, document classes, .dtx etc., providing hyperlinks.
The package is believed to be compatible with doc and permits
minimal markup of code (the macrocode environment is no longer
necessary). The package provides automatic detection of
definitions (detecting such things as \def, \newcommand,
\DeclareOption etc.). The package needs hyperref and the
author's three ''basic' packages: gmutils, gmverb and gmiflink.
As a bonus (and as an example of doc compatibility) driver
files are provided that may be used to typeset the LaTeX Base.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/gmdoc/gmglo.ist
%{_texmfdistdir}/tex/latex/gmdoc/gmdoc.sty
%{_texmfdistdir}/tex/latex/gmdoc/gmdocc.cls
%{_texmfdistdir}/tex/latex/gmdoc/gmoldcomm.sty
%doc %{_texmfdistdir}/doc/latex/gmdoc/README
%doc %{_texmfdistdir}/doc/latex/gmdoc/basedrivers/doc_gmdoc.tex
%doc %{_texmfdistdir}/doc/latex/gmdoc/basedrivers/docstrip_gmdoc.tex
%doc %{_texmfdistdir}/doc/latex/gmdoc/basedrivers/source2e_gmdoc.tex
%doc %{_texmfdistdir}/doc/latex/gmdoc/gmdoc.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18480 |21mr|texlive-gmdoc-enhance-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gmdoc-enhance
Version:	0.2
Release:	2
Summary:	Some enhancements to the gmdoc package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gmdoc-enhance
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmdoc-enhance.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmdoc-enhance.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmdoc-enhance.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides some enhancements for the gmdoc package:
nicer formatting for multiple line inline comments, an ability
to "comment out" some code, and a macro to input other files in
"normal" LaTeX mode.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gmdoc-enhance/gmdoc-enhance.sty
%doc %{_texmfdistdir}/doc/latex/gmdoc-enhance/README
%doc %{_texmfdistdir}/doc/latex/gmdoc-enhance/gmdoc-enhance.pdf
#- source
%doc %{_texmfdistdir}/source/latex/gmdoc-enhance/gmdoc-enhance.dtx
%doc %{_texmfdistdir}/source/latex/gmdoc-enhance/gmdoc-enhance.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18481 |21mr|texlive-gmeometric-0.73-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/gmeometric
# catalog-date 2008-11-23 19:39:24 +0100
# catalog-license lppl
# catalog-version 0.73
Name:		texlive-gmeometric
Version:	0.73
Release:	7
Summary:	Change page size wherever it's safe
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gmeometric
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmeometric.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmeometric.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Changing the size of the typeset area is well-known to be a
dangerous operation in TeX documents. This package identifies
the circumstances where the \geometry command of the geometry
package may safely be used, (other, of course, than in the
preamble of a document) and provides a mechanism for using it.
The package makes use of the author's gmutils package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gmeometric/gmeometric.sty
%doc %{_texmfdistdir}/doc/latex/gmeometric/README
%doc %{_texmfdistdir}/doc/latex/gmeometric/gmeometric.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18482 |21mr|texlive-gmiflink-0.97-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gmiflink
Version:	0.97
Release:	2
Summary:	Simplify usage of \hypertarget and \hyperlink
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gmiflink
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmiflink.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmiflink.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Three hyperref-based macros that simplify usage of \hypertarget
and \hyperlink: one argument instead of the same one twice.
Also \gmiflink and \gmifref which typeset plain text instead of
generating an error or printing '??' if there is no respective
hypertarget or label.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gmiflink/gmiflink.sty
%doc %{_texmfdistdir}/doc/latex/gmiflink/README
%doc %{_texmfdistdir}/doc/latex/gmiflink/gmiflink.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18483 |21mr|texlive-gmp-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21691
# category Package
# catalog-ctan /macros/latex/contrib/gmp
# catalog-date 2011-03-11 00:02:27 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-gmp
Version:	1.0
Release:	7
Summary:	Allow integration between MetaPost pictures and LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gmp
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows integration between MetaPost pictures and
LaTeX. The main feature is that passing parameters to the
MetaPost pictures is possible and the picture code can be put
inside arguments to commands, including \newcommand.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gmp/gmp.sty
%doc %{_texmfdistdir}/doc/latex/gmp/README
%doc %{_texmfdistdir}/doc/latex/gmp/gmp.pdf
#- source
%doc %{_texmfdistdir}/source/latex/gmp/gmp.dtx
%doc %{_texmfdistdir}/source/latex/gmp/gmp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18484 |21mr|texlive-gmutils-0.996-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gmutils
Version:	0.996
Release:	2
Summary:	Support macros for other packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gmutils
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmutils.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmutils.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Miscellaneous macros used by others of the author's packages.
Contents of the package: \newgif and other globals; \@ifnextcat
and \@ifXeTeX; \(Re)storeMacro(s) to override redefinitions;
\afterfi and friends; commands from relsize, etc.; "almost an
environment" or redefinition of \begin (\begin* doesn't check
if the argument environment is defined).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gmutils/gmRCS.sty
%{_texmfdistdir}/tex/latex/gmutils/gmampulex.sty
%{_texmfdistdir}/tex/latex/gmutils/gmbase.sty
%{_texmfdistdir}/tex/latex/gmutils/gmcommand.sty
%{_texmfdistdir}/tex/latex/gmutils/gmenvir.sty
%{_texmfdistdir}/tex/latex/gmutils/gmlogos.sty
%{_texmfdistdir}/tex/latex/gmutils/gmmeta.sty
%{_texmfdistdir}/tex/latex/gmutils/gmmw.sty
%{_texmfdistdir}/tex/latex/gmutils/gmnotonlypream.sty
%{_texmfdistdir}/tex/latex/gmutils/gmparts.sty
%{_texmfdistdir}/tex/latex/gmutils/gmrelsize.sty
%{_texmfdistdir}/tex/latex/gmutils/gmtypos.sty
%{_texmfdistdir}/tex/latex/gmutils/gmurl.sty
%{_texmfdistdir}/tex/latex/gmutils/gmutils.sty
%doc %{_texmfdistdir}/doc/latex/gmutils/README
%doc %{_texmfdistdir}/doc/latex/gmutils/gmutils.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18485 |21mr|texlive-gmverb-0.98-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gmverb
Version:	0.98
Release:	2
Summary:	A variant of LaTeX \verb, verbatim and shortvrb
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gmverb
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmverb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmverb.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A redefinition of \verb and verbatim so that long lines are
breakable before \ and after { with % as 'hyphen'. Allows you
to define your own verbatim-like environments (subject to a
size limit) and allows you to declare any single character as a
shorthand as in the \MakeShortVerb command of the shortvrb
package of the LaTeX distribution. The package depends on the
gmutils package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gmverb/gmverb.sty
%doc %{_texmfdistdir}/doc/latex/gmverb/README
%doc %{_texmfdistdir}/doc/latex/gmverb/gmverb.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18486 |21mr|texlive-gmverse-0.73-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gmverse
Version:	0.73
Release:	2
Summary:	A package for typesetting (short) poems
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gmverse
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmverse.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gmverse.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A redefinition of the verse environment to make the \\ command
optional for line ends and to give it a possibility of optical
centering and `right-hanging' alignment of lines broken because
of length.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gmverse/gmverse.sty
%doc %{_texmfdistdir}/doc/latex/gmverse/README
%doc %{_texmfdistdir}/doc/latex/gmverse/gmverse.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18487 |21mr|texlive-gnuplottex-0.9.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gnuplottex
Version:	0.9.2
Release:	2
Summary:	Embed Gnuplot commands in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gnuplottex
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gnuplottex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gnuplottex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gnuplottex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extracts Gnuplot code from the document and writes
it to .gnuplot files. If shell escape is enabled, the graph
files are automatically processed and converted to PostScript
or PDF files, which will then be included. If shell escape is
disabled, the user has to run the files through gnuplot, and
re-run the LaTeX job.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gnuplottex
%doc %{_texmfdistdir}/doc/latex/gnuplottex
#- source
%doc %{_texmfdistdir}/source/latex/gnuplottex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18488 |21mr|texlive-go-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28628
# category Package
# catalog-ctan /fonts/go
# catalog-date 2012-05-17 22:49:03 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-go
Version:	20190228
Release:	1
Summary:	Fonts and macros for typesetting go games
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/go
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/go.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/go.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/go.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The macros provide for nothing more complicated than the
standard 19x19 board; the fonts are written in Metafont.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/go/go.mf
%{_texmfdistdir}/fonts/source/public/go/go10.mf
%{_texmfdistdir}/fonts/source/public/go/go15.mf
%{_texmfdistdir}/fonts/source/public/go/go1bla10.mf
%{_texmfdistdir}/fonts/source/public/go/go1bla15.mf
%{_texmfdistdir}/fonts/source/public/go/go1bla20.mf
%{_texmfdistdir}/fonts/source/public/go/go1black.mf
%{_texmfdistdir}/fonts/source/public/go/go1whi10.mf
%{_texmfdistdir}/fonts/source/public/go/go1whi15.mf
%{_texmfdistdir}/fonts/source/public/go/go1whi20.mf
%{_texmfdistdir}/fonts/source/public/go/go1white.mf
%{_texmfdistdir}/fonts/source/public/go/go20.mf
%{_texmfdistdir}/fonts/source/public/go/go2bla10.mf
%{_texmfdistdir}/fonts/source/public/go/go2bla15.mf
%{_texmfdistdir}/fonts/source/public/go/go2bla20.mf
%{_texmfdistdir}/fonts/source/public/go/go2black.mf
%{_texmfdistdir}/fonts/source/public/go/go2whi10.mf
%{_texmfdistdir}/fonts/source/public/go/go2whi15.mf
%{_texmfdistdir}/fonts/source/public/go/go2whi20.mf
%{_texmfdistdir}/fonts/source/public/go/go2white.mf
%{_texmfdistdir}/fonts/source/public/go/gosign50.mf
%{_texmfdistdir}/fonts/tfm/public/go/go10.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go15.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go1bla10.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go1bla15.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go1bla20.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go1whi10.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go1whi15.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go1whi20.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go20.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go2bla10.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go2bla15.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go2bla20.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go2whi10.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go2whi15.tfm
%{_texmfdistdir}/fonts/tfm/public/go/go2whi20.tfm
%{_texmfdistdir}/fonts/tfm/public/go/gosign50.tfm
%{_texmfdistdir}/tex/latex/go/go.sty
%doc %{_texmfdistdir}/doc/fonts/go/gomaps.ltx
#- source
%doc %{_texmfdistdir}/source/fonts/go/go.bat
%doc %{_texmfdistdir}/source/fonts/go/go1.bat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18489 |21mr|texlive-gost-1.2i-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gost
Epoch:		1
Version:	1.2i
Release:	3
Summary:	BibTeX styles to format according to GOST
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/gost
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gost.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gost.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gost.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
BibTeX styles to format bibliographies in English, Russian or
Ukrainian according to GOST 7.0.5-2008 or GOST 7.1-2003. Both
8-bit and Unicode (UTF-8) versions of each BibTeX style, in
each case offering a choice of sorted and unsorted. Further, a
set of three styles (which do not conform to current standards)
are retained for backwards compatibility.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/gost
%{_texmfdistdir}/bibtex/csf/gost
%doc %{_texmfdistdir}/doc/bibtex/gost
#- source
%doc %{_texmfdistdir}/source/bibtex/gost

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18490 |21mr|texlive-gradientframe-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21387
# category Package
# catalog-ctan /macros/latex/contrib/gradientframe
# catalog-date 2011-02-13 15:43:06 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-gradientframe
Version:	0.2
Release:	7
Summary:	Simple gradient frames around objects
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gradientframe
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gradientframe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gradientframe.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gradientframe.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of drawing graded frames around
objects. The gradients of the frames are drawn using the color
package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gradientframe/gradientframe.sty
%doc %{_texmfdistdir}/doc/latex/gradientframe/README
%doc %{_texmfdistdir}/doc/latex/gradientframe/gradientframe.pdf
#- source
%doc %{_texmfdistdir}/source/latex/gradientframe/gradientframe.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18491 |21mr|texlive-grafcet-1.3.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22509
# category Package
# catalog-ctan /graphics/pgf/contrib/grafcet
# catalog-date 2011-05-17 01:53:44 +0200
# catalog-license lppl1
# catalog-version 1.3.5
Name:		texlive-grafcet
Version:	1.3.5
Release:	7
Summary:	Draw Grafcet/SFC with TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/grafcet
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grafcet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grafcet.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a library (GRAFCET) that can draw
Grafcet/SFC diagrams, in accordance with EN 60848, using
Pgf/TikZ. L'objectif de la librairie GRAFCET est de permettre
le trace de grafcet selon la norme EN~60848 a partir de
Pgf/TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/grafcet/grafcet.sty
%doc %{_texmfdistdir}/doc/latex/grafcet/README
%doc %{_texmfdistdir}/doc/latex/grafcet/grafcet.pdf
%doc %{_texmfdistdir}/doc/latex/grafcet/grafcet.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18492 |21mr|texlive-graphics-20200303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-graphics
Version:	20200303
Release:	2
Summary:	Standard LaTeX graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/required/graphics
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics.source.tar.xz
Source3:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics-def.tar.xz
Source4:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics-def.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires:	texlive-graphics-cfg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

Provides:	texlive-graphics-def

%description
The package was designed to accommodate all needs for inclusion
of graphics in LaTeX documents, replacing many earlier packages
used in LaTeX 2.09. The package aims to give a consistent
interface to including the file types that are understood in
your output, by use of 'printer drivers' (now known, simply, as
'drivers'). The distribtion of the package contains several
drivers, but others (for example, pdfTeX) are distributed
separately. The package also offers several means of
manipulating graphics in the course of inserting them into a
document (for example, rotation and scaling). For extended
documentation see epslatex. The package is part of the graphics
bundle, which is one of the collections in the LaTeX 'required'
set of packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/graphics
%{_texmfdistdir}/tex/latex/graphics-def
%{_tlpkgdir}/tlpobj/*
%doc %{_texmfdistdir}/doc/latex/graphics
%doc %{_texmfdistdir}/doc/latex/graphics-def
#- source
%doc %{_texmfdistdir}/source/latex/graphics

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2 -a3 -a4

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_tlpkgdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
cp -fpar tlpkg/* %{buildroot}%{_tlpkgdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18493 |21mr|texlive-graphics-cfg-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-graphics-cfg
Version:	20190228
Release:	1
Summary:	Standard LaTeX graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/graphics-cfg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics-cfg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphics-cfg.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires:	texlive-graphics
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Default configuration files for the texlive graphicx module

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/graphics-cfg
%doc %{_texmfdistdir}/doc/latex/graphics-cfg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18494 |21mr|texlive-graphicxbox-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32630
# category Package
# catalog-ctan /macros/latex/contrib/graphicxbox
# catalog-date 2014-01-10 18:49:42 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-graphicxbox
Version:	1.0
Release:	6
Summary:	Insert a graphical image as a background
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/graphicxbox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphicxbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphicxbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphicxbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines two new commands \graphicxbox and
\fgraphicxbox, which are companions to \colorbox and \fcolorbox
of the Standard LaTeX color package. The \graphicxbox command
inserts a graphical image as a background rather than a
background color, while \fgraphicxbox does the same thing, but
also draws a colored frame around the box.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/graphicxbox/graphicxbox.sty
%doc %{_texmfdistdir}/doc/latex/graphicxbox/README
%doc %{_texmfdistdir}/doc/latex/graphicxbox/doc/graphicxbox.pdf
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/IndianBlanket.eps
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/IndianBlanket.pdf
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/Wood-Brown.eps
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/Wood-Brown.pdf
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/bg_cle_tile.eps
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/grandcanyon.eps
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/grandcanyon.pdf
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/news_bgr.eps
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/graphics/news_bgr.pdf
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/grfxbox_tst.pdf
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/grfxbox_tst.tex
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/grfxbox_tst_indians.pdf
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/grfxbox_tst_indians.tex
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/grfxbox_tst_sp.pdf
%doc %{_texmfdistdir}/doc/latex/graphicxbox/examples/grfxbox_tst_sp.tex
#- source
%doc %{_texmfdistdir}/source/latex/graphicxbox/graphicxbox.dtx
%doc %{_texmfdistdir}/source/latex/graphicxbox/graphicxbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18495 |21mr|texlive-graphicx-psmin-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/graphicx-psmin
# catalog-date 2007-05-25 16:15:27 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-graphicx-psmin
Version:	1.1
Release:	7
Summary:	Reduce size of PostScript files by not repeating images
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/graphicx-psmin
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphicx-psmin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphicx-psmin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphicx-psmin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is an extension of the standard graphics bundle
and provides a way to include repeated PostScript graphics (ps,
eps) only once in a PostScript document. This provides a way to
get smaller PostScript documents when having, for instance, a
logo on every page. This package only works when post-processed
with dvips, which should at least have version 5.95b. The
difference for a resulting distilled PDF file is minimal (as
Ghostscript and Adobe Distiller only include a single copy of
each graphics file, anyway).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/graphicx-psmin/graphicx-psmin.sty
%doc %{_texmfdistdir}/doc/latex/graphicx-psmin/README
%doc %{_texmfdistdir}/doc/latex/graphicx-psmin/graphicx-psmin.pdf
#- source
%doc %{_texmfdistdir}/source/latex/graphicx-psmin/graphicx-psmin.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18496 |21mr|texlive-graphviz-0.94-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31517
# category Package
# catalog-ctan /macros/latex/contrib/graphviz
# catalog-date 2013-08-26 01:14:13 +0200
# catalog-license lppl1.3
# catalog-version 0.94
Name:		texlive-graphviz
Version:	0.94
Release:	11
Summary:	Write graphviz (dot+neato) inline in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/graphviz
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphviz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphviz.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/graphviz.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows inline use of graphviz code, in a LaTeX
document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/graphviz/graphviz.sty
%doc %{_texmfdistdir}/doc/latex/graphviz/LICENSE
%doc %{_texmfdistdir}/doc/latex/graphviz/Makefile
%doc %{_texmfdistdir}/doc/latex/graphviz/README
%doc %{_texmfdistdir}/doc/latex/graphviz/README.md
%doc %{_texmfdistdir}/doc/latex/graphviz/graphviz.pdf
%doc %{_texmfdistdir}/doc/latex/graphviz/test/Makefile
%doc %{_texmfdistdir}/doc/latex/graphviz/test/body.tex
%doc %{_texmfdistdir}/doc/latex/graphviz/test/pdf-singlefile-tmpdir.tex
%doc %{_texmfdistdir}/doc/latex/graphviz/test/pdf-singlefile.tex
%doc %{_texmfdistdir}/doc/latex/graphviz/test/pdf-tmpdir.tex
%doc %{_texmfdistdir}/doc/latex/graphviz/test/pdf.tex
%doc %{_texmfdistdir}/doc/latex/graphviz/test/ps.tex
#- source
%doc %{_texmfdistdir}/source/latex/graphviz/graphviz.dtx
%doc %{_texmfdistdir}/source/latex/graphviz/graphviz.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18497 |21mr|texlive-greekdates-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/greekdates
# catalog-date 2008-08-21 09:38:31 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-greekdates
Version:	1.0
Release:	7
Summary:	Provides ancient Greek day and month names, dates, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/greekdates
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greekdates.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greekdates.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greekdates.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides easy access to ancient Greek names of days
and months of various regions of Greece. In case the historical
information about a region is not complete, we use the Athenian
name of the month. Moreover commands and options are provided,
in order to completely switch to the "ancient way", commands
such as \today.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/greekdates/greekdates.sty
%doc %{_texmfdistdir}/doc/latex/greekdates/README
%doc %{_texmfdistdir}/doc/latex/greekdates/greekdates.pdf
#- source
%doc %{_texmfdistdir}/source/latex/greekdates/greekdates.dtx
%doc %{_texmfdistdir}/source/latex/greekdates/greekdates.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18498 |21mr|texlive-greek-fontenc-0.13.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-greek-fontenc
Version:	0.13.2
Release:	2
Summary:	LICR macros and encoding definition files for Greek
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/greek/greek-fontenc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greek-fontenc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greek-fontenc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides Greek LICR macro definitions and encoding
definition files for Greek text font encodings for use with
fontenc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/greek-fontenc
%doc %{_texmfdistdir}/doc/latex/greek-fontenc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18499 |21mr|texlive-greek-inputenc-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-greek-inputenc
Version:	1.6
Release:	2
Summary:	Greek encoding support for inputenc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/greek/greek-inputenc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greek-inputenc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greek-inputenc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides Macintosh Greek encoding and ISO 8859-7
definition files for use with inputenc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/greek-inputenc
%doc %{_texmfdistdir}/doc/latex/greek-inputenc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18500 |21mr|texlive-greektex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28327
# category Package
# catalog-ctan /fonts/greek/greektex
# catalog-date 2012-07-13 12:20:40 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-greektex
Version:	20190228
Release:	1
Summary:	Fonts for typesetting Greek/English documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/greektex
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greektex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/greektex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts are based on Silvio Levy's classical Greek fonts;
macros and Greek hyphenation patterns for the fonts' encoding
are also provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/greektex/greektex.sty
%doc %{_texmfdistdir}/doc/fonts/greektex/README
%doc %{_texmfdistdir}/doc/fonts/greektex/gehyphw.gr
%doc %{_texmfdistdir}/doc/fonts/greektex/greektexdoc.pdf
%doc %{_texmfdistdir}/doc/fonts/greektex/greektexdoc.tex
%doc %{_texmfdistdir}/doc/fonts/greektex/ywcl.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18501 |21mr|texlive-grfpaste-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17354
# category Package
# catalog-ctan /macros/latex/contrib/grfpaste
# catalog-date 2010-03-06 14:40:43 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-grfpaste
Version:	0.2
Release:	7
Summary:	Include fragments of a dvi file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/grfpaste
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grfpaste.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grfpaste.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a mechanism to include fragments of dvi files with the
graphicx package, so that you can use \includegraphics to
include dvi files. The package requires the dvipaste program.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/grfpaste/grfpaste.sty
%doc %{_texmfdistdir}/doc/latex/grfpaste/doc/grfpaste.pdf
%doc %{_texmfdistdir}/doc/latex/grfpaste/doc/grfpaste.tex
%doc %{_texmfdistdir}/doc/latex/grfpaste/dvipaste.txt
%doc %{_texmfdistdir}/doc/latex/grfpaste/grfp1.tex
%doc %{_texmfdistdir}/doc/latex/grfpaste/grfp2.tex
%doc %{_texmfdistdir}/doc/latex/grfpaste/grfp3.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18502 |21mr|texlive-grid-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/grid
# catalog-date 2009-11-09 22:36:07 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-grid
Version:	1.0
Release:	7
Summary:	Grid typesetting in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/grid
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grid.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grid.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grid.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables grid typesetting in double column
documents. Grid typesetting (vertical aligning of lines of text
in adjacent columns) is a difficult task in LaTeX, and the
present package is no more than an attempt to help users to
achieve it in a limited way. An example document, grid.tex, is
provided with simple instructions to typeset it using the
package. The package needs a lot of, this is only a
beginning...


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/grid/grid.sty
%doc %{_texmfdistdir}/doc/latex/grid/README
%doc %{_texmfdistdir}/doc/latex/grid/grid.pdf
%doc %{_texmfdistdir}/doc/latex/grid/grid.tex
%doc %{_texmfdistdir}/doc/latex/grid/manifest.txt
%doc %{_texmfdistdir}/doc/latex/grid/rvdtx.sty
#- source
%doc %{_texmfdistdir}/source/latex/grid/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18503 |21mr|texlive-gridset-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/gridset
# catalog-date 2009-11-09 22:36:07 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-gridset
Version:	0.1
Release:	7
Summary:	Grid, a.k.a. in-register, setting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gridset
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gridset.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gridset.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gridset.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Grid setting -- also known as strict in-register setting -- is
something, that should be done for a lot of documents but is
not easy using LaTeX. The package helps to get the information
needed for grid setting. It does not implement auto grid
setting, but there is a command \vskipnextgrid, that moves to
the next grid position. This may be enough under some
circumstances, but in other circumstances it may fail. Thus
gridset is only one more step for grid setting, not a complete
solution.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gridset/gridset.sty
%doc %{_texmfdistdir}/doc/latex/gridset/gridset.pdf
#- source
%doc %{_texmfdistdir}/source/latex/gridset/README
%doc %{_texmfdistdir}/source/latex/gridset/gridset.dtx
%doc %{_texmfdistdir}/source/latex/gridset/gridset.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18504 |21mr|texlive-grid-system-0.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32981
# category Package
# catalog-ctan /macros/latex/contrib/grid-system
# catalog-date 2014-02-16 20:01:44 +0100
# catalog-license apache2
# catalog-version 0.3.0
Name:		texlive-grid-system
Version:	0.3.0
Release:	6
Summary:	Page organisation, modelled on CSS facilities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/grid-system
License:	APACHE2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grid-system.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grid-system.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means for LaTeX to implement a grid
system as known from CSS grid systems. The facility is useful
for creating box layouts as used in brochures.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/grid-system/grid-system.sty
%doc %{_texmfdistdir}/doc/latex/grid-system/LICENSE
%doc %{_texmfdistdir}/doc/latex/grid-system/README
%doc %{_texmfdistdir}/doc/latex/grid-system/grid-system.pdf
%doc %{_texmfdistdir}/doc/latex/grid-system/grid-system.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18505 |21mr|texlive-grverb-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17368
# category Package
# catalog-ctan /language/greek/grverb
# catalog-date 2010-03-06 16:54:30 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-grverb
Version:	1.0
Release:	7
Summary:	Typesetting Greek verbatim
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/greek/grverb
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grverb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grverb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/grverb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides verbatim typsetting, in the context of the
Greek option in babel. The package uses the public domain
Greek-CourierPlain font, and the font itself (in Type 1
format), metrics and a font map entry for its use are provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/grverb/grkcurp.afm
%{_texmfdistdir}/fonts/map/dvips/grverb/grverb.map
%{_texmfdistdir}/fonts/tfm/public/grverb/grcour7t.tfm
%{_texmfdistdir}/fonts/tfm/public/grverb/grcour8a.tfm
%{_texmfdistdir}/fonts/type1/public/grverb/grkcurp.pfb
%{_texmfdistdir}/fonts/vf/public/grverb/grcour7t.vf
%{_texmfdistdir}/tex/latex/grverb/grverb.sty
%doc %{_texmfdistdir}/doc/latex/grverb/README
%doc %{_texmfdistdir}/doc/latex/grverb/grv.ps
%doc %{_texmfdistdir}/doc/latex/grverb/grv.tex
%doc %{_texmfdistdir}/doc/latex/grverb/grverb.pdf
#- source
%doc %{_texmfdistdir}/source/latex/grverb/grcour7t.vpl
%doc %{_texmfdistdir}/source/latex/grverb/grverb.dtx
%doc %{_texmfdistdir}/source/latex/grverb/grverb.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18506 |21mr|texlive-GS1-22-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-GS1
Version:	22
Release:	11
Summary:	Typeset EAN barcodes using TeX rules, only
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gs1
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/GS1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/GS1.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/GS1.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The (LaTeX 3) package typesets EAN-8 and EAN-13 barcodes, using
the facilities of the rule-D package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/GS1
%doc %{_texmfdistdir}/doc/latex/GS1
#- source
%doc %{_texmfdistdir}/source/latex/GS1

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18507 |21mr|texlive-gsftopk-1.19.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /fonts/utilities/gsftopk
# catalog-date 2012-07-13 12:47:32 +0200
# catalog-license gpl
# catalog-version 1.19.2
Name:		texlive-gsftopk
Version:	1.19.2
Release:	14
Summary:	Convert "ghostscript fonts" to PK files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/utilities/gsftopk
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gsftopk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gsftopk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-gsftopk.bin

%description
Designed for use with xdvi and dvips this utility converts
Adobe Type 1 fonts to PK bitmap format. It should not
ordinarily be much used nowadays, since both its target
applications are now capable of dealing with Type 1 fonts,
direct.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/gsftopk/render.ps
%doc %{_mandir}/man1/gsftopk.1*
%doc %{_texmfdistdir}/doc/man/man1/gsftopk.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18508 |21mr|texlive-gtl-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-gtl
Version:	0.5
Release:	1
Epoch:		1
Summary:	TeXLive gtl package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gtl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gtl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gtl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive gtl package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/gtl
%doc %{_texmfdistdir}/doc/generic/gtl
#- source
%doc %{_texmfdistdir}/source/generic/gtl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18509 |21mr|texlive-gtrcrd-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32484
# category Package
# catalog-ctan /macros/latex/contrib/gtrcrd
# catalog-date 2013-12-25 08:30:41 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-gtrcrd
Version:	1.1
Release:	6
Summary:	Add chords to lyrics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gtrcrd
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gtrcrd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gtrcrd.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to specify guitar chords to be
played with each part of the lyrics of a song. The syntax of
the macros reduces the chance of failing to provide a chord
where one is needed, and the structure of the macros ensures
that the chord specification appears immediately above the
start of the lyric.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gtrcrd/gtrcrd.sty
%doc %{_texmfdistdir}/doc/latex/gtrcrd/README
%doc %{_texmfdistdir}/doc/latex/gtrcrd/gtrcrd-doc.pdf
%doc %{_texmfdistdir}/doc/latex/gtrcrd/gtrcrd-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18510 |21mr|texlive-gu-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/gu
# catalog-date 2008-08-21 09:38:31 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-gu
Version:	20190228
Release:	1
Summary:	Typeset crystallographic group-subgroup-schemes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gu
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gu.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gu.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package simplifies typesetting of simple crystallographic
group-subgroup-schemes in the Barnighausen formalism. It
defines a new environment stammbaum, wherein all elements of
the scheme are defined. Afterwards all necessary dimensions are
calculated and the scheme is drawn. Currently two steps of
symmetry reduction are supported.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/gu/gu.sty
%doc %{_texmfdistdir}/doc/latex/gu/README
%doc %{_texmfdistdir}/doc/latex/gu/gudemo.tex
%doc %{_texmfdistdir}/doc/latex/gu/gudoc.pdf
%doc %{_texmfdistdir}/doc/latex/gu/gudoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18511 |21mr|texlive-guide-to-latex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-guide-to-latex
Version:	20190228
Release:	1
Summary:	TeXLive guide-to-latex package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guide-to-latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guide-to-latex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive guide-to-latex package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/README.txt
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/demo.eps
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/demo.pdf
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/demodoc.pdf
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/demodoc.ps
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/demodoc.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-10.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-4.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-5.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-6.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-7.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-8.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap10/exer10-9.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap11/exer1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap11/exer11-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap11/exer11-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap11/exer11-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap11/exer11-4.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap11/exer11-5.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap11/exer2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap11/exer3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap15/exer15-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap15/exer15-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap15/exer15-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap15/exer15-4.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap15/exer15-5.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap15/exer15-6.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap15/exer15-7.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap2/exer2-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap2/exer2-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap2/exer2-3a.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap2/exer2-3b.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap2/exer2-3c.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-10.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-11.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-12.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-12.toc
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-1a.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-1b.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-4a.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-4b.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-5a.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-5b.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-6.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-7a.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-7b.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-8a.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-8b.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap3/exer3-9.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-10.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-4.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-5.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-6.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-7.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-8.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap4/exer4-9.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap5/exer5-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap5/exer5-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap5/exer5-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap5/exer5-4.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap6/exer6-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap6/exer6-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap6/exer6-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap6/exer6-4.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap6/exer6-5.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-10.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-11.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-12.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-13.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-14.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-15.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-16.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-17.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-18.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-19.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-20.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-21a.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-21b.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-4.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-5.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-6.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-7.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-8.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap7/exer7-9.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap8/exer8-1.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap8/exer8-2.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/exercises/chap8/exer8-3.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/mpletter.cls
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/palette.pdf
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/palette.ps
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/palette.tex
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/seminar.con
%doc %{_texmfdistdir}/doc/latex/guide-to-latex/sempdftx.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18512 |21mr|texlive-guitar-1.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32258
# category Package
# catalog-ctan /macros/latex/contrib/guitar
# catalog-date 2013-11-27 01:09:36 +0100
# catalog-license lppl1.3
# catalog-version 1.6
Name:		texlive-guitar
Version:	1.6
Release:	12
Summary:	Guitar chords and song texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/guitar
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guitar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guitar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guitar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
(La)TeX macros for typesetting guitar chords over song texts.
The toolbox package is required. Note that this package only
places arbitrary TeX code over the lyrics. To typeset the
chords graphically (and not only by name), the author
recommends use of an additional package such as gchords by K.
Peeters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/guitar/guitar.sty
%doc %{_texmfdistdir}/doc/latex/guitar/README
%doc %{_texmfdistdir}/doc/latex/guitar/guitar.pdf
%doc %{_texmfdistdir}/doc/latex/guitar/guitar.tex
%doc %{_texmfdistdir}/doc/latex/guitar/guitar.txt
#- source
%doc %{_texmfdistdir}/source/latex/guitar/guitar.dtx
%doc %{_texmfdistdir}/source/latex/guitar/guitar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18513 |21mr|texlive-guitarchordschemes-0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31524
# category Package
# catalog-ctan /macros/latex/contrib/guitarchordschemes
# catalog-date 2013-08-25 22:09:38 +0200
# catalog-license lppl1.3
# catalog-version 0.4
Name:		texlive-guitarchordschemes
Version:	0.7
Release:	2
Summary:	Guitar Chord and Scale Tablatures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/guitarchordschemes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guitarchordschemes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guitarchordschemes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides two commands (\chordscheme and \scales).
With those commands it is possible to draw schematic diagrams
of guitar chord tablatures and scale tablatures. Both commands
know a range of options that allow wide customization of the
output. The package's drawing is done with the help of TikZ.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/guitarchordschemes/guitarchordschemes.sty
%doc %{_texmfdistdir}/doc/latex/guitarchordschemes/README
%doc %{_texmfdistdir}/doc/latex/guitarchordschemes/guitarchordschemes_en.pdf
%doc %{_texmfdistdir}/doc/latex/guitarchordschemes/guitarchordschemes_en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18514 |21mr|texlive-guitlogo-0.9.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27458
# category Package
# catalog-ctan /macros/latex/contrib/GuIT/GuITlogo
# catalog-date 2012-08-19 10:36:46 +0200
# catalog-license lppl
# catalog-version 0.9.2
Name:		texlive-guitlogo
Version:	0.9.2
Release:	11
Summary:	Macros for typesetting the GuIT logo
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/GuIT/GuITlogo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guitlogo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guitlogo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/guitlogo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Guit provides some commands useful to correctly write the logo
of GUIT -- "Gruppo Utilizzatori Italiani di TeX" (Italian TeX
User Group), using the default document color or any other
color the user may ever choose, in conformity with logo's
scheme as seen on the Group web site
(http://www.guit.sssup.it). Likewise, commands are provided
that simplify the writing of GuIT acronym's complete expansion,
of the addresses of Group's internet site and public forum and
'GuITmeeting' logo. Optionally, using hyperref, the outputs of
the above cited commands can become hyperlinks to Group's site.
Documentation is available in Italian, only.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/guitlogo/guit.cfg
%{_texmfdistdir}/tex/latex/guitlogo/guit.sty
%doc %{_texmfdistdir}/doc/latex/guitlogo/README
%doc %{_texmfdistdir}/doc/latex/guitlogo/guit.pdf
%doc %{_texmfdistdir}/doc/latex/guitlogo/guittest.pdf
%doc %{_texmfdistdir}/doc/latex/guitlogo/guittest.tex
#- source
%doc %{_texmfdistdir}/source/latex/guitlogo/guit.dtx
%doc %{_texmfdistdir}/source/latex/guitlogo/guit.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18515 |21mr|texlive-gustlib-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date 2007-01-21 11:04:51 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-gustlib
Version:	20190228
Release:	1
Summary:	Polish oriented macros
Group:		Publishing
URL:		http://tug.org/texlive
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gustlib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gustlib.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Various small utility packages for typesetting in plain TeX,
with a Polish perspective. Neither the package, nor any of its
contents, appears on CTAN.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/gustlib/plbib.bib
%{_texmfdistdir}/bibtex/bst/gustlib/plabbrv.bst
%{_texmfdistdir}/bibtex/bst/gustlib/plalpha.bst
%{_texmfdistdir}/bibtex/bst/gustlib/plplain.bst
%{_texmfdistdir}/bibtex/bst/gustlib/plunsrt.bst
%{_texmfdistdir}/tex/plain/gustlib/biblotex/biblotex.tex
%{_texmfdistdir}/tex/plain/gustlib/infr-ex.tex
%{_texmfdistdir}/tex/plain/gustlib/infram.tex
%{_texmfdistdir}/tex/plain/gustlib/licz/licz-tst.mex
%{_texmfdistdir}/tex/plain/gustlib/licz/licz.mex
%{_texmfdistdir}/tex/plain/gustlib/map/map.tex
%{_texmfdistdir}/tex/plain/gustlib/map/split.tex
%{_texmfdistdir}/tex/plain/gustlib/map/tsp-tst.mex
%{_texmfdistdir}/tex/plain/gustlib/map/tsp.tex
%{_texmfdistdir}/tex/plain/gustlib/map/tun-test.mex
%{_texmfdistdir}/tex/plain/gustlib/map/tun.tex
%{_texmfdistdir}/tex/plain/gustlib/mcol-ex.tex
%{_texmfdistdir}/tex/plain/gustlib/meashor.tex
%{_texmfdistdir}/tex/plain/gustlib/mimulcol.tex
%{_texmfdistdir}/tex/plain/gustlib/plbtx993/plbtxbst.doc
%{_texmfdistdir}/tex/plain/gustlib/plbtx993/test.mex
%{_texmfdistdir}/tex/plain/gustlib/plmac218/plidxmac.tex
%{_texmfdistdir}/tex/plain/gustlib/plmac218/plind.bat
%{_texmfdistdir}/tex/plain/gustlib/plmac218/przyklad.tex
%{_texmfdistdir}/tex/plain/gustlib/rbox-ex.tex
%{_texmfdistdir}/tex/plain/gustlib/roundbox.tex
%{_texmfdistdir}/tex/plain/gustlib/tp-crf.tex
%{_texmfdistdir}/tex/plain/gustlib/verbatim-dek.tex
%doc %{_texmfdistdir}/doc/plain/gustlib/README
%doc %{_texmfdistdir}/doc/plain/gustlib/readme.biblotex
%doc %{_texmfdistdir}/doc/plain/gustlib/readme.plbtx993
%doc %{_texmfdistdir}/doc/plain/gustlib/readme.plmac218

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18516 |21mr|texlive-gustprog-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-gustprog
Version:	20190228
Release:	1
Summary:	TeXLive gustprog package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gustprog.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gustprog.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive gustprog package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/support/gustprog/README
%doc %{_texmfdistdir}/doc/support/gustprog/l2h-examples.zip
%doc %{_texmfdistdir}/doc/support/gustprog/normtext.awk
%doc %{_texmfdistdir}/doc/support/gustprog/plmindex.zip
%doc %{_texmfdistdir}/doc/support/gustprog/porzadki.pl
%doc %{_texmfdistdir}/doc/support/gustprog/slim.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18517 |21mr|texlive-hanging-1.2b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/hanging
# catalog-date 2009-11-02 14:28:41 +0100
# catalog-license lppl1.3
# catalog-version 1.2b
Name:		texlive-hanging
Version:	1.2b
Release:	7
Summary:	Hanging paragraphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hanging
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hanging.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hanging.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hanging.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The hanging package facilitates the typesetting of hanging
paragraphs. The package also enables typesetting with hanging
punctuation, by making punctuation characters active. This
facility is best suppressed (it can interfere with other
packages) -- there are package options for suppressing each
individual punctuation character. 'Real' attempts at hanging
punction should nowadays use the microtype package, which takes
advantage of the support offered in recent versions of pdfTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hanging/hanging.sty
%doc %{_texmfdistdir}/doc/latex/hanging/README
%doc %{_texmfdistdir}/doc/latex/hanging/hanging.pdf
#- source
%doc %{_texmfdistdir}/source/latex/hanging/hanging.dtx
%doc %{_texmfdistdir}/source/latex/hanging/hanging.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18518 |21mr|texlive-hanoi-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25019
# category Package
# catalog-ctan /macros/plain/contrib/hanoi/hanoi.tex
# catalog-date 2012-01-03 17:40:13 +0100
# catalog-license pd
# catalog-version 20120101
Name:		texlive-hanoi
Version:	20190228
Release:	1
Summary:	Tower of Hanoi in TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/hanoi/hanoi.tex
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hanoi.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Plain TeX program (typed in the shape of the towers of
Hanoi) serves both as a game and as a TeX programming exercise.
As a game it will solve the towers with (up to) 15 discs (with
15 discs, 32767 moves are needed).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/hanoi/hanoi.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18519 |21mr|texlive-happy4th-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25020
# category Package
# catalog-ctan /macros/plain/contrib/happy4th
# catalog-date 2012-01-03 17:38:40 +0100
# catalog-license pd
# catalog-version 20120102
Name:		texlive-happy4th
Version:	20190228
Release:	1
Summary:	A firework display in obfuscated TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/happy4th
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/happy4th.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/happy4th.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The output PDF file gives an amusing display, as the reader
pages through it.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/plain/happy4th/happy4th.pdf
%doc %{_texmfdistdir}/doc/plain/happy4th/happy4th.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18520 |21mr|texlive-HA-prosper-4.21-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ha-prosper
# catalog-date 2006-12-03 19:48:14 +0100
# catalog-license lppl
# catalog-version 4.21
Name:		texlive-HA-prosper
Version:	4.21
Release:	7
Summary:	Patches and improvements for prosper
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ha-prosper
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/HA-prosper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/HA-prosper.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/HA-prosper.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
HA-prosper is a patch for prosper that adds new functionality
to prosper based presentations. Among the new features you will
find automatic generation of a table of contents on each slide,
support for notes and portrait slides. The available styles
demonstrate how to expand the functionality of prosper even
further.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/HA-prosper/HA-prosper.cfg
%{_texmfdistdir}/tex/latex/HA-prosper/HA-prosper.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Aggie/AMLogo.eps
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Aggie/HAPAggie.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Aggie/files.txt
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Capsules/HAPcapsules.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Ciment/HAPciment.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Fyma/HAPFyma.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/HA/HAPHA.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/HA/flower.ps
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Lakar/HAPLakar.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Simple/HAPsimple.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/TCS/HAPTCS.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/TCS/HAPTCSTealBlue.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/TCS/HAPTCSgrad.sty
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/TCS/TCSgradlogo.ps
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/TCS/TCSlogo.ps
%{_texmfdistdir}/tex/latex/HA-prosper/Styles/Tycja/HAPTycja.sty
%doc %{_texmfdistdir}/doc/latex/HA-prosper/HA-prosper.pdf
%doc %{_texmfdistdir}/doc/latex/HA-prosper/HAPBigtest.tex
%doc %{_texmfdistdir}/doc/latex/HA-prosper/HAPDualslide.tex
%doc %{_texmfdistdir}/doc/latex/HA-prosper/HAPIntroduction.tex
%doc %{_texmfdistdir}/doc/latex/HA-prosper/README
#- source
%doc %{_texmfdistdir}/source/latex/HA-prosper/HA-prosper.def
%doc %{_texmfdistdir}/source/latex/HA-prosper/HA-prosper.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18521 |21mr|texlive-har2nat-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17356
# category Package
# catalog-ctan /macros/latex/contrib/har2nat
# catalog-date 2010-03-06 16:54:30 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-har2nat
Version:	1.0
Release:	7
Summary:	Replace the harvard package with natbib
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/har2nat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/har2nat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/har2nat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small package allows a LaTeX document containing the
citation commands provided by the Harvard package to be
compiled using the natbib package. Migration from harvard to
natbib thus can be achieved simply by replacing
\usepackage{harvard} with \usepackage{natbib}
\usepackage{har2nat} It is important that har2nat be loaded
after natbib, since it modifies natbib commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/har2nat/har2nat.sty
%doc %{_texmfdistdir}/doc/latex/har2nat/README
%doc %{_texmfdistdir}/doc/latex/har2nat/har2nat.pdf
%doc %{_texmfdistdir}/doc/latex/har2nat/har2nat.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18522 |21mr|texlive-hardwrap-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21396
# category Package
# catalog-ctan /macros/latex/contrib/hardwrap
# catalog-date 2011-02-12 10:24:58 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-hardwrap
Version:	0.2
Release:	7
Summary:	Hard wrap text to a certain character length
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hardwrap
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hardwrap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hardwrap.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hardwrap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package facilitates wrapping text to a specific character
width, breaking lines by words rather than, as done by TeX, by
characters. The primary use for these facilities is to aid the
generation of messages sent to the log file or console output
to display messages to the user. Package authors may also find
this useful when writing out arbitary text to an external file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hardwrap/hardwrap.sty
%doc %{_texmfdistdir}/doc/latex/hardwrap/README
%doc %{_texmfdistdir}/doc/latex/hardwrap/hardwrap.pdf
#- source
%doc %{_texmfdistdir}/source/latex/hardwrap/hardwrap.dtx
%doc %{_texmfdistdir}/source/latex/hardwrap/hardwrap.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18523 |21mr|texlive-harmony-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/harmony
# catalog-date 2009-06-25 00:34:53 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-harmony
Version:	20190228
Release:	1
Summary:	Typeset harmony symbols, etc., for musicology
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/harmony
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harmony.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harmony.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package harmony.sty uses the packages ifthen and amssymb
from the amsfonts bundle, together with the LaTeX font
lcirclew10 and the font musix13 from musixtex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/harmony/harmony.sty
%doc %{_texmfdistdir}/doc/latex/harmony/README
%doc %{_texmfdistdir}/doc/latex/harmony/harmony.pdf
%doc %{_texmfdistdir}/doc/latex/harmony/harmony.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18524 |21mr|texlive-harnon-cv-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26543
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-harnon-cv
Version:	1.0
Release:	3
Epoch:		1
Summary:	TeXLive harnon-cv package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harnon-cv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harnon-cv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive harnon-cv package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/harnon-cv/harnon-cv.cls
%doc %{_texmfdistdir}/doc/latex/harnon-cv/README
%doc %{_texmfdistdir}/doc/latex/harnon-cv/sample.pdf
%doc %{_texmfdistdir}/doc/latex/harnon-cv/sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18525 |21mr|texlive-harpoon-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21327
# category Package
# catalog-ctan /macros/latex/contrib/harpoon
# catalog-date 2008-09-24 00:41:06 +0200
# catalog-license pd
# catalog-version 1.0
Name:		texlive-harpoon
Version:	1.0
Release:	7
Summary:	Extra harpoons, using the graphics package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/harpoon
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harpoon.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harpoon.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides over- and under-harpoon symbol commands; the harpoons
may point in either direction, with the hook pointing up or
down. The covered object is provided as an argument to the
commands, so that they have the look of accent commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/harpoon/harpoon.sty
%doc %{_texmfdistdir}/doc/latex/harpoon/harpoon.pdf
%doc %{_texmfdistdir}/doc/latex/harpoon/harpoon.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18526 |21mr|texlive-harveyballs-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32003
# category Package
# catalog-ctan /graphics/pgf/contrib/harveyballs
# catalog-date 2013-10-26 15:10:57 +0200
# catalog-license gpl3
# catalog-version 1.1
Name:		texlive-harveyballs
Version:	1.1
Release:	10
Summary:	Create Harvey Balls using TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/harveyballs
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harveyballs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/harveyballs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides 5 commands (giving symbols from "none" to
"full").


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/harveyballs/harveyballs.sty
%doc %{_texmfdistdir}/doc/latex/harveyballs/README
%doc %{_texmfdistdir}/doc/latex/harveyballs/harveyballs-Manual.pdf
%doc %{_texmfdistdir}/doc/latex/harveyballs/harveyballs-Manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18527 |21mr|texlive-hatching-0.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23818
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/hatching
# catalog-date 2006-12-17 23:49:42 +0100
# catalog-license pd
# catalog-version 0.11
Name:		texlive-hatching
Version:	0.11
Release:	7
Summary:	MetaPost macros for hatching interior of closed paths
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/hatching
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hatching.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hatching.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The file hatching.mp contains a set of MetaPost macros for
hatching interior of closed paths. Examples of usage are
included.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/hatching/hatching.mp
%doc %{_texmfdistdir}/doc/metapost/hatching/README
%doc %{_texmfdistdir}/doc/metapost/hatching/htchuse.mp
%doc %{_texmfdistdir}/doc/metapost/hatching/htchuse_.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18528 |21mr|texlive-hausarbeit-jura-2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hausarbeit-jura
Version:	2.0
Release:	1
Summary:	Class for writing "juristiche Hausarbeiten" at German Universities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hausarbeit-jura
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hausarbeit-jura.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hausarbeit-jura.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hausarbeit-jura.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class was developed for use by students writing legal
essays ("juristische Hausarbeit") at German Universities. It is
based on jurabook and jurabib and makes it easy for LaTeX
beginners to get a correct and nicely formatted paper.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hausarbeit-jura
%doc %{_texmfdistdir}/doc/latex/hausarbeit-jura
#- source
%doc %{_texmfdistdir}/source/latex/hausarbeit-jura

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18529 |21mr|texlive-hc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/hc
# catalog-date 2008-04-20 19:53:04 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-hc
Version:	20190228
Release:	1
Summary:	Replacement for the LaTeX classes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hc
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of replacements for the default LaTeX classes, based upon
the Koma-Script bundle and the seminar class. Includes hcart,
hcreport, hcletter, and hcslides.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/hc/hc-de.bst
%{_texmfdistdir}/bibtex/bst/hc/hc-en.bst
%{_texmfdistdir}/tex/latex/hc/german.hld
%{_texmfdistdir}/tex/latex/hc/hcart.cls
%{_texmfdistdir}/tex/latex/hc/hcletter.cls
%{_texmfdistdir}/tex/latex/hc/hcreport.cls
%{_texmfdistdir}/tex/latex/hc/hcslides.cls
%doc %{_texmfdistdir}/doc/latex/hc/COPYING
%doc %{_texmfdistdir}/doc/latex/hc/FILES
%doc %{_texmfdistdir}/doc/latex/hc/README
%doc %{_texmfdistdir}/doc/latex/hc/hc.ps
#- source
%doc %{_texmfdistdir}/source/latex/hc/hc.dtx
%doc %{_texmfdistdir}/source/latex/hc/hc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18530 |21mr|texlive-helvetic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31835
# category Package
# catalog-ctan /fonts/urw/base35
# catalog-date 2012-06-06 22:57:48 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-helvetic
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/helvetic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/helvetic/config.uhv
%{_texmfdistdir}/fonts/afm/adobe/helvetic/phvb8a.afm
%{_texmfdistdir}/fonts/afm/adobe/helvetic/phvb8an.afm
%{_texmfdistdir}/fonts/afm/adobe/helvetic/phvbo8a.afm
%{_texmfdistdir}/fonts/afm/adobe/helvetic/phvbo8an.afm
%{_texmfdistdir}/fonts/afm/adobe/helvetic/phvr8a.afm
%{_texmfdistdir}/fonts/afm/adobe/helvetic/phvr8an.afm
%{_texmfdistdir}/fonts/afm/adobe/helvetic/phvro8a.afm
%{_texmfdistdir}/fonts/afm/adobe/helvetic/phvro8an.afm
%{_texmfdistdir}/fonts/afm/urw/helvetic/uhvb8a.afm
%{_texmfdistdir}/fonts/afm/urw/helvetic/uhvb8ac.afm
%{_texmfdistdir}/fonts/afm/urw/helvetic/uhvbo8a.afm
%{_texmfdistdir}/fonts/afm/urw/helvetic/uhvbo8ac.afm
%{_texmfdistdir}/fonts/afm/urw/helvetic/uhvr8a.afm
%{_texmfdistdir}/fonts/afm/urw/helvetic/uhvr8ac.afm
%{_texmfdistdir}/fonts/afm/urw/helvetic/uhvro8a.afm
%{_texmfdistdir}/fonts/afm/urw/helvetic/uhvro8ac.afm
%{_texmfdistdir}/fonts/map/dvips/helvetic/uhv.map
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb7tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb8cn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb8rn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvb8tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbc7tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbc8tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo7tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo8cn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo8rn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbo8tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbon.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvbrn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr7tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr8cn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr8rn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvr8tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvrc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvrc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvrc7tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvrc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvrc8tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro7tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro8cn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro8rn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvro8tn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvron.tfm
%{_texmfdistdir}/fonts/tfm/adobe/helvetic/phvrrn.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arb10u.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arb2n.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arb7j.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arb8u.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arb9t.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/ari10u.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/ari2n.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/ari7j.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/ari8u.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/ari9t.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arj10u.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arj2n.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arj7j.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arj8u.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arj9t.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arr10u.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arr2n.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arr7j.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arr8u.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/arr9t.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/mhvb.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/mhvb8t.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/mhvbi.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/mhvbi8t.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/mhvr.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/mhvr8t.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/mhvri.tfm
%{_texmfdistdir}/fonts/tfm/monotype/helvetic/mhvri8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvb7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvb7tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvb8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvb8cn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvb8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvb8rn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvb8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvb8tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbc7tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbc8tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbi7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbi8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbi8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbi8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbo7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbo7tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbo8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbo8cn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbo8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbo8rn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvbo8tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvr7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvr7tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvr8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvr8cn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvr8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvr8rn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvr8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvr8tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvrc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvrc7tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvrc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvrc8tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvri7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvri7tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvri8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvri8cn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvri8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvri8rn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvri8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvri8tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvro7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvro7tn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvro8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvro8cn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvro8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvro8rn.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvro8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/helvetic/uhvro8tn.tfm
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvb8a.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvb8a.pfm
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvb8ac.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvb8ac.pfm
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvbo8a.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvbo8a.pfm
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvbo8ac.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvbo8ac.pfm
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvr8a-105.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvr8a.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvr8a.pfm
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvr8ac.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvr8ac.pfm
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvro8a-105.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvro8a.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvro8a.pfm
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvro8ac.pfb
%{_texmfdistdir}/fonts/type1/urw/helvetic/uhvro8ac.pfm
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvb.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvb7t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvb7tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvb8c.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvb8cn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvb8t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvb8tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbc.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbc7tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbc8tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbo.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbo7t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbo7tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbo8c.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbo8cn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbo8t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbo8tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbon.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvbrn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvr.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvr7t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvr7tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvr8c.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvr8cn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvr8t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvr8tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvrc.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvrc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvrc7tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvrc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvrc8tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvro.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvro7t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvro7tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvro8c.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvro8cn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvro8t.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvro8tn.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvron.vf
%{_texmfdistdir}/fonts/vf/adobe/helvetic/phvrrn.vf
%{_texmfdistdir}/fonts/vf/monotype/helvetic/mhvb.vf
%{_texmfdistdir}/fonts/vf/monotype/helvetic/mhvb8t.vf
%{_texmfdistdir}/fonts/vf/monotype/helvetic/mhvbi.vf
%{_texmfdistdir}/fonts/vf/monotype/helvetic/mhvbi8t.vf
%{_texmfdistdir}/fonts/vf/monotype/helvetic/mhvr.vf
%{_texmfdistdir}/fonts/vf/monotype/helvetic/mhvr8t.vf
%{_texmfdistdir}/fonts/vf/monotype/helvetic/mhvri.vf
%{_texmfdistdir}/fonts/vf/monotype/helvetic/mhvri8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvb7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvb7tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvb8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvb8cn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvb8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvb8tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbc7tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbc8tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbi7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbi8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbi8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbo7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbo7tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbo8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbo8cn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvbo8tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvr7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvr7tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvr8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvr8cn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvr8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvr8tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvrc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvrc7tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvrc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvrc8tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvri7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvri7tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvri8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvri8cn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvri8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvri8tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvro7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvro7tn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvro8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvro8cn.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvro8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/helvetic/uhvro8tn.vf
%{_texmfdistdir}/tex/latex/helvetic/8ruhv.fd
%{_texmfdistdir}/tex/latex/helvetic/omluhv.fd
%{_texmfdistdir}/tex/latex/helvetic/omsuhv.fd
%{_texmfdistdir}/tex/latex/helvetic/ot1uhv.fd
%{_texmfdistdir}/tex/latex/helvetic/t1uhv.fd
%{_texmfdistdir}/tex/latex/helvetic/ts1uhv.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18531 |21mr|texlive-hep-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/hep
# catalog-date 2008-08-21 09:38:31 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-hep
Version:	1.0
Release:	7
Summary:	A "convenience wrapper" for High Energy Physics packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hep
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hep.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hep.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Loads the author's hepunits and hepnicenames packages, and a
selection of others that are useful in High Energy Physics
papers, etc.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hep/hep.sty
%doc %{_texmfdistdir}/doc/latex/hep/ChangeLog
%doc %{_texmfdistdir}/doc/latex/hep/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18532 |21mr|texlive-hepnames-2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31856
# category Package
# catalog-ctan /macros/latex/contrib/hepnames
# catalog-date 2013-10-07 18:28:42 +0200
# catalog-license lppl
# catalog-version 1.7
Name:		texlive-hepnames
Version:	2.0
Release:	3
Summary:	Pre-defined high energy particle names
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hepnames
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hepnames.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hepnames.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Hepnames provides a pair of LaTeX packages, heppennames and
hepnicenames, providing a large set of pre-defined high energy
physics particle names built with the hepparticles package. The
packages are based on pennames.sty by Michel Goosens and Eric
van Herwijnen. Heppennames re-implements the particle names in
pennames.sty, with some additions and alterations and greater
flexibility and robustness due to the hepparticles structures,
which were written for this purpose. Hepnicenames provides the
main non-resonant particle names from heppennames with more
"friendly" names.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hepnames/hepnames.sty
%{_texmfdistdir}/tex/latex/hepnames/hepnicenames.sty
%{_texmfdistdir}/tex/latex/hepnames/heppennames.sty
%doc %{_texmfdistdir}/doc/latex/hepnames/ChangeLog
%doc %{_texmfdistdir}/doc/latex/hepnames/Makefile
%doc %{_texmfdistdir}/doc/latex/hepnames/README
%doc %{_texmfdistdir}/doc/latex/hepnames/hepnames.pdf
%doc %{_texmfdistdir}/doc/latex/hepnames/hepnames.tex
%doc %{_texmfdistdir}/doc/latex/hepnames/hepnicenames-it.pdf
%doc %{_texmfdistdir}/doc/latex/hepnames/hepnicenames-it.tex
%doc %{_texmfdistdir}/doc/latex/hepnames/hepnicenames-macros.tex
%doc %{_texmfdistdir}/doc/latex/hepnames/hepnicenames-rm.pdf
%doc %{_texmfdistdir}/doc/latex/hepnames/hepnicenames-rm.tex
%doc %{_texmfdistdir}/doc/latex/hepnames/heppennames-it.pdf
%doc %{_texmfdistdir}/doc/latex/hepnames/heppennames-it.tex
%doc %{_texmfdistdir}/doc/latex/hepnames/heppennames-macros.tex
%doc %{_texmfdistdir}/doc/latex/hepnames/heppennames-rm.pdf
%doc %{_texmfdistdir}/doc/latex/hepnames/heppennames-rm.tex
%doc %{_texmfdistdir}/doc/latex/hepnames/mkmacrotables

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18533 |21mr|texlive-hepparticles-2.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hepparticles
Version:	2.0
Release:	3
Epoch:		1
Summary:	Macros for typesetting high energy physics particle names
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hepparticles
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hepparticles.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hepparticles.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
HEPparticles is a set of macros for typesetting high energy
particle names, to meet the following criteria: 1. The main
particle name is a Roman or Greek symbol, to be typeset in
upright font in normal contexts. 2. Additionally a superscript
and/or subscript may follow the main symbol. 3. Particle
resonances may also have a resonance specifier which is typeset
in parentheses following the main symbol. In general the
parentheses may also be followed by sub- and superscripts. 4.
The particle names are expected to be used both in and out of
mathematical contexts. 5. If the surrounding text is bold or
italic then the particle name should adapt to that context as
best as possible (this may not be possible for Greek symbols).
A consequence of point 5 is that the well-known problems with
boldness of particle names in section titles, headers and
tables of contents automatically disappear if these macros are
used.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hepparticles
%doc %{_texmfdistdir}/doc/latex/hepparticles

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18534 |21mr|texlive-hepthesis-1.5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hepthesis
Version:	1.5.2
Release:	2
Summary:	A class for academic reports, especially PhD theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hepthesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hepthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hepthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Hepthesis is a LaTeX class for typesetting large academic
reports, in particular PhD theses. It was originally developed
for typesetting the author's high-energy physics PhD thesis and
includes some features specifically tailored to such an
application. In particular, hepthesis offers: - Attractive
semantic environments for various rubric sections; - Extensive
options for draft production, screen viewing and binding-ready
output; - Helpful extensions of existing environments,
including equation and tabular; and - Support for quotations at
the start of the thesis and each chapter. The class is based on
scrbook, from the KOMA-Script bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hepthesis
%doc %{_texmfdistdir}/doc/latex/hepthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18535 |21mr|texlive-hepunits-1.1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/hepunits
# catalog-date 2009-09-19 12:08:16 +0200
# catalog-license lppl
# catalog-version 1.1.1
Name:		texlive-hepunits
Version:	1.1.1
Release:	7
Summary:	A set of units useful in high energy physics applications
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hepunits
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hepunits.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hepunits.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Hepunits is a LaTeX package built on the SIunits package which
adds a collection of useful HEP units to the existing SIunits
set. These include the energy units \MeV, \GeV, \TeV and the
derived momentum and mass units \MeVoverc, \MeVovercsq and so
on.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hepunits/hepunits.sty
%doc %{_texmfdistdir}/doc/latex/hepunits/ChangeLog
%doc %{_texmfdistdir}/doc/latex/hepunits/README
%doc %{_texmfdistdir}/doc/latex/hepunits/hepunits.pdf
%doc %{_texmfdistdir}/doc/latex/hepunits/hepunits.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18536 |21mr|texlive-here-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16135
# category Package
# catalog-ctan /macros/latex/contrib/here
# catalog-date 2009-11-28 09:57:52 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-here
Version:	20190228
Release:	1
Summary:	Emulation of obsolete package for "here" floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/here
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/here.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/here.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides the H option for floats in LaTeX to signify that the
environemt is not really a float (and should therefore be
placed "here" and not float at all). The package emulates an
older package of the same name, which has long been been
suppressed by its author. The job is done by nothing more than
loading the float package, which has long provided the option
in an acceptable framework.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/here/here.sty
%doc %{_texmfdistdir}/doc/latex/here/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18537 |21mr|texlive-he-she-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29290
# category Package
# catalog-ctan /macros/latex/contrib/he-she
# catalog-date 2013-03-04 16:31:08 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-he-she
Version:	1.3
Release:	2
Summary:	Alternating pronouns to aid to gender-neutral writing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/he-she
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/he-she.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/he-she.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package implements a version of semi-automatic pronoun
switching for writing gender-neutral (and possibly annoying)
prose. It has upper- and lowercase versions of switching
pronouns for all case forms, plus anaphoric versions that
reflect the current gender choice.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/he-she/he-she.sty
%doc %{_texmfdistdir}/doc/latex/he-she/README
%doc %{_texmfdistdir}/doc/latex/he-she/he-she.pdf
%doc %{_texmfdistdir}/doc/latex/he-she/he-she.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18538 |21mr|texlive-hexgame-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/hexgame
# catalog-date 2008-08-22 10:38:02 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-hexgame
Version:	1.0
Release:	7
Summary:	Provide an environment to draw a hexgame-board
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hexgame
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hexgame.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hexgame.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Hex is a mathematical game invented by the Danish mathematician
Piet Hein and independently by the mathematician John Nash.
This package defines an environment that enables the user to
draw such a game in a trivial way.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hexgame/hexgame.sty
%doc %{_texmfdistdir}/doc/latex/hexgame/README
%doc %{_texmfdistdir}/doc/latex/hexgame/hexgame.pdf
%doc %{_texmfdistdir}/doc/latex/hexgame/hexgame.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18539 |21mr|texlive-hf-tikz-0.3a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hf-tikz
Version:	0.3a
Release:	2
Summary:	A simple way to highlight formulas and formula parts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/hf-tikz
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hf-tikz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hf-tikz.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hf-tikz.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a way to highlight formulas and formula
parts in both documents and presentations, us TikZ.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hf-tikz
%doc %{_texmfdistdir}/doc/latex/hf-tikz
#- source
%doc %{_texmfdistdir}/source/latex/hf-tikz

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18540 |21mr|texlive-hhtensor-0.61-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24981
# category Package
# catalog-ctan /macros/latex/contrib/hhtensor
# catalog-date 2011-12-29 22:44:25 +0100
# catalog-license lppl
# catalog-version 0.61
Name:		texlive-hhtensor
Version:	0.61
Release:	6
Summary:	Print vectors, matrices, and tensors
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hhtensor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hhtensor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hhtensor.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hhtensor.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides commands for vectors, matrices, and
tensors with different styles -- arrows (as the LaTeX default),
underlined, and bold).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hhtensor/hhtensor.sty
%doc %{_texmfdistdir}/doc/latex/hhtensor/ChangeLog
%doc %{_texmfdistdir}/doc/latex/hhtensor/Makefile
%doc %{_texmfdistdir}/doc/latex/hhtensor/README
%doc %{_texmfdistdir}/doc/latex/hhtensor/getversion.tex
%doc %{_texmfdistdir}/doc/latex/hhtensor/hhtensor.pdf
#- source
%doc %{_texmfdistdir}/source/latex/hhtensor/hhtensor.dtx
%doc %{_texmfdistdir}/source/latex/hhtensor/hhtensor.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18541 |21mr|texlive-histogr-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/histogr
# catalog-date 2006-11-09 15:16:55 +0100
# catalog-license lppl1.3
# catalog-version 1.01
Name:		texlive-histogr
Version:	1.01
Release:	7
Summary:	Draw histograms with the LaTeX picture environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/histogr
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/histogr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/histogr.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/histogr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a macro collection to draw histogram bars inside a
LaTeX picture-environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/histogr/histogr.sty
%doc %{_texmfdistdir}/doc/latex/histogr/histogr.pdf
#- source
%doc %{_texmfdistdir}/source/latex/histogr/histogr.dtx
%doc %{_texmfdistdir}/source/latex/histogr/histogr.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18542 |21mr|texlive-hitec-0.0beta-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hitec
Version:	0.0beta
Release:	8
Summary:	Class for documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hitec
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hitec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hitec.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An article-based class designed for use for documentation in
high-technology companies.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hitec/hitec.cls
%doc %{_texmfdistdir}/doc/latex/hitec/README
%doc %{_texmfdistdir}/doc/latex/hitec/hitec_doc.pdf
%doc %{_texmfdistdir}/doc/latex/hitec/hitec_doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18543 |21mr|texlive-hletter-4.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30002
# category Package
# catalog-ctan /macros/latex/contrib/hletter
# catalog-date 2013-04-17 11:54:35 +0200
# catalog-license lppl1.2
# catalog-version 4.2
Name:		texlive-hletter
Version:	4.2
Release:	10
Summary:	Flexible letter typesetting with flexible page headings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hletter
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hletter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hletter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package permits the user to specify easily, with the aid of
self defined key-words, letters (with a logo and private) and
headings. The heading may include a footer and the letter
provides commands to include a scanned signature and two
signees. The package works with the merge package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hletter/hdefine.clo
%{_texmfdistdir}/tex/latex/hletter/hhead.sty
%{_texmfdistdir}/tex/latex/hletter/hlete.clo
%{_texmfdistdir}/tex/latex/hletter/hletf.clo
%{_texmfdistdir}/tex/latex/hletter/hletg.clo
%{_texmfdistdir}/tex/latex/hletter/hletter.cls
%{_texmfdistdir}/tex/latex/hletter/hsetup.sty
%{_texmfdistdir}/tex/latex/hletter/mergeh.sty
%doc %{_texmfdistdir}/doc/latex/hletter/Bruennhilde.eps
%doc %{_texmfdistdir}/doc/latex/hletter/Bruennhilde.jpg
%doc %{_texmfdistdir}/doc/latex/hletter/Gccs.eps
%doc %{_texmfdistdir}/doc/latex/hletter/Gccs.jpg
%doc %{_texmfdistdir}/doc/latex/hletter/Hletter.pdf
%doc %{_texmfdistdir}/doc/latex/hletter/README
%doc %{_texmfdistdir}/doc/latex/hletter/Testheader.tex
%doc %{_texmfdistdir}/doc/latex/hletter/Testletter1.tex
%doc %{_texmfdistdir}/doc/latex/hletter/Testletter2.tex
%doc %{_texmfdistdir}/doc/latex/hletter/Testletter3.tex
%doc %{_texmfdistdir}/doc/latex/hletter/Testmerge.dat
%doc %{_texmfdistdir}/doc/latex/hletter/Testmerge.tex
%doc %{_texmfdistdir}/doc/latex/hletter/signat.eps
%doc %{_texmfdistdir}/doc/latex/hletter/signat.jpg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18544 |21mr|texlive-hobby-1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hobby
Version:	1.8
Release:	2
Summary:	An implementation of Hobby's algorithm for PGF/TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/hobby
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hobby.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hobby.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hobby.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines a path generation function for PGF/TikZ
which implements Hobby's algorithm for a path built out of
Bezier curves which passes through a given set of points. The
path thus generated may by used as a TikZ 'to path'. The
implementation is in LaTeX3.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hobby
%doc %{_texmfdistdir}/doc/latex/hobby
#- source
%doc %{_texmfdistdir}/source/latex/hobby

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18545 |21mr|texlive-hobete-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27036
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/hobete
# catalog-date 2012-06-26 15:55:21 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-hobete
Version:	20190228
Release:	1
Summary:	Unofficial beamer theme for the University of Hohenheim
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/hobete
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hobete.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hobete.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a beamer theme which features the Ci
colors of the University of Hohenheim. Please note that this is
not an official Theme, and that there will be no support for
it, from the University. Furthermore there is NO relationship
between the University and this theme.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hobete/beamercolorthemehohenheim.sty
%{_texmfdistdir}/tex/latex/hobete/beamerouterthemehohenheim.sty
%{_texmfdistdir}/tex/latex/hobete/beamerouterthemehohenheimposter.sty
%{_texmfdistdir}/tex/latex/hobete/beamerthemehohenheim.sty
%{_texmfdistdir}/tex/latex/hobete/hobete.sty
%doc %{_texmfdistdir}/doc/latex/hobete/README
%doc %{_texmfdistdir}/doc/latex/hobete/hobete_doc.pdf
%doc %{_texmfdistdir}/doc/latex/hobete/hobete_doc.tex
%doc %{_texmfdistdir}/doc/latex/hobete/poster-test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18546 |21mr|texlive-horoscop-0.92-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30530
# category Package
# catalog-ctan /macros/latex/contrib/horoscop
# catalog-date 2013-05-17 13:43:39 +0200
# catalog-license pd
# catalog-version 0.92
Name:		texlive-horoscop
Version:	0.92
Release:	10
Summary:	Generate astrological charts in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/horoscop
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/horoscop.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/horoscop.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/horoscop.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The horoscop package provides a unified interface for
astrological font packages; typesetting with pict2e of standard
wheel charts and some variations, in PostScript- and PDF-
generating TeX engines; and access to external calculation
software (Astrolog and Swiss Ephemeris) for computing object
positions.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/horoscop/horoscop.sty
%doc %{_texmfdistdir}/doc/latex/horoscop/README
%doc %{_texmfdistdir}/doc/latex/horoscop/horoscop.pdf
#- source
%doc %{_texmfdistdir}/source/latex/horoscop/horoscop.dtx
%doc %{_texmfdistdir}/source/latex/horoscop/horoscop.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18547 |21mr|texlive-hpsdiss-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/hpsdiss
# catalog-date 2007-01-07 11:47:19 +0100
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-hpsdiss
Version:	1.0
Release:	7
Summary:	A dissertation class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hpsdiss
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hpsdiss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hpsdiss.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hpsdiss.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class was developed to typeset a dissertation at ETH
Zurich. The requirements were to use A5 paper and 10pt type. A
sample of the output is shown in the PDF documentation link.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hpsdiss/hpsdiss.cls
%doc %{_texmfdistdir}/doc/latex/hpsdiss/hpsdiss.pdf
#- source
%doc %{_texmfdistdir}/source/latex/hpsdiss/hpsdiss.dtx
%doc %{_texmfdistdir}/source/latex/hpsdiss/hpsdiss.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18548 |21mr|texlive-hrefhide-1.0f-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22255
# category Package
# catalog-ctan /macros/latex/contrib/hrefhide
# catalog-date 2011-04-29 14:22:52 +0200
# catalog-license lppl1.3
# catalog-version 1.0f
Name:		texlive-hrefhide
Version:	1.0f
Release:	7
Summary:	Suppress hyper links when printing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hrefhide
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hrefhide.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hrefhide.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hrefhide.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the command \hrefdisplayonly (which
provides a substitute for \href). While the (hyperlinked) text
appears like an ordinary \href in the compiled PDF file, the
same text will be "hidden" when printing the text. (Hiding is
actually achieved by making the text the same colour as the
background, thus preserving the layout of the rest of the
text.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hrefhide/hrefhide.sty
%doc %{_texmfdistdir}/doc/latex/hrefhide/README
%doc %{_texmfdistdir}/doc/latex/hrefhide/hrefhide-example.pdf
%doc %{_texmfdistdir}/doc/latex/hrefhide/hrefhide-example.tex
%doc %{_texmfdistdir}/doc/latex/hrefhide/hrefhide.pdf
#- source
%doc %{_texmfdistdir}/source/latex/hrefhide/hrefhide.drv
%doc %{_texmfdistdir}/source/latex/hrefhide/hrefhide.dtx
%doc %{_texmfdistdir}/source/latex/hrefhide/hrefhide.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18549 |21mr|texlive-hrlatex-0.23-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18020
# category Package
# catalog-ctan /language/croatian/hrlatex
# catalog-date 2010-04-25 22:49:50 +0200
# catalog-license lppl
# catalog-version 0.23
Name:		texlive-hrlatex
Version:	0.23
Release:	7
Summary:	LaTeX support for Croatian documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/croatian/hrlatex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hrlatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hrlatex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hrlatex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package simplifies creation of new documents for the
(average) Croatian user. As an example, a class file hrdipl.cls
(designed for the graduation thesis at the University of
Zagreb) and sample thesis documents are included.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hrlatex/fsbispit.cls
%{_texmfdistdir}/tex/latex/hrlatex/fsbmath.sty
%{_texmfdistdir}/tex/latex/hrlatex/hrlatex.sty
%doc %{_texmfdistdir}/doc/latex/hrlatex/README
%doc %{_texmfdistdir}/doc/latex/hrlatex/hrlatex.pdf
%doc %{_texmfdistdir}/doc/latex/hrlatex/sample.fsbispit.tex
%doc %{_texmfdistdir}/doc/latex/hrlatex/sample.minimal.cp1250.tex
%doc %{_texmfdistdir}/doc/latex/hrlatex/sample.minimal.latin2.tex
%doc %{_texmfdistdir}/doc/latex/hrlatex/sample.minimal.utf8.tex
%doc %{_texmfdistdir}/doc/latex/hrlatex/sample.prezentacija.tex
#- source
%doc %{_texmfdistdir}/source/latex/hrlatex/hrlatex.dtx
%doc %{_texmfdistdir}/source/latex/hrlatex/hrlatex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18550 |21mr|texlive-hvfloat-1.2b-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hvfloat
Version:	1.2b
Release:	3
Summary:	Rotating caption and object of floats independently
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hvfloat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hvfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hvfloat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines a macro to place objects (tables and
figures) and their captions in different positions with
different rotating angles within a float. All objects and
captions can be framed. The main command is \hvFloat{float
type}{floating object}{caption}{label}; a simple example is
\hvFloat{figure}{\includegraphics{rose}}{Caption}{fig:0}.
Options are provided to place captions to the right or left,
and rotated. Setting nonFloat=true results in placing the float
here.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hvfloat
%doc %{_texmfdistdir}/doc/latex/hvfloat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18551 |21mr|texlive-hvindex-0.04-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hvindex
Version:	0.04
Release:	2
Summary:	Support for indexing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hvindex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hvindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hvindex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package simplifies the indexing of words using the \index
command of makeidx. With the package, to index a word in a
text, you only have to type it once; the package makes sure it
is both typeset and indexed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hvindex
%doc %{_texmfdistdir}/doc/latex/hvindex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18552 |21mr|texlive-hypdvips-3.02-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33348
# category Package
# catalog-ctan /macros/latex/contrib/hypdvips
# catalog-date 2014-03-31 21:51:16 +0200
# catalog-license lppl1.3
# catalog-version 3.01
Name:		texlive-hypdvips
Version:	3.02
Release:	2
Summary:	Hyperref extensions for use with dvips
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hypdvips
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hypdvips.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hypdvips.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The hypdvips package fixes some problems when using hyperref
with dvips. It also adds support for breaking links, file
attachments, embedded documents and different types of GoTo-
links. The cooperation of hyperref with cleveref is improved,
which in addition allows an enhanced back-referencing system.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hypdvips/hypdvips.sty
%doc %{_texmfdistdir}/doc/latex/hypdvips/README
%doc %{_texmfdistdir}/doc/latex/hypdvips/hypdvips.pdf
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/example1.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/example2.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/example3.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/example4.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/example5.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/example6.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/example7.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/graph.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/icon_draft.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/ids.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/logfile.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/openmsg_six.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/openmsg_sixinbrowser.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/paperclip.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/pushpin.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/images/tag.eps
%doc %{_texmfdistdir}/doc/latex/hypdvips/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18553 |21mr|texlive-hyper-4.2d-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17357
# category Package
# catalog-ctan /macros/latex/contrib/hyper
# catalog-date 2010-03-06 16:54:30 +0100
# catalog-license lppl
# catalog-version 4.2d
Name:		texlive-hyper
Version:	4.2d
Release:	7
Summary:	Hypertext cross referencing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hyper
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyper.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyper.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Redefines LaTeX cross-referencing commands to insert \special
commands for HyperTeX dvi viewers, such as recent versions of
xdvi. The package is now largely superseded by hyperref.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hyper/amsart.hyp
%{_texmfdistdir}/tex/latex/hyper/amsbook.hyp
%{_texmfdistdir}/tex/latex/hyper/amsdtx.hyp
%{_texmfdistdir}/tex/latex/hyper/amsldoc.hyp
%{_texmfdistdir}/tex/latex/hyper/amsmath.hyp
%{_texmfdistdir}/tex/latex/hyper/amsproc.hyp
%{_texmfdistdir}/tex/latex/hyper/amstex.hyp
%{_texmfdistdir}/tex/latex/hyper/amsthm.hyp
%{_texmfdistdir}/tex/latex/hyper/article.hyp
%{_texmfdistdir}/tex/latex/hyper/book.hyp
%{_texmfdistdir}/tex/latex/hyper/cweb.hyp
%{_texmfdistdir}/tex/latex/hyper/doc.hyp
%{_texmfdistdir}/tex/latex/hyper/fancyheadings.hyp
%{_texmfdistdir}/tex/latex/hyper/ftnright.hyp
%{_texmfdistdir}/tex/latex/hyper/hxt-bc.sty
%{_texmfdistdir}/tex/latex/hyper/hyper.sty
%{_texmfdistdir}/tex/latex/hyper/leqno.hyp
%{_texmfdistdir}/tex/latex/hyper/letter.hyp
%{_texmfdistdir}/tex/latex/hyper/longtable.hyp
%{_texmfdistdir}/tex/latex/hyper/ltnews.hyp
%{_texmfdistdir}/tex/latex/hyper/ltxdoc.hyp
%{_texmfdistdir}/tex/latex/hyper/ltxguide.hyp
%{_texmfdistdir}/tex/latex/hyper/natbib.hyp
%{_texmfdistdir}/tex/latex/hyper/proc.hyp
%{_texmfdistdir}/tex/latex/hyper/report.hyp
%{_texmfdistdir}/tex/latex/hyper/slides.hyp
%{_texmfdistdir}/tex/latex/hyper/subeqnarray.hyp
%{_texmfdistdir}/tex/latex/hyper/theorem.hyp
%{_texmfdistdir}/tex/latex/hyper/upref.hyp
%{_texmfdistdir}/tex/latex/hyper/xr.hyp
%doc %{_texmfdistdir}/doc/latex/hyper/README
%doc %{_texmfdistdir}/doc/latex/hyper/TODO
%doc %{_texmfdistdir}/doc/latex/hyper/contrib/README
%doc %{_texmfdistdir}/doc/latex/hyper/contrib/harvard-to.hyp
%doc %{_texmfdistdir}/doc/latex/hyper/defpattern.sty
%doc %{_texmfdistdir}/doc/latex/hyper/hyper.pdf
%doc %{_texmfdistdir}/doc/latex/hyper/scontrib/README
%doc %{_texmfdistdir}/doc/latex/hyper/scontrib/harvard.hyp
#- source
%doc %{_texmfdistdir}/source/latex/hyper/Makefile-MSDos
%doc %{_texmfdistdir}/source/latex/hyper/Makefile-Unix
%doc %{_texmfdistdir}/source/latex/hyper/backcite.dtx
%doc %{_texmfdistdir}/source/latex/hyper/dvi2pdf.pl
%doc %{_texmfdistdir}/source/latex/hyper/hyper.dtx
%doc %{_texmfdistdir}/source/latex/hyper/hyper.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18554 |21mr|texlive-hypernat-1.0b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17358
# category Package
# catalog-ctan /macros/latex/contrib/hypernat
# catalog-date 2010-03-08 12:29:56 +0100
# catalog-license gpl
# catalog-version 1.0b
Name:		texlive-hypernat
Version:	1.0b
Release:	7
Summary:	Allow hyperref and natbib to work together
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hypernat
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hypernat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hypernat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Allows hyperref package and the natbib package with options
'numbers' and 'sort&compress' to work together. This means that
multiple sequential citations (e.g [3,2,1]) will be compressed
to [1-3], where the '1' and the '3' are (color-)linked to the
bibliography.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hypernat/hypernat.sty
%doc %{_texmfdistdir}/doc/latex/hypernat/hypernat.pdf
%doc %{_texmfdistdir}/doc/latex/hypernat/hypernat.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18555 |21mr|texlive-hyperref-20200316-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyperref
Version:	20200316
Release:	1
Summary:	Extensive support for hypertext in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hyperref
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyperref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyperref.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyperref.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The hyperref package is used to handle cross-referencing
commands in LaTeX to produce hypertext links in the document.
The package provides backends for the \special set defined for
HyperTeX DVI processors; for embedded pdfmark commands for
processing by Acrobat Distiller (dvips and Y&Y's dvipsone); for
Y&Y's dviwindo; for PDF control within pdfTeX and dvipdfm; for
TeX4ht; and for VTeX's pdf and HTML backends. The package is
distributed with the backref and nameref packages, which make
use of the facilities of hyperref. The package depends on the
author's kvoptions, ltxcmdsand refcount packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hyperref
%doc %{_texmfdistdir}/doc/latex/hyperref
#- source
%doc %{_texmfdistdir}/source/latex/hyperref

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18556 |21mr|texlive-hyperxmp-4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32560
# category Package
# catalog-ctan /macros/latex/contrib/hyperxmp
# catalog-date 2014-01-03 12:23:53 +0100
# catalog-license lppl1.3
# catalog-version 2.4
Name:		texlive-hyperxmp
Version:	4.1
Release:	1
Summary:	Embed XMP metadata within a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hyperxmp
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyperxmp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyperxmp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyperxmp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
XMP (eXtensible Metadata Platform) is a mechanism proposed by
Adobe for embedding document metadata within the document
itself. The metadata is designed to be easy to extract, even by
programs that are oblivious to the document's file format. Most
of Adobe's applications store XMP metadata when saving files.
Now, with the hyperxmp package, it is trivial for LaTeX
document authors to store XMP metadata in their documents as
well. Version 2.2 of the package added support for the IPTC
Photo Metadata schema. It allows \xmpcomma and \xmpquote to be
used in any hyperxmp option, not only those that require
special treatment of commas. And it introduces an \xmplinesep
macro that controls how multiline fields are represented in the
XMP packet. The package integrates seamlessly with hyperref and
requires virtually no modifications to documents that already
exploit hyperref's mechanisms for specifying PDF metadata. The
current version of hyperxmp can embed the following metadata as
XMP: title, authors, primary author's title or position,
metadata writer, subject/summary, keywords, copyright, license
URL, document base URL, document identifier and instance
identifier, language, source file name, PDF generating tool,
PDF version, and contact telephone number/postal address/email
address/URL. Hyperxmp currently embeds XMP only within PDF
documents; it is compatible with pdflatex, xelatex,
latex+dvipdfm, and latex+dvips+ps2pdf.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hyperxmp/hyperxmp.sty
%doc %{_texmfdistdir}/doc/latex/hyperxmp/README
%doc %{_texmfdistdir}/doc/latex/hyperxmp/hyperxmp.pdf
#- source
%doc %{_texmfdistdir}/source/latex/hyperxmp/einstein-xmp.tex
%doc %{_texmfdistdir}/source/latex/hyperxmp/einstein1.png
%doc %{_texmfdistdir}/source/latex/hyperxmp/einstein2.png
%doc %{_texmfdistdir}/source/latex/hyperxmp/gglo-hyxmp.ist
%doc %{_texmfdistdir}/source/latex/hyperxmp/gind-hyxmp.ist
%doc %{_texmfdistdir}/source/latex/hyperxmp/hyperxmp.dtx
%doc %{_texmfdistdir}/source/latex/hyperxmp/hyperxmp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18557 |21mr|texlive-hyphen-afrikaans-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-afrikaans
Version:	20190406
Release:	1
Summary:	Afrikaans hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-afrikaans.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Afrikaans in T1/EC and UTF-8
encodings. OpenOffice includes older patterns created by a
different author, but the patterns packaged with TeX are
considered superior in quality.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-afrikaans
%_texmf_language_def_d/hyphen-afrikaans
%_texmf_language_lua_d/hyphen-afrikaans
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-afrikaans <<EOF
\%% from hyphen-afrikaans:
afrikaans loadhyph-af.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-afrikaans
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-afrikaans <<EOF
\%% from hyphen-afrikaans:
\addlanguage{afrikaans}{loadhyph-af.tex}{}{1}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-afrikaans
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-afrikaans <<EOF
-- from hyphen-afrikaans:
	['afrikaans'] = {
		loader = 'loadhyph-af.tex',
		lefthyphenmin = 1,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-af.pat.txt',
		hyphenation = 'hyph-af.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18558 |21mr|texlive-hyphen-ancientgreek-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-ancientgreek
Version:	20190406
Release:	1
Summary:	Ancient Greek hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-ancientgreek.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Ancient Greek in LGR and UTF-8
encodings, including support for (obsolete) Ibycus font
encoding. Patterns in UTF-8 use two code positions for each of
the vowels with acute accent (a.k.a tonos, oxia), e.g., U+03AE,
U+1F75 for eta.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/tex/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/txt/*
%{_texmfdistdir}/tex/generic/hyphen/grahyph5.tex
%{_texmfdistdir}/tex/generic/hyphen/ibyhyph.tex
%_texmf_language_dat_d/hyphen-ancientgreek
%_texmf_language_def_d/hyphen-ancientgreek
%_texmf_language_lua_d/hyphen-ancientgreek

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-ancientgreek <<EOF
\%% from hyphen-ancientgreek:
ancientgreek loadhyph-grc.tex
ibycus ibyhyph.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-ancientgreek
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-ancientgreek <<EOF
\%% from hyphen-ancientgreek:
\addlanguage{ancientgreek}{loadhyph-grc.tex}{}{1}{1}
\addlanguage{ibycus}{ibyhyph.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-ancientgreek
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-ancientgreek <<EOF
-- from hyphen-ancientgreek:
	['ancientgreek'] = {
		loader = 'loadhyph-grc.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-grc.pat.txt',
		hyphenation = '',
	},
	['ibycus'] = {
		loader = 'ibyhyph.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		special = 'disabled:8-bit only',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18559 |21mr|texlive-hyphen-arabic-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-arabic
Version:	20190406
Release:	1
Summary:	(No) Arabic hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-arabic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Prevent hyphenation in Arabic.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-arabic
%_texmf_language_def_d/hyphen-arabic
%_texmf_language_lua_d/hyphen-arabic

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-arabic <<EOF
\%% from hyphen-arabic:
arabic zerohyph.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-arabic
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-arabic <<EOF
\%% from hyphen-arabic:
\addlanguage{arabic}{zerohyph.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-arabic
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-arabic <<EOF
-- from hyphen-arabic:
	['arabic'] = {
		loader = 'zerohyph.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18560 |21mr|texlive-hyphen-armenian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-armenian
Version:	20190406
Release:	1
Summary:	Armenian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-armenian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Armenian for Unicode engines.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-armenian
%_texmf_language_def_d/hyphen-armenian
%_texmf_language_lua_d/hyphen-armenian
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-armenian <<EOF
\%% from hyphen-armenian:
armenian loadhyph-hy.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-armenian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-armenian <<EOF
\%% from hyphen-armenian:
\addlanguage{armenian}{loadhyph-hy.tex}{}{1}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-armenian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-armenian <<EOF
-- from hyphen-armenian:
	['armenian'] = {
		loader = 'loadhyph-hy.tex',
		lefthyphenmin = 1,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-hy.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18561 |21mr|texlive-hyphenat-2.3c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/hyphenat
# catalog-date 2009-09-02 18:09:14 +0200
# catalog-license lppl1.3
# catalog-version 2.3c
Name:		texlive-hyphenat
Version:	2.3c
Release:	7
Summary:	Disable/enable hypenation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/hyphenat
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphenat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphenat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphenat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package can disable all hyphenation or enable hyphenation
of non-alphabetics or monospaced fonts. The package can also
enable hyphenation within 'words' that contain non-alphabetic
characters (e.g., that include underscores), and hyphenation of
text typeset in monospaced (e.g., cmtt) fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/hyphenat/hyphenat.sty
%doc %{_texmfdistdir}/doc/latex/hyphenat/README
%doc %{_texmfdistdir}/doc/latex/hyphenat/hyphenat.pdf
#- source
%doc %{_texmfdistdir}/source/latex/hyphenat/hyphenat.dtx
%doc %{_texmfdistdir}/source/latex/hyphenat/hyphenat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18562 |21mr|texlive-hyphen-base-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31131
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-base
Version:	20190406
Release:	1
Summary:	TeXLive hyphen-base package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-base.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive hyphen-base package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/config/language.dat
%{_texmfdistdir}/tex/generic/config/language.dat.lua
%{_texmfdistdir}/tex/generic/config/language.def
%{_texmfdistdir}/tex/generic/config/language.us
%{_texmfdistdir}/tex/generic/config/language.us.def
%{_texmfdistdir}/tex/generic/config/language.us.lua
%{_texmfdistdir}/tex/generic/hyphen/dumyhyph.tex
%{_texmfdistdir}/tex/generic/hyphen/hyphen.tex
%{_texmfdistdir}/tex/generic/hyphen/hypht1.tex
%{_texmfdistdir}/tex/generic/hyphen/zerohyph.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18563 |21mr|texlive-hyphen-basque-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-basque
Version:	20190406
Release:	1
Summary:	Basque hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/basque
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-basque.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Basque in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-basque
%_texmf_language_def_d/hyphen-basque
%_texmf_language_lua_d/hyphen-basque
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-basque <<EOF
\%% from hyphen-basque:
basque loadhyph-eu.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-basque
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-basque <<EOF
\%% from hyphen-basque:
\addlanguage{basque}{loadhyph-eu.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-basque
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-basque <<EOF
-- from hyphen-basque:
	['basque'] = {
		loader = 'loadhyph-eu.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-eu.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18564 |21mr|texlive-hyphen-belarusian-20190913-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-belarusian
Version:	20190913
Release:	4
Summary:	Belarusian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-belarusian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Belarusian for Unicode engines.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-belarusian
%_texmf_language_def_d/hyphen-belarusian
%_texmf_language_lua_d/hyphen-belarusian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-belarusian <<EOF
\%% from hyphen-belarusian:
belarusian loadhyph-be.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-belarusian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-belarusian <<EOF
\%% from hyphen-belarusian:
\addlanguage{belarusian}{loadhyph-be.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-belarusian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-belarusian <<EOF
-- from hyphen-belarusian:
        ['belarusian'] = {
                loader = 'loadhyph-be.tex',
                lefthyphenmin = 2,
                righthyphenmin = 2,
                synonyms = {  },
                patterns = 'hyph-be.pat.txt',
                hyphenation = '',
        },
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18565 |21mr|texlive-hyphen-bulgarian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-bulgarian
Version:	20190406
Release:	1
Summary:	Bulgarian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-bulgarian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Bulgarian in T2A and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-bulgarian
%_texmf_language_def_d/hyphen-bulgarian
%_texmf_language_lua_d/hyphen-bulgarian
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-bulgarian <<EOF
\%% from hyphen-bulgarian:
bulgarian loadhyph-bg.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-bulgarian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-bulgarian <<EOF
\%% from hyphen-bulgarian:
\addlanguage{bulgarian}{loadhyph-bg.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-bulgarian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-bulgarian <<EOF
-- from hyphen-bulgarian:
	['bulgarian'] = {
		loader = 'loadhyph-bg.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-bg.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18566 |21mr|texlive-hyphen-catalan-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-catalan
Version:	20190406
Release:	1
Summary:	Catalan hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-catalan.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Catalan in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-catalan
%_texmf_language_def_d/hyphen-catalan
%_texmf_language_lua_d/hyphen-catalan
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-catalan <<EOF
\%% from hyphen-catalan:
catalan loadhyph-ca.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-catalan
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-catalan <<EOF
\%% from hyphen-catalan:
\addlanguage{catalan}{loadhyph-ca.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-catalan
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-catalan <<EOF
-- from hyphen-catalan:
	['catalan'] = {
		loader = 'loadhyph-ca.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-ca.pat.txt',
		hyphenation = 'hyph-ca.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18567 |21mr|texlive-hyphen-chinese-20181105-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-chinese
Version:	20181105
Release:	1
Summary:	Chinese pinyin hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-chinese.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for unaccented transliterated Mandarin
Chinese (pinyin) in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-chinese
%_texmf_language_def_d/hyphen-chinese
%_texmf_language_lua_d/hyphen-chinese
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-chinese <<EOF
\%% from hyphen-chinese:
pinyin loadhyph-zh-latn-pinyin.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-chinese
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-chinese <<EOF
\%% from hyphen-chinese:
\addlanguage{pinyin}{loadhyph-zh-latn-pinyin.tex}{}{1}{1}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-chinese
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-chinese <<EOF
-- from hyphen-chinese:
	['pinyin'] = {
		loader = 'loadhyph-zh-latn-pinyin.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-zh-latn-pinyin.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18568 |21mr|texlive-hyphen-churchslavonic-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-churchslavonic
Version:	20190406
Release:	1
Summary:	Churchslavonic hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-churchslavonic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Churchslavonic.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-churchslavonic
%_texmf_language_def_d/hyphen-churchslavonic
%_texmf_language_lua_d/hyphen-churchslavonic

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-churchslavonic <<EOF
\%% from hyphen-churchslavonic:
churchslavonic loadhyph-cu.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-churchslavonic
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-churchslavonic <<EOF
\%% from hyphen-churchslavonic:
\addlanguage{churchslavonic}{loadhyph-cu.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-churchslavonic
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-churchslavonic <<EOF
-- from hyphen-churchslavonic:
	['churchslavonic'] = {
		loader = 'loadhyph-cu.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-cu.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18569 |21mr|texlive-hyphen-coptic-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-coptic
Version:	20190406
Release:	1
Summary:	Coptic hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-coptic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Coptic in UTF-8 encoding as well as in
ASCII-based encoding for 8-bit engines. The latter can only be
used with special Coptic fonts (like CBcoptic). The patterns
are considered experimental.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-coptic
%_texmf_language_def_d/hyphen-coptic
%_texmf_language_lua_d/hyphen-coptic
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-coptic <<EOF
\%% from hyphen-coptic:
coptic loadhyph-cop.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-coptic
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-coptic <<EOF
\%% from hyphen-coptic:
\addlanguage{coptic}{loadhyph-cop.tex}{}{1}{1}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-coptic
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-coptic <<EOF
-- from hyphen-coptic:
	['coptic'] = {
		loader = 'loadhyph-cop.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-cop.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18570 |21mr|texlive-hyphen-croatian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan /language/hyphenation/hrhyph.tex
# catalog-date 2011-06-08 00:02:48 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-hyphen-croatian
Version:	20190406
Release:	1
Summary:	Croatian hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/hrhyph.tex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-croatian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Croatian in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-croatian
%_texmf_language_def_d/hyphen-croatian
%_texmf_language_lua_d/hyphen-croatian
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-croatian <<EOF
\%% from hyphen-croatian:
croatian loadhyph-hr.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-croatian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-croatian <<EOF
\%% from hyphen-croatian:
\addlanguage{croatian}{loadhyph-hr.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-croatian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-croatian <<EOF
-- from hyphen-croatian:
	['croatian'] = {
		loader = 'loadhyph-hr.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-hr.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18571 |21mr|texlive-hyphen-czech-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-czech
Version:	20190406
Release:	1
Summary:	Czech hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-czech.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Czech in T1/EC and UTF-8 encodings.
Original patterns 'czhyphen' are still distributed in the
'csplain' package and loaded with ISO Latin 2 encoding (IL2).

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-czech
%_texmf_language_def_d/hyphen-czech
%_texmf_language_lua_d/hyphen-czech
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-czech <<EOF
\%% from hyphen-czech:
czech loadhyph-cs.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-czech
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-czech <<EOF
\%% from hyphen-czech:
\addlanguage{czech}{loadhyph-cs.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-czech
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-czech <<EOF
-- from hyphen-czech:
	['czech'] = {
		loader = 'loadhyph-cs.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-cs.pat.txt',
		hyphenation = 'hyph-cs.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18572 |21mr|texlive-hyphen-danish-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan /language/hyphenation/dkhyphen
# catalog-date 2009-09-25 22:54:35 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-hyphen-danish
Version:	20190406
Release:	1
Summary:	Danish hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/dkhyphen
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-danish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Danish in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-danish
%_texmf_language_def_d/hyphen-danish
%_texmf_language_lua_d/hyphen-danish

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-danish <<EOF
\%% from hyphen-danish:
danish loadhyph-da.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-danish
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-danish <<EOF
\%% from hyphen-danish:
\addlanguage{danish}{loadhyph-da.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-danish
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-danish <<EOF
-- from hyphen-danish:
	['danish'] = {
		loader = 'loadhyph-da.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-da.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18573 |21mr|texlive-hyphen-dutch-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-dutch
Version:	20190406
Release:	1
Summary:	Dutch hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-dutch.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Dutch in T1/EC and UTF-8 encodings.
These patterns don't handle cases like 'menuutje' > 'menu-tje',
and don't hyphenate words that have different hyphenations
according to their meaning.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-dutch
%_texmf_language_def_d/hyphen-dutch
%_texmf_language_lua_d/hyphen-dutch

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-dutch <<EOF
\%% from hyphen-dutch:
dutch loadhyph-nl.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-dutch
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-dutch <<EOF
\%% from hyphen-dutch:
\addlanguage{dutch}{loadhyph-nl.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-dutch
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-dutch <<EOF
-- from hyphen-dutch:
	['dutch'] = {
		loader = 'loadhyph-nl.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-nl.pat.txt',
		hyphenation = 'hyph-nl.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18574 |21mr|texlive-hyphen-english-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-english
Version:	20190406
Release:	1
Summary:	English hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-english.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Additional hyphenation patterns for American and British
English in ASCII encoding.  The American English patterns
(usenglishmax) greatly extend the standard patterns from Knuth
to find many additional hyphenation points.  British English
hyphenation is completely different from US English, so has its
own set of patterns.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-english
%_texmf_language_def_d/hyphen-english
%_texmf_language_lua_d/hyphen-english

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-english <<EOF
\%% from hyphen-english:
ukenglish loadhyph-en-gb.tex
=british
=UKenglish
usenglishmax loadhyph-en-us.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-english
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-english <<EOF
\%% from hyphen-english:
\addlanguage{ukenglish}{loadhyph-en-gb.tex}{}{2}{3}
\addlanguage{british}{loadhyph-en-gb.tex}{}{2}{3}
\addlanguage{UKenglish}{loadhyph-en-gb.tex}{}{2}{3}
\addlanguage{usenglishmax}{loadhyph-en-us.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-english
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-english <<EOF
-- from hyphen-english:
	['ukenglish'] = {
		loader = 'loadhyph-en-gb.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = { 'british', 'UKenglish' },
		patterns = 'hyph-en-gb.pat.txt',
		hyphenation = 'hyph-en-gb.hyp.txt',
	},
	['usenglishmax'] = {
		loader = 'loadhyph-en-us.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-en-us.pat.txt',
		hyphenation = 'hyph-en-us.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18575 |21mr|texlive-hyphen-esperanto-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-esperanto
Version:	20190406
Release:	1
Summary:	Esperanto hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-esperanto.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Esperanto ISO Latin 3 and UTF-8
encodings. Note that TeX distributions don't ship any suitable
fonts in Latin 3 encoding, so unless you create your own font
support or want to use MlTeX, using native Unicode engines is
highly recommended.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-esperanto
%_texmf_language_def_d/hyphen-esperanto
%_texmf_language_lua_d/hyphen-esperanto

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-esperanto <<EOF
\%% from hyphen-esperanto:
esperanto loadhyph-eo.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-esperanto
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-esperanto <<EOF
\%% from hyphen-esperanto:
\addlanguage{esperanto}{loadhyph-eo.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-esperanto
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-esperanto <<EOF
-- from hyphen-esperanto:
	['esperanto'] = {
		loader = 'loadhyph-eo.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-eo.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18576 |21mr|texlive-hyphen-estonian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-estonian
Version:	20190406
Release:	1
Summary:	Estonian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-estonian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Estonian in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-estonian
%_texmf_language_def_d/hyphen-estonian
%_texmf_language_lua_d/hyphen-estonian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-estonian <<EOF
\%% from hyphen-estonian:
estonian loadhyph-et.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-estonian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-estonian <<EOF
\%% from hyphen-estonian:
\addlanguage{estonian}{loadhyph-et.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-estonian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-estonian <<EOF
-- from hyphen-estonian:
	['estonian'] = {
		loader = 'loadhyph-et.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-et.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18577 |21mr|texlive-hyphen-ethiopic-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-ethiopic
Version:	20190406
Release:	1
Summary:	Hyphenation patterns for Ethiopic scripts
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-ethiopic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for languages written using the Ethiopic
script for Unicode engines. They are not supposed to be
linguistically relevant in all cases and should, for proper
typography, be replaced by files tailored to individual
languages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-ethiopic
%_texmf_language_def_d/hyphen-ethiopic
%_texmf_language_lua_d/hyphen-ethiopic

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-ethiopic <<EOF
\%% from hyphen-ethiopic:
ethiopic loadhyph-mul-ethi.tex
=amharic
=geez
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-ethiopic
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-ethiopic <<EOF
\%% from hyphen-ethiopic:
\addlanguage{ethiopic}{loadhyph-mul-ethi.tex}{}{1}{1}
\addlanguage{amharic}{loadhyph-mul-ethi.tex}{}{1}{1}
\addlanguage{geez}{loadhyph-mul-ethi.tex}{}{1}{1}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-ethiopic
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-ethiopic <<EOF
-- from hyphen-ethiopic:
	['ethiopic'] = {
		loader = 'loadhyph-mul-ethi.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = { 'amharic', 'geez' },
		patterns = 'hyph-mul-ethi.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18578 |21mr|texlive-hyphen-farsi-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-farsi
Version:	20190406
Release:	1
Summary:	(No) Persian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-farsi.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Prevent hyphenation in Persian.

#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-farsi
%_texmf_language_def_d/hyphen-farsi
%_texmf_language_lua_d/hyphen-farsi

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-farsi <<EOF
\%% from hyphen-farsi:
farsi zerohyph.tex
=persian
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-farsi
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-farsi <<EOF
\%% from hyphen-farsi:
\addlanguage{farsi}{zerohyph.tex}{}{2}{3}
\addlanguage{persian}{zerohyph.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-farsi
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-farsi <<EOF
-- from hyphen-farsi:
	['farsi'] = {
		loader = 'zerohyph.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = { 'persian' },
		patterns = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18579 |21mr|texlive-hyphen-finnish-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan /language/hyphenation/fihyph
# catalog-date 2009-09-27 10:36:15 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-hyphen-finnish
Version:	20190406
Release:	1
Summary:	Finnish hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/fihyph
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-finnish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Finnish in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-finnish
%_texmf_language_def_d/hyphen-finnish
%_texmf_language_lua_d/hyphen-finnish

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-finnish <<EOF
\%% from hyphen-finnish:
finnish loadhyph-fi.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-finnish
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-finnish <<EOF
\%% from hyphen-finnish:
\addlanguage{finnish}{loadhyph-fi.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-finnish
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-finnish <<EOF
-- from hyphen-finnish:
	['finnish'] = {
		loader = 'loadhyph-fi.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-fi.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18580 |21mr|texlive-hyphen-french-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-french
Version:	20190406
Release:	1
Summary:	French hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-french.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for French in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-french
%_texmf_language_def_d/hyphen-french
%_texmf_language_lua_d/hyphen-french

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-french <<EOF
\%% from hyphen-french:
french loadhyph-fr.tex
=patois
=francais
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-french
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-french <<EOF
\%% from hyphen-french:
\addlanguage{french}{loadhyph-fr.tex}{}{2}{3}
\addlanguage{patois}{loadhyph-fr.tex}{}{2}{3}
\addlanguage{francais}{loadhyph-fr.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-french
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-french <<EOF
-- from hyphen-french:
	['french'] = {
		loader = 'loadhyph-fr.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = { 'patois', 'francais' },
		patterns = 'hyph-fr.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18581 |21mr|texlive-hyphen-friulan-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26595
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-friulan
Version:	20190406
Release:	1
Summary:	Friulan hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-friulan.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Friulan in ASCII encoding. They are
supposed to comply with the common spelling of the Friulan
(Furlan) language as fixed by the Regional Law N.15/96 dated
November 6, 1996 and its following amendments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-friulan
%_texmf_language_def_d/hyphen-friulan
%_texmf_language_lua_d/hyphen-friulan

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-friulan <<EOF
\%% from hyphen-friulan:
friulan loadhyph-fur.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-friulan
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-friulan <<EOF
\%% from hyphen-friulan:
\addlanguage{friulan}{loadhyph-fur.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-friulan
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-friulan <<EOF
-- from hyphen-friulan:
	['friulan'] = {
		loader = 'loadhyph-fur.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-fur.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18582 |21mr|texlive-hyphen-galician-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-galician
Version:	20190406
Release:	1
Summary:	Galician hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-galician.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Galician in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-galician
%_texmf_language_def_d/hyphen-galician
%_texmf_language_lua_d/hyphen-galician

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-galician <<EOF
\%% from hyphen-galician:
galician loadhyph-gl.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-galician
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-galician <<EOF
\%% from hyphen-galician:
\addlanguage{galician}{loadhyph-gl.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-galician
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-galician <<EOF
-- from hyphen-galician:
	['galician'] = {
		loader = 'loadhyph-gl.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-gl.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18583 |21mr|texlive-hyphen-georgian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30326
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-georgian
Version:	20190406
Release:	1
Summary:	Georgian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-georgian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Georgian in T8M, T8K and UTF-8
encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-georgian
%_texmf_language_def_d/hyphen-georgian
%_texmf_language_lua_d/hyphen-georgian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-georgian <<EOF
\%% from hyphen-georgian:
georgian loadhyph-ka.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-georgian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-georgian <<EOF
\%% from hyphen-georgian:
\addlanguage{georgian}{loadhyph-ka.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-georgian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-georgian <<EOF
-- from hyphen-georgian:
	['georgian'] = {
		loader = 'loadhyph-ka.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-ka.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18584 |21mr|texlive-hyphen-german-20180409-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-german
Version:	20180409
Release:	3
Summary:	German hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-german.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for German in T1/EC and UTF-8 encodings,
for traditional and reformed spelling, including Swiss German.
The package includes the latest patterns from dehyph-exptl
(known to TeX under names 'german', 'ngerman' and
'swissgerman'), however 8-bit engines still load old versions
of patterns for 'german' and 'ngerman' for backward-
compatibility reasons. Swiss German patterns are suitable for
Swiss Standard German (Hochdeutsch) not the Alemannic dialects
spoken in Switzerland (Schwyzerduetsch). There are no known
patterns for written Schwyzerduetsch.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%{_texmfdistdir}/tex/generic/hyphen/dehyphn.tex
%{_texmfdistdir}/tex/generic/hyphen/dehypht.tex
%{_texmfdistdir}/tex/generic/hyphen/dehyphtex.tex
%{_texmfdistdir}/tex/generic/hyphen/ghyphen.README
%_texmf_language_dat_d/hyphen-german
%_texmf_language_def_d/hyphen-german
%_texmf_language_lua_d/hyphen-german

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-german <<EOF
\%% from hyphen-german:
german loadhyph-de-1901.tex
ngerman loadhyph-de-1996.tex
swissgerman loadhyph-de-ch-1901.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-german
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-german <<EOF
\%% from hyphen-german:
\addlanguage{german}{loadhyph-de-1901.tex}{}{2}{2}
\addlanguage{ngerman}{loadhyph-de-1996.tex}{}{2}{2}
\addlanguage{swissgerman}{loadhyph-de-ch-1901.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-german
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-german <<EOF
-- from hyphen-german:
	['german'] = {
		loader = 'loadhyph-de-1901.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-de-1901.pat.txt',
		hyphenation = '',
	},
	['ngerman'] = {
		loader = 'loadhyph-de-1996.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-de-1996.pat.txt',
		hyphenation = '',
	},
	['swissgerman'] = {
		loader = 'loadhyph-de-ch-1901.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-de-ch-1901.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18585 |21mr|texlive-hyphen-greek-5-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category TLCore
# catalog-ctan /language/hyphenation/elhyphen
# catalog-date 2012-05-25 14:41:32 +0200
# catalog-license other-free
# catalog-version 5
Name:		texlive-hyphen-greek
Version:	5
Release:	17
Summary:	Modern Greek hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/elhyphen
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-greek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-greek.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Modern Greek in monotonic and
polytonic spelling in LGR and UTF-8 encodings.  Patterns in
UTF-8 use two code positions for each of the vowels with acute
accent (a.k.a tonos, oxia), e.g., U+03AC, U+1F71 for alpha.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyphen/grmhyph5.tex
%{_texmfdistdir}/tex/generic/hyphen/grphyph5.tex
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*
%_texmf_language_dat_d/hyphen-greek
%_texmf_language_def_d/hyphen-greek
%_texmf_language_lua_d/hyphen-greek
%doc %{_texmfdistdir}/doc/generic/elhyphen

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-greek <<EOF
\%% from hyphen-greek:
monogreek loadhyph-el-monoton.tex
greek loadhyph-el-polyton.tex
=polygreek
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-greek
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-greek <<EOF
\%% from hyphen-greek:
\addlanguage{monogreek}{loadhyph-el-monoton.tex}{}{1}{1}
\addlanguage{greek}{loadhyph-el-polyton.tex}{}{1}{1}
\addlanguage{polygreek}{loadhyph-el-polyton.tex}{}{1}{1}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-greek
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-greek <<EOF
-- from hyphen-greek:
	['monogreek'] = {
		loader = 'loadhyph-el-monoton.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-el-monoton.pat.txt',
		hyphenation = '',
	},
	['greek'] = {
		loader = 'loadhyph-el-polyton.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = { 'polygreek' },
		patterns = 'hyph-el-polyton.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18586 |21mr|texlive-hyphen-hungarian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-hungarian
Version:	20190406
Release:	1
Summary:	Hungarian hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hungarian/hyphenation
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-hungarian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-hungarian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Hungarian in T1/EC and UTF-8
encodings. From https://github.com/nagybence/huhyphn/.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-hungarian
%_texmf_language_def_d/hyphen-hungarian
%_texmf_language_lua_d/hyphen-hungarian
%doc %{_texmfdistdir}/doc/generic/huhyphen
%doc %{_texmfdistdir}/doc/generic/hyph-utf8/hu

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-hungarian <<EOF
\%% from hyphen-hungarian:
hungarian loadhyph-hu.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-hungarian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-hungarian <<EOF
\%% from hyphen-hungarian:
\addlanguage{hungarian}{loadhyph-hu.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-hungarian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-hungarian <<EOF
-- from hyphen-hungarian:
	['hungarian'] = {
		loader = 'loadhyph-hu.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-hu.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18587 |21mr|texlive-hyphen-icelandic-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan /language/hyphenation/icehyph.tex
# catalog-date 2007-04-17 11:56:04 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-hyphen-icelandic
Version:	20190406
Release:	1
Summary:	Icelandic hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/icehyph.tex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-icelandic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Icelandic in T1/EC and UTF-8
encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-icelandic
%_texmf_language_def_d/hyphen-icelandic
%_texmf_language_lua_d/hyphen-icelandic

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-icelandic <<EOF
\%% from hyphen-icelandic:
icelandic loadhyph-is.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-icelandic
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-icelandic <<EOF
\%% from hyphen-icelandic:
\addlanguage{icelandic}{loadhyph-is.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-icelandic
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-icelandic <<EOF
-- from hyphen-icelandic:
	['icelandic'] = {
		loader = 'loadhyph-is.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-is.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18588 |21mr|texlive-hyphen-indic-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-indic
Version:	20190406
Release:	1
Summary:	Indic hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-indic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Assamese, Bengali, Gujarati, Hindi,
Kannada, Malayalam, Marathi, Oriya, Panjabi, Tamil and Telugu
for Unicode engines.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-indic
%_texmf_language_def_d/hyphen-indic
%_texmf_language_lua_d/hyphen-indic

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-indic <<EOF
\%% from hyphen-indic:
assamese loadhyph-as.tex
bengali loadhyph-bn.tex
gujarati loadhyph-gu.tex
hindi loadhyph-hi.tex
kannada loadhyph-kn.tex
malayalam loadhyph-ml.tex
marathi loadhyph-mr.tex
oriya loadhyph-or.tex
panjabi loadhyph-pa.tex
tamil loadhyph-ta.tex
telugu loadhyph-te.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-indic
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-indic <<EOF
\%% from hyphen-indic:
\addlanguage{assamese}{loadhyph-as.tex}{}{1}{1}
\addlanguage{bengali}{loadhyph-bn.tex}{}{1}{1}
\addlanguage{gujarati}{loadhyph-gu.tex}{}{1}{1}
\addlanguage{hindi}{loadhyph-hi.tex}{}{1}{1}
\addlanguage{kannada}{loadhyph-kn.tex}{}{1}{1}
\addlanguage{malayalam}{loadhyph-ml.tex}{}{1}{1}
\addlanguage{marathi}{loadhyph-mr.tex}{}{1}{1}
\addlanguage{oriya}{loadhyph-or.tex}{}{1}{1}
\addlanguage{panjabi}{loadhyph-pa.tex}{}{1}{1}
\addlanguage{tamil}{loadhyph-ta.tex}{}{1}{1}
\addlanguage{telugu}{loadhyph-te.tex}{}{1}{1}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-indic
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-indic <<EOF
-- from hyphen-indic:
	['assamese'] = {
		loader = 'loadhyph-as.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-as.pat.txt',
		hyphenation = '',
	},
	['bengali'] = {
		loader = 'loadhyph-bn.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-bn.pat.txt',
		hyphenation = '',
	},
	['gujarati'] = {
		loader = 'loadhyph-gu.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-gu.pat.txt',
		hyphenation = '',
	},
	['hindi'] = {
		loader = 'loadhyph-hi.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-hi.pat.txt',
		hyphenation = '',
	},
	['kannada'] = {
		loader = 'loadhyph-kn.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-kn.pat.txt',
		hyphenation = '',
	},
	['malayalam'] = {
		loader = 'loadhyph-ml.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-ml.pat.txt',
		hyphenation = '',
	},
	['marathi'] = {
		loader = 'loadhyph-mr.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-mr.pat.txt',
		hyphenation = '',
	},
	['oriya'] = {
		loader = 'loadhyph-or.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-or.pat.txt',
		hyphenation = '',
	},
	['panjabi'] = {
		loader = 'loadhyph-pa.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-pa.pat.txt',
		hyphenation = '',
	},
	['tamil'] = {
		loader = 'loadhyph-ta.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-ta.pat.txt',
		hyphenation = '',
	},
	['telugu'] = {
		loader = 'loadhyph-te.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-te.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18589 |21mr|texlive-hyphen-indonesian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-indonesian
Version:	20190406
Release:	1
Summary:	Indonesian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-indonesian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Indonesian (Bahasa Indonesia) in ASCII
encoding.  They are probably also usable for Malay (Bahasa
Melayu).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-indonesian
%_texmf_language_def_d/hyphen-indonesian
%_texmf_language_lua_d/hyphen-indonesian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-indonesian <<EOF
\%% from hyphen-indonesian:
indonesian loadhyph-id.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-indonesian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-indonesian <<EOF
\%% from hyphen-indonesian:
\addlanguage{indonesian}{loadhyph-id.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-indonesian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-indonesian <<EOF
-- from hyphen-indonesian:
	['indonesian'] = {
		loader = 'loadhyph-id.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-id.pat.txt',
		hyphenation = 'hyph-id.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18590 |21mr|texlive-hyphen-interlingua-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-interlingua
Version:	20190406
Release:	1
Summary:	Interlingua hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-interlingua.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Interlingua in ASCII encoding.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-interlingua
%_texmf_language_def_d/hyphen-interlingua
%_texmf_language_lua_d/hyphen-interlingua

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-interlingua <<EOF
\%% from hyphen-interlingua:
interlingua loadhyph-ia.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-interlingua
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-interlingua <<EOF
\%% from hyphen-interlingua:
\addlanguage{interlingua}{loadhyph-ia.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-interlingua
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-interlingua <<EOF
-- from hyphen-interlingua:
	['interlingua'] = {
		loader = 'loadhyph-ia.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-ia.pat.txt',
		hyphenation = 'hyph-ia.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18591 |21mr|texlive-hyphen-irish-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-irish
Version:	20190406
Release:	1
Summary:	Irish hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-irish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Irish (Gaeilge) in T1/EC and UTF-8
encodings. Visit http://borel.slu.edu/fleiscin/index.html for
more information.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-irish
%_texmf_language_def_d/hyphen-irish
%_texmf_language_lua_d/hyphen-irish

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-irish <<EOF
\%% from hyphen-irish:
irish loadhyph-ga.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-irish
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-irish <<EOF
\%% from hyphen-irish:
\addlanguage{irish}{loadhyph-ga.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-irish
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-irish <<EOF
-- from hyphen-irish:
	['irish'] = {
		loader = 'loadhyph-ga.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-ga.pat.txt',
		hyphenation = 'hyph-ga.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18592 |21mr|texlive-hyphen-italian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-italian
Version:	20190406
Release:	1
Summary:	Italian hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/ithyph.tex
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-italian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Italian in ASCII encoding. Compliant
with the Recommendation UNI 6461 on hyphenation issued by the
Italian Standards Institution (Ente Nazionale di Unificazione
UNI).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-italian
%_texmf_language_def_d/hyphen-italian
%_texmf_language_lua_d/hyphen-italian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-italian <<EOF
\%% from hyphen-italian:
italian loadhyph-it.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-italian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-italian <<EOF
\%% from hyphen-italian:
\addlanguage{italian}{loadhyph-it.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-italian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-italian <<EOF
-- from hyphen-italian:
	['italian'] = {
		loader = 'loadhyph-it.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-it.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18593 |21mr|texlive-hyphen-kurmanji-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-kurmanji
Version:	20190406
Release:	1
Summary:	Kurmanji hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-kurmanji.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Kurmanji (Northern Kurdish) as spoken
in Turkey and by the Kurdish diaspora in Europe, in T1/EC and
UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-kurmanji
%_texmf_language_def_d/hyphen-kurmanji
%_texmf_language_lua_d/hyphen-kurmanji

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-kurmanji <<EOF
\%% from hyphen-kurmanji:
kurmanji loadhyph-kmr.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-kurmanji
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-kurmanji <<EOF
\%% from hyphen-kurmanji:
\addlanguage{kurmanji}{loadhyph-kmr.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-kurmanji
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-kurmanji <<EOF
-- from hyphen-kurmanji:
	['kurmanji'] = {
		loader = 'loadhyph-kmr.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-kmr.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18594 |21mr|texlive-hyphen-lao-20120124-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-lao
Version:	20120124
Release:	6
Summary:	Lao hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-lao.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Lao language for Unicode engines.
Current version is experimental and gives bad results.


#-----------------------------------------------------------------------
%files
%_texmf_language_dat_d/hyphen-lao
%_texmf_language_def_d/hyphen-lao
%_texmf_language_lua_d/hyphen-lao

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-lao <<EOF
\%% from hyphen-lao:
lao loadhyph-lo.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-lao
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-lao <<EOF
\%% from hyphen-lao:
\addlanguage{lao}{loadhyph-lo.tex}{}{1}{1}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-lao
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-lao <<EOF
-- from hyphen-lao:
	['lao'] = {
		loader = 'loadhyph-lo.tex',
		lefthyphenmin = 1,
		righthyphenmin = 1,
		synonyms = {  },
		patterns = 'hyph-lo.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18595 |21mr|texlive-hyphen-latin-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-latin
Version:	20190406
Release:	1
Summary:	Latin hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/lahyph.tex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-latin.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Latin in T1/EC and UTF-8 encodings,
mainly in modern spelling (u when u is needed and v when v is
needed), medieval spelling with the ligatures \ae and \oe and
the (uncial) lowercase 'v' written as a 'u' is also supported.
Apparently there is no conflict between the patterns of modern
Latin and those of medieval Latin.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-latin
%_texmf_language_def_d/hyphen-latin
%_texmf_language_lua_d/hyphen-latin

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-latin <<EOF
\%% from hyphen-latin:
latin loadhyph-la.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-latin
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-latin <<EOF
\%% from hyphen-latin:
\addlanguage{latin}{loadhyph-la.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-latin
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-latin <<EOF
-- from hyphen-latin:
	['latin'] = {
		loader = 'loadhyph-la.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-la.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18596 |21mr|texlive-hyphen-latvian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-latvian
Version:	20190406
Release:	1
Summary:	Latvian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-latvian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Latvian in L7X and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-latvian
%_texmf_language_def_d/hyphen-latvian
%_texmf_language_lua_d/hyphen-latvian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-latvian <<EOF
\%% from hyphen-latvian:
latvian loadhyph-lv.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-latvian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-latvian <<EOF
\%% from hyphen-latvian:
\addlanguage{latvian}{loadhyph-lv.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-latvian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-latvian <<EOF
-- from hyphen-latvian:
	['latvian'] = {
		loader = 'loadhyph-lv.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-lv.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18597 |21mr|texlive-hyphen-lithuanian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-lithuanian
Version:	20190406
Release:	1
Summary:	Lithuanian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-lithuanian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Lithuanian in L7X and UTF-8 encodings.
\lefthyphenmin and \righthyphenmin have to be at least 2.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-lithuanian
%_texmf_language_def_d/hyphen-lithuanian
%_texmf_language_lua_d/hyphen-lithuanian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-lithuanian <<EOF
\%% from hyphen-lithuanian:
lithuanian loadhyph-lt.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-lithuanian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-lithuanian <<EOF
\%% from hyphen-lithuanian:
\addlanguage{lithuanian}{loadhyph-lt.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-lithuanian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-lithuanian <<EOF
-- from hyphen-lithuanian:
	['lithuanian'] = {
		loader = 'loadhyph-lt.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-lt.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18598 |21mr|texlive-hyphen-mongolian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-mongolian
Version:	20190406
Release:	1
Summary:	Mongolian hyphenation patterns in Cyrillic script
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-mongolian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Mongolian in T2A, LMC and UTF-8
encodings. LMC encoding is used in MonTeX. The package includes
two sets of patterns that will hopefully be merged in future.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-mongolian
%_texmf_language_def_d/hyphen-mongolian
%_texmf_language_lua_d/hyphen-mongolian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-mongolian <<EOF
\%% from hyphen-mongolian:
mongolian loadhyph-mn-cyrl.tex
mongolianlmc loadhyph-mn-cyrl-x-lmc.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-mongolian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-mongolian <<EOF
\%% from hyphen-mongolian:
\addlanguage{mongolian}{loadhyph-mn-cyrl.tex}{}{2}{2}
\addlanguage{mongolianlmc}{loadhyph-mn-cyrl-x-lmc.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-mongolian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-mongolian <<EOF
-- from hyphen-mongolian:
	['mongolian'] = {
		loader = 'loadhyph-mn-cyrl.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-mn-cyrl.pat.txt',
		hyphenation = '',
	},
	['mongolianlmc'] = {
		loader = 'loadhyph-mn-cyrl-x-lmc.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		special = 'disabled:only for 8bit montex with lmc encoding',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18599 |21mr|texlive-hyphen-norwegian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-norwegian
Version:	20190406
Release:	1
Summary:	Norwegian Bokmal and Nynorsk hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-norwegian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Norwegian Bokmal and Nynorsk in T1/EC
and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-norwegian
%_texmf_language_def_d/hyphen-norwegian
%_texmf_language_lua_d/hyphen-norwegian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-norwegian <<EOF
\%% from hyphen-norwegian:
bokmal loadhyph-nb.tex
=norwegian
=norsk
nynorsk loadhyph-nn.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-norwegian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-norwegian <<EOF
\%% from hyphen-norwegian:
\addlanguage{bokmal}{loadhyph-nb.tex}{}{2}{2}
\addlanguage{norwegian}{loadhyph-nb.tex}{}{2}{2}
\addlanguage{norsk}{loadhyph-nb.tex}{}{2}{2}
\addlanguage{nynorsk}{loadhyph-nn.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-norwegian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-norwegian <<EOF
-- from hyphen-norwegian:
	['bokmal'] = {
		loader = 'loadhyph-nb.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = { 'norwegian', 'norsk' },
		patterns = 'hyph-nb.pat.txt',
		hyphenation = 'hyph-nb.hyp.txt',
	},
	['nynorsk'] = {
		loader = 'loadhyph-nn.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-nn.pat.txt',
		hyphenation = 'hyph-nn.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18600 |21mr|texlive-hyphen-occitan-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-occitan
Version:	20190406
Release:	1
Summary:	Occitan hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-occitan.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Occitan.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-occitan
%_texmf_language_def_d/hyphen-occitan
%_texmf_language_lua_d/hyphen-occitan

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-occitan <<EOF
\%% from hyphen-occitan:
occitan loadhyph-oc.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-occitan
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-occitan <<EOF
\%% from hyphen-occitan:
\addlanguage{occitan}{loadhyph-oc.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-occitan
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-occitan <<EOF
-- from hyphen-occitan:
	['occitan'] = {
		loader = 'loadhyph-oc.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-oc.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18601 |21mr|texlive-hyphen-piedmontese-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29193
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-piedmontese
Version:	20190406
Release:	1
Summary:	Piedmontese hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-piedmontese.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Piedmontese in ASCII encoding.
Compliant with 'Gramatica dla lengua piemonteisa' by Camillo
Brero.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-piedmontese
%_texmf_language_def_d/hyphen-piedmontese
%_texmf_language_lua_d/hyphen-piedmontese

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-piedmontese <<EOF
\%% from hyphen-piedmontese:
piedmontese loadhyph-pms.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-piedmontese
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-piedmontese <<EOF
\%% from hyphen-piedmontese:
\addlanguage{piedmontese}{loadhyph-pms.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-piedmontese
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-piedmontese <<EOF
-- from hyphen-piedmontese:
	['piedmontese'] = {
		loader = 'loadhyph-pms.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-pms.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18602 |21mr|texlive-hyphen-polish-3.0a-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan /language/polish/plhyph.tex
# catalog-date 2009-10-07 21:35:42 +0200
# catalog-license knuth
# catalog-version 3.0a
Name:		texlive-hyphen-polish
Version:	3.0a
Release:	13
Summary:	Polish hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/polish/plhyph.tex
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-polish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Polish in QX and UTF-8 encodings.
These patterns are also used by Polish TeX formats MeX and
LaMeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-polish
%_texmf_language_def_d/hyphen-polish
%_texmf_language_lua_d/hyphen-polish

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-polish <<EOF
\%% from hyphen-polish:
polish loadhyph-pl.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-polish
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-polish <<EOF
\%% from hyphen-polish:
\addlanguage{polish}{loadhyph-pl.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-polish
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-polish <<EOF
-- from hyphen-polish:
	['polish'] = {
		loader = 'loadhyph-pl.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-pl.pat.txt',
		hyphenation = 'hyph-pl.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18603 |21mr|texlive-hyphen-portuguese-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31125
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-portuguese
Version:	20190406
Release:	1
Summary:	Portuguese hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-portuguese.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Portuguese in T1/EC and UTF-8
encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-portuguese
%_texmf_language_def_d/hyphen-portuguese
%_texmf_language_lua_d/hyphen-portuguese

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-portuguese <<EOF
\%% from hyphen-portuguese:
portuguese loadhyph-pt.tex
=portuges
=brazil
=brazilian
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-portuguese
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-portuguese <<EOF
\%% from hyphen-portuguese:
\addlanguage{portuguese}{loadhyph-pt.tex}{}{2}{3}
\addlanguage{portuges}{loadhyph-pt.tex}{}{2}{3}
\addlanguage{brazil}{loadhyph-pt.tex}{}{2}{3}
\addlanguage{brazilian}{loadhyph-pt.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-portuguese
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-portuguese <<EOF
-- from hyphen-portuguese:
	['portuguese'] = {
		loader = 'loadhyph-pt.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = { 'portuges', 'brazil', 'brazilian' },
		patterns = 'hyph-pt.pat.txt',
		hyphenation = 'hyph-pt.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18604 |21mr|texlive-hyphen-romanian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-romanian
Version:	20190406
Release:	1
Summary:	Romanian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-romanian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Romanian in T1/EC and UTF-8 encodings.
The UTF-8 patterns use U+0219 for the character 's with comma
accent' and U+021B for 't with comma accent', but we may
consider using U+015F and U+0163 as well in the future.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-romanian
%_texmf_language_def_d/hyphen-romanian
%_texmf_language_lua_d/hyphen-romanian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-romanian <<EOF
\%% from hyphen-romanian:
romanian loadhyph-ro.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-romanian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-romanian <<EOF
\%% from hyphen-romanian:
\addlanguage{romanian}{loadhyph-ro.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-romanian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-romanian <<EOF
-- from hyphen-romanian:
	['romanian'] = {
		loader = 'loadhyph-ro.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-ro.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18605 |21mr|texlive-hyphen-romansh-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-romansh
Version:	20190406
Release:	1
Summary:	Romansh hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-romansh.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Romansh in ASCII encoding. They are
supposed to comply with the rules indicated by the Lia
Rumantscha (Romansh language society).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-romansh
%_texmf_language_def_d/hyphen-romansh
%_texmf_language_lua_d/hyphen-romansh

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-romansh <<EOF
\%% from hyphen-romansh:
romansh loadhyph-rm.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-romansh
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-romansh <<EOF
\%% from hyphen-romansh:
\addlanguage{romansh}{loadhyph-rm.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-romansh
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-romansh <<EOF
-- from hyphen-romansh:
	['romansh'] = {
		loader = 'loadhyph-rm.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-rm.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18606 |21mr|texlive-hyphen-russian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-russian
Version:	20190406
Release:	1
Summary:	Russian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-russian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8
Requires:	texlive-ruhyphen

%description
Hyphenation patterns for Russian in T2A and UTF-8 encodings.
For 8-bit engines, the 'ruhyphen' package provides a number of
different pattern sets, as well as different (8-bit) encodings,
that can be chosen at format-generation time.  The UTF-8
version only provides the default pattern set.  A mechanism
similar to the one used for 8-bit patterns may be implemented
in the future.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-russian
%_texmf_language_def_d/hyphen-russian
%_texmf_language_lua_d/hyphen-russian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-russian <<EOF
\%% from hyphen-russian:
russian loadhyph-ru.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-russian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-russian <<EOF
\%% from hyphen-russian:
\addlanguage{russian}{loadhyph-ru.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-russian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-russian <<EOF
-- from hyphen-russian:
	['russian'] = {
		loader = 'loadhyph-ru.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-ru.pat.txt',
		hyphenation = 'hyph-ru.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18607 |21mr|texlive-hyphen-sanskrit-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28522
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-sanskrit
Version:	20190406
Release:	1
Summary:	Sanskrit hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-sanskrit.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Sanskrit and Prakrit in
transliteration, and in Devanagari, Bengali, Kannada, Malayalam
and Telugu scripts for Unicode engines.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-sanskrit
%_texmf_language_def_d/hyphen-sanskrit
%_texmf_language_lua_d/hyphen-sanskrit

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-sanskrit <<EOF
\%% from hyphen-sanskrit:
sanskrit loadhyph-sa.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-sanskrit
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-sanskrit <<EOF
\%% from hyphen-sanskrit:
\addlanguage{sanskrit}{loadhyph-sa.tex}{}{1}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-sanskrit
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-sanskrit <<EOF
-- from hyphen-sanskrit:
	['sanskrit'] = {
		loader = 'loadhyph-sa.tex',
		lefthyphenmin = 1,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-sa.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18608 |21mr|texlive-hyphen-serbian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-serbian
Version:	20190406
Release:	1
Summary:	Serbian hyphenation patterns
Group:		Publishing
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-serbian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Serbian in T1/EC, T2A and UTF-8
encodings. For 8-bit engines the patterns are available
separately as 'serbian' in T1/EC encoding for Latin script and
'serbianc' in T2A encoding for Cyrillic script. Unicode engines
should only use 'serbian' which has patterns in both scripts
combined.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-serbian
%_texmf_language_def_d/hyphen-serbian
%_texmf_language_lua_d/hyphen-serbian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-serbian <<EOF
\%% from hyphen-serbian:
serbian loadhyph-sr-latn.tex
serbianc loadhyph-sr-cyrl.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-serbian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-serbian <<EOF
\%% from hyphen-serbian:
\addlanguage{serbian}{loadhyph-sr-latn.tex}{}{2}{2}
\addlanguage{serbianc}{loadhyph-sr-cyrl.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-serbian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-serbian <<EOF
-- from hyphen-serbian:
	['serbian'] = {
		loader = 'loadhyph-sr-latn.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-sh-latn.pat.txt,hyph-sh-cyrl.pat.txt',
		hyphenation = 'hyph-sh-latn.hyp.txt,hyph-sh-cyrl.hyp.txt',
	},
	['serbianc'] = {
		loader = 'loadhyph-sr-cyrl.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-sh-latn.pat.txt,hyph-sh-cyrl.pat.txt',
		hyphenation = 'hyph-sh-latn.hyp.txt,hyph-sh-cyrl.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18609 |21mr|texlive-hyphen-slovak-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-slovak
Version:	20190406
Release:	1
Summary:	Slovak hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-slovak.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Slovak in T1/EC and UTF-8 encodings.
Original patterns 'skhyphen' are still distributed in the
'csplain' package and loaded with ISO Latin 2 encoding (IL2).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-slovak
%_texmf_language_def_d/hyphen-slovak
%_texmf_language_lua_d/hyphen-slovak

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-slovak <<EOF
\%% from hyphen-slovak:
slovak loadhyph-sk.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-slovak
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-slovak <<EOF
\%% from hyphen-slovak:
\addlanguage{slovak}{loadhyph-sk.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-slovak
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-slovak <<EOF
-- from hyphen-slovak:
	['slovak'] = {
		loader = 'loadhyph-sk.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-sk.pat.txt',
		hyphenation = 'hyph-sk.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18610 |21mr|texlive-hyphen-slovenian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-slovenian
Version:	20190406
Release:	1
Summary:	Slovenian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-slovenian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Slovenian in T1/EC and UTF-8
encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-slovenian
%_texmf_language_def_d/hyphen-slovenian
%_texmf_language_lua_d/hyphen-slovenian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-slovenian <<EOF
\%% from hyphen-slovenian:
slovenian loadhyph-sl.tex
=slovene
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-slovenian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-slovenian <<EOF
\%% from hyphen-slovenian:
\addlanguage{slovenian}{loadhyph-sl.tex}{}{2}{2}
\addlanguage{slovene}{loadhyph-sl.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-slovenian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-slovenian <<EOF
-- from hyphen-slovenian:
	['slovenian'] = {
		loader = 'loadhyph-sl.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = { 'slovene' },
		patterns = 'hyph-sl.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18611 |21mr|texlive-hyphen-spanish-4.5-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-spanish
Version:	4.5
Release:	11
Summary:	Spanish hyphenation patterns
Group:		Publishing
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-spanish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Spanish in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-spanish
%_texmf_language_def_d/hyphen-spanish
%_texmf_language_lua_d/hyphen-spanish

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-spanish <<EOF
\%% from hyphen-spanish:
spanish loadhyph-es.tex
=espanol
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-spanish
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-spanish <<EOF
\%% from hyphen-spanish:
\addlanguage{spanish}{loadhyph-es.tex}{}{2}{2}
\addlanguage{espanol}{loadhyph-es.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-spanish
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-spanish <<EOF
-- from hyphen-spanish:
	['spanish'] = {
		loader = 'loadhyph-es.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = { 'espanol' },
		patterns = 'hyph-es.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18612 |21mr|texlive-hyphen-swedish-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-swedish
Version:	20190406
Release:	1
Summary:	Swedish hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-swedish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Swedish in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-swedish
%_texmf_language_def_d/hyphen-swedish
%_texmf_language_lua_d/hyphen-swedish

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-swedish <<EOF
\%% from hyphen-swedish:
swedish loadhyph-sv.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-swedish
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-swedish <<EOF
\%% from hyphen-swedish:
\addlanguage{swedish}{loadhyph-sv.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-swedish
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-swedish <<EOF
-- from hyphen-swedish:
	['swedish'] = {
		loader = 'loadhyph-sv.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-sv.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18613 |21mr|texlive-hyphen-thai-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30605
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-thai
Version:	20190406
Release:	1
Summary:	Thai hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-thai.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Thai in LTH and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-thai
%_texmf_language_def_d/hyphen-thai
%_texmf_language_lua_d/hyphen-thai

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-thai <<EOF
\%% from hyphen-thai:
thai loadhyph-th.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-thai
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-thai <<EOF
\%% from hyphen-thai:
\addlanguage{thai}{loadhyph-th.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-thai
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-thai <<EOF
-- from hyphen-thai:
	['thai'] = {
		loader = 'loadhyph-th.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-th.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18614 |21mr|texlive-hyphen-turkish-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan /language/hyphenation/tkhyph.tex
# catalog-date 2011-02-23 08:51:21 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-hyphen-turkish
Version:	20190406
Release:	1
Summary:	Turkish hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/tkhyph.tex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-turkish.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Turkish in T1/EC and UTF-8 encodings.
The patterns for Turkish were first produced for the Ottoman
Texts Project in 1987 and were suitable for both Modern Turkish
and Ottoman Turkish in Latin script, however the required
character set didn't fit into EC encoding, so support for
Ottoman Turkish had to be dropped to keep compatibility with 8-
bit engines.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-turkish
%_texmf_language_def_d/hyphen-turkish
%_texmf_language_lua_d/hyphen-turkish

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-turkish <<EOF
\%% from hyphen-turkish:
turkish loadhyph-tr.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-turkish
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-turkish <<EOF
\%% from hyphen-turkish:
\addlanguage{turkish}{loadhyph-tr.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-turkish
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-turkish <<EOF
-- from hyphen-turkish:
	['turkish'] = {
		loader = 'loadhyph-tr.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-tr.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18615 |21mr|texlive-hyphen-turkmen-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25990
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-turkmen
Version:	20190406
Release:	1
Summary:	Turkmen hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-turkmen.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Turkmen in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-turkmen
%_texmf_language_def_d/hyphen-turkmen
%_texmf_language_lua_d/hyphen-turkmen

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-turkmen <<EOF
\%% from hyphen-turkmen:
turkmen loadhyph-tk.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-turkmen
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-turkmen <<EOF
\%% from hyphen-turkmen:
\addlanguage{turkmen}{loadhyph-tk.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-turkmen
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-turkmen <<EOF
-- from hyphen-turkmen:
	['turkmen'] = {
		loader = 'loadhyph-tk.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-tk.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18616 |21mr|texlive-hyphen-ukrainian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyphen-ukrainian
Version:	20190406
Release:	1
Summary:	Ukrainian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-ukrainian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8
Requires:	texlive-ukrhyph

%description
Hyphenation patterns for Ukrainian in T2A and UTF-8 encodings.
For 8-bit engines, the 'ukrhyph' package provides a number of
different pattern sets, as well as different (8-bit) encodings,
that can be chosen at format-generation time.  The UTF-8
version only provides the default pattern set.  A mechanism
similar to the one used for 8-bit patterns may be implemented
in the future.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-ukrainian
%_texmf_language_def_d/hyphen-ukrainian
%_texmf_language_lua_d/hyphen-ukrainian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-ukrainian <<EOF
\%% from hyphen-ukrainian:
ukrainian loadhyph-uk.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-ukrainian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-ukrainian <<EOF
\%% from hyphen-ukrainian:
\addlanguage{ukrainian}{loadhyph-uk.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-ukrainian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-ukrainian <<EOF
-- from hyphen-ukrainian:
	['ukrainian'] = {
		loader = 'loadhyph-uk.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-uk.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18617 |21mr|texlive-hyphen-uppersorbian-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-uppersorbian
Version:	20190406
Release:	1
Summary:	Upper Sorbian hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-uppersorbian.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Upper Sorbian in T1/EC and UTF-8
encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-uppersorbian
%_texmf_language_def_d/hyphen-uppersorbian
%_texmf_language_lua_d/hyphen-uppersorbian

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-uppersorbian <<EOF
\%% from hyphen-uppersorbian:
uppersorbian loadhyph-hsb.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-uppersorbian
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-uppersorbian <<EOF
\%% from hyphen-uppersorbian:
\addlanguage{uppersorbian}{loadhyph-hsb.tex}{}{2}{2}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-uppersorbian
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-uppersorbian <<EOF
-- from hyphen-uppersorbian:
	['uppersorbian'] = {
		loader = 'loadhyph-hsb.tex',
		lefthyphenmin = 2,
		righthyphenmin = 2,
		synonyms = {  },
		patterns = 'hyph-hsb.pat.txt',
		hyphenation = 'hyph-hsb.hyp.txt',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18618 |21mr|texlive-hyphen-welsh-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23085
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-hyphen-welsh
Version:	20190406
Release:	1
Summary:	Welsh hyphenation patterns
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyphen-welsh.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-hyphen-base
Requires:	texlive-hyph-utf8

%description
Hyphenation patterns for Welsh in T1/EC and UTF-8 encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8/loadhyph/*
%{_texmfdistdir}/tex/generic/hyph-utf8/patterns/*/*
%_texmf_language_dat_d/hyphen-welsh
%_texmf_language_def_d/hyphen-welsh
%_texmf_language_lua_d/hyphen-welsh

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

mkdir -p %{buildroot}%{_texmf_language_dat_d}
cat > %{buildroot}%{_texmf_language_dat_d}/hyphen-welsh <<EOF
\%% from hyphen-welsh:
welsh loadhyph-cy.tex
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_dat_d}/hyphen-welsh
mkdir -p %{buildroot}%{_texmf_language_def_d}
cat > %{buildroot}%{_texmf_language_def_d}/hyphen-welsh <<EOF
\%% from hyphen-welsh:
\addlanguage{welsh}{loadhyph-cy.tex}{}{2}{3}
EOF
perl -pi -e 's|\\%%|%%|;' %{buildroot}%{_texmf_language_def_d}/hyphen-welsh
mkdir -p %{buildroot}%{_texmf_language_lua_d}
cat > %{buildroot}%{_texmf_language_lua_d}/hyphen-welsh <<EOF
-- from hyphen-welsh:
	['welsh'] = {
		loader = 'loadhyph-cy.tex',
		lefthyphenmin = 2,
		righthyphenmin = 3,
		synonyms = {  },
		patterns = 'hyph-cy.pat.txt',
		hyphenation = '',
	},
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18619 |21mr|texlive-hyph-utf8-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-hyph-utf8
Version:	20190406
Release:	1
Summary:	Hyphenation patterns expressed in UTF-8
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyph-utf8
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyph-utf8.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyph-utf8.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hyph-utf8.source.tar.xz
Source10:	%{name}.rpmlintrc
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Modern native UTF-8 engines such as XeTeX and LuaTeX need
hyphenation patterns in UTF-8 format, whereas older systems
require hyphenation patterns in the 8-bit encoding of the font
in use (such encodings are codified in the LaTeX scheme with
names like OT1, T2A, TS1, OML, LY1, etc). The present package
offers a collection of conversions of existing patterns to UTF-
8 format, together with converters for use with 8-bit fonts in
older systems. Since hyphenation patterns for Knuthian-style
TeX systems are only read at iniTeX time, it is hoped that the
UTF-8 patterns, with their converters, will completely supplant
the older patterns.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/hyph-utf8
%{_texmfdistdir}/tex/luatex/hyph-utf8
%doc %{_texmfdistdir}/doc/generic/hyph-utf8
%doc %{_texmfdistdir}/doc/luatex/hyph-utf8
#- source
%doc %{_texmfdistdir}/source/generic/hyph-utf8
%doc %{_texmfdistdir}/source/luatex/hyph-utf8

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18620 |21mr|texlive-ibycus-babel-3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/greek/ibycus-babel
# catalog-date 2009-05-06 13:52:38 +0200
# catalog-license lppl
# catalog-version 3.0
Name:		texlive-ibycus-babel
Version:	3.0
Release:	7
Summary:	Use the Ibycus 4 Greek font with Babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/greek/ibycus-babel
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ibycus-babel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ibycus-babel.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ibycus-babel.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows you to use the Ibycus 4 font for ancient
Greek with Babel. It uses a Perl script to generate hyphenation
patterns for Ibycus from those for the ordinary Babel encoding,
cbgreek. It sets up "ibycus" as a pseudo-language you can
specify in the normal Babel manner. For proper hyphenation of
Greek quoted in mid-paragraph, you should use it with elatex.
See the README for details.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ibycus-babel/ibycus.ldf
%{_texmfdistdir}/tex/latex/ibycus-babel/lgienc.def
%{_texmfdistdir}/tex/latex/ibycus-babel/lgifib.fd
%doc %{_texmfdistdir}/doc/latex/ibycus-babel/README
%doc %{_texmfdistdir}/doc/latex/ibycus-babel/ibycus-babel-test.tex
%doc %{_texmfdistdir}/doc/latex/ibycus-babel/ibycus-babel.pdf
%doc %{_texmfdistdir}/doc/latex/ibycus-babel/ibyhyph.pl
#- source
%doc %{_texmfdistdir}/source/latex/ibycus-babel/ibycus-babel.dtx
%doc %{_texmfdistdir}/source/latex/ibycus-babel/ibycus-babel.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18621 |21mr|texlive-ibygrk-4.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/greek/ibygrk
# catalog-date 2007-07-29 11:26:52 +0200
# catalog-license gpl
# catalog-version 4.5
Name:		texlive-ibygrk
Version:	4.5
Release:	7
Summary:	Fonts and macros to typeset ancient Greek
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/ibygrk
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ibygrk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ibygrk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Ibycus is a Greek typeface, based on Silvio Levy's realisation
of a classic Didot cut of Greek type from around 1800. The
fonts are available both as MetaFont source and in Adobe Type 1
format. This distribution of ibycus is accompanied by a set of
macro packages to use it with Plain TeX or LaTeX, but for use
with Babel, see the ibycus-babel package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/ibygrk/fibb84.afm
%{_texmfdistdir}/fonts/afm/public/ibygrk/fibr84.afm
%{_texmfdistdir}/fonts/enc/dvips/ibygrk/IbycusHTG.enc
%{_texmfdistdir}/fonts/map/dvips/ibygrk/iby.map
%{_texmfdistdir}/fonts/source/public/ibygrk/abary4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/cigma4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/digamma4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ebary4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibb84.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibb848.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibb849.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibo84.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibo848.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibo849.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibr84.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibr848.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/fibr849.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/hbary4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ibary4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ibyacc4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ibycus4.map
%{_texmfdistdir}/fonts/source/public/ibygrk/ibycus4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ibylig4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ibylwr4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ibypnct4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ibyupr4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/koppa4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/obary4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/sampi4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/ubary4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/version4.mf
%{_texmfdistdir}/fonts/source/public/ibygrk/wbary4.mf
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibb84.tfm
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibb848.tfm
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibb849.tfm
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibo84.tfm
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibo848.tfm
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibo849.tfm
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibr84.tfm
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibr848.tfm
%{_texmfdistdir}/fonts/tfm/public/ibygrk/fibr849.tfm
%{_texmfdistdir}/fonts/type1/public/ibygrk/fibb84.pfb
%{_texmfdistdir}/fonts/type1/public/ibygrk/fibr84.pfb
%{_texmfdistdir}/tex/generic/ibygrk/Uibycus.fd
%{_texmfdistdir}/tex/generic/ibygrk/Uibycus4.fd
%{_texmfdistdir}/tex/generic/ibygrk/iby4extr.tex
%{_texmfdistdir}/tex/generic/ibygrk/ibycus4.map
%{_texmfdistdir}/tex/generic/ibygrk/ibycus4.sty
%{_texmfdistdir}/tex/generic/ibygrk/ibycus4.tex
%{_texmfdistdir}/tex/generic/ibygrk/ibycusps.tex
%{_texmfdistdir}/tex/generic/ibygrk/psibycus.sty
%{_texmfdistdir}/tex/generic/ibygrk/pssetiby.tex
%{_texmfdistdir}/tex/generic/ibygrk/setiby4.tex
%{_texmfdistdir}/tex/generic/ibygrk/tlgsqq.tex
%{_texmfdistdir}/tex/generic/ibygrk/version4.tex
%doc %{_texmfdistdir}/doc/fonts/ibygrk/COPYING
%doc %{_texmfdistdir}/doc/fonts/ibygrk/NEWS
%doc %{_texmfdistdir}/doc/fonts/ibygrk/README
%doc %{_texmfdistdir}/doc/fonts/ibygrk/README.ibycus4
%doc %{_texmfdistdir}/doc/fonts/ibygrk/iby4text.tex
%doc %{_texmfdistdir}/doc/fonts/ibygrk/ibycus3.RME
%doc %{_texmfdistdir}/doc/fonts/ibygrk/ibycus4.ltx
%doc %{_texmfdistdir}/doc/fonts/ibygrk/psibycus.ltx
%doc %{_texmfdistdir}/doc/fonts/ibygrk/psibycus.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18622 |21mr|texlive-icsv-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/conferences/icsv
# catalog-date 2008-05-21 23:07:53 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-icsv
Version:	0.2
Release:	7
Summary:	Class for typesetting articles for the ICSV conference
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/conferences/icsv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/icsv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/icsv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/icsv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is an ad-hoc class for typesetting articles for the ICSV
conference, based on the earler active-conf by the same author.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/icsv/icsv.cls
%doc %{_texmfdistdir}/doc/latex/icsv/README
%doc %{_texmfdistdir}/doc/latex/icsv/icsv-example.tex
%doc %{_texmfdistdir}/doc/latex/icsv/icsv.pdf
#- source
%doc %{_texmfdistdir}/source/latex/icsv/icsv.dtx
%doc %{_texmfdistdir}/source/latex/icsv/icsv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18623 |21mr|texlive-idxcmds-0.2c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31557
# category Package
# catalog-ctan /macros/latex/contrib/idxcmds
# catalog-date 2013-08-31 22:39:59 +0200
# catalog-license lppl1.3
# catalog-version 0.2a
Name:		texlive-idxcmds
Version:	0.2c
Release:	2
Summary:	Semantic commands for adding formatted index entries
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/idxcmds
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/idxcmds.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/idxcmds.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands for adding formatted index
entries; it arises from the author's work on large documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/idxcmds/idxcmds.sty
%doc %{_texmfdistdir}/doc/latex/idxcmds/README
%doc %{_texmfdistdir}/doc/latex/idxcmds/idxcmds_en.pdf
%doc %{_texmfdistdir}/doc/latex/idxcmds/idxcmds_en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18624 |21mr|texlive-idxlayout-0.4d-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25821
# category Package
# catalog-ctan /macros/latex/contrib/idxlayout
# catalog-date 2012-04-01 20:39:12 +0200
# catalog-license lppl
# catalog-version 0.4d
Name:		texlive-idxlayout
Version:	0.4d
Release:	6
Summary:	Configurable index layout, responsive to KOMA-Script and memoir
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/idxlayout
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/idxlayout.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/idxlayout.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/idxlayout.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The idxlayout package offers a key-value interface to configure
index layout parameters, e.g. allowing for three-column indexes
or for "parent" items and their affiliated subitems being
typeset as a single paragraph. The package is responsive to the
index-related options and commands of the KOMA-Script and
memoir classes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/idxlayout/idxlayout.sty
%doc %{_texmfdistdir}/doc/latex/idxlayout/README
%doc %{_texmfdistdir}/doc/latex/idxlayout/idxlayout.pdf
#- source
%doc %{_texmfdistdir}/source/latex/idxlayout/idxlayout.dtx
%doc %{_texmfdistdir}/source/latex/idxlayout/idxlayout.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18625 |21mr|texlive-IEEEconf-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/IEEEconf
# catalog-date 2009-04-06 20:17:45 +0200
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-IEEEconf
Version:	1.4
Release:	7
Summary:	Macros for IEEE conference proceedings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEconf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/IEEEconf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/IEEEconf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/IEEEconf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The IEEEconf class implements the formatting dictated by the
IEEE Computer Society Press for conference proceedings.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/IEEEconf/IEEEconf.cls
%doc %{_texmfdistdir}/doc/latex/IEEEconf/IEEEconf.pdf
%doc %{_texmfdistdir}/doc/latex/IEEEconf/README
#- source
%doc %{_texmfdistdir}/source/latex/IEEEconf/IEEEconf.dtx
%doc %{_texmfdistdir}/source/latex/IEEEconf/IEEEconf.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18626 |21mr|texlive-ieeepes-4.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17359
# category Package
# catalog-ctan /macros/latex/contrib/ieeepes
# catalog-date 2010-03-06 17:23:09 +0100
# catalog-license lppl
# catalog-version 4.0
Name:		texlive-ieeepes
Version:	4.0
Release:	7
Summary:	IEEE Power Engineering Society Transactions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ieeepes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ieeepes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ieeepes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Supports typesetting of transactions, as well as discussions
and closures, for the IEEE Power Engineering Society
Transactions journals.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/ieeepes/ieeepes.bst
%{_texmfdistdir}/tex/latex/ieeepes/ieeepes.sty
%doc %{_texmfdistdir}/doc/latex/ieeepes/README
%doc %{_texmfdistdir}/doc/latex/ieeepes/ieeepes_check.bib
%doc %{_texmfdistdir}/doc/latex/ieeepes/ieeepes_check.tex
%doc %{_texmfdistdir}/doc/latex/ieeepes/ieeepes_doc.pdf
%doc %{_texmfdistdir}/doc/latex/ieeepes/ieeepes_doc.tex
%doc %{_texmfdistdir}/doc/latex/ieeepes/ieeepes_skel.tex
%doc %{_texmfdistdir}/doc/latex/ieeepes/vk.eps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18627 |21mr|texlive-IEEEtran-1.8b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-IEEEtran
Version:	1.8b
Release:	1
Summary:	Document class for IEEE Transactions journals and conferences
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/IEEEtran
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/IEEEtran.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/IEEEtran.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class and its BibTeX style enable authors to produce
officially-correct output for the Institute of Electrical and
Electronics Engineers (IEEE) transactions, journals and
conferences.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/IEEEtran
%{_texmfdistdir}/bibtex/bst/IEEEtran
%{_texmfdistdir}/tex/latex/IEEEtran
%doc %{_texmfdistdir}/doc/latex/IEEEtran

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18628 |21mr|texlive-ifluatex-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26725
# category Package
# catalog-ctan /macros/latex/contrib/oberdiek/ifluatex.dtx
# catalog-date 2012-05-29 15:13:53 +0200
# catalog-license lppl1.3
# catalog-version 1.3
Name:		texlive-ifluatex
Version:	1.4
Release:	1
Summary:	Provides the \ifluatex switch
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek/ifluatex.dtx
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifluatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifluatex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifluatex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package looks for LuaTeX regardless of its mode and
provides the switch \ifluatex; it works with Plain TeX or
LaTeX. The package is part of the oberdiek bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/oberdiek/ifluatex.sty
%doc %{_texmfdistdir}/doc/latex/oberdiek/ifluatex.pdf
%doc %{_texmfdistdir}/doc/latex/oberdiek/test/ifluatex-test1.tex
%doc %{_texmfdistdir}/doc/latex/oberdiek/test/ifluatex-test2.tex
%doc %{_texmfdistdir}/doc/latex/oberdiek/test/ifluatex-test3.tex
#- source
%doc %{_texmfdistdir}/source/latex/oberdiek/ifluatex.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18629 |21mr|texlive-ifmslide-0.47-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20727
# category Package
# catalog-ctan /macros/latex/contrib/ifmslide
# catalog-date 2010-12-14 00:15:57 +0100
# catalog-license lppl1.2
# catalog-version 0.47
Name:		texlive-ifmslide
Version:	0.47
Release:	7
Summary:	Presentation slides for screen and printouts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ifmslide
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifmslide.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifmslide.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifmslide.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is used to produce printed slides with latex and
online presentations with pdflatex. It is provided by the
'Institute of Mechanics' (ifm) Univ. of Technology Darmstadt,
Germany. It is based on ideas of pdfslide, but completely
rewritten for compatibility with texpower and seminar. The
manual describes all functions and provides a sample.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ifmslide/aqua_ravines.eps
%{_texmfdistdir}/tex/latex/ifmslide/aqua_ravines.jpg
%{_texmfdistdir}/tex/latex/ifmslide/button1c.eps
%{_texmfdistdir}/tex/latex/ifmslide/button1c.pdf
%{_texmfdistdir}/tex/latex/ifmslide/button1e.eps
%{_texmfdistdir}/tex/latex/ifmslide/button1e.pdf
%{_texmfdistdir}/tex/latex/ifmslide/buttonec.eps
%{_texmfdistdir}/tex/latex/ifmslide/buttonec.pdf
%{_texmfdistdir}/tex/latex/ifmslide/buttonee.eps
%{_texmfdistdir}/tex/latex/ifmslide/buttonee.pdf
%{_texmfdistdir}/tex/latex/ifmslide/buttongc.eps
%{_texmfdistdir}/tex/latex/ifmslide/buttongc.pdf
%{_texmfdistdir}/tex/latex/ifmslide/buttonge.eps
%{_texmfdistdir}/tex/latex/ifmslide/buttonge.pdf
%{_texmfdistdir}/tex/latex/ifmslide/ifmlogoc.eps
%{_texmfdistdir}/tex/latex/ifmslide/ifmlogoc.pdf
%{_texmfdistdir}/tex/latex/ifmslide/ifmlogog.eps
%{_texmfdistdir}/tex/latex/ifmslide/ifmlogog.pdf
%{_texmfdistdir}/tex/latex/ifmslide/ifmslide.cfg
%{_texmfdistdir}/tex/latex/ifmslide/ifmslide.sty
%{_texmfdistdir}/tex/latex/ifmslide/liquid_helium.eps
%{_texmfdistdir}/tex/latex/ifmslide/liquid_helium.jpg
%doc %{_texmfdistdir}/doc/latex/ifmslide/README
%doc %{_texmfdistdir}/doc/latex/ifmslide/genbutton
%doc %{_texmfdistdir}/doc/latex/ifmslide/ifmman.pdf
%doc %{_texmfdistdir}/doc/latex/ifmslide/ifmman.tex
#- source
%doc %{_texmfdistdir}/source/latex/ifmslide/genbutton

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18630 |21mr|texlive-ifmtarg-1.2b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19363
# category Package
# catalog-ctan /macros/latex/contrib/ifmtarg
# catalog-date 2010-07-10 16:47:23 +0200
# catalog-license lppl
# catalog-version 1.2a
Name:		texlive-ifmtarg
Version:	1.2b
Release:	1
Summary:	If-then-else command for processing potentially empty arguments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ifmtarg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifmtarg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifmtarg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifmtarg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive ifmtarg package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ifmtarg/ifmtarg.sty
%doc %{_texmfdistdir}/doc/latex/ifmtarg/README
%doc %{_texmfdistdir}/doc/latex/ifmtarg/ifmtarg.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ifmtarg/ifmtarg.ins
%doc %{_texmfdistdir}/source/latex/ifmtarg/ifmtarg.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18631 |21mr|texlive-ifnextok-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23379
# category Package
# catalog-ctan /macros/latex/contrib/ifnextok
# catalog-date 2011-06-27 20:36:28 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-ifnextok
Version:	0.3
Release:	7
Summary:	Utility macro: peek ahead without ignoring spaces
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ifnextok
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifnextok.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifnextok.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifnextok.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package deals with the behaviour of the LaTeX internal
command \@ifnextchar, which skips blank spaces. This has the
potential to surprise users, since it can produce really
unwanted effects. A common example occurs with brackets
starting a line following \\: the command looks for an optional
argument, whereas the user wants the brackets to be printed.
The package offers commands and options for modifying this
behaviour, maybe limited to certain parts of the document
source.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ifnextok/ifnextok.sty
%doc %{_texmfdistdir}/doc/latex/ifnextok/README
%doc %{_texmfdistdir}/doc/latex/ifnextok/RELEASEs.txt
%doc %{_texmfdistdir}/doc/latex/ifnextok/SRCFILEs.txt
%doc %{_texmfdistdir}/doc/latex/ifnextok/ifnextok.pdf
%doc %{_texmfdistdir}/doc/latex/ifnextok/testIfNT.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ifnextok/ifnextok.tex
%doc %{_texmfdistdir}/source/latex/ifnextok/makedoc.cfg
%doc %{_texmfdistdir}/source/latex/ifnextok/srcfiles.tex
%doc %{_texmfdistdir}/source/latex/ifnextok/testIfNT.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18632 |21mr|texlive-ifoddpage-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23979
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-ifoddpage
Version:	1.1
Release:	2
Epoch:		1
Summary:	TeXLive ifoddpage package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifoddpage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifoddpage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifoddpage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive ifoddpage package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ifoddpage/ifoddpage.sty
%doc %{_texmfdistdir}/doc/latex/ifoddpage/README
%doc %{_texmfdistdir}/doc/latex/ifoddpage/ifoddpage.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ifoddpage/ifoddpage.dtx
%doc %{_texmfdistdir}/source/latex/ifoddpage/ifoddpage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18633 |21mr|texlive-ifplatform-0.4a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21156
# category Package
# catalog-ctan /macros/latex/contrib/ifplatform
# catalog-date 2009-09-10 17:35:10 +0200
# catalog-license lppl
# catalog-version 0.3a
Name:		texlive-ifplatform
Version:	0.4a
Release:	2
Summary:	Conditionals to test which platform is being used
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ifplatform
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifplatform.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifplatform.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifplatform.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package uses the (La)TeX extension -shell-escape to
establish whether the document is being processed on a Windows
or on a Unix-like system (Mac OS X, Linux, etc.), or on Cygwin
(Unix environment over a windows system). Booleans provided
are: - \ifwindows, - \iflinux, - \ifmacosx and - \ifcygwin. The
package also preserves the output of uname on a Unix-like
system, which may be used to distinguish between various
classes of Unix systems.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ifplatform/ifplatform.sty
%doc %{_texmfdistdir}/doc/latex/ifplatform/README
%doc %{_texmfdistdir}/doc/latex/ifplatform/ifplatform.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ifplatform/ifplatform.dtx
%doc %{_texmfdistdir}/source/latex/ifplatform/ifplatform.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18634 |21mr|texlive-iftex-20200308-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-iftex
Version:	20200308
Release:	1
Summary:	Am I running under pdfTeX, XeTeX or LuaTeX?
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/iftex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iftex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iftex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package, which works both for Plain TeX and for LaTeX,
defines the \ifPDFTeX, \ifXeTeX, and \ifLuaTeX conditionals for
testing which engine is being used for typesetting. The package
also provides the \RequirePDFTeX, \RequireXeTeX, and
\RequireLuaTeX commands which throw an error if pdfTeX, XeTeX
or LuaTeX (respectively) is not the engine in use.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/iftex/*.sty
%doc %{_texmfdistdir}/doc/generic/iftex/README.md
%doc %{_texmfdistdir}/doc/generic/iftex/*.pdf
%doc %{_texmfdistdir}/doc/generic/iftex/*.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18635 |21mr|texlive-ifthenx-0.1a-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25819
# category Package
# catalog-ctan /macros/latex/contrib/ifthenx
# catalog-date 2012-04-01 23:59:58 +0200
# catalog-license lppl
# catalog-version 0.1a
Name:		texlive-ifthenx
Version:	0.1a
Release:	6
Summary:	Extra tests for \ifthenelse
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ifthenx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifthenx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifthenx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends the ifthen package, providing extra
predicates for the package's \ifthenelse command. The package
is complementary to xifthen, in that they provide different
facilities; the two may be loaded in the same document, as long
as xifthen is loaded first.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ifthenx/ifthenx.sty
%doc %{_texmfdistdir}/doc/latex/ifthenx/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18636 |21mr|texlive-ifxetex-0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19685
# category Package
# catalog-ctan /macros/generic/ifxetex
# catalog-date 2009-01-27 08:30:55 +0100
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-ifxetex
Version:	0.6
Release:	2
Summary:	Am I running under XeTeX?
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/ifxetex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifxetex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifxetex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ifxetex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A simple package which provides an \ifxetex conditional, so
that other code can determine that it is running under XeTeX.
The package requires the e-TeX extensions to the TeX primitive
set.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/ifxetex/ifxetex.sty
%doc %{_texmfdistdir}/doc/generic/ifxetex/README
%doc %{_texmfdistdir}/doc/generic/ifxetex/ifxetex.pdf
#- source
%doc %{_texmfdistdir}/source/generic/ifxetex/ifxetex.ins
%doc %{_texmfdistdir}/source/generic/ifxetex/ifxetex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18637 |21mr|texlive-iitem-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29613
# category Package
# catalog-ctan /macros/latex/contrib/iitem
# catalog-date 2013-04-02 15:23:02 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-iitem
Version:	1.0
Release:	10
Summary:	Multiple level of lists in one list-like environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/iitem
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iitem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iitem.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iitem.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines multiple level lists within one list-like
environment. instead of writing \begin{enumerate} \item 1
\begin{enumerate} \item 2 \begin{enumerate} \item 3
\begin{enumerate} \item 4 \end{enumerate} \end{enumerate} \item
2.1 \end{enumerate} \item 1.1 \begin{enumerate} \item 2
\end{enumerate} \end{enumerate} this package allows you to
write \begin{enumerate} \item 1 \iitem 2 \iiitem 3 \ivtem 4
\iitem 2.1 \item 1.1 \iitem 2 \end{enumerate}.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/iitem/iitem.sty
%doc %{_texmfdistdir}/doc/latex/iitem/README
%doc %{_texmfdistdir}/doc/latex/iitem/iitem.pdf
#- source
%doc %{_texmfdistdir}/source/latex/iitem/iitem.dtx
%doc %{_texmfdistdir}/source/latex/iitem/iitem.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18638 |21mr|texlive-ijmart-1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20276
# category Package
# catalog-ctan /macros/latex/contrib/ijmart
# catalog-date 2010-10-30 13:33:19 +0200
# catalog-license lppl
# catalog-version 1.7
Name:		texlive-ijmart
Version:	1.7
Release:	7
Summary:	LaTeX Class for the Israel Journal of Mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ijmart
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ijmart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ijmart.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ijmart.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Israel Journal of Mathematics is published by The Hebrew
University Magnes Press. This class provides LaTeX support for
its authors and editors. It strives to achieve the distinct
"look and feel" of the journal, while having the interface
similar to that of the amsart document class. This will help
authors already familiar with amsart to easily submit
manuscripts for The Israel Journal of Mathematics or to put the
preprints in arXiv with minimal changes in the LaTeX source.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/ijmart/ijmart.bst
%{_texmfdistdir}/tex/latex/ijmart/ijmart.cls
%doc %{_texmfdistdir}/doc/latex/ijmart/Makefile
%doc %{_texmfdistdir}/doc/latex/ijmart/README
%doc %{_texmfdistdir}/doc/latex/ijmart/ijmart.bib
%doc %{_texmfdistdir}/doc/latex/ijmart/ijmart.pdf
%doc %{_texmfdistdir}/doc/latex/ijmart/ijmsample.bib
%doc %{_texmfdistdir}/doc/latex/ijmart/ijmsample.pdf
%doc %{_texmfdistdir}/doc/latex/ijmart/ijmsample.tex
#- source
%doc %{_texmfdistdir}/source/latex/ijmart/ijmart.dtx
%doc %{_texmfdistdir}/source/latex/ijmart/ijmart.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18639 |21mr|texlive-imac-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-imac
Version:	20190228
Release:	1
Summary:	International Modal Analysis Conference format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/imac
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imac.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of files for producing correctly formatted documents for
the International Modal Analysis Conference. The bundle
provides a LaTeX package and a BibTeX style file.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/imac
%{_texmfdistdir}/tex/latex/imac
%doc %{_texmfdistdir}/doc/latex/imac

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18640 |21mr|texlive-image-gallery-1.0j-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-image-gallery
Version:	1.0j
Release:	2
Summary:	Create an overview of pictures from a digital camera or from other sources
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/image-gallery
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/image-gallery.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/image-gallery.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class may be used to create an overview of pictures from a
digital camera or from other sources. It is possible to adjust
the size of the pictures and all the margins. The example file
shows the usage.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/image-gallery/image-gallery.cls
%doc %{_texmfdistdir}/doc/latex/image-gallery/README
%doc %{_texmfdistdir}/doc/latex/image-gallery/gallery-example.pdf
%doc %{_texmfdistdir}/doc/latex/image-gallery/gallery-example.tex
%doc %{_texmfdistdir}/doc/latex/image-gallery/mypics.txt
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic001.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic002.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic003.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic004.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic005.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic006.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic007.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic008.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic009.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic010.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic011.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic012.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic013.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic014.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic015.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic016.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic017.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic018.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic019.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic020.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic021.jpg
%doc %{_texmfdistdir}/doc/latex/image-gallery/pic022.jpg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18641 |21mr|texlive-imakeidx-1.3e-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-imakeidx
Version:	1.3e
Release:	2
Summary:	A package for producing multiple indexes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/imakeidx
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imakeidx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imakeidx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imakeidx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to produce and typeset one or more
indexes simultaneously with a document. The package is known to
work in LaTeX documents processed with pdflatex, xelatatex and
lualatex. If makeindex is used for processing the index
entries, no particular setting up is needed when TeX Live is
used. Using xindy or other programs it is necessary to enable
shell escape; shell escape is also needed if splitindex is
used.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/imakeidx
%doc %{_texmfdistdir}/doc/latex/imakeidx
#- source
%doc %{_texmfdistdir}/source/latex/imakeidx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18642 |21mr|texlive-impatient-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-impatient
Version:	20190228
Release:	1
Summary:	Free edition of the book "TeX for the Impatient"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/impatient
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/impatient.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/impatient.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This directory mirrors the canonical source of the project
which is maintaining the book "TeX for the Impatient", which is
now out of print. The book is also available in French
translation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/plain/impatient

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18643 |21mr|texlive-impatient-fr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/impatient
# catalog-date 2009-06-03 15:47:29 +0200
# catalog-license fdl
# catalog-version undef
Name:		texlive-impatient-fr
Version:	20190228
Release:	1
Summary:	Free edition of the book "TeX for the Impatient"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/impatient
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/impatient-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/impatient-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This directory mirrors the canonical source of the project
which is maintaining the book "TeX for the Impatient", which is
now out of print. The book is also available in French
translation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/plain/impatient-fr/README
%doc %{_texmfdistdir}/doc/plain/impatient-fr/config.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/eplain.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fbackm.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fbook.pdf
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fbook.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fcapsule.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fconcept.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fcopyrgh.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fdl.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/ferrors.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fexamples.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/ffrontm.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fgenops.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fmacros.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fmath.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fmodes.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fonts.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fpages.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fparas.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fpreface.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fread1st.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/ftips.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fusebook.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fusermacs.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fusingtex.tex
%doc %{_texmfdistdir}/doc/plain/impatient-fr/fxmptext.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18644 |21mr|texlive-impnattypo-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-impnattypo
Version:	1.5
Release:	1
Summary:	Support typography of l'Imprimerie Nationale FranASSaise
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/impnattypo
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/impnattypo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/impnattypo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/impnattypo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides useful macros implementing recommendations
by the French Imprimerie Nationale.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/impnattypo
%doc %{_texmfdistdir}/doc/latex/impnattypo
#- source
%doc %{_texmfdistdir}/source/latex/impnattypo

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18645 |21mr|texlive-import-5.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17361
# category Package
# catalog-ctan /macros/latex/contrib/import
# catalog-date 2010-03-09 13:05:51 +0100
# catalog-license pd
# catalog-version 5.1
Name:		texlive-import
Version:	5.1
Release:	7
Summary:	Establish input relative to a directory
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/import
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/import.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/import.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The commands \import{full_path}{file} and
\subimport{path_extension}{file} set up input through standard
LaTeX mechanisms (\input, \include and \includegraphics) to
load files relative to the \import-ed directory. There are also
\includefrom, \subincludefrom, and * variants of the commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/import/import.sty
%doc %{_texmfdistdir}/doc/latex/import/import.pdf
%doc %{_texmfdistdir}/doc/latex/import/import.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18646 |21mr|texlive-imsproc-0.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/xetex/latex/imsproc
# catalog-date 2013-04-04 12:47:47 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-imsproc
Version:	0.1
Release:	13
Summary:	Typeset IMS conference proceedings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/imsproc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imsproc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imsproc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class typesets papers for IMS (Iranian Mathematical
Society) conference proceedings. The class uses the XePersian
package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/imsproc/imsproc.cls
%doc %{_texmfdistdir}/doc/xelatex/imsproc/README
%doc %{_texmfdistdir}/doc/xelatex/imsproc/logo.JPG
%doc %{_texmfdistdir}/doc/xelatex/imsproc/sample-imsproc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18647 |21mr|texlive-imtekda-1.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17667
# category Package
# catalog-ctan /macros/latex/contrib/imtekda
# catalog-date 2010-04-03 16:55:02 +0200
# catalog-license lppl
# catalog-version 1.7
Name:		texlive-imtekda
Version:	1.7
Release:	7
Summary:	IMTEK thesis class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/imtekda
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imtekda.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imtekda.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/imtekda.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class permits typesetting of diploma, bachelor's and
master's theses for the Institute of Microsystem Technology
(IMTEK) at the University of Freiburg (Germany). The class is
based on the KOMA-Script class scrbook. Included in the
documentation is a large collection of useful tips for
typesetting theses and a list of recommended packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/imtekda/IMTEKda.cls
%doc %{_texmfdistdir}/doc/latex/imtekda/IMTEKda.pdf
%doc %{_texmfdistdir}/doc/latex/imtekda/README
%doc %{_texmfdistdir}/doc/latex/imtekda/diplarb.bib
%doc %{_texmfdistdir}/doc/latex/imtekda/diplarb.tex
%doc %{_texmfdistdir}/doc/latex/imtekda/figures/bild.eps
%doc %{_texmfdistdir}/doc/latex/imtekda/figures/bild.pdf
#- source
%doc %{_texmfdistdir}/source/latex/imtekda/IMTEKda.dtx
%doc %{_texmfdistdir}/source/latex/imtekda/IMTEKda.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18648 |21mr|texlive-incgraph-1.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28868
# category Package
# catalog-ctan /macros/latex/contrib/incgraph
# catalog-date 2013-01-17 11:27:48 +0100
# catalog-license lppl1.3
# catalog-version 1.11
Name:		texlive-incgraph
Version:	1.12
Release:	3
Summary:	Sophisticated graphics inclusion in a PDF document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/incgraph
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/incgraph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/incgraph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides tools for including graphics at the full
size of the output medium, or for creating "pages" whose size
is that of the graphic they contain. A principal use case is
documents that require inclusion of (potentially many) scans or
photographs. Bookmarking is especially supported. The tool box
has basic macros and a 'convenience' user interface that wraps
\includegraphics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/incgraph/incgraph.sty
%doc %{_texmfdistdir}/doc/latex/incgraph/CHANGES
%doc %{_texmfdistdir}/doc/latex/incgraph/README
%doc %{_texmfdistdir}/doc/latex/incgraph/exaimage-0001.png
%doc %{_texmfdistdir}/doc/latex/incgraph/exaimage-0037.png
%doc %{_texmfdistdir}/doc/latex/incgraph/exaimage-0123.png
%doc %{_texmfdistdir}/doc/latex/incgraph/example.jpg
%doc %{_texmfdistdir}/doc/latex/incgraph/incgraph-example-a.pdf
%doc %{_texmfdistdir}/doc/latex/incgraph/incgraph-example-a.tex
%doc %{_texmfdistdir}/doc/latex/incgraph/incgraph-example-b.pdf
%doc %{_texmfdistdir}/doc/latex/incgraph/incgraph-example-b.tex
%doc %{_texmfdistdir}/doc/latex/incgraph/incgraph-example-c.pdf
%doc %{_texmfdistdir}/doc/latex/incgraph/incgraph-example-c.tex
%doc %{_texmfdistdir}/doc/latex/incgraph/incgraph.pdf
%doc %{_texmfdistdir}/doc/latex/incgraph/incgraph.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18649 |21mr|texlive-inconsolata-1.121-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-inconsolata
Epoch:		1
Version:	1.121
Release:	1
Summary:	A monospaced font, with support files for use with TeX
Group:		Publishing
License:	OFL
URL:		http://www.ctan.org/tex-archive/fonts/inconsolata
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inconsolata.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inconsolata.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Inconsolata is a monospaced font designed by Raph Levien. This
package contains the font (in both Adobe Type 1 and OpenType
formats), metric files for use with TeX, and LaTeX font
definition and other relevant files.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/inconsolata/
%{_texmfdistdir}/fonts/opentype/public/inconsolata
%{_texmfdistdir}/fonts/tfm/public/inconsolata
%{_texmfdistdir}/fonts/type1/public/inconsolata
%{_texmfdistdir}/fonts/map/dvips/inconsolata
%{_texmfdistdir}/tex/latex/inconsolata
%doc %{_texmfdistdir}/doc/fonts/inconsolata

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18650 |21mr|texlive-index-4.1beta-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24099
# category Package
# catalog-ctan /macros/latex/contrib/index
# catalog-date 2008-04-20 19:53:04 +0200
# catalog-license other-free
# catalog-version 4.1beta
Name:		texlive-index
Version:	4.1beta
Release:	7
Summary:	Extended index for LaTeX including multiple indexes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/index
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/index.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/index.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/index.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a reimplementation of LaTeX's indexing macros to
provide better support for indexing. For example, it supports
multiple indexes in a single document and provides a more
robust \index command. It supplies short hand notations for the
\index command (^{word}) and a * variation of \index
(abbreviated _{word}) that prints the word being indexed, as
well as creating an index entry for it.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/index/xagsm.bst
%{_texmfdistdir}/bibtex/bst/index/xplain.bst
%{_texmfdistdir}/makeindex/index/bibref.ist
%{_texmfdistdir}/tex/latex/index/autind.sty
%{_texmfdistdir}/tex/latex/index/bibref.sty
%{_texmfdistdir}/tex/latex/index/index.sty
%doc %{_texmfdistdir}/doc/latex/index/README
%doc %{_texmfdistdir}/doc/latex/index/TODO
%doc %{_texmfdistdir}/doc/latex/index/agsmtst.tex
%doc %{_texmfdistdir}/doc/latex/index/autind.tex
%doc %{_texmfdistdir}/doc/latex/index/index.pdf
%doc %{_texmfdistdir}/doc/latex/index/plaintst.tex
%doc %{_texmfdistdir}/doc/latex/index/sample.tex
%doc %{_texmfdistdir}/doc/latex/index/test.bib
#- source
%doc %{_texmfdistdir}/source/latex/index/index.dtx
%doc %{_texmfdistdir}/source/latex/index/index.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18651 |21mr|texlive-ini-files-20231121-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ini-files
Version:	20231121
Release:	1
Summary:	Collection of model .ini files for creating TeX formats
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/generic/tex-ini-files
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-ini-files.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-ini-files.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Provides:	tex(luatexconfig.tex) = 2024
Provides:	tex(pdftexconfig.tex) = 2024
Provides:	tex-tex-ini-files = 2024
Provides:	texlive-tex-ini-files = 2024

%description
This bundle provides a collection of model .ini files for creating TeX formats.
These files are commonly used to introduced distribution-dependent
variations in formats.

They are also used to allow existing format source files to be used with
newer engines, for example to adapt the plain e-TeX source file to work
with XeTeX and LuaTeX.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/doc/generic/tex-ini-files/README.md
%{_texmfdistdir}/tex/generic/tex-ini-files/dviluatex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/luatex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/luatexconfig.tex
%{_texmfdistdir}/tex/generic/tex-ini-files/pdftexconfig.tex
%{_texmfdistdir}/tex/generic/tex-ini-files/xetex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/luatexiniconfig.tex
%{_texmfdistdir}/tex/generic/tex-ini-files/pdfxmltex.ini
%{_texmfdistdir}/tex/generic/tex-ini-files/xmltex.ini
%{_texmfdistdir}/tex/latex/tex-ini-files/dvilualatex.ini
%{_texmfdistdir}/tex/latex/tex-ini-files/latex.ini
%{_texmfdistdir}/tex/latex/tex-ini-files/lualatex.ini
%{_texmfdistdir}/tex/latex/tex-ini-files/lualatexquotejobname.lua
%{_texmfdistdir}/tex/latex/tex-ini-files/mllatex.ini
%{_texmfdistdir}/tex/latex/tex-ini-files/pdflatex.ini
%{_texmfdistdir}/tex/latex/tex-ini-files/xelatex.ini
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18652 |21mr|texlive-inlinedef-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/inlinedef
# catalog-date 2008-08-19 23:32:24 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-inlinedef
Version:	1.0
Release:	7
Summary:	Inline expansions within definitions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/inlinedef
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inlinedef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inlinedef.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inlinedef.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a macro \Inline. that precedes a \def or
\gdef. Within the definition text of an inlined definition,
keywords such as \Expand may be used to selectively inline
certain expansions at definition-time. This eases the process
of redefining macros in terms of the original definition, as
well as definitions in which the token that must be expanded is
deep within, where \expandafter would be difficult and \edef is
not suitable. Another application is as an easier version of
\aftergroup, by defining a macro in terms of expanded local
variables, then ending the group with
\expandafter\endgroup\macro.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/inlinedef/inlinedef.sty
%doc %{_texmfdistdir}/doc/latex/inlinedef/README
%doc %{_texmfdistdir}/doc/latex/inlinedef/inlinedef.pdf
%doc %{_texmfdistdir}/doc/latex/inlinedef/inlinetest.tex
#- source
%doc %{_texmfdistdir}/source/latex/inlinedef/inlinedef.dtx
%doc %{_texmfdistdir}/source/latex/inlinedef/inlinedef.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18653 |21mr|texlive-inputtrc-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28019
# category Package
# catalog-ctan /macros/latex/contrib/inputtrc
# catalog-date 2012-10-16 10:36:45 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-inputtrc
Version:	0.3
Release:	10
Summary:	Trace which file loads which
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/inputtrc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inputtrc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inputtrc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inputtrc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package produces screen/log messages of the form '<current>
INPUTTING <next>' reporting LaTeX input commands (<current> and
<next> being file names). The message is indented to reflect
the level of input nesting. Tracing may be turned on and off,
and the unit of indentation may be adjusted. The implementation
somewhat resembles those of packages FiNK and inputfile.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/inputtrc/inputtrc.RLS
%{_texmfdistdir}/tex/latex/inputtrc/inputtrc.sty
%doc %{_texmfdistdir}/doc/latex/inputtrc/README
%doc %{_texmfdistdir}/doc/latex/inputtrc/README.pdf
%doc %{_texmfdistdir}/doc/latex/inputtrc/RELEASE.txt
%doc %{_texmfdistdir}/doc/latex/inputtrc/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/inputtrc/inputtrc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/inputtrc/README.tex
%doc %{_texmfdistdir}/source/latex/inputtrc/inputtrc.tex
%doc %{_texmfdistdir}/source/latex/inputtrc/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18654 |21mr|texlive-interactiveworkbook-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-interactiveworkbook
Version:	20180303
Release:	2
Summary:	Latex-based interactive PDF on the web
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/interactiveworkbook
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interactiveworkbook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interactiveworkbook.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package interactiveworkbook gives the user the ability to
write LaTeX documents which, ultimately, create interactive
question-and-answer Portable Document Format (PDF) tutorials
meant to be used by Internet students and that, in particular,
freely use mathematical notation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/interactiveworkbook
%doc %{_texmfdistdir}/doc/latex/interactiveworkbook

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18655 |21mr|texlive-interfaces-3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21474
# category Package
# catalog-ctan /macros/latex/contrib/interfaces
# catalog-date 2011-02-19 16:41:47 +0100
# catalog-license lppl1.3
# catalog-version 3.1
Name:		texlive-interfaces
Version:	3.1
Release:	7
Summary:	Set parameters for other packages, conveniently
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/interfaces
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interfaces.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interfaces.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interfaces.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a small number of convenient macros that
access features in other frequently-used packages, or provide
interfaces to other useful facilities such as the pdfTeX
\pdfelapsedtime primitive. Most of these macros use pgfkeys to
provide a key-value syntax. The package also uses the package
scrlfile from the Koma-Script bundle (for controlled loading of
other files) and etoolbox. The package is bundled with sub-
packages containing actual interfaces: by default, the package
loads all available sub-packages, but techniques are provided
for the user to select no more than the interfaces needed for a
job.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/interfaces/interfaces-LaTeX.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-appendix.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-base.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-bookmark.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-embedfile.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-enumitem.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-environ.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-etoolbox.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-fancyhdr.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-hypbmsec.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-hyperref.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-makecell.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-marks.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-pgfkeys.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-scrlfile.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-tikz.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-titlesec.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-tocloft.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-truncate.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces-umrand.sty
%{_texmfdistdir}/tex/latex/interfaces/interfaces.sty
%doc %{_texmfdistdir}/doc/latex/interfaces/README
%doc %{_texmfdistdir}/doc/latex/interfaces/interfaces.pdf
#- source
%doc %{_texmfdistdir}/source/latex/interfaces/interfaces.drv
%doc %{_texmfdistdir}/source/latex/interfaces/interfaces.dtx
%doc %{_texmfdistdir}/source/latex/interfaces/interfaces.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18656 |21mr|texlive-interpreter-1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27232
# category Package
# catalog-ctan /macros/luatex/generic/interpreter
# catalog-date 2012-06-10 11:15:14 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-interpreter
Version:	1.2
Release:	6
Summary:	Translate input files on the fly
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/interpreter
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interpreter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/interpreter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package preprocesses input files to a Lua(La)TeX run, on
the fly. The user defines Lua regular expressions to search for
patterns and modify input lines (or entire paragraphs)
accordingly, before TeX reads the material. In this way,
documents may be prepared in a non-TeX language (e.g., some
lightweight markup language) and turned into 'proper' TeX for
processing. The source of the documentation is typed in such a
lightweight language and is thus easily readable in a text
editor (the PDF file is also available, of course); the
transformation to TeX syntax via Interpreter's functions is
explained in the documentation itself. Interpreter is
implemented using the author's gates (lua version), and works
for plain TeX and LaTeX, but not ConTeXt.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/interpreter/interpreter.lua
%{_texmfdistdir}/tex/luatex/interpreter/interpreter.sty
%{_texmfdistdir}/tex/luatex/interpreter/interpreter.tex
%doc %{_texmfdistdir}/doc/luatex/interpreter/README
%doc %{_texmfdistdir}/doc/luatex/interpreter/i-doc.lua
%doc %{_texmfdistdir}/doc/luatex/interpreter/interpreter-doc.pdf
%doc %{_texmfdistdir}/doc/luatex/interpreter/interpreter-doc.tex
%doc %{_texmfdistdir}/doc/luatex/interpreter/interpreter-doc.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18657 |21mr|texlive-intro-scientific-5th-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/intro-scientific
# catalog-date 2009-02-22 10:18:48 +0100
# catalog-license lppl
# catalog-version 5th edition
Name:		texlive-intro-scientific
Version:	5th
Release:	2
Summary:	Introducing scientific/mathematical documents using LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/intro-scientific
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/intro-scientific.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/intro-scientific.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
"Writing Scientific Documents Using LaTeX" is an article
introducing the use of LaTeX in typesetting scientific
documents. It covers the basics of creating a new LaTeX
document, special typesetting considerations, mathematical
typesetting and graphics. It also touches on bibliographic data
and BibTeX.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/intro-scientific/Makefile
%doc %{_texmfdistdir}/doc/latex/intro-scientific/README
%doc %{_texmfdistdir}/doc/latex/intro-scientific/earth-moon.pdf
%doc %{_texmfdistdir}/doc/latex/intro-scientific/scidoc.pdf
%doc %{_texmfdistdir}/doc/latex/intro-scientific/scidoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18658 |21mr|texlive-inversepath-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/inversepath
# catalog-date 2008-08-19 23:32:24 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-inversepath
Version:	0.2
Release:	7
Summary:	Calculate inverse file paths
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/inversepath
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inversepath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inversepath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/inversepath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package calculates inverse relative paths. Such things may
be useful, for example, when writing an auxiliary file to a
different directory.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/inversepath/inversepath.sty
%doc %{_texmfdistdir}/doc/latex/inversepath/README
%doc %{_texmfdistdir}/doc/latex/inversepath/inversepath.pdf
#- source
%doc %{_texmfdistdir}/source/latex/inversepath/inversepath.dtx
%doc %{_texmfdistdir}/source/latex/inversepath/inversepath.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18659 |21mr|texlive-invoice-20180303-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31579
# category Package
# catalog-ctan /macros/latex/contrib/invoice
# catalog-date 2011-10-06 12:43:40 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-invoice
Version:	20180303
Release:	3
Summary:	Generate invoices
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/invoice
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/invoice.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/invoice.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package may be used for generating invoices. The package
can deal with invisible expense items and deductions; output
may be presented in any of 10 different languages. The package
depends on the fp and calc packages for its calculations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/invoice/invoice.def
%{_texmfdistdir}/tex/latex/invoice/invoice.sty
%doc %{_texmfdistdir}/doc/latex/invoice/00README.tex
%doc %{_texmfdistdir}/doc/latex/invoice/copying
%doc %{_texmfdistdir}/doc/latex/invoice/history
%doc %{_texmfdistdir}/doc/latex/invoice/install
%doc %{_texmfdistdir}/doc/latex/invoice/invoice.pdf
%doc %{_texmfdistdir}/doc/latex/invoice/invoice.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18660 |21mr|texlive-ipaex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ipaex
Version:	20190228
Release:	1
Summary:	IPA and IPAex fonts from Information-technology Promotion Agency, Japan
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/ipaex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ipaex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ipaex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts provide fixed-width glyphs for Kana and Kanji
characters, proportional width glyphs for Western characters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/truetype/public/ipaex
%doc %{_texmfdistdir}/doc/fonts/ipaex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18661 |21mr|texlive-iso10303-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/isostds/iso10303
# catalog-date 2007-01-09 14:09:22 +0100
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-iso10303
Version:	1.5
Release:	7
Summary:	Typesetting the STEP standards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/isostds/iso10303
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iso10303.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iso10303.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iso10303.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Class and package files building on iso for typesetting the ISO
10303 (STEP) standards. Standard documents prepared using these
packages have been published by ISO.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/iso10303/aicv1.sty
%{_texmfdistdir}/tex/latex/iso10303/apendint.tex
%{_texmfdistdir}/tex/latex/iso10303/apmpspec.tex
%{_texmfdistdir}/tex/latex/iso10303/apmptbl.tex
%{_texmfdistdir}/tex/latex/iso10303/apmptempl.tex
%{_texmfdistdir}/tex/latex/iso10303/apsstempl.tex
%{_texmfdistdir}/tex/latex/iso10303/apv12.sty
%{_texmfdistdir}/tex/latex/iso10303/atsv11.sty
%{_texmfdistdir}/tex/latex/iso10303/bpfap1.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap10.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap11.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap12.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap13.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap14.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap15.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap16.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap2.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap3.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap4.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap5.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap6.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap7.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap8.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfap9.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats1.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats10.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats11.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats12.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats14.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats2.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats3.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats4.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats5.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats6.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats7.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats8.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfats9.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfir1.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfir2.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfir3.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfs1.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfs2.tex
%{_texmfdistdir}/tex/latex/iso10303/bpfs3.tex
%{_texmfdistdir}/tex/latex/iso10303/irv12.sty
%{_texmfdistdir}/tex/latex/iso10303/stepman.tex
%{_texmfdistdir}/tex/latex/iso10303/stepv13.4ht
%{_texmfdistdir}/tex/latex/iso10303/stepv13.sty
%{_texmfdistdir}/tex/latex/iso10303/stppdlst.tex
%doc %{_texmfdistdir}/doc/latex/iso10303/README
%doc %{_texmfdistdir}/doc/latex/iso10303/step4ht.pdf
%doc %{_texmfdistdir}/doc/latex/iso10303/stepe.pdf
%doc %{_texmfdistdir}/doc/latex/iso10303/stepman.pdf
#- source
%doc %{_texmfdistdir}/source/latex/iso10303/step4ht.dtx
%doc %{_texmfdistdir}/source/latex/iso10303/step4ht.ins
%doc %{_texmfdistdir}/source/latex/iso10303/stepe.dtx
%doc %{_texmfdistdir}/source/latex/iso10303/stepe.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18662 |21mr|texlive-iso-2.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/isostds/iso
# catalog-date 2007-01-09 14:09:22 +0100
# catalog-license lppl
# catalog-version 2.4
Name:		texlive-iso
Version:	2.4
Release:	7
Summary:	Generic ISO standards typesetting macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/isostds/iso
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iso.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iso.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iso.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
Generic class and package files for typesetting ISO
International Standard documents. Several standard documents
have been printed by ISO from camera-ready copy prepared using
LaTeX and these files.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/iso/iso.ist
%{_texmfdistdir}/tex/latex/iso/askincv1.sty
%{_texmfdistdir}/tex/latex/iso/iso10.clo
%{_texmfdistdir}/tex/latex/iso/iso11.clo
%{_texmfdistdir}/tex/latex/iso/iso9.clo
%{_texmfdistdir}/tex/latex/iso/isov2.4ht
%{_texmfdistdir}/tex/latex/iso/isov2.cls
%doc %{_texmfdistdir}/doc/latex/iso/README
%doc %{_texmfdistdir}/doc/latex/iso/iso4ht.pdf
%doc %{_texmfdistdir}/doc/latex/iso/isoe.pdf
%doc %{_texmfdistdir}/doc/latex/iso/isofwdbp.tex
%doc %{_texmfdistdir}/doc/latex/iso/isoman.pdf
%doc %{_texmfdistdir}/doc/latex/iso/isoman.tex
%doc %{_texmfdistdir}/doc/latex/iso/trfwd1.tex
%doc %{_texmfdistdir}/doc/latex/iso/tspasfwdbp.tex
#- source
%doc %{_texmfdistdir}/source/latex/iso/iso4ht.dtx
%doc %{_texmfdistdir}/source/latex/iso/iso4ht.ins
%doc %{_texmfdistdir}/source/latex/iso/isoe.dtx
%doc %{_texmfdistdir}/source/latex/iso/isoe.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18663 |21mr|texlive-isodate-2.28-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16613
# category Package
# catalog-ctan /macros/latex/contrib/isodate
# catalog-date 2006-12-08 14:34:19 +0100
# catalog-license lppl
# catalog-version 2.28
Name:		texlive-isodate
Version:	2.28
Release:	7
Summary:	Tune the output format of dates according to language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/isodate
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isodate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isodate.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isodate.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides ten output formats of the commands
\today, \printdate, \printdateTeX, and \daterange (partly
language dependent). Formats available are: ISO (yyyy-mm-dd),
numeric (e.g. dd.\,mm.~yyyy), short (e.g. dd.\,mm.\,yy), TeX
(yyyy/mm/dd), original (e.g. dd. mmm yyyy), short original
(e.g. dd. mmm yy), as well as numerical formats with Roman
numerals for the month. The commands \printdate and
\printdateTeX print any date. The command \daterange prints a
date range and leaves out unnecessary year or month entries.
This package supports German (old and new rules), Austrian, US
English, British English, French, Danish, Swedish, and
Norwegian.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/isodate/danish.idf
%{_texmfdistdir}/tex/latex/isodate/english.idf
%{_texmfdistdir}/tex/latex/isodate/french.idf
%{_texmfdistdir}/tex/latex/isodate/german.idf
%{_texmfdistdir}/tex/latex/isodate/isodate.sty
%{_texmfdistdir}/tex/latex/isodate/isodateo.sty
%{_texmfdistdir}/tex/latex/isodate/italian.idf
%{_texmfdistdir}/tex/latex/isodate/norsk.idf
%{_texmfdistdir}/tex/latex/isodate/swedish.idf
%doc %{_texmfdistdir}/doc/latex/isodate/ChangeLog
%doc %{_texmfdistdir}/doc/latex/isodate/README
%doc %{_texmfdistdir}/doc/latex/isodate/getversion.tex
%doc %{_texmfdistdir}/doc/latex/isodate/isodate.pdf
%doc %{_texmfdistdir}/doc/latex/isodate/isodate.xml
%doc %{_texmfdistdir}/doc/latex/isodate/isodateo.pdf
%doc %{_texmfdistdir}/doc/latex/isodate/testdate.pdf
%doc %{_texmfdistdir}/doc/latex/isodate/testdate.tex
%doc %{_texmfdistdir}/doc/latex/isodate/testisodate_without_babel.tex
#- source
%doc %{_texmfdistdir}/source/latex/isodate/Makefile
%doc %{_texmfdistdir}/source/latex/isodate/isodate.dtx
%doc %{_texmfdistdir}/source/latex/isodate/isodate.ins
%doc %{_texmfdistdir}/source/latex/isodate/isodateo.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18664 |21mr|texlive-isodoc-1.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-isodoc
Version:	1.10
Release:	2
Summary:	A LaTeX class for typesetting letters and invoices
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/isodoc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isodoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isodoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isodoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The isodoc class can be used for the preparation of letters and
invoices (and, in the future, similar documents). Documents are
set up with options, thus making the class easily adaptable to
user's wishes and extensible for other document types. The
class is based on the NTG brief class by Victor Eijkhout, which
implements the NEN1026 standard.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/isodoc
%doc %{_texmfdistdir}/doc/latex/isodoc
#- source
%doc %{_texmfdistdir}/source/latex/isodoc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18665 |21mr|texlive-isonums-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17362
# category Package
# catalog-ctan /macros/latex/contrib/isonums
# catalog-date 2010-03-09 13:05:51 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-isonums
Version:	1.0
Release:	7
Summary:	Display numbers in maths mode according to ISO 31-0
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/isonums
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isonums.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isonums.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes a quick hack to ziffer to display numbers in
maths mode according to ISO 31-0, regardless of input format
(European $1.235,7$ or Anglo-American $1,235.7$). The options
[euro, anglo] control the global input format. Default input
format is anglo. Documentation is included as comments to the
text source.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/isonums/isonums.sty
%doc %{_texmfdistdir}/doc/latex/isonums/isonums.pdf
%doc %{_texmfdistdir}/doc/latex/isonums/isonums.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18666 |21mr|texlive-isorot-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/isorot
# catalog-date 2007-01-08 13:31:52 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-isorot
Version:	20190228
Release:	1
Summary:	Rotation of document elements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/isorot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isorot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isorot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isorot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The isorot package is for rotation of document elements. It is
a combination of the lscape package and an extension of the
rotating package. The package is designed for use with the iso
class but may be used with any normal class.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/isorot/isorot.sty
%doc %{_texmfdistdir}/doc/latex/isorot/README
%doc %{_texmfdistdir}/doc/latex/isorot/rotman.pdf
%doc %{_texmfdistdir}/doc/latex/isorot/rotman.tex
#- source
%doc %{_texmfdistdir}/source/latex/isorot/isorot.dtx
%doc %{_texmfdistdir}/source/latex/isorot/isorot.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18667 |21mr|texlive-isotope-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-isotope
Version:	0.3
Release:	2
Summary:	A package for typesetting isotopes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/isotope
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isotope.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isotope.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/isotope.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a command \isotope for setting the atomic
weight and atomic number indications of isotopes. (The naive
way of doing the job with (La)TeX mathematics commands produces
an unsatisfactory result.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/isotope/isotope.sty
%doc %{_texmfdistdir}/doc/latex/isotope/README
#- source
%doc %{_texmfdistdir}/source/latex/isotope/isotope.dtx
%doc %{_texmfdistdir}/source/latex/isotope/isotope.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18668 |21mr|texlive-issuulinks-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25742
# category Package
# catalog-ctan /macros/latex/contrib/issuulinks
# catalog-date 2012-03-23 12:07:20 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-issuulinks
Version:	1.1
Release:	6
Summary:	Produce external links instead of internal ones
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/issuulinks
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/issuulinks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/issuulinks.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/issuulinks.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The PDF visualizer http://issuu.com/ISSUU is a popular service
allowing to show PDF documents "a page a time". Due to the way
it is implemented, internal links in these documents are not
allowed. Instead, they must be converted to external ones in
the form http://issuu.com/action/page?page=PAGENUMBER. The
package patches hyperref to produce external links in the
required form instead of internal links created by \ref, \cite
and other commands. Since the package redefines the internals
of hyperref, it must be loaded it AFTER hyperref.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/issuulinks/issuulinks.sty
%doc %{_texmfdistdir}/doc/latex/issuulinks/Makefile
%doc %{_texmfdistdir}/doc/latex/issuulinks/README
%doc %{_texmfdistdir}/doc/latex/issuulinks/issuulinks.pdf
%doc %{_texmfdistdir}/doc/latex/issuulinks/sample.pdf
%doc %{_texmfdistdir}/doc/latex/issuulinks/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/issuulinks/issuulinks.dtx
%doc %{_texmfdistdir}/source/latex/issuulinks/issuulinks.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18669 |21mr|texlive-itnumpar-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/itnumpar
# catalog-date 2008-08-19 23:32:24 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-itnumpar
Version:	1.0
Release:	7
Summary:	Spell numbers in words (Italian)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/itnumpar
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/itnumpar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/itnumpar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/itnumpar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sometimes we need to say "Capitolo primo" or "Capitolo uno"
instead of "Capitolo 1", that is, spelling the number in words
instead of the usual digit form. This package provides support
for spelling out numbers in Italian words, both in cardinal and
in ordinal form.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/itnumpar/itnumpar.sty
%doc %{_texmfdistdir}/doc/latex/itnumpar/README
%doc %{_texmfdistdir}/doc/latex/itnumpar/itnumpar.pdf
#- source
%doc %{_texmfdistdir}/source/latex/itnumpar/itnumpar.dtx
%doc %{_texmfdistdir}/source/latex/itnumpar/itnumpar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18670 |21mr|texlive-iwhdp-0.50-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-iwhdp
Version:	0.50
Release:	2
Summary:	Halle Institute for Economic Research (IWH) Discussion Papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/iwhdp
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iwhdp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iwhdp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The document class is for creating Discussion Papers of the
Halle Institute for Economic Research (IWH) in Halle, Germany.
The class offers options for both English and German texts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/iwhdp
%doc %{_texmfdistdir}/doc/latex/iwhdp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18671 |21mr|texlive-iwona-0.995b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19611
# category Package
# catalog-ctan /fonts/iwona
# catalog-date 2010-08-03 20:49:06 +0200
# catalog-license gfsl
# catalog-version 0.995b
Name:		texlive-iwona
Version:	0.995b
Release:	7
Summary:	A two-element sans-serif font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/iwona
License:	GFSL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iwona.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/iwona.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Iwona is a two-element sans-serif typeface. It was created as
an alternative version of the Kurier typeface, which was
designed in 1975 for a diploma in typeface design at the Warsaw
Academy of Fine Arts under the supervision of Roman
Tomaszewski. This distribution contains a significantly
extended set of characters covering the following modern
alphabets: latin (including Vietnamese), Cyrillic and Greek as
well as a number of additional symbols (including mathematical
symbols). The fonts are prepared in Type 1 and OpenType
formats. For use with TeX the following encoding files have
been prepared: T1 (ec), T2 (abc), and OT2--Cyrillic, T5
(Vietnamese), OT4, QX, texansi and nonstandard (IL2 for the
Czech fonts), as well as supporting macros and files defining
fonts for LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonab.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonabi.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonacb.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonacbi.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonach.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonachi.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonacl.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonacli.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonacm.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonacmi.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonacr.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonacri.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonah.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonahi.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonal.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonali.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonam.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonami.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonar.afm
%{_texmfdistdir}/fonts/afm/nowacki/iwona/iwonari.afm
%{_texmfdistdir}/fonts/enc/dvips/iwona/cs-iwona-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/cs-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/ec-iwona-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/ec-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/ex-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/greek-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/l7x-iwona-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/l7x-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/mi-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/qx-iwona-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/qx-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/rm-iwona-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/rm-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/sy-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/t2a-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/t2b-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/t2c-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/t5-iwona-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/t5-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/texnansi-iwona-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/texnansi-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/ts1-iwona.enc
%{_texmfdistdir}/fonts/enc/dvips/iwona/wncy-iwona.enc
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-cs.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-ec.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-ex.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-greek.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-l7x.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-mi.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-qx.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-rm.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-sy.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-t2a.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-t2b.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-t2c.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-t5.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-texnansi.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-ts1.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona-wncy.map
%{_texmfdistdir}/fonts/map/dvips/iwona/iwona.map
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/Iwona-Bold.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/Iwona-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/Iwona-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/Iwona-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCond-Bold.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCond-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCond-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCond-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCondHeavy-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCondHeavy-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCondLight-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCondLight-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCondMedium-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaCondMedium-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaHeavy-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaHeavy-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaLight-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaLight-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaMedium-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/iwona/IwonaMedium-Regular.otf
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonab-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonabi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonach-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonachi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonah-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonahi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonal-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonali-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonam-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonami-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonar-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonari-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/cs-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonab-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonabi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonach-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonachi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonah-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonahi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonal-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonali-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonam-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonami-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonar-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonari-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ec-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ex-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/greek-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonab-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonabi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonach-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonachi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonah-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonahi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonal-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonali-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonam-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonami-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonar-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonari-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/l7x-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/mi-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonab-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonabi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonach-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonachi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonah-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonahi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonal-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonali-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonam-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonami-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonar-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonari-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/qx-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonab-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonabi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonach-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonachi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonah-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonahi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonal-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonali-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonam-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonami-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonar-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonari-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/rm-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonabz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonacbz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonachz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonaclz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonacmz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonacrz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonahz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonalz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonamz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/sy-iwonarz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2a-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2b-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t2c-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonab-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonabi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonach-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonachi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonah-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonahi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonal-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonali-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonam-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonami-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonar-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonari-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/t5-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonab-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonabi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonach-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonachi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonah-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonahi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonal-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonali-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonam-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonami-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonar-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonari-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/texnansi-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/ts1-iwonari.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonab.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonabi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonacb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonacbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonach.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonachi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonacl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonacli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonacm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonacmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonacr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonacri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonah.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonahi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonal.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonali.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonam.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonami.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonar.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/iwona/wncy-iwonari.tfm
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonab.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonabi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonacb.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonacbi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonach.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonachi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonacl.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonacli.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonacm.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonacmi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonacr.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonacri.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonah.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonahi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonal.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonali.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonam.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonami.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonar.pfb
%{_texmfdistdir}/fonts/type1/nowacki/iwona/iwonari.pfb
%{_texmfdistdir}/tex/latex/iwona/il2iwona.fd
%{_texmfdistdir}/tex/latex/iwona/il2iwonac.fd
%{_texmfdistdir}/tex/latex/iwona/il2iwonal.fd
%{_texmfdistdir}/tex/latex/iwona/il2iwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/iwona.sty
%{_texmfdistdir}/tex/latex/iwona/l7xiwona.fd
%{_texmfdistdir}/tex/latex/iwona/l7xiwonac.fd
%{_texmfdistdir}/tex/latex/iwona/l7xiwonal.fd
%{_texmfdistdir}/tex/latex/iwona/l7xiwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/ly1iwona.fd
%{_texmfdistdir}/tex/latex/iwona/ly1iwonac.fd
%{_texmfdistdir}/tex/latex/iwona/ly1iwonal.fd
%{_texmfdistdir}/tex/latex/iwona/ly1iwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/omliwona.fd
%{_texmfdistdir}/tex/latex/iwona/omliwonac.fd
%{_texmfdistdir}/tex/latex/iwona/omliwonal.fd
%{_texmfdistdir}/tex/latex/iwona/omliwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/omsiwona.fd
%{_texmfdistdir}/tex/latex/iwona/omsiwonac.fd
%{_texmfdistdir}/tex/latex/iwona/omsiwonal.fd
%{_texmfdistdir}/tex/latex/iwona/omsiwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/omxiwona.fd
%{_texmfdistdir}/tex/latex/iwona/omxiwonac.fd
%{_texmfdistdir}/tex/latex/iwona/omxiwonal.fd
%{_texmfdistdir}/tex/latex/iwona/omxiwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/ot1iwona.fd
%{_texmfdistdir}/tex/latex/iwona/ot1iwonac.fd
%{_texmfdistdir}/tex/latex/iwona/ot1iwonacm.fd
%{_texmfdistdir}/tex/latex/iwona/ot1iwonal.fd
%{_texmfdistdir}/tex/latex/iwona/ot1iwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/ot1iwonalcm.fd
%{_texmfdistdir}/tex/latex/iwona/ot1iwonalm.fd
%{_texmfdistdir}/tex/latex/iwona/ot1iwonam.fd
%{_texmfdistdir}/tex/latex/iwona/ot2iwona.fd
%{_texmfdistdir}/tex/latex/iwona/ot2iwonac.fd
%{_texmfdistdir}/tex/latex/iwona/ot2iwonal.fd
%{_texmfdistdir}/tex/latex/iwona/ot2iwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/ot4iwona.fd
%{_texmfdistdir}/tex/latex/iwona/ot4iwonac.fd
%{_texmfdistdir}/tex/latex/iwona/ot4iwonal.fd
%{_texmfdistdir}/tex/latex/iwona/ot4iwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/qxiwona.fd
%{_texmfdistdir}/tex/latex/iwona/qxiwonac.fd
%{_texmfdistdir}/tex/latex/iwona/qxiwonal.fd
%{_texmfdistdir}/tex/latex/iwona/qxiwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/t1iwona.fd
%{_texmfdistdir}/tex/latex/iwona/t1iwonac.fd
%{_texmfdistdir}/tex/latex/iwona/t1iwonal.fd
%{_texmfdistdir}/tex/latex/iwona/t1iwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/t2aiwona.fd
%{_texmfdistdir}/tex/latex/iwona/t2aiwonac.fd
%{_texmfdistdir}/tex/latex/iwona/t2aiwonal.fd
%{_texmfdistdir}/tex/latex/iwona/t2aiwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/t2biwona.fd
%{_texmfdistdir}/tex/latex/iwona/t2biwonac.fd
%{_texmfdistdir}/tex/latex/iwona/t2biwonal.fd
%{_texmfdistdir}/tex/latex/iwona/t2biwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/t2ciwona.fd
%{_texmfdistdir}/tex/latex/iwona/t2ciwonac.fd
%{_texmfdistdir}/tex/latex/iwona/t2ciwonal.fd
%{_texmfdistdir}/tex/latex/iwona/t2ciwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/t5iwona.fd
%{_texmfdistdir}/tex/latex/iwona/t5iwonac.fd
%{_texmfdistdir}/tex/latex/iwona/t5iwonal.fd
%{_texmfdistdir}/tex/latex/iwona/t5iwonalc.fd
%{_texmfdistdir}/tex/latex/iwona/ts1iwona.fd
%{_texmfdistdir}/tex/latex/iwona/ts1iwonac.fd
%{_texmfdistdir}/tex/latex/iwona/ts1iwonal.fd
%{_texmfdistdir}/tex/latex/iwona/ts1iwonalc.fd
%{_texmfdistdir}/tex/plain/iwona/iwona-math.tex
%doc %{_texmfdistdir}/doc/fonts/iwona/00readme.eng
%doc %{_texmfdistdir}/doc/fonts/iwona/00readme.pol
%doc %{_texmfdistdir}/doc/fonts/iwona/GUST-FONT-LICENSE.txt
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-info-src.zip
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-info.pdf
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-latex-cyr.tex
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-latex-math.tex
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-latex-pl.tex
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-latex-t2a.tex
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-latex-t5.tex
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-mathtest.tex
%doc %{_texmfdistdir}/doc/fonts/iwona/iwona-table.tex
%doc %{_texmfdistdir}/doc/fonts/iwona/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18672 |21mr|texlive-jadetex-3.13-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33694
# category Package
# catalog-ctan /macros/jadetex/jadetex-3.13.tar.gz
# catalog-date 2012-06-23 19:46:16 +0200
# catalog-license other-free
# catalog-version 3.13
Name:		texlive-jadetex
Version:	3.13
Release:	15
Summary:	Macros supporting Jade DSSSL output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/jadetex/jadetex-3.13.tar.gz
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jadetex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jadetex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jadetex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-latex
Requires:	texlive-passivetex
Requires:	texlive-pdftex
Requires:	texlive-tex
Requires:	texlive-jadetex.bin
%rename jadetex

%description
Macro package on top of LaTeX to typeset TeX output of the Jade
DSSSL implementation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/jadetex/base/dsssl.def
%{_texmfdistdir}/tex/jadetex/base/jadetex.ini
%{_texmfdistdir}/tex/jadetex/base/jadetex.ltx
%{_texmfdistdir}/tex/jadetex/base/pdfjadetex.ini
%{_texmfdistdir}/tex/jadetex/base/uentities.sty
%{_texmfdistdir}/tex/jadetex/base/ut1omlgc.fd
%_texmf_fmtutil_d/jadetex
%doc %{_mandir}/man1/jadetex.1*
%doc %{_texmfdistdir}/doc/man/man1/jadetex.man1.pdf
%doc %{_mandir}/man1/pdfjadetex.1*
%doc %{_texmfdistdir}/doc/man/man1/pdfjadetex.man1.pdf
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/ChangeLog
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/ChangeLog-old
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/Makefile
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/demo.sgm
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/docbook.dsl
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/index.html
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/index.xml
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/index.xsl
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/jadetex.cfg
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/logo.png
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/releasenotes.dsl
%doc %{_texmfdistdir}/doc/otherformats/jadetex/base/releasenotes.xml
#- source
%doc %{_texmfdistdir}/source/jadetex/base/Makefile
%doc %{_texmfdistdir}/source/jadetex/base/jadetex.dtx
%doc %{_texmfdistdir}/source/jadetex/base/jadetex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/jadetex <<EOF
#
# from jadetex:
jadetex pdftex language.dat *jadetex.ini
pdfjadetex pdftex language.dat *pdfjadetex.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18673 |21mr|texlive-japanese-1.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30855
# category Package
# catalog-ctan /language/japanese/japanese
# catalog-date 2012-02-06 14:44:00 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-japanese
Version:	1.3
Release:	13
Summary:	A substitute for a babel package for Japanese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/japanese
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package behaves in a similar way as if you provided the
(non-existent) Japanese option to babel so that you can handle
Japanese language text in LaTeX documents. The package requires
a Japanese-enabled TeX system, such as pTeX or jTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/platex/japanese/japanese.ldf
%doc %{_texmfdistdir}/doc/platex/japanese/README
%doc %{_texmfdistdir}/doc/platex/japanese/sample.pdf
%doc %{_texmfdistdir}/doc/platex/japanese/sample.tex
#- source
%doc %{_texmfdistdir}/source/platex/japanese/japanese.dtx
%doc %{_texmfdistdir}/source/platex/japanese/japanese.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18674 |21mr|texlive-japanese-otf-1.7b6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-japanese-otf
Epoch:		1
Version:	1.7b6
Release:	2
Summary:	Advanced font selection for platex and its friends
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/japanese-otf
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese-otf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese-otf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese-otf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
The package contains pLaTeX support files and virtual fonts for
supporting a wide variety of fonts in LaTeX using the pTeX
engine.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvipdfmx/japanese-otf/otf-cktx.map
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hirakaku-w3-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hirakaku-w3-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hirakaku-w6-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hirakaku-w6-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hiramaru-w4-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hiramaru-w4-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hiramin-w3-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hiramin-w3-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hiramin-w6-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/hiramin-w6-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjgb-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjgb-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjge-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjge-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjgr-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjgr-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjmb-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjmb-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjmgr-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjmgr-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjml-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjml-v.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjmr-h.ofm
%{_texmfdistdir}/fonts/ofm/public/japanese-otf/otf-cjmr-v.ofm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgotheb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgotheb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothebn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothebn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpmgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpmgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpmgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpmgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminl-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminl-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminln-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminln-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgexpminrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgotheb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgotheb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothebn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothebn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlmgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlmgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlmgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlmgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminl-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminl-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminln-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminln-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/brsgnmlminrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcgr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidcmr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgb5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjge5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmb5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjml5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidjmr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidkmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/cidtmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgotheb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgotheb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothebn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothebn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expmgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expmgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expmgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expmgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminl-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminl-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminln-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminln-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/expminrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgotheb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgotheb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothebn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothebn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hirakaku-w3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hirakaku-w3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hirakaku-w6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hirakaku-w6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hiramaru-w4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hiramaru-w4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hiramin-w3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hiramin-w3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hiramin-w6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hiramin-w6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hmgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hmgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hmgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hmgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminl-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminl-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminln-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminln-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/hminrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgotheb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgotheb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothebn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothebn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlmgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlmgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlmgothrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlmgothrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminl-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminl-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminln-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminln-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/nmlminrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ccgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ccgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ccmr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ccmr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjgb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjgb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjge-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjge-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjmb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjmb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjmgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjmgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjml-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjml-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjmr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-cjmr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ckgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ckgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ckmr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ckmr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ctgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ctgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ctmr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ctmr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ucgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ucgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ucmr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ucmr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujge-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujge-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgen-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgen-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujgrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmbn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmbn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmgrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmgrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujml-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujml-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmln-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmln-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmrn-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ujmrn-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ukgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ukgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ukmr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-ukmr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-utgr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-utgr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-utmr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/otf-utmr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phirakakuw3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phirakakuw3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phirakakuw6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phirakakuw6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phiramaruw4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phiramaruw4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phiraminw3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phiraminw3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phiraminw6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/phiraminw6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubygothb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubygothb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubygotheb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubygotheb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubygothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubygothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubymgothr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubymgothr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubyminb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubyminb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubyminl-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubyminl-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubyminr-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/rubyminr-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcgrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfcmrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfgrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgb9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgba-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgba-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbe-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbe-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbn9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbna-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbna-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbnb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbnb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbnc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbnc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbnd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbnd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbne-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbne-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbnf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgbnf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjge9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgea-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgea-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgeb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgeb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgec-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgec-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjged-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjged-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgee-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgee-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgef-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgef-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgen9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgena-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgena-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgenb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgenb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgenc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgenc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgend-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgend-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgene-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgene-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgenf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgenf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrn9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrna-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrna-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrnb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrnb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrnc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrnc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrnd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrnd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrne-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrne-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrnf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjgrnf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmb9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmba-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmba-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbe-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbe-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbn9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbna-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbna-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbnb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbnb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbnc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbnc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbnd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbnd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbne-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbne-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbnf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmbnf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrn9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrna-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrna-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrnb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrnb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrnc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrnc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrnd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrnd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrne-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrne-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrnf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmgrnf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjml9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmla-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmla-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmld-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmld-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmle-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmle-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmln9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlna-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlna-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlnb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlnb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlnc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlnc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlnd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlnd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlne-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlne-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlnf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmlnf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrn9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrna-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrna-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrnb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrnb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrnc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrnc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrnd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrnd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrne-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrne-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrnf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfjmrnf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkgrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfkmrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utfmrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftgrf-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr0-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr0-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr1-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr1-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr2-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr2-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr3-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr3-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr4-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr4-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr5-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr5-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr6-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr6-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr7-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr7-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr8-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr8-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr9-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmr9-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmra-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmra-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmrb-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmrb-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmrc-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmrc-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmrd-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmrd-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmre-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmre-v.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmrf-h.tfm
%{_texmfdistdir}/fonts/tfm/public/japanese-otf/utftmrf-v.tfm
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothbn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothbn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgotheb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgotheb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothebn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothebn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpgothrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpmgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpmgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpmgothrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpmgothrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminbn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminbn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminl-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminl-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminln-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminln-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgexpminrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothbn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothbn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgotheb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgotheb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothebn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothebn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlgothrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlmgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlmgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlmgothrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlmgothrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminbn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminbn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminl-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminl-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminln-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminln-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/brsgnmlminrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcgr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidcmr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgb5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjge5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmb5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjml5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidjmr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidkmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/cidtmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothbn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothbn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgotheb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgotheb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothebn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothebn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expgothrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expmgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expmgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expmgothrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expmgothrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminbn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminbn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminl-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminl-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminln-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminln-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/expminrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothbn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothbn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgotheb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgotheb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothebn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothebn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlgothrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlmgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlmgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlmgothrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlmgothrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminbn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminbn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminl-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminl-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminln-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminln-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminrn-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/nmlminrn-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phirakakuw3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phirakakuw3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phirakakuw6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phirakakuw6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phiramaruw4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phiramaruw4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phiraminw3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phiraminw3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phiraminw6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/phiraminw6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubygothb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubygothb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubygotheb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubygotheb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubygothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubygothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubymgothr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubymgothr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubyminb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubyminb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubyminl-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubyminl-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubyminr-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/rubyminr-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcgrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfcmrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfgrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgb9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgba-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgba-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbe-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbe-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbn9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbna-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbna-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbnb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbnb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbnc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbnc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbnd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbnd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbne-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbne-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbnf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgbnf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjge9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgea-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgea-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgeb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgeb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgec-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgec-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjged-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjged-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgee-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgee-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgef-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgef-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgen9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgena-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgena-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgenb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgenb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgenc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgenc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgend-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgend-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgene-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgene-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgenf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgenf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrn9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrna-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrna-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrnb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrnb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrnc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrnc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrnd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrnd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrne-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrne-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrnf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjgrnf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmb9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmba-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmba-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbe-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbe-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbn9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbna-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbna-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbnb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbnb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbnc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbnc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbnd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbnd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbne-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbne-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbnf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmbnf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrn9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrna-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrna-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrnb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrnb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrnc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrnc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrnd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrnd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrne-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrne-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrnf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmgrnf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjml9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmla-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmla-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmld-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmld-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmle-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmle-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmln9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlna-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlna-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlnb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlnb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlnc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlnc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlnd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlnd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlne-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlne-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlnf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmlnf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrn9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrna-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrna-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrnb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrnb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrnc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrnc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrnd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrnd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrne-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrne-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrnf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfjmrnf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkgrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfkmrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utfmrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftgrf-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr0-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr0-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr1-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr1-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr2-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr2-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr3-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr3-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr4-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr4-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr5-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr5-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr6-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr6-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr7-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr7-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr8-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr8-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr9-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmr9-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmra-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmra-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmrb-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmrb-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmrc-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmrc-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmrd-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmrd-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmre-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmre-v.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmrf-h.vf
%{_texmfdistdir}/fonts/vf/public/japanese-otf/utftmrf-v.vf
%{_texmfdistdir}/tex/platex/japanese-otf/ajmacros.sty
%{_texmfdistdir}/tex/platex/japanese-otf/mlcid.sty
%{_texmfdistdir}/tex/platex/japanese-otf/otf-hangul.dfu
%{_texmfdistdir}/tex/platex/japanese-otf/redeffont.sty
%_texmf_updmap_d/japanese-otf
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/COPYRIGHT
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/fontmap.zip
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/otf-script-gteb.diff
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/readme.en.txt
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/readme.txt
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/test/brsgtest.tex
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/test/jis2004.tex
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/test/koreanexample.tex
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/test/otftest.tex
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/test/pkanatest.tex
%doc %{_texmfdistdir}/doc/fonts/japanese-otf/test/pkanatest2.tex
#- source
%doc %{_texmfdistdir}/source/fonts/japanese-otf/basepl/base-h.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/basepl/base-v.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/basepl/base0-h.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/basepl/base2-h.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/basepl/base2-v.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/basepl/base3-v.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/basepl/brsg-h.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/basepl/brsg-v.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/makeotf
%doc %{_texmfdistdir}/source/fonts/japanese-otf/mkjvf
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/glyphdata
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkaltutfvf.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkcidofm.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkcidvf.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkjp04tfmvf.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkmlcidvf.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkpkana.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkpropofm.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mktfm.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkutfvf.pl
%doc %{_texmfdistdir}/source/fonts/japanese-otf/script/mkvpkana.pl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/japanese-otf <<EOF
KanjiMap otf-@kanjiEmbed@.map
KanjiMap otf-cktx.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18675 |21mr|texlive-japanese-otf-uptex-0.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\((script::MakeSPList)\\)

Name:		texlive-japanese-otf-uptex
Epoch:		1
Version:	0.18
Release:	3
Summary:	Support for Japanese OTF files in upLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/japanese-otf-uptex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese-otf-uptex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese-otf-uptex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/japanese-otf-uptex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-japanese-otf

%description
The bundle offers support of the fonts in the japanese-otf
package, for use with the UpTeX distribution (version 0.20 or
later).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/ovp/public/japanese-otf-uptex
%{_texmfdistdir}/fonts/tfm/public/japanese-otf-uptex
%{_texmfdistdir}/fonts/vf/public/japanese-otf-uptex
%{_texmfdistdir}/tex/platex/japanese-otf-uptex
%doc %{_texmfdistdir}/doc/fonts/japanese-otf-uptex
#- source
%doc %{_texmfdistdir}/source/fonts/japanese-otf-uptex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18676 |21mr|texlive-jeopardy-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17757
# category Package
# catalog-ctan /macros/latex/contrib/jeopardy
# catalog-date 2010-04-14 18:01:33 +0200
# catalog-license lppl
# catalog-version 1.1a
Name:		texlive-jeopardy
Version:	1.1a
Release:	7
Summary:	Build a jeopardy game in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jeopardy
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jeopardy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jeopardy.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jeopardy.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The jeopardy package allows to build a jeopardy game with
pdfLaTeX. It is based on the jj_game class and exerquiz
package, written by D. P. Story. The author of the game can use
multichoice questions or fill-in questions. The answer for
fill-in questions is either a mathematical formula or text
string (see the documentation of exerquiz and \RespBoxMath and
\RespBoxTxt commands to learn more about the capabilities).
JavaScripts are written to record the score. If the score is
greater than a given value, a hidden string is shown. The user
should use the style with some screen presentation package,
such as web. The package is distributed with some example
games, including both 1- and 2-player games.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/jeopardy/jeopardy.cfg
%{_texmfdistdir}/tex/latex/jeopardy/jeopardy.sty
%doc %{_texmfdistdir}/doc/latex/jeopardy/README
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/aleq.jpg
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game1-two.pdf
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game1-two.tex
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game1.pdf
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game1.tex
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game1a.pdf
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game1a.tex
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game2.pdf
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game2.tex
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game2a.pdf
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game2a.tex
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game3-CZ.pdf
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game3-CZ.tex
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game3-oneplayer-CZ.pdf
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game3-oneplayer-CZ.tex
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game4.pdf
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/game4.tex
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/joke.jpg
%doc %{_texmfdistdir}/doc/latex/jeopardy/example/picture.jpg
%doc %{_texmfdistdir}/doc/latex/jeopardy/jeopardy.pdf
#- source
%doc %{_texmfdistdir}/source/latex/jeopardy/jeopardy.dtx
%doc %{_texmfdistdir}/source/latex/jeopardy/jeopardy.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18677 |21mr|texlive-jfontmaps-20140301-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33067
# category Package
# catalog-ctan /language/japanese/jfontmaps
# catalog-date 2014-03-01 10:19:34 +0100
# catalog-license other-free
# catalog-version 20140301.0
Name:		texlive-jfontmaps
Version:	20140301
Release:	6
Summary:	Font maps and configuration tools for Japanese fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/jfontmaps
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jfontmaps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jfontmaps.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jfontmaps.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-jfontmaps.bin = %{EVRD}

%description
The package offers font maps, and supporting material, that
make various Japanese fonts available to users of (u)ptex and
related programs or formats. The package does not ship any of
the fonts mentioned in the documention, but only map files for
use with dvipdfmx; the user must obtain the other fonts
separately. The first exception is that ipa and ipaex the
respective fonts a shipped as part of the TeX Live distribution
and are available for free. The other exception is that the Yu
Mincho/Gothic fonts are available to Windows and MacOSX users,
as part of their operating system distribution.

#-----------------------------------------------------------------------
%files
%{_bindir}/kanji-config-updmap
%{_bindir}/kanji-config-updmap-sys
%{_bindir}/kanji-fontmap-creator
%{_texmfdistdir}/fonts/cmap/jfontmaps/2004-H
%{_texmfdistdir}/fonts/cmap/jfontmaps/2004-V
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino-pron/otf-hiragino-pron.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino-pron/otf-up-hiragino-pron.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino-pron/ptex-hiragino-pron-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino-pron/ptex-hiragino-pron.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino-pron/uptex-hiragino-pron-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino-pron/uptex-hiragino-pron.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino/otf-hiragino.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino/otf-up-hiragino.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino/ptex-hiragino-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino/ptex-hiragino.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino/uptex-hiragino-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/hiragino/uptex-hiragino.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ipa/otf-ipa.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ipa/otf-up-ipa.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ipa/ptex-ipa.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ipa/uptex-ipa.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ipaex/otf-ipaex.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ipaex/otf-up-ipaex.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ipaex/ptex-ipaex.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ipaex/uptex-ipaex.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6/otf-kozuka-pr6.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6/otf-up-kozuka-pr6.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6/ptex-kozuka-pr6-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6/ptex-kozuka-pr6.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6/uptex-kozuka-pr6-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6/uptex-kozuka-pr6.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6n/otf-kozuka-pr6n.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6n/otf-up-kozuka-pr6n.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6n/ptex-kozuka-pr6n-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6n/ptex-kozuka-pr6n.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6n/uptex-kozuka-pr6n-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka-pr6n/uptex-kozuka-pr6n.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka/otf-kozuka.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka/otf-up-kozuka.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka/ptex-kozuka-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka/ptex-kozuka.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka/uptex-kozuka-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/kozuka/uptex-kozuka.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa-pr6n/otf-morisawa-pr6n.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa-pr6n/otf-up-morisawa-pr6n.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa-pr6n/ptex-morisawa-pr6n-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa-pr6n/ptex-morisawa-pr6n.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa-pr6n/uptex-morisawa-pr6n-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa-pr6n/uptex-morisawa-pr6n.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa/otf-morisawa.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa/otf-up-morisawa.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa/ptex-morisawa-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa/ptex-morisawa.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa/uptex-morisawa-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/morisawa/uptex-morisawa.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ms/otf-ms.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ms/otf-up-ms.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ms/ptex-ms.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/ms/uptex-ms.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/noEmbed/otf-noEmbed.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/noEmbed/otf-up-noEmbed.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/noEmbed/ptex-noEmbed-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/noEmbed/ptex-noEmbed.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/noEmbed/uptex-noEmbed-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/noEmbed/uptex-noEmbed.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-osx/otf-up-yu-osx.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-osx/otf-yu-osx.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-osx/ptex-yu-osx-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-osx/ptex-yu-osx.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-osx/uptex-yu-osx-04.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-osx/uptex-yu-osx.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-win/otf-up-yu-win.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-win/otf-yu-win.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-win/ptex-yu-win.map
%{_texmfdistdir}/fonts/map/dvipdfmx/jfontmaps/yu-win/uptex-yu-win.map
%{_texmfdistdir}/scripts/jfontmaps/kanji-config-updmap-sys.sh
%{_texmfdistdir}/scripts/jfontmaps/kanji-config-updmap.pl
%{_texmfdistdir}/scripts/jfontmaps/kanji-fontmap-creator.pl
%doc %{_texmfdistdir}/doc/fonts/jfontmaps/ChangeLog
%doc %{_texmfdistdir}/doc/fonts/jfontmaps/ChangeLog.pre-git
%doc %{_texmfdistdir}/doc/fonts/jfontmaps/README
%doc %{_texmfdistdir}/doc/fonts/jfontmaps/examples/otf-sample-04.tex
%doc %{_texmfdistdir}/doc/fonts/jfontmaps/examples/otf-sample.tex
%doc %{_texmfdistdir}/doc/fonts/jfontmaps/examples/ptex-sample.tex
%doc %{_texmfdistdir}/doc/fonts/jfontmaps/examples/series-compare.tex
#- source
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/JISX0213-2004-H
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/JISX0213-2004-V
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/README
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/cmapdec.lua
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/jis-h04-httk.pdf
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/jis-h04-httk.tex
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/jis-v04-vttk.pdf
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/jis-v04-vttk.tex
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/jisx0213-2004-8bit-std.txt
%doc %{_texmfdistdir}/source/jfontmaps/jis04cmap_exp/mk_jis_to_aj16_cid.lua
%doc %{_texmfdistdir}/source/jfontmaps/script/updmap-otf.sh
%doc %{_texmfdistdir}/source/jfontmaps/tools/mkmap.lua
%doc %{_texmfdistdir}/source/jfontmaps/tools/release.sh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/jfontmaps/kanji-config-updmap.pl kanji-config-updmap
    ln -sf %{_texmfdistdir}/scripts/jfontmaps/kanji-config-updmap-sys.sh kanji-config-updmap-sys
    ln -sf %{_texmfdistdir}/scripts/jfontmaps/kanji-fontmap-creator.pl kanji-fontmap-creator
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18678 |21mr|texlive-jknapltx-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/jknappen
# catalog-date 2006-12-15 11:08:32 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-jknapltx
Version:	20190228
Release:	1
Summary:	Miscellaneous packages by Joerg Knappen
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jknappen
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jknapltx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jknapltx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Miscellaneous macros by Jorg Knappen, including: - represent
counters in greek; - Maxwell's non-commutative division; -
latin1jk, latin2jk and latin3jk, which are their inputenc
definition files that allow verbatim input in the respective
ISO Latin codes; - blackboard bold fonts in maths; - use of
RSFS fonts in maths; - extra alignments for \parboxes; - swap
Roman and Sans fonts; - transliterate semitic languages; -
patches to make (La)TeX formulae embeddable in SGML; - use
maths "minus" in text as appropriate; - simple Young tableaux.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/jknapltx/greekctr.sty
%{_texmfdistdir}/tex/latex/jknapltx/holtpolt.sty
%{_texmfdistdir}/tex/latex/jknapltx/latin1jk.def
%{_texmfdistdir}/tex/latex/jknapltx/latin2jk.def
%{_texmfdistdir}/tex/latex/jknapltx/latin3jk.def
%{_texmfdistdir}/tex/latex/jknapltx/mathbbol.sty
%{_texmfdistdir}/tex/latex/jknapltx/mathrsfs.sty
%{_texmfdistdir}/tex/latex/jknapltx/parboxx.sty
%{_texmfdistdir}/tex/latex/jknapltx/sans.sty
%{_texmfdistdir}/tex/latex/jknapltx/semtrans.sty
%{_texmfdistdir}/tex/latex/jknapltx/sgmlcmpt.sty
%{_texmfdistdir}/tex/latex/jknapltx/smartmn.sty
%{_texmfdistdir}/tex/latex/jknapltx/tccompat.sty
%{_texmfdistdir}/tex/latex/jknapltx/ursfs.fd
%{_texmfdistdir}/tex/latex/jknapltx/ustmary.fd
%{_texmfdistdir}/tex/latex/jknapltx/young.sty
%doc %{_texmfdistdir}/doc/latex/jknapltx/00readme.txt
%doc %{_texmfdistdir}/doc/latex/jknapltx/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/jknapltx/mathbbol.rme
%doc %{_texmfdistdir}/doc/latex/jknapltx/mathrsfs.rme

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18679 |21mr|texlive-jlabels-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24858
# category Package
# catalog-ctan /macros/latex/contrib/jlabels
# catalog-date 2011-12-16 16:22:52 +0100
# catalog-license nosource
# catalog-version 2011-06-05
Name:		texlive-jlabels
Version:	20190228
Release:	1
Summary:	Make letter-sized pages of labels
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jlabels
License:	NOSOURCE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jlabels.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jlabels.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides controls for the numbers of rows and
columns.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/jlabels/jlabels.sty
%doc %{_texmfdistdir}/doc/latex/jlabels/README
%doc %{_texmfdistdir}/doc/latex/jlabels/jlabels.pdf
%doc %{_texmfdistdir}/doc/latex/jlabels/jlabels.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18680 |21mr|texlive-jmlr-1.24-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-jmlr
Version:	1.24
Release:	2
Summary:	Class files for the Journal of Machine Learning Research
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jmlr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jmlr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jmlr.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jmlr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The jmlr bundle provides a class for authors (jmlr) and a class
for production editors (jmlrbook), as well as a script
makejmlrbook The jmlrbook class may can be used to combine
articles written using the jmlr class into a book. The class
uses the combine class and the hyperref package to produce
either a colour hyperlinked book for on-line viewing or a
greyscale nonhyperlinked book for printing. The makejmlrbook
Perl script can be used to create the colour hyperlinked and
greyscale nonhyperlinked PDFs of a document using the jmlrbook
class. It can also create a set of HTML files that list the
included papers with links to their abstracts and the
individual articles as PDFs.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/jmlr
%{_texmfdistdir}/tex/latex/jmlr
%doc %{_texmfdistdir}/doc/latex/jmlr
#- source
%doc %{_texmfdistdir}/source/latex/jmlr

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18681 |21mr|texlive-jmn-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22719
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-jmn
Version:	20180303
Release:	2
Summary:	TeXLive jmn package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jmn.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive jmn package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/jmn/hans/hans-sh.afm
%{_texmfdistdir}/fonts/afm/jmn/hans/hans.afm
%{_texmfdistdir}/fonts/enc/dvips/jmn/hans.enc
%{_texmfdistdir}/fonts/map/dvips/jmn/hans.map
%{_texmfdistdir}/fonts/tfm/jmn/hans/hans-sh.tfm
%{_texmfdistdir}/fonts/tfm/jmn/hans/hans.tfm
%{_texmfdistdir}/fonts/type1/jmn/hans/hans-sh.pfb
%{_texmfdistdir}/fonts/type1/jmn/hans/hans-sh.pfm
%{_texmfdistdir}/fonts/type1/jmn/hans/hans.pfb
%{_texmfdistdir}/fonts/type1/jmn/hans/hans.pfm

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18682 |21mr|texlive-jpsj-1.2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/jpsj
# catalog-date 2007-03-14 08:57:39 +0100
# catalog-license lppl
# catalog-version 1.2.2
Name:		texlive-jpsj
Version:	1.2.2
Release:	7
Summary:	Document Class for Journal of the Physical Society of Japan
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jpsj
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jpsj.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jpsj.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive jpsj package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/jpsj/jpsj2.cls
%doc %{_texmfdistdir}/doc/latex/jpsj/dummy.eps
%doc %{_texmfdistdir}/doc/latex/jpsj/injpsj2.pdf
%doc %{_texmfdistdir}/doc/latex/jpsj/injpsj2.tex
%doc %{_texmfdistdir}/doc/latex/jpsj/template.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18683 |21mr|texlive-jsclasses-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-jsclasses
Version:	20190406
Release:	1
Summary:	Classes tailored for use with Japanese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jsclasses
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jsclasses.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jsclasses.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jsclasses.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Classes jsarticle and jsbook are provided, together with
packages okumacro, okuverb and morisawa. These classes are
designed to work under ASCII Corporation's Japanese TeX system
ptex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/platex/jsclasses
%doc %{_texmfdistdir}/doc/platex/jsclasses
#- source
%doc %{_texmfdistdir}/source/platex/jsclasses

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18684 |21mr|texlive-jura-4.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/jura
# catalog-date 2007-01-08 14:12:54 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-jura
Version:	4.3
Release:	2
Epoch:		1
Summary:	A document class for German legal texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jura
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jura.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jura.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jura.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Implements the standard layout for German term papers in law
(one-and-half linespacing, 7 cm margins, etc.). Includes
alphanum that permits alphanumeric section numbering (e.g., A.
Introduction; III. International Law).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/jura/alphanum.sty
%{_texmfdistdir}/tex/latex/jura/jura.cls
%doc %{_texmfdistdir}/doc/latex/jura/README
%doc %{_texmfdistdir}/doc/latex/jura/jura.pdf
%doc %{_texmfdistdir}/doc/latex/jura/jura2html
%doc %{_texmfdistdir}/doc/latex/jura/juratest.ltx
#- source
%doc %{_texmfdistdir}/source/latex/jura/jura.dtx
%doc %{_texmfdistdir}/source/latex/jura/jura.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18685 |21mr|texlive-juraabbrev-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/juraabbrev
# catalog-date 2007-01-08 14:12:54 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-juraabbrev
Version:	20190228
Release:	1
Summary:	Abbreviations for typesetting (German) juridical documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/juraabbrev
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/juraabbrev.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/juraabbrev.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/juraabbrev.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package should be helpful for people working on (German)
law. It helps you to handle abbreviations and creates a list of
those (pre-defined) abbreviations that have actually been used
in the document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/juraabbrev/laws.ist
%{_texmfdistdir}/tex/latex/juraabbrev/juraabbrev.4ht
%{_texmfdistdir}/tex/latex/juraabbrev/juraabbrev.sty
%doc %{_texmfdistdir}/doc/latex/juraabbrev/README
%doc %{_texmfdistdir}/doc/latex/juraabbrev/abbrevtest.tex
%doc %{_texmfdistdir}/doc/latex/juraabbrev/juraabbrev.pdf
#- source
%doc %{_texmfdistdir}/source/latex/juraabbrev/juraabbrev.dtx
%doc %{_texmfdistdir}/source/latex/juraabbrev/juraabbrev.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18686 |21mr|texlive-juramisc-0.91-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/juramisc
# catalog-date 2007-11-23 19:34:36 +0100
# catalog-license lppl
# catalog-version 0.91
Name:		texlive-juramisc
Version:	0.91
Release:	7
Summary:	Typesetting German juridical documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/juramisc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/juramisc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/juramisc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of classes for typesetting court sentences, legal
opinions, and dissertations for German lawyers. The package is
still under development.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/juramisc/jbgoe.clo
%{_texmfdistdir}/tex/latex/juramisc/jbstgallen.clo
%{_texmfdistdir}/tex/latex/juramisc/jbtrier.clo
%{_texmfdistdir}/tex/latex/juramisc/jurabase.sty
%{_texmfdistdir}/tex/latex/juramisc/jurabook.cls
%{_texmfdistdir}/tex/latex/juramisc/juraovw.cls
%{_texmfdistdir}/tex/latex/juramisc/juraurtl.cls
%doc %{_texmfdistdir}/doc/latex/juramisc/README
%doc %{_texmfdistdir}/doc/latex/juramisc/doc/jbook/jbook.dtx
%doc %{_texmfdistdir}/doc/latex/juramisc/doc/jbook/jbook.ins
%doc %{_texmfdistdir}/doc/latex/juramisc/doc/jmgerdoc.pdf
%doc %{_texmfdistdir}/doc/latex/juramisc/doc/jmgerdoc.tex
%doc %{_texmfdistdir}/doc/latex/juramisc/doc/jmgerdoc_scr.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18687 |21mr|texlive-jurarsp-0.52-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/jurarsp
# catalog-date 2007-01-08 14:12:54 +0100
# catalog-license gpl
# catalog-version 0.52
Name:		texlive-jurarsp
Version:	0.52
Release:	7
Summary:	Citations of judgements and official documents in (German) juridical documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jurarsp
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jurarsp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jurarsp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jurarsp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package should be helpful for people working on (German)
law. It (ab)uses BibTeX for citations of judgements and
official documents. For this purpose, a special BibTeX-style is
provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/jurarsp/jurarsp.bst
%{_texmfdistdir}/tex/latex/jurarsp/jurarsp.cfg
%{_texmfdistdir}/tex/latex/jurarsp/jurarsp.sty
%doc %{_texmfdistdir}/doc/latex/jurarsp/README
%doc %{_texmfdistdir}/doc/latex/jurarsp/jurarsp.pdf
%doc %{_texmfdistdir}/doc/latex/jurarsp/rsptest.bib
%doc %{_texmfdistdir}/doc/latex/jurarsp/rsptest.tex
#- source
%doc %{_texmfdistdir}/source/latex/jurarsp/jurarsp.dtx
%doc %{_texmfdistdir}/source/latex/jurarsp/jurarsp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18688 |21mr|texlive-jvlisting-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24638
# category Package
# catalog-ctan /macros/latex/contrib/jvlisting
# catalog-date 2011-11-18 01:15:46 +0100
# catalog-license lppl
# catalog-version 0.7
Name:		texlive-jvlisting
Version:	0.7
Release:	7
Summary:	A replacement for LaTeX's verbatim package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/jvlisting
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jvlisting.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jvlisting.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/jvlisting.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a LaTeX environment listing, an
alternative to the built-in verbatim environment. The listing
environment is tailored for including listings of computer
program source code into documents. The main advantages over
the original verbatim environment are: - environments
automatically fixes leading whitespace so that the environment
and program listing can be indented with the rest of the
document source, and; - listing environments may easily be
customised and extended.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/jvlisting/jvlisting.sty
%doc %{_texmfdistdir}/doc/latex/jvlisting/README
%doc %{_texmfdistdir}/doc/latex/jvlisting/examples.tex
%doc %{_texmfdistdir}/doc/latex/jvlisting/jvlisting.pdf
%doc %{_texmfdistdir}/doc/latex/jvlisting/test.tex
#- source
%doc %{_texmfdistdir}/source/latex/jvlisting/jvlisting.dtx
%doc %{_texmfdistdir}/source/latex/jvlisting/jvlisting.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18689 |21mr|texlive-kantlipsum-0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kantlipsum
Version:	0.7
Release:	2
Summary:	Generate sentences in Kant's style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/kantlipsum
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kantlipsum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kantlipsum.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kantlipsum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package spits out sentences in Kantian style; the text is
provided by the Kant generator for Python by Mark Pilgrim,
described in the book "Dive into Python". The package is
modelled on lipsum, and may be used for similar purposes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/kantlipsum
%doc %{_texmfdistdir}/doc/latex/kantlipsum
#- source
%doc %{_texmfdistdir}/source/latex/kantlipsum

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18690 |21mr|texlive-karnaugh-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21338
# category Package
# catalog-ctan /macros/latex/contrib/karnaugh
# catalog-date 2007-01-08 14:40:40 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-karnaugh
Version:	20190228
Release:	1
Summary:	Typeset Karnaugh-Veitch-maps
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/karnaugh
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/karnaugh.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/karnaugh.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Macros intended for typesetting Karnaugh-Maps and Veitch-Charts
in a simple and user-friendly way. Karnaugh-Maps and Veitch-
Charts are used to display and simplify logic functions
"manually". These macros can typeset Karnaugh-Maps and Veitch-
Charts with up to ten variables (=1024 entries).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/karnaugh/kvmacros.tex
%doc %{_texmfdistdir}/doc/latex/karnaugh/kvdoc.pdf
%doc %{_texmfdistdir}/doc/latex/karnaugh/kvdoc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18691 |21mr|texlive-kastrup-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-kastrup
Version:	20190228
Release:	1
Summary:	TeXLive kastrup package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kastrup.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kastrup.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kastrup.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive kastrup package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/kastrup/binhex.tex
%doc %{_texmfdistdir}/doc/generic/kastrup/binhex.pdf
#- source
%doc %{_texmfdistdir}/source/generic/kastrup/binhex.drv
%doc %{_texmfdistdir}/source/generic/kastrup/binhex.dtx
%doc %{_texmfdistdir}/source/generic/kastrup/binhex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18692 |21mr|texlive-kdgdocs-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24498
# category Package
# catalog-ctan /macros/latex/contrib/kdgdocs
# catalog-date 2011-11-03 00:18:47 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-kdgdocs
Version:	1.0
Release:	7
Summary:	Document classes for Karel de Grote University College
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/kdgdocs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kdgdocs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kdgdocs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kdgdocs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides two classes for usage by KdG professors and
master students: - kdgcoursetext: for writing course texts, and
- kdgmasterthesis: for writing master's theses. The bundle
replaces the original kdgcoursetext package (now removed from
the archive).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/kdgdocs/kdgcoursetext.cls
%{_texmfdistdir}/tex/latex/kdgdocs/kdgmasterthesis.cls
%doc %{_texmfdistdir}/doc/latex/kdgdocs/LICENSE
%doc %{_texmfdistdir}/doc/latex/kdgdocs/README
%doc %{_texmfdistdir}/doc/latex/kdgdocs/kdg_color.eps
%doc %{_texmfdistdir}/doc/latex/kdgdocs/kdg_color.pdf
%doc %{_texmfdistdir}/doc/latex/kdgdocs/kdgcoursetext-example.pdf
%doc %{_texmfdistdir}/doc/latex/kdgdocs/kdgcoursetext-example.tex
%doc %{_texmfdistdir}/doc/latex/kdgdocs/kdgdocs.pdf
%doc %{_texmfdistdir}/doc/latex/kdgdocs/kdgmasterthesis-example.pdf
%doc %{_texmfdistdir}/doc/latex/kdgdocs/kdgmasterthesis-example.tex
%doc %{_texmfdistdir}/doc/latex/kdgdocs/manifest.txt
%doc %{_texmfdistdir}/doc/latex/kdgdocs/pi-orchid.jpg
#- source
%doc %{_texmfdistdir}/source/latex/kdgdocs/kdgdocs.dtx
%doc %{_texmfdistdir}/source/latex/kdgdocs/kdgdocs.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18693 |21mr|texlive-kerkis-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kerkis
Version:	20190228
Release:	1
Summary:	Kerkis (Greek) font family
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/kerkis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kerkis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kerkis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sans-serif Greek fonts to match the URW Bookman set (which are
distributed with Kerkis). The Kerkis font set has some support
for mathematics as well as other glyphs missing from the base
URW Bookman fonts (the URW fonts are duplicated in the
distribution). Macros are provided to use the fonts in OT1, T1
(only NG/ng glyphs missing) and LGR encodings, as well as in
mathematics; small caps and old-style number glyphs are also
available. The philosophy, and the design process, of the
Kerkis fonts is discussed in a paper in TUGboat 23(3/4), 2002.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/kerkis
%{_texmfdistdir}/fonts/enc/dvips/kerkis
%{_texmfdistdir}/fonts/map/dvips/kerkis
%{_texmfdistdir}/fonts/tfm/public/kerkis
%{_texmfdistdir}/fonts/type1/public/kerkis
%{_texmfdistdir}/fonts/vf/public/kerkis
%{_texmfdistdir}/tex/latex/kerkis
%doc %{_texmfdistdir}/doc/latex/kerkis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18694 |21mr|texlive-kerntest-1.32-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/kerntest
# catalog-date 2007-03-08 21:58:53 +0100
# catalog-license lppl
# catalog-version 1.32
Name:		texlive-kerntest
Version:	1.32
Release:	7
Summary:	Print tables and generate control files to adjust kernings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/kerntest
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kerntest.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kerntest.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kerntest.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class makes it easy to generate tables that show many
different kerning pairs of an arbitrary font, usable by LaTeX.
It shows the kerning values that are used in the the font by
default. In addition, this class enables the user to alter the
kernings and to observe the results. Kerning pairs can be
defined for groups of similar glyphs at the same time. An mtx
file is generated automatically. The mtx file may then be
loaded by fontinst to introduce the user-made kernings into the
virtual font for later use in LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/kerntest/kerntest.cls
%{_texmfdistdir}/tex/latex/kerntest/ly1mtx.clo
%{_texmfdistdir}/tex/latex/kerntest/ot1mtx.clo
%{_texmfdistdir}/tex/latex/kerntest/t1cmr-1200.fd
%{_texmfdistdir}/tex/latex/kerntest/t1mtx.clo
%{_texmfdistdir}/tex/latex/kerntest/t2amtx.clo
%{_texmfdistdir}/tex/latex/kerntest/t2bmtx.clo
%{_texmfdistdir}/tex/latex/kerntest/ts1mtx.clo
%doc %{_texmfdistdir}/doc/latex/kerntest/ChangeLog
%doc %{_texmfdistdir}/doc/latex/kerntest/README
%doc %{_texmfdistdir}/doc/latex/kerntest/ToDo
%doc %{_texmfdistdir}/doc/latex/kerntest/kerntest.pdf
%doc %{_texmfdistdir}/doc/latex/kerntest/krntst-v.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/ot1-XXX-m-n.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/schoolb.map
%doc %{_texmfdistdir}/doc/latex/kerntest/schoolb1.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/schoolb2.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/t1-9nc-m-n-1.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/t1-9nc-m-n-2.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/t1-XXX-m-n.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/t1-cmr-m-n-1200.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/t1-ptm-bx-n-example.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/t1-ptm-m-n-shortexample.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/t1-ptm-m-n.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/testschoolb.tex
%doc %{_texmfdistdir}/doc/latex/kerntest/ts1-XXX-m-n.tex
#- source
%doc %{_texmfdistdir}/source/latex/kerntest/Makefile
%doc %{_texmfdistdir}/source/latex/kerntest/kerntest.dtx
%doc %{_texmfdistdir}/source/latex/kerntest/kerntest.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18695 |21mr|texlive-keycommand-3.1415-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18042
# category Package
# catalog-ctan /macros/latex/contrib/keycommand
# catalog-date 2010-04-27 09:59:23 +0200
# catalog-license lppl
# catalog-version 3.1415
Name:		texlive-keycommand
Version:	3.1415
Release:	7
Summary:	Simple creation of commands with key-value arguments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/keycommand
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keycommand.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keycommand.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keycommand.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package (which requires e-TeX) provides a natural way to
define commands with optional keys. The package provides
\newkeycommand, \renewkeycommand, \providekeycommand,
\newkeyenvironment and \renewkeyenvironment, together with
\keycmd for a more advanced interface. The package is based on
kvsetkeys by Heiko Oberdiek.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/keycommand/keycommand.sty
%doc %{_texmfdistdir}/doc/latex/keycommand/README
%doc %{_texmfdistdir}/doc/latex/keycommand/keycommand-example.pdf
%doc %{_texmfdistdir}/doc/latex/keycommand/keycommand-example.tex
%doc %{_texmfdistdir}/doc/latex/keycommand/keycommand.pdf
#- source
%doc %{_texmfdistdir}/source/latex/keycommand/keycommand.drv
%doc %{_texmfdistdir}/source/latex/keycommand/keycommand.dtx
%doc %{_texmfdistdir}/source/latex/keycommand/keycommand.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18696 |21mr|texlive-keyreader-0.5b-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28195
# category Package
# catalog-ctan /macros/latex/contrib/keyreader
# catalog-date 2012-11-06 20:07:31 +0100
# catalog-license lppl1.3
# catalog-version 0.5b
Name:		texlive-keyreader
Version:	0.5b
Release:	10
Summary:	A robust interface to xkeyval
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/keyreader
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keyreader.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keyreader.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a robust interface to controlling keys in
xkeyval, removing some of that package's restrictions. The
package also addresses some of the issues now covered by the
author's ltxkeys package, which was assumed to be a replacement
for keyreader. Since keyreader has remained a favourite with
users, it has been reinstated.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/keyreader/keyreader.sty
%doc %{_texmfdistdir}/doc/latex/keyreader/README
%doc %{_texmfdistdir}/doc/latex/keyreader/keyreader-example1.tex
%doc %{_texmfdistdir}/doc/latex/keyreader/keyreader-guide.pdf
%doc %{_texmfdistdir}/doc/latex/keyreader/keyreader-guide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18697 |21mr|texlive-keystroke-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-keystroke
Version:	1.6
Release:	2
Summary:	Graphical representation of keys on keyboard
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/keystroke
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keystroke.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keystroke.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package which provides macros for the graphical
representation of the keys on a computer keyboard.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/keystroke/keystroke.sty
%{_texmfdistdir}/tex/latex/keystroke/keystroke_left.eps
%{_texmfdistdir}/tex/latex/keystroke/keystroke_left.pdf
%{_texmfdistdir}/tex/latex/keystroke/keystroke_middle.eps
%{_texmfdistdir}/tex/latex/keystroke/keystroke_middle.pdf
%{_texmfdistdir}/tex/latex/keystroke/keystroke_right.eps
%{_texmfdistdir}/tex/latex/keystroke/keystroke_right.pdf
%doc %{_texmfdistdir}/doc/latex/keystroke/README
%doc %{_texmfdistdir}/doc/latex/keystroke/key-test.pdf
%doc %{_texmfdistdir}/doc/latex/keystroke/key-test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18698 |21mr|texlive-keyval2e-0.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23698
# category Package
# catalog-ctan /macros/latex/contrib/keyval2e
# catalog-date 2011-08-26 11:26:23 +0200
# catalog-license lppl1.3
# catalog-version 0.0.2
Name:		texlive-keyval2e
Version:	0.0.2
Release:	7
Summary:	A lightweight and robust key-value parser
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/keyval2e
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keyval2e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/keyval2e.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides lightweight and robust facilities for
creating and managing keys. Its machinery isn't as extensive as
that of, e.g., the ltxkeys package, but it is equally robust;
ease of use and speed of processing are the design aims of the
package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/keyval2e/keyval2e.sty
%doc %{_texmfdistdir}/doc/latex/keyval2e/README
%doc %{_texmfdistdir}/doc/latex/keyval2e/keyval2e-examples.pdf
%doc %{_texmfdistdir}/doc/latex/keyval2e/keyval2e-examples.tex
%doc %{_texmfdistdir}/doc/latex/keyval2e/keyval2e-guide.pdf
%doc %{_texmfdistdir}/doc/latex/keyval2e/keyval2e-guide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18699 |21mr|texlive-kix-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kix
Version:	20190228
Release:	1
Summary:	Typeset KIX codes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/kix
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kix.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Implements KIX codes as used by the Dutch PTT for bulk mail
addressing. (Royal Mail 4 State Code.) KIX is a registered
trade mark of PTT Post Holdings B. V.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/kix
%doc %{_texmfdistdir}/doc/latex/kix

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18700 |21mr|texlive-kluwer-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kluwer
Version:	20190228
Release:	1
Summary:	TeXLive kluwer package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kluwer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kluwer.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kluwer.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive kluwer package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/kluwer
%{_texmfdistdir}/tex/latex/kluwer
%doc %{_texmfdistdir}/doc/latex/kluwer
#- source
%doc %{_texmfdistdir}/source/latex/kluwer

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18701 |21mr|texlive-knitting-3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19595
# category Package
# catalog-ctan /fonts/knitting
# catalog-date 2010-08-29 22:20:17 +0200
# catalog-license lppl1.3
# catalog-version 2.0
Name:		texlive-knitting
Version:	3.0
Release:	1
Summary:	Produce knitting charts, in Plain TeX or LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/knitting
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/knitting.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/knitting.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides symbol fonts and commands to write charted
instructions for cable and lace knitting patterns, using either
plain TeX or LaTeX. The fonts are available both as MetaFont
source and in Adobe Type 1 format.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/knitting/knitg_sc_in.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitg_sc_out.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitgg.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitgn.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitgp.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitn_sc_in.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitn_sc_out.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitnl.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitnn.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitnp.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitnr.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitw_sc_in.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitw_sc_out.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitwg.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitwn.afm
%{_texmfdistdir}/fonts/afm/public/knitting/knitwp.afm
%{_texmfdistdir}/fonts/map/dvips/knitting/knitfont.map
%{_texmfdistdir}/fonts/source/public/knitting/knit_dimens.mf
%{_texmfdistdir}/fonts/source/public/knitting/knit_grid_cables.mf
%{_texmfdistdir}/fonts/source/public/knitting/knit_nogrid_cables.mf
%{_texmfdistdir}/fonts/source/public/knitting/knit_symbols.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitg_sc_in.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitg_sc_out.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitgg.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitgn.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitgp.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitn_sc_in.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitn_sc_out.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitnl.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitnn.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitnp.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitnr.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitw_sc_in.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitw_sc_out.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitwg.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitwn.mf
%{_texmfdistdir}/fonts/source/public/knitting/knitwp.mf
%{_texmfdistdir}/fonts/tfm/public/knitting/knitg_sc_in.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitg_sc_out.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitgg.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitgn.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitgp.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitn_sc_in.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitn_sc_out.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitnl.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitnn.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitnp.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitnr.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitw_sc_in.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitw_sc_out.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitwg.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitwn.tfm
%{_texmfdistdir}/fonts/tfm/public/knitting/knitwp.tfm
%{_texmfdistdir}/fonts/type1/public/knitting/knitg_sc_in.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitg_sc_out.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitgg.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitgn.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitgp.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitn_sc_in.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitn_sc_out.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitnl.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitnn.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitnp.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitnr.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitw_sc_in.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitw_sc_out.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitwg.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitwn.pfb
%{_texmfdistdir}/fonts/type1/public/knitting/knitwp.pfb
%{_texmfdistdir}/tex/latex/knitting/knitting.sty
%{_texmfdistdir}/tex/latex/knitting/uknit.fd
%{_texmfdistdir}/tex/plain/knitting/knitting.tex
%doc %{_texmfdistdir}/doc/fonts/knitting/README
%doc %{_texmfdistdir}/doc/fonts/knitting/knitexamples.tex
%doc %{_texmfdistdir}/doc/fonts/knitting/knitkey.tex
%doc %{_texmfdistdir}/doc/fonts/knitting/knitting-doc.pdf
%doc %{_texmfdistdir}/doc/fonts/knitting/knitting-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18702 |21mr|texlive-knittingpattern-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17205
# category Package
# catalog-ctan /macros/latex/contrib/knittingpattern
# catalog-date 2010-03-09 13:13:30 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-knittingpattern
Version:	20190228
Release:	1
Summary:	Create knitting patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/knittingpattern
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/knittingpattern.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/knittingpattern.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides a simple, effective method for knitters to
produce high-quality, attractive patterns using LaTeX. It does
this by providing commands to handle as much of the layout of
the document as possible, leaving the author free to
concentrate on the pattern.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/knittingpattern/knittingpattern.cls
%doc %{_texmfdistdir}/doc/latex/knittingpattern/README
%doc %{_texmfdistdir}/doc/latex/knittingpattern/introduction.pdf
%doc %{_texmfdistdir}/doc/latex/knittingpattern/introduction.tex
%doc %{_texmfdistdir}/doc/latex/knittingpattern/lion.png
%doc %{_texmfdistdir}/doc/latex/knittingpattern/template.pdf
%doc %{_texmfdistdir}/doc/latex/knittingpattern/template.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18703 |21mr|texlive-knuth-20210227-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-knuth
Version:	20210227
Release:	1
Summary:	Knuth's published errata
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/knuth/dist/errata
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/knuth.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/knuth.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/knuth.source.tar.xz
Source3:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/knuth-lib.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-metafont.bin
Requires:	texlive-mfware.bin
Provides:	tex-knuth-lib = 2024
Provides:	tex(manmac.tex) = 2024
Provides:	tex(mftmac.tex) = 2024
Provides:	tex(null.tex) = 2024
Provides:	tex(story.tex) = 2024
Provides:	tex(testfont.tex) = 2024
Provides:	tex(webmac.tex) = 2024

%description
These files are details of problems reported in the 'Computers
and Typesetting' series of books, for the Computer Modern
fonts, and for TeX, MetaFont and related programs.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/knuth-lib
%{_texmfdistdir}/fonts/tfm/public/knuth-lib
%{_texmfdistdir}/tex/generic/knuth-lib
%{_texmfdistdir}/tex/plain/knuth-lib
%{_tlpkgdir}/tlpobj/*
%doc %{_texmfdistdir}/doc/generic/knuth
#- source
%doc %{_texmfdistdir}/source/generic/knuth

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2 -a3

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex fonts doc source %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_tlpkgdir}
cp -fpar tlpkg/* %{buildroot}%{_tlpkgdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18704 |21mr|texlive-koma-moderncvclassic-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-koma-moderncvclassic
Version:	0.5
Release:	3
Summary:	An imitation of the moderncv class with the classic style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/koma-moderncvclassic
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/koma-moderncvclassic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/koma-moderncvclassic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides an imitation of the moderncv class with
the classic style (by Xavier Danaux), to be used in conjunction
with the koma-classes. Thus it is possible to configure
pagelayout, headings etc. the way it is done in koma-classes.
Moreover, it is possible to use biblatex, while the original
moderncv-class is incompatible with biblatex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/koma-moderncvclassic/koma-moderncvclassic.sty
%doc %{_texmfdistdir}/doc/latex/koma-moderncvclassic/README
%doc %{_texmfdistdir}/doc/latex/koma-moderncvclassic/changelog
%doc %{_texmfdistdir}/doc/latex/koma-moderncvclassic/cvbasic.pdf
%doc %{_texmfdistdir}/doc/latex/koma-moderncvclassic/cvbasic.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18705 |21mr|texlive-koma-script-3.26b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-koma-script
Version:	3.26b
Release:	1
Summary:	A bundle of versatile classes and packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/koma-script.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The KOMA-Script bundle provides drop-in replacements for the
article/report/book classes with emphasis on typography and
versatility. There is also a letter class, different from all
other letter classes. The bundle also offers: - a package for
calculating type areas in the way laid down by the typographer
Jan Tschichold, - a package for easily changing and defining
page styles, - a package scrdate for getting not only the
current date but also the name of the day, and - a package
scrtime for getting the current time. All these packages may be
used not only with KOMA-Script classes but also with the
standard classes. Since every package has its own version
number, the version number quoted only refers to the version of
scrbook, scrreprt, scrartcl, scrlttr2 and typearea. These are
the main parts of the bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/doc/latex/koma-script
%{_texmfdistdir}/source/latex/koma-script
%{_texmfdistdir}/tex/latex/koma-script

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18706 |21mr|texlive-koma-script-examples-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34243
# category Package
# catalog-ctan /info/examples/KOMA-Script-5
# catalog-date 2014-05-23 11:15:36 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-koma-script-examples
Version:	20190228
Release:	1
Summary:	Examples from the KOMA-Script book
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/KOMA-Script-5
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/koma-script-examples.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/koma-script-examples.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This package contains some examples from the 5th edition of the
book >>KOMA-Script<<, >>Eine Sammlung von Klassen und Paketen
fur LaTeX2e<< by Markus Kohm, published by Lehmanns Media.
There are no further descriptions of these examples.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/koma-script-examples

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18707 |21mr|texlive-koma-script-sfs-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26137
# category Package
# catalog-ctan /macros/latex/contrib/koma-script-SFS
# catalog-date 2008-11-15 10:53:47 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-koma-script-sfs
Version:	1.0
Release:	7
Summary:	Koma-script letter class option for Finnish
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/koma-script-SFS
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/koma-script-sfs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/koma-script-sfs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A koma-script parameter set for letters on A4 paper, complying
with Finnish standards SFS 2486, 2487 and 2488; suitable for
window envelopes with window on the left size in the sizes C5,
C65, E5 and E65 (although, because the address window is
smaller, for sizes E5 and E65 the address may not fit within
the window, but ordinary 3-line address should fit).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/koma-script-sfs/SFS.lco
%doc %{_texmfdistdir}/doc/latex/koma-script-sfs/README
%doc %{_texmfdistdir}/doc/latex/koma-script-sfs/SFSesim.pdf
%doc %{_texmfdistdir}/doc/latex/koma-script-sfs/SFSesim.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18708 |21mr|texlive-kopka-20111103-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-kopka
Version:	20111103
Release:	6
Summary:	TeXLive kopka package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kopka.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kopka.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive kopka package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/a4.sty
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/readme_2
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-1.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-1a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-1b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-1c.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-1d.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-2.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-2a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-2b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-2c.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-2d.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-3.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-3a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel2/ueb2-3b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/a4.sty
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/readme_3
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-10.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-11.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-12.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-14.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-14a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-14b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-1a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-1b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-2.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-3a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-3b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-4.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-5a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-5b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-6a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-6b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-6c.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-7a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-7b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-7c.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-8.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3-9.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel3/ueb3.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/a4.sty
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/readme_4
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-1.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-10.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-11.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-12.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-13.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-14.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-15.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-16.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-17.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-18.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-19.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-2.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-20.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-21.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-22.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-3.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-4.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-5.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-6.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-7.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-8.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-9a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel4/ueb4-9b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/a4.sty
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/math.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/readme_5
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-1.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-10.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-11.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-12.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-13.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-14.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-15.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-16.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-17.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-18.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-19.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-2.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-20.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-21.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-3.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-4.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-5.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-6.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-7.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-8.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel5/ueb5-9.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/a4.sty
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/bild.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/readme_6
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-1.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-10.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-2.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-3.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-4.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-5.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-6.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-7.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-8.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel6/ueb6-9.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-1.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-10.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-11.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-12.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-2.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-3.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-4.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-5.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-6.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-7.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-8a.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-8b.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel7/ueb7-9.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/ueb8-1.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/ueb8-2.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/ueb8-3.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/ueba.aux
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/ueba.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/uebb.aux
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/uebb.tex
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/uebc.aux
%doc %{_texmfdistdir}/doc/latex/kopka/uebungen/kapitel8/uebc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18709 |21mr|texlive-kotex-oblivoir-2.1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32105
# category Package
# catalog-ctan /language/korean/kotex-oblivoir
# catalog-date 2017-02-03 07:59:43 +0100
# catalog-license lppl
# catalog-version 2.1.8
Name:		texlive-kotex-oblivoir
Version:	2.1.8
Release:	2
Summary:	A LaTeX document class for typesetting Korean documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/korean/kotex-oblivoir
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kotex-oblivoir.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kotex-oblivoir.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-memoir
Requires:	texlive-kotex-utf

%description
The class is based on memoir, and is adapted to typesetting
Korean documents. The bundle (of class and associated packages)
belongs to the ko.TeX bundle.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/10_5.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/fapapersize.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/hfontsel.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/hfontspec.nanum
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-common.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-patch.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/memhangul-ucs.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-enumerate.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-gremph.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-interword.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/memucs-setspace.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/nanumfontsel.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/ob-koreanappendix.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/ob-nokoreanappendix.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-ucs/ob-toclof.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-x/memhangul-x.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-x/memucs-interword-x.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-x/xetexko-var.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-x/xob-amssymb.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-x/xob-dotemph.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-x/xob-font.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-x/xob-hyper.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/memhangul-x/xob-paralist.sty
%{_texmfdistdir}/tex/latex/kotex-oblivoir/oblivoir-base.cls
%{_texmfdistdir}/tex/latex/kotex-oblivoir/oblivoir-xlua.cls
%{_texmfdistdir}/tex/latex/kotex-oblivoir/oblivoir.cls
%{_texmfdistdir}/tex/latex/kotex-oblivoir/xoblivoir.cls
%doc %{_texmfdistdir}/doc/latex/kotex-oblivoir/README
%doc %{_texmfdistdir}/doc/latex/kotex-oblivoir/ChangeLog
%doc %{_texmfdistdir}/doc/latex/kotex-oblivoir/doc/oblivoir-simpledoc.pdf
%doc %{_texmfdistdir}/doc/latex/kotex-oblivoir/doc/oblivoir-simpledoc.tex
%doc %{_texmfdistdir}/doc/latex/kotex-oblivoir/doc/oblivoir-test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18710 |21mr|texlive-kotex-plain-2.1.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32104
# category Package
# catalog-ctan /language/korean/kotex-plain
# catalog-date 2013-11-03 10:05:42 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-kotex-plain
Version:	2.1.1a
Release:	2
Epoch:		1
Summary:	Macros for typesetting Korean under Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/korean/kotex-plain
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kotex-plain.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kotex-plain.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for typesetting Hangul, the native
alphabet of the Korean language, using plain *TeX. Input Korean
text should be encoded in UTF-8. The package is belongs to the
ko.TeX bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/kotex-plain/hangulcweb.tex
%{_texmfdistdir}/tex/plain/kotex-plain/kotexplain.tex
%{_texmfdistdir}/tex/plain/kotex-plain/kotexutf-core.tex
%{_texmfdistdir}/tex/plain/kotex-plain/kotexutf.tex
%doc %{_texmfdistdir}/doc/plain/kotex-plain/ChangeLog
%doc %{_texmfdistdir}/doc/plain/kotex-plain/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18711 |21mr|texlive-kotex-utf-2.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kotex-utf
Version:	2.1.2
Release:	2
Summary:	Typeset Hangul, coded in UTF-8
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/korean/kotex-utf
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kotex-utf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kotex-utf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-cjk-ko

%description
The package typesets Hangul, which is the native alphabet of
the Korean language; input Korean text should be encoded in
UTF-8. The bundle (of class and associated packages) belongs to
the ko.TeX bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/kotex-utf
%doc %{_texmfdistdir}/doc/latex/kotex-utf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18712 |21mr|texlive-kotex-utils-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kotex-utils
Version:	2.1.0
Release:	2
Summary:	Utility scripts and support files for typesetting Korean
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/korean/kotex-utils
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kotex-utils.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kotex-utils.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-kotex-utf
Provides:	texlive-kotex-utils.bin = %{EVRD}

%description
The bundle provides scripts and support files for index
generation in Korean language typesetting. The files belong to
the ko.TeX bundle.

#-----------------------------------------------------------------------
%files
%{_bindir}/jamo-normalize
%{_bindir}/komkindex
%{_bindir}/ttf2kotexfont
%{_texmfdistdir}/makeindex/kotex-utils
%{_texmfdistdir}/scripts/kotex-utils
%doc %{_texmfdistdir}/doc/latex/kotex-utils

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf ../share/texmf-dist/scripts/kotex-utils/jamo-normalize.pl jamo-normalize
    ln -sf ../share/texmf-dist/scripts/kotex-utils/komkindex.pl komkindex
    ln -sf ../share/texmf-dist/scripts/kotex-utils/ttf2kotexfont.pl ttf2kotexfont
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18713 |21mr|texlive-kpathsea-20200420-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kpathsea
Version:	20200420
Release:	4
Summary:	Path searching library for TeX-related files
Group:		Publishing
URL:		http://tug.org/texlive
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kpathsea.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kpathsea.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires:	texlive-kpathsea.bin
Requires:	texlive-mfware.bin
Requires:	texlive-gsftopk.bin
%rename kpathsea

%description
Kpathsea is a library and utility programs which provide path
searching facilities for TeX file types, including the self-
locating feature required for movable installations, layered on
top of a general search mechanism. It is not distributed
separately, but rather is released and maintained as part of
the TeX live sources.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/web2c/amiga-pl.tcx
%{_texmfdistdir}/web2c/cp1250cs.tcx
%{_texmfdistdir}/web2c/cp1250pl.tcx
%{_texmfdistdir}/web2c/cp1250t1.tcx
%{_texmfdistdir}/web2c/cp227.tcx
%{_texmfdistdir}/web2c/cp852-cs.tcx
%{_texmfdistdir}/web2c/cp852-pl.tcx
%{_texmfdistdir}/web2c/cp8bit.tcx
%{_texmfdistdir}/web2c/empty.tcx
%config(noreplace) %{_texmfdistdir}/web2c/fmtutil.cnf
%{_texmfdistdir}/web2c/il1-t1.tcx
%{_texmfdistdir}/web2c/il2-cs.tcx
%{_texmfdistdir}/web2c/il2-pl.tcx
%{_texmfdistdir}/web2c/il2-t1.tcx
%{_texmfdistdir}/web2c/kam-cs.tcx
%{_texmfdistdir}/web2c/kam-t1.tcx
%{_texmfdistdir}/web2c/macce-pl.tcx
%{_texmfdistdir}/web2c/macce-t1.tcx
%{_texmfdistdir}/web2c/maz-pl.tcx
%{_texmfdistdir}/web2c/mktex.cnf
%{_texmfdistdir}/web2c/mktex.opt
%{_texmfdistdir}/web2c/mktexdir
%{_texmfdistdir}/web2c/mktexdir.opt
%{_texmfdistdir}/web2c/mktexnam
%{_texmfdistdir}/web2c/mktexnam.opt
%{_texmfdistdir}/web2c/mktexupd
%{_texmfdistdir}/web2c/natural.tcx
%{_texmfdistdir}/web2c/tcvn-t5.tcx
%{_texmfdistdir}/web2c/texmf.cnf
%{_texmfdistdir}/web2c/viscii-t5.tcx
%doc %{_texmfdistdir}/doc/info/dir
%doc %{_infodir}/kpathsea.info*
%doc %{_infodir}/tds.info*
%doc %{_infodir}/web2c.info*
%doc %{_texmfdistdir}/doc/kpathsea/kpathsea.html
%doc %{_texmfdistdir}/doc/kpathsea/kpathsea.pdf
%doc %{_mandir}/man1/kpseaccess.1*
%doc %{_texmfdistdir}/doc/man/man1/kpseaccess.man1.pdf
%doc %{_mandir}/man1/kpsereadlink.1*
%doc %{_texmfdistdir}/doc/man/man1/kpsereadlink.man1.pdf
%doc %{_mandir}/man1/kpsestat.1*
%doc %{_texmfdistdir}/doc/man/man1/kpsestat.man1.pdf
%doc %{_mandir}/man1/kpsewhich.1*
%doc %{_texmfdistdir}/doc/man/man1/kpsewhich.man1.pdf
%doc %{_texmfdistdir}/doc/web2c/web2c.html
%doc %{_texmfdistdir}/doc/web2c/web2c.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

perl -pi -e 's%^(TEXMFMAIN\s+= ).*%$1%{_texmfdistdir}%;'			  \
	 -e 's%^(TEXMFDIST\s+= ).*%$1%{_texmfdistdir}%;'		  \
	 -e 's%^(TEXMFLOCAL\s+= ).*%$1%{_texmflocaldir}%;'		  \
	 -e 's%^(TEXMFSYSVAR\s+= ).*%$1%{_texmfvardir}%;'		  \
	 -e 's%^(TEXMFSYSCONFIG\s+= ).*%$1%{_texmfconfdir}%;'		  \
	 -e 's%^(TEXMFHOME\s+= ).*%$1\$HOME/texmf%;'			  \
	 -e 's%^(TEXMFVAR\s+= ).*%$1\$HOME/.texlive2013/texmf-var%;'	  \
	 -e 's%^(TEXMFCONFIG\s+= ).*%$1\$HOME/.texlive2013/texmf-config%;'\
	 -e 's%^(OSFONTDIR\s+= ).*%$1%{_datadir}/fonts%;'		  \
	texmf-dist/web2c/texmf.cnf

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18714 |21mr|texlive-ktv-texdata-05.34-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27369
# category Package
# catalog-ctan /macros/latex/contrib/ktv-texdata
# catalog-date 2012-04-26 12:50:58 +0200
# catalog-license gpl
# catalog-version 05.34
Name:		texlive-ktv-texdata
Version:	05.34
Release:	11
Summary:	Extract subsets of documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ktv-texdata
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ktv-texdata.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ktv-texdata.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ktv-texdata.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines an exercice environment which numbers every
exercise, and a command \get to extract a collection whose
argument is a comma-separated set of exercise index numbers.
While the package was designed for teachers constructing tables
of exercises, it plainly has more general application.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ktv-texdata/ktv-buildnum.sty
%{_texmfdistdir}/tex/latex/ktv-texdata/ktv-texdata.sty
%doc %{_texmfdistdir}/doc/latex/ktv-texdata/README
%doc %{_texmfdistdir}/doc/latex/ktv-texdata/README.txt.doc
%doc %{_texmfdistdir}/doc/latex/ktv-texdata/ktv-data.tex
%doc %{_texmfdistdir}/doc/latex/ktv-texdata/ktv-test.KTVhint
%doc %{_texmfdistdir}/doc/latex/ktv-texdata/ktv-test.tex
%doc %{_texmfdistdir}/doc/latex/ktv-texdata/ktv-texdata.ktvnum
%doc %{_texmfdistdir}/doc/latex/ktv-texdata/ktv-texdata.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ktv-texdata/ktv-texdata.dtx
%doc %{_texmfdistdir}/source/latex/ktv-texdata/ktv-texdata.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18715 |21mr|texlive-kurdishlipsum-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-kurdishlipsum
Version:	1.1
Release:	1
Epoch:		1
Summary:	A 'lipsum' package for the Kurdish language
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/xetex/latex/kurdishlipsum
License:	LPPL
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/kurdishlipsum.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/kurdishlipsum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides lipsum-like facilities for the Kurdish language. 
The package gives you easy access to the Kurdish poetry 
and balladry texts of the Diwany Vafaiy, Ahmedy Xani, Naly, Mahwy,.... 
The package needs to be run under XeLaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/kurdishlipsum/kurdishlipsum.sty
%doc %{_texmfdistdir}/doc/xelatex/kurdishlipsum/README
%doc %{_texmfdistdir}/doc/xelatex/kurdishlipsum/kurdishlipsum.tex
%doc %{_texmfdistdir}/doc/xelatex/kurdishlipsum/kurdishlipsum.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18716 |21mr|texlive-kurier-0.995b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19612
# category Package
# catalog-ctan /fonts/kurier
# catalog-date 2010-08-03 20:49:06 +0200
# catalog-license gfsl
# catalog-version 0.995b
Name:		texlive-kurier
Version:	0.995b
Release:	7
Summary:	A two-element sans-serif typeface
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/kurier
License:	GFSL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kurier.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kurier.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Kurier is a two-element sans-serif typeface. It was designed
for a diploma in typeface design at the Warsaw Academy of Fine
Arts under the supervision of Roman Tomaszewski. This
distribution contains a significantly extended set of
characters covering the following modern alphabets: latin
(including Vietnamese), Cyrillic and Greek as well as a number
of additional symbols (including mathematical symbols). The
fonts are prepared in Type 1 and OpenType formats. For use with
TeX the following encoding files have been prepared: T1 (ec),
T2 (abc), and OT2--Cyrillic, T5 (Vietnamese), OT4, QX, texansi
and--nonstandard (IL2 for the Czech fonts), as well as
supporting macros and files defining fonts for LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierb.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierbi.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriercb.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriercbi.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierch.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierchi.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriercl.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriercli.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriercm.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriercmi.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriercr.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriercri.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierh.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierhi.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierl.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierli.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierm.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kuriermi.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierr.afm
%{_texmfdistdir}/fonts/afm/nowacki/kurier/kurierri.afm
%{_texmfdistdir}/fonts/enc/dvips/kurier/cs-kurier-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/cs-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/ec-kurier-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/ec-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/ex-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/greek-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/l7x-kurier-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/l7x-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/mi-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/qx-kurier-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/qx-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/rm-kurier-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/rm-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/sy-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/t2a-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/t2b-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/t2c-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/t5-kurier-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/t5-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/texnansi-kurier-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/texnansi-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/ts1-kurier.enc
%{_texmfdistdir}/fonts/enc/dvips/kurier/wncy-kurier.enc
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-cs.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-ec.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-ex.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-greek.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-l7x.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-mi.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-qx.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-rm.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-sy.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-t2a.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-t2b.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-t2c.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-t5.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-texnansi.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-ts1.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier-wncy.map
%{_texmfdistdir}/fonts/map/dvips/kurier/kurier.map
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/Kurier-Bold.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/Kurier-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/Kurier-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/Kurier-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCond-Bold.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCond-BoldItalic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCond-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCond-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCondHeavy-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCondHeavy-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCondLight-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCondLight-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCondMedium-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierCondMedium-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierHeavy-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierHeavy-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierLight-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierLight-Regular.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierMedium-Italic.otf
%{_texmfdistdir}/fonts/opentype/nowacki/kurier/KurierMedium-Regular.otf
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierch-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierchi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierh-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierhi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriermi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/cs-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierch-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierchi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierh-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierhi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriermi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ec-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ex-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/greek-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierch-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierchi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierh-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierhi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriermi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/l7x-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/mi-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierch-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierchi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierh-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierhi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriermi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/qx-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierch-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierchi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierh-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierhi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriermi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/rm-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kurierbz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kuriercbz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kurierchz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kurierclz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kuriercmz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kuriercrz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kurierhz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kurierlz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kuriermz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/sy-kurierrz.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2a-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2b-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t2c-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierch-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierchi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierh-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierhi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriermi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/t5-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercb-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercbi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierch-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierchi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercmi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierh-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierhi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierl-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierli-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierm-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriermi-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierr-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierri-sc.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/texnansi-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/ts1-kurierri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriercb.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriercbi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierch.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierchi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriercl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriercli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriercm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriercmi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriercr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriercri.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierh.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierhi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierl.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierli.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierm.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kuriermi.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierr.tfm
%{_texmfdistdir}/fonts/tfm/nowacki/kurier/wncy-kurierri.tfm
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierb.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierbi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriercb.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriercbi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierch.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierchi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriercl.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriercli.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriercm.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriercmi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriercr.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriercri.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierh.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierhi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierl.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierli.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierm.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kuriermi.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierr.pfb
%{_texmfdistdir}/fonts/type1/nowacki/kurier/kurierri.pfb
%{_texmfdistdir}/tex/latex/kurier/il2kurier.fd
%{_texmfdistdir}/tex/latex/kurier/il2kurierc.fd
%{_texmfdistdir}/tex/latex/kurier/il2kurierl.fd
%{_texmfdistdir}/tex/latex/kurier/il2kurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/kurier.sty
%{_texmfdistdir}/tex/latex/kurier/l7xkurier.fd
%{_texmfdistdir}/tex/latex/kurier/l7xkurierc.fd
%{_texmfdistdir}/tex/latex/kurier/l7xkurierl.fd
%{_texmfdistdir}/tex/latex/kurier/l7xkurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/ly1kurier.fd
%{_texmfdistdir}/tex/latex/kurier/ly1kurierc.fd
%{_texmfdistdir}/tex/latex/kurier/ly1kurierl.fd
%{_texmfdistdir}/tex/latex/kurier/ly1kurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/omlkurier.fd
%{_texmfdistdir}/tex/latex/kurier/omlkurierc.fd
%{_texmfdistdir}/tex/latex/kurier/omlkurierl.fd
%{_texmfdistdir}/tex/latex/kurier/omlkurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/omskurier.fd
%{_texmfdistdir}/tex/latex/kurier/omskurierc.fd
%{_texmfdistdir}/tex/latex/kurier/omskurierl.fd
%{_texmfdistdir}/tex/latex/kurier/omskurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/omxkurier.fd
%{_texmfdistdir}/tex/latex/kurier/omxkurierc.fd
%{_texmfdistdir}/tex/latex/kurier/omxkurierl.fd
%{_texmfdistdir}/tex/latex/kurier/omxkurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/ot1kurier.fd
%{_texmfdistdir}/tex/latex/kurier/ot1kurierc.fd
%{_texmfdistdir}/tex/latex/kurier/ot1kuriercm.fd
%{_texmfdistdir}/tex/latex/kurier/ot1kurierl.fd
%{_texmfdistdir}/tex/latex/kurier/ot1kurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/ot1kurierlcm.fd
%{_texmfdistdir}/tex/latex/kurier/ot1kurierlm.fd
%{_texmfdistdir}/tex/latex/kurier/ot1kurierm.fd
%{_texmfdistdir}/tex/latex/kurier/ot2kurier.fd
%{_texmfdistdir}/tex/latex/kurier/ot2kurierc.fd
%{_texmfdistdir}/tex/latex/kurier/ot2kurierl.fd
%{_texmfdistdir}/tex/latex/kurier/ot2kurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/ot4kurier.fd
%{_texmfdistdir}/tex/latex/kurier/ot4kurierc.fd
%{_texmfdistdir}/tex/latex/kurier/ot4kurierl.fd
%{_texmfdistdir}/tex/latex/kurier/ot4kurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/qxkurier.fd
%{_texmfdistdir}/tex/latex/kurier/qxkurierc.fd
%{_texmfdistdir}/tex/latex/kurier/qxkurierl.fd
%{_texmfdistdir}/tex/latex/kurier/qxkurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/t1kurier.fd
%{_texmfdistdir}/tex/latex/kurier/t1kurierc.fd
%{_texmfdistdir}/tex/latex/kurier/t1kurierl.fd
%{_texmfdistdir}/tex/latex/kurier/t1kurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/t2akurier.fd
%{_texmfdistdir}/tex/latex/kurier/t2akurierc.fd
%{_texmfdistdir}/tex/latex/kurier/t2akurierl.fd
%{_texmfdistdir}/tex/latex/kurier/t2akurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/t2bkurier.fd
%{_texmfdistdir}/tex/latex/kurier/t2bkurierc.fd
%{_texmfdistdir}/tex/latex/kurier/t2bkurierl.fd
%{_texmfdistdir}/tex/latex/kurier/t2bkurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/t2ckurier.fd
%{_texmfdistdir}/tex/latex/kurier/t2ckurierc.fd
%{_texmfdistdir}/tex/latex/kurier/t2ckurierl.fd
%{_texmfdistdir}/tex/latex/kurier/t2ckurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/t5kurier.fd
%{_texmfdistdir}/tex/latex/kurier/t5kurierc.fd
%{_texmfdistdir}/tex/latex/kurier/t5kurierl.fd
%{_texmfdistdir}/tex/latex/kurier/t5kurierlc.fd
%{_texmfdistdir}/tex/latex/kurier/ts1kurier.fd
%{_texmfdistdir}/tex/latex/kurier/ts1kurierc.fd
%{_texmfdistdir}/tex/latex/kurier/ts1kurierl.fd
%{_texmfdistdir}/tex/latex/kurier/ts1kurierlc.fd
%{_texmfdistdir}/tex/plain/kurier/kurier-math.tex
%doc %{_texmfdistdir}/doc/fonts/kurier/00readme.eng
%doc %{_texmfdistdir}/doc/fonts/kurier/00readme.pol
%doc %{_texmfdistdir}/doc/fonts/kurier/GUST-FONT-LICENSE.txt
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-info-src.zip
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-info.pdf
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-latex-cyr.tex
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-latex-math.tex
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-latex-pl.tex
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-latex-t2a.tex
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-latex-t5.tex
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-mathtest.tex
%doc %{_texmfdistdir}/doc/fonts/kurier/kurier-table.tex
%doc %{_texmfdistdir}/doc/fonts/kurier/manifest.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18717 |21mr|texlive-l2picfaq-1.50-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19601
# category Package
# catalog-ctan /info/l2picfaq/german
# catalog-date 2010-08-29 15:51:21 +0200
# catalog-license fdl
# catalog-version 1.50
Name:		texlive-l2picfaq
Version:	1.50
Release:	6
Summary:	LaTeX pictures "how-to" (German)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/l2picfaq/german
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2picfaq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2picfaq.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document (in German) is a collection of "how-to" notes
about LaTeX and pictures. The aim of the document is to provide
a solution, in the form of some sample code, for every problem.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/l2picfaq/README
%doc %{_texmfdistdir}/doc/latex/l2picfaq/ctanlion.pdf
%doc %{_texmfdistdir}/doc/latex/l2picfaq/gfdl.tex
%doc %{_texmfdistdir}/doc/latex/l2picfaq/l2picfaq.pdf
%doc %{_texmfdistdir}/doc/latex/l2picfaq/l2picfaq.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18718 |21mr|texlive-l2tabu-2.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24038
# category Package
# catalog-ctan /info/l2tabu/german
# catalog-date 2011-09-21 00:38:26 +0200
# catalog-license gpl
# catalog-version 2.3
Name:		texlive-l2tabu
Version:	2.4
Release:	3
Summary:	Obsolete packages and commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/l2tabu/german
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The "sins" of LaTeX users, and how to correct them. The
document provides a list of obsolete packages and commands
(this original is in German; it has been translated into
English, French, Italian and Spanish).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/l2tabu/CHANGES
%doc %{_texmfdistdir}/doc/latex/l2tabu/README
%doc %{_texmfdistdir}/doc/latex/l2tabu/l2tabu.pdf
%doc %{_texmfdistdir}/doc/latex/l2tabu/l2tabu.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18719 |21mr|texlive-l2tabu-english-1.8.5.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/l2tabu/english
# catalog-date 2008-03-16 17:19:11 +0100
# catalog-license gpl
# catalog-version 1.8.5.7
Name:		texlive-l2tabu-english
Version:	1.8.5.7
Release:	6
Summary:	English translation of "Obsolete packages and commands"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/l2tabu/english
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu-english.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu-english.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
English translation of the l2tabu practical guide to LaTeX2e by
Mark Trettin. A list of obsolete packages and commands.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/l2tabu-english/l2tabuen.pdf
%doc %{_texmfdistdir}/doc/latex/l2tabu-english/l2tabuen.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18720 |21mr|texlive-l2tabu-french-2.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31315
# category Package
# catalog-ctan /info/l2tabu/french
# catalog-date 2013-07-30 20:12:28 +0200
# catalog-license gpl
# catalog-version 2.3
Name:		texlive-l2tabu-french
Epoch:		1
Version:	2.3
Release:	10
Summary:	French translation of l2tabu
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/l2tabu/french
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu-french.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu-french.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
French translation of l2tabu.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/l2tabu-french/README
%doc %{_texmfdistdir}/doc/latex/l2tabu-french/l2tabufr.pdf
%doc %{_texmfdistdir}/doc/latex/l2tabu-french/l2tabufr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18721 |21mr|texlive-l2tabu-italian-2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-l2tabu-italian
Version:	2.3
Release:	2
Summary:	Italian Translation of Obsolete packages and commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/l2tabu/italian
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu-italian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu-italian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Italian translation of the l2tabu practical guide to LaTeX2e (a
list of obsolete packages and commands).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/l2tabu-italian

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18722 |21mr|texlive-l2tabu-spanish-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/l2tabu/spanish
# catalog-date 2008-08-22 10:50:40 +0200
# catalog-license pd
# catalog-version 1.1
Name:		texlive-l2tabu-spanish
Version:	1.1
Release:	6
Summary:	Spanish translation of "Obsolete packages and commands"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/l2tabu/spanish
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu-spanish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l2tabu-spanish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A Spanish translation of the l2tabu practical guide to LaTeX2e
by Mark Trettin. A list of obsolete packages, commands and
usages.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/l2tabu-spanish/README
%doc %{_texmfdistdir}/doc/latex/l2tabu-spanish/l2tabues.pdf
%doc %{_texmfdistdir}/doc/latex/l2tabu-spanish/l2tabues.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18723 |21mr|texlive-l3experimental-20190306-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-l3experimental
Version:	20190306
Release:	1
Summary:	Experimental LaTeX3 concepts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/l3experimental
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3experimental.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3experimental.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3experimental.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The l3experimental packages are a collection of experimental
implementations for aspects of the LaTeX3 kernel, dealing with
higher-level ideas such as the Designer Interface. Some of them
work as stand alone packages, providing new functionality, and
can be used on top of LaTeX2e with no changes to the existing
kernel. The present release includes: xgalley, which controls
boxes receiving text for typesetting. l3regex: kernel support
for regular expression search and replace operations; l3sort:
kernel support for sorting sequences, token lists or comma-
lists, according to user-specified comparison criteria; l3str:
kernel support for string manipulation; l3tl-build: kernel
support for token list building; l3tl_analysis: kernel support
for token list analysis; and xcoffins, which allows the
alignment of boxes using a series of 'handle' positions,
supplementing the simple TeX reference point. All the files of
the bundle are also available in the Subversion (SVN)
repository of the LaTeX3 Project. The bundle on CTAN is based
on a snapshot of the SVN repository on 2013-10-11.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/l3experimental
%doc %{_texmfdistdir}/doc/latex/l3experimental
#- source
%doc %{_texmfdistdir}/source/latex/l3experimental

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18724 |21mr|texlive-l3kernel-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-l3kernel
Epoch:		1
Version:	20190406
Release:	1
Summary:	LaTeX3 programming conventions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/l3kernel
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3kernel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3kernel.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3kernel.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The l3kernel bundle provides an implementation of the LaTeX3
programmers' interface, as a set of packages that run under
LaTeX 2e. The interface provides the foundation on which the
LaTeX3 kernel and other future code are built: it is an API for
TeX programmers. The packages are set up so that the LaTeX3
conventions can be used with regular LaTeX 2e packages. All the
files of the bundle are also available in the project's
Subversion (SVN) repository.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/l3kernel
%doc %{_texmfdistdir}/doc/latex/l3kernel
#- source
%doc %{_texmfdistdir}/source/latex/l3kernel

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18725 |21mr|texlive-l3packages-20190306-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-l3packages
Epoch:		1
Version:	20190306
Release:	1
Summary:	High-level LaTeX3 concepts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/l3packages
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3packages.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3packages.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/l3packages.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle holds prototype implementations of concepts for a
LaTeX designer interface, to be used with the experimental
LaTeX kernel as programming tools and kernel support. Packages
provided in this release are: l3keys2e, which makes the
facilities of the kernel module l3keys available for use by
LaTeX 2e packages; xfrac, which provides flexible split-level
fractions; xparse, which provides a high-level interface for
declaring document commands; and xtemplate, which provides a
means of defining generic functions using a key-value syntax.
All the files of the bundle are also available in the
Subversion (SVN) repository of the LaTeX3 Project. The bundle
on CTAN is based on a snapshot of the SVN repository on; it
should be used with copies of the l3kernel at SVN version 2544
or later.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/l3packages
%doc %{_texmfdistdir}/doc/latex/l3packages
#- source
%doc %{_texmfdistdir}/source/latex/l3packages

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18726 |21mr|texlive-labbook-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-labbook
Version:	20190228
Release:	1
Summary:	Typeset laboratory journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/labbook
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/labbook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/labbook.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/labbook.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class is designed to typeset laboratory journals that
contain chronologically ordered records about experiments. From
the sectioning commands, an experiment index is generated. The
class is based on the KOMA-Script class scrbook.cls. There can
be several index entries for one experiment.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/labbook
%doc %{_texmfdistdir}/doc/latex/labbook
#- source
%doc %{_texmfdistdir}/source/latex/labbook

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18727 |21mr|texlive-labels-0.13-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/labels
# catalog-date 2009-09-29 00:01:21 +0200
# catalog-license lppl1.2
# catalog-version 0.13
Name:		texlive-labels
Version:	0.13
Release:	7
Summary:	Print sheets of sticky labels
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/labels
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/labels.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/labels.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/labels.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package to print a regular grid of ragged-right labels
on a page, suitable for sheets of labels which can be fed
through a printer. Macros are provided to allow easy input of
names and addresses in a form free of TeX markup. Equally
useful is a feature for making multiple copies of a single
label, e.g., return address stickers to go with the labels.
Rows, columns, borders can all be specified to match the label
sheet being used.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/labels/labels.sty
%{_texmfdistdir}/tex/latex/labels/olabels.sty
%doc %{_texmfdistdir}/doc/latex/labels/README
%doc %{_texmfdistdir}/doc/latex/labels/labels.pdf
%doc %{_texmfdistdir}/doc/latex/labels/test/avery5162.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/badge.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/beebe.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/door.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/door209.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/names.dat
%doc %{_texmfdistdir}/doc/latex/labels/test/news.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test1.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test10.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test11.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test12.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test2.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test3.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test4.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test5.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test6.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test7.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test8.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/test9.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew1.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew10.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew11.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew12.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew13.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew2.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew3.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew4.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew5.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew6.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew7.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew8.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/testnew9.tex
%doc %{_texmfdistdir}/doc/latex/labels/test/zwekform.tex
#- source
%doc %{_texmfdistdir}/source/latex/labels/labels.dtx
%doc %{_texmfdistdir}/source/latex/labels/labels.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18728 |21mr|texlive-lambda-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lambda
Version:	20180303
Release:	2
Summary:	TeXLive lambda package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lambda.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive lambda package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lambda

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18729 |21mr|texlive-lapdf-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23806
# category Package
# catalog-ctan /macros/latex/contrib/lapdf
# catalog-date 2011-09-04 01:09:50 +0200
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-lapdf
Version:	1.1
Release:	7
Summary:	PDF drawing directly in TeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lapdf
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lapdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lapdf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to use PDF drawing primitives to
produce high quality, colored graphics. It - uses Bezier curves
(integral and rational) from degree one to seven, - allows TeX
typesetting in the graphic, - offers most of the standard math
functions, - allows plotting normal, parametric and polar
functions. The package has linear, logx, logy, logxy and polar
grids with many specs; - it can rotate, clip and do many nice
things easily - it has two looping commands for programming and
many instructive example files. The package requires pdfTeX but
otherwise only depends on the calc package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lapdf/lapdf.sty
%doc %{_texmfdistdir}/doc/latex/lapdf/README
%doc %{_texmfdistdir}/doc/latex/lapdf/arcs.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/arcs.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/bezier.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/bezier.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/bezinfo.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/bezinfo.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/buttrfly.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/buttrfly.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/cfamily.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/cfamily.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/chrysant.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/chrysant.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/circle.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/circle.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/colors.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/colors.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/conic.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/conic.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/curve.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/curve.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/curveto.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/curveto.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/cycloid.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/cycloid.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/drawing.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/drawing.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/ellipse.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/ellipse.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/fplot.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/fplot.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/geometry.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/geometry.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/grids.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/grids.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/hippo.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/hippo.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/lapdf.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/lapdf.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/licence.txt
%doc %{_texmfdistdir}/doc/latex/lapdf/line.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/line.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/polygon.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/polygon.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/polynom.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/polynom.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/pplot.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/pplot.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/preamble.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/pythagor.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/pythagor.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/qcircle.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/qcircle.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/quartic.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/quartic.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/rational.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/rational.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/rcircle.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/rcircle.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/rcurve.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/rcurve.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/recttria.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/recttria.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/roundtri.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/roundtri.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/rparams.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/rparams.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/superell.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/superell.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/tplot.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/tplot.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/trochoid.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/trochoid.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/turtle.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/turtle.tex
%doc %{_texmfdistdir}/doc/latex/lapdf/vector.pdf
%doc %{_texmfdistdir}/doc/latex/lapdf/vector.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18730 |21mr|texlive-lastpage-1.2m-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28985
# category Package
# catalog-ctan /macros/latex/contrib/lastpage
# catalog-date 2013-01-29 10:13:54 +0100
# catalog-license gpl2
# catalog-version 1.2l
Name:		texlive-lastpage
Version:	1.2m
Release:	2
Summary:	Reference last page for Page N of M type footers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lastpage
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lastpage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lastpage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lastpage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Reference the number of pages in your LaTeX document through
the introduction of a new label which can be referenced like
\pageref{LastPage} to give a reference to the last page of a
document. It is particularly useful in the page footer that
says: Page N of M.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lastpage/lastpage.sty
%{_texmfdistdir}/tex/latex/lastpage/lastpage209.sty
%doc %{_texmfdistdir}/doc/latex/lastpage/README
%doc %{_texmfdistdir}/doc/latex/lastpage/lastpage-example.pdf
%doc %{_texmfdistdir}/doc/latex/lastpage/lastpage-example.tex
%doc %{_texmfdistdir}/doc/latex/lastpage/lastpage.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lastpage/lastpage.drv
%doc %{_texmfdistdir}/source/latex/lastpage/lastpage.dtx
%doc %{_texmfdistdir}/source/latex/lastpage/lastpage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18731 |21mr|texlive-latex-20200229-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex
Version:	20200229
Release:	1
Summary:	A TeX macro package that defines LaTeX
Group:		Publishing
URL:		http://tug.org/texlive
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex.source.tar.xz
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-luatex
Requires:	texlive-pdftex
Requires:	texlive-latexconfig
Requires:	texlive-latex-fonts
BuildArch:	noarch

%description
LaTeX is a widely-used macro package for TeX, providing many
basic document formating commands extended by a wide range of
packages. It is a development of Leslie Lamport's LaTeX 2.09,
and superseded the older system in June 1994. The basic
distribution is catalogued separately, at latex-base; apart
from a large set of contributed packages and third-party
documentation (elsewhere on the archive), the distribution
includes: - a bunch of required packages, which LaTeX authors
are "entitled to assume" will be present on any system running
LaTeX; and - a minimal set of documentation detailing
differences from the 'old' version of LaTeX in the areas of
user commands, font selection and control, class and package
writing, font encodings, configuration options and modification
of LaTeX. For downloading details, see the linked catalogue
entries above.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/latex
%{_texmfdistdir}/tex/latex
%doc %{_texmfdistdir}/doc/latex
#- source
%doc %{_texmfdistdir}/source/latex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18732 |21mr|texlive-latex2e-help-texinfo-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex2e-help-texinfo
Version:	20190228
Release:	1
Summary:	Unoffical reference manual covering LaTeX2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex2e-help-texinfo
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex2e-help-texinfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex2e-help-texinfo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The manual is provided as Texinfo source (which was originally
derived from the VMS help file in the DECUS TeX distribution of
1990, with many subsequent changes). This is a collaborative
development, and details of getting involved are to be found on
the package home page. All the other formats in the
distribution are derived from the Texinfo source, as usual.

#-----------------------------------------------------------------------
%files
%doc %{_infodir}/latex2e.info*
%doc %{_texmfdistdir}/doc/latex/latex2e-help-texinfo

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18733 |21mr|texlive-latex2e-help-texinfo-spanish-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34129
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-latex2e-help-texinfo-spanish
Version:	20190228
Release:	1
Summary:	TeXLive latex2e-help-texinfo-spanish package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex2e-help-texinfo-spanish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex2e-help-texinfo-spanish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive latex2e-help-texinfo-spanish package.

#-----------------------------------------------------------------------
%files
%doc %{_infodir}/latex2e-es.info*
%doc %{_texmfdistdir}/doc/latex/latex2e-help-texinfo-spanish/latex2e-es.dbk
%doc %{_texmfdistdir}/doc/latex/latex2e-help-texinfo-spanish/latex2e-es.html
%doc %{_texmfdistdir}/doc/latex/latex2e-help-texinfo-spanish/latex2e-es.pdf
%doc %{_texmfdistdir}/doc/latex/latex2e-help-texinfo-spanish/latex2e-es.texi
%doc %{_texmfdistdir}/doc/latex/latex2e-help-texinfo-spanish/latex2e-es.txt
%doc %{_texmfdistdir}/doc/latex/latex2e-help-texinfo-spanish/latex2e-es.xml

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18734 |21mr|texlive-latex4wp-1.0.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex4wp
Version:	1.0.10
Release:	2
Summary:	A LaTeX guide specifically designed for word processor users
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex4wp
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex4wp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex4wp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
"LaTeX for Word Processor Users" is a guide that helps
converting knowledge and techniques of word processing into the
LaTeX typesetting environment. It aims at helping WP users use
LaTeX instead.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex4wp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18735 |21mr|texlive-latex4wp-it-1.0.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex4wp-it
Version:	1.0.10
Release:	2
Epoch:		1
Summary:	TeXLive latex4wp-it package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex4wp-it.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex4wp-it.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive latex4wp-it package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex4wp-it

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18736 |21mr|texlive-latex-bib-ex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25831
# category Package
# catalog-ctan /info/examples/LaTeX-Bib
# catalog-date 2012-04-02 13:07:24 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-latex-bib-ex
Version:	20190228
Release:	1
Summary:	Examples for the book Bibliografien mit LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/LaTeX-Bib
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-bib-ex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-bib-ex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The bundle provides a collection of files containing every
example in the book "Bibliografien mit LaTeX" (ISBN 978-
3865414151), by the package author.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/01-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-01-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-01-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-02-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-02-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-02-3.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-03-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-03-3.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-06-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-15.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-17.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-18.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-19.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-20.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-21.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-22.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-23.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/02-07-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-10.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-17.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-18.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-19.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-20.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-21.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-22.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-23.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-24.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-25.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-26.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-4.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-6.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-03-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-04-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-05-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-05-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-05-3.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-05-4.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-06-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-08-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-08-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-09-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-09-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-09-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-09-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-10-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-17.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-18.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-19.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-20.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-21.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-22.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-23.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-24.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/03-11-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/04-05-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/04-05-2.ltx2crop
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/04-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/05-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/06-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/06-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/06-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/06-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/06-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/06-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/06-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/06-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/08-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/README
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/UTF8.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/articles.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/bibA.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/bibB.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/bibtool.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/bibtool2.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/books.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/case.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/case2.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/crossref.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/crossref2.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/de-examples-dw.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo.lbx
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo10.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo11.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo2.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo3.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo4.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo4.bl2
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo5.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo6.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo7.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo8.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/demo9.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/easy.bst
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/examples-dw.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/examples.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/examplesA.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/examplesB.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/klassiker.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/natbib.cfg
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/philosophy-examples.bib
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/plainDemo.bst
%doc %{_texmfdistdir}/doc/latex/latex-bib-ex/vanBib.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18737 |21mr|texlive-latex-brochure-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28916
# category Package
# catalog-ctan /info/latex-brochure
# catalog-date 2013-01-22 18:02:11 +0100
# catalog-license lppl
# catalog-version 2013-01-22
Name:		texlive-latex-brochure
Version:	20190228
Release:	1
Summary:	A publicity flyer for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex-brochure
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-brochure.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-brochure.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document is designed as a publicity flyer for LaTeX, but
also serves as an interesting showcase of what LaTeX can do.
The flyer is designed for printing, double-sided, on A3 paper,
which would then be folded once.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-brochure/README
%doc %{_texmfdistdir}/doc/latex/latex-brochure/README.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure-a3folderFB.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure-a3folderIN.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure-a4.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure-ledgerfolderFB.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure-ledgerfolderIN.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure-letter.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure.bib
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure.sty
%doc %{_texmfdistdir}/doc/latex/latex-brochure/brochure.tex
%doc %{_texmfdistdir}/doc/latex/latex-brochure/build
%doc %{_texmfdistdir}/doc/latex/latex-brochure/diagram-crop.eps
%doc %{_texmfdistdir}/doc/latex/latex-brochure/diagram-crop.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/fullscreen.eps
%doc %{_texmfdistdir}/doc/latex/latex-brochure/fullscreen.png
%doc %{_texmfdistdir}/doc/latex/latex-brochure/index.html
%doc %{_texmfdistdir}/doc/latex/latex-brochure/sample-crop.eps
%doc %{_texmfdistdir}/doc/latex/latex-brochure/sample-crop.pdf
%doc %{_texmfdistdir}/doc/latex/latex-brochure/typo-degraded.eps
%doc %{_texmfdistdir}/doc/latex/latex-brochure/typo-degraded.png

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18738 |21mr|texlive-latexbug-1.0j-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexbug
Version:	1.0j
Release:	1
Summary:	Bug-classification for LaTeX related bugs
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/required/latexbug
License:	LPPL1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/latexbug.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/latexbug.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/latexbug.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is written in order to help identifying the
rightful addressee for a bug report. The LaTeX team asks that
it will be loaded in any test file that is intended to be sent
to the LaTeX bug database as part of a bug report.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/latexbug
%doc %{_texmfdistdir}/doc/latex/latexbug
#- source
%doc %{_texmfdistdir}/source/latex/latexbug

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18739 |21mr|texlive-latexcheat-1.13-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/latexcheat/latexcheat
# catalog-date 2009-04-07 08:49:48 +0200
# catalog-license lppl
# catalog-version 1.13
Name:		texlive-latexcheat
Version:	1.13
Release:	6
Summary:	A LaTeX cheat sheet
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latexcheat/latexcheat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexcheat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexcheat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A LaTeX reference sheet for writing scientific papers. Unlike
many other such sheets, this sheet does not focus on
typesetting mathematics (though it does list some symbols).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latexcheat/README
%doc %{_texmfdistdir}/doc/latex/latexcheat/latexsheet.pdf
%doc %{_texmfdistdir}/doc/latex/latexcheat/latexsheet.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18740 |21mr|texlive-latexcheat-esmx-2.00-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16664
# category Package
# catalog-ctan /info/latexcheat/latexcheat-esmx
# catalog-date 2010-01-10 00:40:15 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-latexcheat-esmx
Version:	2.00
Release:	2
Epoch:		1
Summary:	A LaTeX cheat sheet, in Spanish
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latexcheat/latexcheat-esmx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexcheat-esmx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexcheat-esmx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a translation to Spanish (Castellano) of Winston
Chang's LaTeX cheat sheet (a reference sheet for writing
scientific papers).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latexcheat-esmx/README
%doc %{_texmfdistdir}/doc/latex/latexcheat-esmx/latexsheet-esmx.pdf
%doc %{_texmfdistdir}/doc/latex/latexcheat-esmx/latexsheet-esmx.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18741 |21mr|texlive-latexcheat-ptbr-1.13-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/latexcheat/latexcheat-ptbr
# catalog-date 2009-04-10 11:30:41 +0200
# catalog-license lppl
# catalog-version 1.13
Name:		texlive-latexcheat-ptbr
Version:	1.13
Release:	6
Summary:	A LaTeX cheat sheet, in Brazilian Portuguese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latexcheat/latexcheat-ptbr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexcheat-ptbr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexcheat-ptbr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a translation to Brazilian Portuguese of Winston
Chang's LaTeX cheat sheet.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latexcheat-ptbr/README-ptbr
%doc %{_texmfdistdir}/doc/latex/latexcheat-ptbr/latexsheet-ptbr.pdf
%doc %{_texmfdistdir}/doc/latex/latexcheat-ptbr/latexsheet-ptbr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18742 |21mr|texlive-latexconfig-20200124-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latexconfig
Version:	20200124
Release:	1
Summary:	TeXLive latexconfig package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexconfig.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive latexconfig package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/latexconfig

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18743 |21mr|texlive-latex-course-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25505
# category Package
# catalog-ctan /info/latex-course
# catalog-date 2008-08-22 16:39:18 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-latex-course
Version:	20180303
Release:	2
Summary:	A LaTeX course as a projected presentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex-course
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-course.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-course.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A brief Beamer-based slide presentation on LaTeX, based on
Rupprecht's LaTeX 2.09 course, which the author has translated
to English and taken to LaTeX2e/Beamer. Additional material was
taken from the Short Introduction to LaTeX.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-course/Graphics/Ross-Siegel.png
%doc %{_texmfdistdir}/doc/latex/latex-course/Graphics/Thumbs.db
%doc %{_texmfdistdir}/doc/latex/latex-course/Graphics/campus3.png
%doc %{_texmfdistdir}/doc/latex/latex-course/LaTeX-Course.pdf
%doc %{_texmfdistdir}/doc/latex/latex-course/LaTeX-Course.tex
%doc %{_texmfdistdir}/doc/latex/latex-course/LaTeX-course.prj
%doc %{_texmfdistdir}/doc/latex/latex-course/README
%doc %{_texmfdistdir}/doc/latex/latex-course/beamercolorthemeross.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18744 |21mr|texlive-latex-doc-ptr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex-doc-ptr
Version:	20190228
Release:	1
Summary:	A direction-finder for LaTeX documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex-doc-ptr
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-doc-ptr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-doc-ptr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A two-page set of recommendations for users who need on-line
documentation of LaTeX. The document supports the need for
documentation of LaTeX itself, in distributions. For example,
it could be used in the command texdoc latex, in the TeX live
distribution.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-doc-ptr

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18745 |21mr|texlive-latexfileinfo-pkgs-0.22-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26760
# category Package
# catalog-ctan /info/latexfileinfo-pkgs
# catalog-date 2012-05-30 14:24:48 +0200
# catalog-license lppl1.3
# catalog-version 0.22
Name:		texlive-latexfileinfo-pkgs
Version:	0.22
Release:	7
Summary:	A comparison of packages showing LaTeX file information
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latexfileinfo-pkgs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexfileinfo-pkgs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexfileinfo-pkgs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexfileinfo-pkgs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an HTML file that lists and compares CTAN
packages that display LaTeX source file information from
\ProvidesClass, \ProvidesFile, and \ProvidesPackage commands in
the LaTeX file. Five packages of the author's, and several
other packages are discussed; revision control systems are
mentioned briefly.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/latexfileinfo-pkgs/latexfileinfo_pkgs.RLS
%doc %{_texmfdistdir}/doc/latex/latexfileinfo-pkgs/README
%doc %{_texmfdistdir}/doc/latex/latexfileinfo-pkgs/latexfileinfo_pkgs.htm
#- source
%doc %{_texmfdistdir}/source/latex/latexfileinfo-pkgs/SrcFILEs.txt
%doc %{_texmfdistdir}/source/latex/latexfileinfo-pkgs/latexfileinfo_pkgs.tex
%doc %{_texmfdistdir}/source/latex/latexfileinfo-pkgs/mkht_ltxfinfo_pkgs.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18746 |21mr|texlive-latex-fonts-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28888
# category Package
# catalog-ctan /fonts/latex
# catalog-date 2012-07-07 15:54:01 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-latex-fonts
Version:	20190228
Release:	1
Summary:	A collection of fonts used in LaTeX distributions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/latex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-fonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-fonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a collection of fonts for use with standard latex
packages and classes. It includes 'invisible' fonts (for use
with the slides class), line and circle fonts (for use in the
picture environment) and 'latex symbol' fonts. For full support
of a latex installation, some Computer Modern font variants
cmbsy(6-9), cmcsc(8,9), cmex(7-9) and cmmib(5-9) from the
amsfonts distribution, are also necessary. The fonts are
available as Metafont source, and metric (tfm) files are also
provided. Most of the fonts are also available in Adobe Type 1
format, in the amsfonts distribution.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/latex-fonts/circle.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/icmcsc10.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/icmex10.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/icmmi8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/icmsy8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/icmtt8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/ilasy8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/ilcmss8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/ilcmssb8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/ilcmssi8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lasy.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lasy10.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lasy5.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lasy6.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lasy7.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lasy8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lasy9.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lasyb10.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lcircle10.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lcirclew10.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lcmss8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lcmssb8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/lcmssi8.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/line.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/line10.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/linew10.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/sroman.mf
%{_texmfdistdir}/fonts/source/public/latex-fonts/sromanu.mf
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/icmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/icmex10.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/icmmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/icmsy8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/icmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/ilasy8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/ilcmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/ilcmssb8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/ilcmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lasy10.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lasy5.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lasy6.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lasy7.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lasy8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lasy9.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lasyb10.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lcircle10.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lcirclew10.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lcmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lcmssb8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/lcmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/line10.tfm
%{_texmfdistdir}/fonts/tfm/public/latex-fonts/linew10.tfm
%doc %{_texmfdistdir}/doc/fonts/latex-fonts/README
%doc %{_texmfdistdir}/doc/fonts/latex-fonts/legal.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18747 |21mr|texlive-latex-graphics-companion-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29235
# category Package
# catalog-ctan /info/examples/lgc
# catalog-date 2012-05-22 11:10:15 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-latex-graphics-companion
Version:	20190228
Release:	1
Summary:	Examples from The LaTeX Graphics Companion
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/lgc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-graphics-companion.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-graphics-companion.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The source of the examples printed in the book, together with
necessary supporting files.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-10.pic
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-11.pic
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/1-4-9.pic
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/10-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/10-1-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/10-1-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/10-1-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/10-1-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/10-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/11-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/11-6-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-1.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-2.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-3.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-4.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/12-0-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-10.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-11.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-12.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-13.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-14.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-15.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-16.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-17.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-18.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-19.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-20.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-7.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-8.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-2-9.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-13.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-15.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-16.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-17.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-7.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-8.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/2-3-9.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-1.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-2.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-3.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-4.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-5.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-6.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-7.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-8.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-1-9.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-2-1.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-2-2.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-2-3.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-1.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-10.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-11.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-12.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-13.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-14.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-15.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-16.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-17.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-18.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-19.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-2.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-3.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-4.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-5.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-6.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-7.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-8.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-3-9.mp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-4-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/3-4-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-8.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-10-9.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-2-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-2-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-2-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-2-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-2-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-3-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-3-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-10.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-11.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-12.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-7.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-8.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-4-9.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-10.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-11.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-12.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-7.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-8.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-5-9.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-10.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-11.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-12.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-13.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-14.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-15.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-16.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-17.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-18.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-19.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-20.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-21.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-22.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-23.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-24.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-25.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-26.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-27.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-28.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-29.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-30.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-31.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-32.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-33.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-34.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-35.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-36.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-37.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-38.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-39.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-40.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-41.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-42.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-43.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-44.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-45.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-46.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-7.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-8.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-6-9.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-7-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-7-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-7-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-7-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-8-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-8-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-8-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-8-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-8-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-9-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-9-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/4-9-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-3-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-17.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-18.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-19.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-20.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-21.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-22.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-23.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-24.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-25.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-26.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-27.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-28.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-29.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-30.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-31.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-32.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-33.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-34.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-35.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/5-5-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-17.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-18.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-19.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-20.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-21.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-22.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-23.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-24.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-3-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-6-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-6-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-6-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-6-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-6-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-6-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-6-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-7-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-7-1.m4
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-7-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-7-2.m4
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-7-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-7-3.m4
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-7-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/6-7-4.m4
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-2-1.mx1
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-2-1.mx2
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-2-1.ptx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-1.abc
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-3.abc
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-4.abc
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-5.abc
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-6.abc
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-7.abc
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-8.abc
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-3-9.abc
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-1.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-10.mx1
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-10.mx2
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-10.ptx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-2.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-3.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-4.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-5.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-6.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-7.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-8.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/7-4-9.mpp
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-1-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-1-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-1-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-5-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-6-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-6-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-6-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-6-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-6-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-6-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-6-7.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-6-8.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-7-1.acr
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-7-1.dwn
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-7-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-7-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-7-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/8-7-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-7.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-10.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-11.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-12.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-13.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-14.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-15.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-16.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-17.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-18.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-19.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-2.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-20.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-3.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-4.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-5.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-6.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-7.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-8.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/9-3-9.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/A-1-1.inl
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/Makefile
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/README
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/ages.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/bar.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/chap.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/clef.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/config.ps
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/decade.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/feature.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/graves.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/inputs/graphics.cfg
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/inputs/header.tex
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/inputs/mfpic.sty
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/inputs/ppex.cls
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/key.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/langs.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/langs2.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/langs3.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/macro.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/mpp.tex
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/note.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/notecc.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/pot.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/script.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/scriptcc.ini
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/showgrid.tex
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/stones.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/students.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/veracx.mx1
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/veracx.tex
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/yearm.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/years.dat
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/years.men
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/years.wom
%doc %{_texmfdistdir}/doc/latex/latex-graphics-companion/yearw.dat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18748 |21mr|texlive-latexmp-1.2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/latexmp
# catalog-date 2007-02-23 00:16:39 +0100
# catalog-license pd
# catalog-version 1.2.1
Name:		texlive-latexmp
Version:	1.2.1
Release:	7
Summary:	Interface for LaTeX-based typesetting in MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/latexmp
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexmp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latexmp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The MetaPost package latexMP implements a user-friendly
interface to access LaTeX-based typesetting capabilities in
MetaPost. The text to be typeset is given as string. This
allows even dynamic text elements, for example counters, to be
used in labels. Compared to other implementations it is much
more flexible, since it can be used as direct replacement for
btex..etex, and much faster, compared for example to the
solution provided by tex.mp.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/latexmp/latexmp.mp
%doc %{_texmfdistdir}/doc/metapost/latexmp/README
%doc %{_texmfdistdir}/doc/metapost/latexmp/latexmp.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18749 |21mr|texlive-latex-notes-zh-cn-1.20-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/latex-notes-zh-cn
# catalog-date 2009-11-09 22:53:30 +0100
# catalog-license lppl1.3
# catalog-version 1.20
Name:		texlive-latex-notes-zh-cn
Version:	1.20
Release:	6
Summary:	Chinese Introduction to TeX and LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex-notes-zh-cn
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-notes-zh-cn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-notes-zh-cn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document is an introduction to TeX/LaTeX, in Chinese. It
covers basic text typesetting, mathematics, graphics, tables,
Chinese language & fonts, and some miscellaneous features
(hyperlinks, long documents, bibliographies, indexes and page
layout).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/README
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/history.txt
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/latex-notes-zh-cn.pdf
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/license.txt
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/basics.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/dscf4684.jpg
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/arrow.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/color.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/colors.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/curve.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/dashed.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/dot.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/fill.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/label.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/line.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/loop.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/path.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/predefined.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_arc.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_arrow.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_axis.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_bezier.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_circle.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_color.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_curve.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_dot.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_fill.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_frame.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_grid.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_label.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_line.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_linestyle.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_origin.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_parabola.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_polygon.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_rput.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/pst_uput.eps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/subfig.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/subfig_left.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/subfig_right.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/transform.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/examples/uline.mps
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/fonts.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/graphics.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/i18n.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/introduction.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/lnotes.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/math.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/misc.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/postcript.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/preface.tex
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/reading.bib
%doc %{_texmfdistdir}/doc/generic/latex-notes-zh-cn/src/tables.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18750 |21mr|texlive-latex-referenz-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex-referenz
Version:	20190228
Release:	1
Summary:	Examples from the book "LaTeX Referenz"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/LaTeX-Referenz
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-referenz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-referenz.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This bundle contains all the examples, as source, eps and pdf,
of the author's book "LaTeX Referenz" (2nd ed.), published by
DANTE/Lehmanns. The examples can be run as usual with the
example class ttctexa.cls, which is in the distribution.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-referenz

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18751 |21mr|texlive-latex-tabellen-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16979
# category Package
# catalog-ctan /info/examples/Tabellen2
# catalog-date 2010-02-12 13:59:30 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-latex-tabellen
Version:	20190228
Release:	1
Summary:	LaTeX Tabellen
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/Tabellen2
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-tabellen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-tabellen.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The examples from the book <<Tabellen mit LaTeX>>, 2nd ed.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-1.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-17.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-18.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-19.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-1.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/01-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-10.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-17.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-18.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-19.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-8.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-01-9.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-03-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-04-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-05-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-06-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-07-4.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-08-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-08-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-08-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-08-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-08-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-09-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-09-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-11-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-12-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-13-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-13-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-13-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-13-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-14-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-15-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-15-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-15-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-16-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-16-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-16-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-17-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-18-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-18-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-18-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-18-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-18-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-19-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-19-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-20-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-20-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-21-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-21-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-22-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-22-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-22-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-22-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-23-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-24-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-24-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-24-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-24-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-25-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-25-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-26-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-27-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-28-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-28-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-28-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-28-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-29-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/02-29-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-03-3.ltxb
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/03-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-10.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-11.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-12.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-13.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-14.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-15.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-3.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-4.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-5.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-8.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-01-9.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-02-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-02-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-03-3.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-04-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-04-3.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-04-4.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-04-5.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-05-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-05-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-05-3.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-05-4.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-05-5.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-05-6.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-05-7.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-05-8.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-3.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-4.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-5.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-6.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-7.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-8.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/04-06-9.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-04-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-04-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-06-1.ltxE
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-06-2.ltxE
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/05-06-3.ltxE
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-1.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-10.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-11.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-12.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-13.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-14.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-15.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-16.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-17.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-18.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-19.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-2.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-20.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-21.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-22.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-23.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-24.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-25.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-26.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-27.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-28.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-29.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-3.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-30.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-31.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-32.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-33.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-34.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-35.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-36.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-37.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-38.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-39.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-4.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-40.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-41.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-42.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-43.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-44.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-45.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-46.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-5.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-6.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-7.ltxps
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-8.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/06-00-9.ltx
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/07-03-1.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/07-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/latex-tabellen/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18752 |21mr|texlive-latex-tds-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex-tds
Version:	20190228
Release:	1
Summary:	A structured copy of the LaTeX distribution
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/latex-tds
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-tds.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-tds.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-tds.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This bundle provides a set of zip file modules containing TDS-
compliant trees for items of the LaTeX distribution (both the
base system and required packages), together with 'user-
friendly' documentation (PDF files with navigation support
using bookmarks and links). A further module (knuth) performs
the same service for Knuth's software distribution.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-tds
#- source
%doc %{_texmfdistdir}/source/latex/latex-tds

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18753 |21mr|texlive-latex-veryshortguide-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-latex-veryshortguide
Version:	20190228
Release:	1
Summary:	The Very Short Guide to LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex-veryshortguide
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-veryshortguide.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-veryshortguide.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a 4-page reminder of what LaTeX does. It is designed
for printing on A4 paper, double-sided, and folding once to A5.
(Such an 'imposed' version of the document is provided in the
distribution, as PDF.).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-veryshortguide

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18754 |21mr|texlive-latex-web-companion-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /info/examples/lwc
# catalog-date 2012-07-10 08:38:43 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-latex-web-companion
Version:	20190228
Release:	1
Summary:	Examples from The LaTeX Web Companion
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/lwc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-web-companion.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/latex-web-companion.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%global __provides_exclude perl\\(.*

%description
The source of the examples printed in the book, together with
necessary supporting files.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/README.apa
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/latexexa-raw.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/latexexa.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/latexexa.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/latexexa.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/phys332-1.eps
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/phys332-2.eps
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/teched.html
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apa/teched.java
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/InvitationSAX.class
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/InvitationSAX.java
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/MySAXApp.class
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/MySAXApp.java
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/README.apb
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/bibliotest1.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/bibliotest2.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/biblioxml1.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/biblioxml2.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/colorcir.eps
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/inv2.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/invitation.sty
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/invitation2.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/invitation2.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/latexmath.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/latexmml.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/makelatex.sh
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/minilatex.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/minilatex.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/minilatexexa.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/minilatexexa.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/mybiblio.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apb/utf82latin1.sh
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/ISOcyr1.pen
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/README.apc
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/invitation.sty
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/invitationfr.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/invitationfr.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/invitationfr.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/invitationfrraw.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/invlat1fr.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/utf8.html
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/utf8.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/utf8.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/apc/utf8raw.html
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch2/latexexa.aux
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch2/latexexa.brf
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch2/latexexa.log
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch2/latexexa.out
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch2/latexexa.pdf
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch2/latexexa.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch2/phys332-1.pdf
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch2/phys332-2.pdf
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/Makefile.ex2
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/Makefile.ex3
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/README.ch3
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/colorcir.eps
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/ex20.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/ex21.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/ex22.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/ex2bib.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/ex30.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/ex31.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/ex32.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/ex3bib.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/l2hexa.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/myinit.pl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/sampleAMS.css
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/sampleAMS.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/sampleMath.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/sampleMathImages.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/sampleMathThumb.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch3/tac2dim.eps
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.aux
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.css
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.dvi
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.html
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.idv
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.lg
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.log
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.otc
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.tex
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.toc
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/latexexa.xref
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/phys332-1.eps
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/phys332-2.eps
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/tex4ht.env
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/tex4ht.tmp
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch4/tmp.ps
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch6/README.ch6
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch6/catalog
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch6/emptyexample.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch6/invitation.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch6/invitation.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch6/wrong.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch6/xml.dcl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/README.ch7
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/SGMLS.pm
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/SGMLS/Output.pm
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/SGMLS/Refs.pm
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/SGMLS/SGMLS.pm
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/any.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/any.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/catalog
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/catalog.dsssl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/catalog.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/debug.txt
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/dsssl.cat
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/dsssl.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/empty.dsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/empty.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/emptyexample.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/fot.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/inv1html.pl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/inv2css.html.save
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/inv2html.pl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/inv2lat.pl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/inv3.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invcss.html.save
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invfo1.fop
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invfo1.out
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invfo1.pdf
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invfo1.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invhtml.dsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invhtml2.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invit.css
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitation.dsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitation.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitation.fot
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitation.sty
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitation.tex.save
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitation.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitation2.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitation2.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invitationfr.sty
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invlat1.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invtab1.dsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/invtab2.dsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/makesum.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/makesum.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/sectionexa.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/sectionexa.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/sgmlspl.pl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/skel.pl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/style-sheet.dtd
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/templatest.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/templatest.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/templatestnok.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/templatestok.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/test-SGMLS.pl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/writefile.xsl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/writefiles.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/wrong.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/xml.dcl
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/xsl.xml
%doc %{_texmfdistdir}/doc/latex/latex-web-companion/ch7/xslexa1.xsl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18755 |21mr|texlive-layaureo-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19087
# category Package
# catalog-ctan /macros/latex/contrib/layaureo
# catalog-date 2006-12-30 10:59:01 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-layaureo
Version:	0.2
Release:	2
Epoch:		1
Summary:	A package to improve the A4 page layout
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/layaureo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/layaureo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/layaureo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/layaureo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package produces a wide page layout for documents that use
A4 paper size. Moreover, LayAureo provides both a simple hook
for leaving an empty space which is required if pages are
bundled by a press binding use option binding=length), and an
option called big which it forces typearea to become maximum.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/layaureo/layaureo.sty
%doc %{_texmfdistdir}/doc/latex/layaureo/README
%doc %{_texmfdistdir}/doc/latex/layaureo/layaureo.pdf
#- source
%doc %{_texmfdistdir}/source/latex/layaureo/layaureo.dtx
%doc %{_texmfdistdir}/source/latex/layaureo/layaureo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18756 |21mr|texlive-layouts-2.6d-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/layouts
# catalog-date 2009-09-02 18:09:14 +0200
# catalog-license lppl1.3
# catalog-version 2.6d
Name:		texlive-layouts
Version:	2.6d
Release:	7
Summary:	Display various elements of a document's layout
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/layouts
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/layouts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/layouts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/layouts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Display information about a document, including: text
positioning on a page; disposition of floats; layout of
paragraphs, lists, footnotes, table of contents, and sectional
headings; font boxes. Facilities are provided for a document
designer to experiment with the layout parameters.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/layouts/layouts.sty
%doc %{_texmfdistdir}/doc/latex/layouts/README
%doc %{_texmfdistdir}/doc/latex/layouts/layman.pdf
%doc %{_texmfdistdir}/doc/latex/layouts/layouts.pdf
#- source
%doc %{_texmfdistdir}/source/latex/layouts/layman.tex
%doc %{_texmfdistdir}/source/latex/layouts/layouts.dtx
%doc %{_texmfdistdir}/source/latex/layouts/layouts.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18757 |21mr|texlive-lazylist-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17691
# category Package
# catalog-ctan /macros/latex/contrib/lazylist
# catalog-date 2006-12-30 10:59:01 +0100
# catalog-license lppl
# catalog-version 1.0a
Name:		texlive-lazylist
Version:	1.0a
Release:	7
Summary:	Lists in TeX's "mouth"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lazylist
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lazylist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lazylist.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a pile of lambda-calculus and list-
handling macros of an incredibly obtuse nature. The TUGboat
paper serves as a manual for the macros. This TeX code was
formally verified.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lazylist/lazylist.sty
%doc %{_texmfdistdir}/doc/latex/lazylist/lazylist.pdf
%doc %{_texmfdistdir}/doc/latex/lazylist/lazylist.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18758 |21mr|texlive-lcd-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16549
# category Package
# catalog-ctan /macros/latex/contrib/lcd
# catalog-date 2006-11-14 20:05:17 +0100
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-lcd
Version:	0.3
Release:	7
Summary:	Alphanumerical LCD-style displays
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lcd
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package that will display text as on an LCD display.
Assumes 8-bit input in its internal verbatim-style environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lcd/lcd.sty
%doc %{_texmfdistdir}/doc/latex/lcd/00readme
%doc %{_texmfdistdir}/doc/latex/lcd/example.pdf
%doc %{_texmfdistdir}/doc/latex/lcd/example.tex
#- source
%doc %{_texmfdistdir}/source/latex/lcd/lcd.dtx
%doc %{_texmfdistdir}/source/latex/lcd/lcd.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18759 |21mr|texlive-lcdftypetools-2.98-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29764
# category TLCore
# catalog-ctan /fonts/utilities/lcdf-typetools
# catalog-date 2012-10-26 00:32:45 +0200
# catalog-license gpl
# catalog-version 2.98
Name:		texlive-lcdftypetools
Version:	2.98
Release:	9
Summary:	A bundle of outline font manipulation tools
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/utilities/lcdf-typetools
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcdftypetools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcdftypetools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-glyphlist
Requires:	texlive-lcdftypetools.bin

%description
This bundle of tools comprises: - Cfftot1, which translates a
Compact Font Format (CFF) font, or a PostScript-flavored
OpenType font, into PostScript Type 1 format. It correctly
handles subroutines and hints; - Mmafm and mmpfb, which create
instances of multiple-master fonts (mmafm and mmpfb were
previously distributed in their own package, mminstance); -
Otfinfo, which reports information about OpenType fonts, such
as the features they support and the contents of their 'size'
optical size features; - Otftotfm, which creates TeX font
metrics and encodings that correspond to a PostScript-flavored
OpenType font. It will interpret glyph positionings,
substitutions, and ligatures as far as it is able. You can say
which OpenType features should be activated; - T1dotlessj,
creates a Type 1 font whose only character is a dotless j
matching the input font's design; - T1lint, which checks a Type
1 font for correctness; - T1reencode, which replaces a font's
internal encoding with one you specify; and - T1testpage, which
creates a PostScript proof for a Type 1 font. It is preliminary
software.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/cfftot1.1*
%doc %{_texmfdistdir}/doc/man/man1/cfftot1.man1.pdf
%doc %{_mandir}/man1/mmafm.1*
%doc %{_texmfdistdir}/doc/man/man1/mmafm.man1.pdf
%doc %{_mandir}/man1/mmpfb.1*
%doc %{_texmfdistdir}/doc/man/man1/mmpfb.man1.pdf
%doc %{_mandir}/man1/otfinfo.1*
%doc %{_texmfdistdir}/doc/man/man1/otfinfo.man1.pdf
%doc %{_mandir}/man1/otftotfm.1*
%doc %{_texmfdistdir}/doc/man/man1/otftotfm.man1.pdf
%doc %{_mandir}/man1/t1dotlessj.1*
%doc %{_texmfdistdir}/doc/man/man1/t1dotlessj.man1.pdf
%doc %{_mandir}/man1/t1lint.1*
%doc %{_texmfdistdir}/doc/man/man1/t1lint.man1.pdf
%doc %{_mandir}/man1/t1rawafm.1*
%doc %{_texmfdistdir}/doc/man/man1/t1rawafm.man1.pdf
%doc %{_mandir}/man1/t1reencode.1*
%doc %{_texmfdistdir}/doc/man/man1/t1reencode.man1.pdf
%doc %{_mandir}/man1/t1testpage.1*
%doc %{_texmfdistdir}/doc/man/man1/t1testpage.man1.pdf
%doc %{_mandir}/man1/ttftotype42.1*
%doc %{_texmfdistdir}/doc/man/man1/ttftotype42.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18760 |21mr|texlive-lcg-1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31474
# category Package
# catalog-ctan /macros/latex/contrib/lcg
# catalog-date 2013-08-19 14:43:09 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-lcg
Version:	1.3
Release:	10
Summary:	Generate random integers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lcg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The lcg package generates random numbers (integers) via a
linear congruential generator (Schrage's method). The random
numbers are written to a counter. The keyval package is used
for the user to provide values for the range and a seed, and
for the name of the counter to be used.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lcg/lcg.sty
%doc %{_texmfdistdir}/doc/latex/lcg/lcg.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lcg/lcg.dtx
%doc %{_texmfdistdir}/source/latex/lcg/lcg.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18761 |21mr|texlive-lcyw-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lcyw
Version:	1.1
Release:	2
Summary:	Make Classic Cyrillic CM fonts accessible in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lcyw
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcyw.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcyw.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lcyw.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes the classic CM Cyrillic fonts accessible for
use with LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lcyw/cmap-cyr-vf.sty
%{_texmfdistdir}/tex/latex/lcyw/koi7a.cmap
%{_texmfdistdir}/tex/latex/lcyw/lcywcmr.fd
%{_texmfdistdir}/tex/latex/lcyw/lcywcmss.fd
%{_texmfdistdir}/tex/latex/lcyw/lcywcmssq.fd
%{_texmfdistdir}/tex/latex/lcyw/lcywcmtt.fd
%{_texmfdistdir}/tex/latex/lcyw/lcywenc.def
%doc %{_texmfdistdir}/doc/latex/lcyw/README
%doc %{_texmfdistdir}/doc/latex/lcyw/README.koi8-r
%doc %{_texmfdistdir}/doc/latex/lcyw/example-lcyw.tex
%doc %{_texmfdistdir}/doc/latex/lcyw/lcyw.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lcyw/lcyw.dtx
%doc %{_texmfdistdir}/source/latex/lcyw/lcyw.ins
%doc %{_texmfdistdir}/source/latex/lcyw/lcywfd.fdd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18762 |21mr|texlive-leading-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/leading
# catalog-date 2008-12-15 18:32:16 +0100
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-leading
Version:	0.3
Release:	7
Summary:	Define leading with a length
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/leading
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leading.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leading.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leading.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a command \leading, whose argument is a
<length> that specifies the nominal distance between
consecutive baselines of typeset text. The command replaces the
rather more difficult LaTeX command \linespread{<ratio>}, where
the leading is specified by reference to the font size.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/leading/leading.sty
%doc %{_texmfdistdir}/doc/latex/leading/README
%doc %{_texmfdistdir}/doc/latex/leading/leading.pdf
#- source
%doc %{_texmfdistdir}/source/latex/leading/leading.dtx
%doc %{_texmfdistdir}/source/latex/leading/leading.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18763 |21mr|texlive-leaflet-1.1b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-leaflet
Version:	1.1b
Release:	2
Summary:	Create small handouts (flyers)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/leaflet
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leaflet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leaflet.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leaflet.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A document class to create small hand-outs (flyers) that fit on
a single sheet of paper which is then folded twice. Pages are
rearranged by LaTeX so that they print correctly on a single
sheet -- no external script is necessary. (Works with
PostScript and PDF.) This is a complete reimplementation with
permission of the original author Jurgen Schlegelmilch.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/leaflet
%doc %{_texmfdistdir}/doc/latex/leaflet
#- source
%doc %{_texmfdistdir}/source/latex/leaflet

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18764 |21mr|texlive-ledmac-0.19.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30987
# category Package
# catalog-ctan /macros/latex/contrib/ledmac
# catalog-date 2013-06-15 00:57:55 +0200
# catalog-license lppl
# catalog-version 0.19.1
Name:		texlive-ledmac
Version:	0.19.4
Release:	2
Summary:	Typeset scholarly editions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ledmac
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ledmac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ledmac.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ledmac.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A macro package for typesetting scholarly critical editions.
The ledmac package is a LaTeX port of the plain TeX EDMAC
macros. It supports indexing by page and line number and simple
tabular- and array-style environments. The package is
distributed with the related ledpar and ledarab packages. The
package is now superseded by eledmac.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ledmac/afoot.sty
%{_texmfdistdir}/tex/latex/ledmac/ledarab.sty
%{_texmfdistdir}/tex/latex/ledmac/ledmac.sty
%{_texmfdistdir}/tex/latex/ledmac/ledpar.sty
%doc %{_texmfdistdir}/doc/latex/ledmac/Makefile
%doc %{_texmfdistdir}/doc/latex/ledmac/README
%doc %{_texmfdistdir}/doc/latex/ledmac/djd17nov.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/djd17novL.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/djd17novR.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/djdpoems.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/djdpoems1.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/djdpoems2.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/djdpoems3.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/djdpoems4.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/egarab.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/egarab.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/egarabpar.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/egarabpar.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/ledarab.pdf
%doc %{_texmfdistdir}/doc/latex/ledmac/ledarden.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/ledarden.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/ledbraonain.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/ledbraonain.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/ledeasy.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/ledeasy.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/ledekker.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/ledekker.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/ledfeat.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/ledfeat.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/ledioc.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/ledioc.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/ledmac.pdf
%doc %{_texmfdistdir}/doc/latex/ledmac/ledmixed.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/ledmixed.tex
%doc %{_texmfdistdir}/doc/latex/ledmac/ledpar.pdf
%doc %{_texmfdistdir}/doc/latex/ledmac/villon.eps
%doc %{_texmfdistdir}/doc/latex/ledmac/villon.tex
#- source
%doc %{_texmfdistdir}/source/latex/ledmac/ledarab.dtx
%doc %{_texmfdistdir}/source/latex/ledmac/ledarab.ins
%doc %{_texmfdistdir}/source/latex/ledmac/ledmac.dtx
%doc %{_texmfdistdir}/source/latex/ledmac/ledmac.ins
%doc %{_texmfdistdir}/source/latex/ledmac/ledpar.dtx
%doc %{_texmfdistdir}/source/latex/ledmac/ledpar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18765 |21mr|texlive-leftidx-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/leftidx
# catalog-date 2007-01-08 22:21:56 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-leftidx
Version:	20190228
Release:	1
Summary:	Left and right subscripts and superscripts in math mode
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/leftidx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leftidx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leftidx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leftidx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Left and right subscripts and superscripts are automatically
raised for better fitting to the symbol they belong to.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/leftidx/leftidx.sty
%doc %{_texmfdistdir}/doc/latex/leftidx/README
%doc %{_texmfdistdir}/doc/latex/leftidx/leftidx.pdf
#- source
%doc %{_texmfdistdir}/source/latex/leftidx/Makefile
%doc %{_texmfdistdir}/source/latex/leftidx/leftidx.dtx
%doc %{_texmfdistdir}/source/latex/leftidx/leftidx.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18766 |21mr|texlive-leipzig-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-leipzig
Version:	2.0
Release:	2
Summary:	Typeset and index linguistic gloss abbreviations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/leipzig
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leipzig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leipzig.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/leipzig.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The leipzig package provides a set of macros for standard
glossing abbreviations, with options to create new ones. They
are mnemonic (e.g. \Acc{} for accusative, abbreviated acc).
These abbre can be used alone or on top of the glossaries
package for easy indexing and glossary printing.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/leipzig
%doc %{_texmfdistdir}/doc/latex/leipzig
#- source
%doc %{_texmfdistdir}/source/latex/leipzig

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18767 |21mr|texlive-lengthconvert-1.0a-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30867
# category Package
# catalog-ctan /macros/latex/contrib/lengthconvert
# catalog-date 2013-06-22 23:41:37 +0200
# catalog-license lppl1.3
# catalog-version 1.0a
Name:		texlive-lengthconvert
Version:	1.0a
Release:	12
Summary:	Express lengths in arbitrary units
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lengthconvert
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lengthconvert.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lengthconvert.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lengthconvert.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a command to convert a length to any of a
large selection of units. The package relies on the LaTeX 3
programming environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lengthconvert/lengthconvert.sty
%doc %{_texmfdistdir}/doc/latex/lengthconvert/lengthconvert.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lengthconvert/lengthconvert.dtx
%doc %{_texmfdistdir}/source/latex/lengthconvert/lengthconvert.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18768 |21mr|texlive-lettre-3.000-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lettre
Version:	3.000
Release:	2
Summary:	Letters and faxes in French
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lettre
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lettre.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lettre.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Developed from the ancestor of the standard letter class, at
the Observatoire de Geneve.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lettre
%doc %{_texmfdistdir}/doc/latex/lettre

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18769 |21mr|texlive-lettrine-2.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lettrine
Version:	2.22
Release:	1
Summary:	Typeset dropped capitals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lettrine
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lettrine.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lettrine.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lettrine.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The lettrine package supports various dropped capitals styles,
typically those described in the French typographic books. In
particular, it has facilities for the paragraph text's left
edge to follow the outline of capitals that have a regular
shape (such as "A" and "V").

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lettrine
%doc %{_texmfdistdir}/doc/latex/lettrine
#- source
%doc %{_texmfdistdir}/source/latex/lettrine

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18770 |21mr|texlive-levy-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21750
# category Package
# catalog-ctan /fonts/greek/levy
# catalog-date 2011-03-16 12:04:55 +0100
# catalog-license gpl2
# catalog-version undef
Name:		texlive-levy
Version:	20190228
Release:	1
Summary:	Fonts for typesetting classical greek
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/levy
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/levy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/levy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These fonts are derivatives of Kunth's CM fonts. Macros for use
with Plain TeX are included in the package; for use with LaTeX,
see lgreek (with English documentation) or levy (with German
documentation).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/levy/a.mf
%{_texmfdistdir}/fonts/source/public/levy/b.mf
%{_texmfdistdir}/fonts/source/public/levy/d.mf
%{_texmfdistdir}/fonts/source/public/levy/digits.mf
%{_texmfdistdir}/fonts/source/public/levy/e.mf
%{_texmfdistdir}/fonts/source/public/levy/f.mf
%{_texmfdistdir}/fonts/source/public/levy/g.mf
%{_texmfdistdir}/fonts/source/public/levy/gen_acc.mf
%{_texmfdistdir}/fonts/source/public/levy/gen_sigma.mf
%{_texmfdistdir}/fonts/source/public/levy/graccent.mf
%{_texmfdistdir}/fonts/source/public/levy/grbase.mf
%{_texmfdistdir}/fonts/source/public/levy/grbld10.mf
%{_texmfdistdir}/fonts/source/public/levy/grbld8.mf
%{_texmfdistdir}/fonts/source/public/levy/grbld9.mf
%{_texmfdistdir}/fonts/source/public/levy/greek.mf
%{_texmfdistdir}/fonts/source/public/levy/grpunct.mf
%{_texmfdistdir}/fonts/source/public/levy/grreg10.mf
%{_texmfdistdir}/fonts/source/public/levy/grreg8.mf
%{_texmfdistdir}/fonts/source/public/levy/grreg9.mf
%{_texmfdistdir}/fonts/source/public/levy/grtt10.mf
%{_texmfdistdir}/fonts/source/public/levy/h.mf
%{_texmfdistdir}/fonts/source/public/levy/i.mf
%{_texmfdistdir}/fonts/source/public/levy/j.mf
%{_texmfdistdir}/fonts/source/public/levy/k.mf
%{_texmfdistdir}/fonts/source/public/levy/l.mf
%{_texmfdistdir}/fonts/source/public/levy/lig.mf
%{_texmfdistdir}/fonts/source/public/levy/lower.mf
%{_texmfdistdir}/fonts/source/public/levy/m.mf
%{_texmfdistdir}/fonts/source/public/levy/n.mf
%{_texmfdistdir}/fonts/source/public/levy/o.mf
%{_texmfdistdir}/fonts/source/public/levy/p.mf
%{_texmfdistdir}/fonts/source/public/levy/q.mf
%{_texmfdistdir}/fonts/source/public/levy/r.mf
%{_texmfdistdir}/fonts/source/public/levy/s.mf
%{_texmfdistdir}/fonts/source/public/levy/t.mf
%{_texmfdistdir}/fonts/source/public/levy/u.mf
%{_texmfdistdir}/fonts/source/public/levy/upper.mf
%{_texmfdistdir}/fonts/source/public/levy/w.mf
%{_texmfdistdir}/fonts/source/public/levy/x.mf
%{_texmfdistdir}/fonts/source/public/levy/y.mf
%{_texmfdistdir}/fonts/source/public/levy/z.mf
%{_texmfdistdir}/fonts/tfm/public/levy/grbld10.tfm
%{_texmfdistdir}/fonts/tfm/public/levy/grbld8.tfm
%{_texmfdistdir}/fonts/tfm/public/levy/grbld9.tfm
%{_texmfdistdir}/fonts/tfm/public/levy/grreg10.tfm
%{_texmfdistdir}/fonts/tfm/public/levy/grreg8.tfm
%{_texmfdistdir}/fonts/tfm/public/levy/grreg9.tfm
%{_texmfdistdir}/tex/generic/levy/greekmacros.tex
%{_texmfdistdir}/tex/generic/levy/slgreek.sty
%doc %{_texmfdistdir}/doc/fonts/levy/README
%doc %{_texmfdistdir}/doc/fonts/levy/digits.mf-old
%doc %{_texmfdistdir}/doc/fonts/levy/g.mf-old
%doc %{_texmfdistdir}/doc/fonts/levy/greekhist.tex
%doc %{_texmfdistdir}/doc/fonts/levy/greekuse.tex
%doc %{_texmfdistdir}/doc/fonts/levy/grinstall.tex
%doc %{_texmfdistdir}/doc/fonts/levy/grtestfont.tex
%doc %{_texmfdistdir}/doc/fonts/levy/makeall
%doc %{_texmfdistdir}/doc/fonts/levy/makefont
%doc %{_texmfdistdir}/doc/fonts/levy/testfont

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18771 |21mr|texlive-lewis-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/lewis
# catalog-date 2007-03-08 21:58:53 +0100
# catalog-license pd
# catalog-version 0.1
Name:		texlive-lewis
Version:	0.1
Release:	7
Summary:	Draw Lewis structures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lewis
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lewis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lewis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides rudimentary support for drawing Lewis
Structures. Support is limited to elements that support the
octet rule.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lewis/lewis.sty
%doc %{_texmfdistdir}/doc/latex/lewis/README
%doc %{_texmfdistdir}/doc/latex/lewis/lewis.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18772 |21mr|texlive-lexikon-1.0c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17364
# category Package
# catalog-ctan /macros/latex/contrib/lexikon
# catalog-date 2010-03-06 21:34:04 +0100
# catalog-license lppl
# catalog-version 1.0c
Name:		texlive-lexikon
Version:	1.0c
Release:	7
Summary:	Macros for a two language dictionary
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lexikon
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lexikon.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lexikon.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive lexikon package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lexikon/lexikon.sty
%doc %{_texmfdistdir}/doc/latex/lexikon/lexikon-doc.pdf
%doc %{_texmfdistdir}/doc/latex/lexikon/lexikon-doc.tex
%doc %{_texmfdistdir}/doc/latex/lexikon/lexikon.tex
%doc %{_texmfdistdir}/doc/latex/lexikon/lexikon.upl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18773 |21mr|texlive-lexref-1.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32751
# category Package
# catalog-ctan /macros/latex/contrib/lexref
# catalog-date 2014-01-21 18:42:00 +0100
# catalog-license lppl1.3
# catalog-version 1.0.1 alpha
Name:		texlive-lexref
Version:	1.1a
Release:	2
Summary:	Convenient and uniform references to legal provisions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lexref
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lexref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lexref.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is aimed at continental lawyers (especially those
in Switzerland and Germany), allowing the user to make
references to legal provisions conveniently and uniformly. The
package also allows the user to add cited Acts to a
nomenclature list (automatically), and to build specific
indexes for each cited Act. The package is still under
development, and should be treated as an 'alpha'-release.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lexref/lexref.sty
%doc %{_texmfdistdir}/doc/latex/lexref/README
%doc %{_texmfdistdir}/doc/latex/lexref/lexref.pdf
%doc %{_texmfdistdir}/doc/latex/lexref/lexref.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18774 |21mr|texlive-lgreek-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21818
# category Package
# catalog-ctan /macros/latex/contrib/lgreek
# catalog-date 2011-03-14 20:27:38 +0100
# catalog-license gpl2
# catalog-version undef
Name:		texlive-lgreek
Version:	20190228
Release:	1
Summary:	LaTeX macros for using Silvio Levy's Greek fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lgreek
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lgreek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lgreek.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A conversion of Silvio Levy's Plain TeX macros for use with
LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lgreek/LGcmr.fd
%{_texmfdistdir}/tex/latex/lgreek/LGcmtt.fd
%{_texmfdistdir}/tex/latex/lgreek/LGenc.def
%{_texmfdistdir}/tex/latex/lgreek/lgreek.sty
%doc %{_texmfdistdir}/doc/latex/lgreek/README
%doc %{_texmfdistdir}/doc/latex/lgreek/lgreekuse.pdf
%doc %{_texmfdistdir}/doc/latex/lgreek/lgreekuse.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18775 |21mr|texlive-lgrx-0.6-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27003
# category Package
# catalog-ctan /macros/latex/contrib/lgrx
# catalog-date 2012-07-05 15:34:29 +0200
# catalog-license lppl1.3
# catalog-version 0.6
Name:		texlive-lgrx
Epoch:		1
Version:	0.6
Release:	12
Summary:	Greek text with the LGR font encoding
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lgrx
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lgrx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lgrx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The LGRx bundle provides packages and definitions for
typesetting Greek text with fonts in the LGR encoding, the de-
facto standard set by babel. It includes a comprehensive font
definition file, support for Unicode input and macros for Greek
letters in non-Greek text.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lgrx/alphabeta.sty
%{_texmfdistdir}/tex/latex/lgrx/lgrenc.dfu
%{_texmfdistdir}/tex/latex/lgrx/lgrxenc.def
%{_texmfdistdir}/tex/latex/lgrx/textalpha.sty
%doc %{_texmfdistdir}/doc/latex/lgrx/README
%doc %{_texmfdistdir}/doc/latex/lgrx/README.html
%doc %{_texmfdistdir}/doc/latex/lgrx/alphabeta-test.pdf
%doc %{_texmfdistdir}/doc/latex/lgrx/alphabeta-test.tex
%doc %{_texmfdistdir}/doc/latex/lgrx/alphabeta.sty.html
%doc %{_texmfdistdir}/doc/latex/lgrx/greek-unicode.pdf
%doc %{_texmfdistdir}/doc/latex/lgrx/greek-unicode.tex
%doc %{_texmfdistdir}/doc/latex/lgrx/greekhyperref.pdf
%doc %{_texmfdistdir}/doc/latex/lgrx/greekhyperref.tex
%doc %{_texmfdistdir}/doc/latex/lgrx/lgrenc.dfu.html
%doc %{_texmfdistdir}/doc/latex/lgrx/lgrx.pdf
%doc %{_texmfdistdir}/doc/latex/lgrx/lgrx.tex
%doc %{_texmfdistdir}/doc/latex/lgrx/lgrxenc-test.pdf
%doc %{_texmfdistdir}/doc/latex/lgrx/lgrxenc-test.tex
%doc %{_texmfdistdir}/doc/latex/lgrx/lgrxenc.def.html
%doc %{_texmfdistdir}/doc/latex/lgrx/lgrxenc.pdf
%doc %{_texmfdistdir}/doc/latex/lgrx/lgrxenc.tex
%doc %{_texmfdistdir}/doc/latex/lgrx/textalpha-test.pdf
%doc %{_texmfdistdir}/doc/latex/lgrx/textalpha-test.tex
%doc %{_texmfdistdir}/doc/latex/lgrx/textalpha.sty.html

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18776 |21mr|texlive-lh-3.5g-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/cyrillic/lh
# catalog-date 2009-09-21 21:37:51 +0200
# catalog-license lppl
# catalog-version 3.5g
Name:		texlive-lh
Version:	3.5g
Release:	7
Summary:	Cyrillic fonts that support LaTeX standard encodings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/cyrillic/lh
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lh.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lh.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lh.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-ec

%description
The LH fonts address the problem of the wide variety of
alphabets that are written with Cyrillic-style characters. The
fonts are the original basis of the set of T2* and X2 encodings
that are now used when LaTeX users need to write in Cyrillic
languages. Macro support in standard LaTeX encodings is offered
through the cyrillic and t2 bundles, and the package itself
offers support for other (more traditional) encodings. The
fonts, in the standard T2* and X2 encodings are available in
Adobe Type 1 format, in the CM-Super family of fonts. The
package also offers its own LaTeX support for OT2 encoded
fonts, CM bright shaped fonts and Concrete shaped fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/lh/base/fikparm.mf
%{_texmfdistdir}/fonts/source/lh/base/lcyrbeg.mf
%{_texmfdistdir}/fonts/source/lh/base/lcyrdefs.mf
%{_texmfdistdir}/fonts/source/lh/base/ldbroman.mf
%{_texmfdistdir}/fonts/source/lh/base/ldcsc.mf
%{_texmfdistdir}/fonts/source/lh/base/ldroman.mf
%{_texmfdistdir}/fonts/source/lh/base/ldtexset.mf
%{_texmfdistdir}/fonts/source/lh/base/ldtextit.mf
%{_texmfdistdir}/fonts/source/lh/base/ldtitle.mf
%{_texmfdistdir}/fonts/source/lh/base/lebroman.mf
%{_texmfdistdir}/fonts/source/lh/base/lecsc.mf
%{_texmfdistdir}/fonts/source/lh/base/leroman.mf
%{_texmfdistdir}/fonts/source/lh/base/letextit.mf
%{_texmfdistdir}/fonts/source/lh/base/lgcspl.mf
%{_texmfdistdir}/fonts/source/lh/base/lgcyracc.mf
%{_texmfdistdir}/fonts/source/lh/base/lgcyri.mf
%{_texmfdistdir}/fonts/source/lh/base/lgcyrl.mf
%{_texmfdistdir}/fonts/source/lh/base/lgcyrsp.mf
%{_texmfdistdir}/fonts/source/lh/base/lgcyrsym.mf
%{_texmfdistdir}/fonts/source/lh/base/lgcyru.mf
%{_texmfdistdir}/fonts/source/lh/base/lgengsym.mf
%{_texmfdistdir}/fonts/source/lh/base/lgidigit.mf
%{_texmfdistdir}/fonts/source/lh/base/lgilig.mf
%{_texmfdistdir}/fonts/source/lh/base/lgitalp.mf
%{_texmfdistdir}/fonts/source/lh/base/lgocyrac.mf
%{_texmfdistdir}/fonts/source/lh/base/lgpunct.mf
%{_texmfdistdir}/fonts/source/lh/base/lgrdigit.mf
%{_texmfdistdir}/fonts/source/lh/base/lgrlig.mf
%{_texmfdistdir}/fonts/source/lh/base/lgromp.mf
%{_texmfdistdir}/fonts/source/lh/base/lgrusi.mf
%{_texmfdistdir}/fonts/source/lh/base/lgrusl.mf
%{_texmfdistdir}/fonts/source/lh/base/lgrusu.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2comi.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2coml.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2comu.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2loi.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2lol.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2lou.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2slvi.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2slvl.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2slvu.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2upi.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2upl.mf
%{_texmfdistdir}/fonts/source/lh/base/lgt2upu.mf
%{_texmfdistdir}/fonts/source/lh/base/lkligtbl.mf
%{_texmfdistdir}/fonts/source/lh/base/llbligtb.mf
%{_texmfdistdir}/fonts/source/lh/base/llcligtb.mf
%{_texmfdistdir}/fonts/source/lh/base/lliligtb.mf
%{_texmfdistdir}/fonts/source/lh/base/llmligtb.mf
%{_texmfdistdir}/fonts/source/lh/base/llrligtb.mf
%{_texmfdistdir}/fonts/source/lh/base/llvligtb.mf
%{_texmfdistdir}/fonts/source/lh/base/lwnligs.mf
%{_texmfdistdir}/fonts/source/lh/base/lxpseudo.mf
%{_texmfdistdir}/fonts/source/lh/base/lycyracc.mf
%{_texmfdistdir}/fonts/source/lh/base/lypseudo.mf
%{_texmfdistdir}/fonts/source/lh/base/nodraw.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/irslb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/irsli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/irslo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/irslq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/irsltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbegin.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbmo10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbmo17.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbmo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbmo9.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbmr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbmr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbmr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbmr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbso10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbso17.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbso8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbso9.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbsr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbsr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbsr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbsr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbtl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsbto10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rscodes.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rslb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsliker.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rslo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rslq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsob10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsobx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsobx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsobx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsobx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsobx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsobx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsobxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsobxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsocc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsorm10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsorm5.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsorm6.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsorm7.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsorm8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsorm9.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsosl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsosl5.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsosl6.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsosl7.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsosl8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsosl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsoslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsoti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsqi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rssq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-XSlav/rsssdc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/00readme.txt
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccb10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccbx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccbx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccbx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccbx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccbx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccbxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/ccbxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concb10pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concbx10pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concbx12pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concbx5pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concbx6pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concbx7pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concbx8pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concbx9pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concbxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/concc9pt.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eob10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eobx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eobx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eobx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eobx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eobx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eobx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eobxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eobxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-conc/eoslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/ilhcsc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/ilhtt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/illhss8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/illhssb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/illhssi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbrbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbrsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbrsl17.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbrsl8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhbrsl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcb10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcbx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcbx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcbx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcbx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcbx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcbxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcbxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhccsc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcodes.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcr5.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcr6.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcr7.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcsl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhcti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhliker.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhsltl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/lhtl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/llhss8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/llhssb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-lcy/llhssi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/ilwnss8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/ilwnssb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/ilwnssi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/iwncsc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/iwntt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/lwnss8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/lwnssb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/lwnssi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbrbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbrsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbrsl17.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbrsl8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnbrsl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncb10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncbx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncbx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncbx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncbx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncbx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncbxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncbxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnccsc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncodes.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncr5.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncr6.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncr7.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncsl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wncti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnliker.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wnsltl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-ot2/wntl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/ilalb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/ilali8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/ilalo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/ilalq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/ilaltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labmo10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labmo17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labmo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labmo9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labmr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labmr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labmr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labmr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labso10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labso17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labso8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labso9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labsr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labsr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labsr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labsr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labtl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/labto10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/lacodes.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/lalb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/lali8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laliker.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/lalo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/lalq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laob10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laobx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laobx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laobx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laobx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laobx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laobx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laobxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laobxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laocc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laorm10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laorm5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laorm6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laorm7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laorm8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laorm9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laosl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laosl5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laosl6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laosl7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laosl8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laosl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laoslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laoti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/laqi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/lasq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2a/lassdc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/ilblb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/ilbli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/ilblo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/ilblq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/ilbltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbmo10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbmo17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbmo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbmo9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbmr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbmr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbmr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbmr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbso10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbso17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbso8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbso9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbsr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbsr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbsr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbsr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbtl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbbto10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbcodes.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lblb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbliker.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lblo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lblq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbob10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbobx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbobx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbobx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbobx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbobx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbobx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbobxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbobxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbocc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lborm10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lborm5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lborm6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lborm7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lborm8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lborm9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbosl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbosl5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbosl6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbosl7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbosl8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbosl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lboslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lboti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbqi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbsq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2b/lbssdc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/ilclb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/ilcli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/ilclo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/ilclq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/ilcltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbmo10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbmo17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbmo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbmo9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbmr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbmr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbmr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbmr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbso10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbso17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbso8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbso9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbsr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbsr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbsr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbsr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbtl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcbto10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lccodes.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lclb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcliker.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lclo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lclq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcob10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcobx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcobx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcobx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcobx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcobx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcobx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcobxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcobxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcocc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcorm10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcorm5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcorm6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcorm7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcorm8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcorm9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcosl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcosl5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcosl6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcosl7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcosl8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcosl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcoslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcoti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcqi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcsq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2c/lcssdc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ildlb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ildli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ildlo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ildlq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ildltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbmo10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbmo17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbmo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbmo9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbmr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbmr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbmr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbmr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbso10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbso17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbso8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbso9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbsr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbsr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbsr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbsr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbtl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldbto10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldcodes.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldlb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldliker.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldlo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldlq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldob10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldobx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldobx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldobx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldobx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldobx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldobx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldobxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldobxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldocc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldorm10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldorm5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldorm6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldorm7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldorm8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldorm9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldosl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldosl5.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldosl6.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldosl7.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldosl8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldosl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldoslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldoti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldqi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldsq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-t2d/ldssdc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/irxlb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/irxli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/irxlo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/irxlq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/irxltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbbx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbmo10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbmo17.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbmo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbmo9.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbmr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbmr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbmr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbmr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbso10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbso17.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbso8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbso9.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbsr10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbsr17.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbsr8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbsr9.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbtl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxbto10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxcodes.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxlb8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxli8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxliker.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxlo8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxlq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxltt8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxob10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxobx10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxobx5.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxobx6.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxobx7.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxobx8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxobx9.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxobxsl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxobxti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxocc10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxorm10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxorm5.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxorm6.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxorm7.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxorm8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxorm9.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxosl10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxosl5.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxosl6.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxosl7.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxosl8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxosl9.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxoslc9.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxoti10.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxqi8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxsq8.mf
%{_texmfdistdir}/fonts/source/lh/lh-x2/rxssdc10.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgbersta.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgberstb.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgberstc.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcacci.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcaccl.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcaccu.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcmodi.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcmodl.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcmodu.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcvaci.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcvacl.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgcvacu.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgt2slxi.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgt2slxl.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgt2slxu.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgunici.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgunicl.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lgunicu.mf
%{_texmfdistdir}/fonts/source/lh/nont2/lhberest.mf
%{_texmfdistdir}/fonts/source/lh/specific/lgcrusl.mf
%{_texmfdistdir}/fonts/source/lh/specific/lgcyrcl.mf
%{_texmfdistdir}/fonts/source/lh/specific/lgcyrcu.mf
%{_texmfdistdir}/fonts/source/lh/specific/lgnoncl.mf
%{_texmfdistdir}/fonts/source/lh/specific/lgnoncu.mf
%{_texmfdistdir}/fonts/source/lh/specific/lgrucl.mf
%{_texmfdistdir}/fonts/source/lh/specific/lgrucu.mf
%{_texmfdistdir}/tex/latex/lh/lh-lcy.sty
%{_texmfdistdir}/tex/latex/lh/lh-lcyccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-lcyxccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-ot2.sty
%{_texmfdistdir}/tex/latex/lh/lh-ot2ccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-ot2xccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-t2accr.sty
%{_texmfdistdir}/tex/latex/lh/lh-t2axccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-t2bccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-t2bxccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-t2cccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-t2cxccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-x2ccr.sty
%{_texmfdistdir}/tex/latex/lh/lh-x2xccr.sty
%{_texmfdistdir}/tex/latex/lh/nfssfox.tex
%{_texmfdistdir}/tex/plain/lh/testfox.tex
%{_texmfdistdir}/tex/plain/lh/testkern.tex
%doc %{_texmfdistdir}/doc/fonts/lh/README
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/beresta.tex
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/berestax.tex
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/lacodes.tex
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/lbcodes.tex
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/lccodes.tex
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/ldcodes.tex
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/rxcodes.tex
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/txcodes.tex
%doc %{_texmfdistdir}/doc/fonts/lh/beresta/yycodes.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/allenc.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/allenc0.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/allenc1.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/allenc2.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/allenc3.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/allenc4.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog-beresta.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog-short.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog.lh
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog1.lh
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog1.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog2.lh
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog2.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog3.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog4.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog5.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog6.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/katalog7.t2
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/lh-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/lh-text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/lh-texx.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/lh-texy.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2a-fmap-short.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2a-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2a-text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2b-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2b-text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2c-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2c-text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2d-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/t2d-text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/testLHtxt.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/uc-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/wn-comp.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/wn-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/wn-text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/x2-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/x2-text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/xsl-fmap.tex
%doc %{_texmfdistdir}/doc/fonts/lh/fonttest/xsl-text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/install
%doc %{_texmfdistdir}/doc/fonts/lh/lhfonts/T1inT2.en
%doc %{_texmfdistdir}/doc/fonts/lh/lhfonts/fonttest.en
%doc %{_texmfdistdir}/doc/fonts/lh/lhfonts/lhfont35.en
%doc %{_texmfdistdir}/doc/fonts/lh/lhfonts/lhfont35.ru
%doc %{_texmfdistdir}/doc/fonts/lh/lhfonts/lhfonts.hst
%doc %{_texmfdistdir}/doc/fonts/lh/manifest.txt
%doc %{_texmfdistdir}/doc/fonts/lh/readme35c.1st
%doc %{_texmfdistdir}/doc/fonts/lh/readme35g.1st
%doc %{_texmfdistdir}/doc/fonts/lh/samples/lh-lcy.tex
%doc %{_texmfdistdir}/doc/fonts/lh/samples/lh-lcytext.tex
%doc %{_texmfdistdir}/doc/fonts/lh/samples/lh-ot2.tex
%doc %{_texmfdistdir}/doc/fonts/lh/samples/lh-ot2text.tex
%doc %{_texmfdistdir}/doc/fonts/lh/samples/lh-t2a.tex
%doc %{_texmfdistdir}/doc/fonts/lh/samples/lh-t2atext.tex
#- source
%doc %{_texmfdistdir}/source/fonts/lh/dvidrv.mfj
%doc %{_texmfdistdir}/source/fonts/lh/dvidrvlh.mfj
%doc %{_texmfdistdir}/source/fonts/lh/tex/00readme.txt
%doc %{_texmfdistdir}/source/fonts/lh/tex/01cm-lh.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/03cm-wn.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/04cm-vf.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/11ex-rs.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/11ex-rx.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/12ex-la.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/13ex-lb.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/14ex-lc.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/15ex-ld.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/20cm-ct.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/21cm-ic.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/22cm-wc.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/23cm-mc.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/24cm-kc.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/25cm-uc.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/30cm-lx.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/31cm-ix.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/32cm-wx.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/33cm-mx.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/34cm-kx.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/46cm-ly.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/46cm-lz.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/47ex-tx.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/91berest.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/92check.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/92cm-xx.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/99-CMstd.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/99-T2enc.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/99allenc.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/99tstenc.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/cfhead.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/cfstdedt.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/cod-edt.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/enc-t2.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntaddcm.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntaddec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntallcm.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntallec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntbasec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntbercm.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntberec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntbricm.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntbriec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntconcm.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntconec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntinvcm.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntinvec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntmincm.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fntminec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fnttstcm.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/fnttstec.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/likerdat.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/likergrp.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/likermac.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/rliker.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/setter.tex
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh-XSlav/00readme
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh-lcy/00readme
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh-ot2/00readme
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh-t2a/00readme
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh-t2b/00readme
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh-t2c/00readme
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh-t2d/00readme
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh-x2/00readme
%doc %{_texmfdistdir}/source/fonts/lh/tex/wrk/lh_temp/00readme
%doc %{_texmfdistdir}/source/latex/lh/00readme.txt
%doc %{_texmfdistdir}/source/latex/lh/lcyfonts.fdd
%doc %{_texmfdistdir}/source/latex/lh/lcyfonts.ins
%doc %{_texmfdistdir}/source/latex/lh/nfssfox.dtx
%doc %{_texmfdistdir}/source/latex/lh/nfssfox.ins
%doc %{_texmfdistdir}/source/latex/lh/ot2fonts.fdd
%doc %{_texmfdistdir}/source/latex/lh/ot2fonts.ins
%doc %{_texmfdistdir}/source/latex/lh/t2ccfonts.fdd
%doc %{_texmfdistdir}/source/latex/lh/t2ccfonts.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18777 |21mr|texlive-lhcyr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31795
# category Package
# catalog-ctan /macros/latex/contrib/lhcyr
# catalog-date 2012-05-22 11:10:15 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-lhcyr
Version:	20190228
Release:	1
Summary:	A non-standard Cyrillic input scheme
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lhcyr
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lhcyr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lhcyr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of three LaTeX 2e styles intended for typesetting
Russian and bilingual English-Russian documents, using the lh
fonts and without the benefit of babel's language-switching
mechanisms. The packages (lhcyralt and lhcyrwin for use under
emTeX, and lhcyrkoi for use under teTeX) provide mappings
between the input encoding and the font encoding (which is
described as OT1). The way this is done does not match the way
inputenc would do the job, for output via fontenc to one of the
T2 series of font encodings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lhcyr/karabas.tex
%{_texmfdistdir}/tex/latex/lhcyr/kniga.tex
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/README
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/lhcyralt-hyphen.cfg
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/lhcyralt-rhyphen.tex
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/lhcyralt.sty
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/ot1lhdh.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/ot1lhfib.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/ot1lhfr.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/ot1lhr.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/ot1lhss.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/ot1lhtt.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyralt/ot1lhvtt.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/README
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/kcmf.tgz
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/lhcyrkoi-hyphen.cfg
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/lhcyrkoi-rhyphen.tex
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/lhcyrkoi.sty
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/maketfms.sh
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/ot1kcdh.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/ot1kcfib.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/ot1kcfr.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/ot1kcr.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/ot1kcss.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/ot1kctt.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/ot1kcvtt.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrkoi/special.kc
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/README
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/lhcyrwin-hyphen.cfg
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/lhcyrwin-rhyphen.tex
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/lhcyrwin.sty
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/ot1wcdh.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/ot1wcfib.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/ot1wcfr.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/ot1wcr.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/ot1wcss.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/ot1wctt.fd
%{_texmfdistdir}/tex/latex/lhcyr/lhcyrwin/ot1wcvtt.fd
%{_texmfdistdir}/tex/latex/lhcyr/otchet.tex
%{_texmfdistdir}/tex/latex/lhcyr/pismo.tex
%{_texmfdistdir}/tex/latex/lhcyr/rusfonts.tex
%{_texmfdistdir}/tex/latex/lhcyr/statya.tex
#- source
%doc %{_texmfdistdir}/source/latex/lhcyr/README
%doc %{_texmfdistdir}/source/latex/lhcyr/dvidrv.mfj
%doc %{_texmfdistdir}/source/latex/lhcyr/lhjob.mfj
%doc %{_texmfdistdir}/source/latex/lhcyr/wcjob.mfj

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18778 |21mr|texlive-lhelp-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23638
# category Package
# catalog-ctan /macros/latex/contrib/lhelp
# catalog-date 2007-01-08 22:21:56 +0100
# catalog-license gpl
# catalog-version 2.0
Name:		texlive-lhelp
Version:	2.0
Release:	7
Summary:	Miscellaneous helper packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lhelp
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lhelp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lhelp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lhelp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines macros which are useful for many
documents. It is a large collection of simple 'little helpers'
which do not really warrant a separate package on their own.
Included are, among other things, definitions of common units
with preceeding thinspaces, framed boxes where both width and
height can be specified, starting new odd or even pages, draft
markers, notes, conditional includes, including EPS files, and
versions of enumerate and itemize which allow the horizontal
and vertical spacing to be changed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lhelp/lhelp.sty
%doc %{_texmfdistdir}/doc/latex/lhelp/Makefile
%doc %{_texmfdistdir}/doc/latex/lhelp/lhelp.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lhelp/lhelp.drv
%doc %{_texmfdistdir}/source/latex/lhelp/lhelp.dtx
%doc %{_texmfdistdir}/source/latex/lhelp/lhelp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18779 |21mr|texlive-libertine-5.3.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33008
# category Package
# catalog-ctan /fonts/libertine
# catalog-date 2014-02-19 19:17:20 +0100
# catalog-license lppl
# catalog-version 5.3.0
Name:		texlive-libertine
Version:	5.3.0
Release:	12
Summary:	Use of Linux Libertine and Biolinum fonts with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/libertine
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/libertine.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/libertine.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the Libertine and Biolinum fonts in both
Type 1 and OTF styles, together with support macros for their
use. Monospaced and display fonts, and the "keyboard" set are
also included, in OTF style, only. The mweights package is used
to manage the selection of font weights. The package supersedes
both the libertineotf and the libertine-legacy packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_25tcsq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_2exa4z.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_2ezly2.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_2jy62z.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_2or2lf.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_2xw2fz.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_3acize.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_3c7nkx.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_3csahh.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_3gqkkc.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_3r2fe2.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4gizrm.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4h5nuw.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4ifdhd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4jqvtd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4p7cpr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4pa5s6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4qdwcl.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4wvzw4.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4xgrig.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_4zgdm7.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_5t7yy5.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_5yotx4.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_64fcpm.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_67ud6q.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_6fbtzc.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_6icwtb.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_6koeqx.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_6mhf45.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_6p6dn5.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_75c3wo.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_76gpa5.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_77vsbz.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_7aljsl.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_7f4ce4.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_7fko2h.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_7gfcac.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_7grukw.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_7ukmos.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_7yry24.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ac44fr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_afusau.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_agarrr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_aiatc4.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ashjgg.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_azutla.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_b7buxp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_b7tf5m.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_bgokdj.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_bgqvqi.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_bkwvsw.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_bvtjwh.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_c3m4uk.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_c4mbat.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_c6xmqr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_c6yh3y.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_c7kyj5.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_cetbgr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_cg3sqm.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_coqhcm.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_crxz7j.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ctsnwr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_d4efeo.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_d6jdyt.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_dc4jmj.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_dgc7p3.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_dgwfac.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_dh3kuf.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_djk3hd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_dm3bvq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_dobmnc.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_doxsfd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_drc7cb.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_dylq3g.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_e2nnp6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ee6wgp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_eesn4m.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_eh2cuc.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ehpgim.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ek5o26.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_etetpy.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ew6fhv.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ewm74v.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ezf25l.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_f4vjgq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_f75mth.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_fah7mx.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_fdphbq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ffhb5a.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_g3iycs.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_g3y3rv.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_g73f77.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_gannye.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_gj2vz5.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_gppru4.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_gw5dl2.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_gzistf.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_h7zthp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_hj4mhx.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_hk6flg.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_hraow7.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_hrou5r.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_htcja3.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_hx6qbg.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_i5uqjc.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_igd6cx.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ilz2ox.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_imzna7.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_indkeb.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_io54zc.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ip3srb.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_iqbcqn.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ism4pi.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_itwafr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_j6rzs3.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jbwhst.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jk65vs.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jkqd5u.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jm7hzd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jnah33.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jtbvjr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jtta5h.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jubyw6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_jvhpxk.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ka7zfp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ki75ao.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_kozgsn.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_kuli6n.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_kvn6mi.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_l4ygyh.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_l5ekfx.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_l7w3c6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_lqfkm2.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_lrrvac.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_lu6v53.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_lu7m2n.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_m4ul6s.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_m7vdvu.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_mdetlm.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_mmutss.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_mx3chd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_mywn7m.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_n3ddym.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_n3xw57.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_n7uljd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_naooyc.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ncsllp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_nh77jq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_nifh3d.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_o3jfbt.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_o3v7gd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_oie7e6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_omcwp2.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_otwoau.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ouu7z6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ov2e4f.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_owz7oq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_p657rp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_pagsao.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_pjjyzv.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_pjxd67.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_prxh5x.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_pwsgbx.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_pznusu.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_q2zrjv.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_q6vmp6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_qac756.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_qacof3.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_qgimbz.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_qlw4xk.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_qwz7uv.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_qzi2b5.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_r4tgzq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_rat5le.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_roevjg.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_rvmawp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_s5bq4i.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_sakzps.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_sc4wfs.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_sdmuhw.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_sfn3yq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_sjkbhb.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_snmbym.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_soyanm.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_t62t6h.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_tctjin.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_tltjc6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_tlukpt.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_tnngrt.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_txfk5t.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_u442ab.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_u7qtuy.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ufdkzv.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_ulngvd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_urpt4g.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_utckyy.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_v2xmgd.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_v3uc42.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_vezqth.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_vfdxlw.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_vm42ve.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_voilzo.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_volajt.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_vp3gac.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_vpeqwl.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_vsrqlo.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_w5h3ip.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_w6afmj.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_wcay2e.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_weuxsp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_wfw7lb.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_wnipxy.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_wzgokb.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_x4bvel.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_xc6c72.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_xeech7.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_xogrpz.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_xpavo4.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_xsgxhq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_xz74p6.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_xzlo5e.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_y6cxei.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_y6gumo.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_yea32d.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_yruotg.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_yvenhr.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_z254vq.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zacdtl.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zajy4r.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zauseh.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zoexom.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zp73k3.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zq22hj.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zxvhqu.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zycpkp.enc
%{_texmfdistdir}/fonts/enc/dvips/libertine/lbtn_zyymej.enc
%{_texmfdistdir}/fonts/map/dvips/libertine/libertine.map
%{_texmfdistdir}/fonts/opentype/public/libertine/LinBiolinum_K.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinBiolinum_R.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinBiolinum_RB.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinBiolinum_RBO.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinBiolinum_RI.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_DR.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_I.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_M.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_MB.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_MBO.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_MO.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_R.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_RB.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_RBI.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_RI.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_RZ.otf
%{_texmfdistdir}/fonts/opentype/public/libertine/LinLibertine_RZI.otf
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumT-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTB-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTBO-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinBiolinumTI-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineDisplayT-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineIT-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMT-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTB-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTBO-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineMTO-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineT-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTB-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTBI-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTI-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-sup-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZ-tosf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-lf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-osf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-sup-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-sup-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-sup-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-sup-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tlf-ts1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-sc-ly1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-sc-ly1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-sc-ot1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-sc-ot1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-sc-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-sc-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-t1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-t1.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-ts1--base.tfm
%{_texmfdistdir}/fonts/tfm/public/libertine/LinLibertineTZI-tosf-ts1.tfm
%{_texmfdistdir}/fonts/type1/public/libertine/LinBiolinumT.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinBiolinumTB.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinBiolinumTBO.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinBiolinumTI.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineDisplayT.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineIT.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineMT.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineMTB.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineMTBO.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineMTO.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineT.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineTB.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineTBI.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineTI.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineTZ.pfb
%{_texmfdistdir}/fonts/type1/public/libertine/LinLibertineTZI.pfb
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumT-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTB-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTBO-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinBiolinumTI-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineDisplayT-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineIT-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMT-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMT-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMT-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMT-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMT-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTB-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTB-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTB-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTB-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTB-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTBO-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTBO-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTBO-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTBO-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTBO-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTO-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTO-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTO-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTO-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineMTO-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineT-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTB-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTBI-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTI-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-lf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-osf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-sup-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tlf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tosf-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZ-tosf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-lf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-lf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-lf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-lf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-lf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-lf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-osf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-osf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-osf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-osf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-osf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-osf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-sup-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tlf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tlf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tlf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tlf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tlf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tlf-ts1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tosf-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tosf-sc-ly1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tosf-sc-ot1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tosf-sc-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tosf-t1.vf
%{_texmfdistdir}/fonts/vf/public/libertine/LinLibertineTZI-tosf-ts1.vf
%{_texmfdistdir}/tex/latex/libertine/LKey.tex
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxBiolinumT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxBiolinumT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxBiolinumT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxBiolinumT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxBiolinumT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineDisplayT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineDisplayT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineDisplayT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineDisplayT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineDisplayT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineInitialsT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineInitialsT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineInitialsT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineMonoT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineMonoT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/LY1LinuxLibertineT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/LinBiolinum_K.tex
%{_texmfdistdir}/tex/latex/libertine/LinBiolinum_R.tex
%{_texmfdistdir}/tex/latex/libertine/LinLibertine_I.tex
%{_texmfdistdir}/tex/latex/libertine/LinLibertine_R.tex
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxBiolinumT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxBiolinumT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxBiolinumT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxBiolinumT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxBiolinumT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineDisplayT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineDisplayT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineDisplayT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineDisplayT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineDisplayT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineInitialsT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineInitialsT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineInitialsT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineMonoT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineMonoT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/OT1LinuxLibertineT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxBiolinumT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxBiolinumT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxBiolinumT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxBiolinumT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxBiolinumT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineDisplayT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineDisplayT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineDisplayT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineDisplayT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineDisplayT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineInitialsT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineInitialsT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineInitialsT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineMonoT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineMonoT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineT-Sup.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/T1LinuxLibertineT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxBiolinumT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxBiolinumT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxBiolinumT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxBiolinumT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineDisplayT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineDisplayT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineDisplayT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineDisplayT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineInitialsT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineInitialsT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineInitialsT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineMonoT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineT-LF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineT-OsF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineT-TLF.fd
%{_texmfdistdir}/tex/latex/libertine/TS1LinuxLibertineT-TOsF.fd
%{_texmfdistdir}/tex/latex/libertine/biolinum-type1.sty
%{_texmfdistdir}/tex/latex/libertine/biolinum.sty
%{_texmfdistdir}/tex/latex/libertine/libertine-type1.sty
%{_texmfdistdir}/tex/latex/libertine/libertine.sty
%{_texmfdistdir}/tex/latex/libertine/libertineMono-type1.sty
%{_texmfdistdir}/tex/latex/libertine/libertineMono.sty
%{_texmfdistdir}/tex/latex/libertine/libertineRoman.sty
%{_texmfdistdir}/tex/latex/libertine/libertineotf.sty
%doc %{_texmfdistdir}/doc/fonts/libertine/Bugs.txt
%doc %{_texmfdistdir}/doc/fonts/libertine/ChangeLog.txt
%doc %{_texmfdistdir}/doc/fonts/libertine/GPL.txt
%doc %{_texmfdistdir}/doc/fonts/libertine/LICENCE.txt
%doc %{_texmfdistdir}/doc/fonts/libertine/README
%doc %{_texmfdistdir}/doc/fonts/libertine/ToDo.txt
%doc %{_texmfdistdir}/doc/fonts/libertine/g2ntotex.c
%doc %{_texmfdistdir}/doc/fonts/libertine/libertine.pdf
%doc %{_texmfdistdir}/doc/fonts/libertine/libertine.tex
%doc %{_texmfdistdir}/doc/fonts/libertine/rename_enc
%doc %{_texmfdistdir}/doc/fonts/libertine/samples.pdf
%doc %{_texmfdistdir}/doc/fonts/libertine/samples.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18780 |21mr|texlive-libgreek-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27789
# category Package
# catalog-ctan /macros/latex/contrib/libgreek
# catalog-date 2012-09-23 17:25:02 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-libgreek
Version:	1.0
Release:	12
Summary:	Use Libertine or Biolinum Greek glyphs in mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/libgreek
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/libgreek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/libgreek.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/libgreek.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is for LaTeX users who wish to use the Libertine or
Biolinum font for the Greek letters in math mode. It is not
necessary to load the libertine package itself, but of course
the Linux-Libertine/Biolinum fonts and LaTeX support files must
have been installed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/libgreek/libgreek.sty
%doc %{_texmfdistdir}/doc/latex/libgreek/README
%doc %{_texmfdistdir}/doc/latex/libgreek/libgreek.pdf
%doc %{_texmfdistdir}/doc/latex/libgreek/libgreekcheck.tex
#- source
%doc %{_texmfdistdir}/source/latex/libgreek/libgreek.dtx
%doc %{_texmfdistdir}/source/latex/libgreek/libgreek.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18781 |21mr|texlive-lilyglyphs-9.2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33164
# category Package
# catalog-ctan /macros/luatex/latex/lilyglyphs
# catalog-date 2014-03-12 18:15:39 +0100
# catalog-license lppl1.3
# catalog-version 9.2.3
Name:		texlive-lilyglyphs
Version:	9.2.3
Release:	2
Summary:	Access lilypond fragments and glyphs, in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/lilyglyphs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lilyglyphs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lilyglyphs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lilyglyphs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-lilyglyphs.bin = %{EVRD}

%description
The package provides the means to include arbitrary elements of
Lilypond notation, including symbols from Lilypond's Emmentaler
font, in a LaTeX document. The package uses OpenType fonts, and
as a result must be compiled with LuaLaTeX or XeLaTeX.

#-----------------------------------------------------------------------
%files
%{_bindir}/lily-*
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/FONTLOG
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/LICENSE.OFL
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-11.otf
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-13.otf
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-14.otf
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-16.otf
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-18.otf
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-20.otf
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-23.otf
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-26.otf
%{_texmfdistdir}/fonts/opentype/public/lilyglyphs/emmentaler-brace.otf
%{_texmfdistdir}/scripts/lilyglyphs/lily-glyph-commands.py
%{_texmfdistdir}/scripts/lilyglyphs/lily-image-commands.py
%{_texmfdistdir}/scripts/lilyglyphs/lily-rebuild-pdfs.py
%{_texmfdistdir}/scripts/lilyglyphs/lilyglyphs_common.py
%{_texmfdistdir}/tex/lualatex/lilyglyphs/README-tex
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/README-commands
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/accidentals.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/accordion.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/beamednotes.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/clefs.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/dynamics.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/fancyexamples.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/noteheads.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/numbers.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/rests.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/scripts.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/singlenotes.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/commands/timesignatures.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/core/README-core
%{_texmfdistdir}/tex/lualatex/lilyglyphs/core/dotted.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/core/genericAccess.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/core/keyval.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/core/opticals.inp
%{_texmfdistdir}/tex/lualatex/lilyglyphs/lilyglyphs.sty
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-crescHairpin.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-crotchet.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-crotchetDotted.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-crotchetDottedDouble.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-crotchetDottedDoubleDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-crotchetDottedDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-crotchetDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-decrescHairpin.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-demisemiquaver.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-demisemiquaverDotted.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-demisemiquaverDottedDouble.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-demisemiquaverDottedDoubleDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-demisemiquaverDottedDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-demisemiquaverDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-fancyExample.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-halfNote.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-halfNoteDotted.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-halfNoteDottedDouble.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-halfNoteDottedDoubleDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-halfNoteDottedDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-halfNoteDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-quaver.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-quaverDotted.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-quaverDottedDouble.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-quaverDottedDoubleDdown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-quaverDottedDoubleDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-quaverDottedDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-quaverDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-semiquaver.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-semiquaverDotted.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-semiquaverDottedDouble.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-semiquaverDottedDoubleDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-semiquaverDottedDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-semiquaverDown.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-threeBeamedQuavers.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-threeBeamedQuaversI.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-threeBeamedQuaversII.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-threeBeamedQuaversIII.pdf
%{_texmfdistdir}/tex/lualatex/lilyglyphs/pdfs/lily-twoBeamedQuavers.pdf
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/CHANGES.md
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/INSTALL
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/README
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/README-scripts
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/VERSION
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs-example-400.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs-example-600.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs-example-de.pdf
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs-example-de.tex
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs-example.pdf
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs-example.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs-example.tex
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs.pdf
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs.tex
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs_logo/lilyglyphs_logo.pdf
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs_logo/lilyglyphs_logo.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs_logo/lilyglyphs_logo.tex
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/lilyglyphs_private.zip
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-088c978c.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-1981c3c7.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-20e8632d.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-2abb8a04.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-2be182be.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-3b47d3fe.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-3f4afecc.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-40869867.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-5b13ce04.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-5c91a201.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-707477b7.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-76dbcd67.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-7fd84ff8.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-8155deab.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-8b332c94.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-8d82df0c.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-8d8bb8a3.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-907bc72d.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-a2bf82dd.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-ae3fd948.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-b3dc0958.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-b69af986.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-d9988a2c.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-dffaecd2.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lily-f4d0afc9.png
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lilyglyphsManualFonts.sty
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lilyglyphsStyle.sty
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/resources/lilypond-manuals.css
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/documentation/the-feta-font-2-18-0.html
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/license/COPYING.LPPL
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/license/MANIFEST
%doc %{_texmfdistdir}/doc/lualatex/lilyglyphs/license/license-preamble.inp
#- source
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/fonts/README-emmentaler
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/fonts/emmentaler-2-18-0.zip
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/definitions/_template.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/definitions/beamednotes.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/definitions/dynamicsigns.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/definitions/fancyexamples.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/definitions/score.ily
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/definitions/singlenotes.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/definitions/singlenotes.pdf
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-crescHairpin.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-crotchet.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-crotchetDotted.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-crotchetDottedDouble.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-crotchetDottedDoubleDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-crotchetDottedDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-crotchetDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-decrescHairpin.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-demisemiquaver.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-demisemiquaverDotted.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-demisemiquaverDottedDouble.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-demisemiquaverDottedDoubleDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-demisemiquaverDottedDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-demisemiquaverDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-fancyExample.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-halfNote.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-halfNoteDotted.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-halfNoteDottedDouble.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-halfNoteDottedDoubleDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-halfNoteDottedDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-halfNoteDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-quaver.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-quaverDotted.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-quaverDottedDouble.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-quaverDottedDoubleDdown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-quaverDottedDoubleDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-quaverDottedDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-quaverDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-semiquaver.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-semiquaverDotted.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-semiquaverDottedDouble.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-semiquaverDottedDoubleDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-semiquaverDottedDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-semiquaverDown.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-threeBeamedQuavers.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-threeBeamedQuaversI.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-threeBeamedQuaversII.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-threeBeamedQuaversIII.ly
%doc %{_texmfdistdir}/source/luatex/lilyglyphs/glyphimages/generated_src/lily-twoBeamedQuavers.ly

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/lilyglyphs/lily-glyph-commands.py lily-glyph-commands
    ln -sf %{_texmfdistdir}/scripts/lilyglyphs/lily-image-commands.py lily-image-commands
    ln -sf %{_texmfdistdir}/scripts/lilyglyphs/lily-rebuild-pdfs.py lily-rebuild-pdfs
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18782 |21mr|texlive-limap-2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-limap
Version:	2.2
Release:	2
Epoch:		1
Summary:	Typeset maps and blocks according to the Information Mapping method
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gene/limap
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/limap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/limap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Information Mapping method provides a methodology for
structuring and presenting information. It claims to be useful
for readers who are more concerned about finding the right
information than reading the document as a whole. Thus short,
highly structured, and context free pieces of information are
used. A LaTeX style and a LaTeX class are provided. The style
contains definitions to typeset maps and blocks according to
the Information Mapping method. The class provides all
definitions to typeset a whole document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/limap
#- source
%doc %{_texmfdistdir}/source/latex/limap

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18783 |21mr|texlive-linegoal-2.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21523
# category Package
# catalog-ctan /macros/latex/contrib/linegoal
# catalog-date 2011-02-25 20:25:45 +0100
# catalog-license lppl1.3
# catalog-version 2.9
Name:		texlive-linegoal
Version:	2.9
Release:	7
Summary:	A "dimen" that returns the space left on the line
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/linegoal
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/linegoal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/linegoal.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/linegoal.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The linegoal package provides a macro \linegoal to be used with
\setlength: \setlength<some dimen>\linegoal will set <some
dimen> to the horizontal length of the remainder of the line.
This is achieved using the \pdfsavepos primitive of pdftex,
through the zref-savepos package. Example: Some text:
\begin{tabularx}\linegoal{|l|X|} \hline one & two \\ three &
four \\\hline \end{tabularx} will position the table after the
initial text, and make the table fill the rest of the line.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/linegoal/linegoal.sty
%doc %{_texmfdistdir}/doc/latex/linegoal/README
%doc %{_texmfdistdir}/doc/latex/linegoal/linegoal.pdf
#- source
%doc %{_texmfdistdir}/source/latex/linegoal/linegoal.drv
%doc %{_texmfdistdir}/source/latex/linegoal/linegoal.dtx
%doc %{_texmfdistdir}/source/latex/linegoal/linegoal.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18784 |21mr|texlive-lineno-4.41-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21442
# category Package
# catalog-ctan /macros/latex/contrib/lineno
# catalog-date 2011-02-16 17:09:51 +0100
# catalog-license lppl
# catalog-version 4.41
Name:		texlive-lineno
Version:	4.41
Release:	7
Summary:	Line numbers on paragraphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lineno
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lineno.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lineno.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lineno.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Adds line numbers to selected paragraphs with reference
possible through the LaTeX \ref and \pageref cross reference
mechanism. Line numbering may be extended to footnote lines,
using the fnlineno package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lineno/ednmath0.sty
%{_texmfdistdir}/tex/latex/lineno/edtable.sty
%{_texmfdistdir}/tex/latex/lineno/fnlineno.sty
%{_texmfdistdir}/tex/latex/lineno/lineno.sty
%{_texmfdistdir}/tex/latex/lineno/vplref.sty
%doc %{_texmfdistdir}/doc/latex/lineno/CHANGEs.txt
%doc %{_texmfdistdir}/doc/latex/lineno/COPYING.txt
%doc %{_texmfdistdir}/doc/latex/lineno/README
%doc %{_texmfdistdir}/doc/latex/lineno/README.txt
%doc %{_texmfdistdir}/doc/latex/lineno/SRCFILEs.txt
%doc %{_texmfdistdir}/doc/latex/lineno/fnlineno.pdf
%doc %{_texmfdistdir}/doc/latex/lineno/lineno.pdf
%doc %{_texmfdistdir}/doc/latex/lineno/lnosuppl.pdf
%doc %{_texmfdistdir}/doc/latex/lineno/ulineno.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lineno/fnlineno.tex
%doc %{_texmfdistdir}/source/latex/lineno/lineno.tex
%doc %{_texmfdistdir}/source/latex/lineno/lnosuppl.tex
%doc %{_texmfdistdir}/source/latex/lineno/ulineno.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18785 |21mr|texlive-linguex-4.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30815
# category Package
# catalog-ctan /macros/latex/contrib/linguex
# catalog-date 2013-05-29 00:53:00 +0200
# catalog-license lppl
# catalog-version 4.3
Name:		texlive-linguex
Version:	4.3
Release:	12
Summary:	Format linguists' examples
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/linguex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/linguex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/linguex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle comprises two packages: - The linguex package
facilitates the formatting of linguist examples, automatically
taking care of example numbering, indentations, indexed
brackets, and the '*' in grammaticality judgments. - The ps-
trees package provides linguistic trees, building on the macros
of tree-dvips, but overcoming some of the older package's
shortcomings.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/linguex/linguex.sty
%{_texmfdistdir}/tex/latex/linguex/linguho.sty
%{_texmfdistdir}/tex/latex/linguex/ps-trees.sty
%doc %{_texmfdistdir}/doc/latex/linguex/README
%doc %{_texmfdistdir}/doc/latex/linguex/linguex-doc.pdf
%doc %{_texmfdistdir}/doc/latex/linguex/linguex-doc.tex
%doc %{_texmfdistdir}/doc/latex/linguex/ps-trees-doc.pdf
%doc %{_texmfdistdir}/doc/latex/linguex/ps-trees-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18786 |21mr|texlive-lipsum-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lipsum
Version:	1.3
Release:	2
Summary:	Easy access to the Lorem Ipsum dummy text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lipsum
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lipsum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lipsum.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lipsum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package gives you easy access to the Lorem Ipsum dummy
text; an option is available to separate the paragraphs of the
dummy text into TeX-paragraphs. All the paragraphs are taken
with permission from http://lipsum.com/.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lipsum/lipsum.sty
%doc %{_texmfdistdir}/doc/latex/lipsum/README
%doc %{_texmfdistdir}/doc/latex/lipsum/lipsum.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lipsum/lipsum.dtx
%doc %{_texmfdistdir}/source/latex/lipsum/lipsum.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18787 |21mr|texlive-lisp-on-tex-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lisp-on-tex
Version:	2.0
Release:	2
Summary:	Execute LISP code in a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lisp-on-tex
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lisp-on-tex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lisp-on-tex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a LISP interpreter written using TeX
macros; it is provided as a LaTeX package. The interpreter
static scoping, dynamic typing, and eager evaluation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lisp-on-tex
%doc %{_texmfdistdir}/doc/latex/lisp-on-tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18788 |21mr|texlive-listing-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17373
# category Package
# catalog-ctan /macros/latex/contrib/listing
# catalog-date 2010-03-09 13:13:30 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-listing
Version:	1.2
Release:	7
Summary:	Produce formatted program listings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/listing
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listing.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listing.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The listing environment is provided and is similar to figure
and table, although it is not a floating environment. Includes
support for \caption, \label, \ref, and introduces
\listoflistings, \listingname, \listlistingname. It produces a
.lol file. It does not change \@makecaption (unless the option
bigcaptions is used), so packages that change the layout of
\caption still work.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/listing/listing.sty
%doc %{_texmfdistdir}/doc/latex/listing/listing.pdf
%doc %{_texmfdistdir}/doc/latex/listing/listing.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18789 |21mr|texlive-listings-1.8b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-listings
Version:	1.8b
Release:	1
Summary:	Typeset source code listings using LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/listings
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listings.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listings.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listings.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to typeset programs (programming
code) within LaTeX; the source code is read directly by TeX--no
front-end processor is needed. Keywords, comments and strings
can be typeset using different styles (default is bold for
keywords, italic for comments and no special style for
strings). Support for hyperref is provided. To use,
\usepackage{listings}, identify the language of the object to
typeset, using a construct like: \lstset{language=Python}, then
use environment lstlisting for inline code. External files may
be formatted using \lstinputlisting to process a given file in
the form appropriate for the current language. Short (in-line)
listings are also available, using either \lstinline|...| or
|...| (after defining the | token with the \lstMakeShortInline
command).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/listings
%doc %{_texmfdistdir}/doc/latex/listings
#- source
%doc %{_texmfdistdir}/source/latex/listings

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18790 |21mr|texlive-listliketab-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/listliketab
# catalog-date 2006-12-08 20:57:43 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-listliketab
Version:	20190228
Release:	1
Summary:	Typeset lists as tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/listliketab
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listliketab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listliketab.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listliketab.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The listliketab package helps the user make list-like tabulars,
i.e., a tabular that is indistinguishable from an itemize or
enumerate environment. The advantage of using a tabular is that
the user can add additional columns to each entry in the list.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/listliketab/listliketab.sty
%doc %{_texmfdistdir}/doc/latex/listliketab/README
%doc %{_texmfdistdir}/doc/latex/listliketab/listliketab.pdf
#- source
%doc %{_texmfdistdir}/source/latex/listliketab/listliketab.dtx
%doc %{_texmfdistdir}/source/latex/listliketab/listliketab.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18791 |21mr|texlive-listofsymbols-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16134
# category Package
# catalog-ctan /macros/latex/contrib/listofsymbols
# catalog-date 2009-11-29 13:21:16 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-listofsymbols
Version:	0.2
Release:	7
Summary:	Create and manipulate lists of symbols
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/listofsymbols
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listofsymbols.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listofsymbols.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/listofsymbols.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Listofsymbols provides commands to automatically create a list
of symbols (also called notation or nomenclature), and to
handle symbols logically, i.e. define a macro that is expanded
to the desired output and use the macro in the text rather than
`hardcoding' the output into the text. This helps to ensure
consistency throughout the text, especially if there is a
chance that symbols will be changed at some stage. The package
is more or less a combination of what the packages nomencl and
formula do. The concept of creating the list of symbols,
though, is different from the way nomencl.sty does it.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/listofsymbols/listofsymbols.sty
%doc %{_texmfdistdir}/doc/latex/listofsymbols/README
%doc %{_texmfdistdir}/doc/latex/listofsymbols/listofsymbols.pdf
#- source
%doc %{_texmfdistdir}/source/latex/listofsymbols/listofsymbols.dtx
%doc %{_texmfdistdir}/source/latex/listofsymbols/listofsymbols.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18792 |21mr|texlive-lithuanian-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lithuanian
Version:	20190228
Release:	1
Summary:	Lithuanian language support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/lithuanian
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lithuanian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lithuanian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This language support package provides: - Lithuanian language
hyphenation patterns; - Lithuanian support for Babel; -
Lithuanian mapping and metrics for using the URW base-35 Type 1
fonts; - examples for making Lithuanian fonts with fontinst;
and - extra tools for intputenc and fontenc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/lithuanian
%{_texmfdistdir}/fonts/map/dvips/lithuanian
%{_texmfdistdir}/fonts/tfm/public/lithuanian
%{_texmfdistdir}/tex/latex/lithuanian
%doc %{_texmfdistdir}/doc/latex/lithuanian

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18793 |21mr|texlive-liturg-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/liturg
# catalog-date 2008-09-08 11:32:46 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-liturg
Version:	1.0
Release:	7
Summary:	Support for typesetting Catholic liturgical texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/liturg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/liturg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/liturg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/liturg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The packages offers simple macros for typesetting Catholic
liturgical texts, particularly Missal and Breviary texts. The
package assumes availability of Latin typesetting packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/liturg/liturg.sty
%doc %{_texmfdistdir}/doc/latex/liturg/README
%doc %{_texmfdistdir}/doc/latex/liturg/liturg.pdf
%doc %{_texmfdistdir}/doc/latex/liturg/test.tex
#- source
%doc %{_texmfdistdir}/source/latex/liturg/liturg.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18794 |21mr|texlive-lkproof-3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20021
# category Package
# catalog-ctan /macros/latex/contrib/lkproof
# catalog-date 2010-10-07 09:27:06 +0200
# catalog-license gpl
# catalog-version 3.1
Name:		texlive-lkproof
Version:	3.1
Release:	7
Summary:	LK Proof figure macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lkproof
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lkproof.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lkproof.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a pair of commands \infer and \deduce, that
are used in constructing LK proof diagrams.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lkproof/proof.sty
%doc %{_texmfdistdir}/doc/latex/lkproof/lkproof-doc.pdf
%doc %{_texmfdistdir}/doc/latex/lkproof/lkproof-doc.tex
%doc %{_texmfdistdir}/doc/latex/lkproof/proofeg.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18795 |21mr|texlive-lm-2.004-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28119
# category Package
# catalog-ctan /fonts/lm
# catalog-date 2012-05-22 10:49:40 +0200
# catalog-license gfsl
# catalog-version 2.004
Name:		texlive-lm
Version:	2.004
Release:	12
Summary:	Latin modern fonts in outline formats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/lm
License:	GFSL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Latin Modern family of fonts consists of 72 text fonts and
20 mathematics fonts, and is based on the Computer Modern fonts
released into public domain by AMS (copyright (c) 1997 AMS).
The lm font set contains a lot of additional characters, mainly
accented ones, but not exclusively. There is one set of fonts,
available both in Adobe Type 1 format (*.pfb) and in OpenType
format (*.otf). There are five sets of TeX Font Metric files,
corresponding to: Cork encoding (cork-*.tfm); QX encoding (qx-
*.tfm); TeX'n'ANSI aka LY1 encoding (texnansi-*.tfm); T5
(Vietnamese) encoding (t5-*.tfm); and Text Companion for EC
fonts aka TS1 (ts1-*.tfm).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/lm/lmb10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbo10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbsy10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbsy10.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmbsy5.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbsy5.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmbsy7.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbsy7.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmbx10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbx12.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbx5.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbx6.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbx7.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbx8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbx9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbxi10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmbxo10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmcsc10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmcsco10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmdunh10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmduno10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmex10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmex10.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmi10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmi10.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmi12.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmi12.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmi5.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmi5.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmi6.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmi6.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmi7.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmi7.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmi8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmi8.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmi9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmi9.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmib10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmib10.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmib5.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmib5.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmmib7.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmmib7.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmr10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmr12.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmr17.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmr5.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmr6.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmr7.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmr8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmr9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmri10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmri12.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmri7.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmri8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmri9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmro10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmro12.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmro17.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmro8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmro9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmss10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmss12.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmss17.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmss8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmss9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmssbo10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmssbx10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmssdc10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmssdo10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsso10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsso12.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsso17.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsso8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsso9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmssq8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmssqbo8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmssqbx8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmssqo8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsy10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsy10.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmsy5.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsy5.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmsy6.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsy6.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmsy7.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsy7.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmsy8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsy8.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmsy9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmsy9.aft
%{_texmfdistdir}/fonts/afm/public/lm/lmtcsc10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtcso10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtk10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtko10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtl10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtlc10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtlco10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtlo10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtt10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtt12.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtt8.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtt9.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtti10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmtto10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmu10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmvtk10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmvtko10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmvtl10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmvtlo10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmvtt10.afm
%{_texmfdistdir}/fonts/afm/public/lm/lmvtto10.afm
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-cs.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-cssc.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-cstt.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-ec.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-l7x.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-mathex.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-mathit.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-mathsy.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-qx.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-qxsc.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-qxtt.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-cmin.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-cmit.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-cmitt.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-cmrm.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-cmsc.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-cmtt.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-csin.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-csrm.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-cssc.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-cstt.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-plin.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-plit.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-plitt.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-plrm.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-plsc.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-pltt.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rep-t5psn.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rm.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rmsc.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-rmtt.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-t5.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-texnansi.enc
%{_texmfdistdir}/fonts/enc/dvips/lm/lm-ts1.enc
%{_texmfdistdir}/fonts/map/dvipdfm/lm/lm-ec.map
%{_texmfdistdir}/fonts/map/dvipdfm/lm/lm-math.map
%{_texmfdistdir}/fonts/map/dvipdfm/lm/lm-rm.map
%{_texmfdistdir}/fonts/map/dvipdfm/lm/lm-texnansi.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-cs.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-ec.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-l7x.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-math.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-qx.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-rep-cmother.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-rep-cmtext-interpolated.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-rep-cmtext.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-rep-cstext.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-rep-pltext.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-rep-vntext.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-rm.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-t5.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-texnansi.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm-ts1.map
%{_texmfdistdir}/fonts/map/dvips/lm/lm.map
%{_texmfdistdir}/fonts/opentype/public/lm/lmmono10-italic.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmono10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmono12-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmono8-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmono9-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonocaps10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonocaps10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonolt10-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonolt10-boldoblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonolt10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonolt10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoltcond10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoltcond10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoprop10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoprop10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoproplt10-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoproplt10-boldoblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoproplt10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoproplt10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmmonoslant10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman10-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman10-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman10-italic.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman12-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman12-italic.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman12-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman17-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman5-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman5-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman6-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman6-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman7-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman7-italic.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman7-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman8-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman8-italic.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman8-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman9-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman9-italic.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmroman9-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromancaps10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromancaps10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromandemi10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromandemi10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromandunh10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromandunh10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromanslant10-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromanslant10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromanslant12-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromanslant17-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromanslant8-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromanslant9-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmromanunsl10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans10-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans10-boldoblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans12-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans12-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans17-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans17-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans8-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans8-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans9-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsans9-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsansdemicond10-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsansdemicond10-regular.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsansquot8-bold.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsansquot8-boldoblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsansquot8-oblique.otf
%{_texmfdistdir}/fonts/opentype/public/lm/lmsansquot8-regular.otf
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/cs-lmvtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ec-lmvtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/l7x-lmvtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmbsy10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmbsy5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmbsy7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmex10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmi12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmi5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmi6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmi7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmi9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmib10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmib5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmmib7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmsy10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmsy5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmsy6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmsy7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmsy8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/lmsy9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/qx-lmvtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/rm-lmvtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/t5-lmvtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/texnansi-lmvtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbxi10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmbxo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmcsco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmduno10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmri10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmri12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmri7.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmri8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmri9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmro10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmro12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmro17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmro8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmro9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmssbo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmssdo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmsso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmsso12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmsso17.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmsso8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmsso9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmssqbo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmssqbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmssqo8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtcso10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtlc10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtlco10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtti10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmtto10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmvtk10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmvtko10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmvtl10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmvtlo10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/lm/ts1-lmvtto10.tfm
%{_texmfdistdir}/fonts/type1/public/lm/lmb10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmb10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbo10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbo10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbsy10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbsy10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbsy5.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbsy5.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbsy7.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbsy7.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbx10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbx10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbx12.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbx12.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbx5.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbx5.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbx6.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbx6.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbx7.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbx7.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbx8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbx8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbx9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbx9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbxi10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbxi10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmbxo10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmbxo10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmcsc10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmcsc10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmcsco10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmcsco10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmdunh10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmdunh10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmduno10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmduno10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmex10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmex10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmi10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmi10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmi12.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmi12.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmi5.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmi5.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmi6.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmi6.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmi7.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmi7.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmi8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmi8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmi9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmi9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmib10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmib10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmib5.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmib5.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmmib7.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmmib7.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmr10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmr10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmr12.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmr12.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmr17.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmr17.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmr5.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmr5.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmr6.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmr6.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmr7.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmr7.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmr8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmr8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmr9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmr9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmri10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmri10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmri12.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmri12.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmri7.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmri7.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmri8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmri8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmri9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmri9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmro10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmro10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmro12.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmro12.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmro17.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmro17.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmro8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmro8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmro9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmro9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmss10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmss10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmss12.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmss12.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmss17.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmss17.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmss8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmss8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmss9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmss9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmssbo10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmssbo10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmssbx10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmssbx10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmssdc10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmssdc10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmssdo10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmssdo10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsso10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsso10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsso12.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsso12.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsso17.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsso17.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsso8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsso8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsso9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsso9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmssq8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmssq8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmssqbo8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmssqbo8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmssqbx8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmssqbx8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmssqo8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmssqo8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsy10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsy10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsy5.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsy5.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsy6.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsy6.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsy7.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsy7.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsy8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsy8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmsy9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmsy9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtcsc10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtcsc10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtcso10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtcso10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtk10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtk10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtko10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtko10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtl10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtl10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtlc10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtlc10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtlco10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtlco10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtlo10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtlo10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtt10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtt10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtt12.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtt12.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtt8.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtt8.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtt9.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtt9.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtti10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtti10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmtto10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmtto10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmu10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmu10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmvtk10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmvtk10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmvtko10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmvtko10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmvtl10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmvtl10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmvtlo10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmvtlo10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmvtt10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmvtt10.pfm
%{_texmfdistdir}/fonts/type1/public/lm/lmvtto10.pfb
%{_texmfdistdir}/fonts/type1/public/lm/lmvtto10.pfm
%{_texmfdistdir}/tex/latex/lm/il2lmdh.fd
%{_texmfdistdir}/tex/latex/lm/il2lmr.fd
%{_texmfdistdir}/tex/latex/lm/il2lmss.fd
%{_texmfdistdir}/tex/latex/lm/il2lmssq.fd
%{_texmfdistdir}/tex/latex/lm/il2lmtt.fd
%{_texmfdistdir}/tex/latex/lm/il2lmvtt.fd
%{_texmfdistdir}/tex/latex/lm/l7xlmdh.fd
%{_texmfdistdir}/tex/latex/lm/l7xlmr.fd
%{_texmfdistdir}/tex/latex/lm/l7xlmss.fd
%{_texmfdistdir}/tex/latex/lm/l7xlmssq.fd
%{_texmfdistdir}/tex/latex/lm/l7xlmtt.fd
%{_texmfdistdir}/tex/latex/lm/l7xlmvtt.fd
%{_texmfdistdir}/tex/latex/lm/lmodern.sty
%{_texmfdistdir}/tex/latex/lm/ly1lmdh.fd
%{_texmfdistdir}/tex/latex/lm/ly1lmr.fd
%{_texmfdistdir}/tex/latex/lm/ly1lmss.fd
%{_texmfdistdir}/tex/latex/lm/ly1lmssq.fd
%{_texmfdistdir}/tex/latex/lm/ly1lmtt.fd
%{_texmfdistdir}/tex/latex/lm/ly1lmvtt.fd
%{_texmfdistdir}/tex/latex/lm/omllmm.fd
%{_texmfdistdir}/tex/latex/lm/omllmr.fd
%{_texmfdistdir}/tex/latex/lm/omslmr.fd
%{_texmfdistdir}/tex/latex/lm/omslmsy.fd
%{_texmfdistdir}/tex/latex/lm/omxlmex.fd
%{_texmfdistdir}/tex/latex/lm/ot1lmdh.fd
%{_texmfdistdir}/tex/latex/lm/ot1lmr.fd
%{_texmfdistdir}/tex/latex/lm/ot1lmss.fd
%{_texmfdistdir}/tex/latex/lm/ot1lmssq.fd
%{_texmfdistdir}/tex/latex/lm/ot1lmtt.fd
%{_texmfdistdir}/tex/latex/lm/ot1lmvtt.fd
%{_texmfdistdir}/tex/latex/lm/ot4lmdh.fd
%{_texmfdistdir}/tex/latex/lm/ot4lmr.fd
%{_texmfdistdir}/tex/latex/lm/ot4lmss.fd
%{_texmfdistdir}/tex/latex/lm/ot4lmssq.fd
%{_texmfdistdir}/tex/latex/lm/ot4lmtt.fd
%{_texmfdistdir}/tex/latex/lm/ot4lmvtt.fd
%{_texmfdistdir}/tex/latex/lm/qxlmdh.fd
%{_texmfdistdir}/tex/latex/lm/qxlmr.fd
%{_texmfdistdir}/tex/latex/lm/qxlmss.fd
%{_texmfdistdir}/tex/latex/lm/qxlmssq.fd
%{_texmfdistdir}/tex/latex/lm/qxlmtt.fd
%{_texmfdistdir}/tex/latex/lm/qxlmvtt.fd
%{_texmfdistdir}/tex/latex/lm/t1lmdh.fd
%{_texmfdistdir}/tex/latex/lm/t1lmr.fd
%{_texmfdistdir}/tex/latex/lm/t1lmss.fd
%{_texmfdistdir}/tex/latex/lm/t1lmssq.fd
%{_texmfdistdir}/tex/latex/lm/t1lmtt.fd
%{_texmfdistdir}/tex/latex/lm/t1lmvtt.fd
%{_texmfdistdir}/tex/latex/lm/t5lmdh.fd
%{_texmfdistdir}/tex/latex/lm/t5lmr.fd
%{_texmfdistdir}/tex/latex/lm/t5lmss.fd
%{_texmfdistdir}/tex/latex/lm/t5lmssq.fd
%{_texmfdistdir}/tex/latex/lm/t5lmtt.fd
%{_texmfdistdir}/tex/latex/lm/t5lmvtt.fd
%{_texmfdistdir}/tex/latex/lm/ts1lmdh.fd
%{_texmfdistdir}/tex/latex/lm/ts1lmr.fd
%{_texmfdistdir}/tex/latex/lm/ts1lmss.fd
%{_texmfdistdir}/tex/latex/lm/ts1lmssq.fd
%{_texmfdistdir}/tex/latex/lm/ts1lmtt.fd
%{_texmfdistdir}/tex/latex/lm/ts1lmvtt.fd
%doc %{_texmfdistdir}/doc/fonts/lm/GUST-FONT-LICENSE.TXT
%doc %{_texmfdistdir}/doc/fonts/lm/MANIFEST-Latin-Modern.TXT
%doc %{_texmfdistdir}/doc/fonts/lm/README-Latin-Modern.TXT
%doc %{_texmfdistdir}/doc/fonts/lm/lm-hist.txt
%doc %{_texmfdistdir}/doc/fonts/lm/lm-info.pdf
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmot1.pdf
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmot1.tex
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmot4.pdf
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmot4.tex
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmqx.pdf
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmqx.tex
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmt1.pdf
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmt1.tex
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmts1.pdf
%doc %{_texmfdistdir}/doc/fonts/lm/tstlmts1.tex
#- source
%doc %{_texmfdistdir}/source/latex/lm/lm2004mt1.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18796 |21mr|texlive-lmake-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25552
# category Package
# catalog-ctan /macros/latex/contrib/lmake
# catalog-date 2012-03-02 00:29:05 +0100
# catalog-license lppl1.2
# catalog-version 1.0
Name:		texlive-lmake
Version:	1.0
Release:	7
Summary:	Process lists to do repetitive actions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lmake
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lmake.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lmake.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lmake.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to simplify processing of
sequential list-like structures, such as making a series of
'similar' commands from a list of names.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lmake/lmake.sty
%doc %{_texmfdistdir}/doc/latex/lmake/README
%doc %{_texmfdistdir}/doc/latex/lmake/lmake.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lmake/lmake.dtx
%doc %{_texmfdistdir}/source/latex/lmake/lmake.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18797 |21mr|texlive-lmextra-20111103-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-lmextra
Version:	20111103
Release:	7
Summary:	TeXLive lmextra package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lmextra.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive lmextra package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/truetype/hoekwater/lmextra/lmtypewriter10-regular.ttf

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18798 |21mr|texlive-lm-math-1.959-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29044
# category Package
# catalog-ctan /fonts/lm-math
# catalog-date 2013-02-06 18:13:15 +0100
# catalog-license lppl
# catalog-version 1.958
Name:		texlive-lm-math
Version:	1.959
Release:	2
Summary:	OpenType maths fonts for Latin Modern
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/lm-math
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lm-math.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lm-math.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Latin Modern Math is a maths companion for the Latin Modern
family of fonts, in OpenType format. For use with LuaLaTeX or
XeLaTeX, support is available from the unicode-math package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/lm-math/latinmodern-math.otf
%doc %{_texmfdistdir}/doc/fonts/lm-math/GUST-FONT-LICENSE.txt
%doc %{_texmfdistdir}/doc/fonts/lm-math/INSTALL.txt
%doc %{_texmfdistdir}/doc/fonts/lm-math/MANIFEST-Latin-Modern-Math.txt
%doc %{_texmfdistdir}/doc/fonts/lm-math/README-Latin-Modern-Math.txt
%doc %{_texmfdistdir}/doc/fonts/lm-math/math-test-context.tex
%doc %{_texmfdistdir}/doc/fonts/lm-math/math-test.tex
%doc %{_texmfdistdir}/doc/fonts/lm-math/test-context-latinmodern_math.pdf
%doc %{_texmfdistdir}/doc/fonts/lm-math/test-context-latinmodern_math.tex
%doc %{_texmfdistdir}/doc/fonts/lm-math/test-lualatex-latinmodern_math.pdf
%doc %{_texmfdistdir}/doc/fonts/lm-math/test-lualatex-latinmodern_math.tex
%doc %{_texmfdistdir}/doc/fonts/lm-math/test-word-latinmodern_math.docx
%doc %{_texmfdistdir}/doc/fonts/lm-math/test-word-latinmodern_math.pdf
%doc %{_texmfdistdir}/doc/fonts/lm-math/test-xelatex-latinmodern_math.pdf
%doc %{_texmfdistdir}/doc/fonts/lm-math/test-xelatex-latinmodern_math.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18799 |21mr|texlive-locality-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20422
# category Package
# catalog-ctan /macros/latex/contrib/locality
# catalog-date 2010-11-12 15:28:10 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-locality
Version:	0.2
Release:	7
Summary:	Various macros for keeping things local
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/locality
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/locality.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/locality.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/locality.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A toolbox of macros designed to allow the LaTeX programmer to
work around some of the restrictions of the TeX grouping
mechanisms. The present release offers a preliminary view of
the package; not all of its facilities are working optimally.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/locality/locality.sty
%doc %{_texmfdistdir}/doc/latex/locality/README
%doc %{_texmfdistdir}/doc/latex/locality/changes.txt
%doc %{_texmfdistdir}/doc/latex/locality/locality.pdf
#- source
%doc %{_texmfdistdir}/source/latex/locality/locality.dtx
%doc %{_texmfdistdir}/source/latex/locality/locality.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18800 |21mr|texlive-localloc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21934
# category Package
# catalog-ctan /macros/latex/contrib/localloc
# catalog-date 2009-10-06 14:55:10 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-localloc
Version:	20190228
Release:	1
Summary:	Macros for localizing TeX register allocations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/localloc
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/localloc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/localloc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/localloc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package approaches the problem of the shortage of
registers, by providing a mechanism for local allocation. The
package works with Plain TeX, LaTeX and LaTeX 2.09.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/localloc/localloc.sty
%doc %{_texmfdistdir}/doc/latex/localloc/localloc.README
%doc %{_texmfdistdir}/doc/latex/localloc/localloc.pdf
%doc %{_texmfdistdir}/doc/latex/localloc/localtst.tex
#- source
%doc %{_texmfdistdir}/source/latex/localloc/localloc.drv
%doc %{_texmfdistdir}/source/latex/localloc/localloc.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18801 |21mr|texlive-logbox-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24499
# category Package
# catalog-ctan /macros/latex/contrib/logbox
# catalog-date 2011-11-03 08:30:49 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-logbox
Version:	1.0
Release:	7
Summary:	E-TeX showbox facilities for exploration purposes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/logbox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The command \logbox does \showbox without stopping the
compilation. The package's main command is \viewbox*: the box
is typeset (copied) with its dimensions, and its contents are
logged in the .log file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/logbox/logbox.sty
%doc %{_texmfdistdir}/doc/latex/logbox/README
%doc %{_texmfdistdir}/doc/latex/logbox/logbox.pdf
%doc %{_texmfdistdir}/doc/latex/logbox/logbox.png
#- source
%doc %{_texmfdistdir}/source/latex/logbox/logbox.drv
%doc %{_texmfdistdir}/source/latex/logbox/logbox.dtx
%doc %{_texmfdistdir}/source/latex/logbox/logbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18802 |21mr|texlive-logical-markup-utils-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/logical-markup-utils
# catalog-date 2009-11-09 23:05:00 +0100
# catalog-license gpl3
# catalog-version undef
Name:		texlive-logical-markup-utils
Version:	20180303
Release:	2
Summary:	Packages for language-dependent inline quotes and dashes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/logical-markup-utils
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logical-markup-utils.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logical-markup-utils.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle contains two packages: - quoted, for inserting
quotation marks; and - onedash, for inserting dashes. Each
package takes a language name as an option; accepted language
options are american, british, german and polish.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/logical-markup-utils/onedash.sty
%{_texmfdistdir}/tex/latex/logical-markup-utils/quoted.sty
%doc %{_texmfdistdir}/doc/latex/logical-markup-utils/COPYING
%doc %{_texmfdistdir}/doc/latex/logical-markup-utils/README
%doc %{_texmfdistdir}/doc/latex/logical-markup-utils/TODO

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18803 |21mr|texlive-logicpuzzle-2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-logicpuzzle
Version:	2.5
Release:	2
Summary:	Typeset (grid-based) logic puzzles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/logicpuzzle
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logicpuzzle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logicpuzzle.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to typeset various logic puzzles.
At the moment the following puzzles are supported: - 2D-Sudoku
(aka Magiequadrat, Diagon, ...), - Battleship (aka Bimaru,
Marinespiel, Batalla Naval, ...), - Bokkusu (aka Kakurasu,
Feldersummenratsel, ...), - Bridges (akak Bruckenbau, Hashi,
...), - Chaos Sudoku, - Four Winds (aka Eminent Domain,
Lichtstrahl, ...), - Hakyuu (aka Seismic, Ripple Effect, ...),
- Hitori, - Kakuro, - Kendoku (aka Mathdoku, Calcudoku, Basic,
MiniPlu, Ken Ken, Square Wisdom, Sukendo, Caldoku, ..., -
Killer Sudoku (aka Samunapure, Sum Number Place, Sumdoku,
Gebietssummen, ...), - Laser Beam (aka Laserstrahl, ...), -
Magic Labyrinth (aka Magic Spiral, Magisches Labyrinth, ...), -
Magnets (aka Magnetplatte, Magnetfeld, ...), - Masyu (aka
Mashi, {White|Black} Pearls, ...), - Minesweeper (aka
Minensuche, ...), - Number Link, - Resuko, - Schatzsuche, -
Skyline (aka Skycrapers, Wolkenkratzer, Hochhauser, ...),
including Skyline Sudoku and Skyline Sudoku (N*N) variants, -
Slitherlink (aka Fences, Number Line, Dotty Dilemma, Sli-Lin,
Takegaki, Great Wall of China, Loop the Loop, Rundweg,
Gartenzaun, ...), - Star Battle (aka Sternenschlacht, ...), -
Stars and Arrows (aka Sternenhimmel, ...), - Sudoku, - Sun and
Moon (aka Sternenhaufen, Munraito, ...), - Tents and Trees (aka
Zeltlager, Zeltplatz, Camping, ...), and - Tunnel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/logicpuzzle
%{_texmfdistdir}/tex/latex/logicpuzzle
%doc %{_texmfdistdir}/doc/latex/logicpuzzle

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18804 |21mr|texlive-logpap-0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/logpap
# catalog-date 2006-12-08 22:20:56 +0100
# catalog-license lppl
# catalog-version 0.6
Name:		texlive-logpap
Version:	0.6
Release:	7
Summary:	Generate logarithmic graph paper with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/logpap
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logpap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logpap.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/logpap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The logpap package provides four macros for drawing
logarithmic-logarithmic, logarithmic-linear, linear-logarithmic
and (because it was easy to implement) linear-linear graph
paper with LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/logpap/logpap.sty
%doc %{_texmfdistdir}/doc/latex/logpap/README
%doc %{_texmfdistdir}/doc/latex/logpap/example.pdf
%doc %{_texmfdistdir}/doc/latex/logpap/example.tex
#- source
%doc %{_texmfdistdir}/source/latex/logpap/logpap.dtx
%doc %{_texmfdistdir}/source/latex/logpap/logpap.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18805 |21mr|texlive-longnamefilelist-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27889
# category Package
# catalog-ctan /macros/latex/contrib/longnamefilelist
# catalog-date 2012-10-01 08:11:57 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-longnamefilelist
Version:	0.2
Release:	10
Summary:	Tidy \listfiles with long file names
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/longnamefilelist
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/longnamefilelist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/longnamefilelist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/longnamefilelist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package equips LaTeX's \listfiles command with an optional
argument for the number of characters in the longest base
filename. This way you get a neatly aligned file list even when
it contains files whose base names have more than 8 characters.
The package can be combined with the myfilist package as
explained in the documentation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/longnamefilelist/longnamefilelist.sty
%doc %{_texmfdistdir}/doc/latex/longnamefilelist/README
%doc %{_texmfdistdir}/doc/latex/longnamefilelist/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/longnamefilelist/longnamefilelist.pdf
#- source
%doc %{_texmfdistdir}/source/latex/longnamefilelist/longnamefilelist.tex
%doc %{_texmfdistdir}/source/latex/longnamefilelist/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18806 |21mr|texlive-loops-1.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30704
# category Package
# catalog-ctan /macros/latex/contrib/loops
# catalog-date 2013-05-16 16:49:13 +0200
# catalog-license lppl1.3
# catalog-version 1.3
Name:		texlive-loops
Version:	1.3
Release:	11
Summary:	General looping macros for use with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/loops
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/loops.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/loops.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides efficient looping macros for processing
both csv (separated-values) and nsv/tsv (non-separated values)
lists. CSV lists which have associated parsers may be processed
with the tools of the package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/loops/loops.sty
%doc %{_texmfdistdir}/doc/latex/loops/README
%doc %{_texmfdistdir}/doc/latex/loops/loops-pokayoke1.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18807 |21mr|texlive-lpic-0.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20843
# category Package
# catalog-ctan /macros/latex/contrib/lpic
# catalog-date 2010-12-23 21:19:38 +0100
# catalog-license lppl1.3
# catalog-version 0.8
Name:		texlive-lpic
Version:	0.8
Release:	7
Summary:	Put LaTeX material over included graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lpic
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lpic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lpic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a convenient interface to put any LaTeX
material on top of included graphics. The LaTeX material may
also be rotated and typeset on top of a white box overshadowing
the graphics. The coordinates of the LaTeX boxes are given
relative to the original, unscaled graphics; when the graphics
is rescaled, the LaTeX annotations stay at their right places
(unless you do something extreme). In a draft mode, the package
enables you to draw a coordinate grid over the picture for easy
adjustment of positions of the annotations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lpic/lpic.sty
%doc %{_texmfdistdir}/doc/latex/lpic/README
%doc %{_texmfdistdir}/doc/latex/lpic/instructions-differential.eps
%doc %{_texmfdistdir}/doc/latex/lpic/instructions-differential.pdf
%doc %{_texmfdistdir}/doc/latex/lpic/instructions.pdf
%doc %{_texmfdistdir}/doc/latex/lpic/instructions.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18808 |21mr|texlive-lps-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21322
# category Package
# catalog-ctan /macros/latex/contrib/lps
# catalog-date 2011-02-03 16:11:01 +0100
# catalog-license lppl
# catalog-version 0.7
Name:		texlive-lps
Version:	0.7
Release:	7
Summary:	Class for "Logic and Philosophy of Science"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lps
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lps.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lps.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The 'Logic and Philosophy of Science' journal is an online
publication of the University of Trieste (Italy). The class
builds on the standard article class to offer a format that
LaTeX authors may use when submitting to the journal.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lps/lps.cls
%doc %{_texmfdistdir}/doc/latex/lps/README
%doc %{_texmfdistdir}/doc/latex/lps/lps.pdf
%doc %{_texmfdistdir}/doc/latex/lps/lpstemplate.tex
#- source
%doc %{_texmfdistdir}/source/latex/lps/lps.dtx
%doc %{_texmfdistdir}/source/latex/lps/lps.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18809 |21mr|texlive-lroundrect-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lroundrect
Version:	20160624
Release:	1
Summary:	LaTeX macros for utilizing the roundrect MetaPost routines
Group:		Publishing
URL:		http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lroundrect
License:	LPPL
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lroundrect.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lroundrect.doc.tar.xz
Source2:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lroundrect.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package provides ways to use the extremely
configurable rounded rectangles of the roundrect MetaPost
package with LaTeX. It is chiefly useful for examples, but also
has macros for particular types of boxes which are useful on
their own.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lroundrect/lroundrect.sty
%doc %{_texmfdistdir}/doc/latex/lroundrect/README
%doc %{_texmfdistdir}/doc/latex/lroundrect/lppl.txt
%doc %{_texmfdistdir}/doc/latex/lroundrect/lroundrect.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lroundrect/lroundrect.dtx
%doc %{_texmfdistdir}/source/latex/lroundrect/lroundrect.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18810 |21mr|texlive-lsc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/lsc
# catalog-date 2007-03-09 12:50:50 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-lsc
Version:	20190228
Release:	1
Summary:	Typesetting Live Sequence Charts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lsc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lsc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lsc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is similar to the msc package in that it provides
macros for typesetting a variant of sequence diagrams, in this
case the Live Sequence Charts of Damm and Harel. The package
supports the full LSC language of the original LSC paper, the
Klose-extensions for formal verification and some of the Harel-
extensions for the Play-In/Play-Out approach (cf. the manual).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/lsc/lsc.bib
%{_texmfdistdir}/tex/latex/lsc/lsc.sty
%doc %{_texmfdistdir}/doc/latex/lsc/README
%doc %{_texmfdistdir}/doc/latex/lsc/lsc.pdf
%doc %{_texmfdistdir}/doc/latex/lsc/lsc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18811 |21mr|texlive-lshort-bulgarian-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/bulgarian
# catalog-date 2007-12-21 19:41:24 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-lshort-bulgarian
Version:	20190228
Release:	1
Summary:	Bulgarian translation of the "Short Introduction to LaTeX2e"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/bulgarian
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-bulgarian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-bulgarian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The source files, PostScript and PDF files of the Bulgarian
translation of the "Short Introduction to LaTeX 2e".

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-bulgarian/README
%doc %{_texmfdistdir}/doc/latex/lshort-bulgarian/lshort-bg.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-bulgarian/src/lshort-bg.src.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18812 |21mr|texlive-lshort-chinese-4.20-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/chinese
# catalog-date 2008-07-16 16:26:02 +0200
# catalog-license gpl
# catalog-version 4.20
Name:		texlive-lshort-chinese
Version:	4.20
Release:	6
Summary:	Introduction to LaTeX, in Chinese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/chinese
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-chinese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-chinese.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A translation to Chinese of the not so short introduction to
LaTeX2e, presented by the Chinese TeX Society CTeX. The
processed output is created by use of XeTeX.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/README
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/lshort-zh-cn.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/biblio.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/contrib.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/custom.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/fancyhea.sty
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/graphic.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/lshort-a5.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/lshort-base.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/lshort.sty
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/lshort.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/lssym.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/math.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/myclass.sty
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/mylayout.sty
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/overview.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/spec.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/test.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/things.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/title.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/typeset.tex
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/usefulmacros.sty
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/zhfont.sty
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/zhmath.sty
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/zhspacing.sty
%doc %{_texmfdistdir}/doc/latex/lshort-chinese/src/zhulem.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18813 |21mr|texlive-lshort-czech-4.27-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /info/lshort/czech
# catalog-date 2012-07-16 17:38:59 +0200
# catalog-license gpl
# catalog-version 4.27
Name:		texlive-lshort-czech
Version:	4.27
Release:	12
Summary:	Czech translation of the "Short Introduction to LaTeX2e"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/czech
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-czech.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-czech.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is the Czech translation of "A Short Introduction to
LaTeX2e".

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-czech/CHANGES
%doc %{_texmfdistdir}/doc/latex/lshort-czech/MANIFEST
%doc %{_texmfdistdir}/doc/latex/lshort-czech/Makefile
%doc %{_texmfdistdir}/doc/latex/lshort-czech/README
%doc %{_texmfdistdir}/doc/latex/lshort-czech/lshort-cs.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/appendix.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/biblio.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/contrib.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/custom.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/fancyhea.sty
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/graphic.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/lshort-base.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/lshort-cs-a5.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/lshort-cs.ind
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/lshort-cs.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/lshort.ist
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/lshort.sty
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/lssym.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/math.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/mylayout.sty
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/overview.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/spec.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/things.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/title.tex
%doc %{_texmfdistdir}/doc/latex/lshort-czech/src/typeset.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18814 |21mr|texlive-lshort-dutch-1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/dutch
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license gpl
# catalog-version 1.3
Name:		texlive-lshort-dutch
Version:	1.3
Release:	6
Summary:	Introduction to LaTeX in Dutch
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/dutch
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-dutch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-dutch.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is the Dutch (Nederlands) translation of the Short
Introduction to LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-dutch/LEESMIJ
%doc %{_texmfdistdir}/doc/latex/lshort-dutch/README
%doc %{_texmfdistdir}/doc/latex/lshort-dutch/WIJZIGINGEN
%doc %{_texmfdistdir}/doc/latex/lshort-dutch/lshort-nl-1.3.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-dutch/lshort-nl-1.3.src.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18815 |21mr|texlive-lshort-english-6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lshort-english
Version:	6.2
Release:	2
Summary:	A (Not So) Short Introduction to LaTeX2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/english
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-english.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-english.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document derives from a German introduction ('lkurz'),
which was translated and updated; it continues to be updated.
This translation has, in its turn, been translated into several
other languages; see the lshort catalogue entry for the current
list.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-english

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18816 |21mr|texlive-lshort-estonian-5.05-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lshort-estonian
Version:	5.05
Release:	1
Summary:	Estonian introduction to LaTeX
Group:		Publishing
URL:		http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lshort-estonian
License:	LPPL
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lshort-estonian.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lshort-estonian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is the Estonian translation of Short Introduction to
LaTeX2e.


#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-estonian

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18817 |21mr|texlive-lshort-finnish-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/finnish
# catalog-date 2008-12-13 17:42:32 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-lshort-finnish
Version:	20190228
Release:	1
Summary:	Finnish introduction to LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/finnish
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-finnish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-finnish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is the Finnish translation of Short Introduction to
LaTeX2e, with added coverage of Finnish typesetting rules.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/README
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/lyhyt2e.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/asiat.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/erikois.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/esipuhe.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/grafiikka.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/kiitokset.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/kirjallisuus.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/ladonta.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/llyhyt2e.sty
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/lyhyt2e.ind
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/lyhyt2e.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/matikka.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/mylayout.sty
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/otsikko.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/symbolit.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/typeset.tex
%doc %{_texmfdistdir}/doc/latex/lshort-finnish/src/viritys.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18818 |21mr|texlive-lshort-french-5.01fr0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23332
# category Package
# catalog-ctan /info/lshort/french
# catalog-date 2011-06-16 20:49:53 +0200
# catalog-license gpl
# catalog-version 5.01fr-0
Name:		texlive-lshort-french
Version:	5.01fr0
Release:	2
Summary:	Short introduction to LaTeX, French translation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/french
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-french.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-french.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
French version of A Short Introduction to LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-french/README
%doc %{_texmfdistdir}/doc/latex/lshort-french/historique
%doc %{_texmfdistdir}/doc/latex/lshort-french/lshort-fr-5.01fr-0.tgz
%doc %{_texmfdistdir}/doc/latex/lshort-french/lshort-fr.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18819 |21mr|texlive-lshort-german-3.0c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28270
# category Package
# catalog-ctan /info/lshort/german
# catalog-date 2012-11-15 13:07:37 +0100
# catalog-license opl
# catalog-version 3.0
Name:		texlive-lshort-german
Epoch:		1
Version:	3.0c
Release:	2
Summary:	German version of A Short Introduction to LaTeX2e: LaTeX2e-Kurzbeschreibung
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/german
License:	OPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-german.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-german.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive lshort-german package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-german/CHANGES
%doc %{_texmfdistdir}/doc/latex/lshort-german/README.l2kurz
%doc %{_texmfdistdir}/doc/latex/lshort-german/allgemeines.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/anhang.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/bilder.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/eingabefile.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/einleitung.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/fontspec.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-german/fontspecbeispiel.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/l2ksym.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/l2kurz.bib
%doc %{_texmfdistdir}/doc/latex/lshort-german/l2kurz.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-german/l2kurz.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/latexmkrc
%doc %{_texmfdistdir}/doc/latex/lshort-german/mathematik.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/ozean.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-german/ozean.svg
%doc %{_texmfdistdir}/doc/latex/lshort-german/schriften.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/seitenaufbau.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/spezialitaeten.tex
%doc %{_texmfdistdir}/doc/latex/lshort-german/textsatz.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18820 |21mr|texlive-lshort-italian-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/italian
# catalog-date 2007-01-01 00:42:16 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-lshort-italian
Version:	20180303
Release:	2
Summary:	Introduction to LaTeX in Italian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/italian
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-italian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-italian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is the Italian translation of the Short Introduction to
LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-italian/CHANGES
%doc %{_texmfdistdir}/doc/latex/lshort-italian/MANIFEST
%doc %{_texmfdistdir}/doc/latex/lshort-italian/Makefile
%doc %{_texmfdistdir}/doc/latex/lshort-italian/README
%doc %{_texmfdistdir}/doc/latex/lshort-italian/TRANSLATIONS
%doc %{_texmfdistdir}/doc/latex/lshort-italian/fixdate.pl
%doc %{_texmfdistdir}/doc/latex/lshort-italian/itlshort.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-italian/src.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18821 |21mr|texlive-lshort-japanese-20190822-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/japanese
# catalog-date 2006-12-28 00:06:45 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-lshort-japanese
Version:	20190822
Release:	1
Summary:	Japanese version of A Short Introduction to LaTeX2e 
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/japanese
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-japanese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-japanese.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive lshort-japanese package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-japanese/00README
%doc %{_texmfdistdir}/doc/latex/lshort-japanese/CHANGES.jp
%doc %{_texmfdistdir}/doc/latex/lshort-japanese/READ.ME
%doc %{_texmfdistdir}/doc/latex/lshort-japanese/jlshort-1.00.src.tar.gz
%doc %{_texmfdistdir}/doc/latex/lshort-japanese/jlshort.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18822 |21mr|texlive-lshort-korean-4.17-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/korean
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license fdl
# catalog-version 4.17
Name:		texlive-lshort-korean
Version:	4.17
Release:	6
Summary:	Korean introduction to LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/korean
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-korean.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-korean.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A translation of Oetiker's original (not so) short
introduction.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-korean/README.ko
%doc %{_texmfdistdir}/doc/latex/lshort-korean/lshort-kr-src.tar.gz
%doc %{_texmfdistdir}/doc/latex/lshort-korean/lshort-kr.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18823 |21mr|texlive-lshort-mongol-4.26-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/mongolian/lshort-mongol
# catalog-date 2009-11-09 23:05:00 +0100
# catalog-license lppl
# catalog-version 4.26
Name:		texlive-lshort-mongol
Version:	4.26
Release:	6
Summary:	Short introduction to LaTeX, in Mongolian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/mongolian/lshort-mongol
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-mongol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-mongol.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A translation of Oetiker's Not so short introduction.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/00README
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/CHANGES
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/MANIFEST
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/Makefile
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/README
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/TODO
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/TRANSLATIONS
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/fixdate.pl
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/lshort-mn.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/appendix.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/biblio.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/contrib.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/custom.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/fancyhea.sty
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/graphic.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/lshort-a5.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/lshort-base.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/lshort-mn.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/lshort.sty
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/lssym.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/math.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/mylayout.sty
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/overview.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/spec.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/things.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/title.tex
%doc %{_texmfdistdir}/doc/latex/lshort-mongol/src/typeset.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18824 |21mr|texlive-lshort-persian-5.01-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/persian
# catalog-date 2009-11-09 23:05:00 +0100
# catalog-license pd
# catalog-version 5.01:2009-08-04
Name:		texlive-lshort-persian
Version:	5.01
Release:	6
Summary:	Persian (Farsi) introduction to LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/persian
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-persian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-persian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A Persian (Farsi) translation of Oetiker's (not so) short
introduction.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-persian/README
%doc %{_texmfdistdir}/doc/latex/lshort-persian/appendix.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/biblio.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/contrib.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/custom.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/graphic.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/lshort-a5.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/lshort-base.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/lshort.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-persian/lshort.sty
%doc %{_texmfdistdir}/doc/latex/lshort-persian/lshort.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/lssym.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/math.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/mylayout.sty
%doc %{_texmfdistdir}/doc/latex/lshort-persian/overview.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/preface.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/spec.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/things.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/title.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/transpreface.tex
%doc %{_texmfdistdir}/doc/latex/lshort-persian/typeset.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18825 |21mr|texlive-lshort-polish-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/polish
# catalog-date 2006-12-28 00:06:45 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-lshort-polish
Version:	20190228
Release:	1
Summary:	Introduction to LaTeX in Polish
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/polish
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-polish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-polish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is the Polish translation of A Short Introduction to
LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-polish/README
%doc %{_texmfdistdir}/doc/latex/lshort-polish/lshort2e.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-polish/src.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18826 |21mr|texlive-lshort-portuguese-5.01.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22569
# category Package
# catalog-ctan /info/lshort/portuguese
# catalog-date 2011-05-22 11:03:26 +0200
# catalog-license pd
# catalog-version 5.01.0
Name:		texlive-lshort-portuguese
Version:	5.01.0
Release:	6
Summary:	Introduction to LaTeX in Portuguese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/portuguese
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-portuguese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-portuguese.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is the Portuguese translation of A Short Introduction to
LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-portuguese/pt-lshort-5.01.0.src.tar.gz
%doc %{_texmfdistdir}/doc/latex/lshort-portuguese/pt-lshort.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18827 |21mr|texlive-lshort-russian-20190822-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lshort-russian
Version:	20190822
Release:	1
Summary:	Russian introduction to LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/russian
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-russian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-russian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Russian version of A Short Introduction to LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-russian

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18828 |21mr|texlive-lshort-slovak-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/slovak
# catalog-date 2006-12-30 01:42:23 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-lshort-slovak
Version:	20190228
Release:	1
Summary:	Slovak introduction to LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/slovak
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-slovak.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-slovak.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A Slovak translation of Oetiker's (not so) short introduction.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-slovak/slshorte.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-slovak/src.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18829 |21mr|texlive-lshort-slovenian-4.20-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/slovenian
# catalog-date 2008-08-22 10:50:40 +0200
# catalog-license gpl
# catalog-version 4.20
Name:		texlive-lshort-slovenian
Version:	4.20
Release:	6
Summary:	Slovenian translation of lshort
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/slovenian
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-slovenian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-slovenian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A Slovenian translation of the Not So Short Introduction to
LaTeX 2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/README
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/lshort-slovenian.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/biblio.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/contrib.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/custom.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/fancyhea.sty
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/graphic.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/lshort-a5.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/lshort-base.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/lshort-slovenian.sty
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/lshort-slovenian.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/lssym.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/math.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/mylayout.sty
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/overview.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/spec.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/things.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/title.tex
%doc %{_texmfdistdir}/doc/latex/lshort-slovenian/src/typeset.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18830 |21mr|texlive-lshort-spanish-0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lshort-spanish
Version:	0.5
Release:	2
Summary:	Short introduction to LaTeX, Spanish translation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/spanish
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-spanish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-spanish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A Spanish translation of the Short Introduction to LaTeX2e,
version 20.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-spanish

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18831 |21mr|texlive-lshort-thai-1.32-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/thai
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license pd
# catalog-version 1.32
Name:		texlive-lshort-thai
Version:	1.32
Release:	6
Summary:	Introduction to LaTeX in Thai
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/thai
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-thai.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-thai.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is the Thai translation of the Short Introduction to
LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-thai/lsh132.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-thai/lsh132.zip
%doc %{_texmfdistdir}/doc/latex/lshort-thai/readme

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18832 |21mr|texlive-lshort-turkish-4.20-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/turkish
# catalog-date 2007-03-09 12:50:50 +0100
# catalog-license pd
# catalog-version 4.20
Name:		texlive-lshort-turkish
Version:	4.20
Release:	6
Summary:	Turkish introduction to LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/turkish
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-turkish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-turkish.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A Turkish translation of Oetiker's (not so) short introduction.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-turkish/README
%doc %{_texmfdistdir}/doc/latex/lshort-turkish/lshort-tr.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-turkish/trlshort-src.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18833 |21mr|texlive-lshort-ukr-4.00-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/ukrainian
# catalog-date 2008-08-22 10:50:40 +0200
# catalog-license other-free
# catalog-version 4.00
Name:		texlive-lshort-ukr
Version:	4.00
Release:	6
Summary:	Ukrainian version of the LaTeX introduction
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/ukrainian
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-ukr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-ukr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Ukrainian version of A Short Introduction to LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-ukr/lshort-ukr-4.12.src.tar.gz
%doc %{_texmfdistdir}/doc/latex/lshort-ukr/lshort-ukr.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18834 |21mr|texlive-lshort-vietnamese-4.00-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/lshort/vietnamese
# catalog-date 2007-03-09 12:50:50 +0100
# catalog-license lppl
# catalog-version 4.00
Name:		texlive-lshort-vietnamese
Version:	4.00
Release:	6
Summary:	vietnamese version of the LaTeX introduction
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/lshort/vietnamese
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-vietnamese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lshort-vietnamese.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Vietnamese version of A Short Introduction to LaTeX2e.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/README
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/lshort-vi.pdf
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/LocalVariables
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/Makefile
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/README.txt
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/abbr.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/biblio.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/contrib.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/custom.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/fancyhea.sty
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/graphic.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/lshort-print-vi.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/lshort-vi.sty
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/lshort-vi.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/lssym.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/math.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/mylayout.sty
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/overview.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/spec.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/things.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/tiengviet.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/title.tex
%doc %{_texmfdistdir}/doc/latex/lshort-vietnamese/src/typeset.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18835 |21mr|texlive-lstaddons-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26196
# category Package
# catalog-ctan /macros/latex/contrib/lstaddons
# catalog-date 2012-05-03 17:01:13 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-lstaddons
Version:	0.1
Release:	7
Summary:	Add-on packagvess for listings: autogobble and line background
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lstaddons
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lstaddons.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lstaddons.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lstaddons.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle contains a small collection of add-on packages for
the listings package. Current packages are: [?] lstlinebgrd:
colour the background of some or all lines of a listing; and
[?] lstautogobble: set the standard "gobble" option to the
indent of the first line of the code.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lstaddons/lstautogobble.sty
%{_texmfdistdir}/tex/latex/lstaddons/lstlinebgrd.sty
%doc %{_texmfdistdir}/doc/latex/lstaddons/README
%doc %{_texmfdistdir}/doc/latex/lstaddons/lstautogobble.pdf
%doc %{_texmfdistdir}/doc/latex/lstaddons/lstlinebgrd.pdf
#- source
%doc %{_texmfdistdir}/source/latex/lstaddons/lstaddons.ins
%doc %{_texmfdistdir}/source/latex/lstaddons/lstautogobble.dtx
%doc %{_texmfdistdir}/source/latex/lstaddons/lstlinebgrd.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18836 |21mr|texlive-lt3graph-0.1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lt3graph
Version:	0.1.9
Release:	2
Summary:	Provide a graph datastructure for experimental LaTeX3
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/lt3graph
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lt3graph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lt3graph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a 'graph' data structure, for use in
documents that are using the experimental LaTeX 3 syntax.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/lt3graph
%doc %{_texmfdistdir}/doc/latex/lt3graph

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18837 |21mr|texlive-ltablex-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ltablex
Version:	1.1
Release:	2
Summary:	Table package extensions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ltablex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltablex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltablex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Modifies the tabularx environment to combine the features of
the tabularx package (auto-sized columns in a fixed width
table) with those of the longtable package (multi-page tables).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ltablex
%doc %{_texmfdistdir}/doc/latex/ltablex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18838 |21mr|texlive-ltabptch-1.74d-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17533
# category Package
# catalog-ctan /macros/latex/contrib/ltabptch
# catalog-date 2010-03-07 16:35:25 +0100
# catalog-license lppl
# catalog-version 1.74d
Name:		texlive-ltabptch
Version:	1.74d
Release:	7
Summary:	Bug fix for longtable
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ltabptch
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltabptch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltabptch.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A patch for LaTeX bugs tools/3180 and tools/3480. The patch
applies to version 4.11 of longtable.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ltabptch/ltabptch.sty
%doc %{_texmfdistdir}/doc/latex/ltabptch/README
%doc %{_texmfdistdir}/doc/latex/ltabptch/ltabptch.pdf
%doc %{_texmfdistdir}/doc/latex/ltabptch/ltabptch.tex
%doc %{_texmfdistdir}/doc/latex/ltabptch/ltabtest.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18839 |21mr|texlive-ltxdockit-1.2d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21869
# category Package
# catalog-ctan /macros/latex/contrib/ltxdockit
# catalog-date 2010-12-10 17:32:44 +0100
# catalog-license lppl
# catalog-version 1.2c
Name:		texlive-ltxdockit
Version:	1.2d
Release:	2
Summary:	Documentation support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ltxdockit
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxdockit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxdockit.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle, consisting of a simple wrapper class and some
packages, forms a small LaTeX/BibTeX documentation kit; the
author uses it for some of his own packages. The package is not
supported: users should not attempt its use unless they are
capable of dealing with problems unaided. (The actual purpose
of releasing the package is to make it possible for third
parties to compile the documentation of other packages, should
that be necessary.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ltxdockit/btxdockit.sty
%{_texmfdistdir}/tex/latex/ltxdockit/ltxdockit.cfg
%{_texmfdistdir}/tex/latex/ltxdockit/ltxdockit.cls
%{_texmfdistdir}/tex/latex/ltxdockit/ltxdockit.def
%{_texmfdistdir}/tex/latex/ltxdockit/ltxdockit.sty
%doc %{_texmfdistdir}/doc/latex/ltxdockit/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18840 |21mr|texlive-ltxguidex-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ltxguidex
Version:	0.2.0
Release:	2
Epoch:		1
Summary:	TeXLive ltxguidex package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxguidex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxguidex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The ltxguidex document class extends 
ltxguide with a set of environments 
and commands that make writing beautiful
LATEX documentation easier and more natural.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18841 |21mr|texlive-ltxindex-0.1c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ltxindex
# catalog-date 2009-10-01 20:18:08 +0200
# catalog-license gpl
# catalog-version 0.1c
Name:		texlive-ltxindex
Version:	0.1c
Release:	7
Summary:	A LaTeX package to typeset indices with GNU's Texindex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ltxindex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxindex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxindex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package that allows the user to make indexes with GNU's
Texindex program, instead of makeindex. It provides the
indexing commands available in Texinfo by default, but only
defines the concept index (cp) by default -- the user must
define other standard indexes, and there is no provision for
custom indexes. The package is not currently maintained.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ltxindex/ltxindex.sty
%doc %{_texmfdistdir}/doc/latex/ltxindex/README
%doc %{_texmfdistdir}/doc/latex/ltxindex/copying.txt
%doc %{_texmfdistdir}/doc/latex/ltxindex/ltxindex.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ltxindex/ltxindex.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18842 |21mr|texlive-ltxkeys-0.0.3c-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28332
# category Package
# catalog-ctan /macros/latex/contrib/ltxkeys
# catalog-date 2012-11-22 12:57:51 +0100
# catalog-license lppl
# catalog-version 0.0.3c
Name:		texlive-ltxkeys
Epoch:		1
Version:	0.0.3c
Release:	11
Summary:	A robust key parser for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ltxkeys
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxkeys.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxkeys.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides facilities for creating and managing keys
in the sense of the keyval and xkeyval packages, but it is
intended to be more robust and faster. Its robustness comes
from its ability to preserve braces in key values throughout
parsing. The need to preserve braces in key values arises often
in parsing keys (for example, in the xwatermark package). The
package is faster than xkeyval package because (among other
things) it avoids character-wise parsing of key values (called
"selective sanitization" by the xkeyval package). The package
also provides functions for defining and managing keys.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ltxkeys/ltxkeys.sty
%doc %{_texmfdistdir}/doc/latex/ltxkeys/README
%doc %{_texmfdistdir}/doc/latex/ltxkeys/ltxkeys-guide-table1.tex
%doc %{_texmfdistdir}/doc/latex/ltxkeys/ltxkeys-guide.cfg
%doc %{_texmfdistdir}/doc/latex/ltxkeys/ltxkeys-guide.pdf
%doc %{_texmfdistdir}/doc/latex/ltxkeys/ltxkeys-guide.tex
%doc %{_texmfdistdir}/doc/latex/ltxkeys/ltxkeys-test-20121122.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18843 |21mr|texlive-ltxmisc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21927
# category Package
# catalog-ctan /macros/latex/contrib/misc
# catalog-date 2009-01-16 15:12:56 +0100
# catalog-license collection
# catalog-version undef
Name:		texlive-ltxmisc
Version:	20190228
Release:	1
Summary:	Miscellaneous LaTeX packages, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/misc
License:	COLLECTION
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxmisc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive ltxmisc package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ltxmisc/abstbook.cls
%{_texmfdistdir}/tex/latex/ltxmisc/beletter.cls
%{_texmfdistdir}/tex/latex/ltxmisc/bibcheck.sty
%{_texmfdistdir}/tex/latex/ltxmisc/concrete.sty
%{_texmfdistdir}/tex/latex/ltxmisc/flashcard.cls
%{_texmfdistdir}/tex/latex/ltxmisc/iagproc.cls
%{_texmfdistdir}/tex/latex/ltxmisc/linsys.sty
%{_texmfdistdir}/tex/latex/ltxmisc/mitpress.sty
%{_texmfdistdir}/tex/latex/ltxmisc/thrmappendix.sty
%{_texmfdistdir}/tex/latex/ltxmisc/topcapt.sty
%{_texmfdistdir}/tex/latex/ltxmisc/vrbexin.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18844 |21mr|texlive-ltxnew-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21586
# category Package
# catalog-ctan /macros/latex/contrib/ltxnew
# catalog-date 2011-03-02 16:08:00 +0100
# catalog-license lppl1.3
# catalog-version 1.3
Name:		texlive-ltxnew
Version:	1.3
Release:	7
Summary:	A simple means of creating commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ltxnew
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxnew.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxnew.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxnew.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package ltxnew provides \new, \renew and \provide prefixes
for checking definitions. It is designed to work with e-TeX
distributions of LaTeX and relies on the LaTeX internal macro
\@ifdefinable. Local allocation of counters, dimensions, skips,
muskips, boxes, tokens and marks are provided by the etex
package. \new and \renew as well as \provide may be used for
all kind of control sequences. Please refer to the section
"Using \new" of the PDF documentation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ltxnew/ltxnew.sty
%doc %{_texmfdistdir}/doc/latex/ltxnew/README
%doc %{_texmfdistdir}/doc/latex/ltxnew/ltxnew.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ltxnew/ltxnew.dtx
%doc %{_texmfdistdir}/source/latex/ltxnew/ltxnew.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18845 |21mr|texlive-ltxtools-0.0.1a-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24897
# category Package
# catalog-ctan /macros/latex/contrib/ltxtools
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl1.3
# catalog-version 0.0.1a
Name:		texlive-ltxtools
Version:	0.0.1a
Release:	12
Summary:	A collection of LaTeX API macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ltxtools
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxtools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxtools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a bundle of macros that the author uses in the coding
of others of his macro files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ltxtools/ltxtools-base.sty
%{_texmfdistdir}/tex/latex/ltxtools/ltxtools-doc.sty
%{_texmfdistdir}/tex/latex/ltxtools/ltxtools-environ.sty
%{_texmfdistdir}/tex/latex/ltxtools/ltxtools-incluput.sty
%{_texmfdistdir}/tex/latex/ltxtools/ltxtools-index.sty
%{_texmfdistdir}/tex/latex/ltxtools/ltxtools-review.sty
%{_texmfdistdir}/tex/latex/ltxtools/ltxtools-trace.sty
%{_texmfdistdir}/tex/latex/ltxtools/ltxtools.sty
%doc %{_texmfdistdir}/doc/latex/ltxtools/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18846 |21mr|texlive-lua2dox-0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /web/lua2dox
# catalog-date 2013-02-07 14:27:08 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-lua2dox
Version:	0.2
Release:	12
Summary:	Auto-documentation of lua code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/web/lua2dox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lua2dox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lua2dox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-lua2dox.bin = %{EVRD}

%description
The package extends the well-known C-like language autodoc
tool, doxygen, to read and document lua code. In use, you edit
and test your code and periodically run the autodoc tool to
update the documentation, which may be viewed via an html
browser. Autodoc tools can read the code well enough to find
function/... declarations and document them. If the code also
contains appropriatly formatted "magic comments", the tool can
use them to supplement the documentation. The package is a
first prototype of a planned TeX2DoX tool (in development),
which will process joint (La)TeX/lua documents.

#-----------------------------------------------------------------------
%files
%{_bindir}/lua2dox_filter
%{_texmfdistdir}/scripts/lua2dox/lua.def
%{_texmfdistdir}/scripts/lua2dox/lua2dox.lua
%{_texmfdistdir}/scripts/lua2dox/lua2dox_filter
%doc %{_texmfdistdir}/doc/support/lua2dox/ChangeLog
%doc %{_texmfdistdir}/doc/support/lua2dox/Doxyfile
%doc %{_texmfdistdir}/doc/support/lua2dox/README
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/annotated.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/bc_s.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/bdwn.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTApp-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTApp.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTCore__Clock-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTCore__Clock.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTCore__Commandline-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTCore__Commandline.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTCore__IO.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTLua2DoX__filter-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTLua2DoX__filter.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTStream__Read-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTStream__Read.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTStream__Write-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classTStream__Write.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/classes.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/closed.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/doxygen.css
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/doxygen.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/dynsections.js
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/files.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2blank.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2cl.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2doc.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2folderclosed.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2folderopen.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2lastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2link.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2mlastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2mnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2mo.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2node.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2ns.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2plastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2pnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2splitbar.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/ftv2vertline.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/functions.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/functions_func.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/globals.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/globals_func.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/index.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/jquery.js
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/lua2dox_8lua.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/lua2dox_8lua_source.html
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/nav_f.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/nav_g.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/nav_h.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/open.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/sync_off.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/sync_on.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/tab_a.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/tab_b.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/tab_h.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/tab_s.png
%doc %{_texmfdistdir}/doc/support/lua2dox/docs/html/tabs.css
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/Doxyfile
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/animals.lua
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/class.lua
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/animals_8lua.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/animals_8lua_source.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/annotated.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/bc_s.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/bdwn.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classAnimal-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classAnimal.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classAnimal.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classBird-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classBird.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classBird.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classCat-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classCat.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classCat.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classDog-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classDog.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classDog.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classMammal-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classMammal.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classMammal.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classPigeon-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classPigeon.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classPigeon.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classRedKite-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classRedKite.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classRedKite.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/class_8lua.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/class_8lua_source.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/classes.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/closed.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/doxygen.css
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/doxygen.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/dynsections.js
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/files.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2blank.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2cl.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2doc.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2folderclosed.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2folderopen.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2lastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2link.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2mlastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2mnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2mo.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2node.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2ns.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2plastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2pnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2splitbar.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/ftv2vertline.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/functions.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/functions_func.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/globals.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/globals_func.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/hierarchy.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/index.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/jquery.js
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/main_8lua.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/main_8lua_source.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/nav_f.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/nav_g.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/nav_h.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/open.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/sync_off.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/sync_on.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/tab_a.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/tab_b.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/tab_h.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/tab_s.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/docs/html/tabs.css
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/lua/main.lua
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/Doxyfile
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/animals.php
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/animals_8php.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/animals_8php_source.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/annotated.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/bc_s.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/bdwn.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classAnimal-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classAnimal.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classAnimal.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classBird-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classBird.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classBird.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classCat-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classCat.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classCat.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classDog-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classDog.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classDog.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classMammal-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classMammal.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classMammal.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classPigeon-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classPigeon.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classPigeon.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classRedKite-members.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classRedKite.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classRedKite.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/classes.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/closed.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/doxygen.css
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/doxygen.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/dynsections.js
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/files.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2blank.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2cl.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2doc.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2folderclosed.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2folderopen.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2lastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2link.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2mlastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2mnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2mo.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2node.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2ns.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2plastnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2pnode.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2splitbar.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/ftv2vertline.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/functions.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/functions_func.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/globals.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/globals_func.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/globals_vars.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/hierarchy.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/index.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/jquery.js
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/main_8php.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/main_8php_source.html
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/nav_f.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/nav_g.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/nav_h.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/open.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/sync_off.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/sync_on.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/tab_a.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/tab_b.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/tab_h.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/tab_s.png
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/docs/html/tabs.css
%doc %{_texmfdistdir}/doc/support/lua2dox/examples/php/main.php
%doc %{_texmfdistdir}/doc/support/lua2dox/install.bat
%doc %{_texmfdistdir}/doc/support/lua2dox/install.sh
%doc %{_texmfdistdir}/doc/support/lua2dox/lua2dox-refm.pdf
%doc %{_texmfdistdir}/doc/support/lua2dox/lua2dox-refm.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/lua2dox/lua2dox_filter lua2dox_filter
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18847 |21mr|texlive-lua-alt-getopt-0.7.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /support/lua/lua-alt-getopt
# catalog-date 2012-07-10 13:36:48 +0200
# catalog-license other-free
# catalog-version 0.7.0
Name:		texlive-lua-alt-getopt
Version:	0.7.0
Release:	12
Summary:	Process application arguments the same way as getopt_long
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/lua/lua-alt-getopt
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lua-alt-getopt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lua-alt-getopt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
lua_altgetopt is a MIT-licensed module for Lua, for processing
application arguments in the same way as BSD/GNU getopt_long(3)
functions do. This module is made available for lua script
writers to have consistent command line parsing routines.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/lua-alt-getopt/alt_getopt.lua
%doc %{_texmfdistdir}/doc/support/lua-alt-getopt/ChangeLog
%doc %{_texmfdistdir}/doc/support/lua-alt-getopt/Makefile
%doc %{_texmfdistdir}/doc/support/lua-alt-getopt/NEWS
%doc %{_texmfdistdir}/doc/support/lua-alt-getopt/README
%doc %{_texmfdistdir}/doc/support/lua-alt-getopt/alt_getopt
%doc %{_texmfdistdir}/doc/support/lua-alt-getopt/tests/test.out
%doc %{_texmfdistdir}/doc/support/lua-alt-getopt/tests/test.sh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18848 |21mr|texlive-luabibentry-0.1a-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31783
# category Package
# catalog-ctan /macros/luatex/latex/luabibentry
# catalog-date 2013-09-27 07:27:17 +0200
# catalog-license lppl1.3
# catalog-version 0.1a
Name:		texlive-luabibentry
Version:	0.1a
Release:	10
Summary:	Repeat BibTeX entries in a LuaLaTeX document body
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/luabibentry
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luabibentry.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luabibentry.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luabibentry.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package reimplements bibentry, for use in LuaLaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/luabibentry/luabibentry.lua
%{_texmfdistdir}/tex/lualatex/luabibentry/luabibentry.sty
%doc %{_texmfdistdir}/doc/lualatex/luabibentry/News
%doc %{_texmfdistdir}/doc/lualatex/luabibentry/README
%doc %{_texmfdistdir}/doc/lualatex/luabibentry/luabibentry.pdf
#- source
%doc %{_texmfdistdir}/source/lualatex/luabibentry/Makefile
%doc %{_texmfdistdir}/source/lualatex/luabibentry/luabibentry.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18849 |21mr|texlive-luabidi-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30790
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-luabidi
Version:	0.2
Release:	2
Epoch:		1
Summary:	TeXLive luabidi package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luabidi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luabidi.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive luabidi package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/luabidi/arabmaths.tex
%{_texmfdistdir}/tex/lualatex/luabidi/autofootnoterule.tex
%{_texmfdistdir}/tex/lualatex/luabidi/luabidi.sty
%{_texmfdistdir}/tex/lualatex/luabidi/textwidthfootnoterule.tex
%doc %{_texmfdistdir}/doc/lualatex/luabidi/README
%doc %{_texmfdistdir}/doc/lualatex/luabidi/test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18850 |21mr|texlive-lua-check-hyphen-0.7a-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lua-check-hyphen
Version:	0.7a
Release:	3
Summary:	Mark hyphenations in a document, for checking
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/lua-check-hyphen
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lua-check-hyphen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lua-check-hyphen.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package looks at all hyphenation breaks in the document,
comparing them against a white-list prepared by the author. If
a hyphenation break is found, for which there is no entry in
the white-list, the package flags the line where the break
starts. The author may then either add the hyphenation to the
white-list, or adjust the document to avoid the break.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/lua-check-hyphen
%doc %{_texmfdistdir}/doc/lualatex/lua-check-hyphen

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18851 |21mr|texlive-luacode-1.2a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25193
# category Package
# catalog-ctan /macros/luatex/latex/luacode
# catalog-date 2011-12-29 11:37:48 +0100
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-luacode
Version:	1.2a
Release:	2
Summary:	Helper for executing lua code from within TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/luacode
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luacode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luacode.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luacode.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Executing Lua code from within TeX with directlua can sometimes
be tricky: there is no easy way to use the percent character,
counting backslashes may be hard, and Lua comments don't work
the way you expect. The package provides the \luaexec command
and the luacode(*) environments to help with these problems.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/luacode/luacode.sty
%doc %{_texmfdistdir}/doc/lualatex/luacode/News
%doc %{_texmfdistdir}/doc/lualatex/luacode/README
%doc %{_texmfdistdir}/doc/lualatex/luacode/luacode.pdf
#- source
%doc %{_texmfdistdir}/source/lualatex/luacode/Makefile
%doc %{_texmfdistdir}/source/lualatex/luacode/luacode.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18852 |21mr|texlive-luahyphenrules-20200217-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luahyphenrules
Version:	20200217
Release:	2
Epoch:		1
Summary:	TeXLive luahyphenrules package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luahyphenrules.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luahyphenrules.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Preloading hyphenation patterns (or 'hyphen rules.) 
into any format based upon LuaTeX is not required 
in LuaTeX and recent releases of babel don't do 
it anyway. This package is addressed to those who 
just want to select the languages and load their
patterns by means of `language.dat` without loading 
`babel`.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18853 |21mr|texlive-luaindex-0.1b-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25882
# category Package
# catalog-ctan /macros/luatex/latex/luaindex
# catalog-date 2011-08-19 10:28:18 +0200
# catalog-license lppl1.3
# catalog-version 0.1b
Name:		texlive-luaindex
Version:	0.1b
Release:	8
Summary:	Create index using lualatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/luaindex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaindex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaindex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Luaindex provides (yet another) index processor, written in
Lua.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/luaindex/luaindex.lua
%{_texmfdistdir}/tex/lualatex/luaindex/luaindex.sty
%doc %{_texmfdistdir}/doc/lualatex/luaindex/README
%doc %{_texmfdistdir}/doc/lualatex/luaindex/luaindex-example.ldx
%doc %{_texmfdistdir}/doc/lualatex/luaindex/luaindex-example.ltx
%doc %{_texmfdistdir}/doc/lualatex/luaindex/luaindex-example.pdf
%doc %{_texmfdistdir}/doc/lualatex/luaindex/luaindex.ltx
%doc %{_texmfdistdir}/doc/lualatex/luaindex/luaindex.pdf
#- source
%doc %{_texmfdistdir}/source/lualatex/luaindex/luaindex.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18854 |21mr|texlive-luainputenc-0.973-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20491
# category Package
# catalog-ctan /macros/luatex/latex/luainputenc
# catalog-date 2010-11-19 16:55:42 +0100
# catalog-license pd
# catalog-version 0.973
Name:		texlive-luainputenc
Version:	0.973
Release:	7
Summary:	Replacing inputenc for use in LuaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/luainputenc
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luainputenc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luainputenc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luainputenc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LuaTeX operates by default in UTF-8 input; thus LaTeX documents
that need 8-bit character-sets need special treatment. (In
fact, LaTeX documents using UTF-8 with "traditional" -- 256-
glyph -- fonts also need support from this package.) The
package, therefore, replaces the LaTeX standard inputenc for
use under LuaTeX. With a current LuaTeX,the package has the
same behaviour with LuaTeX as inputenc has under pdfTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/luainputenc/luainputenc.lua
%{_texmfdistdir}/tex/lualatex/luainputenc/luainputenc.sty
%{_texmfdistdir}/tex/lualatex/luainputenc/lutf8.def
%{_texmfdistdir}/tex/lualatex/luainputenc/lutf8x.def
%doc %{_texmfdistdir}/doc/lualatex/luainputenc/NEWS
%doc %{_texmfdistdir}/doc/lualatex/luainputenc/README
%doc %{_texmfdistdir}/doc/lualatex/luainputenc/inputenc.sty.diff
%doc %{_texmfdistdir}/doc/lualatex/luainputenc/luainputenc.pdf
%doc %{_texmfdistdir}/doc/lualatex/luainputenc/test.tex
#- source
%doc %{_texmfdistdir}/source/lualatex/luainputenc/Makefile
%doc %{_texmfdistdir}/source/lualatex/luainputenc/luainputenc.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18855 |21mr|texlive-luaintro-0.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luaintro
Version:	0.03
Release:	1
Summary:	Examples from the book "Einfuhrung in LuaTeX und LuaLaTeX"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/luaintro
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaintro.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaintro.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The bundle provides source of all the examples published in the
German book "Einfuhrung in LuaTeX und LuaLaTeX", published by
Lehmans Media and DANTE, Berlin.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/luatex/luaintro

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18856 |21mr|texlive-lualatex-doc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lualatex-doc
Version:	20190228
Release:	1
Summary:	A guide to use of LaTeX with LuaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/luatex/lualatex-doc
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-doc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-doc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-doc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document is a map/guide to the world of LuaLaTeX. Coverage
supports both new users and package developers. Apart from the
introductory material, the document gathers information from
several sources, and offers links to others.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/lualatex/lualatex-doc
#- source
%doc %{_texmfdistdir}/source/lualatex/lualatex-doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18857 |21mr|texlive-lualatex-doc-de-1.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30474
# category Package
# catalog-ctan /info/luatex/lualatex-doc-de
# catalog-date 2013-05-14 17:57:54 +0200
# catalog-license fdl
# catalog-version 1.0
Name:		texlive-lualatex-doc-de
Version:	1.0
Release:	9
Summary:	Guide to LuaLaTeX (German translation)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/luatex/lualatex-doc-de
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-doc-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-doc-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document is a German translation of the map/guide to the
world of LuaLaTeX. Coverage supports both new users and package
developers. Apart from the introductory material, the document
gathers information from several sources, and offers links to
others.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/lualatex-doc-de/lualatex-doc-DE.pdf
%doc %{_texmfdistdir}/doc/latex/lualatex-doc-de/lualatex-doc-DE.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18858 |21mr|texlive-lualatex-math-1.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lualatex-math
Version:	1.8
Release:	1
Summary:	Fixes for mathematics-related LuaLaTeX issues
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/lualatex-math
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-math.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-math.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-math.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package patches a few commands of the LaTeX2e kernel and
the amsmath and mathtools packages to be more compatible with
the LuaTeX engine. It is only meaningful for LuaLaTeX documents
containing mathematical formulas, and does not exhibit any new
functionality. The fixes are mostly moved from the unicode-math
package to this package since they are not directly related to
Unicode mathematics typesetting.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/lualatex-math
%doc %{_texmfdistdir}/doc/lualatex/lualatex-math
#- source
%doc %{_texmfdistdir}/source/lualatex/lualatex-math

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18859 |21mr|texlive-lualatex-truncate-20200217-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lualatex-truncate
Version:	20200217
Release:	2
Epoch:		1
Summary:	TeXLive lualatex-truncate package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-truncate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-truncate.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualatex-truncate.source.tar.xz 
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a wrapper for the truncate 
package, thus fixing issues related to LuaTeX's 
hyphenation algorithm.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
%{_texmfdistdir}/source

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18860 |21mr|texlive-lualibs-2.64-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lualibs
Version:	2.64
Release:	1
Summary:	Additional Lua functions for LuaTeX macro programmers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/lualibs
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualibs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualibs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lualibs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Lualibs is a collection of Lua modules useful for general
programming. The bundle is based on lua modules shipped with
ConTeXt, and are made available in this bundle for use
independent of ConTeXt.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/lualibs
%doc %{_texmfdistdir}/doc/luatex/lualibs
#- source
%doc %{_texmfdistdir}/source/luatex/lualibs

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18861 |21mr|texlive-luamesh-0.51-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luamesh
Version:	0.51
Release:	2
Summary:	luamesh – Computes and draws 2D Delaunay triangulation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/luamesh
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luamesh.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luamesh.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows to compute and draw 2D Delaunay
triangulation. The algorithm is written with lua, and depend
upon the choice of the engine, the drawing is done by MetaPost
(with luamplib) or by TikZ. The Delaunay triangulation
algorithm is the Bowyer and Watson algorithm. Several macros
are provided to draw the global mesh, the set of points, or a
particular step of the algorithm.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/luamesh
%{_texmfdistdir}/scripts/luamesh
%doc %{_texmfdistdir}/doc/lualatex/luamesh

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18862 |21mr|texlive-luamplib-2.20.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34021
# category Package
# catalog-ctan /macros/luatex/generic/luamplib
# catalog-date 2014-03-28 14:02:48 +0100
# catalog-license gpl2
# catalog-version 2.6.1
Name:		texlive-luamplib
Version:	2.20.1
Release:	1
Epoch:		1
Summary:	Use LuaTeX's built-in MetaPost interpreter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/luamplib
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luamplib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luamplib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luamplib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to directly incorporate MetaPost
diagrams into a document, using LuaTeX's built-in MetaPost
library. The facility is only available in PDF mode.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/luamplib/luamplib.lua
%{_texmfdistdir}/tex/luatex/luamplib/luamplib.sty
%doc %{_texmfdistdir}/doc/luatex/luamplib/NEWS
%doc %{_texmfdistdir}/doc/luatex/luamplib/README
%doc %{_texmfdistdir}/doc/luatex/luamplib/luamplib.pdf
%doc %{_texmfdistdir}/doc/luatex/luamplib/test-luamplib-latex.tex
%doc %{_texmfdistdir}/doc/luatex/luamplib/test-luamplib-plain.tex
#- source
%doc %{_texmfdistdir}/source/luatex/luamplib/Makefile
%doc %{_texmfdistdir}/source/luatex/luamplib/luamplib.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18863 |21mr|texlive-luaotfload-2.96-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luaotfload
Version:	2.96
Release:	1
Summary:	OpenType 'loader' for Plain TeX and LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/luaotfload
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaotfload.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaotfload.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaotfload.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-luaotfload.bin = %{EVRD}

%description
The package adopts the TrueType/OpenType Font loader code
provided in ConTeXt, and adapts it to use in Plain TeX and
LaTeX.

#-----------------------------------------------------------------------
%files
%{_bindir}/luaotfload-tool
%{_bindir}/mkluatexfontdb
%{_texmfdistdir}/scripts/luaotfload
%{_texmfdistdir}/tex/luatex/luaotfload
%doc %{_texmfdistdir}/doc/luatex/luaotfload
%doc %{_mandir}/man1/luaotfload-tool.1*
%doc %{_texmfdistdir}/doc/man/man1/luaotfload-tool.man1.pdf
%doc %{_mandir}/man5/luaotfload.conf.5*
%doc %{_texmfdistdir}/doc/man/man5/luaotfload.conf.man5.pdf
#- source
%doc %{_texmfdistdir}/source/luatex/luaotfload

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/luaotfload/luaotfload-tool.lua luaotfload-tool
    ln -sf luaotfload-tool mkluatexfontdb
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1 %{buildroot}%{_mandir}/man5
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man5/*.5 %{buildroot}%{_mandir}/man5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18864 |21mr|texlive-luapackageloader-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luapackageloader
Version:	0.1
Release:	1
Summary:	luapackageloader – Allow LuaTEX to load external Lua packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/luapackageloader
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luapackageloader.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luapackageloader.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows LuaTeX to load packages from the default
package.path and package.cpath locations. This could be useful
to load external Lua modules, including modules installed via
LuaRocks. This package requires ifluatex.



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/luapackageloader
%doc %{_texmfdistdir}/doc/luatex/luapackageloader

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18865 |21mr|texlive-luapersian-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23576
# category Package
# catalog-ctan /macros/luatex/latex/luapersian
# catalog-date 2011-07-18 09:05:38 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-luapersian
Version:	0.1
Release:	7
Summary:	Persian for LaTeX in LuaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/luapersian
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luapersian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luapersian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Persian for LaTeX in LuaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/luapersian/algorithm-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/algorithmic-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/amsart-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/amsbook-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/amsmath-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/amstext-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/array-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/article-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/artikel1-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/artikel2-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/artikel3-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/arydshln-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/backref-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/boek-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/boek3-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/book-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/bookest-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/breqn-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/color-localise-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/commands-ltx-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/commands-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/enumerate-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/environments-ltx-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/environments-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/extarticle-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/extbook-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/extletter-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/extreport-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/fancyhdr-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/fleqn-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/flowfram-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/hvfloat-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/hyperref-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/leqno-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/letter-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/listings-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/loadingorder-luapersian.sty
%{_texmfdistdir}/tex/lualatex/luapersian/localise-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/luapersian-footnote.sty
%{_texmfdistdir}/tex/lualatex/luapersian/luapersian-mathsdigitspec.sty
%{_texmfdistdir}/tex/lualatex/luapersian/luapersian-multiplechoice.sty
%{_texmfdistdir}/tex/lualatex/luapersian/luapersian-persiancal.sty
%{_texmfdistdir}/tex/lualatex/luapersian/luapersian.sty
%{_texmfdistdir}/tex/lualatex/luapersian/luapersianftnxtra.sty
%{_texmfdistdir}/tex/lualatex/luapersian/memoir-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/messages-localise-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/minitoc-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/misc-localise-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/natbib-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/packages-localise-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/pgf-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/ragged2e-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/rapport1-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/rapport3-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/refrep-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/report-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/scrartcl-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/scrbook-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/scrreprt-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/sidecap-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/stabular-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/tabls-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/tabulary-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/tikz-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/tocbibind-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/tocloft-luapersian.def
%{_texmfdistdir}/tex/lualatex/luapersian/wrapfig-luapersian.def
%doc %{_texmfdistdir}/doc/lualatex/luapersian/README
%doc %{_texmfdistdir}/doc/lualatex/luapersian/luapersian.ltx
%doc %{_texmfdistdir}/doc/lualatex/luapersian/luapersian.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18866 |21mr|texlive-luarandom-0.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luarandom
Version:	0.01
Release:	1
Summary:	luarandom – Create lists of random numbers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/luarandom
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luarandom.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luarandom.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package can create lists of random numbers for any given
interval [a;b]. It is possible to get lists with or without
multiple numbers. The random generator will be initialized by
the system time. The package can only be used with LuaLaTeX!



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/luarandom
%doc %{_texmfdistdir}/doc/lualatex/luarandom

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18867 |21mr|texlive-luasseq-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luasseq
Version:	20190228
Release:	1
Summary:	Drawing spectral sequences in LuaLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/luasseq
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luasseq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luasseq.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luasseq.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is an update of the author's sseq package, for use
with LuaLaTeX. This version uses less memory, and operates
faster than the original; it also offers several enhancements.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/luasseq
%{_texmfdistdir}/tex/lualatex/luasseq
%doc %{_texmfdistdir}/doc/lualatex/luasseq
#- source
%doc %{_texmfdistdir}/source/lualatex/luasseq

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18868 |21mr|texlive-luatex-20200329-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luatex
Version:	20200329
Release:	1
Summary:	The LuaTeX engine
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/luatex/base
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexbase.tar.xz
Source3:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexbase.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-luatex.bin
Requires:	texlive-ini-files

Provides:	texlive-luatexbase

%description
LuaTeX is an extended version of pdfTeX using Lua as an
embedded scripting language. The LuaTeX project's main
objective is to provide an open and configurable variant of TeX
while at the same time offering downward compatibility. LuaTeX
uses Unicode (as UTF-8) as its default input encoding, and is
able to use modern (OpenType) fonts (for both text and
mathematics). It should be noted that LuaTeX is still under
development; its specification has been declared stable, but
absolute stability may not in practice be assumed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/config/luatex-unicode-letters.tex
%{_texmfdistdir}/tex/generic/config/luatexiniconfig.tex
%{_texmfdistdir}/web2c/texmfcnf.lua
%_texmf_fmtutil_d/luatex
%doc %{_texmfdistdir}/doc/luatex
%doc %{_mandir}/man1/luatex.1*
%doc %{_texmfdistdir}/doc/man/man1/luatex.man1.pdf
%doc %{_mandir}/man1/texlua.1*
%doc %{_texmfdistdir}/doc/man/man1/texlua.man1.pdf
%doc %{_mandir}/man1/texluac.1*
%doc %{_texmfdistdir}/doc/man/man1/texluac.man1.pdf
%doc %{_mandir}/man1/dviluatex.1*
%doc %{_texmfdistdir}/doc/man/man1/dviluatex.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2 -a3

perl -pi -e 's%^(\s*TEXMFMAIN\s+=\s+").*%$1%{_texmfdistdir}",%;'				\
	 -e 's%\bTEXMFCONTEXT\b%TEXMFDIST%g;'						\
	 -e 's%^(\s*TEXMFDIST\s+=\s+).*%$1"%{_texmfdistdir}",%;'			\
	 -e 's%^(\s*TEXMFLOCAL\s+=\s+).*%$1"%{_texmflocaldir}",%;'			\
	 -e 's%^(\s*TEXMFSYSVAR\s+=\s+).*%$1"%{_texmfvardir}",%;'			\
	 -e 's%^(\s*TEXMFSYSCONFIG\s+=\s+).*%$1"%{_texmfconfdir}",%;'			\
	 -e 's%^(\s*TEXMFHOME\s+=\s+").*%$1\$HOME/texmf",%;'				\
	 -e 's%^(\s*TEXMFVAR\s+=\s+").*%$1\$HOME/.texlive2013/texmf-var",%;'		\
	 -e 's%^(\s*TEXMFCONFIG\s+=\s+").*%$1\$HOME/.texlive2013/texmf-config",%;'	\
	 -e 's%^(\s*FONTCONFIG_PATH\s+=\s+").*%$1%{_sysconfdir}/fonts",%;'		\
	 -e 's|^local texmflocal.*$||;'							\
	 -e 's|^texmflocal.*$||;'							\
	texmf-dist/web2c/texmfcnf.lua

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/luatex <<EOF
#
# from luatex:
luatex luatex language.def,language.dat.lua luatex.ini
dviluatex luatex language.def,language.dat.lua dviluatex.ini
luajittex luajittex language.def,language.dat.lua luatex.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18869 |21mr|texlive-luatexbase-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luatexbase
Version:	1.3
Release:	2
Summary:	Basic resource management for LuaTeX code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/luatexbase
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexbase.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexbase.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexbase.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides basic facilities for LuaTeX macro
programmers, mostly resource allocation and convenience
packages. Provided are: - luatexbase-attr: attribute
allocation; - luatexbase-cctb: catcode table allocation; -
luatexbase-compat: compatibility helpers; - luatexbase-loader:
Lua module loading; - luatexbase-modutils: Lua module
declaration; - luatexbase-mcb: callbacks extension; and -
luatexbase-regs: allocation of registers and the like. In
addition, the (unadorned) luatexbase package loads all the
above in one fell swoop.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/luatexbase
%doc %{_texmfdistdir}/doc/luatex/luatexbase
#- source
%doc %{_texmfdistdir}/source/luatex/luatexbase

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18870 |21mr|texlive-luatexja-20190408.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-luatexja
Version:	20190408.0
Release:	1
Summary:	Typeset Japanese with lua(la)tex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/luatexja
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexja.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexja.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexja.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers support for typesetting Japanese documents
with LuaTeX. Either of the Plain and LaTeX2e formats may be
used with the package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/luatexja
%doc %{_texmfdistdir}/doc/luatex/luatexja
#- source
%doc %{_texmfdistdir}/source/luatex/luatexja

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18871 |21mr|texlive-luatexko-1.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34018
# category Package
# catalog-ctan /macros/luatex/generic/luatexko
# catalog-date 2014-05-11 12:36:43 +0200
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-luatexko
Version:	1.24
Release:	1
Summary:	Typeset Korean with Lua(La)TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/luatexko
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexko.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatexko.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a Lua(La)TeX macro package that supports typesetting
Korean documents. LuaTeX version 0.76+ and luaotfload package
version 2.2+ are required. This package also requires both cjk-
ko and xetexko packages for its full functionality.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/luatexko/luatexko-core.sty
%{_texmfdistdir}/tex/luatex/luatexko/luatexko-normalize.lua
%{_texmfdistdir}/tex/luatex/luatexko/luatexko-uhc2utf8.lua
%{_texmfdistdir}/tex/luatex/luatexko/luatexko.lua
%{_texmfdistdir}/tex/luatex/luatexko/luatexko.sty
%doc %{_texmfdistdir}/doc/luatex/luatexko/ChangeLog
%doc %{_texmfdistdir}/doc/luatex/luatexko/README
%doc %{_texmfdistdir}/doc/luatex/luatexko/luatexko-doc.pdf
%doc %{_texmfdistdir}/doc/luatex/luatexko/luatexko-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18872 |21mr|texlive-luatextra-1.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20747
# category Package
# catalog-ctan /macros/luatex/latex/luatextra
# catalog-date 2010-12-14 15:25:48 +0100
# catalog-license pd
# catalog-version 1.0.1
Name:		texlive-luatextra
Version:	1.0.1
Release:	7
Summary:	Additional macros for Plain TeX and LaTeX in LuaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/luatextra
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatextra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatextra.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luatextra.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a coherent extended programming
environment for use with luaTeX. It loads packages fontspec,
luatexbase and lualibs, and provides additional user-level
features and goodies. The package is under development, and its
specification may be expected to change.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/luatextra/luatextra.sty
%doc %{_texmfdistdir}/doc/lualatex/luatextra/News
%doc %{_texmfdistdir}/doc/lualatex/luatextra/README
%doc %{_texmfdistdir}/doc/lualatex/luatextra/luatextra.pdf
%doc %{_texmfdistdir}/doc/lualatex/luatextra/test.tex
#- source
%doc %{_texmfdistdir}/source/lualatex/luatextra/Makefile
%doc %{_texmfdistdir}/source/lualatex/luatextra/luatextra.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18873 |21mr|texlive-lua-visual-debug-0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lua-visual-debug
Version:	0.7
Release:	1
Summary:	Visual debugging with LuaLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/lua-visual-debug
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lua-visual-debug.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/lua-visual-debug.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses lua code to provide visible indications of
boxes, glues, kerns and penalties in the PDF output. The
package is known to work in LaTeX and Plain TeX documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/lua-visual-debug
%doc %{_texmfdistdir}/doc/luatex/lua-visual-debug

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18874 |21mr|texlive-luaxml-0.0.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32741
# category Package
# catalog-ctan /macros/luatex/generic/luaxml
# catalog-date 2013-05-27 20:07:27 +0200
# catalog-license other-free
# catalog-version 0.0.2
Name:		texlive-luaxml
Version:	0.0.2
Release:	11
Summary:	Lua library for reading and serialising XML files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/luaxml
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaxml.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/luaxml.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a redistribution of a pure lua xml library, LuaXML. The
library was originally distributed as part of the odsfile
package, but is made available separately in the hope that it
can be useful for other projects.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/luatex/luaxml/dom-sample.lua
%{_texmfdistdir}/tex/luatex/luaxml/luaxml-mod-handler.lua
%{_texmfdistdir}/tex/luatex/luaxml/luaxml-mod-xml.lua
%{_texmfdistdir}/tex/luatex/luaxml/luaxml-pretty.lua
%{_texmfdistdir}/tex/luatex/luaxml/luaxml-selectors.lua
%{_texmfdistdir}/tex/luatex/luaxml/luaxml-stack.lua
%{_texmfdistdir}/tex/luatex/luaxml/luaxml-testxml.lua
%doc %{_texmfdistdir}/doc/luatex/luaxml/README
%doc %{_texmfdistdir}/doc/luatex/luaxml/luaxml.pdf
%doc %{_texmfdistdir}/doc/luatex/luaxml/luaxml.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18875 |21mr|texlive-lwarp-0.905-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lwarp
Version:	0.905
Release:	1
Summary:	Converts LaTeX to HTML
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/lwarp
License:	LPPL1.3
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/lwarp.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/lwarp.doc.tar.xz
Source2:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/lwarp.source.tar.xz

BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package converts LaTeX to HTML by using LaTeX to process
the user's document and generate HTML tags. External utility
programs are only used for the final conversion of text and
images. Math may be represented by SVG files or MathJax.
Hundreds of LaTeX packages are supported, and their load order
is automatically verified. Documents may be produced by LaTeX,
LuaLaTeX, XeLaTeX, and by several CJK engines, classes, and
packages. A texlua script automates compilation, index,
glossary, and batch image processing, and also supports
latexmk. Configuration is semi-automatic at the first manual
compile. Support files are self-generated. Print and HTML
versions of each document may coexist. Assistance is provided
for HTML import into EPUB conversion software and word
processors. Requirements include the commonly-available Poppler
utilities, and Perl. Detailed installation instructions are
included for each of the major operating systems and TeX
distributions. A quick-start tutorial is provided.

#-----------------------------------------------------------------------
%files
%{_bindir}/lwarpmk
%{_texmfdistdir}/tex/latex/lwarp
%{_texmfdistdir}/scripts/lwarp

%doc %{_texmfdistdir}/doc/latex/lwarp
#- source
%doc %{_texmfdistdir}/source/latex/lwarp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/lwarp/lwarpmk.lua lwarpmk
popd
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/tex texmf-dist/scripts texmf-dist/doc texmf-dist/source %{buildroot}%{_texmfdistdir}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18876 |21mr|texlive-ly1-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ly1
Version:	20190228
Release:	1
Summary:	Support for LY1 LaTeX encoding
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/psfonts/ly1
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ly1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ly1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Y&Y 'texnansi' (TeX and ANSI, for Microsoft interpretations
of ANSI standards) encoding lives on, even after the decease of
the company; it is known in the LaTeX scheme of things as LY1
encoding. This bundle includes metrics and LaTeX macros to use
the basic three (Times, Helvetica and Courier) Adobe Type 1
fonts in LaTeX using LY1 encoding.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/dvips/ly1
%{_texmfdistdir}/fonts/map/dvips/ly1
%{_texmfdistdir}/fonts/tfm/adobe/ly1
%{_texmfdistdir}/fonts/vf/adobe/ly1
%{_texmfdistdir}/tex/latex/ly1
%{_texmfdistdir}/tex/plain/ly1
%doc %{_texmfdistdir}/doc/fonts/ly1

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18877 |21mr|texlive-lyluatex-20190528-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-lyluatex
Version:	20190528
Release:	1
Summary:	Commands to include lilypond scores within a (Lua)LaTeX document
Group:		Publishing
URL:		https://ctan.org/pkg/lyluatex
License:	MIT
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lyluatex.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/lyluatex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides macros for the inclusion of LilyPond scores within LuaLaTeX. 
It calls to compile scores, then includes the produced files. 
Dependencies: currfile, environ, graphicx, luaotfload, luatexbase, metalogo, minibox, pdfpages, xkeyval.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%{_texmfdistdir}/scripts
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc scripts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18878 |21mr|texlive-macqassign-1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/macqassign
# catalog-date 2009-03-01 13:29:14 +0100
# catalog-license lppl
# catalog-version 1
Name:		texlive-macqassign
Version:	1
Release:	7
Summary:	Typeset assignments for Macquarie University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/macqassign
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/macqassign.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/macqassign.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive macqassign package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/macqassign/macqassign.cls
%doc %{_texmfdistdir}/doc/latex/macqassign/README
%doc %{_texmfdistdir}/doc/latex/macqassign/logo.ps
%doc %{_texmfdistdir}/doc/latex/macqassign/sample-assign.pdf
%doc %{_texmfdistdir}/doc/latex/macqassign/sample-assign.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18879 |21mr|texlive-macros2e-0.4a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-macros2e
Version:	0.4a
Release:	2
Summary:	A list of internal LaTeX2e macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/macros2e
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/macros2e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/macros2e.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This document lists the internal macros defined by the LaTeX2e
base files which can be also useful to package authors. The
macros are hyper-linked to their description in source2e. For
this to work both PDFs must be inside the same directory. This
document is not yet complete in content and format and may miss
some macros.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/macros2e

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18880 |21mr|texlive-macroswap-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31498
# category Package
# catalog-ctan /macros/latex/contrib/macroswap
# catalog-date 2013-08-21 23:10:13 +0200
# catalog-license lppl1.2
# catalog-version 1.1
Name:		texlive-macroswap
Version:	1.1
Release:	10
Summary:	Swap the definitions of two LaTeX macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/macroswap
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/macroswap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/macroswap.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/macroswap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides simple utility methods to swap the meaning
(token expansion) of two macros by name.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/macroswap/macroswap.sty
%doc %{_texmfdistdir}/doc/latex/macroswap/Makefile
%doc %{_texmfdistdir}/doc/latex/macroswap/README
%doc %{_texmfdistdir}/doc/latex/macroswap/macroswap.pdf
#- source
%doc %{_texmfdistdir}/source/latex/macroswap/macroswap.dtx
%doc %{_texmfdistdir}/source/latex/macroswap/macroswap.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18881 |21mr|texlive-mafr-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mafr
# catalog-date 2007-03-09 22:25:45 +0100
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-mafr
Version:	1.0
Release:	7
Summary:	Mathematics in accord with French usage
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mafr
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mafr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mafr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides settings and macros for typesetting
mathematics with LaTeX in compliance with French usage. It
comes with two document classes, 'fiche' and 'cours', useful to
create short high school documents such as tests or lessons.
The documentation is in French.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mafr/cours.cls
%{_texmfdistdir}/tex/latex/mafr/fiche.cls
%{_texmfdistdir}/tex/latex/mafr/mafr.sty
%doc %{_texmfdistdir}/doc/latex/mafr/ALIRE
%doc %{_texmfdistdir}/doc/latex/mafr/COPYING
%doc %{_texmfdistdir}/doc/latex/mafr/README
%doc %{_texmfdistdir}/doc/latex/mafr/docmafr.pdf
%doc %{_texmfdistdir}/doc/latex/mafr/docmafr.tex
%doc %{_texmfdistdir}/doc/latex/mafr/triangle.eps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18882 |21mr|texlive-magaz-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24694
# category Package
# catalog-ctan /macros/latex/contrib/magaz
# catalog-date 2011-11-29 11:02:24 +0100
# catalog-license other-free
# catalog-version 0.4
Name:		texlive-magaz
Version:	0.4
Release:	7
Summary:	Magazine layout
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/magaz
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/magaz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/magaz.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The current version does special formatting for the first line
of text in a paragraph. The package is part of a larger body of
tools which remain in preparation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/magaz/magaz.sty
%doc %{_texmfdistdir}/doc/latex/magaz/magaz.pdf
%doc %{_texmfdistdir}/doc/latex/magaz/magaz.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18883 |21mr|texlive-magyar-20120326-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25806
# category Package
# catalog-ctan /language/hungarian/babel/magyar.ldf
# catalog-date 2012-03-26 14:33:04 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-magyar
Version:	20120326
Release:	5
Summary:	Hungarian language definition for Babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hungarian/babel/magyar.ldf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/magyar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/magyar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is an interim release of a new version of the Magyar
language definition for babel.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/magyar/magyar.ldf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18884 |21mr|texlive-mailing-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mailing
Version:	20190228
Release:	1
Summary:	Macros for mail merging
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mailing
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mailing.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mailing.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mailing.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is for use when sending a large number of letters,
all with the same body text. The package's \addressfile command
is used to specify who the letter's to be sent to; the body of
the \mailingtext command specifies the text of the letters,
possibly using macros defined in the \addressfile.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mailing
%doc %{_texmfdistdir}/doc/latex/mailing
#- source
%doc %{_texmfdistdir}/source/latex/mailing

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18885 |21mr|texlive-mailmerge-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mailmerge
# catalog-date 2009-11-09 23:10:10 +0100
# catalog-license lppl1.2
# catalog-version 1.0
Name:		texlive-mailmerge
Version:	1.0
Release:	7
Summary:	Repeating text field substitution
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mailmerge
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mailmerge.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mailmerge.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mailmerge.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package mailmerge provides an interface to produce text
from a template, where fields are replaced by actual data, as
in a database. The package may be used to produce several
letters from a template, certificates or other such documents.
It allows access to the entry number, number of entries and so
on.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mailmerge/mailmerge.sty
%doc %{_texmfdistdir}/doc/latex/mailmerge/README
%doc %{_texmfdistdir}/doc/latex/mailmerge/mailmerge.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mailmerge/mailmerge.dtx
%doc %{_texmfdistdir}/source/latex/mailmerge/mailmerge.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18886 |21mr|texlive-makebarcode-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/makebarcode
# catalog-date 2008-08-22 15:19:59 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-makebarcode
Version:	1.0
Release:	7
Summary:	Print various kinds 2/5 and Code 39 bar codes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/makebarcode
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebarcode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebarcode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains macros for printing various 2/5 bar codes
and Code 39 bar codes. The macros do not use fonts but create
the bar codes directly using vertical rules. It is therefore
possible to vary width to height ratio, ratio of thin and thick
bars. The package is therefore convenient for printing ITF bar
codes as well as bar codes for identification labels for HP
storage media.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/makebarcode/makebarcode.sty
%doc %{_texmfdistdir}/doc/latex/makebarcode/License.txt
%doc %{_texmfdistdir}/doc/latex/makebarcode/README
%doc %{_texmfdistdir}/doc/latex/makebarcode/makebarcode.pdf
%doc %{_texmfdistdir}/doc/latex/makebarcode/makebarcode.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18887 |21mr|texlive-makebase-20160624-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-makebase
Version:	20160624
Release:	2
Summary:	Typeset counters in a different base
Group:		Publishing
URL:		https://ctan.org/pkg/makebase
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebase.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebase.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package typesets a LaTeX counter such as page in an
arbitrary base (default 16). It does not change font or
typeface. The package extends the functionality of the existing
hex LaTeX 2.09 package and provides documentation. However, the
author is not a mathematician, and suggestions for rewriting
the code are welcomed. Warning: this is alpha software and may
contain bugs. Please report problems to the author.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18888 |21mr|texlive-makebox-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/makebox
# catalog-date 2006-12-02 14:51:32 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-makebox
Version:	0.1
Release:	7
Summary:	Defines a \makebox* command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/makebox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makebox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Define a \makebox* command that does the same as a \makebox
command, except that the width is given by a sample text
instead of an explicit length measure.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/makebox/makebox.sty
%doc %{_texmfdistdir}/doc/latex/makebox/ChangeLog
%doc %{_texmfdistdir}/doc/latex/makebox/README
%doc %{_texmfdistdir}/doc/latex/makebox/getversion.tex
%doc %{_texmfdistdir}/doc/latex/makebox/makebox.pdf
%doc %{_texmfdistdir}/doc/latex/makebox/makebox.xml
%doc %{_texmfdistdir}/doc/latex/makebox/testmakebox.tex
#- source
%doc %{_texmfdistdir}/source/latex/makebox/Makefile
%doc %{_texmfdistdir}/source/latex/makebox/makebox.dtx
%doc %{_texmfdistdir}/source/latex/makebox/makebox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18889 |21mr|texlive-makecell-0.1e-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/makecell
# catalog-date 2009-09-07 01:31:27 +0200
# catalog-license lppl
# catalog-version 0.1e
Name:		texlive-makecell
Version:	0.1e
Release:	7
Summary:	Tabular column heads and multilined cells
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/makecell
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecell.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecell.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecell.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package supports common layouts for tabular column heads
in whole documents, based on one-column tabular environment. In
addition, it can create multi-lined tabular cells. The Package
also offers: -- a macro which changes the vertical space around
all the cells in a tabular environment (similar to the function
of the tabls package, but using the facilities of the array); -
- macros for multirow cells, which use the facilities of the
multirow package; -- macros to number rows in tables, or to
skip cells; -- diagonally divided cells; and -- horizontal
lines in tabular environments with defined thickness.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/makecell/makecell.sty
%doc %{_texmfdistdir}/doc/latex/makecell/README
%doc %{_texmfdistdir}/doc/latex/makecell/makecell-rus.pdf
%doc %{_texmfdistdir}/doc/latex/makecell/makecell-rus.tex
%doc %{_texmfdistdir}/doc/latex/makecell/makecell.pdf
#- source
%doc %{_texmfdistdir}/source/latex/makecell/makecell.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18890 |21mr|texlive-makecirc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/makecirc
# catalog-date 2006-11-19 21:19:11 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-makecirc
Version:	20190228
Release:	1
Summary:	A MetaPost library for drawing electrical circuit diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/makecirc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecirc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecirc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MakeCirc is a MetaPost library that contains diverse symbols
for use in circuit diagrams. MakeCirc offers a high quality
tool, with a simple syntax. MakeCirc is completely integrated
with LaTeX documents and with other MetaPost drawing/graphic.
Its output is a PostScript file. MakeCirc only requires (La)TeX
and MetaPost to work.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/makecirc/ejemplos.mp
%{_texmfdistdir}/metapost/makecirc/latex.mp
%{_texmfdistdir}/metapost/makecirc/makecirc.mp
%doc %{_texmfdistdir}/doc/metapost/makecirc/MakeCirc-en.pdf
%doc %{_texmfdistdir}/doc/metapost/makecirc/MakeCirc.pdf
%doc %{_texmfdistdir}/doc/metapost/makecirc/README
%doc %{_texmfdistdir}/doc/metapost/makecirc/ejemplos.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18891 |21mr|texlive-makecmds-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/makecmds
# catalog-date 2009-09-03 08:40:46 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-makecmds
Version:	20190228
Release:	1
Summary:	The new \makecommand command always (re)defines a command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/makecmds
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecmds.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecmds.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecmds.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a \makecommand command, which is like
\(re)newcommand except it always (re)defines a command. There
is also \makeenvironment and \provideenvironment for
environments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/makecmds/makecmds.sty
%doc %{_texmfdistdir}/doc/latex/makecmds/README
%doc %{_texmfdistdir}/doc/latex/makecmds/makecmds.pdf
#- source
%doc %{_texmfdistdir}/source/latex/makecmds/makecmds.dtx
%doc %{_texmfdistdir}/source/latex/makecmds/makecmds.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18892 |21mr|texlive-makecookbook-20181206-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-makecookbook
Version:	20181206
Release:	2
Summary:	Make a Cookbook
Group:		Publishing
URL:		https://ctan.org/pkg/makecookbook
License:	LPPL1.3c
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecookbook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makecookbook.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The makecookbook bundle contains the files needed to create a
nice quality family cookbook in a form ready to submit to most
print-on-demand companies. Modifiable choices have been made
regarding standard book features such as trim size, margins,
headers/footers, chapter heading formatting, front matter
(copyright page, table of contents, etc.) and back matter
(index). Commands and environments have been created to format
the food stories and recipes. The user will need to: supply
their own food stories and recipes(!), and install the needed
fonts. We assume a LuaTeX compile. Please note that no new
document class or package is included here. Rather, we provide
a modifiable preamble and a small number of other files that,
together, fully support creation of all of the internal pages
of a cookbook (i.e., everything except the cover art).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18893 |21mr|texlive-makedtx-0.94b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /support/makedtx
# catalog-date 2007-10-18 16:19:02 +0200
# catalog-license lppl
# catalog-version 0.94b
Name:		texlive-makedtx
Version:	0.94b
Release:	7
Summary:	Perl script to help generate dtx and ins files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/makedtx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makedtx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makedtx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makedtx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The makedtx bundle is provided to help LaTeX2e developers to
write the code and documentation in separate files, and then
combine them into a single .dtx file for distribution. It
automatically generates the character table, and also writes
the associated installation (.ins) script.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/makedtx/creatdtx.sty
%doc %{_texmfdistdir}/doc/latex/makedtx/CHANGES
%doc %{_texmfdistdir}/doc/latex/makedtx/README
%doc %{_texmfdistdir}/doc/latex/makedtx/creatdtx.perl
%doc %{_texmfdistdir}/doc/latex/makedtx/makedtx-manual.html
%doc %{_texmfdistdir}/doc/latex/makedtx/makedtx.pdf
%doc %{_texmfdistdir}/doc/latex/makedtx/makedtx.pl
#- source
%doc %{_texmfdistdir}/source/latex/makedtx/makedtx.dtx
%doc %{_texmfdistdir}/source/latex/makedtx/makedtx.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18894 |21mr|texlive-makeglos-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/makeglos
# catalog-date 2007-02-23 00:16:39 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-makeglos
Version:	20190228
Release:	1
Summary:	Include a glossary into a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/makeglos
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeglos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeglos.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to include a glossary into a
document. The glossary is prepared by an external program, such
as xindy or makeindex, in the same way that an index is made.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/makeglos/makeglos.sty
%doc %{_texmfdistdir}/doc/latex/makeglos/README
%doc %{_texmfdistdir}/doc/latex/makeglos/makeglos.pdf
%doc %{_texmfdistdir}/doc/latex/makeglos/makeglos.tex
%doc %{_texmfdistdir}/doc/latex/makeglos/makeglos.xdy

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18895 |21mr|texlive-makeindex-20191119-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-makeindex
Version:	20191119
Release:	1
Summary:	Process index output to produce typesettable code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/indexing/makeindex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeindex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-makeindex.bin

%description
A general purpose hierarchical index generator; it accepts one
or more input files (often produced by a text formatter such as
TeX or troff), sorts the entries, and produces an output file
which can be formatted. The formats of the input and output
files are specified in a style file; by default, input is
assumed to be an .idx file, as generated by LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/base/din.ist
%{_texmfdistdir}/makeindex/base/icase.ist
%{_texmfdistdir}/makeindex/base/latex.ist
%{_texmfdistdir}/makeindex/base/math.ist
%{_texmfdistdir}/makeindex/base/mkind.ist
%{_texmfdistdir}/makeindex/base/puncts.ist
%{_texmfdistdir}/makeindex/base/tex.ist
%{_texmfdistdir}/tex/plain/makeindex/idxmac.tex
%doc %{_mandir}/man1/makeindex.1*
%doc %{_texmfdistdir}/doc/man/man1/makeindex.man1.pdf
%doc %{_mandir}/man1/mkindex.1*
%doc %{_texmfdistdir}/doc/man/man1/mkindex.man1.pdf
%doc %{_texmfdistdir}/doc/support/makeindex/doc-src.zip
%doc %{_texmfdistdir}/doc/support/makeindex/ind.pdf
%doc %{_texmfdistdir}/doc/support/makeindex/makeindex.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18896 |21mr|texlive-makeplot-1.0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/makeplot
# catalog-date 2008-01-20 02:03:54 +0100
# catalog-license lppl
# catalog-version 1.0.6
Name:		texlive-makeplot
Version:	1.0.6
Release:	7
Summary:	Easy plots from Matlab in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/makeplot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeplot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeplot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Existing approaches to create EPS files from Matlab (laprint,
mma2ltx, print -eps, etc.) aren't satisfactory; makeplot aims
to resolve this problem. Makeplot is a LaTeX package that uses
the pstricks pst-plot functions to plot data that it takes from
Matlab output files.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/makeplot/makeplot.sty
%doc %{_texmfdistdir}/doc/latex/makeplot/README
%doc %{_texmfdistdir}/doc/latex/makeplot/data1.mat
%doc %{_texmfdistdir}/doc/latex/makeplot/data2.mat
%doc %{_texmfdistdir}/doc/latex/makeplot/makeplot.pdf
%doc %{_texmfdistdir}/doc/latex/makeplot/mptest.tex
#- source
%doc %{_texmfdistdir}/source/latex/makeplot/makeplot.dtx
%doc %{_texmfdistdir}/source/latex/makeplot/makeplot.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18897 |21mr|texlive-maker-20170719-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-maker
Version:	20170719
Release:	1
Summary:	Include Arduino or Processing code in LaTeX documents
Group:		Publishing
URL:		https://ctan.org/pkg/maker
License:	LPPL1.3c
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/maker.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/maker.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The first version of the package allows to include Arduino or Processing code using three different forms: 
writing the code directly in the LaTeX document writing Arduino or Processing commands in line with the text calling 
to Arduino or Processing files All these options support the syntax highlighting of the oficial IDE.

#-----------------------------------------------------------------------
%files

%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18898 |21mr|texlive-makeshape-2.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28973
# category Package
# catalog-ctan /graphics/pgf/contrib/makeshape
# catalog-date 2013-01-28 11:48:01 +0100
# catalog-license lppl1.3
# catalog-version 2.1
Name:		texlive-makeshape
Version:	2.1
Release:	10
Summary:	Declare new PGF shapes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/makeshape
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeshape.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeshape.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/makeshape.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package simplifies production of custom shapes with correct
anchor borders, in PGF/TikZ; the only requirement is a PGF path
describing the anchor border. The package also provides macros
that help with the management of shape parameters, and the
definition of anchor points.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/makeshape/makeshape.sty
%doc %{_texmfdistdir}/doc/latex/makeshape/README
%doc %{_texmfdistdir}/doc/latex/makeshape/makeshape.pdf
%doc %{_texmfdistdir}/doc/latex/makeshape/ontesting.pdf
%doc %{_texmfdistdir}/doc/latex/makeshape/sampleshape.tex
%doc %{_texmfdistdir}/doc/latex/makeshape/testsample.pdf
%doc %{_texmfdistdir}/doc/latex/makeshape/testsample.tex
#- source
%doc %{_texmfdistdir}/source/latex/makeshape/makeshape.dtx
%doc %{_texmfdistdir}/source/latex/makeshape/makeshape.ins
%doc %{_texmfdistdir}/source/latex/makeshape/ontesting.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18899 |21mr|texlive-malayalam-0.9.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23164
# category Package
# catalog-ctan /language/malayalam
# catalog-date 2007-11-17 22:03:55 +0100
# catalog-license lppl
# catalog-version 0.9.6
Name:		texlive-malayalam
Version:	0.9.6
Release:	7
Summary:	LaTeX for Malayalam
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/malayalam
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/malayalam.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/malayalam.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/malayalam.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Fonts (in Adobe Type 1 format), metrics and macros for
typesetting Malayalam with LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/malayalam/effects/effect.mf
%{_texmfdistdir}/fonts/source/public/malayalam/effects/esoteric.mf
%{_texmfdistdir}/fonts/source/public/malayalam/effects/hstripes.mf
%{_texmfdistdir}/fonts/source/public/malayalam/effects/malayalam-reverse.mf
%{_texmfdistdir}/fonts/source/public/malayalam/effects/outline.mf
%{_texmfdistdir}/fonts/source/public/malayalam/effects/shadow.mf
%{_texmfdistdir}/fonts/source/public/malayalam/fnt_code.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mm.bat
%{_texmfdistdir}/fonts/source/public/malayalam/mm.fts
%{_texmfdistdir}/fonts/source/public/malayalam/mm.job
%{_texmfdistdir}/fonts/source/public/malayalam/mmcillu.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmcoding.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmconj.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmcons.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmcvconj.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmdefs.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmfnt.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmfont.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmlnums.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmnums.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmpunct.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmrconj.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmscons.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmsec.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmstyles.txt
%{_texmfdistdir}/fonts/source/public/malayalam/mmtest.mf
%{_texmfdistdir}/fonts/source/public/malayalam/mmvowels.mf
%{_texmfdistdir}/fonts/source/public/malayalam/orn10.mf
%{_texmfdistdir}/fonts/source/public/malayalam/rejected.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm10.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm10s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm12s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm17.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm17s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm6.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm6s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm8.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mm8s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmb10.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmb10s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmb12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmb12s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmb17.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmb17s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmbig.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmbigo.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmc10.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmc10s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmc12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmc12s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmc17.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmc17s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcb10.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcb10s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcb12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcb12s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcb17.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcb17s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcsl10.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcsl10s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcsl12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmcsl12s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmexpa12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmexpb12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmexpc12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmsl10.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmsl10s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmsl12.mf
%{_texmfdistdir}/fonts/source/public/malayalam/styles/mmsl12s.mf
%{_texmfdistdir}/fonts/source/public/malayalam/var_ja.mf
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm10.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm10s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm12s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm17.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm17s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm6.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm6s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm8.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mm8s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmb10s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmb12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmb12s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmb17.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmb17s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmbig.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmbigo.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmc10.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmc10s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmc12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmc12s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmc17.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmc17s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcb10.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcb10s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcb12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcb12s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcb17.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcb17s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcsl10s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmcsl12s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmexpa12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmexpb12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmexpc12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmsl10s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/mmsl12s.tfm
%{_texmfdistdir}/fonts/tfm/public/malayalam/orn10.tfm
%doc %{_texmfdistdir}/doc/fonts/malayalam/FILES
%doc %{_texmfdistdir}/doc/fonts/malayalam/INSTALL
%doc %{_texmfdistdir}/doc/fonts/malayalam/README
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/elephant.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/elephant.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/lion.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/lion.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmarticl.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmarticl.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmchart.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmconj.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmconj.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmexp.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmexp.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmfont.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmfuture.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmguide.dvi
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmguide.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmguide.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmmacs.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmphmacs.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmqfont.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmqmacs.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmsample.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmsample.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmscript.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmtable.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmtable.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmtrans.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmtrans.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmtrmacs.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/mmxfont.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/ornament.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/prodigal.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/prodigal.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/test.mm
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/test.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/article/twolines.tex
%doc %{_texmfdistdir}/doc/fonts/malayalam/charity
%doc %{_texmfdistdir}/doc/fonts/malayalam/todo
#- source
%doc %{_texmfdistdir}/source/fonts/malayalam/dng/dn2dng.pat
%doc %{_texmfdistdir}/source/fonts/malayalam/dng/dng.pat
%doc %{_texmfdistdir}/source/fonts/malayalam/dng/dng.tex
%doc %{_texmfdistdir}/source/fonts/malayalam/dng/dngmacs.tex
%doc %{_texmfdistdir}/source/fonts/malayalam/dng/dngtrans.dng
%doc %{_texmfdistdir}/source/fonts/malayalam/dng/dngtrans.tex
%doc %{_texmfdistdir}/source/fonts/malayalam/dng/dntrmacs.tex
%doc %{_texmfdistdir}/source/fonts/malayalam/dng/misspaal.dng
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/ack2mm.pat
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/avltree.c
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/avltree.h
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/makefile
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/ml.bat
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/ml.g
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mlr.bat
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mlr.g
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mltr.g
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mltrth.g
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm.c
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm.exe
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm.h
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm.pat
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm.prj
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm.scr
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm.trs
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm.ttp
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mm2ack.pat
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mmr.scr
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mmr.trs
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/mmrfull.trs
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/detex.g
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/detex.pat
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/patc.c
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/patc.exe
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/patc.prj
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/patc.ttp
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/patc.txt
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/pstree.c
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/patc/pstree.h
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/pstree.c
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/pstree.h
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/readfile.c
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/readfile.h
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/scr.c
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/scr.h
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/trs.c
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/trs.h
%doc %{_texmfdistdir}/source/fonts/malayalam/preproc/unicode/UNICODE.TXT
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/adami.pat
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/tamil.pat
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/tamil.tex
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/test.tam
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/test.tex
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/test.tml
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/tmlmacs.tex
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/tmltrans.tex
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/tmltrans.tml
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/tmltrans.txt
%doc %{_texmfdistdir}/source/fonts/malayalam/tamil/wntml.pat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18900 |21mr|texlive-manfnt-20201104-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-manfnt
Version:	20201104
Release:	1
Summary:	LaTeX support for the TeX book symbols
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/manfnt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/manfnt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/manfnt.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for easy access to the symbols of the Knuth's
'manual' font, such as the Dangerous Bend and Manual-errata
Arrow.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/manfnt
%{_tlpkgdir}/tlpobj/manfnt.*
#- source
%doc %{_texmfdistdir}/source/latex/manfnt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_tlpkgdir}
cp -fpar tex source %{buildroot}%{_texmfdistdir}
cp -fpar tlpkg/* %{buildroot}%{_tlpkgdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18901 |21mr|texlive-manfnt-font-20161105-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-manfnt-font
Version:	20161105
Release:	1
Summary:	Knuth's "manual" fonts
Group:		Publishing
URL:		https://ctan.org/pkg/manual
License:	KNUTH
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/manfnt-font.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Metafont (by Donald Knuth) and Adobe Type 1 (by Taco Hoekwater) versions of the font containing 
the odd symbols Knuth uses in his books. LaTeX support is available using the manfnt package


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18902 |21mr|texlive-manuscript-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-manuscript
Version:	1.7
Release:	2
Epoch:		1
Summary:	Emulate look of a document typed on a typewriter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/manuscript
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/manuscript.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/manuscript.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/manuscript.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is designed for those who have to submit
dissertations, etc., to institutions that still maintain the
typewriter is the summit of non-professional printing.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/manuscript
%doc %{_texmfdistdir}/doc/latex/manuscript
#- source
%doc %{_texmfdistdir}/source/latex/manuscript

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18903 |21mr|texlive-manyind-20190128-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Provides support for many indexes
Name:		texlive-manyind
Version:	20190128
Release:	1
License:	lppl1.2
Group:		Publishing
Url:		https://ctan.org/tex-archive/macros/latex/contrib/manyind
Source0:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/manyind.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/manyind.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides support for many indexes, leaving all the
bookkeeping to LaTeX and makeindex. No extra programs or files
are needed. One runs latex and makeindex as if there is just
one index. In the main file one puts commands like
\setindex{main} to steer the flow. Some features of makeindex
may no longer work.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/manyind
%doc %{_texmfdistdir}/doc/latex/manyind

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18904 |21mr|texlive-marginfit-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fixes margin paragraph implementation of LaTeX
Name:		texlive-marginfit
Version:	1.1
Release:	1
License:	lppl1.3
Group:		Publishing
Url:		https://ctan.org/tex-archive/macros/latex/contrib/marginfit
Source0:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginfit.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginfit.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginfit.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package fixes various bugs with the margin paragraph
implementation of LaTeX. Those bugs include margin notes that
are attached to the wrong side as well as those that stick out
of the bottom of the page. This package provides a drop-in
replacement solution.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/marginfit/marginfit.sty 
%doc %{_texmfdistdir}/doc/latex/marginfit/README 
%doc %{_texmfdistdir}/doc/latex/marginfit/marginfit.pdf
%doc %{_texmfdistdir}/doc/latex/marginfit/Makefile
#- source
%doc %{_texmfdistdir}/source/latex/marginfit/marginfit.dtx
%doc %{_texmfdistdir}/source/latex/marginfit/marginfit.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18905 |21mr|texlive-marginfix-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31598
# category Package
# catalog-ctan /macros/latex/contrib/marginfix
# catalog-date 2013-09-08 19:13:28 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-marginfix
Version:	1.1
Release:	2
Epoch:		1
Summary:	Patch \marginpar to avoid overfull margins
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/marginfix
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginfix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginfix.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginfix.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Authors using LaTeX to typeset books with significant margin
material often run into the problem of long notes running off
the bottom of the page. A typical workaround is to insert
\vshift commands by hand, but this is a tedious process that is
invalidated when pagination changes. Another workaround is
memoir's \sidebar function, but this can be unsatisfying for
short textual notes, and standard marginpars cannot be mixed
with sidebars. This package implements a solution to make
marginpars "just work" by keeping a list of floating inserts
and arranging them intelligently in the output routine.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/marginfix/marginfix.sty
%doc %{_texmfdistdir}/doc/latex/marginfix/README
%doc %{_texmfdistdir}/doc/latex/marginfix/marginfix.pdf
#- source
%doc %{_texmfdistdir}/source/latex/marginfix/marginfix.dtx
%doc %{_texmfdistdir}/source/latex/marginfix/marginfix.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18906 |21mr|texlive-marginnote-1.4b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-marginnote
Version:	1.4b
Release:	1
Summary:	Notes in the margin, even where \marginpar fails
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/marginnote
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginnote.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginnote.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marginnote.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the command \marginnote that may be used
instead of \marginpar at almost every place where \marginpar
cannot be used, e.g., inside floats, footnotes, or in frames
made with the framed package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/marginnote
%doc %{_texmfdistdir}/doc/latex/marginnote
#- source
%doc %{_texmfdistdir}/source/latex/marginnote

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18907 |21mr|texlive-markdown-2.8.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Conversion of markdown markup to plain TeX
Name:		texlive-markdown
Version:	2.8.2
Release:	1
License:	lppl1.3
Group:		Publishing
Url:		https://github.com/Witiko/markdown/releases
Source0:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/markdown.tar.xz
Source1:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/markdown.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/markdown.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides facilities for the conversion of markdown
markup to plain TeX. These are provided both in form of a Lua
module and in form of plain TeX, LaTeX, and ConTeXt macro
packages that enable the direct inclusion of markdown documents
inside TeX documents. Architecturally, the package consists of
the Lunamark Lua module by John MacFarlane, which was slimmed
down and rewritten for the needs of the package. Lunamark
provides speedy markdown parsing for the rest of the package.
On top of Lunamark sits code for the plain TeX, LaTeX, and
ConTeXt formats by Vit Novotny.
#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/markdown/markdown.sty 
%{_texmfdistdir}/tex/context/third/markdown/t-markdown.tex
%{_texmfdistdir}/tex/generic/markdown/markdown.tex
%{_texmfdistdir}/tex/luatex/markdown/markdown.lua
%doc %{_texmfdistdir}/doc/generic/markdown/README.md
%doc %{_texmfdistdir}/doc/generic/markdown/markdown.pdf
%doc %{_texmfdistdir}/doc/generic/markdown/markdown.md 
%doc %{_texmfdistdir}/doc/generic/markdown/markdown.html
%doc %{_texmfdistdir}/doc/generic/markdown/markdown.css
%doc %{_texmfdistdir}/doc/context/third/markdown/examples/context.tex
%doc %{_texmfdistdir}/doc/context/third/markdown/examples/example.md
%doc %{_texmfdistdir}/doc/context/third/markdown/examples/scientists.csv
%doc %{_texmfdistdir}/doc/latex/markdown/examples/latex.tex
%doc %{_texmfdistdir}/doc/latex/markdown/examples/example.md
%doc %{_texmfdistdir}/doc/latex/markdown/examples/scientists.csv
#- source
%doc %{_texmfdistdir}/source/generic/markdown/markdown.dtx
%doc %{_texmfdistdir}/source/generic/markdown/markdown.ins
%doc %{_texmfdistdir}/source/generic/markdown/docstrip.cfg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18908 |21mr|texlive-marvosym-2.2a-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /fonts/marvosym
# catalog-date 2012-04-08 13:55:52 +0200
# catalog-license ofl
# catalog-version 2.2a
Name:		texlive-marvosym
Version:	2.2a
Release:	13
Summary:	Martin Vogel's Symbols (marvosym) font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/marvosym
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marvosym.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marvosym.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/marvosym.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Martin Vogel's Symbol font (marvosym) contains the Euro
currency symbol as defined by the European commission, along
with symbols for structural engineering; symbols for steel
cross-sections; astronomy signs (sun, moon, planets); the 12
signs of the zodiac; scissor symbols; CE sign and others. The
package contains both the original TrueType font and the
derived Type 1 font, together with support files for TeX
(LaTeX).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/marvosym/marvosym.afm
%{_texmfdistdir}/fonts/map/dvips/marvosym/marvosym.map
%{_texmfdistdir}/fonts/tfm/public/marvosym/umvs.tfm
%{_texmfdistdir}/fonts/truetype/public/marvosym/marvosym.ttf
%{_texmfdistdir}/fonts/type1/public/marvosym/marvosym.pfb
%{_texmfdistdir}/tex/latex/marvosym/marvosym.sty
%{_texmfdistdir}/tex/latex/marvosym/umvs.fd
%doc %{_texmfdistdir}/doc/fonts/marvosym/FONTLOG.txt
%doc %{_texmfdistdir}/doc/fonts/marvosym/Makefile
%doc %{_texmfdistdir}/doc/fonts/marvosym/OFL-FAQ.txt
%doc %{_texmfdistdir}/doc/fonts/marvosym/OFL.txt
%doc %{_texmfdistdir}/doc/fonts/marvosym/README
%doc %{_texmfdistdir}/doc/fonts/marvosym/marvodoc.pdf
%doc %{_texmfdistdir}/doc/fonts/marvosym/marvodoc.tex
%doc %{_texmfdistdir}/doc/fonts/marvosym/marvosym-doc.pdf
%doc %{_texmfdistdir}/doc/fonts/marvosym/marvosym-doc.tex
#- source
%doc %{_texmfdistdir}/source/fonts/marvosym/generate_marvosym_derivs.sh
%doc %{_texmfdistdir}/source/fonts/marvosym/patch_marvosym_afm.sed
%doc %{_texmfdistdir}/source/fonts/marvosym/patch_marvosym_pfb.sed

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18909 |21mr|texlive-matc3-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29845
# category Package
# catalog-ctan /macros/latex/contrib/matc3
# catalog-date 2013-04-09 15:55:17 +0200
# catalog-license lppl1.3
# catalog-version 1.0.1
Name:		texlive-matc3
Version:	1.0.1
Release:	10
Summary:	Commands for MatematicaC3 textbooks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/matc3
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matc3.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matc3.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matc3.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for the Matematica C3 project to
produce free mathematical text books for use in Italian high
schools.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/matc3/matc3.sty
%doc %{_texmfdistdir}/doc/latex/matc3/Makefile
%doc %{_texmfdistdir}/doc/latex/matc3/README
%doc %{_texmfdistdir}/doc/latex/matc3/matc3.pdf
#- source
%doc %{_texmfdistdir}/source/latex/matc3/matc3.dtx
%doc %{_texmfdistdir}/source/latex/matc3/matc3.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18910 |21mr|texlive-matc3mem-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29894
# category Package
# catalog-ctan /macros/latex/contrib/matc3mem
# catalog-date 2013-04-14 10:19:50 +0200
# catalog-license lppl1.3
# catalog-version 1.0.2
Name:		texlive-matc3mem
Version:	1.1
Release:	2
Summary:	Class for MatematicaC3 textbooks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/matc3mem
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matc3mem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matc3mem.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/matc3mem.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is a development of memoir, with additions
(specifically, mathematical extensions) that provide support
for writing the books for the Matematica C3 project to produce
free mathematical textbooks for use in Italian high schools.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/matc3mem/matc3mem.cls
%doc %{_texmfdistdir}/doc/latex/matc3mem/Makefile
%doc %{_texmfdistdir}/doc/latex/matc3mem/README
%doc %{_texmfdistdir}/doc/latex/matc3mem/matc3mem.pdf
#- source
%doc %{_texmfdistdir}/source/latex/matc3mem/matc3mem.dtx
%doc %{_texmfdistdir}/source/latex/matc3mem/matc3mem.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18911 |21mr|texlive-mathabx-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/mathabx
# catalog-date 2008-09-15 13:48:16 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-mathabx
Version:	20190228
Release:	1
Summary:	Three series of mathematical symbols
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/mathabx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathabx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathabx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Mathabx is a set of 3 mathematical symbols font series: matha,
mathb and mathx. They are defined by MetaFont code and should
be of reasonable quality (bitmap output). Things change from
time to time, so there is no claim of stability (encoding,
metrics, design). The package includes Plain TeX and LaTeX
support macros.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/mathabx/matha10.mf
%{_texmfdistdir}/fonts/source/public/mathabx/matha12.mf
%{_texmfdistdir}/fonts/source/public/mathabx/matha5.mf
%{_texmfdistdir}/fonts/source/public/mathabx/matha6.mf
%{_texmfdistdir}/fonts/source/public/mathabx/matha7.mf
%{_texmfdistdir}/fonts/source/public/mathabx/matha8.mf
%{_texmfdistdir}/fonts/source/public/mathabx/matha9.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathacnt.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathadrv.mf
%{_texmfdistdir}/fonts/source/public/mathabx/matharrw.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathastr.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathastrotest10.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathastrotestdrv.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathasym.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathb10.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathb12.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathb5.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathb6.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathb7.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathb8.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathb9.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathbase.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathbdel.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathbdrv.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathbigs.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathbsym.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathc10.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathcall.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathcallgreek.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathcdrv.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathfine.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathgrey.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathhbrw.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathineq.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathltlk.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathmbcb.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathprmt.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathsmsy.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathsubs.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathsymb.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathu10.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathudrv.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathusym.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathux10.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathuxdrv.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathx10.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathx12.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathx5.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathx6.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathx7.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathx8.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathx9.mf
%{_texmfdistdir}/fonts/source/public/mathabx/mathxdrv.mf
%{_texmfdistdir}/fonts/source/public/mathabx/maydigit.mf
%{_texmfdistdir}/fonts/tfm/public/mathabx/matha10.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/matha12.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/matha5.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/matha6.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/matha7.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/matha8.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/matha9.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathastrotest10.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathb10.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathb12.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathb5.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathb6.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathb7.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathb8.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathb9.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathc10.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathu10.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathux10.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathx10.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathx12.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathx5.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathx6.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathx7.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathx8.tfm
%{_texmfdistdir}/fonts/tfm/public/mathabx/mathx9.tfm
%{_texmfdistdir}/tex/generic/mathabx/mathabx.dcl
%{_texmfdistdir}/tex/generic/mathabx/mathabx.sty
%{_texmfdistdir}/tex/generic/mathabx/mathabx.tex
%doc %{_texmfdistdir}/doc/fonts/mathabx/README
%doc %{_texmfdistdir}/doc/fonts/mathabx/mathtest.pdf
%doc %{_texmfdistdir}/doc/fonts/mathabx/mathtest.tex
%doc %{_texmfdistdir}/doc/fonts/mathabx/testmac.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18912 |21mr|texlive-mathalfa-1.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27199
# category Package
# catalog-ctan /macros/latex/contrib/mathalfa
# catalog-date 2012-07-16 01:16:42 +0200
# catalog-license lppl1.3
# catalog-version 1.07
Name:		texlive-mathalfa
Version:	1.10
Release:	2
Summary:	General package for loading maths alphabets in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mathalfa
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathalfa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathalfa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides means of loading maths alphabets (such as
are normally addressed via macros \mathcal, \mathbb, \mathfrak
and \mathscr), offering various features normally missing in
existing packages for this job.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mathalfa/mathalfa.sty
%doc %{_texmfdistdir}/doc/latex/mathalfa/README
%doc %{_texmfdistdir}/doc/latex/mathalfa/mathalfa.pdf
%doc %{_texmfdistdir}/doc/latex/mathalfa/mathalfa.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18913 |21mr|texlive-mathastext-1.3t-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mathastext
Version:	1.3t
Release:	1
Epoch:		1
Summary:	Use the text font in maths mode
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mathastext
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathastext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathastext.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathastext.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses a text font (usually the document's text font)
for the letters of the Latin alphabet needed when typesetting
mathematics. (Optionally, other characters in the font may also
be used). This facility makes possible (for a document with
simple mathematics) a far wider choice of text font, with
little worry that no specially designed accompanying maths
fonts are available. The package also offers a simple mechanism
for using many different choices of (text hence, now, maths)
font in the same document. Of course, using one font for two
purposes helps produce smaller PDF files. The package, running
under LuaTeX, requires the TeX live 2013 distribution (or
later).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mathastext
%doc %{_texmfdistdir}/doc/latex/mathastext
#- source
%doc %{_texmfdistdir}/source/latex/mathastext

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18914 |21mr|texlive-math-e-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20062
# category Package
# catalog-ctan /info/examples/Math-E
# catalog-date 2010-10-11 21:01:03 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-math-e
Version:	20180303
Release:	2
Summary:	Examples from the book Typesetting Mathematics with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/Math-E
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/math-e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/math-e.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The bundle contains all the examples from the (English) book
"Typesetting Mathematics with LaTeX" (UIT Press, Cambridge,
2010). The examples are stand alone documents and may be
separately processed with LaTeX or PDFLaTeX.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/math-e/01-00-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/01-00-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/01-00-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/02-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-05-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/03-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-15.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-16.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-17.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-18.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-19.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-20.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-21.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-22.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-05-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-08-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-09-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-09-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-09-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-09-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-10-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-11-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-11-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-11-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-11-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-11-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-11-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-13-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-13-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-16-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-17-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-18-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-20-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-20-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-20-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-20-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-20-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-20-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/04-20-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-00-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/05-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-15.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-16.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-17.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-18.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-19.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-20.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-21.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-15.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-16.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-17.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-18.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-19.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-20.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-21.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-22.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-03-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-07-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-09-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-11-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-15.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-12-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-13-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-13-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-13-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-14-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-14-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-14-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-15-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-15-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-15-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-16-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-16-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-17-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-18-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-19-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-19-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-19-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-19-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-20-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-20-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-20-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/06-20-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-05-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-06-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-06-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-09-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-10-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-10-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-10-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-11-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-12-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-12-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-13-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-14-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-15-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-15-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-16-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/07-16-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-15.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-16.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-15.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/08-03-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-07-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-09-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-10-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-11-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-11-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-11-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-12-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-12-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-12-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-12-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-12-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-12-7.ltxps
%doc %{_texmfdistdir}/doc/latex/math-e/09-13-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-13-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-14-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-15-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-15-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-15-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-16-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-16-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-16-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-16-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-16-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-16-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-16-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-16-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-4.ltx4
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-17-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-18-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-18-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-18-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-19-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-19-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-20-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-20-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-20-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-20-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/09-20-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-01-4.ltxps
%doc %{_texmfdistdir}/doc/latex/math-e/10-01-5.ltxps
%doc %{_texmfdistdir}/doc/latex/math-e/10-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-04-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-07-1.ltx2
%doc %{_texmfdistdir}/doc/latex/math-e/10-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-07-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-07-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-07-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-08-1.ltxps
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-09-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-10-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-10-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-10-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-10-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-10-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/10-10-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-10.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-11.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-12.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-13.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-14.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-15.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-16.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-17.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-18.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-19.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-20.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-21.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-22.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-23.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-24.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-25.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-26.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/11-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/math-e/README
%doc %{_texmfdistdir}/doc/latex/math-e/exaarticle.cls
%doc %{_texmfdistdir}/doc/latex/math-e/exaarticle2.cls
%doc %{_texmfdistdir}/doc/latex/math-e/exaartplain.cls
%doc %{_texmfdistdir}/doc/latex/math-e/exareport.cls
%doc %{_texmfdistdir}/doc/latex/math-e/exasymbol.cls

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18915 |21mr|texlive-mathexam-1.00-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mathexam
# catalog-date 2008-08-22 15:19:59 +0200
# catalog-license lppl
# catalog-version 1.00
Name:		texlive-mathexam
Version:	1.00
Release:	7
Summary:	Package for typesetting exams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mathexam
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathexam.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathexam.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathexam.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can help you typeset exams (mostly in mathematics
and related disciplines where students are required to show
their calculations followed by one or more short answers). It
provides commands for inclusion of space for calculations, as
well as commands for automatic creation of "answer spaces". In
addition, the package will automatically create page headers
and footers, and will let you include instructions and space
for students to put their name.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mathexam/mathexam.sty
%doc %{_texmfdistdir}/doc/latex/mathexam/README
%doc %{_texmfdistdir}/doc/latex/mathexam/mathexam.pdf
%doc %{_texmfdistdir}/doc/latex/mathexam/sample.pdf
%doc %{_texmfdistdir}/doc/latex/mathexam/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/mathexam/mathexam.dtx
%doc %{_texmfdistdir}/source/latex/mathexam/mathexam.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18916 |21mr|texlive-mathfam256-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mathfam256
Version:	0.5
Release:	1
Summary:	Extend math family up to 256 for pLaTeX/upLaTeX/Lamed
Group:		Publishing
URL:		https://ctan.org/pkg/mathfam256
License:	BSD3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/mathfam256.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/mathfam256.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package increases the upper limit of math symbols up to
256, using \omath... primitives. These primitives were
originally introduced in Omega and are currently available in
the following formats: pLaTeX (runs on e-pTeX), upLaTeX (runs
on e-upTeX), Lamed (runs on Aleph, successor of Omega).



#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18917 |21mr|texlive-mathfont-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# texlive-mathfont test project
# project name: 
%define TEXTPKG mathfont
Name:       texlive-%{TEXTPKG}
Version:	1.6
Release:	1
Summary:	This package provides an interface for changing font of math mode characters
Group:		Publishing
URL:		 http://www.ctan.org/tex-archive/macros/latex/contrib/%{TEXTPKG}
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/%{TEXTPKG}.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
%description
This package provides a flexible interface
for changing the font of math mode characters.
The package allows the user to specify a default
unicode font for each of six basic classes of
Latin and Greek characters, and it provides
additional support for unicode alphanumeric symbols. 
Crucially, mathfont is compatible with both
LuaLATEX and XELATEX, and it provides several 
font-loading commands that allow the user to change
fonts locally or for individual symbols within math mode.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi 
	
%files
%{_texmfdistdir}/tex/latex/%{TEXTPKG}
%doc %{_texmfdistdir}/doc/latex/%{TEXTPKG}
%{_texmfdistdir}/source/latex/%{TEXTPKG}

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18918 |21mr|texlive-mathmode-2.47-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20742
# category Package
# catalog-ctan /info/math/voss/mathmode
# catalog-date 2010-12-14 15:27:20 +0100
# catalog-license lppl
# catalog-version 2.47
Name:		texlive-mathmode
Version:	2.47
Release:	6
Summary:	A comprehensive review of mathematics in (La)TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/math/voss/mathmode
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathmode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathmode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The review includes: Standard LaTeX mathematics mode; AMSmath;
TeX and mathematics; Other packages; Tuning math typesetting;
Mathematics fonts; Special symbols; Examples; and Lists,
bibliography and index.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/mathmode/Changes
%doc %{_texmfdistdir}/doc/latex/mathmode/Mathmode.bib
%doc %{_texmfdistdir}/doc/latex/mathmode/Mathmode.ist
%doc %{_texmfdistdir}/doc/latex/mathmode/Mathmode.ltx
%doc %{_texmfdistdir}/doc/latex/mathmode/Mathmode.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/Mathmode.tex
%doc %{_texmfdistdir}/doc/latex/mathmode/README
%doc %{_texmfdistdir}/doc/latex/mathmode/images/EuScript.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/EuScript.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/amsalign.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/amsalign.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/cm-crop.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/cm-crop.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/cmbright-crop.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/cmbright-crop.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/colArray.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/colArray.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/exscale.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/exscale.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/family.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/family.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/family0.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/family0.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/family1.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/family1.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/lm-crop.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/lm-crop.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/minionpro-crop.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/minionpro-crop.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/node.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/node.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/pamath-crop.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/pamath-crop.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/pazo-crop.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/pazo-crop.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/styles.eps
%doc %{_texmfdistdir}/doc/latex/mathmode/images/styles.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/test-crop.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/test.pdf
%doc %{_texmfdistdir}/doc/latex/mathmode/images/test.tex
%doc %{_texmfdistdir}/doc/latex/mathmode/runLaTeX
%doc %{_texmfdistdir}/doc/latex/mathmode/runPDFLaTeX
%doc %{_texmfdistdir}/doc/latex/mathmode/runVTeX

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18919 |21mr|texlive-mathpazo-1.003-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/mathpazo
# catalog-date 2009-10-06 20:42:53 +0200
# catalog-license gpl
# catalog-version 1.003
Name:		texlive-mathpazo
Version:	1.003
Release:	7
Summary:	Fonts to typeset mathematics to match Palatino
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/mathpazo
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathpazo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathpazo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathpazo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Pazo Math fonts are a family of PostScript fonts suitable
for typesetting mathematics in combination with the Palatino
family of text fonts. The Pazo Math family is made up of five
fonts provided in Adobe Type 1 format (PazoMath, PazoMath-
Italic, PazoMath-Bold, PazoMath-BoldItalic, and
PazoMathBlackboardBold). These contain, in designs that match
Palatino, glyphs that are usually not available in Palatino and
for which Computer Modern looks odd when combined with
Palatino. These glyphs include the uppercase Greek alphabet in
upright and slanted shapes in regular and bold weights, the
lowercase Greek alphabet in slanted shape in regular and bold
weights, several mathematical glyphs (partialdiff, summation,
product, coproduct, emptyset, infinity, and proportional) in
regular and bold weights, other glyphs (Euro and dotlessj) in
upright and slanted shapes in regular and bold weights, and the
uppercase letters commonly used to represent various number
sets (C, I, N, Q, R, and Z) in blackboard bold. The set also
includes a set of 'true' small-caps fonts, also suitable for
use with Palatino (or one of its clones). LaTeX macro support
(using package mathpazo.sty) is provided in psnfss (a required
part of any LaTeX distribution).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/mathpazo/fplmb.afm
%{_texmfdistdir}/fonts/afm/public/mathpazo/fplmbb.afm
%{_texmfdistdir}/fonts/afm/public/mathpazo/fplmbi.afm
%{_texmfdistdir}/fonts/afm/public/mathpazo/fplmr.afm
%{_texmfdistdir}/fonts/afm/public/mathpazo/fplmri.afm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/fplmb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/fplmbb.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/fplmbi.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/fplmr.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/fplmri.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/zplmb7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/zplmb7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/zplmb7y.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/zplmr7m.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/zplmr7t.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/zplmr7v.tfm
%{_texmfdistdir}/fonts/tfm/public/mathpazo/zplmr7y.tfm
%{_texmfdistdir}/fonts/type1/public/mathpazo/fplmb.pfb
%{_texmfdistdir}/fonts/type1/public/mathpazo/fplmbb.pfb
%{_texmfdistdir}/fonts/type1/public/mathpazo/fplmbi.pfb
%{_texmfdistdir}/fonts/type1/public/mathpazo/fplmr.pfb
%{_texmfdistdir}/fonts/type1/public/mathpazo/fplmri.pfb
%{_texmfdistdir}/fonts/vf/public/mathpazo/zplmb7m.vf
%{_texmfdistdir}/fonts/vf/public/mathpazo/zplmb7t.vf
%{_texmfdistdir}/fonts/vf/public/mathpazo/zplmb7y.vf
%{_texmfdistdir}/fonts/vf/public/mathpazo/zplmr7m.vf
%{_texmfdistdir}/fonts/vf/public/mathpazo/zplmr7t.vf
%{_texmfdistdir}/fonts/vf/public/mathpazo/zplmr7v.vf
%{_texmfdistdir}/fonts/vf/public/mathpazo/zplmr7y.vf
%doc %{_texmfdistdir}/doc/latex/mathpazo/README.txt
%doc %{_texmfdistdir}/doc/latex/mathpazo/gpl.txt
%doc %{_texmfdistdir}/doc/latex/mathpazo/mapfplm.tex
%doc %{_texmfdistdir}/doc/latex/mathpazo/mapppl.tex
%doc %{_texmfdistdir}/doc/latex/mathpazo/mapzplm.tex
%doc %{_texmfdistdir}/doc/latex/mathpazo/pazofnst.tex
%doc %{_texmfdistdir}/doc/latex/mathpazo/pazotest.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mathpazo/Makefile
%doc %{_texmfdistdir}/source/latex/mathpazo/cmbsy10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/cmbx10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/cmex10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/cmmi10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/cmmib10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/cmr10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/cmsy10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmb.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmb.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmb.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmbb.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmbb.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmbb.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmbi.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmbi.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmbi.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmr.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmr.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmr.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmri.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmri.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/fplmri.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/haxzplmb.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/haxzplmr.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/inf/fplmb.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/inf/fplmbb.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/inf/fplmbi.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/inf/fplmr.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/inf/fplmri.inf
%doc %{_texmfdistdir}/source/latex/mathpazo/nokernum.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/omsnames.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/Makefile
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/cmbsy10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/cmbx10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/cmex10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/cmmi10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/cmmib10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/cmr10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/cmsy10.pl
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/haxzplmb.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/haxzplmr.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/nokernum.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/omsnames.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/pazofnst.tex
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/unsetcm4pl.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/unsetint.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/unsetosf.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/unsetpl4cm.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/unsetpunct.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/zplmbgop.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pazofnst/zplmsum.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/pplr8a.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/unsetcm4pl.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/unsetint.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/unsetosf.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/unsetpl4cm.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/unsetpunct.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/zplmbgop.mtx
%doc %{_texmfdistdir}/source/latex/mathpazo/zplmsum.mtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18920 |21mr|texlive-mathspec-0.2b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mathspec
Version:	0.2b
Release:	7
Summary:	Specify arbitrary fonts for mathematics in XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/mathspec
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathspec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathspec.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The mathspec package provides an interface to typeset
mathematics in XeLaTeX with arbitrary text fonts using fontspec
as a backend. The package is under development and later
versions might to be incompatible with this version, as this
version is incompatible with earlier versions. The package
requires at least version 0.9995 of XeTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/mathspec
%doc %{_texmfdistdir}/doc/xelatex/mathspec

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18921 |21mr|texlive-mathspic-1.13-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31957
# category Package
# catalog-ctan /graphics/mathspic
# catalog-date 2012-05-21 15:40:40 +0200
# catalog-license lppl
# catalog-version 1.13
Name:		texlive-mathspic
Version:	1.13
Release:	16
Summary:	A Perl filter program for use with PiCTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/mathspic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathspic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mathspic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-mathspic.bin = %{EVRD}

%description
MathsPIC(Perl) is a development of the earlier MathsPIC(DOS)
program, now implemented as a Perl script, being much more
portable than the earlier program. MathsPIC parses a plain text
input file and generates a plain text output-file containing
commands for drawing a diagram. Version 1.0 produces output
containing PiCTeX and (La)TeX commands, which may then be
processed by plain TeX or LaTeX in the usual way. MathsPIC also
outputs a comprehensive log-file. MathsPIC facilitates creating
figures using PiCTeX by providing an environment for
manipulating named points and also allows the use of variables
and maths (advance, multiply, and divide)--in short--it takes
the pain out of PiCTeX. Both the original DOS version and the
new Perl version are available.

#-----------------------------------------------------------------------
%files
%{_bindir}/mathspic
%{_texmfdistdir}/scripts/mathspic/mathspic.pl
%{_texmfdistdir}/tex/latex/mathspic/mathspic.sty
%doc %{_texmfdistdir}/doc/latex/mathspic/HELP.txt
%doc %{_texmfdistdir}/doc/latex/mathspic/MATHSPIC.BAT
%doc %{_texmfdistdir}/doc/latex/mathspic/README.txt
%doc %{_texmfdistdir}/doc/latex/mathspic/grabtexdata.tex
%doc %{_texmfdistdir}/doc/latex/mathspic/mathsPICfigures.zip
%doc %{_texmfdistdir}/doc/latex/mathspic/mathsPICmanual.pdf
%doc %{_texmfdistdir}/doc/latex/mathspic/mathsPICmanual.zip
%doc %{_texmfdistdir}/doc/latex/mathspic/mathspic.lib
%doc %{_texmfdistdir}/doc/latex/mathspic/mathspic.sh
%doc %{_texmfdistdir}/doc/latex/mathspic/sourcecode113.html
%doc %{_texmfdistdir}/doc/latex/mathspic/sourcecode113.nw
%doc %{_texmfdistdir}/doc/latex/mathspic/sourcecode113.pdf
%doc %{_mandir}/man1/mathspic.1*
%doc %{_texmfdistdir}/doc/man/man1/mathspic.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/mathspic/mathspic.pl mathspic
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18922 |21mr|texlive-maybemath-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/maybemath
# catalog-date 2007-03-09 22:25:45 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-maybemath
Version:	20190228
Release:	1
Summary:	Make math bold or italic according to context
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/maybemath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/maybemath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/maybemath.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The \maybebm and \maybeit macros can be used in math
expressions to make the arguments typeset as bold or italic
respectively if the surrounding context is appropriate. They
are useful for writing user macros for use in general contexts.
\maybebm is especially appropriate when section titles contain
math expressions, since the title will appear bold but the
header and table of contents usually replicate the title in
normal width. It uses the bm package to make things bold
\maybeit performs a similar role to \mathrm{} but the math
expression will be italicised if the surrounding text is.
\maybeitsubscript is provided to shift subscripts to the left
if the expression is italicised.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/maybemath/maybemath.sty
%doc %{_texmfdistdir}/doc/latex/maybemath/README
%doc %{_texmfdistdir}/doc/latex/maybemath/maybemath.pdf
%doc %{_texmfdistdir}/doc/latex/maybemath/maybemath.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18923 |21mr|texlive-mbenotes-2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31813
# category Package
# catalog-ctan /macros/latex/contrib/mbenotes
# catalog-date 2013-10-02 17:34:38 +0200
# catalog-license lppl1.2
# catalog-version 2
Name:		texlive-mbenotes
Version:	2
Release:	12
Summary:	Notes in tables or images
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mbenotes
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mbenotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mbenotes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a command \tabnote, which stores notes for
later processing by the command \thetabnotes, and a
corresponding \imgnote for images. The package is derived from
mechanisms in the package endnotes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mbenotes/mbenotes.sty
%doc %{_texmfdistdir}/doc/latex/mbenotes/README
%doc %{_texmfdistdir}/doc/latex/mbenotes/mbenotes.pdf
%doc %{_texmfdistdir}/doc/latex/mbenotes/mbenotes.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18924 |21mr|texlive-mcaption-3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mcaption
# catalog-date 2009-03-14 02:18:31 +0100
# catalog-license lppl
# catalog-version 3.0
Name:		texlive-mcaption
Version:	3.0
Release:	7
Summary:	Put captions in the margin
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mcaption
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcaption.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcaption.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcaption.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The mcaption package provides an mcaption environment which
puts figure or table captions in the margin. The package works
with the standard classes and with the KOMA-Script document
classes scrartcl, scrreprt and scrbook. The package requires
the changepage package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mcaption/mcaption.sty
%doc %{_texmfdistdir}/doc/latex/mcaption/CHANGES
%doc %{_texmfdistdir}/doc/latex/mcaption/README
%doc %{_texmfdistdir}/doc/latex/mcaption/example.tex
%doc %{_texmfdistdir}/doc/latex/mcaption/mcaption.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mcaption/mcaption.dtx
%doc %{_texmfdistdir}/source/latex/mcaption/mcaption.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18925 |21mr|texlive-mceinleger-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mceinleger
Version:	20190228
Release:	1
Summary:	Creating covers for music cassettes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mceinleger
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mceinleger.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mceinleger.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for creating MC-covers on your own. It allows the
creation of simple covers as well as covers with an additional
page for more information about the cassette (table of contents
e.g.). The rotating package is required.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mceinleger
%doc %{_texmfdistdir}/doc/latex/mceinleger

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18926 |21mr|texlive-mcexam-20171227-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/afthesis
# catalog-date 2008-11-01 22:12:33 +0100
# catalog-license pd
# catalog-version 2.7
Name:		texlive-mcexam
Version:	20171227
Release:	2
Summary:	Create randomized Multiple Choice questions
Group:		Publishing
URL:		http://ctan.org/pkg/mcexam
License:	lPPL1.3C
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcexam.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcexam.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package automatically randomly permutes the order of
questions as well as the answer options in different versions
of a multiple choice exam/test. Next to the exam versions
themselves, the package also allows printing a concept version
of the exam, a key table with the correct answers or points,
and a document with solutions and explanations per exam
version. The package also allows writing an R code which
processes the results of the exam and calculates the grades.
The following other LaTeX packages are required: enumitem,
environ, etoolbox, longtable, newfile, pgffor (from the
PGF/TikZ bundle), xkeyval, and xstring.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/*
%doc %{_texmfdistdir}/doc/latex/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18927 |21mr|texlive-mcf2graph-4.48-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 53550
# category Package
# catalog-ctan /macros/latex/contrib/mcf2graph
# catalog-date 2020-01-26
# catalog-license mit
# catalog-version 4.48
Name:		texlive-mcf2graph
Version:	4.48
Release:	1
Summary:	Draw chemical structure diagrams with Metafont/MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mcf2graph
License:	MIT
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcf2graph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcf2graph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Molecular Coding Format (MCF) is a linear notation for
describing chemical structure diagrams. This package converts
MCF to graphic files using Metafont / MetaPost.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost
%doc %{_texmfdistdir}/doc/metapost/mcf2graph/

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18928 |21mr|texlive-mcite-1.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18173
# category Package
# catalog-ctan /macros/latex/contrib/mcite
# catalog-date 2007-01-09 22:36:10 +0100
# catalog-license gpl
# catalog-version 1.6
Name:		texlive-mcite
Version:	1.6
Release:	7
Summary:	Multiple items in a single citation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mcite
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcite.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcite.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mcite.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The mcite package allows the user to collapse multiple
citations into one, as is customary in physics journals. The
package requires a customised BibTeX style for its work; the
documentation explains how to do that customisation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mcite/mcite.sty
%doc %{_texmfdistdir}/doc/latex/mcite/COPYING
%doc %{_texmfdistdir}/doc/latex/mcite/README
%doc %{_texmfdistdir}/doc/latex/mcite/mcite.bib
%doc %{_texmfdistdir}/doc/latex/mcite/mcite.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mcite/Makefile
%doc %{_texmfdistdir}/source/latex/mcite/mcite.drv
%doc %{_texmfdistdir}/source/latex/mcite/mcite.dtx
%doc %{_texmfdistdir}/source/latex/mcite/mcite.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18929 |21mr|texlive-mciteplus-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31648
# category Package
# catalog-ctan /macros/latex/contrib/mciteplus
# catalog-date 2013-09-13 13:09:10 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-mciteplus
Version:	1.2
Release:	10
Summary:	Enhanced multiple citations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mciteplus
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mciteplus.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mciteplus.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The mciteplus LaTeX package is an enhanced reimplementation of
Thorsten Ohl's mcite package which provides support for the
grouping of multiple citations together as is often done in
physics journals. An extensive set of features provide for
other applications such as reference sublisting.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/mciteplus/IEEEtranM.bst
%{_texmfdistdir}/bibtex/bst/mciteplus/IEEEtranMN.bst
%{_texmfdistdir}/bibtex/bst/mciteplus/apsrevM.bst
%{_texmfdistdir}/bibtex/bst/mciteplus/apsrmpM.bst
%{_texmfdistdir}/tex/latex/mciteplus/mciteplus.sty
%doc %{_texmfdistdir}/doc/latex/mciteplus/README
%doc %{_texmfdistdir}/doc/latex/mciteplus/changelog.txt
%doc %{_texmfdistdir}/doc/latex/mciteplus/mciteplus_code.txt
%doc %{_texmfdistdir}/doc/latex/mciteplus/mciteplus_doc.pdf
%doc %{_texmfdistdir}/doc/latex/mciteplus/mciteplus_doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18930 |21mr|texlive-mdframed-1.9b-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31075
# category Package
# catalog-ctan /macros/latex/contrib/mdframed
# catalog-date 2013-07-02 00:01:05 +0200
# catalog-license lppl
# catalog-version 1.9b
Name:		texlive-mdframed
Version:	1.9b
Release:	10
Summary:	Framed environments that can split at page boundaries
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mdframed
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdframed.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdframed.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdframed.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package develops the facilities of framed in providing
breakable framed and coloured boxes. The user may instruct the
package to perform its operations using default LaTeX commands,
PStricks or TikZ.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mdframed/ltxmdf.cls
%{_texmfdistdir}/tex/latex/mdframed/md-frame-0.mdf
%{_texmfdistdir}/tex/latex/mdframed/md-frame-1.mdf
%{_texmfdistdir}/tex/latex/mdframed/md-frame-2.mdf
%{_texmfdistdir}/tex/latex/mdframed/md-frame-3.mdf
%{_texmfdistdir}/tex/latex/mdframed/mdframed.sty
%doc %{_texmfdistdir}/doc/latex/mdframed/README.txt
%doc %{_texmfdistdir}/doc/latex/mdframed/ctan-lion.png
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed-example-default.pdf
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed-example-default.tex
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed-example-pstricks.pdf
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed-example-pstricks.tex
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed-example-texsx.pdf
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed-example-texsx.tex
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed-example-tikz.pdf
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed-example-tikz.tex
%doc %{_texmfdistdir}/doc/latex/mdframed/mdframed.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mdframed/Makefile
%doc %{_texmfdistdir}/source/latex/mdframed/mdframed.dtx
%doc %{_texmfdistdir}/source/latex/mdframed/mdframed.ins
%doc %{_texmfdistdir}/source/latex/mdframed/mdframedmake.bat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18931 |21mr|texlive-mdwtools-1.05.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mdwtools
# catalog-date 2008-06-23 17:43:34 +0200
# catalog-license gpl
# catalog-version 1.05.4
Name:		texlive-mdwtools
Version:	1.05.4
Release:	7
Summary:	Miscellaneous tools by Mark Wooding
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mdwtools
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdwtools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdwtools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mdwtools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This collection of tools includes: - support for short commands
starting with @, - macros to sanitise the OT1 encoding of the
cmtt fonts; - a 'do after' command; - improved footnote
support; - mathenv for various alignment in maths; - list
handling; - mdwmath which adds some minor changes to LaTeX
maths; - a rewrite of LaTeX's tabular and array environments; -
verbatim handling; and - syntax diagrams.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mdwtools/at.sty
%{_texmfdistdir}/tex/latex/mdwtools/cmtt.sty
%{_texmfdistdir}/tex/latex/mdwtools/doafter.sty
%{_texmfdistdir}/tex/latex/mdwtools/footnote.sty
%{_texmfdistdir}/tex/latex/mdwtools/mTTcmtt.fd
%{_texmfdistdir}/tex/latex/mdwtools/mTTenc.def
%{_texmfdistdir}/tex/latex/mdwtools/mathenv.sty
%{_texmfdistdir}/tex/latex/mdwtools/mdwlist.sty
%{_texmfdistdir}/tex/latex/mdwtools/mdwmath.sty
%{_texmfdistdir}/tex/latex/mdwtools/mdwtab.sty
%{_texmfdistdir}/tex/latex/mdwtools/sverb.sty
%{_texmfdistdir}/tex/latex/mdwtools/syntax.sty
%doc %{_texmfdistdir}/doc/latex/mdwtools/COPYING
%doc %{_texmfdistdir}/doc/latex/mdwtools/README
%doc %{_texmfdistdir}/doc/latex/mdwtools/at.pdf
%doc %{_texmfdistdir}/doc/latex/mdwtools/cmtt.pdf
%doc %{_texmfdistdir}/doc/latex/mdwtools/doafter.pdf
%doc %{_texmfdistdir}/doc/latex/mdwtools/doafter.tex
%doc %{_texmfdistdir}/doc/latex/mdwtools/footnote.pdf
%doc %{_texmfdistdir}/doc/latex/mdwtools/gpl.tex
%doc %{_texmfdistdir}/doc/latex/mdwtools/mathenv.tex
%doc %{_texmfdistdir}/doc/latex/mdwtools/mdwlist.pdf
%doc %{_texmfdistdir}/doc/latex/mdwtools/mdwmath.pdf
%doc %{_texmfdistdir}/doc/latex/mdwtools/mdwtab.pdf
%doc %{_texmfdistdir}/doc/latex/mdwtools/mdwtools.tex
%doc %{_texmfdistdir}/doc/latex/mdwtools/sverb.pdf
%doc %{_texmfdistdir}/doc/latex/mdwtools/syntax.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mdwtools/at.dtx
%doc %{_texmfdistdir}/source/latex/mdwtools/cmtt.dtx
%doc %{_texmfdistdir}/source/latex/mdwtools/doafter.dtx
%doc %{_texmfdistdir}/source/latex/mdwtools/footnote.dtx
%doc %{_texmfdistdir}/source/latex/mdwtools/mdwlist.dtx
%doc %{_texmfdistdir}/source/latex/mdwtools/mdwmath.dtx
%doc %{_texmfdistdir}/source/latex/mdwtools/mdwtab.dtx
%doc %{_texmfdistdir}/source/latex/mdwtools/mdwtools.ins
%doc %{_texmfdistdir}/source/latex/mdwtools/sverb.dtx
%doc %{_texmfdistdir}/source/latex/mdwtools/syntax.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18932 |21mr|texlive-media9-0.95-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-media9
Version:	0.95
Release:	1
Summary:	Multimedia inclusion package with Adobe Reader-9/X compatibility
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/media9
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/media9.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/media9.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an interface to embed interactive Flash
(SWF) and 3D objects (Adobe U3D & PRC), as well as video and
sound files or streams in the popular MP4, FLV and MP3 formats
into PDF documents with Acrobat-9/X compatibility. Playback of
multimedia files uses the built-in Flash Player of Adobe Reader
and does, therefore, not depend on external plug-ins. Flash
Player supports the efficient H.264 codec for video
compression. The package is based on the RichMedia Annotation,
an Adobe addition to the PDF specification. It replaces the now
obsolete movie15 package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/media9
%doc %{_texmfdistdir}/doc/latex/media9

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18933 |21mr|texlive-meetingmins-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31878
# category Package
# catalog-ctan /macros/latex/contrib/meetingmins
# catalog-date 2012-09-24 22:36:26 +0200
# catalog-license lppl1.3
# catalog-version 1.5
Name:		texlive-meetingmins
Version:	1.6
Release:	2
Summary:	Format written minutes of meetings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/meetingmins
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/meetingmins.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/meetingmins.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/meetingmins.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class allows formatting of meeting minutes using \section
commands (which provide hierarchical structure). An agenda can
also be produced for distribution prior to the meeting, with
user-selected portions suppressed from printing.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/meetingmins/meetingmins.cls
%doc %{_texmfdistdir}/doc/latex/meetingmins/README
%doc %{_texmfdistdir}/doc/latex/meetingmins/meetingmins.pdf
%doc %{_texmfdistdir}/doc/latex/meetingmins/samples/agenda.pdf
%doc %{_texmfdistdir}/doc/latex/meetingmins/samples/agenda.tex
%doc %{_texmfdistdir}/doc/latex/meetingmins/samples/chair.pdf
%doc %{_texmfdistdir}/doc/latex/meetingmins/samples/chair.tex
%doc %{_texmfdistdir}/doc/latex/meetingmins/samples/department.min
%doc %{_texmfdistdir}/doc/latex/meetingmins/samples/minutes.pdf
%doc %{_texmfdistdir}/doc/latex/meetingmins/samples/minutes.tex
#- source
%doc %{_texmfdistdir}/source/latex/meetingmins/meetingmins.dtx
%doc %{_texmfdistdir}/source/latex/meetingmins/meetingmins.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18934 |21mr|texlive-memdesign-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34157
# category Package
# catalog-ctan /info/memdesign
# catalog-date 2014-05-20 19:24:27 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-memdesign
Version:	20190228
Release:	1
Summary:	Notes on book design
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/memdesign
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memdesign.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memdesign.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
"A Few Notes on Book Design" provides an introduction to the
business of book design. It is an extended version of what used
to be the first part of the memoir users' manual. Please note
that the compiled copy, supplied in the package, uses
commercial fonts; the README file contains instructions on how
to compile the document without these fonts.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/fonts/memdesign/README
%doc %{_texmfdistdir}/doc/fonts/memdesign/memdesign.pdf
%doc %{_texmfdistdir}/doc/fonts/memdesign/memdesign.tex
%doc %{_texmfdistdir}/doc/fonts/memdesign/memetc.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18935 |21mr|texlive-memexsupp-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/memexsupp
# catalog-date 2008-08-22 15:19:59 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-memexsupp
Version:	0.1
Release:	7
Summary:	Experimental memoir support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/memexsupp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memexsupp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memexsupp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package of code proposed as supporting material for memoir.
The package is intended as a test bed for such code, which may
in the fullness of time be adopted into the main memoir
release.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/memexsupp/memexsupp.sty
%doc %{_texmfdistdir}/doc/latex/memexsupp/README
%doc %{_texmfdistdir}/doc/latex/memexsupp/memexsupp.pdf
%doc %{_texmfdistdir}/doc/latex/memexsupp/memexsupp.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18936 |21mr|texlive-memoir-3.7h-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-memoir
Version:	3.7h
Release:	1
Summary:	Typeset fiction, non-fiction and mathematical books
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/memoir
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memoir.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memoir.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memoir.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The memoir class is for typesetting poetry, fiction, non-
fiction, and mathematical works. Permissible document 'base'
font sizes range from 9 to 60pt. There is a range of page-
styles and well over a dozen chapter-styles to choose from, as
well as methods for specifying your own layouts and designs.
The class also provides the functionality of over thirty of the
more popular packages, thus simplifying document sources. The
class automatically loads an associated patch file mempatch;
the patch file may be updated from time to time, between
releases of the class itself. (The patch file stays around even
when there are no extant patches.) Users who wish to use the
hyperref package, in a document written with the memoir class,
should also use the memhfixc package (part of this bundle).
Note, however, that current versions of hyperref actually load
the package automatically if they detect that they are running
under memoir.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/memoir
%{_texmfdistdir}/tex/latex/memoir
%doc %{_texmfdistdir}/doc/latex/memoir
#- source
%doc %{_texmfdistdir}/source/latex/memoir

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18937 |21mr|texlive-MemoirChapStyles-1.7e-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25918
# category Package
# catalog-ctan /info/latex-samples/MemoirChapStyles
# catalog-date 2012-04-11 16:14:01 +0200
# catalog-license lppl
# catalog-version 1.7e
Name:		texlive-MemoirChapStyles
Version:	1.7e
Release:	5
Summary:	Chapter styles in memoir class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex-samples/MemoirChapStyles
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/MemoirChapStyles.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/MemoirChapStyles.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A showcase of chapter styles available to users of memoir: the
six provided in the class itself, plus many from elsewhere (by
the present author and others). The package's resources apply
only to memoir, but the package draws from a number of sources
relating to standard classes, including the fncychap package,
and Vincent Zoonekynd's tutorial on headings.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/MemoirChapStyles/MemoirChapStyles.pdf
%doc %{_texmfdistdir}/doc/latex/MemoirChapStyles/MemoirChapStyles.tex
%doc %{_texmfdistdir}/doc/latex/MemoirChapStyles/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18938 |21mr|texlive-memory-1.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30452
# category Package
# catalog-ctan /macros/latex/contrib/memory
# catalog-date 2013-05-13 20:07:16 +0200
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-memory
Version:	1.2
Release:	11
Summary:	Containers for data in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/memory
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memory.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memory.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/memory.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to declare single object or array
containers.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/memory/memory.sty
%doc %{_texmfdistdir}/doc/latex/memory/README
%doc %{_texmfdistdir}/doc/latex/memory/memory.pdf
#- source
%doc %{_texmfdistdir}/source/latex/memory/memory.dtx
%doc %{_texmfdistdir}/source/latex/memory/memory.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18939 |21mr|texlive-mentis-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mentis
# catalog-date 2007-01-09 22:36:10 +0100
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-mentis
Version:	1.5
Release:	7
Summary:	A basis for books to be published by Mentis publishers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mentis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mentis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mentis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mentis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX class loads scrbook and provides changes necessary
for publishing at Mentis publishers in Paderborn, Germany. It
is not an official Mentis class, merely one developed by an
author in close co-operation with Mentis.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mentis/mentis.cls
%doc %{_texmfdistdir}/doc/latex/mentis/README
%doc %{_texmfdistdir}/doc/latex/mentis/mentis.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mentis/mentis.dtx
%doc %{_texmfdistdir}/source/latex/mentis/mentis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18940 |21mr|texlive-menu-0.994-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/menu
# catalog-date 2009-03-06 22:55:22 +0100
# catalog-license other-free
# catalog-version 0.994
Name:		texlive-menu
Version:	0.994
Release:	7
Summary:	Typesetting menus
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/menu
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/menu.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/menu.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/menu.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines command \menu which assists typesetting of
a path through a program's menu.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/menu/menu.sty
%doc %{_texmfdistdir}/doc/latex/menu/README
%doc %{_texmfdistdir}/doc/latex/menu/menu.pdf
#- source
%doc %{_texmfdistdir}/source/latex/menu/menu.dtx
%doc %{_texmfdistdir}/source/latex/menu/menu.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18941 |21mr|texlive-menukeys-1.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33151
# category Package
# catalog-ctan /macros/latex/contrib/menukeys
# catalog-date 2014-03-10 08:48:40 +0100
# catalog-license lppl1.2
# catalog-version 1.3
Name:		texlive-menukeys
Version:	1.5
Release:	3
Epoch:		1
Summary:	Format menu sequences, paths and keystrokes from lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/menukeys
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/menukeys.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/menukeys.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/menukeys.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows easy input and formatting of menu sequences,
using menus set with commands such as \menu{Extras > Settings >
General}, paths using a command like
\path{macros/latex/contrib/menukeys} and short cuts such as
\keys{\ctrl + C}. The output is highly configurable by
providing different styles and colour themes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/menukeys/menukeys.sty
%doc %{_texmfdistdir}/doc/latex/menukeys/README
%doc %{_texmfdistdir}/doc/latex/menukeys/menukeys.pdf
#- source
%doc %{_texmfdistdir}/source/latex/menukeys/menukeys.dtx
%doc %{_texmfdistdir}/source/latex/menukeys/menukeys.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18942 |21mr|texlive-metafont-20200314-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-metafont
Version:	20200314
Release:	2
Summary:	A system for specifying fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/knuth/dist/mf
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metafont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metafont.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modes.tar.xz
Source3:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-metafont.bin
%rename tetex-mfwin
%rename texlive-mfwin

%description
The program takes a semi-algorithmic specification of a font,
and produces a bitmap font (whose properties are defined by a
set of parameters of the target device), and a set metrics for
use by TeX. The bitmap output may be converted into a format
directly usable by a device driver, etc., by the tools provided
in the parallel mfware distribution. (Third parties have
developed tools to convert the bitmap output to outline fonts.)
The distribution includes the source of Knuth's Metafont book;
this source is there to read, as an example of writing TeX --
it should not be processed without Knuth's direct permission.

%postun
    if [ $1 -eq 0 ]; then
	rm -fr %{_texmfvardir}/web2c/metafont
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metafont/base/mf.mf
%{_texmfdistdir}/metafont/base/plain.mf
%{_texmfdistdir}/metafont/config/cmmf.ini
%{_texmfdistdir}/metafont/config/mf.ini
%{_texmfdistdir}/metafont/misc/mode2dpi.mf
%{_texmfdistdir}/metafont/misc/mode2dpixy.mf
%{_texmfdistdir}/metafont/misc/modename.mf
%{_texmfdistdir}/metafont/misc/ps2mfbas.mf
%{_texmfdistdir}/fonts/source/public/modes/modes.mf
%{_tlpkgdir}/tlpobj/metafont*
%{_tlpkgdir}/tlpobj/modes*
%_texmf_fmtutil_d/metafont
%doc %{_mandir}/man1/mf-nowin.1*
%doc %{_texmfdistdir}/doc/man/man1/mf-nowin.man1.pdf
%doc %{_mandir}/man1/mf.1*
%doc %{_mandir}/man1/inimf.1*
%doc %{_texmfdistdir}/doc/man/man1/mf.man1.pdf
%doc %{_texmfdistdir}/doc/man/man1/inimf.man1.pdf
%doc %{_texmfdistdir}/doc/fonts/modes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2 -a3

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
cp -fpar doc fonts %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/metafont <<EOF
#
# from metafont:
mf mf-nowin - -translate-file=cp227.tcx mf.ini
EOF
cp -fpar tlpkg/tlpobj %{buildroot}%{_tlpkgdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18943 |21mr|texlive-metafont-beginners-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /info/metafont/beginners
# catalog-date 2012-05-23 16:10:32 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-metafont-beginners
Version:	20180303
Release:	2
Summary:	An introductory tutorial for Metafont
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/metafont/beginners
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metafont-beginners.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metafont-beginners.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
An old introduction to the use of Metafont, that has stood the
test of time. It focuses on using the program, rather than
designing fonts, but does offer advice about understanding
errors in other people's fonts.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/fonts/metafont-beginners/metafont-for-beginners.pdf
%doc %{_texmfdistdir}/doc/fonts/metafont-beginners/metafont-for-beginners.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18944 |21mr|texlive-metago-0.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/metago
# catalog-date 2008-09-08 11:32:46 +0200
# catalog-license lppl
# catalog-version 0.9
Name:		texlive-metago
Version:	0.9
Release:	7
Summary:	MetaPost output of Go positions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/metago
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metago.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metago.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows you to draw Go game positions with MetaPost.
Two methods of usage are provided, either using the package
programmatically, or using the package via a script (which may
produce several images).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/metago/metago.mp
%doc %{_texmfdistdir}/doc/metapost/metago/README
%doc %{_texmfdistdir}/doc/metapost/metago/example-program.mp
%doc %{_texmfdistdir}/doc/metapost/metago/example-program.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script-1.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script-2.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script-3.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script-4.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script-5.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script-6.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script-7.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script-8.pdf
%doc %{_texmfdistdir}/doc/metapost/metago/example-script.mp
%doc %{_texmfdistdir}/doc/metapost/metago/script.go

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18945 |21mr|texlive-metalogo-0.12-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18611
# category Package
# catalog-ctan /macros/latex/contrib/metalogo
# catalog-date 2010-05-29 17:49:59 +0200
# catalog-license lppl
# catalog-version 0.12
Name:		texlive-metalogo
Version:	0.12
Release:	7
Summary:	Extended TeX logo macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/metalogo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metalogo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metalogo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metalogo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package exposes spacing parameters for various TeX logos
to the end user, to optimise the logos for different fonts.
Written especially for XeLaTeX users.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/metalogo/metalogo.sty
%doc %{_texmfdistdir}/doc/latex/metalogo/README
%doc %{_texmfdistdir}/doc/latex/metalogo/TeXoutline.pdf
%doc %{_texmfdistdir}/doc/latex/metalogo/eLaToutline.pdf
%doc %{_texmfdistdir}/doc/latex/metalogo/metalogo.pdf
#- source
%doc %{_texmfdistdir}/source/latex/metalogo/metalogo.dtx
%doc %{_texmfdistdir}/source/latex/metalogo/metalogo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18946 |21mr|texlive-metalogox-20190120-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-metalogox
Version:	20190120
Release:	1
Summary:	Adjust TEX logos, with font detection
Group:		Publishing
URL:		https://www.ctan.org/pkg/metalogox
License:	The LATEX Project Public License 1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metalogox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metalogox.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/metalogox.source.tar.xz 
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package extends the metalogo package to automatically adjust 
the appearance of the logos TEX, LATEX, LATEX2ε, XELATEX, and LuaLATEX, 
depending on the font detected or the option given to metalogox.
Most of the serif and sans fonts listed at The LATEX Font 
Catalogue are supported. The package depends on metalogo, 
xparse, and etoolbox.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/metalogox
%{_texmfdistdir}/source/latex/metalogox
%doc %{_texmfdistdir}/doc/latex/metalogox

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18947 |21mr|texlive-metaobj-0.93-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/metaobj
# catalog-date 2007-08-24 22:48:09 +0200
# catalog-license lppl
# catalog-version 0.93
Name:		texlive-metaobj
Version:	0.93
Release:	7
Summary:	MetaPost package providing high-level objects
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/metaobj
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metaobj.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metaobj.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
METAOBJ is a large metapost package providing high-level
objects. It implements many of PSTricks' features for node
connections, but also trees, matrices, and many other things.
It more or less contains boxes.mp and rboxes.mp. There is a
large (albeit not complete) documentation distributed with the
package. It is easily extensible with new objects.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/metaobj/connections.mp
%{_texmfdistdir}/metapost/metaobj/metaobj.mp
%{_texmfdistdir}/metapost/metaobj/mobjstandard.mp
%{_texmfdistdir}/metapost/metaobj/proofex.mp
%{_texmfdistdir}/metapost/metaobj/pstricksex1.mp
%{_texmfdistdir}/metapost/metaobj/pstricksex2.mp
%{_texmfdistdir}/metapost/metaobj/pstricksex3.mp
%{_texmfdistdir}/metapost/metaobj/pstricksex4.mp
%doc %{_texmfdistdir}/doc/metapost/metaobj/README
%doc %{_texmfdistdir}/doc/metapost/metaobj/license.txt
%doc %{_texmfdistdir}/doc/metapost/metaobj/momanual.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18948 |21mr|texlive-metaplot-0.91-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metaplot
# catalog-date 2006-11-09 21:17:58 +0100
# catalog-license lppl
# catalog-version 0.91
Name:		texlive-metaplot
Version:	0.91
Release:	7
Summary:	Plot-manipulation macros for use in Metapost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metaplot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metaplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metaplot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MetaPlot is a set of Metapost macros for manipulating pre-
generated plots (and similar objects), and formatting them for
inclusion in a Metapost figure. The intent is that the plots
can be generated by some outside program, in an abstract manner
that does not require making decisions about on-page sizing and
layout, and then they can be imported into MetaPlot and
arranged using the full capabilities of Metapost. Metaplot also
includes a very flexible set of macros for generating plot
axes, which may be useful in other contexts as well. Presently,
MetaPlot is in something of a pre-release beta state; it is
quite functional, but the syntax of the commands are still
potentially in flux. Bug reports and other suggestions would be
most welcome!.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/metaplot/axes.mp
%{_texmfdistdir}/metapost/metaplot/metaplot.mp
%doc %{_texmfdistdir}/doc/latex/metaplot/README
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/cap1.cc
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/cap1.mp
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/capillary.cc
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/cpoint.cc
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/cpoint.h
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/figure_1.mp
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/figures_2-7.mp
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/figures_8-9.mp
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/gpl.txt
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/mc2.mp
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/metacontour.cc
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/metacontour.h
%doc %{_texmfdistdir}/doc/latex/metaplot/examples/metacontour_main.cc
%doc %{_texmfdistdir}/doc/latex/metaplot/metaplot_preprint.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18949 |21mr|texlive-metapost-1.803-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34194
# category Package
# catalog-ctan /graphics/metapost/base
# catalog-date 2013-06-20 18:08:19 +0200
# catalog-license lgpl
# catalog-version 1.803
Name:		texlive-metapost
Version:	1.803
Release:	11
Summary:	A development of Metafont for creating graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/base
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metapost.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metapost.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-metapost.bin

%description
MetaPost uses a language based on that of Metafont to produce
precise technical illustrations. Its output is scalable
PostScript or SVG, rather than the bitmaps Metafont creates.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/metapost/freeeuro.afm
%{_texmfdistdir}/fonts/afm/metapost/psyrgo.afm
%{_texmfdistdir}/fonts/afm/metapost/zpzdr-reversed.afm
%{_texmfdistdir}/fonts/enc/dvips/metapost/groff.enc
%{_texmfdistdir}/fonts/map/dvips/metapost/troff-updmap.map
%{_texmfdistdir}/fonts/map/dvips/metapost/troff.map
%{_texmfdistdir}/fonts/tfm/metapost/freeeuro.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pagd8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pagdo8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pagk8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pagko8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pbkd8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pbkdi8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pbkl8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pbkli8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pcrb8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pcrbo8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pcrr8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pcrro8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/phvb8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/phvb8gn.tfm
%{_texmfdistdir}/fonts/tfm/metapost/phvbo8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/phvbo8gn.tfm
%{_texmfdistdir}/fonts/tfm/metapost/phvr8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/phvr8gn.tfm
%{_texmfdistdir}/fonts/tfm/metapost/phvro8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/phvro8gn.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pncb8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pncbi8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pncr8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pncri8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pplb8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pplbi8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pplr8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pplri8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/psyrgo.tfm
%{_texmfdistdir}/fonts/tfm/metapost/ptmb8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/ptmbi8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/ptmr8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/ptmri8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/pzcmi8g.tfm
%{_texmfdistdir}/fonts/tfm/metapost/zpzdr-reversed.tfm
%{_texmfdistdir}/fonts/type1/metapost/freeeuro.pfa
%{_texmfdistdir}/metapost/base/TEX.mp
%{_texmfdistdir}/metapost/base/boxes.mp
%{_texmfdistdir}/metapost/base/format.mp
%{_texmfdistdir}/metapost/base/graph.mp
%{_texmfdistdir}/metapost/base/marith.mp
%{_texmfdistdir}/metapost/base/mfplain.mp
%{_texmfdistdir}/metapost/base/mpost.mp
%{_texmfdistdir}/metapost/base/plain.mp
%{_texmfdistdir}/metapost/base/rboxes.mp
%{_texmfdistdir}/metapost/base/sarith.mp
%{_texmfdistdir}/metapost/base/string.mp
%{_texmfdistdir}/metapost/base/texnum.mp
%{_texmfdistdir}/metapost/base/troffnum.mp
%{_texmfdistdir}/metapost/config/mfplain.ini
%{_texmfdistdir}/metapost/misc/null.mp
%{_texmfdistdir}/metapost/support/charlib/12
%{_texmfdistdir}/metapost/support/charlib/14
%{_texmfdistdir}/metapost/support/charlib/34
%{_texmfdistdir}/metapost/support/charlib/Ao
%{_texmfdistdir}/metapost/support/charlib/Fi
%{_texmfdistdir}/metapost/support/charlib/Fl
%{_texmfdistdir}/metapost/support/charlib/L1
%{_texmfdistdir}/metapost/support/charlib/LH
%{_texmfdistdir}/metapost/support/charlib/Lb
%{_texmfdistdir}/metapost/support/charlib/Sl
%{_texmfdistdir}/metapost/support/charlib/ao.x
%{_texmfdistdir}/metapost/support/charlib/bx
%{_texmfdistdir}/metapost/support/charlib/ci
%{_texmfdistdir}/metapost/support/charlib/ff
%{_texmfdistdir}/metapost/support/charlib/lh.x
%{_texmfdistdir}/metapost/support/charlib/ob
%{_texmfdistdir}/metapost/support/charlib/rh
%{_texmfdistdir}/metapost/support/charlib/sq
%{_texmfdistdir}/metapost/support/charlib/twiddle
%{_texmfdistdir}/metapost/support/trchars.adj
%{_texmfdistdir}/metapost/support/trfonts.map
%{_texmfdistdir}/tex/generic/metapost/mproof.tex
%{_texmfdistdir}/tex/generic/metapost/mpsproof.tex
%doc %{_mandir}/man1/dvitomp.1*
%doc %{_texmfdistdir}/doc/man/man1/dvitomp.man1.pdf
%doc %{_mandir}/man1/mpost.1*
%doc %{_texmfdistdir}/doc/man/man1/mpost.man1.pdf
%doc %{_texmfdistdir}/doc/metapost/base/grdemo-doc.pdf
%doc %{_texmfdistdir}/doc/metapost/base/grdemo.pdf
%doc %{_texmfdistdir}/doc/metapost/base/index.html
%doc %{_texmfdistdir}/doc/metapost/base/mpboxes.pdf
%doc %{_texmfdistdir}/doc/metapost/base/mpgraph.pdf
%doc %{_texmfdistdir}/doc/metapost/base/mpintro.pdf
%doc %{_texmfdistdir}/doc/metapost/base/mplibapi.pdf
%doc %{_texmfdistdir}/doc/metapost/base/mpman.pdf
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/Makefile
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/README
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/TODO
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/agepop91.d
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/agepopm.d
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/charts.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/cm2lm.map
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/countries.d
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/ctabbing.sty
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/demo.ms
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/energy.d
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/figs.1
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/figs.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/grdemo-doc.ms
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/grdemo-doc.ps
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/grdemo.eps
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/grdemo.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/grdemo.ms
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/lead.d
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/matmul.d
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpboxes.bib
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpboxes.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpboxes.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpgraph.bib
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpgraph.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpgraph.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mplibapi.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman-app-legacy.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman-app-numbersystems.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman-app-optab.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman-app-refman.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman-charts.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman.bib
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman.ist
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/mpman.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-manual/timepop.d
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/Makefile
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/abstract.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/annulus.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/arrows.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/biblio.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/circles.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/commands.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/compilation.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/conclusion.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/data.d
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/data.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/data.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/draw.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/draw.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/fill.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/fill.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/graph.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/inclusion.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/intro.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/label.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/label.tex
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/mpintro.bib
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/mpintro.ltx
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/paperclip.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/parabola.mp
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/previewer.eps
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/previewer.pdf
%doc %{_texmfdistdir}/doc/metapost/base/source-tutorial/previewer.png

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18950 |21mr|texlive-metapost-colorbrewer-20180925-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-metapost-colorbrewer
Version:	20180925
Release:	1
Summary:	An implementation of the colorbrewer2.org colours for MetaPost
Group:		Publishing
URL:		https://ctan.org/pkg/metapost-colorbrewer
License:	gpl3+
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metapost-colorbrewer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metapost-colorbrewer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides two MetaPost include files that define
all the colorbrewer2.org colours: colorbrewer-cmyk.mp
colorbrewer-rgb.mp The first defines all the colours as CMYK,
the second as RGB. Use whichever one you prefer. For an example
of what you can do, and a list of all the names, have a look at
colorbrewer-sampler.mp. You can also see the names on
http://colorbrewer2.org. The package also includes the Python
script used to generate the MP source from the colorbrewer
project.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18951 |21mr|texlive-metapost-examples-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/metapost/examples
# catalog-date 2008-04-20 19:53:04 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-metapost-examples
Version:	20190228
Release:	1
Summary:	Example drawings using MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/metapost/examples
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metapost-examples.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metapost-examples.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
These are a few (hundred) example pictures drawn with MetaPost,
ranging from very simple (lines and circles) to rather
intricate (uncommon geometric transformations, fractals,
bitmap, etc).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/metapost/metapost-examples/Makefile
%doc %{_texmfdistdir}/doc/metapost/metapost-examples/README
%doc %{_texmfdistdir}/doc/metapost/metapost-examples/data1
%doc %{_texmfdistdir}/doc/metapost/metapost-examples/data2
%doc %{_texmfdistdir}/doc/metapost/metapost-examples/data3
%doc %{_texmfdistdir}/doc/metapost/metapost-examples/examples.mp
%doc %{_texmfdistdir}/doc/metapost/metapost-examples/mp2html.pl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18952 |21mr|texlive-metatype1-0.56-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-metatype1
Version:	0.56
Release:	1
Summary:	Generate Type 1 fonts from MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/metatype1
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metatype1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metatype1.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The system employs scripts, common utility programs, and a set
of MetaPost macros to provide a means of expressing the details
outline fonts directly in the MetaPost language. The system was
employed to generate the Latin Modern fonts, and the
distribution includes an example development of Knuth's logo
fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/source/metapost

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18953 |21mr|texlive-metauml-0.2.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19692
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/metauml
# catalog-date 2010-07-30 13:14:18 +0200
# catalog-license gpl
# catalog-version 0.2.5
Name:		texlive-metauml
Version:	0.2.5
Release:	7
Summary:	MetaPost library for typesetting UML diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/metauml
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metauml.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metauml.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MetaUML is a MetaPost library for typesetting UML diagrams,
which provides a usable, human-friendly textual notation for
UML, offering now support for class, package, activity, state,
and use case diagrams.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/metauml/metauml.mp
%{_texmfdistdir}/metapost/metauml/metauml_activity.mp
%{_texmfdistdir}/metapost/metauml/metauml_base.mp
%{_texmfdistdir}/metapost/metauml/metauml_behavioral_common.mp
%{_texmfdistdir}/metapost/metauml/metauml_class.mp
%{_texmfdistdir}/metapost/metauml/metauml_class_assoc.mp
%{_texmfdistdir}/metapost/metauml/metauml_class_clipart.mp
%{_texmfdistdir}/metapost/metauml/metauml_class_relations.mp
%{_texmfdistdir}/metapost/metauml/metauml_component.mp
%{_texmfdistdir}/metapost/metauml/metauml_component_relations.mp
%{_texmfdistdir}/metapost/metauml/metauml_defaults.mp
%{_texmfdistdir}/metapost/metauml/metauml_instance.mp
%{_texmfdistdir}/metapost/metauml/metauml_links.mp
%{_texmfdistdir}/metapost/metauml/metauml_note.mp
%{_texmfdistdir}/metapost/metauml/metauml_package.mp
%{_texmfdistdir}/metapost/metauml/metauml_package_relations.mp
%{_texmfdistdir}/metapost/metauml/metauml_paths.mp
%{_texmfdistdir}/metapost/metauml/metauml_skin_simple.mp
%{_texmfdistdir}/metapost/metauml/metauml_state.mp
%{_texmfdistdir}/metapost/metauml/metauml_stereotype.mp
%{_texmfdistdir}/metapost/metauml/metauml_templates.mp
%{_texmfdistdir}/metapost/metauml/metauml_usecase.mp
%{_texmfdistdir}/metapost/metauml/metauml_usecase_clipart.mp
%{_texmfdistdir}/metapost/metauml/util_commons.mp
%{_texmfdistdir}/metapost/metauml/util_group.mp
%{_texmfdistdir}/metapost/metauml/util_infrastructure.mp
%{_texmfdistdir}/metapost/metauml/util_log.mp
%{_texmfdistdir}/metapost/metauml/util_margins.mp
%{_texmfdistdir}/metapost/metauml/util_object.mp
%{_texmfdistdir}/metapost/metauml/util_picture.mp
%{_texmfdistdir}/metapost/metauml/util_picture_stack.mp
%{_texmfdistdir}/metapost/metauml/util_positioning.mp
%{_texmfdistdir}/metapost/metauml/util_shade.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/README
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/activity.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/activity_diagrams.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/appetizer.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/boxes_vs_util.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/class.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/class_association.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/class_customization.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/class_customization2.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/class_diagrams.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/class_templates.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/cliparts.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/component.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/group.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/how-links-work.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/instance.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/mptextmp.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/mptrace.tmp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/note.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/object_stack.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/package.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/paths.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/paths_man.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/picture_info.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/picture_stack.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/positioning.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/properties.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/state.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/statemachine_diagrams.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_activity.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_class.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_class_qual_assoc.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_class_templates.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_component.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_font.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_group.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_instance.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_lars_issues.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_lowlevel.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_note.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_package.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_paths.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_picture.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_picture_stack.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_picture_tex_rendering.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_positioning.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_skins.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_skins_global_defaults.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_state.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/test_usecase.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/usecase.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/fig/usecase_diagrams.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/gnu-fdl.tex
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/macro.tex
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/metauml_manual.tex
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/my-bib.bib
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/test.mp
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual/test_suite.tex
%doc %{_texmfdistdir}/doc/metapost/metauml/metauml_manual_0.2.5.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18954 |21mr|texlive-method-2.0b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17485
# category Package
# catalog-ctan /macros/latex/contrib/method
# catalog-date 2010-03-14 23:46:18 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-method
Version:	2.0b
Release:	2
Epoch:		1
Summary:	Typeset method and variable declarations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/method
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/method.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/method.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/method.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package supports the typesetting of programming
language method and variable declarations. It includes an
option to typeset in French.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/method/method.sty
%doc %{_texmfdistdir}/doc/latex/method/README
%doc %{_texmfdistdir}/doc/latex/method/method.pdf
%doc %{_texmfdistdir}/doc/latex/method/methtest.tex
#- source
%doc %{_texmfdistdir}/source/latex/method/Makefile
%doc %{_texmfdistdir}/source/latex/method/method.dtx
%doc %{_texmfdistdir}/source/latex/method/method.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18955 |21mr|texlive-metre-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18489
# category Package
# catalog-ctan /macros/latex/contrib/metre
# catalog-date 2007-03-09 22:25:45 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-metre
Version:	1.0
Release:	7
Summary:	Support for the work of classicists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/metre
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metre.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metre.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metre.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides classicists with some of the tools that
are needed for typesetting scholarly publications dealing with
Greek and Latin texts, with special emphasis on Greek verse. As
the package's name suggests, its core is a comprehensive set of
commands for generating metrical schemes and for placing
prosodical marks on text set in the Latin or the Greek
alphabet. The rest of the package provides a miscellany of
commands for symbols (most of them not directly related to
metre) that are often used in critical editions of classical
texts. The package does not require any special font: all
symbols are taken from the Computer Modern fonts (which are
included in all TeX distributions) and the package's commands
are based on TeX primitives.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/metre/metre.sty
%doc %{_texmfdistdir}/doc/latex/metre/README
%doc %{_texmfdistdir}/doc/latex/metre/demo.pdf
%doc %{_texmfdistdir}/doc/latex/metre/demo.tex
%doc %{_texmfdistdir}/doc/latex/metre/greek1.tex
%doc %{_texmfdistdir}/doc/latex/metre/greek2.tex
%doc %{_texmfdistdir}/doc/latex/metre/greek3.tex
%doc %{_texmfdistdir}/doc/latex/metre/igreek1.tex
%doc %{_texmfdistdir}/doc/latex/metre/igreek2.tex
%doc %{_texmfdistdir}/doc/latex/metre/igreek3.tex
%doc %{_texmfdistdir}/doc/latex/metre/metre.pdf
#- source
%doc %{_texmfdistdir}/source/latex/metre/metre.dtx
%doc %{_texmfdistdir}/source/latex/metre/metre.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18956 |21mr|texlive-metrix-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31425
# category Package
# catalog-ctan /macros/latex/contrib/metrix
# catalog-date 2013-08-13 17:10:37 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-metrix
Version:	1.3
Release:	2
Summary:	Typeset metric marks for Latin text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/metrix
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metrix.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metrix.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/metrix.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package may be used to type the prosodics/metrics of
(latin) verse; it provides macros to typeset the symbols
standing alone, and in combination with symbols, giving
automatic alignment. The package requires tikz (including the
calc library, and the xparse package (thus also requiring the
experimental LaTeX 3 environment).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/metrix/metrix.sty
%doc %{_texmfdistdir}/doc/latex/metrix/README
%doc %{_texmfdistdir}/doc/latex/metrix/metrix.pdf
#- source
%doc %{_texmfdistdir}/source/latex/metrix/metrix.dtx
%doc %{_texmfdistdir}/source/latex/metrix/metrix.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18957 |21mr|texlive-mex-1.05-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22650
# category Package
# catalog-ctan /language/polish/mex105.zip
# catalog-date 2011-04-11 12:20:39 +0200
# catalog-license pd
# catalog-version 1.05
Name:		texlive-mex
Version:	1.05
Release:	8
Summary:	Polish formats for TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/polish/mex105.zip
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-pl
Requires:	texlive-hyphen-polish
Requires:	texlive-pdftex
Requires:	texlive-tex
Requires:	texlive-mex.bin

%description
MeX is an adaptation of Plain TeX (MeX) and LaTeX209 (LaMeX)
formats to the Polish language and to Polish printing customs.
It contains a complete set of Metafont sources of Polish fonts,
hyphenation rules for the Polish language and sources of
formats.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/mex/base/lamex.tex
%{_texmfdistdir}/tex/mex/base/mex.tex
%{_texmfdistdir}/tex/mex/base/mex1.tex
%{_texmfdistdir}/tex/mex/base/mex2.tex
%{_texmfdistdir}/tex/mex/base/mexconf.tex
%{_texmfdistdir}/tex/mex/config/mex.ini
%{_texmfdistdir}/tex/mex/config/pdfmex.ini
%_texmf_fmtutil_d/mex
%doc %{_texmfdistdir}/doc/mex/base/00readme
%doc %{_texmfdistdir}/doc/mex/base/mex.html
%doc %{_texmfdistdir}/doc/mex/base/mexinfo.eng
%doc %{_texmfdistdir}/doc/mex/base/mexinfo.pol
%doc %{_texmfdistdir}/doc/mex/base/qq.eps
%doc %{_texmfdistdir}/doc/mex/base/tstmex.tex
#- source
%doc %{_texmfdistdir}/source/mex/base/eminst.zip
%doc %{_texmfdistdir}/source/mex/base/istyles.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/mex <<EOF
#
# from mex:
mex pdftex mexconf.tex -translate-file=cp227.tcx *mex.ini
pdfmex pdftex mexconf.tex -translate-file=cp227.tcx *pdfmex.ini
utf8mex pdftex mexconf.tex -enc *utf8mex.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18958 |21mr|texlive-mf2pt1-2.5a-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33802
# category Package
# catalog-ctan /support/mf2pt1
# catalog-date 2014-05-02 06:53:00 +0200
# catalog-license lppl
# catalog-version 2.5a
Name:		texlive-mf2pt1
Epoch:		1
Version:	2.5a
Release:	5
Summary:	Produce PostScript Type 1 fonts from Metafont source
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/mf2pt1
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mf2pt1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mf2pt1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-mf2pt1.bin = %{EVRD}

%description
mf2pt1 facilitates producing PostScript Type 1 fonts from a
Metafont source file. It is not, as the name may imply, an
automatic converter of arbitrary Metafont fonts to Type 1
format. mf2pt1 imposes a number of restrictions on the Metafont
input. If these restrictions are met, mf2pt1 will produce valid
Type 1 output with more accurate control points than can be
reverse-engineered by TeXtrace, mftrace, and other programs
which convert bitmaps to outline fonts.

#-----------------------------------------------------------------------
%files
%{_bindir}/mf2pt1
%{_texmfdistdir}/metapost/mf2pt1/mf2pt1.mp
%{_texmfdistdir}/scripts/mf2pt1/mf2pt1.pl
%doc %{_infodir}/mf2pt1.info*
%doc %{_texmfdistdir}/doc/support/mf2pt1/ChangeLog
%doc %{_texmfdistdir}/doc/support/mf2pt1/README
%doc %{_texmfdistdir}/doc/support/mf2pt1/mf2pt1.pdf
%doc %{_texmfdistdir}/doc/support/mf2pt1/mf2pt1.texi

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/mf2pt1/mf2pt1.pl mf2pt1
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18959 |21mr|texlive-mfirstuc-2.06-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mfirstuc
Version:	2.06
Release:	2
Summary:	Uppercase the first letter of a word
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mfirstuc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfirstuc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfirstuc.source.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfirstuc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands \makefirstuc that uppercases the
first letter in its argument (with a check for a semantic
markup command at the start of the argument), and \xmakefirstuc
which expands the argument before uppercasing. It also provides
longdesc \capitalisewords{phrase} which applies \makefirstuc to each
word in the phrase, where the words are separated by regular
spaces. (Exceptions can be made for words that shouldn't be
converted.)

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/mfirstuc
%{_texmfdistdir}/tex/latex/mfirstuc
%doc %{_texmfdistdir}/doc/latex/mfirstuc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18960 |21mr|texlive-mflogo-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32865
# category Package
# catalog-ctan /macros/latex/contrib/mflogo
# catalog-date 2012-06-24 11:08:44 +0200
# catalog-license lppl
# catalog-version 2.0
Epoch:		1
Name:		texlive-mflogo
Version:	2.0
Release:	6
Summary:	LaTeX support for Metafont logo fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mflogo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mflogo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mflogo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mflogo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX package and font definition file to access the Knuthian
mflogo fonts described in 'The Metafontbook' and to typeset
Metafont logos in LaTeX documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo/logo10.afm
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo/logo8.afm
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo/logo9.afm
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo/logobf10.afm
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo/logod10.afm
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo/logosl10.afm
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo/logosl8.afm
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo/logosl9.afm
%{_texmfdistdir}/fonts/map/dvips/mflogo/mflogo.map
%{_texmfdistdir}/fonts/source/public/mflogo/flogo.mf
%{_texmfdistdir}/fonts/source/public/mflogo/logo.mf
%{_texmfdistdir}/fonts/source/public/mflogo/logo10.mf
%{_texmfdistdir}/fonts/source/public/mflogo/logo8.mf
%{_texmfdistdir}/fonts/source/public/mflogo/logo9.mf
%{_texmfdistdir}/fonts/source/public/mflogo/logobf10.mf
%{_texmfdistdir}/fonts/source/public/mflogo/logosl10.mf
%{_texmfdistdir}/fonts/source/public/mflogo/logosl8.mf
%{_texmfdistdir}/fonts/source/public/mflogo/nlogo.mf
%{_texmfdistdir}/fonts/source/public/mflogo/sklogo.mf
%{_texmfdistdir}/fonts/tfm/public/mflogo/logo10.tfm
%{_texmfdistdir}/fonts/tfm/public/mflogo/logo8.tfm
%{_texmfdistdir}/fonts/tfm/public/mflogo/logo9.tfm
%{_texmfdistdir}/fonts/tfm/public/mflogo/logobf10.tfm
%{_texmfdistdir}/fonts/tfm/public/mflogo/logod10.tfm
%{_texmfdistdir}/fonts/tfm/public/mflogo/logosl10.tfm
%{_texmfdistdir}/fonts/tfm/public/mflogo/logosl8.tfm
%{_texmfdistdir}/fonts/tfm/public/mflogo/logosl9.tfm
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo/logo10.pfb
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo/logo8.pfb
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo/logo9.pfb
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo/logobf10.pfb
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo/logod10.pfb
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo/logosl10.pfb
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo/logosl8.pfb
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo/logosl9.pfb
%{_texmfdistdir}/tex/latex/mflogo/mflogo.sty
%{_texmfdistdir}/tex/latex/mflogo/ulogo.fd
%doc %{_texmfdistdir}/doc/latex/mflogo/mflogo.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mflogo/CATALOGUE
%doc %{_texmfdistdir}/source/latex/mflogo/Makefile
%doc %{_texmfdistdir}/source/latex/mflogo/README
%doc %{_texmfdistdir}/source/latex/mflogo/mflogo.dtx
%doc %{_texmfdistdir}/source/latex/mflogo/mflogo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18961 |21mr|texlive-mflogo-font-1.002-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mflogo-font
Version:	1.002
Release:	1
Summary:	Metafont logo font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mflogo-font
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mflogo-font.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mflogo-font.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These fonts were created in Metafont by Knuth, for his own
publications. At some stage, the letters 'P' and 'S' were
added, so that the MetaPost logo could also be expressed. The
fonts were originally issued (of course) as Metafont source;
they have since been autotraced and reissued in Adobe Type 1
format by Taco Hoekwater.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/hoekwater/mflogo-font
%{_texmfdistdir}/fonts/map/dvips/mflogo-font
%{_texmfdistdir}/fonts/type1/hoekwater/mflogo-font
%doc %{_texmfdistdir}/doc/fonts/mflogo-font

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18962 |21mr|texlive-mfnfss-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mfnfss
Version:	20190228
Release:	1
Summary:	Packages to typeset oldgerman and pandora fonts in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mfnfss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfnfss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfnfss.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfnfss.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle contains two packages: - oldgerm, a package to
typeset with old german fonts designed by Yannis Haralambous. -
pandora, a package to typeset with Pandora fonts designed by
Neena Billawala. Note that support for the Pandora fonts is
also available via the pandora-latex package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mfnfss
%doc %{_texmfdistdir}/doc/latex/mfnfss
#- source
%doc %{_texmfdistdir}/source/latex/mfnfss

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18963 |21mr|texlive-mfpic-1.10-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28444
# category Package
# catalog-ctan /graphics/mfpic
# catalog-date 2012-12-04 16:44:12 +0100
# catalog-license lppl1.3
# catalog-version 1.10
Name:		texlive-mfpic
Version:	1.10
Release:	10
Summary:	Draw Metafont/post pictures from (La)TeX commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/mfpic
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfpic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfpic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfpic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Mfpic is a scheme for producing pictures from (La)TeX commands.
Commands \mfpic and \endmfpic (in LaTeX, the mfpic environment)
enclose a group in which drawing commands may be placed. The
commands generate a Meta-language file, which may be processed
by Metapost (or even Metafont). The resulting image file will
be read back in to the document to place the picture at the
point where the original (La)TeX commands appeared. Note that
the ability to use Metapost here means that the package works
equally well in LaTeX and PDFLaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metafont/mfpic/grafbase.mf
%{_texmfdistdir}/metapost/mfpic/dvipsnam.mp
%{_texmfdistdir}/metapost/mfpic/grafbase.mp
%{_texmfdistdir}/tex/generic/mfpic/mfpic.sty
%{_texmfdistdir}/tex/generic/mfpic/mfpic.tex
%{_texmfdistdir}/tex/generic/mfpic/mfpicdef.tex
%doc %{_texmfdistdir}/doc/generic/mfpic/README
%doc %{_texmfdistdir}/doc/generic/mfpic/changes.txt
%doc %{_texmfdistdir}/doc/generic/mfpic/coil.mps
%doc %{_texmfdistdir}/doc/generic/mfpic/examples/data.dat
%doc %{_texmfdistdir}/doc/generic/mfpic/examples/forfun.tex
%doc %{_texmfdistdir}/doc/generic/mfpic/examples/lapictures.tex
%doc %{_texmfdistdir}/doc/generic/mfpic/examples/pictures.tex
%doc %{_texmfdistdir}/doc/generic/mfpic/install.txt
%doc %{_texmfdistdir}/doc/generic/mfpic/lcheadings.ist
%doc %{_texmfdistdir}/doc/generic/mfpic/mfpcard.pdf
%doc %{_texmfdistdir}/doc/generic/mfpic/mfpcard.tex
%doc %{_texmfdistdir}/doc/generic/mfpic/mfpdoc.sty
%doc %{_texmfdistdir}/doc/generic/mfpic/mfpguide.pdf
%doc %{_texmfdistdir}/doc/generic/mfpic/mfpguide.tex
%doc %{_texmfdistdir}/doc/generic/mfpic/mfpic-doc.pdf
%doc %{_texmfdistdir}/doc/generic/mfpic/mfpic-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/mfpic/grafbase.dtx
%doc %{_texmfdistdir}/source/generic/mfpic/mfpic.dtx
%doc %{_texmfdistdir}/source/generic/mfpic/mfpic.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metafont metapost tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18964 |21mr|texlive-mfpic4ode-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17745
# category Package
# catalog-ctan /macros/latex/contrib/mfpic4ode
# catalog-date 2010-04-07 19:03:48 +0200
# catalog-license lppl
# catalog-version 0.4
Name:		texlive-mfpic4ode
Version:	0.4
Release:	7
Summary:	Macros to draw direction fields and solutions of ODEs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mfpic4ode
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfpic4ode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfpic4ode.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfpic4ode.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a small set of macros for drawing direction
fields, phase portraits and trajectories of differential
equations and two dimensional autonomous systems. The Euler,
Runge-Kutta and 4th order Runge-Kutta algorithms are available
to solve the ODEs. The picture is translated into mfpic macros
and MetaPost is used to create the final drawing. The package
is was designed for use with LaTeX, but it can be used in plain
TeX as well. Online demonstration of the mfpic4ode macros is
available on the Mfpic Previewer as Example 6.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mfpic4ode/mfpic4ode.sty
%{_texmfdistdir}/tex/latex/mfpic4ode/mfpic4ode.tex
%doc %{_texmfdistdir}/doc/latex/mfpic4ode/README
%doc %{_texmfdistdir}/doc/latex/mfpic4ode/demo/demo-plain.pdf
%doc %{_texmfdistdir}/doc/latex/mfpic4ode/demo/demo-plain.tex
%doc %{_texmfdistdir}/doc/latex/mfpic4ode/demo/demo.pdf
%doc %{_texmfdistdir}/doc/latex/mfpic4ode/demo/demo.tex
%doc %{_texmfdistdir}/doc/latex/mfpic4ode/mfpic4ode.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mfpic4ode/mfpic4ode.dtx
%doc %{_texmfdistdir}/source/latex/mfpic4ode/mfpic4ode.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18965 |21mr|texlive-mftinc-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mftinc
# catalog-date 2007-01-11 00:21:49 +0100
# catalog-license lppl
# catalog-version 1.0a
Name:		texlive-mftinc
Version:	1.0a
Release:	7
Summary:	Pretty-print Metafont source
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mftinc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mftinc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mftinc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mftinc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The mft program pretty-prints Metafont source code into a TeX
file. The mftinc package facilitates incorporating such files
into a LaTeX2e document. In addition, mftinc provides routines
for improved comment formatting and for typesetting font
tables.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mftinc/mftinc.sty
%doc %{_texmfdistdir}/doc/latex/mftinc/README
%doc %{_texmfdistdir}/doc/latex/mftinc/mftinc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mftinc/mftinc.dtx
%doc %{_texmfdistdir}/source/latex/mftinc/mftinc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18966 |21mr|texlive-mfware-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mfware
Version:	20190327
Release:	1
Summary:	Supporting tools for use with Metafont
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/knuth/dist/mfware
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfware.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mfware.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-mfware.bin

%description
A collection of programs (as web source) for processing the
output of Metafont.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/mft/base
%doc %{_mandir}/man1/gftodvi.1*
%doc %{_texmfdistdir}/doc/man/man1/gftodvi.man1.pdf
%doc %{_mandir}/man1/gftopk.1*
%doc %{_texmfdistdir}/doc/man/man1/gftopk.man1.pdf
%doc %{_mandir}/man1/gftype.1*
%doc %{_texmfdistdir}/doc/man/man1/gftype.man1.pdf
%doc %{_mandir}/man1/mft.1*
%doc %{_texmfdistdir}/doc/man/man1/mft.man1.pdf
%doc %{_mandir}/man1/pktogf.1*
%doc %{_texmfdistdir}/doc/man/man1/pktogf.man1.pdf
%doc %{_mandir}/man1/pktype.1*
%doc %{_texmfdistdir}/doc/man/man1/pktype.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18967 |21mr|texlive-mhchem-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33314
# category Package
# catalog-ctan /macros/latex/contrib/mhchem
# catalog-date 2014-03-28 07:32:42 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-mhchem
Version:	20190228
Release:	1
Summary:	Typeset chemical formulae/equations and Risk and Safety phrases
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mhchem
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mhchem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mhchem.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides three packages: The mhchem package provides
commands for typesetting chemical molecular formulae and
equations. The hpstatement package provides commands for the
official hazard statements and precautionary statements (H and
P statements) that are used to label chemicals. The rsphrase
package provides commands for the official Risk and Safety (R
and S) Phrases that are used to label chemicals. The package
requires the expl3 bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mhchem/hpstatement.sty
%{_texmfdistdir}/tex/latex/mhchem/mhchem.sty
%{_texmfdistdir}/tex/latex/mhchem/rsphrase.sty
%doc %{_texmfdistdir}/doc/latex/mhchem/README
%doc %{_texmfdistdir}/doc/latex/mhchem/lppl-1-3c.txt
%doc %{_texmfdistdir}/doc/latex/mhchem/manifest.txt
%doc %{_texmfdistdir}/doc/latex/mhchem/mhchem.pdf
%doc %{_texmfdistdir}/doc/latex/mhchem/mhchem.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18968 |21mr|texlive-microtype-2.7b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-microtype
Version:	2.7b
Release:	1
Summary:	Subliminal refinements towards typographical perfection
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/microtype
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/microtype.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/microtype.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/microtype.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a LaTeX interface to the micro-typographic
extensions that were introduced by pdfTeX and have since also
propagated to XeTeX and LuaTeX: most prominently, character
protrusion and font expansion, furthermore the adjustment of
interword spacing and additional kerning, as well as
hyphenatable letterspacing (tracking) and the possibility to
disable all or selected ligatures. These features may be
applied to customisable sets of fonts, and all micro-
typographic aspects of the fonts can be configured in a
straight-forward and flexible way. Settings for various fonts
are provided. Note that character protrusion requires pdfTeX,
LuaTeX, or XeTeX. Font expansion works with pdfTeX or LuaTeX.
The package will by default enable protrusion and expansion if
they can safely be assumed to work. Disabling ligatures
requires pdfTeX or LuaTeX, while the adjustment of interword
spacing and of kerning only works with pdfTeX. Letterspacing is
available with pdfTeX or LuaTeX. The alternative package
`letterspace', which also works with plain TeX, provides the
user commands for letterspacing only, omitting support for all
other extensions.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/microtype
%doc %{_texmfdistdir}/doc/latex/microtype
#- source
%doc %{_texmfdistdir}/source/latex/microtype

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18969 |21mr|texlive-microtype-de-2.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24549
# category Package
# catalog-ctan /info/translations/microtype/de
# catalog-date 2011-04-03 23:29:51 +0200
# catalog-license lppl1.3
# catalog-version 2.4
Name:		texlive-microtype-de
Version:	2.4
Release:	7
Summary:	Translation into German of the documentation of microtype
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/microtype/de
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/microtype-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/microtype-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive microtype-de package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/microtype-de/microtype-DE.dtx
%doc %{_texmfdistdir}/doc/latex/microtype-de/microtype-DE.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18970 |21mr|texlive-midpage-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17484
# category Package
# catalog-ctan /macros/latex/contrib/midpage
# catalog-date 2010-03-17 12:20:59 +0100
# catalog-license lppl
# catalog-version 1.1a
Name:		texlive-midpage
Version:	1.1a
Release:	7
Summary:	Environment for vertical centring
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/midpage
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/midpage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/midpage.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The environment will centre text, if immediately preceded and
followed by \clearpage.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/midpage/midpage.sty
%doc %{_texmfdistdir}/doc/latex/midpage/midpage.pdf
%doc %{_texmfdistdir}/doc/latex/midpage/midpage.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18971 |21mr|texlive-mil3-20110310-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21677
# category Package
# catalog-ctan /info/examples/mil3
# catalog-date 2011-03-10 20:26:29 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-mil3
Version:	20110310
Release:	6
Summary:	Samples from Math into LaTeX, third edition
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/mil3
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mil3.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mil3.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Examples, samples and templates from the third edition of
Gratzer's book.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/mil3/README
%doc %{_texmfdistdir}/doc/latex/mil3/ams-alph.bst
%doc %{_texmfdistdir}/doc/latex/mil3/ams-pln.bst
%doc %{_texmfdistdir}/doc/latex/mil3/amsart.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/article.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/article2.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/contents
%doc %{_texmfdistdir}/doc/latex/mil3/fonttbl.tex
%doc %{_texmfdistdir}/doc/latex/mil3/gallery.tex
%doc %{_texmfdistdir}/doc/latex/mil3/german.tex
%doc %{_texmfdistdir}/doc/latex/mil3/ggamsart.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/ggart.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/ggart2.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/gratzer
%doc %{_texmfdistdir}/doc/latex/mil3/inbibl.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/intrart.tex
%doc %{_texmfdistdir}/doc/latex/mil3/intrarti.tex
%doc %{_texmfdistdir}/doc/latex/mil3/lattice.sty
%doc %{_texmfdistdir}/doc/latex/mil3/letter.tex
%doc %{_texmfdistdir}/doc/latex/mil3/master.tex
%doc %{_texmfdistdir}/doc/latex/mil3/math.tex
%doc %{_texmfdistdir}/doc/latex/mil3/mathb.tex
%doc %{_texmfdistdir}/doc/latex/mil3/multline.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/note1.tex
%doc %{_texmfdistdir}/doc/latex/mil3/note1b.tex
%doc %{_texmfdistdir}/doc/latex/mil3/note2.tex
%doc %{_texmfdistdir}/doc/latex/mil3/noteslug.tex
%doc %{_texmfdistdir}/doc/latex/mil3/sampart.tex
%doc %{_texmfdistdir}/doc/latex/mil3/sampartb.bib
%doc %{_texmfdistdir}/doc/latex/mil3/sampartb.tex
%doc %{_texmfdistdir}/doc/latex/mil3/sampartu.tex
%doc %{_texmfdistdir}/doc/latex/mil3/sample.html
%doc %{_texmfdistdir}/doc/latex/mil3/svsing2e.sty
%doc %{_texmfdistdir}/doc/latex/mil3/svsing6.cls
%doc %{_texmfdistdir}/doc/latex/mil3/template.bib
%doc %{_texmfdistdir}/doc/latex/mil3/textenv.tpl
%doc %{_texmfdistdir}/doc/latex/mil3/topmat.tpl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18972 |21mr|texlive-miller-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18789
# category Package
# catalog-ctan /macros/latex/contrib/miller
# catalog-date 2007-01-12 00:17:35 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-miller
Version:	1.2
Release:	7
Summary:	Typeset miller indices
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/miller
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/miller.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/miller.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/miller.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typeset miller indices, e.g., <1-20>, that are used in material
science with an easy syntax. Minus signs are printed as bar
above the corresponding number.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/miller/miller.sty
%doc %{_texmfdistdir}/doc/latex/miller/ChangeLog
%doc %{_texmfdistdir}/doc/latex/miller/Makefile
%doc %{_texmfdistdir}/doc/latex/miller/README
%doc %{_texmfdistdir}/doc/latex/miller/miller-v.tex
%doc %{_texmfdistdir}/doc/latex/miller/miller.pdf
%doc %{_texmfdistdir}/doc/latex/miller/millertest.tex
#- source
%doc %{_texmfdistdir}/source/latex/miller/miller.dtx
%doc %{_texmfdistdir}/source/latex/miller/miller.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18973 |21mr|texlive-minibox-0.2a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/minibox
# catalog-date 2009-05-06 13:59:23 +0200
# catalog-license lppl
# catalog-version 0.2a
Name:		texlive-minibox
Version:	0.2a
Release:	7
Summary:	A simple type of box for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/minibox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minibox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minibox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minibox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small package provides a convenient input syntax for boxes
that don't break their text over lines automatically, but do
allow manual line breaks. The boxes shrink to the natural width
of the longest line they contain.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/minibox/minibox.sty
%doc %{_texmfdistdir}/doc/latex/minibox/README
%doc %{_texmfdistdir}/doc/latex/minibox/minibox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/minibox/minibox.ins
%doc %{_texmfdistdir}/source/latex/minibox/minibox.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18974 |21mr|texlive-minifp-0.96-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32559
# category Package
# catalog-ctan /macros/generic/minifp
# catalog-date 2014-01-04 14:18:29 +0100
# catalog-license lppl1.3
# catalog-version 0.96
Name:		texlive-minifp
Version:	0.96
Release:	6
Summary:	Fixed-point real computations to 8 decimals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/minifp
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minifp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minifp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minifp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides basic arithmetic operations to 8 decimal
places for plain TeX or LaTeX. Results are exact when they fit
within the digit limits. Along with the basic package is an
optional extension that adds computation of sin, cos, log,
sqrt, exp, powers and angles. These are also exact when
theoretically possible and are otherwise accurate to at least 7
decimal places. In addition, the package provides a stack-based
programing environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/minifp/mfpextra.tex
%{_texmfdistdir}/tex/generic/minifp/minifp.sty
%doc %{_texmfdistdir}/doc/generic/minifp/README
%doc %{_texmfdistdir}/doc/generic/minifp/minifp.pdf
%doc %{_texmfdistdir}/doc/generic/minifp/test1.tex
%doc %{_texmfdistdir}/doc/generic/minifp/test2.tex
#- source
%doc %{_texmfdistdir}/source/generic/minifp/minifp.dtx
%doc %{_texmfdistdir}/source/generic/minifp/minifp.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18975 |21mr|texlive-minipage-marginpar-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-minipage-marginpar
Version:	0.2
Release:	2
Summary:	Minipages with marginal notes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/minipage-marginpar
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minipage-marginpar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minipage-marginpar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minipage-marginpar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows \marginpar-commands inside of minipages and
other boxes. (It takes another approach than marginnote by
Markus Kohm: it saves all \marginpar-commands and typesets them
outside (i.e., after) the box.) The package defines an
environment minipagewithmarginpars (to be used like minipage)--
and the internal commands may be used by other packages to
define similar environments or commands.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/minipage-marginpar/minipage-marginpar.sty
%{_texmfdistdir}/tex/latex/minipage-marginpar/mpgmpar.sty
%doc %{_texmfdistdir}/doc/latex/minipage-marginpar/README
%doc %{_texmfdistdir}/doc/latex/minipage-marginpar/minipage-marginpar.pdf
#- source
%doc %{_texmfdistdir}/source/latex/minipage-marginpar/minipage-marginpar.dtx
%doc %{_texmfdistdir}/source/latex/minipage-marginpar/minipage-marginpar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18976 |21mr|texlive-miniplot-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17483
# category Package
# catalog-ctan /macros/latex/contrib/miniplot
# catalog-date 2010-03-14 23:57:23 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-miniplot
Version:	20190228
Release:	1
Summary:	A package for easy figure arrangement
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/miniplot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/miniplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/miniplot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MiniPlot is a package to help the LaTeX user typeset EPS
figures using an easy-to-use interface. Figures can be arranged
as one-figure-only or as a collection of figures in columns and
rows which can itself contain sub-figures in columns and rows.
Wrapped figures are also supported. This package provides
commands to display a framebox instead of the figure as the
graphics package does already but additionally it writes useful
information such as the label and scaling factor into these
boxes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/miniplot/miniplot.sty
%doc %{_texmfdistdir}/doc/latex/miniplot/disclaimer.txt
%doc %{_texmfdistdir}/doc/latex/miniplot/documentation.zip
%doc %{_texmfdistdir}/doc/latex/miniplot/miniplot.pdf
%doc %{_texmfdistdir}/doc/latex/miniplot/miniplot.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18977 |21mr|texlive-minitoc-62-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-minitoc
Version:	62
Release:	2
Summary:	Produce a table of contents for each chapter, part or section
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/minitoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minitoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minitoc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The minitoc package allows you to add mini-tables-of-contents
(minitocs) at the beginning of every chapter, part or section.
There is also provision for mini-lists of figures and of
tables. At the part level, they are parttocs, partlofs and
partlots. If the type of document does not use chapters, the
basic provision is section level secttocs, sectlofs and
sectlots. The package has provision for language-specific
configuration of its own "fixed names", using .mld files
(analagous to babel .ldf files that do that job for LaTeX"s own
fixed names).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/minitoc
%doc %{_texmfdistdir}/doc/latex/minitoc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18978 |21mr|texlive-minorrevision-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32165
# category Package
# catalog-ctan /macros/latex/contrib/minorrevision
# catalog-date 2013-11-16 09:55:49 +0100
# catalog-license lppl1.2
# catalog-version 1.1
Name:		texlive-minorrevision
Version:	1.1
Release:	10
Summary:	Quote and refer to a manuscript for minor revisions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/minorrevision
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minorrevision.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minorrevision.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports those who publish articles in peer-
reviewed journals. In the final stages of the review process,
the authors typically have to provide an additional document
(such as a letter to the editors), in which they provide a list
of modifications that they made to the manuscript. The package
automatically provides line numbers and quotations from the
manuscript, for this letter. The package loads the package
lineno, so (in effect) shares lineno's incompatibilities.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/minorrevision/minorrevision.sty
%doc %{_texmfdistdir}/doc/latex/minorrevision/README
%doc %{_texmfdistdir}/doc/latex/minorrevision/minorrevision.pdf
%doc %{_texmfdistdir}/doc/latex/minorrevision/minorrevision.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18979 |21mr|texlive-minted-2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-minted
Version:	2.5
Release:	2
Summary:	Highlighted source code for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/minted
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minted.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minted.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minted.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package that facilitates expressive syntax highlighting in
LaTeX using the powerful Pygments library. The package also
provides options to customize the highlighted source code
output using fancyvrb.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/minted
%doc %{_texmfdistdir}/doc/latex/minted
#- source
%doc %{_texmfdistdir}/source/latex/minted

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18980 |21mr|texlive-minutes-1.8f-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-minutes
Version:	1.8f
Release:	2
Summary:	Typeset the minutes of meetings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/minutes
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minutes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minutes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/minutes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Supports the creation of a collection of minutes. Features
include: - Support of tasks (who, schedule, what, time of
finishing; - possibility of creating a list of open tasks; -
inclusion of open tasks from other minutes; - Support for
attachments; - Support of schedule dates (in planning: support
for the calendar package); - Different versions ('secret
parts'); and - Macros for votes and decisions (list of
decisions). Support for minutes in a variety of languages is
available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/minutes
%doc %{_texmfdistdir}/doc/latex/minutes
#- source
%doc %{_texmfdistdir}/source/latex/minutes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18981 |21mr|texlive-mi-solns-0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mi-solns
Version:	0.6
Release:	2
Summary:	Extract solutions from exercises and quizzes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mi-solns
License:	lppl1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mi-solns.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mi-solns.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/mi-solns.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is designed to mark a solution environment of an
exercise or quiz and insert it into the same or a different
document. Solutions are ones created by either the exerquiz or
eqexam package. All PDF creators are supported.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mi-solns
%{_texmfdistdir}/source/latex/mi-solns
%doc %{_texmfdistdir}/doc/latex/mi-solns

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18982 |21mr|texlive-mkgrkindex-2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /language/greek/mkgrkindex
# catalog-date 2010-10-24 16:36:36 +0200
# catalog-license other-free
# catalog-version 2.0
Name:		texlive-mkgrkindex
Version:	2.0
Release:	8
Summary:	Makeindex working with Greek
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/greek/mkgrkindex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mkgrkindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mkgrkindex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-mkgrkindex.bin = %{EVRD}

%description
Makeindex is resolutely stuck with Latin-based alphabets, so
will not deal with Greek indexes, unaided. This package
provides a Perl script that will transmute the index of a Greek
document in such a way that makeindex will sort the entries
according to the rules of the Greek alphabet.


#-----------------------------------------------------------------------
%files
%{_bindir}/mkgrkindex
%{_texmfdistdir}/makeindex/mkgrkindex/lowercase-headers.ist
%{_texmfdistdir}/makeindex/mkgrkindex/uppercase-headers.ist
%{_texmfdistdir}/scripts/mkgrkindex/mkgrkindex
%doc %{_texmfdistdir}/doc/support/mkgrkindex/mkgrkindex.nw
%doc %{_texmfdistdir}/doc/support/mkgrkindex/mkgrkindex.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/mkgrkindex/mkgrkindex mkgrkindex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18983 |21mr|texlive-mla-paper-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20885
# category Package
# catalog-ctan /macros/latex/contrib/mla-paper
# catalog-date 2010-12-30 15:21:17 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-mla-paper
Version:	20190228
Release:	1
Summary:	Proper MLA formatting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mla-paper
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mla-paper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mla-paper.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package formats articles using the MLA style. The aim is
that students and other academics in the humanities should be
able to typeset their materials, properly, with minimal effort
on their part.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mla-paper/mla.sty
%doc %{_texmfdistdir}/doc/latex/mla-paper/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18984 |21mr|texlive-mlist-0.6a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mlist
# catalog-date 2009-07-04 13:21:27 +0200
# catalog-license lppl
# catalog-version 0.6a
Name:		texlive-mlist
Version:	0.6a
Release:	7
Summary:	Logical markup for lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mlist
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mlist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mlist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mlist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines commands that create macros for typesetting
vectors, matrices and functions, in a logical way. For example,
logical indexing can then be used to refer to elements or
arguments without hard-coding the symbols in the document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mlist/mlist.cfg
%{_texmfdistdir}/tex/latex/mlist/mlist.sty
%doc %{_texmfdistdir}/doc/latex/mlist/README
%doc %{_texmfdistdir}/doc/latex/mlist/mlist.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mlist/mlist.dtx
%doc %{_texmfdistdir}/source/latex/mlist/mlist.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18985 |21mr|texlive-mltex-2.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30214
# category Package
# catalog-ctan /systems/generic/mltex
# catalog-date 2012-07-16 22:11:02 +0200
# catalog-license knuth
# catalog-version 2.2
Name:		texlive-mltex
Version:	2.2
Release:	13
Summary:	The MLTeX system
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/generic/mltex
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mltex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mltex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-latex
Requires:	texlive-mltex.bin

%description
MLTeX is a modification of TeX version >=3.0 that allows the
hyphenation of words with accented letters using ordinary
Computer Modern (CM) fonts. The system is distributed as a TeX
change file.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mltex/lo1enc.def
%{_texmfdistdir}/tex/latex/mltex/mlltxchg.def
%{_texmfdistdir}/tex/latex/mltex/mltex.sty
%{_texmfdistdir}/tex/mltex/config/mltex.ini
%_texmf_fmtutil_d/mltex
%doc %{_texmfdistdir}/doc/latex/mltex/README
%doc %{_texmfdistdir}/doc/latex/mltex/mltex.txt
%doc %{_texmfdistdir}/doc/latex/mltex/testmlft.dvi
%doc %{_texmfdistdir}/doc/latex/mltex/testmlft.tex
%doc %{_texmfdistdir}/doc/latex/mltex/testmlsw.dvi
%doc %{_texmfdistdir}/doc/latex/mltex/testmlsw.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/mltex <<EOF
#
# from mltex:
mllatex pdftex language.dat -translate-file=cp227.tcx -mltex *mllatex.ini
mltex pdftex - -translate-file=cp227.tcx -mltex mltex.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18986 |21mr|texlive-mmap-1.03-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mmap
# catalog-date 2009-09-27 11:55:52 +0200
# catalog-license lppl
# catalog-version 1.03
Name:		texlive-mmap
Version:	1.03
Release:	7
Summary:	Include CMap resources in PDF files from PDFTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mmap
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mmap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mmap.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is an extension of cmap with improved flexibility
and coverage, including the ability to re-encode Knuth's basic
mathematics fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mmap/lmr-m.cmap
%{_texmfdistdir}/tex/latex/mmap/lmr.cmap
%{_texmfdistdir}/tex/latex/mmap/ly1.cmap
%{_texmfdistdir}/tex/latex/mmap/mmap.sty
%{_texmfdistdir}/tex/latex/mmap/oml-m.cmap
%{_texmfdistdir}/tex/latex/mmap/oml.cmap
%{_texmfdistdir}/tex/latex/mmap/omlbit-m.cmap
%{_texmfdistdir}/tex/latex/mmap/omlbit.cmap
%{_texmfdistdir}/tex/latex/mmap/omlmit-m.cmap
%{_texmfdistdir}/tex/latex/mmap/omlmit.cmap
%{_texmfdistdir}/tex/latex/mmap/oms-m.cmap
%{_texmfdistdir}/tex/latex/mmap/oms.cmap
%{_texmfdistdir}/tex/latex/mmap/omsb-m.cmap
%{_texmfdistdir}/tex/latex/mmap/omx-m.cmap
%{_texmfdistdir}/tex/latex/mmap/omx.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1rbxit-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1rbxit.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1rbxn-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1rbxn.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1rmit-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1rmit.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1rmn-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1rmn.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1ssbxn-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1ssbxn.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1ssmn-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1ssmn.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1ttmn-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1ttmn.cmap
%{_texmfdistdir}/tex/latex/mmap/ot1xxx-m.cmap
%{_texmfdistdir}/tex/latex/mmap/t1-m.cmap
%{_texmfdistdir}/tex/latex/mmap/t1.cmap
%{_texmfdistdir}/tex/latex/mmap/ueuf-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ueufb-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ulasy-m.cmap
%{_texmfdistdir}/tex/latex/mmap/ulasy.cmap
%{_texmfdistdir}/tex/latex/mmap/umsa-m.cmap
%{_texmfdistdir}/tex/latex/mmap/umsa.cmap
%{_texmfdistdir}/tex/latex/mmap/umsb-m.cmap
%{_texmfdistdir}/tex/latex/mmap/umsb.cmap
%{_texmfdistdir}/tex/latex/mmap/upsy-m.cmap
%{_texmfdistdir}/tex/latex/mmap/upsy.cmap
%{_texmfdistdir}/tex/latex/mmap/upzd-m.cmap
%{_texmfdistdir}/tex/latex/mmap/upzd.cmap
%doc %{_texmfdistdir}/doc/latex/mmap/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18987 |21mr|texlive-mnotes-0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mnotes
Version:	0.8
Release:	2
Summary:	Margin annotation for collaborative writing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mnotes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mnotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mnotes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mnotes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a flexible mechanism for annotating, and
commenting upon, collaboratively-written documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mnotes
%doc %{_texmfdistdir}/doc/latex/mnotes
#- source
%doc %{_texmfdistdir}/source/latex/mnotes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18988 |21mr|texlive-moderncv-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-moderncv
Version:	2.0.0
Release:	2
Summary:	A modern curriculum vitae class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/moderncv
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moderncv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moderncv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides facilities for typesetting modern
curriculums vitae, both in a classic and in a casual style. It
is fairly customizable, allowing you to define your own style
by changing the colours, the fonts, etc. A number of templates
are provided in the distribution examples subdirectory.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/moderncv
%doc %{_texmfdistdir}/doc/latex/moderncv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18989 |21mr|texlive-modernposter-2019.168.1.03.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-modernposter
Version:	2019.168.1.03.1
Release:	2
Summary:	It does something, internet doesn't provide detailed information
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/modernposter
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modernposter.doc.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modernposter.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Single line


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/modernposter
%doc %{_texmfdistdir}/doc/latex/modernposter

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18990 |21mr|texlive-moderntimeline-0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26164
# category Package
# catalog-ctan /macros/latex/contrib/moderntimeline
# catalog-date 2012-01-17 10:30:09 +0100
# catalog-license lppl1.3
# catalog-version 0.6
Name:		texlive-moderntimeline
Version:	0.10
Release:	1
Summary:	Timelines for use with moderncv
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/moderntimeline
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moderntimeline.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moderntimeline.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moderntimeline.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to configure and to draw time
line diagrams; such diagrams are designed to fit into
Curriculum Vitae documents written using the moderncv class.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/moderntimeline/moderntimeline.sty
%doc %{_texmfdistdir}/doc/latex/moderntimeline/README
%doc %{_texmfdistdir}/doc/latex/moderntimeline/moderntimeline.pdf
#- source
%doc %{_texmfdistdir}/source/latex/moderntimeline/moderntimeline.dtx
%doc %{_texmfdistdir}/source/latex/moderntimeline/moderntimeline.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18991 |21mr|texlive-modiagram-0.2g-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34010
# category Package
# catalog-ctan /macros/latex/contrib/modiagram
# catalog-date 2014-05-13 19:18:34 +0200
# catalog-license lppl1.3
# catalog-version 0.2d
Name:		texlive-modiagram
Version:	0.2g
Release:	2
Summary:	Drawing molecular orbital diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/modiagram
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modiagram.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modiagram.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an environment MOdiagram and some
commands, to create molecular orbital diagrams using TikZ. For
example, the MO diagram of dihydrogen would be written as:
\begin{MOdiagram} \atom{left}{ 1s = {0;up} } \atom{right}{ 1s =
{0;up} } \molecule{ 1sMO = {1;pair, } } \end{MOdiagram} The
package also needs the l3kernel and l3packages bundles from the
LaTeX 3 experimental distribution.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/modiagram/modiagram.sty
%doc %{_texmfdistdir}/doc/latex/modiagram/README
%doc %{_texmfdistdir}/doc/latex/modiagram/modiagram_en.pdf
%doc %{_texmfdistdir}/doc/latex/modiagram/modiagram_en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18992 |21mr|texlive-modref-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/modref
# catalog-date 2009-02-09 16:57:43 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-modref
Version:	1.0
Release:	7
Summary:	Customisation of cross-references in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/modref
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modref.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modref.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains macros which allow authors to easily
customise how cross-references appear in their document, both
in general (across all cross-references) and for particular
types of references (identified by a prefix in the reference
label), in a very generic manner.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/modref/modref.sty
%doc %{_texmfdistdir}/doc/latex/modref/README
%doc %{_texmfdistdir}/doc/latex/modref/modref.pdf
#- source
%doc %{_texmfdistdir}/source/latex/modref/modref.drv
%doc %{_texmfdistdir}/source/latex/modref/modref.dtx
%doc %{_texmfdistdir}/source/latex/modref/modref.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18993 |21mr|texlive-modroman-1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/modroman
# catalog-date 2012-07-07 22:27:26 +0200
# catalog-license lppl
# catalog-version 1
Name:		texlive-modroman
Version:	1
Release:	12
Summary:	Write numbers in lower case roman numerals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/modroman
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modroman.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modroman.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/modroman.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides only two macros viz. \modromannumeral
which writes the number given as argument in lower case roman
numeral with a 'j' instead of a 'i' as the final letter of
numbers greater than 1 and \modroman{MyCounter} which writes
the value of a counter in the same way. You use the first in
the same way as the TeX primitive \romannumeral and the second
as LaTeX command \roman. The default option is 'vpourv' with
which 5 is 'translated' as 'v' and option 'upourv' whith which
the same 5 is given as 'u'.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/modroman/modroman.sty
%doc %{_texmfdistdir}/doc/latex/modroman/MODRdoctools.sty
%doc %{_texmfdistdir}/doc/latex/modroman/modroman-en.pdf
%doc %{_texmfdistdir}/doc/latex/modroman/modroman-en.tex
%doc %{_texmfdistdir}/doc/latex/modroman/modroman-fr.pdf
%doc %{_texmfdistdir}/doc/latex/modroman/modroman-fr.tex
%doc %{_texmfdistdir}/doc/latex/modroman/modroman.dtx
%doc %{_texmfdistdir}/doc/latex/modroman/modroman.pdf
#- source
%doc %{_texmfdistdir}/source/latex/modroman/LISEZMOI
%doc %{_texmfdistdir}/source/latex/modroman/Makefile
%doc %{_texmfdistdir}/source/latex/modroman/README
%doc %{_texmfdistdir}/source/latex/modroman/modroman.dtx
%doc %{_texmfdistdir}/source/latex/modroman/modroman.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18994 |21mr|texlive-modular-20190410-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-modular
Version:	20190410
Release:	1
Summary:	This package builds on the coseoul package and works in concert with the macros deﬁned in coseo
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/modular
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modular.doc.tar.xz
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/modular.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Single line


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/modular
%doc %{_texmfdistdir}/doc/latex/modular

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18995 |21mr|texlive-mongolian-babel-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/mongolian/babel
# catalog-date 2010-06-08 01:06:42 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-mongolian-babel
Version:	1.2
Release:	7
Summary:	A language definition file for Mongolian in Babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/mongolian/babel
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mongolian-babel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mongolian-babel.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mongolian-babel.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides support for Mongolian in a Cyrillic
alphabet. (The work derives from the earlier Russian work for
babel.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mongolian-babel/mn.def
%{_texmfdistdir}/tex/latex/mongolian-babel/mongolian.ldf
%{_texmfdistdir}/tex/latex/mongolian-babel/mongolian.sty
%doc %{_texmfdistdir}/doc/latex/mongolian-babel/README
%doc %{_texmfdistdir}/doc/latex/mongolian-babel/mongolian.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mongolian-babel/mongolian.dtx
%doc %{_texmfdistdir}/source/latex/mongolian-babel/mongolian.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18996 |21mr|texlive-monofill-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28140
# category Package
# catalog-ctan /macros/latex/contrib/monofill
# catalog-date 2012-10-31 16:32:17 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-monofill
Version:	0.2
Release:	10
Summary:	Alignment of plain text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/monofill
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/monofill.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/monofill.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/monofill.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides horizontal alignment, as in the LaTeX
command \listfiles (or the author's longnamefilelist package).
Uses may include in-text tables, or even code listings.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/monofill/monofill.RLS
%{_texmfdistdir}/tex/latex/monofill/monofill.sty
%doc %{_texmfdistdir}/doc/latex/monofill/Announce.txt
%doc %{_texmfdistdir}/doc/latex/monofill/README
%doc %{_texmfdistdir}/doc/latex/monofill/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/monofill/monofill.pdf
#- source
%doc %{_texmfdistdir}/source/latex/monofill/monofill.tex
%doc %{_texmfdistdir}/source/latex/monofill/srcfiles.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18997 |21mr|texlive-montex-IVu.04.092-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /language/mongolian/montex
# catalog-date 2012-07-07 22:27:26 +0200
# catalog-license gpl
# catalog-version IVu.04.092
Name:		texlive-montex
Version:	IVu.04.092
Release:	12
Summary:	Mongolian LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/mongolian/montex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/montex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/montex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-cbfonts

%description
MonTeX provides Mongolian and Manju support for the TeX/LaTeX
community. Mongolian is a language spoken in North East Asia,
namely Mongolia and the Inner Mongol Autonomous Region of
China. Today, it is written in an extended Cyrillic alphabet in
Mongolia whereas the Uighur writing continues to be in use in
Inner Mongolia, though it is also, legally speaking, the
official writing system of Mongolia. Manju is another language
of North East Asia, belonging to the Tungusic branch of the
Altaic languages. Though it is hardly spoken nowadays, it
survives in written form as Manju was the native language of
the rulers of the Qing dynasty (1644-1911) in China. Large
quantities of documents of the Imperial Archives survive, as
well as some of the finest dictionaries ever compiled in Asia,
like the Pentaglot, a dictionary comprising Manju, Tibetan,
Mongolian, Uighur and Chinese. MonTeX provides all necessary
characters for writing standard Mongolian in Cyrillic and
Classical (aka Traditional or Uighur) writing, and Manju as
well as transliterated Tibetan texts, for which purpose a
number of additional characters was created. In MonTeX, both
Mongolian and Manju are entered in romanized form. The
retransliteration (from Latin input to Mongolian and Manju
output) is completely realized in TeX/Metafont so that no
external preprocessor is required. Please note that most of the
enhanced functions of MonTeX require a working e-LaTeX
environment. This is especially true when compiling documents
with Mongolian or Manju as the main document language. It is
recommended to choose pdfelatex as the resulting PDF files are
truly portable. Vertical text generated by MonTeX is not
supported in DVI.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/montex/mongolian.map
%{_texmfdistdir}/fonts/source/public/montex/bcghsb.mf
%{_texmfdistdir}/fonts/source/public/montex/bcghsm.mf
%{_texmfdistdir}/fonts/source/public/montex/bcghwb.mf
%{_texmfdistdir}/fonts/source/public/montex/bcghwm.mf
%{_texmfdistdir}/fonts/source/public/montex/bcgvsb.mf
%{_texmfdistdir}/fonts/source/public/montex/bcgvsm.mf
%{_texmfdistdir}/fonts/source/public/montex/bcgvwb.mf
%{_texmfdistdir}/fonts/source/public/montex/bcgvwm.mf
%{_texmfdistdir}/fonts/source/public/montex/bicighb.mf
%{_texmfdistdir}/fonts/source/public/montex/bicighm.mf
%{_texmfdistdir}/fonts/source/public/montex/bicigvb.mf
%{_texmfdistdir}/fonts/source/public/montex/bicigvm.mf
%{_texmfdistdir}/fonts/source/public/montex/bthhsb.mf
%{_texmfdistdir}/fonts/source/public/montex/bthhsm.mf
%{_texmfdistdir}/fonts/source/public/montex/bthhwb.mf
%{_texmfdistdir}/fonts/source/public/montex/bthhwm.mf
%{_texmfdistdir}/fonts/source/public/montex/bthvsb.mf
%{_texmfdistdir}/fonts/source/public/montex/bthvsm.mf
%{_texmfdistdir}/fonts/source/public/montex/bthvwb.mf
%{_texmfdistdir}/fonts/source/public/montex/bthvwm.mf
%{_texmfdistdir}/fonts/source/public/montex/bxghsb.mf
%{_texmfdistdir}/fonts/source/public/montex/bxghsm.mf
%{_texmfdistdir}/fonts/source/public/montex/bxghwb.mf
%{_texmfdistdir}/fonts/source/public/montex/bxghwm.mf
%{_texmfdistdir}/fonts/source/public/montex/bxgvsb.mf
%{_texmfdistdir}/fonts/source/public/montex/bxgvsm.mf
%{_texmfdistdir}/fonts/source/public/montex/bxgvwb.mf
%{_texmfdistdir}/fonts/source/public/montex/bxgvwm.mf
%{_texmfdistdir}/fonts/source/public/montex/cyrmorec.mf
%{_texmfdistdir}/fonts/source/public/montex/cyrmorei.mf
%{_texmfdistdir}/fonts/source/public/montex/cyrmorel.mf
%{_texmfdistdir}/fonts/source/public/montex/cyrmoreu.mf
%{_texmfdistdir}/fonts/source/public/montex/kmb10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbx10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbx12.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbx5.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbx6.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbx7.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbx8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbx9.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbxsl10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmbxti10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmcsc10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmcsc8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmcsc9.mf
%{_texmfdistdir}/fonts/source/public/montex/kmdunh10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmff10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmfi10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmfib8.mf
%{_texmfdistdir}/fonts/source/public/montex/kminch.mf
%{_texmfdistdir}/fonts/source/public/montex/kmitt10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmr10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmr12.mf
%{_texmfdistdir}/fonts/source/public/montex/kmr17.mf
%{_texmfdistdir}/fonts/source/public/montex/kmr5.mf
%{_texmfdistdir}/fonts/source/public/montex/kmr6.mf
%{_texmfdistdir}/fonts/source/public/montex/kmr7.mf
%{_texmfdistdir}/fonts/source/public/montex/kmr8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmr9.mf
%{_texmfdistdir}/fonts/source/public/montex/kmsl10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmsl12.mf
%{_texmfdistdir}/fonts/source/public/montex/kmsl8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmsl9.mf
%{_texmfdistdir}/fonts/source/public/montex/kmsltt10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmss10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmss12.mf
%{_texmfdistdir}/fonts/source/public/montex/kmss17.mf
%{_texmfdistdir}/fonts/source/public/montex/kmss8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmss9.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssbx10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssdc10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssi10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssi12.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssi17.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssi8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssi9.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssq8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmssqi8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmtcsc10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmti10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmti12.mf
%{_texmfdistdir}/fonts/source/public/montex/kmti7.mf
%{_texmfdistdir}/fonts/source/public/montex/kmti8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmti9.mf
%{_texmfdistdir}/fonts/source/public/montex/kmtt10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmtt12.mf
%{_texmfdistdir}/fonts/source/public/montex/kmtt8.mf
%{_texmfdistdir}/fonts/source/public/montex/kmtt9.mf
%{_texmfdistdir}/fonts/source/public/montex/kmu10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmvtt10.mf
%{_texmfdistdir}/fonts/source/public/montex/kmvtti10.mf
%{_texmfdistdir}/fonts/source/public/montex/lmligs.mf
%{_texmfdistdir}/fonts/source/public/montex/macodes.mf
%{_texmfdistdir}/fonts/source/public/montex/maglyphs.mf
%{_texmfdistdir}/fonts/source/public/montex/mantrlig.mf
%{_texmfdistdir}/fonts/source/public/montex/mbatoms.mf
%{_texmfdistdir}/fonts/source/public/montex/mbcodes.mf
%{_texmfdistdir}/fonts/source/public/montex/mbglyphs.mf
%{_texmfdistdir}/fonts/source/public/montex/mbligtbl.mf
%{_texmfdistdir}/fonts/source/public/montex/mbnums.mf
%{_texmfdistdir}/fonts/source/public/montex/mbparmb.mf
%{_texmfdistdir}/fonts/source/public/montex/mbparmm.mf
%{_texmfdistdir}/fonts/source/public/montex/mbparms.mf
%{_texmfdistdir}/fonts/source/public/montex/mbpunc.mf
%{_texmfdistdir}/fonts/source/public/montex/mcccscco.mf
%{_texmfdistdir}/fonts/source/public/montex/mccoding.mf
%{_texmfdistdir}/fonts/source/public/montex/mctextit.mf
%{_texmfdistdir}/fonts/source/public/montex/mcyccsc.mf
%{_texmfdistdir}/fonts/source/public/montex/mcyitall.mf
%{_texmfdistdir}/fonts/source/public/montex/mcyrill.mf
%{_texmfdistdir}/fonts/source/public/montex/mcyrl.mf
%{_texmfdistdir}/fonts/source/public/montex/mcyrligs.mf
%{_texmfdistdir}/fonts/source/public/montex/mcyrsymb.mf
%{_texmfdistdir}/fonts/source/public/montex/mcyru.mf
%{_texmfdistdir}/fonts/source/public/montex/mcytitle.mf
%{_texmfdistdir}/fonts/source/public/montex/mlscodes.mf
%{_texmfdistdir}/fonts/source/public/montex/mocodes.mf
%{_texmfdistdir}/fonts/source/public/montex/moglyphs.mf
%{_texmfdistdir}/fonts/source/public/montex/montrlig.mf
%{_texmfdistdir}/fonts/source/public/montex/mxcodes.mf
%{_texmfdistdir}/fonts/source/public/montex/mxglyphs.mf
%{_texmfdistdir}/fonts/source/public/montex/mxntrlig.mf
%{_texmfdistdir}/fonts/tfm/public/montex/bcghsb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bcghsm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bcghwb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bcghwm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bcgvsb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bcgvsm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bcgvwb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bcgvwm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bicighb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bicighm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bicigvb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bicigvm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bthhsb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bthhsm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bthhwb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bthhwm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bthvsb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bthvsm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bthvwb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bthvwm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bxghsb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bxghsm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bxghwb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bxghwm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bxgvsb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bxgvsm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bxgvwb.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/bxgvwm.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmb10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmbxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmcsc8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmcsc9.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmdunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmff10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmfi10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmfib8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kminch.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmr10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmr12.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmr17.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmr5.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmr6.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmr7.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmr8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmr9.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmss10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmss12.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmss17.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmss8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmss9.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmtcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmti10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmti12.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmti7.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmti8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmti9.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmu10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmvtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/montex/kmvtti10.tfm
%{_texmfdistdir}/fonts/type1/public/montex/bcghsb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bcghsm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bcghwb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bcghwm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bcgvsb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bcgvsm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bcgvwb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bcgvwm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bicighb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bicighm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bicigvb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bicigvm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bthhsb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bthhsm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bthhwb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bthhwm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bthvsb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bthvsm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bthvwb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bthvwm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bxghsb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bxghsm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bxghwb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bxghwm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bxgvsb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bxgvsm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bxgvwb.pfb
%{_texmfdistdir}/fonts/type1/public/montex/bxgvwm.pfb
%{_texmfdistdir}/fonts/type1/public/montex/kmbx10.pfb
%{_texmfdistdir}/fonts/type1/public/montex/kmr10.pfb
%{_texmfdistdir}/fonts/type1/public/montex/kmss10.pfb
%{_texmfdistdir}/tex/latex/montex/bicig.def
%{_texmfdistdir}/tex/latex/montex/bithe.def
%{_texmfdistdir}/tex/latex/montex/buryat.def
%{_texmfdistdir}/tex/latex/montex/cpctt.def
%{_texmfdistdir}/tex/latex/montex/cpdbk.def
%{_texmfdistdir}/tex/latex/montex/cpibmrus.def
%{_texmfdistdir}/tex/latex/montex/cpkoi.def
%{_texmfdistdir}/tex/latex/montex/cpmls.def
%{_texmfdistdir}/tex/latex/montex/cpmnk.def
%{_texmfdistdir}/tex/latex/montex/cpmos.def
%{_texmfdistdir}/tex/latex/montex/cpncc.def
%{_texmfdistdir}/tex/latex/montex/english.def
%{_texmfdistdir}/tex/latex/montex/kazakh.def
%{_texmfdistdir}/tex/latex/montex/lmabthhs.fd
%{_texmfdistdir}/tex/latex/montex/lmabthhw.fd
%{_texmfdistdir}/tex/latex/montex/lmabthvs.fd
%{_texmfdistdir}/tex/latex/montex/lmabthvw.fd
%{_texmfdistdir}/tex/latex/montex/lmaenc.def
%{_texmfdistdir}/tex/latex/montex/lmccmdh.fd
%{_texmfdistdir}/tex/latex/montex/lmccmfib.fd
%{_texmfdistdir}/tex/latex/montex/lmccmfr.fd
%{_texmfdistdir}/tex/latex/montex/lmccmiss.fd
%{_texmfdistdir}/tex/latex/montex/lmccmr.fd
%{_texmfdistdir}/tex/latex/montex/lmccmss.fd
%{_texmfdistdir}/tex/latex/montex/lmccmssq.fd
%{_texmfdistdir}/tex/latex/montex/lmccmtt.fd
%{_texmfdistdir}/tex/latex/montex/lmccmvtt.fd
%{_texmfdistdir}/tex/latex/montex/lmcenc.def
%{_texmfdistdir}/tex/latex/montex/lmclcmss.fd
%{_texmfdistdir}/tex/latex/montex/lmobcghs.fd
%{_texmfdistdir}/tex/latex/montex/lmobcghw.fd
%{_texmfdistdir}/tex/latex/montex/lmobcgvs.fd
%{_texmfdistdir}/tex/latex/montex/lmobcgvw.fd
%{_texmfdistdir}/tex/latex/montex/lmoenc.def
%{_texmfdistdir}/tex/latex/montex/lmsbcgh.fd
%{_texmfdistdir}/tex/latex/montex/lmsbcgv.fd
%{_texmfdistdir}/tex/latex/montex/lmsenc.def
%{_texmfdistdir}/tex/latex/montex/lmubxghs.fd
%{_texmfdistdir}/tex/latex/montex/lmubxghw.fd
%{_texmfdistdir}/tex/latex/montex/lmubxgvs.fd
%{_texmfdistdir}/tex/latex/montex/lmubxgvw.fd
%{_texmfdistdir}/tex/latex/montex/lmuenc.def
%{_texmfdistdir}/tex/latex/montex/mls.sty
%{_texmfdistdir}/tex/latex/montex/mlsgalig.tex
%{_texmfdistdir}/tex/latex/montex/mlstrans.tex
%{_texmfdistdir}/tex/latex/montex/mnhyphex.tex
%{_texmfdistdir}/tex/latex/montex/rlbicig.sty
%{_texmfdistdir}/tex/latex/montex/russian.def
%{_texmfdistdir}/tex/latex/montex/xalx.def
%doc %{_texmfdistdir}/doc/latex/montex/00README
%doc %{_texmfdistdir}/doc/latex/montex/00readme.mfinput.km
%doc %{_texmfdistdir}/doc/latex/montex/ANNOUNCE
%doc %{_texmfdistdir}/doc/latex/montex/EMTEX
%doc %{_texmfdistdir}/doc/latex/montex/HISTORY
%doc %{_texmfdistdir}/doc/latex/montex/INSTALL
%doc %{_texmfdistdir}/doc/latex/montex/MIKTEX
%doc %{_texmfdistdir}/doc/latex/montex/TODO
%doc %{_texmfdistdir}/doc/latex/montex/UPDATE
%doc %{_texmfdistdir}/doc/latex/montex/cyrename.pl
%doc %{_texmfdistdir}/doc/latex/montex/fontlist.tex
%doc %{_texmfdistdir}/doc/latex/montex/mfinput/bithe/testfont.input
%doc %{_texmfdistdir}/doc/latex/montex/mfinput/bithe/testfont.sh
%doc %{_texmfdistdir}/doc/latex/montex/mkmlsmf.pl
%doc %{_texmfdistdir}/doc/latex/montex/mls-diag.tex
%doc %{_texmfdistdir}/doc/latex/montex/mlsquick.pdf
%doc %{_texmfdistdir}/doc/latex/montex/mlsquick.tex
%doc %{_texmfdistdir}/doc/latex/montex/mnhyphen.tex
%doc %{_texmfdistdir}/doc/latex/montex/montex.pdf
%doc %{_texmfdistdir}/doc/latex/montex/montex.tex
%doc %{_texmfdistdir}/doc/latex/montex/montex.xml
%doc %{_texmfdistdir}/doc/latex/montex/mtdocmac.tex
%doc %{_texmfdistdir}/doc/latex/montex/testfont.input
%doc %{_texmfdistdir}/doc/latex/montex/testfont.sh
%doc %{_texmfdistdir}/doc/latex/montex/zanabazr.pdf
%doc %{_texmfdistdir}/doc/latex/montex/zanabazr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18998 |21mr|texlive-moreenum-1.03-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24479
# category Package
# catalog-ctan /macros/latex/contrib/moreenum
# catalog-date 2011-11-03 12:59:01 +0100
# catalog-license lppl1.3
# catalog-version 1.03
Name:		texlive-moreenum
Version:	1.03
Release:	7
Summary:	More enumeration options
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/moreenum
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moreenum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moreenum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the following new enumerate styles: -
\greek for lowercase Greek letters; - \Greek for uppercase
Greek letters; - \enumHex for uppercase hexadecimal
enumeration; - \enumhex for lowercase hexadecimal enumeration;
- \enumbinary for binary enumeration; - \enumoctal for octal
enumeration; - \levelnth for "1st", "2nd", "3rd" etc., with the
"nth"s on the baseline; - raisenth for "1st", "2nd", "3rd"
etc., with the "nth"s raised; - \nthwords for "first",
"second", "third" etc.; - \Nthwords for "First", "Second",
"Third" etc.; - \NTHWORDS for "FIRST", "SECOND", "THIRD" etc.;
- \nwords for "one", "two", "three" etc.; - \Nwords for "One",
"Two", "Three" etc.; and - \NWORDS for "ONE", "TWO", "THREE"
etc. Each of these works with enumitem's "starred variant"
feature. So \begin{enumerate}[label=\enumhex*] will output a
hex enumerated list. Enumitem provides a start=0 option for
starting your enumerations at 0. The package requires amsmath,
alphalph, enumitem (of course), binhex and nth, all of which
are widely available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/moreenum/moreenum.sty
%doc %{_texmfdistdir}/doc/latex/moreenum/README
%doc %{_texmfdistdir}/doc/latex/moreenum/moreenum-doc.pdf
%doc %{_texmfdistdir}/doc/latex/moreenum/moreenum-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 18999 |21mr|texlive-morefloats-1.0h-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25232
# category Package
# catalog-ctan /macros/latex/contrib/morefloats
# catalog-date 2012-01-29 16:01:54 +0100
# catalog-license lppl1.3
# catalog-version 1.0f
Name:		texlive-morefloats
Version:	1.0h
Release:	2
Summary:	Increase the number of simultaneous LaTeX floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/morefloats
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morefloats.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morefloats.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morefloats.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX can, by default, only cope with 18 outstanding floats;
any more, and you get the error "too many unprocessed floats".
This package releases the limit; TeX itself imposes limits
(which are independent of the help offered by e-TeX). However,
if your floats can't be placed anywhere, extending the number
of floats merely delays the arrival of the inevitable error
message.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/morefloats/morefloats.sty
%doc %{_texmfdistdir}/doc/latex/morefloats/README
%doc %{_texmfdistdir}/doc/latex/morefloats/morefloats-example.pdf
%doc %{_texmfdistdir}/doc/latex/morefloats/morefloats-example.tex
%doc %{_texmfdistdir}/doc/latex/morefloats/morefloats.pdf
#- source
%doc %{_texmfdistdir}/source/latex/morefloats/morefloats.drv
%doc %{_texmfdistdir}/source/latex/morefloats/morefloats.dtx
%doc %{_texmfdistdir}/source/latex/morefloats/morefloats.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19000 |21mr|texlive-morehype-r0.83-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28921
# category Package
# catalog-ctan /macros/latex/contrib/morehype
# catalog-date 2013-01-23 12:31:43 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-morehype
Version:	r0.83
Release:	2
Epoch:		1
Summary:	Hypertext tools for use with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/morehype
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morehype.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morehype.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morehype.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides three packages: - texlinks: shorthand
macros for TeX-related external hyperlinks with hyperref, the
blog package in the present bundle, etc; - hypertoc: adjust the
presentation of coloured frames in hyperref tables of contents
(article class only); - blog: fast generation of simple HTML by
expanding LaTeX macros, using the fifinddo package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/morehype/atari_ht.fdf
%{_texmfdistdir}/tex/latex/morehype/blog.sty
%{_texmfdistdir}/tex/latex/morehype/blogdot.cfg
%{_texmfdistdir}/tex/latex/morehype/blogdot.sty
%{_texmfdistdir}/tex/latex/morehype/blogexec.sty
%{_texmfdistdir}/tex/latex/morehype/blogligs.sty
%{_texmfdistdir}/tex/latex/morehype/hypertoc.sty
%{_texmfdistdir}/tex/latex/morehype/lnavicol.sty
%{_texmfdistdir}/tex/latex/morehype/markblog.sty
%{_texmfdistdir}/tex/latex/morehype/morehype.RLS
%{_texmfdistdir}/tex/latex/morehype/texblog.fdf
%{_texmfdistdir}/tex/latex/morehype/texlinks.sty
%doc %{_texmfdistdir}/doc/latex/morehype/README
%doc %{_texmfdistdir}/doc/latex/morehype/README.pdf
%doc %{_texmfdistdir}/doc/latex/morehype/RELEASEs.txt
%doc %{_texmfdistdir}/doc/latex/morehype/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/morehype/blog.pdf
%doc %{_texmfdistdir}/doc/latex/morehype/blogdemo/hellowor/hellowor.htm
%doc %{_texmfdistdir}/doc/latex/morehype/blogdemo/hellowor/hellowor.tex
%doc %{_texmfdistdir}/doc/latex/morehype/blogdemo/hellowor/mkhellow.tex
%doc %{_texmfdistdir}/doc/latex/morehype/blogdemo/writings/makehtml.tex
%doc %{_texmfdistdir}/doc/latex/morehype/blogdemo/writings/schreibt.tex
%doc %{_texmfdistdir}/doc/latex/morehype/blogdemo/writings/writings.fdf
%doc %{_texmfdistdir}/doc/latex/morehype/blogexec.pdf
%doc %{_texmfdistdir}/doc/latex/morehype/hypertoc.pdf
%doc %{_texmfdistdir}/doc/latex/morehype/markblog.htm
%doc %{_texmfdistdir}/doc/latex/morehype/ref_alts.tex
%doc %{_texmfdistdir}/doc/latex/morehype/texlinks.pdf
%doc %{_texmfdistdir}/doc/latex/morehype/wiki_mwe.pdf
%doc %{_texmfdistdir}/doc/latex/morehype/wiki_mwe.tex
#- source
%doc %{_texmfdistdir}/source/latex/morehype/README.tex
%doc %{_texmfdistdir}/source/latex/morehype/blog.tex
%doc %{_texmfdistdir}/source/latex/morehype/blogdot.css
%doc %{_texmfdistdir}/source/latex/morehype/blogexec.tex
%doc %{_texmfdistdir}/source/latex/morehype/fdatechk.tex
%doc %{_texmfdistdir}/source/latex/morehype/hypertoc.tex
%doc %{_texmfdistdir}/source/latex/morehype/markblog.tex
%doc %{_texmfdistdir}/source/latex/morehype/srcfiles.tex
%doc %{_texmfdistdir}/source/latex/morehype/texlinks.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19001 |21mr|texlive-moresize-1.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17513
# category Package
# catalog-ctan /macros/latex/contrib/moresize
# catalog-date 2010-03-20 19:23:31 +0100
# catalog-license lppl
# catalog-version 1.9
Name:		texlive-moresize
Version:	1.9
Release:	7
Summary:	Allows font sizes up to 35.83pt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/moresize
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moresize.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moresize.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moresize.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for using font sizes up to 35.88pt, for example with
the EC fonts. New commands \HUGE and \ssmall for selecting font
sizes are provided together with some options working around
current LaTeX2e shortcomings in using big font sizes. The
package also provides options for improving the typesetting of
paragraphs (or headlines) with embedded math expressions at
font sizes above 17.28pt.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/moresize/moresize.sty
%doc %{_texmfdistdir}/doc/latex/moresize/moresize.pdf
%doc %{_texmfdistdir}/doc/latex/moresize/moresize.upl
%doc %{_texmfdistdir}/doc/latex/moresize/msizetst.tex
#- source
%doc %{_texmfdistdir}/source/latex/moresize/moresize.dtx
%doc %{_texmfdistdir}/source/latex/moresize/moresize.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19002 |21mr|texlive-moreverb-2.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22126
# category Package
# catalog-ctan /macros/latex/contrib/moreverb
# catalog-date 2011-04-18 22:03:09 +0200
# catalog-license lppl
# catalog-version 2.3a
Name:		texlive-moreverb
Version:	2.3a
Release:	7
Summary:	Extended verbatim
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/moreverb
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moreverb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moreverb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/moreverb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of verbatim facilities that provide line-numbered
verbatim, verbatim that obey's TAB characters, verbatim input
and verbatim output to file. The package makes use of the LaTeX
required verbatim package. The package formed from a series of
small pieces, and is somewhat unstructured. The user who looks
for thought-through verbatim facilities is advised to consider
using the fancyvrb package in place of moreverb.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/moreverb/moreverb.sty
%doc %{_texmfdistdir}/doc/latex/moreverb/README
%doc %{_texmfdistdir}/doc/latex/moreverb/moreverb.pdf
#- source
%doc %{_texmfdistdir}/source/latex/moreverb/moreverb.dtx
%doc %{_texmfdistdir}/source/latex/moreverb/moreverb.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19003 |21mr|texlive-morewrites-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-morewrites
Version:	20190228
Release:	1
Summary:	Always room for a new write stream
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/morewrites
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morewrites.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morewrites.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/morewrites.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package aims to solve the error "No room for a new \write",
which occurs when the user, or when the user's packages have
'allocated too many streams using \newwrite (TeX has a fixed
maximum number - 16 - such streams built-in to its code). The
package hooks into TeX primitive commands associated with
writing to files; it should be loaded near the beginning of the
sequence of loading packages for a document. The package uses
the l3kernel bundle.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/morewrites
%doc %{_texmfdistdir}/doc/latex/morewrites
#- source
%doc %{_texmfdistdir}/source/latex/morewrites

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19004 |21mr|texlive-movie15-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26473
# category Package
# catalog-ctan /macros/latex/contrib/movie15
# catalog-date 2012-05-17 13:04:31 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-movie15
Version:	20190228
Release:	1
Summary:	Multimedia inclusion package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/movie15
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/movie15.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/movie15.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides an interface to embed movies, sounds and 3D objects
into PDF documents for use with LaTeX as well as pdfLaTeX.
Defines \includemovie with PDF-1.5 compatibility. Option
'autoplay' causes the media clip to be started right after the
page has loaded. This is useful for side by side movie clips to
be played back synchronously.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/movie15/movie15.sty
%doc %{_texmfdistdir}/doc/latex/movie15/README
%doc %{_texmfdistdir}/doc/latex/movie15/files/3dsystem.fig
%doc %{_texmfdistdir}/doc/latex/movie15/files/3dsystem.pdf
%doc %{_texmfdistdir}/doc/latex/movie15/files/3dsystem.tex
%doc %{_texmfdistdir}/doc/latex/movie15/files/dice.u3d
%doc %{_texmfdistdir}/doc/latex/movie15/files/dice.vws
%doc %{_texmfdistdir}/doc/latex/movie15/files/dice.wrl
%doc %{_texmfdistdir}/doc/latex/movie15/files/mailto.png
%doc %{_texmfdistdir}/doc/latex/movie15/files/random.mpg
%doc %{_texmfdistdir}/doc/latex/movie15/javascript/animation.js
%doc %{_texmfdistdir}/doc/latex/movie15/javascript/lights.js
%doc %{_texmfdistdir}/doc/latex/movie15/javascript/turntable.js
%doc %{_texmfdistdir}/doc/latex/movie15/movie15.pdf
%doc %{_texmfdistdir}/doc/latex/movie15/movie15.tex
%doc %{_texmfdistdir}/doc/latex/movie15/overlay-example.pdf
%doc %{_texmfdistdir}/doc/latex/movie15/overlay-example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19005 |21mr|texlive-mp3d-1.34-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/mp3d
# catalog-date 2012-05-25 16:08:07 +0200
# catalog-license lppl
# catalog-version 1.34
Name:		texlive-mp3d
Version:	1.34
Release:	12
Summary:	3D animations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/mp3d
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mp3d.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mp3d.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Create animations of 3-dimensional objects (such as polyhedra)
in MetaPost.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/mp3d/3d.mp
%{_texmfdistdir}/metapost/mp3d/3danim.mp
%{_texmfdistdir}/metapost/mp3d/3dgeom.mp
%{_texmfdistdir}/metapost/mp3d/3dpoly.mp
%{_texmfdistdir}/metapost/mp3d/3dutil.mp
%{_texmfdistdir}/metapost/mp3d/animpoly.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/README
%doc %{_texmfdistdir}/doc/metapost/mp3d/README.doc
%doc %{_texmfdistdir}/doc/metapost/mp3d/create_animation.sh
%doc %{_texmfdistdir}/doc/metapost/mp3d/cube10.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/cube4-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/cube5.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/cube6.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/cube7.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/cube8.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/cube9.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gut2001.pdf
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp1-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp1.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp2-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp2.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp3-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp3.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp4-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp4.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp5-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp5.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp6-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp6.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp7-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp7.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp8-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp8.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/gutmp9.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/monge-eng.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/monge.mp
%doc %{_texmfdistdir}/doc/metapost/mp3d/paper1997corrected.pdf
%doc %{_texmfdistdir}/doc/metapost/mp3d/tb57roeg.pdf
%doc %{_texmfdistdir}/doc/metapost/mp3d/tb57roegel.ltx
%doc %{_texmfdistdir}/doc/metapost/mp3d/tugboat-geometry-space.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19006 |21mr|texlive-mparhack-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mparhack
# catalog-date 2006-10-22 16:45:29 +0200
# catalog-license gpl
# catalog-version 1.4
Name:		texlive-mparhack
Version:	1.4
Release:	7
Summary:	A workaround for a LaTeX bug in marginpars
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mparhack
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mparhack.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mparhack.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mparhack.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Implements a workaround for the LaTeX bug that marginpars will
sometimes come out at the wrong margin.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mparhack/mparhack.sty
%doc %{_texmfdistdir}/doc/latex/mparhack/README
%doc %{_texmfdistdir}/doc/latex/mparhack/mparhack.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mparhack/mparhack.dtx
%doc %{_texmfdistdir}/source/latex/mparhack/mparhack.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19007 |21mr|texlive-mparrows-0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 39729
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/mparrows
# catalog-date 2016-06-24 19:84:15 +0200
# catalog-license pd
# catalog-version 0.1

Name:		texlive-mparrows
Group:		Publishing
Version:	0.1
Release:	1

Summary:	MetaPost module with different types of arrow heads
License:	Public Domain

URL:		https://ctan.org/pkg/mparrows
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mparrows.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mparrows.doc.tar.xz

BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	mparrows.mp


%description
A package to provide different types of arrow heads to be used with METAPOST commands drawarrow and drawdblarrow commands.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#------------------------------------------------------------------

%files
%{_texmfdistdir}/metapost/mparrows/mparrows.mp
%doc %{_texmfdistdir}/doc/metapost/mparrows/LICENSE
%doc %{_texmfdistdir}/doc/metapost/mparrows/README
%doc %{_texmfdistdir}/doc/metapost/mparrows/mparrows.pdf
%doc %{_texmfdistdir}/doc/metapost/mparrows/mparrows.tex
%doc %{_texmfdistdir}/doc/metapost/mparrows/mparrowsexamples.mp

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19008 |21mr|texlive-mpattern-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/mpattern
# catalog-date 2006-12-15 22:34:26 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-mpattern
Version:	20190228
Release:	1
Summary:	Patterns in MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/mpattern
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpattern.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpattern.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for defining and using patterns in MetaPost, using
the Pattern Color Space available in PostScript Level 2.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/mpattern/mpattern.mp
%doc %{_texmfdistdir}/doc/metapost/mpattern/README
%doc %{_texmfdistdir}/doc/metapost/mpattern/README.PL
%doc %{_texmfdistdir}/doc/metapost/mpattern/mpattern_test.pdf
%doc %{_texmfdistdir}/doc/metapost/mpattern/mpattern_test.tex
%doc %{_texmfdistdir}/doc/metapost/mpattern/test.mp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19009 |21mr|texlive-mpcolornames-0.20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23252
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/mpcolornames
# catalog-date 2011-07-18 09:05:38 +0200
# catalog-license lppl
# catalog-version 0.20
Name:		texlive-mpcolornames
Version:	0.20
Release:	7
Summary:	XXXX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/mpcolornames
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpcolornames.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpcolornames.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpcolornames.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The MetaPost format plain.mp provides only five built-in colour
names (variables), all of which are defined in the RGB model:
red, green and blue for the primary colours and black and
white. The package makes more than 500 colour names from
different colour sets in different colour models available to
MetaPost. Colour sets include X11, SVG, DVIPS and xcolor
specifications.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/mpcolornames/mpcolornames-spec-dvipsnam-def.mp
%{_texmfdistdir}/metapost/mpcolornames/mpcolornames-spec-plain-mp.mp
%{_texmfdistdir}/metapost/mpcolornames/mpcolornames-spec-svgnam-def.mp
%{_texmfdistdir}/metapost/mpcolornames/mpcolornames-spec-x11nam-def.mp
%{_texmfdistdir}/metapost/mpcolornames/mpcolornames-spec-xcolor-sty.mp
%{_texmfdistdir}/metapost/mpcolornames/mpcolornames.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/CHANGES
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/LICENSE
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/README
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/expl-array-index.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/fig-clash-svg-dvips.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/mpcolornames.pdf
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/mpcolornames.tex
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/proof-mpcolornames.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/proof-spec-dvipsnam-def.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/proof-spec-plain-mp.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/proof-spec-svgnam-def.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/proof-spec-x11nam-def.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/proof-spec-xcolor-sty.mp
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/tab-clash-svg-dvips.tex
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/tab-spec-dvipsnam-def.tex
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/tab-spec-plain-mp.tex
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/tab-spec-svgnam-def.tex
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/tab-spec-x11nam-def.tex
%doc %{_texmfdistdir}/doc/metapost/mpcolornames/tab-spec-xcolor-sty.tex
#- source
%doc %{_texmfdistdir}/source/metapost/mpcolornames/Makefile
%doc %{_texmfdistdir}/source/metapost/mpcolornames/spec-dvipsnam-def.awk
%doc %{_texmfdistdir}/source/metapost/mpcolornames/spec-plain-mp.awk
%doc %{_texmfdistdir}/source/metapost/mpcolornames/spec-svgnam-def.awk
%doc %{_texmfdistdir}/source/metapost/mpcolornames/spec-x11nam-def.awk
%doc %{_texmfdistdir}/source/metapost/mpcolornames/spec-xcolor-sty.awk
%doc %{_texmfdistdir}/source/metapost/mpcolornames/tab-clash-svg-dvips.awk

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19010 |21mr|texlive-mpgraphics-0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29776
# category Package
# catalog-ctan /macros/latex/contrib/mpgraphics
# catalog-date 2013-04-08 09:07:09 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-mpgraphics
Version:	0.3
Release:	12
Summary:	Process and display MetaPost figures inline
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mpgraphics
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpgraphics.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpgraphics.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpgraphics.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows LaTeX users to typeset MetaPost code inline
and display figures in their documents with only and only one
run of LaTeX, PDFLaTeX or XelaTeX (no separate runs of mpost).
Mpgraphics achieves this by using the shell escape (\write 18)
feature of current TeX distributions, so that the whole process
is automatic and the end user is saved the tiresome processing.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mpgraphics/mpgraphics.sty
%doc %{_texmfdistdir}/doc/latex/mpgraphics/README
%doc %{_texmfdistdir}/doc/latex/mpgraphics/mpgraphics-example.ltx
%doc %{_texmfdistdir}/doc/latex/mpgraphics/mpgraphics.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mpgraphics/mpgraphics.dtx
%doc %{_texmfdistdir}/source/latex/mpgraphics/mpgraphics.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19011 |21mr|texlive-mpman-ru-1.004-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/metapost/doc/russian/mpman-ru
# catalog-date 2008-08-22 17:15:44 +0200
# catalog-license other-free
# catalog-version 1.004
Name:		texlive-mpman-ru
Version:	1.004
Release:	6
Summary:	A Russian translation of the MetaPost manual
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/metapost/doc/russian/mpman-ru
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpman-ru.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpman-ru.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A translation of the user manual, as distributed with MetaPost
itself.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/Makefile
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/README
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/README.ru.koi8-r
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/bm-to-utf16be.awk
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/ctabbing.sty
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/extract-bm.awk
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/idx1.awk
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/idx2.awk
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/idx3.awk
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/manfig-ru.mp
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/mpman-optab-ru.tex
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/mpman-ru.pdf
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/mpman-ru.tex
%doc %{_texmfdistdir}/doc/metapost/mpman-ru/mpman.ist

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19012 |21mr|texlive-mpostinl-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 49559
# category Package
# catalog-ctan /macros/latex/contrib/mpostinl
# catalog-date 2018-12-31 09:10:51 +0100
# catalog-license lppl1.3
# catalog-version 1.5

Name:		texlive-mpostinl
Group:		Publishing
Version:	1.5
Release:	1

Summary:	Embed MetaPost figures within LaTeX documents
License:	LPPL1.3

URL:		https://ctan.org/pkg/mpostinl
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpostinl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpostinl.source.tar.xz
Source2:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/mpostinl.doc.tar.xz

BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	mpostinl.sty


%description
This LaTeX2e package enables the embedding of METAPOST figures within LaTeX documents.
The package automatically collects the embedded definitions and figures
in a .mp file, adds an appropriate LaTeX document structure, and compiles it
to .mps files.
It also allows for various configuration options to manage the generation of files and compilation.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#------------------------------------------------------------------

%files
%{_texmfdistdir}/tex/latex/mpostinl/mpostinl.sty
%doc %{_texmfdistdir}/doc/latex/mpostinl/README.txt
%doc %{_texmfdistdir}/doc/latex/mpostinl/mpinlsmp.tex
%doc %{_texmfdistdir}/doc/latex/mpostinl/mpostinl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mpostinl/mpostinl.dtx
%doc %{_texmfdistdir}/source/latex/mpostinl/mpostinl.ins

%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19013 |21mr|texlive-mptopdf-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mptopdf
Version:	20190228
Release:	1
Summary:	mpost to PDF, native MetaPost graphics inclusion
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mptopdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mptopdf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Provides:	texlive-mptopdf.bin = %{EVRD}

%description
The mptopdf script does standalone conversion from mpost to
PDF, using the supp-* and syst-* files.  They also allow native
MetaPost graphics inclusion in LaTeX (via pdftex.def) and
ConTeXt.  They can be used independently of the rest of
ConTeXt, yet are maintained as part of it.  So in TeX Live we
pull them out to this separate package for the benefit of LaTeX
users who do not install the rest of ConTeXt.  This can be
found on CTAN in macros/pdftex/graphics.

#-----------------------------------------------------------------------
%files
%{_bindir}/mptopdf
%{_texmfdistdir}/scripts/context/perl/mptopdf.pl
%{_texmfdistdir}/scripts/context/stubs/mswin/mptopdf.exe
%{_texmfdistdir}/tex/context/base/mkii
%{_texmfdistdir}/tex/generic/context/mptopdf
%_texmf_fmtutil_d/mptopdf
%doc %{_texmfdistdir}/doc/context/scripts/mkii/mptopdf.man
%doc %{_mandir}/man1/mptopdf.1*
%doc %{_texmfdistdir}/doc/man/man1/mptopdf.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/context/perl/mptopdf.pl mptopdf
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/mptopdf <<EOF
#
# from mptopdf:
mptopdf pdftex - -translate-file=cp227.tcx mptopdf.tex
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19014 |21mr|texlive-mptrees-17.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 44453
# category Package
# catalog-ctan /macros/latex/contrib/mpostinl
# catalog-date 2017-06-05 06:55:07 +0200
# catalog-license lppl1.3
# catalog-version 17.06

Name:		texlive-mptrees
Group:		Publishing
Version:	17.06
Release:	1

Summary:	Probability trees with MetaPost
License:	LPPL1.3

URL:		https://ctan.org/pkg/mptrees
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mptrees.tar.xz
Source1:        http://mirrors.ctan.org/systems/texlive/tlnet/archive/mptrees.doc.tar.xz

BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	mptrees.mp


%description
This package provides METAPOST tools for drawing simple probability trees. One command and several parameters to control the output are provided.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#------------------------------------------------------------------

%files
%{_texmfdistdir}/metapost/mptrees/mptrees.mp
%doc %{_texmfdistdir}/doc/metapost/mptrees/README.md
%doc %{_texmfdistdir}/doc/metapost/mptrees/mptrees-doc.pdf
%doc %{_texmfdistdir}/doc/metapost/mptrees/mptrees-doc.tex

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc metapost %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19015 |21mr|texlive-ms-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29849
# category Package
# catalog-ctan /macros/latex/contrib/ms
# catalog-date 2012-05-24 17:58:39 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-ms
Version:	20180303
Release:	2
Summary:	Various LaTeX packages by Martin Schroder
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ms
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ms.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ms.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ms.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A bundle of LaTeX packages by Martin Schroder; the collection
comprises: - count1to, make use of fixed TeX counters; -
everysel, set commands to execute every time a font is
selected; - everyshi, set commands to execute whenever a page
is shipped out; - multitoc, typeset the table of contents in
multiple columns; - prelim2e, mark typeset pages as
preliminary; and - ragged2e, typeset ragged text and allow
hyphenation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ms/count1to.sty
%{_texmfdistdir}/tex/latex/ms/everysel.sty
%{_texmfdistdir}/tex/latex/ms/everyshi.sty
%{_texmfdistdir}/tex/latex/ms/multitoc.sty
%{_texmfdistdir}/tex/latex/ms/prelim2e.sty
%{_texmfdistdir}/tex/latex/ms/ragged2e.sty
%doc %{_texmfdistdir}/doc/latex/ms/count1to.pdf
%doc %{_texmfdistdir}/doc/latex/ms/everysel.pdf
%doc %{_texmfdistdir}/doc/latex/ms/everyshi.asc
%doc %{_texmfdistdir}/doc/latex/ms/everyshi.bug
%doc %{_texmfdistdir}/doc/latex/ms/everyshi.pdf
%doc %{_texmfdistdir}/doc/latex/ms/multitoc.asc
%doc %{_texmfdistdir}/doc/latex/ms/multitoc.bug
%doc %{_texmfdistdir}/doc/latex/ms/multitoc.pdf
%doc %{_texmfdistdir}/doc/latex/ms/prelim2e.pdf
%doc %{_texmfdistdir}/doc/latex/ms/ragged2e.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ms/count1to.drv
%doc %{_texmfdistdir}/source/latex/ms/count1to.dtx
%doc %{_texmfdistdir}/source/latex/ms/count1to.ins
%doc %{_texmfdistdir}/source/latex/ms/everysel.drv
%doc %{_texmfdistdir}/source/latex/ms/everysel.dtx
%doc %{_texmfdistdir}/source/latex/ms/everysel.ins
%doc %{_texmfdistdir}/source/latex/ms/everyshi.drv
%doc %{_texmfdistdir}/source/latex/ms/everyshi.dtx
%doc %{_texmfdistdir}/source/latex/ms/everyshi.ins
%doc %{_texmfdistdir}/source/latex/ms/multitoc.drv
%doc %{_texmfdistdir}/source/latex/ms/multitoc.dtx
%doc %{_texmfdistdir}/source/latex/ms/multitoc.ins
%doc %{_texmfdistdir}/source/latex/ms/prelim2e.drv
%doc %{_texmfdistdir}/source/latex/ms/prelim2e.dtx
%doc %{_texmfdistdir}/source/latex/ms/prelim2e.ins
%doc %{_texmfdistdir}/source/latex/ms/ragged2e.drv
%doc %{_texmfdistdir}/source/latex/ms/ragged2e.dtx
%doc %{_texmfdistdir}/source/latex/ms/ragged2e.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19016 |21mr|texlive-msc-1.16-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/msc
# catalog-date 2008-06-02 14:52:39 +0200
# catalog-license lppl
# catalog-version 1.16
Name:		texlive-msc
Version:	1.16
Release:	7
Summary:	Draw MSC diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/msc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/msc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/msc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package should be useful to all people that prepare their
texts with LaTeX and want to draw Message Sequence Charts in
their texts. The package is not an MSC editor; it simply takes
a textual description of an MSC and draws the corresponding
MSC. The current version of the MSC macro package supports the
full MSC2000 language.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/msc/biblio.bib
%{_texmfdistdir}/tex/latex/msc/msc.sty
%doc %{_texmfdistdir}/doc/latex/msc/COPYRIGHT.txt
%doc %{_texmfdistdir}/doc/latex/msc/README
%doc %{_texmfdistdir}/doc/latex/msc/maintenance.pdf
%doc %{_texmfdistdir}/doc/latex/msc/maintenance.tex
%doc %{_texmfdistdir}/doc/latex/msc/manual.pdf
%doc %{_texmfdistdir}/doc/latex/msc/manual.tex
%doc %{_texmfdistdir}/doc/latex/msc/refman.pdf
%doc %{_texmfdistdir}/doc/latex/msc/refman.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19017 |21mr|texlive-msg-0.51-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/msg
# catalog-date 2006-11-16 17:55:10 +0100
# catalog-license lppl
# catalog-version 0.40
Name:		texlive-msg
Version:	0.51
Release:	1
Summary:	A package for LaTeX localisation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/msg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/msg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/msg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/msg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is designed to localise any document class or
package. This should be very useful for end-users who could
obtain messages in their own preferred language. It is really
easy to use by writers of other classes and packages.
Volunteers are urged to test the package, report, and even to
localise the message file to their own language. Documentation
is provided in English.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/msg/french_msg-msg.tex
%{_texmfdistdir}/tex/latex/msg/german_msg-msg.tex
%{_texmfdistdir}/tex/latex/msg/msg-msg.tex
%{_texmfdistdir}/tex/latex/msg/msg.sty
%{_texmfdistdir}/tex/latex/msg/norsk_msg-msg.tex
%doc %{_texmfdistdir}/doc/latex/msg/CHANGES
%doc %{_texmfdistdir}/doc/latex/msg/README
%doc %{_texmfdistdir}/doc/latex/msg/README_msg_doc.txt
%doc %{_texmfdistdir}/doc/latex/msg/msg.pdf
%doc %{_texmfdistdir}/doc/latex/msg/msgguide.pdf
%doc %{_texmfdistdir}/doc/latex/msg/msgguide.tex
%doc %{_texmfdistdir}/doc/latex/msg/msgtest.tex
#- source
%doc %{_texmfdistdir}/source/latex/msg/Makefile
%doc %{_texmfdistdir}/source/latex/msg/msg.dtx
%doc %{_texmfdistdir}/source/latex/msg/msg.ins
%doc %{_texmfdistdir}/source/latex/msg/msgfiles.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19018 |21mr|texlive-mslapa-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mslapa
Version:	20190228
Release:	1
Summary:	Michael Landy's APA citation style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mslapa
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mslapa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mslapa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX and BibTeX style files for a respectably close
approximation to APA (American Psychological Association)
citation and reference style.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/mslapa
%{_texmfdistdir}/tex/latex/mslapa
%doc %{_texmfdistdir}/doc/latex/mslapa

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19019 |21mr|texlive-msu-thesis-2.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-msu-thesis
Version:	2.8
Release:	2
Summary:	Class for Michigan State University Master's and PhD theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/msu-thesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/msu-thesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/msu-thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a class file for producing dissertations and theses
according to the Michigan State University Graduate School
Guidelines for Electronic Submission of Master's Theses and
Dissertations (2010). The class is based on the memoir document
class, and thefore inherits all of the functionality of that
class.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/msu-thesis
%doc %{_texmfdistdir}/doc/latex/msu-thesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19020 |21mr|texlive-mtgreek-1.1+-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17967
# category Package
# catalog-ctan /macros/latex/contrib/mtgreek
# catalog-date 2010-04-21 23:25:04 +0200
# catalog-license lppl
# catalog-version 1.1+
Name:		texlive-mtgreek
Version:	1.1+
Release:	2
Summary:	Use italic and upright greek letters with mathtime
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mtgreek
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mtgreek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mtgreek.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mtgreek.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is an add-on to the MathTime a style to provide
TeX support for the use of the MathTime(tm) fonts (formerly
distributed by YandY, Inc.). The MathTime package has uppercase
Greek letters hardwired to be upright and only upright; this
package provides a switch to choose between the two kinds of
Greek uppercase letters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mtgreek/mtgreek.sty
%doc %{_texmfdistdir}/doc/latex/mtgreek/mtgreek.pdf
%doc %{_texmfdistdir}/doc/latex/mtgreek/mtgreek.tex
%doc %{_texmfdistdir}/doc/latex/mtgreek/mtgtest.tex
#- source
%doc %{_texmfdistdir}/source/latex/mtgreek/mtgreek.dtx
%doc %{_texmfdistdir}/source/latex/mtgreek/mtgreek.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19021 |21mr|texlive-m-tx-20191119-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude /usr/bin/texlua

Name:		texlive-m-tx
Version:	20191119
Release:	1
Summary:	A preprocessor for pmx
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/m-tx
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/m-tx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/m-tx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-m-tx.bin
Requires:	texlive-luatex

%description
M-Tx is a preprocessor to pmx, which is itself a preprocessor
to musixtex, a music typesetting system. The prime motivation
to the development of M-Tx was to provide lyrics for music to
be typeset. In fact, pmx now provides a lyrics interface, but
M-Tx continues in use by those who prefer its language.

#-----------------------------------------------------------------------
%files
%{_bindir}/m-tx
%{_texmfdistdir}/scripts/m-tx
%{_texmfdistdir}/tex/generic/m-tx
%{_texmfdistdir}/tex/latex/m-tx/mtxlatex.sty
%doc %{_texmfdistdir}/doc/generic/m-tx
%doc %{_mandir}/man1/prepmx.1*
%doc %{_texmfdistdir}/doc/man/man1/prepmx.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/m-tx/m-tx.lua m-tx
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19022 |21mr|texlive-multenum-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21775
# category Package
# catalog-ctan /macros/latex/contrib/multenum
# catalog-date 2011-03-20 19:39:20 +0100
# catalog-license lppl1
# catalog-version undef
Name:		texlive-multenum
Version:	20190228
Release:	1
Summary:	Multi-column enumerated lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/multenum
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multenum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multenum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines an environment multienumerate, that produces an
enumerated array in which columns are vertically aligned on the
counter. The motivation was lists of answers for a text book,
where there are many rather small items; the multienumerate
environment goes some way to making such lists look neater.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/multenum/multienum.sty
%doc %{_texmfdistdir}/doc/latex/multenum/README
%doc %{_texmfdistdir}/doc/latex/multenum/multienum.article
%doc %{_texmfdistdir}/doc/latex/multenum/multienum.pdf
%doc %{_texmfdistdir}/doc/latex/multenum/multienum.sample

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19023 |21mr|texlive-multi-20111103-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 13293
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-multi
Version:	20111103
Release:	7
Summary:	TeXLive multi package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multi.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive multi package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/multi/2up.pro
%{_texmfdistdir}/dvips/multi/4up.pro
%{_texmfdistdir}/dvips/multi/multi.pro

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19024 |21mr|texlive-multiaudience-20160624-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-multiaudience
Version:	20160624
Release:	2
Summary:	Several versions of output from the same source
Group:		Publishing
URL:		https://www.ctan.org/pkg/multiaudience
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiaudience.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiaudience.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows to generate several versions of the same
document for different audiences.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19025 |21mr|texlive-multibbl-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-multibbl
Version:	1.1
Release:	2
Summary:	Multiple bibliographies
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/multibbl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibbl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibbl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multibbl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package multibbl redefines the standard bibliographic
commands so that one can generate multiple reference sections.
Each section has it own auxiliary file (for use with BibTeX)
and title.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/multibbl/multibbl.sty
%doc %{_texmfdistdir}/doc/latex/multibbl/multibbl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/multibbl/multibbl.dtx
%doc %{_texmfdistdir}/source/latex/multibbl/multibbl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19026 |21mr|texlive-multicap-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/multicap
# catalog-date 2006-12-15 15:26:27 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-multicap
Version:	20190228
Release:	1
Summary:	Format captions inside multicols
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/multicap
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multicap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multicap.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multicap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a package for formatting captions of column figures and
column tabular material, which cannot be standard floats in a
multicols environment. The package also provides a convenient
way to customise your captions, whether they be in multicols or
not.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/multicap/multicap.sty
%doc %{_texmfdistdir}/doc/latex/multicap/multicap.pdf
#- source
%doc %{_texmfdistdir}/source/latex/multicap/multicap.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19027 |21mr|texlive-multido-1.42-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18302
# category Package
# catalog-ctan /macros/generic/multido
# catalog-date 2010-05-15 11:36:20 +0200
# catalog-license lppl
# catalog-version 1.42
Name:		texlive-multido
Version:	1.42
Release:	7
Summary:	A loop facility for Generic TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/multido
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multido.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multido.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multido.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the \multido command, which was originally
designed for use with with PSTricks. Fixed-point arithmetic is
used when working on the loop variable, so that the package is
equally applicable in graphics applications like PSTricks as it
is with the more common integer loops.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/multido/multido.tex
%{_texmfdistdir}/tex/latex/multido/multido.sty
%doc %{_texmfdistdir}/doc/generic/multido/Changes
%doc %{_texmfdistdir}/doc/generic/multido/multido-doc.pdf
%doc %{_texmfdistdir}/doc/generic/multido/multido-doc.tex
%doc %{_texmfdistdir}/doc/generic/multido/multido.pdf
#- source
%doc %{_texmfdistdir}/source/generic/multido/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19028 |21mr|texlive-multienv-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-multienv
Version:	1.0
Release:	3
Epoch:		1
Summary:	TeXLive multienv package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multienv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multienv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multienv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive multienv package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/multienv
%doc %{_texmfdistdir}/doc/latex/multienv
#- source
%doc %{_texmfdistdir}/source/latex/multienv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19029 |21mr|texlive-multiexpand-1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-multiexpand
Version:	1.5
Release:	2
Summary:	Variations on the primitive command \expandafter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/multiexpand
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiexpand.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiexpand.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multiexpand.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides two user commands; one that performs
multiple expansions, and one that does multiple \expandafter
operations, in a single macro call. The package requires eTeX's
\numexpr command. The author suggests that the same effect
could be provided by use of the command variant mechanisms of
LaTeX 3 (see, for example, the interface documentation of the
experimental LaTeX 3 kernel).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/multiexpand
%doc %{_texmfdistdir}/doc/generic/multiexpand
#- source
%doc %{_texmfdistdir}/source/generic/multiexpand

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19030 |21mr|texlive-multirow-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-multirow
Version:	2.4
Release:	1
Summary:	Create tabular cells spanning multiple rows
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/multirow
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multirow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/multirow.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package has a lot of flexibility, including an option for
specifying an entry at the "natural" width of its text. The
package is distributed with the bigdelim and bigstrut packages,
which can be used to advantage with \multirow cells.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/multirow
%doc %{_texmfdistdir}/doc/latex/multirow

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19031 |21mr|texlive-musicography-2019.05.28-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 51251
# category Package
# catalogue-ctan /macros/latex/contrib/musicography
# catalog-date 2019-05-28 20:23:04 +0200
# catalog-license lppl1.3
# catalog-version 2.7
Name:		texlive-musicography
Version:	2019.05.28
Release:	2
Summary:	Accessing symbols for music writing with pdfLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/musicography
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musicography.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musicography.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
his package makes available the most commonly used symbols in
writing about music in a way that can be used with pdfLaTeX and
looks consistent and attractive. It includes accidentals,
meters, and notes of different rhythmic values. The package
builds on the approach used in the harmony package, where the
symbols are taken from the MusiXTeX fonts. But it provides a
larger range of symbols and a more flexible, user-friendly
interface written using xparse and stackengine.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/musicography/
%doc %{_texmfdistdir}/doc/latex/musicography/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19032 |21mr|texlive-musikui-2019.05.28-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 47472
# category Package
# catalogue-ctan /macros/latex/contrib/musikui
# catalog-date 2018-05-03 05:20:47 +0200
# catalog-license lppl
# catalog-version 1
Name:		texlive-musikui
Version:	2019.05.28
Release:	1
Summary:	Easy creation of "arithmetical restoration" puzzles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/musikui
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musikui.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musikui.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package permits to easily typeset arithmetical
restorations using LaTeX. This package requires the graphicx
package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/musikui/
%doc %{_texmfdistdir}/doc/latex/musikui/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19033 |21mr|texlive-musixguit-1.2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21649
# category Package
# catalog-ctan /macros/latex/contrib/musixguit
# catalog-date 2011-03-07 21:34:56 +0100
# catalog-license lppl1.3
# catalog-version 1.2.2
Name:		texlive-musixguit
Version:	1.2.2
Release:	7
Summary:	Easy notation for guitar music, in MusixTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/musixguit
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musixguit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musixguit.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands for typesetting notes for guitar,
especially for simplifying guitar notation with MusixTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/musixguit/musixguit.sty
%doc %{_texmfdistdir}/doc/latex/musixguit/README
%doc %{_texmfdistdir}/doc/latex/musixguit/musixguit_de.pdf
%doc %{_texmfdistdir}/doc/latex/musixguit/musixguit_de.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19034 |21mr|texlive-musixtex-1.29-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-musixtex
Version:	1.29
Release:	2
Summary:	Sophisticated music typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/musixtex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musixtex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musixtex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musixtex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-musixtex.bin = %{EVRD}

%description
MusiXTeX provides a set of macros, based on the earlier
MusicTeX, for typesetting music with TeX. To produce optimal
spacing, MusixTeX is a three-pass system: etex, musixflx, and
etex again. (Musixflx is a lua script that is provided in the
bundle.) The three-pass process, optionally followed by
processing for printed output, is automated by the musixtex
wrapper script. The package uses its own specialised fonts,
which must be available on the system for musixtex to run. This
version of MusixTeX builds upon work by Andreas Egler, whose
own version is no longer being developed. The MusiXTeX macros
are universally acknowledged to be challenging to use directly:
the pmx preprocessor compiles a simpler input language to
MusixTeX macros..

#-----------------------------------------------------------------------
%files
%{_bindir}/musixflx
%{_bindir}/musixtex
%{_texmfdistdir}/dvips/musixtex
%{_texmfdistdir}/scripts/musixtex
%{_texmfdistdir}/tex/generic/musixtex
%{_texmfdistdir}/tex/latex/musixtex
%doc %{_texmfdistdir}/doc/generic/musixtex
%doc %{_mandir}/man1/musixflx.1*
%doc %{_texmfdistdir}/doc/man/man1/musixflx.man1.pdf
%doc %{_mandir}/man1/musixtex.1*
%doc %{_texmfdistdir}/doc/man/man1/musixtex.man1.pdf
#- source
%doc %{_texmfdistdir}/source/generic/musixtex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/musixtex/musixflx.lua musixflx
    ln -sf %{_texmfdistdir}/scripts/musixtex/musixtex.lua musixtex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19035 |21mr|texlive-musixtex-fonts-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-musixtex-fonts
Version:	20190228
Release:	1
Summary:	Fonts used by MusixTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/musixtex-fonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musixtex-fonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musixtex-fonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These are fonts for use with MusixTeX; they are provided both
as original Metafont source, and as converted Adobe Type 1. The
bundle renders the older (Type 1 fonts only) bundle musixtex-
t1fonts obsolete.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/musixtex-fonts
%{_texmfdistdir}/fonts/source/public/musixtex-fonts
%{_texmfdistdir}/fonts/tfm/public/musixtex-fonts
%{_texmfdistdir}/fonts/type1/public/musixtex-fonts
%doc %{_texmfdistdir}/doc/fonts/musixtex-fonts

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19036 |21mr|texlive-musuos-1.1d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24857
# category Package
# catalog-ctan /macros/latex/contrib/musuos
# catalog-date 2011-12-07 16:44:29 +0100
# catalog-license lppl
# catalog-version 1.1c
Name:		texlive-musuos
Version:	1.1d
Release:	2
Summary:	Typeset papers for the department of music, Osnabruck
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/musuos
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musuos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musuos.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/musuos.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a LaTeX class for typesetting term papers
at the institute of music and musicology of the University of
Osnabruck, Germany, according to the specifications of Prof.
Stefan Hahnheide. A biblatex style is provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/musuos/musuos.cls
%doc %{_texmfdistdir}/doc/latex/musuos/README
%doc %{_texmfdistdir}/doc/latex/musuos/musuos-doc.ist
%doc %{_texmfdistdir}/doc/latex/musuos/musuos.pdf
#- source
%doc %{_texmfdistdir}/source/latex/musuos/musuos.dtx
%doc %{_texmfdistdir}/source/latex/musuos/musuos.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19037 |21mr|texlive-muthesis-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-muthesis
Version:	20190228
Release:	1
Summary:	Classes for University of Manchester Dept of Computer Science
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/muthesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/muthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/muthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides thesis and project report document classes
from the University of Manchester's Department of Computer
Science.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/muthesis
%doc %{_texmfdistdir}/doc/latex/muthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19038 |21mr|texlive-mversion-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29370
# category Package
# catalog-ctan /macros/latex/contrib/mversion
# catalog-date 2013-03-13 13:37:29 +0100
# catalog-license lppl1.2
# catalog-version 1.0.1
Name:		texlive-mversion
Version:	1.0.1
Release:	10
Summary:	Keeping track of document versions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mversion
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mversion.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mversion.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mversion.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to keep track of different
versions of a latex document. The command \version prints the
version and build numbers; each time you compile your document,
the build number is increased by one. By placing \version in
the header or footer, each page can be marked with the unique
build number describing the progress of your document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mversion/mVersion.sty
%doc %{_texmfdistdir}/doc/latex/mversion/README
%doc %{_texmfdistdir}/doc/latex/mversion/mVersion.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mversion/mVersion.dtx
%doc %{_texmfdistdir}/source/latex/mversion/mVersion.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19039 |21mr|texlive-mwcls-0.75-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/mwcls
# catalog-date 2009-09-28 14:47:14 +0200
# catalog-license lppl
# catalog-version 0.74
Name:		texlive-mwcls
Version:	0.75
Release:	2
Summary:	Polish-oriented document classes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mwcls
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mwcls.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mwcls.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mwcls.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
mwcls is a set of document classes for LaTeX 2e designed with
Polish typographical tradition in mind. Classes include:
'mwart' (which is a replacement for 'article'), 'mwrep'
('report'), and 'mwbk' ('book'). Most features present in
standard classes work with mwcls. Some extensions/exceptions
include: sectioning commands allow for second optional argument
(it's possible to state different texts for running head and
for TOC), new environments 'itemize*' and 'enumerate*' for
lists with long items, page styles have variants for normal,
opening, closing, and blank pages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mwcls/mw10.clo
%{_texmfdistdir}/tex/latex/mwcls/mw11.clo
%{_texmfdistdir}/tex/latex/mwcls/mw12.clo
%{_texmfdistdir}/tex/latex/mwcls/mwart.cls
%{_texmfdistdir}/tex/latex/mwcls/mwbk.cls
%{_texmfdistdir}/tex/latex/mwcls/mwbk10.clo
%{_texmfdistdir}/tex/latex/mwcls/mwbk11.clo
%{_texmfdistdir}/tex/latex/mwcls/mwbk12.clo
%{_texmfdistdir}/tex/latex/mwcls/mwrep.cls
%doc %{_texmfdistdir}/doc/latex/mwcls/CZYTAJ
%doc %{_texmfdistdir}/doc/latex/mwcls/ChangeLog
%doc %{_texmfdistdir}/doc/latex/mwcls/README
%doc %{_texmfdistdir}/doc/latex/mwcls/mwclsdoc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mwcls/mwcls.dtx
%doc %{_texmfdistdir}/source/latex/mwcls/mwcls.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19040 |21mr|texlive-mwe-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mwe
Version:	0.5
Release:	3
Summary:	Packages and image files for MWEs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mwe
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mwe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mwe.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mwe.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides several files useful when creating a
minimal working example (MWE). The package itself loads a small
set of packages often used when creating MWEs. In addition, a
range of images are provided, which will be installed in the
TEXMF tree, so that they may be used in any (La)TeX document.
This allows different users to share MWEs which include image
commands, without the need to share image files or to use
replacement code.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mwe
%doc %{_texmfdistdir}/doc/latex/mwe
#- source
%doc %{_texmfdistdir}/source/latex/mwe

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19041 |21mr|texlive-mweights-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-mweights
Version:	20190228
Release:	1
Summary:	Support for multiple-weight font packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mweights
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mweights.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mweights.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Many font families available for use with LaTeX are available
at multiple weights. Many Type 1-oriented support packages for
such fonts re-define the standard \mddefault or \bfdefault
macros. This can create difficulties if the weight desired for
one font family isn't available for another font family, or if
it differs from the weight desired for another font family. The
package provides a solution to these difficulties.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mweights
%doc %{_texmfdistdir}/doc/latex/mweights

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19042 |21mr|texlive-mxedruli-3.3c-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30021
# category Package
# catalog-ctan /fonts/georgian/mxedruli
# catalog-date 2013-04-18 13:20:04 +0200
# catalog-license lppl
# catalog-version 3.3c
Name:		texlive-mxedruli
Version:	3.3c
Release:	13
Summary:	A pair of fonts for different Georgian alphabets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/georgian/mxedruli
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mxedruli.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mxedruli.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Two Georgian fonts, in both Metafont and Type 1 formats, which
cover the Mxedruli and the Xucuri alphabets.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/mxedruli/mxed10.afm
%{_texmfdistdir}/fonts/afm/public/mxedruli/mxedbf10.afm
%{_texmfdistdir}/fonts/afm/public/mxedruli/mxedc10.afm
%{_texmfdistdir}/fonts/afm/public/mxedruli/mxedi10.afm
%{_texmfdistdir}/fonts/afm/public/mxedruli/xuc10.afm
%{_texmfdistdir}/fonts/map/dvips/mxedruli/mxedruli.map
%{_texmfdistdir}/fonts/source/public/mxedruli/mxed.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxed10.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedacc.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedbase.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedbf10.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedc10.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedcaps.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedd.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedfont.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedi10.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/mxedp.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/xuc.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/xuc10.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/xucbase.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/xucd.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/xucfont.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/xucl.mf
%{_texmfdistdir}/fonts/source/public/mxedruli/xucp.mf
%{_texmfdistdir}/fonts/tfm/public/mxedruli/mxed10.tfm
%{_texmfdistdir}/fonts/tfm/public/mxedruli/mxedbf10.tfm
%{_texmfdistdir}/fonts/tfm/public/mxedruli/mxedc10.tfm
%{_texmfdistdir}/fonts/tfm/public/mxedruli/mxedi10.tfm
%{_texmfdistdir}/fonts/tfm/public/mxedruli/xuc10.tfm
%{_texmfdistdir}/fonts/type1/public/mxedruli/mxed10.pfb
%{_texmfdistdir}/fonts/type1/public/mxedruli/mxedbf10.pfb
%{_texmfdistdir}/fonts/type1/public/mxedruli/mxedc10.pfb
%{_texmfdistdir}/fonts/type1/public/mxedruli/mxedi10.pfb
%{_texmfdistdir}/fonts/type1/public/mxedruli/xuc10.pfb
%{_texmfdistdir}/tex/latex/mxedruli/mxedruli.sty
%{_texmfdistdir}/tex/latex/mxedruli/umxed.fd
%{_texmfdistdir}/tex/latex/mxedruli/uxuc.fd
%{_texmfdistdir}/tex/latex/mxedruli/xucuri.sty
%doc %{_texmfdistdir}/doc/fonts/mxedruli/README
%doc %{_texmfdistdir}/doc/fonts/mxedruli/alphabets.tex
%doc %{_texmfdistdir}/doc/fonts/mxedruli/mxeddoc.pdf
%doc %{_texmfdistdir}/doc/fonts/mxedruli/mxeddoc.tex
%doc %{_texmfdistdir}/doc/fonts/mxedruli/ossetic.tex
%doc %{_texmfdistdir}/doc/fonts/mxedruli/vepxis.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19043 |21mr|texlive-mychemistry-1.99b-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28611
# category Package
# catalog-ctan /macros/latex/contrib/mychemistry
# catalog-date 2012-12-21 20:05:59 +0100
# catalog-license lppl1.3
# catalog-version 1.99b
Name:		texlive-mychemistry
Version:	1.99b
Release:	11
Summary:	Create reaction schemes with LaTeX and ChemFig
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mychemistry
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mychemistry.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mychemistry.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands for typesetting complex chemical
reaction schemes with LaTeX and ChemFig. The package requires
the packages ChemFig, mhchem, chemcompounds and (sometimes)
chemexec.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mychemistry/mychemistry.sty
%doc %{_texmfdistdir}/doc/latex/mychemistry/README
%doc %{_texmfdistdir}/doc/latex/mychemistry/examples.pdf
%doc %{_texmfdistdir}/doc/latex/mychemistry/examples.tex
%doc %{_texmfdistdir}/doc/latex/mychemistry/mychemistry_en.pdf
%doc %{_texmfdistdir}/doc/latex/mychemistry/mychemistry_en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19044 |21mr|texlive-mycv-1.5.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26807
# category Package
# catalog-ctan /macros/latex/contrib/mycv
# catalog-date 2012-05-21 10:58:59 +0200
# catalog-license lppl1.3
# catalog-version 1.5.6
Name:		texlive-mycv
Version:	1.5.6
Release:	6
Summary:	A list-driven CV class, allowing TikZ decorations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mycv
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mycv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mycv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mycv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides a set of functionality for writing
"curriculum vitae" with different layouts. The idea is that a
user can write some custom configuration directives, by means
of which is possible both to produce different c.v. layouts and
quickly switch among them. In order to process such directives,
the class uses a set of lists, provided by the package
etextools. Basic support for using TikZ decorations is also
provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/mycv/mycv_split_contents.pl
%{_texmfdistdir}/tex/latex/mycv/mycv.cls
%{_texmfdistdir}/tex/latex/mycv/mycv_base.def
%{_texmfdistdir}/tex/latex/mycv/mycv_dec.sty
%{_texmfdistdir}/tex/latex/mycv/mycv_misc.def
%{_texmfdistdir}/tex/latex/mycv/mycv_style.sty
%{_texmfdistdir}/tex/latex/mycv/mycv_version.def
%doc %{_texmfdistdir}/doc/latex/mycv/CHANGELOG
%doc %{_texmfdistdir}/doc/latex/mycv/Doc/Images/logo-1.png
%doc %{_texmfdistdir}/doc/latex/mycv/Doc/mycv.tex
%doc %{_texmfdistdir}/doc/latex/mycv/Examples/Notes.txt
%doc %{_texmfdistdir}/doc/latex/mycv/Examples/mycv-example-dpl.pdf
%doc %{_texmfdistdir}/doc/latex/mycv/Examples/mycv-example-dpl2.pdf
%doc %{_texmfdistdir}/doc/latex/mycv/Examples/mycv-example-spl.pdf
%doc %{_texmfdistdir}/doc/latex/mycv/Examples/mycv-example-spl2.pdf
%doc %{_texmfdistdir}/doc/latex/mycv/Examples/mycv-examples.dtx
%doc %{_texmfdistdir}/doc/latex/mycv/README
%doc %{_texmfdistdir}/doc/latex/mycv/checksum.pl
%doc %{_texmfdistdir}/doc/latex/mycv/mycv.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mycv/mycv.dtx
%doc %{_texmfdistdir}/source/latex/mycv/mycv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19045 |21mr|texlive-mylatexformat-3.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21392
# category Package
# catalog-ctan /macros/latex/contrib/mylatexformat
# catalog-date 2011-02-13 01:21:30 +0100
# catalog-license lppl1.3
# catalog-version 3.4
Name:		texlive-mylatexformat
Version:	3.4
Release:	7
Summary:	Build a format based on the preamble of a LaTeX file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/mylatexformat
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mylatexformat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mylatexformat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/mylatexformat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The use of formats helps to speed up compilations: packages
which have been dumped in the format are loaded at very high
speed. This is useful when a document loads many packages
(including large packages such as pgf-TikZ). The package was
developed from the work in mylatex, and eliminates many of the
limitations and problems of that package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/mylatexformat/mylatexformat.ltx
%doc %{_texmfdistdir}/doc/latex/mylatexformat/README
%doc %{_texmfdistdir}/doc/latex/mylatexformat/mylatexformat.pdf
#- source
%doc %{_texmfdistdir}/source/latex/mylatexformat/mylatexformat.drv
%doc %{_texmfdistdir}/source/latex/mylatexformat/mylatexformat.dtx
%doc %{_texmfdistdir}/source/latex/mylatexformat/mylatexformat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19046 |21mr|texlive-na-box-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-na-box
Version:	1.0
Release:	1
Epoch:		1
Summary:	Arabic-aware version of pas-cours package
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/xetex/latex/na-box
License:	LPPL
Source0:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/na-box.tar.xz
Source1:	https://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/na-box.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a modified version of the pas-cours package made
compatible with XeLaTeX/polyglossia to write arabic documents
with fancy boxed theorem-alike environments. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/na-box/na-box.sty
%doc %{_texmfdistdir}/doc/xelatex/na-box/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19047 |21mr|texlive-nag-0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24741
# category Package
# catalog-ctan /macros/latex/contrib/nag
# catalog-date 2011-12-03 11:39:13 +0100
# catalog-license lppl
# catalog-version 0.7
Name:		texlive-nag
Version:	0.7
Release:	2
Epoch:		1
Summary:	Detecting and warning about obsolete LaTeX commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nag
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nag.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nag.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nag.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Old habits die hard. All the same, there are commands, classes
and packages which are outdated and superseded. The nag package
provides routines to warn the user about the use of such
obsolete things. As an example, we provide an extension that
detects many of the "sins" described in l2tabu.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nag/nag-abort.cfg
%{_texmfdistdir}/tex/latex/nag/nag-experimental.cfg
%{_texmfdistdir}/tex/latex/nag/nag-l2tabu.cfg
%{_texmfdistdir}/tex/latex/nag/nag-orthodox.cfg
%{_texmfdistdir}/tex/latex/nag/nag.sty
%doc %{_texmfdistdir}/doc/latex/nag/README
%doc %{_texmfdistdir}/doc/latex/nag/nag.pdf
%doc %{_texmfdistdir}/doc/latex/nag/nagdemo.tex
#- source
%doc %{_texmfdistdir}/source/latex/nag/nag.dtx
%doc %{_texmfdistdir}/source/latex/nag/nag.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19048 |21mr|texlive-nameauth-3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nameauth
Version:	3.2
Release:	2
Summary:	Name authority mechanism for consistency in body text and index
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nameauth
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nameauth.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nameauth.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nameauth.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Publications, that reference many names, require editors and
proofreaders to track those names in the text and index. The
package offers name authority macros that allow authors and
compilers to normalize occurrences of names, variant name
forms, and pen names in the text and index. This may help
minimize writing and production time and cost.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nameauth
%doc %{_texmfdistdir}/doc/latex/nameauth
#- source
%doc %{_texmfdistdir}/source/latex/nameauth

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19049 |21mr|texlive-namespc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/namespc
# catalog-date 2006-12-22 14:37:19 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-namespc
Version:	20190228
Release:	1
Summary:	Rudimentary c++-like namespaces in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/namespc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/namespc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/namespc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/namespc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The namespc package adds rudimentary c++-like namespace
functionality to LaTeX. It may be used to declare local LaTeX
commands, which can be made accessible in a later contexts
without defining them globally.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/namespc/namespc.sty
%doc %{_texmfdistdir}/doc/latex/namespc/README
%doc %{_texmfdistdir}/doc/latex/namespc/namespc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/namespc/namespc.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19050 |21mr|texlive-nanumtype1-3.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29558
# category Package
# catalog-ctan /fonts/nanumtype1
# catalog-date 2013-03-25 18:47:44 +0100
# catalog-license ofl
# catalog-version 3.0
Name:		texlive-nanumtype1
Version:	3.0
Release:	10
Summary:	Type1 subfonts of Nanum Korean fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/nanumtype1
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nanumtype1.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nanumtype1.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Nanum is a unicode font designed especially for Korean-language
script. The font was designed by Sandoll Communication and
Fontrix; it includes the sans serif (gothic), serif (myeongjo),
pen script and brush script typefaces. The package provides
Type1 subfonts converted from Nanum Myeongjo (Regular and
ExtraBold) and Nanum Gothic (Regular and Bold) OTFs. C70, LUC,
T1, and TS1 font definition files are also provided. (The
package does not include OpenType/TrueType files, which are
available from Naver).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb00.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb01.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb02.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb03.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb04.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb11.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb20.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb21.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb22.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb23.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb24.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb25.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb26.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb27.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb2a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb30.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb31.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb32.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb33.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb4e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb4f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb50.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb51.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb52.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb53.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb54.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb55.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb56.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb57.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb58.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb59.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb5a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb5b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb5c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb5d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb5e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb5f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb60.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb61.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb62.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb63.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb64.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb65.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb66.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb67.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb68.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb69.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb6a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb6b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb6c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb6d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb6e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb6f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb70.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb71.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb72.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb73.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb74.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb75.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb76.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb77.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb78.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb79.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb7a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb7b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb7c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb7d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb7e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb7f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb80.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb81.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb82.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb83.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb84.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb85.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb86.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb87.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb88.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb89.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb8a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb8b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb8c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb8d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb8e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb8f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb90.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb91.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb92.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb93.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb94.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb95.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb96.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb97.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb98.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb99.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb9a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb9b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb9c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb9d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb9e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtb9f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbac.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbad.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbae.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbaf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb8.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbb9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbba.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbbb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbbc.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbbd.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbbe.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbbf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc8.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbc9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbca.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbcb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbcc.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbcd.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbce.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbcf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbd0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbd1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbd2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbd3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbd4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbd5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbd6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbd7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbf9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbfa.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtbff.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm00.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm01.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm02.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm03.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm04.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm11.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm20.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm21.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm22.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm23.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm24.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm25.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm26.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm27.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm2a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm30.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm31.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm32.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm33.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm4e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm4f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm50.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm51.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm52.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm53.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm54.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm55.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm56.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm57.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm58.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm59.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm5a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm5b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm5c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm5d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm5e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm5f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm60.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm61.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm62.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm63.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm64.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm65.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm66.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm67.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm68.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm69.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm6a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm6b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm6c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm6d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm6e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm6f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm70.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm71.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm72.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm73.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm74.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm75.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm76.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm77.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm78.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm79.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm7a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm7b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm7c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm7d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm7e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm7f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm80.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm81.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm82.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm83.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm84.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm85.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm86.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm87.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm88.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm89.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm8a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm8b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm8c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm8d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm8e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm8f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm90.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm91.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm92.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm93.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm94.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm95.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm96.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm97.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm98.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm99.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm9a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm9b.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm9c.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm9d.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm9e.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtm9f.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmac.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmad.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmae.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmaf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb8.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmb9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmba.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmbb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmbc.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmbd.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmbe.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmbf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc8.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmc9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmca.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmcb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmcc.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmcd.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmce.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmcf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmd0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmd1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmd2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmd3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmd4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmd5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmd6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmd7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmf9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmfa.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanumgtmff.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb00.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb01.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb02.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb03.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb04.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb20.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb21.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb22.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb23.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb24.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb25.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb26.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb27.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb2a.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb30.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb31.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb32.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjb33.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbac.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbad.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbae.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbaf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb8.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbb9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbba.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbbb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbbc.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbbd.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbbe.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbbf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc8.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbc9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbca.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbcb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbcc.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbcd.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbce.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbcf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbd0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbd1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbd2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbd3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbd4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbd5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbd6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbd7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjbff.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm00.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm01.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm02.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm03.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm04.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm20.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm21.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm22.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm23.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm24.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm25.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm26.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm27.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm30.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm31.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm32.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjm33.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmac.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmad.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmae.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmaf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb8.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmb9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmba.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmbb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmbc.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmbd.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmbe.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmbf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc8.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmc9.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmca.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmcb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmcc.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmcd.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmce.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmcf.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmd0.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmd1.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmd2.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmd3.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmd4.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmd5.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmd6.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmd7.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/nanummjmff.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/t1nanumgtb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/t1nanumgtm.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/t1nanummjb.afm
%{_texmfdistdir}/fonts/afm/public/nanumtype1/t1nanummjm.afm
%{_texmfdistdir}/fonts/map/dvips/nanumtype1/nanumfonts.map
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb00.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb01.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb02.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb03.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb04.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb11.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb20.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb21.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb22.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb23.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb24.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb25.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb26.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb27.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb2a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb30.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb31.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb32.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb33.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb4e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb4f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb50.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb51.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb52.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb53.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb54.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb55.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb56.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb57.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb58.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb59.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb5a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb5b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb5c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb5d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb5e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb5f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb60.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb61.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb62.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb63.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb64.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb65.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb66.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb67.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb68.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb69.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb6a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb6b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb6c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb6d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb6e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb6f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb70.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb71.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb72.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb73.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb74.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb75.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb76.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb77.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb78.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb79.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb7a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb7b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb7c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb7d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb7e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb7f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb80.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb81.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb82.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb83.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb84.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb85.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb86.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb87.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb88.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb89.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb8a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb8b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb8c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb8d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb8e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb8f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb90.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb91.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb92.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb93.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb94.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb95.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb96.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb97.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb98.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb99.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb9a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb9b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb9c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb9d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb9e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtb9f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbac.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbad.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbae.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbaf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbb9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbba.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbbb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbbc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbbd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbbe.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbbf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbc9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbca.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbcb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbcc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbcd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbce.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbcf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbd0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbd1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbd2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbd3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbd4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbd5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbd6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbd7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbf9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbfa.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbff.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo00.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo01.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo02.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo03.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo04.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo11.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo20.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo21.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo22.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo23.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo24.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo25.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo26.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo27.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo2a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo30.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo31.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo32.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo33.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo4e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo4f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo50.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo51.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo52.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo53.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo54.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo55.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo56.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo57.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo58.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo59.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo5a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo5b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo5c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo5d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo5e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo5f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo60.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo61.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo62.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo63.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo64.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo65.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo66.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo67.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo68.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo69.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo6a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo6b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo6c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo6d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo6e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo6f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo70.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo71.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo72.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo73.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo74.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo75.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo76.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo77.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo78.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo79.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo7a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo7b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo7c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo7d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo7e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo7f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo80.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo81.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo82.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo83.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo84.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo85.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo86.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo87.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo88.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo89.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo8b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo8d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo8e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo8f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo90.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo91.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo92.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo93.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo94.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo95.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo96.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo97.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo98.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo99.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo9a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo9b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo9c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo9d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo9e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbo9f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboac.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboad.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboae.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboaf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbob9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboba.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbobb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbobc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbobd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbobe.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbobf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboc9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboca.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbocb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbocc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbocd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboce.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbocf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbod0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbod1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbod2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbod3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbod4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbod5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbod6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbod7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbof9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtbofa.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtboff.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm00.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm01.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm02.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm03.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm04.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm11.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm20.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm21.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm22.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm23.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm24.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm25.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm26.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm27.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm2a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm30.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm31.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm32.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm33.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm4e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm4f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm50.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm51.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm52.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm53.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm54.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm55.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm56.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm57.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm58.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm59.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm5a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm5b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm5c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm5d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm5e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm5f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm60.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm61.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm62.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm63.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm64.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm65.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm66.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm67.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm68.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm69.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm6a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm6b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm6c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm6d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm6e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm6f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm70.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm71.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm72.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm73.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm74.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm75.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm76.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm77.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm78.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm79.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm7a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm7b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm7c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm7d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm7e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm7f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm80.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm81.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm82.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm83.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm84.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm85.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm86.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm87.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm88.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm89.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm8a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm8b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm8c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm8d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm8e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm8f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm90.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm91.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm92.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm93.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm94.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm95.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm96.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm97.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm98.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm99.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm9a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm9b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm9c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm9d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm9e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtm9f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmac.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmad.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmae.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmaf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmb9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmba.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmbb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmbc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmbd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmbe.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmbf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmc9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmca.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmcb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmcc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmcd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmce.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmcf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmd0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmd1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmd2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmd3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmd4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmd5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmd6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmd7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmf9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmfa.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmff.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo00.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo01.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo02.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo03.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo04.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo11.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo20.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo21.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo22.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo23.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo24.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo25.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo26.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo27.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo2a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo30.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo31.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo32.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo33.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo4e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo4f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo50.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo51.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo52.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo53.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo54.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo55.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo56.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo57.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo58.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo59.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo5a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo5b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo5c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo5d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo5e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo5f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo60.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo61.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo62.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo63.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo64.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo65.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo66.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo67.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo68.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo69.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo6a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo6b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo6c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo6d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo6e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo6f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo70.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo71.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo72.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo73.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo74.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo75.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo76.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo77.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo78.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo79.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo7a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo7b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo7c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo7d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo7e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo7f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo80.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo81.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo82.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo83.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo84.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo85.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo86.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo87.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo88.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo89.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo8a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo8b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo8c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo8d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo8e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo8f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo90.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo91.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo92.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo93.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo94.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo95.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo96.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo97.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo98.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo99.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo9a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo9b.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo9c.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo9d.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo9e.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmo9f.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoac.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoad.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoae.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoaf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmob9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoba.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmobb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmobc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmobd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmobe.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmobf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoc9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoca.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmocb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmocc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmocd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoce.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmocf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmod0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmod1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmod2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmod3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmod4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmod5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmod6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmod7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmof9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmofa.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanumgtmoff.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb00.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb01.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb02.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb03.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb04.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb20.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb21.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb22.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb23.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb24.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb25.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb26.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb27.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb2a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb30.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb31.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb32.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjb33.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbac.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbad.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbae.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbaf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbb9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbba.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbbb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbbc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbbd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbbe.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbbf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbc9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbca.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbcb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbcc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbcd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbce.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbcf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbd0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbd1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbd2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbd3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbd4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbd5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbd6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbd7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbff.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo00.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo01.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo02.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo03.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo04.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo20.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo21.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo22.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo23.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo24.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo25.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo26.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo27.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo2a.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo30.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo31.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo32.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbo33.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboac.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboad.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboae.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboaf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbob9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboba.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbobb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbobc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbobd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbobe.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbobf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboc9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboca.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbocb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbocc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbocd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboce.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbocf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbod0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbod1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbod2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbod3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbod4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbod5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbod6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjbod7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjboff.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm00.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm01.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm02.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm03.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm04.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm20.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm21.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm22.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm23.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm24.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm25.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm26.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm27.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm30.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm31.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm32.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjm33.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmac.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmad.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmae.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmaf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmb9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmba.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmbb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmbc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmbd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmbe.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmbf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmc9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmca.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmcb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmcc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmcd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmce.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmcf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmd0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmd1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmd2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmd3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmd4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmd5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmd6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmd7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmff.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo00.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo01.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo02.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo03.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo04.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo20.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo21.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo22.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo23.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo24.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo25.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo26.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo27.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo30.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo31.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo32.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmo33.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoac.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoad.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoae.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoaf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmob9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoba.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmobb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmobc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmobd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmobe.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmobf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc8.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoc9.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoca.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmocb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmocc.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmocd.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoce.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmocf.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmod0.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmod1.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmod2.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmod3.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmod4.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmod5.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmod6.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmod7.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/nanummjmoff.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/t1nanumgtb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/t1nanumgtbo.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/t1nanumgtm.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/t1nanumgtmo.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/t1nanummjb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/t1nanummjbo.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/t1nanummjm.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/t1nanummjmo.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/ts1nanumgtb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/ts1nanumgtbo.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/ts1nanumgtm.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/ts1nanumgtmo.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/ts1nanummjb.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/ts1nanummjbo.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/ts1nanummjm.tfm
%{_texmfdistdir}/fonts/tfm/public/nanumtype1/ts1nanummjmo.tfm
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb00.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb01.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb02.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb03.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb04.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb11.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb20.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb21.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb22.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb23.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb24.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb25.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb26.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb27.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb2a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb30.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb31.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb32.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb33.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb4e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb4f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb50.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb51.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb52.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb53.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb54.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb55.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb56.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb57.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb58.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb59.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb5a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb5b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb5c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb5d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb5e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb5f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb60.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb61.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb62.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb63.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb64.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb65.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb66.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb67.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb68.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb69.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb6a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb6b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb6c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb6d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb6e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb6f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb70.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb71.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb72.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb73.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb74.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb75.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb76.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb77.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb78.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb79.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb7a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb7b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb7c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb7d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb7e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb7f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb80.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb81.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb82.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb83.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb84.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb85.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb86.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb87.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb88.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb89.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb8a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb8b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb8c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb8d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb8e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb8f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb90.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb91.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb92.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb93.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb94.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb95.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb96.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb97.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb98.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb99.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb9a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb9b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb9c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb9d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb9e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtb9f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbac.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbad.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbae.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbaf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb8.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbb9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbba.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbbb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbbc.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbbd.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbbe.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbbf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc8.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbc9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbca.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbcb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbcc.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbcd.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbce.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbcf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbd0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbd1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbd2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbd3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbd4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbd5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbd6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbd7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbf9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbfa.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtbff.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm00.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm01.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm02.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm03.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm04.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm11.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm20.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm21.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm22.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm23.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm24.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm25.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm26.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm27.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm2a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm30.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm31.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm32.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm33.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm4e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm4f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm50.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm51.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm52.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm53.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm54.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm55.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm56.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm57.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm58.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm59.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm5a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm5b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm5c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm5d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm5e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm5f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm60.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm61.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm62.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm63.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm64.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm65.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm66.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm67.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm68.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm69.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm6a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm6b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm6c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm6d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm6e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm6f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm70.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm71.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm72.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm73.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm74.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm75.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm76.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm77.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm78.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm79.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm7a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm7b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm7c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm7d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm7e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm7f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm80.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm81.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm82.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm83.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm84.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm85.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm86.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm87.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm88.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm89.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm8a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm8b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm8c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm8d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm8e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm8f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm90.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm91.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm92.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm93.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm94.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm95.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm96.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm97.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm98.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm99.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm9a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm9b.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm9c.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm9d.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm9e.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtm9f.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmac.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmad.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmae.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmaf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb8.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmb9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmba.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmbb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmbc.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmbd.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmbe.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmbf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc8.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmc9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmca.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmcb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmcc.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmcd.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmce.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmcf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmd0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmd1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmd2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmd3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmd4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmd5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmd6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmd7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmf9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmfa.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanumgtmff.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb00.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb01.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb02.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb03.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb04.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb20.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb21.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb22.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb23.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb24.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb25.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb26.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb27.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb2a.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb30.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb31.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb32.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjb33.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbac.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbad.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbae.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbaf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb8.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbb9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbba.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbbb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbbc.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbbd.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbbe.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbbf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc8.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbc9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbca.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbcb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbcc.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbcd.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbce.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbcf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbd0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbd1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbd2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbd3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbd4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbd5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbd6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbd7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjbff.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm00.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm01.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm02.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm03.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm04.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm20.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm21.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm22.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm23.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm24.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm25.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm26.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm27.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm30.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm31.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm32.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjm33.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmac.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmad.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmae.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmaf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb8.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmb9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmba.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmbb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmbc.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmbd.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmbe.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmbf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc8.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmc9.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmca.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmcb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmcc.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmcd.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmce.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmcf.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmd0.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmd1.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmd2.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmd3.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmd4.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmd5.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmd6.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmd7.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/nanummjmff.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/t1nanumgtb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/t1nanumgtm.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/t1nanummjb.pfb
%{_texmfdistdir}/fonts/type1/public/nanumtype1/t1nanummjm.pfb
%{_texmfdistdir}/fonts/vf/public/nanumtype1/ts1nanumgtb.vf
%{_texmfdistdir}/fonts/vf/public/nanumtype1/ts1nanumgtbo.vf
%{_texmfdistdir}/fonts/vf/public/nanumtype1/ts1nanumgtm.vf
%{_texmfdistdir}/fonts/vf/public/nanumtype1/ts1nanumgtmo.vf
%{_texmfdistdir}/fonts/vf/public/nanumtype1/ts1nanummjb.vf
%{_texmfdistdir}/fonts/vf/public/nanumtype1/ts1nanummjbo.vf
%{_texmfdistdir}/fonts/vf/public/nanumtype1/ts1nanummjm.vf
%{_texmfdistdir}/fonts/vf/public/nanumtype1/ts1nanummjmo.vf
%{_texmfdistdir}/tex/latex/nanumtype1/c70nanumgt.fd
%{_texmfdistdir}/tex/latex/nanumtype1/c70nanummj.fd
%{_texmfdistdir}/tex/latex/nanumtype1/c70uhcmj.fd
%{_texmfdistdir}/tex/latex/nanumtype1/lucnanumgt.fd
%{_texmfdistdir}/tex/latex/nanumtype1/lucnanummj.fd
%{_texmfdistdir}/tex/latex/nanumtype1/t1nanumgt.fd
%{_texmfdistdir}/tex/latex/nanumtype1/t1nanummj.fd
%{_texmfdistdir}/tex/latex/nanumtype1/ts1nanumgt.fd
%{_texmfdistdir}/tex/latex/nanumtype1/ts1nanummj.fd
%doc %{_texmfdistdir}/doc/fonts/nanumtype1/COPYING
%doc %{_texmfdistdir}/doc/fonts/nanumtype1/README
%doc %{_texmfdistdir}/doc/fonts/nanumtype1/nanum-sampler.pdf
%doc %{_texmfdistdir}/doc/fonts/nanumtype1/nanum-sampler.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19051 |21mr|texlive-natbib-8.31b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20668
# category Package
# catalog-ctan /macros/latex/contrib/natbib
# catalog-date 2010-12-06 21:27:27 +0100
# catalog-license lppl
# catalog-version 8.31b
Name:		texlive-natbib
Version:	8.31b
Release:	7
Summary:	Flexible bibliography support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/natbib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/natbib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/natbib.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/natbib.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a style with author-year and numbered references, as
well as much detailed of support for other bibliography use.
Provides versions of the standard BibTeX styles that are
compatible with natbib - plainnat, unsrtnat, abbrnat. The
bibliography styles produced by custom-bib are designed from
the start to be compatible with natbib.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/natbib/abbrvnat.bst
%{_texmfdistdir}/bibtex/bst/natbib/plainnat.bst
%{_texmfdistdir}/bibtex/bst/natbib/unsrtnat.bst
%{_texmfdistdir}/tex/latex/natbib/bibentry.sty
%{_texmfdistdir}/tex/latex/natbib/natbib.sty
%doc %{_texmfdistdir}/doc/latex/natbib/README.1st
%doc %{_texmfdistdir}/doc/latex/natbib/README.v831b
%doc %{_texmfdistdir}/doc/latex/natbib/natbib.ltx
%doc %{_texmfdistdir}/doc/latex/natbib/natbib.pdf
%doc %{_texmfdistdir}/doc/latex/natbib/natnotes.pdf
%doc %{_texmfdistdir}/doc/latex/natbib/natnotes.tex
#- source
%doc %{_texmfdistdir}/source/latex/natbib/bibentry.drv
%doc %{_texmfdistdir}/source/latex/natbib/bibentry.dtx
%doc %{_texmfdistdir}/source/latex/natbib/bibentry.ins
%doc %{_texmfdistdir}/source/latex/natbib/natbib.dtx
%doc %{_texmfdistdir}/source/latex/natbib/natbib.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19052 |21mr|texlive-nature-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21819
# category Package
# catalog-ctan /macros/latex/contrib/nature
# catalog-date 2008-09-15 13:49:48 +0200
# catalog-license noinfo
# catalog-version 1.0
Name:		texlive-nature
Version:	1.0
Release:	7
Summary:	Prepare papers for the journal Nature
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nature
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nature.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nature.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Nature does not accept papers in LaTeX, but it does accept PDF.
This class and BibTeX style provide what seems to be necessary
to produce papers in a format acceptable to the publisher.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/nature/naturemag.bst
%{_texmfdistdir}/tex/latex/nature/nature.cls
%doc %{_texmfdistdir}/doc/latex/nature/README
%doc %{_texmfdistdir}/doc/latex/nature/nature-template.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19053 |21mr|texlive-ncclatex-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ncclatex
# catalog-date 2007-02-23 22:01:12 +0100
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-ncclatex
Version:	1.5
Release:	7
Summary:	An extended general-purpose class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ncclatex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ncclatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ncclatex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The ncc class provides a framework for a common class to
replace the standard article, book and report classes, and
providing a "preprint" class. The class's extensions are
provided in a number of small packages, some of which may also
be used with the standard classes. The ncclatex package also
loads many of the packages of, and requires the latest version
of the ncctools bundle.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ncclatex/cp1251-light.def
%{_texmfdistdir}/tex/latex/ncclatex/ncc.cls
%{_texmfdistdir}/tex/latex/ncclatex/ncc10.clo
%{_texmfdistdir}/tex/latex/ncclatex/ncc11.clo
%{_texmfdistdir}/tex/latex/ncclatex/ncc12.clo
%{_texmfdistdir}/tex/latex/ncclatex/ncc14.clo
%{_texmfdistdir}/tex/latex/ncclatex/nccart.clo
%{_texmfdistdir}/tex/latex/ncclatex/nccbiblist.sty
%{_texmfdistdir}/tex/latex/ncclatex/nccbook.clo
%{_texmfdistdir}/tex/latex/ncclatex/nccdefaults.sty
%{_texmfdistdir}/tex/latex/ncclatex/nccfit.clo
%{_texmfdistdir}/tex/latex/ncclatex/ncchdr.sty
%{_texmfdistdir}/tex/latex/ncclatex/nccheadings.sty
%{_texmfdistdir}/tex/latex/ncclatex/nccindex.sty
%{_texmfdistdir}/tex/latex/ncclatex/ncclatex.sty
%{_texmfdistdir}/tex/latex/ncclatex/nccltrus.sty
%{_texmfdistdir}/tex/latex/ncclatex/nccold.sty
%{_texmfdistdir}/tex/latex/ncclatex/nccproc.cls
%{_texmfdistdir}/tex/latex/ncclatex/nccsections.sty
%{_texmfdistdir}/tex/latex/ncclatex/ncctheorems.sty
%{_texmfdistdir}/tex/latex/ncclatex/ncctitle.clo
%{_texmfdistdir}/tex/latex/ncclatex/ncctitle.sty
%{_texmfdistdir}/tex/latex/ncclatex/ncctitlepage.sty
%{_texmfdistdir}/tex/latex/ncclatex/sibjnm.cls
%doc %{_texmfdistdir}/doc/latex/ncclatex/README
%doc %{_texmfdistdir}/doc/latex/ncclatex/changes.txt
%doc %{_texmfdistdir}/doc/latex/ncclatex/manifest.txt
%doc %{_texmfdistdir}/doc/latex/ncclatex/ncclatex.pdf
%doc %{_texmfdistdir}/doc/latex/ncclatex/ncclatex.tex
%doc %{_texmfdistdir}/doc/latex/ncclatex/nccnews.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19054 |21mr|texlive-ncctools-3.5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ncctools
# catalog-date 2008-02-08 09:08:04 +0100
# catalog-license lppl
# catalog-version 3.5
Name:		texlive-ncctools
Version:	3.5.2
Release:	2
Summary:	A collection of general packages for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ncctools
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ncctools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ncctools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ncctools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The NCCtools bundle contains many packages for general use
under LaTeX; many are also used by NCC LaTeX. The bundle
includes tools for: - executing commands after a package is
loaded; - watermarks; - counter manipulation (dynamic counters,
changing counter numbering with another counter); -
improvements to the description environment; - hyphenation of
compound words; - new levels of footnotes; - space-filling
patterns; - "poor man's" Black Board Bold symbols; - alignment
of the content of a box; - use comma as decimal separator; -
boxes with their own crop marks; - page cropmarks; -
improvements to fancy headers; - float "styles", mini floats,
side floats; - manually marked footnotes; - extension of
amsmath; - control of paragraph skip; - an envelope to the
graphicx package; - dashed and multiple rules; - alternative
techniques for declarations of sections, captions, and toc-
entries; - generalised text-stretching; - generation of new
theorem-like environments; - control of the text area; -
centred page layouts; and - an un-numbered top-level section.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ncctools/afterpackage.sty
%{_texmfdistdir}/tex/latex/ncctools/dcounter.sty
%{_texmfdistdir}/tex/latex/ncctools/desclist.sty
%{_texmfdistdir}/tex/latex/ncctools/extdash.sty
%{_texmfdistdir}/tex/latex/ncctools/manyfoot.sty
%{_texmfdistdir}/tex/latex/ncctools/mboxfill.sty
%{_texmfdistdir}/tex/latex/ncctools/nccbbb.sty
%{_texmfdistdir}/tex/latex/ncctools/nccboxes.sty
%{_texmfdistdir}/tex/latex/ncctools/ncccomma.sty
%{_texmfdistdir}/tex/latex/ncctools/ncccropbox.sty
%{_texmfdistdir}/tex/latex/ncctools/ncccropmark.sty
%{_texmfdistdir}/tex/latex/ncctools/nccfancyhdr.sty
%{_texmfdistdir}/tex/latex/ncctools/nccfloats.sty
%{_texmfdistdir}/tex/latex/ncctools/nccfoots.sty
%{_texmfdistdir}/tex/latex/ncctools/nccmath.sty
%{_texmfdistdir}/tex/latex/ncctools/nccparskip.sty
%{_texmfdistdir}/tex/latex/ncctools/nccpic.sty
%{_texmfdistdir}/tex/latex/ncctools/nccrules.sty
%{_texmfdistdir}/tex/latex/ncctools/nccsect.sty
%{_texmfdistdir}/tex/latex/ncctools/nccstretch.sty
%{_texmfdistdir}/tex/latex/ncctools/nccthm.sty
%{_texmfdistdir}/tex/latex/ncctools/textarea.sty
%{_texmfdistdir}/tex/latex/ncctools/tocenter.sty
%{_texmfdistdir}/tex/latex/ncctools/topsection.sty
%{_texmfdistdir}/tex/latex/ncctools/watermark.sty
%doc %{_texmfdistdir}/doc/latex/ncctools/README
%doc %{_texmfdistdir}/doc/latex/ncctools/README.source
%doc %{_texmfdistdir}/doc/latex/ncctools/afterpackage.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/changes.txt
%doc %{_texmfdistdir}/doc/latex/ncctools/dcounter.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/desclist.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/extdash.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/manifest.txt
%doc %{_texmfdistdir}/doc/latex/ncctools/manyfoot.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/mboxfill.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccbbb.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccboxes.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/ncccomma.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/ncccropbox.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/ncccropmark.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccfancyhdr.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccfloats.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccfoots.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccmath.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccparskip.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccpic.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccrules.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccsect.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccstretch.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/nccthm.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/ncctools.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/ncctools.tex
%doc %{_texmfdistdir}/doc/latex/ncctools/textarea.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/tocenter.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/topsection.pdf
%doc %{_texmfdistdir}/doc/latex/ncctools/watermark.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ncctools/afterpackage.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/dcounter.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/desclist.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/extdash.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/manyfoot.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/mboxfill.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccbbb.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccboxes.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/ncccomma.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/ncccropbox.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/ncccropmark.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccfancyhdr.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccfloats.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccfoots.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccmath.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccparskip.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccpic.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccrules.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccsect.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccstretch.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/nccthm.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/ncctools.ins
%doc %{_texmfdistdir}/source/latex/ncctools/textarea.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/tocenter.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/topsection.dtx
%doc %{_texmfdistdir}/source/latex/ncctools/watermark.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19055 |21mr|texlive-ncntrsbk-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31835
# category Package
# catalog-ctan /fonts/urw/base35
# catalog-date 2012-06-06 22:57:48 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-ncntrsbk
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ncntrsbk.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/ncntrsbk/config.unc
%{_texmfdistdir}/fonts/afm/adobe/ncntrsbk/pncb8a.afm
%{_texmfdistdir}/fonts/afm/adobe/ncntrsbk/pncbi8a.afm
%{_texmfdistdir}/fonts/afm/adobe/ncntrsbk/pncr8a.afm
%{_texmfdistdir}/fonts/afm/adobe/ncntrsbk/pncri8a.afm
%{_texmfdistdir}/fonts/afm/urw/ncntrsbk/uncb8a.afm
%{_texmfdistdir}/fonts/afm/urw/ncntrsbk/uncbi8a.afm
%{_texmfdistdir}/fonts/afm/urw/ncntrsbk/uncr8a.afm
%{_texmfdistdir}/fonts/afm/urw/ncntrsbk/uncri8a.afm
%{_texmfdistdir}/fonts/map/dvips/ncntrsbk/unc.map
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncb.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncb7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncb8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncb8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncb8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbi.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbi7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbi8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbi8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbi8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbo.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbo7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbo8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbo8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncbo8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncr.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncr7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncr8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncr8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncr8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncrc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncrc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncrc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncri.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncri7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncri8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncri8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncri8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncro.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncro7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncro8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncro8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/ncntrsbk/pncro8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncb7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncb8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncb8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncb8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbi7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbi8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbi8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbi8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbo7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbo8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbo8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncbo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncr7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncr8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncr8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncr8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncrc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncrc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncri7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncri8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncri8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncri8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncro7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncro8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncro8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/ncntrsbk/uncro8t.tfm
%{_texmfdistdir}/fonts/type1/urw/ncntrsbk/uncb8a.pfb
%{_texmfdistdir}/fonts/type1/urw/ncntrsbk/uncb8a.pfm
%{_texmfdistdir}/fonts/type1/urw/ncntrsbk/uncbi8a.pfb
%{_texmfdistdir}/fonts/type1/urw/ncntrsbk/uncbi8a.pfm
%{_texmfdistdir}/fonts/type1/urw/ncntrsbk/uncr8a.pfb
%{_texmfdistdir}/fonts/type1/urw/ncntrsbk/uncr8a.pfm
%{_texmfdistdir}/fonts/type1/urw/ncntrsbk/uncri8a.pfb
%{_texmfdistdir}/fonts/type1/urw/ncntrsbk/uncri8a.pfm
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncb.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncb7t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncb8c.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncb8t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbc.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbi.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbi7t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbi8c.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbi8t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbo.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbo7t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbo8c.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncbo8t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncr.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncr7t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncr8c.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncr8t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncrc.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncrc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncrc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncri.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncri7t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncri8c.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncri8t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncro.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncro7t.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncro8c.vf
%{_texmfdistdir}/fonts/vf/adobe/ncntrsbk/pncro8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncb7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncb8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncb8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncbc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncbc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncbi7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncbi8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncbi8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncbo7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncbo8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncbo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncr7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncr8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncr8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncrc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncrc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncri7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncri8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncri8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncro7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncro8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/ncntrsbk/uncro8t.vf
%{_texmfdistdir}/tex/latex/ncntrsbk/8runc.fd
%{_texmfdistdir}/tex/latex/ncntrsbk/omlunc.fd
%{_texmfdistdir}/tex/latex/ncntrsbk/omsunc.fd
%{_texmfdistdir}/tex/latex/ncntrsbk/ot1unc.fd
%{_texmfdistdir}/tex/latex/ncntrsbk/t1unc.fd
%{_texmfdistdir}/tex/latex/ncntrsbk/ts1unc.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19056 |21mr|texlive-nddiss-3.2017.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nddiss
Version:	3.2017.2
Release:	2
Summary:	Notre Dame Dissertation format class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nddiss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nddiss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nddiss.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nddiss.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class file conforms to the requirements of the Graduate
School of the University of Notre Dame; with it a user can
format a thesis or dissertation in LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/nddiss
%{_texmfdistdir}/tex/latex/nddiss
%doc %{_texmfdistdir}/doc/latex/nddiss
#- source
%doc %{_texmfdistdir}/source/latex/nddiss

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19057 |21mr|texlive-needspace-1.3d-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29601
# category Package
# catalog-ctan /macros/latex/contrib/needspace
# catalog-date 2013-04-01 14:35:12 +0200
# catalog-license lppl
# catalog-version 1.3d
Name:		texlive-needspace
Version:	1.3d
Release:	10
Summary:	Insert pagebreak if not enough space
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/needspace
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/needspace.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/needspace.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/needspace.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides commands to disable pagebreaking within a given
vertical space. If there is not enough space between the
command and the bottom of the page, a new page will be started.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/needspace/needspace.sty
%doc %{_texmfdistdir}/doc/latex/needspace/README
%doc %{_texmfdistdir}/doc/latex/needspace/needspace.pdf
#- source
%doc %{_texmfdistdir}/source/latex/needspace/needspace.ins
%doc %{_texmfdistdir}/source/latex/needspace/needspace.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19058 |21mr|texlive-nestquot-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27323
# category Package
# catalog-ctan /macros/latex/contrib/nestquot
# catalog-date 2012-06-06 18:43:10 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-nestquot
Version:	20190228
Release:	1
Summary:	Alternate quotes between double and single with nesting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nestquot
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nestquot.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides two new commands: \nlq and \nrq for nesting left and
right quotes that properly change between double and single
quotes according to their nesting level. For example, the input
\nlq Foo \nlq bar\nrq\ bletch\nrq will be typeset as if it had
been entered as "Foo 'bar' bletch".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nestquot/nestquot.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19059 |21mr|texlive-neuralnetwork-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31500
# category Package
# catalog-ctan /graphics/pgf/contrib/neuralnetwork
# catalog-date 2013-08-22 18:53:49 +0200
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-neuralnetwork
Version:	1.0
Release:	10
Summary:	Graph-drawing for neural networks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/neuralnetwork
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/neuralnetwork.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/neuralnetwork.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides facilities for graph-drawing, with
facilities designed for neural network diagrams.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/neuralnetwork/neuralnetwork.sty
%doc %{_texmfdistdir}/doc/latex/neuralnetwork/examples/neural-networks-ebook.pdf
%doc %{_texmfdistdir}/doc/latex/neuralnetwork/examples/neuralnetwork.pdf
%doc %{_texmfdistdir}/doc/latex/neuralnetwork/examples/neuralnetwork.tex
%doc %{_texmfdistdir}/doc/latex/neuralnetwork/examples/xor.pdf
%doc %{_texmfdistdir}/doc/latex/neuralnetwork/examples/xor.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19060 |21mr|texlive-newcommand-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18704
# category Package
# catalog-ctan /support/newcommand
# catalog-date 2010-06-02 16:01:13 +0200
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-newcommand
Version:	2.0
Release:	6
Summary:	Generate new LaTeX command definitions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/newcommand
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newcommand.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newcommand.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Generating any other than the simple \newcommand-style
commands, in LaTeX, is tedious (in the least). This script
allows the specification of commands in a 'natural' style; the
script then generates macros to define the command.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/newcommand/README
%doc %{_texmfdistdir}/doc/latex/newcommand/newcommand.pdf
%doc %{_texmfdistdir}/doc/latex/newcommand/newcommand.py
%doc %{_texmfdistdir}/doc/latex/newcommand/newcommand.tex
%doc %{_texmfdistdir}/doc/latex/newcommand/spark.py

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19061 |21mr|texlive-newenviron-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29331
# category Package
# catalog-ctan /macros/latex/contrib/newenviron
# catalog-date 2013-03-10 16:42:24 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-newenviron
Version:	1.0
Release:	10
Summary:	Processing an environment's body
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/newenviron
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newenviron.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newenviron.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers tools for collecting and executing an
environment's body.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/newenviron/newenviron.sty
%doc %{_texmfdistdir}/doc/latex/newenviron/README
%doc %{_texmfdistdir}/doc/latex/newenviron/newenviron-examples.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19062 |21mr|texlive-newfile-1.0c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/newfile
# catalog-date 2009-09-03 13:00:14 +0200
# catalog-license lppl
# catalog-version 1.0c
Name:		texlive-newfile
Version:	1.0c
Release:	7
Summary:	User level management of LaTeX input and output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/newfile
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newfile.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newfile.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newfile.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Commands are defined to manage the limited pool of input and
output handles provided by TeX. The streams so provided are
mapped to various of the LaTeX input and output mechanisms.
Some facilities of the verbatim package are also mapped.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/newfile/newfile.sty
%doc %{_texmfdistdir}/doc/latex/newfile/README
%doc %{_texmfdistdir}/doc/latex/newfile/newfile.pdf
#- source
%doc %{_texmfdistdir}/source/latex/newfile/newfile.dtx
%doc %{_texmfdistdir}/source/latex/newfile/newfile.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19063 |21mr|texlive-newlfm-9.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/newlfm
# catalog-date 2009-04-12 19:35:00 +0200
# catalog-license gpl
# catalog-version 9.4
Name:		texlive-newlfm
Version:	9.4
Release:	7
Summary:	Write letters, facsimiles, and memos
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/newlfm
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newlfm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newlfm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newlfm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Integrates the letter class with fancyhdr and geometry to
automatically make letterhead stationery. Useful for writing
letters, fax, and memos. You can set up an address book using
'wrapper' macros. You put all the information for a person into
a wrapper and then put the wrapper in a document. The class
handles letterheads automatically. You place the object for the
letterhead (picture, information, etc.) in a box and all sizing
is set automatically.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/newlfm/addrset.sty
%{_texmfdistdir}/tex/latex/newlfm/newlfm.cls
%{_texmfdistdir}/tex/latex/newlfm/setdim.sty
%doc %{_texmfdistdir}/doc/latex/newlfm/README
%doc %{_texmfdistdir}/doc/latex/newlfm/chk1.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/demoa.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/draft.eps
%doc %{_texmfdistdir}/doc/latex/newlfm/draft.pdf
%doc %{_texmfdistdir}/doc/latex/newlfm/extracd.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/hletrinf.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/letrinfo.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/lvb.eps
%doc %{_texmfdistdir}/doc/latex/newlfm/lvb.pdf
%doc %{_texmfdistdir}/doc/latex/newlfm/make_clean
%doc %{_texmfdistdir}/doc/latex/newlfm/make_unix
%doc %{_texmfdistdir}/doc/latex/newlfm/make_win.bat
%doc %{_texmfdistdir}/doc/latex/newlfm/makeclean_win.bat
%doc %{_texmfdistdir}/doc/latex/newlfm/manual.pdf
%doc %{_texmfdistdir}/doc/latex/newlfm/mintrx.bat
%doc %{_texmfdistdir}/doc/latex/newlfm/newlfm.pdf
%doc %{_texmfdistdir}/doc/latex/newlfm/newlfm.txt
%doc %{_texmfdistdir}/doc/latex/newlfm/palm.eps
%doc %{_texmfdistdir}/doc/latex/newlfm/palm.pdf
%doc %{_texmfdistdir}/doc/latex/newlfm/problems.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/prx.bat
%doc %{_texmfdistdir}/doc/latex/newlfm/setup.bat
%doc %{_texmfdistdir}/doc/latex/newlfm/sfaxpage.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/smemosec.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/sprsrls.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test1.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test10.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test11.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test12.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test1alt.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test2.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test2a.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test2alt.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test3.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test3alt.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test4.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test4alt.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test5.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test5alt.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test6.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test6alt.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test7.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test7alt.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test8.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test8alt.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/test9.tex
%doc %{_texmfdistdir}/doc/latex/newlfm/testms.pdf
%doc %{_texmfdistdir}/doc/latex/newlfm/wine.eps
%doc %{_texmfdistdir}/doc/latex/newlfm/wine.pdf
#- source
%doc %{_texmfdistdir}/source/latex/newlfm/newlfm.dtx
%doc %{_texmfdistdir}/source/latex/newlfm/newlfm.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19064 |21mr|texlive-newspaper-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/newspaper
# catalog-date 2008-08-22 17:15:44 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-newspaper
Version:	1.0
Release:	7
Summary:	Typeset newsletters to resemble newspapers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/newspaper
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newspaper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newspaper.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newspaper.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The newspaper package redefines the page style and \maketitle
command to produce a typeset page similar to that off a
newspaper. It also provides several commands that (when used
with other packages) simplify the writing of articles in a
newspaper-style column format.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/newspaper/newspaper.sty
%doc %{_texmfdistdir}/doc/latex/newspaper/Figure1.pdf
%doc %{_texmfdistdir}/doc/latex/newspaper/Figure2.pdf
%doc %{_texmfdistdir}/doc/latex/newspaper/README
%doc %{_texmfdistdir}/doc/latex/newspaper/atom.jpg
%doc %{_texmfdistdir}/doc/latex/newspaper/newspaper.pdf
%doc %{_texmfdistdir}/doc/latex/newspaper/newspaperExample.tex
#- source
%doc %{_texmfdistdir}/source/latex/newspaper/newspaper.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19065 |21mr|texlive-newunicodechar-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28253
# category Package
# catalog-ctan /macros/latex/contrib/newunicodechar
# catalog-date 2012-11-13 18:34:11 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-newunicodechar
Version:	1.2
Release:	2
Summary:	Definitions of the meaning of Unicode characters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/newunicodechar
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newunicodechar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newunicodechar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newunicodechar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a friendly interface for defining the
meaning of Unicode characters. The document should be processed
by (pdf)LaTeX with the unicode option of inputenc or inputenx,
or by XeLaTeX/LuaLaTeX. The command provided is
\newunicodechar{<char>}{<code>} where <char> is a directly-
typed Unicode character, and <code> is its replacement.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/newunicodechar/newunicodechar.sty
%doc %{_texmfdistdir}/doc/latex/newunicodechar/README
%doc %{_texmfdistdir}/doc/latex/newunicodechar/newunicodechar.pdf
#- source
%doc %{_texmfdistdir}/source/latex/newunicodechar/newunicodechar.dtx
%doc %{_texmfdistdir}/source/latex/newunicodechar/newunicodechar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19066 |21mr|texlive-newvbtm-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23996
# category Package
# catalog-ctan /macros/latex/contrib/newvbtm
# catalog-date 2011-09-17 10:58:19 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-newvbtm
Version:	1.1
Release:	7
Summary:	Define your own verbatim-like environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/newvbtm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newvbtm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newvbtm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newvbtm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines general purpose macro named \newverbatim to define your
own verbatim-like environment. It also has a supplementary
style file varvbtm.sty to provide set of macros for variants of
verbatim, such as tab emulation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/newvbtm/newvbtm.sty
%{_texmfdistdir}/tex/latex/newvbtm/varvbtm.sty
%doc %{_texmfdistdir}/doc/latex/newvbtm/README
%doc %{_texmfdistdir}/doc/latex/newvbtm/newvbtm-man.pdf
%doc %{_texmfdistdir}/doc/latex/newvbtm/newvbtm-man.tex
#- source
%doc %{_texmfdistdir}/source/latex/newvbtm/newvbtm.dtx
%doc %{_texmfdistdir}/source/latex/newvbtm/newvbtm.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19067 |21mr|texlive-newverbs-1.3a-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26258
# category Package
# catalog-ctan /macros/latex/contrib/newverbs
# catalog-date 2012-05-08 15:35:13 +0200
# catalog-license lppl1.3
# catalog-version 1.3a
Name:		texlive-newverbs
Version:	1.3a
Release:	6
Summary:	Define new versions of \verb, including short verb versions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/newverbs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newverbs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newverbs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/newverbs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the definition of \verb variants which add
TeX code before and after the verbatim text (e.g., quotes or
surrounding \fbox{}). When used together with the shortvrb
package it allows the definition of short verbatim characters
which use this package's variant instead of the normal \verb.
In addition, it is possible to collect an argument verbatim to
either typeset or write it into a file. The \Verbdef command
defines verbatim text to a macro which can later be used to
write the verbatim text to a file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/newverbs/newverbs.sty
%doc %{_texmfdistdir}/doc/latex/newverbs/README
%doc %{_texmfdistdir}/doc/latex/newverbs/newverbs.pdf
#- source
%doc %{_texmfdistdir}/source/latex/newverbs/newverbs.dtx
%doc %{_texmfdistdir}/source/latex/newverbs/newverbs.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19068 |21mr|texlive-nextpage-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/misc/nextpage.sty
# catalog-date 2009-09-03 13:12:26 +0200
# catalog-license lppl
# catalog-version 1.1a
Name:		texlive-nextpage
Version:	1.1a
Release:	7
Summary:	Generalisations of the page advance commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/misc/nextpage.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nextpage.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides \clearpage and \newpage variants that guarantee to end
up on even/odd numbered pages; these 4 commands all have an
optional argument whose content will be placed on any "empty"
page generated.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nextpage/nextpage.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19069 |21mr|texlive-nfssext-cfr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19322
# category Package
# catalog-ctan /macros/latex/contrib/nfssext-cfr
# catalog-date 2010-06-30 12:36:12 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-nfssext-cfr
Version:	20190228
Release:	1
Summary:	Extensions to the LaTeX NFSS
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nfssext-cfr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nfssext-cfr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nfssext-cfr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a development of nfssext.sty, distributed with
the examples for the font installation guide. The package has
been developed for use in packages such as cfr-lm and
venturisadf,.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nfssext-cfr/nfssext-cfr.sty
%doc %{_texmfdistdir}/doc/latex/nfssext-cfr/README
%doc %{_texmfdistdir}/doc/latex/nfssext-cfr/nfssext-cfr.pdf
%doc %{_texmfdistdir}/doc/latex/nfssext-cfr/nfssext-cfr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19070 |21mr|texlive-nicefilelist-0.7a-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28527
# category Package
# catalog-ctan /macros/latex/contrib/nicefilelist
# catalog-date 2012-12-13 11:39:24 +0100
# catalog-license lppl1.3
# catalog-version 0.7a
Name:		texlive-nicefilelist
Epoch:		1
Version:	0.7a
Release:	10
Summary:	Provide \listfiles alignment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nicefilelist
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nicefilelist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nicefilelist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nicefilelist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends longnamefilelist, keeping separate columns
for date, version and "caption" (the caption now separately
listed). Alignment is not disturbed by short file name
extensions, such as ".fd". The package is not compatible with
longnamefilelist: users need to re-read the documentation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nicefilelist/nicefilelist.RLS
%{_texmfdistdir}/tex/latex/nicefilelist/nicefilelist.sty
%doc %{_texmfdistdir}/doc/latex/nicefilelist/README
%doc %{_texmfdistdir}/doc/latex/nicefilelist/SrcFILEs.txt
%doc %{_texmfdistdir}/doc/latex/nicefilelist/nicefilelist.pdf
#- source
%doc %{_texmfdistdir}/source/latex/nicefilelist/empty.f
%doc %{_texmfdistdir}/source/latex/nicefilelist/nicefilelist.tex
%doc %{_texmfdistdir}/source/latex/nicefilelist/provonly.fd
%doc %{_texmfdistdir}/source/latex/nicefilelist/srcfiles.tex
%doc %{_texmfdistdir}/source/latex/nicefilelist/wrong.prv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19071 |21mr|texlive-niceframe-1.1c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24120
# category Package
# catalog-ctan /macros/latex/contrib/niceframe
# catalog-date 2011-06-16 20:35:20 +0200
# catalog-license lppl
# catalog-version 1.1c
Name:		texlive-niceframe
Version:	1.1c
Release:	7
Summary:	Support for fancy frames
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/niceframe
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/niceframe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/niceframe.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/niceframe.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines means of drawing frames around boxes, using
dingbat fonts. Some (Metafont) font sources are included; the
fonts are available separately in Type 1 format.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/niceframe/karta.mf
%{_texmfdistdir}/fonts/source/public/niceframe/karta15.mf
%{_texmfdistdir}/fonts/source/public/niceframe/umrand.mf
%{_texmfdistdir}/fonts/source/public/niceframe/umranda.mf
%{_texmfdistdir}/fonts/source/public/niceframe/umrandb.mf
%{_texmfdistdir}/fonts/tfm/public/niceframe/karta15.tfm
%{_texmfdistdir}/fonts/tfm/public/niceframe/umranda.tfm
%{_texmfdistdir}/fonts/tfm/public/niceframe/umrandb.tfm
%{_texmfdistdir}/tex/latex/niceframe/niceframe.sty
%doc %{_texmfdistdir}/doc/latex/niceframe/dingbat.mf
%doc %{_texmfdistdir}/doc/latex/niceframe/example.tex
%doc %{_texmfdistdir}/doc/latex/niceframe/niceframe.pdf
#- source
%doc %{_texmfdistdir}/source/latex/niceframe/niceframe.drv
%doc %{_texmfdistdir}/source/latex/niceframe/niceframe.dtx
%doc %{_texmfdistdir}/source/latex/niceframe/niceframe.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19072 |21mr|texlive-nicetext-r0.67-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nicetext
Epoch:		1
Version:	r0.67
Release:	2
Summary:	Minimal markup for simple text (Wikipedia style) and documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nicetext
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nicetext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nicetext.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nicetext.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle offers "minimal" markup syntax for various simple
kinds of text. The user will typically involve little more than
is printed, and will still get LaTeX quality. The bundle
provides four packages: - wiki addresses general texts, marked
up in the simple style used on Wikipedia; - niceverb is yet
another means of documenting LaTeX packages: it offers syntax-
aware typesetting of meta-variables (macro arguments) and for
referring to commands (and their syntax) in footnotes, section
titles etc.; - fifinddo aims to parse plain text or (La)TeX
files using TeX, and to write the results to an external file;
the package is used by another member of the bundle: - makedoc,
which provides the means to produce typeset documentation
direct from package files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nicetext
%doc %{_texmfdistdir}/doc/latex/nicetext
#- source
%doc %{_texmfdistdir}/source/latex/nicetext

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19073 |21mr|texlive-nih-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/nih
# catalog-date 2007-03-10 12:31:42 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-nih
Version:	20190228
Release:	1
Summary:	A class for NIH grant applications
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nih
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nih.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nih.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The nih class offers support for grant applications to NIH, the
National Institutes of Health, a US government agency. The
example-* files provide a template for using nih.cls and
submitting the biographical sketches the NIH wants. They
(potentially) use denselists package, which just reduces list
spacing; the package is distributed with the class, but is not
part of the class proper. (The examples may be distributed
without even the restrictions of the LaTeX licence.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nih/denselists.sty
%{_texmfdistdir}/tex/latex/nih/nih.cls
%doc %{_texmfdistdir}/doc/latex/nih/README
%doc %{_texmfdistdir}/doc/latex/nih/example-biosketch.pdf
%doc %{_texmfdistdir}/doc/latex/nih/example-biosketch.tex
%doc %{_texmfdistdir}/doc/latex/nih/example-nih-cls.pdf
%doc %{_texmfdistdir}/doc/latex/nih/example-nih-cls.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19074 |21mr|texlive-nlctdoc-1.06-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32705
# category Package
# catalog-ctan /macros/latex/contrib/nlctdoc
# catalog-date 2014-01-17 19:05:21 +0100
# catalog-license lppl
# catalog-version 1.04
Name:		texlive-nlctdoc
Epoch:		1
Version:	1.06
Release:	3
Summary:	Package documentation class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nlctdoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nlctdoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nlctdoc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides support for the documentation of the
author's packages, using koma-script. This class is provided
"as is" solely for the benefit of anyone who wants to compile
the documentation of those packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nlctdoc/nlctdoc.cls
%doc %{_texmfdistdir}/doc/latex/nlctdoc/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19075 |21mr|texlive-noconflict-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30140
# category Package
# catalog-ctan /macros/latex/contrib/noconflict
# catalog-date 2013-04-27 00:34:43 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-noconflict
Version:	1.0
Release:	10
Summary:	Resolve macro name conflict between packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/noconflict
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/noconflict.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/noconflict.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides several commands to prefix (and hence
obscure) a macro's (or a sequence of macros') name, and to
restore the original macro(s) at places in a document where
they are needed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/noconflict/noconflict.sty
%doc %{_texmfdistdir}/doc/latex/noconflict/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19076 |21mr|texlive-nodetree-20180107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-nodetree
Version:	20180107
Release:	1
Summary:	Visualize node lists in a tree view
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/afthesis
License:	LPPL1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/nodetree.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/nodetree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
nodetree is a development package that visualizes the structure
of node lists. nodetree shows its debug informations in the
console output when you compile a LuaTeX file. It uses a
similar visual representation for node lists as the UNIX tree
command for a folder structure.

%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19077 |21mr|texlive-noindentafter-0.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-noindentafter
Version:	0.2.2
Release:	2
Epoch:		1
Summary:	TeXLive noindentafter package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/noindentafter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/noindentafter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive noindentafter package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/noindentafter
%doc %{_texmfdistdir}/doc/latex/noindentafter

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19078 |21mr|texlive-noitcrul-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/noitcrul
# catalog-date 2007-03-10 12:31:42 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-noitcrul
Version:	0.2
Release:	7
Summary:	Improved underlines in mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/noitcrul
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/noitcrul.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/noitcrul.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/noitcrul.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a (maths mode) \underline variant which
doesn't impose italics correction at the end.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/noitcrul/noitcrul.sty
%doc %{_texmfdistdir}/doc/latex/noitcrul/README
%doc %{_texmfdistdir}/doc/latex/noitcrul/noitcrul.pdf
#- source
%doc %{_texmfdistdir}/source/latex/noitcrul/noitcrul.dtx
%doc %{_texmfdistdir}/source/latex/noitcrul/noitcrul.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19079 |21mr|texlive-nolbreaks-1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26786
# category Package
# catalog-ctan /macros/latex/contrib/nolbreaks
# catalog-date 2012-06-01 11:46:45 +0200
# catalog-license pd
# catalog-version 1.2
Name:		texlive-nolbreaks
Version:	1.2
Release:	6
Summary:	No line breaks in text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nolbreaks
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nolbreaks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nolbreaks.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Use \nolbreaks{some text} to prevent line breaks in "some
text". This has the advantage over \mbox{} that glue (rubber
space) remains flexible. Most common cases are handled here
(\linebreak is disabled, for example) but spaces hidden in
macros or { } can still create break-points.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nolbreaks/nolbreaks.sty
%doc %{_texmfdistdir}/doc/latex/nolbreaks/nolbreaks.pdf
%doc %{_texmfdistdir}/doc/latex/nolbreaks/nolbreaks.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19080 |21mr|texlive-nomencl-3.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/nomencl
# catalog-date 2007-01-12 00:17:35 +0100
# catalog-license lppl
# catalog-version 3.1a
Name:		texlive-nomencl
Version:	3.1a
Release:	7
Summary:	Produce lists of symbols as in nomenclature
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nomencl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nomencl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nomencl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nomencl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Produces lists of symbols using the capabilities of the
MakeIndex program.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/nomencl/nomencl.ist
%{_texmfdistdir}/tex/latex/nomencl/nomencl.sty
%{_texmfdistdir}/tex/latex/nomencl/sample01.cfg
%{_texmfdistdir}/tex/latex/nomencl/sample02.cfg
%{_texmfdistdir}/tex/latex/nomencl/sample04.cfg
%{_texmfdistdir}/tex/latex/nomencl/sample05.cfg
%doc %{_texmfdistdir}/doc/latex/nomencl/README
%doc %{_texmfdistdir}/doc/latex/nomencl/nomencl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/nomencl/nomencl.drv
%doc %{_texmfdistdir}/source/latex/nomencl/nomencl.dtx
%doc %{_texmfdistdir}/source/latex/nomencl/nomencl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19081 |21mr|texlive-nomentbl-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16549
# category Package
# catalog-ctan /macros/latex/contrib/nomentbl
# catalog-date 2007-01-12 00:17:35 +0100
# catalog-license lppl
# catalog-version 0.4
Name:		texlive-nomentbl
Version:	0.4
Release:	7
Summary:	Nomenclature typeset in a longtable
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nomentbl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nomentbl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nomentbl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nomentbl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Nomentbl typeset nomenclatures in a longtable instead of the
makeindex style of nomencl. A nomenclature entry may have three
arguments: Symbol, description and physical unit.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/nomentbl/nomentbl.ist
%{_texmfdistdir}/tex/latex/nomentbl/nomentbl.sty
%doc %{_texmfdistdir}/doc/latex/nomentbl/README
%doc %{_texmfdistdir}/doc/latex/nomentbl/example.pdf
%doc %{_texmfdistdir}/doc/latex/nomentbl/example.tex
%doc %{_texmfdistdir}/doc/latex/nomentbl/nomentbl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/nomentbl/nomentbl.dtx
%doc %{_texmfdistdir}/source/latex/nomentbl/nomentbl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19082 |21mr|texlive-nonfloat-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17598
# category Package
# catalog-ctan /macros/latex/contrib/nonfloat
# catalog-date 2007-01-12 00:17:35 +0100
# catalog-license pd
# catalog-version 1.0
Name:		texlive-nonfloat
Version:	1.0
Release:	7
Summary:	Non-floating table and figure captions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nonfloat
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nonfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nonfloat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nonfloat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Adjusts the figure and table environments to ensure that
centered objects as one line captions are centered as well.
Also the vertical spaces for table captions above the table are
changed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nonfloat/nonfloat.sty
%doc %{_texmfdistdir}/doc/latex/nonfloat/nonfloat-en.pdf
%doc %{_texmfdistdir}/doc/latex/nonfloat/nonfloat-en.tex
%doc %{_texmfdistdir}/doc/latex/nonfloat/nonfloat.pdf
#- source
%doc %{_texmfdistdir}/source/latex/nonfloat/nonfloat.drv
%doc %{_texmfdistdir}/source/latex/nonfloat/nonfloat.dtx
%doc %{_texmfdistdir}/source/latex/nonfloat/nonfloat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19083 |21mr|texlive-nonumonpart-1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22114
# category Package
# catalog-ctan /macros/latex/contrib/nonumonpart
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl1.2
# catalog-version 1
Name:		texlive-nonumonpart
Version:	1
Release:	12
Summary:	Prevent page numbers on part pages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nonumonpart
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nonumonpart.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nonumonpart.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nonumonpart.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package bundles the answer to the long-standing FAQ about
removing page numbers on \part pages. The package accepts no
options and defines no user commands; the user needs only to
load it, and the requirement is met.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nonumonpart/nonumonpart.sty
%doc %{_texmfdistdir}/doc/latex/nonumonpart/LISEZMOI
%doc %{_texmfdistdir}/doc/latex/nonumonpart/README
%doc %{_texmfdistdir}/doc/latex/nonumonpart/nonumonpart-en.pdf
%doc %{_texmfdistdir}/doc/latex/nonumonpart/nonumonpart-fr.pdf
%doc %{_texmfdistdir}/doc/latex/nonumonpart/nonumonpart.pdf
#- source
%doc %{_texmfdistdir}/source/latex/nonumonpart/Makefile
%doc %{_texmfdistdir}/source/latex/nonumonpart/nonumonpart.dtx
%doc %{_texmfdistdir}/source/latex/nonumonpart/nonumonpart.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19084 |21mr|texlive-nopageno-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18128
# category Package
# catalog-ctan /macros/latex/contrib/nopageno
# catalog-date 2010-05-11 12:36:30 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-nopageno
Version:	20190228
Release:	1
Summary:	No page numbers in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nopageno
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nopageno.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nopageno.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX's standard styles use two page styles, one on normal
pages and one on 'opening' pages with \maketitle or \chapter,
etc. Unfortunately there is only easy access to changing one of
these two so if you want something other than 'plain' on the
opening pages you must use \thispagestyle on each such page.
The fancyhdr package does provide a more flexible interface,
but if you just want an empty page style on all pages then this
package will do the job.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nopageno/nopageno.sty
%doc %{_texmfdistdir}/doc/latex/nopageno/nopageno.pdf
%doc %{_texmfdistdir}/doc/latex/nopageno/nopageno.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19085 |21mr|texlive-norasi-c90-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30642
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-norasi-c90
Version:	20190228
Release:	1
Summary:	TeX support (from CJK) for the norasi font
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/norasi-c90.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/norasi-c90.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-fonts-tlwg

%description
TeXLive norasi-c90 package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/norasi-c90/config.norasi-c90
%{_texmfdistdir}/fonts/map/dvips/norasi-c90/norasi-c90.map
%{_texmfdistdir}/fonts/tfm/public/norasi-c90/ftnb8z.tfm
%{_texmfdistdir}/fonts/tfm/public/norasi-c90/ftnbi8z.tfm
%{_texmfdistdir}/fonts/tfm/public/norasi-c90/ftni8z.tfm
%{_texmfdistdir}/fonts/tfm/public/norasi-c90/ftnr8z.tfm
#- source
%doc %{_texmfdistdir}/source/fonts/norasi-c90/norasi-c90.fontinst

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19086 |21mr|texlive-normalcolor-20161116-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-normalcolor
Version:	20161116
Release:	1
Summary:	Changing \normalcolor
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/afthesis
License:	LPPL1.3
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/normalcolor.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/normalcolor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a command \setnormalcolor with the same
syntax as the command \color either of package color or of
package xcolor. However, \setnormalcolor will not change the
current colour but the normal / default color.

%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc


%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19087 |21mr|texlive-nostarch-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/nostarch
# catalog-date 2008-08-22 17:15:44 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-nostarch
Version:	1.3
Release:	7
Summary:	LaTeX class for No Starch Press
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nostarch
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nostarch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nostarch.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nostarch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the "official" LaTeX style for No Starch
Press. Provided are a a class, a package for interfacing to
hyperref and an index style file. The style serves both for
printed and for electronic books.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/nostarch/nostarch.bib
%{_texmfdistdir}/makeindex/nostarch/nostarch.ist
%{_texmfdistdir}/tex/latex/nostarch/nostarch.cls
%{_texmfdistdir}/tex/latex/nostarch/nshyper.sty
%doc %{_texmfdistdir}/doc/latex/nostarch/100euroie.png
%doc %{_texmfdistdir}/doc/latex/nostarch/100euroit.png
%doc %{_texmfdistdir}/doc/latex/nostarch/1eurogr.jpg
%doc %{_texmfdistdir}/doc/latex/nostarch/README
%doc %{_texmfdistdir}/doc/latex/nostarch/nostarch.pdf
%doc %{_texmfdistdir}/doc/latex/nostarch/nssample.pdf
%doc %{_texmfdistdir}/doc/latex/nostarch/nssample.tex
%doc %{_texmfdistdir}/doc/latex/nostarch/recycled.png
%doc %{_texmfdistdir}/doc/latex/nostarch/vitruvian.jpg
#- source
%doc %{_texmfdistdir}/source/latex/nostarch/Makefile
%doc %{_texmfdistdir}/source/latex/nostarch/nostarch.dtx
%doc %{_texmfdistdir}/source/latex/nostarch/nostarch.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19088 |21mr|texlive-notes-1.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-notes
Version:	1.0.1
Release:	2
Summary:	Mark sections of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/notes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/notes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/notes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/notes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides environments to highlight significant
portions of text within a document, by putting the text in a
box and adding an icon in the margin. (The icons are provided
as 'fig' sources, processable by xfig.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/notes/hand.eps
%{_texmfdistdir}/tex/latex/notes/hand.pdf
%{_texmfdistdir}/tex/latex/notes/hand.png
%{_texmfdistdir}/tex/latex/notes/info.eps
%{_texmfdistdir}/tex/latex/notes/info.pdf
%{_texmfdistdir}/tex/latex/notes/info.png
%{_texmfdistdir}/tex/latex/notes/notes.sty
%{_texmfdistdir}/tex/latex/notes/warn.eps
%{_texmfdistdir}/tex/latex/notes/warn.pdf
%{_texmfdistdir}/tex/latex/notes/warn.png
%doc %{_texmfdistdir}/doc/latex/notes/book.layout
%doc %{_texmfdistdir}/doc/latex/notes/hand.fig
%doc %{_texmfdistdir}/doc/latex/notes/info.fig
%doc %{_texmfdistdir}/doc/latex/notes/makedoc
%doc %{_texmfdistdir}/doc/latex/notes/makedoc.bat
%doc %{_texmfdistdir}/doc/latex/notes/notes.inc
%doc %{_texmfdistdir}/doc/latex/notes/notes.pdf
%doc %{_texmfdistdir}/doc/latex/notes/testnotes.tex
%doc %{_texmfdistdir}/doc/latex/notes/warn.fig
#- source
%doc %{_texmfdistdir}/source/latex/notes/Makefile
%doc %{_texmfdistdir}/source/latex/notes/notes.drv
%doc %{_texmfdistdir}/source/latex/notes/notes.dtx
%doc %{_texmfdistdir}/source/latex/notes/notes.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19089 |21mr|texlive-notespages-20160821-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-notespages
Version:	20160821
Release:	1
Summary:	Filling documents with notes pages and notes areas
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/afthesis
License:	LPPL1.3
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/notespages.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/notespages.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package package provides one macro to insert a single
notes page and another to fill the document with multiple notes
pages, until the total number of pages (so far) is a multiple
of a given number. A third command can be used to fill half
empty pages with a notes area.

%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc


%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19090 |21mr|texlive-notoccite-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18129
# category Package
# catalog-ctan /macros/latex/contrib/notoccite
# catalog-date 2010-05-11 12:36:30 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-notoccite
Version:	20190228
Release:	1
Summary:	Prevent trouble from citations in table of contents, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/notoccite
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/notoccite.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/notoccite.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
If you have \cite commands in \section-like commands, or in
\caption, the citation will also appear in the table of
contents, or list of whatever. If you are also using an unsrt-
like bibliography style, these citations will come at the very
start of the bibliography, which is confusing. This package
suppresses the effect.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/notoccite/notoccite.sty
%doc %{_texmfdistdir}/doc/latex/notoccite/notoccite.pdf
%doc %{_texmfdistdir}/doc/latex/notoccite/notoccite.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19091 |21mr|texlive-nowidow-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24066
# category Package
# catalog-ctan /macros/latex/contrib/nowidow
# catalog-date 2011-09-21 22:10:12 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-nowidow
Version:	1.0
Release:	7
Summary:	Avoid widows
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nowidow
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nowidow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nowidow.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nowidow.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a useful macro to manage widow lines.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nowidow/nowidow.sty
%doc %{_texmfdistdir}/doc/latex/nowidow/README
%doc %{_texmfdistdir}/doc/latex/nowidow/nowidow.pdf
#- source
%doc %{_texmfdistdir}/source/latex/nowidow/nowidow.dtx
%doc %{_texmfdistdir}/source/latex/nowidow/nowidow.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19092 |21mr|texlive-nox-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30991
# category Package
# catalog-ctan /macros/latex/contrib/nox
# catalog-date 2013-06-19 16:57:50 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-nox
Version:	1.0
Release:	10
Summary:	Adaptable tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows data, text (including (La)TeX commands or
environments) to be formatted into a array which may be split.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nox/nox.sty
%doc %{_texmfdistdir}/doc/latex/nox/README
%doc %{_texmfdistdir}/doc/latex/nox/nox.pdf
%doc %{_texmfdistdir}/doc/latex/nox/nox.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19093 |21mr|texlive-nrc-2.01a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29027
# category Package
# catalog-ctan /macros/latex/contrib/nrc
# catalog-date 2012-11-05 18:31:34 +0100
# catalog-license lppl
# catalog-version 2.01
Name:		texlive-nrc
Epoch:		1
Version:	2.01a
Release:	2
Summary:	Class for the NRC technical journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nrc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nrc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nrc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nrc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Macros, and some documentation, for typesetting papers for
submission to journals published by the National Research
Council Research Press. At present, only nrc2.cls (for two-
column layout) should be used.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nrc/nrc1.cls
%{_texmfdistdir}/tex/latex/nrc/nrc1.sty
%{_texmfdistdir}/tex/latex/nrc/nrc2.cls
%{_texmfdistdir}/tex/latex/nrc/nrc2.sty
%doc %{_texmfdistdir}/doc/latex/nrc/00-2013-feb-authors.txt
%doc %{_texmfdistdir}/doc/latex/nrc/README
%doc %{_texmfdistdir}/doc/latex/nrc/userguide.pdf
%doc %{_texmfdistdir}/doc/latex/nrc/userguide.tex
#- source
%doc %{_texmfdistdir}/source/latex/nrc/nrc.dtx
%doc %{_texmfdistdir}/source/latex/nrc/nrc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19094 |21mr|texlive-ntgclass-2.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ntgclass
# catalog-date 2006-12-05 17:23:05 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-ntgclass
Version:	2.1a
Release:	2
Epoch:		1
Summary:	"European" versions of standard classes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ntgclass
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ntgclass.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ntgclass.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ntgclass.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Versions of the standard LaTeX article and report classes,
rewritten to reflect a more European design, by the Dutch TeX
Users Group NTG.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ntgclass/a4.sty
%{_texmfdistdir}/tex/latex/ntgclass/artikel1.cls
%{_texmfdistdir}/tex/latex/ntgclass/artikel2.cls
%{_texmfdistdir}/tex/latex/ntgclass/artikel3.cls
%{_texmfdistdir}/tex/latex/ntgclass/boek.cls
%{_texmfdistdir}/tex/latex/ntgclass/boek3.cls
%{_texmfdistdir}/tex/latex/ntgclass/brief.cls
%{_texmfdistdir}/tex/latex/ntgclass/ntg10.clo
%{_texmfdistdir}/tex/latex/ntgclass/ntg11.clo
%{_texmfdistdir}/tex/latex/ntgclass/ntg12.clo
%{_texmfdistdir}/tex/latex/ntgclass/rapport1.cls
%{_texmfdistdir}/tex/latex/ntgclass/rapport3.cls
%doc %{_texmfdistdir}/doc/latex/ntgclass/00readme.txt
%doc %{_texmfdistdir}/doc/latex/ntgclass/a4.pdf
%doc %{_texmfdistdir}/doc/latex/ntgclass/artdoc.pdf
%doc %{_texmfdistdir}/doc/latex/ntgclass/artdoc.tex
%doc %{_texmfdistdir}/doc/latex/ntgclass/brief.pdf
%doc %{_texmfdistdir}/doc/latex/ntgclass/brief.tex
%doc %{_texmfdistdir}/doc/latex/ntgclass/briefdoc.pdf
%doc %{_texmfdistdir}/doc/latex/ntgclass/briefdoc.tex
%doc %{_texmfdistdir}/doc/latex/ntgclass/catalog.txt
%doc %{_texmfdistdir}/doc/latex/ntgclass/changes.txt
%doc %{_texmfdistdir}/doc/latex/ntgclass/classdoc.pdf
%doc %{_texmfdistdir}/doc/latex/ntgclass/classdoc.tex
%doc %{_texmfdistdir}/doc/latex/ntgclass/manifest.txt
%doc %{_texmfdistdir}/doc/latex/ntgclass/ntgclass.pdf
%doc %{_texmfdistdir}/doc/latex/ntgclass/rapdoc.pdf
%doc %{_texmfdistdir}/doc/latex/ntgclass/rapdoc.tex
#- source
%doc %{_texmfdistdir}/source/latex/ntgclass/a4.dtx
%doc %{_texmfdistdir}/source/latex/ntgclass/a4.ins
%doc %{_texmfdistdir}/source/latex/ntgclass/brief.dtx
%doc %{_texmfdistdir}/source/latex/ntgclass/ntgclass.dtx
%doc %{_texmfdistdir}/source/latex/ntgclass/ntgclass.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19095 |21mr|texlive-ntheorem-1.33-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27609
# category Package
# catalog-ctan /macros/latex/contrib/ntheorem
# catalog-date 2012-03-30 15:19:52 +0200
# catalog-license lppl
# catalog-version 1.31
Name:		texlive-ntheorem
Version:	1.33
Release:	2
Summary:	Enhanced theorem environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ntheorem
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ntheorem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ntheorem.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ntheorem.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Enhancements for theorem-like environments: easier control of
layout; proper placement of endmarks even when the environment
ends with \end{enumerate} or \end{displaymath} (including
support for amsmath displayed-equation environments); and
support for making a list of theorems like \listoffigures.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ntheorem/ntheorem.std
%{_texmfdistdir}/tex/latex/ntheorem/ntheorem.sty
%doc %{_texmfdistdir}/doc/latex/ntheorem/README
%doc %{_texmfdistdir}/doc/latex/ntheorem/ntheorem.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ntheorem/ntheorem.drv
%doc %{_texmfdistdir}/source/latex/ntheorem/ntheorem.dtx
%doc %{_texmfdistdir}/source/latex/ntheorem/ntheorem.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19096 |21mr|texlive-ntheorem-vn-1.203-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-ntheorem-vn
Version:	1.203
Release:	2
Epoch:		1
Summary:	TeXLive ntheorem-vn package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ntheorem-vn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ntheorem-vn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive ntheorem-vn package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/COPYING
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/FILELIST
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/README
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/ntheorem-doc-vn.pdf
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/Makefile
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/README.src
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/TODO
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/endmarks.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/example.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/help.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/interference.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/intro.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/license.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/ntheorem-doc-vn.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/preamble.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/thanks.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/title-abstract.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/src/user-interface.tex
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/test.pdf
%doc %{_texmfdistdir}/doc/latex/ntheorem-vn/test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19097 |21mr|texlive-nuc-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22256
# category Package
# catalog-ctan /macros/latex/contrib/nuc
# catalog-date 2011-04-28 12:45:40 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-nuc
Version:	0.1
Release:	7
Summary:	Notation for nuclear isotopes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/nuc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nuc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/nuc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A simple package providing nuclear sub- and superscripts as
commonly used in radiochemistry, radiation science, and nuclear
physics and engineering applications. Isotopes which have Z
with more digits than A require special spacing to appear
properly; this spacing is supported in the package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/nuc/nuc.sty
%doc %{_texmfdistdir}/doc/latex/nuc/README
%doc %{_texmfdistdir}/doc/latex/nuc/nuc.pdf
%doc %{_texmfdistdir}/doc/latex/nuc/nuc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19098 |21mr|texlive-numberedblock-1.10-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33109
# category Package
# catalog-ctan /macros/latex/contrib/numberedblock
# catalog-date 2014-03-06 18:55:44 +0100
# catalog-license lppl1.3
# catalog-version 1.10
Name:		texlive-numberedblock
Epoch:		1
Version:	1.10
Release:	6
Summary:	Print a block of code, with unique index number
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/numberedblock
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numberedblock.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numberedblock.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package has been created for the convenience of the report
writer; it provides the means to number, and label, code-block
snippets in your document. In this way, you can (unambiguously)
refer to each snippet elsewhere in your document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/numberedblock/numberedblock.sty
%doc %{_texmfdistdir}/doc/latex/numberedblock/README
%doc %{_texmfdistdir}/doc/latex/numberedblock/testnumberedblock.pdf
%doc %{_texmfdistdir}/doc/latex/numberedblock/testnumberedblock.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19099 |21mr|texlive-numericplots-2.0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31729
# category Package
# catalog-ctan /graphics/pstricks/contrib/numericplots
# catalog-date 2013-09-20 08:02:58 +0200
# catalog-license gpl3
# catalog-version 2.0.2
Name:		texlive-numericplots
Version:	2.0.2
Release:	10
Summary:	Plot numeric data (including Matlab export) using PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/numericplots
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numericplots.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numericplots.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Plotting numeric data is a task which has often to be done for
scientific papers. LaTeX itself provides no facilities for
drawing more than the simplest plots from supplied data. The
package will process user input, and uses PSTricks to plot the
results. The package provides Matlab functions to transform
Matlab results to plottable data.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/numericplots/NumericPlots.sty
%{_texmfdistdir}/tex/latex/numericplots/NumericPlots_TickLabels.tex
%{_texmfdistdir}/tex/latex/numericplots/NumericPlots_labels.tex
%{_texmfdistdir}/tex/latex/numericplots/NumericPlots_legend.tex
%{_texmfdistdir}/tex/latex/numericplots/NumericPlots_macros.tex
%{_texmfdistdir}/tex/latex/numericplots/NumericPlots_styles.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/License.txt
%doc %{_texmfdistdir}/doc/latex/numericplots/NumericPlots.pdf
%doc %{_texmfdistdir}/doc/latex/numericplots/README
%doc %{_texmfdistdir}/doc/latex/numericplots/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/numericplots/src/BasicFunctionality.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/FurtherExamples.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/MatlabSupport.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/MultiplePlots.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/NumericPlotsDoc.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/Roll406_Ref2288.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/TechnicalDetails.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/TestPlots.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/BodeDiagramm.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/DataTestRealData.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/DefineData.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/LabelsNTickLabels.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/NyquistPlot.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/Sprungantwort_PT1Glied.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_Boxes.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_EasyPlot.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_Grid.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_Labels.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_Legend.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_LegendI.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_LegendII.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_LegendIII.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_LineStyles.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_Lines.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_LogarithmicI.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_LogarithmicII.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_LogarithmicIII.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_MultipleData.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_Objects.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_PlaceObjects.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_PlaceObjectsII.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_PlotWHoles.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_UseRput.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/basic_UserLinestyles.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/data_BodeDiagrammLinearerTerm.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/data_Nyquist.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/data_SprungantwortPT1Glied.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/furtherEx_TickLabels.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/multiplots_exampleI.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/multiplots_exampleII.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/examples/multiplots_exampleIII.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/fig_NoiseData_ClosedLine.eps
%doc %{_texmfdistdir}/doc/latex/numericplots/src/fig_NoiseData_OpenLine.eps
%doc %{_texmfdistdir}/doc/latex/numericplots/src/history.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/keys_NumericDataPlot.tex
%doc %{_texmfdistdir}/doc/latex/numericplots/src/options.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19100 |21mr|texlive-numname-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18130
# category Package
# catalog-ctan /macros/latex/contrib/numname
# catalog-date 2010-05-03 00:02:21 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-numname
Version:	20190228
Release:	1
Summary:	Convert a number to its English expression
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/numname
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numname.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numname.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can generate cardinal (one, two, ...) and ordinal
(first, second, ...) numbers. The code derives from the memoir
class, and is extracted for the convenience of non-users of
that class.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/numname/numname.sty
%doc %{_texmfdistdir}/doc/latex/numname/README
%doc %{_texmfdistdir}/doc/latex/numname/numname.pdf
%doc %{_texmfdistdir}/doc/latex/numname/numname.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19101 |21mr|texlive-numprint-1.39-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27498
# category Package
# catalog-ctan /macros/latex/contrib/numprint
# catalog-date 2012-08-22 15:46:20 +0200
# catalog-license lppl
# catalog-version 1.39
Name:		texlive-numprint
Version:	1.39
Release:	10
Summary:	Print numbers with separators and exponent if necessary
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/numprint
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numprint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numprint.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/numprint.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package numprint prints numbers with a separator every
three digits and converts numbers given as 12345.6e789 to
12\,345,6\cdot 10^{789}. Numbers are printed in the current
mode (text or math) in order to use the correct font. Many
things, including the decimal sign, the thousand separator, as
well as the product sign can be changed by the user, e.g., to
reach 12,345.6\times 10^{789}. If an optional argument is given
it is printed upright as unit. Numbers can be rounded to a
given number of digits. The package supports an automatic,
language-dependent change of the number format. Tabular
alignment using the tabular(*), array, tabularx, and longtable
environments (similar to the dcolumn and rccol packages) is
supported using all features of numprint. Additional text can
be added before and after the formatted number.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/numprint/nbaseprt.sty
%{_texmfdistdir}/tex/latex/numprint/numprint.sty
%{_texmfdistdir}/tex/latex/numprint/numprint032.sty
%doc %{_texmfdistdir}/doc/latex/numprint/ChangeLog.nbaseprt
%doc %{_texmfdistdir}/doc/latex/numprint/ChangeLog.numprint
%doc %{_texmfdistdir}/doc/latex/numprint/Makefile
%doc %{_texmfdistdir}/doc/latex/numprint/README
%doc %{_texmfdistdir}/doc/latex/numprint/getversion.tex
%doc %{_texmfdistdir}/doc/latex/numprint/nbaseprt.pdf
%doc %{_texmfdistdir}/doc/latex/numprint/nbaseprttest.tex
%doc %{_texmfdistdir}/doc/latex/numprint/numprint.pdf
%doc %{_texmfdistdir}/doc/latex/numprint/numprinttest.tex
#- source
%doc %{_texmfdistdir}/source/latex/numprint/nbaseprt.dtx
%doc %{_texmfdistdir}/source/latex/numprint/numprint.dtx
%doc %{_texmfdistdir}/source/latex/numprint/numprint.ins
%doc %{_texmfdistdir}/source/latex/numprint/numprint032.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19102 |21mr|texlive-oberdiek-20240727-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-oberdiek
Version:	20240727
Release:	1
Summary:	A bundle of packages submitted by Heiko Oberdiek
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/oberdiek
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oberdiek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oberdiek.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oberdiek.source.tar.xz
Source3:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxcmds.tar.xz
Source4:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ltxcmds.doc.tar.xz
Source5:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftexcmds.tar.xz
Source6:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftexcmds.doc.tar.xz
Source7:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/infwarerr.tar.xz
Source8:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/infwarerr.doc.tar.xz
Source9:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kvsetkeys.tar.xz
Source10:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kvsetkeys.doc.tar.xz
Source11:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kvdefinekeys.tar.xz
Source12:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kvdefinekeys.doc.tar.xz
Source13:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfescape.tar.xz
Source14:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfescape.doc.tar.xz
Source15:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hycolor.tar.xz
Source16:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/hycolor.doc.tar.xz
Source17:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/letltxmacro.tar.xz
Source18:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/letltxmacro.doc.tar.xz
Source19:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/auxhook.tar.xz
Source20:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/auxhook.doc.tar.xz
Source21:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kvoptions.tar.xz
Source22:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/kvoptions.doc.tar.xz
Source23:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/intcalc.tar.xz
Source24:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/intcalc.doc.tar.xz
Source25:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etexcmds.tar.xz
Source26:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/etexcmds.doc.tar.xz
Source27:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bitset.tar.xz
Source28:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bitset.doc.tar.xz
Source29:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bigintcalc.tar.xz
Source30:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/bigintcalc.doc.tar.xz
Source31:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/atbegshi.tar.xz
Source32:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/atbegshi.doc.tar.xz
Source33:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rerunfilecheck.tar.xz
Source34:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rerunfilecheck.doc.tar.xz
Source35:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/atveryend.tar.xz
Source36:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/atveryend.doc.tar.xz
Source37:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uniquecounter.tar.xz
Source38:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uniquecounter.doc.tar.xz
Source39:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refcount.tar.xz
Source40:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refcount.doc.tar.xz
Source41:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gettitlestring.tar.xz
Source42:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/gettitlestring.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

Provides:	texlive-ltxcmds
Provides:	texlive-pdftexcmds
Provides:	texlive-infwarerr
Provides:	texlive-kvsetkeys
Provides:	texlive-kvdefinekeys
Provides:	texlive-pdfescape
Provides:	texlive-hycolor
Provides:	texlive-letltxmacro
Provides:	texlive-auxhook
Provides:	texlive-kvoptions
Provides:	texlive-intcalc
Provides:	texlive-etexcmds
Provides:	texlive-bitset
Provides:	texlive-bigintcalc
Provides:	texlive-atbegshi
Provides:	texlive-rerunfilecheck
Provides:	texlive-atveryend
Provides:	texlive-uniquecounter
Provides:	texlive-refcount
Provides:	texlive-gettitlestring
Provides:	tex(kvoptions-patch.sty) = 2024
Provides:	tex(kvoptions.sty) = 2024

%description
The bundle comprises packages to provide: accsupp: better
accessibility support for PDF files; aliascnt: 'alias
counters'; alphalph: multiple-alphabetic counting
(a...z,aa...zz,... -- up to the full extent of a TeX counter);
askinclude: replaces \includeonly by an interactive user
interface; atbegshi: a modern reimplementation of package
everyshi; atenddvi: provides \AtEndDvi command; attachfile2:
attach files to PDF files; atveryend: hooks the very end of a
document; auxhook: stick stuff at the start of the .aux file;
bigintcalc: expandable arithmetic operations with big integers
that can exceed TeX's number limits; bitset: defines and
implements the data type bit set, a vector of bits; bmpsize:
get bitmap size and resolution data; bookmark: alternative
bookmark (outline) organization for package hyperref;
catchfile: collects the contents of a file and puts it in a
macro; centernot: a horizontally-centred \not symbol; chemarr:
extensible chemists' reaction arrows; classlist: record
information about document class(es) used; colonequals: poor
man's mathematical relation symbols; dvipscol: dvips colour
stack management; embedfile: embed files in PDF documents;
engord: define counter-printing operations producing English
ordinals; eolgrab: collect arguments delimited by end of line;
epstopdf: conversion with epstopdf on the fly; etexcmds: adds a
prefix to eTeX's commands, to avoid conflicts with existing
macros; flags: setting and clearing flags in bit fields and
converting the bit field into a decimal number; gettitlestring:
clean up the string containing the title of a section, etc.;
grfext: macros for adding and reordering the list of graphics
file extensions recognised by the graphics package; grffile:
extend file name processing in the graphics bundle; hosub:
build collections of packages; holtxdoc: extra documentation
macros; hologo: bookmark-enabled logos; hopatch: safely apply
package patches; hycolor: implements the color option stuff
that is used by packages hyperref and bookmark; hypbmsec:
bookmarks in sectioning commands; hypcap: anjusting anchors of
captions; hypdestopt: optimising hyperref's pdftex driver
destinations; hypdoc: hyper-references in the LaTeX standard
doc package; hypgotoe: experimental package for links to
embedded files; hyphsubst: substitute hyphenation patterns;
ifdraft: switch for option draft; iflang: provides expandable
checks for the current language; ifluatex: looks for LuaTeX
regardless of its mode and provides the switch \ifluatex;
ifpdf: provides the \ifpdf switch; ifvtex: provides the \ifvtex
switch; infwarerr: provides a complete set of macros for
informations, warnings and error messages with support for
plain TeX; inputenx: enhanced handling of input encoding;
intcalc: provides expandable arithmetic operations with
integers; kvdefinekeys: define key-value keys in the same
manner as keyval; kvoptions: use package options in key value
format ; kvsetkeys: a variant of the \setkeys command;
letltxmacro: Let assignment for LaTeX macros; listingsutf8:
(partially) extends the listings package to UTF-8 encoding;
ltxcmds: exports some utility macros from the LaTeX kernel into
a separate namespace and also provides them for other formats
such as plain-TeX; luacolor: implements colour support based on
LuaTeX's node attributes; luatex: utilises new and extended
features and resources that LuaTeX provides; magicnum: allows
to access magic numbers by a hierarchical name system;
makerobust: make a command robust; pagegrid: prints a page grid
in the background; pagesel: select pages of a document for
output; pdfcolfoot: using pdftex's color stack for footnotes;
pdfcol: macros for setting and maintaining new color stacks;
pdfcolmk: PDFTeX COLour MarK -- fake a PDFTeX colour stack
using marks (not needed for PDFTeX 1.40.0 and later);
pdfcolparallel: fixes colour problems in package parallel;
pdfcolparcolumns: fixes colour problems in package parcolumns;
pdfcrypt: setting PDF encryption; pdfescape: pdfTeX's escape
features using TeX or e-TeX; pdflscape: landscape pages in PDF;
pdfrender: control PDF rendering modes; pdftexcmds: provide
PDFTeX primitives missing in LuaTeX; picture: dimens for
picture macros; pmboxdraw: poor man's box drawing characters;
protecteddef: define a command that protected against
expansion; refcount: using the numeric values of references;
rerunfilecheck: checksum based rerun checks on auxiliary files;
resizegather: automatically resize overly large equations;
rotchiffre: performs simple rotation cyphers; scrindex:
redefines environment 'theindex' of package 'index', if a class
from KOMA-Script is loaded; selinput: select the input encoding
by specifying pairs of input characters and their glyph names;
setouterhbox: set \hbox in outer horizontal mode; settobox:
getting box sizes; soulutf8: extends package soul and adds some
support for UTF-8; stackrel: extensions of the \stackrel
command; stampinclude: selects the files for \include by
inspecting the timestamp of the .aux file(s); stringenc:
provides \StringEncodingConvert for converting a string between
different encodings; tabularht: tabulars with height
specification; tabularkv: key value interface for tabular
parameters; telprint: print German telephone numbers;
thepdfnumber: canonical numbers for use in PDF files and
elsewhere; transparent: using a color stack for transparency
with pdftex; twoopt: commands with two optional arguments;
uniquecounter: provides unlimited unique counter; zref: a
proposed new reference system. Each of the packages is
represented by two files, a .dtx (documented source) and a PDF
file; the .ins file necessary for installation is extracted by
running the .dtx file with Plain TeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/oberdiek
%{_texmfdistdir}/tex/generic/oberdiek
%{_texmfdistdir}/tex/generic/ltxcmds
%{_texmfdistdir}/tex/generic/pdftexcmds
%{_texmfdistdir}/tex/generic/pdfescape
%{_texmfdistdir}/tex/generic/infwarerr
%{_texmfdistdir}/tex/generic/kvdefinekeys
%{_texmfdistdir}/tex/generic/intcalc
%{_texmfdistdir}/tex/generic/etexcmds
%{_texmfdistdir}/tex/generic/bitset
%{_texmfdistdir}/tex/generic/bigintcalc
%{_texmfdistdir}/tex/generic/atbegshi
%{_texmfdistdir}/tex/generic/uniquecounter
%{_texmfdistdir}/tex/generic/gettitlestring
%{_texmfdistdir}/tex/latex/refcount
%{_texmfdistdir}/tex/latex/atveryend
%{_texmfdistdir}/tex/latex/rerunfilecheck
%{_texmfdistdir}/tex/latex/kvoptions
%{_texmfdistdir}/tex/latex/auxhook
%{_texmfdistdir}/tex/latex/letltxmacro
%{_texmfdistdir}/tex/latex/hycolor
%{_texmfdistdir}/tex/latex/oberdiek
%{_texmfdistdir}/tex/latex/kvsetkeys/kvsetkeys.sty
%doc %{_texmfdistdir}/doc/latex/oberdiek
%doc %{_texmfdistdir}/doc/latex/infwarerr
%doc %{_texmfdistdir}/doc/latex/kvsetkeys
%doc %{_texmfdistdir}/doc/latex/kvdefinekeys
%doc %{_texmfdistdir}/doc/latex/pdfescape
%doc %{_texmfdistdir}/doc/latex/hycolor
%doc %{_texmfdistdir}/doc/latex/letltxmacro
%doc %{_texmfdistdir}/doc/latex/auxhook
%doc %{_texmfdistdir}/doc/latex/kvoptions
%doc %{_texmfdistdir}/doc/latex/intcalc
%doc %{_texmfdistdir}/doc/latex/etexcmds
%doc %{_texmfdistdir}/doc/latex/bitset
%doc %{_texmfdistdir}/doc/latex/bigintcalc
%doc %{_texmfdistdir}/doc/latex/atbegshi
%doc %{_texmfdistdir}/doc/latex/rerunfilecheck
%doc %{_texmfdistdir}/doc/latex/atveryend
%doc %{_texmfdistdir}/doc/latex/uniquecounter
%doc %{_texmfdistdir}/doc/latex/refcount
%doc %{_texmfdistdir}/doc/latex/gettitlestring
%doc %{_texmfdistdir}/doc/generic/pdftexcmds
%doc %{_texmfdistdir}/doc/generic/ltxcmds/README.md
%doc %{_texmfdistdir}/doc/generic/ltxcmds/ltxcmds.pdf
#- source
%doc %{_texmfdistdir}/source/latex/oberdiek

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2 -a3 -a4 -a5 -a6 -a7 -a8 -a9 -a10 -a11 -a12 -a13 -a14 
%setup -D -a15 -a16 -a17 -a18 -a19 -a20 -a21 -a22 -a23 -a24 -a25 -a26 -a27 -a28
%setup -D -a29 -a30 -a31 -a32 -a33 -a34 -a35 -a36 -a37 -a38 -a39 -a40 -a41 -a42

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19103 |21mr|texlive-objectz-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19389
# category Package
# catalog-ctan /macros/latex/contrib/objectz
# catalog-date 2006-12-30 22:14:40 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-objectz
Version:	20190228
Release:	1
Summary:	Macros for typesetting Object Z
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/objectz
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/objectz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/objectz.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/objectz.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package will typeset both Z and Object-Z specifications; it
develops the original zed package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/objectz/oz.sty
%doc %{_texmfdistdir}/doc/latex/objectz/catalog
%doc %{_texmfdistdir}/doc/latex/objectz/makefile
%doc %{_texmfdistdir}/doc/latex/objectz/manifest
%doc %{_texmfdistdir}/doc/latex/objectz/ozguide.pdf
%doc %{_texmfdistdir}/doc/latex/objectz/ozguide.tex
%doc %{_texmfdistdir}/doc/latex/objectz/oztest.tex
%doc %{_texmfdistdir}/doc/latex/objectz/readme
#- source
%doc %{_texmfdistdir}/source/latex/objectz/oz.dtx
%doc %{_texmfdistdir}/source/latex/objectz/oz.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19104 |21mr|texlive-ocg-p-0.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28803
# category Package
# catalog-ctan /macros/latex/contrib/ocg-p
# catalog-date 2013-01-11 11:30:29 +0100
# catalog-license lppl
# catalog-version 0.4
Name:		texlive-ocg-p
Version:	0.4
Release:	11
Summary:	PDF OCG support in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ocg-p
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocg-p.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocg-p.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides OCG (Optional Content Groups) support
within a PDF document, replacing the ocg.sty distributed with
asymptote. Nested OCGs are supported. The package may be used
with PFDLatex and XeLaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ocg-p/ocg-p.sty
%doc %{_texmfdistdir}/doc/latex/ocg-p/README
%doc %{_texmfdistdir}/doc/latex/ocg-p/examples/ocg-p_example_1.pdf
%doc %{_texmfdistdir}/doc/latex/ocg-p/examples/ocg-p_example_1.tex
%doc %{_texmfdistdir}/doc/latex/ocg-p/examples/ocg-p_example_2.pdf
%doc %{_texmfdistdir}/doc/latex/ocg-p/examples/ocg-p_example_2.tex
%doc %{_texmfdistdir}/doc/latex/ocg-p/examples/ocg-p_example_3.pdf
%doc %{_texmfdistdir}/doc/latex/ocg-p/examples/ocg-p_example_3.tex
%doc %{_texmfdistdir}/doc/latex/ocg-p/examples/ocg-p_example_4.pdf
%doc %{_texmfdistdir}/doc/latex/ocg-p/examples/ocg-p_example_4.tex
%doc %{_texmfdistdir}/doc/latex/ocg-p/ocg-p.pdf
%doc %{_texmfdistdir}/doc/latex/ocg-p/ocg-p.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19105 |21mr|texlive-ocgtools-0.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20780
# category Package
# catalog-ctan /macros/latex/contrib/ocgtools
# catalog-date 2010-05-11 13:42:59 +0200
# catalog-license lppl1.2
# catalog-version 0.8
Name:		texlive-ocgtools
Version:	0.8
Release:	7
Summary:	Manipulate OCG layers in PDF presentations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ocgtools
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocgtools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocgtools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocgtools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to insert OGC (Optional Group
Content, commonly known as layers) into PDF presentations. This
allows the user to insert any TeX material into separate layers
in a PDF document and also insert links which toggle these
layers on and off. Parts of the PDF document, such as formatted
text, tables, maths formulas or graphics may be switched to
visible or invisible state by clicking active links or buttons.
The documentation discusses the package's relation to various
apparently similar packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ocgtools/ocgtools.sty
%doc %{_texmfdistdir}/doc/latex/ocgtools/README
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/book.jpg
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/fancytipmark.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-article.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-article.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-beamer-Hannover.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-beamer-Hannover.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-beamer-Marburg.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-beamer-Marburg.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-beamer.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-beamer.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-fancytooltips.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-fancytooltips.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-minimal.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-minimal.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-nopanel.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen-panelleft.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-pdfscreen.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-web-leftpanel.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-web-leftpanel.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-web-rightpanel.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-web-rightpanel.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-web.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-example-web.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-preview.bat
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-preview.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-preview.sh
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-preview.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-scrartcl.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-scrartcl.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-test.bat
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-test.sh
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/ocgtools-test.tex
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/tall.jpg
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/tall.pdf
%doc %{_texmfdistdir}/doc/latex/ocgtools/examples/wide.jpg
%doc %{_texmfdistdir}/doc/latex/ocgtools/ocgtools.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ocgtools/ocgtools.dtx
%doc %{_texmfdistdir}/source/latex/ocgtools/ocgtools.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19106 |21mr|texlive-ocgx-0.5-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28492
# category Package
# catalog-ctan /macros/latex/contrib/ocgx
# catalog-date 2012-12-10 10:44:43 +0100
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-ocgx
Version:	0.5
Release:	10
Summary:	Use OCGs within a PDF document without JavaScript
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ocgx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocgx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocgx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocgx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends the ocg package, which allows you to create
OCGs (Optional Content Groups) in PDF documents. (The ocg
package is distributed as part of Asymptote.) Every OCG
includes TeX material into a layer of the PDF file. Each of
these layers can be displayed or not. Links can enable or
disable the display of OCGs. The ocgx package does not use
Javascript embedded in the PDF document to enable (to show) or
disable (to hide) OCGs.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ocgx/ocgx.sty
%{_texmfdistdir}/tex/latex/ocgx/tikzlibraryocgx.code.tex
%doc %{_texmfdistdir}/doc/latex/ocgx/README
%doc %{_texmfdistdir}/doc/latex/ocgx/demo-ocgx.pdf
%doc %{_texmfdistdir}/doc/latex/ocgx/ocgx-manual-en.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ocgx/demo-ocgx.tex
%doc %{_texmfdistdir}/source/latex/ocgx/ocgx-example-1.tex
%doc %{_texmfdistdir}/source/latex/ocgx/ocgx-manual-en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19107 |21mr|texlive-ocr-latex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ocr-latex
# catalog-date 2007-03-11 14:06:37 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-ocr-latex
Version:	20190228
Release:	1
Summary:	LaTeX support for ocr fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ocr-latex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocr-latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ocr-latex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports use of both ocr-a and ocr-b fonts in LaTeX
documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ocr-latex/ocr.sty
%{_texmfdistdir}/tex/latex/ocr-latex/ot1oca.fd
%{_texmfdistdir}/tex/latex/ocr-latex/ot1ocra.fd
%{_texmfdistdir}/tex/latex/ocr-latex/ot1ocrb.fd
%{_texmfdistdir}/tex/latex/ocr-latex/ot1ocrbn.fd
%{_texmfdistdir}/tex/latex/ocr-latex/ot1ocrbns.fd
%{_texmfdistdir}/tex/latex/ocr-latex/ot1ocrbo.fd
%{_texmfdistdir}/tex/latex/ocr-latex/ot1ocrbs.fd
%doc %{_texmfdistdir}/doc/latex/ocr-latex/README
%doc %{_texmfdistdir}/doc/latex/ocr-latex/ocr.pdf
%doc %{_texmfdistdir}/doc/latex/ocr-latex/ocr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19108 |21mr|texlive-octavo-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/octavo
# catalog-date 2007-03-07 18:02:23 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-octavo
Version:	1.2
Release:	7
Summary:	Typeset books following classical design and layout
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/octavo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/octavo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/octavo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/octavo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The octavo class is a modification of the standard LaTeX book
class. Its purpose is to typeset books following classical
design and layout principles, with the express intention of
encouraging the making of beautiful books by anyone with access
to a good printer and with an inclination towards venerable
crafts, e.g., bookbinding. The octavo class differs from the
book class by implementing many of the proposals and insights
of respected experts, especially Jan Tschichold and Hugh
Williamson. The documentation discusses methods to organise and
print out any text into signatures, which can then be gathered,
folded and sewn into a book.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/octavo/oct10.clo
%{_texmfdistdir}/tex/latex/octavo/oct11.clo
%{_texmfdistdir}/tex/latex/octavo/oct12.clo
%{_texmfdistdir}/tex/latex/octavo/octavo.cls
%doc %{_texmfdistdir}/doc/latex/octavo/README
%doc %{_texmfdistdir}/doc/latex/octavo/changes
%doc %{_texmfdistdir}/doc/latex/octavo/tub-octavo.pdf
#- source
%doc %{_texmfdistdir}/source/latex/octavo/octavo.dtx
%doc %{_texmfdistdir}/source/latex/octavo/octavo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19109 |21mr|texlive-odsfile-0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32742
# category Package
# catalog-ctan /macros/luatex/latex/odsfile
# catalog-date 2012-08-14 16:24:07 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-odsfile
Version:	0.6
Release:	2
Summary:	Read OpenDocument Spreadsheet documents as LaTeX tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/odsfile
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/odsfile.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/odsfile.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The distribution includes a package and a lua library that can
together read OpenDocument spreadsheet documents as LaTeX
tables. Cells in the tables may be processed by LaTeX macros,
so that (for example) the package may be used for drawing some
plots. The package uses lua's zip library.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/odsfile/odsfile.lua
%{_texmfdistdir}/tex/lualatex/odsfile/odsfile.sty
%doc %{_texmfdistdir}/doc/lualatex/odsfile/README
%doc %{_texmfdistdir}/doc/lualatex/odsfile/odsfile.pdf
%doc %{_texmfdistdir}/doc/lualatex/odsfile/odsfile.tex
%doc %{_texmfdistdir}/doc/lualatex/odsfile/pokus.ods

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19110 |21mr|texlive-oldstyle-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/oldstyle
# catalog-date 2009-03-08 21:39:02 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-oldstyle
Version:	0.2
Release:	7
Summary:	Old style numbers in OT1 encoding
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/oldstyle
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oldstyle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oldstyle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/oldstyle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Font information needed to load the cmmi and cmmib fonts for
use to produce oldstyle numbers.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/oldstyle/Ucmm.fd
%{_texmfdistdir}/tex/latex/oldstyle/oldstyle.sty
%doc %{_texmfdistdir}/doc/latex/oldstyle/oldstyle.pdf
#- source
%doc %{_texmfdistdir}/source/latex/oldstyle/oldstyle.dtx
%doc %{_texmfdistdir}/source/latex/oldstyle/oldstyle.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19111 |21mr|texlive-omega-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33046
# category Package
# catalog-ctan /systems/omega
# catalog-date 2012-12-31 10:37:50 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-omega
Version:	20190228
Release:	1
Summary:	A wide-character-set extension of TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/omega
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/omega.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/omega.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A development of TeX, which deals in multi-octet Unicode
characters, to enable native treatment of a wide range of
languages without changing character-set. Work on Omega seems,
more or less, to have ceased: its immediate successor was to be
the aleph project (though that too has stalled). Projects
developing Omega (and Aleph) ideas include Omega-2 and LuaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/omega/config.omega
%{_texmfdistdir}/dvips/omega/omega.cfg
%{_texmfdistdir}/fonts/afm/public/omega/omsea1.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsea1b.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsea2.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsea2b.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsea3.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsea3b.afm
%{_texmfdistdir}/fonts/afm/public/omega/omseco.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsecob.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsecobi.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsecoi.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsecx.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsecy.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsegr.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsegrb.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsegrbi.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsegri.afm
%{_texmfdistdir}/fonts/afm/public/omega/omseha.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsehe.afm
%{_texmfdistdir}/fonts/afm/public/omega/omseip.afm
%{_texmfdistdir}/fonts/afm/public/omega/omsela.afm
%{_texmfdistdir}/fonts/afm/public/omega/omselab.afm
%{_texmfdistdir}/fonts/afm/public/omega/omselabi.afm
%{_texmfdistdir}/fonts/afm/public/omega/omselai.afm
%{_texmfdistdir}/fonts/afm/public/omega/omseti.afm
%{_texmfdistdir}/fonts/map/dvips/omega/omega.map
%{_texmfdistdir}/fonts/ofm/public/omega/omarab.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/omarabb.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/omlgc.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/omlgcb.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/omlgcbi.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/omlgci.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/ucitt10.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/ucsltt10.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/uctt10.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/uctt12.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/uctt8.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/uctt9.ofm
%{_texmfdistdir}/fonts/ofm/public/omega/ucvtt10.ofm
%{_texmfdistdir}/fonts/ovf/public/omega/omarab.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/omarabb.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/omlgc.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/omlgcb.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/omlgcbi.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/omlgci.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/ucitt10.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/ucsltt10.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/uctt10.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/uctt12.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/uctt8.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/uctt9.ovf
%{_texmfdistdir}/fonts/ovf/public/omega/ucvtt10.ovf
%{_texmfdistdir}/fonts/ovp/public/omega/omarab.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/omarabb.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/omlgc.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/omlgcb.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/omlgcbi.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/omlgci.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/ucitt10.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/ucsltt10.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/uctt10.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/uctt12.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/uctt8.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/uctt9.ovp
%{_texmfdistdir}/fonts/ovp/public/omega/ucvtt10.ovp
%{_texmfdistdir}/fonts/tfm/public/omega/omding.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsea1.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsea1b.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsea2.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsea2b.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsea3.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsea3b.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omseco.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsecob.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsecobi.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsecoi.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsecx.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsecy.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsegr.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsegrb.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsegrbi.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsegri.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omseha.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omseip.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omsela.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omselab.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omselabi.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omselai.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omseti.tfm
%{_texmfdistdir}/fonts/tfm/public/omega/omssti.tfm
%{_texmfdistdir}/fonts/type1/public/omega/omding.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsea1.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsea1b.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsea2.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsea2b.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsea3.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsea3b.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omseco.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsecob.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsecobi.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsecoi.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsecx.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsecy.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsecyb.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsecyi.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsegr.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsegrb.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsegrbi.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsegri.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omseha.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsehe.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omseip.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omsela.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omselab.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omselabi.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omselai.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omseti.pfb
%{_texmfdistdir}/fonts/type1/public/omega/omssti.pfb
%{_texmfdistdir}/omega/ocp/char2uni/in646.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88591.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88592.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88593.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88594.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88595.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88596.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88597.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88598.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in88599.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in8859a.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in8859d.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in8859e.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in8859f.ocp
%{_texmfdistdir}/omega/ocp/char2uni/in8859g.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inatari.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inav.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inbig5.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1250.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1251.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1252.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1253.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1254.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1255.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1256.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1257.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp1258.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp866.ocp
%{_texmfdistdir}/omega/ocp/char2uni/incp874.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inebcdic.ocp
%{_texmfdistdir}/omega/ocp/char2uni/ingb.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inkoi8.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inmac.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inmsdos.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inmsdos2.ocp
%{_texmfdistdir}/omega/ocp/char2uni/innext.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inov.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inps2.ocp
%{_texmfdistdir}/omega/ocp/char2uni/insf1.ocp
%{_texmfdistdir}/omega/ocp/char2uni/insf2.ocp
%{_texmfdistdir}/omega/ocp/char2uni/intis620.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inucode.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inutf8.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inviet1.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inviet2.ocp
%{_texmfdistdir}/omega/ocp/char2uni/inviscii.ocp
%{_texmfdistdir}/omega/ocp/misc/ebcdic.ocp
%{_texmfdistdir}/omega/ocp/misc/id.ocp
%{_texmfdistdir}/omega/ocp/omega/7arb2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7ber2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7cyr2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7hma2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7in88593.ocp
%{_texmfdistdir}/omega/ocp/omega/7lbe2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7pap2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7pas2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7snd2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7syr2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7tbe2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/7urd2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/8mac-arb2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/8mac-cyr2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/apostr2psili.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2acad.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2amal.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2arab.ex.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2arab.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2asv.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2bout.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2mona.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2nar.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2nva.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2oar-novow.ocp
%{_texmfdistdir}/omega/ocp/omega/cuni2oar.ocp
%{_texmfdistdir}/omega/ocp/omega/cunioara.ocp
%{_texmfdistdir}/omega/ocp/omega/dblquote-point.ocp
%{_texmfdistdir}/omega/ocp/omega/destroy.ocp
%{_texmfdistdir}/omega/ocp/omega/french2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/greek.ocp
%{_texmfdistdir}/omega/ocp/omega/grpo2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/grpotilde2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/inverted-iota-upsilon.ocp
%{_texmfdistdir}/omega/ocp/omega/isogr2uni-verbatim.ocp
%{_texmfdistdir}/omega/ocp/omega/isogr2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/lat2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/lowercase.ocp
%{_texmfdistdir}/omega/ocp/omega/lunatesigma.ocp
%{_texmfdistdir}/omega/ocp/omega/macgr2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/medbeta.ocp
%{_texmfdistdir}/omega/ocp/omega/mixedgreek2uni.ocp
%{_texmfdistdir}/omega/ocp/omega/tarauni.ocp
%{_texmfdistdir}/omega/ocp/omega/test1.ocp
%{_texmfdistdir}/omega/ocp/omega/test3.ocp
%{_texmfdistdir}/omega/ocp/omega/tiqwah.ocp
%{_texmfdistdir}/omega/ocp/omega/tiqwah2.ocp
%{_texmfdistdir}/omega/ocp/omega/tsinduni.ocp
%{_texmfdistdir}/omega/ocp/omega/turduuni.ocp
%{_texmfdistdir}/omega/ocp/omega/uni2cuni.ocp
%{_texmfdistdir}/omega/ocp/omega/uni2greek-verbatim.ocp
%{_texmfdistdir}/omega/ocp/omega/uni2greek.ocp
%{_texmfdistdir}/omega/ocp/omega/uni2lat-noffi.ocp
%{_texmfdistdir}/omega/ocp/omega/uni2lat.ocp
%{_texmfdistdir}/omega/ocp/omega/unicuni.ocp
%{_texmfdistdir}/omega/ocp/omega/uppercase-no-accents.ocp
%{_texmfdistdir}/omega/ocp/omega/uppercase.ocp
%{_texmfdistdir}/omega/ocp/uni2char/out88591.ocp
%{_texmfdistdir}/omega/ocp/uni2char/oututf8.ocp
%{_texmfdistdir}/omega/otp/char2uni/in646.otp
%{_texmfdistdir}/omega/otp/char2uni/in88591.otp
%{_texmfdistdir}/omega/otp/char2uni/in88592.otp
%{_texmfdistdir}/omega/otp/char2uni/in88593.otp
%{_texmfdistdir}/omega/otp/char2uni/in88594.otp
%{_texmfdistdir}/omega/otp/char2uni/in88595.otp
%{_texmfdistdir}/omega/otp/char2uni/in88596.otp
%{_texmfdistdir}/omega/otp/char2uni/in88597.otp
%{_texmfdistdir}/omega/otp/char2uni/in88598.otp
%{_texmfdistdir}/omega/otp/char2uni/in88599.otp
%{_texmfdistdir}/omega/otp/char2uni/in8859a.otp
%{_texmfdistdir}/omega/otp/char2uni/in8859d.otp
%{_texmfdistdir}/omega/otp/char2uni/in8859e.otp
%{_texmfdistdir}/omega/otp/char2uni/in8859f.otp
%{_texmfdistdir}/omega/otp/char2uni/in8859g.otp
%{_texmfdistdir}/omega/otp/char2uni/inatari.otp
%{_texmfdistdir}/omega/otp/char2uni/inav.otp
%{_texmfdistdir}/omega/otp/char2uni/inbig5.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1250.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1251.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1252.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1253.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1254.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1255.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1256.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1257.otp
%{_texmfdistdir}/omega/otp/char2uni/incp1258.otp
%{_texmfdistdir}/omega/otp/char2uni/incp866.otp
%{_texmfdistdir}/omega/otp/char2uni/incp874.otp
%{_texmfdistdir}/omega/otp/char2uni/inebcdic.otp
%{_texmfdistdir}/omega/otp/char2uni/ingb.otp
%{_texmfdistdir}/omega/otp/char2uni/inkoi8.otp
%{_texmfdistdir}/omega/otp/char2uni/inmac.otp
%{_texmfdistdir}/omega/otp/char2uni/inmsdos.otp
%{_texmfdistdir}/omega/otp/char2uni/inmsdos2.otp
%{_texmfdistdir}/omega/otp/char2uni/innext.otp
%{_texmfdistdir}/omega/otp/char2uni/inov.otp
%{_texmfdistdir}/omega/otp/char2uni/inps2.otp
%{_texmfdistdir}/omega/otp/char2uni/insf1.otp
%{_texmfdistdir}/omega/otp/char2uni/insf2.otp
%{_texmfdistdir}/omega/otp/char2uni/intis620.otp
%{_texmfdistdir}/omega/otp/char2uni/inucode.otp
%{_texmfdistdir}/omega/otp/char2uni/inutf8.otp
%{_texmfdistdir}/omega/otp/char2uni/inviet1.otp
%{_texmfdistdir}/omega/otp/char2uni/inviet2.otp
%{_texmfdistdir}/omega/otp/char2uni/inviscii.otp
%{_texmfdistdir}/omega/otp/misc/ebcdic.otp
%{_texmfdistdir}/omega/otp/misc/id.otp
%{_texmfdistdir}/omega/otp/omega/7arb2uni.otp
%{_texmfdistdir}/omega/otp/omega/7ber2uni.otp
%{_texmfdistdir}/omega/otp/omega/7cyr2uni.otp
%{_texmfdistdir}/omega/otp/omega/7hma2uni.otp
%{_texmfdistdir}/omega/otp/omega/7in88593.otp
%{_texmfdistdir}/omega/otp/omega/7lbe2uni.otp
%{_texmfdistdir}/omega/otp/omega/7pap2uni.otp
%{_texmfdistdir}/omega/otp/omega/7pas2uni.otp
%{_texmfdistdir}/omega/otp/omega/7snd2uni.otp
%{_texmfdistdir}/omega/otp/omega/7syr2uni.otp
%{_texmfdistdir}/omega/otp/omega/7tbe2uni.otp
%{_texmfdistdir}/omega/otp/omega/7urd2uni.otp
%{_texmfdistdir}/omega/otp/omega/8mac-arb2uni.otp
%{_texmfdistdir}/omega/otp/omega/8mac-cyr2uni.otp
%{_texmfdistdir}/omega/otp/omega/apostr2psili.otp
%{_texmfdistdir}/omega/otp/omega/cuni2acad.otp
%{_texmfdistdir}/omega/otp/omega/cuni2amal.otp
%{_texmfdistdir}/omega/otp/omega/cuni2arab.ex.otp
%{_texmfdistdir}/omega/otp/omega/cuni2asv.otp
%{_texmfdistdir}/omega/otp/omega/cuni2bout.otp
%{_texmfdistdir}/omega/otp/omega/cuni2mona.otp
%{_texmfdistdir}/omega/otp/omega/cuni2nar.otp
%{_texmfdistdir}/omega/otp/omega/cuni2nva.otp
%{_texmfdistdir}/omega/otp/omega/cuni2oar-novow.otp
%{_texmfdistdir}/omega/otp/omega/cuni2oar.otp
%{_texmfdistdir}/omega/otp/omega/dblquote-point.otp
%{_texmfdistdir}/omega/otp/omega/destroy.otp
%{_texmfdistdir}/omega/otp/omega/french2uni.otp
%{_texmfdistdir}/omega/otp/omega/grpo2uni.otp
%{_texmfdistdir}/omega/otp/omega/grpotilde2uni.otp
%{_texmfdistdir}/omega/otp/omega/inverted-iota-upsilon.otp
%{_texmfdistdir}/omega/otp/omega/isogr2uni-verbatim.otp
%{_texmfdistdir}/omega/otp/omega/isogr2uni.otp
%{_texmfdistdir}/omega/otp/omega/lat2uni.otp
%{_texmfdistdir}/omega/otp/omega/lowercase.otp
%{_texmfdistdir}/omega/otp/omega/lunatesigma.otp
%{_texmfdistdir}/omega/otp/omega/macgr2uni.otp
%{_texmfdistdir}/omega/otp/omega/medbeta.otp
%{_texmfdistdir}/omega/otp/omega/mixedgreek2uni.otp
%{_texmfdistdir}/omega/otp/omega/uni2cuni.otp
%{_texmfdistdir}/omega/otp/omega/uni2greek-verbatim.otp
%{_texmfdistdir}/omega/otp/omega/uni2greek.otp
%{_texmfdistdir}/omega/otp/omega/uni2lat-noffi.otp
%{_texmfdistdir}/omega/otp/omega/uni2lat.otp
%{_texmfdistdir}/omega/otp/omega/uppercase-no-accents.otp
%{_texmfdistdir}/omega/otp/omega/uppercase.otp
%{_texmfdistdir}/omega/otp/uni2char/out88591.otp
%{_texmfdistdir}/omega/otp/uni2char/oututf8.otp
%{_texmfdistdir}/tex/generic/encodings/cmbsy.onm
%{_texmfdistdir}/tex/generic/encodings/cmbx.onm
%{_texmfdistdir}/tex/generic/encodings/cmcsc.onm
%{_texmfdistdir}/tex/generic/encodings/cmex.onm
%{_texmfdistdir}/tex/generic/encodings/cmmi.onm
%{_texmfdistdir}/tex/generic/encodings/cmmib.onm
%{_texmfdistdir}/tex/generic/encodings/cmr.onm
%{_texmfdistdir}/tex/generic/encodings/cmr1.onm
%{_texmfdistdir}/tex/generic/encodings/cmsl.onm
%{_texmfdistdir}/tex/generic/encodings/cmsy.onm
%{_texmfdistdir}/tex/generic/encodings/cmti.onm
%{_texmfdistdir}/tex/generic/encodings/cmtt.onm
%{_texmfdistdir}/tex/generic/encodings/ecrm.onm
%{_texmfdistdir}/tex/generic/encodings/euex.onm
%{_texmfdistdir}/tex/generic/encodings/eufb.onm
%{_texmfdistdir}/tex/generic/encodings/eufm.onm
%{_texmfdistdir}/tex/generic/encodings/eurb.onm
%{_texmfdistdir}/tex/generic/encodings/eurm.onm
%{_texmfdistdir}/tex/generic/encodings/eusb.onm
%{_texmfdistdir}/tex/generic/encodings/eusm.onm
%{_texmfdistdir}/tex/generic/encodings/msam.onm
%{_texmfdistdir}/tex/generic/encodings/msbm.onm
%{_texmfdistdir}/tex/generic/omegahyph/bghyph.tex
%{_texmfdistdir}/tex/generic/omegahyph/lthyph.tex
%{_texmfdistdir}/tex/generic/omegahyph/srhyph.tex
%{_texmfdistdir}/tex/plain/omega/grlccode.tex
%{_texmfdistdir}/tex/plain/omega/omega.tex
%doc %{_texmfdistdir}/doc/omega/base/doc-1.8.tex
%doc %{_texmfdistdir}/doc/omega/base/torture.ps
%doc %{_texmfdistdir}/doc/omega/base/torture.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts omega tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19112 |21mr|texlive-omegaware-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-omegaware
Version:	20190327
Release:	1
Summary:	TeXLive omegaware package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/omegaware.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/omegaware.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-omegaware.bin

%description
TeXLive omegaware package.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/odvicopy.1*
%doc %{_texmfdistdir}/doc/man/man1/odvicopy.man1.pdf
%doc %{_mandir}/man1/odvitype.1*
%doc %{_texmfdistdir}/doc/man/man1/odvitype.man1.pdf
%doc %{_mandir}/man1/ofm2opl.1*
%doc %{_texmfdistdir}/doc/man/man1/ofm2opl.man1.pdf
%doc %{_mandir}/man1/opl2ofm.1*
%doc %{_texmfdistdir}/doc/man/man1/opl2ofm.man1.pdf
%doc %{_mandir}/man1/otangle.1*
%doc %{_texmfdistdir}/doc/man/man1/otangle.man1.pdf
%doc %{_mandir}/man1/otp2ocp.1*
%doc %{_texmfdistdir}/doc/man/man1/otp2ocp.man1.pdf
%doc %{_mandir}/man1/outocp.1*
%doc %{_texmfdistdir}/doc/man/man1/outocp.man1.pdf
%doc %{_mandir}/man1/ovf2ovp.1*
%doc %{_texmfdistdir}/doc/man/man1/ovf2ovp.man1.pdf
%doc %{_mandir}/man1/ovp2ovf.1*
%doc %{_texmfdistdir}/doc/man/man1/ovp2ovf.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19113 |21mr|texlive-onlyamsmath-0.20-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25006
# category Package
# catalog-ctan /macros/latex/contrib/onlyamsmath
# catalog-date 2012-01-02 14:24:13 +0100
# catalog-license lppl
# catalog-version 0.10
Name:		texlive-onlyamsmath
Version:	0.20
Release:	2
Summary:	Inhibit use of non-amsmath mathematics markup when using amsmath
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/onlyamsmath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/onlyamsmath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/onlyamsmath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/onlyamsmath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package inhibits the usage of plain TeX and (on demand) of
standard LaTeX mathematics environments. This is useful for
class writers who want to encourage their users to use the
environments provided by the amsmath package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/onlyamsmath/onlyamsmath.sty
%doc %{_texmfdistdir}/doc/latex/onlyamsmath/ChangeLog
%doc %{_texmfdistdir}/doc/latex/onlyamsmath/Makefile
%doc %{_texmfdistdir}/doc/latex/onlyamsmath/README
%doc %{_texmfdistdir}/doc/latex/onlyamsmath/onlyamsmath-v.tex
%doc %{_texmfdistdir}/doc/latex/onlyamsmath/onlyamsmath.pdf
%doc %{_texmfdistdir}/doc/latex/onlyamsmath/onlyamsmathtest.tex
#- source
%doc %{_texmfdistdir}/source/latex/onlyamsmath/onlyamsmath.dtx
%doc %{_texmfdistdir}/source/latex/onlyamsmath/onlyamsmath.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19114 |21mr|texlive-onrannual-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17474
# category Package
# catalog-ctan /macros/latex/contrib/onrannual
# catalog-date 2010-03-20 01:12:30 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-onrannual
Version:	1.1
Release:	7
Summary:	Class for Office of Naval Research Ocean Battlespace Sensing annual report
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/onrannual
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/onrannual.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/onrannual.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is an unofficial document class for writing ONR annual
reports using LaTeX; as ONR has had numerous problems with
LaTeX-generated PDF submissions in the past. A skeleton
document (and its PDF output) are included.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/onrannual/onrannual.cls
%doc %{_texmfdistdir}/doc/latex/onrannual/README
%doc %{_texmfdistdir}/doc/latex/onrannual/sample.bib
%doc %{_texmfdistdir}/doc/latex/onrannual/samplefigure.eps
%doc %{_texmfdistdir}/doc/latex/onrannual/samplefigure.pdf
%doc %{_texmfdistdir}/doc/latex/onrannual/skeleton.pdf
%doc %{_texmfdistdir}/doc/latex/onrannual/skeleton.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19115 |21mr|texlive-opcit-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/opcit
# catalog-date 2006-09-21 21:56:41 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-opcit
Version:	1.1
Release:	7
Summary:	Footnote-style bibliographical references
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/opcit
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/opcit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/opcit.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/opcit.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package addresses the problem of expressing citations in a
style that is natural for humanities studies, yet does not
interfere with the flow of text (as author-year styles do). The
package differs from footbib in that it uses real footnotes,
potentially in the same series as any of the document's other
footnotes. Opcit also, as its name implies, avoids repetition
of full citations, achieving this, to a large extent,
automatically.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/opcit/opcit.bst
%{_texmfdistdir}/tex/latex/opcit/opcit.sty
%doc %{_texmfdistdir}/doc/latex/opcit/README
%doc %{_texmfdistdir}/doc/latex/opcit/opcit.pdf
#- source
%doc %{_texmfdistdir}/source/latex/opcit/opcit.dtx
%doc %{_texmfdistdir}/source/latex/opcit/opcit.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19116 |21mr|texlive-opteng-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27331
# category Package
# catalog-ctan /macros/latex/contrib/opteng
# catalog-date 2012-06-16 14:32:26 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-opteng
Version:	1.0
Release:	6
Summary:	SPIE Optical Engineering and OE Letters manuscript template
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/opteng
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/opteng.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/opteng.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
With this template, and associated style and LaTeX packages, it
is possible to estimate the page length of manuscripts for
submission to the SPIE journals 'Optical Engineering' and
'Optical Engineering Letters'. With a strict three-page limit,
this is particularly important for the latter. The template
gives simple instructions on how to prepare the manuscript.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/opteng/opteng.sty
%doc %{_texmfdistdir}/doc/latex/opteng/OptEngInstruct.pdf
%doc %{_texmfdistdir}/doc/latex/opteng/OptEngInstruct.tex
%doc %{_texmfdistdir}/doc/latex/opteng/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19117 |21mr|texlive-optidef-3.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Name:		texlive-optidef
Version:	3.1
Release:	4
Summary:	Environments for writing optimization problems
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/optidef
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/optidef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/optidef.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small library provides a standard set of environments for
writing optimization problems. It automatically aligns the
problems in three points with an optional fourth: Beginning of
the words "minimize/argmin" and "subject to" The objective
function and the longest left hand side of the constraints. The
$= | > | <$ signs of the constraints. Optionally, the user can
add manually a double align character && to align some common
constraints feature. A clear example could be the constraints
names, e.g. (boundary constraint) alignment with (dynamic
constraint). Furthermore, it provides an easy interface to
define optimization problem for three different reference
situations: Where no equation is referenced/numbered. Where the
problem is referenced with a single number. Where each equation
has an individual reference. Finally, it also allows a
definition of any optimization problem without a limitless
number of constraints.


#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/optidef/
%{_texmfdistdir}/tex/latex/optidef/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19118 |21mr|texlive-optional-2.2b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18131
# category Package
# catalog-ctan /macros/latex/contrib/optional
# catalog-date 2010-05-11 12:50:01 +0200
# catalog-license lppl
# catalog-version 2.2b
Name:		texlive-optional
Version:	2.2b
Release:	7
Summary:	Facilitate optional printing of parts of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/optional
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/optional.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/optional.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Optional provides simple, flexible, optional compilation of
LaTeX documents. Option switches may be given via package
options, by the \UseOption command, or interactively via the
\AskOption command (help text may be provided, by defining the
\ExplainOptions command). The package is not robust, in the way
that comment package is, against ill-behaved text. In
particular, verbatim text may not be directly included in
optional sections (whether they're included or not).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/optional/optional.sty
%doc %{_texmfdistdir}/doc/latex/optional/optional.pdf
%doc %{_texmfdistdir}/doc/latex/optional/optional.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19119 |21mr|texlive-options-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 50941
# category Package
# catalog-ctan /macros/latex/contrib/options
# catalog-date 2016-06-24 19:18:15 +0200
# catalog-license LPPL1.3
# catalog-version 1.0
Name:		texlive-options
Version:	1.0
Release:	4
Summary:	Provides convenient key-value options for LaTeX package writers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/options
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/options.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/options.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The options package provides easy to use key-value options for
LaTeX package writers. It has a similar interface as pgfkeys
with path options but comes with more built-in data types and
more convenient support for families and searching.


#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/options/
%{_texmfdistdir}/tex/latex/options/


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19120 |21mr|texlive-ordinalpt-2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ordinalpt
# catalog-date 2007-02-25 09:43:45 +0100
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-ordinalpt
Version:	2.1
Release:	7
Summary:	Counters as ordinal numbers in Portuguese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ordinalpt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ordinalpt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ordinalpt.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ordinalpt.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a counter style (like \arabic, \alph and
others) which produces as output strings like "primeiro"
("first" in Portuguese), "segundo" (second), and so on up to
1999th. Separate counter commands are provided for different
letter case variants, and for masculine and feminine gender
inflections.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ordinalpt/ordinalpt.sty
%doc %{_texmfdistdir}/doc/latex/ordinalpt/README
%doc %{_texmfdistdir}/doc/latex/ordinalpt/ordinalpt.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ordinalpt/ordinalpt.dtx
%doc %{_texmfdistdir}/source/latex/ordinalpt/ordinalpt.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19121 |21mr|texlive-othello-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/othello
# catalog-date 2012-06-09 18:05:07 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-othello
Version:	20190228
Release:	1
Summary:	Modification of a Go package to create othello boards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/othello
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/othello.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/othello.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package (based on Kolodziejska's go), and fonts (as Metafont
source) are provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/othello/ot.mf
%{_texmfdistdir}/fonts/source/public/othello/ot10.mf
%{_texmfdistdir}/fonts/source/public/othello/ot15.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1bla10.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1bla15.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1bla20.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1black.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1neu.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1neu10.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1neu15.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1neu20.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1whi10.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1whi15.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1whi20.mf
%{_texmfdistdir}/fonts/source/public/othello/ot1white.mf
%{_texmfdistdir}/fonts/tfm/public/othello/ot10.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot15.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1bla10.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1bla15.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1bla20.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1neu10.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1neu15.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1neu20.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1whi10.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1whi15.tfm
%{_texmfdistdir}/fonts/tfm/public/othello/ot1whi20.tfm
%{_texmfdistdir}/tex/latex/othello/othello.sty
%doc %{_texmfdistdir}/doc/latex/othello/boards.tex
%doc %{_texmfdistdir}/doc/latex/othello/ot.bat
%doc %{_texmfdistdir}/doc/latex/othello/ot1.bat.bat
%doc %{_texmfdistdir}/doc/latex/othello/othello.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19122 |21mr|texlive-othelloboard-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23714
# category Package
# catalog-ctan /macros/latex/contrib/othelloboard
# catalog-date 2011-08-19 08:35:26 +0200
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-othelloboard
Version:	1.2
Release:	7
Summary:	Typeset Othello (Reversi) diagrams of any size, with annotations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/othelloboard
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/othelloboard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/othelloboard.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to generate high-quality Othello
(also known as Reversi) board diagrams of any size. The
diagrams support annotations, including full game transcripts.
Automated board or transcript creation, from plain text formats
standard to WZebra (and other programs) is also supported.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/othelloboard/othelloboard.sty
%doc %{_texmfdistdir}/doc/latex/othelloboard/README
%doc %{_texmfdistdir}/doc/latex/othelloboard/example-rose-chps1-2.pdf
%doc %{_texmfdistdir}/doc/latex/othelloboard/example-rose-chps1-2.tex
%doc %{_texmfdistdir}/doc/latex/othelloboard/othelloboard.pdf
%doc %{_texmfdistdir}/doc/latex/othelloboard/othelloboard.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19123 |21mr|texlive-otibet-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-otibet
Version:	20190228
Release:	1
Summary:	TeXLive otibet package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/otibet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/otibet.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/otibet.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive otibet package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/ofm/public/otibet
%{_texmfdistdir}/fonts/ovf/public/otibet
%{_texmfdistdir}/fonts/ovp/public/otibet
%{_texmfdistdir}/fonts/source/public/otibet
%{_texmfdistdir}/fonts/tfm/public/otibet
%{_texmfdistdir}/omega/ocp/otibet
%{_texmfdistdir}/omega/otp/otibet
%{_texmfdistdir}/tex/latex/otibet
%doc %{_texmfdistdir}/doc/latex/otibet
#- source
%doc %{_texmfdistdir}/source/latex/otibet

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts omega tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19124 |21mr|texlive-outline-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18360
# category Package
# catalog-ctan /macros/latex/contrib/outline
# catalog-date 2010-05-19 18:21:51 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-outline
Version:	20190228
Release:	1
Summary:	List environment for making outlines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/outline
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outline.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outline.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines an outline environment, which provides
facilities similar to enumerate, but up to 6 levels deep.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/outline/outline.sty
%doc %{_texmfdistdir}/doc/latex/outline/README
%doc %{_texmfdistdir}/doc/latex/outline/outline-sample.tex
%doc %{_texmfdistdir}/doc/latex/outline/outline.pdf
%doc %{_texmfdistdir}/doc/latex/outline/outline.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19125 |21mr|texlive-outliner-0.94-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-outliner
Version:	0.94
Release:	2
Epoch:		1
Summary:	Change section levels easily
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/outliner
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outliner.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outliner.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Allows you to write "\Level 2 {Some heading}" instead of the
usual \section stuff; the definitions of the levels can then
easily be changed. There is a mechanism for shifting all
levels. This makes it easy to bundle existing articles into a
compilation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/outliner
%doc %{_texmfdistdir}/doc/latex/outliner

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19126 |21mr|texlive-outlines-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25192
# category Package
# catalog-ctan /macros/latex/contrib/outlines
# catalog-date 2012-01-24 12:03:36 +0100
# catalog-license noinfo
# catalog-version 1.1
Name:		texlive-outlines
Version:	1.1
Release:	6
Summary:	Produce "outline" lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/outlines
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outlines.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outlines.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines an outline environment, which allows outline-style
indented lists with freely mixed levels up to four levels deep.
It replaces the nested begin/end pairs by different item tags
\1 to \4 for each nesting level. This is very convenient in
cases where nested lists are used a lot, such as for to-do
lists or presentation slides.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/outlines/outlines.sty
%doc %{_texmfdistdir}/doc/latex/outlines/README
%doc %{_texmfdistdir}/doc/latex/outlines/outlines.pdf
%doc %{_texmfdistdir}/doc/latex/outlines/outlines.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19127 |21mr|texlive-outlining-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 45601
# category Package
# catalog-ctan /macros/latex/contrib/outlining
# catalog-date 2017-10-27 05:58:14 +0200
# catalog-license LPPL1.3
# catalog-version 0.1
Name:		texlive-outlining
Version:	0.1
Release:	2
Summary:	Create outlines for scientific documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/outlining
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outlining.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outlining.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/outlining.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Every scientifc document requires outlining before it is
written. This package adds simple macros for your LaTeX
document.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/outlining/
%{_texmfdistdir}/tex/latex/outlining/
%{_texmfdistdir}/source/latex/outlining/

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19128 |21mr|texlive-overpic-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-overpic
Version:	1.2
Release:	1
Summary:	Combine LaTeX commands over included graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/overpic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/overpic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/overpic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The overpic environment is a cross between the LaTeX picture
environment and the \includegraphics command of graphicx. The
resulting picture environment has the same dimensions as the
included eps graphic. LaTeX commands can be placed on the
graphic at defined positions. A grid for orientation is
available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/overpic
%doc %{_texmfdistdir}/doc/latex/overpic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19129 |21mr|texlive-pagecolor-1.0i-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25500
# category Package
# catalog-ctan /macros/latex/contrib/pagecolor
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl
# catalog-version 1.0e
Name:		texlive-pagecolor
Version:	1.0i
Release:	2
Summary:	Interrogate page colour
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pagecolor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagecolor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagecolor.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagecolor.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the command \thepagecolor, which gives
the current page (background) colour, i. e. the argument used
with the most recent call of \pagecolor{...}. The command
\thepagecolornone gives the same colour as \thepagecolor,
except when the page background colour is "none" (e.g., as a
result of using the \nopagecolor command). In that case
\thepagecolor is "white" and \thepagecolornone is "none".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pagecolor/pagecolor.sty
%doc %{_texmfdistdir}/doc/latex/pagecolor/README
%doc %{_texmfdistdir}/doc/latex/pagecolor/pagecolor-example.pdf
%doc %{_texmfdistdir}/doc/latex/pagecolor/pagecolor-example.tex
%doc %{_texmfdistdir}/doc/latex/pagecolor/pagecolor.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pagecolor/pagecolor.drv
%doc %{_texmfdistdir}/source/latex/pagecolor/pagecolor.dtx
%doc %{_texmfdistdir}/source/latex/pagecolor/pagecolor.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19130 |21mr|texlive-pagecont-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pagecont
# catalog-date 2009-11-10 09:17:41 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-pagecont
Version:	1.0
Release:	7
Summary:	Page numbering that continues between documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pagecont
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagecont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagecont.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagecont.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the facility that several documents can be
typeset independently with page numbers in sequence, as if they
were a single document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pagecont/pagecont.sty
%doc %{_texmfdistdir}/doc/latex/pagecont/README
%doc %{_texmfdistdir}/doc/latex/pagecont/pagecont.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pagecont/pagecont.dtx
%doc %{_texmfdistdir}/source/latex/pagecont/pagecont.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19131 |21mr|texlive-pagenote-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pagenote
# catalog-date 2009-09-03 13:00:14 +0200
# catalog-license lppl1.3
# catalog-version 1.1a
Name:		texlive-pagenote
Version:	1.1a
Release:	7
Summary:	Notes at end of document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pagenote
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagenote.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagenote.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagenote.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The pagenote package provides tagged notes on a separate page
(also known as 'end notes'). Unless the memoir class is used,
the package requires the ifmtarg package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pagenote/pagenote.sty
%doc %{_texmfdistdir}/doc/latex/pagenote/README
%doc %{_texmfdistdir}/doc/latex/pagenote/pagenote.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pagenote/pagenote.dtx
%doc %{_texmfdistdir}/source/latex/pagenote/pagenote.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19132 |21mr|texlive-pagerange-0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16915
# category Package
# catalog-ctan /macros/latex/contrib/pagerange
# catalog-date 2010-02-04 09:04:58 +0100
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-pagerange
Version:	0.5
Release:	7
Summary:	Flexible and configurable page range typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pagerange
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagerange.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pagerange.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a command \pagerange that typesets ranges
of page numbers, expanding them (e.g., adding first or large
page numbers) and standardising them.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pagerange/pagerange-guide.cfg
%{_texmfdistdir}/tex/latex/pagerange/pagerange.sty
%doc %{_texmfdistdir}/doc/latex/pagerange/README
%doc %{_texmfdistdir}/doc/latex/pagerange/pagerange-guide.pdf
%doc %{_texmfdistdir}/doc/latex/pagerange/pagerange-guide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19133 |21mr|texlive-pageslts-1.2f-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32720
# category Package
# catalog-ctan /macros/latex/contrib/pageslts
# catalog-date 2013-01-28 22:45:23 +0100
# catalog-license lppl1.3
# catalog-version 1.2b
Name:		texlive-pageslts
Version:	1.2f
Release:	2
Summary:	Variants of last page labels
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pageslts
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pageslts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pageslts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pageslts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package was designed as an extension of the lastpage
package -- as well as that package's LastPage label (created
\AtEndDocument) it adds a VeryLastPage (created
\AfterLastShipout). When more than one page numbering scheme is
in operation (as in a book class document with frontmatter),
the labels above do not give the total number of pages, so the
package also provides labels pagesLTS.<numbering scheme>, where
the numbering scheme is arabic, roman, etc. The package relies
on the undolabl package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pageslts/pageslts.sty
%doc %{_texmfdistdir}/doc/latex/pageslts/README
%doc %{_texmfdistdir}/doc/latex/pageslts/pageslts-example.pdf
%doc %{_texmfdistdir}/doc/latex/pageslts/pageslts-example.tex
%doc %{_texmfdistdir}/doc/latex/pageslts/pageslts.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pageslts/pageslts.drv
%doc %{_texmfdistdir}/source/latex/pageslts/pageslts.dtx
%doc %{_texmfdistdir}/source/latex/pageslts/pageslts.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19134 |21mr|texlive-palatino-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31835
# category Package
# catalog-ctan /fonts/urw/base35
# catalog-date 2012-06-06 22:57:48 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-palatino
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/palatino.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/palatino/config.upl
%{_texmfdistdir}/fonts/afm/adobe/palatino/pplb8a.afm
%{_texmfdistdir}/fonts/afm/adobe/palatino/pplbi8a.afm
%{_texmfdistdir}/fonts/afm/adobe/palatino/pplr8a.afm
%{_texmfdistdir}/fonts/afm/adobe/palatino/pplri8a.afm
%{_texmfdistdir}/fonts/afm/urw/palatino/uplb8a.afm
%{_texmfdistdir}/fonts/afm/urw/palatino/uplbi8a.afm
%{_texmfdistdir}/fonts/afm/urw/palatino/uplr8a.afm
%{_texmfdistdir}/fonts/afm/urw/palatino/uplri8a.afm
%{_texmfdistdir}/fonts/map/dvips/palatino/upl.map
%{_texmfdistdir}/fonts/tfm/adobe/palatino/eurbo10.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/eurmo10.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb9c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb9d.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb9e.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb9o.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplb9t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi9c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi9d.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi9e.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi9o.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbi9t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbij8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbj8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbo.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbo7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbo8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbo8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbo8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbu.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplbu8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr8rn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr9c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr9d.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr9e.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr9o.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplr9t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrc.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrc8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrc9d.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrc9e.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrc9o.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrc9t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri9c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri9d.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri9e.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri9o.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplri9t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrij8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplro.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplro7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplro8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplro8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplro8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrr8re.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrre.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplrrn.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplru.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/pplru8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/zppleb7m.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/zppleb7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/zppleb7y.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/zppler7m.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/zppler7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/zppler7v.tfm
%{_texmfdistdir}/fonts/tfm/adobe/palatino/zppler7y.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplb7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplb8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplb8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplb8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbi7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbi8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbi8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbi8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbo7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbo8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbo8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplbo8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplr7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplr8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplr8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplr8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplrc7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplrc8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplri7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplri8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplri8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplri8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplro7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplro8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplro8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/palatino/uplro8t.tfm
%{_texmfdistdir}/fonts/type1/urw/palatino/uplb8a.pfb
%{_texmfdistdir}/fonts/type1/urw/palatino/uplb8a.pfm
%{_texmfdistdir}/fonts/type1/urw/palatino/uplbi8a.pfb
%{_texmfdistdir}/fonts/type1/urw/palatino/uplbi8a.pfm
%{_texmfdistdir}/fonts/type1/urw/palatino/uplr8a.pfb
%{_texmfdistdir}/fonts/type1/urw/palatino/uplr8a.pfm
%{_texmfdistdir}/fonts/type1/urw/palatino/uplri8a.pfb
%{_texmfdistdir}/fonts/type1/urw/palatino/uplri8a.pfm
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb8c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb8t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb9c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb9d.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb9e.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb9o.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplb9t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbc.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi8c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi8t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi9c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi9d.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi9e.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi9o.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbi9t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbo.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbo7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbo8c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbo8t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplbu.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr8c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr8t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr9c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr9d.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr9e.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr9o.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplr9t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrc.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrc9d.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrc9e.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrc9o.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrc9t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri8c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri8t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri9c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri9d.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri9e.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri9o.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplri9t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplro.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplro7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplro8c.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplro8t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrre.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplrrn.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/pplru.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/zppleb7m.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/zppleb7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/zppleb7y.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/zppler7m.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/zppler7t.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/zppler7v.vf
%{_texmfdistdir}/fonts/vf/adobe/palatino/zppler7y.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplb7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplb8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplb8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplbc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplbc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplbi7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplbi8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplbi8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplbo7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplbo8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplbo8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplr7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplr8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplr8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplrc7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplrc8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplri7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplri8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplri8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplro7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplro8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/palatino/uplro8t.vf
%{_texmfdistdir}/tex/latex/palatino/8rupl.fd
%{_texmfdistdir}/tex/latex/palatino/omlupl.fd
%{_texmfdistdir}/tex/latex/palatino/omsupl.fd
%{_texmfdistdir}/tex/latex/palatino/ot1upl.fd
%{_texmfdistdir}/tex/latex/palatino/t1upl.fd
%{_texmfdistdir}/tex/latex/palatino/ts1upl.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19135 |21mr|texlive-paper-1.0l-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25802
# category Package
# catalog-ctan /macros/latex/contrib/paper
# catalog-date 2012-01-13 09:08:17 +0100
# catalog-license gpl
# catalog-version 1.0l
Name:		texlive-paper
Version:	1.0l
Release:	9
Summary:	Versions of article class, tuned for scholarly publications
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/paper
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paper.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paper.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A pair of classes derived from article, tuned for producing
papers for journals. The classes introduce new layout options
and font commands for sections/parts, and define a new keywords
environment, subtitle and institution commands for the title
section and new commands for revisions.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/paper/journal.cls
%{_texmfdistdir}/tex/latex/paper/journal.sty
%{_texmfdistdir}/tex/latex/paper/paper.cls
%{_texmfdistdir}/tex/latex/paper/paper.sty
%doc %{_texmfdistdir}/doc/latex/paper/README
%doc %{_texmfdistdir}/doc/latex/paper/install
%doc %{_texmfdistdir}/doc/latex/paper/journal1.tex
%doc %{_texmfdistdir}/doc/latex/paper/journal2.tex
%doc %{_texmfdistdir}/doc/latex/paper/local.tex
%doc %{_texmfdistdir}/doc/latex/paper/paper.pdf
%doc %{_texmfdistdir}/doc/latex/paper/testj.tex
%doc %{_texmfdistdir}/doc/latex/paper/testp.tex
#- source
%doc %{_texmfdistdir}/source/latex/paper/paper.drv
%doc %{_texmfdistdir}/source/latex/paper/paper.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19136 |21mr|texlive-papercdcase-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-papercdcase
Version:	20190228
Release:	1
Summary:	Origami-style folding paper CD case
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/papercdcase
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papercdcase.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papercdcase.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papercdcase.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements a LaTeX style file to produce origami-
style folding paper CD cases.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/papercdcase
%doc %{_texmfdistdir}/doc/latex/papercdcase
#- source
%doc %{_texmfdistdir}/source/latex/papercdcase

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19137 |21mr|texlive-papermas-1.0h-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23667
# category Package
# catalog-ctan /macros/latex/contrib/papermas
# catalog-date 2011-08-23 07:18:10 +0200
# catalog-license lppl1.3
# catalog-version 1.0h
Name:		texlive-papermas
Version:	1.0h
Release:	7
Summary:	Compute the mass of a printed version of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/papermas
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papermas.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papermas.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papermas.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package computes the number of sheets of paper used by, and
the mass of a document. This is useful (for example) when
calculating postal charges.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/papermas/papermas.sty
%doc %{_texmfdistdir}/doc/latex/papermas/README
%doc %{_texmfdistdir}/doc/latex/papermas/papermas-example.pdf
%doc %{_texmfdistdir}/doc/latex/papermas/papermas-example.tex
%doc %{_texmfdistdir}/doc/latex/papermas/papermas.pdf
#- source
%doc %{_texmfdistdir}/source/latex/papermas/papermas.drv
%doc %{_texmfdistdir}/source/latex/papermas/papermas.dtx
%doc %{_texmfdistdir}/source/latex/papermas/papermas.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19138 |21mr|texlive-papertex-1.2b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19230
# category Package
# catalog-ctan /macros/latex/contrib/papertex
# catalog-date 2010-06-30 22:56:10 +0200
# catalog-license lppl
# catalog-version 1.2b
Name:		texlive-papertex
Version:	1.2b
Release:	7
Summary:	Class for newspapers, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/papertex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papertex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papertex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/papertex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class allows LaTeX users to create a paperTeX newspaper.
The final document has a front page and as many inner pages as
desired. News items appear one after another and the user can
choose the number of columns, style and so on. The class allows
users to create newsletters too.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/papertex/papertex.cls
%doc %{_texmfdistdir}/doc/latex/papertex/CHANGES
%doc %{_texmfdistdir}/doc/latex/papertex/README
%doc %{_texmfdistdir}/doc/latex/papertex/example/example.pdf
%doc %{_texmfdistdir}/doc/latex/papertex/example/example.tex
%doc %{_texmfdistdir}/doc/latex/papertex/example/img/ireland.jpg
%doc %{_texmfdistdir}/doc/latex/papertex/example/img/weather/clouds.jpg
%doc %{_texmfdistdir}/doc/latex/papertex/example/img/weather/rain.jpg
%doc %{_texmfdistdir}/doc/latex/papertex/example/img/weather/sun.jpg
%doc %{_texmfdistdir}/doc/latex/papertex/papertex.pdf
#- source
%doc %{_texmfdistdir}/source/latex/papertex/papertex.dtx
%doc %{_texmfdistdir}/source/latex/papertex/papertex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19139 |21mr|texlive-paracol-1.35-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-paracol
Version:	1.35
Release:	1
Summary:	Multiple columns with texts "in parallel"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/paracol
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paracol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paracol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paracol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides yet another multi-column typesetting
mechanism by which you produce multi-column (e.g., bilingual)
document switching and sychronizing each corresponding part in
"parallel".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/paracol
%doc %{_texmfdistdir}/doc/latex/paracol
#- source
%doc %{_texmfdistdir}/source/latex/paracol

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19140 |21mr|texlive-paralist-2.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30992
# category Package
# catalog-ctan /macros/latex/contrib/paralist
# catalog-date 2013-06-13 19:52:23 +0200
# catalog-license lppl
# catalog-version 2.4
Name:		texlive-paralist
Version:	2.7
Release:	2
Summary:	Enumerate and itemize within paragraphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/paralist
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paralist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paralist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paralist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides enumerate and itemize environments that can be used
within paragraphs to format the items either as running text or
as separate paragraphs with a preceding number or symbol. Also
provides compacted versions of enumerate and itemize.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/paralist/paralist.sty
%doc %{_texmfdistdir}/doc/latex/paralist/README
%doc %{_texmfdistdir}/doc/latex/paralist/paralist.pdf
#- source
%doc %{_texmfdistdir}/source/latex/paralist/paralist.drv
%doc %{_texmfdistdir}/source/latex/paralist/paralist.dtx
%doc %{_texmfdistdir}/source/latex/paralist/paralist.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19141 |21mr|texlive-parallel-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/parallel
# catalog-date 2007-01-12 20:52:49 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-parallel
Version:	20190228
Release:	1
Summary:	Typeset parallel texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/parallel
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parallel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parallel.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parallel.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a parallel environment which allows two potentially
different texts to be typeset in two columns, while maintaining
alignment. The two columns may be on the same page, or on
facing pages. This arrangement of text is commonly used when
typesetting translations, but it can have value when comparing
any two texts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/parallel/parallel.sty
%doc %{_texmfdistdir}/doc/latex/parallel/example1.tex
%doc %{_texmfdistdir}/doc/latex/parallel/example2.tex
%doc %{_texmfdistdir}/doc/latex/parallel/parallel.pdf
%doc %{_texmfdistdir}/doc/latex/parallel/readme
#- source
%doc %{_texmfdistdir}/source/latex/parallel/parallel.drv
%doc %{_texmfdistdir}/source/latex/parallel/parallel.dtx
%doc %{_texmfdistdir}/source/latex/parallel/parallel.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19142 |21mr|texlive-paresse-4.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/paresse
# catalog-date 2013-02-16 13:58:07 +0100
# catalog-license lppl
# catalog-version 4.1
Name:		texlive-paresse
Version:	4.1
Release:	10
Summary:	Define simple macros for greek letters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/paresse
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paresse.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paresse.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/paresse.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines macros using SS to type greek letters. so
that the user may (for example) type SSa to get the effect of
$\alpha$.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/paresse/paresse.sty
%{_texmfdistdir}/tex/latex/paresse/paresseold.sto
%{_texmfdistdir}/tex/latex/paresse/paresseutf8.sto
%doc %{_texmfdistdir}/doc/latex/paresse/paresse-en.pdf
%doc %{_texmfdistdir}/doc/latex/paresse/paresse-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/paresse/paresse-ex-fr.pdf
%doc %{_texmfdistdir}/doc/latex/paresse/paresse-fr.pdf
%doc %{_texmfdistdir}/doc/latex/paresse/paresse.pdf
#- source
%doc %{_texmfdistdir}/source/latex/paresse/LISEZMOI
%doc %{_texmfdistdir}/source/latex/paresse/Makefile
%doc %{_texmfdistdir}/source/latex/paresse/README
%doc %{_texmfdistdir}/source/latex/paresse/paresse-TEST.zip
%doc %{_texmfdistdir}/source/latex/paresse/paresse-doc.dtx
%doc %{_texmfdistdir}/source/latex/paresse/paresse.dtx
%doc %{_texmfdistdir}/source/latex/paresse/paresse.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19143 |21mr|texlive-parnotes-3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-parnotes
Version:	3
Release:	3
Summary:	Notes after every paragraph (or elsewhere)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/parnotes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parnotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parnotes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the \parnote command. The notes are set as
(normal) running paragraphs; placement is at the end of each
paragraph, or manually, using the \parnotes command.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/parnotes
%doc %{_texmfdistdir}/doc/latex/parnotes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19144 |21mr|texlive-parrun-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/parrun
# catalog-date 2009-09-20 00:02:29 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-parrun
Version:	20180303
Release:	2
Summary:	Typesets (two) streams of text running parallel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/parrun
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parrun.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parrun.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parrun.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
For typesetting translated text and the original source,
parallel on the same page, one above the other.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/parrun/parrun.sty
%doc %{_texmfdistdir}/doc/latex/parrun/parrun.pdf
%doc %{_texmfdistdir}/doc/latex/parrun/readme
#- source
%doc %{_texmfdistdir}/source/latex/parrun/parrun.dtx
%doc %{_texmfdistdir}/source/latex/parrun/parrun.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19145 |21mr|texlive-parselines-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21475
# category Package
# catalog-ctan /macros/latex/contrib/parselines
# catalog-date 2011-02-19 16:41:47 +0100
# catalog-license lppl1.3
# catalog-version 1.4
Name:		texlive-parselines
Version:	1.4
Release:	7
Summary:	Apply a macro to each line of an environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/parselines
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parselines.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parselines.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parselines.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines an environment "parse lines" which
processes each line of an environment with a macro. An example
of shading the lines of an environment is given.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/parselines/parselines.sty
%doc %{_texmfdistdir}/doc/latex/parselines/README
%doc %{_texmfdistdir}/doc/latex/parselines/parselines.pdf
#- source
%doc %{_texmfdistdir}/source/latex/parselines/parselines.drv
%doc %{_texmfdistdir}/source/latex/parselines/parselines.dtx
%doc %{_texmfdistdir}/source/latex/parselines/parselines.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19146 |21mr|texlive-parskip-2.0c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19963
# category Package
# catalog-ctan /macros/latex/contrib/parskip
# catalog-date 2010-09-30 14:11:14 +0200
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-parskip
Version:	2.0c
Release:	1
Summary:	Layout with zero \parindent, non-zero \parskip
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/parskip
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parskip.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/parskip.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Simply changing \parskip and \parindent leaves a layout that is
untidy; this package (though it is no substitute for a
properly-designed class) helps alleviate this untidiness.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/parskip
%doc %{_texmfdistdir}/doc/latex/parskip


#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19147 |21mr|texlive-pas-cours-1.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pas-cours
Version:	1.6
Release:	2
Summary:	Macros useful in preparing teaching material
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pas-cours
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pas-cours.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pas-cours.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Several groups of macros cover different branches of
mathematics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pas-cours
%doc %{_texmfdistdir}/doc/latex/pas-cours

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19148 |21mr|texlive-pas-crosswords-1.03-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32313
# category Package
# catalog-ctan /macros/latex/contrib/pas-crosswords
# catalog-date 2013-12-03 15:28:55 +0100
# catalog-license lppl
# catalog-version 1.03
Name:		texlive-pas-crosswords
Version:	1.03
Release:	7
Summary:	Creating crossword grids, using TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pas-crosswords
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pas-crosswords.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pas-crosswords.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package produces crossword grids, using a wide variety of
colours and decorations of the grids and the text in them. The
package uses TikZ for its graphical output.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pas-crosswords/pas-crosswords.sty
%doc %{_texmfdistdir}/doc/latex/pas-crosswords/README
%doc %{_texmfdistdir}/doc/latex/pas-crosswords/pas-crosswords.pdf
%doc %{_texmfdistdir}/doc/latex/pas-crosswords/pas-crosswords.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19149 |21mr|texlive-pas-cv-2.01-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32263
# category Package
# catalog-ctan /macros/latex/contrib/pas-cv
# catalog-date 2013-11-27 22:13:58 +0100
# catalog-license lppl
# catalog-version 2.01
Name:		texlive-pas-cv
Version:	2.01
Release:	10
Summary:	Flexible typesetting of Curricula Vitae
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pas-cv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pas-cv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pas-cv.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the framework for typesetting a Curriculum
Vitae (composed in French), together with a number of "themes"
that may be used with the package. (The use of the themes may
be seen in the package's examples/ collection.) The author
hints that conversion for use with other languages (than
French) should be possible.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pas-cv/macro-andromede.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-architecte.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-centaure.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-dynamique.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-gaia.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-jupiter.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-mars.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-neptune.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-orion.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-pegase.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-pluton.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-saturne.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-univers.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-uranus.tex
%{_texmfdistdir}/tex/latex/pas-cv/macro-venus.tex
%{_texmfdistdir}/tex/latex/pas-cv/pas-cv.sty
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-andromede.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-andromede.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-architecte.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-architecte.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-centaure.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-centaure.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-dynamique.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-dynamique.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-gaia.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-gaia.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-jupiter.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-jupiter.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-mars.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-mars.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-neptune.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-neptune.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-orion.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-orion.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-pegase.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-pegase.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-pluton.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-pluton.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-saturne.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-saturne.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-univers.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-univers.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-uranus.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-uranus.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-venus.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/examples/cv-venus.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/pas-cv.pdf
%doc %{_texmfdistdir}/doc/latex/pas-cv/pas-cv.tex
%doc %{_texmfdistdir}/doc/latex/pas-cv/photo.png

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19150 |21mr|texlive-passivetex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/xmltex/contrib/passivetex
# catalog-date 2008-04-20 19:53:04 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-passivetex
Version:	20190228
Release:	1
Summary:	Support package for XML/SGML typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xmltex/contrib/passivetex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/passivetex.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
%rename passivetex

%description
Packages providing XML parsing, UTF-8 parsing, Unicode
entities, and common formatting object definitions for jadetex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xmltex/passivetex/dummyels.sty
%{_texmfdistdir}/tex/xmltex/passivetex/fotex.sty
%{_texmfdistdir}/tex/xmltex/passivetex/fotex.xmt
%{_texmfdistdir}/tex/xmltex/passivetex/mlnames.sty
%{_texmfdistdir}/tex/xmltex/passivetex/tei.xmt
%{_texmfdistdir}/tex/xmltex/passivetex/teiprintslides.xmt
%{_texmfdistdir}/tex/xmltex/passivetex/teislides.xmt
%{_texmfdistdir}/tex/xmltex/passivetex/teixml.sty
%{_texmfdistdir}/tex/xmltex/passivetex/teixmlslides.sty
%{_texmfdistdir}/tex/xmltex/passivetex/ucharacters.sty
%{_texmfdistdir}/tex/xmltex/passivetex/unicode.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19151 |21mr|texlive-pas-tableur-2.01-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pas-tableur
Version:	2.01
Release:	2
Summary:	Create a spreadsheet layout
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pas-tableur
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pas-tableur.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pas-tableur.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands for creating a grid of
rectangles, and commands for populating locations in the grid.
PGF/TikZ is used for placement and population of the cells.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pas-tableur
%doc %{_texmfdistdir}/doc/latex/pas-tableur

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19152 |21mr|texlive-patch-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-patch
Version:	20190228
Release:	1
Summary:	Patch loaded packages, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/misc/patch.doc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The package defines macros that allow patching of existing
commands, specifying those parts of the existing macro to be
replaced, along with the replacements. Thus it provides more
sophisticated manipulation than a package like patchcmd, which
only permits modification by adding commands at the beginning
or end of an existing definition. The package is distributed in
a relative of LaTeX doc format: it will run unmodified, though
it benefits from docstrip treatment.

#-----------------------------------------------------------------------
%files
#- source
%doc %{_texmfdistdir}/source/generic/patch

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19153 |21mr|texlive-patchcmd-1.05-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-patchcmd
Version:	1.05
Release:	4
Summary:	Change the definition of an existing command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/patchcmd
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patchcmd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patchcmd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patchcmd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The patchcmd package provides a command \patchcommand that can
be used to add material at the beginning and/or the end of the
replacement text of an existing macro. It works for macros with
any number of normal arguments, including those that were
defined with \DeclareRobustCommand.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/patchcmd
%doc %{_texmfdistdir}/doc/latex/patchcmd
#- source
%doc %{_texmfdistdir}/source/latex/patchcmd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19154 |21mr|texlive-patgen-2.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /obsolete/systems/knuth/unsupported/texware/patgen.web
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license knuth
# catalog-version 2.3
Name:		texlive-patgen
Epoch:		1
Version:	2.3
Release:	12
Summary:	Generate hyphenation patterns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/obsolete/systems/knuth/unsupported/texware/patgen.web
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patgen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patgen.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-patgen.bin

%description
This is the last version of the program distributed by Knuth;
it advertises itself as a pattern generator for "the algorithm
used in TeX", but, of course, the patterns used in modern
distributions are Unicode-based.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/patgen.1*
%doc %{_texmfdistdir}/doc/man/man1/patgen.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19155 |21mr|texlive-patgen2-tutorial-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16490
# category Package
# catalog-ctan /info/patgen2
# catalog-date 2009-12-24 15:14:53 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-patgen2-tutorial
Version:	20190228
Release:	1
Summary:	A tutorial on the use of Patgen 2
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/patgen2
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patgen2-tutorial.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/patgen2-tutorial.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This document describes the use of Patgen 2 to create
hyphenation patterns for wide ranges of languages.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/support/patgen2-tutorial/patgen2.pdf
%doc %{_texmfdistdir}/doc/support/patgen2-tutorial/patgen2.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19156 |21mr|texlive-path-3.05-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22045
# category Package
# catalog-ctan /macros/generic/path
# catalog-date 2011-04-07 22:08:26 +0200
# catalog-license other-free
# catalog-version 3.05
Name:		texlive-path
Version:	3.05
Release:	8
Summary:	Typeset paths, making them breakable
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/path
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/path.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/path.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a macro \path|...|, similar to the LaTeX \verb|...|,
that sets the text in typewriter font and allows hyphen-less
breaks at punctuation characters. The set of characters to be
regarded as punctuation may be changed from the package's
default.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/path/path.sty
%doc %{_texmfdistdir}/doc/generic/path/path-doc.pdf
%doc %{_texmfdistdir}/doc/generic/path/path-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19157 |21mr|texlive-pauldoc-0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16005
# category Package
# catalog-ctan /macros/latex/contrib/pauldoc
# catalog-date 2009-11-10 13:46:41 +0100
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-pauldoc
Version:	0.5
Release:	7
Summary:	German LaTeX package documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pauldoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pauldoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pauldoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pauldoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The pauldoc package provides helpers for German language
package documentation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pauldoc/pauldoc.sty
%doc %{_texmfdistdir}/doc/latex/pauldoc/README
%doc %{_texmfdistdir}/doc/latex/pauldoc/pauldoc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pauldoc/pauldoc.dtx
%doc %{_texmfdistdir}/source/latex/pauldoc/pauldoc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19158 |21mr|texlive-pawpict-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21629
# category Package
# catalog-ctan /macros/latex/contrib/pawpict
# catalog-date 2007-01-12 20:52:49 +0100
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-pawpict
Version:	1.0
Release:	7
Summary:	Using graphics from PAW
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pawpict
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pawpict.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pawpict.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pawpict.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Support for the easy inclusion of graphics made by PAW (Physics
Analysis Workstation). You need to have PAW installed on your
system to benefit from this package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pawpict/pawpict.sty
%doc %{_texmfdistdir}/doc/latex/pawpict/README
#- source
%doc %{_texmfdistdir}/source/latex/pawpict/pawpict.dtx
%doc %{_texmfdistdir}/source/latex/pawpict/pawpict.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19159 |21mr|texlive-pax-0.1l-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pax
Version:	0.1l
Release:	3
Summary:	Extract and reinsert PDF annotations with pdfTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pax/pax-tds.zip
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pax.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pax.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pax.source.tar.xz
BuildArch:	noarch
BuildRequires:	javapackages-tools
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pax.bin = %{EVRD}

%description
If PDF files are included using pdfTeX, PDF annotations are
stripped. The pax project offers a solution without altering
pdfTeX. A Java program (pax.jar) parses the PDF file that will
later be included. The program then writes the data of the
annotations into a file that can be read by TeX. The LaTeX
package pax extends the graphics package to support the scheme:
if a PDF file is included, the package looks for the file with
the annotation data, reads them and puts the annotations in the
right place. Project status: experimental.

#-----------------------------------------------------------------------
%files
%{_bindir}/pdfannotextractor
%{_javadir}/pax.jar
%{_texmfdistdir}/scripts/pax/pax.jar
%{_texmfdistdir}/scripts/pax/pdfannotextractor.pl
%{_texmfdistdir}/tex/latex/pax/pax.sty
%doc %{_texmfdistdir}/doc/latex/pax/README
#- source
%doc %{_texmfdistdir}/source/latex/pax/build.xml
%doc %{_texmfdistdir}/source/latex/pax/license/LaTeX/lppl.txt
%doc %{_texmfdistdir}/source/latex/pax/license/PDFAnnotExtractor/gpl.txt
%doc %{_texmfdistdir}/source/latex/pax/src/Constants.java
%doc %{_texmfdistdir}/source/latex/pax/src/Entry.java
%doc %{_texmfdistdir}/source/latex/pax/src/EntryWriteException.java
%doc %{_texmfdistdir}/source/latex/pax/src/MANIFEST.MF
%doc %{_texmfdistdir}/source/latex/pax/src/PDFAnnotExtractor.java
%doc %{_texmfdistdir}/source/latex/pax/src/StringVisitor.java

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pax/pdfannotextractor.pl pdfannotextractor
popd
mkdir -p %{buildroot}%{_javadir}
pushd %{buildroot}%{_javadir}
    ln -sf %{_texmfdistdir}/scripts/pax/pax.jar pax.jar
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19160 |21mr|texlive-pb-diagram-5.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pb-diagram
# catalog-date 2008-04-20 19:53:04 +0200
# catalog-license other-free
# catalog-version 5.0
Name:		texlive-pb-diagram
Version:	5.0
Release:	7
Summary:	A commutative diagram package using LAMSTeX or Xy-pic fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pb-diagram
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pb-diagram.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pb-diagram.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive pb-diagram package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pb-diagram/lamsarrow.sty
%{_texmfdistdir}/tex/latex/pb-diagram/pb-diagram.sty
%{_texmfdistdir}/tex/latex/pb-diagram/pb-lams.sty
%{_texmfdistdir}/tex/latex/pb-diagram/pb-xy.sty
%doc %{_texmfdistdir}/doc/latex/pb-diagram/COPYING
%doc %{_texmfdistdir}/doc/latex/pb-diagram/README
%doc %{_texmfdistdir}/doc/latex/pb-diagram/pb-examples.tex
%doc %{_texmfdistdir}/doc/latex/pb-diagram/pb-manual.pdf
%doc %{_texmfdistdir}/doc/latex/pb-diagram/pb-manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19161 |21mr|texlive-pbox-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24807
# category Package
# catalog-ctan /macros/latex/contrib/pbox
# catalog-date 2011-12-08 01:39:40 +0100
# catalog-license gpl2
# catalog-version 1.2
Name:		texlive-pbox
Version:	1.2
Release:	7
Summary:	A variable-width \parbox command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pbox
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a command \pbox{<max width>}{<text>} which adjusts its
width to that of the enclosed text, up to the maximum width
given. The package also defines some associated length
commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pbox/pbox.sty
%doc %{_texmfdistdir}/doc/latex/pbox/AUTHORS
%doc %{_texmfdistdir}/doc/latex/pbox/COPYING
%doc %{_texmfdistdir}/doc/latex/pbox/ChangeLog
%doc %{_texmfdistdir}/doc/latex/pbox/INSTALL
%doc %{_texmfdistdir}/doc/latex/pbox/Makefile
%doc %{_texmfdistdir}/doc/latex/pbox/README
%doc %{_texmfdistdir}/doc/latex/pbox/pbox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pbox/pbox.drv
%doc %{_texmfdistdir}/source/latex/pbox/pbox.dtx
%doc %{_texmfdistdir}/source/latex/pbox/pbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19162 |21mr|texlive-pbsheet-0.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24830
# category Package
# catalog-ctan /macros/latex/contrib/pbsheet
# catalog-date 2007-01-12 23:55:10 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-pbsheet
Version:	0.1
Release:	8
Summary:	Problem sheet class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pbsheet
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pbsheet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pbsheet.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pbsheet.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
This class is designed to simplify the typesetting of problem
sheets with Mathematics and Computer Science content. It is
currently customised towards teaching in French (and the
examples are in French).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pbsheet/pbsheet.cls
%doc %{_texmfdistdir}/doc/latex/pbsheet/LPPL
%doc %{_texmfdistdir}/doc/latex/pbsheet/README
%doc %{_texmfdistdir}/doc/latex/pbsheet/pbsheet.pdf
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/GNUmakefile
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/img/simbin.eps
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/img/simbin.pdf
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/pbsheet.cls
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/pgm/probadis.m
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/pgm/rdiscr.m
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/pgm/rint.m
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/pgm/simbin.m
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/xpl-fr.bib
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/xpl-fr.dvi
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/xpl-fr.pdf
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/xpl-fr.ps
%doc %{_texmfdistdir}/doc/latex/pbsheet/xpl/xpl-fr.tex
#- source
%doc %{_texmfdistdir}/source/latex/pbsheet/pbsheet.dtx
%doc %{_texmfdistdir}/source/latex/pbsheet/pbsheet.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19163 |21mr|texlive-pdf14-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17583
# category Package
# catalog-ctan /macros/latex/contrib/pdf14
# catalog-date 2010-03-31 12:36:09 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-pdf14
Version:	0.1
Release:	7
Summary:	Restore PDF 1.4 to a TeX live 2010 format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdf14
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdf14.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdf14.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdf14.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Starting with TeX Live 2010, the various formats that directly
generate PDF will default to generating PDF 1.5. This is
generally a good thing, but it can lead to compatibility issues
with some older PDF viewers. This package changes the version
of PDF generated with formats (based on pdfTeX or LuaTeX in PDF
mode), back to 1.4 for documents that need to achieve maximal
compatibility with old viewers.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdf14/pdf14.sty
%doc %{_texmfdistdir}/doc/latex/pdf14/README
%doc %{_texmfdistdir}/doc/latex/pdf14/pdf14.pdf
%doc %{_texmfdistdir}/doc/latex/pdf14/test-pdf14.tex
#- source
%doc %{_texmfdistdir}/source/latex/pdf14/Makefile
%doc %{_texmfdistdir}/source/latex/pdf14/pdf14.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19164 |21mr|texlive-pdfcomment-2.4a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfcomment
Version:	2.4a
Release:	1
Summary:	A user-friendly interface to pdf annotations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfcomment
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfcomment.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfcomment.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
For a long time pdfLaTeX has offered the command \pdfannot for
inserting arbitrary PDF annotations. However, the command is
presented in a form where additional knowledge of the
definition of the PDF format is indispensable. This package is
an answer to the - occasional - questions in newsgroups, about
how one could use the comment function of Adobe Reader. At
least for the writer of LaTeX code, the package offers a
convenient and user-friendly means of using \pdfannot to
provide comments in PDF files. Since version v1.1,
pdfcomment.sty also supports LaTeX - dvips - ps2pdf, LaTeX -
dvipdfmx, and XeLaTeX. Unfortunately, support of PDF
annotations by PDF viewers is sparse to nonexistent. The
reference viewer for the development of this package is Adobe
Reader.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfcomment/pdfcomment.sty
%doc %{_texmfdistdir}/doc/latex/pdfcomment/CHANGES
%doc %{_texmfdistdir}/doc/latex/pdfcomment/INSTALL
%doc %{_texmfdistdir}/doc/latex/pdfcomment/README.md
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example.pdf
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example.tex
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example_latex_dvipdfmx.pdf
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example_latex_dvipdfmx.tex
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.pdf
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example_latex_dvips_ps2pdf.tex
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example_math_markup.pdf
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example_math_markup.tex
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example_xelatex.pdf
%doc %{_texmfdistdir}/doc/latex/pdfcomment/example_xelatex.tex
%doc %{_texmfdistdir}/doc/latex/pdfcomment/manifest.txt
%doc %{_texmfdistdir}/doc/latex/pdfcomment/pdfcomment.pdf
%doc %{_texmfdistdir}/doc/latex/pdfcomment/pdfcomment.tex
%doc %{_texmfdistdir}/doc/latex/pdfcomment/pdfcomment_de.pdf
%doc %{_texmfdistdir}/doc/latex/pdfcomment/pdfcomment_de.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19165 |21mr|texlive-pdfcprot-1.7a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18735
# category Package
# catalog-ctan /macros/latex/contrib/pdfcprot
# catalog-date 2006-12-18 23:50:36 +0100
# catalog-license lppl
# catalog-version 1.7a
Name:		texlive-pdfcprot
Version:	1.7a
Release:	7
Summary:	Activating and setting of character protruding using pdflatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfcprot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfcprot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfcprot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfcprot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides an easy interface to adjust the character
protrusion for different fonts and choosing the right
adjustment automatically depending on the font.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfcprot/pdfcprot.sty
%{_texmfdistdir}/tex/latex/pdfcprot/pplmnOT1.cpa
%{_texmfdistdir}/tex/latex/pdfcprot/pplmnOT2.cpa
%{_texmfdistdir}/tex/latex/pdfcprot/pplmnT1.cpa
%{_texmfdistdir}/tex/latex/pdfcprot/pplmnT2A.cpa
%{_texmfdistdir}/tex/latex/pdfcprot/pplmnTS1.cpa
%doc %{_texmfdistdir}/doc/latex/pdfcprot/00CONTEN
%doc %{_texmfdistdir}/doc/latex/pdfcprot/00README
%doc %{_texmfdistdir}/doc/latex/pdfcprot/INSTALL.txt
%doc %{_texmfdistdir}/doc/latex/pdfcprot/LEGAL.txt
%doc %{_texmfdistdir}/doc/latex/pdfcprot/Makefile.unx
%doc %{_texmfdistdir}/doc/latex/pdfcprot/README.txt
%doc %{_texmfdistdir}/doc/latex/pdfcprot/TODO
%doc %{_texmfdistdir}/doc/latex/pdfcprot/pdfcprot.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pdfcprot/pdfcprot.dtx
%doc %{_texmfdistdir}/source/latex/pdfcprot/pdfcprot.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19166 |21mr|texlive-pdfmarginpar-0.92-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23492
# category Package
# catalog-ctan /macros/latex/contrib/pdfmarginpar
# catalog-date 2011-08-10 11:12:20 +0200
# catalog-license gpl
# catalog-version 0.92
Name:		texlive-pdfmarginpar
Version:	0.92
Release:	7
Summary:	Generate marginpar-equivalent PDF annotations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfmarginpar
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfmarginpar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfmarginpar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the \pdfmarginpar command which is similar
in spirit to \marginpar. However, it creates PDF annotations
which may be viewed with Adobe Reader in place of marginal
texts. Small icons indicate the in-text position where the
message originates, popups provide the messages themselves.
Thus bugfixes and other such communications are clearly visible
together when viewing the document, while the document itself
is not obscured.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfmarginpar/pdfmarginpar.sty
%doc %{_texmfdistdir}/doc/latex/pdfmarginpar/README
%doc %{_texmfdistdir}/doc/latex/pdfmarginpar/pdfmarginpar.pdf
%doc %{_texmfdistdir}/doc/latex/pdfmarginpar/pdfmarginpar.tex
%doc %{_texmfdistdir}/doc/latex/pdfmarginpar/pdfmarginparexample.pdf
%doc %{_texmfdistdir}/doc/latex/pdfmarginpar/pdfmarginparexample.png
%doc %{_texmfdistdir}/doc/latex/pdfmarginpar/pdfmarginparexample.tex
%doc %{_texmfdistdir}/doc/latex/pdfmarginpar/pgfmanual-en-macros.tex
%doc %{_texmfdistdir}/doc/latex/pdfmarginpar/pgfplots-macros.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19167 |21mr|texlive-pdfoverlay-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfoverlay
Version:	1.1
Release:	2
Summary:	Memoir-based class for formatting University of Auckland theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfoverlay
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/pdfoverlay.doc.tar.xz  
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/pdfoverlay.source.tar.xz
Source2:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/pdfoverlay.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A memoir-based class for formatting University of Auckland
masters' and doctors' thesis dissertations in any discipline.
The title page does not handle short dissertations for
diplomas.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfoverlay
%{_texmfdistdir}/source/latex/pdfoverlay 
%doc %{_texmfdistdir}/doc/latex/pdfoverlay

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19168 |21mr|texlive-pdfpagediff-20160624-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfpagediff
Version:	20160624
Release:	1
Summary:	Find difference between two PDF's
Group:		Publishing
URL:		https://ctan.org/pkg/pdfpagediff
License:	LPPL1
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/pdfpagediff.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/pdfpagediff.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Find difference between two PDF's


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19169 |21mr|texlive-pdfpages-0.5l-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfpages
Version:	0.5l
Release:	2
Summary:	Include PDF documents in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfpages
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfpages.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfpages.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfpages.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-eso-pic

%description
This package simplifies the inclusion of external multi-page
PDF documents in LaTeX documents. Pages may be freely selected
and similar to psnup it is possible to put several logical
pages onto each sheet of paper. Furthermore a lot of hypertext
features like hyperlinks and article threads are provided. The
package supports pdfTeX (pdflatex) and VTeX. With VTeX it is
even possible to use this package to insert PostScript files,
in addition to PDF files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfpages
%doc %{_texmfdistdir}/doc/latex/pdfpages
#- source
%doc %{_texmfdistdir}/source/latex/pdfpages

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19170 |21mr|texlive-pdfpc-movie-20180723-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfpc-movie
Version:	20180723
Release:	1
Summary:	Pdfpc viewer-compatible hyperlinks to movies
Group:		Publishing
URL:		https://ctan.org/pkg/pdfpc-movie
License:	LPPL1.3c
Source0:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/pdfpc-movie.tar.xz
Source1:	http://mirrors.mi.ras.ru/CTAN/systems/texlive/tlnet/archive/pdfpc-movie.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX2e package provides a command \pdfpcmovie for embedding (hyperlinking) 
movies in a way compatible with the PDF Presenter Console (pdfpc), a GPL2-licensed multi-monitor 
PDF presentation viewer application available on GitHub and shipped with some LINUX distributions 
such as Debian, Fedora, and Arch. The package depends on etoolbox, hyperref, and pgfkeys.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19171 |21mr|texlive-pdfprivacy-20171205-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfprivacy
Version:	20171205
Release:	1
Summary:	A LaTeX package to remove or suppress pdf meta-data
Group:		Publishing
URL:		https://ctan.org/pkg/pdfprivacy
License:	LPPL1.3c
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/pdfprivacy.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/pdfprivacy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Creating pdfs with pdfLaTeX populates several pdf meta-data fields such as date/time of 
creation/modification, information about the LaTeX installation (e.g., pdfTeX version), 
and the relative paths of included pdfs. The pdfprivacy package provides support for emptying 
several of these pdf meta-data fields as well as suppressing some pdfTeX meta-data entries in the resulting pdf.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex
%doc %{_texmfdistdir}/doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19172 |21mr|texlive-pdfscreen-1.5-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27510
# category Package
# catalog-ctan /macros/latex/contrib/pdfscreen
# catalog-date 2012-07-18 20:44:29 +0200
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-pdfscreen
Version:	1.5
Release:	12
Summary:	Support screen-based document design
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfscreen
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfscreen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfscreen.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An extension of the hyperref package to provide a screen-based
document design. This package helps to generate pdf documents
that are readable on screen and will fit the screen's aspect
ratio. Also it can be used with various options to produce
regular print versions of the same document without any extra
effort.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfscreen/but.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/button.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/left.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay0.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay1.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay10.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay2.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay3.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay4.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay5.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay6.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay7.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay8.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/overlay9.pdf
%{_texmfdistdir}/tex/latex/pdfscreen/pdfscreen.sty
%{_texmfdistdir}/tex/latex/pdfscreen/right.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/logo.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/manual-print.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/manual-screen.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/manual.tex
%doc %{_texmfdistdir}/doc/latex/pdfscreen/nopanel.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/pdfscreen.cfg.specimen
%doc %{_texmfdistdir}/doc/latex/pdfscreen/portrait.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/print.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/slide.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/slide.tex
%doc %{_texmfdistdir}/doc/latex/pdfscreen/square.pdf
%doc %{_texmfdistdir}/doc/latex/pdfscreen/tex.png
%doc %{_texmfdistdir}/doc/latex/pdfscreen/widepanel.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19173 |21mr|texlive-pdfslide-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfslide
Version:	20190228
Release:	1
Summary:	Presentation slides using pdftex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfslide
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfslide.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfslide.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a package for use with pdftex, to make nice
presentation slides. Its aims are: to devise a method for
easier technical presentation; to help the mix of mathematical
formulae with text and graphics which the present day wysiwyg
tools fail to accomplish; to exploit the platform independence
of TeX so that presentation documents become portable; and to
offer the freedom and possibilities of using various
backgrounds and other embellishments that a user can imagine to
have in as presentation. The package can make use of the
facilities of the PPower4 post-processor.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfslide
%doc %{_texmfdistdir}/doc/latex/pdfslide

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19174 |21mr|texlive-pdfsync-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20373
# category Package
# catalog-ctan /macros/latex/contrib/pdfsync
# catalog-date 2010-11-08 21:04:31 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-pdfsync
Version:	20190228
Release:	1
Summary:	Provide links between source and PDF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfsync
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfsync.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfsync.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package runs with pdfTeX or XeTeX, and creates an auxiliary
file with geometrical information to permit references back and
forth between source and PDF, assuming a conforming editor and
PDF viewer.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfsync/pdfsync.sty
%doc %{_texmfdistdir}/doc/latex/pdfsync/README
%doc %{_texmfdistdir}/doc/latex/pdfsync/pdfsync-doc.pdf
%doc %{_texmfdistdir}/doc/latex/pdfsync/pdfsync-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19175 |21mr|texlive-pdftex-20200311-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdftex
Version:	20200311
Release:	4
Summary:	A TeX extension for direct creation of PDF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/pdftex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
BuildRequires:	texlive-tetex
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-pdftex.bin
Requires:	texlive-ini-files
Requires:	texlive-latexconfig

%description
An extension of TeX which can be configured to directly
generate PDF documents instead of DVI. All current free TeX
distributionsm including TeX live, MacTeX and MiKTeX include
pdfTeX (Plain TeX) and pdfLaTeX (LaTeX). ConTeXt was designed
around use of pdfTeX (though it is now migrating towards
LuaTeX).

%postun
if [ $1 -eq 0 ]; then
    rm -fr %{_texmfvardir}/fonts/map/pdftex
    rm -fr %{_texmfvardir}/web2c/pdftex
fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/pdftex
%{_texmfdistdir}/fonts/map/dvips/dummy-space/dummy-space.map
%{_texmfdistdir}/fonts/tfm/public/pdftex/dummy-space.tfm
%{_texmfdistdir}/fonts/type1/public/pdftex/dummy-space.pfb
%{_texmfdistdir}/scripts/simpdftex/simpdftex
%{_texmfdistdir}/tex/generic/config/pdftex-dvi.tex
%{_texmfdistdir}/tex/generic/pdftex/glyphtounicode.tex
%{_texmfdistdir}/tex/generic/pdftex/pdfcolor.tex
%_texmf_fmtutil_d/pdftex
%doc %{_mandir}/man1/pdfetex.1*
%doc %{_texmfdistdir}/doc/man/man1/pdfetex.man1.pdf
%doc %{_mandir}/man1/pdftex.1*
%doc %{_texmfdistdir}/doc/man/man1/pdftex.man1.pdf
%doc %{_texmfdistdir}/doc/pdftex/NEWS
%doc %{_texmfdistdir}/doc/pdftex/README
%doc %{_texmfdistdir}/doc/pdftex/samplepdftex/
%doc %{_texmfdistdir}/doc/pdftex/tests/
%doc %{_texmfdistdir}/doc/pdftex/manual/ChangeLog
%doc %{_texmfdistdir}/doc/pdftex/manual/README
%doc %{_texmfdistdir}/doc/pdftex/manual/Makefile
%doc %{_texmfdistdir}/doc/pdftex/manual/makefiles.cmd
%doc %{_texmfdistdir}/doc/pdftex/manual/pdftex-a.pdf
%doc %{_texmfdistdir}/doc/pdftex/manual/pdftex-i.tex
%doc %{_texmfdistdir}/doc/pdftex/manual/pdftex-t.tex
%doc %{_texmfdistdir}/doc/pdftex/manual/pdftex-syntax.txt
%doc %{_texmfdistdir}/doc/pdftex/manual/syntaxform.pl
%doc %{_texmfdistdir}/doc/pdftex/manual/pdftex-w.tex
%doc %{_texmfdistdir}/doc/pdftex/manual/syntaxform.awk

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/pdftex <<EOF
#
# from pdftex:
pdftex pdftex language.def -translate-file=cp227.tcx *pdfetex.ini
etex pdftex language.def -translate-file=cp227.tcx *etex.ini
pdfetex pdftex language.def -translate-file=cp227.tcx *pdfetex.ini
EOF

#generate pdftex.map
updmap --outputdir fonts/map/pdftex
mkdir -p %{buildroot}%{_texmfdistdir}/fonts/map/pdftex
cp fonts/map/pdftex/pdftex* %{buildroot}%{_texmfdistdir}/fonts/map/pdftex

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19176 |21mr|texlive-pdftex-def-0.06d-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22653
# category Package
# catalog-ctan /macros/latex/contrib/pdftex-def/pdftex.def
# catalog-date 2011-05-28 11:53:45 +0200
# catalog-license lppl1.3
# catalog-version 0.06d
Name:		texlive-pdftex-def
Version:	0.06d
Release:	7
Summary:	Colour and Graphics support for PDFTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdftex-def/pdftex.def
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftex-def.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The file pdftex.def provides device-specific definitions for
colour and graphics support when running pdf(La)TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdftex-def/pdftex.def

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19177 |21mr|texlive-pdftools-0.84-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31660
# category TLCore
# catalog-ctan /support/xpdfopen
# catalog-date 2012-09-07 16:54:33 +0200
# catalog-license pd
# catalog-version 0.84
Name:		texlive-pdftools
Version:	0.84
Release:	13
Summary:	PDF-related utilities, including PostScript-to-PDF conversion
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/xpdfopen
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-pdftools.bin

%description
The command-line programs pdfopen and pdfclose allow you to
control the X Window System version of Adobe's Acrobat Reader
from the command line or from within a (shell) script. The
programs work with Acrobat Reader 5, 7, 8 and 9 for Linux, xpdf
and evince. This version derives from one written by Fabrice
Popineau for Microsoft operating systems.


#-----------------------------------------------------------------------
%files
%{_bindir}/e2pall
%{_bindir}/pdfatfi
%{_bindir}/ps4pdf
%{_texmfdistdir}/scripts/texlive/e2pall.pl
%doc %{_mandir}/man1/e2pall.1*
%doc %{_texmfdistdir}/doc/man/man1/e2pall.man1.pdf
%doc %{_mandir}/man1/pdfclose.1*
%doc %{_texmfdistdir}/doc/man/man1/pdfclose.man1.pdf
%doc %{_mandir}/man1/pdfopen.1*
%doc %{_texmfdistdir}/doc/man/man1/pdfopen.man1.pdf
%doc %{_mandir}/man1/pdftosrc.1*
%doc %{_texmfdistdir}/doc/man/man1/pdftosrc.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texlive/e2pall.pl e2pall
    ln -sf %{_texmfdistdir}/scripts/oberdiek/pdfatfi.pl pdfatfi
    ln -sf %{_texmfdistdir}/scripts/pst-pdf/ps4pdf ps4pdf
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19178 |21mr|texlive-pdftricks-1.16-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pdftricks
# catalog-date 2008-11-24 12:47:54 +0100
# catalog-license gpl
# catalog-version 1.16
Name:		texlive-pdftricks
Version:	1.16
Release:	7
Summary:	Support for pstricks in pdfTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdftricks
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftricks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdftricks.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The PSTricks macros cannot be used (directly) with pdfTeX,
since pstricks uses PostScript arithmetic, which isn't part of
PDF. This package circumvents this limitation so that the
extensive facilities offered by the powerful PSTricks package
can be made use of in a pdfTeX document. This is done using the
shell escape function available in current TeX implementations.
The package may also be used in support of other 'PostScript-
output-only' packages, such as PSfrag. For alternatives, users
may care to review the discussion in the PSTricks online
documentation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdftricks/pdftricks.sty
%doc %{_texmfdistdir}/doc/latex/pdftricks/makefile
%doc %{_texmfdistdir}/doc/latex/pdftricks/manual.pdf
%doc %{_texmfdistdir}/doc/latex/pdftricks/pst2pdf
%doc %{_texmfdistdir}/doc/latex/pdftricks/test.pdf
%doc %{_texmfdistdir}/doc/latex/pdftricks/test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19179 |21mr|texlive-pdfwin-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-pdfwin
Version:	20190228
Release:	1
Summary:	TeXLive pdfwin package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfwin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfwin.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive pdfwin package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfwin/pdfwin.cfg
%{_texmfdistdir}/tex/latex/pdfwin/pdfwin.sty
%doc %{_texmfdistdir}/doc/latex/pdfwin/BucResampling.pdf
%doc %{_texmfdistdir}/doc/latex/pdfwin/BucSystem1.pdf
%doc %{_texmfdistdir}/doc/latex/pdfwin/BucSystem2.pdf
%doc %{_texmfdistdir}/doc/latex/pdfwin/BucSystem3.pdf
%doc %{_texmfdistdir}/doc/latex/pdfwin/BucSystem4.pdf
%doc %{_texmfdistdir}/doc/latex/pdfwin/BucSystem5.pdf
%doc %{_texmfdistdir}/doc/latex/pdfwin/BucSystem6.pdf
%doc %{_texmfdistdir}/doc/latex/pdfwin/Bucuresti2003.tex
%doc %{_texmfdistdir}/doc/latex/pdfwin/JWGU-Logo.png
%doc %{_texmfdistdir}/doc/latex/pdfwin/Thumbs.db
%doc %{_texmfdistdir}/doc/latex/pdfwin/marble.png
%doc %{_texmfdistdir}/doc/latex/pdfwin/normprot.tex
%doc %{_texmfdistdir}/doc/latex/pdfwin/shortvec.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19180 |21mr|texlive-pdfx-1.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pdfx
Version:	1.6.3
Release:	1
Summary:	PDF/X-1a and PDF/A-1b support for pdfTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pdfx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pdfx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package helps LaTeX users to create PDF/X-1a and PFD/A-1b
compliant pdf documents with pdfTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pdfx
%doc %{_texmfdistdir}/doc/latex/pdfx
#- source
%doc %{_texmfdistdir}/source/latex/pdfx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19181 |21mr|texlive-pecha-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/tibetan/pecha
# catalog-date 2006-10-13 13:00:52 +0200
# catalog-license gpl
# catalog-version 0.1
Name:		texlive-pecha
Version:	0.1
Release:	7
Summary:	Print Tibetan text in the classic pecha layout style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/tibetan/pecha
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pecha.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pecha.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The pecha class provides an environment for writing Tibetan on
LaTeX2e in the traditional Tibetan Pecha layout used for
spiritual or philosophical texts, using the cTib4TeX package by
Oliver Corff. It provides features like headers in different
languages, page numbering in Tibetan and more.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pecha/ctibmantra.sty
%{_texmfdistdir}/tex/latex/pecha/pecha.cls
%doc %{_texmfdistdir}/doc/latex/pecha/CHANGES
%doc %{_texmfdistdir}/doc/latex/pecha/COPYING
%doc %{_texmfdistdir}/doc/latex/pecha/README
%doc %{_texmfdistdir}/doc/latex/pecha/example.pdf
%doc %{_texmfdistdir}/doc/latex/pecha/example.tex
%doc %{_texmfdistdir}/doc/latex/pecha/pecha_docu.pdf
%doc %{_texmfdistdir}/doc/latex/pecha/pecha_docu.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19182 |21mr|texlive-pedigree-perl-1.0-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31990
# category Package
# catalog-ctan /graphics/pstricks/contrib/pedigree/pedigree-perl
# catalog-date 2012-05-31 18:08:53 +0200
# catalog-license gpl2
# catalog-version 1.0
Name:		texlive-pedigree-perl
Version:	1.0
Release:	13
Summary:	Generate TeX pedigree files from CSV files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pedigree/pedigree-perl
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pedigree-perl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pedigree-perl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pedigree-perl.bin = %{EVRD}

%description
This program generates TeX commands to typeset pedigrees --
either TeX fragments or full LaTeX files, to be processed by
the authors' pst-pdgr package. The program has support for
multilanguage pedigrees (at the present moment the English and
Russian languages are supported).

#-----------------------------------------------------------------------
%files
%{_bindir}/pedigree
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/AbortionNode.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/Area.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/ChildlessNode.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/Language.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/MarriageNode.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/Node.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/Parser.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/PersonNode.pm
%{_texmfdistdir}/scripts/pedigree-perl/Pedigree/TwinsNode.pm
%{_texmfdistdir}/scripts/pedigree-perl/pedigree.pl
%doc %{_mandir}/man1/pedigree.1*
%doc %{_texmfdistdir}/doc/man/man1/pedigree.man1.pdf
%doc %{_texmfdistdir}/doc/support/pedigree-perl/LICENSE
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Makefile
%doc %{_texmfdistdir}/doc/support/pedigree-perl/NEWS
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/AbortionNode.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/Area.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/ChildlessNode.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/Language.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/Makefile
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/MarriageNode.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/Node.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/Parser.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/PersonNode.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/Pedigree/TwinsNode.3
%doc %{_texmfdistdir}/doc/support/pedigree-perl/README
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/Makefile
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/abortions.tex
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/english.tex
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/english1.tex
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/pedigree.bib
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/pedigree.pdf
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/pedigree.ps
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/pedigree.tex
%doc %{_texmfdistdir}/doc/support/pedigree-perl/doc/russian.tex
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/abortions.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/badsort.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/childlessness.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/consanguinic.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/english.cfg
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/english.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/english1.cfg
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/english_short.cfg
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/pedigree.cfg
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/russian.cfg
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/russian.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/sort1.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/sort2.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/sort3.csv
%doc %{_texmfdistdir}/doc/support/pedigree-perl/examples/twins.csv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pedigree-perl/pedigree.pl pedigree
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19183 |21mr|texlive-perfectcut-2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32861
# category Package
# catalog-ctan /macros/latex/contrib/perfectcut
# catalog-date 2014-02-03 14:43:47 +0100
# catalog-license lppl1.3
# catalog-version 1.9
Name:		texlive-perfectcut
Version:	2.2
Release:	2
Summary:	Brackets whose size adjusts to the nesting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/perfectcut
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/perfectcut.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/perfectcut.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines the command \perfectcut#1#2 which displays
a bracket <#1||#2>. Its effect is to determine the size of the
bracket depending on the number of nested \perfectcut
(regardless of the contents). The command is intended for use:
In proof theory, for term notations of sequent calculus, In
computer science, for the modeling of abstract machines. The
package also offers a reimplementation of \big, \bigg, etc.,
into arbitrary-size variants.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/perfectcut/perfectcut.sty
%doc %{_texmfdistdir}/doc/latex/perfectcut/README
%doc %{_texmfdistdir}/doc/latex/perfectcut/perfectcut.pdf
%doc %{_texmfdistdir}/doc/latex/perfectcut/perfectcut.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19184 |21mr|texlive-perltex-2.1-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32576
# category Package
# catalog-ctan /macros/latex/contrib/perltex
# catalog-date 2012-06-12 18:08:23 +0200
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-perltex
Version:	2.1
Release:	15
Summary:	Define LaTeX macros in terms of Perl code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/perltex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/perltex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/perltex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/perltex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-perltex.bin = %{EVRD}

%description
PerlTeX is a combination Perl script (perltex.pl) and LaTeX2e
package (perltex.sty) that, together, give the user the ability
to define LaTeX macros in terms of Perl code. Once defined, a
Perl macro becomes indistinguishable from any other LaTeX
macro. PerlTeX thereby combines LaTeX's typesetting power with
Perl's programmability. PerlTeX will make use of persistent
named pipes, and thereby run more efficiently, on operating
systems that offer them (mostly Unix-like systems). Also
provided is a switch to generate a PerlTeX-free, document-
specific, noperltex.sty that is useful when distributing a
document to places where PerlTeX is not available.

#-----------------------------------------------------------------------
%files
%{_bindir}/perltex
%{_texmfdistdir}/scripts/perltex/perltex.pl
%{_texmfdistdir}/tex/latex/perltex/perltex.sty
%doc %{_texmfdistdir}/doc/latex/perltex/README
%doc %{_texmfdistdir}/doc/latex/perltex/example.tex
%doc %{_texmfdistdir}/doc/latex/perltex/perltex.pdf
%doc %{_mandir}/man1/perltex.1*
%doc %{_texmfdistdir}/doc/man/man1/perltex.man1.pdf
#- source
%doc %{_texmfdistdir}/source/latex/perltex/perltex.dtx
%doc %{_texmfdistdir}/source/latex/perltex/perltex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/perltex/perltex.pl perltex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19185 |21mr|texlive-permute-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/permute
# catalog-date 2007-01-12 23:55:10 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-permute
Version:	20190228
Release:	1
Summary:	Support for symmetric groups
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/permute
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/permute.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/permute.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/permute.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for symmetric groups, allowing you to input, output,
and calculate with them.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/permute/permute.sty
%doc %{_texmfdistdir}/doc/latex/permute/permute.pdf
#- source
%doc %{_texmfdistdir}/source/latex/permute/permute.dtx
%doc %{_texmfdistdir}/source/latex/permute/permute.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19186 |21mr|texlive-persian-bib-0.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-persian-bib
Version:	0.9
Release:	2
Summary:	Persian translations of classic BibTeX styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/persian-bib
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/persian-bib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/persian-bib.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Currently 7 files: acm-fa.bst, asa-fa.bst, chicago-fa.bst,
ieeetr-fa.bst, plain-fa.bst, plainnat-fa.bst and unsrt-fa.bst
are modified for Persian documents prepared with XePersian
(which the present package depends on). The Persian .bst files
can simultaneously handle both Latin and Persian references. A
file cp1256fa.csf is provided for correct sorting of Persian
references and three fields LANGUAGE, TRANSLATOR and AUTHORFA
are defined.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/persian-bib
%{_texmfdistdir}/bibtex/csf/persian-bib
%doc %{_texmfdistdir}/doc/xelatex/persian-bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19187 |21mr|texlive-petiteannonce-1.0001-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25915
# category Package
# catalog-ctan /macros/latex/contrib/petiteannonce
# catalog-date 2012-04-11 15:11:02 +0200
# catalog-license lppl
# catalog-version 1.0001
Name:		texlive-petiteannonce
Version:	1.0001
Release:	6
Summary:	A class for small advertisements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/petiteannonce
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/petiteannonce.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/petiteannonce.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class enables you to create the sort of adverts that you
pin on a noticeboard, with tear-off strips at the bottom where
you can place contact details.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/petiteannonce/petiteannonce.cls
%doc %{_texmfdistdir}/doc/latex/petiteannonce/baignoire.JPG
%doc %{_texmfdistdir}/doc/latex/petiteannonce/petiteannonce.doc.pdf
%doc %{_texmfdistdir}/doc/latex/petiteannonce/petiteannonce.doc.tex
%doc %{_texmfdistdir}/doc/latex/petiteannonce/petiteannonceexample.pdf
%doc %{_texmfdistdir}/doc/latex/petiteannonce/petiteannonceexample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19188 |21mr|texlive-petri-nets-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-petri-nets
Version:	20190228
Release:	1
Summary:	A set TeX/LaTeX packages for drawing Petri nets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/petri-nets
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/petri-nets.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/petri-nets.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Petri-nets is a set of TeX/LaTeX packages about Petri nets and
related models. Three packages are available: - the first
allows the user to draw Petri-nets in PostScript documents; -
the second defines macros related to PBC, M-nets and B(PN)
models; and - the last gathers together the previous two.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/petri-nets
%{_texmfdistdir}/scripts/petri-nets
%doc %{_texmfdistdir}/doc/generic/petri-nets

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/tex texmf-dist/doc texmf-dist/scripts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19189 |21mr|texlive-pgf-3.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pgf
Version:	3.1.2
Release:	1
Summary:	Create PostScript and PDF graphics in TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/base
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-xkeyval

%description
PGF is a macro package for creating graphics. It is platform-
and format-independent and works together with the most
important TeX backend drivers, including pdftex and dvips. It
comes with a user-friendly syntax layer called TikZ. Its usage
is similar to pstricks and the standard picture environment.
PGF works with plain (pdf-)TeX, (pdf-)LaTeX, and ConTeXt.
Unlike pstricks, it can produce either PostScript or PDF
output.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/context/third/pgf
%{_texmfdistdir}/tex/generic/pgf
%{_texmfdistdir}/tex/latex/pgf
%{_texmfdistdir}/tex/plain/pgf
%doc %{_texmfdistdir}/doc/generic/pgf
#- source
%doc %{_texmfdistdir}/source/generic/pgf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19190 |21mr|texlive-pgf-blur-1.01-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31693
# category Package
# catalog-ctan /graphics/pgf/contrib/pgf-blur
# catalog-date 2013-09-19 00:14:31 +0200
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-pgf-blur
Version:	1.01
Release:	13
Summary:	PGF/TikZ package for "blurred" shadows
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgf-blur
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf-blur.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf-blur.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf-blur.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
=======
The package adds blurred/faded/fuzzy shadows to PGF/TikZ
pictures. It is configured as a TikZ/PGF library module. The
method is similar to that of the author's pst-blur package for
PSTricks.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pgf-blur/tikzlibraryshadows.blur.code.tex
%doc %{_texmfdistdir}/doc/latex/pgf-blur/README
%doc %{_texmfdistdir}/doc/latex/pgf-blur/pgf-blur.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pgf-blur/pgf-blur.dtx
%doc %{_texmfdistdir}/source/latex/pgf-blur/pgf-blur.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19191 |21mr|texlive-pgfgantt-5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31037
# category Package
# catalog-ctan /graphics/pgf/contrib/pgfgantt
# catalog-date 2013-06-04 20:25:12 +0200
# catalog-license lppl1.3
# catalog-version 4.0
Name:		texlive-pgfgantt
Version:	5.0
Release:	2
Summary:	Draw Gantt charts with TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfgantt
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfgantt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfgantt.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfgantt.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an environment for drawing Gantt charts
that contain various elements (titles, bars, milestones, groups
and links). Several keys customize the appearance of the chart
elements.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pgfgantt/pgfgantt.sty
%doc %{_texmfdistdir}/doc/latex/pgfgantt/README
%doc %{_texmfdistdir}/doc/latex/pgfgantt/pgfgantt.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pgfgantt/pgfgantt.dtx
%doc %{_texmfdistdir}/source/latex/pgfgantt/pgfgantt.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19192 |21mr|texlive-pgfkeyx-0.0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26093
# category Package
# catalog-ctan /macros/latex/contrib/pgfkeyx
# catalog-date 2012-04-21 23:54:26 +0200
# catalog-license lppl1.3
# catalog-version 0.0.1
Name:		texlive-pgfkeyx
Version:	0.0.1
Release:	7
Summary:	Extended and more robust version of pgfkeys
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pgfkeyx
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfkeyx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfkeyx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends and improves the robustness of the pgfkeys
package. In particular, it can deal with active comma, equality
sign, and slash in key parsing. The difficulty with active
characters has long been a problem with the pgfkeys package.
The package also introduces handlers beyond those that pgfkeys
can offer.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pgfkeyx/pgfkeyx.sty
%doc %{_texmfdistdir}/doc/latex/pgfkeyx/README
%doc %{_texmfdistdir}/doc/latex/pgfkeyx/pgfkeyx-test1.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19193 |21mr|texlive-pgfmolbio-0.21-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31334
# category Package
# catalog-ctan /macros/luatex/latex/pgfmolbio
# catalog-date 2013-07-31 09:13:05 +0200
# catalog-license lppl1.3
# catalog-version 0.21
Name:		texlive-pgfmolbio
Version:	0.21
Release:	10
Summary:	Draw graphs typically found in molecular biology texts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/pgfmolbio
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfmolbio.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfmolbio.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfmolbio.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package draws graphs typically found in molecular biology
texts. Currently, the package contains modules for drawing DNA
sequencing chromatograms and protein domain diagrams.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/pgfmolbio/pgfmolbio.chromatogram.lua
%{_texmfdistdir}/tex/lualatex/pgfmolbio/pgfmolbio.chromatogram.tex
%{_texmfdistdir}/tex/lualatex/pgfmolbio/pgfmolbio.convert.tex
%{_texmfdistdir}/tex/lualatex/pgfmolbio/pgfmolbio.domains.lua
%{_texmfdistdir}/tex/lualatex/pgfmolbio/pgfmolbio.domains.tex
%{_texmfdistdir}/tex/lualatex/pgfmolbio/pgfmolbio.sty
%doc %{_texmfdistdir}/doc/lualatex/pgfmolbio/README
%doc %{_texmfdistdir}/doc/lualatex/pgfmolbio/SampleScf.scf
%doc %{_texmfdistdir}/doc/lualatex/pgfmolbio/SampleUniprot.txt
%doc %{_texmfdistdir}/doc/lualatex/pgfmolbio/pgfmolbio.lua
%doc %{_texmfdistdir}/doc/lualatex/pgfmolbio/pgfmolbio.pdf
#- source
%doc %{_texmfdistdir}/source/lualatex/pgfmolbio/pgfmolbio.dtx
%doc %{_texmfdistdir}/source/lualatex/pgfmolbio/pgfmolbio.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}
rm %{buildroot}%{_texmfdistdir}/doc/lualatex/pgfmolbio/SampleGff.gff

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19194 |21mr|texlive-pgfopts-2.1a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pgfopts
Version:	2.1a
Release:	2
Summary:	LaTeX package options with pgfkeys
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pgfopts
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfopts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfopts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfopts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The pgfkeys package (part of the pgf distribution) is a well-
designed way of defining and using large numbers of keys for
key-value syntaxes. However, pgfkeys itself does not offer
means of handling LaTeX class and package options. This package
adds such option handling to pgfkeys, in the same way that
kvoptions adds the same facility to the LaTeX standard keyval
package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pgfopts
%doc %{_texmfdistdir}/doc/latex/pgfopts
#- source
%doc %{_texmfdistdir}/source/latex/pgfopts

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19195 |21mr|texlive-pgfplots-1.16-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pgfplots
Version:	1.16
Release:	2
Summary:	Create normal/logarithmic plots in two and three dimensions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgfplots
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfplots.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfplots.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgfplots.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
PGFPlots draws high-quality function plots in normal or
logarithmic scaling with a user-friendly interface directly in
TeX. The user supplies axis labels, legend entries and the plot
coordinates for one or more plots and PGFPlots applies axis
scaling, computes any logarithms and axis ticks and draws the
plots, supporting line plots, scatter plots, piecewise constant
plots, bar plots, area plots, mesh-- and surface plots and some
more. Pgfplots is based on PGF/TikZ (pgf); it runs equally for
LaTeX/TeX/ConTeXt.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/pgfplots
%{_texmfdistdir}/tex/context/third/pgfplots
%{_texmfdistdir}/tex/generic/pgfplots
%{_texmfdistdir}/tex/latex/pgfplots
%{_texmfdistdir}/tex/plain/pgfplots
%doc %{_texmfdistdir}/doc/context/third/pgfplots
%doc %{_texmfdistdir}/doc/generic/pgfplots
%doc %{_texmfdistdir}/doc/latex/pgfplots
%doc %{_texmfdistdir}/doc/plain/pgfplots

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc source %{buildroot}%{_texmfdistdir}
rm %{buildroot}%{_texmfdistdir}/source/latex/pgfplots/pgfplotstests.tar.bz2
rm %{buildroot}%{_texmfdistdir}/doc/latex/pgfplots/pgfplots.doc.src.tar.bz2
rm %{buildroot}%{_texmfdistdir}/source/context/third/pgfplots/pgfplotstests.context.tar.bz2

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19196 |21mr|texlive-pgf-soroban-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pgf/contrib/pgf-soroban
# catalog-date 2008-08-23 00:06:02 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-pgf-soroban
Version:	1.1
Release:	7
Summary:	Create images of the soroban using TikZ/PGF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgf-soroban
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf-soroban.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf-soroban.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package makes it possible to create pictures of the soroban
(Japanese abacus) using PGF/TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pgf-soroban/pgf-soroban.sty
%doc %{_texmfdistdir}/doc/latex/pgf-soroban/Changes
%doc %{_texmfdistdir}/doc/latex/pgf-soroban/README
%doc %{_texmfdistdir}/doc/latex/pgf-soroban/pgf-soroban-doc.bib
%doc %{_texmfdistdir}/doc/latex/pgf-soroban/pgf-soroban-doc.pdf
%doc %{_texmfdistdir}/doc/latex/pgf-soroban/pgf-soroban-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19197 |21mr|texlive-pgf-umlsd-0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33045
# category Package
# catalog-ctan /graphics/pgf/contrib/pgf-umlsd
# catalog-date 2014-02-24 18:59:18 +0100
# catalog-license gpl
# catalog-version 0.7
Name:		texlive-pgf-umlsd
Version:	0.7
Release:	6
Summary:	Draw UML Sequence Diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/pgf-umlsd
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf-umlsd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pgf-umlsd.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX macros to draw UML diagrams using pgf.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pgf-umlsd/pgf-umlsd.sty
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/README
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/block.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/call.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/callself.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/customize.log
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/customize.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/distance.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/empty.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/instance.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/message.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/messcall.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/multi-threads-example.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/nested-call.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/no-thread-example.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/non-instantaneous-message.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/postlevel.log
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/postlevel.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/prelevel.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/single-thread-example.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/sync-clock.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/thread.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/threadbias.log
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/demo/threadbias.tex
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/diagrams.pdf
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/logo.png
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/pgf-umlsd-manual.pdf
%doc %{_texmfdistdir}/doc/latex/pgf-umlsd/pgf-umlsd-manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19198 |21mr|texlive-philex-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-philex
Version:	1.3
Release:	2
Summary:	Cross references for named and numbered environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/philex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/philex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/philex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Philex provides means for creating and cross-referencing named
or numbered environments. Possible uses would be equations,
example sentences (as in linguistics or philosophy) or named
principles. Cross references may refer either to the number, or
to a short name of the target environment, or to the contents
of the environment. Philex builds on the facilities of the
linguex package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/philex
%doc %{_texmfdistdir}/doc/latex/philex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19199 |21mr|texlive-philokalia-1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-philokalia
Version:	1.2
Release:	3
Summary:	A font to typeset the Philokalia Books
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/philokalia
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/philokalia.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/philokalia.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/philokalia.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The philokalia package has been designed to ease the use of the
Philokalia-Regular OpenType font with XeLaTeX. The font started
as a project to digitize the typeface used to typeset the
Philokalia books.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/philokalia
%{_texmfdistdir}/tex/xelatex/philokalia
%doc %{_texmfdistdir}/doc/xelatex/philokalia
#- source
%doc %{_texmfdistdir}/source/xelatex/philokalia

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19200 |21mr|texlive-philosophersimprint-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28845
# category Package
# catalog-ctan /macros/latex/contrib/philosophersimprint
# catalog-date 2013-01-15 09:51:57 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-philosophersimprint
Version:	1.4
Release:	2
Summary:	Typesetting articles for "Philosophers' Imprint"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/philosophersimprint
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/philosophersimprint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/philosophersimprint.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/philosophersimprint.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
In its mission statement we read "Philosophers' Imprint is a
refereed series of original papers in philosophy, edited by
philosophy faculty at the University of Michigan, with the
advice of an international Board of Editors, and published on
the World Wide Web by the University of Michigan Digital
Library. The mission of the Imprint is to promote a future in
which funds currently spent on journal subscriptions are
redirected to the dissemination of scholarship for free, via
the Internet". The class helps authors to typeset their own
articles in "Web-ready" format. No assumption is made about the
fonts available to the author: the class itself is restricted
to freely available and freely distributed fonts, only.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/philosophersimprint/philosophersimprint.cls
%doc %{_texmfdistdir}/doc/latex/philosophersimprint/Makefile
%doc %{_texmfdistdir}/doc/latex/philosophersimprint/README
%doc %{_texmfdistdir}/doc/latex/philosophersimprint/philosophersimprint.bib
%doc %{_texmfdistdir}/doc/latex/philosophersimprint/philosophersimprint.pdf
%doc %{_texmfdistdir}/doc/latex/philosophersimprint/sample.pdf
%doc %{_texmfdistdir}/doc/latex/philosophersimprint/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/philosophersimprint/philosophersimprint.dtx
%doc %{_texmfdistdir}/source/latex/philosophersimprint/philosophersimprint.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19201 |21mr|texlive-phonrule-1.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-phonrule
Version:	1.3.2
Release:	2
Summary:	Typeset linear phonological rules
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/phonrule
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/phonrule.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/phonrule.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for typesetting phonological rules
like those in 'Sound Pattern of English' (Chomsky and Halle
1968).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/phonrule
%doc %{_texmfdistdir}/doc/latex/phonrule

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19202 |21mr|texlive-photo-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18739
# category Package
# catalog-ctan /macros/latex/contrib/photo
# catalog-date 2006-12-02 15:26:11 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-photo
Version:	20190228
Release:	1
Summary:	A float environment for photographs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/photo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/photo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/photo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/photo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package introduces a new float type called photo which
works similar to the float types table and figure. Various
options exist for placing photos, captions, and a
"photographer" line. In twocolumn documents, a possibility
exists to generate double-column floats automatically if the
photo does not fit into one column. Photos do not have to be
placed as floats, they can also be placed as boxes, with
captions and photographer line still being available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/photo/photo.sty
%doc %{_texmfdistdir}/doc/latex/photo/Makefile
%doc %{_texmfdistdir}/doc/latex/photo/photo.pdf
%doc %{_texmfdistdir}/doc/latex/photo/photo_test.tex
#- source
%doc %{_texmfdistdir}/source/latex/photo/photo.drv
%doc %{_texmfdistdir}/source/latex/photo/photo.dtx
%doc %{_texmfdistdir}/source/latex/photo/photo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19203 |21mr|texlive-physics-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28590
# category Package
# catalog-ctan /macros/latex/contrib/physics
# catalog-date 2012-12-20 17:31:55 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-physics
Version:	1.3
Release:	2
Epoch:		1
Summary:	Macros supporting the Mathematics of Physics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/physics
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/physics.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/physics.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines simple and flexible macros for typesetting
equations in the languages of vector calculus and linear
algebra, using Dirac notation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/physics/physics.sty
%doc %{_texmfdistdir}/doc/latex/physics/README
%doc %{_texmfdistdir}/doc/latex/physics/physics.pdf
%doc %{_texmfdistdir}/doc/latex/physics/physics.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19204 |21mr|texlive-piano-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21574
# category Package
# catalog-ctan /macros/latex/contrib/piano
# catalog-date 2011-03-01 13:06:36 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-piano
Version:	1.0
Release:	7
Summary:	Typeset a basic 2-octave piano diagram
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/piano
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/piano.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/piano.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package adds the \keyboard[1][2]..[7] command to your
project. When used, it draws a small 2 octaves piano keyboard
on your document, with up to 7 keys highlighted. Keys go : Co,
Cso, Do, Dso, Eo, Fo, Fso, Go, Gso, Ao, Aso, Bo, Ct, Cst, Dt,
Dst, Et, Ft, Fst, Gt, Gst, At, Ast and Bt. (A working example
is included in the README file.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/piano/piano.sty
%doc %{_texmfdistdir}/doc/latex/piano/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19205 |21mr|texlive-picinpar-1.2a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20374
# category Package
# catalog-ctan /macros/latex209/contrib/picinpar
# catalog-date 2010-11-05 12:43:21 +0100
# catalog-license gpl
# catalog-version 1.2a
Name:		texlive-picinpar
Version:	1.2a
Release:	7
Summary:	Insert pictures into paragraphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex209/contrib/picinpar
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/picinpar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/picinpar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A legacy package for creating 'windows' in paragraphs, for
inserting graphics, etc. (including "dropped capitals"). Users
should note that Piet van Oostrum (in a published review of
packages of this sort) does not recommend this package; Picins
is recommended instead.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/picinpar/picinpar.sty
%doc %{_texmfdistdir}/doc/latex/picinpar/picinpar-de.pdf
%doc %{_texmfdistdir}/doc/latex/picinpar/picinpar-de.tex
%doc %{_texmfdistdir}/doc/latex/picinpar/picinpar-en.pdf
%doc %{_texmfdistdir}/doc/latex/picinpar/picinpar-en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19206 |21mr|texlive-pict2e-0.3b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pict2e
Version:	0.3b
Release:	2
Summary:	New implementation of picture commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pict2e
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pict2e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pict2e.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pict2e.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package was described in the 2nd edition of 'LaTeX: A
Document Preparation System', but the LaTeX project team
declined to produce the package. For a long time, LaTeX has
included a 'pict2e package' that merely produced an apologetic
error message. The new package extends the existing LaTeX
picture environment, using the familiar technique (cf. the
graphics and color packages) of driver files (at present,
drivers for PostScript output from LaTeX, and for use with
PDFLaTeX are available). The package documentation has a fair
number of examples of use, showing where things are improved by
comparison with the LaTeX picture environment.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pict2e
%doc %{_texmfdistdir}/doc/latex/pict2e
#- source
%doc %{_texmfdistdir}/source/latex/pict2e

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19207 |21mr|texlive-pictex-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21943
# category Package
# catalog-ctan /graphics/pictex
# catalog-date 2011-04-03 16:40:50 +0200
# catalog-license lppl1
# catalog-version 1.1
Name:		texlive-pictex
Version:	1.1
Release:	7
Summary:	Picture drawing macros for TeX and LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pictex
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pictex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pictex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
PicTeX is an early, and very comprehensive drawing package,
that mostly draws by placing myriads of small dots to make up
pictures. It has a tendency to run out of space, most
especially of allowable dimensions registers; packages m-pictex
and pictexwd deal with the register problem, in different ways.
Note that full documentation may be bought via the PC-TeX site,
though a command summary is available as free software.
Alternatively, a front-end package such as mathsPiC, which
covers all of PicTeX and has a complete and free manual, could
be used.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pictex/errorbars.tex
%{_texmfdistdir}/tex/generic/pictex/latexpicobjs.tex
%{_texmfdistdir}/tex/generic/pictex/piccorr.sty
%{_texmfdistdir}/tex/generic/pictex/picmore.tex
%{_texmfdistdir}/tex/generic/pictex/pictex.sty
%{_texmfdistdir}/tex/generic/pictex/pictex.tex
%{_texmfdistdir}/tex/generic/pictex/pictexwd.sty
%{_texmfdistdir}/tex/generic/pictex/pictexwd.tex
%{_texmfdistdir}/tex/generic/pictex/pointers.tex
%{_texmfdistdir}/tex/generic/pictex/postpictex.tex
%{_texmfdistdir}/tex/generic/pictex/prepictex.tex
%{_texmfdistdir}/tex/generic/pictex/texpictex.tex
%{_texmfdistdir}/tex/generic/pictex/tree.sty
%doc %{_texmfdistdir}/doc/generic/pictex/00index
%doc %{_texmfdistdir}/doc/generic/pictex/README
%doc %{_texmfdistdir}/doc/generic/pictex/pictexzusatz.txt
%doc %{_texmfdistdir}/doc/generic/pictex/readme.errorbars

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19208 |21mr|texlive-pictex2-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pictex2/pictex2.sty
# catalog-date 2007-01-13 09:26:05 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-pictex2
Version:	20190228
Release:	1
Summary:	Adds relative coordinates and improves the \plot command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pictex2/pictex2.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pictex2.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Adds two user commands to standard PiCTeX. One command uses
relative coordinates, thus eliminating the need to calculate
the coordinate of every point manually as in standard PiCTeX.
The other command modifies \plot to use a rule instead of dots
if the line segment is horizontal or vertical.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pictex2/pictex2.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19209 |21mr|texlive-pictexsum-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24965
# category Package
# catalog-ctan /info/pictex/summary
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-pictexsum
Version:	20190228
Release:	1
Summary:	A summary of PicTeX commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/pictex/summary
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pictexsum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pictexsum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document summarises the commands of PicTeX. While it is no
substitute for the PicTeX manual itself (available from
Personal TeX inc.), the document is a useful aide-memoire for
those who have read the manual.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/pictexsum/Makefile
%doc %{_texmfdistdir}/doc/latex/pictexsum/README
%doc %{_texmfdistdir}/doc/latex/pictexsum/a4mod.sty
%doc %{_texmfdistdir}/doc/latex/pictexsum/pictexsum.pdf
%doc %{_texmfdistdir}/doc/latex/pictexsum/pictexsum.tex
%doc %{_texmfdistdir}/doc/latex/pictexsum/useful.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19210 |21mr|texlive-piechartmp-0.3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/piechartmp
# catalog-date 2007-01-13 20:56:44 +0100
# catalog-license lppl
# catalog-version 0.3.0
Name:		texlive-piechartmp
Version:	0.3.0
Release:	7
Summary:	Draw pie-charts using MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/piechartmp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/piechartmp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/piechartmp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The piechartmp package is an easy way to draw pie-charts with
MetaPost. The package implements an interface that enables
users with little MetaPost experience to draw charts. A
highlight of the package is the possibility of suppressing some
segments of the chart, thus creating the possibility of several
charts from the same data.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/piechartmp/piechartmp.mp
%doc %{_texmfdistdir}/doc/metapost/piechartmp/INSTALL
%doc %{_texmfdistdir}/doc/metapost/piechartmp/LEGAL
%doc %{_texmfdistdir}/doc/metapost/piechartmp/README
%doc %{_texmfdistdir}/doc/metapost/piechartmp/README.TEXLIVE
%doc %{_texmfdistdir}/doc/metapost/piechartmp/examples/wec-mfun.mp
%doc %{_texmfdistdir}/doc/metapost/piechartmp/examples/wec-mfun.pdf
%doc %{_texmfdistdir}/doc/metapost/piechartmp/examples/wec.mp
%doc %{_texmfdistdir}/doc/metapost/piechartmp/examples/wec.pdf
%doc %{_texmfdistdir}/doc/metapost/piechartmp/examples/worldmap.jpg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19211 |21mr|texlive-piff-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21894
# category Package
# catalog-ctan /macros/latex/contrib/piff
# catalog-date 2010-12-08 08:17:08 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-piff
Version:	20190228
Release:	1
Summary:	Macro tools by Mike Piff
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/piff
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/piff.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/piff.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The set consists (now) of: - a small package for dealing with
duplicate-numbered output pages; - newproof, for defining
mathematical proof structures; - onepagem for omitting the page
number in one-page documents and - time, which prints a 12-hour
format time.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/piff/duplicat.sty
%{_texmfdistdir}/tex/latex/piff/newproof.sty
%{_texmfdistdir}/tex/latex/piff/onepagem.sty
%{_texmfdistdir}/tex/latex/piff/time.sty
%doc %{_texmfdistdir}/doc/latex/piff/README
%doc %{_texmfdistdir}/doc/latex/piff/duplicat-doc.pdf
%doc %{_texmfdistdir}/doc/latex/piff/duplicat-doc.tex
%doc %{_texmfdistdir}/doc/latex/piff/newproof-doc.pdf
%doc %{_texmfdistdir}/doc/latex/piff/newproof-doc.tex
%doc %{_texmfdistdir}/doc/latex/piff/onepagem-doc.pdf
%doc %{_texmfdistdir}/doc/latex/piff/onepagem-doc.tex
%doc %{_texmfdistdir}/doc/latex/piff/time-doc.pdf
%doc %{_texmfdistdir}/doc/latex/piff/time-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19212 |21mr|texlive-pinlabel-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24769
# category Package
# catalog-ctan /macros/latex/contrib/pinlabel
# catalog-date 2011-12-05 18:34:00 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-pinlabel
Version:	1.2
Release:	7
Summary:	A TeX labelling package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pinlabel
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pinlabel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pinlabel.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pinlabel is a labelling package for attaching perfectly
formatted TeX labels to figures and diagrams in both eps and
pdf formats. It is suitable both for labelling a new diagram
and for relabelling an existing diagram. The package uses
coordinates derived from GhostView (or gv) and labels are
placed with automatic and consistent spacing relative to the
object labelled.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pinlabel/pinlabel.sty
%doc %{_texmfdistdir}/doc/latex/pinlabel/pinlabdoc.pdf
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/fig3.pdf
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/fig6.pdf
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/gtpart.cls
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/pinlabdoc.tex
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/put.fig
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/put.pdf
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/put2.fig
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/put2.pdf
%doc %{_texmfdistdir}/doc/latex/pinlabel/src/screen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19213 |21mr|texlive-pittetd-1.618-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pittetd
# catalog-date 2008-09-11 18:37:35 +0200
# catalog-license lppl
# catalog-version 1.618
Name:		texlive-pittetd
Version:	1.618
Release:	7
Summary:	Electronic Theses and Dissertations at Pitt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pittetd
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pittetd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pittetd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pittetd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A document class for theses and dissertations. Provides patch
files that enable pittetd to use files prepared for use with
the pittdiss or pitthesis classes. The manual provides a
detailed guide for users who wish to use the class to prepare
their thesis or dissertation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pittetd/pitetd10.clo
%{_texmfdistdir}/tex/latex/pittetd/pitetd11.clo
%{_texmfdistdir}/tex/latex/pittetd/pitetd12.clo
%{_texmfdistdir}/tex/latex/pittetd/pittetd.cls
%doc %{_texmfdistdir}/doc/latex/pittetd/achicago.pit
%doc %{_texmfdistdir}/doc/latex/pittetd/pittdiss.pit
%doc %{_texmfdistdir}/doc/latex/pittetd/pittetd.pdf
%doc %{_texmfdistdir}/doc/latex/pittetd/pitthesis.pit
#- source
%doc %{_texmfdistdir}/source/latex/pittetd/pittetd.dtx
%doc %{_texmfdistdir}/source/latex/pittetd/pittetd.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19214 |21mr|texlive-pkgloader-0.7.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34019
# category Package
# catalog-ctan /macros/latex/contrib/pkgloader
# catalog-date 2014-05-11 22:11:06 +0200
# catalog-license lppl1.3
# catalog-version 0.2.0
Name:		texlive-pkgloader
Version:	0.7.0
Release:	2
Summary:	Managing the options and loading order of other packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pkgloader
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pkgloader.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pkgloader.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package seeks to address the frustration caused by package
conflicts. It is in an early stage of its development, and
should probably not be used as a matter of course; however the
author welcomes feedback via the home page link given in this
catalogue entry. Nevertheless, the author urges users to try
the package and to report issues (or whatever) via the
package's repository.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader-cls-pkg.sty
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader-dry.sty
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader-early.sty
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader-error.sty
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader-false.sty
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader-late.sty
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader-recommended.sty
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader-true.sty
%{_texmfdistdir}/tex/latex/pkgloader/pkgloader.sty
%doc %{_texmfdistdir}/doc/latex/pkgloader/README
%doc %{_texmfdistdir}/doc/latex/pkgloader/pkgloader-packagedoc.cls
%doc %{_texmfdistdir}/doc/latex/pkgloader/pkgloader.pdf
%doc %{_texmfdistdir}/doc/latex/pkgloader/pkgloader.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19215 |21mr|texlive-pkuthss-1.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pkuthss
Version:	1.8.0
Release:	2
Summary:	LaTeX template for dissertations in Peking University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pkuthss
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pkuthss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pkuthss.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a simple, clear and flexible LaTeX
template for dissertations in Peking University.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pkuthss
%doc %{_texmfdistdir}/doc/latex/pkuthss

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19216 |21mr|texlive-pl-3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/polish/plpsfont
# catalog-date 2009-10-07 21:35:42 +0200
# catalog-license pd
# catalog-version 1.15
Name:		texlive-pl
Version:	3.0
Release:	2
Summary:	Polish extension of CM fonts in Type 1 format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/polish/plpsfont
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
This package is the Polish extension of the Computer Modern
fonts (known as PL fonts),in Adobe Type 1 (PostScript) format.
The fonts use the same .tfm files as for the version generated
by MetaFont. This release of fonts was adapted to the (mostly
guessed) demands of the Windows environment, while keeping the
fonts usable with TeX; however, encoding files are now added,
as Windows and TeX use different encoding schemes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pl/config.pl
%{_texmfdistdir}/fonts/afm/public/pl/plb10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbsy10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbx10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbx12.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbx5.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbx6.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbx7.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbx8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbx9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbxsl10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plbxti10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plcsc10.afm
%{_texmfdistdir}/fonts/afm/public/pl/pldunh10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plex10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plex9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plff10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plfi10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plfib8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plinch.afm
%{_texmfdistdir}/fonts/afm/public/pl/plitt10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plmi10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plmi12.afm
%{_texmfdistdir}/fonts/afm/public/pl/plmi5.afm
%{_texmfdistdir}/fonts/afm/public/pl/plmi6.afm
%{_texmfdistdir}/fonts/afm/public/pl/plmi7.afm
%{_texmfdistdir}/fonts/afm/public/pl/plmi8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plmi9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plmib10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plr10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plr12.afm
%{_texmfdistdir}/fonts/afm/public/pl/plr17.afm
%{_texmfdistdir}/fonts/afm/public/pl/plr5.afm
%{_texmfdistdir}/fonts/afm/public/pl/plr6.afm
%{_texmfdistdir}/fonts/afm/public/pl/plr7.afm
%{_texmfdistdir}/fonts/afm/public/pl/plr8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plr9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsl10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsl12.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsl8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsl9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsltt10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plss10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plss12.afm
%{_texmfdistdir}/fonts/afm/public/pl/plss17.afm
%{_texmfdistdir}/fonts/afm/public/pl/plss8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plss9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssbi10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssbx10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssdc10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssi10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssi12.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssi17.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssi8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssi9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssq8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plssqi8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsy10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsy5.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsy6.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsy7.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsy8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plsy9.afm
%{_texmfdistdir}/fonts/afm/public/pl/pltcsc10.afm
%{_texmfdistdir}/fonts/afm/public/pl/pltex10.afm
%{_texmfdistdir}/fonts/afm/public/pl/pltex8.afm
%{_texmfdistdir}/fonts/afm/public/pl/pltex9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plti10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plti12.afm
%{_texmfdistdir}/fonts/afm/public/pl/plti7.afm
%{_texmfdistdir}/fonts/afm/public/pl/plti8.afm
%{_texmfdistdir}/fonts/afm/public/pl/plti9.afm
%{_texmfdistdir}/fonts/afm/public/pl/pltt10.afm
%{_texmfdistdir}/fonts/afm/public/pl/pltt12.afm
%{_texmfdistdir}/fonts/afm/public/pl/pltt8.afm
%{_texmfdistdir}/fonts/afm/public/pl/pltt9.afm
%{_texmfdistdir}/fonts/afm/public/pl/plu10.afm
%{_texmfdistdir}/fonts/afm/public/pl/plvtt10.afm
%{_texmfdistdir}/fonts/enc/dvips/pl/plin.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/plit.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/plitt.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/plme.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/plmi.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/plms.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/plrm.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/plsc.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/plte.enc
%{_texmfdistdir}/fonts/enc/dvips/pl/pltt.enc
%{_texmfdistdir}/fonts/map/dvips/pl/plother.map
%{_texmfdistdir}/fonts/map/dvips/pl/pltext.map
%{_texmfdistdir}/fonts/source/public/pl/cmssbi10.mf
%{_texmfdistdir}/fonts/source/public/pl/dlr10.mf
%{_texmfdistdir}/fonts/source/public/pl/fik_mik.mf
%{_texmfdistdir}/fonts/source/public/pl/pl.mft
%{_texmfdistdir}/fonts/source/public/pl/pl_cud.mf
%{_texmfdistdir}/fonts/source/public/pl/pl_dl.mf
%{_texmfdistdir}/fonts/source/public/pl/pl_dod.mf
%{_texmfdistdir}/fonts/source/public/pl/pl_ml.mf
%{_texmfdistdir}/fonts/source/public/pl/pl_mlk.mf
%{_texmfdistdir}/fonts/source/public/pl/pl_sym.mf
%{_texmfdistdir}/fonts/source/public/pl/plb10.mf
%{_texmfdistdir}/fonts/source/public/pl/plbsy10.mf
%{_texmfdistdir}/fonts/source/public/pl/plbsy5.mf
%{_texmfdistdir}/fonts/source/public/pl/plbsy7.mf
%{_texmfdistdir}/fonts/source/public/pl/plbx10.mf
%{_texmfdistdir}/fonts/source/public/pl/plbx12.mf
%{_texmfdistdir}/fonts/source/public/pl/plbx5.mf
%{_texmfdistdir}/fonts/source/public/pl/plbx6.mf
%{_texmfdistdir}/fonts/source/public/pl/plbx7.mf
%{_texmfdistdir}/fonts/source/public/pl/plbx8.mf
%{_texmfdistdir}/fonts/source/public/pl/plbx9.mf
%{_texmfdistdir}/fonts/source/public/pl/plbxsl10.mf
%{_texmfdistdir}/fonts/source/public/pl/plbxti10.mf
%{_texmfdistdir}/fonts/source/public/pl/plcsc10.mf
%{_texmfdistdir}/fonts/source/public/pl/pldunh10.mf
%{_texmfdistdir}/fonts/source/public/pl/plex10.mf
%{_texmfdistdir}/fonts/source/public/pl/plff10.mf
%{_texmfdistdir}/fonts/source/public/pl/plfi10.mf
%{_texmfdistdir}/fonts/source/public/pl/plfib8.mf
%{_texmfdistdir}/fonts/source/public/pl/plinch.mf
%{_texmfdistdir}/fonts/source/public/pl/plitt10.mf
%{_texmfdistdir}/fonts/source/public/pl/plmi10.mf
%{_texmfdistdir}/fonts/source/public/pl/plmi12.mf
%{_texmfdistdir}/fonts/source/public/pl/plmi5.mf
%{_texmfdistdir}/fonts/source/public/pl/plmi6.mf
%{_texmfdistdir}/fonts/source/public/pl/plmi7.mf
%{_texmfdistdir}/fonts/source/public/pl/plmi8.mf
%{_texmfdistdir}/fonts/source/public/pl/plmi9.mf
%{_texmfdistdir}/fonts/source/public/pl/plmib10.mf
%{_texmfdistdir}/fonts/source/public/pl/plmib5.mf
%{_texmfdistdir}/fonts/source/public/pl/plmib7.mf
%{_texmfdistdir}/fonts/source/public/pl/plr10.mf
%{_texmfdistdir}/fonts/source/public/pl/plr12.mf
%{_texmfdistdir}/fonts/source/public/pl/plr17.mf
%{_texmfdistdir}/fonts/source/public/pl/plr5.mf
%{_texmfdistdir}/fonts/source/public/pl/plr6.mf
%{_texmfdistdir}/fonts/source/public/pl/plr7.mf
%{_texmfdistdir}/fonts/source/public/pl/plr8.mf
%{_texmfdistdir}/fonts/source/public/pl/plr9.mf
%{_texmfdistdir}/fonts/source/public/pl/plsl10.mf
%{_texmfdistdir}/fonts/source/public/pl/plsl12.mf
%{_texmfdistdir}/fonts/source/public/pl/plsl8.mf
%{_texmfdistdir}/fonts/source/public/pl/plsl9.mf
%{_texmfdistdir}/fonts/source/public/pl/plsltt10.mf
%{_texmfdistdir}/fonts/source/public/pl/plss10.mf
%{_texmfdistdir}/fonts/source/public/pl/plss12.mf
%{_texmfdistdir}/fonts/source/public/pl/plss17.mf
%{_texmfdistdir}/fonts/source/public/pl/plss8.mf
%{_texmfdistdir}/fonts/source/public/pl/plss9.mf
%{_texmfdistdir}/fonts/source/public/pl/plssbi10.mf
%{_texmfdistdir}/fonts/source/public/pl/plssbx10.mf
%{_texmfdistdir}/fonts/source/public/pl/plssdc10.mf
%{_texmfdistdir}/fonts/source/public/pl/plssi10.mf
%{_texmfdistdir}/fonts/source/public/pl/plssi12.mf
%{_texmfdistdir}/fonts/source/public/pl/plssi17.mf
%{_texmfdistdir}/fonts/source/public/pl/plssi8.mf
%{_texmfdistdir}/fonts/source/public/pl/plssi9.mf
%{_texmfdistdir}/fonts/source/public/pl/plssq8.mf
%{_texmfdistdir}/fonts/source/public/pl/plssqi8.mf
%{_texmfdistdir}/fonts/source/public/pl/plsy10.mf
%{_texmfdistdir}/fonts/source/public/pl/plsy5.mf
%{_texmfdistdir}/fonts/source/public/pl/plsy6.mf
%{_texmfdistdir}/fonts/source/public/pl/plsy7.mf
%{_texmfdistdir}/fonts/source/public/pl/plsy8.mf
%{_texmfdistdir}/fonts/source/public/pl/plsy9.mf
%{_texmfdistdir}/fonts/source/public/pl/pltcsc10.mf
%{_texmfdistdir}/fonts/source/public/pl/pltex10.mf
%{_texmfdistdir}/fonts/source/public/pl/pltex8.mf
%{_texmfdistdir}/fonts/source/public/pl/pltex9.mf
%{_texmfdistdir}/fonts/source/public/pl/plti10.mf
%{_texmfdistdir}/fonts/source/public/pl/plti12.mf
%{_texmfdistdir}/fonts/source/public/pl/plti7.mf
%{_texmfdistdir}/fonts/source/public/pl/plti8.mf
%{_texmfdistdir}/fonts/source/public/pl/plti9.mf
%{_texmfdistdir}/fonts/source/public/pl/pltt10.mf
%{_texmfdistdir}/fonts/source/public/pl/pltt12.mf
%{_texmfdistdir}/fonts/source/public/pl/pltt8.mf
%{_texmfdistdir}/fonts/source/public/pl/pltt9.mf
%{_texmfdistdir}/fonts/source/public/pl/plu10.mf
%{_texmfdistdir}/fonts/source/public/pl/plvtt10.mf
%{_texmfdistdir}/fonts/source/public/pl/polan.mf
%{_texmfdistdir}/fonts/source/public/pl/polkap.mf
%{_texmfdistdir}/fonts/source/public/pl/polkur.mf
%{_texmfdistdir}/fonts/source/public/pl/polmat.mf
%{_texmfdistdir}/fonts/source/public/pl/poltyt.mf
%{_texmfdistdir}/fonts/tfm/public/pl/plb10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbsy10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbsy5.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbsy7.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbx5.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbx6.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbx7.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plbxti10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pldunh10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plex10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plex9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plff10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plfi10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plfib8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plinch.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plitt10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmi10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmi12.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmi5.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmi6.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmi7.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmi8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmi9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmib10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmib5.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plmib7.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plr10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plr12.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plr17.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plr5.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plr6.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plr7.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plr8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plr9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plss10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plss12.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plss17.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plss8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plss9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssbi10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssdc10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssi10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssi12.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssi17.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssi8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssi9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssq8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plssqi8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsy10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsy5.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsy6.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsy7.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsy8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plsy9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pltcsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pltex10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pltex8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pltex9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plti10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plti12.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plti7.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plti8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plti9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pltt10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pltt12.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pltt8.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/pltt9.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plu10.tfm
%{_texmfdistdir}/fonts/tfm/public/pl/plvtt10.tfm
%{_texmfdistdir}/fonts/type1/public/pl/plb10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plb10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbsy10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbsy10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbx10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbx10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbx12.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbx12.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbx5.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbx5.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbx6.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbx6.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbx7.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbx7.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbx8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbx8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbx9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbx9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbxsl10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbxsl10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plbxti10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plbxti10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plcsc10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plcsc10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pldunh10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pldunh10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plex10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plex10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plex9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plex9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plff10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plff10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plfi10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plfi10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plfib8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plfib8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plinch.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plinch.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plitt10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plitt10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plmi10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plmi10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plmi12.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plmi12.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plmi5.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plmi5.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plmi6.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plmi6.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plmi7.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plmi7.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plmi8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plmi8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plmi9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plmi9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plmib10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plmib10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plr10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plr10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plr12.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plr12.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plr17.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plr17.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plr5.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plr5.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plr6.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plr6.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plr7.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plr7.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plr8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plr8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plr9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plr9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsl10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsl10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsl12.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsl12.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsl8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsl8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsl9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsl9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsltt10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsltt10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plss10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plss10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plss12.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plss12.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plss17.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plss17.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plss8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plss8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plss9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plss9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssbi10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssbi10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssbx10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssbx10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssdc10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssdc10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssi10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssi10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssi12.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssi12.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssi17.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssi17.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssi8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssi8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssi9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssi9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssq8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssq8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plssqi8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plssqi8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsy10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsy10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsy5.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsy5.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsy6.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsy6.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsy7.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsy7.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsy8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsy8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plsy9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plsy9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pltcsc10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pltcsc10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pltex10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pltex10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pltex8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pltex8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pltex9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pltex9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plti10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plti10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plti12.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plti12.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plti7.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plti7.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plti8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plti8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plti9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plti9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pltt10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pltt10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pltt12.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pltt12.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pltt8.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pltt8.pfm
%{_texmfdistdir}/fonts/type1/public/pl/pltt9.pfb
%{_texmfdistdir}/fonts/type1/public/pl/pltt9.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plu10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plu10.pfm
%{_texmfdistdir}/fonts/type1/public/pl/plvtt10.pfb
%{_texmfdistdir}/fonts/type1/public/pl/plvtt10.pfm
%_texmf_updmap_d/pl
%doc %{_texmfdistdir}/doc/fonts/pl/README-T1.ENG
%doc %{_texmfdistdir}/doc/fonts/pl/README-T1.POL
%doc %{_texmfdistdir}/doc/fonts/pl/README.ENG
%doc %{_texmfdistdir}/doc/fonts/pl/README.POL
%doc %{_texmfdistdir}/doc/fonts/pl/plsample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/pl <<EOF
MixedMap plother.map
MixedMap pltext.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19217 |21mr|texlive-placeins-2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19848
# category Package
# catalog-ctan /macros/latex/contrib/placeins
# catalog-date 2010-09-22 15:00:44 +0200
# catalog-license pd
# catalog-version 2.2
Name:		texlive-placeins
Version:	2.2
Release:	7
Summary:	Control float placement
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/placeins
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/placeins.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/placeins.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a \FloatBarrier command, beyond which floats may not
pass; useful, for example, to ensure all floats for a section
appear before the next \section command.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/placeins/placeins.sty
%doc %{_texmfdistdir}/doc/latex/placeins/placeins-doc.pdf
%doc %{_texmfdistdir}/doc/latex/placeins/placeins-doc.tex
%doc %{_texmfdistdir}/doc/latex/placeins/placeins.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19218 |21mr|texlive-plain-3.141592653-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-plain
Version:	3.141592653
Release:	2
Epoch:		1
Summary:	TeXLive plain package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plain.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive plain package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/plain
%{_texmfdistdir}/tex/plain

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19219 |21mr|texlive-plain-doc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-plain-doc
Version:	20190228
Release:	1
Summary:	A list of plain.tex cs names
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/plain-doc/csname.txt
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plain-doc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plain-doc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document constitutes a list of every control sequence name
(csname) described in the TeXbook, together with an indication
of whether the csname is a primitive TeX command, or is defined
in plain.tex.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/plain/plain-doc/csname.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19220 |21mr|texlive-plantslabels-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/plantslabels
# catalog-date 2012-06-08 17:19:18 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-plantslabels
Version:	1.0
Release:	12
Summary:	Write labels for plants
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/plantslabels
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plantslabels.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plantslabels.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a command \plant, which has three mandatory
and seven optional argument. The package uses the labels.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/plantslabels/plantslabels.sty
%doc %{_texmfdistdir}/doc/latex/plantslabels/README
%doc %{_texmfdistdir}/doc/latex/plantslabels/doc/pdf/plantslabels.pdf
%doc %{_texmfdistdir}/doc/latex/plantslabels/doc/tex/Makefile
%doc %{_texmfdistdir}/doc/latex/plantslabels/doc/tex/perso.ist
%doc %{_texmfdistdir}/doc/latex/plantslabels/doc/tex/plantslabels.forlisting
%doc %{_texmfdistdir}/doc/latex/plantslabels/doc/tex/plantslabels.tex
%doc %{_texmfdistdir}/doc/latex/plantslabels/example/pdf/example.pdf
%doc %{_texmfdistdir}/doc/latex/plantslabels/example/tex/cactus.eps
%doc %{_texmfdistdir}/doc/latex/plantslabels/example/tex/example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19221 |21mr|texlive-plari-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/plari
# catalog-date 2007-02-26 21:26:45 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-plari
Version:	20190228
Release:	1
Summary:	Typesetting stageplay scripts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/plari
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plari.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plari.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plari.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Plari (the name comes from the Finnish usage for the working
copy of a play) is a report-alike class, without section
headings, and with paragraphs vertically separated rather than
indented.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/plari/plari.cls
%doc %{_texmfdistdir}/doc/latex/plari/COPYING
%doc %{_texmfdistdir}/doc/latex/plari/README
%doc %{_texmfdistdir}/doc/latex/plari/plari.pdf
#- source
%doc %{_texmfdistdir}/source/latex/plari/Makefile
%doc %{_texmfdistdir}/source/latex/plari/plari.dtx
%doc %{_texmfdistdir}/source/latex/plari/plari.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19222 |21mr|texlive-plates-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/plates
# catalog-date 2007-01-08 00:37:16 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-plates
Version:	0.1
Release:	7
Summary:	Arrange for "plates" sections of documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/plates
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plates.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plates.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The plates package provides a simple facility for inserting
colour figures in a document when they should be gathered and
printed together as in a book's section of colour plates. The
package provides a plate environment that takes the place of
the figure environment for such colour images.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/plates/endplate.sty
%{_texmfdistdir}/tex/latex/plates/plates.sty
%doc %{_texmfdistdir}/doc/latex/plates/README
%doc %{_texmfdistdir}/doc/latex/plates/plates.pdf
%doc %{_texmfdistdir}/doc/latex/plates/plates.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19223 |21mr|texlive-play-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-play
Version:	20180303
Release:	2
Summary:	Typeset drama using LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/play
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/play.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/play.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/play.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class and style file that supports the typesetting of plays,
including options for line numbering.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/play
%doc %{_texmfdistdir}/doc/latex/play
#- source
%doc %{_texmfdistdir}/source/latex/play

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19224 |21mr|texlive-plweb-3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/gene/pl
# catalog-date 2008-09-11 18:52:21 +0200
# catalog-license other-free
# catalog-version 3.0
Name:		texlive-plweb
Version:	3.0
Release:	7
Summary:	Literate Programming for Prolog with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gene/pl
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plweb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plweb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/plweb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Instead of having to transform the common source into program
or documentation, the central idea was to develop a method to
have one common source which can be interpreted by a Prolog
system as well as by LaTeX, whether that Prolog system be C-
Prolog, Quintus-Prolog, or ECLiPSe.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/plweb/pcode.sty
%{_texmfdistdir}/tex/latex/plweb/pl.cfg
%{_texmfdistdir}/tex/latex/plweb/pl.sty
%doc %{_texmfdistdir}/doc/latex/plweb/README
%doc %{_texmfdistdir}/doc/latex/plweb/pl.pdf
%doc %{_texmfdistdir}/doc/latex/plweb/pl.tex
%doc %{_texmfdistdir}/doc/latex/plweb/sample.pl
#- source
%doc %{_texmfdistdir}/source/latex/plweb/Makefile
%doc %{_texmfdistdir}/source/latex/plweb/pl.dtx
%doc %{_texmfdistdir}/source/latex/plweb/pl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19225 |21mr|texlive-pmgraph-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pmgraph
# catalog-date 2008-11-04 08:05:43 +0100
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-pmgraph
Version:	1.0
Release:	7
Summary:	"Poor man's" graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pmgraph
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pmgraph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pmgraph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of extensions to LaTeX picture environment, including a
wider range of vectors, and a lot more box frame styles.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pmgraph/pmgraph.sty
%doc %{_texmfdistdir}/doc/latex/pmgraph/COPYING
%doc %{_texmfdistdir}/doc/latex/pmgraph/README
%doc %{_texmfdistdir}/doc/latex/pmgraph/pmgraph.pdf
%doc %{_texmfdistdir}/doc/latex/pmgraph/pmgraph.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19226 |21mr|texlive-pmx-2.84-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pmx
Version:	2.84
Release:	3
Summary:	Preprocessor for MusiXTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/pmx
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pmx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pmx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-pmx.bin

%description
PMX is a preprocessor for MusiXTeX. It builds the TeX input
file from a file in a much simpler language, making most of the
layout decisions by itself. An auxiliary program makes single-
player parts from a multi-player score. For proof-listening,
PMX can make a MIDI file of your score. The present version
requires at least version 1.15 of MusiXTeX, running on an e-
tex-enhanced TeX system.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pmx
%doc %{_texmfdistdir}/doc/generic/pmx
%doc %{_mandir}/man1/pmxab.1*
%doc %{_texmfdistdir}/doc/man/man1/pmxab.man1.pdf
%doc %{_mandir}/man1/scor2prt.1*
%doc %{_texmfdistdir}/doc/man/man1/scor2prt.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19227 |21mr|texlive-pmxchords-2.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32443
# category Package
# catalog-ctan /support/pmxchords
# catalog-date 2013-12-17 16:10:38 +0100
# catalog-license gpl2
# catalog-version 2.0.1
Name:		texlive-pmxchords
Version:	2.0.2
Release:	2
Summary:	Produce chord information to go with pmx output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/pmxchords
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pmxchords.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pmxchords.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pmxchords.bin = %{EVRD}

%description
The bundle supplements pmx, providing the means of typesetting
chords above the notes of a score. The bundle contains: macros
for typing the chords; a Lua script to transpose chord macros
to the required key signature; and support scripts for common
requirements.

#-----------------------------------------------------------------------
%files
%{_bindir}/pmxchords
%{_texmfdistdir}/scripts/pmxchords/ChordsTr.lua
%{_texmfdistdir}/scripts/pmxchords/pmxchords.lua
%{_texmfdistdir}/tex/generic/pmxchords/chords.tex
%{_texmfdistdir}/tex/generic/pmxchords/chordsCZ.tex
%doc %{_mandir}/man1/pmxchords.1*
%doc %{_texmfdistdir}/doc/man/man1/pmxchords.man1.pdf
%doc %{_texmfdistdir}/doc/pmxchords/README
%doc %{_texmfdistdir}/doc/pmxchords/chordsRef.pdf
%doc %{_texmfdistdir}/doc/pmxchords/chordsRef.tex
%doc %{_texmfdistdir}/doc/pmxchords/chordsRefCZ.pdf
%doc %{_texmfdistdir}/doc/pmxchords/chordsRefCZ.tex
%doc %{_texmfdistdir}/doc/pmxchords/examples/jazz/misty/misty.pdf
%doc %{_texmfdistdir}/doc/pmxchords/examples/jazz/misty/misty.pmx
%doc %{_texmfdistdir}/doc/pmxchords/examples/jazz/schema/schema.pdf
%doc %{_texmfdistdir}/doc/pmxchords/examples/jazz/schema/schema.pmx
%doc %{_texmfdistdir}/doc/pmxchords/examples/jazz/schema/schema_full.pdf
%doc %{_texmfdistdir}/doc/pmxchords/examples/jazz/schema/schema_full.pmx
%doc %{_texmfdistdir}/doc/pmxchords/examples/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pdf
%doc %{_texmfdistdir}/doc/pmxchords/examples/noel/aj_co_to_hlasaju/aj_co_to_hlasaju.pmx
%doc %{_texmfdistdir}/doc/pmxchords/examples/noel/pasli_ovce_valasi/README
%doc %{_texmfdistdir}/doc/pmxchords/examples/noel/pasli_ovce_valasi/pasli_ovce_valasi.pdf
%doc %{_texmfdistdir}/doc/pmxchords/examples/noel/pasli_ovce_valasi/pasli_ovce_valasi.pmx
%doc %{_texmfdistdir}/doc/pmxchords/gpl-2.0.txt
%doc %{_texmfdistdir}/doc/pmxchords/pmxchords-install.pdf
%doc %{_texmfdistdir}/doc/pmxchords/pmxchords-install.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pmxchords/pmxchords.lua pmxchords
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19228 |21mr|texlive-poemscol-2.97-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-poemscol
Version:	2.97
Release:	2
Summary:	Typesetting Critical Editions of Poetry
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/poemscol
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poemscol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poemscol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poemscol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers LaTeX macros for typesetting critical
editions of poetry. Its features include automatic
linenumbering, generation of separate endnotes sections for
emendations, textual collations, and explanatory notes, special
marking for cases in which page breaks occur during stanza
breaks, running headers of the form 'Notes to pp. xx-yy' for
the notes sections, index of titles and first lines, and
automatic generation of a table of contents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/poemscol
%doc %{_texmfdistdir}/doc/latex/poemscol
#- source
%doc %{_texmfdistdir}/source/latex/poemscol

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19229 |21mr|texlive-poetrytex-3.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-poetrytex
Version:	3.0.1
Release:	3
Summary:	Typeset anthologies of poetry
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/poetrytex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poetrytex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poetrytex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poetrytex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is designed to aid in the management and formatting
of anthologies of poetry and other writings; it does not
concern itself with actually typesettinig the verse itself.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/poetrytex
%doc %{_texmfdistdir}/doc/latex/poetrytex
#- source
%doc %{_texmfdistdir}/source/latex/poetrytex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19230 |21mr|texlive-polski-1.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-polski
Version:	1.3.4
Release:	2
Summary:	Typeset Polish documents with LaTeX and Polish fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/polski
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polski.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polski.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polski.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-pl
Requires:	texlive-hyphen-polish

%description
Tools to typeset documents in Polish using LaTeX2e with Polish
fonts (the so-called PL fonts), EC fonts or CM fonts. (This
package was previously known as platex, but has been renamed to
resolve a name clash.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/polski
%doc %{_texmfdistdir}/doc/latex/polski
#- source
%doc %{_texmfdistdir}/source/latex/polski

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19231 |21mr|texlive-poltawski-1.101-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20075
# category Package
# catalog-ctan /fonts/poltawski
# catalog-date 2010-10-12 09:30:05 +0200
# catalog-license gfsl
# catalog-version 1.101
Name:		texlive-poltawski
Version:	1.101
Release:	7
Summary:	Antykwa Poltawskiego Family of Fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/poltawski
License:	GFSL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poltawski.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poltawski.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package contains the Antykwa Poltawskiego family of fonts
in the PostScript Type 1 and OpenType formats. The original
font was designed in the twenties of the XX century by the
Polish typographer Adam Poltawski(1881-1952). Following the
route set out by the Latin Modern and TeX Gyre projects
(http://www.gust.org.pl/projects/e-foundry), the Antykwa
Poltawskiego digitisation project aims at providing a rich
collection of diacritical characters in the attempt to cover as
many Latin-based scripts as possible. To our knowledge, the
repertoire of characters covers all European languages as well
as some other Latin-based alphabets such as Vietnamese and
Navajo; at the request of users, recent extensions (following
the enhancement of the Latin Modern collection) provide glyphs
sufficient for typesetting of romanized transliterations of
Arabic and Sanskrit scripts. The Antykwa Poltawskiego family
consists of 4 weights (light, normal, medium, bold), each
having upright and italic forms and one of 5 design sizes: 6,
8, 10, 12 and 17pt (in the OTF lingo: extended, semiextended,
normal, semicondensed, and condensed, respectively).
Altogether, the collection comprises 40 font files, containing
the same repertoire of 1126 characters. The preliminary version
of Antykwa Poltawskiego (antp package) released in 2000 is
rendered obsolete by this package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpb10.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpb12.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpb17.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpb6.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpb8.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpbi10.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpbi12.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpbi17.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpbi6.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpbi8.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpl10.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpl12.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpl17.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpl6.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpl8.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpli10.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpli12.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpli17.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpli6.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpli8.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpm10.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpm12.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpm17.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpm6.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpm8.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpmi10.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpmi12.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpmi17.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpmi6.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpmi8.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpr10.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpr12.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpr17.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpr6.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpr8.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpri10.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpri12.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpri17.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpri6.afm
%{_texmfdistdir}/fonts/afm/gust/poltawski/antpri8.afm
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-cs-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-cs.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-ec-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-ec.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-l7x-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-l7x.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-qx-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-qx.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-rm-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-rm.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-t5-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-t5.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-texnansi-sc.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-texnansi.enc
%{_texmfdistdir}/fonts/enc/dvips/poltawski/ap-ts1.enc
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap-cs.map
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap-ec.map
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap-l7x.map
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap-qx.map
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap-rm.map
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap-t5.map
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap-texnansi.map
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap-ts1.map
%{_texmfdistdir}/fonts/map/dvips/poltawski/ap.map
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpolt-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpolt-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpolt-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpolt-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltcond-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltcond-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltcond-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltcond-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltexpd-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltexpd-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltexpd-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltexpd-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltlt-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltlt-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltlt-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltlt-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltcond-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltcond-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltcond-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltcond-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltexpd-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltexpd-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltexpd-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltexpd-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltsemicond-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltsemicond-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltsemicond-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltsemicond-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltsemiexpd-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltsemiexpd-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltsemiexpd-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltltsemiexpd-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltsemicond-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltsemicond-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltsemicond-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltsemicond-regular.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltsemiexpd-bold.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltsemiexpd-bolditalic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltsemiexpd-italic.otf
%{_texmfdistdir}/fonts/opentype/gust/poltawski/antpoltsemiexpd-regular.otf
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpb8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpbi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpl8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpli8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpm8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpmi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpr8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/cs-antpri8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpb8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpbi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpl8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpli8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpm8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpmi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpr8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ec-antpri8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpb8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpbi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpl8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpli8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpm8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpmi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpr8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/l7x-antpri8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpb8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpbi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpl8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpli8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpm8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpmi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpr8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/qx-antpri8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpb8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpbi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpl8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpli8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpm8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpmi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpr8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/rm-antpri8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpb8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpbi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpl8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpli8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpm8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpmi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpr8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/t5-antpri8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpb8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpbi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpl8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpli8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpm8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpmi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpr8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri10-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri12-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri17-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri6-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri8-sc.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/texnansi-antpri8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpb10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpb12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpb17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpb6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpb8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpbi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpbi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpbi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpbi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpbi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpl10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpl12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpl17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpl6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpl8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpli10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpli12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpli17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpli6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpli8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpm10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpm12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpm17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpm6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpm8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpmi10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpmi12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpmi17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpmi6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpmi8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpr10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpr12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpr17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpr6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpr8.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpri10.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpri12.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpri17.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpri6.tfm
%{_texmfdistdir}/fonts/tfm/gust/poltawski/ts1-antpri8.tfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb10.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb10.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb12.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb12.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb17.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb17.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb6.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb6.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb8.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpb8.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi10.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi10.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi12.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi12.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi17.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi17.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi6.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi6.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi8.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpbi8.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl10.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl10.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl12.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl12.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl17.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl17.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl6.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl6.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl8.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpl8.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli10.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli10.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli12.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli12.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli17.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli17.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli6.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli6.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli8.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpli8.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm10.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm10.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm12.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm12.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm17.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm17.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm6.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm6.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm8.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpm8.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi10.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi10.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi12.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi12.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi17.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi17.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi6.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi6.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi8.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpmi8.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr10.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr10.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr12.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr12.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr17.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr17.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr6.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr6.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr8.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpr8.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri10.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri10.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri12.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri12.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri17.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri17.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri6.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri6.pfm
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri8.pfb
%{_texmfdistdir}/fonts/type1/gust/poltawski/antpri8.pfm
%{_texmfdistdir}/tex/latex/poltawski/antpolt.sty
%{_texmfdistdir}/tex/latex/poltawski/il2antp.fd
%{_texmfdistdir}/tex/latex/poltawski/il2antpl.fd
%{_texmfdistdir}/tex/latex/poltawski/l7xantp.fd
%{_texmfdistdir}/tex/latex/poltawski/l7xantpl.fd
%{_texmfdistdir}/tex/latex/poltawski/ly1antp.fd
%{_texmfdistdir}/tex/latex/poltawski/ly1antpl.fd
%{_texmfdistdir}/tex/latex/poltawski/ot1antp.fd
%{_texmfdistdir}/tex/latex/poltawski/ot1antpl.fd
%{_texmfdistdir}/tex/latex/poltawski/ot4antp.fd
%{_texmfdistdir}/tex/latex/poltawski/ot4antpl.fd
%{_texmfdistdir}/tex/latex/poltawski/qxantp.fd
%{_texmfdistdir}/tex/latex/poltawski/qxantpl.fd
%{_texmfdistdir}/tex/latex/poltawski/t1antp.fd
%{_texmfdistdir}/tex/latex/poltawski/t1antpl.fd
%{_texmfdistdir}/tex/latex/poltawski/t5antp.fd
%{_texmfdistdir}/tex/latex/poltawski/t5antpl.fd
%{_texmfdistdir}/tex/latex/poltawski/ts1antp.fd
%{_texmfdistdir}/tex/latex/poltawski/ts1antpl.fd
%doc %{_texmfdistdir}/doc/fonts/poltawski/GUST-FONT-LICENSE.txt
%doc %{_texmfdistdir}/doc/fonts/poltawski/MANIFEST-Antykwa-Poltawskiego.txt
%doc %{_texmfdistdir}/doc/fonts/poltawski/README-Antykwa-Poltawskiego.txt
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpb10.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpb12.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpb17.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpb6.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpb8.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpbi10.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpbi12.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpbi17.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpbi6.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpbi8.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpl10.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpl12.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpl17.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpl6.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpl8.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpli10.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpli12.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpli17.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpli6.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpli8.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpm10.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpm12.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpm17.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpm6.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpm8.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpmi10.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpmi12.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpmi17.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpmi6.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpmi8.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpr10.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpr12.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpr17.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpr6.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpr8.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpri10.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpri12.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpri17.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpri6.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/antpri8.fea
%doc %{_texmfdistdir}/doc/fonts/poltawski/ap-hist.txt
%doc %{_texmfdistdir}/doc/fonts/poltawski/ap-info.pdf
%doc %{_texmfdistdir}/doc/fonts/poltawski/ap-logo.pdf
%doc %{_texmfdistdir}/doc/fonts/poltawski/goadb100.nam
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapot1.pdf
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapot1.tex
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapot4.pdf
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapot4.tex
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapqx.pdf
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapqx.tex
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapt1.pdf
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapt1.tex
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapts1.pdf
%doc %{_texmfdistdir}/doc/fonts/poltawski/tstapts1.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19232 |21mr|texlive-polyglossia-1.44-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-polyglossia
Version:	1.44
Release:	2
Summary:	Modern multilingual typesetting with XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/polyglossia
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polyglossia.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polyglossia.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polyglossia.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-etoolbox
Requires:	texlive-fontspec
Requires:	texlive-ifluatex
Requires:	texlive-makecmds
Requires:	texlive-xkeyval
Requires:	texlive-luabidi

%description
This package provides a complete Babel replacement for users of
LuaLaTeX and XeLaTeX; it relies on the fontspec package,
version 2.0 at least. This is the first release that supports
use with LuaLaTeX; it should be considered "transitional" in
that role.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/polyglossia
%{_texmfdistdir}/tex/latex/polyglossia
%doc %{_texmfdistdir}/doc/latex/polyglossia
#- source
%doc %{_texmfdistdir}/source/latex/polyglossia

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19233 |21mr|texlive-polyglot-20111103-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-polyglot
Version:	20111103
Release:	7
Summary:	TeXLive polyglot package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polyglot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polyglot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polyglot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive polyglot package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/polyglot/polyglot.cfg
%{_texmfdistdir}/tex/latex/polyglot/polyglot.def
%{_texmfdistdir}/tex/latex/polyglot/polyglot.sty
%doc %{_texmfdistdir}/doc/latex/polyglot/sample.dvi
%doc %{_texmfdistdir}/doc/latex/polyglot/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/polyglot/langs/english.ld
%doc %{_texmfdistdir}/source/latex/polyglot/langs/french.ld
%doc %{_texmfdistdir}/source/latex/polyglot/langs/french.ot1
%doc %{_texmfdistdir}/source/latex/polyglot/langs/german.ld
%doc %{_texmfdistdir}/source/latex/polyglot/langs/german.ot1
%doc %{_texmfdistdir}/source/latex/polyglot/langs/r_hebrew.ld
%doc %{_texmfdistdir}/source/latex/polyglot/langs/spanish.ld
%doc %{_texmfdistdir}/source/latex/polyglot/langs/spanish.ot1
%doc %{_texmfdistdir}/source/latex/polyglot/polyglot.dtx
%doc %{_texmfdistdir}/source/latex/polyglot/polyglot.ins
%doc %{_texmfdistdir}/source/latex/polyglot/polyglot.ltx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19234 |21mr|texlive-polynom-0.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/polynom
# catalog-date 2007-01-13 23:45:25 +0100
# catalog-license lppl
# catalog-version 0.17
Name:		texlive-polynom
Version:	0.19
Release:	2
Summary:	Macros for manipulating polynomials
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/polynom
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polynom.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polynom.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polynom.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The polynom package implements macros for manipulating
polynomials, for example it can typeset long polynomial
divisions. The main test case and application is the polynomial
ring in one variable with rational coefficients.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/polynom/polynom.sty
%doc %{_texmfdistdir}/doc/latex/polynom/README
%doc %{_texmfdistdir}/doc/latex/polynom/polydemo.pdf
%doc %{_texmfdistdir}/doc/latex/polynom/polydemo.tex
%doc %{_texmfdistdir}/doc/latex/polynom/polynom.pdf
#- source
%doc %{_texmfdistdir}/source/latex/polynom/polynom.dtx
%doc %{_texmfdistdir}/source/latex/polynom/polynom.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19235 |21mr|texlive-polynomial-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/polynomial
# catalog-date 2008-08-23 00:06:02 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-polynomial
Version:	1.0
Release:	7
Summary:	Typeset (univariate) polynomials
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/polynomial
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polynomial.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polynomial.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polynomial.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers an easy way to write (univariate)
polynomials and rational functions. It defines two commands,
one for polynomials \polynomial{coeffs} and one for rational
functions \polynomialfrac{Numerator}{Denominator}. Both
commands take lists of coefficients as arguments, and offer
limited optional behaviour.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/polynomial/polynomial.sty
%doc %{_texmfdistdir}/doc/latex/polynomial/README
%doc %{_texmfdistdir}/doc/latex/polynomial/polynomial.pdf
#- source
%doc %{_texmfdistdir}/source/latex/polynomial/polynomial.dtx
%doc %{_texmfdistdir}/source/latex/polynomial/polynomial.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19236 |21mr|texlive-polytable-0.8.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31235
# category Package
# catalog-ctan /macros/latex/contrib/polytable
# catalog-date 2012-05-31 00:57:47 +0200
# catalog-license lppl
# catalog-version 0.8.2
Name:		texlive-polytable
Version:	0.8.2
Release:	13
Summary:	Tabular-like environments with named columns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/polytable
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polytable.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polytable.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/polytable.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements a variant of tabular-like environments
where columns can be given a name and entries can flexibly be
placed between arbitrary columns. Complex alignment-based
layouts, for example for program code, are possible.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/polytable/polytable.sty
%doc %{_texmfdistdir}/doc/latex/polytable/README
%doc %{_texmfdistdir}/doc/latex/polytable/polytable.pdf
#- source
%doc %{_texmfdistdir}/source/latex/polytable/polytable.dtx
%doc %{_texmfdistdir}/source/latex/polytable/polytable.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19237 |21mr|texlive-postcards-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21641
# category Package
# catalog-ctan /macros/latex/contrib/postcards
# catalog-date 2009-01-23 15:11:09 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-postcards
Version:	20190228
Release:	1
Summary:	Facilitates mass-mailing of postcards (junkmail)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/postcards
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/postcards.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/postcards.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A modification of the standard LaTeX letter class which prints
multiple, pre-stamped, 5.5" by 3.5" postcards (a US standard
size) via the envlab and mailing packages. An address database
is employed to address the front side of each postcard and a
message is printed on the back side of all. An illustrative
example is provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/postcards/postcards.cls
%doc %{_texmfdistdir}/doc/latex/postcards/README
%doc %{_texmfdistdir}/doc/latex/postcards/datasmp.txt
%doc %{_texmfdistdir}/doc/latex/postcards/pcardsmp.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19238 |21mr|texlive-poster-mac-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18305
# category Package
# catalog-ctan /macros/generic/poster
# catalog-date 2010-05-15 22:56:34 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-poster-mac
Version:	1.1
Release:	7
Summary:	Make posters and banners with TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/poster
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poster-mac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/poster-mac.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers macros for making posters and banners with
TeX. It is compatible with most TeX macro formats, including
Plain TeX, LaTeX, AmSTeX, and AmS-LaTeX. The package creates a
poster as huge box, which is then distributed over as many
printer pages as necessary. The only special requirement is
that your printer not be bothered by text that lies off the
page. This is true of most printers, including laser printers
and PostScript printers.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/poster-mac/poster.sty
%{_texmfdistdir}/tex/generic/poster-mac/poster.tex
%doc %{_texmfdistdir}/doc/generic/poster-mac/Changes
%doc %{_texmfdistdir}/doc/generic/poster-mac/Makefile
%doc %{_texmfdistdir}/doc/generic/poster-mac/README
%doc %{_texmfdistdir}/doc/generic/poster-mac/poster-doc.pdf
%doc %{_texmfdistdir}/doc/generic/poster-mac/poster-doc.tex
%doc %{_texmfdistdir}/doc/generic/poster-mac/poster1.pdf
%doc %{_texmfdistdir}/doc/generic/poster-mac/poster2.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19239 |21mr|texlive-powerdot-1.5c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32549
# category Package
# catalog-ctan /macros/latex/contrib/powerdot
# catalog-date 2014-01-02 07:32:11 +0100
# catalog-license lppl1.3
# catalog-version 1.5
Name:		texlive-powerdot
Version:	1.5c
Release:	2
Epoch:		1
Summary:	A presentation class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/powerdot
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/powerdot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/powerdot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/powerdot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Powerdot is a presentation class for LaTeX that allows for the
quick and easy development of professional presentations. It
comes with many tools that enhance presentations and aid the
presenter. Examples are automatic overlays, personal notes and
a handout mode. To view a presentation, DVI, PS or PDF output
can be used. A powerful template system is available to easily
develop new styles. A LyX layout file is provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/powerdot/powerdot-aggie.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-bframe.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-ciment.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-default.ps
%{_texmfdistdir}/tex/latex/powerdot/powerdot-default.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-elcolors.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-fyma.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-horatio.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-husky.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-ikeda.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-jefka.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-klope.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-paintings.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-pazik.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-sailor.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-simple.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-tycja.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot-upen.sty
%{_texmfdistdir}/tex/latex/powerdot/powerdot.cls
%doc %{_texmfdistdir}/doc/latex/powerdot/README
%doc %{_texmfdistdir}/doc/latex/powerdot/manifest.txt
%doc %{_texmfdistdir}/doc/latex/powerdot/pdpream.ble
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot-example.lyx
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot-example.tex
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot-example1.tex
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot-example2.tex
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot-example3.tex
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot-styleexample.tex
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot-styletest.tex
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot.bib
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot.layout
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdot.pdf
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdotDE.pdf
%doc %{_texmfdistdir}/doc/latex/powerdot/powerdotDE.tex
#- source
%doc %{_texmfdistdir}/source/latex/powerdot/powerdot.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19240 |21mr|texlive-powerdot-FUBerlin-0.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/powerdot-FUBerlin
# catalog-date 2009-07-30 21:57:53 +0200
# catalog-license lppl
# catalog-version 0.01
Name:		texlive-powerdot-FUBerlin
Version:	0.01
Release:	7
Summary:	Powerdot, using the style of FU Berlin
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/powerdot-FUBerlin
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/powerdot-FUBerlin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/powerdot-FUBerlin.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides a powerdot-derived class and a package for
use with powerdot to provide the corporate design of the Free
University in Berlin. Users may use the class itself
(FUpowerdot) or use the package in the usual way with
\style=BerlinFU as a class option. Examples of using both the
class and the package are provided; the PDF is visually
identical, so the catalogue only lists one; the sources of the
examples do of course differ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/powerdot-FUBerlin/FUpowerdot.cls
%{_texmfdistdir}/tex/latex/powerdot-FUBerlin/powerdot-BerlinFU.sty
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/FULogo.eps
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/FULogo_RGB.eps
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/FUbib.eps
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/FUseal.eps
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/README
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/exampleClass.pdf
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/exampleClass.tex
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/exampleStyle.pdf
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/exampleStyle.tex
%doc %{_texmfdistdir}/doc/latex/powerdot-FUBerlin/silberlaube2.eps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19241 |21mr|texlive-ppr-prv-0.13c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ppr-prv
# catalog-date 2007-01-13 23:45:25 +0100
# catalog-license lppl
# catalog-version 0.13c
Name:		texlive-ppr-prv
Version:	0.13c
Release:	7
Summary:	Prosper preview
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ppr-prv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ppr-prv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ppr-prv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ppr-prv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This class is used with LaTeX presentations using the prosper
class. ppr-prv stands for 'Prosper Preview'. The aim of this
class is to produce a printable version of the slides written
with Prosper, with two slides per page.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ppr-prv/HAP-ppr-prv.def
%{_texmfdistdir}/tex/latex/ppr-prv/ppr-prv.cls
%doc %{_texmfdistdir}/doc/latex/ppr-prv/README
%doc %{_texmfdistdir}/doc/latex/ppr-prv/ppr-prv.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ppr-prv/ppr-prv.dtx
%doc %{_texmfdistdir}/source/latex/ppr-prv/ppr-prv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19242 |21mr|texlive-pracjourn-0.4n-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pracjourn
# catalog-date 2008-11-30 13:31:17 +0100
# catalog-license gpl
# catalog-version 0.4n
Name:		texlive-pracjourn
Version:	0.4n
Release:	7
Summary:	Typeset articles for PracTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pracjourn
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pracjourn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pracjourn.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pracjourn.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The pracjourn class is used for typesetting articles in the
PracTeX Journal. It is based on the article class with
modifications to allow for more flexible front-matter and
revision control, among other small changes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pracjourn/pracjourn.cls
%doc %{_texmfdistdir}/doc/latex/pracjourn/README
%doc %{_texmfdistdir}/doc/latex/pracjourn/pjsample.ltx
%doc %{_texmfdistdir}/doc/latex/pracjourn/pjsample.pdf
%doc %{_texmfdistdir}/doc/latex/pracjourn/pracjourn.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pracjourn/pracjourn.dtx
%doc %{_texmfdistdir}/source/latex/pracjourn/pracjourn.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19243 |21mr|texlive-preprint-2011-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30447
# category Package
# catalog-ctan /macros/latex/contrib/preprint
# catalog-date 2013-05-13 11:38:32 +0200
# catalog-license collection
# catalog-version 2011
Name:		texlive-preprint
Epoch:		1
Version:	2011
Release:	10
Summary:	A bundle of packages provided "as is"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/preprint
License:	COLLECTION
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/preprint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/preprint.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/preprint.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle comprises: - authblk, which permits footnote style
author/affiliation input in the \author command, - balance, to
balance the end of \twocolumn pages, - figcaps, to send figure
captions, etc., to end document, - fullpage, to set narrow page
margins and set a fixed page style, and - sublabel, which
permits counters to be subnumbered.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/preprint/authblk.sty
%{_texmfdistdir}/tex/latex/preprint/balance.sty
%{_texmfdistdir}/tex/latex/preprint/figcaps.sty
%{_texmfdistdir}/tex/latex/preprint/fullpage.sty
%{_texmfdistdir}/tex/latex/preprint/sublabel.sty
%doc %{_texmfdistdir}/doc/latex/preprint/README
%doc %{_texmfdistdir}/doc/latex/preprint/authblk.pdf
%doc %{_texmfdistdir}/doc/latex/preprint/balance.pdf
%doc %{_texmfdistdir}/doc/latex/preprint/figcaps.pdf
%doc %{_texmfdistdir}/doc/latex/preprint/fullpage.pdf
%doc %{_texmfdistdir}/doc/latex/preprint/sublabel.pdf
#- source
%doc %{_texmfdistdir}/source/latex/preprint/authblk.drv
%doc %{_texmfdistdir}/source/latex/preprint/authblk.dtx
%doc %{_texmfdistdir}/source/latex/preprint/authblk.ins
%doc %{_texmfdistdir}/source/latex/preprint/balance.drv
%doc %{_texmfdistdir}/source/latex/preprint/balance.dtx
%doc %{_texmfdistdir}/source/latex/preprint/balance.ins
%doc %{_texmfdistdir}/source/latex/preprint/figcaps.drv
%doc %{_texmfdistdir}/source/latex/preprint/figcaps.dtx
%doc %{_texmfdistdir}/source/latex/preprint/figcaps.ins
%doc %{_texmfdistdir}/source/latex/preprint/fullpage.drv
%doc %{_texmfdistdir}/source/latex/preprint/fullpage.dtx
%doc %{_texmfdistdir}/source/latex/preprint/fullpage.ins
%doc %{_texmfdistdir}/source/latex/preprint/sublabel.drv
%doc %{_texmfdistdir}/source/latex/preprint/sublabel.dtx
%doc %{_texmfdistdir}/source/latex/preprint/sublabel.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19244 |21mr|texlive-prerex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-prerex
Version:	20190228
Release:	1
Summary:	Interactive editor and macro support for prerequisite charts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/prerex
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prerex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prerex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package consists of prerex.sty, a LaTeX package for
producing charts of course nodes linked by arrows representing
pre- and co-requisites, and prerex, an interactive program for
creating and editing chart descriptions. The implementation of
prerex.sty uses PGF, so that it may be used equally happily
with latex or pdflatex; prerex itself is written in C. The
package includes source code for a previewer application, a
lightweight Qt-4 and poppler-based prerex-enabled PDF viewer.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/prerex
%doc %{_texmfdistdir}/doc/latex/prerex
%doc %{_mandir}/man5/prerex.5*
%doc %{_texmfdistdir}/doc/man/man5/prerex.man5.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_mandir}/man5
mv %{buildroot}%{_texmfdistdir}/doc/man/man5/*.5 %{buildroot}%{_mandir}/man5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19245 |21mr|texlive-presentations-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17172
# category Package
# catalog-ctan /info/examples/Presentations_de
# catalog-date 2010-02-12 13:59:30 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-presentations
Version:	20190228
Release:	1
Summary:	Examples from the book Presentationen mit LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/Presentations_de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/presentations.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/presentations.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This bundle contains all the examples, as source, eps and pdf,
of the author's book "Presentationen mit LaTeX", from the
Dante-Edition series.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/presentations/01-01-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/presentations/01-01-2.ltx2ps
%doc %{_texmfdistdir}/doc/latex/presentations/01-01-3.ltx2
%doc %{_texmfdistdir}/doc/latex/presentations/01-01-4.ltx2
%doc %{_texmfdistdir}/doc/latex/presentations/01-01-5.ltx2ps
%doc %{_texmfdistdir}/doc/latex/presentations/01-01-6.ltx2
%doc %{_texmfdistdir}/doc/latex/presentations/01-02-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/01-03-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/01-03-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/01-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/01-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/01-03-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/01-03-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/01-04-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/01-04-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/01-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/01-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/01-04-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/01-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/01-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/01-05-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/02-01-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-01-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-01-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-02-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-03-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-03-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-03-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-03-4.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-04-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-04-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-04-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-04-4.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-04-5.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-04-6.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-04-7.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-05-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-06-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-06-2.ltxps
%doc %{_texmfdistdir}/doc/latex/presentations/02-07-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-08-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-09-1.ltxps
%doc %{_texmfdistdir}/doc/latex/presentations/02-10-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-10-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-10-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-10-4.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-10-5.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-10-6.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-11-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-12-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-12-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-13-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-13-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-13-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-10.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-11.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-12.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-13.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-14.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-15.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-16.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-17.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-18.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-4.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-5.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-6.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-7.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-8.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/02-14-9.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/03-01-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/03-02-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/03-03-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/03-03-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/03-03-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/04-01-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-01-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-01-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-01-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-03-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/presentations/04-04-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-05-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-10.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-11.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-4.ltxbps
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-6.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-7.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-8.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-06-9.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-07-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-08-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-09-1.ltxbps
%doc %{_texmfdistdir}/doc/latex/presentations/04-11-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-11-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-11-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-12-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-12-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-13-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-13-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-14-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-15-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-15-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-16-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-16-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-16-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-17-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-18-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-18-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-19-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-19-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-20-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-20-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-20-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-20-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-20-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-21-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-21-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-21-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-21-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-22-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-22-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-22-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-23-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-23-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-24-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-24-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-10.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-11.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-12.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-13.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-14.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-15.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-16.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-17.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-18.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-19.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-20.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-21.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-22.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-23.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-24.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-25.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-26.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-27.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-28.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-29.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-30.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-31.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-32.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-33.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-34.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-35.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-36.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-37.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-6.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-7.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-8.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-25-9.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-10.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-11.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-12.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-13.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-14.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-15.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-16.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-17.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-18.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-19.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-20.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-21.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-22.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-23.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-24.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-25.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-26.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-27.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-28.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-29.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-30.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-31.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-32.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-33.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-34.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-35.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-36.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-37.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-6.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-7.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-8.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/04-26-9.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/05-00-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/05-01-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/05-02-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/05-03-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/05-03-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/06-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-02-1.ltxps
%doc %{_texmfdistdir}/doc/latex/presentations/06-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/06-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/07-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/07-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations/07-03-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations/07-03-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations/07-05-1.ltxbps
%doc %{_texmfdistdir}/doc/latex/presentations/07-05-2.ltxbps
%doc %{_texmfdistdir}/doc/latex/presentations/README
%doc %{_texmfdistdir}/doc/latex/presentations/Textdemo.tex
%doc %{_texmfdistdir}/doc/latex/presentations/beamer-demo.tex
%doc %{_texmfdistdir}/doc/latex/presentations/beamer-demo2.tex
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/FULogo.png
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/FULuft.jpg
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/FUbib.jpg
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/FUlogo.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/TU.jpg
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/TeX.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/beamer0.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/beamer1.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/beamer2.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/beamernavbar.png
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/beamernavsymbols.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/beamernavsymbols.tex
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/fu-berlin-air.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/fu-berlin.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/geo.jpg
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/ligaturen.png
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/multimedia.jpg
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/multimedia.png
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/multimedia.tex
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/silberlaube.jpg
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/silberlaube2.jpg
%doc %{_texmfdistdir}/doc/latex/presentations/images/beamer/zedat.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/FULogo.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/FULogo2.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/FULogoRGB.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/FULogo_RGB.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/FUbib.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/fuBIB10.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/fuBIB10.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/logofbbw.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/silberlaube.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/silberlaube2.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/wieesgeht.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pd/zedat2.eps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pdfscreen/Tore3d.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/pdfscreen/mp.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/pdfscreen/mpgraph.mps
%doc %{_texmfdistdir}/doc/latex/presentations/images/pdfscreen/pst.pdf
%doc %{_texmfdistdir}/doc/latex/presentations/images/pdfscreen/tex.png
%doc %{_texmfdistdir}/doc/latex/presentations/pd-demo-default.tex
%doc %{_texmfdistdir}/doc/latex/presentations/pd-demo.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19246 |21mr|texlive-presentations-en-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /info/examples/Presentations_en
# catalog-date 2012-08-22 17:34:41 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-presentations-en
Version:	20190228
Release:	1
Summary:	Examples from the book Presentations with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/Presentations_en
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/presentations-en.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/presentations-en.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This bundle contains all the examples, as source, eps and pdf,
of the author's book "Presentations with LaTeX", from the
Dante-Edition series, Published by Lehmanns Media.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-01-1.ltx2crop
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-01-2.ltx2ps
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-01-3.ltx2
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-01-4.ltx2
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-01-5.ltx2ps
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-01-6.ltx2
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-02-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-03-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-03-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/01-03-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-01-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-01-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-01-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-02-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-03-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-03-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-03-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-03-4.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-04-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-04-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-04-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-04-4.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-04-5.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-04-6.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-04-7.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-04-8.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-05-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-06-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-06-2.ltxps
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-07-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-09-1.ltxps
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-10-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-10-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-10-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-10-4.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-10-5.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-10-6.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-11-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-12-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-12-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-13-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-13-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-13-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-10.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-11.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-12.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-13.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-14.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-15.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-16.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-17.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-18.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-19.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-4.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-5.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-6.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-7.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-8.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/02-14-9.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/03-01-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/03-02-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/03-03-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/03-03-2.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/03-04-1.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-01-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-01-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-01-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-01-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-03-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-04-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-05-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-10.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-11.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-4.ltxbps
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-6.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-7.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-8.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-06-9.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-07-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-08-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-09-1.ltxbps
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-11-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-11-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-11-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-12-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-12-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-13-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-13-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-14-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-15-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-15-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-16-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-16-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-16-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-17-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-18-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-18-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-19-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-19-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-20-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-20-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-20-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-20-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-20-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-22-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-22-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-22-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-22-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-23-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-23-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-23-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-24-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-24-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-25-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-25-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-26-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-26-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-26-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-26-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-10.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-11.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-12.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-13.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-14.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-15.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-16.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-17.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-18.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-19.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-20.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-21.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-22.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-23.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-24.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-25.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-26.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-27.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-28.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-29.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-3.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-30.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-31.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-32.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-33.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-34.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-35.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-36.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-37.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-38.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-39.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-40.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-41.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-42.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-43.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-44.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-45.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-46.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-47.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-48.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-49.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-5.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-50.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-51.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-52.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-53.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-54.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-55.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-56.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-57.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-58.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-59.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-6.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-60.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-61.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-62.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-63.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-64.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-65.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-7.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-8.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/04-27-9.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/05-00-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/05-01-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/05-02-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/05-03-1.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/05-03-2.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-02-1.ltxps
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/06-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/07-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/07-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/presentations-en/07-03-3.ltxpd
%doc %{_texmfdistdir}/doc/latex/presentations-en/07-03-4.ltxb
%doc %{_texmfdistdir}/doc/latex/presentations-en/07-05-1.ltxbps
%doc %{_texmfdistdir}/doc/latex/presentations-en/07-05-2.ltxbps
%doc %{_texmfdistdir}/doc/latex/presentations-en/DEexa.sty
%doc %{_texmfdistdir}/doc/latex/presentations-en/DEoptions.sty
%doc %{_texmfdistdir}/doc/latex/presentations-en/PPRtime.sty
%doc %{_texmfdistdir}/doc/latex/presentations-en/README
%doc %{_texmfdistdir}/doc/latex/presentations-en/Textdemo.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/beamer-demo-en.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/beamer-demo.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/beamer-demo2.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/beispiel.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/bspcalweekly.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/bspdvdcoll.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/bspfont.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/bsppstricks.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/buch-E.bib
%doc %{_texmfdistdir}/doc/latex/presentations-en/buch.bib
%doc %{_texmfdistdir}/doc/latex/presentations-en/exa-fontconfig.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/exaarticle.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exaarticle2.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exaartplain.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exabeamer.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exabook.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exabook2.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exadante.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exafoils.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exafubeamer.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exafupd.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/examargin.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/examemoir.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/examinimal-mathsymbols.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/examinimal.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exapd.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exaprosper.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exareport.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exaseminar.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exaslidenotes.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exasymbol.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/exaxetex.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/fontDemo-E.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/fontDemo.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/TU.jpg
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/TeX.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/beamer0.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/beamer1.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/beamer2.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/beamernavbar.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/beamernavsymbols.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/beamernavsymbols.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/grating.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/ligaturen.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/multimedia.jpg
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/multimedia.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/transition1.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/beamer/zedat.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/clemson.gif
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/clemson.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/logo-clemson.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/logofbbw.eps
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/moviePD.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/pawmkorange.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/pawmkpurple.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/pawtraceorange.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/pawtracep.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/wieesgeht.eps
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pd/zedat2.eps
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pdfscreen/Tore3d.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pdfscreen/mp.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pdfscreen/mpgraph.mps
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pdfscreen/pst.pdf
%doc %{_texmfdistdir}/doc/latex/presentations-en/images/pdfscreen/tex.png
%doc %{_texmfdistdir}/doc/latex/presentations-en/obox.sty
%doc %{_texmfdistdir}/doc/latex/presentations-en/pd-demo-default.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/pd-demo.tex
%doc %{_texmfdistdir}/doc/latex/presentations-en/powerdot-clemson.sty
%doc %{_texmfdistdir}/doc/latex/presentations-en/prosper.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/runAll
%doc %{_texmfdistdir}/doc/latex/presentations-en/screxa.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/screxabook.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/screxareport.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/slidenotes.cfg
%doc %{_texmfdistdir}/doc/latex/presentations-en/slidenotes.cls
%doc %{_texmfdistdir}/doc/latex/presentations-en/textdemo.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19247 |21mr|texlive-prettyref-3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/prettyref
# catalog-date 2008-11-06 09:26:54 +0100
# catalog-license pd
# catalog-version 3.0
Name:		texlive-prettyref
Version:	3.0
Release:	7
Summary:	Make label references "self-identify"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/prettyref
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prettyref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prettyref.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prettyref.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Prettyref provides a command \newrefformat, which specifies the
way in which a reference is typeset, according to a label
"identification". The identification is set in the \label
command, by using prefixed label names; so instead of
\label{mysection}, one uses \label{sec:mysection}, and
prettyref interprets the "sec:" part. The package is compatible
with hyperref and with other packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/prettyref/prettyref.sty
%doc %{_texmfdistdir}/doc/latex/prettyref/README
%doc %{_texmfdistdir}/doc/latex/prettyref/prettyref.pdf
#- source
%doc %{_texmfdistdir}/source/latex/prettyref/prettyref.dtx
%doc %{_texmfdistdir}/source/latex/prettyref/prettyref.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19248 |21mr|texlive-preview-11.91-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28438
# category Package
# catalog-ctan /macros/latex/contrib/preview
# catalog-date 2012-12-02 22:39:14 +0100
# catalog-license gpl
# catalog-version 11.87
Name:		texlive-preview
Version:	11.91
Release:	2
Summary:	Extract bits of a LaTeX source for output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/preview
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/preview.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/preview.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/preview.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a free-standing part of the preview-latex
bundle. The package provides the support preview-latex needs,
when it chooses the matter it will preview. The output may
reasonably be expected to have other uses, as in html
translators, etc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/preview/prauctex.cfg
%{_texmfdistdir}/tex/latex/preview/prauctex.def
%{_texmfdistdir}/tex/latex/preview/prcounters.def
%{_texmfdistdir}/tex/latex/preview/preview.sty
%{_texmfdistdir}/tex/latex/preview/prfootnotes.def
%{_texmfdistdir}/tex/latex/preview/prlyx.def
%{_texmfdistdir}/tex/latex/preview/prshowbox.def
%{_texmfdistdir}/tex/latex/preview/prshowlabels.def
%{_texmfdistdir}/tex/latex/preview/prtightpage.def
%{_texmfdistdir}/tex/latex/preview/prtracingall.def
%doc %{_texmfdistdir}/doc/latex/preview/README
%doc %{_texmfdistdir}/doc/latex/preview/preview.pdf
#- source
%doc %{_texmfdistdir}/source/latex/preview/preview.drv
%doc %{_texmfdistdir}/source/latex/preview/preview.dtx
%doc %{_texmfdistdir}/source/latex/preview/preview.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19249 |21mr|texlive-printlen-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19847
# category Package
# catalog-ctan /macros/latex/contrib/printlen
# catalog-date 2010-09-22 14:58:28 +0200
# catalog-license lppl
# catalog-version 1.1a
Name:		texlive-printlen
Version:	1.1a
Release:	7
Summary:	Print lengths using specified units
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/printlen
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/printlen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/printlen.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
\printlength{length} prints the value of a LaTeX length in the
units specified by \uselengthunit{unit} ('unit' may be any TeX
length unit except for scaled point, viz., any of: pt, pc, in,
mm, cm, bp, dd or cc). When the unit is pt, the printed length
value will include any stretch or shrink; otherwise these are
not printed. The 'unit' argument may also be PT, in which case
length values will be printed in point units but without any
stretch or shrink values.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/printlen/printlen.sty
%doc %{_texmfdistdir}/doc/latex/printlen/printlen-doc.pdf
%doc %{_texmfdistdir}/doc/latex/printlen/printlen-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19250 |21mr|texlive-probsoln-3.05-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-probsoln
Version:	3.05
Release:	2
Summary:	Generate problem sheets and their solution sheets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/probsoln
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/probsoln.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/probsoln.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/probsoln.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is designed for lecturers who have to generate new
problem sheets for their students on a regular basis (e.g.
yearly) by randomly selecting a specified number of problems
defined in another file. The package allows you easily to
generate a new problem sheet that is different from the
previous year, thus alleviating the temptation of students to
seek out the previous year's students and checking out their
answers. The solutions to the problems can be defined along
with the problem, making it easy to generate the solution sheet
from the same source code; problems may be reused within a
document, so that solutions may appear in a different section
of the same document as the problems they cover.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/probsoln
%doc %{_texmfdistdir}/doc/latex/probsoln
#- source
%doc %{_texmfdistdir}/source/latex/probsoln

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19251 |21mr|texlive-procIAGssymp-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/procIAGssymp
# catalog-date 2007-01-06 21:10:04 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-procIAGssymp
Version:	20190228
Release:	1
Summary:	Macros for IAG symposium papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/procIAGssymp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/procIAGssymp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/procIAGssymp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides (re-)definitions of some LaTeX commands
that can be useful for the preparation of a paper with the
style of the proceeding of symposia sponsored by the
'International Association of Geodesy (IAG)' published by
Springer-Verlag.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/procIAGssymp/procIAGssymp.sty
%doc %{_texmfdistdir}/doc/latex/procIAGssymp/TestPaper.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19252 |21mr|texlive-productbox-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20886
# category Package
# catalog-ctan /macros/latex/contrib/gene/productbox
# catalog-date 2010-12-30 01:06:48 +0100
# catalog-license other-free
# catalog-version 1.1
Name:		texlive-productbox
Version:	1.1
Release:	7
Summary:	Typeset a three-dimensional product box
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/gene/productbox
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/productbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/productbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/productbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables typesetting of a three-dimensional product
box. This product box can be rendered as it is standing on a
surface and some light is shed onto it. Alternatively it can be
typeset as a wireframe to be cut out and glued together. This
will lead to a physical product box. The package requires the
package pgf and TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/productbox/productbox.sty
%doc %{_texmfdistdir}/doc/latex/productbox/Makefile
%doc %{_texmfdistdir}/doc/latex/productbox/README
%doc %{_texmfdistdir}/doc/latex/productbox/productbox.bib
%doc %{_texmfdistdir}/doc/latex/productbox/productbox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/productbox/productbox.dtx
%doc %{_texmfdistdir}/source/latex/productbox/productbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19253 |21mr|texlive-program-3.3.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20022
# category Package
# catalog-ctan /macros/latex/contrib/program
# catalog-date 2010-10-07 12:36:42 +0200
# catalog-license gpl3
# catalog-version 3.3.12
Name:		texlive-program
Version:	3.3.14
Release:	2
Summary:	Typesetting programs and algorithms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/program
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/program.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/program.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The main offering is a program environment; a programbox
environment is available for fragments that must not break with
the pages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/program/program.sty
%doc %{_texmfdistdir}/doc/latex/program/README
%doc %{_texmfdistdir}/doc/latex/program/gpl-3.0.txt
%doc %{_texmfdistdir}/doc/latex/program/plink.tex
%doc %{_texmfdistdir}/doc/latex/program/program-demo.tex
%doc %{_texmfdistdir}/doc/latex/program/program-doc.pdf
%doc %{_texmfdistdir}/doc/latex/program/program-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19254 |21mr|texlive-progress-1.10-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19519
# category Package
# catalog-ctan /macros/latex/contrib/progress
# catalog-date 2007-01-06 21:10:04 +0100
# catalog-license lppl
# catalog-version 1.10
Name:		texlive-progress
Version:	1.10
Release:	7
Summary:	Creates an overview of a document's state
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/progress
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/progress.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/progress.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Progress is a package which. when compiling TeX and LaTeX
documents, generates a HTML file showing an overview of a
document's state (of how finished it is). The report is sent to
file \ProgressReportName, which is by default the \jobname with
the date appended (but is user-modifiable).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/progress/progress.sty
%doc %{_texmfdistdir}/doc/latex/progress/README
%doc %{_texmfdistdir}/doc/latex/progress/progress.pdf
%doc %{_texmfdistdir}/doc/latex/progress/progress.tex
%doc %{_texmfdistdir}/doc/latex/progress/progress20030701.html

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19255 |21mr|texlive-progressbar-1.0b4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-progressbar
Version:	1.0b4
Release:	2
Summary:	Visualize shares of total amounts in the form of a (progress-)bar
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/progressbar
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/progressbar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/progressbar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package allows you to easily visualize shares of total
amounts in the form of a bar. So basically you can convert any
number between 0 and 1 to a progressbar using the command
\progressbar{<number>}. Also a lot of customizations are
possible, allowing you to create an unique progressbar on your
own. The package uses TikZ to produce its graphics.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/progressbar/progressbar.sty
%doc %{_texmfdistdir}/doc/latex/progressbar/README
%doc %{_texmfdistdir}/doc/latex/progressbar/progressbar.pdf
%doc %{_texmfdistdir}/doc/latex/progressbar/progressbar.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19256 |21mr|texlive-properties-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/properties
# catalog-date 2009-11-10 09:17:41 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-properties
Version:	0.2
Release:	7
Summary:	Load properties from a file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/properties
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/properties.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/properties.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package loads properties (key, value) from a properties
file, e.g. \jobname.properties.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/properties/properties.sty
%doc %{_texmfdistdir}/doc/latex/properties/readme.de
%doc %{_texmfdistdir}/doc/latex/properties/testprop.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19257 |21mr|texlive-proposal-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-proposal
Version:	20190228
Release:	1
Summary:	A class for preparing proposals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/proposal
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/proposal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/proposal.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/proposal.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The process of preparing a collaborative proposal, to a major
funding body, involves integration of contributions of a many
people at many sites. It is therefore an ideal application for
a text-based document preparation system such as LaTeX, in
concert with a distributed version control system such as SVN.
The proposal class itself provides a basis for such an
enterprise. The dfgproposal and dfgproposal classes provide two
specialisations of the base class for (respectively) German and
European research proposals. The packages depend on the
author's stex bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/proposal
%doc %{_texmfdistdir}/doc/latex/proposal
#- source
%doc %{_texmfdistdir}/source/latex/proposal

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19258 |21mr|texlive-prosper-1.0h-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33033
# category Package
# catalog-ctan /macros/latex/contrib/prosper
# catalog-date 2012-02-25 10:31:12 +0100
# catalog-license lppl1.2
# catalog-version 1.0h
Name:		texlive-prosper
Version:	1.0h
Release:	13
Summary:	LaTeX class for high quality slides
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/prosper
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prosper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/prosper.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Prosper is a LaTeX class for writing transparencies. It is
written as an extension of the seminar class by Timothy Van
Zandt. Prosper offers a friendly environment for creating
slides for both presentations with an overhead projector and a
video projector. Slides prepared for a presentation with a
computer and a video projector may integrate animation effects,
incremental display, and so on. Various visual styles are
supported (including some that mimic PowerPoint) and others are
being contributed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/prosper/PPRalcatel.sty
%{_texmfdistdir}/tex/latex/prosper/PPRalienglow.sty
%{_texmfdistdir}/tex/latex/prosper/PPRautumn.sty
%{_texmfdistdir}/tex/latex/prosper/PPRazure.sty
%{_texmfdistdir}/tex/latex/prosper/PPRblends.sty
%{_texmfdistdir}/tex/latex/prosper/PPRcapsules.sty
%{_texmfdistdir}/tex/latex/prosper/PPRcontemporain.sty
%{_texmfdistdir}/tex/latex/prosper/PPRcorners.sty
%{_texmfdistdir}/tex/latex/prosper/PPRdarkblue.sty
%{_texmfdistdir}/tex/latex/prosper/PPRdefault.sty
%{_texmfdistdir}/tex/latex/prosper/PPRframes.sty
%{_texmfdistdir}/tex/latex/prosper/PPRfyma.sty
%{_texmfdistdir}/tex/latex/prosper/PPRgyom.sty
%{_texmfdistdir}/tex/latex/prosper/PPRlignesbleues.sty
%{_texmfdistdir}/tex/latex/prosper/PPRmancini.sty
%{_texmfdistdir}/tex/latex/prosper/PPRnuancegris.sty
%{_texmfdistdir}/tex/latex/prosper/PPRprettybox.sty
%{_texmfdistdir}/tex/latex/prosper/PPRrico.sty
%{_texmfdistdir}/tex/latex/prosper/PPRserpaggi.sty
%{_texmfdistdir}/tex/latex/prosper/PPRthomasd.sty
%{_texmfdistdir}/tex/latex/prosper/PPRtroispoints.sty
%{_texmfdistdir}/tex/latex/prosper/PPRwhitecross.sty
%{_texmfdistdir}/tex/latex/prosper/PPRwinter.sty
%{_texmfdistdir}/tex/latex/prosper/PPRwj.sty
%{_texmfdistdir}/tex/latex/prosper/angleHG.ps
%{_texmfdistdir}/tex/latex/prosper/arrow-glow.ps
%{_texmfdistdir}/tex/latex/prosper/barre-rico.ps
%{_texmfdistdir}/tex/latex/prosper/blue-inverted-arrow.ps
%{_texmfdistdir}/tex/latex/prosper/boule-base.eps
%{_texmfdistdir}/tex/latex/prosper/boulebleue-fondblanc.eps
%{_texmfdistdir}/tex/latex/prosper/boulerouge-fondblanc.eps
%{_texmfdistdir}/tex/latex/prosper/bouleverte-fondblanc.eps
%{_texmfdistdir}/tex/latex/prosper/bullet-glow.ps
%{_texmfdistdir}/tex/latex/prosper/compilation.eps
%{_texmfdistdir}/tex/latex/prosper/degrade-base.eps
%{_texmfdistdir}/tex/latex/prosper/degrade-blanc-bleu.eps
%{_texmfdistdir}/tex/latex/prosper/green-bullet-on-blue-wc.ps
%{_texmfdistdir}/tex/latex/prosper/green-bullet-on-blue.ps
%{_texmfdistdir}/tex/latex/prosper/green-bullet-on-white.ps
%{_texmfdistdir}/tex/latex/prosper/green-inverted-arrow.ps
%{_texmfdistdir}/tex/latex/prosper/gyom.ps
%{_texmfdistdir}/tex/latex/prosper/prosper-structure.eps
%{_texmfdistdir}/tex/latex/prosper/prosper.cls
%{_texmfdistdir}/tex/latex/prosper/red-bullet-on-blue-wc.ps
%{_texmfdistdir}/tex/latex/prosper/red-bullet-on-blue.ps
%{_texmfdistdir}/tex/latex/prosper/red-bullet-on-white.ps
%{_texmfdistdir}/tex/latex/prosper/red-inverted-arrow.ps
%{_texmfdistdir}/tex/latex/prosper/rico.ps
%{_texmfdistdir}/tex/latex/prosper/rico_bullet1.ps
%{_texmfdistdir}/tex/latex/prosper/rico_bullet2.ps
%{_texmfdistdir}/tex/latex/prosper/rico_bullet3.ps
%{_texmfdistdir}/tex/latex/prosper/rotation.ps
%{_texmfdistdir}/tex/latex/prosper/rule-glow.ps
%{_texmfdistdir}/tex/latex/prosper/yellow-bullet-on-blue-wc.ps
%{_texmfdistdir}/tex/latex/prosper/yellow-bullet-on-blue.ps
%{_texmfdistdir}/tex/latex/prosper/yellow-bullet-on-white.ps
%doc %{_texmfdistdir}/doc/latex/prosper/AUTHORS
%doc %{_texmfdistdir}/doc/latex/prosper/ChangeLog
%doc %{_texmfdistdir}/doc/latex/prosper/Example.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleAlienglow.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleAutumn.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleAzure.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleContemporain.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleDarkblue.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleFrames.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleLignesbleues.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleNuanceGris.tex
%doc %{_texmfdistdir}/doc/latex/prosper/ExampleTroisPoints.tex
%doc %{_texmfdistdir}/doc/latex/prosper/FAQ
%doc %{_texmfdistdir}/doc/latex/prosper/INSTALL
%doc %{_texmfdistdir}/doc/latex/prosper/NEWS
%doc %{_texmfdistdir}/doc/latex/prosper/README
%doc %{_texmfdistdir}/doc/latex/prosper/TODO
%doc %{_texmfdistdir}/doc/latex/prosper/compilation.fig
%doc %{_texmfdistdir}/doc/latex/prosper/green-bullet-on-blue-wc.gif
%doc %{_texmfdistdir}/doc/latex/prosper/green-bullet-on-blue.gif
%doc %{_texmfdistdir}/doc/latex/prosper/green-bullet-on-white.gif
%doc %{_texmfdistdir}/doc/latex/prosper/gyom.tex
%doc %{_texmfdistdir}/doc/latex/prosper/manifest.txt
%doc %{_texmfdistdir}/doc/latex/prosper/prosper-doc.pdf
%doc %{_texmfdistdir}/doc/latex/prosper/prosper-doc.tex
%doc %{_texmfdistdir}/doc/latex/prosper/prosper-structure.fig
%doc %{_texmfdistdir}/doc/latex/prosper/prosper-template.jpg
%doc %{_texmfdistdir}/doc/latex/prosper/prosper-tour.pdf
%doc %{_texmfdistdir}/doc/latex/prosper/prosper-tour.tex
%doc %{_texmfdistdir}/doc/latex/prosper/prosper.png
%doc %{_texmfdistdir}/doc/latex/prosper/prosper.ui
%doc %{_texmfdistdir}/doc/latex/prosper/red-bullet-on-blue-wc.gif
%doc %{_texmfdistdir}/doc/latex/prosper/red-bullet-on-blue.gif
%doc %{_texmfdistdir}/doc/latex/prosper/red-bullet-on-white.gif
%doc %{_texmfdistdir}/doc/latex/prosper/rico.tex
%doc %{_texmfdistdir}/doc/latex/prosper/rotation.tex
%doc %{_texmfdistdir}/doc/latex/prosper/seminar-bg2-lepennec.fix
%doc %{_texmfdistdir}/doc/latex/prosper/yellow-bullet-on-blue-wc.gif
%doc %{_texmfdistdir}/doc/latex/prosper/yellow-bullet-on-blue.gif
%doc %{_texmfdistdir}/doc/latex/prosper/yellow-bullet-on-white.gif

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19259 |21mr|texlive-protex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-protex
Version:	20190228
Release:	1
Summary:	Literate programming package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/web/protex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/protex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/protex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
ProTeX is a simple but powerful literate programming tool,
which is designed to generate useful hypertext output (either
PDF, or HTML using TeX4ht).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/protex
%doc %{_texmfdistdir}/doc/latex/protex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19260 |21mr|texlive-protocol-1.13-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25562
# category Package
# catalog-ctan /macros/latex/contrib/protocol
# catalog-date 2012-03-03 18:35:38 +0100
# catalog-license lppl1.3
# catalog-version 1.13
Name:		texlive-protocol
Version:	1.13
Release:	7
Summary:	A class for minutes of meetings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/protocol
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/protocol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/protocol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/protocol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The present version of the class supports German meeting
minutes including vote results and action items. The author has
ambitions to internationalise the code, and would welcome
support in the work.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/protocol/protocol.cls
%doc %{_texmfdistdir}/doc/latex/protocol/README
%doc %{_texmfdistdir}/doc/latex/protocol/protest.tex
%doc %{_texmfdistdir}/doc/latex/protocol/protocol.pdf
#- source
%doc %{_texmfdistdir}/source/latex/protocol/protocol.dtx
%doc %{_texmfdistdir}/source/latex/protocol/protocol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19261 |21mr|texlive-przechlewski-book-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23552
# category Package
# catalog-ctan /info/examples/przechlewski-book-examples
# catalog-date 2011-08-14 21:16:59 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-przechlewski-book
Version:	20190228
Release:	1
Summary:	Examples from Przechlewski's LaTeX book
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/przechlewski-book-examples
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/przechlewski-book.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/przechlewski-book.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides machine-readable copies of the examples
from the book "Praca magisterska i dyplomowa z programem
LaTeX".


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/przechlewski-book/papalike.bst
%{_texmfdistdir}/tex/latex/przechlewski-book/upmgr.cls
%{_texmfdistdir}/tex/latex/przechlewski-book/wkmgr.cls
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/LICENSE
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/Makefile
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/README
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/README.pl
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/TAM-pl.pdf
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/b313.bib
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p21.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p22.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p23.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p24.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p31.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p310.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p311.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p312.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p313.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p313_utf8.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p32.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p33.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p34.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p35.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p36.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p37.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p38.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p39.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p41.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p42.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p43.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p44.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p45.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/p46.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/rys1_5.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/wkmgr.bib
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/wkmgr.html
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/wkmgr1.pdf
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/wkmgr1.tex
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/wkmgr2.pdf
%doc %{_texmfdistdir}/doc/latex/przechlewski-book/wkmgr2.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19262 |21mr|texlive-ps2pkm-1.6beta1-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33818
# category TLCore
# catalog-ctan /fonts/utilities/ps2pk
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license other-free
# catalog-version 1.6 beta 1
Name:		texlive-ps2pkm
Version:	1.6beta1
Release:	14
Summary:	Generate a PK font from an Adobe Type 1 font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/utilities/ps2pk
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ps2pkm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ps2pkm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-ps2pkm.bin

%description
Generates a PK file from an Adobe Type 1 font. PK fonts are (or
used to be) valuable in enabling previewers to view documents
generated that use Type 1 fonts. The program makes use of code
donated to the X consortium by IBM.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/mag.1*
%doc %{_texmfdistdir}/doc/man/man1/mag.man1.pdf
%doc %{_mandir}/man1/pfb2pfa.1*
%doc %{_texmfdistdir}/doc/man/man1/pfb2pfa.man1.pdf
%doc %{_mandir}/man1/pk2bm.1*
%doc %{_texmfdistdir}/doc/man/man1/pk2bm.man1.pdf
%doc %{_mandir}/man1/ps2pk.1*
%doc %{_texmfdistdir}/doc/man/man1/ps2pk.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19263 |21mr|texlive-psbao-0.17-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/psbao
# catalog-date 2008-11-15 12:33:11 +0100
# catalog-license lppl
# catalog-version 0.17
Name:		texlive-psbao
Version:	0.17
Release:	7
Summary:	Draw Bao diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/psbao
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psbao.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psbao.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package draws Bao diagrams in LaTeX. The package is a
development of psgo, and uses PSTricks to draw the diagrams.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/psbao/psbao.sty
%doc %{_texmfdistdir}/doc/latex/psbao/Changes
%doc %{_texmfdistdir}/doc/latex/psbao/README
%doc %{_texmfdistdir}/doc/latex/psbao/psbaomanual.pdf
%doc %{_texmfdistdir}/doc/latex/psbao/psbaomanual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19264 |21mr|texlive-pseudocode-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/pseudocode
# catalog-date 2009-03-02 13:24:03 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-pseudocode
Version:	20190228
Release:	1
Summary:	LaTeX environment for specifying algorithms in a natural way
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pseudocode
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pseudocode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pseudocode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides the environment "pseudocode" for
describing algorithms in a natural manner.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pseudocode/pseudocode.sty
%doc %{_texmfdistdir}/doc/latex/pseudocode/README
%doc %{_texmfdistdir}/doc/latex/pseudocode/pseudocode.pdf
%doc %{_texmfdistdir}/doc/latex/pseudocode/pseudocode.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19265 |21mr|texlive-psfrag-3.04-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/psfrag
# catalog-date 2009-10-07 22:25:55 +0200
# catalog-license other-free
# catalog-version 3.04
Name:		texlive-psfrag
Version:	3.04
Release:	7
Summary:	Replace strings in encapsulated PostScript figures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/psfrag
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psfrag.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psfrag.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psfrag.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
Allows LaTeX constructions (equations, picture environments,
etc.) to be precisely superimposed over Encapsulated PostScript
figures, using your own favorite drawing tool to create an EPS
figure and placing simple text 'tags' where each replacement is
to be placed, with PSfrag automatically removing these tags
from the figure and replacing them with a user specified LaTeX
construction, properly aligned, scaled, and/or rotated.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/psfrag/psfrag.pro
%{_texmfdistdir}/tex/latex/psfrag/psfrag.sty
%doc %{_texmfdistdir}/doc/latex/psfrag/00readme.txt
%doc %{_texmfdistdir}/doc/latex/psfrag/announce.txt
%doc %{_texmfdistdir}/doc/latex/psfrag/example.eps
%doc %{_texmfdistdir}/doc/latex/psfrag/pfgguide.pdf
%doc %{_texmfdistdir}/doc/latex/psfrag/pfgguide.tex
%doc %{_texmfdistdir}/doc/latex/psfrag/testfig.eps
#- source
%doc %{_texmfdistdir}/source/latex/psfrag/psfrag.dtx
%doc %{_texmfdistdir}/source/latex/psfrag/psfrag.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19266 |21mr|texlive-psfrag-italian-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/italian/psfrag
# catalog-date 2008-08-23 00:25:16 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-psfrag-italian
Version:	20190228
Release:	1
Summary:	PSfrag documentation in Italian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/italian/psfrag
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psfrag-italian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psfrag-italian.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a translation of the the documentation that comes with
the psfrag documentation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/psfrag-italian/itpfgguide.pdf
%doc %{_texmfdistdir}/doc/latex/psfrag-italian/itpfgguide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19267 |21mr|texlive-psfragx-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26243
# category Package
# catalog-ctan /macros/latex/contrib/psfragx
# catalog-date 2012-05-07 20:30:54 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-psfragx
Version:	1.1
Release:	6
Summary:	A psfrag eXtension
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/psfragx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psfragx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psfragx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psfragx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
PSfragX offers a mechanism to embed \psfrag commands, as
provided by the psfrag package, into the EPS file itself. Each
time a graphic is included, the EPS file is scanned. If some
tagged lines are found, they are used to define the psfrag
replacements that should be performed automatically. In
addition, a similar mechanism holds for overpic objects. These
are picture objects superimposed on the included graphic. A
similar mechanism is implemented in psfrag itself (but
deprecated in the documentation), but psfragx offers much more
flexibility. For example, if babel is used, it is possible to
define different replacements corresponding to different
languages. The replacements to take into account will be
selected on the basis of the current language of the document.
A Matlab script (LaPrint) is provided, to export an EPS file
with psfragx annotations ready embedded.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/psfragx/psfragx.cfg
%{_texmfdistdir}/tex/latex/psfragx/psfragx.sty
%doc %{_texmfdistdir}/doc/latex/psfragx/README
%doc %{_texmfdistdir}/doc/latex/psfragx/README.laprint-3.16
%doc %{_texmfdistdir}/doc/latex/psfragx/laprint.m
%doc %{_texmfdistdir}/doc/latex/psfragx/laprintdoc.ps
%doc %{_texmfdistdir}/doc/latex/psfragx/laprpfx.mat
%doc %{_texmfdistdir}/doc/latex/psfragx/pfxprint.m
%doc %{_texmfdistdir}/doc/latex/psfragx/psfragx.m
%doc %{_texmfdistdir}/doc/latex/psfragx/psfragx.pdf
%doc %{_texmfdistdir}/doc/latex/psfragx/psfragx_example.pdf
%doc %{_texmfdistdir}/doc/latex/psfragx/psfragx_example.tex
%doc %{_texmfdistdir}/doc/latex/psfragx/readmePFX.txt
#- source
%doc %{_texmfdistdir}/source/latex/psfragx/psfragx.drv
%doc %{_texmfdistdir}/source/latex/psfragx/psfragx.dtx
%doc %{_texmfdistdir}/source/latex/psfragx/psfragx.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19268 |21mr|texlive-psgo-0.17-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/psgo
# catalog-date 2008-09-06 19:20:59 +0200
# catalog-license lppl
# catalog-version 0.17
Name:		texlive-psgo
Version:	0.17
Release:	7
Summary:	Typeset go diagrams with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/psgo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psgo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psgo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive psgo package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/psgo/psgo.sty
%doc %{_texmfdistdir}/doc/latex/psgo/Changes
%doc %{_texmfdistdir}/doc/latex/psgo/README
%doc %{_texmfdistdir}/doc/latex/psgo/psgomanual.pdf
%doc %{_texmfdistdir}/doc/latex/psgo/psgomanual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19269 |21mr|texlive-pslatex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16416
# category Package
# catalog-ctan /macros/latex/contrib/pslatex
# catalog-date 2009-10-07 22:25:55 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-pslatex
Version:	20190228
Release:	1
Summary:	Use PostScript fonts by default
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pslatex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pslatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pslatex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A small package that makes LaTeX default to 'standard'
PostScript fonts. It is basically a merger of the times and the
(obsolete) mathptm packages from the psnfss suite. You must
have installed standard LaTeX and the psnfss PostScript fonts
to use this package. The main novel feature is that the pslatex
package tries to compensate for the visual differences between
the Adobe fonts by scaling Helvetica by 90%, and 'condensing'
Courier (i.e. scaling horizontally) by 85%. The package is
supplied with a (unix) shell file for a 'pslatex' command that
allows standard LaTeX documents to be processed, without
needing to edit the file. Note that current psnfss uses a
different technique for scaling Helvetica, and treats Courier
as a lost cause (there are better free fixed-width available
now, than there were when pslatex was designed). As a result,
pslatex is widely considered obsolete.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/pslatex/pcrr8rn.map
%{_texmfdistdir}/fonts/tfm/public/pslatex/pcrr7tn.tfm
%{_texmfdistdir}/fonts/tfm/public/pslatex/pcrr8rn.tfm
%{_texmfdistdir}/fonts/tfm/public/pslatex/pcrr8tn.tfm
%{_texmfdistdir}/fonts/vf/public/pslatex/pcrr7tn.vf
%{_texmfdistdir}/fonts/vf/public/pslatex/pcrr8tn.vf
%{_texmfdistdir}/tex/latex/pslatex/pslatex.sty
#- source
%doc %{_texmfdistdir}/source/latex/pslatex/fontinst/pslatex.tex
%doc %{_texmfdistdir}/source/latex/pslatex/shell/pslatex
%doc %{_texmfdistdir}/source/latex/pslatex/shell/pslatex.bat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19270 |21mr|texlive-psnfss-20200412-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-psnfss
Version:	20200412
Release:	1
Summary:	Font support for common PostScript fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/required/psnfss
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psnfss.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psnfss.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psnfss.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
BuildRequires:	texlive-tetex
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-graphics

%description
Font definition files, macros and font metrics for freely-
available Adobe Type 1 fonts. The font set consists of the
'LaserWriter 35' set (originally 'freely available' because
embedded in PostScript printers), and a variety of other free
fonts, together with some additions. Note that while many of
the fonts are available in PostScript (and other) printers,
most publishers require fonts embedded in documents, which
requires that you have the fonts in your TeX system.
Fortunately, there are free versions of the fonts from URW
(available in the URW base5 bundle). The base set of text fonts
covered by PSNFSS are: AvantGarde, Bookman, Courier, Helvetica,
New Century Schoolbook, Palatino, Symbol, Times Roman and Zapf
Dingbats. In addition, the fonts Bitstream Charter and Adobe
Utopia are covered (those fonts were contributed to the Public
Domain by their commercial foundries). Separate packages are
provided to load each font for use as main text font. The
packages helvet (which allows Helvetica to be loaded with its
size scaled to something more nearly appropriate for its use as
a Sans-Serif font to match Times) and pifont (which provides
the means to select single glyphs from symbol fonts) are
tailored to special requirements of their fonts. Mathematics
are covered by the mathptmx package, which constructs passable
mathematics from a combination of Times Roman, Symbol and some
glyphs from Computer Modern, and by Pazo Math (optionally
extended with the fpl small-caps and old-style figures fonts)
which uses Palatino as base font, with the mathpazo fonts. The
bundle as a whole is part of the LaTeX 'required' set of
packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/psfonts
%{_texmfdistdir}/fonts/map/other
%{_texmfdistdir}/fonts/map/dvips/psnfss/charter.map
%{_texmfdistdir}/fonts/map/dvips/psnfss/fpls.map
%{_texmfdistdir}/fonts/map/dvips/psnfss/pazo.map
%{_texmfdistdir}/fonts/map/dvips/psnfss/psnfss.map
%{_texmfdistdir}/fonts/map/dvips/psnfss/utopia.map
%{_texmfdistdir}/tex/latex/psnfss/8rbch.fd
%{_texmfdistdir}/tex/latex/psnfss/8rpag.fd
%{_texmfdistdir}/tex/latex/psnfss/8rpbk.fd
%{_texmfdistdir}/tex/latex/psnfss/8rpcr.fd
%{_texmfdistdir}/tex/latex/psnfss/8rphv.fd
%{_texmfdistdir}/tex/latex/psnfss/8rpnc.fd
%{_texmfdistdir}/tex/latex/psnfss/8rppl.fd
%{_texmfdistdir}/tex/latex/psnfss/8rptm.fd
%{_texmfdistdir}/tex/latex/psnfss/8rput.fd
%{_texmfdistdir}/tex/latex/psnfss/8rpzc.fd
%{_texmfdistdir}/tex/latex/psnfss/avant.sty
%{_texmfdistdir}/tex/latex/psnfss/bookman.sty
%{_texmfdistdir}/tex/latex/psnfss/chancery.sty
%{_texmfdistdir}/tex/latex/psnfss/charter.sty
%{_texmfdistdir}/tex/latex/psnfss/courier.sty
%{_texmfdistdir}/tex/latex/psnfss/helvet.sty
%{_texmfdistdir}/tex/latex/psnfss/mathpazo.sty
%{_texmfdistdir}/tex/latex/psnfss/mathpple.sty
%{_texmfdistdir}/tex/latex/psnfss/mathptm.sty
%{_texmfdistdir}/tex/latex/psnfss/mathptmx.sty
%{_texmfdistdir}/tex/latex/psnfss/newcent.sty
%{_texmfdistdir}/tex/latex/psnfss/omlbch.fd
%{_texmfdistdir}/tex/latex/psnfss/omlpag.fd
%{_texmfdistdir}/tex/latex/psnfss/omlpbk.fd
%{_texmfdistdir}/tex/latex/psnfss/omlpcr.fd
%{_texmfdistdir}/tex/latex/psnfss/omlphv.fd
%{_texmfdistdir}/tex/latex/psnfss/omlpnc.fd
%{_texmfdistdir}/tex/latex/psnfss/omlppl.fd
%{_texmfdistdir}/tex/latex/psnfss/omlptm.fd
%{_texmfdistdir}/tex/latex/psnfss/omlptmcm.fd
%{_texmfdistdir}/tex/latex/psnfss/omlput.fd
%{_texmfdistdir}/tex/latex/psnfss/omlpzc.fd
%{_texmfdistdir}/tex/latex/psnfss/omlzplm.fd
%{_texmfdistdir}/tex/latex/psnfss/omlzpple.fd
%{_texmfdistdir}/tex/latex/psnfss/omlztmcm.fd
%{_texmfdistdir}/tex/latex/psnfss/omsbch.fd
%{_texmfdistdir}/tex/latex/psnfss/omspag.fd
%{_texmfdistdir}/tex/latex/psnfss/omspbk.fd
%{_texmfdistdir}/tex/latex/psnfss/omspcr.fd
%{_texmfdistdir}/tex/latex/psnfss/omsphv.fd
%{_texmfdistdir}/tex/latex/psnfss/omspnc.fd
%{_texmfdistdir}/tex/latex/psnfss/omsppl.fd
%{_texmfdistdir}/tex/latex/psnfss/omsptm.fd
%{_texmfdistdir}/tex/latex/psnfss/omsput.fd
%{_texmfdistdir}/tex/latex/psnfss/omspzc.fd
%{_texmfdistdir}/tex/latex/psnfss/omspzccm.fd
%{_texmfdistdir}/tex/latex/psnfss/omszplm.fd
%{_texmfdistdir}/tex/latex/psnfss/omszpple.fd
%{_texmfdistdir}/tex/latex/psnfss/omsztmcm.fd
%{_texmfdistdir}/tex/latex/psnfss/omxpsycm.fd
%{_texmfdistdir}/tex/latex/psnfss/omxzplm.fd
%{_texmfdistdir}/tex/latex/psnfss/omxzpple.fd
%{_texmfdistdir}/tex/latex/psnfss/omxztmcm.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1bch.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1pag.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1pbk.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1pcr.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1phv.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1pnc.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1ppl.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1pplj.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1pplx.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1ptm.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1ptmcm.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1put.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1pzc.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1zplm.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1zpple.fd
%{_texmfdistdir}/tex/latex/psnfss/ot1ztmcm.fd
%{_texmfdistdir}/tex/latex/psnfss/palatino.sty
%{_texmfdistdir}/tex/latex/psnfss/pifont.sty
%{_texmfdistdir}/tex/latex/psnfss/t1bch.fd
%{_texmfdistdir}/tex/latex/psnfss/t1pag.fd
%{_texmfdistdir}/tex/latex/psnfss/t1pbk.fd
%{_texmfdistdir}/tex/latex/psnfss/t1pcr.fd
%{_texmfdistdir}/tex/latex/psnfss/t1phv.fd
%{_texmfdistdir}/tex/latex/psnfss/t1pnc.fd
%{_texmfdistdir}/tex/latex/psnfss/t1ppl.fd
%{_texmfdistdir}/tex/latex/psnfss/t1pplj.fd
%{_texmfdistdir}/tex/latex/psnfss/t1pplx.fd
%{_texmfdistdir}/tex/latex/psnfss/t1ptm.fd
%{_texmfdistdir}/tex/latex/psnfss/t1put.fd
%{_texmfdistdir}/tex/latex/psnfss/t1pzc.fd
%{_texmfdistdir}/tex/latex/psnfss/times.sty
%{_texmfdistdir}/tex/latex/psnfss/ts1bch.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1pag.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1pbk.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1pcr.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1phv.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1pnc.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1ppl.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1pplj.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1pplx.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1ptm.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1put.fd
%{_texmfdistdir}/tex/latex/psnfss/ts1pzc.fd
%{_texmfdistdir}/tex/latex/psnfss/ufplm.fd
%{_texmfdistdir}/tex/latex/psnfss/ufplmbb.fd
%{_texmfdistdir}/tex/latex/psnfss/upsy.fd
%{_texmfdistdir}/tex/latex/psnfss/upzd.fd
%{_texmfdistdir}/tex/latex/psnfss/utopia.sty
%_texmf_updmap_d/psnfss
%doc %{_texmfdistdir}/doc/latex/psnfss/README
%doc %{_texmfdistdir}/doc/latex/psnfss/changes.txt
%doc %{_texmfdistdir}/doc/latex/psnfss/manifest.txt
%doc %{_texmfdistdir}/doc/latex/psnfss/psnfss2e.tex
%doc %{_texmfdistdir}/doc/latex/psnfss/psnfss2e.pdf
%doc %{_texmfdistdir}/doc/latex/psnfss/test/mathtest.tex
%doc %{_texmfdistdir}/doc/latex/psnfss/test/pitest.tex
%doc %{_texmfdistdir}/doc/latex/psnfss/test/test0.tex
%doc %{_texmfdistdir}/doc/latex/psnfss/test/test1.tex
%doc %{_texmfdistdir}/doc/latex/psnfss/test/test2.tex
%doc %{_texmfdistdir}/doc/latex/psnfss/test/test3.tex
#- source
%doc %{_texmfdistdir}/source/latex/psnfss/psfonts.dtx
%doc %{_texmfdistdir}/source/latex/psnfss/psfonts.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/psnfss <<EOF
Map charter.map
Map fpls.map
Map pazo.map
Map utopia.map
EOF

#generate fonts map files
updmap --outputdir fonts
mkdir -p %{buildroot}%{_texmfdistdir}/fonts/map/psfonts
cp fonts/psfonts* %{buildroot}%{_texmfdistdir}/fonts/map/psfonts
cp fonts/ps2pk.map %{buildroot}%{_texmfdistdir}/fonts/map/psfonts
mkdir -p %{buildroot}%{_texmfdistdir}/fonts/map/other
cp fonts/builtin35.map %{buildroot}%{_texmfdistdir}/fonts/map/psfonts
cp fonts/download35.map %{buildroot}%{_texmfdistdir}/fonts/map/psfonts
cp fonts/kanjix.map %{buildroot}%{_texmfdistdir}/fonts/map/psfonts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19271 |21mr|texlive-pspicture-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pspicture
Version:	20190228
Release:	1
Summary:	PostScript picture support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pspicture
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pspicture.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pspicture.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pspicture.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A replacement for LaTeX's picture macros, that uses PostScript
\special commands. The package is now largely superseded by
pict2e.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pspicture
%{_texmfdistdir}/tex/latex/pspicture
%doc %{_texmfdistdir}/doc/latex/pspicture
#- source
%doc %{_texmfdistdir}/source/latex/pspicture

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19272 |21mr|texlive-pst-2dplot-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-2dplot
# catalog-date 2006-12-31 09:43:01 +0000
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-pst-2dplot
Version:	1.5
Release:	7
Summary:	A PSTricks package for drawing 2D curves
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-2dplot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-2dplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-2dplot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-2dplot is a pstricks package that offers an easy-to-use and
intuitive tool for plotting 2-d curves. It defines an
environment with commands similar to MATLAB for plotting.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-2dplot/pst-2dplot.sty
%doc %{_texmfdistdir}/doc/generic/pst-2dplot/README
%doc %{_texmfdistdir}/doc/generic/pst-2dplot/data1.dat
%doc %{_texmfdistdir}/doc/generic/pst-2dplot/data2.dat
%doc %{_texmfdistdir}/doc/generic/pst-2dplot/data3.dat
%doc %{_texmfdistdir}/doc/generic/pst-2dplot/pst-2dplot-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-2dplot/pst-2dplot-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19273 |21mr|texlive-pst2pdf-0.18-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst2pdf
Version:	0.18
Release:	3
Summary:	A script to compile pstricks documents via pdftex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/scripts/pst2pdf
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst2pdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst2pdf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-pst2pdf.bin = %{EVRD}

%description
The script extracts the preamble of the document and runs all
\begin{postscript}...\end{postscript}
\begin{pspicture}...\end{pspicture} and
\pspicture...\endpspicture separately through LaTeX with the
same preamble as the original document; thus it creates EPS,
PNG and PDF files of these snippets. In a final PDFLaTeX run
the script replaces the environments with \includegraphics to
include the processed snippets. Detail documentation is
acquired from the document itself via Perldoc.

#-----------------------------------------------------------------------
%files
%{_bindir}/pst2pdf
%{_texmfdistdir}/scripts/pst2pdf
%doc %{_texmfdistdir}/doc/latex/pst2pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/pst2pdf/pst2pdf.pl pst2pdf
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19274 |21mr|texlive-pst-3d-1.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17257
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-3d
# catalog-date 2010-02-15 10:59:10 +0100
# catalog-license lppl
# catalog-version 1.10
Name:		texlive-pst-3d
Version:	1.10
Release:	8
Summary:	A PSTricks package for tilting and other pseudo-3D tricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-3d
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-3d.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-3d.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-3d.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The pst-3d package provides basic macros for shadows, tilting
and three dimensional representations of text or graphical
objects.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-3d/pst-3d.pro
%{_texmfdistdir}/tex/generic/pst-3d/pst-3d.tex
%{_texmfdistdir}/tex/latex/pst-3d/pst-3d.sty
%doc %{_texmfdistdir}/doc/generic/pst-3d/Changes
%doc %{_texmfdistdir}/doc/generic/pst-3d/README
%doc %{_texmfdistdir}/doc/generic/pst-3d/pst-3d-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-3d/pst-3d-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-3d/pst-3d-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-3d/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19275 |21mr|texlive-pst-3dplot-2.04-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-3dplot
Version:	2.04
Release:	2
Summary:	Draw 3D objects in parallel projection, using PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-3dplot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-3dplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-3dplot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package using PSTricks to draw a large variety of graphs and
plots, including 3D maths functions. Data can be read from
external data files, making this package a generic tool for
graphing within TeX/LaTeX, without the need for external tools.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-3dplot
%{_texmfdistdir}/tex/generic/pst-3dplot
%{_texmfdistdir}/tex/latex/pst-3dplot
%doc %{_texmfdistdir}/doc/generic/pst-3dplot

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19276 |21mr|texlive-pst-abspos-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-abspos
# catalog-date 2009-11-10 09:17:41 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-pst-abspos
Version:	0.2
Release:	7
Summary:	Put objects at an absolute position
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-abspos
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-abspos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-abspos.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-abspos.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The (PSTricks-related) package provides a command
\pstPutAbs(x,y) to put an object at an arbitrary absolute (or
even a relative) position on the page.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-abspos/pst-abspos.tex
%{_texmfdistdir}/tex/latex/pst-abspos/pst-abspos.sty
%doc %{_texmfdistdir}/doc/generic/pst-abspos/Changes
%doc %{_texmfdistdir}/doc/generic/pst-abspos/README
%doc %{_texmfdistdir}/doc/generic/pst-abspos/pst-abspos-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-abspos/pst-abspos-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-abspos/pst-abspos-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-abspos/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19277 |21mr|texlive-pst-am-1.02-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19591
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-am
# catalog-date 2010-09-04 14:00:25 +0200
# catalog-license lppl
# catalog-version 1.02
Name:		texlive-pst-am
Version:	1.02
Release:	7
Summary:	Simulation of modulation and demodulation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-am
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-am.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-am.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-am.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the simulation of the modulated and
demodulated amplitude of radio waves. The user may plot curves
of modulated signals, wave carrier, signal modulation, signal
recovery and signal demodulation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-am/pst-am.sty
%doc %{_texmfdistdir}/doc/generic/pst-am/Changes
%doc %{_texmfdistdir}/doc/generic/pst-am/README
%doc %{_texmfdistdir}/doc/generic/pst-am/index.phtml
%doc %{_texmfdistdir}/doc/generic/pst-am/pst-am-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-am/pst-am-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-am/pst-am-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-am/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19278 |21mr|texlive-pst-asr-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22138
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-asr
# catalog-date 2011-04-20 18:25:54 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-pst-asr
Version:	1.3
Release:	7
Summary:	Typeset autosegmental representations for linguists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-asr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-asr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-asr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to typeset autosegmental
representations. It uses the PStricks, and xkeyval packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-asr/pst-asr.tex
%{_texmfdistdir}/tex/latex/pst-asr/pst-asr.sty
%doc %{_texmfdistdir}/doc/generic/pst-asr/README
%doc %{_texmfdistdir}/doc/generic/pst-asr/pst-asr-doc-source.zip
%doc %{_texmfdistdir}/doc/generic/pst-asr/pst-asr-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-asr/pst-asr-examples.pdf
%doc %{_texmfdistdir}/doc/generic/pst-asr/pst-asr-examples.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19279 |21mr|texlive-pst-bar-0.92-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18734
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-bar
# catalog-date 2009-03-12 20:12:20 +0100
# catalog-license lppl
# catalog-version 0.92
Name:		texlive-pst-bar
Version:	0.92
Release:	7
Summary:	Produces bar charts using pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-bar
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-bar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-bar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-bar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
pst-bar uses pstricks to draw bar charts from data stored in a
comma-delimited file. Several types of bar charts may be drawn,
and the drawing parameters are highly customizable. No external
packages are required except those that are part of the
standard pstricks distribution.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-bar/pst-bar.pro
%{_texmfdistdir}/tex/generic/pst-bar/pst-bar.tex
%{_texmfdistdir}/tex/latex/pst-bar/pst-bar.sty
%doc %{_texmfdistdir}/doc/generic/pst-bar/README
%doc %{_texmfdistdir}/doc/generic/pst-bar/pst-bar-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-bar/pst-bar-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-bar/pst-bar-doc.tex
%doc %{_texmfdistdir}/doc/generic/pst-bar/pst-bar-docDE.pdf
%doc %{_texmfdistdir}/doc/generic/pst-bar/pst-bar-docDE.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-bar/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19280 |21mr|texlive-pst-barcode-0.18-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-barcode
Version:	0.18
Release:	2
Summary:	Print barcodes using PostScript
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-barcode
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-barcode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-barcode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The pst-barcode package allows printing of barcodes, in a huge
variety of formats (see documentation for details). As a
pstricks package, the package requires pstricks. The package
uses PostScript for calculating the bars. For PDF output use a
multi-pass mechansism such as pst-pdf.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-barcode
%{_texmfdistdir}/tex/generic/pst-barcode
%{_texmfdistdir}/tex/latex/pst-barcode
%doc %{_texmfdistdir}/doc/generic/pst-barcode

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19281 |21mr|texlive-pst-bezier-0.03-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-bezier
Version:	0.03
Release:	2
Summary:	Draw Bezier curves
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-bezier
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-bezier.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-bezier.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a macro \psbcurve for drawing a Bezier
curve. Provision is made for full control of over all the
control points of the curve.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-bezier
%{_texmfdistdir}/tex/generic/pst-bezier
%{_texmfdistdir}/tex/latex/pst-bezier
%doc %{_texmfdistdir}/doc/generic/pst-bezier

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19282 |21mr|texlive-pst-blur-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-blur
# catalog-date 2006-12-19 19:38:44 +0100
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-pst-blur
Version:	2.0
Release:	7
Summary:	PSTricks package for "blurred" shadows
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-blur
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-blur.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-blur.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-blur.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-blur is a package built for use with PSTricks. It provides
macros that apply blurring to the normal shadow function of
PSTricks.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-blur/pst-blur.pro
%{_texmfdistdir}/tex/generic/pst-blur/pst-blur.tex
%{_texmfdistdir}/tex/latex/pst-blur/pst-blur.sty
%doc %{_texmfdistdir}/doc/generic/pst-blur/Changes
%doc %{_texmfdistdir}/doc/generic/pst-blur/README
%doc %{_texmfdistdir}/doc/generic/pst-blur/pst-blur.pdf
#- source
%doc %{_texmfdistdir}/source/generic/pst-blur/Makefile
%doc %{_texmfdistdir}/source/generic/pst-blur/pst-blur.dtx
%doc %{_texmfdistdir}/source/generic/pst-blur/pst-blur.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19283 |21mr|texlive-pst-bspline-1.62-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-bspline
Version:	1.62
Release:	2
Summary:	Draw cubic Bspline curves and interpolations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-bspline
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-bspline.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-bspline.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package draws uniform, cubic B-spline curves, open and
closed, based on a sequence of B-spline control points. There
is also code which permits drawing the open or closed cubic
Bspline curve interpolating a sequence of points. Graphical
output is created using PStricks.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-bspline
%{_texmfdistdir}/tex/generic/pst-bspline
%{_texmfdistdir}/tex/latex/pst-bspline
%doc %{_texmfdistdir}/doc/generic/pst-bspline

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19284 |21mr|texlive-pst-calendar-0.47-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-calendar
# catalog-date 2009-03-30 10:35:07 +0200
# catalog-license lppl
# catalog-version 0.47
Name:		texlive-pst-calendar
Version:	0.47
Release:	7
Summary:	Plot calendars in "fancy" ways
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-calendar
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-calendar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-calendar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The pst-calendar package uses pstricks and pst-3d to draw
tabular calendars, or calendars on dodecahedra with a month to
each face (the package also requires the multido and pst-xkey
packages). The package works for years 2000-2099, and has
options for calendars in French German and English, but the
documentation is not available in English.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-calendar/pst-calendar.sty
%doc %{_texmfdistdir}/doc/latex/pst-calendar/Changes
%doc %{_texmfdistdir}/doc/latex/pst-calendar/README
%doc %{_texmfdistdir}/doc/latex/pst-calendar/pst-calendar-docDE.ltx
%doc %{_texmfdistdir}/doc/latex/pst-calendar/pst-calendar-docDE.pdf
%doc %{_texmfdistdir}/doc/latex/pst-calendar/pst-calendar-docDE.tex
%doc %{_texmfdistdir}/doc/latex/pst-calendar/pst-calendar-docFR.pdf
%doc %{_texmfdistdir}/doc/latex/pst-calendar/pst-calendar-docFR.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19285 |21mr|texlive-pst-circ-2.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-circ
Version:	2.16
Release:	1
Summary:	PSTricks package for drawing electric circuits
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-circ
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-circ.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-circ.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is built using PSTricks and in particular pst-node.
It can easily draw current 2-terminal devices and some 3- and
4-terminal devices used in electronic or electric theory. The
package's macros are designed with a view to 'logical'
representation of circuits, as far as possible, so as to
relieve the user of purely graphical considerations when
expressing a circuit.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-circ
%{_texmfdistdir}/tex/generic/pst-circ
%{_texmfdistdir}/tex/latex/pst-circ
%doc %{_texmfdistdir}/doc/generic/pst-circ

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19286 |21mr|texlive-pst-coil-1.07-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-coil
Version:	1.07
Release:	3
Summary:	A PSTricks package for coils, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-coil
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-coil.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-coil.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-coil is a PSTricks based package for coils and zigzags and
for coil and zigzag node connections.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-coil
%{_texmfdistdir}/tex/generic/pst-coil
%{_texmfdistdir}/tex/latex/pst-coil
%doc %{_texmfdistdir}/doc/generic/pst-coil

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19287 |21mr|texlive-pst-cox-0.98-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-cox
# catalog-date 2008-08-23 00:25:16 +0200
# catalog-license lgpl
# catalog-version 0.98 Beta
Name:		texlive-pst-cox
Version:	0.98
Release:	2
Epoch:		1
Summary:	Drawing regular complex polytopes with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-cox
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-cox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-cox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-cox is a PSTricks package for drawing 2-dimensional
projections of complex regular polytopes (after the work of
Coxeter). The package consists of a macro library for drawing
the projections. The complex polytopes appear in the study of
the root systems and play a crucial role in many domains
related to mathematics and physics. These polytopes have been
completely described by Coxeter in his book "Regular Complex
Polytopes". There exist only a finite numbers of exceptional
regular complex polytopes (for example the icosahedron) and
some infinite series (for example, one can construct a multi-
dimensional analogue of the hypercube in any finite dimension).
The library contains two packages. The first, pst-coxcoor, is
devoted to the exceptional complex regular polytopes whose
coordinates have been pre-computed. The second, pst-coxeterp,
is devoted to the infinite series.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-cox/pst-coxeter.pro
%{_texmfdistdir}/tex/generic/pst-cox/pst-coxcoor.tex
%{_texmfdistdir}/tex/generic/pst-cox/pst-coxeterp.tex
%{_texmfdistdir}/tex/latex/pst-cox/pst-coxcoor.sty
%{_texmfdistdir}/tex/latex/pst-cox/pst-coxeterp.sty
%doc %{_texmfdistdir}/doc/generic/pst-cox/README
%doc %{_texmfdistdir}/doc/generic/pst-cox/gpl.txt
%doc %{_texmfdistdir}/doc/generic/pst-cox/lgpl.txt
%doc %{_texmfdistdir}/doc/generic/pst-cox/pst-coxcoor/Gallery.tex
%doc %{_texmfdistdir}/doc/generic/pst-cox/pst-coxcoor/pst-coxcoor_doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-cox/pst-coxcoor/pst-coxcoor_doc.tex
%doc %{_texmfdistdir}/doc/generic/pst-cox/pst-coxeterp/Gallery.tex
%doc %{_texmfdistdir}/doc/generic/pst-cox/pst-coxeterp/pst-coxeterp_doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-cox/pst-coxeterp/pst-coxeterp_doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19288 |21mr|texlive-pst-dbicons-0.16-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17556
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-dbicons
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license lppl
# catalog-version 0.16
Name:		texlive-pst-dbicons
Version:	0.16
Release:	7
Summary:	Support for drawing ER diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-dbicons
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-dbicons.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-dbicons.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-dbicons.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides some useful macros in the database area.
The package focusses on typesetting ER-Diagrams in a
declarative style, i.e., by positioning some nodes and defining
the position of all other nodes relative to them by using the
standard database terminology. The PSTricks package is required
for using pst-dbicons, but no deep knowledge of PSTricks
commands is required (although such knowledge is useful for
exploiting the full functionality of the package).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-dbicons/pst-dbicons.sty
%doc %{_texmfdistdir}/doc/generic/pst-dbicons/README
%doc %{_texmfdistdir}/doc/generic/pst-dbicons/mondial-ER.tex
%doc %{_texmfdistdir}/doc/generic/pst-dbicons/pst-dbicons.pdf
#- source
%doc %{_texmfdistdir}/source/generic/pst-dbicons/pst-dbicons.drv
%doc %{_texmfdistdir}/source/generic/pst-dbicons/pst-dbicons.dtx
%doc %{_texmfdistdir}/source/generic/pst-dbicons/pst-dbicons.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19289 |21mr|texlive-pst-diffraction-2.03-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-diffraction
# catalog-date 2008-09-03 19:49:55 +0200
# catalog-license lppl
# catalog-version 2.03
Name:		texlive-pst-diffraction
Version:	2.03
Release:	7
Summary:	Print diffraction patterns from various apertures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-diffraction
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-diffraction.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-diffraction.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-diffraction.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to draw the diffraction patterns
for different geometric forms of apertures for monochromatic
light. The aperture stops can have rectangular, circular or
triangular openings. The view of the diffraction may be planar,
or three-dimensional. Options available are the dimensions of
the aperture under consideration and of the particular optical
setting, e.g. the radius in case of an circular opening.
Moreover one can choose the wavelength of the light (the
associated color will be calculated by the package).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-diffraction/pst-diffraction.tex
%{_texmfdistdir}/tex/latex/pst-diffraction/pst-diffraction.sty
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/Changes
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/README
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/pst-diffraction-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/pst-diffraction-docDE.pdf
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/pst-diffraction-docDE.tex
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/pst-diffraction-docE.pdf
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/pst-diffraction-docE.tex
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/pst-diffraction-docFR.pdf
%doc %{_texmfdistdir}/doc/generic/pst-diffraction/pst-diffraction-docFR.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-diffraction/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19290 |21mr|texlive-pst-electricfield-0.14-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-electricfield
# catalog-date 2012-06-17 01:47:14 +0200
# catalog-license lppl
# catalog-version 0.14
Name:		texlive-pst-electricfield
Version:	0.14
Release:	12
Summary:	Draw electric field and equipotential lines with PStricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-electricfield
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-electricfield.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-electricfield.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-electricfield.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros to plot electric field and
equipotential lines using PStricks. There may be any number of
charges which can be placed in a cartesian coordinate system by
(x,y) values.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-electricfield/pst-electricfield.pro
%{_texmfdistdir}/tex/generic/pst-electricfield/pst-electricfield.tex
%{_texmfdistdir}/tex/latex/pst-electricfield/pst-electricfield.sty
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/Changes
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/README
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/pst-electricfield-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/pst-electricfield-docDE.pdf
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/pst-electricfield-docDE.tex
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/pst-electricfield-docEN.pdf
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/pst-electricfield-docEN.tex
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/pst-electricfield-docFR.pdf
%doc %{_texmfdistdir}/doc/generic/pst-electricfield/pst-electricfield-docFR.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-electricfield/Makefile
%doc %{_texmfdistdir}/source/generic/pst-electricfield/Makefile.latex
%doc %{_texmfdistdir}/source/generic/pst-electricfield/Makefile.pst2pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19291 |21mr|texlive-pst-eps-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-eps
# catalog-date 2007-02-28 00:07:21 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-pst-eps
Version:	1.0
Release:	7
Summary:	Create EPS files from PSTricks figures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-eps
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-eps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-eps.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-eps.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-eps is a PSTricks-based package for exporting PSTricks
images 'on the fly' to encapsulated PostScript (EPS) image
files, which can then be read into a document in the usual way.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-eps/pst-eps.tex
%{_texmfdistdir}/tex/latex/pst-eps/pst-eps.sty
%doc %{_texmfdistdir}/doc/generic/pst-eps/Changes
%doc %{_texmfdistdir}/doc/generic/pst-eps/README
%doc %{_texmfdistdir}/doc/generic/pst-eps/pst-eps-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-eps/pst-eps-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-eps/pst-eps-doc.tex
%doc %{_texmfdistdir}/doc/generic/pst-eps/spirale.eps
#- source
%doc %{_texmfdistdir}/source/generic/pst-eps/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19292 |21mr|texlive-pst-eucl-1.64-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-eucl
Version:	1.64
Release:	1
Summary:	Euclidian geometry with pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-eucl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-eucl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-eucl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the drawing of Euclidean geometric figures
using TeX pstricks macros for specifying mathematical
constraints. It is thus possible to build point using common
transformations or intersections. The use of coordinates is
limited to points which controlled the figure.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-eucl
%{_texmfdistdir}/tex/generic/pst-eucl
%{_texmfdistdir}/tex/latex/pst-eucl
%doc %{_texmfdistdir}/doc/generic/pst-eucl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19293 |21mr|texlive-pst-eucl-translation-bg-1.3.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19296
# category Package
# catalog-ctan /info/translations/pst-eucl/bulgarian
# catalog-date 2010-07-08 15:45:43 +0200
# catalog-license fdl
# catalog-version 1.3.2
Name:		texlive-pst-eucl-translation-bg
Version:	1.3.2
Release:	6
Summary:	Bulgarian translation of the pst-eucl documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/pst-eucl/bulgarian
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-eucl-translation-bg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-eucl-translation-bg.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The pst-eucl package documentation in Bulgarian language -
Euclidean Geometry with PSTricks.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/abscur.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/abscur_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/angle.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/angle_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/arc.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/arc_in.log
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/arc_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/astro.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/astro_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/bissec.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/bissec_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/ccirc.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/ccirc_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/cercle.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/cercle_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/cinscex.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/cinscex_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/curvetype.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/curvetype_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/cyclo.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/cyclo_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/delto.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/droite.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/droite_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/envcardi.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/envcardi_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/envellipse.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/envellipse_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/euler.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/euler_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/fracthom.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/fracthom_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/gal_biss.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/gal_biss_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/gauss.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/gauss_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/gencur.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/gencur_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/geohyper.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/geohyper_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/geonode.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/geonode_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/german_ra.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/german_ra_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/grav.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/grav_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/homothetie.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/homothetie_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/hyperbole.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/hyperbole_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/hypocyclo.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interCC.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interCC_bis_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interCC_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interDC.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interDC_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interDD.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interDD_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interFC.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interFC_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interFF.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interFF_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interFL.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/interFL_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/mediator.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/mediator_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/milieu.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/milieu_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/oij.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/oij_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/orthocentre.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/orthocentre_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/orthoethyper.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/orthoethyper_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/parabole.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/parabole_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/projection.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/projection_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/ptfermat.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/ptfermat_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/remarq.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/remarq_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/rotation.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/rotation_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/segmentmark.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/segmentmark_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/symcentrale.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/symcentrale_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/symorthogonale.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/symorthogonale_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/tg1c.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/tg1c_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/tg2c.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/tg2c_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/translation.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/translation_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/triangle.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/Exemples/triangle_in.tex
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/README
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/README-bulgarian.txt
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/euclide_bg.sty
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/euclide_macros.ist
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/pst-eucl-docBG.cb
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/pst-eucl-docBG.pdf
%doc %{_texmfdistdir}/doc/latex/pst-eucl-translation-bg/pst-eucl-docBG.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19294 |21mr|texlive-pst-exa-0.06-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-exa
Version:	0.06
Release:	2
Summary:	Typeset PSTricks examples, with code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-exa
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-exa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-exa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The (PSTricks-related) package provides an environment
PSTexample to put code and output side by side or one above the
other.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-exa
%doc %{_texmfdistdir}/doc/latex/pst-exa

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19295 |21mr|texlive-pst-fill-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-fill
# catalog-date 2007-03-11 15:39:31 +0100
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-pst-fill
Version:	1.01
Release:	7
Summary:	Fill or tile areas with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-fill
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fill.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fill.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fill.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-fill is a PSTricks-based package for filling and tiling
areas or characters.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-fill/pst-fill.tex
%{_texmfdistdir}/tex/latex/pst-fill/pst-fill.sty
%doc %{_texmfdistdir}/doc/generic/pst-fill/Changes
%doc %{_texmfdistdir}/doc/generic/pst-fill/README
%doc %{_texmfdistdir}/doc/generic/pst-fill/pst-fill.pdf
#- source
%doc %{_texmfdistdir}/source/generic/pst-fill/Makefile
%doc %{_texmfdistdir}/source/generic/pst-fill/pst-fill.dtx
%doc %{_texmfdistdir}/source/generic/pst-fill/pst-fill.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19296 |21mr|texlive-pst-fr3d-1.10-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-fr3d
# catalog-date 2007-02-28 00:07:21 +0100
# catalog-license lppl
# catalog-version 1.10
Name:		texlive-pst-fr3d
Version:	1.10
Release:	7
Summary:	Draw 3-dimensional framed boxes using PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-fr3d
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fr3d.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fr3d.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fr3d.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package using PSTricks to draw three dimensional framed boxes
using a macro \PstFrameBoxThreeD. The macro is especially
useful for drawing 3d-seeming buttons.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-fr3d/pst-fr3d.tex
%{_texmfdistdir}/tex/latex/pst-fr3d/pst-fr3d.sty
%doc %{_texmfdistdir}/doc/generic/pst-fr3d/Changes
%doc %{_texmfdistdir}/doc/generic/pst-fr3d/README
%doc %{_texmfdistdir}/doc/generic/pst-fr3d/pst-fr3d.pdf
#- source
%doc %{_texmfdistdir}/source/generic/pst-fr3d/pst-fr3d.dtx
%doc %{_texmfdistdir}/source/generic/pst-fr3d/pst-fr3d.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19297 |21mr|texlive-pst-fractal-0.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16958
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-fractal
# catalog-date 2010-02-10 21:21:32 +0100
# catalog-license lppl
# catalog-version 0.06
Name:		texlive-pst-fractal
Version:	0.10
Release:	1
Summary:	Draw fractal sets using PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-fractal
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fractal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fractal.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package will draw the Julia and Mandelbrot sets, the
Sierpinski triangle, Koch flake, and Apollonius Circle as well
as fractal trees (which need not be balanced) with a variety of
different parameters (including varying numbers of iterations).
The package uses the pst-xkey package, part of the xkeyval
distribution.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-fractal/pst-fractal.pro
%{_texmfdistdir}/tex/generic/pst-fractal/pst-fractal.tex
%{_texmfdistdir}/tex/latex/pst-fractal/pst-fractal.sty
%doc %{_texmfdistdir}/doc/generic/pst-fractal/Changes
%doc %{_texmfdistdir}/doc/generic/pst-fractal/README
%doc %{_texmfdistdir}/doc/generic/pst-fractal/pst-fractal-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-fractal/pst-fractal-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-fractal/pst-fractal-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19298 |21mr|texlive-pst-fun-0.04-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17909
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-fun
# catalog-date 2010-04-18 16:26:27 +0200
# catalog-license lppl
# catalog-version 0.04
Name:		texlive-pst-fun
Version:	0.04
Release:	7
Summary:	Draw "funny" objects with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-fun
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fun.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fun.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-fun.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a PSTricks related package for drawing funny objects,
like ant, bird, fish, kangaroo, ... Such objects may be useful
for testing other PSTricks macros and/or packages. (Or they can
be used for fun...).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-fun/pst-fun.pro
%{_texmfdistdir}/tex/generic/pst-fun/pst-fun.tex
%{_texmfdistdir}/tex/latex/pst-fun/pst-fun.sty
%doc %{_texmfdistdir}/doc/generic/pst-fun/Changes
%doc %{_texmfdistdir}/doc/generic/pst-fun/README
%doc %{_texmfdistdir}/doc/generic/pst-fun/pst-fun-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-fun/pst-fun-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-fun/pst-fun-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-fun/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19299 |21mr|texlive-pst-func-0.92-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-func
Version:	0.92
Release:	1
Summary:	PSTricks package for plotting mathematical functions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-func
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-func.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-func.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is built for use with PSTricks. It provides macros
for plotting and manipulating various mathematical functions:
polynomials and their derivatives f(x)=an*x^n+an-1*x^(n-
1)+...+a0 defined by the coefficients a0 a1 a2 ... and the
derivative order; the Fourier sum f(x) = a0/2+a1cos(omega
x)+...+b1sin(omega x)+... defined by the coefficients a0 a1 a2
... b1 b2 b3 ...; the Bessel function defined by its order; the
Gauss function defined by sigma and mu; Bezier curves from
order 1 (two control points) to order 9 (10 control points);
the superellipse function (the Lame curve); Chebyshev
polynomials of the first and second kind; the Thomae (or
popcorn) function; the Weierstrass function; various
integration-derived functions; normal, binomial, poisson,
gamma, chi-squared, student's t, F, beta, Cauchy and Weibull
distribution functions and the Lorenz curve; the zeroes of a
function, or the intermediate point of two functions; the
Vasicek function for describing the evolution of interest
rates; and implicit functions. The plots may be generated as
volumes of rotation about the X-axis, as well.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-func
%{_texmfdistdir}/tex/generic/pst-func
%{_texmfdistdir}/tex/latex/pst-func
%doc %{_texmfdistdir}/doc/generic/pst-func

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19300 |21mr|texlive-pst-gantt-0.22a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32023
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-gantt
# catalog-date 2013-10-28 20:11:41 +0100
# catalog-license lppl
# catalog-version 0.22
Name:		texlive-pst-gantt
Version:	0.22a
Release:	2
Summary:	Draw GANTT charts with pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-gantt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-gantt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-gantt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses PSTricks to draw GANTT charts, which are a
kind of bar chart that displays a project schedule. The package
requires the pstricks apparatus, of course.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-gantt/pst-gantt.tex
%{_texmfdistdir}/tex/latex/pst-gantt/pst-gantt.sty
%doc %{_texmfdistdir}/doc/generic/pst-gantt/Changes
%doc %{_texmfdistdir}/doc/generic/pst-gantt/README
%doc %{_texmfdistdir}/doc/generic/pst-gantt/pst-gantt-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-gantt/pst-gantt-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-gantt/pst-gantt-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19301 |21mr|texlive-pst-geo-0.06-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-geo
Version:	0.06
Release:	2
Epoch:		1
Summary:	Geographical Projections
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-geo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-geo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-geo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
pst-geo is a set of PSTricks related packages for various
cartographic projections of the terrestrial sphere. The package
pst-map2d provides conventional projections such as Mercator,
Lambert, cylindrical, etc. The package pst-map3d treats
representation in three dimensions of the terrestrial sphere.
Packages pst-map2dII and pst-map3dII allow use of the CIA World
DataBank II. Various parameters of the packages allow for
choice of the level of the detail and the layouts possible
(cities, borders, rivers etc). Substantial data files are
provided, in an (internally) compressed format. Decompression
happens on-the-fly as a document using the data is displayed,
printed or converted to PDF format. A Perl script is provided
for the user to do the decompression, if the need should arise.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-geo
%{_texmfdistdir}/tex/generic/pst-geo
%{_texmfdistdir}/tex/latex/pst-geo
%doc %{_texmfdistdir}/doc/generic/pst-geo

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19302 |21mr|texlive-pst-ghsb-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-pst-ghsb
Version:	20190228
Release:	1
Summary:	TeXLive pst-ghsb package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-ghsb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-ghsb.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive pst-ghsb package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-ghsb/pst-ghsb.pro
%{_texmfdistdir}/tex/generic/pst-ghsb/pst-ghsb.tex
%{_texmfdistdir}/tex/latex/pst-ghsb/pst-ghsb.sty
%doc %{_texmfdistdir}/doc/generic/pst-ghsb/README
%doc %{_texmfdistdir}/doc/generic/pst-ghsb/t-ghsb.pdf
%doc %{_texmfdistdir}/doc/generic/pst-ghsb/t-ghsb.tex
%doc %{_texmfdistdir}/doc/generic/pst-ghsb/t2-ghsb.pdf
%doc %{_texmfdistdir}/doc/generic/pst-ghsb/t2-ghsb.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19303 |21mr|texlive-pst-gr3d-1.34-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-gr3d
# catalog-date 2006-12-19 19:38:44 +0100
# catalog-license lppl
# catalog-version 1.34
Name:		texlive-pst-gr3d
Version:	1.34
Release:	7
Summary:	Three dimensional grids with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-gr3d
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-gr3d.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-gr3d.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-gr3d.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This PSTricks package provides a command \PstGridThreeD that
will draw a three dimensional grid, offering a number of
options for its appearance.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-gr3d/pst-gr3d.tex
%{_texmfdistdir}/tex/latex/pst-gr3d/pst-gr3d.sty
%doc %{_texmfdistdir}/doc/generic/pst-gr3d/Changes
%doc %{_texmfdistdir}/doc/generic/pst-gr3d/README
%doc %{_texmfdistdir}/doc/generic/pst-gr3d/pst-gr3d.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pst-gr3d/pst-gr3d.dtx
%doc %{_texmfdistdir}/source/latex/pst-gr3d/pst-gr3d.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19304 |21mr|texlive-pst-grad-1.06-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-grad
# catalog-date 2007-07-11 11:50:31 +0200
# catalog-license lppl
# catalog-version 1.06
Name:		texlive-pst-grad
Version:	1.06
Release:	7
Summary:	Filling with colour gradients, using PStricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-grad
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-grad.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-grad.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-grad is a PSTricks based package for filling with colour
gradients. Supported are colours in the RGB, CMYK or HSB
models. Other colour gradient mechanisms are to be found in
package pst-slpe.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-grad/pst-grad.pro
%{_texmfdistdir}/tex/generic/pst-grad/pst-grad.tex
%{_texmfdistdir}/tex/latex/pst-grad/pst-grad.sty
%doc %{_texmfdistdir}/doc/generic/pst-grad/Changes
%doc %{_texmfdistdir}/doc/generic/pst-grad/pst-grad-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-grad/pst-grad-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-grad/pst-grad-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19305 |21mr|texlive-pst-graphicx-0.02-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21717
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-graphicx
# catalog-date 2011-03-14 10:28:00 +0100
# catalog-license lppl
# catalog-version 0.02
Name:		texlive-pst-graphicx
Version:	0.02
Release:	7
Summary:	A pstricks-compatible graphicx for use with Plain TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-graphicx
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-graphicx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-graphicx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a version of graphicx that avoids loading
the graphics bundle's (original) keyval package, which clashes
with pstricks' use of xkeyval.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-graphicx/pst-graphicx.tex
%doc %{_texmfdistdir}/doc/generic/pst-graphicx/Changes
%doc %{_texmfdistdir}/doc/generic/pst-graphicx/README
%doc %{_texmfdistdir}/doc/generic/pst-graphicx/demo.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19306 |21mr|texlive-pst-infixplot-0.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-infixplot
# catalog-date 2006-12-19 19:38:44 +0100
# catalog-license lppl
# catalog-version 0.11
Name:		texlive-pst-infixplot
Version:	0.11
Release:	7
Summary:	Using pstricks plotting capacities with infix expressions rather than RPN
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-infixplot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-infixplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-infixplot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Plotting functions with pst-plot is very powerful but sometimes
difficult to learn since the syntax of \psplot and
\parametricplot requires some PostScript knowledge. The infix-
RPN and pst-infixplot styles simplify the usage of pst-plot for
the beginner, providing macro commands that convert natural
mathematical expressions to PostScript syntax.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-infixplot/infix-RPN.tex
%{_texmfdistdir}/tex/generic/pst-infixplot/pst-infixplot.tex
%{_texmfdistdir}/tex/latex/pst-infixplot/infix-RPN.sty
%{_texmfdistdir}/tex/latex/pst-infixplot/pst-infixplot.sty
%doc %{_texmfdistdir}/doc/generic/pst-infixplot/README
%doc %{_texmfdistdir}/doc/generic/pst-infixplot/pst-infixplot-doc.ps
%doc %{_texmfdistdir}/doc/generic/pst-infixplot/pst-infixplot-doc.tex
%doc %{_texmfdistdir}/doc/generic/pst-infixplot/pst-infixplot.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19307 |21mr|texlive-pst-jtree-2.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20946
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-jtree
# catalog-date 2011-01-05 08:46:38 +0100
# catalog-license lppl1.3
# catalog-version 2.6
Name:		texlive-pst-jtree
Version:	2.6
Release:	7
Summary:	Typeset complex trees for linguists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-jtree
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-jtree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-jtree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
jTree uses PStricks to enable linguists to typeset complex
trees. The package requires use of PStricks (of course) and
xkeyval packages. jTree is a development of, and replacement
for, the jftree package, which is no longer available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-jtree/pst-jtree.tex
%{_texmfdistdir}/tex/latex/pst-jtree/pst-jtree.sty
%doc %{_texmfdistdir}/doc/generic/pst-jtree/Doc-source.zip
%doc %{_texmfdistdir}/doc/generic/pst-jtree/README
%doc %{_texmfdistdir}/doc/generic/pst-jtree/pst-jtree-doc-add.pdf
%doc %{_texmfdistdir}/doc/generic/pst-jtree/pst-jtree-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-jtree/pst-jtree-examples.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19308 |21mr|texlive-pst-knot-0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16033
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-knot
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-pst-knot
Version:	0.2
Release:	12
Summary:	PSTricks package for displaying knots
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-knot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-knot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-knot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can produce a fair range of knot shapes, with all
the standard graphics controls one expects.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-knot/pst-psm.pro
%{_texmfdistdir}/tex/generic/pst-knot/pst-knot.tex
%{_texmfdistdir}/tex/latex/pst-knot/pst-knot.sty
%doc %{_texmfdistdir}/doc/generic/pst-knot/Changes
%doc %{_texmfdistdir}/doc/generic/pst-knot/README
%doc %{_texmfdistdir}/doc/generic/pst-knot/pst-knot-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-knot/pst-knot-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19309 |21mr|texlive-pst-labo-2.04-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-labo
Version:	2.04
Release:	2
Summary:	Draw objects for Chemistry laboratories
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-labo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-labo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-labo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-labo is a PSTricks related package for drawing basic and
complex chemical objects. The documentation of the package is
illuminated with plenty of illustrations together with their
source code, making it an easy read.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-labo
%{_texmfdistdir}/tex/latex/pst-labo
%doc %{_texmfdistdir}/doc/generic/pst-labo

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19310 |21mr|texlive-pst-layout-0.95-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25467
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-layout
# catalog-date 2011-05-27 12:35:46 +0200
# catalog-license lppl
# catalog-version 0.95
Name:		texlive-pst-layout
Version:	0.95
Release:	8
Summary:	Page layout macros based on PStricks packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-layout
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-layout.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-layout.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of creating elaborate ("pseudo-
tabular") layouts of material, typically to be overlaid on an
included graphic. The package requires a recent version of the
package pst-node and some other pstricks-related material.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-layout/pst-layout.sty
%doc %{_texmfdistdir}/doc/latex/pst-layout/README
%doc %{_texmfdistdir}/doc/latex/pst-layout/pst-layout-doc.pdf
%doc %{_texmfdistdir}/doc/latex/pst-layout/pst-layout-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19311 |21mr|texlive-pst-lens-1.02-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-lens
# catalog-date 2007-06-15 10:24:12 +0200
# catalog-license lppl
# catalog-version 1.02
Name:		texlive-pst-lens
Version:	1.02
Release:	7
Summary:	Lenses with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-lens
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-lens.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-lens.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-lens.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This PSTricks package provides a really rather simple command
\PstLens that will draw a lens. Command parameters provide a
remarkable range of effects.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-lens/pst-lens.tex
%{_texmfdistdir}/tex/latex/pst-lens/pst-lens.sty
%doc %{_texmfdistdir}/doc/generic/pst-lens/Changes
%doc %{_texmfdistdir}/doc/generic/pst-lens/README
%doc %{_texmfdistdir}/doc/generic/pst-lens/pst-lens.pdf
#- source
%doc %{_texmfdistdir}/source/generic/pst-lens/pst-lens.dtx
%doc %{_texmfdistdir}/source/generic/pst-lens/pst-lens.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19312 |21mr|texlive-pst-light3d-0.12-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-light3d
# catalog-date 2007-03-11 16:56:01 +0100
# catalog-license lppl
# catalog-version 0.12
Name:		texlive-pst-light3d
Version:	0.12
Release:	7
Summary:	3D lighting effects for pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-light3d
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-light3d.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-light3d.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-light3d.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A PSTricks package for three dimensional lighting effects on
characters and PSTricks graphics, like lines, curves, plots,
...


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-light3d/pst-light3d.pro
%{_texmfdistdir}/tex/generic/pst-light3d/pst-light3d.tex
%{_texmfdistdir}/tex/latex/pst-light3d/pst-light3d.sty
%doc %{_texmfdistdir}/doc/generic/pst-light3d/Changes
%doc %{_texmfdistdir}/doc/generic/pst-light3d/README
%doc %{_texmfdistdir}/doc/generic/pst-light3d/pst-light3d-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-light3d/pst-light3d-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-light3d/pst-light3d-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-light3d/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19313 |21mr|texlive-pst-magneticfield-1.16-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18922
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-magneticfield
# catalog-date 2010-06-12 14:14:46 +0200
# catalog-license lppl
# catalog-version 1.13
Name:		texlive-pst-magneticfield
Version:	1.16
Release:	1
Summary:	Plotting a magnetic field with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-magneticfield
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-magneticfield.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-magneticfield.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-magneticfield.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
pst-magneticfield is a PSTricks related package to draw the
magnetic field lines of Helmholtz coils in a two or three
dimensional view. There are several parameters to create a
different output. For more informations or some examples read
the documentation of the package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-magneticfield
%{_texmfdistdir}/tex/generic/pst-magneticfield
%{_texmfdistdir}/tex/latex/pst-magneticfield
%doc %{_texmfdistdir}/doc/generic/pst-magneticfield
#- source
%doc %{_texmfdistdir}/source/generic/pst-magneticfield/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19314 |21mr|texlive-pst-math-0.65-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-math
Version:	0.65
Release:	1
Summary:	Enhancement of PostScript math operators to use with pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-math
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-math.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-math.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
PostScript lacks a lot of basic operators such as tan, acos,
asin, cosh, sinh, tanh, acosh, asinh, atanh, exp (with e base).
Also (oddly) cos and sin use arguments in degrees. Pst-math
provides all those operators in a header file pst-math.pro with
wrappers pst-math.sty and pst-math.tex. In addition, sinc,
gauss, gammaln and bessel are implemented (only partially for
the latter). pst-math is designed essentially to work with pst-
plot but can be used in whatever PS code (such as pstricks
SpecialCoor "!", which is useful for placing labels). The
package also provides a routine SIMPSON for numerical
integration and a solver of linear equation systems.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-math
%{_texmfdistdir}/tex/generic/pst-math
%{_texmfdistdir}/tex/latex/pst-math
%doc %{_texmfdistdir}/doc/generic/pst-math

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19315 |21mr|texlive-pst-mirror-1.01-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32997
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-mirror
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-pst-mirror
Version:	1.01
Release:	5
Summary:	Images on a spherical mirror
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-mirror
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-mirror.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-mirror.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands and supporting PostScript
material for drawing images as if reflected by a spherical
mirror.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-mirror/pst-mirror.pro
%{_texmfdistdir}/tex/generic/pst-mirror/pst-mirror.tex
%{_texmfdistdir}/tex/latex/pst-mirror/pst-mirror.sty
%doc %{_texmfdistdir}/doc/generic/pst-mirror/Changes
%doc %{_texmfdistdir}/doc/generic/pst-mirror/README
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/make.sh
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/script.readme
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/scripts/filtre.pl
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/test.pdf
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/test.sh
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/test.tex
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/xa.eps
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/xa.tex
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/xb.eps
%doc %{_texmfdistdir}/doc/generic/pst-mirror/createEPS/xc.eps
%doc %{_texmfdistdir}/doc/generic/pst-mirror/pst-mirror-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-mirror/pst-mirror-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-mirror/pst-mirror-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19316 |21mr|texlive-pst-node-1.42-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-node
Version:	1.42
Release:	1
Summary:	Nodes and node connections in pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-node
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-node.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-node.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to connect information, and to
place labels, without knowing (in advance) the actual positions
of the items to be connected, or where the connecting line
should go. The macros are useful for making graphs and trees,
mathematical diagrams, linguistic syntax diagrams, and so on.
The package contents were previously distributed as a part of
the pstricks base distribution; the package serves as an
extension to PSTricks.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-node
%{_texmfdistdir}/tex/generic/pst-node
%{_texmfdistdir}/tex/latex/pst-node
%doc %{_texmfdistdir}/doc/generic/pst-node

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19317 |21mr|texlive-pst-ob3d-0.21-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-ob3d
# catalog-date 2008-08-23 00:25:16 +0200
# catalog-license lppl
# catalog-version 0.21
Name:		texlive-pst-ob3d
Version:	0.21
Release:	7
Summary:	Three dimensional objects using PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-ob3d
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-ob3d.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-ob3d.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-ob3d.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses PSTricks to provide basic three-dimensional
objects. As yet, only cubes (which can be deformed to
rectangular parallelipipeds) and dies (which are only a special
kind of cubes) are defined.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-ob3d/pst-ob3d.tex
%{_texmfdistdir}/tex/latex/pst-ob3d/pst-ob3d.sty
%doc %{_texmfdistdir}/doc/generic/pst-ob3d/Changes
%doc %{_texmfdistdir}/doc/generic/pst-ob3d/README
%doc %{_texmfdistdir}/doc/generic/pst-ob3d/pst-ob3d.pdf
#- source
%doc %{_texmfdistdir}/source/generic/pst-ob3d/Makefile
%doc %{_texmfdistdir}/source/generic/pst-ob3d/pst-ob3d.dtx
%doc %{_texmfdistdir}/source/generic/pst-ob3d/pst-ob3d.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19318 |21mr|texlive-pstool-1.5e-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pstool
Version:	1.5e
Release:	2
Summary:	Support for psfrag within pdfLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pstool
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstool.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstool.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package works in the same sort of way as pst-pdf, but it
also processes the PostScript graphics with psfrag to add
labels within the graphic, before conversion. Thus the bundle
replaces two steps of an ordinary workflow. (Naturally, the
package requires that \write 18 is enabled.) Pstool ensures
that each version of each graphic is compiled once only (the
graphic is (re-)compiled only if it has changed since the
previous compilation of the document). This drastically speeds
up the running of the package in the typical case (though the
first run of any document is inevitably just as slow as with
any similar package).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pstool
%doc %{_texmfdistdir}/doc/latex/pstool

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19319 |21mr|texlive-pstools-1.68-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /support/ps2eps
# catalog-date 2012-07-20 20:39:39 +0200
# catalog-license gpl
# catalog-version 1.68
Name:		texlive-pstools
Version:	1.68
Release:	17
Summary:	Produce Encapsulated PostScript from PostScript
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/ps2eps
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-pstools.bin
%rename ps2eps

%description
Produce Encapsulated PostScript Files (EPS/EPSF) from a one-
page PostScript document, or any PostScript document. A correct
Bounding Box is calculated for the EPS files and some
PostScript command sequences that can produce errorneous
results on printers are filtered. The input is cropped to
include just the image contained in the PostScript file. The
EPS files can then be included into TeX documents. Other
programs like ps2epsi (a script distributed with ghostscript)
don't always calculate the correct bounding box (because the
values are put on the PostScript stack which may get corrupted
by bad PostScript code) or they round it off, resulting in
clipping the image. Therefore ps2eps uses a resolution of 144
dpi to get the correct bounding box. The bundle includes
binaries for Linux, Solaris, Digital Unix or Windows
2000/9x/NT; for other platforms, the user needs perl,
ghostscript and an ANSI-C compiler. Included in the
distribution is the bbox program, an application to produce
Bounding Box values for rawppm or rawpbm format files.

#-----------------------------------------------------------------------
%files
%{_bindir}/ps2eps
%{_bindir}/ps2frag
%{_bindir}/pslatex
%{_texmfdistdir}/scripts/ps2eps/ps2eps.pl
%{_texmfdistdir}/scripts/texlive/ps2frag.sh
%{_texmfdistdir}/scripts/texlive/pslatex.sh
%doc %{_mandir}/man1/bbox.1*
%doc %{_texmfdistdir}/doc/man/man1/bbox.man1.pdf
%doc %{_mandir}/man1/ps2eps.1*
%doc %{_texmfdistdir}/doc/man/man1/ps2eps.man1.pdf
%doc %{_mandir}/man1/ps2frag.1*
%doc %{_texmfdistdir}/doc/man/man1/ps2frag.man1.pdf
%doc %{_mandir}/man1/pslatex.1*
%doc %{_texmfdistdir}/doc/man/man1/pslatex.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/ps2eps/ps2eps.pl ps2eps
    ln -sf %{_texmfdistdir}/scripts/texlive/ps2frag.sh ps2frag
    ln -sf %{_texmfdistdir}/scripts/texlive/pslatex.sh pslatex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19320 |21mr|texlive-pst-optexp-5.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-optexp
Version:	5.2
Release:	2
Summary:	Drawing optical experimental setups
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-optexp
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-optexp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-optexp.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-optexp.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a collection of optical components that
facilitate easy sketching of optical experimental setups. The
package uses PSTricks for its output. A wide range of free-ray
and fibre components is provided, the alignment, positioning
and labelling of which can be achieved in very simple and
flexible ways. The components may be connected with fibers or
beams, and realistic raytraced beam paths are also possible.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-optexp
%{_texmfdistdir}/tex/latex/pst-optexp
%doc %{_texmfdistdir}/doc/latex/pst-optexp
#- source
%doc %{_texmfdistdir}/source/latex/pst-optexp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19321 |21mr|texlive-pst-optic-1.02-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-optic
Version:	1.02
Release:	2
Summary:	Drawing optics diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-optic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-optic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-optic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for drawing both reflective and refractive optics
diagrams. The package requires pstricks later than version
1.10.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-optic
%{_texmfdistdir}/tex/latex/pst-optic
%doc %{_texmfdistdir}/doc/generic/pst-optic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19322 |21mr|texlive-pst-osci-2.82-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-osci
# catalog-date 2008-10-08 15:45:53 +0200
# catalog-license lppl
# catalog-version 2.82
Name:		texlive-pst-osci
Version:	2.82
Release:	7
Summary:	Oscgons with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-osci
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-osci.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-osci.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
pst-osci is a PSTricks package enables you to produce
oscilloscope "screen shots". Three channels can be used to
represent the most common signals (damped or not): namely
sinusoidal, rectangular, triangular, dog's tooth (left and
right oriented). The third channel allows you to add, to
subtract or to multiply the two other signals. Lissajous
diagrams (XY-mode) can also be obtained.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-osci/pst-osci.tex
%{_texmfdistdir}/tex/latex/pst-osci/pst-osci.sty
%doc %{_texmfdistdir}/doc/generic/pst-osci/Changes
%doc %{_texmfdistdir}/doc/generic/pst-osci/README
%doc %{_texmfdistdir}/doc/generic/pst-osci/oscilloscope.pdf
%doc %{_texmfdistdir}/doc/generic/pst-osci/oscilloscope.tex
%doc %{_texmfdistdir}/doc/generic/pst-osci/pst-osci-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-osci/pst-osci-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19323 |21mr|texlive-pst-pad-0.3b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-pad
# catalog-date 2008-08-23 00:25:16 +0200
# catalog-license lppl
# catalog-version 0.3b
Name:		texlive-pst-pad
Version:	0.3b
Release:	7
Summary:	Draw simple attachment systems with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-pad
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pad.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pad.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pad.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package collects a set of graphical elements based on
PStricks that can be used to facilitate display of attachment
systems such as two differently shaped surfaces with or without
a fluid wedged in between. These macros ease the display of wet
adhesion models and common friction systems such as boundary
lubrication, elastohydrodynamic lubrication and hydrodynamic
lubrication.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-pad/pst-pad.tex
%{_texmfdistdir}/tex/latex/pst-pad/pst-pad.sty
%doc %{_texmfdistdir}/doc/generic/pst-pad/CHANGES
%doc %{_texmfdistdir}/doc/generic/pst-pad/README
%doc %{_texmfdistdir}/doc/generic/pst-pad/pst-pad-doc-header.tex
%doc %{_texmfdistdir}/doc/generic/pst-pad/pst-pad-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-pad/pst-pad-doc.tex
%doc %{_texmfdistdir}/doc/generic/pst-pad/pst-pad-docDE.pdf
%doc %{_texmfdistdir}/doc/generic/pst-pad/pst-pad-docDE.tex
%doc %{_texmfdistdir}/doc/generic/pst-pad/showexpl.cfg
#- source
%doc %{_texmfdistdir}/source/generic/pst-pad/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19324 |21mr|texlive-pst-pdf-1.2d-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-pdf
Version:	1.2d
Release:	3
Summary:	Make PDF versions of graphics by processing between runs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pst-pdf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pdf.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pdf.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package pst-pdf simplifies the use of graphics from
PSTricks and other PostScript code in PDF documents. As in
building a bibliography with BibTEX, additional external
programmes are invoked. In this case they are used to create a
PDF file (\PDFcontainer) that will contain all the graphics
material. In the final document these contents will be inserted
instead of the original PostScript code. The package works with
pstricks and requires a recent version of the preview package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/pst-pdf
%{_texmfdistdir}/tex/latex/pst-pdf
%doc %{_texmfdistdir}/doc/latex/pst-pdf
#- source
%doc %{_texmfdistdir}/source/latex/pst-pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19325 |21mr|texlive-pst-pdgr-0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-pdgr
Version:	0.4
Release:	2
Summary:	Draw medical pedigrees using pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pedigree/pst-pdgr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pdgr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pdgr.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pdgr.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a set of macros based on PSTricks to draw
medical pedigrees according to the recommendations for
standardized human pedigree nomenclature. The drawing commands
place the symbols on a pspicture canvas. An interface for
making trees is also provided. The package may be used both
with LaTeX and PlainTeX. A separate Perl program for generating
TeX files from spreadsheets is available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-pdgr
%{_texmfdistdir}/tex/latex/pst-pdgr
%doc %{_texmfdistdir}/doc/generic/pst-pdgr
#- source
%doc %{_texmfdistdir}/source/generic/pst-pdgr

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19326 |21mr|texlive-pst-platon-0.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16538
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-platon
# catalog-date 2010-01-01 00:46:51 +0100
# catalog-license lppl
# catalog-version 0.01
Name:		texlive-pst-platon
Version:	0.01
Release:	7
Summary:	Platonic solids in PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-platon
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-platon.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-platon.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-platon.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package adds to PSTricks the ability to draw 3-dimensional
views of the five Platonic solids.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-platon/pst-platon.sty
%doc %{_texmfdistdir}/doc/generic/pst-platon/Changes
%doc %{_texmfdistdir}/doc/generic/pst-platon/README
%doc %{_texmfdistdir}/doc/generic/pst-platon/pst-platon-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-platon/pst-platon-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-platon/pst-platon-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-platon/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19327 |21mr|texlive-pst-plot-1.91-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-plot
Version:	1.91
Release:	1
Summary:	Plot data using PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-plot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-plot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-plot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides plotting of data (typically from external
files), using PSTricks. Plots may be configured using a wide
variety of parameters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-plot
%{_texmfdistdir}/tex/latex/pst-plot
%doc %{_texmfdistdir}/doc/generic/pst-plot

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19328 |21mr|texlive-pst-poly-1.63-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-poly
Version:	1.63
Release:	2
Summary:	Polygons with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-poly
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-poly.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-poly.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This PSTricks package provides a really rather simple command
\PstPolygon that will draw various regular and non-regular
polygons (according to command parameters); various shortcuts
to commonly-used polygons are provided, as well as a command
\pspolygonbox that frames text with a polygon. The package uses
the xkeyval package for argument decoding.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-poly
%{_texmfdistdir}/tex/latex/pst-poly
%doc %{_texmfdistdir}/doc/generic/pst-poly

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19329 |21mr|texlive-pst-pulley-0.02-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-pulley
Version:	0.02
Release:	2
Summary:	Plot pulleys, using pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-pulley
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pulley.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-pulley.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to draw pulley systems with up to
6 pulleys. The pulley diagrams are labelled with the physical
properties of the system. The package uses pstricks, and
requires a several pstricks-related packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-pulley
%{_texmfdistdir}/tex/latex/pst-pulley
%doc %{_texmfdistdir}/doc/generic/pst-pulley

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19330 |21mr|texlive-pst-qtree-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-qtree
# catalog-date 2009-09-20 13:03:55 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-pst-qtree
Version:	20190228
Release:	1
Summary:	Simple syntax for trees
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-qtree
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-qtree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-qtree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a qtree-like front end for PSTricks.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-qtree/pst-qtree.tex
%{_texmfdistdir}/tex/latex/pst-qtree/pst-qtree.sty
%doc %{_texmfdistdir}/doc/generic/pst-qtree/CHANGES
%doc %{_texmfdistdir}/doc/generic/pst-qtree/LICENSE
%doc %{_texmfdistdir}/doc/generic/pst-qtree/pst-qtree-manual.pdf
%doc %{_texmfdistdir}/doc/generic/pst-qtree/pst-qtree-manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19331 |21mr|texlive-pstricks-2.82-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32890
# category Package
# catalog-ctan /graphics/pstricks/base
# catalog-date 2018-01-06 18:31:18 +0100
# catalog-license lppl
# catalog-version 2.82
Name:		texlive-pstricks
Version:	2.82
Release:	2
Summary:	PostScript macros for TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/base
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstricks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstricks.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
PStricks offers an extensive collection of macros for
generating PostScript that is usable with most TeX macro
formats, including Plain TeX, LaTeX, AMS-TeX, and AMS-LaTeX.
Included are macros for colour, graphics, pie charts, rotation,
trees and overlays. It has many special features, including a
wide variety of graphics (picture drawing) macros, with a
flexible interface and with colour support. There are macros
for colouring or shading the cells of tables. The package
pstricks-add contains bug-fixes and additions for pstricks
(among other things). PSTricks uses PostScript \special
commands, which are not supported by PDF(La)TeX. This
limitation may be overcome by using either the pst-pdf or the
pdftricks package, to generate a PDF inclusion from a PSTricks
diagram. Note that this is one of a pair of catalogue entries
for PSTricks; the other one (PSTricks) is acting as a "stub",
while editorial work on catalogue entries for PSTricks
contributed is completed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pstricks/pst-algparser.pro
%{_texmfdistdir}/dvips/pstricks/pst-dots.pro
%{_texmfdistdir}/dvips/pstricks/pst-dots97.pro
%{_texmfdistdir}/dvips/pstricks/pstricks.pro
%{_texmfdistdir}/dvips/pstricks/pstricks97.pro
%{_texmfdistdir}/tex/generic/pstricks/config/README.cfg
%{_texmfdistdir}/tex/generic/pstricks/config/distiller.cfg
%{_texmfdistdir}/tex/generic/pstricks/config/dvips.cfg
%{_texmfdistdir}/tex/generic/pstricks/config/dvipsone.cfg
%{_texmfdistdir}/tex/generic/pstricks/config/gastex.cfg
%{_texmfdistdir}/tex/generic/pstricks/config/textures.cfg
%{_texmfdistdir}/tex/generic/pstricks/config/vtex.cfg
%{_texmfdistdir}/tex/generic/pstricks/config/xdvipdfmx.cfg
%{_texmfdistdir}/tex/generic/pstricks/pst-fp.tex
%{_texmfdistdir}/tex/generic/pstricks/pst-key.tex
%{_texmfdistdir}/tex/generic/pstricks/pstricks.con
%{_texmfdistdir}/tex/generic/pstricks/pstricks.tex
%{_texmfdistdir}/tex/generic/pstricks/pstricks97.tex
%{_texmfdistdir}/tex/latex/pstricks/pst-all.sty
%{_texmfdistdir}/tex/latex/pstricks/pst-doc.cls
%{_texmfdistdir}/tex/latex/pstricks/pst-key.sty
%{_texmfdistdir}/tex/latex/pstricks/pstcol.sty
%{_texmfdistdir}/tex/latex/pstricks/pstricks.sty
%{_texmfdistdir}/tex/generic/pstricks/pstricks-tex.def
%doc %{_texmfdistdir}/doc/generic/pstricks/PSTricks.bib
%doc %{_texmfdistdir}/doc/generic/pstricks/README
%doc %{_texmfdistdir}/doc/generic/pstricks/ctandir.sty
%doc %{_texmfdistdir}/doc/generic/pstricks/images/flowers.eps
%doc %{_texmfdistdir}/doc/generic/pstricks/images/tiger.eps
%doc %{_texmfdistdir}/doc/generic/pstricks/images/tiger.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks/pst-doc.ist
%doc %{_texmfdistdir}/doc/generic/pstricks/pst-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks/pst-news*.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks/pst-news*.tex
%doc %{_texmfdistdir}/doc/generic/pstricks/pst-user.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks/pst-user.tgz
%doc %{_texmfdistdir}/doc/generic/pstricks/pst-doc.bst
%doc %{_texmfdistdir}/doc/generic/pstricks/pst-news.sty
%doc %{_texmfdistdir}/doc/generic/pstricks/pstricks-bug.tex
%doc %{_texmfdistdir}/doc/generic/pstricks/pstricks-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks/test-pst.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks/test-pst.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19332 |21mr|texlive-pstricks-add-3.87-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pstricks-add
Version:	3.87
Release:	1
Summary:	A collection of add-ons and bugfixes for PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pstricks-add
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstricks-add.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstricks-add.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Collects together examples that have been posted to the
pstricks mailing list, together with many additional features
for the basic pstricks, pst-plot and pst-node, including:
bugfixes; new options for the pspicture environment; arrows;
braces as node connection/linestyle; extended axes for plots
(e.g., logarithm axes); polar plots; plotting tangent lines of
curves or functions; solving and printing differential
equations; box plots; matrix plots; and pie charts. The package
makes use of PostScript routines provided by pst-math.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pstricks-add
%{_texmfdistdir}/tex/generic/pstricks-add
%{_texmfdistdir}/tex/latex/pstricks-add
%doc %{_texmfdistdir}/doc/generic/pstricks-add

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19333 |21mr|texlive-pstricks_calcnotes-1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33361
# category Package
# catalog-ctan /info/pstricks_calcnotes
# catalog-date 2014-04-03 16:06:38 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-pstricks_calcnotes
Epoch:		1
Version:	1.2
Release:	5
Summary:	Use of PStricks in calculus lecture notes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/pstricks_calcnotes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstricks_calcnotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstricks_calcnotes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The bundle shows the construction of PStricks macros to draw
Riemann sums of an integral and to draw the vector field of an
ordinary differential equation. The results are illustrated in
a fragment of lecture notes.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/Readme.txt
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/convert.tex
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/Convert_PstricksCode_To_Pdf/test.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig13.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig14.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig1a.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig1b.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig1c.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig2a.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig2b.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig3.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig4.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig5.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig6.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig7.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig8.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/Fig9.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/ThreeAppsPDF.tex
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/b6of1.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/b6of2.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/b6of3.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/b6of4.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/vecb1.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/vecb2.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/vecb3.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/vecb4.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/vecb5.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Pdf_Output/vecb6.pdf
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/ThreeAppsPS.tex
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/b6of1.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/b6of2.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/b6of3.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/b6of4.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/vecb1.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/vecb2.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/vecb3.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/vecb4.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/vecb5.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/For_Ps_Output/vecb6.eps
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/README
%doc %{_texmfdistdir}/doc/latex/pstricks_calcnotes/ThreeAppsPDF.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19334 |21mr|texlive-pstricks-tutorial-20111104-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-pstricks-tutorial
Version:	20111104
Release:	6
Summary:	TeXLive pstricks-tutorial package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstricks-tutorial.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pstricks-tutorial.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive pstricks-tutorial package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap1-figures.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap1-src.tar.gz
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap1.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap2-figures.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap2-src.tar.gz
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap2.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap3-figures.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap3-src.tar.gz
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap3.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap4-figures.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap4-src.tar.gz
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap4.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap5-figures.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap5-src.tar.gz
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap5.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap6-figures.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap6-src.tar.gz
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap6.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap7-figures.pdf
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap7-src.tar.gz
%doc %{_texmfdistdir}/doc/generic/pstricks-tutorial/chap7.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19335 |21mr|texlive-pst-rubans-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23464
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-rubans
# catalog-date 2011-06-24 10:29:05 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-pst-rubans
Version:	1.2
Release:	7
Summary:	Draw three-dimensional ribbons
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-rubans
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-rubans.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-rubans.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-rubans.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses PStricks and pst-solides3d to draw three
dimensional ribbons on a cylinder, torus, sphere, cone or
paraboloid. The width of the ribbon, the number of turns, the
colour of the outer and the inner surface of the ribbon may be
set. In the case of circular and conical helices, one may also
choose the number of ribbons.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-rubans/pst-rubans.tex
%{_texmfdistdir}/tex/latex/pst-rubans/pst-rubans.sty
%doc %{_texmfdistdir}/doc/generic/pst-rubans/Changes
%doc %{_texmfdistdir}/doc/generic/pst-rubans/README
%doc %{_texmfdistdir}/doc/generic/pst-rubans/pst-rubans-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-rubans/pst-rubans-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-rubans/pst-rubans-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-rubans/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19336 |21mr|texlive-pst-sigsys-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21667
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-sigsys
# catalog-date 2011-03-09 20:38:22 +0100
# catalog-license lppl
# catalog-version 1.4
Name:		texlive-pst-sigsys
Version:	1.4
Release:	7
Summary:	Support of signal processing-related disciplines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-sigsys
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-sigsys.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-sigsys.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a collection of useful macros for
disciplines related to signal processing. It defines macros for
plotting a sequence of numbers, drawing the pole-zero diagram
of a system, shading the region of convergence, creating an
adder or a multiplier node, placing a framed node at a given
coordinate, creating an up-sampler or a down-sampler node,
drawing the block diagram of a system, drawing adaptive
systems, sequentially connecting a list of nodes, and
connecting a list of nodes using any node-connecting macro.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-sigsys/pst-sigsys.tex
%{_texmfdistdir}/tex/latex/pst-sigsys/pst-sigsys.sty
%doc %{_texmfdistdir}/doc/generic/pst-sigsys/Changes
%doc %{_texmfdistdir}/doc/generic/pst-sigsys/README
%doc %{_texmfdistdir}/doc/generic/pst-sigsys/pst-sigsys-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-sigsys/pst-sigsys-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-sigsys/pst-sigsys-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19337 |21mr|texlive-pst-slpe-1.31-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24391
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-slpe
# catalog-date 2011-10-25 20:39:05 +0200
# catalog-license lppl
# catalog-version 1.31
Name:		texlive-pst-slpe
Version:	1.31
Release:	7
Summary:	Sophisticated colour gradients
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-slpe
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-slpe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-slpe.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-slpe.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This PStricks package covers all the colour gradient
functionality of pst-grad (part of the base pstricks
distribution), and provides the following facilities: - it
permits the user to specify an arbitrary number of colours,
along with the points at which they are to be reached; - it
converts between RGB and HSV behind the scenes; - it provides
concentric and radial gradients; - it provides a command
\psBall that generates bullets with a three-dimensional
appearance; and - uses the xkeyval package for the extended key
handling.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-slpe/pst-slpe.pro
%{_texmfdistdir}/tex/generic/pst-slpe/pst-slpe.tex
%{_texmfdistdir}/tex/latex/pst-slpe/pst-slpe.sty
%doc %{_texmfdistdir}/doc/generic/pst-slpe/Changes
%doc %{_texmfdistdir}/doc/generic/pst-slpe/README
%doc %{_texmfdistdir}/doc/generic/pst-slpe/pst-slpe.pdf
#- source
%doc %{_texmfdistdir}/source/generic/pst-slpe/Makefile
%doc %{_texmfdistdir}/source/generic/pst-slpe/pst-slpe.dtx
%doc %{_texmfdistdir}/source/generic/pst-slpe/pst-slpe.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19338 |21mr|texlive-pst-solarsystem-0.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-solarsystem
Version:	0.13
Release:	2
Summary:	Plot the solar system for a specific date
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-solarsystem
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-solarsystem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-solarsystem.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses pstricks to produce diagrams of the visible
planets, projected on the plane of the ecliptic. It is not
possible to represent all the planets in their real
proportions, so only Mercury, Venus, Earth and Mars have their
orbits in correct proportions and their relative sizes are
observed. Saturn and Jupiter are in the right direction, but
not in the correct size.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-solarsystem
%{_texmfdistdir}/tex/generic/pst-solarsystem
%{_texmfdistdir}/tex/latex/pst-solarsystem
%doc %{_texmfdistdir}/doc/generic/pst-solarsystem

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19339 |21mr|texlive-pst-solides3d-4.34a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-solides3d
Version:	4.34a
Release:	1
Summary:	Draw perspective views of 3D solids
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-solides3d
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-solides3d.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-solides3d.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is designed to draw solids in 3d perspective.
Features include: create primitive solids; create solids by
including a list of its vertices and faces; faces of solids and
surfaces can be colored by choosing from a very large palette
of colors; draw parametric surfaces in algebraic and reverse
polish notation; create explicit and parameterized algebraic
functions drawn in 2 or 3 dimensions; project text onto a plane
and onto the faces of a solid; support for including external
database files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-solides3d
%{_texmfdistdir}/tex/generic/pst-solides3d
%{_texmfdistdir}/tex/latex/pst-solides3d

%doc %{_texmfdistdir}/doc/generic/pst-solides3d

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19340 |21mr|texlive-pst-soroban-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-soroban
# catalog-date 2008-08-23 00:25:16 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-pst-soroban
Version:	1.0
Release:	7
Summary:	Draw a Soroban using PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-soroban
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-soroban.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-soroban.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-soroban.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses PSTricks to draw a Japanese abacus, or
soroban. The soroban is still used in Japan today.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-soroban/pst-soroban.sty
%doc %{_texmfdistdir}/doc/generic/pst-soroban/Changes
%doc %{_texmfdistdir}/doc/generic/pst-soroban/README
%doc %{_texmfdistdir}/doc/generic/pst-soroban/pst-soroban-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-soroban/pst-soroban-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-soroban/pst-soroban-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-soroban/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19341 |21mr|texlive-pst-spectra-0.91-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-spectra
# catalog-date 2008-08-23 00:25:16 +0200
# catalog-license lppl
# catalog-version 0.91
Name:		texlive-pst-spectra
Version:	0.91
Release:	7
Summary:	Draw continuum, emission and absorption spectra with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-spectra
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-spectra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-spectra.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is a PSTricks extension, based on a NASA lines
database. It allows you to draw continuum, emission and
absorption spectra. A Total of 16 880 visible lines from 99
elements can be displayed. The package requires the xkeyval
package for decoding its arguments.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-spectra/pst-spectra.pro
%{_texmfdistdir}/tex/generic/pst-spectra/pst-spectra.tex
%{_texmfdistdir}/tex/latex/pst-spectra/pst-spectra.sty
%doc %{_texmfdistdir}/doc/generic/pst-spectra/README
%doc %{_texmfdistdir}/doc/generic/pst-spectra/pst-spectra.pdf
%doc %{_texmfdistdir}/doc/generic/pst-spectra/pst-spectraEN.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19342 |21mr|texlive-pst-stru-0.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-stru
Version:	0.13
Release:	2
Summary:	Civil engineering diagrams, using pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-stru
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-stru.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-stru.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-stru is a PSTricks-based package to draw structural schemes
in civil engineering analysis, for beams, portals, arches and
piles.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-stru
%{_texmfdistdir}/tex/latex/pst-stru
%doc %{_texmfdistdir}/doc/generic/pst-stru

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19343 |21mr|texlive-pst-support-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/pst-support
# catalog-date 2009-02-07 21:39:27 +0100
# catalog-license lppl
# catalog-version 2009-02-05
Name:		texlive-pst-support
Version:	20190228
Release:	1
Summary:	Assorted support files for use with PStricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/pst-support
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-support.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-support.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
An appropriate set of job options, together with process
scripts for use with TeXnicCenter/.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/pst-support/README
%doc %{_texmfdistdir}/doc/generic/pst-support/Standard_transparency.joboptions
%doc %{_texmfdistdir}/doc/generic/pst-support/latex-ps-pdf.tco
%doc %{_texmfdistdir}/doc/generic/pst-support/latex-pstpdf-pdf.tco
%doc %{_texmfdistdir}/doc/generic/pst-support/pdflatex-autopstpdf.tco

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19344 |21mr|texlive-pst-text-1.02-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-text
# catalog-date 2007-03-11 16:56:01 +0100
# catalog-license lppl
# catalog-version 1.00
Name:		texlive-pst-text
Version:	1.02
Release:	1
Summary:	Text and character manipulation in PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-text
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-text.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-text.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-text.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pst-text is a PSTricks based package for plotting text along a
different path and manipulating characters. It includes the
functionality of the old package pst-char.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-text/pst-text.pro
%{_texmfdistdir}/tex/generic/pst-text
%{_texmfdistdir}/tex/latex/pst-text
%doc %{_texmfdistdir}/doc/generic/pst-text
#- source
%doc %{_texmfdistdir}/source/generic/pst-text/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19345 |21mr|texlive-pst-thick-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16369
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-thick
# catalog-date 2009-12-14 16:47:24 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-pst-thick
Version:	1.0
Release:	7
Summary:	Drawing very thick lines and curves
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-thick
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-thick.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-thick.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-thick.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports drawing of very thick lines and curves in
PSTricks, with various fillings for the body of the lines.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-thick/pst-thick.tex
%{_texmfdistdir}/tex/latex/pst-thick/pst-thick.sty
%doc %{_texmfdistdir}/doc/generic/pst-thick/Changes
%doc %{_texmfdistdir}/doc/generic/pst-thick/README
%doc %{_texmfdistdir}/doc/generic/pst-thick/pst-thick-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-thick/pst-thick-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-thick/pst-thick-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-thick/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19346 |21mr|texlive-pst-tools-0.09b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-tools
Epoch:		1
Version:	0.09b
Release:	2
Summary:	PStricks support functions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-tools
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-tools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-tools.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides helper functions for other PSTricks
related packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-tools
%{_texmfdistdir}/tex/generic/pst-tools
%{_texmfdistdir}/tex/latex/pst-tools
%doc %{_texmfdistdir}/doc/generic/pst-tools

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19347 |21mr|texlive-pst-tree-1.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pst-tree
Version:	1.13
Release:	2
Summary:	Trees, using pstricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-tree
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-tree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-tree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
pst-tree is a pstricks package that defines a macro \pstree
which offers a structured way of joining nodes created using
pst-node in order to draw trees.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-tree
%{_texmfdistdir}/tex/latex/pst-tree
%doc %{_texmfdistdir}/doc/generic/pst-tree

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19348 |21mr|texlive-pst-tvz-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23451
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-tvz
# catalog-date 2011-06-14 17:30:27 +0200
# catalog-license lppl1.3
# catalog-version 1.01
Name:		texlive-pst-tvz
Version:	1.01
Release:	7
Summary:	Draw trees with more than on root node, using PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-tvz
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-tvz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-tvz.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-tvz.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses PSTricks to draw trees with more than one root
node. It is similar to pst-tree, though it uses a different
placement algorithm.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/pst-tvz/pst-tvz.tex
%{_texmfdistdir}/tex/latex/pst-tvz/pst-tvz.sty
%doc %{_texmfdistdir}/doc/generic/pst-tvz/Changes
%doc %{_texmfdistdir}/doc/generic/pst-tvz/README
%doc %{_texmfdistdir}/doc/generic/pst-tvz/pst-tvz-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-tvz/pst-tvz-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-tvz/pst-tvz-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-tvz/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19349 |21mr|texlive-pst-uml-0.83-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-uml
# catalog-date 2007-01-04 21:17:26 +0100
# catalog-license lppl
# catalog-version 0.83
Name:		texlive-pst-uml
Version:	0.83
Release:	7
Summary:	UML diagrams with PSTricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-uml
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-uml.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-uml.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-uml.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-multido

%description
pst-uml is a PSTricks package that provides support for drawing
moderately complex UML (Universal Modelling Language) diagrams.
(The PDF documentation is written in French.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-uml/pst-uml.sty
%doc %{_texmfdistdir}/doc/generic/pst-uml/Changes
%doc %{_texmfdistdir}/doc/generic/pst-uml/README
%doc %{_texmfdistdir}/doc/generic/pst-uml/diagCase.tex
%doc %{_texmfdistdir}/doc/generic/pst-uml/diagClass.tex
%doc %{_texmfdistdir}/doc/generic/pst-uml/diagClass1.tex
%doc %{_texmfdistdir}/doc/generic/pst-uml/diagSeq.tex
%doc %{_texmfdistdir}/doc/generic/pst-uml/diagState.tex
%doc %{_texmfdistdir}/doc/generic/pst-uml/pst-uml-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-uml/pst-uml-doc.tex
%doc %{_texmfdistdir}/doc/generic/pst-uml/pst-uml-encapsuled-pdf-fig.pdf
%doc %{_texmfdistdir}/doc/generic/pst-uml/pst-uml-encapsuled-pdf-fig.tex
%doc %{_texmfdistdir}/doc/generic/pst-uml/pst-uml-exemples.pdf
%doc %{_texmfdistdir}/doc/generic/pst-uml/pst-uml-exemples.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-uml/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19350 |21mr|texlive-pst-vowel-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25228
# category Package
# catalog-ctan /macros/latex/contrib/pst-vowel
# catalog-date 2012-01-28 08:48:38 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-pst-vowel
Version:	1.0
Release:	8
Summary:	Enable arrows showing diphthongs on vowel charts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pst-vowel
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-vowel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-vowel.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends vowel.sty (distributed as part of the tipa
bundle) by allowing the user to draw arrows between vowels to
show relationships such as diphthong membership. The package
depends on use of pstricks.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pst-vowel/pst-vowel.sty
%doc %{_texmfdistdir}/doc/latex/pst-vowel/README
%doc %{_texmfdistdir}/doc/latex/pst-vowel/pst-vowel.pdf
%doc %{_texmfdistdir}/doc/latex/pst-vowel/pst-vowel.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19351 |21mr|texlive-pst-vue3d-1.24-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/pst-vue3d
# catalog-date 2008-02-21 14:49:16 +0100
# catalog-license lppl
# catalog-version 1.24
Name:		texlive-pst-vue3d
Version:	1.24
Release:	7
Summary:	Draw perspective views of three dimensional objects
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/pst-vue3d
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-vue3d.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-vue3d.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pst-vue3d.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
With pst-vue3d three dimensional objects like cubes, spheres
and others can be viewed from different points. The
distribution includes a comprehensive set of examples of usage.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/pst-vue3d/pst-vue3d.pro
%{_texmfdistdir}/tex/generic/pst-vue3d/pst-vue3d.tex
%{_texmfdistdir}/tex/latex/pst-vue3d/pst-vue3d.sty
%doc %{_texmfdistdir}/doc/generic/pst-vue3d/Changes
%doc %{_texmfdistdir}/doc/generic/pst-vue3d/README
%doc %{_texmfdistdir}/doc/generic/pst-vue3d/pst-vue3d-doc.bib
%doc %{_texmfdistdir}/doc/generic/pst-vue3d/pst-vue3d-doc.pdf
%doc %{_texmfdistdir}/doc/generic/pst-vue3d/pst-vue3d-doc.tex
#- source
%doc %{_texmfdistdir}/source/generic/pst-vue3d/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19352 |21mr|texlive-psu-thesis-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/psu-thesis
# catalog-date 2008-09-20 13:36:26 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-psu-thesis
Version:	1.1
Release:	7
Summary:	Package for writing a thesis at Penn State University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/psu-thesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psu-thesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psu-thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides proper page formatting according to the
Penn State thesis office guidelines (as of 2004) and
automatically formats the front and back matter, title page,
and more. A BibTeX style file is also included for the
bibliography.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/psu-thesis/psuthesis.bst
%{_texmfdistdir}/tex/latex/psu-thesis/psu-thesis.sty
%doc %{_texmfdistdir}/doc/latex/psu-thesis/README
%doc %{_texmfdistdir}/doc/latex/psu-thesis/manual.pdf
%doc %{_texmfdistdir}/doc/latex/psu-thesis/manual.tex
%doc %{_texmfdistdir}/doc/latex/psu-thesis/mssample.pdf
%doc %{_texmfdistdir}/doc/latex/psu-thesis/mssample.tex
%doc %{_texmfdistdir}/doc/latex/psu-thesis/phdsample.pdf
%doc %{_texmfdistdir}/doc/latex/psu-thesis/phdsample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19353 |21mr|texlive-psutils-p17-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23089
# category TLCore
# catalog-ctan /support/psutils
# catalog-date 2009-11-10 00:30:52 +0100
# catalog-license other-free
# catalog-version p17
Name:		texlive-psutils
Version:	p17
Release:	11
Summary:	PostScript utilities
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/psutils
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psutils.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/psutils.doc.tar.xz
BuildArch:	noarch
Provides:	texlive-psutils.bin = %{EVRD}
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A bundle of utilities for manipulating PostScript documents,
including page selection and rearrangement, resizing the page,
arrangement into signatures for booklet printing, and page
merging for n-up printing. Utilities include psbook, psselect,
pstops, psnup, psresize, epsffit.


#-----------------------------------------------------------------------
%files
%{_bindir}/extractres
%{_bindir}/fixdlsrps
%{_bindir}/fixfmps
%{_bindir}/fixpsditps
%{_bindir}/fixpspps
%{_bindir}/fixscribeps
%{_bindir}/fixtpps
%{_bindir}/fixwfwps
%{_bindir}/fixwpps
%{_bindir}/fixwwps
%{_bindir}/includeres
%{_bindir}/psmerge
%{_texmfdir}/scripts/psutils/extractres.pl
%{_texmfdir}/scripts/psutils/fixdlsrps.pl
%{_texmfdir}/scripts/psutils/fixfmps.pl
%{_texmfdir}/scripts/psutils/fixpsditps.pl
%{_texmfdir}/scripts/psutils/fixpspps.pl
%{_texmfdir}/scripts/psutils/fixscribeps.pl
%{_texmfdir}/scripts/psutils/fixtpps.pl
%{_texmfdir}/scripts/psutils/fixwfwps.pl
%{_texmfdir}/scripts/psutils/fixwpps.pl
%{_texmfdir}/scripts/psutils/fixwwps.pl
%{_texmfdir}/scripts/psutils/includeres.pl
%{_texmfdir}/scripts/psutils/psmerge.pl
%doc %{_mandir}/man1/epsffit.1*
%doc %{_texmfdir}/doc/man/man1/epsffit.man1.pdf
%doc %{_mandir}/man1/extractres.1*
%doc %{_texmfdir}/doc/man/man1/extractres.man1.pdf
%doc %{_mandir}/man1/fixdlsrps.1*
%doc %{_texmfdir}/doc/man/man1/fixdlsrps.man1.pdf
%doc %{_mandir}/man1/fixfmps.1*
%doc %{_texmfdir}/doc/man/man1/fixfmps.man1.pdf
%doc %{_mandir}/man1/fixpsditps.1*
%doc %{_texmfdir}/doc/man/man1/fixpsditps.man1.pdf
%doc %{_mandir}/man1/fixpspps.1*
%doc %{_texmfdir}/doc/man/man1/fixpspps.man1.pdf
%doc %{_mandir}/man1/fixscribeps.1*
%doc %{_texmfdir}/doc/man/man1/fixscribeps.man1.pdf
%doc %{_mandir}/man1/fixtpps.1*
%doc %{_texmfdir}/doc/man/man1/fixtpps.man1.pdf
%doc %{_mandir}/man1/fixwfwps.1*
%doc %{_texmfdir}/doc/man/man1/fixwfwps.man1.pdf
%doc %{_mandir}/man1/fixwpps.1*
%doc %{_texmfdir}/doc/man/man1/fixwpps.man1.pdf
%doc %{_mandir}/man1/fixwwps.1*
%doc %{_texmfdir}/doc/man/man1/fixwwps.man1.pdf
%doc %{_mandir}/man1/includeres.1*
%doc %{_texmfdir}/doc/man/man1/includeres.man1.pdf
%doc %{_mandir}/man1/psbook.1*
%doc %{_texmfdir}/doc/man/man1/psbook.man1.pdf
%doc %{_mandir}/man1/psmerge.1*
%doc %{_texmfdir}/doc/man/man1/psmerge.man1.pdf
%doc %{_mandir}/man1/psnup.1*
%doc %{_texmfdir}/doc/man/man1/psnup.man1.pdf
%doc %{_mandir}/man1/psresize.1*
%doc %{_texmfdir}/doc/man/man1/psresize.man1.pdf
%doc %{_mandir}/man1/psselect.1*
%doc %{_texmfdir}/doc/man/man1/psselect.man1.pdf
%doc %{_mandir}/man1/pstops.1*
%doc %{_texmfdir}/doc/man/man1/pstops.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdir}/scripts/psutils/extractres.pl extractres
    ln -sf %{_texmfdir}/scripts/psutils/fixdlsrps.pl fixdlsrps
    ln -sf %{_texmfdir}/scripts/psutils/fixfmps.pl fixfmps
    ln -sf %{_texmfdir}/scripts/psutils/fixpsditps.pl fixpsditps
    ln -sf %{_texmfdir}/scripts/psutils/fixpspps.pl fixpspps
    ln -sf %{_texmfdir}/scripts/psutils/fixscribeps.pl fixscribeps
    ln -sf %{_texmfdir}/scripts/psutils/fixtpps.pl fixtpps
    ln -sf %{_texmfdir}/scripts/psutils/fixwfwps.pl fixwfwps
    ln -sf %{_texmfdir}/scripts/psutils/fixwpps.pl fixwpps
    ln -sf %{_texmfdir}/scripts/psutils/fixwwps.pl fixwwps
    ln -sf %{_texmfdir}/scripts/psutils/includeres.pl includeres
    ln -sf %{_texmfdir}/scripts/psutils/psmerge.pl psmerge
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19354 |21mr|texlive-ptex-20180128-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ptex
Version:	20180128
Release:	2
Summary:	A TeX system for publishing in Japanese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/ptex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ptex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ptex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-tex
Requires:	texlive-latex
Requires:	texlive-hyph-utf8
Requires:	texlive-adobemapping
Requires:	texlive-ipaex
Requires:	texlive-japanese
Requires:	texlive-japanese-otf
Requires:	texlive-ptex.bin

%description
PTeX adds features related to vertical writing, and deals with
other problems in typesetting Japanese. A set of additions to a
TEXMF tree, for use with PTeX, may be found in package PTeX-
texmf. PTeX is distributed as WEB change files.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvipdfmx/ptex
%_texmf_fmtutil_d/ptex
%_texmf_updmap_d/ptex
%doc %{_mandir}/man1/mendex.1*
%doc %{_texmfdistdir}/doc/man/man1/mendex.man1.pdf
%doc %{_mandir}/man1/makejvf.1*
%doc %{_texmfdistdir}/doc/man/man1/makejvf.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/ptex <<EOF
#
# from ptex:
ptex ptex - ptex.ini
eptex eptex language.def *eptex.ini
platex eptex language.dat *platex.ini
EOF
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/ptex <<EOF
KanjiMap morisawa.map
KanjiMap ptex-@kanjiEmbed@@kanjiVariant@.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19355 |21mr|texlive-ptex2pdf-20181212.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ptex2pdf
Version:	20181212.0
Release:	1
Summary:	Convert Japanese TeX documents to PDF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/ptex2pdf
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ptex2pdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ptex2pdf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-ptex2pdf.bin = %{EVRD}

%description
The Lua script provides system-independent support of Japanese
typesetting engines in TeXworks. As TeXworks typesetting setup
does not allow for multistep processing, this script runs one
of the ptex-based programs (ptex, uptex, eptex, platex,
uplatex) followed by dvipdfmx.

#-----------------------------------------------------------------------
%files
%{_bindir}/ptex2pdf
%{_texmfdistdir}/scripts/ptex2pdf
%doc %{_texmfdistdir}/doc/latex/ptex2pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/ptex2pdf/ptex2pdf.lua ptex2pdf
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19356 |21mr|texlive-ptext-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30171
# category Package
# catalog-ctan /macros/xetex/latex/ptext
# catalog-date 2013-04-29 15:26:25 +0200
# catalog-license lppl1.2
# catalog-version 1.1
Name:		texlive-ptext
Version:	1.1
Release:	10
Summary:	A 'lipsum' for Persian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/ptext
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ptext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ptext.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides lipsum-like facilities for the Persian
language. The source of the filling text is the Persian epic
"the Shanameh" (100 paragraphs are used.) The package needs to
be run under XeLaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/ptext/ptext.sty
%doc %{_texmfdistdir}/doc/xelatex/ptext/README
%doc %{_texmfdistdir}/doc/xelatex/ptext/ptext.pdf
%doc %{_texmfdistdir}/doc/xelatex/ptext/ptext.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19357 |21mr|texlive-ptptex-0.91-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/ptptex
# catalog-date 2008-11-22 15:14:22 +0100
# catalog-license lppl
# catalog-version 0.91
Name:		texlive-ptptex
Version:	0.91
Release:	7
Summary:	Macros for 'Progress of Theoretical Physics'
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ptptex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ptptex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ptptex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The distribution contains the class (which offers an option
file for preprints), and a template. The class requires the
cite, overcite and wrapfig packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ptptex/ptp-prep.clo
%{_texmfdistdir}/tex/latex/ptptex/ptptex.cls
%{_texmfdistdir}/tex/latex/ptptex/wrapft.sty
%doc %{_texmfdistdir}/doc/latex/ptptex/README
%doc %{_texmfdistdir}/doc/latex/ptptex/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/ptptex/manptp.pdf
%doc %{_texmfdistdir}/doc/latex/ptptex/manptp.tex
%doc %{_texmfdistdir}/doc/latex/ptptex/template.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19358 |21mr|texlive-pxbase-1.1b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pxbase
Version:	1.1b
Release:	2
Summary:	Tools for use with (u)pLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/pxbase
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxbase.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxbase.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive pxbase package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/platex/pxbase
%doc %{_texmfdistdir}/doc/platex/pxbase

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19359 |21mr|texlive-pxchfon-1.4a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pxchfon
Version:	1.4a
Release:	1
Summary:	Japanese font setup for pLaTeX and upLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/pxchfon
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxchfon.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxchfon.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive pxchfon package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/sfd/pxchfon
%{_texmfdistdir}/fonts/tfm/public/pxchfon
%{_texmfdistdir}/fonts/vf/public/pxchfon
%{_texmfdistdir}/tex/platex/pxchfon
%doc %{_texmfdistdir}/doc/platex/pxchfon

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19360 |21mr|texlive-pxcjkcat-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27780
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-pxcjkcat
Version:	1.1
Release:	2
Epoch:		1
Summary:	TeXLive pxcjkcat package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxcjkcat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxcjkcat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive pxcjkcat package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pxcjkcat/pxcjkcat.sty
%doc %{_texmfdistdir}/doc/latex/pxcjkcat/LICENSE
%doc %{_texmfdistdir}/doc/latex/pxcjkcat/README
%doc %{_texmfdistdir}/doc/latex/pxcjkcat/README-ja

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19361 |21mr|texlive-pxfonts-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/pxfonts
# catalog-date 2009-01-15 09:33:18 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-pxfonts
Version:	20190228
Release:	1
Summary:	Palatino-like fonts in support of mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/pxfonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxfonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Pxfonts supplies virtual text roman fonts using Adobe Palatino
(or URWPalladioL) with some modified and additional text
symbols in the OT1, T1, and TS1 encodings; maths alphabets
using Palatino/Palladio; maths fonts providing all the symbols
of the Computer Modern and AMS fonts, including all the Greek
capital letters from CMR; and additional maths fonts of various
other symbols. The set is complemented by a sans-serif set of
text fonts, based on Helvetica/NimbusSanL, and a monospace set
derived from the parallel TX font set. All the fonts are in
Type 1 format (AFM and PFB files), and are supported by TeX
metrics (VF and TFM files) and macros for use with LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxbex.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxbexa.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxbmia.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxbsy.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxbsya.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxbsyb.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxbsyc.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxex.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxexa.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxmia.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxsy.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxsya.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxsyb.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/pxsyc.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpcxb.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpcxbi.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpcxi.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpcxr.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpxb.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpxbi.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpxbmi.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpxbsc.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpxi.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpxmi.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpxr.afm
%{_texmfdistdir}/fonts/afm/public/pxfonts/rpxsc.afm
%{_texmfdistdir}/fonts/map/dvips/pxfonts/pxfonts.map
%{_texmfdistdir}/fonts/map/dvips/pxfonts/pxr.map
%{_texmfdistdir}/fonts/map/dvips/pxfonts/pxr1.map
%{_texmfdistdir}/fonts/map/dvips/pxfonts/pxr2.map
%{_texmfdistdir}/fonts/map/dvips/pxfonts/pxr3.map
%{_texmfdistdir}/fonts/tfm/public/pxfonts/p1xb.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/p1xbi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/p1xbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/p1xbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/p1xi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/p1xr.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/p1xsc.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/p1xsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pcxb.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pcxbi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pcxbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pcxi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pcxr.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pcxsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxb.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbex.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbexa.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbmi1.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbmia.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbsy.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbsya.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxbsyc.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxex.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxexa.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxmi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxmi1.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxmia.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxr.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxsc.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxsy.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxsya.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/pxsyc.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpcxb.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpcxbi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpcxbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpcxi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpcxr.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpcxsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxb.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxbi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxmi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxpplb.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxpplbi.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxpplbo.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxpplr.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxpplri.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxpplro.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxr.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxsc.tfm
%{_texmfdistdir}/fonts/tfm/public/pxfonts/rpxsl.tfm
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxbex.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxbexa.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxbmia.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxbsy.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxbsya.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxbsyb.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxbsyc.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxex.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxexa.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxmia.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxsy.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxsya.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxsyb.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/pxsyc.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpcxb.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpcxbi.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpcxi.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpcxr.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpxb.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpxbi.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpxbmi.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpxbsc.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpxi.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpxmi.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpxr.pfb
%{_texmfdistdir}/fonts/type1/public/pxfonts/rpxsc.pfb
%{_texmfdistdir}/fonts/vf/public/pxfonts/p1xb.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/p1xbi.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/p1xbsc.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/p1xbsl.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/p1xi.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/p1xr.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/p1xsc.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/p1xsl.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pcxb.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pcxbi.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pcxbsl.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pcxi.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pcxr.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pcxsl.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxb.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxbi.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxbmi.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxbmi1.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxbsc.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxbsl.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxi.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxmi.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxmi1.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxr.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxsc.vf
%{_texmfdistdir}/fonts/vf/public/pxfonts/pxsl.vf
%{_texmfdistdir}/tex/latex/pxfonts/omlpxmi.fd
%{_texmfdistdir}/tex/latex/pxfonts/omlpxr.fd
%{_texmfdistdir}/tex/latex/pxfonts/omspxr.fd
%{_texmfdistdir}/tex/latex/pxfonts/omspxsy.fd
%{_texmfdistdir}/tex/latex/pxfonts/omxpxex.fd
%{_texmfdistdir}/tex/latex/pxfonts/ot1pxr.fd
%{_texmfdistdir}/tex/latex/pxfonts/ot1pxss.fd
%{_texmfdistdir}/tex/latex/pxfonts/ot1pxtt.fd
%{_texmfdistdir}/tex/latex/pxfonts/pxfonts.sty
%{_texmfdistdir}/tex/latex/pxfonts/t1pxr.fd
%{_texmfdistdir}/tex/latex/pxfonts/t1pxss.fd
%{_texmfdistdir}/tex/latex/pxfonts/t1pxtt.fd
%{_texmfdistdir}/tex/latex/pxfonts/ts1pxr.fd
%{_texmfdistdir}/tex/latex/pxfonts/ts1pxss.fd
%{_texmfdistdir}/tex/latex/pxfonts/ts1pxtt.fd
%{_texmfdistdir}/tex/latex/pxfonts/upxexa.fd
%{_texmfdistdir}/tex/latex/pxfonts/upxmia.fd
%{_texmfdistdir}/tex/latex/pxfonts/upxr.fd
%{_texmfdistdir}/tex/latex/pxfonts/upxss.fd
%{_texmfdistdir}/tex/latex/pxfonts/upxsya.fd
%{_texmfdistdir}/tex/latex/pxfonts/upxsyb.fd
%{_texmfdistdir}/tex/latex/pxfonts/upxsyc.fd
%{_texmfdistdir}/tex/latex/pxfonts/upxtt.fd
%doc %{_texmfdistdir}/doc/fonts/pxfonts/00bug_fix.txt
%doc %{_texmfdistdir}/doc/fonts/pxfonts/COPYRIGHT
%doc %{_texmfdistdir}/doc/fonts/pxfonts/pxfontsdoc.pdf
%doc %{_texmfdistdir}/doc/fonts/pxfonts/pxfontsdoc.tex
%doc %{_texmfdistdir}/doc/fonts/pxfonts/pxfontsdocA4.pdf
%doc %{_texmfdistdir}/doc/fonts/pxfonts/pxfontsdocA4.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19362 |21mr|texlive-pxgreeks-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21838
# category Package
# catalog-ctan /macros/latex/contrib/pxgreeks
# catalog-date 2011-03-18 12:27:11 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-pxgreeks
Version:	1.0
Release:	7
Summary:	Shape selection for PX fonts Greek letters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/pxgreeks
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxgreeks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxgreeks.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxgreeks.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows LaTeX users who use the PX fonts to select
the shapes (italic or upright) for the Greek lowercase and
uppercase letters. Once the shapes for lowercase and uppercase
have been selected via a package option, the \other prefix
(e.g., \otheralpha) allows using the alternate glyph (as in the
fourier package). The pxgreeks package does not constrain the
text font that may be used in the document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pxgreeks/pxgreeks.sty
%doc %{_texmfdistdir}/doc/latex/pxgreeks/README
%doc %{_texmfdistdir}/doc/latex/pxgreeks/pxgreeks.pdf
#- source
%doc %{_texmfdistdir}/source/latex/pxgreeks/pxgreeks.dtx
%doc %{_texmfdistdir}/source/latex/pxgreeks/pxgreeks.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19363 |21mr|texlive-pxjahyper-0.3d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pxjahyper
Version:	0.3d
Release:	2
Summary:	Hyperref support for pLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/pxjahyper
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxjahyper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxjahyper.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive pxjahyper package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/platex/pxjahyper
%doc %{_texmfdistdir}/doc/platex/pxjahyper

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19364 |21mr|texlive-pxpgfmark-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30212
# category Package
# catalog-ctan /graphics/pgf/contrib/pxpgfmark
# catalog-date 2013-05-02 11:19:37 +0200
# catalog-license other-free
# catalog-version 0.2
Name:		texlive-pxpgfmark
Version:	0.2
Release:	10
Summary:	e-pTeX driver for PGF inter-picture connections
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/pxpgfmark
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxpgfmark.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxpgfmark.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The distributed drivers do not support the PGF feature of
"inter-picture connections" under e-pTeX and dvipdfmx. The
package uses existing features of dvipdfmx to fix this problem.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/pxpgfmark/pxpgfmark.sty
%doc %{_texmfdistdir}/doc/latex/pxpgfmark/LICENSE
%doc %{_texmfdistdir}/doc/latex/pxpgfmark/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19365 |21mr|texlive-pxrubrica-1.3c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-pxrubrica
Version:	1.3c
Release:	1
Epoch:		1
Summary:	TeXLive pxrubrica package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxrubrica.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxrubrica.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/pxrubrica.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive pxrubrica package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/platex/pxrubrica
%doc %{_texmfdistdir}/doc/platex/pxrubrica
#- source
%doc %{_texmfdistdir}/source/platex/pxrubrica

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19366 |21mr|texlive-python-0.21-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27064
# category Package
# catalog-ctan /macros/latex/contrib/python
# catalog-date 2012-07-03 11:28:15 +0200
# catalog-license gpl
# catalog-version 0.21
Name:		texlive-python
Version:	0.21
Release:	6
Summary:	Embed Python code in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/python
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/python.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/python.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables you to embed Python code in LaTeX, and
insert the script's output in the document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/python/python.sty
%doc %{_texmfdistdir}/doc/latex/python/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19367 |21mr|texlive-qcm-2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/qcm
# catalog-date 2009-03-26 15:47:40 +0100
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-qcm
Version:	2.1
Release:	7
Summary:	A LaTeX2e class for making multiple choice questionnaires
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/qcm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qcm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qcm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qcm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
QCM is a package for making multiple choices questionnaires
under LaTeX2e ("QCM" is the French acronym for this style of
test). A special environment allows you to define questions and
possible answers. You can specify which answers are correct and
which are not. QCM not only formats the questions for you, but
also generates a 'form' (a grid that your students will have to
fill in), and a 'mask' (the same grid, only with correct
answers properly checked in). You can then print the mask on a
slide and correct the questionnaires more easily by
superimposing the mask on top of students' forms. QCM can also
typeset exam corrections automatically, and comes with support
for AUC-TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/qcm/qcm.cls
%{_texmfdistdir}/tex/latex/qcm/qcm.sty
%doc %{_texmfdistdir}/doc/latex/qcm/NEWS
%doc %{_texmfdistdir}/doc/latex/qcm/README
%doc %{_texmfdistdir}/doc/latex/qcm/qcm.el
%doc %{_texmfdistdir}/doc/latex/qcm/qcm.pdf
#- source
%doc %{_texmfdistdir}/source/latex/qcm/qcm.dtx
%doc %{_texmfdistdir}/source/latex/qcm/qcm.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19368 |21mr|texlive-qobitree-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-qobitree
Version:	20190228
Release:	1
Summary:	LaTeX macros for typesetting trees
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/qobitree
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qobitree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qobitree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides commands \branch and \leaf for specifying the elements
of the tree; you build up your tree with those commands, and
then issue the \tree command to typeset the whole.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/qobitree
%doc %{_texmfdistdir}/doc/latex/qobitree

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19369 |21mr|texlive-qpxqtx-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-qpxqtx
Version:	20190228
Release:	1
Summary:	TeXLive qpxqtx package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qpxqtx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qpxqtx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive qpxqtx package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/qpxqtx
%{_texmfdistdir}/fonts/vf/public/qpxqtx
%{_texmfdistdir}/tex/generic/qpxqtx
%doc %{_texmfdistdir}/doc/fonts/qpxqtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19370 |21mr|texlive-qrcode-1.51-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-qrcode
Version:	1.51
Release:	1
Summary:	Generate QR codes in LATEX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/qrcode
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qrcode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qrcode.doc.tar.xz
Source2:    http://mirrors.ctan.org/systems/texlive/tlnet/archive/qrcode.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package generates QR (Quick Response) codes in LATEX,
without the need for PSTricks or any other graphical package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/qrcode
%{_texmfdistdir}/source/latex/qrcode
%doc %{_texmfdistdir}/doc/latex/qrcode

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19371 |21mr|texlive-qstest-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/qstest
# catalog-date 2008-08-24 10:50:19 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-qstest
Version:	20190228
Release:	1
Summary:	Bundle for unit tests and pattern matching
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/qstest
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qstest.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qstest.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qstest.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is the public release of the qstest bundle (written for
DocScape Publisher) (C) 2006, 2007 QuinScape GmbH. The bundle
contains the packages 'makematch' for matching patterns to
targets (with a generalization in the form of pattern lists and
keyword lists), and 'qstest' for performing unit tests,
allowing the user to run a number of logged tests ensuring the
consistency of values, properties and call sequences during
execution of test code. Both packages make extensive use of in
their package documentation, providing illustrated examples
that are automatically verified to work as expected. Check the
README file for details.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/qstest/makematch.sty
%{_texmfdistdir}/tex/latex/qstest/qstest.sty
%doc %{_texmfdistdir}/doc/latex/qstest/README
%doc %{_texmfdistdir}/doc/latex/qstest/makematch-qs.tex
%doc %{_texmfdistdir}/doc/latex/qstest/makematch.pdf
%doc %{_texmfdistdir}/doc/latex/qstest/qstest-qs.tex
%doc %{_texmfdistdir}/doc/latex/qstest/qstest.pdf
#- source
%doc %{_texmfdistdir}/source/latex/qstest/Makefile
%doc %{_texmfdistdir}/source/latex/qstest/makematch.drv
%doc %{_texmfdistdir}/source/latex/qstest/makematch.dtx
%doc %{_texmfdistdir}/source/latex/qstest/qstest.drv
%doc %{_texmfdistdir}/source/latex/qstest/qstest.dtx
%doc %{_texmfdistdir}/source/latex/qstest/qstest.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19372 |21mr|texlive-qsymbols-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/qsymbols
# catalog-date 2009-06-25 00:34:53 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-qsymbols
Version:	20180303
Release:	2
Summary:	Maths symbol abbreviations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/qsymbols
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qsymbols.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qsymbols.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qsymbols.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides macros for defining systematic mnemonic abbreviations,
starting with ` for math symbols and \" for arrows, using
standard symbols as well as those from the amsfonts bundle and
the stmaryrd package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/qsymbols/qsymbols.sty
%doc %{_texmfdistdir}/doc/latex/qsymbols/CATALOG
%doc %{_texmfdistdir}/doc/latex/qsymbols/COPYING
%doc %{_texmfdistdir}/doc/latex/qsymbols/MANIFEST
%doc %{_texmfdistdir}/doc/latex/qsymbols/README
%doc %{_texmfdistdir}/doc/latex/qsymbols/qsymbols.pdf
%doc %{_texmfdistdir}/doc/latex/qsymbols/qsymbols.tex
#- source
%doc %{_texmfdistdir}/source/latex/qsymbols/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19373 |21mr|texlive-qtree-3.1b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/qtree
# catalog-date 2009-01-24 16:10:54 +0100
# catalog-license lppl
# catalog-version 3.1b
Name:		texlive-qtree
Version:	3.1b
Release:	7
Summary:	Draw tree structures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/qtree
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qtree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/qtree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers support for drawing tree diagrams, and is
especially suitable for linguistics use. It allows trees to be
specified in a simple bracket notation, automatically
calculates branch sizes, and supports both DVI/PostScript and
PDF output by use of pict2e facilities. The package is a
development of the existing qobitree package, offering a new
front end.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/qtree/qtree.sty
%doc %{_texmfdistdir}/doc/latex/qtree/README
%doc %{_texmfdistdir}/doc/latex/qtree/qarrows.pdf
%doc %{_texmfdistdir}/doc/latex/qtree/qarrows.tex
%doc %{_texmfdistdir}/doc/latex/qtree/qtreenotes.pdf
%doc %{_texmfdistdir}/doc/latex/qtree/qtreenotes.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19374 |21mr|texlive-quicktype-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-quicktype
Version:	0.1
Release:	2
Summary:	Intended for the quick typesetting of basic documents using LaTeX 
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/quicktype
Group:		Publishing
License:	LPPL1.3
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/quicktype.doc.tar.xz  
Source1:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/quicktype.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea  

%description 
Intended for the quick typesetting of basic documents using LaTeX
using shortcuts to existing commands and specific
commands for quick formatting.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/quicktype
%doc %{_texmfdistdir}/doc/latex/quicktype

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19375 |21mr|texlive-quotchap-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28046
# category Package
# catalog-ctan /macros/latex/contrib/quotchap
# catalog-date 2012-10-20 22:28:24 +0200
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-quotchap
Version:	1.1
Release:	10
Summary:	Decorative chapter headings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/quotchap
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quotchap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quotchap.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quotchap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for creating decorative chapter headings with
quotations. Uses graphical and coloured output and by default
needs the "Adobe standard font set" (as supported by psnfss).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/quotchap/quotchap.sty
%doc %{_texmfdistdir}/doc/latex/quotchap/README
%doc %{_texmfdistdir}/doc/latex/quotchap/document.pdf
%doc %{_texmfdistdir}/doc/latex/quotchap/document.tex
%doc %{_texmfdistdir}/doc/latex/quotchap/quotchap.pdf
#- source
%doc %{_texmfdistdir}/source/latex/quotchap/quotchap.dtx
%doc %{_texmfdistdir}/source/latex/quotchap/quotchap.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19376 |21mr|texlive-quoting-0.1c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-quoting
Version:	0.1c
Release:	2
Summary:	Consolidated environment for displayed text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/quoting
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quoting.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quoting.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quoting.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
As an alternative to the LaTeX standard environments quotation
and quote, the package provides a consolidated environment for
displayed text. First-line indentation may be activated by
adding a blank line before the quoting environment. A key-value
interface (using kvoptions) allows the user to configure font
properties and spacing and to control orphans within and after
the environment.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/quoting/quoting.sty
%doc %{_texmfdistdir}/doc/latex/quoting/README
%doc %{_texmfdistdir}/doc/latex/quoting/quoting.pdf
#- source
%doc %{_texmfdistdir}/source/latex/quoting/quoting.dtx
%doc %{_texmfdistdir}/source/latex/quoting/quoting.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19377 |21mr|texlive-quotmark-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/quotmark
# catalog-date 2008-08-24 10:50:19 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-quotmark
Version:	1.0
Release:	7
Summary:	Consistent quote marks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/quotmark
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quotmark.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quotmark.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/quotmark.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of ensuring consistent quote marks
throughout your document. The style can be changed either via
package option or command. The package detects if babel or
ngerman have been loaded, and will use the punctuation marks
appropriate for the current language.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/quotmark/quotmark-UKenglish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-USenglish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-afrikaans.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-brazil.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-bulgarian.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-catalan.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-croatian.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-czech.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-danish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-dutch.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-estonian.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-finnish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-frenchb.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-germanb.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-greek.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-hebrew.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-icelandic.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-irish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-italian.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-magyar.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-ngermanb.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-norsk.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-polish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-portuges.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-romanian.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-russianb.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-serbian.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-slovak.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-slovene.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-sorbian.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-spanish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-swedish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-swiss.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-turkish.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-ukraineb.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark-welsh.def
%{_texmfdistdir}/tex/latex/quotmark/quotmark.sty
%doc %{_texmfdistdir}/doc/latex/quotmark/CHANGES
%doc %{_texmfdistdir}/doc/latex/quotmark/README
%doc %{_texmfdistdir}/doc/latex/quotmark/quotmark.pdf
%doc %{_texmfdistdir}/doc/latex/quotmark/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/quotmark/quotmark.dtx
%doc %{_texmfdistdir}/source/latex/quotmark/quotmark.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19378 |21mr|texlive-randbild-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/randbild
# catalog-date 2007-05-16 07:57:15 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-randbild
Version:	0.2
Release:	7
Summary:	Marginal pictures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/randbild
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randbild.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randbild.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randbild.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides environments randbild, to draw small marginal plots
(using the package pstricks package pst-plot), and
randbildbasis (the same, only without the automatically drawn
coordinate system).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/randbild/randbild.sty
%doc %{_texmfdistdir}/doc/latex/randbild/README
%doc %{_texmfdistdir}/doc/latex/randbild/randbild.pdf
#- source
%doc %{_texmfdistdir}/source/latex/randbild/randbild.dtx
%doc %{_texmfdistdir}/source/latex/randbild/randbild.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19379 |21mr|texlive-randomwalk-0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-randomwalk
Version:	0.6
Release:	1
Summary:	Random walks using TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/randomwalk
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randomwalk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randomwalk.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randomwalk.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The randomwalk package provides a user command, \RandomWalk, to
draw random walks with a given number of steps. Lengths and
angles of the steps can be customized in various ways. The
package uses PGF/TikZ for its graphical output.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/randomwalk
%doc %{_texmfdistdir}/doc/latex/randomwalk
#- source
%doc %{_texmfdistdir}/source/latex/randomwalk

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19380 |21mr|texlive-randtext-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-randtext
Version:	20190228
Release:	1
Summary:	Randomise the order of characters in strings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/randtext/randtext.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randtext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/randtext.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a single macro \randomize{TEXT} that
typesets the characters of TEXT in random order, such that the
resulting output appears correct, but most automated attempts
to read the file will misunderstand it. This function allows
one to include an email address in a TeX document and publish
it online without fear of email address harvesters or spammers
easily picking up the address.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/randtext
%doc %{_texmfdistdir}/doc/latex/randtext

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19381 |21mr|texlive-ran_toks-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ran_toks
Version:	1.1
Release:	2
Epoch:		1
Summary:	TeXLive ran_toks package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ran_toks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ran_toks.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ran_toks.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive ran_toks package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ran_toks
%doc %{_texmfdistdir}/doc/latex/ran_toks
#- source
%doc %{_texmfdistdir}/source/latex/ran_toks

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19382 |21mr|texlive-rccol-1.2c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/rccol
# catalog-date 2008-04-20 19:53:04 +0200
# catalog-license other-free
# catalog-version 1.2c
Name:		texlive-rccol
Version:	1.2c
Release:	7
Summary:	Decimal-centered optionally rounded numbers in tabular
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rccol
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rccol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rccol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rccol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The rccol package provides decimal-centered numbers:
corresponding digits and decimal separators aligned.
Furthermore, rounding to the desired precision is possible. The
package makes use of the fltpoint package (as well as the LaTeX
required array package).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rccol/rccol.sty
%doc %{_texmfdistdir}/doc/latex/rccol/README
%doc %{_texmfdistdir}/doc/latex/rccol/rccol.pdf
#- source
%doc %{_texmfdistdir}/source/latex/rccol/rccol.dtx
%doc %{_texmfdistdir}/source/latex/rccol/rccol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19383 |21mr|texlive-rcs-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-rcs
Version:	20190228
Release:	1
Summary:	Use RCS (revision control system) tags in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rcs
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The rcs package utilizes the inclusion of RCS supplied data in
LaTeX documents. It's upward compatible to *all* rcs styles I
know of. In particular, you can easily - access values of every
RCS field in your document - put the checkin date on the
titlepage - put RCS fields in a footline You can typeset
revision logs. Not in verbatim -- real LaTeX text! But you need
a configurable RCS for that. Refer to the user manual for more
detailed information. You can also configure the rcs package
easily to do special things for any keyword. This bundle comes
with a user manual, an internal interface description, full
documentation of the implementation, style information for AUC-
TeX, and test cases.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rcs
%doc %{_texmfdistdir}/doc/latex/rcs
#- source
%doc %{_texmfdistdir}/source/latex/rcs

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19384 |21mr|texlive-rcsinfo-1.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/rcsinfo
# catalog-date 2007-01-06 10:07:33 +0100
# catalog-license lppl
# catalog-version 1.11
Name:		texlive-rcsinfo
Version:	1.11
Release:	7
Summary:	Support for the revision control system
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rcsinfo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcsinfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcsinfo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcsinfo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package to extract RCS (Revision Control System) information
and use it in a LaTeX document. For users of LaTeX2HTML
rcsinfo.perl is included.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rcsinfo/rcsinfo.cfg
%{_texmfdistdir}/tex/latex/rcsinfo/rcsinfo.sty
%doc %{_texmfdistdir}/doc/latex/rcsinfo/README
%doc %{_texmfdistdir}/doc/latex/rcsinfo/README-1.9
%doc %{_texmfdistdir}/doc/latex/rcsinfo/rcsinfo.init
%doc %{_texmfdistdir}/doc/latex/rcsinfo/rcsinfo.pdf
%doc %{_texmfdistdir}/doc/latex/rcsinfo/rcsinfo.perl
%doc %{_texmfdistdir}/doc/latex/rcsinfo/rcsinfo2html.tex
#- source
%doc %{_texmfdistdir}/source/latex/rcsinfo/Makefile
%doc %{_texmfdistdir}/source/latex/rcsinfo/rcsinfo.dtx
%doc %{_texmfdistdir}/source/latex/rcsinfo/rcsinfo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19385 |21mr|texlive-rcs-multi-0.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21939
# category Package
# catalog-ctan /macros/latex/contrib/rcs-multi
# catalog-date 2011-04-03 16:27:03 +0200
# catalog-license lppl
# catalog-version 0.1a
Name:		texlive-rcs-multi
Version:	0.1a
Release:	7
Summary:	Typeset RCS version control in multiple-file documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rcs-multi
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcs-multi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcs-multi.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rcs-multi.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to typeset version control
information provided by RCS keywords (e.g., $ID: ... $) in
LaTeX documents that contain multiple TeX files. The package is
based on the author's svn-multi package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rcs-multi/rcs-multi.sty
%doc %{_texmfdistdir}/doc/latex/rcs-multi/example.pdf
%doc %{_texmfdistdir}/doc/latex/rcs-multi/rcs-multi.pdf
#- source
%doc %{_texmfdistdir}/source/latex/rcs-multi/Makefile
%doc %{_texmfdistdir}/source/latex/rcs-multi/example.tex
%doc %{_texmfdistdir}/source/latex/rcs-multi/rcs-multi.dtx
%doc %{_texmfdistdir}/source/latex/rcs-multi/rcs-multi.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19386 |21mr|texlive-readarray-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30489
# category Package
# catalog-ctan /macros/latex/contrib/readarray
# catalog-date 2013-05-15 00:25:13 +0200
# catalog-license lppl1.3
# catalog-version 1.2
Name:		texlive-readarray
Version:	2.0
Release:	2
Summary:	Read, store and recall array-formatted data
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/readarray
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/readarray.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/readarray.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to input formatted data into
elements of a 2-D or 3-D array and to recall that data at will
by individual cell number. The data can be but need not be
numerical in nature. It can be, for example, formatted text.
While the package can be used for any application where indexed
data is called for, the package proves particularly useful when
elements of multiple arrays must be recallable and dynamically
combined at time of compilation, rather than in advance.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/readarray/readarray.sty
%doc %{_texmfdistdir}/doc/latex/readarray/README
%doc %{_texmfdistdir}/doc/latex/readarray/readarray.pdf
%doc %{_texmfdistdir}/doc/latex/readarray/readarray.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19387 |21mr|texlive-realboxes-0.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23581
# category Package
# catalog-ctan /macros/latex/contrib/realboxes
# catalog-date 2011-08-16 10:35:18 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-realboxes
Version:	0.2
Release:	8
Summary:	Variants of common box-commands that read their content as real box
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/realboxes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/realboxes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/realboxes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/realboxes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses the author's package collectbox to define
variants of common box related macros which read the content as
real box and not as macro argument. This enables the use of
verbatim or other special material as part of this content. The
provided macros have the same names as the original versions
but start with an upper-case letter instead. The "long-form"
macros, like \Makebox, can also be used as environments, but
not the "short-form" macros, like \Mbox. However, normally the
long form uses the short form anyway when no optional arguments
are used.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/realboxes/realboxes.sty
%doc %{_texmfdistdir}/doc/latex/realboxes/README
%doc %{_texmfdistdir}/doc/latex/realboxes/realboxes.pdf
#- source
%doc %{_texmfdistdir}/source/latex/realboxes/realboxes.dtx
%doc %{_texmfdistdir}/source/latex/realboxes/realboxes.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19388 |21mr|texlive-realscripts-0.3d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-realscripts
Version:	0.3d
Release:	2
Summary:	Access OpenType subscript and superscript glyphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/realscripts
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/realscripts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/realscripts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/realscripts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small package replaces \textsuperscript and \textsubscript
commands by equivalent commands that use OpenType font features
to access appropriate glyphs if possible. The package also
patches LaTeX's default footnote command to use this new
\textsuperscript for footnote symbols. The package requires
fontspec running on either XeLaTeX or LuaLaTeX. The package
holds functions that were once parts of the xltxtra package,
which now loads realscripts by default.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/realscripts
%doc %{_texmfdistdir}/doc/latex/realscripts
#- source
%doc %{_texmfdistdir}/source/latex/realscripts

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19389 |21mr|texlive-recipe-0.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/recipe
# catalog-date 2008-09-11 15:08:12 +0200
# catalog-license pd
# catalog-version 0.9
Name:		texlive-recipe
Version:	0.9
Release:	7
Summary:	A LaTeX class to typeset recipes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/recipe
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/recipe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/recipe.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The layout design is relative straightforward (and traditional:
see 'sample output' under 'documentation'); the class needs
access to Bookman, and to BrushScript-Italic fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/recipe/recipe.cls
%doc %{_texmfdistdir}/doc/latex/recipe/README
%doc %{_texmfdistdir}/doc/latex/recipe/sample.pdf
%doc %{_texmfdistdir}/doc/latex/recipe/sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19390 |21mr|texlive-recipecard-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/recipecard
# catalog-date 2008-08-24 10:50:19 +0200
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-recipecard
Version:	2.0
Release:	7
Summary:	Typeset recipes in note-card-sized boxes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/recipecard
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/recipecard.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/recipecard.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/recipecard.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The recipecard class typesets recipes into note card sized
boxes that can then be cut out and pasted on to note cards. The
recipe then looks elegant and fits in the box of recipes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/recipecard/recipecard.cls
%doc %{_texmfdistdir}/doc/latex/recipecard/README
%doc %{_texmfdistdir}/doc/latex/recipecard/recipecard.pdf
%doc %{_texmfdistdir}/doc/latex/recipecard/test2.pdf
%doc %{_texmfdistdir}/doc/latex/recipecard/test2.tex
#- source
%doc %{_texmfdistdir}/source/latex/recipecard/recipecard.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19391 |21mr|texlive-rectopma-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19980
# category Package
# catalog-ctan /macros/latex/contrib/rectopma
# catalog-date 2010-10-02 17:24:09 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-rectopma
Version:	20190228
Release:	1
Summary:	Recycle top matter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rectopma
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rectopma.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rectopma.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Saves the arguments of \author and \title for reference (after
\maketitle) in a document. (\maketitle simply disposes of the
information, in the standard classes and some others.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rectopma/rectopma.sty
%doc %{_texmfdistdir}/doc/latex/rectopma/TestTitle.pdf
%doc %{_texmfdistdir}/doc/latex/rectopma/TestTitle.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19392 |21mr|texlive-refcheck-1.9.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29128
# category Package
# catalog-ctan /macros/latex/contrib/refcheck
# catalog-date 2012-06-26 13:14:08 +0200
# catalog-license gpl
# catalog-version 1.7
Name:		texlive-refcheck
Version:	1.9.1
Release:	2
Summary:	Check references (in figures, table, equations, etc)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/refcheck
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refcheck.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refcheck.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package checks references in a document, looking for
numbered but unlabelled equations, for labels which are not
used in the text, for unused bibliography references. It can
also display label names in text near corresponding numbers of
equations and/or bibliography references.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/refcheck/refcheck.sty
%doc %{_texmfdistdir}/doc/latex/refcheck/README
%doc %{_texmfdistdir}/doc/latex/refcheck/refdemo.pdf
%doc %{_texmfdistdir}/doc/latex/refcheck/refdemo.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19393 |21mr|texlive-refenums-1.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-refenums
Version:	1.1.2
Release:	2
Summary:	Define reference labels items with names of their own
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/refenums
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refenums.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refenums.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to define enumerable items with a
number and a long name, which can be referenced referenced
later with the name or just the short form. For instance,
"Milestone M1: Specification created" can be defined and later
on be referenced with 'M1' or 'M1 ("Specification created")'.
The text in the references is derived from the definition and
also rendered as hyperlink to the definition.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/refenums
%doc %{_texmfdistdir}/doc/latex/refenums

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19394 |21mr|texlive-reflectgraphics-0.2c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-reflectgraphics
Version:	0.2c
Release:	2
Summary:	Techniques for reflecting graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/reflectgraphics
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reflectgraphics.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reflectgraphics.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reflectgraphics.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a macro for reflecting images, in a number
of different ways, in pursuit of "more striking" graphics in a
document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/reflectgraphics
%doc %{_texmfdistdir}/doc/latex/reflectgraphics
#- source
%doc %{_texmfdistdir}/source/latex/reflectgraphics

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19395 |21mr|texlive-refman-2.0e-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/refman
# catalog-date 2006-11-19 21:19:11 +0100
# catalog-license lppl
# catalog-version 2.0e
Name:		texlive-refman
Version:	2.0e
Release:	7
Summary:	Format technical reference manuals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/refman
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refman.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refman.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refman.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Document classes (report- and article-style) for writing
technical reference manuals. It offers a wide left margin for
notes to the reader, like some of the manuals distributed by
Adobe.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/refman/pagepc.sty
%{_texmfdistdir}/tex/latex/refman/refart.cls
%{_texmfdistdir}/tex/latex/refman/refrep.cls
%doc %{_texmfdistdir}/doc/latex/refman/00Contents
%doc %{_texmfdistdir}/doc/latex/refman/lay_d2.tex
%doc %{_texmfdistdir}/doc/latex/refman/lay_e2.tex
%doc %{_texmfdistdir}/doc/latex/refman/layout_d.pdf
%doc %{_texmfdistdir}/doc/latex/refman/layout_d.tex
%doc %{_texmfdistdir}/doc/latex/refman/layout_e.pdf
%doc %{_texmfdistdir}/doc/latex/refman/layout_e.tex
%doc %{_texmfdistdir}/doc/latex/refman/refman.pdf
%doc %{_texmfdistdir}/doc/latex/refman/refman.upl
#- source
%doc %{_texmfdistdir}/source/latex/refman/refman.dtx
%doc %{_texmfdistdir}/source/latex/refman/refman.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19396 |21mr|texlive-refstyle-0.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20318
# category Package
# catalog-ctan /macros/latex/contrib/refstyle
# catalog-date 2010-11-03 15:55:25 +0100
# catalog-license lppl
# catalog-version 0.5
Name:		texlive-refstyle
Version:	0.5
Release:	7
Summary:	Advanced formatting of cross references
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/refstyle
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refstyle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refstyle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/refstyle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The refstyle provides a consistent way of producing references
throughout a project. Enough flexibility is provided to make
local changes to a single reference. The user can configure
their own setup. refstyle has a direct interface to varioref,
and namerefs from the nameref package can easily be
incorporated (if needed). For large projects such as a series
of books or a multi volume thesis, written as freestanding
documents, a facility is provided to interface to the xr
package for external document references.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/refstyle/refstyle.cfg
%{_texmfdistdir}/tex/latex/refstyle/refstyle.sty
%doc %{_texmfdistdir}/doc/latex/refstyle/README
%doc %{_texmfdistdir}/doc/latex/refstyle/refconfig.pdf
%doc %{_texmfdistdir}/doc/latex/refstyle/refstyle.pdf
#- source
%doc %{_texmfdistdir}/source/latex/refstyle/refconfig.dtx
%doc %{_texmfdistdir}/source/latex/refstyle/refstyle.dtx
%doc %{_texmfdistdir}/source/latex/refstyle/refstyle.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19397 |21mr|texlive-regcount-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19979
# category Package
# catalog-ctan /macros/latex/contrib/regcount
# catalog-date 2010-10-02 17:24:09 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-regcount
Version:	1.0
Release:	7
Summary:	Display the allocation status of the TeX registers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/regcount
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regcount.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regcount.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regcount.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Adds a macro \rgcount which displays the allocation status of
the TeX registers. The display is written into the .log file as
it is a bit verbose. An automatic call to \rgcount is done at
\begin{document} and \end{document}.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/regcount/regcount.sty
%doc %{_texmfdistdir}/doc/latex/regcount/readme
%doc %{_texmfdistdir}/doc/latex/regcount/regcount.pdf
#- source
%doc %{_texmfdistdir}/source/latex/regcount/regcount.dtx
%doc %{_texmfdistdir}/source/latex/regcount/regcount.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19398 |21mr|texlive-regexpatch-0.2d-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29543
# category Package
# catalog-ctan /macros/latex/contrib/regexpatch
# catalog-date 2013-03-28 17:44:41 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-regexpatch
Epoch:		1
Version:	0.2d
Release:	3
Summary:	High level patching of commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/regexpatch
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regexpatch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regexpatch.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regexpatch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package generalises the macro patching commands provided by
P. Lehmann's etoolbox. The difference between this package and
its sibling xpatch is that this package sports a very powerful
\regexpatchcmd based on the l3regex module of the LaTeX3
experimental packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/regexpatch/regexpatch.sty
%doc %{_texmfdistdir}/doc/latex/regexpatch/README
%doc %{_texmfdistdir}/doc/latex/regexpatch/regexpatch.pdf
#- source
%doc %{_texmfdistdir}/source/latex/regexpatch/regexpatch.dtx
%doc %{_texmfdistdir}/source/latex/regexpatch/regexpatch.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19399 |21mr|texlive-register-1.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21127
# category Package
# catalog-ctan /macros/latex/contrib/register
# catalog-date 2011-01-19 22:37:08 +0100
# catalog-license lppl
# catalog-version 1.6
Name:		texlive-register
Version:	1.6
Release:	7
Summary:	Typeset programmable elements in digital hardware (registers)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/register
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/register.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/register.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/register.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is designed for typesetting the programmable
elements in digital hardware, i.e., registers. Such registers
typically have many fields and can be quite wide; they are thus
a challenge to typeset in a consistent manner. Register is
similar in some aspects to the bytefield package. Anyone doing
hardware documentation using LaTeX should examine both
packages. Register requires a fairly recent version of the
float package. A Perl module and a Perl script are provided, to
translate the register specifications into programmable data
structures.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/register/register.sty
%doc %{_texmfdistdir}/doc/latex/register/Reg_macro.pm
%doc %{_texmfdistdir}/doc/latex/register/reg_list.pl
%doc %{_texmfdistdir}/doc/latex/register/register.pdf
#- source
%doc %{_texmfdistdir}/source/latex/register/register.dtx
%doc %{_texmfdistdir}/source/latex/register/register.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19400 |21mr|texlive-regstats-1.0h-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25050
# category Package
# catalog-ctan /macros/latex/contrib/regstats
# catalog-date 2012-01-02 14:24:13 +0100
# catalog-license lppl1.3
# catalog-version 1.0g
Name:		texlive-regstats
Version:	1.0h
Release:	2
Summary:	Information about register use
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/regstats
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regstats.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regstats.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/regstats.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package will report number of used registers (counter,
dimen, skip, muskip, box, token, input, output, math families,
languages, insertions), and will compare the number to the
maximum available number of such registers.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/regstats/regstats.sty
%doc %{_texmfdistdir}/doc/latex/regstats/README
%doc %{_texmfdistdir}/doc/latex/regstats/regstats-example.log
%doc %{_texmfdistdir}/doc/latex/regstats/regstats-example.pdf
%doc %{_texmfdistdir}/doc/latex/regstats/regstats-example.tex
%doc %{_texmfdistdir}/doc/latex/regstats/regstats.pdf
#- source
%doc %{_texmfdistdir}/source/latex/regstats/regstats.drv
%doc %{_texmfdistdir}/source/latex/regstats/regstats.dtx
%doc %{_texmfdistdir}/source/latex/regstats/regstats.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19401 |21mr|texlive-relenc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22050
# category Package
# catalog-ctan /macros/latex/contrib/relenc
# catalog-date 2011-04-06 08:31:30 +0200
# catalog-license lppl1
# catalog-version undef
Name:		texlive-relenc
Version:	20190228
Release:	1
Summary:	A "relaxed" font encoding
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/relenc
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/relenc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/relenc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/relenc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX package providing a relaxed font encoding to make
available to a font designer more slots for insertion of
ligatures and accented characters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/public/relenc/zcmr8d.tfm
%{_texmfdistdir}/fonts/tfm/public/relenc/zcmra.tfm
%{_texmfdistdir}/fonts/vf/public/relenc/zcmr8d.vf
%{_texmfdistdir}/fonts/vf/public/relenc/zcmra.vf
%{_texmfdistdir}/tex/latex/relenc/2sidedoc.sty
%{_texmfdistdir}/tex/latex/relenc/ecsubzcm.sty
%{_texmfdistdir}/tex/latex/relenc/relenc.sty
%{_texmfdistdir}/tex/latex/relenc/t1renc.def
%{_texmfdistdir}/tex/latex/relenc/t1rzcm.fd
%doc %{_texmfdistdir}/doc/latex/relenc/README
%doc %{_texmfdistdir}/doc/latex/relenc/reldemo.tex
%doc %{_texmfdistdir}/doc/latex/relenc/relenc.tex
%doc %{_texmfdistdir}/doc/latex/relenc/zcmr8d.vf2
%doc %{_texmfdistdir}/doc/latex/relenc/zcmr8d.vf3
%doc %{_texmfdistdir}/doc/latex/relenc/zcmra.vf2
%doc %{_texmfdistdir}/doc/latex/relenc/zcmra.vf3
#- source
%doc %{_texmfdistdir}/source/latex/relenc/relenc.dtx
%doc %{_texmfdistdir}/source/latex/relenc/relenc.ins
%doc %{_texmfdistdir}/source/latex/relenc/t1renc.dtx
%doc %{_texmfdistdir}/source/latex/relenc/t1rzcm.fdd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19402 |21mr|texlive-relsize-4.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24.1074.1
# category Package
# catalog-ctan /macros/latex/contrib/relsize
# catalog-date 2011-09-23 08:29:05 +0200
# catalog-license pd
# catalog-version 4.1
Name:		texlive-relsize
Version:	4.1
Release:	7
Summary:	Set the font size relative to the current font size
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/relsize
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/relsize.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/relsize.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The basic command of the package is \relsize, whose argument is
a number of \magsteps to change size; from this are defined
commands \larger, \smaller, \textlarger, etc.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/relsize/relsize.sty
%doc %{_texmfdistdir}/doc/latex/relsize/README
%doc %{_texmfdistdir}/doc/latex/relsize/relsize-doc.pdf
%doc %{_texmfdistdir}/doc/latex/relsize/relsize-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19403 |21mr|texlive-reotex-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /graphics/pgf/contrib/reotex
# catalog-date 2012-01-11 08:56:14 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-reotex
Version:	1.1
Release:	2
Summary:	Draw Reo Channels and Circuits
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/reotex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reotex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reotex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines macros and other utilities to design Reo
Circuits. The package require PGF/TikZ support.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/reotex/reotex.sty
%doc %{_texmfdistdir}/doc/latex/reotex/README
%doc %{_texmfdistdir}/doc/latex/reotex/reotex.pdf
%doc %{_texmfdistdir}/doc/latex/reotex/reotex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19404 |21mr|texlive-repeatindex-0.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24305
# category Package
# catalog-ctan /macros/latex/contrib/repeatindex
# catalog-date 2011-06-16 21:20:53 +0200
# catalog-license lppl
# catalog-version 0.01
Name:		texlive-repeatindex
Version:	0.01
Release:	7
Summary:	Repeat items in an index after a page or column break
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/repeatindex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/repeatindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/repeatindex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This Package repeats item of an index if a page or column break
occurs within a list of subitems. This helps to find out to
which main item a subitem belongs.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/repeatindex/repeatindex.ist
%{_texmfdistdir}/tex/latex/repeatindex/repeatindex.sty
%doc %{_texmfdistdir}/doc/latex/repeatindex/README
%doc %{_texmfdistdir}/doc/latex/repeatindex/testrepeatindex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19405 |21mr|texlive-repere-17.11.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-repere
Version:	17.11.2
Release:	2
Epoch:		1
Summary:	TeXLive repere package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/repere.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/repere.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive repere package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/repere
%doc %{_texmfdistdir}/doc/metapost/repere

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19406 |21mr|texlive-resphilosophica-1.34-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32874
# category Package
# catalog-ctan /macros/latex/contrib/resphilosophica
# catalog-date 2014-02-05 19:42:21 +0100
# catalog-license lppl1.3
# catalog-version 1.19
Name:		texlive-resphilosophica
Version:	1.34
Release:	1
Summary:	Typeset articles for the journal Res Philosophica
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/resphilosophica
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/resphilosophica.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/resphilosophica.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/resphilosophica.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Th bundle provides a class for typesetting articles for the
journal Res Philosophica. Development was commissioned by Saint
Louis University.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/resphilosophica/resphilosophica.bst
%{_texmfdistdir}/tex/latex/resphilosophica/resphilosophica.cls
%doc %{_texmfdistdir}/doc/latex/resphilosophica/README
%doc %{_texmfdistdir}/doc/latex/resphilosophica/resphilosophica.bib
%doc %{_texmfdistdir}/doc/latex/resphilosophica/resphilosophica.pdf
%doc %{_texmfdistdir}/doc/latex/resphilosophica/rpsample.bib
%doc %{_texmfdistdir}/doc/latex/resphilosophica/rpsample.pdf
%doc %{_texmfdistdir}/doc/latex/resphilosophica/rpsample.tex
#- source
%doc %{_texmfdistdir}/source/latex/resphilosophica/resphilosophica.dtx
%doc %{_texmfdistdir}/source/latex/resphilosophica/resphilosophica.ins
%doc %{_texmfdistdir}/source/latex/resphilosophica/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19407 |21mr|texlive-resumecls-0.3.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-resumecls
Version:	0.3.2
Release:	2
Summary:	Typeset a resumee in both Chinese and English
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/resumecls
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/resumecls.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/resumecls.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/resumecls.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides a simple resumee structure that works,
natively, with both Chinese and English text.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/resumecls
%doc %{_texmfdistdir}/doc/xelatex/resumecls
#- source
%doc %{_texmfdistdir}/source/xelatex/resumecls

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19408 |21mr|texlive-reverxii-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24976
# category Package
# catalog-ctan /macros/plain/contrib/reverxii
# catalog-date 2011-12-30 00:42:15 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-reverxii
Version:	20190228
Release:	1
Summary:	Playing Reversi in TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/reverxii
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reverxii.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/reverxii.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Following the lead of xii.tex, this little (938 characters)
program that plays Reversi. (The program incorporates some
primitive AI.).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/plain/reverxii/README
%doc %{_texmfdistdir}/doc/plain/reverxii/reverxii.pdf
%doc %{_texmfdistdir}/doc/plain/reverxii/reverxii.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19409 |21mr|texlive-revtex4-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-revtex4
Version:	20190228
Release:	1
Summary:	TeXLive revtex4 package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/revtex4.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/revtex4.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/revtex4.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive revtex4 package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/revtex4
%{_texmfdistdir}/bibtex/bst/revtex4
%{_texmfdistdir}/tex/latex/revtex4
%doc %{_texmfdistdir}/doc/latex/revtex4
#- source
%doc %{_texmfdistdir}/source/latex/revtex4

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19410 |21mr|texlive-revtex-4.2c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19652
# category Package
# catalog-ctan /macros/latex/contrib/revtex
# catalog-date 2010-08-12 13:35:15 +0200
# catalog-license lppl1.3
# catalog-version 4.1r
Name:		texlive-revtex
Version:	4.2c
Release:	1
Summary:	Styles for various Physics Journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/revtex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/revtex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/revtex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/revtex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Includes styles for American Physical Society, American
Institute of Physics, and Optical Society of America. The
distribution consists of the RevTeX class itself, and several
support packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/revtex
%{_texmfdistdir}/tex/latex/revtex
%doc %{_texmfdistdir}/doc/latex/revtex
#- source
%doc %{_texmfdistdir}/source/latex/revtex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19411 |21mr|texlive-rjlparshap-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-rjlparshap
Version:	1.0
Release:	2
Epoch:		1
Summary:	TeXLive rjlparshap package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rjlparshap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rjlparshap.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rjlparshap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive rjlparshap package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rjlparshap/rjlpshap.sty
%doc %{_texmfdistdir}/doc/latex/rjlparshap/README
%doc %{_texmfdistdir}/doc/latex/rjlparshap/rjlpshap.pdf
#- source
%doc %{_texmfdistdir}/source/latex/rjlparshap/rjlpshap.dtx
%doc %{_texmfdistdir}/source/latex/rjlparshap/rjlpshap.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19412 |21mr|texlive-rlepsf-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19082
# category Package
# catalog-ctan /macros/generic/rlepsf
# catalog-date 2007-01-13 23:45:25 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-rlepsf
Version:	20190228
Release:	1
Summary:	Rewrite labels in EPS graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/rlepsf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rlepsf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rlepsf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A macro package for use with epsf.tex which allows PostScript
labels in an Encapsulated PostScript file to be replaced by TeX
labels. The package provides commands \relabel (simply replace
a PostScript string), \adjustrelabel (replace a PostScript
string, with position adjustment), and \extralabel (add a label
at given coordinates). You can, if you so choose, use the
facilities of the labelfig package in place of using
\extralabel.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/rlepsf/rlepsf.tex
%doc %{_texmfdistdir}/doc/generic/rlepsf/read.me
%doc %{_texmfdistdir}/doc/generic/rlepsf/rlepsdoc.ps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19413 |21mr|texlive-rmpage-0.92-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20002
# category Package
# catalog-ctan /macros/latex/contrib/rmpage
# catalog-date 2010-10-04 11:12:53 +0200
# catalog-license gpl
# catalog-version 0.92
Name:		texlive-rmpage
Version:	0.92
Release:	7
Summary:	A package to help change page layout parameters in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rmpage
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rmpage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rmpage.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package lets you change page layout parameters in small
steps over a range of values using options. It can set
\textwidth appropriately for the main fount, and ensure that
the text fits inside the printable area of a printer. An
rmpage-formatted document can be typeset identically without
rmpage after a single cut and paste operation. Local
configuration can set defaults: for all documents; and by
class, by printer, and by paper size. The geometry package is
better if you want to set page layout parameters to particular
measurements.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rmpage/rmpage.sty
%{_texmfdistdir}/tex/latex/rmpage/rmpgen.cfg
%doc %{_texmfdistdir}/doc/latex/rmpage/readme
%doc %{_texmfdistdir}/doc/latex/rmpage/rmpage-doc.pdf
%doc %{_texmfdistdir}/doc/latex/rmpage/rmpage-doc.tex
%doc %{_texmfdistdir}/doc/latex/rmpage/rmpage.tex
%doc %{_texmfdistdir}/doc/latex/rmpage/rmplocal.gfc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19414 |21mr|texlive-robustcommand-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/robustcommand
# catalog-date 2007-02-26 15:09:49 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-robustcommand
Version:	0.1
Release:	7
Summary:	Declare robust command, with \newcommand checks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/robustcommand
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/robustcommand.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/robustcommand.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/robustcommand.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package merely provides a variation of
\DeclareRobustCommand, which checks for the existence of a
command before declaring it robust.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/robustcommand/robustcommand.sty
%doc %{_texmfdistdir}/doc/latex/robustcommand/README
%doc %{_texmfdistdir}/doc/latex/robustcommand/robustcommand.pdf
#- source
%doc %{_texmfdistdir}/source/latex/robustcommand/robustcommand.dtx
%doc %{_texmfdistdir}/source/latex/robustcommand/robustcommand.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19415 |21mr|texlive-robustindex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-robustindex
Version:	20190228
Release:	1
Summary:	Create index with pagerefs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/robustindex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/robustindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/robustindex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Third parties often change the page numbers without rerunning
makeindex. One would like to make the page numbers in the index
entries more robust. This bundle provides robustindex.sty and
robustglossary.sty, which use the \pageref mechanism to
maintain correct page numbers.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/robustindex
%doc %{_texmfdistdir}/doc/latex/robustindex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19416 |21mr|texlive-roex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-roex
Version:	20190228
Release:	1
Summary:	TeXLive roex package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/roex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/roex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive roex package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metafont/roex/roex.mf
#- source
%doc %{_texmfdistdir}/source/metafont/roex/0roex.doc
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/0roexsam.doc
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/es-01.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/es-02.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/es-03.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/ro-01.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/ro-02.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/ro-03.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/ro-04.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/ro-05.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/ro-06.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/ro-07.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/roes-01.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/roes-02.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/roes-03.mf
%doc %{_texmfdistdir}/source/metafont/roex/roexsamp/roes-04.mf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metafont source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19417 |21mr|texlive-romanbar-1.0f-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25005
# category Package
# catalog-ctan /macros/latex/contrib/romanbar
# catalog-date 2012-01-02 20:05:40 +0100
# catalog-license lppl1.3
# catalog-version 1.0f
Name:		texlive-romanbar
Version:	1.0f
Release:	11
Summary:	Write roman number with "bars"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/romanbar
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romanbar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romanbar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romanbar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
'Bars', in the present context, are lines above and below text
that abut with the text. Barred roman numerals are sometimes
found in publications. The package provides a function that
prints barred roman numerals (converting arabic numerals if
necessary). The package also provides a predicate \ifnumeric.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/romanbar/romanbar.sty
%doc %{_texmfdistdir}/doc/latex/romanbar/README
%doc %{_texmfdistdir}/doc/latex/romanbar/romanbar-example.pdf
%doc %{_texmfdistdir}/doc/latex/romanbar/romanbar-example.tex
%doc %{_texmfdistdir}/doc/latex/romanbar/romanbar.pdf
#- source
%doc %{_texmfdistdir}/source/latex/romanbar/romanbar.drv
%doc %{_texmfdistdir}/source/latex/romanbar/romanbar.dtx
%doc %{_texmfdistdir}/source/latex/romanbar/romanbar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19418 |21mr|texlive-romanneg-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20087
# category Package
# catalog-ctan /macros/latex/contrib/romanneg
# catalog-date 2010-10-13 12:13:38 +0200
# catalog-license pd
# catalog-version undef
Name:		texlive-romanneg
Version:	20190228
Release:	1
Summary:	Roman page numbers negative
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/romanneg
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romanneg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romanneg.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Causes the page numbers in the DVI file (as defined by \count0)
to be negative when roman pagenumbering is in effect.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/romanneg/romanneg.sty
%doc %{_texmfdistdir}/doc/latex/romanneg/romanneg.ltx
%doc %{_texmfdistdir}/doc/latex/romanneg/romanneg.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19419 |21mr|texlive-romannum-1.0b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/romannum
# catalog-date 2009-09-03 13:00:14 +0200
# catalog-license lppl
# catalog-version 1.0b
Name:		texlive-romannum
Version:	1.0b
Release:	7
Summary:	Generate roman numerals instead of arabic digits
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/romannum
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romannum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romannum.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romannum.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The romannum package changes LaTeX generated numbers to be
printed with roman numerals instead of arabic digits. It
requires the stdclsdv package. Users of the bookhands fonts may
find this package useful.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/romannum/romannum.sty
%doc %{_texmfdistdir}/doc/latex/romannum/README
%doc %{_texmfdistdir}/doc/latex/romannum/romannum.pdf
#- source
%doc %{_texmfdistdir}/source/latex/romannum/romannum.dtx
%doc %{_texmfdistdir}/source/latex/romannum/romannum.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19420 |21mr|texlive-romansh-20120413-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25956
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/romansh
# catalog-date 2012-04-13 15:00:06 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-romansh
Version:	20120413
Release:	7
Summary:	Babel/Polyglossia support for the Romansh language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/romansh
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romansh.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romansh.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/romansh.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a language description file that enables
support of Romansh either with babel or with polyglossia.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/romansh/romansh.ldf
%doc %{_texmfdistdir}/doc/latex/romansh/romansh.pdf
#- source
%doc %{_texmfdistdir}/source/latex/romansh/romansh.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19421 |21mr|texlive-rotfloat-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18292
# category Package
# catalog-ctan /macros/latex/contrib/rotfloat
# catalog-date 2009-10-07 22:25:55 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-rotfloat
Version:	1.2
Release:	7
Summary:	Rotate floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rotfloat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rotfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rotfloat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rotfloat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The float package provides commands to define new floats of
various styles (plain, boxed, ruled, and userdefined ones); the
rotating package provides new environments (sidewaysfigure and
sidewaystable) which are rotated by 90 or 270 degrees. But what
about new rotated floats, e.g. a rotated ruled one? This
package makes this possible; it builds a bridge between the two
packages and extends the commands from the float package to
define rotated versions of the new floats, too.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rotfloat/rotfloat.sty
%doc %{_texmfdistdir}/doc/latex/rotfloat/examples.tex
%doc %{_texmfdistdir}/doc/latex/rotfloat/rotfloat.pdf
#- source
%doc %{_texmfdistdir}/source/latex/rotfloat/rotfloat.dtx
%doc %{_texmfdistdir}/source/latex/rotfloat/rotfloat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19422 |21mr|texlive-rotpages-3.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18740
# category Package
# catalog-ctan /macros/latex/contrib/rotpages
# catalog-date 2007-01-14 10:43:12 +0100
# catalog-license lppl
# catalog-version 3.0
Name:		texlive-rotpages
Version:	3.0
Release:	7
Summary:	Typeset sets of pages upside-down and backwards
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rotpages
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rotpages.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rotpages.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The rotpages package allows you to format documents where small
sets of pages are rotated by 180 degrees and rearranged, so
that they can be read by turning the printed copy upside-down.
It was primarly meant for collecting exercises and solutions:
using the package, you can print the exercise text normally and
the solutions rotated.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rotpages/rotpages.sty
%doc %{_texmfdistdir}/doc/latex/rotpages/Documentation/rotpages-doc.pdf
%doc %{_texmfdistdir}/doc/latex/rotpages/Documentation/rotpages-doc.tex
%doc %{_texmfdistdir}/doc/latex/rotpages/Examples/rotpages-doublecolumn-ex.pdf
%doc %{_texmfdistdir}/doc/latex/rotpages/Examples/rotpages-doublecolumn-ex.tex
%doc %{_texmfdistdir}/doc/latex/rotpages/Examples/rotpages-fancy-ex.pdf
%doc %{_texmfdistdir}/doc/latex/rotpages/Examples/rotpages-fancy-ex.tex
%doc %{_texmfdistdir}/doc/latex/rotpages/Examples/rotpages-singlecolumn-ex.pdf
%doc %{_texmfdistdir}/doc/latex/rotpages/Examples/rotpages-singlecolumn-ex.tex
%doc %{_texmfdistdir}/doc/latex/rotpages/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19423 |21mr|texlive-roundbox-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29675
# category Package
# catalog-ctan /macros/latex/contrib/roundbox
# catalog-date 2013-04-04 11:28:51 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-roundbox
Version:	0.2
Release:	10
Summary:	Round boxes in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/roundbox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/roundbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/roundbox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements a command \roundbox that can be used,
in LaTeX, for producing boxes, framed with rounded corners.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/roundbox/roundbox.sty
%doc %{_texmfdistdir}/doc/latex/roundbox/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19424 |21mr|texlive-rrgtrees-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27322
# category Package
# catalog-ctan /macros/latex/contrib/rrgtrees
# catalog-date 2012-02-10 18:28:55 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-rrgtrees
Version:	1.1
Release:	6
Summary:	Linguistic tree diagrams for Role and Reference Grammar (RRG) with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rrgtrees
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rrgtrees.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rrgtrees.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rrgtrees.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of LaTeX macros that makes it easy to produce linguistic
tree diagrams suitable for Role and Reference Grammar (RRG).
This package allows the construction of trees with crossing
lines, as is required by this theory for many languages. There
is no known limit on number of tree nodes or levels. Requires
the pst-node and pst-tree LaTeX packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rrgtrees/rrgtrees.sty
%doc %{_texmfdistdir}/doc/latex/rrgtrees/Makefile
%doc %{_texmfdistdir}/doc/latex/rrgtrees/README
%doc %{_texmfdistdir}/doc/latex/rrgtrees/rrgtrees.pdf
#- source
%doc %{_texmfdistdir}/source/latex/rrgtrees/rrgtrees.dtx
%doc %{_texmfdistdir}/source/latex/rrgtrees/rrgtrees.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19425 |21mr|texlive-rsfs-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/rsfs
# catalog-date 2008-12-14 19:11:27 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-rsfs
Version:	20190228
Release:	1
Summary:	Ralph Smith's Formal Script font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/rsfs
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rsfs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rsfs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts provide uppercase 'formal' script letters for use as
symbols in scientific and mathematical typesetting (in contrast
to the informal script fonts such as that used for the
'calligraphic' symbols in the TeX maths symbol font). The fonts
are provided as MetaFont source, and as derived Adobe Type 1
format. LaTeX support, for using these fonts in mathematics, is
available via one of the packages calrsfs and mathrsfs.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/rsfs/rsfs10.afm
%{_texmfdistdir}/fonts/afm/public/rsfs/rsfs5.afm
%{_texmfdistdir}/fonts/afm/public/rsfs/rsfs7.afm
%{_texmfdistdir}/fonts/map/dvips/rsfs/rsfs.map
%{_texmfdistdir}/fonts/source/public/rsfs/rsfs10.mf
%{_texmfdistdir}/fonts/source/public/rsfs/rsfs5.mf
%{_texmfdistdir}/fonts/source/public/rsfs/rsfs7.mf
%{_texmfdistdir}/fonts/source/public/rsfs/script.mf
%{_texmfdistdir}/fonts/source/public/rsfs/scriptu.mf
%{_texmfdistdir}/fonts/tfm/public/rsfs/rsfs10.tfm
%{_texmfdistdir}/fonts/tfm/public/rsfs/rsfs5.tfm
%{_texmfdistdir}/fonts/tfm/public/rsfs/rsfs7.tfm
%{_texmfdistdir}/fonts/type1/public/rsfs/rsfs10.pfb
%{_texmfdistdir}/fonts/type1/public/rsfs/rsfs10.pfm
%{_texmfdistdir}/fonts/type1/public/rsfs/rsfs5.pfb
%{_texmfdistdir}/fonts/type1/public/rsfs/rsfs5.pfm
%{_texmfdistdir}/fonts/type1/public/rsfs/rsfs7.pfb
%{_texmfdistdir}/fonts/type1/public/rsfs/rsfs7.pfm
%{_texmfdistdir}/tex/plain/rsfs/scrload.tex
%doc %{_texmfdistdir}/doc/fonts/rsfs/README
%doc %{_texmfdistdir}/doc/fonts/rsfs/README.type1

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19426 |21mr|texlive-rterface-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30084
# category Package
# catalog-ctan /macros/latex/contrib/rterface
# catalog-date 2013-04-23 19:30:36 +0200
# catalog-license lppl1.2
# catalog-version undef
Name:		texlive-rterface
Version:	20190228
Release:	1
Summary:	Access to R analysis from within a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rterface
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rterface.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rterface.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package mediates interaction between LaTeX and R; it allows
LaTeX to set R's parameters, and provides code to read R
output.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rterface/rterface.sty
%doc %{_texmfdistdir}/doc/latex/rterface/README
%doc %{_texmfdistdir}/doc/latex/rterface/rterface.pdf
%doc %{_texmfdistdir}/doc/latex/rterface/rterface.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19427 |21mr|texlive-rtkinenc-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20003
# category Package
# catalog-ctan /macros/latex/contrib/rtkinenc
# catalog-date 2010-10-04 11:23:12 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-rtkinenc
Version:	1.0
Release:	7
Summary:	Input encoding with fallback procedures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rtkinenc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rtkinenc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rtkinenc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rtkinenc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The rtkinenc package is functionally similar to the standard
LaTeX package inputenc: both set up active characters so that
an input character outside the range of 7-bit visible ASCII is
coverted into one or more corresponding LaTeX commands. The
main difference lies in that rtkinenc allows the user to
specify a fallback procedure to use when the text command
corresponding to some input character isn't available. Names of
commands in rtkinenc have been selected so that it can read
inputenc encoding definition files, and the aim is that
rtkinenc should be backwards compatible with inputenc. rtkinenc
is not a new version of inputenc though, nor is it part of
standard LaTeX. For an example of how rtkinenc is used, the
user may look at the tclldoc class.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rtkinenc/rtkinenc.sty
%doc %{_texmfdistdir}/doc/latex/rtkinenc/README.txt
%doc %{_texmfdistdir}/doc/latex/rtkinenc/rtkinenc-doc.pdf
%doc %{_texmfdistdir}/doc/latex/rtkinenc/rtkinenc-doc.tex
#- source
%doc %{_texmfdistdir}/source/latex/rtkinenc/rtkinenc.dtx
%doc %{_texmfdistdir}/source/latex/rtkinenc/rtkinenc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19428 |21mr|texlive-rtklage-0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/rtklage
# catalog-date 2006-02-07 18:31:12 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-rtklage
Version:	0.1
Release:	2
Epoch:		1
Summary:	A package for German lawyers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rtklage
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rtklage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rtklage.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
RATeX is a newly developed bundle of packages and classes
provided for German lawyers. Now in the early beginning it only
contains rtklage, a class to make lawsuits.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rtklage/rtklage.cls
%doc %{_texmfdistdir}/doc/latex/rtklage/README
%doc %{_texmfdistdir}/doc/latex/rtklage/bspklage.tex
%doc %{_texmfdistdir}/doc/latex/rtklage/rtklage.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19429 |21mr|texlive-rubik-5.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-rubik
Version:	5.0
Release:	1
Summary:	Document Rubik cube configurations and rotation sequences
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rubik
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rubik.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rubik.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rubik.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-rubik.bin = %{EVRD}

%description
The bundle provides two packages: rubikcube provides commands
for typesetting Rubik cubes and their transformations; and
rubikrotation which can process a sequence of Rubik rotation
moves, with the help of a Perl package executed via \write18
(shell escape) commands.

#-----------------------------------------------------------------------
%files
%{_bindir}/rubikrotation
%{_texmfdistdir}/scripts/rubik
%{_texmfdistdir}/tex/latex/rubik
%doc %{_texmfdistdir}/doc/latex/rubik
%doc %{_texmfdistdir}/doc/man/man?/*
#- source
%doc %{_texmfdistdir}/source/latex/rubik

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/rubik/rubikrotation.pl rubikrotation
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19430 |21mr|texlive-ruhyphen-1.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21081
# category Package
# catalog-ctan /language/hyphenation/ruhyphen
# catalog-date 2007-01-14 10:43:12 +0100
# catalog-license lppl
# catalog-version 1.6
Name:		texlive-ruhyphen
Version:	1.6
Release:	7
Summary:	Russian hyphenation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/ruhyphen
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ruhyphen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ruhyphen.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of Russian hyphenation patterns supporting a
number of Cyrillic font encodings, including T2, UCY (Omega
Unicode Cyrillic), LCY, LWN (OT2), and koi8-r.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/ruhyphen/catkoi.tex
%{_texmfdistdir}/tex/generic/ruhyphen/cyryoal.tex
%{_texmfdistdir}/tex/generic/ruhyphen/cyryoas.tex
%{_texmfdistdir}/tex/generic/ruhyphen/cyryoct.tex
%{_texmfdistdir}/tex/generic/ruhyphen/cyryodv.tex
%{_texmfdistdir}/tex/generic/ruhyphen/cyryomg.tex
%{_texmfdistdir}/tex/generic/ruhyphen/cyryovl.tex
%{_texmfdistdir}/tex/generic/ruhyphen/cyryozn.tex
%{_texmfdistdir}/tex/generic/ruhyphen/enrhm2.tex
%{_texmfdistdir}/tex/generic/ruhyphen/hypht2.tex
%{_texmfdistdir}/tex/generic/ruhyphen/koi2koi.tex
%{_texmfdistdir}/tex/generic/ruhyphen/koi2lcy.tex
%{_texmfdistdir}/tex/generic/ruhyphen/koi2ot2.tex
%{_texmfdistdir}/tex/generic/ruhyphen/koi2t2a.tex
%{_texmfdistdir}/tex/generic/ruhyphen/koi2ucy.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruenhyph.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruhyphal.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruhyphas.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruhyphct.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruhyphdv.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruhyphen.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruhyphmg.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruhyphvl.tex
%{_texmfdistdir}/tex/generic/ruhyphen/ruhyphzn.tex
#- source
%doc %{_texmfdistdir}/source/generic/ruhyphen/BUGS
%doc %{_texmfdistdir}/source/generic/ruhyphen/Makefile
%doc %{_texmfdistdir}/source/generic/ruhyphen/README
%doc %{_texmfdistdir}/source/generic/ruhyphen/README.ruhyphal
%doc %{_texmfdistdir}/source/generic/ruhyphen/hyphen.rules
%doc %{_texmfdistdir}/source/generic/ruhyphen/mkcyryo
%doc %{_texmfdistdir}/source/generic/ruhyphen/reduce-patt
%doc %{_texmfdistdir}/source/generic/ruhyphen/sorthyph
%doc %{_texmfdistdir}/source/generic/ruhyphen/sortkoi8
%doc %{_texmfdistdir}/source/generic/ruhyphen/trans

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19431 |21mr|texlive-rulercompass-1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32392
# category Package
# catalog-ctan /graphics/pgf/contrib/rulercompass
# catalog-date 2013-12-11 23:41:59 +0100
# catalog-license lppl1.3
# catalog-version 1
Name:		texlive-rulercompass
Version:	1
Release:	6
Summary:	A TikZ library for straight-edge and compass diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/rulercompass
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rulercompass.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rulercompass.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rulercompass.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines some commands and styles to support drawing
straight-edge and compass diagrams with TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rulercompass/tikzlibraryrulercompass.code.tex
%doc %{_texmfdistdir}/doc/latex/rulercompass/README.txt
%doc %{_texmfdistdir}/doc/latex/rulercompass/rulercompass.pdf
%doc %{_texmfdistdir}/doc/latex/rulercompass/rulercompass_doc.pdf
%doc %{_texmfdistdir}/doc/latex/rulercompass/rulercompass_doc.tex
#- source
%doc %{_texmfdistdir}/source/latex/rulercompass/rulercompass.dtx
%doc %{_texmfdistdir}/source/latex/rulercompass/rulercompass.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19432 |21mr|texlive-r_und_s-1.3i-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/r_und_s
# catalog-date 2008-08-24 22:21:06 +0200
# catalog-license other-free
# catalog-version 1.3i
Name:		texlive-r_und_s
Version:	1.3i
Release:	7
Summary:	Chemical hazard codes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/r_und_s
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/r_und_s.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/r_und_s.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The r_und_s package decodes the german 'R- und S-Satze', which
are numerically coded security advice for chemical substances
into plain text. This is, e.g., used to compose security sheets
or lab protocols and especially useful for students of
chemistry. There are four packages, giving texts in German,
English, French and Dutch.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/r_und_s/eng_rs.sty
%{_texmfdistdir}/tex/latex/r_und_s/eng_rs.tex
%{_texmfdistdir}/tex/latex/r_und_s/fr_rs.sty
%{_texmfdistdir}/tex/latex/r_und_s/fr_rs.tex
%{_texmfdistdir}/tex/latex/r_und_s/nl_rs.sty
%{_texmfdistdir}/tex/latex/r_und_s/nl_rs.tex
%{_texmfdistdir}/tex/latex/r_und_s/r_und_s.sty
%{_texmfdistdir}/tex/latex/r_und_s/r_und_s.tex
%doc %{_texmfdistdir}/doc/latex/r_und_s/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19433 |21mr|texlive-russ-20180303-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25209
# category Package
# catalog-ctan /macros/latex/contrib/russ
# catalog-date 2012-01-25 23:56:43 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-russ
Version:	20180303
Release:	3
Summary:	LaTeX in Russian, without babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/russ
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/russ.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/russ.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package aims to facilitate Russian typesetting (based on
input using MicroSoft Code Page 1251). Russian hyphenation is
selected, and various mathematical commands are set up in
Russian style. Furthermore all Cyrillic letters' catcodes are
set to "letter", so that commands with Cyrillic letters in
their names may be defined.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/russ/russ.sty
%doc %{_texmfdistdir}/doc/latex/russ/README
%doc %{_texmfdistdir}/doc/latex/russ/readme.RU.txt
%doc %{_texmfdistdir}/doc/latex/russ/russ_doc.pdf
%doc %{_texmfdistdir}/doc/latex/russ/russ_doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19434 |21mr|texlive-rviewport-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-rviewport
Version:	1.0
Release:	8
Summary:	Relative Viewport for Graphics Inclusion
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rviewport
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rviewport.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rviewport.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rviewport.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Package graphicx provides a useful keyword viewport which
allows to show just a part of an image. However, one needs to
put there the actual coordinates of the viewport window.
Sometimes it is useful to have relative coordinates as
fractions of natural size. For example, one may want to print a
large image on a spread, putting a half on a verso page, and
another half on the next recto page. For this one would need a
viewport occupying exactly one half of the file's bounding box,
whatever the actual width of the image may be. This package
adds a new keyword rviewport to the graphicx package
specifiying Relative Viewport for graphics inclusion: a window
defined by the given fractions of the natural width and height
of the image.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rviewport/rviewport.sty
%doc %{_texmfdistdir}/doc/latex/rviewport/Makefile
%doc %{_texmfdistdir}/doc/latex/rviewport/README
%doc %{_texmfdistdir}/doc/latex/rviewport/rviewport.pdf
%doc %{_texmfdistdir}/doc/latex/rviewport/vitruvian.jpg
#- source
%doc %{_texmfdistdir}/source/latex/rviewport/rviewport.dtx
%doc %{_texmfdistdir}/source/latex/rviewport/rviewport.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19435 |21mr|texlive-rvwrite-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19614
# category Package
# catalog-ctan /macros/latex/contrib/rvwrite
# catalog-date 2010-08-31 12:08:50 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-rvwrite
Version:	1.2
Release:	7
Summary:	Increase the number of available output streams in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/rvwrite
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rvwrite.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/rvwrite.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package addresses, for LaTeX documents, the severe
limitation on the number of output streams that TeX provides.
The package uses a single TeX output stream, and writes
"marked-up" output to this stream. The user may then post-
process the marked-up output file, using LaTeX, and the
document's output appears as separate files, according to the
calls made to the package. The output to be post-processed uses
macros from the widely-available ProTeX package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/rvwrite/rvwrite.sty
%doc %{_texmfdistdir}/doc/latex/rvwrite/Makefile
%doc %{_texmfdistdir}/doc/latex/rvwrite/README
%doc %{_texmfdistdir}/doc/latex/rvwrite/rvwrite-doc.pdf
%doc %{_texmfdistdir}/doc/latex/rvwrite/rvwrite-doc.tex
%doc %{_texmfdistdir}/doc/latex/rvwrite/test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19436 |21mr|texlive-ryethesis-1.36-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21316
# category Package
# catalog-ctan /macros/latex/contrib/ryethesis
# catalog-date 2011-02-05 10:59:30 +0100
# catalog-license lppl1.36
# catalog-version 1.36
Name:		texlive-ryethesis
Version:	1.36
Release:	7
Summary:	Class for Ryerson Unversity Graduate School requirements
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ryethesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ryethesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ryethesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ryethesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%define		_unpackaged_subdirs_terminate_build	0

%description
The class offers support for formatting a thesis, dissertation
or project according to Ryerson University's School of Graduate
Studies thesis formatting regulations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ryethesis/ryethesis.cls
%doc %{_texmfdistdir}/doc/latex/ryethesis/Makefile
%doc %{_texmfdistdir}/doc/latex/ryethesis/README
%doc %{_texmfdistdir}/doc/latex/ryethesis/figure1.pdf
%doc %{_texmfdistdir}/doc/latex/ryethesis/ryesample.bib
%doc %{_texmfdistdir}/doc/latex/ryethesis/ryesample.pdf
%doc %{_texmfdistdir}/doc/latex/ryethesis/ryesample.tex
%doc %{_texmfdistdir}/doc/latex/ryethesis/ryethesis.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ryethesis/ryethesis.dtx
%doc %{_texmfdistdir}/source/latex/ryethesis/ryethesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19437 |21mr|texlive-sageep-1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sageep
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-sageep
Version:	1.0
Release:	12
Summary:	Format papers for the annual meeting of EEGS
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sageep
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sageep.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sageep.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sageep.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides formatting for papers for the annual meeting
of the Environmental and Engineering Geophysical Society (EEGS)
("Application of Geophysics to Engineering and Environmental
Problems", known as SAGEEP).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/sageep/sageep.bst
%{_texmfdistdir}/tex/latex/sageep/sageep.cls
%doc %{_texmfdistdir}/doc/latex/sageep/README
%doc %{_texmfdistdir}/doc/latex/sageep/sageep.bib
%doc %{_texmfdistdir}/doc/latex/sageep/sageep.pdf
%doc %{_texmfdistdir}/doc/latex/sageep/sageep_graphic2009.jpg
%doc %{_texmfdistdir}/doc/latex/sageep/sample.pdf
%doc %{_texmfdistdir}/doc/latex/sageep/sample.tex
#- source
%doc %{_texmfdistdir}/source/latex/sageep/Makefile
%doc %{_texmfdistdir}/source/latex/sageep/sageep.dtx
%doc %{_texmfdistdir}/source/latex/sageep/sageep.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19438 |21mr|texlive-sanskrit-2.2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sanskrit
Version:	2.2.1
Release:	2
Epoch:		1
Summary:	Sanskrit support
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/sanskrit
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sanskrit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sanskrit.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sanskrit.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A font and pre-processor suitable for the production of
documents written in Sanskrit. Type 1 versions of the fonts are
available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/sanskrit
%{_texmfdistdir}/fonts/tfm/public/sanskrit
%{_texmfdistdir}/tex/latex/sanskrit
%doc %{_texmfdistdir}/doc/latex/sanskrit
#- source
%doc %{_texmfdistdir}/source/latex/sanskrit

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19439 |21mr|texlive-sansmath-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17997
# category Package
# catalog-ctan /macros/latex/contrib/sansmath
# catalog-date 2010-04-29 07:59:03 +0200
# catalog-license pd
# catalog-version 1.1
Name:		texlive-sansmath
Version:	1.1
Release:	7
Summary:	Maths in a sans font
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sansmath
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sansmath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sansmath.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a new math version sans, and a command
\sansmath that behaves somewhat like \boldmath.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sansmath/sansmath.sty
%doc %{_texmfdistdir}/doc/latex/sansmath/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/sansmath/sansmath.pdf
%doc %{_texmfdistdir}/doc/latex/sansmath/sansmath.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19440 |21mr|texlive-sapthesis-3.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31487
# category Package
# catalog-ctan /macros/latex/contrib/sapthesis
# catalog-date 2013-08-21 10:23:24 +0200
# catalog-license lppl1.3
# catalog-version 3.2
Name:		texlive-sapthesis
Version:	3.8
Release:	2
Summary:	Typeset theses for Sapienza-University, Rome
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sapthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sapthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sapthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class will typeset Ph.D., Master, and Bachelor theses that
adhere to the publishing guidelines of the Sapienza-University
of Rome.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/sapthesis/sapthesis.bst
%{_texmfdistdir}/tex/latex/sapthesis/sapienza-MLblack-pos.pdf
%{_texmfdistdir}/tex/latex/sapthesis/sapienza-MLred-pos.pdf
%{_texmfdistdir}/tex/latex/sapthesis/sapthesis.cls
%doc %{_texmfdistdir}/doc/latex/sapthesis/README
%doc %{_texmfdistdir}/doc/latex/sapthesis/examples/Laurea.tex
%doc %{_texmfdistdir}/doc/latex/sapthesis/examples/LaureaMagistrale.tex
%doc %{_texmfdistdir}/doc/latex/sapthesis/examples/Master.tex
%doc %{_texmfdistdir}/doc/latex/sapthesis/examples/PhD.tex
%doc %{_texmfdistdir}/doc/latex/sapthesis/examples/Specialization.tex
%doc %{_texmfdistdir}/doc/latex/sapthesis/examples/TFA.tex
%doc %{_texmfdistdir}/doc/latex/sapthesis/sapthesis-doc.pdf
%doc %{_texmfdistdir}/doc/latex/sapthesis/sapthesis-doc.tex
%doc %{_texmfdistdir}/doc/latex/sapthesis/sapthesis.layout

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19441 |21mr|texlive-sasnrdisplay-0.95-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25751
# category Package
# catalog-ctan /macros/latex/contrib/sasnrdisplay
# catalog-date 2017-12-01 15:30:46 +0100
# catalog-license lppl1.3
# catalog-version 0.95
Name:		texlive-sasnrdisplay
Version:	0.95
Release:	2
Summary:	Typeset SAS or R code or output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sasnrdisplay
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sasnrdisplay.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sasnrdisplay.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The SASnRdisplay package serves as a front-end to the listings,
which permits statisticians and others to import source code,
and the results of their calculations or simulations into LaTeX
projects. The package is also capable of overloading the Sweave
and SASweave packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sasnrdisplay/SASnRdisplay.cfg
%{_texmfdistdir}/tex/latex/sasnrdisplay/SASnRdisplay.sty
%doc %{_texmfdistdir}/doc/latex/sasnrdisplay/README
%doc %{_texmfdistdir}/doc/latex/sasnrdisplay/SASnRdisplay.pdf
%doc %{_texmfdistdir}/doc/latex/sasnrdisplay/SASnRdisplay.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19442 |21mr|texlive-sa-tikz-0.7a-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32815
# category Package
# catalog-ctan /graphics/pgf/contrib/sa-tikz
# catalog-date 2014-01-29 19:47:58 +0100
# catalog-license lppl1.3
# catalog-version 0.7a
Name:		texlive-sa-tikz
Version:	0.7a
Release:	6
Summary:	TikZ library to draw switching architectures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/sa-tikz
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sa-tikz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sa-tikz.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a library that offers an easy way to draw
switching architectures and to customize their aspect.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sa-tikz/sa-tikz.sty
%{_texmfdistdir}/tex/latex/sa-tikz/tikzlibraryswitching-architectures.code.tex
%doc %{_texmfdistdir}/doc/latex/sa-tikz/README
%doc %{_texmfdistdir}/doc/latex/sa-tikz/pgfmanual-en-macros.tex
%doc %{_texmfdistdir}/doc/latex/sa-tikz/sa-tikz-doc.pdf
%doc %{_texmfdistdir}/doc/latex/sa-tikz/sa-tikz-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19443 |21mr|texlive-sauerj-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sauerj
Version:	20190228
Release:	1
Summary:	A bundle of utilities by Jonathan Sauer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sauerj
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sauerj.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sauerj.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sauerj.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle consists of: a tool for collecting text for later
re-use, a tool for typesetting the "meta-information" within a
text, a tool for use in constructing macros with multiple
optional parameters, a package for multiple column parallel
texts, a tool for processing key-value structured lists, and
macros for typesetting a number as a German-language string.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sauerj
%doc %{_texmfdistdir}/doc/latex/sauerj
#- source
%doc %{_texmfdistdir}/source/latex/sauerj

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19444 |21mr|texlive-savefnmark-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/savefnmark
# catalog-date 2007-01-14 15:20:52 +0100
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-savefnmark
Version:	1.0
Release:	7
Summary:	Save name of the footnote mark for reuse
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/savefnmark
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/savefnmark.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/savefnmark.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/savefnmark.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sometimes the same footnote applies to more than one location
in a table. With this package the mark of a footnote can be
saved into a name, and re-used subsequently without creating
another footnote at the bottom.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/savefnmark/savefnmark.sty
%doc %{_texmfdistdir}/doc/latex/savefnmark/savefnmark.pdf
#- source
%doc %{_texmfdistdir}/source/latex/savefnmark/savefnmark.drv
%doc %{_texmfdistdir}/source/latex/savefnmark/savefnmark.dtx
%doc %{_texmfdistdir}/source/latex/savefnmark/savefnmark.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19445 |21mr|texlive-savesym-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31565
# category Package
# catalog-ctan /macros/latex/contrib/savesym/savesym.sty
# catalog-date 2013-09-02 18:12:33 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-savesym
Version:	1.2
Release:	10
Summary:	Redefine symbols where names conflict
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/savesym/savesym.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/savesym.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
There are a number of symbols (e.g., \Square) that are defined
by several packages. In order to typeset all the variants in a
document, we have to give the glyph a unique name. To do that,
we define \savesymbol{XXX}, which renames a symbol from \XXX to
\origXXX, and \restoresymbols{yyy}{XXX}, which renames \origXXX
back to \XXX and defines a new command, \yyyXXX, which
corresponds to the most recently loaded version of \XXX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/savesym/savesym.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19446 |21mr|texlive-savetrees-2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-savetrees
Version:	2.4
Release:	2
Summary:	Pack as much as possible onto each page of a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/savetrees
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/savetrees.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/savetrees.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/savetrees.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The goal of the savetrees package is to pack as much text as
possible onto each page of a LaTeX document. Admittedly, this
makes the document far less attractive. Nevertheless, savetrees
is a simple way to save paper when printing draft copies of a
document. It can also be useful when trying to meet a tight
page-length requirement for a conference or journal submission.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/savetrees
%{_texmfdistdir}/tex/latex/savetrees
%doc %{_texmfdistdir}/doc/latex/savetrees
#- source
%doc %{_texmfdistdir}/source/latex/savetrees

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19447 |21mr|texlive-scale-1.1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/scale
# catalog-date 2006-11-06 12:20:58 +0100
# catalog-license gpl
# catalog-version 1.1.2
Name:		texlive-scale
Version:	1.1.2
Release:	7
Summary:	Scale document by sqrt(2) or magstep(2)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/scale
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scale.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scale.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scale.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package to scale a document by sqrt(2) (or by \magstep{2}).
This is useful if you are preparing a document on, for example,
A5 paper and want to print on A4 paper to achieve a better
resolution.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/scale/scale.sty
%doc %{_texmfdistdir}/doc/latex/scale/COPYING
%doc %{_texmfdistdir}/doc/latex/scale/README
#- source
%doc %{_texmfdistdir}/source/latex/scale/scale.dtx
%doc %{_texmfdistdir}/source/latex/scale/scale.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19448 |21mr|texlive-scalebar-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/scalebar
# catalog-date 2006-11-06 13:28:58 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-scalebar
Version:	1.0
Release:	7
Summary:	Create scalebars for maps, diagrams or photos
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/scalebar
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scalebar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scalebar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scalebar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a small package to create scalebars for maps, diagrams
or photos. It was designed for use with cave maps but can be
used for anything from showing a scalebar in kilometers for
topographic maps to a scalebar in micrometers for an electron
microscope image.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/scalebar/scalebar.sty
%doc %{_texmfdistdir}/doc/latex/scalebar/README
%doc %{_texmfdistdir}/doc/latex/scalebar/scalebar_examples.pdf
%doc %{_texmfdistdir}/doc/latex/scalebar/scalebar_examples.tex
#- source
%doc %{_texmfdistdir}/source/latex/scalebar/scalebar.dtx
%doc %{_texmfdistdir}/source/latex/scalebar/scalebar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19449 |21mr|texlive-scalerel-1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33145
# category Package
# catalog-ctan /macros/latex/contrib/scalerel
# catalog-date 2014-03-10 14:38:12 +0100
# catalog-license lppl
# catalog-version 1.6
Name:		texlive-scalerel
Version:	1.8
Release:	2
Summary:	Constrained scaling and stretching of objects
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/scalerel
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scalerel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scalerel.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides four commands for vertically scaling and
stretching objects. Its primary function is the ability to
scale/stretch and shift one object to conform to the size of a
specified second object. This feature can be useful in both
equations and schematic diagrams. Additionally, the scaling and
stretching commands offer constraints on maximum width and/or
minimum aspect ratio, which are often used to preserve
legibility or for the sake of general appearance.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/scalerel/scalerel.sty
%doc %{_texmfdistdir}/doc/latex/scalerel/README
%doc %{_texmfdistdir}/doc/latex/scalerel/scalerel.pdf
%doc %{_texmfdistdir}/doc/latex/scalerel/scalerel.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19450 |21mr|texlive-scanpages-1.05a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-scanpages
Version:	1.05a
Release:	1
Summary:	Support importing and embellishing scanned documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/scanpages
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scanpages.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scanpages.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides support for the process of creating
documents based on pre-TeX-era material that is available as
scanned pages, only.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/scanpages
%doc %{_texmfdistdir}/doc/latex/scanpages

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19451 |21mr|texlive-schemabloc-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pgf/contrib/schemabloc
# catalog-date 2009-01-23 11:09:06 +0100
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-schemabloc
Version:	1.5
Release:	7
Summary:	Draw block diagrams, using Tikz
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/schemabloc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/schemabloc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/schemabloc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a set of macros for constructing block
diagrams, using TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/schemabloc/schemabloc.sty
%doc %{_texmfdistdir}/doc/latex/schemabloc/README
%doc %{_texmfdistdir}/doc/latex/schemabloc/schemabloc.pdf
%doc %{_texmfdistdir}/doc/latex/schemabloc/schemabloc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19452 |21mr|texlive-scheme-basic-20190909-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25923
# category Scheme
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-scheme-basic
Version:	20190909
Release:	1
Summary:	basic scheme (plain and latex)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scheme-basic.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-collection-latex

%description
This is the basic TeX Live scheme: it is a small set of files
sufficient to typeset plain TeX or LaTeX documents in
PostScript or PDF, using the Computer Modern fonts.  This
scheme corresponds to collection-basic and collection-latex.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19453 |21mr|texlive-scheme-context-20190302-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32062
# category Scheme
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-scheme-context
Version:	20190302
Release:	2
Summary:	ConTeXt scheme
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scheme-context.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-context
Requires:	texlive-collection-context
Requires:	texlive-collection-metapost
Requires:	texlive-tex-gyre
Requires:	texlive-tex-gyre-math
Requires:	texlive-antt
Requires:	texlive-iwona
Requires:	texlive-kurier
Requires:	texlive-poltawski
Requires:	texlive-xits
Requires:	texlive-Asana-Math
Requires:	texlive-gentium-tug
Requires:	texlive-txfonts
Requires:	texlive-pxfonts
Requires:	texlive-eulervm
Requires:	texlive-marvosym
Requires:	texlive-wasy
Requires:	texlive-ccicons
Requires:	texlive-ly1
Recommends:	texlive-manfnt-font
Requires:	texlive-mflogo-font

%description
This is the TeX Live scheme for installing ConTeXt.


#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19454 |21mr|texlive-scheme-full-20190228-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30492
# category Scheme
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-scheme-full
Version:	20190228
Release:	4
Summary:	Full scheme (everything)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scheme-full.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-collection-context
Requires:	texlive-collection-fontsrecommended
Requires:	texlive-collection-fontutils
Requires:	texlive-collection-games
Recommends:	texlive-collection-plaingeneric
Requires:	texlive-collection-humanities
Requires:	texlive-collection-langafrican
Requires:	texlive-collection-langarabic
Requires:	texlive-collection-langcjk
Requires:	texlive-collection-langcyrillic
Requires:	texlive-collection-langczechslovak
Requires:	texlive-collection-langenglish
Requires:	texlive-collection-langeuropean
Requires:	texlive-collection-langfrench
Requires:	texlive-collection-langgerman
Requires:	texlive-collection-langgreek
Requires:	texlive-collection-langindic
Requires:	texlive-collection-langitalian
Recommends:       texlive-collection-langchinese
Recommends:       texlive-collection-langjapanese
Recommends:       texlive-collection-langkorean
Requires:	texlive-collection-langother
Requires:	texlive-collection-langpolish
Requires:	texlive-collection-langportuguese
Requires:	texlive-collection-langspanish
Requires:	texlive-collection-latex
Requires:	texlive-collection-latexrecommended
Requires:	texlive-collection-luatex
Requires:	texlive-collection-metapost
Requires:	texlive-collection-music
Recommends:	texlive-collection-omega
Requires:	texlive-collection-pictures
Requires:	texlive-collection-pstricks
Requires:	texlive-collection-publishers
Recommends:	texlive-collection-mathscience
Requires:	texlive-collection-xetex
Recommends:	texlive-collection-bibtexextra
Recommends:	texlive-collection-binextra
Recommends:	texlive-collection-fontsextra
Recommends:	texlive-collection-formatsextra
Recommends:	texlive-collection-genericextra
Recommends:	texlive-collection-latexextra

%description
This is the full TeX Live scheme: it installs everything
available.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19455 |21mr|texlive-scheme-gust-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30372
# category Scheme
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-scheme-gust
Version:	20190228
Release:	2
Summary:	GUST TeX Live scheme
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scheme-gust.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-FAQ-en
Requires:	texlive-Type1fonts
Requires:	texlive-amslatex-primer
Requires:	texlive-amstex
Requires:	texlive-antt
Requires:	texlive-bibtex8
Requires:	texlive-comment
Requires:	texlive-comprehensive
Requires:	texlive-concrete
Requires:	texlive-cyklop
Requires:	texlive-dvidvi
Requires:	texlive-dviljk
Requires:	texlive-gustprog
Requires:	texlive-impatient
Requires:	texlive-iwona
Requires:	texlive-metafont-beginners
Requires:	texlive-metapost-examples
Requires:	texlive-poltawski
Requires:	texlive-seetexk
Requires:	texlive-seminar
Requires:	texlive-tds
Requires:	texlive-tex4ht
Requires:	texlive-texdoc
Requires:	texlive-collection-basic
Requires:	texlive-collection-context
Requires:	texlive-collection-fontutils
Requires:	texlive-collection-fontsrecommended
Recommends:	texlive-collection-plaingeneric
Requires:	texlive-collection-langpolish
Requires:	texlive-collection-latex
Requires:	texlive-collection-latexrecommended
Requires:	texlive-collection-metapost
Requires:	texlive-collection-xetex

%description
This is the GUST TeX Live scheme: it is a set of files
sufficient to typeset Polish plain TeX, LaTeX and ConTeXt
documents in PostScript or PDF.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19456 |21mr|texlive-scheme-medium-20180303-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30457
# category Scheme
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-scheme-medium
Version:	20180303
Release:	1
Summary:	medium scheme (small + more packages and languages)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scheme-medium.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-collection-context
Requires:	texlive-collection-fontsrecommended
Requires:	texlive-collection-fontutils
Requires:	texlive-collection-langczechslovak
Requires:	texlive-collection-langcyrillic
Requires:	texlive-collection-langenglish
Requires:	texlive-collection-langeuropean
Requires:	texlive-collection-langfrench
Requires:	texlive-collection-langgerman
Requires:	texlive-collection-langgreek
Requires:	texlive-collection-langitalian
Requires:	texlive-collection-langpolish
Requires:	texlive-collection-langportuguese
Requires:	texlive-collection-langspanish
Requires:	texlive-collection-latex
Requires:	texlive-collection-latexrecommended
Requires:	texlive-collection-luatex
Requires:	texlive-collection-metapost
Requires:	texlive-collection-xetex
Recommends:	texlive-collection-binextra
Recommends:	texlive-collection-mathscience
Recommends:	texlive-collection-plaingeneric

%description
This is the medium TeX Live collection: it contains plain TeX,
LaTeX, many recommended packages, and support for most European
languages.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19457 |21mr|texlive-scheme-minimal-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 13822
# category Scheme
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-scheme-minimal
Version:	20190228
Release:	1
Summary:	Minimal scheme (plain only)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scheme-minimal.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic

%description
This is the minimal TeX Live scheme, with support for only
plain TeX. (No LaTeX macros.)  LuaTeX is included because Lua
scripts are used in TeX Live infrastructure.  This scheme
corresponds exactly to collection-basic.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19458 |21mr|texlive-scheme-small-20190820-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-scheme-small
Version:	20190820
Release:	1
Summary:	small scheme (basic + xetex, metapost, a few languages)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scheme-small.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-collection-basic
Requires:	texlive-collection-latex
Requires:	texlive-collection-latexrecommended
Requires:	texlive-collection-metapost
Requires:	texlive-collection-xetex
Requires:	texlive-lualibs
Requires:	texlive-luaotfload
Requires:	texlive-luatexbase
Requires:	texlive-revtex
Requires:	texlive-synctex
Requires:	texlive-times
Requires:	texlive-tipa
Requires:	texlive-zapfding
Requires:	texlive-babel-basque
Requires:	texlive-hyphen-basque
Requires:	texlive-babel-czech
Requires:	texlive-hyphen-czech
Requires:	texlive-babel-danish
Requires:	texlive-hyphen-danish
Requires:	texlive-babel-dutch
Requires:	texlive-hyphen-dutch
Requires:	texlive-babel-english
Requires:	texlive-hyphen-english
Requires:	texlive-babel-finnish
Requires:	texlive-hyphen-finnish
Requires:	texlive-babel-french
Requires:	texlive-hyphen-french
Requires:	texlive-babel-german
Requires:	texlive-hyphen-german
Requires:	texlive-babel-hungarian
Requires:	texlive-hyphen-hungarian
Requires:	texlive-babel-italian
Requires:	texlive-hyphen-italian
Requires:	texlive-babel-norsk
Requires:	texlive-hyphen-norwegian
Requires:	texlive-babel-polish
Requires:	texlive-hyphen-polish
Requires:	texlive-babel-portuges
Requires:	texlive-hyphen-portuguese
Requires:	texlive-babel-spanish
Requires:	texlive-hyphen-spanish
Requires:	texlive-babel-swedish
Requires:	texlive-hyphen-swedish
Requires:	texlive-ec
Requires:	texlive-eurosym
Requires:	texlive-lm
Requires:	texlive-ulem
Requires:	texlive-upquote

%description
This is a small TeX Live scheme, corresponding to MacTeX's
BasicTeX variant.  It adds XeTeX, MetaPost, various
hyphenations, and some recommended packages to scheme-basic.

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19459 |21mr|texlive-scheme-tetex-20190228-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32952
# category Scheme
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-scheme-tetex
Version:	20190228
Release:	2
Summary:	teTeX scheme (more than medium, but nowhere near full)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scheme-tetex.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-FAQ-en
Requires:	texlive-SIunits
Requires:	texlive-acronym
Requires:	texlive-amslatex-primer
Requires:	texlive-bbm
Requires:	texlive-bbm-macros
Requires:	texlive-bbold
Requires:	texlive-bibtex8
Requires:	texlive-ctie
Requires:	texlive-detex
Requires:	texlive-dtl
Requires:	texlive-dvi2tty
Requires:	texlive-dvicopy
Requires:	texlive-dvidvi
Requires:	texlive-dviljk
Requires:	texlive-patgen
Requires:	texlive-pdftools
Requires:	texlive-seetexk
Requires:	texlive-tie
Requires:	texlive-web
Requires:	texlive-cmbright
Requires:	texlive-cweb
Requires:	texlive-eplain
Requires:	texlive-eulervm
Requires:	texlive-gentle
Requires:	texlive-lshort-english
Requires:	texlive-mltex
Requires:	texlive-multirow
Requires:	texlive-nomencl
Requires:	texlive-pst-pdf
Requires:	texlive-rsfs
Requires:	texlive-subfigure
Requires:	texlive-supertabular
Requires:	texlive-tamethebeast
Requires:	texlive-tds
Requires:	texlive-tex-refs
Requires:	texlive-voss-mathmode
Requires:	texlive-collection-basic
Requires:	texlive-collection-context
Requires:	texlive-collection-fontsrecommended
Requires:	texlive-collection-fontutils
Recommends:	texlive-collection-plaingeneric
Requires:	texlive-collection-langcjk
Requires:	texlive-collection-langcyrillic
Requires:	texlive-collection-langczechslovak
Requires:	texlive-collection-langenglish
Requires:	texlive-collection-langeuropean
Requires:	texlive-collection-langfrench
Requires:	texlive-collection-langgerman
Requires:	texlive-collection-langgreek
Requires:	texlive-collection-langitalian
Requires:	texlive-collection-langother
Requires:	texlive-collection-langpolish
Requires:	texlive-collection-langportuguese
Requires:	texlive-collection-langspanish
Requires:	texlive-collection-latex
Requires:	texlive-collection-latexrecommended
Requires:	texlive-collection-metapost
Requires:	texlive-collection-pictures
Requires:	texlive-collection-pstricks
Requires:	texlive-voss-mathmode
Recommends:	texlive-collection-mathscience
Recommends:	texlive-collection-formatsextra

%rename tetex
%rename texlive-dviutils

%description
TeX Live scheme nearly equivalent to the teTeX distribution
that was maintained by Thomas Esser.

%posttrans
    %{_sbindir}/texlive.post -

#-----------------------------------------------------------------------
%files

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19460 |21mr|texlive-schwalbe-chess-2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-schwalbe-chess
Version:	2.3
Release:	1
Summary:	Typeset the German chess magazine "Die Schwalbe"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/schwalbe-chess
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/schwalbe-chess.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/schwalbe-chess.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/schwalbe-chess.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is based on chess-problem-diagrams, which in its
turn has a dependency on the bartel-chess-fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/schwalbe-chess
%doc %{_texmfdistdir}/doc/latex/schwalbe-chess
#- source
%doc %{_texmfdistdir}/source/latex/schwalbe-chess

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19461 |21mr|texlive-sciposter-1.18-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sciposter
# catalog-date 2007-02-26 21:24:31 +0100
# catalog-license lppl
# catalog-version 1.18
Name:		texlive-sciposter
Version:	1.18
Release:	7
Summary:	Make posters of ISO A3 size and larger
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sciposter
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sciposter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sciposter.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This collection of files contains LaTeX packages for posters of
ISO A3 size and larger (ISO A0 is the default size). American
paper sizes and custom paper are supported. In particular,
sciposter.cls defines a document class which allows cutting and
pasting most of an article to a poster without any editing
(save reducing the size) -- see the manual. Sciposter does work
for LaTeX, not just pdfLaTeX. However, xdvi produces strange
results, though a recent version of dvips does create good ps-
files from the dvi files. Also note that logos must either be
put in the current working directory or in the directories of
your LaTeX distribution. For some reason graphicspath settings
are ignored.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sciposter/paperb0.cfg
%{_texmfdistdir}/tex/latex/sciposter/paperb1.cfg
%{_texmfdistdir}/tex/latex/sciposter/paperb2.cfg
%{_texmfdistdir}/tex/latex/sciposter/paperb3.cfg
%{_texmfdistdir}/tex/latex/sciposter/papercustom.cfg
%{_texmfdistdir}/tex/latex/sciposter/paperra0.cfg
%{_texmfdistdir}/tex/latex/sciposter/paperra1.cfg
%{_texmfdistdir}/tex/latex/sciposter/paperra2.cfg
%{_texmfdistdir}/tex/latex/sciposter/sciposter.cls
%doc %{_texmfdistdir}/doc/latex/sciposter/README
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/auto/sciposter-example.el
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks1.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks1.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks1a.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks1a.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks1mx.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks1mx.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks1vx.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks1vx.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks2.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks2.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks2mx.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks2mx.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3mx.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3mx.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3op.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3op.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3openvx.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3rec.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3rec.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3vx.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocks3vx.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocksopen3a.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocksopen3a.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocksopen3vx.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocksopen3vx.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocksopen3vy.eps
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/blocksopen3vy.pdf
%doc %{_texmfdistdir}/doc/latex/sciposter/sciposterexample/sciposter-example.tex
%doc %{_texmfdistdir}/doc/latex/sciposter/scipostermanual.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19462 |21mr|texlive-screenplay-1.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27223
# category Package
# catalog-ctan /macros/latex/contrib/screenplay
# catalog-date 2012-07-04 00:53:20 +0200
# catalog-license gpl
# catalog-version 1.6
Name:		texlive-screenplay
Version:	1.6
Release:	6
Epoch:		1
Summary:	A class file to typeset screenplays
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/screenplay
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/screenplay.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/screenplay.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/screenplay.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class implements the format recommended by the Academy of
Motion Picture Arts and Sciences.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/screenplay/hardmarg.sty
%{_texmfdistdir}/tex/latex/screenplay/screenplay.cls
%doc %{_texmfdistdir}/doc/latex/screenplay/COPYING
%doc %{_texmfdistdir}/doc/latex/screenplay/README
%doc %{_texmfdistdir}/doc/latex/screenplay/example.tex
%doc %{_texmfdistdir}/doc/latex/screenplay/screenplay.pdf
%doc %{_texmfdistdir}/doc/latex/screenplay/test.pdf
%doc %{_texmfdistdir}/doc/latex/screenplay/test.tex
#- source
%doc %{_texmfdistdir}/source/latex/screenplay/screenplay.dtx
%doc %{_texmfdistdir}/source/latex/screenplay/screenplay.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19463 |21mr|texlive-scrjrnl-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27810
# category Package
# catalog-ctan /macros/latex/contrib/scrjrnl
# catalog-date 2012-09-24 22:53:58 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-scrjrnl
Version:	0.1
Release:	11
Summary:	Typeset diaries or journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/scrjrnl
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scrjrnl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scrjrnl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/scrjrnl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class, based on scrbook, designed for typesetting diaries,
journals or devotionals.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/scrjrnl/scrjrnl.cls
%doc %{_texmfdistdir}/doc/latex/scrjrnl/README
%doc %{_texmfdistdir}/doc/latex/scrjrnl/example.pdf
%doc %{_texmfdistdir}/doc/latex/scrjrnl/scrjrnl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/scrjrnl/scrjrnl.dtx
%doc %{_texmfdistdir}/source/latex/scrjrnl/scrjrnl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19464 |21mr|texlive-sdrt-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sdrt
# catalog-date 2009-07-05 17:22:22 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-sdrt
Version:	1.0
Release:	7
Summary:	Macros for Segmented Discourse Representation Theory
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sdrt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sdrt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sdrt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros to produce the 'Box notation' of
SDRT (and DRT), to draw trees representing discourse relations,
and finally to have an easy access to various mathematical
symbols used in that theory, mostly with automatic mathematics
mode, so they work the same in formulae and in text.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sdrt/sdrt.sty
%doc %{_texmfdistdir}/doc/latex/sdrt/README
%doc %{_texmfdistdir}/doc/latex/sdrt/sdrt-doc.pdf
%doc %{_texmfdistdir}/doc/latex/sdrt/sdrt-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19465 |21mr|texlive-secdot-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20208
# category Package
# catalog-ctan /macros/latex/contrib/secdot
# catalog-date 2010-10-17 10:06:32 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-secdot
Version:	1.0
Release:	7
Summary:	Section numbers with trailing dots
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/secdot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/secdot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/secdot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Makes the numbers of \section commands come out with a trailing
dot. Includes a command whereby the same can be made to happen
with other sectioning commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/secdot/secdot.sty
%doc %{_texmfdistdir}/doc/latex/secdot/secdot.ltx
%doc %{_texmfdistdir}/doc/latex/secdot/secdot.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19466 |21mr|texlive-section-20180303-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20180
# category Package
# catalog-ctan /macros/latex/contrib/section
# catalog-date 2010-10-24 14:28:08 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-section
Version:	20180303
Release:	3
Summary:	Modifying section commands in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/section
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/section.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/section.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package implements a pretty extensive scheme to make more
manageable the business of configuring LaTeX output.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/section/section.sty
%doc %{_texmfdistdir}/doc/latex/section/section-doc.pdf
%doc %{_texmfdistdir}/doc/latex/section/section-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19467 |21mr|texlive-sectionbox-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sectionbox
# catalog-date 2007-02-26 21:24:31 +0100
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-sectionbox
Version:	1.01
Release:	7
Summary:	Create fancy boxed ((sub)sub)sections
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sectionbox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sectionbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sectionbox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sectionbox is a LaTeX package for putting fancy colored boxes
around sections, subsections, and subsubsections, especially
for use in posters, etc. It was designed with the sciposter
class in mind, and certainly works with that class and with
derived classes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sectionbox/sectionbox.sty
%doc %{_texmfdistdir}/doc/latex/sectionbox/README
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/000074Bpatspec.png
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/000074Bzones.jpg
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/000175Bpatspec.png
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/000175Bzones.jpg
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/002000AApatspec.png
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/002000AAzones.jpg
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/lambda2.jpg
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/lenna10connect.jpg
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/lenna10pct.jpg
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/lenna10smooth.jpg
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/orig.jpg
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/sectionboxexample.bib
%doc %{_texmfdistdir}/doc/latex/sectionbox/example/sectionboxexample.tex
%doc %{_texmfdistdir}/doc/latex/sectionbox/sectionboxmanual.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19468 |21mr|texlive-sectsty-2.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sectsty
# catalog-date 2007-01-14 15:20:52 +0100
# catalog-license lppl
# catalog-version 2.0.2
Name:		texlive-sectsty
Version:	2.0.2
Release:	7
Summary:	Control sectional headers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sectsty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sectsty.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sectsty.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sectsty.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX2e package to help change the style of any or all of
LaTeX's sectional headers in the article, book, or report
classes. Examples include the addition of rules above or below
a section title.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sectsty/sectsty.sty
%doc %{_texmfdistdir}/doc/latex/sectsty/sectsty.pdf
#- source
%doc %{_texmfdistdir}/source/latex/sectsty/sectsty.dtx
%doc %{_texmfdistdir}/source/latex/sectsty/sectsty.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19469 |21mr|texlive-seetexk-20180331-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33818
# category TLCore
# catalog-ctan /dviware/dvibook
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-seetexk
Version:	20180331
Release:	2
Summary:	Utilities for manipulating DVI files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/dvibook
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seetexk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seetexk.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-seetexk.bin

%description
The collection comprises: dvibook, which will rearrange the
pages of a DVI file into 'signatures' as used when printing a
book; dviconcat, for concatenating pages of DVI file(s);
dviselect, which will select pages from one DVI file to create
a new DVI file; dvitodvi, which will rearrange the pages of a
DVI file to create a new file; and libtex, a library for
manipulating the files, from the old SeeTeX project. The
utilities are provided as C source with Imakefiles, and an MS-
DOS version of dvibook is also provided.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/dvibook.1*
%doc %{_texmfdistdir}/doc/man/man1/dvibook.man1.pdf
%doc %{_mandir}/man1/dviconcat.1*
%doc %{_texmfdistdir}/doc/man/man1/dviconcat.man1.pdf
%doc %{_mandir}/man1/dviselect.1*
%doc %{_texmfdistdir}/doc/man/man1/dviselect.man1.pdf
%doc %{_mandir}/man1/dvitodvi.1*
%doc %{_texmfdistdir}/doc/man/man1/dvitodvi.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19470 |21mr|texlive-selectp-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20185
# category Package
# catalog-ctan /macros/latex/contrib/selectp
# catalog-date 2010-10-24 16:23:58 +0200
# catalog-license pd
# catalog-version 1.0
Name:		texlive-selectp
Version:	1.0
Release:	7
Summary:	Select pages to be output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/selectp
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/selectp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/selectp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a command \outputonly, whose argument is a list of
pages to be output. With the command present (before
\begin{document}), only those pages are output. This package
was inspired by code published by Knuth in TUGboat 8(2) (July
1987).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/selectp/selectp.sty
%doc %{_texmfdistdir}/doc/latex/selectp/selectp-doc.pdf
%doc %{_texmfdistdir}/doc/latex/selectp/selectp-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19471 |21mr|texlive-selnolig-0.302-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31544
# category Package
# catalog-ctan /macros/luatex/latex/selnolig
# catalog-date 2013-08-08 08:16:08 +0200
# catalog-license lppl1.3
# catalog-version 0.254
Name:		texlive-selnolig
Version:	0.302
Release:	2
Summary:	Selectively disable typographic ligatures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/selnolig
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/selnolig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/selnolig.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package suppresses typographic ligatures selectively, i.e.,
based on predefined search patterns. The search patterns focus
on ligatures deemed inappropriate because they span morpheme
boundaries. For example, the word shelfful, which is mentioned
in the TeXbook as a word for which the ff ligature might be
inappropriate, is automatically typeset as shelf\/ful rather
than as shel{ff}ul. For English and German language documents,
the package provides extensive rules for the selective
suppression of so-called "common" ligatures. These comprise the
ff, fi, fl, ffi, and ffl ligatures as well as the ft and fft
ligatures. Other f-ligatures, such as fb, fh, fj and fk, are
suppressed globally, while exceptions are made for names and
words of non-English/German origin, such as Kafka and fjord.
For English language documents, the package further provides
ligature suppression macros for a number of so-called
"discretionary" or "rare" ligatures such as ct, st, and sp. The
package requires use of a recent LuaLaTeX format (for example
TeXLive2012 or 2013, or MiKTeX2.9).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/selnolig/selnolig-english-hyphex.sty
%{_texmfdistdir}/tex/lualatex/selnolig/selnolig-english-patterns.sty
%{_texmfdistdir}/tex/lualatex/selnolig/selnolig-german-hyphex.sty
%{_texmfdistdir}/tex/lualatex/selnolig/selnolig-german-patterns.sty
%{_texmfdistdir}/tex/lualatex/selnolig/selnolig.lua
%{_texmfdistdir}/tex/lualatex/selnolig/selnolig.sty
%doc %{_texmfdistdir}/doc/lualatex/selnolig/README
%doc %{_texmfdistdir}/doc/lualatex/selnolig/gpp-ft.fea
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig-bugreport.tex
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig-english-test.pdf
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig-english-test.tex
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig-english-wordlist.tex
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig-german-test.pdf
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig-german-test.tex
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig-german-wordlist.tex
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig.pdf
%doc %{_texmfdistdir}/doc/lualatex/selnolig/selnolig.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19472 |21mr|texlive-semantic-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/semantic
# catalog-date 2007-01-15 20:26:34 +0100
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-semantic
Version:	2.0
Release:	7
Summary:	Help for writing programming language semantics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/semantic
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/semantic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/semantic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/semantic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Eases the typesetting of notation of semantics and compilers.
Includes T-diagrams, various derivation symbols and inference
trees.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/semantic/infernce.sty
%{_texmfdistdir}/tex/latex/semantic/ligature.sty
%{_texmfdistdir}/tex/latex/semantic/reserved.sty
%{_texmfdistdir}/tex/latex/semantic/semantic.sty
%{_texmfdistdir}/tex/latex/semantic/shrthand.sty
%{_texmfdistdir}/tex/latex/semantic/tdiagram.sty
%doc %{_texmfdistdir}/doc/latex/semantic/semantic.pdf
#- source
%doc %{_texmfdistdir}/source/latex/semantic/semantic.dtx
%doc %{_texmfdistdir}/source/latex/semantic/semantic.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19473 |21mr|texlive-seminar-1.62-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34011
# category Package
# catalog-ctan /macros/latex/contrib/seminar
# catalog-date 2014-01-20 13:04:19 +0100
# catalog-license lppl1.2
# catalog-version 1.61
Name:		texlive-seminar
Version:	1.62
Release:	2
Summary:	Make overhead slides
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/seminar
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seminar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seminar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class that produces overhead slides (transparencies), with
many facilities. The class requires availability of the
fancybox package. Seminar is also the basis of other classes,
such as prosper. In fact, seminar is not nowadays reckoned a
good basis for a presentation -- users are advised to use more
recent classes such as powerdot or beamer, both of which are
tuned to 21st-century presentation styles. Note that the
seminar distribution relies on the xcomment package, which was
once part of the bundle, but now has a separate existence.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/seminar/npsfont.sty
%{_texmfdistdir}/tex/latex/seminar/sem-a4.sty
%{_texmfdistdir}/tex/latex/seminar/sem-dem.sty
%{_texmfdistdir}/tex/latex/seminar/sem-page.sty
%{_texmfdistdir}/tex/latex/seminar/semcolor.sty
%{_texmfdistdir}/tex/latex/seminar/semhelv.sty
%{_texmfdistdir}/tex/latex/seminar/seminar.bg2
%{_texmfdistdir}/tex/latex/seminar/seminar.bug
%{_texmfdistdir}/tex/latex/seminar/seminar.cls
%{_texmfdistdir}/tex/latex/seminar/seminar.sty
%{_texmfdistdir}/tex/latex/seminar/semlayer.sty
%{_texmfdistdir}/tex/latex/seminar/semlcmss.sty
%{_texmfdistdir}/tex/latex/seminar/semrot.sty
%{_texmfdistdir}/tex/latex/seminar/slidesec.sty
%{_texmfdistdir}/tex/latex/seminar/tvz-code.sty
%{_texmfdistdir}/tex/latex/seminar/tvz-hax.sty
%{_texmfdistdir}/tex/latex/seminar/tvz-user.sty
%doc %{_texmfdistdir}/doc/latex/seminar/Changes
%doc %{_texmfdistdir}/doc/latex/seminar/README
%doc %{_texmfdistdir}/doc/latex/seminar/run.sh
%doc %{_texmfdistdir}/doc/latex/seminar/sem-code.tex
%doc %{_texmfdistdir}/doc/latex/seminar/sem-make.tex
%doc %{_texmfdistdir}/doc/latex/seminar/seminar-doc.pdf
%doc %{_texmfdistdir}/doc/latex/seminar/seminar-doc.tex
%doc %{_texmfdistdir}/doc/latex/seminar/seminar.bg3
%doc %{_texmfdistdir}/doc/latex/seminar/seminar.con
%doc %{_texmfdistdir}/doc/latex/seminar/seminar.doc
%doc %{_texmfdistdir}/doc/latex/seminar/semlayer.doc
%doc %{_texmfdistdir}/doc/latex/seminar/semsamp1.pdf
%doc %{_texmfdistdir}/doc/latex/seminar/semsamp1.tex
%doc %{_texmfdistdir}/doc/latex/seminar/semsamp2.pdf
%doc %{_texmfdistdir}/doc/latex/seminar/semsamp2.tex
%doc %{_texmfdistdir}/doc/latex/seminar/semsamp3.pdf
%doc %{_texmfdistdir}/doc/latex/seminar/semsamp3.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19474 |21mr|texlive-semioneside-0.41-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-semioneside
Version:	0.41
Release:	2
Summary:	Put only special contents on left-hand pages in two sided layout
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/semioneside
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/semioneside.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/semioneside.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/semioneside.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package supports the preparation of semi one sided
documents. That is, two sided documents, where all text is
output on right-hand pages--as in a one-sided documents--and
only special contents are output on left-hand pages on user
request, e.g., floating objects.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/semioneside/semioneside.sty
%doc %{_texmfdistdir}/doc/latex/semioneside/README
%doc %{_texmfdistdir}/doc/latex/semioneside/example.tex
%doc %{_texmfdistdir}/doc/latex/semioneside/figure.mp
%doc %{_texmfdistdir}/doc/latex/semioneside/semioneside.pdf
#- source
%doc %{_texmfdistdir}/source/latex/semioneside/semioneside.dtx
%doc %{_texmfdistdir}/source/latex/semioneside/semioneside.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19475 |21mr|texlive-sepfootnotes-0.3c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28885
# category Package
# catalog-ctan /macros/latex/contrib/sepfootnotes
# catalog-date 2013-01-19 01:10:31 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-sepfootnotes
Version:	0.3c
Release:	2
Summary:	Support footnotes and endnotes from separate files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sepfootnotes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sepfootnotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sepfootnotes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports footnotes and endnotes from separate
files. This is achieved with commands \sepfootnotecontent and
\sepfootnote; the former defines the content of a note, while
the latter typesets that note.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sepfootnotes/sepfootnotes.sty
%doc %{_texmfdistdir}/doc/latex/sepfootnotes/README
%doc %{_texmfdistdir}/doc/latex/sepfootnotes/sepfootnotes.pdf
%doc %{_texmfdistdir}/doc/latex/sepfootnotes/sepfootnotes.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19476 |21mr|texlive-sepnum-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20186
# category Package
# catalog-ctan /macros/latex/contrib/sepnum
# catalog-date 2010-10-24 14:34:20 +0200
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-sepnum
Version:	2.0
Release:	7
Summary:	Print numbers in a "friendly" format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sepnum
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sepnum.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sepnum.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a command to print a number with (potentially
different) separators every three digits in the parts either
side of the decimal point (the point itself is also
configurable). The macro is fully expandable and not fragile
(unless one of the separators is). There is also a command
\sepnumform, that may be used when defining \the<counter>
macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sepnum/sepnum.sty
%doc %{_texmfdistdir}/doc/latex/sepnum/sepnum-doc.pdf
%doc %{_texmfdistdir}/doc/latex/sepnum/sepnum-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19477 |21mr|texlive-seqsplit-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/seqsplit
# catalog-date 2007-07-23 22:41:48 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-seqsplit
Version:	0.1
Release:	7
Summary:	Split long sequences of characters in a neutral way
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/seqsplit
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seqsplit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seqsplit.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seqsplit.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
When one needs to type long sequences of letters (such as in
base-sequences in genes) or of numbers (such as calculations of
transcendental numbers), there's no obvious break points to be
found. The package provides a command \seqsplit, which makes
its argument splittable anywhere, and then leaves the TeX
paragraph-maker to do the splitting. While the package may
obviously be used to typeset DNA sequences, the user may
consider the dnaseq as a rather more powerful alternative.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/seqsplit/seqsplit.sty
%doc %{_texmfdistdir}/doc/latex/seqsplit/README
%doc %{_texmfdistdir}/doc/latex/seqsplit/seqsplit.pdf
#- source
%doc %{_texmfdistdir}/source/latex/seqsplit/Makefile
%doc %{_texmfdistdir}/source/latex/seqsplit/seqsplit.dtx
%doc %{_texmfdistdir}/source/latex/seqsplit/seqsplit.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19478 |21mr|texlive-serbian-apostrophe-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23799
# category Package
# catalog-ctan /language/serbian/serbian-apostrophe
# catalog-date 2011-08-30 14:04:46 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-serbian-apostrophe
Version:	20190228
Release:	1
Summary:	Commands for Serbian words with apostrophes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/serbian/serbian-apostrophe
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbian-apostrophe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbian-apostrophe.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a collection of commands (whose names are
Serbian words) whose expansion is the Serbian word with
appropriate apostrophes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/serbian-apostrophe/serbian-apostrophe.sty
%doc %{_texmfdistdir}/doc/latex/serbian-apostrophe/README
%doc %{_texmfdistdir}/doc/latex/serbian-apostrophe/apostrophe-list.pdf
%doc %{_texmfdistdir}/doc/latex/serbian-apostrophe/apostrophe-list.tex
%doc %{_texmfdistdir}/doc/latex/serbian-apostrophe/serbian-apostrophe.pdf
%doc %{_texmfdistdir}/doc/latex/serbian-apostrophe/serbian-apostrophe.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19479 |21mr|texlive-serbianc-2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22929
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/serbianc
# catalog-date 2011-06-09 20:30:15 +0200
# catalog-license lppl1.3
# catalog-version 2.2
Name:		texlive-serbianc
Version:	2.2
Release:	7
Summary:	Babel module to support Serbian Cyrillic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/serbianc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbianc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbianc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbianc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for Serbian documents written in
Cyrillic, in babel.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/serbianc/serbianc.ldf
%{_texmfdistdir}/tex/generic/serbianc/serbianc.sty
%doc %{_texmfdistdir}/doc/generic/serbianc/COPYING
%doc %{_texmfdistdir}/doc/generic/serbianc/ChangeLog
%doc %{_texmfdistdir}/doc/generic/serbianc/Copyright
%doc %{_texmfdistdir}/doc/generic/serbianc/INSTALL
%doc %{_texmfdistdir}/doc/generic/serbianc/README
%doc %{_texmfdistdir}/doc/generic/serbianc/README.Files
%doc %{_texmfdistdir}/doc/generic/serbianc/sample.pdf
%doc %{_texmfdistdir}/doc/generic/serbianc/sample.tex
%doc %{_texmfdistdir}/doc/latex/serbianc/README
#- source
%doc %{_texmfdistdir}/source/generic/serbianc/serbianc.dtx
%doc %{_texmfdistdir}/source/generic/serbianc/serbianc.ins
%doc %{_texmfdistdir}/source/generic/serbianc/serbianc.patch

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19480 |21mr|texlive-serbian-date-lat-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23446
# category Package
# catalog-ctan /macros/latex/contrib/babel-contrib/serbian-date-lat
# catalog-date 2011-06-24 10:29:05 +0200
# catalog-license gpl2
# catalog-version undef
Name:		texlive-serbian-date-lat
Version:	20190228
Release:	1
Summary:	Updated date typesetting for Serbian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/babel-contrib/serbian-date-lat
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbian-date-lat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbian-date-lat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Babel defines dates for Serbian texts, in Latin script. The
style it uses does not match current practices. The present
package defines a \date command that solves the problem.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/serbian-date-lat/serbian-date-lat.sty
%doc %{_texmfdistdir}/doc/latex/serbian-date-lat/README
%doc %{_texmfdistdir}/doc/latex/serbian-date-lat/SerbianDateLat.pdf
%doc %{_texmfdistdir}/doc/latex/serbian-date-lat/SerbianDateLat.tex
%doc %{_texmfdistdir}/doc/latex/serbian-date-lat/TestDateLat.pdf
%doc %{_texmfdistdir}/doc/latex/serbian-date-lat/TestDateLat.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19481 |21mr|texlive-serbian-def-cyr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23734
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-serbian-def-cyr
Version:	20190228
Release:	1
Summary:	TeXLive serbian-def-cyr package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbian-def-cyr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbian-def-cyr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive serbian-def-cyr package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/serbian-def-cyr/serbian-def-cyr.sty
%doc %{_texmfdistdir}/doc/latex/serbian-def-cyr/README
%doc %{_texmfdistdir}/doc/latex/serbian-def-cyr/proba.pdf
%doc %{_texmfdistdir}/doc/latex/serbian-def-cyr/proba.tex
%doc %{_texmfdistdir}/doc/latex/serbian-def-cyr/usage.pdf
%doc %{_texmfdistdir}/doc/latex/serbian-def-cyr/usage.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19482 |21mr|texlive-serbian-lig-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-serbian-lig
Version:	20190228
Release:	1
Summary:	Control ligatures in Serbian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/serbian-lig
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbian-lig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/serbian-lig.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package suppresses fi and fl (and other ligatures) in
Serbian text written using Roman script.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/serbian-lig
%doc %{_texmfdistdir}/doc/latex/serbian-lig

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19483 |21mr|texlive-setdeck-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27997
# category Package
# catalog-ctan /graphics/pgf/contrib/setdeck
# catalog-date 2012-10-17 15:07:15 +0200
# catalog-license gpl3
# catalog-version 0.1
Name:		texlive-setdeck
Version:	0.1
Release:	11
Summary:	Typeset cards for Set
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/setdeck
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/setdeck.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/setdeck.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package will typeset cards for use in a game of Set.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/setdeck/setdeck.sty
%doc %{_texmfdistdir}/doc/latex/setdeck/README
%doc %{_texmfdistdir}/doc/latex/setdeck/setdeck.pdf
%doc %{_texmfdistdir}/doc/latex/setdeck/setdeck.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19484 |21mr|texlive-setspace-6.7a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24881
# category Package
# catalog-ctan /macros/latex/contrib/setspace
# catalog-date 2011-12-19 12:40:22 +0100
# catalog-license lppl1.3
# catalog-version 6.7a
Name:		texlive-setspace
Version:	6.7a
Release:	7
Summary:	Set space between lines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/setspace
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/setspace.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/setspace.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides support for setting the spacing between lines in a
document. Package options include singlespacing,
onehalfspacing, and doublespacing. Alternatively the spacing
can be changed as required with the \singlespacing,
\onehalfspacing, and \doublespacing commands. Other size
spacings also available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/setspace/setspace.sty
%doc %{_texmfdistdir}/doc/latex/setspace/README
%doc %{_texmfdistdir}/doc/latex/setspace/setspace-test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19485 |21mr|texlive-seuthesis-2.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33042
# category Package
# catalog-ctan /macros/latex/contrib/seuthesis
# catalog-date 2014-02-24 07:33:27 +0100
# catalog-license gpl3
# catalog-version 2.1.2
Name:		texlive-seuthesis
Version:	2.1.2
Release:	6
Summary:	LaTeX template for theses at Southeastern University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/seuthesis
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seuthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seuthesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/seuthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This template is for theses at Southeastern University,
Nanjing, China.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/seuthesis/seuthesis.bst
%doc %{_texmfdistdir}/doc/latex/seuthesis/Makefile
%doc %{_texmfdistdir}/doc/latex/seuthesis/a3cover/A3cover.tex
%doc %{_texmfdistdir}/doc/latex/seuthesis/a3cover/A4cover.tex
%doc %{_texmfdistdir}/doc/latex/seuthesis/a3cover/a3cover.bat
%doc %{_texmfdistdir}/doc/latex/seuthesis/a3cover/a3cover.sh
%doc %{_texmfdistdir}/doc/latex/seuthesis/a3cover/a4cover.bat
%doc %{_texmfdistdir}/doc/latex/seuthesis/a3cover/a4cover.sh
%doc %{_texmfdistdir}/doc/latex/seuthesis/a3cover/bookspine_hor.tex
%doc %{_texmfdistdir}/doc/latex/seuthesis/a3cover/bookspine_ver.tex
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/back-cover.png
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/doctor-hwzs.pdf
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/doctor.png
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/engineering.png
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/front-cover.jpg
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/master-hwzs.pdf
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/master.png
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/seu-badge-logo.eps
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/seu-badge-logo.pdf
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/seu-color-logo.png
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/seu-text-logo.eps
%doc %{_texmfdistdir}/doc/latex/seuthesis/figures/seu-text-logo.png
%doc %{_texmfdistdir}/doc/latex/seuthesis/sample-bachelor.pdf
%doc %{_texmfdistdir}/doc/latex/seuthesis/sample-doctor.pdf
%doc %{_texmfdistdir}/doc/latex/seuthesis/sample-master.pdf
%doc %{_texmfdistdir}/doc/latex/seuthesis/sample.tex
%doc %{_texmfdistdir}/doc/latex/seuthesis/seuthesis.bib
%doc %{_texmfdistdir}/doc/latex/seuthesis/seuthesis.pdf
%doc %{_texmfdistdir}/doc/latex/seuthesis/zharticle/scrsize9pt.clo
%doc %{_texmfdistdir}/doc/latex/seuthesis/zharticle/zharticle.bst
%doc %{_texmfdistdir}/doc/latex/seuthesis/zharticle/zharticle.cfg
%doc %{_texmfdistdir}/doc/latex/seuthesis/zharticle/zharticle.cls
#- source
%doc %{_texmfdistdir}/source/latex/seuthesis/seuthesis.dtx
%doc %{_texmfdistdir}/source/latex/seuthesis/seuthesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19486 |21mr|texlive-sexam-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sexam
Version:	1.0
Release:	1
Epoch:		1
Summary:	Package for typesetting arabic exam scripts
Group:		Publishing
URL:		https://www.ctan.org/tex-archive/macros/xetex/latex/sexam
License:	LPPL 1.3
Source0:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/sexam.tar.xz
Source1:	https://mirrors.mi-ras.ru/CTAN/systems/texlive/tlnet/archive/sexam.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a modified version of the pas-cours package made
compatible with XeLaTeX/polyglossia to write arabic documents
with fancy boxed theorem-alike environments. 

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/sexam/*
%doc %{_texmfdistdir}/doc/xelatex/sexam/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19487 |21mr|texlive-sf298-1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sf298
Version:	1.3
Release:	2
Summary:	Standard form 298
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sf298
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sf298.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sf298.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sf298.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for generating a completed standard form 298
(Rev. 8-98) as prescribed by ANSI Std. Z39.18 for report
documentation as part of a document delivered, for instance, on
a U.S. government contract.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sf298
%doc %{_texmfdistdir}/doc/latex/sf298
#- source
%doc %{_texmfdistdir}/source/latex/sf298

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19488 |21mr|texlive-sffms-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sffms
# catalog-date 2007-01-14 22:06:18 +0100
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-sffms
Version:	2.0
Release:	7
Summary:	Typesetting science fiction/fantasy manuscripts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sffms
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sffms.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sffms.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sffms.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is designed for typesetting science fiction and
fantasy manuscripts. Sffms now includes several options for
specific publishers as well as extensive documentation aimed at
new LaTeX users.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sffms/sffdumb.sty
%{_texmfdistdir}/tex/latex/sffms/sffms.cls
%{_texmfdistdir}/tex/latex/sffms/sffsmart.sty
%doc %{_texmfdistdir}/doc/latex/sffms/README
%doc %{_texmfdistdir}/doc/latex/sffms/blind.tex
%doc %{_texmfdistdir}/doc/latex/sffms/sffms_manual.pdf
#- source
%doc %{_texmfdistdir}/source/latex/sffms/sffms.dtx
%doc %{_texmfdistdir}/source/latex/sffms/sffms.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19489 |21mr|texlive-sfg-0.91-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20209
# category Package
# catalog-ctan /macros/latex/contrib/sfg
# catalog-date 2010-10-25 17:10:20 +0200
# catalog-license lppl
# catalog-version 0.91
Name:		texlive-sfg
Version:	0.91
Release:	7
Summary:	Draw signal flow graphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sfg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sfg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sfg.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines some commands to draw signal flow graphs as used by
electrical and electronics engineers and graph theorists.
Requires fp and pstricks packages (and a relatively fast
machine).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sfg/sfg.sty
%doc %{_texmfdistdir}/doc/latex/sfg/Changes
%doc %{_texmfdistdir}/doc/latex/sfg/README
%doc %{_texmfdistdir}/doc/latex/sfg/sfg-doc.pdf
%doc %{_texmfdistdir}/doc/latex/sfg/sfg-doc.tex
%doc %{_texmfdistdir}/doc/latex/sfg/sfg_test.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19490 |21mr|texlive-sfmath-0.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sfmath/sfmath.sty
# catalog-date 2008-08-23 15:48:35 +0200
# catalog-license lppl
# catalog-version 0.8
Name:		texlive-sfmath
Version:	0.8
Release:	7
Summary:	Sans-serif mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sfmath/sfmath.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sfmath.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
sfmath is a simple package for sans serif maths in documents.
After including the package, all maths of the current document
is displayed with sans serif fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sfmath/sfmath.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19491 |21mr|texlive-sgame-2.15-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sgame
# catalog-date 2008-12-03 15:15:08 +0100
# catalog-license lppl
# catalog-version 2.15
Name:		texlive-sgame
Version:	2.15
Release:	7
Summary:	LaTeX style for typesetting strategic games
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sgame
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sgame.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sgame.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Formats strategic games. For a 2x2 game, for example, the
input: \begin{game}{2}{2} &$L$ &$M$\\ $T$ &$2,2$ &$2,0$\\ $B$
&$3,0$ &$0,9$ \end{game} produces output with (a) boxes around
the payoffs, (b) payoff columns of equal width, and (c) payoffs
vertically centered within the boxes. Note that the game
environment will not work in the argument of another command.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sgame/sgame.sty
%{_texmfdistdir}/tex/latex/sgame/sgamevar.sty
%doc %{_texmfdistdir}/doc/latex/sgame/README
%doc %{_texmfdistdir}/doc/latex/sgame/sgame.pdf
%doc %{_texmfdistdir}/doc/latex/sgame/sgame.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19492 |21mr|texlive-shadethm-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20319
# category Package
# catalog-ctan /macros/latex/contrib/shadethm
# catalog-date 2010-11-04 00:16:31 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-shadethm
Version:	20190228
Release:	1
Summary:	Theorem environments that are shaded
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/shadethm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shadethm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shadethm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Extends the \newtheorem command. If you say
\newshadetheorem{theorem}{Theorem} in the preamble then your
regular \begin{theorem} .. \end{theorem} will produce a theorem
statement in a shaded box. It supports all the options of
\newtheorem, including forms \newshadetheorem{..}[..]{..} and
\newshadetheorem{..}{..}[..].

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/shadethm/colored.sth
%{_texmfdistdir}/tex/latex/shadethm/shadein.sth
%{_texmfdistdir}/tex/latex/shadethm/shadethm.sty
%doc %{_texmfdistdir}/doc/latex/shadethm/1st_read.me
%doc %{_texmfdistdir}/doc/latex/shadethm/shadetest.pdf
%doc %{_texmfdistdir}/doc/latex/shadethm/shadetest.tex
%doc %{_texmfdistdir}/doc/latex/shadethm/shadethm-doc.pdf
%doc %{_texmfdistdir}/doc/latex/shadethm/shadethm-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19493 |21mr|texlive-shadow-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-shadow
Version:	20190228
Release:	1
Summary:	Shadow boxes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/shadow
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shadow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shadow.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a command \shabox (analgous to \fbox), and supporting
mechanisms.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/shadow
%doc %{_texmfdistdir}/doc/latex/shadow

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19494 |21mr|texlive-shadowtext-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26522
# category Package
# catalog-ctan /macros/latex/contrib/shadowtext
# catalog-date 2012-05-18 19:11:54 +0200
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-shadowtext
Version:	0.3
Release:	7
Summary:	shadowtext
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/shadowtext
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shadowtext.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shadowtext.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package introduces a command \shadowtext, which adds a drop
shadow to the text that is given as its argument. The colour
and positioning of the shadow are customisable.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/shadowtext/shadowtext.sty
%doc %{_texmfdistdir}/doc/latex/shadowtext/README
%doc %{_texmfdistdir}/doc/latex/shadowtext/shadowtext.pdf
%doc %{_texmfdistdir}/doc/latex/shadowtext/shadowtext.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19495 |21mr|texlive-shapepar-2.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30708
# category Package
# catalog-ctan /macros/latex/contrib/shapepar
# catalog-date 2013-05-27 20:07:27 +0200
# catalog-license other-free
# catalog-version 2.2
Name:		texlive-shapepar
Version:	2.2
Release:	11
Summary:	A macro to typeset paragraphs in specific shapes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/shapepar
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shapepar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shapepar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
\shapepar is a macro to typeset paragraphs in a specific shape.
The size is adjusted automatically so that the entire shape is
filled with text. There may not be displayed maths or
'\vadjust' material (no \vspace) in the argument of \shapepar.
The macros work for both LaTeX and plain TeX. For LaTeX,
specify \usepackage{shapepar}; for Plain, \input shapepar.sty.
\shapepar works in terms of user-defined shapes, though the
package does provide some predefined shapes: so you can form
any paragraph into the form of a heart by putting
\heartpar{sometext...} inside your document. The tedium of
creating these polygon definitions may be alleviated by using
the shapepatch extension to transfig which will convert xfig
output to \shapepar polygon form.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/shapepar/Canflagshape.def
%{_texmfdistdir}/tex/generic/shapepar/TeXshape.def
%{_texmfdistdir}/tex/generic/shapepar/candleshape.def
%{_texmfdistdir}/tex/generic/shapepar/dropshape.def
%{_texmfdistdir}/tex/generic/shapepar/shapepar.sty
%{_texmfdistdir}/tex/generic/shapepar/triangleshapes.def
%doc %{_texmfdistdir}/doc/generic/shapepar/README.shapepar
%doc %{_texmfdistdir}/doc/generic/shapepar/proshap.py
%doc %{_texmfdistdir}/doc/generic/shapepar/shapepar.ltx
%doc %{_texmfdistdir}/doc/generic/shapepar/shapepar.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19496 |21mr|texlive-shipunov-1.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/shipunov
# catalog-date 2012-06-08 00:21:14 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-shipunov
Version:	1.1
Release:	13
Summary:	A collection of LaTeX packages and classes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/shipunov
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shipunov.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shipunov.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle collects packages and classes, along with one
bibliography style and examples and scripts for converting TeX
files. Many of the files in the collection are designed to
support field biologists and/or Russian writers, while others
have wider application. The collection includes (among others):
- altverse, a simple verse typesetting package; - autolist,
which provides various list formatting facilities; - biokey,
which provides a mechanism for typesetting biological
identification lists; - biolist, which typesets species lists;
- boldline, which typesets heavier separating lines in tables;
- cassete, which lays out audio cassette inserts; - classif2,
which typesets classification lists; - drcaps, which provides
dropped capital macros; - etiketka, a class for typesetting
business-card-sized information (including business cards); -
flower, for typesetting lists of flower formulae; - isyntax; -
numerus; - punct; - sltables, which develops on the stables
package, for use in a LaTeX context; and - starfn.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/shipunov/rusnat.bst
%{_texmfdistdir}/scripts/shipunov/biokey2html.bat
%{_texmfdistdir}/scripts/shipunov/biokey2html.sh
%{_texmfdistdir}/scripts/shipunov/biokey2html1.pl
%{_texmfdistdir}/scripts/shipunov/biokey2html2.pl
%{_texmfdistdir}/scripts/shipunov/biokey2html3.pl
%{_texmfdistdir}/tex/latex/shipunov/altverse.sty
%{_texmfdistdir}/tex/latex/shipunov/autolist.sty
%{_texmfdistdir}/tex/latex/shipunov/biokey.sty
%{_texmfdistdir}/tex/latex/shipunov/biolist.sty
%{_texmfdistdir}/tex/latex/shipunov/boldline.sty
%{_texmfdistdir}/tex/latex/shipunov/cassete.cls
%{_texmfdistdir}/tex/latex/shipunov/classif2.sty
%{_texmfdistdir}/tex/latex/shipunov/drcaps.sty
%{_texmfdistdir}/tex/latex/shipunov/etiketka.cls
%{_texmfdistdir}/tex/latex/shipunov/flower.sty
%{_texmfdistdir}/tex/latex/shipunov/isyntax.sty
%{_texmfdistdir}/tex/latex/shipunov/numerus.sty
%{_texmfdistdir}/tex/latex/shipunov/punct.sty
%{_texmfdistdir}/tex/latex/shipunov/sltables.sty
%{_texmfdistdir}/tex/latex/shipunov/starfn.sty
%doc %{_texmfdistdir}/doc/latex/shipunov/NEWS
%doc %{_texmfdistdir}/doc/latex/shipunov/README
%doc %{_texmfdistdir}/doc/latex/shipunov/altverse-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/altverse-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/altverse-ex1-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/altverse-ex1-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/altverse-ex2-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/altverse-ex2-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/autolist-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/autolist-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/autolist-ex-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/autolist-ex-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/biokey-doc-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/biokey-doc-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/biokey2html-doc-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/biokey2html-doc-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/biokey2html-ex-en.html
%doc %{_texmfdistdir}/doc/latex/shipunov/biokey2html-ex-en1.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/biokey2html-ex-en2.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/biolist-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/biolist-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/boldline-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/boldline-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/cassete-ex-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/cassete-ex-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/classif2-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/classif2-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/drcaps-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/drcaps-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/etiketka-ex-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/etiketka-ex-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/etiketka-ex1-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/etiketka-ex1-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/etiketka-ex2-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/etiketka-ex2-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/field-form-ex1-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/field-form-ex1-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/field-form-ex2-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/field-form-ex2-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/flower-ex-en-x.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/flower-ex-en-x.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/flower-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/flower-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/isyntax-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/numerus-ex-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/numerus-ex-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/punct-ex-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/punct-ex-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/rusnat-doc-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/rusnat-doc-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/rusnat-ex-ru.bib
%doc %{_texmfdistdir}/doc/latex/shipunov/rusnat-ex1-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/rusnat-ex1-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/rusnat-ex2-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/rusnat-ex2-ru.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/sltables-doc-en.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/sltables-doc-en.tex
%doc %{_texmfdistdir}/doc/latex/shipunov/starfn-ex-ru.pdf
%doc %{_texmfdistdir}/doc/latex/shipunov/starfn-ex-ru.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex scripts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19497 |21mr|texlive-shorttoc-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/shorttoc
# catalog-date 2006-11-06 12:20:58 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-shorttoc
Version:	1.3
Release:	7
Summary:	Table of contents with different depths
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/shorttoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shorttoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shorttoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/shorttoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package to create another table of contents with a different
depth, useful in large documents where a detailed table of
contents should be accompanied by a shorter one, giving only a
general overview of the main topics in the document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/shorttoc/shorttoc.sty
%doc %{_texmfdistdir}/doc/latex/shorttoc/00readme
%doc %{_texmfdistdir}/doc/latex/shorttoc/shorttoc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/shorttoc/shorttoc.dtx
%doc %{_texmfdistdir}/source/latex/shorttoc/shorttoc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19498 |21mr|texlive-show2e-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/show2e
# catalog-date 2008-08-23 15:48:35 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-show2e
Version:	1.0
Release:	7
Summary:	Variants of \show for LaTeX2e
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/show2e
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/show2e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/show2e.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/show2e.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This small package aims at making debugging (especially in an
interactive way) easier, by providing \show variants suited to
LaTeX2e commands (whether with optional arguments or robust)
and environments. The variant commands also display the
internal macros used by such commands, if any. The \showcs
variant helps with macros with exotic names.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/show2e/show2e.sty
%doc %{_texmfdistdir}/doc/latex/show2e/README
%doc %{_texmfdistdir}/doc/latex/show2e/show2e-fr.pdf
%doc %{_texmfdistdir}/doc/latex/show2e/show2e.pdf
#- source
%doc %{_texmfdistdir}/source/latex/show2e/show2e.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19499 |21mr|texlive-showcharinbox-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/showcharinbox
# catalog-date 2013-04-08 09:07:09 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-showcharinbox
Version:	0.1
Release:	11
Summary:	Show characters inside a box
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/showcharinbox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showcharinbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showcharinbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showcharinbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package typesets a character inside a box, showing where
reference point is, and displaying width, height, and depth
information of the character. The output is like that on page
63 of "The TeXBook" or page 101 of "The METAFONTbook". The
package itself is motivated by Knuth's macros in the file
manmac.tex. Users should note that using a small size for the
character inside the box does not make any sense: use a large
size.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/showcharinbox/showcharinbox.sty
%doc %{_texmfdistdir}/doc/latex/showcharinbox/README
%doc %{_texmfdistdir}/doc/latex/showcharinbox/showcharinbox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/showcharinbox/showcharinbox.dtx
%doc %{_texmfdistdir}/source/latex/showcharinbox/showcharinbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19500 |21mr|texlive-showdim-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28918
# category Package
# catalog-ctan /macros/latex/contrib/showdim/showdim.sty
# catalog-date 2012-12-19 17:06:30 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-showdim
Version:	1.2
Release:	10
Summary:	Variants on printing dimensions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/showdim/showdim.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showdim.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showdim.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for LaTeX providing a number of commands for printing
the value of a TeX dimension. For example,
\tenthpt{\baselineskip} yields the current value of
\baselineskip rounded to the nearest tenth of a point.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/showdim/showdim.sty
%doc %{_texmfdistdir}/doc/latex/showdim/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19501 |21mr|texlive-showexpl-0.3o-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-showexpl
Version:	0.3o
Release:	2
Summary:	Typesetting LaTeX source code
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/showexpl
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showexpl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showexpl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showexpl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a way to typeset LaTeX source code and
the related result in the same document.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/showexpl/showexpl.sty
%doc %{_texmfdistdir}/doc/latex/showexpl/README
%doc %{_texmfdistdir}/doc/latex/showexpl/result-picture.pdf
%doc %{_texmfdistdir}/doc/latex/showexpl/showexpl-test.pdf
%doc %{_texmfdistdir}/doc/latex/showexpl/showexpl-test.tex
%doc %{_texmfdistdir}/doc/latex/showexpl/showexpl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/showexpl/showexpl.dtx
%doc %{_texmfdistdir}/source/latex/showexpl/showexpl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19502 |21mr|texlive-showhyphens-0.5c-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23937
# category Package
# catalog-ctan /macros/luatex/latex/showhyphens
# catalog-date 2011-09-15 16:18:00 +0200
# catalog-license other-free
# catalog-version 0.1
Name:		texlive-showhyphens
Version:	0.5c
Release:	3
Summary:	Show all possible hyphenations in LuaLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/showhyphens
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showhyphens.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showhyphens.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
With this package, LuaLaTeX will indicate all possible
hyphenations in the printed output.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/showhyphens/showhyphens.sty
%doc %{_texmfdistdir}/doc/lualatex/showhyphens/README
%doc %{_texmfdistdir}/doc/lualatex/showhyphens/showhyphens-doc.pdf
%doc %{_texmfdistdir}/doc/lualatex/showhyphens/showhyphens-doc.tex
%doc %{_texmfdistdir}/doc/lualatex/showhyphens/showhyphens-sample.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19503 |21mr|texlive-showlabels-1.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32364
# category Package
# catalog-ctan /macros/latex/contrib/showlabels
# catalog-date 2013-12-07 01:06:37 +0100
# catalog-license gpl
# catalog-version 1.6.6
Name:		texlive-showlabels
Version:	1.8
Release:	2
Summary:	Show label commands in the margin
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/showlabels
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showlabels.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showlabels.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/showlabels.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package helps you keep track of all the labels you define,
by putting the name of new labels into the margin whenever the
\label command is used. The package allows you to do the same
thing for other commands. The only one for which this is
obviously useful is the \cite command, but it's easy to do it
for others, such as the \ref or \begin commands.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/showlabels/showlabels.sty
%doc %{_texmfdistdir}/doc/latex/showlabels/README
%doc %{_texmfdistdir}/doc/latex/showlabels/VERSION
%doc %{_texmfdistdir}/doc/latex/showlabels/lppl.txt
%doc %{_texmfdistdir}/doc/latex/showlabels/showlabels.html
%doc %{_texmfdistdir}/doc/latex/showlabels/showlabels.pdf
%doc %{_texmfdistdir}/doc/latex/showlabels/style.css
#- source
%doc %{_texmfdistdir}/source/latex/showlabels/showlabels.drv
%doc %{_texmfdistdir}/source/latex/showlabels/showlabels.dtx
%doc %{_texmfdistdir}/source/latex/showlabels/showlabels.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19504 |21mr|texlive-sidecap-1.6f-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sidecap
# catalog-date 2007-01-14 23:54:50 +0100
# catalog-license lppl
# catalog-version 1.6f
Name:		texlive-sidecap
Version:	1.6f
Release:	7
Summary:	Typeset captions sideways
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sidecap
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sidecap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sidecap.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sidecap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines environments called SCfigure and SCtable (analogous to
figure and table) to typeset captions sideways. Options include
outercaption, innercaption, leftcaption and rightcaption.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sidecap/sidecap.sty
%doc %{_texmfdistdir}/doc/latex/sidecap/README
%doc %{_texmfdistdir}/doc/latex/sidecap/sc-test-common.tex
%doc %{_texmfdistdir}/doc/latex/sidecap/sc-test1.tex
%doc %{_texmfdistdir}/doc/latex/sidecap/sc-test2.tex
%doc %{_texmfdistdir}/doc/latex/sidecap/sc-test3.tex
%doc %{_texmfdistdir}/doc/latex/sidecap/sc-test4.tex
%doc %{_texmfdistdir}/doc/latex/sidecap/sc-test5.tex
%doc %{_texmfdistdir}/doc/latex/sidecap/sc-test6.tex
%doc %{_texmfdistdir}/doc/latex/sidecap/sidecap.pdf
#- source
%doc %{_texmfdistdir}/source/latex/sidecap/Makefile
%doc %{_texmfdistdir}/source/latex/sidecap/sidecap.dtx
%doc %{_texmfdistdir}/source/latex/sidecap/sidecap.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19505 |21mr|texlive-sidenotes-1.00-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sidenotes
Epoch:		1
Version:	1.00
Release:	2
Summary:	Typeset notes containing rich content, in the margin
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sidenotes
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sidenotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sidenotes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sidenotes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows typesetting of texts with notes, figures,
citations, captions and tables in the margin. This is common
(for example) in science text books.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sidenotes
%doc %{_texmfdistdir}/doc/latex/sidenotes
#- source
%doc %{_texmfdistdir}/source/latex/sidenotes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19506 |21mr|texlive-sides-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sides
# catalog-date 2007-02-26 21:24:31 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-sides
Version:	20190228
Release:	1
Summary:	A LaTeX class for typesetting stage plays
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sides
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sides.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sides.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a LaTeX class for typesetting stage plays, based on the
plari class written by Antti-Juhani Kaijanaho in 1998. It has
been updated and several formatting changes have been made to
it--most noticibly there are no longer orphans.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sides/sides.cls
%doc %{_texmfdistdir}/doc/latex/sides/README
%doc %{_texmfdistdir}/doc/latex/sides/sides-sample.pdf
%doc %{_texmfdistdir}/doc/latex/sides/sides-sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19507 |21mr|texlive-silence-1.5b-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27028
# category Package
# catalog-ctan /macros/latex/contrib/silence
# catalog-date 2012-07-04 10:43:54 +0200
# catalog-license lppl
# catalog-version 1.5b
Name:		texlive-silence
Version:	1.5b
Release:	6
Summary:	Selective filtering of error messages and warnings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/silence
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/silence.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/silence.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/silence.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to filter out unwanted warnings and
error messages issued by LaTeX, packages and classes, so they
won't pop out when there's nothing one can do about them.
Filtering goes from the very broad ("avoid all messages by such
and such") to the fine-grained ("avoid messages that begin
with..."). Messages may be saved to an external file for later
reference.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/silence/silence.sty
%doc %{_texmfdistdir}/doc/latex/silence/README
%doc %{_texmfdistdir}/doc/latex/silence/silence-doc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/silence/silence-doc.dtx
%doc %{_texmfdistdir}/source/latex/silence/silence.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19508 |21mr|texlive-simplecd-1.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29260
# category Package
# catalog-ctan /macros/latex/contrib/simplecd
# catalog-date 2013-02-28 20:37:57 +0100
# catalog-license lppl1.2
# catalog-version 1.4
Name:		texlive-simplecd
Version:	1.4
Release:	10
Summary:	Simple CD, DVD covers for printing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/simplecd
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplecd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplecd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplecd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides printable cut-outs for various CD, DVD and
other disc holders. The name of the package comes from its
implementation and ease of use; it was designed just for text
content, but since the text is placed in a \parbox in a tabular
environment cell, a rather wide range of things may be placed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/simplecd/simplecd.sty
%doc %{_texmfdistdir}/doc/latex/simplecd/README
%doc %{_texmfdistdir}/doc/latex/simplecd/examples.pdf
%doc %{_texmfdistdir}/doc/latex/simplecd/examples.tex
%doc %{_texmfdistdir}/doc/latex/simplecd/simplecd.pdf
#- source
%doc %{_texmfdistdir}/source/latex/simplecd/simplecd.dtx
%doc %{_texmfdistdir}/source/latex/simplecd/simplecd.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19509 |21mr|texlive-simplecv-1.6a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-simplecv
Version:	1.6a
Release:	2
Summary:	A simple class for writing curricula vitae
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/simplecv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplecv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplecv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplecv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A derivative of the cv class available to lyx users (renamed to
avoid the existing cv package).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/simplecv
%doc %{_texmfdistdir}/doc/latex/simplecv
#- source
%doc %{_texmfdistdir}/source/latex/simplecv

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19510 |21mr|texlive-simplewick-1.2a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/simplewick
# catalog-date 2008-08-23 15:48:35 +0200
# catalog-license gpl
# catalog-version 1.2a
Name:		texlive-simplewick
Version:	1.2a
Release:	7
Summary:	Simple Wick contractions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/simplewick
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplewick.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplewick.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplewick.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a simple means of drawing Wick
contractions above and below expressions.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/simplewick/simplewick.sty
%doc %{_texmfdistdir}/doc/latex/simplewick/README
%doc %{_texmfdistdir}/doc/latex/simplewick/simplewick.pdf
#- source
%doc %{_texmfdistdir}/source/latex/simplewick/simplewick.dtx
%doc %{_texmfdistdir}/source/latex/simplewick/simplewick.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19511 |21mr|texlive-simplified-latex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20620
# category Package
# catalog-ctan /info/simplified-latex
# catalog-date 2010-11-29 22:48:23 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-simplified-latex
Version:	20190228
Release:	1
Summary:	A Simplified Introduction to LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/simplified-latex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplified-latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simplified-latex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
An accessible introduction for the beginner.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/simplified-latex/README
%doc %{_texmfdistdir}/doc/latex/simplified-latex/simplified-intro.pdf
%doc %{_texmfdistdir}/doc/latex/simplified-latex/source.zip

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19512 |21mr|texlive-simurgh-0.01b-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31719
# category Package
# catalog-ctan /macros/luatex/latex/simurgh
# catalog-date 2013-09-21 10:47:25 +0200
# catalog-license gpl2
# catalog-version 0.01b
Name:		texlive-simurgh
Version:	0.01b
Release:	10
Summary:	Typeset Parsi in LuaLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/latex/simurgh
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simurgh.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/simurgh.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an automatic and unified interface for
Parsi typesetting in LaTeX, using the LuaTeX engine. The
project to produce this system is dedicated to Ferdowsi The
Great.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-abjad.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-adadi.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-algorithm.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-algorithmic.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-amsart.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-amsbook.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-amsmath.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-amstext.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-amsthm.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-array.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-article.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-artikel1.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-artikel2.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-artikel3.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-arydshln.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-backref.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-bidi.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-boek.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-boek3.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-book.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-bookest.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-caption3.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-char-def.lua
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-char-ini.lua
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-chkeng.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-clss.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-counters.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-cptns.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-doc.cls
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-empheq.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-extarticle.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-extbook.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-extletter.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-extreport.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-fleqn.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-fonts.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-footnotes.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-ftnxtra.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-glossaries.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-harfi.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-jalalical.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-leqno.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-letter.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-lettrine.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-loader.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-ltx.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-mathdigitspec.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-memoir.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-minitoc.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-natbib.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-pkgs.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-poem.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-rapport1.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-rapport3.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-refrep.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-report.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-scrartcl.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-scrbook.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-scrlettr.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-scrreprt.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-shellescape.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-tags.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-tartibi.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-tools.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-unibidi-core.lua
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-unibidi-ini.lua
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-unibidi-math.lua
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-unibidi.lua
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh-unibidi.sty
%{_texmfdistdir}/tex/lualatex/simurgh/simurgh.sty
%doc %{_texmfdistdir}/doc/lualatex/simurgh/ChangeLog
%doc %{_texmfdistdir}/doc/lualatex/simurgh/README.doc
%doc %{_texmfdistdir}/doc/lualatex/simurgh/simurgh-doc.pdf
%doc %{_texmfdistdir}/doc/lualatex/simurgh/simurgh-doc.tex
%doc %{_texmfdistdir}/doc/lualatex/simurgh/simurgh-logo.pdf
%doc %{_texmfdistdir}/doc/lualatex/simurgh/simurgh-logo.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19513 |21mr|texlive-SIstyle-2.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/SIstyle
# catalog-date 2008-07-16 16:54:56 +0200
# catalog-license lppl
# catalog-version 2.3a
Name:		texlive-SIstyle
Version:	2.3a
Release:	7
Summary:	Package to typeset SI units, numbers and angles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/SIstyle
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/SIstyle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/SIstyle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/SIstyle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package typesets SI units, numbers and angles according to
the ISO requirements. Care is taken with font setup and
requirements, and language customisation is available. Note
that this package is (in principle) superseded by siunitx;
sistyle has maintenance-only support, now.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/SIstyle/sistyle.sty
%doc %{_texmfdistdir}/doc/latex/SIstyle/README
%doc %{_texmfdistdir}/doc/latex/SIstyle/SIstyle-2.3a.pdf
%doc %{_texmfdistdir}/doc/latex/SIstyle/fig1.eps
%doc %{_texmfdistdir}/doc/latex/SIstyle/fig1.mps
%doc %{_texmfdistdir}/doc/latex/SIstyle/fig2.eps
%doc %{_texmfdistdir}/doc/latex/SIstyle/fig2.mps
%doc %{_texmfdistdir}/doc/latex/SIstyle/graphs_scr.zip
#- source
%doc %{_texmfdistdir}/source/latex/SIstyle/sistyle.dtx
%doc %{_texmfdistdir}/source/latex/SIstyle/sistyle.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19514 |21mr|texlive-sitem-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22136
# category Package
# catalog-ctan /macros/latex/contrib/sitem
# catalog-date 2011-04-19 10:29:51 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-sitem
Version:	1.0
Release:	7
Summary:	Save the optional argument of \item
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sitem
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sitem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sitem.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sitem.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package modifies \item commands to save the optional
argument in a box.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sitem/sitem.sty
%doc %{_texmfdistdir}/doc/latex/sitem/sitem.pdf
#- source
%doc %{_texmfdistdir}/source/latex/sitem/sitem.dtx
%doc %{_texmfdistdir}/source/latex/sitem/sitem.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19515 |21mr|texlive-SIunits-1.36-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/SIunits
# catalog-date 2008-06-16 17:21:40 +0200
# catalog-license lppl1.3
# catalog-version 1.36
Name:		texlive-SIunits
Version:	1.36
Release:	7
Summary:	International System of Units
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/SIunits
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/SIunits.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/SIunits.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/SIunits.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typeset physical units following the rules of the International
System of Units (SI). The package requires amstext, for proper
representation of some values. Note that the package is now
superseded by siunitx; siunits has maintenance-only support,
now.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/SIunits/SIunits.cfg
%{_texmfdistdir}/tex/latex/SIunits/SIunits.sty
%{_texmfdistdir}/tex/latex/SIunits/binary.sty
%doc %{_texmfdistdir}/doc/latex/SIunits/README
%doc %{_texmfdistdir}/doc/latex/SIunits/SIunits.pdf
#- source
%doc %{_texmfdistdir}/source/latex/SIunits/SIunits.drv
%doc %{_texmfdistdir}/source/latex/SIunits/SIunits.dtx
%doc %{_texmfdistdir}/source/latex/SIunits/SIunits.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19516 |21mr|texlive-siunitx-2.7s-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-siunitx
Version:	2.7s
Release:	3
Summary:	A comprehensive (SI) units package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/siunitx
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/siunitx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/siunitx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/siunitx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typesetting values with units requires care to ensure that the
combined mathematical meaning of the value plus unit
combination is clear. In particular, the SI units system lays
down a consistent set of units with rules on how they are to be
used. However, different countries and publishers have
differing conventions on the exact appearance of numbers (and
units). A number of LaTeX packages have been developed to
provide consistent application of the various rules: SIunits,
sistyle, unitsdef and units are the leading examples. The
numprint package provides a large number of number-related
functions, while dcolumn and rccol provide tools for
typesetting tabular numbers. The siunitx package takes the best
from the existing packages, and adds new features and a
consistent interface. A number of new ideas have been
incorporated, to fill gaps in the existing provision. The
package also provides backward-compatibility with SIunits,
sistyle, unitsdef and units. The aim is to have one package to
handle all of the possible unit-related needs of LaTeX users.
The package relies on LaTeX 3 support from the l3kernel and
l3packages bundles.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/siunitx
%doc %{_texmfdistdir}/doc/latex/siunitx
#- source
%doc %{_texmfdistdir}/source/latex/siunitx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19517 |21mr|texlive-skak-1.5.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-skak
Version:	1.5.3
Release:	2
Summary:	Fonts and macros for typesetting chess games
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/chess/skak
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skak.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skak.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides macros and fonts in Metafont format which
can be used to typeset chess games using PGN, and to show
diagrams of the current board in a document. The package builds
on work by Piet Tutelaers -- the main novelty is the use of PGN
for input instead of the more cumbersome coordinate notation
(g1f3 becomes the more readable Nf3 in PGN). An Adobe Type 1
implementation of skak's fonts is available as package skaknew;
an alternative chess notational scheme is available in package
texmate, and a general mechanism for selecting chess fonts is
provided in chessfss.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/*/public/skak
%{_texmfdistdir}/tex/latex/skak
%doc %{_texmfdistdir}/doc/latex/skak

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19518 |21mr|texlive-skaknew-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20031
# category Package
# catalog-ctan /fonts/chess/skaknew
# catalog-date 2009-02-21 22:13:29 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-skaknew
Version:	20190228
Release:	1
Summary:	The skak chess fonts redone in Adobe Type 1
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/chess/skaknew
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skaknew.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skaknew.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package offers Adobe Type 1 versions of the fonts provided
as MetaFont source by the skak bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/skaknew/AlphaDia.afm
%{_texmfdistdir}/fonts/afm/public/skaknew/SkakNew-Diagram.afm
%{_texmfdistdir}/fonts/afm/public/skaknew/SkakNew-DiagramT.afm
%{_texmfdistdir}/fonts/afm/public/skaknew/SkakNew-Figurine.afm
%{_texmfdistdir}/fonts/afm/public/skaknew/SkakNew-FigurineBold.afm
%{_texmfdistdir}/fonts/map/dvips/skaknew/SkakNew.map
%{_texmfdistdir}/fonts/opentype/public/skaknew/AlphaDia.otf
%{_texmfdistdir}/fonts/opentype/public/skaknew/SkakNew-Diagram.otf
%{_texmfdistdir}/fonts/opentype/public/skaknew/SkakNew-DiagramT.otf
%{_texmfdistdir}/fonts/opentype/public/skaknew/SkakNew-Figurine.otf
%{_texmfdistdir}/fonts/opentype/public/skaknew/SkakNew-FigurineBold.otf
%{_texmfdistdir}/fonts/tfm/public/skaknew/AlphaDia.tfm
%{_texmfdistdir}/fonts/tfm/public/skaknew/SkakNew-Diagram.tfm
%{_texmfdistdir}/fonts/tfm/public/skaknew/SkakNew-DiagramT.tfm
%{_texmfdistdir}/fonts/tfm/public/skaknew/SkakNew-Figurine.tfm
%{_texmfdistdir}/fonts/tfm/public/skaknew/SkakNew-FigurineBold.tfm
%{_texmfdistdir}/fonts/type1/public/skaknew/AlphaDia.inf
%{_texmfdistdir}/fonts/type1/public/skaknew/AlphaDia.pfb
%{_texmfdistdir}/fonts/type1/public/skaknew/AlphaDia.pfm
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-Diagram.inf
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-Diagram.pfb
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-Diagram.pfm
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-DiagramT.inf
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-DiagramT.pfb
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-DiagramT.pfm
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-Figurine.inf
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-Figurine.pfb
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-Figurine.pfm
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-FigurineBold.inf
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-FigurineBold.pfb
%{_texmfdistdir}/fonts/type1/public/skaknew/SkakNew-FigurineBold.pfm
%doc %{_texmfdistdir}/doc/fonts/skaknew/README
%doc %{_texmfdistdir}/doc/fonts/skaknew/SkakNew.pdf
%doc %{_texmfdistdir}/doc/fonts/skaknew/SkakNew.tex
%doc %{_texmfdistdir}/doc/fonts/skaknew/fonttables.pdf
%doc %{_texmfdistdir}/doc/fonts/skaknew/install.vtex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19519 |21mr|texlive-skb-0.52-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22781
# category Package
# catalog-ctan /macros/latex/contrib/skb
# catalog-date 2011-05-13 02:11:01 +0200
# catalog-license lppl1.3
# catalog-version 0.51
Name:		texlive-skb
Version:	0.52
Release:	3
Summary:	Tools for a repository of long-living documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/skb
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros that help to build a document
repository for long living documents. It focuses on structure
and re-use of text, code, figures etc. The basic concept is
first to separate structure from content (i.e., text about a
topic from the structure it is presented by) and then
separating the content from the actual published document, thus
enabling easy re-use of text blocks in different publications
(i.e., text about a protocol in a short article about this
protocol as well as in a book about many protocols); all
without constantly copying or changing text. As a side effect,
using the document classes provided, it hides a lot of LaTeX
from someone who just wants to write articles and books.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/skb/skb.cfg
%{_texmfdistdir}/tex/latex/skb/skb.sty
%{_texmfdistdir}/tex/latex/skb/skbarticle.cls
%{_texmfdistdir}/tex/latex/skb/skbbeamer.cls
%{_texmfdistdir}/tex/latex/skb/skbbook.cls
%{_texmfdistdir}/tex/latex/skb/skblncsbeamer.cls
%{_texmfdistdir}/tex/latex/skb/skblncsppt.cls
%{_texmfdistdir}/tex/latex/skb/skbmoderncv.cls
%doc %{_texmfdistdir}/doc/latex/skb/HISTORY.TXT
%doc %{_texmfdistdir}/doc/latex/skb/LICENSE.TXT
%doc %{_texmfdistdir}/doc/latex/skb/MANIFEST.TXT
%doc %{_texmfdistdir}/doc/latex/skb/README
%doc %{_texmfdistdir}/doc/latex/skb/TODO.TXT
%doc %{_texmfdistdir}/doc/latex/skb/makefile
%doc %{_texmfdistdir}/doc/latex/skb/skb.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/acronyms.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibliography.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex-styles.bbx
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/article.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/book.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/collection.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/conference.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/inbook.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/incollection.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/inproceedings.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/manual.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/misc.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/online.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/proceedings.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/report.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/standard.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/techreport.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/database/bibtex/unpublished.bib
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/example-toc.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/example.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/figure-classic.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/listings.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/optional-text.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/paths.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/rebuild.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/skbconfig.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/skbem.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/skbfigure.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/skbheading.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/skbinput.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/skbslide.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/skbslidecite.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/examples/used-options.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/dirtree/baf.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/dirtree/complete.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/dirtree/exa-doc.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/dirtree/publish-art.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/dirtree/publish.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/dirtree/repository.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/dirtree/skb-distribution.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-0.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-1.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-10.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-11.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-12.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-13.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-14.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-2.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-3.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-4.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-5.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-6.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-7.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-8.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/figures/multiexample/dpe-9.pdf
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/abstract.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/applicability.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/exa-doc/documentation.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/example-article.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/config-cmd.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/config-opt-table.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/config-opt.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/config.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/distribution.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/folders.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/installation.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/rebuild.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/start.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/getting-started/used-options.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/intent.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/acr-bib.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/figures.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/figures2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/headings-and-files.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/listing.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/lists.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/manual.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/optional-text.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/path-commands.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/pdfinfo.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/skbem.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/skbfigure-opt-table.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/skbinput-opt-table.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/slides.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/manual/slides2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/separate/separate-cs.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/separate/separate-final.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/separate/separate-parts-baf.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/separate/separate-parts-pc.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/separate/separate-parts-pc2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/separate/separate-parts.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/separate/separate.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/story/long.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/story/long2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/story/short.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/repository/title.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/about.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/applicability.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/example-art-tex1.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/example-art-tex2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/example-art-tex3.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/example-art-toc.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/intent.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-acrbib.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-figures-exa.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-figures-exna.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-figures-opt.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-figures.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-haf.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-listings.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-lists.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-optional-text.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-paths.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-pdfinfo.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-skbem.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-slides1.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/manual-slides2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/separate-cs.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/separate-parts-baf.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/separate-parts-pc1.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/separate-parts-pc2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/separate.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/start-config-cmd.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/start-config-opt.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/start-distribution.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/start-folders.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/start-installation.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/start-rebuild1.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/start-rebuild2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/start-used-options.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/story-long1.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/story-long2.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/slides/story-short.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/ug-slides-anim.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/ug-slides-load.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/ug-slides-noanim.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/ug-slides-notes.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/user-guide-load.tex
%doc %{_texmfdistdir}/doc/latex/skb/user-guide/user-guide.tex
#- source
%doc %{_texmfdistdir}/source/latex/skb/skb.dtx
%doc %{_texmfdistdir}/source/latex/skb/skb.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19520 |21mr|texlive-skdoc-1.5a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32278
# category Package
# catalog-ctan /macros/latex/contrib/skdoc
# catalog-date 2013-11-28 23:56:30 +0100
# catalog-license lppl1.3
# catalog-version 1.4a
Name:		texlive-skdoc
Version:	1.5a
Release:	2
Summary:	Documentation and extraction for packages and document classes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/skdoc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skdoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skdoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skdoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides the functionality and implementation of
packages and document classes. It is loosely based on the ydoc
and ltxdoc classes, but has a number of incompatible
differences. The class defines a MacroCode environment which
offers an alternative to the the usual docstrip method of
installing packages. It has the ability to generate both
documentation and code in a single run of a single file.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/skdoc/skdoc.cls
%doc %{_texmfdistdir}/doc/latex/skdoc/README
%doc %{_texmfdistdir}/doc/latex/skdoc/skdoc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/skdoc/skdoc.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19521 |21mr|texlive-skeycommand-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24652
# category Package
# catalog-ctan /macros/latex/contrib/skeycommand
# catalog-date 2011-11-20 11:43:03 +0100
# catalog-license lppl1.3
# catalog-version 0.4
Name:		texlive-skeycommand
Version:	0.4
Release:	7
Summary:	Create commands using parameters and keyval in parallel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/skeycommand
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skeycommand.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skeycommand.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides tools for defining LaTeX commands and
environments using combinations of parameters and keys. All the
facilities of the ltxkeys and skeyval packages are available to
the user of skeycommand.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/skeycommand/skeycommand.sty
%doc %{_texmfdistdir}/doc/latex/skeycommand/README
%doc %{_texmfdistdir}/doc/latex/skeycommand/skeycommand-guide.cfg
%doc %{_texmfdistdir}/doc/latex/skeycommand/skeycommand-guide.pdf
%doc %{_texmfdistdir}/doc/latex/skeycommand/skeycommand-guide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19522 |21mr|texlive-skeyval-1.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30560
# category Package
# catalog-ctan /macros/latex/contrib/skeyval
# catalog-date 2013-05-16 17:14:56 +0200
# catalog-license lppl1.3
# catalog-version 1.3
Name:		texlive-skeyval
Version:	1.3
Release:	10
Summary:	Key-value parsing combining features of xkeyval and pgfkeys
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/skeyval
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skeyval.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skeyval.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package integrates the features of xkeyval and of pgfkeys
by introducing a new type of handlers. Style keys, links,
changing key callbacks and values on the fly, and other
features of pgfkeys are introduced in a new context.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/skeyval/skeyval-bc.sty
%{_texmfdistdir}/tex/latex/skeyval/skeyval-core.tex
%{_texmfdistdir}/tex/latex/skeyval/skeyval-for.tex
%{_texmfdistdir}/tex/latex/skeyval/skeyval-ltxcmds.tex
%{_texmfdistdir}/tex/latex/skeyval/skeyval-ltxpatch.sty
%{_texmfdistdir}/tex/latex/skeyval/skeyval-pstkey.sty
%{_texmfdistdir}/tex/latex/skeyval/skeyval-pstkey.tex
%{_texmfdistdir}/tex/latex/skeyval/skeyval-testclass.cls
%{_texmfdistdir}/tex/latex/skeyval/skeyval-testpkg.sty
%{_texmfdistdir}/tex/latex/skeyval/skeyval-view.sty
%{_texmfdistdir}/tex/latex/skeyval/skeyval.sty
%doc %{_texmfdistdir}/doc/latex/skeyval/README
%doc %{_texmfdistdir}/doc/latex/skeyval/skeyval-pokayoke1.pdf
%doc %{_texmfdistdir}/doc/latex/skeyval/skeyval-pokayoke1.tex
%doc %{_texmfdistdir}/doc/latex/skeyval/skeyval-pokayoke2.pdf
%doc %{_texmfdistdir}/doc/latex/skeyval/skeyval-pokayoke2.tex
%doc %{_texmfdistdir}/doc/latex/skeyval/skeyval-view-pokayoke1.aux
%doc %{_texmfdistdir}/doc/latex/skeyval/skeyval-view-pokayoke1.log
%doc %{_texmfdistdir}/doc/latex/skeyval/skeyval-view-pokayoke1.pdf
%doc %{_texmfdistdir}/doc/latex/skeyval/skeyval-view-pokayoke1.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19523 |21mr|texlive-skrapport-0.12i-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31718
# category Package
# catalog-ctan /macros/latex/contrib/skrapport
# catalog-date 2013-09-21 11:27:06 +0200
# catalog-license lppl1.3
# catalog-version 0.12d
Name:		texlive-skrapport
Version:	0.12i
Release:	1
Summary:	'Simple' class for reports, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/skrapport
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skrapport.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skrapport.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/skrapport.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is intended for simple documents (e.g., reports
handed in as coursework and the like). The class is small and
straightforward; its design was inspired by that of the PracTeX
journal style.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/skrapport/skrapport-colortheme-cruelwater.sty
%{_texmfdistdir}/tex/latex/skrapport/skrapport-colortheme-default.sty
%{_texmfdistdir}/tex/latex/skrapport/skrapport-colortheme-skdoc.sty
%{_texmfdistdir}/tex/latex/skrapport/skrapport-colortheme-unscathed.sty
%{_texmfdistdir}/tex/latex/skrapport/skrapport-colortheme-violet.sty
%{_texmfdistdir}/tex/latex/skrapport/skrapport-size-common.sty
%{_texmfdistdir}/tex/latex/skrapport/skrapport-size10pt.clo
%{_texmfdistdir}/tex/latex/skrapport/skrapport-size11pt.clo
%{_texmfdistdir}/tex/latex/skrapport/skrapport-size12pt.clo
%{_texmfdistdir}/tex/latex/skrapport/skrapport.cls
%doc %{_texmfdistdir}/doc/latex/skrapport/README
%doc %{_texmfdistdir}/doc/latex/skrapport/skrapport.pdf
#- source
%doc %{_texmfdistdir}/source/latex/skrapport/skrapport.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19524 |21mr|texlive-slantsc-2.11-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25007
# category Package
# catalog-ctan /macros/latex/contrib/slantsc
# catalog-date 2012-01-02 14:24:13 +0100
# catalog-license lppl
# catalog-version 2.11
Name:		texlive-slantsc
Version:	2.11
Release:	6
Summary:	Access different-shaped small-caps fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/slantsc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/slantsc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/slantsc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/slantsc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package enables the use of small capitals in different
font shapes, e.g., slanted or bold slanted for all fonts that
provide appropriate font shapes. (Note that a separate .fd file
is needed to define font shapes such as 'scsl' or 'scit'.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/slantsc/slantsc.sty
%doc %{_texmfdistdir}/doc/latex/slantsc/ChangeLog
%doc %{_texmfdistdir}/doc/latex/slantsc/Makefile
%doc %{_texmfdistdir}/doc/latex/slantsc/README
%doc %{_texmfdistdir}/doc/latex/slantsc/getversion.tex
%doc %{_texmfdistdir}/doc/latex/slantsc/slantsc.pdf
%doc %{_texmfdistdir}/doc/latex/slantsc/testslantsc.tex
#- source
%doc %{_texmfdistdir}/source/latex/slantsc/slantsc.dtx
%doc %{_texmfdistdir}/source/latex/slantsc/slantsc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19525 |21mr|texlive-slideshow-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/slideshow
# catalog-date 2008-12-04 14:14:32 +0100
# catalog-license other-free
# catalog-version 1.0
Name:		texlive-slideshow
Version:	1.0
Release:	7
Summary:	Generate slideshow with MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/slideshow
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/slideshow.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/slideshow.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of creating presentations in
MetaPost, without intervention from other utilities (except a
distiller). Such an arrangement has its advantages (though
there are disadvantages too).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/slideshow/pathalong.mp
%{_texmfdistdir}/metapost/slideshow/slideshow.mp
%{_texmfdistdir}/metapost/slideshow/sshowex.mp
%{_texmfdistdir}/metapost/slideshow/sshowex2.mp
%{_texmfdistdir}/metapost/slideshow/sshowex3.mp
%{_texmfdistdir}/metapost/slideshow/sshowintro.mp
%doc %{_texmfdistdir}/doc/metapost/slideshow/slideshow.txt
%doc %{_texmfdistdir}/doc/metapost/slideshow/sshowex.pdf
%doc %{_texmfdistdir}/doc/metapost/slideshow/sshowex2.pdf
%doc %{_texmfdistdir}/doc/metapost/slideshow/sshowex3.pdf
%doc %{_texmfdistdir}/doc/metapost/slideshow/sshowintro.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19526 |21mr|texlive-smalltableof-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20333
# category Package
# catalog-ctan /macros/latex/contrib/smalltableof
# catalog-date 2010-11-05 12:10:03 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-smalltableof
Version:	20190228
Release:	1
Summary:	Create listoffigures etc. in a single chapter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/smalltableof
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/smalltableof.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/smalltableof.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows you to create a list of figures and list of
tables in a chapter named 'List' that contains separate
sections for each list of figures, tables, etc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/smalltableof/smalltableof.sty
%doc %{_texmfdistdir}/doc/latex/smalltableof/README
%doc %{_texmfdistdir}/doc/latex/smalltableof/smalltableof-doc-fr.pdf
%doc %{_texmfdistdir}/doc/latex/smalltableof/smalltableof-doc-fr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19527 |21mr|texlive-smartdiagram-0.3b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30046
# category Package
# catalog-ctan /graphics/pgf/contrib/smartdiagram
# catalog-date 2013-04-02 02:01:45 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-smartdiagram
Version:	0.3b
Release:	2
Summary:	Generate diagrams from lists
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/smartdiagram
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/smartdiagram.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/smartdiagram.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/smartdiagram.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package will create 'smart' diagrams from lists of items,
for simple documents and for presentations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/smartdiagram/smartdiagram.sty
%{_texmfdistdir}/tex/latex/smartdiagram/smartdiagramlibraryadditions.code.tex
%{_texmfdistdir}/tex/latex/smartdiagram/smartdiagramlibrarycore.commands.code.tex
%{_texmfdistdir}/tex/latex/smartdiagram/smartdiagramlibrarycore.definitions.code.tex
%{_texmfdistdir}/tex/latex/smartdiagram/smartdiagramlibrarycore.styles.code.tex
%doc %{_texmfdistdir}/doc/latex/smartdiagram/README
%doc %{_texmfdistdir}/doc/latex/smartdiagram/smartdiagram.pdf
#- source
%doc %{_texmfdistdir}/source/latex/smartdiagram/smartdiagram.dtx
%doc %{_texmfdistdir}/source/latex/smartdiagram/smartdiagram.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19528 |21mr|texlive-smartref-1.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20311
# category Package
# catalog-ctan /macros/latex/contrib/smartref
# catalog-date 2010-11-01 15:44:19 +0100
# catalog-license lppl
# catalog-version 1.9
Name:		texlive-smartref
Version:	1.9
Release:	7
Summary:	Extend LaTeX's \ref capability
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/smartref
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/smartref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/smartref.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends the LaTeX labelling system: whenever a
label is set, the values of counters (selected by the user) are
recorded, along with the label. The value of these counters can
be recalled with a command similar to \pageref. The package
also adds commands \s[name]ref (for each counter [name] that
the user has selected); these commands display something only
if the value of the [name] counter is changed from when the
label was set. Many commands are provided to serve as a macro
programming environment for using the extended labels.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/smartref/byname.sty
%{_texmfdistdir}/tex/latex/smartref/smartref.sty
%doc %{_texmfdistdir}/doc/latex/smartref/README
%doc %{_texmfdistdir}/doc/latex/smartref/smartref-doc.pdf
%doc %{_texmfdistdir}/doc/latex/smartref/smartref-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19529 |21mr|texlive-snapshot-1.14-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/snapshot
# catalog-date 2006-12-14 00:03:18 +0100
# catalog-license lppl
# catalog-version 1.14
Name:		texlive-snapshot
Version:	1.14
Release:	7
Summary:	List the external dependencies of a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/snapshot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/snapshot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/snapshot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/snapshot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The snapshot package helps the owner of a LaTeX document obtain
a list of the external dependencies of the document, in a form
that can be embedded at the top of the document. It provides a
snapshot of the current processing context of the document,
insofar as it can be determined from inside LaTeX. If a
document contains such a dependency list, then it becomes
possible to arrange that the document be processed always with
the same versions of everything, in order to ensure the same
output. This could be useful for someone wanting to keep a
LaTeX document on hand and consistently reproduce an identical
DVI file from it, on the fly; or for someone wanting to shield
a document during the final stages of its production cycle from
unexpected side effects of routine upgrades to the TeX system.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/snapshot/snapshot.sty
%doc %{_texmfdistdir}/doc/latex/snapshot/snapshot.pdf
#- source
%doc %{_texmfdistdir}/source/latex/snapshot/snapshot.dtx
%doc %{_texmfdistdir}/source/latex/snapshot/snapshot.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19530 |21mr|texlive-snotez-0.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30355
# category Package
# catalog-ctan /macros/latex/contrib/snotez
# catalog-date 2013-05-09 13:28:31 +0200
# catalog-license lppl1.3
# catalog-version 0.3
Name:		texlive-snotez
Version:	0.3
Release:	10
Summary:	Typeset notes, in the margin
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/snotez
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/snotez.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/snotez.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a macro \sidenote, that places a note in
the margin of the document, with its baseline aligned with the
baseline in the body of the document. These sidenotes are
numbered (both in the text, and on the notes themselves). The
package loads the package etoolbox, pgfopts, marginnote and
perpage.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/snotez/snotez.sty
%doc %{_texmfdistdir}/doc/latex/snotez/README
%doc %{_texmfdistdir}/doc/latex/snotez/snotez_en.pdf
%doc %{_texmfdistdir}/doc/latex/snotez/snotez_en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19531 |21mr|texlive-songbook-4.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18136
# category Package
# catalog-ctan /macros/latex/contrib/songbook
# catalog-date 2010-05-06 13:38:32 +0200
# catalog-license lgpl2.1
# catalog-version 4.5
Name:		texlive-songbook
Version:	4.5
Release:	7
Summary:	Package for typesetting song lyrics and chord books
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/songbook
License:	LGPL2.1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/songbook.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/songbook.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/songbook.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an all purpose songbook style. Three types
of output may be created from a single input file: "words and
chords" books for the musicians to play from, "words only"
songbooks for the congregation to sing from, and overhead
transparency masters for congregational use. The package will
also print a table of contents, an index sorted by title and
first line, and an index sorted by key, or by artist/composer.
The package attempts to handle songs in multiple keys, as well
as songs in multiple languages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/songbook/songbook.ist
%{_texmfdistdir}/tex/latex/songbook/conditionals.sty
%{_texmfdistdir}/tex/latex/songbook/songbook.sty
%doc %{_texmfdistdir}/doc/latex/songbook/LesserGPL.txt
%doc %{_texmfdistdir}/doc/latex/songbook/README
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/CarolBook/CarolBook.tex
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/CarolBook/CarolBookOH.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/CarolBook/CarolBookWB.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/README
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/crd2sb/NothingButTheBlood.crd
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/crd2sb/crd2sb
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/crd2sb/crd2sb.txt
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/modulate
%doc %{_texmfdistdir}/doc/latex/songbook/contrib/texchord.sty
%doc %{_texmfdistdir}/doc/latex/songbook/install.txt
%doc %{_texmfdistdir}/doc/latex/songbook/mksbadx
%doc %{_texmfdistdir}/doc/latex/songbook/mksbkdx
%doc %{_texmfdistdir}/doc/latex/songbook/mksbtdx
%doc %{_texmfdistdir}/doc/latex/songbook/sample-sb.tex
%doc %{_texmfdistdir}/doc/latex/songbook/sampleAdx.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/sampleAdx.tex
%doc %{_texmfdistdir}/doc/latex/songbook/sampleCBK.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/sampleCSBK.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/sampleKdx.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/sampleKdx.tex
%doc %{_texmfdistdir}/doc/latex/songbook/sampleOH.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/sampleTdx.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/sampleTdx.tex
%doc %{_texmfdistdir}/doc/latex/songbook/sampleToc.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/sampleToc.tex
%doc %{_texmfdistdir}/doc/latex/songbook/sampleWBK.pdf
%doc %{_texmfdistdir}/doc/latex/songbook/songbook.pdf
#- source
%doc %{_texmfdistdir}/source/latex/songbook/songbook.dtx
%doc %{_texmfdistdir}/source/latex/songbook/songbook.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19532 |21mr|texlive-songs-3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-songs
Version:	3.0
Release:	2
Summary:	Produce song books for church or fellowship
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/songs
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/songs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/songs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/songs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a means of producing beautiful song books
for church or fellowship. It offers: - a very easy chord-entry
syntax; - multiple modes (words-only; words+chords; slides;
handouts); - measure bars; - guitar tablatures; - automatic
transposition; - scripture quotations; - multiple indexes
(sorted by title, author, important lyrics, or scripture
references); and - projector-style output generation, for
interactive use. A set of example documents is provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/songs
%doc %{_texmfdistdir}/doc/latex/songs
#- source
%doc %{_texmfdistdir}/source/latex/songs

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19533 |21mr|texlive-soton-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16215
# category Package
# catalog-ctan /macros/latex/contrib/soton
# catalog-date 2009-11-28 09:57:52 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-soton
Version:	0.1
Release:	7
Summary:	University of Southampton-compliant slides
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/soton
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/soton.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/soton.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle contains two packages: soton-palette which defines
colour-ways, and soton-beamer, which uses the colours to
produce compliant presentations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/soton/soton-beamer.sty
%{_texmfdistdir}/tex/latex/soton/soton-palette.sty
%doc %{_texmfdistdir}/doc/latex/soton/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19534 |21mr|texlive-soul-2.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/soul
# catalog-date 2009-10-10 00:35:28 +0200
# catalog-license lppl
# catalog-version 2.4
Name:		texlive-soul
Version:	2.4
Release:	7
Summary:	Hyphenation for letterspacing, underlining, and more
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/soul
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/soul.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/soul.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/soul.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides hyphenatable spacing out (letterspacing), underlining,
striking out, etc., using the TeX hyphenation algorithm to find
the proper hyphens automatically. The package also provides a
mechanism that can be used to implement similar tasks, that
have to treat text syllable by syllable. This is shown in two
examples. The package itself does not support UTF-8 input in
ordinary (PDF)LaTeX; some UTF-8 support is offered by package
soulutf8.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/soul/soul.sty
%doc %{_texmfdistdir}/doc/latex/soul/soul.pdf
%doc %{_texmfdistdir}/doc/latex/soul/soul.txt
#- source
%doc %{_texmfdistdir}/source/latex/soul/Makefile
%doc %{_texmfdistdir}/source/latex/soul/soul.dtx
%doc %{_texmfdistdir}/source/latex/soul/soul.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19535 |21mr|texlive-spanish-5.0k-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24229
# category Package
# catalog-ctan /language/spanish/babel/base
# catalog-date 2011-10-06 19:10:39 +0200
# catalog-license lppl
# catalog-version 5.0k
Name:		texlive-spanish
Version:	5.0k
Release:	6
Summary:	Spanish in Babel
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/spanish/babel/base
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spanish.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spanish.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spanish.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This bundle provides an upgrade of the Spanish support provided
by the LaTeX standard package babel. Note that separate support
is provided for those who wish to typeset Spanish as written in
Mexico.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/spanish/README
%doc %{_texmfdistdir}/doc/latex/spanish/romanidx.sty
%doc %{_texmfdistdir}/doc/latex/spanish/spanish.ldf
%doc %{_texmfdistdir}/doc/latex/spanish/spanish.pdf
%doc %{_texmfdistdir}/doc/latex/spanish/spanish2.html
#- source
%doc %{_texmfdistdir}/source/latex/spanish/spanish.dtx
%doc %{_texmfdistdir}/source/latex/spanish/spanish.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19536 |21mr|texlive-spanish-mx-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /language/spanish/babel/contrib/mexican
# catalog-date 2009-01-10 16:42:45 +0100
# catalog-license lppl
# catalog-version 1.1a
Name:		texlive-spanish-mx
Version:	1.1a
Release:	7
Summary:	Typeset Spanish as in Mexico
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/spanish/babel/contrib/mexican
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spanish-mx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spanish-mx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides files to support typesetting of texts in
Spanish according to Mexican current practices, using babel.
The files merge earlier work on a mexican.ldf, or may be used
to define a configuration that will typeset all documents (that
request babel's spanish option) to use the Mexican language
facilities. (Note that this facility is only available with the
recent (version >=4.2b) releases of the Spanish option.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/spanish-mx/esmx.cfg
%{_texmfdistdir}/tex/latex/spanish-mx/spanishmx.ldf
%{_texmfdistdir}/tex/latex/spanish-mx/spanishmx.sty
%doc %{_texmfdistdir}/doc/latex/spanish-mx/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19537 |21mr|texlive-sparklines-1.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16131
# category Package
# catalog-ctan /graphics/sparklines
# catalog-date 2009-11-22 10:21:09 +0100
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-sparklines
Version:	1.7
Release:	2
Summary:	Drawing sparklines: intense, simple, wordlike graphics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/sparklines
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sparklines.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sparklines.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sparklines are intense, simple, wordlike graphics (so named by
Edward Tufte). In lieu of a more detailed introduction,
Professor Tufte's site has an early release of a chapter on
sparklines. A PHP implementation may be found at SourceForge. A
sparkline can be added using the sparkline environment. Also,
you can add sparkling rectangles for the median and special
sparkling dots in red or blue. The package requires pdflatex;
sparklines cannot appear in a dvi file. The sparklines package
uses pgf, and does not work with pictex.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sparklines/sparklines.sty
%doc %{_texmfdistdir}/doc/latex/sparklines/README
%doc %{_texmfdistdir}/doc/latex/sparklines/sparklines.pdf
%doc %{_texmfdistdir}/doc/latex/sparklines/sparklines.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19538 |21mr|texlive-spath3-1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-spath3
Version:	1.2
Release:	1
Summary:	Manipulate "soft paths" in PGF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/spath3
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spath3.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spath3.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spath3.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The spath3 library provides methods for manipulating the "soft
paths" of TikZ/PGF. Packaged with it are two TikZ libraries
that make use of the methods provided. These are libraries for
drawing calligraphic paths and for drawing knot diagrams.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/spath3
%doc %{_texmfdistdir}/doc/latex/spath3
#- source
%doc %{_texmfdistdir}/source/latex/spath3

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19539 |21mr|texlive-spelling-0.41-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30715
# category Package
# catalog-ctan /macros/luatex/generic/spelling
# catalog-date 2013-05-27 20:07:27 +0200
# catalog-license lppl1.3
# catalog-version 0.41
Name:		texlive-spelling
Version:	0.41
Release:	10
Summary:	Support for spell-checking of LuaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/luatex/generic/spelling
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spelling.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spelling.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package aids spell-checking of TeX documents compiled with
the LuaTeX engine. It can give visual feedback in PDF output
similar to WYSIWYG word processors. The package relies on an
external spell-checker application to check spelling of a text
file and to output a list of bad spellings. The package should
work with most spell-checkers, even dumb, TeX-unaware ones.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/scripts/spelling/spelling-main.lua
%{_texmfdistdir}/scripts/spelling/spelling-recurse.lua
%{_texmfdistdir}/scripts/spelling/spelling-stage-1.lua
%{_texmfdistdir}/scripts/spelling/spelling-stage-2.lua
%{_texmfdistdir}/scripts/spelling/spelling-stage-3.lua
%{_texmfdistdir}/scripts/spelling/spelling-stage-4.lua
%{_texmfdistdir}/tex/luatex/spelling/spelling.sty
%doc %{_texmfdistdir}/doc/luatex/spelling/CHANGES
%doc %{_texmfdistdir}/doc/luatex/spelling/LICENSE
%doc %{_texmfdistdir}/doc/luatex/spelling/README
%doc %{_texmfdistdir}/doc/luatex/spelling/spelling-doc-lst-lua.tex
%doc %{_texmfdistdir}/doc/luatex/spelling/spelling-doc.bad
%doc %{_texmfdistdir}/doc/luatex/spelling/spelling-doc.pdf
%doc %{_texmfdistdir}/doc/luatex/spelling/spelling-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar scripts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19540 |21mr|texlive-sphack-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sphack
Version:	20190228
Release:	1
Summary:	Patch LaTeX kernel spacing macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sphack
License:	OTHER-NONFREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sphack.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sphack.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Change the kernel internal \@bsphack/\@esphack so that it is
also invisible in vertical mode.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sphack
%doc %{_texmfdistdir}/doc/latex/sphack

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19541 |21mr|texlive-spie-3.25-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/spie
# catalog-date 2007-04-25 15:28:03 +0200
# catalog-license lppl
# catalog-version 3.25
Name:		texlive-spie
Version:	3.25
Release:	7
Summary:	Support for formatting SPIE Proceedings manuscripts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/spie
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spie.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spie.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class and a BibTeX style are provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bib/spie/report.bib
%{_texmfdistdir}/bibtex/bst/spie/spiebib.bst
%{_texmfdistdir}/tex/latex/spie/spie.cls
%doc %{_texmfdistdir}/doc/latex/spie/README
%doc %{_texmfdistdir}/doc/latex/spie/article.pdf
%doc %{_texmfdistdir}/doc/latex/spie/article.tex
%doc %{_texmfdistdir}/doc/latex/spie/mcr3b.eps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19542 |21mr|texlive-splines-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/splines
# catalog-date 2007-03-12 11:51:09 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-splines
Version:	0.2
Release:	7
Summary:	MetaPost macros for drawing cubic spline interpolants
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/splines
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splines.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splines.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splines.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a small package of macros for creating cubic spline
interpolants in MetaPost or MetaFont. Given a list of points
the macros can produce a closed or a relaxed spline joining
them. Given a list of function values y_j at x_j, the result
would define the graph of a cubic spline interpolating function
y=f(x), which is either periodic or relaxed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/splines/splines.mp
%{_texmfdistdir}/metapost/splines/testsplines.mp
%doc %{_texmfdistdir}/doc/metapost/splines/README
%doc %{_texmfdistdir}/doc/metapost/splines/splines.pdf
#- source
%doc %{_texmfdistdir}/source/metapost/splines/splines.dtx
%doc %{_texmfdistdir}/source/metapost/splines/splines.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19543 |21mr|texlive-splitindex-1.2c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-splitindex
Version:	1.2c
Release:	1
Summary:	Unlimited number of indexes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/splitindex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splitindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splitindex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/splitindex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-splitindex.bin = %{EVRD}

%description
SplitIndex consists of a LaTeX package, splitidx, and a small
program, splitindex. The package may be used to produce one
index or several indexes. Without splitindex (for example,
using the index package), the number of indexes is limited by
the number of TeX's output streams. But using the program you
may use even more than 16 indexes: splitidx outputs only a
single file \jobname.idx and the program splits that file into
several raw index files and calls your favorite index processor
for each of the files.


#-----------------------------------------------------------------------
%files
%{_bindir}/splitindex
%{_texmfdistdir}/scripts/splitindex
%{_texmfdistdir}/tex/generic/splitindex/splitindex.tex
%{_texmfdistdir}/tex/latex/splitindex/splitidx.sty
%doc %{_texmfdistdir}/doc/latex/splitindex
%doc %{_mandir}/man1/splitindex.1*
%doc %{_texmfdistdir}/doc/man/man1/splitindex.man1.pdf
#- source
%doc %{_texmfdistdir}/source/latex/splitindex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/splitindex/splitindex.pl splitindex
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19544 |21mr|texlive-spot-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22408
# category Package
# catalog-ctan /macros/latex/contrib/beamer-contrib/spot
# catalog-date 2011-05-10 01:20:26 +0200
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-spot
Version:	1.1
Release:	7
Summary:	Spotlight highlighting for Beamer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/beamer-contrib/spot
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows dramatic highlighting of words and phrases
by painting shapes around them. It is chiefly intended for use
in Beamer presentations, but it can be used in other document
classes as well.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/spot/spot.sty
%doc %{_texmfdistdir}/doc/latex/spot/README
%doc %{_texmfdistdir}/doc/latex/spot/spot.pdf
#- source
%doc %{_texmfdistdir}/source/latex/spot/spot.dtx
%doc %{_texmfdistdir}/source/latex/spot/spot.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19545 |21mr|texlive-spotcolor-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/spotcolor
# catalog-date 2007-03-12 11:51:09 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-spotcolor
Version:	1.2
Release:	7
Summary:	Spot colours for pdfLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/spotcolor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spotcolor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spotcolor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides procedures for using spot colors in LaTeX
documents and the generated pdf files. Predefined templates for
PANTONE and HKS color spaces are included but new ones can
easily be defined.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/spotcolor/spotcolor.sty
%{_texmfdistdir}/tex/latex/spotcolor/spotcolorhks.tex
%{_texmfdistdir}/tex/latex/spotcolor/spotcolorpantone.tex
%doc %{_texmfdistdir}/doc/latex/spotcolor/README
%doc %{_texmfdistdir}/doc/latex/spotcolor/readme.pdf
%doc %{_texmfdistdir}/doc/latex/spotcolor/readme.tcp
%doc %{_texmfdistdir}/doc/latex/spotcolor/readme.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19546 |21mr|texlive-spreadtab-0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26384
# category Package
# catalog-ctan /macros/latex/contrib/spreadtab
# catalog-date 2012-05-14 12:19:39 +0200
# catalog-license lppl1.3
# catalog-version 0.4b
Name:		texlive-spreadtab
Version:	0.5
Release:	1
Summary:	Spreadsheet features for LaTeX tabular environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/spreadtab
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spreadtab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spreadtab.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to construct tables in a manner
similar to a spreadsheet. The cells of a table have row and
column indices and these can be used in formulas to generate
values in other cells.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/spreadtab
%doc %{_texmfdistdir}/doc/latex/spreadtab

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19547 |21mr|texlive-spverbatim-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-spverbatim
Version:	1.0
Release:	2
Summary:	Allow line breaks within \verb and verbatim output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/spverbatim
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spverbatim.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spverbatim.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/spverbatim.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX's \verb macro treats its argument as an unbreakable unit
of text. This can lead to poor typesetting, especially when the
argument is long. The spverbatim package provides an \spverb
macro that is analogous to \verb and an spverbatim environment
that is analogous to verbatim with the difference being that
\spverb and spverbatim allow LaTeX to break lines at space
characters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/spverbatim/spverbatim.sty
%doc %{_texmfdistdir}/doc/latex/spverbatim/README
%doc %{_texmfdistdir}/doc/latex/spverbatim/spverbatim.pdf
#- source
%doc %{_texmfdistdir}/source/latex/spverbatim/spverbatim.dtx
%doc %{_texmfdistdir}/source/latex/spverbatim/spverbatim.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19548 |21mr|texlive-srbook-mem-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23454
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-srbook-mem
Version:	20190228
Release:	1
Summary:	TeXLive srbook-mem package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/srbook-mem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/srbook-mem.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive srbook-mem package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/srbook-mem/srbook-mem.sty
%doc %{_texmfdistdir}/doc/latex/srbook-mem/README
%doc %{_texmfdistdir}/doc/latex/srbook-mem/SerbianBookMem.pdf
%doc %{_texmfdistdir}/doc/latex/srbook-mem/SerbianBookMem.tex
%doc %{_texmfdistdir}/doc/latex/srbook-mem/Test.pdf
%doc %{_texmfdistdir}/doc/latex/srbook-mem/Test.tex
%doc %{_texmfdistdir}/doc/latex/srbook-mem/TestLight.pdf
%doc %{_texmfdistdir}/doc/latex/srbook-mem/TestLight.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19549 |21mr|texlive-srcltx-1.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/srcltx
# catalog-date 2006-12-07 15:13:33 +0100
# catalog-license pd
# catalog-version 1.6
Name:		texlive-srcltx
Version:	1.6
Release:	7
Summary:	Jump between DVI and TeX files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/srcltx
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/srcltx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/srcltx.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/srcltx.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a \special insertion into generated .dvi files
allowing one to jump from the .dvi file to the .tex source and
back again (given a .dvi viewer that supports this, such as Yap
or xdvi version 22.38 or later). This was originally written by
Aleksander Simonic, the author of the WinEdt shell.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/srcltx/srcltx.sty
%{_texmfdistdir}/tex/latex/srcltx/srctex.sty
%doc %{_texmfdistdir}/doc/latex/srcltx/README
%doc %{_texmfdistdir}/doc/latex/srcltx/srcltx.pdf
#- source
%doc %{_texmfdistdir}/source/latex/srcltx/srcltx.dtx
%doc %{_texmfdistdir}/source/latex/srcltx/srcltx.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19550 |21mr|texlive-sr-vorl-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sr-vorl
Version:	1.1
Release:	1
Summary:	Class for Springer books
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/springer/sr-vorl
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sr-vorl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sr-vorl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sr-vorl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides a template for books to be published at
Springer Gabler, Vieweg or Springer Research. It may be used to
produce monographs in different formats and "several-authors-
books" fitting the conditions of Springer Gabler, Vieweg and
Springer Research.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sr-vorl
%doc %{_texmfdistdir}/doc/latex/sr-vorl
#- source
%doc %{_texmfdistdir}/source/latex/sr-vorl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19551 |21mr|texlive-sseq-2.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sseq
# catalog-date 2009-04-10 15:43:04 +0200
# catalog-license lppl
# catalog-version 2.01
Name:		texlive-sseq
Version:	2.01
Release:	7
Summary:	Spectral sequence diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sseq
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sseq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sseq.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sseq.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to draw spectral sequence
diagrams, providing facilities for clipping and arranging
multiple symbols so that they do not overlap. The package is
built using pgf, and shares that systems large demands for TeX
system memory. Its geometric commands are based on a turtle
graphics model, and control structures such as loops and
conditionals are available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sseq/sseq.sty
%doc %{_texmfdistdir}/doc/latex/sseq/sseq.pdf
#- source
%doc %{_texmfdistdir}/source/latex/sseq/sseq.dtx
%doc %{_texmfdistdir}/source/latex/sseq/sseq.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19552 |21mr|texlive-sslides-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32293
# category Package
# catalog-ctan /macros/latex/contrib/sslides
# catalog-date 2013-12-01 17:33:13 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-sslides
Version:	20190228
Release:	1
Summary:	Slides with headers and footers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sslides
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sslides.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sslides.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class provides a variant of the LaTeX standard slides
class, in which the user may add headers and footers to the
slide.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sslides/sslides.cls
%doc %{_texmfdistdir}/doc/latex/sslides/land-sample-slide.pdf
%doc %{_texmfdistdir}/doc/latex/sslides/land-sample-slide.tex
%doc %{_texmfdistdir}/doc/latex/sslides/port-sample-slide.pdf
%doc %{_texmfdistdir}/doc/latex/sslides/port-sample-slide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19553 |21mr|texlive-stack-1.00-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/stack
# catalog-date 2007-02-28 00:02:05 +0100
# catalog-license lppl
# catalog-version 1.00
Name:		texlive-stack
Version:	1.00
Release:	7
Summary:	Tools to define and use stacks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stack
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stack.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stack.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a small set of commands to implement
stacks independently of TeX's own stack. As an example of how
the stacks might be used, the documentation offers a small
"relinput" package that implements the backbone of the import
package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/stack/relinput.sty
%{_texmfdistdir}/tex/latex/stack/stack.sty
#- source
%doc %{_texmfdistdir}/source/latex/stack/stack.dtx
%doc %{_texmfdistdir}/source/latex/stack/stack.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19554 |21mr|texlive-stackengine-4.01-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32593
# category Package
# catalog-ctan /macros/latex/contrib/stackengine
# catalog-date 2014-01-06 14:33:54 +0100
# catalog-license lppl1.3
# catalog-version 3.24
Name:		texlive-stackengine
Version:	4.01
Release:	1
Summary:	Highly customised stacking of objects, insets, baseline changes, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stackengine
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stackengine.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stackengine.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a versatile way to stack objects
vertically in a variety of customizable ways. A number of
useful macros are provided, all of which make use of the
stackengine core.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/stackengine
%doc %{_texmfdistdir}/doc/latex/stackengine

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19555 |21mr|texlive-stage-1.00-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-stage
Version:	1.00
Release:	4
Summary:	A LaTeX class for stage plays
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stage
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stage.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Stage.cls is a LaTeX class for creating plays of any length in
a standard manuscript format for production and submission.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/stage
%doc %{_texmfdistdir}/doc/latex/stage

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19556 |21mr|texlive-standalone-1.3a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27677
# category Package
# catalog-ctan /macros/latex/contrib/standalone
# catalog-date 2012-09-15 20:44:35 +0200
# catalog-license lppl1.3
# catalog-version 1.1b
Name:		texlive-standalone
Version:	1.3a
Release:	2
Summary:	Compile TeX pictures stand-alone or as part of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/standalone
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/standalone.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/standalone.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/standalone.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A class and package is provided which allows TeX pictures or
other TeX code to be compiled standalone or as part of a main
document. Special support for pictures with beamer overlays is
also provided. The package is used in the main document and
skips extra preambles in sub-files. The class may be used to
simplify the preamble in sub-files. By default the preview
package is used to display the code without margins. The
behaviour in standalone mode may adjusted using a configuration
file standalone.cfg to redefine the standalone environment.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/standalone/standalone.cfg
%{_texmfdistdir}/tex/latex/standalone/standalone.cls
%{_texmfdistdir}/tex/latex/standalone/standalone.sty
%{_texmfdistdir}/tex/plain/standalone/standalone.tex
%doc %{_texmfdistdir}/doc/latex/standalone/README
%doc %{_texmfdistdir}/doc/latex/standalone/standalone.pdf
#- source
%doc %{_texmfdistdir}/source/latex/standalone/standalone.dtx
%doc %{_texmfdistdir}/source/latex/standalone/standalone.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19557 |21mr|texlive-statistik-0.03-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20334
# category Package
# catalog-ctan /macros/latex/contrib/statistik
# catalog-date 2010-11-05 12:45:12 +0100
# catalog-license gpl
# catalog-version 0.03
Name:		texlive-statistik
Version:	0.03
Release:	7
Summary:	Store statistics of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/statistik
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/statistik.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/statistik.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/statistik.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package counts the numbers of pages per chapter, and stores
the results in a separate file; the format of the file is
selectable.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/statistik/statistik.sty
%doc %{_texmfdistdir}/doc/latex/statistik/sta_cvs.tex
%doc %{_texmfdistdir}/doc/latex/statistik/sta_mytable.tex
%doc %{_texmfdistdir}/doc/latex/statistik/sta_tab.tex
%doc %{_texmfdistdir}/doc/latex/statistik/sta_textable.tex
%doc %{_texmfdistdir}/doc/latex/statistik/sta_xml.tex
%doc %{_texmfdistdir}/doc/latex/statistik/statistik.pdf
#- source
%doc %{_texmfdistdir}/source/latex/statistik/statistik.dtx
%doc %{_texmfdistdir}/source/latex/statistik/statistik.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19558 |21mr|texlive-stdclsdv-1.1a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/stdclsdv
# catalog-date 2009-09-04 12:14:45 +0200
# catalog-license lppl
# catalog-version 1.1a
Name:		texlive-stdclsdv
Version:	1.1a
Release:	7
Summary:	Provide sectioning information for package writers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stdclsdv
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stdclsdv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stdclsdv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stdclsdv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The stdclsdv package is designed for package writers who need
to know what sectioning divsions are provided by the document's
class. It also provides a version of \CheckCommand that sets a
flag rather than printing a warning.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/stdclsdv/stdclsdv.sty
%doc %{_texmfdistdir}/doc/latex/stdclsdv/README
%doc %{_texmfdistdir}/doc/latex/stdclsdv/stdclsdv.pdf
#- source
%doc %{_texmfdistdir}/source/latex/stdclsdv/stdclsdv.dtx
%doc %{_texmfdistdir}/source/latex/stdclsdv/stdclsdv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19559 |21mr|texlive-stdpage-0.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/stdpage
# catalog-date 2006-11-06 12:37:44 +0100
# catalog-license lppl1.2
# catalog-version 0.6
Name:		texlive-stdpage
Version:	0.6
Release:	7
Summary:	Standard pages with n lines of at most m characters each
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stdpage
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stdpage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stdpage.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stdpage.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
For translations, proofreading, journal contributions etc.
standard pages are used. Those standard pages consist of a
fixed number of lines and characters per line. This package
produces pages with n lines of at most m characters each. For
instance the German "Normseite": 60 lines of 30 characters
each.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/stdpage/stdpage.sty
%doc %{_texmfdistdir}/doc/latex/stdpage/README
%doc %{_texmfdistdir}/doc/latex/stdpage/stdpage-test.tex
%doc %{_texmfdistdir}/doc/latex/stdpage/stdpage.pdf
#- source
%doc %{_texmfdistdir}/source/latex/stdpage/stdpage.dtx
%doc %{_texmfdistdir}/source/latex/stdpage/stdpage.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19560 |21mr|texlive-steinmetz-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/steinmetz
# catalog-date 2009-11-10 00:30:52 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-steinmetz
Version:	1.0
Release:	7
Summary:	Print Steinmetz notation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/steinmetz
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/steinmetz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/steinmetz.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/steinmetz.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The steinmetz package provides a command for typesetting
complex numbers in the Steinmetz notation used in
electrotechnics as: <modulus><argument or phase inside an angle
symbol> The package makes use of pict2e.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/steinmetz/steinmetz.sty
%doc %{_texmfdistdir}/doc/latex/steinmetz/README
%doc %{_texmfdistdir}/doc/latex/steinmetz/steinmetz-test.tex
%doc %{_texmfdistdir}/doc/latex/steinmetz/steinmetz.pdf
#- source
%doc %{_texmfdistdir}/source/latex/steinmetz/steinmetz.dtx
%doc %{_texmfdistdir}/source/latex/steinmetz/steinmetz.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19561 |21mr|texlive-stellenbosch-11a-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-stellenbosch
Version:	11a
Release:	3
Summary:	Stellenbosch thesis bundle
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stellenbosch
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stellenbosch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stellenbosch.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stellenbosch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The usthesis class/style files are provided to typeset reports,
theses and dissertations that conform to the requirements of
the Engineering Faculty of the University of Stellenbosch. The
class file usthesis.cls is based on the standard LaTeX book
class, while usthesis.sty is a style file to be loaded on top
of the very powerful memoir class. Both options give identical
output, but the benefit of the using memoir is that it has many
additional command and environments for formatting and
processing of a document. Usthesis is primarily concerned with
the formatting of the front matter such as the title page,
abstract, etc. and a decent page layout on A4 paper. It also
works together with the babel package to provide language
options to typeset documents in Afrikaans or in English.
Additional packages are provided for bibliographic matter, note
title pages, lists of symbols, as well as various graphic files
for logos.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/stellenbosch
%{_texmfdistdir}/tex/latex/stellenbosch
%doc %{_texmfdistdir}/doc/latex/stellenbosch
#- source
%doc %{_texmfdistdir}/source/latex/stellenbosch

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19562 |21mr|texlive-stex-20190321-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-stex
Version:	20190321
Release:	1
Summary:	An Infrastructure for Semantic Preloading of LaTeX Documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The sTeX package collection is a version of TeX/LaTeX that
allows to markup TeX/LaTeX documents semantically without
leaving the document format, essentially turning it into a
document format for mathematical knowledge management (MKM).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/stex
%doc %{_texmfdistdir}/doc/latex/stex
#- source
%doc %{_texmfdistdir}/source/latex/stex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19563 |21mr|texlive-stmaryrd-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22027
# category Package
# catalog-ctan /fonts/stmaryrd
# catalog-date 2009-10-10 00:51:28 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-stmaryrd
Version:	20190228
Release:	1
Summary:	St Mary Road symbols for theoretical computer science
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/stmaryrd
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stmaryrd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stmaryrd.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stmaryrd.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The fonts were originally distributed as MetaFont sources only,
but Adobe Type 1 versions are also now available. Macro support
is provided for use under LaTeX; the package supports the
"only" option (provided by the somedefs package) to restrict
what is loaded, for those who don't need the whole font.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/stmaryrd/stmary10.afm
%{_texmfdistdir}/fonts/afm/public/stmaryrd/stmary5.afm
%{_texmfdistdir}/fonts/afm/public/stmaryrd/stmary6.afm
%{_texmfdistdir}/fonts/afm/public/stmaryrd/stmary7.afm
%{_texmfdistdir}/fonts/afm/public/stmaryrd/stmary8.afm
%{_texmfdistdir}/fonts/afm/public/stmaryrd/stmary9.afm
%{_texmfdistdir}/fonts/map/dvips/stmaryrd/stmaryrd.map
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmary10.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmary5.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmary6.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmary7.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmary8.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmary9.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmaryaj.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmaryba.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmarych.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmaryjg.mf
%{_texmfdistdir}/fonts/source/public/stmaryrd/stmaryrd.mf
%{_texmfdistdir}/fonts/tfm/public/stmaryrd/stmary10.tfm
%{_texmfdistdir}/fonts/tfm/public/stmaryrd/stmary5.tfm
%{_texmfdistdir}/fonts/tfm/public/stmaryrd/stmary6.tfm
%{_texmfdistdir}/fonts/tfm/public/stmaryrd/stmary7.tfm
%{_texmfdistdir}/fonts/tfm/public/stmaryrd/stmary8.tfm
%{_texmfdistdir}/fonts/tfm/public/stmaryrd/stmary9.tfm
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary10.pfb
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary10.pfm
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary5.pfb
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary5.pfm
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary6.pfb
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary6.pfm
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary7.pfb
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary7.pfm
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary8.pfb
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary8.pfm
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary9.pfb
%{_texmfdistdir}/fonts/type1/public/stmaryrd/stmary9.pfm
%{_texmfdistdir}/tex/latex/stmaryrd/Ustmry.fd
%{_texmfdistdir}/tex/latex/stmaryrd/stmaryrd.sty
%doc %{_texmfdistdir}/doc/fonts/stmaryrd/INSTALL
%doc %{_texmfdistdir}/doc/fonts/stmaryrd/README
%doc %{_texmfdistdir}/doc/fonts/stmaryrd/README.hoekwater
%doc %{_texmfdistdir}/doc/fonts/stmaryrd/stmaryrd.pdf
#- source
%doc %{_texmfdistdir}/source/fonts/stmaryrd/stmaryrd.dtx
%doc %{_texmfdistdir}/source/fonts/stmaryrd/stmaryrd.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19564 |21mr|texlive-storebox-1.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24895
# category Package
# catalog-ctan /macros/latex/contrib/storebox
# catalog-date 2011-12-21 11:26:33 +0100
# catalog-license lppl1.3
# catalog-version 1.3a
Name:		texlive-storebox
Version:	1.3a
Release:	7
Summary:	Storing information for reuse
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/storebox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/storebox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/storebox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/storebox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides "store boxes" whose user interface matches
that of normal LaTeX "save boxes", except that the content of a
store box appears at most once in the output PDF file, however
often it is used. The present version of the package supports
pdfLaTeX and LuaLaTeX; when DVI is output, store boxes behave
the same as save boxes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/storebox/storebox-pgf.sty
%{_texmfdistdir}/tex/latex/storebox/storebox.sty
%doc %{_texmfdistdir}/doc/latex/storebox/README
%doc %{_texmfdistdir}/doc/latex/storebox/storebox.pdf
#- source
%doc %{_texmfdistdir}/source/latex/storebox/storebox.dtx
%doc %{_texmfdistdir}/source/latex/storebox/storebox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19565 |21mr|texlive-storecmd-0.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24431
# category Package
# catalog-ctan /macros/latex/contrib/storecmd
# catalog-date 2011-10-27 10:28:55 +0200
# catalog-license lppl1.3
# catalog-version 0.0.2
Name:		texlive-storecmd
Version:	0.0.2
Release:	7
Summary:	Store the name of a defined command in a container
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/storecmd
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/storecmd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/storecmd.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for command definition that save
the name of the command being defined in a file or a macro
container. The list could be useful for spelling exceptions in
text editors that do not support TeX syntax.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/storecmd/storecmd.sty
%doc %{_texmfdistdir}/doc/latex/storecmd/README
%doc %{_texmfdistdir}/doc/latex/storecmd/storecmd-example.tex
%doc %{_texmfdistdir}/doc/latex/storecmd/storecmd-guide.pdf
%doc %{_texmfdistdir}/doc/latex/storecmd/storecmd-guide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19566 |21mr|texlive-stringstrings-1.23-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30093
# category Package
# catalog-ctan /macros/latex/contrib/stringstrings
# catalog-date 2012-10-10 00:01:11 +0200
# catalog-license lgpl
# catalog-version 1.21
Name:		texlive-stringstrings
Version:	1.23
Release:	3
Summary:	String manipulation for cosmetic and programming application
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stringstrings
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stringstrings.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stringstrings.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stringstrings.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a large and sundry set of macros for the
manipulation of strings. The macros are developed not merely
for cosmetic application (such as changing the case of letters
and string substitution), but also for programming applications
such as character look-ahead, argument parsing, conditional
tests on various string conditions, etc. The macros were
designed all to be expandable (note that things such as
\uppercase and \lowercase are not expandable), so that the
macros may be strung together sequentially and nested (after a
fashion) to achieve rather complex manipulations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/stringstrings/stringstrings.sty
%doc %{_texmfdistdir}/doc/latex/stringstrings/README
%doc %{_texmfdistdir}/doc/latex/stringstrings/stringstrings.pdf
#- source
%doc %{_texmfdistdir}/source/latex/stringstrings/stringstrings.dtx
%doc %{_texmfdistdir}/source/latex/stringstrings/stringstrings.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19567 |21mr|texlive-struktex-2.3c0g7d3fc5b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-struktex
Version:	2.3c0g7d3fc5b
Release:	1
Epoch:		1
Summary:	Draw Nassi-Schneidermann charts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/struktex
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/struktex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/struktex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/struktex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Even in the age of OOP one must develop algorithms. Nassi-
Shneiderman diagrams are a well known tool to describe an
algorithm in a graphical way. The package offers some macros
for generating those diagrams in a LaTeX document. The package
provides the most important elements of a Nassi-Shneiderman
diagram, including processing blocks, loops, mapping
conventions for alternatives, etc. Diagrams are drawn using the
picture environment (using pict2e for preference).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/struktex
%doc %{_texmfdistdir}/doc/latex/struktex
#- source
%doc %{_texmfdistdir}/source/latex/struktex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19568 |21mr|texlive-sttools-2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-sttools
Epoch:		1
Version:	2.0
Release:	2
Summary:	Various macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sttools
License:	COLLECTION
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sttools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sttools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sttools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of tools and macros, providing: miscellaneous
float control, page styles for floats, multipage tabulars, even
columns at end of twocolumn region, switching between one- and
two-column anywhere, getting more mileage from \marginpar,
simulating the effect of "midfloats", a package to manipulate
numerical lists and arrays.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sttools
%doc %{_texmfdistdir}/doc/latex/sttools
#- source
%doc %{_texmfdistdir}/source/latex/sttools

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19569 |21mr|texlive-stubs-0.1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/stubs
# catalog-date 2008-08-23 22:26:13 +0200
# catalog-license gpl
# catalog-version 0.1.1
Name:		texlive-stubs
Version:	0.1.1
Release:	7
Summary:	Create tear-off stubs at the bottom of a page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/stubs
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stubs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/stubs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The \stubs command creates as many repetitions as possible of
its argument, at the bottom of the page; these stubs may be
used (for example) for contact information.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/stubs/stubs.sty
%doc %{_texmfdistdir}/doc/latex/stubs/COPYING
%doc %{_texmfdistdir}/doc/latex/stubs/README
%doc %{_texmfdistdir}/doc/latex/stubs/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/stubs/changelog.txt
%doc %{_texmfdistdir}/doc/latex/stubs/stubs_ex.pdf
%doc %{_texmfdistdir}/doc/latex/stubs/stubs_ex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19570 |21mr|texlive-suanpan-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/suanpan
# catalog-date 2009-11-10 00:30:52 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-suanpan
Version:	20190228
Release:	1
Summary:	MetaPost macros for drawing Chinese and Japanese abaci
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/suanpan
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/suanpan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/suanpan.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These macros are described in Denis Roegel: MetaPost macros for
drawing Chinese and Japanese abaci, TUGboat (volume 30, number
1, 2009, pages 74-79).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/suanpan/abacus.mp
%{_texmfdistdir}/metapost/suanpan/suanpan.mp
%doc %{_texmfdistdir}/doc/metapost/suanpan/README
%doc %{_texmfdistdir}/doc/metapost/suanpan/article.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19571 |21mr|texlive-subdepth-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/subdepth
# catalog-date 2008-08-23 22:26:13 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-subdepth
Version:	0.1
Release:	7
Summary:	Unify maths subscript height
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/subdepth
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subdepth.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subdepth.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subdepth.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is based on code (posted long ago to comp.text.tex
by Donald Arseneau) to equalise the height of subscripts in
maths. The default behaviour is to place subscripts slightly
lower when there is a superscript as well, but this can look
odd in some situations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subdepth/subdepth.sty
%doc %{_texmfdistdir}/doc/latex/subdepth/README
%doc %{_texmfdistdir}/doc/latex/subdepth/subdepth.pdf
#- source
%doc %{_texmfdistdir}/source/latex/subdepth/subdepth.dtx
%doc %{_texmfdistdir}/source/latex/subdepth/subdepth.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19572 |21mr|texlive-subeqn-2.0b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/subeqn
# catalog-date 2007-01-15 00:27:07 +0100
# catalog-license lppl
# catalog-version 2.0b
Name:		texlive-subeqn
Version:	2.0b
Release:	7
Summary:	Package for subequation numbering
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/subeqn
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subeqn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subeqn.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subeqn.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Sometimes it is necessary to be able to refer to subexpressions
of an equation. In order to do that these subexpressions should
be numbered. In standard LaTeX there is no provision for this.
To solve this problem Stephen Gildea once wrote subeqn.sty for
LaTeX 2.09; Donald Arsenau rewrote the macros and Johannes
Braams made them available for LaTeX2e. Note that this package
is not compatible with the package subeqnarray (written by
Johannes Braams), but it can be used together with the LaTeX
class options leqno and fleqn.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subeqn/subeqn.sty
%doc %{_texmfdistdir}/doc/latex/subeqn/manifest.txt
%doc %{_texmfdistdir}/doc/latex/subeqn/subeqn.pdf
%doc %{_texmfdistdir}/doc/latex/subeqn/subeqn.tex
#- source
%doc %{_texmfdistdir}/source/latex/subeqn/subeqn.dtx
%doc %{_texmfdistdir}/source/latex/subeqn/subeqn.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19573 |21mr|texlive-subeqnarray-2.1c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/subeqnarray
# catalog-date 2007-01-02 10:01:06 +0100
# catalog-license lppl
# catalog-version 2.1c
Name:		texlive-subeqnarray
Version:	2.1c
Release:	7
Summary:	Equation array with sub numbering
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/subeqnarray
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subeqnarray.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subeqnarray.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subeqnarray.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package defines the subeqnarray and subeqnarray*
environments, which behave like the equivalent eqnarray and
eqnarray* environments, except that the individual lines are
numbered like 1a, 1b, 1c, etc. To refer to these numbers an
extra label command \slabel is provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subeqnarray/subeqnarray.sty
%doc %{_texmfdistdir}/doc/latex/subeqnarray/manifest.txt
%doc %{_texmfdistdir}/doc/latex/subeqnarray/subeqnarray.pdf
%doc %{_texmfdistdir}/doc/latex/subeqnarray/subeqnarray.tex
#- source
%doc %{_texmfdistdir}/source/latex/subeqnarray/subeqnarray.dtx
%doc %{_texmfdistdir}/source/latex/subeqnarray/subeqnarray.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19574 |21mr|texlive-subfig-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/subfig
# catalog-date 2010-05-10 00:41:23 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-subfig
Version:	1.3
Release:	7
Summary:	Figures broken into subfigures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/subfig
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfig.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfig.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for the manipulation and reference
of small or 'sub' figures and tables within a single figure or
table environment. It is convenient to use this package when
your subfigures are to be separately captioned, referenced, or
are to be included in the List-of-Figures. A new \subfigure
command is introduced which can be used inside a figure
environment for each subfigure. An optional first argument is
used as the caption for that subfigure. This package supersedes
the subfigure package (which will continue to be supported, but
no longer maintained). The name has changed because the subfig
package is not completely backward compatible with the older
subfigure package due to an extensive rewrite to use the new
caption package to produce its subcaptions. The major advantage
to the new package is that the user interface is keyword/value
driven and easier to use. To ease the transition from the
subfigure package it includes a configuration file (subfig.cfg)
which nearly emulates the subfigure package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subfig/altsf.cfg
%{_texmfdistdir}/tex/latex/subfig/subfig.sty
%doc %{_texmfdistdir}/doc/latex/subfig/README
%doc %{_texmfdistdir}/doc/latex/subfig/ltxdoc.cfg
%doc %{_texmfdistdir}/doc/latex/subfig/subfig.pdf
%doc %{_texmfdistdir}/doc/latex/subfig/test1.tex
%doc %{_texmfdistdir}/doc/latex/subfig/test2.tex
%doc %{_texmfdistdir}/doc/latex/subfig/test3.tex
%doc %{_texmfdistdir}/doc/latex/subfig/test4.tex
%doc %{_texmfdistdir}/doc/latex/subfig/test5.tex
%doc %{_texmfdistdir}/doc/latex/subfig/test6.tex
%doc %{_texmfdistdir}/doc/latex/subfig/test7.tex
#- source
%doc %{_texmfdistdir}/source/latex/subfig/Makefile
%doc %{_texmfdistdir}/source/latex/subfig/subfig.dtx
%doc %{_texmfdistdir}/source/latex/subfig/subfig.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19575 |21mr|texlive-subfigmat-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20308
# category Package
# catalog-ctan /macros/latex/contrib/subfigmat
# catalog-date 2010-11-03 11:56:13 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-subfigmat
Version:	1.0
Release:	7
Summary:	Automates layout when using the subfigure package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/subfigmat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfigmat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfigmat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines an array/matrix-type environment that is used with the
subfigure package to automate the placement of subfigures (or
tables or text). The subfigures are placed left-to-right, top-
to-bottom.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subfigmat/subfigmat.sty
%doc %{_texmfdistdir}/doc/latex/subfigmat/subfigmat-doc.pdf
%doc %{_texmfdistdir}/doc/latex/subfigmat/subfigmat-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19576 |21mr|texlive-subfigure-2.1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /obsolete/macros/latex/contrib/subfigure
# catalog-date 2010-04-20 11:43:44 +0200
# catalog-license lppl
# catalog-version 2.1.5
Name:		texlive-subfigure
Version:	2.1.5
Release:	7
Summary:	Deprecated: Figures divided into subfigures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/obsolete/macros/latex/contrib/subfigure
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfigure.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfigure.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfigure.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides support for the manipulation and reference of small or
'sub' figures and tables within a single figure or table
environment. It is convenient to use this package when your
subfigures are to be separately captioned, referenced, or are
to be included in the List-of-Figures. A new \subfigure command
is introduced which can be used inside a figure environment for
each subfigure. An optional first argument is used as the
caption for that subfigure. This package is now obsolescent:
new users should use subfig instead.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subfigure/subfigure.cfg
%{_texmfdistdir}/tex/latex/subfigure/subfigure.sty
%doc %{_texmfdistdir}/doc/latex/subfigure/README
%doc %{_texmfdistdir}/doc/latex/subfigure/ltxdoc.cfg
%doc %{_texmfdistdir}/doc/latex/subfigure/subfigure.pdf
%doc %{_texmfdistdir}/doc/latex/subfigure/test.tex
%doc %{_texmfdistdir}/doc/latex/subfigure/test2.tex
%doc %{_texmfdistdir}/doc/latex/subfigure/test3.tex
%doc %{_texmfdistdir}/doc/latex/subfigure/test4.tex
%doc %{_texmfdistdir}/doc/latex/subfigure/test5.tex
#- source
%doc %{_texmfdistdir}/source/latex/subfigure/Makefile
%doc %{_texmfdistdir}/source/latex/subfigure/subfigure.dtx
%doc %{_texmfdistdir}/source/latex/subfigure/subfigure.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19577 |21mr|texlive-subfiles-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26645
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-subfiles
Version:	1.2
Release:	2
Epoch:		1
Summary:	TeXLive subfiles package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfiles.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfiles.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfiles.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive subfiles package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subfiles/subfiles.cls
%{_texmfdistdir}/tex/latex/subfiles/subfiles.sty
%doc %{_texmfdistdir}/doc/latex/subfiles/README
%doc %{_texmfdistdir}/doc/latex/subfiles/subfiles.pdf
#- source
%doc %{_texmfdistdir}/source/latex/subfiles/subfiles.dtx
%doc %{_texmfdistdir}/source/latex/subfiles/subfiles.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19578 |21mr|texlive-subfloat-2.14-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/subfloat
# catalog-date 2012-05-06 01:06:11 +0200
# catalog-license lppl
# catalog-version 2.14
Name:		texlive-subfloat
Version:	2.14
Release:	12
Summary:	Sub-numbering for figures and tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/subfloat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfloat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/subfloat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package enables sub-numbering of floats (figures and
tables) similar to the subequations-environment of the amsmath
package. The subfloat package is not to be confused with the
subfig package which generates sub-figures within one normal
figure, and manages their placement; subfloat only affects
captions and numbering.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/subfloat/subfloat.sty
%doc %{_texmfdistdir}/doc/latex/subfloat/ChangeLog
%doc %{_texmfdistdir}/doc/latex/subfloat/README
%doc %{_texmfdistdir}/doc/latex/subfloat/install.sh
%doc %{_texmfdistdir}/doc/latex/subfloat/subfloat.pdf
#- source
%doc %{_texmfdistdir}/source/latex/subfloat/Makefile
%doc %{_texmfdistdir}/source/latex/subfloat/subfloat.dtx
%doc %{_texmfdistdir}/source/latex/subfloat/subfloat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19579 |21mr|texlive-substances-0.2a-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-substances
Version:	0.2a
Release:	3
Summary:	A database of chemicals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/substances
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/substances.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/substances.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means to create a database-like file
that contains data of various chemicals. These data may be
retrieved in the document; an index of the chemicals mentioned
in the document can be created..

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/substances
%doc %{_texmfdistdir}/doc/latex/substances

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19580 |21mr|texlive-substitutefont-0.1.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32066
# category Package
# catalog-ctan /macros/latex/contrib/substitutefont
# catalog-date 2013-11-04 19:57:46 +0100
# catalog-license lppl1.3
# catalog-version 0.1.4
Name:		texlive-substitutefont
Version:	0.1.4
Release:	10
Summary:	Easy font substitution
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/substitutefont
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/substitutefont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/substitutefont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Many free fonts are extensions of a basic font family with new
glyphs or shapes. Such fonts may be given a new name due to
licence reasons or to the creator's preference. The package
facilitates the task of setting up a font family as substitute
for another one, using its \substitutefont command.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/substitutefont/substitutefont.sty
%doc %{_texmfdistdir}/doc/latex/substitutefont/README
%doc %{_texmfdistdir}/doc/latex/substitutefont/cyrillic-lm-lgc.pdf
%doc %{_texmfdistdir}/doc/latex/substitutefont/cyrillic-lm-lgc.tex
%doc %{_texmfdistdir}/doc/latex/substitutefont/cyrillic-paratype.pdf
%doc %{_texmfdistdir}/doc/latex/substitutefont/cyrillic-paratype.tex
%doc %{_texmfdistdir}/doc/latex/substitutefont/greek-palatino-didot.pdf
%doc %{_texmfdistdir}/doc/latex/substitutefont/greek-palatino-didot.tex
%doc %{_texmfdistdir}/doc/latex/substitutefont/greek-times-artemisia.pdf
%doc %{_texmfdistdir}/doc/latex/substitutefont/greek-times-artemisia.tex
%doc %{_texmfdistdir}/doc/latex/substitutefont/substitutefont-doc.html
%doc %{_texmfdistdir}/doc/latex/substitutefont/substitutefont-test.pdf
%doc %{_texmfdistdir}/doc/latex/substitutefont/substitutefont-test.tex
%doc %{_texmfdistdir}/doc/latex/substitutefont/substitutefont.sty.html

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19581 |21mr|texlive-substr-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16117
# category Package
# catalog-ctan /macros/latex/contrib/substr
# catalog-date 2009-10-20 22:03:50 +0200
# catalog-license lppl1
# catalog-version 1.2
Name:		texlive-substr
Version:	1.2
Release:	7
Summary:	Deal with substrings in strings
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/substr
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/substr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/substr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The substr package provides commands to deal with substrings of
strings. Macros are provided to: - determine if one string is a
substring of another, - return the parts of a string before or
after a substring and - count the number of occurrences of a
substring.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/substr/substr.sty
%doc %{_texmfdistdir}/doc/latex/substr/ChangeLog
%doc %{_texmfdistdir}/doc/latex/substr/README
%doc %{_texmfdistdir}/doc/latex/substr/testsubstr.pdf
%doc %{_texmfdistdir}/doc/latex/substr/testsubstr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19582 |21mr|texlive-sudoku-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sudoku
# catalog-date 2007-03-12 11:51:09 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-sudoku
Version:	1.0
Release:	7
Summary:	Create sudoku grids
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sudoku
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sudoku.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sudoku.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sudoku.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The sudoku package provides an environment for typesetting
sudoku grids. A sudoku puzzle is a 9x9 grid where some of the
squares in the grid contain numbers. The rules are simple:
every column can only contain the digits 1 to 9, every row can
only contain the digits 1 to 9 and every 3x3 box can only
contain the digits 1 to 9. More information, including help and
example puzzles, can be found at sudoku.org.uk. This site also
has blank sudoku grids (or worksheets), but you will not need
to print them from there if you have this package installed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sudoku/sudoku.sty
%doc %{_texmfdistdir}/doc/latex/sudoku/CHANGES
%doc %{_texmfdistdir}/doc/latex/sudoku/README
%doc %{_texmfdistdir}/doc/latex/sudoku/sudoku.pdf
#- source
%doc %{_texmfdistdir}/source/latex/sudoku/sudoku.dtx
%doc %{_texmfdistdir}/source/latex/sudoku/sudoku.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19583 |21mr|texlive-sudokubundle-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/sudokubundle
# catalog-date 2007-03-12 11:51:09 +0100
# catalog-license lppl
# catalog-version 1.0a
Name:		texlive-sudokubundle
Version:	1.0a
Release:	7
Summary:	A set of sudoku-related packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/sudokubundle
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sudokubundle.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sudokubundle.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sudokubundle.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides three packages: - printsudoku, which
provides a command \sudoku whose argument is the name of a file
containing a puzzle specification; - solvesudoku, which
attempts to find a solution to the puzzle in the file named in
the argument; and - createsudoku, which uses the random package
to generate a puzzle according to a bunch of parameters that
the user sets via macros. The bundle comes with a set of ready-
prepared puzzle files.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sudokubundle/createsudoku.sty
%{_texmfdistdir}/tex/latex/sudokubundle/printsudoku.sty
%{_texmfdistdir}/tex/latex/sudokubundle/solvesudoku.sty
%doc %{_texmfdistdir}/doc/latex/sudokubundle/README
%doc %{_texmfdistdir}/doc/latex/sudokubundle/somesudoku.tex
%doc %{_texmfdistdir}/doc/latex/sudokubundle/sudokubundle.pdf
#- source
%doc %{_texmfdistdir}/source/latex/sudokubundle/sudokubundle.dtx
%doc %{_texmfdistdir}/source/latex/sudokubundle/sudokubundle.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19584 |21mr|texlive-suftesi-2.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26217
# category Package
# catalog-ctan /macros/latex/contrib/suftesi
# catalog-date 2012-04-23 11:23:52 +0200
# catalog-license lppl
# catalog-version 0.9
Name:		texlive-suftesi
Version:	2.9.1
Release:	1
Summary:	A document class for typesetting theses, books and articles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/suftesi
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/suftesi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/suftesi.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/suftesi.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is specifically designed for use with theses in the
humanities.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/suftesi
%doc %{_texmfdistdir}/doc/latex/suftesi
#- source
%doc %{_texmfdistdir}/source/latex/suftesi

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19585 |21mr|texlive-sugconf-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/conferences/sugconf
# catalog-date 2008-04-16 11:52:05 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-sugconf
Version:	20190228
Release:	1
Summary:	SAS(R) user group conference proceedings document class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/conferences/sugconf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sugconf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/sugconf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class may be used to typeset articles to be published in
the proceedings of SAS(R) User group conferences and workshops.
The layout produced by the class is based on that published by
SAS Institute (2006).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/sugconf/sugconf.cls
%doc %{_texmfdistdir}/doc/latex/sugconf/README
%doc %{_texmfdistdir}/doc/latex/sugconf/SUGI-paper-example.txt
%doc %{_texmfdistdir}/doc/latex/sugconf/article-example.bat
%doc %{_texmfdistdir}/doc/latex/sugconf/article-example.pdf
%doc %{_texmfdistdir}/doc/latex/sugconf/article-example.tex
%doc %{_texmfdistdir}/doc/latex/sugconf/sugconf-example.bat
%doc %{_texmfdistdir}/doc/latex/sugconf/sugconf-example.pdf
%doc %{_texmfdistdir}/doc/latex/sugconf/sugconf-example.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19586 |21mr|texlive-supertabular-4.1e-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/supertabular
# catalog-date 2009-10-10 00:51:28 +0200
# catalog-license lppl
# catalog-version 4.1a
Name:		texlive-supertabular
Version:	4.1e
Release:	2
Summary:	A multi-page tables package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/supertabular
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/supertabular.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/supertabular.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/supertabular.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Generally longtable is a little easier to use and more
flexible, but supertabular has its place, since it will work in
a few situations where longtable won't.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/supertabular/supertabular.sty
%doc %{_texmfdistdir}/doc/latex/supertabular/CATALOG
%doc %{_texmfdistdir}/doc/latex/supertabular/ChangeLog
%doc %{_texmfdistdir}/doc/latex/supertabular/MANIFEST
%doc %{_texmfdistdir}/doc/latex/supertabular/README
%doc %{_texmfdistdir}/doc/latex/supertabular/supertabular.pdf
#- source
%doc %{_texmfdistdir}/source/latex/supertabular/supertabular.dtx
%doc %{_texmfdistdir}/source/latex/supertabular/supertabular.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19587 |21mr|texlive-svg-2.02b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-svg
Version:	2.02b
Release:	1
Summary:	Include and extract SVG pictures using Inkscape
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/svg
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a command similar to \includegraphics
command of the graphicx package, which enables the inclusion of
SVG images using Inkscape. \includesvg[<options>]{<svg
filename>} A variety of options is available, including width,
height, and path of the SVG. The image is converted to an
appropriate format, using the \write18 mechanism to execute a
shell command, and the package also offers the means of saving
a PDF, EPS, or PNG copy of the image, at the same time. The
documentation shows an example using an SVG created from the
high energy particle physics analysis package ROOT.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/svg
%doc %{_texmfdistdir}/doc/latex/svg
#- source
%doc %{_texmfdistdir}/source/latex/svg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19588 |21mr|texlive-svgcolor-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/svgcolor
# catalog-date 2006-08-27 16:41:02 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-svgcolor
Version:	1.0
Release:	7
Summary:	Define SVG named colours
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/svgcolor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svgcolor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svgcolor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines the W3C Scalable Vector Graphics (SVG)
colour names for use with both the color and PSTricks packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/svgcolor/svgcolor.sty
%doc %{_texmfdistdir}/doc/latex/svgcolor/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19589 |21mr|texlive-svg-inkscape-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32199
# category Package
# catalog-ctan /info/svg-inkscape
# catalog-date 2013-11-21 13:05:24 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-svg-inkscape
Version:	20190228
Release:	1
Summary:	How to include an SVG image in LaTeX using Inkscape
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/svg-inkscape
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svg-inkscape.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svg-inkscape.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document demonstrates the use of SVG images in LaTeX
documents. Using the "PDF+LaTeX output" option of Inkscape, it
is possible to include SVG in documents, in which LaTeX
typesets the text. This results in uniform text style
throughout the document, including text in images; moreover,
LaTeX commands may be used in the image's text, providing such
things as mathematics and references. The document also
describes how to automate the conversion from SVG to PDF+LaTeX
using Inkscape.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/svg-inkscape/InkscapePDFLaTeX.pdf
%doc %{_texmfdistdir}/doc/latex/svg-inkscape/InkscapePDFLaTeX.tex
%doc %{_texmfdistdir}/doc/latex/svg-inkscape/README
%doc %{_texmfdistdir}/doc/latex/svg-inkscape/image-normal.pdf
%doc %{_texmfdistdir}/doc/latex/svg-inkscape/image.pdf
%doc %{_texmfdistdir}/doc/latex/svg-inkscape/image.pdf_tex
%doc %{_texmfdistdir}/doc/latex/svg-inkscape/image.svg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19590 |21mr|texlive-svn-43-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/svn
# catalog-date 2009-03-04 19:42:30 +0100
# catalog-license lppl1.3
# catalog-version 43
Name:		texlive-svn
Version:	43
Release:	7
Summary:	Typeset Subversion keywords
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/svn
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The svn package lets you typeset (in LaTeX) the value of
Subversion keywords. It is approximately an equivalent to the
rcs package, but for Subversion rather than CVS. Details of
Subversion (a replacement for CVS) is available from the
project's home site.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/svn/svn.sty
%doc %{_texmfdistdir}/doc/latex/svn/README
%doc %{_texmfdistdir}/doc/latex/svn/svn.pdf
#- source
%doc %{_texmfdistdir}/source/latex/svn/Makefile
%doc %{_texmfdistdir}/source/latex/svn/svn.dtx
%doc %{_texmfdistdir}/source/latex/svn/svn.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19591 |21mr|texlive-svninfo-0.7.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17554
# category Package
# catalog-ctan /macros/latex/contrib/svninfo
# catalog-date 2010-03-23 21:34:59 +0100
# catalog-license lppl1
# catalog-version 0.7.4
Name:		texlive-svninfo
Version:	0.7.4
Release:	7
Summary:	Typeset Subversion keywords
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/svninfo
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svninfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svninfo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svninfo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for incorporating the values of Subversion keywords
into typeset documents. Information about Subversion (a
replacement for CVS) is available from
http://subversion.tigris.org/.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/svninfo/svninfo.cfg
%{_texmfdistdir}/tex/latex/svninfo/svninfo.sty
%doc %{_texmfdistdir}/doc/latex/svninfo/README
%doc %{_texmfdistdir}/doc/latex/svninfo/svninfo.init
%doc %{_texmfdistdir}/doc/latex/svninfo/svninfo.pdf
#- source
%doc %{_texmfdistdir}/source/latex/svninfo/Makefile
%doc %{_texmfdistdir}/source/latex/svninfo/svninfo.dtx
%doc %{_texmfdistdir}/source/latex/svninfo/svninfo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19592 |21mr|texlive-svn-multi-2.4d-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /macros/latex/contrib/svn-multi
# catalog-date 2012-05-07 15:25:51 +0200
# catalog-license lppl
# catalog-version 2.4d
Name:		texlive-svn-multi
Version:	2.4d
Release:	9
Summary:	Subversion keywords in multi-file LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/svn-multi
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn-multi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn-multi.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn-multi.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-svn-multi.bin = %{EVRD}

%description
This package lets you typeset keywords of the version control
system Subversion inside your LaTeX files anywhere you like.
Unlike the otherwise similar package svn the use of multiple
files for one LaTeX document is well supported. The package
uses the author's filehook and currfile packages. The package
interacts with an external Perl script, to retrieve information
necessary for the required output.


#-----------------------------------------------------------------------
%files
%{_bindir}/svn-multi
%{_texmfdistdir}/scripts/svn-multi/svn-multi.pl
%{_texmfdistdir}/tex/latex/svn-multi/svn-multi.sty
%{_texmfdistdir}/tex/latex/svn-multi/svnkw.sty
%doc %{_texmfdistdir}/doc/latex/svn-multi/README
%doc %{_texmfdistdir}/doc/latex/svn-multi/example_chap1.tex
%doc %{_texmfdistdir}/doc/latex/svn-multi/example_main.tex
%doc %{_texmfdistdir}/doc/latex/svn-multi/group_example.tex
%doc %{_texmfdistdir}/doc/latex/svn-multi/svn-multi.pdf
%doc %{_texmfdistdir}/doc/support/svn-multi/svn-multi-pl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/svn-multi/svn-multi-pl.dtx
%doc %{_texmfdistdir}/source/latex/svn-multi/svn-multi.dtx
%doc %{_texmfdistdir}/source/latex/svn-multi/svn-multi.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/svn-multi/svn-multi.pl svn-multi
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19593 |21mr|texlive-svn-prov-3.1862-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18017
# category Package
# catalog-ctan /macros/latex/contrib/svn-prov
# catalog-date 2010-04-25 23:29:42 +0200
# catalog-license lppl
# catalog-version 3.1862
Name:		texlive-svn-prov
Version:	3.1862
Release:	7
Summary:	Subversion variants of \Provides... macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/svn-prov
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn-prov.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn-prov.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/svn-prov.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package introduces Subversion variants of the standard
LaTeX macros \ProvidesPackage, \ProvidesClass and \ProvidesFile
where the file name and date is extracted from Subversion Id
keywords. The file name may also be given explicitly as an
optional argument.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/svn-prov/svn-prov.sty
%doc %{_texmfdistdir}/doc/latex/svn-prov/svn-prov.pdf
#- source
%doc %{_texmfdistdir}/source/latex/svn-prov/Makefile
%doc %{_texmfdistdir}/source/latex/svn-prov/svn-prov.dtx
%doc %{_texmfdistdir}/source/latex/svn-prov/svn-prov.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19594 |21mr|texlive-swebib-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-swebib
Version:	20190228
Release:	1
Summary:	Swedish bibliography styles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/swebib
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/swebib.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/swebib.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle contains Swedish versions of the standard
bibliography styles, and of the style plainnat. The styles
should be funtionally equivalent to the corresponding original
styles, apart from the Swedish translations. The styles do not
implement Swedish collation.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/swebib
%doc %{_texmfdistdir}/doc/latex/swebib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19595 |21mr|texlive-swimgraf-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-swimgraf
Version:	20190228
Release:	1
Summary:	Graphical/textual representations of swimming performances
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/swimgraf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/swimgraf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/swimgraf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides two macros that produce representations of
a swimmer's performances. The user records data in a text file
and specifies as arguments of the macros the date range of
interest. The macros extract the relevant information from the
file and process it: \swimgraph produces a graph of the times
in a single swimming event (specified as an argument), plotting
long course and short course times in separate lines. Records
and qualifying times, stored in text files, may optionally be
included on the graph. \swimtext produces a written record of
the times in all events. Files of current world and Canadian
records are included. The package requires the PSTricks and
keyval packages. For attractive output it also requires a
colour output device.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/swimgraf
%doc %{_texmfdistdir}/doc/latex/swimgraf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19596 |21mr|texlive-symbol-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31835
# category Package
# catalog-ctan /fonts/urw/base35
# catalog-date 2012-06-06 22:57:48 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-symbol
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/symbol.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/symbol/config.usy
%{_texmfdistdir}/fonts/afm/adobe/symbol/psyb.afm
%{_texmfdistdir}/fonts/afm/adobe/symbol/psyr.afm
%{_texmfdistdir}/fonts/afm/urw/symbol/usyr.afm
%{_texmfdistdir}/fonts/map/dvips/symbol/usy.map
%{_texmfdistdir}/fonts/tfm/adobe/symbol/psyr.tfm
%{_texmfdistdir}/fonts/tfm/monotype/symbol/msyr.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/symbol/usyr.tfm
%{_texmfdistdir}/fonts/type1/urw/symbol/usyr.pfb
%{_texmfdistdir}/fonts/type1/urw/symbol/usyr.pfm
%{_texmfdistdir}/tex/latex/symbol/uusy.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19597 |21mr|texlive-synctex-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-synctex
Version:	20190327
Release:	1
Summary:	TeXLive synctex package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/synctex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/synctex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-synctex.bin

%description
TeXLive synctex package.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/synctex.1*
%doc %{_texmfdistdir}/doc/man/man1/synctex.man1.pdf
%doc %{_mandir}/man5/synctex.5*
%doc %{_texmfdistdir}/doc/man/man5/synctex.man5.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
mv %{buildroot}%{_texmfdistdir}/doc/man/man5/*.5 %{buildroot}%{_mandir}/man5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19598 |21mr|texlive-syntax-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/syntax
# catalog-date 2009-10-01 19:53:35 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-syntax
Version:	20190228
Release:	1
Summary:	Creation of syntax diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/syntax
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/syntax.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/syntax.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Create syntax diagrams using special environments and commands
to represent the diagram structure.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/syntax/syntax.tex
%doc %{_texmfdistdir}/doc/latex/syntax/README
%doc %{_texmfdistdir}/doc/latex/syntax/syntaxintro.pdf
%doc %{_texmfdistdir}/doc/latex/syntax/syntaxintro.tex
%doc %{_texmfdistdir}/doc/latex/syntax/syntaxtest.pdf
%doc %{_texmfdistdir}/doc/latex/syntax/syntaxtest.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19599 |21mr|texlive-syntrace-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/syntrace
# catalog-date 2007-03-13 15:26:21 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-syntrace
Version:	1.1
Release:	7
Summary:	Labels for tracing in a syntax tree
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/syntrace
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/syntrace.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/syntrace.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/syntrace.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package adds support for for traces in trees created using
either the synttree or the qtree package. The package provides
two commands (\traceLabel and \traceReference) to set and use a
trace.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/syntrace/syntrace.sty
%doc %{_texmfdistdir}/doc/latex/syntrace/README
%doc %{_texmfdistdir}/doc/latex/syntrace/syntrace.pdf
#- source
%doc %{_texmfdistdir}/source/latex/syntrace/syntrace.dtx
%doc %{_texmfdistdir}/source/latex/syntrace/syntrace.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19600 |21mr|texlive-synttree-1.4.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16252
# category Package
# catalog-ctan /macros/latex/contrib/synttree
# catalog-date 2009-11-30 09:23:31 +0100
# catalog-license lppl
# catalog-version 1.4.2
Name:		texlive-synttree
Version:	1.4.2
Release:	7
Summary:	Typeset syntactic trees
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/synttree
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/synttree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/synttree.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/synttree.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package to typeset syntactic trees such as those used in
Chomsky's Generative grammar, based on a description of the
structure of the tree.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/synttree/synttree.sty
%doc %{_texmfdistdir}/doc/latex/synttree/README
%doc %{_texmfdistdir}/doc/latex/synttree/synttree.pdf
#- source
%doc %{_texmfdistdir}/source/latex/synttree/synttree.dtx
%doc %{_texmfdistdir}/source/latex/synttree/synttree.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19601 |21mr|texlive-t2-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/t2
# catalog-date 2012-06-05 14:57:36 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-t2
Version:	20190228
Release:	1
Summary:	Support for using T2 encoding
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/t2
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/t2.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/t2.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
The T2 bundle provides a variety of separate support functions,
for using Cyrillic characters in LaTeX: - the mathtext package,
for using Cyrillic letters 'transparently' in formulae - the
citehack package, for using Cyrillic (or indeed any non-ascii)
characters in citation keys; - support for Cyrillic in BibTeX;
- support for Cyrillic in Makeindex; and - various items of
font support.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/t2/t2a-mod1.enc
%{_texmfdistdir}/fonts/enc/t2/t2a-mod2.enc
%{_texmfdistdir}/fonts/enc/t2/t2a.enc
%{_texmfdistdir}/fonts/enc/t2/t2b.enc
%{_texmfdistdir}/fonts/enc/t2/t2c.enc
%{_texmfdistdir}/fonts/enc/t2/x2.enc
%{_texmfdistdir}/tex/generic/t2/cyrfinst/6r.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/README
%{_texmfdistdir}/tex/generic/t2/cyrfinst/cyrillic.mtx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcyc.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcyci.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcycij.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcycj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcyctt.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcyi.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcyij.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcyitt.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcyj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/lcytt.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/ot2c.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/ot2cj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/ot2i.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/ot2ij.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/ot2j.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2ac.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2acj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2ai.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2aij.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2aj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2bc.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2bcj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2bi.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2bij.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2bj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2cc.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2ccj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2ci.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2cij.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/t2cj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/x2c.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/x2cj.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/x2i.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/x2ij.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/derivatives/x2j.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/etc/alias-cmc.tex
%{_texmfdistdir}/tex/generic/t2/cyrfinst/etc/alias-wncy.tex
%{_texmfdistdir}/tex/generic/t2/cyrfinst/etc/cyralias.tex
%{_texmfdistdir}/tex/generic/t2/cyrfinst/etc/fnstcorr.tex
%{_texmfdistdir}/tex/generic/t2/cyrfinst/etc/showenc
%{_texmfdistdir}/tex/generic/t2/cyrfinst/lcy-hi.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/lcy.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/ot2.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/t2a.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/t2b.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/t2c.etx
%{_texmfdistdir}/tex/generic/t2/cyrfinst/x2.etx
%{_texmfdistdir}/tex/latex/t2/citehack.sty
%{_texmfdistdir}/tex/latex/t2/mathtext.sty
%{_texmfdistdir}/tex/latex/t2/misccorr.sty
%_texmf_fmtutil_d/t2
%doc %{_texmfdistdir}/doc/generic/t2/Makefile
%doc %{_texmfdistdir}/doc/generic/t2/OT2uni.map
%doc %{_texmfdistdir}/doc/generic/t2/README
%doc %{_texmfdistdir}/doc/generic/t2/T2Auni.map
%doc %{_texmfdistdir}/doc/generic/t2/T2Buni.map
%doc %{_texmfdistdir}/doc/generic/t2/T2Cuni.map
%doc %{_texmfdistdir}/doc/generic/t2/X2uni.map
%doc %{_texmfdistdir}/doc/generic/t2/amscyr.txt
%doc %{_texmfdistdir}/doc/generic/t2/broken1.txt
%doc %{_texmfdistdir}/doc/generic/t2/broken2.txt
%doc %{_texmfdistdir}/doc/generic/t2/cyrcset7.txt
%doc %{_texmfdistdir}/doc/generic/t2/cyrcset8.txt
%doc %{_texmfdistdir}/doc/generic/t2/cyrcsets.ind
%doc %{_texmfdistdir}/doc/generic/t2/etc/amsppt.diff
%doc %{_texmfdistdir}/doc/generic/t2/etc/mathtext.dtx
%doc %{_texmfdistdir}/doc/generic/t2/etc/mathtext.ins
%doc %{_texmfdistdir}/doc/generic/t2/etc/rubibtex/README
%doc %{_texmfdistdir}/doc/generic/t2/etc/rubibtex/rubibtex
%doc %{_texmfdistdir}/doc/generic/t2/etc/rubibtex/rubibtex.bat
%doc %{_texmfdistdir}/doc/generic/t2/etc/rubibtex/rubibtex.old
%doc %{_texmfdistdir}/doc/generic/t2/etc/rubibtex/rubibtex.sed
%doc %{_texmfdistdir}/doc/generic/t2/etc/ruinpenc
%doc %{_texmfdistdir}/doc/generic/t2/etc/rumkidx/README
%doc %{_texmfdistdir}/doc/generic/t2/etc/rumkidx/rumakeindex
%doc %{_texmfdistdir}/doc/generic/t2/etc/rumkidx/rumkidx1.sed
%doc %{_texmfdistdir}/doc/generic/t2/etc/rumkidx/rumkidx2.sed
%doc %{_texmfdistdir}/doc/generic/t2/etc/rumkidx/rumkidx3.sed
%doc %{_texmfdistdir}/doc/generic/t2/etc/rumkidx/rumkidxd.bat
%doc %{_texmfdistdir}/doc/generic/t2/etc/rumkidx/rumkidxw.bat
%doc %{_texmfdistdir}/doc/generic/t2/etc/t2filter.c
%doc %{_texmfdistdir}/doc/generic/t2/etc/utf-8/test-utf8.tex
%doc %{_texmfdistdir}/doc/generic/t2/etc/utf-8/utf-8.def
%doc %{_texmfdistdir}/doc/generic/t2/etc/utf-8/utfcyr.def
%doc %{_texmfdistdir}/doc/generic/t2/etc/utf-8/utflat.def
%doc %{_texmfdistdir}/doc/generic/t2/examples/example1.tex
%doc %{_texmfdistdir}/doc/generic/t2/examples/example2.tex
%doc %{_texmfdistdir}/doc/generic/t2/examples/example3.tex
%doc %{_texmfdistdir}/doc/generic/t2/examples/example4.tex
%doc %{_texmfdistdir}/doc/generic/t2/examples/example5.tex
%doc %{_texmfdistdir}/doc/generic/t2/make-enc.pl
%doc %{_texmfdistdir}/doc/generic/t2/mkencs.sh
%doc %{_texmfdistdir}/doc/generic/t2/mtcyr.txt
%doc %{_texmfdistdir}/doc/generic/t2/t2cyr.txt
%doc %{_texmfdistdir}/doc/generic/t2/t2lat.txt
%doc %{_texmfdistdir}/doc/generic/t2/urwcyr.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/t2 <<EOF
#
# from t2:
#! cyramstex pdftex language.dat -translate-file=cp227.tcx *cyramstx.ini
#! cyrtex pdftex language.dat -translate-file=cp227.tcx *cyrtex.ini
#! cyrtexinfo pdftex language.dat -translate-file=cp227.tcx *cyrtxinf.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19602 |21mr|texlive-Tabbing-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-Tabbing
Version:	20190228
Release:	1
Summary:	Tabbing with accented letters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/Tabbing
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/Tabbing.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/Tabbing.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/Tabbing.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
By default, some of the tabbing environment's commands clash
with default accent commands; LaTeX provides the odd commands
\a', etc., to deal with the clash. The package offers a variant
of the tabbing environment which does not create this
difficulty, so that users need not learn two sets of accent
commands.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/Tabbing/Tabbing.sty
%doc %{_texmfdistdir}/doc/latex/Tabbing/00readme
%doc %{_texmfdistdir}/doc/latex/Tabbing/Tabbing.pdf
#- source
%doc %{_texmfdistdir}/source/latex/Tabbing/Tabbing.dtx
%doc %{_texmfdistdir}/source/latex/Tabbing/Tabbing.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19603 |21mr|texlive-tabfigures-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25202
# category Package
# catalog-ctan /macros/latex/contrib/tabfigures
# catalog-date 2012-01-25 23:45:22 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-tabfigures
Version:	1.1
Release:	6
Summary:	Maintain vertical alignment of figures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabfigures
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabfigures.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabfigures.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabfigures.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Knuth designed his original fonts with tabular figures (figures
whose width is uniform); this makes some layout problems rather
simple. In more recent times, fonts (such as Minion Pro), which
offer proportionally spaced figures, are increasingly being
used. The package provides mechanisms whereby such proportional
figures may still be aligned in tabular style (for example, in
the table of contents).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabfigures/tabfigures.sty
%doc %{_texmfdistdir}/doc/latex/tabfigures/README
%doc %{_texmfdistdir}/doc/latex/tabfigures/tabfigures.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tabfigures/tabfigures.dtx
%doc %{_texmfdistdir}/source/latex/tabfigures/tabfigures.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19604 |21mr|texlive-tableaux-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/tableaux
# catalog-date 2008-11-10 21:50:32 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-tableaux
Version:	20190228
Release:	1
Summary:	Construct tables of signs and variations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tableaux
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tableaux.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tableaux.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package uses PStricks; the user may define the width of the
table, the number of lines and the height of each line.
Placement of labels within the boxes may be absolute, or as a
percentage of the width; various other controls are available.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tableaux/minimum.sty
%{_texmfdistdir}/tex/latex/tableaux/tableau.sty
%doc %{_texmfdistdir}/doc/latex/tableaux/exemples.pdf
%doc %{_texmfdistdir}/doc/latex/tableaux/exemples.tex
%doc %{_texmfdistdir}/doc/latex/tableaux/tableau.pdf
%doc %{_texmfdistdir}/doc/latex/tableaux/tableau.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19605 |21mr|texlive-tablefootnote-1.1c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32804
# category Package
# catalog-ctan /macros/latex/contrib/tablefootnote
# catalog-date 2014-01-21 19:24:06 +0100
# catalog-license lppl1.3
# catalog-version 1.1b
Name:		texlive-tablefootnote
Version:	1.1c
Release:	2
Summary:	Permit footnotes in tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tablefootnote
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tablefootnote.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tablefootnote.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tablefootnote.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the command \tablefootnote to be used in a
table or sidewaystable environment, where \footnote will not
work (and when using \footnotemark and \footnotetext, and
adjusting the counter as necessary, is too much work).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tablefootnote/tablefootnote.sty
%doc %{_texmfdistdir}/doc/latex/tablefootnote/README
%doc %{_texmfdistdir}/doc/latex/tablefootnote/tablefootnote-example.pdf
%doc %{_texmfdistdir}/doc/latex/tablefootnote/tablefootnote-example.tex
%doc %{_texmfdistdir}/doc/latex/tablefootnote/tablefootnote.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tablefootnote/tablefootnote.drv
%doc %{_texmfdistdir}/source/latex/tablefootnote/tablefootnote.dtx
%doc %{_texmfdistdir}/source/latex/tablefootnote/tablefootnote.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19606 |21mr|texlive-tableof-1.4b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tableof
Version:	1.4b
Release:	1
Summary:	Tagging tables of contents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tableof
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tableof.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tableof.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tableof.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the commands to flag chapters or sections
(or anything else destined to become a TOC line). The command
\nexttocwithtags{req1,req2,...}{excl1,excl2,...} specifies
which tags are to be required and which ones are to be excluded
by the next \tableofcontents (or equivalent) command. In a
document that uses a class where \tableofcontents may only be
used once, the command
\tableoftaggedcontents{req1,req2,...}{excl1,excl2,...} may be
used to provide several tables.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tableof
%doc %{_texmfdistdir}/doc/latex/tableof
#- source
%doc %{_texmfdistdir}/source/latex/tableof

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19607 |21mr|texlive-tablists-0.0e-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/tablists
# catalog-date 2009-08-04 22:17:36 +0200
# catalog-license lppl
# catalog-version 0.0e
Name:		texlive-tablists
Version:	0.0e
Release:	7
Summary:	Tabulated lists of short items
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tablists
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tablists.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tablists.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tablists.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package offers environments and commands for one-level and
two-level lists of short items (e.g., exercises in textbooks).
The environments support optional arguments of item numbering
similar to the enumerate or paralist packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tablists/tablists.sty
%doc %{_texmfdistdir}/doc/latex/tablists/README
%doc %{_texmfdistdir}/doc/latex/tablists/tablists-rus.pdf
%doc %{_texmfdistdir}/doc/latex/tablists/tablists-rus.tex
%doc %{_texmfdistdir}/doc/latex/tablists/tablists.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tablists/tablists.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19608 |21mr|texlive-tabls-3.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17255
# category Package
# catalog-ctan /macros/latex/contrib/tabls
# catalog-date 2010-03-09 13:13:30 +0100
# catalog-license other-free
# catalog-version 3.5
Name:		texlive-tabls
Version:	3.5
Release:	7
Summary:	Better vertical spacing in tables and arrays
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabls
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabls.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabls.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Modifies LaTeX's array and tabular environments to keep text
from touching other text or hlines above or below. Several new
parameters are defined and some standard macros are re-defined.
The package slows down compilation of tables, since each entry
is boxed twice.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabls/tabls.sty
%doc %{_texmfdistdir}/doc/latex/tabls/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/tabls/tabls.pdf
%doc %{_texmfdistdir}/doc/latex/tabls/tabls.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19609 |21mr|texlive-tabriz-thesis-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29421
# category Package
# catalog-ctan /macros/latex/contrib/tabriz-thesis
# catalog-date 2013-03-17 16:41:59 +0100
# catalog-license lppl1.3
# catalog-version 1.1
Name:		texlive-tabriz-thesis
Version:	1.1
Release:	10
Summary:	A template for the University of Tabriz
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabriz-thesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabriz-thesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabriz-thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a document class for typesetting theses and
dissertations at the University of Tabriz.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabriz-thesis/tabriz-thesis.cls
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/README
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/appendix1.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/chapter1.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/chapter2.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/chapter3.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/dicen2fa.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/dicfa2en.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/en-title.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/fa-title.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/logo.jpg
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/references.tex
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/tabriz-thesis.pdf
%doc %{_texmfdistdir}/doc/latex/tabriz-thesis/tabriz-thesis.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19610 |21mr|texlive-tabstackengine-2.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tabstackengine
Epoch:		1
Version:	2.10
Release:	2
Summary:	"Tabbing" front-end to stackengine
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabstackengine
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabstackengine.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabstackengine.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a front end to the stackengine package, to
allow tabbed stacking. In most cases, an existing stackengine
command may be prepended with the word "tabbed", "align" or
"tabular" to create a new tabbed version of a stacking macro.
In addition, hooks in the package's parser, that tabbed strings
of data may be parsed, extracted and reconstituted (not
requiring use of any stacking constructions).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabstackengine
%doc %{_texmfdistdir}/doc/latex/tabstackengine

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19611 |21mr|texlive-tabto-ltx-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30710
# category Package
# catalog-ctan /macros/latex/contrib/tabto
# catalog-date 2013-05-25 17:03:59 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-tabto-ltx
Version:	1.4
Release:	1
Summary:	"Tab" to a measured position in the line
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabto
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabto-ltx.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabto-ltx.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
\tabto{<length>} moves the typesetting position to <length>
from the left margin of the paragraph. If the typesetting
position is already further along, \tabto starts a new line;
the command \tabto* will move position backwards if necessary,
so that previous text may be overwritten. The command
\TabPositions may be used to define a set of tabbing positions,
after which the command \tab advances typesetting position to
the next defined 'tab stop'.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabto-ltx/tabto.sty
%doc %{_texmfdistdir}/doc/latex/tabto-ltx/tabto-doc.pdf
%doc %{_texmfdistdir}/doc/latex/tabto-ltx/tabto-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19612 |21mr|texlive-tabu-2.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21534
# category Package
# catalog-ctan /macros/latex/contrib/tabu
# catalog-date 2011-02-27 12:23:54 +0100
# catalog-license lppl1.3
# catalog-version 2.8
Name:		texlive-tabu
Version:	2.8
Release:	7
Summary:	Flexible LaTeX tabulars
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabu
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabu.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabu.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabu.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an environment, tabu, which will make any
sort of tabular (that doesn't need to split across pages), and
an environment longtabu which provides the facilities of tabu
in a modified longtable environment. (Note that this latter
offers an enhancement of ltxtable.) The package requires the
array package, and needs e-TeX to run (since array.sty is
present in every conforming distribution of LaTeX, and since
every publicly available LaTeX format is built using e-TeX, the
requirements are provided by default on any reasonable system).
The package also requires xcolor for coloured rules in tables,
and colortbl for coloured cells. The longtabu environment
further requires that longtable be loaded. The package itself
does not load any of these packages for the user. The tabu
environment may be used in place of tabular, tabular* and
tabularx environments, as well as the array environment in
maths mode. It overloads tabularx's X-column specification,
allowing a width specification, alignment (l, r, c and j) and
column type indication (p, m and b). \begin{tabu} to <dimen>
specifies a target width, and \begin{tabu} spread <dimen>
enlarges the environment's "natural" width.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabu/tabu.sty
%doc %{_texmfdistdir}/doc/latex/tabu/README
%doc %{_texmfdistdir}/doc/latex/tabu/tabu.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tabu/tabu.drv
%doc %{_texmfdistdir}/source/latex/tabu/tabu.dtx
%doc %{_texmfdistdir}/source/latex/tabu/tabu.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19613 |21mr|texlive-tabularborder-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17885
# category Package
# catalog-ctan /macros/latex/contrib/tabularborder
# catalog-date 2010-04-29 12:40:52 +0200
# catalog-license lppl1.2
# catalog-version 1.0a
Name:		texlive-tabularborder
Version:	1.0a
Release:	7
Summary:	Correct index entries for chemical compounds
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabularborder
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabularborder.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabularborder.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabularborder.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The tabular environment is changed so that the outer
\tabcolseps are compensated and a \hline has the same length as
the text. No @{} is needed.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabularborder/tabularborder.sty
%doc %{_texmfdistdir}/doc/latex/tabularborder/tabularborder.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tabularborder/tabularborder.dtx
%doc %{_texmfdistdir}/source/latex/tabularborder/tabularborder.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19614 |21mr|texlive-tabularcalc-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/tabularcalc
# catalog-date 2009-04-22 00:12:47 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-tabularcalc
Version:	0.2
Release:	7
Summary:	Calculate formulas in a tabular environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabularcalc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabularcalc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabularcalc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Given a list of numbers and one (or more) formulas, the package
offers an easy syntax to build a table of values, i.e., a
tabular in which the first row contains the list of numbers,
and the other rows contain the calculated values of the
formulas for each number of the list. The table may be built
either horizontally or vertically and is fully customizable.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabularcalc/tabularcalc.sty
%doc %{_texmfdistdir}/doc/latex/tabularcalc/README
%doc %{_texmfdistdir}/doc/latex/tabularcalc/tabularcalc_doc_en.pdf
%doc %{_texmfdistdir}/doc/latex/tabularcalc/tabularcalc_doc_en.tex
%doc %{_texmfdistdir}/doc/latex/tabularcalc/tabularcalc_doc_fr.pdf
%doc %{_texmfdistdir}/doc/latex/tabularcalc/tabularcalc_doc_fr.tex
%doc %{_texmfdistdir}/doc/latex/tabularcalc/tabularcalc_doc_vn.pdf
%doc %{_texmfdistdir}/doc/latex/tabularcalc/tabularcalc_doc_vn.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19615 |21mr|texlive-tabularew-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/tabularew
# catalog-date 2009-11-10 00:58:07 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-tabularew
Version:	0.1
Release:	7
Summary:	A variation on the tabular environment
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabularew
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabularew.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabularew.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabularew.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a modification of the tabular environment,
which deals with the problem of column heads that are
significantly wider than the body of the column.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabularew/tabularew.sty
%doc %{_texmfdistdir}/doc/latex/tabularew/README
%doc %{_texmfdistdir}/doc/latex/tabularew/tabularew.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tabularew/tabularew.dtx
%doc %{_texmfdistdir}/source/latex/tabularew/tabularew.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19616 |21mr|texlive-tabulars-e-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21191
# category Package
# catalog-ctan /info/examples/tabulars-e
# catalog-date 2011-01-24 16:14:35 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-tabulars-e
Version:	1.0
Release:	6
Summary:	Examples from the book "Typesetting tables with LaTeX"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/tabulars-e
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabulars-e.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabulars-e.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The bundle presents the examples of the book "Typesetting
tables with LaTeX" (ISBN 978-1-906860-25-7), as standalone
documents.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-1.ltxps
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-13.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-14.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-15.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-16.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-17.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-18.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-19.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-1.ltxps
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/01-02-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-13.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-14.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-15.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-16.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-17.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-18.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-11.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-12.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-13.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-14.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-15.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-03-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-11.ltx2crop
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-04-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-11.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-05-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-06-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-06-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-06-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-06-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-06-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-07-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-07-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-07-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-07-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-07-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-08-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-08-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-08-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-08-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-08-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-08-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-08-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-08-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-09-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-09-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-09-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-11.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-12.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-13.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-11-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-12-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-13-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-13-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-13-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-13-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-11.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-12.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-13.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-14.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-15.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-14-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-15-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-15-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-15-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-16-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-16-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-16-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-17-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-17-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-17-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-17-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-17-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-18-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-18-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-18-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-18-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-18-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-19-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-19-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-20-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-20-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-20-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-20-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-21-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-21-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-21-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-21-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-22-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-22-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-22-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-22-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-23-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-23-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-23-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-23-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-24-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-24-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-24-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-24-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-25-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-26-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-27-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-27-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-27-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-27-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-28-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-28-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-28-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-28-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/02-29-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-11.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-12.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-13.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-01-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-02-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-02-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-02-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-02-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-02-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-02-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-03-3.ltxb
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-03-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-03-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/03-03-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-10.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-11.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-12.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-13.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-14.ltx1
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-15.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-3.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-5.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-6.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-7.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-8.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-01-9.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-02-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-02-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-03-3.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-04-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-04-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-04-3.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-04-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-04-5.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-05-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-05-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-05-3.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-05-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-05-5.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-05-6.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-05-7.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-05-8.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-3.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-5.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-6.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-7.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-8.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/04-06-9.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-01-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-01-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-01-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-01-4.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-01-5.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-02-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-03-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-03-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-03-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-04-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-04-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-05-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-05-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-06-1.ltxE
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-06-2.ltxE
%doc %{_texmfdistdir}/doc/latex/tabulars-e/05-06-3.ltxE
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-1.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-10.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-11.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-12.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-13.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-14.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-15.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-16.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-17.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-18.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-19.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-2.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-20.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-21.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-22.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-23.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-24.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-25.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-26.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-27.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-28.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-29.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-3.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-30.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-31.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-32.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-33.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-34.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-35.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-36.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-37.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-38.ltxps
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-39.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-4.ltxps
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-40.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-41.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-42.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-43.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-44.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-45.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-46.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-5.ltxps
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-6.ltxps
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-7.ltxps
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-8.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/06-00-9.ltx
%doc %{_texmfdistdir}/doc/latex/tabulars-e/07-02-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/07-02-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/07-03-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/07-03-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tabulars-e/README
%doc %{_texmfdistdir}/doc/latex/tabulars-e/din8.eps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19617 |21mr|texlive-tabulary-0.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/tabulary
# catalog-date 2009-10-10 00:51:28 +0200
# catalog-license lppl
# catalog-version 0.9
Name:		texlive-tabulary
Version:	0.10
Release:	3
Summary:	Tabular with variable width columns balanced
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabulary
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabulary.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabulary.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabulary.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a tabular*-like tabulary environment,
taking a 'total width' argument as well as the column
specifications. It then defines column types L, C, R and J for
variable width columns (\raggedright', \centering, \raggedleft,
and normally justified). In contrast to tabularx's X columns,
the width of each column is weighted according to the natural
width of the widest cell in the column.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tabulary/tabulary.sty
%doc %{_texmfdistdir}/doc/latex/tabulary/README
%doc %{_texmfdistdir}/doc/latex/tabulary/tabulary.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tabulary/tabulary.dtx
%doc %{_texmfdistdir}/source/latex/tabulary/tabulary.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19618 |21mr|texlive-tabvar-1.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25665
# category Package
# catalog-ctan /macros/latex/contrib/tabvar
# catalog-date 2012-03-16 09:54:35 +0100
# catalog-license lppl1.3
# catalog-version 1.7
Name:		texlive-tabvar
Version:	1.7
Release:	6
Summary:	Typesetting tables showing variations of functions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tabvar
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabvar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabvar.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tabvar.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This LaTeX package is meant to ease the typesetting of tables
showing variations of functions as they are used in France.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/tabvar/tabvar.afm
%{_texmfdistdir}/fonts/map/dvips/tabvar/tabvar.map
%{_texmfdistdir}/fonts/tfm/public/tabvar/tabvar.tfm
%{_texmfdistdir}/fonts/type1/public/tabvar/tabvar.pfb
%{_texmfdistdir}/metapost/tabvar/tabvar.mp
%{_texmfdistdir}/tex/latex/tabvar/tabvar.1
%{_texmfdistdir}/tex/latex/tabvar/tabvar.2
%{_texmfdistdir}/tex/latex/tabvar/tabvar.3
%{_texmfdistdir}/tex/latex/tabvar/tabvar.cfg
%{_texmfdistdir}/tex/latex/tabvar/tabvar.sty
%doc %{_texmfdistdir}/doc/latex/tabvar/README
%doc %{_texmfdistdir}/doc/latex/tabvar/demo.pdf
%doc %{_texmfdistdir}/doc/latex/tabvar/demo.tex
%doc %{_texmfdistdir}/doc/latex/tabvar/tabvar.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tabvar/tabvar.dtx
%doc %{_texmfdistdir}/source/latex/tabvar/tabvar.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts metapost tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19619 |21mr|texlive-tagging-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23761
# category Package
# catalog-ctan /macros/latex/contrib/tagging
# catalog-date 2011-08-29 00:41:24 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-tagging
Version:	20190228
Release:	1
Summary:	Document configuration with tags
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tagging
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tagging.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tagging.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to generate multiple documents from
a single source, by marking pieces of the document with tags
and specifying which marked pieces to include or exclude.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tagging/tagging.sty
%doc %{_texmfdistdir}/doc/latex/tagging/README
%doc %{_texmfdistdir}/doc/latex/tagging/tagging.pdf
%doc %{_texmfdistdir}/doc/latex/tagging/tagging.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19620 |21mr|texlive-talk-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/talk
# catalog-date 2007-08-14 14:14:54 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-talk
Version:	1.1
Release:	7
Summary:	A LaTeX class for presentations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/talk
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/talk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/talk.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/talk.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The talk document class allows you to create slides for screen
presentations or printing on transparencies. It also allows you
to print personal notes for your talk. You can create overlays
and display structure information (current section /
subsection, table of contents) on your slides. The main feature
that distinguishes talk from other presentation classes like
beamer or prosper is that it allows the user to define an
arbitrary number of slide styles and switch between these
styles from slide to slide. This way the slide layout can be
adapted to the slide content. For example, the title or
contents page of a talk can be given a slightly different
layout than the other slides. The talk class makes no
restrictions on the slide design whatsoever. The entire look
and feel of the presentation can be defined by the user. The
style definitions should be put in a separate sty file.
Currently the package comes with only one set of pre-defined
slide styles (greybars.sty). Contributions from people who are
artistically more gifted than the author are more than
welcome!.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/talk/sidebars.sty
%{_texmfdistdir}/tex/latex/talk/talk.cls
%doc %{_texmfdistdir}/doc/latex/talk/README
%doc %{_texmfdistdir}/doc/latex/talk/example.tex
%doc %{_texmfdistdir}/doc/latex/talk/talkdoc.pdf
%doc %{_texmfdistdir}/doc/latex/talk/talkdoc.tex
#- source
%doc %{_texmfdistdir}/source/latex/talk/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19621 |21mr|texlive-tamefloats-0.42-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tamefloats
Version:	0.42
Release:	7
Summary:	Experimentally use \holdinginserts with LaTeX floats
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tamefloats
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tamefloats.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tamefloats.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX's figures, tables, and \marginpars are dangerous for
footnotes (and probably also \enlargethispage). Here is a
proposal (a 'patch' package) to help, by using \holdinginserts
in a simple way. It replaces the original problem with a new
one -- it is an experiment to find out whether the new problem
is less bad (or it is just a contribution to the discussion,
maybe just a summary of previous work). The files provide
further information.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tamefloats/tameflts.sty
%doc %{_texmfdistdir}/doc/latex/tamefloats/README.txt
%doc %{_texmfdistdir}/doc/latex/tamefloats/deml3541.tex
%doc %{_texmfdistdir}/doc/latex/tamefloats/fltfltdk.tex
%doc %{_texmfdistdir}/doc/latex/tamefloats/newbug.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19622 |21mr|texlive-tamethebeast-1.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/bibtex/tamethebeast
# catalog-date 2009-10-11 21:12:19 +0200
# catalog-license lppl1.3
# catalog-version 1.4
Name:		texlive-tamethebeast
Version:	1.4
Release:	6
Summary:	A manual about bibliographies and especially BibTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/bibtex/tamethebeast
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tamethebeast.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tamethebeast.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
An (as-complete-as-possible) manual about bibliographies in
LaTeX, and thus mainly about BibTeX.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/CHANGES
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/Makefile
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/README
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/idxstyle.ist
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/local.bib
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/ttb_en.pdf
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/ttb_en.sec1.tex
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/ttb_en.sec2.tex
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/ttb_en.sec3.tex
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/ttb_en.sec4.tex
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/ttb_en.sec5.tex
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/ttb_en.tex
%doc %{_texmfdistdir}/doc/bibtex/tamethebeast/ttb_style.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19623 |21mr|texlive-t-angles-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/t-angles
# catalog-date 2007-03-12 14:32:12 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-t-angles
Version:	20190228
Release:	1
Summary:	Draw tangles, trees, Hopf algebra operations and other pictures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/t-angles
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/t-angles.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/t-angles.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX2e package for drawing tangles, trees, Hopf algebra
operations and other pictures. It is based on emTeX or TPIC
\special's. Therefore, it can be used with the most popular
drivers, including emTeX drivers, dviwin, xdvi and dvips, and
(using some code from ConTeXt) it may also be used with
PDFLaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/t-angles/t-angles.sty
%doc %{_texmfdistdir}/doc/latex/t-angles/README
%doc %{_texmfdistdir}/doc/latex/t-angles/t-manual.pdf
%doc %{_texmfdistdir}/doc/latex/t-angles/t-manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19624 |21mr|texlive-tap-0.77-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31731
# category Package
# catalog-ctan /macros/generic/tables/tap077.zip
# catalog-date 2012-06-22 13:21:57 +0200
# catalog-license pd
# catalog-version 0.77
Name:		texlive-tap
Version:	0.77
Release:	12
Summary:	TeX macros for typesetting complex tables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/tables/tap077.zip
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tap.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tap.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers a simple notation for pretty complex tables
(to Michael J. Ferguson's credit). With PostScript, the package
allows shaded/coloured tables, diagonal rules, etc. The package
is supposed to work with both Plain and LaTeX. An AWK converter
from ASCII semigraphic tables to TAP notation is included.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/tap/tap.tex
%doc %{_texmfdistdir}/doc/generic/tap/0README.TAP
%doc %{_texmfdistdir}/doc/generic/tap/0tapdoc.inf
%doc %{_texmfdistdir}/doc/generic/tap/circ.eps
%doc %{_texmfdistdir}/doc/generic/tap/circmag.eps
%doc %{_texmfdistdir}/doc/generic/tap/epsfx.tex
%doc %{_texmfdistdir}/doc/generic/tap/tapanch.100
%doc %{_texmfdistdir}/doc/generic/tap/tapanch.mp
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/0sampdos.inf
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/post1.tex
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/post2.tex
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/prea1.tex
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/prea2.tex
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/prea3.tex
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tapcv0.raw
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tapcv1.raw
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tapcv2.raw
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tapcv3.raw
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tapcv4.raw
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tapcv5.raw
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tapcv6.raw
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tcv.bat
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/sampdos/tcv_.bat
%doc %{_texmfdistdir}/doc/generic/tap/tapcv/tapcv.awk
%doc %{_texmfdistdir}/doc/generic/tap/tapdoc.tex
%doc %{_texmfdistdir}/doc/generic/tap/tapxamp1.tex
%doc %{_texmfdistdir}/doc/generic/tap/tapxamp2.tex
#- source
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/0sampdos.inf
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/post1.tex
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/post2.tex
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/prea1.tex
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/prea2.tex
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/prea3.tex
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tapcv0.raw
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tapcv1.raw
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tapcv2.raw
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tapcv3.raw
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tapcv4.raw
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tapcv5.raw
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tapcv6.raw
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tcv.bat
%doc %{_texmfdistdir}/source/generic/tap/tabcv/sampdos/tcv_.bat
%doc %{_texmfdistdir}/source/generic/tap/tabcv/tapcv.awk

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19625 |21mr|texlive-tcdialog-20111104-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23089
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-tcdialog
Version:	20111104
Release:	6
Summary:	TeXLive tcdialog package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tcdialog.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tcdialog.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Provides:	texlive-tcdialog.bin = %{EVRD}
Requires:	cdialog

%description
TeXLive tcdialog package.

#-----------------------------------------------------------------------
%files
%{_bindir}/tcdialog
%doc %{_mandir}/man1/tcdialog.1*
%doc %{_texmfdir}/doc/man/man1/tcdialog.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf cdialog tcdialog
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19626 |21mr|texlive-tcldoc-2.40-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22018
# category Package
# catalog-ctan /macros/latex/contrib/tclldoc
# catalog-date 2007-02-28 00:02:05 +0100
# catalog-license lppl
# catalog-version 2.40
Name:		texlive-tcldoc
Version:	2.40
Release:	7
Summary:	Doc/docstrip for tcl
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tclldoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tcldoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tcldoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tcldoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The tclldoc package and class simplify the application of the
doc/docstrip style of literate programming with Dr. John
Ousterhout's Tool Command Language (Tcl, pronounced "tickle",
a.k.a. The Cool Language). The tclldoc package is a bit like
the doc package is for LaTeX, whereas the tclldoc class more
parallels the ltxdoc class.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tcldoc/tcldoc.cls
%{_texmfdistdir}/tex/latex/tcldoc/tcldoc.sty
%{_texmfdistdir}/tex/latex/tcldoc/tclldoc.cls
%{_texmfdistdir}/tex/latex/tcldoc/tclldoc.sty
%doc %{_texmfdistdir}/doc/latex/tcldoc/README.txt
%doc %{_texmfdistdir}/doc/latex/tcldoc/examples/README.txt
%doc %{_texmfdistdir}/doc/latex/tcldoc/examples/parsetcl.dtx
%doc %{_texmfdistdir}/doc/latex/tcldoc/examples/parsetcl.ins
%doc %{_texmfdistdir}/doc/latex/tcldoc/examples/pdf.dtx
%doc %{_texmfdistdir}/doc/latex/tcldoc/examples/pdf.ins
%doc %{_texmfdistdir}/doc/latex/tcldoc/tclldoc.pdf
%doc %{_texmfdistdir}/doc/latex/tcldoc/tools/README.txt
%doc %{_texmfdistdir}/doc/latex/tcldoc/tools/eemenu.dtx
%doc %{_texmfdistdir}/doc/latex/tcldoc/tools/eemenu.ins
%doc %{_texmfdistdir}/doc/latex/tcldoc/tools/sourcedtx.dtx
%doc %{_texmfdistdir}/doc/latex/tcldoc/tools/sourcedtx.ins
#- source
%doc %{_texmfdistdir}/source/latex/tcldoc/tclldoc.dtx
%doc %{_texmfdistdir}/source/latex/tcldoc/tclldoc.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19627 |21mr|texlive-tcolorbox-4.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tcolorbox
Epoch:		1
Version:	4.20
Release:	1
Summary:	Coloured boxes, for LaTeX examples and theorems, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tcolorbox
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tcolorbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tcolorbox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an environment for coloured and framed
text boxes with a heading line. Optionally, such a box can be
split in an upper and a lower part; thus the package may be
used for the setting of LaTeX examples where one part of the
box displays the source code and the other part shows the
output. Another common use case is the setting of theorems. The
package supports saving and reuse of source code and text
parts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tcolorbox
%doc %{_texmfdistdir}/doc/latex/tcolorbox

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19628 |21mr|texlive-tdclock-2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tdclock
Version:	2.5
Release:	2
Summary:	A ticking digital clock package for PDF output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tdclock
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tdclock.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tdclock.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A ticking digital clock package to be used in Pdf-LaTeX
documents, for example in presentations.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tdclock/tdclock.sty
%doc %{_texmfdistdir}/doc/latex/tdclock/Changelog
%doc %{_texmfdistdir}/doc/latex/tdclock/README
%doc %{_texmfdistdir}/doc/latex/tdclock/tdclock-beamer-example.pdf
%doc %{_texmfdistdir}/doc/latex/tdclock/tdclock-beamer-example.tex
%doc %{_texmfdistdir}/doc/latex/tdclock/tdclock-doc.pdf
%doc %{_texmfdistdir}/doc/latex/tdclock/tdclock-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19629 |21mr|texlive-tds-1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /tds
# catalog-date 2009-10-10 00:51:28 +0200
# catalog-license other-free
# catalog-version 1.1
Name:		texlive-tds
Version:	1.1
Release:	6
Summary:	The TeX Directory Structure standard
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/tds
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tds.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tds.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Defines a structure for placement of TeX-related files on an
hierarchical file system, in a way that is well-defined, and is
readily implementable.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/tds/ChangeLog
%doc %{_texmfdistdir}/doc/generic/tds/Makefile
%doc %{_texmfdistdir}/doc/generic/tds/README
%doc %{_texmfdistdir}/doc/generic/tds/index.html
%doc %{_texmfdistdir}/doc/generic/tds/tds.dvi
%doc %{_texmfdistdir}/doc/generic/tds/tds.html
%doc %{_texmfdistdir}/doc/generic/tds/tds.pdf
%doc %{_texmfdistdir}/doc/generic/tds/tds.sed
%doc %{_texmfdistdir}/doc/generic/tds/tds.tex
%doc %{_texmfdistdir}/doc/generic/tds/tds2texi.el
%doc %{_texmfdistdir}/doc/generic/tds/tdsguide.cls

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19630 |21mr|texlive-tdsfrmath-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/tdsfrmath
# catalog-date 2009-06-22 16:39:08 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-tdsfrmath
Version:	1.3
Release:	7
Summary:	Macros for French teachers of mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tdsfrmath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tdsfrmath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tdsfrmath.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tdsfrmath.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of macros for French maths teachers in colleges
and lycees (and perhaps elsewhere). It is hoped that the
package will facilitate the everyday use of LaTeX by
mathematics teachers.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tdsfrmath/suite.sto
%{_texmfdistdir}/tex/latex/tdsfrmath/taupe.sto
%{_texmfdistdir}/tex/latex/tdsfrmath/tdsfrmath.sty
%doc %{_texmfdistdir}/doc/latex/tdsfrmath/LISEZMOI
%doc %{_texmfdistdir}/doc/latex/tdsfrmath/README
%doc %{_texmfdistdir}/doc/latex/tdsfrmath/tdsfrmath.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tdsfrmath/Makefile
%doc %{_texmfdistdir}/source/latex/tdsfrmath/tdsfrmath.dtx
%doc %{_texmfdistdir}/source/latex/tdsfrmath/tdsfrmath.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19631 |21mr|texlive-technics-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/technics
# catalog-date 2012-08-31 01:04:09 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-technics
Epoch:		1
Version:	1.0
Release:	10
Summary:	A package to format technical documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/technics
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/technics.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/technics.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a very simple LaTeX document template, in
the hope that this use of LaTeX will become attractive to
typical word processor users. (Presentation is as if it were a
class; users are expected to start from a template document.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/technics/technics.sty
%doc %{_texmfdistdir}/doc/latex/technics/png2eps.sh
%doc %{_texmfdistdir}/doc/latex/technics/rf-logo.zip
%doc %{_texmfdistdir}/doc/latex/technics/technics.pdf
%doc %{_texmfdistdir}/doc/latex/technics/technics.tex
%doc %{_texmfdistdir}/doc/latex/technics/view-dvi.sh
%doc %{_texmfdistdir}/doc/latex/technics/vmlinux.eps
%doc %{_texmfdistdir}/doc/latex/technics/vmlinux.png

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19632 |21mr|texlive-ted-1.06-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ted
# catalog-date 2008-08-24 10:50:19 +0200
# catalog-license lppl
# catalog-version 1.06
Name:		texlive-ted
Version:	1.06
Release:	7
Summary:	A (primitive) token list editor
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ted
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ted.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ted.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ted.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Just like sed is a stream editor, ted is a token list editor.
Actually, it is not as powerfull as sed, but its main feature
is that it really works with tokens, not only characters. The
ted package provides two user macros: \Substitute and
\ShowTokens. The first is maybe the most useful: it performs
substitutions in token lists (even inside braces). The second
displays each token of the list (one per line) with its catcode
(in the list, not just the current one), and can be useful for
debugging or for TeX learners. Ted is designed to work well
even if strange tokens (that is, unusual {charcode, catcode}
pairs or tokens with a confusing meaning) occur in the list.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ted/ted.sty
%doc %{_texmfdistdir}/doc/latex/ted/README
%doc %{_texmfdistdir}/doc/latex/ted/ted-fr.pdf
%doc %{_texmfdistdir}/doc/latex/ted/ted.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ted/ted.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19633 |21mr|texlive-templates-fenn-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/templates/fenn
# catalog-date 2009-08-28 15:51:43 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-templates-fenn
Version:	20190228
Release:	1
Summary:	Templates for TeX usage
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/templates/fenn
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/templates-fenn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/templates-fenn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A set of templates for using LaTeX packages that the author
uses, comprising: - scrlttr2.tex: a letter, written with
scrlttr2.cls from the KOMA-Script bundle; - dinbrief.tex: a
letter according to the German (DIN) standards, written with
dinbrief.cls; - kbrief.tex: a brief memo ('Kurzbrief') to
accompany enclosures, as used in German offices, again based on
dinbrief; - vermerk.tex: a general form for taking down notes
on events in the office; and - diabetes.tex: a diary for the
basis-bolus insulin therapy of diabetes mellitus, using
scrartcl.cls from the KOMA-Script bundle.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/templates-fenn/diabetes.tex
%doc %{_texmfdistdir}/doc/latex/templates-fenn/dinbrief.tex
%doc %{_texmfdistdir}/doc/latex/templates-fenn/kbrief.tex
%doc %{_texmfdistdir}/doc/latex/templates-fenn/scrlttr2.tex
%doc %{_texmfdistdir}/doc/latex/templates-fenn/scrlttr2en.tex
%doc %{_texmfdistdir}/doc/latex/templates-fenn/templates-fenn-de.txt
%doc %{_texmfdistdir}/doc/latex/templates-fenn/templates-fenn-en.txt
%doc %{_texmfdistdir}/doc/latex/templates-fenn/vermerk.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19634 |21mr|texlive-templates-sommer-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/templates/sommer
# catalog-date 2008-08-24 10:50:19 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-templates-sommer
Version:	20190228
Release:	1
Summary:	Templates for TeX usage
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/templates/sommer
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/templates-sommer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/templates-sommer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A set of templates for using LaTeX packages that the author
uses, comprising: - Hausarbeit.tex: for students of the
Lehrstuhl Volkskunde an der Friedrich-Schiller-Universitat
Jena; - Psycho-Dipl.tex: for diploma theses in psychology.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/templates-sommer/Hausarbeit.bib
%doc %{_texmfdistdir}/doc/latex/templates-sommer/Hausarbeit.tex
%doc %{_texmfdistdir}/doc/latex/templates-sommer/Logo.jpg
%doc %{_texmfdistdir}/doc/latex/templates-sommer/Psycho-Dipl.bib
%doc %{_texmfdistdir}/doc/latex/templates-sommer/Psycho-Dipl.tex
%doc %{_texmfdistdir}/doc/latex/templates-sommer/README.de

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19635 |21mr|texlive-termcal-1.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22514
# category Package
# catalog-ctan /macros/latex/contrib/termcal
# catalog-date 2011-05-17 01:53:44 +0200
# catalog-license lppl1
# catalog-version 1.8
Name:		texlive-termcal
Version:	1.8
Release:	7
Summary:	Print a class calendar
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/termcal
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/termcal.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/termcal.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/termcal.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is intended to print a term calendar for use in
planning a class. It has a flexible mechanism for specifying
which days of the week are to be included and for inserting
text either regularly on the same day each week, or on selected
days, or for a series of consecutive days. It also has a
flexible mechanism for specifing class and nonclass days. Text
may be inserted into consecutive days so that it automatically
flows around nonclass days.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/termcal/termcal.sty
%doc %{_texmfdistdir}/doc/latex/termcal/Contents
%doc %{_texmfdistdir}/doc/latex/termcal/README
%doc %{_texmfdistdir}/doc/latex/termcal/termcal.pdf
#- source
%doc %{_texmfdistdir}/source/latex/termcal/termcal.dtx
%doc %{_texmfdistdir}/source/latex/termcal/termcal.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19636 |21mr|texlive-termlist-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18923
# category Package
# catalog-ctan /macros/latex/contrib/termlist
# catalog-date 2010-06-12 14:14:46 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-termlist
Version:	1.1
Release:	7
Summary:	Label any kind of term with a continuous counter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/termlist
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/termlist.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/termlist.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/termlist.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The termlist package provides environments to indent and label
any kind of terms with a continuous number. Candidate terms may
appear inside an equation or eqnarray environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/termlist/termlist.sty
%doc %{_texmfdistdir}/doc/latex/termlist/README
%doc %{_texmfdistdir}/doc/latex/termlist/termlist.pdf
#- source
%doc %{_texmfdistdir}/source/latex/termlist/termlist.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19637 |21mr|texlive-tetex-3.0-29
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34229
# category TLCore
# catalog-ctan /obsolete/systems/unix/teTeX
# catalog-date 2012-09-11 08:43:58 +0200
# catalog-license other-free
# catalog-version 3.0
Name:		texlive-tetex
Version:	3.0
Release:	29
Summary:	Scripts and files originally written for or included in teTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/obsolete/systems/unix/teTeX
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tetex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tetex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
# updmap requires texconfig/tcfmgr
Requires(post):	texlive-texconfig
# pdftex requires updmap
Requires(post):	texlive-pdftex.bin
Provides:	texlive-tetex.bin = %{EVRD}

%description
teTeX was a comprehensive distribution of TeX, LaTeX and
family, designed for ease of compilation, installation and
customisation. In 2006, Thomas Esser announced he would no
longer be able to support, or to produce new versions of,
teTeX. With the appearance of TeX live 2007 (whose Unix-system
TeX support originally derived from teTeX), no-one should be
using teTeX at all, in new applications. One of the "schemes"
available when installing TeX live provides a configuration
very close to that of the old teTeX, but using modern versions
of programs and packages.

#-----------------------------------------------------------------------
%files
%{_bindir}/allcm
%{_bindir}/allec
%{_bindir}/allneeded
%{_bindir}/dvi2fax
%{_bindir}/dvired
%{_bindir}/fmtutil
%{_bindir}/fmtutil-sys
# installed by texlive-kpathsea.bin
#%%{_bindir}/kpsetool
%{_bindir}/kpsewhere
%{_bindir}/texconfig-dialog
%{_bindir}/texconfig-sys
%{_bindir}/texlinks
%{_bindir}/mktexfmt
%{_bindir}/updmap
%{_bindir}/updmap-sys
%{_texmfdistdir}/dvips/tetex/config.builtin35
%{_texmfdistdir}/dvips/tetex/config.dfaxhigh
%{_texmfdistdir}/dvips/tetex/config.dfaxlo
%{_texmfdistdir}/dvips/tetex/config.download35
%{_texmfdistdir}/dvips/tetex/config.gsftopk
%{_texmfdistdir}/dvips/tetex/config.maxmem
%{_texmfdistdir}/dvips/tetex/config.outline
%{_texmfdistdir}/dvips/tetex/config.pdf
%{_texmfdistdir}/dvips/tetex/config.pk
%{_texmfdistdir}/dvips/tetex/config.www
%{_texmfdistdir}/fonts/enc/dvips/tetex/09fbbfac.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/0ef0afca.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/10037936.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/1b6d048e.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/71414f53.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/74afc74c.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/aae443f0.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/b6a4d7c7.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/bbad153f.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/d9b29452.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/f7b6d320.enc
%{_texmfdistdir}/fonts/enc/dvips/tetex/mtex.enc
%{_texmfdistdir}/fonts/map/dvips/tetex/Makefile
%{_texmfdistdir}/fonts/map/dvips/tetex/README
%{_texmfdistdir}/fonts/map/dvips/tetex/base14flags.ltx
%{_texmfdistdir}/fonts/map/dvips/tetex/base14flags.tex
%{_texmfdistdir}/fonts/map/dvips/tetex/dvipdfm35.map
%{_texmfdistdir}/fonts/map/dvips/tetex/dvips35.map
%{_texmfdistdir}/fonts/map/dvips/tetex/mathpple.map
%{_texmfdistdir}/fonts/map/dvips/tetex/pdftex35.map
%{_texmfdistdir}/fonts/map/dvips/tetex/ps2pk35.map
%{_texmfdistdir}/scripts/texlive/allcm.sh
%{_texmfdistdir}/scripts/texlive/allneeded.sh
%{_texmfdistdir}/scripts/texlive/dvi2fax.sh
%{_texmfdistdir}/scripts/texlive/dvired.sh
%{_texmfdistdir}/scripts/texlive/fmtutil-sys.sh
%{_texmfdistdir}/scripts/texlive/fmtutil.sh
%{_texmfdistdir}/scripts/texlive/kpsetool.sh
%{_texmfdistdir}/scripts/texlive/kpsewhere.sh
%{_texmfdistdir}/scripts/texlive/texconfig-dialog.sh
%{_texmfdistdir}/scripts/texlive/texconfig-sys.sh
%{_texmfdistdir}/scripts/texlive/texlinks.sh
%{_texmfdistdir}/scripts/texlive/updmap-sys.sh
%{_texmfdistdir}/scripts/texlive/updmap.pl
%config(noreplace) %{_texmfdistdir}/web2c/updmap.cfg
%doc %{_mandir}/man1/allcm.1*
%doc %{_texmfdistdir}/doc/man/man1/allcm.man1.pdf
%doc %{_mandir}/man1/allec.1*
%doc %{_texmfdistdir}/doc/man/man1/allec.man1.pdf
%doc %{_mandir}/man1/allneeded.1*
%doc %{_texmfdistdir}/doc/man/man1/allneeded.man1.pdf
%doc %{_mandir}/man1/dvi2fax.1*
%doc %{_texmfdistdir}/doc/man/man1/dvi2fax.man1.pdf
%doc %{_mandir}/man1/dvired.1*
%doc %{_texmfdistdir}/doc/man/man1/dvired.man1.pdf
%doc %{_mandir}/man1/fmtutil-sys.1*
%doc %{_texmfdistdir}/doc/man/man1/fmtutil-sys.man1.pdf
%doc %{_mandir}/man1/fmtutil.1*
%doc %{_texmfdistdir}/doc/man/man1/fmtutil.man1.pdf
%doc %{_mandir}/man1/kpsepath.1*
%doc %{_texmfdistdir}/doc/man/man1/kpsepath.man1.pdf
%doc %{_mandir}/man1/kpsetool.1*
%doc %{_texmfdistdir}/doc/man/man1/kpsetool.man1.pdf
%doc %{_mandir}/man1/kpsewhere.1*
%doc %{_texmfdistdir}/doc/man/man1/kpsewhere.man1.pdf
%doc %{_mandir}/man1/kpsexpand.1*
%doc %{_texmfdistdir}/doc/man/man1/kpsexpand.man1.pdf
%doc %{_mandir}/man1/texlinks.1*
%doc %{_texmfdistdir}/doc/man/man1/texlinks.man1.pdf
%doc %{_mandir}/man1/updmap-sys.1*
%doc %{_texmfdistdir}/doc/man/man1/updmap-sys.man1.pdf
%doc %{_mandir}/man1/updmap.1*
%doc %{_texmfdistdir}/doc/man/man1/updmap.man1.pdf
%doc %{_mandir}/man5/fmtutil.cnf.5*
%doc %{_texmfdistdir}/doc/man/man5/fmtutil.cnf.man5.pdf
%doc %{_mandir}/man5/updmap.cfg.5*
%doc %{_texmfdistdir}/doc/man/man5/updmap.cfg.man5.pdf
%doc %{_texmfdistdir}/doc/tetex/TETEXDOC.pdf
%doc %{_texmfdistdir}/doc/tetex/teTeX-FAQ

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

perl -pi -e 's|\$TEXMFROOT/tlpkg|%{_datadir}/tlpkg|;'		\
    texmf-dist/scripts/texlive/updmap.pl

%build


%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texlive/updmap.pl updmap
    ln -sf %{_texmfdistdir}/scripts/texlive/updmap-sys.sh updmap-sys
    ln -sf %{_texmfdistdir}/scripts/texlive/allcm.sh allcm
    ln -sf allcm allec
    ln -sf %{_texmfdistdir}/scripts/texlive/allneeded.sh allneeded
    ln -sf %{_texmfdistdir}/scripts/texlive/dvi2fax.sh dvi2fax
    ln -sf %{_texmfdistdir}/scripts/texlive/dvired.sh dvired
    ln -sf %{_texmfdistdir}/scripts/texlive/fmtutil.sh fmtutil
    ln -sf %{_texmfdistdir}/scripts/texlive/fmtutil-sys.sh fmtutil-sys
    ln -sf %{_texmfdistdir}/scripts/texlive/kpsetool.sh kpsetool
    ln -sf %{_texmfdistdir}/scripts/texlive/kpsewhere.sh kpsewhere
    ln -sf %{_texmfdistdir}/scripts/texlive/texconfig-dialog.sh texconfig-dialog
    ln -sf %{_texmfdistdir}/scripts/texlive/texconfig-sys.sh texconfig-sys
    ln -sf %{_texmfdistdir}/scripts/texlive/texlinks.sh texlinks
    ln -sf %{_texmfdistdir}/scripts/texlive/updmap.pl updmap
    ln -sf %{_texmfdistdir}/scripts/texlive/updmap-sys.sh updmap-sys
    ln -sf fmtutil mktexfmt
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_mandir}/man5
mv %{buildroot}%{_texmfdistdir}/doc/man/man5/*.5 %{buildroot}%{_mandir}/man5
rm -f %{buildroot}%{_bindir}/kpsetool

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19638 |21mr|texlive-teubner-4.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23854
# category Package
# catalog-ctan /macros/latex/contrib/teubner
# catalog-date 2011-09-07 11:50:17 +0200
# catalog-license lppl
# catalog-version 3.3
Name:		texlive-teubner
Version:	4.8
Release:	1
Summary:	Philological typesetting of classical Greek
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/teubner
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/teubner.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/teubner.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/teubner.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An extension to babel greek option for typesetting classical
Greek with a philological approach. The package works with the
author's greek fonts using the 'Lispiakos' font shape derived
from that of the fonts used in printers' shops in Lispia. The
package name honours the publisher B.G. Teubner
Verlaggesellschaft whose Greek text publications are of high
quality.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/teubner/teubner.sty
%{_texmfdistdir}/tex/latex/teubner/teubnertx.sty
%doc %{_texmfdistdir}/doc/latex/teubner/README
%doc %{_texmfdistdir}/doc/latex/teubner/teubner-doc.pdf
%doc %{_texmfdistdir}/doc/latex/teubner/teubner-doc.tex
%doc %{_texmfdistdir}/doc/latex/teubner/teubner.pdf
%doc %{_texmfdistdir}/doc/latex/teubner/teubner.txt
#- source
%doc %{_texmfdistdir}/source/latex/teubner/teubner.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19639 |21mr|texlive-tex-20200314-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tex
Version:	20200314
Release:	1
Summary:	A sophisticated typesetting engine
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/knuth/dist/tex
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-tetex
Requires:	texlive-kpathsea
Requires:	texlive-plain
Requires:	texlive-tex.bin

%description
TeX is a typesetting system that incorporates a macro
processor. A TeX source document specifies or incorporates a
number of macro definitions that instruct the TeX engine how to
typeset the document. The TeX engine also uses font metrics
generated by Metafont, or by any of several other mechanisms
that incorporate fonts from other sources into an environment
suitable for TeX. TeX has been, and continues, a basis and an
inspiration for several other programs, including e-TeX and
PDFTeX. The distribution includes the source of Knuth's TeX
book; this source is there to read, as an example of writing
TeX -- it should not be processed without Knuth's direct
permission.

#-----------------------------------------------------------------------
%files
%_texmf_fmtutil_d/tex
%doc %{_mandir}/man1/tex.1*
%doc %{_mandir}/man1/initex.1*
%doc %{_texmfdistdir}/doc/man/man1/tex.man1.pdf
%doc %{_texmfdistdir}/doc/man/man1/initex.man1.pdf
#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/tex <<EOF
#
# from tex:
tex tex - tex.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19640 |21mr|texlive-tex4ht-20200707-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tex4ht
Version:	20200707
Release:	1
Summary:	Convert (La)TeX to HTML/XML
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/obsolete/support/TeX4ht
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex4ht.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex4ht.doc.tar.xz
# The so-called source in CTAN includes a prebuilt Java jar file... Let's overwrite
# that with one built from the real source, available at
# svn checkout http://svn.gnu.org.ua/sources/tex4ht/trunk tex4ht-source
Source2:	tex4ht-source-562.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
BuildRequires:	java-1.8.0-openjdk
BuildRequires:	java-1.8.0-openjdk-devel
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-tex4ht.bin
%rename tex4ht

%description
A converter from TeX and LaTeX to SGML-based formats such as
(X)HTML, MathML, OpenDocument, and DocBook, providing a
configurable (La)TeX-based authoring system for hypertext.
Tex4ht does not parse (La)TeX source (so that it avoids the
difficulties encountered by many other converters, arising from
the irregularity of (La)TeX syntax). Instead, Tex4ht uses
(La)TeX itself (with an extra macro package) to produce a non-
standard DVI file that it can then process. This technique
allows TeX4ht to approach the robustness characteristic of
restricted-syntax systems such as hyperlatex and gellmu. Note
that CTAN no longer holds the definitive sources of the
package: see the 'Readme' file.

#-----------------------------------------------------------------------
%files
%{_bindir}/ht
%{_bindir}/htcontext
%{_bindir}/htlatex
%{_bindir}/htmex
%{_bindir}/httex
%{_bindir}/httexi
%{_bindir}/htxelatex
%{_bindir}/htxetex
%{_bindir}/mk4ht
%{_texmfdistdir}/scripts/tex4ht
%{_texmfdistdir}/tex/generic/tex4ht
%{_texmfdistdir}/tex4ht
%{_javadir}/tex4ht.jar
%doc %{_texmfdistdir}/doc/generic/tex4ht

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2
cd tex4ht-source-562/src/java
find . -name "*.java" |xargs javac
find . -name "*.class" -o -name "*.properties" |xargs jar cf tex4ht.jar
pwd
cp -f tex4ht.jar ../../../texmf-dist/tex4ht/bin/
cat >module-info.java <<'EOF'
module tex4ht {
	exports xtpipes;
	exports xtpipes.util;
	requires java.desktop;
}
EOF

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/tex4ht/ht.sh ht
    ln -sf %{_texmfdistdir}/scripts/tex4ht/htcontext.sh htcontext
    ln -sf %{_texmfdistdir}/scripts/tex4ht/htlatex.sh htlatex
    ln -sf %{_texmfdistdir}/scripts/tex4ht/htmex.sh htmex
    ln -sf %{_texmfdistdir}/scripts/tex4ht/httex.sh httex
    ln -sf %{_texmfdistdir}/scripts/tex4ht/httexi.sh httexi
    ln -sf %{_texmfdistdir}/scripts/tex4ht/htxelatex.sh htxelatex
    ln -sf %{_texmfdistdir}/scripts/tex4ht/htxetex.sh htxetex
    ln -sf %{_texmfdistdir}/scripts/tex4ht/mk4ht.pl mk4ht
popd
mkdir -p %{buildroot}%{_javadir}
pushd %{buildroot}%{_javadir}
    ln -sf %{_texmfdistdir}/tex4ht/bin/tex4ht.jar tex4ht.jar
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19641 |21mr|texlive-texbytopic-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/texbytopic
# catalog-date 2008-08-24 10:50:19 +0200
# catalog-license fdl
# catalog-version undef
Name:		texlive-texbytopic
Version:	20190228
Release:	1
Summary:	Freed version of the book TeX by Topic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/texbytopic
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texbytopic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texbytopic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
An invaluable book, originally published by Addison-Wesley (who
have released their copyright). The book describes itself as "a
TeXnician's reference", and covers the way TeX (the engine)
works in as much detail as most ordinary TeX programmers will
ever need to know.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/plain/texbytopic/README
%doc %{_texmfdistdir}/doc/plain/texbytopic/TeXbyTopic.pdf
%doc %{_texmfdistdir}/doc/plain/texbytopic/TeXbyTopic.tex
%doc %{_texmfdistdir}/doc/plain/texbytopic/figflow.tex
%doc %{_texmfdistdir}/doc/plain/texbytopic/glossary.tex
%doc %{_texmfdistdir}/doc/plain/texbytopic/tables.tex
%doc %{_texmfdistdir}/doc/plain/texbytopic/tex.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19642 |21mr|texlive-texconfig-20140621-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29764
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-texconfig
Version:	20140621
Release:	12
Summary:	TeXLive texconfig package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texconfig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texconfig.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texconfig.bin = %{EVRD}

%description
TeXLive texconfig package.

#-----------------------------------------------------------------------
%files
%{_bindir}/texconfig
%{_texmfdistdir}/scripts/texlive/texconfig.sh
%{_texmfdistdir}/texconfig/README
%{_texmfdistdir}/texconfig/g/generic
%{_texmfdistdir}/texconfig/tcfmgr
%{_texmfdistdir}/texconfig/tcfmgr.map
%{_texmfdistdir}/texconfig/v/vt100
%{_texmfdistdir}/texconfig/x/xterm
%doc %{_mandir}/man1/texconfig-sys.1*
%doc %{_texmfdistdir}/doc/man/man1/texconfig-sys.man1.pdf
%doc %{_mandir}/man1/texconfig.1*
%doc %{_texmfdistdir}/doc/man/man1/texconfig.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texlive/texconfig.sh texconfig
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19643 |21mr|texlive-texdoc-3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texdoc
Version:	3.1
Release:	1
Epoch:		1
Summary:	Documentation access for TeX distributions
Group:		Publishing
URL:		http://tug.org/texlive
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdoc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texdoc.bin = %{EVRD}

%description
TeXdoc is an application for easy access to the package
documentation of a TeX distributions (i.e., .dvi, .pdf or .ps
files on the $TEXDOCS tree). It is distributed with TeX-Live
and a derivative is distributed with miktex.

#-----------------------------------------------------------------------
%files
%{_bindir}/texdoc
%{_bindir}/texdoctk
%{_texmfdistdir}/scripts/*
%{_texmfdistdir}/texdoc
%doc %{_mandir}/man1/texdoc.1*
%doc %{_texmfdistdir}/doc/man/man1/texdoc.man1.pdf
%doc %{_texmfdistdir}/doc/support/texdoc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

perl -pi -e 's%^# (viewer_pdf = )xpdf.*%$1xdg-open%;'	\
	texmf-dist/texdoc/texdoc.cnf

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texdoc/texdoc.tlu texdoc
    ln -sf %{_texmfdistdir}/scripts/texdoctk/texdoctk.pl texdoctk
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19644 |21mr|texlive-texdraw-20190331-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31894
# category Package
# catalog-ctan /graphics/texdraw
# catalog-date 2012-06-05 21:37:17 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-texdraw
Version:	20190331
Release:	1
Summary:	Graphical macros, using embedded PostScript
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/texdraw
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdraw.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texdraw.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXdraw is a set of macro definitions for TeX, which allow the
user to produce PostScript drawings from within TeX and LaTeX.
TeXdraw has been designed to be extensible. Drawing 'segments'
are relocatable, self-contained units. Using a combination of
the TeX's grouping mechanism and the gsave/grestore mechanism
in PostScript, drawing segments allow for local changes to the
scaling and line parameters. Using TeX's macro definition
capability, new drawing commands can be constructed from
drawing segments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/texdraw/blockdiagram.tex
%{_texmfdistdir}/tex/generic/texdraw/texdraw.sty
%{_texmfdistdir}/tex/generic/texdraw/texdraw.tex
%{_texmfdistdir}/tex/generic/texdraw/txdexamp.latex
%{_texmfdistdir}/tex/generic/texdraw/txdexamp.tex
%{_texmfdistdir}/tex/generic/texdraw/txdps.tex
%{_texmfdistdir}/tex/generic/texdraw/txdtools.tex
%doc %{_infodir}/texdraw.info*
%doc %{_texmfdistdir}/doc/support/texdraw/ChangeLog
%doc %{_texmfdistdir}/doc/support/texdraw/README
%doc %{_texmfdistdir}/doc/support/texdraw/texdraw.cps
%doc %{_texmfdistdir}/doc/support/texdraw/texdraw.fns
%doc %{_texmfdistdir}/doc/support/texdraw/texdraw.ps
%doc %{_texmfdistdir}/doc/support/texdraw/texdraw.texi
%doc %{_texmfdistdir}/doc/support/texdraw/txi-src.tgz

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_infodir}
mv %{buildroot}%{_texmfdistdir}/doc/info/*.info %{buildroot}%{_infodir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19645 |21mr|texlive-tex-font-errors-cheatsheet-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18314
# category Package
# catalog-ctan /info/tex-font-errors-cheatsheet
# catalog-date 2010-05-16 21:06:03 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-tex-font-errors-cheatsheet
Version:	0.1
Release:	6
Summary:	Cheat sheet outlining the most common TeX font errors
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/tex-font-errors-cheatsheet
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-font-errors-cheatsheet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-font-errors-cheatsheet.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a compact three-pages document highlighting the TeX
flow of integrating fonts, and explains how some of the most
common font-related error messages occur. Also, hints are given
on how to address those.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/tex-font-errors-cheatsheet/README
%doc %{_texmfdistdir}/doc/latex/tex-font-errors-cheatsheet/tex-font-cheatsheet.pdf
%doc %{_texmfdistdir}/doc/latex/tex-font-errors-cheatsheet/tex-font-cheatsheet.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19646 |21mr|texlive-tex-gyre-2.501-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18651
# category Package
# catalog-ctan /fonts/tex-gyre
# catalog-date 2009-11-12 13:33:47 +0100
# catalog-license gfsl
# catalog-version 2.004
Name:		texlive-tex-gyre
Version:	2.501
Release:	1
Summary:	TeX Fonts extending freely available URW fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/tex-gyre
License:	GFSL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-gyre.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-gyre.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
The TeX-GYRE bundle consists of six font families: TeX Gyre
Adventor is based on the URW Gothic L family of fonts (which is
derived from ITC Avant Garde Gothic, designed by Herb Lubalin
and Tom Carnase). TeX Gyre Bonum is based on the URW Bookman L
family (from Bookman Old Style, designed by Alexander
Phemister). TeX Gyre Chorus is based on URW Chancery L Medium
Italic (from ITC Zapf Chancery, designed by Hermann Zapf in
1979). TeX-Gyre Cursor is based on URW Nimbus Mono L (based on
Courier, designed by Howard G. Kettler in 1955, for IBM). TeX
Gyre Heros is based on URW Nimbus Sans L (from Helvetica,
prepared by Max Miedinger, with Eduard Hoffmann in 1957). TeX
Gyre Pagella is based on URW Palladio L (from Palation,
designed by Hermann Zapf in the 1940s). TeX Gyre Schola is
based on the URW Century Schoolbook L family (which was
designed by Morris Fuller Benton for the American Type
Founders). TeX Gyre Termes is based on the URW Nimbus Roman No9
L family of fonts (whose original, Times, was designed by
Stanley Morison together with Starling Burgess and Victor
Lardent and first offered by Monotype). The constituent
standard faces of each family have been greatly extended, and
contain nearly 1200 glyphs each (though Chorus omits Greek
support, has no small-caps family and has approximately 900
glyphs). Each family is available in Adobe Type 1 and Open Type
formats, and LaTeX support (for use with a variety of
encodings) is provided. Vietnamese and Cyrillic characters were
added by Han The Thanh and Valek Filippov, respectively.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/tex-gyre
%{_texmfdistdir}/fonts/enc/dvips/tex-gyre
%{_texmfdistdir}/fonts/map/dvips/tex-gyre
%{_texmfdistdir}/fonts/opentype/public/tex-gyre
%{_texmfdistdir}/fonts/tfm/public/tex-gyre
%{_texmfdistdir}/fonts/type1/public/tex-gyre
%{_texmfdistdir}/tex/latex/tex-gyre
%_texmf_updmap_d/tex-gyre
%doc %{_texmfdistdir}/doc/fonts/tex-gyre

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/tex-gyre <<EOF
Map qag.map
Map qbk.map
Map qcr.map
Map qcs.map
Map qhv.map
Map qpl.map
Map qtm.map
Map qzc.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19647 |21mr|texlive-tex-gyre-math-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tex-gyre-math
Version:	20190228
Release:	1
Summary:	Maths fonts to match tex-gyre text fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/tex-gyre-math
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-gyre-math.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-gyre-math.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeX-Gyre-Math is to be a collection of maths fonts to match the
text fonts of the TeX-Gyre collection. The collection will be
made available in OpenType format, only; fonts will conform to
the developing standards for OpenType maths fonts. TeX-Gyre-
Math-Pagella (to match Tex-Gyre-Pagella) and TeX-Gyre-Math-
Termes (to match Tex-Gyre-Termes) fonts are provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/tex-gyre-math
%doc %{_texmfdistdir}/doc/fonts/tex-gyre-math

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19648 |21mr|texlive-texilikechaps-1.0a-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28553
# category Package
# catalog-ctan /macros/latex/contrib/misc/texilikechaps.sty
# catalog-date 2012-12-16 19:31:26 +0100
# catalog-license lppl
# catalog-version 1.0a
Name:		texlive-texilikechaps
Version:	1.0a
Release:	10
Summary:	Format chapters with a texi-like format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/misc/texilikechaps.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texilikechaps.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to reduce the size of the rather
large chapter headings in standard classes into a texi-like
smaller format. Details of the format may be controlled with
internal commands.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/texilikechaps/texilikechaps.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19649 |21mr|texlive-texilikecover-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/misc/texilikecover.sty
# catalog-date 2008-08-24 10:50:19 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-texilikecover
Version:	0.1
Release:	7
Summary:	A cover-page package, like TeXinfo
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/misc/texilikecover.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texilikecover.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package creates document cover pages, like those that
TeXinfo produces.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/texilikecover/texilikecover.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19650 |21mr|texlive-texinfo-5.1-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34228
# category Package
# catalog-ctan /macros/texinfo/texinfo
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license gpl
# catalog-version 5.1
Name:		texlive-texinfo
Epoch:		1
Version:	5.1
Release:	13
Summary:	Texinfo documentation system
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/texinfo/texinfo
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texinfo.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Texinfo is the preferred format for documentation in the GNU
project; the format may be used to produce online or printed
output from a single source. The Texinfo macros may be used to
produce printable output using TeX; other programs in the
distribution offer online interactive use (with hypertext
linkages in some cases). Note that a developers' snapshot of
the latest release of the Texinfo macros may be found in the
Texinfo 'latest' package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/texinfo/texinfo.ini
%{_texmfdistdir}/tex/texinfo/texinfo.tex
%{_texmfdistdir}/tex/texinfo/txi-cs.tex
%{_texmfdistdir}/tex/texinfo/txi-de.tex
%{_texmfdistdir}/tex/texinfo/txi-en.tex
%{_texmfdistdir}/tex/texinfo/txi-es.tex
%{_texmfdistdir}/tex/texinfo/txi-fr.tex
%{_texmfdistdir}/tex/texinfo/txi-it.tex
%{_texmfdistdir}/tex/texinfo/txi-nb.tex
%{_texmfdistdir}/tex/texinfo/txi-nl.tex
%{_texmfdistdir}/tex/texinfo/txi-nn.tex
%{_texmfdistdir}/tex/texinfo/txi-pl.tex
%{_texmfdistdir}/tex/texinfo/txi-pt.tex
%{_texmfdistdir}/tex/texinfo/txi-ru.tex
%{_texmfdistdir}/tex/texinfo/txi-sr.tex
%{_texmfdistdir}/tex/texinfo/txi-tr.tex
%{_texmfdistdir}/tex/texinfo/txi-uk.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19651 |21mr|texlive-tex-label-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16372
# category Package
# catalog-ctan /macros/latex/contrib/tex-label
# catalog-date 2009-12-14 16:47:24 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-tex-label
Version:	20190228
Release:	1
Summary:	Place a classification on each page of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tex-label
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-label.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-label.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-label.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Enables the user to place a 'classification' label on each
page, at the bottom to the right of the page number.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tex-label/tex-label.sty
%doc %{_texmfdistdir}/doc/latex/tex-label/README
%doc %{_texmfdistdir}/doc/latex/tex-label/tex-label-demo.pdf
%doc %{_texmfdistdir}/doc/latex/tex-label/tex-label-demo.tex
%doc %{_texmfdistdir}/doc/latex/tex-label/tex-label-doc.pdf
%doc %{_texmfdistdir}/doc/latex/tex-label/tex-label-doc.tex
#- source
%doc %{_texmfdistdir}/source/latex/tex-label/Makefile

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19652 |21mr|texlive-texlive-common-20190320-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34047
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-texlive-common
Version:	20190320
Release:	1
Summary:	TeX Live documentation (common elements)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-common.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-common.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-common package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/index.html
%doc %{_texmfdistdir}/doc/texlive/texlive-common/examples/ex5.tex
%doc %{_texmfdistdir}/doc/texlive/texlive-common/examples/ex6.tex
%doc %{_texmfdistdir}/doc/texlive/texlive-common/examples/ex6a.tex
%doc %{_texmfdistdir}/doc/texlive/texlive-common/examples/ex6b.tex
%doc %{_texmfdistdir}/doc/texlive/texlive-common/examples/ex6c.tex
%doc %{_texmfdistdir}/doc/texlive/texlive-common/install-lnx-main.png
%doc %{_texmfdistdir}/doc/texlive/texlive-common/nsis_installer.png
%doc %{_texmfdistdir}/doc/texlive/texlive-common/psview.png
%doc %{_texmfdistdir}/doc/texlive/texlive-common/stdcoll.png
%doc %{_texmfdistdir}/doc/texlive/texlive-common/tlmgr-general-options.png
%doc %{_texmfdistdir}/doc/texlive/texlive-common/tlmgr-gui.png
%doc %{_texmfdistdir}/doc/texlive/texlive-common/tlmgr-paper-options.png
%doc %{_texmfdistdir}/doc/texlive/texlive-common/tray-menu.png
%doc %{_texmfdistdir}/doc/texlive/texlive-common/wizard-w32.png

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19653 |21mr|texlive-texlive-cz-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texlive-cz
Version:	20190406
Release:	1
Summary:	TeX Live manual (Czech/Slovak)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-cz.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-cz.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-cz package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/texlive-cz

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19654 |21mr|texlive-texlive-de-20180504-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texlive-de
Version:	20180504
Release:	1
Summary:	TeX Live manual (German)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-de package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/texlive-de

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19655 |21mr|texlive-texlive-docindex-20190430-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32265
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-texlive-docindex
Version:	20190430
Release:	2
Summary:	top-level TeX Live doc.html, etc
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-docindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-docindex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-docindex

%description
These files are regenerated as needed, which is often, so we
make them a separate package.  See the tl-update-auto script
for the process.

#-----------------------------------------------------------------------
%files
%doc %{_tlpkgdir}/texmf
%doc %{_tlpkgdir}/texmf-dist
%{_texmfdistdir}/scripts/texlive/var/texcatalogue.keywords
%doc %{_tlpkgdir}/doc.html

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_tlpkgdir}
cp -fpa doc.html %{buildroot}%{_tlpkgdir}
pushd %{buildroot}%{_tlpkgdir}
    # create symlinks so that links in doc.html (should) work
    ln -sf %{_texmfdir} texmf
    ln -sf %{_texmfdistdir} texmf-dist
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19656 |21mr|texlive-texlive-en-20190328-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texlive-en
Version:	20190328
Release:	1
Summary:	TeX Live manual (English)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-en.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-en.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-en package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/*
%doc %{_texmfdistdir}/doc/info/*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19657 |21mr|texlive-texlive-fr-20190325-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30777
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-texlive-fr
Version:	20190325
Release:	9
Summary:	TeX Live manual (French)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-fr package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/texlive-fr/Makefile
%doc %{_texmfdistdir}/doc/texlive/texlive-fr/live4ht.cfg
%doc %{_texmfdistdir}/doc/texlive/texlive-fr/notes
%doc %{_texmfdistdir}/doc/texlive/texlive-fr/tex-live.css
%doc %{_texmfdistdir}/doc/texlive/texlive-fr/texlive-fr.css
%doc %{_texmfdistdir}/doc/texlive/texlive-fr/texlive-fr.html
%doc %{_texmfdistdir}/doc/texlive/texlive-fr/texlive-fr.pdf
%doc %{_texmfdistdir}/doc/texlive/texlive-fr/texlive-fr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19658 |21mr|texlive-texlive-it-20190406-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texlive-it
Version:	20190406
Release:	1
Summary:	TeX Live manual (Italian)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-it.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-it.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-it package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/texlive-it/Makefile
%doc %{_texmfdistdir}/doc/texlive/texlive-it/texlive-it.html
%doc %{_texmfdistdir}/doc/texlive/texlive-it/texlive-it.pdf
%doc %{_texmfdistdir}/doc/texlive/texlive-it/texlive-it.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19659 |21mr|texlive-texlive-pl-20180412-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30749
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-texlive-pl
Version:	20180412
Release:	1
Summary:	TeX Live manual (Polish)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-pl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-pl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-pl package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/texlive-pl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19660 |21mr|texlive-texlive-ru-20190331-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texlive-ru
Version:	20190331
Release:	1
Summary:	TeX Live manual (Russian)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-ru.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-ru.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-ru package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/texlive-ru

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19661 |21mr|texlive-texlive-scripts-20190227-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texlive-scripts
Version:	20190227
Release:	1
Summary:	TeX Live infrastructure programs
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-scripts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-scripts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-texlive-scripts.bin = %{EVRD}

%description
Includes install-tl, tl-portable, rungs, etc.; not needed for
tlmgr to run but still ours.  Not included in tlcritical.

#-----------------------------------------------------------------------
%files
%{_bindir}/rungs
%{_tlpkgdir}/install-tl
%{_texmfdistdir}/scripts/texlive/lua/texlive/*.tlu
%{_texmfdistdir}/scripts/texlive/*.tlu
%{_tlpkgdir}/installer/*.tcl
%{_tlpkgdir}/installer/*.pl
%{_tlpkgdir}/installer/*.png
%doc %{_mandir}/man1/install-tl.1*
%doc %{_texmfdistdir}/doc/man/man1/install-tl.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/texlive/rungs.tlu rungs
popd
mkdir -p %{buildroot}%{_tlpkgdir}
cp -fa install-tl %{buildroot}%{_tlpkgdir}
cp -fpar tlpkg/installer %{buildroot}%{_tlpkgdir}
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19662 |21mr|texlive-texlive-sr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texlive-sr
Version:	20190228
Release:	1
Summary:	TeX Live manual (Serbian)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-sr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-sr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-sr package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/texlive-sr

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19663 |21mr|texlive-texlive-zh-cn-20190321-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-texlive-zh-cn
Version:	20190321
Release:	1
Summary:	TeX Live manual (Chinese)
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-zh-cn.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlive-zh-cn.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive texlive-zh-cn package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/texlive/texlive-zh-cn

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19664 |21mr|texlive-texlogos-1.3.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19083
# category Package
# catalog-ctan /macros/latex/contrib/texlogos/texlogos.sty
# catalog-date 2007-01-16 09:34:54 +0100
# catalog-license lppl
# catalog-version 1.3.1
Name:		texlive-texlogos
Version:	1.3.1
Release:	7
Summary:	Ready-to-use LaTeX logos
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/texlogos/texlogos.sty
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texlogos.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXlogos defines an assortment of frequently used logos not
contained in base LaTeX itself. The MetaFont, MetaPost, AMS,
BibTeX and SliTeX logos are defined, as long as you have the
appropriate CM/Logo/AMS fonts. Currency symbols Euro, Cent,
Yen, Won and Naira are defined so as not to need TS1-encoded
fonts. Also defined are the C++ logo, with the '+' signs
properly positioned, and the logo of the Vienna University
Business Administration Center (BWZ).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/texlogos/texlogos.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19665 |21mr|texlive-texmate-2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/texmate
# catalog-date 2006-09-21 21:05:13 +0200
# catalog-license lppl
# catalog-version 2
Name:		texlive-texmate
Version:	2
Release:	7
Summary:	Comprehensive chess annotation in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/texmate
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texmate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texmate.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texmate.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXmate formats chess games from very simple ascii input. The
clean "1. e4 e5; 2. Nf3 Nc6; 3. Bb5 a6" will produce the same
results as the sloppier "1 e4 e5; Nf3 Nc6 3.. Bb5 a6". The
resulting format is fully customizable. There are 4 levels of
commentary: 1 is the main game, 2-3 are commentaries. Each has
its fonts, punctuation marks, etc., and these are also
customizable. The package includes a tool for the creation of
diagrams. The package works in conjunction with skak to produce
diagrams of the current position automatically. For chess
fonts, the package uses the chessfss system.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/texmate/texmate.sty
%doc %{_texmfdistdir}/doc/latex/texmate/README
%doc %{_texmfdistdir}/doc/latex/texmate/texmate2manual.pdf
%doc %{_texmfdistdir}/doc/latex/texmate/texmate2manual.tex
#- source
%doc %{_texmfdistdir}/source/latex/texmate/texmate.dtx
%doc %{_texmfdistdir}/source/latex/texmate/texmate.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19666 |21mr|texlive-texments-0.2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/texments
# catalog-date 2009-01-03 10:55:55 +0100
# catalog-license lppl
# catalog-version 0.2.0
Name:		texlive-texments
Version:	0.2.0
Release:	7
Summary:	Using the Pygments highlighter in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/texments
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texments.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texments.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texments.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package which allows to use the Pygments highlighter inside
LaTeX documents. Pygments supports syntax colouring of over 50
types of files, and ships with multiple colour schemes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/texments/texments.sty
%doc %{_texmfdistdir}/doc/latex/texments/README
%doc %{_texmfdistdir}/doc/latex/texments/texments.pdf
#- source
%doc %{_texmfdistdir}/source/latex/texments/texments.dtx
%doc %{_texmfdistdir}/source/latex/texments/texments.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19667 |21mr|texlive-tex-overview-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tex-overview
Version:	0.2
Release:	2
Summary:	An overview of the development of TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/tex-overview
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-overview.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-overview.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document gives a short overview of TeX and its children, as
well as the macro packages LaTeX and ConTeXt.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/tex-overview

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19668 |21mr|texlive-texpower-0.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /macros/latex/contrib/texpower
# catalog-date 2012-02-24 11:11:42 +0100
# catalog-license gpl
# catalog-version 0.2
Name:		texlive-texpower
Version:	0.2
Release:	13
Summary:	Create dynamic online presentations with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/texpower
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texpower.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texpower.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texpower.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-tpslifonts

%description
TeXPower is a bundle of packages intended to provide an all-
inclusive environment for designing pdf screen presentations to
be viewed in full-screen mode, especially for projecting
`online' with a video beamer. For some of its core functions,
it uses code derived from ppower4 packages. It is, however, not
a complete environment in itself: it relies on an existing
class for preparing slides (such as foiltex or seminar) or
another package such as pdfslide.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/texpower/automata.sty
%{_texmfdistdir}/tex/latex/texpower/fixseminar.sty
%{_texmfdistdir}/tex/latex/texpower/powersem.cls
%{_texmfdistdir}/tex/latex/texpower/texpower.sty
%{_texmfdistdir}/tex/latex/texpower/tpcolors.cfg
%{_texmfdistdir}/tex/latex/texpower/tplists.sty
%{_texmfdistdir}/tex/latex/texpower/tpoptions.cfg
%{_texmfdistdir}/tex/latex/texpower/tppstcol.sty
%{_texmfdistdir}/tex/latex/texpower/tpsem-a4.sty
%{_texmfdistdir}/tex/latex/texpower/tpsettings.cfg
%doc %{_texmfdistdir}/doc/latex/texpower/00readme.txt
%doc %{_texmfdistdir}/doc/latex/texpower/01install.txt
%doc %{_texmfdistdir}/doc/latex/texpower/02changes.txt
%doc %{_texmfdistdir}/doc/latex/texpower/FAQ-display.tex
%doc %{_texmfdistdir}/doc/latex/texpower/FAQ-printout.tex
%doc %{_texmfdistdir}/doc/latex/texpower/MakeExamples.sh
%doc %{_texmfdistdir}/doc/latex/texpower/__TPcfg.tex
%doc %{_texmfdistdir}/doc/latex/texpower/__TPindexing.tex
%doc %{_texmfdistdir}/doc/latex/texpower/__TPpreamble.tex
%doc %{_texmfdistdir}/doc/latex/texpower/bckwrdexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/bgndexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/contrib/00readme.txt
%doc %{_texmfdistdir}/doc/latex/texpower/contrib/config.landscapeplus
%doc %{_texmfdistdir}/doc/latex/texpower/contrib/tpmultiinc.tar
%doc %{_texmfdistdir}/doc/latex/texpower/divexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/dummy.java
%doc %{_texmfdistdir}/doc/latex/texpower/fancyexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/fig-1.mps
%doc %{_texmfdistdir}/doc/latex/texpower/fig-2.mps
%doc %{_texmfdistdir}/doc/latex/texpower/fig-3.mps
%doc %{_texmfdistdir}/doc/latex/texpower/foilsdemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/fulldemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/hilitexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/ifmslidemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/manual.pdf
%doc %{_texmfdistdir}/doc/latex/texpower/manual.tex
%doc %{_texmfdistdir}/doc/latex/texpower/mathexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/panelexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/parexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/pdfscrdemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/pdfslidemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/picexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/picltxexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/picpsexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/pp4sldemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/prosperdemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/seminardemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/simpledemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/slidesdemo.tex
%doc %{_texmfdistdir}/doc/latex/texpower/spanelexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/tabexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/tpslifonts.zip
%doc %{_texmfdistdir}/doc/latex/texpower/tpslifonts/00readme.txt
%doc %{_texmfdistdir}/doc/latex/texpower/tpslifonts/01install.txt
%doc %{_texmfdistdir}/doc/latex/texpower/tpslifonts/Makefile
%doc %{_texmfdistdir}/doc/latex/texpower/tpslifonts/slifontsexample.tex
%doc %{_texmfdistdir}/doc/latex/texpower/tpslifonts/tpslifonts.dtx
%doc %{_texmfdistdir}/doc/latex/texpower/tpslifonts/tpslifonts.ins
%doc %{_texmfdistdir}/doc/latex/texpower/verbexample.tex
#- source
%doc %{_texmfdistdir}/source/latex/texpower/Makefile
%doc %{_texmfdistdir}/source/latex/texpower/powersem.dtx
%doc %{_texmfdistdir}/source/latex/texpower/texpower-addons.dtx
%doc %{_texmfdistdir}/source/latex/texpower/texpower-cfg.dtx
%doc %{_texmfdistdir}/source/latex/texpower/texpower-doc.dtx
%doc %{_texmfdistdir}/source/latex/texpower/texpower.dtx
%doc %{_texmfdistdir}/source/latex/texpower/tpbundle.ins
%doc %{_texmfdistdir}/source/latex/texpower/tplists.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19669 |21mr|texlive-tex-ps-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tex-ps
Version:	20190228
Release:	1
Summary:	TeX to PostScript generic macros and add-ons
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/TeX-PS
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-ps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-ps.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeX to PostScript generic macros and add-ons: transformations
of EPS files, prepress preparation, color separation, mirror,
etc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/tex-ps
%{_texmfdistdir}/tex/generic/tex-ps
%doc %{_texmfdistdir}/doc/generic/tex-ps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19670 |21mr|texlive-tex-refs-0.4.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31946
# category Package
# catalog-ctan /info/tex-references
# catalog-date 2013-10-18 11:31:56 +0200
# catalog-license other-free
# catalog-version 0.4.8
Name:		texlive-tex-refs
Version:	0.4.8
Release:	10
Summary:	References for TeX and Friends
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/tex-references
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-refs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-refs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is an ongoing project with the aim of providing a help
file for LaTeX (and its friends like ConTeXt, Metapost,
Metafont, etc.) using a state-of-the-art source format, aka
DocBook/XML.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/tex-refs/README
%doc %{_texmfdistdir}/doc/generic/tex-refs/tex-refs-0.4.1.tar.bz2
%doc %{_texmfdistdir}/doc/generic/tex-refs/tex-refs.css
%doc %{_texmfdistdir}/doc/generic/tex-refs/tex-refs.epub
%doc %{_texmfdistdir}/doc/generic/tex-refs/tex-refs.html
%doc %{_texmfdistdir}/doc/generic/tex-refs/tex-refs.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19671 |21mr|texlive-texshade-1.25-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24716
# category Package
# catalog-ctan /macros/latex/contrib/texshade
# catalog-date 2011-12-01 13:24:33 +0100
# catalog-license gpl2
# catalog-version 1.24
Name:		texlive-texshade
Version:	1.25
Release:	2
Summary:	Package for setting nucleotide and peptide alignments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/texshade
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texshade.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texshade.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/texshade.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXshade is alignment shading software completely written in
TeX/LaTeX; it can process multiple sequence alignments in the
.MSF and the .ALN file formats. In addition to common shading
algorithms, it provides special shading modes showing
functional aspects, e.g. charge or hydropathy, and a wide range
of commands for handling shading colours, text styles, labels,
legends; it even allows the user to define completely new
shading modes. TeXshade combines highest flexibility with TeX
output quality -- all in a bundle that does not demand
excessive development time of the user.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/texshade/texshade.def
%{_texmfdistdir}/tex/latex/texshade/texshade.sty
%doc %{_texmfdistdir}/doc/latex/texshade/AQP1.phd
%doc %{_texmfdistdir}/doc/latex/texshade/AQP1.top
%doc %{_texmfdistdir}/doc/latex/texshade/AQP2spec.ALN
%doc %{_texmfdistdir}/doc/latex/texshade/AQPDNA.MSF
%doc %{_texmfdistdir}/doc/latex/texshade/AQP_HMM.ext
%doc %{_texmfdistdir}/doc/latex/texshade/AQP_HMM.sgl
%doc %{_texmfdistdir}/doc/latex/texshade/AQP_TC.asc
%doc %{_texmfdistdir}/doc/latex/texshade/AQPpro.MSF
%doc %{_texmfdistdir}/doc/latex/texshade/README
%doc %{_texmfdistdir}/doc/latex/texshade/ciliate.cod
%doc %{_texmfdistdir}/doc/latex/texshade/standard.cod
%doc %{_texmfdistdir}/doc/latex/texshade/texshade.pdf
%doc %{_texmfdistdir}/doc/latex/texshade/tsfaq.pdf
%doc %{_texmfdistdir}/doc/latex/texshade/tsfaq.tex
#- source
%doc %{_texmfdistdir}/source/latex/texshade/texshade.dtx
%doc %{_texmfdistdir}/source/latex/texshade/texshade.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19672 |21mr|texlive-textcase-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/textcase
# catalog-date 2007-03-01 12:49:13 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-textcase
Version:	20190228
Release:	1
Summary:	Case conversion ignoring mathematics, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/textcase
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textcase.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textcase.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textcase.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The textcase package offers commands \MakeTextUppercase and
\MakeTextLowercase are similar to the standard \MakeUppercase
and \MakeLowercase, but they do not change the case of any
sections of mathematics, or the arguments of \cite, \label and
\ref commands within the argument. A further command
\NoCaseChange does nothing but suppress case change within its
argument, so to force uppercase of a section including an
environment, one might say:
\MakeTextUppercase{...\NoCaseChange{\begin{foo}}
...\NoCaseChange{\end{foo}}...}.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/textcase/textcase.sty
%doc %{_texmfdistdir}/doc/latex/textcase/README
%doc %{_texmfdistdir}/doc/latex/textcase/textcase.pdf
#- source
%doc %{_texmfdistdir}/source/latex/textcase/textcase.dtx
%doc %{_texmfdistdir}/source/latex/textcase/textcase.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19673 |21mr|texlive-textfit-5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20591
# category Package
# catalog-ctan /macros/latex/contrib/textfit
# catalog-date 2010-11-28 20:21:22 +0100
# catalog-license lppl1.3
# catalog-version 5
Name:		texlive-textfit
Version:	5
Release:	7
Summary:	Fit text to a desired size
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/textfit
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textfit.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textfit.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textfit.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Package to fit text to a given width or height by scaling the
font. For example: \scaletowidth{3in}{This}. (The job is done
by calculating a magstep and applying it to the current font;
thus "This" will be very tall, as well as very wide; to scale
in just one dimension, use the facilities of the graphicx
package.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/textfit/textfit.sty
%doc %{_texmfdistdir}/doc/latex/textfit/README
%doc %{_texmfdistdir}/doc/latex/textfit/makefile
%doc %{_texmfdistdir}/doc/latex/textfit/manifest
%doc %{_texmfdistdir}/doc/latex/textfit/textfit.pdf
#- source
%doc %{_texmfdistdir}/source/latex/textfit/textfit.dtx
%doc %{_texmfdistdir}/source/latex/textfit/textfit.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19674 |21mr|texlive-textglos-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30788
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-textglos
Version:	1.0
Release:	2
Epoch:		1
Summary:	TeXLive textglos package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textglos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textglos.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textglos.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive textglos package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/textglos/textglos.sty
%doc %{_texmfdistdir}/doc/latex/textglos/README
%doc %{_texmfdistdir}/doc/latex/textglos/README.txt
%doc %{_texmfdistdir}/doc/latex/textglos/textglos.pdf
#- source
%doc %{_texmfdistdir}/source/latex/textglos/textglos.dtx
%doc %{_texmfdistdir}/source/latex/textglos/textglos.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19675 |21mr|texlive-textgreek-0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-textgreek
Version:	0.7
Release:	2
Summary:	Upright greek letters in text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/textgreek
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textgreek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textgreek.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textgreek.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Use upright greek letters as text symbols, e.g. \textbeta.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/textgreek/textgreek.sty
%doc %{_texmfdistdir}/doc/latex/textgreek/README
%doc %{_texmfdistdir}/doc/latex/textgreek/textgreek.pdf
#- source
%doc %{_texmfdistdir}/source/latex/textgreek/textgreek.dtx
%doc %{_texmfdistdir}/source/latex/textgreek/textgreek.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19676 |21mr|texlive-textmerg-2.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20677
# category Package
# catalog-ctan /macros/latex/contrib/textmerg
# catalog-date 2010-12-01 15:56:49 +0100
# catalog-license pd
# catalog-version 2.01
Name:		texlive-textmerg
Version:	2.01
Release:	7
Summary:	Merge text in TeX and LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/textmerg
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textmerg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textmerg.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textmerg.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Useful, for example, in mail merge.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/textmerg/textmerg.sty
%doc %{_texmfdistdir}/doc/generic/textmerg/results.dat
%doc %{_texmfdistdir}/doc/generic/textmerg/silly.dat
%doc %{_texmfdistdir}/doc/generic/textmerg/textmerg.pdf
%doc %{_texmfdistdir}/doc/generic/textmerg/textmerg.tex
%doc %{_texmfdistdir}/doc/generic/textmerg/tmexamp1.tex
%doc %{_texmfdistdir}/doc/generic/textmerg/tmexamp2.tex
%doc %{_texmfdistdir}/doc/generic/textmerg/tmexampp.tex
#- source
%doc %{_texmfdistdir}/source/generic/textmerg/textmerg.drv
%doc %{_texmfdistdir}/source/generic/textmerg/textmerg.dtx
%doc %{_texmfdistdir}/source/generic/textmerg/textmerg.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19677 |21mr|texlive-textopo-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23796
# category Package
# catalog-ctan /macros/latex/contrib/textopo
# catalog-date 2011-06-02 21:02:40 +0200
# catalog-license gpl
# catalog-version 1.5
Name:		texlive-textopo
Version:	1.5
Release:	7
Summary:	Annotated membrane protein topology plots
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/textopo
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textopo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textopo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textopo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for setting shaded and annotated membrane
protein topology plots and helical wheels.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/textopo/biotex.sty
%{_texmfdistdir}/tex/latex/textopo/textopo.def
%{_texmfdistdir}/tex/latex/textopo/textopo.sty
%doc %{_texmfdistdir}/doc/latex/textopo/AQP1.SP
%doc %{_texmfdistdir}/doc/latex/textopo/AQP1.hmm
%doc %{_texmfdistdir}/doc/latex/textopo/AQP1.phd
%doc %{_texmfdistdir}/doc/latex/textopo/AQP1.swp
%doc %{_texmfdistdir}/doc/latex/textopo/AQP1.tpo
%doc %{_texmfdistdir}/doc/latex/textopo/AQP2spec.ALN
%doc %{_texmfdistdir}/doc/latex/textopo/AQPpro.MSF
%doc %{_texmfdistdir}/doc/latex/textopo/AQPpro1.shd
%doc %{_texmfdistdir}/doc/latex/textopo/textopo.pdf
%doc %{_texmfdistdir}/doc/latex/textopo/textopo.txt
#- source
%doc %{_texmfdistdir}/source/latex/textopo/textopo.dtx
%doc %{_texmfdistdir}/source/latex/textopo/textopo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19678 |21mr|texlive-textpath-1.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/textpath
# catalog-date 2007-02-22 10:19:41 +0100
# catalog-license lppl
# catalog-version 1.6
Name:		texlive-textpath
Version:	1.6
Release:	7
Summary:	Setting text along a path with MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/textpath
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textpath.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textpath.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This MetaPost package provides macros to typeset text along a
free path with the help of LaTeX, thereby preserving kerning
and allowing for 8-bit input (accented characters).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/textpath/textpath.mp
%{_texmfdistdir}/tex/latex/textpath/textpathmp.sty
%doc %{_texmfdistdir}/doc/metapost/textpath/CHANGES
%doc %{_texmfdistdir}/doc/metapost/textpath/README
%doc %{_texmfdistdir}/doc/metapost/textpath/textpath.pdf
%doc %{_texmfdistdir}/doc/metapost/textpath/textpath.tex
%doc %{_texmfdistdir}/doc/metapost/textpath/textpathfigs.mp
%doc %{_texmfdistdir}/doc/metapost/textpath/textpathfigs.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19679 |21mr|texlive-textpos-1.9.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-textpos
Version:	1.9.1
Release:	1
Summary:	Place boxes at arbitrary positions on the LaTeX page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/textpos
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textpos.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textpos.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/textpos.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package to facilitate placement of boxes at absolute
positions on the LaTeX page. There are several reasons why this
might be useful, an important one being to help the creation of
large-format conference posters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/textpos
%doc %{_texmfdistdir}/doc/latex/textpos
#- source
%doc %{_texmfdistdir}/source/latex/textpos

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19680 |21mr|texlive-tex-virtual-academy-pl-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tex-virtual-academy-pl
Version:	20190228
Release:	1
Summary:	TeXLive tex-virtual-academy-pl package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-virtual-academy-pl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tex-virtual-academy-pl.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive tex-virtual-academy-pl package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/tex-virtual-academy-pl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19681 |21mr|texlive-thailatex-0.5.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27050
# category Package
# catalog-ctan /language/thai/thailatex
# catalog-date 2012-06-16 13:25:22 +0200
# catalog-license lppl
# catalog-version 0.5.0
Name:		texlive-thailatex
Version:	0.5.0
Release:	6
Summary:	Typeset Thai texts with standard LaTeX classes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/thai/thailatex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thailatex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thailatex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thailatex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
ThaiLaTeX enables typesetting Thai with standard LaTeX document
classes. It is designed to become a part of babel, and may be
used as such after a (small) patch to babel itself.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/thailatex/hyph-th-utf8.tex
%{_texmfdistdir}/tex/generic/thailatex/hyph-th.tex
%{_texmfdistdir}/tex/generic/thailatex/loadhyph-th.tex
%{_texmfdistdir}/tex/generic/thailatex/lthenc.def
%{_texmfdistdir}/tex/generic/thailatex/thai.ldf
%{_texmfdistdir}/tex/generic/thailatex/thswitch.sty
%{_texmfdistdir}/tex/generic/thailatex/tis620.def
%doc %{_texmfdistdir}/doc/latex/thailatex/README
%doc %{_texmfdistdir}/doc/latex/thailatex/examples/orchid.tex
%doc %{_texmfdistdir}/doc/latex/thailatex/examples/utf-example.tex
%doc %{_texmfdistdir}/doc/latex/thailatex/thai.pdf
#- source
%doc %{_texmfdistdir}/source/latex/thailatex/AUTHORS
%doc %{_texmfdistdir}/source/latex/thailatex/COPYING
%doc %{_texmfdistdir}/source/latex/thailatex/ChangeLog
%doc %{_texmfdistdir}/source/latex/thailatex/HISTORY
%doc %{_texmfdistdir}/source/latex/thailatex/INSTALL
%doc %{_texmfdistdir}/source/latex/thailatex/Makefile.am
%doc %{_texmfdistdir}/source/latex/thailatex/Makefile.in
%doc %{_texmfdistdir}/source/latex/thailatex/NEWS
%doc %{_texmfdistdir}/source/latex/thailatex/README
%doc %{_texmfdistdir}/source/latex/thailatex/README.hyphen
%doc %{_texmfdistdir}/source/latex/thailatex/TODO
%doc %{_texmfdistdir}/source/latex/thailatex/aclocal.m4
%doc %{_texmfdistdir}/source/latex/thailatex/babel/Makefile.am
%doc %{_texmfdistdir}/source/latex/thailatex/babel/Makefile.in
%doc %{_texmfdistdir}/source/latex/thailatex/babel/lthenc.def
%doc %{_texmfdistdir}/source/latex/thailatex/babel/thai.dtx
%doc %{_texmfdistdir}/source/latex/thailatex/babel/thai.ins
%doc %{_texmfdistdir}/source/latex/thailatex/babel/thswitch.sty
%doc %{_texmfdistdir}/source/latex/thailatex/babel/tis620.def
%doc %{_texmfdistdir}/source/latex/thailatex/configure
%doc %{_texmfdistdir}/source/latex/thailatex/configure.in
%doc %{_texmfdistdir}/source/latex/thailatex/doc/Makefile.am
%doc %{_texmfdistdir}/source/latex/thailatex/doc/Makefile.in
%doc %{_texmfdistdir}/source/latex/thailatex/doc/orchid.tex
%doc %{_texmfdistdir}/source/latex/thailatex/doc/utf-example.tex
%doc %{_texmfdistdir}/source/latex/thailatex/emacs/Makefile.am
%doc %{_texmfdistdir}/source/latex/thailatex/emacs/Makefile.in
%doc %{_texmfdistdir}/source/latex/thailatex/emacs/thai-latex-setup.el
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/Makefile.am
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/Makefile.in
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/README
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/conv-utf8-hex.sed
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/diff-dicts.sh
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/hyph-th-utf8.tex.in
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/hyph-th.tex.in
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/loadhyph-th.tex
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-city.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-collection.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-common.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-country.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-district.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-geo.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-history.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-ict.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-lang-ethnic.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-proper.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-science.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-spell.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-std-compound.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/tdict-std.txt
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/test-hyphen.sh
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/thai-exc.pat
%doc %{_texmfdistdir}/source/latex/thailatex/hyphen/thai.tra
%doc %{_texmfdistdir}/source/latex/thailatex/install-sh
%doc %{_texmfdistdir}/source/latex/thailatex/missing
%doc %{_texmfdistdir}/source/latex/thailatex/scripts/Makefile.am
%doc %{_texmfdistdir}/source/latex/thailatex/scripts/Makefile.in
%doc %{_texmfdistdir}/source/latex/thailatex/scripts/sync-babel
%doc %{_texmfdistdir}/source/latex/thailatex/scripts/sync-thailatex.in
%doc %{_texmfdistdir}/source/latex/thailatex/scripts/tlatex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19682 |21mr|texlive-thalie-0.10a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-thalie
Version:	0.10a
Release:	1
Summary:	Typeset drama plays
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thalie
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thalie.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thalie.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thalie.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides tools to typeset drama plays. It defines
commands to introduce characters' lines, to render stage
directions, to divide a play into acts and scenes and to build
the dramatis personae automatically.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thalie
%doc %{_texmfdistdir}/doc/latex/thalie
#- source
%doc %{_texmfdistdir}/source/latex/thalie

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19683 |21mr|texlive-theoremref-20180303-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-theoremref
Version:	20180303
Release:	3
Summary:	References with automatic theorem names
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/theoremref
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/theoremref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/theoremref.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The theoremref package provides variants of the \label and \ref
commands for theorem-like environments, capable of
automatically typesetting references including the theorem name
(apart from the theorem number). The scheme is particularly
valuable if the author decides to change a lemma to a
proposition or a theorem (or whatever).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/theoremref
%doc %{_texmfdistdir}/doc/latex/theoremref

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19684 |21mr|texlive-thesis-titlepage-fhac-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/thesis-titlepage-fhAC
# catalog-date 2007-03-12 14:32:12 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-thesis-titlepage-fhac
Version:	0.1
Release:	7
Summary:	Little style to create a standard titlepage for diploma thesis
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thesis-titlepage-fhAC
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thesis-titlepage-fhac.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thesis-titlepage-fhac.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thesis-titlepage-fhac.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Yet another thesis titlepage style: support of Fachhochschule
Aachen (Standort Juelich).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thesis-titlepage-fhac/fhACtitlepage.cfg
%{_texmfdistdir}/tex/latex/thesis-titlepage-fhac/fhACtitlepage.sty
%{_texmfdistdir}/tex/latex/thesis-titlepage-fhac/figbib_add.sty
%{_texmfdistdir}/tex/latex/thesis-titlepage-fhac/gloss_add.sty
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/LogoFH.eps
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/LogoFH.pdf
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/LogoFH.png
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/LogoFH.tif
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/README
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/antrc_pre.bat
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/build.xml
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/diplomArbeit.ltx
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/doxygen_header.tex
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/fhACtitlepage.pdf
%doc %{_texmfdistdir}/doc/latex/thesis-titlepage-fhac/pdf_with_figbig_and_glossar.tco
#- source
%doc %{_texmfdistdir}/source/latex/thesis-titlepage-fhac/doxygen_header.dtx.input
%doc %{_texmfdistdir}/source/latex/thesis-titlepage-fhac/fhACtitlepage.dtx
%doc %{_texmfdistdir}/source/latex/thesis-titlepage-fhac/fhACtitlepage.ins
%doc %{_texmfdistdir}/source/latex/thesis-titlepage-fhac/gloss_add.dtx.input

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19685 |21mr|texlive-thinsp-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-thinsp
Version:	0.2
Release:	2
Summary:	A stretchable \thinspace for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thinsp
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thinsp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thinsp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package redefines \thinspace to have a stretch component.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thinsp
%doc %{_texmfdistdir}/doc/latex/thinsp

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19686 |21mr|texlive-thmtools-66-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26251
# category Package
# catalog-ctan /macros/latex/exptl/thmtools
# catalog-date 2012-04-27 11:57:13 +0200
# catalog-license lppl
# catalog-version 62
Name:		texlive-thmtools
Version:	66
Release:	2
Summary:	Extensions to theorem environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/exptl/thmtools
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thmtools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thmtools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thmtools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides several packages for commonly-needed
support for typesetting theorems. The packages should work with
kernel theorems (theorems 'out of the box' with LaTeX), and the
theorem and amsthm packages. Features of the bundle include: -
a key-value interface to \newtheorem; - a \listoftheorems
command; - hyperref and autoref compatibility; - a mechanism
for restating entire theorems in a single macro call.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thmtools/aliasctr.sty
%{_texmfdistdir}/tex/latex/thmtools/parseargs.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-amsthm.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-autoref.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-beamer.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-kv.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-listof.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-llncs.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-ntheorem.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-patch.sty
%{_texmfdistdir}/tex/latex/thmtools/thm-restate.sty
%{_texmfdistdir}/tex/latex/thmtools/thmdef-mdframed.sty
%{_texmfdistdir}/tex/latex/thmtools/thmdef-shaded.sty
%{_texmfdistdir}/tex/latex/thmtools/thmdef-thmbox.sty
%{_texmfdistdir}/tex/latex/thmtools/thmtools.sty
%{_texmfdistdir}/tex/latex/thmtools/unique.sty
%doc %{_texmfdistdir}/doc/latex/thmtools/COPYING
%doc %{_texmfdistdir}/doc/latex/thmtools/README
%doc %{_texmfdistdir}/doc/latex/thmtools/TODO
%doc %{_texmfdistdir}/doc/latex/thmtools/VERSION.tex
%doc %{_texmfdistdir}/doc/latex/thmtools/thmtools-manual.tex
%doc %{_texmfdistdir}/doc/latex/thmtools/thmtools.pdf
#- source
%doc %{_texmfdistdir}/source/latex/thmtools/aliasctr.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/parseargs.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-amsthm.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-autoref.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-beamer.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-kv.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-listof.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-llncs.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-ntheorem.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-patch.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thm-restate.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thmdef-mdframed.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thmdef-shaded.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thmdef-thmbox.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thmtools.dtx
%doc %{_texmfdistdir}/source/latex/thmtools/thmtools.ins
%doc %{_texmfdistdir}/source/latex/thmtools/unique.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19687 |21mr|texlive-threadcol-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28754
# category Package
# catalog-ctan /macros/latex/contrib/threadcol
# catalog-date 2013-01-06 14:14:24 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-threadcol
Version:	1.0
Release:	10
Summary:	Organize document columns into PDF "article thread"
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/threadcol
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threadcol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threadcol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threadcol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package combines a document's columns into a PDF "article
thread". PDF readers that support this mechanism (probably
Adobe Acrobat/Reader only) can be instructed to scroll
automatically from column to column, which facilitates on-
screen reading of two-column documents. Even for single-column
documents, threadcol supports the creation of multiple article
threads, which help organize discontiguous but logically
related regions of text into a form that the user can scroll
through as if its contents were contiguous.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/threadcol/threadcol.sty
%doc %{_texmfdistdir}/doc/latex/threadcol/README
%doc %{_texmfdistdir}/doc/latex/threadcol/threadcol.pdf
#- source
%doc %{_texmfdistdir}/source/latex/threadcol/articles-ar9.png
%doc %{_texmfdistdir}/source/latex/threadcol/threadcol.dtx
%doc %{_texmfdistdir}/source/latex/threadcol/threadcol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19688 |21mr|texlive-threeddice-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20675
# category Package
# catalog-ctan /graphics/metapost/contrib/macros/threeddice
# catalog-date 2010-12-07 13:54:00 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-threeddice
Version:	1.0
Release:	7
Summary:	Create images of dice with one, two, or three faces showing, using MetaPost
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/metapost/contrib/macros/threeddice
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threeddice.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threeddice.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides MetaPost code to create all possible
symmetrical views (up to rotation) of a right-handed die.
Configuration is possible by editing the source code, following
the guidance in the documentation.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/metapost/threeddice/threeddice.mp
%doc %{_texmfdistdir}/doc/metapost/threeddice/README
%doc %{_texmfdistdir}/doc/metapost/threeddice/threeddice-doc.pdf
%doc %{_texmfdistdir}/doc/metapost/threeddice/threeddice-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar metapost doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19689 |21mr|texlive-threeparttable-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17383
# category Package
# catalog-ctan /macros/latex/contrib/threeparttable
# catalog-date 2010-03-09 13:13:30 +0100
# catalog-license other-free
# catalog-version undef
Name:		texlive-threeparttable
Version:	20190228
Release:	1
Summary:	Tables with captions and notes all the same width
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/threeparttable
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threeparttable.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threeparttable.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a scheme for tables that have a structured note
section, after the caption. This scheme provides an answer to
the old problem of putting footnotes in tables -- by making
footnotes entirely unnecessary. Note that a threeparttable is
not a float of itself; but you can place it in a table or a
table* environment, if necessary.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/threeparttable/3parttable.sty
%{_texmfdistdir}/tex/latex/threeparttable/threeparttable.sty
%doc %{_texmfdistdir}/doc/latex/threeparttable/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/threeparttable/threeparttable.pdf
%doc %{_texmfdistdir}/doc/latex/threeparttable/threeparttable.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19690 |21mr|texlive-threeparttablex-0.3-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34206
# category Package
# catalog-ctan /macros/latex/contrib/threeparttablex
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl
# catalog-version 0.3
Name:		texlive-threeparttablex
Version:	0.3
Release:	11
Summary:	Notes in longtables
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/threeparttablex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threeparttablex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/threeparttablex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the functionality of the threeparttable
package to tables created using the longtable package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/threeparttablex/threeparttablex.sty
%doc %{_texmfdistdir}/doc/latex/threeparttablex/README
%doc %{_texmfdistdir}/doc/latex/threeparttablex/threeparttablex.pdf
%doc %{_texmfdistdir}/doc/latex/threeparttablex/threeparttablex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19691 |21mr|texlive-thumb-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16549
# category Package
# catalog-ctan /macros/latex/contrib/thumb
# catalog-date 2006-12-11 00:37:24 +0100
# catalog-license gpl
# catalog-version 1.0
Name:		texlive-thumb
Version:	1.0
Release:	7
Summary:	Thumb marks in documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thumb
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumb.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumb.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumb.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Place thumb marks in books, manuals and reference maunals.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thumb/thumb.sty
%doc %{_texmfdistdir}/doc/latex/thumb/README
%doc %{_texmfdistdir}/doc/latex/thumb/thumb.pdf
#- source
%doc %{_texmfdistdir}/source/latex/thumb/thumb.dtx
%doc %{_texmfdistdir}/source/latex/thumb/thumb.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19692 |21mr|texlive-thumbpdf-3.17-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29725
# category Package
# catalog-ctan /support/thumbpdf
# catalog-date 2012-11-14 18:32:01 +0100
# catalog-license lppl
# catalog-version 3.15
Name:		texlive-thumbpdf
Version:	3.17
Release:	1
Summary:	Thumbnails for pdfTeX and dvips/ps2pdf
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/support/thumbpdf
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumbpdf.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumbpdf.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-thumbpdf.bin = %{EVRD}

%description
A Perl script that provides support for thumbnails in pdfTeX
and dvips/ps2pdf. The script uses ghostscript to generate the
thumbnails which get represented in a TeX readable file that is
read by the package thumbpdf.sty to automatically include the
thumbnails. This arrangement works with both plain TeX and
LaTeX.


#-----------------------------------------------------------------------
%files
%{_bindir}/thumbpdf
%{_texmfdistdir}/scripts/thumbpdf/thumbpdf.pl
%{_texmfdistdir}/tex/generic/thumbpdf/thumbpdf.sty
%{_texmfdistdir}/tex/generic/thumbpdf/thumbpdf.tex
%doc %{_texmfdistdir}/doc/generic/thumbpdf/README
%doc %{_mandir}/man1/thumbpdf.1*
%doc %{_texmfdistdir}/doc/man/man1/thumbpdf.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/thumbpdf/thumbpdf.pl thumbpdf
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19693 |21mr|texlive-thumbs-1.0q-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33134
# category Package
# catalog-ctan /macros/latex/contrib/thumbs
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license lppl1.3
# catalog-version 1.0n
Name:		texlive-thumbs
Version:	1.0q
Release:	3
Summary:	Create thumb indexes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thumbs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumbs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumbs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumbs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package puts running, customizable thumb marks in the outer
margin, moving downward as the chapter number (or whatever
shall be marked by the thumb marks) increases. Additionally an
overview page/table of thumb marks can be added automatically,
which gives the names of the thumbed objects, the page where
the object/thumb mark first appears, and the thumb mark itself
at its correct position. The thumb marks are useful for large
documents (such as reference guides, anthologies, etc.), where
a quick and easy way to find (for example) a chapter is needed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thumbs/thumbs.sty
%doc %{_texmfdistdir}/doc/latex/thumbs/README
%doc %{_texmfdistdir}/doc/latex/thumbs/thumbs-example.pdf
%doc %{_texmfdistdir}/doc/latex/thumbs/thumbs-example.tex
%doc %{_texmfdistdir}/doc/latex/thumbs/thumbs.pdf
#- source
%doc %{_texmfdistdir}/source/latex/thumbs/thumbs.drv
%doc %{_texmfdistdir}/source/latex/thumbs/thumbs.dtx
%doc %{_texmfdistdir}/source/latex/thumbs/thumbs.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19694 |21mr|texlive-thumby-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16736
# category Package
# catalog-ctan /macros/latex/contrib/thumby
# catalog-date 2010-01-17 11:28:50 +0100
# catalog-license gpl3
# catalog-version 0.1
Name:		texlive-thumby
Version:	0.1
Release:	7
Summary:	Create thumb indexes for printed books
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thumby
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumby.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thumby.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package can generate thumb indexes for your document. It
features printing thumb indexes on one- or two-sided pages,
along with background- and foreground-color selection and full
LaTeX styling of the chapter numbers in the thumb indexes. The
height of each thumb index is automatically chosen based on the
number of chapters in your document, while the width is chosen
by the user. The package is designed to work with the memoir
class, and also requires PerlTeX and tikz/.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/thumby/thumby.sty
%doc %{_texmfdistdir}/doc/latex/thumby/LICENSE
%doc %{_texmfdistdir}/doc/latex/thumby/README
%doc %{_texmfdistdir}/doc/latex/thumby/example.pdf
%doc %{_texmfdistdir}/doc/latex/thumby/latexmkrc
%doc %{_texmfdistdir}/doc/latex/thumby/thumby.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19695 |21mr|texlive-thuthesis-5.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-thuthesis
Version:	5.5.2
Release:	1
Summary:	Thesis template for Tsinghua University
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/thuthesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thuthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thuthesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/thuthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
ThuThesis is a LaTeX thesis template package for Tsinghua
University in order to make it easy to write theses for either
bachelor's, master's or doctor's degree.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/thuthesis
%{_texmfdistdir}/tex/latex/thuthesis
%doc %{_texmfdistdir}/doc/latex/thuthesis
#- source
%doc %{_texmfdistdir}/source/latex/thuthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19696 |21mr|texlive-ticket-0.4d-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ticket
Version:	0.4d
Release:	3
Summary:	Make labels, visting-cards, pins with LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ticket
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ticket.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ticket.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides an easy to handle interface to produce visiting cards,
labels for your files, stickers, pins and other stuff for your
office, conferences etc. All you need is a definition of your
'ticket' included in a ticket definition file and the two
commands \ticketdefault and \ticket.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ticket
%doc %{_texmfdistdir}/doc/latex/ticket

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19697 |21mr|texlive-tie-2.4-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /web/tie
# catalog-date 2014-01-03 12:10:34 +0100
# catalog-license other-free
# catalog-version 2.4
Name:		texlive-tie
Version:	2.4
Release:	16
Summary:	Allow multiple web change files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/web/tie
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tie.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tie.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-tie.bin

%description
Tie was originally developed to allow web programmers to apply
more than one change file to their source. The program may also
be used to create a new version of a .web file that
incorporates existing changes.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/tie.1*
%doc %{_texmfdistdir}/doc/man/man1/tie.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19698 |21mr|texlive-tikz-3dplot-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25087
# category Package
# catalog-ctan /graphics/pgf/contrib/tikz-3dplot
# catalog-date 2012-01-12 00:06:34 +0100
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-tikz-3dplot
Version:	20190228
Release:	1
Summary:	Coordinate transformation styles for 3d plotting in TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-3dplot
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-3dplot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-3dplot.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides straightforward ways to define three-
dimensional coordinate frames through which to plot in TikZ.
The user can specify the orientation of the main coordinate
frame, and use standard TikZ commands and coordinates to render
their tikzfigure. A secondary coordinate frame is provided to
allow rotations and translations with respect to the main
coordinate frame. In addition, the package can also handle
plotting user-specified functions in spherical polar
coordinates, where both the radius and fill color can be
expressed as parametric functions of polar angles.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikz-3dplot/tikz-3dplot.sty
%doc %{_texmfdistdir}/doc/latex/tikz-3dplot/CHANGELOG
%doc %{_texmfdistdir}/doc/latex/tikz-3dplot/README
%doc %{_texmfdistdir}/doc/latex/tikz-3dplot/externalize_images.bat
%doc %{_texmfdistdir}/doc/latex/tikz-3dplot/tikz-3dplot_documentation.pdf
%doc %{_texmfdistdir}/doc/latex/tikz-3dplot/tikz-3dplot_documentation.tex
%doc %{_texmfdistdir}/doc/latex/tikz-3dplot/tikz-3dplot_documentation_figures.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19699 |21mr|texlive-tikz-bayesnet-0.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30094
# category Package
# catalog-ctan /graphics/pgf/contrib/tikz-bayesnet
# catalog-date 2013-04-24 11:34:47 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-tikz-bayesnet
Version:	0.1
Release:	9
Summary:	Draw Bayesian networks, graphical models and directed factor graphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-bayesnet
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-bayesnet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-bayesnet.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The package provides a library supporting the display of
Bayesian networks, graphical models and (directed) factor
graphs in LaTeX.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/LICENSE_GPL
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/LICENSE_LPPL
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/README.rst
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/example.tex
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/model_citation_influence.tex
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/model_lda.tex
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/model_pca.tex
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/model_pca2.tex
%doc %{_texmfdistdir}/doc/latex/tikz-bayesnet/tikzlibrarybayesnet.code.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19700 |21mr|texlive-tikz-cd-0.9e-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33126
# category Package
# catalog-ctan /graphics/pgf/contrib/tikz-cd
# catalog-date 2014-03-08 06:15:50 +0100
# catalog-license gpl3
# catalog-version 0.9b
Name:		texlive-tikz-cd
Version:	0.9e
Release:	2
Summary:	Create commutative diagrams with TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-cd
License:	GPL3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-cd.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-cd.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The general-purpose drawing package TiKZ can be used to typeset
commutative diagrams and other kinds of mathematical pictures,
generating high-quality results. The purpose of this package is
to make the process of creation of such diagrams easier by
providing a convenient set of macros and reasonable default
settings. This package also includes an arrow tip library that
match closely the arrows present in the Computer Modern
typeface.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/tikz-cd/tikzlibrarycd.code.tex
%{_texmfdistdir}/tex/latex/tikz-cd/tikz-cd.sty
%doc %{_texmfdistdir}/doc/latex/tikz-cd/README
%doc %{_texmfdistdir}/doc/latex/tikz-cd/tikz-cd-doc.pdf
%doc %{_texmfdistdir}/doc/latex/tikz-cd/tikz-cd-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19701 |21mr|texlive-tikz-dependency-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tikz-dependency
Version:	1.2
Release:	2
Summary:	A library for drawing dependency graphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-dependency
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-dependency.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-dependency.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a library that draws together existing
TikZ facilities to make a comfortable environment for drawing
dependency graphs. Basic facilities of the package include a
lot of styling facilities, to let you personalize the look and
feel of the graphs.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikz-dependency
%doc %{_texmfdistdir}/doc/latex/tikz-dependency

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19702 |21mr|texlive-tikzinclude-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28715
# category Package
# catalog-ctan /graphics/pgf/contrib/tikzinclude
# catalog-date 2013-01-03 19:43:19 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-tikzinclude
Version:	1.0
Release:	10
Summary:	Import TikZ images from colletions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikzinclude
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzinclude.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzinclude.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzinclude.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package addresses the problem of importing only one TikZ-
image from a file holding multiple images.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikzinclude/tikzinclude.sty
%doc %{_texmfdistdir}/doc/latex/tikzinclude/README
%doc %{_texmfdistdir}/doc/latex/tikzinclude/tikzinclude.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tikzinclude/tikzinclude.dtx
%doc %{_texmfdistdir}/source/latex/tikzinclude/tikzinclude.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19703 |21mr|texlive-tikz-inet-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pgf/contrib/tikz-inet
# catalog-date 2008-08-24 14:43:48 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-tikz-inet
Version:	0.1
Release:	7
Summary:	Draw interaction nets with TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-inet
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-inet.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-inet.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends TikZ with macros to draw interaction nets.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikz-inet/tikz-inet.sty
%doc %{_texmfdistdir}/doc/latex/tikz-inet/README
%doc %{_texmfdistdir}/doc/latex/tikz-inet/tikz-inet-doc.pdf
%doc %{_texmfdistdir}/doc/latex/tikz-inet/tikz-inet-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19704 |21mr|texlive-tikzmark-1.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tikzmark
Version:	1.6
Release:	1
Summary:	Use TikZ's method of remembering a position on a page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikzmark
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzmark.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzmark.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzmark.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The tikzmark package defines a command to "remember" a position
on a page for later (or earlier) use, primarily (but not
exclusively) with TikZ.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikzmark
%doc %{_texmfdistdir}/doc/latex/tikzmark
#- source
%doc %{_texmfdistdir}/source/latex/tikzmark

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19705 |21mr|texlive-tikz-opm-0.1.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32769
# category Package
# catalog-ctan /graphics/pgf/contrib/tikz-opm
# catalog-date 2014-01-23 20:30:08 +0100
# catalog-license lppl1.3
# catalog-version 0.1.1
Name:		texlive-tikz-opm
Version:	0.1.1
Release:	6
Summary:	Typeset OPM diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-opm
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-opm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-opm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typeset OPM (Object-Process Methodology) diagrams using LaTeX
and pgf/TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikz-opm/tikz-opm.sty
%doc %{_texmfdistdir}/doc/latex/tikz-opm/README
%doc %{_texmfdistdir}/doc/latex/tikz-opm/tikz-opm.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19706 |21mr|texlive-tikzorbital-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tikzorbital
Version:	20190228
Release:	1
Summary:	Atomic and molecular orbitals using TiKZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikzorbital
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzorbital.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzorbital.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Atomic s, p and d orbitals may be drawn, as well as molecular
orbital diagrams.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikzorbital
%doc %{_texmfdistdir}/doc/latex/tikzorbital

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19707 |21mr|texlive-tikzpagenodes-1.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27723
# category Package
# catalog-ctan /graphics/pgf/contrib/tikzpagenodes
# catalog-date 2012-09-16 14:57:16 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-tikzpagenodes
Version:	1.1
Release:	10
Summary:	Create commutative diagrams with TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikzpagenodes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzpagenodes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzpagenodes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzpagenodes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides special PGF/TikZ nodes for the text,
marginpar, footer and header area of the current page. They are
inspired by the 'current page' node defined by PGF/TikZ itself.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikzpagenodes/tikzpagenodes.sty
%doc %{_texmfdistdir}/doc/latex/tikzpagenodes/README
%doc %{_texmfdistdir}/doc/latex/tikzpagenodes/tikzpagenodes.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tikzpagenodes/tikzpagenodes.dtx
%doc %{_texmfdistdir}/source/latex/tikzpagenodes/tikzpagenodes.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19708 |21mr|texlive-tikzpfeile-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25777
# category Package
# catalog-ctan /graphics/pgf/contrib/tikzpfeile
# catalog-date 2012-03-28 23:45:32 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-tikzpfeile
Version:	1.0
Release:	6
Summary:	Draw arrows using PGF/TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikzpfeile
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzpfeile.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzpfeile.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzpfeile.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
In a document with a lot of diagrams created with PGF/TikZ,
there is a possibility of the reader being distracted by
different sorts of arrowheads in the diagrams and in the text
(as, e.g., in \rightarrow). The package defines macros to
create all arrows using PGF/TikZ, so as to avoid the problem.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikzpfeile/tikzpfeile.sty
%doc %{_texmfdistdir}/doc/latex/tikzpfeile/README
%doc %{_texmfdistdir}/doc/latex/tikzpfeile/tikzpfeile.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tikzpfeile/tikzpfeile.dtx
%doc %{_texmfdistdir}/source/latex/tikzpfeile/tikzpfeile.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19709 |21mr|texlive-tikzposter-2.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32732
# category Package
# catalog-ctan /graphics/pgf/contrib/tikzposter
# catalog-date 2014-01-20 12:50:28 +0100
# catalog-license lppl1.2
# catalog-version 2.0
Name:		texlive-tikzposter
Version:	2.0
Release:	6
Summary:	Create scientific posters using TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikzposter
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzposter.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzposter.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzposter.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A document class provides a simple way of using TikZ for
generating posters. Several formatting options are available,
and spacing and layout of the poster is to a large extent
automated.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikzposter/tikzposter.cls
%{_texmfdistdir}/tex/latex/tikzposter/tikzposterBackgroundstyles.tex
%{_texmfdistdir}/tex/latex/tikzposter/tikzposterBlockstyles.tex
%{_texmfdistdir}/tex/latex/tikzposter/tikzposterColorpalettes.tex
%{_texmfdistdir}/tex/latex/tikzposter/tikzposterColorstyles.tex
%{_texmfdistdir}/tex/latex/tikzposter/tikzposterInnerblockstyles.tex
%{_texmfdistdir}/tex/latex/tikzposter/tikzposterLayoutthemes.tex
%{_texmfdistdir}/tex/latex/tikzposter/tikzposterNotestyles.tex
%{_texmfdistdir}/tex/latex/tikzposter/tikzposterTitlestyles.tex
%doc %{_texmfdistdir}/doc/latex/tikzposter/README
%doc %{_texmfdistdir}/doc/latex/tikzposter/tikzposter-example.tex
%doc %{_texmfdistdir}/doc/latex/tikzposter/tikzposter-template.tex
%doc %{_texmfdistdir}/doc/latex/tikzposter/tikzposter.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tikzposter/tikzposter.dtx
%doc %{_texmfdistdir}/source/latex/tikzposter/tikzposter.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19710 |21mr|texlive-tikz-qtree-1.20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26108
# category Package
# catalog-ctan /graphics/pgf/contrib/tikz-qtree
# catalog-date 2012-04-23 11:23:52 +0200
# catalog-license gpl
# catalog-version 1.2
Name:		texlive-tikz-qtree
Version:	1.20
Release:	7
Summary:	Use existing qtree syntax for trees in TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-qtree
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-qtree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-qtree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a macro for drawing trees with TikZ using
the easy syntax of Alexis Dimitriadis' Qtree. It improves on
TikZ's standard tree-drawing facility by laying out tree nodes
without collisions; it improves on Qtree by adding lots of
features from TikZ (for example, edge labels, arrows between
nodes); and it improves on pst-qtree in being usable with
pdfTeX and XeTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikz-qtree/pgfsubpic.sty
%{_texmfdistdir}/tex/latex/tikz-qtree/pgfsubpic.tex
%{_texmfdistdir}/tex/latex/tikz-qtree/pgftree.sty
%{_texmfdistdir}/tex/latex/tikz-qtree/pgftree.tex
%{_texmfdistdir}/tex/latex/tikz-qtree/tikz-qtree-compat.sty
%{_texmfdistdir}/tex/latex/tikz-qtree/tikz-qtree.sty
%{_texmfdistdir}/tex/latex/tikz-qtree/tikz-qtree.tex
%doc %{_texmfdistdir}/doc/latex/tikz-qtree/README
%doc %{_texmfdistdir}/doc/latex/tikz-qtree/tikz-qtree-manual.pdf
%doc %{_texmfdistdir}/doc/latex/tikz-qtree/tikz-qtree-manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19711 |21mr|texlive-tikzscale-0.2.6-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30637
# category Package
# catalog-ctan /graphics/pgf/contrib/tikzscale
# catalog-date 2013-05-22 10:58:45 +0200
# catalog-license lppl1.3
# catalog-version 0.2.6
Name:		texlive-tikzscale
Version:	0.2.6
Release:	11
Summary:	Resize pictures while respecting text size
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikzscale
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzscale.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzscale.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzscale.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends the \includegraphics command to support
tikzpictures. It allows scaling of TikZ images and PGFPlots to
a given width or height without changing the text size.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikzscale/tikzscale.sty
%doc %{_texmfdistdir}/doc/latex/tikzscale/3Dplot.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/README
%doc %{_texmfdistdir}/doc/latex/tikzscale/alt.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/histogramNormal.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/invisible.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/linewidth.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/only.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/onslide.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/pause.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/pgfplots-test.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/pgfplots.randn.dat
%doc %{_texmfdistdir}/doc/latex/tikzscale/temporal.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/test-tikzscale.pdf
%doc %{_texmfdistdir}/doc/latex/tikzscale/test-tikzscale.tex
%doc %{_texmfdistdir}/doc/latex/tikzscale/testNode.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/testRectangle.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/testgraphic2D.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/tikzscale-beamer.tex
%doc %{_texmfdistdir}/doc/latex/tikzscale/tikzscale.pdf
%doc %{_texmfdistdir}/doc/latex/tikzscale/uncover.tikz
%doc %{_texmfdistdir}/doc/latex/tikzscale/visible.tikz
#- source
%doc %{_texmfdistdir}/source/latex/tikzscale/tikzscale.dtx
%doc %{_texmfdistdir}/source/latex/tikzscale/tikzscale.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19712 |21mr|texlive-tikzsymbols-4.10c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tikzsymbols
Version:	4.10c
Release:	1
Summary:	Some symbols created using TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikzsymbols
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzsymbols.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzsymbols.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikzsymbols.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides various emoticons, cooking symbols and
trees.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikzsymbols
%doc %{_texmfdistdir}/doc/latex/tikzsymbols
#- source
%doc %{_texmfdistdir}/source/latex/tikzsymbols

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19713 |21mr|texlive-tikz-timing-0.7f-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tikz-timing
Version:	0.7f
Release:	3
Summary:	Easy generation of timing diagrams as tikz pictures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tikz-timing
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-timing.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-timing.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tikz-timing.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-svn-prov

%description
This package provides macros and an environment to generate
timing diagrams (digital waveforms) without much effort. The
TikZ package is used to produce the graphics. The diagrams may
be inserted into text (paragraphs, \hbox, etc.) and into
tikzpictures. A tabular-like environment is provided to produce
larger timing diagrams.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tikz-timing
%doc %{_texmfdistdir}/doc/latex/tikz-timing
#- source
%doc %{_texmfdistdir}/source/latex/tikz-timing

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19714 |21mr|texlive-times-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-times
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/times.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/times
%{_texmfdistdir}/fonts/afm/*/times
%{_texmfdistdir}/fonts/map/dvips/times
%{_texmfdistdir}/fonts/tfm/*/times
%{_texmfdistdir}/fonts/type1/urw/times
%{_texmfdistdir}/fonts/vf/*/times
%{_texmfdistdir}/tex/latex/times

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19715 |21mr|texlive-timesht-20111104-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-timesht
Version:	20111104
Release:	7
Summary:	TeXLive timesht package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/timesht.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/timesht.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/timesht.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive timesht package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/timesht/timesht.cls
%doc %{_texmfdistdir}/doc/latex/timesht/README
%doc %{_texmfdistdir}/doc/latex/timesht/timesheet.tex
#- source
%doc %{_texmfdistdir}/source/latex/timesht/timesht.dtx
%doc %{_texmfdistdir}/source/latex/timesht/timesht.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19716 |21mr|texlive-timing-diagrams-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31491
# category Package
# catalog-ctan /graphics/pgf/contrib/timing-diagrams
# catalog-date 2013-08-21 17:26:35 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-timing-diagrams
Version:	20180303
Release:	2
Summary:	Draw timing diagrams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/timing-diagrams
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/timing-diagrams.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/timing-diagrams.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to draw and annotate various
kinds of timing diagrams, using Tikz. Documentation is sparse,
but the source and the examples file should be of some use.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/timing-diagrams/timing-diagrams.sty
%doc %{_texmfdistdir}/doc/latex/timing-diagrams/Makefile
%doc %{_texmfdistdir}/doc/latex/timing-diagrams/README
%doc %{_texmfdistdir}/doc/latex/timing-diagrams/diagrams-examples.pdf
%doc %{_texmfdistdir}/doc/latex/timing-diagrams/diagrams-examples.tex
%doc %{_texmfdistdir}/doc/latex/timing-diagrams/version.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19717 |21mr|texlive-tipa-1.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29349
# category Package
# catalog-ctan /fonts/tipa/tipa
# catalog-date 2012-01-30 10:59:21 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-tipa
Version:	1.3
Release:	14
Summary:	Fonts and macros for IPA phonetics characters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/tipa/tipa
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tipa.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tipa.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These fonts are considered the 'ultimate answer' to IPA
typesetting. The encoding of these 8-bit fonts has been
registered as LaTeX standard encoding T3, and the set of
addendum symbols as encoding TS3. 'Times-like' Adobe Type 1
versions are provided for both the T3 and the TS3 fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/map/dvips/tipa/tipa.map
%{_texmfdistdir}/fonts/source/public/tipa/tipa.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipa10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipa12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipa17.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipa8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipa9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipab10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipabase.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipabs10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipabx10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipabx12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipabx8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipabx9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipadiac.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipaextr.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipagerm.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipanew.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipapnct.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipaprm.def
%{_texmfdistdir}/fonts/source/public/tipa/tiparoml.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasb10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasc.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasi10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasl10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasl12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasl8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasl9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipass10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipass12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipass17.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipass8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipass9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasym1.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasym2.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasym3.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipasym4.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipatone.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipatr.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipats10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipatt10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipatt12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipatt8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipatt9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipx.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipx10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipx12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipx17.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipx8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipx9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxb10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxbs10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxbx10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxbx12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxbx8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxbx9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxsb10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxsi10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxsl10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxsl12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxsl8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxsl9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxss10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxss12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxss17.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxss8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxss9.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxts10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxtt10.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxtt12.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxtt8.mf
%{_texmfdistdir}/fonts/source/public/tipa/tipxtt9.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipa10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipab10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipabs10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipaprm.def
%{_texmfdistdir}/fonts/source/public/tipa/xipasb10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipasi10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipasl10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipass10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipx10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipxb10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipxbs10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipxsb10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipxsi10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipxsl10.mf
%{_texmfdistdir}/fonts/source/public/tipa/xipxss10.mf
%{_texmfdistdir}/fonts/tfm/public/tipa/tipa10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipa12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipa17.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipa8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipa9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipab10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipabs10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipabx10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipabx12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipabx8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipabx9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipasb10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipasi10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipasl10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipasl12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipasl8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipasl9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipass10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipass12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipass17.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipass8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipass9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipats10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipatt10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipatt12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipatt8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipatt9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipx10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipx12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipx17.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipx8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipx9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxb10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxbs10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxbx10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxbx12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxbx8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxbx9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxsb10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxsi10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxsl12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxsl8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxsl9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxss10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxss12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxss17.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxss8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxss9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxts10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxtt10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxtt12.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxtt8.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/tipxtt9.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipa10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipab10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipabs10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipasb10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipasi10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipasl10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipass10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipx10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipxb10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipxbs10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipxsb10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipxsi10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipxsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/tipa/xipxss10.tfm
%{_texmfdistdir}/fonts/type1/public/tipa/tipa10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipa12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipa17.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipa8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipa9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipab10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipabs10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipabx10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipabx12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipabx8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipabx9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipasb10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipasi10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipasl10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipasl12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipasl8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipasl9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipass10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipass12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipass17.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipass8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipass9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipats10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipatt10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipatt12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipatt8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipatt9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipx10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipx12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipx17.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipx8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipx9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxb10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxbs10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxbx10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxbx12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxbx8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxbx9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxsb10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxsi10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxsl10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxsl12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxsl8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxsl9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxss10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxss12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxss17.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxss8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxss9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxts10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxtt10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxtt12.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxtt8.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/tipxtt9.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipa10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipab10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipabs10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipasb10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipasi10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipasl10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipass10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipx10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipxb10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipxbs10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipxsb10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipxsi10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipxsl10.pfb
%{_texmfdistdir}/fonts/type1/public/tipa/xipxss10.pfb
%{_texmfdistdir}/tex/latex/tipa/exaccent.sty
%{_texmfdistdir}/tex/latex/tipa/extraipa.sty
%{_texmfdistdir}/tex/latex/tipa/t3cmr.fd
%{_texmfdistdir}/tex/latex/tipa/t3cmss.fd
%{_texmfdistdir}/tex/latex/tipa/t3cmtt.fd
%{_texmfdistdir}/tex/latex/tipa/t3enc.def
%{_texmfdistdir}/tex/latex/tipa/t3phv.fd
%{_texmfdistdir}/tex/latex/tipa/t3ptm.fd
%{_texmfdistdir}/tex/latex/tipa/tipa.sty
%{_texmfdistdir}/tex/latex/tipa/tipx.sty
%{_texmfdistdir}/tex/latex/tipa/tone.sty
%{_texmfdistdir}/tex/latex/tipa/ts3cmr.fd
%{_texmfdistdir}/tex/latex/tipa/ts3cmss.fd
%{_texmfdistdir}/tex/latex/tipa/ts3cmtt.fd
%{_texmfdistdir}/tex/latex/tipa/ts3enc.def
%{_texmfdistdir}/tex/latex/tipa/ts3phv.fd
%{_texmfdistdir}/tex/latex/tipa/ts3ptm.fd
%{_texmfdistdir}/tex/latex/tipa/utipx.fd
%{_texmfdistdir}/tex/latex/tipa/utipxss.fd
%{_texmfdistdir}/tex/latex/tipa/utipxtt.fd
%{_texmfdistdir}/tex/latex/tipa/uxipx.fd
%{_texmfdistdir}/tex/latex/tipa/uxipxss.fd
%{_texmfdistdir}/tex/latex/tipa/vowel.sty
%doc %{_texmfdistdir}/doc/fonts/tipa/00README
%doc %{_texmfdistdir}/doc/fonts/tipa/00README.doc
%doc %{_texmfdistdir}/doc/fonts/tipa/Makefile
%doc %{_texmfdistdir}/doc/fonts/tipa/Makefile.doc
%doc %{_texmfdistdir}/doc/fonts/tipa/Manifest.txt
%doc %{_texmfdistdir}/doc/fonts/tipa/boxchar.sty
%doc %{_texmfdistdir}/doc/fonts/tipa/codelist.sty
%doc %{_texmfdistdir}/doc/fonts/tipa/gentfm.sh
%doc %{_texmfdistdir}/doc/fonts/tipa/gentipa.sh
%doc %{_texmfdistdir}/doc/fonts/tipa/gentipx.sh
%doc %{_texmfdistdir}/doc/fonts/tipa/genxipa.sh
%doc %{_texmfdistdir}/doc/fonts/tipa/genxipx.sh
%doc %{_texmfdistdir}/doc/fonts/tipa/mktipapk.sh
%doc %{_texmfdistdir}/doc/fonts/tipa/mkxipapk.sh
%doc %{_texmfdistdir}/doc/fonts/tipa/tipa.bib
%doc %{_texmfdistdir}/doc/fonts/tipa/tipaman.pdf
%doc %{_texmfdistdir}/doc/fonts/tipa/tipaman.sty
%doc %{_texmfdistdir}/doc/fonts/tipa/tipaman.tex
%doc %{_texmfdistdir}/doc/fonts/tipa/tipaman0.tex
%doc %{_texmfdistdir}/doc/fonts/tipa/tipaman1.tex
%doc %{_texmfdistdir}/doc/fonts/tipa/tipaman2.tex
%doc %{_texmfdistdir}/doc/fonts/tipa/tipaman3.tex
%doc %{_texmfdistdir}/doc/fonts/tipa/tipaman4.tex
%doc %{_texmfdistdir}/doc/fonts/tipa/vowel.pdf
%doc %{_texmfdistdir}/doc/fonts/tipa/vowel.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19718 |21mr|texlive-tipa-de-1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22005
# category Package
# catalog-ctan /info/translations/tipa/de
# catalog-date 2011-04-06 08:36:04 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-tipa-de
Version:	1.3
Release:	6
Summary:	German translation of tipa documentation
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/tipa/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tipa-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tipa-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a translation of Fukui Rei's tipaman from the tipa
bundle.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/tipa-de/LIESMICH
%doc %{_texmfdistdir}/doc/latex/tipa-de/tipa.bib
%doc %{_texmfdistdir}/doc/latex/tipa-de/tipaman-de.pdf
%doc %{_texmfdistdir}/doc/latex/tipa-de/tipaman-de.tex
%doc %{_texmfdistdir}/doc/latex/tipa-de/tipaman0-de.tex
%doc %{_texmfdistdir}/doc/latex/tipa-de/tipaman1-de.tex
%doc %{_texmfdistdir}/doc/latex/tipa-de/tipaman2-de.tex
%doc %{_texmfdistdir}/doc/latex/tipa-de/tipaman3-de.tex
%doc %{_texmfdistdir}/doc/latex/tipa-de/tipaman4-de.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19719 |21mr|texlive-titlecaps-1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30911
# category Package
# catalog-ctan /macros/latex/contrib/titlecaps
# catalog-date 2013-06-19 11:29:28 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-titlecaps
Version:	1.2
Release:	2
Summary:	Setting rich-text input into Titling Caps
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/titlecaps
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlecaps.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlecaps.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is intended for setting rich text into titling
capitals (in which the first character of words are
capitalized). It automatically accounts for diacritical marks
(like umlauts), national symbols (like "ae"), punctuation, and
font changing commands that alter the appearance or size of the
text. It allows a list of predesignated words to be protected
as lower-cased, and also allows for titling exceptions of
various sorts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/titlecaps/titlecaps.sty
%doc %{_texmfdistdir}/doc/latex/titlecaps/README
%doc %{_texmfdistdir}/doc/latex/titlecaps/titlecaps.pdf
%doc %{_texmfdistdir}/doc/latex/titlecaps/titlecaps.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19720 |21mr|texlive-titlefoot-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/titlefoot
# catalog-date 2007-01-17 00:08:13 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-titlefoot
Version:	20190228
Release:	1
Summary:	Add special material to footer of title page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/titlefoot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlefoot.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides the capability of adding keywords (with a \keywords
command), a running title (\runningtitle), AMS subject
classifications (\amssubj), and an 'author's footnote' as
footnotes to the title or first page of a document. Works with
any class for which the \thanks macro works (e.g., article).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/titlefoot/titlefoot.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19721 |21mr|texlive-titlepages-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19457
# category Package
# catalog-ctan /info/latex-samples/TitlePages
# catalog-date 2010-07-14 08:54:32 +0200
# catalog-license lppl
# catalog-version 2010-07-14
Name:		texlive-titlepages
Version:	20190228
Release:	1
Summary:	Sample titlepages, and how to code them
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/latex-samples/TitlePages
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlepages.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlepages.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The document provides examples of over two dozen title page
designs based on a range of published books and theses,
together with the LaTeX code used to create them.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/titlepages/README
%doc %{_texmfdistdir}/doc/latex/titlepages/titlepages.pdf
%doc %{_texmfdistdir}/doc/latex/titlepages/titlepages.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19722 |21mr|texlive-titlepic-1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-titlepic
Version:	1.2
Release:	3
Summary:	Add picture to title page of a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/titlepic
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlepic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlepic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows you to place a picture on the title page
(cover page) of a LaTeX document. Example of usage:
\usepackage[cc]{titlepic} \usepackage{graphicx}
\titlepic{\includegraphics[width=\textwidth]{picture.png}} The
package currently only works with the document classes article,
report and book.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/titlepic
%doc %{_texmfdistdir}/doc/latex/titlepic

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19723 |21mr|texlive-titleref-3.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18729
# category Package
# catalog-ctan /macros/latex/contrib/titleref
# catalog-date 2010-06-06 13:50:32 +0200
# catalog-license pd
# catalog-version 2.0
Name:		texlive-titleref
Version:	3.1
Release:	2
Summary:	A "\titleref" command to cross-reference section titles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/titleref
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titleref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titleref.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a command \titleref that allows you to cross-reference
section (and chapter, etc) titles and captions just like \ref
and \pageref. The package does not interwork with hyperref; if
you need hypertext capabilities, use nameref instead.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/titleref/titleref.sty
%doc %{_texmfdistdir}/doc/latex/titleref/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/titleref/titleref.pdf
%doc %{_texmfdistdir}/doc/latex/titleref/titleref.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19724 |21mr|texlive-titlesec-2.10.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24852
# category Package
# catalog-ctan /macros/latex/contrib/titlesec
# catalog-date 2011-12-15 15:36:45 +0100
# catalog-license lppl
# catalog-version 2.10.0
Name:		texlive-titlesec
Version:	2.10.2
Release:	2
Summary:	Select alternative section titles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/titlesec
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlesec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titlesec.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package providing an interface to sectioning commands for
selection from various title styles. E.g., marginal titles and
to change the font of all headings with a single command, also
providing simple one-step page styles. Also includes a package
to change the page styles when there are floats in a page. You
may assign headers/footers to individual floats, too.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/titlesec/block.tss
%{_texmfdistdir}/tex/latex/titlesec/drop.tss
%{_texmfdistdir}/tex/latex/titlesec/frame.tss
%{_texmfdistdir}/tex/latex/titlesec/leftmargin.tss
%{_texmfdistdir}/tex/latex/titlesec/margin.tss
%{_texmfdistdir}/tex/latex/titlesec/rightmargin.tss
%{_texmfdistdir}/tex/latex/titlesec/titleps.sty
%{_texmfdistdir}/tex/latex/titlesec/titlesec.sty
%{_texmfdistdir}/tex/latex/titlesec/titletoc.sty
%{_texmfdistdir}/tex/latex/titlesec/ttlkeys.def
%{_texmfdistdir}/tex/latex/titlesec/ttlps.def
%{_texmfdistdir}/tex/latex/titlesec/wrap.tss
%doc %{_texmfdistdir}/doc/latex/titlesec/CHANGES
%doc %{_texmfdistdir}/doc/latex/titlesec/README
%doc %{_texmfdistdir}/doc/latex/titlesec/titleps.pdf
%doc %{_texmfdistdir}/doc/latex/titlesec/titleps.tex
%doc %{_texmfdistdir}/doc/latex/titlesec/titlesec.pdf
%doc %{_texmfdistdir}/doc/latex/titlesec/titlesec.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19725 |21mr|texlive-titling-2.1d-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/titling
# catalog-date 2012-07-24 20:02:06 +0200
# catalog-license lppl
# catalog-version 2.1d
Name:		texlive-titling
Version:	2.1d
Release:	12
Summary:	Control over the typesetting of the \maketitle command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/titling
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titling.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titling.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/titling.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The titling package provides control over the typesetting of
the \maketitle command and \thanks commands, and makes the
\title, \author and \date information permanently available.
Multiple titles are allowed in a single document. New titling
elements can be added and a titlepage title can be centered on
a physical page.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/titling/titling.sty
%doc %{_texmfdistdir}/doc/latex/titling/README
%doc %{_texmfdistdir}/doc/latex/titling/titling.pdf
#- source
%doc %{_texmfdistdir}/source/latex/titling/titling.dtx
%doc %{_texmfdistdir}/source/latex/titling/titling.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19726 |21mr|texlive-tkz-base-1.16d-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22961
# category Package
# catalog-ctan /macros/latex/contrib/tkz/tkz-base
# catalog-date 2011-06-05 23:10:23 +0200
# catalog-license lppl
# catalog-version 1.16
Name:		texlive-tkz-base
Version:	1.16d
Release:	1
Summary:	Tools for drawing with a cartesian coordinate system
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz/tkz-base
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-base.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-base.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is the base of a set of packages, designed to give
mathematics teachers (and students) easy access to programming
of drawings with TikZ.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-base/tkz-base.cfg
%{_texmfdistdir}/tex/latex/tkz-base/tkz-base.sty
%{_texmfdistdir}/tex/latex/tkz-base/tkz-obj-marks.tex
%{_texmfdistdir}/tex/latex/tkz-base/tkz-obj-points.tex
%{_texmfdistdir}/tex/latex/tkz-base/tkz-obj-segments.tex
%{_texmfdistdir}/tex/latex/tkz-base/tkz-tools-arith.tex
%{_texmfdistdir}/tex/latex/tkz-base/tkz-tools-base.tex
%{_texmfdistdir}/tex/latex/tkz-base/tkz-tools-math.tex
%{_texmfdistdir}/tex/latex/tkz-base/tkz-tools-misc.tex
%{_texmfdistdir}/tex/latex/tkz-base/tkz-tools-obsolete.tex
%{_texmfdistdir}/tex/latex/tkz-base/tkz-tools-utilities.tex
%doc %{_texmfdistdir}/doc/latex/tkz-base/README
%doc %{_texmfdistdir}/doc/latex/tkz-base/examples/Makefile
%doc %{_texmfdistdir}/doc/latex/tkz-base/examples/info_base_tex.txt
%doc %{_texmfdistdir}/doc/latex/tkz-base/examples/latex/tkzbase-tex.zip
%doc %{_texmfdistdir}/doc/latex/tkz-base/examples/tkzbasepreamble.ltx
%doc %{_texmfdistdir}/doc/latex/tkz-base/latex/TKZdoc.zip
%doc %{_texmfdistdir}/doc/latex/tkz-base/tkz-base-screen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19727 |21mr|texlive-tkz-berge-1.00c-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22891
# category Package
# catalog-ctan /macros/latex/contrib/tkz/tkz-berge
# catalog-date 2011-06-06 00:03:44 +0200
# catalog-license lppl
# catalog-version 1.00c
Name:		texlive-tkz-berge
Version:	1.00c
Release:	11
Summary:	Macros for drawing graphs of graph theory
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz/tkz-berge
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-berge.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-berge.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a collection of useful macros for drawing
classic graphs of graph theory, or to make other graphs.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-berge/tkz-arith.sty
%{_texmfdistdir}/tex/latex/tkz-berge/tkz-berge.sty
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/README
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/NamedGraphs.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Andrasfai.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Balaban.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Bipartite.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Bull.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Cage.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Chvatal.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Cocktail_Party.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Coxeter.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Crown.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-CubicSymmetric.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Desargues.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Doyle.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Dyck.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Folkman.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Foster.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Franklin.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Gray.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Groetzsch.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Harries.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Heawood.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Hypercube.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Koenisberg.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Levi.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-McGee.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Moebius.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Nauru.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Pappus.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Petersen.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Platonic.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Robertson.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Tutte.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-Wong.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-couverture.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/NamedGraphs-main.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/doc/latex/namedg.ist
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-1-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-1-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-1-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-10-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-10-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-11-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-11-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-11-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-11-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-12-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-12-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-12-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-12-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-13-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-13-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-13-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-13-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-14-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-15-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-15-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-15-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-16-0-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-17-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-17-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-17-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-18-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-18-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-19-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-2-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-2-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-2-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-2-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-20-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-20-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-21-0-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-21-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-21-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-22-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-22-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-22-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-23-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-23-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-23-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-23-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-23-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-23-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-23-7-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-24-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-24-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-24-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-7-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-8-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-25-9-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-10-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-11-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-12-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-13-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-14-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-7-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-8-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-26-9-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-27-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-27-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-27-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-27-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-28-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-29-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-3-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-3-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-3-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-4-0-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-6-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-6-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-7-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-7-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-7-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-7-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-7-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-8-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-8-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-8-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-9-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/latex/tkzNamed-9-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/examples/tkzpreamblenamed.ltx
%doc %{_texmfdistdir}/doc/latex/tkz-berge/NamedGraphs/readme-namedgraph.txt
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/Grid.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/gr-Circulant.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/gr-Complet-16.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/gr-edgeingraphmodloop.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/grCLadder.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/grDoubleMod.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/grExtraChords.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/grLadder.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/grSQCycle.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/grStar.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/grWheel.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/hypercube.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/hypercube_simple.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/hypercubed.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/Grid.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/gr-Circulant.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/gr-Complet-16.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/gr-edgeingraphmodloop.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/grCLadder.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/grDoubleMod.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/grExtraChords.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/grLadder.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/grSQCycle.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/grStar.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/grWheel.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/hypercube_simple.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/examples/latex/hypercubed.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/latex/TKZdoc-berge-classic.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/latex/TKZdoc-berge-installation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/latex/TKZdoc-berge-macros-e.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/latex/TKZdoc-berge-macros.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/latex/TKZdoc-berge-main.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/latex/TKZdoc-berge-style.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/latex/TKZdoc-gr-installation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-berge/latex/berge.ist
%doc %{_texmfdistdir}/doc/latex/tkz-berge/readme-tkz-berge.txt
%doc %{_texmfdistdir}/doc/latex/tkz-berge/tkz-berge-screen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19728 |21mr|texlive-tkz-doc-1.1d-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22959
# category Package
# catalog-ctan /macros/latex/contrib/tkz-doc
# catalog-date 2011-06-05 23:10:23 +0200
# catalog-license lppl
# catalog-version 1.1c
Name:		texlive-tkz-doc
Version:	1.1d
Release:	1
Summary:	Documentation macros for the TKZ series of packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz-doc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-doc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-doc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle offers a documentation class (tkz-doc) and a
package (tkzexample). These files are used in the documentation
of the author's packages tkz-tab and tkz-linknodes.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-doc/tkz-doc.cls
%{_texmfdistdir}/tex/latex/tkz-doc/tkzexample.sty
%doc %{_texmfdistdir}/doc/latex/tkz-doc/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19729 |21mr|texlive-tkz-euclide-1.16c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22830
# category Package
# catalog-ctan /macros/latex/contrib/tkz/tkz-euclide
# catalog-date 2011-06-05 23:10:23 +0200
# catalog-license lppl
# catalog-version 1.16c
Name:		texlive-tkz-euclide
Version:	1.16c
Release:	7
Summary:	Tools for drawing euclidean geometry
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz/tkz-euclide
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-euclide.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-euclide.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The tkz-euclide package is tis a set of files, designed to give
math teachers and students) easy access at the programmation of
euclidean geometry with TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-euclide.sty
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-lib-symbols.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-addpoints.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-angles.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-arcs.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-circles.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-lines.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-polygons.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-protractor.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-sectors.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-obj-vectors.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-tools-intersections.tex
%{_texmfdistdir}/tex/latex/tkz-euclide/tkz-tools-transformations.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/README
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/examples/Makefile
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/examples/info_euclide_tex.txt
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/examples/latex/euclide-tex.zip
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/examples/tkzeuclpreamble.ltx
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-FAQ.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-alea.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-arcs.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-base.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-circles.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-compass.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-config.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-example.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-exemples.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-installation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-intersec.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-lines.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-main.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-obj.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-points.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-polygons.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-presentation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-rapporteur.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-sectors.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-segments.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-tips_and_tricks.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-tools.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-transf.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/TKZdoc-euclide-vec.tex
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/latex/euclide.ist
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/readme-tkz-euclide-fr.txt
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/readme-tkz-euclide.txt
%doc %{_texmfdistdir}/doc/latex/tkz-euclide/tkz-euclide-screen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19730 |21mr|texlive-tkz-fct-1.16c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22831
# category Package
# catalog-ctan /macros/latex/contrib/tkz/tkz-fct
# catalog-date 2011-06-05 23:10:23 +0200
# catalog-license lppl
# catalog-version 1.16c
Name:		texlive-tkz-fct
Version:	1.16c
Release:	7
Summary:	Tools for drawing graphs of functions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz/tkz-fct
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-fct.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-fct.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The tkz-fct package is designed to give math teachers (and
students) easy access at the programmation of graphs of
functions with TikZ and gnuplot.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-fct/tkz-fct.sty
%doc %{_texmfdistdir}/doc/latex/tkz-fct/README
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/Makefile
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/info_fct_tex.txt
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-1-0-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-10-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-10-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-10-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-10-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-10-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-10-7-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-10-8-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-11-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-11-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-11-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-11-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-11-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-11-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-11-7-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-12-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-12-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-12-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-12-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-12-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-12-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-13-0-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-6-1.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-7-1.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-7-2.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-7-3.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-7-4.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-8-1.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-14-8-2.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-15-0-3.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-15-0-4.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-16-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-16-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-3-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-3-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-4-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-4-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-4-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-4-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-4-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-4-7-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-4-8-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-5-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-5-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-5-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-5-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-5-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-5-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-6-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-10-2.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-5-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-7-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-8-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-7-9-1.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-10-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-11-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-6-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-7-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-8-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-8-9-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-9-1-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-9-2-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-9-3-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/latex/tkzFct-9-4-0.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/examples/tkzfctpreamble.ltx
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-VDW.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-area.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-asymptote.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-bac.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-compilation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-example.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-faq.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-fonctions.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-fppgf.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-installation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-interpolation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-label.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-liste.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-main.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-param.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-point.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-polar.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-riemann.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-symbol.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-tangent.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/TKZdoc-fct-why.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/latex/fct.ist
%doc %{_texmfdistdir}/doc/latex/tkz-fct/readme-tkz-fct-fr.txt
%doc %{_texmfdistdir}/doc/latex/tkz-fct/readme-tkz-fct.txt
%doc %{_texmfdistdir}/doc/latex/tkz-fct/readme.tex
%doc %{_texmfdistdir}/doc/latex/tkz-fct/tkz-fct-screen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19731 |21mr|texlive-tkz-graph-1.00-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22832
# category Package
# catalog-ctan /macros/latex/contrib/tkz/tkz-graph
# catalog-date 2011-06-06 00:03:44 +0200
# catalog-license lppl
# catalog-version 1.00
Name:		texlive-tkz-graph
Version:	1.00
Release:	7
Summary:	Draw graph-theory graphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz/tkz-graph
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-graph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-graph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is designed to create graph diagrams as simply as
possible, using TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-graph/tkz-graph.sty
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-Dijkstra.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-Welsh.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-annales.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-couverture.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-edge.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-installation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-label.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-main.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-presentation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-prob.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-style.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-vertex.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/TKZdoc-gr-vertices.tex
%doc %{_texmfdistdir}/doc/latex/tkz-graph/latex/graph.ist
%doc %{_texmfdistdir}/doc/latex/tkz-graph/readme-tkz-graph.txt
%doc %{_texmfdistdir}/doc/latex/tkz-graph/tkz-graph-screen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19732 |21mr|texlive-tkz-kiviat-0.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22857
# category Package
# catalog-ctan /macros/latex/contrib/tkz/tkz-kiviat
# catalog-date 2011-06-07 15:47:15 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-tkz-kiviat
Version:	0.1
Release:	7
Summary:	Draw Kiviat graphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz/tkz-kiviat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-kiviat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-kiviat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to draw Kiviat Graphs directly, or
with data from an external file. The drawing is done with the
help of pgfplots.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-kiviat/tkz-kiviat.sty
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/TKZdoc-kiviat-main.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/examples/latex/file.dat
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/examples/latex/kiviat1.tex
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/examples/latex/kiviat2.tex
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/examples/latex/kiviat3.tex
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/examples/latex/kiviat4.tex
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/examples/latex/kiviat5.tex
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/latex/TKZdoc-kiviat-main.tex
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/latex/file.dat
%doc %{_texmfdistdir}/doc/latex/tkz-kiviat/latex/file2.dat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19733 |21mr|texlive-tkz-linknodes-1.1d-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22833
# category Package
# catalog-ctan /macros/latex/contrib/tkz/tkz-linknodes
# catalog-date 2011-06-05 23:10:23 +0200
# catalog-license lppl
# catalog-version 1.0c
Name:		texlive-tkz-linknodes
Version:	1.1d
Release:	1
Summary:	Link nodes in mathematical environments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz/tkz-linknodes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-linknodes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-linknodes.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package arose from a requirement to link the elements of an
amsmath align or aligned environment. The package makes use of
PGF/TikZ. The package documentation relies on the facilities of
the tkz-doc bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-linknodes/tkz-linknodes.sty
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/README
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/examples/equation.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/examples/latex/equation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/examples/latex/quadratic.tex
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/examples/latex/system.tex
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/examples/quadratic.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/examples/system.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/latex/TKZdoc-linknodes-us.tex
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/latex/linknodes.ist
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/readme-linknodes.txt
%doc %{_texmfdistdir}/doc/latex/tkz-linknodes/tkz-linknodes-screen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19734 |21mr|texlive-tkz-orm-0.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16849
# category Package
# catalog-ctan /graphics/pgf/contrib/tkz-orm
# catalog-date 2010-01-28 13:16:16 +0100
# catalog-license gpl
# catalog-version 0.1
Name:		texlive-tkz-orm
Version:	0.1.4
Release:	2
Summary:	Create Object-Role Model (ORM) diagrams,
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pgf/contrib/tkz-orm
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-orm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-orm.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides styles for drawing Object-Role Model (ORM)
diagrams in TeX based on the pgf and TikZ picture environment.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-orm/tkz-orm.sty
%doc %{_texmfdistdir}/doc/latex/tkz-orm/LICENSE
%doc %{_texmfdistdir}/doc/latex/tkz-orm/Makefile
%doc %{_texmfdistdir}/doc/latex/tkz-orm/README
%doc %{_texmfdistdir}/doc/latex/tkz-orm/pgfmanualstyle.sty
%doc %{_texmfdistdir}/doc/latex/tkz-orm/tkz-orm.bib
%doc %{_texmfdistdir}/doc/latex/tkz-orm/tkz-orm.pdf
%doc %{_texmfdistdir}/doc/latex/tkz-orm/tkz-orm.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19735 |21mr|texlive-tkz-tab-1.4e-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22834
# category Package
# catalog-ctan /macros/latex/contrib/tkz/tkz-tab
# catalog-date 2011-06-05 23:10:23 +0200
# catalog-license lppl
# catalog-version 1.3c
Name:		texlive-tkz-tab
Version:	1.4e
Release:	1
Summary:	Tables of signs and variations using PGF/TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tkz/tkz-tab
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-tab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tkz-tab.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides comprehensive facilities for preparing
lists of signs and variations, using PGF. The package
documentation requires the tkz-doc bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tkz-tab/tkz-tab.sty
%doc %{_texmfdistdir}/doc/latex/tkz-tab/README
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZ-doc-tab-faq.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-adapt.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-bac.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-examples.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-image.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-init.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-install.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-main.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-sign.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-slope.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-style.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-tangente.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-tv.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-valeurs.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab-variation.tex
%doc %{_texmfdistdir}/doc/latex/tkz-tab/latex/TKZdoc-tab.ist
%doc %{_texmfdistdir}/doc/latex/tkz-tab/readme-us.txt
%doc %{_texmfdistdir}/doc/latex/tkz-tab/tkz-tab-screen.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19736 |21mr|texlive-tlc2-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26096
# category Package
# catalog-ctan /info/examples/tlc2
# catalog-date 2010-10-24 16:46:02 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-tlc2
Version:	20190228
Release:	1
Summary:	Examples from "The LaTeX Companion", second edition
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/examples/tlc2
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tlc2.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tlc2.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The source of the examples printed in the book, together with
necessary supporting files. The book was published by Addison-
Wesley, 2004, ISBN 0-201-36299-6.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/tlc2/1-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/1-3-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/1-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/1-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/1-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-1-9.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-3-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/10-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-1-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-1-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-3-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-4-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-4-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-4-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-4-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-24.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-25.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-26.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-29.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-30.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-31.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-32.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-33.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-34.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-35.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-36.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-37.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-38.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-39.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-40.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-41.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-42.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-43.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-44.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-45.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-46.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-47.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-48.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-49.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-5-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-3.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-5.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-6.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/12-6-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-5-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-5-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-5-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-5-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-5-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/13-5-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/14-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/14-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-21.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-8.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/2-3-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-6.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/2-4-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-29.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-30.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-31.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-32.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-33.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-34.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-35.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-36.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-37.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-38.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-39.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-40.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-41.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-42.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-43.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-44.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-45.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-46.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-47.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-48.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-49.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-50.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-51.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-52.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-53.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-1-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-17.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-18.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-21.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-24.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-7.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-29.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-30.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-3-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-29.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-30.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-31.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-32.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-33.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-34.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-35.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-36.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-37.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-38.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-39.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-40.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-41.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-42.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-4-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/3-5-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-8.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-2-9.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-3-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-3-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-3-3.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-10.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-11.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-12.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-13.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-15.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-5.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-6.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-7.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-8.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-4-9.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-5-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/4-5-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/5-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-1-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-1-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-1-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-4-1.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/5-4-2.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/5-4-3.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/5-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-4-5.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/5-4-6.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/5-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-5-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-6-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-6-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-6-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-6-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-6-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-6-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-6-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-6-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-7-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-7-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-7-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-7-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-7-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-7-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-7-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-7-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-8-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-8-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-9-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-9-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-9-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-9-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-9-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/5-9-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-3-4.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/6-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-3-6.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/6-3-7.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/6-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-4-5.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/6-4-6.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/6-4-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-4-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-14.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-18.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-7.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/6-5-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-10-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-12-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-4-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-5-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-6-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-29.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-7-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-8-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-9-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/7-9-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-29.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-29.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-30.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-31.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-32.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-33.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-34.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-35.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-36.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-37.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-38.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-39.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-3-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-4-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-5-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-5-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-5-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-6-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-6-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-6-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-6-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-7-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-7-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-7-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-7-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-7-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-7-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-7-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-8-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-9-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-9-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-9-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-9-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-9-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-9-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-9-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/8-9-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-22.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-23.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-24.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-25.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-26.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-27.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-28.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-29.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-30.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-31.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-32.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-33.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-34.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-35.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-36.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-37.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-38.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-39.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-3-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-4-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-4-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-4-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-4-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-4-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/9-5-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-1-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-12.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-13.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-14.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-15.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-16.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-17.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-18.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-19.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-20.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-21.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-2-9.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-10.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-11.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-2.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-3.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-4.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-5.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-6.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-7.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-8.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/A-3-9.ltx2
%doc %{_texmfdistdir}/doc/latex/tlc2/B-3-1.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/Escher.ps
%doc %{_texmfdistdir}/doc/latex/tlc2/cat.ps
%doc %{_texmfdistdir}/doc/latex/tlc2/elephant.ps
%doc %{_texmfdistdir}/doc/latex/tlc2/indexexa.ltx
%doc %{_texmfdistdir}/doc/latex/tlc2/jura.bib
%doc %{_texmfdistdir}/doc/latex/tlc2/partial.toc
%doc %{_texmfdistdir}/doc/latex/tlc2/rosette.ps
%doc %{_texmfdistdir}/doc/latex/tlc2/tex.bib
%doc %{_texmfdistdir}/doc/latex/tlc2/ttctexa.cls
%doc %{_texmfdistdir}/doc/latex/tlc2/ttctexamargin.cls
%doc %{_texmfdistdir}/doc/latex/tlc2/ttctexareport.cls
%doc %{_texmfdistdir}/doc/latex/tlc2/w.eps
%doc %{_texmfdistdir}/doc/latex/tlc2/w.ps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19737 |21mr|texlive-tlpkg-20200709-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude perl\\|Text::Unidecode|Tie::Watch|SelfLoader|urpm\\)|urpm::.*|/bin/true

%define _tlpkgdir			%{_datadir}/tlpkg
%define _texmfdir			%{_datadir}/texmf
%define _texmfdistdir			%{_datadir}/texmf-dist
%define _texmflocaldir			%{_datadir}/texmf-local
%define _texmfextradir			%{_datadir}/texmf-extra
%define _texmffontsdir			%{_datadir}/texmf-fonts
%define _texmfprojectdir		%{_datadir}/texmf-project
%define _texmfvardir			%{_localstatedir}/lib/texmf
%define _texmfconfdir			%{_sysconfdir}/texmf
%define _texmf_fmtutil_d		%{_datadir}/tlpkg/fmtutil.cnf.d
%define _texmf_updmap_d			%{_datadir}/tlpkg/updmap.cfg.d
%define _texmf_language_dat_d		%{_datadir}/tlpkg/language.dat.d
%define _texmf_language_def_d		%{_datadir}/tlpkg/language.def.d
%define _texmf_language_lua_d		%{_datadir}/tlpkg/language.lua.d

%define _texmf_enable_asymptote		0
%define _texmf_enable_biber		0
%define _texmf_enable_xindy		0
%define _texmf_with_system_dialog	1
%define _texmf_with_system_lcdf		0
%define _texmf_with_system_poppler	1
%define _texmf_with_system_psutils	1
%define _texmf_with_system_t1lib	1
%define _texmf_with_system_tex4ht	0
%define _texmf_with_system_teckit	0

Summary:	The TeX formatting system
Name:		texlive-tlpkg
Version:	20200709
Release:	1
License:	http://www.tug.org/texlive/LICENSE.TL
Group:		Publishing
Url:		http://tug.org/texlive/
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/install-tl-unx.tar.gz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/tlpkg/texlive.tlpdb.xz
Source2:	tlpobj2spec.pl
Source3:	fmtutil-hdr.cnf
Source4:	updmap-hdr.cfg
Source7:	checkupdates.pl
Source8:	texlive.macros
Source9:	tlmgr
#updmap
#Requires:	texlive-tetex
Requires:	perl-Proc-Daemon
Requires:	perl-Proc-PID-File
Requires:	perl-XML-XPath
BuildArch:	noarch

%post
    if [ ! -f %{_texmfconfdir}/web2c/updmap.cfg ]; then
	cp -f %{_texmfdistdir}/web2c/updmap-hdr.cfg %{_texmfconfdir}/web2c/updmap.cfg
    fi

%description
TeX Live is an easy way to get up and running with the TeX document
production system. It provides a comprehensive TeX system. It includes
all the major TeX-related programs, macro packages, and fonts that are
free software, including support for many languages around the world.

%files
%dir %{_tlpkgdir}
%{_tlpkgdir}/TeXLive/
%{_tlpkgdir}/texlive.tlpdb
%{_texmfdistdir}/web2c/fmtutil-hdr.cnf
%{_texmfdistdir}/web2c/updmap-hdr.cfg
%dir %{_texmf_fmtutil_d}
%dir %{_texmf_updmap_d}
%dir %{_texmf_language_dat_d}
%dir %{_texmf_language_def_d}
%dir %{_texmf_language_lua_d}
%ghost %{_texmfconfdir}/web2c/updmap.cfg
%{_bindir}/tlmgr
%{_sbindir}/tlmgr
%{_sbindir}/texlive.post
%{_rpmmacrodir}/*texlive*
%{_sysconfdir}/pam.d/tlmgr
%{_sysconfdir}/security/console.apps/tlmgr

%transfiletriggerin -- /usr/share/texmf-dist
if [ -x "/usr/bin/mktexlsr" ]
then
    /usr/bin/mktexlsr 2>/dev/null 1>&2 || :
    if [ -x "/usr/bin/updmap-sys" ]
    then
	echo Y | /usr/bin/updmap-sys --syncwithtrees 2>/dev/null 1>&2 || :
    fi
    if [ -x "/usr/bin/mtxrun" ]
    then
	/usr/bin/mtxrun --generate 2>/dev/null 1>&2 || :
    fi
    if [ -x "/usr/bin/fmtutil-sys" ]
    then
	/usr/bin/fmtutil-sys --all 2>/dev/null 1>&2 || :
    fi
fi

#-----------------------------------------------------------------------

%prep
%setup -q -n install-tl-%{version}
unxz %{SOURCE1} -c >./texlive.tlpdb

%build

%install
mkdir -p %{buildroot}%{_tlpkgdir}
cp -fpr tlpkg/TeXLive %{buildroot}%{_tlpkgdir}

# install texlive.tlpdb
install -D -m644 texlive.tlpdb %{buildroot}%{_tlpkgdir}/texlive.tlpdb

mkdir -p %{buildroot}%{_texmf_fmtutil_d}
mkdir -p %{buildroot}%{_texmf_updmap_d}
mkdir -p %{buildroot}%{_texmf_language_dat_d}
mkdir -p %{buildroot}%{_texmf_language_def_d}
mkdir -p %{buildroot}%{_texmf_language_lua_d}

install -D -m644 %{SOURCE3} %{buildroot}%{_texmfdistdir}/web2c/fmtutil-hdr.cnf
install -D -m644 %{SOURCE4} %{buildroot}%{_texmfdistdir}/web2c/updmap-hdr.cfg
install -D -m644 %{SOURCE4} %{buildroot}%{_texmfconfdir}/web2c/updmap.cfg
%install_macro texlive %{SOURCE8}

# Backward compatibility
mkdir -p %{buildroot}%{_sbindir}
echo "#!/bin/true" > %{buildroot}%{_sbindir}/texlive.post
chmod 755 %{buildroot}%{_sbindir}/texlive.post

# install tlmgr like application
install -D -m755 %{SOURCE9} %{buildroot}%{_sbindir}/tlmgr
mkdir -p %{buildroot}%{_sysconfdir}/pam.d


cat > %{buildroot}%{_sysconfdir}/pam.d/tlmgr <<EOF
#%PAM-1.0
auth           include         config-util
account                include         config-util
session                include         config-util
EOF

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
cat > %{buildroot}%{_sysconfdir}/security/console.apps/tlmgr << EOF
USER=root
PROGRAM=%{_sbindir}/tlmgr
FALLBACK=false
SESSION=true
EOF
#??? whats is it?
mkdir -p %{buildroot}%{_bindir}
ln -sf %{_bindir}/consolehelper %{buildroot}%{_bindir}/tlmgr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19738 |21mr|texlive-tocbibind-1.5k-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20085
# category Package
# catalog-ctan /macros/latex/contrib/tocbibind
# catalog-date 2010-10-13 11:41:41 +0200
# catalog-license lppl
# catalog-version 1.5k
Name:		texlive-tocbibind
Version:	1.5k
Release:	7
Summary:	Add bibliography/index/contents to Table of Contents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tocbibind
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocbibind.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocbibind.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocbibind.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Automatically adds the bibliography and/or the index and/or the
contents, etc., to the Table of Contents listing.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tocbibind/tocbibind.sty
%doc %{_texmfdistdir}/doc/latex/tocbibind/README
%doc %{_texmfdistdir}/doc/latex/tocbibind/tocbibind.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tocbibind/tocbibind.dtx
%doc %{_texmfdistdir}/source/latex/tocbibind/tocbibind.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19739 |21mr|texlive-tocloft-2.3i-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30209
# category Package
# catalog-ctan /macros/latex/contrib/tocloft
# catalog-date 2013-05-02 18:21:19 +0200
# catalog-license lppl1.3
# catalog-version 2.3f
Name:		texlive-tocloft
Version:	2.3i
Release:	2
Summary:	Control table of contents, figures, etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tocloft
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocloft.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocloft.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocloft.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides control over the typography of the Table of Contents,
List of Figures and List of Tables, and the ability to create
new `List of ...'. The ToC \parskip can be changed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tocloft/tocloft.sty
%doc %{_texmfdistdir}/doc/latex/tocloft/README
%doc %{_texmfdistdir}/doc/latex/tocloft/tocloft.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tocloft/tocloft.dtx
%doc %{_texmfdistdir}/source/latex/tocloft/tocloft.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19740 |21mr|texlive-tocvsec2-1.3a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23444
# category Package
# catalog-ctan /macros/latex/contrib/tocvsec2
# catalog-date 2010-02-28 10:58:14 +0100
# catalog-license lppl1.3
# catalog-version 1.3a
Name:		texlive-tocvsec2
Version:	1.3a
Release:	7
Summary:	Section numbering and table of contents control
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tocvsec2
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocvsec2.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocvsec2.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tocvsec2.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides control over section numbering (without recourse to
starred sectional commands) and/or the entries in the Table of
Contents on a section by section basis.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tocvsec2/tocvsec2.sty
%doc %{_texmfdistdir}/doc/latex/tocvsec2/README
%doc %{_texmfdistdir}/doc/latex/tocvsec2/tocvsec2-example.tex
%doc %{_texmfdistdir}/doc/latex/tocvsec2/tocvsec2.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tocvsec2/tocvsec2.dtx
%doc %{_texmfdistdir}/source/latex/tocvsec2/tocvsec2.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19741 |21mr|texlive-todo-2.142-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17746
# category Package
# catalog-ctan /macros/latex/contrib/todo
# catalog-date 2010-04-01 21:27:08 +0200
# catalog-license lppl1
# catalog-version 2.142
Name:		texlive-todo
Version:	2.142
Release:	7
Summary:	Make a to-do list for a document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/todo
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/todo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/todo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/todo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows you to insert "to do" marks in your
document, to make lists of such items, and to cross-reference
to them.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/todo/todo.sty
%doc %{_texmfdistdir}/doc/latex/todo/README
%doc %{_texmfdistdir}/doc/latex/todo/todo-spl.pdf
%doc %{_texmfdistdir}/doc/latex/todo/todo-spl.tex
%doc %{_texmfdistdir}/doc/latex/todo/todo.pdf
#- source
%doc %{_texmfdistdir}/source/latex/todo/todo.dtx
%doc %{_texmfdistdir}/source/latex/todo/todo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19742 |21mr|texlive-todonotes-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-todonotes
Version:	1.1.2
Release:	1
Epoch:		1
Summary:	Marking things to do in a LaTeX document
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/todonotes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/todonotes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/todonotes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/todonotes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package lets the user mark things to do later, in a simple
and visually appealing way. The package takes several options
to enable customization/finetuning of the visual appearance.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/todonotes
%doc %{_texmfdistdir}/doc/latex/todonotes
#- source
%doc %{_texmfdistdir}/source/latex/todonotes

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19743 |21mr|texlive-tokenizer-1.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/tokenizer
# catalog-date 2006-12-23 09:07:09 +0100
# catalog-license lppl
# catalog-version 1.1.0
Name:		texlive-tokenizer
Version:	1.1.0
Release:	7
Summary:	A tokenizer
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tokenizer
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tokenizer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tokenizer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A tokenizer for LaTeX. \GetTokens{Target1}{Target2}{Source}
Splits Source into two tokens at the first encounter of a
comma. The first token is saved in a newly created command with
the name passed as Target1 and the second token likewise. A
package option 'trim' causes leading and trailing space to be
removed from each token; with this option, the \TrimSpaces
command is defined, which removes leading and trailing spaces
from its argument.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tokenizer/tokenizer.sty
%doc %{_texmfdistdir}/doc/latex/tokenizer/tokenizer.pdf
%doc %{_texmfdistdir}/doc/latex/tokenizer/tokenizer.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19744 |21mr|texlive-toolbox-5.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32260
# category Package
# catalog-ctan /macros/latex/contrib/toolbox
# catalog-date 2013-11-27 01:19:45 +0100
# catalog-license lppl
# catalog-version 5.1
Name:		texlive-toolbox
Version:	5.1
Release:	12
Summary:	Tool macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/toolbox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/toolbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/toolbox.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/toolbox.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for (La)TeX which provides some macros which are
convenient for writing indexes, glossaries, or other macros. It
contains macros which support: implicit macros; fancy optional
arguments; loops over tokenlists and itemlists; searching and
splitting; controlled expansion; redefinition of macros; and
concatenated macro names; macros for text replacement.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/toolbox/toolbox.sty
%doc %{_texmfdistdir}/doc/latex/toolbox/README
%doc %{_texmfdistdir}/doc/latex/toolbox/toolbox.pdf
%doc %{_texmfdistdir}/doc/latex/toolbox/toolbox.tex
%doc %{_texmfdistdir}/doc/latex/toolbox/toolbox.txt
#- source
%doc %{_texmfdistdir}/source/latex/toolbox/toolbox.dtx
%doc %{_texmfdistdir}/source/latex/toolbox/toolbox.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19745 |21mr|texlive-tools-20190107-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tools
Version:	20190107
Release:	1
Summary:	The LaTeX standard tools bundle
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/required/tools
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tools.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tools.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tools.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A collection of (variously) simple tools provided as part of
the LaTeX required tools distribution, comprising the packages:
afterpage, array, bm, calc, dcolumn, delarray, enumerate,
fileerr, fontsmpl, ftnright, hhline, indentfirst, layout,
longtable, multicol, rawfonts, showkeys, somedefs, tabularx,
theorem, trace, varioref, verbatim, xr, and xspace.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tools
%doc %{_texmfdistdir}/doc/latex/tools
#- source
%doc %{_texmfdistdir}/source/latex/tools

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19746 |21mr|texlive-topfloat-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19084
# category Package
# catalog-ctan /macros/latex/contrib/topfloat
# catalog-date 2007-01-17 10:01:14 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-topfloat
Version:	20190228
Release:	1
Summary:	Move floats to the top of the page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/topfloat
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/topfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/topfloat.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive topfloat package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/topfloat/topfloat.sty
%doc %{_texmfdistdir}/doc/latex/topfloat/topfloat.pdf
%doc %{_texmfdistdir}/doc/latex/topfloat/topfloat.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19747 |21mr|texlive-toptesi-6.2.09-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-toptesi
Version:	6.2.09
Release:	1
Summary:	Bundle of files for typsetting theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/toptesi
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/toptesi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/toptesi.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/toptesi.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This bundle contains everything is needed for typesetting a
bachelor, master or PhD thesis in Italian (or in any other
language supported by LaTeX: the bundle is constructed to
support multilingual use). The infix strings may be selected
and specified at will by means of a configuration file, so as
to customize the layout of the front page to the requirements
of a specific university. Thanks to its language management,
the bundle is suited for multilanguage theses that are becoming
more and more frequent thanks to the double degree programs of
the European Community Socrates programs. Toptesi is designed
to save the PDF version of a thesis in PDF/A-1b compliant mode
and with all the necessary metadata.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/toptesi
%doc %{_texmfdistdir}/doc/latex/toptesi
#- source
%doc %{_texmfdistdir}/source/latex/toptesi

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19748 |21mr|texlive-totcount-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21178
# category Package
# catalog-ctan /macros/latex/contrib/totcount
# catalog-date 2011-01-25 21:21:41 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-totcount
Version:	1.2
Release:	7
Summary:	Find the last value of a counter
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/totcount
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/totcount.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/totcount.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/totcount.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package records the value that was last set, for any
counter of interest; since most such counters are simply
incremented when they are changed, the recorded value will
usually be the maximum value.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/totcount/totcount.sty
%doc %{_texmfdistdir}/doc/latex/totcount/README
%doc %{_texmfdistdir}/doc/latex/totcount/totcount-ex.tex
%doc %{_texmfdistdir}/doc/latex/totcount/totcount.pdf
#- source
%doc %{_texmfdistdir}/source/latex/totcount/totcount.drv
%doc %{_texmfdistdir}/source/latex/totcount/totcount.dtx
%doc %{_texmfdistdir}/source/latex/totcount/totcount.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19749 |21mr|texlive-totpages-2.00-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/totpages
# catalog-date 2007-01-18 20:18:05 +0100
# catalog-license lppl
# catalog-version 2.00
Name:		texlive-totpages
Version:	2.00
Release:	7
Summary:	Count pages in a document, and report last page number
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/totpages
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/totpages.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/totpages.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/totpages.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package counts the actual pages in the document (as opposed
to reporting the number of the last page, as does lastpage).
The counter itself may be shipped out to the DVI file. The
package uses the everyshi package for its task.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/totpages/totpages.sty
%doc %{_texmfdistdir}/doc/latex/totpages/README
%doc %{_texmfdistdir}/doc/latex/totpages/totexmpl.tex
%doc %{_texmfdistdir}/doc/latex/totpages/totpages.pdf
#- source
%doc %{_texmfdistdir}/source/latex/totpages/totpages.drv
%doc %{_texmfdistdir}/source/latex/totpages/totpages.dtx
%doc %{_texmfdistdir}/source/latex/totpages/totpages.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19750 |21mr|texlive-tpslifonts-0.6-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27464
# category Package
# catalog-ctan /macros/latex/contrib/texpower/tpslifonts
# catalog-date 2012-04-27 17:14:22 +0200
# catalog-license gpl
# catalog-version 0.6
Name:		texlive-tpslifonts
Version:	0.6
Release:	13
Summary:	A LaTeX package for configuring presentation fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/texpower/tpslifonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tpslifonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tpslifonts.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tpslifonts.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package aims to improve presentations in terms of font
readability, especially with maths. The standard cm math fonts
at large design sizes are difficult to read from far away,
especially at low resolutions and low contrast color choice.
Using this package leads to much better overall readability of
some font combinations. The package offers a couple of
'harmonising' combinations of text and math fonts from the
(distant) relatives of computer modern fonts, with a couple of
extras for optimising readability. Text fonts from computer
modern roman, computer modern sans serif, SliTeX computer
modern sans serif, computer modern bright, or concrete roman
are available, in addition to math fonts from computer modern
math, computer modern bright math, or Euler fonts. The package
is part of the TeXPower bundle.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tpslifonts/tpslifonts.sty
%doc %{_texmfdistdir}/doc/latex/tpslifonts/00readme.txt
%doc %{_texmfdistdir}/doc/latex/tpslifonts/01install.txt
%doc %{_texmfdistdir}/doc/latex/tpslifonts/Makefile
%doc %{_texmfdistdir}/doc/latex/tpslifonts/slifontsexample.tex
#- source
%doc %{_texmfdistdir}/source/latex/tpslifonts/tpslifonts.dtx
%doc %{_texmfdistdir}/source/latex/tpslifonts/tpslifonts.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19751 |21mr|texlive-tqft-2.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24169
# category Package
# catalog-ctan /macros/latex/contrib/tqft
# catalog-date 2017-06-01 14:43:33 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-tqft
Version:	2.1
Release:	2
Summary:	Drawing TQFT diagrams with TikZ/PGF
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tqft
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tqft.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tqft.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tqft.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines some node shapes useful for drawing TQFT
diagrams with TikZ/PGF. That is, it defines highly customisable
shapes that look like cobordisms between circles, such as those
used in TQFT and other mathematical diagrams.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tqft/tqft.sty
%{_texmfdistdir}/tex/latex/tqft/tikzlibrarytqft.code.tex
%doc %{_texmfdistdir}/doc/latex/tqft/README
%doc %{_texmfdistdir}/doc/latex/tqft/tqft_code.pdf
%doc %{_texmfdistdir}/doc/latex/tqft/tqft.pdf
%doc %{_texmfdistdir}/doc/latex/tqft/tqft_doc.tex
#- source
%doc %{_texmfdistdir}/source/latex/tqft/tqft.dtx
%doc %{_texmfdistdir}/source/latex/tqft/tqft.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19752 |21mr|texlive-tram-0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/tram
# catalog-date 2013-04-05 13:20:40 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-tram
Version:	0.2
Release:	10
Summary:	Typeset tram boxes in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tram
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tram.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tram.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Tram boxes are highlighted with patterns of dots; the package
defines an environment tram that typesets its content into a
tram box. The pattern used may be selected in an optional
argument to the environment.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/tram/tram.mf
%{_texmfdistdir}/tex/latex/tram/tram.sty
%doc %{_texmfdistdir}/doc/latex/tram/README
%doc %{_texmfdistdir}/doc/latex/tram/tram-doc.pdf
%doc %{_texmfdistdir}/doc/latex/tram/tram-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19753 |21mr|texlive-translation-array-fr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24344
# category Package
# catalog-ctan /info/translations/array/fr
# catalog-date 2011-10-20 17:00:28 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-array-fr
Version:	20190228
Release:	1
Summary:	French translation of the documentation of array
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/array/fr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-array-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-array-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A French translation of the documentation of array.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-array-fr/Copyright
%doc %{_texmfdistdir}/doc/latex/translation-array-fr/README
%doc %{_texmfdistdir}/doc/latex/translation-array-fr/f-array.dtx
%doc %{_texmfdistdir}/doc/latex/translation-array-fr/f-array.pdf
%doc %{_texmfdistdir}/doc/latex/translation-array-fr/ltxdoc.cfg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19754 |21mr|texlive-translation-arsclassica-de-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23803
# category Package
# catalog-ctan /info/translations/arsclassica/de
# catalog-date 2011-09-01 19:45:17 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-arsclassica-de
Version:	20190228
Release:	1
Summary:	German version of arsclassica
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/arsclassica/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-arsclassica-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-arsclassica-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a "translation" of the arsclassica dcoumentation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-arsclassica-de/ArsClassica-de.pdf
%doc %{_texmfdistdir}/doc/latex/translation-arsclassica-de/ArsClassica-de.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19755 |21mr|texlive-translation-biblatex-de-3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-translation-biblatex-de
Version:	3.0
Release:	3
Summary:	German translation of the documentation of biblatex
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/biblatex/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-biblatex-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-biblatex-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A German translation of the documentation of biblatex.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-biblatex-de

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19756 |21mr|texlive-translation-chemsym-de-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23804
# category Package
# catalog-ctan /info/translations/chemsym/de
# catalog-date 2011-09-01 18:55:53 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-chemsym-de
Version:	20190228
Release:	1
Summary:	German version of chemsym
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/chemsym/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-chemsym-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-chemsym-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a "translation" of the chemsym documentation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-chemsym-de/00Liesmich.chs
%doc %{_texmfdistdir}/doc/latex/translation-chemsym-de/chemsym-de.dtx
%doc %{_texmfdistdir}/doc/latex/translation-chemsym-de/chemsym-de.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19757 |21mr|texlive-translation-dcolumn-fr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24345
# category Package
# catalog-ctan /info/translations/dcolumn/fr
# catalog-date 2011-10-20 17:00:28 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-dcolumn-fr
Version:	20190228
Release:	1
Summary:	French translation of the documentation of dcolumn
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/dcolumn/fr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-dcolumn-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-dcolumn-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A French translation of the documentation of dcolumn.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-dcolumn-fr/Copyright
%doc %{_texmfdistdir}/doc/latex/translation-dcolumn-fr/README
%doc %{_texmfdistdir}/doc/latex/translation-dcolumn-fr/f-dcolumn.dtx
%doc %{_texmfdistdir}/doc/latex/translation-dcolumn-fr/f-dcolumn.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19758 |21mr|texlive-translation-ecv-de-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24754
# category Package
# catalog-ctan /info/translations/ecv/de
# catalog-date 2011-09-15 18:36:27 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-ecv-de
Version:	20190228
Release:	1
Summary:	German version of evc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/ecv/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-ecv-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-ecv-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a "translation" of the ecv documentation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-ecv-de/ecvde.dtx.pdf
%doc %{_texmfdistdir}/doc/latex/translation-ecv-de/ecvde.dtx.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19759 |21mr|texlive-translation-enumitem-de-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24196
# category Package
# catalog-ctan /info/translations/enumitem/de
# catalog-date 2011-10-04 22:25:03 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-enumitem-de
Version:	20190228
Release:	1
Summary:	Enumitem documentation, in German
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/enumitem/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-enumitem-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-enumitem-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a translation of the manual for enumitem.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-enumitem-de/enumitem-de.pdf
%doc %{_texmfdistdir}/doc/latex/translation-enumitem-de/enumitem-de.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19760 |21mr|texlive-translation-europecv-de-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23840
# category Package
# catalog-ctan /info/translations/europecv/de
# catalog-date 2011-09-05 11:34:40 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-europecv-de
Version:	20190228
Release:	1
Summary:	German version of europecv
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/europecv/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-europecv-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-europecv-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a "translation" of the europecv documentation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/at.pdf
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/bulgarian-koi8-r.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/bulgarian-utf8.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/greek-utf8.pdf
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/greek-utf8.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/maltese-maltese.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/maltese-utf8.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/minimal.pdf
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/Beispiele/minimal.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/europecv-de.pdf
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/europecv-de.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/cv_template_de.pdf
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/cv_template_de.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/cv_template_en.pdf
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/cv_template_en.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/cv_template_it.pdf
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/cv_template_it.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/cv_template_pl.pdf
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/cv_template_pl.tex
%doc %{_texmfdistdir}/doc/latex/translation-europecv-de/templates/publications.bib

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19761 |21mr|texlive-translation-filecontents-de-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24010
# category Package
# catalog-ctan /info/translations/filecontents/de
# catalog-date 2011-09-18 09:08:24 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-filecontents-de
Version:	20190228
Release:	1
Summary:	German version of filecontents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/filecontents/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-filecontents-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-filecontents-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a "translation" of the filecontents documentation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-filecontents-de/filecontents-de.dtx
%doc %{_texmfdistdir}/doc/latex/translation-filecontents-de/filecontents-de.ins
%doc %{_texmfdistdir}/doc/latex/translation-filecontents-de/filecontents-de.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19762 |21mr|texlive-translation-moreverb-de-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23957
# category Package
# catalog-ctan /info/translations/moreverb/de
# catalog-date 2011-09-14 17:59:09 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-moreverb-de
Version:	20190228
Release:	1
Summary:	German version of moreverb
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/moreverb/de
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-moreverb-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-moreverb-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a "translation" of the moreverb documentation.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-moreverb-de/filecontens-de.ins.txt
%doc %{_texmfdistdir}/doc/latex/translation-moreverb-de/moreverb-de.dtx.pdf
%doc %{_texmfdistdir}/doc/latex/translation-moreverb-de/moreverb-de.dtx.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19763 |21mr|texlive-translation-natbib-fr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25105
# category Package
# catalog-ctan /info/translations/natbib/fr
# catalog-date 2012-01-14 10:04:15 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-translation-natbib-fr
Version:	20190228
Release:	1
Summary:	French translation of the documentation of natbib
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/natbib/fr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-natbib-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-natbib-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A French translation of the documentation of natbib.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-natbib-fr/f-natbib.dtx
%doc %{_texmfdistdir}/doc/latex/translation-natbib-fr/f-natbib.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19764 |21mr|texlive-translations-1.7a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-translations
Version:	1.7a
Release:	2
Summary:	Internationalisation of LaTeX2e packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/translations
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translations.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translations.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package (once part of the exsheets package), provides a
framework for providing multilingual features to a LaTeX
package. The package has its own basic dictionaries for
English, French, German and Spanish; it aims to use translation
material for English, French, German, Italian, Spanish,
Catalan, Turkish, Croatian, Hungarian, Danish and Portuguese
from babel or polyglossia if either is in use in the document.
(Additional languages from the multilingual packages may be
possible: ask the author.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/translations
%doc %{_texmfdistdir}/doc/latex/translations

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19765 |21mr|texlive-translation-tabbing-fr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24228
# category Package
# catalog-ctan /info/translations/Tabbing/fr
# catalog-date 2011-10-06 13:30:54 +0200
# catalog-license lppl1
# catalog-version undef
Name:		texlive-translation-tabbing-fr
Version:	20190228
Release:	1
Summary:	French translation of the documentation of Tabbing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/translations/Tabbing/fr
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-tabbing-fr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/translation-tabbing-fr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
A translation to French (by the author) of the documentation of
the Tabbing package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/translation-tabbing-fr/f-Tabbing.dtx
%doc %{_texmfdistdir}/doc/latex/translation-tabbing-fr/f-Tabbing.pdf
%doc %{_texmfdistdir}/doc/latex/translation-tabbing-fr/ltxdoc.cfg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19766 |21mr|texlive-translator-1.12c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-translator
Version:	1.12c
Release:	1
Summary:	Easy translation of strings in LaTeX
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/translator
License:	The LATEX Project Public License
Source0:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/translator.tar.xz
Source1:	https://mirror.truenetwork.ru/CTAN/systems/texlive/tlnet/archive/translator.doc.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
The translator package is a LaTeX package that provides a flexible
mechanism for translating individual words into different languages.
For example, it can be used to translate a word like figure into, say,
the German word Abbildung. Such a translation mechanism is useful when
the author of some package would like to localize the package such that
texts are correctly translated into the language preferred by the user.
The translator package is not intended to be used to automatically
translate more than a few words.

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/translator/translator*
%doc /usr/share/texmf-dist/doc/latex/translator/translator.pdf
%doc /usr/share/texmf-dist/doc/latex/translator/translator.tex
%doc /usr/share/texmf-dist/doc/latex/translator/README.md

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc %{buildroot}/usr/share/texmf-dist

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19767 |21mr|texlive-tree-dvips-.91-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21751
# category Package
# catalog-ctan /macros/latex209/contrib/trees/tree-dvips
# catalog-date 2011-03-14 14:09:23 +0100
# catalog-license lppl1
# catalog-version .91
Name:		texlive-tree-dvips
Version:	.91
Release:	7
Summary:	Trees and other linguists' macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex209/contrib/trees/tree-dvips
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tree-dvips.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tree-dvips.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a mechanism for specifying connected trees
that uses a tabular environment to generate node positions. The
package uses PostScript code, loaded by dvips, so output can
only be generated by use of dvips. The package lingmacros.sty
defines a few macros for linguists: \enumsentence for
enumerating sentence examples, simple tabular-based non-
connected tree macros, and gloss macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/tree-dvips/tree-dvips91.pro
%{_texmfdistdir}/tex/latex/tree-dvips/lingmacros.sty
%{_texmfdistdir}/tex/latex/tree-dvips/tree-dvips.sty
%doc %{_texmfdistdir}/doc/latex/tree-dvips/Makefile
%doc %{_texmfdistdir}/doc/latex/tree-dvips/README
%doc %{_texmfdistdir}/doc/latex/tree-dvips/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/tree-dvips/lingmacros-manual.pdf
%doc %{_texmfdistdir}/doc/latex/tree-dvips/lingmacros-manual.tex
%doc %{_texmfdistdir}/doc/latex/tree-dvips/tree-dvips91.script
%doc %{_texmfdistdir}/doc/latex/tree-dvips/tree-manual.pdf
%doc %{_texmfdistdir}/doc/latex/tree-dvips/tree-manual.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19768 |21mr|texlive-trfsigns-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/trfsigns
# catalog-date 2006-12-05 00:47:24 +0100
# catalog-license gpl
# catalog-version 1.01
Name:		texlive-trfsigns
Version:	1.01
Release:	7
Summary:	Typeset transform signs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/trfsigns
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trfsigns.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trfsigns.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trfsigns.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for typesetting various transformation signs for
Laplace transforms, Fourier transforms and others.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/trfsigns/trfsigns.sty
%doc %{_texmfdistdir}/doc/latex/trfsigns/COPYING
%doc %{_texmfdistdir}/doc/latex/trfsigns/README
%doc %{_texmfdistdir}/doc/latex/trfsigns/trfexamp.tex
%doc %{_texmfdistdir}/doc/latex/trfsigns/trfsigns.pdf
#- source
%doc %{_texmfdistdir}/source/latex/trfsigns/trfsigns.drv
%doc %{_texmfdistdir}/source/latex/trfsigns/trfsigns.dtx
%doc %{_texmfdistdir}/source/latex/trfsigns/trfsigns.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19769 |21mr|texlive-trimspaces-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/trimspaces
# catalog-date 2009-11-10 08:50:14 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-trimspaces
Version:	1.1
Release:	7
Summary:	Trim spaces around an argument or within a macro
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/trimspaces
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trimspaces.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trimspaces.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trimspaces.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A very short package that allows you to expandably remove
spaces around a token list (commands are provided to remove
spaces before, spaces after, or both); or to remove surrounding
spaces within a macro definition, or to define space-stripped
macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/trimspaces/trimspaces.sty
%doc %{_texmfdistdir}/doc/latex/trimspaces/README
%doc %{_texmfdistdir}/doc/latex/trimspaces/trimspaces.pdf
#- source
%doc %{_texmfdistdir}/source/latex/trimspaces/trimspaces.ins
%doc %{_texmfdistdir}/source/latex/trimspaces/trimspaces.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19770 |21mr|texlive-trivfloat-1.3b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/trivfloat
# catalog-date 2009-04-24 13:36:42 +0200
# catalog-license lppl
# catalog-version 1.3b
Name:		texlive-trivfloat
Version:	1.3b
Release:	7
Summary:	Quick float definitions in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/trivfloat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trivfloat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trivfloat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trivfloat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The trivfloat package provides a quick method for defining new
float types in LaTeX. A single command sets up a new float in
the same style as the LaTeX kernel figure and table float
types. The package works with memoir as well as the standard
classes.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/trivfloat/trivfloat.sty
%doc %{_texmfdistdir}/doc/latex/trivfloat/README
%doc %{_texmfdistdir}/doc/latex/trivfloat/trivfloat.pdf
#- source
%doc %{_texmfdistdir}/source/latex/trivfloat/trivfloat.dtx
%doc %{_texmfdistdir}/source/latex/trivfloat/trivfloat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19771 |21mr|texlive-trsym-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18732
# category Package
# catalog-ctan /fonts/trsym
# catalog-date 2007-10-24 18:05:15 +0200
# catalog-license lppl1.2
# catalog-version 1.0
Name:		texlive-trsym
Version:	1.0
Release:	7
Summary:	Symbols for transformations
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/trsym
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trsym.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trsym.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/trsym.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides MetaFont sources for a small font used for
(e.g.) Laplace transformations, together with a LaTeX .fd file
and a package providing commands for the symbols' use in
mathematics.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/trsym/trsy.mf
%{_texmfdistdir}/fonts/source/public/trsym/trsy10.mf
%{_texmfdistdir}/fonts/source/public/trsym/trsy12.mf
%{_texmfdistdir}/fonts/tfm/public/trsym/trsy10.tfm
%{_texmfdistdir}/fonts/tfm/public/trsym/trsy12.tfm
%{_texmfdistdir}/tex/latex/trsym/trsym.sty
%{_texmfdistdir}/tex/latex/trsym/utrsy.fd
%doc %{_texmfdistdir}/doc/latex/trsym/README
%doc %{_texmfdistdir}/doc/latex/trsym/manifest.txt
%doc %{_texmfdistdir}/doc/latex/trsym/trsym.pdf
#- source
%doc %{_texmfdistdir}/source/latex/trsym/trsym.dtx
%doc %{_texmfdistdir}/source/latex/trsym/trsym.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19772 |21mr|texlive-truncate-3.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18921
# category Package
# catalog-ctan /macros/latex/contrib/truncate
# catalog-date 2010-06-06 13:50:32 +0200
# catalog-license pd
# catalog-version 3.6
Name:		texlive-truncate
Version:	3.6
Release:	7
Summary:	Truncate text to a specified width
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/truncate
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/truncate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/truncate.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package will by default break at word boundaries, but
package options are offered to permit breaks within words.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/truncate/truncate.sty
%doc %{_texmfdistdir}/doc/latex/truncate/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/truncate/truncate.pdf
%doc %{_texmfdistdir}/doc/latex/truncate/truncate.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19773 |21mr|texlive-tsemlines-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23440
# category Package
# catalog-ctan /macros/latex/contrib/tsemlines/tsemlines.sty
# catalog-date 2011-06-28 13:55:08 +0200
# catalog-license pd
# catalog-version 1.0
Name:		texlive-tsemlines
Version:	1.0
Release:	7
Summary:	Support for the ancient \emline macro
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tsemlines/tsemlines.sty
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tsemlines.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Occasional Documents appear, that use graphics generated by
texcad from the emtex distribution. These documents often use
the \emline macro, which produced lines at an arbitrary
orientation. The present package emulates the macro, using
TikZ.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tsemlines/tsemlines.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19774 |21mr|texlive-ttfutils-20200305-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ttfutils
Version:	20200305
Release:	1
Summary:	TeXLive ttfutils package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ttfutils.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ttfutils.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-ttfutils.bin

%description
TeXLive ttfutils package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/enc/ttf2pk/base/T1-WGL4.enc
%{_texmfdistdir}/fonts/sfd/ttf2pk/Big5.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/EUC.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/HKSCS.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/KS-HLaTeX.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/SJIS.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/UBg5plus.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/UBig5.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/UGB.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/UGBK.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/UJIS.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/UKS-HLaTeX.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/UKS.sfd
%{_texmfdistdir}/fonts/sfd/ttf2pk/Unicode.sfd
%{_texmfdistdir}/ttf2pk/VPS.rpl
%{_texmfdistdir}/ttf2pk/ttf2pk.cfg
%doc %{_mandir}/man1/ttf2afm.1*
%doc %{_texmfdistdir}/doc/man/man1/ttf2afm.man1.pdf
%doc %{_mandir}/man1/ttf2pk.1*
%doc %{_texmfdistdir}/doc/man/man1/ttf2pk.man1.pdf
%doc %{_mandir}/man1/ttf2tfm.1*
%doc %{_texmfdistdir}/doc/man/man1/ttf2tfm.man1.pdf
%doc %{_mandir}/man1/ttfdump.1*
%doc %{_texmfdistdir}/doc/man/man1/ttfdump.man1.pdf
%doc %{_texmfdistdir}/doc/ttf2pk/ttf2pk.doc
%doc %{_texmfdistdir}/doc/ttf2pk/ttf2pk.txt
%doc %{_texmfdistdir}/doc/ttf2pk/ttf2tfm.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19775 |21mr|texlive-tucv-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20680
# category Package
# catalog-ctan /macros/latex/contrib/tucv
# catalog-date 2010-12-06 21:43:44 +0100
# catalog-license other-free
# catalog-version 1.0
Name:		texlive-tucv
Version:	1.0
Release:	7
Summary:	Support for typesetting a CV or resumee
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tucv
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tucv.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tucv.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tucv.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands for typesetting a CV or resume.
It provides commands for general-purpose headings, entries, and
item/description pairs, as well as more specific commands for
formatting sections, with explicit inclusion of school, degree,
employer, job, conference, and publications entries. It tends
to produce a somewhat long and quite detailed document but may
also be suitable to support a shorter resume.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tucv/tucv.sty
%doc %{_texmfdistdir}/doc/latex/tucv/README
%doc %{_texmfdistdir}/doc/latex/tucv/tucv.pdf
%doc %{_texmfdistdir}/doc/latex/tucv/tucv_ex.pdf
%doc %{_texmfdistdir}/doc/latex/tucv/tucv_ex.tex
#- source
%doc %{_texmfdistdir}/source/latex/tucv/tucv.dtx
%doc %{_texmfdistdir}/source/latex/tucv/tucv.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19776 |21mr|texlive-tufte-latex-3.5.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-tufte-latex
Version:	3.5.2
Release:	3
Summary:	Document classes inspired by the work of Edward Tufte
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tufte-latex
License:	APACHE2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tufte-latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tufte-latex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-xifthen
Requires:	texlive-ifmtarg
Requires:	texlive-changepage
Requires:	texlive-paralist
Requires:	texlive-sauerj
Requires:	texlive-placeins

%description
Provided are two classes inspired, respectively, by handouts
and books created by Edward Tufte.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tufte-latex
%doc %{_texmfdistdir}/doc/latex/tufte-latex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19777 |21mr|texlive-tugboat-2.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32478
# category Package
# catalog-ctan /macros/latex/contrib/tugboat
# catalog-date 2013-12-23 22:50:28 +0100
# catalog-license lppl
# catalog-version 2.14
Name:		texlive-tugboat
Version:	2.19
Release:	2
Summary:	LaTeX macros for TUGboat articles
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tugboat
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tugboat.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tugboat.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tugboat.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides ltugboat.cls for both regular and proceedings issues
of the TUGboat journal. The distribution also includes a BibTeX
style appropriate for use with the classes' "harvard" option.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/tugboat/ltugbib.bst
%{_texmfdistdir}/tex/latex/tugboat/ltugboat.cls
%{_texmfdistdir}/tex/latex/tugboat/ltugboat.sty
%{_texmfdistdir}/tex/latex/tugboat/ltugcomn.sty
%{_texmfdistdir}/tex/latex/tugboat/ltugproc.cls
%{_texmfdistdir}/tex/latex/tugboat/ltugproc.sty
%doc %{_texmfdistdir}/doc/latex/tugboat/README
%doc %{_texmfdistdir}/doc/latex/tugboat/ltubguid.ltx
%doc %{_texmfdistdir}/doc/latex/tugboat/ltubguid.pdf
%doc %{_texmfdistdir}/doc/latex/tugboat/manifest.txt
%doc %{_texmfdistdir}/doc/latex/tugboat/tugboat.pdf
#- source
%doc %{_texmfdistdir}/source/latex/tugboat/tugboat.dtx
%doc %{_texmfdistdir}/source/latex/tugboat/tugboat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19778 |21mr|texlive-tugboat-plain-1.24-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31340
# category Package
# catalog-ctan /macros/plain/contrib/tugboat
# catalog-date 2013-08-03 12:08:10 +0200
# catalog-license other-free
# catalog-version 1.21
Name:		texlive-tugboat-plain
Epoch:		1
Version:	1.24
Release:	1
Summary:	Plain TeX macros for TUGboat
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/plain/contrib/tugboat
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tugboat-plain.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tugboat-plain.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The macros defined in this directory (in files tugboat.sty and
tugboat.cmn) are used in papers written in Plain TeX for
publication in TUGboat.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/plain/tugboat-plain/tugboat.cmn
%{_texmfdistdir}/tex/plain/tugboat-plain/tugboat.sty
%{_texmfdistdir}/tex/plain/tugboat-plain/tugproc.sty
%doc %{_texmfdistdir}/doc/plain/tugboat-plain/README
%doc %{_texmfdistdir}/doc/plain/tugboat-plain/tubguide.pdf
%doc %{_texmfdistdir}/doc/plain/tugboat-plain/tubguide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19779 |21mr|texlive-tui-1.9-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27253
# category Package
# catalog-ctan /macros/latex/contrib/tui
# catalog-date 2012-07-30 18:08:41 +0200
# catalog-license lppl
# catalog-version 1.9
Name:		texlive-tui
Version:	1.9
Release:	6
Summary:	Thesis style for the University of the Andes, Colombia
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/tui
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tui.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/tui.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Doctoral Dissertations from the Faculty of Engineering at the
Universidad de los Andes, Bogota, Colombia. The class is
implemented as an extension of the memoir class. Clase de Tesis
doctorales para ingenieria, Universidad de los Andes, Bogota.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/tui/tui.cls
%doc %{_texmfdistdir}/doc/latex/tui/README
%doc %{_texmfdistdir}/doc/latex/tui/TUIdoc.pdf
%doc %{_texmfdistdir}/doc/latex/tui/TUIdoc.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/abstract.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/agradec.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/ap01.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/bibliotesis.bib
%doc %{_texmfdistdir}/doc/latex/tui/example/ch01.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/ch02.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/ch03.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/coleccion.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/dedicat.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/hyphenation.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/imagen.pdf
%doc %{_texmfdistdir}/doc/latex/tui/example/intro.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/lipsum.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/listofsymbols.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/main.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/plegal.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/portada.tex
%doc %{_texmfdistdir}/doc/latex/tui/example/resumen.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/abstract.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/agradec.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/ap01.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/bibliotesis.bib
%doc %{_texmfdistdir}/doc/latex/tui/template/ch01.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/ch02.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/ch03.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/coleccion.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/dedicat.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/hyphenation.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/intro.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/listofsymbols.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/main.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/plegal.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/portada.tex
%doc %{_texmfdistdir}/doc/latex/tui/template/resumen.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19780 |21mr|texlive-turkmen-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17748
# category Package
# catalog-ctan /language/turkmen
# catalog-date 2010-04-06 13:44:40 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-turkmen
Version:	0.2
Release:	7
Summary:	Babel support for Turkmen
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/turkmen
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turkmen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turkmen.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turkmen.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides support for Turkmen in babel, but
integration with babel is not available.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/turkmen/turkmen.ldf
%doc %{_texmfdistdir}/doc/latex/turkmen/README
%doc %{_texmfdistdir}/doc/latex/turkmen/turkmen.pdf
#- source
%doc %{_texmfdistdir}/source/latex/turkmen/turkmen.dtx
%doc %{_texmfdistdir}/source/latex/turkmen/turkmen.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19781 |21mr|texlive-turnthepage-1.3a-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29803
# category Package
# catalog-ctan /macros/latex/contrib/turnthepage
# catalog-date 2012-08-19 17:38:37 +0200
# catalog-license lppl
# catalog-version 1.3a
Name:		texlive-turnthepage
Version:	1.3a
Release:	13
Summary:	Provide "turn page" instructions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/turnthepage
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turnthepage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/turnthepage.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package prints a 'turn' instruction at the bottom of odd-
numbered pages (except the last). This is a common convention
for examination papers and the like.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/turnthepage/turnpageetex.sty
%{_texmfdistdir}/tex/latex/turnthepage/turnpagewoetex.sty
%{_texmfdistdir}/tex/latex/turnthepage/turnthepage.sty
%doc %{_texmfdistdir}/doc/latex/turnthepage/Makefile
%doc %{_texmfdistdir}/doc/latex/turnthepage/README
%doc %{_texmfdistdir}/doc/latex/turnthepage/perso.ist
%doc %{_texmfdistdir}/doc/latex/turnthepage/turnthepage-bib.bib
%doc %{_texmfdistdir}/doc/latex/turnthepage/turnthepage.pdf
%doc %{_texmfdistdir}/doc/latex/turnthepage/turnthepage.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19782 |21mr|texlive-twoinone-20180303-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17024
# category Package
# catalog-ctan /macros/latex/contrib/twoinone
# catalog-date 2010-02-26 11:17:49 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-twoinone
Version:	20180303
Release:	2
Summary:	Print two pages on a single page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/twoinone
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/twoinone.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/twoinone.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is for printing two pages on a single (landscape)
A4 page. Page numbers appear on the included pages, and not on
the landscape 'container' page.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/twoinone/2in1.sty
%doc %{_texmfdistdir}/doc/latex/twoinone/twoinone.pdf
%doc %{_texmfdistdir}/doc/latex/twoinone/twoinone.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19783 |21mr|texlive-twoup-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/twoup
# catalog-date 2007-02-27 14:52:52 +0100
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-twoup
Version:	1.3
Release:	7
Summary:	Print two virtual pages on each physical page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/twoup
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/twoup.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/twoup.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/twoup.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
MiKTeX and many other TeX implementations include tools for
massaging PostScript into booklet and two-up printing -- that
is, printing two logical pages side by side on one side of one
sheet of paper. However, some LaTeX preliminaries are necessary
to use those tools. The twoup package provides such
preliminaries and gives advice on how to use the PostScript
tools.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/twoup/twoup.sty
%doc %{_texmfdistdir}/doc/latex/twoup/README
%doc %{_texmfdistdir}/doc/latex/twoup/twoup.pdf
#- source
%doc %{_texmfdistdir}/source/latex/twoup/twoup.dtx
%doc %{_texmfdistdir}/source/latex/twoup/twoup.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19784 |21mr|texlive-txfonts-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/txfonts
# catalog-date 2009-01-15 09:33:18 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-txfonts
Version:	20190228
Release:	1
Summary:	Times-like fonts in support of mathematics
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/txfonts
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/txfonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/txfonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Txfonts supplies virtual text roman fonts using Adobe Times (or
URW NimbusRomNo9L) with some modified and additional text
symbols in the OT1, T1, and TS1 encodings; maths alphabets
using Times/URW Nimbus; maths fonts providing all the symbols
of the Computer Modern and AMS fonts, including all the Greek
capital letters from CMR; and additional maths fonts of various
other symbols. The set is complemented by a sans-serif set of
text fonts, based on Helvetica/NimbusSanL, and a monospace set.
All the fonts are in Type 1 format (AFM and PFB files), and are
supported by TeX metrics (VF and TFM files) and macros for use
with LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/txfonts/rtcxb.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtcxbi.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtcxbss.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtcxi.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtcxr.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtcxss.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxb.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxbi.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxbmi.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxbsc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxbss.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxbsssc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxi.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxmi.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxr.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxsc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxss.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/rtxsssc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/t1xbtt.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/t1xbttsc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/t1xtt.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/t1xttsc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/tcxbtt.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/tcxtt.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbex.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbexa.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbmia.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbsy.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbsya.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbsyb.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbsyc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbtt.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txbttsc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txex.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txexa.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txmia.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txsy.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txsya.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txsyb.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txsyc.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txtt.afm
%{_texmfdistdir}/fonts/afm/public/txfonts/txttsc.afm
%{_texmfdistdir}/fonts/enc/dvips/txfonts/tx8r.enc
%{_texmfdistdir}/fonts/map/dvips/txfonts/txfonts.map
%{_texmfdistdir}/fonts/map/dvips/txfonts/txr.map
%{_texmfdistdir}/fonts/map/dvips/txfonts/txr1.map
%{_texmfdistdir}/fonts/map/dvips/txfonts/txr2.map
%{_texmfdistdir}/fonts/map/dvips/txfonts/txr3.map
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxbi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxbss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxbsso.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxr.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtcxsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxbi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxbss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxbsssc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxbsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxmi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxphvb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxphvbo.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxphvr.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxphvro.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxptmb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxptmbi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxptmbo.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxptmr.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxptmri.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxptmro.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxr.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxsssc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/rtxsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbsssc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbtt.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbttsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xbttsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xr.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xsssc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xtt.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xttsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/t1xttsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxbi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxbss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxbsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxbtt.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxbttsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxr.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxtt.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tcxttsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbex.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbexa.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbmi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbmi1.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbmia.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbsssc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbsy.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbsya.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbsyc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbtt.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbttsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txbttsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txex.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txexa.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txmi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txmi1.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txmia.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txr.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txsssc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txsy.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txsya.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txsyb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txsyc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txtt.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txttsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/txttsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxb.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbsssc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbtt.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbttsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxbttsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxi.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxr.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxsl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxss.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxsssc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxsssl.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxtt.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxttsc.tfm
%{_texmfdistdir}/fonts/tfm/public/txfonts/tyxttsl.tfm
%{_texmfdistdir}/fonts/type1/public/txfonts/rtcxb.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtcxbi.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtcxbss.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtcxi.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtcxr.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtcxss.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxb.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxbi.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxbmi.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxbsc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxbss.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxbsssc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxi.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxmi.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxr.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxsc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxss.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/rtxsssc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/t1xbtt.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/t1xbttsc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/t1xtt.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/t1xttsc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/tcxbtt.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/tcxtt.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbex.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbexa.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbmia.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbsy.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbsya.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbsyb.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbsyc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbtt.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txbttsc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txex.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txexa.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txmia.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txsy.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txsya.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txsyb.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txsyc.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txtt.pfb
%{_texmfdistdir}/fonts/type1/public/txfonts/txttsc.pfb
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xb.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xbi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xbsc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xbsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xbss.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xbsssc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xbsssl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xr.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xsc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xss.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xsssc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/t1xsssl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxb.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxbi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxbsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxbss.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxbsssl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxr.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxss.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tcxsssl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txb.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txbi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txbmi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txbmi1.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txbsc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txbsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txbss.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txbsssc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txbsssl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txmi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txmi1.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txr.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txsc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txss.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txsssc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/txsssl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxb.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbsc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbss.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbsssc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbsssl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbtt.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbttsc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxbttsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxi.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxr.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxsc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxsl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxss.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxsssc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxsssl.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxtt.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxttsc.vf
%{_texmfdistdir}/fonts/vf/public/txfonts/tyxttsl.vf
%{_texmfdistdir}/tex/latex/txfonts/ly1txr.fd
%{_texmfdistdir}/tex/latex/txfonts/ly1txss.fd
%{_texmfdistdir}/tex/latex/txfonts/ly1txtt.fd
%{_texmfdistdir}/tex/latex/txfonts/omltxmi.fd
%{_texmfdistdir}/tex/latex/txfonts/omltxr.fd
%{_texmfdistdir}/tex/latex/txfonts/omstxr.fd
%{_texmfdistdir}/tex/latex/txfonts/omstxsy.fd
%{_texmfdistdir}/tex/latex/txfonts/omxtxex.fd
%{_texmfdistdir}/tex/latex/txfonts/ot1txr.fd
%{_texmfdistdir}/tex/latex/txfonts/ot1txss.fd
%{_texmfdistdir}/tex/latex/txfonts/ot1txtt.fd
%{_texmfdistdir}/tex/latex/txfonts/t1txr.fd
%{_texmfdistdir}/tex/latex/txfonts/t1txss.fd
%{_texmfdistdir}/tex/latex/txfonts/t1txtt.fd
%{_texmfdistdir}/tex/latex/txfonts/ts1txr.fd
%{_texmfdistdir}/tex/latex/txfonts/ts1txss.fd
%{_texmfdistdir}/tex/latex/txfonts/ts1txtt.fd
%{_texmfdistdir}/tex/latex/txfonts/txfonts.sty
%{_texmfdistdir}/tex/latex/txfonts/utxexa.fd
%{_texmfdistdir}/tex/latex/txfonts/utxmia.fd
%{_texmfdistdir}/tex/latex/txfonts/utxr.fd
%{_texmfdistdir}/tex/latex/txfonts/utxss.fd
%{_texmfdistdir}/tex/latex/txfonts/utxsya.fd
%{_texmfdistdir}/tex/latex/txfonts/utxsyb.fd
%{_texmfdistdir}/tex/latex/txfonts/utxsyc.fd
%{_texmfdistdir}/tex/latex/txfonts/utxtt.fd
%doc %{_texmfdistdir}/doc/fonts/txfonts/00bug_fix.txt
%doc %{_texmfdistdir}/doc/fonts/txfonts/COPYRIGHT
%doc %{_texmfdistdir}/doc/fonts/txfonts/README
%doc %{_texmfdistdir}/doc/fonts/txfonts/txfontsdoc.pdf
%doc %{_texmfdistdir}/doc/fonts/txfonts/txfontsdoc.tex
%doc %{_texmfdistdir}/doc/fonts/txfonts/txfontsdocA4.pdf
%doc %{_texmfdistdir}/doc/fonts/txfonts/txfontsdocA4.tex
%doc %{_texmfdistdir}/doc/fonts/txfonts/txmi.vpl

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19785 |21mr|texlive-txgreeks-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21839
# category Package
# catalog-ctan /macros/latex/contrib/txgreeks
# catalog-date 2011-03-18 12:27:11 +0100
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-txgreeks
Version:	1.0
Release:	7
Summary:	Shape selection for TX fonts Greek letters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/txgreeks
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/txgreeks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/txgreeks.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/txgreeks.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows LaTeX users who use the TX fonts to select
the shapes (italic or upright) for the Greek lowercase and
uppercase letters. Once the shapes for lowercase and uppercase
have been selected via a package option, the \other prefix
(e.g., \otheralpha) allows using the alternate glyph (as in the
fourier package). The txgreeks package does not constrain the
text font that may be used in the document.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/txgreeks/txgreeks.sty
%doc %{_texmfdistdir}/doc/latex/txgreeks/README
%doc %{_texmfdistdir}/doc/latex/txgreeks/txgreeks.pdf
#- source
%doc %{_texmfdistdir}/source/latex/txgreeks/txgreeks.dtx
%doc %{_texmfdistdir}/source/latex/txgreeks/txgreeks.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19786 |21mr|texlive-type1cm-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21820
# category Package
# catalog-ctan /macros/latex/contrib/type1cm
# catalog-date 2011-03-24 10:40:42 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-type1cm
Version:	20190228
Release:	1
Summary:	Arbitrary size font selection in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/type1cm
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/type1cm.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/type1cm.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/type1cm.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX, by default, restricts the sizes at which you can use its
default computer modern fonts, to a fixed set of discrete sizes
(effectively, a set specified by Knuth). The type1cm package
removes this restriction; this is particularly useful when
using scalable versions of the cm fonts (Bakoma, or the
versions from BSR/Y&Y, or True Type versions from Kinch, PCTeX,
etc.). In fact, since modern distributions will automatically
generate any bitmap font you might need, type1cm has wider
application than just those using scaleable versions of the
fonts. Note that the LaTeX distribution now contains a package
fix-cm, which performs the task of type1cm, as well as doing
the same job for T1- and TS1-encoded ec fonts.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/type1cm/type1cm.sty
%doc %{_texmfdistdir}/doc/latex/type1cm/type1cm-doc.pdf
%doc %{_texmfdistdir}/doc/latex/type1cm/type1cm-doc.tex
%doc %{_texmfdistdir}/doc/latex/type1cm/type1cm.txt
#- source
%doc %{_texmfdistdir}/source/latex/type1cm/type1cm.fdd
%doc %{_texmfdistdir}/source/latex/type1cm/type1cm.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19787 |21mr|texlive-Type1fonts-2.14-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19603
# category Package
# catalog-ctan /info/Type1fonts/fontinstallationguide
# catalog-date 2010-08-29 15:39:11 +0200
# catalog-license fdl
# catalog-version 2.14
Name:		texlive-Type1fonts
Version:	2.14
Release:	6
Summary:	Font installation guide
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/Type1fonts/fontinstallationguide
License:	FDL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/Type1fonts.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/Type1fonts.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This guide discusses the most common scenarios you are likely
to encounter when installing Type 1 PostScript fonts. While the
individual tools employed in the installation process are
documented well, the actual difficulty most users are facing
when trying to install new fonts is understanding how to put
all the pieces together. This is what this guide is about.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/fonts/Type1fonts/README
%doc %{_texmfdistdir}/doc/fonts/Type1fonts/examples.zip
%doc %{_texmfdistdir}/doc/fonts/Type1fonts/fontinstallationguide.pdf
%doc %{_texmfdistdir}/doc/fonts/Type1fonts/fontinstallationguide.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19788 |21mr|texlive-typeface-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27046
# category Package
# catalog-ctan /macros/latex/contrib/typeface
# catalog-date 2012-07-02 21:55:35 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-typeface
Version:	0.1
Release:	11
Summary:	Select a balanced set of fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/typeface
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typeface.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typeface.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typeface.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means of establishing a consistent set
of fonts for use in a LaTeX document. It allows mixing and
matching the Type 1 font sets available on the archive (and it
may be extended, via its configuration file, to support other
fonts). Font-set definition takes the form of a set of options
that are read when the package is loaded: for each typographic
category (main body font, sans-serif font, monospace font,
mathematics fonts, text figures, and so on), a font or a
transformation is given in those options. The approach enables
the user to remember their own configurations (as a single
command) and to borrow configurations that other users have
developed. The present release is designated "for review".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/typeface/typeface.cfg
%{_texmfdistdir}/tex/latex/typeface/typeface.sty
%doc %{_texmfdistdir}/doc/latex/typeface/README
%doc %{_texmfdistdir}/doc/latex/typeface/typeface-all-rm.pdf
%doc %{_texmfdistdir}/doc/latex/typeface/typeface-test.tex
%doc %{_texmfdistdir}/doc/latex/typeface/typeface.pdf
%doc %{_texmfdistdir}/doc/latex/typeface/typeface.tex
#- source
%doc %{_texmfdistdir}/source/latex/typeface/typeface-all-rm.bat

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19789 |21mr|texlive-typehtml-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17134
# category Package
# catalog-ctan /macros/latex/contrib/typehtml
# catalog-date 2010-02-23 16:16:11 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-typehtml
Version:	20190228
Release:	1
Summary:	Typeset HTML directly from LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/typehtml
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typehtml.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typehtml.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typehtml.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Can handle almost all of HTML2, and most of the math fragment
of the draft HTML3.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/typehtml/typehtml.sty
%doc %{_texmfdistdir}/doc/latex/typehtml/README
%doc %{_texmfdistdir}/doc/latex/typehtml/typehtml.pdf
#- source
%doc %{_texmfdistdir}/source/latex/typehtml/typehtml.dtx
%doc %{_texmfdistdir}/source/latex/typehtml/typehtml.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19790 |21mr|texlive-typogrid-0.21-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24994
# category Package
# catalog-ctan /macros/latex/contrib/typogrid
# catalog-date 2012-01-01 15:10:03 +0100
# catalog-license lppl
# catalog-version 0.21
Name:		texlive-typogrid
Version:	0.21
Release:	6
Summary:	Print a typographic grid
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/typogrid
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typogrid.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typogrid.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/typogrid.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Draws a grid on every page of the document; the grid divides
the page into columns, and may be used for fixing measurements
of layout.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/typogrid/typogrid.sty
%doc %{_texmfdistdir}/doc/latex/typogrid/ChangeLog
%doc %{_texmfdistdir}/doc/latex/typogrid/Makefile
%doc %{_texmfdistdir}/doc/latex/typogrid/README
%doc %{_texmfdistdir}/doc/latex/typogrid/getversion.tex
%doc %{_texmfdistdir}/doc/latex/typogrid/testtypogrid.tex
%doc %{_texmfdistdir}/doc/latex/typogrid/typogrid.pdf
#- source
%doc %{_texmfdistdir}/source/latex/typogrid/typogrid.dtx
%doc %{_texmfdistdir}/source/latex/typogrid/typogrid.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19791 |21mr|texlive-uaclasses-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/uaclasses
# catalog-date 2009-01-05 22:46:04 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-uaclasses
Version:	20190228
Release:	1
Summary:	University of Arizona thesis and dissertation format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uaclasses
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uaclasses.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uaclasses.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uaclasses.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a LaTeX2e document class named 'ua-
thesis' for typesetting theses and dissertations in the
official format required by the University of Arizona.
Moreover, there is a fully compatible alternative document
class 'my-thesis' for private 'nice' copies of the
dissertation, and the respective title pages are available as
separate packages to work with any document class.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uaclasses/my-thesis.cls
%{_texmfdistdir}/tex/latex/uaclasses/my-title.sty
%{_texmfdistdir}/tex/latex/uaclasses/ua-thesis.cls
%{_texmfdistdir}/tex/latex/uaclasses/ua-title.sty
%doc %{_texmfdistdir}/doc/latex/uaclasses/README
%doc %{_texmfdistdir}/doc/latex/uaclasses/my-example.pdf
%doc %{_texmfdistdir}/doc/latex/uaclasses/ua-example.pdf
%doc %{_texmfdistdir}/doc/latex/uaclasses/ua-example.tex
#- source
%doc %{_texmfdistdir}/source/latex/uaclasses/ua-classes.dtx
%doc %{_texmfdistdir}/source/latex/uaclasses/ua-classes.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19792 |21mr|texlive-uafthesis-12.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22206
# category Package
# catalog-ctan /macros/latex/contrib/uafthesis
# catalog-date 2011-04-25 19:25:49 +0200
# catalog-license lppl
# catalog-version 5.0
Name:		texlive-uafthesis
Version:	12.12
Release:	1
Summary:	Document class for theses at University of Alaska Fairbanks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uafthesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uafthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uafthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is an "unofficial" official class.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uafthesis/uafthesis.cls
%doc %{_texmfdistdir}/doc/latex/uafthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19793 |21mr|texlive-ucdavisthesis-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ucdavisthesis
Version:	1.3
Release:	1
Summary:	A thesis/dissertation class for University of California Davis
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ucdavisthesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucdavisthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucdavisthesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucdavisthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class conforms to the University's requirements for 2009.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ucdavisthesis
%doc %{_texmfdistdir}/doc/latex/ucdavisthesis
#- source
%doc %{_texmfdistdir}/source/latex/ucdavisthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19794 |21mr|texlive-ucharcat-0.03-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ucharcat
Version:	0.03
Release:	1
Summary:	Implementation of the (new in 2015) XETEX \Ucharcat command in lua, for LuaTEX
Group:		Publishing
URL:		https://ctan.org/tex-archive/macros/latex/contrib/ucharcat
License:	The LATEX Project Public License
Source0:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ucharcat.tar.xz
Source1:	http://ctan.altspu.ru/systems/texlive/tlnet/archive/ucharcat.doc.tar.xz
Source2:    http://ctan.altspu.ru/systems/texlive/tlnet/archive/ucharcat.source.tar.xz
BuildArch:	noarch
BuildRequires: texlive-tlpkg
Requires(pre): texlive-tlpkg
Requires(post):texlive-kpathsea	

%description
The package implements the \Ucharcat command for LuaLATEX. \Ucharcat
is a new primitive in XETEX, an extension of the existing \Uchar command,
that allows the specification of the catcode as well as character code of
the character token being constructed.

#-----------------------------------------------------------------------
%files
/usr/share/texmf-dist/tex/latex/ucharcat/ucharcat.sty
%doc /usr/share/texmf-dist/doc/latex/ucharcat/ucharcat.pdf
%doc /usr/share/texmf-dist/doc/latex/ucharcat/README
# - source
/usr/share/texmf-dist/source/latex/ucharcat/ucharcat.dtx
/usr/share/texmf-dist/source/latex/ucharcat/ucharcat.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}/usr/share/texmf-dist
cp -fpar tex doc source %{buildroot}/usr/share/texmf-dist
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19795 |21mr|texlive-ucharclasses-2.3.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27820
# category Package
# catalog-ctan /macros/xetex/latex/ucharclasses
# catalog-date 2012-09-26 16:27:49 +0200
# catalog-license pd
# catalog-version 2.0
Name:		texlive-ucharclasses
Version:	2.3.0
Release:	2
Summary:	Switch fonts in XeTeX according to what is being processed
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/ucharclasses
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucharclasses.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucharclasses.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package takes care of switching fonts when you switch from
one Unicode block to another in the text of a document. This
way, you can write a document with no explicit font selection,
but a series of rules of the form "when entering block ...,
switch font to use ...".

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/ucharclasses/ucharclasses.sty
%doc %{_texmfdistdir}/doc/xelatex/ucharclasses/README
%doc %{_texmfdistdir}/doc/xelatex/ucharclasses/ucharclasses.pdf
%doc %{_texmfdistdir}/doc/xelatex/ucharclasses/ucharclasses.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19796 |21mr|texlive-ucs-2.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30472
# category Package
# catalog-ctan /macros/latex/contrib/ucs
# catalog-date 2013-05-12 16:23:52 +0200
# catalog-license lppl1.3
# catalog-version 2.2
Name:		texlive-ucs
Epoch:		1
Version:	2.2
Release:	10
Summary:	Extended UTF-8 input encoding support for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ucs
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides the ucs package, and utf8x.def, together
with a large number of support files. The utf8x.def definition
file for use with inputenc covers a wider range of Unicode
characters than does utf8.def in the LaTeX distribution. The
package provides facilities for efficient use of its large sets
of Unicode characters. Glyph production may be controlled by
various options, which permits use of non-ASCII characters when
coding mathematical formulae. Note that the bundle previously
had an alias "unicode"; that alias has now been withdrawn, and
no package of that name now exists.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ucs/data/uni-0.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-1.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-100.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-101.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-102.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-103.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-104.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-105.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-106.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-107.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-108.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-109.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-110.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-111.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-112.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-113.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-114.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-115.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-116.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-117.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-118.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-119.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-12.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-120.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-121.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-122.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-123.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-124.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-125.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-126.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-127.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-128.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-129.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-130.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-131.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-132.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-133.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-134.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-135.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-136.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-137.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-138.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-139.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-14.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-140.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-141.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-142.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-143.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-144.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-145.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-146.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-147.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-148.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-149.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-150.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-151.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-152.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-153.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-154.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-155.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-156.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-157.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-158.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-159.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-167.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-172.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-173.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-174.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-175.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-176.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-177.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-178.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-179.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-18.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-180.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-181.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-182.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-183.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-184.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-185.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-186.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-187.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-188.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-189.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-19.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-190.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-191.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-192.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-193.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-194.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-195.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-196.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-197.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-198.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-199.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-2.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-200.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-201.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-202.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-203.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-204.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-205.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-206.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-207.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-208.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-209.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-210.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-211.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-212.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-213.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-214.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-215.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-24.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-248.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-249.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-250.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-251.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-254.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-255.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-29.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-3.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-30.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-31.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-32.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-33.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-34.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-35.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-3584.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-36.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-37.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-38.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-39.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-4.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-40.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-42.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-44.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-46.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-465.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-468.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-469.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-47.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-470.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-471.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-48.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-49.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-497.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-498.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-5.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-50.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-51.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-760.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-761.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-762.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-78.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-79.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-80.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-81.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-82.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-83.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-84.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-85.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-86.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-87.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-88.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-89.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-9.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-90.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-91.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-92.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-93.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-94.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-95.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-96.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-97.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-98.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-99.def
%{_texmfdistdir}/tex/latex/ucs/data/uni-global.def
%{_texmfdistdir}/tex/latex/ucs/data/uninames.dat
%{_texmfdistdir}/tex/latex/ucs/ucs.sty
%{_texmfdistdir}/tex/latex/ucs/ucsencs.def
%{_texmfdistdir}/tex/latex/ucs/ucshyper.sty
%{_texmfdistdir}/tex/latex/ucs/ucsutils.sty
%{_texmfdistdir}/tex/latex/ucs/utf8x.def
%{_texmfdistdir}/tex/latex/ucs/utils/UnicodeT.sfd
%{_texmfdistdir}/tex/latex/ucs/utils/autofe.sty
%{_texmfdistdir}/tex/latex/ucs/utils/c00enc.def
%{_texmfdistdir}/tex/latex/ucs/utils/c10enc.def
%{_texmfdistdir}/tex/latex/ucs/utils/c40enc.def
%{_texmfdistdir}/tex/latex/ucs/utils/c42enc.def
%{_texmfdistdir}/tex/latex/ucs/utils/c61enc.def
%{_texmfdistdir}/tex/latex/ucs/utils/cenccmn.tex
%{_texmfdistdir}/tex/latex/ucs/utils/cp1252.enc
%{_texmfdistdir}/tex/latex/ucs/utils/ldvarial.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ldvc2000.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ldvenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/letc2000.fd
%{_texmfdistdir}/tex/latex/ucs/utils/letenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/letgfzem.fd
%{_texmfdistdir}/tex/latex/ucs/utils/letjiret.fd
%{_texmfdistdir}/tex/latex/ucs/utils/lklenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/lklkli.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ltaarial.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ltac2000.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ltaenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/ltgc2000.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ltgenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/ltlcmr.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ltlenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/ltwdsnol.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ltwdsque.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ltwdssin.fd
%{_texmfdistdir}/tex/latex/ucs/utils/ltwenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/lucarial.fd
%{_texmfdistdir}/tex/latex/ucs/utils/lucc2000.fd
%{_texmfdistdir}/tex/latex/ucs/utils/lucenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/mkrenc.def
%{_texmfdistdir}/tex/latex/ucs/utils/mkrezra.fd
%{_texmfdistdir}/tex/latex/ucs/utils/mkrhadas.fd
%{_texmfdistdir}/tex/latex/ucs/utils/mkromega.fd
%{_texmfdistdir}/tex/latex/ucs/utils/mkrrashi.fd
%{_texmfdistdir}/tex/latex/ucs/utils/t2dcmr.fd
%{_texmfdistdir}/tex/latex/ucs/utils/t2denc.def
%{_texmfdistdir}/tex/latex/ucs/utils/tengwarDS.enc
%{_texmfdistdir}/tex/latex/ucs/utils/xscmr.fd
%{_texmfdistdir}/tex/latex/ucs/utils/xsenc.def
%doc %{_texmfdistdir}/doc/latex/ucs/FAQ
%doc %{_texmfdistdir}/doc/latex/ucs/GNUmakefile
%doc %{_texmfdistdir}/doc/latex/ucs/INSTALL
%doc %{_texmfdistdir}/doc/latex/ucs/LICENSE
%doc %{_texmfdistdir}/doc/latex/ucs/README
%doc %{_texmfdistdir}/doc/latex/ucs/VERSION
%doc %{_texmfdistdir}/doc/latex/ucs/config/ascii.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/boxdraw.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/braille.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/cjk-bg5.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/cjk-gb.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/cjk-globals.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/cjk-hangul.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/cjk-jis.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/combining.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/control.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/ctrlglyphs.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/currency.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/cyrillic.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/devanagari.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/ethiopic.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/geometric.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/greek.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/hebrew.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/ipa.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/klingon.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/latin-a.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/latin-b.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/latin-e-a.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/latin1.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/math.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/mathalpha.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/miscsymb.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/modifier.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/mongolian.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/pifont.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/punct.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/supersub.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/tags.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/telugu.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/config/thai.ucf
%doc %{_texmfdistdir}/doc/latex/ucs/discovermacro.pl
%doc %{_texmfdistdir}/doc/latex/ucs/languages.ps.gz
%doc %{_texmfdistdir}/doc/latex/ucs/latexout.pl
%doc %{_texmfdistdir}/doc/latex/ucs/ltxmacrs.txt
%doc %{_texmfdistdir}/doc/latex/ucs/makeunidef.pl
%doc %{_texmfdistdir}/doc/latex/ucs/ucs.dtx
%doc %{_texmfdistdir}/doc/latex/ucs/ucs.ins
%doc %{_texmfdistdir}/doc/latex/ucs/ucs.pdf
%doc %{_texmfdistdir}/doc/latex/ucs/unsupported/README
%doc %{_texmfdistdir}/doc/latex/ucs/unsupported/sym-to-fontenc.txt
%doc %{_texmfdistdir}/doc/latex/ucs/unsupported/tables.inc
%doc %{_texmfdistdir}/doc/latex/ucs/unsupported/u2ps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19797 |21mr|texlive-ucthesis-3.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ucthesis
# catalog-date 2009-09-27 11:52:43 +0200
# catalog-license lppl1.3
# catalog-version 3.2
Name:		texlive-ucthesis
Version:	3.2
Release:	7
Summary:	University of California thesis format
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ucthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ucthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A modified version of the standard LaTeX report style that is
accepted for use with University of California PhD
dissertations and Masters theses. A sample dissertation source
and bibliography are provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ucthesis/uct10.clo
%{_texmfdistdir}/tex/latex/ucthesis/uct11.clo
%{_texmfdistdir}/tex/latex/ucthesis/uct12.clo
%{_texmfdistdir}/tex/latex/ucthesis/ucthesis.cls
%doc %{_texmfdistdir}/doc/latex/ucthesis/README
%doc %{_texmfdistdir}/doc/latex/ucthesis/uctest.bib
%doc %{_texmfdistdir}/doc/latex/ucthesis/uctest.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19798 |21mr|texlive-udesoftec-1.6.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-udesoftec
Version:	1.6.2
Release:	2
Summary:	Thesis class for the University of Duisburg-Essen
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/udesoftec
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/udesoftec.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/udesoftec.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/udesoftec.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is designed for typesetting theses in the Research
Group for Business Informatics and Software Engineering. (The
class may also serve as a template for such theses.) The class
is designed for use with pdfLaTeX; input in UTF-8 encoding is
assumed.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/udesoftec
%{_texmfdistdir}/tex/latex/udesoftec
%doc %{_texmfdistdir}/doc/latex/udesoftec
#- source
%doc %{_texmfdistdir}/source/latex/udesoftec

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19799 |21mr|texlive-uebungsblatt-1.5.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-uebungsblatt
Version:	1.5.0
Release:	8
Summary:	A LaTeX class for writing exercise sheets
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uebungsblatt
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uebungsblatt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uebungsblatt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package implements a LaTeX class for writing exercise
sheets for a lecture. Features: - quick typesetting of exercise
sheets or their revisions, - simple user friendly commands, -
elegant page formatting, - automatic numbering of exercises and
sub-exercises, - the number of the exercise sheet is extracted
automatically from the file name, - static information about
the lectures and the authors needs to provided at one point
only.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uebungsblatt/uebungsblatt.cls
%{_texmfdistdir}/tex/latex/uebungsblatt/uebungsblatt.sty
%doc %{_texmfdistdir}/doc/latex/uebungsblatt/README
%doc %{_texmfdistdir}/doc/latex/uebungsblatt/history.txt
%doc %{_texmfdistdir}/doc/latex/uebungsblatt/uebungsblatt-doc.pdf
%doc %{_texmfdistdir}/doc/latex/uebungsblatt/uebungsblatt-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19800 |21mr|texlive-uestcthesis-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-uestcthesis
Version:	1.1.0
Release:	2
Summary:	Thesis class for UESTC
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uestcthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uestcthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uestcthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is for typesetting a thesis at the University of
Electronic Science and Technology of China.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/uestcthesis
%{_texmfdistdir}/tex/latex/uestcthesis
%doc %{_texmfdistdir}/doc/latex/uestcthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19801 |21mr|texlive-uhc-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16791
# category Package
# catalog-ctan /fonts/korean/HLaTeX
# catalog-date 2007-07-29 12:13:44 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-uhc
Version:	20190228
Release:	1
Summary:	Fonts for the Korean language
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/korean/HLaTeX
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uhc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uhc.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Support for Korean documents written in Korean standard KSC
codes for LaTeX2e.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/uhc/config.uhc
%{_texmfdistdir}/fonts/afm/uhc/umj/umj00.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj01.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj02.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj03.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj04.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj05.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj10.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj11.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj12.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj13.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj14.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj15.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj16.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj17.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj20.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj21.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj22.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj23.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj24.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj25.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj26.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj27.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj28.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj29.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj30.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj31.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj32.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj33.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj34.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj35.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj36.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj37.afm
%{_texmfdistdir}/fonts/afm/uhc/umj/umj38.afm
%{_texmfdistdir}/fonts/map/dvips/uhc/umj.map
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj34.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj35.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj36.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj37.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umj38.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc34.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc35.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc36.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc37.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjc38.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco34.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco35.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco36.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco37.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjco38.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo34.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo35.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo36.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo37.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjo38.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju34.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju35.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju36.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju37.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umju38.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo34.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo35.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo36.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo37.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjuo38.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx34.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx35.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx36.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx37.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjx38.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo34.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo35.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo36.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo37.tfm
%{_texmfdistdir}/fonts/tfm/uhc/umj/umjxo38.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj4e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj4f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj50.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj51.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj52.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj53.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj54.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj55.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj56.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj57.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj58.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj59.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj5a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj5b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj5c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj5d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj5e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj5f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj60.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj61.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj62.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj63.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj64.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj65.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj66.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj67.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj68.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj69.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj6a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj6b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj6c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj6d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj6e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj6f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj70.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj71.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj72.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj73.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj74.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj75.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj76.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj77.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj78.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj79.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj7a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj7b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj7c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj7d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj7e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj7f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj80.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj81.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj82.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj83.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj84.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj85.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj86.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj87.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj88.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj89.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj8a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj8b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj8c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj8d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj8e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj8f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj90.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj91.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj92.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj93.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj94.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj95.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj96.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj97.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj98.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj99.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj9a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj9b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj9c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj9d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj9e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmj9f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjac.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjad.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjae.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjaf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjb9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjba.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjbb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjbc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjbd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjbe.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjbf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc4e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc4f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc50.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc51.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc52.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc53.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc54.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc55.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc56.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc57.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc58.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc59.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc5a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc5b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc5c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc5d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc5e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc5f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc60.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc61.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc62.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc63.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc64.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc65.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc66.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc67.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc68.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc69.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc6a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc6b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc6c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc6d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc6e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc6f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc70.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc71.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc72.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc73.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc74.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc75.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc76.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc77.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc78.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc79.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc7a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc7b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc7c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc7d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc7e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc7f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc80.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc81.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc82.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc83.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc84.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc85.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc86.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc87.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc88.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc89.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc8a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc8b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc8c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc8d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc8e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc8f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc90.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc91.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc92.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc93.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc94.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc95.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc96.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc97.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc98.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc99.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc9a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc9b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc9c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc9d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc9e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjc9f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjca.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcac.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcad.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcae.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcaf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcb9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcba.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcbb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcbc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcbd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcbe.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcbf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcca.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjccb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjccc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjccd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcce.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjccf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcd7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjce.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcf9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcfa.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcff.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco4e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco4f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco50.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco51.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco52.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco53.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco54.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco55.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco56.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco57.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco58.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco59.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco5a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco5b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco5c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco5d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco5e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco5f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco60.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco61.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco62.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco63.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco64.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco65.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco66.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco67.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco68.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco69.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco6a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco6b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco6c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco6d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco6e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco6f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco70.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco71.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco72.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco73.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco74.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco75.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco76.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco77.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco78.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco79.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco7a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco7b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco7c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco7d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco7e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco7f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco80.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco81.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco82.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco83.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco84.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco85.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco86.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco87.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco88.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco89.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco8a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco8b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco8c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco8d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco8e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco8f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco90.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco91.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco92.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco93.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco94.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco95.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco96.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco97.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco98.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco99.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco9a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco9b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco9c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco9d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco9e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjco9f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoac.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoad.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoae.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoaf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcob9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoba.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcobb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcobc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcobd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcobe.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcobf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoca.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcocb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcocc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcocd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoce.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcocf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcod0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcod1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcod2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcod3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcod4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcod5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcod6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcod7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcof9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcofa.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjcoff.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjd0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjd1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjd2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjd3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjd4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjd5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjd6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjd7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjf9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjfa.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjff.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo4e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo4f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo50.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo51.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo52.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo53.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo54.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo55.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo56.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo57.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo58.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo59.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo5a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo5b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo5c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo5d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo5e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo5f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo60.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo61.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo62.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo63.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo64.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo65.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo66.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo67.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo68.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo69.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo6a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo6b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo6c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo6d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo6e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo6f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo70.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo71.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo72.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo73.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo74.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo75.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo76.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo77.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo78.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo79.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo7a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo7b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo7c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo7d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo7e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo7f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo80.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo81.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo82.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo83.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo84.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo85.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo86.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo87.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo88.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo89.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo8a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo8b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo8c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo8d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo8e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo8f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo90.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo91.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo92.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo93.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo94.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo95.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo96.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo97.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo98.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo99.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo9a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo9b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo9c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo9d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo9e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjo9f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoac.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoad.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoae.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoaf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjob9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoba.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjobb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjobc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjobd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjobe.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjobf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoca.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjocb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjocc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjocd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoce.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjocf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjod0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjod1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjod2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjod3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjod4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjod5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjod6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjod7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjof9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjofa.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjoff.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju4e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju4f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju50.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju51.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju52.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju53.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju54.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju55.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju56.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju57.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju58.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju59.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju5a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju5b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju5c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju5d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju5e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju5f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju60.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju61.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju62.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju63.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju64.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju65.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju66.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju67.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju68.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju69.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju6a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju6b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju6c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju6d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju6e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju6f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju70.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju71.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju72.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju73.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju74.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju75.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju76.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju77.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju78.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju79.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju7a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju7b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju7c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju7d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju7e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju7f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju80.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju81.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju82.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju83.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju84.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju85.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju86.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju87.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju88.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju89.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju8a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju8b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju8c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju8d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju8e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju8f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju90.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju91.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju92.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju93.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju94.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju95.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju96.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju97.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju98.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju99.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju9a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju9b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju9c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju9d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju9e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmju9f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuac.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuad.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuae.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuaf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjub9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuba.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjubb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjubc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjubd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjube.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjubf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuca.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjucb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjucc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjucd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuce.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjucf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjud0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjud1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjud2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjud3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjud4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjud5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjud6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjud7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuf9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjufa.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuff.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo4e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo4f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo50.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo51.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo52.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo53.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo54.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo55.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo56.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo57.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo58.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo59.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo5a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo5b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo5c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo5d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo5e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo5f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo60.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo61.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo62.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo63.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo64.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo65.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo66.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo67.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo68.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo69.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo6a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo6b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo6c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo6d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo6e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo6f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo70.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo71.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo72.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo73.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo74.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo75.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo76.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo77.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo78.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo79.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo7a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo7b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo7c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo7d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo7e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo7f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo80.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo81.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo82.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo83.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo84.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo85.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo86.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo87.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo88.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo89.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo8a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo8b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo8c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo8d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo8e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo8f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo90.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo91.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo92.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo93.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo94.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo95.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo96.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo97.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo98.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo99.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo9a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo9b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo9c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo9d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo9e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuo9f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoac.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoad.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoae.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoaf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuob9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoba.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuobb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuobc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuobd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuobe.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuobf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoca.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuocb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuocc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuocd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoce.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuocf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuod0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuod1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuod2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuod3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuod4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuod5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuod6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuod7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuof9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuofa.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjuoff.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx4e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx4f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx50.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx51.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx52.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx53.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx54.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx55.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx56.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx57.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx58.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx59.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx5a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx5b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx5c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx5d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx5e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx5f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx60.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx61.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx62.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx63.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx64.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx65.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx66.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx67.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx68.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx69.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx6a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx6b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx6c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx6d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx6e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx6f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx70.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx71.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx72.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx73.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx74.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx75.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx76.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx77.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx78.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx79.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx7a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx7b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx7c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx7d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx7e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx7f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx80.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx81.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx82.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx83.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx84.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx85.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx86.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx87.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx88.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx89.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx8a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx8b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx8c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx8d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx8e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx8f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx90.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx91.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx92.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx93.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx94.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx95.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx96.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx97.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx98.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx99.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx9a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx9b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx9c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx9d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx9e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjx9f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxac.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxad.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxae.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxaf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxb9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxba.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxbb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxbc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxbd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxbe.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxbf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxca.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxcb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxcc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxcd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxce.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxcf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxd0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxd1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxd2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxd3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxd4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxd5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxd6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxd7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxf9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxfa.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxff.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo00.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo01.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo02.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo03.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo30.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo31.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo32.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo33.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo4e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo4f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo50.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo51.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo52.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo53.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo54.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo55.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo56.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo57.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo58.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo59.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo5a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo5b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo5c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo5d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo5e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo5f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo60.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo61.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo62.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo63.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo64.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo65.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo66.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo67.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo68.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo69.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo6a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo6b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo6c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo6d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo6e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo6f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo70.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo71.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo72.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo73.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo74.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo75.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo76.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo77.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo78.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo79.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo7a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo7b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo7c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo7d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo7e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo7f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo80.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo81.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo82.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo83.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo84.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo85.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo86.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo87.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo88.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo89.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo8a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo8b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo8c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo8d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo8e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo8f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo90.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo91.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo92.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo93.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo94.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo95.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo96.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo97.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo98.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo99.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo9a.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo9b.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo9c.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo9d.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo9e.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxo9f.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoac.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoad.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoae.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoaf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxob9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoba.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxobb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxobc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxobd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxobe.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxobf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoca.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxocb.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxocc.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxocd.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoce.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxocf.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxod0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxod1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxod2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxod3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxod4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxod5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxod6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxod7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxof9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxofa.tfm
%{_texmfdistdir}/fonts/tfm/uhc/uwmj/uwmjxoff.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj06.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj07.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj18.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj19.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmj9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc06.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc07.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc18.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc19.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjc9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco06.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco07.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco18.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco19.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjco9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo06.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo07.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo18.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo19.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjo9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju06.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju07.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju18.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju19.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmju9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo06.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo07.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo18.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo19.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjuo9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx06.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx07.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx18.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx19.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjx9.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo0.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo04.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo05.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo06.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo07.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo1.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo10.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo11.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo12.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo13.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo14.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo15.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo16.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo17.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo18.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo19.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo2.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo20.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo21.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo22.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo23.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo24.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo25.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo26.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo27.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo28.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo29.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo3.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo4.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo5.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo6.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo7.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo8.tfm
%{_texmfdistdir}/fonts/tfm/uhc/wmj/wmjxo9.tfm
%{_texmfdistdir}/fonts/type1/uhc/umj/umj00.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj01.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj02.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj03.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj04.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj05.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj10.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj11.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj12.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj13.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj14.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj15.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj16.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj17.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj20.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj21.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj22.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj23.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj24.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj25.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj26.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj27.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj28.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj29.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj30.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj31.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj32.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj33.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj34.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj35.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj36.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj37.pfb
%{_texmfdistdir}/fonts/type1/uhc/umj/umj38.pfb
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj00.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj01.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj02.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj03.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj04.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj20.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj21.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj22.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj23.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj24.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj25.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj26.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj30.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj31.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj32.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj33.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj4e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj4f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj50.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj51.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj52.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj53.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj54.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj55.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj56.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj57.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj58.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj59.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj5a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj5b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj5c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj5d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj5e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj5f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj60.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj61.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj62.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj63.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj64.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj65.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj66.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj67.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj68.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj69.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj6a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj6b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj6c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj6d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj6e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj6f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj70.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj71.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj72.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj73.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj74.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj75.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj76.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj77.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj78.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj79.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj7a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj7b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj7c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj7d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj7e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj7f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj80.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj81.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj82.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj83.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj84.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj85.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj86.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj87.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj88.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj89.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj8a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj8b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj8c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj8d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj8e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj8f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj90.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj91.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj92.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj93.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj94.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj95.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj96.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj97.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj98.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj99.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj9a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj9b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj9c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj9d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj9e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmj9f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjac.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjad.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjae.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjaf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjb9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjba.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjbb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjbc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjbd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjbe.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjbf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc00.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc01.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc02.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc03.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc04.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc20.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc21.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc22.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc23.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc24.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc25.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc26.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc30.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc31.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc32.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc33.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc4e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc4f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc50.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc51.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc52.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc53.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc54.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc55.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc56.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc57.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc58.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc59.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc5a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc5b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc5c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc5d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc5e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc5f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc60.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc61.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc62.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc63.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc64.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc65.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc66.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc67.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc68.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc69.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc6a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc6b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc6c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc6d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc6e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc6f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc70.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc71.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc72.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc73.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc74.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc75.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc76.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc77.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc78.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc79.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc7a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc7b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc7c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc7d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc7e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc7f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc80.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc81.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc82.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc83.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc84.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc85.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc86.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc87.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc88.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc89.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc8a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc8b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc8c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc8d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc8e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc8f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc90.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc91.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc92.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc93.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc94.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc95.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc96.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc97.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc98.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc99.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc9a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc9b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc9c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc9d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc9e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjc9f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjca.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcac.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcad.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcae.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcaf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcb9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcba.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcbb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcbc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcbd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcbe.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcbf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcc9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcca.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjccb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjccc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjccd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcce.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjccf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcd7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjce.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcf9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcfa.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcff.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco00.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco01.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco02.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco03.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco04.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco20.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco21.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco22.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco23.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco24.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco25.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco26.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco30.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco31.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco32.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco33.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco4e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco4f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco50.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco51.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco52.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco53.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco54.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco55.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco56.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco57.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco58.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco59.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco5a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco5b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco5c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco5d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco5e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco5f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco60.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco61.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco62.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco63.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco64.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco65.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco66.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco67.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco68.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco69.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco6a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco6b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco6c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco6d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco6e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco6f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco70.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco71.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco72.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco73.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco74.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco75.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco76.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco77.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco78.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco79.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco7a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco7b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco7c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco7d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco7e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco7f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco80.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco81.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco82.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco83.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco84.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco85.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco86.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco87.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco88.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco89.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco8a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco8b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco8c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco8d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco8e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco8f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco90.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco91.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco92.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco93.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco94.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco95.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco96.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco97.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco98.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco99.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco9a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco9b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco9c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco9d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco9e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjco9f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoac.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoad.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoae.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoaf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcob9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoba.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcobb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcobc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcobd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcobe.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcobf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoc9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoca.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcocb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcocc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcocd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoce.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcocf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcod0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcod1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcod2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcod3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcod4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcod5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcod6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcod7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcof9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcofa.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjcoff.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjd0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjd1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjd2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjd3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjd4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjd5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjd6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjd7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjf9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjfa.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjff.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo00.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo01.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo02.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo03.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo04.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo20.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo21.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo22.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo23.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo24.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo25.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo26.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo30.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo31.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo32.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo33.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo4e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo4f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo50.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo51.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo52.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo53.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo54.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo55.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo56.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo57.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo58.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo59.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo5a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo5b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo5c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo5d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo5e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo5f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo60.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo61.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo62.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo63.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo64.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo65.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo66.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo67.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo68.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo69.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo6a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo6b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo6c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo6d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo6e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo6f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo70.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo71.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo72.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo73.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo74.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo75.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo76.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo77.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo78.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo79.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo7a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo7b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo7c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo7d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo7e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo7f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo80.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo81.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo82.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo83.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo84.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo85.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo86.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo87.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo88.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo89.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo8a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo8b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo8c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo8d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo8e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo8f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo90.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo91.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo92.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo93.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo94.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo95.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo96.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo97.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo98.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo99.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo9a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo9b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo9c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo9d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo9e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjo9f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoac.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoad.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoae.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoaf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjob9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoba.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjobb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjobc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjobd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjobe.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjobf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoc9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoca.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjocb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjocc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjocd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoce.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjocf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjod0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjod1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjod2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjod3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjod4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjod5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjod6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjod7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjof9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjofa.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjoff.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju00.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju01.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju02.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju03.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju04.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju20.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju21.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju22.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju23.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju24.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju25.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju26.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju30.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju31.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju32.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju33.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju4e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju4f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju50.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju51.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju52.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju53.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju54.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju55.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju56.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju57.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju58.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju59.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju5a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju5b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju5c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju5d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju5e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju5f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju60.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju61.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju62.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju63.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju64.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju65.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju66.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju67.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju68.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju69.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju6a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju6b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju6c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju6d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju6e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju6f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju70.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju71.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju72.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju73.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju74.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju75.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju76.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju77.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju78.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju79.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju7a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju7b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju7c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju7d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju7e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju7f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju80.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju81.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju82.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju83.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju84.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju85.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju86.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju87.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju88.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju89.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju8a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju8b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju8c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju8d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju8e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju8f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju90.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju91.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju92.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju93.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju94.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju95.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju96.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju97.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju98.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju99.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju9a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju9b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju9c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju9d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju9e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmju9f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuac.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuad.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuae.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuaf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjub9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuba.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjubb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjubc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjubd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjube.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjubf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuc9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuca.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjucb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjucc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjucd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuce.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjucf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjud0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjud1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjud2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjud3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjud4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjud5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjud6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjud7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuf9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjufa.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuff.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo00.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo01.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo02.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo03.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo04.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo20.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo21.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo22.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo23.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo24.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo25.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo26.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo30.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo31.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo32.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo33.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo4e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo4f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo50.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo51.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo52.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo53.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo54.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo55.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo56.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo57.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo58.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo59.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo5a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo5b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo5c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo5d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo5e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo5f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo60.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo61.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo62.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo63.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo64.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo65.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo66.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo67.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo68.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo69.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo6a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo6b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo6c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo6d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo6e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo6f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo70.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo71.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo72.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo73.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo74.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo75.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo76.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo77.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo78.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo79.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo7a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo7b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo7c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo7d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo7e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo7f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo80.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo81.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo82.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo83.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo84.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo85.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo86.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo87.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo88.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo89.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo8a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo8b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo8c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo8d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo8e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo8f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo90.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo91.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo92.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo93.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo94.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo95.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo96.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo97.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo98.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo99.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo9a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo9b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo9c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo9d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo9e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuo9f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoac.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoad.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoae.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoaf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuob9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoba.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuobb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuobc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuobd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuobe.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuobf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoc9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoca.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuocb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuocc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuocd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoce.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuocf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuod0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuod1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuod2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuod3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuod4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuod5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuod6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuod7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuof9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuofa.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjuoff.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx00.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx01.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx02.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx03.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx04.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx20.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx21.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx22.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx23.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx24.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx25.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx26.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx30.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx31.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx32.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx33.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx4e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx4f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx50.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx51.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx52.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx53.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx54.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx55.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx56.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx57.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx58.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx59.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx5a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx5b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx5c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx5d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx5e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx5f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx60.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx61.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx62.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx63.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx64.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx65.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx66.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx67.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx68.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx69.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx6a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx6b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx6c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx6d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx6e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx6f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx70.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx71.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx72.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx73.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx74.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx75.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx76.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx77.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx78.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx79.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx7a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx7b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx7c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx7d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx7e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx7f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx80.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx81.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx82.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx83.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx84.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx85.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx86.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx87.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx88.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx89.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx8a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx8b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx8c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx8d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx8e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx8f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx90.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx91.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx92.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx93.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx94.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx95.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx96.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx97.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx98.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx99.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx9a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx9b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx9c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx9d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx9e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjx9f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxac.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxad.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxae.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxaf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxb9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxba.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxbb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxbc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxbd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxbe.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxbf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxc9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxca.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxcb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxcc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxcd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxce.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxcf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxd0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxd1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxd2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxd3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxd4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxd5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxd6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxd7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxf9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxfa.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxff.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo00.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo01.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo02.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo03.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo04.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo20.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo21.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo22.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo23.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo24.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo25.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo26.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo30.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo31.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo32.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo33.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo4e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo4f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo50.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo51.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo52.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo53.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo54.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo55.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo56.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo57.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo58.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo59.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo5a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo5b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo5c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo5d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo5e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo5f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo60.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo61.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo62.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo63.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo64.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo65.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo66.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo67.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo68.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo69.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo6a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo6b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo6c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo6d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo6e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo6f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo70.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo71.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo72.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo73.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo74.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo75.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo76.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo77.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo78.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo79.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo7a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo7b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo7c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo7d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo7e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo7f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo80.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo81.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo82.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo83.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo84.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo85.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo86.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo87.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo88.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo89.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo8a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo8b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo8c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo8d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo8e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo8f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo90.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo91.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo92.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo93.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo94.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo95.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo96.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo97.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo98.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo99.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo9a.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo9b.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo9c.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo9d.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo9e.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxo9f.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoac.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoad.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoae.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoaf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxob9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoba.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxobb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxobc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxobd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxobe.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxobf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc8.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoc9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoca.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxocb.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxocc.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxocd.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoce.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxocf.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxod0.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxod1.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxod2.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxod3.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxod4.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxod5.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxod6.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxod7.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxof9.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxofa.vf
%{_texmfdistdir}/fonts/vf/uhc/uwmj/uwmjxoff.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj0.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj04.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj05.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj06.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj07.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj1.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj10.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj11.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj12.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj13.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj14.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj15.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj16.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj17.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj18.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj19.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj2.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj20.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj21.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj22.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj23.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj24.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj25.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj26.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj27.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj28.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj29.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj3.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj4.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj5.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj6.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj7.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj8.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmj9.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc0.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc04.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc05.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc06.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc07.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc1.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc10.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc11.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc12.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc13.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc14.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc15.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc16.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc17.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc18.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc19.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc2.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc20.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc21.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc22.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc23.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc24.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc25.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc26.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc27.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc28.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc29.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc3.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc4.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc5.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc6.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc7.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc8.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjc9.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco0.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco04.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco05.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco06.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco07.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco1.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco10.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco11.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco12.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco13.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco14.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco15.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco16.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco17.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco18.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco19.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco2.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco20.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco21.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco22.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco23.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco24.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco25.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco26.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco27.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco28.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco29.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco3.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco4.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco5.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco6.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco7.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco8.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjco9.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo0.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo04.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo05.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo06.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo07.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo1.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo10.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo11.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo12.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo13.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo14.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo15.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo16.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo17.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo18.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo19.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo2.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo20.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo21.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo22.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo23.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo24.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo25.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo26.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo27.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo28.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo29.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo3.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo4.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo5.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo6.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo7.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo8.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjo9.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju0.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju04.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju05.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju06.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju07.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju1.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju10.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju11.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju12.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju13.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju14.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju15.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju16.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju17.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju18.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju19.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju2.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju20.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju21.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju22.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju23.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju24.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju25.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju26.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju27.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju28.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju29.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju3.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju4.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju5.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju6.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju7.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju8.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmju9.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo0.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo04.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo05.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo06.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo07.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo1.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo10.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo11.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo12.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo13.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo14.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo15.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo16.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo17.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo18.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo19.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo2.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo20.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo21.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo22.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo23.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo24.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo25.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo26.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo27.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo28.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo29.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo3.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo4.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo5.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo6.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo7.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo8.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjuo9.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx0.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx04.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx05.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx06.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx07.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx1.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx10.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx11.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx12.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx13.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx14.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx15.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx16.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx17.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx18.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx19.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx2.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx20.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx21.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx22.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx23.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx24.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx25.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx26.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx27.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx28.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx29.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx3.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx4.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx5.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx6.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx7.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx8.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjx9.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo0.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo04.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo05.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo06.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo07.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo1.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo10.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo11.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo12.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo13.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo14.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo15.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo16.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo17.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo18.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo19.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo2.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo20.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo21.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo22.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo23.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo24.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo25.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo26.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo27.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo28.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo29.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo3.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo4.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo5.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo6.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo7.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo8.vf
%{_texmfdistdir}/fonts/vf/uhc/wmj/wmjxo9.vf
%doc %{_texmfdistdir}/doc/fonts/uhc/umj/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19802 |21mr|texlive-uiucredborder-1.00-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29974
# category Package
# catalog-ctan /macros/latex/contrib/uiucredborder
# catalog-date 2013-04-16 11:30:34 +0200
# catalog-license lppl1.2
# catalog-version 1.00
Name:		texlive-uiucredborder
Version:	1.00
Release:	10
Summary:	Class for UIUC thesis red-bordered forms
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uiucredborder
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uiucredborder.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uiucredborder.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uiucredborder.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class offers a means of filling out the "red-bordered form"
that gets signed by the department head, your advisor, and --
for doctoral dissertations -- your thesis committee members.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uiucredborder/uiucredborder.cls
%doc %{_texmfdistdir}/doc/latex/uiucredborder/uiucredborder.pdf
#- source
%doc %{_texmfdistdir}/source/latex/uiucredborder/uiucredborder.dtx
%doc %{_texmfdistdir}/source/latex/uiucredborder/uiucredborder.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19803 |21mr|texlive-uiucthesis-2.25-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/uiucthesis
# catalog-date 2007-01-20 15:20:16 +0100
# catalog-license lppl
# catalog-version 2.25
Name:		texlive-uiucthesis
Version:	2.25
Release:	7
Summary:	UIUC thesis class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uiucthesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uiucthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uiucthesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uiucthesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class produces a document that conforms to the format
described in the University's Handbook for Graduate Students
Preparing to Deposit.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uiucthesis/uiucthesis.cls
%{_texmfdistdir}/tex/latex/uiucthesis/uiucthesis.sty
%doc %{_texmfdistdir}/doc/latex/uiucthesis/README
%doc %{_texmfdistdir}/doc/latex/uiucthesis/thesis-ex.pdf
%doc %{_texmfdistdir}/doc/latex/uiucthesis/thesis-ex.tex
%doc %{_texmfdistdir}/doc/latex/uiucthesis/uiucthesis.pdf
#- source
%doc %{_texmfdistdir}/source/latex/uiucthesis/uiucthesis.dtx
%doc %{_texmfdistdir}/source/latex/uiucthesis/uiucthesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19804 |21mr|texlive-ukrhyph-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21081
# category Package
# catalog-ctan /language/hyphenation/ukrhyph
# catalog-date 2007-01-19 00:08:42 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-ukrhyph
Version:	20190228
Release:	1
Summary:	Hyphenation Patterns for Ukrainian
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/hyphenation/ukrhyph
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ukrhyph.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ukrhyph.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A range of patterns, depending on the encoding of the output
font (including the standard T2A, so one can use the patterns
with free fonts).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/ukrhyph/catlcy.tex
%{_texmfdistdir}/tex/generic/ukrhyph/lcy2koi.tex
%{_texmfdistdir}/tex/generic/ukrhyph/lcy2lcy.tex
%{_texmfdistdir}/tex/generic/ukrhyph/lcy2ot2.tex
%{_texmfdistdir}/tex/generic/ukrhyph/lcy2t2a.tex
%{_texmfdistdir}/tex/generic/ukrhyph/lcy2ucy.tex
%{_texmfdistdir}/tex/generic/ukrhyph/rules60.tex
%{_texmfdistdir}/tex/generic/ukrhyph/rules90.tex
%{_texmfdistdir}/tex/generic/ukrhyph/rules_ph.tex
%{_texmfdistdir}/tex/generic/ukrhyph/ukrenhyp.tex
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhypfa.tex
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhyph.koi
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhyph.lcy
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhyph.ot2
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhyph.t2a
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhyph.tex
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhyph.ucy
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhypmp.tex
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhypmt.tex
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhypsm.tex
%{_texmfdistdir}/tex/generic/ukrhyph/ukrhypst.tex
%doc %{_texmfdistdir}/doc/generic/ukrhyph/README
%doc %{_texmfdistdir}/doc/generic/ukrhyph/rules60.pdf
%doc %{_texmfdistdir}/doc/generic/ukrhyph/rules90.pdf
%doc %{_texmfdistdir}/doc/generic/ukrhyph/rules_ph.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19805 |21mr|texlive-ulem-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26785
# category Package
# catalog-ctan /macros/latex/contrib/ulem
# catalog-date 2012-06-01 11:43:10 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-ulem
Version:	20190228
Release:	1
Summary:	Package for underlining
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ulem
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ulem.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ulem.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an \ul (underline) command which will
break over line ends; this technique may be used to replace \em
(both in that form and as the \emph command), so as to make
output look as if it comes from a typewriter. The package also
offers double and wavy underlining, and striking out (line
through words) and crossing out (/// over words). The package
works with both Plain TeX and LaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/ulem/ulem.sty
%doc %{_texmfdistdir}/doc/generic/ulem/README
%doc %{_texmfdistdir}/doc/generic/ulem/ulem.ltx
%doc %{_texmfdistdir}/doc/generic/ulem/ulem.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19806 |21mr|texlive-ulqda-1.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26313
# category Package
# catalog-ctan /macros/latex/contrib/ulqda
# catalog-date 2009-11-10 09:00:49 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-ulqda
Version:	1.1
Release:	8
Summary:	Support of Qualitative Data Analysis
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ulqda
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ulqda.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ulqda.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ulqda.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-ulqda.bin = %{EVRD}

%description
The package is for use in Qualitative Data Analysis research.
It supports the integration of Qualitative Data Analysis (QDA)
research tasks, specifically for Grounded Theory, into the
LaTeX work flow. It assists in the analysis of textual data
such as interview transcripts and field notes by providing the
LaTeX user with macros which are used to markup textual
information -- for example, in-depth interviews.


#-----------------------------------------------------------------------
%files
%{_bindir}/ulqda
%{_texmfdistdir}/scripts/ulqda/ulqda.pl
%{_texmfdistdir}/tex/latex/ulqda/ulqda.sty
%doc %{_texmfdistdir}/doc/latex/ulqda/README
%doc %{_texmfdistdir}/doc/latex/ulqda/ulqda.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ulqda/Makefile
%doc %{_texmfdistdir}/source/latex/ulqda/ulqda.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/ulqda/ulqda.pl ulqda
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19807 |21mr|texlive-ulthese-5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-ulthese
Version:	5.2
Release:	1
Summary:	Thesis class and templates for Universite Laval
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ulthese
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ulthese.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ulthese.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ulthese.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a class based on memoir to prepare theses
and memoirs compliant with the presentation rules set forth by
the Faculty of Graduate Studies of Universite Laval, Quebec,
Canada. The class also comes with an extensive set of templates
for the various types of theses and memoirs offered at Laval.
Please note that the documentation for the class and the
comments in the templates are all written in French, the
language of the target audience.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ulthese
%doc %{_texmfdistdir}/doc/latex/ulthese
#- source
%doc %{_texmfdistdir}/source/latex/ulthese

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19808 |21mr|texlive-umich-thesis-1.20-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/umich-thesis
# catalog-date 2009-09-27 11:52:43 +0200
# catalog-license lppl
# catalog-version 1.20
Name:		texlive-umich-thesis
Version:	1.20
Release:	7
Summary:	University of Michigan Thesis LaTeX class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/umich-thesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umich-thesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umich-thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX2e class to create a University of Michigan dissertation
according to the Rackham dissertation handbook.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/umich-thesis/umich-thesis.cls
%doc %{_texmfdistdir}/doc/latex/umich-thesis/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19809 |21mr|texlive-uml-0.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17476
# category Package
# catalog-ctan /graphics/pstricks/contrib/uml
# catalog-date 2010-03-17 12:19:20 +0100
# catalog-license lppl
# catalog-version 0.11
Name:		texlive-uml
Version:	0.11
Release:	7
Summary:	UML diagrams in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/uml
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uml.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uml.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uml.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A PSTricks related package for writing UML (Unified Modelling
Language) diagrams in LaTeX. Currently, it implements a subset
of class diagrams, and some extra constructs as well. The
package cannot be used together with pst-uml.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uml/uml.sty
%doc %{_texmfdistdir}/doc/latex/uml/Changes
%doc %{_texmfdistdir}/doc/latex/uml/README
%doc %{_texmfdistdir}/doc/latex/uml/example.tex
%doc %{_texmfdistdir}/doc/latex/uml/uml.pdf
#- source
%doc %{_texmfdistdir}/source/latex/uml/Makefile
%doc %{_texmfdistdir}/source/latex/uml/uml.dtx
%doc %{_texmfdistdir}/source/latex/uml/uml.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19810 |21mr|texlive-umlaute-2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-umlaute
Version:	2.1
Release:	3
Summary:	German input encodings in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/umlaute
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umlaute.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umlaute.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umlaute.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
An early package for using alternate input encodings. The
author considers the package mostly obsolete, since most of its
functions are taken by the inputenc package; however, inputenc
doesn't support the roman8 and atari encodings, so umlaute
remains the sole source of that support.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/umlaute/atari.def
%{_texmfdistdir}/tex/latex/umlaute/isolatin.def
%{_texmfdistdir}/tex/latex/umlaute/mac.def
%{_texmfdistdir}/tex/latex/umlaute/pc850.def
%{_texmfdistdir}/tex/latex/umlaute/roman8.def
%{_texmfdistdir}/tex/latex/umlaute/umlaute.sty
%doc %{_texmfdistdir}/doc/latex/umlaute/cs_patch.uue
%doc %{_texmfdistdir}/doc/latex/umlaute/umlaute.pdf
#- source
%doc %{_texmfdistdir}/source/latex/umlaute/umlaute.dtx
%doc %{_texmfdistdir}/source/latex/umlaute/umlaute.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19811 |21mr|texlive-umoline-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19085
# category Package
# catalog-ctan /macros/latex/contrib/umoline
# catalog-date 2007-01-20 15:20:16 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-umoline
Version:	20190228
Release:	1
Summary:	Underline text allowing line breaking
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/umoline
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umoline.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umoline.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umoline.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides commands \Underline, \Midline and \Overline for
underlining, striking out, and overlining their text arguments.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/umoline/umoline.sty
%doc %{_texmfdistdir}/doc/latex/umoline/README
%doc %{_texmfdistdir}/doc/latex/umoline/umoline-man.tex
%doc %{_texmfdistdir}/doc/latex/umoline/umoline.pdf
#- source
%doc %{_texmfdistdir}/source/latex/umoline/umoline.dtx
%doc %{_texmfdistdir}/source/latex/umoline/umoline.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19812 |21mr|texlive-umthesis-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/umthesis
# catalog-date 2009-09-17 20:11:38 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-umthesis
Version:	0.2
Release:	7
Summary:	Dissertations at the University of Michigan
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/umthesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/umthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class loads book class, and makes minimal changes to it;
its coding aims to be as robust as possible, and as a result it
has few conflicts with potential add-on packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/umthesis/umthesis.cls
%doc %{_texmfdistdir}/doc/latex/umthesis/PDP.tex
%doc %{_texmfdistdir}/doc/latex/umthesis/README
%doc %{_texmfdistdir}/doc/latex/umthesis/appendix.tex
%doc %{_texmfdistdir}/doc/latex/umthesis/conclusion.tex
%doc %{_texmfdistdir}/doc/latex/umthesis/example.pdf
%doc %{_texmfdistdir}/doc/latex/umthesis/example.tex
%doc %{_texmfdistdir}/doc/latex/umthesis/exp1.tex
%doc %{_texmfdistdir}/doc/latex/umthesis/exp2.tex
%doc %{_texmfdistdir}/doc/latex/umthesis/exp3.tex
%doc %{_texmfdistdir}/doc/latex/umthesis/felty.bib
%doc %{_texmfdistdir}/doc/latex/umthesis/intro.tex
%doc %{_texmfdistdir}/doc/latex/umthesis/mybibstyle.bst

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19813 |21mr|texlive-unamthesis-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-unamthesis
Version:	2.1
Release:	1
Epoch:		1
Summary:	Style for Universidad Nacional Autonoma de Mexico theses
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/unamthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unamthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unamthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a customisable format to typeset Theses
according to the Universidad Nacional Autonoma de Mexico
guidelines. Support for use in Scientific Workplace (SWP) 3.x
is also provided. The bundle also includes an appropriate
bibliographic style which enables the use of author-year
schemes using the natbib package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/unamthesis
%{_texmfdistdir}/tex/latex/unamthesis
%doc %{_texmfdistdir}/doc/latex/unamthesis

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19814 |21mr|texlive-underlin-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/underlin
# catalog-date 2007-06-02 10:25:58 +0200
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-underlin
Version:	1.01
Release:	7
Summary:	Underlined running heads
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/underlin
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/underlin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/underlin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/underlin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines two pagestyles that provide underlined page heads in
LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/underlin/underlin.sty
%doc %{_texmfdistdir}/doc/latex/underlin/underlin.pdf
#- source
%doc %{_texmfdistdir}/source/latex/underlin/underlin.dtx
%doc %{_texmfdistdir}/source/latex/underlin/underlin.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19815 |21mr|texlive-underoverlap-0.0.1r1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29019
# category Package
# catalog-ctan /macros/latex/contrib/underoverlap
# catalog-date 2013-02-03 19:03:00 +0100
# catalog-license lppl1.3
# catalog-version 0.0.1-r1
Name:		texlive-underoverlap
Version:	0.0.1r1
Release:	12
Summary:	Position decorations over and under expressions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/underoverlap
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/underoverlap.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/underoverlap.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package overcomes TeX's inherent limitations in commands
that place decorations (such as braces) at arbirary positions
over and under expressions, overlapping as necessary.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/underoverlap/underoverlap.sty
%doc %{_texmfdistdir}/doc/latex/underoverlap/README
%doc %{_texmfdistdir}/doc/latex/underoverlap/dry.sty
%doc %{_texmfdistdir}/doc/latex/underoverlap/packagedoc.cls
%doc %{_texmfdistdir}/doc/latex/underoverlap/underoverlap.pdf
%doc %{_texmfdistdir}/doc/latex/underoverlap/underoverlap.tex
%doc %{_texmfdistdir}/doc/latex/underoverlap/with.sty

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19816 |21mr|texlive-underscore-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 18261
# category Package
# catalog-ctan /macros/latex/contrib/underscore
# catalog-date 2010-06-07 08:23:51 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-underscore
Version:	20190228
Release:	1
Summary:	Control the behaviour of "_" in text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/underscore
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/underscore.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/underscore.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
With the package, \_ in text mode (i.e., \textunderscore)
prints an underscore so that hyphenation of words either side
of it is not affected; a package option controls whether an
actual hyphenation point appears after the underscore, or
merely a break point. The package also arranges that, while in
text, '_' itself behaves as \textunderscore (the behaviour of _
in maths mode is not affected.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/underscore/underscore.sty
%doc %{_texmfdistdir}/doc/latex/underscore/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/underscore/underscore.pdf
%doc %{_texmfdistdir}/doc/latex/underscore/underscore.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19817 |21mr|texlive-undolabl-1.0l-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25010
# category Package
# catalog-ctan /macros/latex/contrib/undolabl
# catalog-date 2012-01-02 14:24:13 +0100
# catalog-license lppl1.3
# catalog-version 1.0k
Name:		texlive-undolabl
Version:	1.0l
Release:	2
Summary:	Override existing labels
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/undolabl
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/undolabl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/undolabl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/undolabl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to override existing labels (for
example, those generated automatically).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/undolabl/undolabl.sty
%doc %{_texmfdistdir}/doc/latex/undolabl/README
%doc %{_texmfdistdir}/doc/latex/undolabl/undolabl-example.pdf
%doc %{_texmfdistdir}/doc/latex/undolabl/undolabl-example.tex
%doc %{_texmfdistdir}/doc/latex/undolabl/undolabl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/undolabl/undolabl.drv
%doc %{_texmfdistdir}/source/latex/undolabl/undolabl.dtx
%doc %{_texmfdistdir}/source/latex/undolabl/undolabl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19818 |21mr|texlive-unicode-math-0.8o-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-unicode-math
Version:	0.8o
Release:	2
Summary:	Unicode mathematics support for XeTeX and LuaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/unicode-math
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unicode-math.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unicode-math.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unicode-math.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-fontspec

%description
The current release of this package typesets mathematics with
unicode input and using OpenType maths fonts. (There is little
compatibility with older maths packages.) XeTeX support is well
tested, though LuaTeX support less so. The package can typeset
using STIX fonts, the XITS development of those fonts, the
Asana-Math fonts and the commercial Cambria Math fonts. There
is no support yet for any extra alphabets in the Unicode
'private use area'. The package relies on recent versions of
the fontspec package and the l3kernel and l3packages bundles.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/unicode-math
%doc %{_texmfdistdir}/doc/latex/unicode-math
#- source
%doc %{_texmfdistdir}/source/latex/unicode-math

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19819 |21mr|texlive-unisugar-0.92-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22357
# category Package
# catalog-ctan /macros/xetex/latex/unisugar
# catalog-date 2011-05-08 11:17:43 +0200
# catalog-license lppl1.3
# catalog-version 0.92
Name:		texlive-unisugar
Version:	0.92
Release:	7
Summary:	Define syntactic sugar for Unicode LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/unisugar
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unisugar.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unisugar.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to define shorthand aliases for
single Unicode characters, and also provides support for such
aliases in RTL-text. The package requires an TeX-alike system
that uses Unicode input in a native way: current examples are
XeTeX and LuaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/unisugar/unisugar.sty
%doc %{_texmfdistdir}/doc/xelatex/unisugar/Makefile
%doc %{_texmfdistdir}/doc/xelatex/unisugar/README
%doc %{_texmfdistdir}/doc/xelatex/unisugar/gedit-mixed-sugar.png
%doc %{_texmfdistdir}/doc/xelatex/unisugar/gedit-mixed-traditional.png
%doc %{_texmfdistdir}/doc/xelatex/unisugar/sugar.png
%doc %{_texmfdistdir}/doc/xelatex/unisugar/traditional.png
%doc %{_texmfdistdir}/doc/xelatex/unisugar/unisugar.pdf
%doc %{_texmfdistdir}/doc/xelatex/unisugar/unisugar.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19820 |21mr|texlive-units-0.9b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/units
# catalog-date 2009-09-27 11:52:43 +0200
# catalog-license gpl
# catalog-version 0.9b
Name:		texlive-units
Version:	0.9b
Release:	7
Summary:	Typeset units
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/units
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/units.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/units.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/units.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is provided as a bundle with the nicefrac package
for typing fractions. Units uses nicefrac in typesetting
physical units in a standard-looking sort of way.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/units/nicefrac.sty
%{_texmfdistdir}/tex/latex/units/units.sty
%doc %{_texmfdistdir}/doc/latex/units/COPYING
%doc %{_texmfdistdir}/doc/latex/units/README
%doc %{_texmfdistdir}/doc/latex/units/units.pdf
#- source
%doc %{_texmfdistdir}/source/latex/units/units.dtx
%doc %{_texmfdistdir}/source/latex/units/units.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19821 |21mr|texlive-unitsdef-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/unitsdef
# catalog-date 2007-01-20 15:20:16 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-unitsdef
Version:	0.2
Release:	7
Summary:	Typesetting units in LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/unitsdef
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unitsdef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unitsdef.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unitsdef.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
There are a lot of packages for typesetting units in LaTeX2e.
Some define macros to typeset a lot of units but do not suit to
the actual font settings, some make the characters needed
available but do not predefine any unit. This package tries to
comply with both requirements. It predefines common units,
defines an easy to use interface to define new units and
changes the output concerning to the surrounding font settings.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/unitsdef/ampabbrv.cfg
%{_texmfdistdir}/tex/latex/unitsdef/enerabbr.cfg
%{_texmfdistdir}/tex/latex/unitsdef/freqabbr.cfg
%{_texmfdistdir}/tex/latex/unitsdef/lengabbr.cfg
%{_texmfdistdir}/tex/latex/unitsdef/molabbrv.cfg
%{_texmfdistdir}/tex/latex/unitsdef/timeabbr.cfg
%{_texmfdistdir}/tex/latex/unitsdef/unitsdef.sty
%{_texmfdistdir}/tex/latex/unitsdef/volabbrv.cfg
%{_texmfdistdir}/tex/latex/unitsdef/voltabbr.cfg
%{_texmfdistdir}/tex/latex/unitsdef/weigabbr.cfg
%doc %{_texmfdistdir}/doc/latex/unitsdef/README.1st
%doc %{_texmfdistdir}/doc/latex/unitsdef/defedpraef.tex
%doc %{_texmfdistdir}/doc/latex/unitsdef/defedunits.tex
%doc %{_texmfdistdir}/doc/latex/unitsdef/unitsdef.pdf
#- source
%doc %{_texmfdistdir}/source/latex/unitsdef/unitsdef.dtx
%doc %{_texmfdistdir}/source/latex/unitsdef/unitsdef.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19822 |21mr|texlive-unravel-0.2g-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-unravel
Version:	0.2g
Release:	1
Epoch:		1
Summary:	TeXLive unravel package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unravel.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unravel.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unravel.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive unravel package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/unravel
%doc %{_texmfdistdir}/doc/latex/unravel
#- source
%doc %{_texmfdistdir}/source/latex/unravel

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19823 |21mr|texlive-unswcover-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29476
# category Package
# catalog-ctan /macros/latex/contrib/unswcover
# catalog-date 2013-03-22 09:14:02 +0100
# catalog-license noinfo
# catalog-version 1.0
Name:		texlive-unswcover
Version:	1.0
Release:	10
Summary:	Typeset a dissertation cover page following UNSW guidelines
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/unswcover
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unswcover.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/unswcover.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package an UNSW cover sheet following the 2011 GRS
guidelines. It may also (optionally) provide other required
sheets such as Originality, Copyright and Authenticity
statements.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/unswcover/unswcover.sty
%doc %{_texmfdistdir}/doc/latex/unswcover/COPYING
%doc %{_texmfdistdir}/doc/latex/unswcover/Makefile
%doc %{_texmfdistdir}/doc/latex/unswcover/README
%doc %{_texmfdistdir}/doc/latex/unswcover/logo_unsw_short.pdf
%doc %{_texmfdistdir}/doc/latex/unswcover/thesis.bib
%doc %{_texmfdistdir}/doc/latex/unswcover/thesis.pdf
%doc %{_texmfdistdir}/doc/latex/unswcover/thesis.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19824 |21mr|texlive-uothesis-2.5.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25355
# category Package
# catalog-ctan /macros/latex/contrib/uothesis
# catalog-date 2012-02-09 17:36:54 +0100
# catalog-license lppl1.3
# catalog-version 2.5.6
Name:		texlive-uothesis
Version:	2.5.6
Release:	6
Summary:	Class for dissertations and theses at the University of Oregon
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uothesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uothesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uothesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uothesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class generates documents that are suitable for submission
to the Graduate School and conform with the style requirements
for dissertations and theses as laid out in the Fall 2010 UO
graduate school student manual.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uothesis/uothesis.cls
%doc %{_texmfdistdir}/doc/latex/uothesis/README
%doc %{_texmfdistdir}/doc/latex/uothesis/README.txt
%doc %{_texmfdistdir}/doc/latex/uothesis/acs-uothesis.bib
%doc %{_texmfdistdir}/doc/latex/uothesis/uothesis.hd
%doc %{_texmfdistdir}/doc/latex/uothesis/uothesis.pdf
#- source
%doc %{_texmfdistdir}/source/latex/uothesis/uothesis.dtx
%doc %{_texmfdistdir}/source/latex/uothesis/uothesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19825 |21mr|texlive-uowthesis-1.0a-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19700
# category Package
# catalog-ctan /macros/latex/contrib/uowthesis
# catalog-date 2010-07-28 12:27:25 +0200
# catalog-license lppl1.3
# catalog-version 1.0a
Name:		texlive-uowthesis
Version:	1.0a
Release:	7
Summary:	Document class for dissertations at the University of Wollongong
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uowthesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uowthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uowthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A document class for higher degree research theses in
compliance with the specifications of University of Wollongong
(UoW) theses in the "Guidelines for Preparation and Submission
of Higher Degree Research Theses" (March 2006), by the Research
Student Centre, Research & Innovation Division, UoW.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uowthesis/UoWlogo.eps
%{_texmfdistdir}/tex/latex/uowthesis/UoWlogo.png
%{_texmfdistdir}/tex/latex/uowthesis/UoWthesis.cls
%doc %{_texmfdistdir}/doc/latex/uowthesis/README
%doc %{_texmfdistdir}/doc/latex/uowthesis/myThesisBib.bib
%doc %{_texmfdistdir}/doc/latex/uowthesis/mythesis.pdf
%doc %{_texmfdistdir}/doc/latex/uowthesis/mythesis.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19826 |21mr|texlive-uowthesistitlepage-3.0.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-uowthesistitlepage
Version:	3.0.1
Release:	2
Summary:	Title page for dissertations at the University of Wollongong
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uowthesistitlepage
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uowthesistitlepage.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uowthesistitlepage.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package redefines \maketitle to generate a title page for a
University of Wollongong thesis, in accordance with the UoW
branding guidelines. The package should be used with the book
class to typeset a thesis. The package also defines a
\declaration command that typesets the declaration that this
thesis is your own work, etc., which is required in the front
of each PhD Thesis.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uowthesistitlepage
%doc %{_texmfdistdir}/doc/latex/uowthesistitlepage

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19827 |21mr|texlive-upmethodology-20190228-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16575
# category Package
# catalog-ctan /macros/latex/contrib/upmethodology
# catalog-date 2010-01-02 16:58:48 +0100
# catalog-license lgpl
# catalog-version undef
Name:		texlive-upmethodology
Version:	20190228
Release:	7
Summary:	Writing specification such as for UP-based methodologies
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/upmethodology
License:	LGPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/upmethodology.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/upmethodology.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle allows the user to create Unified Process
methodology (UP or RUP) based documents. The style provides
document versioning, document history, document authors,
document validators, specification description, task
management, and several helping macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/upmethodology
%doc %{_texmfdistdir}/doc/latex/upmethodology

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19828 |21mr|texlive-upquote-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-upquote
Version:	1.3
Release:	7
Summary:	Show "realistic" quotes in verbatim
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/upquote
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/upquote.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/upquote.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/upquote.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Typewriter-style fonts are best for program listings, but
Computer Modern Typewriter prints ` and ' as bent opening and
closing single quotes. Other fonts, and most programming
languages, print ` as a grave accent and ' upright; ' is used
both to open and to close quoted strings. The package switches
the typewriter font to Computer Modern Typewriter in OT1
encoding, and modifies the behaviour of verbatim, verbatim*,
\verb, and \verb* to print in the "` and ' way". It does
thisregardless of other fonts or encodings in use, so long as
the package is loaded after the other fonts were. The package
does not affect \tt, \texttt, etc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/upquote/upquote.sty
%doc %{_texmfdistdir}/doc/latex/upquote/README
%doc %{_texmfdistdir}/doc/latex/upquote/upquote.pdf
#- source
%doc %{_texmfdistdir}/source/latex/upquote/upquote.dtx
%doc %{_texmfdistdir}/source/latex/upquote/upquote.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19829 |21mr|texlive-uptex-1.20-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-uptex
Version:	1.20
Release:	3
Epoch:      1
Summary:	Unicode version of pTeX
Group:		Publishing
URL:		http://tug.org/texlive
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uptex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uptex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-ptex
Requires:	texlive-hyph-utf8
Requires:	texlive-adobemapping
Requires:	texlive-convbkmk
Requires:	texlive-ipaex
Requires:	texlive-japanese
Requires:	texlive-japanese-otf
Requires:	texlive-uptex.bin

%description
upTeX is an extension of pTeX, using UTF-8 input and producing
UTF-8 output. It was originally designed to improve support for
Japanese, but is also useful for documents in Chinese and
Korean. It can process Chinese simplified, Chinese traditional,
Japanese, and Korean simultaneously, and can also process
original LaTeX with \inputenc{utf8} and Babel
(Latin/Cyrillic/Greek etc.) by switching its \kcatcode tables.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/upmendex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19830 |21mr|texlive-uri-1.0a-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21608
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-uri
Version:	1.0a
Release:	2
Epoch:		1
Summary:	TeXLive uri package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uri.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uri.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uri.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive uri package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uri/uri.sty
%doc %{_texmfdistdir}/doc/latex/uri/README
%doc %{_texmfdistdir}/doc/latex/uri/uri-example.pdf
%doc %{_texmfdistdir}/doc/latex/uri/uri-example.tex
%doc %{_texmfdistdir}/doc/latex/uri/uri.pdf
#- source
%doc %{_texmfdistdir}/source/latex/uri/ltxdoc.cfg
%doc %{_texmfdistdir}/source/latex/uri/uri.drv
%doc %{_texmfdistdir}/source/latex/uri/uri.dtx
%doc %{_texmfdistdir}/source/latex/uri/uri.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19831 |21mr|texlive-url-3.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16864
# category Package
# catalog-ctan /macros/latex/contrib/url
# catalog-date 2010-01-27 23:13:46 +0100
# catalog-license lppl
# catalog-version 3.4
Name:		texlive-url
Version:	3.4
Release:	7
Summary:	Verbatim with URL-sensitive line breaks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/url
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/url.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/url.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The command \url is a form of verbatim command that allows
linebreaks at certain characters or combinations of characters,
accepts reconfiguration, and can usually be used in the
argument to another command. (The \urldef command provides
robust commands that serve in cases when \url doesn't work in
an argument.) The command is intended for email addresses,
hypertext links, directories/paths, etc., which normally have
no spaces, so by default the package ignores spaces in its
argument. However, a package option "allows spaces", which is
useful for operating systems where spaces are a common part of
file names.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/url/url.sty
%doc %{_texmfdistdir}/doc/latex/url/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/url/url.pdf
%doc %{_texmfdistdir}/doc/latex/url/url.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19832 |21mr|texlive-ushort-2.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32261
# category Package
# catalog-ctan /macros/latex/contrib/ushort
# catalog-date 2012-04-09 09:24:18 +0200
# catalog-license lppl
# catalog-version 2.2
Name:		texlive-ushort
Version:	2.2
Release:	12
Summary:	Shorter (and longer) underlines and underbars
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ushort
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ushort.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ushort.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ushort.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Some engineers need underlined or twice underlined variables
for which the usual \underline is too long. This package
provides a generic command for creating underlines of various
sizes and types.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ushort/ushort.sty
%doc %{_texmfdistdir}/doc/latex/ushort/README
%doc %{_texmfdistdir}/doc/latex/ushort/ushort.pdf
%doc %{_texmfdistdir}/doc/latex/ushort/ushort.tex
%doc %{_texmfdistdir}/doc/latex/ushort/ushort.txt
#- source
%doc %{_texmfdistdir}/source/latex/ushort/ushort.dtx
%doc %{_texmfdistdir}/source/latex/ushort/ushort.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19833 |21mr|texlive-uspatent-1.0-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27744
# category Package
# catalog-ctan /macros/latex/contrib/uspatent
# catalog-date 2012-09-19 18:03:54 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-uspatent
Version:	1.0
Release:	11
Summary:	U.S. Patent Application Tools for LaTeX and LyX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uspatent
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uspatent.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uspatent.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a class and other tools for developing a
beautifully formatted, consistent U.S. Patent Application using
LaTeX and/or LyX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uspatent/uspatent.cls
%doc %{_texmfdistdir}/doc/latex/uspatent/DocumentSettings.png
%doc %{_texmfdistdir}/doc/latex/uspatent/DrawingZoomBad.png
%doc %{_texmfdistdir}/doc/latex/uspatent/DrawingZoomGood.png
%doc %{_texmfdistdir}/doc/latex/uspatent/Drawings.lyx
%doc %{_texmfdistdir}/doc/latex/uspatent/Drawings.tex
%doc %{_texmfdistdir}/doc/latex/uspatent/LyX.png
%doc %{_texmfdistdir}/doc/latex/uspatent/LyXCustomInsets.png
%doc %{_texmfdistdir}/doc/latex/uspatent/LyXDocumentSettingsFont.png
%doc %{_texmfdistdir}/doc/latex/uspatent/LyXDocumentSettingsOutput.png
%doc %{_texmfdistdir}/doc/latex/uspatent/LyXEnvironments.png
%doc %{_texmfdistdir}/doc/latex/uspatent/LyXSettings.png
%doc %{_texmfdistdir}/doc/latex/uspatent/LyXSettingsDocumentClass.png
%doc %{_texmfdistdir}/doc/latex/uspatent/PatentApplication.lyx
%doc %{_texmfdistdir}/doc/latex/uspatent/PatentApplication.pdf
%doc %{_texmfdistdir}/doc/latex/uspatent/PatentApplication.tex
%doc %{_texmfdistdir}/doc/latex/uspatent/PatentApplicationGuide.lyx
%doc %{_texmfdistdir}/doc/latex/uspatent/PatentApplicationGuide.pdf
%doc %{_texmfdistdir}/doc/latex/uspatent/PatentApplicationGuide.tex
%doc %{_texmfdistdir}/doc/latex/uspatent/README
%doc %{_texmfdistdir}/doc/latex/uspatent/TeXworks.png
%doc %{_texmfdistdir}/doc/latex/uspatent/TpXDrawing.tpx
%doc %{_texmfdistdir}/doc/latex/uspatent/TpXSettingsAccess.png
%doc %{_texmfdistdir}/doc/latex/uspatent/VisioDrawing.pdf
%doc %{_texmfdistdir}/doc/latex/uspatent/VisioDrawing.vsd
%doc %{_texmfdistdir}/doc/latex/uspatent/VisioMainDrawing.vsd
%doc %{_texmfdistdir}/doc/latex/uspatent/VisioSave.png
%doc %{_texmfdistdir}/doc/latex/uspatent/annotationAlignment.png
%doc %{_texmfdistdir}/doc/latex/uspatent/uspatent.layout

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19834 |21mr|texlive-utf8mex-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-utf8mex
Version:	20190228
Release:	1
Summary:	TeXLive utf8mex package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/utf8mex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/utf8mex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive utf8mex package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/mex/utf8mex/utf8-pl.tex
%{_texmfdistdir}/tex/mex/utf8mex/utf8mex.ini
%{_texmfdistdir}/tex/mex/utf8mex/utf8plsq.tex
%doc %{_texmfdistdir}/doc/mex/utf8mex/Makefile
%doc %{_texmfdistdir}/doc/mex/utf8mex/README
%doc %{_texmfdistdir}/doc/mex/utf8mex/examples/Makefile
%doc %{_texmfdistdir}/doc/mex/utf8mex/examples/catcode.tex
%doc %{_texmfdistdir}/doc/mex/utf8mex/examples/list.tex
%doc %{_texmfdistdir}/doc/mex/utf8mex/examples/tilde.tex
%doc %{_texmfdistdir}/doc/mex/utf8mex/examples/tilde2.tex
%doc %{_texmfdistdir}/doc/mex/utf8mex/test-math.utf8.tex
%doc %{_texmfdistdir}/doc/mex/utf8mex/test.utf8.tex
%doc %{_texmfdistdir}/doc/mex/utf8mex/utf8math.el

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19835 |21mr|texlive-utopia-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /fonts/utopia
# catalog-date 2007-10-04 10:35:17 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-utopia
Version:	20190228
Release:	1
Summary:	Adobe Utopia fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/utopia
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/utopia.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/utopia.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The Adobe Standard Encoding set (upright and italic shapes,
medium and bold weights) of the Utopia font family, which Adobe
donated to the X Consortium. Macro support, and maths fonts
that match the Utopia family, are provided by the Fourier and
the Mathdesign Utopia font packages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/adobe/utopia/putb8a.afm
%{_texmfdistdir}/fonts/afm/adobe/utopia/putbi8a.afm
%{_texmfdistdir}/fonts/afm/adobe/utopia/putr8a.afm
%{_texmfdistdir}/fonts/afm/adobe/utopia/putri8a.afm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putb7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putb8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putb8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putb8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbi7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbi8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbi8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbi8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbo7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbo8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbo8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putbo8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putr7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putr8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putr8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putr8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putrc7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putrc8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putri7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putri8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putri8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putri8t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putro7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putro8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putro8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/utopia/putro8t.tfm
%{_texmfdistdir}/fonts/type1/adobe/utopia/putb8a.pfb
%{_texmfdistdir}/fonts/type1/adobe/utopia/putbi8a.pfb
%{_texmfdistdir}/fonts/type1/adobe/utopia/putr8a.pfb
%{_texmfdistdir}/fonts/type1/adobe/utopia/putri8a.pfb
%{_texmfdistdir}/fonts/vf/adobe/utopia/putb7t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putb8c.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putb8t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putbc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putbc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putbi7t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putbi8c.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putbi8t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putbo7t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putbo8c.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putbo8t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putr7t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putr8c.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putr8t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putrc7t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putrc8t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putri7t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putri8c.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putri8t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putro7t.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putro8c.vf
%{_texmfdistdir}/fonts/vf/adobe/utopia/putro8t.vf
%doc %{_texmfdistdir}/doc/fonts/utopia/LICENSE-utopia.txt
%doc %{_texmfdistdir}/doc/fonts/utopia/README-utopia.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19836 |21mr|texlive-ut-thesis-2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26793
# category Package
# catalog-ctan /macros/latex/contrib/ut-thesis
# catalog-date 2012-06-01 19:19:53 +0200
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-ut-thesis
Version:	2.1
Release:	1
Summary:	University of Toronto thesis style
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ut-thesis
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ut-thesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ut-thesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This not described as an 'official' class, just one distributed
"in the hope that it will be useful". A skeleton file, using
the class, is provided.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ut-thesis/ut-thesis.cls
%doc %{_texmfdistdir}/doc/latex/ut-thesis/README
%doc %{_texmfdistdir}/doc/latex/ut-thesis/ut-thesis.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19837 |21mr|texlive-uwmslide-20180303-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27354
# category Package
# catalog-ctan /macros/latex/contrib/uwmslide
# catalog-date 2012-02-24 11:11:42 +0100
# catalog-license artistic
# catalog-version undef
Name:		texlive-uwmslide
Version:	20180303
Release:	3
Summary:	Slides with a simple Power Point like appearance
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uwmslide
License:	ARTISTIC
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uwmslide.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uwmslide.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A slide format which produces slides with a simple Power Point
like appearance. Several useful features include: use of
standard titlepage to produce title slide; several slide
environments including plain (page with a title), double slide
(two column page with slide title), item slide (item list with
title), left item slide, and right item slide. Logos are placed
in the upper left corner of each slide if the logo file
logo.eps is present. Preconfigured in landscape mode by default
and uses Times Roman by default (originally, it was claimed,
for simple conversion to PDF format).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uwmslide/uwmslide.cls
%doc %{_texmfdistdir}/doc/latex/uwmslide/README
%doc %{_texmfdistdir}/doc/latex/uwmslide/logo.eps
%doc %{_texmfdistdir}/doc/latex/uwmslide/test.tex
%doc %{_texmfdistdir}/doc/latex/uwmslide/vaux.eps

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19838 |21mr|texlive-uwthesis-6.13-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/uwthesis
# catalog-date 2010-01-23 11:08:54 +0100
# catalog-license apache2
# catalog-version 6.13
Name:		texlive-uwthesis
Version:	6.13
Release:	7
Summary:	University of Washington thesis class
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/uwthesis
License:	APACHE2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uwthesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/uwthesis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive uwthesis package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/uwthesis/uwthesis.cls
%doc %{_texmfdistdir}/doc/latex/uwthesis/LICENSE
%doc %{_texmfdistdir}/doc/latex/uwthesis/README
%doc %{_texmfdistdir}/doc/latex/uwthesis/uwthesis.bib
%doc %{_texmfdistdir}/doc/latex/uwthesis/uwthesis.pdf
%doc %{_texmfdistdir}/doc/latex/uwthesis/uwthesis.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19839 |21mr|texlive-vancouver-20190228-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25519
# category Package
# catalog-ctan /biblio/bibtex/contrib/vancouver
# catalog-date 2012-02-27 00:21:15 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-vancouver
Version:	20190228
Release:	7
Summary:	Bibliographic style file for Biomedical Journals
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/biblio/bibtex/contrib/vancouver
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vancouver.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vancouver.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This BibTeX style file is generated with the docstrip utility
and modified manually to meet the Uniform Requirements for
Manuscripts Submitted to Biomedical Journals as published in N
Engl J Med 1997;336:309-315 (also known as the Vancouver
style). The complete set of requirements may be viewed on the
ICMJE web site.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/bibtex/bst/vancouver/vancouver.bst
%doc %{_texmfdistdir}/doc/bibtex/vancouver/FAQ
%doc %{_texmfdistdir}/doc/bibtex/vancouver/README
%doc %{_texmfdistdir}/doc/bibtex/vancouver/vancouver.bib
%doc %{_texmfdistdir}/doc/bibtex/vancouver/vancouver.pdf
%doc %{_texmfdistdir}/doc/bibtex/vancouver/vancouver.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar bibtex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19840 |21mr|texlive-variations-0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/generic/variations
# catalog-date 2007-03-13 09:06:46 +0100
# catalog-license gpl
# catalog-version 0.3
Name:		texlive-variations
Version:	0.3
Release:	7
Summary:	Typeset tables of variations of functions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/variations
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/variations.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/variations.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for typesetting tables showing
variations of functions according to French usage. These macros
may be used by both LaTeX and plain TeX users.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/variations/variations.sty
%{_texmfdistdir}/tex/generic/variations/variations.tex
%doc %{_texmfdistdir}/doc/generic/variations/ALIRE
%doc %{_texmfdistdir}/doc/generic/variations/COPYING
%doc %{_texmfdistdir}/doc/generic/variations/README
%doc %{_texmfdistdir}/doc/generic/variations/docvariations.pdf
%doc %{_texmfdistdir}/doc/generic/variations/docvariations.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19841 |21mr|texlive-varindex-2.3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32262
# category Package
# catalog-ctan /macros/latex/contrib/varindex
# catalog-date 2013-11-27 07:34:41 +0100
# catalog-license lppl
# catalog-version 2.3
Name:		texlive-varindex
Version:	2.3
Release:	10
Summary:	Luxury frontend to the \index command
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/varindex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varindex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varindex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a convenient front-end for the \index command. For
example, with it you can generate multiple index entries in
almost any form by a single command. The package is highly
customizable, and works with all versions of LaTeX and probably
most other TeX formats.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/varindex/varindex.sty
%doc %{_texmfdistdir}/doc/latex/varindex/README
%doc %{_texmfdistdir}/doc/latex/varindex/varindex.pdf
%doc %{_texmfdistdir}/doc/latex/varindex/varindex.tex
%doc %{_texmfdistdir}/doc/latex/varindex/varindex.txt
#- source
%doc %{_texmfdistdir}/source/latex/varindex/varindex.dtx
%doc %{_texmfdistdir}/source/latex/varindex/varindex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19842 |21mr|texlive-varsfromjobname-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-varsfromjobname
Version:	1.0
Release:	3
Summary:	Extract variables from the name of the LaTeX file
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/varsfromjobname
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varsfromjobname.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varsfromjobname.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package allows the user to extract information from the job
name, provided that the name has been structured appropriately:
the package expects the file name to consist of a set of words
separated by hyphens.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/varsfromjobname
%doc %{_texmfdistdir}/doc/latex/varsfromjobname

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19843 |21mr|texlive-varwidth-0.92-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24104
# category Package
# catalog-ctan /macros/latex/contrib/varwidth
# catalog-date 2010-11-26 12:00:18 +0100
# catalog-license lppl
# catalog-version 0.92
Name:		texlive-varwidth
Version:	0.92
Release:	7
Summary:	A variable-width minipage
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/varwidth
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varwidth.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/varwidth.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The varwidth environment is superficially similar to minipage,
but the specified width is just a maximum value -- the box may
get a narrower "natural" width.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/varwidth/varwidth.sty
%doc %{_texmfdistdir}/doc/latex/varwidth/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/varwidth/varwidth-doc.pdf
%doc %{_texmfdistdir}/doc/latex/varwidth/varwidth-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19844 |21mr|texlive-vaucanson-g-0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /graphics/pstricks/contrib/vaucanson-g
# catalog-date 2008-10-30 09:45:25 +0100
# catalog-license lppl
# catalog-version 0.4
Name:		texlive-vaucanson-g
Version:	0.4
Release:	7
Summary:	PSTricks macros for drawing automata
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/vaucanson-g
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vaucanson-g.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vaucanson-g.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
VauCanSon-G is a package that enables the user to draw automata
within texts written using LaTeX. The package macros make use
of commands of PStricks.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/vaucanson-g/VCColor-names.def
%{_texmfdistdir}/tex/generic/vaucanson-g/VCPref-beamer.tex
%{_texmfdistdir}/tex/generic/vaucanson-g/VCPref-default.tex
%{_texmfdistdir}/tex/generic/vaucanson-g/VCPref-mystyle.tex
%{_texmfdistdir}/tex/generic/vaucanson-g/VCPref-slides.tex
%{_texmfdistdir}/tex/generic/vaucanson-g/Vaucanson-G.tex
%{_texmfdistdir}/tex/generic/vaucanson-g/vaucanson-g.sty
%{_texmfdistdir}/tex/generic/vaucanson-g/vaucanson.sty
%doc %{_texmfdistdir}/doc/generic/vaucanson-g/CHANGES
%doc %{_texmfdistdir}/doc/generic/vaucanson-g/README
%doc %{_texmfdistdir}/doc/generic/vaucanson-g/VCManual-src/TwoStates.tex
%doc %{_texmfdistdir}/doc/generic/vaucanson-g/VCManual-src/VCManual.tex
%doc %{_texmfdistdir}/doc/generic/vaucanson-g/VCManual.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19845 |21mr|texlive-vdmlisting-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29944
# category Package
# catalog-ctan /macros/latex/contrib/vdmlisting
# catalog-date 2013-04-16 11:30:34 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-vdmlisting
Version:	1.0
Release:	10
Summary:	Typesetting VDM in ASCII syntax
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/vdmlisting
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vdmlisting.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vdmlisting.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is an extension for the listings package that
provides a source code printer for LaTeX. This package defines
new language definitions and listing environments for the three
language dialects of the Vienna Development Method: VDM-SL,
VDM-PP and VDM-RT. If one wants to typeset VDM with a
mathematical syntax instead of the ASCII syntax used here one
should use the vdm pacakge instead.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/vdmlisting/vdmlisting.sty
%doc %{_texmfdistdir}/doc/latex/vdmlisting/README
%doc %{_texmfdistdir}/doc/latex/vdmlisting/vdmlisting.pdf
%doc %{_texmfdistdir}/doc/latex/vdmlisting/vdmlisting.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19846 |21mr|texlive-velthuis-2.15.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23224
# category Package
# catalog-ctan /language/devanagari/velthuis
# catalog-date 2011-07-25 14:21:08 +0200
# catalog-license gpl
# catalog-version 2.15.1
Name:		texlive-velthuis
Version:	2.15.1
Release:	11
Summary:	Typeset Devanagari
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/devanagari/velthuis
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/velthuis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/velthuis.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-xetex-devanagari

%description
Frans Velthuis' preprocessor for Devanagari text, and fonts and
macros to use when typesetting the processed text. The macros
provide features that support Sanskrit, Hindi, Marathi, Nepali,
and other languages typically printed in the Devanagari script.
The fonts are available both in Metafont and Type 1 format.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnb10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnb8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnb9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbb10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbb8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbb9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbbi10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbbi8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbbi9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbi10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbi8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnbi9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnc10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnc8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnc9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvncb10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvncb8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvncb9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvncbi10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvncbi8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvncbi9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnci10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnci8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnci9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvng10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvng8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvng9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngb10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngb8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngb9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngbi10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngbi8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngbi9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngi10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngi8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvngi9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnn10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnn8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnn9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnnb10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnnb8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnnb9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnnbi10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnnbi8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnnbi9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnni10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnni8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvnni9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpb10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpb8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpb9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpc10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpc8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpc9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpn10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpn8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpn9.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpnn10.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpnn8.afm
%{_texmfdistdir}/fonts/afm/public/velthuis/dvpnn9.afm
%{_texmfdistdir}/fonts/map/dvips/velthuis/dvng.map
%{_texmfdistdir}/fonts/source/public/velthuis/dnchars.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dndefs.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dngen.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dninit.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnb10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnb8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnb9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbb10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbb8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbb9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbbi10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbbi8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbbi9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbi10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbi8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnbi9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnc10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnc8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnc9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvncb10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvncb8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvncb9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvncbi10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvncbi8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvncbi9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnci10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnci8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnci9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvng10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvng8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvng9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngb10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngb8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngb9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngbi10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngbi8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngbi9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngi10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngi8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvngi9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnn10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnn8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnn9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnnb10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnnb8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnnb9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnnbi10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnnbi8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnnbi9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnni10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnni8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvnni9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpb10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpb8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpb9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpc10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpc8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpc9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpn10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpn8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpn9.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpnn10.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpnn8.mf
%{_texmfdistdir}/fonts/source/public/velthuis/dvpnn9.mf
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnb10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnb8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnb9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbb10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbb8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbb9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbbi10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbbi8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbbi9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbi10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbi8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnbi9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnc10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnc8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnc9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvncb10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvncb8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvncb9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvncbi10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvncbi8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvncbi9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnci10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnci8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnci9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvng10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvng8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvng9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngb10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngb8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngb9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngbi10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngbi8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngbi9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngi10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngi8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvngi9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnn10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnn8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnn9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnnb10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnnb8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnnb9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnnbi10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnnbi8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnnbi9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnni10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnni8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvnni9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpb10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpb8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpb9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpc10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpc8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpc9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpn10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpn8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpn9.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpnn10.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpnn8.tfm
%{_texmfdistdir}/fonts/tfm/public/velthuis/dvpnn9.tfm
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnb10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnb8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnb9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbb10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbb8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbb9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbbi10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbbi8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbbi9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbi10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbi8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnbi9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnc10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnc8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnc9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvncb10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvncb8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvncb9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvncbi10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvncbi8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvncbi9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnci10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnci8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnci9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvng10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvng8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvng9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngb10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngb8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngb9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngbi10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngbi8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngbi9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngi10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngi8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvngi9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnn10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnn8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnn9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnnb10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnnb8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnnb9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnnbi10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnnbi8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnnbi9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnni10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnni8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvnni9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpb10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpb8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpb9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpc10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpc8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpc9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpn10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpn8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpn9.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpnn10.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpnn8.pfb
%{_texmfdistdir}/fonts/type1/public/velthuis/dvpnn9.pfb
%{_texmfdistdir}/tex/generic/velthuis/hindi.ldf
%{_texmfdistdir}/tex/generic/velthuis/hindi.sty
%{_texmfdistdir}/tex/latex/velthuis/dev.sty
%{_texmfdistdir}/tex/latex/velthuis/dev209.sty
%{_texmfdistdir}/tex/latex/velthuis/devanagari.sty
%{_texmfdistdir}/tex/latex/velthuis/dvngcite.sty
%{_texmfdistdir}/tex/latex/velthuis/udn.fd
%{_texmfdistdir}/tex/latex/velthuis/udnb.fd
%{_texmfdistdir}/tex/latex/velthuis/udnc.fd
%{_texmfdistdir}/tex/latex/velthuis/udnn.fd
%{_texmfdistdir}/tex/latex/velthuis/udnp.fd
%{_texmfdistdir}/tex/latex/velthuis/udnpb.fd
%{_texmfdistdir}/tex/latex/velthuis/udnpc.fd
%{_texmfdistdir}/tex/latex/velthuis/udnpn.fd
%{_texmfdistdir}/tex/plain/velthuis/dnmacs.tex
%{_texmfdistdir}/tex/xelatex/velthuis/hindicaptions.sty
%doc %{_texmfdistdir}/doc/generic/velthuis/README
%doc %{_texmfdistdir}/doc/generic/velthuis/captions.dn
%doc %{_texmfdistdir}/doc/generic/velthuis/changes
%doc %{_texmfdistdir}/doc/generic/velthuis/copying
%doc %{_texmfdistdir}/doc/generic/velthuis/examples.dn
%doc %{_texmfdistdir}/doc/generic/velthuis/examples.pdf
%doc %{_texmfdistdir}/doc/generic/velthuis/hindi.dtx
%doc %{_texmfdistdir}/doc/generic/velthuis/hindi.ins
%doc %{_texmfdistdir}/doc/generic/velthuis/hindi.pdf
%doc %{_texmfdistdir}/doc/generic/velthuis/manual.pdf
%doc %{_texmfdistdir}/doc/generic/velthuis/manual.tex
%doc %{_texmfdistdir}/doc/generic/velthuis/misspaal.dn
%doc %{_texmfdistdir}/doc/generic/velthuis/misspaal.pdf
%doc %{_texmfdistdir}/doc/generic/velthuis/vedasample.dn
%doc %{_texmfdistdir}/doc/generic/velthuis/vedasample.pdf
%doc %{_texmfdistdir}/doc/generic/velthuis/xetex-examples.pdf
%doc %{_texmfdistdir}/doc/generic/velthuis/xetex-examples.tex
%doc %{_texmfdistdir}/doc/generic/velthuis/xetex-misspaal.pdf
%doc %{_texmfdistdir}/doc/generic/velthuis/xetex-misspaal.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19847 |21mr|texlive-venndiagram-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28069
# category Package
# catalog-ctan /macros/latex/contrib/venndiagram
# catalog-date 2012-10-24 15:36:13 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-venndiagram
Version:	1.1
Release:	1
Summary:	Creating Venn diagrams with TikZ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/venndiagram
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/venndiagram.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/venndiagram.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/venndiagram.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package assists generation of simple two- and three-set
Venn diagrams for lectures or assignment sheets. The package
requires the TikZ package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/venndiagram/venndiagram.sty
%doc %{_texmfdistdir}/doc/latex/venndiagram
#- source
%doc %{_texmfdistdir}/source/latex/venndiagram

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19848 |21mr|texlive-verbasef-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21922
# category Package
# catalog-ctan /macros/latex/contrib/verbasef
# catalog-date 2011-04-02 14:59:54 +0200
# catalog-license gpl
# catalog-version 1.1
Name:		texlive-verbasef
Version:	1.1
Release:	7
Summary:	VERBatim Automatic Splitting of External Files
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/verbasef
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbasef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbasef.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Verbasef allows you to input (subsections of a) file, print
them in verbatim mode, while automatically breaking up the
inputted lines into pieces of a given length, which are output
as figures. These figures are posted using the [H]
specification, which forces LaTeX to place the figure at the
spot of invocation, rather than floating the figures to the top
of the next page. The package requires the verbatim, here and
vrbexin packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/verbasef/verbasef.sty
%doc %{_texmfdistdir}/doc/latex/verbasef/verbasef-doc.pdf
%doc %{_texmfdistdir}/doc/latex/verbasef/verbasef-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19849 |21mr|texlive-verbatimbox-3.13-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32894
# category Package
# catalog-ctan /macros/latex/contrib/verbatimbox
# catalog-date 2014-02-04 19:03:18 +0100
# catalog-license lppl
# catalog-version 3.13
Name:		texlive-verbatimbox
Version:	3.13
Release:	6
Summary:	Deposit verbatim text in a box
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/verbatimbox
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbatimbox.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbatimbox.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a verbbox environment (which uses
techniques similar to those of the boxedverbatim environment of
the moreverb package) to place its contents into a globally
available box, or into a box specified by the user. The global
box may then be used in a variety of situations (for example,
providing a replica of the boxedverbatim environment itself). A
valuable use is in places where the standard verbatim
environment (which is based on a trivlist) may not appear. The
package makes use of the verbatim package (which is a required
part of any LaTeX distribution).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/verbatimbox/verbatimbox.sty
%doc %{_texmfdistdir}/doc/latex/verbatimbox/README
%doc %{_texmfdistdir}/doc/latex/verbatimbox/verbatimbox.pdf
%doc %{_texmfdistdir}/doc/latex/verbatimbox/verbatimbox.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19850 |21mr|texlive-verbatimcopy-0.06-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/verbatimcopy
# catalog-date 2009-06-02 14:54:30 +0200
# catalog-license lppl
# catalog-version 0.06
Name:		texlive-verbatimcopy
Version:	0.06
Release:	7
Summary:	Make copies of text documents from within LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/verbatimcopy
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbatimcopy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbatimcopy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides \VerbatimCopy{in}{out} that will enable
LaTeX to take a verbatim copy of one text file, and save it
under another name. The package provides a means to specify the
output directory to be used, but does no checking and may
therefore overwrite an important file if used injudiciously.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/verbatimcopy/verbatimcopy.sty
%doc %{_texmfdistdir}/doc/latex/verbatimcopy/README
%doc %{_texmfdistdir}/doc/latex/verbatimcopy/verbatimcopy.pdf
%doc %{_texmfdistdir}/doc/latex/verbatimcopy/verbatimcopy.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19851 |21mr|texlive-verbdef-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17177
# category Package
# catalog-ctan /macros/latex/contrib/verbdef
# catalog-date 2010-03-09 13:13:30 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-verbdef
Version:	0.2
Release:	7
Summary:	Define commands which expand to verbatim text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/verbdef
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbdef.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbdef.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a single command \verbdef (which has a *-
form, like \verb). \verbdef will define a robust command whose
body expands to verbatim text. By using commands defined by
\verbdef, one can put verbatim text into the arguments of
commands; since the defined command is robust, it doesn't
matter if the argument is moving. (Full details of syntax and
caveats about use are in comments in the file itself.).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/verbdef/verbdef.sty
%doc %{_texmfdistdir}/doc/latex/verbdef/verbdef.pdf
%doc %{_texmfdistdir}/doc/latex/verbdef/verbdef.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19852 |21mr|texlive-verbments-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23670
# category Package
# catalog-ctan /macros/latex/contrib/verbments
# catalog-date 2011-08-23 07:18:10 +0200
# catalog-license lppl1.2
# catalog-version 1.2
Name:		texlive-verbments
Version:	1.2
Release:	7
Summary:	Syntax highlighting of source code in LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/verbments
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbments.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verbments.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an environment for syntax highlighting
source code in LaTeX documents. The highlighted source code
output is formatted via powerful Pygments library of the Python
language.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/verbments/verbments.sty
%doc %{_texmfdistdir}/doc/latex/verbments/README
%doc %{_texmfdistdir}/doc/latex/verbments/verbments.pdf
%doc %{_texmfdistdir}/doc/latex/verbments/verbments.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19853 |21mr|texlive-verse-2.4b-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34017
# category Package
# catalog-ctan /macros/latex/contrib/verse
# catalog-date 2014-05-10 11:58:31 +0200
# catalog-license lppl
# catalog-version 2.4b
Name:		texlive-verse
Version:	2.4b
Release:	6
Summary:	Aids for typesetting simple verse
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/verse
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verse.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verse.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/verse.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package documentation discusses approaches to the problem;
the package is strong on layout, from simple alternate-line
indentation to the Mouse's tale from Alice in Wonderland.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/verse/verse.sty
%doc %{_texmfdistdir}/doc/latex/verse/README
%doc %{_texmfdistdir}/doc/latex/verse/verse.pdf
#- source
%doc %{_texmfdistdir}/source/latex/verse/verse.dtx
%doc %{_texmfdistdir}/source/latex/verse/verse.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19854 |21mr|texlive-version-2.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21920
# category Package
# catalog-ctan /macros/latex/contrib/version
# catalog-date 2011-04-02 15:43:25 +0200
# catalog-license other-free
# catalog-version 2.0
Name:		texlive-version
Version:	2.0
Release:	7
Summary:	Conditionally include text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/version
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/version.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/version.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines macros \includeversion{NAME} and \excludeversion{NAME},
each of which defines an environment NAME whose text is to be
included or excluded from compilation. Although the command
syntax is very similar to that of comment, comment.sty is to be
preferred to version.sty for documents where significant chunks
of text may be excluded.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/version/version.sty
%doc %{_texmfdistdir}/doc/latex/version/version-doc.pdf
%doc %{_texmfdistdir}/doc/latex/version/version-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19855 |21mr|texlive-versions-0.55-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21921
# category Package
# catalog-ctan /macros/latex/contrib/versions
# catalog-date 2011-04-02 19:40:46 +0200
# catalog-license lppl1.3
# catalog-version 0.55
Name:		texlive-versions
Version:	0.55
Release:	7
Summary:	Optionally omit pieces of text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/versions
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/versions.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/versions.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Stephan Bellantoni's version has provided preamble commands for
selecting environments to be included/excluded. This package
does the same, but corrects, improves, and extends it in both
implementation and function.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/versions/versions.sty
%doc %{_texmfdistdir}/doc/latex/versions/versions-doc.pdf
%doc %{_texmfdistdir}/doc/latex/versions/versions-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19856 |21mr|texlive-vertbars-1.0c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20589
# category Package
# catalog-ctan /macros/latex/contrib/vertbars
# catalog-date 2010-11-28 20:56:07 +0100
# catalog-license lppl1.3
# catalog-version 1.0b
Name:		texlive-vertbars
Version:	1.0c
Release:	1
Summary:	Mark vertical rules in margin of text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/vertbars
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vertbars.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vertbars.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vertbars.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is an extension to lineno, replacing that
package's line numbers with bars to the left or right of the
text.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/vertbars/vertbars.sty
%doc %{_texmfdistdir}/doc/latex/vertbars
#- source
%doc %{_texmfdistdir}/source/latex/vertbars

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19857 |21mr|texlive-vgrid-0.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32457
# category Package
# catalog-ctan /macros/latex/contrib/vgrid
# catalog-date 2013-12-20 18:52:05 +0100
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-vgrid
Version:	0.1
Release:	6
Summary:	Overlay a grid on the printed page
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/vgrid
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vgrid.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vgrid.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vgrid.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package overlays a grid (whose spacing is \baselineskip,
which offers guidlines for considering the "rhythm" of the
document on the page.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/vgrid/vgrid.sty
%doc %{_texmfdistdir}/doc/latex/vgrid/vgrid.pdf
#- source
%doc %{_texmfdistdir}/source/latex/vgrid/vgrid.dtx
%doc %{_texmfdistdir}/source/latex/vgrid/vgrid.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19858 |21mr|texlive-vhistory-1.6.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30080
# category Package
# catalog-ctan /macros/latex/contrib/vhistory
# catalog-date 2013-04-21 16:55:16 +0200
# catalog-license lppl1.2
# catalog-version 1.6.1
Name:		texlive-vhistory
Version:	1.6.1
Release:	10
Summary:	Support for creating a change log
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/vhistory
License:	LPPL1.2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vhistory.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vhistory.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Vhistory simplifies the creation of a history of versions of a
document. You can easily extract information like the current
version of a list of authors from that history. It helps you to
get consistent documents. The package sets, which is used by
vhistory, allows you to use sets containing text. You can use
the usual operations to create the union of sets or the
intersection of sets etc.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/vhistory/sets.sty
%{_texmfdistdir}/tex/latex/vhistory/vhistory.sty
%doc %{_texmfdistdir}/doc/latex/vhistory/CHANGES
%doc %{_texmfdistdir}/doc/latex/vhistory/README
%doc %{_texmfdistdir}/doc/latex/vhistory/README.doc
%doc %{_texmfdistdir}/doc/latex/vhistory/de_beispiel.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/de_einleitung.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/de_sets.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/de_vhistory.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/en_example.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/en_introduction.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/en_sets.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/en_vhistory.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/hyperref.cfg
%doc %{_texmfdistdir}/doc/latex/vhistory/vh_set_example.pdf
%doc %{_texmfdistdir}/doc/latex/vhistory/vh_set_example.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/vh_sets_de.pdf
%doc %{_texmfdistdir}/doc/latex/vhistory/vh_sets_de.tex
%doc %{_texmfdistdir}/doc/latex/vhistory/vh_sets_en.pdf
%doc %{_texmfdistdir}/doc/latex/vhistory/vh_sets_en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19859 |21mr|texlive-visualfaq-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19677
# category Package
# catalog-ctan /info/visualFAQ
# catalog-date 2010-08-05 13:03:35 +0200
# catalog-license lppl
# catalog-version undef
Name:		texlive-visualfaq
Version:	20190228
Release:	1
Summary:	A Visual LaTeX FAQ
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/visualFAQ
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/visualfaq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/visualfaq.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
Having trouble finding the answer to a LaTeX question? The
Visual LaTeX FAQ is an innovative new search interface that
presents over a hundred typeset samples of frequently requested
document formatting. Simply click on a hyperlinked piece of
text and the Visual LaTeX FAQ will send your Web browser to the
appropriate page in the UK TeX FAQ.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/visualfaq

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19860 |21mr|texlive-vlna-20190327-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-vlna
Version:	20190327
Release:	1
Summary:	TeXLive vlna package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vlna.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vlna.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-vlna.bin
%rename vlna

%description
TeXLive vlna package.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/vlna.1*
%doc %{_texmfdistdir}/doc/man/man1/vlna.man1.pdf
%doc %{_texmfdistdir}/doc/vlna/vlna.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19861 |21mr|texlive-vmargin-2.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/vmargin
# catalog-date 2009-09-27 12:18:28 +0200
# catalog-license lppl
# catalog-version 2.5
Name:		texlive-vmargin
Version:	2.5
Release:	7
Summary:	Set various page dimensions
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/vmargin
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vmargin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vmargin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vmargin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides a macro to set various margins as well as dimensions
for header/footer and page dimensions. Most common paper sizes,
paper orientation, disabling of headers and footers, and two
sided printing are supported. The vmargin package does not rely
on other packages and was designed with speed and size in mind.
Its user interface might not be very fancy, but it's fast,
small, and gets the job done. If you are looking for something
more elaborate try the geometry package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/vmargin/vmargin.sty
%doc %{_texmfdistdir}/doc/latex/vmargin/vmargin.pdf
#- source
%doc %{_texmfdistdir}/source/latex/vmargin/Makefile
%doc %{_texmfdistdir}/source/latex/vmargin/vmargin.drv
%doc %{_texmfdistdir}/source/latex/vmargin/vmargin.dtx
%doc %{_texmfdistdir}/source/latex/vmargin/vmargin.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19862 |21mr|texlive-vntex-3.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30579
# category Package
# catalog-ctan /language/vietnamese/vntex
# catalog-date 2013-05-19 14:33:40 +0200
# catalog-license other-free
# catalog-version 3.2
Name:		texlive-vntex
Version:	3.2
Release:	12
Summary:	Support for Vietnamese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/vietnamese/vntex
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vntex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vntex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vntex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
The vntex bundle provides fonts, Plain TeX, texinfo and LaTeX
macros for typesetting documents in Vietnamese. Users of the
fonts (in both Metafont and Adobe Type 1 format) of this bundle
may alternatively use the lm fonts bundle, for which map files
are available to provide a Vietnamese version.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/vntex/chartervn/bchb8v.afm
%{_texmfdistdir}/fonts/afm/vntex/chartervn/bchbi8v.afm
%{_texmfdistdir}/fonts/afm/vntex/chartervn/bchr8v.afm
%{_texmfdistdir}/fonts/afm/vntex/chartervn/bchri8v.afm
%{_texmfdistdir}/fonts/afm/vntex/grotesqvn/ugqb8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/fplrc8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uagd8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uagdo8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uagk8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uagko8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/ubkd8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/ubkdi8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/ubkl8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/ubkli8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/ucrb8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/ucrbo8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/ucrr8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/ucrro8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uhvb8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uhvbo8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uhvr8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uhvro8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uncb8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uncbi8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uncr8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uncri8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uplb8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uplbi8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uplr8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uplri8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/utmb8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/utmbi8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/utmr8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/utmri8v.afm
%{_texmfdistdir}/fonts/afm/vntex/urwvn/uzcmi8v.afm
%{_texmfdistdir}/fonts/afm/vntex/vntopia/putb8v.afm
%{_texmfdistdir}/fonts/afm/vntex/vntopia/putbi8v.afm
%{_texmfdistdir}/fonts/afm/vntex/vntopia/putr8v.afm
%{_texmfdistdir}/fonts/afm/vntex/vntopia/putri8v.afm
%{_texmfdistdir}/fonts/enc/dvips/vntex/t5.enc
%{_texmfdistdir}/fonts/enc/pdftex/vntex/t5d.enc
%{_texmfdistdir}/fonts/enc/pdftex/vntex/t5uni.enc
%{_texmfdistdir}/fonts/map/dvips/vntex/arevvn.map
%{_texmfdistdir}/fonts/map/dvips/vntex/chartervn.map
%{_texmfdistdir}/fonts/map/dvips/vntex/cmbrightvn.map
%{_texmfdistdir}/fonts/map/dvips/vntex/concretevn.map
%{_texmfdistdir}/fonts/map/dvips/vntex/grotesqvn.map
%{_texmfdistdir}/fonts/map/dvips/vntex/txttvn.map
%{_texmfdistdir}/fonts/map/dvips/vntex/urwvn.map
%{_texmfdistdir}/fonts/map/dvips/vntex/vnrother.map
%{_texmfdistdir}/fonts/map/dvips/vntex/vnrtext.map
%{_texmfdistdir}/fonts/map/dvips/vntex/vntopia.map
%{_texmfdistdir}/fonts/source/vntex/vnr/vnaccent.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnacomp.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnb10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbase.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbx10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbx12.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbx5.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbx6.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbx7.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbx8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbx9.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbxsl10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnbxti10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vncligtb.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vncode.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vncombac.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vncsc.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vncsc10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vndothook.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vndunh10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnecomp.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnff10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnfi10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnfib8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnicomp.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vniligtb.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnitt10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlacc.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlai.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlar.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnldi.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnldr.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlei.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnler.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlii.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlir.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnloi.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlor.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlui.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlur.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlyi.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnlyr.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnminus.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnmligtb.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnocomp.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnr10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnr12.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnr17.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnr5.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnr6.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnr7.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnr8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnr9.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnrligtb.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnrm.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnroman.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnsl10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnsl12.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnsl8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnsl9.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnsltt10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnss10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnss12.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnss17.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnss8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnss9.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssbx10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssdc10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssi10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssi12.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssi17.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssi8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssi9.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssq8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnssqi8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vntcsc10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vntextit.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnti10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnti12.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnti7.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnti8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnti9.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vntt10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vntt12.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vntt8.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vntt9.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnu10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnuacc.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnuar.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnucomp.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnudr.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnuer.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnuir.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnuor.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnuur.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnuyr.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnvtt10.mf
%{_texmfdistdir}/fonts/source/vntex/vnr/vnycomp.mf
%{_texmfdistdir}/fonts/tfm/vntex/arevvn/favb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/arevvn/favbi8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/arevvn/favr8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/arevvn/favri8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/chartervn/bchb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/chartervn/bchbc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/chartervn/bchbi8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/chartervn/bchbo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/chartervn/bchr8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/chartervn/bchrc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/chartervn/bchri8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/chartervn/bchro8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbr10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbr17.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbr8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbr9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbrbx10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbrsl10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbrsl17.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbrsl8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmbrsl9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmsltl10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/cmbrightvn/vncmtl10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/concretevn/vncccsc10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/concretevn/vnccr10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/concretevn/vnccsl10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/concretevn/vnccti10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/grotesqvn/ugqb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/grotesqvn/ugqbo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/txttvn/txbtt8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/txttvn/txbttsc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/txttvn/txbttsl8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/txttvn/txtt8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/txttvn/txttsc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/txttvn/txttsl8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/fplrc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uagd8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uagdc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uagdo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uagk8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uagkc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uagko8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ubkd8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ubkdc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ubkdi8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ubkdo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ubkl8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ubklc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ubkli8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ubklo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ucrb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ucrbc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ucrbo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ucrr8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ucrrc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/ucrro8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uhvb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uhvbc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uhvbo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uhvr8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uhvrc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uhvro8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uncb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uncbc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uncbi8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uncbo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uncr8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uncrc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uncri8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uncro8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uplb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uplbc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uplbi8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uplbo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uplr8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uplrc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uplri8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uplro8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/utmb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/utmbc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/utmbi8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/utmbo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/utmr8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/utmrc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/utmri8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/utmro8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/urwvn/uzcmi8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnb10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbx10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbx12.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbx5.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbx6.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbx7.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbx8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbx9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbxsl10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnbxti10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vncsc10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vndunh10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnff10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnfi10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnfib8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnitt10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnr10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnr12.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnr17.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnr5.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnr6.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnr7.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnr8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnr9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnsl10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnsl12.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnsl8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnsl9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnsltt10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnss10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnss12.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnss17.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnss8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnss9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssbx10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssdc10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssi10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssi12.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssi17.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssi8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssi9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssq8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnssqi8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vntcsc10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnti10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnti12.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnti7.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnti8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnti9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vntt10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vntt12.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vntt8.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vntt9.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnu10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vnr/vnvtt10.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vntopia/putb8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vntopia/putbc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vntopia/putbi8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vntopia/putbo8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vntopia/putr8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vntopia/putrc8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vntopia/putri8v.tfm
%{_texmfdistdir}/fonts/tfm/vntex/vntopia/putro8v.tfm
%{_texmfdistdir}/fonts/type1/vntex/arevvn/ArevSans-Bold-T5.pfb
%{_texmfdistdir}/fonts/type1/vntex/arevvn/ArevSans-BoldOblique-T5.pfb
%{_texmfdistdir}/fonts/type1/vntex/arevvn/ArevSans-Oblique-T5.pfb
%{_texmfdistdir}/fonts/type1/vntex/arevvn/ArevSans-Roman-T5.pfb
%{_texmfdistdir}/fonts/type1/vntex/chartervn/bchb8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/chartervn/bchbi8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/chartervn/bchr8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/chartervn/bchri8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbr10.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbr17.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbr8.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbr9.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbrbx10.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbrsl10.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbrsl17.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbrsl8.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmbrsl9.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmsltl10.pfb
%{_texmfdistdir}/fonts/type1/vntex/cmbrightvn/vncmtl10.pfb
%{_texmfdistdir}/fonts/type1/vntex/concretevn/CMConcrete8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/concretevn/CMConcreteItalic8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/concretevn/CMConcreteSlanted8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/concretevn/CMConcreteSmallCaps8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/grotesqvn/ugqb8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/txttvn/txbtt8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/txttvn/txbttsc8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/txttvn/txtt8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/txttvn/txttsc8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/fplrc8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uagd8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uagdo8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uagk8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uagko8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/ubkd8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/ubkdi8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/ubkl8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/ubkli8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/ucrb8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/ucrbo8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/ucrr8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/ucrro8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uhvb8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uhvbo8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uhvr8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uhvro8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uncb8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uncbi8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uncr8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uncri8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uplb8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uplbi8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uplr8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uplri8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/utmb8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/utmbi8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/utmr8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/utmri8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/urwvn/uzcmi8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnb10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbx10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbx12.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbx5.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbx6.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbx7.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbx8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbx9.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbxsl10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnbxti10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vncsc10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vndunh10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnff10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnfi10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnfib8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnitt10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnr10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnr12.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnr17.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnr5.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnr6.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnr7.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnr8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnr9.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnsl10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnsl12.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnsl8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnsl9.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnsltt10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnss10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnss12.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnss17.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnss8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnss9.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssbx10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssdc10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssi10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssi12.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssi17.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssi8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssi9.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssq8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnssqi8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vntcsc10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnti10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnti12.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnti7.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnti8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnti9.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vntt10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vntt12.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vntt8.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vntt9.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnu10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vnr/vnvtt10.pfb
%{_texmfdistdir}/fonts/type1/vntex/vntopia/putb8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/vntopia/putbi8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/vntopia/putr8v.pfb
%{_texmfdistdir}/fonts/type1/vntex/vntopia/putri8v.pfb
%{_texmfdistdir}/fonts/vf/vntex/chartervn/bchbc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/chartervn/bchrc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/uagdc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/uagkc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/ubkdc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/ubklc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/ucrbc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/ucrrc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/uhvbc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/uhvrc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/uncbc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/uncrc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/uplbc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/uplrc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/utmbc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/urwvn/utmrc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/vntopia/putbc8v.vf
%{_texmfdistdir}/fonts/vf/vntex/vntopia/putrc8v.vf
%{_texmfdistdir}/tex/latex/vntex/dblaccnt.sty
%{_texmfdistdir}/tex/latex/vntex/mcviscii.def
%{_texmfdistdir}/tex/latex/vntex/pd1supp.def
%{_texmfdistdir}/tex/latex/vntex/swpvntex.sty
%{_texmfdistdir}/tex/latex/vntex/t5bch.fd
%{_texmfdistdir}/tex/latex/vntex/t5ccr.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmbr.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmdh.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmfib.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmfr.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmr.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmss.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmssq.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmtl.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmtt.fd
%{_texmfdistdir}/tex/latex/vntex/t5cmvtt.fd
%{_texmfdistdir}/tex/latex/vntex/t5enc.def
%{_texmfdistdir}/tex/latex/vntex/t5enc.dfu
%{_texmfdistdir}/tex/latex/vntex/t5fav.fd
%{_texmfdistdir}/tex/latex/vntex/t5fnc.fd
%{_texmfdistdir}/tex/latex/vntex/t5fpl.fd
%{_texmfdistdir}/tex/latex/vntex/t5futs.fd
%{_texmfdistdir}/tex/latex/vntex/t5mak.fd
%{_texmfdistdir}/tex/latex/vntex/t5mdbch.fd
%{_texmfdistdir}/tex/latex/vntex/t5mdput.fd
%{_texmfdistdir}/tex/latex/vntex/t5mdugm.fd
%{_texmfdistdir}/tex/latex/vntex/t5pag.fd
%{_texmfdistdir}/tex/latex/vntex/t5pbk.fd
%{_texmfdistdir}/tex/latex/vntex/t5pcr.fd
%{_texmfdistdir}/tex/latex/vntex/t5phv.fd
%{_texmfdistdir}/tex/latex/vntex/t5pnc.fd
%{_texmfdistdir}/tex/latex/vntex/t5ppl.fd
%{_texmfdistdir}/tex/latex/vntex/t5ptm.fd
%{_texmfdistdir}/tex/latex/vntex/t5ptmom.fd
%{_texmfdistdir}/tex/latex/vntex/t5put.fd
%{_texmfdistdir}/tex/latex/vntex/t5pxr.fd
%{_texmfdistdir}/tex/latex/vntex/t5txr.fd
%{_texmfdistdir}/tex/latex/vntex/t5txtt.fd
%{_texmfdistdir}/tex/latex/vntex/t5uag.fd
%{_texmfdistdir}/tex/latex/vntex/t5ubk.fd
%{_texmfdistdir}/tex/latex/vntex/t5ucr.fd
%{_texmfdistdir}/tex/latex/vntex/t5ugq.fd
%{_texmfdistdir}/tex/latex/vntex/t5uhv.fd
%{_texmfdistdir}/tex/latex/vntex/t5unc.fd
%{_texmfdistdir}/tex/latex/vntex/t5upl.fd
%{_texmfdistdir}/tex/latex/vntex/t5utm.fd
%{_texmfdistdir}/tex/latex/vntex/t5uzcm.fd
%{_texmfdistdir}/tex/latex/vntex/tcvn.def
%{_texmfdistdir}/tex/latex/vntex/varioref-vi.sty
%{_texmfdistdir}/tex/latex/vntex/vietnam.sty
%{_texmfdistdir}/tex/latex/vntex/viscii.def
%{_texmfdistdir}/tex/latex/vntex/vncaps.tex
%{_texmfdistdir}/tex/latex/vntex/vntex.sty
%{_texmfdistdir}/tex/latex/vntex/vps.def
%{_texmfdistdir}/tex/plain/vntex/dblaccnt.tex
%{_texmfdistdir}/tex/plain/vntex/t5code.tex
%{_texmfdistdir}/tex/plain/vntex/vntexinfo.tex
%_texmf_updmap_d/vntex
%doc %{_texmfdistdir}/doc/generic/vntex/INSTALL
%doc %{_texmfdistdir}/doc/generic/vntex/ReleaseNotes.pdf
%doc %{_texmfdistdir}/doc/generic/vntex/vn-fonts-print.pdf
%doc %{_texmfdistdir}/doc/generic/vntex/vn-fonts.pdf
%doc %{_texmfdistdir}/doc/generic/vntex/vn-min-print.pdf
%doc %{_texmfdistdir}/doc/generic/vntex/vn-min.pdf
%doc %{_texmfdistdir}/doc/generic/vntex/vntex-man-print.pdf
%doc %{_texmfdistdir}/doc/generic/vntex/vntex-man.pdf
%doc %{_texmfdistdir}/doc/generic/vntex/vntex-print.pdf
%doc %{_texmfdistdir}/doc/generic/vntex/vntex-update-maps
%doc %{_texmfdistdir}/doc/generic/vntex/vntex.pdf
#- source
%doc %{_texmfdistdir}/source/generic/vntex/GPL.txt
%doc %{_texmfdistdir}/source/generic/vntex/LGPL.txt
%doc %{_texmfdistdir}/source/generic/vntex/LICENSE-utopia.txt
%doc %{_texmfdistdir}/source/generic/vntex/LPPL.txt
%doc %{_texmfdistdir}/source/generic/vntex/Makefile
%doc %{_texmfdistdir}/source/generic/vntex/README.vntopia
%doc %{_texmfdistdir}/source/generic/vntex/doc/ReleaseNotes.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/abbr.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/test-accents.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/vn-fonts-print.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/vn-fonts.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/vn-min-print.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/vn-min.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/vntex-man-print.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/vntex-man.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/vntex-print.tex
%doc %{_texmfdistdir}/source/generic/vntex/doc/vntex.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/Makefile
%doc %{_texmfdistdir}/source/generic/vntex/tests/README
%doc %{_texmfdistdir}/source/generic/vntex/tests/adventor-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/adventor-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/arevvn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/arevvn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/bonum-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/bonum-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/chartervn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/chartervn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/chorus-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/chorus-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/classicovn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/classicovn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/cmbrightvn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/cmbrightvn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/comicsansvn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/comicsansvn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/concretevn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/concretevn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/cursor-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/cursor-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/garamondvn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/garamondvn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/grotesqvn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/grotesqvn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/heros-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/heros-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/mscore-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/mscore-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/pagella-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/pagella-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/schola-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/schola-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5antt-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5antt-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5cyklop-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5cyklop-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5gentium-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5gentium-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5iwona-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5iwona-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5kurier-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5kurier-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5lm-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/t5lm-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/termes-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/termes-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-accents.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-babel.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-captions.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-plain-tcx.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-plain.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-tcvn.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-utf8.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-vietnam-tcx.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-vietnam.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/test-viscii.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/txttvn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/txttvn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/urwvn-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/urwvn-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/vnr-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/vnr-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/vnsample.cls
%doc %{_texmfdistdir}/source/generic/vntex/tests/vntopia-sample.tex
%doc %{_texmfdistdir}/source/generic/vntex/tests/vntopia-test.tex
%doc %{_texmfdistdir}/source/generic/vntex/vntex.dtx
%doc %{_texmfdistdir}/source/generic/vntex/vntex.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/vntex <<EOF
Map arevvn.map
Map chartervn.map
Map cmbrightvn.map
Map concretevn.map
Map grotesqvn.map
Map txttvn.map
Map urwvn.map
MixedMap vnrother.map
MixedMap vnrtext.map
Map vntopia.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19863 |21mr|texlive-vocaltract-1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25629
# category Package
# catalog-ctan /graphics/pstricks/contrib/vocaltract
# catalog-date 2012-03-13 11:09:15 +0100
# catalog-license lppl
# catalog-version 1
Name:		texlive-vocaltract
Version:	1
Release:	6
Summary:	Visualise the vocal tract using LaTeX and PStricks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/pstricks/contrib/vocaltract
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vocaltract.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vocaltract.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to visualise the vocal tract. The
vocal tract (in the package) is manipulated by a vector of
articulation parameters according to the S. Maeda model.
Animation may be achieved by providing a sequence of vectors
over time (e.g., from Matlab). A sequence of vectors for
certain German phonemes is embedded in the package, which
allows for animation when no other vector is available. The
package's graphics are produced using pstricks.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/vocaltract/VocalTract.sty
%doc %{_texmfdistdir}/doc/latex/vocaltract/README
%doc %{_texmfdistdir}/doc/latex/vocaltract/vtLatex_AnimationDemo.tex
%doc %{_texmfdistdir}/doc/latex/vocaltract/vtLatex_AnimationLauncher.tex
%doc %{_texmfdistdir}/doc/latex/vocaltract/vtLatex_FigureDemo.pdf
%doc %{_texmfdistdir}/doc/latex/vocaltract/vtLatex_FigureDemo.tex
%doc %{_texmfdistdir}/doc/latex/vocaltract/vtLatex_FigureLauncher.tex
%doc %{_texmfdistdir}/doc/latex/vocaltract/vtLatex_TimeParams.tex
%doc %{_texmfdistdir}/doc/latex/vocaltract/vtMAINVisual.m
%doc %{_texmfdistdir}/doc/latex/vocaltract/vtQueryVisual.m

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19864 |21mr|texlive-volumes-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/volumes
# catalog-date 2007-03-01 21:27:41 +0100
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-volumes
Version:	1.0
Release:	7
Summary:	Typeset only parts of a document, with complete indexes etc
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/volumes
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/volumes.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/volumes.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/volumes.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package helps you if you want to produce separate printed
volumes from one LaTeX document, as well as one comprehensive,
"all-inclusive" version. It suppresses the part of the table of
contents that are not typeset, while counters, definitions,
index entries etc. are kept consistent throughout the input
file.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/volumes/nowtoaux.sty
%{_texmfdistdir}/tex/latex/volumes/volumes.sty
%doc %{_texmfdistdir}/doc/latex/volumes/README
%doc %{_texmfdistdir}/doc/latex/volumes/volumes.pdf
#- source
%doc %{_texmfdistdir}/source/latex/volumes/volumes.dtx
%doc %{_texmfdistdir}/source/latex/volumes/volumes.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19865 |21mr|texlive-voss-de-20111104-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-voss-de
Version:	20111104
Release:	6
Summary:	TeXLive voss-de package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/voss-de.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/voss-de.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive voss-de package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/voss-de/InlineMath/Changes
%doc %{_texmfdistdir}/doc/generic/voss-de/InlineMath/InlineMath.bib
%doc %{_texmfdistdir}/doc/generic/voss-de/InlineMath/InlineMath.ltx
%doc %{_texmfdistdir}/doc/generic/voss-de/InlineMath/InlineMath.pdf
%doc %{_texmfdistdir}/doc/generic/voss-de/InlineMath/InlineMath.tex
%doc %{_texmfdistdir}/doc/generic/voss-de/InlineMath/README
%doc %{_texmfdistdir}/doc/generic/voss-de/README
%doc %{_texmfdistdir}/doc/generic/voss-de/gauss/Changes
%doc %{_texmfdistdir}/doc/generic/voss-de/gauss/README
%doc %{_texmfdistdir}/doc/generic/voss-de/gauss/gauss.ltx
%doc %{_texmfdistdir}/doc/generic/voss-de/gauss/gauss.pdf
%doc %{_texmfdistdir}/doc/generic/voss-de/gauss/gauss.tex
%doc %{_texmfdistdir}/doc/generic/voss-de/mathCol/Changes
%doc %{_texmfdistdir}/doc/generic/voss-de/mathCol/README
%doc %{_texmfdistdir}/doc/generic/voss-de/mathCol/mathCol.bib
%doc %{_texmfdistdir}/doc/generic/voss-de/mathCol/mathCol.ltx
%doc %{_texmfdistdir}/doc/generic/voss-de/mathCol/mathCol.pdf
%doc %{_texmfdistdir}/doc/generic/voss-de/mathCol/mathCol.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19866 |21mr|texlive-voss-mathcol-0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32954
# category Package
# catalog-ctan /info/math/voss/mathCol
# catalog-date 2012-08-16 22:17:39 +0200
# catalog-license noinfo
# catalog-version 0.1
Name:		texlive-voss-mathcol
Version:	0.1
Release:	5
Summary:	Typesetting mathematics in colour, in (La)TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/math/voss/mathCol
License:	NOINFO
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/voss-mathcol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/voss-mathcol.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
This is a short paper from the TeXnische Komodie, in German.
Since the body of the paper is dominated by clear LaTeX coding
examples, most LaTeX programmers will understand how to achieve
the results shown in the diagrams, even if they don't
understand German.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/voss-mathcol/Changes
%doc %{_texmfdistdir}/doc/latex/voss-mathcol/mathCol.bib
%doc %{_texmfdistdir}/doc/latex/voss-mathcol/mathCol.ltx
%doc %{_texmfdistdir}/doc/latex/voss-mathcol/mathCol.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathcol/mathCol.tex
%doc %{_texmfdistdir}/doc/latex/voss-mathcol/run.doc

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19867 |21mr|texlive-voss-mathmode-2.47-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32953
# category Package
# catalog-ctan /info/math/voss/mathmode
# catalog-date 2014-02-12 19:51:34 +0100
# catalog-license lppl
# catalog-version 2.47
Name:		texlive-voss-mathmode
Version:	2.47
Release:	5
Summary:	A comprehensive review of mathematics in (La)TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/math/voss/mathmode
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/voss-mathmode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/voss-mathmode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The review includes: Standard LaTeX mathematics mode; AMSmath;
TeX and mathematics; Other packages; Tuning math typesetting;
Mathematics fonts; Special symbols; Examples; and Lists,
bibliography and index.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/Changes
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/Mathmode.bib
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/Mathmode.ist
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/Mathmode.ltx
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/Mathmode.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/Mathmode.tex
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/EuScript.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/EuScript.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/amsalign.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/amsalign.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/cm-crop.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/cm-crop.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/cmbright-crop.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/cmbright-crop.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/colArray.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/colArray.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/exscale.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/exscale.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/family.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/family.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/family0.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/family0.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/family1.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/family1.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/lm-crop.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/lm-crop.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/minionpro-crop.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/minionpro-crop.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/node.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/node.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/pamath-crop.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/pamath-crop.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/pazo-crop.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/pazo-crop.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/styles.eps
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/images/styles.pdf
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/runLaTeX
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/runPDFLaTeX
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/runVTeX
%doc %{_texmfdistdir}/doc/latex/voss-mathmode/showexpl.cfg

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19868 |21mr|texlive-vpe-0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26039
# category Package
# catalog-ctan /macros/latex/contrib/vpe
# catalog-date 2012-04-18 16:26:37 +0200
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-vpe
Version:	0.2
Release:	6
Summary:	Source specials for PDF output
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/vpe
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vpe.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vpe.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Provides:	texlive-vpe.bin = %{EVRD}

%description
VPE is a system to make the equivalent of "source special"
marks in a PDF file. Clicking on a mark will activate an
editor, pointing at the source line that produced the text that
was marked. The system comprises a perl file (vpe.pl) and a
LaTeX package (vpe.sty); it will work with PDF files generated
via LaTeX/dvips, pdfTeX (version 0.14 or better), and
LaTeX/VTeX. Using the LaTeX/dvips or pdfLaTeX routes, the
(pdf)TeX processor should be run with shell escapes enabled.


#-----------------------------------------------------------------------
%files
%{_bindir}/vpe
%{_texmfdistdir}/scripts/vpe/vpe.pl
%{_texmfdistdir}/tex/latex/vpe/vpe.sty
%doc %{_texmfdistdir}/doc/latex/vpe/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf %{_texmfdistdir}/scripts/vpe/vpe.pl vpe
popd
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19869 |21mr|texlive-vruler-2.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21598
# category Package
# catalog-ctan /macros/latex/contrib/vruler
# catalog-date 2011-03-03 10:36:36 +0100
# catalog-license lppl1
# catalog-version 2.3
Name:		texlive-vruler
Version:	2.3
Release:	7
Summary:	Numbering text
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/vruler
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vruler.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vruler.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package offers facilities for adding a columns of numbering
to the general text so that the text can be properly
referenced. The vertical ruler can be scaled and moved freely.
The package may be used either with LaTeX or with plain TeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/vruler/vruler.sty
%doc %{_texmfdistdir}/doc/latex/vruler/miscdoc.sty
%doc %{_texmfdistdir}/doc/latex/vruler/vruler-example.tex
%doc %{_texmfdistdir}/doc/latex/vruler/vruler.pdf
%doc %{_texmfdistdir}/doc/latex/vruler/vruler.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19870 |21mr|texlive-vwcol-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/vwcol
# catalog-date 2008-08-24 14:43:48 +0200
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-vwcol
Version:	0.2
Release:	1
Summary:	Variable-width multiple text columns
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/vwcol
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vwcol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vwcol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/vwcol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a crude environment (vwcol) for
typesetting multicolumn paragraph text of various column widths
on a single page.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/vwcol/vwcol.sty
%doc %{_texmfdistdir}/doc/latex/vwcol/README
%doc %{_texmfdistdir}/doc/latex/vwcol/vwcol.pdf
#- source
%doc %{_texmfdistdir}/source/latex/vwcol/vwcol.dtx
%doc %{_texmfdistdir}/source/latex/vwcol/vwcol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19871 |21mr|texlive-wadalab-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-wadalab
Version:	20190228
Release:	1
Summary:	Wadalab (Japanese) font packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/wadalab
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wadalab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wadalab.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex

%description
These are font bundles for the Japanese Wadalab fonts which
work with the CJK package. All subfonts now have glyph names
compliant to the Adobe Glyph List, making ToUnicode CMaps in
PDF documents (created automatically by dvipdfmx) work
correctly. All font bundles now contain virtual Unicode
subfonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjgreek.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjhira.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjhw.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjka.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkata.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkb.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkc.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkd.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjke.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkeisen.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkf.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkg.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkh.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjki.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkj.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkk.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkl.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkm.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkn.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjko.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkp.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkq.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkr.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjks.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkt.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjku.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkv.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkw.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkx.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjky.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjkz.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjroma.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjrussian.afm
%{_texmfdistdir}/fonts/afm/wadalab/dgj/dgjsy.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjgreek.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjhira.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjhw.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjka.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkata.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkb.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkc.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkd.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjke.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkeisen.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkf.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkg.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkh.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjki.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkj.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkk.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkl.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkm.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkn.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjko.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkp.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkq.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkr.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjks.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkt.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjku.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkv.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkw.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkx.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjky.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjkz.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjroma.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjrussian.afm
%{_texmfdistdir}/fonts/afm/wadalab/dmj/dmjsy.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jka.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkb.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkc.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkd.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jke.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkf.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkg.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkh.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jki.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkj.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkk.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkl.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkm.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkn.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jko.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkp.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkq.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkr.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jks.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkt.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jku.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkv.afm
%{_texmfdistdir}/fonts/afm/wadalab/mc2j/mc2jkw.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjgreek.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjhira.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjhw.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjka.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkata.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkb.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkc.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkd.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjke.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkeisen.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkf.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkg.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkh.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjki.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkj.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkk.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkl.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkm.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkn.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjko.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkp.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkq.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkr.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjks.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkt.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjku.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkv.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkw.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkx.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjky.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjkz.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjroma.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjrussian.afm
%{_texmfdistdir}/fonts/afm/wadalab/mcj/mcjsy.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jka.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkb.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkc.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkd.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jke.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkf.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkg.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkh.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jki.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkj.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkk.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkl.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkm.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkn.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jko.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkp.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkq.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkr.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jks.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkt.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jku.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkv.afm
%{_texmfdistdir}/fonts/afm/wadalab/mr2j/mr2jkw.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjgreek.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjhira.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjhw.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjka.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkata.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkb.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkc.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkd.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjke.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkeisen.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkf.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkg.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkh.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjki.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkj.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkk.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkl.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkm.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkn.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjko.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkp.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkq.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkr.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjks.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkt.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjku.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkv.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkw.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkx.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjky.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjkz.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjroma.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjrussian.afm
%{_texmfdistdir}/fonts/afm/wadalab/mrj/mrjsy.afm
%{_texmfdistdir}/fonts/map/dvips/wadalab/dgj.map
%{_texmfdistdir}/fonts/map/dvips/wadalab/dmj.map
%{_texmfdistdir}/fonts/map/dvips/wadalab/mc2j.map
%{_texmfdistdir}/fonts/map/dvips/wadalab/mcj.map
%{_texmfdistdir}/fonts/map/dvips/wadalab/mr2j.map
%{_texmfdistdir}/fonts/map/dvips/wadalab/mrj.map
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjgreek.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjhira.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjhw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjka.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkata.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkb.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkc.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkd.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjke.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkeisen.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkf.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkg.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkh.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjki.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkj.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkk.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkl.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkm.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkn.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjko.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkp.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkq.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkr.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjks.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkt.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjku.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkv.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkx.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjky.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjkz.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjroma.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjrussian.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dgj/dgjsy.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjgreek.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjhira.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjhw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjka.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkata.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkb.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkc.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkd.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjke.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkeisen.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkf.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkg.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkh.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjki.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkj.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkk.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkl.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkm.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkn.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjko.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkp.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkq.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkr.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjks.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkt.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjku.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkv.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkx.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjky.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjkz.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjroma.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjrussian.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/dmj/dmjsy.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jka.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkb.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkc.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkd.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jke.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkf.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkg.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkh.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jki.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkj.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkk.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkl.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkm.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkn.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jko.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkp.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkq.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkr.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jks.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkt.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jku.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkv.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mc2j/mc2jkw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjgreek.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjhira.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjhw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjka.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkata.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkb.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkc.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkd.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjke.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkeisen.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkf.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkg.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkh.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjki.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkj.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkk.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkl.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkm.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkn.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjko.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkp.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkq.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkr.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjks.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkt.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjku.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkv.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkx.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjky.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjkz.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjroma.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjrussian.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mcj/mcjsy.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jka.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkb.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkc.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkd.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jke.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkf.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkg.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkh.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jki.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkj.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkk.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkl.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkm.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkn.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jko.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkp.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkq.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkr.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jks.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkt.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jku.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkv.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mr2j/mr2jkw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjgreek.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjhira.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjhw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjka.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkata.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkb.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkc.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkd.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjke.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkeisen.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkf.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkg.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkh.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjki.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkj.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkk.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkl.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkm.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkn.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjko.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkp.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkq.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkr.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjks.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkt.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjku.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkv.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkw.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkx.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjky.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjkz.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjroma.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjrussian.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/mrj/mrjsy.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj00.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj03.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj04.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj20.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj21.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj22.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj23.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj25.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj26.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj30.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj4e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj4f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj50.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj51.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj52.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj53.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj54.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj55.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj56.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj57.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj58.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj59.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj5a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj5b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj5c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj5d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj5e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj5f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj60.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj61.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj62.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj63.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj64.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj65.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj66.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj67.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj68.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj69.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj6a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj6b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj6c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj6d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj6e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj6f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj70.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj71.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj72.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj73.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj74.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj75.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj76.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj77.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj78.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj79.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj7a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj7b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj7c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj7d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj7e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj7f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj80.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj81.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj82.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj83.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj84.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj85.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj86.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj87.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj88.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj89.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj8a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj8b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj8c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj8d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj8e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj8f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj90.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj91.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj92.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj93.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj94.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj95.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj96.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj97.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj98.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj99.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj9a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj9b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj9c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj9d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj9e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgj9f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udgj/udgjff.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj00.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj03.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj04.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj20.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj21.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj22.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj23.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj25.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj26.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj30.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj4e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj4f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj50.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj51.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj52.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj53.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj54.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj55.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj56.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj57.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj58.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj59.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj5a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj5b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj5c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj5d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj5e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj5f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj60.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj61.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj62.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj63.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj64.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj65.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj66.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj67.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj68.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj69.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj6a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj6b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj6c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj6d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj6e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj6f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj70.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj71.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj72.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj73.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj74.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj75.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj76.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj77.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj78.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj79.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj7a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj7b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj7c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj7d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj7e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj7f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj80.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj81.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj82.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj83.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj84.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj85.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj86.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj87.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj88.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj89.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj8a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj8b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj8c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj8d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj8e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj8f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj90.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj91.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj92.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj93.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj94.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj95.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj96.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj97.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj98.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj99.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj9a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj9b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj9c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj9d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj9e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmj9f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/udmj/udmjff.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj00.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj03.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj04.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj20.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj21.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj22.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj23.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj25.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj26.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj30.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj4e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj4f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj50.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj51.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj52.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj53.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj54.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj55.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj56.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj57.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj58.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj59.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj5a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj5b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj5c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj5d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj5e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj5f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj60.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj61.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj62.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj63.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj64.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj65.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj66.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj67.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj68.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj69.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj6a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj6b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj6c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj6d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj6e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj6f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj70.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj71.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj72.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj73.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj74.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj75.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj76.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj77.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj78.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj79.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj7a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj7b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj7c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj7d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj7e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj7f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj80.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj81.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj82.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj83.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj84.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj85.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj86.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj87.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj88.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj89.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj8a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj8b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj8c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj8d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj8e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj8f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj90.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj91.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj92.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj93.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj94.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj95.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj96.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj97.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj98.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj99.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj9a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj9b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj9c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj9d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj9e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcj9f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umcj/umcjff.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj00.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj03.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj04.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj20.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj21.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj22.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj23.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj25.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj26.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj30.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj4e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj4f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj50.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj51.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj52.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj53.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj54.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj55.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj56.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj57.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj58.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj59.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj5a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj5b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj5c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj5d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj5e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj5f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj60.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj61.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj62.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj63.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj64.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj65.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj66.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj67.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj68.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj69.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj6a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj6b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj6c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj6d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj6e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj6f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj70.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj71.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj72.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj73.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj74.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj75.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj76.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj77.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj78.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj79.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj7a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj7b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj7c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj7d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj7e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj7f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj80.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj81.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj82.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj83.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj84.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj85.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj86.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj87.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj88.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj89.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj8a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj8b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj8c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj8d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj8e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj8f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj90.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj91.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj92.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj93.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj94.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj95.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj96.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj97.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj98.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj99.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj9a.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj9b.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj9c.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj9d.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj9e.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrj9f.tfm
%{_texmfdistdir}/fonts/tfm/wadalab/umrj/umrjff.tfm
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjgreek.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjhira.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjhw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjka.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkata.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkb.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkc.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkd.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjke.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkeisen.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkf.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkg.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkh.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjki.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkj.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkk.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkl.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkm.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkn.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjko.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkp.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkq.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkr.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjks.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkt.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjku.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkv.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkx.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjky.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjkz.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjroma.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjrussian.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dgj/dgjsy.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjgreek.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjhira.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjhw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjka.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkata.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkb.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkc.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkd.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjke.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkeisen.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkf.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkg.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkh.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjki.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkj.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkk.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkl.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkm.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkn.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjko.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkp.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkq.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkr.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjks.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkt.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjku.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkv.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkx.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjky.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjkz.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjroma.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjrussian.pfb
%{_texmfdistdir}/fonts/type1/wadalab/dmj/dmjsy.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jka.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkb.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkc.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkd.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jke.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkf.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkg.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkh.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jki.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkj.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkk.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkl.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkm.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkn.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jko.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkp.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkq.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkr.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jks.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkt.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jku.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkv.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mc2j/mc2jkw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjgreek.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjhira.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjhw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjka.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkata.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkb.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkc.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkd.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjke.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkeisen.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkf.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkg.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkh.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjki.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkj.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkk.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkl.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkm.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkn.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjko.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkp.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkq.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkr.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjks.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkt.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjku.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkv.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkx.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjky.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjkz.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjroma.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjrussian.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mcj/mcjsy.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jka.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkb.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkc.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkd.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jke.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkf.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkg.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkh.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jki.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkj.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkk.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkl.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkm.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkn.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jko.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkp.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkq.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkr.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jks.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkt.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jku.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkv.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mr2j/mr2jkw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjgreek.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjhira.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjhw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjka.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkata.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkb.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkc.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkd.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjke.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkeisen.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkf.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkg.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkh.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjki.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkj.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkk.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkl.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkm.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkn.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjko.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkp.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkq.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkr.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjks.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkt.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjku.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkv.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkw.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkx.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjky.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjkz.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjroma.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjrussian.pfb
%{_texmfdistdir}/fonts/type1/wadalab/mrj/mrjsy.pfb
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj00.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj03.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj04.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj20.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj21.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj22.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj23.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj25.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj26.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj30.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj4e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj4f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj50.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj51.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj52.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj53.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj54.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj55.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj56.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj57.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj58.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj59.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj5a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj5b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj5c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj5d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj5e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj5f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj60.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj61.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj62.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj63.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj64.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj65.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj66.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj67.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj68.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj69.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj6a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj6b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj6c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj6d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj6e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj6f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj70.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj71.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj72.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj73.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj74.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj75.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj76.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj77.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj78.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj79.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj7a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj7b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj7c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj7d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj7e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj7f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj80.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj81.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj82.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj83.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj84.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj85.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj86.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj87.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj88.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj89.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj8a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj8b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj8c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj8d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj8e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj8f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj90.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj91.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj92.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj93.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj94.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj95.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj96.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj97.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj98.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj99.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj9a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj9b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj9c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj9d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj9e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgj9f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udgj/udgjff.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj00.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj03.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj04.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj20.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj21.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj22.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj23.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj25.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj26.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj30.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj4e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj4f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj50.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj51.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj52.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj53.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj54.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj55.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj56.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj57.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj58.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj59.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj5a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj5b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj5c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj5d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj5e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj5f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj60.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj61.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj62.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj63.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj64.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj65.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj66.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj67.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj68.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj69.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj6a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj6b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj6c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj6d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj6e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj6f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj70.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj71.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj72.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj73.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj74.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj75.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj76.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj77.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj78.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj79.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj7a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj7b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj7c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj7d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj7e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj7f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj80.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj81.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj82.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj83.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj84.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj85.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj86.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj87.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj88.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj89.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj8a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj8b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj8c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj8d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj8e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj8f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj90.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj91.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj92.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj93.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj94.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj95.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj96.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj97.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj98.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj99.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj9a.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj9b.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj9c.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj9d.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj9e.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmj9f.vf
%{_texmfdistdir}/fonts/vf/wadalab/udmj/udmjff.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj00.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj03.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj04.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj20.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj21.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj22.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj23.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj25.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj26.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj30.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj4e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj4f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj50.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj51.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj52.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj53.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj54.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj55.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj56.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj57.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj58.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj59.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj5a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj5b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj5c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj5d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj5e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj5f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj60.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj61.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj62.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj63.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj64.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj65.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj66.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj67.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj68.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj69.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj6a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj6b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj6c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj6d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj6e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj6f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj70.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj71.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj72.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj73.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj74.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj75.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj76.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj77.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj78.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj79.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj7a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj7b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj7c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj7d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj7e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj7f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj80.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj81.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj82.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj83.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj84.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj85.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj86.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj87.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj88.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj89.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj8a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj8b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj8c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj8d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj8e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj8f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj90.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj91.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj92.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj93.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj94.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj95.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj96.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj97.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj98.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj99.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj9a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj9b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj9c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj9d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj9e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcj9f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umcj/umcjff.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj00.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj03.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj04.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj20.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj21.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj22.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj23.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj25.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj26.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj30.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj4e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj4f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj50.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj51.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj52.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj53.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj54.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj55.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj56.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj57.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj58.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj59.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj5a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj5b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj5c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj5d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj5e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj5f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj60.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj61.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj62.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj63.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj64.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj65.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj66.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj67.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj68.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj69.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj6a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj6b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj6c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj6d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj6e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj6f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj70.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj71.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj72.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj73.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj74.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj75.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj76.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj77.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj78.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj79.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj7a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj7b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj7c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj7d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj7e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj7f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj80.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj81.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj82.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj83.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj84.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj85.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj86.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj87.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj88.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj89.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj8a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj8b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj8c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj8d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj8e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj8f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj90.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj91.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj92.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj93.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj94.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj95.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj96.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj97.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj98.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj99.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj9a.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj9b.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj9c.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj9d.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj9e.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrj9f.vf
%{_texmfdistdir}/fonts/vf/wadalab/umrj/umrjff.vf
%_texmf_updmap_d/wadalab
%doc %{_texmfdistdir}/doc/fonts/wadalab/README
%doc %{_texmfdistdir}/doc/fonts/wadalab/dgj/README
%doc %{_texmfdistdir}/doc/fonts/wadalab/dmj/README
%doc %{_texmfdistdir}/doc/fonts/wadalab/mc2j/README
%doc %{_texmfdistdir}/doc/fonts/wadalab/mcj/README
%doc %{_texmfdistdir}/doc/fonts/wadalab/mr2j/README
%doc %{_texmfdistdir}/doc/fonts/wadalab/mrj/README
%doc %{_texmfdistdir}/doc/fonts/wadalab/wadalab-sampler.pdf
%doc %{_texmfdistdir}/doc/fonts/wadalab/wadalab-sampler.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}
mkdir -p %{buildroot}%{_texmf_updmap_d}
cat > %{buildroot}%{_texmf_updmap_d}/wadalab <<EOF
Map dgj.map
Map dmj.map
Map mc2j.map
Map mcj.map
Map mr2j.map
Map mrj.map
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19872 |21mr|texlive-wallpaper-1.10-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/wallpaper
# catalog-date 2007-01-20 20:21:37 +0100
# catalog-license lppl
# catalog-version 1.10
Name:		texlive-wallpaper
Version:	1.10
Release:	8
Summary:	Easy addition of wallpapers (background images) to LaTeX documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/wallpaper
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wallpaper.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wallpaper.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This collection contains files to add wallpapers (background
images) to LaTeX documents. It uses the eso-pic package, but
provides simple commands to include effects such as tiling. An
example is provided, which works under both LaTeX and pdfLaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/wallpaper/wallpaper.sty
%doc %{_texmfdistdir}/doc/latex/wallpaper/README
%doc %{_texmfdistdir}/doc/latex/wallpaper/example/TGTamber.png
%doc %{_texmfdistdir}/doc/latex/wallpaper/example/auto/example.el
%doc %{_texmfdistdir}/doc/latex/wallpaper/example/example.tex
%doc %{_texmfdistdir}/doc/latex/wallpaper/example/hya.png
%doc %{_texmfdistdir}/doc/latex/wallpaper/wallpapermanual.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19873 |21mr|texlive-warning-0.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22028
# category Package
# catalog-ctan /macros/latex/contrib/warning
# catalog-date 2011-04-08 17:41:44 +0200
# catalog-license lppl
# catalog-version 0.01
Name:		texlive-warning
Version:	0.01
Release:	7
Summary:	Global warnings at the end of the logfile
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/warning
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/warning.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/warning.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package provides a command that generates a list of
warnings that are printed out at the very end of the logfile.
This is useful for warnings such as 'Rerun for this or that
reason' or 'This is a draft, change it before the final run'.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/warning/warning.sty
%doc %{_texmfdistdir}/doc/latex/warning/warning-doc.pdf
%doc %{_texmfdistdir}/doc/latex/warning/warning-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19874 |21mr|texlive-warpcol-1.0c-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/warpcol
# catalog-date 2007-11-21 20:02:33 +0100
# catalog-license lppl
# catalog-version 1.0c
Name:		texlive-warpcol
Version:	1.0c
Release:	7
Summary:	Relative alignment of rows in numeric columns in tabulars
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/warpcol
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/warpcol.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/warpcol.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/warpcol.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Defines a tabular column type for formatting numerical columns
in LaTeX. The column type enables numerical items to be right
justified relative to each other, while centred beneath the
column label. In addition, macros are provided to enable
variations on this column type to be defined. Usage of the
package is superficially similar to that of dcolumn; however,
the alignment scheme is different, and the packages have
different, though overlapping, applications.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/warpcol/warpcol.sty
%doc %{_texmfdistdir}/doc/latex/warpcol/README
%doc %{_texmfdistdir}/doc/latex/warpcol/warpcol.pdf
#- source
%doc %{_texmfdistdir}/source/latex/warpcol/warpcol.dtx
%doc %{_texmfdistdir}/source/latex/warpcol/warpcol.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19875 |21mr|texlive-was-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 21439
# category Package
# catalog-ctan /macros/latex/contrib/was
# catalog-date 2011-02-15 10:33:56 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-was
Version:	20190228
Release:	1
Summary:	A collection of small packages by Walter Schmidt
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/was
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/was.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/was.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/was.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A bundle of packages that arise in the author's area of
interest: - compliance of maths typesetting with ISO standards;
- symbols that work in both maths and text modes; - commas for
both decimal separator and maths; and - upright Greek letters
in maths.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/was/fixmath.sty
%{_texmfdistdir}/tex/latex/was/gensymb.sty
%{_texmfdistdir}/tex/latex/was/icomma.sty
%{_texmfdistdir}/tex/latex/was/upgreek.sty
%doc %{_texmfdistdir}/doc/latex/was/fixmath.pdf
%doc %{_texmfdistdir}/doc/latex/was/gensymb.pdf
%doc %{_texmfdistdir}/doc/latex/was/icomma.pdf
%doc %{_texmfdistdir}/doc/latex/was/readme.1st
%doc %{_texmfdistdir}/doc/latex/was/upgreek.pdf
#- source
%doc %{_texmfdistdir}/source/latex/was/fixmath.dtx
%doc %{_texmfdistdir}/source/latex/was/fixmath.ins
%doc %{_texmfdistdir}/source/latex/was/gensymb.dtx
%doc %{_texmfdistdir}/source/latex/was/gensymb.ins
%doc %{_texmfdistdir}/source/latex/was/icomma.dtx
%doc %{_texmfdistdir}/source/latex/was/icomma.ins
%doc %{_texmfdistdir}/source/latex/was/upgreek.dtx
%doc %{_texmfdistdir}/source/latex/was/upgreek.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19876 |21mr|texlive-wasy-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-wasy
Version:	20190228
Release:	1
Summary:	The wasy fonts (Waldi symbol fonts)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/wasy2
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wasy.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wasy.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These are the wasy (Waldi symbol) fonts, second release. This
bundle presents the fonts in MetaFont format, but they are also
available in Adobe Type 1 format. Support under LaTeX is
provided by the wasysym package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/*/*/wasy
%{_texmfdistdir}/tex/plain/wasy
%doc %{_texmfdistdir}/doc/fonts/wasy

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19877 |21mr|texlive-wasysym-2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 54080
# category Package
# catalog-ctan /macros/latex/contrib/wasysym
# catalog-date 2020-03-04 22:55:00 +0100
# catalog-license lppl
# catalog-version 2.0
Name:		texlive-wasysym
Version:	2.0
Release:	8
Summary:	LaTeX support file to use the WASY2 fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/wasysym
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wasysym.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wasysym.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wasysym.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The WASY2 (Waldi Symbol) font by Roland Waldi provides many
glyphs like male and female symbols and astronomical symbols,
as well as the complete lasy font set and other odds and ends.
The wasysym package implements an easy to use interface for
these symbols.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/wasysym/uwasy.fd
%{_texmfdistdir}/tex/latex/wasysym/uwasyvar.fd
%{_texmfdistdir}/tex/latex/wasysym/wasysym.sty
%doc %{_texmfdistdir}/doc/latex/wasysym/wasysym.pdf
%doc %{_texmfdistdir}/doc/latex/wasysym/README.md
#- source
%doc %{_texmfdistdir}/source/latex/wasysym/wasysym.dtx
%doc %{_texmfdistdir}/source/latex/wasysym/wasysym.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19878 |21mr|texlive-web-4.5-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 33736
# category TLCore
# catalog-ctan /systems/knuth/dist/web
# catalog-date 2014-02-26 23:03:13 +0100
# catalog-license knuth
# catalog-version 4.5
Name:		texlive-web
Version:	4.5
Release:	14
Summary:	Original web programs tangle and weave
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/systems/knuth/dist/web
License:	KNUTH
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/web.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/web.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires:	texlive-kpathsea
Requires:	texlive-web.bin

%description
The system processes 'web' files in two ways: firstly to
rearrange them to produce compilable code (using the program
tangle), and secondly to produce a TeX source (using the
program weave) that may be typeset for comfortable reading.

#-----------------------------------------------------------------------
%files
%doc %{_mandir}/man1/tangle.1*
%doc %{_texmfdistdir}/doc/man/man1/tangle.man1.pdf
%doc %{_mandir}/man1/weave.1*
%doc %{_texmfdistdir}/doc/man/man1/weave.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19879 |21mr|texlive-webguide-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25813
# category Package
# catalog-ctan /info/webguide
# catalog-date 2011-06-16 21:20:53 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-webguide
Version:	20190228
Release:	1
Summary:	Brief Guide to LaTeX Tools for Web publishing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/webguide
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/webguide.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/webguide.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The documentation constitutes an example of the package's own
recommendations (being presented both in PDF and HTML).

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/latex/webguide/README
%doc %{_texmfdistdir}/doc/latex/webguide/expeg.6
%doc %{_texmfdistdir}/doc/latex/webguide/expeg6.mps
%doc %{_texmfdistdir}/doc/latex/webguide/webguide.css
%doc %{_texmfdistdir}/doc/latex/webguide/webguide.html
%doc %{_texmfdistdir}/doc/latex/webguide/webguide.pdf
%doc %{_texmfdistdir}/doc/latex/webguide/webguide.tex
%doc %{_texmfdistdir}/doc/latex/webguide/webguide0x.gif

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19880 |21mr|texlive-widetable-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-widetable
Version:	1.5
Release:	1
Summary:	An environment for typesetting tables of specified width
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/widetable
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/widetable.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/widetable.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/widetable.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines a new environment that, unlike tabularX,
typesets a table of specified width by working on the inter-
column glue; the tabular cells will all be stretched (or
shrunk) according to need. The package will use the e-TeX
arithmetic extensions if they are available (they are, in most
modern distributions).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/widetable
%doc %{_texmfdistdir}/doc/latex/widetable
#- source
%doc %{_texmfdistdir}/source/latex/widetable

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19881 |21mr|texlive-williams-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/williams
# catalog-date 2009-01-30 14:29:16 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-williams
Version:	20190228
Release:	1
Summary:	Miscellaneous macros by Peter Williams
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/williams
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/williams.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/williams.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides two packages: - antree, which provides
macros for annotated node trees, and - toklist, which is an
implementation of Knuth's token list macros, to be found on
pp.378-379 of the TeXbook.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/williams/antree.sty
%{_texmfdistdir}/tex/latex/williams/toklist.sty
%doc %{_texmfdistdir}/doc/latex/williams/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19882 |21mr|texlive-withargs-0.2.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31906
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-withargs
Version:	0.2.0
Release:	2
Epoch:		1
Summary:	TeXLive withargs package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/withargs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/withargs.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive withargs package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/withargs/withargs-dry.sty
%{_texmfdistdir}/tex/latex/withargs/withargs-packagedoc.cls
%{_texmfdistdir}/tex/latex/withargs/withargs.sty
%doc %{_texmfdistdir}/doc/latex/withargs/README
%doc %{_texmfdistdir}/doc/latex/withargs/withargs.pdf
%doc %{_texmfdistdir}/doc/latex/withargs/withargs.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19883 |21mr|texlive-wnri-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22459
# category Package
# catalog-ctan /fonts/wnri
# catalog-date 2011-05-06 00:38:04 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-wnri
Version:	20190228
Release:	1
Summary:	Ridgeway's fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/wnri
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wnri.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wnri.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Fonts (as Metafont source) for Old English, Indic languages in
Roman transliteration and Puget Salish (Lushootseed) and other
Native American languages.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/wnri/acctmax.mf
%{_texmfdistdir}/fonts/source/public/wnri/acutacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/addpunc.mf
%{_texmfdistdir}/fonts/source/public/wnri/baraacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/bargacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/bnduacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/brbracct.mf
%{_texmfdistdir}/fonts/source/public/wnri/brevacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/cdilacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/facutact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fbaraact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fbargact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fbrevact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fgravact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fhachact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fhattact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fubrvact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fudacact.mf
%{_texmfdistdir}/fonts/source/public/wnri/fudgract.mf
%{_texmfdistdir}/fonts/source/public/wnri/gamma.mf
%{_texmfdistdir}/fonts/source/public/wnri/gram_max.mf
%{_texmfdistdir}/fonts/source/public/wnri/grampunc.mf
%{_texmfdistdir}/fonts/source/public/wnri/gravacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/greeks.mf
%{_texmfdistdir}/fonts/source/public/wnri/haccbase.mf
%{_texmfdistdir}/fonts/source/public/wnri/hachacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/hattacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/iaesc.mf
%{_texmfdistdir}/fonts/source/public/wnri/ibrvacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/igamma.mf
%{_texmfdistdir}/fonts/source/public/wnri/italcskt.mf
%{_texmfdistdir}/fonts/source/public/wnri/italla.mf
%{_texmfdistdir}/fonts/source/public/wnri/ligature.mf
%{_texmfdistdir}/fonts/source/public/wnri/ligaturi.mf
%{_texmfdistdir}/fonts/source/public/wnri/macracct.mf
%{_texmfdistdir}/fonts/source/public/wnri/mudaacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/odotacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/orngacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/product.mf
%{_texmfdistdir}/fonts/source/public/wnri/romanla.mf
%{_texmfdistdir}/fonts/source/public/wnri/romanskt.mf
%{_texmfdistdir}/fonts/source/public/wnri/romanua.mf
%{_texmfdistdir}/fonts/source/public/wnri/sktmisc.mf
%{_texmfdistdir}/fonts/source/public/wnri/tildacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/u-ring.mf
%{_texmfdistdir}/fonts/source/public/wnri/ubaracct.mf
%{_texmfdistdir}/fonts/source/public/wnri/ubrvacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/udacacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/udgracct.mf
%{_texmfdistdir}/fonts/source/public/wnri/udmcacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/udotacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/uibvacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/umlaacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/urmcacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/urngacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/uumlacct.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnindic.map
%{_texmfdistdir}/fonts/source/public/wnri/wnrib10.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnrib8.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnribi10.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnrii10.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnrii8.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnrir10.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnrir8.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnris10.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnris8.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnrit10.mf
%{_texmfdistdir}/fonts/source/public/wnri/wnrit8.mf
%{_texmfdistdir}/fonts/tfm/public/wnri/wnrib10.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnrib8.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnribi10.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnrii10.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnrii8.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnrir10.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnrir8.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnris10.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnris8.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnrit10.tfm
%{_texmfdistdir}/fonts/tfm/public/wnri/wnrit8.tfm
%doc %{_texmfdistdir}/doc/fonts/wnri/README
%doc %{_texmfdistdir}/doc/fonts/wnri/old/README
%doc %{_texmfdistdir}/doc/fonts/wnri/old/barnett.map
%doc %{_texmfdistdir}/doc/fonts/wnri/old/lushucid.map
%doc %{_texmfdistdir}/doc/fonts/wnri/old/newgb.map

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19884 |21mr|texlive-wnri-latex-1.0b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22338
# category Package
# catalog-ctan /macros/latex/contrib/wnri-latex
# catalog-date 2011-05-06 00:56:07 +0200
# catalog-license gpl2
# catalog-version 1.0b
Name:		texlive-wnri-latex
Version:	1.0b
Release:	7
Summary:	LaTeX support for wnri fonts
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/wnri-latex
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wnri-latex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wnri-latex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wnri-latex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
LaTeX support for the fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/wnri-latex/ot1wnr.fd
%{_texmfdistdir}/tex/latex/wnri-latex/ot1wnss.fd
%{_texmfdistdir}/tex/latex/wnri-latex/ot1wntt.fd
%{_texmfdistdir}/tex/latex/wnri-latex/wnri.def
%{_texmfdistdir}/tex/latex/wnri-latex/wnri.sty
%doc %{_texmfdistdir}/doc/latex/wnri-latex/README
%doc %{_texmfdistdir}/doc/latex/wnri-latex/wnri.pdf
%doc %{_texmfdistdir}/doc/latex/wnri-latex/wnritest.tex
#- source
%doc %{_texmfdistdir}/source/latex/wnri-latex/wnri.dtx
%doc %{_texmfdistdir}/source/latex/wnri-latex/wnri.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19885 |21mr|texlive-wordlike-1.2b-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/wordlike
# catalog-date 2009-06-03 09:03:24 +0200
# catalog-license lppl
# catalog-version 1.2b
Name:		texlive-wordlike
Version:	1.2b
Release:	7
Summary:	Simulating word processor layout
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/wordlike
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wordlike.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wordlike.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wordlike.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package simulates typical word processor layout: narrow
page margins, Times, Helvetica and Courier fonts, \LARGE or
\Large headings, and \sloppy typesetting. The package aims at
making life easier for users who are discontent with LaTeX's
standard layout settings because they need a layout that
resembles the usual "wordlike" output. The design of the
package draws on several discussions in the de.comp.text.tex
and comp.text.tex newsgroups that are referred to in the
manual.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/wordlike/wordlike.sty
%doc %{_texmfdistdir}/doc/latex/wordlike/README
%doc %{_texmfdistdir}/doc/latex/wordlike/wordlike.pdf
#- source
%doc %{_texmfdistdir}/source/latex/wordlike/wordlike.dtx
%doc %{_texmfdistdir}/source/latex/wordlike/wordlike.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19886 |21mr|texlive-wrapfig-3.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22048
# category Package
# catalog-ctan /macros/latex/contrib/wrapfig
# catalog-date 2011-04-09 12:56:30 +0200
# catalog-license lppl
# catalog-version 3.6
Name:		texlive-wrapfig
Version:	3.6
Release:	7
Summary:	Produces figures which text can flow around
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/wrapfig
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wrapfig.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wrapfig.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Allows figures or tables to have text wrapped around them. Does
not work in combination with list environments, but can be used
in a parbox or minipage, and in twocolumn format. Supports the
float package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/wrapfig/wrapfig.sty
%doc %{_texmfdistdir}/doc/latex/wrapfig/multiple-span.txt
%doc %{_texmfdistdir}/doc/latex/wrapfig/wrapfig-doc.pdf
%doc %{_texmfdistdir}/doc/latex/wrapfig/wrapfig-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19887 |21mr|texlive-wsemclassic-1.0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31532
# category Package
# catalog-ctan /macros/latex/contrib/wsemclassic
# catalog-date 2013-08-27 15:13:32 +0200
# catalog-license bsd
# catalog-version 1.0.1
Name:		texlive-wsemclassic
Version:	1.0.1
Release:	10
Summary:	LaTeX class for Bavarian school w-seminar papers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/wsemclassic
License:	BSD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wsemclassic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wsemclassic.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/wsemclassic.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The class is designed either to conform with the
recommendations of the Bavarian Kultusministerium for
typesetting w-seminar papers (strict mode), or to use another
style which should look better. The class is based on the LaTeX
standard report class.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/wsemclassic/wsemclassic.cls
%doc %{_texmfdistdir}/doc/latex/wsemclassic/LICENSE
%doc %{_texmfdistdir}/doc/latex/wsemclassic/Makefile
%doc %{_texmfdistdir}/doc/latex/wsemclassic/README
%doc %{_texmfdistdir}/doc/latex/wsemclassic/test.bib
%doc %{_texmfdistdir}/doc/latex/wsemclassic/user-doc.tex
%doc %{_texmfdistdir}/doc/latex/wsemclassic/wsemclassic-test.pdf
%doc %{_texmfdistdir}/doc/latex/wsemclassic/wsemclassic-test.tex
%doc %{_texmfdistdir}/doc/latex/wsemclassic/wsemclassic.pdf
#- source
%doc %{_texmfdistdir}/source/latex/wsemclassic/wsemclassic.dtx
%doc %{_texmfdistdir}/source/latex/wsemclassic/wsemclassic.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19888 |21mr|texlive-xargs-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xargs
# catalog-date 2008-08-24 00:31:24 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-xargs
Version:	1.1
Release:	7
Summary:	Define commands with many optional arguments
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xargs
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xargs.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xargs.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xargs.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides extended versions of \newcommand and
related LaTeX commands, which allow easy and robust definition
of macros with many optional arguments, using a clear and
simple xkeyval-style syntax.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xargs/xargs.sty
%doc %{_texmfdistdir}/doc/latex/xargs/README
%doc %{_texmfdistdir}/doc/latex/xargs/xargs-fr.pdf
%doc %{_texmfdistdir}/doc/latex/xargs/xargs.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xargs/xargs.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19889 |21mr|texlive-xbmc-20111104-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 13293
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-xbmc
Version:	20111104
Release:	7
Summary:	TeXLive xbmc package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xbmc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive xbmc package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/xbmc/xbmc10.mf
%{_texmfdistdir}/fonts/tfm/public/xbmc/xbmc10.tfm

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19890 |21mr|texlive-xcjk2uni-0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xcjk2uni
Version:	0.8
Release:	1
Summary:	Convert CJK characters to Unicode, in pdfTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xcjk2uni
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcjk2uni.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcjk2uni.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcjk2uni.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to convert CJK characters to
Unicode in non-UTF-8 encoding; it provides hooks to support
hyperref in producing correct bookmarks. The bundle also
provides /ToUnicode mapping file(s) for a CJK subfont; these
can be used with the cmap package, allowing searches of, and
cut-and-paste operations on a PDF file generated by pdfTeX..

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xcjk2uni
%doc %{_texmfdistdir}/doc/latex/xcjk2uni
#- source
%doc %{_texmfdistdir}/source/latex/xcjk2uni

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19891 |21mr|texlive-xcolor-2.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xcolor
# catalog-date 2007-01-21 23:54:12 +0100
# catalog-license lppl
# catalog-version 2.11
Name:		texlive-xcolor
Version:	2.12
Release:	2
Summary:	Driver-independent color extensions for LaTeX and pdfLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xcolor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcolor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcolor.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcolor.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Provides easy driver-independent access to several kinds of
color tints, shades, tones, and mixes of arbitrary colors. It
allows a user to select a document-wide target color model and
offers complete tools for conversion between eight color
models. Additionally, there is a command for alternating row
colors plus repeated non-aligned material (like horizontal
lines) in tables. Colors can be mixed like
\color{red!30!green!40!blue}.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/xcolor/xcolor.pro
%{_texmfdistdir}/tex/latex/xcolor/svgnam.def
%{_texmfdistdir}/tex/latex/xcolor/x11nam.def
%{_texmfdistdir}/tex/latex/xcolor/xcolor.sty
%doc %{_texmfdistdir}/doc/latex/xcolor/ChangeLog
%doc %{_texmfdistdir}/doc/latex/xcolor/README
%doc %{_texmfdistdir}/doc/latex/xcolor/xcolor.lox
%doc %{_texmfdistdir}/doc/latex/xcolor/xcolor.pdf
%doc %{_texmfdistdir}/doc/latex/xcolor/xcolor1.tex
%doc %{_texmfdistdir}/doc/latex/xcolor/xcolor2.pdf
%doc %{_texmfdistdir}/doc/latex/xcolor/xcolor2.tex
%doc %{_texmfdistdir}/doc/latex/xcolor/xcolor3.tex
%doc %{_texmfdistdir}/doc/latex/xcolor/xcolor4.tex
#- source
%doc %{_texmfdistdir}/source/latex/xcolor/xcolor.dtx
%doc %{_texmfdistdir}/source/latex/xcolor/xcolor.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19892 |21mr|texlive-xcomment-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20031
# category Package
# catalog-ctan /macros/generic/xcomment
# catalog-date 2010-09-08 12:33:34 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-xcomment
Version:	1.3
Release:	7
Summary:	Allows selected environments to be included/excluded
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/xcomment
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcomment.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcomment.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package defines an environment that only typesets specified
environments within its scope. So, for example, if you want
nothing but the figure and table environments in your document,
you can enclose the whole document with an xcomment environment
that excludes everything but. This is a lot easier than
excluding the chunks of text between the environments you want,
or creating an entire document containing only those
environments. The package was previously part of the seminar
bundle for typesetting presentations.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/xcomment/xcomment.sty
%{_texmfdistdir}/tex/generic/xcomment/xcomment.tex
%doc %{_texmfdistdir}/doc/generic/xcomment/Changes
%doc %{_texmfdistdir}/doc/generic/xcomment/Makefile
%doc %{_texmfdistdir}/doc/generic/xcomment/README
%doc %{_texmfdistdir}/doc/generic/xcomment/xcomment-doc.pdf
%doc %{_texmfdistdir}/doc/generic/xcomment/xcomment-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19893 |21mr|texlive-xcookybooky-1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xcookybooky
Version:	1.5
Release:	1
Summary:	Typeset (potentially long) recipes
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xcookybooky
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcookybooky.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcookybooky.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xcookybooky.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables the user to typeset recipes, which could be
greater than one page. Above the recipe text two (optional)
pictures can be displayed. Other features are recipe name,
energy content, portions, preparation and baking time, baking
temperatures, recipe source and of course preparation steps and
required ingredients. At the bottom you may insert an optional
hint. The package depends on the Emerald fonts.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xcookybooky
%doc %{_texmfdistdir}/doc/latex/xcookybooky
#- source
%doc %{_texmfdistdir}/source/latex/xcookybooky/xcookybooky.dtx
%doc %{_texmfdistdir}/source/latex/xcookybooky/xcookybooky.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19894 |21mr|texlive-xdoc-prot2.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xdoc
# catalog-date 2006-12-05 00:47:24 +0100
# catalog-license lppl
# catalog-version prot2.5
Name:		texlive-xdoc
Version:	prot2.5
Release:	7
Summary:	Extending the LaTeX doc system
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xdoc
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xdoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xdoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xdoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Xdoc is a project to rewrite the implementation of the LaTeX
doc package (in a broader sense) to make its features more
general and flexible. For example, where doc only provides
commands for documenting macros and environments, xdoc also
provides commands for similarly documenting package options and
switches. This is furthermore done in such a way that it is
very easy to add more such commands for documenting things,
such as e.g., templates (an important concept in the future
LaTeX3) and program components for other languages (functions,
classes, procedures, etc.). A side effect is that many minor
bugs in doc are fixed. The design aims to take advantage of
many still experimental features of future versions of LaTeX,
but since these are neither reasonably stable nor widely
available, the configuration interfaces and package author
commands of xdoc are likely to change. To still provide a
stable interface for other packages to build upon, the actual
package names include a "major version number" of sorts. The
drop-in replacement package for standard doc is xdoc2; it
requires nothing outside standard LaTeX2e. The
docindex/docidx2e package changes the index and list of changes
typesetting so that none of the formatting has to be controlled
via the index style file. The docindex package provides control
of formatting via templates (nice interface, but requires
several experimental packages), whereas the docidx2e package
has traditional raw macro interfaces and works with standard
LaTeX2e.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/makeindex/xdoc/docindex.ist
%{_texmfdistdir}/tex/latex/xdoc/docidx2e.sty
%{_texmfdistdir}/tex/latex/xdoc/docindex.sty
%{_texmfdistdir}/tex/latex/xdoc/xdoc2.sty
%doc %{_texmfdistdir}/doc/latex/xdoc/README
%doc %{_texmfdistdir}/doc/latex/xdoc/docindex.pdf
%doc %{_texmfdistdir}/doc/latex/xdoc/xdoc2.pdf
%doc %{_texmfdistdir}/doc/latex/xdoc/xdocdemo.pdf
%doc %{_texmfdistdir}/doc/latex/xdoc/xdocdemo.tex
#- source
%doc %{_texmfdistdir}/source/latex/xdoc/docindex.dtx
%doc %{_texmfdistdir}/source/latex/xdoc/docindex.ins
%doc %{_texmfdistdir}/source/latex/xdoc/xdoc2.dtx
%doc %{_texmfdistdir}/source/latex/xdoc/xdoc2.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar makeindex tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19895 |21mr|texlive-xdvi-20200316-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xdvi
Version:	20200316
Release:	1
Summary:	A DVI previewer for the X Window System
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/dviware/xdvi
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xdvi.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xdvi.doc.tar.xz
Source2:	XDvi-color
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires:	texlive-xdvi.bin
%rename tetex-xdvi
%rename xdvik

%description
The canonical previewer for use on Unix and other X-windows
based systems. The distribution has been integrated with that
of xdvik (no longer separately available), so that it will
build with web2c "out of the box". In practice, it is usually
distributed via Tex-live.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/xdvi/config.xdvi
%{_texmfdistdir}/xdvi/XDvi
%{_texmfdistdir}/xdvi/pixmap/toolbar.xpm
%{_texmfdistdir}/xdvi/pixmap/toolbar2.xpm
%{_datadir}/X11/app-defaults/*
%doc %{_mandir}/man1/xdvi.1*
%doc %{_texmfdistdir}/doc/man/man1/xdvi.man1.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}/X11/app-defaults
pushd %{buildroot}%{_datadir}/X11/app-defaults
    cp -fpa %{SOURCE2} .
    ln -sf %{_texmfdistdir}/xdvi/XDvi .
popd
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/*.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19896 |21mr|texlive-xecjk-3.7.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xecjk
Version:	3.7.2
Release:	1
Summary:	Support for CJK documents in XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/xecjk
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xecjk.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xecjk.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xecjk.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A LaTeX package for typesetting CJK documents in the way users
have become used to, in the CJK package. The package requires a
current version of xtemplate (and hence of the current LaTeX 3
development environment).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xecjk
%{_texmfdistdir}/tex/xelatex/xecjk
%doc %{_texmfdistdir}/doc/xelatex/xecjk
#- source
%doc %{_texmfdistdir}/source/xelatex/xecjk

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19897 |21mr|texlive-xecolor-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 29660
# category Package
# catalog-ctan /macros/xetex/latex/xecolor
# catalog-date 2013-04-04 12:47:47 +0200
# catalog-license lppl1.3
# catalog-version 0.1
Name:		texlive-xecolor
Epoch:		1
Version:	0.1
Release:	10
Summary:	Support for color in XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/xecolor
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xecolor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xecolor.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is a simple package which defines about 140 different
colours using XeTeX's colour feature. The colours can be used
in bidirectional texts without any problem.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/xecolor/xecolor.sty
%doc %{_texmfdistdir}/doc/xelatex/xecolor/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19898 |21mr|texlive-xecyr-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 20221
# category Package
# catalog-ctan /macros/xetex/latex/xecyr
# catalog-date 2010-10-26 13:00:58 +0200
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-xecyr
Version:	1.1
Release:	7
Summary:	Using Cyrillic languages in XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/xecyr
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xecyr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xecyr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Helper tools for using Cyrillic languages with XeLaTeX and
babel.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/xecyr/xu-ruenhyph.tex
%{_texmfdistdir}/tex/xelatex/xecyr/xecyr.sty
%doc %{_texmfdistdir}/doc/xelatex/xecyr/1251.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/866.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/NEWS
%doc %{_texmfdistdir}/doc/xelatex/xecyr/README
%doc %{_texmfdistdir}/doc/xelatex/xecyr/iso.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/koi8-r.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/language.dat.add
%doc %{_texmfdistdir}/doc/xelatex/xecyr/listings-utf8-ex.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/listings-utf8-ex.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/pict2e-ex.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/pict2e-ex.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/rubibtex-ex-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/rubibtex-ex-x.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/rubibtex-ex.bib
%doc %{_texmfdistdir}/doc/xelatex/xecyr/rumakeindex-ex-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/rumakeindex-ex-x.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-doc-ru.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-doc-ru.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex1-ru-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex1-ru-x.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex2-ru-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex2-ru-x.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex3-ru-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex3-ru-x.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex4-ru-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex4-ru-x.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex5-ru-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex5-ru-x.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex6-ru-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex6-ru-x.tex
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex7-ru-x.pdf
%doc %{_texmfdistdir}/doc/xelatex/xecyr/xecyr-ex7-ru-x.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19899 |21mr|texlive-xeindex-0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16760
# category Package
# catalog-ctan /macros/xetex/latex/xeindex
# catalog-date 2010-01-17 14:52:57 +0100
# catalog-license lppl
# catalog-version 0.2
Name:		texlive-xeindex
Version:	0.3
Release:	2
Summary:	Automatic index generation for XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/xeindex
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xeindex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xeindex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is based on XeSearch, and will automatically index
words or phrases in an XeLaTeX document. Words are declared in
a list, and every occurrence then creates an index entry whose
content can be fully specified beforehand.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/xeindex/xeindex.sty
%doc %{_texmfdistdir}/doc/xelatex/xeindex/README
%doc %{_texmfdistdir}/doc/xelatex/xeindex/xeindex.pdf
%doc %{_texmfdistdir}/doc/xelatex/xeindex/xeindex.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19900 |21mr|texlive-xepersian-22.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xepersian
Version:	22.7
Release:	1
Summary:	Persian for LaTeX, using XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/xepersian
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xepersian.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xepersian.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xepersian.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports Persian typesetting, using the Persian
Modern fonts, by default.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xepersian
%{_texmfdistdir}/tex/xelatex/xepersian
%doc %{_texmfdistdir}/doc/xelatex/xepersian
#- source
%doc %{_texmfdistdir}/source/xelatex/xepersian

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19901 |21mr|texlive-xesearch-20190228-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 16041
# category Package
# catalog-ctan /macros/xetex/generic/xesearch
# catalog-date 2009-11-18 12:12:09 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-xesearch
Version:	20190228
Release:	7
Summary:	A string finder for XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/generic/xesearch
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xesearch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xesearch.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package finds strings (e.g. (parts of) words or phrases)
and manipulates them (apply any macro), thus turning each word
or phrase into a possible command. It is written in plain XeTeX
and should thus work with any format (it is known to work with
LaTeX and ConTeXt). The main application for the moment is
XeIndex, an automatic index for XeLaTeX, but examples are given
of simple use to check spelling, count words, and highlight
syntax of programming languages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xetex/xesearch/t-xesearch.tex
%{_texmfdistdir}/tex/xetex/xesearch/xesearch.sty
%doc %{_texmfdistdir}/doc/xetex/xesearch/README
%doc %{_texmfdistdir}/doc/xetex/xesearch/xesearch.pdf
%doc %{_texmfdistdir}/doc/xetex/xesearch/xesearch.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19902 |21mr|texlive-xetex-20200314-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xetex
Epoch:		1
Version:	20200314
Release:	1
Summary:	Unicode and OpenType-enabled TeX engine
Group:		Publishing
URL:		http://tug.org/texlive
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-xetexconfig
Requires:	texlive-xetex.bin
Requires:	texlive-ini-files

%description
See http://tug.org/xetex.


#-----------------------------------------------------------------------
%files
%{_bindir}/xelatex
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/base/qx-unicode.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/base/qx-unicode.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/base/tex-text.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/base/tex-text.tec
%{_tlpkgdir}/tlpostcode/xetex.pl
%_texmf_fmtutil_d/xetex
%doc %{_texmfdistdir}/doc/xetex/base/NEWS
%doc %{_texmfdistdir}/doc/xetex/base/README
%doc %{_texmfdistdir}/doc/xetex/base/XeTeX-notes.pdf
%doc %{_texmfdistdir}/doc/xetex/base/XeTeX-notes.tex
%doc %{_texmfdistdir}/doc/man/man1/xelatex.man1.pdf
%doc %{_texmfdistdir}/doc/man/man1/xetex.man1.pdf
%doc %{_mandir}/man1/xelatex.1*
%doc %{_mandir}/man1/xetex.1*

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_bindir}
pushd %{buildroot}%{_bindir}
    ln -sf xetex xelatex
popd
mkdir -p %{buildroot}%{_tlpkgdir}
cp -fpar tlpkg/tlpostcode %{buildroot}%{_tlpkgdir}
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/xetex <<EOF
#
# from xetex:
xetex xetex language.def -etex xetex.ini
xelatex xetex language.dat -etex xelatex.ini
EOF

mkdir -p %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/xelatex.1 %{buildroot}%{_mandir}/man1
mv %{buildroot}%{_texmfdistdir}/doc/man/man1/xetex.1 %{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19903 |21mr|texlive-xetexconfig-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xetexconfig
Version:	20190228
Release:	1
Summary:	Configuration files for XeTeX
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetexconfig.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
unicode-letters, and special crop.cfg and hyperref.cfg for
XeTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/xetexconfig

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19904 |21mr|texlive-xetex-devanagari-0.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xetex-devanagari
Version:	0.5
Release:	3
Summary:	XeTeX input map for Unicode Devanagari
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/generic/devanagari
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex-devanagari.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex-devanagari.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a map for use with Jonathan Kew's TECkit,
to translate Devanagari (encoded according to the Harvard/Kyoto
convention) to Unicode (range 0900-097F).

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-devanagari
%doc %{_texmfdistdir}/doc/xetex/xetex-devanagari

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19905 |21mr|texlive-xetexfontinfo-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/xetex/plain/xetexfontinfo
# catalog-date 2008-08-24 00:31:24 +0200
# catalog-license apache2
# catalog-version undef
Name:		texlive-xetexfontinfo
Version:	20190228
Release:	1
Summary:	Report font features in XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/plain/xetexfontinfo
License:	APACHE2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetexfontinfo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetexfontinfo.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A pair of documents to reveal the font features supported by
fonts usable in XeTeX. Use OpenType-info.tex for OpenType
fonts, and AAT-info.tex for AAT fonts (Mac OS X only).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xetex/xetexfontinfo/aat-info.tex
%{_texmfdistdir}/tex/xetex/xetexfontinfo/opentype-info.tex
%doc %{_texmfdistdir}/doc/xetex/xetexfontinfo/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19906 |21mr|texlive-xetex-itrans-4.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32810
# category Package
# catalog-ctan /macros/xetex/generic/itrans
# catalog-date 2014-01-28 13:57:50 +0100
# catalog-license lppl1.3
# catalog-version 4.1
Name:		texlive-xetex-itrans
Version:	4.2
Release:	2
Summary:	Itrans input maps for use with XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/generic/itrans
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex-itrans.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex-itrans.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides maps for use with XeLaTeX with coding done
using itrans. Fontspec maps are provided for Devanagari
(Sanskrit), for Sanskrit in Kannada and for Kannada itself.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/brh-kan.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/brh-kan.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-dvn.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-dvn.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-iast.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-iast.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-kan.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-kan.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-sankan.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-sankan.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-santel.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-santel.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-sdvn.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-sdvn.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-tamil.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-tamil.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-tel.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-itrans/itrans-tel.tec
%doc %{_texmfdistdir}/doc/xelatex/xetex-itrans/README
%doc %{_texmfdistdir}/doc/xelatex/xetex-itrans/itrans-tamil-sample.pdf
%doc %{_texmfdistdir}/doc/xelatex/xetex-itrans/itrans-tamil-sample.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19907 |21mr|texlive-xetexko-2.21-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 34321
# category Package
# catalog-ctan /macros/xetex/generic/xetexko
# catalog-date 2014-06-19 16:36:00 +0200
# catalog-license lppl1.3
# catalog-version 2.7
Name:		texlive-xetexko
Version:	2.21
Release:	1
Summary:	Typeset Korean with Xe(La)TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/generic/xetexko
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetexko.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetexko.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports typesetting Korean documents (including
old Hangul texts), using XeTeX. It enhances the existing
support, in XeTeX, providing features that provide quality
typesetting.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xetex/xetexko/hanja_hangul.tab
%{_texmfdistdir}/tex/xetex/xetexko/hanjacom_hangul.tab
%{_texmfdistdir}/tex/xetex/xetexko/hanjaexa_hangul.tab
%{_texmfdistdir}/tex/xetex/xetexko/xetexko-font.sty
%{_texmfdistdir}/tex/xetex/xetexko/xetexko-hanging.sty
%{_texmfdistdir}/tex/xetex/xetexko/xetexko-josa.sty
%{_texmfdistdir}/tex/xetex/xetexko/xetexko-space.sty
%{_texmfdistdir}/tex/xetex/xetexko/xetexko-vertical.sty
%{_texmfdistdir}/tex/xetex/xetexko/xetexko.sty
%doc %{_texmfdistdir}/doc/xetex/xetexko/ChangeLog
%doc %{_texmfdistdir}/doc/xetex/xetexko/README
%doc %{_texmfdistdir}/doc/xetex/xetexko/xetexko-doc.pdf
%doc %{_texmfdistdir}/doc/xetex/xetexko/xetexko-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19908 |21mr|texlive-xetex-pstricks-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17055
# category Package
# catalog-ctan /graphics/xetex/pstricks
# catalog-date 2010-02-18 14:04:58 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-xetex-pstricks
Version:	20190228
Release:	1
Summary:	Running PStricks under XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/graphics/xetex/pstricks
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex-pstricks.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex-pstricks.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides an indirection scheme for XeTeX to use the
pstricks xdvipdfmx.cfg configuration file, so that XeTeX
documents will load it in preference to the standard
pstricks.con configuration file. With this configuration, many
PSTricks features can be used in xelatex or plain xetex
documents.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/xetex-pstricks/pstricks.con
%{_texmfdistdir}/tex/xetex/xetex-pstricks/pstricks.con
%doc %{_texmfdistdir}/doc/xetex/xetex-pstricks/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19909 |21mr|texlive-xetexref-20190306-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xetexref
Version:	20190306
Release:	1
Summary:	Reference documentation of XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/xetexref
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetexref.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetexref.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
The package comprises reference documentation for XeTeX
detailing its extended features.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/xetex/xetexref

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19910 |21mr|texlive-xetex-tibetan-0.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28847
# category Package
# catalog-ctan /macros/xetex/generic/tibetan
# catalog-date 2013-01-15 18:22:19 +0100
# catalog-license lppl
# catalog-version 0.1
Name:		texlive-xetex-tibetan
Version:	0.1
Release:	10
Summary:	XeTeX input maps for Unicode Tibetan
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/generic/tibetan
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex-tibetan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xetex-tibetan.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides a map for use with Jonathan Kew's TECkit,
to translate Tibetan to Unicode (range 0F00-0FFF).


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-tibetan/loctib.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-tibetan/loctib.tec
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-tibetan/wylie.map
%{_texmfdistdir}/fonts/misc/xetex/fontmapping/xetex-tibetan/wylie.tec
%doc %{_texmfdistdir}/doc/xetex/xetex-tibetan/Changelog
%doc %{_texmfdistdir}/doc/xetex/xetex-tibetan/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19911 |21mr|texlive-xevlna-1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 30086
# category Package
# catalog-ctan /macros/xetex/generic/xevlna
# catalog-date 2013-04-23 11:12:19 +0200
# catalog-license lppl1.3
# catalog-version 1.0
Name:		texlive-xevlna
Version:	1.1
Release:	2
Summary:	Insert non-breakable spaces using XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/generic/xevlna
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xevlna.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xevlna.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package will directly insert nonbreakable spaces (in Czech,
vlna or vlnka), after nonsyllabic prepositions and single
letter conjuctions, while the document is being typeset. (The
macros recognised maths and verbatim by TeX means.) (Inserting
nonbreakable spaces by a preprocessor will probably never be
fully reliable, because user defined macros and environments
cannot reliably be recognised.) The package works both with
(Plain) XeTeX and with XeLaTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/xevlna/xevlna.sty
%doc %{_texmfdistdir}/doc/xelatex/xevlna/License.txt
%doc %{_texmfdistdir}/doc/xelatex/xevlna/README
%doc %{_texmfdistdir}/doc/xelatex/xevlna/xevlna-inc.tex
%doc %{_texmfdistdir}/doc/xelatex/xevlna/xevlna.pdf
%doc %{_texmfdistdir}/doc/xelatex/xevlna/xevlna.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19912 |21mr|texlive-xfor-1.05-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xfor
# catalog-date 2009-02-05 23:18:07 +0100
# catalog-license lppl
# catalog-version 1.05
Name:		texlive-xfor
Version:	1.05
Release:	7
Summary:	A reimplimentation of the LaTeX for-loop macro
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xfor
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xfor.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xfor.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xfor.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package redefines the LaTeX internal \@for macro so that
the loop may be prematurely terminated. The action is akin to
the C/Java break statement, except that the loop does not
terminate until the end of the current iteration.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xfor/xfor.sty
%doc %{_texmfdistdir}/doc/latex/xfor/CHANGES
%doc %{_texmfdistdir}/doc/latex/xfor/README
%doc %{_texmfdistdir}/doc/latex/xfor/sample.tex
%doc %{_texmfdistdir}/doc/latex/xfor/xfor.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xfor/xfor.dtx
%doc %{_texmfdistdir}/source/latex/xfor/xfor.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19913 |21mr|texlive-xgreek-3.0.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31170
# category Package
# catalog-ctan /macros/xetex/latex/xgreek
# catalog-date 2012-07-21 23:51:26 +0200
# catalog-license lppl
# catalog-version 2.4
Name:		texlive-xgreek
Version:	3.0.1
Release:	3
Summary:	XeLaTeX package for typesetting Greek language documents (beta release)
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/xgreek
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xgreek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xgreek.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xgreek.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package has been designed so to allow people to typeset
Greek language documents using XeLaTeX. And it is released in
the hope that people will use it and spot errors, bugs,
features so to improve it. Practically, it provides all the
capabilities of the greek option of the babel package. The
package can be invoked with any of the following options:
monotonic (for typesetting modern monotonic Greek), polytonic
(for typesetting modern polytonic Greek), and ancient (for
typesetting ancient texts). The default option is monotonic.
The command \setlanguage{<lang>} to activate the hyphenation
patterns of the language <lang> This, however, can be done only
if the format file has not been built with the babel mechanism.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/xgreek/xgreek.sty
%doc %{_texmfdistdir}/doc/xelatex/xgreek/README
%doc %{_texmfdistdir}/doc/xelatex/xgreek/xgreek.pdf
#- source
%doc %{_texmfdistdir}/source/xelatex/xgreek/xgreek.dtx
%doc %{_texmfdistdir}/source/xelatex/xgreek/xgreek.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19914 |21mr|texlive-xhfill-1.01-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22575
# category Package
# catalog-ctan /macros/latex/contrib/xhfill
# catalog-date 2011-05-17 17:47:58 +0200
# catalog-license lppl
# catalog-version 1.01
Name:		texlive-xhfill
Version:	1.01
Release:	7
Summary:	Extending \hrulefill
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xhfill
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xhfill.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xhfill.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides extended macros for the default \hrulefill
command. It allows modification of the width and the colour of
the line.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xhfill/xhfill.sty
%doc %{_texmfdistdir}/doc/latex/xhfill/Changes
%doc %{_texmfdistdir}/doc/latex/xhfill/Makefile
%doc %{_texmfdistdir}/doc/latex/xhfill/xhfill-doc.pdf
%doc %{_texmfdistdir}/doc/latex/xhfill/xhfill-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19915 |21mr|texlive-xifthen-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xifthen
# catalog-date 2009-05-03 12:26:51 +0200
# catalog-license lppl
# catalog-version 1.3
Name:		texlive-xifthen
Version:	1.4.0
Release:	2
Summary:	Extended conditional commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xifthen
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xifthen.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xifthen.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package extends the ifthen package by implementing new
commands to go within the first argument of \ifthenelse: to
test whether a string is void or not, if a command is defined
or equivalent to another. The package also enables use of
complex expressions as introduced by the package calc, together
with the ability of defining new commands to handle complex
tests. The package requires e-TeX features.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xifthen/xifthen.sty
%doc %{_texmfdistdir}/doc/latex/xifthen/README
%doc %{_texmfdistdir}/doc/latex/xifthen/xifthen.pdf
%doc %{_texmfdistdir}/doc/latex/xifthen/xifthen.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19916 |21mr|texlive-xint-1.3e-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xint
Version:	1.3e
Release:	1
Summary:	Expandable operations on long numbers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/xint
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xint.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xint.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xint.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The bundle provides four packages: xint, which provides
expandable TeX macros that implement the basic arithmetic
operations of addition, subtraction, multiplication and
division, as applied to arbitrarily long numbers represented as
chains of digits with an optional minus sign; xinttools is
loaded by xint (hence by all other packages of the bundle,
too): it provides utilities of independent interest such as
expandable and non-expandable loops. xintfrac, which computes
fractions using xint; xintexpr, which extends xintfrac with an
expandable parser of expressions involving integers and a wide
variety of operators; xintbinhex provides conversions to and
from binary and hexadecimal bases; xintseries, which provides
basic functionality for computing partial sums using xint;
xintgcd, which provides implementations of the Euclidean
algorithm, and of its typesetting; xintcfrac, which deals with
the computation of continued fractions, All of the packages'
computations are done in a way that they can operate in an
expanding environment. The packages may be used either with
Plain TeX or LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/xint
%doc %{_texmfdistdir}/doc/generic/xint
#- source
%doc %{_texmfdistdir}/source/generic/xint

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19917 |21mr|texlive-xits-1.200.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xits
Version:	1.200.1
Release:	1
Summary:	A Scientific Times-like font with support for mathematical typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/xits
License:	OFL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xits.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xits.doc.tar.xz
#Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xits.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
XITS is a Times-like font for scientific typesetting with
proper mathematical support for modern, Unicode and OpenType
capable TeX engines, namely LuaTeX and XeTeX. For use with
LuaLaTeX or XeLaTeX, support is available from the fontspec and
unicode-math packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/opentype/public/xits
%doc %{_texmfdistdir}/doc/fonts/xits

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19918 |21mr|texlive-xkeyval-2.7a-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xkeyval
Version:	2.7a
Release:	1
Summary:	Extension of the keyval package
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xkeyval
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xkeyval.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xkeyval.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xkeyval.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package is an extension of the keyval package and offers
additional macros for setting keys and declaring and setting
class or package options. The package allows the programmer to
specify a prefix to the name of the macros it defines for keys,
and to define families of key definitions; these all help use
in documents where several packages define their own sets of
keys.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/xkeyval
%{_texmfdistdir}/tex/latex/xkeyval
%doc %{_texmfdistdir}/doc/latex/xkeyval
#- source
%doc %{_texmfdistdir}/source/latex/xkeyval/xkeyval.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19919 |21mr|texlive-xltxtra-0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xltxtra
Version:	0.6
Release:	1
Summary:	"Extras" for LaTeX users of XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xltxtra
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xltxtra.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xltxtra.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xltxtra.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package loads the fixltx2e package from the LaTeX
distribution, and etex.sty from the e-TeX distribution. The
package then patches the \- (discretionary hyphen command) to
use the current hyphen character (which may be different from
than the default, which is the character at the ASCII hyphen
slot), and loads the realscripts to patch the \textsuperscript
command (from the LaTeX kernel) and the \textsubscript command
(from the fixltx2e package). The package is loaded by the
fontspec package, so that it should not ordinarily be necessary
to load it explicitly. The package relies on the metalogo
package for typesetting the XeTeX and XeLaTeX logos.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xltxtra/xltxtra.sty
%doc %{_texmfdistdir}/doc/latex/xltxtra/README
%doc %{_texmfdistdir}/doc/latex/xltxtra/xltxtra.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xltxtra/xltxtra.dtx
%doc %{_texmfdistdir}/source/latex/xltxtra/xltxtra.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19920 |21mr|texlive-xmlplay-20061216-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan undef
# catalog-date 2006-12-16 17:11:43 +0100
# catalog-license pd
# catalog-version undef
Name:		texlive-xmlplay
Version:	20061216
Release:	7
Summary:	Typeset Shakespeare's plays as marked up by Bosak
Group:		Publishing
URL:		http://tug.org/texlive
License:	PD
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xmlplay.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xmlplay.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xmlplay.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This is an xmltex package for typsetting the plays of
Shakespeare, as marked up by Jon Bosak.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xmltex/xmlplay/play.xmt
%doc %{_texmfdistdir}/doc/otherformats/xmltex/xmlplay/readme
#- source
%doc %{_texmfdistdir}/source/xmltex/xmlplay/play.dtd

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19921 |21mr|texlive-xmltex-0.8-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23409
# category Package
# catalog-ctan /macros/xmltex/base
# catalog-date 2006-12-16 17:11:43 +0100
# catalog-license lppl
# catalog-version 0.8
Name:		texlive-xmltex
Version:	0.8
Release:	10
Summary:	Support for parsing XML documents
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xmltex/base
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xmltex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xmltex.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea
Requires(post):	texlive-tetex
Requires:	texlive-latex
Requires:	texlive-pdftex
Requires:	texlive-tex
Requires:	texlive-xmltex.bin
%rename xmltex

%description
This package provides an implementation of a parser for
documents matching the XML 1.0 and XML Namespace
Recommendations. In addition to parsing commands are provided
to attatch TeX typesetting instructions to the various markup
elemenets as they are encounted. Sample files for typesetting a
subset of TEI, MathML, are included. Element and Attribute
names, as well as character data, may use any characters
allowed in XML, using UTF-8 or a suitable 8-bit encoding.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xmltex/base/iso-8859-1.xmt
%{_texmfdistdir}/tex/xmltex/base/iso-8859-2.xmt
%{_texmfdistdir}/tex/xmltex/base/koi8-r.xmt
%{_texmfdistdir}/tex/xmltex/base/langtest.xmt
%{_texmfdistdir}/tex/xmltex/base/mathml2.xmt
%{_texmfdistdir}/tex/xmltex/base/sec.xmt
%{_texmfdistdir}/tex/xmltex/base/utf-16.xmt
%{_texmfdistdir}/tex/xmltex/base/windows-1250.xmt
%{_texmfdistdir}/tex/xmltex/base/xmltex.cfg
%{_texmfdistdir}/tex/xmltex/base/xmltex.tex
%{_texmfdistdir}/tex/xmltex/config/pdfxmltex.ini
%{_texmfdistdir}/tex/xmltex/config/xmltex.ini
%_texmf_fmtutil_d/xmltex
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/englishutf16.xml
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/englishutf8.xml
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/langtest.xml
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/manual.html
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/manual.tex
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/manual.xml
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/manual.xsl
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/portugeselatin1.xml
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/readme.txt
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/russiankoi8.xml
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/russianutf8.xml
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/testascii.cfg
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/testascii.tex
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/testascii.xml
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/testsec.tex
%doc %{_texmfdistdir}/doc/otherformats/xmltex/base/testsec.xml

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_datadir}
cp -fpar texmf-dist %{buildroot}%{_datadir}
mkdir -p %{buildroot}%{_texmf_fmtutil_d}
cat > %{buildroot}%{_texmf_fmtutil_d}/xmltex <<EOF
#
# from xmltex:
xmltex pdftex language.dat *xmltex.ini
pdfxmltex pdftex language.dat *pdfxmltex.ini
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19922 |21mr|texlive-xmpincl-2.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xmpincl
# catalog-date 2008-05-10 20:43:24 +0200
# catalog-license gpl
# catalog-version 2.2
Name:		texlive-xmpincl
Version:	2.2
Release:	7
Summary:	Include eXtensible Metadata Platform data in PDFLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xmpincl
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xmpincl.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xmpincl.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xmpincl.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The XMP (eXtensible Metadata platform) is a framework to add
metadata to digital material to enhance the workflow in
publication. The essence is that the metadata is stored in an
XML file, and this XML stream is then embedded in the file to
which it applies. How you create this XML file is up to you,
but the author started investigating this because he wanted to
embed licensing information in the files he created. The
license the author chose is one of the Creative Commons
licenses, and their web-site offers this information in a valid
XML-file, suitable for direct inclusion.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xmpincl/xmpincl.sty
%doc %{_texmfdistdir}/doc/latex/xmpincl/README
%doc %{_texmfdistdir}/doc/latex/xmpincl/license.xmp
%doc %{_texmfdistdir}/doc/latex/xmpincl/xmpincl.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xmpincl/xmpincl.dtx
%doc %{_texmfdistdir}/source/latex/xmpincl/xmpincl.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19923 |21mr|texlive-xnewcommand-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xnewcommand
# catalog-date 2008-08-24 14:46:50 +0200
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-xnewcommand
Version:	1.2
Release:	7
Summary:	Define \global and \protected commands with \newcommand
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xnewcommand
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xnewcommand.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xnewcommand.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides the means of defining \global and (e-TeX)
\protected commands, within the framework of LaTeX's standard
\newcommand.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xnewcommand/xnewcommand.sty
%doc %{_texmfdistdir}/doc/latex/xnewcommand/README
%doc %{_texmfdistdir}/doc/latex/xnewcommand/xnewcommand.pdf
%doc %{_texmfdistdir}/doc/latex/xnewcommand/xnewcommand.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19924 |21mr|texlive-xoptarg-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xoptarg
# catalog-date 2008-08-24 14:29:08 +0200
# catalog-license lppl
# catalog-version 1.0
Name:		texlive-xoptarg
Version:	1.0
Release:	7
Summary:	Expandable macros that take an optional argument
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xoptarg
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xoptarg.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xoptarg.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Commands that take an optional argument are not ordinarily
expandable; this package allows such commands to be expandable
provided they have at least one mandatory argument.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xoptarg/xoptarg.sty
%doc %{_texmfdistdir}/doc/latex/xoptarg/README
%doc %{_texmfdistdir}/doc/latex/xoptarg/xoptarg.pdf
%doc %{_texmfdistdir}/doc/latex/xoptarg/xoptarg.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19925 |21mr|texlive-xpatch-0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25180
# category Package
# catalog-ctan /macros/latex/contrib/xpatch
# catalog-date 2012-01-23 12:18:32 +0100
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-xpatch
Version:	0.2
Release:	7
Summary:	Extending etoolbox patching commands
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xpatch
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpatch.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpatch.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpatch.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package generalises the macro patching commands provided by
Philipp Lehmann's etoolbox.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xpatch/xpatch.sty
%doc %{_texmfdistdir}/doc/latex/xpatch/README
%doc %{_texmfdistdir}/doc/latex/xpatch/xpatch.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xpatch/xpatch.dtx
%doc %{_texmfdistdir}/source/latex/xpatch/xpatch.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19926 |21mr|texlive-xpeek-0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 27442
# category Package
# catalog-ctan /macros/latex/contrib/xpeek
# catalog-date 2012-08-17 12:03:38 +0200
# catalog-license lppl1.3
# catalog-version 0.2
Name:		texlive-xpeek
Version:	0.2
Release:	12
Summary:	Define commands that peek ahead in the input stream
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xpeek
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpeek.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpeek.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpeek.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides tools to help define commands that, like
\xspace (from xspace) and the LaTeX command \textit, peek at
what follows them in the command stream and choose appropriate
behaviour.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xpeek/xpeek.sty
%doc %{_texmfdistdir}/doc/latex/xpeek/README
%doc %{_texmfdistdir}/doc/latex/xpeek/xpeek.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xpeek/xpeek.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19927 |21mr|texlive-xpicture-1.2a-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28770
# category Package
# catalog-ctan /macros/latex/contrib/xpicture
# catalog-date 2013-01-08 10:49:23 +0100
# catalog-license lppl1.3
# catalog-version 1.2a
Name:		texlive-xpicture
Version:	1.2a
Release:	10
Summary:	Extensions of LaTeX picture drawing
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xpicture
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpicture.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpicture.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpicture.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends the facilities of the pict2e and the
curve2e packages, providing extra reference frames, conic
section curves, graphs of elementary functions and other
parametric curves.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xpicture/xpicture.sty
%doc %{_texmfdistdir}/doc/latex/xpicture/README
%doc %{_texmfdistdir}/doc/latex/xpicture/xpicture-doc.pdf
%doc %{_texmfdistdir}/doc/latex/xpicture/xpicture-doc.tex
%doc %{_texmfdistdir}/doc/latex/xpicture/xpicture.cfgxmpl
%doc %{_texmfdistdir}/doc/latex/xpicture/xpicture.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xpicture/xpicture.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19928 |21mr|texlive-xpinyin-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xpinyin
Version:	2.7
Release:	1
Summary:	Automatically add pinyin to Chinese characters
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xpinyin
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpinyin.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpinyin.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpinyin.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is written to simplify the input of Hanyu Pinyin.
Macros are provided that automatically add pinyin to Chinese
characters.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xpinyin
%doc %{_texmfdistdir}/doc/latex/xpinyin
#- source
%doc %{_texmfdistdir}/source/latex/xpinyin

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19929 |21mr|texlive-xpunctuate-1.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 26641
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-xpunctuate
Version:	1.0
Release:	3
Epoch:		1
Summary:	TeXLive xpunctuate package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpunctuate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpunctuate.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xpunctuate.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive xpunctuate package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xpunctuate/xpunctuate.sty
%doc %{_texmfdistdir}/doc/latex/xpunctuate/README
%doc %{_texmfdistdir}/doc/latex/xpunctuate/xpunctuate.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xpunctuate/xpunctuate.dtx
%doc %{_texmfdistdir}/source/latex/xpunctuate/xpunctuate.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19930 |21mr|texlive-xq-0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-xq
Version:	0.4
Release:	3
Summary:	Support for writing about xiangqi
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/xq
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xq.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xq.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package is for writing about xiangqi or chinese chess. You
can write games or parts of games and show diagrams with
special positions.

%post
    %{_sbindir}/texlive.post

%postun
    if [ $1 -eq 0 ]; then
	%{_sbindir}/texlive.post
    fi

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/*/*/xq
%{_texmfdistdir}/tex/latex/xq/xq.sty
%doc %{_texmfdistdir}/doc/fonts/xq

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19931 |21mr|texlive-xskak-1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19440
# category Package
# catalog-ctan /macros/latex/contrib/xskak
# catalog-date 2008-10-20 22:21:01 +0200
# catalog-license lppl
# catalog-version 1.3a
Name:		texlive-xskak
Version:	1.4
Release:	1
Summary:	An extension to the skak package for chess typesetting
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xskak
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xskak.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xskak.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xskak.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Xskak, as its prime function, saves information about a chess
game for later use (e.g., to loop through a game to make an
animated board). The package also extends the input that the
parsing commands can handle and offers an interface to define
and switch between indefinite levels of styles.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xskak/xskak-keys.sty
%{_texmfdistdir}/tex/latex/xskak/xskak-nagdef.sty
%{_texmfdistdir}/tex/latex/xskak/xskak.sty
%doc %{_texmfdistdir}/doc/latex/xskak/README
%doc %{_texmfdistdir}/doc/latex/xskak/README.TEXLIVE
#- source
%doc %{_texmfdistdir}/source/latex/xskak/xskak-src.dtx
%doc %{_texmfdistdir}/source/latex/xskak/xskak.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19932 |21mr|texlive-xstring-1.7c-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17614
# category Package
# catalog-ctan /macros/latex/contrib/xstring
# catalog-date 2010-03-29 17:35:44 +0200
# catalog-license lppl
# catalog-version 1.7c
Name:		texlive-xstring
Version:	1.7c
Release:	2
Summary:	String manipulation for (La)TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xstring
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xstring.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xstring.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros for manipulating strings -- testing
a string's contents, extracting substrings, substitution of
substrings and providing numbers such as string length,
position of, or number of recurrences of, a substring. The
package works equally in Plain TeX and LaTeX (though e-TeX is
always required). The strings to be processed may contain
(expandable) macros.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/xstring/xstring.sty
%{_texmfdistdir}/tex/generic/xstring/xstring.tex
%doc %{_texmfdistdir}/doc/generic/xstring/README
%doc %{_texmfdistdir}/doc/generic/xstring/xstring_doc_en.pdf
%doc %{_texmfdistdir}/doc/generic/xstring/xstring_doc_en.tex
%doc %{_texmfdistdir}/doc/generic/xstring/xstring_doc_fr.pdf
%doc %{_texmfdistdir}/doc/generic/xstring/xstring_doc_fr.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19933 |21mr|texlive-xtab-2.3f-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23347
# category Package
# catalog-ctan /macros/latex/contrib/xtab
# catalog-date 2011-07-31 16:09:03 +0200
# catalog-license lppl
# catalog-version 2.3f
Name:		texlive-xtab
Version:	2.3f
Release:	7
Summary:	Break tables across pages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xtab
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xtab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xtab.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xtab.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Xtab is an extended and somewhat improved version of
supertabular; it provides tables that break across pages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xtab/xtab.sty
%doc %{_texmfdistdir}/doc/latex/xtab/README
%doc %{_texmfdistdir}/doc/latex/xtab/xtab.pdf
#- source
%doc %{_texmfdistdir}/source/latex/xtab/xtab.dtx
%doc %{_texmfdistdir}/source/latex/xtab/xtab.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19934 |21mr|texlive-xunicode-0.981-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23897
# category Package
# catalog-ctan /macros/xetex/latex/xunicode
# catalog-date 2011-09-09 14:58:15 +0200
# catalog-license lppl1.3
# catalog-version 0.981
Name:		texlive-xunicode
Version:	0.981
Release:	7
Summary:	Generate Unicode characters from accented glyphs
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/latex/xunicode
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xunicode.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xunicode.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports XeTeX's (and other putative future similar
engines') need for Unicode characters, in a similar way to what
the fontenc does for 8-bit (and the like) fonts: convert
accent-glyph sequence to a single Unicode character for output.
The package also covers glyphs specified by packages (such as
tipa) which define many commands for single text glyphs.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/xelatex/xunicode/xunicode.sty
%doc %{_texmfdistdir}/doc/xelatex/xunicode/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19935 |21mr|texlive-xwatermark-1.5.2d-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25564
# category Package
# catalog-ctan /macros/latex/contrib/xwatermark
# catalog-date 2012-02-01 12:32:07 +0100
# catalog-license lppl1.3
# catalog-version 1.5.2a
Name:		texlive-xwatermark
Version:	1.5.2d
Release:	1
Summary:	Graphics and text watermarks on selected pages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xwatermark
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xwatermark.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xwatermark.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package extends the author's draftmark and the watermark
packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xwatermark/xwatermark.sty
%doc %{_texmfdistdir}/doc/latex/xwatermark

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19936 |21mr|texlive-xyling-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xyling
# catalog-date 2007-03-13 09:23:19 +0100
# catalog-license lppl
# catalog-version 1.1
Name:		texlive-xyling
Version:	1.1
Release:	7
Summary:	Draw syntactic trees, etc., for linguistics literature, using xy-pic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xyling
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xyling.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xyling.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The macros in this package model the construction of linguistic
tree structures as a genuinely graphical problem: they contain
two types of objects, BRANCHES and NODE LABELS, and these are
positioned relative to a GRID. It is essential that each of
these three elements is constructed independent of the other
two, and hence they can be modified without unwanted side
effects. The macros are based on the xy-pic package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xyling/xyling.sty
%doc %{_texmfdistdir}/doc/latex/xyling/README
%doc %{_texmfdistdir}/doc/latex/xyling/xyli-doc.pdf
%doc %{_texmfdistdir}/doc/latex/xyling/xyli-doc.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19937 |21mr|texlive-xymtex-5.06-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 32182
# category Package
# catalog-ctan /macros/latex/contrib/xymtex
# catalog-date 2013-10-31 09:17:33 +0100
# catalog-license lppl1.3
# catalog-version 5.06
Name:		texlive-xymtex
Version:	5.06
Release:	10
Summary:	Typesetting chemical structures
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xymtex
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xymtex.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xymtex.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xymtex.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
XyMTeX is a set of packages for drawing a wide variety of
chemical structural formulas in a way that reflects their
structure. The package provides three output modes: 'LaTeX',
'PostScript' and 'PDF'. XyMTeX's commands have a systematic set
of arguments for specifying substituents and their positions,
endocyclic double bonds, and bond patterns. In some cases there
are additional arguments for specifying hetero-atoms on the
vertices of heterocycles. It is believed that this systematic
design allows XyMTeX to operate as a practical (device-
independent) tool for use with LaTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xymtex/base/aliphat.sty
%{_texmfdistdir}/tex/latex/xymtex/base/assurelatexmode.sty
%{_texmfdistdir}/tex/latex/xymtex/base/bondcolor.sty
%{_texmfdistdir}/tex/latex/xymtex/base/carom.sty
%{_texmfdistdir}/tex/latex/xymtex/base/ccycle.sty
%{_texmfdistdir}/tex/latex/xymtex/base/chemstr.sty
%{_texmfdistdir}/tex/latex/xymtex/base/fusering.sty
%{_texmfdistdir}/tex/latex/xymtex/base/hcycle.sty
%{_texmfdistdir}/tex/latex/xymtex/base/hetarom.sty
%{_texmfdistdir}/tex/latex/xymtex/base/hetaromh.sty
%{_texmfdistdir}/tex/latex/xymtex/base/lewisstruc.sty
%{_texmfdistdir}/tex/latex/xymtex/base/locant.sty
%{_texmfdistdir}/tex/latex/xymtex/base/lowcycle.sty
%{_texmfdistdir}/tex/latex/xymtex/base/methylen.sty
%{_texmfdistdir}/tex/latex/xymtex/base/polymers.sty
%{_texmfdistdir}/tex/latex/xymtex/base/sizeredc.sty
%{_texmfdistdir}/tex/latex/xymtex/base/steroid.sty
%{_texmfdistdir}/tex/latex/xymtex/base/xymtex.sty
%{_texmfdistdir}/tex/latex/xymtex/base/xymtexpdf.sty
%{_texmfdistdir}/tex/latex/xymtex/base/xymtexps.sty
%{_texmfdistdir}/tex/latex/xymtex/chemist/assurechemist.sty
%{_texmfdistdir}/tex/latex/xymtex/chemist/chemist.sty
%{_texmfdistdir}/tex/latex/xymtex/chemist/chemtimes.sty
%{_texmfdistdir}/tex/latex/xymtex/xymtxpdf/chmst-pdf.sty
%{_texmfdistdir}/tex/latex/xymtex/xymtxpdf/xymtx-pdf.sty
%{_texmfdistdir}/tex/latex/xymtex/xymtxps/chmst-ps.sty
%{_texmfdistdir}/tex/latex/xymtex/xymtxps/xymtx-ps.sty
%doc %{_texmfdistdir}/doc/latex/xymtex/doc/README.TEXLIVE
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme402.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme402.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme403.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme403.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme404.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme404.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme405.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme405.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme406.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme406.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme500.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme500.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme500a.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/readme500a.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx402.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx402.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx403.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx403.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx404.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx404.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx405.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx405.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx406.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx406.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx500.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx500.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx500a.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/oldreadme/xymtx500a.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/readme501.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/readme501.jpn
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/xymtx501.doc
%doc %{_texmfdistdir}/doc/latex/xymtex/readme/xymtx501.jpn
#- source
%doc %{_texmfdistdir}/source/latex/xymtex/base/aliphat.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/aliphat.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/assurelatexmode.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/assurelatexmode.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/bondcolor.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/bondcolor.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/carom.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/carom.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/ccycle.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/ccycle.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/chemstr.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/chemstr.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/doins.bat
%doc %{_texmfdistdir}/source/latex/xymtex/base/fusering.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/fusering.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/hcycle.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/hcycle.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/hetarom.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/hetarom.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/hetaromh.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/hetaromh.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/lewisstruc.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/lewisstruc.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/locant.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/locant.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/lowcycle.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/lowcycle.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/methylen.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/methylen.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/polymers.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/polymers.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/putline.sed
%doc %{_texmfdistdir}/source/latex/xymtex/base/putput.bat
%doc %{_texmfdistdir}/source/latex/xymtex/base/sizeredc.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/sizeredc.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/steroid.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/steroid.ins
%doc %{_texmfdistdir}/source/latex/xymtex/base/xymtex.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/base/xymtex.ins
%doc %{_texmfdistdir}/source/latex/xymtex/chemist/assurechemist.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/chemist/assurechemist.ins
%doc %{_texmfdistdir}/source/latex/xymtex/chemist/chemist.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/chemist/chemist.ins
%doc %{_texmfdistdir}/source/latex/xymtex/chemist/chemtimes.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/chemist/chemtimes.ins
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxpdf/chmst-pdf.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxpdf/chmst-pdf.ins
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxpdf/xymtx-pdf.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxpdf/xymtx-pdf.ins
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxps/chmst-ps.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxps/chmst-ps.ins
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxps/xymtx-ps.drv
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxps/xymtx-ps.dtx
%doc %{_texmfdistdir}/source/latex/xymtex/xymtxps/xymtx-ps.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19938 |21mr|texlive-xypic-3.8.9-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31859
# category Package
# catalog-ctan /macros/generic/diagrams/xypic
# catalog-date 2013-10-06 19:55:25 +0200
# catalog-license gpl
# catalog-version 3.8.9
Name:		texlive-xypic
Epoch:		1
Version:	3.8.9
Release:	10
Summary:	Flexible diagramming macros
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/generic/diagrams/xypic
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xypic.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xypic.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for typesetting a variety of graphs and diagrams with
TeX. Xy-pic works with most formats (including LaTeX, AMS-
LaTeX, AMS-TeX, and plain TeX). The distribution includes
Michael Barr's diag package, which was previously distributed
stand-alone.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/xypic/xy389dict.pro
%{_texmfdistdir}/fonts/afm/public/xypic/xyatip10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xybsql10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xybtip10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xycirc10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xycmat10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xycmat11.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xycmat12.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xycmbt10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xycmbt11.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xycmbt12.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xydash10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyeuat10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyeuat11.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyeuat12.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyeubt10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyeubt11.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyeubt12.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyluat10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyluat11.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xyluat12.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xylubt10.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xylubt11.afm
%{_texmfdistdir}/fonts/afm/public/xypic/xylubt12.afm
%{_texmfdistdir}/fonts/enc/dvips/xypic/xycirc.enc
%{_texmfdistdir}/fonts/enc/dvips/xypic/xyd.enc
%{_texmfdistdir}/fonts/enc/dvips/xypic/xyd2.enc
%{_texmfdistdir}/fonts/map/dvips/xypic/xypic.map
%{_texmfdistdir}/fonts/source/public/xypic/xyatip.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyatip10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyatri.mf
%{_texmfdistdir}/fonts/source/public/xypic/xybsql10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xybtip.mf
%{_texmfdistdir}/fonts/source/public/xypic/xybtip10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xybtri.mf
%{_texmfdistdir}/fonts/source/public/xypic/xycirc10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xycm.mf
%{_texmfdistdir}/fonts/source/public/xypic/xycmat10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xycmat11.mf
%{_texmfdistdir}/fonts/source/public/xypic/xycmat12.mf
%{_texmfdistdir}/fonts/source/public/xypic/xycmbt10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xycmbt11.mf
%{_texmfdistdir}/fonts/source/public/xypic/xycmbt12.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyd.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyd2.mf
%{_texmfdistdir}/fonts/source/public/xypic/xydash10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyeuat10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyeuat11.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyeuat12.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyeubt10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyeubt11.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyeubt12.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyeuler.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyline10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xylu.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyluat10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyluat11.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyluat12.mf
%{_texmfdistdir}/fonts/source/public/xypic/xylubt10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xylubt11.mf
%{_texmfdistdir}/fonts/source/public/xypic/xylubt12.mf
%{_texmfdistdir}/fonts/source/public/xypic/xymisc10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xyqc10.mf
%{_texmfdistdir}/fonts/source/public/xypic/xytech.mf
%{_texmfdistdir}/fonts/tfm/public/xypic/xyatip10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xybsql10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xybtip10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xycirc10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xycmat10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xycmat11.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xycmat12.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xycmbt10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xycmbt11.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xycmbt12.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xydash10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyeuat10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyeuat11.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyeuat12.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyeubt10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyeubt11.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyeubt12.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyline10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyluat10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyluat11.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyluat12.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xylubt10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xylubt11.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xylubt12.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xymisc10.tfm
%{_texmfdistdir}/fonts/tfm/public/xypic/xyqc10.tfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyatip10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyatip10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xybsql10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xybsql10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xybtip10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xybtip10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xycirc10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xycirc10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xycmat10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xycmat10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xycmat11.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xycmat11.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xycmat12.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xycmat12.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xycmbt10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xycmbt10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xycmbt11.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xycmbt11.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xycmbt12.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xycmbt12.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xydash10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xydash10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyeuat10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyeuat10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyeuat11.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyeuat11.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyeuat12.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyeuat12.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyeubt10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyeubt10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyeubt11.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyeubt11.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyeubt12.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyeubt12.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyluat10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyluat10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyluat11.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyluat11.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xyluat12.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xyluat12.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xylubt10.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xylubt10.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xylubt11.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xylubt11.pfm
%{_texmfdistdir}/fonts/type1/public/xypic/xylubt12.pfb
%{_texmfdistdir}/fonts/type1/public/xypic/xylubt12.pfm
%{_texmfdistdir}/tex/generic/xypic/movie.cls
%{_texmfdistdir}/tex/generic/xypic/xy.sty
%{_texmfdistdir}/tex/generic/xypic/xy.tex
%{_texmfdistdir}/tex/generic/xypic/xy16textures.tex
%{_texmfdistdir}/tex/generic/xypic/xy17oztex.tex
%{_texmfdistdir}/tex/generic/xypic/xy2cell.tex
%{_texmfdistdir}/tex/generic/xypic/xyall.tex
%{_texmfdistdir}/tex/generic/xypic/xyarc.tex
%{_texmfdistdir}/tex/generic/xypic/xyarrow.tex
%{_texmfdistdir}/tex/generic/xypic/xybarr.tex
%{_texmfdistdir}/tex/generic/xypic/xycmactex.tex
%{_texmfdistdir}/tex/generic/xypic/xycmtip.tex
%{_texmfdistdir}/tex/generic/xypic/xycolor.tex
%{_texmfdistdir}/tex/generic/xypic/xycrayon.tex
%{_texmfdistdir}/tex/generic/xypic/xycurve.tex
%{_texmfdistdir}/tex/generic/xypic/xydummy.tex
%{_texmfdistdir}/tex/generic/xypic/xydvidrv.tex
%{_texmfdistdir}/tex/generic/xypic/xydvips.tex
%{_texmfdistdir}/tex/generic/xypic/xydvitops.tex
%{_texmfdistdir}/tex/generic/xypic/xyemtex.tex
%{_texmfdistdir}/tex/generic/xypic/xyframe.tex
%{_texmfdistdir}/tex/generic/xypic/xygraph.tex
%{_texmfdistdir}/tex/generic/xypic/xyidioms.tex
%{_texmfdistdir}/tex/generic/xypic/xyimport.tex
%{_texmfdistdir}/tex/generic/xypic/xyknot.tex
%{_texmfdistdir}/tex/generic/xypic/xyline.tex
%{_texmfdistdir}/tex/generic/xypic/xymacpat.xyp
%{_texmfdistdir}/tex/generic/xypic/xymatrix.tex
%{_texmfdistdir}/tex/generic/xypic/xymovie.tex
%{_texmfdistdir}/tex/generic/xypic/xynecula.tex
%{_texmfdistdir}/tex/generic/xypic/xyoztex.tex
%{_texmfdistdir}/tex/generic/xypic/xypdf-co.tex
%{_texmfdistdir}/tex/generic/xypic/xypdf-cu.tex
%{_texmfdistdir}/tex/generic/xypic/xypdf-fr.tex
%{_texmfdistdir}/tex/generic/xypic/xypdf-li.tex
%{_texmfdistdir}/tex/generic/xypic/xypdf-ro.tex
%{_texmfdistdir}/tex/generic/xypic/xypdf.tex
%{_texmfdistdir}/tex/generic/xypic/xypic.sty
%{_texmfdistdir}/tex/generic/xypic/xypic.tex
%{_texmfdistdir}/tex/generic/xypic/xypicture.tex
%{_texmfdistdir}/tex/generic/xypic/xypoly.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-c.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-col.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-f.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-l.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-pro.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-ps.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-r.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-s.tex
%{_texmfdistdir}/tex/generic/xypic/xyps-t.tex
%{_texmfdistdir}/tex/generic/xypic/xyps.tex
%{_texmfdistdir}/tex/generic/xypic/xypsdict.tex
%{_texmfdistdir}/tex/generic/xypic/xypspatt.tex
%{_texmfdistdir}/tex/generic/xypic/xyrecat.tex
%{_texmfdistdir}/tex/generic/xypic/xyrotate.tex
%{_texmfdistdir}/tex/generic/xypic/xysmart.tex
%{_texmfdistdir}/tex/generic/xypic/xytextures.tex
%{_texmfdistdir}/tex/generic/xypic/xytile.tex
%{_texmfdistdir}/tex/generic/xypic/xytips.tex
%{_texmfdistdir}/tex/generic/xypic/xytp-f.tex
%{_texmfdistdir}/tex/generic/xypic/xytpic.tex
%{_texmfdistdir}/tex/generic/xypic/xyv2.tex
%{_texmfdistdir}/tex/generic/xypic/xyweb.tex
%{_texmfdistdir}/tex/generic/xypic/xyxdvi.tex
%doc %{_texmfdistdir}/doc/generic/xypic/CATALOG
%doc %{_texmfdistdir}/doc/generic/xypic/COPYING
%doc %{_texmfdistdir}/doc/generic/xypic/FONTCOPYING
%doc %{_texmfdistdir}/doc/generic/xypic/INSTALL
%doc %{_texmfdistdir}/doc/generic/xypic/MANIFEST
%doc %{_texmfdistdir}/doc/generic/xypic/README
%doc %{_texmfdistdir}/doc/generic/xypic/TRAILER
%doc %{_texmfdistdir}/doc/generic/xypic/VERSIONS
%doc %{_texmfdistdir}/doc/generic/xypic/Xy-logo.png
%doc %{_texmfdistdir}/doc/generic/xypic/Xy-pic.html
%doc %{_texmfdistdir}/doc/generic/xypic/barrdoc.pdf
%doc %{_texmfdistdir}/doc/generic/xypic/support/dvitogif89a
%doc %{_texmfdistdir}/doc/generic/xypic/support/install-tds
%doc %{_texmfdistdir}/doc/generic/xypic/support/pnmrawtopcropwhite.c
%doc %{_texmfdistdir}/doc/generic/xypic/xy389src.tar.gz
%doc %{_texmfdistdir}/doc/generic/xypic/xyguide.pdf
%doc %{_texmfdistdir}/doc/generic/xypic/xypdf.pdf
%doc %{_texmfdistdir}/doc/generic/xypic/xyrefer.pdf
%doc %{_texmfdistdir}/doc/generic/xypic/xysource.pdf

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19939 |21mr|texlive-xypic-tut-pt-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /info/portuguese/xypic-tutorial
# catalog-date 2007-03-01 23:46:20 +0100
# catalog-license gpl
# catalog-version undef
Name:		texlive-xypic-tut-pt
Version:	20190228
Release:	1
Summary:	A tutorial for XY-pic, in Portuguese
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/info/portuguese/xypic-tutorial
License:	GPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xypic-tut-pt.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xypic-tut-pt.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg

%description
TeXLive xypic-tut-pt package.

#-----------------------------------------------------------------------
%files
%doc %{_texmfdistdir}/doc/generic/xypic-tut-pt/README
%doc %{_texmfdistdir}/doc/generic/xypic-tut-pt/grafico.eps
%doc %{_texmfdistdir}/doc/generic/xypic-tut-pt/xypic-tutorial.pdf
%doc %{_texmfdistdir}/doc/generic/xypic-tut-pt/xypictutorial.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19940 |21mr|texlive-xytree-1.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/xytree
# catalog-date 2007-03-13 09:23:19 +0100
# catalog-license lppl
# catalog-version 1.5
Name:		texlive-xytree
Version:	1.5
Release:	7
Summary:	Tree macros using XY-Pic
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/xytree
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xytree.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/xytree.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The aim of xytree is to draw linguistic syntactic trees with
ease and to support hopefully sufficient functionalities, that
the linguist may need. The package (of course) depends on the
XY-Pic package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/xytree/xytree.sty
%doc %{_texmfdistdir}/doc/latex/xytree/README
%doc %{_texmfdistdir}/doc/latex/xytree/xytree-doc-en.pdf
%doc %{_texmfdistdir}/doc/latex/xytree/xytree-doc-en.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19941 |21mr|texlive-yafoot-1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 19086
# category Package
# catalog-ctan /macros/latex/contrib/yafoot
# catalog-date 2006-12-16 10:58:44 +0100
# catalog-license lppl
# catalog-version undef
Name:		texlive-yafoot
Version:	1.1
Release:	1
Epoch:		1
Summary:	A bundle of miscellaneous footnote packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/yafoot
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yafoot.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yafoot.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yafoot.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Contains three packages: - pfnote to number footnotes per page;
- fnpos to control the position of footnotes; and - dblfnote to
make footnotes double-columned.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/yafoot/dblfnote.sty
%{_texmfdistdir}/tex/latex/yafoot/fnpos.sty
%{_texmfdistdir}/tex/latex/yafoot/pfnote.sty
%doc %{_texmfdistdir}/doc/latex/yafoot/README
%doc %{_texmfdistdir}/doc/latex/yafoot/yafoot-man.pdf
%doc %{_texmfdistdir}/doc/latex/yafoot/yafoot-man.tex
#- source
%doc %{_texmfdistdir}/source/latex/yafoot/yafoot.dtx
%doc %{_texmfdistdir}/source/latex/yafoot/yafoot.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19942 |21mr|texlive-yagusylo-1.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/yagusylo
# catalog-date 2009-03-03 08:06:14 +0100
# catalog-license lppl
# catalog-version 1.2
Name:		texlive-yagusylo
Version:	1.2
Release:	7
Summary:	A symbol loader
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/yagusylo
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yagusylo.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yagusylo.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yagusylo.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The name is by way of being an acronym for "Yet Another Grand
Unified Symbols Loader"... The package allows the user to
access a symbol without loading the package that usually
provides it; this has the advantage of avoiding the name
clashes that so commonly trouble those who load symbol-
packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/yagusylo/yagusylo.cfg
%{_texmfdistdir}/tex/latex/yagusylo/yagusylo.sty
%doc %{_texmfdistdir}/doc/latex/yagusylo/LISEZMOI
%doc %{_texmfdistdir}/doc/latex/yagusylo/README
%doc %{_texmfdistdir}/doc/latex/yagusylo/yagusylo-en.pdf
%doc %{_texmfdistdir}/doc/latex/yagusylo/yagusylo-fr.pdf
%doc %{_texmfdistdir}/doc/latex/yagusylo/yagusylo.pdf
#- source
%doc %{_texmfdistdir}/source/latex/yagusylo/Makefile
%doc %{_texmfdistdir}/source/latex/yagusylo/yagusylo.dtx
%doc %{_texmfdistdir}/source/latex/yagusylo/yagusylo.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19943 |21mr|texlive-yannisgr-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22613
# category Package
# catalog-ctan /fonts/greek/yannis
# catalog-date 2011-05-22 00:38:15 +0200
# catalog-license gpl2
# catalog-version undef
Name:		texlive-yannisgr
Version:	20190228
Release:	1
Summary:	Greek fonts by Yannis Haralambous
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/greek/yannis
License:	GPL2
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yannisgr.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yannisgr.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A family of 7-bit fonts with a code table designed for setting
modern polytonic Greek. The fonts are provided as Metafont
source; macros to produce a Greek variant of Plain TeX
(including a hyphenation table adapted to the fonts' code
table) are provided.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/source/public/yannisgr/csc_misce.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/gen_m_acc.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/greekcsc.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/it_digits.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/it_lig.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/it_lower.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/ligcsc.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/m_accent.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/m_greek.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/mrgrbf10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/mrgrrg10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/mrgrsl10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/mrgrti10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgen_acc.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgraccent.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrbase.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrbf10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgreek.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrlig.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrlower.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrpunct.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrrg10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrsc10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrsl10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrti10.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/rgrupper.mf
%{_texmfdistdir}/fonts/source/public/yannisgr/scsc.mf
%{_texmfdistdir}/fonts/tfm/public/yannisgr/mrgrbf10.tfm
%{_texmfdistdir}/fonts/tfm/public/yannisgr/mrgrrg10.tfm
%{_texmfdistdir}/fonts/tfm/public/yannisgr/mrgrsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/yannisgr/mrgrti10.tfm
%{_texmfdistdir}/fonts/tfm/public/yannisgr/rgrbf10.tfm
%{_texmfdistdir}/fonts/tfm/public/yannisgr/rgrrg10.tfm
%{_texmfdistdir}/fonts/tfm/public/yannisgr/rgrsc10.tfm
%{_texmfdistdir}/fonts/tfm/public/yannisgr/rgrsl10.tfm
%{_texmfdistdir}/fonts/tfm/public/yannisgr/rgrti10.tfm
%doc %{_texmfdistdir}/doc/fonts/yannisgr/00changes.txt
%doc %{_texmfdistdir}/doc/fonts/yannisgr/README
%doc %{_texmfdistdir}/doc/fonts/yannisgr/README.TEXLIVE
%doc %{_texmfdistdir}/doc/fonts/yannisgr/monsyl.txt
%doc %{_texmfdistdir}/doc/fonts/yannisgr/rgreekmacros.tex
%doc %{_texmfdistdir}/doc/fonts/yannisgr/rgrhyph.tex
%doc %{_texmfdistdir}/doc/fonts/yannisgr/rgrpaper.lis
%doc %{_texmfdistdir}/doc/fonts/yannisgr/rgrpaper.tex
%doc %{_texmfdistdir}/doc/fonts/yannisgr/rgrsc10.300gf
%doc %{_texmfdistdir}/doc/fonts/yannisgr/rgrsc10.lis
%doc %{_texmfdistdir}/doc/fonts/yannisgr/rgrsc10.pl
%doc %{_texmfdistdir}/doc/fonts/yannisgr/rgrtestfont.tex
%doc %{_texmfdistdir}/doc/fonts/yannisgr/tomakeformat.txt

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19944 |21mr|texlive-ydoc-0.6alpha-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 24709
# category Package
# catalog-ctan /macros/latex/contrib/ydoc
# catalog-date 2011-11-19 21:39:40 +0100
# catalog-license lppl1.3
# catalog-version 0.6alpha
Name:		texlive-ydoc
Version:	0.6alpha
Release:	7
Summary:	Macros for documentation of LaTeX classes and packages
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ydoc
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ydoc.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ydoc.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ydoc.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides macros and environments to document LaTeX
packages and classes. It is an (as yet unfinished) alternative
to the ltxdoc class and the doc or xdoc packages. The aim is to
provide a different layout and more modern styles (using the
xcolor, hyperref packages, etc.) This is an alpha release, and
should probably not (yet) be used with other packages, since
the implementation might change. Nevertheless, the author uses
it to document his own packages.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/ydoc/ydocincl.tex
%{_texmfdistdir}/tex/generic/ydoc/ydocstrip.tex
%{_texmfdistdir}/tex/latex/ydoc/ydoc-code.sty
%{_texmfdistdir}/tex/latex/ydoc/ydoc-desc.sty
%{_texmfdistdir}/tex/latex/ydoc/ydoc-doc.sty
%{_texmfdistdir}/tex/latex/ydoc/ydoc-expl.sty
%{_texmfdistdir}/tex/latex/ydoc/ydoc.cfg
%{_texmfdistdir}/tex/latex/ydoc/ydoc.cls
%{_texmfdistdir}/tex/latex/ydoc/ydoc.sty
%doc %{_texmfdistdir}/doc/latex/ydoc/README
%doc %{_texmfdistdir}/doc/latex/ydoc/ydoc.pdf
#- source
%doc %{_texmfdistdir}/source/latex/ydoc/ydoc.dtx

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19945 |21mr|texlive-york-thesis-3.6-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 23348
# category Package
# catalog-ctan /macros/latex/contrib/york-thesis
# catalog-date 2011-06-14 00:09:45 +0200
# catalog-license lppl1.3
# catalog-version 3.6
Name:		texlive-york-thesis
Version:	3.6
Release:	7
Summary:	A thesis class file for York University, Toronto
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/york-thesis
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/york-thesis.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/york-thesis.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/york-thesis.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
York Graduate Studies has again changed the requirements for
theses and dissertations. The established york-thesis class
file now implements the changes made in Spring 2005.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/york-thesis/york-thesis.cls
%doc %{_texmfdistdir}/doc/latex/york-thesis/README
%doc %{_texmfdistdir}/doc/latex/york-thesis/york-thesis-Template.tex
%doc %{_texmfdistdir}/doc/latex/york-thesis/york-thesis.el
%doc %{_texmfdistdir}/doc/latex/york-thesis/york-thesis.pdf
#- source
%doc %{_texmfdistdir}/source/latex/york-thesis/york-thesis.dtx
%doc %{_texmfdistdir}/source/latex/york-thesis/york-thesis.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19946 |21mr|texlive-youngtab-1.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17635
# category Package
# catalog-ctan /macros/latex/contrib/youngtab
# catalog-date 2010-03-30 14:47:00 +0200
# catalog-license lppl1
# catalog-version 1.1
Name:		texlive-youngtab
Version:	1.1
Release:	7
Summary:	Typeset Young-Tableaux
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/youngtab
License:	LPPL1
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/youngtab.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/youngtab.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/youngtab.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A package for typesetting Young-Tableaux, mathematical symbols
for the representations of groups, providing two macros,
\yng(1) and \young(1) to generate the whole Young-Tableaux.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/youngtab/youngtab.sty
%doc %{_texmfdistdir}/doc/latex/youngtab/README
%doc %{_texmfdistdir}/doc/latex/youngtab/makeydoc
%doc %{_texmfdistdir}/doc/latex/youngtab/makeydoc.bat
%doc %{_texmfdistdir}/doc/latex/youngtab/youngtab.el
%doc %{_texmfdistdir}/doc/latex/youngtab/youngtab.pdf
%doc %{_texmfdistdir}/doc/latex/youngtab/youngtab.tex
#- source
%doc %{_texmfdistdir}/source/latex/youngtab/youngtab.dtx
%doc %{_texmfdistdir}/source/latex/youngtab/youngtab.ins

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19947 |21mr|texlive-yplan-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-yplan
Version:	20190228
Release:	1
Summary:	Daily planner type calendar
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/yplan
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yplan.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/yplan.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
Prints two six-monthly vertical-type daily planner (i.e.,
months along the top, days downwards), with each 6-month period
fitting onto a single A4 (or US letter) sheet. The package
offers support for English, French, German, Spanish and
Portuguese. The previous scheme of annual updates has now been
abandoned, in favour of a Perl script yplan that generates a
year's planner automatically. (The last manually-generated
LaTeX file remains on the archive.).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/yplan
%{_texmfdistdir}/scripts/yplan
%doc %{_texmfdistdir}/doc/latex/yplan

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar texmf-dist/* %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19948 |21mr|texlive-zapfchan-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31835
# category Package
# catalog-ctan /fonts/urw/base35
# catalog-date 2012-06-06 22:57:48 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-zapfchan
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/zapfchan.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/zapfchan/config.uzc
%{_texmfdistdir}/fonts/afm/adobe/zapfchan/pzcmi8a.afm
%{_texmfdistdir}/fonts/afm/urw/zapfchan/uzcmi8a.afm
%{_texmfdistdir}/fonts/map/dvips/zapfchan/uzc.map
%{_texmfdistdir}/fonts/tfm/adobe/zapfchan/pzcmi.tfm
%{_texmfdistdir}/fonts/tfm/adobe/zapfchan/pzcmi7t.tfm
%{_texmfdistdir}/fonts/tfm/adobe/zapfchan/pzcmi8c.tfm
%{_texmfdistdir}/fonts/tfm/adobe/zapfchan/pzcmi8r.tfm
%{_texmfdistdir}/fonts/tfm/adobe/zapfchan/pzcmi8t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/zapfchan/uzcmi7t.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/zapfchan/uzcmi8c.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/zapfchan/uzcmi8r.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/zapfchan/uzcmi8t.tfm
%{_texmfdistdir}/fonts/type1/urw/zapfchan/uzcmi8a.pfb
%{_texmfdistdir}/fonts/type1/urw/zapfchan/uzcmi8a.pfm
%{_texmfdistdir}/fonts/vf/adobe/zapfchan/pzcmi.vf
%{_texmfdistdir}/fonts/vf/adobe/zapfchan/pzcmi7t.vf
%{_texmfdistdir}/fonts/vf/adobe/zapfchan/pzcmi8c.vf
%{_texmfdistdir}/fonts/vf/adobe/zapfchan/pzcmi8t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/zapfchan/uzcmi7t.vf
%{_texmfdistdir}/fonts/vf/urw35vf/zapfchan/uzcmi8c.vf
%{_texmfdistdir}/fonts/vf/urw35vf/zapfchan/uzcmi8t.vf
%{_texmfdistdir}/tex/latex/zapfchan/8ruzc.fd
%{_texmfdistdir}/tex/latex/zapfchan/omluzc.fd
%{_texmfdistdir}/tex/latex/zapfchan/omsuzc.fd
%{_texmfdistdir}/tex/latex/zapfchan/ot1uzc.fd
%{_texmfdistdir}/tex/latex/zapfchan/t1uzc.fd
%{_texmfdistdir}/tex/latex/zapfchan/ts1uzc.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19949 |21mr|texlive-zapfding-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 31835
# category Package
# catalog-ctan /fonts/urw/base35
# catalog-date 2012-06-06 22:57:48 +0200
# catalog-license gpl
# catalog-version undef
Name:		texlive-zapfding
Version:	20190228
Release:	1
Summary:	URW "Base 35" font pack for LaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/urw/base35
License:	GPL
Source0:	http://mirror.macomnet.net/pub/CTAN/systems/texlive/tlnet/archive/zapfding.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
A set of fonts for use as "drop-in" replacements for Adobe's
basic set, comprising: - Century Schoolbook (substituting for
Adobe's New Century Schoolbook); - Dingbats (substituting for
Adobe's Zapf Dingbats); - Nimbus Mono L (substituting for
Abobe's Courier); - Nimbus Roman No9 L (substituting for
Adobe's Times); - Nimbus Sans L (substituting for Adobe's
Helvetica); - Standard Symbols L (substituting for Adobe's
Symbol); - URW Bookman; - URW Chancery L Medium Italic
(substituting for Adobe's Zapf Chancery); - URW Gothic L Book
(substituting for Adobe's Avant Garde); and - URW Palladio L
(substituting for Adobe's Palatino).

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/dvips/zapfding/config.uzd
%{_texmfdistdir}/fonts/afm/adobe/zapfding/pzdr.afm
%{_texmfdistdir}/fonts/afm/urw/zapfding/uzdr.afm
%{_texmfdistdir}/fonts/map/dvips/zapfding/uzd.map
%{_texmfdistdir}/fonts/tfm/adobe/zapfding/pzdr.tfm
%{_texmfdistdir}/fonts/tfm/urw35vf/zapfding/uzdr.tfm
%{_texmfdistdir}/fonts/type1/urw/zapfding/uzdr.pfb
%{_texmfdistdir}/fonts/type1/urw/zapfding/uzdr.pfm
%{_texmfdistdir}/tex/latex/zapfding/uuzd.fd

#-----------------------------------------------------------------------
%prep
%setup -c -a0

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar dvips fonts tex %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19950 |21mr|texlive-zed-csp-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 17258
# category Package
# catalog-ctan /macros/latex/contrib/zed-csp
# catalog-date 2008-04-05 21:05:50 +0200
# catalog-license other-free
# catalog-version undef
Name:		texlive-zed-csp
Version:	20190228
Release:	1
Summary:	Typesetting Z and CSP format specifications
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/zed-csp
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zed-csp.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zed-csp.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package supports real-time CSP and incorporates the
functionality of Spivey's original Z package, written for LaTeX
2.09.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/zed-csp/zed-csp.sty
%doc %{_texmfdistdir}/doc/latex/zed-csp/csp2e.pdf
%doc %{_texmfdistdir}/doc/latex/zed-csp/csp2e.tex
%doc %{_texmfdistdir}/doc/latex/zed-csp/zed2e.pdf
%doc %{_texmfdistdir}/doc/latex/zed-csp/zed2e.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19951 |21mr|texlive-zhmetrics-r206-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 22207
# category Package
# catalog-ctan /fonts/metrics/zhmetrics
# catalog-date 2009-11-10 09:00:49 +0100
# catalog-license lppl
# catalog-version r206
Name:		texlive-zhmetrics
Version:	r206
Release:	7
Summary:	TFM subfont files for using Chinese fonts in 8-bit TeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/fonts/metrics/zhmetrics
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zhmetrics.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zhmetrics.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zhmetrics.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
These are metrics to use existing Chinese TrueType fonts in
workflows that use LaTeX & dvipdfmx, or pdfLaTeX. The fonts
themselves are not included in the package. Six font families
are supported: kai, song, lishu, fangsong, youyuan and hei. Two
encodings (GBK and UTF-8) are supported.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberb9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberba9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbd9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbdb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbdc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbdd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbdf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbe9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbeb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbed.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsl9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsla9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsld9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsldb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsldc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsldd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsldf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsle9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsleb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbsled.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/cyberb/cyberbslff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbk94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbk/gbksl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfs94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkfs/gbkfssl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkhei94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkhei/gbkheisl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkai94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkkai/gbkkaisl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbkli94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkli/gbklisl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksong94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbksong/gbksongsl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyou94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/gbkyou/gbkyousl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifs9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsa9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifscb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifscc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifscd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifscf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsd9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsdb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsdc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsdd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsdf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifse9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifseb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsed.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssl9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssla9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssld9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssldb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssldc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssldd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssldf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssle9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssleb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifssled.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unifs/unifsslff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/unihei9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheia9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheib9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheibb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheibc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheibd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheibe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheibf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheic9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheica.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheicb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheicc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheicd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheice.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheicf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheid9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheida.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheidb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheidc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheidd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheide.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheidf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheie9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheieb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheied.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheief.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheif9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheifa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheifb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheifc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheifd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheife.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheiff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisl9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisla9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisld9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisldb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisldc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisldd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisldf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisle9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisleb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheisled.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unihei/uniheislff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikai9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaia9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaib9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaibb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaibc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaibd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaibe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaibf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaic9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaica.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaicb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaicc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaicd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaice.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaicf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaid9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaida.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaidb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaidc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaidd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaide.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaidf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaie9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaieb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaied.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaief.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaif9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaifa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaifb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaifc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaifd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaife.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaiff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisl9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisla9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisld9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisldb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisldc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisldd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisldf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisle9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisleb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaisled.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unikai/unikaislff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unili9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilia9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilib9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilibb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilibc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilibd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilibe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilibf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilic9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilica.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilicb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilicc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilicd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilice.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilicf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilid9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilida.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilidb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilidc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilidd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilide.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilidf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilie9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilieb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilied.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilief.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilif9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilifa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilifb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilifc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilifd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilife.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/uniliff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisl9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisla9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisld9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisldb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisldc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisldd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisldf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisle9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisleb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilisled.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unili/unilislff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisong9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonga9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongd9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongdb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongdc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongdd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongdf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonge9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongeb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisonged.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsl9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsla9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsld9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsldb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsldc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsldd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsldf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsle9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsleb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongsled.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/unisong/unisongslff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyou9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoua9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoub9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoubb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoubc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoubd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoube.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoubf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoucb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoucc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoucd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoucf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoud9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoudb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoudc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoudd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoude.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoudf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoue9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoueb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoued.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoufa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoufb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoufc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoufd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyoufe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouff.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl00.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl01.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl02.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl03.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl04.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl05.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl06.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl07.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl08.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl09.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl0a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl0b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl0c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl0d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl0e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl0f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl10.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl11.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl12.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl13.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl14.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl15.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl16.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl17.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl18.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl19.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl1a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl1b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl1c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl1d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl1e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl1f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl20.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl21.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl22.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl23.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl24.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl25.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl26.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl27.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl28.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl29.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl2a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl2b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl2c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl2d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl2e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl2f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl30.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl31.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl32.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl33.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl34.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl35.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl36.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl37.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl38.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl39.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl3a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl3b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl3c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl3d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl3e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl3f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl40.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl41.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl42.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl43.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl44.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl45.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl46.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl47.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl48.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl49.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl4a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl4b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl4c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl4d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl4e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl4f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl50.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl51.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl52.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl53.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl54.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl55.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl56.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl57.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl58.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl59.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl5a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl5b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl5c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl5d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl5e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl5f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl60.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl61.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl62.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl63.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl64.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl65.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl66.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl67.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl68.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl69.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl6a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl6b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl6c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl6d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl6e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl6f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl70.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl71.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl72.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl73.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl74.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl75.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl76.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl77.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl78.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl79.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl7a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl7b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl7c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl7d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl7e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl7f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl80.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl81.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl82.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl83.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl84.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl85.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl86.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl87.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl88.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl89.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl8a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl8b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl8c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl8d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl8e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl8f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl90.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl91.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl92.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl93.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl94.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl95.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl96.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl97.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl98.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl99.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl9a.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl9b.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl9c.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl9d.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl9e.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousl9f.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousla9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslaa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslab.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslac.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslad.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslae.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslaf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslb9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslba.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslbb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslbc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslbd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslbe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslbf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslc9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslca.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslcb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslcc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslcd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslce.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslcf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousld9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslda.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousldb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousldc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousldd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslde.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousldf.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousle9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslea.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousleb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslec.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyousled.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslee.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslef.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf0.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf1.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf2.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf3.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf4.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf5.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf6.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf7.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf8.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslf9.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslfa.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslfb.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslfc.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslfd.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslfe.tfm
%{_texmfdistdir}/fonts/tfm/zhmetrics/uniyou/uniyouslff.tfm
%{_texmfdistdir}/tex/generic/zhmetrics/zhwinfonts.tex
%{_texmfdistdir}/tex/latex/zhmetrics/c19fs.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19hei.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19kai.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19li.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19you.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19zhfs.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19zhhei.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19zhkai.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19zhli.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19zhsong.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c19zhyou.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70fs.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70hei.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70kai.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70li.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70you.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70zhfs.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70zhhei.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70zhkai.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70zhli.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70zhsong.fd
%{_texmfdistdir}/tex/latex/zhmetrics/c70zhyou.fd
%doc %{_texmfdistdir}/doc/fonts/zhmetrics/README
#- source
%doc %{_texmfdistdir}/source/fonts/zhmetrics/CTeXFonts.lua
%doc %{_texmfdistdir}/source/fonts/zhmetrics/ttfonts.map
%doc %{_texmfdistdir}/source/fonts/zhmetrics/zhfd.lua
%doc %{_texmfdistdir}/source/fonts/zhmetrics/zhtfm.lua

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar fonts tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19952 |21mr|texlive-zhnumber-2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-zhnumber
Version:	2.7
Release:	1
Summary:	Typeset Chinese representations of numbers
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/zhnumber
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zhnumber.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zhnumber.doc.tar.xz
Source2:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zhnumber.source.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package provides commands to typeset Chinese
representations of numbers. The main difference between this
package and CJKnumb is that the commands provided are
expandable in the 'proper' way.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/zhnumber
%doc %{_texmfdistdir}/doc/latex/zhnumber
#- source
%doc %{_texmfdistdir}/source/latex/zhnumber

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1 -a2

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc source %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19953 |21mr|texlive-zhspacing-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 25644
# category Package
# catalog-ctan /macros/xetex/generic/zhspacing
# catalog-date 2012-03-14 18:58:06 +0100
# catalog-license lppl
# catalog-version 2012/03/14
Name:		texlive-zhspacing
Version:	20190228
Release:	1
Summary:	Spacing for mixed CJK-English documents in XeTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/xetex/generic/zhspacing
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zhspacing.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zhspacing.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package manages spacing in a CJK document; between
consecutive Chinese letters, spaces are ignored, but a
consistent space is inserted between Chinese text and English
(or mathematics). The package may be used by any document
format under XeTeX.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/generic/zhspacing
%{_texmfdistdir}/tex/context/third/zhspacing
%{_texmfdistdir}/tex/xelatex/zhspacing
%doc %{_texmfdistdir}/doc/generic/zhspacing

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19954 |21mr|texlive-ziffer-2.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/ziffer
# catalog-date 2008-08-24 14:22:28 +0200
# catalog-license lppl
# catalog-version 2.1
Name:		texlive-ziffer
Version:	2.1
Release:	7
Summary:	Conversion of punctuation in maths mode
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/ziffer
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ziffer.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/ziffer.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package modifies the behaviour of characters in maths mode
so that: '.' is used as a one-thousand separator (as is common
in Germany) ',' is used as a decimal separator (as is common in
Germany) '--' is represented with spacing as appropriate to
such constructs as '1.000,--'. These conversions may be
switched on and off.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/ziffer/ziffer.sty
%doc %{_texmfdistdir}/doc/latex/ziffer/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19955 |21mr|texlive-zwgetfdate-20190228-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 15878
# category Package
# catalog-ctan /macros/latex/contrib/zwgetfdate
# catalog-date 2008-08-24 14:29:08 +0200
# catalog-license lppl1.3
# catalog-version undef
Name:		texlive-zwgetfdate
Version:	20190228
Release:	1
Summary:	Get package or file date
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/zwgetfdate
License:	LPPL1.3
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zwgetfdate.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zwgetfdate.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
The package enables to fetch dates of used packages and files
and provide such information in macros. It is useful for
automatic obtaining the date of a package being documented,
mainly if you do not use doc/docstrip.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/zwgetfdate
%doc %{_texmfdistdir}/doc/latex/zwgetfdate

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19956 |21mr|texlive-zwpagelayout-1.4d-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28846
# category Package
# catalog-ctan /macros/latex/contrib/zwpagelayout
# catalog-date 2013-01-15 09:51:57 +0100
# catalog-license lppl
# catalog-version 1.4c
Name:		texlive-zwpagelayout
Epoch:		1
Version:	1.4d
Release:	2
Summary:	Page layout and crop-marks
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/macros/latex/contrib/zwpagelayout
License:	LPPL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zwpagelayout.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zwpagelayout.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
This package was developed as a typographers' toolbox offering
important basic features for everyday work. It allows setting
the paper size and the page layout; it can print crop marks;
and it can reflect pages both horizontally and vertically. The
package facilities work with TeX + dvips or (x)dvipdfm(x), and
with pdfTeX.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/zwpagelayout/zwpagelayout.sty
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/License.txt
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/LoremIpsumDolor.tex
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/README
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/adjustfoot.pdf
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/adjustfoot.tex
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/adjusthead.pdf
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/adjusthead.tex
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/coversample.pdf
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/coversample.tex
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/zwpagelayout.pdf
%doc %{_texmfdistdir}/doc/latex/zwpagelayout/zwpagelayout.tex

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19957 |21mr|texlive-zxjafbfont-0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# revision 28539
# category Package
# catalog-ctan undef
# catalog-date undef
# catalog-license undef
# catalog-version undef
Name:		texlive-zxjafbfont
Version:	0.2
Release:	2
Epoch:		1
Summary:	TeXLive zxjafbfont package
Group:		Publishing
URL:		http://tug.org/texlive
License:	http://www.tug.org/texlive/LICENSE.TL
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zxjafbfont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zxjafbfont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive zxjafbfont package.

#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/zxjafbfont/zxjafbfont.sty
%doc %{_texmfdistdir}/doc/latex/zxjafbfont/LICENSE
%doc %{_texmfdistdir}/doc/latex/zxjafbfont/README

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19958 |21mr|texlive-zxjafont-0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-zxjafont
Version:	0.4
Release:	1
Summary:	Set up Japanese font families for XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/zxjafont
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zxjafont.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zxjafont.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive zxjafont package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/zxjafont
%doc %{_texmfdistdir}/doc/latex/zxjafont

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19959 |21mr|texlive-zxjatype-0.6c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		texlive-zxjatype
Version:	0.6c
Release:	1
Summary:	Standard conforming typesetting of Japanese, for XeLaTeX
Group:		Publishing
URL:		http://www.ctan.org/tex-archive/language/japanese/zxjatype
License:	OTHER-FREE
Source0:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zxjatype.tar.xz
Source1:	http://mirrors.ctan.org/systems/texlive/tlnet/archive/zxjatype.doc.tar.xz
BuildArch:	noarch
BuildRequires:	texlive-tlpkg
Requires(pre):	texlive-tlpkg
Requires(post):	texlive-kpathsea

%description
TeXLive zxjatype package.


#-----------------------------------------------------------------------
%files
%{_texmfdistdir}/tex/latex/zxjatype
%doc %{_texmfdistdir}/doc/latex/zxjatype

#-----------------------------------------------------------------------
%prep
%setup -c -a0 -a1

%build

%install
mkdir -p %{buildroot}%{_texmfdistdir}
cp -fpar tex doc %{buildroot}%{_texmfdistdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19960 |21mr|tftp-5.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The client and server for the Trivial File Transfer Protocol (TFTP)
Name:		tftp
Version:	5.2
Release:	14
License:	BSD
Group:		System/Servers
URL:		http://www.kernel.org/pub/software/network/tftp/
Source0:	http://www.kernel.org/pub/software/network/tftp/tftp-hpa/tftp-hpa-%{version}.tar.xz
Source1:	tftp.socket
Source2:	tftp.service
Patch0:		tftp-0.40-remap.patch
Patch2:		tftp-hpa-0.39-tzfix.patch
Patch3:		tftp-0.42-tftpboot.patch
Patch4:		tftp-0.49-chk_retcodes.patch
Patch5:		tftp-hpa-0.49-fortify-strcpy-crash.patch
Patch6:		tftp-0.49-cmd_arg.patch
Patch7:		tftp-hpa-0.49-stats.patch
Patch8:		tftp-hpa-5.2-pktinfo.patch
Patch9:		tftp-doc.patch
Patch10:	tftp-enhanced-logging.patch
Patch11:	tftp-hpa-5.2-gcc10.patch
BuildRequires:	tcp_wrappers-devel
BuildRequires:	readline-devel

%description
The Trivial File Transfer Protocol (TFTP) is normally used only for booting
diskless workstations. The tftp package provides the user interface for TFTP,
which allows users to transfer files to and from a remote machine. This
program, and TFTP, provide very little security, and should not be enabled
unless it is expressly needed.

%files
%doc README README.security CHANGES
%{_bindir}/tftp
%{_mandir}/man1/*
#--------------------------------------------------------------------------
%package	server
Summary:	The server for the Trivial File Transfer Protocol (TFTP)
Group:		System/Servers

%description	server
The Trivial File Transfer Protocol (TFTP) is normally used only for booting
diskless workstations.  The tftp-server package provides the server for TFTP,
which allows users to transfer files to and from a remote machine. TFTP
provides very little security, and should not be enabled unless it is
expressly needed. The TFTP server is run from %{_sysconfdir}/xinetd.d/tftp,
and is disabled by default on a Mandriva Linux systems.

%files server
%doc README README.security CHANGES
%dir %{_localstatedir}/lib/tftpboot
%{_sbindir}/in.tftpd
%{_mandir}/man8/*
%{_unitdir}/*

%post server
%systemd_post tftp.socket

%preun server
%systemd_preun tftp.socket

%postun server
%systemd_postun_with_restart tftp.socket

#--------------------------------------------------------------------------

%prep
%autosetup -p1  -n tftp-hpa-%{version}
autoreconf

%build
%serverbuild

%configure

%make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man{1,8}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_localstatedir}/lib/tftpboot
mkdir -p %{buildroot}%{_unitdir}

make INSTALLROOT=%{buildroot} SBINDIR=%{_sbindir} MANDIR=%{_mandir} INSTALL='install -p' install
install -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}
install -p -m 644 %{SOURCE2} %{buildroot}%{_unitdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19961 |21mr|thin-provisioning-tools-0.9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A suite of tools for manipulating the metadata of the dm-thin device-mapper target
Name:		thin-provisioning-tools
Version:	0.9.0
Release:	1
License:	GPLv3+
Group:		System/Base
Url:		https://github.com/jthornber/thin-provisioning-tools
Source0:	https://github.com/jthornber/thin-provisioning-tools/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		device-mapper-persistent-data-avoid-strip.patch
Patch100:	e2k-fix-build.patch

BuildRequires: /usr/bin/g++
BuildRequires: boost-devel
BuildRequires: libaio-devel
BuildRequires: pkgconfig(expat)

# Compat with RH/Fedora
Provides:	device-mapper-persistent-data = %{EVRD}

%description
thin-provisioning-tools contains check,dump,restore,repair,rmap
and metadata_size tools to manage device-mapper thin provisioning
target metadata devices; cache check,dump,metadata_size,restore
and repair tools to manage device-mapper cache metadata devices
are included and era check, dump, restore and invalidate to manage
snapshot eras

%files
%doc COPYING CHANGES README.md

%{_sbindir}/pdata_tools
%{_sbindir}/cache_check
%{_sbindir}/cache_dump
%{_sbindir}/cache_metadata_size
%{_sbindir}/cache_repair
%{_sbindir}/cache_restore
%{_sbindir}/cache_writeback
%{_sbindir}/era_check
%{_sbindir}/era_dump
%{_sbindir}/era_invalidate
%{_sbindir}/era_restore
%{_sbindir}/thin_check
%{_sbindir}/thin_delta
%{_sbindir}/thin_dump
%{_sbindir}/thin_ls
%{_sbindir}/thin_metadata_size
%{_sbindir}/thin_repair
%{_sbindir}/thin_restore
%{_sbindir}/thin_rmap
%{_sbindir}/thin_trim

%{_mandir}/man8/cache_check.8*
%{_mandir}/man8/cache_dump.8*
%{_mandir}/man8/cache_metadata_size.8*
%{_mandir}/man8/cache_repair.8*
%{_mandir}/man8/cache_restore.8*
%{_mandir}/man8/cache_writeback.8*
%{_mandir}/man8/era_check.8*
%{_mandir}/man8/era_dump.8*
%{_mandir}/man8/era_invalidate.8*
%{_mandir}/man8/era_restore.8*
%{_mandir}/man8/thin_check.8*
%{_mandir}/man8/thin_delta.8*
%{_mandir}/man8/thin_dump.8*
%{_mandir}/man8/thin_ls.8*
%{_mandir}/man8/thin_metadata_size.8*
%{_mandir}/man8/thin_repair.8*
%{_mandir}/man8/thin_restore.8*
%{_mandir}/man8/thin_rmap.8*
%{_mandir}/man8/thin_trim.8*

#------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1 -M99
%ifarch %{e2k}
%patch100 -p1
%endif

%build
autoreconf -if
%configure --with-optimisation=""
# "V=1" from %%make confuses this Makefile
%make V=

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19962 |21mr|threadweaver-5.116.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fw_version %(echo %{version} | cut -d. -f1,2)

Summary:	KDE Frameworks 5 high-level multithreading framework
Name:		threadweaver
Version:	5.116.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Source0:	https://download.kde.org/stable/frameworks/%{fw_version}/%{name}-%{version}.tar.xz
Url:		https://www.kde.org/
BuildRequires:	extra-cmake-modules
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)

%description
KDE Frameworks 5 high-level multithreading framework.

#--------------------------------------------------------------------

%define kf5threadweaver_major 5
%define libkf5threadweaver %mklibname kf5threadweaver %{kf5threadweaver_major}

%package -n %{libkf5threadweaver}
Summary:	KDE Frameworks 5 high-level multithreading framework shared library
Group:		System/Libraries

%description -n %{libkf5threadweaver}
KDE Frameworks 5 high-level multithreading framework shared library.

%files -n %{libkf5threadweaver}
%{_kde5_libdir}/libKF5ThreadWeaver.so.%{kf5threadweaver_major}*

#--------------------------------------------------------------------

%define devkf5threadweaver %mklibname kf5threadweaver -d

%package -n %{devkf5threadweaver}
Summary:	Development files for KDE Frameworks 5 ThreadWeaver
Group:		Development/KDE and Qt
Requires:	%{libkf5threadweaver} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	kf5threadweaver-devel = %{version}

%description -n %{devkf5threadweaver}
This package contains header files needed if you wish to build applications
based on %{name}.

%files -n %{devkf5threadweaver}
%{_kde5_includedir}/KF5/ThreadWeaver
%{_kde5_libdir}/cmake/KF5ThreadWeaver
%{_kde5_libdir}/libKF5ThreadWeaver.so
%{_kde5_mkspecsdir}/*.pri

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19963 |21mr|thredds-4.6.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          thredds
Version:       4.6.2
Release:       11
Summary:       Thematic Realtime Environmental Distributed Data Services (TDS)
# GPLv3: opendap/src/main/java/opendap/dap/parsers/DapParser.java
# LGPLv3: opendap/src/main/java/opendap/servlet/AsciiWriter.java
#         visad/src/main/java/ucar/nc2/iosp/mcidas/V5DStruct.java
#         grib/src/main/java/ucar/jpeg
# ASL: tds/src/main/java/thredds/servlet/URLEncoder.java
License:       ASL 2.0 and BSD
URL:           http://www.unidata.ucar.edu/software/tds/
# sh thredds-create-tarball.sh < VERSION >
Source0:       %{name}-%{version}-clean.tar.xz
Source1:       %{name}-create-tarball.sh

Patch0:        thredds-4.6.2-use-proper-system-environment-variables.patch
# jj2000 is non free:
# https://www.redhat.com/archives/fedora-legal-list/2008-December/msg00004.html
Patch1:        thredds-4.6.2-remove-jj2000-support.patch

# Support for log4j 2.5
Patch2:        thredds-4.6.2-log4j.patch

# Deprecated Pointer.getString method fix
Patch3:        0001-deprecated-method-fix.patch
Patch4:        new-class-fix.patch

BuildRequires: bison >= 3.0
BuildRequires: maven-local
BuildRequires: mvn(com.beust:jcommander)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.google.protobuf:protobuf-java)
BuildRequires: mvn(com.sleepycat:je)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java.dev.jna:jna)
BuildRequires: mvn(net.jcip:jcip-annotations)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.apache.logging.log4j:log4j-api)
BuildRequires: mvn(org.apache.logging.log4j:log4j-core)
BuildRequires: mvn(org.apache.logging.log4j:log4j-slf4j-impl)
BuildRequires: mvn(org.apache.maven.plugins:maven-surefire-report-plugin)
BuildRequires: mvn(org.jdom:jdom2)
BuildRequires: mvn(org.jsoup:jsoup)
BuildRequires: mvn(org.quartz-scheduler.internal:quartz-core)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-jdk14)
BuildRequires: mvn(org.springframework:spring-context)
BuildRequires: mvn(org.springframework:spring-core)
BuildRequires: mvn(org.springframework:spring-web)
BuildRequires: mvn(org.jruby.jcodings:jcodings)
# TODO: opendap, tds, and ... modules
%if 0
# https://github.com/coverity/coverity-security-library
BuildRequires: mvn(com.coverity.security:coverity-escapers:1.1.1)
# https://github.com/eclipsesource/restfuse
BuildRequires: mvn(com.restfuse:com.eclipsesource.restfuse:1.0.0)
BuildRequires: mvn(EDS:threddsIso)
BuildRequires: mvn(org.bounce:bounce)
BuildRequires: mvn(org.imgscalr:imgscalr-lib)
# https://github.com/52North/OX-Framework/
BuildRequires: mvn(org.n52.sensorweb:52n-oxf-xmlbeans)
# https://github.com/52North/common-xml/
BuildRequires: mvn(org.n52.sensorweb:52n-xml-gml-v321)
BuildRequires: mvn(org.n52.sensorweb:52n-xml-om-v20)
BuildRequires: mvn(org.n52.sensorweb:52n-xml-sampling-v20)
BuildRequires: mvn(org.n52.sensorweb:52n-xml-sweCommon-v20)
BuildRequires: mvn(org.n52.sensorweb:52n-xml-waterML-v20)
BuildRequires: mvn(org.opengis:geoapi-pending)
# https://github.com/Unidata/ncWMS/
BuildRequires: mvn(uk.ac.rdg.resc:ncwms)
# NON free
BuildRequires: mvn(edu.ucar:jj2000)
BuildRequires: mvn(edu.wisc.ssec:visad)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The THREDDS (Thematic Realtime Environmental Distributed
Data Services) project is developing middle-ware to bridge the
gap between data providers and data users. The goal is to
simplify the discovery and use of scientific data and to allow
scientific publications and educational materials to reference
scientific data. The mission of THREDDS is for students,
educators and researchers to publish, contribute, find, and
interact with data relating to the Earth system in a convenient,
effective, and integrated fashion. Just as the World Wide Web and
digital-library technologies have simplified the process of
publishing and accessing multimedia documents, THREDDS is building
infrastructure needed for publishing and accessing scientific data
in a similarly convenient fashion.

%package -n netcdf-java
Summary:       Java interface to NetCDF files

%description -n netcdf-java
The NetCDF-Java Library is a Java interface to NetCDF files,
as well as to many other types of scientific data formats.

%package bufr
Summary:       BUFR IOSP

%description bufr
Reading BUFR files with the NetCDF-java library.

%package clcommon
Summary:       Client-side common library

%description clcommon
A collection of utilities needed client-side,
including java.awt dependencies and assorted IOSPs.

%package dap
Summary:       THREDDS DAP4 Protocol Services

%description dap
THREDDS DAP4 Protocol Services.

%package grib
Summary:       GRIB IOSP and Feature Collection

%description grib
Decoder for the GRIB format.

%package httpservices
Summary:       THREDDS HttpClient Wrappers

%description httpservices
THREDDS HttpClient Wrappers.

%package netcdf
Summary:       THREDDS netCDF-4 IOSP JNI connection to C library

%description netcdf
THREDDS netCDF-4 IOSP JNI connection to C library.

%package tdcommon
Summary:       THREDDS Server Common Utilities

%description tdcommon
THREDDS Server Common Utilities.

%package tdm
Summary:       THREDDS Data Manager (TDM)

%description tdm
THREDDS Data Manager (TDM).

%package -n java-udunits
Summary:       Java package for decoding and encoding unit specifications

%description -n java-udunits
The ucar.units Java package is for decoding and encoding
formatted unit specifications (e.g. "m/s"), converting numeric values
between compatible units (e.g. between "m/s" and "knot"), and for
performing arithmetic operations on units (e.g. dividing one unit by
another, raising a unit to a power).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
rm -rf grib/src/main/java/ucar/nc2/grib/grib2/Grib2JpegDecoder.java
%patch2 -p1
%patch3 -p1
%if %{mdvver} > 201905
%patch4 -p1
%endif

sed -i 's/\r//' cdm/CHANGES.txt LICENSE.txt

# Disable unavailable build deps
%pom_disable_module cdm-test
%pom_disable_module dap4/d4tests
%pom_disable_module dap4/d4tswar
%pom_disable_module it
%pom_disable_module ncIdv
# thredds use customized opendap == 0.0.7 http://www.opendap.org/
%pom_disable_module opendap
%pom_disable_module opendap/dtswar
%pom_disable_module tds
%pom_disable_module ui
%pom_disable_module visad
%pom_disable_module waterml

%pom_remove_dep org.n52.sensorweb:
# waterml visadCdm opendap clcommon

#%% pom_xpath_set -r "pom:plugin[pom:artifactId = 'maven-jar-plugin']/pom:configuration/pom:archive/pom:manifest/pom:addClasspath" false

# fix for httpcore-4.4.5
sed -i '/org.apache.http.annotation/d' \
 httpservices/src/main/java/ucar/httpservices/HTTPAuthScope.java

%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-shade-plugin
%pom_xpath_set "pom:properties/pom:org.quartz-scheduler.version" 2.2.1
%pom_change_dep -r org.quartz-scheduler:quartz org.quartz-scheduler.internal:quartz-core

%mvn_package ':d4*' dap

%mvn_package ':cdm::tests:' cdm 
%mvn_alias :cdm :netcdf

%build
# Regnerate java source code
(
 cd dap4/grammars
 make bison
)
%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{name}-parent
%doc README.md
%license LICENSE.txt

%files -n netcdf-java -f .mfiles-cdm
%doc cdm/CHANGES.txt
%license LICENSE.txt

%files bufr -f .mfiles-bufr
%license LICENSE.txt

%files clcommon -f .mfiles-clcommon
%license LICENSE.txt

%files dap -f .mfiles-dap
%license LICENSE.txt

%files grib -f .mfiles-grib
%license LICENSE.txt

%files httpservices -f .mfiles-httpservices
%license LICENSE.txt

%files netcdf -f .mfiles-netcdf4
%license LICENSE.txt

%files tdcommon -f .mfiles-tdcommon
%license LICENSE.txt

%files tdm -f .mfiles-tdm
%license LICENSE.txt

%files -n java-udunits -f .mfiles-udunits
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19964 |21mr|thrift-0.19.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%{?perl_default_filter}
%global __provides_exclude_from ^(%{python3_sitearch}/.*\\.so)$

# Java module not build with rosa old java-stack (need update gradle)
# We build old version thrift (https://abf.io/import/thrift-java)
# and package thrift-java for htrace
%global want_java 0

# Thrift's GO support doesn't build under Fedora
%global want_golang 0
%global golang_configure --without-go

# ROSA: w/a problems with interlinking
%define _disable_ld_no_undefined 1

%define devname %mklibname %{name} -d

# Thrift's Lua support has not yet been worked on
%global want_lua 0
%global lua_configure --without-lua

# NOTE: thrift versions their libraries by package version, so each version
# change is a SONAME change and dependencies need to be rebuilt
Name:    thrift
Version: 0.19.0
Release: 2
Summary: Software framework for cross-language services development
Group:   System/Libraries
# Parts of the source are used under the BSD and zlib licenses, but
# these are OK for inclusion in an Apache 2.0-licensed whole:
# https://www.apache.org/legal/3party.html

# Here's the breakdown:
# ./lib/py/compat/win32/stdint.h is 2-clause BSD
# ./compiler/cpp/src/md5.[ch] are zlib
License: ASL 2.0 and BSD and zlib
URL:     https://thrift.apache.org/

Source0: https://archive.apache.org/dist/%{name}/%{version}/%{name}-%{version}.tar.gz

Source1: https://repo1.maven.org/maven2/org/apache/thrift/lib%{name}/%{version}/lib%{name}-%{version}.pom
Source4: %{name}.rpmlintrc

Patch1: thrift-install-path.patch
# fix configure.ac insistence on using /usr/local/lib for JAVA_PREFIX
Patch2: configure-java-prefix.patch
Patch3: thrift-openssl.patch

# CVE-2018-11798 fixed

# BuildRequires for language-specific bindings are listed under these
# subpackages, to facilitate enabling or disabling individual language
# bindings in the future

%if 0%{?want_java} > 0
BuildRequires: ant >= 1.7
%endif
BuildRequires: cmake
BuildRequires: bison
BuildRequires: boost-devel
BuildRequires: boost-static-devel
BuildRequires: flex
BuildRequires: gcc-c++
BuildRequires: glib2-devel
BuildRequires: libevent-devel
BuildRequires: libstdc++-devel
BuildRequires: libtool
BuildRequires: openssl-devel
BuildRequires: qt5-devel
BuildRequires: texlive
BuildRequires: zlib-devel

%if 0%{?want_golang} > 0
BuildRequires: golang
Requires: golang
%endif


%description

The Apache Thrift software framework for cross-language services
development combines a software stack with a code generation engine to
build services that work efficiently and seamlessly between C++, Java,
Python, and other languages.

%files
%doc LICENSE NOTICE
%{_bindir}/thrift
%{_libdir}/libthrift.so.%{version}
%{_libdir}/libthriftz.so.%{version}
%{_libdir}/libthriftnb.so.%{version}

#-----------------------------------------------------
%package -n %{devname}
Summary: Development files for %{name}
Requires: %{name}%{?_isa} = %{EVRD}
Requires: pkgconfig
Requires: boost-devel
# compat with Fedora
Provides: %{name}-devel

%description -n %{devname}
This package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/thrift
%{_libdir}/*.so
%{_libdir}/pkgconfig/thrift-z.pc
%{_libdir}/pkgconfig/thrift-qt5.pc
%{_libdir}/pkgconfig/thrift-nb.pc
%{_libdir}/pkgconfig/thrift.pc
%{_libdir}/cmake/thrift
%doc LICENSE NOTICE

#-----------------------------------------------------

%package        qt
Summary:        Qt support for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    qt
The %{name}-qt package contains Qt bindings for %{name}.

%files qt
%{_libdir}/libthriftqt5.so.%{version}

#-----------------------------------------------------

%package        glib
Summary:        GLib support for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description    glib
The %{name}-qt package contains GLib bindings for %{name}.

%files glib
%{_libdir}/libthrift_c_glib*.so.*

#-----------------------------------------------------

%package -n python3-%{name}
Summary: Python 3 support for %{name}
BuildRequires: python3-devel
Requires: %{name}%{?_isa} = %{EVRD}
Requires: python3
Obsoletes: python-%{name} < 0.10.0-1%{?dist}
Obsoletes: python2-%{name} < 0.10.0-14%{?dist}

%description -n python3-%{name}
The python3-%{name} package contains Python bindings for %{name}.

%files -n python3-%{name}
%{python3_sitearch}/%{name}
%{python3_sitearch}/%{name}-%{version}-py%{python3_version}.egg-info
%doc LICENSE NOTICE

#-----------------------------------------------------
%package -n perl-%{name}
Summary: Perl support for %{name}
Provides: perl(Thrift) = %{version}-%{release}
BuildRequires: perl(Bit::Vector)
BuildRequires: perl(Class::Accessor)
BuildRequires: perl(ExtUtils::MakeMaker)
BuildRequires: perl-generators
Requires: perl(Bit::Vector)
Requires: perl(Encode)
Requires: perl(HTTP::Request)
Requires: perl(IO::Select)
Requires: perl(IO::Socket::INET)
Requires: perl(IO::String)
Requires: perl(LWP::UserAgent)
Requires: perl(POSIX)
Requires: perl(base)
Requires: perl(constant)
Requires: perl(strict)
Requires: perl(utf8)
Requires: perl(warnings)
# thrift improperly packages some components in files with names different
# than the package they contain
Provides: perl(Thrift::Exception)
Provides: perl(Thrift::MessageType)
Provides: perl(Thrift::Type)
BuildArch: noarch

%description -n perl-%{name}
The perl-%{name} package contains Perl bindings for %{name}.

%files -n perl-%{name}
%{perl_vendorlib}/Thrift
%{perl_vendorlib}/Thrift.pm
%doc LICENSE NOTICE
#-----------------------------------------------------

%if 0%{?want_java} > 0
%package -n lib%{name}-javadoc
Summary: API documentation for java-%{name}
Requires: lib%{name}-java = %{version}-%{release}
BuildArch: noarch

%description -n lib%{name}-javadoc 
The lib%{name}-javadoc package contains API documentation for the
Java bindings for %{name}.

%files -n lib%{name}-javadoc
%{_javadocdir}/%{name}
%doc LICENSE NOTICE

#-----------------------------------------------------

%package -n lib%{name}-java
Summary: Java support for %{name}

BuildRequires: apache-commons-codec
BuildRequires: apache-commons-lang
BuildRequires: apache-commons-logging
BuildRequires: gradle-local
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-core
BuildRequires: java-devel
BuildRequires: javapackages-tools
BuildRequires: javapackages-local
BuildRequires: junit
BuildRequires: log4j
BuildRequires: slf4j
# javax.servlet-api 3.1.0 is provided by glassfish-servlet-api
BuildRequires: mvn(javax.servlet:javax.servlet-api) = 3.1.0

Requires: java-headless >= 1:1.6.0
Requires: javapackages-tools
Requires: mvn(org.slf4j:slf4j-api)
Requires: mvn(commons-lang:commons-lang)
Requires: mvn(org.apache.httpcomponents:httpclient)
Requires: mvn(org.apache.httpcomponents:httpcore)
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description -n lib%{name}-java
The lib%{name}-java package contains Java bindings for %{name}.


%files -n lib%{name}-java -f .mfiles
%doc LICENSE NOTICE
%endif

#-----------------------------------------------------

%prep
%autosetup -p1

# avoid spurious executable permissions in debuginfo package
find . -name \*.cpp -or -name \*.cc -or -name \*.h | xargs -r chmod 644

# work around linking issues
echo 'libthrift_c_glib_la_LIBADD = $(GLIB_LIBS) $(GOBJECT_LIBS) -L../cpp/.libs ' >> lib/c_glib/Makefile.am
echo 'libthriftqt5_la_LIBADD = $(QT_LIBS) -lthrift -L.libs' >> lib/cpp/Makefile.am
echo 'libthriftz_la_LIBADD = $(ZLIB_LIBS) -lthrift -L.libs' >> lib/cpp/Makefile.am
echo 'EXTRA_libthriftqt5_la_DEPENDENCIES = libthrift.la' >> lib/cpp/Makefile.am
echo 'EXTRA_libthriftz_la_DEPENDENCIES = libthrift.la' >> lib/cpp/Makefile.am

# fix broken upstream check for ant version; we enforce this with BuildRequires, so no need to check here
sed -i 's|ANT_VALID=.*|ANT_VALID=1|' aclocal/ax_javac_and_java.m4

# explicitly set python3
shopt -s globstar
sed -i -E 's@^(#!.*/env) *python *$@\1 python3@' **/*.py

%build
export PY_PREFIX=%{_prefix}
export PERL_PREFIX=%{_prefix}
export JAVA_PREFIX=%{_javadir}
export GLIB_LIBS=$(pkg-config --libs glib-2.0)
export GLIB_CFLAGS=$(pkg-config --cflags glib-2.0)
export GOBJECT_LIBS=$(pkg-config --libs gobject-2.0)
export GOBJECT_CFLAGS=$(pkg-config --cflags gobject-2.0)

find %{_builddir} -name rebar -exec rm -f '{}' \;
find . -name Makefile\* -exec sed -i -e 's/[.][/]rebar/rebar/g' {} \;

# install javadocs in proper places
sed -i 's|-Dinstall.javadoc.path=$(DESTDIR)$(docdir)/java|-Dinstall.javadoc.path=$(DESTDIR)%{_javadocdir}/%{name}|' lib/java/Makefile.*

# build a jar without a version number
#sed -i 's|${thrift.artifactid}-${version}|${thrift.artifactid}|' lib/java/build.xml

# use unversioned doc dirs where appropriate (via _pkgdocdir macro)
export PYTHON=%{_bindir}/python3

%cmake \
	-DBUILD_NODEJS=OFF \
	-DBUILD_JAVASCRIPT=OFF \
%if 0%{?want_java} > 0
	-DBUILD_JAVA=ON \
%else
	-DBUILD_JAVA=OFF \
%endif
	-DBUILD_PYTHON=OFF

# build python support
pushd ../lib/py
%py3_build
popd

# build perl support
pushd ../lib/perl
perl Makefile.PL INSTALLDIRS=vendor
%make
popd

%make

%install
%make_install -C build

# install python support
pushd ./lib/py
%py3_install
popd

# install perl support
pushd ./lib/perl
%makeinstall_std
popd

# Remove javadocs jar
%if 0%{?want_java} > 0
find %{buildroot}/%{_javadir} -name lib%{name}-javadoc.jar -exec rm -f '{}' \;
# Add POM file and depmap
mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-libthrift.pom
%add_maven_depmap JPP-libthrift.pom libthrift.jar
%endif

# Remove bundled jar files
find %{buildroot} -name \*.jar -a \! -name \*thrift\* -exec rm -f '{}' \;

# Remove inneeded perl files
find %{buildroot} -name \*.pod -exec rm -f '{}' \;
find %{buildroot} -name .packlist -exec rm -f '{}' \;
rm -r %{buildroot}%{_libdir}/perl5

# Ensure all python scripts are executable
find %{buildroot} -name \*.py -exec grep -q /usr/bin/env {} \; -print | xargs -r chmod 755

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19965 |21mr|thrift-java-0.10.0-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname thrift

Name:    thrift-java
Version: 0.10.0
Release: 17
Summary: Software framework for cross-language services development
Group:   System/Libraries
# Parts of the source are used under the BSD and zlib licenses, but
# these are OK for inclusion in an Apache 2.0-licensed whole:
# https://www.apache.org/legal/3party.html

# Here's the breakdown:
# ./lib/py/compat/win32/stdint.h is 2-clause BSD
# ./compiler/cpp/src/md5.[ch] are zlib
License: ASL 2.0 and BSD and zlib
URL:     https://thrift.apache.org/

Source0: https://archive.apache.org/dist/%{oname}/%{version}/%{oname}-%{version}.tar.gz

Source1: https://repo1.maven.org/maven2/org/apache/thrift/lib%{oname}/%{version}/lib%{oname}-%{version}.pom
Source2: https://raw.github.com/apache/%{oname}/%{version}/bootstrap.sh

Source4: %{oname}.rpmlintrc

# this patch is adapted from Gil Cattaneo's thrift-0.7.0 package
Patch0: %{oname}-%{version}-buildxml.patch
# for fb303, excise maven ant tasks; build against system libraries; etc.
Patch1: fb303-%{version}-buildxml.patch
# fix configure.ac insistence on using /usr/local/lib for JAVA_PREFIX
Patch2: configure-java-prefix.patch
# fix for ppc64le builds not linking to /usr/lib64 directory
Patch3: fix-ppc64le-builds.patch
# fix for s390x build; incorporates fix for THRIFT-4177 with some code from THRIFT-4136
Patch4: THRIFT-4177.patch

# Update fb303 for python3
Patch5: python3.patch

# BuildRequires for language-specific bindings are listed under these
# subpackages, to facilitate enabling or disabling individual language
# bindings in the future

BuildRequires: ant >= 1.7
BuildRequires: autoconf
BuildRequires: automake
BuildArch:     noarch
ExcludeArch:   %{ix86}

%description

The Apache Thrift software framework for cross-language services
development combines a software stack with a code generation engine to
build services that work efficiently and seamlessly between C++, Java,
Python, %{?php_langname}and other languages.

#------------------------------------------------------
%package -n lib%{oname}-javadoc
Summary: API documentation for java-%{oname}
Requires: lib%{oname}-java = %{version}-%{release}

%description -n lib%{oname}-javadoc 
The lib%{oname}-javadoc package contains API documentation for the
Java bindings for %{oname}.

%files -n lib%{oname}-javadoc
%{_javadocdir}/%{oname}
%doc LICENSE NOTICE

#------------------------------------------------------

%package -n lib%{oname}-java
Summary: Java support for %{oname}

BuildRequires: apache-commons-codec
BuildRequires: apache-commons-lang
BuildRequires: apache-commons-logging
BuildRequires: httpcomponents-client
BuildRequires: httpcomponents-core
BuildRequires: java-devel
BuildRequires: javapackages-tools
BuildRequires: javapackages-local
BuildRequires: junit
BuildRequires: log4j
BuildRequires: slf4j
# javax.servlet-api 3.1.0 is provided by glassfish-servlet-api
BuildRequires: mvn(javax.servlet:javax.servlet-api) = 3.1.0

Requires: java-headless >= 1:1.6.0
Requires: javapackages-tools
Requires: mvn(org.slf4j:slf4j-api)
Requires: mvn(commons-lang:commons-lang)
Requires: mvn(org.apache.httpcomponents:httpclient)
Requires: mvn(org.apache.httpcomponents:httpcore)

%description -n lib%{oname}-java
The lib%{oname}-java package contains Java bindings for %{oname}.

%files -n lib%{oname}-java -f .mfiles
%doc LICENSE NOTICE
#------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%{?!el5:sed -i -e 's/^AC_PROG_LIBTOOL/LT_INIT/g' configure.ac}

# avoid spurious executable permissions in debuginfo package
find . -name \*.cpp -or -name \*.cc -or -name \*.h | xargs -r chmod 644

cp -p %{SOURCE2} bootstrap.sh

# work around linking issues
echo 'libthrift_c_glib_la_LIBADD = $(GLIB_LIBS) $(GOBJECT_LIBS) -L../cpp/.libs ' >> lib/c_glib/Makefile.am
echo 'libthriftqt_la_LIBADD = $(QT_LIBS) -lthrift -L.libs' >> lib/cpp/Makefile.am
echo 'libthriftz_la_LIBADD = $(ZLIB_LIBS) -lthrift -L.libs' >> lib/cpp/Makefile.am
echo 'EXTRA_libthriftqt_la_DEPENDENCIES = libthrift.la' >> lib/cpp/Makefile.am
echo 'EXTRA_libthriftz_la_DEPENDENCIES = libthrift.la' >> lib/cpp/Makefile.am

sed -i 's|libfb303_so_LDFLAGS = $(SHARED_LDFLAGS)|libfb303_so_LDFLAGS = $(SHARED_LDFLAGS) -lthrift -L../../../lib/cpp/.libs -Wl,--as-needed|g' contrib/fb303/cpp/Makefile.am

# fix broken upstream check for ant version; we enforce this with BuildRequires, so no need to check here
sed -i 's|ANT_VALID=.*|ANT_VALID=1|' aclocal/ax_javac_and_java.m4
sed -i 's|ANT_VALID=.*|ANT_VALID=1|' contrib/fb303/aclocal/ax_javac_and_java.m4

%build
export JAVA_PREFIX=%{_javadir}
export GLIB_LIBS=$(pkg-config --libs glib-2.0)
export GLIB_CFLAGS=$(pkg-config --cflags glib-2.0)
export GOBJECT_LIBS=$(pkg-config --libs gobject-2.0)
export GOBJECT_CFLAGS=$(pkg-config --cflags gobject-2.0)

# install javadocs in proper places
sed -i 's|-Dinstall.javadoc.path=$(DESTDIR)$(docdir)/java|-Dinstall.javadoc.path=$(DESTDIR)%{_javadocdir}/%{oname}|' lib/java/Makefile.*

# build a jar without a version number
sed -i 's|${thrift.artifactid}-${version}|${thrift.artifactid}|' lib/java/build.xml

sed -i 's|$(prefix)/lib$|%{_libdir}|g' contrib/fb303/cpp/Makefile.am

sh ./bootstrap.sh

# use unversioned doc dirs where appropriate (via _pkgdocdir macro)
export PYTHON=%{_bindir}/python3
%configure --disable-dependency-tracking --disable-static --with-boost=/usr --with-py3 --with-java --docdir=%{?_pkgdocdir}%{!?_pkgdocdir:%{_docdir}/%{oname}-%{version}}

# eliminate unused direct shlib dependencies
sed -i -e 's/ -shared / -Wl,--as-needed\0/g' libtool

pushd lib/java
make
popd

%install
pushd lib/java
%make_install
popd

# Remove javadocs jar
find %{buildroot}/%{_javadir} -name lib%{oname}-javadoc.jar -exec rm -f '{}' \;

# Add POM file and depmap
mkdir -p %{buildroot}%{_mavenpomdir}

install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP-libthrift.pom

%add_maven_depmap JPP-libthrift.pom libthrift.jar

# Remove bundled jar files
find %{buildroot} -name \*.jar -a \! -name \*thrift\* -exec rm -f '{}' \;


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19966 |21mr|thunderbird-102-102.15.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __libtoolize /bin/true
%define __cputoolize /bin/true

%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%ifarch %ix86
%define _host i686-unknown-linux-gnu
%endif

%define title Thunderbird-91

%define oname thunderbird

%define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
%define tbdir %{_libdir}/%{oname}
%define tbextdir %{_libdir}/mozilla/extensions/%{tb_appid}

%bcond_without clang
%if %{mdvver} == 202110
%bcond_with system_llvm
%else
%bcond_without system_llvm
%endif

%define llvm_opt_ver llvm15
%define llvm_dir_path /opt/%{llvm_opt_ver}
%define clang_path %{llvm_dir_path}/bin

%define use_bundled_cbindgen 1

%define objdir obj

%define xpi 1
%define languages af ar ast be bg br ca cak cs cy da de dsb el en-CA en-GB es-AR es-ES es-MX et eu fi fr fy-NL ga-IE gd gl he hr hsb hu hy-AM id is it ja ka kab kk ko lt lv ms nb-NO nl nn-NO pa-IN pl pt-BR pt-PT rm ro ru sk sl sq sr sv-SE th tr uk uz vi zh-CN zh-TW
%define del_lang ach an az bn bs ca-valencia eo es-CL fa ff gn gu-IN hi-IN ia km kn lij mk mr my ne-NP oc sco si son szl ta te tl trs ur xh

# Do not make provides from plugins
%global __provides_exclude_from ^%{_libdir}/%{oname}.*/.*\\.so
# Do not require filtered out provides
%global __requires_exclude_from ^%{_libdir}/%{oname}.*/.*\\.so
%global __requires_exclude ^(libxul|librnp)\\.so.*$

# this seems fragile, so require the exact version or later (#58754)
%define sqlite3_version %(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
# this one as well (#59759)
%define nss_libname %mklibname nss 3
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)

# Requested 'nss >= 3.53.1' but version of NSS is 3.52.1
%bcond_with system_nss_nspr

Summary:	Full-featured email, RSS, and newsgroup client
Name:		%{oname}-102
Version:	102.15.1
Release:	1
License:	MPL
Group:		Networking/Mail
Url:		https://www.thunderbird.net
Source0:	https://archive.mozilla.org/pub/thunderbird/releases/%{version}/source/%{oname}-%{version}.source.tar.xz
Source1:	%{oname}.desktop
Source2:	%{oname}.sh
Source3:	moz_main
Source10:	%{name}.rpmlintrc
Source11:	l10n.tar.xz
# %%{mdvver} <= 201610
Source12:	mozilla-thunderbird-mandriva-default-prefs.js
Source22:	cbindgen-vendor.tar.xz
Source30:	mozilla-thunderbird-open-browser.sh
Source31:	mozilla-thunderbird-open-browser-xdg.sh
# for 2016.1
Source80:	loffice-libcxx-wrapper.sh
# Search Yandex default
Source81:	use_yandex_search_as_default.py
Patch0:		0001-Change-yandex-clids.patch
Patch1:		fix-build-gcc13.patch
# Mandriva patches (Patch300+)
Patch304:	mozilla-thunderbird-run-mozilla.patch
# OpenSuse patches (Patch400+)
# https://build.opensuse.org/package/show/openSUSE:Factory/MozillaThunderbird
Patch401:	mozilla-kde.patch
BuildRequires:	autoconf2.1
BuildRequires:	cargo >= 0.25.0
BuildRequires:	clang
BuildRequires:	clang-devel
BuildRequires:	gzip
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	libiw-devel
%ifarch %{ix86}
BuildRequires:	atomic-devel
%endif
%if %{with clang}
%if %{without system_llvm}
BuildRequires:  %{llvm_opt_ver}
%else
BuildRequires:	clang
BuildRequires:	clang-devel
BuildRequires:	llvm-devel
BuildRequires:	lld
%endif
%endif
BuildRequires:	nasm
BuildRequires:	nodejs
%if %{with system_nss_nspr}
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	nss-static-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	pkgconfig(libevent) >= 1.4.7
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(sqlite3) >= 3.7.1.1
BuildRequires:	pkgconfig(vpx) >= 0.9.7
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	rust >= 1.24.0
BuildRequires:	unzip
BuildRequires:	yasm >= 1.0.1
BuildRequires:	zip
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(dbus-glib-1)
%if %{with system_nss_nspr}
Requires:	%{mklibname sqlite3_ 0} >= %{sqlite3_version}
%endif
Requires:	%{nss_libname} >= 2:%{nss_version}
Requires(post,postun):	desktop-file-utils
Requires(post):	mktemp
Requires(post,postun):	rpm-helper
Requires:	%{_lib}otr5
Requires:	xdg-utils
Conflicts:	mozilla-thunderbird
Conflicts:	thunderbird
Obsoletes:	thunderbird-78 < %{EVRD}
Obsoletes:	thunderbird-91 < %{EVRD}
Provides:	thunderbird = %{EVRD}

%description
%{title} is a full-featured email, RSS and newsgroup client that
makes emailing safer, faster and easier than ever before.

%files
%doc README.txt
%attr(755,root,root) %{_bindir}/thunderbird
%attr(644,root,root) %{_datadir}/applications/*.desktop
%attr(644,root,root) %{_datadir}/pixmaps/%{oname}.png
%{tbdir}
%if %{xpi}
%exclude %{tbdir}/extensions
%endif
%{_datadir}/icons/hicolor/*/apps/%{oname}.*

#===============================================================================

%if %{xpi}

%define package_l10n() %{expand:

%package %{1} 
Summary:	%{2} interface for Thunderbird
License:	GPL
Group:		Networking/WWW
Url:		http://www.mozilla.org/products/firefox/
Requires:	%{name}%{_isa} = %{EVRD}
Conflicts:	mozilla-thunderbird-%{1}
Conflicts:	thunderbird-%{1}
Obsoletes:	thunderbird-78-%{1} < %{EVRD}
Obsoletes:      thunderbird-91-%{1} < %{EVRD}
Recommends:     locales-%{3}

%description %{1}
%{1} localization for Thunderbird.

%files %{1}
%{tbdir}/extensions/langpack-%{2}@%{oname}.mozilla.org.xpi
}

%(for ORIG in `echo %{languages}`; do \
E=$(echo $ORIG | sed -e "s/-/_/g"); \
D=$(echo $E | tr -d [=_=] | tr -d [:upper:] | sed -e "s/valencia//"); \
echo "%{package_l10n "${E}" "${ORIG}" "${D}"}";done)

%endif

#===============================================================================

%prep
%setup -qn %{oname}-%{version}

%patch0 -p1
%{__python3} %{SOURCE81} services/settings/dumps/main/search-config.json

# fix build gcc13
%if %{mdvver} > 202110
%patch1 -p1
%endif

%patch304 -p1 -b .run-mozilla
%patch401 -p1 -b .kde

%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
cd my_rust_vendor
tar xf %{SOURCE22}
mkdir -p .cargo
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"
 
[source.vendored-sources]
directory = "`pwd`"
EOL
 
env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH
%endif
cd -

export RUSTFLAGS="-Cdebuginfo=0"

%if %{mdvver} < 201910
sed -i "s/python3/python3.8/g" configure.in
sed -i "s/python3/python3.8/g" mach
export PYTHON3=/usr/libexec/python3.8
export PATH=/usr/libexec:$PATH
%endif

%if %{with clang}
%ifarch %ix86
%define linker bfd
%else
%define linker lld
%endif
%if %{without system_llvm}
export PATH="%clang_path:$PATH"
export CC=%clang_path/clang
export CXX=%clang_path/clang++
%else
export CC=clang
export CXX=clang++
%endif
%endif

%if %{without clang}
%define linker gold
export CC=%{__cc}
export CXX=%{__cxx}
%endif

cp -fr %{S:3} .mozconfig
echo "mk_add_options MOZ_MAKE_FLAGS=%{_smp_mflags}" >> .mozconfig
echo "mk_add_options MOZ_OBJDIR=`pwd`/%{objdir}" >> .mozconfig
echo "ac_add_options --libdir=%{_libdir}" >> .mozconfig
echo "ac_add_options --prefix=%{_prefix}" >> .mozconfig
echo "ac_add_options --host=%{_host}" >> .mozconfig
echo "ac_add_options --enable-linker=%{linker}" >> .mozconfig
%ifarch %{ix86}
echo "ac_add_options --disable-debug-symbols" >> mozconfig
%endif
%ifnarch aarch64
echo "ac_add_options --disable-elf-hack" >> .mozconfig
%endif
%if %{with system_nss_nspr}
echo "ac_add_options --with-system-nspr" >> .mozconfig
echo "ac_add_options --with-system-nss" >> .mozconfig
%endif

export MOZCONFIG=`pwd`/.mozconfig

# force memory efficient linking and ets
%if %{with clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

# This mach command requires /builddir/.mozbuild/_virtualenvs/mach/bin/python,
# which wasn't found on the system!
# Consider running 'mach bootstrap' or 'mach create-mach-environment'
# to create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use
# the system Python installation over a virtualenv.
export MACH_USE_SYSTEM_PYTHON=1

./mach build

%install
mkdir -p %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
mkdir -p %{buildroot}%{tbdir}

pushd %{objdir}
DESTDIR=%{buildroot} make install
popd

rm -f extensions/spellcheck/locales/en-US/hunspell/en-US.{dic,aff}

# Use the system hunspell dictionaries
rm -rf %{buildroot}%{tbdir}/dictionaries
ln -s /usr/share/dict/mozilla %{buildroot}%{tbdir}/dictionaries

install -p -D %{buildroot}%{tbdir}/chrome/icons/default/default256.png %{buildroot}%{_datadir}/pixmaps/%{oname}.png

# install desktop files
cp -rf %{S:1} %{buildroot}%{_datadir}/applications

# delete a symlink
rm -fr %{buildroot}%{_bindir}/%{oname}

# copy the thunderbird startup script for x11/wayland
cp -fr %{S:2} %{buildroot}%{_bindir}/%{oname}
sed -i "s|@LIBS@|%{_libdir}|g" %{buildroot}%{_bindir}/%{oname}
chmod +x %{buildroot}%{_bindir}/%{oname}

# For backwards compatibility with old profiles. Bug #37528
install -m 755 %{SOURCE31} %{buildroot}%{tbdir}/open-browser.sh
# For new profiles
%define COMMAND /usr/bin/xdg-open

cat %{SOURCE12} | perl -p -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g;' \
	-e 's,THUNDERBIRD_VENDOR_COMMENT,%{mandriva_release},g;' \
	> %{buildroot}/mdv-default-prefs
cp -a %{buildroot}/mdv-default-prefs %{buildroot}%{tbdir}/defaults/pref/all-mandriva.js
rm -f %{buildroot}/mdv-default-prefs

# icons
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
rm -f %{buildroot}/%{tbdir}/chrome/icons/default/default*.png

for s in 16 22 24 32 48 64 128 256; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
	cp -p comm/mail/branding/%{oname}/default${s}.png \
	%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{oname}.png
done

#exclude devel files
rm -rf %{buildroot}%{_datadir}/idl/%{oname}-%{version}
rm -rf %{buildroot}%{_includedir}/%{oname}-%{version}
rm -rf %{buildroot}%{_libdir}/%{oname}-devel-%{version}

%if %{xpi}
mkdir -p %{buildroot}%{_libdir}/%{oname}/extensions

tar xf %{SOURCE11} -C %{buildroot}%{_libdir}/%{oname}/extensions
%endif

%pre
if [ $1 == 2 ]; then
	if [ -d %{tbdir}/dictionaries ]; then
		# Otherelse rpm can't switch this into a symlink :(
		rm -rf %{tbdir}/dictionaries
	fi
fi

%post
if [ -x %{_bindir}/%{oname} ]; then

LANG="${LANG:-}"

if [[ "$LANG" =~ ^ru(|_.*).UTF-8$ ]] ; then
	echo "Thunderbird был обновлен до новой мажорной версии."
	echo "Сделайте резервную копию профиля (~/.thunderbird) перед первым запуском."
else
	echo "Thunderbird has been upgraded to a new major version."
	echo "Make a backup of your profile (~/.thunderbird) before running the new version."
fi
fi




@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19967 |21mr|thunderbird-78-78.14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __libtoolize /bin/true
%define __cputoolize /bin/true

%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%ifarch %ix86
%define _host i686-unknown-linux-gnu
%endif

%define title Thunderbird-78

%define oname thunderbird

%define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
%define tbdir %{_libdir}/%{oname}
%define tbextdir %{_libdir}/mozilla/extensions/%{tb_appid}

#%%if %%{mdvver} > 201610
#define clang 0
#%%else
%define clang 1
#%%endif

%define use_bundled_cbindgen 1

%define objdir obj

%define xpi 0

# Do not make provides from plugins
%global __provides_exclude_from ^%{_libdir}/%{oname}.*/.*\\.so
# Do not require filtered out provides
%global __requires_exclude_from ^%{_libdir}/%{oname}.*/.*\\.so
%global __requires_exclude ^libxul\\.so.*$

# this seems fragile, so require the exact version or later (#58754)
%define sqlite3_version %(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
# this one as well (#59759)
%define nss_libname %mklibname nss 3
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)

%bcond_without system_nss_nspr

Summary:	Full-featured email, RSS, and newsgroup client
Name:		%{oname}-78
Version:	78.14.0
Release:	2
License:	MPL
Group:		Networking/Mail
Url:		https://www.thunderbird.net
Source0:	https://archive.mozilla.org/pub/thunderbird/releases/%{version}/source/%{oname}-%{version}.source.tar.xz
Source10:	%{name}.rpmlintrc
# %%{mdvver} <= 201610
Source11:	README.urpmi
Source12:	mozilla-thunderbird-mandriva-default-prefs.js
Source22:	cbindgen-vendor.tar.xz
Source30:	mozilla-thunderbird-open-browser.sh
Source31:	mozilla-thunderbird-open-browser-xdg.sh
# for 2016.1
Source80:	loffice-libcxx-wrapper.sh
# Mandriva patches (Patch300+)
Patch300:	mozilla-thunderbird-0.8-progname.patch
Patch304:	mozilla-thunderbird-run-mozilla.patch
# OpenSuse patches (Patch400+)
# https://build.opensuse.org/package/show/openSUSE:Factory/MozillaThunderbird
Patch401:	mozilla-kde.patch
BuildRequires:	autoconf2.1
BuildRequires:	cargo >= 0.25.0
BuildRequires:	clang
BuildRequires:	clang-devel
BuildRequires:	gzip
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	libiw-devel
%if 0%{?clang}
BuildRequires:	lld
%ifarch %{ix86}
BuildRequires:	atomic-devel
%endif
%endif
BuildRequires:	llvm-devel
BuildRequires:	nasm
BuildRequires:	nodejs
%if %{with system_nss_nspr}
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	nss-static-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	pkgconfig(libevent) >= 1.4.7
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(sqlite3) >= 3.7.1.1
BuildRequires:	pkgconfig(vpx) >= 0.9.7
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
%if %{mdvver} <= 201610
BuildRequires:	python
BuildRequires:	python-devel
BuildRequires:	python-setuptools
BuildRequires:	python-virtualenv
%endif
BuildRequires:	python3
BuildRequires:	rust >= 1.24.0
BuildRequires:	unzip
BuildRequires:	yasm >= 1.0.1
BuildRequires:	zip
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(dbus-glib-1)
%if %{mdvver} <= 201610
BuildRequires:	stdc++-gcc10-devel
%endif
%if %{with system_nss_nspr}
Requires:	%{mklibname sqlite3_ 0} >= %{sqlite3_version}
%endif
Requires:	%{nss_libname} >= 2:%{nss_version}
Requires(post,postun):	desktop-file-utils
Requires(post):	mktemp
Requires(post,postun):	rpm-helper
Requires:	%{_lib}otr5
Requires:	xdg-utils
Conflicts:	mozilla-thunderbird
Conflicts:	thunderbird

%description
%{title} is a full-featured email, RSS and newsgroup client that
makes emailing safer, faster and easier than ever before.

%files
%if %{mdvver} <= 201610
%doc README.txt README.urpmi
%else
%doc README.txt
%endif
%attr(755,root,root) %{_bindir}/thunderbird
%attr(644,root,root) %{_datadir}/applications/*.desktop
%attr(644,root,root) %{_datadir}/pixmaps/%{oname}.png
%{tbdir}
%if %{xpi}
%dir %{tbextdir}
%endif
%{_datadir}/icons/hicolor/*/apps/%{oname}.*

#===============================================================================

%prep
%setup -qn %{oname}-%{version}
%patch300 -p0 -b .progname
%patch304 -p0 -b .run-mozilla
%patch401 -p1 -b .kde

%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
cd my_rust_vendor
tar xf %{SOURCE22}
mkdir -p .cargo
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"
 
[source.vendored-sources]
directory = "`pwd`"
EOL
 
env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH
%endif
cd -

export RUSTFLAGS="-Cdebuginfo=0"

%if 0%{?clang}
%define linker lld
%if %{mdvver} <= 201610
# not using %%clang_gcc_wrapper here because it fails
# to deal with complex quotation like
# -DCPPUNIT_PLUGIN_EXPORT='extern "C" SAL_DLLPUBLIC_EXPORT'
for i in %noclang_optflags ; do
	export CFLAGS="$(echo "$CFLAGS" | sed -e "s,${i},,g")"
	export CXXFLAGS="$(echo "$CXXFLAGS" | sed -e "s,${i},,g")"
done
mkdir -p local_bin
install -m0755 %{SOURCE80} "local_bin/clang++"
export PATH="${PWD}/local_bin:${PATH}"
%endif
export CC=clang
export CXX=clang++
%if %{mdvver} <= 201610
export CPP=clang-cpp
# libstdc++ from gcc5 is too old, use newer version of libstdc++
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/libstdc++-gcc10 -I%{_includedir}/libstdc++-gcc10/$(ls %{_includedir}/libstdc++-gcc10/ | grep '\-linux-gnu' | head -n 1)"
export CXXFLAGS="$CXXFLAGS -nostdinc++ $CPPFLAGS -Wno-unused-command-line-argument"
export LIBCCX_LIBS="-lstdc++-gcc10"
%endif
%else
%define linker gold
export CC=%{__cc}
export CXX=%{__cxx}
%endif

export MOZCONFIG=`pwd`/.mozconfig
cat > $MOZCONFIG << EOF
export BUILD_OFFICIAL=1
export MOZILLA_OFFICIAL=1
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
mk_add_options MOZ_OBJDIR=`pwd`/%{objdir}
mk_add_options MOZ_CO_PROJECT=mail
ac_add_options --enable-application=comm/mail
ac_add_options --libdir="%{_libdir}"
ac_add_options --prefix="%{_prefix}"
ac_add_options --host=%{_host}
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
%ifnarch aarch64
ac_add_options --disable-elf-hack
%endif
ac_add_options --disable-system-cairo
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --enable-default-toolkit=cairo-gtk3
#ac_add_options --enable-linker=%%{linker}
ac_add_options --enable-official-branding
ac_add_options --enable-update-channel=release
ac_add_options --with-system-jpeg
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
%if %{with system_nss_nspr}
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
%endif
ac_add_options --with-system-zlib
ac_add_options --without-system-libvpx
#JS
ac_add_options --enable-js-shell
EOF

# force memory efficient linking and ets
%if 0%{?clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -lwayland-client"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

./mach build

%install
mkdir -p %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
mkdir -p %{buildroot}%{tbdir}

DESTDIR=%{buildroot} STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0 ./mach install

rm -f extensions/spellcheck/locales/en-US/hunspell/en-US.{dic,aff}

# Use the system hunspell dictionaries
rm -rf %{buildroot}%{tbdir}/dictionaries
ln -s /usr/share/dict/mozilla %{buildroot}%{tbdir}/dictionaries

install -p -D %{buildroot}%{tbdir}/chrome/icons/default/default256.png %{buildroot}%{_datadir}/pixmaps/%{oname}.png

cat << EOF > %{buildroot}%{_datadir}/applications/thunderbird.desktop
[Desktop Entry]
Encoding=UTF-8
Name=Thunderbird Mail
Name[ru]=Почтовый клиент Thunderbird
Comment=Send and receive mail with Thunderbird
Comment[ru]=Читайте и пишите письма
Keywords=Email;E-mail;Newsgroup;Feed;RSS
Keywords[ru]=Email;E-mail;Newsgroup;Feed;RSS;почта;письма;новости;фиды
Exec=thunderbird %u
Terminal=false
X-MultipleArgs=false
Type=Application
Icon=thunderbird
Categories=Application;Network;Email;
MimeType=x-scheme-handler/mailto;application/x-xpinstall;
StartupNotify=true
Actions=Compose;Contacts

[Desktop Action Compose]
Name=Compose New Message
Name[ru]=Написать письмо
Exec=thunderbird -compose
OnlyShowIn=Messaging Menu;Unity;

[Desktop Action Contacts]
Name=Contacts
Name[ru]=Контакты
Exec=thunderbird -addressbook
OnlyShowIn=Messaging Menu;Unity;

EOF

# For backwards compatibility with old profiles. Bug #37528
install -m 755 %{SOURCE31} %{buildroot}%{tbdir}/open-browser.sh
# For new profiles
%define COMMAND /usr/bin/xdg-open

cat %{SOURCE12} | perl -p -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g;' \
	-e 's,THUNDERBIRD_VENDOR_COMMENT,%{mandriva_release},g;' \
	> %{buildroot}/mdv-default-prefs
cp -a %{buildroot}/mdv-default-prefs %{buildroot}%{tbdir}/defaults/pref/all-mandriva.js
rm -f %{buildroot}/mdv-default-prefs

%if %{mdvver} <= 201610
cp %{SOURCE11} .
%endif

# icons
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
rm -f %{buildroot}/%{tbdir}/chrome/icons/default/default*.png

for s in 16 22 24 32 48 64 128 256; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
	cp -p comm/mail/branding/%{oname}/default${s}.png \
	%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{oname}.png
done

#exclude devel files
rm -rf %{buildroot}%{_datadir}/idl/%{oname}-%{version}
rm -rf %{buildroot}%{_includedir}/%{oname}-%{version}
rm -rf %{buildroot}%{_libdir}/%{oname}-devel-%{version}

%pre
if [ $1 == 2 ]; then
	if [ -d %{tbdir}/dictionaries ]; then
		# Otherelse rpm can't switch this into a symlink :(
		rm -rf %{tbdir}/dictionaries
	fi
fi

%post
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
	%{_bindir}/gtk-update-icon-cache --force --quiet %{_datadir}/icons/hicolor
fi


%postun
if [ "$1" = "0" -a -x %{_bindir}/gtk-update-icon-cache ]; then
	%{_bindir}/gtk-update-icon-cache --force --quiet %{_datadir}/icons/hicolor
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19968 |21mr|thunderbird-78-l10n-78.14.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%define thunderbird_package thunderbird

%define name thunderbird-78-l10n
%define oname thunderbird-78
%define version 78.14.0

%define release 1

#%%define thunderbird_epoch 0
#%%define thunderbird_version %{version}

%define up_ca_name thunderbird
%define lib_name %{up_ca_name}
%define tbdir %{_libdir}/%{lib_name}
%global langpackdir %{tbdir}/distribution/extensions
%define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
%define tbextdir %{_datadir}/mozilla/extensions/%{tb_appid}

%define xpidir http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{thunderbird_version}/linux-i686/xpi/

# Supported l10n language lists
%define langlist ar be bg ca cs da de el en_GB es_AR es_ES et eu fi fr fy ga gd gl he hu id is it ja ko lt nb_NO nl nn_NO pl pt_PT pt_BR ro ru si sk sl sq sv_SE tr uk uz vi zh_CN zh_TW

# Disabled l10n languages, for any reason
%define disabled_langlist bn_BD et_EE gu_IN mk pa_IN af sr ka

# Disabled myspell dicts, for any reason
%define disabled_dict_langlist ar be br_FR es_AR eu fi fy ga gu_IN he ja ko mk pa_IN tr zh_CN zh_TW

# Language descriptions
%define language_af af
%define langname_af Afrikaans
%define language_ar ar
%define langname_ar Arabic
%define language_be be
%define langname_be Belarusian
%define language_bg bg
%define langname_bg Bulgarian
%define language_bn_BD bn-BD
%define langname_bn_BD Bengali (Bangla)
%define language_br_FR br-FR
%define langname_br_FR Breton
%define language_ca ca
%define langname_ca Catalan
%define language_cs cs
%define langname_cs Czech
%define language_da da
%define langname_da Dansk
%define language_de de
%define langname_de German
%define language_el el
%define langname_el Greek
%define language_en_GB en-GB
%define langname_en_GB British English
%define language_es_AR es-AR
%define langname_es_AR Spanish (Argentina)
%define language_es_ES es-ES
%define langname_es_ES Spanish
%define language_et_EE et-EE
%define langname_et_EE Estonian (Magento)
%define language_et et
%define langname_et Estonian
%define language_eu eu
%define langname_eu Basque
%define language_fi fi
%define langname_fi Finnish
%define language_fr fr
%define langname_fr French
%define language_fy fy-NL
%define langname_fy Frisian
%define language_ga ga-IE
%define langname_ga Irish
%define language_gd gd
%define langname_gd Scottish Gaelic
%define language_gl gl
%define langname_gl Galician
%define language_gu_IN gu-IN
%define langname_gu_IN Gujarati
%define language_he he
%define langname_he Hebrew
%define language_hu hu
%define langname_hu Hungarian
%define language_id id
%define langname_id Indonesian
%define language_is is
%define langname_is Icelandic
%define language_it it
%define langname_it Italian
%define language_ja ja
%define langname_ja Japanese
%define language_ka ka
%define langname_ka Georgian
%define language_ko ko
%define langname_ko Korean
%define language_lt lt
%define langname_lt Lithuanian
%define language_mk mk
%define langname_mk Macedonian
%define language_nb_NO nb-NO
%define langname_nb_NO Norwegian Bokmaal
%define language_nn_NO nn-NO
%define langname_nn_NO Norwegian Nynorsk
%define language_nl nl
%define langname_nl Dutch
%define language_pa_IN pa-IN
%define langname_pa_IN Punjabi (gurmukhi)
%define language_pl pl
%define langname_pl Polish
%define language_pt_BR pt-BR
%define langname_pt_BR Brazilian portuguese
%define language_pt_PT pt-PT
%define langname_pt_PT Portuguese
%define language_ro ro
%define langname_ro Romanian
%define language_ru ru
%define langname_ru Russian
%define language_si si
%define langname_si Sinhala
%define language_sk sk
%define langname_sk Slovak
%define language_sq sq
%define langname_sq Albanian
%define language_sl sl
%define langname_sl Slovenian
%define language_sr sr
%define langname_sr Serbian
%define language_sv_SE sv-SE
%define langname_sv_SE Swedish
%define language_ta_LK ta-LK
%define langname_ta_LK Tamil (Sri-Lanka)
%define language_tr tr
%define langname_tr Turkish
%define language_uk uk
%define langname_uk Ukrainian
%define language_uz uz
%define langname_uz Uzbek
%define language_vi vi
%define langname_vi Vietnamese
%define language_zh_CN zh-CN
%define langname_zh_CN Simplified Chinese
%define language_zh_TW zh-TW
%define langname_zh_TW Traditional Chinese

# --- Danger line ---

# Defaults (all languages enabled by default)
# l10n
%{expand:%(for lang in %langlist; do echo "%%define with_$lang 1"; done)}
%{expand:%(for lang in %disabled_langlist; do echo "%%define with_$lang 0"; done)}
# dicts
%{expand:%(for lang in %langlist; do echo "%%define with_dict_$lang %{use_dict}"; done)}
%{expand:%(for lang in %disabled_dict_langlist; do echo "%%define with_dict_$lang 0"; done)}

# Locales
%{expand:%(for lang in %langlist; do echo "%%define locale_$lang `echo $lang | cut -d _ -f 1` "; done)}

#define debug_package %%{nil}

Summary:	Localizations for Thunderbird (virtual package)
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Networking/WWW
Url:		http://www.mozilla.org
# Language package template
Source0:	%{name}-template.in
Source1:	thunderbird-xpi-%{version}.tar.xz
# No deleted
Source10:	get-langpacks.sh
Source500:	%{name}.rpmlintrc

%description
Localizations for Thunderbird

# Expand all languages packages.
%{expand:%(\
	for lang in %langlist; do\
		echo "%%{expand:%%(sed "s!__LANG__!$lang!g" %{_sourcedir}/%{name}-template.in 2> /dev/null)}";\
	done\
	)
}

%prep

%build

%install
# langpacks install
mkdir -p %{buildroot}%{langpackdir}
pushd %{buildroot}%{langpackdir}
tar xf %{SOURCE1}
chmod a+r *.xpi

rm -f langpack-af@thunderbird.mozilla.org.xpi
rm -f langpack-en-CA@thunderbird.mozilla.org.xpi
rm -f langpack-fa@thunderbird.mozilla.org.xpi
rm -f langpack-pa-IN@thunderbird.mozilla.org.xpi
rm -f langpack-th@thunderbird.mozilla.org.xpi
rm -f langpack-cak@thunderbird.mozilla.org.xpi
rm -f langpack-ka@thunderbird.mozilla.org.xpi
rm -f langpack-ast@thunderbird.mozilla.org.xpi
rm -f langpack-br@thunderbird.mozilla.org.xpi
rm -f langpack-cal-ast@lightning.mozilla.org.xpi
rm -f langpack-cal-br@lightning.mozilla.org.xpi
rm -f langpack-cal-cak@lightning.mozilla.org.xpi
rm -f langpack-cal-cy@lightning.mozilla.org.xpi
rm -f langpack-cal-dsb@lightning.mozilla.org.xpi
rm -f langpack-cal-en-US@lightning.mozilla.org.xpi
rm -f langpack-cal-hr@lightning.mozilla.org.xpi
rm -f langpack-cal-hsb@lightning.mozilla.org.xpi
rm -f langpack-cal-hy-AM@lightning.mozilla.org.xpi
rm -f langpack-cal-ka@lightning.mozilla.org.xpi
rm -f langpack-cal-kab@lightning.mozilla.org.xpi
rm -f langpack-cal-kk@lightning.mozilla.org.xpi
rm -f langpack-cal-ms@lightning.mozilla.org.xpi
rm -f langpack-cal-rm@lightning.mozilla.org.xpi
rm -f langpack-cal-sr@lightning.mozilla.org.xpi
rm -f langpack-cy@thunderbird.mozilla.org.xpi
rm -f langpack-dsb@thunderbird.mozilla.org.xpi
rm -f langpack-en-US@thunderbird.mozilla.org.xpi
rm -f langpack-hr@thunderbird.mozilla.org.xpi
rm -f langpack-hsb@thunderbird.mozilla.org.xpi
rm -f langpack-hy-AM@thunderbird.mozilla.org.xpi
rm -f langpack-kab@thunderbird.mozilla.org.xpi
rm -f langpack-kk@thunderbird.mozilla.org.xpi
rm -f langpack-ms@thunderbird.mozilla.org.xpi
rm -f langpack-rm@thunderbird.mozilla.org.xpi
rm -f langpack-sr@thunderbird.mozilla.org.xpi

popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19969 |21mr|thunderbird-91-91.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __libtoolize /bin/true
%define __cputoolize /bin/true

%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%ifarch %ix86
%define _host i686-unknown-linux-gnu
%endif

%define title Thunderbird-91

%define oname thunderbird

%define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
%define tbdir %{_libdir}/%{oname}
%define tbextdir %{_libdir}/mozilla/extensions/%{tb_appid}

#%%if %%{mdvver} > 201610
#define clang 0
#%%else
%define clang 1
#%%endif

%define use_bundled_cbindgen 1

%define objdir obj

%define xpi 0

# Do not make provides from plugins
%global __provides_exclude_from ^%{_libdir}/%{oname}.*/.*\\.so
# Do not require filtered out provides
%global __requires_exclude_from ^%{_libdir}/%{oname}.*/.*\\.so
%global __requires_exclude ^libxul\\.so.*$

# this seems fragile, so require the exact version or later (#58754)
%define sqlite3_version %(pkg-config --modversion sqlite3 &>/dev/null && pkg-config --modversion sqlite3 2>/dev/null || echo 0)
# this one as well (#59759)
%define nss_libname %mklibname nss 3
%define nss_version %(pkg-config --modversion nss &>/dev/null && pkg-config --modversion nss 2>/dev/null || echo 0)

# Requested 'nss >= 3.53.1' but version of NSS is 3.52.1
%bcond_with system_nss_nspr

Summary:	Full-featured email, RSS, and newsgroup client
Name:		%{oname}-91
Version:	91.13.0
Release:	1
License:	MPL
Group:		Networking/Mail
Url:		https://www.thunderbird.net
Source0:	https://archive.mozilla.org/pub/thunderbird/releases/%{version}/source/%{oname}-%{version}.source.tar.xz
Source1:	%{oname}.desktop
Source2:	%{oname}.sh
Source10:	%{name}.rpmlintrc
# %%{mdvver} <= 201610
Source12:	mozilla-thunderbird-mandriva-default-prefs.js
Source22:	cbindgen-vendor.tar.xz
Source30:	mozilla-thunderbird-open-browser.sh
Source31:	mozilla-thunderbird-open-browser-xdg.sh
# for 2016.1
Source80:	loffice-libcxx-wrapper.sh
# disable rendering https://bugzilla.rosalinux.ru/show_bug.cgi?id=11598
Patch0:		gfx.webrender.force-disabled.patch
# Mandriva patches (Patch300+)
Patch300:	mozilla-thunderbird-0.8-progname.patch
Patch304:	mozilla-thunderbird-run-mozilla.patch
# OpenSuse patches (Patch400+)
# https://build.opensuse.org/package/show/openSUSE:Factory/MozillaThunderbird
Patch401:	mozilla-kde.patch
BuildRequires:	autoconf2.1
BuildRequires:	cargo >= 0.25.0
BuildRequires:	clang
BuildRequires:	clang-devel
BuildRequires:	gzip
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	libiw-devel
%if 0%{?clang}
BuildRequires:	lld
%ifarch %{ix86}
BuildRequires:	atomic-devel
%endif
%endif
BuildRequires:	llvm-devel
BuildRequires:	nasm
BuildRequires:	nodejs
%if %{with system_nss_nspr}
BuildRequires:	pkgconfig(nspr)
BuildRequires:	pkgconfig(nss)
BuildRequires:	nss-static-devel
%endif
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(hunspell)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	pkgconfig(libevent) >= 1.4.7
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(sqlite3) >= 3.7.1.1
BuildRequires:	pkgconfig(vpx) >= 0.9.7
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(python2)
BuildRequires:	pkgconfig(python3)
BuildRequires:	rust >= 1.24.0
BuildRequires:	unzip
BuildRequires:	yasm >= 1.0.1
BuildRequires:	zip
BuildRequires:	libiw-devel
BuildRequires:	pkgconfig(dbus-glib-1)
%if %{with system_nss_nspr}
Requires:	%{mklibname sqlite3_ 0} >= %{sqlite3_version}
%endif
Requires:	%{nss_libname} >= 2:%{nss_version}
Requires(post,postun):	desktop-file-utils
Requires(post):	mktemp
Requires(post,postun):	rpm-helper
Requires:	%{_lib}otr5
Requires:	xdg-utils
Conflicts:	mozilla-thunderbird
Conflicts:	thunderbird
Obsoletes:	thunderbird-78 < %{EVRD}
Provides:	thunderbird = %{EVRD}

%description
%{title} is a full-featured email, RSS and newsgroup client that
makes emailing safer, faster and easier than ever before.

%files
%doc README.txt
%attr(755,root,root) %{_bindir}/thunderbird
%attr(644,root,root) %{_datadir}/applications/*.desktop
%attr(644,root,root) %{_datadir}/pixmaps/%{oname}.png
%{tbdir}
%if %{xpi}
%dir %{tbextdir}
%endif
%{_datadir}/icons/hicolor/*/apps/%{oname}.*

#===============================================================================

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch300 -p0 -b .progname
%patch304 -p0 -b .run-mozilla
%patch401 -p1 -b .kde

%build
%if 0%{?use_bundled_cbindgen}
mkdir -p my_rust_vendor
cd my_rust_vendor
tar xf %{SOURCE22}
mkdir -p .cargo
cat > .cargo/config <<EOL
[source.crates-io]
replace-with = "vendored-sources"
 
[source.vendored-sources]
directory = "`pwd`"
EOL
 
env CARGO_HOME=.cargo cargo install cbindgen
export PATH=`pwd`/.cargo/bin:$PATH
%endif
cd -

export RUSTFLAGS="-Cdebuginfo=0"

%if %{mdvver} < 201910
sed -i "s/python3/python3.8/g" configure.in
sed -i "s/python3/python3.8/g" mach
export PYTHON3=/usr/libexec/python3.8
export PATH=/usr/libexec:$PATH
%endif

%if 0%{?clang}
%define linker lld
export CC=clang
export CXX=clang++
%else
%define linker gold
export CC=%{__cc}
export CXX=%{__cxx}
%endif

export MOZCONFIG=`pwd`/.mozconfig
cat > $MOZCONFIG << EOF
mk_add_options BUILD_OFFICIAL=1
mk_add_options MOZILLA_OFFICIAL=1
mk_add_options MOZ_MAKE_FLAGS="%{_smp_mflags}"
mk_add_options MOZ_OBJDIR=`pwd`/%{objdir}
mk_add_options MOZ_CO_PROJECT=mail
ac_add_options --enable-application=comm/mail
ac_add_options --libdir="%{_libdir}"
ac_add_options --prefix="%{_prefix}"
ac_add_options --host=%{_host}
ac_add_options --disable-crashreporter
ac_add_options --disable-debug
%ifnarch aarch64
ac_add_options --disable-elf-hack
%endif
ac_add_options --disable-system-cairo
ac_add_options --disable-tests
ac_add_options --disable-updater
ac_add_options --enable-default-toolkit=cairo-gtk3
#ac_add_options --enable-linker=%%{linker}
ac_add_options --enable-official-branding
ac_add_options --enable-update-channel=release
ac_add_options --with-system-jpeg
ac_add_options --with-system-libevent
ac_add_options --with-system-libvpx
%if %{with system_nss_nspr}
ac_add_options --with-system-nspr
ac_add_options --with-system-nss
%endif
ac_add_options --with-system-zlib
ac_add_options --without-system-libvpx
ac_add_options --with-unsigned-addon-scopes=app,system
ac_add_options --allow-addon-sideload
ac_add_options --enable-chrome-format=omni
ac_add_options --enable-js-shell
ac_add_options --enable-release
ac_add_options --update-channel=release
EOF

# force memory efficient linking and ets
%if 0%{?clang}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%else
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory -Wl,--reduce-memory-overheads"
%endif

# This mach command requires /builddir/.mozbuild/_virtualenvs/mach/bin/python,
# which wasn't found on the system!
# Consider running 'mach bootstrap' or 'mach create-mach-environment'
# to create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use
# the system Python installation over a virtualenv.
export MACH_USE_SYSTEM_PYTHON=1

./mach build

%install
mkdir -p %{buildroot}{%{_libdir},%{_bindir},%{_datadir}/applications}
mkdir -p %{buildroot}%{tbdir}

# This mach command requires /builddir/.mozbuild/_virtualenvs/mach/bin/python,
# which wasn't found on the system!
# Consider running 'mach bootstrap' or 'mach create-mach-environment'
# to create the mach virtualenvs, or set MACH_USE_SYSTEM_PYTHON to use
# the system Python installation over a virtualenv.
export MACH_USE_SYSTEM_PYTHON=1
DESTDIR=%{buildroot} STRIP=/bin/true MOZ_PKG_FATAL_WARNINGS=0 ./mach install

rm -f extensions/spellcheck/locales/en-US/hunspell/en-US.{dic,aff}

# Use the system hunspell dictionaries
rm -rf %{buildroot}%{tbdir}/dictionaries
ln -s /usr/share/dict/mozilla %{buildroot}%{tbdir}/dictionaries

install -p -D %{buildroot}%{tbdir}/chrome/icons/default/default256.png %{buildroot}%{_datadir}/pixmaps/%{oname}.png

# install desktop files
cp -rf %{S:1} %{buildroot}%{_datadir}/applications

# delete a symlink
rm -fr %{buildroot}%{_bindir}/%{oname}

# copy the thunderbird startup script for x11/wayland
cp -fr %{S:2} %{buildroot}%{_bindir}/%{oname}
sed -i "s|@LIBS@|%{_libdir}|g" %{buildroot}%{_bindir}/%{oname}
chmod +x %{buildroot}%{_bindir}/%{oname}

# For backwards compatibility with old profiles. Bug #37528
install -m 755 %{SOURCE31} %{buildroot}%{tbdir}/open-browser.sh
# For new profiles
%define COMMAND /usr/bin/xdg-open

cat %{SOURCE12} | perl -p -e 's,THUNDERBIRD_RPM_VR,%{version}-%{release},g;' \
	-e 's,THUNDERBIRD_VENDOR_COMMENT,%{mandriva_release},g;' \
	> %{buildroot}/mdv-default-prefs
cp -a %{buildroot}/mdv-default-prefs %{buildroot}%{tbdir}/defaults/pref/all-mandriva.js
rm -f %{buildroot}/mdv-default-prefs

# icons
mkdir -p %{buildroot}{%{_liconsdir},%{_iconsdir},%{_miconsdir}}
rm -f %{buildroot}/%{tbdir}/chrome/icons/default/default*.png

for s in 16 22 24 32 48 64 128 256; do
	mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps
	cp -p comm/mail/branding/%{oname}/default${s}.png \
	%{buildroot}%{_datadir}/icons/hicolor/${s}x${s}/apps/%{oname}.png
done

#exclude devel files
rm -rf %{buildroot}%{_datadir}/idl/%{oname}-%{version}
rm -rf %{buildroot}%{_includedir}/%{oname}-%{version}
rm -rf %{buildroot}%{_libdir}/%{oname}-devel-%{version}

%pre
if [ $1 == 2 ]; then
	if [ -d %{tbdir}/dictionaries ]; then
		# Otherelse rpm can't switch this into a symlink :(
		rm -rf %{tbdir}/dictionaries
	fi
fi

%post
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
	%{_bindir}/gtk-update-icon-cache --force --quiet %{_datadir}/icons/hicolor
fi

%postun
if [ "$1" = "0" -a -x %{_bindir}/gtk-update-icon-cache ]; then
	%{_bindir}/gtk-update-icon-cache --force --quiet %{_datadir}/icons/hicolor
fi

%triggerun -- thunderbird-78

LANG="${LANG:-}"

if [[ "$LANG" =~ ^ru(|_.*).UTF-8$ ]] ; then
	echo "Thunderbird был обновлен до новой мажорной версии."
	echo "Сделайте резервную копию профиля (~/.thunderbird) перед первым запуском."
else
	echo "Thunderbird has been upgraded to a new major version."
	echo "Make a backup of your profile (~/.thunderbird) before running the new version."
fi


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19970 |21mr|thunderbird-91-l10n-91.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%define thunderbird_package thunderbird

%define name thunderbird-91-l10n
%define oname thunderbird-91
%define version 91.13.0

%define release 1

#%%define thunderbird_epoch 0
#%%define thunderbird_version %{version}

%define up_ca_name thunderbird
%define lib_name %{up_ca_name}
%define tbdir %{_libdir}/%{lib_name}
%global langpackdir %{tbdir}/extensions
%define tb_appid \{3550f703-e582-4d05-9a08-453d09bdfdc6\}
%define tbextdir %{_datadir}/mozilla/extensions/%{tb_appid}

%define xpidir http://ftp.mozilla.org/pub/mozilla.org/thunderbird/releases/%{thunderbird_version}/linux-i686/xpi/

# Supported l10n language lists
%define langlist af ar be bg ca cs da de el en_GB es_AR es_ES et eu fi fr fy ga gd gl he hu id is it ja ka ko lt lv nb_NO nl nn_NO pa_IN pl pt_PT pt_BR ro ru sk sl sq sv_SE th tr uk uz vi zh_CN zh_TW
# Disabled l10n languages, for any reason
%define disabled_langlist bn_BD en_Ca et_EE gu_IN mk si sr

# Disabled myspell dicts, for any reason
%define disabled_dict_langlist ar be br_FR es_AR eu fi fy ga gu_IN he ja ko mk pa_IN tr zh_CN zh_TW

# Language descriptions
%define language_af af
%define langname_af Afrikaans
%define language_ar ar
%define langname_ar Arabic
%define language_be be
%define langname_be Belarusian
%define language_bg bg
%define langname_bg Bulgarian
%define language_bn_BD bn-BD
%define langname_bn_BD Bengali (Bangla)
%define language_br_FR br-FR
%define langname_br_FR Breton
%define language_ca ca
%define langname_ca Catalan
%define language_cs cs
%define langname_cs Czech
%define language_da da
%define langname_da Dansk
%define language_de de
%define langname_de German
%define language_el el
%define langname_el Greek
%define language_en_Ca en-Ca
%define langname_en_Ca English-Canada
%define language_en_GB en-GB
%define langname_en_GB British English
%define language_es_AR es-AR
%define langname_es_AR Spanish (Argentina)
%define language_es_ES es-ES
%define langname_es_ES Spanish
%define language_et_EE et-EE
%define langname_et_EE Estonian (Magento)
%define language_et et
%define langname_et Estonian
%define language_eu eu
%define langname_eu Basque
%define language_fi fi
%define langname_fi Finnish
%define language_fr fr
%define langname_fr French
%define language_fy fy-NL
%define langname_fy Frisian
%define language_ga ga-IE
%define langname_ga Irish
%define language_gd gd
%define langname_gd Scottish Gaelic
%define language_gl gl
%define langname_gl Galician
%define language_gu_IN gu-IN
%define langname_gu_IN Gujarati
%define language_he he
%define langname_he Hebrew
%define language_hu hu
%define langname_hu Hungarian
%define language_id id
%define langname_id Indonesian
%define language_is is
%define langname_is Icelandic
%define language_it it
%define langname_it Italian
%define language_ja ja
%define langname_ja Japanese
%define language_ka ka
%define langname_ka Georgian
%define language_ko ko
%define langname_ko Korean
%define language_lv lv
%define langname_lv Latvian
%define language_lt lt
%define langname_lt Lithuanian
%define language_mk mk
%define langname_mk Macedonian
%define language_nb_NO nb-NO
%define langname_nb_NO Norwegian Bokmaal
%define language_nn_NO nn-NO
%define langname_nn_NO Norwegian Nynorsk
%define language_nl nl
%define langname_nl Dutch
%define language_pa_IN pa-IN
%define langname_pa_IN Punjabi (gurmukhi)
%define language_pl pl
%define langname_pl Polish
%define language_pt_BR pt-BR
%define langname_pt_BR Brazilian portuguese
%define language_pt_PT pt-PT
%define langname_pt_PT Portuguese
%define language_ro ro
%define langname_ro Romanian
%define language_ru ru
%define langname_ru Russian
%define language_si si
%define langname_si Sinhala
%define language_sk sk
%define langname_sk Slovak
%define language_sq sq
%define langname_sq Albanian
%define language_sl sl
%define langname_sl Slovenian
%define language_sr sr
%define langname_sr Serbian
%define language_sv_SE sv-SE
%define langname_sv_SE Swedish
%define language_ta_LK ta-LK
%define langname_ta_LK Tamil (Sri-Lanka)
%define language_th th
%define langname_th Thai
%define language_tr tr
%define langname_tr Turkish
%define language_uk uk
%define langname_uk Ukrainian
%define language_uz uz
%define langname_uz Uzbek
%define language_vi vi
%define langname_vi Vietnamese
%define language_zh_CN zh-CN
%define langname_zh_CN Simplified Chinese
%define language_zh_TW zh-TW
%define langname_zh_TW Traditional Chinese

# --- Danger line ---

# Defaults (all languages enabled by default)
# l10n
%{expand:%(for lang in %langlist; do echo "%%define with_$lang 1"; done)}
%{expand:%(for lang in %disabled_langlist; do echo "%%define with_$lang 0"; done)}
# dicts
%{expand:%(for lang in %langlist; do echo "%%define with_dict_$lang %{use_dict}"; done)}
%{expand:%(for lang in %disabled_dict_langlist; do echo "%%define with_dict_$lang 0"; done)}

# Locales
%{expand:%(for lang in %langlist; do echo "%%define locale_$lang `echo $lang | cut -d _ -f 1` "; done)}

#define debug_package %%{nil}

Summary:	Localizations for Thunderbird (virtual package)
Name:		%{name}
Version:	%{version}
Release:	%{release}
License:	GPL
Group:		Networking/WWW
Url:		http://www.mozilla.org
# Language package template
Source0:	%{name}-template.in
Source1:	thunderbird-xpi-%{version}.tar.xz
# No deleted
Source10:	get-langpacks.sh
Source500:	%{name}.rpmlintrc

%description
Localizations for Thunderbird

# Expand all languages packages.
%{expand:%(\
	for lang in %langlist; do\
		echo "%%{expand:%%(sed "s!__LANG__!$lang!g" %{_sourcedir}/%{name}-template.in 2> /dev/null)}";\
	done\
	)
}

%prep

%build

%install
# langpacks install
mkdir -p %{buildroot}%{langpackdir}
pushd %{buildroot}%{langpackdir}
tar xf %{SOURCE1}
chmod a+r *.xpi

rm -f langpack-ast@thunderbird.mozilla.org.xpi
rm -f langpack-br@thunderbird.mozilla.org.xpi
rm -f langpack-cal-ast@lightning.mozilla.org.xpi
rm -f langpack-cal-br@lightning.mozilla.org.xpi
rm -f langpack-cal-cak@lightning.mozilla.org.xpi
rm -f langpack-cal-cy@lightning.mozilla.org.xpi
rm -f langpack-cal-dsb@lightning.mozilla.org.xpi
rm -f langpack-cal-en-US@lightning.mozilla.org.xpi
rm -f langpack-cal-hr@lightning.mozilla.org.xpi
rm -f langpack-cal-hsb@lightning.mozilla.org.xpi
rm -f langpack-cal-hy-AM@lightning.mozilla.org.xpi
rm -f langpack-cal-ka@lightning.mozilla.org.xpi
rm -f langpack-cal-kab@lightning.mozilla.org.xpi
rm -f langpack-cal-kk@lightning.mozilla.org.xpi
rm -f langpack-cal-ms@lightning.mozilla.org.xpi
rm -f langpack-cal-rm@lightning.mozilla.org.xpi
rm -f langpack-cal-sr@lightning.mozilla.org.xpi
rm -f langpack-cy@thunderbird.mozilla.org.xpi
rm -f langpack-dsb@thunderbird.mozilla.org.xpi
rm -f langpack-en-CA@thunderbird.mozilla.org.xpi
rm -f langpack-en-US@thunderbird.mozilla.org.xpi
rm -f langpack-hr@thunderbird.mozilla.org.xpi
rm -f langpack-hsb@thunderbird.mozilla.org.xpi
rm -f langpack-hy-AM@thunderbird.mozilla.org.xpi
rm -f langpack-kab@thunderbird.mozilla.org.xpi
rm -f langpack-cak@thunderbird.mozilla.org.xpi
rm -f langpack-kk@thunderbird.mozilla.org.xpi
rm -f langpack-ms@thunderbird.mozilla.org.xpi
rm -f langpack-rm@thunderbird.mozilla.org.xpi
rm -f langpack-sr@thunderbird.mozilla.org.xpi

popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19971 |21mr|thymeleaf-2.1.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
Name:          thymeleaf
Version:       2.1.4
Release:       11
Summary:       XML/XHTML/HTML5 template engine for Java
# The Fedora Packaging Committee granted thymeleaf a bundling exception to carry
# altered DTDs (... is fine, assuming the license allows it)
# https://fedorahosted.org/fpc/ticket/516
# W3C: src/main/resources/org/thymeleaf/dtd/standard/xhtml1-frameset.dtd
#  src/main/resources/org/thymeleaf/dtd/standard/xhtml1-strict.dtd
#  src/main/resources/org/thymeleaf/dtd/standard/xhtml1-transitional.dtd
#  src/main/resources/org/thymeleaf/dtd/standard/xhtml-lat1.ent
#  src/main/resources/org/thymeleaf/dtd/standard/xhtml-symbol.ent
#  src/main/resources/org/thymeleaf/dtd/standard/xhtml-special.ent
License:       ASL 2.0 and W3C
URL:           http://www.thymeleaf.org/
Source0:       https://github.com/thymeleaf/thymeleaf/archive/%{name}-%{namedversion}.tar.gz
# from http://www.w3.org/Consortium/Legal/2002/copyright-software-20021231
Source1:       W3C-license.txt
# Replace ognl 3.0.8
Patch0:        thymeleaf-2.1.4-commons-ognl.patch

BuildRequires: maven-local
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(net.sourceforge.nekohtml:nekohtml)
BuildRequires: mvn(org.apache.commons:commons-ognl)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.unbescape:unbescape)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Thymeleaf is a Java library. It is an XML/XHTML/HTML5 template engine
(extensible to other formats) that can work both in web and
non-web environments. It is better suited for serving XHTML/HTML5 at the
view layer of web applications, but it can process any XML file
even in offline environments. 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}
find -name "*.class" -delete
find -name "*.jar" -print -delete

%patch0 -p1

%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:configuration/pom:reportOutputDirectory"

%pom_xpath_set "pom:properties/pom:maven.compile.source" 1.6
%pom_xpath_set "pom:properties/pom:maven.compile.target" 1.6

# Default is US-ASCII
%pom_xpath_set "pom:plugin[pom:artifactId = 'maven-compiler-plugin']/pom:configuration/pom:encoding" UTF-8
%pom_xpath_set "pom:plugin[pom:artifactId = 'maven-resources-plugin']/pom:configuration/pom:encoding" UTF-8

%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet']/pom:version" 3.1.0
%pom_xpath_set "pom:dependency[pom:groupId = 'javax.servlet']/pom:artifactId" javax.servlet-api

chmod 644 ChangeLog.txt NOTICE.txt

cp -p %{SOURCE1} .
sed -i 's/\r//' W3C-license.txt

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc ChangeLog.txt CONTRIBUTING.markdown README.txt RELEASING.txt USAGE.txt
%license LICENSE.txt NOTICE.txt W3C-license.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt W3C-license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19972 |21mr|tidy-5.7.28-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Program for tidying up messy HTML
Name:		tidy
Version:	5.7.28
Release:	2
Epoch:		1
License:	W3C License
Group:		Text tools
Url:		http://tidy.sourceforge.net/
Source0:	https://github.com/htacg/tidy-html5/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# backported for fix CVE-2021-33391
Patch1:		tidy-improve-internal-doc.patch
Patch0:		CVE-2021-33391.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	xsltproc

%description
tidy is a program for tidying up messy html, for example, when we do
html in vi, and we make the text italic with the <i> </i> tag some of us may
forget to end the italic text with </i>. tidy fixes this.

Install this if you need a program to help you tidy up your HTML.

%files
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libtidy.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/tidy.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-html5-%{version}

%build
%cmake -G Ninja
%ninja_build

%install
%ninja_install -C build

# delete static lib
rm %{buildroot}%{_libdir}/libtidys.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19973 |21mr|tiger-types-2.2-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          tiger-types
Version:       2.2
Release:       9
Summary:       Type arithmetic library for Java5
License:       CDDL-1.0 or GPLv2 with exceptions
Url:           https://github.com/kohsuke/tiger-types
Source0:       https://github.com/kohsuke/%{name}/archive/%{name}-%{version}.tar.gz
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# tiger-types package don't include the license file
Source1:       glassfish-LICENSE.txt

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Tiger-types is a type arithmetic library for Java5.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
# add OSGi support required by glassfish hk2
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<configuration>
  <instructions>
      <Embed-Dependency>*;scope=provided;inline=true</Embed-Dependency>
      <Export-Package>org.jvnet.tiger_types.*</Export-Package>
  </instructions>
  <unpackBundle>true</unpackBundle>
</configuration>
<executions>
  <execution>
      <id>osgi-bundle</id>
      <phase>package</phase>
      <goals>
          <goal>bundle</goal>
      </goals>
  </execution>
</executions>'

# not needed
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :maven-site-plugin
%pom_xpath_remove "pom:build/pom:extensions"


%mvn_file :%{name} %{name}

cp -p %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19974 |21mr|tigervnc-1.13.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without java

Summary:	Viewer for the VNC remote display system
Name:		tigervnc
Version:	1.13.1
Release:	1
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://www.tigervnc.com/
Source0:	https://github.com/TigerVNC/tigervnc/archive/v%{version}/%{name}-%{version}.tar.gz
Source1:	vncserver.service
Source2:	vncserver.sysconfig
Source3:	10-libvnc.conf
Source4:	xvnc.service
Source5:	xvnc.socket
# this patch from source code: unix/xserver21.1.1.patch
Source6:	xserver21.1.1.patch
Patch3:		tigervnc-shebang.patch
# we put cmake build into a different dir (from us, then mga, then back here :)
Patch8:		tigervnc-1.11.0-mga-buildir.patch
BuildRequires:	cmake
BuildRequires:	meson
BuildRequires:	fltk-devel
BuildRequires:	ffmpeg-devel
BuildRequires:	imagemagick
BuildRequires:	nasm
BuildRequires:	x11-font-util
BuildRequires:	x11-server-source
BuildRequires:	x11-util-macros
BuildRequires:	gettext-devel
%if !%{without java}
BuildRequires:	java-devel
%endif
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(libxcvt)
BuildRequires:	pkgconfig(xfont)
BuildRequires:	pkgconfig(xfont2)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xtrans)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xdmcp)
# Old RealVNC package:
Requires:	%{name}-icons = %{EVRD}
Provides:	vncviewer = %{EVRD}

%description
Virtual Network Computing (VNC) is a remote display system which
allows you to view a computing 'desktop' environment not only on the
machine where it is running, but from anywhere on the Internet and
from a wide variety of machine architectures. This package contains a
client which will allow you to connect to other desktops running a VNC
server.

%files -f %{name}.lang
%doc LICENCE.TXT README.rst
%{_bindir}/vncviewer
%{_datadir}/applications/*
%{_mandir}/man1/vncviewer.1*
%{_datadir}/metainfo/org.tigervnc.vncviewer.metainfo.xml
#------------------------------------------------------------------------------

%package server
Summary:	Server for the VNC remote display system
Group:		Networking/Remote access
# Old RealVNC package:
Requires:	%{name}-server-minimal = %{EVRD}
Requires(postun): rpm-helper
Provides:	vnc-server = %{EVRD}

%description server
The VNC system allows you to access the same desktop from a wide
variety of platforms. This package is a TigerVNC server, allowing
others to access the desktop on your machine.

%files server
%doc LICENCE.TXT
%config(noreplace) %{_sysconfdir}/%{name}/vncserver-config-defaults
%config(noreplace) %{_sysconfdir}/%{name}/vncserver-config-mandatory
%config(noreplace) %{_sysconfdir}/%{name}/vncserver.users
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/vncservers
%{_bindir}/x0vncserver
%{_libexecdir}/vncserver
%{_libexecdir}/vncsession-start
%{_mandir}/man1/x0vncserver.1*
%{_mandir}/man8/vncserver.8*
%{_mandir}/man8/vncsession.8*
%{_prefix}/%{_unitdir}/vncserver@.service
%{_sbindir}/vncsession
%{_unitdir}/vncserver@.service
%{_unitdir}/xvnc.socket
%{_unitdir}/xvnc@.service

%post server
%systemd_post xvnc.socket

%preun server
%systemd_preun xvnc.socket

#------------------------------------------------------------------------------

%package server-minimal
Summary:	A minimal installation of TigerVNC server
Group:		Networking/Remote access
Requires:	x11-server-xorg

%description server-minimal
The VNC system allows you to access the same desktop from a wide
variety of platforms. This package contains minimal installation
of TigerVNC server, allowing others to access the desktop on your
machine.

%files server-minimal
%doc LICENCE.TXT
%{_bindir}/vncconfig
%{_bindir}/vncpasswd
%{_bindir}/Xvnc
%{_mandir}/man1/Xvnc.1*
%{_mandir}/man1/vncpasswd.1*
%{_mandir}/man1/vncconfig.1*

#------------------------------------------------------------------------------

%package server-applet
Summary:	Java TigerVNC viewer applet for TigerVNC server
Group:		Networking/Remote access
Requires:	java-1.8.0-openjdk
Requires:	%{name}-server = %{EVRD}
Provides:	vnc-java = %{EVRD}
Provides:	%{name}-java = %{EVRD}
BuildArch:	noarch

%description server-applet
The Java TigerVNC viewer applet for web browsers. Install this package to allow
clients to use web browser when connect to the TigerVNC server.

%if !%{without java}
%files server-applet
%doc java/com/%{name}/vncviewer/README
%{_datadir}/%{name}
%{_javadir}/*.jar
%endif
#------------------------------------------------------------------------------

%package icons
Summary:	Icons for TigerVNC viewer
Group:		Networking/Remote access
BuildArch:	noarch

%description icons
This package contains icons for TigerVNC viewer

%files icons
%doc LICENCE.TXT
%{_datadir}/icons/hicolor/*/apps/*

#------------------------------------------------------------------------------

%package server-module
Summary:	Xorg module for the VNC remote display system
Group:		Networking/Remote access
Provides:	vnc-server-module = %{EVRD}
Requires:	x11-server-xorg

%description server-module
This package contains libvnc.so module to X server, allowing others
to access the desktop on your machine.

%files server-module
%doc LICENCE.TXT
%{_libdir}/xorg/modules/extensions/libvnc.so
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf

#------------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
cp -r /usr/share/x11-server-source/* unix/xserver
pushd unix/xserver
for all in `find . -type f -perm -001`; do
	chmod -x "$all"
done
patch -p1 < %{SOURCE6}
popd
%autopatch -p1

%build
# Temporary build with -fno-omit-frame-pointer, it causes problems
export CFLAGS="%{optflags} -fno-omit-frame-pointer"
export CXXFLAGS="$CFLAGS"
export JAVA_TOOL_OPTIONS=-Dfile.encoding=UTF8

%cmake
%make_build
cd ..

# XXX: I'm not sure this define is actually needed
# Need this for shared objects that reference X Server, or other modules symbols
# Search for modules in extra_module_dir before the default path.
# This will allow fglrx to install its modified modules in more cleaner way.
%define extra_module_dir %{_libdir}/xorg/extra-modules

pushd unix/xserver
rm -f configure
autoreconf -fiv

# After the "--disable-config-hal", most options are just a paste from
# Mandriva's x11-server. We need to check what we can clean here (without
# reducing features)
#export CC=gcc
%configure \
    --disable-config-dbus	\
    --disable-config-hal	\
    --disable-dmx		\
    --disable-dri		\
    --disable-dri3		\
    --disable-kdrive	\
    --disable-selective-werror \
    --disable-static	\
    --disable-unit-tests	\
    --disable-xephyr	\
    --disable-xnest		\
    --disable-xorg		\
    --disable-xvfb		\
    --disable-xwayland	\
    --disable-xwin		\
    --enable-dri2		\
    --enable-glx		\
    --enable-install-libxf86config \
    --enable-pam		\
    --enable-xwrapper	\
    --with-default-font-path="catalogue:%{_sysconfdir}/X11/fontpath.d" \
    --with-extra-module-dir=%{extra_module_dir} \
    --with-log-dir=%{_logdir} \
    --with-os-name="`echo \`uname -s -r\` | sed -e s'/ /_/g'`" \
    --with-os-vendor="RosaLinux" \
    --with-pic		\
    --with-vendor-web="http://rosalinux.ru" \
    --without-dtrace

%make_build
popd

# Build icons
pushd media
%cmake
%make_build
popd

# Build java
%if !%{without java}
pushd java
%cmake
%make_build
popd
%endif

%install
pushd build
%make_install
popd

pushd unix/xserver/hw/vnc
%make_install
popd

# Install systemd unit file
mkdir -p %{buildroot}%{_unitdir}
install -m644 %{SOURCE1} %{buildroot}%{_unitdir}/vncserver@.service
install -m644 %{SOURCE4} %{buildroot}%{_unitdir}/xvnc@.service
install -m644 %{SOURCE5} %{buildroot}%{_unitdir}/xvnc.socket
rm -rf %{buildroot}%{_initrddir}

mkdir -p %{buildroot}%{_sysconfdir}/sysconfig
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/vncservers

# Install desktop stuff
mkdir -p %{buildroot}/%{_datadir}/icons/hicolor/{16x16,24x24,48x48}/apps

pushd media/icons
	for s in 16 24 48; do
		install -m644 %{name}_$s.png %{buildroot}/%{_datadir}/icons/hicolor/${s}x$s/apps/%{name}.png
	done
popd

%find_lang %{name} %{name}.lang

mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
install -c -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/10-libvnc.conf

# remove unwanted files
rm -f %{buildroot}/%{_libdir}/xorg/modules/extensions/libvnc.la
rm -rf %{buildroot}/%{_datadir}/doc/%{name}

# java
%if !%{without java}
install -d -m 755 %{buildroot}%{_javadir}
install -d -m 755 %{buildroot}%{_datadir}/%{name}/classes
install -m 755 java/build/VncViewer.jar %{buildroot}%{_datadir}/%{name}/classes/vncviewer-%{version}.jar
mv %{buildroot}%{_datadir}/%{name}/classes/vncviewer-%{version}.jar %{buildroot}%{_javadir}/
ln -s %{_javadir}/vncviewer-%{version}.jar %{buildroot}%{_datadir}/%{name}/classes/VncViewer.jar
ln -s vncviewer-%{version}.jar %{buildroot}%{_javadir}/vncviewer.jar
ln -s vncviewer-%{version}.jar %{buildroot}%{_javadir}/VncViewer.jar
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19975 |21mr|tika-1.17-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionals to help breaking tika <-> vorbis-java-tika dependency cycle
%bcond_with vorbis_tika
# Disable only for now
%bcond_with tika_parsers
%bcond_with tika_app

Name:          tika
Version:       1.17
Release:       4
Summary:       A content analysis toolkit
License:       ASL 2.0
Url:           http://tika.apache.org/
# sh tika-repack.sh <VERSION>
Source0:       %{name}-%{version}-clean.tar.xz
Source1:       tika-repack.sh

# The upstream PDFBox project retired the JempBox sub-project, so patch out it's use
# Upstream Tika should migrate to the PDFBox's XMPBox lib instead
Patch0:        tika-no-jempbox.patch

BuildRequires:  maven-local
BuildRequires:  mvn(biz.aQute:bndlib)
BuildRequires:  mvn(com.adobe.xmp:xmpcore)
BuildRequires:  mvn(com.drewnoakes:metadata-extractor:2)
BuildRequires:  mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires:  mvn(com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider)
BuildRequires:  mvn(com.google.code.gson:gson)
BuildRequires:  mvn(com.googlecode.json-simple:json-simple)
BuildRequires:  mvn(com.googlecode.juniversalchardet:juniversalchardet)
BuildRequires:  mvn(com.h2database:h2)
BuildRequires:  mvn(com.healthmarketscience.jackcess:jackcess)
BuildRequires:  mvn(com.healthmarketscience.jackcess:jackcess-encrypt)
BuildRequires:  mvn(commons-cli:commons-cli)
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(com.optimaize.languagedetector:language-detector)
BuildRequires:  mvn(com.pff:java-libpst)
BuildRequires:  mvn(com.rometools:rome)
BuildRequires:  mvn(de.l3s.boilerpipe:boilerpipe)
BuildRequires:  mvn(edu.ucar:cdm)
BuildRequires:  mvn(edu.ucar:grib)
BuildRequires:  mvn(edu.ucar:httpservices)
BuildRequires:  mvn(edu.ucar:netcdf4)
BuildRequires:  mvn(net.sourceforge.jmatio:jmatio)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.commons:commons-csv)
BuildRequires:  mvn(org.apache.commons:commons-exec)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.commons:commons-math3)
BuildRequires:  mvn(org.apache.cxf:cxf-rt-frontend-jaxrs)
BuildRequires:  mvn(org.apache.cxf:cxf-rt-rs-client)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.apache.felix.scr.annotations)
BuildRequires:  mvn(org.apache.httpcomponents:httpclient)
BuildRequires:  mvn(org.apache.httpcomponents:httpmime)
BuildRequires:  mvn(org.apache.james:apache-mime4j-core) >= 0.8.1
BuildRequires:  mvn(org.apache.james:apache-mime4j-dom) >= 0.8.1
BuildRequires:  mvn(org.apache.lucene:lucene-analyzers-common)
BuildRequires:  mvn(org.apache.lucene:lucene-analyzers-icu)
BuildRequires:  mvn(org.apache.lucene:lucene-core)
BuildRequires:  mvn(org.apache.lucene:lucene-memory)
BuildRequires:  mvn(org.apache.maven.plugins:maven-failsafe-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(org.apache.opennlp:opennlp-tools)
BuildRequires:  mvn(org.apache.pdfbox:pdfbox)
BuildRequires:  mvn(org.apache.pdfbox:pdfbox-tools)
BuildRequires:  mvn(org.apache.poi:poi) >= 3.17
BuildRequires:  mvn(org.apache.poi:poi-ooxml) >= 3.17
BuildRequires:  mvn(org.apache.poi:poi-ooxml-schemas) >= 3.17
BuildRequires:  mvn(org.apache.poi:poi-scratchpad) >= 3.17
BuildRequires:  mvn(org.bouncycastle:bcmail-jdk15on)
BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires:  mvn(org.ccil.cowan.tagsoup:tagsoup)
BuildRequires:  mvn(org.codelibs:jhighlight)
%if %{without vorbis_tika}
BuildRequires:  mvn(org.gagravarr:vorbis-java-core)
BuildRequires:  mvn(org.gagravarr:vorbis-java-tika)
%endif
BuildRequires:  mvn(org.osgi:org.osgi.compendium)
BuildRequires:  mvn(org.osgi:org.osgi.core)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.slf4j:jcl-over-slf4j)
BuildRequires:  mvn(org.slf4j:jul-to-slf4j)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-log4j12)
BuildRequires:  mvn(org.tukaani:xz)
BuildRequires:  mvn(org.xerial:sqlite-jdbc)

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Apache Tika toolkit detects and extracts meta-data and
structured text content from various documents using existing
parser libraries.

%if %{without tika_parsers}
%if %{without tika_app}
%package app
Summary: Apache Tika Application
# Explicit requires for javapackages-tools since tika-app script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description app
Apache Tika standalone application.
%endif

%package batch
Summary: Apache Tika Batch

%description batch
Apache Tika Batch offers robust batch processing code
filesystem input -> filesystem output on a single machine.

%package java7
Summary: Apache Tika Java-7 Components

%description java7
Java-7 reliant components, including FileTypeDetector
implementations.

%package parsers
Summary: Apache Tika Parsers
Requires: apache-poi >= 3.17
Requires: apache-mime4j >= 0.8.1

%description parsers
Apache Tika Parsers implementation that matches the
type of the document, once it is known, using
Mime Type detection.

%package xmp
Summary: Apache Tika XMP

%description xmp
Converts Tika metadata to XMP.
%endif

%package parent
Summary: Apache Tika parent POM

%description parent
Apache Tika parent POM.

%package pom
Summary: Apache Tika Aggregator POM

%description pom
Apache Tika Aggregator POM.

%package serialization
Summary: Apache Tika serialization

%description serialization
Use GSON library support to serialize/deserialize
JSON Metadata objects.

%package translate
Summary: Apache Tika translate

%description translate
This is the translate Apache Tika toolkit.
Translator implementations may depend on
web services.

%package eval
Summary: Apache Tika eval
Requires: apache-poi >= 3.17

%description eval
Command line tool to assess the output of Tika or compare the output of
two different versions of Tika or other text extraction packages.

%package langdetect
Summary: Apache Tika language detection

%description langdetect
Tika is able to help identify the language of a piece of text, which is
useful when extracting text from document formats which do not include
language information in their metadata.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q

%pom_disable_module %{name}-bundle
%pom_disable_module %{name}-example

# Unavailable deps for these modules
%pom_disable_module %{name}-dl
%pom_disable_module %{name}-nlp
%pom_disable_module %{name}-server

# Unavailable plugins
%pom_remove_plugin org.codehaus.mojo:clirr-maven-plugin %{name}-core
%pom_remove_plugin org.codehaus.gmaven:groovy-maven-plugin %{name}-parsers

# Unnecessary plugins for RPM build
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin :forbiddenapis %{name}-parent
%pom_remove_plugin :maven-release-plugin %{name}-parent
%pom_remove_plugin :maven-shade-plugin tika-{server,eval,app,parent}
%pom_remove_plugin :maven-scr-plugin tika-{xmp,java7}

# Disable vorbis-java-tika support, cause circular dependency
%if %{with vorbis_tika}
%pom_remove_dep org.gagravarr: %{name}-parsers
%endif

%if %{with tika_parsers}
%pom_disable_module %{name}-parsers
%pom_disable_module %{name}-xmp
%else
%if %{with tika_app}
%pom_disable_module %{name}-app
%endif
%endif

# tika-translate
# https://gil.fedorapeople.org/microsoft-translator-java-api-0.6.2-1.fc19.src.rpm
%pom_remove_dep :microsoft-translator-java-api %{name}-translate
rm %{name}-translate/src/main/java/org/apache/tika/language/translate/MicrosoftTranslator.java \
 %{name}-translate/src/test/java/org/apache/tika/language/translate/MicrosoftTranslatorTest.java
sed -i '/MicrosoftTranslator/d' %{name}-translate/src/main/resources/META-INF/services/org.apache.tika.language.translate.Translator
rm %{name}-translate/src/main/resources/org/apache/tika/language/translate/translator.microsoft.properties
%pom_change_dep :junit ::4.11:test %{name}-translate

# Unavailable build dep com.googlecode.mp4parser:isoparser
# MP4 is non-free remove support for it
%pom_remove_dep com.googlecode.mp4parser:isoparser %{name}-parsers
rm -r tika-parsers/src/main/java/org/apache/tika/parser/mp4/ \
      tika-parsers/src/main/java/org/apache/tika/parser/pot/
# NON FREE under UnRar License
%pom_remove_dep com.github.junrar:junrar %{name}-parsers
rm %{name}-parsers/src/main/java/org/apache/tika/parser/pkg/RarParser.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/RarParserTest.java
# sis & geoapi use NON FREE deps: javax.measure:jsr-275
%pom_remove_dep org.apache.sis.core:sis-utility %{name}-parsers
%pom_remove_dep org.apache.sis.storage:sis-netcdf %{name}-parsers
%pom_remove_dep org.apache.sis.core:sis-metadata %{name}-parsers
#  https://github.com/opengeospatial/geoapi/issues/8
%pom_remove_dep org.opengis:geoapi %{name}-parsers
rm -r %{name}-parsers/src/main/java/org/apache/tika/parser/geoinfo \
 %{name}-parsers/src/test/java/org/apache/tika/parser/geoinfo
%pom_remove_dep org.apache.ctakes:ctakes-core %{name}-parsers
rm -r %{name}-parsers/src/main/java/org/apache/tika/parser/ctakes
# Remove NON FREE json.org support
%pom_remove_dep com.tdunning:json tika-parsers
rm -r tika-parsers/src/main/java/org/apache/tika/parser/{journal,recognition,captioning} \
      tika-parsers/src/main/java/org/apache/tika/parser/ner/{corenlp,nltk,grobid}
# Sentiment analysis not available in Fedora
%pom_remove_dep :sentiment-analysis-parser tika-parsers
rm -r tika-parsers/src/main/java/org/apache/tika/parser/sentiment
# Upstream pdfbox EOL'd the jempbox subproject
%pom_remove_dep org.apache.pdfbox:jempbox tika-parsers
rm -r tika-parsers/src/main/java/org/apache/tika/parser/image/xmp \
      tika-parsers/src/main/java/org/apache/tika/parser/pdf/PDFParser.java
%patch0
# No longer need CXF
%pom_remove_dep :cxf-rt-rs-client tika-parsers
# Various dep fixes for parsers
%pom_change_dep org.tallison:jmatio net.sourceforge.jmatio:jmatio tika-parsers
sed -i -e '/setAllowObjectDeserialization/d' tika-parsers/src/main/java/org/apache/tika/parser/mat/MatParser.java
%pom_change_dep :metadata-extractor ::2 tika-parsers

# This test require network
rm %{name}-core/src/test/java/org/apache/tika/mime/MimeDetectionTest.java \
 %{name}-core/src/test/java/org/apache/tika/detect/MimeDetectionWithNNTest.java
# These test fails for unavailable deps: com.googlecode.mp4parser:isoparser and org.gagravarr:vorbis-java-tika
rm -r %{name}-parsers/src/test/java/org/apache/tika/parser/mail/RFC822ParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/mbox/MboxParserTest.java
rm -r %{name}-parsers/src/test/java/org/apache/tika/detect/TestContainerAwareDetector.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/AutoDetectParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/asm/ClassParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/Bzip2ParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/GzipParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/TarParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/ZipParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/ZlibParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/Seven7ParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/CompressParserTest.java
rm -r %{name}-parsers/src/test/java/org/apache/tika/parser/image/ImageMetadataExtractorTest.java
# Fails for unavailable test resources
rm -r %{name}-parsers/src/test/java/org/apache/tika/parser/microsoft/ProjectParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/mp3/Mp3ParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/mime/TestMimeTypes.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/iwork/IWorkParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pkg/ArParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/executable/ExecutableParserTest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/ibooks/iBooksParserTest.java \
 %{name}-app/src/test/java/org/apache/tika/cli/TikaCLITest.java \
 %{name}-parsers/src/test/java/org/apache/tika/parser/pdf/PDFParserTest.java

# Fix build against lucene 6.3+
sed -i -e 's/\(import org.apache\.lucene\.analysis.\)util\.FilteringTokenFilter/\1FilteringTokenFilter/' \
  tika-eval/src/main/java/org/apache/tika/eval/tokens/*FilterFactory.java

# ComparisonFailure: Date/Time Original for when the photo was taken, unspecified time zone expected:<2009-08-11T[09]:09:45> but was:<2009-08-11T[11]:09:45>
rm -r %{name}-parsers/src/test/java/org/apache/tika/parser/jpeg/JpegParserTest.java
# Fail on ARM builder TestTimedOutException: test timed out after 30000 milliseconds
rm -r %{name}-batch/src/test/java/org/apache/tika/batch/fs/BatchDriverTest.java

%build
# skip tests for now because there are test failures:
# Tests which use cglib fail because of incompatibility with asm4
# Test fails for unavailable build deps: com.googlecode.mp4parser:isoparser
# Error occurred during initialization of VM
# Could not reserve enough space for 2097152KB object heap
%mvn_build -sf -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%if %{without tika_app}
%jpackage_script org.apache.tika.cli.TikaCLI "" "" %{name}:opennlp:jwnl:jackcess-encrypt:jackcess:google-gson:commons-io:commons-logging:log4j12-1.2.17:metadata-extractor2-2:juniversalchardet:apache-commons-codec:boilerpipe:thredds:bea-stax-api:commons-compress:felix/org.apache.felix.scr.annotations:apache-mime4j/core:apache-mime4j/dom:pdfbox:poi/poi:poi/poi-scratchpad:poi/poi-ooxml:bcmail:bcprov:tagsoup:objectweb-asm/asm-all:rome:fontbox:vorbis-java:dom4j:xmlbeans:poi/poi-ooxml-schemas:xmpcore:slf4j/api:slf4j/log4j12:jdom:jdom2 %{name}-app true
%endif

%files -f .mfiles-%{name}-core
%doc CHANGES.txt HEADER.txt KEYS README.md
%license LICENSE.txt NOTICE.txt

%if %{without tika_parsers}
%if %{without tika_app}
%files app -f .mfiles-%{name}-app
%{_bindir}/%{name}-app
%endif
%files batch -f .mfiles-%{name}-batch
%files java7 -f .mfiles-%{name}-java7
%files parsers -f .mfiles-%{name}-parsers
%files xmp -f .mfiles-%{name}-xmp
%endif

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt NOTICE.txt

%files pom -f .mfiles-%{name}
%license LICENSE.txt NOTICE.txt

%files serialization -f .mfiles-%{name}-serialization
%files translate -f .mfiles-%{name}-translate
%files eval -f .mfiles-%{name}-eval
%files langdetect -f .mfiles-%{name}-langdetect

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19976 |21mr|tiles-2.2.2-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global master_version 3
Name:          tiles
Version:       2.2.2
Release:       21
Group:         Development/Java
Summary:       Java templating framework for web application user interfaces
License:       ASL 2.0
Url:           http://tiles.apache.org/
Source0:       http://www.apache.org/dist/%{name}/v%{version}/%{name}-%{version}-src.tar.gz

# remove shale-test and maven-taglib-plugin
# change 
#  org.codehaus.mojo rat-maven-plugin in org.apache.rat apache-rat-plugin
#  org.codehaus.mojo jxr-maven-plugin in org.apache.maven.plugins maven-jxr-plugin
# use tomcat 7.x apis
Patch0:        %{name}-%{version}-fix-build.patch
# replace ognl ognl 2.7.3 with apache-commons-ognl
Patch1:        %{name}-%{version}-commons-ognl.patch
# add tiles-master relativePath
Patch2:        %{name}-%{version}-parent-pom.patch
# build fix fot tomcat 8.x apis
Patch3:        %{name}-%{version}-servlet3.1.patch

BuildRequires: mvn(commons-digester:commons-digester)
BuildRequires: mvn(javax.portlet:portlet-api)
BuildRequires: mvn(org.apache.commons:commons-ognl)
#BuildRequires: mvn(org.apache.tomcat:tomcat-el-api)
BuildRequires: mvn(org.apache.tomcat:tomcat-jasper-el)
#BuildRequires: mvn(org.apache.tomcat:tomcat-jsp-api)
#BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api) = 3.1.0
BuildRequires: mvn(org.apache.velocity:velocity-tools)
BuildRequires: mvn(org.freemarker:freemarker)
BuildRequires: mvn(org.mvel:mvel2)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-jdk14)
BuildRequires: slf4j

# test deps
%if 0
BuildRequires: mvn(org.easymock:easymockclassextension) >= 2.4
BuildRequires: mvn(org.apache.shale:shale-test) >= 1.0.5
%endif
BuildRequires: mvn(junit:junit)

BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
BuildRequires: maven-resources-plugin

# requires by remote-resources-plugin
BuildRequires: mvn(org.apache.maven.shared:maven-artifact-resolver)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache Tiles is a templating framework built to simplify the
development of web application user interfaces. Tiles allows
authors to define page fragments which can be assembled into
a complete page at runtime. These fragments, or tiles, can
be used as simple includes in order to reduce the duplication
of common page elements or embedded within other tiles to
develop a series of reusable templates. These templates
streamline the development of a consistent look and feel
across an entire application. Tiles grew in popularity as a
component of the popular Struts framework. It has since been
extracted from Struts and is now integrated with various
frameworks, such as Struts 2 and Shale.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p0
%patch3 -p1


# require org.springframework spring-webmvc-portlet 2.5.6
%pom_disable_module tiles-portlet-wildcard src/pom.xml
# org.springframework spring-web 2.5.6
%pom_disable_module tiles-servlet-wildcard src/pom.xml
# depends on previous artifacts
%pom_disable_module tiles-extras src/pom.xml
%pom_disable_module assembly src/pom.xml

sed -i "s|<artifactId>jasper-el|<artifactId>tomcat-jasper-el|" src/tiles-el/pom.xml

%if 0
sed -i "s|<groupId>javax.servlet</groupId>|<groupId>org.apache.tomcat</groupId>|" src/tiles-core/pom.xml \
 src/tiles-api/pom.xml \
 src/tiles-velocity/pom.xml \
 src/tiles-servlet/pom.xml \
 src/tiles-compat/pom.xml \
 src/tiles-portlet/pom.xml \
 src/tiles-jsp/pom.xml \
 src/tiles-extras/pom.xml \
 src/tiles-freemarker/pom.xml \
 src/tiles-el/pom.xml \
 src/tiles-servlet-wildcard/pom.xml

sed -i "s|<artifactId>servlet-api</artifactId>|<artifactId>tomcat-servlet-api</artifactId>|" src/tiles-core/pom.xml \
 src/tiles-api/pom.xml \
 src/tiles-velocity/pom.xml \
 src/tiles-servlet/pom.xml \
 src/tiles-compat/pom.xml \
 src/tiles-portlet/pom.xml \
 src/tiles-jsp/pom.xml \
 src/tiles-extras/pom.xml \
 src/tiles-freemarker/pom.xml \
 src/tiles-el/pom.xml \
 src/tiles-servlet-wildcard/pom.xml
%endif


%pom_remove_parent src
#cp -p %%{SOURCE1} pom.xml

%build

cd src
# TODO
# extras
# portlet-wildcard
# servlet-wildcard
%mvn_file :%{name}-api %{name}/api
%mvn_file :%{name}-compat %{name}/compat
%mvn_file :%{name}-core %{name}/core
%mvn_file :%{name}-el %{name}/el
%mvn_file :%{name}-freemarker %{name}/freemarker
%mvn_file :%{name}-jsp %{name}/jsp
%mvn_file :%{name}-mvel %{name}/mvel
%mvn_file :%{name}-ognl %{name}/ognl
%mvn_file :%{name}-portlet %{name}/portlet
%mvn_file :%{name}-servlet %{name}/servlet
%mvn_file :%{name}-template %{name}/template
%mvn_file :%{name}-velocity %{name}/velocity

# test skip for unavailable deps
%mvn_build -f

%install

(
cd src
%mvn_install
)

%files -f src/.mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f src/.mfiles-javadoc
%license LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19977 |21mr|time-1.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A GNU utility for monitoring a program's use of system resources
Name:		time
Version:	1.9
Release:	2
License:	GPLv2+
Group:		Monitoring
Url:		http://www.gnu.org/directory/GNU/time.html
Source0:	http://ftp.gnu.org/pub/gnu/time/%{name}-%{version}.tar.gz
BuildRequires:	texinfo

%description
The GNU time utility runs another program, collects information about
the resources used by that program while it is running and
displays the results.

Time can help developers optimize their programs.

The resources that `time' can report on fall into the general
categories of time, memory, I/O, and IPC calls.

The GNU version can format the output in arbitrary ways by using a 
printf-style format string to include various resource measurements.

%files
%defattr(644,root,root,755)
%doc NEWS README
%attr(755,root,root) %{_bindir}/%{name}
%{_infodir}/%{name}.info*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19978 |21mr|time-api-0.6.4-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname threeten
Name:          time-api
Version:       0.6.4
Release:       14
Summary:       JSR-310 - Date and Time API
# GPLv2: src-openjdk/main/java/java/util/GregorianCalendar.java
#        src-openjdk/main/java/java/util/Calendar.java
#        src-openjdk/main/java/java/util/Date.java
# Public Domain:  src/main/tzdata/tzdata200*.tar.gz
License:       BSD and GPLv2+ and Public Domain
Group:         Development/Java
URL:           http://threeten.github.com/
Source0:       https://github.com/ThreeTen/%{oname}/archive/v%{version}.tar.gz
Source1:       %{name}-template-pom.xml
Patch0:        %{name}-0.6.4-dont-compile-openjdk-classes.patch
BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: javapackages-tools
BuildRequires: maven-local

BuildRequires: ant
BuildRequires: emma
BuildRequires: testng

Requires:      jpackage-utils
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# https://fedorahosted.org/fpc/ticket/365
Provides:      bundled(openjdk8-javax-time) = %{version}-%{release}

%description
This JSR will provide a new and improved date and
time API for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{version}

# Use system libraries
sed -i 's|src="${maven.ibiblio.url}/@{group}/@{artifact}/@{version}/@{artifact}-@{version}@{variant}.jar"|src="file:///usr/share/java/@{artifact}.jar"|' build.xml

%patch0 -p0

cp -p %{SOURCE1} pom.xml
sed -i "s|@VERSION@|%{version}|" pom.xml

sed -i 's/\r//' COPYRIGHT-ASSIGN.txt LICENSE.txt LICENSE_OpenJDK.txt LICENSE_Oracle.txt \
 OpenJDKChallenge.txt README.txt RELEASE-NOTES.txt TODO.txt

%build

%mvn_build -f

%install

%mvn_install

# https://fedoraproject.org/wiki/Packaging:Java#Packages_providing_APIs
mkdir -p %{buildroot}%{_javadir}/javax.time
ln -sf %{_javadir}/%{name}/%{name}.jar %{buildroot}%{_javadir}/javax.time/

%files -f .mfiles
%{_javadir}/javax.time/%{name}.jar
%doc COPYRIGHT-ASSIGN.txt LICENSE.txt LICENSE_OpenJDK.txt LICENSE_Oracle.txt
%doc OpenJDKChallenge.txt README.txt RELEASE-NOTES.txt TODO.txt

%files javadoc -f .mfiles-javadoc
%doc COPYRIGHT-ASSIGN.txt LICENSE.txt LICENSE_OpenJDK.txt LICENSE_Oracle.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19979 |21mr|timeshift-22.06.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	System restore tool for Linux
Name:		timeshift
Version:	22.06.5
Release:	1
License:	GPLv3+
Group:		File tools
Url:		https://github.com/teejee2008/timeshift
Source0:	https://github.com/teejee2008/timeshift/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	timeshift-19.08.1-disable-donate-button.patch
Patch1:		fix.min.uid.patch
Patch2:		timeshift-gtk.desktop.patch
Patch3:		0005-build-with-debug-info.patch
BuildRequires:	desktop-file-utils
BuildRequires:	appstream-glib-devel
BuildRequires:	appstream-util
BuildRequires:	pkgconfig(gee-0.8)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(vte-2.91)
BuildRequires:	vala-devel
Requires:	cronie
Requires:	polkit
Requires:	psmisc
Requires:	rsync

%description
Timeshift for Linux is an application that provides functionality similar to
the System Restore feature in Windows and the Time Machine tool in Mac OS.
Timeshift protects your system by taking incremental snapshots of the file
system at regular intervals. These snapshots can be restored at a later date
to undo all changes to the system.

In RSYNC mode, snapshots are taken using rsync and hard-links. Common files
are shared between snapshots which saves disk space. Each snapshot is a full
system backup that can be browsed with a file manager.

In BTRFS mode, snapshots are taken using the in-built features of the BTRFS
filesystem. BTRFS snapshots are supported only on BTRFS systems having an
Ubuntu-type subvolume layout (with @ and @home subvolumes).

%files -f %{name}.lang
%doc AUTHORS COPYING LICENSE.md README.md
%{_appdatadir}/timeshift.appdata.xml
%{_bindir}/timeshift
%{_bindir}/timeshift-gtk
%{_bindir}/timeshift-launcher
%{_datadir}/applications/timeshift-gtk.desktop
%{_datadir}/icons/hicolor/*/apps/timeshift.png
%{_datadir}/polkit-1/actions/*.policy
%{_datadir}/pixmaps/timeshift.png
%{_datadir}/timeshift/
%{_mandir}/man1/timeshift.1*
%ghost %attr(644, root, root) %{_sysconfdir}/cron.d/timeshift-boot
%ghost %attr(644, root, root) %{_sysconfdir}/cron.d/timeshift-hourly
%ghost %attr(664, root, root) %{_sysconfdir}/timeshift.json
%config %{_sysconfdir}/timeshift/default.json

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%if %{mdvver} == 201900
patch -p1 < %{SOURCE1}
%endif

sed -i -e 's@--thread @@g' src/makefile
sed -i -e 's@--Xcc="-O3" @@g' src/makefile
sed -i '/${app_name}-uninstall/d' src/makefile

%build
for flag in %{optflags} %{?__global_ldflags}; do
  VALAFLAGS="$VALAFLAGS -X $flag"
done

sed -i "s|^[\t ]*valac|& --ccode --save-temps -g $VALAFLAGS|" src/makefile
%make

# Move generated c-sources into flat tree so it can be picked
# up for -debugsource.
for f in `find src/ -type f -name '*.c'`; do
  mv -f $f src/
done

# Inject Fedora compiler flags and the debug option to valac
# Build the binaries.
sed -i "s|valac --ccode|valac|" src/makefile
%make_build

%install
%makeinstall_std
# Remove duplicate
rm -rf %{buildroot}%{_datadir}/appdata

%find_lang %{name}

%check
appstream-util validate-relax --nonet %{buildroot}%{_datadir}/metainfo/*.appdata.xml
desktop-file-validate %{buildroot}%{_datadir}/applications/%{name}-gtk.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19980 |21mr|timezone-2023c-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without java

# the zic(8) and zdump(8) manpages are already in man-pages
%define build_manpages 0

Summary:	Time Zone Database
Name:		timezone
Epoch:		6
Version:	2023c
Release:	1
License:	BSD
Group:		System/Base
Url:		http://www.iana.org/time-zones
Source0:	ftp://ftp.iana.org/tz/releases/tzdata%{version}.tar.gz
Source1:	ftp://ftp.iana.org/tz/releases/tzcode%{version}.tar.gz
Source2:	javazic.tar.gz
Source3:	timezone.rpmlintrc
Patch1:		tzdata-extra-tz-links.patch
Patch2:		javazic-fixup.patch
Patch3:		javazic-exclusion-fix.patch
# https://git.inferitos.ru/rpms/tzdata/src/branch/i9/SOURCES/1001-Fix-Simferopol-country.patch
Patch4:		Fix-Simferopol-country.patch
BuildRequires:	gawk
Provides:	tzdata = %{EVRD}

%description
This package contains data files with rules for various timezones
around the world.

%files
%doc README
%doc tz-art.html
%{_sbindir}/zdump
%{_sbindir}/zic
%if %{build_manpages}
%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man8/*
%endif
%dir %{_datadir}/zoneinfo
%{_datadir}/zoneinfo/*

#----------------------------------------------------------------------------

%if %{with java}
%package java
Summary:	Timezone data for Java
Group:		System/Base
Provides:	tzdata-java = %{EVRD}
BuildRequires:	java-1.8.0-devel
BuildRequires:	javapackages-tools

%description java
This package contains timezone information for use by Java runtimes.

%files java
%doc README
%{_datadir}/javazi
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -c -a 1

%patch1 -p1 -b .extra-tz-links

%if %{with java}
mkdir javazic
tar xf %{SOURCE2} -C javazic
pushd javazic
%patch2 -p0 -b .javazic-fixup
%patch3
# Hack alert! sun.tools may be defined and installed in the
# VM. In order to guarantee that we are using IcedTea/OpenJDK
# for creating the zoneinfo files, rebase all the packages
# from "sun." to "rht.". Unfortunately, gcj does not support
# any of the -Xclasspath options, so we must go this route
# to ensure the greatest compatibility.
mv sun rht
for f in `find . -name '*.java'`; do
	sed -i -e 's:sun\.tools\.:rht.tools.:g'\
		-e 's:sun\.util\.:rht.util.:g' $f
done
popd

# Create zone.info entries for deprecated zone names (#40184)
	chmod +w zone.tab
		echo '# zone info for backward zone names' > zone.tab.new
		while read link cur old x; do
			case $link-${cur+cur}-${old+old}${x:+X} in
				Link-cur-old*)
					awk -v cur="$cur" -v old="$old" \
						'!/^#/ && $3 == cur { sub(cur,old); print }' \
							zone.tab || echo ERROR ;;
					Link-*)
						echo 'Error processing backward entry for zone.tab'
						exit 1 ;;
			esac
		done < backward >> zone.tab.new
		if grep -q '^ERROR' zone.tab.new || ! cat zone.tab.new >> zone.tab; then
			echo "Error adding backward entries to zone.tab"
			exit 1
		fi
		rm -f zone.tab.new
%endif

%patch4 -p1

%build
# (tpg) fix build
sed -i -e "s/$(AR) -rc/$(AR) r/g" Makefile*

%make TZDIR=%{_datadir}/zoneinfo CFLAGS="%{optflags} -std=gnu99"

%if %{with java}
pushd javazic
%{javac} -source 1.5 -target 1.5 -classpath . `find . -name \*.java`
popd
%{java} -classpath javazic/ rht.tools.javazic.Main -V %{version} \
	-d zoneinfo/java \
	africa antarctica asia australasia europe northamerica \
	southamerica backward etcetera \
	javazic/tzdata_jdk/gmt javazic/tzdata_jdk/jdk11_backward
%endif

%install
make TOPDIR=%{buildroot} \
	TZDIR=%{buildroot}%{_datadir}/zoneinfo \
	ETCDIR=%{buildroot}%{_sbindir} \
	install

rm -f %{buildroot}%{_datadir}/zoneinfo-posix
ln -s ../zoneinfo %{buildroot}%{_datadir}/zoneinfo/posix
mv %{buildroot}%{_datadir}/zoneinfo-leaps %{buildroot}%{_datadir}/zoneinfo/right
mv %{buildroot}%{_bindir}/zdump %{buildroot}%{_sbindir}/zdump

# nuke unpackaged files
rm -f %{buildroot}%{_datadir}/zoneinfo/localtime
rm -f %{buildroot}%{_bindir}/tzselect
rm -f %{buildroot}%{_sysconfdir}/localtime
rm -rf %{buildroot}/usr/{lib,man}

%if !%{build_manpages}
rm -rf %{buildroot}%{_mandir}
%endif

%if %{with java}
cp -a zoneinfo/java %{buildroot}%{_datadir}/javazi
%endif

# install man pages
%if %{build_manpages}
mkdir -p %{buildroot}%{_mandir}/man8
for f in zic zdump; do
install -m 644 $f.8 %{buildroot}%{_mandir}/man8/
done
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19981 |21mr|TiMidity++-2.15.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname	timidity

# Stick to /usr/lib/timidity on any platform
# XXX probably better in /usr/share/timidity for arch independent data
# but it's not worth splitting that much
%define	timiditydir	%{_prefix}/lib/%{oname}

#
# When big change is involved (e.g. timidity.cfg change location),
# so that new timidity binary and old patch RPM won't work together,
# increment this number by 1 for all timidity related RPMs
#
%define	patch_pkg_version	2

#
# NOTE: When updating config for media patch set, please refresh both
# config file included here and the one in patch pkg
#

# 
# Latest official release was in 2018: use it and add some patches from upstream
#
%define	git		0
%define gitdate	20160411
%if %{git}
%define	version	2.15.0
%define	rel		2
%define	release	0.%{gitdate}.%{rel}
%else
%define	version	2.15.0
%define	release	2
%endif

Summary:	MIDI to WAVE converter and player
Name:		TiMidity++
Version:	%{version}
Release:	%{release}
License:	GPLv2+
Group:		Sound
Url:		https://sourceforge.net/projects/timidity/
%if %{git}
# Use: git clone git://git.code.sf.net/p/timidity/git timidity-git and then git-archive the master HEAD
Source0:	%{oname}-%{gitdate}.tar.xz
%else
Source0:	https://sourceforge.net/projects/timidity/files/TiMidity%2B%2B/TiMidity%2B%2B-%{version}/TiMidity++-%{version}.tar.xz
%endif
Source1:	%{oname}.cfg
Source2:	%{oname}-emacs-mode.el
Source3:	%{oname}.README.mdv
Source11:	%{name}48.png
Source12:	%{name}32.png
Source13:	%{name}16.png
# (Abel) change default config path to /etc/timidity/timidity.cfg
Patch0:		timidity-2.15.0-default-config-path.patch
Patch1:		timidity-2.15.0-fix-CVE-2017-11547.patch
Patch2:		timidity-2.15.0-pass-LDFLAGS-on-addon-linking.patch
Patch3:		timidity-2.15.0-avoid-NULL-deref.patch
Patch4:		timidity-2.15.0-workaround-GUS-issue.patch
Patch5:		timidity-2.15.0-fix-tcl-not-enabled.patch
BuildRequires:	emacs-bin
BuildRequires:	lesstif-devel
BuildRequires:	nas-devel
BuildRequires:	tcl-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(ao)
BuildRequires:	pkgconfig(flac) >= 1.1.3
BuildRequires:	pkgconfig(gtk+-x11-2.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(portaudio-2.0)
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(speex)
BuildRequires:	pkgconfig(tk)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildConflicts:	openmotif-devel
BuildConflicts:	Xaw3d-devel

Requires:	%{oname}-instruments = %{patch_pkg_version}
Requires:	%{name}-interfaces-extra

%description
TiMidity is a MIDI to WAVE converter and player that uses Gravis
Ultrasound(tm) or SoundFont(tm) patch files to generate digital audio data
from general MIDI files. The audio data can be played through any 
sound device or stored on disk.

%files
%doc AUTHORS ChangeLog.{1,2,3} NEWS README doc/C/FAQ
%doc doc/C/README.{alsaseq,dl,sf,m2m,mts}
%config(noreplace) %{_sysconfdir}/%{oname}
%config(noreplace) %{_sysconfdir}/modules-load.d/%{oname}.conf
%{_bindir}/%{oname}
%{_mandir}/man?/%{oname}*
%lang(ja) %{_mandir}/ja/man?/*
%{_datadir}/%{oname}
%dir %{timiditydir}
%{timiditydir}/if_ncurses.so
%{_datadir}/applications/rosa-%{name}.desktop
%{_iconsdir}/hicolor/16x16/apps/%{name}.png
%{_iconsdir}/hicolor/32x32/apps/%{name}.png
%{_iconsdir}/hicolor/48x48/apps/%{name}.png

%post
%{_sbindir}/update-alternatives --install %{_sysconfdir}/%{oname}/%{oname}.cfg %{oname}.cfg %{_sysconfdir}/%{oname}/%{oname}-custom.cfg 10

%postun
if [ "$1" = "0" ]; then
%{_sbindir}/update-alternatives --remove %{oname}.cfg %{_sysconfdir}/%{oname}/%{oname}-custom.cfg
fi

#----------------------------------------------------------------------------

%package	interfaces-extra
Summary:	Extra GUI/text mode interfaces for TiMidity
Group:		Sound
Requires:	%{name} = %{EVRD}
Requires:	emacs-bin

%description	interfaces-extra
TiMidity is a MIDI to WAVE converter and player that uses Gravis 
Ultrasound(tm) or SoundFont(tm) patch files to generate digital audio data
from general MIDI files. The audio data can be played through any 
sound device or stored on disk.
Install this package if you want to use TiMidity under interfaces other than
ncurses, such as Motif(or Lesstif), Tcl/Tk, emacs, gtk etc.

%files interfaces-extra
%doc doc/C/README.{tk,xaw,xskin}
%config(noreplace) %{_sysconfdir}/emacs/site-start.d/*.el
%{_datadir}/emacs/site-lisp/*.el
%timiditydir/if_emacs.so
%timiditydir/if_gtk.so
%timiditydir/if_motif.so
%timiditydir/if_slang.so
%timiditydir/if_tcltk.so
%timiditydir/if_xaw.so
%timiditydir/if_xskin.so
%{timiditydir}/*.tcl
%{timiditydir}/tclIndex
%{timiditydir}/bitmaps

#----------------------------------------------------------------------------

%prep
%if %{git}
%setup -qn %{oname}-%{gitdate}
%else
%setup -q
%endif
%apply_patches

# Fix source perms
find . -name "*.c" -o -name "*.h" |xargs chmod 0644


%build
./autogen.sh

# Little ugly trick to force install of tclIndex, beacuse running wish requires X display
touch interface/tclIndex

%configure \
	--enable-audio=oss,alsa,portaudio,jack,ao,vorbis,speex \
	--enable-dynamic=dynamic,ncurses,slang,motif,tcltk,emacs,xaw,xskin,gtk \
	--enable-interface=alsaseq \
	--enable-network \
	--enable-server

%make LDFLAGS="-laudio -lFLAC"


%install
%makeinstall_std

# Install our config file
install -d %{buildroot}%{_datadir}/%{oname}
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/%{oname}/%{oname}-custom.cfg

# Provide a desktop file
install -d %{buildroot}%{_datadir}/applications
cat <<EOF > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop
[Desktop Entry]
Name=%{name}
GenericName=MIDI file player
GenericName[ar]=مشغل ملفات MIDI
GenericName[az]=MIDI fayl çalğıcısı
GenericName[bg]=MIDI плеър
GenericName[bn]=মিডি ফাইল বাদক
GenericName[br]=Ur soner a restr MIDI
GenericName[bs]=Svirač MIDI datoteka
GenericName[ca]=Reproductor de fitxers MIDI
GenericName[cs]=Přehrávač hudebních souborů MIDI
GenericName[cy]=Chwaraewr ffeil MIDI
GenericName[da]=MIDI-musikafspiller
GenericName[de]=MIDI Dateienspieler
GenericName[el]=Πρόγραμμα αναπαραγωγής MIDI
GenericName[es]=Reproductor de archivos MIDI
GenericName[et]=MIDI failide mängija
GenericName[eu]=MIDI fitxategi-erreproduzigailua
GenericName[fa]=پخشگر پرونده MIDI
GenericName[fi]=MIDI-soitin
GenericName[fr]=Lecteur de fichiers MIDI
GenericName[gl]=Reproductor de ficheiros MIDI
GenericName[he]=נגן קבצי מידי
GenericName[hi]=मीडी फ़ाइल प्लेयर
GenericName[hu]=MIDI-fájllejátszó
GenericName[id]=Pemutar file MIDI
GenericName[is]=MIDI skráa spilari
GenericName[it]=Riproduttore di file MIDI
GenericName[ja]=MIDI プレーヤー
GenericName[ky]=MIDI файлын ойноткучу
GenericName[mk]=Плеер на „MIDI“ датотеки
GenericName[mt]=Programm biex iddoqq mużika MIDI
GenericName[nb]=MIDI-fil avspiller
GenericName[nl]=MIDI bestandsspeler
GenericName[nn]=MIDI-filspelar
GenericName[pl]=Odtwarzacz plików MIDI
GenericName[pt]=Leitor de ficheiros MIDI
GenericName[pt_BR]=Player de arquivos MIDI
GenericName[ro]=Lector de fișiere MIDI
GenericName[ru]=Проигрыватель MIDI-файлов
GenericName[sc]=Sonadori de file MIDI
GenericName[sk]=Prehrávač MIDI hudby
GenericName[sl]=Predvajalnik MIDI datotek
GenericName[sq]=Lexues skedaresh MIDI
GenericName[sv]=Spelar MIDI-filer
GenericName[tg]=Бозигари MIDI файл
GenericName[th]=โปรแกรมเล่นไฟล์ MIDI
GenericName[tl]=Tagapagpatugtog ng MIDI file
GenericName[tr]=MIDI dosya çalıcı
GenericName[uk]=Програвач файлів MIDI
GenericName[uz]=MIDI fayl pleyer
GenericName[uz@cyrillic]=MIDI файл плейер
GenericName[vi]=Trình chơi tập tin MIDI
GenericName[wa]=Djouweu di fitchîs MIDI
GenericName[zh_CN]=MIDI 文件播放机
GenericName[zh_TW]=MIDI 音樂播放程式
Comment=A midi to wav converter and midi file player
Comment[de]=Ein Midi-zu-Wav-Konverter und Midi-Player
Comment[ru]=Плейер MIDI-файлов и конвертор в WAV
Exec=%{oname} -ig %U
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Audio;Midi;X-Synthesis;X-Jack;
EOF

# Install our icons
install -m644 %{SOURCE11} -D %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -m644 %{SOURCE13} -D %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# Emacs mode
install -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/emacs/site-start.d/%{oname}.el

# Japanese manpages
install -m644 doc/ja_JP.eucJP/%{oname}.1 -D %{buildroot}%{_mandir}/ja/man1/%{oname}.1
install -m644 doc/ja_JP.eucJP/%{oname}.cfg.5 %{buildroot}%{_mandir}/ja/man1/%{oname}.cfg.5


# TODO: install bitmaps - git log says they are embedded in tcl files now: verify and remove
install -d %{buildroot}%{timiditydir}/bitmaps
install -m644 interface/bitmaps/*.xbm %{buildroot}%{timiditydir}/bitmaps/

# Fix perms
chmod +x %{buildroot}%{timiditydir}/{tkpanel,tkmidity}.tcl

# Autoload seq kernel module on program start
mkdir -p %{buildroot}/etc/modules-load.d
echo "snd_seq" > %{buildroot}/etc/modules-load.d/%{oname}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19982 |21mr|timidity-patch-freepats-20060219-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# NOTE:
#
# 1. When big change is involved (e.g. timidity.cfg change location),
# so that new timidity binray and old patch RPM won't work together,
# increment this number by 1 for all timidity related RPMs
#
# 2. Current config is hand merged from freepats.cfg and crude.cfg,
# so if new version is available, please merge both config, and make
# sure all patch files listed in config file do exist.
#

%define	patch_pkg_version 2

Summary:	Patch set for MIDI audio synthesis
Name:		timidity-patch-freepats
Version:	20060219
Release:	22
License:	GPLv2+
Group:		Sound
Url:		http://freepats.zenvoid.org
Source0:	http://freepats.zenvoid.org/freepats-%{version}.tar.bz2
Source1:	timidity-freepats.cfg
Source2:	freepats.cfg
Provides:	timidity-instruments = %{patch_pkg_version}
Requires(post,postun):	update-alternatives
BuildArch:	noarch

%description
Freepats is a project to create a free and open set of GUS compatible patches
that can be used with softsynths such as Timidity and WildMidi. They are
verified to contain no non-free restriction. Freepats is distributed under
GPLv2 or later, with the follow exception clause about the relation of MIDI
composition and patches:

=========================================================
As a special exception, if you create a composition which uses these patches,
and mix these patches or unaltered portions of these patches into the
composition, these patches do not by themselves cause the resulting composition
to be covered by the GNU General Public License. This exception does not
however invalidate any other reasons why the document might be covered by
the GNU General Public License. If you modify these patches, you may extend
this exception to your version of the patches, but you are not obligated
to do so. If you do not wish to do so, delete this exception statement from
your version.
==========================================================

This patch set is of limited quality, because some instruments are still
missing. For personal use, feel free to use other patch sets (such as
eawpatches which has excellent quality, but the site is no more), or other
free soundfonts.

%files
%doc README COPYING
%config(noreplace) %{_sysconfdir}/timidity/timidity-freepats.cfg
%config(noreplace)  %{_sysconfdir}/timidity/freepats
%{_datadir}/timidity/freepats

%post
%{_sbindir}/update-alternatives --install %{_sysconfdir}/timidity/timidity.cfg timidity.cfg %{_sysconfdir}/timidity/timidity-freepats.cfg 20

%postun
if [ "$1" = "0" ]; then
  %{_sbindir}/update-alternatives --remove timidity.cfg %{_sysconfdir}/timidity/timidity-freepats.cfg
fi

#----------------------------------------------------------------------------

%prep
%setup -q -n freepats

%install
mkdir -p %{buildroot}%{_datadir}/timidity/freepats
cp -a Drum_000 Tone_000 %{buildroot}%{_datadir}/timidity/freepats/

mkdir -p %{buildroot}%{_sysconfdir}/timidity/freepats
install %{SOURCE1} %{buildroot}%{_sysconfdir}/timidity/timidity-freepats.cfg
install %{SOURCE2} %{buildroot}%{_sysconfdir}/timidity/freepats/freepats.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19983 |21mr|timidity-patch-gravis-1.0-38
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define patch_pkg_version 2

Summary:	Instruments for the timidity midi->wave converter/player
Name:		timidity-patch-gravis
Version:	1.0
Release:	38
License:	Public Domain
Group:		Sound
Url:		http://timidity.sourceforge.net
# Patches at http://www.cs.umbc.edu/pub/midia/instruments.tar.gz
Source0:	midia-instruments.tar.bz2
Source1:	http://www.timidity.jp/dist/cfg/midia.cfg
Source2:	http://www.timidity.jp/dist/cfg/gravis.cfg
Source3:	http://www.stardate.bc.ca/eawpatches/eawpats/britepno.pat
Source4:	http://www.stardate.bc.ca/eawpatches/eawpats/pistol.pat
Source5:	timidity-gravis.cfg
Provides:	timidity-instruments = %{patch_pkg_version}
Requires(post,postun):	update-alternatives
BuildArch:	noarch

%description
This package contains a set of instruments for the timidity midi->wave
converter/player.

%files
%{_datadir}/timidity/gravis
%dir %{_sysconfdir}/timidity/gravis
%config(noreplace) %{_sysconfdir}/timidity/gravis/gravis.cfg
%config(noreplace) %{_sysconfdir}/timidity/gravis/midia.cfg
%config(noreplace) %{_sysconfdir}/timidity/timidity-gravis.cfg

%post
%{_sbindir}/update-alternatives --install %{_sysconfdir}/timidity/timidity.cfg timidity.cfg %{_sysconfdir}/timidity/timidity-gravis.cfg 30

%postun
if [ "$1" = "0" ]; then
  %{_sbindir}/update-alternatives --remove timidity.cfg %{_sysconfdir}/timidity/timidity-gravis.cfg
fi

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -a 0

%install
mkdir -p %{buildroot}%{_datadir}/timidity
cp -r instruments %{buildroot}%{_datadir}/timidity/gravis
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/timidity/gravis/midia.cfg
install -m644 %{SOURCE2} -D %{buildroot}%{_sysconfdir}/timidity/gravis/gravis.cfg
install -m644 %{SOURCE5} -D %{buildroot}%{_sysconfdir}/timidity/timidity-gravis.cfg
install -m644 %{SOURCE3} -D %{buildroot}%{_datadir}/timidity/gravis/britepno.pat
install -m644 %{SOURCE4} -D %{buildroot}%{_datadir}/timidity/gravis/pistol.pat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19984 |21mr|tinycdb-0.77-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libcmajor 2

# Macro: %%{mklibname <name> [<major> [<minor>]] [-s] [-d]}
%define libname %mklibname %{name} %{major}
%define dlibname %mklibname %{name} %{major} -d

Summary:	Constant Database
Name:		tinycdb
Version:	0.77
Release:	12
License:	Public Domain
Group:		Databases
URL:		http://www.corpit.ru/mjt/tinycdb.html
Source0:	http://www.corpit.ru/mjt/tinycdb/%{name}_%{version}.tar.gz
Source100:	%{name}.rpmlintrc

%description
Tinycdb is a small, fast and reliable utility set and subroutine
library for creating and reading constant databases. The database
structure is tuned for fast reading:

 - Successful lookups take normally just two disk accesses.
 - Unsuccessful lookups take only one disk access.
 - Small disk space and memory size requirements; a database
   uses 2048 bytes for the header and 24 bytes plus size of
   (key,value) per record.
 - Maximum database size is 4GB; individual record size is not
   otherwise limited.
 - Portable file format.
 - Fast creation of new databases.
 - No locking, updates are atomical.

%package -n nss_%{name}
Summary:	Constant database library
Group:		System/Libraries

%description -n nss_%{name}
The tinycdb nss library allows creating passwd/group file using a
constant database.

%package -n %{libname}
Summary:	Constant database library
Group:		System/Libraries

%description -n %{libname}
Tinycdb is a small, fast and reliable utility set and subroutine
library for creating and reading constant databases. The database
structure is tuned for fast reading.

%package -n %{dlibname}
Summary:	Development libraries and headers for %{libname}
Group:		Development/Databases
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Conflicts:	cdb-devel

%description -n %{dlibname}
Libraries and header files needed to develop applications using
constant databases.

%prep
%setup -q

%build
%make CFLAGS="%{optflags}" \
 staticlib sharedlib cdb-shared nss \
 sysconfdir=%{_sysconfdir}

%install
mkdir -p %{buildroot}
%makeinstall DESTDIR=%{buildroot} \
 libdir=%{_libdir} bindir=%{_bindir} mandir=%{_mandir} \
 syslibdir=/%{_lib} sysconfdir=%{_sysconfdir} \
 includedir=%{_includedir} \
 install-all install-nss install-piclib install-sharedlib \
 INSTALLPROG=cdb-shared CP="cp -p"
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp -p debian/libcdb.pc %{buildroot}%{_libdir}/pkgconfig
rm -f %{buildroot}%{_sysconfdir}/cdb-Makefile

# Fix permissions to avoid unstripped-binary-or-object
chmod 0755 %{buildroot}/%{_lib}/libnss_cdb.so.%{libcmajor}
chmod 0755 %{buildroot}%{_libdir}/libcdb.so.%{major}

%files 
%{_bindir}/cdb
%{_mandir}/man1/cdb.1*
%{_mandir}/man5/cdb.5*
%doc ChangeLog NEWS debian/changelog

%files -n nss_tinycdb
%doc nss_cdb-Makefile
/%{_lib}/libnss_cdb.so.%{libcmajor}

%files -n %{libname}
%{_libdir}/libcdb.so.%{major}

%files -n %{dlibname}
%{_includedir}/cdb.h
%{_libdir}/libcdb.a
%{_libdir}/libcdb_pic.a
%{_libdir}/libcdb.so
%{_libdir}/pkgconfig/libcdb.pc
%{_mandir}/man3/cdb.3*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19985 |21mr|tinyxml2-6.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major   6
%define libname %mklibname %{name} _%{major}
%define devname %mklibname %{name} -d

Summary:	Simple, small and efficient C++ XML parser
Name:		tinyxml2
Version:	6.2.0
Release:	1
License:	zlib
Group:		System/Libraries
Url:		http://www.grinninglizard.com/tinyxml2/
Source0:	https://github.com/leethomason/tinyxml2/archive/%{version}/%{name}-%{version}.tar.gz
Source1:	FindTinyXML2.cmake
BuildRequires:	cmake
BuildRequires:	doxygen

%description
TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
easily integrated into other programs. It uses a Document Object Model
(DOM), meaning the XML data is parsed into a C++ objects that can be
browsed and manipulated, and then written to disk or another output stream.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Simple, small and efficient C++ XML parser
Group:		System/Libraries

%description -n %{libname}
TinyXML-2 is a simple, small, efficient, C++ XML parser that can be
easily integrated into other programs. It uses a Document Object Model
(DOM), meaning the XML data is parsed into a C++ objects that can be
browsed and manipulated, and then written to disk or another output stream.

TinyXML-2 doesn't parse or use DTDs (Document Type Definitions) nor XSLs
(eXtensible Stylesheet Language).

TinyXML-2 uses a similar API to TinyXML-1, But the implementation of the
parser was completely re-written to make it more appropriate for use in a
game. It uses less memory, is faster, and uses far fewer memory allocations.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the libraries and header files that are needed
for writing applications with the %{name} library.

%files -n      %{devname}
%doc readme.md docs/*
%{_datadir}/cmake/Modules/FindTinyXML2.cmake
%{_includedir}/%{name}.h
%{_libdir}/cmake/%{name}/
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

# Build the documentation from the "dox" template
cd ..
doxygen dox

%install
%makeinstall_std -C build

# Install CMake find module
install -D -m644 %{SOURCE1} %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML2.cmake

%check
pushd build
export LD_LIBRARY_PATH=`pwd`
./xmltest
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19986 |21mr|tinyxml-2.6.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define realver 2_6_2
# (tpg) please don't change major, it should be set to 0
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A small and simple XML parser
Name:		tinyxml
Version:	%(echo %realver| tr '_' '.')
Release:	8
License:	zlib
Group:		System/Libraries
Url:		http://www.grinninglizard.com/tinyxml/
Source0:	http://downloads.sourceforge.net/tinyxml/%{name}_%{realver}.tar.bz2
Source1:	FindTinyXML.cmake
Patch0:		%{name}-2.5.3-stl.patch
Patch1:		CVE-2021-42260.patch
Patch2:		CVE-2023-34194.patch

%description
TinyXML is a simple, small, C++ XML parser.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A small and simple XML parsing library
Group:		System/Libraries

%description -n %{libname}
TinyXML is a simple, small, C++ XML parser that can be easily 
integrating into other programs. Have you ever found yourself 
writing a text file parser every time you needed to save human 
readable data or serialize objects? TinyXML solves the text I/O 
file once and for all.

%files -n %{libname}
%{_libdir}/libtinyxml.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc changes.txt readme.txt
%{_includedir}/*.h
%{_libdir}/libtinyxml.so
%{_datadir}/cmake/Modules/FindTinyXML.cmake
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

%build

for i in tinyxml.cpp tinystr.cpp tinyxmlerror.cpp tinyxmlparser.cpp; do
 	g++ %{optflags} -fPIC -o $i.o -c $i
done
g++ %{optflags} -shared -o lib%{name}.so.0.%{version} \
    %{ldflags} -Wl,-soname,lib%{name}.so.0 *.cpp.o 


%install
# Not really designed to be build as lib, DYI
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_includedir}
install -m 755 lib%{name}.so.0.%{version} %{buildroot}%{_libdir}
ln -s lib%{name}.so.%{major}.%{version} %{buildroot}%{_libdir}/lib%{name}.so.%{major}
ln -s lib%{name}.so.%{major}.%{version} %{buildroot}%{_libdir}/lib%{name}.so
install -p -m 644 *.h %{buildroot}%{_includedir}

# pkg-config file
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cat << EOF > %{buildroot}%{_libdir}/pkgconfig/%{name}.pc
prefix=%{_prefix}
exec_prefix=%{_exec_prefix}
libdir=%{_libdir}
includedir=%{_includedir}

Name: TinyXML
Description: %{summary}
Version: %{version}
Libs: -L\${libdir} -ltinyxml
Cflags: -I\${includedir} -DTIXML_USE_STL=YES
EOF

# Install CMake find module
install -D -m644 %{SOURCE1} \
                 %{buildroot}%{_datadir}/cmake/Modules/FindTinyXML.cmake

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19987 |21mr|tix-8.4.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A set of capable widgets for Tk
Name:		tix
Version:	8.4.3
Release:	13
Epoch:		1
License:	BSD
Group:		System/Libraries
Url:		http://tix.sourceforge.net/
Source0:	http://downloads.sourceforge.net/tixlibrary/Tix%{version}-src.tar.gz
Source1:	%{name}.rpmlintrc
Patch1:		tix-8.4.2-link.patch
Patch2:		tix-8.4.3-tcl86.patch
BuildRequires:	groff
BuildRequires:	tcl
BuildRequires:	tcl-devel
BuildRequires:	tk-devel
BuildRequires:	pkgconfig(xscrnsaver)

%description
Tix (Tk Interface Extension), an add-on for the Tk widget set, is an
extensive set of over 40 widgets.  In general, Tix widgets are more
complex and more capable than the widgets provided in Tk.  Tix widgets
include a ComboBox, a Motif-style FileSelectBox, an MS Windows-style
FileSelectBox, a PanedWindow, a NoteBook, a hierarchical list, a
directory tree and a file manager.

Install the tix package if you want to try out more complicated widgets
for Tk. You'll also need to have the tcl and tk packages installed.

%files
%doc *.txt *.html license.terms docs/*
%{_libdir}/libTix.so
%{tcl_sitearch}/Tix%{version}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other

%description devel
This package contains development files for %{name}.

%files devel
%{_includedir}/%{name}
%{_mandir}/mann/*

#----------------------------------------------------------------------------

%prep
%setup -q -n Tix%{version}
%patch1 -p1 -b .link
%patch2 -p1 -b .tcl86

# nuke pdf files
rm -rf docs/pdf

%build
for f in config.guess config.sub ; do
    test -f /usr/share/libtool/$f || continue
    find . -type f -name $f -exec cp /usr/share/libtool/$f \{\} \;
done

%configure --libdir=%{tcl_sitearch}
%make PKG_LIB_FILE=libTix.so

%install
install -d %{buildroot}%{_libdir}
install -d %{buildroot}%{tcl_sitearch}
install -d %{buildroot}%{_includedir}/%{name}

%makeinstall_std PKG_LIB_FILE=libTix.so

# put the library in /usr/lib as Tix itself is directly linked
mv %{buildroot}%{tcl_sitearch}/Tix%{version}/libTix.so %{buildroot}%{_libdir}
ln -s %{_libdir}/libTix.so %{buildroot}%{tcl_sitearch}/Tix%{version}/libTix.so

# install all headers
install -d %{buildroot}%{_includedir}/%{name}/generic
install -d %{buildroot}%{_includedir}/%{name}/unix
install -m0644 generic/*.h %{buildroot}%{_includedir}/%{name}/generic/
install -m0644 unix/*.h %{buildroot}%{_includedir}/%{name}/unix/

# install man pages
mkdir -p %{buildroot}%{_mandir}/mann
mkdir -p %{buildroot}%{_mandir}/man1
install -m0644 man/*.n %{buildroot}%{_mandir}/mann
install -m0644 man/*.1 %{buildroot}%{_mandir}/man1

# remove stuff that ends up as docs
rm -f %{buildroot}%{tcl_sitearch}/Tix%{version}/README.txt
rm -f %{buildroot}%{tcl_sitearch}/Tix%{version}/license.terms

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19988 |21mr|tk-8.6.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 8.6
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d

Summary:	Tk GUI toolkit for Tcl
Name:		tk
Version:	8.6.11
Release:	1
License:	BSD
Group:		System/Libraries
Url:		http://tcl.tk
Source0:	http://downloads.sourceforge.net/tcl/%{name}%{version}-src.tar.gz
Source1:	icons.tcl
Patch0:		tk8.6.1-soname.patch
Patch1:		tk8.6b1-fix_Xft_linkage.patch
Patch2:		tk-8.6.1-make.patch
BuildRequires:	chrpath
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(tcl) >= %{version}
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xscrnsaver)
Requires:	%{libname} = %{EVRD}
Provides:	%{_bindir}/wish

%description
Tk is a X Windows widget set designed to work closely with the tcl
scripting language. It allows you to write simple programs with full
featured GUIs in only a little more time then it takes to write a
text based interface. Tcl/Tk applications can also be run on Windows
and Macintosh platforms.

%files
%{_bindir}/*
%{_datadir}/%{name}%{api}
%{_mandir}/man1/*
%{_mandir}/man3/*
%{_mandir}/mann/*
# if Config files not needed, move it to devel pkg
%{_libdir}/tkConfig.sh
%{_libdir}/%{name}%{api}/tkConfig.sh
%{_libdir}/%{name}%{api}/pkgIndex.tcl

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared libraries for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}tk8.6 < 8.6.4
Obsoletes:	%{_lib}tk8.6 < 8.6.4

%description -n %{libname}
Tk is a X Windows widget set designed to work closely with the tcl
scripting language. It allows you to write simple programs with full
featured GUI's in only a little more time then it takes to write a
text based interface. Tcl/Tk applications can also be run on Windows
and Macintosh platforms.

%files -n %{libname}
%{_libdir}/libtk%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(x11)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%ifarch %{ix86}
%files -n %{devname}
%else
%files -n %{devname} -f %{devname}.files
%endif
%dir %{_includedir}/tk%{version}
%dir %{_includedir}/tk%{version}/compat
%dir %{_includedir}/tk%{version}/generic
%dir %{_includedir}/tk%{version}/unix
%{_includedir}/tk%{version}/compat/*.h
%{_includedir}/tk%{version}/generic/*.h
%{_includedir}/tk%{version}/unix/*.h
%{_includedir}/*.h
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -n %{name}%{version} -p1
# Replace native icons.tcl - it contains  PNG data
# obtained using old libpng and has problems with new libpng
# The new one contains PNG data created using
# new libpng
cp -f %{SOURCE1} library

%build
pushd unix
    autoconf
    %configure \
	--enable-threads \
%ifnarch %{ix86}
	--enable-64bit \
%endif
	--disable-rpath \
	--with-tcl=%{_libdir} \
	--includedir=%{_includedir}/tk%{version}
    %make TK_LIBRARY=%{_datadir}/%{name}%{api}

    cp libtk%{api}.so libtk%{api}.so.%{major}
#    make test
popd

%install
# If %{_libdir} is not %{_prefix}/lib, then define EXTRA_TCLLIB_FILES
# which contains actual non-architecture-dependent tcl code.
if [ "%{_libdir}" != "%{_prefix}/lib" ]; then
    EXTRA_TCLLIB_FILES="%{buildroot}%{_prefix}/lib/*"
fi

%makeinstall -C unix TK_LIBRARY=%{buildroot}%{_datadir}/%{name}%{api}

# create the arch-dependent dir
mkdir -p %{buildroot}%{_libdir}/%{name}%{api}

# fix libname
mv %{buildroot}%{_libdir}/libtk%{api}.so %{buildroot}%{_libdir}/libtk%{api}.so.%{major}
ln -snf libtk%{api}.so.%{major} %{buildroot}%{_libdir}/libtk%{api}.so

# install all headers
install -d %{buildroot}%{_includedir}/tk%{version}/compat
install -d %{buildroot}%{_includedir}/tk%{version}/generic
install -d %{buildroot}%{_includedir}/tk%{version}/unix
install -m0644 compat/*.h %{buildroot}%{_includedir}/tk%{version}/compat/
install -m0644 generic/*.h %{buildroot}%{_includedir}/tk%{version}/generic/
install -m0644 unix/*.h %{buildroot}%{_includedir}/tk%{version}/unix/

# (tpg) compat issues
cp -f %{buildroot}%{_includedir}/tk%{version}/unix/tkUnixPort.h %{buildroot}%{_includedir}/tk%{version}/generic/

pushd %{buildroot}%{_bindir}
    ln -sf wish* wish
popd

pushd %{buildroot}%{_libdir}
cat > lib%{name}.so << EOF
/* GNU ld script
   We want -l%{name} to include the actual system library,
   which is lib%{name}%{api}.so.%{major}  */
INPUT ( -l%{name}%{api} )
EOF
popd

# fix config script
perl -pi -e "s|-L`pwd`/unix\b|-L%{_libdir}|g" %{buildroot}%{_libdir}/tkConfig.sh
perl -pi -e "s|`pwd`/unix/lib|%{_libdir}/lib|g" %{buildroot}%{_libdir}/tkConfig.sh
perl -pi -e "s|`pwd`|%{_includedir}/tk%{version}|g" %{buildroot}%{_libdir}/tkConfig.sh


# Arrangements for lib64 platforms
echo "# placeholder" >> %{devname}.files
if [[ "%{_lib}" != "lib" ]]; then
	mkdir -p %{buildroot}%{_prefix}/lib
	ln -s ../%{_lib}/tkConfig.sh %{buildroot}%{_prefix}/lib/tkConfig.sh
	echo "%{_prefix}/lib/tkConfig.sh" >> %{devname}.files
fi


# and let it be found (we don't look in /usr/lib any more)
ln -s ../%{name}Config.sh %{buildroot}/%{_libdir}/%{name}%{api}/%{name}Config.sh


# (fc) make sure .so files are writable by root
chmod 755 %{buildroot}%{_libdir}/*.so*

# (tpg) nuke rpath
chrpath -d %{buildroot}%{_libdir}/libtk%{api}.so.%{major}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19989 |21mr|tkxinput-1.0-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	A Tk extension to handle additional input devices in X11
Name:		tkxinput
Version:	1.0
Release:	22
Source0:	%{name}-%{version}.tar.bz2
Patch0:		tkxinput-1.0.tk8.3.patch
Patch1:		tkxinput-1.0.wacom.patch
License:	LGPLv2+
Group:		System/X11
URL:		http://freshmeat.net/redir/tkxinput/22191/url_homepage/tkxinput/
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	tk-devel
BuildRequires:	tcl-devel

%description
The package provides an extension to Tk that add input device
management capabilities. It is possible to bind extended input
events to tcl scripts, to get information about the devices, to
change devices parameters and to change the default pointer and
keyborad devices. It is also possible to send input events from
one application to an other one.

%prep
%setup -q
%patch0 -p1 -b .tk8
%patch1 -p1 -b .wacom
# quick hack to fix install location...the makefile is way too simple
# to make a proper fix easy without completely re-doing it - AdamW
# 2008/12
sed -i -e 's,$(prefix)/lib,%{buildroot}%{tcl_sitearch},g' Makefile

%build
%make CFLAGS="%{optflags} -fPIC" TCL_LIB=tcl%{tcl_version} TK_LIB=tk%{tcl_version} X11_LIB_PATH=%{_libdir}

%install
mkdir -p %{buildroot}%{tcl_sitearch}/TkXInput %{buildroot}%{_bindir}
make install prefix=%{buildroot}%{_prefix}

%files
%doc README*
%{tcl_sitearch}/TkXInput
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19990 |21mr|tlp-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Advanced power management tool for Linux
Name:		tlp
Version:	1.3.1
Release:	1
License:	GPLv2+
Group:		System/Libraries
URL:		http://linrunner.de/tlp
Source0:	https://github.com/linrunner/TLP/archive/%{version}.tar.gz
#Provided by Andreas Roederer <tlp~at~warpnine~dot~de>:
Source1:	50-tlp.preset

BuildRequires:	systemd

#The following requires are not detected:
Requires:	ethtool
Requires:	hdparm
Requires:	iw
Requires:	rfkill
Requires:	systemd
Requires:	udev
Requires:	usbutils
Requires:	wireless-tools
#Conflicts with laptop-mode-tools, note that an official
#package/package name doesn't exist, so this works for now:
Conflicts:	%{_sbindir}/laptop_mode
BuildArch:	noarch

%description
TLP brings you the benefits of advanced power management for Linux
without the need to understand every technical detail. TLP comes
with a default configuration already optimized for battery life.
Also an optional install of the smartmontools package enables hard
disk SMART data in tlp-stat (smartctl).

%files
%config(noreplace) %{_sysconfdir}/tlp.conf
%config(noreplace) %{_sysconfdir}/tlp.d
%license LICENSE
%doc COPYING README.md changelog
%{_bindir}/*
%exclude %{_bindir}/tlp-rdw
%{_sbindir}/*
%{_mandir}/man*/*
%exclude %{_mandir}/man*/tlp-rdw*
%{_datadir}/tlp
%{_udevrulesdir}/85-tlp.rules
%{_udevrulesdir}/../tlp-usb-udev
%{_datadir}/bash-completion/completions/*
%exclude %{_datadir}/bash-completion/completions/tlp-rdw
%{_presetdir}/50-tlp.preset
%{_unitdir}/*.service
%{_unitdir}/../system-sleep
%{_datadir}/metainfo/*.metainfo.xml
%{_sharedstatedir}/tlp

%post
%systemd_post tlp.service
systemctl mask systemd-rfkill.service

%preun
%systemd_preun tlp.service

%postun
%systemd_postun_with_restart tlp.service
if [ $1 -eq 0 ] ; then
    systemctl unmask systemd-rfkill.service
fi

#--------------------------------------------------------------------
%package rdw
Summary:        Radio Device Wizard for TLP
Requires:       NetworkManager
Requires:       %{name} = %{version}-%{release}
BuildArch:      noarch

%description rdw
Radio Device Wizard for TLP automatically toggles wireless networking
based on dock events and the Network Manager connection status.

%files rdw
%doc COPYING README.md changelog
%{_bindir}/tlp-rdw
%{_mandir}/man*/tlp-rdw*
%{_prefix}/lib/NetworkManager/dispatcher.d/99tlp-rdw-nm
%{_udevrulesdir}/85-tlp-rdw.rules
%{_udevrulesdir}/../tlp-rdw-udev
%{_datadir}/bash-completion/completions/tlp-rdw

%post rdw
/bin/systemctl enable NetworkManager-dispatcher.service >/dev/null 2>&1 || :

#--------------------------------------------------------------------

%prep
%setup -q -n TLP-%{version}
#Bash completion should be in /usr/share
sed -i 's|etc/bash_completion.d|usr/share/bash-completion/completions|g' Makefile

%build
%make

%install
%makeinstall_std \
		TLP_NO_INIT=1 \
		TLP_NO_PMUTILS=1 \
		TLP_WITH_ELOGIND=0 \
		TLP_SDSL=%{_unitdir}/../system-sleep \
		TLP_NMDSP=%{_prefix}/lib/NetworkManager/dispatcher.d \
		TLP_SYSD=%{_unitdir} \
		TLP_ULIB=%{_udevrulesdir}/..
#Install manpages:
#Install manpages:
make install-man DESTDIR=%{buildroot}
make install-man-rdw DESTDIR=%{buildroot}
#Install preset (source 1):
install -Dpm 0644 %{SOURCE1} %{buildroot}/%{_presetdir}/50-tlp.preset

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19991 |21mr|tmpwatch-2.11-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility for removing files based on when they were last accessed
Name:		tmpwatch
Version:	2.11
Release:	11
License:	GPLv2+
Group:		File tools
Url:		https://fedorahosted.org/tmpwatch/
Source0:	https://fedorahosted.org/releases/t/m/tmpwatch/%{name}-%{version}.tar.bz2
# configure is looking for /sbin/fuser
BuildRequires:	psmisc
Requires:	psmisc

%description
The tmpwatch utility recursively searches through specified directories and
removes files which have not been accessed in a specified period of time.
Tmpwatch is normally used to clean up directories which are used for
temporarily holding files (for example, /tmp). Tmpwatch ignores symlinks,
won't switch filesystems and only removes empty directories and regular files.

%files
%doc ChangeLog NEWS README
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/tmpwatch
%attr(0755,root,root) %{_sysconfdir}/cron.daily/tmpwatch
%{_sbindir}/tmpwatch
%{_mandir}/man8/tmpwatch.8*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall ROOT=%{buildroot} MANDIR=%{_mandir} SBINDIR=%{_sbindir}

install -d %{buildroot}%{_sysconfdir}/cron.daily
install -d %{buildroot}%{_sysconfdir}/sysconfig

cat > tmpwatch.cron << EOF
#!/bin/sh

[ -f %{_sysconfdir}/sysconfig/tmpwatch ] && . %{_sysconfdir}/sysconfig/tmpwatch

# we use patterns in TMPWATCH_EXCLUDES, don't allow shell to process them, leave them to tmpwatch
set -f
%{_sbindir}/tmpwatch \$TMPWATCH_OPTIONS \$TMPWATCH_EXCLUDES 10d /tmp

%{_sbindir}/tmpwatch \$TMPWATCH_OPTIONS \$TMPWATCH_EXCLUDES 30d /var/tmp
set +f

for d in /var/{cache/man,catman}/{cat?,X11R6/cat?,local/cat?,\$LANG/cat?}; do
    if [ -d "\$d" ]; then
        %{_sbindir}/tmpwatch \$TMPWATCH_OPTIONS -f 30d "\$d"
    fi
done
EOF

cat > tmpwatch.sysconfig << EOF
#TMPWATCH_OPTIONS="-umc"
# (oe) define files/directories/sockets tmpwatch should ignore (#18488)
TMPWATCH_EXCLUDES="-x /tmp/.ICE-unix -x /tmp/.X11-unix -x /tmp/.font-unix -x /tmp/.Test-unix -x /tmp/.XIM-unix -X /tmp/systemd-private*"
EOF

install -m0755 tmpwatch.cron %{buildroot}%{_sysconfdir}/cron.daily/tmpwatch
install -m0644 tmpwatch.sysconfig %{buildroot}%{_sysconfdir}/sysconfig/tmpwatch

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19992 |21mr|tmux-3.3a-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# check strangely randomly fails
# (cannot reproduce outside of ABF)
%bcond_with check

Name:           tmux
Version:	3.3a
Release:	5
Summary:        A terminal multiplexer
# Most of the source is ISC licensed; some of the files in compat/ are 2 and
# 3 clause BSD licensed.
License:        ISC and BSD
Group:		Terminals
URL:            https://tmux.github.io/
Source0:        https://github.com/tmux/tmux/releases/download/%{version}/%{name}-%{version}.tar.gz
# we need directory regress/ which is not included into release tarball, so take it from Github
Source1:		https://github.com/tmux/tmux/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}-git.tar.gz
# Examples has been removed - so include the bash_completion here
Source2:        bash_completion_tmux.sh
Source3:		test.sh
# fix segfault with set -g mouse on actions
Patch0:		0002-ncurses.patch

BuildRequires:  pkgconfig(libevent)
BuildRequires:  pkgconfig(ncurses)
BuildRequires:  pkgconfig(ncursesw)
BuildRequires:  pkgconfig(systemd)
BuildRequires:  utempter-devel
# for %%check
BuildRequires:  patchelf

Requires(post):	coreutils
Requires(post):	grep
# if any package provides it...
OrderWithRequires(post): %{_sysconfdir}/shells
Requires(postun):	sed
Requires(postun):	coreutils

%description
tmux is a "terminal multiplexer."  It enables a number of terminals (or
windows) to be accessed and controlled from a single terminal.  tmux is
intended to be a simple, modern, BSD-licensed alternative to programs such
as GNU Screen.

%post
# /etc/shells must be 0644 even if umask is e.g. 027
umask 022
if [ "$1" = 1 ]; then
  if [ ! -f %{_sysconfdir}/shells ] ; then
    touch %{_sysconfdir}/shells
  fi
  if ! grep -q "^%{_bindir}/tmux$" %{_sysconfdir}/shells; then
     (cat %{_sysconfdir}/shells; echo "%{_bindir}/tmux") > %{_sysconfdir}/shells.new
     mv %{_sysconfdir}/shells{.new,}
  fi
fi

%postun
# /etc/shells must be 0644 even if umask is e.g. 027
umask 022
if [ "$1" = 0 ] && [ -f %{_sysconfdir}/shells ] ; then
  sed -e '\!^%{_bindir}/tmux$!d' -e '\!^/bin/tmux$!d' < %{_sysconfdir}/shells > %{_sysconfdir}/shells.new
  mv %{_sysconfdir}/shells{.new,}
fi

%files
%license COPYING
%doc CHANGES README*
%{_bindir}/tmux
%{_mandir}/man1/tmux.1.*
%{_datadir}/bash-completion/completions/tmux
%config(noreplace) %{_sysconfdir}/tmux.conf

#------------------------------------------------------------------

%prep
%autosetup -p1
install -m755 %{SOURCE3} .

mkdir git
tar -C git -xf %{SOURCE1}
mv git/tmux-%{version}/regress .
rm -fr git
#sed -i -e 's,sh ,sh -x ,g' regress/Makefile
# XXX remove failing tests
# TODO: fix them?
# We run tests just as tests and for better code coverage (https://nixtux.ru/1365)
unlink regress/capture-pane-sgr0.sh
unlink regress/new-session-environment.sh

%build
%configure --enable-systemd
%make_build

%install
%make_install
# bash completion
install -Dpm 644 %{SOURCE2} %{buildroot}%{_datadir}/bash-completion/completions/tmux

# Create an empty config just to easify understanding which file to edit
mkdir -p %{buildroot}%{_sysconfdir}
touch %{buildroot}%{_sysconfdir}/tmux.conf

%if %{with check}
%check
./test.sh %{buildroot}%{_bindir}/tmux
# Some tests fail if built with --coverage (see https://nixtux.ru/1365),
# but do not fail if built normally.
# Not using Makefile to not stop testing if one test fails,
# we need to run as many tests as possible for best code coverage
#make -C regress all
cd regress
set +e
failed=0
for i in *.sh
do
	bash -x "$i"
	if [ $? != 0 ]; then
		failed=$((++failed))
	fi
done
echo "Failed $failed tests"
exit $failed
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19993 |21mr|tnef-1.4.15-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Decodes MS-TNEF attachments
Name:		tnef
Version:	1.4.15
Release:	3
License:	GPL
Group:		Networking/Mail
URL:		http://sourceforge.net/projects/tnef/
Source0:	http://prdownloads.sourceforge.net/tnef/%{name}-%{version}.tar.gz
Patch0:		CVE-2019-18849.patch
BuildRequires:	mawk
BuildRequires:	gettext-devel
BuildRequires:	autoconf2.5
BuildRequires:	libtool

%description
TNEF is a program for unpacking MIME attachments of type "application/ms-tnef".
This is a Microsoft only attachment. Due to the proliferation of Microsoft
Outlook and Exchange mail servers, more and more mail is encapsulated into
this format. The TNEF program allows one to unpack the attachments which were
encapsulated into the TNEF attachment. Thus alleviating the need to use
Microsoft Outlook to view the attachment.

%prep
%setup -q
%patch0 -p1

%build
%serverbuild
autoreconf -fi
%configure
%make

%check
make check

%install
%makeinstall_std

%clean

%files
%doc AUTHORS ChangeLog NEWS THANKS doc/FAQ
%{_bindir}/tnef
%{_mandir}/man1/tnef.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19994 |21mr|tomcat-9.0.37-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2008, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%define _duplicate_files_terminate_build 0

%global jspspec 2.3
%global major_version 9
%global minor_version 0
%global micro_version 37
%global packdname apache-tomcat-%{version}-src
%global servletspec 4.0
%global elspec 3.0
#uid set in tomcat.sysusers.conf - check it!
#%%global tcuid 53
# Recommended version is specified in java/org/apache/catalina/core/AprLifecycleListener.java
%global native_version 1.2.21


# FHS 2.3 compliant tree structure - http://www.pathname.com/fhs/2.3/
%global basedir %{_var}/lib/%{name}
%global appdir %{basedir}/webapps
%global homedir %{_datadir}/%{name}
%global bindir %{homedir}/bin
%global confdir %{_sysconfdir}/%{name}
%global libdir %{_javadir}/%{name}
%global logdir %{_var}/log/%{name}
%global cachedir %{_var}/cache/%{name}
%global tempdir %{cachedir}/temp
%global workdir %{cachedir}/work
%global _systemddir /lib/systemd/system

# Fedora doesn't seem to have this macro, so we define it if it doesn't exist
%{!?_mavendepmapfragdir: %global _mavendepmapfragdir /usr/share/maven-metadata}

Name:		tomcat
Epoch:		1
Version:	%{major_version}.%{minor_version}.%{micro_version}
Release:	6
Summary:	Apache Servlet/JSP Engine, RI for Servlet %{servletspec}/JSP %{jspspec} API
Group:		Development/Java
License:	ASL 2.0
URL:		http://tomcat.apache.org/
Source0:	http://www.apache.org/dist/tomcat/tomcat-%{major_version}/v%{version}/src/%{packdname}.tar.gz
Source1:	%{name}-%{major_version}.%{minor_version}.conf
Source3:	%{name}-%{major_version}.%{minor_version}.sysconfig
Source4:	%{name}-%{major_version}.%{minor_version}.wrapper
Source5:	%{name}-%{major_version}.%{minor_version}.logrotate
Source6:	%{name}-%{major_version}.%{minor_version}-digest.script
Source7:	%{name}-%{major_version}.%{minor_version}-tool-wrapper.script
Source11:	%{name}-%{major_version}.%{minor_version}.service
Source20:	%{name}-%{major_version}.%{minor_version}-jsvc.service
Source21:	tomcat-functions
Source30:	tomcat-preamble
Source31:	tomcat-server
Source32:	tomcat-named.service
Source33:	tomcat.sysusers.conf

Patch0:	%{name}-%{major_version}.%{minor_version}-bootstrap-MANIFEST.MF.patch
Patch1:	%{name}-%{major_version}.%{minor_version}-tomcat-users-webapp.patch
Patch2:	%{name}-build.patch
Patch3:	%{name}-%{major_version}.%{minor_version}-catalina-policy.patch
Patch4:	rhbz-1857043.patch
Patch5:	tomcat-9.0.37-RemoveCompilerOptions.patch
# also CVE-2022-23181 fix in patch6
Patch6: CVE-2020-9484.patch
Patch7: CVE-2021-24122.patch
Patch8: CVE-2021-25122.patch
Patch9: CVE-2021-25329.patch
Patch10: CVE-2021-30640.patch
Patch11: CVE-2021-33037.patch
Patch12: CVE-2021-41079.patch
Patch13: CVE-2021-42340.patch
Patch14: CVE-2021-43980.patch
Patch15: CVE-2022-29885.patch
Patch16: CVE-2022-34305.patch
Patch17: CVE-2022-42252.patch
Patch18: CVE-2023-28708.patch
Patch19: CVE-2023-28709.patch
Patch20: CVE-2023-41080.patch
# CVE-2023-42794 not-affected (Windows-specific)
Patch21: CVE-2023-42795.patch
Patch22: CVE-2023-44487.patch
Patch23: CVE-2023-45648.patch
Patch24: CVE-2020-13943.patch
Patch25: CVE-2020-17527.patch
# CVE-2023-46589 (patches 0038-0040)
Patch26: 0038-Improve-error-handling-if-non-blocking-IO-code-swall.patch
Patch27: 0039-1-2-CVE-2023-46589-Differentiate-request-cancellatio.patch
Patch28: 0040-2-2-CVE-2023-46589-Ensure-IOException-on-request-rea.patch

BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: ant
BuildRequires: ecj >= 1:4.10
BuildRequires: findutils
BuildRequires: apache-commons-daemon
BuildRequires: tomcat-taglibs-standard
BuildRequires: java-devel >= 1:1.8.0
#BuildRequires: jpackag-utils
BuildRequires: javapackages-local
#BuildRequires: junit
BuildRequires: geronimo-jaxrpc
BuildRequires: geronimo-saaj
BuildRequires: aqute-bnd
BuildRequires: aqute-bndlib
BuildRequires: wsdl4j
BuildRequires: systemd

Requires:      apache-commons-daemon
Requires:      java-headless >= 1:1.8.0
Requires:      javapackages-tools
Requires:      procps
Requires:      %{name}-lib = %{EVRD}
Recommends:    tomcat-native >= %{native_version}
Requires(pre):    /bin/systemd-sysusers
Requires(post):   systemd
Requires(preun):  systemd
Requires(postun): systemd

# added after log4j sub-package was removed
Provides:         %{name}-log4j = %{EVRD}

%description
Tomcat is the servlet container that is used in the official Reference
Implementation for the Java Servlet and JavaServer Pages technologies.
The Java Servlet and JavaServer Pages specifications are developed by
Sun under the Java Community Process.

Tomcat is developed in an open and participatory environment and
released under the Apache Software License version 2.0. Tomcat is intended
to be a collaboration of the best-of-breed developers from around the world.

#----------------------------------------------------------------------------
%package admin-webapps
Summary: The host-manager and manager web applications for Apache Tomcat
Requires: %{name} = %{EVRD}

%description admin-webapps
The host-manager and manager web applications for Apache Tomcat.

#----------------------------------------------------------------------------

%package docs-webapp
Summary: The docs web application for Apache Tomcat
Requires: %{name} = %{EVRD}

%description docs-webapp
The docs web application for Apache Tomcat.

#----------------------------------------------------------------------------

%package jsvc
Summary: Apache jsvc wrapper for Apache Tomcat as separate service
Requires: %{name} = %{EVRD}
Requires: apache-commons-daemon-jsvc

%description jsvc
Systemd service to start tomcat with jsvc,
which allows tomcat to perform some privileged operations
(e.g. bind to a port < 1024) and then switch identity to a non-privileged user.

#----------------------------------------------------------------------------

%package jsp-%{jspspec}-api
Summary: Apache Tomcat JavaServer Pages v%{jspspec} API Implementation Classes
Provides: jsp = %{jspspec}
Obsoletes: %{name}-jsp-2.2-api
Requires: %{name}-servlet-%{servletspec}-api = %{EVRD}
Requires: %{name}-el-%{elspec}-api = %{EVRD}

%description jsp-%{jspspec}-api
Apache Tomcat JSP API Implementation Classes.

#----------------------------------------------------------------------------

%package lib
Summary: Libraries needed to run the Tomcat Web container
Requires: %{name}-jsp-%{jspspec}-api = %{EVRD}
Requires: %{name}-servlet-%{servletspec}-api = %{EVRD}
Requires: %{name}-el-%{elspec}-api = %{EVRD}
Requires: ecj >= 1:4.10
Requires(preun): coreutils

%description lib
Libraries needed to run the Tomcat Web container.

#----------------------------------------------------------------------------

%package servlet-%{servletspec}-api
Summary: Apache Tomcat Java Servlet v%{servletspec} API Implementation Classes
Provides: servlet = %{servletspec}
Provides: servlet6
Provides: servlet3
Obsoletes: %{name}-servlet-3.1-api

%description servlet-%{servletspec}-api
Apache Tomcat Servlet API Implementation Classes.

#----------------------------------------------------------------------------

%package el-%{elspec}-api
Summary: Apache Tomcat Expression Language v%{elspec} API Implementation Classes
Provides: el_api = %{elspec}
Obsoletes: %{name}-el-2.2-api

%description el-%{elspec}-api
Apache Tomcat EL API Implementation Classes.

#----------------------------------------------------------------------------

%package webapps
Summary: The ROOT and examples web applications for Apache Tomcat
Requires: %{name} = %{EVRD}
Requires: tomcat-taglibs-standard >= 0:1.1

%description webapps
The ROOT and examples web applications for Apache Tomcat.

#----------------------------------------------------------------------------

%prep
%setup -q -n %{packdname}
# remove pre-built binaries and windows files
find . -type f \( -name "*.bat" -o -name "*.class" -o -name Thumbs.db -o -name "*.gz" -o \
   -name "*.jar" -o -name "*.war" -o -name "*.zip" \) -delete

%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
%patch5 -p0

#=CVE's
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1
%patch21 -p1
%patch22 -p1
%patch23 -p1
%patch24 -p1
%patch25 -p1
%patch26 -p1
%patch27 -p1
%patch28 -p1
#=====^

%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) webapps/examples/WEB-INF/lib/jstl.jar
%{__ln_s} $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) webapps/examples/WEB-INF/lib/standard.jar

%{__cp} -fr %{_javadir}/ecj/ecj.jar .

%build
export OPT_JAR_LIST="xalan-j2-serializer"
   # we don't care about the tarballs and we're going to replace
   # tomcat-dbcp.jar with apache-commons-{collections,dbcp,pool}-tomcat5.jar
   # so just create a dummy file for later removal
   touch HACK

   # who needs a build.properties file anyway
   %{ant} -Dbase.path="." \
      -Dbuild.compiler="modern" \
      -Dcommons-daemon.jar="$(build-classpath apache-commons-daemon)" \
      -Dcommons-daemon.native.src.tgz="HACK" \
      -Djdt.jar="$PWD/ecj.jar" \
      -Dtomcat-native.tar.gz="HACK" \
      -Dtomcat-native.home="." \
      -Dcommons-daemon.native.win.mgr.exe="HACK" \
      -Dnsis.exe="HACK" \
      -Djaxrpc-lib.jar="$(build-classpath jaxrpc)" \
      -Dwsdl4j-lib.jar="$(build-classpath wsdl4j)" \
      -Dsaaj-api.jar="$(build-classpath geronimo-saaj)" \
      -Dbnd.jar="$(build-classpath aqute-bnd/biz.aQute.bnd)" \
      -Dbndlib.jar="$(build-classpath aqute-bnd/biz.aQute.bndlib)" \
      -Dbndlibg.jar="$(build-classpath aqute-bnd/aQute.libg)" \
      -Dbndannotation.jar="$(build-classpath aqute-bnd/biz.aQute.bnd.annotation)" \
      -Dslf4j-api.jar="$(build-classpath slf4j/slf4j-api)" \
      -Dosgi-cmpn.jar="$(build-classpath osgi-compendium/osgi.cmpn)" \
      -Dversion="%{version}" \
      -Dversion.build="%{micro_version}" \
      deploy dist-source

    # remove some jars that we'll replace with symlinks later
    %{__rm} output/build/bin/commons-daemon.jar output/build/lib/ecj.jar
pushd output/dist/src/webapps/docs/appdev/sample/src
%{__mkdir_p} ../web/WEB-INF/classes
%{javac} -cp ../../../../../../../../output/build/lib/servlet-api.jar -d ../web/WEB-INF/classes mypackage/Hello.java
pushd ../web
%{jar} cf ../../../../../../../../output/build/webapps/docs/appdev/sample/sample.war *
popd
popd

%install
# build initial path structure
%{__install} -d -m 0755 %{buildroot}%{_bindir}
%{__install} -d -m 0755 %{buildroot}%{_sbindir}
%{__install} -d -m 0755 %{buildroot}%{_systemddir}
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/logrotate.d
%{__install} -d -m 0755 %{buildroot}%{_sysconfdir}/sysconfig
%{__install} -d -m 0755 %{buildroot}%{appdir}
%{__install} -d -m 0755 %{buildroot}%{bindir}
%{__install} -d -m 0775 %{buildroot}%{confdir}
%{__install} -d -m 0775 %{buildroot}%{confdir}/Catalina/localhost
%{__install} -d -m 0775 %{buildroot}%{confdir}/conf.d
/bin/echo "Place your custom *.conf files here. Shell expansion is supported." > %{buildroot}%{confdir}/conf.d/README
%{__install} -d -m 0755 %{buildroot}%{libdir}
%{__install} -d -m 0775 %{buildroot}%{logdir}
/bin/touch %{buildroot}%{logdir}/catalina.out
%{__install} -d -m 0775 %{buildroot}%{_localstatedir}/lib/tomcats
%{__install} -d -m 0775 %{buildroot}%{homedir}
%{__install} -d -m 0775 %{buildroot}%{tempdir}
%{__install} -d -m 0775 %{buildroot}%{workdir}
%{__install} -d -m 0755 %{buildroot}%{_unitdir}
%{__install} -d -m 0755 %{buildroot}%{_libexecdir}/%{name}

# move things into place
# First copy supporting libs to tomcat lib
pushd output/build
    %{__cp} -a bin/*.{jar,xml} %{buildroot}%{bindir}
    %{__cp} -a conf/*.{policy,properties,xml,xsd} %{buildroot}%{confdir}
    %{__cp} -a lib/*.jar %{buildroot}%{libdir}
    %{__cp} -a webapps/* %{buildroot}%{appdir}
popd

%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE1} \
    > %{buildroot}%{confdir}/%{name}.conf
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE3} \
    > %{buildroot}%{_sysconfdir}/sysconfig/%{name}
%{__install} -m 0644 %{SOURCE4} \
    %{buildroot}%{_sbindir}/%{name}
%{__install} -m 0644 %{SOURCE11} \
    %{buildroot}%{_unitdir}/%{name}.service
%{__install} -m 0644 %{SOURCE20} \
    %{buildroot}%{_unitdir}/%{name}-jsvc.service
%{__sed} -e "s|\@\@\@TCLOG\@\@\@|%{logdir}|g" %{SOURCE5} \
    > %{buildroot}%{_sysconfdir}/logrotate.d/%{name}
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE6} \
    > %{buildroot}%{_bindir}/%{name}-digest
%{__sed} -e "s|\@\@\@TCHOME\@\@\@|%{homedir}|g" \
   -e "s|\@\@\@TCTEMP\@\@\@|%{tempdir}|g" \
   -e "s|\@\@\@LIBDIR\@\@\@|%{_libdir}|g" %{SOURCE7} \
    > %{buildroot}%{_bindir}/%{name}-tool-wrapper

%{__install} -m 0644 %{SOURCE21} \
    %{buildroot}%{_libexecdir}/%{name}/functions
%{__install} -m 0755 %{SOURCE30} \
    %{buildroot}%{_libexecdir}/%{name}/preamble
%{__install} -m 0755 %{SOURCE31} \
    %{buildroot}%{_libexecdir}/%{name}/server
%{__install} -m 0644 %{SOURCE32} \
    %{buildroot}%{_unitdir}/%{name}@.service

# Substitute libnames in catalina-tasks.xml
sed -i \
   "s,el-api.jar,%{name}-el-%{elspec}-api.jar,;
    s,servlet-api.jar,%{name}-servlet-%{servletspec}-api.jar,;
    s,jsp-api.jar,%{name}-jsp-%{jspspec}-api.jar,;" \
    %{buildroot}%{bindir}/catalina-tasks.xml

# create jsp and servlet API symlinks
pushd %{buildroot}%{_javadir}
   %{__mv} %{name}/jsp-api.jar %{name}-jsp-%{jspspec}-api.jar
   %{__ln_s} %{name}-jsp-%{jspspec}-api.jar %{name}-jsp-api.jar
   %{__mv} %{name}/servlet-api.jar %{name}-servlet-%{servletspec}-api.jar
   %{__ln_s} %{name}-servlet-%{servletspec}-api.jar %{name}-servlet-api.jar
   %{__mv} %{name}/el-api.jar %{name}-el-%{elspec}-api.jar
   %{__ln_s} %{name}-el-%{elspec}-api.jar %{name}-el-api.jar
popd

pushd output/build
    %{_bindir}/build-jar-repository lib ecj 2>&1
    # need to use -p here with b-j-r otherwise the examples webapp fails to
    # load with a java.io.IOException
    %{_bindir}/build-jar-repository -p webapps/examples/WEB-INF/lib \
    tomcat-taglibs-standard/taglibs-standard-impl.jar tomcat-taglibs-standard/taglibs-standard-compat.jar 2>&1
popd

pushd %{buildroot}%{libdir}
    # symlink JSP and servlet API jars
    %{__ln_s} ../../java/%{name}-jsp-%{jspspec}-api.jar .
    %{__ln_s} ../../java/%{name}-servlet-%{servletspec}-api.jar .
    %{__ln_s} ../../java/%{name}-el-%{elspec}-api.jar .
    %{__ln_s} $(build-classpath ecj/ecj) jasper-jdt.jar

    # Temporary copy the juli jar here from /usr/share/java/tomcat (for maven depmap)
    %{__cp} -a %{buildroot}%{bindir}/tomcat-juli.jar ./
popd

# symlink to the FHS locations where we've installed things
pushd %{buildroot}%{homedir}
    %{__ln_s} %{appdir} webapps
    %{__ln_s} %{confdir} conf
    %{__ln_s} %{libdir} lib
    %{__ln_s} %{logdir} logs
    %{__ln_s} %{tempdir} temp
    %{__ln_s} %{workdir} work
popd

# install sample webapp
%{__mkdir_p} %{buildroot}%{appdir}/sample
pushd %{buildroot}%{appdir}/sample
%{jar} xf %{buildroot}%{appdir}/docs/appdev/sample/sample.war
popd
%{__rm} %{buildroot}%{appdir}/docs/appdev/sample/sample.war

# Allow linking for example webapp
%{__mkdir_p} %{buildroot}%{appdir}/examples/META-INF
pushd %{buildroot}%{appdir}/examples/META-INF
echo '<?xml version="1.0" encoding="UTF-8"?>' > context.xml
echo '<Context>' >> context.xml
echo '  <Resources allowLinking="true" />' >> context.xml
echo '</Context>' >> context.xml
popd

pushd %{buildroot}%{appdir}/examples/WEB-INF/lib
%{__ln_s} -f $(build-classpath tomcat-taglibs-standard/taglibs-standard-impl) jstl.jar
%{__ln_s} -f $(build-classpath tomcat-taglibs-standard/taglibs-standard-compat) standard.jar
popd


# Install the maven metadata
%{__install} -d -m 0755 %{buildroot}%{_mavenpomdir}
pushd output/dist/src/res/maven
for pom in *.pom; do
    # fix-up version in all pom files
    sed -i 's/@MAVEN.DEPLOY.VERSION@/%{version}/g' $pom
done

# we won't install dbcp, juli-adapters and juli-extras pom files
for libname in annotations-api catalina jasper-el jasper catalina-ha; do
    %{__cp} -a %{name}-$libname.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-$libname.pom
    %add_maven_depmap JPP.%{name}-$libname.pom %{name}/$libname.jar -f "tomcat-lib"
done

# tomcat-util-scan
%{__cp} -a %{name}-util-scan.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-util-scan.pom
%add_maven_depmap JPP.%{name}-util-scan.pom %{name}/%{name}-util-scan.jar -f "tomcat-lib"

# tomcat-jni
%{__cp} -a %{name}-jni.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-jni.pom
%add_maven_depmap JPP.%{name}-jni.pom %{name}/%{name}-jni.jar -f "tomcat-lib"

# servlet-api jsp-api and el-api are not in tomcat subdir, since they are widely re-used elsewhere
%{__cp} -a tomcat-jsp-api.pom %{buildroot}%{_mavenpomdir}/JPP-tomcat-jsp-api.pom
%add_maven_depmap JPP-tomcat-jsp-api.pom tomcat-jsp-api.jar -f "tomcat-jsp-api" -a "org.eclipse.jetty.orbit:javax.servlet.jsp"

%{__cp} -a tomcat-el-api.pom %{buildroot}%{_mavenpomdir}/JPP-tomcat-el-api.pom
%add_maven_depmap JPP-tomcat-el-api.pom tomcat-el-api.jar -f "tomcat-el-api" -a "org.eclipse.jetty.orbit:javax.el"

%{__cp} -a tomcat-servlet-api.pom %{buildroot}%{_mavenpomdir}/JPP-tomcat-servlet-api.pom
# Generate a depmap fragment javax.servlet:servlet-api pointing to
# tomcat-servlet-3.0-api for backwards compatibility
# also provide jetty depmap (originally in jetty package, but it's cleaner to have it here
%add_maven_depmap JPP-tomcat-servlet-api.pom tomcat-servlet-api.jar -f "tomcat-servlet-api"

# replace temporary copy with link
%{__ln_s} -f $(abs2rel %{bindir}/tomcat-juli.jar %{libdir}) %{buildroot}%{libdir}/

# two special pom where jar files have different names
%{__cp} -a tomcat-tribes.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
%add_maven_depmap JPP.%{name}-catalina-tribes.pom %{name}/catalina-tribes.jar

%{__cp} -a tomcat-coyote.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
%add_maven_depmap JPP.%{name}-tomcat-coyote.pom %{name}/tomcat-coyote.jar

%{__cp} -a tomcat-juli.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
%add_maven_depmap JPP.%{name}-tomcat-juli.pom %{name}/tomcat-juli.jar

%{__cp} -a tomcat-api.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
%add_maven_depmap JPP.%{name}-tomcat-api.pom %{name}/tomcat-api.jar

%{__cp} -a tomcat-util.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
%add_maven_depmap JPP.%{name}-tomcat-util.pom %{name}/tomcat-util.jar

%{__cp} -a tomcat-jdbc.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom
%add_maven_depmap JPP.%{name}-tomcat-jdbc.pom %{name}/tomcat-jdbc.jar

# tomcat-websocket-api
%{__cp} -a tomcat-websocket-api.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-websocket-api.pom
%add_maven_depmap JPP.%{name}-websocket-api.pom %{name}/websocket-api.jar

# tomcat-tomcat-websocket
%{__cp} -a tomcat-websocket.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-tomcat-websocket.pom
%add_maven_depmap JPP.%{name}-tomcat-websocket.pom %{name}/tomcat-websocket.jar

# tomcat-jaspic-api
%{__cp} -a tomcat-jaspic-api.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-jaspic-api.pom
%add_maven_depmap JPP.%{name}-jaspic-api.pom %{name}/jaspic-api.jar

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE33} %{buildroot}%{_sysusersdir}/tomcat.conf

%pre
# add the tomcat user and group
#getent group tomcat >/dev/null || %{_sbindir}/groupadd -f -g %{tcuid} -r tomcat
#if ! getent passwd tomcat >/dev/null ; then
#    if ! getent passwd %{tcuid} >/dev/null ; then
#        %{_sbindir}/useradd -r -u %{tcuid} -g tomcat -d %{homedir} -s /sbin/nologin -c "Apache Tomcat" tomcat
#        # Tomcat uses a reserved ID, so there should never be an else
#    fi
#fi
%sysusers_create_package tomcat %{SOURCE33}

%post
# install but don't activate
%systemd_post %{name}.service

%post jsp-%{jspspec}-api
%{_sbindir}/update-alternatives --install %{_javadir}/jsp.jar jsp \
    %{_javadir}/%{name}-jsp-%{jspspec}-api.jar 20200

%post servlet-%{servletspec}-api
%{_sbindir}/update-alternatives --install %{_javadir}/servlet.jar servlet \
    %{_javadir}/%{name}-servlet-%{servletspec}-api.jar 30000

%post el-%{elspec}-api
%{_sbindir}/update-alternatives --install %{_javadir}/elspec.jar elspec \
   %{_javadir}/%{name}-el-%{elspec}-api.jar 20300

%preun
# clean tempdir and workdir on removal or upgrade
%{__rm} -rf %{workdir}/* %{tempdir}/*
%systemd_preun %{name}.service

%postun
%systemd_postun_with_restart %{name}.service 

%postun jsp-%{jspspec}-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove jsp \
        %{_javadir}/%{name}-jsp-%{jspspec}-api.jar
fi

%postun servlet-%{servletspec}-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove servlet \
        %{_javadir}/%{name}-servlet-%{servletspec}-api.jar
fi

%postun el-%{elspec}-api
if [ "$1" = "0" ]; then
    %{_sbindir}/update-alternatives --remove elspec \
        %{_javadir}/%{name}-el-%{elspec}-api.jar
fi

%files 
%defattr(0664,root,tomcat,0755)
%doc {LICENSE,NOTICE,RELEASE*}
%attr(0755,root,root) %{_bindir}/%{name}-digest
%attr(0755,root,root) %{_bindir}/%{name}-tool-wrapper
%attr(0755,root,root) %{_sbindir}/%{name}
%attr(0644,root,root) %{_unitdir}/%{name}.service
%attr(0644,root,root) %{_unitdir}/%{name}@.service
%attr(0755,root,root) %dir %{_libexecdir}/%{name}
%attr(0755,root,root) %dir %{_localstatedir}/lib/tomcats
%attr(0644,root,root) %{_libexecdir}/%{name}/functions
%attr(0755,root,root) %{_libexecdir}/%{name}/preamble
%attr(0755,root,root) %{_libexecdir}/%{name}/server
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%attr(0755,root,tomcat) %dir %{basedir}
%attr(0755,root,tomcat) %dir %{confdir}

%defattr(0664,tomcat,root,0770)
%attr(0770,tomcat,root) %dir %{logdir}

%defattr(0664,root,tomcat,0770)
%attr(0770,root,tomcat) %dir %{cachedir}
%attr(0770,root,tomcat) %dir %{tempdir}
%attr(0770,root,tomcat) %dir %{workdir}

%defattr(0644,root,tomcat,0775)
%attr(0775,root,tomcat) %dir %{appdir}
%attr(0775,root,tomcat) %dir %{confdir}/Catalina
%attr(0775,root,tomcat) %dir %{confdir}/Catalina/localhost
%attr(0755,root,tomcat) %dir %{confdir}/conf.d
%{confdir}/conf.d/README
%config(noreplace) %{confdir}/%{name}.conf
%config(noreplace) %{confdir}/*.policy
%config(noreplace) %{confdir}/*.properties
%config(noreplace) %{confdir}/context.xml
%config(noreplace) %{confdir}/server.xml
%attr(0640,root,tomcat) %config(noreplace) %{confdir}/tomcat-users.xml
%attr(0664,root,tomcat) %{confdir}/tomcat-users.xsd
%attr(0664,root,tomcat) %config(noreplace) %{confdir}/jaspic-providers.xml
%attr(0664,root,tomcat) %{confdir}/jaspic-providers.xsd
%config(noreplace) %{confdir}/web.xml
%dir %{homedir}
%{bindir}/bootstrap.jar
%{bindir}/catalina-tasks.xml
%{homedir}/lib
%{homedir}/temp
%{homedir}/webapps
%{homedir}/work
%{homedir}/logs
%{homedir}/conf
%{_sysusersdir}/tomcat.conf

%files admin-webapps
%defattr(0664,root,tomcat,0755)
%{appdir}/host-manager
%{appdir}/manager

%files docs-webapp
%{appdir}/docs

%files jsp-%{jspspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-jsp-api
%{_javadir}/%{name}-jsp-%{jspspec}*.jar

%files lib -f output/dist/src/res/maven/.mfiles-tomcat-lib
%dir %{libdir}
%{libdir}/*.jar
%{_javadir}/*.jar
%{bindir}/tomcat-juli.jar
%{_mavenpomdir}/JPP.%{name}-annotations-api.pom
%{_mavenpomdir}/JPP.%{name}-catalina-ha.pom
%{_mavenpomdir}/JPP.%{name}-catalina-tribes.pom
%{_mavenpomdir}/JPP.%{name}-catalina.pom
%{_mavenpomdir}/JPP.%{name}-jasper-el.pom
%{_mavenpomdir}/JPP.%{name}-jasper.pom
%{_mavenpomdir}/JPP.%{name}-tomcat-api.pom
%{_mavenpomdir}/JPP.%{name}-tomcat-juli.pom
%{_mavenpomdir}/JPP.%{name}-tomcat-coyote.pom
%{_mavenpomdir}/JPP.%{name}-tomcat-util.pom
%{_mavenpomdir}/JPP.%{name}-tomcat-jdbc.pom
%{_mavenpomdir}/JPP.%{name}-websocket-api.pom
%{_mavenpomdir}/JPP.%{name}-tomcat-websocket.pom
%{_mavenpomdir}/JPP.%{name}-jaspic-api.pom
%{_datadir}/maven-metadata/tomcat.xml
%exclude %{libdir}/%{name}-el-%{elspec}-api.jar
%exclude %{_javadir}/%{name}-servlet-%{servletspec}*.jar
%exclude %{_javadir}/%{name}-el-%{elspec}-api.jar
%exclude %{_javadir}/%{name}-jsp-%{jspspec}*.jar

%files servlet-%{servletspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-servlet-api
%doc LICENSE
%{_javadir}/%{name}-servlet-%{servletspec}*.jar

%files el-%{elspec}-api -f output/dist/src/res/maven/.mfiles-tomcat-el-api
%doc LICENSE
%{_javadir}/%{name}-el-%{elspec}-api.jar
%{libdir}/%{name}-el-%{elspec}-api.jar

%files webapps
%defattr(0644,tomcat,tomcat,0755)
%{appdir}/ROOT
%{appdir}/examples
%{appdir}/sample

%files jsvc
%defattr(755,root,root,0755)
%attr(0644,root,root) %{_unitdir}/%{name}-jsvc.service
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%attr(0660,tomcat,tomcat) %verify(not size md5 mtime) %{logdir}/catalina.out

%changelog
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.37-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild

* Fri Jul 24 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.37-3
- Related: rhbz#1857043 Temporarily remove OSGi metadata from tomcat jars

* Mon Jul 20 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.37-2
- Resolves: rhbz#1857043 Add patch to reinclude o.a.t.util.net.jsse and o.a.t.util.moduler.modules in tomcat-coyote.jar

* Mon Jul 13 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.37-1
- Update to 9.0.37

* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 1:9.0.36-2
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11

* Wed Jun 10 2020 Hui Wang <huwang@redhat.com> - 1:9.0.36-1
- Upgrade to 9.0.36

* Sun May 31 2020 Hui Wang <huwang@redhat.com> - 1:9.0.35-2
- Upgrade to 9.0.35

* Wed Apr 22 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.34-2
- Add updated catalina.policy patch to allow ECJ usage under the Security Manager

* Tue Apr 21 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.34-1
- Update to 9.0.34

* Thu Mar 05 2020 Coty Sutherland <csutherl@redhat.com> - 1:9.0.31-1
- Update to 9.0.31
- Resolves: rhbz#1806398 - CVE-2020-1938 tomcat: Apache Tomcat AJP File Read/Inclusion Vulnerability

* Fri Jan 31 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.30-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild

* Fri Dec 20 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.30-1
- Update to 9.0.30

* Thu Sep 26 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.26-2
- Resolves: rhbz#1510522 man page uid and gid mismatch for service accounts

* Thu Sep 26 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.26-1
- Update to 9.0.26
- Resolves: rhbz#1523112 tomcat systemd does not cope with - in service names
- Resolves: rhbz#1510896 Problem to start tomcat with a user whose group has a name different to the user

* Sat Jul 27 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.21-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild

* Wed Jul 17 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.21-2
- Update build-classpath calls to ECJ to specify the JAR we want to use

* Tue Jun 18 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.21-1
- Update to 9.0.21

* Tue Apr 02 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.13-4
- Remove javadoc subpackage to drop the jpackage-utils dependency

* Wed Feb 20 2019 Coty Sutherland <csutherl@redhat.com> - 1:9.0.13-3
- Remove OSGi MANIFEST files, these are now included in the upstream Tomcat distribution (as of 9.0.10)
- Remove unused dependencies, apache-commons-collections, apache-commons-daemon, apache-commons-pool, junit

* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.13-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

* Thu Dec 13 2018 Coty Sutherland <csutherl@redhat.com> - 1:9.0.13-1
- Update to 9.0.13
- Resolves: rhbz#1636513 - CVE-2018-11784 tomcat: Open redirect in default servlet

* Sun Oct 14 2018 Peter Robinson <pbrobinson@fedoraproject.org> 1:9.0.10-2
- Drop legcy sys-v bits

* Tue Jul 31 2018 Coty Sutherland <csutherl@redhat.com> - 1:9.0.10-1
- Update to 9.0.10
- Resolves: rhbz#1624929 - CVE-2018-1336 tomcat: A bug in the UTF-8 decoder can lead to DoS
- Resolves: rhbz#1579612 - CVE-2018-8014 tomcat: Insecure defaults in CORS filter enable 'supportsCredentials' for all origins
- Resolves: rhbz#1607586 - CVE-2018-8034 tomcat: host name verification missing in WebSocket client
- Resolves: rhbz#1607584 - CVE-2018-8037 tomcat: Due to a mishandling of close in NIO/NIO2 connectors user sessions can get mixed up

* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:9.0.7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild

* Tue May 01 2018 Coty Sutherland <csutherl@redhat.com> - 1:9.0.7-1
- Update to 9.0.7

* Thu Mar 15 2018 Coty Sutherland <csutherl@redhat.com> - 1:8.5.29-1
- Update to 8.5.29
- Resolves: rhbz#1548290 CVE-2018-1304 tomcat: Incorrect handling of empty string URL in security constraints can lead to unitended exposure of resources
- Resolves: rhbz#1548284 CVE-2018-1305 tomcat: Late application of security constraints can lead to resource exposure for unauthorised users

* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 1:8.0.49-2
- Escape macros in %%changelog

* Thu Feb 01 2018 Coty Sutherland <csutherl@redhat.com> - 1:8.0.49-1
- Update to 8.0.49

* Tue Dec 12 2017 Merlin Mathesius <mmathesi@redhat.com> - 1:8.0.47-3
- Cleanup spec file conditionals

* Tue Oct 24 2017 Troy Dawson <tdawson@redhat.com> - 1:8.0.47-2
- Change "zip -u" to "zip"
- Resolves: rhbz#1495241 [tomcat] zip -u in spec file causes race condition

* Wed Oct 04 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.47-1
- Update to 8.0.47
- Resolves: rhbz#1497682 CVE-2017-12617 tomcat: Remote Code Execution bypass for CVE-2017-12615

* Mon Aug 21 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.46-1
- Update to 8.0.46
- Resolves: rhbz#1480620 CVE-2017-7674 tomcat: Cache Poisoning

* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.0.44-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild

* Fri Jun 09 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.44-1
- Resolves: rhbz#1459160 CVE-2017-5664 tomcat: Security constrained bypass in error page mechanism

* Tue Apr 11 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.43-1
- Update to 8.0.43

* Fri Mar 31 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.42-1
- Update to 8.0.42

* Thu Feb 16 2017 Coty Sutherland <csutherl@redhat.com> - 1:8.0.41-1
- Update to 8.0.41
- Resolves: rhbz#1403825 CVE-2016-8745 tomcat: information disclosure due to incorrect Processor sharing

* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.0.39-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild

* Tue Nov 29 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.39-1
- Update to 8.0.39
- Resolves: rhbz#1397493 CVE-2016-6816 CVE-2016-6817 CVE-2016-8735 tomcat: various flaws

* Tue Oct 25 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.38-1
- Update to 8.0.38

* Sun Oct 23 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.37-3
- Resolves: rhbz#1383216 CVE-2016-6325 tomcat: tomcat writable config files allow privilege escalation
- Resolves: rhbz#1382310 CVE-2016-5425 tomcat: Local privilege escalation via systemd-tmpfiles service

* Tue Sep 13 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.37-1
- Rebase to 8.0.37
- Resolves: rhbz#1375581 CVE-2016-5388 CGI sets environmental variable based on user supplied Proxy request header
- Resolves: rhbz#1370262 catalina.out is no longer in use in the main package, but still gets rotated

* Thu Aug 11 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.36-2
- Related: rhbz#1349469 Correct typo in changelog entry

* Mon Aug 08 2016 Coty Sutherland <csutherl@redhat.com> - 1:8.0.36-1
- Resolves: rhbz#1349469 CVE-2016-3092 tomcat: Usage of vulnerable FileUpload package can result in denial of service (updates to 8.0.36)
- Resolves: rhbz#1364056 The command tomcat-digest doesn't work
- Resolves: rhbz#1363884 The tomcat-tool-wrapper script is broken
- Resolves: rhbz#1347864 The systemd service unit does not allow tomcat to shut down gracefully
- Resolves: rhbz#1347835 The security manager doesn't work correctly (JSPs cannot be compiled)
- Resolves: rhbz#1341853 rpm -V tomcat fails on /var/log/tomcat/catalina.out
- Resolves: rhbz#1341850 tomcat-jsvc.service has TOMCAT_USER value hard-coded
- Resolves: rhbz#1359737 Missing maven depmap for the following artifacts: org.apache.tomcat:tomcat-websocket, org.apache.tomcat:tomcat-websocket-api
- Resolves: asfbz#59960  Building javadocs with java8 fails

* Wed Mar 2 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-4
- Revert sysconfig migration changes, resolves: rhbz#1311771, rhbz#1311905
- Add /etc/tomcat/conf.d/ with shell expansion support, resolves rhbz#1293636

* Sat Feb 27 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-3
- Load sysconfig from tomcat.conf, resolves: rhbz#1311771, rhbz#1311905
- Set default javax.sql.DataSource factory to apache commons one, resolves rhbz#1214381

* Sun Feb 21 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-2
- Fix symlinks from $CATALINA_HOME/lib perspective, resolves: rhbz#1308685

* Thu Feb 11 2016 Ivan Afonichev <ivan.afonichev@gmail.com> - 1:8.0.32-1
- Updated to 8.0.32
- Remove log4j support. It has never been working actually. See rhbz#1236297
- Move shipped config to /etc/sysconfig/tomcat. /etc/tomcat/tomcat.conf can now be used to override it with shell expansion, resolves rhbz#1293636
- Recommend tomcat-native, resolves: rhbz#1243132

* Wed Feb 10 2016 Coty Sutherland <csutherl@redhat.com> 1:8.0.26-4
- Resolves: rhbz#1286800 Failed to start component due to wrong allowLinking="true" in context.xml
- Program /bin/nologin does not exist (#1302718)

* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:8.0.26-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

* Wed Nov 11 2015 Robert Scheck <robert@fedoraproject.org> 1:8.0.26-2
- CATALINA_OPTS are only read when SECURITY_MANAGER is true (#1147105)

* Thu Aug 27 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.26-1
- Update to 8.0.26.

* Fri Jul 10 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.24-2
- Update to 8.0.24.

* Fri Jun 19 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.23-2
- Drop javax.el:el-api alias.

* Thu Jun 18 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.23-1
- Update to 8.0.23.

* Thu Jun 18 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.20-3
- Drop jetty alias for servlet.

* Tue Jun 09 2015 Michal Srb <msrb@redhat.com> - 1:8.0.20-2
- Fix metadata for org.apache.tomcat:{tomcat-jni,tomcat-util-scan}

* Thu Mar 5 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.18-5
- Rebuild against tomcat-taglibs-standard.

* Wed Mar 4 2015 Alexander Kurtakov <akurtako@redhat.com> 1:8.0.18-4
- Fix epoch bumped el_1_0_api that would override all other glassfish/jboss/etc. due to wrong epoch.
- Drop old provides. 

* Tue Mar 03 2015 Stephen Gallagher <sgallagh@redhat.com> 1:8.0.18-3
- Bump epoch to maintain upgrade path from Fedora 22

* Mon Feb 16 2015 Michal Srb <msrb@redhat.com> - 0:8.0.18-2
- Install POM files for org.apache.tomcat:{tomcat-jni,tomcat-util-scan}

* Sun Feb 15 2015 Ivan Afonichev <ivan.afonichev@gmail.com> 0:8.0.18-1
- Updated to 8.0.18

* Sat Sep 20 2014 Ivan Afonichev <ivan.afonichev@gmail.com> 0:8.0.12-1
- Updated to 8.0.12
- Substitute libnames in catalina-tasks.xml, resolves: rhbz#1126439
- Use CATALINA_OPTS only on start, resolves: rhbz#1051194

* Mon Jun 16 2014 Michal Srb <msrb@redhat.com> - 0:7.0.54-3
- jsp-api requires el-api

* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:7.0.54-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild

* Thu Jun 5 2014 Alexander Kurtakov <akurtako@redhat.com> 0:7.0.54-1
- Update to upstream 7.0.54 - fixes compile with Java 8.

* Wed May 21 2014 Alexander Kurtakov <akurtako@redhat.com> 0:7.0.52-3
- Drop servlet/el api provides to reduce user machines ending with both.

* Sun Mar 30 2014 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.52-2
- Don't provide maven javax.jsp:jsp-api and javax.servlet.jsp:javax.servlet.jsp-api resolves: rhbz#1076949
- Move log4j support into subpackage, resolves: rhbz#1027716

* Wed Mar 26 2014 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.52-1
- Updated to 7.0.52
- Rewrite jsvc implementation, resolves: rhbz#1051743
- Switch to java-headless R, resolves: rhbz#1068566
- Create and own %%{_localstatedir}/lib/tomcats, resolves: rhbz#1026741
- Add pom for tomcat-jdbc, resolves: rhbz#1011003 

* Tue Jan 21 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:7.0.47-3
- Fix installation of Maven metadata for tomcat-juli.jar
- Resolves: rhbz#1033664

* Wed Jan 15 2014 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:7.0.47-2
- Rebuild for bug #1033664

* Sun Nov 03 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.47-1
- Updated to 7.0.47
- Fix java.security.policy

* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:7.0.42-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild

* Fri Jul 12 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.42-2
- Remove jpackage-utils R

* Thu Jul 11 2013 Dmitry Tikhonov <squall.sama@gmail.com> 0:7.0.42-1
- Updated to 7.0.42

* Tue Jun 11 2013 Paul Komkoff <i@stingr.net> 0:7.0.40-3
- Dropped systemv inits. Bye-bye.
- Updated the systemd wrappers to allow running multiple instances.
  Added wrapper scripts to do that, ported the original non-named
  service file to work with the same wrappers, updated
  /usr/sbin/tomcat to call systemctl.

* Sat May 11 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.40-1
- Updated to 7.0.40
- Resolves: rhbz 956569 added missing commons-pool link
- Remove ant-nodeps BR

* Mon Mar  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 0:7.0.37-2
- Add depmaps for org.eclipse.jetty.orbit
- Resolves: rhbz#917626

* Wed Feb 20 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.39-1
- Updated to 7.0.39

* Wed Feb 20 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.37-1
- Updated to 7.0.37

* Mon Feb 4 2013 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.35-1
- Updated to 7.0.35
- systemd SuccessExitStatus=143 for proper stop exit code processing

* Mon Dec 24 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.34-1
- Updated to 7.0.34
- ecj >= 4.2.1 now required
- Resolves: rhbz 889395 concat classpath correctly; chdir to $CATALINA_HOME

* Fri Dec 7 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.33-2
- Resolves: rhbz 883806 refix logdir ownership 

* Sun Dec 2 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.33-1
- Updated to 7.0.33
- Resolves: rhbz 873620 need chkconfig for update-alternatives

* Wed Oct 17 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.32-1
- Updated to 7.0.32
- Resolves: rhbz 842620 symlinks to taglibs

* Fri Aug 24 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.29-1
- Updated to 7.0.29
- Add pidfile as tmpfile
- Use systemd for running as unprivileged user
- Resolves: rhbz 847751 upgrade path was broken
- Resolves: rhbz 850343 use new systemd-rpm macros

* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0:7.0.28-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild

* Mon Jul 2 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.28-1
- Updated to 7.0.28
- Resolves: rhbz 820119 Remove bundled apache-commons-dbcp
- Resolves: rhbz 814900 Added tomcat-coyote POM
- Resolves: rhbz 810775 Remove systemv stuff from %%post scriptlet
- Remove redhat-lsb R 

* Mon Apr 9 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.27-2
- Fixed native download hack

* Sat Apr 7 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.27-1
- Updated to 7.0.27
- Fixed jakarta-taglibs-standard BR and R

* Wed Mar 21 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:7.0.26-2
- Add more depmaps to J2EE apis to help jetty/glassfish updates

* Wed Mar 14 2012 Juan Hernandez <juan.hernandez@redhat.com> 0:7.0.26-2
- Added the POM files for tomcat-api and tomcat-util (#803495)

* Wed Feb 22 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.26-1
- Updated to 7.0.26
- Bug 790334: Change ownership of logdir for logrotate

* Thu Feb 16 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.25-4
- Bug 790694: Priorities of jsp, servlet and el packages updated.

* Wed Feb 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.25-3
- Dropped indirect dependecy to tomcat 5

* Sun Jan 22 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-2
- Added hack for maven depmap of tomcat-juli absolute link [ -f ] pass correctly

* Sat Jan 21 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.25-1
- Updated to 7.0.25
- Removed EntityResolver patch (changes already in upstream sources)
- Place poms and depmaps in the same package as jars
- Added javax.servlet.descriptor to export-package of servlet-api
- Move several chkconfig actions and reqs to systemv subpackage
- New maven depmaps generation method
- Add patch to support java7. (patch sent upstream).
- Require java >= 1:1.6.0

* Fri Jan 13 2012 Krzysztof Daniel <kdaniel@redhat.com> 0:7.0.23-5
- Exported javax.servlet.* packages in version 3.0 as 2.6 to make
  servlet-api compatible with Eclipse.

* Thu Jan 12 2012 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.23-4
- Move jsvc support to subpackage

* Wed Jan 11 2012 Alexander Kurtakov <akurtako@redhat.com> 0:7.0.23-2
- Add EntityResolver setter patch to jasper for jetty's need. (patch sent upstream).

* Mon Dec 12 2011 Joseph D. Wagner <joe@josephdwagner.info> 0:7.0.23-3
- Added support to /usr/sbin/tomcat-sysd and /usr/sbin/tomcat for
  starting tomcat with jsvc, which allows tomcat to perform some
  privileged operations (e.g. bind to a port < 1024) and then switch
  identity to a non-privileged user. Must add USE_JSVC="true" to
  /etc/tomcat/tomcat.conf or /etc/sysconfig/tomcat.

* Mon Nov 28 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.23-1
- Updated to 7.0.23

* Fri Nov 11 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.22-2
- Move tomcat-juli.jar to lib package
- Drop %%update_maven_depmap as in tomcat6
- Provide native systemd unit file ported from tomcat6

* Thu Oct 6 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.22-1
- Updated to 7.0.22

* Mon Oct 03 2011 Rex Dieter <rdieter@fedoraproject.org> - 0:7.0.21-3.1
- rebuild (java), rel-eng#4932

* Mon Sep 26 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.21-3
- Fix basedir mode

* Tue Sep 20 2011 Roland Grunberg <rgrunber@redhat.com> 0:7.0.21-2
- Add manifests for el-api, jasper-el, jasper, tomcat, and tomcat-juli.

* Thu Sep 8 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.21-1
- Updated to 7.0.21

* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-3
- Require java = 1:1.6.0

* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-2
- Require java < 1.7.0

* Mon Aug 15 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.20-1
- Updated to 7.0.20

* Tue Jul 26 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.19-1
- Updated to 7.0.19

* Tue Jun 21 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.16-1
- Updated to 7.0.16

* Mon Jun 6 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-3
- Added initial systemd service
- Fix some paths

* Sat May 21 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-2
- Fixed http source link
- Securify some permissions
- Added licenses for el-api and servlet-api
- Added dependency on jpackage-utils for the javadoc subpackage

* Sat May 14 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.14-1
- Updated to 7.0.14

* Thu May 5 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-4
- Provided local paths for libs
- Fixed dependencies
- Fixed update temp/work cleanup

* Mon May 2 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-3
- Fixed package groups
- Fixed some permissions
- Fixed some links
- Removed old tomcat6 crap

* Thu Apr 28 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-2
- Package now named just tomcat instead of tomcat7
- Removed Provides:  %%{name}-log4j
- Switched to apache-commons-* names instead of jakarta-commons-* .
- Remove the old changelog
- BR/R java >= 1:1.6.0 , same for java-devel
- Removed old tomcat6 crap

* Wed Apr 27 2011 Ivan Afonichev <ivan.afonichev@gmail.com> 0:7.0.12-1
- Tomcat7

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19995 |21mr|tomcatjss-7.4.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
################################################################################
Name:             tomcatjss
################################################################################

Summary:          JSS Connector for Apache Tomcat
URL:              http://www.dogtagpki.org/wiki/TomcatJSS
License:          LGPLv2+
Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Version:          7.4.1
Release:          2%{?_timestamp}%{?_commit_id}
# global           _phase -a1

# To generate the source tarball:
# $ git clone https://github.com/dogtagpki/tomcatjss.git
# $ cd tomcatjss
# $ git archive \
#     --format=tar.gz \
#     --prefix tomcatjss-VERSION/ \
#     -o tomcatjss-VERSION.tar.gz \
#     <version tag>
Source:           https://github.com/dogtagpki/tomcatjss/archive/v%{version}%{?_phase}/tomcatjss-%{version}%{?_phase}.tar.gz

# To create a patch for all changes since a version tag:
# $ git format-patch \
#     --stdout \
#     <version tag> \
#     > tomcatjss-VERSION-RELEASE.patch
# Patch: tomcatjss-VERSION-RELEASE.patch

################################################################################
# Build Dependencies
################################################################################

# jpackage-utils requires versioning to meet both build and runtime requirements
# jss requires versioning to meet both build and runtime requirements
# tomcat requires versioning to meet both build and runtime requirements

# autosetup
BuildRequires:    git

# Java
BuildRequires:    ant
BuildRequires:    apache-commons-lang
BuildRequires:    java-devel
BuildRequires:    jpackage-utils >= 0:1.7.5-15

# SLF4J
BuildRequires:    slf4j
%if 0%{?rhel} && 0%{?rhel} <= 7
# no slf4j-jdk14
%else
BuildRequires:    slf4j-jdk14
%endif

# JSS
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires:    jss >= 4.4.0-7
%else
BuildRequires:    jss >= 4.6.0
%endif

# Tomcat
%if 0%{?rhel} && 0%{?rhel} <= 7
BuildRequires:    tomcat >= 7.0.69
%else
%if 0%{?fedora} && 0%{?fedora} <= 27
BuildRequires:    tomcat >= 8.0.49
%else
%if 0%{?fedora} && 0%{?fedora} <= 28
BuildRequires:    tomcat >= 1:8.5.23
%else
%if 0%{?rhel}
BuildRequires:    pki-servlet-container >= 1:9.0.7
%else
BuildRequires:    tomcat >= 1:9.0.7
%endif
%endif
%endif
%endif

################################################################################
# Runtime Dependencies
################################################################################

# Java
Requires:         apache-commons-lang
%if 0%{?fedora} >= 21
Requires:         java-headless
%else
Requires:         java
%endif
Requires:         jpackage-utils >= 0:1.7.5-15

# SLF4J
Requires:         slf4j
%if 0%{?rhel}
# no slf4j-jdk14
%else
Requires:         slf4j-jdk14
%endif

# JSS
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires:         jss >= 4.4.0-7
%else
Requires:         jss >= 4.6.0
%endif

# Tomcat
%if 0%{?rhel} && 0%{?rhel} <= 7
Requires:         tomcat >= 7.0.69
%else
%if 0%{?fedora} && 0%{?fedora} <= 27
Requires:         tomcat >= 8.0.49
%else
%if 0%{?fedora} && 0%{?fedora} <= 28
Requires:         tomcat >= 1:8.5.23
%else
%if 0%{?rhel}
Requires:         pki-servlet-container >= 1:9.0.7
%else
Requires:         tomcat >= 1:9.0.7
%endif
%endif
%endif
%endif

# The 'tomcatjss' package conflicts with the 'tomcat-native' package
# because it uses an underlying NSS security model rather than the
# OpenSSL security model, so these two packages may not co-exist.
# (see Bugzilla Bug #441974 for details)
Conflicts:        tomcat-native

# PKI
Conflicts:        pki-base < 10.6.5


%if 0%{?rhel}
# For EPEL, override the '_sharedstatedir' macro on RHEL
%define           _sharedstatedir    /var/lib
%endif

%description
JSS Connector for Apache Tomcat, installed via the tomcatjss package,
is a Java Secure Socket Extension (JSSE) module for Apache Tomcat that
uses Java Security Services (JSS), a Java interface to Network Security
Services (NSS).

NOTE:  The 'tomcatjss' package conflicts with the 'tomcat-native' package
       because it uses an underlying NSS security model rather than the
       OpenSSL security model, so these two packages may not co-exist.

################################################################################
%prep
################################################################################

%autosetup -n tomcatjss-%{version}%{?_phase} -p 1 -S git

################################################################################
%install
################################################################################

# get Tomcat <major>.<minor> version number
tomcat_version=`/usr/sbin/tomcat version | sed -n 's/Server number: *\([0-9]\+\.[0-9]\+\).*/\1/p'`

if [ $tomcat_version == "9.0" ]; then
    app_server=tomcat-8.5
else
    app_server=tomcat-$tomcat_version
fi

ant -f build.xml \
    -Dversion=%{version} \
    -Dsrc.dir=$app_server \
    -Djnidir=%{_jnidir} \
    -Dinstall.doc.dir=%{buildroot}%{_docdir}/%{name} \
    -Dinstall.jar.dir=%{buildroot}%{_javadir} \
    install

################################################################################
%files
################################################################################

%defattr(-,root,root)
%doc README
%doc LICENSE
%{_javadir}/*

################################################################################

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19996 |21mr|tomcat-native-1.2.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           tomcat-native
Version:        1.2.21
Release:        2
Summary:        Tomcat native library
Group:          Development/Java
License:        ASL 2.0
URL:            http://tomcat.apache.org/tomcat-8.0-doc/apr.html
Source0:        http://www.apache.org/dist/tomcat/tomcat-connectors/native/%{version}/source/%{name}-%{version}-src.tar.gz
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  gcc-c++
BuildRequires:  java-devel
BuildRequires:  jpackage-utils
BuildRequires:  apr-devel >= 1.4.3
BuildRequires:  openssl-devel >= 1.0.2
# Upstream compatibility:
Provides:       tcnative = %{version}-%{release}

%description
Tomcat can use the Apache Portable Runtime to provide superior
scalability, performance, and better integration with native server
technologies.  The Apache Portable Runtime is a highly portable library
that is at the heart of Apache HTTP Server 2.x.  APR has many uses,
including access to advanced IO functionality (such as sendfile, epoll
and OpenSSL), OS level functionality (random number generation, system
status, etc), and native process handling (shared memory, NT pipes and
Unix sockets).  This package contains the Tomcat native library which
provides support for using APR in Tomcat.


%prep
%setup -q -n %{name}-%{version}-src
f=CHANGELOG.txt ; iconv -f iso-8859-1 -t utf-8 $f > $f.utf8 ; mv $f.utf8 $f


%build
cd native
%configure \
    --with-apr=%{_bindir}/apr-1-config \
    --with-java-home=%{java_home}
make %{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
make -C native install DESTDIR=$RPM_BUILD_ROOT
# Perhaps a devel package sometime?  Not for now; no headers are installed.
rm -f $RPM_BUILD_ROOT%{_libdir}/libtcnative*.*a
rm -rf $RPM_BUILD_ROOT%{_libdir}/pkgconfig
rm -rf ${RPM_BUILD_ROOT}%{_includedir}/*.h

%files
%{!?_licensedir:%global license %%doc}
%license LICENSE NOTICE
%doc CHANGELOG.txt TODO.txt
# Note: unversioned *.so needed here due to how Tomcat loads the lib :(
%{_libdir}/libtcnative*.so*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19997 |21mr|tomcat-taglibs-parent-3-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           tomcat-taglibs-parent
Version:        3
Release:        10
Summary:        Apache Taglibs Parent

License:        ASL 2.0
URL:            http://tomcat.apache.org/taglibs/
Source0:        http://svn.apache.org/repos/asf/tomcat/taglibs/taglibs-parent/tags/taglibs-parent-3/pom.xml
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%description
Apache Taglibs Parent pom used for building purposes.

%prep
%setup -q -c -T
cp -p %{SOURCE0} .

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19998 |21mr|tomcat-taglibs-standard-1.2.5-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global short_name      taglibs-standard

Name:           tomcat-taglibs-standard
Version:        1.2.5
Release:        8
Epoch:          0
Summary:        Apache Standard Taglib
License:        ASL 2.0
URL:            http://tomcat.apache.org/taglibs/
Source0:        http://apache.cbox.biz/tomcat/taglibs/taglibs-standard-%{version}/taglibs-standard-%{version}-source-release.zip
Patch0: servlet31.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(javax.el:el-api)
BuildRequires:  mvn(javax.servlet.jsp:jsp-api)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.taglibs:taglibs-parent:pom:)
BuildRequires:  mvn(org.easymock:easymock)
BuildRequires:  mvn(xalan:xalan)

Obsoletes: jakarta-taglibs-standard < 1.1.2-13

%description
An implementation of the JSP Standard Tag Library (JSTL).

%package        javadoc
Summary:        Javadoc for %{name}
Obsoletes: jakarta-taglibs-standard-javadoc < 1.1.2-13

%description    javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{short_name}-%{version}
%patch0 -b .sav

%mvn_alias org.apache.taglibs:taglibs-standard-impl javax.servlet:jstl
%mvn_alias org.apache.taglibs:taglibs-standard-impl org.eclipse.jetty.orbit:javax.servlet.jsp.jstl
%mvn_alias org.apache.taglibs:taglibs-standard-compat org.eclipse.jetty.orbit:org.apache.taglibs.standard.glassfish

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE
%doc README_src.txt README_bin.txt NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE
%doc NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 19999 |21mr|tor-0.4.6.10-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Anonymizing overlay network for TCP (The onion router)
Name:		tor
Version:	0.4.6.10
Release:	2
License:	BSD
Group:		Networking/Other
Url:		http://www.torproject.org/
Source0:	https://dist.torproject.org/%{name}-%{version}.tar.gz
Source1:	%{name}.logrotate
Source4:	%{name}.service
Source5:	%{name}-tmpfiles.conf
Source6:	tor.sysusers.conf
Source100:	%{name}.rpmlintrc
Patch0:		CVE-2023-23589.patch
BuildRequires:	ghostscript
BuildRequires:	pkgconfig(libcap)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl) >= 1.0.1
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)
Requires:	logrotate
Requires:	openssl
Requires:	tsocks
Requires(pre):	/bin/systemd-sysusers
Requires(post):	/bin/systemd-tmpfiles

%description
Tor is a connection-based low-latency anonymous communication system.

This package provides the "tor" program, which serves as both a client and
a relay node. Scripts will automatically create a "toruser" user and
group, and set tor up to run as a daemon when the system is rebooted.

Applications connect to the local Tor proxy using the SOCKS
protocol. The local proxy chooses a path through a set of relays, in
which each relay knows its predecessor and successor, but no
others. Traffic flowing down the circuit is unwrapped by a symmetric
key at each relay, which reveals the downstream relay.

Warnings: Tor does no protocol cleaning.  That means there is a danger
that application protocols and associated programs can be induced to
reveal information about the initiator. Tor depends on Privoxy and
similar protocol cleaners to solve this problem. This is alpha code,
and is even more likely than released code to have anonymity-spoiling
bugs. The present network is very small -- this further reduces the
strength of the anonymity provided. Tor is not presently suitable
for high-stakes anonymity.

%files
%license LICENSE
%doc ReleaseNotes README ChangeLog doc/HACKING
%{_mandir}/man*/*
%{_bindir}/%{name}
%{_bindir}/tor-print-ed-signing-cert
%{_bindir}/torify
%{_bindir}/%{name}-resolve
%{_bindir}/%{name}-gencert
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%{_sysusersdir}/%{name}.conf
%config(noreplace) %attr(0644,root,root) %{_sysconfdir}/logrotate.d/%{name}
%dir %attr(0755,root,toruser) %{_sysconfdir}/tor
%dir %attr(0755,root,toruser) %{_sysconfdir}/torrc.d
%config(noreplace) %attr(0644,root,toruser) %{_sysconfdir}/%{name}/*
%attr(0700,toruser,toruser) %dir %{_localstatedir}/lib/%{name}
%attr(0750,toruser,toruser) %dir %{_var}/%{name}
%attr(0750,toruser,toruser) %dir %{_var}/log/%{name}
%{_sysconfdir}/bash_completion.d/%{name}
%{_datadir}/%{name}
%{_datadir}/doc/%{name}/*.html

%pre
%sysusers_create_package %{name} %{SOURCE6}

%post
%tmpfiles_create %{name}.conf
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%configure
%make


%install
%makeinstall_std

# Config file
install -p -m 644 %{buildroot}%{_sysconfdir}/%{name}/torrc.sample %{buildroot}%{_sysconfdir}/%{name}/torrc

# Logrotate files
mkdir -p -m 755 %{buildroot}%{_sysconfdir}/logrotate.d
cat %{SOURCE1} > %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

mkdir -p -m 700 %{buildroot}%{_localstatedir}/lib/%{name}
mkdir -p -m 755 %{buildroot}%{_var}/%{name}
mkdir -p -m 755 %{buildroot}%{_var}/log/%{name}

# Bash completion
mkdir -p %{buildroot}%{_sysconfdir}/bash_completion.d
echo 'complete -F _command $filenames torify' > %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

# Systemd support
install -D -p -m 0644 %{SOURCE4} %{buildroot}%{_unitdir}/%{name}.service
install -D -p -m 0644 %{SOURCE5} %{buildroot}%{_tmpfilesdir}/%{name}.conf

install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE6} %{buildroot}%{_sysusersdir}/%{name}.conf

# Enable a directory fro drop in configs out of the box
# Will be used in e.g. nastr
mkdir -p %{buildroot}/etc/torrc.d
sed -i'' -e 's,^#%%include /etc/torrc.d/,%%include /etc/torrc.d/,' %{buildroot}/etc/tor/torrc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20000 |21mr|torque-6.1.2-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define         _disable_ld_no_undefined   1
%define			_disable_rebuild_configure 1

%define         major              2
%define         libname            %mklibname %{name} %{major}
%define         devname            %mklibname -d %{name}

%define         clientname         %{name}-client
%define         servername         %{name}-server
%define         schedname          %{name}-sched
%define         momname            %{name}-mom
%define         guiname            %{name}-gui


#default is /var/spool/torque: if you change this, you'll break some
#scripts coming along with the source files
%define         torquedir          /var/spool/torque
%define         srcversion         %{version}
%bcond_with	gui

Name:           torque
Summary:        The Torque resource and queue manager
Group:          System/Cluster
Version:        6.1.2
Release:        11
License:        TORQUEv1.1
URL:            http://www.adaptivecomputing.com/products/open-source/torque/

Source0:        %{name}-%{srcversion}.tar.gz
Source1:        mom_config
Source2:        README.omv
Source3:        pbs_mom.service
Source4:        pbs_sched.service
Source5:        pbs_server.service
Source6:        trqauthd.service
Source7:        torque_addport
Source8:        torque_createdb
Source9:        openmp.pbs
Patch1:         torque-6.1.1.1-gcc7.patch
BuildRequires:  bison
BuildRequires:  flex
BuildRequires:  groff
BuildRequires:  groff-for-man
BuildRequires:  xauth
BuildRequires:  gperf
BuildRequires:  doxygen
BuildRequires:  pkgconfig(ncurses)
%if %{with gui}
BuildRequires:  pkgconfig(tk)
%endif
BuildRequires:  pkgconfig(tcl)
BuildRequires:  openssh-clients
BuildRequires:  readline-devel
BuildRequires:  gcc-gfortran
BuildRequires:  gcc-c++
%ifarch %ix86 %{x86_64}
BuildRequires:  quadmath-devel
%endif
BuildRequires:  pam-devel
BuildRequires:  pkgconfig(openssl)
BuildRequires:  pkgconfig(libxml-2.0)
BuildRequires:  pkgconfig(liblzma)
BuildRequires:  pkgconfig(hwloc)
BuildRequires:  boost-devel
BuildRequires:  glibc-static-devel
BuildRequires:  glibc-devel

Requires:       openssh-clients
Recommends:     torque-mom

%description
The Tera-scale Open-source Resource and QUEue manager provides control
over batch jobs and distributed computing resources. It is an advanced
open-source product based on the original PBS project* and
incorporates the best of both community and professional
development. It incorporates significant advances in the areas of
scalability, reliability, and functionality and is currently in use at
tens of thousands of leading government, academic, and commercial
sites throughout the world. Please check out the README.mga file provided in
%{_docdir}/%{name} for setting up a minimal running system.

"TORQUE is a modification of OpenPBS which was developed by NASA Ames
Research Center, Lawrence Livermore National Laboratory, and Veridian
Information Solutions, Inc. Visit www.clusterresources.com/products/
for more information about TORQUE and to download TORQUE".



%package -n     %{libname}
Summary:        Shared libraries for Torque
Group:          System/Libraries
Provides:       lib%{name} = %{version}-%{release}

%description -n %{libname}
%{summary}.



%package -n     %{devname}
Summary:        Development files for Torque
Group:          Development/Other
Requires:       %{libname} = %{version}-%{release}
Provides:       lib%{name}-devel  = %{version}-%{release}
Provides:       %{name}-devel = %{version}-%{release}

%description -n %{devname}
%{summary}.



%package -n    %{clientname}
Summary:        Command line utilities for Torque
Group:          System/Cluster
Requires:       %{libname} = %{version}-%{release}
Requires:       %{name} = %{version}-%{release}

%description -n %{clientname}
%{summary}.


%package -n     %{servername}
Summary:        The Torque server
Group:          System/Cluster
Requires:       %{libname} = %{version}-%{release}
Requires:       %{name} = %{version}-%{release}
Recommends:     %{schedname} = %{version}-%{release}
Requires(post): rpm-helper
Requires(preun):rpm-helper

%description -n %{servername}
%{summary}.



%package -n     %{schedname}
Summary:        The scheduler for Torque server
Group:          System/Cluster
Requires:       %{libname} = %{version}-%{release}
Requires:       %{name} = %{version}-%{release}
Requires:       %{servername} = %{version}-%{release}
Requires(post): rpm-helper
Requires(preun):rpm-helper

%description -n %{schedname}
%{summary}.



%package -n     %{momname}
Summary:        Node manager programs for Torque
Group:          System/Cluster
Requires:       %{libname} = %{version}-%{release}
Requires:       %{name} = %{version}-%{release}
Requires:       openssh-server
Requires(post): rpm-helper
Requires(preun):rpm-helper

%description -n %{momname}
%{summary}.



%package -n     %{guiname}
Summary:        Graphical clients for Torque
Group:          Monitoring
Requires:       tk
Requires:       tcl
Requires:       %{libname} = %{version}-%{release}
Requires:       %{name} = %{version}-%{release}
Requires:       %{name}-client = %{version}-%{release}
Obsoletes:      torque-xpbs <= 2.5.3

%description -n %{guiname}
%{summary}.

%prep
%setup -q -n %{name}-%{srcversion}
%autopatch -p1

%build
# -fpermissive added to downgrade numerous 'invalid conversion' errors to warnings
export CPPFLAGS="-DUSE_INTERP_RESULT -DUSE_INTERP_ERRORLINE -DHAVE_STDBOOL_H -fpermissive"
export CC=gcc
export CXX=g++

%configure \
                --srcdir=%{_builddir}/%{name}-%{srcversion} \
                --includedir=%{_includedir}/%{name} \
                --with-pam=%{_libdir}/security \
                --with-rcp=scp \
                --with-hwloc-path=%{_prefix} \
                --enable-docs \
                --enable-server \
                --enable-mom \
                --enable-client \
                --enable-drmaa \
                --enable-high-availability \
                --enable-syslog \
                --disable-static \
                --with-default-server=MYSERVERNAME \
		--enable-autorun \
                --enable-cpuset \
                --without-debug
#                --enable-nvidia-gpus
#                --enable-numa-support

%make_build all \
                XPBS_DIR=%{tcl_sitelib}/xpbs \
                XPBSMON_DIR=%{tcl_sitelib}/xpbsmon


%install
%make_install \
                PBS_SERVER_HOME=%{torquedir} \
                mandir=%_mandir \
                XPBS_DIR=%{tcl_sitelib}/xpbs \
                XPBSMON_DIR=%{tcl_sitelib}/xpbsmon


find %{buildroot}%{_libdir} -name *.la -delete

#yields various service to fail if relative symlinks
export DONT_RELINK=1

#install starting scripts
%__mkdir_p %{buildroot}%{_unitdir}
install -p -m 644 %{SOURCE3} %{buildroot}%{_unitdir}/pbs_mom.service
install -p -m 644 %{SOURCE4} %{buildroot}%{_unitdir}/pbs_sched.service
install -p -m 644 %{SOURCE5} %{buildroot}%{_unitdir}/pbs_server.service
install -p -m 644 %{SOURCE6} %{buildroot}%{_unitdir}/trqauthd.service

%__rm -f %{buildroot}%{_sysconfdir}/init.d/pbs_mom
%__rm -f %{buildroot}%{_sysconfdir}/init.d/pbs_server
%__rm -f %{buildroot}%{_sysconfdir}/init.d/trqauthd

#end starting scripts

#install configuration scripts
install -p -m 755 %{SOURCE7} %{buildroot}%{_sbindir}/torque_addport
install -p -m 755 %{SOURCE8} %{buildroot}%{_sbindir}/torque_createdb
#end configuration scripts



#install config files: move them to /etc/torque
%__mkdir_p %{buildroot}%{_sysconfdir}/%{name}
pushd %{buildroot}%{torquedir}
%__mv server_name     %{buildroot}%{_sysconfdir}/%{name}
%__ln_s               %{_sysconfdir}/%{name}/server_name .
popd

pushd %{buildroot}%{torquedir}/server_priv
%__mv nodes %{buildroot}%{_sysconfdir}/%{name}
%__ln_s     %{_sysconfdir}/%{name}/nodes .
popd

pushd %{buildroot}%{torquedir}/sched_priv
%__mv sched_config   %{buildroot}%{_sysconfdir}/%{name}
%__mv dedicated_time %{buildroot}%{_sysconfdir}/%{name}
%__mv holidays       %{buildroot}%{_sysconfdir}/%{name}
%__mv resource_group %{buildroot}%{_sysconfdir}/%{name}
%__ln_s               %{_sysconfdir}/%{name}/sched_config .
%__ln_s               %{_sysconfdir}/%{name}/dedicated_time .
%__ln_s               %{_sysconfdir}/%{name}/holidays .
%__ln_s               %{_sysconfdir}/%{name}/resource_group .
popd

install -p -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/%{name}
pushd %{buildroot}%{torquedir}/mom_priv
%__ln_s %{_sysconfdir}/%{name}/mom_config config


popd
#end config files


#move drmaa man to the right place and install docs
##__mv #{buildroot}#{_defaultdocdir}/torque-drmaa/man/man3/* #{buildroot}#{_mandir}/man3/.
install -D -m 644 %{SOURCE2} %{buildroot}%{_docdir}/%{name}/README.mga
install -D -m 644 %{SOURCE9} %{buildroot}%{_docdir}/%{name}/openmp.pbs

%if %{with gui}
#make symbolic links for tcl
pushd %{buildroot}%{_libdir}
%__ln_s %{tcl_sitelib}/xpbs    .
%__ln_s %{tcl_sitelib}/xpbsmon .
popd
%endif


#clean make install bugs the dirty way...
%__rm -f %{buildroot}%{_mandir}/man1/basl2c.1*
#__rm -f #{buildroot}#{_mandir}/man3/_*src_drmaa_src_.3*
rm -rf %{buildroot}/%{_datadir}/doc/torque-drmaa/src/.libs/

%post
#update of /etc/services if needed
%{_sbindir}/torque_addport
sed -i 's|MYSERVERNAME|'"$HOSTNAME"'|g' %{_sysconfdir}/%{name}/server_name


%post -n %{momname}
%_post_service pbs_mom
sed -i 's|MYSERVERNAME|'"$HOSTNAME"'|g' %{_sysconfdir}/%{name}/mom_config

%preun -n %{momname}
%_preun_service pbs_mom

%post -n %{servername}
#create serverdb if needed
%{_sbindir}/torque_createdb %{torquedir} %{_sbindir}/pbs_server
sed -i 's|MYSERVERNAME|'"$HOSTNAME"'|g' %{torquedir}/server_priv/serverdb
%_post_service pbs_server

%preun -n %{servername}
%_preun_service pbs_server

%post -n %{schedname}
%_post_service pbs_sched

%preun -n %{schedname}
%_preun_service pbs_sched

%post -n %{clientname}
%_post_service trqauthd

%preun -n %{clientname}
%_preun_service trqauthd



%files
%doc PBS_License.txt Release_Notes README.torque
%doc README.NUMA README.trqauthd README.array_changes
%{_docdir}/%{name}/README.mga
%{_docdir}/%{name}/openmp.pbs
%dir %{torquedir}
%dir %{torquedir}/checkpoint
%dir %{torquedir}/aux
%dir %{torquedir}/spool
%dir %{torquedir}/undelivered
%dir %{_sysconfdir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/server_name
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/torque.conf
%config(noreplace) %{_sysconfdir}/profile.d/torque.*
%{_sbindir}/torque_addport
%{torquedir}/server_name
%{torquedir}/pbs_environment
%{_libdir}/security/pam*
%{_mandir}/man1/pbs.1.*



%files -n %{libname}
%doc CHANGELOG README.coding_notes README.building_40 README.configure
%{_libdir}/*.so.*



%files -n %{devname}
%doc 
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_bindir}/pbs-config
%{_libdir}/*.so
%{_defaultdocdir}/torque-drmaa
%{_mandir}/man3/pbs_*.3*
#{_mandir}/man3/rpp.3*
%{_mandir}/man3/tm.3*
#{_mandir}/man3/drmaa.3*
#{_mandir}/man3/drmaa_*.3*



%files -n %{clientname}
%doc
%{_unitdir}/trqauthd.service
%{_sbindir}/trqauthd
%{_bindir}/qa*
%{_bindir}/qc*
%{_bindir}/qdel
%{_bindir}/qg*
%{_bindir}/qh*
%{_bindir}/qm*
%{_bindir}/qo*
%{_bindir}/qrerun
%{_bindir}/qrls
%{_bindir}/qsub
%{_bindir}/qstat
%{_bindir}/qsig
%{_bindir}/qselect
%{_bindir}/chk_tree
%{_bindir}/hostn
%{_bindir}/nqs2pbs
%{_bindir}/pbsnodes
%{_bindir}/qnodes
%{_bindir}/pbsdsh
%{_bindir}/qterm
%{_bindir}/qstop
%{_bindir}/qstart
%{_bindir}/qdisable
%{_bindir}/qenable
%{_bindir}/qrun
%{_mandir}/man1/q*.1*
%{_mandir}/man1/nqs2pbs.1*
%{_mandir}/man1/pbsdsh.1*
#{_mandir}/man3/jobs.3*
%{_mandir}/man7/pbs_*.7*
%{_mandir}/man8/pbsnodes.8*
%{_mandir}/man8/q*.8*



%files -n %{servername}
%dir %{torquedir}/server_priv
%dir %{torquedir}/server_priv/acl_svr
%dir %{torquedir}/server_priv/acl_groups
%dir %{torquedir}/server_priv/acl_hosts
%dir %{torquedir}/server_priv/acl_users
%dir %{torquedir}/server_priv/accounting
%dir %{torquedir}/server_priv/arrays
%dir %{torquedir}/server_priv/credentials
%dir %{torquedir}/server_priv/disallowed_types
%dir %{torquedir}/server_priv/hostlist
%dir %{torquedir}/server_priv/jobs
%dir %{torquedir}/server_priv/queues
%config(noreplace) %{_sysconfdir}/%{name}/nodes
%{torquedir}/server_priv/nodes
%{_unitdir}/pbs_server.service
%{_sbindir}/torque_createdb
%{_sbindir}/pbs_server
%{_sbindir}/qserverd
%{_bindir}/pbs_track
%{_bindir}/tracejob
%{_bindir}/printjob
%{_bindir}/printserverdb
%{_bindir}/printtracking
%{_mandir}/man8/pbs_server.8*




%files -n %{schedname}
%dir %{torquedir}/sched_priv
%dir %{torquedir}/sched_priv/accounting
%dir %{torquedir}/sched_logs
%config(noreplace) %{_sysconfdir}/%{name}/sched_config
%config(noreplace) %{_sysconfdir}/%{name}/dedicated_time
%config(noreplace) %{_sysconfdir}/%{name}/holidays
%config(noreplace) %{_sysconfdir}/%{name}/resource_group
%{torquedir}/sched_priv/sched_config
%{torquedir}/sched_priv/dedicated_time
%{torquedir}/sched_priv/holidays
%{torquedir}/sched_priv/resource_group
%{_unitdir}/pbs_sched.service
%{_sbindir}/pbs_sched
%{_sbindir}/qschedd
%{_mandir}/man8/pbs_sched*.8*




%files -n %{momname}
%doc
%dir %{torquedir}/mom_priv
%dir %{torquedir}/mom_priv/jobs
%dir %{torquedir}/mom_logs
%config(noreplace) %{_sysconfdir}/%{name}/mom_config
%{torquedir}/mom_priv/config
%{_unitdir}/pbs_mom.service
%{_sbindir}/pbs_mom
%{_sbindir}/qnoded
%{_sbindir}/momctl
%{_sbindir}/pbs_demux
%{_mandir}/man8/pbs_mom.8*




%files -n %{guiname}
%{_bindir}/pbs_tclsh
%if %{with gui}
%{_bindir}/xpbs*
%{_bindir}/pbs_wish
%{tcl_sitelib}/xpbs
%{tcl_sitelib}/xpbsmon
%{_libdir}/xpbs
%{_libdir}/xpbsmon
%endif
%{_mandir}/man1/xpbs*.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20001 |21mr|totem-pl-parser-3.26.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 18
%define girmajor 1.0
%define libname %mklibname totem-plparser %{major}
%define libmini %mklibname totem-plparser-mini %{major}
%define girname %mklibname totem-plparser-gir %{girmajor}
%define devname %mklibname totem-plparser -d

Summary:	Playlist parser library from the Totem Movie Player
Name:		totem-pl-parser
Version:	3.26.6
Release:	4
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/totem-pl-parser
Source0:	https://download.gnome.org/sources/totem-pl-parser/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gmime-3.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk-doc)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libquvi-0.9)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libxml-2.0)

%description
Shared library used by totem.

%files
%{_libexecdir}/%{name}/README-videosite-script.md

#----------------------------------------------------------------------------

%package i18n
Summary:	Playlist parser library from the Totem Movie Player
Group:		System/Internationalization

%description i18n
This package contains the translations for %{name}.

%files i18n -f %{name}.lang
%doc README.md NEWS

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Playlist parser library from the Totem Movie Player
Group:		System/Libraries
Recommends:	%{name}
Recommends:	%{name}-i18n

%description -n %{libname}
Shared library used by totem.

%files -n %{libname}
%{_libdir}/libtotem-plparser.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libmini}
Summary:	Playlist parser library from the Totem Movie Player
Group:		System/Libraries

%description -n %{libmini}
Shared library used by totem - minimal version.

%files -n %{libmini}
%{_libdir}/libtotem-plparser-mini.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/TotemPlParser-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development libraries, include files for totem playlist parser
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Requires:	%{libmini} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	totem-plparser-devel = %{EVRD}
Conflicts: 	%{_lib}totem-plparser0-devel

%description -n %{devname}
Development libraries, include files for totem playlist parser

%files -n %{devname}
%doc NEWS AUTHORS
%doc %{_datadir}/gtk-doc/html/*
%{_libdir}/*.so
%{_datadir}/gir-1.0/TotemPlParser-%{girmajor}.gir
%{_libdir}/pkgconfig/*
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%meson -Denable-gtk-doc=true
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20002 |21mr|tpm2-abrmd-3.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	TPM2 Access Broker & Resource Manager
Name:		tpm2-abrmd
Version:	3.0.0
Release:	5
License:	BSD
Group:		System/Configuration/Hardware
Url:		https://github.com/tpm2-software/tpm2-abrmd
Source0:	https://github.com/tpm2-software/tpm2-abrmd/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	autoconf-archive
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(tss2-esys)
BuildRequires:	pkgconfig(tss2-mu)
BuildRequires:	pkgconfig(tss2-sys)
Requires:	tpm2-tss
Requires:	%{_lib}tss2-tcti-cmd0
Requires:	%{_lib}tss2-tcti-device0
Requires:	%{_lib}tss2-tcti-libtpms0
Requires:	%{_lib}tss2-tcti-mssim0
Requires:	%{_lib}tss2-tcti-pcap0
Requires:	%{_lib}tss2-tcti-swtpm0
Requires:	%{_lib}tss2-tctildr0
Requires:	%{libname} = %{EVRD}

%description
This is a system daemon implementing the TPM2 access broker (TAB) &
Resource Manager (RM) spec from the TCG.
The daemon (tpm2-abrmd) is implemented using Glib and the GObject system.
In this documentation and in the code we use tpm2-abrmd and tabrmd interchangeably.

%files
%doc README.md RELEASE.md
%license LICENSE
%{_datadir}/dbus-1/system-services/com.intel.tss2.Tabrmd.service
%{_mandir}/man3/Tss2_Tcti_Tabrmd_Init.3.*
%{_mandir}/man7/tss2-tcti-tabrmd.7.*
%{_mandir}/man8/%{name}.8.*
%{_presetdir}/%{name}.preset
%{_sbindir}/%{name}
%{_sysconfdir}/dbus-1/system.d/%{name}.conf
%{_unitdir}/%{name}.service

%post
%systemd_post %{name}.service

%preun
%systemd_preun %{name}.service

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Libs for %{name}
Group:		System/Libraries

%description -n %{libname}
libraries for %{name}.

%files -n %{libname}
%{_libdir}/libtss2-tcti-tabrmd.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel package for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Devel package for %{name}.

%files -n %{devname}
%doc README.md RELEASE.md
%license LICENSE
%{_includedir}/tss2/tss2-tcti-tabrmd.h
%{_libdir}/pkgconfig/tss2-tcti-tabrmd.pc
%{_libdir}/libtss2-tcti-tabrmd.so

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure	\
	--with-systemdpresetdir=%{_presetdir}	\
	--with-systemdsystemunitdir=%{_unitdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20003 |21mr|tpm2-tools-5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A bunch of TPM testing tools build upon tpm2-tss
Name:		tpm2-tools
Version:	5.4
Release:	1
License:	BSD
Group:		System/Configuration/Hardware
Url:		https://github.com/tpm2-software/tpm2-tools
Source0:	https://github.com/tpm2-software/tpm2-tools/releases/download/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig(cmocka)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(tss2-esys)
# tpm2-tss-devel provides tss2-mu/sys/esys package config
BuildRequires:	pkgconfig(tss2-mu)
BuildRequires:	pkgconfig(tss2-sys)
BuildRequires:	pkgconfig(uuid)
# tpm2-tools is heavily depending on TPM2.0-TSS project, matched tss is required
Requires:	tpm2-tss

%description
tpm2-tools is a batch of tools for tpm2.0. It is based on tpm2-tss.

%files
%doc docs/README.md docs/CHANGELOG.md
%license docs/LICENSE
%{_bindir}/tpm2
%{_bindir}/tpm2_*
%{_bindir}/tss2
%{_bindir}/tss2_*
%{_datadir}/bash-completion/completions/tpm2*
%{_datadir}/bash-completion/completions/tss2*
%{_mandir}/man1/tpm2.1.*
%{_mandir}/man1/tpm2_*.1.*
%{_mandir}/man1/tss2_*.1.*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure	\
	--disable-silent-rules	\
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20004 |21mr|tpm2-tss-4.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global	_disable_ld_no_undefined		1

%define	udevrules_prefix	60-

%define about This package provides a software stack supporting Trusted Platform Module(TPM) \
2.0 system APIs. It sits between TPM driver and applications, providing TPM2.0 \
specified APIs for applications to access TPM module through kernel TPM \
drivers.


%define	major	0
%define	major_1	1
%define	libtss2_mu	%mklibname tss2-mu %{major}
%define	libtss2_sys	%mklibname tss2-sys %{major_1}
%define	libtss2_esys	%mklibname tss2-esys %{major}
%define	libtss2_fapi	%mklibname tss2-fapi %{major_1}
%define	libtss2_rc		%mklibname tss2-rc %{major}
%define	libtss2_tctildr	%mklibname tss2-tctildr %{major}
%define	libtss2_tcti_c	%mklibname tss2-tcti-cmd %{major}
%define	libtss2_tcti_d	%mklibname tss2-tcti-device %{major}
%define	libtss2_tcti_l		%mklibname tss2-tcti-libtpms %{major}
%define	libtss2_tcti_m	%mklibname tss2-tcti-mssim %{major}
%define	libtss2_tcti_p	%mklibname tss2-tcti-pcap %{major}
%define	libtss2_tcti_s	%mklibname tss2-tcti-swtpm %{major}
%define	develname	%mklibname %{name} -d
# added with version 4.0.0
%define libtss2_policy	%mklibname tss2-policy %{major}
%define libtss2_tcti_sh	%mklibname tss2-tcti-spi-helper %{major}

Summary:	TPM2.0 Software Stack
Name:		tpm2-tss
Version:	4.0.0
Release:	5
# The entire source code is under BSD except implementation.h and tpmb.h which
# are under TCGL(Trusted Computing Group License).
License:	BSD and TCGL
Group:		System/Libraries
Url:		https://github.com/tpm2-software/tpm2-tss
Source0:	https://github.com/tpm2-software/tpm2-tss/releases/download/%{version}/%{name}-%{version}.tar.gz
# Missing file from release tarball, causing the build fail with libtpms
Source1:	tss2-tcti-libtpms.map
Source100:	%{name}.rpmlintrc
Patch0:		tpm2-tss-3.2.0-add-tss-group.patch
BuildRequires:	acl
BuildRequires:	autoconf-archive
BuildRequires:	doxygen
BuildRequires:	systemd
BuildRequires:	pkgconfig(libtpms)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(uuid)
Requires(post):	/bin/systemd-sysusers
Requires(post): /bin/systemd-tmpfiles

%description 
%{about}

%files
%doc README.md CHANGELOG.md 
%license LICENSE
%doc doc/fapi-config.md doc/fapi-profile.md
%{_sysconfdir}/%{name}/
%{_sysusersdir}/%{name}.conf
%{_tmpfilesdir}/%{name}-fapi.conf
%{_udevrulesdir}/%{udevrules_prefix}tpm-udev.rules

%post
%sysusers_create %{name}.conf
%tmpfiles_create_package %{name} %{name}-fapi.conf

#-----------------------------------------------------------------------------

%package -n	%{libtss2_policy}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_policy}
%{about}

%files -n	%{libtss2_policy}
%license LICENSE
%{_libdir}/libtss2-policy.so.%{major}*


#-----------------------------------------------------------------------------

%package -n	%{libtss2_mu}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_mu}
%{about}

%files -n	%{libtss2_mu}
%license LICENSE
%{_libdir}/libtss2-mu.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_sys}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_sys}
%{about}

%files -n	%{libtss2_sys}
%license LICENSE
%{_libdir}/libtss2-sys.so.%{major_1}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_esys}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_esys}
%{about}

%files -n	%{libtss2_esys}
%license LICENSE
%{_libdir}/libtss2-esys.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_fapi}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_fapi}
%{about}

%files -n 	%{libtss2_fapi}
%license LICENSE
%{_libdir}/libtss2-fapi.so.%{major_1}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_rc}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_rc}
%{about}

%files -n	%{libtss2_rc}
%license LICENSE
%{_libdir}/libtss2-rc.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_tctildr}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_tctildr}
%{about}

%files -n	%{libtss2_tctildr}
%license LICENSE
%{_libdir}/libtss2-tctildr.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_tcti_c}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_tcti_c}
%{about}

%files -n	%{libtss2_tcti_c}
%license LICENSE
%{_libdir}/libtss2-tcti-cmd.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_tcti_d}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_tcti_d}
%{about}

%files -n	%{libtss2_tcti_d}
%license LICENSE
%{_libdir}/libtss2-tcti-device.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_tcti_l}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_tcti_l}
%{about}

%files -n	%{libtss2_tcti_l}
%license LICENSE
%{_libdir}/libtss2-tcti-libtpms.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_tcti_m}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_tcti_m}
%{about}

%files -n	%{libtss2_tcti_m}
%license LICENSE
%{_libdir}/libtss2-tcti-mssim.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_tcti_p}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_tcti_p}
%{about}

%files -n	%{libtss2_tcti_p}
%license LICENSE
%{_libdir}/libtss2-tcti-pcap.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_tcti_s}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_tcti_s}
%{about}

%files -n	%{libtss2_tcti_s}
%license LICENSE
%{_libdir}/libtss2-tcti-swtpm.so.%{major}*

#-----------------------------------------------------------------------------

%package -n	%{libtss2_tcti_sh}
Summary:	TPM2.0 Software Stack
Group:		System/Libraries
Recommends:	%{name} >= %{EVRD}

%description -n	%{libtss2_tcti_sh}
%{about}

%files -n	%{libtss2_tcti_sh}
%license LICENSE
%{_libdir}/libtss2-tcti-spi-helper.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development package for %{name}
Group:		Development/C++
Requires:	%{libtss2_policy} = %{EVRD}
Requires:	%{libtss2_mu} = %{EVRD}
Requires:	%{libtss2_sys} = %{EVRD}
Requires:	%{libtss2_esys} = %{EVRD}
Requires:	%{libtss2_fapi} = %{EVRD}
Requires:	%{libtss2_rc} = %{EVRD}
Requires:	%{libtss2_tctildr} = %{EVRD}
Requires:	%{libtss2_tcti_c} = %{EVRD}
Requires:	%{libtss2_tcti_d} = %{EVRD}
Requires:	%{libtss2_tcti_l} = %{EVRD}
Requires:	%{libtss2_tcti_m} = %{EVRD}
Requires:	%{libtss2_tcti_p} = %{EVRD}
Requires:	%{libtss2_tcti_s} = %{EVRD}
Requires:	%{libtss2_tcti_sh} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{develname}
This package contains the header files for development with %{name}.

%files -n %{develname}
%doc CHANGELOG.md 
%license LICENSE
%{_includedir}/tss2/
%{_libdir}/libtss2-mu.so
%{_libdir}/libtss2-sys.so
%{_libdir}/libtss2-esys.so
%{_libdir}/libtss2-fapi.so
%{_libdir}/libtss2-rc.so
%{_libdir}/libtss2-policy.so
%{_libdir}/libtss2-tctildr.so
%{_libdir}/libtss2-tcti-cmd.so
%{_libdir}/libtss2-tcti-device.so
%{_libdir}/libtss2-tcti-libtpms.so
%{_libdir}/libtss2-tcti-mssim.so
%{_libdir}/libtss2-tcti-pcap.so
%{_libdir}/libtss2-tcti-swtpm.so
%{_libdir}/libtss2-tcti-spi-helper.so
%{_libdir}/pkgconfig/tss2-mu.pc
%{_libdir}/pkgconfig/tss2-sys.pc
%{_libdir}/pkgconfig/tss2-esys.pc
%{_libdir}/pkgconfig/tss2-fapi.pc
%{_libdir}/pkgconfig/tss2-rc.pc
%{_libdir}/pkgconfig/tss2-tctildr.pc
%{_libdir}/pkgconfig/tss2-policy.pc
%{_libdir}/pkgconfig/tss2-tcti-cmd.pc
%{_libdir}/pkgconfig/tss2-tcti-device.pc
%{_libdir}/pkgconfig/tss2-tcti-libtpms.pc
%{_libdir}/pkgconfig/tss2-tcti-mssim.pc
%{_libdir}/pkgconfig/tss2-tcti-pcap.pc
%{_libdir}/pkgconfig/tss2-tcti-swtpm.pc
%{_libdir}/pkgconfig/tss2-tcti-spi-helper.pc

%{_mandir}/man3/*
%{_mandir}/man5/*
%{_mandir}/man7/tss2*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1  -n %{name}-%{version}

# Avoid build failures with libtpms
install -m 0644 %{SOURCE1} lib

%build
%configure \
	--disable-static \
	--disable-silent-rules \
	--enable-doxygen-doc \
	--with-udevrulesdir=%{_udevrulesdir} \
	--with-udevrulesprefix=%{udevrules_prefix} \
	--with-runstatedir=%{_rundir} \
	--with-tmpfilesdir=%{_tmpfilesdir} \
	--with-sysusersdir=%{_sysusersdir}

%make

# Build docs
%make doxygen-doc

%install
%makeinstall_std

# Prepare for our %%pre section
mkdir -p -m 0755 %{buildroot}%{_sysusersdir}
mkdir -p -m 0755 %{buildroot}%{_tmpfilesdir}
install -m 0644 dist/sysusers.d/%{name}.conf %{buildroot}%{_sysusersdir}/%{name}.conf
install -m 0644 %{name}-fapi.conf %{buildroot}%{_tmpfilesdir}/%{name}-fapi.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20005 |21mr|tpm2-tss-engine-1.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# make rpmlint happy
%{!?openssl_major: %define openssl_major 0}

%define libname %mklibname openssl-%{name} %{openssl_major}
%define devname %mklibname %{name} -d

Name:			tpm2-tss-engine
Version:		1.1.0
Release:		2
Summary:		The tpm2-tss-engine project implements a cryptographic engine for OpenSSL for TPM2.0
License:		BSD-2-Clause
Group:			System/Configuration/Hardware
URL:			https://github.com/tpm2-software/tpm2-tss-engine
Source0:		%{URL}/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	pkgconfig
BuildRequires:	autoconf
BuildRequires:	autoconf-archive
BuildRequires:	automake
BuildRequires:	libtool
BuildRequires:	pkgconfig(tss2-esys)
BuildRequires:	pkgconfig(openssl)

Requires:	%{libname} = %{EVRD}
Requires:	tpm2-abrmd
Requires:	tpm2-tools
Requires:	openssl-engines

%description
%{summary}
using the tpm2-tss software stack that follows the Trusted Computing Groups (TCG) TPM Software Stack (TSS 2.0). 
It uses the Enhanced System API (ESAPI) interface of the TSS 2.0 for downwards communication. It supports RSA 
decryption and signatures as well as ECDSA signatures.

%package -n %{devname}
Summary: Devel package for %{name}
Requires: %{name} = %{EVRD}
Provides: %{name}-devel = %{EVRD}

%description -n %{devname}
Devel package  for %{name}.

%package -n %{libname}
Summary: Libraries for %{name}

%description -n %{libname}
Pkcs11 lib for %{name}.

%prep
%autosetup -p1 -n %{name}-%{version}

%build
autoreconf -fiv
%configure --disable-static
%make_build

%install
%make_install

%files
%license LICENSE
%doc README.md
%{_bindir}/tpm2tss-genkey
%{_datadir}/bash-completion/completions/tpm2tss-genkey

%files -n %{libname}
%license LICENSE
%{openssl_engines_dir}/tpm2tss.so
%{openssl_engines_dir}/libtpm2tss.so

%files -n %{devname}
%{_includedir}/tpm2-tss-engine.h


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20006 |21mr|traceroute-2.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Traces the route taken by packets over an IPv4/IPv6 network
Name:		traceroute
Version:	2.1.5
Release:	1
License:	GPLv2+
Group:		Monitoring
Url:		http://traceroute.sourceforge.net/
Source0:	https://sourceforge.net/projects/traceroute/files/traceroute/%{name}-%{version}/%{name}-%{version}.tar.gz
Patch0:		traceroute-2.0.21-optflags.patch

%description
New implementation of the traceroute utility for modern Linux systems.
Backward compatible with the traditional traceroute. Supports both IPv4
and IPv6, additional types of trace (including TCP), allows some traces
for unprivileged users.

The traceroute utility displays the route used by IP packets on their
way to a specified network (or Internet) host.Traceroute displays
the IP number and host name (if possible) of the machines along the
route taken by the packets.Traceroute is used as a network debugging
tool.If you're having network connectivity problems, traceroute will
show you where the trouble is coming from along the route.

Install traceroute if you need a tool for diagnosing network connectivity
problems.

%files
%doc README TODO CREDITS
%{_bindir}/*
%{_mandir}/man8/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
%makeinstall_std prefix=%{_prefix} bindir=%{_bindir} mandir=%{_mandir}

install -d %{buildroot}%{_bindir}
install -m755 wrappers/tcptraceroute %{buildroot}%{_bindir}

install -d %{buildroot}%{_mandir}/man8
install -p -m644 traceroute/traceroute.8 %{buildroot}%{_mandir}/man8
pushd %{buildroot}%{_mandir}/man8
ln -s traceroute.8 tcptraceroute.8
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20007 |21mr|tracker-3.2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define api 3.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Desktop-neutral metadata-based search framework
Name:		tracker
Version:	3.2.1
Release:	3
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/tracker
Source0:	https://download.gnome.org/sources/tracker/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		tracker-3.2.1-undefined-reference.patch
BuildRequires:	asciidoc
BuildRequires:	glib2.0-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	python3-gi
BuildRequires:	vala-tools
BuildRequires:	xsltproc
BuildRequires:	libstemmer-devel
BuildRequires:	libunistring-devel
BuildRequires:	libstemmer-devel
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libsoup-2.4)
#BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(vapigen)
Requires:	odt2txt

%description
Tracker is a framework designed to extract information and metadata about your
personal data so that it can be searched easily and quickly. Tracker is
desktop-neutral, fast and resource efficient.

%files -f %{name}.lang
%doc AUTHORS README.md NEWS
%license COPYING
%{_bindir}/%{name}3
%{_datadir}/bash-completion/completions/%{name}3
%{_datadir}/devhelp/books/Tracker
%{_datadir}/dbus-1/services/org.freedesktop.portal.Tracker.service
%{_datadir}/%{name}3
%{_libexecdir}/%{name}3
%{_libexecdir}/%{name}-xdg-portal-3
%{_mandir}/man1/%{name}3-*.1*
%{_mandir}/man1/%{name}-xdg-portal-3.1*
%{_userunitdir}/%{name}-xdg-portal-3.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of Tracker
Group:		System/Libraries

%description -n %{libname}
Tracker is a tool designed to extract information and metadata about your
personal data so that it can be searched easily and quickly. Tracker is
desktop-neutral, fast and resource efficient.

%files -n %{libname}
%license COPYING
%{_libdir}/lib%{name}-sparql-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/Tracker-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library of Tracker
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Tracker is a tool designed to extract information and metadata about your
personal data so that it can be searched easily and quickly. Tracker is
desktop-neutral, fast and resource efficient.

%files -n %{devname}
%license COPYING
%{_datadir}/vala/vapi/%{name}-sparql-%{api}.vapi
%{_datadir}/vala/vapi/%{name}-sparql-%{api}.deps
%{_datadir}/gir-1.0/Tracker-%{api}.gir
%{_includedir}/%{name}-%{api}/*
%{_libdir}/lib*.so
%{_libdir}/%{name}-%{api}/%{name}testutils
%{_libdir}/pkgconfig/%{name}-sparql-%{api}.pc
%{_libdir}/pkgconfig/%{name}-testutils-3.0.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
sed -i 's@include <libstemmer.h>@include <libstemmer/libstemmer.h>@' src/lib%{name}-common/%{name}-language.c

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20008 |21mr|tracker-3.3.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define major 0
%define api 3.0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Desktop-neutral metadata-based search framework
Name:		tracker
Version:	3.3.3
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/tracker
Source0:	https://download.gnome.org/sources/tracker/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	glib2.0-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	python3-gi
BuildRequires:	vala-tools
BuildRequires:	xsltproc
BuildRequires:	libstemmer-devel
BuildRequires:	libunistring-devel
BuildRequires:	libstemmer-devel
BuildRequires:	pkgconfig(bash-completion)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(vapigen)
Requires:	odt2txt

%description
Tracker is a framework designed to extract information and metadata about your
personal data so that it can be searched easily and quickly. Tracker is
desktop-neutral, fast and resource efficient.

%files -f %{name}.lang
%doc AUTHORS README.md NEWS
%license COPYING
%{_bindir}/%{name}3
%{_datadir}/bash-completion/completions/%{name}3
%{_datadir}/devhelp/books/Tracker
%{_datadir}/dbus-1/services/org.freedesktop.portal.Tracker.service
%{_datadir}/%{name}3
%{_libexecdir}/%{name}3
%{_libexecdir}/%{name}-xdg-portal-3
%{_mandir}/man1/%{name}3-*.1*
%{_mandir}/man1/%{name}-xdg-portal-3.1*
%{_userunitdir}/%{name}-xdg-portal-3.service

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of Tracker
Group:		System/Libraries

%description -n %{libname}
Tracker is a tool designed to extract information and metadata about your
personal data so that it can be searched easily and quickly. Tracker is
desktop-neutral, fast and resource efficient.

%files -n %{libname}
%license COPYING
%{_libdir}/lib%{name}-sparql-%{api}.so.%{major}*
%{_libdir}/%{name}-%{api}/lib%{name}-remote-soup2.so
%{_libdir}/%{name}-%{api}/lib%{name}-remote-soup3.so

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%{_libdir}/girepository-1.0/Tracker-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development library of Tracker
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Tracker is a tool designed to extract information and metadata about your
personal data so that it can be searched easily and quickly. Tracker is
desktop-neutral, fast and resource efficient.

%files -n %{devname}
%license COPYING
%{_datadir}/vala/vapi/%{name}-sparql-%{api}.vapi
%{_datadir}/vala/vapi/%{name}-sparql-%{api}.deps
%{_datadir}/gir-1.0/Tracker-%{api}.gir
%{_includedir}/%{name}-%{api}/*
%{_libdir}/lib*.so
%{_libdir}/%{name}-%{api}/%{name}testutils
%{_libdir}/pkgconfig/%{name}-sparql-%{api}.pc
%{_libdir}/pkgconfig/%{name}-testutils-3.0.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%apply_patches
sed -i 's@include <libstemmer.h>@include <libstemmer/libstemmer.h>@' src/lib%{name}-common/%{name}-language.c

%build
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20009 |21mr|tracker-miners-3.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	Tracker miners and metadata extractors
Name:		tracker-miners
Version:	3.3.3
Release:	1
# libtracker-extract is LGPLv2+; the miners are a mix of GPLv2+ and LGPLv2+ code
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/tracker-miners
Source0:	https://download.gnome.org/sources/tracker-miners/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	a2x
BuildRequires:	asciidoc
BuildRequires:	gstreamer1.0-libav
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	xsltproc
BuildRequires:	giflib-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(enca)
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(gexiv2)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-pbutils-1.0)
BuildRequires:	pkgconfig(gstreamer-tag-1.0)
BuildRequires:	pkgconfig(gupnp-dlna-2.0)
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(icu-uc)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libcue)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libgrss)
BuildRequires:	pkgconfig(libgsf-1)
BuildRequires:	pkgconfig(libgxps)
BuildRequires:	pkgconfig(libiptcdata)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libnm)
BuildRequires:	pkgconfig(libosinfo-1.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(poppler-glib)
BuildRequires:	pkgconfig(taglib_c)
BuildRequires:	pkgconfig(totem-plparser)
BuildRequires:	pkgconfig(tracker-sparql-3.0)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)
Requires:	tracker

%description
Tracker is a powerful desktop-neutral first class object database,
tag/metadata database and search tool.

This package contains various miners and metadata extractors for tracker.

%files -f %{name}.lang
%doc AUTHORS NEWS README.md
%license COPYING
%{_datadir}/dbus-1/interfaces/org.freedesktop.Tracker3.Miner*.xml
%{_datadir}/dbus-1/services/org.freedesktop.Tracker*
%{_datadir}/glib-2.0/schemas/*
%{_datadir}/tracker3-miners
%{_libdir}/%{name}-3.0
%{_libexecdir}/tracker*
%{_mandir}/man1/tracker*.1*
%{_sysconfdir}/xdg/autostart/tracker*.desktop
%{_userunitdir}/tracker*.service

%post
%systemd_user_post tracker-extract-3
%systemd_user_post tracker-miner-fs-3
%systemd_user_post tracker-miner-fs-control-3
%systemd_user_post tracker-miner-rss-3

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
LDFLAGS="%{optflags} -Wl,-O2"
%meson
%meson_build

%install
%meson_install

%find_lang %{name} --all-name --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20010 |21mr|transfig-3.2.8b-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility for converting FIG files (created by xfig) to other formats
Name:		transfig
Version:	3.2.8b
Release:	1
License:	MIT
Group:		Graphics
Url:		https://sourceforge.net/projects/mcj/
Source0:	http://downloads.sourceforge.net/mcj/fig2dev-%{version}.tar.xz
BuildRequires:	ghostscript
BuildRequires:	tcsh
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(zlib)
Requires:	ghostscript
Requires:	netpbm
Provides:		fig2dev = %{EVRD}

%description
The transfig utility creates a makefile which translates FIG (created by xfig)
or PIC figures into a specified LaTeX graphics language (for example,
PostScript(TM)). Transfig is used to create TeX documents which are portable
(i.e., they can be printed in a wide variety of environments).

%files
%doc CHANGES NOTES README
%{_bindir}/fig2dev
%{_bindir}/fig2ps2tex
%{_bindir}/pic2tpic
%{_bindir}/%{name}
%{_datadir}/fig2dev/*
%{_mandir}/man1/*

#-----------------------------------------------------------------------------

%prep
%setup -qn fig2dev-%{version}


%build
%configure --enable-transfig
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20011 |21mr|transfugdrake-1.9.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Migration wizard
Name:		transfugdrake
Version:	1.9.2
Release:	13
License:	GPL
Group:		System/Configuration/Other
Url:		http://svn.mandriva.com/svn/soft/transfugdrake
Source0:	%{name}-%{version}.tar.lzma
Requires:	migration-assistant
BuildArch:	noarch

%description
Transfugdrake is a wizard to migrate documents and settings from
Windows to ROSA Linux.

%files -f %{name}.lang
%{_sbindir}/%{name}
%{_prefix}/lib/libDrakX/transfugdrake.pm
%{_prefix}/lib/libDrakX/icons/*.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20012 |21mr|transmission-4.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define devname %mklibname %{name} -d
%define sdevname %mklibname %{name} -s -d

Summary:	A lightweight GTK+ BitTorrent client
Name:		transmission
Version:	4.0.3
Release:	2
License:	GPLv2 and GPLv3
Group:		Networking/File transfer
Url:		http://www.transmissionbt.com
# git clone https://github.com/transmission/transmission
# cd transmission
# git checkout %%{version}
# git submodule update --init --recursive
# git-archive-all --prefix=%%{name}-%%{version} ../%%{name}-%%{version}.tar.xz
Source0:	%{name}-%{version}.tar.xz
Source1:	transmission.sysusers.conf
Source2:	transmission.tmpfiles.conf
# Fix the DBus name to match the app name for flatpak builds
# https://github.com/transmission/transmission/pull/847
Patch2:		0001-gtk-use-com.transmissionbt.Transmission.-D-Bus-names.patch
BuildRequires:	cmake
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	qt6-linguist-tools
BuildRequires:	sed
BuildRequires:	systemd
#BuildRequires:	natpmp-devel # In contrib
BuildRequires:	cmake(Qt6)
BuildRequires:	cmake(Qt6Core)
BuildRequires:	cmake(Qt6DBus)
BuildRequires:	cmake(Qt6Gui)
BuildRequires:	cmake(Qt6Network)
BuildRequires:	cmake(Qt6OpenGL)
BuildRequires:	cmake(Qt6Svg)
BuildRequires:	cmake(Qt6Tools)
BuildRequires:	cmake(Qt6Widgets)
BuildRequires:	cmake(Qt6Xml)
BuildRequires:	pkgconfig(appindicator3-0.1)
BuildRequires:	pkgconfig(appindicator3-0.1)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glibmm-2.4)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtkmm-3.0)
BuildRequires:	pkgconfig(libcanberra-gtk)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libpsl)
BuildRequires:	pkgconfig(openssl)

%description
Transmission is a free, lightweight BitTorrent client. It features a
simple, intuitive interface on top on an efficient back-end.

#----------------------------------------------------------------------------

%package common
Summary:	Transmission common files
Group:		Networking/File transfer

%description common
Transmission is a free, lightweight BitTorrent client. This package
contains the common files used by the different front-ends.

%files common
%doc AUTHORS README.md
%license COPYING
%{_datadir}/%{name}
%{_defaultdocdir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_iconsdir}/hicolor/scalable/apps/%{name}-devel.svg
%{_iconsdir}/hicolor/symbolic/apps/%{name}-symbolic.svg

#----------------------------------------------------------------------------

%package cli
Summary:	Command line interface for Transmission BitTorrent client
Group:		Networking/File transfer
Requires:	%{name}-common = %{EVRD}

%description cli
Transmission is a free, lightweight BitTorrent client. This package
contains the command line interface front-end.

%files cli
%{_bindir}/%{name}-cli
%{_bindir}/%{name}-create
%{_bindir}/%{name}-edit
%{_bindir}/%{name}-remote
%{_bindir}/%{name}-show
%{_mandir}/man1/%{name}-cli*
%{_mandir}/man1/%{name}-create*
%{_mandir}/man1/%{name}-edit*
%{_mandir}/man1/%{name}-remote*
%{_mandir}/man1/%{name}-show*

#----------------------------------------------------------------------------

%package daemon
Summary:	Transmission daemon
Requires:	%{name}-common = %{EVRD}
Requires(pre):	/bin/systemd-sysusers
Requires(post):	/bin/systemd-tmpfiles

%description daemon
Transmission BitTorrent client daemon.

%files daemon
%{_bindir}/%{name}-daemon
%{_mandir}/man1/%{name}-daemon*
%{_sysusersdir}/%{name}.conf
%{_tmpfilesdir}/%{name}.conf

%pre daemon
%sysusers_create_package %{name} %{SOURCE1}

%post daemon
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf

#----------------------------------------------------------------------------

%package gtk3
Summary:	GTK Interface for Transmission BitTorrent client
Group:		Networking/File transfer
Requires:	%{name}-common = %{EVRD}
Provides:	%{name} = %{EVRD}
Provides:	%{name}-gui = %{EVRD}
Provides:	%{name}-gtk = %{EVRD}

%description gtk3
GTK graphical interface of Transmission BitTorrent client.

%files gtk3 -f %{name}-gtk.lang
%{_appdatadir}/%{name}-gtk.metainfo.xml
%{_bindir}/%{name}-gtk
%{_datadir}/applications/%{name}-gtk.desktop
%{_mandir}/man1/%{name}-gtk.*

#----------------------------------------------------------------------------

%package qt6
Summary:	Qt Interface for Transmission BitTorrent client
Group:		Networking/File transfer
Requires:	%{name}-common = %{EVRD}
Provides:	%{name}-gui = %{EVRD}
Obsoletes:	%{name}-qt5
Conflicts:	%{name}-qt5

%description qt6
This package contains QTransmission, a QT5 based GUI for Transmission
loosely based on the GTK+ client.

%files qt6
%{_bindir}/%{name}-qt
%{_datadir}/applications/%{name}-qt.desktop
%{_mandir}/man1/%{name}-qt.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for developing programs that will use libtransmission
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the headers that programmers will need to develop
applications which will use transmission.

%files -n %{devname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*.h

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Headers for developing programs that will use libtransmission (static library)
Group:		Development/C
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
This package contains the headers that programmers will need to develop
applications which will use libtransmission.

%files -n %{sdevname}
%{_libdir}/lib%{name}.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# fix icon location for Transmission Qt
sed -i 's|Icon=%{name}-qt|Icon=%{name}|g' qt/%{name}-qt.desktop

# convert to UTF encoding
iconv --from=ISO-8859-1 --to=UTF-8 AUTHORS > AUTHORS.new
mv AUTHORS.new AUTHORS

%build
%cmake	\
	-DENABLE_CLI=ON		\
	-DENABLE_GTK=ON		\
	-DENABLE_QT=ON		\
	-DENABLE_TESTS=OFF	\
	-DINSTALL_LIB=ON	\
	-DUSE_GTK_VERSION=3	\
	-DUSE_QT_VERSION=6
%make

%install
%makeinstall_std -C build

%find_lang %{name}-gtk

install -Dm644 "%{SOURCE1}" "%{buildroot}%{_sysusersdir}/%{name}.conf"
install -Dm644 "%{SOURCE2}" "%{buildroot}%{_tmpfilesdir}/%{name}.conf"

#mkdir -p %{buildroot}%{_includedir}
#ln -s %{_libdir}/qt6/include/QtSvg %{buildroot}%{_includedir}/QtSvg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20013 |21mr|tree-1.8.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility which displays a tree view of directory contents
Name:		tree
Version:	1.8.0
Release:	3
License:	GPLv2+
Group:		File tools
Url:		http://mama.indstate.edu/users/ice/tree/
Source0:	ftp://mama.indstate.edu:21/linux/tree/%{name}-%{version}.tgz

%description
The tree utility recursively displays the contents of directories in a
tree-like format. Tree is basically a UNIX port of the tree DOS
utility.

Install tree if you think it would be useful to view the contents of
specified directories in a tree-like format.

%files
%doc README LICENSE CHANGES
%{_bindir}/%{name}
%{_mandir}/man1/%{name}*

#---------------------------------------------------------------------

%prep
%setup -q

%build
%global optflags %{optflags} -Os
%serverbuild_hardened
%make CFLAGS="%{optflags} -Wall -DLINUX -D_LARGEFILE64_SOURCE -D_FILE_OFFSET_BITS=64" LDFLAGS="%{ldflags}"

%install
mkdir -p %{buildroot}/{%{_bindir},%{_sbindir},%{_mandir}/man1}

%makeinstall_std \
	BINDIR=%{buildroot}%{_bindir} \
	MANDIR=%{buildroot}%{_mandir}/man1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20014 |21mr|treelayout-1.0.3-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global core org.abego.treelayout
Name:          treelayout
Version:       1.0.3
Release:       9
Summary:       Efficient and customizable Tree Layout Algorithm in Java
License:       BSD
Group:         Development/Java
URL:           http://treelayout.sourceforge.net/
Source0:       https://github.com/abego/treelayout/archive/v%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Efficiently create compact, highly customizable
tree layouts. The software builds tree layouts
in linear time. I.e. even trees with many nodes
are built fast.

%package demo
Summary:       TreeLayout Core Demo

%description demo
Demo for "org.abego.treelayout.core".

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}

# This is a dummy POM added just to ease building in the RPM platforms:
cat > pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">

  <modelVersion>4.0.0</modelVersion>
  <groupId>org.abego.treelayout</groupId>
  <artifactId>org.abego.treelayout.project</artifactId>
  <packaging>pom</packaging>
  <version>%{version}</version>

  <modules>
    <module>org.abego.treelayout</module>
    <module>org.abego.treelayout.demo</module>
    <!-- Use org.netbeans.api:org-netbeans-api-visual:RELEASE67: -->
    <!--module>org.abego.treelayout.netbeans</module-->
    <!--module>org.abego.treelayout.netbeans.demo</module-->
  </modules>

</project>
EOF

# fix non ASCII chars
native2ascii -encoding UTF8 %{core}/src/main/java/org/abego/treelayout/package-info.java \
 %{core}/src/main/java/org/abego/treelayout/package-info.java

%mvn_package :%{core}.project __noinstall

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-%{core}.core
%doc %{core}/CHANGES.txt README.md
%license %{core}/src/LICENSE.TXT

%files demo -f .mfiles-%{core}.demo
%doc %{core}.demo/CHANGES.txt
%license %{core}.demo/src/LICENSE.TXT

%files javadoc -f .mfiles-javadoc
%license %{core}/src/LICENSE.TXT


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20015 |21mr|trik-studio-2023.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		trikName trikStudio
%define	_description %{expand:
An opensource cross-platform educational programming environment 
for future robotics: TRIK, Lego EV3, and other kits are supported.
}

%define	_description_ru %{expand:
Интуитивно-понятная среда программирования позволяет программировать роботов с
помощью последовательности картинок. С TRIK Studio программирование становится
простым и увлекательным.

TRIK Studio прекрасно подходит как универсальное ПО преподавания основ
программирования, предусмотрен переход от диаграмм к текстовым языкам
программирования, планируется реализация языка блок-схем. В среде также
реализовано программирование роботов Lego Mindsorms NXT 2.0 и EV3, но
возможности таких роботов сильно ограничены в сравнении с TRIK Studio.
}

%global privlibs Box2D.*|ev3Metamodel.*|nxtMetamodel.*|pioneerMetamodel.*|qextserialport.*|qrgraph.*
%global privlibs %{privlibs}|qrgui.*|qrkernel.*|qrmc.*|qrrepo.*|qrtext.*|qrutils.*|robots.*|subprograms.*
%global privlibs %{privlibs}|trik.*|updates.*

%global __provides_exclude ^lib(%{privlibs}).so.++$
%global __requires_exclude ^lib(%{privlibs}).so.++$

%global __requires_exclude_from ^(%{_libdir}/%{trikName}/.*\\.so.*)$
%global __requires_exclude_from ^(%{_libdir}/%{_libdir}/%{trikName}/plugins/editors/.*\\.so.*)$
%global __requires_exclude_from ^(%{_libdir}/%{trikName}/plugins/tools/.*\\.so.*)$
%global __requires_exclude_from ^(%{_libdir}/%{_libdir}/%{trikName}/plugins/tools/kitPlugins/.*\\.so.*)$

%global __provides_exclude_from ^(%{_libdir}/%{trikName}/.*\\.so.*)$
%global __provides_exclude_from ^(%{_libdir}/%{_libdir}/%{trikName}/plugins/editors/.*\\.so.*)$
%global __provides_exclude_from ^(%{_libdir}/%{trikName}/plugins/tools/.*\\.so.*)$
%global __provides_exclude_from ^(%{_libdir}/%{_libdir}/%{trikName}/plugins/tools/kitPlugins/.*\\.so.*)$

Summary:	TRIK Studio programming environment
Summary(ru_RU.UTF-8): Cреда программирования TRIK Studio
Name:		trik-studio
Version:	2023.1
Release:	6
License:	Apache-2.0
Group:		Sciences/Computer science
Url:		https://github.com/trikset/trik-studio
### generate archive source
### git clone https://github.com/trikset/trik-studio.git trik-studio-2022.2
# cd %%{name}-%%{version}
# git checkout %%{version}
# git submodule update --init --recursive && cd ..
# tar cfJ %%{name}-%%{version}.tar.xz --exclude={.git,.github} %%{name}-%%{version}
Source0:	%{name}-%{version}.tar.xz
Patch0:		trik-studio-quazip1-qt5.patch
%if %{mdvver} == 202310
Patch1:		trik-studio-python3.11.patch
%endif
Patch2:		config-file-fix.patch
BuildRequires:  qmake5
%ifnarch %{e2k}
BuildRequires:  %{_lib}ubsan-static-devel
%endif
BuildRequires:  pkgconfig(quazip1-qt5)
BuildRequires:  qt5-linguist-tools
BuildRequires:  qscintilla-qt5-devel
BuildRequires:  pkgconfig(python3)
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Network)
BuildRequires:  pkgconfig(Qt5Multimedia)
BuildRequires:  pkgconfig(Qt5MultimediaWidgets)
BuildRequires:  pkgconfig(Qt5PrintSupport)
BuildRequires:  pkgconfig(Qt5Script)
BuildRequires:  pkgconfig(Qt5SerialPort)
BuildRequires:  pkgconfig(Qt5Svg)
BuildRequires:  %{_lib}qt5test-devel
BuildRequires:  pkgconfig(Qt5Xml)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(libusb-1.0)
BuildRequires:  rsync
Provides:	trickStudio = %{EVRD}
Provides:	trickRuntime = %{EVRD}

%description
%_description

%description -l ru_RU.UTF-8
%_description_ru

%files
%license LICENSE
%doc *.md
%config %{_sysconfdir}/%{trikName}.config
%{_bindir}/%{name}
%{_bindir}/%{trikName}
%{_bindir}/checkapp
%{_bindir}/gamepad
%dir %{_libdir}/%{trikName}
%{_libdir}/%{trikName}/*.so*
%dir %{_libdir}/%{trikName}/plugins
%dir %{_libdir}/%{trikName}/plugins/editors
%{_libdir}/%{trikName}/plugins/editors/*.so
%dir %{_libdir}/%{trikName}/plugins/tools
%{_libdir}/%{trikName}/plugins/tools/*.so
%dir %{_libdir}/%{trikName}/plugins/tools/kitPlugins
%{_libdir}/%{trikName}/plugins/tools/kitPlugins/*.so
%{_datadir}/applications/%{trikName}.desktop
%{_iconsdir}/hicolor/*/apps/%{trikName}.png
%dir %{_datadir}/%{trikName}
%dir %{_datadir}/%{trikName}/examples
%dir %{_datadir}/%{trikName}/examples/ev3
%{_datadir}/%{trikName}/examples/ev3/*.qrs
%dir %{_datadir}/%{trikName}/examples/nxt
%{_datadir}/%{trikName}/examples/nxt/*.qrs
%dir %{_datadir}/%{trikName}/examples/pioneer
%{_datadir}/%{trikName}/examples/pioneer/*.qrs
%dir %{_datadir}/%{trikName}/examples/trik
%{_datadir}/%{trikName}/examples/trik/*.qrs
%dir %{_datadir}/%{trikName}/examples/trik/stepic
%{_datadir}/%{trikName}/examples/trik/stepic/*.qrs
%dir %{_datadir}/%{trikName}/examples/trik/system
%{_datadir}/%{trikName}/examples/trik/system/*.qrs
%dir %{_datadir}/%{trikName}/help
%{_datadir}/%{trikName}/help/*
%dir %{_datadir}/%{trikName}/images
%{_datadir}/%{trikName}/images/{*.png,*.svg}
%dir %{_datadir}/%{trikName}/images/fields
%{_datadir}/%{trikName}/images/fields/*.svg
%dir %{_datadir}/%{trikName}/images/iconset1
%{_datadir}/%{trikName}/images/iconset1/*
%dir %{_datadir}/%{trikName}/images/iconset2
%{_datadir}/%{trikName}/images/iconset2/*
%dir %{_datadir}/%{trikName}/translations
%{_datadir}/%{trikName}/translations/*
%dir %{_datadir}/%{trikName}/languages
%{_datadir}/%{trikName}/languages/*
%dir %{_datadir}/trikRuntime
%{_datadir}/trikRuntime/*

#------------------------------------------------------------------

%package devel
Summary:	%{summary}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Provides:	trickStudio-devel = %{EVRD}
Provides:	trickRuntime-devel = %{EVRD}

%description devel
%_description

%description devel -l ru_RU.UTF-8
%_description_ru

%files devel
%dir %{_sysconfdir}/trik
%dir %{_sysconfdir}/trik/trikRuntime
%dir %{_sysconfdir}/trik/trikRuntime/configs
%dir %{_sysconfdir}/trik/trikRuntime/configs/kernel-3.6
%config %{_sysconfdir}/trik/trikRuntime/configs/kernel-3.6/*.xml
%dir %{_sysconfdir}/trik/trikRuntime/configs/kernel-4.14
%config %{_sysconfdir}/trik/trikRuntime/configs/kernel-4.14/*.xml
%dir %{_sysconfdir}/trik/trikRuntime/configs/usb
%config %{_sysconfdir}/trik/trikRuntime/configs/usb/*.xml
%dir %{_sysconfdir}/trik/trikRuntime/configs/v6
%config %{_sysconfdir}/trik/trikRuntime/configs/v6/*.xml
%{_includedir}/PythonQt_QtAll.h
%{_libdir}/*.pc
%dir %{_includedir}/trikControl
%{_includedir}/trikControl/*.h
%dir %{_includedir}/trikHal
%{_includedir}/trikHal/*.h
%dir %{_includedir}/trikKernel
%{_includedir}/trikKernel/*.h
%dir %{_includedir}/trikNetwork
%{_includedir}/trikNetwork/*.h
%dir %{_includedir}/trikScriptRunner
%{_includedir}/trikScriptRunner/*.h
%{_includedir}/trikCommunicator/trikCommunicator.h
#------------------------------------------------------------------

%prep
%autosetup -p1

rm -vfr thirdparty/quazip
rm -vfr thirdparty/qscintilla

%build
export PATH="%{_libdir}/qt5/bin:$PATH"

%qmake_qt5 \
    LIBDIR=%{_libdir}   \
    DATADIR=%{_datadir}   \
    PREFIX="%{_prefix}" \
    QMAKE_LFLAGS=" -Wl,-rpath=%{_libdir}/%{trikName}" \
    CONFIG+=use_system_qscintilla2 \
    CONFIG+=use_system_quazip \
   %ifarch %{e2k}
   CONFIG+=noPch CONFIG+=warn_off \
%endif
%{nil}
%make

find . -iname "*.pro" \
        -exec lrelease-qt5 {} \; || true

%install
# Does not allow to install if there are no files
touch bin/release/libtrikKernel.la
touch bin/release/libtrikCommunicator.la
touch bin/release/trikCommunicator.pc
touch bin/release/trikKernel.pc
touch bin/release/libtrikNetwork.la
touch bin/release/trikNetwork.pc
touch bin/release/libtrikHal.la
touch bin/release/trikHal.pc
touch bin/release/libtrikControl.la
touch bin/release/trikControl.pc
touch bin/release/libtrikScriptRunner.la
touch bin/release/trikScriptRunner.pc

%makeinstall_qt

# delete the empty files that we did during installation
rm -vfr %{buildroot}%{_prefix}/lib/{*.la,*.pc}

# checkapp
mv -v %{buildroot}/opt/checkapp/bin/checkapp \
    %{buildroot}%{_bindir}
rm -vr %{buildroot}/opt

# python libs
%ifnarch %{x86_64}
cp -vfr %{buildroot}/lib/* \
	%{buildroot}%{_prefix}/lib
%else
cp -vfr %{buildroot}/lib/* \
	%{buildroot}%{_libdir}
%endif

# python include
mv -v %{buildroot}/include/* \
	%{buildroot}%{_prefix}/include
rm -vr %{buildroot}/{lib,include}

# move the library to a folder
%ifnarch %{x86_64}
mv -v %{buildroot}%{_prefix}/lib/*.so* \
	%{buildroot}%{_prefix}/lib/%{trikName}
%else
mv -v %{buildroot}%{_prefix}/lib/*.so* \
	%{buildroot}%{_libdir}/%{trikName}
mv -v %{buildroot}%{_libdir}/*.so* \
	%{buildroot}%{_libdir}/%{trikName}
%endif

%ifarch %{arm64} %{e2k}
mv -v %{buildroot}%{_prefix}/lib \
    %{buildroot}%{_prefix}/%{_lib}
%endif

# install gamepad and languages
mv -v bin/release/gamepad %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/%{trikName}/languages
mv -v thirdparty/gamepad/gamepad/languages/*.qm %{buildroot}%{_datadir}/%{trikName}/languages

%ifarch %{arm64} %{e2k}
# fix path libs
sed -i -e "s|%{_prefix}/lib|%{_libdir}|g" %{buildroot}%{_sysconfdir}/%{trikName}.config
%endif

# the log does not show, we will fix it
sed -i -e "/pathToLogs/s/^/#/" %{buildroot}%{_sysconfdir}/%{trikName}.config


%check
patchelf --print-rpath %{buildroot}%{_libdir}/%{trikName}/*.so* | grep -q %{_libdir}



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20016 |21mr|trilead-putty-extension-1.2-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           trilead-putty-extension
Version:        1.2
Release:        13
Summary:        Extension to trilead-ssh2 for handling PuTTY keys

License:        MIT
URL:            https://github.com/kohsuke/trilead-putty-extension
Source0:        https://github.com/kohsuke/%{name}/archive/%{name}-%{version}.tar.gz
# License text copied from header of one of the .java files
# Upstream doesn't care much about license texts in repository
# same upstream, different project: https://github.com/jenkinsci/remoting/pull/14
Source1:        LICENSE.txt

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.kohsuke:pom:pom:)
BuildRequires:  mvn(org.tmatesoft.svnkit:trilead-ssh2)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is a small library that allows you to programatically convert
the PuTTY key file (.ppk) to the OpenSSH format.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
This package contains API javadoc documentation for %{name}


%prep
%setup -q -n %{name}-%{name}-%{version}

cp %{SOURCE1} LICENSE

# Fix trilead-ssh2 groupId
%pom_change_dep :trilead-ssh2 org.tmatesoft.svnkit:

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE
%files javadoc -f .mfiles-javadoc
%doc LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20017 |21mr|trilead-ssh2-217-13.jenkins8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global patchlvl 8

Name:           trilead-ssh2
Version:        217
Release:        13.jenkins%{patchlvl}
Summary:        SSH-2 protocol implementation in pure Java

# project is under BSD, but some parts are MIT licensed
# see LICENSE.txt for more information
License:        BSD and MIT
URL:            https://github.com/jenkinsci/trilead-ssh2
Source0:        https://github.com/jenkinsci/%{name}/archive/%{name}-build%{version}-jenkins-%{patchlvl}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(junit:junit)

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Trilead SSH-2 for Java is a library which implements the SSH-2 protocol in pure
Java (tested on J2SE 1.4.2 and 5.0). It allows one to connect to SSH servers
from within Java programs. It supports SSH sessions (remote command execution
and shell access), local and remote port forwarding, local stream forwarding,
X11 forwarding and SCP. There are no dependencies on any JCE provider, as all
crypto functionality is included.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q -n %{name}-%{name}-build%{version}-jenkins-%{patchlvl}

# compat symlink/alias
%mvn_file  : %{name}/%{name} %{name}
%mvn_alias : "org.tmatesoft.svnkit:trilead-ssh2" "com.trilead:trilead-ssh2"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt HISTORY.txt README.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20018 |21mr|tripso-1.2-0.git993f24.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 993f2489568920dc14d62e4df5ba189fa8204a7c
%define commit_short %(echo %{commit} | head -c6)

Summary:		Translation of IPv4 Security Options (IPSO) Labels
Name:			tripso
License:		GPLv2
Group:			System/Kernel and hardware
Version:		1.2
Release:		0.git%{commit_short}.2
Url:			https://github.com/vt-alt/tripso
Source0:		https://github.com/vt-alt/tripso/archive/%{commit}.tar.gz?/%{name}-%{commit}.tag.gz
Source1:		tripso-firewall.service

BuildRequires:	pkgconfig(xtables)
# macro %%_modulesloaddir
BuildRequires:	systemd-units

# for tripso-firewall.service
Requires:	iptables
Requires:	kmod-compat

%description
Translate between CISPO and Astra Linux security labels
(userspace part, iptables/xtables module).

%files
%doc README.md
%{_libdir}/xtables/libxt_TRIPSO.so
%{_modulesloaddir}/tripso.conf
%{_unitdir}/tripso-firewall.service

%post
%systemd_post tripso-firewall.service

%preun
%systemd_preun tripso-firewall.service

#-----------------------------------------------------------------

%package -n kernel-source-tripso
Summary:		Source code of tripso kernel module
Group:			System/Kernel and hardware
BuildArch:		noarch
# #include <xtables.h>
Requires:		pkgconfig(xtables)

%description -n kernel-source-tripso
Translate between CISPO and Astra Linux security labels.
Source code of Tripso kernel module.

%files -n kernel-source-tripso
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*.c
%{_usr}/src/%{name}-%{version}-%{release}/*.h
%{_usr}/src/%{name}-%{version}-%{release}/Makefile

#-----------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
make libxt_TRIPSO.so VERSION="%{version}-%{release}" CFLAGS="%{optflags}"

%install
make install-lib DESTDIR=%{buildroot}

mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
( cd %{buildroot}%{_usr}/src/
  tar -xf %{SOURCE0}
  ( cd %{name}-%{commit}
    %autopatch -p1
  )
  mkdir -p %{name}-%{version}-%{release}
  mv -v %{name}-%{commit}/* %{name}-%{version}-%{release}/
  rm -fvr %{name}-%{version}-%{release}/{.gear-rules,test,test-recv,tripso.spec,tripso_tests.sh,README.md}
)
rm -fvr %{buildroot}%{_usr}/src/%{name}-%{commit}

mkdir -p %{buildroot}%{_modulesloaddir}
echo xt_TRIPSO > %{buildroot}%{_modulesloaddir}/tripso.conf

mkdir -p %{buildroot}%{_unitdir}
install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/tripso-firewall.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20019 |21mr|trojita-0.7-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Qt-based IMAP e-mail client
Name:		trojita
Version:	0.7
Release:	7
License:	GPLv2+ or GPLv3+
Group:		Networking/Mail
Url:		http://trojita.flaska.net
Source0:	http://sourceforge.net/projects/trojita/files/src/%{name}-%{version}.tar.xz
Source1:	http://sourceforge.net/projects/trojita/files/src/%{name}-%{version}.tar.xz.asc
Source2:	trojita_common_ru.qm
Patch0:		trojita-0.7-desktop.patch
# gentoo patches https://bugs.gentoo.org/730058
Patch1:         trojita-0.7-qt-5.13.patch
# error: aggregate 'QPainterPath path' has incomplete type and cannot be defined
Patch2:         trojita-0.7-qt-5.15.patch
Patch3:         trojita-0.7-cmake-cxx11.patch
# https://bugs.kde.org/show_bug.cgi?id=404697
Patch4:         CVE-2019-10734.patch
# https://bugs.kde.org/show_bug.cgi?id=423453
Patch5:         CVE-2020-15047.patch

BuildRequires:	cmake
BuildRequires:	qt5-linguist-tools
BuildRequires:	ragel
BuildRequires:  cmake(Gpgmepp)
BuildRequires:  cmake(KF5Sonnet)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(zlib)
# For tests
BuildRequires:	x11-server-xvfb
Requires:	qt5-database-plugin-sqlite

%description
Qt-based IMAP e-mail client.

* A pure Qt application with no additional dependencies
* Robust IMAP core implemented using Qt's Model-View framework
* Standards compliance is a design goal
* Support for bandwidth-saving mode aimed at mobile users 
  with expensive connection
* IMAP over SSH -- in addition to usual SSL/TLS connections, 
  the server could be accessed via SSH
* On-demand body part loading
* Offline IMAP support (you can access data you already have; 
  there's no complete "offline mail access" yet, though)
* Safe dealing with HTML mail (actually more robust than Thunderbird's)

%files
%{_bindir}/%{name}
%{_bindir}/be.contacts
%{_datadir}/appdata/*xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/%{name}/locale/*.qm
%{_libdir}/*.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Evil workaround for build failure
echo 'add_definitions(-fvisibility=default)' >>CMakeLists.txt

%cmake \
	-DWITH_TESTS=ON \
	-DWITH_QT5=ON \
	-DWITH_ZLIB=ON \
	-DWITH_RAGEL=ON \
	-DWITH_SHARED_PLUGINS=ON

# ragel: -C is an invalid argument
grep -lr "ragel -C" | xargs sed -i -e "s|ragel -C|ragel|g"


%build
%make -C build

%install
%makeinstall_std -C build

install -m644 %{SOURCE2} -D %{buildroot}%{_datadir}/%{name}/locale/trojita_common_ru.qm

#mkdir -p %{buildroot}%{_libdir}
#for i in AbookAddressbook AppVersion Common DesktopGui Composer Imap MSA Streams qwwsmtpclient; do
#	cp -a build/lib$i.so %{buildroot}%{_libdir}/
#done

%check
%ifnarch aarch64
%define X_display ":98"
export LD_LIBRARY_PATH="${LD_LIBRARY_PATH}${LD_LIBRARY_PATH:+:}%{buildroot}%{_libdir}"
export DISPLAY=%{X_display}
Xvfb %{X_display} &
trap "kill $! || true" EXIT
cd build
ctest --output-on-failure
%endif
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20020 |21mr|trousers-0.3.14-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 1
%define libname %mklibname tspi %{major}
%define devname %mklibname %{name} -d

Summary:	TCG's Software Stack v1.2
Name:		trousers
Version:	0.3.14
Release:	5
License:	BSD
Group:		System/Libraries
Url:		http://trousers.sourceforge.net
Source0:	http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Source1:	tcsd.service
Source2:	trousers.sysusers.conf
# CVE-2020-24332
Patch0:		tcsd_fixes.patch
BuildRequires:	pkgconfig(openssl)
# Macro %%sysusers_create_packages was backported to systemd-230
BuildRequires:	systemd >= 230-14
Requires:	systemd >= 230-14

%description
TrouSerS is an implementation of the Trusted Computing Group's Software Stack
(TSS) specification. You can use TrouSerS to write applications that make use
of your TPM hardware. TPM hardware can create, store and use RSA keys
securely (without ever being exposed in memory), verify a platform's software
state using cryptographic hashes and more.

%files
%doc README LICENSE ChangeLog
%{_sbindir}/tcsd
%config(noreplace) %attr(0600, tss, tss) %{_sysconfdir}/tcsd.conf
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_unitdir}/tcsd.service
%{_sysusersdir}/%{name}.conf
%attr(0700, tss, tss) %{_localstatedir}/lib/tpm/

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	TrouSerS Shared libraries
Group:		System/Libraries

%description -n %{libname}
Shared libraries for TrouSerS.

%files -n %{libname}
%{_libdir}/libtspi.so.%{major}
%{_libdir}/libtspi.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	TrouSerS header files and documentation
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and man pages for use in creating Trusted Computing enabled
applications.

%files -n %{devname}
%doc doc/LTC-TSS_LLD_08_r2.pdf doc/TSS_programming_SNAFUs.txt
%{_libdir}/libtspi.so
%{_libdir}/libtddl.a
%{_includedir}/*
%{_mandir}/man3/Tspi_*

#----------------------------------------------------------------------------

%prep
%setup -c
%autopatch -p1

%build
%configure \
	--with-gui=openssl \
	--disable-static
%make

%install
%makeinstall_std
rm -f %{buildroot}/%{_libdir}/libtspi.la
mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysusersdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/
install -m 0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/%{name}.conf

%pre
%sysusers_create_package %{name} %{SOURCE2}

%post
%systemd_post tcsd.service

%preun
%systemd_preun tcsd.service

%postun
%systemd_postun_with_restart tcsd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20021 |21mr|tsocks-1.8-0.beta5.11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname %{name}

Summary:	A transparent SOCKS proxying library
Name:		tsocks
Version:	1.8
# Hardcode beta5 so ABF can increase release (it doesn't support macros in Release)
# And the package is no longer updated in upstream for 17 years already
Release:	0.beta5.11
License:	GPLv2+
Group:		Networking/Other
Url:		http://tsocks.sourceforge.net/
Source0:	http://ftp1.sourceforge.net/tsocks/%{name}-%{version}beta5.tar.bz2
Source1:	tsocks.rpmlintrc
# Mans from Debian
# tsocks.1 is present in both upstream and Debian, they differ a bit
Source10:	tsocks.1
Source11:	inspectsocks.1
Source12:	validateconf.1
Source13:	saveme.8
# Patches from Debian
Patch00:	00_patch_from_1.8beta5-9.2.patch
Patch01:	01_symbolexport.patch
Patch02:	02_hyphenfix.patch
Patch03:	03_fixloop.patch
Patch04:	04_getpeername.patch
Patch05:	05_config_in_home.patch
Patch06:	06_fallback.patch
Patch07:	07_tsocks-1.8_beta5-hostname-config-fix.patch
Patch08:	08_manpages-fixes.patch
Patch09:	09_multiarch_paths.patch
Patch10:	10_hardening.patch
BuildRequires:	glibc-static-devel
BuildRequires:	binutils
Requires:	%{libname} = %EVRD

%description
tsocks' role is to allow these non SOCKS aware applications (e.g
telnet, ssh, ftp etc) to use SOCKS without any modification. It does
this by intercepting the calls that applications make to establish
network connections and negotating them through a SOCKS server as
necessary.

%files
## upstream stuff
%{_bindir}/inspectsocks
%{_bindir}/saveme
%{_bindir}/tsocks
%{_bindir}/validateconf
%{_mandir}/man8/tsocks.8*
%{_mandir}/man5/tsocks.conf.5*
# may contain private data such as passwords -> 600
%attr(600,root,root) %config(noreplace) %{_sysconfdir}/tsocks.conf
## Debian stuff
%{_mandir}/man1/inspectsocks.1*
%{_mandir}/man8/saveme.8*
%{_mandir}/man1/tsocks.1*
%{_mandir}/man1/validateconf.1*

%package -n %{libname}
Summary: lib for %{name}

%description -n %{libname}
lib for %{name}


%files -n %{libname}
%{_libdir}/libtsocks.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
chmod 644 *.c *.h

%build
%configure \
	--enable-hostnames \
	--with-conf=/etc/tsocks.conf
%make DYNLIB_FLAGS="-Wl,-soname -Wl,libtsocks.so"

%install
%makeinstall_std
# Install additional stuff from source tree manually
# - libtsocks.so - the libtsocks library
# - validateconf - a utility to verify the tsocks configuration file
# - inspectsocks - a utility to determine the version of a socks server
# - saveme - a statically linked utility to remove /etc/ld.so.preload
#   if it becomes corrupt
install -D -m 0600 tsocks.conf.complex.example %{buildroot}%{_sysconfdir}/tsocks.conf
install -D -m 0755 validateconf %{buildroot}%{_bindir}/validateconf
install -D -m 0755 inspectsocks %{buildroot}%{_bindir}/inspectsocks
install -D -m 0755 saveme %{buildroot}%{_bindir}/saveme
strip %{buildroot}%{_bindir}/saveme

# Install additional mans from Debian
install -D -m 0644 %{SOURCE10} %{SOURCE11} %{SOURCE12} %{buildroot}%{_mandir}/man1/
install -D -m 0644 %{SOURCE13} %{buildroot}%{_mandir}/man8/

# This library is LD_PRELOAD'ed only - no need in versioning
rm -f %{buildroot}%{_libdir}/libtsocks.so
rm -f %{buildroot}%{_libdir}/libtsocks.so.1
mv %{buildroot}%{_libdir}/libtsocks.so.%{version} %{buildroot}%{_libdir}/libtsocks.so

%check
# ensure that we did not rename a versioned library
[ "$(LC_ALL=C readelf -a %{buildroot}%{_libdir}/libtsocks.so | \
	grep -i 'soname: \[' | \
	tr -d '[]' | awk '{print $NF}')" = 'libtsocks.so' ]

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20022 |21mr|ttembed-1.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:       ttembed
Version:    1.1
Release:    11%{?dist}
Group:	    System/X11
Summary:    Remove embedding limitations from TrueType fonts
License:    Public Domain
URL:        https://github.com/hisdeedsaredust/ttembed
Source0:    https://github.com/hisdeedsaredust/ttembed/archive/v%{version}.tar.gz

%description
Remove embedding limitations from TrueType fonts, by setting the fsType field
in the OS/2 table to zero. That's it; this program is a one-trick pony.

%prep
%setup -q

%build
%set_build_flags
%make_build CC=%{__cc}

%install
install -d %{buildroot}%{_bindir}
install -p -m 755 %{name} %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1/
install -p -m 644 %{name}.1 %{buildroot}%{_mandir}/man1/

%files
%{_bindir}/%{name}
%{_mandir}/man1/*
%doc LICENSE README.md

%check
# smoke test - fail on not font file
echo 'not a font' > test
if [[ "$(./ttembed test 2>&1)" != "test: Not TTF/OTF" ]] ; then
    echo "TEST FAIL: not a font input test" 1>&2
    exit 1
fi
rm test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20023 |21mr|ttmkfdir-3.0.9-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to create fonts.scale files for truetype fonts
Name:		ttmkfdir
Version:	3.0.9
Release:	15
# Only licensing attribution is in README, no version.
License:	LGPLv2+
Group:		System/Fonts/True type
# This is a Red Hat maintained package which is specific to
# our distribution.  Thus the source is only available from
# within this srpm.
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ttmkfdir-3.0.9-cpp.patch
Patch1:		ttmkfdir-3.0.9-zlib.patch
Patch2:		ttmkfdir-3.0.9-fix-freetype217.patch
Patch3:		ttmkfdir-3.0.9-namespace.patch
Patch4:		ttmkfdir-3.0.9-fix-crash.patch
Patch5:		ttmkfdir-3.0.9-warnings.patch
Patch6:		ttmkfdir-3.0.9-segfaults.patch
Patch7:		ttmkfdir-3.0.9-encoding-dir.patch
Patch8:		ttmkfdir-3.0.9-font-scale.patch
Patch9:		ttmkfdir-3.0.9-bug434301.patch
Patch10:	ttmkfdir-3.0.9-libtool.patch
BuildRequires:	flex
BuildRequires:	libtool
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(zlib)
Provides:	freetype-tools = %{EVRD}

%description
ttmkfdir is a utility used to create fonts.scale files in TrueType font
directories in order to prepare them for use by the font server.

%files
%doc README
%{_bindir}/ttmkfdir

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1
%patch10 -p1

%build
%make OPTFLAGS="%{optflags}"

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20024 |21mr|tuned-2.16.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude /usr/bin/stap

Summary:	A dynamic adaptive system tuning daemon
Name:		tuned
Version:	2.16.0
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		https://fedorahosted.org/tuned/
Source0:	https://github.com/redhat-performance/tuned/archive/v%{version}.tar.gz
Source1:	governors.modules
Patch0:		0002-get-CPE-string-from-etc-os-release-rather-than-the-m.patch
Patch5:		tuned-2.4.1-dont-start-in-virtual-env.patch
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(six)
%ifarch %{x86_64} %{ix86}
Requires:	cpupower
%endif
Requires:	dbus
Requires:	ethtool
Requires:	hdparm
Requires:	polkit
Requires:	python3-dbus
Requires:	python3-gi
Requires:	python3egg(configobj)
Requires:	python3egg(decorator)
Requires:	python3egg(pyudev)
Requires:	python3egg(six)
Requires:	typelib(GObject)
Requires:	virt-what
Requires(post):	virt-what
BuildArch:	noarch

%description
The tuned package contains a daemon that tunes system settings dynamically.
It does so by monitoring the usage of several system components periodically.
Based on that information components will then be put into lower or higher
power saving modes to adapt to the current usage. Currently only ethernet
network and ATA harddisk devices are implemented.

%files
%doc AUTHORS README doc/TIPS.txt
%{_sysconfdir}/modprobe.preload.d/governors
%{_datadir}/bash-completion/completions/tuned-adm
%exclude %{python3_sitelib}/tuned/gtk
%{python3_sitelib}/tuned
%{_sbindir}/tuned
%{_sbindir}/tuned-adm
%exclude %{_prefix}/lib/tuned/default
%exclude %{_prefix}/lib/tuned/desktop-powersave
%exclude %{_prefix}/lib/tuned/laptop-ac-powersave
%exclude %{_prefix}/lib/tuned/server-powersave
%exclude %{_prefix}/lib/tuned/laptop-battery-powersave
%exclude %{_prefix}/lib/tuned/enterprise-storage
%exclude %{_prefix}/lib/tuned/spindown-disk
%exclude %{_mandir}/man7/tuned-profiles-compat.7*
%{_prefix}/lib/tuned
%{_prefix}/lib/kernel/install.d/*tuned.*
%dir %{_sysconfdir}/tuned
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/active_profile
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/profile_mode
%config(noreplace) %{_sysconfdir}/tuned/tuned-main.conf
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/bootcmdline
%config(noreplace) %{_sysconfdir}/tuned/cpu-partitioning-variables.conf
%config(noreplace) %{_sysconfdir}/tuned/realtime-variables.conf
%config(noreplace) %{_sysconfdir}/tuned/realtime-virtual-guest-variables.conf
%config(noreplace) %{_sysconfdir}/tuned/realtime-virtual-host-variables.conf
%config(noreplace) %verify(not size mtime md5) %{_sysconfdir}/tuned/post_loaded_profile
%{_sysconfdir}/dbus-1/system.d/com.redhat.tuned.conf
%verify(not size mtime md5) %{_sysconfdir}/modprobe.d/tuned.conf
%{_tmpfilesdir}/tuned.conf
%{_unitdir}/tuned.service
%{_presetdir}/86-tuned.preset
%{_libexecdir}/tuned/defirqaffinity.py
%{_libexecdir}/tuned/__pycache__/defirqaffinity.*
%dir %{_localstatedir}/log/tuned
%dir /run/tuned
%{_mandir}/man5/tuned*
%{_mandir}/man7/tuned-profiles*
%{_mandir}/man8/tuned*
%{_sysconfdir}/grub.d/00_tuned
%{_datadir}/polkit-1/actions/com.redhat.tuned.policy

%post
# try to autodetect the best profile for the system in case there is none preset
if [ ! -f %{_sysconfdir}/tuned/active_profile -o -z "`cat %{_sysconfdir}/tuned/active_profile 2>/dev/null`" ]
then
	PROFILE=`%{_sbindir}/tuned-adm recommend 2>/dev/null`
	[ "$PROFILE" ] || PROFILE=balanced
	%{_sbindir}/tuned-adm profile "$PROFILE" 2>/dev/null || echo -n "$PROFILE" > %{_sysconfdir}/tuned/active_profile
fi

# convert active_profile from full path to name (if needed)
sed -e 's|.*/\([^/]\+\)/[^\.]\+\.conf|\1|' -i %{_sysconfdir}/tuned/active_profile

%systemd_post %{name}

%preun
%systemd_preun %{name}

#----------------------------------------------------------------------------

%package gtk
Summary:	GTK GUI for tuned
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}
Requires:	polkit
Requires:	powertop
Requires:	python3-gi

%description gtk
GTK GUI that can control tuned and provide simple profile editor.

%files gtk
%{_sbindir}/tuned-gui
%{python3_sitelib}/tuned/gtk
%{_datadir}/tuned/ui
%{_iconsdir}/hicolor/scalable/apps/tuned.svg
%{_datadir}/applications/tuned-gui.desktop

#----------------------------------------------------------------------------

%package profiles-compat
Summary:	Additional tuned profiles mainly for backward compatibility with tuned 1.0
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}

%description profiles-compat
Additional tuned profiles mainly for backward compatibility with tuned 1.0.
It can be also used to fine tune your system for specific scenarios.

%files profiles-compat
%{_prefix}/lib/tuned/default
%{_prefix}/lib/tuned/desktop-powersave
%{_prefix}/lib/tuned/laptop-ac-powersave
%{_prefix}/lib/tuned/server-powersave
%{_prefix}/lib/tuned/laptop-battery-powersave
%{_prefix}/lib/tuned/enterprise-storage
%{_prefix}/lib/tuned/spindown-disk
%{_mandir}/man7/tuned-profiles-compat.7*

#----------------------------------------------------------------------------

%package utils
Summary:	Various tuned utilities
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}
Requires:	powertop

%description utils
This package contains utilities that can help you to fine tune and
debug your system and manage tuned profiles.

%files utils
%{_bindir}/powertop2tuned
%{_libexecdir}/tuned/pmqos-static*
%{_libexecdir}/tuned/__pycache__/pmqos-static*

#----------------------------------------------------------------------------
%package utils-systemtap
Summary:	Disk and net statistic monitoring systemtap scripts
Group:		System/Kernel and hardware
Requires:	%{name} = %{EVRD}
%ifarch %{x86_64} %{armx} %{ix86}
Requires:	systemtap
%endif

%description utils-systemtap
This package contains several systemtap scripts to allow detailed
manual monitoring of the system. Instead of the typical IO/sec it collects
minimal, maximal and average time between operations to be able to
identify applications that behave power inefficient (many small operations
instead of fewer large ones).

%files utils-systemtap
%doc doc/README.utils
%doc doc/README.scomes
%{_sbindir}/varnetload
%{_sbindir}/netdevstat
%{_sbindir}/diskdevstat
%{_sbindir}/scomes
%{_mandir}/man8/varnetload.*
%{_mandir}/man8/netdevstat.*
%{_mandir}/man8/diskdevstat.*
%{_mandir}/man8/scomes.*

#----------------------------------------------------------------------------

%prep
%setup -q
find . -name "*.py" |xargs 2to3 -w
# Python 3.x is WAY more picky about mixing tabs and spaces than 2.x
find . -name "*.py" |xargs sed -i -e 's,    ,	,g'
%apply_patches

%build
%make

%install
%makeinstall_std
rm -r %{buildroot}%{_docdir}/%{name}
#use python shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_sbindir}/tuned-gui
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_libexecdir}/tuned/{pmqos-static.py,defirqaffinity.py}

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-tuned.preset << EOF
enable tuned.service
EOF

# (tpg) install cpu governors's modules
install -D -m644 %{SOURCE1} %{buildroot}%{_sysconfdir}/modprobe.preload.d/governors

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20025 |21mr|tuscany-parent-2-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          tuscany-parent
Version:       2
Release:       19
Summary:       Apache Tuscany Project Parent
License:       ASL 2.0
Url:           http://tuscany.apache.org/
# svn export http://svn.apache.org/repos/asf/tuscany/tags/java/pom/parent/2 tuscany-parent-2
# tar czf tuscany-parent-2-src-svn.tar.gz tuscany-parent-2
Source0:       %{name}-%{version}-src-svn.tar.gz
# tuscany-parent package don't include the license file
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: maven-install-plugin

# required by remote-resources-plugin
BuildRequires: mvn(org.apache.maven.shared:maven-artifact-resolver)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Parent POM defining settings that can be used across Tuscany.

%prep
%setup -q

cp -p %{SOURCE1} .
sed -i 's/\r//' LICENSE-2.0.txt

%pom_remove_plugin org.apache.maven.plugins:maven-pmd-plugin

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20026 |21mr|tuscany-sdo-java-1.1.1-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag %{nil}
%global namedversion %{version}%{?namedreltag}
%global api_version 2.1
%global api_name tuscany-sdo-api-r%{api_version}

Name:          tuscany-sdo-java
Version:       1.1.1
Release:       21
Summary:       Service Data Objects 2.1 Java API spec
License:       ASL 2.0
Url:           http://tuscany.apache.org/sdo-java.html
Source0:       ftp://ftp.gbnet.net/pub/apache/dist/tuscany/java/sdo/%{version}/apache-tuscany-sdo-%{version}-src.tar.gz

BuildRequires: mvn(junit:junit)
BuildRequires: maven-local
BuildRequires: maven-assembly-plugin
BuildRequires: maven-plugin-bundle
# required by plugin-bundle
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
SDO is a framework for data application development, which
includes an architecture and API. SDO does the following:

- Simplifies the J2EE data programming model
- Abstracts data in a service oriented architecture (SOA)
- Unifies data application development
- Supports and integrates XML
- Incorporates J2EE patterns and best practices

With SDO, you do not need to be familiar with a
technology-specific API in order to access and utilize data.
You need to know only one API, the SDO API, which lets you
work with data from multiple data sources, including
relational databases, entity EJB components, XML pages, Web
services, the Java Connector Architecture, JavaServer Pages
pages, and more.

This package contains only a Java API of SDO 2.1 spec.
EclipseLink is a implementation of this spec.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n tuscany-sdo-%{version}-src

%pom_disable_module lib
%pom_disable_module impl
%pom_disable_module tools
%pom_disable_module plugin
%pom_disable_module sample
%pom_disable_module distribution
%pom_disable_module java5tools

%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-javadoc-plugin sdo-api

sed -i 's|<artifactId>tuscany-sdo-api-r${specVersion}</artifactId>|<artifactId>%{api_name}</artifactId>|' $( find . -iname "pom.xml")

sed -i 's|pom.name|project.name|' sdo-api/pom.xml
sed -i 's|pom.description|project.description|' sdo-api/pom.xml
sed -i 's|pom.organization.name|project.organization.name|' sdo-api/pom.xml
%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:artifactId='tuscany-sdo-api-r2.1']/pom:version" '
${project.version}'

sed -i 's/\r//' LICENSE NOTICE README RELEASE_NOTES

# RHBZ #842622
sed -i 's#<source>1.4</source>#<source>1.5</source>#' pom.xml sdo-api/pom.xml
sed -i 's#<target>1.4</target>#<target>1.5</target>#' pom.xml sdo-api/pom.xml

%mvn_file :%{api_name} %{name}
%mvn_file :%{api_name} tuscany-sdo-api

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README RELEASE_NOTES
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20027 |21mr|twm-1.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tab Window Manager for the X Window System
Name:		twm
Version:	1.0.11
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org/releases/individual/app
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
Source1:	system.twmrc
Source2:	twm.xpm
Source3:	twm.xpm.large
Source4:	twm.xpm.mini
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xt)
Requires:	desktop-common-data
Requires:	x11-font-misc

%description
Twm is a window manager for the X Window System. It provides titlebars, shaped
windows, several forms of icon management, user-defined macro functions,
click-to-type and pointer-driven keyboard focus, and user-specified key and
pointer button bindings.

%files
%doc ChangeLog README.md
%license COPYING
%config(noreplace) %{_sysconfdir}/X11/%{name}
%{_bindir}/%{name}
%{_datadir}/icons/%{name}.xpm
%{_datadir}/icons/*/%{name}.xpm
%{_datadir}/X11/%{name}/system.%{name}rc
%{_mandir}/man1/%{name}.*

#------------------------------------------------------------------

%prep
%setup -q

%build

CFLAGS="$RPM_OPT_FLAGS -DSYSTEM_INIT_FILE='\"%{_sysconfdir}/X11/%{name}/system.%{name}rc\"'" \
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

mkdir -p %{buildroot}/%{_sysconfdir}/X11/%{name}
install -m 644 %{SOURCE1} %{buildroot}/%{_sysconfdir}/X11/%{name}/system.%{name}rc-menu

#install icons
mkdir -p %{buildroot}%{_datadir}/icons/large
mkdir -p %{buildroot}%{_datadir}/icons/mini
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/%{name}.xpm
install -m0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/large/%{name}.xpm
install -m0644 %{SOURCE4} %{buildroot}%{_datadir}/icons/mini/%{name}.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20028 |21mr|twolame-0.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Optimized MPEG Audio Layer 2 (MP2) encoder
Name:		twolame
Version:	0.4.0
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.twolame.org/
Source0:	http://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	dos2unix
BuildRequires:	libtool
BuildRequires:	pkgconfig(sndfile)

%description
TwoLAME is an optimized MPEG Audio Layer 2 (MP2) encoder based on tooLAME by
Mike Cheng, which in turn is based upon the ISO dist10 code and portions of
LAME.

Features added to TwoLAME:
 - Fully thread-safe
 - Static and shared library (libtwolame)
 - API very similar to LAME's (for easy porting)
 - C99 compliant
 - Frontend supports wider range of input files (using libsndfile)

%files
%doc AUTHORS ChangeLog README
%{_bindir}/twolame
%{_mandir}/man1/twolame.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	TwoLAME MP2 encoding library
Group:		System/Libraries

%description -n %{libname}
TwoLAME MP2 encoding library.

%files -n %{libname}
%{_libdir}/libtwolame.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for TwoLAME library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
TwoLAME is an optimized MPEG Audio Layer 2 (MP2) encoder based on tooLAME by
Mike Cheng, which in turn is based upon the ISO dist10 code and portions of
LAME.

Features added to TwoLAME:
 - Fully thread-safe
 - Static and shared library (libtwolame)
 - API very similar to LAME's (for easy porting)
 - C99 compliant
 - Frontend supports wider range of input files (using libsndfile)

This package contains the static development library and header files for the
TwoLAME library.

%files -n %{devname}
%doc doc/html/*
%{_includedir}/twolame.h
%{_libdir}/libtwolame.so
%{_libdir}/pkgconfig/twolame.pc

#----------------------------------------------------------------------------

%prep
%setup -q
sed -i -e 's/-O3//' configure.ac

# strip away annoying ^M
find -type f | grep -v ".gif" | grep -v ".png" | grep -v ".jpg" | xargs dos2unix

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%makeinstall_std

rm -rf %{buildroot}%{_docdir}/twolame

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20029 |21mr|txt2man-1.5.6-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts flat ASCII text to man page format
Name:     	txt2man
Version:	1.5.6
Release:	5
License:	GPLv2+
Group:		Text tools
Source0: 	http://mvertes.free.fr/download/%{name}-%{version}.tar.gz
URL:		http://mvertes.free.fr/download/
Buildarch:	noarch
Requires:	gawk

%description
It is a shell script using gnu awk, that should run on any Unix-like
system. The syntax of the ASCII text is very straightforward and looks
very much like the output of the man(1) program.

%prep
%setup -q

%install
rm -rf %buildroot

mkdir -p %buildroot%_bindir
install -m0755 *man %buildroot%_bindir/

mkdir -p %buildroot%_mandir/man1
install -m0644 *.1 %buildroot%{_mandir}/man1/

%clean
rm -rf %buildroot

%files
%defattr(-, root, root)
%{_bindir}/*
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20030 |21mr|txt2tags-3.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Converts text files to HTML, XHTML, sgml, LaTeX, man, etc
Name:		txt2tags
Version:	3.9
Release:	2
License:	GPL
Group:		Text tools
Url:		https://txt2tags.org
Source0:	https://github.com/txt2tags/txt2tags/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	gettext
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(python3)
BuildArch:	noarch

%description
Txt2tags is a generic text converter. From a simple text file with minimal
markup, it generates documents on the following formats: HTML, XHTML, sgml,
LaTeX, Lout, man, Magic Point (mgp), MoinMoin and Adobe PageMaker. Supports
heading, font beautifiers, verbatim, quote, link, lists, table and image.
There are GUI, Web and cmdline interfaces. It's a single Python script and
no external commands or libraries are needed.

%files
%doc CHANGELOG.md docs extras samples README.md
%license COPYING
%{_bindir}/%{name}
%{python3_sitelib}/%{name}-%{version}-py*.egg-info
%{python3_sitelib}/%{name}.py
%{python3_sitelib}/__pycache__/*

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%py3_build

%install
%py3_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20031 |21mr|txw2-20110809-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: txw2
Version: 20110809
Release: 20
Summary: Typed XML writer for Java
License: CDDL-1.1 and GPLv2 with exceptions
URL: https://txw.dev.java.net

# svn export https://svn.java.net/svn/jaxb~version2/tags/txw2-project-20110809/ txw2-20110809
# tar -zcvf txw2-20110809.tar.gz txw2-20110809
Source0: %{name}-%{version}.tar.gz

# Remove the reference to the parent net.java:jvnet-parent, as no package
# contains that artifact:
Patch0: %{name}-%{version}-pom.patch

# Update to use the version of args4j available in the distribution:
Patch1: %{name}-%{version}-args4j.patch

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(args4j:args4j)
BuildRequires:  mvn(com.sun.codemodel:codemodel)
BuildRequires:  mvn(com.sun.xsom:xsom)
BuildRequires:  mvn(javax.xml.stream:stax-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.kohsuke.rngom:rngom)
BuildRequires:  mvn(relaxngDatatype:relaxngDatatype)

%description
Typed XML writer for Java.

%package javadoc
Summary: Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc license.txt

%files javadoc -f .mfiles-javadoc
%doc license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20032 |21mr|tycho-1.3.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

# Tycho depends on itself, and Eclipse to build but in certain cases these
# requirements may not be satisfiable then building Tycho becomes problematic.
# For example:
# * A library (in Fedora) used by Tycho's runtime broke API and so Tycho
#   from the buildroot is broken
# * Building into a new distro or buildroot, where neither Tycho nor Eclipse
#   is available yet and we need to build Tycho before building Eclipse
# In bootstrap mode, javac and plain xmvn are used to build a subset of
# Tycho such that it can build a bootstrap mode Eclipse and subsequently
# fully rebuild itself. In this mode, there may be reduced functionality,
# so a full non-bootstrap mode build should always be done afterwards.
%bcond_with bootstrap

# Allow conditionally building without Junit 5 support
%bcond_without junit5

# Release tags or git SHAs
%global git_tag tycho-%{version}
%global fp_p2_git_tag 290f67a4c717599b2f5166ea89aa5365571314b1

%global fp_p2_version 0.0.1
%global fp_p2_snap -SNAPSHOT

# The location of the xmvn dir into which we need to install the xmvn plugin
%global xmvn_libdir %(realpath $(dirname $(readlink -f $(which xmvn)))/../lib)

%define __requires_exclude osgi*

Name:           tycho
Version:        1.3.0
Release:        4
Summary:        Plugins and extensions for building Eclipse plugins and OSGI bundles with Maven
Group:          Development/Java
# license file is missing but all files having some licensing information are ASL 2.0
License:        ASL 2.0 and EPL-1.0
URL:            http://eclipse.org/tycho

# Tycho project source
Source0:        http://git.eclipse.org/c/tycho/org.eclipse.tycho.git/snapshot/org.eclipse.tycho-%{git_tag}.tar.xz
# Eclipse Plugin Project supporting filesystem as p2 repository
Source1:        https://github.com/rgrunber/fedoraproject-p2/archive/%{fp_p2_git_tag}/fedoraproject-p2-%{fp_p2_git_tag}.tar.gz

# this is a workaround for maven-plugin-plugin changes that happened after
# version 2.4.3 (impossible to have empty mojo created as aggregate). This
# should be fixed upstream properly
Source2:        EmptyMojo.java
Source3:        tycho-scripts.sh
Source4:        tycho-bootstrap.sh
Source5:        tycho-debundle.sh
# Script that can be used to install or simulate installation of P2
# artifacts. It is used in OSGi requires generation.
Source6:        p2-install.sh

# Fedora Eclipse bundles needed to build Tycho when Eclipse is not present
# or when the Eclipse that is present is not compatible
%if %{with bootstrap}
Source10:       eclipse-bootstrap-photon.tar.xz
%endif

# Fedora-specific patches
Patch0:         0001-Fix-the-Tycho-build-to-work-on-Fedora.patch
Patch1:         0002-Implement-a-custom-resolver-for-Tycho-in-local-mode.patch
Patch2:         0003-Tycho-should-always-delegate-artifact-resolution-to-.patch
# Submitted upstream: https://bugs.eclipse.org/bugs/show_bug.cgi?id=537963
Patch3:         0004-Bug-537963-Make-the-default-EE-Java-1.8.patch
# Merged upstream: https://git.eclipse.org/c/tycho/org.eclipse.tycho.git/commit/?id=a437fb8870761d733199392f25a8c0e4f34caae9
Patch4:         0005-Bug-543850-Update-artifactcomparator-asm-dep-to-7.0.patch
# Port to latest version of Mockito 2.x
Patch5:         0006-Port-to-latest-versio-of-Mockito.patch

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(biz.aQute.bnd:bnd-maven-plugin)
BuildRequires:  mvn(com.beust:jcommander)
BuildRequires:  mvn(de.pdark:decentxml)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.commons:commons-compress)
BuildRequires:  mvn(org.apache.commons:commons-exec)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-compat)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-clean-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-install-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.apache.maven.shared:maven-verifier)
BuildRequires:  mvn(org.apache.maven.surefire:maven-surefire-common)
BuildRequires:  mvn(org.apache.maven.surefire:surefire-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-api)
BuildRequires:  mvn(org.codehaus.plexus:plexus-compiler-manager)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.codehaus.plexus:plexus-container-default)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.eclipse.jdt:ecj)
BuildRequires:  mvn(org.fedoraproject.xmvn:xmvn-api)
BuildRequires:  mvn(org.fedoraproject.xmvn:xmvn-core)
BuildRequires:  mvn(org.fedoraproject.xmvn:xmvn-install)
BuildRequires:  mvn(org.fedoraproject.xmvn:xmvn-parent:pom:)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(org.ow2.asm:asm-tree)
BuildRequires:  mvn(org.ow2.asm:asm-util)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  zip
%if %{with junit5}
BuildRequires:  mvn(org.apache.maven.surefire:surefire-junit-platform)
BuildRequires:  mvn(org.apiguardian:apiguardian-api)
BuildRequires:  mvn(org.opentest4j:opentest4j)
%endif

%if ! %{with bootstrap}
# Ordinarily Tycho additionally requires itself and Eclipse to build
BuildRequires:  %{name}
BuildRequires:  eclipse-platform >= 1:4.11
%else
# For bootstrapping, we just need the dependencies of the Eclipse bundles we use
BuildRequires:  osgi(com.ibm.icu)
BuildRequires:  osgi(org.apache.commons.jxpath)
BuildRequires:  osgi(org.apache.batik.css)
BuildRequires:  osgi(org.kxml2)
BuildRequires:  osgi(org.sat4j.core)
BuildRequires:  osgi(org.sat4j.pb)
BuildRequires:  osgi(org.w3c.css.sac)
BuildRequires:  osgi(javax.servlet-api)
BuildRequires:  osgi(javax.servlet.jsp)
%endif

Requires:       maven-local
Requires:       xmvn-minimal >= 3
Requires:       ecj >= 1:4.7.3a-1

%if ! %{with bootstrap}
Requires:       eclipse-platform >= 1:4.11
%endif

# maven-clean-plugin is bound to "initialize" Maven phase for
# "eclipse-repository" projects
Requires:       maven-clean-plugin

%description
Tycho is a set of Maven plugins and extensions for building Eclipse
plugins and OSGI bundles with Maven. Eclipse plugins and OSGI bundles
have their own metadata for expressing dependencies, source folder
locations, etc. that are normally found in a Maven POM. Tycho uses
native metadata for Eclipse plugins and OSGi bundles and uses the POM
to configure and drive the build. Tycho supports bundles, fragments,
features, update site projects and RCP applications. Tycho also knows
how to run JUnit test plugins using OSGi runtime and there is also
support for sharing build results using Maven artifact repositories.

Tycho plugins introduce new packaging types and the corresponding
lifecycle bindings that allow Maven to use OSGi and Eclipse metadata
during a Maven build. OSGi rules are used to resolve project
dependencies and package visibility restrictions are honored by the
OSGi-aware JDT-based compiler plugin. Tycho will use OSGi metadata and
OSGi rules to calculate project dependencies dynamically and injects
them into the Maven project model at build time. Tycho supports all
attributes supported by the Eclipse OSGi resolver (Require-Bundle,
Import-Package, Eclipse-GenericRequire, etc). Tycho will use proper
classpath access rules during compilation. Tycho supports all project
types supported by PDE and will use PDE/JDT project metadata where
possible. One important design goal in Tycho is to make sure there is
no duplication of metadata between POM and OSGi metadata.

%package javadoc
Summary: Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n org.eclipse.tycho-%{git_tag} -a 1
mv fedoraproject-p2-%{fp_p2_git_tag} fedoraproject-p2

%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1

# Unneeded for RPM builds
%pom_remove_plugin :maven-site-plugin

%if %{without junit5}
%pom_disable_module org.eclipse.tycho.surefire.junit5 tycho-surefire
%pom_remove_dep ":org.eclipse.tycho.surefire.junit5" tycho-surefire/tycho-surefire-plugin
%endif

# Move from org.sonatype.aether to org.eclipse.aether
find . -name "*.java" | xargs sed -i 's/org.sonatype.aether/org.eclipse.aether/g'
find . -name "*.java" | xargs sed -i 's/org.eclipse.aether.util.DefaultRepositorySystemSession/org.eclipse.aether.DefaultRepositorySystemSession/g'
sed -i 's/public int getPriority/public float getPriority/g' tycho-core/src/main/java/org/eclipse/tycho/core/p2/P2RepositoryConnectorFactory.java

# place empty mojo in place
mkdir -p tycho-maven-plugin/src/main/java/org/fedoraproject
pushd tycho-maven-plugin/src/main/java/org/fedoraproject
cp %{SOURCE2} .
popd

# These units cannot be found during a regular build
sed -i '/^<unit id=.*$/d' tycho-bundles/tycho-bundles-target/tycho-bundles-target.target

# we don't have org.apache.commons:commons-compress:jar:sources
%pom_xpath_remove "pom:dependency[pom:classifier='sources' and pom:artifactId='commons-compress']" tycho-p2/tycho-p2-director-plugin

# Previously, JUnit would re-export Hamcrest
# Now modules using org.hamcrest.core must state the requirement explicitly
for mod in tycho-bundles/org.eclipse.tycho.{p2.{maven.repository.tests,resolver.impl.test,tools.tests},test.utils,core.shared.tests}; do
  sed -i 's/^Require-Bundle://
          /org\.junit/ i Require-Bundle: org.hamcrest.core,' \
          $mod/META-INF/MANIFEST.MF
done

# Use tycho-testing-harness from the reactor
sed -i -e '/tycho-testing-harness/a<version>${project.version}</version>' tycho-surefire/tycho-surefire-plugin/pom.xml

# Bootstrap Build
%if %{with bootstrap}

# Break circular dep between tycho-lib-detector and tycho-compiler-jdt for bootstrapping
%pom_xpath_remove "pom:compilerId" tycho-lib-detector
%pom_remove_dep "org.eclipse.tycho:tycho-compiler-jdt" tycho-lib-detector

# Don't build tests when bootstrapping
for b in core.shared.tests p2.resolver.impl.test p2.resolver.shared.tests p2.maven.repository.tests p2.tools.tests test.utils ; do
  %pom_disable_module org.eclipse.tycho.$b tycho-bundles
done
%pom_disable_module org.fedoraproject.p2.tests fedoraproject-p2
%pom_remove_dep -r :::test

# Unpack a compatible version of Eclipse we can use to build against
tar -xf %{SOURCE10}
# Install OSGi bundles into local repo to override any incompatible system version
# that may be already installed
pushd bootstrap
for f in usr/lib/eclipse/plugins/org.eclipse.osgi.compatibility.state_*.jar \
         usr/lib/eclipse/plugins/org.eclipse.osgi_*.jar ; do
  xmvn -o install:install-file -Dfile=$f -Dpackaging=jar -DgroupId=org.eclipse.tycho -Dmaven.repo.local=$(pwd)/../.m2 \
    -DartifactId=$(echo $(basename $f) | cut -d_ -f1) -Dversion=$(echo "${f%.jar}" | cut -d_ -f2)
done
popd

# Perform the 'minimal' (bootstrap) build of Tycho
cp %{SOURCE3} %{SOURCE4} .
./tycho-bootstrap.sh %{version}

# Non-Bootstrap Build
%else

# Set some temporary build version so that the bootstrapped build has
# a different version from the nonbootstrapped. Otherwise there will
# be cyclic dependencies.

sysVer=`grep -C 1 "<artifactId>tycho</artifactId>" %{_mavenpomdir}/tycho/tycho.pom | grep "version" | sed 's/.*>\(.*\)<.*/\1/'`
mkdir boot
sed -e 's/ns[0-9]://g' %{_datadir}/maven-metadata/tycho.xml > boot/tycho-metadata.xml

# Copy Tycho POMs from system repo and set their versions to %%{version}-SNAPSHOT.
for pom in $(grep 'pom</path>' boot/tycho-metadata.xml | sed 's|.*>\(.*\)<.*|\1|'); do
    sed -e "s/>$sysVer/>%{version}-SNAPSHOT/g" -e "s/%{fp_p2_version}%{fp_p2_snap}/%{fp_p2_version}/" <$pom >boot/$(basename $pom)
done

# Update Maven lifecycle mappings for Tycho packaging types provided by tycho-maven-plugin.
cp -p $(build-classpath tycho/tycho-maven-plugin) boot/tycho-maven-plugin.jar
jar xf boot/tycho-maven-plugin.jar META-INF/plexus/components.xml
sed -i s/$sysVer/%{version}-SNAPSHOT/ META-INF/plexus/components.xml
jar uf boot/tycho-maven-plugin.jar META-INF/plexus/components.xml

# Create XMvn metadata for the new JARs and POMs by customizing system Tycho metadata.
sed -i '
  s|>/[^<]*/\([^/]*\.pom\)</path>|>'$PWD'/boot/\1</path>|
  s|>'$sysVer'</version>|>%{version}-SNAPSHOT</version><compatVersions><version>%{version}-SNAPSHOT</version></compatVersions>|
  s|>'%{fp_p2_version}%{fp_p2_snap}'</version>|>%{fp_p2_version}</version><compatVersions><version>%{fp_p2_version}</version></compatVersions>|
  s|%{_javadir}/tycho/tycho-maven-plugin.jar|'$PWD'/boot/tycho-maven-plugin.jar|
' boot/tycho-metadata.xml
%mvn_config resolverSettings/metadataRepositories/repository $PWD/boot/tycho-metadata.xml
%endif

# Avoid duplicate execution of clean when generating javadocs, see ebz#399756
%pom_add_plugin :maven-clean-plugin tycho-bundles/tycho-standalone-p2-director "
<executions>
  <execution>
    <id>default-clean-1</id>
    <phase>initialize</phase>
    <configuration>
      <skip>true</skip>
    </configuration>
  </execution>
</executions>"

# Add fp-p2 to main build
%pom_xpath_inject "pom:modules" "<module>fedoraproject-p2</module>"

%build
%mvn_build -f -- \
  -Dtycho-version=%{version}-SNAPSHOT -DtychoBootstrapVersion=%{version}-SNAPSHOT \
  -Dmaven.repo.local=$(pwd)/.m2 -Dfedora.p2.repos=$(pwd)/bootstrap

%mvn_artifact fedoraproject-p2/org.fedoraproject.p2/pom.xml

# Relying on xmvn p2 plugin being present would be a circular dep
# So install as if all artifacts are normal jar files
sed -i -e 's|type>eclipse.*<|type>jar<|' .xmvn-reactor

# Don't package target platform definition files
%mvn_package "::target::" __noinstall
# Don't package fp-p2 tests
%mvn_package ":org.fedoraproject.p2.tests" __noinstall

%install
# Get debundling scripts
cp %{SOURCE3} %{SOURCE5} .

chmod a+x tycho-debundle.sh

%if ! %{with bootstrap}
# Debundle p2 runtime
./tycho-debundle.sh $(pwd)/tycho-bundles/tycho-bundles-external \
  $(pwd)/tycho-bundles/tycho-bundles-external/target/tycho-bundles-external-manifest.txt

# Debundle standalone p2 director
./tycho-debundle.sh $(pwd)/tycho-bundles/tycho-standalone-p2-director
%endif

%if %{with bootstrap}
# Install our own copy of OSGi runtime when bootstrapping to avoid external dep on Eclipse
for b in org.eclipse.osgi \
         org.eclipse.osgi.compatibility.state ; do
  osgiJarPath=$(find .m2/org/eclipse/tycho/$b/*/ -name "*.jar")
  osgiPomPath=$(find .m2/org/eclipse/tycho/$b/*/ -name "*.pom")
  %mvn_artifact $osgiPomPath $osgiJarPath
  %mvn_alias "org.eclipse.tycho:$b" "org.eclipse.osgi:$b"
done
%endif

%mvn_install

%if ! %{with bootstrap}
install -pm 644 tycho-bundles/tycho-bundles-external/target/tycho-bundles-external-manifest.txt %{buildroot}%{_javadir}/tycho
%add_maven_depmap org.eclipse.tycho:tycho-bundles-external:txt:manifest:%{version} tycho/tycho-bundles-external-manifest.txt
%endif

%if %{with bootstrap}
# Misc other bundles needed for bootstrapping
for bnd in \
  core.contenttype \
  core.expressions \
  core.filesystem \
  core.jobs \
  core.net \
  core.resources \
  core.runtime \
  equinox.app \
  equinox.common \
  equinox.concurrent \
  equinox.preferences \
  equinox.registry \
  equinox.security ; do
bndJarPath=$(find bootstrap -name "org.eclipse.${bnd}_*.jar")
install -m 644 -T $bndJarPath $RPM_BUILD_ROOT%{_javadir}/tycho/$bnd.jar
done
%endif

# For some reason fp-p2 is treated as a compat version, this prevents that
# TODO: figure out why
sed -i '/<resolvedVersion>/d' %{buildroot}%{_datadir}/maven-metadata/tycho.xml

# p2-install script
install -dm 755 %{buildroot}%{_javadir}-utils/
install -pm 755 %{SOURCE6} %{buildroot}%{_javadir}-utils/

# Symlink XMvn P2 plugin with all dependencies so that it can be loaded by XMvn
install -dm 755 %{buildroot}%{xmvn_libdir}/installer/
%if %{with bootstrap}
ln -s %{_javadir}/tycho/org.eclipse.osgi.jar %{buildroot}%{xmvn_libdir}/installer/
%else
ln -s %{_javadir}/eclipse/osgi.jar %{buildroot}%{xmvn_libdir}/installer/
%endif
ln -s %{_javadir}/tycho/xmvn-p2-installer-plugin.jar %{buildroot}%{xmvn_libdir}/installer/
ln -s %{_javadir}/tycho/org.fedoraproject.p2.jar %{buildroot}%{xmvn_libdir}/installer/

%files -f .mfiles
%{xmvn_libdir}/installer/*
%{_javadir}-utils/p2-install.sh
%if %{with bootstrap}
%{_javadir}/tycho/core.*.jar
%{_javadir}/tycho/equinox.*.jar
%endif
%doc README.md

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20033 |21mr|tycho-extras-1.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The location of the xmvn dir into which we need to install the xmvn plugin
%global xmvn_libdir %(realpath $(dirname $(readlink -f $(which xmvn)))/../lib)

Name:           tycho-extras
Version:        1.3.0
Release:        3
Summary:        Additional plugins for Tycho
Group:          Development/Java
License:        EPL-1.0
URL:            http://eclipse.org/tycho/
Source0:        http://git.eclipse.org/c/tycho/org.eclipse.tycho.extras.git/snapshot/org.eclipse.tycho.extras-tycho-extras-%{version}.tar.xz
Patch0:         %{name}-fix-build.patch
Patch1:         %{name}-use-custom-resolver.patch
#https://git.eclipse.org/r/#/c/75453/
Patch2:         fix-xmvn-pomless-builddep.patch

BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# Upstream Eclipse no longer supports non-64bit arches
ExcludeArch: s390 %{arm} %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(io.takari.polyglot:polyglot-common)
BuildRequires:  mvn(org.apache.commons:commons-lang3)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-model)
BuildRequires:  mvn(org.apache.maven:maven-model-builder)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
BuildRequires:  mvn(org.eclipse.jgit:org.eclipse.jgit)
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.tycho.core.shared)
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.tycho.p2.resolver.shared)
BuildRequires:  mvn(org.eclipse.tycho:sisu-equinox-launching)
BuildRequires:  mvn(org.eclipse.tycho:tycho-core)
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-facade)
BuildRequires:  mvn(org.eclipse.tycho:tycho-packaging-plugin)
BuildRequires:  mvn(org.fedoraproject.p2:org.fedoraproject.p2)

%description
A small set of plugins that work with Tycho to provide additional functionality
when building projects of an OSGi nature.


%package javadoc
Summary:        Java docs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n org.eclipse.tycho.extras-tycho-extras-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1

# Plugins not needed for RPM builds
%pom_remove_plugin :maven-site-plugin

# maven-properties-plugin is only needed for tests
%pom_remove_plugin org.eclipse.m2e:lifecycle-mapping
%pom_remove_plugin org.sonatype.plugins:maven-properties-plugin tycho-p2-extras-plugin
# remove org.apache.maven:apache-maven zip
%pom_remove_dep org.apache.maven:apache-maven tycho-p2-extras-plugin
%pom_add_dep org.fedoraproject.p2:org.fedoraproject.p2 tycho-eclipserun-plugin/pom.xml

%mvn_alias :{*} org.eclipse.tycho:@1

%build
# To run tests, we need :
# maven-properties-plugin (unclear licensing)
%mvn_build -f

%install
%mvn_install

# Install extension JAR with deps into XMvn ext directory
install -d -m 755 %{buildroot}%{xmvn_libdir}/ext/
ln -s %{_javadir}/%{name}/tycho-pomless.jar %{buildroot}%{xmvn_libdir}/ext/
ln -s %{_javadir}/tesla-polyglot/polyglot-common.jar %{buildroot}%{xmvn_libdir}/ext/

%files -f .mfiles
%{xmvn_libdir}/ext/*

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20034 |21mr|typesafe-config-1.2.0-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          typesafe-config
Version:       1.2.0
Release:       14
Summary:       Configuration library for JVM languages
License:       ASL 2.0
Group:         Development/Java
URL:           https://github.com/typesafehub/config/
Source0:       https://github.com/typesafehub/config/archive/v%{version}.tar.gz
Source1:       typesafe-config.bnd

BuildRequires: aqute-bnd
BuildRequires: javapackages-local
BuildRequires: sbt

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Configuration library for JVM languages.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n config-%{version}

rm -f project/plugins.sbt

sed -i -e '/SbtOsgi/d' project/Build.scala
sed -i -e '/OsgiKeys/d' project/Build.scala
sed -i -e 's/osgiSettings [+][+]//g' project/Build.scala
sed -i -e '/override val settings/d' project/Build.scala

sed -i -e '/de.johoop/d' config/build.sbt
sed -i -e '/JacocoPlugin/d' config/build.sbt
sed -i -e '/findbugs/,+2d' config/build.sbt
sed -i -e '/jacoco/,+2d' config/build.sbt

sed -i -e '/% "test"$/,+2d' config/build.sbt

sed -i -e '/com.typesafe.sbt/d' build.sbt
sed -i -e '/SbtGit/,+2d' build.sbt
sed -i -e '/useGpg/,+2d' build.sbt
sed -i -e '/publishSigned/,+2d' build.sbt
sed -i -e '/publishLocalSigned/,+2d' build.sbt

sed -i -e 's/2[.]10[.][0-2]/2.10.6/' build.sbt

sed -i -e 's/Some("1[.]6")/Some("1.8")/' project/JavaVersionCheck.scala

for buildsbt in $(find . -name build.sbt) ; do
    (echo ; echo ; echo 'version := "%{version}"'; echo) >> $buildsbt
done

# missing test deps
rm -rf config/src/test

cp -r /usr/share/sbt/ivy-local .
mkdir boot

%mvn_file com.typesafe:config %{name}

%build
export SBT_BOOT_DIR=$PWD/boot
export SBT_IVY_DIR=$PWD/ivy-local

#sbt package "set publishTo in Global := Some(Resolver.file(\"published\", file(\"published\"))(Resolver.ivyStylePatterns) ivys \"$(pwd)/published/[organization]/[module]/[revision]/ivy.xml\" artifacts \"$(pwd)/published/[organization]/[module]/[revision]/[artifact]-[revision].[ext]\")" publish makePom
sbt package makePom deliverLocal doc

bnd wrap -p %{SOURCE1} -o config/target/config.jar --version %{version} config/target/config-%{version}.jar

%install
%mvn_artifact config/target/config-%{version}.pom config/target/config.jar
%mvn_install -J config/target/api

%files -f .mfiles
%doc NEWS.md README.md
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20035 |21mr|tyrus-1.12-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          tyrus
Version:       1.12
Release:       10
Summary:       JSR 356: Java API for WebSocket - Reference Implementation
License:       CDDL and GPLv2 with exceptions
URL:           https://tyrus.java.net/
Source0:       https://github.com/tyrus-project/tyrus/archive/%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.sun.istack:istack-commons-maven-plugin)
BuildRequires: mvn(javax.ejb:javax.ejb-api)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(javax.websocket:javax.websocket-api)
BuildRequires: mvn(jline:jline)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.java:jvnet-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-framework)
BuildRequires: mvn(org.glassfish.grizzly:grizzly-http-server)
BuildRequires: mvn(org.jvnet.jaxb2.maven2:maven-jaxb22-plugin)
BuildRequires: mvn(org.osgi:org.osgi.core)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Tyrus is the open source JSR 356 - Java API for WebSocket reference
implementation for easy development of WebSocket applications.
WebSocket protocol defined by IETF provides bi-directional
communication between the server and the remote host. The pros
are mainly the ability to communicate both ways, low latency and
small communication overhead. Therefore Tyrus and WebSocket in
general are suitable for web applications that require sending a
huge volume of relatively small messages like online games or
market ticker broadcasting.

%package bom
Summary:       Tyrus BOM

%description bom
Tyrus Bill of Materials (BOM).

%package client
Summary:       Tyrus Client

%description client
Tyrus Client.

%package client-cli
Summary:       Tyrus CLI Client

%description client-cli
Tyrus CLI Client.

%package client-java8
Summary:       Tyrus Java8 Client Extension

%description client-java8
Tyrus Java8 Client Extension.

%package container-glassfish-cdi
Summary:       Tyrus CDI Component Provider

%description container-glassfish-cdi
Tyrus CDI Component Provider.

%package container-glassfish-ejb
Summary:       Tyrus EJB Component Provider

%description container-glassfish-ejb
Tyrus EJB Component Provider.

%package containers-glassfish-project
Summary:       Tyrus Containers For Glassfish Parent POM

%description containers-glassfish-project
Tyrus Containers For Glassfish Parent POM.

%package container-grizzly-client
Summary:       Tyrus Grizzly Client Container

%description container-grizzly-client
Tyrus Grizzly Client Container.

%package container-grizzly-server
Summary:       Tyrus Grizzly Server Container

%description container-grizzly-server
Tyrus Grizzly Server Container.

%package container-inmemory
Summary:       Tyrus InMemory Container

%description container-inmemory
Tyrus InMemory Container.

%package container-jdk-client
Summary:       Tyrus JDK Client Container

%description container-jdk-client
Tyrus JDK Client Container.

%package containers-project
Summary:       Tyrus Container Modules Parent POM

%description containers-project
Tyrus Container Modules Parent POM.

%package container-servlet
Summary:       Tyrus Servlet Container

%description container-servlet
Tyrus Servlet Container.

%package core
Summary:       Tyrus Core
# BSD: core/src/main/java/org/glassfish/tyrus/core/Base64Utils.java
License:       (CDDL and GPLv2 with exceptions) and BSD

%description core
Tyrus Core.

%package extension-deflate
Summary:       Tyrus Extension - Per Message Deflate

%description extension-deflate
Tyrus Extension - Per Message Deflate.

%package extensions-project
Summary:       Tyrus Extension Modules Parent POM

%description extensions-project
Tyrus Extension Modules Parent POM.

%package monitoring-jmx
Summary:       Tyrus Monitoring JMX

%description monitoring-jmx
Tyrus Monitoring JMX.

%package project
Summary:       Tyrus Parent POM

%description project
Tyrus Parent POM.

%package server
Summary:       Tyrus Server

%description server
Tyrus Server.

%package spi
Summary:       Tyrus Container SPI

%description spi
Tyrus Container SPI.

%package test-tools
Summary:       Tyrus Test Tools

%description test-tools
Tyrus Test Tools.

%package tests-project
Summary:       Tyrus Tests Parent POM

%description tests-project
Tyrus Tests Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
find  -name "*.class"  -print -delete
find  -name "*.jar"  -print -delete

# Unsupported features
%pom_disable_module archetypes
# Unwanted features
%pom_disable_module bundles
# Unavailable plugin com.agilejava.docbkx:docbkx-maven-plugin:2.0.15
%pom_disable_module docs
# Unsupported features: war
%pom_disable_module samples
# Unavailable dep: org.json:json:20090211
%pom_disable_module e2e tests
# Unsupported features: war
%pom_disable_module servlet tests

# Broken build. This plugin need to be update https://bugzilla.redhat.com/show_bug.cgi?id=1031260
%pom_remove_plugin -r :maven-checkstyle-plugin
# Unneeded tasks
%pom_remove_plugin -r :maven-deploy-plugin
%pom_remove_plugin -r :maven-source-plugin
# Unavailable plugin
%pom_remove_plugin -r :glassfish-copyright-maven-plugin
# Do not bundle system libraries
%pom_remove_plugin -r :maven-shade-plugin

# Update plugin references
%pom_xpath_set -r "pom:plugin[pom:groupId = 'com.sun.istack' ]/pom:artifactId" istack-commons-maven-plugin

# Use maven system setting for javadoc generation
%pom_xpath_remove -r "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
%pom_remove_plugin :maven-javadoc-plugin containers/servlet

# javascript not allowed in javadoc
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration/pom:bottom"

# Prepare offline setting for generate java source code
cat > core/etc/bindings.cat << EOF
PUBLIC "-//W3C//DTD XMLSchema 200102//EN" "XMLSchema.dtd"
PUBLIC "XMLSchema" "XMLSchema.dtd"
SYSTEM "XMLSchema.dtd" "XMLSchema.dtd"

PUBLIC "datatypes" "datatypes.dtd"
SYSTEM "datatypes.dtd" "datatypes.dtd"

SYSTEM "xml.xsd" "xml.xsd"
EOF
rm -r core/etc/catalog.xml
sed -i 's|schemaLocation="http://www.w3.org/2001/xml.xsd"|schemaLocation="./xml.xsd"|' core/etc/wsadl.xsd

# Update plugin references
%pom_remove_plugin com.sun.tools.xjc.maven2: core
%pom_add_plugin "org.jvnet.jaxb2.maven2:maven-jaxb22-plugin:0.12.3" core '
<executions>
  <execution>
    <id>bindings</id>
    <phase>generate-sources</phase>
    <goals>
      <goal>generate</goal>
    </goals>
    <configuration>
      <generatePackage>org.glassfish.tyrus.core.wsadl.model</generatePackage>
      <catalog>${basedir}/etc/bindings.cat</catalog>
      <schemaDirectory>${basedir}/etc</schemaDirectory>
      <bindingDirectory>${basedir}</bindingDirectory>
      <bindingIncludes>
        <bindingInclude>wsadl.xsd</bindingInclude>
      </bindingIncludes>
      <forceRegenerate>false</forceRegenerate>
      <episode>true</episode>
      <specVersion>2.1</specVersion>
      <extension>true</extension>
      <strict>false</strict>
    </configuration>
  </execution>
</executions>'

%build

# Disable test suite. fails @ random on ARM builder 
%mvn_build -sf

%install
%mvn_install

%files bom -f .mfiles-%{name}-bom
%license LICENSE.txt LICENSE.html

%files client -f .mfiles-%{name}-client
%license LICENSE.txt LICENSE.html

%files client-cli -f .mfiles-%{name}-client-cli
%license LICENSE.txt LICENSE.html

%files client-java8 -f .mfiles-%{name}-client-java8
%license LICENSE.txt LICENSE.html

%files container-glassfish-cdi -f .mfiles-%{name}-container-glassfish-cdi
%license LICENSE.txt LICENSE.html

%files container-glassfish-ejb -f .mfiles-%{name}-container-glassfish-ejb
%license LICENSE.txt LICENSE.html

%files containers-glassfish-project -f .mfiles-%{name}-containers-glassfish-project
%license LICENSE.txt LICENSE.html

%files container-grizzly-client -f .mfiles-%{name}-container-grizzly-client
%license LICENSE.txt LICENSE.html

%files container-grizzly-server -f .mfiles-%{name}-container-grizzly-server
%license LICENSE.txt LICENSE.html

%files container-inmemory -f .mfiles-%{name}-container-inmemory
%license LICENSE.txt LICENSE.html

%files container-jdk-client -f .mfiles-%{name}-container-jdk-client
%license LICENSE.txt LICENSE.html

%files containers-project -f .mfiles-%{name}-containers-project
%license LICENSE.txt LICENSE.html

%files container-servlet -f .mfiles-%{name}-container-servlet
%license LICENSE.txt LICENSE.html

%files core -f .mfiles-%{name}-core
%license LICENSE.txt LICENSE.html

%files extension-deflate -f .mfiles-%{name}-extension-deflate
%license LICENSE.txt LICENSE.html

%files extensions-project -f .mfiles-%{name}-extensions-project
%license LICENSE.txt LICENSE.html

%files monitoring-jmx -f .mfiles-%{name}-monitoring-jmx
%license LICENSE.txt LICENSE.html

%files project -f .mfiles-%{name}-project
%license LICENSE.txt LICENSE.html

%files server -f .mfiles-%{name}-server
%license LICENSE.txt LICENSE.html

%files spi -f .mfiles-%{name}-spi
%doc README.md
%license LICENSE.txt LICENSE.html

%files test-tools -f .mfiles-%{name}-test-tools
%license LICENSE.txt LICENSE.html

%files tests-project -f .mfiles-%{name}-tests-project
%license LICENSE.txt LICENSE.html

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt LICENSE.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20036 |21mr|ua-parser-java-1.3.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname ua-parser
Name:          ua-parser-java
Version:       1.3.0
Release:       12
Summary:       Java implementation of user agent parser
License:       ASL 2.0
Group:         Development/Java
URL:           https://github.com/tobie/ua-parser/
Source0:       https://github.com/tobie/ua-parser/archive/java-%{version}.tar.gz

BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.yaml:snakeyaml)

BuildRequires: maven-local
BuildRequires: javapackages-tools >= 4.3.2-3
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This is the Java implementation of ua-parser. The
implementation uses the shared regex patterns and
overrides from regexes.yaml.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete
find . -name "*.exe" -print -delete
find . -name "*.dll" -print -delete

# Unwanted
%pom_remove_plugin :maven-source-plugin java

%build

cd java
%mvn_file :%{oname} %{oname}
%mvn_build

%install
cd java
%mvn_install

%files -f java/.mfiles
%doc java/README.md
%license java/LICENSE

%files javadoc -f java/.mfiles-javadoc
%license java/LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20037 |21mr|uboot-tools-2020.07-0.2.rc2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global candidate rc2

Name:      uboot-tools
Version:   2020.07
Release:   0.2%{?candidate:.%{candidate}}%{?dist}
Summary:   U-Boot utilities
License:   GPLv2+ BSD LGPL-2.1+ LGPL-2.0+
URL:       http://www.denx.de/wiki/U-Boot
Group:     System/Kernel and hardware

Source0:   ftp://ftp.denx.de/pub/u-boot/u-boot-%{version}%{?candidate:-%{candidate}}.tar.bz2
Source1:   arm-boards
Source2:   arm-chromebooks
Source3:   aarch64-boards
Source4:   aarch64-chromebooks
Source5:   10-devicetree.install

# Fedoraisms patches
# Needed to find DT on boot partition that's not the first partition
Patch1:    uefi-distro-load-FDT-from-any-partition-on-boot-device.patch
# Needed due to issues with shim
Patch2:    uefi-use-Fedora-specific-path-name.patch

# Board fixes and enablement
Patch4:    usb-kbd-fixes.patch
Patch5:    dragonboard-fixes.patch

# Tegra improvements
Patch10:   arm-tegra-define-fdtfile-option-for-distro-boot.patch
Patch11:   arm-add-BOOTENV_EFI_SET_FDTFILE_FALLBACK-for-tegra186-be.patch
# Rockchips improvements
Patch12:   arm-rk3399-enable-rng-on-rock960-and-firefly3399.patch
Patch13:   initial-support-for-the-Pinebook-Pro-laptop-from.patch
Patch14:   rockpro64-limit-speed-on-mSD-slot.patch
# AllWinner improvements
Patch15:   AllWinner-Pine64-bits.patch
# RPi4
Patch16:   USB-host-support-for-Raspberry-Pi-4-board-64-bit.patch
Patch17:   usb-xhci-Load-Raspberry-Pi-4-VL805-s-firmware.patch
Patch18:   rpi-Enable-using-the-DT-provided-by-the-Raspberry-Pi.patch
Patch19:   rpi4-enable-ARCH_FIXUP_FDT_MEMORY.patch
Patch20:   rpi4-Enable-support-for-the-XHCI-controller-on-RPI.patch

BuildRequires:  bc
BuildRequires:  dtc
BuildRequires:  make
BuildRequires:  python3-devel
BuildRequires:  python3-setuptools
BuildRequires:  python3-libfdt
BuildRequires:  flex bison
BuildRequires:  openssl-devel
BuildRequires:  SDL2-devel
BuildRequires:  swig
%ifarch %{armx}
BuildRequires:  vboot-utils
%endif
%ifarch aarch64
BuildRequires:  arm-trusted-firmware-armv8
%endif

Requires:       dtc
Requires:       systemd
%ifarch %{armx}
Obsoletes:      uboot-images-elf < 2019.07
Provides:       uboot-images-elf < 2019.07
%endif

%description
This package contains a few U-Boot utilities - mkimage for creating boot images
and fw_printenv/fw_setenv for manipulating the boot environment variables.

%ifarch aarch64
%package     -n uboot-images-armv8
Summary:     u-boot bootloader images for aarch64 boards
Requires:    uboot-tools
BuildArch:   noarch

%description -n uboot-images-armv8
u-boot bootloader binaries for aarch64 boards
%endif

%ifarch %{arm}
%package     -n uboot-images-armv7
Summary:     u-boot bootloader images for armv7 boards
Requires:    uboot-tools
BuildArch:   noarch

%description -n uboot-images-armv7
u-boot bootloader binaries for armv7 boards
%endif

%prep
%autosetup -p1 -n u-boot-%{version}%{?candidate:-%{candidate}}

cp %SOURCE1 %SOURCE2 %SOURCE3 %SOURCE4 .

%build
mkdir builds
%ifarch aarch64 %{arm}
for board in $(cat %{_arch}-boards)
do
  echo "Building board: $board"
  mkdir builds/$(echo $board)/
  # ATF selection, needs improving, suggestions of ATF SoC to Board matrix welcome
  sun50i=(a64-olinuxino amarula_a64_relic bananapi_m2_plus_h5 bananapi_m64 libretech_all_h3_cc_h5 nanopi_a64 nanopi_neo2 nanopi_neo_plus2 orangepi_pc2 orangepi_prime orangepi_win orangepi_zero_plus orangepi_zero_plus2 pine64-lts pine64_plus pinebook pinephone pinetab sopine_baseboard teres_i)
  if [[ " ${sun50i[*]} " == *" $board "* ]]; then
    echo "Board: $board using sun50i_a64"
    cp /usr/share/arm-trusted-firmware/sun50i_a64/* builds/$(echo $board)/
  fi
  sun50h6=(orangepi_lite2 orangepi_one_plus pine_h64)
  if [[ " ${sun50h6[*]} " == *" $board "* ]]; then
    echo "Board: $board using sun50i_h6"
    cp /usr/share/arm-trusted-firmware/sun50i_h6/* builds/$(echo $board)/
  fi
#  rk3328=(evb-rk3328 rock64-rk3328)
#  if [[ " ${rk3328[*]} " == *" $board "* ]]; then
#    echo "Board: $board using rk3328"
#    cp /usr/share/arm-trusted-firmware/rk3328/* builds/$(echo $board)/
#  fi
#  rk3399=(evb-rk3399 ficus-rk3399 firefly-rk3399 khadas-edge-captain-rk3399 khadas-edge-v-rk3399 khadas-edge-rk3399 nanopc-t4-rk3399 nanopi-m4-rk3399 nanopi-neo4-rk3399 orangepi-rk3399 pinebook-pro-rk3399 puma-rk3399 rock960-rk3399 rock-pi-4-rk3399 rockpro64-rk3399 roc-pc-rk3399)
#  if [[ " ${rk3399[*]} " == *" $board "* ]]; then
#    echo "Board: $board using rk3399"
#    cp /usr/share/arm-trusted-firmware/rk3399/* builds/$(echo $board)/
#  fi
  # End ATF
  make $(echo $board)_defconfig O=builds/$(echo $board)/
  make HOSTCC="%{__cc} $RPM_OPT_FLAGS" CROSS_COMPILE="" %{?_smp_mflags} V=1 O=builds/$(echo $board)/
done

%endif

make HOSTCC="%{__cc} $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" tools-only_defconfig V=1 O=builds/
make HOSTCC="%{__cc} $RPM_OPT_FLAGS" %{?_smp_mflags} CROSS_COMPILE="" tools-all V=1 O=builds/

%install
mkdir -p $RPM_BUILD_ROOT%{_bindir}
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}
mkdir -p $RPM_BUILD_ROOT%{_mandir}/man1
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/

%ifarch aarch64
for board in $(cat %{_arch}-boards)
do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/
 for file in u-boot.bin u-boot.dtb u-boot.img u-boot-dtb.img u-boot.itb u-boot-sunxi-with-spl.bin u-boot-rockchip.bin idbloader.img spl/boot.bin spl/sunxi-spl.bin
 do
  if [ -f builds/$(echo $board)/$(echo $file) ]; then
    install -p -m 0644 builds/$(echo $board)/$(echo $file) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/
  fi
 done
done
%endif

%ifarch %{arm}
for board in $(cat %{_arch}-boards)
do
mkdir -p $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/
 for file in MLO SPL spl/arndale-spl.bin spl/origen-spl.bin spl/*spl.bin u-boot.bin u-boot.dtb u-boot-dtb-tegra.bin u-boot.img u-boot.imx u-boot-spl.kwb u-boot-rockchip.bin u-boot-sunxi-with-spl.bin spl/boot.bin
 do
  if [ -f builds/$(echo $board)/$(echo $file) ]; then
    install -p -m 0644 builds/$(echo $board)/$(echo $file) $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/
  fi
 done

done

# Bit of a hack to remove binaries we don't use as they're large
for board in $(cat %{_arch}-boards)
do
  if [ -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot-sunxi-with-spl.bin ]; then
    rm -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.*
  fi
  if [ -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/MLO ]; then
    rm -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.bin
  fi
  if [ -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/SPL ]; then
    rm -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.bin
  fi
  if [ -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.imx ]; then
    rm -f $RPM_BUILD_ROOT%{_datadir}/uboot/$(echo $board)/u-boot.bin
  fi
done
%endif

for tool in bmp_logo dumpimage env/fw_printenv fit_check_sign fit_info gdb/gdbcont gdb/gdbsend gen_eth_addr gen_ethaddr_crc img2srec mkenvimage mkimage mksunxiboot ncb proftool sunxi-spl-image-builder ubsha1 xway-swap-bytes
do
install -p -m 0755 builds/tools/$tool $RPM_BUILD_ROOT%{_bindir}
done
install -p -m 0644 doc/mkimage.1 $RPM_BUILD_ROOT%{_mandir}/man1

install -p -m 0755 builds/tools/env/fw_printenv $RPM_BUILD_ROOT%{_bindir}
( cd $RPM_BUILD_ROOT%{_bindir}; ln -sf fw_printenv fw_setenv )

install -p -m 0644 tools/env/fw_env.config $RPM_BUILD_ROOT%{_sysconfdir}

# systemd kernel-install script for device tree
mkdir -p $RPM_BUILD_ROOT/lib/kernel/install.d/
install -p -m 0755 %{SOURCE5} $RPM_BUILD_ROOT/lib/kernel/install.d/

# Copy sone useful docs over
mkdir -p builds/docs
cp -p board/amlogic/p200/README.odroid-c2 builds/docs/README.odroid-c2
cp -p board/hisilicon/hikey/README builds/docs/README.hikey
cp -p board/hisilicon/hikey/README builds/docs/README.hikey
cp -p board/Marvell/db-88f6820-gp/README builds/docs/README.mvebu-db-88f6820
cp -p board/rockchip/evb_rk3399/README builds/docs/README.evb_rk3399
cp -p board/solidrun/clearfog/README builds/docs/README.clearfog
cp -p board/solidrun/mx6cuboxi/README builds/docs/README.mx6cuboxi
cp -p board/sunxi/README.sunxi64 builds/docs/README.sunxi64
cp -p board/sunxi/README.nand builds/docs/README.sunxi-nand
cp -p board/ti/am335x/README builds/docs/README.am335x
cp -p board/ti/omap5_uevm/README builds/docs/README.omap5_uevm
cp -p board/udoo/README builds/docs/README.udoo
cp -p board/wandboard/README builds/docs/README.wandboard
cp -p board/warp/README builds/docs/README.warp
cp -p board/warp7/README builds/docs/README.warp7

%files
%doc README doc/README.kwbimage doc/README.distro doc/README.gpt
%doc doc/README.odroid doc/README.rockchip doc/uefi doc/uImage.FIT doc/arch/arm64.rst
%doc doc/README.chromium builds/docs/*
%{_bindir}/*
%{_mandir}/man1/mkimage.1*
/lib/kernel/install.d/10-devicetree.install
%dir %{_datadir}/uboot/
%config(noreplace) %{_sysconfdir}/fw_env.config

%ifarch aarch64
%files -n uboot-images-armv8
%{_datadir}/uboot/*
%endif

%ifarch %{arm}
%files -n uboot-images-armv7
%{_datadir}/uboot/*
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20038 |21mr|uchardet-0.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname uchardet %{major}
%define devname %mklibname uchardet -d

Summary:	Universal char-set detection
Name:		uchardet
Version:	0.0.7
Release:	1
License:	MPLv1.1
Group:		Development/Tools
Url:		http://code.google.com/p/uchardet/
Source0:	http://uchardet.googlecode.com/files/%{name}-%{version}.tar.xz
BuildRequires:	cmake

%description
uchardet is a C language binding of the original C++ implementation of the
universal char-set detection library by Mozilla. uchardet is an encoding
detector library, which takes a sequence of bytes in an unknown character
encoding without any additional information, and attempts to determine the
encoding of the text.

%files
%doc COPYING AUTHORS README.md
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Universal charset detection shared library
Group:		System/Libraries

%description -n %{libname}
C language binding of the original C++ implementation of the
universal char-set detection library by Mozilla.

%files -n %{libname}
%doc COPYING AUTHORS README.md
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for uchardet
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and Libraries for the package uchardet.

%files -n %{devname}
%doc COPYING AUTHORS README.md
%{_includedir}/%{name}
%{_libdir}/lib%{name}.a
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20039 |21mr|ucl-1.03-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

# from https://github.com/mxe/mxe/pull/1358
%global optflags %{optflags} -std=gnu90 -fPIC

Summary:	The UCL Compression Library
Name:		ucl
Version:	1.03
Release:	23
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.oberhumer.com/opensource/ucl/
Source0:	http://www.oberhumer.com/opensource/ucl/download/%{name}-%{version}.tar.gz
# https://dev.openwrt.org/browser/packages/libs/ucl/patches/002-missing-macros.patch?rev=24363&format=txt
Patch0:		002-missing-macros.patch
Patch1:		ucl-1.03-CFLAGS.patch

%description
UCL implements a number of algorithms with the following features:
- Decompression is simple and *very* fast.
- Requires no memory for decompression.
- The decompressors can be squeezed into less than 200 bytes of code. 
- Focuses on compression levels for generating pre-compressed data which
  achieve a quite competitive compression ratio.
- Allows you to dial up extra compression at a speed cost in the compressor.
  The speed of the decompressor is not reduced.
- Algorithm is thread safe.
- Algorithm is lossless.
UCL supports in-place decompression.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The UCL Compression Library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
UCL implements a number of algorithms with the following features:
- Decompression is simple and *very* fast.
- Requires no memory for decompression.
- The decompressors can be squeezed into less than 200 bytes of code.
- Focuses on compression levels for generating pre-compressed data which
  achieve a quite competitive compression ratio.
- Allows you to dial up extra compression at a speed cost in the compressor.
  The speed of the decompressor is not reduced.
- Algorithm is thread safe.
- Algorithm is lossless.
UCL supports in-place decompression.

This package contains the library needed to run programs dynamically
linked with %{name}.

%files -n %{libname}
%{_libdir}/libucl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	The UCL Compression Library - development environment
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}ucl1-devel < 1.03-8

%description -n %{devname}
UCL implements a number of algorithms with the following features:
- Decompression is simple and *very* fast.
- Requires no memory for decompression.
- The decompressors can be squeezed into less than 200 bytes of code. 
- Focuses on compression levels for generating pre-compressed data which
  achieve a quite competitive compression ratio.
- Allows you to dial up extra compression at a speed cost in the compressor.
  The speed of the decompressor is not reduced.
- Algorithm is thread safe.
- Algorithm is lossless.
UCL supports in-place decompression.

Install %{devname} if you need to compile an application with %{libname}
support.

%files  -n %{devname}
%doc COPYING INSTALL NEWS README THANKS TODO
%{_libdir}/*.so
%dir %{_includedir}/ucl/
%{_includedir}/ucl/*.h

#------------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%setup_compile_flags
autoreconf -fiv
%configure \
	--enable-shared \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20040 |21mr|uddi4j-2.0.5-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		uddi4j
Version:	2.0.5
Release:	20
Summary:	Universal Description, Discovery and Integration registry API for Java
License:	IBM
URL:		http://sourceforge.net/projects/uddi4j/
Group:          Development/Java
Source0:	http://downloads.sf.net/project/uddi4j/uddi4j/%{version}/uddi4j-src-%{version}.zip
Source1:	%{name}-MANIFEST.MF

# A couple of utf8 incompatible chars prevent compile
Patch0:		uddi4j-remove-nonutf8-chars.patch

BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	ant
BuildRequires:	javapackages-local
BuildRequires:	zip

%description
UDDI4J is a Java class library that provides an API to interact with a 
UDDI (Universal Description, Discovery and Integration) registry.

%package javadoc
Summary:	Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}
%patch0 -p1

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

# Disable java 8 doclinting
sed -i -e '/<javadoc/aadditionalparam="-Xdoclint:none"' build.xml

%build
ant -Djavac.executable=javac compile javadocs

%install
# inject OSGi manifests
mkdir -p META-INF
cp -p %{SOURCE1} META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u build/lib/%{name}.jar META-INF/MANIFEST.MF

%mvn_artifact "org.uddi4j:uddi4j:%{version}" build/lib/uddi4j.jar
%mvn_file ":uddi4j" uddi4j
%mvn_install -J build/javadocs

%files -f .mfiles
%license LICENSE.html
%doc ReleaseNotes.html

%files javadoc -f .mfiles-javadoc
%license LICENSE.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20041 |21mr|udev-rules-ioschedulers-0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: udev-rules-ioschedulers
Version: 0.2
Release: 1
Group: System/Kernel and hardware
Summary: Udev rules to set I/O schedulers
License: GPL-3.0-or-later
# Forked from http://git.altlinux.org/gears/u/udev-rules-ioschedulers.git
Url: https://abf.io/import/udev-rules-ioschedulers
Source0: ioschedulers.rules
BuildArch: noarch
BuildRequires: systemd-units
Requires: udev

%description
This package provides udev rules to set disks I/O schedulers
to optimize filesystem performance.

%prep

%install
mkdir -p %{buildroot}%{_udevrulesdir}
install -m 0644 %{SOURCE0} %{buildroot}%{_udevrulesdir}/50-ioschedulers.rules

%files
%{_udevrulesdir}/50-ioschedulers.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20042 |21mr|udisks-2.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname udisks2

%define major 0
%define libname %mklibname %{oname}_ %{major}
%define devname %mklibname %{oname} -d
%define girname %mklibname udisks-gir 2.0

%define with_bcache 1
%define with_btrfs 1
%define with_vdo 0
%define with_lsm 1
%define with_zram 1
%define with_lvmcache 1
%define with_iscsi 0

Summary:	Disk Manager
Name:		udisks
Version:	2.9.4
Release:	1
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.freedesktop.org/wiki/Software/udisks
Source0:	https://github.com/storaged-project/udisks/archive/udisks-%{version}.tar.gz
Patch0:		udisks-2.1.0-mount-system-internal.patch
# Define LOOP_CTL_GET_FREE constant for old kernels
Patch2:		udisks-1.91.0-define-LOOP_CTL_GET_FREE-for-old-kernels.patch
BuildRequires:	pkgconfig(gio-unix-2.0) >= 2.31.13
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.31.13
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0) >= 186
BuildRequires:	pkgconfig(libacl)
BuildRequires:	pkgconfig(libatasmart) >= 0.19
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(polkit-gobject-1) >= 0.92
BuildRequires:	pkgconfig(polkit-agent-1) >= 0.92
BuildRequires:	pkgconfig(blockdev)
BuildRequires:	bd_mdraid-devel
BuildRequires:	bd_part-devel
BuildRequires:	bd_loop-devel
BuildRequires:	bd_swap-devel
BuildRequires:	bd_fs-devel
BuildRequires:	bd_crypto-devel
BuildRequires:	intltool
BuildRequires:	gnome-common
BuildRequires:	gettext-devel
BuildRequires:	gtk-doc >= 1.3

%description
udisks provides a daemon, D-Bus API and command line tools for
managing disks and storage devices. This package is for the udisks 2.x
series.

#----------------------------------------------------------------------------

%package -n %{oname}
Summary:	Disk Manager
Group:		System/Libraries

# for LUKS devices
Requires:	cryptsetup-luks
# needed to pull in the system bus daemon
Requires:	dbus >= 1.4.0
# for mkfs.vfat
Requires:	dosfstools
# for mkfs.ext3, mkfs.ext3, e2label
Requires:	e2fsprogs
# for partitioning
Requires:	gdisk
Requires:	parted
# for mlabel
Requires:	mtools
Requires:	ntfsprogs
# needed to pull in the udev daemon
Requires:	udev >= 186
# for mount, umount, mkswap
Requires:	util-linux
# for mkfs.xfs, xfs_admin
Requires:	xfsprogs
# pull libblockdev plugins
Requires:	libblockdev-plugins-all
# flash friendly filesystem
Requires:	f2fs-tools
Requires:	btrfs-progs
Requires:	exfat-utils

# for /proc/self/mountinfo, only available in 2.6.26 or higher
Conflicts:	kernel < 2.6.26

%description -n %{oname}
udisks provides a daemon, D-Bus API and command line tools for
managing disks and storage devices. This package is for the udisks 2.x
series.

%files -n %{oname} -f %{oname}.lang
%doc AUTHORS NEWS COPYING HACKING
%dir %{_sysconfdir}/udisks2
%dir %{_sysconfdir}/udisks2/modules.conf.d
%{_sysconfdir}/udisks2/mount_options.conf.example
%{_datadir}/dbus-1/system.d/org.freedesktop.UDisks2.conf
%{_sysconfdir}/udisks2/udisks2.conf
%{_datadir}/bash-completion/completions/udisksctl
%{_udevrulesdir}/80-udisks2.rules
%{_sbindir}/umount.udisks2
%dir %{_libexecdir}/udisks2
%{_libexecdir}/udisks2/udisksd
%{_bindir}/udisksctl
%{_mandir}/man1/*
%{_mandir}/man8/*
%{_mandir}/man5/*
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.policy
%{_datadir}/dbus-1/system-services/org.freedesktop.UDisks2.service
%{_presetdir}/86-%{oname}.preset
%{_unitdir}/udisks2.service
# Permissions for local state data are 0700 to avoid leaking information
# about e.g. mounts to unprivileged users
%attr(0700,root,root) %dir %{_localstatedir}/lib/udisks2

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic library to access the udisks daemon
License:	LGPLv2+
Group:		System/Libraries
Obsoletes:	%{_lib}udisks20 < 1.90.0-2

%description -n %{libname}
This package contains the dynamic library libudisks2, which provides
access to the udisks daemon. This package is for the udisks 2.x
series.

%files -n %{libname}
%{_libdir}/libudisks2.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{oname}
License:	LGPLv2+
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{oname}.

%files -n %{girname}
%{_libdir}/girepository-1.0/UDisks-2.0.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for libudev
License:	LGPLv2+
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for the library
libudisks2, a dynamic library, which provides access to the udisks
daemon. This package is for the udisks 2.x series.

%files -n %{devname}
%{_libdir}/libudisks2.so
%dir %{_includedir}/udisks2
%dir %{_includedir}/udisks2/udisks
%{_includedir}/udisks2/udisks/*.h
%{_datadir}/gir-1.0/UDisks-2.0.gir
%dir %{_datadir}/gtk-doc/html/udisks2
%{_datadir}/gtk-doc/html/udisks2/*
%{_libdir}/pkgconfig/udisks2.pc
%{_libdir}/pkgconfig/udisks2-lvm2.pc
# modules
%if 0%{?with_bcache}
%{_libdir}/pkgconfig/udisks2-bcache.pc
%endif
%if 0%{?with_btrfs}
%{_libdir}/pkgconfig/udisks2-btrfs.pc
%endif
%if 0%{?with_lsm}
%{_libdir}/pkgconfig/udisks2-lsm.pc
%endif
%if 0%{?with_zram}
%{_libdir}/pkgconfig/udisks2-zram.pc
%endif
%if 0%{?with_vdo}
%{_libdir}/pkgconfig/udisks2-vdo.pc
%endif

#----------------------------------------------------------------------------

# modules

%package -n %{oname}-lvm2
Summary:	Module for LVM2
Group:		System/Libraries
Requires:	%{oname}%{?_isa} = %{version}-%{release}
License:	LGPLv2+
Requires:	lvm2
BuildRequires:	bd_lvm-devel

%description -n %{oname}-lvm2
This package contains module for LVM2 configuration.

%files -n %{oname}-lvm2
%{_libdir}/udisks2/modules/libudisks2_lvm2.so
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lvm2.policy

#----------------------------------------------------------------------------
%if 0%{?with_iscsi}
%package -n %{oname}-iscsi
Summary:	Module for iSCSI
Group:		System/Libraries
Requires:	%{oname} = %{EVRD}
License:	LGPLv2+
Requires:	open-iscsi
BuildRequires:	open-iscsi-devel
BuildRequires:	pkgconfig(libiscsi)

%description -n %{oname}-iscsi
This package contains module for iSCSI configuration.

%files -n %{oname}-iscsi
%{_libdir}/udisks2/modules/libudisks2_iscsi.so
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.iscsi.policy
%endif

#----------------------------------------------------------------------------

%if 0%{?with_bcache}
%package -n %{oname}-bcache
Summary:	Module for Bcache
Group:		System/Libraries
Requires:	%{oname} = %{EVRD}
License:	LGPLv2+
BuildRequires:	bd_kbd-devel

%description -n %{oname}-bcache
This package contains module for Bcache configuration.

%files -n %{oname}-bcache
%{_libdir}/udisks2/modules/libudisks2_bcache.so
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.bcache.policy
%endif

#----------------------------------------------------------------------------

%if 0%{?with_btrfs}
%package -n %{oname}-btrfs
Summary: Module for BTRFS
Group: System/Libraries
Requires: %{oname} = %{EVRD}
License: LGPLv2+
BuildRequires: bd_btrfs-devel

%description -n %{oname}-btrfs
This package contains module for BTRFS configuration.

%files -n %{oname}-btrfs
%{_libdir}/udisks2/modules/libudisks2_btrfs.so
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.btrfs.policy
%endif

#----------------------------------------------------------------------------

%if 0%{?with_lsm}
%package -n %{oname}-lsm
Summary: Module for LSM
Group: System/Libraries
License: LGPLv2+
Requires: libstoragemgmt
Requires: %{oname} = %{EVRD}
BuildRequires: pkgconfig(libstoragemgmt)
BuildRequires: libconfig-devel

%description -n %{oname}-lsm
This package contains module for LSM configuration.

%files -n %{oname}-lsm
%{_libdir}/udisks2/modules/libudisks2_lsm.so
%{_mandir}/man5/udisks2_lsm.conf.*
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.lsm.policy
%attr(0600,root,root) %{_sysconfdir}/udisks2/modules.conf.d/udisks2_lsm.conf
%endif

#----------------------------------------------------------------------------

%if 0%{?with_zram}

%package -n %{oname}-zram
Summary: Module for ZRAM
Group: System/Libraries
License: LGPLv2+
Requires: %{oname} = %{EVRD}
BuildRequires: bd_kbd-devel

%description -n %{oname}-zram
This package contains module for ZRAM configuration.

%files -n %{oname}-zram
%{_libdir}/udisks2/modules/libudisks2_zram.so
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.zram.policy
%{_unitdir}/udisks2-zram-setup@.service
%{_udevrulesdir}/90-udisks2-zram.rules
%endif

#----------------------------------------------------------------------------

%if 0%{?with_vdo}
%package -n %{oname}-vdo
Summary: Module for VDO
Group: System/Libraries
License: LGPLv2+
Requires: vdo
Requires: %{oname} = %{EVRD}
BuildRequires: libblockdev-vdo-devel

%description -n %{oname}-vdo
This package contains module for VDO management.

%files -n %{oname}-vdo
%{_libdir}/udisks2/modules/libudisks2_vdo.so
%{_datadir}/polkit-1/actions/org.freedesktop.UDisks2.vdo.policy
%endif

#----------------------------------------------------------------------------


%prep
%setup -q -n udisks-udisks-%{version}
%patch0 -p1
%patch2 -p1
# Fix building with glibc 2.25+
# https://sourceware.org/bugzilla/show_bug.cgi?id=19239
find . -type f -exec sed -i 's,^#include <sys/types.h>,#include <sys/types.h>\n#include <sys/sysmacros.h>,g' {} \;

%build
NOCONFIGURE=yes gnome-autogen.sh

# modules need to be explicitly enabled
%configure \
        --enable-gtk-doc \
        --enable-fhs-media \
        --disable-static \
        --with-systemdsystemunitdir=%{_unitdir} \
%if 0%{?with_bcache}
        --enable-bcache   \
%endif
%if 0%{?with_btrfs}
        --enable-btrfs    \
%endif
%if 0%{?with_vdo}
        --enable-vdo      \
%endif
%if 0%{?with_zram}
        --enable-zram     \
%endif
%if 0%{?with_lsm}
        --enable-lsm      \
%endif
%if 0%{?with_lvmcache}
        --enable-lvmcache \
%endif
%if 0%{?with_iscsi}
        --enable-iscsi
%endif
        --enable-lvm2     \

%make_build

%install
%make_install

mkdir -p %{buildroot}/%{_localstatedir}/lib/udisks2

chrpath --delete %{buildroot}/%{_sbindir}/umount.udisks2
chrpath --delete %{buildroot}/%{_bindir}/udisksctl
chrpath --delete %{buildroot}/%{_libexecdir}/udisks2/udisksd

# (tpg) disable it by default
# https://github.com/storaged-project/udisks/issues/535
install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-%{oname}.preset << EOF
disable udisks2.service
EOF

%find_lang %{oname} %{oname}.lang


# CVE-2021-3802


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20043 |21mr|ufraw-0.22-11.684af05.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 684af0548ed76fd97635687fa90a754a7a04a017
%define shortcommit %(c=%{commit}; echo ${c:0:7})

%bcond_with cinepaint

%if %{with cinepaint}
%define cinepaint_dir %(pkg-config --variable=programplugindir cinepaint-gtk)
%endif

Summary:	Graphical tool to convert raw images of digital cameras
Name:		ufraw
Version:	0.22
Release:	11.%{shortcommit}.3
License:	GPLv2+
Group:		Graphics
Url:		http://ufraw.sourceforge.net/
#unnoficial git with fix build on gcc11
Source0:	https://github.com/sergiomb2/ufraw/archive/%{commit}.zip?/%{name}-%{shortcommit}.zip
BuildRequires:	imagemagick
BuildRequires:	bzip2-devel
%if %{with cinepaint}
BuildRequires:	cinepaint-devel
%endif
BuildRequires:	gettext-devel
BuildRequires:	gomp-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(cfitsio)
BuildRequires:	pkgconfig(exiv2)
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(gtkimageview)
BuildRequires:	pkgconfig(gtk+-x11-2.0)
BuildRequires:	pkgconfig(jasper)
BuildRequires:	pkgconfig(lcms2)
#BuildRequires:	pkgconfig(lensfun) #Crash with lensfun-0.3.95
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(zlib)

%description
UFRaw is a utility to read and manipulate raw images from digital cameras.
It can be used by itself or as a Gimp plug-in.
It reads raw images using Dave Coffin's raw conversion utility DCRaw.
And it supports basic color management using Little CMS, allowing
the user to apply color profiles.

Raw images are the data directly read from the CCD of the camera,
without in-camera processing, without lossy JPEG compression, and in
36 or 48 bits color depth (TIFF has 24 bits). Problem of the raw
images is that they are in proprietary, camera-specific formats as
they are exactly what the CCD has captured, and the CCDs on differnt
cameras are very different. It also contains info about the camera
settings.

%files -f %{name}.lang
%doc MANIFEST README
%license COPYING
%{_sysconfdir}/gconf/schemas/ufraw.schemas
%{_bindir}/*
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/ufraw.desktop
%{_datadir}/pixmaps/*.png
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_miconsdir}/*.png
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package gimp
Summary:	Reads the raw image formats of digital cameras into GIMP
Group:		Graphics
Requires:	gimp
Conflicts:	dcraw-gimp2.0
Conflicts:	rawphoto

%description gimp
A GIMP plug-in which reads and processes raw images from most digital
cameras. The conversion is done by the dcraw software and so all
cameras supported by dcraw are also supported by this plug-in.

In contrary to the original GIMP plug-in of dcraw this one is much
more comfortable, especially because of the life preview image but
also due to more options.

%files gimp
%{_libdir}/gimp/2.0/plug-ins/*

#----------------------------------------------------------------------------

%if %{with cinepaint}
%package cinepaint
Summary:	Reads the raw image formats of digital cameras into Cinepaint
Group:		Graphics
Requires:	cinepaint

%description cinepaint
A Cinepaint plug-in which reads and processes raw images from most digital
cameras. The conversion is done by the dcraw software and so all
cameras supported by dcraw are also supported by this plug-in.

%files cinepaint
%{cinepaint_dir}/plug-ins/*
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
export CPPFLAGS="-I/usr/include/lensfun"
autoreconf -vi
%configure \
%ifarch %{e2k}
	--disable-openmp \
%endif
	--enable-mime
%make

%install
%makeinstall_std schemasdir=%{_sysconfdir}/gconf/schemas

%find_lang ufraw

install -d %{buildroot}%{_datadir}/icons/{large,mini}

convert icons/ufraw.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert icons/ufraw.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
cp icons/ufraw.png %{buildroot}%{_liconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20044 |21mr|ufw-0.36.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Uncomplicated Firewall
Name:		ufw
Version:	0.36.2
Release:	1
Epoch:		1
License:	GPLv3
Group:		System/Configuration/Other
URL:		https://launchpad.net/%{name}
Source0:	https://launchpad.net/%{name}/0.36/%{version}/+download/ufw-%{version}.tar.gz
# systemd service file
Source1:	ufw.service
# Install translations to the systemwide standard location for %%find_lang
Patch0:		ufw-0.36-trans-dir.patch
# Separate libexec_dir from state_dir because the state files must go into /var,
# whereas the scripts don't belong there (we install them to /usr/libexec
# instead). Upstream used to install everything into /lib/ufw, a hack to make
# separate /var work on Ubuntu, but /lib/ufw is /usr/lib/ufw in Fedora and that
# must not contain writable state data according to Fedora packaging guidelines.
# Now, upstream essentially uses state_dir only for libexec-type stuff, and has
# moved user.rules and user6.rules back to /etc, we move them back to /var/lib.
Patch1:		ufw-0.36-libexec-dir.patch
# Default to enabled, let systemd handle whether ufw is actually enabled
Patch2:		ufw-0.34~rc-default-enabled.patch
# Allow SSH connections by default
Patch3:		ufw-0.34~rc-default-allow-ssh.patch
# Define multicast protocols (mDNS, UPnP) as a normal protocol profile
# Use a managed rule instead of a "before" rule for default-allowing mDNS
# Do not allow UPnP by default at all, document in ufw.8 how it can be allowed
# Update the README file and the ufw.8 manpage according to the above changes
Patch4:		ufw-0.34~rc-multicast.patch
# Add protocol profiles for KDE Connect (#1257699) and Icecream (#1262009)
Patch5:		ufw-0.34~rc-additional-profiles.patch
# Change permissions of the *.rules files from 0640 to 0644
# Change permissions of the before.init and after.init hooks from 0640 to 0755
Patch7:		ufw-0.35-permissions.patch
# Don't prepend /usr/bin/env to sys.executable, which is always an absolute path
Patch8:		ufw-0.35-no-pointless-env.patch
Patch9:		ufw-0.36-dont-check-iptables.patch

BuildArch:	noarch
BuildRequires:	pkgconfig(python3)
BuildRequires:	iptables
BuildRequires:	gettext
BuildRequires:	systemd
Requires:	iptables

%description
The Uncomplicated Firewall(ufw) is a front-end for netfilter, which
aims to make it easier for people unfamiliar with firewall concepts.
Ufw provides a framework for managing netfilter as well as
manipulating the firewall.

%prep
%autosetup -p1
find . -name "*.*~" |xargs rm -f

%build
%py3_build
make mo

%install
%py3_install

install -D -p -m 644 %{SOURCE1} %{buildroot}%{_unitdir}/ufw.service

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-ufw.preset << EOF
enable ufw.service
EOF

for i in locales/mo/*.mo; do
	LCODE=$(basename $i .mo)
	mkdir -p %{buildroot}%{_datadir}/locale/$LCODE/LC_MESSAGES
	cp $i %{buildroot}%{_datadir}/locale/$LCODE/LC_MESSAGES/ufw.mo
done

%find_lang %{name}

%files -f %{name}.lang
%doc ChangeLog README TODO AUTHORS
%{_sbindir}/ufw
%{_libexecdir}/ufw/
%{python3_sitelib}/ufw-*-py*.egg-info
%{python3_sitelib}/ufw/
%{_datadir}/ufw/
%{_presetdir}/86-ufw.preset
%{_unitdir}/ufw.service
# config files under /etc, directly user-editable, should survive updates
%dir %{_sysconfdir}/ufw/
%config(noreplace) %{_sysconfdir}/ufw/after.init
%config(noreplace) %{_sysconfdir}/ufw/after.rules
%config(noreplace) %{_sysconfdir}/ufw/after6.rules
%config(noreplace) %{_sysconfdir}/ufw/before.init
%config(noreplace) %{_sysconfdir}/ufw/before.rules
%config(noreplace) %{_sysconfdir}/ufw/before6.rules
%config(noreplace) %{_sysconfdir}/ufw/sysctl.conf
%config(noreplace) %{_sysconfdir}/ufw/ufw.conf
%dir %{_sysconfdir}/ufw/applications.d/
%config(noreplace) %{_sysconfdir}/ufw/applications.d/ufw-*
%config(noreplace) %{_sysconfdir}/ufw/applications.d/fedora-*
%config(noreplace) %{_sysconfdir}/default/ufw
# state files under /var, not directly user-editable, but should survive updates
%dir %{_sharedstatedir}/ufw/
%config(noreplace) %{_sharedstatedir}/ufw/user.rules
%config(noreplace) %{_sharedstatedir}/ufw/user6.rules
%{_mandir}/man8/ufw-framework.8*
%{_mandir}/man8/ufw.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20045 |21mr|uhttpmock-0.5.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api_version 0.0
%define lib_major   0
%define lib_name    %mklibname uhttpmock %{api_version} %{lib_major}
%define gi_name     %mklibname uhttpmock-gir %{api_version}
%define develname   %mklibname -d uhttpmock

%define url_ver     %(echo %{version}|cut -d. -f1,2)

Summary:	HTTP web service mocking library
Name:		uhttpmock
Version:	0.5.3
Release:	1
Epoch:		1
Group:		System/Libraries
License:	LGPL-2.1+
URL:		http://gitorious.org/uhttpmock
Source0:	https://tecnocode.co.uk/downloads/uhttpmock/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0) >= 2.16.0
BuildRequires:	pkgconfig(gobject-2.0) >= 2.16.0
BuildRequires:	pkgconfig(libxml-2.0) >= 2.4.16
BuildRequires:	pkgconfig(gobject-introspection-1.0) >= 0.6.4
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(vapigen)
BuildRequires:	vala-tools
BuildRequires:	gtk-doc
BuildRequires:	intltool

%description
uhttpmock is a project for mocking web service APIs which use HTTP or HTTPS.
It provides a library, libuhttpmock, which implements recording and
playback of HTTP request/response traces.

%package -n %{lib_name}
Summary:  %{summary}
Group: %{group}

%description -n %{lib_name}
uhttpmock is a project for mocking web service APIs which use HTTP or HTTPS.
It provides a library, libuhttpmock, which implements recording and
playback of HTTP request/response traces.

%package -n %develname
Summary: Support files necessary to compile applications with %{name}
Group: Development/C
Requires: %{lib_name} = %epoch:%{version}
Requires: %{gi_name} = %epoch:%{version}
Provides: %{name}-%{api_version}-devel = %epoch:%{version}-%{release}
Provides: %{name}-devel = %epoch:%{version}-%{release}

%description -n %develname
Libraries, headers, and support files necessary to compile
applications using %{name}.

%package -n %{gi_name}
Summary:	GObject Introspection interface library for %{name}
Group:		System/Libraries
Requires:	%{lib_name} = %epoch:%{version}-%{release}

%description -n %{gi_name}
GObject Introspection interface library for %{name}.

%prep
%setup -q

%build
%configure --enable-gtk-doc --disable-static --enable-introspection --enable-vala
%make

%install
%makeinstall_std

# remove unpackaged files
rm -rf %{buildroot}%{_datadir}/../doc/lib%{name}
rm -f %{buildroot}%{_libdir}/*.la

%files -n %{lib_name}
%doc AUTHORS COPYING README NEWS
%{_libdir}/lib%{name}*-%{api_version}.so.%{lib_major}*

%files -n %develname
%doc %{_datadir}/gtk-doc/html/lib%{name}-%{api_version}
%{_datadir}/gir-1.0/Uhm-%{api_version}.gir
%{_libdir}/*.so
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_datadir}/vala/vapi/lib%{name}-%{api_version}.*

%files -n %{gi_name}
%{_libdir}/girepository-1.0/Uhm-%{api_version}.typelib

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20046 |21mr|uima-addons-2.3.1-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without test

Name:          uima-addons
Version:       2.3.1
Release:       12
Summary:       Apache UIMA Addons components
License:       ASL 2.0
URL:           http://uima.apache.org/sandbox.html
Source0:       http://www.apache.org/dist/uima/%{name}-%{version}-source-release.zip
# fix bundle plugin configuration
Patch0:        %{name}-%{version}-disable-embedded-dependencies.patch
# fix build for httpclient > 4.0
Patch1:        %{name}-%{version}-httpclient.patch

BuildRequires: mvn(bsf:bsf)
BuildRequires: mvn(commons-digester:commons-digester)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-logging:commons-logging-api)
BuildRequires: mvn(javax.xml.stream:stax-api)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.ant:ant)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.uima:parent-pom:pom:)
BuildRequires: mvn(org.apache.uima:uimaj-core)
BuildRequires: mvn(org.apache.uima:uimaj-document-annotation)
BuildRequires: mvn(org.apache.xmlbeans:xmlbeans)
BuildRequires: mvn(org.beanshell:bsh)
BuildRequires: mvn(org.tartarus:snowball)
BuildRequires: mvn(rhino:js)
BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)

%if 0
# Unavailable build deps **
BuildRequires: mvn(org.apache.lucene:lucene-snowball:2.9.3)
BuildRequires: mvn(org.apache.solr:solr-core:3.1.0)
BuildRequires: mvn(org.apache.solr:solr-solrj:3.1.0)
BuildRequires: mvn(org.apache.tika:tika-core:0.7)
BuildRequires: mvn(org.apache.tika:tika-parsers:0.7)
BuildRequires: mvn(org.apache.uima:uimaj-examples:2.3.1)
BuildRequires: mvn(org.eclipse.emf.ecore:xmi:2.3.0-v200706262000)
BuildRequires: mvn(org.eclipse.emf:common:2.3.0-v200706262000)
BuildRequires: mvn(org.eclipse.emf:ecore:2.3.0-v200706262000)
BuildRequires: mvn(org.mortbay.jetty:jetty:6.1.8)
%endif

# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.uima:uimaj-test-util)
BuildRequires: mvn(org.apache.uima:uimaj-component-test-util)

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-site-plugin)
BuildRequires: mvn(org.apache.uima:PearPackagingMavenPlugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:javacc-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:xmlbeans-maven-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(ant-contrib:ant-contrib)
BuildRequires: mvn(org.apache.ant:ant-apache-regexp)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
UIMA Addons is a collection of Annotators extracted for
sandbox for official distribution. It also provides
Simple Server and Pear packaging tools.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

%patch0 -p0
%patch1 -p0

# Disable unneeded (only for eclipse) OSGi artefacts
%pom_remove_plugin :maven-assembly-plugin uima-addons-parent
%pom_remove_plugin :maven-dependency-plugin uima-addons-parent
%pom_remove_plugin :maven-resources-plugin uima-addons-parent

%pom_remove_plugin :maven-javadoc-plugin uima-addons-parent

# Unavailable or too old build deps **
%pom_disable_module ConfigurableFeatureExtractor
%pom_disable_module Lucas
%pom_disable_module Solrcas
%pom_disable_module TikaAnnotator

%pom_remove_dep org.mortbay.jetty:jetty SimpleServer
rm -r SimpleServer/src/main/java/org/apache/uima/simpleserver/util/JettyUtils.java \
 SimpleServer/src/test/java/org/apache/uima/simpleserver/test/ServerFailureTest.java \
 SimpleServer/src/test/java/org/apache/uima/simpleserver/test/ServerTest.java

# Fail with XMvn if aId is different by finalName
for p in AlchemyAPIAnnotator BSFAnnotator ConceptMapper DictionaryAnnotator \
 FsVariables OpenCalaisAnnotator PearPackagingAntTask RegularExpressionAnnotator \
 SimpleServer SnowballAnnotator Tagger WhitespaceTokenizer; do
%pom_xpath_remove "pom:project/pom:build/pom:finalName" ${p}
done

for m in ConfigurableFeatureExtractor DictionaryAnnotator RegularExpressionAnnotator SimpleServer; do
%pom_remove_dep org.apache.geronimo.specs:geronimo-stax-api_1.0_spec  ${m}
%pom_add_dep javax.xml.stream:stax-api:1.0.1 ${m}
done

rm -r SnowballAnnotator/src/main/java/org/tartarus
%pom_add_dep org.tartarus:snowball SnowballAnnotator

# @ random fail AssertionFailedError
rm SnowballAnnotator/src/test/java/org/apache/uima/annotator/SnowballAnnotatorTest.java

# java.lang.AssertionError: null
rm -r AlchemyAPIAnnotator/src/test/java/org/apache/uima/alchemy/annotator/TextRankedEntityExtractionAnnotatorTest.java

sed -i 's/\r//' LICENSE NOTICE

# requires web access
rm -r AlchemyAPIAnnotator/src/test/java/org/apache/uima/alchemy/annotator/SimpleTest.java \
 AlchemyAPIAnnotator/src/test/java/org/apache/uima/alchemy/annotator/HtmlMicroformatsAnnotatorTest.java \
 AlchemyAPIAnnotator/src/test/java/org/apache/uima/alchemy/annotator/TextCategorizationAnnotatorTest.java \
 AlchemyAPIAnnotator/src/test/java/org/apache/uima/alchemy/annotator/TextConceptTaggingAnnotatorTest.java \
 AlchemyAPIAnnotator/src/test/java/org/apache/uima/alchemy/annotator/TextKeywordExtractionAnnotatorTest.java \
 AlchemyAPIAnnotator/src/test/java/org/apache/uima/alchemy/annotator/TextLanguageDetectionAnnotatorTest.java \
 AlchemyAPIAnnotator/src/test/java/org/apache/uima/alchemy/annotator/TextSentimentAnalysisAnnotatorTest.java \
 OpenCalaisAnnotator/src/test/java/org/apache/uima/annotator/calais/OpenCalaisAnnotatorTest.java

sed -i "s|<groupId>javax.servlet</groupId>|<groupId>org.apache.tomcat</groupId>|" SimpleServer/pom.xml
sed -i "s|<artifactId>servlet-api</artifactId>|<artifactId>tomcat-servlet-api</artifactId>|" SimpleServer/pom.xml
# Solrcas/pom.xml

sed -i "s|<version>1.2.14</version>|<version>1.2.17</version>|" BSFAnnotator/pom.xml
#  Lucas/pom.xml

%mvn_package ::pear: __noinstall

%build

%mvn_build %{?with_test:-f}

%install
%mvn_install

%files -f .mfiles
%doc RELEASE_NOTES.html
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20047 |21mr|uimaj-2.8.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          uimaj
Version:       2.8.1
Release:       9
Summary:       Apache UIMA is an implementation of the OASIS-UIMA specifications
License:       ASL 2.0
URL:           http://uima.apache.org/
Source0:       http://www.apache.org/dist/uima/%{name}-%{version}/%{name}-%{version}-source-release.zip
Patch0:        uimaj-2.8.1-jackson2.7.patch

BuildRequires: maven-local
BuildRequires: mvn(ant-contrib:ant-contrib)
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(log4j:log4j:1.2.17)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-project)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.ant:ant-apache-regexp)
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.uima:parent-pom:pom:)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
BuildRequires: mvn(xmlunit:xmlunit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache UIMA is an implementation of the OASIS-UIMA specifications.

OASIS UIMA Committee: <http://www.oasis-open.org/committees/uima/>.

Unstructured Information Management applications are software systems
that analyze large volumes of unstructured information in order to
discover knowledge that is relevant to an end user.

An example UIM application might ingest plain text and identify
entities, such as persons, places, organizations; or relations,
such as works-for or located-at.

%package -n jcasgen-maven-plugin
Summary:       Apache UIMA Maven JCasGen Plugin

%description -n jcasgen-maven-plugin
A Maven Plugin for using JCasGen to generate Java classes from
XML type system descriptions.

%package -n uima-pear-maven-plugin
Summary:       Apache UIMA Maven Pear Plugin

%description -n uima-pear-maven-plugin
This is a maven plugin that produces a pear artifact.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q
# Cleanup
find .  -name "*.jar" -delete
find .  -name "*.bat" -delete
find .  -name "*.class" -delete
find .  -name "*.cmd" -delete

%patch0 -p1

# Build @ random fails
%pom_remove_plugin -r :apache-rat-plugin
# org.semver:enforcer-rule:0.9.33
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :maven-javadoc-plugin

# Remove eclipse stuff (dont provides pom or depmap file)
%pom_disable_module ../aggregate-%{name}-eclipse-plugins aggregate-%{name}
%pom_remove_dep org.apache.uima:%{name}-ep-cas-editor
%pom_remove_dep org.apache.uima:%{name}-ep-configurator
%pom_remove_dep org.apache.uima:%{name}-ep-debug
%pom_remove_dep org.apache.uima:%{name}-ep-jcasgen
%pom_remove_dep org.apache.uima:%{name}-ep-pear-packager
%pom_remove_dep org.apache.uima:%{name}-ep-runtime
%pom_remove_dep org.apache.uima:%{name}-ep-cas-editor-ide
%pom_remove_dep org.apache.uima:%{name}-ep-launcher
%pom_remove_dep org.apache.uima:%{name}-examples
%pom_disable_module ../%{name}-examples aggregate-%{name}

# Disable SOAP module which relies upon the ancient and obsolete axis library
%pom_disable_module ../%{name}-adapter-soap aggregate-%{name}
%pom_remove_dep org.apache.uima:%{name}-adapter-soap

# Unavailable deps org.apache.uima:uima-docbook-olink:zip:olink:1-SNAPSHOT
%pom_disable_module ../aggregate-%{name}-docbooks aggregate-%{name}

# These tests @ random fails
rm -r %{name}-core/src/test/java/org/apache/uima/internal/util/UIMAClassLoaderTest.java \
  %{name}-core/src/test/java/org/apache/uima/cas/test/SofaTest.java \
  %{name}-core/src/test/java/org/apache/uima/analysis_engine/impl/AnalysisEngine_implTest.java \
  %{name}-core/src/test/java/org/apache/uima/util/impl/JSR47Logger_implTest.java \
  jcasgen-maven-plugin/src/test/java/org/apache/uima/tools/jcasgen/maven/JCasGenMojoTest.java
# These tests fails with java8
rm -r %{name}-tools/src/test/java/org/apache/uima/tools/viewer/CasAnnotationViewerTest.java

# Unavailable test:crossref2:1.0.0-SNAPSHOT
%pom_remove_plugin :maven-invoker-plugin jcasgen-maven-plugin
 
sed -i 's/\r//' NOTICE README

%pom_xpath_set "pom:dependency[pom:artifactId = 'log4j']/pom:version" 1.2.17 %{name}-core

%mvn_package :PearPackagingMavenPlugin uima-pear-maven-plugin
%mvn_package :jcasgen-maven-plugin jcasgen-maven-plugin

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc README RELEASE_NOTES.html
%license LICENSE NOTICE

%files -n jcasgen-maven-plugin -f .mfiles-jcasgen-maven-plugin
%license LICENSE NOTICE

%files -n uima-pear-maven-plugin -f .mfiles-uima-pear-maven-plugin
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20048 |21mr|uima-parent-pom-10-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          uima-parent-pom
Version:       10
Release:       9
Summary:       Apache UIMA Parent POM
License:       ASL 2.0
URL:           http://uima.apache.org/
Source0:       https://github.com/apache/uima-build/archive/parent-pom-%{version}.tar.gz
# uima-parent-pom package don't include the license file
# reported @ https://issues.apache.org/jira/browse/UIMA-3575
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt
Patch0:        apache-parent-pom-18.patch

BuildRequires: maven-local
BuildRequires: mvn(ant-contrib:ant-contrib)
BuildRequires: mvn(jakarta-regexp:jakarta-regexp)
BuildRequires: mvn(org.apache.ant:ant-apache-regexp)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires: mvn(org.apache:apache:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
UIMA (Unstructured Information Management Architecture).
UIMA promotes community development and reuse of annotators
that extract meta-data from unstructured information (text,
audio, video, etc.); it provides for externalized declaration of
type systems, component configuration, aggregation, and more,
supports scalablity, and provides tooling.

This package provides Parent for Apache UIMA Projects.

%prep
%setup -q -n uima-build-parent-pom-%{version}
%patch0 -p1

%pom_xpath_remove pom:Embed-Dependency
%pom_xpath_remove pom:Embed-Directory
%pom_xpath_remove pom:Bundle-ClassPath
%pom_xpath_set pom:Include-Resource '{maven-resources}'
# Deprecated entry
%pom_xpath_remove pom:Bundle-RequiredExecutionEnvironment

%pom_remove_plugin org.apache.uima:uima-build-helper-maven-plugin
%pom_remove_plugin com.agilejava.docbkx:docbkx-maven-plugin
%pom_remove_plugin :maven-changes-plugin
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-remote-resources-plugin
%pom_remove_plugin :maven-javadoc-plugin

# unavailable deps org.apache.uima:uima-docbook-olink:zip:olink:1-SNAPSHOT
# https://svn.apache.org/repos/asf/uima/build/trunk/uima-docbook-olink/
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'process-docbook']"
# Unavailable deps
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'build-eclipse-update-subsite']"
%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'build distribution']"

cp -p %{SOURCE1} .
sed -i 's/\r//' LICENSE-2.0.txt README.txt

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20049 |21mr|umbrello-23.08.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	UML diagramming tool for KDE
Name:		umbrello
Version:	23.08.4
Release:	1
Epoch:		1
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		http://www.kde.org
Source0:	https://download.kde.org/stable/release-service/%{version}/src/%{name}-%{version}.tar.xz
Source10:	umbrello.rpmlintrc
BuildRequires:	appstream-util
BuildRequires:	extra-cmake-modules
BuildRequires:	boost-devel
BuildRequires:	kdevelop-pg-qt-devel
BuildRequires:	kdevelop-php
BuildRequires:	kdevplatform-devel
BuildRequires:	kf5archive-devel
BuildRequires:	kf5completion-devel
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5crash-devel
BuildRequires:	kf5doctools-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5iconthemes-devel
BuildRequires:	kf5kcmutils-devel
BuildRequires:	kf5kdelibs4support-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5parts-devel
BuildRequires:	kf5texteditor-devel
BuildRequires:	kf5threadweaver-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	kf5xmlgui-devel
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WebKit)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	clang
BuildRequires:	llvm-devel

%description
Umbrello UML Modeller is a UML diagramming tool for KDE.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.kde.umbrello.desktop
%{_kde5_bindir}/po2xmi5
%{_kde5_bindir}/xmi2pot5
%{_kde5_bindir}/umbrello5
%{_kde5_datadir}/umbrello5
%{_kde5_iconsdir}/*/*/*/umbrello.*
%{_kde5_iconsdir}/*/*/mimetypes/application-x-uml.png
%{_appdatadir}/org.kde.umbrello.appdata.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name} --all-name --with-html --with-kde

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20050 |21mr|umockdev-0.17.10-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 1.0
%define major 0
%define libname %mklibname %{name} %{major}
%define libpreload %mklibname %{name}-preload %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} -d

Summary:	Mock hardware devices
Name:		umockdev
Version:	0.17.10
Release:	1
License:	LGPLv2+
Group:		System/Configuration/Hardware
Url:		https://github.com/martinpitt/umockdev
Source0:	https://github.com/martinpitt/umockdev/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	chrpath
BuildRequires:	gphoto2
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	python3
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(libpcap)
Requires:	%{libname} = %{EVRD}

%description
With this program and libraries you can easily create mock udev objects.
This is useful for writing tests for software which talks to
hardware devices.

%files
%doc README.md
%license COPYING
%{_bindir}/%{name}-*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Mock hardware devices library
Group:		System/Libraries
Requires:	%{libpreload} = %{EVRD}

%description -n %{libname}
PCManFM Qt backend library.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/UMockdev-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{libpreload}
Summary:	Mock hardware devices library
Group:		System/Libraries
Requires:	%{name}

%description -n %{libpreload}
PCManFM Qt backend library.

%files -n %{libpreload}
%{_libdir}/lib%{name}-preload.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development packages for %{name}
Group:		Development/C++
Requires:	%{name} = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains the libraries to develop
using %{name}.

%files -n %{devname}
%doc docs/script-format.txt docs/examples/battery.c docs/examples/battery.py
%{_datadir}/gir-1.0/UMockdev-%{api}.gir
%{_datadir}/gtk-doc/html/%{name}/
%{_datadir}/vala/vapi/%{name}-%{api}.vapi
%{_includedir}/%{name}-%{api}
%{_libdir}/lib%{name}.so
%{_libdir}/lib%{name}-preload.so
%{_libdir}/pkgconfig/%{name}-%{api}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export CFLAGS="%{optflags} -Wno-error=strict-aliasing"
%meson -Dgtk_doc=true
%meson_build

%install
%meson_install

# Remove rpath
chrpath --delete %{buildroot}%{_bindir}/%{name}-record %{buildroot}%{_bindir}/%{name}-run
chrpath --delete %{buildroot}%{_libdir}/lib%{name}.so.*
chrpath --delete %{buildroot}%{_libdir}/lib%{name}-preload.so.*

rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20051 |21mr|unar-1.10.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           unar
Version:        1.10.1
Release:        5
Summary:        Multi-format extractor
License:        LGPLv2+
Group:          Archiving/Compression
URL:            https://theunarchiver.com/command-line
Source0:        https://cdn.theunarchiver.com/downloads/TheUnarchiverSource.zip
BuildRequires:  bzip2-devel
BuildRequires:  gcc-objc
BuildRequires:  gcc-c++
BuildRequires:  gnustep-base-devel
BuildRequires:  icu-devel
BuildRequires:  make
BuildRequires:  zlib-devel
BuildRequires:  unzip

%description
The command-line utilities lsar and unar are capable of listing and extracting
files respectively in several formats including RARv5, RAR support includes
encryption and multiple volumes, unar can serve as a free and open source
replacement of unrar.

%prep
%setup -q -c
# recursively remove executable bit from every file, skipping directories
find . -type f -print0 | xargs -0 chmod -x

%build
# LTO is able to more thoroughly propagate constants and as a result
# exposes the constant 0 to a point where an Objective-C object with
# a catchable type must be used.  Disable LTO until the package
# gets fixed
%define _lto_cflags %{nil}
export OBJCFLAGS="%{optflags}"
%make -C XADMaster -f Makefile.linux

%install
install -d %{buildroot}%{_bindir}
install -pm755 XADMaster/unar XADMaster/lsar %{buildroot}%{_bindir}
install -d %{buildroot}%{_mandir}/man1
install -pm644 Extra/*.1 %{buildroot}%{_mandir}/man1
install -d %{buildroot}%{_datadir}/bash-completion/completions
install -pm644 Extra/lsar.bash_completion %{buildroot}%{_datadir}/bash-completion/completions/lsar
install -pm644 Extra/unar.bash_completion %{buildroot}%{_datadir}/bash-completion/completions/unar

%check
# check version because archive with source code is not versioned
[ "$(%{buildroot}%{_bindir}/unar --version | tr -d v)" = "%{version}" ]

%files
%license License.txt
%{_bindir}/lsar
%{_bindir}/unar
%{_mandir}/man1/*.1*
%{_datadir}/bash-completion/completions/lsar
%{_datadir}/bash-completion/completions/unar

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20052 |21mr|unbescape-1.1.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .RELEASE
%global namedversion %{version}%{?namedreltag}
Name:          unbescape
Version:       1.1.1
Release:       9
Summary:       Advanced yet easy to use escaping library for Java
License:       ASL 2.0
URL:           http://www.unbescape.org/
Source0:       https://github.com/unbescape/unbescape/archive/%{name}-%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Unbescape is a Java library aimed at performing fully-featured and
high-performance escape and unescape operations for:

° HTML (HTML5 and HTML 4)
° XML (XML 1.0 and XML 1.1)
° JavaScript
° JSON
° URI/URL (both paths and query parameters)
° CSS (both identifiers and string literals)
° CSV (Comma-Separated Values)
° Java literals
° Java .properties files (both keys and values)

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{namedversion}
find -name "*.class" -delete
find -name "*.jar" -print -delete
rm -r src/site/*

%pom_remove_plugin :maven-assembly-plugin
%pom_remove_plugin :maven-gpg-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"
%pom_xpath_remove "pom:reportOutputDirectory"

%pom_xpath_set "pom:maven.compile.source" 1.6
%pom_xpath_set "pom:maven.compile.target" 1.6

# Default is US-ASCII
%pom_xpath_set "pom:encoding" UTF-8

chmod 644 NOTICE.txt

%mvn_file : %{name}

%build

%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc ChangeLog.txt CONTRIBUTING.markdown README.markdown RELEASING.txt USAGE.txt
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20053 |21mr|unbound-1.17.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 8
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	A validating, recursive, and caching DNS resolver
Name:		unbound
Version:	1.17.0
Release:	1
License:	BSD
Group:		System/Servers
Url:		https://unbound.net
Source0:	https://nlnetlabs.nl/downloads/unbound/%{name}-%{version}.tar.gz
Source1:	%{name}-tmpfiles.conf
# NOTE: There's more complex contrib/unbound.service in sources
Source2:	%{name}.service
Source3:	%{name}_rosa.conf
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libevent)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)
# For Python bindings
BuildRequires:  pkgconfig(python3)
BuildRequires:  swig
Requires(pre,post,preun,postun):	rpm-helper

%description
Unbound is a validating, recursive, and caching DNS resolver. The C
implementation of Unbound is developed and maintained by NLnet Labs. It is
based on ideas and algorithms taken from a java prototype developed by
Verisign labs, Nominet, Kirei and ep.net. It is designed as a set of modular
components, so that also DNSSEC (secure DNS) validation and stub-resolvers
(that do not run as a server, but are linked into an application) are easily
possible.

%files
%doc LICENSE README
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.conf
%{_sbindir}/%{name}*
%{_mandir}/man1/%{name}*.1*
%{_mandir}/man5/%{name}*.5*
%{_mandir}/man8/%{name}*.8*
%{_tmpfilesdir}/%{name}.conf
%{_unitdir}/%{name}.service
%{_docdir}/%{name}/unbound.conf

%pre
%_pre_useradd %{name} /dev/null /bin/false

%post
%tmpfiles_create %{_tmpfilesdir}/%{name}.conf
%_post_service %{name}

%preun
%_preun_service %{name}

%postun
%_postun_userdel %{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for Unbound
Group:		System/Libraries

%description -n %{libname}
Shared library for Unbound.

%files -n %{libname}
%doc LICENSE
%{_libdir}/lib%{name}.so.%{major}
%{_libdir}/lib%{name}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development headers and libraries for Unbound
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development headers and libraries for Unbound.

%files -n %{devname}
%doc LICENSE
%{_includedir}/*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/libunbound.pc
%{_mandir}/man3/*.3.*

#----------------------------------------------------------------------------

%package -n python3-unbound
Summary:        Python 3 modules and extensions for unbound
Group:          Development/Python
%{?python_provide:%python_provide python3-unbound}
Requires:       %{libname}%{?_isa} = %{version}-%{release}

%description -n python3-unbound
Python 3 modules and extensions for unbound

%files -n python3-unbound
%license pythonmod/LICENSE
%{python3_sitearch}/*
%doc libunbound/python/examples/*
%doc pythonmod/examples/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
export PYTHON=%__python3
%configure \
	--disable-rpath \
	--disable-static \
	--with-libevent \
	--enable-event-api \
	--with-pythonmodule \
	--with-pyunbound

%make_build

%install
%make_install
install -D -p -m 0644 %{buildroot}%{_sysconfdir}/%{name}/unbound.conf %{buildroot}%{_docdir}/%{name}/unbound.conf
install -D -p -m 0644 %{SOURCE1} %{buildroot}%{_tmpfilesdir}/%{name}.conf
install -D -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}/%{name}.service
install -D -p -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/%{name}/%{name}.conf
install -D -p -m 0644 contrib/libunbound.pc %{buildroot}%{_libdir}/pkgconfig/libunbound.pc



# CVE-2020-28935
# CVE-2022-30698
# CVE-2022-30699
# CVE-2022-3204

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20054 |21mr|uncommons-maths-1.2.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global with_ant 0
Name:          uncommons-maths
Version:       1.2.3
Release:       12
Summary:       Random number generators library for Java
License:       ASL 2.0
Url:           http://maths.uncommons.org/
Source0:       https://github.com/dwdyer/uncommons-maths/archive/Release-%{version}.tar.gz
# fix project encoding
# add dependencies
# add maven plugins configuration
Patch0:        uncommons-maths-1.2.3-pom.patch

BuildRequires: mvn(org.jfree:jcommon)
BuildRequires: mvn(org.jfree:jfreechart)

%if %with_ant
BuildRequires: ant
BuildRequires: aqute-bnd
BuildRequires: javapackages-tools
# https://bugzilla.redhat.com/show_bug.cgi?id=1069493
BuildRequires: uncommons-antlib

Requires:      jcommon
Requires:      jfreechart
Requires:      java-headless
Requires:      javapackages-tools
%else
BuildRequires: maven-local
BuildRequires: maven-plugin-bundle
%endif

%if 0
# Test deps
BuildRequires: mvn(org.testng:testng)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Uncommons Maths library provides five easy-to-use,
statistically sound, high-performance pseudo-random
number generators (RNGs).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-Release-%{version}
find . -name "*.jar" -print -delete
find . -name "*.class" -print -delete
rm -r lib/compiletime/diehard/diehard

%patch0 -p0
sed -i "s|<version>@VERSION@</version>|<version>%{version}</version>|" core/pom.xml

%if %with_ant
pushd lib
  pushd compiletime
# unavailable ant task in aqute-bndlib pkg
    ln -sf $(build-classpath aqute-bnd) bnd/bnd-1.50.0.jar
    ln -sf $(build-classpath testng) testng/testng-5.13.1.jar
    ln -sf $(build-classpath uncommons-antlib) uncommons-antlib-0.3.1.jar
  popd
  pushd runtime
    ln -sf $(build-classpath jcommon) jcommon-1.0.12.jar
    ln -sf $(build-classpath jfreechart/jfreechart) jfreechart-1.0.8.jar
  popd
popd

sed -i 's|classpath="${artifact.identifier}.jar jfreechart-1.0.8.jar jcommon-1.0.12.jar"||' build.xml
sed -i 's|depends="core, demo"|depends="core"|' build.xml
%endif

%build

%if %with_ant
ant
ant docs
%else
cd core
%mvn_file : %{name}
# Test skipped unable to run test suite without uncommons-antlib support
%mvn_build -f
%endif

%install

%if %with_ant
mkdir -p %{buildroot}%{_javadir}
install -pm 644 core/build/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 core/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
%add_maven_depmap JPP-%{name}.pom %{name}.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr docs/api/* %{buildroot}%{_javadocdir}/%{name}
%else
cd core
%mvn_install
%endif

%if %with_ant
%files -f .mfiles
%else
%files -f core/.mfiles
%endif
%doc CHANGELOG.txt
%license LICENCE.txt NOTICE.txt

%if %with_ant
%files javadoc
%{_javadocdir}/%{name}
%else
%files javadoc -f core/.mfiles-javadoc
%endif
%license LICENCE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20055 |21mr|uncrustify-0.64-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Reformat Source
Name:		uncrustify
Version:	0.64
Release:	2
License:	GPLv2+
Group:		Development/Tools
Url:		http://uncrustify.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/uncrustify/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
Source Code Beautifier for C, C++, C#, D, Java, and Pawn.

%files
%doc COPYING AUTHORS README.md NEWS
%doc documentation
%{_bindir}/uncrustify
%{_mandir}/man1/uncrustify.1*

#----------------------------------------------------------------------------

%prep
%setup -qc

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20056 |21mr|undertow-1.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name:             undertow
Version:          1.4.0
Release:          6
Summary:          Java web server using non-blocking IO
License:          ASL 2.0
URL:              http://undertow.io/
Source0:          https://github.com/undertow-io/undertow/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
# Remove unavailable methods in jetty-alpn-api-1.1.0
Patch0:           undertow-1.4.0-jetty-alpn-api-1.1.0.patch

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Epoch:            1

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.eclipse.jetty.alpn:alpn-api)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.classfilewriter:jboss-classfilewriter)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec)
BuildRequires:    mvn(org.jboss.xnio:xnio-api)
BuildRequires:    mvn(org.jboss.xnio:xnio-nio)

%description
Java web server using non-blocking IO

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%patch0 -p1

rm -rf mac-jdk-fix

# Not needed
%pom_disable_module examples

%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin org.bitstrings.maven.plugins:dependencypath-maven-plugin core
%pom_remove_plugin org.bitstrings.maven.plugins:dependencypath-maven-plugin servlet
%pom_remove_dep -r io.undertow.build:undertow-checkstyle-config

# Disable default-jar execution of maven-jar-plugin, which is causing
# problems with version 3.0.0 of the plugin.
for p in core servlet;do
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions" "
 <execution>
  <id>default-jar</id>
  <phase>skip</phase>
 </execution>" ${p}
done

%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20057 |21mr|undertow-js-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

# Unavailable test dep: io.undertow:undertow-core:test-jar:
%bcond_with tests

Name:          undertow-js
Version:       1.0.2
Release:       6
Summary:       JavaScript based handlers for Undertow
License:       ASL 2.0
URL:           https://github.com/undertow-io/undertow.js
Source0:       https://github.com/undertow-io/undertow.js/archive/%{namedversion}.tar.gz
# https://issues.jboss.org/browse/UTJS-3
# https://issues.jboss.org/browse/UTJS-4
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(com.github.spullara.mustache.java:compiler)
BuildRequires: mvn(io.undertow:undertow-core)
BuildRequires: mvn(io.undertow:undertow-servlet)
BuildRequires: mvn(io.undertow:undertow-websockets-jsr)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(org.freemarker:freemarker) >= 2.3.23
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)

%if %{with tests}
BuildRequires: mvn(com.h2database:h2)
BuildRequires: mvn(io.undertow:undertow-core:test-jar:)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec)
BuildRequires: mvn(org.jboss.xnio:xnio-nio)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Undertow.js is an integration library that provides and
easy way to integrate server side JavaScript code
with Java EE components.

This project allows you to register Undertow handlers
using javascript, which can inject and use EE components
such as CDI beans. It supports hot deployment, so it
is possible to modify your scripts without any compile +
redeploy cycle (especially when combined with the
upcoming external resource support in Wildfly).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n undertow.js-%{namedversion}

cp -p %{SOURCE1} LICENSE
sed -i 's/\r//' LICENSE

%if %{without tests}
%pom_xpath_remove "pom:dependency[pom:type = 'test-jar']"
%pom_xpath_remove "pom:dependency[pom:scope = 'test']"
%endif

%mvn_file io.undertow.js:%{name} %{name}

%build

%if %{without tests}
opts="-f"
%endif
# Test disabled: unavailable test dep
%mvn_build $opts

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20058 |21mr|unicode-emoji-11.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global unicodedir %{_datadir}/unicode
%global emojidir %{unicodedir}/emoji

Name:           unicode-emoji
Version:        11.0
Release:        1
Summary:        Unicode Emoji Data Files
Group:          System/Internationalization
License:        Unicode
URL:            http://www.unicode.org/emoji/
Source0:        http://www.unicode.org/copyright.html
Source1:        http://www.unicode.org/Public/emoji/11.0/ReadMe.txt
Source2:        http://www.unicode.org/Public/emoji/11.0/emoji-data.txt
Source3:        http://www.unicode.org/Public/emoji/11.0/emoji-sequences.txt
Source4:        http://www.unicode.org/Public/emoji/11.0/emoji-test.txt
Source5:        http://www.unicode.org/Public/emoji/11.0/emoji-variation-sequences.txt
Source6:        http://www.unicode.org/Public/emoji/11.0/emoji-zwj-sequences.txt
BuildArch:      noarch

%description
Unicode Emoji Data Files are the machine-readable
emoji data files associated with
http://www.unicode.org/reports/tr51/index.html

%prep
%{nil}

%build
%{nil}

%install
cp -p %{SOURCE0} .
mkdir -p %{buildroot}%{emojidir}
cp -p %{SOURCE1} %{buildroot}%{emojidir}
cp -p %{SOURCE2} %{buildroot}%{emojidir}
cp -p %{SOURCE3} %{buildroot}%{emojidir}
cp -p %{SOURCE4} %{buildroot}%{emojidir}
cp -p %{SOURCE5} %{buildroot}%{emojidir}
cp -p %{SOURCE6} %{buildroot}%{emojidir}

%files
%dir %{unicodedir}
%dir %{emojidir}
%doc %{emojidir}/ReadMe.txt
%{emojidir}/emoji-*txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20059 |21mr|unicode-ucd-9.0.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Unicode Character Database
Name:		unicode-ucd
Version:	9.0.0
Release:	4
License:	MIT
Group:		System/Internationalization
Url:		http://www.unicode.org/ucd/
Source0:	http://www.unicode.org/Public/zipped/%{version}/UCD.zip
Source1:	http://www.unicode.org/Public/zipped/%{version}/Unihan.zip
# http://www.unicode.org/terms_of_use.html referenced in ReadMe.txt redirects to:
Source10:	http://www.unicode.org/copyright.html
BuildArch:	noarch

%description
The Unicode Character Database (UCD) consists of a number of data files
listing Unicode character properties and related data. It also includes
data files containing test data for conformance to several important
Unicode algorithms.

%files
%doc ReadMe.txt copyright.html
%dir %{_datadir}/unicode
%{_datadir}/unicode/ucd/

#----------------------------------------------------------------------------

%prep
%setup -q -c
grep -q "%{version}" ReadMe.txt || (echo "zip file seems not %{version}" ; exit 1)
cp %{SOURCE1} .
cp %{SOURCE10} .

%build

%install
install -d %{buildroot}%{_datadir}/unicode/ucd
cp -ar . %{buildroot}%{_datadir}/unicode/ucd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20060 |21mr|unifdef-2.12-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool for removing ifdef'd lines
Name:		unifdef
Version:	2.12
Group:		System/Base
Release:	1
License:	BSD
URL:		http://dotat.at/prog/unifdef/
Source0:	http://dotat.at/prog/unifdef/unifdef-%{version}.tar.xz

%description
Unifdef is useful for removing ifdefed lines from a file while otherwise
leaving the file alone. Unifdef acts on #ifdef, #ifndef, #else, and #endif
lines, and it knows only enough about C and C++ to know when one of these
is inactive because it is inside a comment, or a single or double quote.

%prep
%autosetup -p1

%build
%make_build CFLAGS="%{optflags}"

%install
install -d -m0755 %{buildroot}/%{_bindir}
install -p -m0755 unifdef %{buildroot}/%{_bindir}/unifdef
install -p -m0755 unifdefall.sh %{buildroot}/%{_bindir}/unifdefall.sh

install -d -m0755 %{buildroot}/%{_mandir}/man1
install -p -m0644 unifdef.1 %{buildroot}/%{_mandir}/man1/unifdef.1

%files
%{_bindir}/unifdef
%{_bindir}/unifdefall.sh
%{_mandir}/man1/unifdef.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20061 |21mr|unit-api-1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          unit-api
Version:       1.0
Release:       7
Summary:       JSR 363 - Units of Measurement API
# JSR-363 has been approved as an official JCP standard (https://jcp.org/en/jsr/results?id=5877)
License:       BSD
URL:           http://unitsofmeasurement.github.io/
Source0:       https://github.com/unitsofmeasurement/unit-api/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Unit of Measurement library provides a set of
Java language programming interfaces for handling
units and quantities. The interfaces provide a layer
which separates client code, which would call the
API, from library code, which implements the API.

The specification contains Interfaces and abstract
classes with methods for unit operations:

* Checking of unit compatibility
* Expression of a quantity in various units
* Arithmetic operations on units

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

# Not available plugins
%pom_remove_plugin :coveralls-maven-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :formatter-maven-plugin
# Useless tasks
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_plugin :license-maven-plugin
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :maven-site-plugin
%pom_remove_plugin :maven-source-plugin

# Remove duplicate pom entry
%pom_remove_plugin :maven-jar-plugin
%pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:'${maven.jar.version}' . "
<executions>
   <execution>
      <goals>
         <goal>test-jar</goal>
      </goals>
   </execution>
</executions>"
# Fix pom entries
%pom_remove_plugin :maven-bundle-plugin
%pom_add_plugin org.apache.felix:maven-bundle-plugin:'${felix.version}' . "
<extensions>true</extensions>
<configuration>
  <instructions>
    <Specification-Title>\${project.name}</Specification-Title>
    <Specification-Version>\${project.version}</Specification-Version>
    <Specification-Vendor>\${project.organization.name}</Specification-Vendor>
    <Implementation-Vendor>Unit-API contributors</Implementation-Vendor>
    <Implementation-URL>\${project.organization.url}</Implementation-URL>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>"

%mvn_file  : %{name}
%mvn_file :%{name}:tests: %{name}-tests
%mvn_package :%{name}:tests: %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20062 |21mr|universal-ru-dict-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# ru: Коммит с последними изменениями словаря
# en: Commit with the latest dictionary changes
%define commit 30dd499a102c930b6386d9b0b44ed13e9d4cf8d2

Summary:	Universal Russian Spelling, Hyphenation and Thesaurus dictionaries
Name:		universal-ru-dict
Version:	1.0.0
Release:	1
License:	BSD/GPL/LGPL
Group:		System/Internationalization
Url:		https://github.com/LibreOffice/dictionaries/tree/master
## ru: Архив со словарем для проверки орфографии, словарем переноса слов и тезаурусом
## en: Spell checking dictionary, Hyphenation dictionary and Thesaurus dictionary
Source0:	https://github.com/LibreOffice/dictionaries/archive/%{commit}.tar.gz?/dictionaries-%{commit}.tar.gz
Source1:	https://github.com/hunspell/mythes/blob/v1.2.5/th_gen_idx.pl
# ru: Добавление новых слов в словарь проверки орфографии
# en: Add new words to the spell checking dictionary
Patch0:		new_words.patch
BuildRequires:	hspell-devel
BuildArch:	noarch

%description
Package contain universal Russian spell checking data to be used by Hunspell and MySpell.
The dictionary is based on the Hunspell and MySpell dictionaries, as well as the work of the AoT team.

#------------------------------------------------------------------

%package myspell
Summary:	Universal Russian Spelling, Hyphenation and Thesaurus dictionaries for myspell-ru
Group:		System/Internationalization
Provides:	myspell-ru_RU = %{EVRD}
Conflicts:	myspell-ru_RU < 1.0.2-50
Obsoletes:	myspell-ru_RU < 1.0.2-50
Requires(preun): perl
Requires(post): grep

%description myspell
Package contain universal Russian spell checking data to be used by MySpell-ru.
The dictionary is based on the Hunspell and MySpell dictionaries, as well as the work of the AoT team.

%files myspell
%{_datadir}/dict/ooo/ru_RU.{dic,aff}
%{_datadir}/dict/ooo/hyph_ru_RU.dic
%{_datadir}/dict/ooo/th_ru_RU.{dat,idx}

## ru: Удаление записей о словарях из usr/share/dict/ooo/dictionary.lst при удалении пакета
## en: Remove dictionary entries from usr/share/dict/ooo/dictionary.lst when removing a package
%preun myspell
if [[ $1 = 0 ]]; then
	perl -ni -e "/^DICT\s*ru\s*RU\s*ru_RU\$/ or print" %{_datadir}/dict/ooo/dictionary.lst
	perl -ni -e "/^HYPH\s*ru\s*RU\s*hyph_ru_RU\$/ or print" %{_datadir}/dict/ooo/dictionary.lst
	perl -ni -e "/^THES\s*ru\s*RU\s*th_ru_RU\$/ or print" %{_datadir}/dict/ooo/dictionary.lst
fi

## ru: Добавление записей о словарях в usr/share/dict/ooo/dictionary.lst после установки
## en: Add dictionary entries to usr/share/dict/ooo/dictionary.lst after installation
%posttrans myspell
if [ ! -f "%{_datadir}/dict/ooo/dictionary.lst" ] || \
	! grep -q "^DICT[ \t]*ru[ \t]*RU[ \t]*ru_RU" %{_datadir}/dict/ooo/dictionary.lst
then
	echo "DICT ru RU ru_RU" >> %{_datadir}/dict/ooo/dictionary.lst
fi
if ! grep -q "^HYPH[ \t]*ru[ \t]*RU[ \t]*hyph_ru_RU" %{_datadir}/dict/ooo/dictionary.lst
then
	echo "HYPH ru RU hyph_ru_RU" >> %{_datadir}/dict/ooo/dictionary.lst
fi
if ! grep -q "^THES[ \t]*ru[ \t]*RU[ \t]*th_ru_RU" %{_datadir}/dict/ooo/dictionary.lst
then
	echo "THES ru RU th_ru_RU" >> %{_datadir}/dict/ooo/dictionary.lst
fi

#------------------------------------------------------------------

%package hunspell
Summary:	Universal Russian Spelling, Hyphenation and Thesaurus dictionaries for hunspell-ru
Group:		System/Internationalization
Requires:	hunspell-filesystem

%description hunspell
Package contain universal Russian spell checking data to be used by Hunspell-ru.
The dictionary is based on the Hunspell and MySpell dictionaries, as well as the work of the AoT team.

%files hunspell
%{_datadir}/hunspell/ru_RU.{dic,aff}

#------------------------------------------------------------------

%prep
%autosetup -p1 -n dictionaries-%{commit}/ru_RU
chmod +x %{SOURCE1}
cat th_ru_RU_M_aot_and_v2.dat | %{SOURCE1} > th_ru_RU.idx

## ru: Добавление симлинков для приложений Mozilla
## en: Add symlinks for mozilla apps
## TODO [03.10.2023]: Есть сомнения в нужности этих линков вообще.
## В Thunderbird проверка орфографии автоматически не применилась, включилась только после установки плагина с русским языком.
## В Firefox аналогично, управляется плагином. Нужно будет провести дополнительные тесты, мб в других программах будет другое поведение.
## Тесты проводились как с этим пакетом, так и с myspell-ru.
## Код пока оставлен, в целях совместимости с поведением, которое приведено в myspell-dictionaries.spec.
mkdir -p moz
ln -s $myspelldir/dictionaries-%{commit}/ru_RU/ru_RU.aff moz/ru.aff
ln -s $myspelldir/dictionaries-%{commit}/ru_RU/ru_RU.dic moz/ru.dic

%build

%install
mkdir -p %{buildroot}%{_datadir}/dict/ooo
install -m 644 ru_RU.{dic,aff} %{buildroot}%{_datadir}/dict/ooo
install -m 644 hyph_ru_RU.dic %{buildroot}%{_datadir}/dict/ooo
install -m 644 th_ru_RU_M_aot_and_v2.dat %{buildroot}%{_datadir}/dict/ooo/th_ru_RU.dat
install -m 644 th_ru_RU.idx %{buildroot}%{_datadir}/dict/ooo
mkdir -p %{buildroot}%{_datadir}/hunspell
install -m 644 ru_RU.{dic,aff} %{buildroot}%{_datadir}/hunspell

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20063 |21mr|univocity-parsers-2.5.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           univocity-parsers
Version:        2.5.5
Release:        6
Summary:        Collection of parsers for Java
License:        ASL 2.0
URL:            https://github.com/uniVocity/univocity-parsers
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/uniVocity/univocity-parsers/archive/v%{version}.tar.gz

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)

%description
uniVocity-parsers is a suite of extremely fast and reliable parsers
for Java.  It provides a consistent interface for handling different
file formats, and a solid framework for the development of new
parsers.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
API documentation for %{name}.

%prep
%setup -q

%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin :maven-javadoc-plugin

%build
# Tests require univocity-output-tester, which is not packaged yet.
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.html

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20064 |21mr|unixODBC-2.3.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d
%define _disable_rebuild_configure 1

# lib*.so.1
%define libs_1 \
esoobS \
mimerS \
nn \
odbcdrvcfg1S \
odbcdrvcfg2S \
odbcminiS \
odbcmyS \
odbcnnS \
odbcpsqlS \
odbctxtS \
oplodbcS \
oraodbcS \
sapdbS \
tdsS \
template

# lib*.so.2
%define libs_2 \
odbccr \
odbcinst \
odbcpsql \
odbc

%define requires_1 %{expand:%(for i in $(echo "%{libs_1}"); do echo "Requires: %%{mklibname $i 1} = %%{EVRD}"; done)}
%define requires_2 %{expand:%(for i in $(echo "%{libs_2}"); do echo "Requires: %%{mklibname $i %{major}} = %%{EVRD}"; done)}

Summary:	Unix ODBC driver manager and database drivers
Name:		unixODBC
Version:	2.3.9
Release:	2
License:	GPLv2+ and LGPLv2+
Group:		Databases
Url:		http://www.unixODBC.org/
Source0:	http://www.unixodbc.org/%{name}-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	readline-devel
BuildRequires:	libltdl-devel
# XXX Is it needed? Maybe AutoReq will be enough
%{requires_1}
%{requires_2}

%description
UnixODBC is a free/open specification for providing application developers 
with a predictable API with which to access Data Sources. Data Sources include 
SQL Servers and any Data Source with an ODBC Driver.

%files
%doc AUTHORS INSTALL ChangeLog NEWS README
%config(noreplace) %verify(not md5 size mtime) %{_sysconfdir}/odbc*.ini
%dir %{_sysconfdir}/ODBCDataSources
%{_bindir}/dltest
%{_bindir}/isql
%{_bindir}/iusql
%{_bindir}/odbcinst
%{_bindir}/slencheck
%{_mandir}/man1/dltest.1*
%{_mandir}/man1/isql.1*
%{_mandir}/man1/iusql.1*
%{_mandir}/man1/odbc_config.1*
%{_mandir}/man1/odbcinst.1*
%{_mandir}/man5/odbc.ini.5*
%{_mandir}/man5/odbcinst.ini.5*
%{_mandir}/man7/unixODBC.7*

#----------------------------------------------------------------------------

%define lib_pkg() %{expand:
%define pkg %{mklibname %{1} %{2}}
%package -n %{pkg}
Summary:	Library from unixODBC
Group:		System/Libraries
Conflicts:	%{_lib}unixODBC2 < 2.3.9-2
%description -n %{pkg}
This package contains a shared unixODBC library lib%{1}.so.%{2}
%files -n %{pkg}
%{_libdir}/lib%{1}.so.%{2}*
}

%{expand:%(for i in $(echo "%{libs_1}"); do echo "%%lib_pkg $i 1"; done)}
%{expand:%(for i in $(echo "%{libs_2}"); do echo "%%lib_pkg $i %{major}"; done)}

#----------------------------------------------------------------------------

# It is needed to upgrade existing systems, will not be needed in future platforms
%if %{mdvver} <= 202110

%package -n %{libname}
Summary:	Libraries unixODBC
Group:		System/Libraries
%{requires_1}
%{requires_2}
# replace existing installations of old package with this new meta-package
Obsoletes:	%{libname} < 2.3.9-2

%description -n %{libname}
Transitional meta package that pulls all unixODBC libraries.

%files -n %{libname}
#empty

%endif #mdvver<=202110

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Includes and shared libraries for ODBC development
Group:		Development/Other
%{requires_1}
%{requires_2}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
unixODBC aims to provide a complete ODBC solution for the Linux platform.
This package contains the include files and shared libraries for development.

%files -n %{devname}
%doc doc/
%{_bindir}/odbc_config
%{_includedir}/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/odbc*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Blow away the embedded libtool and replace with build system's libtool.
# (We will use the installed libtool anyway, but this makes sure they match.)
#rm -rf config.guess config.sub install-sh ltmain.sh libltdl

# avoid +x in debugsource
find . -type f | xargs chmod 0644
chmod +x ./configure

%build
#autoreconf -fi
%configure \
	--with-included-ltdl=no \
	--disable-static \
	--enable-driverc \
	--enable-drivers

%make_build

%install
mkdir -p %{buildroot}%{_sysconfdir}
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20065 |21mr|unoconv-0.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Tool to convert between any document format supported by LibreOffice
Name:		unoconv
Version:	0.7
Release:	5
License:	GPLv2
Group:		File tools
URL:		http://dag.wieers.com/home-made/unoconv/
Source0:	http://dag.wieers.com/home-made/%{name}/%{name}-%{version}.tar.gz
Patch0:		0001-python3-added-compatibility.patch
Patch1:		0001-update-FSF-address.patch
Patch2:		0001-make-LaTeX-export-usable-with-writer2latex-ext.patch
Patch3:		0001-libreoffice-or-OO.o-has-never-had-wps-export.patch
Patch4:		0002-remove-export-formats-dropped-by-LibreOffice.patch
Patch5:		0001-Updated-ChangeLog.patch

BuildArch:	noarch

Requires:	libreoffice-common
Requires:	libreoffice-pyuno

%description
unoconv converts between any document format that LibreOffice understands.
It uses LibreOffice's UNO bindings for non-interactive conversion of
documents.

Supported document formats include Open Document Format (.odf), MS Word (.doc),
MS Office Open/MS OOXML (.xml), Portable Document Format (.pdf), HTML, XHTML,
RTF, Docbook (.xml), and more.

%prep
%setup -q
%apply_patches

%build

%install
%makeinstall_std


%files
%doc AUTHORS ChangeLog COPYING
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20066 |21mr|unzip-6.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define src_ver %(echo %{version}|sed "s/\\.//"g)

Summary:	Unpacks ZIP files such as those made by pkzip under DOS
Name:		unzip
Version:	6.0
Release:	19
License:	BSD-like
Group:		Archiving/Compression
Url:		http://www.info-zip.org/pub/infozip/UnZip.html
Source0:	http://ftp.info-zip.org/pub/infozip/src/%{name}%{src_ver}.tar.bz2
Patch0:		%{name}-6.0-libnatspec.patch
Patch1:		unzip-6.0-CVE-2014-8139.patch
Patch2:		unzip-6.0-CVE-2014-8140.patch
Patch3:		unzip-6.0-CVE-2014-8141.patch
Patch4:		unzip-6.0-overflow3.patch
Patch5:		unzip-6.0-heap-overflow-infloop.patch
# CVE-2018-18384
Patch6:		unzip-6.0-overflow-long-fsize.patch
# Patches 6-13 are from Debian
Patch7:		05-fix-uid-gid-handling.patch
Patch8:		16-fix-integer-underflow-csiz-decrypted.patch
Patch9:		19-cve-2016-9844-zipinfo-buffer-overflow.patch
Patch10:	20-cve-2018-1000035-unzip-buffer-overflow.patch
Patch11:	21-fix-warning-messages-on-big-files.patch
Patch12:	22-cve-2019-13232-fix-bug-in-undefer-input.patch
Patch13:	23-cve-2019-13232-zip-bomb-with-overlapped-entries.patch
Patch14:	24-cve-2019-13232-do-not-raise-alert-for-misplaced-central-directory.patch
BuildRequires:	pkgconfig(libnatspec)

%description
unzip will list, test, or extract files from a ZIP archive, commonly found
on MS-DOS systems. A companion program, zip, creates ZIP archives; both
programs are compatible with archives created by PKWARE's PKZIP and
PKUNZIP for MS-DOS, but in many cases the program options or default
behaviors differ.

This version also has encryption support.

%files
%doc BUGS COPYING.OLD Contents History.* INSTALL README ToDo WHERE
%doc proginfo/
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}%{src_ver}

%build
%define Werror_cflags %nil
%ifarch %{ix86}
#make -ef unix/Makefile linux CF="%{optflags} -D_FILE_OFFSET_BITS=64 -Wall -I. -DASM_CRC" CC=gcc LD=gcc AS=gcc AF="-Di386" CRC32=crc_gcc
%make -ef unix/Makefile linux CF="%{optflags} -D_FILE_OFFSET_BITS=64 -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD -DDATE_FORMAT=DF_YMD -DNATIVE -Wall -I. -DASM_CRC" CC=gcc LD=gcc AS=gcc AF="-Di386" CRC32=crc_gcc
%else
#make -ef unix/Makefile linux_noasm CF="%{optflags} -D_FILE_OFFSET_BITS=64 -Wall -I."
%make -ef unix/Makefile linux_noasm CF="%{optflags} -D_FILE_OFFSET_BITS=64 -DACORN_FTYPE_NFS -DWILD_STOP_AT_DIR -DLARGE_FILE_SUPPORT -DUNICODE_SUPPORT -DUNICODE_WCHAR -DUTF8_MAYBE_NATIVE -DNO_LCHMOD -DDATE_FORMAT=DF_YMD -DNATIVE -Wall -I."
%endif

%install
mkdir -p %{buildroot}{%{_bindir},%{_mandir}/man1}

ln -sf unzip zipinfo
for i in unzip funzip unzipsfx zipinfo; do install $i %{buildroot}%{_bindir}; done
install unix/zipgrep %{buildroot}%{_bindir}

for i in man/*.1; do install -m 644 $i %{buildroot}%{_mandir}/man1/; done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20067 |21mr|uom-lib-1.0.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          uom-lib
Version:       1.0.1
Release:       9
Summary:       Java Unit of Measurement Libraries (JSR 363)
License:       BSD
URL:           https://github.com/unitsofmeasurement/%{name}
Source0:       https://github.com/unitsofmeasurement/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: junit
BuildRequires: maven-source-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-local
BuildRequires: maven-jar-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-license-plugin
BuildRequires: maven-dependency-plugin
BuildRequires: mvn(tec.uom:uom-parent:pom:)
BuildRequires: mvn(javax.measure:unit-api)

Group:          Development/Java
BuildArch:     noarch

%description
Units of Measurement Libraries - extending and complementing JSR 363.

%package common
Summary:       Java Units of Measurement Common Library

%description common
Units of Measurement Common Library - extending and complementing JSR 363.

%package javadoc
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Summary:       Javadoc for the Units of Measurement Libraries

%description javadoc
This package contains documentation for the Units of Measurement
Libraries (JSR 363).

%prep
%setup -q -n %{name}-%{version}

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20068 |21mr|uom-parent-1.0.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: uom-parent
Version: 1.0.3
Release: 6
Summary: Units of Measurement Project Parent POM
License: BSD
URL: https://github.com/unitsofmeasurement/uom-parent
Source0: https://github.com/unitsofmeasurement/uom-parent/archive/%{version}/%{name}-%{version}.tar.gz

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires: maven-local
BuildRequires: maven-install-plugin

%description
Main parent POM for all Units of Measurement Maven projects.

%prep
%setup -q -n %{name}-%{version}
%pom_remove_parent

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20069 |21mr|uom-se-1.0.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          uom-se
Version:       1.0.4
Release:       7
Summary:       Unit Standard (JSR 363) implementation for Java SE 8 and above
License:       BSD
URL:           https://github.com/unitsofmeasurement/%{name}
Source0:       https://github.com/unitsofmeasurement/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: junit
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin
BuildRequires: maven-local
BuildRequires: maven-jar-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-license-plugin
BuildRequires: maven-dependency-plugin
BuildRequires: mvn(org.hamcrest:hamcrest-all)
BuildRequires: mvn(org.jacoco:jacoco-maven-plugin)
BuildRequires: mvn(javax.annotation:javax.annotation-api:pom:)
BuildRequires: mvn(javax.measure:unit-api)
BuildRequires: mvn(tec.uom:uom-parent:pom:)
BuildRequires: mvn(tec.uom.lib:uom-lib:pom:)

Group:          Development/Java
BuildArch:     noarch

%description
JSR 363 Implementation got Java SE 8 and above.

JDK Integration of Unit-API / JSR 363.  This implementation aims at
Java SE 8 and above, allowing the use of new features like Lambdas
together with Units of Measurement API.

%package javadoc
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Summary: Javadoc for the Units Standard (JSR 363) Java SE 8 Implementation

%description javadoc
This package contains documentation for the Units Standard (JSR 363)
Java SE 8 Implementation.

%prep
%setup -q -n %{name}-%{version}
%pom_remove_plugin com.mycila:license-maven-plugin
%pom_remove_plugin net.revelc.code:formatter-maven-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20070 |21mr|uom-systems-0.7-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          uom-systems
Version:       0.7
Release:       6
Summary:       Units of Measurement Systems (JSR 363)
License:       BSD
URL:           https://github.com/unitsofmeasurement/%{name}
Source0:       https://github.com/unitsofmeasurement/%{name}/archive/%{version}/%{name}-%{version}.tar.gz

BuildRequires: junit
BuildRequires: maven-plugin-bundle
BuildRequires: maven-source-plugin
BuildRequires: maven-local
BuildRequires: maven-jar-plugin
BuildRequires: maven-install-plugin
BuildRequires: maven-license-plugin
BuildRequires: maven-dependency-plugin
BuildRequires: mvn(org.jacoco:jacoco-maven-plugin)
BuildRequires: mvn(si.uom:si-parent:pom:)
BuildRequires: mvn(si.uom:si-units-java8:pom:)
BuildRequires: mvn(javax.measure:unit-api)
BuildRequires: mvn(tec.uom:uom-parent:pom:)
BuildRequires: mvn(tec.uom:uom-se:pom:)

Group:          Development/Java
BuildArch:     noarch

%description
Units of Measurement Systems - modules for JSR 363.

%package javadoc
Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Summary: Javadoc for the Units of Measurement Systems

%description javadoc
This package contains documentation for the Units of Measurement
Systems (JSR 363).

%prep
%setup -q -n %{name}-%{version}
%pom_disable_module common	# use only Java 8+
%pom_disable_module unicode	# use only Java 8+
%pom_xpath_remove "pom:properties/pom:quantity.version"
%pom_xpath_inject "pom:properties" "<quantity.version>%{version}</quantity.version>"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20071 |21mr|upower-1.90.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define girmajor 1.0
%define libname %mklibname upower-glib %{major}
%define girname %mklibname upower-glib-gir %{girmajor}
%define devname %mklibname upower-glib -d

Summary:	Power Management Service
Name:		upower
Version:	1.90.0
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://upower.freedesktop.org/
Source0:    https://gitlab.freedesktop.org/upower/upower/-/archive/v%{version}/%{name}-v%{version}.tar.gz
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gudev-1.0)
BuildRequires:	pkgconfig(libimobiledevice-1.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(polkit-gobject-1)
BuildRequires:	pkgconfig(systemd)
Requires(post,preun,postun):	systemd

%description
%{name} provides a daemon, API and command line tools for
managing power devices attached to the system.

%files -f %{name}.lang
%doc README AUTHORS NEWS HACKING
%dir %{_sysconfdir}/UPower/
%config(noreplace) %{_sysconfdir}/UPower/UPower.conf
%{_udevrulesdir}/*.rules
%{_udevhwdbdir}/*.hwdb
%{_localstatedir}/lib/upower
%{_bindir}/*
%{_libexecdir}/upowerd
%{_datadir}/dbus-1/system-services/*.service
%{_datadir}/dbus-1/system.d/*.conf
%{_unitdir}/upower.service
%{_mandir}/man1/*
%{_mandir}/man7/*
%{_mandir}/man8/*

%post
%systemd_post %{name}

%preun
%systemd_preun %{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared Library of %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}upower-glib1 < 0.99.4

%description -n %{libname}
%{name} provides a daemon, API and command line tools for
managing power devices attached to the system.

%files -n %{libname}
%{_libdir}/libupower-glib.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}upower-glib1 < 0.9.15-3

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%{_libdir}/girepository-1.0/UPowerGlib-%{girmajor}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers and libraries for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Headers and libraries for %{name}.

%files -n %{devname}
%{_includedir}/libupower-glib
%{_libdir}/*.so
%{_libdir}/pkgconfig/upower-glib.pc
%{_datadir}/dbus-1/interfaces/*.xml
#dir %{_datadir}/gtk-doc/html/UPower
#{_datadir}/gtk-doc/html/UPower/*
%{_datadir}/gir-1.0/UPowerGlib-%{girmajor}.gir

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}

%build
%meson -Dgtk-doc=false -Dudevrulesdir=/lib/udev/rules.d
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20072 |21mr|upx-4.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{e2k}
%define debug_package %{nil}
%endif

%global		commit_doc a70a8ee973f6d15b962af28a6d369c6cb248cd59
%global		short_doc %(c=%{commit_doc}; echo ${c:0:7})

%global		commit_lzma f0b8d236c1bdf66532a198c983469da5c05593cf
%global		short_lzma %(c=%{commit_lzma}; echo ${c:0:7})

%global		commit_ucl 2c68ae51994892b9080328617a84296ee55f0c80
%global		short_ucl %(c=%{commit_ucl}; echo ${c:0:7})

%global		commit_valgrind 9ec97aa43bfe4e745ae046ae757860d2d62f05ea
%global		short_valgrind %(c=%{commit_valgrind}; echo ${c:0:7})

%global		commit_zlib 34e75f067a0ec4999470ccb736b71024c081a70a
%global		short_zlib %(c=%{commit_zlib}; echo ${c:0:7})

Summary:	The Ultimate Packer for eXecutables
Name:		upx
Version:	4.2.1
Release:	1
License:	GPLv2+
Group:		Archiving/Compression
URL:		https://upx.github.io/
Source0:	https://github.com/upx/upx/archive/v%{version}.tar.gz?/upx-%{version}.tar.gz
Source1:	https://github.com/upx/upx-vendor-doctest/archive/%{commit_doc}/upx-vendor-doctest-%{short_doc}.tar.gz
Source2:	https://github.com/upx/upx-vendor-lzma-sdk/archive/%{commit_lzma}/upx-vendor-lzma-sdk-%{short_lzma}.tar.gz
Source3:	https://github.com/upx/upx-vendor-ucl/archive/%{commit_ucl}/upx-vendor-ucl-%{short_ucl}.tar.gz
Source4:	https://github.com/upx/upx-vendor-valgrind/archive/%{commit_valgrind}/upx-vendor-valgrind-%{short_valgrind}.tar.gz
Source5:	https://github.com/upx/upx-vendor-zlib/archive/%{commit_zlib}/upx-vendor-zlib-%{short_zlib}.tar.gz
# CVE-2023-23456 fixed in version 4.2.1
# CVE-2023-23457 fixed in version 4.2.1
BuildRequires:	cmake
BuildRequires:	ucl-devel
BuildRequires:	pkgconfig(zlib)
BuildRequires:	perl(Pod::Html)
%ifarch %{e2k}
BuildRequires:  clang
%endif


%description
UPX is an advanced executable file compressor. UPX will typically
reduce the file size of programs and DLLs by around 50%-70%, thus
reducing disk space, network load times, download times and other
distribution and storage costs.

Programs and libraries compressed by UPX are completely self-contained
and run exactly as before, with no runtime or memory penalty for most
of the supported formats.

UPX supports a number of different executable formats, including
Win95/98/ME/NT/2000 programs and DLLs, DOS programs, and Linux executables.

UPX is rated number one in the well known Archive Comparison Test. Visit
http://compression.ca/act-exepack.html

%files
%license COPYING LICENSE
%doc NEWS README README.SRC upx-doc.*
%{_bindir}/*
%attr(644,root,man) %{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}
tar xfz %{SOURCE1} --strip-components=1 -C vendor/doctest/
tar xfz %{SOURCE2} --strip-components=1 -C vendor/lzma-sdk/
tar xfz %{SOURCE3} --strip-components=1 -C vendor/ucl/
tar xfz %{SOURCE4} --strip-components=1 -C vendor/valgrind/
tar xfz %{SOURCE5} --strip-components=1 -C vendor/zlib/

%build
%ifarch %{e2k}
export CC=clang
export CXX=clang++
%endif

%cmake
%make

%install
%makeinstall_std -C build

mv %{buildroot}%{_datadir}/doc/upx/upx-doc.* .
rm -f %{buildroot}%{_datadir}/doc/upx/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20073 |21mr|urpmi-8.120-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define compat_perl_vendorlib %(perl -MConfig -e 'print "%{?perl_vendorlib:1}" ? "%{perl_vendorlib}" : "$Config{installvendorlib}"')
%global allow_gurpmi 0
%define req_webfetch wget

# drakbug comes from gurpmi, we do not need gurpmi
# in rpm4 distros
%global __requires_exclude perl\\((standalone|drakbug)\\)

Name:		urpmi
Version:	8.120
Release:	4
Group:		System/Configuration/Packaging
License:	GPLv2+
Source0:	http://gitweb.mageia.org/software/rpm/urpmi/snapshot/%{name}-v%{version}.tar.xz
Summary:	Command-line software installation tools
URL:		http://gitweb.mageia.org/software/rpm/urpmi/
Requires:	%{req_webfetch}
Requires:	eject
Requires(post):	perl-Locale-gettext
Requires(post):	perl-URPM
Requires:	perl-URPM >= 5.13-4
# gzip is used in perl-URPM for synthesis and hdlist
Requires(post):	gzip
Requires:	genhdlist2
#Requires:	meta-task
Requires:	perl-Filesys-Df
Requires:	perl-Time-ZoneInfo
#Recommends:	aria2
#Recommends:	deltarpm
#Conflicts:	mgaonline < 3.0
#Conflicts:	rpmdrake < 6.0
BuildRequires:	bzip2-devel
BuildRequires:	gettext
BuildRequires:	intltool
BuildRequires:	perl
BuildRequires:  perl_checker
BuildRequires:	perl-Locale-gettext
BuildRequires:	perl-MDV-Distribconf
BuildRequires:	perl(Net::LDAP)
BuildRequires:	perl(ExtUtils::MakeMaker)
BuildRequires:	perl-URPM
# for make test:
#BuildRequires:  glibc-static-devel
#BuildRequires:	mdv-distrib-tools
#BuildRequires:	perl-File-Slurp
#BuildRequires:  perl-Net-Server
#BuildRequires:	perl-Test-Pod
#BuildRequires:	perl(Test::Pod::Coverage)
#BuildRequires:	perl-XML-LibXML
#BuildRequires:	%{_lib}nss3
# for genhdlist in make test:
#BuildRequires:  perl-Expect
#BuildRequires:  rpmtools
BuildArch:	noarch
Requires:	perl-XML-LibXML

%description
urpmi is a console-based software installation tool. You can
use it to install software from the console in the same way as you use the
graphical Install Software tool (rpmdrake) to install software from the
desktop. urpmi will follow package dependencies -- in other words, it will
install all the other software required by the software you ask it to
install -- and it's capable of obtaining packages from a variety of media,
including the installation CD-ROMs and DVDs, your local hard disk,
and remote sources such as web or FTP sites.

%if %{allow_gurpmi}
%package -n gurpmi
Summary:	User mode rpm GUI install
Group:		System/Configuration/Packaging
Requires:	urpmi >= %{EVRD}
Requires:	polkit
Requires(post): desktop-file-utils
Requires(postun): desktop-file-utils

%description -n gurpmi
gurpmi is a graphical front-end to urpmi.
%endif

%package -n urpmi-parallel-ka-run
Summary:	Parallel extensions to urpmi using ka-run
Requires:	urpmi >= %{EVRD}
Requires:	parallel-tools
Group:		System/Configuration/Packaging

%description -n urpmi-parallel-ka-run
urpmi-parallel-ka-run is an extension module to urpmi for handling
distributed installation using ka-run or Taktuk tools.

%package -n urpmi-parallel-ssh
Summary:	Parallel extensions to urpmi using ssh and scp
Requires:	urpmi >= %{EVRD} openssh-clients
Group:		System/Configuration/Packaging

%description -n urpmi-parallel-ssh
urpmi-parallel-ssh is an extension module to urpmi for handling
distributed installation using ssh and scp tools.

%package -n urpmi-ldap
Summary:	Extension to urpmi to specify media configuration via LDAP
Requires:	urpmi >= %{EVRD}
Requires:	openldap-clients
Group:		System/Configuration/Packaging

%description -n urpmi-ldap
urpmi-ldap is an extension module to urpmi to allow to specify
urpmi configuration (notably media) in an LDAP directory.

%package -n urpmi-real-path
Summary:  Put real urpmi executables to PATH
Requires: urpmi = %{EVRD}
Group:		System/Configuration/Packaging

%description -n urpmi-real-path
By default urpmi and urpme commands are from dnf-URPM - wrapper
from urpmi to dnf. Install this package if you want to have
real (r)urpmi and (r)urpme in PATH.

%prep
%autosetup -p1 -n %name-v%version

%build
%{__perl} Makefile.PL INSTALLDIRS=vendor \
%if %{allow_gurpmi}
    --install-gui \
%endif
    --install-polkit \
    --install-po
%make

# TODO: reenable tests and BRs for them
#%%check
#%%{__make} test

%install
%make_install

# bash completion
install -d -m 755 %{buildroot}%{_sysconfdir}/bash_completion.d
install -m 644 %{name}.bash-completion %{buildroot}%{_sysconfdir}/bash_completion.d/%{name}

# rpm-find-leaves is invoked by this name in rpmdrake
ln -sf rpm-find-leaves %{buildroot}%{_bindir}/urpmi_rpm-find-leaves

##############################
# (mikhailnov) TODO: why do I have to install them manually?
# Makefile, generated from Makefile.PL, does not do that for some reasons...
# Manuals are also not installed!!!

mkdir -p %{buildroot}%{_libexecdir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_bindir}
install -m0755 urpmi.update %{buildroot}%{_libexecdir}/urpmi.update
for i in urpmq urpmf rpm-find-leaves
do
  install -m0755 "$i"  %{buildroot}%{_bindir}
done
for i in urpmi urpme urpmi.addmedia urpmi.removemedia rurpmi rurpme
do
  install -m0755 "$i"  %{buildroot}%{_sbindir}
done
%if %{allow_gurpmi}
install -m0755 gurpmi %{buildroot}%{_bindir}
install -m0755 gurpmi2 %{buildroot}%{_libexecdir}
%endif

mkdir -p %{buildroot}%{_mandir}/man5/
mkdir -p %{buildroot}%{_mandir}/man8/
##############################

# (cg) provide a urpmi.update in the path because users like to use it without
# mgaapplet installed (me included).
# If bin and sbin ever merge, real files will likely be favoured over symlinks
# and this should still operate properly (albeit with a bit of an upgrade glitch)
ln -sf %{_libexecdir}/urpmi.update %{buildroot}%{_sbindir}/urpmi.update

# Don't install READMEs twice
rm -f %{buildroot}%{compat_perl_vendorlib}/urpm/README*

# Desktop entry (only used to register new MIME type handler, so no icon etc.)
%if %{allow_gurpmi}
mkdir -p %buildroot%_datadir/applications
cp -a gurpmi.desktop %buildroot%_datadir/applications/gurpmi.desktop

mkdir -p %buildroot%_datadir/mime/packages
cat > %buildroot%_datadir/mime/packages/gurpmi.xml << EOF
<?xml version="1.0"?>
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
  <mime-type type="application/x-urpmi">
    <comment>urpmi file</comment>
    <glob pattern="*.urpmi"/>
  </mime-type>
</mime-info>
EOF
%endif

%if !%{allow_gurpmi}
# (mikhailnov) not working properly Makefile.PL!
rm -fr %{buildroot}%{_bindir}/gurpmi* \
  %{buildroot}%{compat_perl_vendorlib}/gurpm* \
  %{buildroot}%{_datadir}/polkit-1/actions/org.mageia.gurpmi2.policy \
  %{buildroot}%{_datadir}/applications/gurpmi.desktop \
  %{buildroot}%{_datadir}/mime/packages/gurpmi.xml
%endif

# urpmi and urpme in PATH are from dnf-URPM
# Users may install urpmi-real-path to have them in $PATH
# Also hide ruepmi and rurpme to ensure that they are not used
# by those who do not understand what they are doing
mkdir -p %{buildroot}%{_sysconfdir}/profile.d/
cat << EOF > %{buildroot}%{_sysconfdir}/profile.d/90_real_urpmi.sh
if [ -d "%{_libexecdir}/urpm" ]; then
  export PATH="%{_libexecdir}/urpm:${PATH}"
fi
EOF
mkdir -p  %{buildroot}%{_libexecdir}/urpm/
mv -v %{buildroot}{%{_sbindir},%{_bindir}}/* %{buildroot}%{_libexecdir}/urpm/
mv -v %{buildroot}%{_libexecdir}/urpm/gurpmi* %{buildroot}%{_bindir}/ || :

%find_lang %{name}

%preun
if [ "$1" = "0" ]; then
  cd /var/lib/urpmi
  rm -f compss provides depslist* descriptions.* *.cache hdlist.* synthesis.hdlist.* list.*
  cd /var/cache/urpmi
  rm -rf partial/* headers/* rpms/*
fi
exit 0

%files -f %{name}.lang
%dir /etc/urpmi
%dir /var/lib/urpmi
%dir /var/cache/urpmi
%dir /var/cache/urpmi/partial
%dir /var/cache/urpmi/headers
%dir /var/cache/urpmi/rpms
%config(noreplace) /etc/urpmi/skip.list
%config(noreplace) /etc/urpmi/inst.list
%{_sysconfdir}/bash_completion.d/%{name}
%{_libexecdir}/urpm/urpmi_rpm-find-leaves
%{_libexecdir}/urpm/rpm-find-leaves
%{_libexecdir}/urpm/urpmf
%{_libexecdir}/urpm/urpmq
%{_libexecdir}/urpm/urpmi
%{_libexecdir}/urpm/rurpmi
%{_libexecdir}/urpm/rurpme
%{_libexecdir}/urpm/urpme
%{_libexecdir}/urpm/urpmi.addmedia
%{_libexecdir}/urpm/urpmi.removemedia
%{_libexecdir}/urpm/urpmi.update
%{_libexecdir}/urpmi.update

# TODO: fix make install and reenable mans
%{_mandir}/man3/*urpm*
%if %{mdvver} >= 201910
%{_mandir}/man5/urpm*
%{_mandir}/man5/proxy*
%{_mandir}/man8/rurpm*
%{_mandir}/man8/urpme*
%{_mandir}/man8/urpmf*
%{_mandir}/man8/urpmq*
%{_mandir}/man8/urpmi.8*
%{_mandir}/man8/urpmi.addmedia*
%{_mandir}/man8/urpmi.removemedia*
%{_mandir}/man8/urpmi.update*
%{_mandir}/man8/urpmihowto*
%endif

%dir %{compat_perl_vendorlib}/urpm
%{compat_perl_vendorlib}/urpm.pm
%{compat_perl_vendorlib}/urpm/args.pm
%{compat_perl_vendorlib}/urpm/bug_report.pm
%{compat_perl_vendorlib}/urpm/cfg.pm
%{compat_perl_vendorlib}/urpm/cdrom.pm
%{compat_perl_vendorlib}/urpm/download.pm
%{compat_perl_vendorlib}/urpm/get_pkgs.pm
%{compat_perl_vendorlib}/urpm/install.pm
%{compat_perl_vendorlib}/urpm/lock.pm
%{compat_perl_vendorlib}/urpm/main_loop.pm
%{compat_perl_vendorlib}/urpm/md5sum.pm
%{compat_perl_vendorlib}/urpm/media.pm
%{compat_perl_vendorlib}/urpm/mirrors.pm
%{compat_perl_vendorlib}/urpm/msg.pm
%{compat_perl_vendorlib}/urpm/orphans.pm
%{compat_perl_vendorlib}/urpm/parallel.pm
%{compat_perl_vendorlib}/urpm/prompt.pm
%{compat_perl_vendorlib}/urpm/removable.pm
%{compat_perl_vendorlib}/urpm/select.pm
%{compat_perl_vendorlib}/urpm/signature.pm
%{compat_perl_vendorlib}/urpm/sys.pm
%{compat_perl_vendorlib}/urpm/util.pm
%{compat_perl_vendorlib}/urpm/xml_info.pm
%{compat_perl_vendorlib}/urpm/xml_info_pkg.pm
%doc NEWS README.zeroconf urpmi-repository-http.service

%if %{allow_gurpmi}
%files -n gurpmi
%{_bindir}/gurpmi
%{_bindir}/gurpmi2
%{_libexecdir}/gurpmi2
%{_datadir}/polkit-1/actions/org.mageia.gurpmi2.policy
%{_datadir}/applications/gurpmi.desktop
%{_datadir}/mime/packages/gurpmi.xml
%{compat_perl_vendorlib}/gurpmi.pm
%{compat_perl_vendorlib}/gurpm/RPMProgressDialog.pm
%endif

%files -n urpmi-parallel-ka-run
%doc urpm/README.ka-run
%dir %{compat_perl_vendorlib}/urpm
%{compat_perl_vendorlib}/urpm/parallel_ka_run.pm

%files -n urpmi-parallel-ssh
%doc urpm/README.ssh
%dir %{compat_perl_vendorlib}/urpm
%{compat_perl_vendorlib}/urpm/parallel_ssh.pm

%files -n urpmi-ldap
%doc urpmi.schema
%{compat_perl_vendorlib}/urpm/ldap.pm

%files -n urpmi-real-path
%{_sysconfdir}/profile.d/90_real_urpmi.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20074 |21mr|urw-fonts-2017.07.27-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with rebuild

%define urwmdkver 2.0-16.1mdk

Summary:	The 35 standard PostScript fonts
Name:		urw-fonts
Version:	2017.07.27
Release:	2
License:	GPL, URW holds copyright
Group:		System/Fonts/Type1
Url:		ftp://ftp.cs.wisc.edu/ghost/gnu/fonts/
Source0:	http://heanet.dl.sourceforge.net/sourceforge/gs-fonts/ghostscript-fonts-std-8.11.tar.bz2
# this overwrites several of the fonts and fonts.dir with new versions
Source1:	ftp://ftp.gnome.ru/fonts/urw/release/urw-fonts-1.0.7pre40.tar.bz2
Source4:	urw-fonts-%{urwmdkver}.tar.bz2
Source5:	http://peoples.mandriva.com/~ghibo/urw-fonts-1.0.7pre40-nimbusmonl-fixed.tar.bz2
# To make ghostscript use these fonts
Source6:	Fontmap
# addition of *-iso10646-1 lines
Patch0:		urw-fonts-2.0-fontscale.patch
Patch1:		urw-fonts-monospaced.patch
Patch2:		urw-fonts-2.0-fontscale-adobe-before-urw.patch
Patch3:		urw-fonts-2.0-split-adobestd35fontdir.patch
Patch4:		urw-fonts-monospaced2.patch
%if %{with rebuild}
BuildRequires:	fontforge
%endif
BuildArch:	noarch

%description
Free, good quality versions of the 35 standard PostScript(TM) fonts,
donated under the GPL by URW++ Design and Development GmbH.  The
fonts.dir file font names match the original Adobe names of the fonts
(e.g., Times, Helvetica, etc.).

Install the urw-fonts package if you need free versions of standard
PostScript fonts.

The fonts provided are:
URW-Avantgarde
URW-Bookman
URW Chancery
URW-Century Schoolbook
URW-Courier
URW-Dingbats
URW-Gothic
URW-Helvetica
URW-New Century Schoolbook
URW-Nimbus Sans
URW-Nimbus Roman No9
URW-Nimbus Mono
URW-Palatino
URW Palladio
URW-Standard Symbols
URW-Symbol
URW-Times
URW-Zapf Chancery
URW-Zapf Dingbats

%files
%defattr(0644,root,root,0755)
%doc README ChangeLog COPYING
%if %{without rebuild}
%doc urw-fonts-%{urwmdkver}/README.mdk
%endif
%dir %{_datadir}/fonts/default/
%dir %{_datadir}/fonts/default/Type1
%dir %{_datadir}/fonts/default/Type1/adobestd35
%{_datadir}/fonts/default/Type1/Fontmap
%{_datadir}/fonts/default/Type1/fonts.dir
%{_datadir}/fonts/default/Type1/fonts.scale
%{_datadir}/fonts/default/Type1/*.afm
%{_datadir}/fonts/default/Type1/*.pfb
%{_datadir}/fonts/default/Type1/*.pfm
%{_datadir}/fonts/default/Type1/adobestd35/*.afm
%{_datadir}/fonts/default/Type1/adobestd35/*.pfb
%{_datadir}/fonts/default/Type1/adobestd35/*.pfm
%{_datadir}/fonts/default/Type1/adobestd35/fonts.dir
%{_datadir}/fonts/default/Type1/adobestd35/fonts.scale
%{_sysconfdir}/X11/fontpath.d/type1-urw-fonts:pri=50
%{_sysconfdir}/X11/fontpath.d/type1-urw-fonts-adobestd35:pri=50

#----------------------------------------------------------------------------

%prep
%setup -q -c -a1 -a4 -a5
%patch0 -p1 -b .fontscale
%patch1 -p1 -b .mono
%patch2 -p1 -b .urw
%patch3 -p1 -b .split
%patch4 -p1 -b .mono2

%build
%if %{with rebuild}
# Resave PFB fonts, so /FontBBox will result as executable array
cat > copypfb.ff <<EOF
#!/usr/bin/fontforge
Open(\$1);
myfamilyname = \$familyname;
myweight = \$weight;
if (\$weight == "Demibold")
  myweight = "DemiBold";
  Print ("Fixing weight to DemiBold");
endif
if (\$familyname == "URW Chancery L ")
  myfamilyname = "URW Chancery L";
  Print ("Fixing URW Chancery L familyname");
endif
SetFontNames(\$fontname,myfamilyname,\$fullname,myweight,\$copyright,\$fontversion + "_%{version}-%{release}");
Generate(\$2,"",3);
Print ("Rebuilt: ", \$fontname);
Quit(0);
EOF
chmod +x copypfb.ff

mkdir -p fonts_fixed fixed
for i in fonts/*.pfb; do
	./copypfb.ff $i fonts_fixed/`basename $i`
done
for i in *.pfb; do
	./copypfb.ff $i fixed/`basename $i`
done

%endif

%install
mkdir -p %{buildroot}%{_datadir}/fonts/default/Type1 \
	%{buildroot}%{_datadir}/fonts/default/Type1/adobestd35

%if %{with rebuild}
# install original URW fonts (from ghostscript set)
install -m 644	fonts_fixed/*.afm \
		fonts_fixed/*.pfm \
		fonts_fixed/*.pfb \
			%{buildroot}%{_datadir}/fonts/default/Type1/
# install new versions with cyrillic glyphs (and overwrite original
# ones if needed)
install -m 644	fixed/*.afm \
		fixed/*.pfm \
		fixed/*.pfb \
			%{buildroot}%{_datadir}/fonts/default/Type1/
# install fonts.scale/fonts.dir
install -m 644 fonts/fonts.scale \
			%{buildroot}%{_datadir}/fonts/default/Type1/
install -m 644 fonts/fonts.scale \
			%{buildroot}%{_datadir}/fonts/default/Type1/fonts.dir
install -m 644 fonts/fonts.scale.adobe \
	%{buildroot}%{_datadir}/fonts/default/Type1/adobestd35/fonts.scale
install -m 644 fonts/fonts.scale.adobe \
        %{buildroot}%{_datadir}/fonts/default/Type1/adobestd35/fonts.dir
%else
install -m 644	urw-fonts-%{urwmdkver}/*.afm \
	urw-fonts-%{urwmdkver}/*.pfm \
	urw-fonts-%{urwmdkver}/*.pfb \
	urw-fonts-%{urwmdkver}/fonts.dir \
	urw-fonts-%{urwmdkver}/fonts.scale \
		%{buildroot}%{_datadir}/fonts/default/Type1/
install -m 644 urw-fonts-%{urwmdkver}/fonts.scale.adobe \
	%{buildroot}%{_datadir}/fonts/default/Type1/adobestd35/fonts.scale
install -m 644 urw-fonts-%{urwmdkver}/fonts.dir.adobe \
	%{buildroot}%{_datadir}/fonts/default/Type1/adobestd35/fonts.dir
## copy fixed fonts
#cp -fp	n022003l.{afm,pfm,pfb} \
#	n022004l.{afm,pfm,pfb} \
#	n022023l.{afm,pfm,pfb} \
#	n022024l.{afm,pfm,pfb} \
#	%{buildroot}%{_datadir}/fonts/default/Type1/
%endif

cd %{buildroot}%{_datadir}/fonts/default/Type1/adobestd35
for i in ../*.pfb ../*.afm ../*.pfm; do \
	ln -s $i
done

(cd %{buildroot}/usr/share/fonts/default/Type1
# X.org's mkfontdir messes up encoding order, using alphabetical one,
# so for now comment the next line.
#    mkfontdir .
)

mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/default/Type1 \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/type1-urw-fonts:pri=50
ln -s ../../..%{_datadir}/fonts/default/Type1/adobestd35 \
    %{buildroot}%{_sysconfdir}/X11/fontpath.d/type1-urw-fonts-adobestd35:pri=50

install -m644 %{SOURCE6} %{buildroot}%{_datadir}/fonts/default/Type1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20075 |21mr|usb-gadget-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		usb-gadget
Summary:	Tool to automatically configure USB gadget ports
Version:	1.0
Group:      System/Base
Release:	2
Source0:	usb-gadget
Source1:	usb-gadget.service
License:	GPLv3
BuildArch:	noarch

%description
Tool to automatically configure USB gadget ports

%prep

%build

%install
mkdir -p %{buildroot}%{_sbindir} \
	%{buildroot}/%{_unitdir}/
install -c -m 755 %{S:0} %{buildroot}%{_sbindir}/
install -c -m 644 %{S:1} %{buildroot}/%{_unitdir}

%files
%{_sbindir}/usb-gadget
%{_unitdir}/usb-gadget.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20076 |21mr|usb_modeswitch-2.6.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fname	usb-modeswitch

Name:		usb_modeswitch
Summary:	Activating Switchable USB Devices on Linux
Version:	2.6.0
Release:	1
License:	GPLv2+
Group:		System/Configuration/Hardware
URL:		http://www.draisberghof.de/usb_modeswitch/
Source0:	http://www.draisberghof.de/usb_modeswitch/%{fname}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libusb-1.0)
Requires:	sysfsutils
Requires:	usb_modeswitch-data

%description
USB_ModeSwitch is a mode switching tool for controlling "flip flop"
(multiple device) USB gear.

Several new USB devices (especially high-speed wireless WAN stuff,
they're expensive anyway) have their Windows drivers onboard; when
plugged in for the first time they act like a flash storage and start
installing the driver from there. After that (and on every consecutive
plugging) this driver switches the mode internally, the storage device
vanishes (in most cases), and a new device (like an USB modem) shows
up. The WWAN gear maker Option calls that feature "ZeroCD (TM)".

%prep
%setup -qn %{fname}-%{version}

%build
%make CC=%{__cc} CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"

%install
mkdir -p $RPM_BUILD_ROOT%{_unitdir}
%makeinstall_std \
	SYSDIR=$RPM_BUILD_ROOT%{_unitdir}

%files
%license COPYING
%doc README ChangeLog
/lib/udev/usb_modeswitch
%{_unitdir}/usb_modeswitch@.service
%{_sbindir}/*
%{_mandir}/man1/*
%config(noreplace) %{_sysconfdir}/usb_modeswitch.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20077 |21mr|usb_modeswitch-data-20191128-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	fname	usb-modeswitch-data

Name:		usb_modeswitch-data
Version:	20191128
Release:	2
Summary:	Activating Switchable USB Devices on Linux
Group:		System/Configuration/Hardware
License:	GPLv2+
URL:		http://www.draisberghof.de/usb_modeswitch/
Source0:	http://www.draisberghof.de/usb_modeswitch/%{fname}-%{version}.tar.bz2
Patch0:		0001-Call-usb_modeswitch-only-on-add-event.patch
BuildArch:	noarch

%description
USB Modeswitch brings up your datacard into operational mode. When plugged
in they identify themselves as cdrom and present some non-Linux compatible
installation files. This tool deactivates this cdrom-devices and enables
the real communication device. It supports most devices built and
sold by Huawei, T-Mobile, Vodafone, Option, ZTE, Novatel.

This package contains the data files needed for usb_modeswitch to function.

%prep
%autosetup -p1 -n %{fname}-%{version}

# Patch https://abf.io/import/usb_modeswitch-data/commit/e62bad7bf199357738443edc
# added support for this type of devices, now the file has the following content:
# $ cat ./usb-modeswitch-data-20191128/usb_modeswitch.d/0bda:1a2b
## D-Link DWA-171 Wifi Dongle
#TargetVendor=0x2001
#TargetProduct=0x331d
#StandardEject=1
# It was only "StandardEject=1" when I patched it.
# Many other manufactures, not only D-Link, use this USB ID, probably it is better
# to remove these lines, I have contacted the author of usb_modeswitch.
sed -i'' -e '/^TargetVendor/d' -e '/^TargetProduct/d' usb_modeswitch.d/0bda:1a2b

%install
%makeinstall_std

%files
%license COPYING
%doc ChangeLog README
/lib/udev/rules.d/40-usb_modeswitch.rules
%dir %{_datadir}/usb_modeswitch
%{_datadir}/usb_modeswitch/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20078 |21mr|usbmuxd-1.1.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Daemon for communicating with Apple's iPod Touch and iPhone
Name:		usbmuxd
Version:	1.1.1
Release:	2
Group:		System/Kernel and hardware 
License:	GPLv2+ and LGPLv2+
URL:		http://www.libimobiledevice.org/
Source0:	https://github.com/libimobiledevice/usbmuxd/releases/download/%{version}/usbmuxd-%{version}.tar.bz2
Source1:	usbmuxd.sysusers.conf
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libplist-2.0) >= 1.1
BuildRequires:	pkgconfig(systemd)
BuildRequires:  pkgconfig(libimobiledevice-1.0)

Requires(post):	systemd-units
Requires(post):	/bin/systemd-sysusers
Requires(preun):	systemd-units
Requires(postun):	systemd-units

%description
usbmuxd is a daemon used for communicating with Apple's iPod Touch and iPhone
devices. It allows multiple services on the device to be accessed
simultaneously.

%files
%doc AUTHORS README.md
/lib/udev/rules.d/39-usbmuxd.rules
%{_presetdir}/86-usbmuxd.preset
%{_unitdir}/usbmuxd.service
%{_sbindir}/usbmuxd
%{_mandir}/man8/usbmuxd.8.*
%{_sysusersdir}/usbmuxd.conf

%post
# create user and group
%sysusers_create usbmuxd.conf
%systemd_post usbmuxd.service

%preun
%systemd_preun usbmuxd.service

%postun
%systemd_postun_with_restart usbmuxd.service

#------------------------------------------------------------------------------
%prep
%setup -q

%build
%configure
# Set the owner of the device node to be usbmuxd
sed -i.owner 's/OWNER="usbmux"/OWNER="usbmuxd"/' udev/39-usbmuxd.rules.in
sed -i.user 's/--user usbmux/--user usbmuxd/' systemd/usbmuxd.service.in
%make_build

%install
%make_install

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-usbmuxd.preset << EOF
enable usbmuxd.service
EOF

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/usbmuxd.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20079 |21mr|usbredir-0.8.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global optflags %{optflags}  -Wno-error=strict-aliasing
%define oname		usbredir

%define major_parser		1
%define libname_parser		%mklibname usbredirparser %{major_parser}
%define develname_parser	%mklibname usbredirparser -d

%define major_host		1
%define libname_host		%mklibname usbredirhost %{major_host}
%define develname_host		%mklibname usbredirhost -d

Name:		usbredir
Version:	0.8.0
Release:	4
License:	GPL-2.0+ ; LGPL-2.1+
Summary:	A protocol for redirection USB traffic

URL:		http://spice-space.org/page/UsbRedir
Group:		System/Libraries
Source0:	http://spice-space.org/download/usbredir/%{name}-%{version}.tar.bz2
Patch0:		CVE-2021-3700.patch
BuildRequires:	pkgconfig(libusb-1.0) => 1.0.9

%description
usbredir is a protocol for redirection USB traffic from a single USB device,
to a different (virtual) machine then the one to which the USB device is
attached. See usb-redirection-protocol.txt for the description / definition
of this protocol.

# ---------------------------------------------------------------------------

%package -n %{libname_host}
Summary:	A protocol for redirection USB traffic

Group:		System/Libraries

%description -n %{libname_host}
usbredir is a protocol for redirection USB traffic from a single USB device,
to a different (virtual) machine then the one to which the USB device is
attached. See usb-redirection-protocol.txt for the description / definition
of this protocol.

%package -n %{develname_host}
Summary:	Development files for %{name}

Group:		Development/C
Requires:	%{libname_host} = %{version}-%{release}
Requires:	%{name}-devel = %{version}-%{release}

%description -n %{develname_host}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

# ---------------------------------------------------------------------------

%package -n %{libname_parser}
Summary:	A protocol for redirection USB traffic

Group:		System/Libraries

%description -n %{libname_parser}
usbredir is a protocol for redirection USB traffic from a single USB device,
to a different (virtual) machine then the one to which the USB device is
attached. See usb-redirection-protocol.txt for the description / definition
of this protocol.

%package -n %{develname_parser}
Summary:	Development files for %{name}

Group:		Development/C
Requires:	%{libname_parser} = %{version}-%{release}
Requires:	%{name}-devel = %{version}-%{release}

%description -n %{develname_parser}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

# ---------------------------------------------------------------------------

%package devel
Summary:	A protocol for redirection USB traffic - Development files

Group:		Development/C
Requires:	%{libname_host} = %{version}-%{release}
Requires:	%{libname_parser} = %{version}-%{release}

%description devel
usbredir is a protocol for redirection USB traffic from a single USB device,
to a different (virtual) machine then the one to which the USB device is
attached. See usb-redirection-protocol.txt for the description / definition
of this protocol.

%prep
%autosetup -p1

%build
#export CPPFLAGS="$(pkg-config --cflags libusb-1.0) %{optflags}"
#export LDFLAGS=$(pkg-config --libs libusb-1.0)
%configure --disable-static
%make

%install
%makeinstall_std LIBDIR=%{_libdir} PREFIX=%{_prefix}
find %{buildroot} -type f -name "*.la" -delete -print

%files
%doc ChangeLog README COPYING
%{_sbindir}/usbredirserver
%{_mandir}/man1/usbredirserver.1.*

%files -n %{libname_host}
%{_libdir}/libusbredirhost.so.%{major_host}*

%files -n %{develname_host}
%{_includedir}/usbredirhost.h
%{_libdir}/libusbredirhost.so
%{_libdir}/pkgconfig/libusbredirhost.pc

%files -n %{libname_parser}
%{_libdir}/libusbredirparser.so.%{major_parser}*

%files -n %{develname_parser}
%{_includedir}/usbredirparser.h
%{_libdir}/libusbredirparser.so
%{_libdir}/pkgconfig/libusbredirparser-0.5.pc

%files devel
%{_includedir}/usbredirproto.h
%{_includedir}/usbredirfilter.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20080 |21mr|usbutils-015-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Linux USB utilities
Name:		usbutils
Version:	015
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
URL:		https://github.com/gregkh/usbutils
Source0:	http://www.kernel.org/pub/linux/utils/usb/usbutils/%{name}-%{version}.tar.xz
Requires: hwdata
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libudev)

%description
This package contains the lsusb utility for inspecting the devices 
connected to the USB bus. It shows a graphical representation of the 
devices that are currently plugged in, showing the topology of the 
USB bus. It also displays information on each individual device on 
the bus.

%prep
%autosetup -p1
autoreconf -fiv

%build
%configure \
	--disable-zlib \
	--sbindir=%{_sbindir} \
	--datadir=%{_datadir}/hwdata \
	--disable-usbids
%make_build

%install
%make_install

# do not package usb.ids, handled by hwdata
rm -f %{buildroot}/%{_datadir}/usb.ids

%files
%{_bindir}/*
%{_mandir}/*/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20081 |21mr|userdrake-1.14-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define debugcflags %{nil}

Summary:	A graphical interface for administering users and groups
Name:		userdrake
Version:	1.14
Release:	22
License:	GPL
Group:		System/Configuration/Other
Url:		https://abf.rosalinux.ru/omv_software/userdrake
#cvs source
# http://www.mandrivalinux.com/en/cvs.php3
Source0:	%{name}-%{version}.tar.xz
Source1:	org.rosalinux.pkexec.userdrake.policy
Patch0:		userdrake-1.13.2-mdv_to_rosa.patch
Patch1:		userdrake-1.14-fix-new-user-groups.patch
Patch2:		userdrake-1.14-homedir-permissions.patch
Patch3:		0001-Check-password-via-pwquality-if-available.patch
Patch4:		userdrake-1.14-drop-guest-drakbug.patch
# Create user with empty password instead of hashed value of empty password.
# Depends on 0001-Check-password-via-pwquality-if-available.patch
# (because they touch the same part of the code).
Patch5:		0002-User-with-empty-password.patch
BuildRequires:	gettext
BuildRequires:	pam-devel
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(libuser)
BuildRequires:	pkgconfig(glib-2.0)
Requires:	drakxtools-backend
Requires:	libuser
Requires:	transfugdrake
# Icon from desktop file is here
Requires:	desktop-common-data
Requires:	perl-String-ShellQuote
# some users may want to run /usr/sbin/.. without polkit
Recommends:	polkit
# Patch3
Recommends:	/usr/bin/pwscore

%description
Userdrake is a user-friendly and powerful tool for administrating users and
groups. It depends on the libuser library.

%files -f userdrake.lang
%license COPYING
%doc README RELEASE_NOTES
%config(noreplace) %{_sysconfdir}/sysconfig/userdrake
%{_bindir}/userdrake
%{_sbindir}/userdrake
%{_sbindir}/drakuser
%{_datadir}/userdrake
%{_mandir}/man3/USER*
%{_datadir}/applications/userdrake.desktop
%{_datadir}/polkit-1/actions/org.rosalinux.pkexec.userdrake.policy
%{perl_vendorarch}/USER.pm
%{perl_vendorarch}/auto/USER
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
cd USER
perl Makefile.PL INSTALLDIRS=vendor
cd ..
make OPTIMIZE="%{optflags} -w"

%install
make PREFIX=%{buildroot} install

cd USER
%makeinstall_std
cd ..

%find_lang userdrake

mkdir -p %{buildroot}%{_datadir}/polkit-1/actions
install -m 0644 %{SOURCE1} %{buildroot}%{_datadir}/polkit-1/actions/

mkdir -p %{buildroot}%{_bindir}
rm -fv %{buildroot}%{_bindir}/userdrake
cat > %{buildroot}%{_bindir}/userdrake << 'EOF'
#!/bin/sh
pkexec %{_sbindir}/userdrake $@
EOF
chmod 755 %{buildroot}%{_bindir}/userdrake

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/userdrake.desktop << 'EOF'
[Desktop Entry]
Name=UserDrake
Name[ru]=Управление пользователями
GenericName=Management of local users and groups
GenericName[ru]=Управление пользователями и группами
Exec=%{_bindir}/userdrake
Icon=computer_science_section
Type=Application
StartupNotify=true
Categories=GTK;Settings;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20082 |21mr|usermode-1.112-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Graphical tools for certain user account management tasks
Name:		usermode
Version:	1.112
Release:	4
Epoch:		1
License:	GPLv2+
Group:		System/Configuration/Other
Url:		https://fedorahosted.org/usermode/
Source0:	https://releases.pagure.org/usermode/%{name}-%{version}.autotoolized.tar.xz
Source1:	config-util
Source2:	config-util-user
Patch0:		usermode-1.112-environment.patch
# http://qa.mandriva.com/show_bug.cgi?id=32459
Patch3:		usermode-1.99-uz-po.patch
Patch4:		dialog-grab-fix.patch
Patch5:		sysmacros.patch
BuildRequires:	autoconf2.5
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	gettext-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libuser)
BuildRequires:	pkgconfig(sm)
Requires:	pam
Requires:	util-linux
Requires:	%{name}-consoleonly = %{EVRD}
Conflicts:	SysVinit < 2.74-14

%description
The usermode package contains several graphical tools for users:
userinfo, usermount and userpasswd. Userinfo allows users to change
their finger information. Usermount lets users mount, unmount, and
format filesystems. Userpasswd allows users to change their passwords.

Install the usermode package if you would like to provide users with
graphical tools for certain account management tasks.

%files
%{_bindir}/usermount
%{_mandir}/man1/usermount.1*
%{_bindir}/userformat
%{_mandir}/man1/userformat.1*
%{_bindir}/userinfo
%{_mandir}/man1/userinfo.1*
%{_bindir}/userpasswd
%{_mandir}/man1/userpasswd.1*
%{_bindir}/consolehelper-gtk
%{_mandir}/man8/consolehelper-gtk.8*
%{_bindir}/pam-panel-icon
%{_mandir}/man1/pam-panel-icon.1*
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_sysconfdir}/pam.d/config-util-user

%post
if [ ! -z "$SECURE_LEVEL" ];then
if [ -x /usr/sbin/msec -a "$SECURE_LEVEL" -gt "3" ]; then  /usr/sbin/msec $SECURE_LEVEL || true ; fi
fi

%triggerpostun -- usermode < 1.111-3
#Now we need use upstream config-util. Use for migrate only! 
rm -f %{_sysconfdir}/pam.d/mandriva-console-auth
rm -f %{_sysconfdir}/pam.d/mandriva-simple-auth

#----------------------------------------------------------------------------

%package -n %{name}-consoleonly
Summary:	Non-graphical part of usermode
Group:		System/Libraries
Requires:	passwd

%description -n %{name}-consoleonly
This package contains only the usermode stuff which doesn't require
XFree or GTK to run.

%files -n %{name}-consoleonly -f %{name}.lang
%doc COPYING ChangeLog NEWS README
%attr(4711,root,root) /usr/sbin/userhelper
%{_bindir}/consolehelper
%{_mandir}/man8/userhelper.8*
%{_mandir}/man8/consolehelper.8*
%config(noreplace) /etc/security/console.apps/config-util

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
%if %{with selinux}
	--with-selinux
%else
	--without-selinux
%endif
%make_build

%install
%makeinstall_std VENDOR=mandriva

# make userformat symlink to usermount
ln -sf usermount %{buildroot}%{_bindir}/userformat
ln -s usermount.1 %{buildroot}%{_mandir}/man1/userformat.1

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
install -p -m 644 %{SOURCE1} \
	%{buildroot}%{_sysconfdir}/security/console.apps/config-util

mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
install -p -m 644 %{SOURCE2} \
	%{buildroot}%{_sysconfdir}/pam.d/config-util-user

for i in mandriva-userinfo.desktop mandriva-userpasswd.desktop; do
	echo 'NotShowIn=GNOME;KDE;MATE;' >>%{buildroot}%{_datadir}/applications/$i
	desktop-file-install --vendor mandriva --delete-original \
		--dir %{buildroot}%{_datadir}/applications \
		%{buildroot}%{_datadir}/applications/$i
done

sed -i "s/^Icon=.*/Icon=kuser/" %{buildroot}%{_datadir}/applications/mandriva-userinfo.desktop

echo 'NotShowIn=GNOME;KDE;MATE;LXQt;X-LXQt;' >>%{buildroot}%{_datadir}/applications/mandriva-usermount.desktop
desktop-file-install --vendor mandriva --delete-original \
		--dir %{buildroot}%{_datadir}/applications \
		%{buildroot}%{_datadir}/applications/mandriva-usermount.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20083 |21mr|usermode-1.114-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	Graphical tools for certain user account management tasks
Name:		usermode
Version:	1.114
Release:	1
Epoch:		1
License:	GPLv2+
Group:		System/Configuration/Other
Url:		https://fedorahosted.org/usermode/
Source0:    https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz
Source1:	config-util
Source2:	config-util-user
Patch0:		usermode-1.114-environment.patch
# http://qa.mandriva.com/show_bug.cgi?id=32459
Patch3:		usermode-1.99-uz-po.patch
Patch4:		dialog-grab-fix.patch
BuildRequires:	autoconf2.5
BuildRequires:	desktop-file-utils
BuildRequires:	intltool
BuildRequires:	gettext-devel
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libstartup-notification-1.0)
BuildRequires:	pkgconfig(libuser)
BuildRequires:	pkgconfig(sm)
Requires:	pam
Requires:	util-linux
Requires:	%{name}-consoleonly = %{EVRD}
Conflicts:	SysVinit < 2.74-14

%description
The usermode package contains several graphical tools for users:
userinfo, usermount and userpasswd. Userinfo allows users to change
their finger information. Usermount lets users mount, unmount, and
format filesystems. Userpasswd allows users to change their passwords.

Install the usermode package if you would like to provide users with
graphical tools for certain account management tasks.

%files
%{_bindir}/usermount
%{_mandir}/man1/usermount.1*
%{_bindir}/userformat
%{_mandir}/man1/userformat.1*
%{_bindir}/userinfo
%{_mandir}/man1/userinfo.1*
%{_bindir}/userpasswd
%{_mandir}/man1/userpasswd.1*
%{_bindir}/consolehelper-gtk
%{_mandir}/man8/consolehelper-gtk.8*
%{_bindir}/pam-panel-icon
%{_mandir}/man1/pam-panel-icon.1*
%{_datadir}/%{name}
%{_datadir}/pixmaps/*
%{_datadir}/applications/*
%{_sysconfdir}/pam.d/config-util-user

%post
if [ ! -z "$SECURE_LEVEL" ];then
if [ -x /usr/sbin/msec -a "$SECURE_LEVEL" -gt "3" ]; then  /usr/sbin/msec $SECURE_LEVEL || true ; fi
fi

%triggerpostun -- usermode < 1.111-3
#Now we need use upstream config-util. Use for migrate only!
rm -f %{_sysconfdir}/pam.d/mandriva-console-auth
rm -f %{_sysconfdir}/pam.d/mandriva-simple-auth

#----------------------------------------------------------------------------

%package -n %{name}-consoleonly
Summary:	Non-graphical part of usermode
Group:		System/Libraries
Requires:	passwd

%description -n %{name}-consoleonly
This package contains only the usermode stuff which doesn't require
XFree or GTK to run.

%files -n %{name}-consoleonly -f %{name}.lang
%doc COPYING ChangeLog NEWS README
%attr(4711,root,root) /usr/sbin/userhelper
%{_bindir}/consolehelper
%{_mandir}/man8/userhelper.8*
%{_mandir}/man8/consolehelper.8*
%config(noreplace) /etc/security/console.apps/config-util

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export CFLAGS="%{optflags} -lm"
%configure \
%if %{with selinux}
	--with-selinux
%else
	--without-selinux
%endif
%make_build

%install
%makeinstall_std VENDOR=mandriva

# make userformat symlink to usermount
ln -sf usermount %{buildroot}%{_bindir}/userformat
ln -s usermount.1 %{buildroot}%{_mandir}/man1/userformat.1

mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
install -p -m 644 %{SOURCE1} \
	%{buildroot}%{_sysconfdir}/security/console.apps/config-util

mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
install -p -m 644 %{SOURCE2} \
	%{buildroot}%{_sysconfdir}/pam.d/config-util-user

for i in mandriva-userinfo.desktop mandriva-userpasswd.desktop; do
	echo 'NotShowIn=GNOME;KDE;MATE;' >>%{buildroot}%{_datadir}/applications/$i
	desktop-file-install --vendor mandriva --delete-original \
		--dir %{buildroot}%{_datadir}/applications \
		%{buildroot}%{_datadir}/applications/$i
done

sed -i "s/^Icon=.*/Icon=kuser/" %{buildroot}%{_datadir}/applications/mandriva-userinfo.desktop

echo 'NotShowIn=GNOME;KDE;MATE;LXQt;X-LXQt;' >>%{buildroot}%{_datadir}/applications/mandriva-usermount.desktop
desktop-file-install --vendor mandriva --delete-original \
		--dir %{buildroot}%{_datadir}/applications \
		%{buildroot}%{_datadir}/applications/mandriva-usermount.desktop

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20084 |21mr|userspace-rcu-0.12.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname urcu %major
%define develname %mklibname urcu -d

Name:		userspace-rcu
Summary:	Userspace RCU (read-copy-update) library
Version:	0.12.1
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
URL:		http://lttng.org/urcu
Source0:	https://github.com/urcu/userspace-rcu/archive/v0.12.1.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		urcu-generic-buildfix-arm-clang.patch

%description
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
synchronization library provides read-side access which scales linearly
with the number of cores. It does so by allowing multiples copies of a given
data structure to live at the same time, and by monitoring the data structure
accesses to detect grace periods after which memory reclamation is possible.

#-----------------------------------------------------------------------------
%package -n %{libname}
Summary:	Userspace RCU (read-copy-update) library
Group:		System/Libraries

%description -n %{libname}
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
synchronization library provides read-side access which scales linearly
with the number of cores. It does so by allowing multiples copies of a given
data structure to live at the same time, and by monitoring the data structure
accesses to detect grace periods after which memory reclamation is possible.

%files -n %{libname}
%{_libdir}/liburcu*.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for liburcu
Group:		Development/C
Requires:	%{libname} = %{version}

%description -n %{develname}
Development file for the userspace RCU library (liburcu).

%files -n %{develname}
%{_includedir}/urcu/
%{_includedir}/urcu*.h
%{_libdir}/liburcu*.so
%{_libdir}/pkgconfig/liburcu*.pc
%doc %{_docdir}/userspace-rcu

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20085 |21mr|userspace-rcu-0.13.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 8
%define libname %mklibname urcu %major
%define develname %mklibname urcu -d

Name:		userspace-rcu
Summary:	Userspace RCU (read-copy-update) library
Version:	0.13.0
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
URL:		http://lttng.org/urcu
Source0:	https://github.com/urcu/userspace-rcu/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		urcu-generic-buildfix-arm-clang.patch
Patch1:		add-e2k-support.patch

%description
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
synchronization library provides read-side access which scales linearly
with the number of cores. It does so by allowing multiples copies of a given
data structure to live at the same time, and by monitoring the data structure
accesses to detect grace periods after which memory reclamation is possible.

#-----------------------------------------------------------------------------
%package -n %{libname}
Summary:	Userspace RCU (read-copy-update) library
Group:		System/Libraries

%description -n %{libname}
liburcu is a LGPLv2.1 userspace RCU (read-copy-update) library. This data
synchronization library provides read-side access which scales linearly
with the number of cores. It does so by allowing multiples copies of a given
data structure to live at the same time, and by monitoring the data structure
accesses to detect grace periods after which memory reclamation is possible.

%files -n %{libname}
%{_libdir}/liburcu*.so.%{major}*

#-----------------------------------------------------------------------------

%package -n %{develname}
Summary:	Development files for liburcu
Group:		Development/C
Requires:	%{libname} = %{version}

%description -n %{develname}
Development file for the userspace RCU library (liburcu).

%files -n %{develname}
%{_includedir}/urcu/
%{_includedir}/urcu*.h
%{_libdir}/liburcu*.so
%{_libdir}/pkgconfig/liburcu*.pc
%doc %{_docdir}/userspace-rcu

#-----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
autoreconf -fi
%configure --disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20086 |21mr|utempter-0.5.5-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname_orig lib%{name}
%define libname %mklibname %{name} %{major}

Summary:	Priviledged helper for utmp/wtmp updates
Name:		utempter
Version:	0.5.5
Release:	23
License:	GPL
Group:		System/Libraries
URL:		http://www.redhat.com/
Source0:	%{name}-%{version}.tar.bz2
Patch1:		utempter-0.5.2-biarch-utmp.patch
Requires(pre):	shadow-utils
Requires:	%{libname} = %{version}-%{release}

%description
Utempter is a utility which allows some non-privileged programs to
have required root access without compromising system
security. Utempter accomplishes this feat by acting as a buffer
between root and the programs.

%package -n	%{libname}
Summary:	Library used by %{name}
Group:		System/Libraries

%description -n	%{libname}
Libutempter is an library which allows some non-privileged
programs to have required root access without compromising system
security. It accomplishes this feat by acting as a buffer
between root and the programs.

%package -n	%{libname}-devel
Summary:	Devel files for %{name}
Group:		Development/C
Provides:	%{libname_orig}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n	%{libname}-devel
Header files for writing apps using libutempter

%prep
%setup -q
%patch1 -p1 -b .biarch-utmp

%build
%make RPM_OPT_FLAGS="%{optflags}"

%install
%makeinstall_std LIBDIR=%{_libdir}

chmod 0755 %{buildroot}%{_libdir}/libutempter.so.%{major}*

%pre 
%{_sbindir}/groupadd -g 22 -r -f utmp

%files
%doc COPYING
%attr(02755, root, utmp) %{_sbindir}/utempter

%files -n %{libname}
%doc COPYING
%{_libdir}/libutempter.so.%{major}*

%files -n %{libname}-devel
%doc COPYING
%{_libdir}/libutempter.so
%{_includedir}/utempter.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20087 |21mr|utf8cpp-3.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# This package only contains header files.
%global debug_package %{nil}

Summary:	A simple, portable and lightweight library for handling UTF-8 encoded strings
Name:		utf8cpp
Version:	3.2.1
Release:	1
License:	Boost
Group:		Development/C++
Url:		https://github.com/nemtrif/utfcpp
Source0:	https://github.com/nemtrif/utfcpp/archive/v%{version}.tar.gz?/utfcpp-%{version}.tar.gz
Patch0:		utfcpp-3.2.1-noarch.patch
BuildRequires:	cmake
BuildArch:	noarch

%description
%{summary}.

Features include:
 - iterating through UTF-8 encoded strings
 - converting between UTF-8 and UTF-16/UTF-32
 - detecting invalid UTF-8 sequences

This project currently only contains header files, which can be found in the
%{name}-devel package.

#----------------------------------------------------------------------------
%package devel
Summary:	Header files for %{name}
Group:		Development/C++
BuildArch:	noarch
Provides:	%{name}-static = %{EVRD}

%description devel
%{summary}.

Features include:
 - iterating through UTF-8 encoded strings
 - converting between UTF-8 and UTF-16/UTF-32
 - detecting invalid UTF-8 sequences

This project currently only contains header files, which can be found in the
%{name}-devel package.

%files devel
%{_includedir}/utf8cpp/utf8.h
%{_includedir}/utf8cpp/utf8/*
%{_datadir}/cmake/utf8cpp/utf8cppConfig.cmake

#---------------------------------------------------------------------------
%prep
%setup -qn utfcpp-%{version}
%patch0 -p1

%build
%cmake -DUTF8_TESTS=OFF -DUTF8_TESTS=OFF
%make


%install
%make_install -C build

#mkdir -p %{buildroot}%{_includedir}
#install -p -m0644 source/utf8.h %{buildroot}%{_includedir}/utf8.h
#mkdir -p %{buildroot}%{_includedir}/utf8
#for i in checked.h core.h unchecked.h; do
#    install -p -m0644 source/utf8/${i} %{buildroot}%{_includedir}/utf8/${i}
#done



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20088 |21mr|utf8proc-2.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary: Library for processing UTF-8 encoded Unicode strings
Name:    utf8proc
Version:	2.6.1
Release:	1
License: BSD
Group:   System/Libraries
URL:     http://julialang.org/utf8proc/
Source0: https://github.com/JuliaStrings/utf8proc/archive/v%{version}.tar.gz

%description
utf8proc is a library for processing UTF-8 encoded Unicode strings.
Some features are Unicode normalization, stripping of default ignorable
characters, case folding and detection of grapheme cluster boundaries.
A special character mapping is available, which converts for example
the characters “Hyphen” (U+2010), “Minus” (U+2212) and “Hyphen-Minus
(U+002D, ASCII Minus) all into the ASCII minus sign, to make them
equal for comparisons.

The currently supported Unicode version is 9.0.0.

This package only contains the C library.

%package -n %libname
Summary:  Library for processing UTF-8 encoded Unicode strings
Group:   System/Libraries

%description -n %libname
utf8proc is a library for processing UTF-8 encoded Unicode strings.
Some features are Unicode normalization, stripping of default ignorable
characters, case folding and detection of grapheme cluster boundaries.
A special character mapping is available, which converts for example
the characters “Hyphen” (U+2010), “Minus” (U+2212) and “Hyphen-Minus
(U+002D, ASCII Minus) all into the ASCII minus sign, to make them
equal for comparisons.

The currently supported Unicode version is 9.0.0.

This package only contains the C library.

%package -n %devname
Summary:  Header files, libraries and development documentation for %{name}
Group:    Development/Other
Requires: %libname = %{version}-%{release}
Provides: %{name}-devel = %{version}-%{release}

%description -n %devname
Contains header files for developing applications that use the %{name}
library.

The documentation for the C library is found in the utf8proc.h header file.
"utf8proc_map" is most likely the function you will be using for mapping UTF-8
strings, unless you want to allocate memory yourself.

%prep
%autosetup -p1

%build
%make_build CFLAGS="%{optflags}"

%install
%makeinstall_std  prefix=%{_prefix} includedir=%{_includedir} libdir=%{_libdir}
rm %{buildroot}%{_libdir}/libutf8proc.a

%files -n %libname
%doc LICENSE.md NEWS.md README.md
%{_libdir}/libutf8proc.so.%{major}*

%files -n %devname
%{_includedir}/utf8proc.h
%{_libdir}/libutf8proc.so
%{_libdir}/pkgconfig/libutf8proc.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20089 |21mr|uthash-devel-2.3.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname uthash

Name:		uthash-devel
Version:	2.3.0
Release:	1
Summary:	A hash table for C structures
Group:		Development/C
License:	BSD
URL:		http://troydhanson.github.io/uthash
Source0:	https://github.com/troydhanson/%{oname}/archive/v%{version}.tar.gz
BuildArch:	noarch

%description
Any C structure can be stored in a hash table using uthash. Just add a
UT_hash_handle to the structure and choose one or more fields in your 
structure to act as the key. Then use these macros to store, retrieve or 
delete items from the hash table. 

%prep
%setup -qn %{oname}-%{version}

%build

%install
install -d %{buildroot}%{_includedir}
cp -pa src/*.h %{buildroot}%{_includedir}/

%check
cd tests
%make

%files
%doc LICENSE doc/*.txt
%{_includedir}/ut*.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20090 |21mr|util-linux-2.37.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define blkid_major 1
%define libblkid %mklibname blkid %{blkid_major}
%define devblkid %mklibname blkid -d

%define fdisk_major 1
%define libfdisk %mklibname fdisk %{fdisk_major}
%define devfdisk %mklibname fdisk -d

%define uuid_major 1
%define libuuid %mklibname uuid %{uuid_major}
%define devuuid %mklibname uuid -d

%define libext2fs %mklibname ext2fs 2
%define devext2fs %mklibname ext2fs -d

%define mount_major 1
%define libmount %mklibname mount %{mount_major}
%define devmount %mklibname mount -d

%define smartcols_major 1
%define libsmartcols %mklibname smartcols %{smartcols_major}
%define devsmartcols %mklibname smartcols -d

%define git_url git://git.kernel.org/pub/scm/utils/util-linux/util-linux.git

%define build_bootstrap 0
### Features
%define include_raw 1

%if !%{build_bootstrap}
%bcond_without python
%endif

%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

Summary:	A collection of basic system utilities
Name:		util-linux
Version:	2.37.4
Release:	2
# subpackage rfkill existed as a separate package with Epoch=1
Epoch:		1
License:	GPLv2 and GPLv2+ and BSD with advertising and Public Domain
Group:		System/Base
URL:		http://www.kernel.org/pub/linux/utils/util-linux
Source0:	http://www.kernel.org/pub/linux/utils/util-linux/v%(echo %{version} |cut -d. -f1-2)/%{name}-%{version}.tar.xz

# based on Fedora pam files
Source1:        util-linux-login.pamd
Source2:        util-linux-remote.pamd
Source3:        util-linux-chsh-chfn.pamd
Source4:        util-linux-60-raw.rules
Source5:        util-linux-su.pamd
Source6:        util-linux-su-l.pamd
Source7:        util-linux-runuser.pamd
Source8:        util-linux-runuser-l.pamd
Source11:       uuidd-tmpfiles.conf
Source14:       uuidd.sysusers

Patch0:		util-linux-2.24-agetty-login-l10n.patch
# 151635 - makeing /var/log/lastlog
Patch5:         util-linux-2.26-login-lastlog-create.patch
# (tpg) ClearLinux patches
Patch2000:      0001-Speed-up-agetty-waits.patch
Patch2001:      0003-Recommend-1M-topology-size-if-none-set.patch

BuildRequires:	gcc
BuildRequires:	libtool
BuildRequires:	sed
BuildRequires:	rpm-build
BuildRequires:	audit-devel
BuildRequires:	gettext-devel
BuildRequires:	pam-devel
BuildRequires:	bison
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	utempter-devel
%if !%{build_bootstrap}
BuildRequires:	pkgconfig(ext2fs)
%endif
BuildRequires:	pkgconfig(libcap-ng)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(ncursesw)
#BuildRequires:	termcap-devel
BuildRequires:	pkgconfig(slang)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(zlib)

Provides:	eject = %{EVRD}
Provides:	fdisk = %{EVRD}
Provides:	linux32 = %{EVRD}
Provides:	losetup = %{EVRD}
Provides:	mount = %{EVRD}
Provides:	tunelp = %{EVRD}
Provides:	sparc32 = %{EVRD}
Provides:	schedutils = %{EVRD}
Provides:	setarch = %{EVRD}
Provides:	util-linux-ng = %{EVRD}
Provides:	hardlink = %{EVRD}
Conflicts:	bash-completion < 2:2.7

# old versions of e2fsprogs provides blkid / uuidd
Conflicts:	e2fsprogs < 1.41.8-2mnb2
Conflicts:	setup < 2.7.18-6
# (tpg) add conflicts on older version dues to move su
Conflicts:	coreutils < 8.19-2
Conflicts:	rfkill < 0.5-10

# for /bin/awk
Requires(pre):	gawk
# for /usr/bin/cmp
Requires(pre):	diffutils
Requires(pre):	coreutils
Requires:	pam >= 0.66-4
Requires:	shadow-utils >= 4.0.3
Requires:	%{libblkid} = %{EVRD}
Requires:	%{libmount} = %{EVRD}
Requires:	%{libuuid} = %{EVRD}
Requires:	%{libsmartcols} = %{EVRD}
%if %{include_raw}
Requires:	udev
%endif

%description
The util-linux package contains a large variety of low-level system
utilities that are necessary for a Linux system to function.  Among
others, Util-linux-ng contains the fdisk configuration tool and the login
program.

%files -f %{name}.files
%doc %{_docdir}/%{name}
%attr(755,root,root) /bin/login
%attr(4755,root,root) /bin/mount
%attr(4755,root,root) /bin/umount
/bin/dmesg
/bin/flock
/bin/lsblk
/bin/more
/bin/kill
/bin/logger
/bin/taskset
/bin/ionice
/bin/findmnt
/bin/mountpoint
/bin/su
/bin/wdctl
%{_bindir}/cal
%{_bindir}/irqtop
%{_bindir}/lsirq
%{_bindir}/chrt
%{_bindir}/col
%{_bindir}/chmem
%{_bindir}/choom
%{_bindir}/colcrt
%{_bindir}/colrm
%{_bindir}/column
%{_bindir}/eject
%{_bindir}/fallocate
%{_bindir}/flock
%{_bindir}/fincore
%{_bindir}/lsmem
%{_bindir}/uuidparse
%{_bindir}/getopt
%{_bindir}/hardlink
%{_bindir}/hexdump
%{_bindir}/ionice
%{_bindir}/ipcmk
%{_bindir}/ipcrm
%{_bindir}/ipcs
%{_bindir}/isosize
%{_bindir}/last
%{_bindir}/lastb
%{_bindir}/logger
%{_bindir}/look
%{_bindir}/lscpu
%{_bindir}/lsipc
%{_bindir}/lslocks
%{_bindir}/lslogins
%{_bindir}/lsns
%{_bindir}/mcookie
%{_bindir}/mesg
%{_bindir}/namei
%{_bindir}/nsenter
%{_bindir}/prlimit
%{_bindir}/rename
%{_bindir}/renice
%{_bindir}/rev
%{_bindir}/scriptlive
%{_bindir}/script
%{_bindir}/scriptreplay
%{_bindir}/setarch
%{_bindir}/setpriv
%{_bindir}/setsid
%{_bindir}/setterm
%{_bindir}/uclampset
%{_bindir}/ul
%{_bindir}/unshare
%{_bindir}/uuidgen
%{_bindir}/utmpdump
%{_bindir}/whereis
%attr(4711,root,root) %{_bindir}/chfn
%attr(4711,root,root) %{_bindir}/chsh
%attr(2555,root,tty) %{_bindir}/wall
%attr(2755,root,tty) %{_bindir}/write
%config(noreplace) %{_sysconfdir}/pam.d/chfn
%config(noreplace) %{_sysconfdir}/pam.d/chsh
%config(noreplace) %{_sysconfdir}/pam.d/login
%config(noreplace) %{_sysconfdir}/pam.d/remote
%config(noreplace) %{_sysconfdir}/pam.d/su
%config(noreplace) %{_sysconfdir}/pam.d/su-l
%config(noreplace) %{_sysconfdir}/pam.d/runuser
%config(noreplace) %{_sysconfdir}/pam.d/runuser-l
%{_sysconfdir}/mtab
/sbin/addpart
/sbin/agetty
/sbin/blkid
/sbin/blkdiscard
/sbin/blkzone
/sbin/blockdev
/sbin/chcpu
/sbin/clock
/sbin/ctrlaltdel
/sbin/delpart
/sbin/fdisk
/sbin/findfs
/sbin/fsck
/sbin/fsck.cramfs
/sbin/fsck.minix
/sbin/fsfreeze
/sbin/fstrim
/sbin/hwclock
/sbin/losetup
/sbin/mkfs
/sbin/mkfs.cramfs
/sbin/mkfs.minix
/sbin/mkswap
/sbin/nologin
/sbin/partx
/sbin/pivot_root
/sbin/runuser
/sbin/sfdisk
/sbin/sulogin
/sbin/swaplabel
/sbin/swapon
/sbin/swapoff
/sbin/switch_root
/sbin/wipefs
/sbin/zramctl
%{_sbindir}/pivot_root
%{_sbindir}/cfdisk
%{_sbindir}/clock
%{_sbindir}/fdformat
%{_sbindir}/hwclock
%{_sbindir}/ldattach
%{_sbindir}/readprofile
%{_sbindir}/resizepart
%{_sbindir}/rtcwake
%{_sbindir}/tunelp
%{_sbindir}/hardlink
%{_mandir}/man1/lsmem.1*
%{_mandir}/man1/fincore.1*
%{_mandir}/man1/hardlink.1*
%{_mandir}/man1/cal.1*
%{_mandir}/man1/chfn.1*
%{_mandir}/man1/chrt.1*
%{_mandir}/man1/chsh.1*
%{_mandir}/man1/choom.1*
%{_mandir}/man8/chmem.8*
%{_mandir}/man1/col.1*
%{_mandir}/man1/colcrt.1*
%{_mandir}/man1/colrm.1*
%{_mandir}/man1/column.1*
%{_mandir}/man1/dmesg.1*
%{_mandir}/man1/eject.1*
%{_mandir}/man1/flock.1*
%{_mandir}/man1/fallocate.1*
%{_mandir}/man1/getopt.1*
%{_mandir}/man1/hexdump.1*
%{_mandir}/man1/ionice.1*
%{_mandir}/man1/ipcmk.1*
%{_mandir}/man1/ipcrm.1*
%{_mandir}/man1/ipcs.1*
%{_mandir}/man1/kill.1*
%{_mandir}/man1/last.1*
%{_mandir}/man1/lastb.1.*
%{_mandir}/man1/logger.1*
%{_mandir}/man1/login.1*
%{_mandir}/man1/look.1*
%{_mandir}/man1/lscpu.1*
%{_mandir}/man1/lsipc.1*
%{_mandir}/man1/lslogins.1*
%{_mandir}/man1/mcookie.1*
%{_mandir}/man1/mesg.1*
%{_mandir}/man1/more.1*
%{_mandir}/man1/mountpoint.1*
%{_mandir}/man1/namei.1*
%{_mandir}/man1/nsenter.1*
%{_mandir}/man1/prlimit.1*
%{_mandir}/man1/rename.1*
%{_mandir}/man1/renice.1*
%{_mandir}/man1/rev.1*
%{_mandir}/man1/runuser.1*
%{_mandir}/man1/script.1*
%{_mandir}/man1/setsid.1*
%{_mandir}/man1/setpriv.1*
%{_mandir}/man1/scriptlive.1*
%{_mandir}/man1/scriptreplay.1*
%{_mandir}/man1/setterm.1*
%{_mandir}/man1/su.1*
%{_mandir}/man1/taskset.1*
%{_mandir}/man1/uclampset.1*
%{_mandir}/man1/ul.1*
%{_mandir}/man1/uuidgen.1*
%{_mandir}/man1/uuidparse.1*
%{_mandir}/man1/unshare.1*
%{_mandir}/man1/utmpdump.1*
%{_mandir}/man1/wall.1*
%{_mandir}/man1/whereis.1*
%{_mandir}/man1/write.1*
%{_mandir}/man1/irqtop.1.*
%{_mandir}/man1/lsirq.1.*
%{_mandir}/man3/uuid_generate_time_safe.3*
%{_mandir}/man5/fstab.5*
%{_mandir}/man5/terminal-colors.d.5*
%{_mandir}/man5/adjtime_config.5*
%{_mandir}/man8/addpart.8*
%{_mandir}/man8/agetty.8*
%{_mandir}/man8/blkzone.8*
%{_mandir}/man8/blkdiscard.8*
%{_mandir}/man8/blkid.8*
%{_mandir}/man8/blockdev.8*
%{_mandir}/man8/cfdisk.8*
%{_mandir}/man8/chcpu.8*
%{_mandir}/man8/ctrlaltdel.8*
%{_mandir}/man8/delpart.8*
%{_mandir}/man8/fdformat.8*
%{_mandir}/man8/fdisk.8*
%{_mandir}/man8/findfs.8*
%{_mandir}/man8/findmnt.8*
%{_mandir}/man8/fsck.8*
%{_mandir}/man8/fsck.cramfs.8*
%{_mandir}/man8/fsck.minix.8*
%{_mandir}/man8/fsfreeze.8*
%{_mandir}/man8/fstrim.8*
%{_mandir}/man8/hwclock.8*
%{_mandir}/man8/isosize.8*
%{_mandir}/man8/ldattach.8*
%{_mandir}/man8/losetup.8*
%{_mandir}/man8/lsblk.8*
%{_mandir}/man8/lslocks.8*
%{_mandir}/man8/lsns.8*
%{_mandir}/man8/mkfs.8*
%{_mandir}/man8/mkfs.cramfs.8*
%{_mandir}/man8/mkfs.minix.8*
%{_mandir}/man8/mkswap.8*
%{_mandir}/man8/mount.8*
%{_mandir}/man8/nologin.8*
%{_mandir}/man8/partx.8*
%{_mandir}/man8/pivot_root.8*
%{_mandir}/man8/readprofile.8*
%{_mandir}/man8/resizepart.8*
%{_mandir}/man8/rtcwake.8*
%{_mandir}/man8/setarch.8*
%{_mandir}/man8/sfdisk.8*
%{_mandir}/man8/sulogin.8*
%{_mandir}/man8/swaplabel.8*
%{_mandir}/man8/swapon.8*
%{_mandir}/man8/swapoff.8*
%{_mandir}/man8/switch_root.8*
%{_mandir}/man8/tunelp.8*
%{_mandir}/man8/umount.8*
%{_mandir}/man8/wdctl.8*
%{_mandir}/man8/wipefs.8*
%{_mandir}/man8/zramctl.8*

%{_unitdir}/fstrim.*
%{_presetdir}/86-fstrim.preset
%{_datadir}/bash-completion/completions/*
%if %{include_raw}
/bin/raw
%{_mandir}/man8/raw.8*
%{_mandir}/man8/rawdevices.8*
%dir %{_sysconfdir}/blkid
%config %{_sysconfdir}/udev/rules.d/60-raw.rules
%endif

# NOT %%post here to avoid dependency loop between systemd and util-linux
# at early stages of bootstrapping a new chroot
%posttrans
%systemd_post fstrim.timer

%preun
%systemd_preun fstrim.timer

#----------------------------------------------------------------------------

%package -n %{libblkid}
Summary:	Block device ID library
Group:		System/Libraries
License:	LGPLv2+
Conflicts:	%{libext2fs} < 1.41.6-2mnb2
# MD this is because of the cmd rm and ln in the post config
Requires(post):	coreutils

%description -n %{libblkid}
This is block device identification library, part of util-linux.

%files -n %{libblkid}
/%{_lib}/libblkid.so.%{blkid_major}*

#----------------------------------------------------------------------------

%package -n %{devblkid}
Summary:	Block device ID library development files
Group:		Development/C
License:	LGPLv2+
Requires:	%{libblkid} = %{EVRD}
Requires:	%{devuuid} = %{EVRD}
Conflicts:	%{devext2fs} < 1.41.6-2mnb2
Provides:	blkid-devel = %{EVRD}

%description -n %{devblkid}
This is the block device identification development library and headers,
part of util-linux.

%files -n %{devblkid}
%{_libdir}/libblkid.a
%{_libdir}/libblkid.so
%{_includedir}/blkid
%{_mandir}/man3/libblkid.3*
%{_libdir}/pkgconfig/blkid.pc

#----------------------------------------------------------------------------

%package -n %{libfdisk}
Summary:	FDisk library
Group:		System/Libraries

%description -n %{libfdisk}
This is the FDisk library, part of e2fsprogs.

%files -n %{libfdisk}
/%{_lib}/libfdisk.so.%{fdisk_major}*

#----------------------------------------------------------------------------

%package -n %{devfdisk}
Summary:	FDisk library development files
Group:		Development/C
Requires:	%{libfdisk} = %{EVRD}
Provides:	fdisk-devel = %{EVRD}

%description -n %{devfdisk}
This is the FDisk library and headers, part of e2fsprogs.

%files -n %{devfdisk}
%{_libdir}/libfdisk.a
%{_libdir}/libfdisk.so
%{_includedir}/libfdisk
%{_libdir}/pkgconfig/fdisk.pc

#----------------------------------------------------------------------------

%package -n %{libuuid}
Summary:	Universally unique ID library
Group:		System/Libraries
License:	BSD
Conflicts:	%{libext2fs} < 1.41.8-2mnb2
# compath with Fedora/RH
Provides:	libuuid = %{EVRD}

%description -n %{libuuid}
This is the universally unique ID library, part of e2fsprogs.

The libuuid library generates and parses 128-bit universally unique
id's (UUID's).A UUID is an identifier that is unique across both
space and time, with respect to the space of all UUIDs.  A UUID can
be used for multiple purposes, from tagging objects with an extremely
short lifetime, to reliably identifying very persistent objects
across a network.

%files -n %{libuuid}
/%{_lib}/libuuid.so.%{uuid_major}*

#----------------------------------------------------------------------------

%package -n %{devuuid}
Summary:	Universally unique ID library
Group:		Development/C
License:	BSD
Conflicts:	%{libext2fs} < 1.41.8-2mnb2
Requires:	%{libuuid} = %{EVRD}
Provides:	uuid-devel = %{EVRD}

%description -n %{devuuid}
This is the universally unique ID development library and headers,
part of e2fsprogs.

The libuuid library generates and parses 128-bit universally unique
id's (UUID's).A UUID is an identifier that is unique across both
space and time, with respect to the space of all UUIDs.  A UUID can
be used for multiple purposes, from tagging objects with an extremely
short lifetime, to reliably identifying very persistent objects
across a network.

%files -n %{devuuid}
%{_libdir}/libuuid.a
%{_libdir}/libuuid.so
%{_includedir}/uuid
%{_mandir}/man3/uuid.3*
%{_mandir}/man3/uuid_clear.3*
%{_mandir}/man3/uuid_compare.3*
%{_mandir}/man3/uuid_copy.3*
%{_mandir}/man3/uuid_generate.3*
%{_mandir}/man3/uuid_generate_random.3*
%{_mandir}/man3/uuid_generate_time.3*
%{_mandir}/man3/uuid_is_null.3*
%{_mandir}/man3/uuid_parse.3*
%{_mandir}/man3/uuid_time.3*
%{_mandir}/man3/uuid_unparse.3*
%{_libdir}/pkgconfig/uuid.pc

#----------------------------------------------------------------------------

%package -n uuidd
Summary:	Helper daemon to guarantee uniqueness of time-based UUIDs
Group:		System/Servers
License:	GPLv2
Requires(post):	systemd
Requires(pre):	shadow-utils
Requires(pre):	rpm-helper
Requires(post):	rpm-helper
Requires(preun):	rpm-helper
Requires(postun):	rpm-helper

%description -n uuidd
The uuidd package contains a userspace daemon (uuidd) which guarantees
uniqueness of time-based UUID generation even at very high rates on
SMP systems.

%files -n uuidd
%{_mandir}/man8/uuidd.8*
%{_presetdir}/86-uuidd.preset
%{_unitdir}/uuidd.*
%{_sysconfdir}/tmpfiles.d/uuidd.conf
%{_sysusersdir}/uuidd.conf
%attr(-, uuidd, uuidd) %{_sbindir}/uuidd
%dir %attr(2775, uuidd, uuidd) /var/lib/libuuid

%pre -n uuidd
%_pre_useradd uuidd /var/lib/libuuid /bin/false
%_pre_groupadd uuidd uuidd

%post -n uuidd
systemd-tmpfiles --create uuidd.conf
%_post_service uuidd

%preun -n uuidd
%_preun_service uuidd

%postun -n uuidd
%_postun_userdel uuidd

#----------------------------------------------------------------------------

%package -n %{libmount}
Summary:	Universal mount library
Group:		System/Libraries
License:	LGPLv2+

%description -n %{libmount}
The libmount library is used to parse /etc/fstab,
/etc/mtab and /proc/self/mountinfo files,
manage the mtab file, evaluate mount options, etc.

%files -n %{libmount}
/%{_lib}/libmount.so.%{mount_major}*

#----------------------------------------------------------------------------

%package -n %{devmount}
Summary:	Universally unique ID library
Group:		Development/C
License:	LGPLv2+
Requires:	%{libmount} = %{EVRD}
Provides:	mount-devel = %{EVRD}

%description -n %{devmount}
Development files and headers for libmount library.

%files -n %{devmount}
%{_includedir}/libmount/libmount.h
%{_libdir}/libmount.so
%{_libdir}/libmount.a
%{_libdir}/pkgconfig/mount.pc

#----------------------------------------------------------------------------

%if %{with python}
%package -n python3-libmount
Summary:	Python bindings for the libmount library
Group:		Development/Python
Requires:	%{libmount} = %{EVRD}
BuildRequires:	pkgconfig(python3)

%description -n python3-libmount
The libmount-python package contains a module that permits applications
written in the Python programming language to use the interface
supplied by the libmount library to work with mount tables (fstab,
mountinfo, etc) and mount filesystems.

%files -n python3-libmount
%dir %{python3_sitearch}/libmount
%{python3_sitearch}/libmount/*
%endif

#----------------------------------------------------------------------------

%package -n %{libsmartcols}
Summary:	Formatting library for ls-like programs
License:	LGPL2+
Group:		System/Libraries
Requires(pre):	filesystem

%description -n %{libsmartcols}
The libsmartcols library is used to format output,
for ls-like terminal programs.

%files -n %{libsmartcols}
/%{_lib}/libsmartcols.so.%{smartcols_major}*

#----------------------------------------------------------------------------

%package -n %{devsmartcols}
Summary:	Formatting library for ls-like programs
License:	LGPL2+
Group:		Development/C
Requires:	%{libsmartcols} = %{EVRD}
Provides:	smartcols-devel = %{EVRD}

%description -n %{devsmartcols}
Development files and headers for libsmartcols library.

%files -n %{devsmartcols}
%{_includedir}/libsmartcols
%{_libdir}/libsmartcols.so
%{_libdir}/libsmartcols.*a
%{_libdir}/pkgconfig/smartcols.pc

#----------------------------------------------------------------------------
%package -n rfkill
Summary:	Simple /dev/rfkill userspace tool
Group:		System/Base
Conflicts:	bash-completion < 2:2.7-2

%description -n rfkill
Rfkill is a simple userspace tool to manipulate /dev/rfkill.
It's needed to enable and disable wireless and bluetooth from
userspace beginning with 2.6.31 series kernels.

%files -n rfkill
%{_sbindir}/rfkill
%{_mandir}/man8/rfkill.8*
#----------------------------------------------------------------------------

%prep
%autosetup -p1

# rebuild build system for loop-AES patch
./autogen.sh

%build
%global optflags %{optflags} -Os
%config_update

%serverbuild_hardened
unset LINGUAS || :

export CONFIGURE_TOP="$PWD"
sed -i 's:linux/raw.h:sys/raw.h:' configure
sed -i 's:linux/raw.h:sys/raw.h:' disk-utils/raw.c
mkdir -p system
pushd  system
%configure \
	--bindir=/bin \
	--sbindir=/sbin \
	--libdir=/%{_lib} \
	--enable-static=yes \
	--enable-wall \
	--enable-partx \
	--enable-kill \
	--enable-fdformat \
	--enable-write \
	--enable-mountpoint \
%if %{include_raw}
	--enable-raw \
%endif
	--disable-makeinstall-chown \
	--disable-rpath \
	--with-audit \
	--with-python=3 \
%if %{with selinux}
	--with-selinux \
%else
	--without-selinux \
%endif
	--with-udev \
	--enable-chfn-chsh \
	--enable-socket-activation \
	--enable-tunelp \
	--enable-nologin \
	--with-systemdsystemunitdir=%{_unitdir} \

# build util-linux
%make

popd

# remove vipw and vigr, they belong in shadow-utils
rm -f %{buildroot}%{_sbindir}/{vipw,vigr} %{buildroot}%{_mandir}/man8/{vigr,vipw}.*

%install
mkdir -p %{buildroot}/{bin,sbin}
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_infodir}
mkdir -p %{buildroot}%{_mandir}/man{1,6,8,5}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}%{_sysconfdir}/{pam.d,security/console.apps,blkid}

# install util-linux
%makeinstall_std -C system DESTDIR=%{buildroot} MANDIR=%{buildroot}%{_mandir} INFODIR=%{buildroot}%{_infodir}

%if %{include_raw}
echo '.so man8/raw.8' > %{buildroot}%{_mandir}/man8/rawdevices.8
{
  # see RH bugzilla #216664
  mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
  pushd %{buildroot}%{_sysconfdir}/udev/rules.d
  install -m 644 %{SOURCE4} ./60-raw.rules
  popd
}
%endif

# Correct mail spool path.
perl -pi -e 's,/usr/spool/mail,/var/spool/mail,' %{buildroot}%{_mandir}/man1/login.1

# PAM settings
{
  pushd %{buildroot}%{_sysconfdir}/pam.d
  install -m 644 %{SOURCE1} ./login
  install -m 644 %{SOURCE2} ./remote
  install -m 644 %{SOURCE3} ./chsh
  install -m 644 %{SOURCE3} ./chfn
  install -m 644 %{SOURCE5} ./su
  install -m 644 %{SOURCE6} ./su-l
  install -m 644 %{SOURCE7} ./runuser
  install -m 644 %{SOURCE8} ./runuser-l
  popd
}

# This has dependencies on stuff in /usr
mv %{buildroot}{/sbin/,/usr/sbin}/cfdisk

ln -sf ../../sbin/hwclock %{buildroot}/usr/sbin/hwclock
ln -sf ../../sbin/clock %{buildroot}/usr/sbin/clock
ln -sf hwclock %{buildroot}/sbin/clock
# (tpg) compat symlink
ln -sf ../bin/hardlink %{buildroot}%{_sbindir}/hardlink
ln -sf ../../sbin/pivot_root %{buildroot}%{_sbindir}/pivot_root

install -D -p -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/tmpfiles.d/uuidd.conf

# And a dirs uuidd needs that the makefiles don't create
install -d %{buildroot}/var/lib/libuuid

# move flock in /bin, required for udev
# logger is useful in initscripts while /usr isn't mounted as well
# ionice needed for readahead_early
for p in flock logger ionice; do
	mv %{buildroot}{%{_bindir},/bin}/$p
	ln -sf ../../bin/$p %{buildroot}%{_bindir}/$p
done

# deprecated commands
for I in /sbin/mkfs.bfs; do
	rm %{buildroot}$I
done

# deprecated man pages
for I in man8/mkfs.bfs.8; do
	rm %{buildroot}%{_mandir}/${I}*
done

# we install getopt/getopt-*.{bash,tcsh} as doc files
# note: versions <=2.12 use path "%{_datadir}/misc/getopt/*"
chmod 644 misc-utils/getopt-*.{bash,tcsh}

# link mtab
ln -sf /proc/mounts %{buildroot}/etc/mtab

# /usr/sbin -> /sbin
for I in addpart delpart partx; do
	if [ -e %{buildroot}/usr/sbin/$I ]; then
		mv %{buildroot}/usr/sbin/$I %{buildroot}/sbin/$I
	fi
done

# /usr/bin -> /bin
for I in taskset; do
	if [ -e %{buildroot}/usr/bin/$I ]; then
		mv %{buildroot}/usr/bin/$I %{buildroot}/bin/$I
	fi
done

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-fstrim.preset << EOF
enable fstrim.timer
EOF

install -D -m644 %{SOURCE14} %{buildroot}%{_sysusersdir}/uuidd.conf

install -d %{buildroot}%{_presetdir}
cat > %{buildroot}%{_presetdir}/86-uuidd.preset << EOF
enable uuidd.socket
enable uuidd.service
EOF

# /sbin -> /bin
for I in raw; do
	if [ -e %{buildroot}/sbin/$I ]; then
		mv %{buildroot}/sbin/$I %{buildroot}/bin/$I
	fi
done

%find_lang %{name}

# the files section supports only one -f option...
mv %{name}.lang %{name}.files

# create list of setarch(8) symlinks
find  %{buildroot}%{_bindir}/ -regextype posix-egrep -type l \
	-regex ".*(linux32|linux64|s390|s390x|i386|ppc|ppc64|ppc32|sparc|sparc64|sparc32|sparc32bash|mips|mips64|mips32|ia64|x86_64|uname26)$" \
	-printf "%{_bindir}/%f\n" >> %{name}.files

find  %{buildroot}%{_mandir}/man8 -regextype posix-egrep  \
	-regex ".*(linux32|linux64|s390|s390x|i386|ppc|ppc64|ppc32|sparc|sparc64|sparc32|sparc32bash|mips|mips64|mips32|ia64|x86_64|uname26)\.8.*" \
	-printf "%{_mandir}/man8/%f*\n" >> %{name}.files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20091 |21mr|v4l2loopback-0.12.7-1.git9ba7e2.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 9ba7e294ea6f45410a15f192381d4918e8df4f02
%define commit_short %(echo %{commit} | head -c 6)

%define kname v4l2loopback

%bcond_without check

Summary:	v4l2-loopback device 
Name:		v4l2loopback
Version:	0.12.7
Release:	1.git%{commit_short}.2
License:	GPLv2
Group:		System/Kernel and hardware
Url:		https://github.com/umlaeute/v4l2loopback
#Source0:	https://github.com/umlaeute/v4l2loopback/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source0:	https://github.com/umlaeute/v4l2loopback/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# TODO: drop 32-bit arches (i686) completely
Source1:	32bit.diff

# for %%check
%if %{with check}
BuildRequires:	kernel-5.10-generic-devel
BuildRequires:	kernel-5.15-generic-devel
BuildRequires:	kernel-6.1-generic-devel
%endif

# called from udev rules
Requires:	/usr/bin/find
Requires:	/bin/chgrp
Requires:	/bin/chmod

%description
Kernel module v4l2loopback allows to create "virtual video devices", and normal
(v4l2) applications will read these devices as if they were ordinary
video devices.

This package contains an utility to manage v2l2loopback devices and udev rules for them.

%files
%{_bindir}/v4l2loopback-ctl
%{_udevrulesdir}/60-persistent-v4l2loopback.rules

#-------------------------------------------------------------------------------------------------

%package -n dkms-%{name}
Summary:	v4l2-loopback device river in DKMS form
Group:		System/Kernel and hardware
BuildArch:	noarch
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post):	kernel-source-%{name} = %{EVRD}
Requires(post):		dkms
Requires(preun):	dkms
Requires:	%{name} = %{EVRD}

%description -n dkms-%{name}
This out-of-tree kernel module allows you to create "virtual video
devices", and normal (v4l2) applications will read these devices as if
they were ordinary video (/dev/video*) devices

%files -n dkms-%{name}
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-------------------------------------------------------------------------------------------------

%package -n kernel-source-%{name}
Summary:	Source code of v4l2-loopback device driver
Group:		System/Kernel and hardware
BuildArch:	noarch

%description -n kernel-source-%{name}
This out-of-tree kernel module allows you to create "virtual video
devices", and normal (v4l2) applications will read these devices as if
they were ordinary video (/dev/video*) devices

%files -n kernel-source-%{name}
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*

#-------------------------------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%if %{__isa_bits} == 32
patch -p1 -r - --no-backup-if-mismatch < %{SOURCE1}
%endif

%build

%install
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="make -C \$kernel_source_dir M=\\\$(pwd)"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{name}
AUTOINSTALL=yes
REMAKE_INITRD=no
EOF

install -m755 -d %{buildroot}%{_bindir}
( cd utils
  %{__cc} %{optflags} -I.. v4l2loopback-ctl.c -o v4l2loopback-ctl %{ldflags}
)
install -m755 utils/v4l2loopback-ctl %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_udevrulesdir}
install -m0644 udev/*.rules %{buildroot}%{_udevrulesdir}

%if %{with check}
%check
# check buildability
# binary kernel modules are built inside these kernels
set -xefu
for kver in 5.10 5.15 6.1
do
	%make -C "$(rpm -ql kernel-"$kver"-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | sed -e 's,/source$,/build,')" M="$PWD" modules
	md5sum %{kname}.ko
	modinfo %{kname}.ko
	%make -C "$(rpm -ql kernel-"$kver"-generic-devel | grep -E '^/lib/modules/.*/source$' | tail -n1 | sed -e 's,/source$,/build,')" M="$PWD" clean
	rm -f *.ko*
done
%endif

#-------------------------------------------------------------------------------------------------

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

%preun -n dkms-%{name}
# rmmod can fail (e.g. if the module is not loaded), but it should not stop
# deinstallation.
/sbin/rmmod %{kname} >/dev/null 2>&1 || true
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20092 |21mr|v4l-utils-1.22.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname v4l %{major}
%define devname %mklibname v4l -d
%define wrappersname %mklibname v4l-wrappers
%bcond_without	graphics

Summary:	Linux V4L2 and DVB API utilities
Name:		v4l-utils
Version:	1.22.1
Release:	1
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://git.linuxtv.org/v4l-utils.git
Source0:	http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
Patch0:		v4l-utils-1.14.2-pthread.patch
Patch1:		v4l-utils-1.8.0-use-system-jpeg.patch

BuildRequires:	jpeg-devel
BuildRequires:	sysfsutils-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(alsa)
%if %{with graphics}
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif
BuildRequires:	pkgconfig(udev)
Conflicts:	ivtv-utils < 1.4.0-2
Requires:	%{wrappersname} >= %{EVRD}

%description
v4l-utils is the combination of various v4l and dvb utilities which used to be
part of the v4l-dvb mercurial kernel tree.

%files
%config(noreplace) %{_sysconfdir}/rc_maps.cfg
%config(noreplace) /lib/udev/rules.d/70-infrared.rules
/lib/udev/rc_keymaps/*
%{_bindir}/cec-compliance
%{_bindir}/cec-ctl
%{_bindir}/cec-follower
%{_bindir}/cx18-ctl
%{_bindir}/decode_tm6000
%{_bindir}/dvbv5-daemon
%{_bindir}/ir-ctl
%{_bindir}/ir-keytable
%{_bindir}/rds-ctl
%{_bindir}/v4l2-compliance
%{_bindir}/v4l2-ctl
%{_bindir}/dvb-fe-tool
%{_bindir}/dvb-format-convert
%{_bindir}/dvbv5-scan
%{_bindir}/dvbv5-zap
%{_bindir}/v4l2-sysfs-path
%{_sbindir}/v4l2-dbg
%{_mandir}/man1/cec-compliance.1.xz
%{_mandir}/man1/cec-ctl.1.xz
%{_mandir}/man1/cec-follower.1.xz
%{_mandir}/man1/ir-ctl.1.xz
%{_mandir}/man1/ir-keytable.1.*
%{_bindir}/media-ctl
%{_mandir}/man1/dvb-fe-tool.1*
%{_mandir}/man1/dvb-format-convert.1*
%{_mandir}/man1/dvbv5-scan.1*
%{_mandir}/man1/dvbv5-zap.1*
%{_localedir}/*/LC_MESSAGES/libdvbv5.mo
%{_localedir}/*/LC_MESSAGES/v4l-utils.mo
%{_mandir}/man1/v4l2-compliance.1*
%{_mandir}/man1/v4l2-ctl.1*
%{_mandir}/man5/rc_keymap.5.*

#----------------------------------------------------------------------------

%if %{with graphics}
%package -n v4l-utils-qt
Summary:	Qt tools for v4l applications
Group:		System/Libraries
Conflicts:	v4l-utils-qt4 < 1.10.1
Obsoletes:	v4l-utils-qt4 < 1.10.1

%description -n v4l-utils-qt
This is a Qt gui for the v4l-utils tools.

%files -n v4l-utils-qt
%{_bindir}/qv4l2
%{_bindir}/qvidcap
%{_datadir}/applications/qv4l2.desktop
%{_datadir}/applications/qvidcap.desktop
%{_iconsdir}/hicolor/*/apps/qv4l2.*
%{_iconsdir}/hicolor/*/apps/qvidcap.*
%{_mandir}/man1/qv4l2.1*
%{_mandir}/man1/qvidcap.1.*
%endif

#----------------------------------------------------------------------------

%package -n %{wrappersname}
Summary:	Wrappers for v4l applications
Group:		System/Libraries
Provides:	v4l-wrappers = %{EVRD}

%description -n %{wrappersname}
This package contains wrapper libraries that adds v4l2 device compatibility for
v4l1 applications and support for various pixelformats to v4l2 applications.

%files -n %{wrappersname}
%dir %{_libdir}/libv4l
%dir %{_libdir}/libv4l/plugins
%{_libdir}/libv4l/v4l1compat.so
%{_libdir}/libv4l/v4l2convert.so
%{_libdir}/libv4l/*-decomp
%{_libdir}/libv4l/plugins/libv4l-mplane.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Thin abstraction layer for video4linux2 devices
Group:		System/Libraries
Requires:	%{name} >= %{version}

%description -n %{libname}
libv4l is a collection of libraries which adds a thin abstraction layer on top
of video4linux2 devices. The purpose of this (thin) layer is to make it easy
for application writers to support a wide variety of devices without having
to write separate code for different devices in the same class.

%files -n %{libname}
%{_libdir}/libv4l1.so.%{major}*
%{_libdir}/libv4l2*.so.%{major}*
%{_libdir}/libdvbv5.so.%{major}*
%{_libdir}/libv4lconvert.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from libv4l
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libv4l-devel = %{EVRD}

%description -n %{devname}
This package contains the development files needed to build programs that
use libv4l.

%files -n %{devname}
%{_includedir}/*.h
%{_includedir}/libdvbv5
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -std=gnu++14
%configure \
	--with-libudev \
	--enable-libdvbv5 \
	--disable-static
%make_build

%install
%make_install PREFIX="%{_prefix}" LIBDIR="%{_libdir}"

# already provided by ivtv-utils package, more uptodate/complete there
rm -f %{buildroot}%{_bindir}/ivtv-ctl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20093 |21mr|v4l-utils-1.22.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname v4l %{major}
%define devname %mklibname v4l -d
%define wrappersname %mklibname v4l-wrappers
%bcond_without	graphics

Summary:	Linux V4L2 and DVB API utilities
Name:		v4l-utils
Version:	1.22.1
Release:	2
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://git.linuxtv.org/v4l-utils.git
Source0:	http://linuxtv.org/downloads/v4l-utils/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc
Patch0:		v4l-utils-1.14.2-pthread.patch
Patch1:		v4l-utils-1.8.0-use-system-jpeg.patch

BuildRequires:	jpeg-devel
BuildRequires:	sysfsutils-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(alsa)
%if %{with graphics}
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif
BuildRequires:	pkgconfig(udev)
Conflicts:	ivtv-utils < 1.4.0-2
Requires:	%{wrappersname} >= %{EVRD}

%description
v4l-utils is the combination of various v4l and dvb utilities which used to be
part of the v4l-dvb mercurial kernel tree.

%files
%config(noreplace) %{_sysconfdir}/rc_maps.cfg
%config(noreplace) /lib/udev/rules.d/70-infrared.rules
/lib/udev/rc_keymaps/*
%{_bindir}/cec-compliance
%{_bindir}/cec-ctl
%{_bindir}/cec-follower
%{_bindir}/cx18-ctl
%{_bindir}/decode_tm6000
%{_bindir}/dvbv5-daemon
%{_bindir}/ir-ctl
%{_bindir}/ir-keytable
%{_bindir}/rds-ctl
%{_bindir}/v4l2-compliance
%{_bindir}/v4l2-ctl
%{_bindir}/dvb-fe-tool
%{_bindir}/dvb-format-convert
%{_bindir}/dvbv5-scan
%{_bindir}/dvbv5-zap
%{_bindir}/v4l2-sysfs-path
%{_sbindir}/v4l2-dbg
%{_mandir}/man1/cec-compliance.1.xz
%{_mandir}/man1/cec-ctl.1.xz
%{_mandir}/man1/cec-follower.1.xz
%{_mandir}/man1/ir-ctl.1.xz
%{_mandir}/man1/ir-keytable.1.*
%{_bindir}/media-ctl
%{_mandir}/man1/dvb-fe-tool.1*
%{_mandir}/man1/dvb-format-convert.1*
%{_mandir}/man1/dvbv5-scan.1*
%{_mandir}/man1/dvbv5-zap.1*
%{_localedir}/*/LC_MESSAGES/libdvbv5.mo
%{_localedir}/*/LC_MESSAGES/v4l-utils.mo
%{_mandir}/man1/v4l2-compliance.1*
%{_mandir}/man1/v4l2-ctl.1*
%{_mandir}/man5/rc_keymap.5.*

#----------------------------------------------------------------------------

%if %{with graphics}
%package -n v4l-utils-qt
Summary:	Qt tools for v4l applications
Group:		System/Libraries
Conflicts:	v4l-utils-qt4 < 1.10.1
Obsoletes:	v4l-utils-qt4 < 1.10.1

%description -n v4l-utils-qt
This is a Qt gui for the v4l-utils tools.

%files -n v4l-utils-qt
%{_bindir}/qv4l2
%{_bindir}/qvidcap
%{_datadir}/applications/qv4l2.desktop
%{_datadir}/applications/qvidcap.desktop
%{_iconsdir}/hicolor/*/apps/qv4l2.*
%{_iconsdir}/hicolor/*/apps/qvidcap.*
%{_mandir}/man1/qv4l2.1*
%{_mandir}/man1/qvidcap.1.*
%endif

#----------------------------------------------------------------------------

%package -n %{wrappersname}
Summary:	Wrappers for v4l applications
Group:		System/Libraries
Provides:	v4l-wrappers = %{EVRD}

%description -n %{wrappersname}
This package contains wrapper libraries that adds v4l2 device compatibility for
v4l1 applications and support for various pixelformats to v4l2 applications.

%files -n %{wrappersname}
%dir %{_libdir}/libv4l
%dir %{_libdir}/libv4l/plugins
%{_libdir}/libv4l/v4l1compat.so
%{_libdir}/libv4l/v4l2convert.so
%{_libdir}/libv4l/*-decomp
%{_libdir}/libv4l/plugins/libv4l-mplane.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Thin abstraction layer for video4linux2 devices
Group:		System/Libraries
Requires:	%{name} >= %{version}

%description -n %{libname}
libv4l is a collection of libraries which adds a thin abstraction layer on top
of video4linux2 devices. The purpose of this (thin) layer is to make it easy
for application writers to support a wide variety of devices without having
to write separate code for different devices in the same class.

%files -n %{libname}
%{_libdir}/libv4l1.so.%{major}*
%{_libdir}/libv4l2*.so.%{major}*
%{_libdir}/libdvbv5.so.%{major}*
%{_libdir}/libv4lconvert.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files from libv4l
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libv4l-devel = %{EVRD}

%description -n %{devname}
This package contains the development files needed to build programs that
use libv4l.

%files -n %{devname}
%{_includedir}/*.h
%{_includedir}/libdvbv5
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%global optflags %{optflags} -std=gnu++14
%configure \
	--with-libudev \
	--enable-libdvbv5 \
	--disable-static
%make_build

%install
%make_install PREFIX="%{_prefix}" LIBDIR="%{_libdir}"

# already provided by ivtv-utils package, more uptodate/complete there
rm -f %{buildroot}%{_bindir}/ivtv-ctl

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20094 |21mr|v86d-0.1.10-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		v86d
Version:	0.1.10
Release:	13
Patch0:		v86d-dietlibc.patch
Summary:	Userspace helper for uvesafb
Group:		System/Base
License:	GPL
URL:		http://github.com/mjanusz/v86d
Source0:	%name-%version.tar.xz
ExcludeArch:	%{armx}

%description
Userspace helper for uvesafb

%files
/sbin/v86d

#--------------------------------------------------------------
%prep
%setup -q
%apply_patches
./configure --with-x86emu
sed -i -e "s|-Wall -g -O2|$RPM_OPT_FLAGS -Os|g" Makefile

%build
# Makefile isn't smp clean
make KDIR=%_prefix CC="gcc -Os -D__KERNEL_STRICT_NAMES"

%install
%makeinstall_std


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20095 |21mr|vaapi-driver-intel-2.4.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname intel-vaapi-driver

Summary:	Is the VA-API implementation for Intel G45 chipsets
Name:		vaapi-driver-intel
Version:	2.4.1
Release:	5
Group:		Video
License:	GPLv2+
Url:		http://cgit.freedesktop.org/vaapi/intel-driver/
Source0:	https://github.com/intel/intel-vaapi-driver/releases/download/%{version}/%{oname}-%{version}.tar.bz2
Patch1:		d87db2111a33b157d1913415f15d201cc5182850.patch
Patch2:		9d28e6ec0aa239aa23706a670a2ee147314d9923.patch
Patch3:		88336a929513b35de2e7f0733800310508d72fe1.patch
Patch4:		3ed3f6a783fdfff3fa1b567888518dcbda7eb2a3.patch
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libdrm)
ExclusiveArch:	%{ix86} %{x86_64}

%description
libva-driver-intel is the VA-API implementation for Intel G45 chipsets
and Intel HD Graphics for Intel Core processor family.

%files
%doc AUTHORS NEWS
%{_libdir}/dri/i965_drv_video.so

#--------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/dri/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20096 |21mr|vaapi-driver-vdpau-0.7.4-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname libva-vdpau-driver

Name:		vaapi-driver-vdpau
Summary:	VA-API driver for VDPAU interface
Group:		Video
Version:	0.7.4
Release:	11
License:	GPLv2+
URL:		http://www.freedesktop.org
Source0:	http://www.freedesktop.org/software/vaapi/releases/libva-vdpau-driver/libva-vdpau-driver-%{version}.tar.bz2
# fix build with recent mesa (not a technically correct fix):
Patch0:		PFNGLMULTITEXCOORD2FPROC_vaapi-driver-vdpau.patch
Patch1:		libva-vdpau-driver-0.7.4-drop-h264-api.patch
# API changes: http://cgit.freedesktop.org/~aplattner/libvdpau/commit/?id=186195b1a84f2517205522e7ab8e0f62ad61c329
Patch2:		libva-vdpau-driver-0.7.4-libvdpau0.8.patch
Patch3:		libva-vdpau-driver-0.7.4-disable-not-public-conflict-interface.patch
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(vdpau)
Provides:	%{oname} = %{EVRD}
Provides:	vdpau-video = %{EVRD}

%description
VDPAU driver backend for VA API, a video acceleration API.

%files
%doc AUTHORS NEWS
%{_libdir}/dri/*_drv_video.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20097 |21mr|vala-0.56.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api %{url_ver}
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define devname %mklibname %{name} -d
%define libdoc	%mklibname valadoc %{api} %{major}
%define devdoc	%mklibname valadoc -d

#gw checks don't run in iurt
%bcond_with check

Summary:	Compiler for the GObject type system
Name:		vala
Version:	0.56.3
Release:	1
# Most files are LGPLv2.1+, curses.vapi is 2-clause BSD
License:	LGPLv2.1+ and BSD
Group:		Development/Other
Url:		https://download.gnome.org/sources/vala
Source0:	https://download.gnome.org/sources/vala/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	xsltproc
BuildRequires:	pkgconfig(libgvc)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
%if %{with check}
BuildRequires:	pkgconfig(dbus-glib-1)
%endif

%description
Vala is a new programming language that aims to bring modern
programming language features to GNOME developers without imposing any
additional runtime requirements and without using a different ABI
compared to applications and libraries written in C.

valac, the Vala compiler, is a self-hosting compiler that translates
Vala source code into C source and header files. It uses the GObject
type system to create classes and interfaces declared in the Vala
source code. It's also planned to generate GIDL files when
gobject-introspection is ready.

The syntax of Vala is similar to C#, modified to better fit the GObject
type system. Vala supports modern language features as the following:

* Interfaces
* Properties
* Signals
* Foreach
* Lambda expressions
* Type inference for local variables
* Non-null types [PARTIAL]
* Exception handling [PLANNED]
* Assisted memory management

* type modules (aka. Plugins)

Vala is designed to allow access to existing C libraries, especially
GObject-based libraries, without the need for runtime bindings. Each
to be used library requires a Vala API file at compile-time,
containing the class and method declarations in Vala syntax. Vala
currently comes with experimental bindings for GLib and GTK+. It's
planned to provide generated bindings for the full GNOME Platform at a
later stage.

Using classes and methods written in Vala from an application written
in C is not difficult. The Vala library only has to install the
generated header files and C applications may then access the
GObject-based API of the Vala library as usual. It should also be
easily possible to write a bindings generator for access to Vala
libraries from applications written in e.g. C# as the Vala parser is written
as a library, so that all compile-time information is available when
generating a binding.

%files
%doc NEWS README
%{_bindir}/vala
%{_bindir}/vala-%{api}
%{_bindir}/valac
%{_bindir}/valac-%{api}
%{_datadir}/vala-%{api}
%{_datadir}/vala/vapi/*
%dir %{_datadir}/vala
%dir %{_datadir}/vala/vapi
%{_mandir}/man1/valac.1*
%{_mandir}/man1/valac-%{api}.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Vala runtime library
Group:		System/Libraries

%description -n %{libname}
This is the runtime library of the Vala programming language.

%files -n %{libname}
%{_libdir}/libvala-%{api}.so.%{major}*

#----------------------------------------------------------------------------
%package -n     %{devdoc}
Summary:        Development files for valadoc
Group:		Development/Other
Requires:       %{libdoc} = %{version}-%{release}
Requires:	valadoc = %{version}-%{release}
Provides:	valadoc-devel = %{version}-%{release}

%description -n %{devdoc}
Valadoc is a documentation generator for generating API documentation from Vala
source code.

This package contains development libraries and header files for
developing applications that use valadoc.

%files -n %{devdoc}
%{_includedir}/valadoc-%{api}/
%{_libdir}/libvaladoc-%{api}.so
%{_libdir}/pkgconfig/valadoc-%{api}.pc

#----------------------------------------------------------------------------

%package -n     valadoc
Summary:        Vala documentation generator
Group:		Documentation
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description -n valadoc
Valadoc is a documentation generator for generating API documentation from Vala
source code.


%files -n valadoc
%{_bindir}/valadoc
%{_bindir}/valadoc-%{api}
%{_libdir}/valadoc-%{api}/
%{_datadir}/valadoc-%{api}/
%{_mandir}/man1/valadoc-%{api}.1*
%{_mandir}/man1/valadoc.1*

#----------------------------------------------------------------------------

%package -n	%{libdoc}
Summary:	Shared libraries for valadoc
Group:		System/Libraries

%description -n	%{libdoc}
Valadoc is a documentation generator for generating API documentation from Vala
source code.

%files -n %{libdoc}
%{_libdir}/libvaladoc-%{api}.so.%{major}
%{_libdir}/libvaladoc-%{api}.so.%{major}.*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Vala development files
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{name} = %{EVRD}
Provides:	vala-devel = %{EVRD}

%description -n %{devname}
This is the development library of the Vala programming language.

%files -n %{devname}
%doc ChangeLog AUTHORS
%{_includedir}/vala-%{api}
%{_libdir}/libvala-%{api}.so
%{_libdir}/pkgconfig/*.pc
%{_datadir}/devhelp/books/vala-%{api}
%{_datadir}/aclocal/*.m4

#----------------------------------------------------------------------------

%package tools
Summary:	Tools for creating projects and bindings for %{name}
Group:		Development/Other
Requires:	%{name} = %{EVRD}
Requires:	intltool
Requires:	libtool

%description tools
This package contains tools to generate Vala projects, as well as API bindings
from existing C libraries, allowing access from Vala programs.

%files tools
%doc ChangeLog AUTHORS
%{_bindir}/*gen*
%{_datadir}/vala/Makefile.vapigen
%{_libdir}/vala-%{api}
%{_mandir}/*/*gen*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --enable-vapigen
%make

%install
%makeinstall_std
find %{buildroot} -name "*.la" -delete

mkdir -p %{buildroot}%{_datadir}/vala/vapi

%if %{with check}
%check
%make check
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20098 |21mr|valgrind-3.16.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# From pre-branching point as Fedora
%define commit 55cdb7c4e
%define commit_short %(echo %{commit} | head -c 5)

# ROSA has a lot of hardening flags, they break valgrind
# Valgrind also does not neeed -O2:
# -O2 doesn't work for the vgpreload libraries either. They are meant
# to not be optimized to show precisely what happened. valgrind adds
# -O2 itself wherever suitable.
# Filter -Wstrict-aliasing=2, leaving only -gdwarf-4
%global optflags %(echo %{debugcflags} | tr ' ' '\n' | grep -v strict-alias | tr '\n' ' ')
%global ldflags %{nil}
%global build_ldflags %{nil}

# (From Fedora, rpm4-specific)
# Generating minisymtabs doesn't really work for the staticly linked
# tools. Note (below) that we don't strip the vgpreload libraries at all
# because valgrind might read and need the debuginfo in those (client)
# libraries for better error reporting and sometimes correctly unwinding.
# So those will already have their full symbol table.
%undefine _include_minidebuginfo

# Whether to run the full regtest or only a limited set
# The full regtest includes gdb_server integration tests.
%define	run_full_regtest 0

# TODO: reenable openmpi when its buildability is fixed
%global build_openmpi 0
%global build_tools_devel 1

# Define valarch, the architecture name that valgrind uses
# And only_arch, the configure option to only build for that arch.
%ifarch %{ix86}
%define valarch x86
%define only_arch --enable-only32bit
%endif
%ifarch x86_64
%define valarch amd64
%define only_arch --enable-only64bit
%endif
%ifarch ppc
%define valarch ppc32
%define only_arch --enable-only32bit
%endif
%ifarch ppc64
%define valarch ppc64be
%define only_arch --enable-only64bit
%endif
%ifarch ppc64le
%define valarch ppc64le
%define only_arch --enable-only64bit
%endif
%ifarch s390x
%define valarch s390x
%define only_arch --enable-only64bit
%endif
%ifarch armv7hl
%define valarch arm
%define only_arch --enable-only32bit
%endif
%ifarch aarch64
%define valarch arm64
%define only_arch --enable-only64bit
%endif

Summary:	Tools for runtime analysis and debugging of software
Name:		valgrind
Version:	3.16.1
Release:	1
License:	GPLv2+
Group:		Development/Tools
Url:		http://valgrind.org/

# We could use %%valgrind_arches as defined in redhat-rpm-config
# But that is really for programs using valgrind, it defines the
# set of architectures that valgrind works correctly on.
ExclusiveArch: %{ix86} %{x86_64} ppc ppc64 ppc64le s390x armv7hl aarch64

# Packaged manually when building a git snapshot!
# git clone git://sourceware.org/git/valgrind.git
# cd valgrind
# git checkout %{commit}
# cd ..
# XZ_OPT='-T0' tar cJf "/tmp/valgrind-%{version}.tar.xz" --directory=. valgrind
Source0:	https://sourceware.org/pub/valgrind/%{name}-%{version}.tar.bz2
Source100:	%{name}.rpmlintrc

# From Fedora
# Note that not all patches from their sources are really applied

# Needs investigation and pushing upstream
Patch1:		valgrind-3.9.0-cachegrind-improvements.patch
# KDE#211352 - helgrind races in helgrind's own mythread_wrapper
Patch2:		valgrind-3.9.0-helgrind-race-supp.patch
# Make ld.so supressions slightly less specific.
Patch3:		valgrind-3.9.0-ldso-supp.patch
# We want all executables and libraries in libexec instead of lib
# so they are only available for valgrind usage itself and so the
# same directory is used independent of arch.
Patch4:		valgrind-3.16.0-pkglibexecdir.patch

BuildRequires:	binutils
BuildRequires:	gcc-c++
BuildRequires:	gdb
BuildRequires:	procps
BuildRequires:	glibc-static-devel
BuildRequires:	boost-devel
BuildRequires:	libgomp-devel
%if %{build_openmpi}
BuildRequires:	openmpi-devel
%endif
# for docs
BuildRequires:	/usr/bin/xsltproc
# for make -C docs print-docs
#BuildRequires:	/usr/bin/pdfxmltex
BuildRequires:	docbook-style-xsl
BuildRequires:	docbook-dtd-xml

%if %{run_full_regtest}
Requires:	gdb
%else
Recommends:	gdb
%endif
Provides:   valgrind-plugins = %{EVRD}
Obsoletes:	valgrind-plugins < 3.13.0

%description
Valgrind is an instrumentation framework for building dynamic analysis 
tools. You can also use it to build new tools.
There are tools that can automatically detect many memory management and
threading bugs, and profile programs in detail: the distribution currently
includes six production-quality tools: two thread error detectors (helgrind
and drd), a cache and branch-prediction profiler (cachegrind), a call-graph
generating cache and branch-prediction profiler (callgrind), a heap profiler
(massif) and a memory error detector (memcheck, the default tool).
This one can detect problems such as:
* accessing memory you shouldn't, e.g. overrunning and underrunning heap
blocks, overrunning the top of the stack, and accessing memory after it has 
been freed.

* Using undefined values, i.e. values that have not been initialised, or
that have been derived from other undefined values.

* Incorrect freeing of heap memory, such as double-freeing heap blocks,
or mismatched use of malloc/new/new[] versus free/delete/delete[].

* Overlapping src and dst pointers in memcpy and related functions.

* Memory leaks.

%files
%doc %{_defaultdocdir}/%{name}
%{_bindir}/*
%dir %{_libexecdir}/valgrind
# Install everything in the libdir except the .so.
# The vgpreload so files might need file mode adjustment.
%{_libexecdir}/valgrind/*[^o]
# Turn on executable bit again for vgpreload libraries.
# Was disabled in %%install to prevent debuginfo stripping.
%attr(0755,root,root) %{_libexecdir}/valgrind/vgpreload*-%{valarch}-*so
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for Valgrind
Group:		Development/Tools
Conflicts:	%{name} < 3.9.0
# compat with old packaging to avoid breaking BRs
%if %{build_tools_devel}
Requires:	%{name}-tools-devel = %{EVRD}
%endif

%description devel
Development files required to develop software using Valgrind.

%files devel
%dir %{_includedir}/valgrind
%{_includedir}/valgrind/valgrind.h
%{_includedir}/valgrind/callgrind.h
%{_includedir}/valgrind/drd.h
%{_includedir}/valgrind/helgrind.h
%{_includedir}/valgrind/memcheck.h
%{_libdir}/pkgconfig/valgrind.pc

#----------------------------------------------------------------------------

%if %{build_tools_devel}

%package tools-devel
Summary:	Development files for building valgrind tools
Group:		Development/Tools
Conflicts:	%{name} < 3.9.0

%description tools-devel
Header files and libraries for development of valgrind tools.

%files tools-devel
%{_includedir}/valgrind/config.h
%{_includedir}/valgrind/libvex*h
%{_includedir}/valgrind/pub_tool_*h
%{_includedir}/valgrind/vki
%dir %{_libdir}/valgrind
%{_libdir}/valgrind/*.a

%endif

#----------------------------------------------------------------------------

%if %{build_openmpi}

%package openmpi
Summary: OpenMPI support for Valgrind
Requires: %{name} = %{EVRD}

%description openmpi
A wrapper library for debugging OpenMPI parallel programs with valgrind.
See the section on Debugging MPI Parallel Programs with Valgrind in the
Valgrind User Manual for details.

%files openmpi
%{_libdir}/openmpi/valgrind/libmpiwrap*.so
%{_libdir}/valgrind/libmpiwrap*.so

%endif

#----------------------------------------------------------------------------

%prep
%setup -q
%autopatch -p1

%build
 
# Some patches (might) touch Makefile.am or configure.ac files.
# Just always autoreconf so we don't need patches to prebuild files.
./autogen.sh

# We explicitly don't want the libmpi wrapper. So make sure that configure
# doesn't pick some random mpi compiler that happens to be installed.
%define mpiccpath /bin/false

%configure \
  --with-mpicc=%{mpiccpath} \
  %{only_arch} \
  GDB=%{_bindir}/gdb
 
%make
make man-pages -C docs
make html-docs -C docs
make FAQ.txt -C docs
#make print-docs -C docs
 
%install
%makeinstall_std
%makeinstall_std install-data-hook -C docs
 
# We want the MPI wrapper installed under the openmpi libdir so the script
# generating the MPI library requires picks them up and sets up the right
# openmpi libmpi.so requires. Install symlinks in the original/upstream
# location for backwards compatibility.
%if %{build_openmpi}
pushd %{buildroot}%{_libdir}
mkdir -p openmpi/valgrind
cd valgrind
mv libmpiwrap-%{valarch}-linux.so ../openmpi/valgrind/
ln -s ../openmpi/valgrind/libmpiwrap-%{valarch}-linux.so
popd
%endif
 
%if %{build_tools_devel}
%ifarch %{ix86} x86_64
# To avoid multilib clashes in between i?86 and x86_64,
# tweak installed <valgrind/config.h> a little bit.
for i in HAVE_PTHREAD_CREATE_GLIBC_2_0 HAVE_PTRACE_GETREGS HAVE_AS_AMD64_FXSAVE64; do
  sed -i -e 's,^\(#define '$i' 1\|/\* #undef '$i' \*/\)$,#ifdef __x86_64__\n# define '$i' 1\n#endif,' \
    %{buildroot}%{_includedir}/valgrind/config.h
done
%endif
%else
# Remove files we aren't going to package.
# See tools-devel files.
rm %{buildroot}%{_includedir}/valgrind/config.h
rm %{buildroot}%{_includedir}/valgrind/libvex*h
rm %{buildroot}%{_includedir}/valgrind/pub_tool_*h
rm -rf %{buildroot}%{_includedir}/valgrind/vki
rm %{buildroot}%{_libdir}/valgrind/*.a
%endif
 
# We don't want debuginfo generated for the vgpreload libraries.
# Turn off execute bit so they aren't included in the debuginfo.list.
# We'll turn the execute bit on again in %%files.
chmod 644 %{buildroot}%{_libexecdir}/valgrind/vgpreload*-%{valarch}-*so

%check
# Prepare a little program to ensure that there are no unexpected
# file descriptors open, the testsuite otherwise always fails.
cat > close_fds.c <<EOF
#include <stdlib.h>
#include <unistd.h>
int main (int argc, char *const argv[])
{
  int i, j = sysconf (_SC_OPEN_MAX);
  if (j < 0)
    exit (1);
  for (i = 3; i < j; ++i)
    close (i);
  execvp (argv[1], argv + 1);
  exit (1);
}
EOF
%__cc %{optflags} -o close_fds close_fds.c

# ?
for i in `find . -type f \( -name *-amd64-linux -o -name *-x86-linux -o -name *-ppc*-linux \)`; do
  case "`file $i`" in
    *ELF*executable*statically\ linked*)
      objcopy -R .debug_loc -R .debug_frame -R .debug_ranges $i
  esac
done

# Make sure a basic binary runs. There should be no errors.
./vg-in-place --error-exitcode=1 /bin/true || :

# Make sure no extra CFLAGS, CXXFLAGS or LDFLAGS leak through,
# the testsuite sets all flags as necessary.
make CFLAGS="" CXXFLAGS="" LDFLAGS="" check || :

# Workaround https://bugzilla.redhat.com/show_bug.cgi?id=1434601
# for gdbserver tests.
export PYTHONCOERCECLOCALE=0

# some tests are known to fail,
# just check no more tests are failing than in Fedora ;)
echo ===============TESTING===================
%if %{run_full_regtest}
  ./close_fds make regtest || :
%else
  ./close_fds make nonexp-regtest || :
%endif

# Make sure test failures show up in build.log
# Gather up the diffs (at most the first 20 lines for each one)
MAX_LINES=20
diff_files=`find . -name '*.diff' | sort`
if [ z"$diff_files" = z ] ; then
	echo "Congratulations, all tests passed!" >> diffs
else
	for i in $diff_files ; do
		echo "=================================================" >> diffs
		echo $i                                                  >> diffs
		echo "=================================================" >> diffs
		if [ `wc -l < $i` -le $MAX_LINES ] ; then
			cat $i                                                >> diffs
		else
			head -n $MAX_LINES $i                                 >> diffs
			echo "<truncated beyond $MAX_LINES lines>"            >> diffs
		fi
	done
fi
cat diffs
echo ===============END TESTING===============

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20099 |21mr|validator-htmlparser-1.4-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Test are disabled by default
# Not available test deps
# https://bugzilla.redhat.com/show_bug.cgi?id=1202504
%bcond_with tests
%global hghash 42d7aef60138
%global oname htmlparser
Name:          validator-htmlparser
Version:       1.4
Release:       7
Summary:       An implementation of the HTML5 parsing algorithm in Java
# LGPL (v3 or later): translator-src/nu/validator/htmlparser/cpptranslate/CppVisitor.java
# MIT/X11 (BSD like): translator-src/nu/validator/htmlparser/generator/ApplyHotSpotWorkaround.java
# translator-src/nu/validator/htmlparser/generator/GenerateNamedCharacters.java
# MPL (v1.1) GPL: translator-src/nu/validator/htmlparser/generator/GenerateNamedCharactersCpp.java
# translator-src/nu/validator/htmlparser/cpptranslate/*
# MIT/X11 (BSD like): src/nu/validator/htmlparser/*
# BSD (3 clause): src/nu/validator/htmlparser/rewindable/Rewindable.java
# src/nu/validator/htmlparser/rewindable/RewindableInputStream.java
# BSD MIT: pom.xml
License:       BSD and GPLv2+ and LGPLv3 and MIT and MPLv1.1
URL:           http://about.validator.nu/htmlparser/
Source0:       https://hg.mozilla.org/projects/htmlparser/archive/%{hghash}.tar.gz
Source1:       validator-htmlparser-translator-template-pom.xml

BuildRequires: maven-local
BuildRequires: mvn(com.ibm.icu:icu4j)
%if %{with test}
BuildRequires: mvn(com.sdicons.jsontools:jsontools-core)
%endif
BuildRequires: mvn(net.sourceforge.jchardet:jchardet)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(xom:xom)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Validator.nu HTML Parser is an implementation of the
HTML5 parsing algorithm in Java for applications. The parser
is designed to work as a drop-in replacement for the
XML parser in applications that already support XHTML 1.x
content with an XML parser and use SAX, DOM or XOM to
interface with the parser.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{oname}-%{hghash}

%pom_remove_plugin org.codehaus.mojo:rpm-maven-plugin

%if %{without test}
%pom_remove_dep com.sdicons.jsontools:jsontools-core
rm -r test-src/*
%else
%pom_xpath_set "pom:skip" false
%endif

%pom_xpath_remove "pom:dependency[pom:artifactId= 'tools']/pom:scope"
%pom_xpath_remove "pom:dependency[pom:artifactId= 'tools']/pom:systemPath"

# Fix invailid chars using JVM tool
for file in src/nu/validator/htmlparser/impl/Tokenizer.java \
  src/nu/validator/htmlparser/impl/TreeBuilder.java \
  translator-src/nu/validator/htmlparser/cpptranslate/CppVisitor.java
 do
  native2ascii -encoding UTF8 ${file} ${file}
done

# Build fix for javaparser 1.0.11
sed -i "s|japa.parser.ast.BlockComment|japa.parser.ast.comments.BlockComment|" \
 translator-src/nu/validator/htmlparser/cpptranslate/CppVisitor.java
sed -i "s|japa.parser.ast.LineComment|japa.parser.ast.comments.LineComment|" \
 translator-src/nu/validator/htmlparser/cpptranslate/CppVisitor.java
sed -i "s|japa.parser.ast.body.JavadocComment|japa.parser.ast.comments.JavadocComment|" \
 translator-src/nu/validator/htmlparser/cpptranslate/CppVisitor.java

cp -p %{SOURCE1} translator-src/pom.xml
sed -i "s|@VERSION@|%{version}|" translator-src/pom.xml

# This is a dummy POM added just to ease building in the RPM platforms
cat > %{oname}-pom.xml << EOF
<?xml version="1.0" encoding="UTF-8"?>
<project
  xmlns="http://maven.apache.org/POM/4.0.0"
  xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <modelVersion>4.0.0</modelVersion>
  <groupId>nu.validator.%{oname}</groupId>
  <artifactId>%{oname}-project</artifactId>
  <packaging>pom</packaging>
  <version>%{version}</version>
  <modules>
    <module>.</module>
    <!-- Re-enable this module when it is ported to the latest version of javaparser -->
    <!-- module>translator-src</module -->
  </modules>
</project>
EOF

chmod 644 README.txt

%mvn_file nu.validator.%{oname}:htmlparser %{name}
%mvn_file nu.validator.%{oname}:translator %{name}-translator
%mvn_package :%{oname}-project __noinstall

%build

%if %{without test}
opts="-f"
%endif

%mvn_build $opts -- -f %{oname}-pom.xml

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20100 |21mr|vamp-plugin-sdk-2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define libname	%mklibname %{name} %{major}
%define develname %mklibname -d %{name}
%define staticdevelname %mklibname -d %{name} -s

Summary:	An API for audio analysis and feature extraction plugins
Name:		vamp-plugin-sdk
Version:	2.9
Release:	1
License:	BSD
Group:		System/Libraries
URL:		http://www.vamp-plugins.org/
Source0:	https://github.com/c4dm/vamp-plugin-sdk/archive/vamp-plugin-sdk-v%{version}.tar.gz
Patch0:		vamp-plugin-sdk-2.9.0-libdir.patch
BuildRequires:	pkgconfig(sndfile)

%description
Vamp is an API for C and C++ plugins that process sampled audio data to produce
descriptive output (measurements or semantic observations).

%package -n	%{libname}
Summary:	An API for audio analysis and feature extraction plugins library
Group:		System/Libraries

%description -n	%{libname}
Vamp is an API for C and C++ plugins that process sampled audio data to produce
descriptive output (measurements or semantic observations).

%package -n	%{develname}
Summary:	Development files (headers) for SLV2
Group:		Development/C
Requires:	%{libname} = %{version}
Provides:	%{name}-devel = %{version}
Requires:	pkgconfig

%description -n	%{develname}
Vamp is an API for C and C++ plugins that process sampled audio data to produce
descriptive output (measurements or semantic observations).

The %{name}-devel package contains libraries
and header files for developing
applications that use %{name}.

%package -n	%{staticdevelname}
Summary:	Development files (headers) for SLV2
Group:		Development/C
Requires:	%{develname} = %{version}
Provides:	%{name}-static-devel = %{version}

%description -n	%{staticdevelname}
Vamp is an API for C and C++ plugins that process sampled audio data to produce
descriptive output (measurements or semantic observations).

The %{name}-static package contains library files for developing static
applications that use %{name}.

%prep

%setup -qn %{name}-%{name}-v%{version}
%autopatch -p1
sed -i 's|/lib/vamp|/%{_lib}/vamp|g' src/vamp-hostsdk/PluginHostAdapter.cpp
sed -i 's|/lib/|/%{_lib}/|g' src/vamp-hostsdk/PluginLoader.cpp

%build
./configure --prefix=/usr \
	    --libdir=%{_libdir} \
	    --bindir=%{_bindir} \
	    --sbindir=%{_sbindir} \
	    --includedir=%{_includedir}
#make
%make

%install
# fix libdir
find . -name '*.pc.in' -exec sed -i 's|/lib|/%{_lib}|' {} ';'
make install DESTDIR=%{buildroot} LIBDIR=%{_libdir}

find %{buildroot} -name '*.la' -exec rm -f {} ';'

# create Makefile for examples
cd examples
echo CXXFLAGS=%{optflags} -fpic >> Makefile
echo bundle: `ls *.o` >> Makefile
echo -e "\t"g++ \$\(CXXFLAGS\) -shared -Wl,-Bsymbolic \
     -o vamp-example-plugins.so \
     *.o \$\(pkg-config --libs vamp-sdk\) >> Makefile
echo `ls *.cpp`: >> Makefile
echo -e "\t"g++ \$\(CXXFLAGS\) -c $*.cpp >> Makefile
echo clean: >> Makefile
echo -e "\t"-rm *.o *.so >> Makefile
# clean directory up so we can package the sources
make clean

%files -n %{libname}
%doc COPYING README
%{_libdir}/*.so.*

%files -n %{develname}
%doc examples
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/vamp/*
%{_bindir}/vamp-rdf-template-generator
%{_bindir}/vamp-simple-host
%{_libdir}/pkgconfig/*.pc

%files -n %{staticdevelname}
%{_libdir}/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20101 |21mr|vapoursynth-R60-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname %{name} %{major}
%define	libscript %mklibname vapoursynth-script %{major}
%define	devname %mklibname %{name} -d

%define	_disable_ld_no_undefined 1

Summary:	A video processing framework with the future in mind
Name:		vapoursynth
Version:	R60
Release:	1
License:	OFL and LGPLv2+
Group:		Video
Url:		http://www.vapoursynth.com/
Source0:	https://github.com/vapoursynth/vapoursynth/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	vapoursynth.xml
Patch0:		vapoursynth-R57-soname.patch
BuildRequires:	nasm
BuildRequires:	shared-mime-info
BuildRequires:	ffmpeg-devel
BuildRequires:	pkgconfig(ImageMagick)
BuildRequires:	pkgconfig(libass)
BuildRequires:	pkgconfig(python3) >= 3.8
BuildRequires:	pkgconfig(tesseract)
BuildRequires:	pkgconfig(zimg)
BuildRequires:	python3egg(cython)
BuildRequires:	python3egg(setuptools)
BuildRequires:	python3egg(sphinx)
Requires:	ffmpeg
Requires:	tesseract

%description
VapourSynth is an application for video manipulation. Or a plugin. Or a
library. It’s hard to tell because it has a core library written in C++
and a Python module to allow video scripts to be created. It came to be
when I started thinking about alternative designs for Avisynth and most
of it was written over a 3 month period.
The software has been heavily inspired by Avisynth and aims to be a 21st
century rewrite, taking advantage of the advancements computers have made
since the late 90s.
The main features compared to Avisynth are:
* Multithreaded: frame level multithreading that scales well.
* Generalized colorspaces: new colorspaces can be specified at runtime.
* Per frame properties: additional metadata can be attached to frames.
* Python3 based: the scripting part is implemented as a Python 3 module so you
	don’t have to learn a special language.
* Support for video with format changes: some video just can’t stick to one
	format or frame size.
* Compatible with a large number of already existing Avisynth plugins.

%files
%doc ChangeLog README.md 
%{_bindir}/*
%{_datadir}/mime/packages/%{name}.xml
%{_mandir}/man3/%{name}.3*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%doc ChangeLog README.md 
%{_libdir}/libvapoursynth.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libscript}
Summary:	Shared library for %{name}
Group:		System/Libraries
Conflicts:	%{_lib}vapoursynth0 < R26-2

%description -n %{libscript}
Shared library for %{name}.

%files -n %{libscript}
%doc ChangeLog README.md 
%{_libdir}/libvapoursynth-script.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libscript} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
%rename		%{_lib}vapoursynth-static-devel

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc ChangeLog README.md 
%{_includedir}/%{name}
%{_libdir}/libvapoursynth.so
%{_libdir}/libvapoursynth-script.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python bindings for %{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
Python bindings for %{name}.


%files -n python3-%{name}
%doc ChangeLog README.md 
%{py3_platsitedir}/%{name}.so

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation

%description doc
This package contains documentation of %{name}.

%files doc
%doc doc/_build/html

#----------------------------------------------------------------------------

%prep
%autosetup -p1

autoreconf -fiv
%build
%configure	--enable-plugins \
				--enable-guard-pattern \
				--disable-static
%make

# Build the docs
pushd doc
%make man html
popd

# Kill useless file
rm -f doc/_build/html/.buildinfo


%install
%makeinstall_std

# Install mimetype support
install -dm 755 %{buildroot}%{_datadir}/mime/packages
install -m 644 %{SOURCE1} %{buildroot}%{_datadir}/mime/packages

# Install generated man pages
mkdir -p %{buildroot}%{_mandir}/man3
install -m 644 doc/_build/man/%{name}.3 %{buildroot}%{_mandir}/man3/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20102 |21mr|vbetool-1.1-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Real-mode video BIOS utility to alter hardware state
Name:		vbetool
Version:	1.1
Release:	16
License:	GPLv2+
Group:		System/Configuration/Other
Url:		http://www.srcf.ucam.org/~mjg59/vbetool/
Source0:	http://www.srcf.ucam.org/~mjg59/vbetool/vbetool_%{version}.tar.gz
Patch0:		vbetool_1.1-lz.patch
BuildRequires:	libx86-devel
BuildRequires:	pkgconfig(libpci)
ExclusiveArch:	%{ix86} x86_64

%description
vbetool allows you to run real-mode video BIOS code to alter
hardware state. It uses lrmi in order to run code from the video BIOS.
Currently, it is able to alter DPMS states, save/restore video card state
and attempts to initialize the video card from scratch.

%files
%doc COPYING
%doc %{_mandir}/man1/vbetool.1*
%{_sbindir}/vbetool

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20103 |21mr|vboot-utils-20190823-4.git595108c0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitshort 595108c0

Name:		vboot-utils
Version:	20190823
Release:	4.git%{gitshort}%{?dist}
Group:		System/Kernel and hardware
Summary:	Verified Boot Utility from Chromium OS
License:	BSD
URL:		https://chromium.googlesource.com/chromiumos/platform/vboot_reference

ExclusiveArch:	%{arm} aarch64 %{ix86} x86_64

# The source for this package was pulled from upstream's vcs.  Use the
# following commands to generate the tarball:
#  git clone https://git.chromium.org/git/chromiumos/platform/vboot_reference.git
#  cd vboot_reference/
#  git archive --format=tar --prefix=vboot-utils-a1c5f7c/ a1c5f7c | xz > vboot-utils-a1c5f7c.tar.xz
Source0:	%{name}-%{gitshort}.tar.xz

# Fix FTBFS agsinst gcc10
Patch0:		vboot-utils-595108c0-gcc10.patch

BuildRequires:	glibc-static-devel
BuildRequires:	openssl-devel
BuildRequires:	trousers-devel
BuildRequires:	yaml-devel
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	uuid-devel

%description
Verified boot is a collection of utilities helpful for chromebook computer.
Pack and sign the kernel, manage gpt partitions.


%prep
%autosetup -p1 -n %{name}-%{gitshort}

%build

%ifarch %{arm} aarch64
%global ARCH arm
%endif

%ifarch x86_64
%global ARCH x86_64
%endif

%ifarch i686
%global ARCH i386
%endif


make V=1 ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS"


%install
make install V=1 DESTDIR=%{buildroot}/usr ARCH=%{ARCH} COMMON_FLAGS="$RPM_OPT_FLAGS"

# Remove unneeded build artifacts
rm -rf %{buildroot}/usr/lib/pkgconfig/
rm -rf %{buildroot}/usr/default/


%files
%license LICENSE
%doc README
%{_bindir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20104 |21mr|vc-1.4.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define sdevname %mklibname vc -d -s

Summary:	Ease explicit vectorization of C++ code
Name:		vc
Version:	1.4.2
Release:	1
License:	LGPLv2+
Group:		Development/C++
Url:		http://code.compeng.uni-frankfurt.de/projects/vc
Source0:	https://github.com/VcDevel/Vc/releases/download/%{version}/Vc-%{version}.tar.gz
BuildRequires:	cmake

%description
Vc is a free software library to ease explicit vectorization of C++ code.
It has an intuitive API and provides portability between different
compilers and compiler versions as well as portability between different
vector instruction sets.

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Development files for %{name}
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
Development files (headers etc.) for %{name}.

%files -n %{sdevname}
%{_includedir}/Vc
%{_libdir}/libVc.a
%{_libdir}/cmake/Vc

#----------------------------------------------------------------------------

%prep
%setup -qn Vc-%{version}
%apply_patches

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20105 |21mr|vcdimager-2.0.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 0
%define	libname %mklibname vcdinfo %{major}
%define	devname %mklibname vcdinfo -d

Summary:	VideoCD (pre-)mastering and ripping tool
Name:		vcdimager
Version:	2.0.1
Release:	4
License:	GPLv2+
Group:		Video
Url:		http://www.vcdimager.org
Source0:	ftp://ftp.gnu.org/gnu/vcdimager/%{name}-%{version}.tar.gz
BuildRequires:	popt-devel
BuildRequires:	pkgconfig(libcdio) >= 2.0.0
BuildRequires:	pkgconfig(libiso9660)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.3.8

%description
This program suite allows you to create VideoCD BIN/CUE CD images from mpeg
files which can be burned with cdrdao or any other program capable of
burning BIN/CUE files.
VCDRip, which comes with VCDImager, does the reverse operation. That is,
ripping mpeg streams from images (and already burned VideoCDs) and showing
some information about the VideoCD.

%files
%doc NEWS README
%{_bindir}/vcd-info
%{_bindir}/vcdimager
%{_bindir}/vcdxgen
%{_bindir}/vcdxrip
%{_bindir}/vcdxbuild
%{_bindir}/vcdxminfo
%{_bindir}/cdxa2mpeg
%{_infodir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries from %{name}
Group:		System/Libraries
Provides:	libvcd = %{EVRD}
Conflicts:	%{_lib}vcd0 < 0.7.24-11
Obsoletes:	%{_lib}vcd0 < 0.7.24-11

%description -n %{libname}
VCDImager allows you to create VideoCD BIN/CUE CD images from mpeg
files which can be burned with cdrdao or any other program capable of
burning BIN/CUE files.

VCDRip, which comes with VCDImager, does the reverse operation. That
is, ripping mpeg streams from images (and already burned VideoCDs)
and showing some information about the VideoCD.

%files -n %{libname}
%doc COPYING
%{_libdir}/libvcdinfo.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Devel files from %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	pkgconfig(libcdio) >= 2.0.0
Provides:	libvcd-devel = %{EVRD}
Conflicts:	%{_lib}vcd-devel < 0.7.24-11
Obsoletes:	%{_lib}vcd-devel < 0.7.24-11
Obsoletes:  %{_lib}vcd-static-devel < 0.7.24-11
Provides:   %{_lib}vcd-static-devel = %{EVRD}
# We had a wrong devel name!!
%rename		%{_lib}vcdifno-devel

%description -n %{devname}
This package contains the libraries, include files and other resources you can
use to use %{name} into applications.

%files -n %{devname}
%doc ChangeLog AUTHORS TODO
%{_includedir}/libvcd/*.h
%{_libdir}/libvcdinfo.so
%{_libdir}/pkgconfig/libvcdinfo.pc

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure \
	--disable-static \
	--enable-maintainer-mode
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20106 |21mr|vde2-2.3.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define develname %mklibname -d vde
%define _disable_ld_no_undefined 1

Name:		vde2
Version:	2.3.2
Release:	5
Summary:	Virtual Distributed Ethernet
License:	GPL
Group:		Networking/Other
Url:		http://vde.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/vde/%{name}-%{version}.tar.bz2
Source1:	README.mandriva
# Build fixes
Patch0:		vde-2.2.2-string-format.patch
Patch1:		vde-2.3.2-openssl-1.1.patch
Obsoletes:	vde <= 1.5.11
Provides:	vde = %{version}-%{release}
Conflicts:	%{develname} < 2.3.2
Obsoletes:	%{mklibname vde 2} < 2.3.2
BuildRequires:  pkgconfig(python3)

%description
VDE is a virtual network that can be spawned over a set of physical
computer over the Internet

VDE connects together:
  (1) real GNU-linux boxes (tuntap)
  (2) virtual machines: UML-User Mode Linux, qemu, bochs, MPS.

VDE can be used:
  (i) to create a general purpose tunnel (every protocol that runs
    on a Ethernet can be put into the tunnel)
  (ii) to connect a set of virtual machine to the Internet with no
    need of free access of tuntap
  (iii) to support mobility: a VDE can stay interconnected despite
    of the change of virtual cables, i.e. the change of IP addresses
    and interface in the real world

%files
%doc README README.mandriva
%{_bindir}/*
%{_sbindir}/vde_tunctl
%{_libexecdir}/vdetap
%{_mandir}/man*/*.*
%{_sysconfdir}/vde2/libvdemgmt/asyncrecv.rc
%{_sysconfdir}/vde2/libvdemgmt/closemachine.rc
%{_sysconfdir}/vde2/libvdemgmt/openmachine.rc
%{_sysconfdir}/vde2/libvdemgmt/sendcmd.rc
%{_sysconfdir}/vde2/vdecmd
%{_libdir}/vde2/libvde*.so
%{_libdir}/vde2/vde_l3/bfifo.so
%{_libdir}/vde2/vde_l3/pfifo.so
%{_libdir}/vde2/vde_l3/tbf.so

#-----------------------------------------------------

%define vdehist_major 0
%define libvdehist %mklibname vdehist %{vdehist_major}

%package -n %{libvdehist}
Summary:	VDE libraries
Group:		Networking/Other
Conflicts:	%{mklibname vde 2} < 2.3.2

%description -n %{libvdehist}
Library files for VDE.

%files -n %{libvdehist}
%{_libdir}/libvdehist.so.%{vdehist_major}*

#-----------------------------------------------------

%define vdemgmt_major 0
%define libvdemgmt %mklibname vdemgmt %{vdemgmt_major}

%package -n %{libvdemgmt}
Summary:	VDE libraries
Group:		Networking/Other
Conflicts:	%{mklibname vde 2} < 2.3.2

%description -n %{libvdemgmt}
Library files for VDE.

%files -n %{libvdemgmt}
%{_libdir}/libvdemgmt.so.%{vdemgmt_major}*

#-----------------------------------------------------

%define vdeplug_major 3
%define libvdeplug %mklibname vdeplug %{vdeplug_major}

%package -n %{libvdeplug}
Summary:	VDE libraries
Group:		Networking/Other
Conflicts:	%{mklibname vde 2} < 2.3.2

%description -n %{libvdeplug}
Library files for VDE.

%files -n %{libvdeplug}
%{_libdir}/libvdeplug.so.%{vdeplug_major}*

#-----------------------------------------------------

%define vdesnmp_major 0
%define libvdesnmp %mklibname vdesnmp %{vdesnmp_major}

%package -n %{libvdesnmp}
Summary:	VDE libraries
Group:		Networking/Other
Conflicts:	%{mklibname vde 2} < 2.3.2

%description -n %{libvdesnmp}
Library files for VDE.

%files -n %{libvdesnmp}
%{_libdir}/libvdesnmp.so.%{vdesnmp_major}*

#-----------------------------------------------------

%package -n %{develname}
Summary:	VDE development libraries
Group:		Development/Other
Requires:	%{libvdehist} = %{version}-%{release}
Requires:	%{libvdemgmt} = %{version}-%{release}
Requires:	%{libvdeplug} = %{version}-%{release}
Requires:	%{libvdesnmp} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	vde-devel = %{version}-%{release}
Provides:	libvde-devel = %{version}-%{release}
Provides:	libvde2-devel = %{version}-%{release}
Conflicts:	%{name} < 2.3.2

%description -n %{develname}
Development files (headers, libraries) for libvde

%files -n %{develname}
%{_includedir}/libvde*.h
%{_libdir}/libvde*.so
%{_libdir}/pkgconfig/vde*.pc

#-----------------------------------------------------
%package -n python3-%{name}
Summary:        Python bindings to the VDE library
Group:          Networking/Other

%description -n python3-%{name}
Python bindings for %{name}

%files -n python3-%{name}
%{_prefix}/lib/python*/site-packages/*

%prep
%autosetup -p1
cp %{SOURCE1} .

%build
%configure \
    --disable-static
make

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20107 |21mr|vdpauinfo-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	VDPAU acceleration information utility
Name:		vdpauinfo
Version:	1.0
Release:	4
License:	MIT
Group:		System/Kernel and hardware
Url:		http://www.nvnews.net/vbulletin/showthread.php?t=124978
Source0:	http://people.freedesktop.org/~aplattner/vdpau/vdpauinfo-%{version}.tar.gz
BuildRequires:	pkgconfig(vdpau) >= 0.4
BuildRequires:	pkgconfig(x11)
Obsoletes:	vdpinfo < 0.0.6

%description
Simple utility that queries and displays the VDPAU capabilities of
your X display and prints them in tabular format.

%files
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20108 |21mr|vdpauinfo-1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	VDPAU acceleration information utility
Name:		vdpauinfo
Version:	1.4
Release:	2
License:	MIT
Group:		System/Kernel and hardware
Url:		https://gitlab.freedesktop.org/vdpau/vdpauinfo
Source0:	https://gitlab.freedesktop.org/vdpau/vdpauinfo/-/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		vdpauinfo-1.4-add-support-for-AV1.patch
BuildRequires:	pkgconfig(vdpau) >= 1.4
%rename	vdpinfo

%description
Simple utility that queries and displays the VDPAU capabilities of your X
display and prints them in tabular format.

%files
%doc COPYING
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20109 |21mr|vecmath-1.6.0-0.1.20130710git41fddda.7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commit 41fddda1a4f430e45bef0154e1fdfe5671025f1e
%global shortcommit %(c=%{commit}; echo ${c:0:7})

Name:          vecmath
Version:       1.6.0
Release:       0.1.20130710git%{shortcommit}.7
Summary:       The 3D vector math Java package, javax.vecmath
Group:         Development/Java
# License is GNU General Public License, version 2, with the Classpath Exception
License:       GPLv2 with exceptions
URL:           http://github.com/hharrison/vecmath
Source0:       https://github.com/hharrison/vecmath/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
# Fix link to javadoc
Patch0:        %{name}-%{version}-javadoc-link.patch
BuildArch:     noarch

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	ant
BuildRequires:	ant-junit
BuildRequires:	junit
BuildRequires:	java-devel >= 1:1.6.0
BuildRequires:	java-javadoc
BuildRequires:	jpackage-utils
BuildRequires:	java-rpmbuild

Requires:      java >= 1:1.6.0
Requires:      jpackage-utils

%description
The 3D vector math Java package, javax.vecmath.

%package javadoc
Group:         Documentation
Summary:       Javadoc for %{name}
Requires:      jpackage-utils

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -qn %{name}-%{commit}
%patch0 -p0

%build
%ant jar docs

%install
install -D -p -m 644 build/jars/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -a build/javadoc/* %{buildroot}%{_javadocdir}/%{name}

%files
%doc docs/api-changes* COPYRIGHT.txt LICENSE.txt LICENSE-SPEC.html
%{_javadir}/%{name}.jar

%files javadoc
%doc COPYRIGHT.txt LICENSE.txt LICENSE-SPEC.html
%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20110 |21mr|velocity-1.7-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without  hsqldb

Name:           velocity
Version:        1.7
Release:        26
Epoch:          0
Summary:        Java-based template engine
License:        ASL 2.0
URL:            http://velocity.apache.org/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
Source1:        http://repo1.maven.org/maven2/org/apache/%{name}/%{name}/%{version}/%{name}-%{version}.pom
# Remove bundled binaries which cannot be easily verified for licensing
Source2:        generate-tarball.sh

Patch0:         0001-Remove-avalon-logkit.patch
Patch1:         0004-Use-log4j-1.2.17.patch
Patch2:         0003-Use-system-jars.patch
Patch3:         0004-JDBC-41-compat.patch
Patch4:         0001-Don-t-use-Werken-XPath.patch
Patch5:         0006-Skip-Java-8-incompatible-test.patch
Patch6:         velocity-1.7-doclint.patch
Patch7:         velocity-1.7-osgi.patch

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  antlr
BuildRequires:  junit
BuildRequires:  ant-junit
%if %{with hsqldb}
BuildRequires:  hsqldb-lib
%endif
BuildRequires:  apache-commons-collections
BuildRequires:  apache-commons-logging
BuildRequires:  apache-commons-lang
BuildRequires:  glassfish-servlet-api
BuildRequires:  jakarta-oro
BuildRequires:  jaxen
BuildRequires:  jdom
BuildRequires:  bcel
BuildRequires:  log4j12
BuildRequires:  apache-parent

# It fails one of the arithmetic test cases with gcj
BuildRequires:  java-devel >= 1:1.6.0

%description
Velocity is a Java-based template engine. It permits anyone to use the
simple yet powerful template language to reference objects defined in
Java code.
When Velocity is used for web development, Web designers can work in
parallel with Java programmers to develop web sites according to the
Model-View-Controller (MVC) model, meaning that web page designers can
focus solely on creating a site that looks good, and programmers can
focus solely on writing top-notch code. Velocity separates Java code
from the web pages, making the web site more maintainable over the long
run and providing a viable alternative to Java Server Pages (JSPs) or
PHP.
Velocity's capabilities reach well beyond the realm of web sites; for
example, it can generate SQL and PostScript and XML (see Anakia for more
information on XML transformations) from templates. It can be used
either as a standalone utility for generating source code and reports,
or as an integrated component of other systems. Velocity also provides
template services for the Turbine web application framework.
Velocity+Turbine provides a template service that will allow web
applications to be developed according to a true MVC model.

%package        manual
Summary:        Manual for %{name}

%description    manual
Documentation for %{name}.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}.

%package        demo
Summary:        Demo for %{name}
Requires:       %{name} = %{epoch}:%{version}-%{release}

%description    demo
Demonstrations and samples for %{name}.

# -----------------------------------------------------------------------------

%prep
%setup -q

# remove bundled libs/classes (except those used for testing)
find . -name '*.jar' ! -name 'test*.jar' -print -delete
find . -name '*.class' ! -name 'Foo.class' -print -delete

# Remove dependency on avalon-logkit
rm -f src/java/org/apache/velocity/runtime/log/AvalonLogChute.java
rm -f src/java/org/apache/velocity/runtime/log/AvalonLogSystem.java
rm -f src/java/org/apache/velocity/runtime/log/VelocityFormatter.java

# need porting to new servlet API. We would just add a lot of empty functions
rm  src/test/org/apache/velocity/test/VelocityServletTestCase.java

# This test doesn't work with new hsqldb
rm src/test/org/apache/velocity/test/sql/DataSourceResourceLoaderTestCase.java

cp %{SOURCE1} ./pom.xml

# remove rest of avalon logkit refences
%patch0 -p1

# Use log4j 1.2.17
%patch1 -p1

# Use system jar files instead of downloading from net
%patch2 -p1

%patch3 -p1

# Use jdom instead of werken-xpath
%patch4 -p1
%pom_remove_dep werken-xpath:

# Skip Java 8 incompatible test
%patch5 -p1

# Disable Java8 doclint
%patch6 -p1

# Remove werken-xpath Import/Export refences in OSGi manifest file
%patch7 -p1

%if %{without hsqldb}
rm -r src/test/org/apache/velocity/test/sql
%endif

# -----------------------------------------------------------------------------

%build

export CLASSPATH=$(build-classpath \
antlr \
apache-commons-collections \
commons-lang \
commons-logging \
glassfish-servlet-api \
junit \
jakarta-oro \
log4j:log4j:1.2.17 \
jaxen \
jdom \
bcel \
hsqldb \
junit)
ant \
  -buildfile build/build.xml \
  -Dbuild.sysclasspath=first \
  -Djavac.target=1.6 \
  -Djavac.source=1.6 \
  jar javadocs test

# fix line-endings in generated files
sed -i 's/\r//' docs/api/stylesheet.css docs/api/package-list

# -----------------------------------------------------------------------------

%install
%mvn_file : %{name}
%mvn_alias : %{name}:%{name}
%mvn_artifact pom.xml bin/%{name}-%{version}.jar
%mvn_install -J docs/api

# zero-length file
rm -r test/issues/velocity-537/compare/velocity537.vm.cmp
# data
install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -pr examples test %{buildroot}%{_datadir}/%{name}


%files -f .mfiles
%doc README.txt
%license LICENSE NOTICE

%files manual
%license LICENSE NOTICE
%doc docs/*

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%files demo
%license LICENSE NOTICE
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20111 |21mr|velocity-tools-2.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          velocity-tools
Version:       2.0
Release:       21
Summary:       Collection of useful tools for Velocity template engine
License:       ASL 2.0
Url:           http://velocity.apache.org/tools/releases/2.0/
Source0:       http://www.apache.org/dist/velocity/tools/%{version}/%{name}-%{version}-src.tar.gz
Patch0:        %{name}-%{version}-junit4.patch
Patch1:        %{name}-%{version}-dont_copy_test_lib.patch
# servlet 3.0 support thanks to mizdebsk
# servlet 3.1 support
Patch2:        %{name}-%{version}-servlet.patch
Patch3:        %{name}-%{version}-port-to-dom4j-2.0.patch

BuildRequires: maven-local
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-chain:commons-chain)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-digester:commons-digester)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-logging:commons-logging)
BuildRequires: mvn(commons-validator:commons-validator)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(org.apache.maven.plugins:maven-resources-plugin)
# required by resources-plugin
BuildRequires: mvn(org.apache.maven.shared:maven-filtering)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
BuildRequires: mvn(org.apache.struts:struts-core)
BuildRequires: mvn(org.apache.struts:struts-taglib)
BuildRequires: mvn(org.apache.struts:struts-tiles)
BuildRequires: mvn(org.apache.tomcat:tomcat-jsp-api)
BuildRequires: mvn(org.apache.tomcat:tomcat-servlet-api)
BuildRequires: mvn(org.apache.velocity:velocity)
BuildRequires: mvn(oro:oro)
BuildRequires: mvn(sslext:sslext)
# required by tomcat-jsp-api
BuildRequires: mvn(org.apache.tomcat:tomcat-el-api)

# test deps
%if 0
BuildRequires: mvn(httpunit:httpunit) = 1.6.1
BuildRequires: mvn(nekohtml:nekohtml) = 0.9.5
BuildRequires: mvn(org.mortbay.jetty:jetty-embedded) = 6.0.1
BuildRequires: mvn(rhino:js) = 1.6R5
BuildRequires: mvn(xerces:xercesImpl) = 2.8.1
BuildRequires: mvn(xerces:xmlParserAPIs) = 2.6.2
%endif
BuildRequires: mvn(junit:junit)
BuildRequires: xmvn

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The VelocityTools project is a collection of useful Java classes (aka tools),
as well as infrastructure to easily, automatically and transparently
make these tools available to Velocity templates.

Project include easy integration of Velocity into the view-layer of
web applications (via the VelocityViewTag and
VelocityViewServlet) and integration with Struts 1.x applications.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}-src
find . -name "*.jar" -delete
find . -name "*.class" -delete
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1

sed -i 's/\r//' LICENSE NOTICE WHY_THREE_JARS.txt

# force tomcat 7.x apis
%pom_remove_dep javax.servlet:servlet-api
%pom_add_dep org.apache.tomcat:tomcat-servlet-api::provided
%pom_add_dep org.apache.tomcat:tomcat-jsp-api::provided
# remove non standard build structure
%pom_xpath_remove "pom:project/pom:build/pom:outputDirectory"
%pom_xpath_remove "pom:project/pom:build/pom:directory"

%pom_remove_dep org.mortbay.jetty:jetty-embedded

%mvn_file :%{name} %{name}
%mvn_alias :%{name} %{name}:%{name}
%mvn_alias :%{name} org.apache.velocity:%{name}-generic
%mvn_alias :%{name} %{name}:%{name}-generic
%mvn_alias :%{name} %{name}:%{name}-view
%mvn_alias :%{name} org.apache.velocity:%{name}-view

%build

# tests skipped. cause: missing dependencies
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc CONTRIBUTORS README.txt STATUS WHY_THREE_JARS.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20112 |21mr|vesautils-0.1-0.12.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define svn	12
%define major	0
%define libname	%mklibname vbe %{major}
%define devname	%mklibname vbe -d

Summary:	Vesa BIOS extension tools
Name:		vesautils
Version:	0.1
Release:	0.%{svn}.2
License:	GPLv2
Group:		System/Configuration/Hardware
Url:		http://www.mplayerhq.hu/vesautils/index.html
Source0:	%{name}-%{svn}.tar.xz
Patch0:		vesautils-10-makefile.patch
Patch1:		vesautils-10-get-edid-path.patch
BuildRequires:	liblrmi-devel
ExclusiveArch:	%{ix86}

%description
This is a collection of utilities and a library for handling the VESA
BIOS Extension (aka VBE) with the help of LRMI under Linux and BSD.

%package -n %{libname}
Summary:	Vesa BIOS extension tools
Group:		System/Libraries

%description -n %{libname}
This is a collection of utilities and a library for handling the VESA
BIOS Extension (aka VBE) with the help of LRMI under Linux and BSD.

%package -n %{devname}
Summary:	Vesa BIOS extension tools
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	libvbe-devel = %{version}-%{release}

%description -n %{devname}
This is a collection of utilities and a library for handling the VESA
BIOS Extension (aka VBE) with the help of LRMI under Linux and BSD.

%prep
%setup -qn %{name}
%apply_patches

%build
make
cd libvbe
make

%install
install -d %{buildroot}%{_bindir}
install -m 755 dosint get-edid vbemodeinfo %{buildroot}%{_bindir}
cd libvbe
mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_includedir}
%makeinstall LIBDIR=%{buildroot}%{_libdir} INCDIR=%{buildroot}%{_includedir}

%files
%doc README
%{_bindir}/*

%files -n %{libname}
%{_libdir}/libvbe.so.%{major}*

%files -n %{devname}
%{_libdir}/libvbe.so
%{_includedir}/vbe.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20113 |21mr|viewres-1.0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: viewres
Version:	1.0.6
Release:	2
Summary:  graphical class browser for Xt
Group: Development/X11
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: libxt-devel >= 1.0.0
BuildRequires: libxaw-devel >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
The viewres program displays a tree showing the widget class hierarchy of the
Athena Widget Set.

%prep
%setup -q -n %{name}-%{version}

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/viewres
%{_datadir}/X11/app-defaults/Viewres
%{_datadir}/X11/app-defaults/Viewres-color
%{_mandir}/man1/viewres.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20114 |21mr|vigra-1.11.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 11
%define	libname %mklibname vigraimpex %{major}
%define	devname %mklibname %{name} -d

Summary:	Generic Programming for Computer Vision
Name:		vigra
Version:	1.11.1
Release:	6
License:	MIT
Group:		Development/C
Url:		https://ukoethe.github.io/vigra/
Source0:	https://github.com/ukoethe/vigra/releases/download/Version-1-11-1/%{name}-%{version}-src.tar.gz
Patch0:		vigra-1.11.1-gcc8.patch
Patch1:		vigra-1.11.1.py37.patch
Patch2:		fix_boost_lib_name.patch
Patch3:		vigra-openexr3.patch
BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	boost-devel
BuildRequires:	hdf5-devel
BuildRequires:	pkgconfig(fftw3)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(OpenEXR)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)

%description
VIGRA stands for "Vision with Generic Algorithms". It's a novel computer vision
library that puts its main emphasize on customizable algorithms and data
structures. By using template techniques similar to those in the C++ Standard
Template Library, you can easily adapt any VIGRA component to the needs of your
application, without thereby giving up execution speed.

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python interface for the vigra computer vision library
BuildRequires:	python3egg(numpy)
BuildRequires:	python3egg(sphinx)
BuildRequires:	python3egg(nose)
BuildRequires:	boost-python3-devel
Requires:	%{libname} = %{EVRD}
Requires:	python3-numpy
Requires:	python3-nose

%description -n python3-%{name}
The vigra-python package provides python bindings for vigra.

%files -n python3-%{name}
%{python3_sitearch}/vigra

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run %{name}.

%files -n %{libname}
%doc LICENSE.txt README.md
%{_libdir}/libvigraimpex.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development header files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Libraries, include files and other resources you can use to develop
%{name} applications.

%files -n %{devname}
%doc doc/%{name} doc/vigranumpy
%{_bindir}/%{name}-config
%{_includedir}/%{name}
%{_libdir}/%{name}
%{_libdir}/libvigraimpex.so
%{_libdir}/vigranumpy/VigranumpyConfig.cmake

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

# Remove executable permission on include files
find include -type f | xargs chmod 644


%build
%cmake \
	-DPYTHON_VERSION=%{py3_ver} \
	-DWITH_OPENEXR=ON
%make -s


%install
%makeinstall_std -C build

# Add python3 shebang
sed '1 s,^.*$,#!%{__python3},' -i %{buildroot}%{_bindir}/vigra-config

# We have our macro for docs
rm -rf %{buildroot}/usr/doc

# Cleanup
rm -f doc/vigranumpy/.buildinfo
find doc -type d | xargs chmod 755
find doc -type f | xargs chmod 644

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20115 |21mr|vim-9.1.0754-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define WITH_SELINUX 1
%define desktop_file 1

%define withnetbeans 1

%define withvimspell 0
%define withhunspell 0
%define withruby 1
%define withlua 1

%define baseversion 8.2
%define vimdir vim91

%global __requires_exclude perl\\(getopts.pl\\)
%global __requires_exclude_from %{_datadir}/vim

# Should we build X11 gui
%bcond_without gui
%bcond_without python3

Summary:	The VIM editor
URL:		http://www.vim.org/
Name:		vim
Version:	9.1.0754
Release:	1
Epoch:		2
Group:		Editors
License:	Vim and MIT
Source0:	https://github.com/vim/vim/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	vim.sh
Source2:	vim.csh
Source4:	virc
Source5:	vimrc
Source7:	gvim16.png
Source8:	gvim32.png
Source9:	gvim48.png
Source10:	gvim64.png
%if %{withvimspell}
Source13:	vim-spell-files.tar.bz2
%endif
Source14:	spec-template.new
Source15:	macros.vim
# C++11/C++14/C++17 syntax highlighting, Version 0.931 from
# https://www.vim.org/scripts/script.php?script_id=4293
Source20:	https://raw.githubusercontent.com/Mizuchi/STL-Syntax/master/after/syntax/cpp/stl.vim
# Assorted extra syntax highlighting files
Source21:	dhcpd.vim
Source22:	apparmor.vim
Source23:	cfengine.vim
Source24:	nagios.vim

# Special syntax highlighting and indentation for
# Qt keywords (Q_OBJECT and friends)
Patch1000:	vim-8.2-qt-highlighting.patch
# Don't replace "good" characters with .
Patch1001:	xxd-locale.patch

Patch2002:	vim-7.0-fixkeys.patch
%if %{withhunspell}
Patch2011:	vim-7.0-hunspell.patch
BuildRequires:	hunspell-devel
%endif

Patch3002:	vim-7.4-nowarnings.patch
Patch3004:	vim-7.0-rclocation.patch
Patch3010:	vim-7.3-manpage-typo-668894-675480.patch
Patch3011:	vim-manpagefixes-948566.patch
Patch3016:	vim-8.0-copy-paste.patch
# migrate shebangs in script to /usr/bin/python3 and use python2 when necessary
Patch3017:	vim-python3-tests.patch
# fips warning
Patch3018:	vim-crypto-warning.patch

%if %{with python3}
BuildRequires:	pkgconfig(python3)
%endif
BuildRequires:	perl-devel
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	perl(ExtUtils::Embed) perl(ExtUtils::ParseXS)
BuildRequires:	gpm-devel autoconf file
BuildRequires:	pkgconfig(libacl)
%if %{WITH_SELINUX}
BuildRequires:	selinux-devel
%endif
%if "%{withruby}" == "1"
BuildRequires:	ruby-devel ruby
%endif
%if "%{withlua}" == "1"
BuildRequires:	lua-devel
%endif
%if %{desktop_file}
# for /usr/bin/desktop-file-install
Requires:	desktop-file-utils
BuildRequires:	desktop-file-utils
%endif
Conflicts:	filesystem < 3

# vim bundles libvterm, which is used during build - so we need to provide
# bundled libvterm for catching possible libvterm CVEs
Provides: bundled(libvterm)


%description
VIM (VIsual editor iMproved) is an updated and improved version of the
vi editor.  Vi was the first real screen-based editor for UNIX, and is
still very popular.  VIM improves on vi by adding new features:
multiple windows, multi-level undo, block highlighting and more.

%package common
Summary: The common files needed by any version of the VIM editor
Conflicts: man-pages-fr < 0.9.7-14
Conflicts: man-pages-it < 0.3.0-17
Conflicts: man-pages-pl < 0.24-2
Provides: xxd = %{EVRD}
Requires: %{name}-filesystem
Conflicts: %{name}-minimal < %{epoch}:8.1.1-1

%description common
VIM (VIsual editor iMproved) is an updated and improved version of the
vi editor.  Vi was the first real screen-based editor for UNIX, and is
still very popular.  VIM improves on vi by adding new features:
multiple windows, multi-level undo, block highlighting and more.  The
vim-common package contains files which every VIM binary will need in
order to run.

If you are installing vim-enhanced or vim-X11, you'll also need
to install the vim-common package.

%package spell
Summary: The dictionaries for spell checking. This package is optional
Requires: vim-common = %{epoch}:%{version}-%{release}

%description spell
This subpackage contains dictionaries for vim spell checking in
many different languages.

%package minimal
Summary: A minimal version of the VIM editor
Provides: vi
Provides: %{_bindir}/vi
Requires(post): coreutils
# conflicts in package because of manpage move (bug #1599663)
Conflicts: %{name}-common < %{epoch}:8.1.1-1

%description minimal
VIM (VIsual editor iMproved) is an updated and improved version of the
vi editor.  Vi was the first real screen-based editor for UNIX, and is
still very popular.  VIM improves on vi by adding new features:
multiple windows, multi-level undo, block highlighting and more. The
vim-minimal package includes a minimal version of VIM, providing
the commands vi, view, ex, rvi, and rview. NOTE: The online help is
only available when the vim-common package is installed.

%package enhanced
Summary: A version of the VIM editor which includes recent enhancements
Requires: vim-common = %{epoch}:%{version}-%{release} which
Provides: vim
Provides: %{_bindir}/mergetool
Provides: %{_bindir}/vim
# suggest python3, python2, lua, ruby and perl packages because of their
# embedded functionality in Vim/GVim
# but make perl-devel as comment
Recommends: python3
Recommends: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
#Recommends: perl-devel
%if "%{withruby}" == "1"
Recommends: ruby-libs ruby
%endif
%if "%{withlua}" == "1"
Recommends: lua-libs
%endif

%description enhanced
VIM (VIsual editor iMproved) is an updated and improved version of the
vi editor.  Vi was the first real screen-based editor for UNIX, and is
still very popular.  VIM improves on vi by adding new features:
multiple windows, multi-level undo, block highlighting and more.  The
vim-enhanced package contains a version of VIM with extra, recently
introduced features like Python and Perl interpreters.

Install the vim-enhanced package if you'd like to use a version of the
VIM editor which includes recently added enhancements like
interpreters for the Python and Perl scripting languages.  You'll also
need to install the vim-common package.

%package filesystem
Summary: VIM filesystem layout
BuildArch: noarch

%Description filesystem
This package provides some directories which are required by other
packages that add vim files, p.e.  additional syntax files or filetypes.

%if %{with gui}
%package X11
Summary: The VIM version of the vi editor for the X Window System - GVim
# needed in configure script to have correct macros enabled for GUI (#1603272)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(sm)
BuildRequires:	appstream-util

Requires: vim-common = %{epoch}:%{version}-%{release}
Requires: %{_lib}gtk3_0
Provides: gvim
Provides: %{_bindir}/mergetool
Provides: %{_bindir}/gvim
Requires: hicolor-icon-theme
# suggest python3, python2, lua, ruby and perl packages because of their
# embedded functionality in Vim/GVim
# but make perl-devel as comment
Recommends: python3
Recommends: perl(:MODULE_COMPAT_%(eval "`%{__perl} -V:version`"; echo $version))
#Recommends: perl-devel
%if "%{withruby}" == "1"
Recommends: ruby-libs ruby
%endif
%if "%{withlua}" == "1"
Recommends: lua
%endif

%description X11
VIM (VIsual editor iMproved) is an updated and improved version of the
vi editor.  Vi was the first real screen-based editor for UNIX, and is
still very popular.  VIM improves on vi by adding new features:
multiple windows, multi-level undo, block highlighting and
more. VIM-X11 is a version of the VIM editor which will run within the
X Window System.  If you install this package, you can run VIM as an X
application with a full GUI interface and mouse support by command gvim.

Install the vim-X11 package if you'd like to try out a version of vi
with graphics and mouse capabilities.  You'll also need to install the
vim-common package.
%endif

%prep
%setup -q -b 0

# Additional syntax highlighting support
mkdir runtime/syntax/cpp
cp %{S:20} runtime/syntax/cpp/
cp %{S:21} %{S:22} %{S:23} %{S:24} runtime/syntax/

# use %%{__python3} macro for defining shebangs in python3 tests
sed -i -e 's,/usr/bin/python3,%{__python3},' %{PATCH3017}

%patch1000 -p1 -b .qt~

# fix rogue dependencies from sample code
chmod -x runtime/tools/mve.awk
%patch2002 -p1 -b .fixkeys
%if %{withhunspell}
%patch2011 -p1
%endif
perl -pi -e "s,bin/nawk,bin/awk,g" runtime/tools/mve.awk

# install spell files
%if %{withvimspell}
%{__tar} xjf %{SOURCE13}
%endif

%patch3002 -p1
%patch3004 -p1
%patch3010 -p1
%patch3011 -p1
%patch3016 -p1 -b .copypaste
%patch3017 -p1
%patch3018 -p1

# Fix error messages in vi
sed -i "/^#/d" runtime/ftplugof.vim

%build
cd src
autoconf

sed -e "s+VIMRCLOC	= \$(VIMLOC)+VIMRCLOC	= /etc+" Makefile > Makefile.tmp
mv -f Makefile.tmp Makefile

export CFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"
export CXXFLAGS="%{optflags} -D_GNU_SOURCE -D_FILE_OFFSET_BITS=64 -D_FORTIFY_SOURCE=2"

cp -f os_unix.h os_unix.h.save
cp -f ex_cmds.c ex_cmds.c.save

# Configure options:
# --enable-fail-if-missing - we need to fail if configure options aren't satisfied
# --with-features - for setting how big amount of features is enabled
# --enable-multibyte - enabling multibyte editing support - for editing files in languages, which one character
#                      cannot be represented by one byte - Asian languages, Unicode
# --disable-netbeans - disabling socket interface for integrating Vim into NetBeans IDE
# --enable-selinux - enabling selinux support
# --enable-Ninterp - enabling internal interpreter
# --with-x - yes if we want X11 support (graphical Vim for X11)
# --with-tlib - which terminal library to use
# --disable-gpm - disabling support for General Purpose Mouse - Linux mouse daemon

perl -pi -e "s/vimrc/virc/"  os_unix.h
%configure --prefix=%{_prefix} --with-features=small --with-x=no \
  --enable-multibyte \
  --disable-netbeans \
%if %{WITH_SELINUX}
  --enable-selinux \
%else
  --disable-selinux \
%endif
  --disable-pythoninterp --disable-perlinterp --disable-tclinterp \
  --with-tlib=ncurses --enable-gui=no --disable-gpm --exec-prefix=/ \
  --with-compiledby="<bugzilla@redhat.com>" \
  --with-modified-by="<bugzilla@redhat.com>" \
  --enable-fips-warning \
  --enable-fail-if-missing

make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
cp vim minimal-vim
make clean

mv -f os_unix.h.save os_unix.h
mv -f ex_cmds.c.save ex_cmds.c

export LDFLAGS="%{build_ldflags} $(python3-config --libs --embed)"

# More configure options:
# --enable-xim - enabling X Input Method - international input module for X,
#                it is for multibyte languages in Vim with X
# --enable-termtruecolor - use terminal with true colors
%if %{with gui}
%configure --with-features=huge \
  --enable-python3interp=dynamic \
  --enable-perlinterp=dynamic \
  --disable-tclinterp --with-x=yes \
  --enable-xim --enable-multibyte \
  --with-tlib=ncurses \
  --enable-gtk3-check --enable-gui=gtk3 \
  --enable-fips-warning \
  --with-compiledby="<bugzilla@rosalinux.ru>" --enable-cscope \
  --with-modified-by="<bugzilla@rosalinux.ru>" \
%if "%{withnetbeans}" == "1"
  --enable-netbeans \
%else
  --disable-netbeans \
%endif
%if %{WITH_SELINUX}
  --enable-selinux \
%else
  --disable-selinux \
%endif
%if "%{withruby}" == "1"
  --enable-rubyinterp=dynamic \
%else
  --disable-rubyinterp \
%endif
%if "%{withlua}" == "1"
  --enable-luainterp=dynamic \
%else
  --disable-luainterp \
%endif
  --enable-fail-if-missing

make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
cp vim gvim
make clean
%endif

%configure --prefix=%{_prefix} --with-features=huge \
 --enable-python3interp=dynamic \
 --enable-perlinterp=dynamic \
 --disable-tclinterp \
 --with-x=no \
 --enable-gui=no --exec-prefix=%{_prefix} --enable-multibyte \
 --enable-cscope --with-modified-by="<bugzilla@rosalinux.ru>" \
 --with-tlib=ncurses \
 --enable-fips-warning \
 --with-compiledby="<bugzilla@rosalinux.ru>" \
%if "%{withnetbeans}" == "1"
  --enable-netbeans \
%else
  --disable-netbeans \
%endif
%if %{WITH_SELINUX}
  --enable-selinux \
%else
  --disable-selinux \
%endif
%if "%{withruby}" == "1"
  --enable-rubyinterp=dynamic \
%else
  --disable-rubyinterp \
%endif
%if "%{withlua}" == "1"
  --enable-luainterp=dynamic \
%else
  --disable-luainterp \
%endif
  --enable-fail-if-missing

make VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} %{?_smp_mflags}
cp vim enhanced-vim

%install
mkdir -p %{buildroot}/%{_bindir}
mkdir -p %{buildroot}/%{_datadir}/%{name}/vimfiles/{after,autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor}
mkdir -p %{buildroot}/%{_datadir}/%{name}/vimfiles/after/{autoload,colors,compiler,doc,ftdetect,ftplugin,indent,keymap,lang,plugin,print,spell,syntax,tutor}
cp -f %{SOURCE14} %{buildroot}/%{_datadir}/%{name}/vimfiles/template.spec
cp runtime/doc/uganda.txt LICENSE
# Those aren't Linux info files but some binary files for Amiga:
rm -f README*.info


cd src
# Adding STRIP=/bin/true, because Vim wants to strip the binaries by himself
# and put the stripped files into correct dirs. Build system (koji/brew)
# does it for us, so there is no need to do it in Vim
make install DESTDIR=%{buildroot} BINDIR=%{_bindir} VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir} STRIP=/bin/true
install -m755 minimal-vim %{buildroot}%{_bindir}/vi
install -m755 enhanced-vim %{buildroot}%{_bindir}/vim
%if %{with gui}
make installgtutorbin  DESTDIR=%{buildroot} BINDIR=%{_bindir} VIMRCLOC=/etc VIMRUNTIMEDIR=/usr/share/vim/%{vimdir}
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/{16x16,32x32,48x48,64x64}/apps
install -m755 gvim %{buildroot}%{_bindir}/gvim
install -p -m644 %{SOURCE7} \
   %{buildroot}%{_datadir}/icons/hicolor/16x16/apps/gvim.png
install -p -m644 %{SOURCE8} \
   %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/gvim.png
install -p -m644 %{SOURCE9} \
   %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/gvim.png
install -p -m644 %{SOURCE10} \
   %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/gvim.png
#cp -f %{SOURCE17} %{buildroot}/%{_datadir}/%{name}/%{vimdir}/ftplugin/spec.vim
#cp -f %{SOURCE18} %{buildroot}/%{_datadir}/%{name}/%{vimdir}/syntax/spec.vim

# Register as an application to be visible in the software center
#
# NOTE: It would be *awesome* if this file was maintained by the upstream
# project, translated and installed into the right place during `make install`.
#
# See http://www.freedesktop.org/software/appstream/docs/ for more details.
#
mkdir -p $RPM_BUILD_ROOT%{_datadir}/metainfo
cat > $RPM_BUILD_ROOT%{_datadir}/metainfo/gvim.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<!-- Copyright 2014 Richard Hughes <richard@hughsie.com> -->
<!--
EmailAddress: Bram@moolenaar.net>
SentUpstream: 2014-05-22
-->
<application>
  <id type="desktop">gvim.desktop</id>
  <metadata_license>CC0-1.0</metadata_license>
  <project_license>Vim</project_license>
  <description>
    <p>
     Vim is an advanced text editor that seeks to provide the power of the
     de-facto Unix editor 'Vi', with a more complete feature set.
     It's useful whether you're already using vi or using a different editor.
    </p>
    <p>
     Vim is a highly configurable text editor built to enable efficient text
     editing.
     Vim is often called a "programmer's editor," and so useful for programming
     that many consider it an entire IDE. It is not just for programmers, though.
     Vim is perfect for all kinds of text editing, from composing email to
     editing configuration files.
    </p>
  </description>
  <screenshots>
    <screenshot type="default">
      <image>https://raw.githubusercontent.com/zdohnal/vim/zdohnal-screenshot/gvim16_9.png</image>
    </screenshot>
  </screenshots>
  <url type="homepage">http://www.vim.org/</url>
</application>
EOF
%endif

( cd %{buildroot}
  ln -sf vi ./%{_bindir}/rvi
  ln -sf vi ./%{_bindir}/rview
  ln -sf vi ./%{_bindir}/view
  ln -sf vi ./%{_bindir}/ex
  ln -sf vim ./%{_bindir}/rvim
  ln -sf vim ./%{_bindir}/vimdiff
  perl -pi -e "s,%{buildroot},," .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vimtutor.1
  rm -f .%{_mandir}/man1/rvim.1
  cp -p .%{_mandir}/man1/vim.1 .%{_mandir}/man1/vi.1
  ln -sf vi.1.gz .%{_mandir}/man1/rvi.1.gz
  ln -sf vim.1.gz .%{_mandir}/man1/vimdiff.1.gz
%if %{with gui}
  ln -sf gvim ./%{_bindir}/gview
  ln -sf gvim ./%{_bindir}/gex
  ln -sf gvim ./%{_bindir}/evim
  ln -sf gvim ./%{_bindir}/gvimdiff
  ln -sf gvim ./%{_bindir}/vimx
  %if "%{desktop_file}" == "1"
    desktop-file-install \
        --dir %{buildroot}/%{_datadir}/applications \
        %{buildroot}/%{_datadir}/applications/gvim.desktop
        # --add-category "Development;TextEditor;X-Red-Hat-Base" D\
  %else
    mkdir -p ./%{_sysconfdir}/X11/applnk/Applications
    cp %{buildroot}/%{_datadir}/applications/gvim.desktop ./%{_sysconfdir}/X11/applnk/Applications/gvim.desktop
  %endif
  # ja_JP.ujis is obsolete, ja_JP.eucJP is recommended.
  ( cd ./%{_datadir}/%{name}/%{vimdir}/lang; \
    ln -sf menu_ja_jp.ujis.vim menu_ja_jp.eucjp.vim )
  appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*.appdata.xml
%endif
)

pushd %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tutor
mkdir conv
   iconv -f CP1252 -t UTF8 tutor.ca > conv/tutor.ca
   iconv -f CP1252 -t UTF8 tutor.it > conv/tutor.it
   #iconv -f CP1253 -t UTF8 tutor.gr > conv/tutor.gr
   iconv -f CP1252 -t UTF8 tutor.fr > conv/tutor.fr
   iconv -f CP1252 -t UTF8 tutor.es > conv/tutor.es
   iconv -f CP1252 -t UTF8 tutor.de > conv/tutor.de
   #iconv -f CP737 -t UTF8 tutor.gr.cp737 > conv/tutor.gr.cp737
   #iconv -f EUC-JP -t UTF8 tutor.ja.euc > conv/tutor.ja.euc
   #iconv -f SJIS -t UTF8 tutor.ja.sjis > conv/tutor.ja.sjis
   iconv -f UTF8 -t UTF8 tutor.ja.utf-8 > conv/tutor.ja.utf-8
   iconv -f UTF8 -t UTF8 tutor.ko.utf-8 > conv/tutor.ko.utf-8
   iconv -f CP1252 -t UTF8 tutor.no > conv/tutor.no
   iconv -f ISO-8859-2 -t UTF8 tutor.pl > conv/tutor.pl
   iconv -f ISO-8859-2 -t UTF8 tutor.sk > conv/tutor.sk
   iconv -f KOI8R -t UTF8 tutor.ru > conv/tutor.ru
   iconv -f CP1252 -t UTF8 tutor.sv > conv/tutor.sv
   mv -f tutor.ja.euc tutor.ja.sjis tutor.ko.euc tutor.pl.cp1250 tutor.zh.big5 tutor.ru.cp1251 tutor.zh.euc tutor.sr.cp1250 tutor.sr.utf-8 conv/
   rm -f tutor.ca tutor.de tutor.es tutor.fr tutor.gr tutor.it tutor.ja.utf-8 tutor.ko.utf-8 tutor.no tutor.pl tutor.sk tutor.ru tutor.sv
mv -f conv/* .
rmdir conv
popd

# Dependency cleanups
chmod 644 %{buildroot}/%{_datadir}/%{name}/%{vimdir}/doc/vim2html.pl \
 %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tools/*.pl \
 %{buildroot}/%{_datadir}/%{name}/%{vimdir}/tools/vim132
chmod 644 ../runtime/doc/vim2html.pl

mkdir -p %{buildroot}/%{_sysconfdir}/profile.d
cp %{SOURCE1} %{buildroot}/%{_sysconfdir}/profile.d/vim.sh
cp %{SOURCE2} %{buildroot}/%{_sysconfdir}/profile.d/vim.csh
chmod 0644 %{buildroot}/%{_sysconfdir}/profile.d/vim.*
install -p -m644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/virc
install -p -m644 %{SOURCE5} %{buildroot}/%{_sysconfdir}/vimrc

mkdir -p %{buildroot}%{_rpmconfigdir}/macros.d/
install -p -m644 %{SOURCE15} %{buildroot}%{_rpmconfigdir}/macros.d/

(cd ../runtime; rm -rf doc; ln -svf ../../vim/%{vimdir}/doc docs;)
rm -f %{buildroot}/%{_datadir}/vim/%{vimdir}/macros/maze/maze*.c
rm -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/tools
rm -rf %{buildroot}/%{_datadir}/vim/%{vimdir}/doc/vim2html.pl
rm -f %{buildroot}/%{_datadir}/vim/%{vimdir}/tutor/tutor.gr.utf-8~

# Remove not UTF-8 manpages
for i in pl.ISO8859-2 it.ISO8859-1 ru.KOI8-R fr.ISO8859-1 da.ISO8859-1 de.ISO8859-1; do
  rm -rf %{buildroot}/%{_mandir}/$i
done

# use common man1/ru directory
mv %{buildroot}/%{_mandir}/ru.UTF-8 %{buildroot}/%{_mandir}/ru

# Remove duplicate man pages
for i in fr.UTF-8 it.UTF-8 pl.UTF-8 da.UTF-8 de.UTF-8; do
  rm -rf %{buildroot}/%{_mandir}/$i
done

for i in rvim.1 gvim.1 gex.1 gview.1 vimx.1; do
  echo ".so man1/vim.1" > %{buildroot}/%{_mandir}/man1/$i
done
echo ".so man1/vimdiff.1" > %{buildroot}/%{_mandir}/man1/gvimdiff.1
echo ".so man1/vimtutor.1" > %{buildroot}/%{_mandir}/man1/gvimtutor.1
mkdir -p %{buildroot}/%{_mandir}/man5
echo ".so man1/vim.1" > %{buildroot}/%{_mandir}/man5/vimrc.5
echo ".so man1/vi.1" > %{buildroot}/%{_mandir}/man5/virc.5
touch %{buildroot}/%{_datadir}/%{name}/vimfiles/doc/tags

%if %{without gui}
# Remove unneeded files for non-gui build
rm -f %{buildroot}%{_datadir}/applications/*vim.desktop
rm -f %{buildroot}%{_datadir}/icons/*color/*/apps/*
rm -f %{buildroot}%{_mandir}/man1/evim.*
%endif

# Refresh documentation helptags
%transfiletriggerin common -- %{_datadir}/%{name}/vimfiles/doc
%{_bindir}/vim -c ":helptags %{_datadir}/%{name}/vimfiles/doc" -c :q &> /dev/null || :

%transfiletriggerpostun common -- %{_datadir}/%{name}/vimfiles/doc
> %{_datadir}/%{name}/vimfiles/doc/tags || :
%{_bindir}/vim -c ":helptags %{_datadir}/%{name}/vimfiles/doc" -c :q &> /dev/null || :

%files common
%config(noreplace) %{_sysconfdir}/vimrc
%{!?_licensedir:%global license %%doc}
%license LICENSE
%doc README*
%doc runtime/docs
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/vimfiles/template.spec
%dir %{_datadir}/%{name}/%{vimdir}
%{_datadir}/%{name}/%{vimdir}/import/dist/*.vim
%{_datadir}/%{name}/%{vimdir}/autoload
%{_datadir}/%{name}/%{vimdir}/colors
%{_datadir}/%{name}/%{vimdir}/compiler
%{_datadir}/%{name}/%{vimdir}/pack
%{_datadir}/%{name}/%{vimdir}/doc
%{_datadir}/%{name}/%{vimdir}/*.vim
%{_datadir}/%{name}/%{vimdir}/ftplugin
%{_datadir}/%{name}/%{vimdir}/indent
%{_datadir}/%{name}/%{vimdir}/keymap
%{_datadir}/%{name}/%{vimdir}/lang/*.vim
%{_datadir}/%{name}/%{vimdir}/lang/*.txt
%dir %{_datadir}/%{name}/%{vimdir}/lang
%{_datadir}/%{name}/%{vimdir}/macros
%{_datadir}/%{name}/%{vimdir}/plugin
%{_datadir}/%{name}/%{vimdir}/print
%{_datadir}/%{name}/%{vimdir}/syntax
%{_datadir}/%{name}/%{vimdir}/tutor
%if ! %{withvimspell}
%{_datadir}/%{name}/%{vimdir}/spell
%endif
%lang(af) %{_datadir}/%{name}/%{vimdir}/lang/af
%lang(ca) %{_datadir}/%{name}/%{vimdir}/lang/ca
%lang(cs) %{_datadir}/%{name}/%{vimdir}/lang/cs
%lang(hu) %{_datadir}/%{name}/%{vimdir}/lang/hu
%lang(cs.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/cs.cp1250
%lang(da) %{_datadir}/%{name}/%{vimdir}/lang/da
%lang(de) %{_datadir}/%{name}/%{vimdir}/lang/de
%lang(en_GB) %{_datadir}/%{name}/%{vimdir}/lang/en_GB
%lang(eo) %{_datadir}/%{name}/%{vimdir}/lang/eo
%lang(es) %{_datadir}/%{name}/%{vimdir}/lang/es
%lang(fi) %{_datadir}/%{name}/%{vimdir}/lang/fi
%lang(fr) %{_datadir}/%{name}/%{vimdir}/lang/fr
%lang(ga) %{_datadir}/%{name}/%{vimdir}/lang/ga
%lang(it) %{_datadir}/%{name}/%{vimdir}/lang/it
%lang(ja) %{_datadir}/%{name}/%{vimdir}/lang/ja
%lang(ja.euc-jp) %{_datadir}/%{name}/%{vimdir}/lang/ja.euc-jp
%lang(ja.sjis) %{_datadir}/%{name}/%{vimdir}/lang/ja.sjis
%lang(ko) %{_datadir}/%{name}/%{vimdir}/lang/ko
%lang(ko) %{_datadir}/%{name}/%{vimdir}/lang/ko.UTF-8
%lang(lv) %{_datadir}/%{name}/%{vimdir}/lang/lv
%lang(nb) %{_datadir}/%{name}/%{vimdir}/lang/nb
%lang(nl) %{_datadir}/%{name}/%{vimdir}/lang/nl
%lang(no) %{_datadir}/%{name}/%{vimdir}/lang/no
%lang(pl) %{_datadir}/%{name}/%{vimdir}/lang/pl
%lang(pl.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/pl.UTF-8
%lang(pl.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/pl.cp1250
%lang(pt_BR) %{_datadir}/%{name}/%{vimdir}/lang/pt_BR
%lang(ru) %{_datadir}/%{name}/%{vimdir}/lang/ru
%lang(ru.cp1251) %{_datadir}/%{name}/%{vimdir}/lang/ru.cp1251
%lang(sk) %{_datadir}/%{name}/%{vimdir}/lang/sk
%lang(sk.cp1250) %{_datadir}/%{name}/%{vimdir}/lang/sk.cp1250
%lang(sr) %{_datadir}/%{name}/%{vimdir}/lang/sr
%lang(sv) %{_datadir}/%{name}/%{vimdir}/lang/sv
%lang(tr) %{_datadir}/%{name}/%{vimdir}/lang/tr
%lang(uk) %{_datadir}/%{name}/%{vimdir}/lang/uk
%lang(uk.cp1251) %{_datadir}/%{name}/%{vimdir}/lang/uk.cp1251
%lang(vi) %{_datadir}/%{name}/%{vimdir}/lang/vi
%lang(zh_CN) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN
%lang(zh_CN.cp936) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN.cp936
%lang(zh_TW) %{_datadir}/%{name}/%{vimdir}/lang/zh_TW
%lang(zh_CN.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/zh_CN.UTF-8
%lang(zh_TW.UTF-8) %{_datadir}/%{name}/%{vimdir}/lang/zh_TW.UTF-8
/%{_bindir}/xxd
%{_mandir}/man1/gex.*
%{_mandir}/man1/gview.*
%{_mandir}/man1/gvim*
%{_mandir}/man1/rvim.*
%{_mandir}/man1/vim.*
%{_mandir}/man1/vimdiff.*
%{_mandir}/man1/vimtutor.*
%{_mandir}/man1/vimx.*
%{_mandir}/man1/xxd.*
%{_mandir}/man5/vimrc.*
%lang(fr) %{_mandir}/fr/man1/*
%lang(da) %{_mandir}/da/man1/*
%lang(de) %{_mandir}/de/man1/*
%lang(it) %{_mandir}/it/man1/*
%lang(ja) %{_mandir}/ja/man1/*
%lang(pl) %{_mandir}/pl/man1/*
%lang(ru) %{_mandir}/ru/man1/*
%lang(tr) %{_mandir}/tr/man1/*
%{_mandir}/tr.*/man1/*

%if %{withvimspell}
%files spell
%dir %{_datadir}/%{name}/%{vimdir}/spell
%{_datadir}/%{name}/vim70/spell/cleanadd.vim
%lang(af) %{_datadir}/%{name}/%{vimdir}/spell/af.*
%lang(am) %{_datadir}/%{name}/%{vimdir}/spell/am.*
%lang(bg) %{_datadir}/%{name}/%{vimdir}/spell/bg.*
%lang(ca) %{_datadir}/%{name}/%{vimdir}/spell/ca.*
%lang(cs) %{_datadir}/%{name}/%{vimdir}/spell/cs.*
%lang(cy) %{_datadir}/%{name}/%{vimdir}/spell/cy.*
%lang(da) %{_datadir}/%{name}/%{vimdir}/spell/da.*
%lang(de) %{_datadir}/%{name}/%{vimdir}/spell/de.*
%lang(el) %{_datadir}/%{name}/%{vimdir}/spell/el.*
%lang(en) %{_datadir}/%{name}/%{vimdir}/spell/en.*
%lang(eo) %{_datadir}/%{name}/%{vimdir}/spell/eo.*
%lang(es) %{_datadir}/%{name}/%{vimdir}/spell/es.*
%lang(fo) %{_datadir}/%{name}/%{vimdir}/spell/fo.*
%lang(fr) %{_datadir}/%{name}/%{vimdir}/spell/fr.*
%lang(ga) %{_datadir}/%{name}/%{vimdir}/spell/ga.*
%lang(gd) %{_datadir}/%{name}/%{vimdir}/spell/gd.*
%lang(gl) %{_datadir}/%{name}/%{vimdir}/spell/gl.*
%lang(he) %{_datadir}/%{name}/%{vimdir}/spell/he.*
%lang(hr) %{_datadir}/%{name}/%{vimdir}/spell/hr.*
%lang(hu) %{_datadir}/%{name}/%{vimdir}/spell/hu.*
%lang(id) %{_datadir}/%{name}/%{vimdir}/spell/id.*
%lang(it) %{_datadir}/%{name}/%{vimdir}/spell/it.*
%lang(ku) %{_datadir}/%{name}/%{vimdir}/spell/ku.*
%lang(la) %{_datadir}/%{name}/%{vimdir}/spell/la.*
%lang(lt) %{_datadir}/%{name}/%{vimdir}/spell/lt.*
%lang(lv) %{_datadir}/%{name}/%{vimdir}/spell/lv.*
%lang(mg) %{_datadir}/%{name}/%{vimdir}/spell/mg.*
%lang(mi) %{_datadir}/%{name}/%{vimdir}/spell/mi.*
%lang(ms) %{_datadir}/%{name}/%{vimdir}/spell/ms.*
%lang(nb) %{_datadir}/%{name}/%{vimdir}/spell/nb.*
%lang(nl) %{_datadir}/%{name}/%{vimdir}/spell/nl.*
%lang(nn) %{_datadir}/%{name}/%{vimdir}/spell/nn.*
%lang(ny) %{_datadir}/%{name}/%{vimdir}/spell/ny.*
%lang(pl) %{_datadir}/%{name}/%{vimdir}/spell/pl.*
%lang(pt) %{_datadir}/%{name}/%{vimdir}/spell/pt.*
%lang(ro) %{_datadir}/%{name}/%{vimdir}/spell/ro.*
%lang(ru) %{_datadir}/%{name}/%{vimdir}/spell/ru.*
%lang(rw) %{_datadir}/%{name}/%{vimdir}/spell/rw.*
%lang(sk) %{_datadir}/%{name}/%{vimdir}/spell/sk.*
%lang(sl) %{_datadir}/%{name}/%{vimdir}/spell/sl.*
%lang(sr) %{_datadir}/%{name}/%{vimdir}/spell/sr.*
%lang(sv) %{_datadir}/%{name}/%{vimdir}/spell/sv.*
%lang(sw) %{_datadir}/%{name}/%{vimdir}/spell/sw.*
%lang(tet) %{_datadir}/%{name}/%{vimdir}/spell/tet.*
%lang(th) %{_datadir}/%{name}/%{vimdir}/spell/th.*
%lang(tl) %{_datadir}/%{name}/%{vimdir}/spell/tl.*
%lang(tn) %{_datadir}/%{name}/%{vimdir}/spell/tn.*
%lang(uk) %{_datadir}/%{name}/%{vimdir}/spell/uk.*
%lang(yi) %{_datadir}/%{name}/%{vimdir}/spell/yi.*
%lang(yi-tr) %{_datadir}/%{name}/%{vimdir}/spell/yi-tr.*
%lang(zu) %{_datadir}/%{name}/%{vimdir}/spell/zu.*
%endif

%files minimal
%config(noreplace) %{_sysconfdir}/virc
%{_bindir}/ex
%{_bindir}/vi
%{_bindir}/view
%{_bindir}/rvi
%{_bindir}/rview
%{_mandir}/man1/vi.*
%{_mandir}/man1/ex.*
%{_mandir}/man1/rvi.*
%{_mandir}/man1/rview.*
%{_mandir}/man1/view.*
%{_mandir}/man5/virc.*
%ghost %{_datadir}/%{name}/%{vimdir}/defaults.%{name}

%post minimal
# Need this file for make vi happy
touch %{_datadir}/%{name}/%{vimdir}/defaults.%{name}

%files enhanced
%{_bindir}/vim
%{_bindir}/rvim
%{_bindir}/vimdiff
%{_bindir}/vimtutor
%config(noreplace) %{_sysconfdir}/profile.d/vim.*

%files filesystem
%{_rpmconfigdir}/macros.d/macros.vim
%dir %{_datadir}/%{name}/vimfiles
%dir %{_datadir}/%{name}/vimfiles/after
%dir %{_datadir}/%{name}/vimfiles/after/*
%dir %{_datadir}/%{name}/vimfiles/autoload
%dir %{_datadir}/%{name}/vimfiles/colors
%dir %{_datadir}/%{name}/vimfiles/compiler
%dir %{_datadir}/%{name}/vimfiles/doc
%ghost %{_datadir}/%{name}/vimfiles/doc/tags
%dir %{_datadir}/%{name}/vimfiles/ftdetect
%dir %{_datadir}/%{name}/vimfiles/ftplugin
%dir %{_datadir}/%{name}/vimfiles/indent
%dir %{_datadir}/%{name}/vimfiles/keymap
%dir %{_datadir}/%{name}/vimfiles/lang
%dir %{_datadir}/%{name}/vimfiles/plugin
%dir %{_datadir}/%{name}/vimfiles/print
%dir %{_datadir}/%{name}/vimfiles/spell
%dir %{_datadir}/%{name}/vimfiles/syntax
%dir %{_datadir}/%{name}/vimfiles/tutor

%if %{with gui}
%files X11
%if "%{desktop_file}" == "1"
%{_datadir}/metainfo/*.appdata.xml
/%{_datadir}/applications/*
%exclude /%{_datadir}/applications/vim.desktop
%else
/%{_sysconfdir}/X11/applnk/*/gvim.desktop
%endif
%{_bindir}/gvimtutor
%{_bindir}/gvim
%{_bindir}/gvimdiff
%{_bindir}/gview
%{_bindir}/gex
%{_bindir}/vimtutor
%{_bindir}/vimx
%{_bindir}/evim
%{_mandir}/man1/evim.*
%{_datadir}/icons/hicolor/*/apps/*
%{_datadir}/icons/locolor/*/apps/*
%endif


# CVE-2022-2571 CVE-2022-2580 CVE-2022-2581 CVE-2022-2598
# CVE-2022-2816 CVE-2022-2817 CVE-2022-2819 CVE-2022-2845
# CVE-2022-2849 CVE-2022-2862 CVE-2022-2874 CVE-2022-2889
# CVE-2022-2923 CVE-2022-2946 CVE-2022-2980 CVE-2022-2982
# CVE-2022-3016 CVE-2022-3037 CVE-2022-3099 CVE-2022-3134
# CVE-2022-3153 CVE-2022-3234 CVE-2022-3235 CVE-2022-3256
# CVE-2022-3278 CVE-2022-3296 CVE-2022-3297 CVE-2022-3324
# CVE-2022-3352 CVE-2022-3352 CVE-2022-3324 CVE-2022-3297
# CVE-2022-3296 CVE-2022-3278 CVE-2022-3256 CVE-2022-3235
# CVE-2022-3234 CVE-2022-1886 CVE-2022-1851

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20116 |21mr|vimguide-0.7-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

Summary:	Vim editor reference guide
Name:		vimguide
Version:	0.7
Release:	18
Group:		Books/Other
License:	OpenSource
URL:		ftp://ftp.vim.org/pub/vim/doc/
Source0:	ftp://ftp.vim.org/pub/vim/doc/%{name}-%{version}.tar.bz2
BuildArch:	noarch

%description
This is a command and feature reference guide to VIM 5.6 but can also be used
for higher version of vim.

VIM (stands for Vi IMproved) - greatly improved (over original UNIX vi) text
editor with GUI, syntax highlighting, visual mode and many more new features
you won't find in the original vi.

This guide is designed and typeset by Oleg Raisky using LaTeX. The text of the
guide is comprised of various VIM documentation files, sometimes modified for
better consistency with overall style of the guide.

*NOTE*: this is NOT a complete user guide or tutorial. The only purpose of this
guide is to give a VIM user a quick and handy reference.

%prep

%setup -q -n %{name}-%{version}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc * 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20117 |21mr|vinagre-3.22.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	VNC Client for the GNOME Desktop
Name:		vinagre
Version:	3.22.0
Release:	15
License:	GPLv2+
Group:		Networking/Remote access
Url:		https://download.gnome.org/sources/vinagre
Source0:	https://download.gnome.org/sources/vinagre/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		vinagre-3.22.0-more-long-password-for-vnc.patch
BuildRequires:	desktop-file-utils
#BuildRequires:	gnome-builder
BuildRequires:	gnome-common
BuildRequires:	gnome-doc-utils >= 0.3.2
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(avahi-gobject)
BuildRequires:	pkgconfig(avahi-ui-gtk3)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtk-vnc-2.0)
BuildRequires:	pkgconfig(libpeas-1.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(spice-client-gtk-3.0)
BuildRequires:	pkgconfig(telepathy-glib)
BuildRequires:	pkgconfig(vte-2.91)
Requires:	gnome-icon-theme

%description
Vinagre is a VNC Client for the GNOME Desktop.

With Vinagre you can have several connections open simultaneously, bookmark
your servers thanks to the Favorites support, store the passwords in the
GNOME keyring, and browse the network to look for VNC servers.

%files -f %{name}.lang
%doc AUTHORS NEWS README
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/*/*/*.*
%{_datadir}/mime/packages/vinagre-mime.xml
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Vinagre.service
%{_datadir}/telepathy/clients/Vinagre.client
%{_mandir}/man1/vinagre.1*
%{_datadir}/glib-2.0/schemas/org.gnome.Vinagre.gschema.xml
%{_datadir}/GConf/gsettings/org.gnome.Vinagre.convert

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1


%build
%configure --enable-ssh
sed -i '/APPSTREAM_XML_RULES/d' Makefile
%make

%install
%makeinstall_std

%find_lang %{name} --with-gnome

desktop-file-install \
	--vendor="" \
	--add-category="RemoteAccess;Network" \
	--dir %{buildroot}%{_datadir}/applications \
	%{buildroot}%{_datadir}/applications/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20118 |21mr|vino-3.22.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

Summary:	GNOME VNC server and client
Name:		vino
Version:	3.22.0
Release:	15
License:	GPLv2+
Group:		Networking/Remote access
Url:		https://download.gnome.org/sources/vino
Source0:	https://download.gnome.org/sources/vino/%{url_ver}/%{name}-%{version}.tar.xz
Patch0:		vino-3.22.0-fix-CVE-2014-6053.patch
Patch1:		vino-3.22.0-fix-CVE-2018-7225.patch
Patch2:		vino-3.22.0-fix-CVE-2019-15681.patch
Patch3:		vino-3.22.0-deprecated.patch
#From Fedora
Patch10:	Return-error-if-X11-is-not-detected.patch
Patch11:	Do-not-restart-service-after-unclean-exit-code.patch
Patch12:	Do-not-listen-all-if-invalid-interface-is-provided.patch
Patch13:	Prevent-monitoring-all-interfaces-after-change-of-ot.patch
Patch14:	Properly-remove-watches-when-changing-server-props.patch
BuildRequires:	GConf2
BuildRequires:	gettext
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(avahi-glib)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(telepathy-glib)
#BuildRequires:	pkgconfig(unique-1.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xtst)

%description
The package contains an integrated GNOME VNC server.

%files -f %{name}.lang
%doc README NEWS AUTHORS ChangeLog docs/remote-desktop.txt docs/TODO
%{_libexecdir}/%{name}-server
%{_datadir}/dbus-1/services/org.freedesktop.Telepathy.Client.Vino.service
%{_datadir}/telepathy/clients/Vino.client
%{_datadir}/glib-2.0/schemas/*.xml
%{_datadir}/applications/%{name}-server.desktop
%{_userunitdir}/%{name}-server.service

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-network-manager	\
	--with-systemduserunitdir=%{_userunitdir}
	
%install
%makeinstall_std

%find_lang %{name} --with-gnome

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20119 |21mr|virglrenderer-0.8.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Please keep this package in sync with FC

# "fix" underlinking:
%define _disable_ld_no_undefined 1

%global major 1
%define libname %mklibname virglrenderer %major
%define devname %mklibname -d virglrenderer
%global gitdate %{nil}
%global gitversion %{nil}

Name:		virglrenderer
Version:	0.8.1
Release:	4
Summary:	Virgl Rendering library
Group:		Emulators
License:	MIT
#VCS: git:git://anongit.freedesktop.org/git/virglrenderer
# git snapshot.  to recreate, run:
# ./make-git-snapshot.sh `cat commitid`
Source0:	https://github.com/freedesktop/virglrenderer/archive/%{name}-%{name}-%{version}.tar.bz2
Patch0:		CVE-2022-0135.patch
Patch1:		CVE-2020-8002.patch
Patch2:		CVE-2020-8003.patch
BuildRequires:	meson
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(python)
BuildRequires:	pkgconfig(libdrm)

%description
The virgil3d rendering library is a library used by
qemu to implement 3D GPU support for the virtio GPU.

%package -n %{libname}
Summary:	Virgl Rendering library
Group:		Emulators
Obsoletes:		%{mklibname virglrenderer 0} < 0.8.1

%description -n %{libname}
The virgil3d rendering library is a library used by
qemu to implement 3D GPU support for the virtio GPU.

%package -n %{devname}
Summary:	Virgil3D renderer development files
Group:		Emulators
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Virgil3D renderer development files, used by
qemu to build against.

%package test-server
Summary:	Virgil3D renderer testing server
Group:		Emulators
Requires:	%{libname} = %{EVRD}

%description test-server
Virgil3D renderer testing server is a server
that can be used along with the mesa virgl
driver to test virgl rendering without GL.

%prep
%autosetup -n %{name}-%{name}-%{version} -p1

%build
%meson
%meson_build

%install
%meson_install

%files -n %{libname}
%license COPYING
%{_libdir}/lib*.so.%{major}*

%files -n %{devname}
%dir %{_includedir}/virgl/
%{_includedir}/virgl/*
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

%files test-server
%{_bindir}/virgl_test_server

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20120 |21mr|virtualbox-7.0.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{ix86}
%global	debug_package %{nil}
%endif

%define	oname VirtualBox

%define	x11_server_majorver %(pkg-config --modversion xorg-server|awk -F. '{print $1$2}')

Summary:	A general-purpose full virtualizer for x86_64 hardware
Name:		virtualbox
Version:	7.0.22
Release:	1
License:	GPLv2+
Group:		Emulators
Url:		https://www.virtualbox.org/
Source0:	https://download.virtualbox.org/virtualbox/%{version}/%{oname}-%{version}.tar.bz2
Source1:	https://download.virtualbox.org/virtualbox/%{version}/UserManual.pdf?/UserManual-%{version}.pdf
Source3:	virtualbox-tmpfiles.conf
Source4:	vboxadd.service
Source5:	81-vboxadd.preset
Source6:	virtualbox.service
Source7:	vboxdrmclient.service
Source8:	81-virtualbox.preset
Source9:	81-virtualbox-client.preset
Source10:	virtualbox-client.service
Source11:	virtualbox-client-clipboard.service
Source12:	virtualbox-client-draganddrop.service
Source13:	virtualbox-client-seamless.service
Source24:	os_rosa.png
Source25:	os_rosa_x2.png
Source26:	os_rosa_x3.png
Source27:	os_rosa_x4.png
Source28:	os_rosa_64.png
Source29:	os_rosa_64_x2.png
Source30:	os_rosa_64_x3.png
Source31:	os_rosa_64_x4.png
Source32:	vboxadd.sysusers.conf
Source33:	vboxusers.sysusers.conf
Source34:	VirtualBox-7.0.18-incompatible-pointer-types.patch
Source100:	virtualbox.rpmlintrc
# Revert upstream's (between 6.1.0 and 6.1.2) removal of symbols
# that are used everywhere -- without this patch, starting
# any VM results in this error message:
# Failed to load R0 module /usr/lib64/virtualbox/VMMR0.r0:
# Unable to locate imported symbol 'PciRawR0Term' for module
# 'VMMR0.r0' (VERR_SYMBOL_NOT_FOUND).
Patch0:		VirtualBox-7.0.8-revert-removal-of-vital-symbols.patch
# Add support for Rosa and avoid selecting Ubuntu when typing it
Patch1:		VirtualBox-7.0.12-add-ROSA-support.patch
Patch2:		VirtualBox-6.1.18-futex.patch
Patch3:		VirtualBox-7.0.22-no-bundles.patch
# Don't build vboxvideo ddx: obsolete since 5.1.x
Patch4:		VirtualBox-7.0.8-no-vboxvideo-for-xorg19.patch
Patch6:		VirtualBox-6.1.18-fix-modules-rebuild-command.patch
Patch7:		VirtualBox-6.1.30-always-use-cpp11.patch
Patch8:		VirtualBox-7.0.8-fix-build-with-newer-gsoap.patch
# Fixes for newer Qt (>= 5.15)
Patch9:		VirtualBox-6.1.18-fixes-for-qt-5.15-and-later.patch
# Fix file picker not working in Plasma5 (see VBox ticket #20222 and Mageia bug #27433)
Patch10:	VirtualBox-7.0.2-modal-dialog-parent.patch
Patch11:	VirtualBox-7.0.2-fix-start-warning.patch
Patch12:	VirtualBox-7.0.2-fix-systemd-resolved-dnssec-fail.patch
Patch13:	VirtualBox-7.0.8-not-declared.patch
# FIXME: Update the patch
Patch14:	VirtualBox-7.0.12-ts-ru-translate.patch
Patch16:	VirtualBox-7.0.8-pidfile-path.patch
Patch17:	VirtualBox-7.0.8-fix-for-libstdc++13.patch
Patch18:	VirtualBox-7.0.8-fix-libcrypt-linking.patch
BuildRequires:	asciidoc
BuildRequires:	bc
BuildRequires:	bison
BuildRequires:	desktop-file-utils
BuildRequires:	dev86
BuildRequires:	dkms
BuildRequires:	docbook-dtd45-xml
BuildRequires:	flex
BuildRequires:	gawk
BuildRequires:	glslang
BuildRequires:	iasl
BuildRequires:	java-rpmbuild
BuildRequires:	kBuild
BuildRequires:	libxslt-proc
BuildRequires:	makeself
BuildRequires:	nasm
BuildRequires:	qt5-linguist-tools
BuildRequires:	xsltproc
BuildRequires:	yasm
BuildRequires:	boost-devel
BuildRequires:	java-1.8.0-openjdk-devel
BuildRequires:	kernel-devel
BuildRequires:	libcap-devel
BuildRequires:	libstdc++-static-devel
# Build fails because of underlinking...
#BuildRequires:	lzf-devel
BuildRequires:	pam-devel
BuildRequires:	x11-server-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(devmapper)
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gsoap)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libIDL-2.0)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libtpms)
BuildRequires:	pkgconfig(libvncserver)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(opus)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Help)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
%ifarch x86_64
Requires:	kmod(vboxdrv) = %{version}
%endif
Requires(post):	/bin/systemd-sysusers
Requires(post,preun,postun):	systemd
# Needed both for switching from init scripts to systemd services
Requires:	systemd
Requires:	chkconfig
%rename	%{name}-doc

# NOTE: Releases >= 6.1.0 support only 64bit hosts
ExclusiveArch:	x86_64 %{ix86}

%description
VirtualBox is a general-purpose full virtualizer for x86 and x86_64 hardware.

%files
%doc UserManual.pdf
# Host support only for 64bit
%ifarch x86_64
%{_sysusersdir}/vboxusers.conf
%config(noreplace) %{_sysconfdir}/vbox/vbox.cfg
%{_bindir}/%{oname}
%{_bindir}/VBoxManage
%{_bindir}/VBoxSDL
%{_bindir}/VBoxHeadless
%{_bindir}/VBoxTunctl
%{_bindir}/VBoxNetAdpCtl
%{_bindir}/VBoxNetDHCP
%{_bindir}/vboxwebsrv
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/ExtensionPacks
%dir %{_libdir}/%{name}/UnattendedTemplates
%dir %{_libdir}/%{name}/tools
%{_libdir}/%{name}/dtrace
%{_libdir}/%{name}/icons
%{_libdir}/%{name}/check_module_dependencies.sh
%{_libdir}/%{name}/components
%{_libdir}/%{name}/load.sh
%{_libdir}/%{name}/loadall.sh
%{_libdir}/%{name}/nls
%{_libdir}/%{name}/postinst-common.sh
%{_libdir}/%{name}/prerm-common.sh
%{_libdir}/%{name}/routines.sh
%{_libdir}/%{name}/*.so
%{_libdir}/%{name}/vboxdrv.sh
%{_libdir}/%{name}/VBoxAutostart
%{_libdir}/%{name}/VBoxBalloonCtrl
%{_libdir}/%{name}/VBoxBugReport
%{_libdir}/%{name}/VBoxEFI32.fd
%{_libdir}/%{name}/VBoxEFI64.fd
%{_libdir}/%{name}/VBoxExtPackHelperApp
%{_libdir}/%{name}/VBoxManage
%{_libdir}/%{name}/VBoxSVC
%{_libdir}/%{name}/VBoxTestOGL
%{_libdir}/%{name}/VBoxVMMPreload
%{_libdir}/%{name}/VBoxXPCOMIPCD
%{_libdir}/%{name}/vboxkeyboard.tar.bz2
%{_libdir}/%{name}/vboxshell.py
%{_libdir}/%{name}/%{name}.xml
%{_libdir}/%{name}/tools/RTGzip
%{_libdir}/%{name}/tools/RTHttp
%{_libdir}/%{name}/tools/RTLdrFlt
%{_libdir}/%{name}/tools/RTManifest
%{_libdir}/%{name}/tools/RTRm
%{_libdir}/%{name}/tools/RTShutdown
%{_libdir}/%{name}/tools/RTSignTool
%{_libdir}/%{name}/tools/RTTar
%{_libdir}/%{name}/tools/RTTraceLogTool
%{_libdir}/%{name}/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/ExtPack-SourceCodeLicense.txt
%{_libdir}/%{name}/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/ExtPack.xml
%{_libdir}/%{name}/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceCmd.so
%{_libdir}/%{name}/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceMain.so
%{_libdir}/%{name}/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceR0.debug
%{_libdir}/%{name}/ExtensionPacks/Oracle_VBoxDTrace_Extension_Pack/linux.amd64/VBoxDTraceR0.r0
# VBox 5.1.x
%{_libdir}/%{name}/VBoxCpuReport
%{_libdir}/%{name}/VBoxDTrace
%{_libdir}/%{name}/tools/RTDbgSymCache
%{_libdir}/%{name}/tools/RTUnzip
%{_libdir}/%{name}/tools/scm
%{_libdir}/%{name}/vboxautostart-service.sh
%{_libdir}/%{name}/vboxballoonctrl-service.sh
%{_libdir}/%{name}/vboxweb-service.sh
# VBox 5.2.x
%{_libdir}/%{name}/UnattendedTemplates/*
%{_libdir}/%{name}/tools/RTCat
%{_libdir}/%{name}/tools/RTChMod
%{_libdir}/%{name}/tools/RTIsoMaker
%{_libdir}/%{name}/tools/RTKrnlModInfo
%{_libdir}/%{name}/tools/RTLs
%{_libdir}/%{name}/tools/RTMkDir
%{_libdir}/%{name}/tools/RTRmDir
# VBox 6.0.x
%{_libdir}/%{name}/bldRTLdrCheckImports
%{_libdir}/%{name}/tools/RTCp
%{_libdir}/%{name}/tools/RTFuzzMaster
%{_libdir}/%{name}/tools/RTLdrCheckImports
# VBox 6.1.x
%{_libdir}/%{name}/tools/RTEfiFatExtract
%{_libdir}/%{name}/tools/RTFuzzClient
%{_libdir}/%{name}/vboximg-mount
%{_libdir}/%{name}/__pycache__/*
%{_libdir}/%{name}/vboxwebsrv
%{_libdir}/%{name}/webtest
# VBox 7.0.x
%{_libdir}/%{name}/tools/LnxPerfHack
%{_libdir}/%{name}/tools/RTEfiSigDb
%{_libdir}/%{name}/tools/RTFtpServer
%{_libdir}/%{name}/tools/RTHttpServer
%{_libdir}/%{name}/iPxeBaseBin
%{_libdir}/%{name}/VBoxAudioTest
# These are subdirs
%{_libdir}/%{name}/scripts
# These files need proper permission
%attr(4511,root,root) %{_libdir}/%{name}/VBoxHeadless
%attr(4511,root,root) %{_libdir}/%{name}/VBoxNetAdpCtl
%attr(4511,root,root) %{_libdir}/%{name}/VBoxNetDHCP
%attr(4511,root,root) %{_libdir}/%{name}/VBoxNetNAT
%attr(4511,root,root) %{_libdir}/%{name}/VBoxVolInfo
%attr(4511,root,root) %{_libdir}/%{name}/VirtualBoxVM
%attr(0755,root,root) %{_libdir}/%{name}/VirtualBox
%attr(0644,root,root) %{_libdir}/%{name}/*.r0
%{_datadir}/%{name}
%{_unitdir}/%{name}.service
%{_presetdir}/81-%{name}.preset
%config(noreplace) %{_udevrulesdir}/%{name}.rules
#
%{_tmpfilesdir}/%{name}.conf
# Desktop integration
%{_iconsdir}/hicolor/*/*/*
#
%{_datadir}/applications/rosa-%{name}.desktop
#
%{_datadir}/mime/packages/%{name}.xml

%post
%tmpfiles_create %{name}.conf
%sysusers_create vboxusers.conf
%systemd_post %{name}

# (Debian) Build usb device tree
for i in /sys/bus/usb/devices/*; do
if test -r "$i/dev"; then
dev="$(cat "$i/dev" 2> /dev/null || true)"
major="$(expr "$dev" : '\(.*\):' 2> /dev/null || true)"
minor="$(expr "$dev" : '.*:\(.*\)' 2> /dev/null || true)"
class="$(cat $i/bDeviceClass 2> /dev/null || true)"
/usr/share/%{name}/VBoxCreateUSBNode.sh "$major" "$minor" "$class" vboxusers 2>/dev/null || true
fi
done

%posttrans
echo "

ENG: Any host system user who is going to use USB devices from VirtualBox guests
must be a member of vboxusers group. A user can be made a member of the group
vboxusers through the GUI user/group management or at the command line with

sudo usermod -a -G vboxusers username

To enable USB 2.0 and USB 3.0 devices support you need to install VirtualBox
Extension Pack from https://www.virtualbox.org/

To work with shared folders, you also need to add the guest system user to vboxsf group

-------

RUS: Для подключения в виртуальной машине портов USB необходимо добавить
пользователя хост-системы в группу vboxusers.
Это можно сделать либо через графический интерфейс системы, либо в терминале командой

sudo usermod -a -G vboxusers username

Для включения режима USB 2.0 и USB 3.0 необходимо установить VirtualBox
Extension Pack с сайта https://www.virtualbox.org/

Для работы с общими папками необходимо внести пользователя гостевой системы
в группу vboxsf

"

%preun
%systemd_preun %{name}

%postun
%systemd_postun %{name}
%endif

%ifarch %{ix86}
%posttrans
echo "

ENG: Since release 6.1.0 VirtualBox dropped support for 32bit hosts.
This means that on ix86 PCs you can only install the guest packages
from VirtualBox (ie: virtualbox-guest-additions,
kernel-source-virtualbox-vboxadditions and dkms-vboxadditions).
The main virtualbox package is still present, but contains only the user
manual.

-------

RUS: С выпуска 6.1.0 VirtualBox прекратил поддержку 32-битных хостов.
Это означает, что на компьютерах ix86 вы можете устанавливать
только гостевые пакеты VirtualBox (т. е.: virtualbox-guest-additions,
kernel-source-virtualbox-vboxadditions и dkms-vboxadditions).
Основной пакет virtualbox всё еще присутствует, но содержит
только руководство пользователя.

"
%endif


#----------------------------------------------------------------------------

%ifarch x86_64
%package -n kernel-source-%{name}
Summary:	Source code of VirtualBox host kernel module
Group:		System/Kernel and hardware
BuildArch:	noarch

%description -n kernel-source-%{name}
Source code of VirtualBox host kernel module

%files -n kernel-source-%{name}
%doc COPYING
%{_usr}/src/%{name}-%{version}-%{release}
%exclude %{_usr}/src/%{name}-%{version}-%{release}/dkms*
%endif

#----------------------------------------------------------------------------

%ifarch x86_64
%package -n dkms-%{name}
Summary:	VirtualBox kernel module
Group:		System/Kernel and hardware
BuildArch:	noarch
# DKMS is used only by current VBox version, it makes no sense to keep it without VBox
Requires:	%{name} = %{EVRD}
Requires:	kernel-source-%{name} = %{EVRD}
Requires(post,preun):	dkms
Requires(post):	kernel-source-%{name} = %{EVRD}

%description -n dkms-%{name}
Kernel support for VirtualBox.

%files -n dkms-%{name}
%doc COPYING
%{_usr}/src/%{name}-%{version}-%{release}/dkms*

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}
	/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} &&
	/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} &&
	/sbin/rmmod vboxnetflt &>/dev/null
	/sbin/rmmod vboxnetadp &>/dev/null
	/sbin/rmmod vboxdrv &>/dev/null
	/sbin/modprobe vboxdrv &>/dev/null
	/sbin/modprobe vboxnetflt &>/dev/null
	/sbin/modprobe vboxnetadp &>/dev/null
	:

%preun -n dkms-%{name}
if [ "$1" = "0" ]; then
	/sbin/rmmod vboxnetadp >/dev/null 2>&1
	/sbin/rmmod vboxnetflt >/dev/null 2>&1
	/sbin/rmmod vboxdrv >/dev/null 2>&1
fi
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || :
%endif

#----------------------------------------------------------------------------

%package guest-additions
Summary:	Additions for VirtualBox guest systems
Group:		Emulators
Requires:	kmod(vboxguest) = %{version}
Requires:	kmod(vboxsf) = %{version}
Requires:	kmod(vboxvideo) = %{version}
# Guest-additions should require xrandr for auto-resizing of guest display to
# work without having to restart the X server in the guest VM
Requires:	xrandr
Requires(post):	/bin/systemd-sysusers
Requires(post,preun,postun):	systemd

%description guest-additions
This package contains additions for VirtualBox guest systems.
It allows to share files with the host system and sync time with host.

%files guest-additions
%license COPYING
/%{_lib}/security/pam_vbox.so
/sbin/mount.vboxsf
%{_unitdir}/vboxadd.service
%{_sbindir}/VBoxService
%{_bindir}/VBoxClient
%{_bindir}/VBoxDRMClient
%{_bindir}/VBoxClient-all
%{_bindir}/VBoxControl
%{_udevrulesdir}/60-vbox-additions.rules
%{_unitdir}/vboxdrmclient.service
%{_sysconfdir}/X11/xinit/xinitrc.d/98vboxadd-xclient.sh
%{_presetdir}/81-vboxadd.preset
%{_userpresetdir}/81-%{name}-client.preset
%{_userunitdir}/%{name}-client*.service
%{_sysusersdir}/vboxadd.conf

%post guest-additions
%systemd_post vboxadd
%sysusers_create vboxadd.conf

%if %{mdvver} == 202110
systemctl preset --global %{name}-client.service || :
systemctl preset --global %{name}-client-clipboard.service || :
systemctl preset --global %{name}-client-draganddrop.service || :
systemctl preset --global %{name}-client-seamless.service || :
%else
%systemd_user_post %{name}-client.service
%systemd_user_post %{name}-client-clipboard.service
%systemd_user_post %{name}-client-draganddrop.service
%systemd_user_post %{name}-client-seamless.service
%endif

%preun guest-additions
%systemd_preun vboxdrmclient
%systemd_preun vboxadd
%systemd_user_preun %{name}-client.service
%systemd_user_preun %{name}-client-clipboard.service
%systemd_user_preun %{name}-client-draganddrop.service
%systemd_user_preun %{name}-client-seamless.service

%postun guest-additions
%systemd_postun vboxdrmclient
%systemd_postun vboxadd
%systemd_user_postun %{name}-client.service
%systemd_user_postun %{name}-client-clipboard.service
%systemd_user_postun %{name}-client-draganddrop.service
%systemd_user_postun %{name}-client-seamless.service

#----------------------------------------------------------------------------

%package -n kernel-source-%{name}-vboxadditions
Summary:	Source code of VirtualBox guest kernel module
Group:		System/Kernel and hardware
BuildArch:	noarch

%description -n kernel-source-%{name}-vboxadditions
Source code of VirtualBox guest kernel module

%files -n kernel-source-%{name}-vboxadditions
%doc COPYING
%{_usr}/src/vbox*-%{version}-%{release}
%exclude %{_usr}/src/vbox*-%{version}-%{release}/dkms*

#----------------------------------------------------------------------------

%package -n dkms-vboxadditions
Summary:	Kernel module for VirtualBox additions
Group:		System/Kernel and hardware
BuildArch:	noarch
Provides:	kmod(vboxguest.ko) = %{version}
Provides:	kmod(vboxsf.ko) = %{version}
Provides:	kmod(vboxvideo.ko) = %{version}
Requires:	kernel-source-%{name}-vboxadditions = %{EVRD}
%rename		dkms-vboxvfs
%rename		dkms-vboxsf
%rename		dkms-vboxvideo
Requires(post):	bison
Requires(post,preun): dkms
Requires(post):	flex
Requires(post):	kernel-source-%{name}-vboxadditions = %{EVRD}

%description -n dkms-vboxadditions
Kernel module for VirtualBox additions (ideally only needs to be installed
on the guest OS not on the host OS).

%files -n dkms-vboxadditions
%doc COPYING
%{_usr}/src/vbox*-%{version}-%{release}/dkms*

%post -n dkms-vboxadditions
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m vboxadditions -v %{version}-%{release}
/usr/sbin/dkms --rpm_safe_upgrade build -m vboxadditions -v %{version}-%{release} &&
/usr/sbin/dkms --rpm_safe_upgrade install -m vboxadditions -v %{version}-%{release}
:

%preun -n dkms-vboxadditions
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m vboxadditions -v %{version}-%{release} --all
:

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%ifarch %{ix86}
patch -p1 <%{SOURCE34}
%endif

# Install ROSA images
cp -f %{SOURCE24} src/VBox/Frontends/VirtualBox/images/os_rosa.png
cp -f %{SOURCE25} src/VBox/Frontends/VirtualBox/images/x2/os_rosa_x2.png
cp -f %{SOURCE26} src/VBox/Frontends/VirtualBox/images/x3/os_rosa_x3.png
cp -f %{SOURCE27} src/VBox/Frontends/VirtualBox/images/x4/os_rosa_x4.png
cp -f %{SOURCE28} src/VBox/Frontends/VirtualBox/images/os_rosa_64.png
cp -f %{SOURCE29} src/VBox/Frontends/VirtualBox/images/x2/os_rosa_64_x2.png
cp -f %{SOURCE30} src/VBox/Frontends/VirtualBox/images/x3/os_rosa_64_x3.png
cp -f %{SOURCE31} src/VBox/Frontends/VirtualBox/images/x4/os_rosa_64_x4.png
cp -f %{SOURCE24} %{SOURCE28} src/VBox/Frontends/VirtualBox/images
cp -f %{SOURCE25} %{SOURCE29} src/VBox/Frontends/VirtualBox/images/x2
cp -f %{SOURCE26} %{SOURCE30} src/VBox/Frontends/VirtualBox/images/x3
cp -f %{SOURCE27} %{SOURCE31} src/VBox/Frontends/VirtualBox/images/x4

# Install the user manual
cp -a %{SOURCE1} UserManual.pdf


# Fix perms
find . -name "*.cpp" -o -name "*.h" | xargs chmod 0644

cat << EOF > LocalConfig.kmk
VBOX_BUILD_PUBLISHER :=_ROSA
VBOX_PATH_APP_PRIVATE_ARCH :=%{_libdir}/%{name}
VBOX_WITH_ORIGIN :=
VBOX_WITH_RUNPATH :=%{_libdir}/%{name}
VBOX_PATH_APP_PRIVATE :=%{_libdir}/%{name}
VBOX_WITH_TESTCASES :=
VBOX_WITH_TESTSUITE :=
#FIXME: re-enable when fixed upstream
#VBOX_WITH_PCI_PASSTHROUGH := 1
VBOX_JAVA_HOME := %{java_home}
VBOX_WITHOUT_ADDITIONS_ISO := 1
VBOX_NO_LEGACY_XORG_X11 := 1
VBOX_USE_SYSTEM_XORG_HEADERS := 1
VBOX_USE_SYSTEM_GL_HEADERS := 1
XSERVER_VERSION := %{x11_server_majorver}
VBOX_PATH_APP_DOCS :=%{_defaultdocdir}/%{name}
VBOX_WITH_MULTIVERSION_PYTHON := 0
VBOX_WITH_VIDEOREC := 1
VBOX_WITH_AUDIO_VIDEOREC := 1
SDK_VBOX_VPX := 1
VBOX_WITH_LIBVPX := 1
SDK_VBOX_VPX_INCS := %{_includedir}/vpx
SDK_VBOX_VPX_LIBS := %{_libdir}/libvpx.so
SDK_VBOX_OPUS := 1
VBOX_WITH_LIBOPUS := 1
SDK_VBOX_OPUS_INCS := %{_includedir}/opus
SDK_VBOX_OPUS_LIBS := %{_libdir}/libopus.so
SDK_VBOX_OPENSSL_INCS := ""
SDK_VBOX_OPENSSL_LIBS := ssl crypto
# Fix dtd not found
VBOX_PATH_DOCBOOK := %{_datadir}/asciidoc/docbook-xsl
VBOX_PATH_DOCBOOK_DTD := %{_datadir}/sgml/docbook/xml-dtd-4.5
EOF


%build
export LIBPATH_LIB="%{_lib}"
%ifarch %{ix86}
export VBOX_ONLY_ADDITIONS=1
ln -sf /usr/bin/yasm tools/linux.x86/bin/yasm
%endif
./configure \
	--disable-kmods \
	--disable-docs \
	--enable-libogg \
	--enable-libvorbis \
%ifarch %{ix86}
	--only-additions \
%endif
	--enable-pulse || (cat configure.log && exit 1)

. ./env.sh
kmk all


%install
# Prepare needed dirs
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_presetdir}
mkdir -p %{buildroot}%{_udevrulesdir}
mkdir -p %{buildroot}%{_unitdir}

# Install sysuser config for guest additions
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE32} %{buildroot}%{_sysusersdir}/vboxadd.conf

#######################################
# HOST STUFF INSTALLED ONLY ON x86_64 #
#######################################
%ifarch x86_64
# Install vbox components
mkdir -p %{buildroot}%{_libdir}/%{name} %{buildroot}%{_datadir}/%{name} 

(cd out/linux.amd64/release/bin && tar cf - --exclude=additions .) | \
(cd %{buildroot}%{_libdir}/%{name} && tar xf -)

# Move noarch files to vboxdatadir
mv %{buildroot}%{_libdir}/%{name}/{VBox*.sh,*.desktop,*.png} %{buildroot}%{_datadir}/%{name}

# Fix the library path in the launcher script
sed -ri 's,/usr/lib/,%{_libdir}/,g' %{buildroot}%{_datadir}/%{name}/VBox.sh

# Install host service
install -m644 %{SOURCE6} %{buildroot}%{_unitdir}/%{name}.service
install -m644 %{SOURCE8} %{buildroot}%{_presetdir}/81-%{name}.preset

# Install tmpfiles conf
install -m644 -D %{SOURCE3} %{buildroot}%{_tmpfilesdir}/%{name}.conf

# Install config file
mkdir -p %{buildroot}%{_sysconfdir}/vbox
cat > %{buildroot}%{_sysconfdir}/vbox/vbox.cfg << EOF
# VirtualBox installation directory
INSTALL_DIR="%{_libdir}/%{name}"
EOF

# Install wrappers
ln -s %{_datadir}/%{name}/VBox.sh %{buildroot}%{_bindir}/%{oname}
ln -s %{_datadir}/%{name}/VBox.sh %{buildroot}%{_bindir}/VBoxManage
ln -s %{_datadir}/%{name}/VBox.sh %{buildroot}%{_bindir}/VBoxSDL
ln -s %{_datadir}/%{name}/VBox.sh %{buildroot}%{_bindir}/VBoxHeadless
ln -s %{_datadir}/%{name}/VBox.sh %{buildroot}%{_bindir}/vboxwebsrv

# Provide network control tools in bindir
ln -s %{_libdir}/%{name}/VBoxTunctl %{buildroot}%{_bindir}/VBoxTunctl
ln -s %{_libdir}/%{name}/VBoxNetAdpCtl %{buildroot}%{_bindir}/VBoxNetAdpCtl
ln -s %{_libdir}/%{name}/VBoxNetDHCP %{buildroot}%{_bindir}/VBoxNetDHCP
ln -sf %{_libdir}/%{name}/VBoxTunctl %{buildroot}%{_bindir}/VBoxTunctl

# Install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cat > vboxbuild << EOF
#!/bin/sh
set -e
make -C vboxdrv KERN_DIR=\$1
cp -f vboxdrv/Module.symvers vboxnetflt
cp -f vboxdrv/Module.symvers vboxnetadp
make -C vboxnetflt KERN_DIR=\$1
make -C vboxnetadp KERN_DIR=\$1
EOF
install -m 0755 vboxbuild %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
mv %{buildroot}%{_libdir}/%{name}/src/* %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE[0]="./vboxbuild \$kernel_source_dir"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION[0]=/kernel/3rdparty/vbox
BUILT_MODULE_LOCATION[0]=vboxdrv/
BUILT_MODULE_NAME[0]=vboxdrv
DEST_MODULE_LOCATION[1]=/kernel/3rdparty/vbox
BUILT_MODULE_LOCATION[1]=vboxnetflt/
BUILT_MODULE_NAME[1]=vboxnetflt
DEST_MODULE_LOCATION[2]=/kernel/3rdparty/vbox
BUILT_MODULE_LOCATION[2]=vboxnetadp/
BUILT_MODULE_NAME[2]=vboxnetadp
AUTOINSTALL=yes
EOF

# Install udev rules
cat > %{buildroot}%{_udevrulesdir}/%{name}.rules << EOF
KERNEL=="vboxdrv", NAME="vboxdrv", OWNER="root", GROUP="root", MODE="0600"
SUBSYSTEM=="usb_device", ACTION=="add", RUN+="%{_datadir}/%{name}/VBoxCreateUSBNode.sh \$major \$minor \$attr{bDeviceClass} vboxusers"
SUBSYSTEM=="usb", ACTION=="add", ENV{DEVTYPE}=="usb_device", RUN+="%{_datadir}/%{name}/VBoxCreateUSBNode.sh \$major \$minor \$attr{bDeviceClass} vboxusers"
SUBSYSTEM=="usb_device", ACTION=="remove", RUN+="%{_datadir}/%{name}/VBoxCreateUSBNode.sh --remove \$major \$minor"
SUBSYSTEM=="usb", ACTION=="remove", ENV{DEVTYPE}=="usb_device", RUN+="%{_datadir}/%{name}/VBoxCreateUSBNode.sh --remove \$major \$minor"
EOF

# Install menu entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=VirtualBox
Name[ru]=VirtualBox
GenericName=Virtual Machine
GenericName[de]=Virtuelle Maschine
GenericName[ru]=Виртуальная машина
Comment=Full virtualizer for x86_64 hardware
Comment[ru]=Виртуальная машина x86_64
Exec=%{oname} %U
Icon=%{name}
Type=Application
Terminal=false
StartupWMClass=VirtualBox
Categories=Emulator;Utility;
MimeType=application/x-%{name}-vbox;application/x-%{name}-vbox-extpack;application/x-%{name}-ovf;application/x-%{name}-ova;
EOF

# Install mime types
install -D -m644 src/VBox/Installer/common/%{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml

# Add missing makefile for kernel module
install -m644 src/VBox/HostDrivers/Support/linux/Makefile %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/

# Install shipped icons for apps and mimetypes
for i in 16 20 32 40 48 64 128; do
	install -D -m0644 src/VBox/Artwork/OSE/%{name}-${i}px.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/apps/%{name}.png
done

for i in 16 20 24 32 40 48 64 72 80 96 128 256 512; do
	install -D -m0644 src/VBox/Artwork/other/%{name}-ova-${i}px.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/mimetypes/%{name}-ova.png
	install -D -m0644 src/VBox/Artwork/other/%{name}-ovf-${i}px.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/mimetypes/%{name}-ovf.png
	install -D -m0644 src/VBox/Artwork/other/%{name}-vbox-${i}px.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/mimetypes/%{name}-vbox.png
	install -D -m0644 src/VBox/Artwork/other/%{name}-vbox-extpack-${i}px.png %{buildroot}%{_iconsdir}/hicolor/${i}x${i}/mimetypes/%{name}-vbox-extpack.png
done

# Install sysuser config
install -m0644 %{SOURCE33} %{buildroot}%{_sysusersdir}/vboxusers.conf

%endif
######################
# End of host stuff - x86_64 only

# Install guest udev rules
cat > %{buildroot}%{_udevrulesdir}/60-vbox-additions.rules << EOF
KERNEL=="vboxguest", NAME="vboxguest", OWNER="vboxadd", MODE="0660"
KERNEL=="vboxuser", NAME="vboxuser", OWNER="vboxadd", MODE="0666"
ACTION=="add|change", SUBSYSTEM=="drm", KERNEL=="card[0-9]", SUBSYSTEMS=="pci", ATTRS{vendor}=="0x15ad", ATTRS{device}=="0x0405", TAG+="systemd", ENV{SYSTEMD_WANTS}="vboxdrmclient.service"
EOF

# Install additions services
install -m644 %{SOURCE4} %{buildroot}%{_unitdir}/vboxadd.service
install -m644 %{SOURCE7} %{buildroot}%{_unitdir}/vboxdrmclient.service
install -m644 %{SOURCE5} %{buildroot}%{_presetdir}/81-vboxadd.preset
mkdir -p %{buildroot}%{_userpresetdir}
mkdir -p %{buildroot}%{_userunitdir}
install -m644 %{SOURCE9} %{buildroot}%{_userpresetdir}/81-%{name}-client.preset
install -m644 %{SOURCE10} %{buildroot}%{_userunitdir}/%{name}-client.service
install -m644 %{SOURCE11} %{buildroot}%{_userunitdir}/%{name}-client-clipboard.service
install -m644 %{SOURCE12} %{buildroot}%{_userunitdir}/%{name}-client-draganddrop.service
install -m644 %{SOURCE13} %{buildroot}%{_userunitdir}/%{name}-client-seamless.service

# Install xinit scripts for starting desktop integration
install -d %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/
install -p -m 0755 -D src/VBox/Additions/x11/Installer/98vboxadd-xclient %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/98vboxadd-xclient.sh
ln -s ../..%{_sysconfdir}/X11/xinit/xinitrc.d/98vboxadd-xclient.sh %{buildroot}%{_bindir}/VBoxClient-all

%ifarch x86_64
pushd out/linux.amd64/release/bin/additions
%else
pushd out/linux.x86/release/bin/additions
%endif
	install -d %{buildroot}/sbin %{buildroot}%{_sbindir} %{buildroot}/%{_libdir}/dri
	install -m755 mount.vboxsf %{buildroot}/sbin/mount.vboxsf
	install -m755 VBoxService %{buildroot}%{_sbindir}

	install -m755 VBoxClient %{buildroot}%{_bindir}
	install -m755 VBoxDRMClient %{buildroot}%{_bindir}
	install -m755 VBoxControl %{buildroot}%{_bindir}

	install -d %{buildroot}%{_libdir}/xorg/modules/{input,drivers}

# Install PAM module:
install -d %{buildroot}/%{_lib}/security
install -m755 pam_vbox.so %{buildroot}/%{_lib}/security/pam_vbox.so

# Install dkms sources
# NOTE: all the sources below are already present in recent enough kernel sources
	mkdir -p %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}
	cat > %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
PACKAGE_NAME=vboxadditions
PACKAGE_VERSION=%{version}-%{release}
MAKE[0]="make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxguest &&
cp \$dkms_tree/\$module/\$module_version/build/vboxguest/Module.symvers \$dkms_tree/\$module/\$module_version/build/vboxsf &&
make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxsf &&
cp \$dkms_tree/\$module/\$module_version/build/vboxsf/Module.symvers \$dkms_tree/\$module/\$module_version/build/vboxvideo &&
make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxvideo"
EOF
	i=0
	for kmod in vboxguest vboxsf vboxvideo; do
		mkdir -p %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/$kmod
		cp -a src/$kmod/* %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/$kmod/
		cat >> %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
DEST_MODULE_LOCATION[$i]=/kernel/3rdparty/vbox
BUILT_MODULE_LOCATION[$i]=$kmod/
BUILT_MODULE_NAME[$i]=$kmod
EOF
		i=$((i+1))
	done

	cat >> %{buildroot}%{_usr}/src/vboxadditions-%{version}-%{release}/dkms.conf << EOF
CLEAN="make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxguest clean &&
make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxsf clean &&
make -C \$kernel_source_dir M=\$dkms_tree/\$module/\$module_version/build/vboxvideo clean "
AUTOINSTALL=yes
EOF
popd

# Remove unpackaged files
rm -rf %{buildroot}%{_libdir}/%{name}/{src,sdk,testcase}
rm -f %{buildroot}%{_libdir}/%{name}/tst*
rm -f %{buildroot}%{_libdir}/%{name}/vboxkeyboard.tar.gz
rm -f %{buildroot}%{_libdir}/%{name}/SUP*
rm -f %{buildroot}%{_libdir}/%{name}/xpidl
rm -f %{buildroot}%{_libdir}/%{name}/*.debug

%ifarch x86_64
# Fix perms
chmod -x %{buildroot}%{_libdir}/%{name}/routines.sh
chmod +x %{buildroot}%{_libdir}/%{name}/UnattendedTemplates/redhat_postinstall.sh
chmod +x %{buildroot}%{_libdir}/%{name}/UnattendedTemplates/debian_postinstall.sh
chmod +x %{buildroot}%{_libdir}/%{name}/UnattendedTemplates/freebsd_postinstall.sh
chmod +x %{buildroot}%{_libdir}/%{name}/UnattendedTemplates/ol_postinstall.sh
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20121 |21mr|VirtualGL-2.6.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define libpackage %mklibname %{name}

Summary:	A toolkit for displaying OpenGL applications to thin clients
Name:		VirtualGL
Version:	2.6.3
Release:	3
License:	wxWindows Library License v3.1
Group:		Networking/Other
Url:		http://www.virtualgl.org
Source0:	http://prdownloads.sourceforge.net/virtualgl/%{name}-%{version}.tar.gz
Patch0:		faedcc1e36b4ed89a325e01822447900840a0b77.patch
# fix for bz923961
Patch2:         %{name}-redhatpathsfix.patch
# fix for bz1088475
Patch3:         %{name}-redhatlibexecpathsfix.patch


BuildRequires:	cmake
BuildRequires:	opencl-devel
BuildRequires:	jpeg-static-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	fltk-devel
Requires:	%{libpackage} = %{version}

%description
VirtualGL is a library which allows most Linux OpenGL applications to be
remotely displayed to a thin client without the need to alter the
applications in any way.  VGL inserts itself into an application at run time
and intercepts a handful of GLX calls, which it reroutes to the server's
display (which presumably has a 3D accelerator attached.)  This causes all
3D rendering to occur on the server's display.  As each frame is rendered
by the server, VirtualGL reads back the pixels from the server's framebuffer
and sends them to the client for re-compositing into the appropriate X
Window.  VirtualGL can be used to give hardware-accelerated 3D capabilities to
VNC or other remote display environments that lack GLX support.  In a LAN
environment, it can also be used with its built-in motion-JPEG video delivery
system to remotely display full-screen 3D applications at 20+ frames/second.

VirtualGL is based upon ideas presented in various academic papers on
this topic, including "A Generic Solution for Hardware-Accelerated Remote
Visualization" (Stegmaier, Magallon, Ertl 2002) and "A Framework for
Interactive Hardware Accelerated Remote 3D-Visualization" (Engel, Sommer,
Ertl 2000.)

%files
%{_bindir}/*

#----------------------------------------------------------------------------

%package devel
Summary:	A toolkit for displaying OpenGL applications to thin clients
Group:		Networking/Other
Requires:	%{name} = %{version}

%description devel
VirtualGL is a library which allows most Linux OpenGL applications to be
remotely displayed to a thin client without the need to alter the
applications in any way.  VGL inserts itself into an application at run time
and intercepts a handful of GLX calls, which it reroutes to the server's
display (which presumably has a 3D accelerator attached.)  This causes all
3D rendering to occur on the server's display.  As each frame is rendered
by the server, VirtualGL reads back the pixels from the server's framebuffer
and sends them to the client for re-compositing into the appropriate X
Window.  VirtualGL can be used to give hardware-accelerated 3D capabilities to
VNC or other remote display environments that lack GLX support.  In a LAN
environment, it can also be used with its built-in motion-JPEG video delivery
system to remotely display full-screen 3D applications at 20+ frames/second.

VirtualGL is based upon ideas presented in various academic papers on
this topic, including "A Generic Solution for Hardware-Accelerated Remote
Visualization" (Stegmaier, Magallon, Ertl 2002) and "A Framework for
Interactive Hardware Accelerated Remote 3D-Visualization" (Engel, Sommer,
Ertl 2000.)

%files devel
%{_docdir}/%{name}
%{_includedir}/rrtransport.h
%{_includedir}/rr.h

#----------------------------------------------------------------------------

%package -n %{libpackage}
Summary:	Libraries injected by VirtualGL into applications that are ran through it
Group:		System/Libraries

%description -n %{libpackage}
Libraries injected by VirtualGL into applications that are ran throught it. 
Lib package allow installing 32 and 64 bits libraries at the same time.

%files -n %{libpackage}
%{_libdir}/VirtualGL/libdlfaker.so
%{_libdir}/VirtualGL/libgefaker.so
%{_libdir}/VirtualGL/libvglfaker.so
%{_libdir}/VirtualGL/libvglfaker-nodl.so
%{_libdir}/VirtualGL/libvglfaker-opencl.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i -e 's,"glx.h",<GL/glx.h>,' server/*.[hc]*
# Remove bundled libraries
#rm -r common/glx* server/fltk
rm doc/LICENSE-*.txt

# Use /var/lib, bug #428122
sed -e "s#/etc/opt#/var/lib#g" -i doc/unixconfig.txt doc/index.html doc/advancedopengl.txt \
	server/vglrun.in server/vglgenkey server/vglserver_config

%build
%setup_compile_flags

cmake -G "Unix Makefiles" \
         -DVGL_SYSTEMFLTK=1 \
         -DVGL_SYSTEMGLX=1 \
         -DVGL_FAKEXCB=1 \
         -DVGL_USESSL=0 \
         -DVGL_BUILDSTATIC=0 \
         -DTJPEG_INCLUDE_DIR=%{_includedir}/ \
         -DTJPEG_LIBRARY=%{_libdir}/libturbojpeg.so \
         -DCMAKE_INSTALL_PREFIX=%{_prefix}/ \
         -DCMAKE_INSTALL_LIBDIR=%{_libdir}/VirtualGL/ \
         -DCMAKE_INSTALL_DOCDIR=%{_docdir}/%{name}/ \
         -DCMAKE_INSTALL_BINDIR=%{_bindir}/ .

%make

%install
%makeinstall_std

%ifarch x86_64 aarch64 znver1 %{e2k}
mv %{buildroot}%{_bindir}/.vglrun.vars64 %{buildroot}%{_bindir}/vglrun.vars64
%else
mv %{buildroot}%{_bindir}/.vglrun.vars32 %{buildroot}%{_bindir}/vglrun.vars32
%endif

# glxinfo conflicts with command from glx-utils so lets do what Arch does
# and rename the command
mv $RPM_BUILD_ROOT/%{_bindir}/glxinfo $RPM_BUILD_ROOT/%{_bindir}/vglxinfo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20122 |21mr|virtuoso-opensource-7.2.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags %nil

Summary:	OpenLink Virtuoso Database System Open-Source Edition
Name:		virtuoso-opensource
Version:	7.2.6.1
Release:	2
License:	GPLv2+
Group:		Development/Databases
Url:		http://virtuoso.openlinksw.com/
Source0:	https://github.com/openlink/virtuoso-opensource/archive/v%{version}.tar.gz
ExclusiveArch:	%{x86_64} aarch64
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	gperf
BuildRequires:	openssl
BuildRequires:	pkgconfig(libiodbc)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(zlib)

%description
Virtuoso is a scalable cross-platform server that combines SQL/RDF/XML
Data Management with Web Application Server and Web Services Platform
functionality.

Virtuoso is at the core a high performance object-relational SQL
database. As a database, it provides transactions, a smart SQL
compiler, powerful stored procedure language with optional Java and
.Net server side hosting, hot backup, SQL 99 and more. It has all
major data access interfaces, as in ODBC, JDBC, ADO .Net and OLE/DB.

Virtuoso has a built-in web server which can serve dynamic web pages
written in Virtuoso's web page language as well as PHP, ASP .Net and
others. This same web server provides SOAP and REST access to Virtuoso
stored procedures, supporting a broad set of WS protocols such as
WS-Security, WS-Reliable Messaging and others. A BPEL4WS run time is
also available as part of Virtuoso's SOA suite.

%files
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/virtuoso-t
%{_sysconfdir}/virtuoso/virtuoso.ini
%attr(0755,root,root) %{_libdir}/virtuoso/plugins/virtodbc*.*
%{_libdir}/virtuoso/hosting/creolewiki.so
%{_libdir}/virtuoso/hosting/mediawiki.so
%{_libdir}/virtuoso/hosting/shapefileio.so
%{_libdir}/virtuoso/hosting/wikiv.so

#--------------------------------------------------------------------

%package applications
Summary:	Virtuoso open source applications
Group:		Development/Databases

%description applications
Virtuoso is a scalable cross-platform server that combines SQL/RDF/XML
Data Management with Web Application Server and Web Services Platform
functionality.

%files applications
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/inifile
%attr(0755,root,root) %{_bindir}/isql-iodbc
%attr(0755,root,root) %{_bindir}/isqlw
%attr(0755,root,root) %{_bindir}/isql-v
%attr(0755,root,root) %{_bindir}/isqlw-iodbc
%attr(0755,root,root) %{_bindir}/odbc_mail
%attr(0755,root,root) %{_bindir}/virt_mail
%{_localstatedir}/lib/virtuoso
%{_datadir}/virtuoso/doc
%exclude %{_libdir}/virtuoso/plugins/virtodbc*.*

#--------------------------------------------------------------------

%package jars
Summary:	Virtuoso open source jar files
Group:		Development/Databases

%description jars
Virtuoso is a scalable cross-platform server that combines SQL/RDF/XML
Data Management with Web Application Server and Web Services Platform
functionality.

%files jars
%defattr(0644,root,root,0755)
%{_libdir}/virtuoso/jars/jdbc4.0/*.jar
%{_libdir}/virtuoso/jars/jdbc4.1/*.jar
%{_libdir}/virtuoso/jars/jdbc4.2/*.jar
%{_libdir}/virtuoso/jars/jdbc4.3/*.jar
%{_libdir}/virtuoso/jars/jena*/*.jar
%{_libdir}/jena3/virt_jena3.jar
%{_libdir}/rdf4j/create-virtuoso.xsl
%{_libdir}/rdf4j/create.xsl
%{_libdir}/rdf4j/virt_rdf4j.jar
%{_libdir}/virtuoso/jars/sesame/*
%{_libdir}/hibernate/virt_dialect.jar

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
# autogen.sh because of patching Makefile.am and configure to unixODBC
./autogen.sh

%configure \
	--with-iodbc=%{_prefix} \
	--disable-all-vads \
	-without-internal-zlib

%make_build LIBS="-ltirpc -lz -lm"

%install
%make_install
mkdir -p %{buildroot}%{_libdir}/virtuoso/plugins
#cp -f %{buildroot}%{_libdir}/virtuoso/plugins/* %{buildroot}%{_libdir}/

rm -fr %{buildroot}%{_libdir}/*.a
mv %{buildroot}%{_libdir}/*.so %{buildroot}%{_libdir}/virtuoso/plugins/
mkdir -p %{buildroot}%{_libdir}/virtuoso/jars
mv %{buildroot}%{_libdir}/jdbc-4.0 %{buildroot}%{_libdir}/virtuoso/jars/jdbc4.0
mv %{buildroot}%{_libdir}/jdbc-4.1 %{buildroot}%{_libdir}/virtuoso/jars/jdbc4.1
mv %{buildroot}%{_libdir}/jdbc-4.2 %{buildroot}%{_libdir}/virtuoso/jars/jdbc4.2
mv %{buildroot}%{_libdir}/jdbc-4.3 %{buildroot}%{_libdir}/virtuoso/jars/jdbc4.3
mv %{buildroot}%{_libdir}/jena %{buildroot}%{_libdir}/virtuoso/jars/jena
mv %{buildroot}%{_libdir}/jena2 %{buildroot}%{_libdir}/virtuoso/jars/jena2
mv %{buildroot}%{_libdir}/sesame %{buildroot}%{_libdir}/virtuoso/jars/sesame
mkdir -p %{buildroot}%{_sysconfdir}/virtuoso
mv %{buildroot}%{_var}/lib/virtuoso/db/virtuoso.ini %{buildroot}%{_sysconfdir}/virtuoso/

# Rename isql binary to avoid conflict with unixODBC
mv  %{buildroot}%{_bindir}/isql %{buildroot}%{_bindir}/isql-v

rm -f  %{buildroot}%{_libdir}/virtuoso/hosting/*.*a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20123 |21mr|virt-viewer-10.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Virtual Machine Viewer
Name:		virt-viewer
Version:	10.0
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://gitlab.com/virt-viewer/virt-viewer
Source0:	https://gitlab.com/virt-viewer/virt-viewer/-/archive/v%{version}/virt-viewer-v%{version}.tar.gz
Patch0:		fix-build-with-meson-0.61.patch
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	pkgconfig(gtk-vnc-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gvnc-1.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(libvirt)
BuildRequires:	pkgconfig(libvirt-glib-1.0)
BuildRequires:	pkgconfig(spice-client-glib-2.0) >= 0.33
BuildRequires:	pkgconfig(spice-client-gtk-3.0) >= 0.33
Requires:	spice-gtk

%description
Virtual Machine Viewer (virt-viewer) is a lightweight interface for
interacting with the graphical display of a virtualized guest OS. It uses
GTK-VNC and libvirt to look up the VNC server details associated with the
guest. It is intended as a replacement for the traditional vncviewer
client, since the latter does not support SSL/TLS encryption of x509
certificate authentication.

%files -f %{name}.lang
%doc AUTHORS.in COPYING ChangeLog NEWS
%{_bindir}/*
%{_mandir}/man1/*
%{_datadir}/applications/remote-viewer.desktop
%{_datadir}/metainfo/remote-viewer.appdata.xml
%{_datadir}/icons/hicolor/*/*
%{_datadir}/mime/packages/virt-viewer-mime.xml

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-v%{version}

%build
%meson
%meson_build

%install
%meson_install
%find_lang %{name}

find . -name 'src' -type d -perm 0775 -exec chmod 0755 {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20124 |21mr|virt-what-1.11-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Detect if we are running in a virtual machine
Name:		virt-what
Version:	1.11
Release:	8
License:	GPLv2+
Group:		Emulators
Url:		http://people.redhat.com/~rjones/virt-what/
Source0:	http://people.redhat.com/~rjones/virt-what/files/%{name}-%{version}.tar.gz
# Patches over upstream 1.11.
Patch1:		0001-IA64-Xen-HVM-should-print-xen-hvm-not-xen-domU.patch
Patch2:		0001-Change-dmidecode-detection-of-Hitachi-Virtage.patch
# This is provided by the build root, but we make it explicit
# anyway in case this was dropped from the build root in future.
BuildRequires:	perl
# Required at build time in order to do 'make check' (for getopt).
BuildRequires:	util-linux-ng
# virt-what script uses dmidecode and getopt (from util-linux-ng).
# RPM cannot detect this so make the dependencies explicit here.
Requires:	dmidecode
Requires:	util-linux-ng

%description
virt-what is a shell script which can be used to detect if the program
is running in a virtual machine.

The program prints out a list of "facts" about the virtual machine,
derived from heuristics.  One fact is printed per line.

If nothing is printed and the script exits with code 0 (no error),
then it can mean either that the program is running on bare-metal or
the program is running inside a type of virtual machine which we don't
know about or cannot detect.

Current types of virtualization detected:

 - hyperv       Microsoft Hyper-V
 - kvm          Linux Kernel Virtual Machine (KVM)
 - openvz       OpenVZ or Virtuozzo
 - powervm_lx86 IBM PowerVM Lx86 Linux/x86 emulator
 - qemu         QEMU (unaccelerated)
 - uml          User-Mode Linux (UML)
 - virtage      Hitachi Virtualization Manager (HVM) Virtage LPAR
 - virtualbox   VirtualBox
 - virtualpc    Microsoft VirtualPC
 - vmware       VMware
 - xen          Xen
 - xen-dom0     Xen dom0 (privileged domain)
 - xen-domU     Xen domU (paravirtualized guest domain)
 - xen-hvm      Xen guest fully virtualized (HVM)

%files
%doc README COPYING
%{_sbindir}/virt-what
%{_libexecdir}/virt-what-cpuid-helper
%{_mandir}/man1/*.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1
%patch2 -p1

%build
%configure
make

%install
%makeinstall_std

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20125 |21mr|vkd3d-1.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude devel(.*)

%define	major 1
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d
%define	libname_shader %mklibname %{name}-shader %{major}
%define	devname_shader %mklibname %{name}-shader -d
%define	libname_utils %mklibname %{name}-utils %{major}
%define	devname_utils %mklibname %{name}-utils -d

Summary:	Vulkan layer for Direct3D 12
Name:		vkd3d
Version:	1.11
Release:	1
License:	GPLv2
Group:		Emulators
Url:		https://dl.winehq.org/vkd3d
Source0:	https://dl.winehq.org/vkd3d/source/%{name}-%{version}.tar.xz
BuildRequires:	bison
BuildRequires:	doxygen
BuildRequires:	flex
BuildRequires:	spirv-headers
%ifarch x86_64
BuildRequires:	wine64-stable-devel
%else
BuildRequires:	wine32-stable-devel
%endif
BuildRequires:	xcb-util-devel
BuildRequires:	xcb-util-wm-devel
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(SPIRV-Tools)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(xcb-keysyms)
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_shader} = %{EVRD}
Requires:	%{libname_utils} = %{EVRD}
Provides:	%{name}-compiler = %{EVRD}
ExclusiveArch:	%{ix86} x86_64

%description
Vulkan layer for support Direct3D 12 in wine.

%files
%doc AUTHORS README
%license COPYING LICENSE
%{_bindir}/%{name}-compiler
%{_bindir}/%{name}-dxbc
%{_bindir}/%{name}-gears
%{_bindir}/%{name}-triangle

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The vkd3d 3D Graphics Library
Group:		System/Libraries

%description -n %{libname}
This package contains the vkd3d 3D Graphics Library.

%files -n %{libname}
%license LICENSE
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_shader}
Summary:	The vkd3d 3D Shader Library
Group:		System/Libraries

%description -n %{libname_shader}
This package contains the vkd3d 3D Shader Library.

%files -n %{libname_shader}
%license COPYING LICENSE
%{_libdir}/lib%{name}-shader.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_utils}
Summary:	The vkd3d 3D Graphics Utility Library
Group:		System/Libraries

%description -n %{libname_utils}
This package contains the vkd3d 3D Graphics Utility Library.

%files -n %{libname_utils}
%license COPYING LICENSE
%{_libdir}/lib%{name}-utils.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for Vulkan applications.

%files -n %{devname}
%license COPYING LICENSE
%{_includedir}/%{name}/%{name}.h
%{_includedir}/%{name}/%{name}_d*.h
%{_includedir}/%{name}/%{name}_types.h
%{_includedir}/%{name}/%{name}_w*.h
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/lib%{name}.pc

#----------------------------------------------------------------------------

%package -n %{devname_shader}
Summary:	Development files for %{libname_shader}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Requires:	%{libname_shader} = %{EVRD}
Provides:	%{name}-shader-devel = %{EVRD}

%description -n %{devname_shader}
This package contains the development files for Vulkan applications.

%files -n %{devname_shader}
%license COPYING LICENSE
%{_includedir}/%{name}/%{name}_shader.h
%{_libdir}/lib%{name}-shader.so
%{_libdir}/pkgconfig/lib%{name}-shader.pc

#----------------------------------------------------------------------------

%package -n %{devname_utils}
Summary:	Development files for %{libname_utils}
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Requires:	%{libname_utils} = %{EVRD}
Provides:	%{name}-utils-devel = %{EVRD}

%description -n %{devname_utils}
This package contains the development files for Vulkan applications.

%files -n %{devname_utils}
%license COPYING LICENSE
%{_includedir}/%{name}/%{name}_utils.h
%{_libdir}/lib%{name}-utils.so
%{_libdir}/pkgconfig/lib%{name}-utils.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--enable-demos		\
	--enable-static=no	\
	--with-spirv-tools
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20126 |21mr|vlc-3.0.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Private library with rpath
%global __provides_exclude ^libvlc_vdpau\\.so\\.0.*$
%global __requires_exclude ^libvlc_vdpau\\.so\\.0.*$

# Opencv needs ffmpeg to be built:
# provide a boostrap mode without opencv
# to avoid circular dependency
%define with_boostrap 1

# We don't have libgoom2 yet
%define with_goom 0

%define with_faad 1
%define with_faac 1
# MP3 patents expired in April 2017:
# always enable it
%define with_lame 1
%define with_dts 1
%define with_x264 1
%define with_x265 1
%define with_mpc 1
# FFmpeg 5-6 dropped a required header (avcodec/vaapi.h):
# see https://code.videolan.org/videolan/vlc/-/issues/26772
# and https://code.videolan.org/videolan/vlc/-/issues/27224.
# Disabling until vlc will support vaapi with newer ffmpeg
%define with_va 0
%define with_dvd 1

%define libmajor	5
%define coremajor	9
%define libname		%mklibname %{name} %{libmajor}
%define libnamecore	%mklibname vlccore %{coremajor}
%define devname		%mklibname %{name} -d

# Wayland support is incomplete, though
%define with_wayland 1

%define git_url git://git.videolan.org/vlc.git

Summary:	MPEG, MPEG2, DVD and DivX player
Name:		vlc
Version:	3.0.20
Release:	1
#gw the shared libraries are LGPL
License:	GPLv2+ and LGPLv2+
Group:		Video
Url:		http://www.videolan.org/
Source0:	http://download.videolan.org/pub/videolan/%{name}/%{version}/%{name}-%{version}.tar.xz
Source1:	vlc-3.0.17_ru.tar.gz
Patch0:		vlc-3.0.3-fix-default-font.patch
Patch1:		vlc-2.0.0-desktop-l10n.patch
# Backport for 3.0 notifyd without gtk3
Patch2:		notify-don-t-depend-on-any-GTK-version.patch
Patch3:		0001-configure-fix-linking-on-RISC-V-ISA.patch
Patch10:	0001-Fix-use-alignas-bug119059.patch
BuildRequires:	autoconf2.5
BuildRequires:	automake
BuildRequires:	desktop-file-utils
BuildRequires:	libtool
BuildRequires:	gettext-devel >= 0.19.8

###########################
# Various options
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	sysfsutils-devel
BuildRequires:	pkgconfig(aom)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gnome-vfs-2.0)
BuildRequires:	pkgconfig(gnutls) >= 3.3.6
BuildRequires:	pkgconfig(id3tag)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(miniupnpc)
BuildRequires:	pkgconfig(minizip)
%if !%{with_boostrap}
BuildRequires:	pkgconfig(opencv)
%endif
BuildRequires:	pkgconfig(protobuf) < 4.0.0
# For libnotify
BuildRequires:	pkgconfig(gtk+-3.0)
# Our library is too recent
#BuildRequires:	pkgconfig(libplacebo)
BuildRequires:	pkgconfig(libproxy-1.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libxml-2.0) >= 2.5
# FFmpeg 6.0 supports only lua 5.2 and lua 5.1
BuildRequires:	pkgconfig(lua)
#BuildRequires:	pkgconfig(lua-5.1)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(taglib) >= 1.9
BuildRequires:	pkgconfig(zlib)

###########################
# Input plugins
%if %{with_dvd}
BuildRequires:	pkgconfig(dvdnav) >= 6.0.0
BuildRequires:	pkgconfig(dvdread) >= 4.9.0
%endif
BuildRequires:	pkgconfig(live555)
# Disabled until upstream adds freerdp2 support
#BuildRequires:	pkgconfig(freerdp)
BuildRequires:	pkgconfig(libarchive)
BuildRequires:	pkgconfig(libavc1394)
BuildRequires:	pkgconfig(libraw1394)
BuildRequires:	pkgconfig(libbluray) >= 0.6.2
BuildRequires:	pkgconfig(libcddb) >= 0.9.5
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libdc1394-2)
BuildRequires:	pkgconfig(libdv)
BuildRequires:	pkgconfig(libraw1394)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libvcdinfo)
BuildRequires:	pkgconfig(libvncclient) >= 0.9.9
BuildRequires:	pkgconfig(smbclient)

###########################
# Mux/Demux plugins
%if %{with_mpc}
BuildRequires:	libmpcdec-devel
%endif
BuildRequires:	pkgconfig(dav1d)
BuildRequires:	pkgconfig(libdvbpsi) >= 1.2.0
BuildRequires:	pkgconfig(libgme)
BuildRequires:	pkgconfig(libmatroska)
BuildRequires:	pkgconfig(libmodplug) >= 0.8.4
# Build fails because sidplay2 pkgconfig is broken:
# it points to a non-existent libsidplay2.la library
#BuildRequires:	pkgconfig(libsidplay2)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(shout) >= 2.1

###########################
# Codec plugins
# TODO add shine, gst-video and omxil-bellagio support
BuildRequires:	ffmpeg-devel
%if %{with_lame}
BuildRequires:	lame-devel
%endif
BuildRequires:	pkgconfig(dirac)
%if %{with_faad}
BuildRequires:	pkgconfig(faad2) >= 2.0
%endif
%if %{with_faac}
BuildRequires:	pkgconfig(faac)
%endif
BuildRequires:	pkgconfig(flac)
BuildRequires:	pkgconfig(fluidsynth)
BuildRequires:	pkgconfig(liba52)
BuildRequires:	pkgconfig(libass)
%if %{with_dts}
BuildRequires:	pkgconfig(libdca)
%endif
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpeg2) >= 0.4.0
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libpng)
%if %{with_va}
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libva-x11)
%endif
BuildRequires:	pkgconfig(mad)
BuildRequires:	pkgconfig(opus) >= 1.0.3
BuildRequires:	pkgconfig(schroedinger-1.0) >= 1.0.10
BuildRequires:	pkgconfig(speex) >= 1.0.5
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	pkgconfig(tiger)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(twolame)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vpx)
%if %{with_x264}
BuildRequires:	pkgconfig(x264)
%endif
%if %{with_x265}
BuildRequires:	pkgconfig(x265)
%endif
BuildRequires:	pkgconfig(zvbi-0.2)

###########################
# Video plugins
BuildRequires:	aalib-devel
%ifarch %{x86_64} %{armx} %{ix86}
BuildRequires:	nas-devel
%endif
BuildRequires:	pkgconfig(caca)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(fribidi)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(libmatroska)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vdpau)
BuildRequires:	pkgconfig(wayland-client) >= 1.6
BuildRequires:	pkgconfig(wayland-protocols) >= 1.4
BuildRequires:	pkgconfig(wayland-scanner)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xv)

###########################
# Audio plugins
BuildRequires:	pkgconfig(alsa) >= 1.0.24
BuildRequires:	pkgconfig(jack) >= 1.9.7
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libpulse) >= 1.0
BuildRequires:	pkgconfig(samplerate)
BuildRequires:	pkgconfig(sndio)
BuildRequires:	pkgconfig(soxr) >= 0.1.2

###########################
# Interface plugins
BuildRequires:	%{_lib}tar-devel
BuildRequires:	pkgconfig(liblircclient0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(Qt5Core) >= 5.11.0
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)

###########################
# Visualization plugins
%if %{with_goom}
BuildRequires:	libgoom2-devel
%endif
BuildRequires:	pkgconfig(libprojectM) >= 2.0.0

###########################
# Service discovery plugins
BuildRequires:	avahi-common-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(libmtp)
BuildRequires:	pkgconfig(libnfs)
BuildRequires:	pkgconfig(libupnp)
BuildRequires:	pkgconfig(udev)

###########################
# Output plugins
Recommends:	vlc-plugin-opengl
Recommends:	vlc-plugin-wayland
Recommends:	vlc-plugin-vaapi
Recommends:	vlc-plugin-vdpau
Recommends:	vlc-plugin-dv
Recommends:	vlc-plugin-flac
Requires:	vlc-plugin-gnutls
Recommends:	vlc-plugin-kate
Recommends:	vlc-plugin-libass
# Without lua vlc dumps confusing error in console
# (http://bugs.rosalinux.ru/show_bug.cgi?id=2100)
Recommends:	vlc-plugin-lua
Requires:	vlc-plugin-main
%if %{with_mpc}
Recommends:	vlc-plugin-mpc
%endif
Recommends:	vlc-plugin-opus
Recommends:	vlc-plugin-pulse
Recommends:	vlc-plugin-schroedinger
# Suggests:	vlc-plugin-speex
# For fix https://bugzilla.rosalinux.ru/show_bug.cgi?id=9857
Recommends:	vlc-plugin-theora
Recommends:	vlc-plugin-upnp
Requires:	fonts-ttf-vera
# For file triggers
Requires:	grep
Conflicts:	vlc-plugin-common < %{version}-%{release}
%rename		vlc-plugin-bonjour

%description
VideoLAN is an OpenSource streaming solution for every OS developed by
students from the Ecole Centrale Paris and developers from all over the World.
VLC (VideoLAN Client) is a media player that can play MPEG1, MPEG2 and MPEG4
(aka DivX) files, DVDs, VCDs, SVCDs, from a satellite card, from a stream sent
by VLS (VideoLAN Server), from another VLC, or from a Web server.
This package contains no CSS unscrambling functionality for DVDs; you need the
libdvdcss library available from: http://www.videolan.org/libdvdcss/.

%files -f %{name}.lang
%doc NEWS README COPYING AUTHORS THANKS
%doc installed-docs/* doc/lirc/
%{_bindir}/cvlc
%{_bindir}/qvlc
%{_bindir}/vlc
%{_bindir}/vlc-wrapper
%{_mandir}/man1/vlc.*
%{_mandir}/man1/vlc-wrapper.1*
%{_datadir}/applications/vlc.desktop
%{_miconsdir}/vlc.png
%{_iconsdir}/vlc.png
%{_liconsdir}/vlc.png
%{_iconsdir}/hicolor/*/apps/*
%{_datadir}/kde4/apps/solid/actions/*.desktop
%{_datadir}/metainfo/vlc.appdata.xml

# ---------------------------------------------

%package plugin-main
Summary:	Main plugin for the VLC media player
Group:		Video

%description plugin-main
This plugin adds support for the multiple formats to the VLC media player.

%files plugin-main
%dir %{_datadir}/vlc/
%{_datadir}/vlc/*.*
%{_datadir}/vlc/utils
%dir %{_libdir}/vlc/
%{_libdir}/vlc/vlc-cache-gen
%dir %{_libdir}/vlc/plugins
%{_libdir}/vlc/plugins/plugins.dat
%dir %{_libdir}/vlc/plugins/access/
%{_libdir}/vlc/plugins/access/libaccess_realrtsp_plugin.so
%{_libdir}/vlc/plugins/access/libattachment_plugin.so
%{_libdir}/vlc/plugins/access/libsmb_plugin.so
%{_libdir}/vlc/plugins/access/libaccess_alsa_plugin.so
%{_libdir}/vlc/plugins/access/libaccess_concat_plugin.so
%{_libdir}/vlc/plugins/access/libaccess_imem_plugin.so
%{_libdir}/vlc/plugins/access/libaccess_mms_plugin.so
%{_libdir}/vlc/plugins/access/libaccess_mtp_plugin.so
%{_libdir}/vlc/plugins/access/libavio_plugin.so
%{_libdir}/vlc/plugins/access/libcdda_plugin.so
%{_libdir}/vlc/plugins/access/libdtv_plugin.so
%{_libdir}/vlc/plugins/access/libdvb_plugin.so
%ifarch %{riscv}
%{_libdir}/vlc/plugins/access/libdv1394_plugin.so
%endif
%if %{with_dvd}
%{_libdir}/vlc/plugins/access/libdvdnav_plugin.so
%{_libdir}/vlc/plugins/access/libdvdread_plugin.so
%endif
%{_libdir}/vlc/plugins/access/libfilesystem_plugin.so
%{_libdir}/vlc/plugins/access/libftp_plugin.so
#{_libdir}/vlc/plugins/access/libgnomevfs_plugin.so
%{_libdir}/vlc/plugins/access/libhttp_plugin.so
%{_libdir}/vlc/plugins/access/libhttps_plugin.so
%{_libdir}/vlc/plugins/access/libidummy_plugin.so
%{_libdir}/vlc/plugins/access/libimem_plugin.so
%{_libdir}/vlc/plugins/access/liblibbluray_plugin.so
%{_libdir}/vlc/plugins/access/liblive555_plugin.so
%{_libdir}/vlc/plugins/access/libnfs_plugin.so
#{_libdir}/vlc/plugins/access/librar_plugin.so
#{_libdir}/vlc/plugins/access/librdp_plugin.so
%{_libdir}/vlc/plugins/access/librtp_plugin.so
%{_libdir}/vlc/plugins/access/libsatip_plugin.so
%{_libdir}/vlc/plugins/access/libsdp_plugin.so
%{_libdir}/vlc/plugins/access/libsftp_plugin.so
%{_libdir}/vlc/plugins/access/libshm_plugin.so
%{_libdir}/vlc/plugins/access/libtcp_plugin.so
%{_libdir}/vlc/plugins/access/libtimecode_plugin.so
%{_libdir}/vlc/plugins/access/libudp_plugin.so
%{_libdir}/vlc/plugins/access/libv4l2_plugin.so
#{_libdir}/vlc/plugins/access/libvcdx_plugin.so
%{_libdir}/vlc/plugins/access/libvcd_plugin.so
%{_libdir}/vlc/plugins/access/libvdr_plugin.so
%{_libdir}/vlc/plugins/access/libvnc_plugin.so
%{_libdir}/vlc/plugins/access/libxcb_screen_plugin.so
#{_libdir}/vlc/plugins/access/libzip_plugin.so
%dir %{_libdir}/vlc/plugins/access_output/
%{_libdir}/vlc/plugins/access_output/libaccess_output_dummy_plugin.so*
%{_libdir}/vlc/plugins/access_output/libaccess_output_file_plugin.so*
%{_libdir}/vlc/plugins/access_output/libaccess_output_http_plugin.so*
%{_libdir}/vlc/plugins/access_output/libaccess_output_livehttp_plugin.so*
%{_libdir}/vlc/plugins/access_output/libaccess_output_udp_plugin.so*
%dir %{_libdir}/vlc/plugins/audio_filter
#{_libdir}/vlc/plugins/audio_filter/liba52tofloat32_plugin.so*
#{_libdir}/vlc/plugins/audio_filter/liba52tospdif_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libaudiobargraph_a_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libaudio_format_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libchorus_flanger_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libcompressor_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libdolby_surround_decoder_plugin.so*
#if %%{with_dts}
#{_libdir}/vlc/plugins/audio_filter/libdtstofloat32_plugin.so*
#endif
#{_libdir}/vlc/plugins/audio_filter/libdtstospdif_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libequalizer_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libgain_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libheadphone_channel_mixer_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libkaraoke_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libmad_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libmono_plugin.so
#{_libdir}/vlc/plugins/audio_filter/libmpgatofixed32_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libnormvol_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libparam_eq_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libremap_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libsamplerate_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libscaletempo_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libscaletempo_pitch_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libsimple_channel_mixer_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libsoxr_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libspatializer_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libstereo_widen_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libtospdif_plugin.so
%{_libdir}/vlc/plugins/audio_filter/libtrivial_channel_mixer_plugin.so*
%{_libdir}/vlc/plugins/audio_filter/libugly_resampler_plugin.so*
%dir %{_libdir}/vlc/plugins/audio_mixer/
%{_libdir}/vlc/plugins/audio_mixer/libfloat_mixer_plugin.so
%{_libdir}/vlc/plugins/audio_mixer/libinteger_mixer_plugin.so
%dir %{_libdir}/vlc/plugins/audio_output/
%{_libdir}/vlc/plugins/audio_output/libadummy_plugin.so
%{_libdir}/vlc/plugins/audio_output/libalsa_plugin.so
%{_libdir}/vlc/plugins/audio_output/libamem_plugin.so
%{_libdir}/vlc/plugins/audio_output/libafile_plugin.so
%{_libdir}/vlc/plugins/audio_output/libsndio_plugin.so
%dir %{_libdir}/vlc/plugins/codec/
%{_libdir}/vlc/plugins/codec/liba52_plugin.so*
%{_libdir}/vlc/plugins/codec/libadpcm_plugin.so*
%{_libdir}/vlc/plugins/codec/libaes3_plugin.so
%{_libdir}/vlc/plugins/codec/libaom_plugin.so
%{_libdir}/vlc/plugins/codec/libaraw_plugin.so*
%{_libdir}/vlc/plugins/codec/libavcodec_plugin.so
%{_libdir}/vlc/plugins/codec/libcc_plugin.so
%{_libdir}/vlc/plugins/codec/libcdg_plugin.so
%{_libdir}/vlc/plugins/codec/libcvdsub_plugin.so*
%if %{with_dts}
%{_libdir}/vlc/plugins/codec/libdca_plugin.so
%endif
%{_libdir}/vlc/plugins/codec/libdav1d_plugin.so
%{_libdir}/vlc/plugins/codec/libddummy_plugin.so
#{_libdir}/vlc/plugins/codec/libdts_plugin.so*
%{_libdir}/vlc/plugins/codec/libdvbsub_plugin.so*
%{_libdir}/vlc/plugins/codec/libedummy_plugin.so
%if %{with_faad}
%{_libdir}/vlc/plugins/codec/libfaad_plugin.so*
%endif
%{_libdir}/vlc/plugins/codec/libg711_plugin.so
#{_libdir}/vlc/plugins/codec/libhwdummy_plugin.so
%{_libdir}/vlc/plugins/codec/libjpeg_plugin.so
%{_libdir}/vlc/plugins/codec/liblibmpeg2_plugin.so*
%{_libdir}/vlc/plugins/codec/liblpcm_plugin.so*
#{_libdir}/vlc/plugins/codec/libmpeg_audio_plugin.so*
%{_libdir}/vlc/plugins/codec/libmpg123_plugin.so
%{_libdir}/vlc/plugins/codec/liboggspots_plugin.so
%{_libdir}/vlc/plugins/codec/libpng_plugin.so
#{_libdir}/vlc/plugins/codec/libqsv_plugin.so
%{_libdir}/vlc/plugins/codec/librawvideo_plugin.so*
%{_libdir}/vlc/plugins/codec/librtpvideo_plugin.so
%{_libdir}/vlc/plugins/codec/libscte18_plugin.so
%{_libdir}/vlc/plugins/codec/libscte27_plugin.so
%{_libdir}/vlc/plugins/codec/libspdif_plugin.so
%{_libdir}/vlc/plugins/codec/libspudec_plugin.so
%{_libdir}/vlc/plugins/codec/libstl_plugin.so
%{_libdir}/vlc/plugins/codec/libsubsdec_plugin.so
%{_libdir}/vlc/plugins/codec/libsubstx3g_plugin.so
%{_libdir}/vlc/plugins/codec/libsubsusf_plugin.so
%{_libdir}/vlc/plugins/codec/libsvcdsub_plugin.so
%{_libdir}/vlc/plugins/codec/libsvgdec_plugin.so
%{_libdir}/vlc/plugins/codec/libt140_plugin.so
%{_libdir}/vlc/plugins/codec/libtelx_plugin.so
%{_libdir}/vlc/plugins/codec/libtextst_plugin.so
%{_libdir}/vlc/plugins/codec/libttml_plugin.so
%{_libdir}/vlc/plugins/codec/libuleaddvaudio_plugin.so
%{_libdir}/vlc/plugins/codec/libvorbis_plugin.so*
%{_libdir}/vlc/plugins/codec/libvpx_plugin.so
%{_libdir}/vlc/plugins/codec/libwebvtt_plugin.so
%if %{with_x264}
%{_libdir}/vlc/plugins/codec/libx264_plugin.so
%{_libdir}/vlc/plugins/codec/libx26410b_plugin.so
%endif
%if %{with_x265}
%{_libdir}/vlc/plugins/codec/libx265_plugin.so
%endif
%{_libdir}/vlc/plugins/codec/libxwd_plugin.so
%dir %{_libdir}/vlc/plugins/control/
%{_libdir}/vlc/plugins/control/libdbus_plugin.so
%{_libdir}/vlc/plugins/control/libdummy_plugin.so
%{_libdir}/vlc/plugins/control/libgestures_plugin.so
%{_libdir}/vlc/plugins/control/libhotkeys_plugin.so
%{_libdir}/vlc/plugins/control/libmotion_plugin.so
%{_libdir}/vlc/plugins/control/libnetsync_plugin.so
%{_libdir}/vlc/plugins/control/liboldrc_plugin.so
%{_libdir}/vlc/plugins/control/libxcb_hotkeys_plugin.so
%dir %{_libdir}/vlc/plugins/demux/
%{_libdir}/vlc/plugins/demux/libdiracsys_plugin.so
%{_libdir}/vlc/plugins/demux/libreal_plugin.so
%{_libdir}/vlc/plugins/demux/libadaptive_plugin.so
%{_libdir}/vlc/plugins/demux/libaiff_plugin.so*
%{_libdir}/vlc/plugins/demux/libasf_plugin.so*
%{_libdir}/vlc/plugins/demux/libau_plugin.so*
%{_libdir}/vlc/plugins/demux/libavformat_plugin.so
%{_libdir}/vlc/plugins/demux/libavi_plugin.so
%{_libdir}/vlc/plugins/demux/libcaf_plugin.so
%{_libdir}/vlc/plugins/demux/libdemux_cdg_plugin.so
%{_libdir}/vlc/plugins/demux/libdemux_chromecast_plugin.so
%{_libdir}/vlc/plugins/demux/libdemux_stl_plugin.so
%{_libdir}/vlc/plugins/demux/libdemuxdump_plugin.so*
%{_libdir}/vlc/plugins/demux/libmod_plugin.so
%{_libdir}/vlc/plugins/demux/libdirectory_demux_plugin.so
%{_libdir}/vlc/plugins/demux/libes_plugin.so
%{_libdir}/vlc/plugins/demux/libh26x_plugin.so
#{_libdir}/vlc/plugins/demux/libhevc_plugin.so
%{_libdir}/vlc/plugins/demux/libimage_plugin.so
%{_libdir}/vlc/plugins/demux/libmjpeg_plugin.so
%{_libdir}/vlc/plugins/demux/libmkv_plugin.so
%{_libdir}/vlc/plugins/demux/libmp4_plugin.so*
%{_libdir}/vlc/plugins/demux/libmpgv_plugin.so*
%{_libdir}/vlc/plugins/demux/libnoseek_plugin.so
%{_libdir}/vlc/plugins/demux/libnsc_plugin.so*
%{_libdir}/vlc/plugins/demux/libnsv_plugin.so*
%{_libdir}/vlc/plugins/demux/libnuv_plugin.so*
%{_libdir}/vlc/plugins/demux/libplaylist_plugin.so*
%{_libdir}/vlc/plugins/demux/libps_plugin.so*
%{_libdir}/vlc/plugins/demux/libpva_plugin.so*
%{_libdir}/vlc/plugins/demux/librawaud_plugin.so
%{_libdir}/vlc/plugins/demux/librawdv_plugin.so*
%{_libdir}/vlc/plugins/demux/librawvid_plugin.so
%{_libdir}/vlc/plugins/demux/libsmf_plugin.so
%{_libdir}/vlc/plugins/demux/libsubtitle_plugin.so*
%{_libdir}/vlc/plugins/demux/libtta_plugin.so
%{_libdir}/vlc/plugins/demux/libty_plugin.so*
%{_libdir}/vlc/plugins/demux/libvobsub_plugin.so*
%{_libdir}/vlc/plugins/demux/libvc1_plugin.so
%{_libdir}/vlc/plugins/demux/libvoc_plugin.so*
%{_libdir}/vlc/plugins/demux/libwav_plugin.so*
%{_libdir}/vlc/plugins/demux/libts_plugin.so*
%{_libdir}/vlc/plugins/demux/libxa_plugin.so*
%{_libdir}/vlc/plugins/demux/libogg_plugin.so*
%dir %{_libdir}/vlc/plugins/meta_engine/
%{_libdir}/vlc/plugins/meta_engine/libfolder_plugin.so
%{_libdir}/vlc/plugins/meta_engine/libtaglib_plugin.so
%dir %{_libdir}/vlc/plugins/misc/
%{_libdir}/vlc/plugins/misc/liblogger_plugin.so
%{_libdir}/vlc/plugins/misc/libaddonsfsstorage_plugin.so
%{_libdir}/vlc/plugins/misc/libaddonsvorepository_plugin.so
%{_libdir}/vlc/plugins/misc/libaudioscrobbler_plugin.so
%{_libdir}/vlc/plugins/misc/libdbus_screensaver_plugin.so
%{_libdir}/vlc/plugins/misc/libexport_plugin.so*
%{_libdir}/vlc/plugins/misc/libfingerprinter_plugin.so
%{_libdir}/vlc/plugins/misc/libstats_plugin.so
%{_libdir}/vlc/plugins/misc/libvod_rtsp_plugin.so*
%{_libdir}/vlc/plugins/misc/libxdg_screensaver_plugin.so*
%{_libdir}/vlc/plugins/misc/libxml_plugin.so*
%dir %{_libdir}/vlc/plugins/mux/
%{_libdir}/vlc/plugins/mux/libmux_asf_plugin.so*
%{_libdir}/vlc/plugins/mux/libmux_avi_plugin.so*
%{_libdir}/vlc/plugins/mux/libmux_dummy_plugin.so*
%{_libdir}/vlc/plugins/mux/libmux_mp4_plugin.so*
%{_libdir}/vlc/plugins/mux/libmux_mpjpeg_plugin.so*
%{_libdir}/vlc/plugins/mux/libmux_ogg_plugin.so*
%{_libdir}/vlc/plugins/mux/libmux_ps_plugin.so*
%{_libdir}/vlc/plugins/mux/libmux_ts_plugin.so
%{_libdir}/vlc/plugins/mux/libmux_wav_plugin.so*
%dir %{_libdir}/vlc/plugins/notify
%dir %{_libdir}/vlc/plugins/gui/
%{_libdir}/vlc/plugins/gui/libqt_plugin.so
%dir %{_libdir}/vlc/plugins/keystore/
%{_libdir}/vlc/plugins/keystore/libfile_keystore_plugin.so
%{_libdir}/vlc/plugins/keystore/libkwallet_plugin.so
%{_libdir}/vlc/plugins/keystore/libmemory_keystore_plugin.so
%{_libdir}/vlc/plugins/keystore/libsecret_plugin.so
%dir %{_libdir}/vlc/plugins/logger/
%{_libdir}/vlc/plugins/logger/libconsole_logger_plugin.so
%{_libdir}/vlc/plugins/logger/libfile_logger_plugin.so
%{_libdir}/vlc/plugins/logger/libsd_journal_plugin.so
%{_libdir}/vlc/plugins/logger/libsyslog_plugin.so
%dir %{_libdir}/vlc/plugins/packetizer/
%{_libdir}/vlc/plugins/packetizer/libpacketizer_a52_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_av1_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_avparser_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_copy_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_dirac_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_dts_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_flac_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_h264_plugin.so*
%{_libdir}/vlc/plugins/packetizer/libpacketizer_hevc_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_mlp_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_mpegaudio_plugin.so
%{_libdir}/vlc/plugins/packetizer/libpacketizer_mpeg4audio_plugin.so*
%{_libdir}/vlc/plugins/packetizer/libpacketizer_mpeg4video_plugin.so*
%{_libdir}/vlc/plugins/packetizer/libpacketizer_mpegvideo_plugin.so*
%{_libdir}/vlc/plugins/packetizer/libpacketizer_vc1_plugin.so
%dir %{_libdir}/vlc/plugins/services_discovery/
%{_libdir}/vlc/plugins/services_discovery/libmediadirs_plugin.so
%{_libdir}/vlc/plugins/services_discovery/libavahi_plugin.so
%{_libdir}/vlc/plugins/services_discovery/libmtp_plugin.so
%{_libdir}/vlc/plugins/services_discovery/libpodcast_plugin.so*
%{_libdir}/vlc/plugins/services_discovery/libsap_plugin.so*
%{_libdir}/vlc/plugins/services_discovery/libudev_plugin.so*
%{_libdir}/vlc/plugins/services_discovery/libxcb_apps_plugin.so
%dir %{_libdir}/vlc/plugins/spu/
%{_libdir}/vlc/plugins/spu/libremoteosd_plugin.so
%{_libdir}/vlc/plugins/spu/libaudiobargraph_v_plugin.so
%{_libdir}/vlc/plugins/spu/libdynamicoverlay_plugin.so
%{_libdir}/vlc/plugins/spu/liblogo_plugin.so
%{_libdir}/vlc/plugins/spu/libmarq_plugin.so
%{_libdir}/vlc/plugins/spu/libmosaic_plugin.so
%{_libdir}/vlc/plugins/spu/librss_plugin.so
%{_libdir}/vlc/plugins/spu/libsubsdelay_plugin.so
%dir %{_libdir}/vlc/plugins/stream_extractor/
%{_libdir}/vlc/plugins/stream_extractor/libarchive_plugin.so
%dir %{_libdir}/vlc/plugins/stream_filter/
%{_libdir}/vlc/plugins/stream_filter/libadf_plugin.so
%{_libdir}/vlc/plugins/stream_filter/libcache_block_plugin.so
%{_libdir}/vlc/plugins/stream_filter/libcache_read_plugin.so
#{_libdir}/vlc/plugins/stream_filter/libdash_plugin.so
%{_libdir}/vlc/plugins/stream_filter/libdecomp_plugin.so
%{_libdir}/vlc/plugins/stream_filter/libhds_plugin.so
#{_libdir}/vlc/plugins/stream_filter/libhttplive_plugin.so
%{_libdir}/vlc/plugins/stream_filter/libinflate_plugin.so
%{_libdir}/vlc/plugins/stream_filter/libprefetch_plugin.so
%{_libdir}/vlc/plugins/stream_filter/librecord_plugin.so
%{_libdir}/vlc/plugins/stream_filter/libskiptags_plugin.so
#{_libdir}/vlc/plugins/stream_filter/libsmooth_plugin.so
%dir %{_libdir}/vlc/plugins/stream_out/
%{_libdir}/vlc/plugins/stream_out/libstream_out_autodel_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_bridge_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_chromaprint_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_chromecast_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_cycle_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_delay_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_description_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_display_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_dummy_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_duplicate_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_es_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_gather_plugin.so*
#{_libdir}/vlc/plugins/stream_out/libstream_out_langfromtelx_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_mosaic_bridge_plugin.so*
#{_libdir}/vlc/plugins/stream_out/libstream_out_raop_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_record_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_rtp_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_setid_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_smem_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_standard_plugin.so*
%{_libdir}/vlc/plugins/stream_out/libstream_out_stats_plugin.so
%{_libdir}/vlc/plugins/stream_out/libstream_out_transcode_plugin.so*
%dir %{_libdir}/vlc/plugins/text_renderer/
%{_libdir}/vlc/plugins/text_renderer/libfreetype_plugin.so*
%{_libdir}/vlc/plugins/text_renderer/libsvg_plugin.so
%{_libdir}/vlc/plugins/text_renderer/libtdummy_plugin.so
%dir %{_libdir}/vlc/plugins/video_chroma/
%{_libdir}/vlc/plugins/video_chroma/libi420_10_p010_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libchain_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libgrey_yuv_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libi420_nv12_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libi420_rgb_*plugin.so
%{_libdir}/vlc/plugins/video_chroma/libi420_yuy2_*plugin.so
%{_libdir}/vlc/plugins/video_chroma/libi422_i420_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libi422_yuy2_*plugin.so
%{_libdir}/vlc/plugins/video_chroma/librv32_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libswscale_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libyuy2_i420_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libyuy2_i422_plugin.so
%{_libdir}/vlc/plugins/video_chroma/libyuvp_plugin.so
%dir %{_libdir}/vlc/plugins/video_filter/
%{_libdir}/vlc/plugins/video_filter/libadjust_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libalphamask_plugin.so
%{_libdir}/vlc/plugins/video_filter/libanaglyph_plugin.so
%{_libdir}/vlc/plugins/video_filter/libantiflicker_plugin.so
#{_libdir}/vlc/plugins/video_filter/libaudiobargraph_v_plugin.so
#{_libdir}/vlc/plugins/video_filter/libatmo_plugin.so
%{_libdir}/vlc/plugins/video_filter/libball_plugin.so
%{_libdir}/vlc/plugins/video_filter/libblendbench_plugin.so
%{_libdir}/vlc/plugins/video_filter/libblend_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libbluescreen_plugin.so
%{_libdir}/vlc/plugins/video_filter/libcanvas_plugin.so
%{_libdir}/vlc/plugins/video_filter/libcolorthres_plugin.so
%{_libdir}/vlc/plugins/video_filter/libcroppadd_plugin.so
%{_libdir}/vlc/plugins/video_filter/libdeinterlace_plugin.so*
#{_libdir}/vlc/plugins/video_filter/libdynamicoverlay_plugin.so
%{_libdir}/vlc/plugins/video_filter/libedgedetection_plugin.so
%{_libdir}/vlc/plugins/video_filter/liberase_plugin.so
%{_libdir}/vlc/plugins/video_filter/libextract_plugin.so
%{_libdir}/vlc/plugins/video_filter/libfps_plugin.so
%{_libdir}/vlc/plugins/video_filter/libfreeze_plugin.so
%{_libdir}/vlc/plugins/video_filter/libgaussianblur_plugin.so
%{_libdir}/vlc/plugins/video_filter/libgradient_plugin.so
%{_libdir}/vlc/plugins/video_filter/libgradfun_plugin.so
%{_libdir}/vlc/plugins/video_filter/libgrain_plugin.so
%{_libdir}/vlc/plugins/video_filter/libhqdn3d_plugin.so
%{_libdir}/vlc/plugins/video_filter/libinvert_plugin.so*
#{_libdir}/vlc/plugins/video_filter/liblogo_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libmagnify_plugin.so*
#{_libdir}/vlc/plugins/video_filter/libmarq_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libmirror_plugin.so
#{_libdir}/vlc/plugins/video_filter/libmosaic_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libmotionblur_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libmotiondetect_plugin.so*
%{_libdir}/vlc/plugins/video_filter/liboldmovie_plugin.so
%{_libdir}/vlc/plugins/video_filter/libposterize_plugin.so
%{_libdir}/vlc/plugins/video_filter/libpostproc_plugin.so
%{_libdir}/vlc/plugins/video_filter/libpsychedelic_plugin.so
%{_libdir}/vlc/plugins/video_filter/libpuzzle_plugin.so
#{_libdir}/vlc/plugins/video_filter/libremoteosd_plugin.so
%{_libdir}/vlc/plugins/video_filter/libripple_plugin.so
%{_libdir}/vlc/plugins/video_filter/librotate_plugin.so
#{_libdir}/vlc/plugins/video_filter/librss_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libscale_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libscene_plugin.so
%{_libdir}/vlc/plugins/video_filter/libsepia_plugin.so
%{_libdir}/vlc/plugins/video_filter/libsharpen_plugin.so
#{_libdir}/vlc/plugins/video_filter/libsubsdelay_plugin.so
%{_libdir}/vlc/plugins/video_filter/libtransform_plugin.so*
%{_libdir}/vlc/plugins/video_filter/libvhs_plugin.so
%{_libdir}/vlc/plugins/video_filter/libwave_plugin.so
#{_libdir}/vlc/plugins/video_filter/libyuvp_plugin.so
%dir %{_libdir}/vlc/plugins/video_output/
%{_libdir}/vlc/plugins/video_output/libaa_plugin.so
%{_libdir}/vlc/plugins/video_output/libglconv_vdpau_plugin.so
%{_libdir}/vlc/plugins/video_output/libxcb_xv_plugin.so
%{_libdir}/vlc/plugins/video_output/libcaca_plugin.so
%{_libdir}/vlc/plugins/video_output/libfb_plugin.so
%{_libdir}/vlc/plugins/video_output/libflaschen_plugin.so
%{_libdir}/vlc/plugins/video_output/libvdummy_plugin.so
%{_libdir}/vlc/plugins/video_output/libvmem_plugin.so
%{_libdir}/vlc/plugins/video_output/libxcb_window_plugin.so
%{_libdir}/vlc/plugins/video_output/libxcb_x11_plugin.so
%{_libdir}/vlc/plugins/video_output/libyuv_plugin.so
%dir %{_libdir}/vlc/plugins/video_splitter/
%{_libdir}/vlc/plugins/video_splitter/libclone_plugin.so
%{_libdir}/vlc/plugins/video_splitter/libpanoramix_plugin.so
%{_libdir}/vlc/plugins/video_splitter/libwall_plugin.so
%dir %{_libdir}/vlc/plugins/visualization/
%{_libdir}/vlc/plugins/visualization/libglspectrum_plugin.so
%{_libdir}/vlc/plugins/visualization/libvisual_plugin.so

%transfiletriggerin plugin-main -- %{_libdir}/vlc/plugins
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=9642
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=7420
# https://bugs.launchpad.net/1328466
if grep -qE '%{_libdir}/vlc/plugins/.*\.so'; then
	%{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins
fi

%transfiletriggerpostun plugin-main -- %{_libdir}/vlc/plugins
if grep -qE '%{_libdir}/vlc/plugins/.*\.so'; then
	%{_libdir}/vlc/vlc-cache-gen %{_libdir}/vlc/plugins
fi

%postun plugin-main
#!/bin/sh
# exec if it's a full uninstall, not upgrade
# As plugins.dat belongs to the vlc package,
# this script is probably not really needed
if [ "$1" = '0' ] && [ -f %{_libdir}/vlc/plugins/plugins.dat ]; then
	rm -f %{_libdir}/vlc/plugins/plugins.dat || :
fi

#----------------------------------------------------------------------------

%package -n svlc
Summary:	Skinned GUI plugin for the VLC media player
Group:		Video
Requires:	%{name} = %{version}
Provides:	vlc-gui

%description -n svlc
This plugin adds a skinned GUI interface to the VLC media player. To
activate it, run the `svlc' program.

%files -n svlc
%doc README
%{_bindir}/svlc
%{_libdir}/vlc/plugins/gui/libskins2_plugin.so*
%{_datadir}/applications/rosa-svlc.desktop
%{_datadir}/vlc/skins2

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared code for the VLC media player
Group:		System/Libraries
Requires:	vlc-plugin-main

%description -n %{libname}
Shared code for the VLC media player. This package contains code that is
shared by different modules of the VLC media player.

%files -n %{libname}
%doc README
%{_libdir}/libvlc.so.%{libmajor}*

#----------------------------------------------------------------------------

%package -n %{libnamecore}
Summary:	Shared core code for the VLC media player
Group:		System/Libraries
#gw needed by the python bindings:
Provides:	libvlccore = %{version}-%{release}

%description -n %{libnamecore}
Shared code for the VLC media player. This package contains code that is
shared by different modules of the VLC media player.

%files -n %{libnamecore}
%doc README
%{_libdir}/libvlccore.so.%{coremajor}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for the VLC media player
Group:		Development/C
Requires:	%{libname} = %{version}
Requires:	%{libnamecore} = %{version}
Provides:	%{name}-devel = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}

%description -n %{devname}
Development files for the VLC media player.
This package contains headers and a static library required to build plugins
for the VLC media player, or standalone applications using features from VLC.

%files -n %{devname}
%doc README doc/release-howto.txt doc/skins
%dir %{_includedir}/vlc
%{_libdir}/vlc/libcompat.a
%{_libdir}/libvlc.so
%{_libdir}/libvlccore.so
%{_includedir}/vlc/*
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%package plugin-dv
Summary:	DV codec plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-dv
This plugin adds support for the DV video format to the VLC media player.
The plugin is autodetected.

%files plugin-dv
%doc README
%{_libdir}/vlc/plugins/access/libdc1394_plugin.so
%ifarch %{ix86} x86_64 aarch64 %{e2k}
%{_libdir}/vlc/plugins/access/libdv1394_plugin.so
%endif

#----------------------------------------------------------------------------

%package plugin-flac
Summary:	Flac codec plugin for the VLC media player
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-flac
These plugins add support for the FLAC compressed audio format to the
VLC media player.

%files plugin-flac
%doc README
%{_libdir}/vlc/plugins/demux/libflacsys_plugin.so
%{_libdir}/vlc/plugins/codec/libflac_plugin.so*

#----------------------------------------------------------------------------

%package plugin-fluidsynth
Summary:	Add MIDI playback support to VLC based on Fluidsynth
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-fluidsynth
This plugin adds support for MIDI playback to VLC based on the Fluidsynth
library.

%files plugin-fluidsynth
%doc README
%{_libdir}/vlc/plugins/codec/libfluidsynth_plugin.so

#----------------------------------------------------------------------------

%package plugin-gme
Summary:	Add game music playback support to VLC based on libgme
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-gme
This plugin adds support for video game music playback to VLC based on the
GME library.

%files plugin-gme
%doc README
%{_libdir}/vlc/plugins/demux/libgme_plugin.so

#----------------------------------------------------------------------------

%package plugin-gnutls
Summary:	Secure Socket Layer plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-gnutls
This plugin adds support for SSL/TLS to the VLC media player.

%files plugin-gnutls
%doc README
%{_libdir}/vlc/plugins/misc/libgnutls_plugin.so*

#----------------------------------------------------------------------------

%if %{with_goom}
%package plugin-goom
Summary:	Visualization plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-goom
This is a visualization plugin for VLC media player based on the Goom library.

%files plugin-goom
%doc README
%{_libdir}/vlc/plugins/visualization/libgoom_plugin.so
%endif

#----------------------------------------------------------------------------

%package plugin-jack
Summary:	Jack audio plugin for the VLC media player
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-jack
This plugin adds support for the Jack Audio Connection Kit to the VLC
media player. To activate it, use the `--aout jack' flag or select the
`jack' audio output plugin from the preferences menu.

%files plugin-jack
%doc README
%{_libdir}/vlc/plugins/access/libaccess_jack_plugin.so
%{_libdir}/vlc/plugins/audio_output/libjack_plugin.so*

#----------------------------------------------------------------------------

%package plugin-kate
Summary:	Add subtitle and Karaoke text support to VLC
Group:		Video
Requires:	vlc-plugin-main

%description plugin-kate
This package adds support for subtitles and Karaoke text display based on
the libkate library to VLC.

%files plugin-kate
%doc README
%{_libdir}/vlc/plugins/codec/libkate_plugin.so

#----------------------------------------------------------------------------

%package plugin-libass
Summary:	Add subtitle support to VLC using libass
Group:		Video
Requires:	vlc-plugin-main

%description plugin-libass
This package adds support for subtitles based on the libass library to VLC.

%files plugin-libass
%doc README
%{_libdir}/vlc/plugins/codec/liblibass_plugin.so

#----------------------------------------------------------------------------

%package plugin-libnotify
Summary:	Notification popup plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-libnotify
This plugin adds support for notification popup messages to
the VLC media player.

%files plugin-libnotify
%doc README
%{_libdir}/vlc/plugins/notify/libnotify_plugin.so*

#----------------------------------------------------------------------------

%package plugin-lirc
Summary:	Lirc plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-lirc
This plugin is an infrared lirc interface for the VLC media player. To
activate it, use the `--extraintf lirc' flag.

%files plugin-lirc
%doc README
%{_libdir}/vlc/plugins/control/liblirc_plugin.so*

#----------------------------------------------------------------------------

%package plugin-lua
Summary:	Add Lua scripting to vlc
Group:		Video
Requires:	vlc-plugin-main

%description plugin-lua
This plugin adds lua scripting and provides a few example scripts as well.

%files plugin-lua
%doc README
%{_libdir}/vlc/plugins/lua/liblua_plugin.so
%{_libdir}/vlc/lua
%{_datadir}/vlc/lua
%{_bindir}/rvlc

#----------------------------------------------------------------------------

%if %{with_mpc}

%package plugin-mpc
Summary:	MPC audio decoder plugin for the VLC media player
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-mpc
This plugin adds support for Musepack audio playback based on libmpcdec
to the VLC media player.

%files plugin-mpc
%doc README
%{_libdir}/vlc/plugins/demux/libmpc_plugin.so*

%endif

#----------------------------------------------------------------------------

%package plugin-ncurses
Summary:	Ncurses console-based plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-ncurses
This plugin adds a ncurses interface to the VLC media player. To
activate it, use the `--intf ncurses' flag.

%files plugin-ncurses
%doc README
%{_bindir}/nvlc
%{_libdir}/vlc/plugins/gui/libncurses_plugin.so*

#----------------------------------------------------------------------------

%package plugin-opengl
Summary:	OpenGL video output plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-opengl
This plugin adds support for OpenGL video output to the VLC media player.

%files plugin-opengl
%doc README
%{_libdir}/vlc/plugins/video_output/libegl_x11_plugin.so
%{_libdir}/vlc/plugins/video_output/libgl_plugin.so
%{_libdir}/vlc/plugins/video_output/libglx_plugin.so
#{_libdir}/vlc/plugins/video_output/libxcb_glx_plugin.so*
%{_libdir}/vlc/libvlc_xcb_events.so*

#----------------------------------------------------------------------------

%package plugin-opus
Summary:	Opus codec plugin for the VLC media player
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-opus
This plugin adds support for the Opus codec to the VLC media player.

%files plugin-opus
%doc README
%{_libdir}/vlc/plugins/codec/libopus_plugin.so

#----------------------------------------------------------------------------

%package plugin-projectm
Summary:	Visualization plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-projectm
This is a visualization plugin for VLC media player based on projectm.

%files plugin-projectm
%doc README
%{_libdir}/vlc/plugins/visualization/libprojectm_plugin.so

#----------------------------------------------------------------------------

%package plugin-pulse
Summary:	PulseAudio plugin for the VLC media player
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-pulse
This plugin adds support for the PulseAudio Sound Daemon to the VLC
media player. To activate it, use the `--aout pulse' flag or select the
`pulse' audio output plugin from the preferences menu.

%files plugin-pulse
%doc README
%{_libdir}/vlc/plugins/access/libpulsesrc_plugin.so
%{_libdir}/vlc/plugins/audio_output/libpulse_plugin.so*
%{_libdir}/vlc/plugins/services_discovery/libpulselist_plugin.so
%{_libdir}/vlc/libvlc_pulse.so*

#----------------------------------------------------------------------------

%package plugin-rist
Summary:	Rist plugin for the VLC media playe
Group:		Video
Requires:	vlc-plugin-main

%description plugin-rist
This plugin adds support for the RIST (Reliable Internet Stream Transport) 
input module to the VLC media player.

%files plugin-rist
%doc README
%{_libdir}/vlc/plugins/access/librist_plugin.so
%{_libdir}/vlc/plugins/access_output/libaccess_output_rist_plugin.so

#----------------------------------------------------------------------------

%package plugin-schroedinger
Summary:	Dirac plugin for VLC based on Schroedinger
Group:		Video
Requires:	vlc-plugin-main

%description plugin-schroedinger
These plugins add support for the Dirac video format based on Schroedinger.
to the VLC media player.

%files plugin-schroedinger
%doc README
%{_libdir}/vlc/plugins/codec/libschroedinger_plugin.so

#----------------------------------------------------------------------------

%package plugin-sdl
Summary:	Simple DirectMedia Layer video plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-sdl
This plugin adds support for the Simple DirectMedia Layer library to
the VLC media player. To activate it, use the `--vout sdl' or
`--aout sdl' flags or select the `sdl' video or audio output plugin
from the preferences menu.

%files plugin-sdl
%doc README
%{_libdir}/vlc/plugins/codec/libsdl_image_plugin.so*
#{_libdir}/vlc/plugins/video_output/libvout_sdl_plugin.so*

#----------------------------------------------------------------------------

%package plugin-shout
Summary:	Shoutcast and Icecast connector
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-shout
This plugin adds support for Icecast and Shoutcast servers.

%files plugin-shout
%doc README
%{_libdir}/vlc/plugins/access_output/libaccess_output_shout_plugin.so

#----------------------------------------------------------------------------

%package plugin-speex
Summary:	Ogg Speex codec plugin for the VLC media player
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-speex
These plugins add support for the Ogg Speex codec to the VLC media
player. They are autodetected.

%files plugin-speex
%doc README
%{_libdir}/vlc/plugins/audio_filter/libspeex_resampler_plugin.so
%{_libdir}/vlc/plugins/codec/libspeex_plugin.so*

#----------------------------------------------------------------------------

%package plugin-theora
Summary:	Theora video codec for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-theora
These plugin adds support for the Ogg Theora video format to the VLC
media player. They are autodetected.

%files plugin-theora
%doc README
%{_libdir}/vlc/plugins/codec/libtheora_plugin.so

#----------------------------------------------------------------------------

%package plugin-twolame
Summary:	MP2 encoder plugin for VLC
Group:		Sound
Requires:	vlc-plugin-main

%description plugin-twolame
These plugins add support for the Twolame MPEG Audio Layer 2 encoder
to the VLC media player. They are autodetected.

%files plugin-twolame
%doc README
%{_libdir}/vlc/plugins/codec/libtwolame_plugin.so*

#----------------------------------------------------------------------------

%package plugin-upnp
Summary:	UPNP service discovery plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-upnp
This plugin adds support for UPNP service discovery to
the VLC media player.

%files plugin-upnp
%doc README
%{_libdir}/vlc/plugins/services_discovery/libupnp_plugin.so*

#----------------------------------------------------------------------------

%if %{with_va}

%package plugin-vaapi
Summary:	VAAPI GPU decoding support to VLC
Group:		Video
Requires:	vlc-plugin-main

%description plugin-vaapi
This package adds VAAPI GPU decoding support to VLC.

%files plugin-vaapi
%doc README
%{_libdir}/vlc/plugins/codec/libvaapi_*_plugin.so
%{_libdir}/vlc/plugins/codec/libvaapi_plugin.so
%{_libdir}/vlc/plugins/vaapi/libvaapi_filters_plugin.so
%{_libdir}/vlc/plugins/video_output/libglconv_vaapi_drm_plugin.so
%if %{with_wayland}
%{_libdir}/vlc/plugins/video_output/libglconv_vaapi_wl_plugin.so
%endif
%{_libdir}/vlc/plugins/video_output/libglconv_vaapi_x11_plugin.so

%endif

#----------------------------------------------------------------------------

%package plugin-vdpau
Summary:	VDPAU GPU decoding support to VLC
Group:		Video
Requires:	vlc-plugin-main

%description plugin-vdpau
This package adds VDPAU GPU decoding support to VLC.

%files plugin-vdpau
%doc README
%dir %{_libdir}/vlc/plugins/vdpau/
%{_libdir}/vlc/plugins/vdpau/libvdpau_*_plugin.so
%{_libdir}/vlc/libvlc_vdpau.so.0*

#----------------------------------------------------------------------------

%package plugin-zvbi
Summary:	Add Teletext and Closed Caption support to VLC
Group:		Video
Requires:	vlc-plugin-main

%description plugin-zvbi
This package adds support for Raw VBI, Teletext and Closed Caption based on
the ZVBI library to VLC.

%files plugin-zvbi
%doc README
%{_libdir}/vlc/plugins/access/liblinsys_hdsdi_plugin.so
%{_libdir}/vlc/plugins/access/liblinsys_sdi_plugin.so
%{_libdir}/vlc/plugins/codec/libzvbi_plugin.so

#----------------------------------------------------------------------------
%if %{with_wayland}
%package plugin-wayland
Summary:	Wayland video output plugin for the VLC media player
Group:		Video
Requires:	vlc-plugin-main

%description plugin-wayland
This plugin adds support for Wayland video output to the VLC media player.

%files plugin-wayland
%doc README
%{_libdir}/vlc/plugins/video_output/libegl_wl_plugin.so
%{_libdir}/vlc/plugins/video_output/libwl_shell_plugin.so
%{_libdir}/vlc/plugins/video_output/libwl_shm_plugin.so
%{_libdir}/vlc/plugins/video_output/libxdg_shell_plugin.so
%endif
#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%ifnarch %{e2k}
%autopatch -M 9 -p1
%else
%autopatch -p1
%endif

export LUAC="%{_bindir}/luac-5.1"

pushd po
tar -xvzf %{SOURCE1}
popd

#gw if we want to regenerate libtool, we must remove the local versions of
# the libtool m4 files, aclocal will replace them
#pushd m4
#rm -fv argz.m4 libtool.m4 ltdl.m4 ltoptions.m4 ltsugar.m4 ltversion.m4 lt~obsolete.m4
#popd

libtoolize --install --force
aclocal -I m4
autoheader
autoconf
automake -a


%build
%global optflags %{optflags} -fno-strict-aliasing
# add missing ebml include dir
export CPPFLAGS="$CPPFLAGS -I/usr/include/ebml"
#gw the speex headers have moved
export CPPFLAGS="$CPPFLAGS -I%{_includedir}/speex -std=c++11"

# Unrecognized options: --enable-bonjour, --enable-lame, --enable-mkv, --enable-sdl, --enable-vcdx
%configure \
	--disable-dependency-tracking \
	--disable-rpath \
%ifarch x86_64
	--enable-sse \
%else
	--disable-sse \
%endif
	--enable-aa \
	--enable-bluray \
	--enable-dav1d \
%if %{with_dts}
	--enable-dca \
%else
	--disable-dca \
%endif
	--enable-dvbpsi \
%if %{with_dvd}
	--enable-dvdnav \
%else
	--disable-dvdnav \
%endif
	--enable-gnutls \
%if %{with_faad}
	--enable-faad \
%else
	--disable-faad \
%endif
	--enable-flac \
	--enable-gnutls \
	--disable-gst-decode \
	--enable-jack \
	--enable-libcddb \
	--enable-libmpeg2 \
%if %{with_mpc}
	--enable-mpc \
%else
	--disable-mpc \
%endif
	--enable-lirc \
%if %{with_va}
	--enable-libva \
%else
	--disable-libva \
%endif
	--enable-live555 \
	--enable-mad \
	--enable-ncurses \
	--enable-ogg \
	--enable-opus \
	--enable-pulse \
	--enable-realrtsp \
	--disable-sid \
	--enable-shout \
	--enable-skins2 \
	--enable-speex \
	--enable-theora \
	--enable-twolame \
	--enable-vdpau \
	--enable-vorbis \
%if !%{with_boostrap}
	--enable-opencv \
%else
	--disable-opencv \
%endif
%ifarch x86_64
	--with-pic \
%endif
%if %{with_goom}
	--enable-goom \
%else
	--disable-goom \
%endif
%if %{with_x264}
	--enable-x264 \
%else
	--disable-x264 \
%endif
%if %{with_x265}
	--enable-x265 \
%else
	--disable-x265 \
%endif
%if %{with_wayland}
	--enable-wayland \
%else
	--disable-wayland \
%endif
	--enable-xvideo \
	--enable-matroska \
	--enable-libxml2 \
	--disable-libplacebo \
	--enable-libtar

%make

pushd po
make update-gmo
popd


%install
mkdir -p %{buildroot}%{_libdir}
%makeinstall_std transform=""

# Remove unwanted .la files
find %{buildroot}%{_libdir}/vlc -name \*.la -exec rm -f {} \;

# Private library and development file: useless
rm -f %{buildroot}%{_libdir}/vlc/libvlc_vdpau.so

# Remove installed docs (we pick them with our macro)
rm -rf installed-docs
mv %{buildroot}%{_datadir}/doc/vlc installed-docs

# Provide menu entries for solid actions...
desktop-file-install --vendor="" \
  --add-mime-type="x-content/video-dvd" \
  --add-mime-type="x-content/video-vcd" \
  --add-mime-type="x-content/video-svcd" \
  --add-mime-type="x-content/audio-cdda" \
  --add-category="Qt" \
  --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/*
# ... and for the skinned program
cat > %{buildroot}%{_datadir}/applications/rosa-svlc.desktop << EOF
[Desktop Entry]
Name=VLC skinned GUI media player
Comment=VLC is a free MPEG, MPEG2, DVD and DivX player
Exec=svlc %U
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=AudioVideo;Audio;Video;Player;
EOF
fgrep MimeType= %{buildroot}%{_datadir}/applications/vlc.desktop >> %{buildroot}%{_datadir}/applications/rosa-svlc.desktop

# Install icons
%define pngdir share/icons
mkdir -p %{buildroot}/{%{_miconsdir},%{_liconsdir}}
install -m 644 %{pngdir}/16x16/vlc.png %{buildroot}/%{_miconsdir}/vlc.png
install -m 644 %{pngdir}/32x32/vlc.png %{buildroot}/%{_iconsdir}/vlc.png
install -m 644 %{pngdir}/48x48/vlc.png %{buildroot}/%{_liconsdir}/vlc.png

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20127 |21mr|vnc-server-common-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Common files for VNC servers
Name:		vnc-server-common
Version:	1.0
Release:	10
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://www.mandriva.com
Source0:	vncserver-initscript
Source1:	sysconfig-vncservers
Requires(post,preun):	rpm-helper
BuildArch:	noarch

%description
This package contains files that are common between multiple VNC server
implementations:
  - the vncserver initscript
  - the vncservers configuration file

%files
%{_initrddir}/vncserver
%config(noreplace) %{_sysconfdir}/sysconfig/vncservers

%post
%_post_service vncserver

%preun
%_preun_service vncserver

#----------------------------------------------------------------------------

%prep

%build

%install
install -D -m 644 %{SOURCE1} \
                  %{buildroot}/%{_sysconfdir}/sysconfig/vncservers
install -D -m 755 %{SOURCE0} \
                  %{buildroot}/%{_initrddir}/vncserver

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20128 |21mr|vncterm-0.9.10-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	VNC server to monitor a text session
Name:		vncterm
Version:	0.9.10
Release:	4
License:	GPLv2+
Group:		Networking/Remote access
Url:		https://github.com/LibVNC/vncterm
Source0:	https://github.com/LibVNC/%{name}/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libvncserver)

%description
VNC server to monitor a text session.

#----------------------------------------------------------------------------

%package -n linuxvnc
Summary:	VNC server to monitor a text session
Group:		Networking/Remote access

%description -n linuxvnc
With linuxvnc you can export your currently running text sessions to any VNC
client. So it can be useful, if you want to move to another computer without
having to log out and if you've forgotten to attach a 'screen' session to it,
or to help a distant colleague to solve a problem.

Based on the ideas of x0rfbserver and on LibVNCServer, it has evolved
into a versatile and performant while still easy to use program.

%files -n linuxvnc
%doc COPYING ChangeLog NEWS README TODO
%{_bindir}/linuxvnc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
autoreconf -fi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20129 |21mr|vnstat-1.17-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
# disable fortify as it causes segmentation fault in vnstati
%undefine _fortify_cflags

Summary:	vnStat is a console-based network traffic monitor
Name:		vnstat
Version:	1.17
Release:	3
License:	GPLv2+
Group:		Monitoring
Url:		http://humdi.net/vnstat/
Source0:	http://humdi.net/vnstat/%{name}-%{version}.tar.gz
Source1:	vnstat_ip-up
Source2:	vnstat_ip-down
Source3:	vnstat.service
BuildRequires:	libgd-devel

%description
vnStat is a console-based network traffic monitor for Linux and BSD that keeps
a log of network traffic for the selected interface(s). It uses the network
interface statistics provided by the kernel as information source. This means
that vnStat won't actually be sniffing any traffic and also ensures light use
of system resources.

%files
%doc CHANGES README FAQ
%doc examples/
%{_bindir}/vnstat
%{_bindir}/vnstati
%{_sbindir}/vnstatd
%config(noreplace) %{_sysconfdir}/vnstat.conf
%{_unitdir}/vnstat.service
%{_sysconfdir}/sysconfig/network-scripts/if*.d/vnstat*
%{_mandir}/*/*
/var/lib/vnstat

#--------------------------------------------------------------------

%prep
%setup -q
%apply_patches
install -m 0755 %{SOURCE1} vnstat_ip-up
install -m 0755 %{SOURCE2} vnstat_ip-down
install -m 0644 %{SOURCE3} vnstat.service

%build
autoreconf -fiv
%configure
%make

%install
mkdir -p %{buildroot}/etc
%makeinstall_std
# vnstat service
install -d %{buildroot}/%{_unitdir}
install -m644 vnstat.service %{buildroot}/%{_unitdir}
# ifup/ifdown hooks
install -d %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifup.d
install -m755 vnstat_ip-up %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifup.d
install -d %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifdown.d
install -m755 vnstat_ip-down %{buildroot}/%{_sysconfdir}/sysconfig/network-scripts/ifdown.d
install -d %{buildroot}%{_localstatedir}/lib/vnstat

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20130 |21mr|vo-aacenc-0.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		vo-aacenc
Version:	0.1.3
Release:	5
Summary:	VisualOn AAC encoder library
License:	ASL 2.0
Group:		System/Libraries
URL:		http://opencore-amr.sourceforge.net/
Source0:	http://sourceforge.net/projects/opencore-amr/files/%{name}/%{name}-%{version}.tar.gz

%description
This library contains an encoder implementation of the Advanced Audio
Coding (AAC) audio codec. The library is based on a codec implementation
by VisualOn as part of the Stagefright framework from the Google
Android project.

This package is in restricted because the AAC encoding standard is
covered by patents.

%package -n %{libname}
Group:		System/Libraries
Summary:	VisualOn AAC encoder library

%description -n %{libname}
This library contains an encoder implementation of the Advanced Audio
Coding (AAC) audio codec. The library is based on a codec implementation
by VisualOn as part of the Stagefright framework from the Google
Android project.

This package is in restricted because the AAC encoding standard is
covered by patents.

%package -n %{develname}
Group:		Development/C
Summary:	Development files for %{name} AAC encoding library
Provides:	libvo-aacenc-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
Header files and development libraries for %{name}

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%clean

%files -n %{libname}
%doc COPYING ChangeLog NOTICE README
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{develname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20131 |21mr|vo-amrwbenc-0.1.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major		0
%define libname		%mklibname %{name} %{major}
%define develname	%mklibname %{name} -d

Name:		vo-amrwbenc
Version:	0.1.3
Release:	4
Summary:	VisualOn AMR-WB encoder library
License:	ASL 2.0
Group:		System/Libraries
URL:		http://opencore-amr.sourceforge.net/
Source0:	http://sourceforge.net/projects/opencore-amr/files/%{name}/%{name}-%{version}.tar.gz

%description
This library contains an encoder implementation of the Adaptive Multi
Rate Wideband (AMR-WB) audio codec. The library is based on a codec
implementation by VisualOn as part of the Stagefright framework from
the Google Android project.

This package is in restricted because the AMR audio compression scheme 
is covered by patents.

%package -n %{libname}
Group:		System/Libraries
Summary:	VisualOn AMR-WB encoder library

%description -n %{libname}
This library contains an encoder implementation of the Adaptive Multi
Rate Wideband (AMR-WB) audio codec. The library is based on a codec
implementation by VisualOn as part of the Stagefright framework from
the Google Android project.

This package is in restricted because the AMR audio compression scheme 
is covered by patents.

%package -n %{develname}
Group:		Development/C
Summary:	Development files for %{name} AMR wideband encoding library
Provides:	libvo-amrwbenc-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description -n %{develname}
Header files and development libraries for %{name}

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

%files -n %{libname}
%doc COPYING ChangeLog NOTICE README
%{_libdir}/lib%{name}.so.%{major}*

%files -n %{develname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20132 |21mr|voikko-fi-2.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Finnish support for Voikko spellchecker/hyphenator
Name:		voikko-fi
Version:	2.4
Release:	1
License:	GPLv2+
Group:		Text tools
URL:		http://voikko.sourceforge.net/
Source0:	https://www.puimula.org/voikko-sources/voikko-fi/voikko-fi-%{version}.tar.gz
BuildRequires:	python3
BuildRequires:	foma
BuildRequires:	voikko-tools
Requires:	locales-fi
# aspell = 1, myspell = 2, lang-specific = 3
#Provides:	enchant-dictionary = 3
Provides:	voikko-dictionary
Provides:	voikko-fi_FI
Provides:	spell-fi
Obsoletes:	suomi-malaga-voikko < 1.0

%description
Description of Finnish morphology written in Malaga. This version is modified
to support the Voikko spellchecker/hyphenator and is not compatible with the
Sukija text indexer.

%files
%defattr(-,root,root)
%doc README.md CONTRIBUTORS
%dir %{_prefix}/lib/voikko
%{_prefix}/lib/voikko/?

#-----------------------------------------------------------------------------
%prep
%setup -q -n %{name}-%{version}

%build
%make_build vvfst

%install

# Files differ on big-endian and small-endian archs, and they have different
# names (*_l vs *_b). This is the reason we use %{_prefix}/lib instead of
# %{_datadir} and won't noarch the package. Note that we use %{_prefix}/lib
# instead of %{_libdir} to achieve biarch compatibility. That is, if the user
# has both libvoikkoX and lib64voikkoX installed, both of them work with the
# same voikko-fi package.
make vvfst-install DESTDIR=%{buildroot}%{_prefix}/lib/voikko



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20133 |21mr|volume_key-0.3.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global somajor 1
%global libname %mklibname %{name} %{somajor}
%global devname %mklibname %{name} -d

Name:		volume_key
Version:	0.3.12
Release:	3
Summary:	An utility for manipulating storage encryption keys and passphrases
Group:		System/Base
# lib/{SECerrs,SSLerrs}.h are both licensed under MPLv1.1 and GPLv2
License:	GPLv2 and (MPLv1.1 or GPLv2)
URL:		https://pagure.io/%{name}/
Source0:	https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz
# from upstream git
Patch0:		volume_key-resource-leaks.patch
Patch1:		volume_key-0.3.12-support_LUKS2_and_more.patch
BuildRequires:	cryptsetup-devel
BuildRequires:	gettext-devel
BuildRequires:	glib2-devel
BuildRequires:	gnupg2
BuildRequires:	gpgme-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	nss-devel
BuildRequires:	python3-devel
# Needed by %%check:
BuildRequires:	nss
BuildRequires:	strace
Requires: %{libname} = %{EVRD}

%global desc_common The main goal of the software is to allow restoring access to an encrypted\
hard drive if the primary user forgets the passphrase.  The encryption key\
back up can also be useful for extracting data after a hardware or software\
failure that corrupts the header of the encrypted volume, or to access the\
company data after an employee leaves abruptly.

%global desc_app This package provides a command-line tool for manipulating storage volume\
encryption keys and storing them separately from volumes.\
\
%{desc_common}

%global desc_lib This package provides lib%{name}, a library for manipulating storage volume\
encryption keys and storing them separately from volumes.\
\
%{desc_common}

%global desc_python(V:) This package provides %%{-V:Python %%{-V*}}%%{!-V:Python} bindings for lib%{name}, a library for\
manipulating storage volume encryption keys and storing them separately from\
volumes.\
\
%{desc_common}\
\
%{name} currently supports only the LUKS volume encryption format.  Support\
for other formats is possible, some formats are planned for future releases.

%description
%{desc_app}

%files -f %{name}.lang
%doc README contrib AUTHORS ChangeLog NEWS COPYING
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*

#---------------------------------------------------------------------------
%package -n %{devname}
Summary:	A library for manipulating storage encryption keys and passphrases
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
%{desc_lib}

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for manipulating storage encryption keys and passphrases
Group:		System/Libraries
Requires:	gnupg2

%description -n %{libname}
%{desc_lib}

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.*

#---------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 bindings for lib%{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
%desc_python -V 3

%files -n python3-%{name}
%{python3_sitearch}/_%{name}.so
%{python3_sitearch}/%{name}.py*
%{python3_sitearch}/__pycache__/%{name}.*

#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --with-python=no --with-python3=yes
%make_build

%install
%make_install

# Remove libtool archive
find %{buildroot} -type f -name "*.la" -delete

%check
# test segfoult on open file, may be bag in tests

#make check || { \
#echo "======================== ./test-suite.log ========================"; \
#cat tests/test-suite.log; \
#echo "=================================================================="; \
#exit 1; \
#}

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20134 |21mr|volume_key-0.3.12-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global somajor 1
%global libname %mklibname %{name} %{somajor}
%global devname %mklibname %{name} -d

Name:		volume_key
Version:	0.3.12
Release:	4
Summary:	An utility for manipulating storage encryption keys and passphrases
Group:		System/Base
# lib/{SECerrs,SSLerrs}.h are both licensed under MPLv1.1 and GPLv2
License:	GPLv2 and (MPLv1.1 or GPLv2)
URL:		https://pagure.io/%{name}/
Source0:	https://releases.pagure.org/%{name}/%{name}-%{version}.tar.xz
# from upstream git
Patch0:		volume_key-resource-leaks.patch
Patch1:		volume_key-0.3.12-support_LUKS2_and_more.patch
BuildRequires:	cryptsetup-devel
BuildRequires:	gettext-devel
BuildRequires:	glib2-devel
BuildRequires:	gnupg2
BuildRequires:	gpgme-devel
BuildRequires:	pkgconfig(blkid)
BuildRequires:	nss-devel
BuildRequires:	python3-devel
# Needed by %%check:
BuildRequires:	nss
BuildRequires:	strace
Requires: %{libname} = %{EVRD}

%global desc_common The main goal of the software is to allow restoring access to an encrypted\
hard drive if the primary user forgets the passphrase.  The encryption key\
back up can also be useful for extracting data after a hardware or software\
failure that corrupts the header of the encrypted volume, or to access the\
company data after an employee leaves abruptly.

%global desc_app This package provides a command-line tool for manipulating storage volume\
encryption keys and storing them separately from volumes.\
\
%{desc_common}

%global desc_lib This package provides lib%{name}, a library for manipulating storage volume\
encryption keys and storing them separately from volumes.\
\
%{desc_common}

%global desc_python(V:) This package provides %%{-V:Python %%{-V*}}%%{!-V:Python} bindings for lib%{name}, a library for\
manipulating storage volume encryption keys and storing them separately from\
volumes.\
\
%{desc_common}\
\
%{name} currently supports only the LUKS volume encryption format.  Support\
for other formats is possible, some formats are planned for future releases.

%description
%{desc_app}

%files -f %{name}.lang
%doc README contrib AUTHORS ChangeLog NEWS COPYING
%{_bindir}/%{name}
%{_mandir}/man8/%{name}.8*

#---------------------------------------------------------------------------
%package -n %{devname}
Summary:	A library for manipulating storage encryption keys and passphrases
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
%{desc_lib}

%files -n %{devname}
%{_includedir}/%{name}
%{_libdir}/lib%{name}.so

#---------------------------------------------------------------------------

%package -n %{libname}
Summary:	A library for manipulating storage encryption keys and passphrases
Group:		System/Libraries
Requires:	gnupg2

%description -n %{libname}
%{desc_lib}

%files -n %{libname}
%doc COPYING
%{_libdir}/lib%{name}.so.*

#---------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 bindings for lib%{name}
Group:		Development/Python
Requires:	%{libname} = %{EVRD}

%description -n python3-%{name}
%desc_python -V 3

%files -n python3-%{name}
%{python3_sitearch}/_%{name}.so
%{python3_sitearch}/%{name}.py*
%{python3_sitearch}/__pycache__/%{name}.*

#---------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --with-python=no --with-python3=yes
%make_build

%install
%make_install

# Remove libtool archive
find %{buildroot} -type f -name "*.la" -delete

%find_lang %{name}

%check
# test segfoult on open file, may be bag in tests

#make check || { \
#echo "======================== ./test-suite.log ========================"; \
#cat tests/test-suite.log; \
#echo "=================================================================="; \
#exit 1; \
#}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20135 |21mr|voms-api-java-3.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		voms-api-java
Version:	3.3.0
Release:	5
Summary:	Virtual Organization Membership Service Java API

License:	ASL 2.0
URL:		https://wiki.italiangrid.it/VOMS
Source0:	https://github.com/italiangrid/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
#		Disable tests using non-local network interface
Patch0:		%{name}-no-local.patch
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	maven-local
BuildRequires:	mvn(eu.eu-emi.security:canl) >= 2.5
BuildRequires:	mvn(junit:junit)
BuildRequires:	mvn(org.hamcrest:hamcrest-library)
BuildRequires:	mvn(org.mockito:mockito-core)
BuildRequires:	mvn(net.jcip:jcip-annotations)
Requires:	mvn(eu.eu-emi.security:canl) >= 2.5

%description
The Virtual Organization Membership Service (VOMS) is an attribute authority
which serves as central repository for VO user authorization information,
providing support for sorting users into group hierarchies, keeping track of
their roles and other attributes in order to issue trusted attribute
certificates and SAML assertions used in the Grid environment for
authorization purposes.

This package provides a java client API for VOMS.

%package javadoc
Summary:	Virtual Organization Membership Service Java API Documentation

%description javadoc
Virtual Organization Membership Service (VOMS) Java API Documentation.

%prep
%setup -q
%patch0 -p1

# Do not create source jars
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin

# Cobertura no longer in Fedora due to licensing issues
%pom_remove_plugin org.codehaus.mojo:cobertura-maven-plugin

# Remove license plugin
%pom_remove_plugin com.mycila.maven-license-plugin:maven-license-plugin

%build
%mvn_build

%install
%mvn_install -J target/site/javadoc/apidocs

%files -f .mfiles
%doc AUTHORS README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20136 |21mr|voms-clients-java-3.3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		voms-clients-java
Version:	3.3.0
Release:	5
Summary:	Virtual Organization Membership Service Java clients

License:	ASL 2.0
URL:		https://wiki.italiangrid.it/VOMS
Source0:	https://github.com/italiangrid/voms-clients/archive/v%{version}/%{name}-%{version}.tar.gz
#		Use a more sensible timeout
#		Backport from upstream git
Patch0:		%{name}-use-a-more-sensible-timeout.patch
#		Change default proxy cert key length to 2048 bits
#		https://github.com/italiangrid/voms-clients/pull/20
Patch1:		%{name}-change-default-proxy-cert-key-length-to-2048-bits.patch
Group:          Development/Java
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	maven-local
BuildRequires:	mvn(commons-cli:commons-cli)
BuildRequires:	mvn(commons-io:commons-io)
BuildRequires:	mvn(org.italiangrid:voms-api-java)
BuildRequires:	voms-api-java >= 3.3.0
Requires:	voms-api-java >= 3.3.0

Requires(post):		%{_sbindir}/update-alternatives
Requires(postun):	%{_sbindir}/update-alternatives

# Older versions of voms-clients did not have alternatives
Conflicts:	voms-clients < 2.0.12

Provides:	voms-clients = %{version}-%{release}

%description
The Virtual Organization Membership Service (VOMS) is an attribute authority
which serves as central repository for VO user authorization information,
providing support for sorting users into group hierarchies, keeping track of
their roles and other attributes in order to issue trusted attribute
certificates and SAML assertions used in the Grid environment for
authorization purposes.

This package provides the Java version of the command line clients for VOMS:
voms-proxy-init, voms-proxy-destroy and voms-proxy-info.

%prep
%setup -q -n voms-clients-%{version}
%patch0 -p1
%patch1 -p1

# Do not create source jars
%pom_remove_plugin org.apache.maven.plugins:maven-source-plugin

# Don't do assembly
%pom_remove_plugin :maven-assembly-plugin

# Remove license plugin
%pom_remove_plugin com.mycila.maven-license-plugin:maven-license-plugin

%build
%mvn_build -j

%install
%mvn_install

mkdir -p %{buildroot}%{_bindir}

cat > %{buildroot}%{_bindir}/voms-proxy-init3 << EOF
#!/bin/sh
VOMS_CLIENTS_JAVA_OPTIONS=\${VOMS_CLIENTS_JAVA_OPTIONS:-"-XX:+UseSerialGC -Xmx16m"}
java \$VOMS_CLIENTS_JAVA_OPTIONS -cp \$(build-classpath voms-clients-java voms-api-java canl-java bcpkix bcprov commons-cli commons-io) org.italiangrid.voms.clients.VomsProxyInit "\$@"
EOF
chmod 755 %{buildroot}%{_bindir}/voms-proxy-init3

cat > %{buildroot}%{_bindir}/voms-proxy-info3 << EOF
#!/bin/sh
VOMS_CLIENTS_JAVA_OPTIONS=\${VOMS_CLIENTS_JAVA_OPTIONS:-"-XX:+UseSerialGC -Xmx16m"}
java \$VOMS_CLIENTS_JAVA_OPTIONS -cp \$(build-classpath voms-clients-java voms-api-java canl-java bcpkix bcprov commons-cli commons-io) org.italiangrid.voms.clients.VomsProxyInfo "\$@"
EOF
chmod 755 %{buildroot}%{_bindir}/voms-proxy-info3

cat > %{buildroot}%{_bindir}/voms-proxy-destroy3 << EOF
#!/bin/sh
VOMS_CLIENTS_JAVA_OPTIONS=\${VOMS_CLIENTS_JAVA_OPTIONS:-"-XX:+UseSerialGC -Xmx16m"}
java \$VOMS_CLIENTS_JAVA_OPTIONS -cp \$(build-classpath voms-clients-java voms-api-java canl-java bcpkix bcprov commons-cli commons-io) org.italiangrid.voms.clients.VomsProxyDestroy "\$@"
EOF
chmod 755 %{buildroot}%{_bindir}/voms-proxy-destroy3

touch %{buildroot}%{_bindir}/voms-proxy-init
chmod 755 %{buildroot}%{_bindir}/voms-proxy-init
touch %{buildroot}%{_bindir}/voms-proxy-info
chmod 755 %{buildroot}%{_bindir}/voms-proxy-info
touch %{buildroot}%{_bindir}/voms-proxy-destroy
chmod 755 %{buildroot}%{_bindir}/voms-proxy-destroy

mkdir -p %{buildroot}%{_mandir}/man1
install -p -m 644 man/voms-proxy-init.1 \
    %{buildroot}%{_mandir}/man1/voms-proxy-init3.1
install -p -m 644 man/voms-proxy-info.1 \
    %{buildroot}%{_mandir}/man1/voms-proxy-info3.1
install -p -m 644 man/voms-proxy-destroy.1 \
    %{buildroot}%{_mandir}/man1/voms-proxy-destroy3.1

touch %{buildroot}%{_mandir}/man1/voms-proxy-init.1
touch %{buildroot}%{_mandir}/man1/voms-proxy-info.1
touch %{buildroot}%{_mandir}/man1/voms-proxy-destroy.1

mkdir -p %{buildroot}%{_mandir}/man5
install -p -m 644 man/vomsdir.5 %{buildroot}%{_mandir}/man5/vomsdir.5
install -p -m 644 man/vomses.5 %{buildroot}%{_mandir}/man5/vomses.5

%post
%{_sbindir}/update-alternatives --install %{_bindir}/voms-proxy-init \
    voms-proxy-init %{_bindir}/voms-proxy-init3 90 \
    --slave %{_mandir}/man1/voms-proxy-init.1.gz voms-proxy-init-man \
    %{_mandir}/man1/voms-proxy-init3.1.gz
%{_sbindir}/update-alternatives --install %{_bindir}/voms-proxy-info \
    voms-proxy-info %{_bindir}/voms-proxy-info3 90 \
    --slave %{_mandir}/man1/voms-proxy-info.1.gz voms-proxy-info-man \
    %{_mandir}/man1/voms-proxy-info3.1.gz
%{_sbindir}/update-alternatives --install %{_bindir}/voms-proxy-destroy \
    voms-proxy-destroy %{_bindir}/voms-proxy-destroy3 90 \
    --slave %{_mandir}/man1/voms-proxy-destroy.1.gz voms-proxy-destroy-man \
    %{_mandir}/man1/voms-proxy-destroy3.1.gz

%postun
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove voms-proxy-init \
    %{_bindir}/voms-proxy-init3
    %{_sbindir}/update-alternatives --remove voms-proxy-info \
    %{_bindir}/voms-proxy-info3
    %{_sbindir}/update-alternatives --remove voms-proxy-destroy \
    %{_bindir}/voms-proxy-destroy3
fi

%files -f .mfiles
%{_bindir}/voms-proxy-destroy3
%{_bindir}/voms-proxy-info3
%{_bindir}/voms-proxy-init3
%ghost %{_bindir}/voms-proxy-destroy
%ghost %{_bindir}/voms-proxy-info
%ghost %{_bindir}/voms-proxy-init
%{_mandir}/man1/voms-proxy-destroy3.1*
%{_mandir}/man1/voms-proxy-info3.1*
%{_mandir}/man1/voms-proxy-init3.1*
%ghost %{_mandir}/man1/voms-proxy-destroy.1*
%ghost %{_mandir}/man1/voms-proxy-info.1*
%ghost %{_mandir}/man1/voms-proxy-init.1*
%{_mandir}/man5/vomsdir.5*
%{_mandir}/man5/vomses.5*
%doc AUTHORS README.md
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20137 |21mr|vorbis-java-0.8-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionals to help breaking vorbis-java-tika <-> tika dependency cycle
%if 0%{?fedora}
%bcond_with tika
%endif

Name:          vorbis-java
Version:       0.8
Release:       7
Summary:       Ogg and Vorbis toolkit for Java
License:       ASL 2.0
URL:           https://github.com/Gagravarr/VorbisJava
Source0:       https://github.com/Gagravarr/VorbisJava/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
%if %{without tika}
BuildRequires: mvn(org.apache.tika:tika-core)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This library is a pure Java, for working with Ogg and
Vorbis, FLAC, Opus, Speex and Theora files.

%if %{without tika}
%package tika
Summary:       VorbisJava Apache Tika plugin

%description tika
This package contains Apache Tika plugin for Ogg,
Vorbis and FLAC.
%endif

%package tools
Summary:       VorbisJava Tools

%description tools
This package contains VorbisJava Ogg and Vorbis tools for Java.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n VorbisJava-%{name}-%{version}
find . -name "*.class" -delete
find . -name "*.jar" -delete

%if %{with tika}
%pom_disable_module tika
%pom_xpath_remove "pom:dependency[pom:scope = 'test']" tika
%endif

# disable embedded core copy
%pom_remove_plugin :maven-assembly-plugin tools

%pom_remove_plugin :maven-gpg-plugin parent
%pom_remove_plugin :maven-source-plugin parent
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions" parent

%mvn_package :%{name} %{name}
%mvn_package :%{name}-parent %{name}
%mvn_package :%{name}-core %{name}

%build

# Skip test @ random fails on arm builder
%mvn_build -s -f -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles-%{name}
%doc CHANGES.txt README.txt TODO.txt
%license LICENSE.txt NOTICE.txt

%if %{without tika}
%files tika -f .mfiles-%{name}-tika
%license LICENSE.txt NOTICE.txt
%endif

%files tools -f .mfiles-%{name}-tools
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20138 |21mr|vorbis-tools-1.4.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Define Mandriva Linux version we are building for
%define mdkversion %(perl -pe '/(\\d+)\\.(\\d)\\.?(\\d)?/; $_="$1$2".($3||0)' /etc/mandriva-release)

Summary:	Several Ogg Vorbis Tools
Name:		vorbis-tools
Version:	1.4.2
Release:	3
Group:		Sound
License:	GPLv2
Url:		http://www.xiph.org/
Source0:	http://downloads.xiph.org/releases/vorbis/%{name}-%{version}.tar.gz
Patch0:		vorbis-tools-1.4.0-next_on_SIGUSR1.patch
Patch1:		vorbis-tools-1.2.0-ogg123-play-stdin.patch
Patch2:		vorbis-tools-CVE-2023-43361.patch
BuildRequires:	bison
BuildRequires:	gettext
# (gc) needed for AM_PATH_PROG_WITH_TEST
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(ao) >= 1.0.0
BuildRequires:	pkgconfig(flac) >= 1.1.3
BuildRequires:	pkgconfig(kate)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(opusfile)
BuildRequires:  pkgconfig(speex)
BuildRequires:	pkgconfig(vorbis) >= 1.3.0

%description
This package contains several Ogg Vorbis tools: oggenc (encoder), oggdec 
(decoder), ogg123 (command line player), vorbiscomment (metadata editor) and
vcut (cut tool).
Find some free Ogg Vorbis music here: http://www.vorbis.com/music/.

%files -f %{name}.lang
%doc COPYING README ogg123/ogg123rc-example
%{_bindir}/ogg123
%{_bindir}/oggdec
%{_bindir}/oggenc
%{_bindir}/ogginfo
%{_bindir}/vcut
%{_bindir}/vorbiscomment
%{_mandir}/man1/ogg123*
%{_mandir}/man1/oggenc*
%{_mandir}/man1/oggdec*
%{_mandir}/man1/ogginfo*
%{_mandir}/man1/vcut*
%{_mandir}/man1/vorbiscomment*

#-----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

touch config.rpath

%build
autoreconf -vfi
%configure --enable-vcut

%make


%install
%makeinstall_std

# Cleanup
rm -rf %{buildroot}/%{_docdir}/%{name}-%{version}

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20139 |21mr|vpnc-0.5.3-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A free vpn client for the Cisco 3000 concentrators
Name:		vpnc
Version:	0.5.3
Release:	18
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.unix-ag.uni-kl.de/~massar/vpnc/
Source0:	http://www.unix-ag.uni-kl.de/~massar/vpnc/%{name}-%{version}.tar.gz
Patch0:		vpnc-0.5.3-linkage.patch
Patch1:		0001-Differ-Debian-s-resolveconf-from-systemd-s-resolvect.patch
BuildRequires:	libgcrypt-devel
Requires:	iproute2
Provides:	kvpnc-backend

%description
A free vpn client for cisco3000 VPN Concentrator, completly in userspace,
require Universal TUN/TAP device driver support compiled in the kernel
or as module.

%files
%doc COPYING README TODO VERSION
%{_mandir}/man8/vpnc.8*
%{_mandir}/man1/cisco-decrypt.1*
%{_sbindir}/*
%{_bindir}/*
%{_localstatedir}/lib/%{name}
%{_sysconfdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1

perl -pi -e 's|/var/run/vpnc/|%{_localstatedir}/lib/%{name}/|' vpnc-script
perl -pi -e 's|/var/run/vpnc/pid|/var/run/vpnc.pid|' config.c vpnc-disconnect

%build
%serverbuild
%make CFLAGS="%{optflags}" LFLAGS="%{?ldflags}"

# lower MTU, some vpn concentrators have MTU problems
perl -pi -e s/1412/1000/ vpnc-script

%install
install -d -m 755 %{buildroot}%{_sbindir}
install -d -m 755 %{buildroot}%{_bindir}
install -d -m 755 %{buildroot}%{_mandir}/man8
install -d -m 755 %{buildroot}%{_mandir}/man1
install -d -m 755 %{buildroot}%{_localstatedir}/lib/%{name}
install -m 755 {vpnc,vpnc-script,vpnc-disconnect,cisco-decrypt} \
    %{buildroot}%{_sbindir}
install -m 755 pcf2vpnc %{buildroot}%{_bindir}
install -m 755 vpnc.8 %{buildroot}%{_mandir}/man8
install -m 755 cisco-decrypt.1 %{buildroot}%{_mandir}/man1
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
ln -s %{_sbindir}/vpnc-script %{buildroot}%{_sysconfdir}/%{name}/vpnc-script

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20140 |21mr|vsftpd-3.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Very Secure File Transfer Protocol Daemon
Name:		vsftpd
Version:	3.0.5
Release:	1
License:	GPLv2+
Group:		System/Servers
Url:		http://vsftpd.beasts.org/
Source0:	https://security.appspot.com/downloads/%{name}-%{version}.tar.gz
Source10:	https://security.appspot.com/downloads/%{name}-%{version}.tar.gz.asc
Source1:	vsftpd.xinetd
Source2:	vsftpd.pam
Source3:	vsftpd.ftpusers
Source4:	vsftpd.user_list
Source5:	vsftpd.init
Source6:	vsftpd_conf_migrate.sh
Source7:	vsftpd.service.bz2
Source8:	vsftpd.service
# Fedora patches
# Build patches
Patch1:		vsftpd-2.1.0-libs.patch
Patch2: 	vsftpd-2.1.0-build_ssl.patch
Patch3: 	vsftpd-2.1.0-tcp_wrappers.patch
# Use /etc/vsftpd/ instead of /etc/
Patch4:		vsftpd-2.2.2-configuration.patch
# These need review
Patch5: 	vsftpd-2.2.2-pam_hostname.patch
Patch6: 	vsftpd-close-std-fds.patch
Patch7: 	vsftpd-2.1.0-filter.patch
Patch8: 	vsftpd-2.0.5-greedy.patch
Patch9: 	vsftpd-2.1.0-userlist_log.patch
Patch10:	vsftpd-2.2.2-trim.patch
Patch12: 	vsftpd-2.2.2-daemonize_plus.patch
Patch13:	vsftpd-2.3.4-listen_ipv6.patch
Patch101:	vsftpd-2.0.5-anon.patch
Patch102:	vsftpd-2.0.1-server_args.patch
Patch103:	vsftpd-2.2.2-use_localtime.patch
Patch104:	vsftpd-3.0.2-chowngroup.patch
Patch105:	vsftpd-drop-newpid-from-clone.patch
Patch106:	vsftpd-2.0.5-utf8-log-names.patch
BuildRequires:	libcap-devel
BuildRequires:	pam-devel
BuildRequires:	tcp_wrappers-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libnsl)
Requires:	libcap
Requires:	logrotate
Requires:	openssl
Requires:	pam
Requires(pre,post,preun,postun):	rpm-helper
Provides:	ftpserver
Conflicts:	wu-ftpd
Conflicts:	proftpd
Conflicts:	ncftpd
Conflicts:	pure-ftpd

%description
A Very Secure FTP Daemon - written from scratch - by Chris "One Man Security
Audit Team" Evans.

%files
%doc FAQ INSTALL BUGS AUDIT Changelog LICENSE README README.security REWARD SPEED TODO 
%doc BENCHMARKS COPYING SECURITY/ EXAMPLE/ TUNING SIZE vsftpd.xinetd
%{_sbindir}/vsftpd
%{_initrddir}/vsftpd
%attr(0555,ftp,ftp) %dir /var/ftp
%attr(2555,ftp,ftp) %dir /var/ftp/pub
%attr(700,root,root) %dir %{_sysconfdir}/vsftpd
%config(noreplace) %{_sysconfdir}/vsftpd/*
%config(noreplace) %{_sysconfdir}/pam.d/vsftpd
%config(noreplace) %{_sysconfdir}/logrotate.d/vsftpd
%config(noreplace) %{_sysconfdir}/avahi/services/%{name}.service
%config(noreplace) %{_sysconfdir}/xinetd.d/vsftpd-xinetd
/lib/systemd/system/vsftpd.service
%{_mandir}/*/*

%pre
%_pre_useradd ftp /var/ftp /bin/false

%post
%_post_service vsftpd
if [ -x /usr/sbin/xinetd ];then
%_post_service xinetd
fi

%preun
%_preun_service vsftpd
if [ -x /usr/sbin/xinetd ];then
%_post_service xinetd
fi

%postun
%_postun_userdel ftp

#----------------------------------------------------------------------------

%prep
%setup -q
cp %{SOURCE1} .
%patch1 -p1 -b .libs
%patch2 -p1 -b .build_ssl
%patch3 -p1 -b .tcp_wrappers
%patch4 -p1 -b .configuration
%patch5 -p1 -b .pam_hostname
%patch6 -p1 -b .close_fds
%patch7 -p1 -b .filter
%patch8 -p1 -b .greedy
%patch9 -p1 -b .userlist_log
%patch10 -p1 -b .trim
%patch12 -p1 -b .daemonize_plus
%patch13 -p1 -b .ipv6

%patch101 -p1 -b .anon
%patch102 -p1 -b .server_args
%patch103 -p1 -b .use_localtime
%patch104 -p1 -b .chowngroup
%patch105 -p1 -b .newpid
%patch106 -p1 -b .utf8

%build
%serverbuild

%make CFLAGS="%{optflags}" LINK="%{ldflags}"
# should go to rh patch.
# Change a few defaults in the config:
perl -pi -e 's|#ls_recurse_enable|ls_recurse_enable|' vsftpd.conf
## Fix the /usr/local problem in the xinetd entry
#perl -pi -e 's|/usr/local/sbin/vsftpd|%{_sbindir}/vsftpd|' xinetd.d/vsftpd

%install
install -m755 vsftpd -D %{buildroot}%{_sbindir}/vsftpd
install -m600 vsftpd.conf -D %{buildroot}%{_sysconfdir}/vsftpd/vsftpd.conf
install -m644 vsftpd.xinetd -D %{buildroot}%{_sysconfdir}/xinetd.d/vsftpd-xinetd
install -m644 vsftpd.conf.5 -D %{buildroot}/%{_mandir}/man5/vsftpd.conf.5
install -m644 vsftpd.8 -D %{buildroot}%{_mandir}/man8/vsftpd.8
install -m644 RedHat/vsftpd.log -D %{buildroot}%{_sysconfdir}/logrotate.d/vsftpd
install -m644 %{SOURCE2}  -D %{buildroot}%{_sysconfdir}/pam.d/vsftpd
install -m600 %{SOURCE3}  -D %{buildroot}%{_sysconfdir}/vsftpd/ftpusers
install -m600 %{SOURCE4}  -D %{buildroot}%{_sysconfdir}/vsftpd/user_list
install -m 755 %{SOURCE5} -D %{buildroot}%{_initrddir}/vsftpd
install -m 744 %{SOURCE6} -D %{buildroot}%{_sysconfdir}/vsftpd/vsftpd_conf_migrate.sh
install -m644 %{SOURCE8} -D %{buildroot}/lib/systemd/system/vsftpd.service

mkdir -p %{buildroot}/%{_sysconfdir}/avahi/services/
bzcat %{SOURCE7} > %{buildroot}/%{_sysconfdir}/avahi/services/%{name}.service

touch %{buildroot}%{_sysconfdir}/vsftpd/banned-emails
touch %{buildroot}%{_sysconfdir}/vsftpd/chroot_list
mkdir -p %{buildroot}/var/ftp/pub

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20141 |21mr|vsqlite++-0.3.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Well designed C++ sqlite 3.x wrapper library
Name:		vsqlite++
Version:	0.3.13
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://vsqlite.virtuosic-bytes.com
Source0:	http://evilissimo.fedorapeople.org/releases/vsqlite--/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	libtool
BuildRequires:	boost-devel
BuildRequires:	sqlite3-devel

%description
VSQLite++ is a C++ wrapper for sqlite3 using the C++ standard library and
boost. VSQLite++ is designed to be easy to use and focuses on simplicity.

%files
%doc ChangeLog README COPYING examples/sqlite_wrapper.cpp html/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Development files for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains development files for %{name}.

%files -n %{libname}
%doc ChangeLog README COPYING
%{_libdir}/libvsqlitepp.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc ChangeLog README COPYING
%{_libdir}/libvsqlitepp.so
%{_includedir}/sqlite

#----------------------------------------------------------------------------

%prep
%setup -q
#./autogen.sh

%build
%configure \
	--disable-static
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
%make
doxygen Doxyfile

%install
# devel & base
install -p -m 755 -d %{buildroot}%{_libdir}
# devel only
install -p -m 755 -d %{buildroot}%{_includedir}/sqlite/ext
install -m 644 include/sqlite/*.hpp %{buildroot}%{_includedir}/sqlite
install -m 644 include/sqlite/ext/*.hpp %{buildroot}%{_includedir}/sqlite/ext
# docs
install -p -m 755 -d %{buildroot}%{_docdir}

# build for all
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20142 |21mr|vte-0.28.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.0
%define major 9
# TODO: Split typelib package
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A terminal emulator widget
Name:		vte
Version:	0.28.1
Release:	18
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://www.gnome.org/
Source0:	ftp://ftp.gnome.org/pub/GNOME/sources/%{name}/%{name}-%{version}.tar.xz
Patch0:		vte-0.25.90-alt_meta.patch
Patch1:		vte-0.28.0-link.patch
Patch2:		03_CVE-2012-2738.patch
Patch3:		04_CVE-2012-2738.patch
BuildRequires:	intltool
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)

%description
VTE is a terminal emulator widget for use with GTK+ 2.0.

%files -f %{name}-%{api}.lang
%doc COPYING HACKING NEWS README
%{_bindir}/*
%dir %{_libdir}/%{name}
%attr(2711,root,utmp) %{_libdir}/%{name}/gnome-pty-helper
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A terminal emulator widget
Group:		System/Libraries
Requires:	%{name} >= %{version}
Conflicts:	gir-repository < 0.6.6

%description -n %{libname}
VTE is a terminal emulator widget for use with GTK+ 2.0.

%files -n %{libname}
%{_libdir}/libvte.so.%{major}*
%{_libdir}/girepository-1.0/Vte-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for developing applications which use VTE
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{mklibname -d vte 9} < 0.28.1-5

%description -n %{devname}
VTE is a terminal emulator widget for use with GTK+ 2.0.

This package contains the files needed for building applications using VTE.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/*
%{_includedir}/*
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_datadir}/gir-1.0/Vte-0.0.gir

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--enable-shared \
	--disable-static \
	--libexecdir=%{_libdir}/%{name} \
	--disable-python \
	--disable-gtk-doc \
	--enable-introspection \
	--with-gtk=2.0

%make LIBS='-lm -lncurses -lutil -lgmodule-2.0'

%install
%makeinstall_std

%find_lang %{name}-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20143 |21mr|vte291-0.68.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 2.91
%define major 0
%define libname %mklibname vte 2.91 %{major}
%define girname %mklibname vte-gir %{api}
%define devname %mklibname %{name} -d

Summary:	A terminal emulator widget
Name:		vte291
Version:	0.68.0
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/vte
Source0:	https://download.gnome.org/sources/vte/%{url_ver}/vte-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
VTE is a terminal emulator widget for use with GTK+ 3.0.

%files -f vte-%{api}.lang
%doc COPYING.* README.md
%{_bindir}/vte-%{api}
%{_datadir}/glade/catalogs/vte-*.xml
%{_datadir}/glade/pixmaps/hicolor/*/actions/widget-vte-terminal.png
%{_libexecdir}/vte-urlencode-cwd
%{_sysconfdir}/profile.d/vte.sh
%{_sysconfdir}/profile.d/vte.csh
%{_userunitdir}/vte-spawn-.scope.d

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A terminal emulator widget
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
VTE is a terminal emulator widget for use with GTK+ 3.0.

%files -n %{libname}
%{_libdir}/libvte-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for vte with GTK+ 3.0
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for vte with GTK+ 3.0.

%files -n %{girname}
%{_libdir}/girepository-1.0/Vte-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for developing applications which use VTE
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
VTE is a terminal emulator widget for use with GTK+ 3.0.  This
package contains the files needed for building applications using VTE.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/vte-gtk3-%{api}
%{_includedir}/vte-%{api}
%{_libdir}/libvte-%{api}.so
%{_libdir}/pkgconfig/vte-%{api}.pc
%{_datadir}/gir-1.0/Vte-%{api}.gir
%{_datadir}/vala/vapi/vte-%{api}.vapi
%{_datadir}/vala/vapi/vte-2.91.deps

#----------------------------------------------------------------------------

%prep
%setup -q -n vte-%{version}

%build
%meson -Ddocs=true
%meson_build

%install
%meson_install

%find_lang vte-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20144 |21mr|vte291-0.68.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%define api 2.91
%define major 0
%define libname %mklibname vte 2.91 %{major}
%define girname %mklibname vte-gir %{api}
%define devname %mklibname %{name} -d

Summary:	A terminal emulator widget
Name:		vte291
Version:	0.68.0
Release:	2
License:	LGPLv2+
Group:		System/Libraries
Url:		https://download.gnome.org/sources/vte
Source0:	https://download.gnome.org/sources/vte/%{url_ver}/vte-%{version}.tar.xz
BuildRequires:	cmake
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description
VTE is a terminal emulator widget for use with GTK+ 3.0.

%files -f vte-%{api}.lang
%doc COPYING.* README.md
%{_bindir}/vte-%{api}
%{_datadir}/glade/catalogs/vte-*.xml
%{_datadir}/glade/pixmaps/hicolor/*/actions/widget-vte-terminal.png
%{_libexecdir}/vte-urlencode-cwd
%{_sysconfdir}/profile.d/vte.sh
%{_sysconfdir}/profile.d/vte.csh
%{_userunitdir}/vte-spawn-.scope.d

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A terminal emulator widget
Group:		System/Libraries
Requires:	%{name}

%description -n %{libname}
VTE is a terminal emulator widget for use with GTK+ 3.0.

%files -n %{libname}
%{_libdir}/libvte-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for vte with GTK+ 3.0
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for vte with GTK+ 3.0.

%files -n %{girname}
%{_libdir}/girepository-1.0/Vte-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Files needed for developing applications which use VTE
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
VTE is a terminal emulator widget for use with GTK+ 3.0.  This
package contains the files needed for building applications using VTE.

%files -n %{devname}
%doc %{_datadir}/gtk-doc/html/vte-gtk3-%{api}
%{_includedir}/vte-%{api}
%{_libdir}/libvte-%{api}.so
%{_libdir}/pkgconfig/vte-%{api}.pc
%{_datadir}/gir-1.0/Vte-%{api}.gir
%{_datadir}/vala/vapi/vte-%{api}.vapi
%{_datadir}/vala/vapi/vte-2.91.deps

#----------------------------------------------------------------------------

%prep
%setup -q -n vte-%{version}

%build
%meson -Ddocs=true
%meson_build

%install
%meson_install

%find_lang vte-%{api}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20145 |21mr|vtk-9.0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with OSMesa
# Documentation are download and built by vtk-doc separated package
%bcond_with java

# Do not check .so files in the python_sitearch directory
%global __provides_exclude_from ^%{python_sitearch}/.*\\.so$

%define libname %mklibname %{name}
%define devname %mklibname %{name} -d

%define short_version   %(echo %{version} | cut -d. -f1,2)

%define vtkincdir       %{_includedir}/vtk
%define vtkdocdir       %{_docdir}/vtk

%define qt_designer_plugins_dir %{_qt5_pluginsdir}/designer

Summary:	Toolkit for 3D computer graphics, image processing, and visualization
Name:		vtk
Version:	9.0.1
Release:	5
License:	BSD
Group:		Graphics
Url:		http://www.vtk.org/
Source0:	http://www.vtk.org/files/release/%{short_version}/VTK-%{version}.tar.gz
Source1:	http://www.vtk.org/files/release/%{short_version}/VTKData-%{version}.tar.gz
# Patch required libharu version (Fedora 33+ contains the needed VTK patches)
Patch0: vtk-libharu.patch
Patch1: vtk-limits.patch
#Patch2: https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7430.patch
Patch2: vtk-includes.patch
# Duplicate define conflict with Xutil, see:
# https://gitlab.kitware.com/vtk/vtk/-/issues/18048
Patch3: vtk-AllValues.patch
# Temporary patch for building against freetype-2.10.4, which removed FT_CALLBACK_DEF,
# but was later re-added in https://git.savannah.gnu.org/cgit/freetype/freetype2.git/commit/?id=b0667d2d36fb134d48030b2a560eaaa37810d6ba
Patch4: vtk_freetype-2.10.4.patch
# Proj 5 support - backport https://gitlab.kitware.com/vtk/vtk/-/merge_requests/7731
Patch5: vtk-proj5.patch
# upstream patch
Patch11:	vtk-9.0.1-cmake.patch
Patch13:	VTK-9.0.0-no-underlinking.patch
# force path for install to right place
Patch14:	vtk-9.0.1-install-path.patch
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	cvs
BuildRequires:	doxygen
BuildRequires:	eigen3
BuildRequires:	gnuplot
BuildRequires:	graphviz
BuildRequires:	PEGTL-devel
BuildRequires:	python3-qt5
BuildRequires:	libharu-devel
BuildRequires:	boost-devel
BuildRequires:	gl2ps-devel
BuildRequires:	hdf5-devel
BuildRequires:	jpeg-devel
BuildRequires:	jsoncpp-devel
BuildRequires:	utf8cpp-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5WebKitWidgets)
BuildRequires:	pkgconfig(Qt5UiTools)
BuildRequires:	pkgconfig(blas)
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(json-c)
BuildRequires:	pkgconfig(lapack)
BuildRequires:	pkgconfig(libpng)
%ifnarch %{e2k}
BuildRequires:	pkgconfig(libR)
%endif
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(netcdf)
BuildRequires:	pkgconfig(netcdf-fortran)
BuildRequires:	pkgconfig(netcdf-cxx4)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(proj)
BuildRequires:	pkgconfig(pugixml)
BuildRequires:	pkgconfig(theora)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zlib)
%if %{with java}
BuildRequires:	java-rpmbuild
BuildRequires:	java-devel > 1.5
%endif

%description
The Visualization ToolKit (VTK) is an object oriented software system for 3D
computer graphics, image processing, and visualization. VTK includes a
textbook, a C++ class library, and several interpreted interface layers
including Java, and Python. VTK supports a wide variety of
visualization algorithms including scalar, vector, tensor, texture, and
volumetric methods. It also supports advanced modeling techniques like
implicit modeling, polygon reduction, mesh smoothing, cutting, contouring,
and Delaunay triangulation.  Moreover, dozens of imaging algorithms have been
integrated into the system. This allows mixing 2D imaging / 3D graphics
algorithms and data.

%if %{without java}
NOTE: The java wrapper is not included by default.  You may rebuild the srpm
      using "--with java" with JDK installed.
%endif

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Toolkit for 3D computer graphics, image processing, and visualization
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Obsoletes:	%{name} < %{EVRD}

%description -n %{libname}
The Visualization ToolKit (VTK) is an object oriented software system for 3D
computer graphics, image processing, and visualization. VTK includes a
textbook, a C++ class library, and several interpreted interface layers
including Java, and Python. VTK supports a wide variety of
visualization algorithms including scalar, vector, tensor, texture, and
volumetric methods. It also supports advanced modeling techniques like
implicit modeling, polygon reduction, mesh smoothing, cutting, contouring,
and Delaunay triangulation.  Moreover, dozens of imaging algorithms have been
integrated into the system. This allows mixing 2D imaging / 3D graphics
algorithms and data.

%if %{without java}
NOTE: The java wrapper is not included by default.  You may rebuild the srpm
      using "--with java" with JDK installed.
%endif

%files -n %{libname} -f build/main.list
%doc Copyright.txt vtkBanner.gif _docs/Wrapping
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf
%dir %{_libdir}/vtk

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	VTK header files for building C++ code
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	%{libname}-qt = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}
Conflicts:	%{libname}-qt < 5.0.3-4
Conflicts:	%{libname} < 5.6.1-2

%description -n %{devname}
This provides the VTK header files required to compile C++
programs that use VTK to do 3D visualisation.

%files -n %{devname}
%doc Utilities/Upgrading
%{_bindir}/vtkWrapHierarchy
%{_bindir}/vtkProbeOpenGLVersion
%{_includedir}/*
%{_libdir}/vtk/*.so
%{_libdir}/cmake/vtk/
%{_libdir}/vtk/hierarchy
%{_datadir}/licenses/VTK

#----------------------------------------------------------------------------

%package -n python-%{name}
Summary:	Python bindings for VTK
Group:		Development/Python
Requires:	%{libname} = %{version}
Provides:	%{name}-python = %{EVRD}
Obsoletes:	%{name}-python < %{EVRD}
Obsoletes:	python-%{name}-devel < %{EVRD}

%description -n python-%{name}
The Visualization ToolKit (VTK) is an object oriented software system for 3D
computer graphics, image processing, and visualization. VTK includes a
textbook, a C++ class library, and several interpreted interface layers
including Java, and Python. VTK supports a wide variety of
visualization algorithms including scalar, vector, tensor, texture, and
volumetric methods. It also supports advanced modeling techniques like
implicit modeling, polygon reduction, mesh smoothing, cutting, contouring,
and Delaunay triangulation.  Moreover, dozens of imaging algorithms have been
integrated into the system. This allows mixing 2D imaging / 3D graphics
algorithms and data.

This package contains python bindings for VTK.

%files -n python-%{name}
%{py3_platsitedir}/*
%{_libdir}/vtk/libvtkCommonPython.so.*
%{_libdir}/vtk/libvtkFiltersPython.so.*
%{_libdir}/vtk/libvtkPythonContext2D.so.*
%{_libdir}/vtk/libvtkPythonInterpreter.so.*
%{_libdir}/vtk/libvtkWrappingPythonCore.so.*
%{_bindir}/vtkpython
%{_bindir}/vtkWrapPython
%{_bindir}/vtkWrapPythonInit

#----------------------------------------------------------------------------

%package -n %{libname}-qt
Summary:	QT VTK widget
Group:		System/Libraries
Requires:	vtk

%description -n %{libname}-qt
The vtkQt classes combine VTK and Qt(TM) for X11.

%files -n %{libname}-qt
%{_libdir}/vtk/lib*Qt*.so.*

#----------------------------------------------------------------------------

%if %{with java}
%package -n java-%{name}
Summary:	Java bindings for VTK
Group:		Development/Java
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-java = %{EVRD}
Obsoletes:	%{name}-java < %{version}

%description -n java-%{name}
The Visualization ToolKit (VTK) is an object oriented software system for 3D
computer graphics, image processing, and visualization. VTK includes a
textbook, a C++ class library, and several interpreted interface layers
including Java, and Python. VTK supports a wide variety of
visualization algorithms including scalar, vector, tensor, texture, and
volumetric methods. It also supports advanced modeling techniques like
implicit modeling, polygon reduction, mesh smoothing, cutting, contouring,
and Delaunay triangulation.  Moreover, dozens of imaging algorithms have been
integrated into the system. This allows mixing 2D imaging / 3D graphics
algorithms and data.

This package contains Java bindings for VTK.

%files -n java-%{name}
%{_bindir}/vtkParseJava
%{_bindir}/vtkWrapJava
%{_bindir}/VTKJavaExecutable
%{_libdir}/libvtk*Java.so*
%{_libdir}/java
%endif

#----------------------------------------------------------------------------

%package data
Summary:	Data and Baseline images for VTK regression testing
Group:		Development/Other

%description data
Data and Baseline images for VTK regression testing and other VTK examples.

The VTKData/Data directory are data files of various types. This includes
polygonal data, images, volumes, structured grids, rectilinear grids,
and multi-variate data.

The VTKData/Baseline are the testing images. These are used in testing to
compare a valid image against a generated image. If a difference between
the two images is found, then the test is considered to have failed.

%files data
%{_datadir}/vtk

#----------------------------------------------------------------------------

%package examples
Summary:	C++, Python example programs/scripts for VTK
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-data = %{EVRD}

%description examples
This package contains all the examples from the VTK source.
To compile the C++ examples you will need to install the vtk-devel
package as well. The Python examples can be run with the
corresponding packages (vtk-python).

%files examples
%dir %{vtkdocdir}/examples
%{vtkdocdir}/examples/*

#----------------------------------------------------------------------------

%package test-suite
Summary:	Tests programs for VTK
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-data = %{EVRD}

%description test-suite
This package contains all testing programs from the VTK
source. The source code of these programs can be found in the
vtk-examples package.

%files test-suite
%{_bindir}/*
%exclude %{_bindir}/%{name}
%exclude %{_bindir}/vtkpython
%exclude %{_bindir}/vtkWrapPython
%exclude %{_bindir}/vtkWrapPythonInit
%exclude %{_bindir}/vtkWrapHierarchy*

#----------------------------------------------------------------------------

%prep
%setup -q -n VTK-%{version}
%apply_patches

# Replace relative path ../../../VTKData with %{_datadir}/vtkdata-%{version}
# otherwise it will break on symlinks.
grep -rl '\.\./\.\./\.\./\.\./VTKData' . | xargs \
  perl -pi -e's,\.\./\.\./\.\./\.\./VTKData,%{_datadir}/vtkdata-%{version},g'

# (tpg) remove 3rd party software
for x in vtk{doubleconversion,eigen,expat,freetype,gl2ps,glew,hdf5,jpeg,jsoncpp,kissfft,libharu,libproj,libxml2,lz4,lzma,mpi4py,netcdf,ogg,pegtl,png,pugixml,sqlite,theora,tiff,utf8,zfp,zlib}
do
  rm -r ThirdParty/*/${x}
done

# Remove unused KWSys items
find Utilities/KWSys/vtksys/ -name \*.[ch]\* | grep -vE '^Utilities/KWSys/vtksys/([a-z].*|Configure|SharedForward|String\.hxx|Base64|CommandLineArguments|Directory|DynamicLoader|Encoding|FStream|FundamentalType|Glob|MD5|Process|RegularExpression|System|SystemInformation|SystemTools)(C|CXX|UNIX)?\.' | xargs rm

%build
export CFLAGS="%{optflags} -D_UNICODE"
export CXXFLAGS="%{optflags} -D_UNICODE"
%if %{with java}
export JAVA_HOME=/usr/lib/jvm/java
%endif

# Remove old cmake files
rm -f CMake/FindBoost*

# Due to cmake prefix point already for _prefix
# all path set in vtk-9.0.1-install-path.patch

%cmake \
    -DCMAKE_INSTALL_LIBDIR=%{_lib} \
    -DVTK_PYTHON_VERSION=3 \
    -DVTK_VERSIONED_INSTALL:BOOL=OFF \
    -DVTK_GROUP_ENABLE_Qt=YES \
    -DVTK_GROUP_ENABLE_Web=YES \
    -DVTK_GROUP_ENABLE_Views=YES \
    -DVTK_GROUP_ENABLE_Imaging=YES \
    -DVTK_CUSTOM_LIBRARY_SUFFIX="" \
%if %{with OSMesa}
    -DVTK_OPENGL_HAS_OSMESA:BOOL=ON \
%endif
    -DVTK_OPENGL_USE_GLES:BOOL=%{?with_gles:ON}%{!?with_gles:OFF} \
    -DVTK_WRAP_PYTHON:BOOL=ON \
%if %{with java}
    -DJAVA_INCLUDE_PATH:PATH=$JAVA_HOME/include \
    -DJAVA_INCLUDE_PATH2:PATH=$JAVA_HOME/include/linux \
    -DJAVA_AWT_INCLUDE_PATH:PATH=$JAVA_HOME/include \
    -DVTK_WRAP_JAVA:BOOL=ON \
%else
    -DVTK_WRAP_JAVA:BOOL=OFF \
%endif
    -DBUILD_SHARED_LIBS:BOOL=ON \
    -DVTK_BUILD_TESTING:BOOL=OFF \
    -DVTK_HAVE_GETSOCKNAME_WITH_SOCKLEN_T:INTERNAL=1 \
    -DVTK_USE_OGGTHEORA_ENCODER=ON \
    -DVTK_USE_EXTERNAL=ON \
    -DVTK_BUILD_EXAMPLES=ON \
    -DINSTALL_PKG_CONFIG_MODULE:BOOL=ON \
    -G Ninja

export LD_LIBRARY_PATH=$(pwd)/%{_lib}

#force link with python
sed 's/-lpthread/-lpthread -lpython%{py3_ver}/g' -i build.ninja
%ninja_build

# Remove executable bits from sources (some of which are generated)
find . -name \*.c -or -name \*.cxx -or -name \*.h -or -name \*.hxx -or \
       -name \*.gif | xargs chmod -x

%install
%ninja_install -C build

#mkdir -p %{buildroot}%{vtktcldir}
install -d -m 755 %{buildroot}/%{_datadir}/vtk
pushd %{buildroot}/%{_datadir}/vtk
tar zxf %{SOURCE1}
popd

# ld config
mkdir -p %{buildroot}%{_sysconfdir}/ld.so.conf.d
echo %{_libdir}/vtk > %{buildroot}%{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf
echo %{_libdir}/R/lib >> %{buildroot}%{_sysconfdir}/ld.so.conf.d/vtk-%{_arch}.conf

pushd build

# Gather list of non-python libraries
ls %{buildroot}%{_libdir}/vtk/*.so.* \
  | grep -Ev '(Java|Qt|Python)' | sed -e's,^%{buildroot},,' > main.list

# List of executable test binaries
find bin \( -name \*Tests -o -name Test\* -o -name VTKBenchMark \) \
         -printf '%f\n' > examples.list

# Install examples too
for filelist in examples.list; do
  for file in `cat $filelist`; do
    install -p bin/$file %{buildroot}%{_bindir}
  done
done

# Fix up filelist paths
for filelist in examples.list; do
  perl -pi -e's,^,%{_bindir}/,' $filelist
done

# Remove any remnants of rpaths on files we install
for file in `cat examples.list`; do
  chrpath -d %{buildroot}$file
done

popd

#install test-suite and examples
mkdir -p %{buildroot}%{vtkdocdir}/examples/Testing
cp -a Testing/* %{buildroot}%{vtkdocdir}/examples/Testing
cp -a Examples %{buildroot}%{vtkdocdir}/examples

# get rid of unwanted files
pushd %{buildroot}%{vtkdocdir}/examples
  rm -f `find . -type d -name CVS`
  find . -name "*.o" -o -name "CMake*" -o -name "cmake.*"       \
        -o -name .NoDartCoverage -o -name .NoDartCoverage       \
        -o -name Makefile                                       \
        -exec rm {} \;
popd
# Remove any possible verdict docs
rm -rf %{buildroot}/%{_libdir}/vtk/doc
rm -rf %{buildroot}/%{vtkdocdir}/verdict

# install test suite binaries and add each prg path in test-suite-files
rm -f test-suite-files
mkdir -p %{buildroot}%{_bindir}
pushd build/bin
    for f in `find . -type f | grep -v '.so$' | grep -v vtk`; do
        install -m 0755 $f %{buildroot}%{_bindir}
    done
popd
rm -f %{buildroot}%{_bindir}/*.so.*

# Setup Wrapping docs tree
mkdir -p _docs
cp -pr --parents Wrapping/*/README* _docs/
rm -f %{libdir}/vtk/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20146 |21mr|vulkan-1.3.283.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global Werror_cflags %nil
%define	major 1
%define	libname %mklibname vulkan %{major}
%define	devname %mklibname vulkan -d

Summary:	Installable Client Driver (ICD) Loader
Name:		vulkan
Version:	1.3.283.0
Release:	1
License:	ASL 2.0
Group:		Graphics
Url:		https://github.com/KhronosGroup/Vulkan-Loader
Source0:	https://github.com/KhronosGroup/Vulkan-Loader/archive/vulkan-sdk-%{version}.tar.gz?/Vulkan-Loader-vulkan-sdk-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	python3
BuildRequires:	spirv-headers
BuildRequires:	vulkan-headers
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xrandr)
Requires:	%{libname} = %{EVRD}

%description
Vulkan is a new generation graphics and compute API that provides
high-efficiency, cross-platform access to modern GPUs used in a wide variety of
devices from PCs and consoles to mobile phones and embedded platforms.
This package contains the common files and utilies for Vulkan.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Vulkan ICD Loader Library
Group:		System/Libraries
Provides:	vulkan = %{EVRD}
Recommends:	libvulkan%{major}

%description -n %{libname}
This package contains the installable client driver (ICD) loader library
for Vulkan.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	vulkan-headers
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains the development files for Vulkan applications.

%files -n %{devname}
%doc README.md CONTRIBUTING.md
%license LICENSE.txt
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/icd.d
%{_libdir}/cmake/VulkanLoader/VulkanLoaderConfig*.cmake
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Vulkan-Loader-vulkan-sdk-%{version}
%ifarch %{e2k}
sed -i '/#pragma GCC optimize/d' loader/dev_ext_trampoline.c
sed -i '/#pragma GCC optimize/d' loader/unknown_ext_chain.c
sed -i '/#pragma GCC optimize/d' loader/phys_dev_ext.c
%endif

%build
%cmake
%make

%install
%make_install -C build

install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}/icd.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20147 |21mr|vulkan-headers-1.3.283.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Vulkan header files and API registry
Name:		vulkan-headers
Version:	1.3.283.0
Release:	1
License:	ASL 2.0
Group:		Graphics
Url:		https://github.com/KhronosGroup/Vulkan-Headers
Source0:	https://github.com/KhronosGroup/Vulkan-Headers/archive/vulkan-sdk-%{version}.tar.gz?/Vulkan-Headers-vulkan-sdk-%{version}.tar.gz
BuildRequires:	cmake
Conflicts:	%{mklibname vulkan -d} < 1.3.239.0
Obsoletes:	%{mklibname vulkan -d} < 1.3.239.0
BuildArch:	noarch

%description
Vulkan header files and API registry.

%files
%doc README.md CONTRIBUTING.md
%license LICENSE.md
%{_datadir}/cmake/VulkanHeaders
%{_datadir}/vulkan/registry
%{_includedir}/vk_video
%{_includedir}/vulkan

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Vulkan-Headers-vulkan-sdk-%{version}

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20148 |21mr|vulkan-tools-1.3.283.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Khronos official Vulkan Tools and Utilities
Name:		vulkan-tools
Version:	1.3.283.0
Release:	1
License:	ASL 2.0
Group:		Graphics
Url:		https://github.com/KhronosGroup/Vulkan-Tools
Source0:	https://github.com/KhronosGroup/Vulkan-Tools/archive/vulkan-sdk-%{version}.tar.gz?/Vulkan-Tools-vulkan-sdk-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	glslang
BuildRequires:	ninja
BuildRequires:	vulkan-volk
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xrandr)
Provides:	vulkan%{_isa} = %{EVRD}
Conflicts:	vulkan < 1.3.239.0
Obsoletes:	vulkan < 1.3.239.0

%description
Khronos official Vulkan Tools and Utilities.

%files
%doc README.md CONTRIBUTING.md
%license LICENSE.txt
%ifarch x86_64
%{_bindir}/vkcube*
%endif
%{_bindir}/vulkaninfo

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n Vulkan-Tools-vulkan-sdk-%{version}

%build
%cmake	\
	-DCMAKE_BUILD_TYPE=Release		\
%ifarch %{x86_64}
	-DBUILD_CUBE=ON				\
%else
	-DBUILD_CUBE=OFF			\
%endif
	-DBUILD_ICD=OFF				\
	-DGLSLANG_INSTALL_DIR=%{_prefix}	\
	-GNinja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20149 |21mr|vulkan-volk-1.3.283.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

# There is already a project with this name in the repository
%define oname volk

Summary:	Meta loader for Vulkan API
Name:		vulkan-volk
Version:	1.3.283.0
Release:	1
License:	MIT
Group:		Development/C
Url:		https://github.com/zeux/volk
Source0:	https://github.com/zeux/volk/archive/vulkan-sdk-%{version}.tar.gz?/%{oname}-vulkan-sdk-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	vulkan-headers
Requires:	vulkan-headers

%description
Meta loader for Vulkan API.

%files
%doc README.md
%license LICENSE.md
%{_includedir}/%{oname}.c
%{_includedir}/%{oname}.h
%{_libdir}/cmake/%{oname}
%{_libdir}/lib%{oname}.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-vulkan-sdk-%{version}

%build
%cmake -DVOLK_INSTALL:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20150 |21mr|vvave-2.2.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Vvave Media Player
Name:		vvave
Version:	2.2.0
Release:	1
Group:		Graphical desktop/KDE
License:	GPLv2
Url:		https://vvave.kde.org/
Source0:	https://download.kde.org/stable/maui/%{name}/%{version}/%{name}-%{version}.tar.xz
Patch0:		vvave-cmake_locale.patch
Patch1:		vvave-russian_locale.patch
Patch2:		vvave-i18n_locale.patch
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Multimedia)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickControls2)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Svg)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	mauikit-devel
BuildRequires:  mauikit-accounts-devel
BuildRequires:	mauikit-filebrowsing-devel

Requires: gstreamer1.0-plugins-base
Requires: gstreamer1.0-plugins-good
Requires: gstreamer1.0-plugins-bad
Requires: gstreamer1.0-plugins-ugly
Requires: gstreamer1.0-libav

%description
Vvave will handle your whole music collection
by retreaving semantic information from the web.

Just relax, enjoy and discover your new music 

%files  -f %{name}.lang
%doc README.md
%{_kde5_bindir}/%{name}
%{_kde5_iconsdir}/hicolor/*/apps/*.svg
%{_kde5_applicationsdir}/org.kde.vvave.desktop
%{_appdatadir}/org.kde.vvave.appdata.xml

#-------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20151 |21mr|waf-2.0.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}
%define	python_compile python -c "import compileall; compileall.compile_dir('.')" 
%define	python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')" 

%define	python3_compile python3 -c "import compileall; compileall.compile_dir('.')" 
%define	python3_compile_opt python3 -O -c "import compileall; compileall.compile_dir('.')"

%define	build_py3 1
%define	build_py2 0
%define	with_docs 0
%define	_python_bytecompile_build 0

Summary:	A framework for configuring, compiling and installing applications
Name:		waf
Version:	2.0.22
Release:	1
License:	BSD
Group:		Development/Tools
Url:		https://waf.io/
Source0:	https://waf.io/waf-%{version}.tar.bz2
Source1:	%{name}.macros
Source2:	%{name}-python3.macros
Source3:	repack.sh
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-1.6.3-libdir.patch
Patch1:		%{name}-1.6.9-logo.patch
%if %{build_py2}
BuildRequires:	python2-devel
BuildRequires:	/usr/bin/python2
%endif
%if %{build_py3}
BuildRequires:	python3-devel
BuildRequires:	/usr/bin/python3
%endif
%if %{with_docs}
BuildRequires:	graphviz
BuildRequires:	imagemagick
BuildRequires:	python3-sphinx
Recommends:	%{name}-doc
%endif
BuildConflicts:	waf
%if %{build_py3}
Requires:	%{__python3}
Requires:	%{name}-python3 = %{EVRD}
BuildConflicts:	waf-python3
%endif
%if %{build_py2}
Requires:	%{__python2}
Requires:	%{name}-python2 = %{EVRD}
%endif
BuildArch:	noarch

%description
Waf is a Python-based framework for configuring, compiling and installing
applications. It derives from the concepts of other build tools such as 
Scons, Autotools, CMake, and Ant.

%if %{build_py2}
%package -n %{name}-python2
Summary:	Python2 support for %{name}
Requires:	/usr/bin/python2

%description -n %{name}-python2
Waf is a Python-based framework for configuring, compiling and installing
applications. It is a replacement for other tools such as Autotools, Scons,
CMake or Ant.
This package contains the Python 2 version of %{name}.

%files -n %{name}-python2
%doc README.md
%{_rpmmacrodir}/*%{name}*
%{_bindir}/%{name}2
%{_bindir}/%{name}
%{_bindir}/%{name}-%{python2_version}
%{_datadir}/%{name}
%endif

%files 

#-----------------------------------------------------------------------------

%if %{with_docs}
%package -n %{name}-doc
Summary:	Documentation for %{name}

%description -n %{name}-doc
Waf is a Python-based framework for configuring, compiling and installing
applications. It is a replacement for other tools such as Autotools, Scons,
CMake or Ant.
This package contains the HTML documentation for %{name}.

%files -n %{name}-doc
%doc docs/sphinx/build/html
%doc README.md TODO ChangeLog demos
%endif

#-----------------------------------------------------------------------------

%if %{build_py3}
%package -n %{name}-python3
Summary:	Python3 support for %{name}
Requires:	/usr/bin/python3

%description -n %{name}-python3
Waf is a Python-based framework for configuring, compiling and installing
applications. It is a replacement for other tools such as Autotools, Scons,
CMake or Ant.
This package contains the Python 3 version of %{name}.

%files -n %{name}-python3
%doc README.md
%{_rpmmacrodir}/*%{name}-python3*
%{_bindir}/waf-%{python3_version}
%{_bindir}/waf
%{_datadir}/waf3
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .libdir
%patch1 -p1 -b .logo

# remove BOM, causes trouble later
sed -i -e '1s/^\xEF\xBB\xBF//' waflib/extras/dpapi.py

# add missing quotes, see rhbz#914566 and
# https://code.google.com/p/waf/issues/detail?id=1263
#sed -i -e 's@fontname=\(Vera.*sans\),@fontname="\1",@g' \
#  docs/sphinx/conf.py \
#  docs/sphinx/coremodules.rst \
#  docs/sphinx/featuremap.rst


%build
extras=
for f in waflib/extras/*.py ; do
  f=$(basename "$f" .py);
  if [ "$f" != "__init__" ]; then
    extras="${extras:+$extras,}$f" ;
  fi
done
%if %{build_py3}
%{__python3} ./waf-light --make-waf --strip --tools="$extras"
%endif
%if %{build_py2}
%{__python2} ./waf-light --make-waf --strip --tools="$extras"
%endif

%if %{with_docs}
# build html docs
pushd docs/sphinx
../../waf configure build
popd
%endif


%install
# Use waf so it unpacks itself...
mkdir _temp

pushd _temp
%if %{build_py2}
	cp -av ../waf .
	python2 ./waf >/dev/null 2>&1
	pushd .waf2-%{version}-*
		find . -name '*.py' -printf '%%P\0' | xargs -0 -I{} install -m 0644 -p -D {} %{buildroot}%{_datadir}/waf2/{}
	popd
%endif

%if %{build_py3}
	cp -av ../waf .
	python3 ./waf >/dev/null 2>&1
	pushd .waf3-%{version}-*
		find . -name '*.py' -printf '%%P\0' | xargs -0 -I{} install -m 0644 -p -D {} %{buildroot}%{_datadir}/waf3/{}
	popd
%endif

popd

# ... and install the script
%if %{build_py2}
install -m 0755 -p -D waf-light %{buildroot}%{_bindir}/waf-%{python2_version}
ln -s waf-%{python2_version} %{buildroot}%{_bindir}/waf
%endif
%if %{build_py3}
install -m 0755 -p -D waf-light %{buildroot}%{_bindir}/waf-%{python3_version}
ln -s waf-%{python3_version} %{buildroot}%{_bindir}/waf
%endif


# Remove shebangs from and fix EOL for all scripts in wafadmin
find %{buildroot}%{_datadir}/ -name '*.py' \
     -exec sed -i -e '1{/^#!/d}' -e 's|\r$||g' {} \;

%if %{build_py2}
# Fix waf script shebang line
sed -i "1c#! %{__python}" %{buildroot}%{_bindir}/waf-%{python2_version}
%endif
%if %{build_py3}
sed -i "1c#! %{__python3}" %{buildroot}%{_bindir}/waf-%{python3_version}
%endif


# Remove exec-bits from everything going to doc
find demos utils -type f -exec chmod 0644 {} \;

# Remove hidden file
rm -f docs/sphinx/build/html/.buildinfo

# Install waf rpm macro helpers
%if %{build_py2}
%install_macro %{name}-python2 %{SOURCE1}
%endif
%if %{build_py3}
%install_macro %{name}-python3 %{SOURCE2}
%endif

%if %{build_py2}
# Do byte compilation
pushd %{buildroot}%{_datadir}/waf2
	%python2_compile_opt 
	%python2_compile 
popd
%endif
%if %{build_py3}
pushd %{buildroot}%{_datadir}/waf3
	%python3_compile_opt
	%python3_compile
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20152 |21mr|waf-2.0.23-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}
%define	python_compile python -c "import compileall; compileall.compile_dir('.')" 
%define	python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')" 

%define	python3_compile python3 -c "import compileall; compileall.compile_dir('.')" 
%define	python3_compile_opt python3 -O -c "import compileall; compileall.compile_dir('.')"

%define	build_py3 1
%define	build_py2 0
%define	with_docs 0
%define	_python_bytecompile_build 0

Summary:	A framework for configuring, compiling and installing applications
Name:		waf
Version:	2.0.23
Release:	1
License:	BSD
Group:		Development/Tools
Url:		https://waf.io/
Source0:	https://waf.io/waf-%{version}.tar.bz2
Source1:	%{name}.macros
Source2:	%{name}-python3.macros
Source3:	repack.sh
Source100:	%{name}.rpmlintrc
Patch0:		%{name}-1.6.3-libdir.patch
Patch1:		%{name}-1.6.9-logo.patch
%if %{build_py2}
BuildRequires:	python2-devel
BuildRequires:	/usr/bin/python2
%endif
%if %{build_py3}
BuildRequires:	python3-devel
BuildRequires:	/usr/bin/python3
%endif
%if %{with_docs}
BuildRequires:	graphviz
BuildRequires:	imagemagick
BuildRequires:	python3-sphinx
Recommends:	%{name}-doc
%endif
BuildConflicts:	waf
%if %{build_py3}
Requires:	%{__python3}
Requires:	%{name}-python3 = %{EVRD}
BuildConflicts:	waf-python3
%endif
%if %{build_py2}
Requires:	%{__python2}
Requires:	%{name}-python2 = %{EVRD}
%endif
BuildArch:	noarch

%description
Waf is a Python-based framework for configuring, compiling and installing
applications. It derives from the concepts of other build tools such as 
Scons, Autotools, CMake, and Ant.

%if %{build_py2}
%package -n %{name}-python2
Summary:	Python2 support for %{name}
Requires:	/usr/bin/python2

%description -n %{name}-python2
Waf is a Python-based framework for configuring, compiling and installing
applications. It is a replacement for other tools such as Autotools, Scons,
CMake or Ant.
This package contains the Python 2 version of %{name}.

%files -n %{name}-python2
%doc README.md
%{_rpmmacrodir}/*%{name}*
%{_bindir}/%{name}2
%{_bindir}/%{name}
%{_bindir}/%{name}-%{python2_version}
%{_datadir}/%{name}
%endif

%files 

#-----------------------------------------------------------------------------

%if %{with_docs}
%package -n %{name}-doc
Summary:	Documentation for %{name}

%description -n %{name}-doc
Waf is a Python-based framework for configuring, compiling and installing
applications. It is a replacement for other tools such as Autotools, Scons,
CMake or Ant.
This package contains the HTML documentation for %{name}.

%files -n %{name}-doc
%doc docs/sphinx/build/html
%doc README.md TODO ChangeLog demos
%endif

#-----------------------------------------------------------------------------

%if %{build_py3}
%package -n %{name}-python3
Summary:	Python3 support for %{name}
Requires:	/usr/bin/python3

%description -n %{name}-python3
Waf is a Python-based framework for configuring, compiling and installing
applications. It is a replacement for other tools such as Autotools, Scons,
CMake or Ant.
This package contains the Python 3 version of %{name}.

%files -n %{name}-python3
%doc README.md
%{_rpmmacrodir}/*%{name}-python3*
%{_bindir}/waf-%{python3_version}
%{_bindir}/waf
%{_datadir}/waf3
%endif

#-----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0 -b .libdir
%patch1 -p1 -b .logo

# remove BOM, causes trouble later
sed -i -e '1s/^\xEF\xBB\xBF//' waflib/extras/dpapi.py

# add missing quotes, see rhbz#914566 and
# https://code.google.com/p/waf/issues/detail?id=1263
#sed -i -e 's@fontname=\(Vera.*sans\),@fontname="\1",@g' \
#  docs/sphinx/conf.py \
#  docs/sphinx/coremodules.rst \
#  docs/sphinx/featuremap.rst


%build
extras=
for f in waflib/extras/*.py ; do
  f=$(basename "$f" .py);
  if [ "$f" != "__init__" ]; then
    extras="${extras:+$extras,}$f" ;
  fi
done
%if %{build_py3}
%{__python3} ./waf-light --make-waf --strip --tools="$extras"
%endif
%if %{build_py2}
%{__python2} ./waf-light --make-waf --strip --tools="$extras"
%endif

%if %{with_docs}
# build html docs
pushd docs/sphinx
../../waf configure build
popd
%endif


%install
# Use waf so it unpacks itself...
mkdir _temp

pushd _temp
%if %{build_py2}
	cp -av ../waf .
	python2 ./waf >/dev/null 2>&1
	pushd .waf2-%{version}-*
		find . -name '*.py' -printf '%%P\0' | xargs -0 -I{} install -m 0644 -p -D {} %{buildroot}%{_datadir}/waf2/{}
	popd
%endif

%if %{build_py3}
	cp -av ../waf .
	python3 ./waf >/dev/null 2>&1
	pushd .waf3-%{version}-*
		find . -name '*.py' -printf '%%P\0' | xargs -0 -I{} install -m 0644 -p -D {} %{buildroot}%{_datadir}/waf3/{}
	popd
%endif

popd

# ... and install the script
%if %{build_py2}
install -m 0755 -p -D waf-light %{buildroot}%{_bindir}/waf-%{python2_version}
ln -s waf-%{python2_version} %{buildroot}%{_bindir}/waf
%endif
%if %{build_py3}
install -m 0755 -p -D waf-light %{buildroot}%{_bindir}/waf-%{python3_version}
ln -s waf-%{python3_version} %{buildroot}%{_bindir}/waf
%endif


# Remove shebangs from and fix EOL for all scripts in wafadmin
find %{buildroot}%{_datadir}/ -name '*.py' \
     -exec sed -i -e '1{/^#!/d}' -e 's|\r$||g' {} \;

%if %{build_py2}
# Fix waf script shebang line
sed -i "1c#! %{__python}" %{buildroot}%{_bindir}/waf-%{python2_version}
%endif
%if %{build_py3}
sed -i "1c#! %{__python3}" %{buildroot}%{_bindir}/waf-%{python3_version}
%endif


# Remove exec-bits from everything going to doc
find demos utils -type f -exec chmod 0644 {} \;

# Remove hidden file
rm -f docs/sphinx/build/html/.buildinfo

# Install waf rpm macro helpers
%if %{build_py2}
%install_macro %{name}-python2 %{SOURCE1}
%endif
%if %{build_py3}
%install_macro %{name}-python3 %{SOURCE2}
%endif

%if %{build_py2}
# Do byte compilation
pushd %{buildroot}%{_datadir}/waf2
	%python2_compile_opt 
	%python2_compile 
popd
%endif
%if %{build_py3}
pushd %{buildroot}%{_datadir}/waf3
	%python3_compile_opt
	%python3_compile
popd
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20153 |21mr|wavpack-5.3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Lossless Audio compressor
Name:		wavpack
Version:	5.3.0
Release:	3
License:	BSD
Group:		Sound
Url:		http://www.wavpack.com/
Source0:	http://www.wavpack.com/%{name}-%{version}.tar.bz2
Patch0:		CVE-2020-35738-1.patch
Patch1:		CVE-2020-35738-2.patch
BuildRequires:	pkgconfig(ncurses)

%description
WavPack is a completely open audio compression format providing
lossless, high-quality lossy, and a unique hybrid compression
mode. Although the technology is loosely based on previous versions of
WavPack, the new version 4 format has been designed from the ground up
to offer unparalleled performance and functionality.

In the default lossless mode WavPack acts just like a WinZip
compressor for audio files. However, unlike MP3 or WMA encoding which
can affect the sound quality, not a single bit of the original
information is lost, so there's no chance of degradation. This makes
lossless mode ideal for archiving audio material or any other
situation where quality is paramount. The compression ratio depends on
the source material, but generally is between 30% and 70%.

The hybrid mode provides all the advantages of lossless compression
with an additional bonus. Instead of creating a single file, this mode
creates both a relatively small, high-quality lossy file that can be
used all by itself, and a "correction" file that (when combined with
the lossy file) provides full lossless restoration. For some users
this means never having to choose between lossless and lossy
compression!

%files
%doc ChangeLog
%{_bindir}/wavpack
%{_bindir}/wvunpack
%{_bindir}/wvgain
%{_bindir}/wvtag
%{_mandir}/man1/*1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Lossless Audio compression shared library
Group:		System/Libraries

%description -n %{libname}
WavPack is a completely open audio compression format providing
lossless, high-quality lossy, and a unique hybrid compression
mode. Although the technology is loosely based on previous versions of
WavPack, the new version 4 format has been designed from the ground up
to offer unparalleled performance and functionality.

In the default lossless mode WavPack acts just like a WinZip
compressor for audio files. However, unlike MP3 or WMA encoding which
can affect the sound quality, not a single bit of the original
information is lost, so there's no chance of degradation. This makes
lossless mode ideal for archiving audio material or any other
situation where quality is paramount. The compression ratio depends on
the source material, but generally is between 30% and 70%.

The hybrid mode provides all the advantages of lossless compression
with an additional bonus. Instead of creating a single file, this mode
creates both a relatively small, high-quality lossy file that can be
used all by itself, and a "correction" file that (when combined with
the lossy file) provides full lossless restoration. For some users
this means never having to choose between lossless and lossy
compression!

%files -n %{libname}
%doc COPYING
%{_libdir}/libwavpack.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Lossless Audio compression library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
WavPack is a completely open audio compression format providing
lossless, high-quality lossy, and a unique hybrid compression
mode. Although the technology is loosely based on previous versions of
WavPack, the new version 4 format has been designed from the ground up
to offer unparalleled performance and functionality.

In the default lossless mode WavPack acts just like a WinZip
compressor for audio files. However, unlike MP3 or WMA encoding which
can affect the sound quality, not a single bit of the original
information is lost, so there's no chance of degradation. This makes
lossless mode ideal for archiving audio material or any other
situation where quality is paramount. The compression ratio depends on
the source material, but generally is between 30% and 70%.

The hybrid mode provides all the advantages of lossless compression
with an additional bonus. Instead of creating a single file, this mode
creates both a relatively small, high-quality lossy file that can be
used all by itself, and a "correction" file that (when combined with
the lossy file) provides full lossless restoration. For some users
this means never having to choose between lossless and lossy
compression!

%files -n %{devname}
%doc doc/*.pdf
%{_libdir}/libwavpack.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%configure \
	--disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20154 |21mr|wayland-1.22.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wayland Compositor Infrastructure
Name:		wayland
Version:	1.22.0
Release:	2
Epoch:		1
License:	MIT
Group:		System/Libraries
Url:		http://wayland.freedesktop.org/
Source0:	http://wayland.freedesktop.org/releases/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(libffi)
BuildRequires:	pkgconfig(libxml-2.0)
# for man pages
BuildRequires:	docbook-style-xsl
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	xmlto
# for protocol doc
BuildRequires:	xsltproc

%description
Wayland is a protocol for a compositor to talk to its clients as well
as a C library implementation of that protocol. The compositor can be
a standalone display server running on Linux kernel modesetting and
evdev input devices, an X application, or a wayland client itself. The
clients can be traditional applications, X servers (rootless or
fullscreen) or other display servers.

#----------------------------------------------------------------------------

%define client_major 0
%define client_name %{name}-client
%define client_libname %mklibname %{client_name} %{client_major}

%package -n %{client_libname}
Summary:	Libraries for %{client_name}
Group:		System/Libraries

%description -n %{client_libname}
This package contains the libraries for %{client_name}.

%files -n %{client_libname}
%license COPYING
%{_libdir}/lib%{client_name}.so.%{client_major}*

#----------------------------------------------------------------------------

%define server_major 0
%define server_name %{name}-server
%define server_libname %mklibname %{server_name} %{server_major}

%package -n %{server_libname}
Summary:	Libraries for %{server_name}
Group:		System/Libraries

%description -n %{server_libname}
This package contains the libraries for %{server_name}.

%files -n %{server_libname}
%license COPYING
%{_libdir}/lib%{server_name}.so.%{server_major}*

#----------------------------------------------------------------------------

%define cursor_major 0
%define cursor_name %{name}-cursor
%define cursor_libname %mklibname %{cursor_name} %{cursor_major}

%package -n %{cursor_libname}
Summary:	Libraries for %{cursor_name}
Group:		System/Libraries

%description -n %{cursor_libname}
This package contains the libraries for %{cursor_name}.

%files -n %{cursor_libname}
%license COPYING
%{_libdir}/lib%{cursor_name}.so.%{cursor_major}*

#----------------------------------------------------------------------------

%define egl_major 1
%define egl_name %{name}-egl
%define egl_libname %mklibname %{egl_name} %{egl_major}

%package -n %{egl_libname}
Summary:	Files for Mesa (Wayland EGL libs)
Group:		System/Libraries

%description -n %{egl_libname}
Mesa is an OpenGL compatible 3D graphics library.
Wayland EGL platform parts.

%files -n %{egl_libname}
%license COPYING
%{_libdir}/lib%{egl_name}.so.%{egl_major}*

#----------------------------------------------------------------------------

%define devname %mklibname %{name} -d

%package -n %{devname}
Summary:	Header files for %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{client_libname} = %{EVRD}
Requires:	%{server_libname} = %{EVRD}
Requires:	%{cursor_libname} = %{EVRD}
Requires:	%{egl_libname} = %{EVRD}
Requires:	%{name}-tools = %{EVRD}
Obsoletes:	%{_lib}wayland-egl-devel < 18.0.0
Provides:	%{_lib}wayland-egl-devel = %{EVRD}

%description -n %{devname}
This package contains the header and pkg-config files for developing
with %{name}.

%files -n %{devname}
%license COPYING
%{_includedir}/%{name}-*.h
%{_libdir}/lib%{name}*.so
%{_libdir}/pkgconfig/%{name}*.pc
%{_datadir}/wayland/wayland-scanner.mk
%{_datadir}/wayland/wayland.dtd
%{_datadir}/wayland/wayland.xml
%{_datadir}/aclocal/%{name}-scanner.m4

#----------------------------------------------------------------------------

%package tools
Summary:	Wayland development tools
Group:		System/Libraries

%description tools
This package contains development tools for Wayland.

%files tools
%license COPYING
%{_bindir}/%{name}-scanner

#----------------------------------------------------------------------------

%package doc
Summary:	Wayland documentation
Group:		Documentation

%description doc
This package contains documentation of Wayland.

%files doc
%{_mandir}/man3/wl_*.3*
%{_defaultdocdir}/wayland/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20155 |21mr|waylandpp-0.2.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libwayland_clientpp %mklibname wayland-client++ %{major}
%define libwayland_client_extrapp %mklibname wayland-client-extra++ %{major}
%define libwayland_cursorpp %mklibname wayland-cursor++ %{major}
%define libwayland_eglpp %mklibname wayland-egl++ %{major}
%define devname %mklibname waylandpp -d

Name:		waylandpp
Version:	0.2.8
Release:	2
Summary:	Wayland C++ bindings
Group:		System/Libraries
# waylandpp includes part of Wayland under MIT, wayland-scanner++ is GPLv3+
License:	BSD and MIT and GPLv3+
URL:		https://github.com/NilsBrause/%{name}/
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
# Fix pugixml detection during build
Patch0:		%{name}-0.2.7-pugixml.patch
Patch1:		%{name}-0.2.7-gcc10.patch

BuildRequires:	cmake
BuildRequires:	doxygen
BuildRequires:	graphviz
BuildRequires:	mesa-common-devel
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-cursor)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pugixml-devel

%description
Wayland is an object oriented display protocol, which features request and
events. Requests can be seen as method calls on certain objects, whereas events
can be seen as signals of an object. This makes the Wayland protocol a perfect
candidate for a C++ binding.

The goal of this library is to create such a C++ binding for Wayland using the
most modern C++ technology currently available, providing an easy to use C++ API
to Wayland.

#-------------------------------------------------------------------------

%package -n %{libwayland_clientpp}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libwayland_clientpp}
%{name} shared library.

%files -n %{libwayland_clientpp}
%{_libdir}/libwayland-client++.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{libwayland_client_extrapp}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libwayland_client_extrapp}
%{name} shared library.

%files -n %{libwayland_client_extrapp}
%{_libdir}/libwayland-client-extra++.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{libwayland_cursorpp}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libwayland_cursorpp}
%{name} shared library.

%files -n %{libwayland_cursorpp}
%{_libdir}/libwayland-cursor++.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{libwayland_eglpp}
Summary:	%{name} shared library
Group:		System/Libraries

%description -n %{libwayland_eglpp}
%{name} shared library.

%files -n %{libwayland_eglpp}
%{_libdir}/libwayland-egl++.so.%{major}*

#-------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libwayland_clientpp} = %{EVRD}
Requires:	%{libwayland_client_extrapp} = %{EVRD}
Requires:	%{libwayland_cursorpp} = %{EVRD}
Requires:	%{libwayland_eglpp} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{name}-devel package contains libraries and header files for developing
applications that use %{name}.

%files -n %{devname}
%doc example/
%{_bindir}/wayland-scanner++
%{_libdir}/*.so
%{_libdir}/cmake/%{name}/
%{_libdir}/pkgconfig/*.pc
%{_includedir}/*
%{_datadir}/%{name}/
%{_mandir}/man3/*.3.*

#-------------------------------------------------------------------------

%package doc
Summary:	Documentation for %{name}
Group:		Documentation
BuildArch:	noarch

%description doc
The %{name}-doc package contains development documentation for %{name}.

%files doc
%doc README.md
%license LICENSE
%{_defaultdocdir}/%{name}-doc/*

#-------------------------------------------------------------------------

%prep
%autosetup -p0


%build
%cmake -DCMAKE_INSTALL_DOCDIR=%{_defaultdocdir}/%{name}-doc/
%make_build


%install
%make_install -C build

# Drop LaTeX documentation (HTML documentation is already built)
rm -r %{buildroot}%{_defaultdocdir}/%{name}-doc/latex/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20156 |21mr|wayland-protocols-1.31-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Wayland protocols that adds functionality not available in the core protocol
Name:		wayland-protocols
Version:	1.31
Release:	1
License:	MIT
Group:		Development/C
Url:		http://wayland.freedesktop.org/
Source0:    https://gitlab.freedesktop.org/wayland/wayland-protocols/-/releases/%{version}/downloads/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	pkgconfig(wayland-scanner)
BuildArch:	noarch

%description
wayland-protocols contains Wayland protocols that adds functionality not
available in the Wayland core protocol. Such protocols either adds
completely new functionality, or extends the functionality of some other
protocol either in Wayland core, or some other protocol in
wayland-protocols.

#----------------------------------------------------------------------------

%package devel
Summary:	Wayland protocols that adds functionality not available in the core protocol
Group:		Development/C

%description devel
wayland-protocols contains Wayland protocols that adds functionality not
available in the Wayland core protocol. Such protocols either adds
completely new functionality, or extends the functionality of some other
protocol either in Wayland core, or some other protocol in
wayland-protocols.

%files devel
%doc COPYING README.md
%{_datadir}/pkgconfig/%{name}.pc
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20157 |21mr|web-assets-5-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#disable the httpd stuff while we're waiting on getting the path issues
#cleared up
%global enable_httpd 1

Name:           web-assets
Version:        5
Release:        9
Summary:        A simple framework for bits pushed to browsers
BuildArch:      noarch
Group:		Development/Other
License:        MIT
URL:            https://fedoraproject.org/wiki/User:Patches/PackagingDrafts/Web_Assets

Source1:        LICENSE
Source2:        macros.web-assets
Source3:        web-assets.conf
Source4:        README.devel

%description
%{summary}.

%package filesystem
Summary:        The basic directory layout for Web Assets
#there's nothing copyrightable about a few directories and symlinks
License:        Public Domain

%description filesystem
%{summary}.

%package devel
Summary:        RPM macros for Web Assets packaging
License:        MIT
Requires:       web-assets-filesystem = %{version}-%{release}

%description devel
%{summary}.

%if 0%{?enable_httpd}
%package httpd
Summary:        Web Assets aliases for the Apache HTTP daemon
License:        MIT
Requires:       web-assets-filesystem = %{version}-%{release}
Requires:       apache
Requires(post): systemd
Requires(postun): systemd

%description httpd
%{summary}.
%endif

%prep
%setup -c -T
cp %{SOURCE1} LICENSE
cp %{SOURCE4} README.devel

%build
#nothing to do

%install
mkdir -p %{buildroot}%{_datadir}/web-assets
mkdir -p %{buildroot}%{_datadir}/javascript

ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/javascript
ln -sf ../javascript %{buildroot}%{_datadir}/web-assets/js
ln -sf ../fonts %{buildroot}%{_datadir}/web-assets/fonts

#install macros uneversal rpm4 and rpm5
%install_macro %{name} %{SOURCE2}

%if 0%{?enable_httpd}
install -Dpm0644 %{SOURCE3} %{buildroot}%{_webappconfdir}/web-assets.conf

%post httpd
systemctl reload-or-try-restart httpd.service || :

%postun httpd
systemctl reload-or-try-restart httpd.service || :
%endif

%files filesystem
%{_datadir}/web-assets
%{_datadir}/javascript

%files devel
%{_rpmmacrodir}/*%{name}*
%doc LICENSE README.devel

%if 0%{?enable_httpd}
%files httpd
%config(noreplace) %{_webappconfdir}/web-assets.conf
%doc LICENSE
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20158 |21mr|webjars-locator-0.32-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          webjars-locator
Version:       0.32
Release:       9
Summary:       WebJar Locator
License:       MIT
URL:           http://www.webjars.org/
Source0:       https://github.com/webjars/webjars-locator/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
BuildRequires: mvn(org.webjars:webjars-locator-core)
BuildRequires: mvn(org.eclipse.aether:aether-util)

%if 0
# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.slf4j:slf4j-simple)
# NOT available
BuildRequires: mvn(org.webjars:bootstrap:3.1.1-1)
BuildRequires: mvn(org.webjars:jquery:2.1.0-3)
BuildRequires: mvn(org.webjars:requirejs:2.1.14-3)
BuildRequires: mvn(org.webjars:when-node:3.5.2-2)
BuildRequires: mvn(org.webjars.bower:angular-bootstrap:0.13.0)
BuildRequires: mvn(org.webjars.bower:angular-schema-form:0.8.2)
BuildRequires: mvn(org.webjars.npm:angular-pouchdb:2.0.8)
BuildRequires: mvn(org.webjars.npm:babel-runtime:5.8.19)
BuildRequires: mvn(org.webjars.npm:object-assign:4.1.0)
BuildRequires: mvn(org.webjars.npm:validate.js:0.8.0)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
WebJars are client-side web libraries (e.g. jQuery & Bootstrap)
packaged into JAR (Java Archive) files. This project provides a
means to locate assets within WebJars.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
# Cleanup
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

%pom_remove_plugin :nexus-staging-maven-plugin

%mvn_file : %{name}

%build

# Skip test: unavailable test deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20159 |21mr|webjars-locator-core-0.31-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          webjars-locator-core
Version:       0.31
Release:       8
Summary:       WebJar Locator Core functionality
License:       MIT
URL:           http://www.webjars.org/
Source0:       https://github.com/webjars/webjars-locator-core/archive/%{name}-%{version}.tar.gz


BuildRequires: maven-local
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core)
BuildRequires: mvn(org.apache.commons:commons-compress)
BuildRequires: mvn(org.apache.commons:commons-lang3)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

%if 0
# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.mockito:mockito-core)
BuildRequires: mvn(org.slf4j:slf4j-simple)
# NOT available
BuildRequires: mvn(org.springframework.boot:spring-boot-loader:1.1.8.RELEASE)
BuildRequires: mvn(org.springframework.boot:spring-boot-loader-tools:1.1.8.RELEASE)
BuildRequires: mvn(org.webjars:angular-translate:2.1.0)
BuildRequires: mvn(org.webjars:angular-tree-control:0.1.5-1)
BuildRequires: mvn(org.webjars:angularjs:1.2.11)
BuildRequires: mvn(org.webjars:bootstrap:3.1.1-1)
BuildRequires: mvn(org.webjars:bootswatch-yeti:3.1.1)
BuildRequires: mvn(org.webjars:jquery:2.1.0-3)
BuildRequires: mvn(org.webjars:less-node:1.6.0-1)
BuildRequires: mvn(org.webjars:requirejs:2.1.14-3)
BuildRequires: mvn(org.webjars:select2:3.5.2-1)
BuildRequires: mvn(org.webjars:when-node:3.5.2-2)
BuildRequires: mvn(org.webjars.npm:angular-ui-router:0.2.15)
BuildRequires: mvn(org.webjars.npm:babel-core:6.0.16)
BuildRequires: mvn(org.webjars.npm:util:0.10.3)
%endif

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
WebJars are client-side web libraries (e.g. jQuery & Bootstrap)
packaged into JAR (Java Archive) files. This project provides a
means to locate assets within WebJars.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
# Cleanup
find -name "*.class" -print -delete
find -name "*.jar" -print -delete

%pom_remove_plugin :nexus-staging-maven-plugin

%mvn_file : %{name}

%build

# Skip test: unavailable test deps
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.md

%files javadoc -f .mfiles-javadoc
%license LICENSE.md


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20160 |21mr|webkit4-2.34.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# BEFORE UPDATING THIS PACKAGE, YOU _MUST_ DO THE FOLLOWING:
# - DO A LOCAL BUILD
# - INSTALL IT IN A TEST MACHINE
# - CHECK THAT 'display_help http://google.com' STILL WORK (INCLUDING CLOSING IT)
# - CHECK THAT MCC STILL RUNS
#
%define debug_package %{nil}

%define _disable_lto 1

%define oname		webkit
%define lib3ver		4.0
%define major3		18
%define major2		37
%define devname3	%mklibname webkitgtk %{lib3ver} -d
%define inspector3name	webkit%{lib3ver}-webinspector
%define girname2	%mklibname %{oname}2-gir %{lib3ver}
%define girname2extension %mklibname %{oname}2webextension-gir %{lib3ver}
%define libwebkit2	%mklibname webkit2gtk %{lib3ver} %{major2}
%define girjscore3	%mklibname jscore-gir %{lib3ver}
%define libjavascriptcoregtk3	%mklibname javascriptcoregtk %{lib3ver} %{major3}

Summary:	Web browser engine
Name:		webkit4
Version:	2.34.1
Release:	2
Epoch:		1
License:	BSD and LGPLv2+
Group:		System/Libraries
Url:		http://www.webkitgtk.org
Source0:	http://www.webkitgtk.org/releases/%{oname}gtk-%{version}.tar.xz
Patch0:		webkit-gtk-2.24.4-eglmesaext-include.patch
Patch10:	e2k-build.patch
BuildRequires:	bison
BuildRequires:	bubblewrap
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	docbook-dtd412-xml
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	gnupg2
BuildRequires:	gperf
BuildRequires:	gtk-doc
BuildRequires:	icu-devel
BuildRequires:	jpeg-devel
BuildRequires:	libtool
BuildRequires:	ninja
BuildRequires:	openjpeg2
BuildRequires:	perl
BuildRequires:	perl-base
BuildRequires:	perl-File-Copy-Recursive
BuildRequires:	perl-JSON-PP
BuildRequires:	perl-Switch
BuildRequires:	python3
BuildRequires:	python3egg(setuptools)
BuildRequires:	ruby
BuildRequires:	rubygem-json
BuildRequires:	xdg-dbus-proxy
BuildRequires:	hyphen-devel
BuildRequires:	libatomic-devel
BuildRequires:	libstdc++-devel
BuildRequires:	libwrap-devel
BuildRequires:	mesa-common-devel
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(gail)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-codecparsers-1.0)
BuildRequires:	pkgconfig(gstreamer-gl-1.0)
BuildRequires:	pkgconfig(gstreamer-mpegts-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(manette-0.2)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libwoff2common)
BuildRequires:	pkgconfig(libwoff2dec)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(wpe-1.0)
BuildRequires:	pkgconfig(wpebackend-fdo-1.0)

%description
WebKit is an open source web browser engine.

#----------------------------------------------------------------------------

%package -n %{oname}%{lib3ver}
Summary:	GTK+3 port of WebKit web browser engine - shared files
Group:		Development/GNOME and GTK+
Requires:	%{libwebkit2} = %{EVRD}

%description -n %{oname}%{lib3ver}
WebKit is an open source web browser engine.
This package contains the shared files used by %{oname}%{lib3ver}

%files -n %{oname}%{lib3ver} -f WebKit2GTK-%{lib3ver}.lang

#----------------------------------------------------------------------------

%package -n %{libjavascriptcoregtk3}
Summary:	GTK+3 port of WebKit web browser engine
Group:		System/Libraries

%description -n %{libjavascriptcoregtk3}
The GTK+3 port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{libjavascriptcoregtk3}
%{_libdir}/libjavascriptcoregtk-%{lib3ver}.so.%{major3}*

#----------------------------------------------------------------------------

%package -n %{devname3}
Summary:	Development files for WebKit GTK+3 port
Group:		Development/GNOME and GTK+
Provides:	lib%{oname}gtk4-devel = %{EVRD}
Provides:	%{oname}gtk4-devel = %{EVRD}
Provides:	%{oname}2gtk3-devel = %{EVRD}
Requires:	%{libwebkit2} = %{EVRD}
Requires:	%{libjavascriptcoregtk3} = %{EVRD}
Requires:	%{girjscore3} = %{EVRD}
Requires:	%{girname2} = %{EVRD}
Requires:	%{girname2extension} = %{EVRD}

%description -n %{devname3}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+ UI toolkit on platforms like
Linux. This package contains development headers.

%files -n %{devname3}
%{_datadir}/gir-1.0/JavaScriptCore-%{lib3ver}.gir
%{_datadir}/gir-1.0/WebKit2-%{lib3ver}.gir
%{_datadir}/gir-1.0/WebKit2WebExtension-%{lib3ver}.gir
%ifnarch %{e2k}
%{_datadir}/gtk-doc
%endif
%{_includedir}/%{oname}gtk-%{lib3ver}
%{_libdir}/libjavascriptcoregtk-%{lib3ver}.so
%{_libdir}/lib%{oname}2gtk-%{lib3ver}.so
%{_libdir}/pkgconfig/javascriptcoregtk-%{lib3ver}.pc
%{_libdir}/pkgconfig/%{oname}2gtk-%{lib3ver}.pc
%{_libdir}/pkgconfig/%{oname}2gtk-web-extension-%{lib3ver}.pc

#----------------------------------------------------------------------------

%package -n webkit4-jsc
Summary:	JavaScriptCore shell for WebKit GTK+3
Group:		Development/GNOME and GTK+

%description -n webkit4-jsc
jsc is a shell for JavaScriptCore, WebKit's JavaScript engine. It
allows you to interact with the JavaScript engine directly.

%files -n webkit4-jsc
%{_libexecdir}/%{oname}2gtk-%{lib3ver}/jsc

#----------------------------------------------------------------------------

%package -n webkit4-minibrowser
Summary:	Simple browser from WebKit GTK+3
Group:		Development/GNOME and GTK+
Requires:	gsettings-desktop-schemas

%description -n webkit4-minibrowser
Simple browser from WebKit GTK+3.

%files -n webkit4-minibrowser
%{_libexecdir}/%{oname}2gtk-%{lib3ver}/MiniBrowser

#----------------------------------------------------------------------------

%package -n %{girjscore3}
Summary:	GObject Introspection interface description for JSCore
Group:		System/Libraries

%description -n %{girjscore3}
GObject Introspection interface description for JSCore.

%files -n %{girjscore3}
%{_libdir}/girepository-1.0/JavaScriptCore-%{lib3ver}.typelib

#----------------------------------------------------------------------------

%package -n %{girname2}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries
Requires:	%{libwebkit2} = %{EVRD}

%description -n %{girname2}
GObject Introspection interface description for WebKit2.

%files -n %{girname2}
%{_libdir}/girepository-1.0/WebKit2-%{lib3ver}.typelib

#----------------------------------------------------------------------------

%package -n %{girname2extension}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries

%description -n %{girname2extension}
GObject Introspection interface description for WebKit2.

%files -n %{girname2extension}
%{_libdir}/girepository-1.0/WebKit2WebExtension-%{lib3ver}.typelib

#----------------------------------------------------------------------------

%package -n %{libwebkit2}
Summary:	GTK+3 port of WebKit2 web browser engine
Group:		System/Libraries
Requires:	%{oname}%{lib3ver} = %{EVRD}
Requires:	%{oname}2gtk%{lib3ver} = %{EVRD}
Requires:	bubblewrap
Requires:	xdg-dbus-proxy
Recommends:	geoclue2
Provides:	bundled(angle) = %{EVRD}
Provides:	bundled(xdgmime) = %{EVRD}
Provides:	lib%{oname}2gtk3 = %{EVRD}
Provides:	lib%{oname}2gtk = %{EVRD}
Provides:	%{oname}2gtk3 = %{EVRD}
Provides:	%{oname}2gtk3-plugin-process-gtk2 = %{EVRD}

%description -n %{libwebkit2}
The GTK+3 port of WebKit2 is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{libwebkit2}
%{_libdir}/lib%{oname}2gtk-%{lib3ver}.so.%{major2}*

#----------------------------------------------------------------------------

%package -n %{oname}2gtk%{lib3ver}
Summary:	GTK+3 port of WebKit2 web browser engine - shared files
Group:		System/Libraries

%description -n %{oname}2gtk%{lib3ver}
WebKit is an open source web browser engine.
This package contains the shared files used by %{oname}2gtk%{lib3ver}.

%files -n %{oname}2gtk%{lib3ver}
%{_bindir}/WebKitWebDriver
%{_libdir}/%{oname}2gtk-%{lib3ver}/injected-bundle/lib%{oname}2gtkinjectedbundle.so
%{_libexecdir}/%{oname}2gtk-%{lib3ver}/WebKitNetworkProcess
%{_libexecdir}/%{oname}2gtk-%{lib3ver}/WebKitWebProcess

#----------------------------------------------------------------------------

%prep
%setup -qn %{oname}gtk-%{version}
%ifarch %{e2k}
%autopatch -p1
%else
%autopatch -M 9 -p1
%endif

%build
# fix weird memory allocation with g-ir
export GIGACAGE_ENABLED=0
%global optflags %(echo %{optflags} -fno-lto | sed -e 's/-g /-g0 /' -e 's/-gdwarf-4//')

%ifarch %{e2k}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%endif

%cmake \
	-GNinja				\
	-DPORT=GTK			\
	-DCMAKE_BUILD_TYPE=Release	\
%ifarch %{e2k}
	-DENABLE_GTKDOC=OFF		\
%else
	-DENABLE_GTKDOC=ON		\
%endif
	-DENABLE_MINIBROWSER=ON		\
	-DPYTHON_EXECUTABLE=%{_bindir}/python3 \
	-DUSE_SOUP2=ON 			\
%ifarch aarch64 %{ix86}
	-DENABLE_JIT=OFF		\
%endif
%ifarch %{e2k}
	-DENABLE_BUBBLEWRAP_SANDBOX=OFF \
%endif
%ifarch aarch64
	-DWTF_CPU_ARM64_CORTEXA53=OFF	\
%endif
%ifnarch %{x86_64} %{ix86}
	-DUSE_SYSTEM_MALLOC=ON	\
%endif
	-DUSER_AGENT_BRANDING="Rosa"

%ninja_build

%install
%ninja_install -C build

# only useful for testing, should not be installed system-wide.
# reported upstream as 22812 - AdamW 2008/12
rm -rf %{buildroot}%{_libdir}/libtestnetscapeplugin.*

%find_lang WebKit2GTK-%{lib3ver}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20161 |21mr|webkit4-2.44.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define _disable_lto 1

%define oname webkit
%define api60 6.0
%define api41 4.1
%define api40 4.0
%define maj60 4
%define maj41 0
%define maj40 37
%define jav60 1
%define jav41 0
%define jav40 18
%define lib60 %mklibname %{oname}gtk %{api60} %{maj60}
%define lib41 %mklibname %{oname}2gtk %{api41} %{maj41}
%define lib40 %mklibname %{oname}2gtk %{api40} %{maj40}
%define gir60 %mklibname %{oname}-gir %{api60}
%define gir41 %mklibname %{oname}2-gir %{api41}
%define gir40 %mklibname %{oname}2-gir %{api40}
%define gir60ext %mklibname %{oname}webprocessextension-gir %{api60}
%define gir41ext %mklibname %{oname}2webextension-gir %{api41}
%define gir40ext %mklibname %{oname}2webextension-gir %{api40}
%define girjscore60 %mklibname jscore-gir %{api60}
%define girjscore41 %mklibname jscore-gir %{api41}
%define girjscore40 %mklibname jscore-gir %{api40}
%define libjava60 %mklibname javascriptcoregtk %{api60} %{jav60}
%define libjava41 %mklibname javascriptcoregtk %{api41} %{jav41}
%define libjava40 %mklibname javascriptcoregtk %{api40} %{jav40}
%define dev60 %mklibname %{oname}gtk %{api60} -d
%define dev41 %mklibname %{oname}2gtk %{api41} -d
%define dev40 %mklibname %{oname}2gtk %{api40} -d

Summary:	Web browser engine
Name:		webkit4
Version:	2.44.1
Release:	4
Epoch:		1
License:	BSD and LGPLv2+
Group:		System/Libraries
Url:		https://www.webkitgtk.org
Source0:	https://www.webkitgtk.org/releases/%{oname}gtk-%{version}.tar.xz
Source1:	webkitgtk-2.42.1-drop-check-gstreamer-transcoder.patch
Patch10:	e2k-build.patch
# e2k use lcc with version 1.26.xx and need disable check
Patch11:	webkitgtk-2.44.1-not-check-gcc-version.patch
BuildRequires:	bison
BuildRequires:	bubblewrap
BuildRequires:	ccache
BuildRequires:	chrpath
BuildRequires:	cmake
BuildRequires:	docbook-dtd412-xml
BuildRequires:	flex
BuildRequires:	gettext
BuildRequires:	gnupg2
BuildRequires:	gperf
BuildRequires:	gstreamer1.0-transcoder
BuildRequires:	icu-devel
BuildRequires:	jpeg-devel
BuildRequires:	libtool
BuildRequires:	ninja
BuildRequires:	openjpeg2
BuildRequires:	perl
BuildRequires:	perl-base
BuildRequires:	perl-bignum
BuildRequires:	perl-File-Copy-Recursive
BuildRequires:	perl-JSON-PP
BuildRequires:	perl-Switch
BuildRequires:	python3
BuildRequires:	python3-gi-docgen
BuildRequires:	ruby
BuildRequires:	rubygem-json
BuildRequires:	unifdef
BuildRequires:	xdg-dbus-proxy
BuildRequires:	hyphen-devel
BuildRequires:	libatomic-devel
BuildRequires:	libbacktrace-devel
BuildRequires:	libstdc++-devel
BuildRequires:	libwrap-devel
BuildRequires:	mesa-common-devel
BuildRequires:	woff2-devel
BuildRequires:	python3dist(setuptools)
BuildRequires:	pkgconfig(atspi-2)
BuildRequires:	pkgconfig(cairo)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gail)
BuildRequires:	pkgconfig(gail-3.0)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glesv2)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-codecparsers-1.0)
BuildRequires:	pkgconfig(gstreamer-gl-1.0)
BuildRequires:	pkgconfig(gstreamer-mpegts-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-bad-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gstreamer-transcoder-1.0)
BuildRequires:	pkgconfig(gstreamer-webrtc-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(harfbuzz)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libavif)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libjxl)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(libopenjp2)
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libseccomp)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libsoup-3.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libwoff2common)
BuildRequires:	pkgconfig(libwoff2dec)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(manette-0.2)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(upower-glib)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires:	pkgconfig(wayland-server)
BuildRequires:	pkgconfig(wpe-1.0)
BuildRequires:	pkgconfig(wpebackend-fdo-1.0)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)

%description
WebKit is an open source web browser engine.

#----------------------------------------------------------------------------

%package -n %{oname}gtk%{api60}
Summary:	GTK4 port of WebKit web browser engine - shared files
Group:		Development/GNOME and GTK+
Requires:	bubblewrap
Requires:	%{lib60} = %{EVRD}
Requires:	%{libjava60} = %{EVRD}
Requires:	xdg-dbus-proxy
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-good
Recommends:	xdg-desktop-portal-gtk

%description -n %{oname}gtk%{api60}
WebKit is an open source web browser engine.
This package contains the shared files used by %{oname}gtk%{api60}.

%files -n %{oname}gtk%{api60} -f WebKitGTK-%{api60}.lang
%{_bindir}/WebKitWebDriver
%dir %{_libexecdir}/%{oname}gtk-%{api60}
%{_libdir}/%{oname}gtk-%{api60}
%{_libexecdir}/%{oname}gtk-%{api60}/WebKitNetworkProcess
%{_libexecdir}/%{oname}gtk-%{api60}/WebKitWebProcess

#----------------------------------------------------------------------------

%package -n %{oname}2gtk%{api41}
Summary:	GTK+3 port of WebKit web browser engine - shared files
Group:		Development/GNOME and GTK+
Requires:	bubblewrap
Requires:	%{lib41} = %{EVRD}
Requires:	%{libjava41} = %{EVRD}
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-good
Recommends:	xdg-desktop-portal-gtk

%description -n %{oname}2gtk%{api41}
WebKit is an open source web browser engine.
This package contains the shared files used by %{oname}2gtk%{api41}.

%files -n %{oname}2gtk%{api41} -f WebKitGTK-%{api41}.lang
%dir %{_libexecdir}/%{oname}2gtk-%{api41}
%{_libdir}/%{oname}2gtk-%{api41}
%{_libexecdir}/%{oname}2gtk-%{api41}/WebKitNetworkProcess
%{_libexecdir}/%{oname}2gtk-%{api41}/WebKitWebProcess

#----------------------------------------------------------------------------

%package -n %{oname}2gtk%{api40}
Summary:	GTK+3 port of WebKit web browser engine - shared files
Group:		Development/GNOME and GTK+
Requires:	bubblewrap
Requires:	%{lib40} = %{EVRD}
Requires:	%{libjava40} = %{EVRD}
Requires:	xdg-dbus-proxy
# Compat with Fedora/RH
Provides:	webkitgtk4 = %{EVRD}
Recommends:	gstreamer1.0-plugins-bad
Recommends:	gstreamer1.0-plugins-good
Recommends:	xdg-desktop-portal-gtk
Obsoletes:	webkit4.0 <= 1:2.44.1-1

%description -n %{oname}2gtk%{api40}
WebKit is an open source web browser engine.
This package contains the shared files used by %{oname}2gtk%{api40}.

%files -n %{oname}2gtk%{api40} -f WebKitGTK-%{api40}.lang
%dir %{_libexecdir}/%{oname}2gtk-%{api40}
%{_libdir}/%{oname}2gtk-%{api40}
%{_libexecdir}/%{oname}2gtk-%{api40}/WebKitNetworkProcess
%{_libexecdir}/%{oname}2gtk-%{api40}/WebKitWebProcess

#----------------------------------------------------------------------------

%package -n %{libjava60}
Summary:	GTK4 port of WebKit web browser engine
Group:		System/Libraries

%description -n %{libjava60}
The GTK4 port of WebKit is intended to provide a browser component
primarily for users of the portable GTK4 UI toolkit on platforms like
Linux.

%files -n %{libjava60}
%{_libdir}/libjavascriptcoregtk-%{api60}.so.%{jav60}*

#----------------------------------------------------------------------------

%package -n %{libjava41}
Summary:	GTK+3 port of WebKit web browser engine
Group:		System/Libraries

%description -n %{libjava41}
The GTK+3 port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{libjava41}
%{_libdir}/libjavascriptcoregtk-%{api41}.so.%{jav41}*

#----------------------------------------------------------------------------

%package -n %{libjava40}
Summary:	GTK+3 port of WebKit web browser engine
Group:		System/Libraries

%description -n %{libjava40}
The GTK+3 port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{libjava40}
%{_libdir}/libjavascriptcoregtk-%{api40}.so.%{jav40}*

#----------------------------------------------------------------------------

%package -n %{dev60}
Summary:	Development files for WebKit GTK4 port
Group:		Development/GNOME and GTK+
Provides:	%{oname}gtk%{api60}-devel = %{EVRD}
Provides:	%{oname}2gtk%{api60}-devel = %{EVRD}
Requires:	%{oname}gtk%{api60} = %{EVRD}

%description -n %{dev60}
The GTK4 port of WebKit is intended to provide a browser component
primarily for users of the portable GTK4 UI toolkit on platforms like
Linux. This package contains development headers.

%files -n %{dev60}
%{_datadir}/gir-1.0/JavaScriptCore-%{api60}.gir
%{_datadir}/gir-1.0/WebKit-%{api60}.gir
%{_datadir}/gir-1.0/WebKitWebProcessExtension-%{api60}.gir
%{_defaultdocdir}/javascriptcoregtk-%{api60}
%{_defaultdocdir}/webkitgtk-%{api60}
%{_defaultdocdir}/webkitgtk-web-process-extension-%{api60}
%{_includedir}/%{oname}gtk-%{api60}
%{_libdir}/libjavascriptcoregtk-%{api60}.so
%{_libdir}/lib%{oname}gtk-%{api60}.so
%{_libdir}/pkgconfig/javascriptcoregtk-%{api60}.pc
%{_libdir}/pkgconfig/%{oname}gtk-%{api60}.pc
%{_libdir}/pkgconfig/%{oname}gtk-web-process-extension-%{api60}.pc

#----------------------------------------------------------------------------

%package -n %{dev41}
Summary:	Development files for WebKit GTK+3 port
Group:		Development/GNOME and GTK+
Provides:	%{oname}gtk%{api41}-devel = %{EVRD}
Provides:	%{oname}2gtk%{api41}-devel = %{EVRD}
Requires:	%{oname}2gtk%{api41} = %{EVRD}

%description -n %{dev41}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux. This package contains development headers.

%files -n %{dev41}
%{_datadir}/gir-1.0/JavaScriptCore-%{api41}.gir
%{_datadir}/gir-1.0/WebKit2-%{api41}.gir
%{_datadir}/gir-1.0/WebKit2WebExtension-%{api41}.gir
%{_defaultdocdir}/javascriptcoregtk-%{api41}
%{_defaultdocdir}/webkit2gtk-%{api41}
%{_defaultdocdir}/webkit2gtk-web-extension-%{api41}
%{_includedir}/%{oname}gtk-%{api41}
%{_libdir}/libjavascriptcoregtk-%{api41}.so
%{_libdir}/lib%{oname}2gtk-%{api41}.so
%{_libdir}/pkgconfig/javascriptcoregtk-%{api41}.pc
%{_libdir}/pkgconfig/%{oname}2gtk-%{api41}.pc
%{_libdir}/pkgconfig/%{oname}2gtk-web-extension-%{api41}.pc

#----------------------------------------------------------------------------

%package -n %{dev40}
Summary:	Development files for WebKit GTK+3 port
Group:		Development/GNOME and GTK+
Provides:	%{oname}gtk%{api40}-devel = %{EVRD}
Provides:	%{oname}2gtk%{api40}-devel = %{EVRD}
Requires:	%{oname}2gtk%{api40} = %{EVRD}

%description -n %{dev40}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux. This package contains development headers.

%files -n %{dev40}
%{_datadir}/gir-1.0/JavaScriptCore-%{api40}.gir
%{_datadir}/gir-1.0/WebKit2-%{api40}.gir
%{_datadir}/gir-1.0/WebKit2WebExtension-%{api40}.gir
%{_defaultdocdir}/javascriptcoregtk-%{api40}
%{_defaultdocdir}/webkit2gtk-%{api40}
%{_defaultdocdir}/webkit2gtk-web-extension-%{api40}
%{_includedir}/%{oname}gtk-%{api40}
%{_libdir}/libjavascriptcoregtk-%{api40}.so
%{_libdir}/lib%{oname}2gtk-%{api40}.so
%{_libdir}/pkgconfig/javascriptcoregtk-%{api40}.pc
%{_libdir}/pkgconfig/%{oname}2gtk-%{api40}.pc
%{_libdir}/pkgconfig/%{oname}2gtk-web-extension-%{api40}.pc

#----------------------------------------------------------------------------

%package -n %{oname}-%{api60}-jsc
Summary:	JavaScriptCore shell for WebKit GTK4
Group:		Development/GNOME and GTK+

%description -n %{oname}-%{api60}-jsc
Jsc is a shell for JavaScriptCore, WebKit's JavaScript engine. It
allows you to interact with the JavaScript engine directly.

%files -n %{oname}-%{api60}-jsc
%{_libexecdir}/%{oname}gtk-%{api60}/jsc

#----------------------------------------------------------------------------

%package -n %{oname}-%{api41}-jsc
Summary:	JavaScriptCore shell for WebKit GTK+3
Group:		Development/GNOME and GTK+

%description -n %{oname}-%{api41}-jsc
Jsc is a shell for JavaScriptCore, WebKit's JavaScript engine. It
allows you to interact with the JavaScript engine directly.

%files -n %{oname}-%{api41}-jsc
%{_libexecdir}/%{oname}2gtk-%{api41}/jsc

#----------------------------------------------------------------------------

%package -n %{oname}-%{api40}-jsc
Summary:	JavaScriptCore shell for WebKit GTK+3
Group:		Development/GNOME and GTK+
Obsoletes:	webkit4-jsc <= 1:2.44.1-1

%description -n %{oname}-%{api40}-jsc
Jsc is a shell for JavaScriptCore, WebKit's JavaScript engine. It
allows you to interact with the JavaScript engine directly.

%files -n %{oname}-%{api40}-jsc
%{_libexecdir}/%{oname}2gtk-%{api40}/jsc

#----------------------------------------------------------------------------

%package -n %{oname}-%{api60}-minibrowser
Summary:	Simple browser from WebKit GTK+3
Group:		Development/GNOME and GTK+
Requires:	gsettings-desktop-schemas

%description -n %{oname}-%{api60}-minibrowser
Simple browser from WebKit GTK4.

%files -n %{oname}-%{api60}-minibrowser
%{_libexecdir}/%{oname}gtk-%{api60}/MiniBrowser

#----------------------------------------------------------------------------

%package -n %{oname}-%{api41}-minibrowser
Summary:	Simple browser from WebKit GTK+3
Group:		Development/GNOME and GTK+
Requires:	gsettings-desktop-schemas

%description -n %{oname}-%{api41}-minibrowser
Simple browser from WebKit GTK+3.

%files -n %{oname}-%{api41}-minibrowser
%{_libexecdir}/%{oname}2gtk-%{api41}/MiniBrowser

#----------------------------------------------------------------------------

%package -n %{oname}-%{api40}-minibrowser
Summary:	Simple browser from WebKit GTK+3
Group:		Development/GNOME and GTK+
Requires:	gsettings-desktop-schemas
Obsoletes:	webkit4-minibrowser <= 1:2.44.1-1

%description -n %{oname}-%{api40}-minibrowser
Simple browser from WebKit GTK+3.

%files -n %{oname}-%{api40}-minibrowser
%{_libexecdir}/%{oname}2gtk-%{api40}/MiniBrowser

#----------------------------------------------------------------------------

%package -n %{girjscore60}
Summary:	GObject Introspection interface description for JSCore
Group:		System/Libraries

%description -n %{girjscore60}
GObject Introspection interface description for JSCore.

%files -n %{girjscore60}
%{_libdir}/girepository-1.0/JavaScriptCore-%{api60}.typelib

#----------------------------------------------------------------------------

%package -n %{girjscore41}
Summary:	GObject Introspection interface description for JSCore
Group:		System/Libraries

%description -n %{girjscore41}
GObject Introspection interface description for JSCore.

%files -n %{girjscore41}
%{_libdir}/girepository-1.0/JavaScriptCore-%{api41}.typelib

#----------------------------------------------------------------------------

%package -n %{girjscore40}
Summary:	GObject Introspection interface description for JSCore
Group:		System/Libraries

%description -n %{girjscore40}
GObject Introspection interface description for JSCore.

%files -n %{girjscore40}
%{_libdir}/girepository-1.0/JavaScriptCore-%{api40}.typelib

#----------------------------------------------------------------------------

%package -n %{gir60}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries
Requires:	%{lib60} = %{EVRD}

%description -n %{gir60}
GObject Introspection interface description for WebKit.

%files -n %{gir60}
%{_libdir}/girepository-1.0/WebKit-%{api60}.typelib

#----------------------------------------------------------------------------

%package -n %{gir41}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries
Requires:	%{lib41} = %{EVRD}

%description -n %{gir41}
GObject Introspection interface description for WebKit2.

%files -n %{gir41}
%{_libdir}/girepository-1.0/WebKit2-%{api41}.typelib

#----------------------------------------------------------------------------

%package -n %{gir40}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries
Requires:	%{lib40} = %{EVRD}

%description -n %{gir40}
GObject Introspection interface description for WebKit2.

%files -n %{gir40}
%{_libdir}/girepository-1.0/WebKit2-%{api40}.typelib

#----------------------------------------------------------------------------

%package -n %{gir60ext}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries

%description -n %{gir60ext}
GObject Introspection interface description for WebKit.

%files -n %{gir60ext}
%{_libdir}/girepository-1.0/WebKitWebProcessExtension-%{api60}.typelib

#----------------------------------------------------------------------------

%package -n %{gir41ext}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries

%description -n %{gir41ext}
GObject Introspection interface description for WebKit2.

%files -n %{gir41ext}
%{_libdir}/girepository-1.0/WebKit2WebExtension-%{api41}.typelib

#----------------------------------------------------------------------------

%package -n %{gir40ext}
Summary:	GObject Introspection interface description for %{oname}
Group:		System/Libraries

%description -n %{gir40ext}
GObject Introspection interface description for WebKit2.

%files -n %{gir40ext}
%{_libdir}/girepository-1.0/WebKit2WebExtension-%{api40}.typelib

#----------------------------------------------------------------------------

%package -n %{lib60}
Summary:	GTK4 port of WebKit web browser engine
Group:		System/Libraries
# Here and below such soft dependency exists because the library runs
# WebKitNetworkProcess, but a strict dependency will be overhead
# because in many cases such functionality in applications depending
# from the library is not obligatory (e.g. payments in telegram-desktop).
# Let's avoid forcing to install the whole webkit and its dependencies
# (bubblewrap etc.), if a user cannot or does not want to do this.
Recommends:	%{oname}gtk%{api60}
Provides:	bundled(angle) = %{EVRD}
Provides:	bundled(pdfjs) = %{EVRD}
Provides:	bundled(xdgmime) = %{EVRD}

%description -n %{lib60}
The GTK4 port of WebKit is intended to provide a browser component
primarily for users of the portable GTK4 UI toolkit on platforms like
Linux.

%files -n %{lib60}
%{_libdir}/lib%{oname}gtk-%{api60}.so.%{maj60}*

#----------------------------------------------------------------------------

%package -n %{lib41}
Summary:	GTK+3 port of WebKit web browser engine
Group:		System/Libraries
# see comment above in lib60
Recommends:	%{oname}2gtk%{api41}
Provides:	bundled(angle) = %{EVRD}
Provides:	bundled(pdfjs) = %{EVRD}
Provides:	bundled(xdgmime) = %{EVRD}

%description -n %{lib41}
The GTK+3 port of WebKit2 is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{lib41}
%{_libdir}/lib%{oname}2gtk-%{api41}.so.%{maj41}*

#----------------------------------------------------------------------------

%package -n %{lib40}
Summary:	GTK+3 port of WebKit2 web browser engine
Group:		System/Libraries
# see comment above in lib60
Recommends:	%{oname}2gtk%{api40}
Provides:	bundled(angle) = %{EVRD}
Provides:	bundled(pdfjs) = %{EVRD}
Provides:	bundled(xdgmime) = %{EVRD}

%description -n %{lib40}
The GTK+3 port of WebKit2 is intended to provide a browser component
primarily for users of the portable GTK+3 UI toolkit on platforms like
Linux.

%files -n %{lib40}
%{_libdir}/lib%{oname}2gtk-%{api40}.so.%{maj40}*

#----------------------------------------------------------------------------

%prep
%setup -q -c
%ifarch %{e2k}
pushd %{oname}gtk-%{version}
%autopatch -p1
popd
%endif

pushd %{oname}gtk-%{version}
patch -p1 <%{SOURCE1}
popd

cp -rf %{oname}gtk-%{version} %{oname}gtk-%{api60}
cp -rf %{oname}gtk-%{version} %{oname}2gtk-%{api41}
cp -rf %{oname}gtk-%{version} %{oname}2gtk-%{api40}
rm -rf %{oname}gtk-%{version}

%build
# fix weird memory allocation with g-ir
export GIGACAGE_ENABLED=0
%global optflags %(echo %{optflags} -fno-lto | sed -e 's/-O2 /-O2 -g0 /' -e 's/-gdwarf-4//')

# TODO Do work something from it?
# https://bugzilla.redhat.com/show_bug.cgi?id=1456261
%global _dwz_max_die_limit_x86_64 250000000
%global _dwz_max_die_limit_aarch64 250000000
# Require 32 GB of RAM per vCPU for debuginfo processing. 16 GB is not enough.
%global _find_debuginfo_opts %limit_build -m 32768
# Reduce debuginfo verbosity 32-bit builds to reduce memory consumption even more.
# https://bugs.webkit.org/show_bug.cgi?id=140176
# https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/I6IVNA52TXTBRQLKW45CJ5K4RA4WNGMI/
%ifarch %{ix86}
%global optflags %(echo %{optflags} | sed 's/-O2 /-O2 -g1 /')
%endif

%ifarch %{e2k}
export LDFLAGS="%{ldflags} -Wl,--no-keep-memory"
%endif

pushd %{oname}gtk-%{api60}
ninja_error_key=1
%cmake	\
	-GNinja					\
	-DCMAKE_BUILD_TYPE=Release		\
	-DCMAKE_INSTALL_FULL_LIBDIR=%{_libdir}	\
	-DLIB_INSTALL_DIR=%{_libdir}		\
%ifnarch %{e2k}
	-DENABLE_BUBBLEWRAP_SANDBOX=ON	\
%endif
%ifarch aarch64
	-DENABLE_SAMPLING_PROFILER=OFF	\
	-DUSE_64KB_PAGE_BLOCK=ON	\
%endif
%ifarch aarch64 %{ix86} %{e2k}
	-DENABLE_JIT=OFF		\
%endif
	-DUSE_WPE_RENDERER=ON			\
	-DENABLE_WEBGL=ON			\
	-DPORT=GTK				\
	-DPYTHON_EXECUTABLE=%{_bindir}/python3	\
	-DUSE_GSTREAMER_MPEGTS=ON		\
	-DUSE_GSTREAMER_NATIVE_AUDIO=ON		\
	-DUSE_GSTREAMER_NATIVE_VIDEO=ON		\
%ifnarch %{x86_64} %{ix86}
	-DUSE_SYSTEM_MALLOC=ON		\
%endif
	-DUSER_AGENT_BRANDING="Rosa"

ninja_error_key=1
%ninja_build &>ninja_build_log60 && ninja_error_key=0 || :
echo -e "...\nhead -n1000 ninja_build_log60\n..."
head -n1000 ninja_build_log60
echo -e "...\ntail -n1000 ninja_build_log60\n..."
tail -n1000 ninja_build_log60
[ "$ninja_error_key" = 0 ] || exit 1
popd

pushd %{oname}2gtk-%{api41}
%cmake	\
	-GNinja					\
	-DCMAKE_BUILD_TYPE=Release		\
	-DCMAKE_INSTALL_FULL_LIBDIR=%{_libdir}	\
	-DLIB_INSTALL_DIR=%{_libdir}		\
%ifnarch %{e2k}
	-DENABLE_BUBBLEWRAP_SANDBOX=ON	\
%endif
%ifarch aarch64
	-DENABLE_SAMPLING_PROFILER=OFF	\
	-DUSE_64KB_PAGE_BLOCK=ON	\
%endif
%ifarch aarch64 %{ix86} %{e2k}
	-DENABLE_JIT=OFF		\
%endif
	-DUSE_WPE_RENDERER=ON			\
	-DENABLE_WEBDRIVER=OFF			\
	-DENABLE_WEBGL=ON			\
	-DPORT=GTK				\
	-DPYTHON_EXECUTABLE=%{_bindir}/python3	\
	-DUSE_GTK4=OFF				\
%ifnarch %{x86_64} %{ix86}
	-DUSE_SYSTEM_MALLOC=ON		\
%endif
	-DUSER_AGENT_BRANDING="Rosa"

ninja_error_key=1
%ninja_build &>ninja_build_log41 && ninja_error_key=0 || :
echo -e "...\nhead -n1000 ninja_build_log41\n..."
head -n1000 ninja_build_log41
echo -e "...\ntail -n1000 ninja_build_log41\n..."
tail -n1000 ninja_build_log41
[ "$ninja_error_key" = 0 ] || exit 1
popd

pushd %{oname}2gtk-%{api40}
%cmake	\
	-GNinja					\
	-DCMAKE_BUILD_TYPE=Release		\
	-DCMAKE_INSTALL_FULL_LIBDIR=%{_libdir}	\
	-DLIB_INSTALL_DIR=%{_libdir}		\
%ifnarch %{e2k}
	-DENABLE_BUBBLEWRAP_SANDBOX=ON	\
%endif
%ifarch aarch64
	-DENABLE_SAMPLING_PROFILER=OFF	\
	-DUSE_64KB_PAGE_BLOCK=ON	\
%endif
%ifarch aarch64 %{ix86} %{e2k}
	-DENABLE_JIT=OFF		\
%endif
	-DUSE_WPE_RENDERER=ON			\
	-DENABLE_WEBDRIVER=OFF			\
	-DENABLE_WEBGL=ON			\
	-DPORT=GTK				\
	-DPYTHON_EXECUTABLE=%{_bindir}/python3	\
	-DUSE_GTK4=OFF				\
	-DUSE_SOUP2=ON				\
%ifnarch %{x86_64} %{ix86}
	-DUSE_SYSTEM_MALLOC=ON		\
%endif
	-DUSER_AGENT_BRANDING="Rosa"

ninja_error_key=1
%ninja_build &>ninja_build_log40 && ninja_error_key=0 || :
echo -e "...\nhead -n1000 ninja_build_log40\n..."
head -n1000 ninja_build_log40
echo -e "...\ntail -n1000 ninja_build_log40\n..."
tail -n1000 ninja_build_log40
[ "$ninja_error_key" = 0 ] || exit 1
popd

%install
pushd %{oname}gtk-%{api60}
ninja_error_key=1
%ninja_install -C build &>ninja_install_log60 && ninja_error_key=0 || :
echo -e "...\nhead -n1000 ninja_install_log60\n..."
head -n1000 ninja_install_log60
echo -e "...\ntail -n1000 ninja_install_log60\n..."
tail -n1000 ninja_install_log60
[ "$ninja_error_key" = 0 ] || exit 1
popd

pushd %{oname}2gtk-%{api41}
ninja_error_key=1
%ninja_install -C build &>ninja_install_log41 && ninja_error_key=0 || :
echo -e "...\nhead -n1000 ninja_install_log41\n..."
head -n1000 ninja_install_log41
echo -e "...\ntail -n1000 ninja_install_log41\n..."
tail -n1000 ninja_install_log41
[ "$ninja_error_key" = 0 ] || exit 1
popd

pushd %{oname}2gtk-%{api40}
ninja_error_key=1
%ninja_install -C build &>ninja_install_log40 && ninja_error_key=0 || :
echo -e "...\nhead -n1000 ninja_install_log40\n..."
head -n1000 ninja_install_log40
echo -e "...\ntail -n1000 ninja_install_log40\n..."
tail -n1000 ninja_install_log40
[ "$ninja_error_key" = 0 ] || exit 1
popd

%find_lang WebKitGTK-%{api60}
%find_lang WebKitGTK-%{api41}
%find_lang WebKitGTK-%{api40}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20162 |21mr|webkitgtk2-2.4.11-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#
# BEFORE UPDATING THIS PACKAGE, YOU _MUST_ DO THE FOLLOWING:
# - DO A LOCAL BUILD
# - INSTALL IT IN A TEST MACHINE
# - CHECK THAT 'display_help http://google.com' STILL WORK (INCLUDING CLOSING IT)
# - CHECK THAT MCC STILL RUNS
#
%define debug_package %{nil}
# *** ERROR: same build ID in nonidentical files!
#        /usr/bin/jsc-3
#   and  /usr/bin/jsc-1


# lib is called libwebkitgtk-%{libver}.so.%{major}
%define libver  1.0
%define major   0
%define oname		webkitgtk
%define sname		webkit
%define libname		%mklibname webkitgtk %{libver} %{major}
%define devname		%mklibname webkitgtk %{libver} -d
%define inspectorname	webkit%{libver}-webinspector
%define girname		%mklibname %{sname}-gir %{libver}
%define girjscore	%mklibname jscore-gir %{libver}
%define libjavascriptcoregtk	%mklibname javascriptcoregtk %{libver} %{major}

Summary:	Web browser engine
Name:		webkitgtk2
Epoch:		2
Version:	2.4.11
Release:	7
License:	BSD and LGPLv2+
Group:		System/Libraries
Url:		http://www.webkitgtk.org
Source0:	http://www.webkitgtk.org/releases/%{oname}-%{version}.tar.xz
# (blino) needed for first-time wizard (display_help) to be able to close its window with javascript
Patch2:		webkit-2.1.90-allowScriptsToCloseWindows.patch
Patch3:		webkitgtk-2.1.92-gtk-includes.patch
Patch4:		webkitgtk-aarch64.patch
Patch5:		enchant2.patch
Patch6:		icu59.patch
#https://bugs.gentoo.org/621532#c5
Patch7:		patch-Source_JavaScriptCore_API_JSStringRef_cpp.patch
Patch9:		webkit-gobject.patch
Patch10:	webkit-volatile.patch
# from arch linux
Patch11:	webkit-glib-2.68.0.patch
Patch12:	webkitgtk-2.4.9-abs.patch
Patch13:	webkit-icu68.patch
Patch14:	grammar.patch
# from AltLinux
Patch15:	webkitgtk-2.4.11-alt-SoupSession.patch
Patch17:	aarch64_cache_flush.patch
Patch18:	webkitgtk-x86-assembler-fix.patch
Patch19:	webkitgtk-2.1.92-alt-gtk2_compatibility.patch
Patch20:	webkitgtk-2.4.11-alt-python2.patch
# e2k
Patch100:	0001-disable-jit-in-automake.patch
Patch101:	0002-e2k-definitions.patch
Patch102:	0003-minibrowser-should-be-linked-with-javascriptcoregtk.patch
Patch103:	e2k-remove-unsupported-flag.patch
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	flex
BuildRequires:	gperf
BuildRequires:	gtk-doc
BuildRequires:	libtool
BuildRequires:	icu-devel >= 49
BuildRequires:	jpeg-devel
BuildRequires:	libstdc++-devel
BuildRequires:	/usr/bin/python2
BuildRequires:	pkgconfig(enchant-2)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gail)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(geoclue-2.0)
BuildRequires:	pkgconfig(gnome-keyring-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libsecret-1)
BuildRequires:	pkgconfig(libsoup-2.4)
BuildRequires:	pkgconfig(libwebp)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ruby)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xdamage)

%description
WebKit is an open source web browser engine.

#----------------------------------------------------------------------------

%package -n %{sname}%{libver}
Summary:	GTK+ port of WebKit web browser engine - shared files
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Conflicts:	%{libname} < 1:1.4.1-5
Conflicts:	%{sname} < 1:1.4.1-6
Conflicts:	%{_lib}webkitgtk1.0_2 < 1:1.4.1
%rename %{sname}

%description -n %{sname}%{libver}
WebKit is an open source web browser engine.
This package contains the shared files used by %{sname}%{libver}

%files -n %{sname}%{libver} -f WebKitGTK-2.0.lang
%dir %{_datadir}/webkitgtk-1.0
%{_datadir}/webkitgtk-1.0/images
%{_datadir}/webkitgtk-1.0/resources

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	GTK+ port of WebKit web browser engine
Group:		System/Libraries
Obsoletes:	%{inspectorname} < 2:2.4.11

%description -n %{libname}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+ UI toolkit on platforms like
Linux.

%files -n %{libname}
%{_libdir}/lib%{sname}gtk-%{libver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libjavascriptcoregtk}
Summary:	GTK+ port of WebKit web browser engine
Group:		System/Libraries
Provides:	javascriptcoregtk-%{libver}()(%{__isa_bits}bit) = %{EVRD}
%ifarch %{ix86}
Provides:	javascriptcoregtk-%{libver} = %{EVRD}
%endif
Obsoletes:	%{_lib}javascriptcoregtk1.0 < %{EVRD}

%description -n %{libjavascriptcoregtk}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+ UI toolkit on platforms like
Linux.

%files -n %{libjavascriptcoregtk}
%{_libdir}/libjavascriptcoregtk-%{libver}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for WebKit GTK+ port
Group:		Development/GNOME and GTK+
Provides:	webkitgtk-devel = %{version}-%{release}
Provides:	libwebkitgtk-devel = %{version}-%{release}
Provides:	%{mklibname webkitgtk -d} = %{version}-%{release}
Requires:	%{libname} = %{EVRD}
Requires:	%{libjavascriptcoregtk} = %{EVRD}
Requires:	%{girjscore} = %{EVRD}
Requires:	%{girname} = %{EVRD}

%description -n %{devname}
The GTK+ port of WebKit is intended to provide a browser component
primarily for users of the portable GTK+ UI toolkit on platforms like
Linux. This package contains development headers.

%files -n %{devname}
%{_libdir}/lib%{sname}gtk-%{libver}.so
%{_libdir}/libjavascriptcoregtk-%{libver}.so
%{_includedir}/%{sname}gtk-%{libver}
%{_libdir}/pkgconfig/%{sname}-%{libver}.pc
%{_libdir}/pkgconfig/javascriptcoregtk-%{libver}.pc
%{_datadir}/gir-1.0/JavaScriptCore-%{libver}.gir
%{_datadir}/gir-1.0/WebKit-%{libver}.gir
%{_datadir}/gtk-doc/html/webkitgtk/*

#----------------------------------------------------------------------------

%package -n %{sname}-gtklauncher
Summary:	WebKit GTK+ example application
Group:		Development/GNOME and GTK+

%description -n %{sname}-gtklauncher
GtkLauncher is an example application for WebKit GTK+.

%files -n %{sname}-gtklauncher
%{_libdir}/%{sname}/GtkLauncher

#----------------------------------------------------------------------------

%package -n %{sname}-jsc
Summary:	JavaScriptCore shell for WebKit GTK+
Group:		Development/GNOME and GTK+

%description -n %{sname}-jsc
jsc is a shell for JavaScriptCore, WebKit's JavaScript engine. It
allows you to interact with the JavaScript engine directly.

%files -n %{sname}-jsc
%{_bindir}/jsc-1

#----------------------------------------------------------------------------

%package -n %{girjscore}
Summary:	GObject Introspection interface description for JSCore
Group:		System/Libraries
Conflicts:	%{_lib}webkitgtk1.0_2 < %{EVRD}

%description -n %{girjscore}
GObject Introspection interface description for JSCore.

%files -n %{girjscore}
%{_libdir}/girepository-1.0/JavaScriptCore-%{libver}.typelib

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{sname}
Group:		System/Libraries
Conflicts:	%{_lib}webkitgtk1.0_2 < %{EVRD}

%description -n %{girname}
GObject Introspection interface description for WebKit.

%files -n %{girname}
%{_libdir}/girepository-1.0/WebKit-%{libver}.typelib

#----------------------------------------------------------------------------

%prep
%autosetup -N -n %{oname}-%{version}
%autopatch -p1 -M99
%ifarch %{e2k}
%autopatch -p1 -m100 -M110
%endif
# Don't force -O2
sed -i 's/-O2//g' configure.ac

%build
export PYTHON=%{__python2}

# Use linker flags to reduce memory consumption on low-mem architectures
%ifarch %{arm}
%define lowmemflags -Wl,--no-keep-memory -Wl,--reduce-memory-overheads
export CFLAGS="`echo %{optflags} %lowmemflags | sed -e 's/-gdwarf-4//' -e 's/-fvar-tracking-assignments//' -e 's/-frecord-gcc-switches//'`"
mkdir -p bfd
ln -s %{_bindir}/ld.bfd bfd/ld
export PATH=$PWD/bfd:$PATH
export CC="%{__cc} -fuse-ld=bfd"
export CXX="%{__cxx} -fuse-ld=bfd"
%global ldflags %{ldflags} -fuse-ld=bfd
%else
%global optflags %{optflags} -Wno-expansion-to-defined -DENABLE_YARR_JIT=0
export CFLAGS="`echo %{optflags} | sed -e 's/-gdwarf-4//' -e 's/ -g / /' -e 's/-fvar-tracking-assignments//' -e 's/-frecord-gcc-switches//'`"
%endif

export CXXFLAGS="$CFLAGS"

%configure \
	--enable-dependency-tracking \
	--with-gtk=2.0 \
	--disable-webkit2 \
%ifarch %{x86_64} %{ix86} %{arm}
	--enable-jit \
%endif
%ifarch aarch64
	--disable-jit \
%endif
	--enable-video \
	--enable-introspection \
	PYTHON=%{__python2}

make V=1 -j4

%install
%makeinstall_std
mkdir -p %{buildroot}%{_libdir}/%{sname}
install -m 755 Programs/GtkLauncher %{buildroot}%{_libdir}/%{sname}/

rm -rf %{buildroot}%{_datadir}/gtk-doc/html/webkitdomgtk/

# only useful for testing, should not be installed system-wide.
# reported upstream as 22812 - AdamW 2008/12
rm -rf %{buildroot}%{_libdir}/libtestnetscapeplugin.*

%find_lang WebKitGTK-2.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20163 |21mr|webmin-2.105-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# zero out some useless deps.
# (tv) we'd better had a link in minicom & package Encode::HanConvert:
%global __requires_exclude /sbin/runscript|perl\\((\\.|\\.\\.)::|perl\\((ctime.pl|saa-lib.pl|system-status-lib.pl)\\)||perl\\(gray-theme::gray-theme-lib.pl\\)
%global __provides_exclude perl\\(.*\\)
# don't spend time with this either
%global debug_package %{nil}

Summary:	An SSL web-based administration interface for Unix systems
Name:		webmin
Version:	2.105
Release:	1
License:	BSD
Group:		System/Configuration/Other
Url:		https://www.webmin.com/webmin/
# https://github.com/webmin/webmin
Source0:	https://sourceforge.net/projects/webadmin/files/webmin/%{version}/%{name}-%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Source2:	other.modules.tar.bz2
# some images were missing
Source33:	advanced.png
Source34:	descs.png
Source4:	webmin-postinstallscript.sh
Source5:	webmin
Source6:	webmin.initscript
Source9:	http://www.openit.it/index.php/openit_en/content/download/2474/10171/file/openvpn-3.2.wbm
Source10:	webmin.pam
Source11:	webmin-16.png
Source12:	webmin-32.png
Source13:	webmin-48.png
# uses include instead of pam_stack
Source14:	webmin.pam-new
Source15:	webmin.logrotate
Source17:	config.apache
Source18:	config.at
Source19:	config.cron
Source20:	config.dovecot
Source21:	config.mysql
Source22:	config.pam
Source23:	config.samba
Source24:	config.shorewall
Source25:	config.sshd
Source26:	config.xinetd
Source27:	config.useradmin
# Russian translations
Source50:	webmin-1.941-translate_ru.tar.gz
# (gc) have the updates; this needs to change for each version and/or release, see
# http://www.webmin.com/webmin/updates.html
Patch5:		webmin-fix-newmods.patch
#Patch7:		webmin-0.85-never-fail-detect-os.patch
Patch8:		webmin-2.001-enable-changed-theme-at-installation.patch
Patch19:	webmin-0.92-add-default-configs-logviewer-fp2k.patch
Patch21:	webmin-0.950-add-netsaint-mandrake-config.patch
Patch23:	webmin-2.105-ssl-location.patch
Patch29:	webmin-2.001-let-localauth-config.patch
Patch37:	webmin-2.001-webmin-temp-permission-fix.patch
Patch38:	webmin-ssldir-cosmetic.diff
Patch39:	webmin-fix-bandwith.diff
Patch44:	webmin-openvpn-config.patch
Patch45:	webmin-2.102-disable-update-notifications.patch
Patch47:	webmin-2.001-add-rosa-branding.patch
Requires:	lsof
Requires:	perl
Requires:	perl(CGI)
Requires:	perl(DBD::mysql)
Requires:	perl(JSON::PP)
Requires:	perl(HTML::Parser)
Requires(pre):	chkconfig
Requires(pre):	coreutils
Requires(pre):	findutils
Requires(pre):	grep
Requires(pre):	initscripts
Requires(pre):	perl-Authen-PAM
Requires(pre):	perl-Net_SSLeay
Requires(pre):	sed
Requires(post): systemd
Provides:	%{name}-%{version} = %{EVRD}
Provides:	%{name}-theme-mandriva = %{EVRD}
BuildArch:	noarch

%description
A web-based administration interface for Unix systems. Using Webmin you can
configure DNS, Samba, NFS, local/remote filesystems, Apache, Sendmail/Postfix,
and more using your web browser.

After installation, enter the URL https://localhost:10000/ into your browser
and login as root with your root password. Please consider logging in and
modify your password for security issue.

PLEASE NOTE THAT THIS VERSION NOW USES SECURE WEB TRANSACTIONS: YOU HAVE TO
LOGIN TO "https://localhost:10000/" AND NOT "http://localhost:10000/".

%files
%defattr(-, root, root, 0755)
%doc LICENCE
%{_initrddir}/webmin
%config(noreplace) %{_sysconfdir}/pam.d/webmin
%config(noreplace) %{_sysconfdir}/logrotate.d/webmin
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_datadir}/applications/*.desktop
%{_tmpfilesdir}/%{name}.conf

%post
if [ "$1" != 0 ]; then
	service webmin status >/dev/null 2>/dev/null && need_restart=1
	service webmin stop >/dev/null 2>/dev/null || :
else
	[[ -e /etc/cron.allow ]] && if [ "x`grep root /etc/cron.allow`" == "x" ] ; then
		echo root >> /etc/cron.allow
	fi
fi
/usr/share/webmin/postinstall.sh
%_post_service webmin
[[ -n $need_restart ]] && service webmin start >/dev/null 2>/dev/null || :

%preun
%_preun_service webmin

%postun
if [ "$1" = 0 ]; then
	rm -rf /etc/webmin /var/webmin /var/lib/webmin /var/run/webmin /var/log/webmin
fi

#----------------------------------------------------------------------------

%prep
%setup -q -a 2
%setup -q -D -T -c -a 9 -n %{name}-%{version}

tar -xvzf %{SOURCE50}

%patch5 -p0
#%%patch7 -p1
%patch8 -p1

%patch19 -p0
%patch21 -p0
%patch23 -p1
%patch29 -p1
%patch37 -p1
%patch38 -p1
%patch39 -p1
%patch44 -p1
%patch45 -p1
%patch47 -p1

rm -rf cfengine inetd jabber netsaint pptp-server sentry webalizer wuftpd

rm -rf JSON

find bind8 -type f -maxdepth 1 | xargs perl -pi -e 's|/var/run/named\.pid|/var/run/named/named.pid|'

# Add rosa-linux to known OS
cp -f config-{mandrake,rosa}-linux
for i in *; do
	if [ -f $i/config-mandrake-linux ]; then
		cp -f $i/config-{mandrake,rosa}-linux
	fi
done
for i in *; do
	if [ -f $i/mandrake-linux-lib.pl ]; then
		cp -f $i/{mandrake,rosa}-linux-lib.pl
	fi
done
cp -f servers/images/{mandrake,rosa}.gif
cp -f authentic-theme/images/modules/servers/{mandrake,rosa}.gif

sed -i 's/^interfaces_type=.*/interfaces_type=rosa/' dhcpd/config-rosa-linux
sed -i 's/if (\x24gconfig{\x27os_type\x27} eq \x27mandrake-linux\x27) {/if (\x24gconfig{\x27os_type\x27} eq \x27rosa-linux\x27) {/' net/rosa-linux-lib.pl
sed -i '/eq \x27mandrake-linux\x27/i (\x24gconfig{\x27os_type\x27} eq \x27rosa-linux\x27) ||' net/rosa-linux-lib.pl
sed -i 's/ mandrake-linux/ rosa-linux mandrake-linux/' */module.info
sed -i 's/,mandrake-Mandrake,/,rosa-Rosa,mandrake-Mandrake,s/' dhcpd/config.info*
sed -i 's/,mandrake-MANDRAKE,/,rosa-ROSA,mandrake-MANDRAKE,s/' dhcpd/config.info*
sed -i '/mandrake/i \\x24f =~ \x2f^rosa\x2f ||' init/init-lib.pl
sed -i '/mandrake-linux/i [ \x27rosa\x27, \x27Rosa Linux\x27, \x27rosa-linux\x27 ],' servers/servers-lib.pl

# adapt to systemd
perl -pi -e 's|/etc/(rc.d/)*init.d/([^ ]*)|/sbin/service \2|g' */config-rosa-linux* */config-\*-linux net/rosa-linux-lib.pl

(find . -name '*.cgi' ; find . -name '*.pl') | perl perlpath.pl /usr/bin/perl -
rm -f mount/freebsd-mounts-*
rm -f mount/openbsd-mounts-*

%build

%install
# IMPORTANT: there is no %%{_datadir} and so on, since the directories are decided by the post install script.
mkdir -p %{buildroot}/usr/share/webmin
mkdir -p %{buildroot}/%{_initrddir}
mkdir -p %{buildroot}/usr/bin

find -type f -print0 | xargs -0 chmod a+r
find -type d -print0 | xargs -0 chmod a+rx

cp -a * %{buildroot}/usr/share/webmin
install -m755 %{SOURCE6} %{buildroot}/%{_initrddir}/webmin
install -m755 %{SOURCE4} %{buildroot}/usr/share/webmin/postinstall.sh
install -m755 %{SOURCE5} %{buildroot}/usr/bin

mkdir -p %{buildroot}/%{_sysconfdir}/pam.d

install -m755 %{SOURCE14} %{buildroot}/%{_sysconfdir}/pam.d/webmin

rm -rf %{buildroot}/usr/share/webmin/*/{CVS,*/CVS}
rm -f `find %{buildroot} -type f -name .cvsignore`

echo "rpm" > %{buildroot}/usr/share/webmin/install-type

# remove macos files (breaks build in find command in find-debuginfo.sh)
rm -f %{buildroot}/usr/share/webmin/mount/macos-mounts*

echo 'blue-theme' > %{buildroot}%{_datadir}/webmin/defaulttheme

# Install icons
install -d -m 0755 %{buildroot}%{_liconsdir}
install -d -m 0755 %{buildroot}%{_miconsdir}
install -m 0644 %{SOURCE11} %{buildroot}%{_miconsdir}/webmin.png
install -m 0644 %{SOURCE12} %{buildroot}%{_iconsdir}/webmin.png
install -m 0644 %{SOURCE11} %{buildroot}%{_liconsdir}/webmin.png

# XDG menu
install -d %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/rosa-%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=%{summary}
Exec=%{_bindir}/www-browser https://localhost:10000/
Icon=%{name}
Terminal=false
Type=Application
Categories=X-Mandriva-System-Configuration-Other;Settings;
EOF

rm -fr %{buildroot}/usr/share/webmin/acl/Authen-SolarisRBAC-0.1

#logrotate
install -d %{buildroot}%{_sysconfdir}/logrotate.d
install -m 0644 %{SOURCE15} %{buildroot}%{_sysconfdir}/logrotate.d/webmin

# create /var/run/webmin
mkdir -p %{buildroot}%{_tmpfilesdir}
cat > %{buildroot}%{_tmpfilesdir}/%{name}.conf <<EOF
d /run/webmin 0700 root bin -
EOF

# configs
cp -f %{SOURCE17} %{buildroot}%{_datadir}/%{name}/apache/config-rosa-linux
cp -f %{SOURCE18} %{buildroot}%{_datadir}/%{name}/at/config-rosa-linux
cp -f %{SOURCE19} %{buildroot}%{_datadir}/%{name}/cron/config-rosa-linux
cp -f %{SOURCE20} %{buildroot}%{_datadir}/%{name}/dovecot/config-rosa-linux
cp -f %{SOURCE21} %{buildroot}%{_datadir}/%{name}/mysql/config-rosa-linux
cp -f %{SOURCE22} %{buildroot}%{_datadir}/%{name}/pam/config-rosa-linux
cp -f %{SOURCE23} %{buildroot}%{_datadir}/%{name}/samba/config-rosa-linux
cp -f %{SOURCE24} %{buildroot}%{_datadir}/%{name}/shorewall/config-rosa-linux
cp -f %{SOURCE25} %{buildroot}%{_datadir}/%{name}/sshd/config-rosa-linux
cp -f %{SOURCE26} %{buildroot}%{_datadir}/%{name}/xinetd/config-rosa-linux
cp -f %{SOURCE27} %{buildroot}%{_datadir}/%{name}/useradmin/config-rosa-linux


sed -i 's/\x24config{\x27shorewall\x27} restart 2>&1/systemctl restart shorewall.service/' %{buildroot}%{_datadir}/%{name}/shorewall/restart.cgi
sed -i 's/\x24config{\x27shorewall\x27} start 2>&1/systemctl start shorewall.service/' %{buildroot}%{_datadir}/%{name}/shorewall/start.cgi
sed -i 's/\x24config{\x27shorewall\x27} stop 2>&1/systemctl stop shorewall.service/' %{buildroot}%{_datadir}/%{name}/shorewall/stop.cgi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20164 |21mr|webp-pixbuf-loader-0.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	WebP GDK Pixbuf Loader library
Name:		webp-pixbuf-loader
Version:	0.2.5
Release:	1
License:	LGPLv2.0+
Group:		Graphics
Url:		https://github.com/aruiz/webp-pixbuf-loader
Source0:	https://github.com/aruiz/webp-pixbuf-loader/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	meson
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(libwebp)

%description
WebP GDK Pixbuf Loader library.
It is plugin for load WebP in applications like eog.

%files
%doc README.md
%license LICENSE*
%{_datadir}/thumbnailers/webp-pixbuf.thumbnailer
%{_libdir}/gdk-pixbuf-2.0/*/loaders/libpixbufloader-webp.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1

sed -i "/libwebp/ s/>1.3.2/>=1.3.2/" meson.build

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20165 |21mr|webrtc-audio-processing-1.1-1.git.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 5a5aa66ada1f3e97d62cbd6843972bb427cbad65

%define major 1
%define libprocessing %mklibname webrtc-processing %{major}
%define libcoding %mklibname webrtc-coding %{major}
%define devname %mklibname webrtc -d

%define _disable_ld_no_undefined 1

Summary:	Real-Time Communication Library for Web Browsers
Name:		webrtc-audio-processing
Version:	1.1
Release:	1.git.2
License:	BSD-3-Clause
Group:		System/Libraries
Url:		http://www.freedesktop.org/software/pulseaudio/webrtc-audio-processing/
Source0:	https://gitlab.freedesktop.org/pulseaudio/webrtc-audio-processing/-/archive/%{commit}/webrtc-audio-processing-%{commit}.tar.gz
# force use C++17
Patch1:		webrtc-audio-processing-1.1-force-c++17.patch
BuildRequires:	meson
BuildRequires:	abseil-cpp-devel

%description
WebRTC is an open source project that enables web browsers with Real-Time
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
components have been optimized to best serve this purpose.

WebRTC implements the W3C's proposal for video conferencing on the web.

#----------------------------------------------------------------------------

%package -n %{libprocessing}
Summary:	Real-Time Communication Library for Web Browsers
Group:		System/Libraries

%description -n %{libprocessing}
WebRTC is an open source project that enables web browsers with Real-Time
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
components have been optimized to best serve this purpose.

WebRTC implements the W3C's proposal for video conferencing on the web.

%files -n %{libprocessing}
%{_libdir}/libwebrtc-audio-processing-1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libcoding}
Summary:	Real-Time Communication Library for Web Browsers
Group:		System/Libraries

%description -n %{libcoding}
WebRTC is an open source project that enables web browsers with Real-Time
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
components have been optimized to best serve this purpose.

WebRTC implements the W3C's proposal for video conferencing on the web.

%files -n %{libcoding}
%{_libdir}/libwebrtc-audio-coding-1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Real-Time Communication Library for Web Browsers
Group:		Development/C
Requires:	%{libprocessing} = %{EVRD}
Requires:	%{libcoding} = %{EVRD}
Provides:	webrtc-audio-processing-devel = %{EVRD}
Provides:	webrtc-audio-processing-devel-static = %{EVRD}
Obsoletes:	%{mklibname webrtc -d -s} < 0.1-2

%description -n %{devname}
WebRTC is an open source project that enables web browsers with Real-Time
Communications (RTC) capabilities via simple Javascript APIs. The WebRTC
components have been optimized to best serve this purpose.

WebRTC implements the W3C's proposal for video conferencing on the web.

%files -n %{devname}
%doc AUTHORS COPYING NEWS README
%{_includedir}/webrtc-audio-processing-1/
%{_libdir}/libwebrtc-audio-processing-1.so
%{_libdir}/libwebrtc-audio-coding-1.so
%{_libdir}/pkgconfig/webrtc-*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20166 |21mr|weka-3.6.14-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _version %(echo %version | tr . -)

# whether to run jUnit tests, caution: takes horribly long
# currently disabled as the tests fail, filed in upstream's bugtracker:
# https://sourceforge.net/tracker2/?func=detail&aid=2648813&group_id=5091&atid=105091
# %%global _with_tests 1
%bcond_with _tests

Name:          weka
Version:       3.6.14
Release:       11
Summary:       Waikato Environment for Knowledge Analysis
License:       GPLv2+
URL:           http://www.cs.waikato.ac.nz/ml/%{name}/
Source0:       http://downloads.sourceforge.net/weka/%{name}-%{_version}.zip
Source1:       weka.desktop
Source2:       weka.appdata.xml

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: desktop-file-utils
BuildRequires: imagemagick
BuildRequires: pkgconfig(appstream-glib)
BuildRequires: maven-local
BuildRequires: mvn(java_cup:java_cup)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)

# Other runtime dependencies
Requires:      hsqldb
Requires:      java >= 1:1.6.0
Requires:      javasqlite
Requires:      libsvm-java
Requires:      mysql-connector-java
Requires:      postgresql-jdbc
# Explicit requires for javapackages-tools since weka script
# uses /usr/share/java-utils/java-functions
Requires:      javapackages-tools

%description
Weka is a collection of machine learning algorithms for data mining tasks.
The algorithms can either be applied directly to a data-set or called from
your own Java code. Weka contains tools for data pre-processing, 
classification, regression, clustering, association rules, and visualization.
It is also well-suited for developing new machine learning schemes.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{_version}

# extract the sources jar
%jar -xf %{name}-src.jar

# remove prebuilt jars
find -name '*.jar' -delete -o -name '*.class' -delete
rm -r doc wekaexamples.zip

%pom_xpath_set pom:project/pom:artifactId %{name}
%pom_xpath_set pom:project/pom:version %{version}

# Use default maven setting
%pom_xpath_remove pom:project/pom:build/pom:directory
%pom_xpath_remove pom:outputDirectory
%pom_xpath_remove pom:testOutputDirectory

# Unneeded tasks
%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:executions"
# Disable doclint problems
%pom_xpath_inject "pom:plugin[pom:artifactId='maven-javadoc-plugin']/pom:configuration" "<additionalparam>-Xdoclint:none</additionalparam>"

# Fix dependency
%pom_change_dep net.sf.squirrel-sql.thirdparty-non-maven:java-cup java_cup:java_cup

# Fix non ASCII chars
for s in src/main/java/weka/gui/HierarchyPropertyParser.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

# fix incorrect-fsf-address
sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301," COPYING

# Install jar in proper location
%mvn_file nz.ac.waikato.cms.%{name}:%{name} %{name}
%mvn_alias nz.ac.waikato.cms.%{name}:%{name} :%{name}-dev :%{name}-stable

%build

%if %{without _tests}
opts="-f" 
%endif
%mvn_build $opts

%install
%mvn_install

# wrapper script
%jpackage_script weka.gui.GUIChooser "" "" %{name}:java_cup:libsvm:hsqldb:../../javasqlite/sqlite.jar:mysql-connector-java:postgresql %{name} true

# desktop file and icon
desktop-file-install \
--dir=%{buildroot}%{_datadir}/applications %{SOURCE1}

# install icons
convert %{name}.ico %{name}.png
for p in 32x32 64x64 128x128 256x256; do
    mkdir -p %{buildroot}%{_datadir}/icons/hicolor/${p}/apps
    convert src/main/java/weka/gui/%{name}_icon_new.png -resize ${p} \
        %{buildroot}%{_datadir}/icons/hicolor/${p}/apps/%{name}.png
done
install -Dp src/main/java/weka/gui/%{name}_icon_new.png \
 %{buildroot}%{_datadir}/icons/hicolor/457x457/apps/%{name}.png

# appdata 6652 Segmentation fault      (core dumped)
#install -Dp %%{SOURCE2} %%{buildroot}%%{_datadir}/appdata/%%{name}.appdata.xml
#appstream-util validate-relax --nonet %%{buildroot}%%{_datadir}/appdata/%%{name}.appdata.xml

%files -f .mfiles
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*x*/apps/%{name}.png
#%%{_datadir}/appdata/%%{name}.appdata.xml
%doc documentation.html documentation.css
%doc README WekaManual.pdf changelogs data
%license COPYING

%files javadoc -f .mfiles-javadoc
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20167 |21mr|weld-api-2.3-7.SP2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .SP2
%global namedversion %{version}%{?namedreltag}

Name:             weld-api
Version:          2.3
Release:          7%{namedreltag}
Summary:          Weld API
Group:            Development/Java
License:          ASL 2.0
URL:              http://weld.cdi-spec.org
Source0:          https://github.com/weld/api/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(javax.enterprise:cdi-api)
BuildRequires:    mvn(javax.inject:javax.inject)
BuildRequires:    mvn(javax.validation:validation-api)
BuildRequires:    mvn(org.apache.maven.surefire:surefire-testng)
BuildRequires:    mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:    mvn(org.codehaus.mojo:buildnumber-maven-plugin)
BuildRequires:    mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires:    mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec)
BuildRequires:    mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires:    mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires:    mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires:    mvn(org.jboss.weld:weld-parent:pom:)
BuildRequires:    mvn(org.testng:testng::jdk15:)

%description
Weld specifc extensions to the CDI API

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n api-%{namedversion}

%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin ":maven-checkstyle-plugin" weld/pom.xml
%pom_remove_plugin ":maven-checkstyle-plugin" weld-spi/pom.xml

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20168 |21mr|weld-core-2.3.5-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:           weld-core
Version:        2.3.5
Release:        7
Summary:        Reference Implementation for JSR-299: Contexts and Dependency Injection (CDI)
Group:          Development/Java
# OFL: ./probe/core/src/main/client/font-awesome.*

# MIT: ./probe/core/target/client/app.js
# ./probe/core/target/client/basic.css
# ./probe/core/target/client/bootstrap-theme.min-3.3.1.css
# ./probe/core/target/client/bootstrap.min-3.3.1.css
# ./probe/core/target/client/bootstrap.min-3.3.1.js
# ./probe/core/target/client/d3.min-3.5.2.js
# ./probe/core/target/client/ember.prod-1.9.0.js
# ./probe/core/target/client/handlebars-v2.0.0.js
# ./probe/core/target/client/jquery-2.1.1.min.js
# ./probe/core/target/client/moment.min-2.8.4.js

# https://issues.jboss.org/browse/WELD-2173
License:        ASL 2.0 and (CDDL or GPLv2 with exceptions) and LGPLv2+ and MIT and OFL
URL:            http://weld.cdi-spec.org/
Source0:        https://github.com/weld/core/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
Patch0:         0001-Add-support-for-newer-jboss-logging-tools.patch
Patch1:         weld-core-2.3.2.Final-Remove-gwtdev-environment.patch

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava:18.0)
BuildRequires:  mvn(io.undertow:undertow-servlet)
BuildRequires:  mvn(javax.el:el-api)
BuildRequires:  mvn(javax.enterprise:cdi-api)
BuildRequires:  mvn(javax.faces:jsf-api)
BuildRequires:  mvn(javax.portlet:portlet-api)
BuildRequires:  mvn(javax.servlet.jsp:jsp-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.sourceforge.findbugs:annotations)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.apache.tomcat:tomcat-catalina)
BuildRequires:  mvn(org.codehaus.groovy:groovy-all)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server:8.1)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet:8.1)
BuildRequires:  mvn(org.eclipse.jetty:jetty-webapp:8.1)
BuildRequires:  mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires:  mvn(org.jboss.arquillian:arquillian-bom:pom:)
BuildRequires:  mvn(org.jboss.classfilewriter:jboss-classfilewriter)
BuildRequires:  mvn(org.jboss:jandex)
BuildRequires:  mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires:  mvn(org.jboss.logging:jboss-logging)
# https://issues.jboss.org/browse/WELD-2177
# https://issues.jboss.org/browse/LOGTOOL-110
BuildRequires:  mvn(org.jboss.jdeparser:jdeparser:1)
BuildRequires:  mvn(org.jboss.logging:jboss-logging-processor:1)
BuildRequires:  mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
BuildRequires:  mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec)
BuildRequires:  mvn(org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires:  mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires:  mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires:  mvn(org.jboss.weld:weld-api)
BuildRequires:  mvn(org.jboss.weld:weld-parent:pom:)
BuildRequires:  mvn(org.jboss.weld:weld-spi)
# ./probe/core/src/main/client
Provides:       bundled(fontawesome-fonts) = 4.2.0
Provides:       bundled(fontawesome-fonts-web) = 4.2.0

%description
Weld is the reference implementation (RI) for JSR-299: Java Contexts and
Dependency Injection for the Java EE platform (CDI). CDI is the Java standard
for dependency injection and contextual lifecycle management, and integrates
cleanly with the Java EE platform. Any Java EE 6-compliant application server
provides support for JSR-299 (even the web profile). 

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n core-%{namedversion}
%patch0 -p1
%patch1 -p1

find . -name '*.jar' -exec rm {} \;
find . -name '*.class' -exec rm {} \;

# Not needed for build
%pom_remove_plugin org.eclipse.m2e:lifecycle-mapping

# We don't want to build these modules
# org.jboss.cdi.tck:cdi-tck-api:1.2.8.Final
%pom_disable_module porting-package
%pom_disable_module tests
%pom_disable_module tests-arquillian
%pom_disable_module inject-tck-runner
%pom_disable_module jboss-tck-runner
%pom_disable_module tests/base environments/servlet
%pom_disable_module tests/jetty environments/servlet
%pom_disable_module tests/tomcat environments/servlet
%pom_disable_module tests environments/se

%pom_disable_module tests probe
# ro.isdc.wro4j:wro4j-maven-plugin:1.7.7
%pom_remove_plugin ro.isdc.wro4j:wro4j-maven-plugin probe/core

# Don't ship or run checkstyle configuration, see rhbz #825355
%pom_remove_plugin org.apache.maven.plugins:maven-checkstyle-plugin

# Requires jetty6
rm -rf environments/servlet/core/src/main/java/org/jboss/weld/environment/gwtdev
%pom_remove_dep -r org.mortbay.jetty environments/servlet

# obsoletes package jetty-plus
%pom_remove_dep -r org.eclipse.jetty:jetty-plus examples
%pom_remove_dep -r org.eclipse.jetty:jetty-plus environments/servlet
%pom_remove_dep -r org.eclipse.jetty:jetty-plus environments/servlet/tests/jetty

# Used to compile test classes, but we do not execute tests at all
%pom_remove_plugin org.apache.maven.plugins:maven-compiler-plugin environments/se/core

# Do not bundle system libraries (e. g. com.sun.tools)
%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :maven-shade-plugin environments/se/build environments/servlet/build
%pom_xpath_remove -r pom:dependency/pom:optional environments/se/build environments/servlet/build

%pom_change_dep org.glassfish:javax.el javax.el:el-api tests-common

%pom_xpath_set pom:properties/pom:jboss.logging.processor.version 1
%pom_change_dep -r :jboss-logging-processor ::1

# Fix build against tomcat API
sed -i -e 's/InstantiationException/InstantiationException, NoSuchMethodException/' \
  environments/servlet/core/src/main/java/org/jboss/weld/environment/tomcat/{Weld,}ForwardingInstanceManager.java

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20169 |21mr|weld-parent-34-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:             weld-parent
Version:          34
Release:          8
Summary:          Parent POM for Weld
License:          ASL 2.0
URL:              http://weld.cdi-spec.org
Source0:          https://github.com/weld/parent/archive/%{version}.tar.gz

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(org.apache.maven.plugins:maven-install-plugin)
BuildRequires:    mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:    mvn(org.codehaus.mojo:build-helper-maven-plugin)

%description
Parent POM for Weld

%prep
%setup -q -n parent-%{version}

%pom_remove_plugin ":maven-enforcer-plugin"
%pom_remove_plugin ":maven-remote-resources-plugin"
%pom_remove_plugin ":maven-eclipse-plugin"
%pom_remove_plugin ":buildnumber-maven-plugin"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20170 |21mr|wget-1.21.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A utility for retrieving files using the HTTP or FTP protocols
Name:		wget
Version:	1.21.3
Release:	1
License:	GPLv3+
Group:		Networking/WWW
Url:		https://www.gnu.org/software/wget
Source0:	ftp://ftp.gnu.org/pub/gnu/wget/%{name}-%{version}.tar.gz
# The following patch is needed for authenticated sites where login can have '@':
Patch0:		wget-1.10-url_password.patch
# needed by urpmi, inspired by http://matthewm.boedicker.org/code/src/wget_force_clobber.patch
Patch1:		wget-1.18-add-force-clobber-option.patch
Patch2:		wget-1.17.1-etc.patch
Patch3:		wget-1.16-dont-run-failing-test.patch
Patch4:		wget-1.17.1-disable-ssl2.patch
Patch5:		wget-1.20.1-default-content_disposition-on.patch
BuildRequires:	autoconf-archive
BuildRequires:	gettext >= 0.17
BuildRequires:	python3
BuildRequires:	texinfo
BuildRequires:	gettext-devel
BuildRequires:	perl(HTTP::Daemon)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libidn2)
BuildRequires:	pkgconfig(libpcre)
# We don't have it yet...
#BuildRequires:	pkgconfig(libpsl)
# Using LibreSSL instead of OpenSSL to allow GOST TLS
# Note: today (26.12.2019) OpenSSL 1.1+ supports TLS 1.3,
# LibreSSL still does not, but OpenSSL is 1.0 in ROSA,
# so switching to LibreSSL will not be a regression
BuildRequires:	pkgconfig(libressl)
BuildRequires:	pkgconfig(uuid)
Provides:	webclient = %{EVRD}
Provides:	webfetch = %{EVRD}

%description
GNU Wget is a file retrieval utility which can use either the HTTP or FTP
protocols. Wget features include the ability to work in the background
while you're logged out, recursive retrieval of directories, file name
wildcard matching, remote file timestamp storage and comparison, use of
Rest with FTP servers and Range with HTTP servers to retrieve files over
slow or unstable connections, support for Proxy servers, and
configurability.

%files -f %{name}.lang
%verify(not md5 size mtime) %config(noreplace) %{_sysconfdir}/wgetrc
%doc AUTHORS ChangeLog MAILING-LIST NEWS README
%{_bindir}/*
%{_infodir}/*
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
autoreconf -vfi

export OPENSSL_CFLAGS="$(pkg-config --cflags libressl)"
export OPENSSL_LIBS="$(pkg-config --libs libressl)"

# TODO: Enable libpsl when we will have the package
%configure \
	--enable-ipv6 \
	--enable-iri \
	--disable-rpath \
	--without-libpsl \
	--with-ssl=openssl

%make_build


%install
%make_install

%find_lang %{name} --all-name


%check
# need a lot of perl here
# just disable it for a time
#make check
# This test will not fail if there is no connection with internet
# --no-check-certificate to ignore missing SSL certificate
if %{buildroot}%{_bindir}/wget --no-check-certificate \
	"https://www.cryptopro.ru:4444/test/tls-cli.asp" 2>&1 | \
	grep -q ':unsupported algorithm$' ;
then
	echo "GOST is not supported"
	exit 1
fi
# TODO: check that it it linked against LibreSSL

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20171 |21mr|whdd-3.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Diagnostic and recovery tool for block devices
Name:		whdd
Version:	3.0
Release:	5
License:	GPLv1+
Group:		System/Kernel and hardware
Url:		https://github.com/krieger-od/whdd
Source0:	https://github.com/whdd/whdd/archive/3.0.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		whdd-2.2-optflags.patch
BuildRequires:	cmake
BuildRequires:	dialog-devel
BuildRequires:	pkgconfig(ncurses)

%description
WHDD is a diagnostic and recovery tool for block devices
(near to replace MHDD for Linux).

%files
%doc COPYING LICENSE README
%{_sbindir}/whdd
%{_sbindir}/whdd-cli

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%cmake \
	-DCLI:BOOL=ON
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20172 |21mr|which-2.21-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Displays where a particular program in your path is located
Name:		which
Version:	2.21
Release:	2
License:	GPLv3+
Group:		System/Base
Url:		ftp://ftp.gnu.org/gnu/which/
Source0:	ftp://ftp.gnu.org/gnu/which/%{name}-%{version}.tar.gz
Patch0:		which-2.6.jbj.patch
Patch3:		which-2.21-coverity-fixes.patch
# (tpg) liberty-devel
BuildRequires:	binutils-devel
BuildRequires:	readline-devel

%description
The which command shows the full pathname of a specified program, if
the specified program is in your PATH.

%files
%doc README* AUTHORS EXAMPLES INSTALL NEWS
%{_bindir}/which
%{_mandir}/man1/which.1*
%{_infodir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std

rm -rf %{buildroot}%{_infodir}/dir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20173 |21mr|whois-5.5.14-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Enhanced WHOIS client
Name:		whois
Version:	5.5.14
Release:	2
License:	GPLv2+
Group:		Networking/Other
Url:		http://www.linux.it/~md/software/
Source0:	http://ftp.debian.org/debian/pool/main/w/whois/%{name}_%{version}.tar.xz
BuildRequires:	gettext
BuildRequires:	pkgconfig(libidn2)
BuildRequires:  pkgconfig(libxcrypt)
Provides:	mkpasswd

%description
This is a new whois (RFC 954) client rewritten from scratch.

It is derived from and compatible with the usual BSD and RIPE whois(1)
programs.

It is intelligent and can automatically select the appropriate whois
server for most queries.

%files -f %{name}.lang
%license COPYING
%doc README
%config(noreplace) %{_sysconfdir}/whois.conf
%{_bindir}/whois
%{_bindir}/mkpasswd
%{_bindir}/%{name}-mkpasswd
%{_mandir}/man1/%{name}.1*
%{_mandir}/man1/mkpasswd.1*
%{_mandir}/man5/%{name}.conf.5*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%ifarch %{e2k}
# -MG is an unrecognized option for lcc
sed -i Makefile \
	-e 's/ -MG / /' \
	-e 's/Makefile.depend:/& version.h as_del.h as32_del.h ip_del.h ip6_del.h new_gtlds.h nic_handles.h tld_serv.h servers_charset.h/'
%endif

%build
%serverbuild
%make_build \
	CC=%{__cc} \
	LDFLAGS="%{ldflags}" \
	CONFIG_FILE="%{_sysconfdir}/whois.conf" \
	whois pos

%install
install -d %{buildroot}%{_bindir}
install -d %{buildroot}%{_sysconfdir}
install -d %{buildroot}%{_mandir}/man1

%makeinstall BASEDIR=%{buildroot} prefix=%{_prefix}/ mandir=%{_mandir}
%makeinstall BASEDIR=%{buildroot} prefix=%{_prefix}/ mandir=%{_mandir} -C po

install -m0644 whois.conf %{buildroot}%{_sysconfdir}

%find_lang %{name}
# keep the name as usual
ln -s ./mkpasswd %{buildroot}%{_bindir}/%{name}-mkpasswd


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20174 |21mr|wildfly-10.1.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

%global cachedir %{_var}/cache/%{name}
%global libdir   %{_var}/lib/%{name}
%global rundir   %{_var}/run/%{name}
%global homedir  %{_datadir}/%{name}
%global bindir   %{homedir}/bin
%global logdir   %{_var}/log/%{name}
%global confdir  %{_sysconfdir}/%{name}

%global wfuid 185

# Enabled modules:
%global modules appclient cmp configadmin connector ee ejb3 jacorb jaxr jaxrs jdr jsf jsf-injection jpa jsr77 mail messaging naming pojo sar security security-api system-jmx transactions web web-common webservices weld xts

# New modules added in WildFly
%global wildflymodules iiop-openjdk jberet

# Unavailable deps
%bcond_with azure

Name:          wildfly
Version:       10.1.0
Release:       15
Summary:       WildFly Application Server
License:       LGPLv2+ and ASL 2.0 and GPLv2 with exceptions
Group:         Development/Java
URL:           http://wildfly.org/
# sh wildfly-create-tarball.sh < NAMEDVERSION >
Source0:       %{name}-%{namedversion}-clean.tar.xz

# Makes possible to run WildFly AS in different directory by creating the structure and copying required configuration files
Source1:       wildfly-cp.sh
# console jar
Source2:       https://repository.jboss.org/nexus/content/repositories/public/org/jboss/hal/release-stream/2.8.27.Final/release-stream-2.8.27.Final-resources.jar
Source10:      wildfly-create-tarball.sh

Patch0:        wildfly-10.1.0-Remove-still-unavailable-in-Fedora-dependencies.patch
Patch1:        wildfly-10.1.0-Use-activation-classes-provided-by-the-JDK.patch
Patch2:        wildfly-10.1.0-Use-jws-classes-provided-by-the-JDK.patch
Patch3:        wildfly-10.1.0-Disable-jipijapa-support-for-Hibernate-4.1-since.patch
Patch4:        wildfly-10.1.0-Missing-module-dependencies-in-mime4j-com.sun.xml.bind-after-unbundling.patch

Patch5:        wildfly-10.1.0-Remove-artemis-native-extraction-we-are-linking-it-in-the-spec-file-instead.patch

Patch6:        wildfly-10.1.0-Remove-unavailable-azure-support.patch
# upstream patches
Patch7:        0001-WFLY-9628-Allow-to-switch-to-Hibernate-Validator-6.0.patch
Patch8:        fix-build-javax.validation.ValidatorFactory.patch
Patch9:        0001-javax.validation-version-fix.patch
Patch10:       release-stream.patch

BuildArch:     noarch

# Please keep alphabetically
BuildRequires: maven-local
BuildRequires: mvn(antlr:antlr)
BuildRequires: mvn(asm:asm)
BuildRequires: mvn(ch.qos.cal10n:cal10n-api) >= 0.8.1
BuildRequires: mvn(com.fasterxml:classmate) >= 1.3.1
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-annotations) >= 2.7.4
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-core) >= 2.7.4
BuildRequires: mvn(com.fasterxml.jackson.core:jackson-databind) >= 2.7.4
BuildRequires: mvn(com.fasterxml.jackson.datatype:jackson-datatype-jdk8) >= 2.7.4
BuildRequires: mvn(com.fasterxml.jackson.datatype:jackson-datatype-jsr310) >= 2.7.4
BuildRequires: mvn(com.fasterxml.jackson.jaxrs:jackson-jaxrs-base) >= 2.7.4
BuildRequires: mvn(com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider)
BuildRequires: mvn(com.fasterxml.jackson.module:jackson-module-jaxb-annotations) >= 2.7.4
BuildRequires: mvn(com.github.relaxng:relaxngDatatype)
BuildRequires: mvn(com.github.spullara.mustache.java:compiler)
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(com.h2database:h2)
BuildRequires: mvn(com.io7m.xom:xom)
%if %{with azure}
BuildRequires: mvn(com.microsoft.azure:azure-storage)
%endif
BuildRequires: mvn(com.sun.faces:jsf-api) >= 2.1.25
BuildRequires: mvn(com.sun.faces:jsf-impl)
BuildRequires: mvn(com.sun.xml.fastinfoset:FastInfoset)
BuildRequires: mvn(com.sun.istack:istack-commons-runtime)
BuildRequires: mvn(com.sun.istack:istack-commons-tools)
BuildRequires: mvn(com.sun.mail:javax.mail)
BuildRequires: mvn(com.sun.xml.bind.external:rngom)
BuildRequires: mvn(com.sun.xml.messaging.saaj:saaj-impl)
BuildRequires: mvn(com.sun.xsom:xsom)
BuildRequires: mvn(commons-beanutils:commons-beanutils)
BuildRequires: mvn(commons-cli:commons-cli)
BuildRequires: mvn(commons-codec:commons-codec)
BuildRequires: mvn(commons-collections:commons-collections)
BuildRequires: mvn(commons-digester:commons-digester)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(commons-pool:commons-pool)
BuildRequires: mvn(dom4j:dom4j)
BuildRequires: mvn(gnu.getopt:java-getopt)
BuildRequires: mvn(io.netty:netty-all)
BuildRequires: mvn(io.undertow:undertow-core) >= 1.4.0
BuildRequires: mvn(io.undertow:undertow-servlet)
BuildRequires: mvn(io.undertow:undertow-websockets-jsr)
BuildRequires: mvn(io.undertow.jastow:jastow)
BuildRequires: mvn(io.undertow.js:undertow-js)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.validation:validation-api) >= 2.0.1
BuildRequires: mvn(jaxen:jaxen)
BuildRequires: mvn(jboss.jaxbintros:jboss-jaxb-intros)
BuildRequires: mvn(joda-time:joda-time)
BuildRequires: mvn(net.jcip:jcip-annotations)
BuildRequires: mvn(net.shibboleth.utilities:java-support)
BuildRequires: mvn(org.apache.activemq:artemis-amqp-protocol)
BuildRequires: mvn(org.apache.activemq:artemis-cli)
BuildRequires: mvn(org.apache.activemq:artemis-commons)
BuildRequires: mvn(org.apache.activemq:artemis-core-client)
BuildRequires: mvn(org.apache.activemq:artemis-dto)
BuildRequires: mvn(org.apache.activemq:artemis-hornetq-protocol)
BuildRequires: mvn(org.apache.activemq:artemis-hqclient-protocol)
BuildRequires: mvn(org.apache.activemq:artemis-jms-client)
BuildRequires: mvn(org.apache.activemq:artemis-jms-server)
BuildRequires: mvn(org.apache.activemq:artemis-journal)
BuildRequires: mvn(org.apache.activemq:artemis-native)
BuildRequires: mvn(org.apache.activemq:artemis-proton-plug)
BuildRequires: mvn(org.apache.activemq:artemis-ra)
BuildRequires: mvn(org.apache.activemq:artemis-selector)
BuildRequires: mvn(org.apache.activemq:artemis-server)
BuildRequires: mvn(org.apache.activemq:artemis-service-extensions)
BuildRequires: mvn(org.apache.activemq:artemis-stomp-protocol)
BuildRequires: mvn(org.apache.avro:avro)
BuildRequires: mvn(org.apache.cxf:cxf-core) >= 3.1.6
BuildRequires: mvn(org.apache.cxf:cxf-rt-bindings-coloc)
BuildRequires: mvn(org.apache.cxf:cxf-rt-bindings-object)
BuildRequires: mvn(org.apache.cxf:cxf-rt-bindings-soap)
BuildRequires: mvn(org.apache.cxf:cxf-rt-bindings-xml)
BuildRequires: mvn(org.apache.cxf:cxf-rt-databinding-aegis)
BuildRequires: mvn(org.apache.cxf:cxf-rt-databinding-jaxb)
BuildRequires: mvn(org.apache.cxf:cxf-rt-frontend-jaxws)
BuildRequires: mvn(org.apache.cxf:cxf-rt-frontend-simple)
BuildRequires: mvn(org.apache.cxf:cxf-rt-management)
BuildRequires: mvn(org.apache.cxf:cxf-rt-security)
BuildRequires: mvn(org.apache.cxf:cxf-rt-security-saml)
BuildRequires: mvn(org.apache.cxf:cxf-rt-transports-http)
BuildRequires: mvn(org.apache.cxf:cxf-rt-transports-http-hc)
BuildRequires: mvn(org.apache.cxf:cxf-rt-transports-jms)
BuildRequires: mvn(org.apache.cxf:cxf-rt-transports-local)
BuildRequires: mvn(org.apache.cxf:cxf-rt-ws-addr)
BuildRequires: mvn(org.apache.cxf:cxf-rt-ws-mex)
BuildRequires: mvn(org.apache.cxf:cxf-rt-ws-policy)
BuildRequires: mvn(org.apache.cxf:cxf-rt-ws-rm)
BuildRequires: mvn(org.apache.cxf:cxf-rt-ws-security)
BuildRequires: mvn(org.apache.cxf:cxf-rt-wsdl)
BuildRequires: mvn(org.apache.cxf:cxf-tools-common)
BuildRequires: mvn(org.apache.cxf:cxf-tools-java2ws)
BuildRequires: mvn(org.apache.cxf:cxf-tools-validator)
BuildRequires: mvn(org.apache.cxf:cxf-tools-wsdlto-core)
BuildRequires: mvn(org.apache.cxf:cxf-tools-wsdlto-databinding-jaxb)
BuildRequires: mvn(org.apache.cxf:cxf-tools-wsdlto-frontend-jaxws)
BuildRequires: mvn(org.apache.cxf.services.sts:cxf-services-sts-core)
BuildRequires: mvn(org.apache.cxf.services.ws-discovery:cxf-services-ws-discovery-api)
BuildRequires: mvn(org.apache.cxf.xjc-utils:cxf-xjc-runtime)
BuildRequires: mvn(org.apache.cxf.xjcplugins:cxf-xjc-boolean) >= 3.0.5
BuildRequires: mvn(org.apache.cxf.xjcplugins:cxf-xjc-bug986)
BuildRequires: mvn(org.apache.cxf.xjcplugins:cxf-xjc-dv)
BuildRequires: mvn(org.apache.cxf.xjcplugins:cxf-xjc-ts)
BuildRequires: mvn(org.apache.httpcomponents:httpasyncclient)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.apache.httpcomponents:httpcore-nio)
BuildRequires: mvn(org.apache.httpcomponents:httpmime)
BuildRequires: mvn(org.apache.james:apache-mime4j-core)
BuildRequires: mvn(org.apache.lucene:lucene-backward-codecs)
BuildRequires: mvn(org.apache.lucene:lucene-facet)
BuildRequires: mvn(org.apache.lucene:lucene-misc)
BuildRequires: mvn(org.apache.lucene:lucene-queries)
BuildRequires: mvn(org.apache.lucene:lucene-queryparser)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires: mvn(org.apache.neethi:neethi)
BuildRequires: mvn(org.apache.openjpa:openjpa-kernel)
BuildRequires: mvn(org.apache.openjpa:openjpa-lib)
BuildRequires: mvn(org.apache.openjpa:openjpa-persistence)
BuildRequires: mvn(org.apache.qpid:proton-j)
BuildRequires: mvn(org.apache.qpid:proton-jms)
BuildRequires: mvn(org.apache.santuario:xmlsec)
BuildRequires: mvn(org.apache.ws.xmlschema:xmlschema-core)
BuildRequires: mvn(org.apache.wss4j:wss4j-bindings)
BuildRequires: mvn(org.apache.wss4j:wss4j-policy)
BuildRequires: mvn(org.apache.wss4j:wss4j-ws-security-common)
BuildRequires: mvn(org.apache.wss4j:wss4j-ws-security-dom)
BuildRequires: mvn(org.apache.wss4j:wss4j-ws-security-policy-stax)
BuildRequires: mvn(org.apache.wss4j:wss4j-ws-security-stax)
BuildRequires: mvn(org.bouncycastle:bcmail-jdk15on)
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.codehaus.jackson:jackson-core-asl)
BuildRequires: mvn(org.codehaus.jackson:jackson-jaxrs)
BuildRequires: mvn(org.codehaus.jackson:jackson-mapper-asl)
BuildRequires: mvn(org.codehaus.jackson:jackson-xc)
BuildRequires: mvn(org.codehaus.jettison:jettison)
BuildRequires: mvn(org.cryptacular:cryptacular)
BuildRequires: mvn(org.eclipse.jdt.core.compiler:ecj)
BuildRequires: mvn(org.eclipse.persistence:eclipselink)
BuildRequires: mvn(org.glassfish:javax.el-impl)
BuildRequires: mvn(org.glassfish:javax.enterprise.concurrent)
BuildRequires: mvn(org.glassfish:javax.json)
BuildRequires: mvn(org.glassfish.jaxb:codemodel)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-core)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-runtime)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-jxc)
BuildRequires: mvn(org.glassfish.jaxb:jaxb-xjc)
BuildRequires: mvn(org.glassfish.jaxb:txw2)
BuildRequires: mvn(org.hibernate:hibernate-core:4)
BuildRequires: mvn(org.hibernate:hibernate-entitymanager:4)
BuildRequires: mvn(org.hibernate:hibernate-infinispan:4)
BuildRequires: mvn(org.hibernate:hibernate-core) >= 5.0.10
BuildRequires: mvn(org.hibernate:hibernate-entitymanager)
BuildRequires: mvn(org.hibernate:hibernate-envers)
BuildRequires: mvn(org.hibernate:hibernate-java8)
BuildRequires: mvn(org.hibernate:hibernate-infinispan)
BuildRequires: mvn(org.hibernate:hibernate-search-backend-jgroups) >= 5.5.4
BuildRequires: mvn(org.hibernate:hibernate-search-backend-jms)
BuildRequires: mvn(org.hibernate:hibernate-search-engine)
BuildRequires: mvn(org.hibernate:hibernate-search-orm)
BuildRequires: mvn(org.hibernate:hibernate-search-serialization-avro)
BuildRequires: mvn(org.hibernate:hibernate-validator)
BuildRequires: mvn(org.hibernate:hibernate-validator-cdi)
BuildRequires: mvn(org.hibernate.common:hibernate-commons-annotations)
BuildRequires: mvn(org.hibernate.javax.persistence:hibernate-jpa-2.1-api)
BuildRequires: mvn(org.hornetq:hornetq-commons) >= 2.4.7
BuildRequires: mvn(org.hornetq:hornetq-core-client)
BuildRequires: mvn(org.hornetq:hornetq-jms-client)
BuildRequires: mvn(org.hornetq:hornetq-journal)
BuildRequires: mvn(org.hornetq:hornetq-native)
BuildRequires: mvn(org.infinispan:infinispan-cachestore-jdbc) >= 8.2.4
BuildRequires: mvn(org.infinispan:infinispan-cachestore-remote)
BuildRequires: mvn(org.infinispan:infinispan-commons)
BuildRequires: mvn(org.infinispan:infinispan-core)
BuildRequires: mvn(org.jasypt:jasypt)
BuildRequires: mvn(org.javassist:javassist)
BuildRequires: mvn(org.jberet:jberet-core) >= 1.2.1
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss:jboss-ejb-client)
BuildRequires: mvn(org.jboss:jboss-iiop-client)
BuildRequires: mvn(org.jboss:jboss-remote-naming)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss:staxmapper)
BuildRequires: mvn(org.jboss:jboss-transaction-spi)
BuildRequires: mvn(org.jboss:jboss-vfs)
BuildRequires: mvn(org.jboss.activemq.artemis.integration:artemis-wildfly-integration)
BuildRequires: mvn(org.jboss.arquillian:arquillian-bom:pom:)
BuildRequires: mvn(org.jboss.classfilewriter:jboss-classfilewriter)
BuildRequires: mvn(org.jboss.common:jboss-common-beans)
BuildRequires: mvn(org.jboss.ejb3:jboss-ejb3-ext-api)
BuildRequires: mvn(org.jboss.genericjms:generic-jms-ra-jar)
BuildRequires: mvn(org.jboss.invocation:jboss-invocation)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-common-api)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-common-impl)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-common-spi)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-core-api)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-core-impl)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-deployers-common)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-jdbc)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-spec-api)
BuildRequires: mvn(org.jboss.ironjacamar:ironjacamar-validator)
BuildRequires: mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling-river)
BuildRequires: mvn(org.jboss.metadata:jboss-metadata-appclient)
BuildRequires: mvn(org.jboss.metadata:jboss-metadata-common)
BuildRequires: mvn(org.jboss.metadata:jboss-metadata-ear)
BuildRequires: mvn(org.jboss.metadata:jboss-metadata-ejb)
BuildRequires: mvn(org.jboss.metadata:jboss-metadata-web)
BuildRequires: mvn(org.jboss.mod_cluster:mod_cluster-core)
BuildRequires: mvn(org.jboss.modules:jboss-modules)
BuildRequires: mvn(org.jboss.msc:jboss-msc)
BuildRequires: mvn(org.jboss.narayana.compensations:compensations)
BuildRequires: mvn(org.jboss.narayana:jbosstxbridge)
BuildRequires: mvn(org.jboss.narayana.jts:narayana-jts-idlj)
BuildRequires: mvn(org.jboss.narayana.jts:narayana-jts-integration)
BuildRequires: mvn(org.jboss.narayana.rts:restat-api)
BuildRequires: mvn(org.jboss.narayana.rts:restat-bridge)
BuildRequires: mvn(org.jboss.narayana.rts:restat-integration)
BuildRequires: mvn(org.jboss.narayana.rts:restat-util)
BuildRequires: mvn(org.jboss.narayana.txframework:txframework)
BuildRequires: mvn(org.jboss.narayana.xts:jbossxts)
BuildRequires: mvn(org.jboss.narayana.xts:jbossxts::api:)
BuildRequires: mvn(org.jboss.openjdk-orb:openjdk-orb)
BuildRequires: mvn(org.jboss.remoting:jboss-remoting)
BuildRequires: mvn(org.jboss.remotingjmx:remoting-jmx)
BuildRequires: mvn(org.jboss.resteasy:jose-jwt)
BuildRequires: mvn(org.jboss.resteasy:resteasy-client)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxrs)
BuildRequires: mvn(org.jboss.resteasy:resteasy-atom-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-spring)
BuildRequires: mvn(org.jboss.resteasy:async-http-servlet-3.0)
BuildRequires: mvn(org.jboss.resteasy:resteasy-cdi)
BuildRequires: mvn(org.jboss.resteasy:resteasy-crypto)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jackson-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jackson2-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-json-p-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jaxb-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jettison-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-jsapi)
BuildRequires: mvn(org.jboss.resteasy:resteasy-multipart-provider)
BuildRequires: mvn(org.jboss.resteasy:resteasy-validator-provider-11)
BuildRequires: mvn(org.jboss.resteasy:resteasy-yaml-provider)
BuildRequires: mvn(org.jboss.sasl:jboss-sasl)
BuildRequires: mvn(org.jboss.security:jbossxacml)
BuildRequires: mvn(org.jboss.security:jboss-negotiation-common)
BuildRequires: mvn(org.jboss.security:jboss-negotiation-extras)
BuildRequires: mvn(org.jboss.security:jboss-negotiation-ntlm)
BuildRequires: mvn(org.jboss.security:jboss-negotiation-spnego)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap.resolver:shrinkwrap-resolver-bom:pom:)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-api)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
BuildRequires: mvn(org.jboss.spec.javax.annotation:jboss-annotations-api_1.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.batch:jboss-batch-api_1.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.el:jboss-el-api_3.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.enterprise.concurrent:jboss-concurrency-api_1.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.faces:jboss-jsf-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.jms:jboss-jms-api_2.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.management.j2ee:jboss-j2eemgmt-api_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.resource:jboss-connector-api_1.7_spec)
BuildRequires: mvn(org.jboss.spec.javax.rmi:jboss-rmi-api_1.0_spec)
BuildRequires: mvn(org.jboss.spec.javax.security.auth.message:jboss-jaspi-api_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.security.jacc:jboss-jacc-api_1.5_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jsp:jboss-jsp-api_2.3_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet.jstl:jboss-jstl-api_1.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.transaction:jboss-transaction-api_1.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.xml.bind:jboss-jaxb-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.xml.rpc:jboss-jaxrpc-api_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.xml.soap:jboss-saaj-api_1.3_spec)
BuildRequires: mvn(org.jboss.spec.javax.xml.ws:jboss-jaxws-api_2.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.websocket:jboss-websocket-api_1.1_spec)
BuildRequires: mvn(org.jboss.spec.javax.ws.rs:jboss-jaxrs-api_2.0_spec)
BuildRequires: mvn(org.jboss.threads:jboss-threads)
BuildRequires: mvn(org.jboss.weld:weld-api)
BuildRequires: mvn(org.jboss.weld:weld-core-impl) >= 2.3.5
BuildRequires: mvn(org.jboss.weld:weld-core-jsf)
BuildRequires: mvn(org.jboss.weld:weld-spi)
BuildRequires: mvn(org.jboss.weld.probe:weld-probe-core)
BuildRequires: mvn(org.jboss.ws:jbossws-api)
BuildRequires: mvn(org.jboss.ws:jbossws-common)
BuildRequires: mvn(org.jboss.ws:jbossws-common-tools)
BuildRequires: mvn(org.jboss.ws:jbossws-spi)
BuildRequires: mvn(org.jboss.ws.cxf:jbossws-cxf-client) >= 5.1.5
BuildRequires: mvn(org.jboss.ws.cxf:jbossws-cxf-factories)
BuildRequires: mvn(org.jboss.ws.cxf:jbossws-cxf-jaspi)
BuildRequires: mvn(org.jboss.ws.cxf:jbossws-cxf-resources::wildfly1000:)
BuildRequires: mvn(org.jboss.ws.cxf:jbossws-cxf-server)
BuildRequires: mvn(org.jboss.ws.cxf:jbossws-cxf-transports-udp)
BuildRequires: mvn(org.jboss.ws.cxf:jbossws-cxf-transports-undertow)
BuildRequires: mvn(org.jboss.ws.projects:jaxws-undertow-httpspi)
BuildRequires: mvn(org.jboss.xnio:xnio-api) >= 3.4.0
BuildRequires: mvn(org.jboss.xnio:xnio-nio)
BuildRequires: mvn(org.jboss.xnio.netty:netty-xnio-transport)
BuildRequires: mvn(org.jdom:jdom)
BuildRequires: mvn(org.jgroups:jgroups)
%if %{with azure}
BuildRequires: mvn(org.jgroups:jgroups-azure)
%endif
BuildRequires: mvn(org.jsoup:jsoup)
BuildRequires: mvn(org.opensaml:opensaml-core) >= 3.1.1
BuildRequires: mvn(org.opensaml:opensaml-profile-api)
BuildRequires: mvn(org.opensaml:opensaml-saml-api)
BuildRequires: mvn(org.opensaml:opensaml-saml-impl)
BuildRequires: mvn(org.opensaml:opensaml-security-api)
BuildRequires: mvn(org.opensaml:opensaml-security-impl)
BuildRequires: mvn(org.opensaml:opensaml-soap-api)
BuildRequires: mvn(org.opensaml:opensaml-xacml-api)
BuildRequires: mvn(org.opensaml:opensaml-xacml-impl)
BuildRequires: mvn(org.opensaml:opensaml-xacml-saml-api)
BuildRequires: mvn(org.opensaml:opensaml-xacml-saml-impl)
BuildRequires: mvn(org.opensaml:opensaml-xmlsec-api)
BuildRequires: mvn(org.opensaml:opensaml-xmlsec-impl)
BuildRequires: mvn(org.picketbox:picketbox-commons)
BuildRequires: mvn(org.picketbox:picketbox-infinispan)
BuildRequires: mvn(org.picketlink:picketlink-api)
BuildRequires: mvn(org.picketlink:picketlink-bindings-parent:pom:)
BuildRequires: mvn(org.picketlink:picketlink-common)
BuildRequires: mvn(org.picketlink:picketlink-config)
BuildRequires: mvn(org.picketlink:picketlink-impl)
BuildRequires: mvn(org.picketlink:picketlink-federation)
BuildRequires: mvn(org.picketlink:picketlink-idm-api)
BuildRequires: mvn(org.picketlink:picketlink-idm-impl)
BuildRequires: mvn(org.picketlink:picketlink-idm-simple-schema)
BuildRequires: mvn(org.picketlink:picketlink-parent:pom:)
BuildRequires: mvn(org.picketlink.distribution:picketlink-wildfly8)
BuildRequires: mvn(org.scannotation:scannotation)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
BuildRequires: mvn(org.slf4j:slf4j-ext)
BuildRequires: mvn(org.wildfly.arquillian:wildfly-arquillian-container-managed)
BuildRequires: mvn(org.wildfly.arquillian:wildfly-arquillian-common)
BuildRequires: mvn(org.wildfly.arquillian:wildfly-arquillian-parent:pom:)
BuildRequires: mvn(org.wildfly.arquillian:wildfly-arquillian-protocol-jmx)
BuildRequires: mvn(org.wildfly.build:wildfly-server-provisioning-maven-plugin)
BuildRequires: mvn(org.wildfly.common:wildfly-common)
BuildRequires: mvn(org.wildfly.core:wildfly-cli)
BuildRequires: mvn(org.wildfly.core:wildfly-controller)
BuildRequires: mvn(org.wildfly.core:wildfly-core-feature-pack:zip:)
BuildRequires: mvn(org.wildfly.core:wildfly-core-parent:pom:)
BuildRequires: mvn(org.wildfly.core:wildfly-core-security)
BuildRequires: mvn(org.wildfly.core:wildfly-domain-management)
BuildRequires: mvn(org.wildfly.core:wildfly-io)
BuildRequires: mvn(org.wildfly.core:wildfly-jmx)
BuildRequires: mvn(org.wildfly.core:wildfly-launcher)
BuildRequires: mvn(org.wildfly.core:wildfly-network)
BuildRequires: mvn(org.wildfly.core:wildfly-request-controller)
BuildRequires: mvn(org.wildfly.core:wildfly-server)
BuildRequires: mvn(org.wildfly.core:wildfly-threads)
BuildRequires: mvn(org.wildfly.security:wildfly-elytron)
BuildRequires: mvn(org.yaml:snakeyaml)
BuildRequires: mvn(wsdl4j:wsdl4j)
BuildRequires: mvn(xalan:serializer)
BuildRequires: mvn(xalan:xalan)
BuildRequires: mvn(xerces:xercesImpl)
%{?systemd_requires}
BuildRequires: systemd

# Test deps
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.codehaus.groovy:groovy-all)
BuildRequires: mvn(org.jboss.byteman:byteman)
BuildRequires: mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires: mvn(org.jboss.byteman:byteman-install)
BuildRequires: mvn(org.jboss.byteman:byteman-submit)
BuildRequires: mvn(org.mockito:mockito-all)
# BuildRequires: mvn(org.wildfly.core:wildfly-subsystem-test:pom:)
# BuildRequires: mvn(org.wildfly.core:wildfly-subsystem-test-framework)


# Required for compiling JSP for example
Requires:         java-devel >= 1:1.7

Requires:         %{name}-lib = %{version}-%{release}

# Missing requires not provided by xmvn
Requires:         mvn(ch.qos.cal10n:cal10n-api)
Requires:         mvn(com.fasterxml.jackson.datatype:jackson-datatype-jdk8)
Requires:         mvn(com.fasterxml.jackson.datatype:jackson-datatype-jsr310)
Requires:         mvn(com.fasterxml.jackson.jaxrs:jackson-jaxrs-json-provider)
Requires:         mvn(com.github.spullara.mustache.java:compiler)
Requires:         mvn(com.h2database:h2)
Requires:         mvn(com.io7m.xom:xom)
Requires:         mvn(com.sun.xml.messaging.saaj:saaj-impl)
Requires:         mvn(io.undertow.js:undertow-js)
Requires:         mvn(org.apache.activemq:artemis-amqp-protocol)
Requires:         mvn(org.apache.activemq:artemis-hornetq-protocol)
Requires:         mvn(org.apache.activemq:artemis-stomp-protocol)
Requires:         mvn(org.apache.avro:avro)
Requires:         mvn(org.apache.lucene:lucene-backward-codecs)
Requires:         mvn(org.apache.lucene:lucene-facet)
Requires:         mvn(org.apache.lucene:lucene-misc)
Requires:         mvn(org.apache.lucene:lucene-queries)
Requires:         mvn(org.apache.lucene:lucene-queryparser)
Requires:         mvn(org.apache.qpid:proton-api)
Requires:         mvn(org.eclipse.jdt.core.compiler:ecj)
Requires:         mvn(org.glassfish:javax.el-impl)
Requires:         mvn(org.glassfish.jaxb:jaxb-jxc)
Requires:         mvn(org.hibernate:hibernate-entitymanager)
Requires:         mvn(org.hibernate:hibernate-envers)
Requires:         mvn(org.hibernate:hibernate-java8)
Requires:         mvn(org.hibernate:hibernate-search)
Requires:         mvn(org.hibernate:hibernate-infinispan)
Requires:         mvn(org.jasypt:jasypt)
Requires:         mvn(org.jboss.genericjms:generic-jms-ra-jar)
Requires:         mvn(org.jboss.logging:jul-to-slf4j-stub)
Requires:         mvn(org.jboss.resteasy:resteasy-atom-provider)
Requires:         mvn(org.jboss.resteasy:resteasy-jackson2-provider)
Requires:         mvn(org.jboss.resteasy:resteasy-json-p-provider)
Requires:         mvn(org.jboss.resteasy:resteasy-multipart-provider)
Requires:         mvn(org.jboss.resteasy:resteasy-validator-provider-11)
Requires:         mvn(org.jboss.resteasy:resteasy-yaml-provider)
Requires:         mvn(org.jboss.slf4j:slf4j-jboss-logmanager)
Requires:         mvn(org.jboss.ws.cxf:jbossws-cxf-client)
Requires:         mvn(org.jboss.ws.cxf:jbossws-cxf-factories)
Requires:         mvn(org.jboss.ws.cxf:jbossws-cxf-jaspi)
Requires:         mvn(org.jboss.ws.cxf:jbossws-cxf-resources::wildfly1000:)
Requires:         mvn(org.jboss.ws.cxf:jbossws-cxf-server)
Requires:         mvn(org.jboss.ws.cxf:jbossws-cxf-transports-udp)
Requires:         mvn(org.jboss.ws.cxf:jbossws-cxf-transports-undertow)
Requires:         mvn(org.jsoup:jsoup)
Requires:         mvn(org.picketlink:picketlink-impl)
Requires:         mvn(org.slf4j:slf4j-ext)

Requires(pre):    shadow-utils


%description
WildFly Application Server (formerly known as JBoss Application Server) is the
latest release in a series of WildFly offerings. WildFly Application Server, is
a fast, powerful, implementation of the Java Enterprise Edition 6
specification.  The state-of-the-art architecture built on the Modular Service
Container enables services on-demand when your application requires them.

%package lib
Summary:        WildFly JAR artifacts
BuildArch:      noarch

%description lib
This package contains WildFly JAR artifacts.

%package javadoc
Summary:       Javadoc for %{name}
BuildArch:     noarch

%description javadoc
This package contains javadoc for %{name}.

%package doc
Summary:       Documentation for %{name}
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description doc
This package contains the documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}
%patch0 -p1
%pom_remove_dep -r org.jboss.seam.integration:jboss-seam-int-jbossas
%pom_remove_dep -r org.jboss.hal:release-stream
sed -i '/org.jboss.hal\:release-stream/d' \
 feature-pack/src/main/resources/modules/system/layers/base/org/jboss/as/console/main/module.xml
%patch1 -p1
%pom_remove_dep -r javax.activation:activation
sed -i '/javax.activation\:activation/d' \
 servlet-feature-pack/src/main/resources/modules/system/layers/base/javax/activation/api/main/module.xml
%patch2 -p1
%pom_remove_dep -r javax.jws:jsr181-api
sed -i '/javax.jws\:jsr181-api/d' \
 feature-pack/src/main/resources/modules/system/layers/base/javax/jws/api/main/module.xml
%patch3 -p1
%pom_disable_module hibernate4_1 jpa
%pom_remove_dep -r :jipijapa-hibernate4-1
sed -i '/org.wildfly\:jipijapa-hibernate4-1/d' \
 feature-pack/src/main/resources/modules/system/layers/base/org/hibernate/4.1/module.xml
%patch4 -p1
%patch5 -p1

%if %{without azure}
%patch6 -p1
%pom_remove_dep -r com.microsoft.azure:azure-storage
%pom_remove_dep -r org.jgroups:jgroups-azure
sed -i '/com.microsoft.azure\:azure-storage/d' \
 feature-pack/src/main/resources/modules/system/layers/base/com/microsoft/azure/storage/main/module.xml
sed -i '/org.jgroups\:jgroups-azure/d' \
 feature-pack/src/main/resources/modules/system/layers/base/org/jgroups/azure/main/module.xml
%endif
# upstream patches
%patch7 -p1
%patch8 -p1
%patch9 -p1

cp -p testsuite/shared/src/main/java/org/jboss/as/test/integration/security/common/LICENSE-2.0.txt .
cp -p servlet-feature-pack/src/main/resources/content/copyright.txt .
cp -p servlet-feature-pack/src/main/resources/content/LICENSE.txt .
cp -p servlet-feature-pack/src/main/resources/content/README.txt .

%pom_remove_plugin -r :zanata-maven-plugin
# org.wildfly.checkstyle:wildfly-checkstyle-config:1.0.4.Final
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_dep -r :wildfly-checkstyle-config
# com.redhat.victims:enforce-victims-rule:1.3.1
%pom_remove_plugin -r :maven-enforcer-plugin

%pom_disable_module testsuite
%pom_disable_module testsuite/shared
%pom_disable_module test spec-api
%pom_disable_module tests-integration webservices

# Disable bundle of system libraries
%pom_disable_module client/shade
%pom_remove_dep -r :wildfly-client-all
# :wildfly-cli::client:
%pom_remove_dep org.wildfly.core:wildfly-cli feature-pack
sed -i '/org.wildfly\:wildfly-client-all/d' feature-pack/feature-pack-build.xml
sed -i '/org.wildfly.core\:wildfly-cli/d' feature-pack/feature-pack-build.xml

%pom_disable_module multi-jsf-installer jsf

# No myfaces avaialble
rm -rf jsf/injection/src/main/java/org/jboss/as/jsf/injection/MyFaces*
%pom_remove_dep -r org.apache.myfaces.core:myfaces-impl jsf/injection jsf/multi-jsf-installer
%pom_remove_dep org.apache.myfaces.core:myfaces-api jsf/multi-jsf-installer

%pom_xpath_set "pom:properties/pom:version.org.hibernate4_3" 4 jpa/hibernate4_3


%mvn_config buildSettings/compilerSource 1.8

%mvn_package ":wildfly-build:::" __noinstall
%mvn_package ":wildfly-build:zip::" __noinstall
%mvn_package ":wildfly-dist:::" __noinstall
%mvn_package ":wildfly-feature-pack:::" __noinstall
%mvn_package ":wildfly-servlet-build:::" __noinstall
%mvn_package ":wildfly-servlet-build:zip::" __noinstall
%mvn_package ":wildfly-servlet-dist:::" __noinstall
%mvn_package ":wildfly-servlet-feature-pack:::" __noinstall
%mvn_package ":wildfly-servlet-feature-pack:zip::" __noinstall

%build

# We don't have packaged all test dependencies (jboss-test for example)
# multi-jsf-installer profiles: mojarra-2.x; mojarra-1.2; myfaces
%mvn_build -f -- -Dskip-enforce

%install
%mvn_install

install -d -m 755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
install -d -m 755 $RPM_BUILD_ROOT%{homedir}
install -d -m 755 $RPM_BUILD_ROOT%{confdir}
install -d -m 755 $RPM_BUILD_ROOT%{rundir}
install -d -m 770 $RPM_BUILD_ROOT%{cachedir}/auth
install -d -m 755 $RPM_BUILD_ROOT%{_mavenpomdir}
install -d -m 755 $RPM_BUILD_ROOT%{_unitdir}
install -d -m 755 $RPM_BUILD_ROOT%{_bindir}
install -d -m 755 $RPM_BUILD_ROOT%{_docdir}/%{name}

for mode in standalone domain; do
  install -d -m 755 $RPM_BUILD_ROOT%{homedir}/${mode}
  install -d -m 775 $RPM_BUILD_ROOT%{libdir}/${mode}/data
  install -d -m 755 $RPM_BUILD_ROOT%{cachedir}/${mode}
  install -d -m 775 $RPM_BUILD_ROOT%{logdir}/${mode}
done

install -d -m 775 $RPM_BUILD_ROOT%{libdir}/domain/servers

pushd dist/target/wildfly-%{namedversion}
# We don't need Windows files
  find bin/ -type f -name "*.bat" -print -delete
  find bin/ -type f -name "*.exe" -print -delete
  rm -r docs/contrib/scripts/service
  rm -r docs/contrib/scripts/init.d

# Install systemd files
  sed -i "s|/opt/wildfly/bin/launch.sh|%{homedir}/bin/launch.sh|" docs/contrib/scripts/systemd/wildfly.service
  install -pm 644 docs/contrib/scripts/systemd/wildfly.service $RPM_BUILD_ROOT%{_unitdir}/wildfly.service
  install -pm 644 docs/contrib/scripts/systemd/wildfly.conf $RPM_BUILD_ROOT%{confdir}/wildfly.conf

# We don't need legacy init scripts
  rm -rf bin/init.d
# TMP - investigate
  rm -rf bin/client

# Prepare directory for properties files
  install -d -m 755 docs/examples/properties

# Copy logging.properties and mgmt-users.properties so we can reuse it later in wildfly-cp script
  cp standalone/configuration/logging.properties docs/examples/properties/
  cp standalone/configuration/mgmt-users.properties docs/examples/properties/
# Lower a bit the permissions, so ordinary user can copy it. It's an example file!
  chmod 644 docs/examples/properties/mgmt-users.properties

# standalone
  mv standalone/configuration $RPM_BUILD_ROOT%{confdir}/standalone
  mv standalone/deployments $RPM_BUILD_ROOT%{libdir}/standalone/deployments
  mv standalone/lib $RPM_BUILD_ROOT%{libdir}/standalone/lib
  mv standalone/tmp $RPM_BUILD_ROOT%{cachedir}/standalone/tmp

# domain
  mv domain/configuration $RPM_BUILD_ROOT%{confdir}/domain
  mv domain/data $RPM_BUILD_ROOT%{cachedir}/domain/data
  mv domain/tmp $RPM_BUILD_ROOT%{cachedir}/domain/tmp

# appclient
  mv appclient/configuration $RPM_BUILD_ROOT%{confdir}/appclient

  mv bin/jboss-cli.xml $RPM_BUILD_ROOT%{confdir}

# docs
# fix the encoding
  for f in $(find docs -name "*.dtd" -o -name "*.xsd"); do
    sed -i 's/\r$//' $f
  done

# bin
  mv bin $RPM_BUILD_ROOT%{homedir}

# Install the launch script
  sed -i "s|/opt/wildfly|%{homedir}|" docs/contrib/scripts/systemd/launch.sh
  install -pm 755 docs/contrib/scripts/systemd/launch.sh $RPM_BUILD_ROOT%{bindir}/launch.sh
  rm docs/contrib/scripts/systemd/launch.sh

  mv docs/* $RPM_BUILD_ROOT%{_docdir}/%{name}

  mv copyright.txt README.txt LICENSE.txt welcome-content docs appclient modules $RPM_BUILD_ROOT%{homedir}

popd

chmod 775 $RPM_BUILD_ROOT%{libdir}/standalone/deployments

pushd $RPM_BUILD_ROOT%{homedir}

# Standalone
  ln -s %{confdir}/standalone standalone/configuration
  ln -s %{libdir}/standalone/deployments standalone/deployments
  ln -s %{libdir}/standalone/data standalone/data
  ln -s %{libdir}/standalone/lib standalone/lib
  ln -s %{logdir}/standalone standalone/log
  ln -s %{cachedir}/standalone/tmp standalone/tmp

# Domain
  ln -s %{confdir}/domain domain/configuration
  ln -s %{libdir}/domain/data domain/data
  ln -s %{libdir}/domain/servers domain/servers
  ln -s %{logdir}/domain domain/log
  ln -s %{cachedir}/domain/tmp domain/tmp

  ln -s %{confdir}/appclient appclient

# Auth dir
  ln -s %{cachedir}/auth auth

  xmvn-subst .

# Still missing symlinks
  ln -s $(build-classpath jboss-modules/jboss-modules) jboss-modules.jar

# Remove all jars from modules directory - we need to symlink them
  find . -type f -name "*.jar" -exec rm -rvf {} \;

# Create symlinks to jars
  pushd modules/system/layers/base
#   Definition of submodules
#   If a submodule contains hyphen in the name, just skip it, e.g. domain-http => domainhttp
    multimodules="mod_cluster clustering"
    modules_mod_cluster="web undertow"
    modules_clustering="api ee-infinispan ee-spi ejb-spi common jgroups jgroups-api jgroups-spi infinispan infinispan-spi marshalling-api marshalling-jboss registry server service spi web-api web-spi web-infinispan web-undertow ejb-infinispan"

    for m in %{modules}; do
      ln -s %{_javadir}/%{name}/%{name}-${m}.jar org/jboss/as/${m}/main/%{name}-${m}-%{namedversion}.jar
    done

    for m in %{wildflymodules}; do
      ln -s %{_javadir}/%{name}/%{name}-${m}.jar org/wildfly/${m}/main/%{name}-${m}-%{namedversion}.jar
    done

    for m in ${multimodules}; do
      eval submodules=\$"modules_${m//-/}"

      for sm in $submodules; do
        for p in "org/wildfly/${m}/${sm/-//}/main" "org/jboss/as/${m}/${sm/-//}/main"; do
          if [ -d "${p}" ]; then
            ln -v -s %{_javadir}/%{name}/%{name}-${m}-${sm}.jar ${p}/%{name}-${m}-${sm}-%{namedversion}.jar
          fi
        done
      done
    done

#   WildFly extensions
    for m in batch bean-validation messaging-activemq picketlink rts undertow; do
      if [ -d "org/wildfly/extension/${m}/main/" ]; then
        ln -v -s %{_javadir}/%{name}/%{name}-${m}.jar org/wildfly/extension/${m}/main/%{name}-${m}-%{namedversion}.jar
      fi
    done

#   Special cases of wildfly jars
    ln -s %{_javadir}/%{name}/%{name}-mod_cluster-extension.jar org/wildfly/extension/mod_cluster/main/%{name}-mod_cluster-extension-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/%{name}-security-manager.jar org/wildfly/extension/security/manager/main/%{name}-security-manager-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/%{name}-batch-jberet.jar org/wildfly/extension/batch/jberet/main/%{name}-batch-jberet-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/%{name}-clustering-singleton-api.jar org/wildfly/clustering/singleton/main/%{name}-clustering-singleton-api-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/%{name}-clustering-singleton-extension.jar org/wildfly/extension/clustering/singleton/main/%{name}-clustering-singleton-extension-%{namedversion}.jar

    ln -s %{_javadir}/%{name}/%{name}-clustering-infinispan-extension.jar org/jboss/as/clustering/infinispan/main/%{name}-clustering-infinispan-extension-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/%{name}-clustering-jgroups-extension.jar org/jboss/as/clustering/jgroups/main/%{name}-clustering-jgroups-extension-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/%{name}-webservices-server-integration.jar org/jboss/as/webservices/main/%{name}-webservices-server-integration-%{namedversion}.jar

#   jipijapa
    ln -s %{_javadir}/%{name}/jipijapa-eclipselink.jar org/eclipse/persistence/main/jipijapa-eclipselink-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/jipijapa-hibernate4-3.jar org/hibernate/jipijapa-hibernate4-3/main/jipijapa-hibernate4-3-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/jipijapa-hibernate5.jar org/hibernate/jipijapa-hibernate5/main/jipijapa-hibernate5-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/jipijapa-openjpa.jar org/apache/openjpa/main/jipijapa-openjpa-%{namedversion}.jar
    ln -s %{_javadir}/%{name}/jipijapa-spi.jar org/jboss/as/jpa/spi/main/jipijapa-spi-%{namedversion}.jar


#   Remove native libs that are shipped with the source distribution...
    rm -rf org/apache/activemq/artemis/main/lib/*

#   Prepare directories for native libs
    install -d -m 755 org/apache/activemq/artemis/main/lib/linux-{x86_64,i686,arm,arm64}

#   Jandex index for cxf-rt-ws-security
    ln -s $(build-classpath cxf/cxf-rt-security-jandex) org/apache/cxf/impl/main/cxf-rt-security-jandex.jar
    ln -s $(build-classpath cxf/cxf-rt-ws-security-jandex) org/apache/cxf/ws-security/main/cxf-rt-ws-security-jandex.jar

#   Jandex indexes for resteasy
    for m in atom-provider crypto cdi jackson-provider jackson2-provider jaxb-provider jaxrs jettison-provider jsapi json-p-provider multipart-provider yaml-provider validator-provider-11; do
      ln -s $(build-classpath resteasy/resteasy-${m}-jandex) org/jboss/resteasy/resteasy-${m}/main/resteasy-${m}-jandex.jar
    done

#   RestEasy Spring integration special case
    install -d -m 755 org/jboss/resteasy/resteasy-spring/main/bundled/
    ln -s %{_javadir}/resteasy/resteasy-spring.jar org/jboss/resteasy/resteasy-spring/main/bundled/resteasy-spring.jar

#   Not caught by xmvn-subst
    ln -sf %{_javadir}/ecj/ecj.jar org/eclipse/jdt/ecj/main/ecj.jar
    ln -s $(build-classpath xml-commons-apis) org/apache/xerces/main/xml-commons-apis.jar
    ln -s $(build-classpath jbossws-cxf/jbossws-cxf-resources) org/jboss/as/webservices/main/jbossws-cxf-resources.jar
# Sometimes xmvn-subst fails "No artifact definition found"
    ln -sf $(build-classpath h2) com/h2database/h2/main/h2.jar
    ln -sf $(build-classpath glassfish-jaxb/txw2) com/sun/xml/bind/main/txw2.jar
    ln -sf $(build-classpath istack-commons/istack-commons-runtime) com/sun/xml/bind/main/istack-commons-runtime.jar

#   Incorrect symlinks made by xmvn
#   https://bugzilla.redhat.com/show_bug.cgi?id=1007687
    ln -sf $(build-classpath narayana/narayana-jts-jacorb) org/jboss/jts/main/narayana-jts-jacorb.jar
  popd

#  # Makes sure we replaced all jars and no jar files are left
  missed_jars=`find -type f -name "*.jar"`
  if [ -n "$missed_jars" ]; then
    echo "Not all jars were replaced, failing the build!"
    echo $missed_jars
    exit 1
  fi
popd

pushd $RPM_BUILD_ROOT%{bindir}
  ln -sf %{_javadir}/%{name}-core/%{name}-launcher.jar launcher.jar
popd

pushd $RPM_BUILD_ROOT%{_bindir}
# jboss-cli
  ln -s %{bindir}/jboss-cli.sh jboss-cli

  install -m 755 %{SOURCE1} %{name}-cp
popd

# copy jar release-stream 
pushd $RPM_BUILD_ROOT%{homedir}/modules/system/layers/base/org/jboss/as/console/main
patch -p1 < %{P:10}
cp -r %{S:2} ${PWD}
popd

%pre
# Add wildfly user and group
getent group %{name} >/dev/null || groupadd -f -g %{wfuid} -r %{name}
if ! getent passwd %{name} >/dev/null ; then
  if ! getent passwd %{wfuid} >/dev/null ; then
    useradd -r -u %{wfuid} -g %{name} -d %{homedir} -s /sbin/nologin -c "The WildFly Application Server user" %{name}
  else
    useradd -r -g %{name} -d %{homedir} -s /sbin/nologin -c "The WildFly Application Server user" %{name}
  fi
fi
exit 0

%post
%systemd_post %{name}.service


# WildFly relies on some arch specific binary modules, let's link them.
# We don't want to do this at build time because it should be still noarch package.
arch=`uname -m`

if [ "${arch}" = "x86_64" ]; then
  native_arch="64"
  libdir="/usr/lib${native_arch}"
  validarch="x86_64"
else
  native_arch="32"
  libdir="/usr/lib"
  validarch="i686"
fi

if [[ $arch == arm* ]]; then
  native_arch="32"
  libdir="/usr/lib"
  validarch="arm"
fi
# ?
if [[ $arch == aarch64 ]]; then
  native_arch="64"
  libdir="/usr/lib${native_arch}"
  validarch="arm64"
fi

pushd %{homedir}/modules/system/layers/base/org/apache/activemq/artemis/main/lib/linux-${validarch} > /dev/null
  ln -sf ${libdir}/artemis/libartemis-native.so libartemis-native-${native_arch}.so
popd > /dev/null

%preun
%systemd_preun %{name}.service

# Let's clean up the arch-specific symlinks
for l in $(find %{homedir}/modules/system/layers/base/org/apache/activemq/artemis/main/lib -name "*.so"); do
  [ -L ${l} ] && rm -f ${l}
done

%postun
%systemd_postun_with_restart %{name}.service



%files
%{homedir}/appclient
%dir %{bindir}
%{bindir}/*.conf
%{bindir}/launcher.jar
%{bindir}/*.properties
%{bindir}/*.ps1
%{bindir}/*.sh
%{bindir}/.jbossclirc
%{_bindir}/*
%dir %{homedir}
%{homedir}/auth
%{homedir}/domain
%{homedir}/standalone
%{homedir}/modules
%{homedir}/welcome-content
%{homedir}/jboss-modules.jar
%attr(-,root,wildfly) %dir %{libdir}
%attr(-,root,wildfly) %{libdir}/standalone
%attr(-,root,wildfly) %{libdir}/domain
%attr(0775,root,wildfly) %dir %{rundir}
%attr(0775,root,wildfly) %dir %{cachedir}
%attr(0775,root,wildfly) %dir %{cachedir}/standalone
%attr(0775,root,wildfly) %dir %{cachedir}/standalone/tmp
%attr(0775,root,wildfly) %dir %{cachedir}/domain
%attr(0775,root,wildfly) %dir %{cachedir}/domain/tmp
%attr(0770,root,wildfly) %dir %{logdir}
%attr(0770,root,wildfly) %dir %{logdir}/standalone
%attr(0770,root,wildfly) %dir %{logdir}/domain
%attr(0775,root,wildfly) %dir %{confdir}
%attr(0775,root,wildfly) %dir %{confdir}/appclient
%attr(0775,root,wildfly) %dir %{confdir}/standalone
%attr(0775,root,wildfly) %dir %{confdir}/domain
%attr(0700,wildfly,wildfly) %dir %{cachedir}/auth
%attr(0600,wildfly,wildfly) %config(noreplace) %{confdir}/appclient/*.properties
%attr(0664,wildfly,wildfly) %config(noreplace) %{confdir}/appclient/*.xml
%attr(0600,wildfly,wildfly) %config(noreplace) %{confdir}/standalone/*.properties
%attr(0664,wildfly,wildfly) %config(noreplace) %{confdir}/standalone/*.xml
%attr(0600,wildfly,wildfly) %config(noreplace) %{confdir}/domain/*.properties
%attr(0664,wildfly,wildfly) %config(noreplace) %{confdir}/domain/*.xml
%config(noreplace) %{confdir}/%{name}.conf
%config(noreplace) %{confdir}/jboss-cli.xml
%{_unitdir}/%{name}.service
%doc %{homedir}/README.txt
%license %{homedir}/copyright.txt
%license %{homedir}/LICENSE.txt
%license LICENSE-2.0.txt

%files lib -f .mfiles
%doc README.md
%license copyright.txt LICENSE.txt LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license copyright.txt LICENSE.txt LICENSE-2.0.txt

%files doc
%{_docdir}/%{name}
%license copyright.txt LICENSE.txt LICENSE-2.0.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20175 |21mr|wildfly-arquillian-1.0.2-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          wildfly-arquillian
Version:       1.0.2
Release:       7
Summary:       The Wildfly Arquillian Adaptor

# LGPLv2:
# ./common/src/main/java/org/jboss/as/arquillian/api/ContainerResource.java
# ./common/src/main/java/org/jboss/as/arquillian/api/ServerSetup.java
# ./common/src/main/java/org/jboss/as/arquillian/api/ServerSetupTask.java
# ./common/src/main/java/org/jboss/as/arquillian/container/Authentication.java
# ./common/src/main/java/org/jboss/as/arquillian/container/ContainerResourceTestEnricher.java
# ./common/src/main/java/org/jboss/as/arquillian/container/MBeanProxy.java
# ./common/src/main/java/org/jboss/as/arquillian/container/NetworkUtils.java
# ./common/src/main/java/org/jboss/as/arquillian/container/SecurityActions.java
# ./common/src/main/java/org/jboss/as/arquillian/container/ServerSetupObserver.java
# ./common-domain/src/main/java/org/jboss/as/arquillian/container/domain/NetworkUtils.java
# ./container-embedded/src/main/java/org/jboss/as/arquillian/container/embedded/SecurityActions.java
# ./protocol-jmx/src/main/java/org/jboss/as/arquillian/service/ArquillianConfig.java
# ./protocol-jmx/src/main/java/org/jboss/as/arquillian/service/ArquillianConfigBuilder.java
# ./protocol-jmx/src/main/java/org/jboss/as/arquillian/service/ArquillianService.java
# ./protocol-jmx/src/main/java/org/jboss/as/arquillian/service/ArquillianServiceActivator.java
# ./protocol-jmx/src/main/java/org/jboss/as/arquillian/service/InContainerManagementClientExtension.java
# ./protocol-jmx/src/main/java/org/jboss/as/arquillian/protocol/jmx/ManifestUtils.java

# https://github.com/wildfly/wildfly-arquillian/pull/60
License:       ASL 2.0 and LGPLv2+
URL:           http://arquillian.org/
Source0:       https://github.com/wildfly/wildfly-arquillian/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
# https://github.com/wildfly/wildfly-arquillian/blob/master/LICENSE.txt
Source1:       wildfly-arquillian-LICENSE.txt

BuildRequires: maven-local
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(javax.enterprise:cdi-api)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.jboss:jboss-ejb-client)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.arquillian.container:arquillian-container-test-impl-base)
BuildRequires: mvn(org.jboss.arquillian.container:arquillian-container-test-spi)
BuildRequires: mvn(org.jboss.arquillian.core:arquillian-core-api)
BuildRequires: mvn(org.jboss.arquillian.core:arquillian-core-spi)
BuildRequires: mvn(org.jboss.arquillian.junit:arquillian-junit-container)
BuildRequires: mvn(org.jboss.arquillian.protocol:arquillian-protocol-jmx)
BuildRequires: mvn(org.jboss.arquillian.protocol:arquillian-protocol-servlet)
BuildRequires: mvn(org.jboss.arquillian.test:arquillian-test-spi)
BuildRequires: mvn(org.jboss.arquillian.testenricher:arquillian-testenricher-cdi)
BuildRequires: mvn(org.jboss.arquillian.testenricher:arquillian-testenricher-ejb)
BuildRequires: mvn(org.jboss.arquillian.testenricher:arquillian-testenricher-initialcontext)
BuildRequires: mvn(org.jboss.arquillian.testenricher:arquillian-testenricher-resource)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling-river)
BuildRequires: mvn(org.jboss.remoting:jboss-remoting)
BuildRequires: mvn(org.jboss.remotingjmx:remoting-jmx)
BuildRequires: mvn(org.jboss.sasl:jboss-sasl)
BuildRequires: mvn(org.jboss.shrinkwrap.descriptors:shrinkwrap-descriptors-impl-base)
BuildRequires: mvn(org.jboss.spec.javax.ejb:jboss-ejb-api_3.2_spec)
BuildRequires: mvn(org.jboss.spec.javax.servlet:jboss-servlet-api_3.1_spec)
BuildRequires: mvn(org.jboss.xnio:xnio-api)
BuildRequires: mvn(org.jboss.xnio:xnio-nio)
BuildRequires: mvn(org.wildfly.build:wildfly-server-provisioning-maven-plugin)
BuildRequires: mvn(org.wildfly.core:wildfly-controller-client)
BuildRequires: mvn(org.wildfly.core:wildfly-embedded)
BuildRequires: mvn(org.wildfly.core:wildfly-jmx)
BuildRequires: mvn(org.wildfly.core:wildfly-launcher)
BuildRequires: mvn(org.wildfly.core:wildfly-protocol)
BuildRequires: mvn(org.wildfly.core:wildfly-server)
BuildRequires: mvn(org.wildfly.security:wildfly-security-manager)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Wildfly Arquillian Adaptor.

%package common
Summary:       WildFly: Arquillian Common

%description common
WildFly: Arquillian Common.

%package common-domain
Summary:       WildFly: Arquillian Common Domain

%description common-domain
WildFly: Arquillian Common Domain.

%package container-domain-managed
Summary:       WildFly: Arquillian Managed Domain Container

%description container-domain-managed
WildFly: Arquillian Managed Domain Container.

%package container-domain-remote
Summary:       WildFly: Arquillian Remote Domain Container

%description container-domain-remote
WildFly: Arquillian Remote Domain Container.

%package container-embedded
Summary:       WildFly: Arquillian Embedded Container

%description container-embedded
WildFly: Arquillian Embedded Container.

%package container-managed
Summary:       WildFly: Arquillian Managed Container

%description container-managed
WildFly: Arquillian Managed Container.

%package container-remote
Summary:       WildFly: Arquillian Remote Container

%description container-remote
WildFly: Arquillian Remote Container.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package parent
Summary:       WildFly: Arquillian Parent POM

%description parent
WildFly: Arquillian Parent POM.

%package protocol-jmx
Summary:       WildFly: Arquillian Protocol JMX

%description protocol-jmx
WildFly: Arquillian Protocol JMX.

%package testenricher-msc
Summary:       WildFly: Arquillian TestEnricher MSC

%description testenricher-msc
WildFly: Arquillian TestEnricher MSC.

%prep
%setup -q -n %{name}-%{namedversion}

cp -p %SOURCE1 LICENSE.txt
sed -i 's/\r//' LICENSE.txt

%pom_remove_plugin -r :maven-checkstyle-plugin

%pom_disable_module testng-integration

sed -i "s|EmbeddedStandAloneServerFactory|EmbeddedStandaloneServerFactory|" \
 container-embedded/src/main/java/org/jboss/as/arquillian/container/embedded/EmbeddedContainerConfiguration.java \
 container-embedded/src/main/java/org/jboss/as/arquillian/container/embedded/EmbeddedDeployableContainer.java

# org.wildfly.core:wildfly-core-feature-pack:zip:1.0.1.Final
%pom_remove_plugin -r :wildfly-server-provisioning-maven-plugin container-embedded container-managed container-managed-domain
# ./container-*/target/wildfly-core' must exist
rm -r container-{embedded,managed}/src/test

%build

%mvn_build -s

%install
%mvn_install

%files common -f .mfiles-%{name}-common
%files common-domain -f .mfiles-%{name}-common-domain
%license LICENSE.txt

%files container-domain-managed -f .mfiles-%{name}-container-domain-managed
%files container-domain-remote -f .mfiles-%{name}-container-domain-remote
%files container-embedded -f .mfiles-%{name}-container-embedded
%files container-managed -f .mfiles-%{name}-container-managed
%files container-remote -f .mfiles-%{name}-container-remote

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files parent -f .mfiles-%{name}-parent
%license LICENSE.txt

%files protocol-jmx -f .mfiles-%{name}-protocol-jmx
%files testenricher-msc -f .mfiles-%{name}-testenricher-msc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20176 |21mr|wildfly-build-tools-1.1.6-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name:          wildfly-build-tools
Version:       1.1.6
Release:       6
Summary:       Wildfly build and provisioning tools
License:       ASL 2.0
URL:           https://github.com/wildfly/wildfly-build-tools
Source0:       https://github.com/wildfly/wildfly-build-tools/archive/%{namedversion}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.maven:maven-aether-provider)
BuildRequires: mvn(org.apache.maven:maven-compat)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven:maven-settings-builder)
BuildRequires: mvn(org.apache.maven.plugin-testing:maven-plugin-testing-harness)
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.eclipse.aether:aether-api)
BuildRequires: mvn(org.eclipse.aether:aether-connector-basic)
BuildRequires: mvn(org.eclipse.aether:aether-impl)
BuildRequires: mvn(org.eclipse.aether:aether-spi)
BuildRequires: mvn(org.eclipse.aether:aether-transport-file)
BuildRequires: mvn(org.eclipse.aether:aether-transport-http)
BuildRequires: mvn(org.eclipse.aether:aether-util)
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss:staxmapper)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Tools used for building and provisioning the Wildfly server.

%package -n wildfly-feature-pack-build-maven-plugin
Summary:       WildFly Build Tools: Feature Pack Build Maven Plugin

%description -n wildfly-feature-pack-build-maven-plugin
This package contains WildFly Build Tools Feature Pack Build Maven Plugin.

%package -n wildfly-server-provisioning
Summary:       WildFly Build Tools: Server Provisioning

%description -n wildfly-server-provisioning
This package contains WildFly Build Tools Server Provisioning.

%package -n wildfly-server-provisioning-maven-plugin
Summary:       WildFly Build Tools: Server Provisioning Maven Plugin

%description -n wildfly-server-provisioning-maven-plugin
This package contains WildFly Build Tools Server Provisioning Maven Plugin.

%package -n wildfly-server-provisioning-standalone
Summary:       WildFly Build Tools: Server Provisioning Standalone

%description -n wildfly-server-provisioning-standalone
This package contains WildFly Build Tools Server Provisioning Standalone.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# Use not available org.wildfly.checkstyle:wildfly-checkstyle-config:jar:1.0.0.Final
%pom_remove_plugin -r :maven-checkstyle-plugin

%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_dep -r :wildfly-checkstyle-config

%pom_remove_dep -r org.sonatype.aether:

# disable maven-invoker-plugin
%pom_xpath_remove pom:profiles provisioning-maven-plugin

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-wildfly-build-tools-parent
%license LICENSE.txt

%files -n wildfly-feature-pack-build-maven-plugin -f .mfiles-wildfly-feature-pack-build-maven-plugin

%files -n wildfly-server-provisioning -f .mfiles-wildfly-server-provisioning
%license LICENSE.txt

%files -n wildfly-server-provisioning-maven-plugin -f .mfiles-wildfly-server-provisioning-maven-plugin
%files -n wildfly-server-provisioning-standalone -f .mfiles-wildfly-server-provisioning-standalone

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20177 |21mr|wildfly-common-1.1.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name:          wildfly-common
Version:       1.1.0
Release:       7
Summary:       WildFly common utilities project
License:       ASL 2.0
URL:           http://wildfly.org/
Source0:       https://github.com/wildfly/wildfly-common/archive/%{namedversion}.tar.gz

BuildRequires: graphviz
BuildRequires: maven-local
BuildRequires: mvn(com.intellij:annotations)
BuildRequires: mvn(jdepend:jdepend)
# jboss-parent:16
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.apiviz:apiviz)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
# jboss-logging-{annotations,processor}:1.2.0.Final
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The WildFly Common project is a repository of shared utilities
which do not have a more specific categorization.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# Build fails
# [ERROR] An error has occurred in JavaDocs report generation
%pom_xpath_inject "pom:build/pom:plugins/pom:plugin[pom:artifactId = 'maven-javadoc-plugin' ]/pom:configuration" '
<sourceFileExcludes>
  <exclude>**/CommonMessages_*.java</exclude>
  <exclude>**/Log_*.java</exclude>
</sourceFileExcludes>'

%mvn_file org.wildfly.common:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20178 |21mr|wildfly-core-2.2.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Conditionals to help breaking org.wildfly.core:wildfly-controller <-> org.wildfly.legacy.test:wildfly-legacy-spi dependency cycle
%if 0%{?fedora}
%bcond_with legacy_test
%endif

%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:          wildfly-core
Version:       2.2.0
Release:       10
Summary:       The core run-time of WildFly

# ASL 2.0: ./controller/src/main/java/org/jboss/as/controller/remote/CompletedFuture.java
#          ./controller-client/src/main/java/org/jboss/as/controller/client/helpers/standalone/ServerDeploymentHelper.java
#          ./embedded/src/main/java/org/wildfly/core/embedded/*
#          ./host-controller/src/main/java/org/jboss/as/host/controller/mgmt/DomainHostExcludeRegistry.java
#          ./process-controller/src/main/java/org/jboss/as/process/stdin/*
#          ./remoting/subsystem/src/main/java/org/jboss/as/remoting/ConnectorChildResource.java
#          ./server/src/main/java/org/jboss/as/server/parsing/ExtensionHandler.java
#          ./server/src/main/java/org/jboss/as/server/controller/resources/CapabilityRegistryResourceDefinition.java
#          ./server/src/main/java/org/jboss/as/server/controller/resources/ModuleInfoHandler.java
#          ./server/src/main/java/org/jboss/as/server/mgmt/ManagementWorkerService.java
#          ./testsuite/shared/src/main/java/*
#          ./threads/src/main/java/org/jboss/as/threads/ThreadsParser2_0.java
# BSD 2 C:  ./cli/src/main/java/org/jboss/as/cli/gui/component/ButtonTabComponent.java
# Some file without license headers https://issues.jboss.org/browse/WFCORE-1575
License:       ASL 2.0 and BSD and LGPLv2+
URL:           http://wildfly.org/
# sh wildfly-core-create-tarball.sh 2.2.0.Final
Source0:       %{name}-%{namedversion}-clean.tar.xz
Source1:       wildfly-core-create-tarball.sh

BuildRequires: maven-local
BuildRequires: mvn(io.undertow:undertow-core) >= 1.4.0
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven:maven-aether-provider)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(org.codehaus.woodstox:stax2-api)
BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires: mvn(org.eclipse.aether:aether-api)
BuildRequires: mvn(org.eclipse.aether:aether-spi)
BuildRequires: mvn(org.eclipse.aether:aether-util)
BuildRequires: mvn(org.eclipse.aether:aether-connector-basic)
BuildRequires: mvn(org.eclipse.aether:aether-transport-file)
BuildRequires: mvn(org.eclipse.aether:aether-transport-http)
BuildRequires: mvn(org.fusesource.jansi:jansi)
BuildRequires: mvn(org.jboss:jandex)
BuildRequires: mvn(org.jboss:jboss-dmr) >= 1.3.0
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss:jboss-vfs)
BuildRequires: mvn(org.jboss:staxmapper) >= 1.2.0
BuildRequires: mvn(org.jboss.aesh:aesh) >= 0.66.8
BuildRequires: mvn(org.jboss.byteman:byteman)
BuildRequires: mvn(org.jboss.classfilewriter:jboss-classfilewriter) >= 1.1.2
BuildRequires: mvn(org.jboss.invocation:jboss-invocation)
BuildRequires: mvn(org.jboss.jandex:jandex-maven-plugin)
BuildRequires: mvn(org.jboss.logging:jul-to-slf4j-stub)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager) >= 2.0.4
BuildRequires: mvn(org.jboss.logmanager:log4j-jboss-logmanager) >= 1.1.2-2
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling)
BuildRequires: mvn(org.jboss.marshalling:jboss-marshalling-river)
BuildRequires: mvn(org.jboss.modules:jboss-modules) >= 1.5.2
BuildRequires: mvn(org.jboss.msc:jboss-msc)
BuildRequires: mvn(org.jboss.remoting:jboss-remoting)
BuildRequires: mvn(org.jboss.remotingjmx:remoting-jmx)
BuildRequires: mvn(org.jboss.sasl:jboss-sasl) >= 1.0.5
BuildRequires: mvn(org.jboss.slf4j:slf4j-jboss-logmanager)
BuildRequires: mvn(org.jboss.spec.javax.interceptor:jboss-interceptors-api_1.2_spec)
BuildRequires: mvn(org.jboss.stdio:jboss-stdio)
BuildRequires: mvn(org.jboss.threads:jboss-threads)
BuildRequires: mvn(org.jboss.xnio:xnio-api)
BuildRequires: mvn(org.jboss.xnio:xnio-nio)
BuildRequires: mvn(org.picketbox:picketbox) >= 4.9.5
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.wildfly.build:wildfly-feature-pack-build-maven-plugin)
BuildRequires: mvn(org.wildfly.build:wildfly-server-provisioning-maven-plugin)
BuildRequires: mvn(org.wildfly.common:wildfly-common)
BuildRequires: mvn(org.wildfly.security:wildfly-elytron)
BuildRequires: mvn(xerces:xercesImpl)
BuildRequires: mvn(xml-resolver:xml-resolver)
BuildRequires: xmvn

%if %{with legacy_test}
BuildRequires: mvn(com.google.guava:guava)
BuildRequires: mvn(commons-io:commons-io)
BuildRequires: mvn(commons-lang:commons-lang)
BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: mvn(log4j:log4j:12)
BuildRequires: mvn(org.apache.directory.api:api-ldap-codec-standalone)
BuildRequires: mvn(org.apache.directory.jdbm:apacheds-jdbm1:bundle:)
BuildRequires: mvn(org.apache.directory.server:apacheds-core-annotations)
BuildRequires: mvn(org.apache.directory.server:apacheds-interceptor-kerberos)
BuildRequires: mvn(org.apache.directory.server:apacheds-parent:pom:)
BuildRequires: mvn(org.apache.directory.server:apacheds-server-annotations)
BuildRequires: mvn(org.apache.httpcomponents:httpclient)
BuildRequires: mvn(org.apache.httpcomponents:httpcore)
BuildRequires: mvn(org.apache.httpcomponents:httpmime)
BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires: mvn(org.codehaus.mojo:keytool-api-1.7)
BuildRequires: mvn(org.codehaus.mojo:keytool-maven-plugin)
BuildRequires: mvn(org.codehaus.mojo:xml-maven-plugin)
BuildRequires: mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires: mvn(org.jboss.byteman:byteman-install)
BuildRequires: mvn(org.jboss.byteman:byteman-submit)
BuildRequires: mvn(org.jboss.metadata:jboss-metadata-common) >= 10.0.0
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-api)
BuildRequires: mvn(org.jboss.shrinkwrap:shrinkwrap-impl-base)
BuildRequires: mvn(org.mockito:mockito-all)
BuildRequires: mvn(org.slf4j:jcl-over-slf4j)
# https://gil.fedorapeople.org/syslog4j.spec
BuildRequires: mvn(org.syslog4j:syslog4j)
BuildRequires: mvn(org.wildfly.legacy.test:wildfly-legacy-spi)
%endif

# ./process-controller/src/main/java/org/jboss/as/process/stdin/*
Provides:      bundled(apache-common-codec) = 1.7

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This project provides the core run-time that is used by the
Wildfly application server. This includes:

* Modular class loading
* Unified management, including domain mode
* Basic deployment architecture
* CLI for management

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package feature-pack
Summary:       WildFly: Core Feature Pack

%description feature-pack
WildFly: Core Feature Pack.

%prep
%setup -q -n %{name}-%{namedversion}

%if %{without legacy_test}
%pom_disable_module subsystem-test
%pom_disable_module testsuite
%pom_disable_module tests remoting
%pom_disable_module tests io
%pom_disable_module core-model-test
%pom_remove_dep -r org.wildfly.core:wildfly-core-model-test-framework
# org.apache.directory.server:apacheds-parent:pom:2.0.0-M15
%pom_remove_dep -r org.apache.directory.server:apacheds-parent
%else
%pom_xpath_set "pom:properties/pom:version.log4j" 1.2.17
%endif

%pom_remove_plugin -r :maven-shade-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r org.zanata:zanata-maven-plugin

# Use not available org.wildfly.checkstyle:wildfly-checkstyle-config:jar:1.0.0.Final
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_dep -r :wildfly-checkstyle-config

%pom_remove_dep sun.jdk:jconsole cli
%pom_add_dep sun.jdk:jconsole cli

cp -p core-feature-pack/src/main/resources/content/LICENSE.txt .

%mvn_package ":wildfly-core-feature-pack" core-feature-pack
%mvn_package ":wildfly-core-dist:::" __noinstall
%mvn_package ":wildfly-core-build:zip::" __noinstall
%mvn_package ":wildfly-core-build:::" __noinstall

%build

# We don't have packaged all test dependencies. e.g. org.wildfly.legacy.test:wildfly-legacy-spi:jar:1.0.0.Alpha9
%mvn_build -f -- -X

rm target/site/apidocs/javadoc.sh

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt

%files feature-pack -f .mfiles-core-feature-pack
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20179 |21mr|wildfly-elytron-1.0.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}
Name:          wildfly-elytron
Version:       1.0.2
Release:       6
Summary:       Security, Authentication, and Authorization SPIs for the WildFly project
# LGPLv2: ./src/main/java/org/wildfly/security/permission/PermissionActions.java
# most of the code in ./src/main/java/org/wildfly/security/manager/
License:       ASL 2.0 and LGPLv2+
URL:           http://wildfly.org/
Source0:       https://github.com/wildfly-security/wildfly-elytron/archive/%{namedversion}.tar.gz

BuildRequires: graphviz
BuildRequires: maven-local
BuildRequires: mvn(jdepend:jdepend)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(org.jboss:jboss-parent:pom:)
BuildRequires: mvn(org.jboss.apiviz:apiviz)
BuildRequires: mvn(org.jboss.logging:jboss-logging)
BuildRequires: mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires: mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires: mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires: mvn(org.jboss.logmanager:log4j-jboss-logmanager)
BuildRequires: mvn(org.jboss.modules:jboss-modules)
BuildRequires: mvn(org.jboss.slf4j:slf4j-jboss-logmanager)
BuildRequires: mvn(org.kohsuke.metainf-services:metainf-services)
BuildRequires: mvn(org.wildfly.common:wildfly-common)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
WildFly Elytron is a new WildFly sub-project which
is completely replacing the combination of PicketBox and
JAAS as the WildFly client and server security mechanism.

An "elytron" (ĕl´·ĭ·trŏn, plural "elytra") is the hard,
protective casing over a wing of certain flying insects
(e.g. beetles).

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

# Use not available org.wildfly.checkstyle:wildfly-checkstyle-config:1.0.3.Final
%pom_remove_plugin :maven-checkstyle-plugin

%mvn_file org.wildfly.security:%{name} %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20180 |21mr|wildfly-security-manager-1.1.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             wildfly-security-manager
Version:          1.1.2
Release:          6
Summary:          WildFly Security Manager
# Not available license file https://github.com/wildfly-security/security-manager/issues/9
# ASL 2.0: ./src/main/java/org/wildfly/security/ParametricPrivilegedExceptionAction.java
# ./src/main/java/org/wildfly/security/manager/StackInspector.java
# ./src/main/java/org/wildfly/security/ParametricPrivilegedAction.java
# ./src/test/java/org/wildfly/security/manager/TestStackInspector.java
License:          ASL 2.0 and LGPLv2+
Url:              https://github.com/wildfly-security/security-manager/
Source0:          https://github.com/wildfly-security/security-manager/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz

BuildRequires:    maven-local
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.jboss.modules:jboss-modules)
BuildRequires:    mvn(org.kohsuke.metainf-services:metainf-services)

Group:          Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Security Manager for WildFly Application Server.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n security-manager-%{namedversion}

%pom_remove_plugin "org.jboss.seven2six:seven2six"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20181 |21mr|wildmidi-0.4.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	WildMidi Open Source Midi Sequencer
Name:		wildmidi
Version:	0.4.4
Release:	1
License:	GPLv3+ and LGPLv3+
Group:		Sound
Url:		http://wildmidi.sourceforge.net
Source0:	https://github.com/Mindwerks/wildmidi/archive/refs/tags/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	timidity-instruments
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(openal)
Requires:	timidity-instruments

%description
WildMidi is a software midi player which has a core softsynth library that can
be used by other applications.

%files
%doc COPYING
%{_bindir}/%{name}
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/%{name}.cfg
%{_mandir}/man1/%{name}.1*
%{_mandir}/man5/%{name}.cfg.5*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains the library file for %{name}.

%files -n %{libname}
%doc COPYING
%{_libdir}/libWildMidi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%doc COPYING README.md
%{_libdir}/cmake/WildMidi/WildMidi*.cmake
%{_libdir}/libWildMidi.so
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/*.h
%{_mandir}/man3/*.3*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{name}-%{version}

%build
%cmake \
	-DWANT_ALSA:BOOL=OFF \
	-DWANT_OPENAL:BOOL=ON
%make

%install
%makeinstall_std -C build

# Provide the needed config file
# by symlinking what we have in /etc/alternatives
mkdir -p %{buildroot}%{_sysconfdir}/%{name}
ln -s ../alternatives/timidity.cfg %{buildroot}%{_sysconfdir}/%{name}/%{name}.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20182 |21mr|wine-9.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Switch between stable or devel builds
%bcond_without	unstable

# It download dkms-nvidia*
%global __requires_exclude libOpenCL.so.*

# wine-staging tarball version
%define stagver		9.9

# wine-stable tarball version
%define	stabver		9.0

%define	winenine_ver	0.9
%define	winetricks_git	383292899865c41d7f9e5e77c3f09b73e72a0fde

%if %{with unstable}
%define _ostab	-stable
%define version	%(echo %{stagver} |cut -d. -f-2)
%define pathver	%(echo %{stagver} |cut -d. -f1).x
%define over	%{stabver}
%define opver	%(echo %{stabver} |cut -d. -f-2)
%else
%define _stab	-stable
%define version	%{stabver}
%define pathver	%(echo %{stabver} |cut -d. -f-2)
%define over	%(echo %{stagver} |cut -d. -f-2)
%define opver	%(echo %{stagver} |cut -d. -f1).x
%endif

Summary:	WINE Is Not An Emulator - runs MS Windows programs
Name:		wine%{?_stab}
Version:	%{version}
Release:	1
Epoch:		2
License:	LGPLv2+
Group:		Emulators
Url:		http://www.winehq.com
Source0:	https://dl.winehq.org/wine/source/%{pathver}/wine-%{version}.tar.xz
%if %{without unstable}
Source1:	https://dl.winehq.org/wine/source/%{opver}/wine-%{over}.tar.xz
%endif
# See: https://wiki.archlinux.org/index.php/wine (Using Wine as an interpreter for Win16/Win32 binaries)
Source3:	wine.systemd
# New wine-staging from github by tag
Source4:	https://github.com/wine-staging/wine-staging/archive/v%{stagver}.tar.gz?/wine-staging-%{stagver}.tar.gz
Source5:	https://github.com/iXit/wine-nine-standalone/archive/v%{winenine_ver}.tar.gz?/wine-nine-standalone-%{winenine_ver}.tar.gz
Source6:	https://github.com/Winetricks/winetricks/archive/%{winetricks_git}.tar.gz?/winetricks-%{winetricks_git}.tar.gz
Source7:	http://kegel.com/wine/wisotool
Source10:	wine.rpmlintrc
Source11:	rosa-wine-desktop-8.13.tar.xz
Source12:	icons-4.0.tar.xz
Source13:	wine-stable.rpmlintrc
Source20:	README.all
Source21:	README.x86_64.staging
Source22:	README.i686.staging
Source23:	README.x86_64.stable
Source24:	README.i686.stable

# (Anssi 05/2008) Adds:
# a: => /media/floppy (/mnt/floppy on 2007.1 and older)
# d: => $HOME (at config_dir creation time, not refreshed if $HOME changes;
#		note that Wine also provides $HOME in My Documents)
# com4 => /dev/ttyUSB0 (replaces /dev/ttyS3)
# We have to substitute @MDKVERSION@ in dlls/ntdll/server.c
Patch0:		wine-5.10-mdkconf.patch
# Russian localization
Patch1:		wine-8.4-staging-ru-localization.patch
# https://bugs.winehq.org/show_bug.cgi?id=55139
Patch2:		wine-8.21-load-64bit-kernel32.patch
Patch3:		wine-8.14-drop-autodebug.patch
Patch4:		wine-8.21-undefined-DriverEntry.patch
Patch5:		wine-nine-standalone-0.9-ru-localization.patch
Patch6:		wine-9.5-ru-po-translate.patch
Patch9:		wine-5.10-assertion-failed.patch
# From CentOS
Patch511:	wine-cjk.patch

# This is needed to allow building wine-nine-standalone
# against unstable or stable wine
%ifarch x86_64
%if %{without unstable}
BuildRequires:	wine64-stable-devel
%else
BuildRequires:	wine64-devel
%endif
%endif
%ifarch %{ix86}
%if %{without unstable}
BuildRequires:	wine32-stable-devel
%else
BuildRequires:	wine32-devel
%endif
%endif
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd-sgml
BuildRequires:	docbook-utils
BuildRequires:	flex
BuildRequires:	fontforge
BuildRequires:	imagemagick
# This is needed to build nine-standalone
BuildRequires:	meson
BuildRequires:	opencl-headers
BuildRequires:	openjade
BuildRequires:	prelink
BuildRequires:	sgml-tools
BuildRequires:	valgrind
BuildRequires:	attr-devel
BuildRequires:	cups-devel
BuildRequires:	faudio-devel
#BuildRequires:	fontpackages-devel # Contrib
BuildRequires:	freetype-devel
BuildRequires:	gettext-devel
BuildRequires:	giflib-devel
BuildRequires:	glibc-static-devel
BuildRequires:	gpm-devel
BuildRequires:	gsm-devel
BuildRequires:	ieee1284-devel
#BuildRequires:	isdn4k-utils-devel # Deprecated
BuildRequires:	jxrlib-devel
BuildRequires:	openafs-devel
BuildRequires:	openldap-devel
BuildRequires:	pcap-devel
BuildRequires:	perl-devel
BuildRequires:	stdc++-devel
BuildRequires:	ungif-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(d3d)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libunwind)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libvkd3d)
BuildRequires:	pkgconfig(libvkd3d-shader)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(netapi)
BuildRequires:	pkgconfig(ocl-icd)
BuildRequires:	pkgconfig(odbc)
BuildRequires:	pkgconfig(openal)
#BuildRequires:	mesa-opencl-devel
BuildRequires:	pkgconfig(OpenCL)
BuildRequires:	pkgconfig(osmesa)
BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-present)
BuildRequires:	pkgconfig(xcb-xfixes)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
ExclusiveArch:	%{ix86} x86_64

%description
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x, Win32 and Win64 executables) on Unix. It consists of a
program loader which loads and executes a Microsoft Windows binary, and a
library (called Winelib) that implements Windows API calls using their Unix or
X11 equivalents. The library may also be used for porting Win32 code into
native Unix executables.

#----------------------------------------------------------------------------

#####################################################################
##
## Start of 32bit packages descriptions
##
#####################################################################

%ifarch %{ix86}
%package -n wine32%{?_stab}
Summary:	WINE Is Not An Emulator - runs 32-bit MS Windows programs
Group:		Emulators
Requires:	wine32%{?_stab}-common = %{EVRD}
Requires:	xmessage
# Needed for winetricks:
Requires:	cabextract
Requires:	p7zip
Requires:	unzip
Requires:	zenity
Requires(post,postun):	desktop-common-data
Requires(post,preun):	rpm-helper
Recommends:	sane-frontends
Recommends:	vulkan
Recommends:	vkd3d
Recommends:	webcore-fonts
Recommends:	wine-common-binfmt
%if %{with unstable}
Provides:	wine = 2:6.16-5
Obsoletes:	wine = 2:6.16-5
%else
Provides:	wine-stable = 2:6.0.1-5
Obsoletes:	wine-stable = 2:6.0.1-5
%endif
Provides:	winetricks = %{stagver}
%rename		%{mklibname wine 1}
Conflicts:	wine64%{?_stab}
Conflicts:	wine64%{?_ostab}
Conflicts:	wine32%{?_ostab}

%description -n wine32%{?_stab}
Wine32 is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x and Win32 executables) on Unix. It consists of a
program loader which loads and executes a Microsoft Windows binary, and a
library (called Winelib) that implements Windows API calls using their Unix or
X11 equivalents. The library may also be used for porting Win32 code into
native Unix executables.

%files -n wine32%{?_stab}
%doc ANNOUNCE.md AUTHORS README.md README.all
%{_bindir}/function_grep.pl
%{_bindir}/msidb
%{_bindir}/msiexec
%{_bindir}/notepad
%{_bindir}/regedit
%{_bindir}/regsvr32
%{_bindir}/wineboot
%{_bindir}/winecfg
%{_bindir}/wineconsole*
%{_bindir}/winefile
%{_bindir}/winemine
%{_bindir}/winepath
%{_bindir}/wineserver
%{_bindir}/winetricks
%{_bindir}/wisotool
%{_datadir}/applications/*.desktop
%{_datadir}/wine/fonts
%{_datadir}/wine/nls/c_*.nls
%{_datadir}/wine/nls/l_intl.nls
%{_datadir}/wine/nls/locale.nls
%{_datadir}/wine/nls/norm*.nls
%{_datadir}/wine/nls/sortdefault.nls
%{_datadir}/wine/wine.inf
%dir %{_datadir}/wine
%dir %{_datadir}/wine/nls
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_mandir}/man1/msiexec.1*
%{_mandir}/man1/notepad.1*
%{_mandir}/man1/regedit.1*
%{_mandir}/man1/regsvr32.1*
%{_mandir}/man1/wineboot.1*
%{_mandir}/man1/winecfg.1*
%{_mandir}/man1/wineconsole.1*
%{_mandir}/man1/winecpp.1*
%{_mandir}/man1/winefile.1*
%{_mandir}/man1/winemine.1*
%{_mandir}/man1/winepath.1*
%{_mandir}/man1/wineserver.1*
%{_miconsdir}/*.png
%lang(de) %{_mandir}/de.UTF-8/man1/winemaker.1*
%lang(de) %{_mandir}/de.UTF-8/man1/wineserver.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/winemaker.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/wineserver.1*

%if %{with unstable}
%post -n wine32%{?_stab}
if grep -q "\(SB0880\|Creative\)" /proc/asound/cards && [ -f /etc/pulse/default.pa ]; then
	if grep -q "# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}" /etc/pulse/default.pa; then
		sed -i "s/# Add tsched=0 for winepulse.drv/& - reinstall/" /etc/pulse/default.pa
		exit 0
	fi
	if grep -q "# Add tsched=0 for winepulse.drv" /etc/pulse/default.pa; then
		sed -i "s/\(# Add tsched=0 for winepulse.drv\).*/\1 - update in %{name}-%{version}-%{release}. Previous string is load-module module-udev-detect/" /etc/pulse/default.pa
		exit 0
	fi
	sed -i "s/^load-module module-udev-detect$/# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}. Previous string is &\n& tsched=0/" /etc/pulse/default.pa
	killall pulseaudio || :
fi
%endif

%posttrans -n wine32%{?_stab}
cat %{_defaultdocdir}/wine32%{?_stab}/README.all

%if %{with unstable}
%postun -n wine32%{?_stab}
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv - reinstall" /etc/pulse/default.pa; then
	sed -i "s/# Add tsched=0 for winepulse.drv - reinstall/# Add tsched=0 for winepulse.drv/" /etc/pulse/default.pa
	exit 0
fi
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv - update" /etc/pulse/default.pa; then
	sed -i "s/# Add tsched=0 for winepulse.drv - update/# Add tsched=0 for winepulse.drv/" /etc/pulse/default.pa
	exit 0
fi
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}" /etc/pulse/default.pa; then
	sed -i "s/^load-module module-udev-detect tsched=0/load-module module-udev-detect/" /etc/pulse/default.pa
	sed -i "/^# Add tsched=0 for winepulse.drv/d" /etc/pulse/default.pa
	killall pulseaudio || :
fi
%endif

#----------------------------------------------------------------------------

%package -n wine32%{?_stab}-common
Summary:	32-bit support for wine32%{?_stab} and wine64%{?_stab} packages
Group:		Emulators
# Wine dlopen's these, so let's add the dependencies ourself
Requires:	alsa-plugins-pulseaudio
Requires:	libasound2
Requires:	libcups2
Requires:	libd3dadapter9_1
# GPU-specific drivers are pulled bellow by mesa(x86-32),
# but at least a software GPU-agnostic renderer is needed
Requires:	libdri-drivers-swrast
Requires:	libfaudio0
Requires:	libfreetype6
Requires:	libnss_mdns2
# No use for dkms-nvidia
Requires:	libopencl1
Requires:	libpng16
Requires:	libudev1
Requires:	libxcursor1
Requires:	libxi6
Requires:	libxrender1
# This one need for steam-magazine and certificate in wine
Recommends:	libgnutls30
Recommends:	libieee1284_3
Recommends:	libncurses6
Recommends:	libncursesw6
Recommends:	libnn1
Recommends:	libodbc2
Recommends:	libodbccr2
Recommends:	libodbcinst2
Recommends:	libodbcpsql2
Recommends:	libosmesa8
Recommends:	libsane1
Recommends:	libtemplate1
# This one is now integrated in Mesa
Recommends:	libtxc-dxtn
Recommends:	libv4l0
Recommends:	libvulkan1
Recommends:	libxslt1
# 32 bit OpenGL and Vulkan drivers
Recommends:	mesa(x86-32)
# (Anssi) If wine-gecko is not installed, wine pops up a dialog on first
# start proposing to download wine-gecko from sourceforge, while recommending
# to use distribution packages instead. Therefore suggest wine-gecko here:
#Recommends:	wine-gecko
%if %{with unstable}
Provides:	wine32 = 2:6.16-5
Obsoletes:	wine32 = 2:6.16-5
%else
Provides:	wine32-stable = 2:6.0.1-5
Obsoletes:	wine32-stable = 2:6.0.1-5
%endif
Conflicts:	wine32%{?_ostab}-common

%description -n wine32%{?_stab}-common
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x and Win32 executables) on Unix. This package contains the
files needed to support 32-bit Windows programs.

%files -n wine32%{?_stab}-common
%doc AUTHORS README.i686
%if %{with unstable}
%dir %{_libdir}/wine
%endif
%{_bindir}/wine
%{_bindir}/wine-preloader
%lang(de) %{_mandir}/de.UTF-8/man1/wine.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/wine.1*
%lang(pl) %{_mandir}/pl.UTF-8/man1/wine.1*
%{_libdir}/wine/i386-unix/*.acm.so
%{_libdir}/wine/i386-unix/avicap32.so
%{_libdir}/wine/i386-unix/*.ax.so
%{_libdir}/wine/i386-unix/bcrypt.so
%{_libdir}/wine/i386-unix/*.com.so
%{_libdir}/wine/i386-unix/*.cpl.so
%{_libdir}/wine/i386-unix/crypt32.so
%{_libdir}/wine/i386-unix/ctapi32.so
%{_libdir}/wine/i386-unix/*.dll16.so
%{_libdir}/wine/i386-unix/*.dll.so
%{_libdir}/wine/i386-unix/dnsapi.so
%{_libdir}/wine/i386-unix/*.drv16.so
%{_libdir}/wine/i386-unix/*.drv.so
%{_libdir}/wine/i386-unix/*.ds.so
%{_libdir}/wine/i386-unix/dwrite.so
%{_libdir}/wine/i386-unix/*.exe16.so
%{_libdir}/wine/i386-unix/*.exe.so
%{_libdir}/wine/i386-unix/gphoto2.so
%{_libdir}/wine/i386-unix/kerberos.so
%{_libdir}/wine/i386-unix/localspl.so
%{_libdir}/wine/i386-unix/wineps.so
%{_libdir}/wine/i386-unix/winoldap.mod16.so
%{_libdir}/wine/i386-unix/mountmgr.so
%{_libdir}/wine/i386-unix/msv1_0.so
%{_libdir}/wine/i386-unix/netapi32.so
%{_libdir}/wine/i386-unix/nsiproxy.so
%{_libdir}/wine/i386-unix/ntdll.so
%{_libdir}/wine/i386-unix/*.ocx.so
%if %{without unstable}
%{_libdir}/wine/i386-unix/odbc32.so
%endif
%{_libdir}/wine/i386-unix/opencl.so
%{_libdir}/wine/i386-unix/opengl32.so
%{_libdir}/wine/i386-unix/qcap.so
%{_libdir}/wine/i386-unix/sane.so
%{_libdir}/wine/i386-unix/secur32.so
%{_libdir}/wine/i386-unix/*.sys.so
%{_libdir}/wine/i386-unix/*.vxd.so
%{_libdir}/wine/i386-unix/win32u.so
%{_libdir}/wine/i386-unix/winealsa.so
%{_libdir}/wine/i386-unix/winebus.so
%{_libdir}/wine/i386-unix/winegstreamer.so
%{_libdir}/wine/i386-unix/winepulse.so
%{_libdir}/wine/i386-unix/wineusb.so
%{_libdir}/wine/i386-unix/winevulkan.so
%{_libdir}/wine/i386-unix/winex11.so
%{_libdir}/wine/i386-unix/winspool.so
%{_libdir}/wine/i386-unix/wpcap.so
%{_libdir}/wine/i386-unix/ws2_32.so
%{_libdir}/wine/i386-windows
%{_mandir}/man1/wine.1*

%posttrans -n wine32%{?_stab}-common
cat %{_defaultdocdir}/wine32%{?_stab}-common/README.i686

#----------------------------------------------------------------------------

%package -n wine32%{?_stab}-devel
Summary:	Static libraries, headers and programs for %{name}
Group:		Development/C
Requires:	wine32%{?_stab} = %{EVRD}
%rename		%{mklibname wine -d}
Conflicts:	wine32%{?_ostab}-devel
Conflicts:	wine64%{?_ostab}-devel
Conflicts:	wine64%{?_stab}-devel

%description -n wine32%{?_stab}-devel
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x and Win32 executables) on Unix.
This package contains the libraries, the headers and the program files needed
to develop programs running on Wine.

%files -n wine32%{?_stab}-devel
%doc AUTHORS
%{_bindir}/widl
%{_bindir}/winebuild
%{_bindir}/winecpp
%{_bindir}/winedbg
%{_bindir}/winedump
%{_bindir}/wineg++
%{_bindir}/winegcc
%{_bindir}/winemaker
%{_bindir}/wmc
%{_bindir}/wrc
%dir %{_libdir}/wine
%{_includedir}/*
%{_libdir}/wine/i386-unix/*.a
%{_mandir}/man1/widl.1*
%{_mandir}/man1/winebuild.1*
%{_mandir}/man1/winedbg.1*
%{_mandir}/man1/winedump.1*
%{_mandir}/man1/wineg++.1*
%{_mandir}/man1/winegcc.1*
%{_mandir}/man1/winemaker.1*
%{_mandir}/man1/wmc.1*
%{_mandir}/man1/wrc.1*
%endif

#####################################################################
##
## End of 32bit packages descriptions
##
#####################################################################

#----------------------------------------------------------------------------

#####################################################################
##
## Start of 64bit packages descriptions
##
#####################################################################

%ifarch x86_64
%package -n wine64%{?_stab}
Summary:	WINE Is Not An Emulator - runs MS Windows programs
Group:		Emulators
# Wine dlopen's these, so let's add the dependencies ourself
Requires:	lib64asound2
Requires:	lib64d3dadapter9_1
Requires:	lib64faudio0
Requires:	lib64freetype6
Requires:	lib64nss_mdns2
# No use dkms-nvidia
Requires:	lib64opencl1
Requires:	lib64png16
Requires:	lib64v4l0
Requires:	lib64xi6
Requires:	lib64xrender1
Requires:	xmessage
# Needed for winetricks:
Requires:	cabextract
Requires:	p7zip
Requires:	unzip
Requires:	zenity
Requires(post,postun):	desktop-common-data
Requires(post,preun):	rpm-helper
Recommends:	lib64ncurses6
Recommends:	lib64ncursesw6
Recommends:	lib64nn1
Recommends:	lib64odbc2
Recommends:	lib64odbccr2
Recommends:	lib64odbcinst2
Recommends:	lib64odbcpsql2
Recommends:	lib64osmesa8
Recommends:	lib64template1
Recommends:	lib64vulkan1
Recommends:	sane-frontends
Recommends:	vkd3d
Recommends:	vulkan
Recommends:	webcore-fonts
Recommends:	wine32%{?_stab}-common = %{EVRD}
Recommends:	wine-common-binfmt
# This one is now part of Mesa
Recommends:	lib64txc-dxtn
# Download wine64-gecko from internet, when starting wine
#Recommends:	wine64-gecko
Provides:	%{name} = %{EVRD}
Provides:	winetricks = %{stagver}
%rename		%{mklibname wine 1}
Conflicts:	wine32%{?_ostab}
%if %{with unstable}
Conflicts:	wine32%{?_stab} > 2:6.16-5
Conflicts:	wine32%{?_stab} < 2:6.16-5
%else
Conflicts:	wine32%{?_stab} > 2:6.0.1-5
Conflicts:	wine32%{?_stab} < 2:6.0.1-5
%endif
Conflicts:	wine64%{?_ostab}

%description -n wine64%{?_stab}
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x, Win32 and Win64 executables) on Unix. It consists of a
program loader which loads and executes a Microsoft Windows binary, and a
library (called Winelib) that implements Windows API calls using their Unix or
X11 equivalents. The library may also be used for porting Win32 code into
native Unix executables.
This package contains the Win64 version of Wine. You need the wine32 package
from the 32-bit repository to be able to run 32-bit applications.

%files -n wine64%{?_stab}
%doc ANNOUNCE.md AUTHORS README.md README.all README.x86_64
%if %{with unstable}
%dir %{_datadir}/wine
%dir %{_datadir}/wine/nls
%endif
%{_bindir}/function_grep.pl
%{_bindir}/msidb
%{_bindir}/msiexec
%{_bindir}/notepad
%{_bindir}/regedit
%{_bindir}/regsvr32
%{_bindir}/wine64
%{_bindir}/wine64-preloader
%{_bindir}/wineboot
%{_bindir}/winecfg
%{_bindir}/wineconsole*
%{_bindir}/winefile
%{_bindir}/winemine
%{_bindir}/winepath
%{_bindir}/wineserver
%{_bindir}/winetricks
%{_bindir}/wisotool
%{_datadir}/applications/*.desktop
%{_datadir}/wine/fonts
%{_datadir}/wine/nls/c_*.nls
%{_datadir}/wine/nls/l_intl.nls
%{_datadir}/wine/nls/locale.nls
%{_datadir}/wine/nls/norm*.nls
%{_datadir}/wine/nls/sortdefault.nls
%{_datadir}/wine/wine.inf
%dir %{_libdir}/wine
%{_iconsdir}/*.png
%lang(de) %{_mandir}/de.UTF-8/man1/winemaker.1*
%lang(de) %{_mandir}/de.UTF-8/man1/wineserver.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/winemaker.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/wineserver.1*
%{_libdir}/wine/x86_64-unix/*.acm.so
%{_libdir}/wine/x86_64-unix/avicap32.so
%{_libdir}/wine/x86_64-unix/*.ax.so
%{_libdir}/wine/x86_64-unix/bcrypt.so
%{_libdir}/wine/x86_64-unix/*.com.so
%{_libdir}/wine/x86_64-unix/*.cpl.so
%{_libdir}/wine/x86_64-unix/crypt32.so
%{_libdir}/wine/x86_64-unix/ctapi32.so
%{_libdir}/wine/x86_64-unix/*.dll.so
%{_libdir}/wine/x86_64-unix/dnsapi.so
%{_libdir}/wine/x86_64-unix/*.drv.so
%{_libdir}/wine/x86_64-unix/*.ds.so
%{_libdir}/wine/x86_64-unix/dwrite.so
%{_libdir}/wine/x86_64-unix/*.exe.so
%{_libdir}/wine/x86_64-unix/gphoto2.so
%{_libdir}/wine/x86_64-unix/kerberos.so
%{_libdir}/wine/x86_64-unix/localspl.so
%{_libdir}/wine/x86_64-unix/mountmgr.so
%{_libdir}/wine/x86_64-unix/msv1_0.so
%{_libdir}/wine/x86_64-unix/netapi32.so
%{_libdir}/wine/x86_64-unix/nsiproxy.so
%{_libdir}/wine/x86_64-unix/ntdll.so
%{_libdir}/wine/x86_64-unix/*.ocx.so
%if %{without unstable}
%{_libdir}/wine/x86_64-unix/odbc32.so
%endif
%{_libdir}/wine/x86_64-unix/opencl.so
%{_libdir}/wine/x86_64-unix/opengl32.so
%{_libdir}/wine/x86_64-unix/qcap.so
%{_libdir}/wine/x86_64-unix/sane.so
%{_libdir}/wine/x86_64-unix/secur32.so
%{_libdir}/wine/x86_64-unix/*.sys.so
%{_libdir}/wine/x86_64-unix/win32u.so
%{_libdir}/wine/x86_64-unix/winealsa.so
%{_libdir}/wine/x86_64-unix/winebus.so
%{_libdir}/wine/x86_64-unix/winegstreamer.so
%{_libdir}/wine/x86_64-unix/wineps.so
%{_libdir}/wine/x86_64-unix/winepulse.so
%{_libdir}/wine/x86_64-unix/wineusb.so
%{_libdir}/wine/x86_64-unix/winevulkan.so
%{_libdir}/wine/x86_64-unix/winex11.so
%{_libdir}/wine/x86_64-unix/winspool.so
%{_libdir}/wine/x86_64-unix/wpcap.so
%{_libdir}/wine/x86_64-unix/ws2_32.so
%{_libdir}/wine/x86_64-windows
%{_liconsdir}/*.png
%{_mandir}/man1/msiexec.1*
%{_mandir}/man1/notepad.1*
%{_mandir}/man1/regedit.1*
%{_mandir}/man1/regsvr32.1*
%{_mandir}/man1/wineboot.1*
%{_mandir}/man1/winecfg.1*
%{_mandir}/man1/wineconsole.1*
%{_mandir}/man1/winecpp.1*
%{_mandir}/man1/winefile.1*
%{_mandir}/man1/winemine.1*
%{_mandir}/man1/winepath.1*
%{_mandir}/man1/wineserver.1*
%{_miconsdir}/*.png

%if %{with unstable}
%post -n wine64%{?_stab}
if grep -q "\(SB0880\|Creative\)" /proc/asound/cards && [ -f /etc/pulse/default.pa ]; then
	if grep -q "# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}" /etc/pulse/default.pa; then
		sed -i "s/# Add tsched=0 for winepulse.drv/& - reinstall/" /etc/pulse/default.pa
		exit 0
	fi
	if grep -q "# Add tsched=0 for winepulse.drv" /etc/pulse/default.pa; then
		sed -i "s/\(# Add tsched=0 for winepulse.drv\).*/\1 - update in %{name}-%{version}-%{release}. Previous string is load-module module-udev-detect/" /etc/pulse/default.pa
		exit 0
	fi
	sed -i "s/^load-module module-udev-detect$/# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}. Previous string is &\n& tsched=0/" /etc/pulse/default.pa
	killall pulseaudio || :
fi
%endif

%posttrans -n wine64%{?_stab}
cat %{_defaultdocdir}/wine64%{?_stab}/README.all
cat %{_defaultdocdir}/wine64%{?_stab}/README.x86_64

%if %{with unstable}
%postun -n wine64%{?_stab}
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv - reinstall" /etc/pulse/default.pa; then
	sed -i "s/# Add tsched=0 for winepulse.drv - reinstall/# Add tsched=0 for winepulse.drv/" /etc/pulse/default.pa
	exit 0
fi
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv - update" /etc/pulse/default.pa; then
	sed -i "s/# Add tsched=0 for winepulse.drv - update/# Add tsched=0 for winepulse.drv/" /etc/pulse/default.pa
	exit 0
fi
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}" /etc/pulse/default.pa; then
	sed -i "s/^load-module module-udev-detect tsched=0/load-module module-udev-detect/" /etc/pulse/default.pa
	sed -i "/^# Add tsched=0 for winepulse.drv/d" /etc/pulse/default.pa
	killall pulseaudio || :
fi
%endif

#----------------------------------------------------------------------------

%package -n wine64%{?_stab}-devel
Summary:	Static libraries, headers and programs for %{name}
Group:		Development/C
Requires:	wine64%{?_stab} = %{EVRD}
%rename		%{mklibname wine -d}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	wine32%{?_ostab}-devel
Conflicts:	wine32%{?_stab}-devel
Conflicts:	wine64%{?_ostab}-devel

%description -n wine64%{?_stab}-devel
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x, Win32 and Win64 executables) on Unix.
This package contains the libraries, the headers and the program files needed
to develop programs running on Wine.

%files -n wine64%{?_stab}-devel
%doc AUTHORS
%{_bindir}/widl
%{_bindir}/winebuild
%{_bindir}/winecpp
%{_bindir}/winedbg
%{_bindir}/winedump
%{_bindir}/wineg++
%{_bindir}/winegcc
%{_bindir}/winemaker
%{_bindir}/wmc
%{_bindir}/wrc
%dir %{_libdir}/wine
%{_includedir}/*
%{_libdir}/wine/x86_64-unix/*.a
%{_mandir}/man1/widl.1*
%{_mandir}/man1/winebuild.1*
%{_mandir}/man1/winedbg.1*
%{_mandir}/man1/winedump.1*
%{_mandir}/man1/wineg++.1*
%{_mandir}/man1/winegcc.1*
%{_mandir}/man1/winemaker.1*
%{_mandir}/man1/wmc.1*
%{_mandir}/man1/wrc.1*
%endif

#####################################################################
##
## End of 64bit packages descriptions
##
#####################################################################

#----------------------------------------------------------------------------

%if %{without unstable}
%package -n wine-common-binfmt
Summary:	Support for launching Windows executables directly
Group:		Emulators
OrderWithRequires: wine32 = %{EVRD}
OrderWithRequires: wine64 = %{EVRD}
OrderWithRequires: wine32-stable = %{EVRD}
OrderWithRequires: wine64-stable = %{EVRD}
Requires(post):	rpm-helper
Requires(pre,post,preun,postun): systemd
Provides:	wine-binfmt = 2:6.16-5
Provides:	wine-stable-binfmt = 2:6.0.1-5
Provides:	wine64-binfmt = 2:6.16-5
Provides:	wine64-stable-binfmt = 2:6.0.1-5
Obsoletes:	wine-binfmt = 2:6.16-5
Obsoletes:	wine-stable-binfmt = 2:6.0.1-5
Obsoletes:	wine64-binfmt = 2:6.16-5
Obsoletes:	wine64-stable-binfmt = 2:6.0.1-5
BuildArch:	noarch

%description -n wine-common-binfmt
Wine is a program which allows running Microsoft Windows programs
(including DOS, Windows 3.x, Win32 and Win64 executables) on Unix.
This package provides support for launching Windows executables directly.

%files -n wine-common-binfmt
%doc README.md
%{_binfmtdir}/wine.conf

%pre -n wine-common-binfmt
systemctl stop systemd-binfmt.service

%post -n wine-common-binfmt
%binfmt_apply wine.conf
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn wine-%{version} -b5 -a6 -a11 -a12
%patch0 -p1 -b .conf
%patch1 -p1 -b .staging-localization
%if %{with unstable}
%patch2 -p1 -b .kernel32
%patch4 -p1 -b .DriverEntry
%patch6 -p1 -b .po-localization
%endif
%patch3 -p1 -b .dropautodebug
%patch9 -p1 -b .assert
%patch511 -p1 -b .cjk

# Some advices to user
cp %{SOURCE20} .
%if %{with unstable}
cp %{SOURCE21} README.x86_64
cp %{SOURCE22} README.i686
%else
cp %{SOURCE23} README.x86_64
cp %{SOURCE24} README.i686
%endif

%if %{with unstable}
# Wine-staging
gzip -dc "%{SOURCE4}" | /bin/tar -xf - --strip-components=1
./staging/patchinstall.py DESTDIR="%{_builddir}/wine-%{version}" --all
# Default theme
sed -i "/ThemeActive/ s/1/0/" loader/wine.inf.in
%endif

# Wine-nine-standalone
pushd ../wine-nine-standalone-%{winenine_ver}
%patch5 -p1 -b .wine-nine-localization
popd

%build
%ifarch %{ix86}
# (Anssi 04/2008) bug #39604
# Some protection systems complain "debugger detected" with our
# -fomit-frame-pointer flag, so disable it.
export CFLAGS="%{optflags} -fno-omit-frame-pointer"
%endif
%ifarch x86_64
export CFLAGS="%{optflags}"
%endif

# Disable fortify as it breaks wine
# http://bugs.winehq.org/show_bug.cgi?id=24606
# http://bugs.winehq.org/show_bug.cgi?id=25073
export CFLAGS="`echo $CFLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//'` -Wno-error -Wno-error=incompatible-pointer-types"

# (Anssi 04/2008)
# If icotool is present, it is used to rebuild icon files. It is in Contrib
# so we do not do that; this is here to ensure that installed icoutils does
# not change build behaviour.
export ICOTOOL=false


# 1. Build wine
autoreconf -vfi
# HAL is obsolete, then don't ask for it.
# Our OSS is too old (< 4), also don't ask for it.
%configure \
%ifarch x86_64
	--enable-win64 \
%endif
	--with-dbus \
	--with-x \
	--with-gstreamer \
	--without-oss
# We need to drop stack protection to avoid wine bug #55139
export NOSTACKP_FLAGS="-fno-stack-protector -fcf-protection=none"
export CFLAGS="$CFLAGS $NOSTACKP_FLAGS"
CXXFLAGS="$CXXFLAGS $NOSTACKP_FLAGS"
FFLAGS="$FFLAGS $NOSTACKP_FLAGS"
FCFLAGS="$FCFLAGS $NOSTACKP_FLAGS"
LDFLAGS="$LDFLAGS $NOSTACKP_FLAGS"
%make depend
%make

# 2. Next, build wine-nine-standalone
pushd ../wine-nine-standalone-%{winenine_ver}
	export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
	mkdir -p ./tmp
	sed -i "s/@PKG_CONFIG@/pkg-config/g" ./tools/cross-wine32.in
	sed -i "s/@PKG_CONFIG@/pkg-config/g" ./tools/cross-wine64.in
	meson	\
		--bindir bin		\
		--buildtype "release"	\
%ifarch x86_64
		--cross-file "./tools/cross-wine64.in" \
%endif
%ifarch %{ix86}
		--cross-file "./tools/cross-wine32.in" \
%endif
		--libdir %{_lib}	\
		$MESONARGS		\
		"./tmp/build"
	sed -i "s/fPIC/fPIC -Wno-error=implicit-function-declaration/" tmp/build/build.ninja
	ninja -C "./tmp/build"
	find -L .
popd


%install
%makeinstall_std LDCONFIG=/bin/true

# Install wisotool
install -m 0755 %{SOURCE7} %{buildroot}%{_bindir}

# Install winetricks
install -m 0755 winetricks-%{winetricks_git}/src/winetricks %{buildroot}%{_bindir}

%if %{without unstable}
# Note: binfmt is insecure (see https://nixtux.ru/450), 
# so we will put it in a separate package.
# Allow users to launch Windows programs by just clicking on the .exe file...
install -m 644 %{SOURCE3} -D %{buildroot}%{_binfmtdir}/wine.conf
%endif

mkdir -p %{buildroot}%{_datadir}/applications
cp rosa-wine-desktop-*/*.desktop %{buildroot}%{_datadir}/applications
cp -r icons-*/icons %{buildroot}%{_datadir}

# Categories=Emulator does nothing and is added as a workaround to kde #27700
desktop-file-install	--vendor="" \
			--add-mime-type=application/x-zip-compressed \
			--remove-mime-type=application/x-zip-compressed \
			--add-category=Emulator \
			--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/wine.desktop

%ifarch x86_64
# Fix the binary name in the .desktop file
sed -i "s/Exec=wine /Exec=wine64 /" %{buildroot}%{_datadir}/applications/{wine,rosa-wine-ninecfg}.desktop
sed -i "s/Exec=/Exec=wine64 /" %{buildroot}%{_datadir}/applications/rosa-wine-{notepad,regedit,wineboot,winecfg,wineconsole_cmd,winefile,winemine}.desktop
%endif

# Remove rpaths
%ifarch x86_64
chrpath -d %{buildroot}%{_bindir}/wine64
%endif
%ifarch %{ix86}
chrpath -d %{buildroot}%{_bindir}/wine
%endif

# Install wine-nine-standalone stuff
pushd ../wine-nine-standalone-%{winenine_ver}
%ifarch x86_64
	install -m 755 tmp/build/ninewinecfg/ninewinecfg.exe.so %{buildroot}/%{_libdir}/wine/x86_64-unix/ninewinecfg.exe.so
	install -m 755 tmp/build/ninewinecfg/ninewinecfg.exe.fake %{buildroot}/%{_libdir}/wine/x86_64-windows/ninewinecfg.exe
	install -m 755 tmp/build/d3d9-nine/d3d9-nine.dll.so %{buildroot}/%{_libdir}/wine/x86_64-unix/d3d9-nine.dll.so
	install -m 755 tmp/build/d3d9-nine/d3d9-nine.dll.fake %{buildroot}/%{_libdir}/wine/x86_64-windows/d3d9-nine.dll
%endif
%ifarch %{ix86}
	install -m 755 tmp/build/ninewinecfg/ninewinecfg.exe.so %{buildroot}/%{_libdir}/wine/i386-unix/ninewinecfg.exe.so
	install -m 755 tmp/build/ninewinecfg/ninewinecfg.exe.fake %{buildroot}/%{_libdir}/wine/i386-windows/ninewinecfg.exe
	install -m 755 tmp/build/d3d9-nine/d3d9-nine.dll.so %{buildroot}/%{_libdir}/wine/i386-unix/d3d9-nine.dll.so
	install -m 755 tmp/build/d3d9-nine/d3d9-nine.dll.fake %{buildroot}/%{_libdir}/wine/i386-windows/d3d9-nine.dll
%endif
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20183 |21mr|wine-stable-9.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Switch between stable or devel builds
%bcond_with	unstable

# It download dkms-nvidia*
%global __requires_exclude libOpenCL.so.*

# wine-staging tarball version
%define stagver		9.9

# wine-stable tarball version
%define	stabver		9.0

%define	winenine_ver	0.9
%define	winetricks_git	383292899865c41d7f9e5e77c3f09b73e72a0fde

%if %{with unstable}
%define _ostab	-stable
%define version	%(echo %{stagver} |cut -d. -f-2)
%define pathver	%(echo %{stagver} |cut -d. -f1).x
%define over	%{stabver}
%define opver	%(echo %{stabver} |cut -d. -f-2)
%else
%define _stab	-stable
%define version	%{stabver}
%define pathver	%(echo %{stabver} |cut -d. -f-2)
%define over	%(echo %{stagver} |cut -d. -f-2)
%define opver	%(echo %{stagver} |cut -d. -f1).x
%endif

Summary:	WINE Is Not An Emulator - runs MS Windows programs
Name:		wine%{?_stab}
Version:	%{version}
Release:	1
Epoch:		2
License:	LGPLv2+
Group:		Emulators
Url:		http://www.winehq.com
Source0:	https://dl.winehq.org/wine/source/%{pathver}/wine-%{version}.tar.xz
%if %{without unstable}
Source1:	https://dl.winehq.org/wine/source/%{opver}/wine-%{over}.tar.xz
%endif
# See: https://wiki.archlinux.org/index.php/wine (Using Wine as an interpreter for Win16/Win32 binaries)
Source3:	wine.systemd
# New wine-staging from github by tag
Source4:	https://github.com/wine-staging/wine-staging/archive/v%{stagver}.tar.gz?/wine-staging-%{stagver}.tar.gz
Source5:	https://github.com/iXit/wine-nine-standalone/archive/v%{winenine_ver}.tar.gz?/wine-nine-standalone-%{winenine_ver}.tar.gz
Source6:	https://github.com/Winetricks/winetricks/archive/%{winetricks_git}.tar.gz?/winetricks-%{winetricks_git}.tar.gz
Source7:	http://kegel.com/wine/wisotool
Source10:	wine.rpmlintrc
Source11:	rosa-wine-desktop-8.13.tar.xz
Source12:	icons-4.0.tar.xz
Source13:	wine-stable.rpmlintrc
Source20:	README.all
Source21:	README.x86_64.staging
Source22:	README.i686.staging
Source23:	README.x86_64.stable
Source24:	README.i686.stable

# (Anssi 05/2008) Adds:
# a: => /media/floppy (/mnt/floppy on 2007.1 and older)
# d: => $HOME (at config_dir creation time, not refreshed if $HOME changes;
#		note that Wine also provides $HOME in My Documents)
# com4 => /dev/ttyUSB0 (replaces /dev/ttyS3)
# We have to substitute @MDKVERSION@ in dlls/ntdll/server.c
Patch0:		wine-5.10-mdkconf.patch
# Russian localization
Patch1:		wine-8.4-staging-ru-localization.patch
# https://bugs.winehq.org/show_bug.cgi?id=55139
Patch2:		wine-8.21-load-64bit-kernel32.patch
Patch3:		wine-8.14-drop-autodebug.patch
Patch4:		wine-8.21-undefined-DriverEntry.patch
Patch5:		wine-nine-standalone-0.9-ru-localization.patch
Patch6:		wine-9.5-ru-po-translate.patch
Patch9:		wine-5.10-assertion-failed.patch
# From CentOS
Patch511:	wine-cjk.patch

# This is needed to allow building wine-nine-standalone
# against unstable or stable wine
%ifarch x86_64
%if %{without unstable}
BuildRequires:	wine64-stable-devel
%else
BuildRequires:	wine64-devel
%endif
%endif
%ifarch %{ix86}
%if %{without unstable}
BuildRequires:	wine32-stable-devel
%else
BuildRequires:	wine32-devel
%endif
%endif
BuildRequires:	bison
BuildRequires:	chrpath
BuildRequires:	desktop-file-utils
BuildRequires:	docbook-dtd-sgml
BuildRequires:	docbook-utils
BuildRequires:	flex
BuildRequires:	fontforge
BuildRequires:	imagemagick
# This is needed to build nine-standalone
BuildRequires:	meson
BuildRequires:	opencl-headers
BuildRequires:	openjade
BuildRequires:	prelink
BuildRequires:	sgml-tools
BuildRequires:	valgrind
BuildRequires:	attr-devel
BuildRequires:	cups-devel
BuildRequires:	faudio-devel
#BuildRequires:	fontpackages-devel # Contrib
BuildRequires:	freetype-devel
BuildRequires:	gettext-devel
BuildRequires:	giflib-devel
BuildRequires:	glibc-static-devel
BuildRequires:	gpm-devel
BuildRequires:	gsm-devel
BuildRequires:	ieee1284-devel
#BuildRequires:	isdn4k-utils-devel # Deprecated
BuildRequires:	jxrlib-devel
BuildRequires:	openafs-devel
BuildRequires:	openldap-devel
BuildRequires:	pcap-devel
BuildRequires:	perl-devel
BuildRequires:	stdc++-devel
BuildRequires:	ungif-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(d3d)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-base-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(jack)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libmpg123)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libunwind)
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(libva)
BuildRequires:	pkgconfig(libvkd3d)
BuildRequires:	pkgconfig(libvkd3d-shader)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(netapi)
BuildRequires:	pkgconfig(ocl-icd)
BuildRequires:	pkgconfig(odbc)
BuildRequires:	pkgconfig(openal)
#BuildRequires:	mesa-opencl-devel
BuildRequires:	pkgconfig(OpenCL)
BuildRequires:	pkgconfig(osmesa)
BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(valgrind)
BuildRequires:	pkgconfig(vulkan)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-present)
BuildRequires:	pkgconfig(xcb-xfixes)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
ExclusiveArch:	%{ix86} x86_64

%description
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x, Win32 and Win64 executables) on Unix. It consists of a
program loader which loads and executes a Microsoft Windows binary, and a
library (called Winelib) that implements Windows API calls using their Unix or
X11 equivalents. The library may also be used for porting Win32 code into
native Unix executables.

#----------------------------------------------------------------------------

#####################################################################
##
## Start of 32bit packages descriptions
##
#####################################################################

%ifarch %{ix86}
%package -n wine32%{?_stab}
Summary:	WINE Is Not An Emulator - runs 32-bit MS Windows programs
Group:		Emulators
Requires:	wine32%{?_stab}-common = %{EVRD}
Requires:	xmessage
# Needed for winetricks:
Requires:	cabextract
Requires:	p7zip
Requires:	unzip
Requires:	zenity
Requires(post,postun):	desktop-common-data
Requires(post,preun):	rpm-helper
Recommends:	sane-frontends
Recommends:	vulkan
Recommends:	vkd3d
Recommends:	webcore-fonts
Recommends:	wine-common-binfmt
%if %{with unstable}
Provides:	wine = 2:6.16-5
Obsoletes:	wine = 2:6.16-5
%else
Provides:	wine-stable = 2:6.0.1-5
Obsoletes:	wine-stable = 2:6.0.1-5
%endif
Provides:	winetricks = %{stagver}
%rename		%{mklibname wine 1}
Conflicts:	wine64%{?_stab}
Conflicts:	wine64%{?_ostab}
Conflicts:	wine32%{?_ostab}

%description -n wine32%{?_stab}
Wine32 is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x and Win32 executables) on Unix. It consists of a
program loader which loads and executes a Microsoft Windows binary, and a
library (called Winelib) that implements Windows API calls using their Unix or
X11 equivalents. The library may also be used for porting Win32 code into
native Unix executables.

%files -n wine32%{?_stab}
%doc ANNOUNCE.md AUTHORS README.md README.all
%{_bindir}/function_grep.pl
%{_bindir}/msidb
%{_bindir}/msiexec
%{_bindir}/notepad
%{_bindir}/regedit
%{_bindir}/regsvr32
%{_bindir}/wineboot
%{_bindir}/winecfg
%{_bindir}/wineconsole*
%{_bindir}/winefile
%{_bindir}/winemine
%{_bindir}/winepath
%{_bindir}/wineserver
%{_bindir}/winetricks
%{_bindir}/wisotool
%{_datadir}/applications/*.desktop
%{_datadir}/wine/fonts
%{_datadir}/wine/nls/c_*.nls
%{_datadir}/wine/nls/l_intl.nls
%{_datadir}/wine/nls/locale.nls
%{_datadir}/wine/nls/norm*.nls
%{_datadir}/wine/nls/sortdefault.nls
%{_datadir}/wine/wine.inf
%dir %{_datadir}/wine
%dir %{_datadir}/wine/nls
%{_iconsdir}/*.png
%{_liconsdir}/*.png
%{_mandir}/man1/msiexec.1*
%{_mandir}/man1/notepad.1*
%{_mandir}/man1/regedit.1*
%{_mandir}/man1/regsvr32.1*
%{_mandir}/man1/wineboot.1*
%{_mandir}/man1/winecfg.1*
%{_mandir}/man1/wineconsole.1*
%{_mandir}/man1/winecpp.1*
%{_mandir}/man1/winefile.1*
%{_mandir}/man1/winemine.1*
%{_mandir}/man1/winepath.1*
%{_mandir}/man1/wineserver.1*
%{_miconsdir}/*.png
%lang(de) %{_mandir}/de.UTF-8/man1/winemaker.1*
%lang(de) %{_mandir}/de.UTF-8/man1/wineserver.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/winemaker.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/wineserver.1*

%if %{with unstable}
%post -n wine32%{?_stab}
if grep -q "\(SB0880\|Creative\)" /proc/asound/cards && [ -f /etc/pulse/default.pa ]; then
	if grep -q "# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}" /etc/pulse/default.pa; then
		sed -i "s/# Add tsched=0 for winepulse.drv/& - reinstall/" /etc/pulse/default.pa
		exit 0
	fi
	if grep -q "# Add tsched=0 for winepulse.drv" /etc/pulse/default.pa; then
		sed -i "s/\(# Add tsched=0 for winepulse.drv\).*/\1 - update in %{name}-%{version}-%{release}. Previous string is load-module module-udev-detect/" /etc/pulse/default.pa
		exit 0
	fi
	sed -i "s/^load-module module-udev-detect$/# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}. Previous string is &\n& tsched=0/" /etc/pulse/default.pa
	killall pulseaudio || :
fi
%endif

%posttrans -n wine32%{?_stab}
cat %{_defaultdocdir}/wine32%{?_stab}/README.all

%if %{with unstable}
%postun -n wine32%{?_stab}
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv - reinstall" /etc/pulse/default.pa; then
	sed -i "s/# Add tsched=0 for winepulse.drv - reinstall/# Add tsched=0 for winepulse.drv/" /etc/pulse/default.pa
	exit 0
fi
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv - update" /etc/pulse/default.pa; then
	sed -i "s/# Add tsched=0 for winepulse.drv - update/# Add tsched=0 for winepulse.drv/" /etc/pulse/default.pa
	exit 0
fi
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}" /etc/pulse/default.pa; then
	sed -i "s/^load-module module-udev-detect tsched=0/load-module module-udev-detect/" /etc/pulse/default.pa
	sed -i "/^# Add tsched=0 for winepulse.drv/d" /etc/pulse/default.pa
	killall pulseaudio || :
fi
%endif

#----------------------------------------------------------------------------

%package -n wine32%{?_stab}-common
Summary:	32-bit support for wine32%{?_stab} and wine64%{?_stab} packages
Group:		Emulators
# Wine dlopen's these, so let's add the dependencies ourself
Requires:	alsa-plugins-pulseaudio
Requires:	libasound2
Requires:	libcups2
Requires:	libd3dadapter9_1
# GPU-specific drivers are pulled bellow by mesa(x86-32),
# but at least a software GPU-agnostic renderer is needed
Requires:	libdri-drivers-swrast
Requires:	libfaudio0
Requires:	libfreetype6
Requires:	libnss_mdns2
# No use for dkms-nvidia
Requires:	libopencl1
Requires:	libpng16
Requires:	libudev1
Requires:	libxcursor1
Requires:	libxi6
Requires:	libxrender1
# This one need for steam-magazine and certificate in wine
Recommends:	libgnutls30
Recommends:	libieee1284_3
Recommends:	libncurses6
Recommends:	libncursesw6
Recommends:	libnn1
Recommends:	libodbc2
Recommends:	libodbccr2
Recommends:	libodbcinst2
Recommends:	libodbcpsql2
Recommends:	libosmesa8
Recommends:	libsane1
Recommends:	libtemplate1
# This one is now integrated in Mesa
Recommends:	libtxc-dxtn
Recommends:	libv4l0
Recommends:	libvulkan1
Recommends:	libxslt1
# 32 bit OpenGL and Vulkan drivers
Recommends:	mesa(x86-32)
# (Anssi) If wine-gecko is not installed, wine pops up a dialog on first
# start proposing to download wine-gecko from sourceforge, while recommending
# to use distribution packages instead. Therefore suggest wine-gecko here:
#Recommends:	wine-gecko
%if %{with unstable}
Provides:	wine32 = 2:6.16-5
Obsoletes:	wine32 = 2:6.16-5
%else
Provides:	wine32-stable = 2:6.0.1-5
Obsoletes:	wine32-stable = 2:6.0.1-5
%endif
Conflicts:	wine32%{?_ostab}-common

%description -n wine32%{?_stab}-common
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x and Win32 executables) on Unix. This package contains the
files needed to support 32-bit Windows programs.

%files -n wine32%{?_stab}-common
%doc AUTHORS README.i686
%if %{with unstable}
%dir %{_libdir}/wine
%endif
%{_bindir}/wine
%{_bindir}/wine-preloader
%lang(de) %{_mandir}/de.UTF-8/man1/wine.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/wine.1*
%lang(pl) %{_mandir}/pl.UTF-8/man1/wine.1*
%{_libdir}/wine/i386-unix/*.acm.so
%{_libdir}/wine/i386-unix/avicap32.so
%{_libdir}/wine/i386-unix/*.ax.so
%{_libdir}/wine/i386-unix/bcrypt.so
%{_libdir}/wine/i386-unix/*.com.so
%{_libdir}/wine/i386-unix/*.cpl.so
%{_libdir}/wine/i386-unix/crypt32.so
%{_libdir}/wine/i386-unix/ctapi32.so
%{_libdir}/wine/i386-unix/*.dll16.so
%{_libdir}/wine/i386-unix/*.dll.so
%{_libdir}/wine/i386-unix/dnsapi.so
%{_libdir}/wine/i386-unix/*.drv16.so
%{_libdir}/wine/i386-unix/*.drv.so
%{_libdir}/wine/i386-unix/*.ds.so
%{_libdir}/wine/i386-unix/dwrite.so
%{_libdir}/wine/i386-unix/*.exe16.so
%{_libdir}/wine/i386-unix/*.exe.so
%{_libdir}/wine/i386-unix/gphoto2.so
%{_libdir}/wine/i386-unix/kerberos.so
%{_libdir}/wine/i386-unix/localspl.so
%{_libdir}/wine/i386-unix/wineps.so
%{_libdir}/wine/i386-unix/winoldap.mod16.so
%{_libdir}/wine/i386-unix/mountmgr.so
%{_libdir}/wine/i386-unix/msv1_0.so
%{_libdir}/wine/i386-unix/netapi32.so
%{_libdir}/wine/i386-unix/nsiproxy.so
%{_libdir}/wine/i386-unix/ntdll.so
%{_libdir}/wine/i386-unix/*.ocx.so
%if %{without unstable}
%{_libdir}/wine/i386-unix/odbc32.so
%endif
%{_libdir}/wine/i386-unix/opencl.so
%{_libdir}/wine/i386-unix/opengl32.so
%{_libdir}/wine/i386-unix/qcap.so
%{_libdir}/wine/i386-unix/sane.so
%{_libdir}/wine/i386-unix/secur32.so
%{_libdir}/wine/i386-unix/*.sys.so
%{_libdir}/wine/i386-unix/*.vxd.so
%{_libdir}/wine/i386-unix/win32u.so
%{_libdir}/wine/i386-unix/winealsa.so
%{_libdir}/wine/i386-unix/winebus.so
%{_libdir}/wine/i386-unix/winegstreamer.so
%{_libdir}/wine/i386-unix/winepulse.so
%{_libdir}/wine/i386-unix/wineusb.so
%{_libdir}/wine/i386-unix/winevulkan.so
%{_libdir}/wine/i386-unix/winex11.so
%{_libdir}/wine/i386-unix/winspool.so
%{_libdir}/wine/i386-unix/wpcap.so
%{_libdir}/wine/i386-unix/ws2_32.so
%{_libdir}/wine/i386-windows
%{_mandir}/man1/wine.1*

%posttrans -n wine32%{?_stab}-common
cat %{_defaultdocdir}/wine32%{?_stab}-common/README.i686

#----------------------------------------------------------------------------

%package -n wine32%{?_stab}-devel
Summary:	Static libraries, headers and programs for %{name}
Group:		Development/C
Requires:	wine32%{?_stab} = %{EVRD}
%rename		%{mklibname wine -d}
Conflicts:	wine32%{?_ostab}-devel
Conflicts:	wine64%{?_ostab}-devel
Conflicts:	wine64%{?_stab}-devel

%description -n wine32%{?_stab}-devel
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x and Win32 executables) on Unix.
This package contains the libraries, the headers and the program files needed
to develop programs running on Wine.

%files -n wine32%{?_stab}-devel
%doc AUTHORS
%{_bindir}/widl
%{_bindir}/winebuild
%{_bindir}/winecpp
%{_bindir}/winedbg
%{_bindir}/winedump
%{_bindir}/wineg++
%{_bindir}/winegcc
%{_bindir}/winemaker
%{_bindir}/wmc
%{_bindir}/wrc
%dir %{_libdir}/wine
%{_includedir}/*
%{_libdir}/wine/i386-unix/*.a
%{_mandir}/man1/widl.1*
%{_mandir}/man1/winebuild.1*
%{_mandir}/man1/winedbg.1*
%{_mandir}/man1/winedump.1*
%{_mandir}/man1/wineg++.1*
%{_mandir}/man1/winegcc.1*
%{_mandir}/man1/winemaker.1*
%{_mandir}/man1/wmc.1*
%{_mandir}/man1/wrc.1*
%endif

#####################################################################
##
## End of 32bit packages descriptions
##
#####################################################################

#----------------------------------------------------------------------------

#####################################################################
##
## Start of 64bit packages descriptions
##
#####################################################################

%ifarch x86_64
%package -n wine64%{?_stab}
Summary:	WINE Is Not An Emulator - runs MS Windows programs
Group:		Emulators
# Wine dlopen's these, so let's add the dependencies ourself
Requires:	lib64asound2
Requires:	lib64d3dadapter9_1
Requires:	lib64faudio0
Requires:	lib64freetype6
Requires:	lib64nss_mdns2
# No use dkms-nvidia
Requires:	lib64opencl1
Requires:	lib64png16
Requires:	lib64v4l0
Requires:	lib64xi6
Requires:	lib64xrender1
Requires:	xmessage
# Needed for winetricks:
Requires:	cabextract
Requires:	p7zip
Requires:	unzip
Requires:	zenity
Requires(post,postun):	desktop-common-data
Requires(post,preun):	rpm-helper
Recommends:	lib64ncurses6
Recommends:	lib64ncursesw6
Recommends:	lib64nn1
Recommends:	lib64odbc2
Recommends:	lib64odbccr2
Recommends:	lib64odbcinst2
Recommends:	lib64odbcpsql2
Recommends:	lib64osmesa8
Recommends:	lib64template1
Recommends:	lib64vulkan1
Recommends:	sane-frontends
Recommends:	vkd3d
Recommends:	vulkan
Recommends:	webcore-fonts
Recommends:	wine32%{?_stab}-common = %{EVRD}
Recommends:	wine-common-binfmt
# This one is now part of Mesa
Recommends:	lib64txc-dxtn
# Download wine64-gecko from internet, when starting wine
#Recommends:	wine64-gecko
Provides:	%{name} = %{EVRD}
Provides:	winetricks = %{stagver}
%rename		%{mklibname wine 1}
Conflicts:	wine32%{?_ostab}
%if %{with unstable}
Conflicts:	wine32%{?_stab} > 2:6.16-5
Conflicts:	wine32%{?_stab} < 2:6.16-5
%else
Conflicts:	wine32%{?_stab} > 2:6.0.1-5
Conflicts:	wine32%{?_stab} < 2:6.0.1-5
%endif
Conflicts:	wine64%{?_ostab}

%description -n wine64%{?_stab}
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x, Win32 and Win64 executables) on Unix. It consists of a
program loader which loads and executes a Microsoft Windows binary, and a
library (called Winelib) that implements Windows API calls using their Unix or
X11 equivalents. The library may also be used for porting Win32 code into
native Unix executables.
This package contains the Win64 version of Wine. You need the wine32 package
from the 32-bit repository to be able to run 32-bit applications.

%files -n wine64%{?_stab}
%doc ANNOUNCE.md AUTHORS README.md README.all README.x86_64
%if %{with unstable}
%dir %{_datadir}/wine
%dir %{_datadir}/wine/nls
%endif
%{_bindir}/function_grep.pl
%{_bindir}/msidb
%{_bindir}/msiexec
%{_bindir}/notepad
%{_bindir}/regedit
%{_bindir}/regsvr32
%{_bindir}/wine64
%{_bindir}/wine64-preloader
%{_bindir}/wineboot
%{_bindir}/winecfg
%{_bindir}/wineconsole*
%{_bindir}/winefile
%{_bindir}/winemine
%{_bindir}/winepath
%{_bindir}/wineserver
%{_bindir}/winetricks
%{_bindir}/wisotool
%{_datadir}/applications/*.desktop
%{_datadir}/wine/fonts
%{_datadir}/wine/nls/c_*.nls
%{_datadir}/wine/nls/l_intl.nls
%{_datadir}/wine/nls/locale.nls
%{_datadir}/wine/nls/norm*.nls
%{_datadir}/wine/nls/sortdefault.nls
%{_datadir}/wine/wine.inf
%dir %{_libdir}/wine
%{_iconsdir}/*.png
%lang(de) %{_mandir}/de.UTF-8/man1/winemaker.1*
%lang(de) %{_mandir}/de.UTF-8/man1/wineserver.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/winemaker.1*
%lang(fr) %{_mandir}/fr.UTF-8/man1/wineserver.1*
%{_libdir}/wine/x86_64-unix/*.acm.so
%{_libdir}/wine/x86_64-unix/avicap32.so
%{_libdir}/wine/x86_64-unix/*.ax.so
%{_libdir}/wine/x86_64-unix/bcrypt.so
%{_libdir}/wine/x86_64-unix/*.com.so
%{_libdir}/wine/x86_64-unix/*.cpl.so
%{_libdir}/wine/x86_64-unix/crypt32.so
%{_libdir}/wine/x86_64-unix/ctapi32.so
%{_libdir}/wine/x86_64-unix/*.dll.so
%{_libdir}/wine/x86_64-unix/dnsapi.so
%{_libdir}/wine/x86_64-unix/*.drv.so
%{_libdir}/wine/x86_64-unix/*.ds.so
%{_libdir}/wine/x86_64-unix/dwrite.so
%{_libdir}/wine/x86_64-unix/*.exe.so
%{_libdir}/wine/x86_64-unix/gphoto2.so
%{_libdir}/wine/x86_64-unix/kerberos.so
%{_libdir}/wine/x86_64-unix/localspl.so
%{_libdir}/wine/x86_64-unix/mountmgr.so
%{_libdir}/wine/x86_64-unix/msv1_0.so
%{_libdir}/wine/x86_64-unix/netapi32.so
%{_libdir}/wine/x86_64-unix/nsiproxy.so
%{_libdir}/wine/x86_64-unix/ntdll.so
%{_libdir}/wine/x86_64-unix/*.ocx.so
%if %{without unstable}
%{_libdir}/wine/x86_64-unix/odbc32.so
%endif
%{_libdir}/wine/x86_64-unix/opencl.so
%{_libdir}/wine/x86_64-unix/opengl32.so
%{_libdir}/wine/x86_64-unix/qcap.so
%{_libdir}/wine/x86_64-unix/sane.so
%{_libdir}/wine/x86_64-unix/secur32.so
%{_libdir}/wine/x86_64-unix/*.sys.so
%{_libdir}/wine/x86_64-unix/win32u.so
%{_libdir}/wine/x86_64-unix/winealsa.so
%{_libdir}/wine/x86_64-unix/winebus.so
%{_libdir}/wine/x86_64-unix/winegstreamer.so
%{_libdir}/wine/x86_64-unix/wineps.so
%{_libdir}/wine/x86_64-unix/winepulse.so
%{_libdir}/wine/x86_64-unix/wineusb.so
%{_libdir}/wine/x86_64-unix/winevulkan.so
%{_libdir}/wine/x86_64-unix/winex11.so
%{_libdir}/wine/x86_64-unix/winspool.so
%{_libdir}/wine/x86_64-unix/wpcap.so
%{_libdir}/wine/x86_64-unix/ws2_32.so
%{_libdir}/wine/x86_64-windows
%{_liconsdir}/*.png
%{_mandir}/man1/msiexec.1*
%{_mandir}/man1/notepad.1*
%{_mandir}/man1/regedit.1*
%{_mandir}/man1/regsvr32.1*
%{_mandir}/man1/wineboot.1*
%{_mandir}/man1/winecfg.1*
%{_mandir}/man1/wineconsole.1*
%{_mandir}/man1/winecpp.1*
%{_mandir}/man1/winefile.1*
%{_mandir}/man1/winemine.1*
%{_mandir}/man1/winepath.1*
%{_mandir}/man1/wineserver.1*
%{_miconsdir}/*.png

%if %{with unstable}
%post -n wine64%{?_stab}
if grep -q "\(SB0880\|Creative\)" /proc/asound/cards && [ -f /etc/pulse/default.pa ]; then
	if grep -q "# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}" /etc/pulse/default.pa; then
		sed -i "s/# Add tsched=0 for winepulse.drv/& - reinstall/" /etc/pulse/default.pa
		exit 0
	fi
	if grep -q "# Add tsched=0 for winepulse.drv" /etc/pulse/default.pa; then
		sed -i "s/\(# Add tsched=0 for winepulse.drv\).*/\1 - update in %{name}-%{version}-%{release}. Previous string is load-module module-udev-detect/" /etc/pulse/default.pa
		exit 0
	fi
	sed -i "s/^load-module module-udev-detect$/# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}. Previous string is &\n& tsched=0/" /etc/pulse/default.pa
	killall pulseaudio || :
fi
%endif

%posttrans -n wine64%{?_stab}
cat %{_defaultdocdir}/wine64%{?_stab}/README.all
cat %{_defaultdocdir}/wine64%{?_stab}/README.x86_64

%if %{with unstable}
%postun -n wine64%{?_stab}
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv - reinstall" /etc/pulse/default.pa; then
	sed -i "s/# Add tsched=0 for winepulse.drv - reinstall/# Add tsched=0 for winepulse.drv/" /etc/pulse/default.pa
	exit 0
fi
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv - update" /etc/pulse/default.pa; then
	sed -i "s/# Add tsched=0 for winepulse.drv - update/# Add tsched=0 for winepulse.drv/" /etc/pulse/default.pa
	exit 0
fi
if [ -f /etc/pulse/default.pa ] && grep -q "# Add tsched=0 for winepulse.drv in %{name}-%{version}-%{release}" /etc/pulse/default.pa; then
	sed -i "s/^load-module module-udev-detect tsched=0/load-module module-udev-detect/" /etc/pulse/default.pa
	sed -i "/^# Add tsched=0 for winepulse.drv/d" /etc/pulse/default.pa
	killall pulseaudio || :
fi
%endif

#----------------------------------------------------------------------------

%package -n wine64%{?_stab}-devel
Summary:	Static libraries, headers and programs for %{name}
Group:		Development/C
Requires:	wine64%{?_stab} = %{EVRD}
%rename		%{mklibname wine -d}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	wine32%{?_ostab}-devel
Conflicts:	wine32%{?_stab}-devel
Conflicts:	wine64%{?_ostab}-devel

%description -n wine64%{?_stab}-devel
Wine is a program which allows running Microsoft Windows programs (including
DOS, Windows 3.x, Win32 and Win64 executables) on Unix.
This package contains the libraries, the headers and the program files needed
to develop programs running on Wine.

%files -n wine64%{?_stab}-devel
%doc AUTHORS
%{_bindir}/widl
%{_bindir}/winebuild
%{_bindir}/winecpp
%{_bindir}/winedbg
%{_bindir}/winedump
%{_bindir}/wineg++
%{_bindir}/winegcc
%{_bindir}/winemaker
%{_bindir}/wmc
%{_bindir}/wrc
%dir %{_libdir}/wine
%{_includedir}/*
%{_libdir}/wine/x86_64-unix/*.a
%{_mandir}/man1/widl.1*
%{_mandir}/man1/winebuild.1*
%{_mandir}/man1/winedbg.1*
%{_mandir}/man1/winedump.1*
%{_mandir}/man1/wineg++.1*
%{_mandir}/man1/winegcc.1*
%{_mandir}/man1/winemaker.1*
%{_mandir}/man1/wmc.1*
%{_mandir}/man1/wrc.1*
%endif

#####################################################################
##
## End of 64bit packages descriptions
##
#####################################################################

#----------------------------------------------------------------------------

%if %{without unstable}
%package -n wine-common-binfmt
Summary:	Support for launching Windows executables directly
Group:		Emulators
OrderWithRequires: wine32 = %{EVRD}
OrderWithRequires: wine64 = %{EVRD}
OrderWithRequires: wine32-stable = %{EVRD}
OrderWithRequires: wine64-stable = %{EVRD}
Requires(post):	rpm-helper
Requires(pre,post,preun,postun): systemd
Provides:	wine-binfmt = 2:6.16-5
Provides:	wine-stable-binfmt = 2:6.0.1-5
Provides:	wine64-binfmt = 2:6.16-5
Provides:	wine64-stable-binfmt = 2:6.0.1-5
Obsoletes:	wine-binfmt = 2:6.16-5
Obsoletes:	wine-stable-binfmt = 2:6.0.1-5
Obsoletes:	wine64-binfmt = 2:6.16-5
Obsoletes:	wine64-stable-binfmt = 2:6.0.1-5
BuildArch:	noarch

%description -n wine-common-binfmt
Wine is a program which allows running Microsoft Windows programs
(including DOS, Windows 3.x, Win32 and Win64 executables) on Unix.
This package provides support for launching Windows executables directly.

%files -n wine-common-binfmt
%doc README.md
%{_binfmtdir}/wine.conf

%pre -n wine-common-binfmt
systemctl stop systemd-binfmt.service

%post -n wine-common-binfmt
%binfmt_apply wine.conf
%endif

#----------------------------------------------------------------------------

%prep
%setup -qn wine-%{version} -b5 -a6 -a11 -a12
%patch0 -p1 -b .conf
%patch1 -p1 -b .staging-localization
%if %{with unstable}
%patch2 -p1 -b .kernel32
%patch4 -p1 -b .DriverEntry
%patch6 -p1 -b .po-localization
%endif
%patch3 -p1 -b .dropautodebug
%patch9 -p1 -b .assert
%patch511 -p1 -b .cjk

# Some advices to user
cp %{SOURCE20} .
%if %{with unstable}
cp %{SOURCE21} README.x86_64
cp %{SOURCE22} README.i686
%else
cp %{SOURCE23} README.x86_64
cp %{SOURCE24} README.i686
%endif

%if %{with unstable}
# Wine-staging
gzip -dc "%{SOURCE4}" | /bin/tar -xf - --strip-components=1
./staging/patchinstall.py DESTDIR="%{_builddir}/wine-%{version}" --all
# Default theme
sed -i "/ThemeActive/ s/1/0/" loader/wine.inf.in
%endif

# Wine-nine-standalone
pushd ../wine-nine-standalone-%{winenine_ver}
%patch5 -p1 -b .wine-nine-localization
popd

%build
%ifarch %{ix86}
# (Anssi 04/2008) bug #39604
# Some protection systems complain "debugger detected" with our
# -fomit-frame-pointer flag, so disable it.
export CFLAGS="%{optflags} -fno-omit-frame-pointer"
%endif
%ifarch x86_64
export CFLAGS="%{optflags}"
%endif

# Disable fortify as it breaks wine
# http://bugs.winehq.org/show_bug.cgi?id=24606
# http://bugs.winehq.org/show_bug.cgi?id=25073
export CFLAGS="`echo $CFLAGS | sed -e 's/-Wp,-D_FORTIFY_SOURCE=2//'` -Wno-error -Wno-error=incompatible-pointer-types"

# (Anssi 04/2008)
# If icotool is present, it is used to rebuild icon files. It is in Contrib
# so we do not do that; this is here to ensure that installed icoutils does
# not change build behaviour.
export ICOTOOL=false


# 1. Build wine
autoreconf -vfi
# HAL is obsolete, then don't ask for it.
# Our OSS is too old (< 4), also don't ask for it.
%configure \
%ifarch x86_64
	--enable-win64 \
%endif
	--with-dbus \
	--with-x \
	--with-gstreamer \
	--without-oss
# We need to drop stack protection to avoid wine bug #55139
export NOSTACKP_FLAGS="-fno-stack-protector -fcf-protection=none"
export CFLAGS="$CFLAGS $NOSTACKP_FLAGS"
CXXFLAGS="$CXXFLAGS $NOSTACKP_FLAGS"
FFLAGS="$FFLAGS $NOSTACKP_FLAGS"
FCFLAGS="$FCFLAGS $NOSTACKP_FLAGS"
LDFLAGS="$LDFLAGS $NOSTACKP_FLAGS"
%make depend
%make

# 2. Next, build wine-nine-standalone
pushd ../wine-nine-standalone-%{winenine_ver}
	export PKG_CONFIG_PATH=%{_libdir}/pkgconfig
	mkdir -p ./tmp
	sed -i "s/@PKG_CONFIG@/pkg-config/g" ./tools/cross-wine32.in
	sed -i "s/@PKG_CONFIG@/pkg-config/g" ./tools/cross-wine64.in
	meson	\
		--bindir bin		\
		--buildtype "release"	\
%ifarch x86_64
		--cross-file "./tools/cross-wine64.in" \
%endif
%ifarch %{ix86}
		--cross-file "./tools/cross-wine32.in" \
%endif
		--libdir %{_lib}	\
		$MESONARGS		\
		"./tmp/build"
	sed -i "s/fPIC/fPIC -Wno-error=implicit-function-declaration/" tmp/build/build.ninja
	ninja -C "./tmp/build"
	find -L .
popd


%install
%makeinstall_std LDCONFIG=/bin/true

# Install wisotool
install -m 0755 %{SOURCE7} %{buildroot}%{_bindir}

# Install winetricks
install -m 0755 winetricks-%{winetricks_git}/src/winetricks %{buildroot}%{_bindir}

%if %{without unstable}
# Note: binfmt is insecure (see https://nixtux.ru/450), 
# so we will put it in a separate package.
# Allow users to launch Windows programs by just clicking on the .exe file...
install -m 644 %{SOURCE3} -D %{buildroot}%{_binfmtdir}/wine.conf
%endif

mkdir -p %{buildroot}%{_datadir}/applications
cp rosa-wine-desktop-*/*.desktop %{buildroot}%{_datadir}/applications
cp -r icons-*/icons %{buildroot}%{_datadir}

# Categories=Emulator does nothing and is added as a workaround to kde #27700
desktop-file-install	--vendor="" \
			--add-mime-type=application/x-zip-compressed \
			--remove-mime-type=application/x-zip-compressed \
			--add-category=Emulator \
			--dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/wine.desktop

%ifarch x86_64
# Fix the binary name in the .desktop file
sed -i "s/Exec=wine /Exec=wine64 /" %{buildroot}%{_datadir}/applications/{wine,rosa-wine-ninecfg}.desktop
sed -i "s/Exec=/Exec=wine64 /" %{buildroot}%{_datadir}/applications/rosa-wine-{notepad,regedit,wineboot,winecfg,wineconsole_cmd,winefile,winemine}.desktop
%endif

# Remove rpaths
%ifarch x86_64
chrpath -d %{buildroot}%{_bindir}/wine64
%endif
%ifarch %{ix86}
chrpath -d %{buildroot}%{_bindir}/wine
%endif

# Install wine-nine-standalone stuff
pushd ../wine-nine-standalone-%{winenine_ver}
%ifarch x86_64
	install -m 755 tmp/build/ninewinecfg/ninewinecfg.exe.so %{buildroot}/%{_libdir}/wine/x86_64-unix/ninewinecfg.exe.so
	install -m 755 tmp/build/ninewinecfg/ninewinecfg.exe.fake %{buildroot}/%{_libdir}/wine/x86_64-windows/ninewinecfg.exe
	install -m 755 tmp/build/d3d9-nine/d3d9-nine.dll.so %{buildroot}/%{_libdir}/wine/x86_64-unix/d3d9-nine.dll.so
	install -m 755 tmp/build/d3d9-nine/d3d9-nine.dll.fake %{buildroot}/%{_libdir}/wine/x86_64-windows/d3d9-nine.dll
%endif
%ifarch %{ix86}
	install -m 755 tmp/build/ninewinecfg/ninewinecfg.exe.so %{buildroot}/%{_libdir}/wine/i386-unix/ninewinecfg.exe.so
	install -m 755 tmp/build/ninewinecfg/ninewinecfg.exe.fake %{buildroot}/%{_libdir}/wine/i386-windows/ninewinecfg.exe
	install -m 755 tmp/build/d3d9-nine/d3d9-nine.dll.so %{buildroot}/%{_libdir}/wine/i386-unix/d3d9-nine.dll.so
	install -m 755 tmp/build/d3d9-nine/d3d9-nine.dll.fake %{buildroot}/%{_libdir}/wine/i386-windows/d3d9-nine.dll
%endif
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20184 |21mr|wipe-2.3.1-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Secure file deletion utility
Name:		wipe
Version:	2.3.1
Release:	9
License:	GPLv2+
Group:		File tools
Url:		http://wipe.sourceforge.net/
Source0:	http://unc.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2
Source1:	http://unc.dl.sourceforge.net/sourceforge/%{name}/%{name}-%{version}.tar.bz2.sig
# Don't use root user to install files, don't strip the binary
Patch0:		wipe-2.3.1-makefile.patch
Requires(post,postun):	update-alternatives

%description
Wipe is a tool that effectively degauses the surface of a hard
disk, making it virtually impossible to retrieve the data that was
stored on it. This tool is designed to make sure secure data that is
erased from a hard drive is unrecoverable.

%files
%doc LICENSE copyright README CHANGES TODO INSTALL TESTING
%{_bindir}/wipe.wipe
%{_mandir}/man1/wipe.wipe.1*

%post
%{_sbindir}/update-alternatives --install %{_bindir}/wipe wipe %{_bindir}/wipe.wipe 10 --slave %{_mandir}/man1/wipe.1.xz wipe.1.xz %{_mandir}/man1/wipe.wipe.1.xz

%postun
%{_sbindir}/update-alternatives --remove wipe %{_bindir}/wipe.wipe

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure
%make CFLAGS="%{optflags}"

%install
%makeinstall
mv %{buildroot}%{_bindir}/wipe %{buildroot}%{_bindir}/wipe.wipe
mv %{buildroot}%{_mandir}/man1/wipe.1 %{buildroot}%{_mandir}/man1/wipe.wipe.1

# remove package installed docs
rm -rf %{buildroot}/%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20185 |21mr|wireguard-tools-1.0.20210914-2.git13f4ac.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 13f4ac4cb74b5a833fa7f825ba785b1e5774e84f
%define commit_short %(echo %{commit} | head -c6)

Name:		wireguard-tools
Version:	1.0.20210914
Release:	2.git%{commit_short}.1
URL:		https://www.wireguard.com/
Summary:	Fast, modern, secure VPN tunnel
Group:          Networking/Remote access
License:	GPLv2
Source0:	https://git.zx2c4.com/wireguard-tools/snapshot/wireguard-tools-%{commit}.tar.xz
BuildRequires:	systemd

%description
WireGuard is a novel VPN that runs inside the Linux Kernel and uses
state-of-the-art cryptography (the "Noise" protocol). It aims to be
faster, simpler, leaner, and more useful than IPSec, while avoiding
the massive headache. It intends to be considerably more performant
than OpenVPN. WireGuard is designed as a general purpose VPN for
running on embedded interfaces and super computers alike, fit for
many different circumstances. It runs over UDP.

This package provides the wg binary for controlling WireGuard
and the wg-quick script.

%files
%license COPYING
%doc README.md
%doc %{_defaultdocdir}/%{name}/contrib/
%{_bindir}/wg
%{_bindir}/wg-quick
%{_datarootdir}/bash-completion/completions/wg
%{_datarootdir}/bash-completion/completions/wg-quick
%{_unitdir}/wg-quick@.service
%{_unitdir}/wg-quick.target
%{_mandir}/man8/wg.8*
%{_mandir}/man8/wg-quick.8*

#-----------------------------------------------------------------
%prep
%autosetup -p1 -n %{name}-%{commit}

%build
## Start DNS Hatchet
pushd contrib/dns-hatchet
./apply.sh
popd
## End DNS Hatchet

%setup_compile_flags
%make_build RUNSTATEDIR=%{_rundir} -C src

%install
mkdir -p %{buildroot}%{_bindir}

%make_install BINDIR=%{_bindir} MANDIR=%{_mandir} RUNSTATEDIR=%{_rundir} SYSTEMDUNITDIR=%{_unitdir} \
              WITH_BASHCOMPLETION=yes WITH_WGQUICK=yes WITH_SYSTEMDUNITS=yes \
              -C src

mkdir -p %{buildroot}%{_defaultdocdir}/%{name}/contrib/
cp -fr contrib/* %{buildroot}%{_defaultdocdir}/%{name}/contrib/
find %{buildroot}%{_defaultdocdir}/%{name}/contrib/ -type f -name "*.gitignore" -exec rm -f {} \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20186 |21mr|wireless-regdb-20240123-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _verdate 2024.01.23
%define _version %(echo %_verdate | sed 's/\\.//g')

%if %{mdvver} >= 202310
%define _firmwarepath /usr/lib/firmware
%else
%define _firmwarepath /lib/firmware
%endif

Summary:	The wireless regulatory database
Name:		wireless-regdb
Version:	%{_version}
Release:	2
License:	ISC
Group:		System/Configuration/Hardware
Url:		http://linuxwireless.org/en/developers/Regulatory#Theregulatorydatabase
Source0:	http://kernel.org/pub/software/network/wireless-regdb/wireless-regdb-%{_verdate}.tar.xz
BuildArch:	noarch

%description
Database with wireless regulatory information, used by crda or which can
be used by another user space helpers to communicate wireless regulatory
data to linux kernel.

%files
%license LICENSE
%{_mandir}/man5/regulatory.bin.5*
%{_mandir}/man5/regulatory.db.5*
%{_prefix}/lib/crda/pubkeys/wens.key.pub.pem
%{_prefix}/lib/crda/regulatory.bin
%{_firmwarepath}/regulatory.db
%{_firmwarepath}/regulatory.db.p7s

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{_verdate}

%install
%make_install FIRMWARE_PATH=%{_firmwarepath}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20187 |21mr|wireless-tools-30-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname iw %{version}
%define devname %mklibname iw -d

%define pre pre9

Summary:	Wireless ethernet configuration tools
Name:		wireless-tools
Version:	30
Release:	14
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://www.hpl.hp.com/personal/Jean_Tourrilhes/Linux/Tools.html
Source0:	https://hewlettpackard.github.io/wireless-tools/wireless_tools.%{version}.%{pre}.tar.gz
Patch1:		wireless-tools-static.patch
Patch2:		wireless_tools.27-wireless-man-upd.patch.bz2

%description
This package contain the Wireless tools, used to manipulate
the Wireless Extensions. The Wireless Extension is an interface
allowing you to set Wireless LAN specific parameters and get the
specific stats for wireless networking equipment.

This is specifically useful since it allows manipulation of encryption
parameters possible with the GPL WaveLAN cards.

%files
%doc README INSTALL CHANGELOG.h DISTRIBUTIONS.txt COPYING PCMCIA.txt HOTPLUG-UDEV.txt
/sbin/*
%{_mandir}/man*/*
%lang(fr) %{_mandir}/fr/man*/*
%lang(cs) %{_mandir}/cs/man*/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Wireless tools shared library
Group:		System/Libraries

%description -n %{libname}
This package contains libraries to configure and access wireless interface
cards.

%files -n %{libname}
/%{_lib}/libiw.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Wireless_tools development library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libiw-devel = %{EVRD}
Conflicts:	%{_lib}iw29-devel < 29-10
Obsoletes:	%{_lib}iw29-devel < 29-10

%description -n %{devname}
This package contains libraries and headers for use in developing
wireless tools.

%files -n %{devname}
/%{_lib}/libiw.so
%{_includedir}/iwlib.h
%{_includedir}/wireless.h

#----------------------------------------------------------------------------

%prep
%setup -q -n wireless_tools.%{version}
%patch1 -p1
%patch2 -p0

chmod a+r README INSTALL CHANGELOG.h DISTRIBUTIONS.txt COPYING PCMCIA.txt HOTPLUG-UDEV.txt

%build
%make clean
%make "CFLAGS=%{optflags} -I."

%install
%make_install \
	PREFIX=%{buildroot}%{_prefix} \
	INSTALL_LIB=%{buildroot}/%{_lib} \
	INSTALL_MAN=%{buildroot}%{_mandir} \
	INSTALL_DIR=%{buildroot}/sbin

#fix fr manpages
rm -Rf %{buildroot}%{_mandir}/fr.ISO8859-1
mv %{buildroot}%{_mandir}/fr.UTF-8 %{buildroot}%{_mandir}/fr

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20188 |21mr|wireplumber-0.4.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0.4
%define major 0
%define libpkg %mklibname wireplumber %{api} %{major}
%define girpkg %mklibname wp-gir %{api}
%define develpkg %mklibname wireplumber -d

Summary:	Session manager for PipeWire
Name:		wireplumber
Version:	0.4.13
Release:	1
License:	MIT
Group:		Sound
Url:		https://pipewire.org/
Source0:	https://gitlab.freedesktop.org/pipewire/WirePlumber/-/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	doxygen
# to render text in pictures inside devel docs
BuildRequires:	fonts-ttf-freefont
BuildRequires:	gcc
BuildRequires:	meson
BuildRequires:	python3-breathe
BuildRequires:	python3-lxml
BuildRequires:	gobject-introspection-devel
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gmodule-2.0)
BuildRequires:	pkgconfig(gobject-2.0)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(libspa-0.2)
BuildRequires:	pkgconfig(lua)
BuildRequires:	pkgconfig(systemd)
# XXX Cycled deps :(
Requires:	pipewire
# Virtual Provides to support swapping between PipeWire session manager implementations
# (pipewire-media-session, WirePlumber etc.)
Provides:	pipewire-session-manager
Provides:	WirePlumber = %{EVRD}
Conflicts:	pipewire-session-manager

%description
WirePlumber is a modular session/policy manager for PipeWire and a
GObject-based high-level library that wraps PipeWire's API, providing
convenience for writing the daemon's modules as well as external tools for
managing PipeWire.

%files -f %{name}.lang
%license LICENSE
%{_bindir}/wireplumber
%{_bindir}/wpctl
%{_bindir}/wpexec
%dir %{_sysconfdir}/wireplumber
%dir %{_sysconfdir}/wireplumber/bluetooth.lua.d
%dir %{_sysconfdir}/wireplumber/common
%dir %{_sysconfdir}/wireplumber/main.lua.d
%dir %{_sysconfdir}/wireplumber/policy.lua.d
%{_datadir}/wireplumber/
%{_userunitdir}/wireplumber.service
%{_userunitdir}/wireplumber@.service
%dir %{_libdir}/wireplumber-0.4
%{_libdir}/wireplumber-0.4/libwireplumber-*.so

%posttrans
# https://bugzilla.redhat.com/show_bug.cgi?id=2022584
%systemd_user_post wireplumber.service

%preun
%systemd_user_preun wireplumber.service

#----------------------------------------------------------------------------

%package -n %{libpkg}
Summary:	Library to interact with WirePlumber
Group:		System/Libraries

%description -n %{libpkg}
Library to interact with WirePlumber

%files -n %{libpkg}
%{_libdir}/libwireplumber-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girpkg}
Summary:	GObject Introspection interface description for WirePlumber
Group:		Development/C

%description -n %{girpkg}
GObject Introspection interface description for WirePlumber

%files -n %{girpkg}
%{_libdir}/girepository-1.0/Wp-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{develpkg}
Summary:	Development files of WirePlumber
Group:		Development/C
Requires:	%{libpkg} = %{EVRD}
Requires:	%{girpkg} = %{EVRD}

%description -n %{develpkg}
Development files of WirePlumber

%files -n %{develpkg}
%{_datadir}/doc/wireplumber/html
%{_datadir}/gir-1.0/Wp-%{api}.gir
%{_includedir}/wireplumber-%{api}
%{_libdir}/libwireplumber-%{api}.so
%{_libdir}/pkgconfig/wireplumber-%{api}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
	-Ddoc=enabled		\
	-Delogind=disabled	\
	-Dintrospection=enabled	\
	-Dsystemd=enabled	\
	-Dsystemd-user-service=true	\
	-Dsystem-lua=true
%meson_build

%install
%meson_install

%find_lang wireplumber

# Create local config skeleton
mkdir -p %{buildroot}%{_sysconfdir}/wireplumber/{bluetooth.lua.d,common,main.lua.d,policy.lua.d}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20189 |21mr|wireshark-4.0.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 16
%define wiretapmajor 13
%define wsutilmajor 14
%define libname %mklibname %{name} %{major}
%define libwiretap %mklibname wiretap %{wiretapmajor}
%define libwsutil %mklibname wsutil %{wsutilmajor}
%define devname %mklibname %{name} -d

Summary:	Network traffic analyzer
Name:		wireshark
Version:	4.0.12
Release:	3
License:	GPLv2+ and GPLv3+
Group:		Monitoring
Url:		http://www.wireshark.org
Source0:	http://www.wireshark.org/download/src/%{name}-%{version}.tar.xz
Source1:	org.wireshark.Wireshark.desktop
Source2:	wireshark_ru.ts
Source3:	wireshark.rpmlintrc
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	flex
BuildRequires:	elfutils-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	perl-Pod-Html
BuildRequires:	pcre-devel
BuildRequires:	qt5-macros
BuildRequires:	qmake5
BuildRequires:	qt5-linguist-tools
BuildRequires:	tiff-devel
BuildRequires:	perl-open
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libsystemd)
BuildRequires:	cmake(Qt5Core)
BuildRequires:	cmake(Qt5Gui)
BuildRequires:	cmake(Qt5Help)
BuildRequires:	cmake(Qt5MultimediaWidgets)
BuildRequires:	cmake(Qt5PrintSupport)
BuildRequires:	cmake(Qt5Svg)
BuildRequires:	cmake(Qt5Widgets)
BuildRequires:	cmake(Qt5Concurrent)
# Optional BRs
BuildRequires:	doxygen
BuildRequires:	git-core
BuildRequires:	krb5-devel
BuildRequires:	libcap-devel
BuildRequires:	gnutls-devel
BuildRequires:	pcap-devel
BuildRequires:	libsmi-devel
BuildRequires:	lua-devel
#BuildRequires:	pkgconfig(libbcg729)
BuildRequires:	pkgconfig(libcares)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libnghttp2)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libmaxminddb)
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(sbc)
BuildRequires:	pkgconfig(snappy)
BuildRequires:	pkgconfig(spandsp)
BuildRequires:	pkgconfig(minizip)
BuildRequires:	pkgconfig(libbrotlienc)
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(speexdsp)
BuildRequires:	asciidoc
BuildRequires:	xsltproc
BuildRequires:	zlib-devel
Requires:	dumpcap
Requires:	usermode-consoleonly

%description
Wireshark is a network traffic analyzer for Unix-ish operating systems. It is
based on GTK+, a graphical user interface library, and libpcap, a packet
capture and filtering library.

%files
%{_bindir}/%{name}
%{_bindir}/%{name}-qt
%dir %{_libdir}/%{name}/
%{_libdir}/%{name}/plugins/
%dir %{_libdir}/%{name}/extcap/
%{_datadir}/%{name}/
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_iconsdir}/hicolor/*/*/*.png
%{_iconsdir}/hicolor/*/*/*.svg
%{_datadir}/applications/*.desktop
%{_libdir}/wireshark/extcap/wifidump
%{_datadir}/metainfo/org.wireshark.Wireshark.metainfo.xml
%{_datadir}/mime/packages/org.wireshark.Wireshark.xml

#------------------------------------------------------------------------

%package -n %{libname}
Summary:	Network traffic and protocol analyzer libraries
Group:		System/Libraries
Obsoletes:	%{_lib}wireshark3 < 1.10.1

%description -n	%{libname}
Wireshark is a network traffic analyzer for Unix-ish operating systems. It is
based on GTK+, a graphical user interface library, and libpcap, a packet
capture and filtering library.

%files -n %{libname}
%doc AUTHORS NEWS README.{md,[lv]*} doc/{randpkt.txt,README.*}
%{_libdir}/libwireshark.so.%{major}*

#------------------------------------------------------------------------

%package -n %{libwiretap}
Summary:	Network traffic and protocol analyzer libraries
Group:		System/Libraries
Conflicts:	%{_lib}wireshark3 < 1.10.1

%description -n %{libwiretap}
Wireshark is a network traffic analyzer for Unix-ish operating systems. It is
based on GTK+, a graphical user interface library, and libpcap, a packet
capture and filtering library.

%files -n %{libwiretap}
%{_libdir}/libwiretap.so.%{wiretapmajor}*

#------------------------------------------------------------------------

%package -n %{libwsutil}
Summary:	Network traffic and protocol analyzer libraries
Group:		System/Libraries
Conflicts:	%{_lib}wireshark3 < 1.10.1

%description -n %{libwsutil}
Wireshark is a network traffic analyzer for Unix-ish operating systems. It is
based on GTK+, a graphical user interface library, and libpcap, a packet
capture and filtering library.

%files -n %{libwsutil}
%{_libdir}/libwsutil.so.%{wsutilmajor}*

#------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Wireshark
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Requires:	%{libwiretap} = %{EVRD}
Requires:	%{libwsutil} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains files used for development with Wireshark.

%files -n %{devname}
%doc ChangeLog
%{_includedir}/wireshark/
%{_libdir}/libwireshark.so
%{_libdir}/libwiretap.so
%{_libdir}/libwsutil.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/wireshark/cmake/

#------------------------------------------------------------------------

%package tools
Summary:	Tools for manipulating capture files
Group:		Monitoring

%description tools
Set of tools for manipulating capture files. Contains:

- editcap - Edit and/or translate the format of capture files
- mergecap - Merges two capture files into one
- text2cap - Generate a capture file from an ASCII hexdump of packets

%files tools
%{_bindir}/capinfos
%{_bindir}/captype
%{_bindir}/editcap
%{_bindir}/idl2wrs
%{_bindir}/mergecap
%{_bindir}/mmdbresolve
%{_bindir}/randpkt
%{_bindir}/reordercap
%{_bindir}/text2pcap
%{_bindir}/sharkd
%{_libdir}/%{name}/extcap/androiddump
%{_libdir}/%{name}/extcap/ciscodump
%{_libdir}/%{name}/extcap/dpauxmon
%{_libdir}/%{name}/extcap/randpktdump
%{_libdir}/%{name}/extcap/sdjournal
%{_libdir}/%{name}/extcap/sshdump
%{_libdir}/%{name}/extcap/udpdump

#------------------------------------------------------------------------

%package -n tshark
Summary:	Text-mode network traffic and protocol analyzer
Group:		Monitoring
Requires:	dumpcap

%description -n	tshark
Tshark is a network protocol analyzer. It lets you capture packet data from a
live network, or read packets from a previously saved capture file, either
printing a decoded form of those packets to the standard output or writing the
packets to a file. Twireshark's native capture file format is libpcap format,
which is also the format used by tcpdump and various other tools.

%files -n tshark
%{_bindir}/tshark

#------------------------------------------------------------------------

%package -n rawshark
Summary:	Dump and analyze raw libpcap data
Group:		Monitoring

%description -n rawshark
Rawshark reads a stream of packets from a file or pipe, and prints a line
describing its output, followed by a set of matching fields for each packet on
stdout.

%files -n rawshark
%{_bindir}/rawshark

#------------------------------------------------------------------------

%package -n dumpcap
Summary:	Network traffic dump tool
Group:		Monitoring

%description -n dumpcap
Dumpcap is a network traffic dump tool. It lets you capture packet data from a
live network and write the packets to a file. Many wireshark utilities require
it.

%files -n dumpcap
%attr(4750, root, wireshark) %{_bindir}/dumpcap

%pre -n dumpcap
if ! getent group wireshark > /dev/null ;then
	%{_sbindir}/groupadd -r -f wireshark
fi

#------------------------------------------------------------------------

%prep
%autosetup -p1

# update ru translation
cp -f %{SOURCE2} ui/qt/

%build
%cmake_qt5 \
	-DCMAKE_INSTALL_LIBDIR:PATH=%{_lib} \
	-DENABLE_EXTRA_COMPILER_WARNINGS:BOOL=ON \
	-DDUMPCAP_INSTALL_OPTION:STRING="suid" \
	-DENABLE_DUMPCAP_GROUP:BOOL=ON \
	-DDUMPCAP_INSTALL_GROUP:STRING="wireshark" \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

# link to main executable
mv %{buildroot}%{_bindir}/wireshark %{buildroot}%{_bindir}/wireshark-qt
ln -s wireshark-qt %{buildroot}%{_bindir}/wireshark

# icons
install -Dpm0644 resources/icons/wsicon16.png %{buildroot}%{_miconsdir}/%{name}.png
install -Dpm0644 resources/icons/wsicon32.png %{buildroot}%{_iconsdir}/%{name}.png
install -Dpm0644 resources/icons/wsicon48.png %{buildroot}%{_liconsdir}/%{name}.png
install -Dpm0644 %{SOURCE1} %{buildroot}%{_datadir}/applications/org.wireshark.Wireshark.root.desktop

# remove uneeded files
find %{buildroot} -name "*.la" -delete

# install includes
mkdir -p %{buildroot}%{_includedir}/wireshark
for include in `find epan -type f -name '*.h'`; do
	mkdir -p %{buildroot}%{_includedir}/wireshark/`dirname $include`
	install -m 0644 $include %{buildroot}%{_includedir}/wireshark/`dirname $include`
done

# remaining include files
install -m 0644 *.h build/*.h %{buildroot}%{_includedir}/wireshark
mkdir -p %{buildroot}%{_includedir}/wireshark/wiretap
install -m 0644 wiretap/*.h %{buildroot}%{_includedir}/wireshark/wiretap
mkdir -p %{buildroot}%{_includedir}/wireshark/wsutil
install -m 0644 wsutil/*.h %{buildroot}%{_includedir}/wireshark/wsutil

chmod a+r %{buildroot}%{_bindir}/dumpcap

# pkg-config support
install -d %{buildroot}%{_libdir}/pkgconfig/
cat > %{buildroot}%{_libdir}/pkgconfig/wireshark.pc << EOF
prefix=%{_prefix}
exec_prefix=%{_prefix}
libdir=%{_libdir}
includedir=%{_includedir}/wireshark
plugindir=%{_libdir}/wireshark

Name: wireshark
Description: wireshark network packet dissection library
Version:	4.0.1

Requires:
Libs: -L\${libdir} -lwireshark
Cflags: -I\${includedir}
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20190 |21mr|wmctrl-1.07-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	name	wmctrl
%define	version	1.07
%define release 	11

Name:		%name
Version:	%version 
Release:	%release
License:	GPLv2+
Group:		System/X11
Url:		http://sweb.cz/tripie/utils/wmctrl/
Source:		%name-%version.tar.bz2
Patch0:         http://ftp.de.debian.org/debian/pool/main/w/wmctrl/wmctrl_1.07-6.diff.gz
Patch1:         wmctrl-sticky-workspace.patch
Summary:	Command line tool to interact with an EWMH/NetWM compatible X Window Manager
BuildRequires:	glib2-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%description
Wmctrl provides command line access to almost all the features defined
in the EWMH specification. Using it, it's possible to, for example,
obtain information about the window manager, get a detailed list of
desktops and managed windows, switch and resize desktops, change number
of desktops, make windows full-screen, always-above or sticky, and
activate, close, move, resize, maximize and minimize them.

The command line access makes it easy to automate these tasks and
execute them from any application that is able to run a command in
response to some event.

Please note that wmctrl only works with window managers which implement
this specification.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
%configure
%make

%install
rm -rf $RPM_BUILD_ROOT
%makeinstall_std

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog README
%_bindir/*
%_mandir/man1/wmctrl.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20191 |21mr|woden-1.0-0.21.M10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oversion %{version}M10

Name:           woden
Version:        1.0
Release:        0.21.M10
Summary:        Web Service Description Language (WSDL) validating parser
License:        ASL 2.0
URL:            http://ws.apache.org/woden/
Source0:        http://archive.apache.org/dist/ws/woden/%{oversion}/woden-%{oversion}-src.zip
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
  
BuildRequires:  maven-local
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:1.2.15)
BuildRequires:  mvn(org.apache.ant:ant)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.ws.xmlschema:xmlschema-core)
BuildRequires:  mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires:  mvn(wsdl4j:wsdl4j)

# For xsltproc command
BuildRequires:  pkgconfig(libxslt)
BuildRequires:  xsltproc

%description
The Woden project is a sub-project of the Apache Web Services Project
to develop a Java class library for reading, manipulating, creating
and writing WSDL documents, initially to support WSDL 2.0 but with the
longer term aim of supporting past, present and future versions of WSDL.

%package parent
Summary: Parent pom of %{name} project

%description parent
Parent pom of %{name} project.

%package tool
Summary: Command line tool for converting WSDL documents
# Explicit requires for javapackages-tools since woden-tool script
# uses /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description tool
Command line tool for converting WSDL documents.

%package ant
Summary: Ant plug-in for converting WSDL documents

%description ant
Ant plug-in for converting WSDL documents.

%package maven-plugin
Summary: Maven plug-in for converting WSDL documents

%description maven-plugin
Maven plug-in for converting WSDL documents.

%package javadoc
Summary: Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n woden-%{oversion}

# Using ws-parent doesn't add anything, may as well use apache-parent
%pom_set_parent "org.apache:apache:17"

# org.codehaus.mojo:xslt-maven-plugin is not available so use command line tool instead
%pom_remove_plugin org.codehaus.mojo:xslt-maven-plugin woden-tool
%pom_add_plugin "org.codehaus.mojo:exec-maven-plugin:1.6.0" woden-tool "
  <executions>
    <execution>
      <goals><goal>exec</goal></goals>
      <phase>compile</phase>
    </execution>
  </executions>
  <configuration>
    <executable>xsltproc</executable>
    <arguments>
      <argument>-o</argument>
      <argument>\${project.build.outputDirectory}/wsdl-viewer-modules.xsl</argument>
      <argument>all-in-one.xsl</argument>
      <argument>src/main/xslt/wsdl-viewer-modules.xsl</argument>
    </arguments>
  </configuration>"

# Avoid use of deprecated plexus-maven-plugin
%pom_remove_plugin ":plexus-maven-plugin" woden-converter-maven-plugin

# These module contain only testdata and according to upstream, should not be deployed
%pom_disable_module woden-tests
%pom_disable_module w3c-tests

# Disable unnecessary plugin for RPM builds, Fedora doesn't ship source jars
%pom_remove_plugin :maven-source-plugin

# Don't need to build the dist assembly for RPM builds
%pom_disable_module woden-dist

# Compatibility aliases
%mvn_alias :woden-core :woden-api :woden-impl-commons :woden-impl-dom

%build
%mvn_build -s

# Fix encoding
iconv -f iso8859-1 -t utf-8 LICENSE > LICENSE.utf8
mv LICENSE.utf8 LICENSE

%install
%mvn_install

%jpackage_script "org.apache.woden.tool.converter.Convert" "" "" "woden:XmlSchema:wsdl4j:commons-logging" "woden-tool" true

%files -f .mfiles-woden-core
%doc README RELEASE-NOTE
%license LICENSE NOTICE

%files parent -f .mfiles-woden
%license LICENSE NOTICE

%files tool -f .mfiles-woden-tool
%{_bindir}/woden-tool

%files ant -f .mfiles-woden-ant

%files maven-plugin -f .mfiles-woden-converter-maven-plugin

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20192 |21mr|woff2-1.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1.0.2
%define comlib %mklibname woff2common %{major}
%define enclib %mklibname woff2enc %{major}
%define declib %mklibname woff2dec %{major}
%define devname %mklibname woff2 -d

Summary:	Web Open Font Format 2.0 library
Release:	4
Name:		woff2
Version:	1.0.2
License:	MIT
Group:		System/Libraries
Url:		https://github.com/google/woff2/
Source0:	https://github.com/google/woff2/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	pkgconfig(libbrotlidec)

%description
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with
improved compression that is achieved by using the Brotli algorithm. The
primary purpose of the WOFF2 format is to efficiently package fonts linked
to Web documents by means of CSS @font-face rules.

#----------------------------------------------------------------------------

%package tools
Summary:	Web Open Font Format 2.0 tools
Group:		Archiving/Compression
Provides:	%{name} = %{EVRD}

%description tools
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with
improved compression that is achieved by using the Brotli algorithm. The
primary purpose of the WOFF2 format is to efficiently package fonts linked
to Web documents by means of CSS @font-face rules.

%files tools
%{_bindir}/woff2_compress
%{_bindir}/woff2_decompress
%{_bindir}/woff2_info

#----------------------------------------------------------------------------

%package -n %{comlib}
Summary:	Shared data used by libwoff2 and libwoff2dec libraries
Group:		System/Libraries

%description -n %{comlib}
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with
improved compression that is achieved by using the Brotli algorithm. The
primary purpose of the WOFF2 format is to efficiently package fonts linked
to Web documents by means of CSS @font-face rules.

%files -n %{comlib}
%doc LICENSE
%{_libdir}/libwoff2common.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{enclib}
Summary:	WOFF2 encoder library
Group:		System/Libraries

%description -n %{enclib}
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with
improved compression that is achieved by using the Brotli algorithm. The
primary purpose of the WOFF2 format is to efficiently package fonts linked
to Web documents by means of CSS @font-face rules.

%files -n %{enclib}
%doc LICENSE
%{_libdir}/libwoff2enc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{declib}
Summary:	WOFF2 decoder library
Group:		System/Libraries

%description -n %{declib}
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with
improved compression that is achieved by using the Brotli algorithm. The
primary purpose of the WOFF2 format is to efficiently package fonts linked
to Web documents by means of CSS @font-face rules.

%files -n %{declib}
%doc LICENSE
%{_libdir}/libwoff2dec.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files and headers for %{name}
Group:		Development/Other
Requires:	%{comlib} = %{EVRD}
Requires:	%{enclib} = %{EVRD}
Requires:	%{declib} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Web Open Font Format (WOFF) 2.0 is an update to the existing WOFF 1.0 with
improved compression that is achieved by using the Brotli algorithm. The
primary purpose of the WOFF2 format is to efficiently package fonts linked
to Web documents by means of CSS @font-face rules.

%files -n %{devname}
%{_includedir}/woff2/
%{_libdir}/libwoff2*.so
%{_libdir}/pkgconfig/libwoff2*.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%cmake \
%ifarch %{e2k}
        -DCANONICAL_PREFIXES:BOOL=ON
%endif

%make

%install
%makeinstall_std -C build

# binaries
install -Dpm755 build/woff2_compress %{buildroot}%{_bindir}/woff2_compress
install -Dpm755 build/woff2_decompress %{buildroot}%{_bindir}/woff2_decompress
install -Dpm755 build/woff2_info %{buildroot}%{_bindir}/woff2_info

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20193 |21mr|woodstox-core5-5.0.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Group: Development/Java
%global base_name woodstox
%define oldname woodstox-core

Name:           woodstox-core5
Version:        5.0.3
Release:        2
Summary:        High-performance XML processor
License:        ASL 2.0 or LGPLv2+ or BSD
URL:            https://github.com/FasterXML/woodstox
BuildArch:      noarch

Source0:        https://github.com/FasterXML/%{base_name}/archive/%{oldname}-%{version}.tar.gz
Patch0:         0001-stax2-api.patch

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml:oss-parent:pom:)
BuildRequires:  mvn(javax.xml.stream:stax-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java.dev.msv:msv-core)
BuildRequires:  mvn(net.java.dev.msv:msv-rngconverter)
BuildRequires:  mvn(net.java.dev.msv:xsdlib)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.felix:org.osgi.core)
BuildRequires:  mvn(org.codehaus.woodstox:stax2-api)

%description
Woodstox is a high-performance validating namespace-aware StAX-compliant
(JSR-173) Open Source XML-processor written in Java.
XML processor means that it handles both input (== parsing)
and output (== writing, serialization)), as well as supporting tasks
such as validation.

%package javadoc
Group: Development/Java
Summary:          API documentation for %{name}
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%autosetup -p1 -n %{base_name}-%{oldname}-%{version}

%pom_xpath_inject 'pom:plugin[pom:artifactId="maven-bundle-plugin"]/pom:configuration' '
<instructions>
    <Export-Package>{local-packages}</Export-Package>
</instructions>'

%mvn_alias ":{woodstox-core}" :@1-lgpl :@1-asl :wstx-asl :wstx-lgpl \
    org.codehaus.woodstox:@1 org.codehaus.woodstox:@1-asl \
    org.codehaus.woodstox:@1-lgpl org.codehaus.woodstox:wstx-lgpl \
    org.codehaus.woodstox:wstx-asl
%mvn_file : %{oldname}{,-asl,-lgpl}

# add mvn() provides with postfix ":5" and postfix "-5" to names of files
# to avoid conflicts with other versions of woodstox-core
%mvn_compat_version : 5 %{version}

# Fails even when using online maven build
rm ./src/test/java/org/codehaus/stax/test/stream/TestNamespaces.java

%build
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc README.md

%files javadoc -f .mfiles-javadoc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20194 |21mr|woodstox-core-6.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global base_name woodstox

Name:           woodstox-core
Summary:        High-performance XML processor
Version:        6.0.2
Release:        1
License:        ASL 2.0 or LGPLv2+ or BSD

URL:            https://github.com/FasterXML/woodstox
Source0:        %{url}/archive/%{name}-%{version}.tar.gz

Patch0: 0001-Allow-building-against-OSGi-APIs-newer-than-R4.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(com.fasterxml:oss-parent:pom:)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(net.java.dev.msv:msv-core)
BuildRequires:  mvn(net.java.dev.msv:xsdlib)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.codehaus.woodstox:stax2-api)
BuildRequires:  mvn(org.osgi:osgi.core)
BuildRequires:  mvn(relaxngDatatype:relaxngDatatype)

%description
Woodstox is a high-performance validating namespace-aware StAX-compliant
(JSR-173) Open Source XML-processor written in Java.
XML processor means that it handles both input (== parsing)
and output (== writing, serialization)), as well as supporting tasks
such as validation.


%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q -n %{base_name}-%{name}-%{version}

%patch0 -p1

%pom_remove_plugin :nexus-staging-maven-plugin

# we don't care about Java 9 modules (yet)
%pom_remove_plugin :moditect-maven-plugin

# replace felix-osgi-core with osgi-core
%pom_change_dep -r :org.osgi.core org.osgi:osgi.core

%mvn_alias ":{woodstox-core}" :@1-lgpl :@1-asl :wstx-asl :wstx-lgpl \
    org.codehaus.woodstox:@1 org.codehaus.woodstox:@1-asl \
    org.codehaus.woodstox:@1-lgpl org.codehaus.woodstox:wstx-lgpl \
    org.codehaus.woodstox:wstx-asl

%mvn_file : %{name}{,-asl,-lgpl}


%build
%mvn_build


%install
%mvn_install


%files -f .mfiles
%doc README.md
%license LICENSE

%files javadoc -f .mfiles-javadoc



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20195 |21mr|words-3.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A dictionary of English words for the /usr/dict directory
Name:		words
Version:	3.0
Release:	19
License:	Public Domain
Group:		Text tools
Url:		http://www.dcs.shef.ac.uk/research/ilash/Moby/
Source0:	http://www.dcs.shef.ac.uk/research/ilash/Moby/mwords.tar.Z
BuildRequires:	dos2unix
BuildArch:	noarch

%description
The words file is a dictionary of English words for the /usr/share/dict
directory. Some programs use this database of words to check spelling.
Password checkers use it to look for bad passwords.

%files
%doc mwords/readme.txt mwords/license.txt
%{_datadir}/dict/linux.words
%{_datadir}/dict/words

#----------------------------------------------------------------------------

%prep
%setup -q -c

%build
cd mwords
dos2unix *; chmod a+r *
cat [1-9]*.??? | egrep  "^[[:alnum:]'&!,./-]+$" | sort --ignore-case --dictionary-order | uniq > moby

cat <<EOF >license.txt
On June 1, 1996 Grady Ward announced that the fruits of
the Moby project were being placed in the public domain:

The Moby lexicon project is complete and has
been place into the public domain. Use, sell,
rework, excerpt and use in any way on any platform.

Placing this material on internal or public servers is
also encouraged. The compiler is not aware of any
export restrictions so freely distribute world-wide.

You can verify the public domain status by contacting
  
Grady Ward
3449 Martha Ct.
Arcata, CA  95521-4884

daedal@myrealbox.com
EOF

%install
install -d %{buildroot}%{_datadir}/dict
install -m644 mwords/moby %{buildroot}%{_datadir}/dict/linux.words
ln -sf linux.words %{buildroot}%{_datadir}/dict/words

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20196 |21mr|wpa_supplicant-2.11-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without	qt5

Summary:	Linux WPA Supplicant (IEEE 802.1X, WPA, WPA2, RSN, IEEE 802.11i)
Name:		wpa_supplicant
Version:	2.11
Release:	4
# wpa_supplicant itself is dual-licensed under GPLv2 and BSD license, but as we
# link against GPL libraries, we must use GPLv2 license
License:	GPLv2+
Group:		Communications
Url:		http://w1.fi/wpa_supplicant/
Source0:	http://w1.fi/releases/wpa_supplicant-%{version}.tar.gz
Source1:	wpa_supplicant.conf
Source2:	wpa_supplicant.service
Source3:	wpa_supplicant.sysconfig
Source4:	wpa_supplicant.logrotate

# should be safe to just bump MAX_WEP_KEY_LEN to 32
# http://lists.shmoo.com/pipermail/hostap/2005-October/011787.html
Patch2:		wpa_supplicant-0.6.3-WEP232.patch
# quiet an annoying and frequent syslog message
Patch8:		wpa_supplicant-2.4-quiet-scan-results-message.patch
# works around busted drivers by increasing association timeout
Patch10:	wpa_supplicant-assoc-timeout.patch
# https://lists.infradead.org/pipermail/hostap/2024-October/043075.html
Patch11:	0001-Revert-Mark-authorization-completed-on-driver-indica.patch
# Fix BCM4331 and probably others
Patch12:	0002-nl80211-add-extra-ies-only-if-allowed-by-driver.patch

BuildRequires:	doxygen
BuildRequires:  docbook-dtds
BuildRequires:	docbook-utils
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gnutls) >= 3.0
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libnl-3.0)
BuildRequires:	pkgconfig(libpcsclite)
BuildRequires:	pkgconfig(openssl)
# for qt5
%if %{with qt5}
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Widgets)
%endif

%description
wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with
support for WPA and WPA2 (IEEE 802.11i / RSN). Supplicant is the IEEE
802.1X/WPA component that is used in the client stations. It
implements key negotiation with a WPA Authenticator and it controls
the roaming and IEEE 802.11 authentication/association of the wlan
driver.

wpa_supplicant is designed to be a "daemon" program that runs in the
background and acts as the backend component controlling the wireless
connection. wpa_supplicant supports separate frontend programs and an
example text-based frontend, wpa_cli, is included with wpa_supplicant.

Supported WPA/IEEE 802.11i features:
    * WPA-PSK ("WPA-Personal")
    * WPA with EAP (e.g., with RADIUS authentication server)
      ("WPA-Enterprise")
    * key management for CCMP, TKIP, WEP104, WEP40
    * WPA and full IEEE 802.11i/RSN/WPA2
    * RSN: PMKSA caching, pre-authentication

See the project web site or the eap_testing.txt file for a complete
list of supported EAP methods (IEEE 802.1X Supplicant), supported
drivers and interoperability testing.

%files
%doc wpa_supplicant/ChangeLog wpa_supplicant/README wpa_supplicant/eap_testing.txt wpa_supplicant/todo.txt
%doc wpa_supplicant/README-WPS
%doc wpa_supplicant/examples/*.conf
%config(noreplace) %{_sysconfdir}/wpa_supplicant/wpa_supplicant.conf
%config(noreplace) %{_sysconfdir}/sysconfig/wpa_supplicant
%dir %{_sysconfdir}/logrotate.d
%config(noreplace) %{_sysconfdir}/logrotate.d/wpa_supplicant
%{_unitdir}/%{name}.service
%{_tmpfilesdir}/%{name}.conf
%{_sbindir}/wpa_cli
%{_sbindir}/wpa_passphrase
%{_sbindir}/wpa_supplicant
%{_sbindir}/eapol_test
%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service
%{_mandir}/man8/*
%{_mandir}/man5/*

%post
%systemd_post wpa_supplicant.service

%preun
%systemd_preun wpa_supplicant.service

%postun
%systemd_postun wpa_supplicant.service

#----------------------------------------------------------------------------

%if %{with qt5}
%package gui
Summary:	Graphical tool for wpa_supplicant
Group:		System/Configuration/Networking

%description gui
wpa_gui is a QT frontend for wpa_supplicant.
wpa_supplicant is a WPA Supplicant for Linux, BSD and Windows with
support for WPA and WPA2 (IEEE 802.11i / RSN).

%files gui
%{_bindir}/wpa_gui
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%set_build_flags
pushd wpa_supplicant
  cp defconfig .config
  export CFLAGS="${CFLAGS:-%optflags} -fPIE -DPIE"
  export CXXFLAGS="${CXXFLAGS:-%optflags} -fPIE -DPIE"
  export LDFLAGS="${LDFLAGS:-%optflags} -pie -Wl,-z,now"
  # yes, BINDIR=_sbindir
  export BINDIR="%{_sbindir}"
  export LIBDIR="%{_libdir}"
  %make_build V=1
  %make_build eapol_test V=1
  make -C doc/docbook man V=1
%if %{with qt5}
pushd wpa_gui-qt4
 %qmake_qt5
 %make
popd
%endif
popd

%install
# config
install -D -m 0600 %{SOURCE1} %{buildroot}/%{_sysconfdir}/wpa_supplicant/wpa_supplicant.conf

# init scripts
install -D -m 0644 %{SOURCE2} %{buildroot}/%{_unitdir}/wpa_supplicant.service
install -D -m 0644 %{SOURCE3} %{buildroot}/%{_sysconfdir}/sysconfig/wpa_supplicant
install -D -m 0644 %{SOURCE4} %{buildroot}/%{_sysconfdir}/logrotate.d/wpa_supplicant

# binary
install -d %{buildroot}/%{_sbindir}
install -m 0755 wpa_supplicant/wpa_passphrase %{buildroot}/%{_sbindir}
install -m 0755 wpa_supplicant/wpa_cli %{buildroot}/%{_sbindir}
install -m 0755 wpa_supplicant/wpa_supplicant %{buildroot}/%{_sbindir}
install -m 0755 wpa_supplicant/eapol_test %{buildroot}/%{_sbindir}
install -D -m 0644 wpa_supplicant/dbus/dbus-wpa_supplicant.conf \
  %{buildroot}/%{_sysconfdir}/dbus-1/system.d/wpa_supplicant.conf
install -D -m 0644 wpa_supplicant/dbus/fi.w1.wpa_supplicant1.service \
  %{buildroot}/%{_datadir}/dbus-1/system-services/fi.w1.wpa_supplicant1.service


%if %{with qt5}
# gui
install -d %{buildroot}%{_bindir}
install -m 755 wpa_supplicant/wpa_gui-qt4/wpa_gui %{buildroot}%{_bindir}
%endif

mkdir -p %{buildroot}%{_tmpfilesdir}
cat <<- 'EOF' > %{buildroot}%{_tmpfilesdir}/%{name}.conf
d /run/wpa_supplicant 0775 root root -
EOF

# config
# man pages
install -d %{buildroot}%{_mandir}/man{5,8}
install -m 0644 wpa_supplicant/doc/docbook/*.8 %{buildroot}%{_mandir}/man8
install -m 0644 wpa_supplicant/doc/docbook/*.5 %{buildroot}%{_mandir}/man5

# some cleanup in docs and examples
rm -f  wpa_supplicant/doc/.cvsignore
rm -rf wpa_supplicant/doc/docbook
chmod -R 0644 wpa_supplicant/examples/*.py

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20197 |21mr|wpebackend-fdo-1.12.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname WPEBackend-fdo

%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A WPE backend designed for Linux desktop systems
Name:		wpebackend-fdo
Version:	1.12.0
Release:	1
License:	BSD
Group:		System/Libraries
Url:		https://github.com/Igalia/wpebackend-fdo
Source0:	https://github.com/Igalia/WPEBackend-fdo/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.xz
BuildRequires:	meson
BuildRequires:	mesa-common-devel
BuildRequires:	wayland-devel
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(wpe-1.0)
BuildRequires:	pkgconfig(xkbcommon)

%description
A WPE backend designed for Linux desktop systems.

#------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries

%description -n %{libname}
Libraries for %{name}.

%files -n %{libname}
%license COPYING
%doc NEWS
%{_libdir}/libWPEBackend-fdo-1.0.so.%{major}*

#------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The %{devname} package contains libraries, build data, and header
files for developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/wpe-fdo-1.0
%{_libdir}/pkgconfig/%{name}-1.0.pc
%{_libdir}/libWPEBackend-fdo-1.0.so

#------------------------------------------------------------------

%prep
%setup -qn %{oname}-%{version}

%build
%meson
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20198 |21mr|w_scan-0-0.20170107.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define	date		20170107
%define	rel			0.%{date}.1

Summary:	Channel scan tool for DVB-T and DVB-C
Name:		w_scan
Version:	0
Release:	%{rel}
License:	GPLv2+
Group:		Video
Url:		http://edafe.org/vdr/w_scan/
Source0:	http://wirbel.htpc-forum.de/%{name}/%{name}-%{date}.tar.bz2
BuildRequires:	kernel-headers
BuildRequires:	glibc-devel

%description
An application that greatly simplifies the task of scanning for DVB-T, DVB-C
and ATSC channel information. It is similar to dvbscan from dvb-apps. However
it is special because it does not require any region-specific initial
transponder data for operation and thus is able to find more channels.
It will create configuration files for VDR, Kaffeine and Xine.

%files
%doc ChangeLog COPYING README
%doc doc/README.file_formats doc/README_VLC_DVB doc/rotor.conf
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{date}
iconv -f iso-8859-1 -t utf-8 doc/%{name}.1 > doc/%{name}.1.utf-8 && \
touch -r doc/%{name}.1 doc/%{name}.1.utf-8 && \
mv doc/%{name}.1.utf-8 doc/%{name}.1


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20199 |21mr|ws-commons-util-1.0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           ws-commons-util
Version:        1.0.2
Release:        10
Summary:        Common utilities from the Apache Web Services Project

License:        ASL 2.0
URL:            http://ws.apache.org/commons/util

# svn checkout http://svn.apache.org/repos/asf/webservices/commons/tags/util/1.0.2/ ws-commons-util-1.0.2
# tar cJf ws-commons-util-1.0.2.tar.xz ws-commons-util-1.0.2
Source0:        ws-commons-util-1.0.2.tar.xz
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)

%description
This is version 1.0.2 of the common utilities from the Apache Web
Services Project.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
%{summary}.

%prep
%setup -q -n %{name}-%{version}
%mvn_file : %{name}
%mvn_alias org.apache.ws.commons:ws-commons-util org.apache.ws.commons.util:ws-commons-util
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
<extensions>true</extensions>
<configuration>
  <instructions>
    <Bundle-SymbolicName>org.apache.ws.commons.util</Bundle-SymbolicName>
    <Bundle-Name>${project.name}</Bundle-Name>
    <Bundle-Localization>plugin</Bundle-Localization>
    <Bundle-Version>${project.version}</Bundle-Version>
  </instructions>
</configuration>
<executions>
  <execution>
    <id>bundle-manifest</id>
    <phase>process-classes</phase>
    <goals>
      <goal>manifest</goal>
    </goals>
  </execution>
</executions>'

# This dep is supplied by the JRE
%pom_remove_dep "xml-apis:xml-apis"

# Avoid unnecessary runtime dependency on junit, used for tests only
%pom_xpath_inject 'pom:dependency[pom:artifactId="junit"]' "<scope>test</scope>"

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20200 |21mr|wsdd-0.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Web Service Discovery host daemon
Name:		wsdd
Version:	0.7.1
Release:	1
License:	MIT
Group:		System/Servers
Url:		https://github.com/christgau/wsdd
Source0:	https://github.com/christgau/wsdd/archive/v%{version}.tar.gz?/wsdd-%{version}.tar.gz
Source1:	wsdd.sysusers.conf
Source2:	wsdd.service
Source3:	wsdd-wrapper.sh
BuildRequires:	pkgconfig(python3)
Requires:	python3
BuildArch:	noarch

%description
wsdd implements a Web Service Discovery host daemon.
This enables (Samba) hosts, like your local NAS device,
to be found by Web Service Discovery Clients like Windows.

%files
%license LICENSE
%doc CHANGELOG.md README.md AUTHORS
%{_sbindir}/wsdd
%{_sbindir}/wsdd-wrapper
%{_unitdir}/wsdd.service
%{_sysusersdir}/wsdd.conf
%{_mandir}/man8/wsdd.8*
%attr(0755,root,root) %dir /var/lib/wsdd

%post
%sysusers_create wsdd.conf
%systemd_post wsdd.service

%preun
%systemd_preun wsdd.service

#------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}
%apply_patches

%install
mkdir -p %{buildroot}%{_sbindir}/
mkdir -p %{buildroot}%{_unitdir}/
mkdir -p %{buildroot}%{_sysusersdir}/
mkdir -p %{buildroot}%{_mandir}/man8/
mkdir -p %{buildroot}/var/lib/wsdd
install -m0755 src/wsdd.py %{buildroot}%{_sbindir}/wsdd
install -m0644 man/wsdd.8 %{buildroot}%{_mandir}/man8/
install -m0644 %{SOURCE1} %{buildroot}%{_sysusersdir}/wsdd.conf
install -m0644 %{SOURCE2} %{buildroot}%{_unitdir}/wsdd.service
install -m0755 %{SOURCE3} %{buildroot}%{_sbindir}/wsdd-wrapper

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20201 |21mr|wsdl4j-1.6.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:        Web Services Description Language Toolkit for Java
Name:           wsdl4j
Epoch:          0
Version:        1.6.3
Release:        15
License:        CPL
URL:            http://sourceforge.net/projects/wsdl4j
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
Group:          Development/Java
Source0:        http://downloads.sourceforge.net/project/wsdl4j/WSDL4J/%{version}/wsdl4j-src-%{version}.zip
Source1:        %{name}-MANIFEST.MF
Source2:        http://repo1.maven.org/maven2/wsdl4j/wsdl4j/%{version}/wsdl4j-%{version}.pom

BuildRequires:  ant
BuildRequires:  ant-junit
BuildRequires:  javapackages-local

Provides:       javax.wsdl

%description
The Web Services Description Language for Java Toolkit (WSDL4J) allows the
creation, representation, and manipulation of WSDL documents describing
services.  This code base will eventually serve as a reference implementation
of the standard created by JSR110.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-1_6_3

%mvn_file ":{*}" @1

%build
ant compile javadocs
# inject OSGi manifests
jar ufm build/lib/%{name}.jar %{SOURCE1}

%install
%mvn_artifact %{SOURCE2} build/lib/%{name}.jar
%mvn_artifact %{name}:qname:%{version} build/lib/qname.jar
%mvn_install -J build/javadocs

install -d -m 755 %{buildroot}%{_javadir}/javax.wsdl/
ln -sf ../%{name}.jar %{buildroot}%{_javadir}/javax.wsdl/
ln -sf ../qname.jar %{buildroot}%{_javadir}/javax.wsdl/

%files -f .mfiles
%license license.html
%{_javadir}/javax.wsdl/

%files javadoc -f .mfiles-javadoc
%license license.html


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20202 |21mr|wsil4j-1.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		wsil4j
Version:	1.0
Release:	20
Summary:	Web Services Inspection Language for Java API
Group:          Development/Java
License:	ASL 1.1
URL:		http://svn.apache.org/repos/asf/webservices/archive/wsil4j/

# svn co http://svn.apache.org/repos/asf/webservices/archive/wsil4j/trunk/java/ wsil4j-1.0
# tar -cJf wsil4j-1.0.tar.xz wsil4j-1.0
Source0:	%{name}-%{version}.tar.xz
Source1:	%{name}-MANIFEST.MF 
Source2:	%{name}-%{version}.pom
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:	ant
BuildRequires:	uddi4j
BuildRequires:	wsdl4j
BuildRequires:	javapackages-local
BuildRequires:	zip

%description
The Web Services Inspection Language (WS-Inspection) provides a distributed Web
service discovery method, by specifying how to inspect a web site for available
Web services. The WS-Inspection specification defines the locations on a Web
site where you could look for Web service descriptions.

%package javadoc
Summary:	Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q

find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

# Disable java 8 doclinting
sed -i -e '/<javadoc/aadditionalparam="-Xdoclint:none"' build.xml

%build
ant -DCLASS_PATH=$(build-classpath uddi4j wsdl4j) compile javadocs

%install
# inject OSGi manifest
mkdir -p META-INF
cp -p %{SOURCE1} META-INF/MANIFEST.MF
touch META-INF/MANIFEST.MF
zip -u build/lib/%{name}.jar META-INF/MANIFEST.MF

%mvn_artifact %{SOURCE2} build/lib/wsil4j.jar
%mvn_file ":wsil4j" wsil4j
%mvn_install -J build/javadocs

%files -f .mfiles
%license LICENSE
%doc docs
%doc README.htm

%files javadoc -f .mfiles-javadoc
%license LICENSE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20203 |21mr|ws-jaxme-0.5.2-25
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%bcond_without  hsqldb

%global base_name jaxme

Name:           ws-jaxme
Version:        0.5.2
Release:        25
Epoch:          0
Summary:        Open source implementation of JAXB
License:        ASL 2.0
Group:          Development/Java
URL:            http://ws.apache.org/
# svn export http://svn.apache.org/repos/asf/webservices/archive/jaxme/tags/R0_5_2/ ws-jaxme-0.5.2
# tar czf ws-jaxme-0.5.2-src.tar.gz ws-jaxme-0.5.2
Source0:        ws-jaxme-0.5.2-src.tar.gz
Source1:        ws-jaxme-bind-MANIFEST.MF

Source2:        http://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxme2/%{version}/jaxme2-%{version}.pom
Source3:        http://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxme2-rt/%{version}/jaxme2-rt-%{version}.pom
Source4:        http://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxmeapi/%{version}/jaxmeapi-%{version}.pom
Source5:        http://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxmejs/%{version}/jaxmejs-%{version}.pom
Source6:        http://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxmepm/%{version}/jaxmepm-%{version}.pom
Source7:        http://repo1.maven.org/maven2/org/apache/ws/jaxme/jaxmexs/%{version}/jaxmexs-%{version}.pom

# generated docs with forrest-0.5.1
Patch0:         ws-jaxme-docs_xml.patch
Patch1:         ws-jaxme-catalog.patch
Patch2:         ws-jaxme-system-dtd.patch
Patch3:         ws-jaxme-jdk16.patch
Patch4:         ws-jaxme-ant-scripts.patch
Patch5:         ws-jaxme-use-commons-codec.patch
# Remove xmldb-api, deprecated since f17
Patch6:         ws-jaxme-remove-xmldb.patch
Patch7:         ws-jaxme-0.5.2-class-version15.patch

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}
BuildRequires:  javapackages-local
BuildRequires:  ant >= 0:1.6
BuildRequires:  ant-apache-resolver
BuildRequires:  antlr
BuildRequires:  apache-commons-codec
BuildRequires:  junit
%if %{with hsqldb}
BuildRequires:  hsqldb1
%endif
BuildRequires:  log4j12
BuildRequires:  xalan-j2
BuildRequires:  xerces-j2
BuildRequires:  docbook-style-xsl
BuildRequires:  docbook-dtds
Requires:       antlr
Requires:       apache-commons-codec
Requires:       junit
%if %{with hsqldb}
Requires:       hsqldb1
%endif
Requires:       log4j12
Requires:       xalan-j2
Requires:       xerces-j2
Requires:       jpackage-utils

%description
A Java/XML binding compiler takes as input a schema 
description (in most cases an XML schema, but it may 
be a DTD, a RelaxNG schema, a Java class inspected 
via reflection, or a database schema). The output is 
a set of Java classes:
* A Java bean class matching the schema description. 
  (If the schema was obtained via Java reflection, 
  the original Java bean class.)
* Read a conforming XML document and convert it into 
  the equivalent Java bean.
* Vice versa, marshal the Java bean back into the 
  original XML document.

%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
%{summary}.

%package        manual
Summary:        Documents for %{name}

%description    manual
%{summary}.

%prep
%setup -q
find . -name "*.jar" -print -delete

%patch0 -p0
%patch1 -p0
%patch2 -p1
DOCBOOKX_DTD=`xmlcatalog %{_datadir}/sgml/docbook/xmlcatalog "-//OASIS//DTD DocBook XML V4.5//EN" 2>/dev/null`
sed -i 's|@DOCBOOKX_DTD@|$DOCBOOKX_DTD|' src/documentation/manual/jaxme2.xml
%patch3 -p1
%patch4 -b .sav
%patch5 -b .sav
%patch6 -p1
%patch7 -p1

sed -i 's/\r//' NOTICE

sed -i "s|log4j.jar|log4j12-1.2.17.jar|" ant/js.xml
sed -i "s|hsqldb.jar|hsqldb1-1.jar|" ant/js.xml ant/pm.xml

%if %{without hsqldb}
rm -r src/js/org/apache/ws/jaxme/sqls/hsqldb
%pom_xpath_remove 'target[@name="JS.generate"]/@depends' ant/js.xml
%endif

%build
export CLASSPATH=$(build-classpath antlr hsqldb1-1 commons-codec junit log4j12-1.2.17 xerces-j2 xalan-j2 xalan-j2-serializer)
ant all Docs.all \
-Dbuild.sysclasspath=first \
-Ddocbook.home=%{_datadir}/sgml/docbook \
-Ddocbookxsl.home=%{_datadir}/sgml/docbook/xsl-stylesheets

# Inject OSGi manifest
jar ufm dist/jaxmeapi-%{version}.jar %{SOURCE1}

%install
%mvn_file ':{*}' %{base_name}/@1 %{base_name}/ws-@1

for jar in jaxme2 jaxme2-rt jaxmeapi jaxmejs jaxmepm jaxmexs; do
   %mvn_artifact %{_sourcedir}/${jar}-%{version}.pom dist/${jar}-%{version}.jar
done

%mvn_install -J build/docs/src/documentation/content/apidocs

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%files manual
%license LICENSE NOTICE
%doc build/docs/src/documentation/content/manual


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20204 |21mr|wss4j-2.1.12-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          wss4j
Version:       2.1.12
Release:       2
Summary:       Apache WS-Security implementation
License:       ASL 2.0
URL:           http://ws.apache.org/wss4j/

Source0:       http://archive.apache.org/dist/ws/wss4j/%{version}/%{name}-%{version}-source-release.zip
Patch0:        wss4j-2.1.5-ehcache-core-2.6.patch

BuildRequires: maven-local
BuildRequires: mvn(com.sun.mail:javax.mail)
BuildRequires: mvn(junit:junit)
# ehcache:2.10.1 https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=1364535
BuildRequires: mvn(net.sf.ehcache:ehcache-core)
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache.commons:commons-compress)
BuildRequires: mvn(org.apache.directory.server:apacheds-kerberos-codec)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires: mvn(org.apache.neethi:neethi)
BuildRequires: mvn(org.apache.santuario:xmlsec) >= 2.0.5
BuildRequires: mvn(org.bouncycastle:bcpkix-jdk15on)
BuildRequires: mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires: mvn(org.jasypt:jasypt)
BuildRequires: mvn(org.opensaml:opensaml-saml-impl) >= 3.1.1
BuildRequires: mvn(org.opensaml:opensaml-xacml-impl)
BuildRequires: mvn(org.opensaml:opensaml-xacml-saml-impl)
BuildRequires: mvn(org.slf4j:slf4j-api)
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: mvn(org.tukaani:xz)
BuildRequires: mvn(wsdl4j:wsdl4j)
BuildRequires: mvn(xalan:xalan)
BuildRequires: mvn(xmlunit:xmlunit)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The Apache WSS4J project provides a Java implementation of the
primary security standards for Web Services.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{version}

%patch0 -p1

%pom_disable_module integration

# This plugin does not impact the build, and it currently raises this error:
# Reporting mojo's can only be called from ReportDocumentRender
%pom_remove_plugin "org.apache.maven.plugins:maven-pmd-plugin"
%pom_remove_plugin "org.apache.maven.plugins:maven-checkstyle-plugin"

%pom_remove_plugin :maven-source-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"

%pom_change_dep -r net.sf.ehcache:ehcache net.sf.ehcache:ehcache-core
%pom_change_dep -r :geronimo-javamail_1.4_spec com.sun.mail:javax.mail

# VulnerabliltyVectorsTest.testMaximumAllowedDecompressedBytes:572->AbstractTestBase.doOutboundSecurity:167 ? NoClassDefFound: org.tukaani.xz.FilterOptions
%pom_add_dep org.tukaani:xz:1.5:test ws-security-stax

# OutOfMemoryError: unable to create new native thread (only on koji)
rm ws-security-stax/src/test/java/org/apache/wss4j/stax/test/AttachmentTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/DerivedKeyTokenTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/FaultTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/HeaderOrderingTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/ReplayTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/VulnerabliltyVectorsTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/saml/SamlAuthnTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/saml/SamlConditionsTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/saml/SamlTokenDerivedTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/saml/SAMLTokenHOKTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/saml/SAMLTokenReferenceTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/saml/SAMLTokenSVTest.java \
 ws-security-stax/src/test/java/org/apache/wss4j/stax/test/saml/SAMLTokenTest.java

%build
# Tests disabled due to requiring certs that use disabled insecure algorithms (RSA < 1024)
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc ChangeLog.txt README.txt
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20205 |21mr|ws-xmlschema-2.2.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          ws-xmlschema
Version:       2.2.1
Release:       8
Summary:       Apache XMLSchema
License:       ASL 2.0
URL:           http://ws.apache.org/xmlschema/
# wget -c http://www.apache.org/dist/ws/xmlschema/2.2.1/xmlschema-2.2.1-source-release.zip
# unzip xmlschema-2.2.1-source-release.zip
# rm -r xmlschema-2.2.1/w3c-testcases
# tar cafJ ws-xmlschema-2.2.1.tar.xz xmlschema-2.2.1
Source0:       %{name}-%{version}.tar.xz

BuildRequires: maven-local
BuildRequires: mvn(org.apache:apache:pom:)
BuildRequires: mvn(org.apache:apache-jar-resource-bundle)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)

# For trick (hack) used in cxf
# mvn(org.apache.ws.xmlschema:xmlschema-core) is already provided
Provides: mvn(org.apache.ws.xmlschema:xmlschema-core:%{version}) = %{EVRD}

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Apache XMLSchema is a light weight schema object model that can be
used to manipulate or generate XML schema. It has very few external
dependencies and can be easily integrated into an existing project.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%package parent
Summary:       XMLSchema Parent POM

%description parent
XMLSchema Parent POM.

%package walker
Summary:       XMLSchema Walker

%description walker
Code to walk an XML Schema and confirm an XML Document conforms to it.

%prep
%setup -q -n xmlschema-%{version}

%pom_disable_module xmlschema-bundle-test
%pom_disable_module w3c-testcases

# Convert from dos to unix line ending
sed -i.orig 's|\r||g' RELEASE-NOTE.txt
touch -r RELEASE-NOTE.txt.orig RELEASE-NOTE.txt
rm RELEASE-NOTE.txt.orig

%build

# fastinstall profile avoids some build dependencies
# tests require unavailable dependencies
%mvn_build -sf -- -Pfastinstall

%install
%mvn_install

%files -f .mfiles-xmlschema-core
%doc README.txt RELEASE-NOTE.txt
%license LICENSE NOTICE

%files parent -f .mfiles-xmlschema
%license LICENSE NOTICE

%files walker -f .mfiles-xmlschema-walker

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20206 |21mr|wvstreams-4.6.1-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 4.6
# TODO: Split library package
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Network programming library written in C++
Name:		wvstreams
Version:	4.6.1
Release:	17
License:	LGPLv2.1+
Group:		System/Libraries
Url:		http://code.google.com/p/wvstreams
Source0:	http://wvstreams.googlecode.com/files/%{name}-%{version}.tar.gz
#fixed multilib issue (bug #192717)
Patch1: wvstreams-4.6.1-multilib.patch
#install-xplc target was missing
Patch2: wvstreams-4.5-noxplctarget.patch
#Fix parallel build (#226061)
Patch3: wvstreams-4.6.1-make.patch
#sys/stat.h is missing some files in rawhide build
Patch4: wvstreams-4.6.1-statinclude.patch
#const X509V3_EXT_METHOD * -> X509V3_EXT_METHOD * conversion not allowed
#by rawhide gcc
Patch5: wvstreams-4.6.1-gcc.patch
# fix missing unistd.h header for gcc 4.7
Patch6: wvstreams-4.6.1-gcc47.patch
Patch7: wvstreams-4.6.1-magic.patch
Patch8: 0001-Use-explicit-cast-and-prevent-compiler-error.patch
Patch9: wvstreams-4.6.1-fix-stack-size.patch
Patch10: wvstreams-4.6.1-gcc10.patch
# patch was taken from debian
Patch11: wvstreams-4.6.1-openssl11.patch
Patch12:	makecontext-e2k.patch
BuildRequires:	libxplc-devel
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(zlib)

%description
WvStreams aims to be an efficient, secure, and easy-to-use library for
doing network applications development.

#----------------------------------------------------------------------------

%package -n uniconf
Summary:	Configuration system
Group:		System/Configuration/Other
Requires:	%{libname} = %{EVRD}

%description -n uniconf
UniConf is a configuration system that can serve as the centrepiece among 
many other, existing configuration systems. UniConf can also be accessed over 
the network, with authentication, allowing easy replication of configuration 
data via the UniReplicateGen. This package contains the server that accepts 
incoming TCP or Unix connections, and gets or sets UniConf elements at the 
request of a UniConf client.

%files -n uniconf
%{_sysconfdir}/uniconf.conf
%{_bindir}/uni
%{_sbindir}/uniconfd
%{_mandir}/man8/*
%dir %{_localstatedir}/lib/uniconf
%{_localstatedir}/lib/uniconf/uniconfd.ini

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Network programming library written in C++
Group:		System/Libraries

%description -n %{libname}
WvStreams aims to be an efficient, secure, and easy-to-use library for
doing network applications development.

%files -n %{libname}
%{_libdir}/libuniconf.so.%{major}*
%{_libdir}/libwvbase.so.%{major}*
%{_libdir}/libwvdbus.so.%{major}*
%{_libdir}/libwvstreams.so.%{major}*
%{_libdir}/libwvutils.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for WvStreams
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
WvStreams aims to be an efficient, secure, and easy-to-use library for
doing network applications development. This package contains the files
needed for developing applications which use WvStreams.

%files -n %{devname}
%doc README
%{_bindir}/wsd
%{_bindir}/wvtestrun
%{_includedir}/wvstreams
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/*
%{_libdir}/valgrind/*.supp

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%ifarch %{e2k}
sed -i 's,-D_BSD_SOURCE,,' wvrules.mk
%endif

%build
export CFLAGS="%{optflags} -fPIC -fpermissive"
export CXXFLAGS="%{optflags} -fPIC -fpermissive -Wno-narrowing -std=gnu++11" \
%ifarch %{e2k}
export CXXFLAGS+=" -DWVCRASH_USE_SIGALTSTACK=0"
%endif
%configure \
	--disable-static \
	--with-dbus=yes \
	--with-openssl \
	--with-zlib \
	--with-qt=no \
	--with-pam=no \
	--with-tcl=no
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20207 |21mr|wxgtk3.0-3.0.5.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wxWidgets

%define api 3.0
%define major 0
%define libnameudev_gtk2 %mklibname -d wxgtku%{api}-gtk2
%define libnameudev %mklibname -d wxgtku %{api}
%define libwx_baseu %mklibname wx_baseu %{api} %{major}
%define libwx_baseu_net %mklibname wx_baseu_net %{api} %{major}
%define libwx_baseu_xml %mklibname wx_baseu_xml %{api} %{major}
%define libwx_gtk2u_adv %mklibname wx_gtk2u_adv %{api} %{major}
%define libwx_gtk2u_aui %mklibname wx_gtk2u_aui %{api} %{major}
%define libwx_gtk2u_core %mklibname wx_gtk2u_core %{api} %{major}
%define libwx_gtk2u_gl %mklibname wx_gtk2u_gl %{api} %{major}
%define libwx_gtk2u_html %mklibname wx_gtk2u_html %{api} %{major}
%define libwx_gtk2u_media %mklibname wx_gtk2u_media %{api} %{major}
%define libwx_gtk2u_propgrid %mklibname wx_gtk2u_propgrid %{api} %{major}
%define libwx_gtk2u_qa %mklibname wx_gtk2u_qa %{api} %{major}
%define libwx_gtk2u_ribbon %mklibname wx_gtk2u_ribbon %{api} %{major}
%define libwx_gtk2u_richtext %mklibname wx_gtk2u_richtext %{api} %{major}
%define libwx_gtk2u_stc %mklibname wx_gtk2u_stc %{api} %{major}
%define libwx_gtk2u_xrc %mklibname wx_gtk2u_xrc %{api} %{major}
%define libwx_gtk3u_adv %mklibname wx_gtk3u_adv %{api} %{major}
%define libwx_gtk3u_aui %mklibname wx_gtk3u_aui %{api} %{major}
%define libwx_gtk3u_core %mklibname wx_gtk3u_core %{api} %{major}
%define libwx_gtk3u_gl %mklibname wx_gtk3u_gl %{api} %{major}
%define libwx_gtk3u_html %mklibname wx_gtk3u_html %{api} %{major}
%define libwx_gtk3u_media %mklibname wx_gtk3u_media %{api} %{major}
%define libwx_gtk3u_propgrid %mklibname wx_gtk3u_propgrid %{api} %{major}
%define libwx_gtk3u_qa %mklibname wx_gtk3u_qa %{api} %{major}
%define libwx_gtk3u_ribbon %mklibname wx_gtk3u_ribbon %{api} %{major}
%define libwx_gtk3u_richtext %mklibname wx_gtk3u_richtext %{api} %{major}
%define libwx_gtk3u_stc %mklibname wx_gtk3u_stc %{api} %{major}
%define libwx_gtk3u_webview %mklibname wx_gtk3u_webview %{api} %{major}
%define libwx_gtk3u_xrc %mklibname wx_gtk3u_xrc %{api} %{major}
%define webkit2_extu %mklibname webkit2_extu %{api}

%bcond_without compat

%if %{with compat}
BuildRequires:	pkgconfig(gtk+-2.0)
%endif

Summary:	GTK+ port of the wxWidgets library
Name:		wxgtk%{api}
Version:	3.0.5.1
Release:	8
License:	wxWidgets Library Licence
Group:		System/Libraries
Url:		http://www.wxwidgets.org/
Source0:	https://github.com/wxWidgets/wxWidgets/archive/v%{version}.tar.gz?/%{oname}-%{version}.tar.gz
Patch0:		wxWidgets-3.0.0-locales.patch
Patch1:		wxWidgets-3.0.3-fix_assertion_using_hide_in_destroy.diff
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)

%description
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

%files -f wxstd-%%{api}.lang
%doc *.txt

#----------------------------------------------------------------------------

# spec too big
%define descript \
wxWidgets is a free C++ library for cross-platform GUI development. \
With wxWidgets, you can create applications for different GUIs (GTK+, \
Motif/LessTif, MS Windows, Mac) from the same source code. \
\
This package contains the library needed to run programs dynamically \
linked with the unicode enabled version of %{name}.

%package -n %{webkit2_extu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	webkit2gtk4.0

%description -n %{webkit2_extu}
%{descript}

%files -n %{webkit2_extu}
%{_libdir}/wx/3.0/web-extensions/webkit2_extu-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libwx_baseu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu}
%{descript}

%files -n %{libwx_baseu}
%{_libdir}/libwx_baseu-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_baseu_net}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu_net}
%{descript}

%files -n %{libwx_baseu_net}
%{_libdir}/libwx_baseu_net-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_baseu_xml}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu_xml}
%{descript}

%files -n %{libwx_baseu_xml}
%{_libdir}/libwx_baseu_xml-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_adv}
%{descript}

%files -n %{libwx_gtk3u_adv}
%{_libdir}/libwx_gtk3u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_adv}
%{descript}

%files -n %{libwx_gtk2u_adv}
%{_libdir}/libwx_gtk2u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_aui}
%{descript}

%files -n %{libwx_gtk3u_aui}
%{_libdir}/libwx_gtk3u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_aui}
%{descript}

%files -n %{libwx_gtk2u_aui}
%{_libdir}/libwx_gtk2u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_core}
%{descript}

%files -n %{libwx_gtk3u_core}
%{_libdir}/libwx_gtk3u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_core}
%{descript}

%files -n %{libwx_gtk2u_core}
%{_libdir}/libwx_gtk2u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_gl}
%{descript}

%files -n %{libwx_gtk3u_gl}
%{_libdir}/libwx_gtk3u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_gl}
%{descript}

%files -n %{libwx_gtk2u_gl}
%{_libdir}/libwx_gtk2u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_html}
%{descript}

%files -n %{libwx_gtk3u_html}
%{_libdir}/libwx_gtk3u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_html}
%{descript}

%files -n %{libwx_gtk2u_html}
%{_libdir}/libwx_gtk2u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_media}
%{descript}

%files -n %{libwx_gtk3u_media}
%{_libdir}/libwx_gtk3u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_media}
%{descript}

%files -n %{libwx_gtk2u_media}
%{_libdir}/libwx_gtk2u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_propgrid}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_propgrid}
%{descript}

%files -n %{libwx_gtk3u_propgrid}
%{_libdir}/libwx_gtk3u_propgrid-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_propgrid}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_propgrid}
%{descript}

%files -n %{libwx_gtk2u_propgrid}
%{_libdir}/libwx_gtk2u_propgrid-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_qa}
%{descript}

%files -n %{libwx_gtk3u_qa}
%{_libdir}/libwx_gtk3u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_qa}
%{descript}

%files -n %{libwx_gtk2u_qa}
%{_libdir}/libwx_gtk2u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_ribbon}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_ribbon}
%{descript}

%files -n %{libwx_gtk3u_ribbon}
%{_libdir}/libwx_gtk3u_ribbon-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_ribbon}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_ribbon}
%{descript}

%files -n %{libwx_gtk2u_ribbon}
%{_libdir}/libwx_gtk2u_ribbon-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_richtext}
%{descript}

%files -n %{libwx_gtk3u_richtext}
%{_libdir}/libwx_gtk3u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_richtext}
%{descript}

%files -n %{libwx_gtk2u_richtext}
%{_libdir}/libwx_gtk2u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_stc}
%{descript}

%files -n %{libwx_gtk3u_stc}
%{_libdir}/libwx_gtk3u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_stc}
%{descript}

%files -n %{libwx_gtk2u_stc}
%{_libdir}/libwx_gtk2u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_webview}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_webview}
%{descript}

%files -n %{libwx_gtk3u_webview}
%{_libdir}/libwx_gtk3u_webview-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_xrc}
%{descript}

%files -n %{libwx_gtk3u_xrc}
%{_libdir}/libwx_gtk3u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_xrc}
%{descript}

%files -n %{libwx_gtk2u_xrc}
%{_libdir}/libwx_gtk2u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameudev}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_baseu} = %{EVRD}
Requires:	%{libwx_baseu_net} = %{EVRD}
Requires:	%{libwx_baseu_xml} = %{EVRD}
Requires:	%{libwx_gtk3u_adv} = %{EVRD}
Requires:	%{libwx_gtk3u_aui} = %{EVRD}
Requires:	%{libwx_gtk3u_core} = %{EVRD}
Requires:	%{libwx_gtk3u_gl} = %{EVRD}
Requires:	%{libwx_gtk3u_html} = %{EVRD}
Requires:	%{libwx_gtk3u_media} = %{EVRD}
Requires:	%{libwx_gtk3u_propgrid} = %{EVRD}
Requires:	%{libwx_gtk3u_qa} = %{EVRD}
Requires:	%{libwx_gtk3u_ribbon} = %{EVRD}
Requires:	%{libwx_gtk3u_richtext} = %{EVRD}
Requires:	%{libwx_gtk3u_stc} = %{EVRD}
Requires:	%{libwx_gtk3u_webview} = %{EVRD}
Requires:	%{libwx_gtk3u_xrc} = %{EVRD}
Provides:	wxgtku%{api}-devel = %{EVRD}
# At this time 2.8 and 3.0 cannot co-exist because of file conflicts
Conflicts:	%{_lib}wxgtku2.8-devel

%description -n %{libnameudev}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev}
%doc samples/
%doc docs/
%doc demos/
%{_bindir}/wx-config
%{_bindir}/wxrc
%{_bindir}/wxrc-%{api}
%{_includedir}/wx-%{api}/
%{_datadir}/aclocal/*
%{_datadir}/bakefile/
%{_libdir}/wx/config/gtk3-unicode-%{api}
%{_libdir}/wx/include/gtk3-unicode-%{api}/wx/setup.h
%{_libdir}/libwx_baseu-%{api}.so
%{_libdir}/libwx_baseu_net-%{api}.so
%{_libdir}/libwx_baseu_xml-%{api}.so
%{_libdir}/libwx_gtk3u_adv-%{api}.so
%{_libdir}/libwx_gtk3u_aui-%{api}.so
%{_libdir}/libwx_gtk3u_core-%{api}.so
%{_libdir}/libwx_gtk3u_gl-%{api}.so
%{_libdir}/libwx_gtk3u_html-%{api}.so
%{_libdir}/libwx_gtk3u_media-%{api}.so
%{_libdir}/libwx_gtk3u_propgrid-%{api}.so
%{_libdir}/libwx_gtk3u_qa-%{api}.so
%{_libdir}/libwx_gtk3u_ribbon-%{api}.so
%{_libdir}/libwx_gtk3u_richtext-%{api}.so
%{_libdir}/libwx_gtk3u_stc-%{api}.so
%{_libdir}/libwx_gtk3u_webview-%{api}.so
%{_libdir}/libwx_gtk3u_xrc-%{api}.so

#----------------------------------------------------------------------------

%package -n %{libnameudev_gtk2}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_gtk2u_adv} = %{EVRD}
Requires:	%{libwx_gtk2u_aui} = %{EVRD}
Requires:	%{libwx_gtk2u_core} = %{EVRD}
Requires:	%{libwx_gtk2u_gl} = %{EVRD}
Requires:	%{libwx_gtk2u_html} = %{EVRD}
Requires:	%{libwx_gtk2u_media} = %{EVRD}
Requires:	%{libwx_gtk2u_propgrid} = %{EVRD}
Requires:	%{libwx_gtk2u_qa} = %{EVRD}
Requires:	%{libwx_gtk2u_ribbon} = %{EVRD}
Requires:	%{libwx_gtk2u_richtext} = %{EVRD}
Requires:	%{libwx_gtk2u_stc} = %{EVRD}
Requires:	%{libwx_gtk2u_xrc} = %{EVRD}
Provides:	wxgtku%{api}-gtk2-devel = %{EVRD}
# At this time 2.8 and 3.0 cannot co-exist because of file conflicts
Conflicts:	%{_lib}wxgtku2.8-devel

%description -n %{libnameudev_gtk2}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev_gtk2}
%doc samples/
%doc docs/
%doc demos/
%{_bindir}/wx-config-gtk2
%{_libdir}/wx/config/gtk2-unicode-%{api}
%{_libdir}/wx/include/gtk2-unicode-%{api}/wx/setup.h
%{_libdir}/libwx_gtk2u_adv-%{api}.so
%{_libdir}/libwx_gtk2u_aui-%{api}.so
%{_libdir}/libwx_gtk2u_core-%{api}.so
%{_libdir}/libwx_gtk2u_gl-%{api}.so
%{_libdir}/libwx_gtk2u_html-%{api}.so
%{_libdir}/libwx_gtk2u_media-%{api}.so
%{_libdir}/libwx_gtk2u_propgrid-%{api}.so
%{_libdir}/libwx_gtk2u_qa-%{api}.so
%{_libdir}/libwx_gtk2u_ribbon-%{api}.so
%{_libdir}/libwx_gtk2u_richtext-%{api}.so
%{_libdir}/libwx_gtk2u_stc-%{api}.so
%{_libdir}/libwx_gtk2u_xrc-%{api}.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# fix plugin dir for 64-bit
sed -i -e 's|/lib|/%{_lib}|' src/unix/stdpaths.cpp

%build
%config_update
%define Werror_cflags %nil
# --disable-optimise prevents our $RPM_OPT_FLAGS being overridden
# (see OPTIMISE in configure).
# this code dereferences type-punned pointers like there's no tomorrow.
CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="%{optflags} -fno-strict-aliasing"
LIBS="$LIBS -lpthread"

CONF_FLAG="\
	--disable-catch_segvs	\
	--disable-optimise	\
	--enable-calendar	\
	--enable-controls	\
	--enable-dataviewctrl	\
	--enable-dirdlg		\
	--enable-fraction	\
	--enable-graphics_ctx	\
	--enable-grid		\
	--enable-intl		\
	--enable-ipv6		\
	--enable-mediactrl	\
	--enable-msgdlg		\
	--enable-numberdlg	\
	--enable-splash		\
	--enable-stc		\
	--enable-tabdialog	\
	--enable-textdlg	\
	--enable-unicode	\
	--enable-wave		\
	--enable-wxprintfv	\
	--enable-xresources	\
	--with-libjpeg=sys	\
	--with-libpng=sys	\
	--with-libtiff=sys	\
	--with-opengl		\
	--without-debug_flag	\
	--without-debug_info	\
	--without-odbc		\
	--with-sdl		\
	--with-zlib=sys"

export CONFIGURE_TOP=..

%if %{with compat}
mkdir build_gtk2
pushd build_gtk2
%configure \
	$CONF_FLAG		\
	--disable-webview	\
	--with-gtk=2
%make
popd
%endif

mkdir build_gtk3
pushd build_gtk3
%configure \
	$CONF_FLAG	\
	--with-gtk=3 
%make
make -C ../locale allmo
popd

%install

%if %{with compat}
pushd build_gtk2
%makeinstall_std
mv %{buildroot}/%{_bindir}/wx-config %{buildroot}/%{_bindir}/wx-config-gtk2
popd
%endif

pushd build_gtk3
%makeinstall_std
popd

%find_lang wxstd-%{api}
%find_lang wxmsw-%{api}
cat wxmsw-%{api}.lang >> wxstd-%{api}.lang

# fix path in headers files
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include \"\(wx[a-zA-Z0-9_/.]*\)\":include <\1>:' \{\} \;
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include <wx/:include <wx-%{api}/wx/:' \{\} \;
ln -s ../../../%{_lib}/wx/include/gtk3-unicode-%{api}/wx/setup.h %{buildroot}%{_includedir}/wx-%{api}/wx/setup.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20208 |21mr|wxgtk3.1-3.1.5-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname wxWidgets
%define api 3.1
%define major 5
%define libnameudev_gtk2 %mklibname -d wxgtku%{api}-gtk2
%define libnameudev %mklibname -d wxgtku %{api}
%define libwx_baseu %mklibname wx_baseu %{api} %{major}
%define libwx_baseu_net %mklibname wx_baseu_net %{api} %{major}
%define libwx_baseu_xml %mklibname wx_baseu_xml %{api} %{major}
%define libwx_gtk2u_adv %mklibname wx_gtk2u_adv %{api} %{major}
%define libwx_gtk2u_aui %mklibname wx_gtk2u_aui %{api} %{major}
%define libwx_gtk2u_core %mklibname wx_gtk2u_core %{api} %{major}
%define libwx_gtk2u_gl %mklibname wx_gtk2u_gl %{api} %{major}
%define libwx_gtk2u_html %mklibname wx_gtk2u_html %{api} %{major}
%define libwx_gtk2u_media %mklibname wx_gtk2u_media %{api} %{major}
%define libwx_gtk2u_propgrid %mklibname wx_gtk2u_propgrid %{api} %{major}
%define libwx_gtk2u_qa %mklibname wx_gtk2u_qa %{api} %{major}
%define libwx_gtk2u_ribbon %mklibname wx_gtk2u_ribbon %{api} %{major}
%define libwx_gtk2u_richtext %mklibname wx_gtk2u_richtext %{api} %{major}
%define libwx_gtk2u_stc %mklibname wx_gtk2u_stc %{api} %{major}
%define libwx_gtk2u_xrc %mklibname wx_gtk2u_xrc %{api} %{major}
%define libwx_gtk3u_adv %mklibname wx_gtk3u_adv %{api} %{major}
%define libwx_gtk3u_aui %mklibname wx_gtk3u_aui %{api} %{major}
%define libwx_gtk3u_core %mklibname wx_gtk3u_core %{api} %{major}
%define libwx_gtk3u_gl %mklibname wx_gtk3u_gl %{api} %{major}
%define libwx_gtk3u_html %mklibname wx_gtk3u_html %{api} %{major}
%define libwx_gtk3u_media %mklibname wx_gtk3u_media %{api} %{major}
%define libwx_gtk3u_propgrid %mklibname wx_gtk3u_propgrid %{api} %{major}
%define libwx_gtk3u_qa %mklibname wx_gtk3u_qa %{api} %{major}
%define libwx_gtk3u_ribbon %mklibname wx_gtk3u_ribbon %{api} %{major}
%define libwx_gtk3u_richtext %mklibname wx_gtk3u_richtext %{api} %{major}
%define libwx_gtk3u_stc %mklibname wx_gtk3u_stc %{api} %{major}
%define libwx_gtk3u_webview %mklibname wx_gtk3u_webview %{api} %{major}
%define libwx_gtk3u_xrc %mklibname wx_gtk3u_xrc %{api} %{major}
%define webkit2_extu %mklibname webkit2_extu %{api}

%bcond_without compat

%if %{with compat}
BuildRequires:	pkgconfig(gtk+-2.0)
%endif

Summary:	GTK+ port of the wxWidgets library
Name:		wxgtk%{api}
Version:	3.1.5
Release:	6
License:	wxWidgets Library Licence
Group:		System/Libraries
Url:		http://www.wxwidgets.org/
Source0:	https://github.com/wxWidgets/wxWidgets/releases/download/v%{version}/%{oname}-%{version}.tar.bz2
Patch1:		wxWidgets-3.0.3-fix_assertion_using_hide_in_destroy.diff
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(expat)
BuildRequires:	pkgconfig(gconf-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-1.0)
BuildRequires:	pkgconfig(gstreamer-plugins-base-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libnotify)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)

%description
wxWidgets is a free C++ library for cross-platform GUI development.
With wxWidgets, you can create applications for different GUIs (GTK+,
Motif/LessTif, MS Windows, Mac) from the same source code.

%files -f wxstd-%%{api}.lang
%doc *.txt

#----------------------------------------------------------------------------

# spec too big
%define descript \
wxWidgets is a free C++ library for cross-platform GUI development. \
With wxWidgets, you can create applications for different GUIs (GTK+, \
Motif/LessTif, MS Windows, Mac) from the same source code. \
 \
This package contains the library needed to run programs dynamically \
linked with the unicode enabled version of %{name}.

%package -n %{webkit2_extu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}
Requires:	webkit2gtk4.0

%description -n %{webkit2_extu}
%{descript}

%files -n %{webkit2_extu}
%{_libdir}/wx/%{version}/web-extensions/webkit2_extu-%{version}.so

#----------------------------------------------------------------------------

%package -n %{libwx_baseu}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu}
%{descript}

%files -n %{libwx_baseu}
%{_libdir}/libwx_baseu-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_baseu_net}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu_net}
%{descript}

%files -n %{libwx_baseu_net}
%{_libdir}/libwx_baseu_net-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_baseu_xml}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_baseu_xml}
%{descript}

%files -n %{libwx_baseu_xml}
%{_libdir}/libwx_baseu_xml-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_adv}
%{descript}

%files -n %{libwx_gtk3u_adv}
%{_libdir}/libwx_gtk3u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_adv}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_adv}
%{descript}

%files -n %{libwx_gtk2u_adv}
%{_libdir}/libwx_gtk2u_adv-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_aui}
%{descript}

%files -n %{libwx_gtk3u_aui}
%{_libdir}/libwx_gtk3u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_aui}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_aui}
%{descript}

%files -n %{libwx_gtk2u_aui}
%{_libdir}/libwx_gtk2u_aui-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_core}
%{descript}

%files -n %{libwx_gtk3u_core}
%{_libdir}/libwx_gtk3u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_core}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_core}
%{descript}

%files -n %{libwx_gtk2u_core}
%{_libdir}/libwx_gtk2u_core-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_gl}
%{descript}

%files -n %{libwx_gtk3u_gl}
%{_libdir}/libwx_gtk3u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_gl}
Summary:	OpenGL shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_gl}
%{descript}

%files -n %{libwx_gtk2u_gl}
%{_libdir}/libwx_gtk2u_gl-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_html}
%{descript}

%files -n %{libwx_gtk3u_html}
%{_libdir}/libwx_gtk3u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_html}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_html}
%{descript}

%files -n %{libwx_gtk2u_html}
%{_libdir}/libwx_gtk2u_html-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_media}
%{descript}

%files -n %{libwx_gtk3u_media}
%{_libdir}/libwx_gtk3u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_media}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_media}
%{descript}

%files -n %{libwx_gtk2u_media}
%{_libdir}/libwx_gtk2u_media-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_propgrid}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_propgrid}
%{descript}

%files -n %{libwx_gtk3u_propgrid}
%{_libdir}/libwx_gtk3u_propgrid-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_propgrid}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_propgrid}
%{descript}

%files -n %{libwx_gtk2u_propgrid}
%{_libdir}/libwx_gtk2u_propgrid-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_qa}
%{descript}

%files -n %{libwx_gtk3u_qa}
%{_libdir}/libwx_gtk3u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_qa}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_qa}
%{descript}

%files -n %{libwx_gtk2u_qa}
%{_libdir}/libwx_gtk2u_qa-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_ribbon}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_ribbon}
%{descript}

%files -n %{libwx_gtk3u_ribbon}
%{_libdir}/libwx_gtk3u_ribbon-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_ribbon}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_ribbon}
%{descript}

%files -n %{libwx_gtk2u_ribbon}
%{_libdir}/libwx_gtk2u_ribbon-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_richtext}
%{descript}

%files -n %{libwx_gtk3u_richtext}
%{_libdir}/libwx_gtk3u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_richtext}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_richtext}
%{descript}

%files -n %{libwx_gtk2u_richtext}
%{_libdir}/libwx_gtk2u_richtext-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_stc}
%{descript}

%files -n %{libwx_gtk3u_stc}
%{_libdir}/libwx_gtk3u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_stc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_stc}
%{descript}

%files -n %{libwx_gtk2u_stc}
%{_libdir}/libwx_gtk2u_stc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_webview}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_webview}
%{descript}

%files -n %{libwx_gtk3u_webview}
%{_libdir}/libwx_gtk3u_webview-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk3u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk3u_xrc}
%{descript}

%files -n %{libwx_gtk3u_xrc}
%{_libdir}/libwx_gtk3u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libwx_gtk2u_xrc}
Summary:	Shared library of wxGTK - Unicode enabled
Group:		System/Libraries
Requires:	%{name} = %{EVRD}

%description -n %{libwx_gtk2u_xrc}
%{descript}

%files -n %{libwx_gtk2u_xrc}
%{_libdir}/libwx_gtk2u_xrc-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libnameudev}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_baseu} = %{EVRD}
Requires:	%{libwx_baseu_net} = %{EVRD}
Requires:	%{libwx_baseu_xml} = %{EVRD}
Requires:	%{libwx_gtk3u_adv} = %{EVRD}
Requires:	%{libwx_gtk3u_aui} = %{EVRD}
Requires:	%{libwx_gtk3u_core} = %{EVRD}
Requires:	%{libwx_gtk3u_gl} = %{EVRD}
Requires:	%{libwx_gtk3u_html} = %{EVRD}
Requires:	%{libwx_gtk3u_media} = %{EVRD}
Requires:	%{libwx_gtk3u_propgrid} = %{EVRD}
Requires:	%{libwx_gtk3u_qa} = %{EVRD}
Requires:	%{libwx_gtk3u_ribbon} = %{EVRD}
Requires:	%{libwx_gtk3u_richtext} = %{EVRD}
Requires:	%{libwx_gtk3u_stc} = %{EVRD}
Requires:	%{libwx_gtk3u_webview} = %{EVRD}
Requires:	%{libwx_gtk3u_xrc} = %{EVRD}
Provides:	wxgtku%{api}-devel = %{EVRD}
# At this time 2.8 and 3.1 cannot co-exist because of file conflicts
Conflicts:	%{_lib}wxgtku2.8-devel
Conflicts:	%{_lib}wxgtku3.0-devel

%description -n %{libnameudev}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev}
%doc demos docs samples
%{_bindir}/wx-config
%{_bindir}/wxrc
%{_bindir}/wxrc-%{api}
%{_datadir}/aclocal/*
%{_datadir}/bakefile/
%{_includedir}/wx-%{api}/
%{_libdir}/libwx_baseu-%{api}.so
%{_libdir}/libwx_baseu_net-%{api}.so
%{_libdir}/libwx_baseu_xml-%{api}.so
%{_libdir}/libwx_gtk3u_adv-%{api}.so
%{_libdir}/libwx_gtk3u_aui-%{api}.so
%{_libdir}/libwx_gtk3u_core-%{api}.so
%{_libdir}/libwx_gtk3u_gl-%{api}.so
%{_libdir}/libwx_gtk3u_html-%{api}.so
%{_libdir}/libwx_gtk3u_media-%{api}.so
%{_libdir}/libwx_gtk3u_propgrid-%{api}.so
%{_libdir}/libwx_gtk3u_qa-%{api}.so
%{_libdir}/libwx_gtk3u_ribbon-%{api}.so
%{_libdir}/libwx_gtk3u_richtext-%{api}.so
%{_libdir}/libwx_gtk3u_stc-%{api}.so
%{_libdir}/libwx_gtk3u_webview-%{api}.so
%{_libdir}/libwx_gtk3u_xrc-%{api}.so
%{_libdir}/wx/config/gtk3-unicode-%{api}
%{_libdir}/wx/include/gtk3-unicode-%{api}/wx/setup.h

#----------------------------------------------------------------------------

%package -n %{libnameudev_gtk2}
Summary:	Header files and development documentation for wxGTK - unicode
Group:		Development/C++
Requires:	%{libwx_gtk2u_adv} = %{EVRD}
Requires:	%{libwx_gtk2u_aui} = %{EVRD}
Requires:	%{libwx_gtk2u_core} = %{EVRD}
Requires:	%{libwx_gtk2u_gl} = %{EVRD}
Requires:	%{libwx_gtk2u_html} = %{EVRD}
Requires:	%{libwx_gtk2u_media} = %{EVRD}
Requires:	%{libwx_gtk2u_propgrid} = %{EVRD}
Requires:	%{libwx_gtk2u_qa} = %{EVRD}
Requires:	%{libwx_gtk2u_ribbon} = %{EVRD}
Requires:	%{libwx_gtk2u_richtext} = %{EVRD}
Requires:	%{libwx_gtk2u_stc} = %{EVRD}
Requires:	%{libwx_gtk2u_xrc} = %{EVRD}
Provides:	wxgtku%{api}-gtk2-devel = %{EVRD}
# At this time 2.8 and 3.1 cannot co-exist because of file conflicts
Conflicts:	%{_lib}wxgtku2.8-devel
Conflicts:	%{_lib}wxgtku3.0-devel

%description -n %{libnameudev_gtk2}
Header files for the unicode enabled version of wxGTK, the GTK+ port of
the wxWidgets library.

%files -n %{libnameudev_gtk2}
%doc demos docs samples
%{_bindir}/wx-config-gtk2
%{_libdir}/libwx_gtk2u_adv-%{api}.so
%{_libdir}/libwx_gtk2u_aui-%{api}.so
%{_libdir}/libwx_gtk2u_core-%{api}.so
%{_libdir}/libwx_gtk2u_gl-%{api}.so
%{_libdir}/libwx_gtk2u_html-%{api}.so
%{_libdir}/libwx_gtk2u_media-%{api}.so
%{_libdir}/libwx_gtk2u_propgrid-%{api}.so
%{_libdir}/libwx_gtk2u_qa-%{api}.so
%{_libdir}/libwx_gtk2u_ribbon-%{api}.so
%{_libdir}/libwx_gtk2u_richtext-%{api}.so
%{_libdir}/libwx_gtk2u_stc-%{api}.so
%{_libdir}/libwx_gtk2u_xrc-%{api}.so
%{_libdir}/wx/config/gtk2-unicode-%{api}
%{_libdir}/wx/include/gtk2-unicode-%{api}/wx/setup.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

# fix plugin dir for 64-bit
sed -i -e 's|/lib|/%{_lib}|' src/unix/stdpaths.cpp

%build
%config_update
%define Werror_cflags %nil
# --disable-optimise prevents our $RPM_OPT_FLAGS being overridden
# (see OPTIMISE in configure).
# this code dereferences type-punned pointers like there's no tomorrow.
CFLAGS="%{optflags} -fno-strict-aliasing"
CXXFLAGS="%{optflags} -fno-strict-aliasing"
LIBS="$LIBS -lpthread"

CONF_FLAG="\
	--disable-catch_segvs	\
	--disable-optimise	\
	--disable-option-checking	\
	--enable-calendar	\
	--enable-controls	\
	--enable-dataviewctrl	\
	--enable-dirdlg		\
	--enable-fraction	\
	--enable-graphics_ctx	\
	--enable-grid		\
	--enable-intl		\
	--enable-ipv6		\
	--enable-mediactrl	\
	--enable-msgdlg		\
	--enable-numberdlg	\
	--enable-splash		\
	--enable-stc		\
	--enable-tabdialog	\
	--enable-textdlg	\
	--enable-unicode	\
	--enable-wave		\
	--enable-wxprintfv	\
	--enable-xresources	\
	--with-libjpeg=sys	\
	--with-libpng=sys	\
	--with-libtiff=sys	\
	--with-opengl		\
	--without-debug_flag	\
	--without-debug_info	\
	--without-odbc		\
	--with-sdl		\
	--with-zlib=sys"

export CONFIGURE_TOP=..

%if %{with compat}
mkdir build_gtk2
pushd build_gtk2
%configure \
	$CONF_FLAG		\
	--disable-webview	\
	--with-gtk=2
%make
popd
%endif

mkdir build_gtk3
pushd build_gtk3
%configure \
	$CONF_FLAG		\
	--with-gtk=3 
%make
make -C ../locale allmo
popd

%install
%if %{with compat}
pushd build_gtk2
%makeinstall_std
mv %{buildroot}/%{_bindir}/wx-config %{buildroot}/%{_bindir}/wx-config-gtk2
popd
%endif

pushd build_gtk3
%makeinstall_std
popd

%find_lang wxstd-%{api}
#%%find_lang wxmsw-%{api}
#cat wxmsw-%{api}.lang >> wxstd-%{api}.lang

# fix path in headers files
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include \"\(wx[a-zA-Z0-9_/.]*\)\":include <\1>:' \{\} \;
find %{buildroot}%{_includedir}/wx-%{api} -type f -exec sed -i 's:include <wx/:include <wx-%{api}/wx/:' \{\} \;
ln -s ../../../%{_lib}/wx/include/gtk3-unicode-%{api}/wx/setup.h %{buildroot}%{_includedir}/wx-%{api}/wx/setup.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20209 |21mr|x11-apps-1.0.0-22
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 apps
Name:		x11-apps
Version:	1.0.0
Release:	22
License:	MIT
Group:		Development/X11
Requires:	bitmap
Requires:	oclock
Requires:	xbiff
Requires:	xcalc
Requires:	xclipboard
Requires:	xclock
# Don't require xedit because it installs whole xemacs and that's an overkill
#Requires:	xedit
Requires:	xeyes
Requires:	xfd
Requires:	xfontsel
Requires:	xgc
Requires:	xload
Requires:	xlogo
Requires:	xman
Requires:	xmag
Requires:	xmessage
Requires:	xwd
Requires:	xwud
BuildArch:	noarch

%description
X11 apps.

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20210 |21mr|x11-data-bitmaps-1.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		x11-data-bitmaps
Version:	1.1.2
Release:	2
Summary:	Bitmaps that are shared between X applications
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/data/xbitmaps-%{version}.tar.bz2
License:	MIT
BuildRequires:	x11-util-macros	>= 1.1.5
BuildArch:	noarch

%description
Bitmaps that are shared between X applications

%prep
%setup -q -n xbitmaps-%{version}

%build
%configure \
	--build=i586-%{_target_vendor}-%{_target_os}%{?_gnu} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%pre 
if [ -h %{_includedir}/X11 ]; then
	rm -f %{_includedir}/X11
fi

%files
%doc COPYING
%dir %{_includedir}/X11/bitmaps
%{_includedir}/X11/bitmaps/*
%{_datadir}/pkgconfig/xbitmaps.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20211 |21mr|x11-data-cursor-themes-1.0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 Cursor Themes
Name:		x11-data-cursor-themes
Version:	1.0.6
Release:	2
License:	MIT
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/data/xcursor-themes-%{version}.tar.bz2
Source1:	wonderland-cursor.tar.bz2
Source2:	index.theme
Source3:	contrastlarge.tar.bz2
BuildRequires:	xcursorgen >= 1.0.0
BuildRequires:	pkgconfig(xcursor) >= 1.1.5.2
BuildRequires:	pkgconfig(xorg-macros)
BuildArch:	noarch

%description
Cursor themes for X11 environment.

%files
# contrastlarge theme files have +x permission, undo this:
%doc ChangeLog
%dir %{_datadir}/icons/default
%dir %{_datadir}/icons/handhelds
%dir %{_datadir}/icons/redglass
%dir %{_datadir}/icons/whiteglass
%dir %{_datadir}/icons/wonderland
%dir %{_datadir}/icons/contrastlarge
%{_datadir}/icons/default/*
%{_datadir}/icons/handhelds/*
%{_datadir}/icons/redglass/*
%{_datadir}/icons/whiteglass/*
%{_datadir}/icons/wonderland/*
%{_datadir}/icons/contrastlarge/*

#----------------------------------------------------------------------------

%prep
%setup -q -n xcursor-themes-%{version}

%build
./configure \
	--build=i586-%{_target_vendor}-%{_target_os}%{?_gnu} \
	--prefix=%{_prefix}
%make

%install
%makeinstall_std

tar xvj -C %{buildroot}%{_iconsdir} -f %{SOURCE1}
tar xvj -C %{buildroot}%{_iconsdir} -f %{SOURCE3}
mkdir -p %{buildroot}/%{_iconsdir}/default
install -m 644 %{SOURCE2} %{buildroot}/%{_iconsdir}/default

# The contrastlarge "xterm" cursor is completly black, making it useless on a
# dark background, but the theme authors provide an alternative:
# xterm_extra_large
mv %{buildroot}/%{_iconsdir}/contrastlarge/cursors/xterm_extra_large %{buildroot}/%{_iconsdir}/contrastlarge/cursors/xterm

# Create Hash symlinks
THEMES="contrastlarge handhelds redglass whiteglass wonderland"
LINKS="00008160000006810000408080010102=sb_v_double_arrow \
028006030e0e7ebffc7f7070c0600140=sb_h_double_arrow \
03b6e0fcb3499374a867c041f52298f0=crossed_circle \
08e8e1c95fe2fc01f976f1e063a24ccd=left_ptr_watch \
14fef782d02440884392942c11205230=h_double_arrow	\
2870a09082c103050810ffdffffe0204=v_double_arrow \
3ecb610c1bf2410f44200f48c40d3599=left_ptr_watch \
4498f0e0c1937ffe01fd06f973665830=fleur \
5c6cd98b3f3ebcb1f9c7f1c204630408=question_arrow \
6407b0e94181790501fd1e167b474872=copy \
640fb0e74195791501fd1ed57b41487f=link \
9d800788f1b08800ae810202380a0822=hand1 \
c7088f0f3e6c8088236ef8e1e3e70000=top_left_corner \
d9ce0ab605698f320427677b458ad60b=question_arrow \
e29285e634086352946a0e7090d73106=hand2 \
fcf1c3c7cd4491d801f1e1c78f100000=top_right_corner"

for theme in $THEMES; do
    pushd %{buildroot}/%{_iconsdir}/$theme/cursors

    for link in $LINKS; do
	from=`echo $link | cut -d= -f1`
	to=`echo $link | cut -d= -f2`

	if [ -e "$to" ] && [ ! -e "$from" ]; then
	   ln -s "$to" "$from"
	fi
    done

    popd
done

# For anaconda in LXQt
ln -sf left_ptr %{buildroot}%{_iconsdir}/wonderland/cursors/arrow

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20212 |21mr|x11-docs-1.7.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 documentation
Name:		x11-docs
Version:	1.7.1
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/doc/xorg-docs-%{version}.tar.bz2
BuildRequires:	pkgconfig(xorg-macros)
BuildArch:	noarch

%description
Xorg X11 documentation.

%files
%{_datadir}/doc/xorg-docs/
%{_mandir}/man7/Consortium.7.*
%{_mandir}/man7/Standards.7.*
%{_mandir}/man7/X.7.*
%{_mandir}/man7/XOrgFoundation.7.*
%{_mandir}/man7/XProjectTeam.7.*
%{_mandir}/man7/Xsecurity.7.*

#----------------------------------------------------------------------------

%prep
%setup -q -n xorg-docs-%{version}

%build
%configure	\
	--build=i586-%{_target_vendor}-%{_target_os}%{?_gnu} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20213 |21mr|x11-driver-input-2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 input drivers
Name:		x11-driver-input
Version:	2.0
Release:	8
License:	GPLv2+
Group:		System/X11

Recommends:	x11-driver-input-libinput
Recommends:	x11-driver-input-evdev
Recommends:	x11-driver-input-synaptics
%ifarch %{ix86} %{x86_64}
Recommends:	x11-driver-input-vmmouse
%endif
Recommends:	x11-driver-input-wacom

%description
Meta-package that requires useful X11 input drivers.

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20214 |21mr|x11-driver-input-evdev-2.10.6-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org input driver for Linux generic event devices
Name:		x11-driver-input-evdev
Version:	2.10.6
Release:	3
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	ftp://ftp.x.org/pub/individual/driver/xf86-input-evdev-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(mtdev)
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pkgconfig(udev) >= 186
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires xinput)
Obsoletes:	x11-driver-input-evtouch < 0.8.8-12

%description
Evdev is an Xorg input driver for Linux's generic event devices.
It therefore supports all input devices that the kernel knows about,
including most mice and keyboards.

%files
%doc COPYING
%{_libdir}/xorg/modules/input/evdev_drv.so
%{_mandir}/man4/evdev.*
%{_datadir}/X11/xorg.conf.d/10-evdev.conf

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/X11

%description devel
Development files for %{name}.

%files devel
%{_includedir}/xorg/evdev-properties.h
%{_libdir}/pkgconfig/xorg-evdev.pc

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-input-evdev-%{version}
%apply_patches

%build
autoreconf --force -v --install
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20215 |21mr|x11-driver-input-libinput-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	Xorg X11 libinput input driver
Name:		x11-driver-input-libinput
Version:	1.1.0
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	ftp://ftp.x.org/pub/individual/driver/xf86-input-libinput-%{version}.tar.bz2

BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pkgconfig(libinput) >= 1.8
BuildRequires:	pkgconfig(udev)

Requires:	x11-server-common %(xserver-sdk-abi-requires xinput)
Requires:	x11-data-xkbdata

%description
A generic input driver for the X.Org X11 X server based on libinput,
supporting all devices.


%files
%doc COPYING
%{_libdir}/xorg/modules/input/libinput_drv.so
%{_mandir}/man4/libinput.4*
%{_datadir}/X11/xorg.conf.d/40-libinput.conf

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/X11

%description devel
Development files for %{name}.

%files devel
%{_includedir}/xorg/libinput-properties.h
%{_libdir}/pkgconfig/xorg-libinput.pc

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-input-libinput-%{version}
%apply_patches

%build
autoreconf --force -v --install
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20216 |21mr|x11-driver-input-synaptics-1.9.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define udevrulesdir /lib/udev/rules.d

Summary:	X.org input driver for Synaptics touchpad devices
Name:		x11-driver-input-synaptics
Version:	1.9.1
Release:	3
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-input-synaptics-%{version}.tar.bz2
#Source0:	xf86-input-synaptics-%{gitdate}-git%{gitrev}.tar.xz
Source3:	50-synaptics.conf
Source4:	70-touchpad-quirks.rules

Patch0:		synaptics-always-enable-tapping.patch

BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(libevdev)
Requires:	x11-server-common %(xserver-sdk-abi-requires xinput)
%rename synaptics

%description
Synaptics touchpad devices are extremely popular on laptops and this driver
is an MIT licensed alternative to the older GPL synaptics driver which is
no longer actively maintained.

%files
%doc COPYING README
%{_bindir}/synclient
%{_bindir}/syndaemon
%{_libdir}/xorg/modules/input/synaptics_drv.so
%{_mandir}/man1/synclient.*
%{_mandir}/man1/syndaemon.*
%{_mandir}/man4/synaptics.*
%{_datadir}/X11/xorg.conf.d/50-synaptics.conf
%{udevrulesdir}/70-touchpad-quirks.rules

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for programing with the xorg synaptics driver
Group:		Development/C

%description devel
Development files for programing with the xorg synaptics driver.

%files devel
%{_includedir}/xorg/synaptics-properties.h
%{_libdir}/pkgconfig/xorg-synaptics.pc

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-input-synaptics-%{version}
%apply_patches

%build
autoreconf -v --install --force
%configure --with-udev-rules-dir=%{udevrulesdir}
%make

%install
%makeinstall_std

# Remove the template of the .conf file for now, we provide a custom one.
rm -f %{buildroot}/%{_datadir}/X11/xorg.conf.d/70-synaptics.conf

install -d %{buildroot}/lib/udev/rules.d/
install -m 0644 %{SOURCE4} %{buildroot}/lib/udev/rules.d/70-touchpad-quirks.rules

install -d %{buildroot}/%{_datadir}/X11/xorg.conf.d
install -m 0644 %{SOURCE3} %{buildroot}/%{_datadir}/X11/xorg.conf.d/50-synaptics.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20217 |21mr|x11-driver-input-vmmouse-13.1.0-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	Xorg input driver for mice in VMware
Name:		x11-driver-input-vmmouse
Version:	13.1.0
Release:	12
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-input-vmmouse-%{version}.tar.bz2
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(udev)
Requires:	x11-server-common %(xserver-sdk-abi-requires xinput)
ExclusiveArch:	%{ix86} x86_64

%description
The VMMouse driver enables support for the special VMMouse protocol
that is provided by VMware virtual machines to give absolute pointer
positioning.

Installing the driver will improve the user experience when using the
mouse to interact with the guest operating system. In particular, use of
the driver improves mouse "lag", provides mouse speed and acceleration
consistent with the user's host operating system, and enables the
auto-grab/ungrab feature in VMware products without requiring the VMware
toolbox application.

%files
%{_datadir}/hal/fdi/policy/20thirdparty/11-x11-vmmouse.fdi
%{_libdir}/hal/hal-probe-vmmouse
%{_libdir}/xorg/modules/input/vmmouse_drv.so
%{_bindir}/vmmouse_detect
%{_mandir}/man1/vmmouse_detect.*
%{_mandir}/man4/vmmouse.*
/lib/udev/rules.d/69-xorg-vmmouse.rules
%{_datadir}/X11/xorg.conf.d/50-vmmouse.conf

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-input-vmmouse-%{version}

%build
autoreconf -fvi
%configure \
	--disable-static \
	--disable-silent-rules \
	--with-xorg-conf-dir=%{_datadir}/X11/xorg.conf.d \
	--with-udev-rules-dir=/lib/udev/rules.d
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20218 |21mr|x11-driver-input-wacom-1.0.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org input driver for Wacom tablets
Name:		x11-driver-input-wacom
Version:	1.0.0
Release:	1
Group:		System/X11
License:	GPLv2+
Url:		http://www.x.org/
Source0:	https://github.com/linuxwacom/xf86-input-wacom/archive/xf86-input-wacom-%{version}.tar.bz2
Patch0:		xf86-input-wacom-0.19.0-fix-linking.patch
# Always restart wacom unit. It fixes gdm stuck on some touchscreens
Patch1:		xf86-input-wacom-0.28.0-always-restart.patch
BuildRequires:	pkgconfig(libudev)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xrandr)
Requires:	x11-server-common %(xserver-sdk-abi-requires xinput)
Provides:	linuxwacom = %{version}-%{release}

%description
X.Org X11 wacom input driver for Wacom tablets.

%files
%{_bindir}/xsetwacom
%{_bindir}/isdv4-serial-debugger
%{_bindir}/isdv4-serial-inputattach
%{_libdir}/xorg/modules/input/wacom_drv.so
%{_mandir}/man4/wacom.4*
%{_mandir}/man1/xsetwacom.1*
%{_datadir}/X11/xorg.conf.d/70-wacom.conf
/lib/udev/rules.d/69-input-wacom.rules
%{_unitdir}/wacom-inputattach@.service
#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/X11
License:	MIT

%description devel
Development files for %{name}.

%files devel
%{_includedir}/xorg/*
%{_libdir}/pkgconfig/xorg-wacom.pc

#----------------------------------------------------------------------------

%prep
%autosetup -n xf86-input-wacom-%{version} -p1


%build
mkdir -p m4
autoreconf -fiv

%configure \
	--with-systemd-unit-dir=%{_unitdir} \
	--with-udev-rules-dir=%{_udevrulesdir}
%make

%install
%makeinstall_std
mv %{buildroot}/lib/udev/rules.d/wacom.rules %{buildroot}/lib/udev/rules.d/69-input-wacom.rules

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20219 |21mr|x11-driver-video-2.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 video drivers
Name:		x11-driver-video
Version:	2.0
Release:	8
License:	MIT
Group:		System/X11
%ifarch %{ix86} %{x86_64}
Recommends:	x11-driver-video-amdgpu
Recommends:	x11-driver-video-ati
# VERY old hardware, this package may not work with newest Xorg
#Recommends:	x11-driver-video-openchrome
Recommends:	x11-driver-video-vmware
Recommends:	x11-driver-video-intel
%endif
Recommends:	x11-driver-video-nouveau
Recommends:	x11-driver-video-fbdev
Recommends:	x11-driver-video-qxl
Recommends:	x11-driver-video-vesa

# useful for qemu
Recommends:	x11-driver-video-cirrus

%description
X11 video drivers metapackage. This package contains no files, but
depends on the most common free X.org video drivers.

%files

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20220 |21mr|x11-driver-video-amdgpu-23.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
# Git repo: https://cgit.freedesktop.org/xorg/driver/xf86-video-amdgpu/

# How to prepare the source archive from the git tree:
# $ hash=`git log -1 --format='%h'`
# $ date=`git log -1 --format='%cd' --date=short | tr -d -`
# $ git archive --prefix xf86-video-amdgpu-${date}-git${hash}/ ${hash} \
#	| xz -7e > xf86-video-amdgpu-${date}-git${hash}.tar.xz

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org driver for AMD graphics
Name:		x11-driver-video-amdgpu
Version:	23.0.0
Release:	3
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-amdgpu-%{version}.tar.xz

BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm) >= 2.4.63
BuildRequires:	pkgconfig(libdrm_amdgpu)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(pciaccess)

Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
Recommends:	linux-firmware

%description
%{name} is the X.org driver for AMD graphics.

%files
%doc COPYING README.md
%{_libdir}/xorg/modules/drivers/amdgpu_drv.so
%{_mandir}/man4/amdgpu.*
%{_datadir}/X11/xorg.conf.d/10-amdgpu.conf

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-amdgpu-%{version}

%build
autoreconf -ifv
%configure --disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20221 |21mr|x11-driver-video-ati-19.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org driver for AMD/ATI graphics 
Name:		x11-driver-video-ati
Epoch:		2
Version:	19.1.0
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-ati-%{version}.tar.bz2
#Source0:	xf86-video-ati-%{gitdate}-git%{gitrev}.tar.xz

BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm) >= 2.4.58
BuildRequires:	pkgconfig(libdrm_radeon) >= 2.4.58
BuildRequires:	pkgconfig(udev)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	glamor-devel >= 0.6.0

Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
Recommends:	linux-firmware

%description
x11-driver-video-ati is the X.org driver for AMD/ATI graphics.

%files
%{_datadir}/X11/xorg.conf.d/10-radeon.conf
%{_libdir}/xorg/modules/drivers/radeon_drv.so
%{_libdir}/xorg/modules/drivers/ati_drv.so
%{_mandir}/man4/ati.*
%{_mandir}/man4/radeon.*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-ati-%{version}

%build
autoreconf -ifs
%configure --enable-glamor --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20222 |21mr|x11-driver-video-cirrus-1.5.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org driver for Cirrus Logic
Name:		x11-driver-video-cirrus
Version:	1.5.3
Release:	15
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-cirrus-%{version}.tar.bz2

# Upstream patches
Patch0:		0001-Disable-acceleration-under-qemu.patch
Patch1:		0002-Use-16bpp-when-running-in-virt-and-on-XenSource-gfx.patch
Patch2:		0003-Remove-almost-no-op-setup-functions.patch
Patch3:		0004-Don-t-build-split-alpine-and-laguna-support.patch

BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExcludeArch:	%{armx}

%description
x11-driver-video-cirrus is the X.org driver for Cirrus Logic.

%files
%doc COPYING
%{_libdir}/xorg/modules/drivers/cirrus_drv.so
%{_mandir}/man4/cirrus.*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-cirrus-%{version}
%apply_patches
autoreconf -fiv

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20223 |21mr|x11-driver-video-dummy-0.3.8-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	The X.org dummy video driver
Name:		x11-driver-video-dummy
Version:	0.3.8
Release:	4
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-dummy-%{version}.tar.bz2


BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)

%description
This is a dummy video driver for X.org.

%files
%doc COPYING
%{_libdir}/xorg/modules/drivers/dummy_drv.so

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-dummy-%{version}
%apply_patches

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20224 |21mr|x11-driver-video-fbdev-0.5.0-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org driver for Linux FBDev
Name:		x11-driver-video-fbdev
Version:	0.5.0
Release:	7
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-fbdev-%{version}.tar.bz2
Patch0:		xf86-video-fbdev-0.5.0-no-expression.patch
Patch1:		BGNoneRoot.patch
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)

%description
x11-driver-video-fbdev is the X.org driver for Linux FBDev.

%files
%{_libdir}/xorg/modules/drivers/fbdev_drv.so
%{_mandir}/man4/fbdev.*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-fbdev-%{version}
%apply_patches

%build
autoreconf -vif
%configure	--enable-pciaccess
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20225 |21mr|x11-driver-video-fix-1.0.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Fix for Libreoffice and other bugs on radeon
Name:		x11-driver-video-fix
Version:	1.0.0
Release:	5
License:	GPLv3+
Group:		System/X11
Url:		http://www.rosalab.ru
Source0:	exapixmapsoff.conf

%description
x11-driver-video-fix disables EXA pixmaps on Radeon

%files
%{_sysconfdir}/X11/xorg.conf.d/exapixmapsoff.conf

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d
install -m644 %{SOURCE0} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/exapixmapsoff.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20226 |21mr|x11-driver-video-intel-2.99.917-2.20200526.0
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev 5ca3ac1
%define gitdate 20200526
# Git repo: http://cgit.freedesktop.org/xorg/driver/xf86-video-intel/

# How to prepare the source archive from the git tree:
# $ hash=`git log -1 --format='%h'`
# $ date=`git log -1 --format='%cd' --date=short | tr -d -`
# $ git archive --prefix xf86-video-intel-${date}-git${hash}/ ${hash} \
#       | xz -7e > xf86-video-intel-${date}-git${hash}.tar.xz

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# X.org drivers use symbols from the X server
%global _disable_ld_no_undefined 1

# (anssi) The unversioned symlink of XvMC library must be present in
# %{_libdir} during normal use, as libXvMC uses that name for dlopening.
# Our devel requires finder catches that, hence this exception:
%global __requires_exclude devel\\(.*
%global __provides_exclude devel\\(.*

%define major 1
%define libxvmc %mklibname IntelXvMC %{major}

Summary:	X.org driver for Intel graphics controllers
Name:		x11-driver-video-intel
Version:	2.99.917
Release:	2.%{gitdate}.0
Epoch:		1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
#Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-intel-_{version}.tar.bz2
Source0:	xf86-video-intel-%{gitdate}.tar.bz2
ExclusiveArch:	%{ix86} %{x86_64}
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(udev) >= 186
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcb-util)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xvmc)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(xfont)
BuildRequires:	pkgconfig(xfont2)
BuildRequires:	glamor-devel >= 0.6.0
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
Requires:	udev
Requires:	%{libxvmc} = %{EVRD}

%description
x11-driver-video-intel is the X.org driver for Intel video chipsets.

%files
# the driver
%{_libdir}/xorg/modules/drivers/intel_drv.so
%{_libdir}/libIntelXvMC.so
%{_mandir}/man4/intel.4.*
# intel-backlight-helper
%{_libexecdir}/xf86-video-intel-backlight-helper
%{_datadir}/polkit-1/actions/org.x.xf86-video-intel.backlight-helper.policy

#----------------------------------------------------------------------------

%package -n %{libxvmc}
Summary:	X Library
Group:		System/Libraries
Conflicts:	%{name} < 2.99.905-2

%description -n %{libxvmc}
This package contains a shared library for %{name}.

%files  -n %{libxvmc}
%{_libdir}/libIntelXvMC.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -q -n xf86-video-intel-%{gitdate}
%apply_patches

%build
autoreconf -vfi
%configure \
    --enable-dri \
    --enable-sna \
    --with-default-accel=sna \
    --enable-kms-only \
    --with-default-dri=3

%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20227 |21mr|x11-driver-video-intel-config-modesetting-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 configuration for Intel graphics - enable modesetting driver
Name:		x11-driver-video-intel-config-modesetting
Version:	1.0
Release:	4
License:	GPLv2+
Group:		System/X11
Url:		https://abf.io/import/x11-driver-video-intel-config-modesetting
Source0:	51-intel.conf
Requires:	x11-server-common
Conflicts:	x11-driver-video-intel-config-uxa
Conflicts:	x11-driver-video-intel-config-sna
BuildArch:	noarch

%description
The package provides a configuration file for X11 that enables 
the "modesetting" driver for Intel graphics.The configuration will 
be applied when the X11 server starts the next time.

%files
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/51-intel.conf

#----------------------------------------------------------------------------

%prep
# Nothing to do

%build
# Nothing to do

%install
install -d %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
install -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20228 |21mr|x11-driver-video-intel-config-sna-1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 configuration for Intel graphics - enable sna acceleration
Name:		x11-driver-video-intel-config-sna
Version:	1.0
Release:	2
License:	GPLv2+
Group:		System/X11
Url:		https://abf.io/import/x11-driver-video-intel-config-sna
Source0:	52-intel.conf
Requires:	x11-server-common
Conflicts:	x11-driver-video-intel-config-uxa
Conflicts:	x11-driver-video-intel-config-modesetting
BuildArch:	noarch

%description
This package provides a configuration file for X11 that 
enables sna acceleration for Intel graphics.Configuration 
used the next time you start the X11 server.

%files
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/52-intel.conf

#----------------------------------------------------------------------------

%prep
# Nothing to do

%build
# Nothing to do

%install
install -d %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
install -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20229 |21mr|x11-driver-video-intel-config-uxa-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 configuration for Intel graphics - enable UXA acceleration
Name:		x11-driver-video-intel-config-uxa
Version:	1.0
Release:	6
License:	GPL
Url:		https://abf.io/import/x11-driver-video-intel-config-uxa
Group:		System/X11
Source0:	50-intel.conf
Conflicts:	x11-driver-video-intel-config-sna
Conflicts:	x11-driver-video-intel-config-modesetting
BuildArch:	noarch
ExclusiveArch:	%{ix86} x86_64
Requires:	x11-driver-video-intel


%description
The package provides a configuration file for X11 that enables the older and
slower (but sometimes more reliable) "UXA" acceleration for Intel graphics.
The configuration will be applied when the X11 server starts the next time.


%prep
# Nothing to do

%build
# Nothing to do

%install
install -d %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/
install -m 644 %{SOURCE0} %{buildroot}%{_sysconfdir}/X11/xorg.conf.d/

%files
%config(noreplace) %{_sysconfdir}/X11/xorg.conf.d/50-intel.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20230 |21mr|x11-driver-video-mga-2.0.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

Summary:	X.org driver for Matrox Cards
Name:		x11-driver-video-mga
Version:	2.0.0
Release:	2
Epoch:		2
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-mga-%{version}.tar.bz2
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExcludeArch:	%{armx}

%description
x11-driver-video-mga is the X.org driver for Matrox Cards.

%files
%{_libdir}/xorg/modules/drivers/mga_drv.so
%{_mandir}/man4/mga.*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-mga-%{version}
%apply_patches

%build
autoreconf -fiv
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20231 |21mr|x11-driver-video-nouveau-1.0.17-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	Accelerated open source driver for NVIDIA cards
Name:		x11-driver-video-nouveau
Version:	1.0.17
Release:	3
License:	MIT
Group:		System/X11
Url:		http://nouveau.freedesktop.org/
Source0:	http://xorg.freedesktop.org/archive/individual/driver/xf86-video-nouveau-%{version}.tar.bz2
#Source0:	xf86-video-nouveau-_{gitdate}-git_{gitrev}.tar.xz

BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm) >= 2.4.60
BuildRequires:	pkgconfig(udev) >= 186
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	libdrm-common
%ifarch %{ix86} %{x86_64}
Requires:	kmod(nouveau)
%endif
Requires:	udev
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)

%description
The nouveau project aims to build high-quality, open source drivers
for NVIDIA cards.

%files
%{_libdir}/xorg/modules/drivers/nouveau_drv.so
%{_mandir}/man4/nouveau*

#----------------------------------------------------------------------------

%prep
%setup -q -n xf86-video-nouveau-%{version}


%build
autoreconf -vfi
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20232 |21mr|x11-driver-video-openchrome-0.6.225-0.20200727.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define gitrev ab03de7
%define gitdate 20200727
# Git repo: https://cgit.freedesktop.org/openchrome/xf86-video-openchrome/

# How to prepare the source archive from the git tree:
# $ hash=`git log -1 --format='%h'`
# $ date=`git log -1 --format='%cd' --date=short | tr -d -`
# $ git archive --prefix xf86-video-openchrome-${date}-git${hash}/ ${hash} \
#       | xz -7e > xf86-video-openchrome-${date}-git${hash}.tar.xz

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

# keeping it here just in case someone wants to use the SVN version
# svn co http://svn.openchrome.org/svn/trunk openchrome

# (anssi) The unversioned symlink of XvMC library must be present in
# %{_libdir} during normal use, as libXvMC uses that name for dlopening.
# Our devel requires finder catches that, hence this exception:
%global __requires_exclude devel\\(.*
%global __provides_exclude devel\\(.*

%define major 1
%define libxvmc %mklibname chromeXvMC %{major}
%define libpro %mklibname chromeXvMCPro %{major}

Summary:	X.org driver for Unichrome cards from the OpenChrome project
Name:		x11-driver-video-openchrome
Version:	0.6.225
Release:	0.%{gitdate}.6
Group:		System/X11
License:	MIT
Url:		http://www.openchrome.org
#Source0:	http://xorg.freedesktop.org/archive/individual/driver/xf86-video-openchrome-%{version}.tar.bz2
Source0:	xf86-video-openchrome-%{gitdate}-git%{gitrev}.tar.xz

BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xvmc)
BuildRequires:	pkgconfig(udev)
ExcludeArch:	aarch64
Requires:	%{libxvmc} = %{EVRD}
Requires:	%{libpro} = %{EVRD}
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
Requires:	udev

%description
A free and Open Source video driver for the VIA/S3G UniChrome and UniChrome Pro
graphics chipsets (CLE266, KN400, KM400, K8M800, PM800, CN400, VN800).

%files
%{_libdir}/xorg/modules/drivers/openchrome_drv.so
# These are not devel symlinks
%{_libdir}/libchromeXvMC.so
%{_libdir}/libchromeXvMCPro.so
%{_mandir}/man4/openchrome.*
%{_sbindir}/via_regs_dump

#----------------------------------------------------------------------------

%package -n %{libxvmc}
Summary:	X Library
Group:		System/Libraries
Conflicts:	%{name} < 0.3.1-3

%description -n %{libxvmc}
This package contains a shared library for %{name}.

%files  -n %{libxvmc}
%{_libdir}/libchromeXvMC.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libpro}
Summary:	X Library
Group:		System/Libraries
Conflicts:	%{name} < 0.3.1-3

%description -n %{libpro}
This package contains a shared library for %{name}.

%files  -n %{libpro}
%{_libdir}/libchromeXvMCPro.so.%{major}*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-openchrome-%{gitdate}-git%{gitrev}
%apply_patches


%build
autoreconf -fiv
%configure \
	--disable-static \
	--enable-viaregtool \
	--enable-dri
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20233 |21mr|x11-driver-video-qxl-0.1.5-13.52e975.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 52e975263fe88105d151297768c7ac675ed94122
%define commit_short %(echo %{commit} | head -c6)

%define _disable_ld_now 1
%define _disable_ld_no_undefined 1

Summary:	X.org driver for the QXL virtual GPUs
Name:		x11-driver-video-qxl
Version:	0.1.5
Release:	13.%{commit_short}.1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	https://gitlab.freedesktop.org/xorg/driver/xf86-video-qxl/-/archive/%{commit}/xf86-video-qxl-%{commit}.tar.gz
Patch0:		qxl-libdrm.patch
BuildRequires:	pkgconfig(fontsproto)
BuildRequires:	pkgconfig(pciaccess) >= 0.10
BuildRequires:	pkgconfig(randrproto)
BuildRequires:	pkgconfig(renderproto)
BuildRequires:	pkgconfig(spice-protocol) >= 0.12.0
BuildRequires:	pkgconfig(videoproto)
BuildRequires:	pkgconfig(xf86dgaproto)
BuildRequires:	pkgconfig(xorg-macros) >= 1.4
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xfont)
BuildRequires:	pkgconfig(xfont2)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(udev)
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)

%description
The QXL virtual GPU is found in the RedHat Enterprise
Virtualisation system, and also in the spice project.

%files
%doc COPYING NEWS README*
%{_libdir}/xorg/modules/drivers/qxl_drv.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xf86-video-qxl-%{commit}

%build
autoreconf -fvi
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20234 |21mr|x11-driver-video-vesa-2.5.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# Need to access symbols from the X Server and other dlopen'ed modules
%define _disable_ld_no_undefined 1

Summary:	X.org driver for Generic VESA Cards
Name:		x11-driver-video-vesa
Version:	2.5.0
Release:	2
Group:		System/X11
License:	MIT
Url:		http://xorg.freedesktop.org
Source0:	https://www.x.org/releases/individual/driver/xf86-video-vesa-%{version}.tar.bz2

BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	x11-util-macros
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)
ExcludeArch:	%{armx}

%description
x11-driver-video-vesa is the X.org driver for Generic VESA Cards.

%files
%{_libdir}/xorg/modules/drivers/vesa_drv.so
%{_mandir}/man4/vesa.4*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-vesa-%{version}
%autopatch -p1

%build
%configure
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20235 |21mr|x11-driver-video-vmware-13.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

%define _disable_ld_no_undefined 1

Summary:	X.org driver for VMWare(tm)
Name:		x11-driver-video-vmware
Version:	13.3.0
Release:	6
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/driver/xf86-video-vmware-%{version}.tar.bz2
# Backported from: https://gitlab.freedesktop.org/xorg/driver/xf86-video-vmware.git
Patch0:		0001-Remove-obsolete-B16-B32-tags-in-struct-definitions.patch
Patch1:		0002-vmwgfx-Fix-XVideo-memory-leaks.patch
Patch2:		0003-vmwgfx-Fix-a-memory-leak.patch
Patch3:		0004-vmwgfx-Use-libdrm-to-obtain-the-drm-device-node-name.patch
Patch4:		0005-saa-Make-sure-damage-destruction-happens-at-the-corr.patch
Patch5:		0006-vmwgfx-Fix-invalid-memory-accesses-in-CloseScreen.patch
Patch6:		0007-vmwgfx-Don-t-exceed-the-device-command-size-limit-v3.patch
Patch7:		0008-vmwgfx-Limit-the-number-of-cliprects-in-a-drm-dirtyf.patch
Patch8:		0009-vmwgfx-Limit-the-number-of-cliprects-in-a-drm-presen.patch
Patch9:		0010-vmwgfx-Limit-the-number-of-cliprects-in-a-drm-presen.patch
Patch10:	0011-vmwgfx-Unify-style-in-scanout_update-and-present-fun.patch

Patch11:	xf86-video-vmware-13.3.0-xserver-libpciaccess.patch
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(xatracker)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(udev)
# aarch64 build fail
ExcludeArch:	aarch64
Requires:	x11-server-common %(xserver-sdk-abi-requires videodrv)

%description
x11-driver-video-vmware is the X.org driver for VMWare(tm).

%files
%config(noreplace) %{_sysconfdir}/modprobe.d/vmwgfx.conf
%{_bindir}/vmwarectrl
%{_libdir}/xorg/modules/drivers/vmware_drv.so
%{_mandir}/man4/vmware.*

#----------------------------------------------------------------------------

%prep
%setup -qn xf86-video-vmware-%{version}
%apply_patches


%build
autoreconf -vfi
%configure --enable-vmwarectrl-client
%make

%install
%makeinstall_std

# XXX: this should ultimately rather be handled by ie. XFdrake
install -d %{buildroot}%{_sysconfdir}/modprobe.d
tee > %{buildroot}%{_sysconfdir}/modprobe.d/vmwgfx.conf << EOF
options vmwgfx enable_fbdev=1
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20236 |21mr|x11-font-adobe-100dpi-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font adobe-100dpi
Name:		x11-font-adobe-100dpi
Version:	1.0.3
Release:	14
License:	MIT-like
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-adobe-100dpi-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
Conflicts:	xorg-x11-100dpi-fonts <= 6.9.0
BuildArch:	noarch

%description
Xorg X11 font adobe-100dpi.

%files
%doc COPYING
%{_datadir}/fonts/100dpi/cour*.pcf.gz
%{_datadir}/fonts/100dpi/helv*
%{_datadir}/fonts/100dpi/ncen*
%{_datadir}/fonts/100dpi/symb*
%{_datadir}/fonts/100dpi/tim*

%post
mkfontscale %{_datadir}/fonts/100dpi
mkfontdir %{_datadir}/fonts/100dpi

%postun
mkfontscale %{_datadir}/fonts/100dpi
mkfontdir %{_datadir}/fonts/100dpi

#----------------------------------------------------------------------------

%prep
%setup -qn font-adobe-100dpi-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/100dpi

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/100dpi/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/100dpi/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20237 |21mr|x11-font-adobe-75dpi-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font adobe-75dpi
Name:		x11-font-adobe-75dpi
Version:	1.0.3
Release:	13
License:	MIT-like
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-adobe-75dpi-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
Conflicts:	xorg-x11-75dpi-fonts <= 6.9.0
BuildArch:	noarch

%description
Xorg X11 font adobe-75dpi.

%files
%doc COPYING
%{_datadir}/fonts/75dpi/cour*
%{_datadir}/fonts/75dpi/helv*
%{_datadir}/fonts/75dpi/ncen*
%{_datadir}/fonts/75dpi/symb*
%{_datadir}/fonts/75dpi/tim*

%post
mkfontscale %{_datadir}/fonts/75dpi
mkfontdir %{_datadir}/fonts/75dpi

%postun
mkfontscale %{_datadir}/fonts/75dpi
mkfontdir %{_datadir}/fonts/75dpi

#----------------------------------------------------------------------------

%prep
%setup -q -n font-adobe-75dpi-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/75dpi

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/75dpi/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/75dpi/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20238 |21mr|x11-font-alias-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font alias
Name:		x11-font-alias
Version:	1.0.3
Release:	14
License:	MIT-like
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-alias-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	x11-font-util
Requires(post):	mkfontdir
Requires(post):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font aliases.

%files
%dir %{_datadir}/fonts/misc
%dir %{_datadir}/fonts/100dpi
%dir %{_datadir}/fonts/75dpi
%dir %{_datadir}/fonts/cyrillic
%dir %{_datadir}/fonts/OTF
%dir %{_datadir}/fonts/Speedo
%dir %{_datadir}/fonts/TTF
%dir %{_datadir}/fonts/Type1
# XXX: this may be fragmented inside individual
# x11 fontpackages, but it's OK by now
%{_sysconfdir}/X11/fontpath.d/misc:unscaled:pri=10
%{_sysconfdir}/X11/fontpath.d/75dpi:unscaled:pri=20
%{_sysconfdir}/X11/fontpath.d/100dpi:unscaled:pri=30
%{_sysconfdir}/X11/fontpath.d/cyrillic:pri=40
%{_sysconfdir}/X11/fontpath.d/OTF:pri=40
%{_sysconfdir}/X11/fontpath.d/Speedo:pri=40
%{_sysconfdir}/X11/fontpath.d/TTF:pri=40
%{_sysconfdir}/X11/fontpath.d/Type1:pri=40
%{_datadir}/fonts/100dpi/fonts.alias
%{_datadir}/fonts/75dpi/fonts.alias
%{_datadir}/fonts/cyrillic/fonts.alias
%{_datadir}/fonts/misc/fonts.alias
# fonts.dir and fonts.scale files
%{_datadir}/fonts/100dpi/fonts.dir
%{_datadir}/fonts/100dpi/fonts.scale
%{_datadir}/fonts/75dpi/fonts.dir
%{_datadir}/fonts/75dpi/fonts.scale
%{_datadir}/fonts/cyrillic/fonts.dir
%{_datadir}/fonts/cyrillic/fonts.scale
%{_datadir}/fonts/misc/fonts.dir
%{_datadir}/fonts/misc/fonts.scale
%{_datadir}/fonts/OTF/fonts.dir
%{_datadir}/fonts/OTF/fonts.scale
%{_datadir}/fonts/Speedo/fonts.dir
%{_datadir}/fonts/Speedo/fonts.scale
%{_datadir}/fonts/TTF/fonts.dir
%{_datadir}/fonts/TTF/fonts.scale
%{_datadir}/fonts/Type1/fonts.dir
%{_datadir}/fonts/Type1/fonts.scale

%post
for dir in 100dpi 75dpi cyrillic misc OTF Speedo TTF Type1; do
    cd %{_datadir}/fonts/$dir
    mkfontscale
    mkfontdir
done

#----------------------------------------------------------------------------

%prep
%setup -qn font-alias-%{version}

%build
%config_update
%configure \
	--prefix=%{_prefix} \
	--with-fontrootdir=%{_datadir}/fonts

%make

%install
%makeinstall_std

# create empty ghost files
for dir in 100dpi 75dpi cyrillic misc OTF Speedo TTF Type1; do
	mkdir -p %{buildroot}%{_datadir}/fonts/$dir
	touch %{buildroot}%{_datadir}/fonts/$dir/fonts.{dir,scale}
done

# fontpath.d symlinks
mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d/
ln -s ../../..%{_datadir}/fonts/misc \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/misc:unscaled:pri=10
ln -s ../../..%{_datadir}/fonts/75dpi \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/75dpi:unscaled:pri=20
ln -s ../../..%{_datadir}/fonts/100dpi \
	%{buildroot}%{_sysconfdir}/X11/fontpath.d/100dpi:unscaled:pri=30
for dir in cyrillic OTF Speedo TTF Type1; do
	ln -s ../../..%{_datadir}/fonts/$dir \
		%{buildroot}%{_sysconfdir}/X11/fontpath.d/$dir:pri=40
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20239 |21mr|x11-font-arabic-misc-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font arabic-misc
Name:		x11-font-arabic-misc
Version:	1.0.3
Release:	14
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-arabic-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font arabic-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/arabic24.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-arabic-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20240 |21mr|x11-font-bh-100dpi-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font bh-100dpi
Name:		x11-font-bh-100dpi
Version:	1.0.3
Release:	13
# We may modify the software, but then we won't be able to use
# "OPEN LOOK" or "Lucida" trademarks. See #38627
License:	Lucida
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-bh-100dpi-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font bh-100dpi.

%files
%doc COPYING
%{_datadir}/fonts/100dpi/lu*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/100dpi
mkfontdir %{_datadir}/fonts/100dpi

%postun
mkfontscale %{_datadir}/fonts/100dpi
mkfontdir %{_datadir}/fonts/100dpi

#----------------------------------------------------------------------------

%prep
%setup -qn font-bh-100dpi-%{version}

%build
%configure \
	--prefix=/usr \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/100dpi

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/100dpi/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/100dpi/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20241 |21mr|x11-font-bh-75dpi-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font bh-75dpi
Name:		x11-font-bh-75dpi
Version:	1.0.3
Release:	13
# We may modify the software, but then we won't be able to use
# "OPEN LOOK" or "Lucida" trademarks. See #38627
License:	Lucida
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-bh-75dpi-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font bh-75dpi.

%files
%doc COPYING
%{_datadir}/fonts/75dpi/lu*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/75dpi
mkfontdir %{_datadir}/fonts/75dpi

%postun
mkfontscale %{_datadir}/fonts/75dpi
mkfontdir %{_datadir}/fonts/75dpi

#----------------------------------------------------------------------------

%prep
%setup -qn font-bh-75dpi-%{version}

%build
%configure \
	--prefix=/usr \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/75dpi

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/75dpi/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/75dpi/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20242 |21mr|x11-font-bh-lucidatypewriter-100dpi-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font bh-lucidatypewriter-100dpi
Name:		x11-font-bh-lucidatypewriter-100dpi
Version:	1.0.3
Release:	14
# See #38627 for licensing
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-bh-lucidatypewriter-100dpi-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font bh-lucidatypewriter-100dpi.

%files
%doc COPYING
%{_datadir}/fonts/100dpi/lut*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/100dpi
mkfontdir %{_datadir}/fonts/100dpi

%postun
mkfontscale %{_datadir}/fonts/100dpi
mkfontdir %{_datadir}/fonts/100dpi

#----------------------------------------------------------------------------

%prep
%setup -q -n font-bh-lucidatypewriter-100dpi-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/100dpi

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/100dpi/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/100dpi/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20243 |21mr|x11-font-bh-lucidatypewriter-75dpi-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font bh-lucidatypewriter-75dpi
Name:		x11-font-bh-lucidatypewriter-75dpi
Version:	1.0.3
Release:	14
# See #38627 for licensing
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-bh-lucidatypewriter-75dpi-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font bh-lucidatypewriter-75dpi.

%files
%doc COPYING
%{_datadir}/fonts/75dpi/lut*

%post
mkfontscale %{_datadir}/fonts/75dpi
mkfontdir %{_datadir}/fonts/75dpi

%postun
mkfontscale %{_datadir}/fonts/75dpi
mkfontdir %{_datadir}/fonts/75dpi

#----------------------------------------------------------------------------

%prep
%setup -q -n font-bh-lucidatypewriter-75dpi-%{version}

%build
%configure \
	--prefix=/usr \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/75dpi

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/75dpi/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/75dpi/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20244 |21mr|x11-font-bitstream-100dpi-1.0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font bitstream-100dpi
Name:		x11-font-bitstream-100dpi
Version:	1.0.3
Release:	12
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-bitstream-100dpi-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font bitstream-100dpi.

%files
%doc COPYING
%{_datadir}/fonts/100dpi/char*.pcf.gz
%{_datadir}/fonts/100dpi/tech*.pcf.gz
%{_datadir}/fonts/100dpi/term*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/100dpi
mkfontdir %{_datadir}/fonts/100dpi

%postun
mkfontscale %{_datadir}/fonts/100dpi
mkfontdir %{_datadir}/fonts/100dpi

#----------------------------------------------------------------------------

%prep
%setup -qn font-bitstream-100dpi-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/100dpi

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/100dpi/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/100dpi/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20245 |21mr|x11-font-bitstream-75dpi-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font bitstream-75dpi
Name:		x11-font-bitstream-75dpi
Version:	1.0.3
Release:	14
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-bitstream-75dpi-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font bitstream-75dpi.

%files
%doc COPYING
%{_datadir}/fonts/75dpi/char*.pcf.gz
%{_datadir}/fonts/75dpi/tech*.pcf.gz
%{_datadir}/fonts/75dpi/term*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/75dpi
mkfontdir %{_datadir}/fonts/75dpi

%postun
mkfontscale %{_datadir}/fonts/75dpi
mkfontdir %{_datadir}/fonts/75dpi

#----------------------------------------------------------------------------

%prep
%setup -qn font-bitstream-75dpi-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/75dpi

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/75dpi/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/75dpi/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20246 |21mr|x11-font-bitstream-speedo-1.0.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-bitstream-speedo
Version: 1.0.2
Release: 10
Summary: Xorg X11 font bitstream-speedo
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-bitstream-speedo-%{version}.tar.bz2
License: MIT
BuildArch: noarch
BuildRequires: fontconfig
BuildRequires: x11-font-util >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1
Conflicts: xorg-x11 <= 6.9.0
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font bitstream-speedo

%prep
%setup -q -n font-bitstream-speedo-%{version}

%build
%configure --prefix=/usr --x-includes=%{_includedir}\
	    --x-libraries=%{_libdir} --with-fontdir=%_datadir/fonts/Speedo

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/Speedo/fonts.dir
rm -f %{buildroot}%_datadir/fonts/Speedo/fonts.scale

%post
mkfontscale %_datadir/fonts/Speedo
mkfontdir %_datadir/fonts/Speedo

%postun
mkfontscale %_datadir/fonts/Speedo
mkfontdir %_datadir/fonts/Speedo

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%dir %_datadir/fonts/Speedo 
%_datadir/fonts/Speedo/font0*.spd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20247 |21mr|x11-font-bitstream-type1-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font bitstream-type1
Name:		x11-font-bitstream-type1
Version:	1.0.3
Release:	14
License:	MIT-like
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-bitstream-type1-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font bitstream-type1.

%files
%doc COPYING
%{_datadir}/fonts/Type1/c0*

%post
mkfontscale %{_datadir}/fonts/Type1
mkfontdir %{_datadir}/fonts/Type1

%postun
mkfontscale %{_datadir}/fonts/Type1
mkfontdir %{_datadir}/fonts/Type1

#----------------------------------------------------------------------------

%prep
%setup -qn font-bitstream-type1-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/Type1

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/Type1/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/Type1/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20248 |21mr|x11-font-cronyx-cyrillic-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font cronyx-cyrillic
Name:		x11-font-cronyx-cyrillic
Version:	1.0.3
Release:	13
License:	MIT-like
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-cronyx-cyrillic-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font cronyx-cyrillic.

%files
%doc COPYING
%{_datadir}/fonts/cyrillic/crox*.pcf.gz
%{_datadir}/fonts/cyrillic/koi*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/cyrillic
mkfontdir %{_datadir}/fonts/cyrillic

%postun
mkfontscale %{_datadir}/fonts/cyrillic
mkfontdir %{_datadir}/fonts/cyrillic

#----------------------------------------------------------------------------

%prep
%setup -qn font-cronyx-cyrillic-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/cyrillic

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/cyrillic/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/cyrillic/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20249 |21mr|x11-font-cursor-misc-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font cursor-misc
Name:		x11-font-cursor-misc
Version:	1.0.3
Release:	13
# See #38627 for licensing
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-cursor-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font cursor-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/cursor.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-cursor-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20250 |21mr|x11-font-cyrillic-1.0.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 fonts cyrillic
Name:		x11-font-cyrillic
Version:	1.0.0
Release:	20
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Requires:	x11-font-alias
Requires:	x11-font-cronyx-cyrillic
Requires:	x11-font-misc-cyrillic
Requires:	x11-font-screen-cyrillic
Requires:	x11-font-winitzki-cyrillic
BuildArch:	noarch

%description
The Cyrillic fonts included with Xorg. Those who use a language requiring the
Cyrillic character set should install this package.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20251 |21mr|x11-font-daewoo-misc-1.0.3-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font daewoo-misc
Name:		x11-font-daewoo-misc
Version:	1.0.3
Release:	15
# See #38627 for licensing
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-daewoo-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font daewoo-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/hangl*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-daewoo-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20252 |21mr|x11-font-dec-misc-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font dec-misc
Name:		x11-font-dec-misc
Version:	1.0.3
Release:	13
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-dec-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font dec-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/deccurs.pcf.gz
%{_datadir}/fonts/misc/decsess.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-dec-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20253 |21mr|x11-font-encodings-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font encodings
Name:		x11-font-encodings
Version:	1.0.5
Release:	1
License:	Public Domain
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/encodings-%{version}.tar.bz2
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
BuildArch:	noarch

%description
This package contains the encodings that map to specific characters.

%files
%dir %{_datadir}/fonts/encodings
%{_datadir}/fonts/encodings/*

%post
mkfontdir -n -e %{_datadir}/fonts/encodings /usr/share/fonts/encodings

%postun
mkfontdir -n -e %{_datadir}/fonts/encodings /usr/share/fonts/encodings

#----------------------------------------------------------------------------

%prep
%setup -qn encodings-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir} \
	--with-encodingsdir=%{_datadir}/fonts/encodings

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20254 |21mr|x11-font-isas-misc-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font isas-misc
Name:		x11-font-isas-misc
Version:	1.0.3
Release:	14
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-isas-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font isas-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/gb*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-isas-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20255 |21mr|x11-font-jis-misc-1.0.3-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font jis-misc
Name:		x11-font-jis-misc
Version:	1.0.3
Release:	14
# See #38627 for licensing
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-jis-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.2
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font jis-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/jiskan*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-jis-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20256 |21mr|x11-font-micro-misc-1.0.3-16
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font micro-misc
Name:		x11-font-micro-misc
Version:	1.0.3
Release:	16
License:	Public Domain
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-micro-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font micro-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/micro.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-micro-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20257 |21mr|x11-font-misc-1.0.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 misc fonts
Name:		x11-font-misc
Version:	1.0.0
Release:	21
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Requires:	x11-font-arabic-misc
Requires:	x11-font-cursor-misc
Requires:	x11-font-daewoo-misc
Requires:	x11-font-dec-misc
Requires:	x11-font-isas-misc
Requires:	x11-font-jis-misc
Requires:	x11-font-micro-misc
Requires:	x11-font-misc-misc
Requires:	x11-font-mutt-misc
Requires:	x11-font-schumacher-misc
Requires:	x11-font-sony-misc
Requires:	x11-font-sun-misc
BuildArch:	noarch

%description
misc fonts for X.org.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20258 |21mr|x11-font-misc-cyrillic-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font misc-cyrillic
Name:		x11-font-misc-cyrillic
Version:	1.0.3
Release:	13
Group:		Development/X11
License:	MIT-like and Public Domain
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-misc-cyrillic-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font misc-cyrillic.

%files
%doc COPYING
%{_datadir}/fonts/cyrillic/koi*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/cyrillic
mkfontdir %{_datadir}/fonts/cyrillic

%postun
mkfontscale %{_datadir}/fonts/cyrillic
mkfontdir %{_datadir}/fonts/cyrillic

#----------------------------------------------------------------------------

%prep
%setup -qn font-misc-cyrillic-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/cyrillic

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/cyrillic/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/cyrillic/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20259 |21mr|x11-font-misc-misc-1.1.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font misc-misc
Name:		x11-font-misc-misc
Version:	1.1.2
Release:	14
License:	Public Domain
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-misc-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font misc-misc.

%files
%{_datadir}/fonts/misc/10x20*.pcf.gz
%{_datadir}/fonts/misc/12x13ja.pcf.gz
%{_datadir}/fonts/misc/18x18*.pcf.gz
%{_datadir}/fonts/misc/4x6*.pcf.gz
%{_datadir}/fonts/misc/5x7*.pcf.gz
%{_datadir}/fonts/misc/5x8*.pcf.gz
%{_datadir}/fonts/misc/6x10*.pcf.gz
%{_datadir}/fonts/misc/6x12*.pcf.gz
%{_datadir}/fonts/misc/6x13*.pcf.gz
%{_datadir}/fonts/misc/6x9*.pcf.gz
%{_datadir}/fonts/misc/7x13*.pcf.gz
%{_datadir}/fonts/misc/7x14*.pcf.gz
%{_datadir}/fonts/misc/8x13*.pcf.gz
%{_datadir}/fonts/misc/9x15*.pcf.gz
%{_datadir}/fonts/misc/9x18*.pcf.gz
%{_datadir}/fonts/misc/k14.pcf.gz
%{_datadir}/fonts/misc/nil2.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-misc-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20260 |21mr|x11-font-mutt-misc-1.0.3-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font mutt-misc
Name:		x11-font-mutt-misc
Version:	1.0.3
Release:	13
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-mutt-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font mutt-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/cu*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-mutt-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20261 |21mr|x11-font-schumacher-misc-1.1.2-14
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font schumacher-misc
Name:		x11-font-schumacher-misc
Version:	1.1.2
Release:	14
License:	MIT-like
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-schumacher-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font schumacher-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/cl*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-schumacher-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20262 |21mr|x11-font-screen-cyrillic-1.0.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font screen-cyrillic
Name:		x11-font-screen-cyrillic
Version:	1.0.4
Release:	13
License:	MIT-like
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-screen-cyrillic-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font screen-cyrillic.

%files
%{_datadir}/fonts/cyrillic/screen8x16*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/cyrillic
mkfontdir %{_datadir}/fonts/cyrillic

%postun
mkfontscale %{_datadir}/fonts/cyrillic
mkfontdir %{_datadir}/fonts/cyrillic

#----------------------------------------------------------------------------

%prep
%setup -qn font-screen-cyrillic-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/cyrillic

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/cyrillic/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/cyrillic/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20263 |21mr|x11-font-sony-misc-1.0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font sony-misc
Name:		x11-font-sony-misc
Version:	1.0.3
Release:	12
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-sony-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font sony-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/12x24*.pcf.gz
%{_datadir}/fonts/misc/8x16*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-sony-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20264 |21mr|x11-font-sun-misc-1.0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font sun-misc
Name:		x11-font-sun-misc
Version:	1.0.3
Release:	12
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-sun-misc-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font sun-misc.

%files
%doc COPYING
%{_datadir}/fonts/misc/olcursor.pcf.gz
%{_datadir}/fonts/misc/olgl*.pcf.gz

%post
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

%postun
mkfontscale %{_datadir}/fonts/misc
mkfontdir %{_datadir}/fonts/misc

#----------------------------------------------------------------------------

%prep
%setup -qn font-sun-misc-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/misc

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/misc/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20265 |21mr|x11-font-type1-1.0.0-21
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 fonts type1
Name:		x11-font-type1
Version:	1.0.0
Release:	21
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Requires:	x11-font-bitstream-type1
Requires:	x11-font-xfree86-type1
BuildArch:	noarch
# Fedora compat
Provides:	xorg-x11-fonts-Type1

%description
Type1 fonts for X.org.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20266 |21mr|x11-font-util-1.3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with bootstrap

Summary:	Xorg X11 font utilities
Name:		x11-font-util
Version:	1.3.1
Release:	5
License:	BSD
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-util-%{version}.tar.bz2
BuildRequires:	x11-util-macros >= 1.1.5
%if !%{with bootstrap}
Requires:	bdftopcf
%endif
Requires:	fonttosfnt
Requires:	fslsfonts
Requires:	fstobdf
Requires:	mkfontdir
Requires:	mkfontscale
Requires:	showfont
Requires:	xlsfonts

%description
Xorg X11 font utilities.

%files
%dir %{_datadir}/fonts/util
%{_bindir}/bdftruncate
%{_bindir}/ucs2any
%{_datadir}/aclocal/fontutil.m4
%{_datadir}/fonts/util/*
%{_libdir}/pkgconfig/fontutil.pc
%{_mandir}/man1/bdftruncate.*
%{_mandir}/man1/ucs2any.*

#----------------------------------------------------------------------------

%prep
%setup -q -n font-util-%{version}
%apply_patches

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir} \
	--with-mapdir=%{_datadir}/fonts/util

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20267 |21mr|x11-font-winitzki-cyrillic-1.0.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font winitzki-cyrillic
Name:		x11-font-winitzki-cyrillic
Version:	1.0.3
Release:	12
License:	Public Domain
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-winitzki-cyrillic-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font winitzki-cyrillic.

%files
%doc COPYING
%{_datadir}/fonts/cyrillic/proof9x16.pcf.gz

%post
mkfontscale %{_datadir}/fonts/cyrillic
mkfontdir %{_datadir}/fonts/cyrillic

%postun
mkfontscale %{_datadir}/fonts/cyrillic
mkfontdir %{_datadir}/fonts/cyrillic

#----------------------------------------------------------------------------

%prep
%setup -qn font-winitzki-cyrillic-%{version}

%build
%configure \
	--prefix=%{_prefix} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/cyrillic

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/cyrillic/fonts.dir
rm -f %{buildroot}%{_datadir}/fonts/cyrillic/fonts.scale

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20268 |21mr|x11-font-xfree86-type1-1.0.4-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 font xfree86-type1
Name:		x11-font-xfree86-type1
Version:	1.0.4
Release:	13
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/font/font-xfree86-type1-%{version}.tar.bz2
BuildRequires:	fontconfig
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
Requires(post,postun):	mkfontdir
Requires(post,postun):	mkfontscale
BuildArch:	noarch

%description
Xorg X11 font xfree86-type1.

%files
%doc COPYING
%{_datadir}/fonts/Type1/cursor.pfa

%post
mkfontscale %{_datadir}/fonts/Type1
mkfontdir %{_datadir}/fonts/Type1

%postun
mkfontscale %{_datadir}/fonts/Type1
mkfontdir %{_datadir}/fonts/Type1

#----------------------------------------------------------------------------

%prep
%setup -qn font-xfree86-type1-%{version}

%build
%configure \
	--prefix=/usr \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir} \
	--with-fontdir=%{_datadir}/fonts/Type1

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_datadir}/fonts/Type1/fonts.{dir,scale}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20269 |21mr|x11perf-1.6.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		x11perf
Version:	1.6.1
Release:	1
Summary:	X11 server performance comparison program
Group:		Development/X11
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT
 
BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xmu) >= 1.0.0
BuildRequires: pkgconfig(xft)
BuildRequires: x11-util-macros >= 1.0.1

%description
The x11perf program runs one or more performance tests and reports how
fast an X server can execute the tests.

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

%files
%{_bindir}/*
%{_libdir}/X11/x11perfcomp
%{_mandir}/man1/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20270 |21mr|x11-proto-devel-2023.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define xcb_version 1.15.2

%define oldxorgnamedevel %mklibname xorg-x11

Name:		x11-proto-devel
Summary:	Xorg X11 protocol specification headers
Version:	2023.2
Release:	1
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source0:	https://www.x.org/pub/individual/proto/xorgproto-%{version}.tar.xz
Source1:	https://www.x.org/archive/individual/proto/xcb-proto-%{xcb_version}.tar.xz
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libtool
BuildRequires:	meson
BuildRequires:	python
BuildRequires:	x11-util-macros

%description
X.Org X11 Protocol headers.

%files
%{_docdir}/xorgproto/*
%dir %{_includedir}/GL
%{_includedir}/GL/glxint.h
%{_includedir}/GL/glxmd.h
%{_includedir}/GL/glxproto.h
%{_includedir}/GL/glxtokens.h
%dir %{_includedir}/GL/internal
%{_includedir}/GL/internal/glcore.h
%dir %{_includedir}/X11
%{_includedir}/X11/DECkeysym.h
%{_includedir}/X11/HPkeysym.h
%dir %{_includedir}/X11/PM
%{_includedir}/X11/PM/PM.h
%{_includedir}/X11/PM/PMproto.h
%{_includedir}/X11/Sunkeysym.h
%{_includedir}/X11/X.h
%{_includedir}/X11/XF86keysym.h
%{_includedir}/X11/XWDFile.h
%{_includedir}/X11/Xalloca.h
%{_includedir}/X11/Xarch.h
%{_includedir}/X11/Xatom.h
%{_includedir}/X11/Xdefs.h
%{_includedir}/X11/Xfuncproto.h
%{_includedir}/X11/Xfuncs.h
%{_includedir}/X11/Xmd.h
%{_includedir}/X11/Xos.h
%{_includedir}/X11/Xos_r.h
%{_includedir}/X11/Xosdefs.h
%{_includedir}/X11/Xpoll.h
%{_includedir}/X11/Xproto.h
%{_includedir}/X11/Xprotostr.h
%{_includedir}/X11/Xthreads.h
%{_includedir}/X11/Xw32defs.h
%{_includedir}/X11/Xwindows.h
%{_includedir}/X11/Xwinsock.h
%{_includedir}/X11/ap_keysym.h
%dir %{_includedir}/X11/dri
%{_includedir}/X11/dri/xf86dri.h
%{_includedir}/X11/dri/xf86driproto.h
%{_includedir}/X11/dri/xf86dristr.h
%dir %{_includedir}/X11/extensions
%{_includedir}/X11/extensions/applewmconst.h
%{_includedir}/X11/extensions/applewmproto.h
%{_includedir}/X11/extensions/EVI.h
%{_includedir}/X11/extensions/EVIproto.h
%{_includedir}/X11/extensions/Print.h
%{_includedir}/X11/extensions/Printstr.h
%{_includedir}/X11/extensions/XI.h
%{_includedir}/X11/extensions/XI2.h
%{_includedir}/X11/extensions/XI2proto.h
%{_includedir}/X11/extensions/XIproto.h
%{_includedir}/X11/extensions/XKB.h
%{_includedir}/X11/extensions/XKBproto.h
%{_includedir}/X11/extensions/XKBsrv.h
%{_includedir}/X11/extensions/XKBstr.h
%{_includedir}/X11/extensions/XResproto.h
%{_includedir}/X11/extensions/Xeviestr.h
%{_includedir}/X11/extensions/Xv.h
%{_includedir}/X11/extensions/XvMC.h
%{_includedir}/X11/extensions/XvMCproto.h
%{_includedir}/X11/extensions/Xvproto.h
%{_includedir}/X11/extensions/ag.h
%{_includedir}/X11/extensions/agproto.h
%{_includedir}/X11/extensions/bigreqsproto.h
%{_includedir}/X11/extensions/bigreqstr.h
%{_includedir}/X11/extensions/composite.h
%{_includedir}/X11/extensions/compositeproto.h
%{_includedir}/X11/extensions/cup.h
%{_includedir}/X11/extensions/cupproto.h
%{_includedir}/X11/extensions/damageproto.h
%{_includedir}/X11/extensions/damagewire.h
%{_includedir}/X11/extensions/dbe.h
%{_includedir}/X11/extensions/dbeproto.h
%{_includedir}/X11/extensions/dmx.h
%{_includedir}/X11/extensions/dmxproto.h
%{_includedir}/X11/extensions/dpmsconst.h
%{_includedir}/X11/extensions/dpmsproto.h
%{_includedir}/X11/extensions/dri2proto.h
%{_includedir}/X11/extensions/dri2tokens.h
%{_includedir}/X11/extensions/dri3proto.h
%{_includedir}/X11/extensions/evieproto.h
%{_includedir}/X11/extensions/fontcache.h
%{_includedir}/X11/extensions/fontcacheP.h
%{_includedir}/X11/extensions/fontcachstr.h
%{_includedir}/X11/extensions/ge.h
%{_includedir}/X11/extensions/geproto.h
%{_includedir}/X11/extensions/lbx.h
%{_includedir}/X11/extensions/lgewire.h
%{_includedir}/X11/extensions/lbxproto.h
%{_includedir}/X11/extensions/mitmiscconst.h
%{_includedir}/X11/extensions/mitmiscproto.h
%{_includedir}/X11/extensions/multibufconst.h
%{_includedir}/X11/extensions/multibufproto.h
%{_includedir}/X11/extensions/panoramiXproto.h
%{_includedir}/X11/extensions/presentproto.h
%{_includedir}/X11/extensions/presenttokens.h
%{_includedir}/X11/extensions/randr.h
%{_includedir}/X11/extensions/randrproto.h
%{_includedir}/X11/extensions/recordconst.h
%{_includedir}/X11/extensions/recordproto.h
%{_includedir}/X11/extensions/recordstr.h
%{_includedir}/X11/extensions/render.h
%{_includedir}/X11/extensions/renderproto.h
%{_includedir}/X11/extensions/saver.h
%{_includedir}/X11/extensions/saverproto.h
%{_includedir}/X11/extensions/secur.h
%{_includedir}/X11/extensions/securproto.h
%{_includedir}/X11/extensions/shapeconst.h
%{_includedir}/X11/extensions/shapeproto.h
%{_includedir}/X11/extensions/shapestr.h
%{_includedir}/X11/extensions/shm.h
%{_includedir}/X11/extensions/shmproto.h
%{_includedir}/X11/extensions/shmstr.h
%{_includedir}/X11/extensions/syncconst.h
%{_includedir}/X11/extensions/syncproto.h
%{_includedir}/X11/extensions/syncstr.h
%{_includedir}/X11/extensions/windowswm.h
%{_includedir}/X11/extensions/windowswmstr.h
%{_includedir}/X11/extensions/xcalibrateproto.h
%{_includedir}/X11/extensions/xcalibratewire.h
%{_includedir}/X11/extensions/xcmiscproto.h
%{_includedir}/X11/extensions/xcmiscstr.h
%{_includedir}/X11/extensions/xf86bigfont.h
%{_includedir}/X11/extensions/xf86bigfproto.h
%{_includedir}/X11/extensions/xf86bigfstr.h
%{_includedir}/X11/extensions/xf86dga.h
%{_includedir}/X11/extensions/xf86dga1const.h
%{_includedir}/X11/extensions/xf86dga1proto.h
%{_includedir}/X11/extensions/xf86dga1str.h
%{_includedir}/X11/extensions/xf86dgaconst.h
%{_includedir}/X11/extensions/xf86dgaproto.h
%{_includedir}/X11/extensions/xf86dgastr.h
%{_includedir}/X11/extensions/xf86misc.h
%{_includedir}/X11/extensions/xf86mscstr.h
%{_includedir}/X11/extensions/xf86rush.h
%{_includedir}/X11/extensions/xf86rushstr.h
%{_includedir}/X11/extensions/xf86vm.h
%{_includedir}/X11/extensions/xf86vmproto.h
%{_includedir}/X11/extensions/xf86vmstr.h
%{_includedir}/X11/extensions/xfixesproto.h
%{_includedir}/X11/extensions/xfixeswire.h
%{_includedir}/X11/extensions/xtestconst.h
%{_includedir}/X11/extensions/xtestext1const.h
%{_includedir}/X11/extensions/xtestext1proto.h
%{_includedir}/X11/extensions/xtestproto.h
%{_includedir}/X11/extensions/xtrapbits.h
%{_includedir}/X11/extensions/xtrapddmi.h
%{_includedir}/X11/extensions/xtrapdi.h
%{_includedir}/X11/extensions/xtrapemacros.h
%{_includedir}/X11/extensions/xtraplib.h
%{_includedir}/X11/extensions/xtraplibp.h
%{_includedir}/X11/extensions/xtrapproto.h
%{_includedir}/X11/extensions/xwaylandproto.h
%dir %{_includedir}/X11/fonts
%{_includedir}/X11/fonts/FS.h
%{_includedir}/X11/fonts/FSproto.h
%{_includedir}/X11/fonts/font.h
%{_includedir}/X11/fonts/fontproto.h
%{_includedir}/X11/fonts/fontstruct.h
%{_includedir}/X11/fonts/fsmasks.h
%{_includedir}/X11/keysym.h
%{_includedir}/X11/keysymdef.h
%{_datadir}/pkgconfig/applewmproto.pc
%{_datadir}/pkgconfig/bigreqsproto.pc
%{_datadir}/pkgconfig/compositeproto.pc
%{_datadir}/pkgconfig/damageproto.pc
%{_datadir}/pkgconfig/dmxproto.pc
%{_datadir}/pkgconfig/dpmsproto.pc
%{_datadir}/pkgconfig/dri2proto.pc
%{_datadir}/pkgconfig/dri3proto.pc
%{_datadir}/pkgconfig/evieproto.pc
%{_datadir}/pkgconfig/fixesproto.pc
%{_datadir}/pkgconfig/fontcacheproto.pc
%{_datadir}/pkgconfig/fontsproto.pc
%{_datadir}/pkgconfig/glproto.pc
%{_datadir}/pkgconfig/inputproto.pc
%{_datadir}/pkgconfig/kbproto.pc
%{_datadir}/pkgconfig/lg3dproto.pc
%{_datadir}/pkgconfig/presentproto.pc
%{_datadir}/pkgconfig/printproto.pc
%{_datadir}/pkgconfig/randrproto.pc
%{_datadir}/pkgconfig/recordproto.pc
%{_datadir}/pkgconfig/renderproto.pc
%{_datadir}/pkgconfig/resourceproto.pc
%{_datadir}/pkgconfig/scrnsaverproto.pc
%{_datadir}/pkgconfig/trapproto.pc
%{_datadir}/pkgconfig/videoproto.pc
%{_datadir}/pkgconfig/windowswmproto.pc
%{_datadir}/pkgconfig/xcalibrateproto.pc
%{_datadir}/pkgconfig/xcmiscproto.pc
%{_datadir}/pkgconfig/xextproto.pc
%{_datadir}/pkgconfig/xf86bigfontproto.pc
%{_datadir}/pkgconfig/xf86dgaproto.pc
%{_datadir}/pkgconfig/xf86driproto.pc
%{_datadir}/pkgconfig/xf86miscproto.pc
%{_datadir}/pkgconfig/xf86rushproto.pc
%{_datadir}/pkgconfig/xf86vidmodeproto.pc
%{_datadir}/pkgconfig/xineramaproto.pc
%{_datadir}/pkgconfig/xproto.pc
%{_datadir}/pkgconfig/xproxymngproto.pc
%{_datadir}/pkgconfig/xcb-proto.pc
%{_datadir}/pkgconfig/xwaylandproto.pc
%{_datadir}/xcb/*
# xcbgen stuff
%{python3_sitelib}/xcbgen/__init__.py*
%{python3_sitelib}/xcbgen/align.py*
%{python3_sitelib}/xcbgen/error.py*
%{python3_sitelib}/xcbgen/expr.py*
%{python3_sitelib}/xcbgen/matcher.py*
%{python3_sitelib}/xcbgen/state.py*
%{python3_sitelib}/xcbgen/xtypes.py*
%{python3_sitelib}/xcbgen/__pycache__/*

#----------------------------------------------------------------------------

%prep
%setup -q -c x11-proto-devel

%build

pushd xorgproto-%{version}
%meson -Dlegacy=true
%meson_build
popd

tar -xf %{SOURCE1}
pushd xcb-proto-%{xcb_version}
autoreconf -fvi
%configure --without-xmlto
%make
popd

%install
pushd xorgproto-%{version}
%meson_install
popd

pushd xcb-proto-%{xcb_version}
%makeinstall_std
popd

# Moved to libxvmc itself, will be fixed in next release
rm %{buildroot}%{_includedir}/X11/extensions/vldXvMC.h
# Moved to libx11, will be fixed in next release
rm %{buildroot}%{_includedir}/X11/extensions/XKBgeom.h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20271 |21mr|x11-scripts-1.0.1-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Scripts for X
Name:		x11-scripts
Version:	1.0.1
Release:	20
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/scripts-%{version}.tar.bz2
Patch0:		xauth_switch_to_sun-des_bash.patch
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildArch:	noarch

%description
This package mainly provides xon which starts an X program on a remote machine
using rsh, remsh, or rcmd.

%files
%doc COPYING
%{_bindir}/xon
%{_bindir}/fontprop.sh
%{_bindir}/xauth_switch_to_sun-des-1
%{_bindir}/fontname.sh
%{_mandir}/man1/xon.1*

#----------------------------------------------------------------------------

%prep
%setup -qn scripts-%{version}
%patch0 -p1

%build
%configure \
	--build=i586-%{_target_vendor}-%{_target_os}%{?_gnu} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20272 |21mr|x11-server-1.20.14-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# /usr/lib/rpm/brp-python-bytecompile /usr/bin/python 1
# Error compiling '/builddir/build/BUILDROOT/x11-server-1.20.0-1.x86_64/usr/share/x11-server-source/config/fdi2iclass.py'...
#  File "/fdi2iclass.py", line 169
#    print 'Section "InputClass"'
%define _python_bytecompile_build 0
%define _python_bytecompile_errors_terminate_build 0

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# Need this for shared objects that reference X Server, or other modules symbols
%define _disable_ld_no_undefined 1
# Do magic with .rpmsave named links
%define pre_post_trans 1

%bcond_with builddocs
%bcond_with debug
%bcond_without dmx
%bcond_without kdrive
%{?build_selinux}%{?!build_selinux:%bcond_with selinux}

# Alternatives priority for standard libglx.so and mesa libs
%define priority 500

%define moduledir %{_libdir}/xorg/modules

# ABI versions.  Have to keep these manually in sync with the source
# because rpm is a terrible language.  HTFU.
%define ansic_major 0
%define ansic_minor 4
%define videodrv_major 24
# pkg-config --variable abi_videodrv xorg-server
# 24.1
# 1 here is minor
%define videodrv_minor 1
%define xinput_major 24
%define xinput_minor 1
%define extension_major 10
%define extension_minor 0

Summary:	X11 servers
Name:		x11-server
Version:	1.20.14
Release:	11
Epoch:		1
License:	GPLv2+ and MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	https://www.x.org/releases/individual/xserver/xorg-server-%{version}.tar.xz
Source1:	xserver.pamd
Source2:	xvfb-run.sh
Source4:	10-quirks.conf
# from RH/FC:
# for requires generation in drivers
Source30:	xserver-sdk-abi-requires
# for finding & loading nvidia and flgrx drivers:
Source90:	00-modules.conf

Source100:	x11-server.rpmlintrc

# Based on patch from Debian;
# use intel ddx driver only for gen7 and older chipsets;
# Debian defaults to intel instead of modetting on pre-gen4,
# we do it on pre-gen7 due to performance regressions otherwise
# (https://bugzilla.rosalinux.ru/show_bug.cgi?id=9778)
# https://salsa.debian.org/xorg-team/xserver/xorg-server/-/blob/debian-unstable/debian/patches/06_use-intel-only-on-pre-gen4.diff
# https://dgpu-docs.intel.com/devices/hardware-table.html
Patch1: 06_use-intel-only-on-pre-gen7.patch

# Default to xf86-video-modesetting on GeForce 8 and newer
Patch2: 0001-xfree86-use-modesetting-driver-by-default-on-GeForce.patch

# Make X Server start without additional config on Baikal-M SoCs
# https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/481
Patch3:	baikal-automagic.patch

# Switch layout group on release
# Configurable by option `XkbSwitchGroupOnRelease` in `InputClass` section.
# https://bugs.freedesktop.org/show_bug.cgi?id=865
Patch4: bug-865.patch

# Default to va_gl on intel i965 as we use the modesetting drv there
# va_gl should probably just be the default everywhere ?
#Patch21: 0001-xf86-dri2-Use-va_gl-as-vdpau_driver-for-Intel-i965-G.patch
Patch7025:	0001-Always-install-vbe-and-int10-sdk-headers.patch
Patch7026:	0204-dri2-Set-fallback-driver-names-for-Intel-and-AMD-chi.patch

# do not upstream - do not even use here yet
Patch7027:	0001-autobind-GPUs-to-the-screen.patch
Patch7030:	0002-modesetting-Propagate-more-failure-in-drmmode_set_mo.patch
Patch7031:	0003-modesetting-Factor-out-drmmode_target_output.patch
Patch7032:	0004-modesetting-Use-atomic-instead-of-per-crtc-walks-whe.patch
# because the display-managers are not ready yet, do not upstream
Patch10000:	0001-Fedora-hack-Make-the-suid-root-wrapper-always-start-.patch

# OpenMandriva/Mageia patches
# git format-patch --start-number 900 mdv-1.6.4-redhat..mdv-1.6.4-patches
Patch900:	0900-Use-a-X-wrapper-that-uses-pam-and-consolehelper-to-g.patch
Patch901:	0901-Don-t-print-information-about-X-Server-being-a-pre-r.patch
Patch902:	0902-Take-width-into-account-when-choosing-default-mode.patch
Patch903:	0903-LED-behavior-fixes.patch
Patch906:	0906-xfree86-need-to-press-Ctrl-Alt-Bksp-twice-to-termina.patch
Patch907:	0907-Add-nr-argument-for-backwards-compatibility.patch
Patch910:	xorg-1.13.0-link-tirpc.patch
Patch911:	xorg-server-1.16.0-blacklist-driver.patch

# Do not crash if Xv is not initialized (patch from xorg-devel ML)
# The crash happened when v4l was loaded and xv was not registered,
# for example on RV610 with radeon driver
Patch4001:	1001-do-not-crash-if-xv-not-initialized.patch

# (cg) Point the user at the journal rather than a logfile at /dev/null
Patch5001:	point-user-at-journal-rather-than-dev-null.patch
Patch5002:	xorg-server-1.20.2-bug95301.patch

# (tpg) upstream patches from git
Patch6000:	0000-meson-Add-sha1-library-options.patch

# Backported fix for probing non-PCI platform devices on a system with PCI
# (e.g. Pinebook Pro)
Patch6050:	https://gitlab.freedesktop.org/xorg/xserver/-/commit/e50c85f4ebf559a3bac4817b41074c43d4691779.patch
Patch6061:  fix-bool-macro-clashes.patch

# CVE-2022-2319/ZDI-CAN-16062, CVE-2022-2320/ZDI-CAN-16070
Patch110: 0001-xkb-switch-to-array-index-loops-to-moving-pointers.patch
Patch111: 0002-xkb-swap-XkbSetDeviceInfo-and-XkbSetDeviceInfoCheck.patch
Patch112: 0003-xkb-add-request-length-validation-for-XkbSetGeometry.patch

# CVE-2022-3550
Patch113: 0001-xkb-proof-GetCountedString-against-request-length-at.patch
# CVE-2022-3551
Patch114: 0001-xkb-fix-some-possible-memleaks-in-XkbGetKbdByName.patch

# CVE-2022-46340
Patch115: 0001-Xtest-disallow-GenericEvents-in-XTestSwapFakeInput.patch
# related to CVE-2022-46344
Patch116: 0002-Xi-return-an-error-from-XI-property-changes-if-verif.patch
# CVE-2022-46344
Patch117: 0003-Xi-avoid-integer-truncation-in-length-check-of-ProcX.patch
# CVE-2022-46341
Patch118: 0004-Xi-disallow-passive-grabs-with-a-detail-255.patch
# CVE-2022-46343
Patch119: 0005-Xext-free-the-screen-saver-resource-when-replacing-i.patch
# CVE-2022-46342
Patch120: 0006-Xext-free-the-XvRTVideoNotify-when-turning-off-from-.patch
# CVE-2022-46283
Patch121: 0007-xkb-reset-the-radio_groups-pointer-to-NULL-after-fre.patch
# Fix for buggy patch to CVE-2022-46340
Patch122: 0008-Xext-fix-invalid-event-type-mask-in-XTestSwapFakeInp.patch
# CVE-2023-0494
Patch123: 0001-Xi-fix-potential-use-after-free-in-DeepCopyPointerCl.patch
# CVE-2023-1393
Patch124: 0001-composite-Fix-use-after-free-of-the-COW.patch
# https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1114
Patch125: xorg-x11-server-fb-access-wrapper.patch
# https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1057
Patch126: 0001-present-Send-a-PresentConfigureNotify-event-for-dest.patch
# Upstream commits 73d6e88, f69280dd and 4127776, minus the xwayland.pc.in change
Patch127: 0001-Disallow-byte-swapped-clients-by-default.patch
# Fix CVE-2023-5367, CVE-2023-5380, CVE-2023-6377, CVE-2023-6478, CVE-2023-6816, CVE-2024-0229, CVE-2024-21885, CVE-2024-21886, CVE-2024-0408, CVE-2024-0409
# CVE-2023-5367, CVE-2024-31080, CVE-2024-31081, CVE-2024-31082, CVE-2024-31083
Patch128: 0001-Xi-randr-fix-handling-of-PropModeAppend-Prepend.patch
# CVE-2023-5380
Patch129: 0002-mi-reset-the-PointerWindows-reference-on-screen-swit.patch
# CVE-2023-6377
Patch130: 0001-Xi-allocate-enough-XkbActions-for-our-buttons.patch
# CVE-2023-6478
Patch131: 0001-randr-avoid-integer-truncation-in-length-check-of-Pr.patch
# CVE-2023-6816
Patch3814: 0001-dix-allocate-enough-space-for-logical-button-maps.patch
# CVE-2024-0229
Patch3815: 0002-dix-Allocate-sufficient-xEvents-for-our-DeviceStateN.patch
Patch3816: 0003-dix-fix-DeviceStateNotify-event-calculation.patch
Patch3817: 0004-Xi-when-creating-a-new-ButtonClass-set-the-number-of.patch
# CVE-2024-21885
Patch3818: 0005-Xi-flush-hierarchy-events-after-adding-removing-mast.patch
# CVE-2024-21886
Patch3819: 0006-Xi-do-not-keep-linked-list-pointer-during-recursion.patch
Patch3820: 0007-dix-when-disabling-a-master-float-disabled-slaved-de.patch
# CVE-2024-0408
Patch3821: 0008-glx-Call-XACE-hooks-on-the-GLX-buffer.patch
# CVE-2024-0409
Patch3822: 0009-ephyr-xwayland-Use-the-proper-private-key-for-cursor.patch
# Related to CVE-2024-21886
Patch3823: 0001-dix-Fix-use-after-free-in-input-device-shutdown.patch
# Fix compilation error on i686
Patch3824: 0001-ephyr-Fix-incompatible-pointer-type-build-error.patch
# Fix copy and paste error in CVE-2024-0229
Patch3825: 0001-dix-fix-valuator-copy-paste-error-in-the-DeviceState.patch
# CVE-2024-31080
Patch3826: 0001-Xi-ProcXIGetSelectedEvents-needs-to-use-unswapped-le.patch
# CVE-2024-31081
Patch3827: 0002-Xi-ProcXIPassiveGrabDevice-needs-to-use-unswapped-le.patch
# CVE-2024-31082
Patch3828: 0003-Xquartz-ProcAppleDRICreatePixmap-needs-to-use-unswap.patch
# CVE-2024-31083
Patch3829: 0004-render-fix-refcounting-of-glyphs-during-ProcRenderAd.patch
Patch3830: 0001-render-Avoid-possible-double-free-in-ProcRenderAddGl.patch
# CVE-2024-9632
Patch3831: 0001-xkb-Fix-buffer-overflow-in-_XkbSetCompatMap.patch


# FIXME: build with systemtap installed is broken
BuildConflicts:	systemtap

# Probably only needed if we change .l or .y files, but let's have them anyway:
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	bison
BuildRequires:	meson
%if %{with builddocs}
BuildRequires:	doxygen
BuildRequires:	lynx
BuildRequires:	x11-sgml-doctools >= 1.8
BuildRequires:	xmlto
%endif
BuildRequires:	x11-font-util
BuildRequires:	x11-util-macros
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(dbus-1)
%if %{with dmx}
BuildRequires:	pkgconfig(dmx)
%endif
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(libtirpc)
# for xkbcomp patch
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(xkbcomp)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(libudev) >= 186
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(pciaccess)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xfont2)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xres)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xtrans)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(xshmfence)
BuildRequires:	pkgconfig(dri2proto)
BuildRequires:	pkgconfig(dri3proto)
BuildRequires:	pkgconfig(xcb-aux)
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-icccm)
BuildRequires:	pkgconfig(xcb-keysyms)
BuildRequires:	pkgconfig(xcb-renderutil)
BuildRequires:	pkgconfig(audit)
%if %{with selinux}
BuildRequires:	selinux-devel
%endif
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	kernel-headers
BuildRequires:	libmd-devel
BuildRequires:	x11-proto-devel >= 2019.1
BuildRequires:	patchelf

Requires:	%{name}-xorg
%if %{with dmx}
Requires:	%{name}-xdmx
%else
Obsoletes:	%{name}-xdmx < %{EVRD}
%endif
Requires:	%{name}-xnest
Requires:	%{name}-xvfb
# This should be removed when any of the vnc packages provide x11-server-xvnc:
Obsoletes:	%{name}-xvnc < %{EVRD}

%description
X11 servers.

%files

#----------------------------------------------------------------------------

%package	devel
Summary:	Development files for %{name}
Group:		Development/X11
License:	MIT
Requires:	pkgconfig(dri)
Requires:	pkgconfig(pciaccess)
Requires:	pkgconfig(pixman-1)
Requires:	pkgconfig(xext)
Requires:	pkgconfig(xkbfile)
Obsoletes:	%{_lib}glamor-devel < 1.0
Provides:	glamor-devel = %{EVRD}


%description devel
Development files for %{name}.

%files devel
%dir %{_includedir}/xorg
%{_bindir}/xserver-sdk-abi-requires
%{_includedir}/xorg/*.h
%{_libdir}/pkgconfig/xorg-server.pc
%{_datadir}/aclocal/xorg-server.m4

#----------------------------------------------------------------------------

%package common
Summary:	X server common files
Group:		System/X11
License:	MIT
Provides:	XFree86 = 7.0.0
Requires:	rgb
# for 'fixed' and 'cursor' fonts
Requires:	x11-font-misc-misc
Requires:	x11-font-cursor-misc
Requires:	x11-font-alias
Requires:	x11-data-xkbdata
Requires:	xkbcomp
Requires:	udev
Requires(post,postun):	update-alternatives
Provides:	xserver-abi(ansic-%{ansic_major}) = %{ansic_minor}
Provides:	xserver-abi(videodrv-%{videodrv_major}) = %{videodrv_minor}
Provides:	xserver-abi(xinput-%{xinput_major}) = %{xinput_minor}
Provides:	xserver-abi(extension-%{extension_major}) = %{extension_minor}

# Glamor is now included into the X11 server.
Obsoletes:	glamor < 1.0
Obsoletes:	%{_lib}glamor0 < 1.0
Provides:	glamor = %{EVRD}

# Same for the generic modesetting driver.
Obsoletes:	x11-driver-video-modesetting < 1:1.0
Provides:	x11-driver-video-modesetting = %{EVRD}

# Dropped drivers:
Obsoletes:	x11-driver-input-aiptek <= 1:1.4.1
Obsoletes:	x11-driver-video-sisimedia <= 0.9.1
Obsoletes:	x11-driver-video-xgixp <= 1.8.1
Obsoletes:	x11-driver-video-voodoo <= 1.2.5
Obsoletes:	x11-driver-video-rendition <= 4.2.5
Obsoletes:	x11-driver-video-nv <= 2.1.20
Obsoletes:	x11-driver-video-mach64 <= 1:6.9.5

Obsoletes:	x11-driver-video-sisdrv <= 0.8.0
Obsoletes:	x11-driver-video-i128 <= 1.3.6
Obsoletes:	x11-driver-video-neomagic <= 1.2.9
Obsoletes:	x11-driver-video-tga <= 1.2.2
Obsoletes:	x11-driver-video-tseng <= 1.2.5
Obsoletes:	x11-driver-video-sisusb <= 0.9.6

Obsoletes:	x11-driver-input-acecad <= 1.5.0
Obsoletes:	x11-driver-input-evtouch <= 0.8.8
Obsoletes:	x11-driver-input-fpit <= 1.4.0
Obsoletes:	x11-driver-input-hyperpen <= 1.4.1
Obsoletes:	x11-driver-input-mutouch <= 1.3.0
Obsoletes:	x11-driver-input-penmount <= 1.5.0

# No more fglrx with X11 server 1.18+.
# Because of 'nomodeset' kernel option, we need the users to remove fglrx
# explicitly via XFdrake, so a silent "Obsoletes: " is not a good option.
# The conflict should draw their attention.
Conflicts:	x11-driver-video-fglrx


%description common
X server common files.

%post common
%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf %{priority} \

%postun common
if [ ! -f %{_sysconfdir}/ld.so.conf.d/GL/standard.conf ]; then
	/usr/sbin/update-alternatives --remove gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf
fi

%files common
%dir %{_libdir}/xorg/modules
%dir %{_sysconfdir}/X11
%dir %{_sysconfdir}/X11/app-defaults
%dir %{_sysconfdir}/X11/fontpath.d
%dir %{_sysconfdir}/ld.so.conf.d/GL
%dir %{_sysconfdir}/X11/xorg.conf.d
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%{_sysconfdir}/ld.so.conf.d/GL/standard.conf
%{_bindir}/cvt
%{_bindir}/gtf
%if %{with dmx}
%{_bindir}/vdltodmx
%endif
%{_libdir}/xorg/modules/*
%{_libdir}/xorg/protocol.txt
%{_mandir}/man1/gtf.*
%{_mandir}/man1/cvt.*
%if %{with dmx}
%{_mandir}/man1/vdltodmx.*
%endif
%{_mandir}/man4/fbdevhw.*
%{_mandir}/man4/exa.*
%{_mandir}/man4/modesetting.*
%dir %{_prefix}/X11R6
%dir %{_prefix}/X11R6/lib
%{_prefix}/X11R6/lib/X11

#----------------------------------------------------------------------------

%package xorg
Summary:	X.org X11 server
Group:		System/X11
License:	MIT
Requires:	libx11-common
Requires:	x11-data-xkbdata
Requires:	x11-font-alias
Requires:	x11-server-common = %{EVRD}
Requires:	x11-server-xwayland
Requires:	udev

%description xorg
x11-server-xorg is the new generation of X server from X.Org.

%files xorg
%{_bindir}/X
%{_bindir}/Xorg
%{_libexecdir}/Xorg
%attr(4755,root,root)%{_libexecdir}/Xorg.wrap
%{_sysconfdir}/X11/X
%{_sysconfdir}/pam.d/xserver
%{_sysconfdir}/security/console.apps/xserver
%{_mandir}/man1/Xorg.*
%{_mandir}/man1/Xserver.*
%{_mandir}/man5/xorg.conf.*
%{_mandir}/man5/Xwrapper.config.*
%{_datadir}/X11/xorg.conf.d/00-modules.conf
%{_datadir}/X11/xorg.conf.d/10-quirks.conf

#----------------------------------------------------------------------------

%if %{with dmx}
%package xdmx
Summary:	Distributed Multi-head X server
Group:		System/X11
License:	MIT
Requires:	x11-server-common = %{EVRD}

%description xdmx
Xdmx is a proxy X server that uses one or more other X servers
as its display devices. It provides multi-head X functionality
for displays that might be located on different machines.
Xdmx functions as a front-end X server that acts as a proxy
to a set of back-end X servers. All of the visible rendering is
passed to the back-end X servers. Clients connect to the Xdmx
front-end, and everything appears as it would in a regular
multi-head configuration. If Xinerama is enabled (e.g.,
with +xinerama on the command line), the clients see a single large screen.

Xdmx communicates to the back-end X servers using the standard X11 protocol,
and standard and/or commonly available X server extensions.

%files xdmx
%{_bindir}/Xdmx
%{_bindir}/xdmx*
%{_bindir}/dmx*
%{_mandir}/man1/Xdmx.*
%{_mandir}/man1/xdmxconfig.*
%{_mandir}/man1/dmxtodmx.*
%endif

#----------------------------------------------------------------------------

%package xnest
Summary:	A nested X server
Group:		System/X11
License:	MIT
Requires:	x11-server-common = %{EVRD}

%description xnest
Xnest is an X Window System server which runs in an X window.
Xnest is a 'nested' window server, actually a client of the
real X server, which manages windows and graphics requests
for Xnest, while Xnest manages the windows and graphics
requests for its own clients.

You will need to install Xnest if you require an X server which
will run as a client of your real X server (perhaps for
testing purposes).

%files xnest
%{_bindir}/Xnest
%{_mandir}/man1/Xnest.*

#----------------------------------------------------------------------------

%package xvfb
Summary:	X virtual framebuffer server
Group:		System/X11
# xvfb-run is GPLv2, rest is MIT
License:	MIT and GPLv2+
Requires:	x11-server-common = %{EVRD}
Requires:	xauth

%description xvfb
Xvfb (X Virtual Frame Buffer) is an X Windows System server
that is capable of running on machines with no display hardware and no
physical input devices.  Xvfb emulates a dumb framebuffer using virtual
memory.  Xvfb doesn't open any devices, but behaves otherwise as an X
display.  Xvfb is normally used for testing servers.  Using Xvfb, the mfb
or cfb code for any depth can be exercised without using real hardware
that supports the desired depths.  Xvfb has also been used to test X
clients against unusual depths and screen configurations, to do batch
processing with Xvfb as a background rendering engine, to do load testing,
to help with porting an X server to a new platform, and to provide an
unobtrusive way of running applications which really don't need an X
server but insist on having one.

If you need to test your X server or your X clients, you may want to
install Xvfb for that purpose.

%files xvfb
%{_bindir}/Xvfb
%{_bindir}/xvfb-run
%{_mandir}/man1/Xvfb.*

#----------------------------------------------------------------------------

%package xephyr
Summary:	KDrive Xephyr X server
Group:		System/X11
License:	MIT
Requires:	x11-server-common = %{EVRD}

%description xephyr
KDrive (formerly known as TinyX) is a light-weight X server targetting specific
chipsets. It is recommended to be used on thin-clients and embedded systems.
If you are on a standard desktop system you might want to use x11-server-xorg
and the video driver corresponding to your video card.

Xephyr is a X Server which targets a window on a host X Server
as its framebuffer. Unlike Xnest it supports modern X extensions ( even
if host server doesn't ) such as Composite, Damage, randr etc. It uses SHM
Images and shadow framebuffer updates to provide good performance. It also
has a visual debugging mode for observing screen updates.

Possible uses include:
- Xnest replacement - Window manager, Composite 'gadget', etc development tool.
- Toolkit debugging - rendundant toolkit paints can be observered easily via
  the debugging mode.
- X Server internals development - develop without the need for an extra
  machine.

%files xephyr
%{_bindir}/Xephyr
%{_mandir}/man1/Xephyr.1*

#----------------------------------------------------------------------------

%define xserver_source_dir %{_datadir}/%{name}-source

%package source
Summary:	Xserver source code required to build unofficial servers
Group:		Development/X11
License:	MIT

%description source
Xserver source code needed to build unofficial servers, like Xvnc.

%files source
%{xserver_source_dir}

#----------------------------------------------------------------------------

%prep
%setup -q -n xorg-server-%{version}
%autopatch -p1

# check the ABI in the source against what we expect.
getmajor() {
   grep -i ^#define.ABI.$1_VERSION hw/xfree86/common/xf86Module.h |
   tr '(),' '   ' | awk '{ print $4 }'
}

getminor() {
   grep -i ^#define.ABI.$1_VERSION hw/xfree86/common/xf86Module.h |
   tr '(),' '   ' | awk '{ print $5 }'
}

test $(getmajor ansic) == %{ansic_major}
test $(getminor ansic) == %{ansic_minor}
test $(getmajor videodrv) == %{videodrv_major}
test $(getminor videodrv) == %{videodrv_minor}
test $(getmajor xinput) == %{xinput_major}
test $(getminor xinput) == %{xinput_minor}
test $(getmajor extension) == %{extension_major}
test $(getminor extension) == %{extension_minor}

%build
%global optflags %{optflags} -std=c++17
%meson \
	-Dlog_dir="%{_logdir}" \
	-Dmodule_dir="%{moduledir}" \
	-Dbuilder_addr="%{disturl}" \
	-Dbuilder_string="Build ID: %{name} %{version}-%{release}" \
	-Dvendor_name="%{vendor}" \
	-Dos_vendor="%{vendor}" \
	-Dxorg=true \
	-Dsuid_wrapper=true \
	-Dxephyr=true \
	-Dxcsecurity=true \
	-Dsha1=libgcrypt \
	-Dxwayland=false \
	-Dxwayland_eglstream=false \
	%ifnarch %{ix86} %{x86_64}
	-Dvbe=false \
	-Dint10=false \
	%else
	-Dint10=x86emu \
	%endif
	-Dvendor_web="%{bugurl}" \
	%if %{with dmx}
	-Ddmx=true \
	%endif
	-Ddefault_font_path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins"

%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_sysconfdir}/X11/
ln -s %{_bindir}/Xorg %{buildroot}%{_sysconfdir}/X11/X
ln -sf %{_libexecdir}/Xorg.wrap %{buildroot}%{_bindir}/X

mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/xserver
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps
touch %{buildroot}%{_sysconfdir}/security/console.apps/xserver

mkdir -p %{buildroot}%{_datadir}/X11/xorg.conf.d
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/X11/xorg.conf.d
install -m 0644 %{SOURCE90} %{buildroot}%{_datadir}/X11/xorg.conf.d/
# Create xorg.conf.d
mkdir -p %{buildroot}%{_sysconfdir}/X11/xorg.conf.d

mkdir -p %{buildroot}%{_sysconfdir}/X11/app-defaults
mkdir -p %{buildroot}%{_sysconfdir}/X11/fontpath.d

# for compatibility with legacy applications (see #23423, for example)
mkdir -p %{buildroot}%{_prefix}/X11R6/lib/
ln -s ../../%{_lib}/X11 %{buildroot}%{_prefix}/X11R6/lib/X11

# create more module directories to be owned by x11-server-common
install -d -m755 %{buildroot}%{_libdir}/xorg/modules/{input,drivers}

# (anssi) manage proprietary drivers
install -d -m755 %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL
cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL/standard.conf << EOF
# This file is knowingly empty since the libraries are in standard search
# path. Please do not remove this file.
EOF
touch %{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

install -m 0755 %{SOURCE2} %{buildroot}%{_bindir}/xvfb-run

mkdir -p %{buildroot}/sbin
mkdir -p %{buildroot}/lib/udev/rules.d/

# Make the source package
install -d %{buildroot}/%{xserver_source_dir}
cp -r * %{buildroot}/%{xserver_source_dir}

install -m 755 %{SOURCE30} %{buildroot}%{_bindir}

# Fix finding libfb.so (OTRS#20221102002168)
# Not needed in newer versions of x11-server
# (libshadow does not depdend on libfb there, libfb does not exist any more)
test -f %{buildroot}%{_libdir}/xorg/modules/libfb.so
patchelf --set-rpath '$ORIGIN' %{buildroot}%{_libdir}/xorg/modules/libshadow.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20273 |21mr|x11-sgml-doctools-1.11-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Xorg X11 sgml documentation tools
Name:		x11-sgml-doctools
Version:	1.11
Release:	9
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/doc/xorg-sgml-doctools-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildArch:	noarch

%description
Xorg X11 sgml documentation tools.

%files
%{_datadir}/sgml/X11/defs.ent
%{_datadir}/sgml/X11/xorg.css
%{_datadir}/sgml/X11/xorg.xsl
%{_datadir}/sgml/X11/dbs/masterdb.*
%{_datadir}/sgml/X11/xorg-fo.xsl
%{_datadir}/sgml/X11/xorg-chunk.xsl
%{_datadir}/sgml/X11/xorg-xhtml.xsl
%{_datadir}/pkgconfig/xorg-sgml-doctools.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n xorg-sgml-doctools-%{version}

%build
%configure \
	--build=i586-%{_target_vendor}-%{_target_os}%{?_gnu} \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20274 |21mr|x11-ssh-askpass-1.2.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Version of ssh-askpass
%define aversion 1.2.4.1

Summary:	OpenSSH X11 passphrase dialog
Name:		x11-ssh-askpass
Version:	1.2.4.1
Release:	1
License:	Public Domain
Group:		Networking/Remote access
Url:		http://www.jmknoble.net/software/x11-ssh-askpass/
Source0:	http://www.jmknoble.net/software/x11-ssh-askpass/x11-ssh-askpass-%{aversion}.tar.bz2
Patch0:		x11-ssh-askpass-1.2.4-random.patch
BuildRequires:	gccmakedep
BuildRequires:	imake
# http://qa.mandriva.com/show_bug.cgi?id=22736
BuildRequires:	x11-util-cf-files >= 1.0.2
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)
Requires:	openssh
Requires:	openssh-askpass-common
Provides:	ssh-askpass = 5.9p1
Requires(post,postun):	update-alternatives

%description
This package contains Jim Knoble's X11 passphrase dialog.

%files
%doc README ChangeLog SshAskpass*.ad
%{_libdir}/ssh/x11-ssh-askpass
%{_sysconfdir}/X11/app-defaults/SshAskpass
%{_mandir}/man1/x11-ssh-askpass.1*

%post
update-alternatives --install %{_libdir}/ssh/ssh-askpass ssh-askpass %{_libdir}/ssh/x11-ssh-askpass 10
update-alternatives --install %{_bindir}/ssh-askpass bssh-askpass %{_libdir}/ssh/x11-ssh-askpass 10

%postun
[ $1 = 0 ] || exit 0
update-alternatives --remove ssh-askpass %{_libdir}/ssh/x11-ssh-askpass
update-alternatives --remove bssh-askpass %{_libdir}/ssh/x11-ssh-askpass

#----------------------------------------------------------------------------

%prep
%setup -q -n x11-ssh-askpass-%{aversion}
%patch0 -p1 -b .random

%build
%serverbuild

%configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--mandir=%{_mandir} \
	--libexecdir=%{_libdir}/ssh \
	--with-app-defaults-dir=%{_sysconfdir}/X11/app-defaults

xmkmf -a
make includes

%ifarch x86_64
perl -pi -e "s|i586-mandriva-linux-gnu|x86_64-mandriva-linux-gnu|g" Makefile
perl -pi -e "s|-m32|-m64|g" Makefile
perl -pi -e "s|__i386__|__x86_64__|g" Makefile
%endif

make \
	XAPPLOADDIR=%{_sysconfdir}/X11/app-defaults \
	BINDIR=%{_libdir}/ssh \
	CDEBUGFLAGS="%{optflags}" \
	CXXDEBUGFLAGS="%{optflags}"

%install
install -d %{buildroot}%{_libdir}/ssh
make DESTDIR=%{buildroot} install
make DESTDIR=%{buildroot} install.man
install -d %{buildroot}%{_libdir}/ssh
install -d %{buildroot}%{_sysconfdir}/X11/app-defaults
install -m0644 SshAskpass.ad %{buildroot}%{_sysconfdir}/X11/app-defaults/SshAskpass
install -m0755 x11-ssh-askpass %{buildroot}%{_libdir}/ssh/
install -m0644 x11-ssh-askpass.man %{buildroot}%{_mandir}/man1/x11-ssh-askpass.1

# cleanup
rm -f %{buildroot}%{_libdir}/ssh/ssh-askpass
rm -f %{buildroot}%{_mandir}/man1/ssh-askpass.1x*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20275 |21mr|x11-tools-1.0.0-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X11 tools
Name:		x11-tools
Version:	1.0.0
Release:	23
License:	GPLv2+
Group:		Development/X11
# very useful tools
Requires:	iceauth
Requires:	luit
Requires:	setxkbmap
Requires:	smproxy
Requires:	xauth
Requires:	xcmsdb
Requires:	xconsole
Requires:	xdpyinfo
Requires:	xfindproxy
Requires:	xfwp
Requires:	xgamma
Requires:	xhost
Requires:	xinit
Requires:	xkill
Requires:	xmodmap
Requires:	xrandr
Requires:	xrdb
Requires:	xset
Requires:	xsetmode
Requires:	xsetpointer
Requires:	xsetroot
Requires:	xstdcmap
# less useful tools
Requires:	appres
Requires:	editres
Requires:	listres
Requires:	rstart
Requires:	viewres
Requires:	x11-scripts
Requires:	xcursorgen
Requires:	xev
Requires:	xfsinfo
Requires:	xlsatoms
Requires:	xlsclients
Requires:	xkbcomp
Requires:	xkbevd
Requires:	xkbprint
Requires:	xkbutils
Requires:	xprop
Requires:	xrefresh
Requires:	xvidtune
Requires:	xvinfo
Requires:	xwininfo
# build tools
Requires:	makedepend
BuildArch:	noarch

%description
X11 tools meta package.

%files

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20276 |21mr|x11-util-cf-files-1.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Templates for imake
Name:		x11-util-cf-files
Version:	1.0.7
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/util/xorg-cf-files-%{version}.tar.bz2
Patch0:		0001-Add-mdvconfig.patch
# fix error "ar: libdeps specified more than once" in other projects (ex. nas)
Patch1:		xorg-cf-files-for-new-binutils.patch
Patch2:		0007-compile-libs-drivers-for-e2k.patch
BuildArch:	noarch
BuildRequires:	x11-util-macros
BuildRequires:	x11-font-util

%description
Templates for imake.

%files
%dir %{_datadir}/X11/config
%{_datadir}/X11/config/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n xorg-cf-files-%{version}

%build
%configure \
	--build=i686-%{_target_vendor}-%{_target_os}%{?_gnu} \
	--with-config-dir=%{_datadir}/X11/config

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20277 |21mr|x11-util-macros-1.19.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Macro used for X.org development
Name:		x11-util-macros
Version:	1.19.3
Release:	1
Group:		Development/X11
License:	MIT
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/util/util-macros-%{version}.tar.bz2
BuildArch:	noarch

%description
Macros used for X.org development.

%files
%{_datadir}/util-macros/INSTALL
%{_datadir}/aclocal/xorg-macros.m4
%{_datadir}/pkgconfig/xorg-macros.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n util-macros-%{version}

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20278 |21mr|x11vnc-0.9.14-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
Summary:	VNC server for the current X11 session
Name:		x11vnc
Version:	0.9.14
Release:	4
License:	GPLv2+
Group:		System/X11
Url:		http://www.karlrunge.com/x11vnc/
Source0:	http://downloads.sourceforge.net/sourceforge/libvncserver/%{name}-%{version}-dev.tar.gz
Patch0:		x11vnc-fix-double-X_UNLOCK-on-xrandr-event.patch
BuildRequires:	jpeg-devel
BuildRequires:	avahi-common-devel
BuildRequires:	pkgconfig(avahi-client)
BuildRequires:	pkgconfig(libvncserver)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xdamage)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(zlib)
Requires:	tk

%description
x11vnc is to X Window System what WinVNC is to Windows, i.e. a server
which serves the current X Window System desktop via RFB (VNC)
protocol to the user.

Based on the ideas of x0rfbserver and on LibVNCServer, it has evolved
into a versatile and performant while still easy to use program.

%files
%doc AUTHORS ChangeLog COPYING NEWS README TODO
%{_mandir}/man1/x11vnc.1*
%{_bindir}/x11vnc
%{_datadir}/x11vnc/
%{_datadir}/applications/x11vnc.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%configure \
	--with-system-libvncserver
%make

%install
%makeinstall_std

rm -fr %{buildroot}%{_includedir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20279 |21mr|x11-xtrans-devel-1.4.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}

Summary:	Abstract network code for X
Name:		x11-xtrans-devel
Version:	1.4.0
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/lib/xtrans-%{version}.tar.bz2
Source10:	%{name}.rpmlintrc
Patch0:		xtrans-1.2.7-tirpc.patch
# From Fedora:
Patch1:		xtrans-1.0.3-avoid-gethostname.patch

BuildRequires:	pkgconfig(xorg-macros)

%description
Abstract network code for X.

%files
%doc doc/xtrans.xml
%{_datadir}/pkgconfig/xtrans.pc
%{_datadir}/aclocal/xtrans.m4
%{_includedir}/X11/Xtrans/Xtransint.h
%{_includedir}/X11/Xtrans/Xtrans.h
%{_includedir}/X11/Xtrans/Xtrans.c
%{_includedir}/X11/Xtrans/Xtranslcl.c
%{_includedir}/X11/Xtrans/Xtranssock.c
%{_includedir}/X11/Xtrans/Xtransutil.c
%{_includedir}/X11/Xtrans/transport.c

#----------------------------------------------------------------------------

%prep
%setup -qn xtrans-%{version}
%apply_patches

%build
aclocal
automake -a
autoconf

%configure
%make

%install
%makeinstall_std
rm %{buildroot}%{_datadir}/doc/xtrans/xtrans.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20280 |21mr|x125-0.2.3-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A printer driver for the Lexmark X125 All-in-one printer/scanner/fax
Name:		x125
Version:	0.2.3
Release:	17
License:	GPLv2+
Group:		System/Printing
Url:		http://sourceforge.net/projects/x125-linux/
Source0:	http://heanet.dl.sourceforge.net/sourceforge/x125-linux/x125-drv-%{version}.tar.gz
Source1:	http://heanet.dl.sourceforge.net/sourceforge/x125-linux/x125-drv-network-0.2.0.tar.gz
Patch0:		x125-0.2.3-LDFLAGS.diff
Conflicts:	printer-utils = 2007
Conflicts:	printer-filters = 2007

%description
A printer driver for the Lexmark X125 All-in-one printer/scanner/fax.

%files
%doc drv_x125/LICENSE README.* FAQ.* ChangeLog.*
%attr(0755,root,root) %{_bindir}/*

#----------------------------------------------------------------------------

%prep
%setup -q -c -T -a0 -a1
%patch0 -p1 -b .LDFLAGS

%build
cd drv_x125/src
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"
cd ../..
cd drv_x125_network/src
%make CFLAGS="%{optflags}" LDFLAGS="%{ldflags}"
cd ../..

%install
install -d %{buildroot}%{_bindir}

install -m0755 drv_x125/src/x125_cmyk %{buildroot}%{_bindir}/
install -m0755 drv_x125/src/x125_cmyk_print.sh %{buildroot}%{_bindir}/
install -m0755 drv_x125_network/src/x125_network %{buildroot}%{_bindir}/

cp drv_x125/README README.drv_x125
cp drv_x125/FAQ FAQ.drv_x125
cp drv_x125/ChangeLog ChangeLog.drv_x125
cp drv_x125_network/README README.drv_x125_network
cp drv_x125_network/FAQ FAQ.drv_x125_network
cp drv_x125_network/ChangeLog ChangeLog.drv_x125_network

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20281 |21mr|x264-0.163-0.20210713.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

%define major 163
%define date 20210713
%define	git	5db6aa6cab1b146e07b60cc1736a01f21da01154
%define	fname	%{name}-stable-%{git}

%define libname %mklibname %{name}_ %{major}
%define devname %mklibname %{name} -d
%define static %mklibname %{name} -d -s

Summary:	H264/AVC encoder
Name:		x264
Version:	0.%{major}
Release:	0.%{date}.2
License:	GPLv2+
Group:		Video
Url:		http://x264.nl/
Source0:	https://code.videolan.org/videolan/x264/-/archive/stable/x264-stable-%{date}.tar.bz2
Patch0:		x264-dynamically-link-against-gpac.patch
Patch1:		define-lcc-e2k.patch
%ifarch %{ix86} %{x86_64}
BuildRequires:	nasm >= 2.13
%endif
BuildRequires:	git-core
BuildRequires:	yasm
#BuildRequires:	pkgconfig(libavformat)
BuildRequires:	pkgconfig(x11)

%description
x264 is a free library for encoding H264/AVC video streams. The code
is written by Laurent Aimar, Eric Petit(OS X), Min Chen (vfw/nasm),
Justin Clay(vfw), Måns Rullgård and Loren Merritt from scratch. It is
released under the terms of the GPL license.

This package is in Restricted repository as the video encoder may be covered
by software patents.

%files
%doc AUTHORS doc/*
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of x264
Group:		System/Libraries

%description -n %{libname}
x264 dynamic libraries.

%files -n %{libname}
%{_libdir}/libx264.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	H264/AVC encoding library headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n	%{devname}
x264 is a free library for encoding H264/AVC video streams. The code
is written by Laurent Aimar, Eric Petit(OS X), Min Chen (vfw/nasm),
Justin Clay(vfw), Måns Rullgård and Loren Merritt from scratch. It is
released under the terms of the GPL license.

%files -n %{devname}
%{_libdir}/libx264.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%package -n %{static}
Summary:	Static library for the x264 H264/AVC encoding library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}
Conflicts:	%{_lib}x264-devel < 0.142

%description -n %{static}
Static library for the x264 H264/AVC encoding library.

%files -n %{static}
%{_libdir}/libx264.a

#----------------------------------------------------------------------------

%prep
%setup -q -n %{fname}
%autopatch -p1

%build
CFLAGS="%{optflags} -Ofast" \
%configure \
	--enable-shared \
	--enable-static \
	--enable-pic \
	--enable-visualize \
	--disable-gpac
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20282 |21mr|x265-3.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Enable this when is abi-dumper processing is needed
#undefine _find_debuginfo_dwz_opts

# See X265_BUILD in CMakeLists.txt
%define	major 192
%define	libname %mklibname %{name}_ %{major}
%define	devname %mklibname %{name} -d
%define	static %mklibname %{name} -d -s

Summary:	H265/HEVC encoder
Name:		x265
Version:	3.4
Release:	3
License:	GPLv2+
Group:		Video
Url:		https://x265.org/
Source0:	https://github.com/videolan/x265/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		x265-1.8-pkgconfig-dir.patch
Patch1:		x265-3.4-fix-pkgconfig-version.patch
Patch2:		x265-3.4-fix-memleak.patch
Patch3:		x265-3.4-fix-vbv-lookahead.patch
Patch4:		x265-3.4-check-range-only-if-hme-is-enabled.patch
Patch5:		x265-3.4-fix-crash-on-uninitialized-buffer.patch
BuildRequires:	cmake >= 3.7
BuildRequires:	git
BuildRequires:	nasm >= 2.13.0
BuildRequires:	glibc-devel
BuildRequires:	pkgconfig(numa)

%description
x265 is an open-source project and free application library for encoding video
streams into the H.265/High Efficiency Video Coding (HEVC) format.

%files
%doc COPYING
%{_bindir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library of x265
Group:		System/Libraries

%description -n %{libname}
x265 dynamic libraries.

%files -n %{libname}
%doc COPYING
%{_libdir}/libx265.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	H265/HEVC encoding library headers
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
x265 is an open-source project and free application library for encoding video
streams into the H.265/High Efficiency Video Coding (HEVC) format.

%files -n %{devname}
%doc COPYING
%{_libdir}/libx265.so
%{_includedir}/*.h
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package -n %{static}
Summary:	Static library for the x265 H265/HEVC encoding library
Group:		Development/C
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{static}
Static library for the x265 H265/HEVC encoding library.

%files -n %{static}
%doc COPYING
%{_libdir}/libx265.a

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
pushd source
	%cmake
	%make -s
popd


%install
%makeinstall_std -C source/build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20283 |21mr|x2goclient-4.1.2.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%ifarch %{e2k}
%define debug_package %{nil}
%endif
Summary:	A Qt4 client for the x2go system
Name:		x2goclient
Version:	4.1.2.2
Release:	3
Epoch:		1
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://www.x2go.org
Source0:	http://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz
BuildRequires:	imagemagick
BuildRequires:	man
BuildRequires:	man2html
BuildRequires:	cups-devel
BuildRequires:	openldap-devel
BuildRequires:	qt4-devel
BuildRequires:	pkgconfig(libssh)
BuildRequires:	pkgconfig(xpm)
Requires:	hicolor-icon-theme
Requires:	nxproxy

%description
X2goclient is a graphical qt4 client for the x2go system.
You can use it to connect to running sessions and start new sessions. 

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png
%{_mandir}/man1/%{name}.1.xz
%{_datadir}/%{name}

#------------------------------------------------------------

%prep
%setup -q
# Fix up install issues
sed -i -e 's/-o root -g root//' Makefile
sed -i -e '/^QMAKE_BINARY=/s@qmake-qt4@/usr/lib/qt4/bin/qmake@' Makefile
sed -i -e '/^LRELEASE_BINARY=/s@lrelease-qt4@/usr/lib/qt4/bin/lrelease@' Makefile

%build
%ifarch %{e2k}
export QMAKESPEC=linux-g++-lcc-native
%endif
%make PREFIX=%{_prefix}

%install
%makeinstall_std PREFIX=%{_prefix} \
	INSTALL_DIR="install -d -m0755" \
	INSTALL_FILE="install -m0644" \
	INSTALL_PROGRAM="install -m0755"

desktop-file-edit --remove-key=Version %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-edit --remove-key=Category %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-edit --add-category=Network %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-edit --add-category=Qt %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-edit --add-category=KDE %{buildroot}%{_datadir}/applications/%{name}.desktop

# (cg) Kill for now, but feel free to package if needed/desirable
rm -f %{buildroot}%{_sysconfdir}/x2go/plugin-provider/x2goplugin.html \
	%{buildroot}%{_sysconfdir}/x2go/x2goplugin-apache.conf \
	%{buildroot}%{_datadir}/x2go/plugin/x2goplugin.html

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20284 |21mr|x2goserver-4.1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define x2golibdir %{_libdir}/x2go

Summary:	The server-side core of X2go
Name:		x2goserver
Version:	4.1.0.3
Release:	1
License:	GPLv2+
Group:		Networking/Remote access
Url:		http://wiki.x2go.org/doku.php
Source0:	http://code.x2go.org/releases/source/%{name}/%{name}-%{version}.tar.gz
Source1:	x2gocleansessions.service
BuildRequires:	man2html
BuildRequires:	perl(ExtUtils::MakeMaker)
Requires:	lsof
Requires:	makepasswd
Requires:	openssh-clients
Requires:	openssh-server
Requires:	perl-Config-Simple
Requires:	sshfs-fuse
Requires:	xauth
# x2go / nx dependencies
Requires:	nxproxy
Requires:	nxX11
Requires:	xcomp
Requires:	xcompshad
# DB dependencies
Requires:	perl-DBD-Pg
Requires:	perl-DBD-SQLite
Requires:	sqlite3-tools
Requires(post,preun):	rpm-helper

%description
x2go is a "server based computing environment" combining the advantages of
different existing solutions. The x2goserver package provides the server-side
core of X2go.

%files
%doc README.install.urpmi
%doc %{_mandir}/man*/*
%dir %{_localstatedir}/lib/x2go
%dir %{_exec_prefix}/lib/debug
%dir %{_exec_prefix}/lib/tmpfiles.d
%dir %{_localstatedir}/spool/x2goprint
%{_datadir}/x2go
%{_bindir}/x2gobasepath
%attr(2755,root,x2goprint) %{_bindir}/x2goprint
%{_bindir}/x2goresume-session
%{_bindir}/x2goruncommand
%{_bindir}/x2goserver-run-extensions
%{_bindir}/x2gosessionlimit
%{_bindir}/x2gosetkeyboard
%{_bindir}/x2gostartagent
%{_bindir}/x2gosuspend-session
%{_bindir}/x2goterminate-session
%{_bindir}/x2goumount-session
%{_bindir}/x2goversion
%{_bindir}/x2gopath
%{_bindir}/x2goagent
%{_bindir}/x2goresume-desktopsharing
%{_bindir}/x2gosuspend-desktopsharing
%{_bindir}/x2goterminate-desktopsharing
%{_bindir}/x2gocmdexitmessage
%{_bindir}/x2gofeature
%{_bindir}/x2gofeaturelist
%{_bindir}/x2gofm
%{_bindir}/x2gogetapps
%{_bindir}/x2gogetservers
%{_bindir}/x2golistdesktops
%{_bindir}/x2golistmounts
%{_bindir}/x2golistsessions
%{_bindir}/x2golistshadowsessions
%{_bindir}/x2gomountdirs
%{_sbindir}/x2gocleansessions
%{_sbindir}/x2godbadmin
%{_sbindir}/x2golistsessions_root
%{_sbindir}/x2goshowblocks
%{_sysconfdir}/sudoers.d/x2goserver
%dir %{_sysconfdir}/x2go
%{_libdir}/nx
%config(noreplace) %{_sysconfdir}/logcheck
%config(noreplace) %{_sysconfdir}/x2go/x2goserver.conf
%{_sysconfdir}/x2go/Xresources
%{_sysconfdir}/x2go/Xsession
%{_sysconfdir}/x2go/desktopsharing/settings
%{_sysconfdir}/x2go/keystrokes.cfg
%{_sysconfdir}/x2go/x2go_logout
%{_sysconfdir}/x2go/x2go_logout.d/010_userscripts.sh
%{_sysconfdir}/x2go/x2goagent.keyboard
%{_sysconfdir}/x2go/x2goagent.options
%{_sysconfdir}/x2go/x2gosql/sql
%{_datadir}/applications/x2gofm.desktop
%{_datadir}/mime/packages/sshfs-x2go.xml
%{_datadir}/pixmaps/x2goagent.xpm
%{_unitdir}/%{name}.service
%{_unitdir}/x2gocleansessions.service
%dir %{x2golibdir}
%{x2golibdir}/*	
%{perl_vendorlib}/X2Go
%{_exec_prefix}/lib/tmpfiles.d/*

%pre
%_pre_useradd x2gouser %{_localstatedir}/lib/x2go /bin/false
%_pre_useradd x2goprint %{_localstatedir}/spool/x2goprint /bin/false

%post
chown x2gouser:x2gouser %{_localstatedir}/lib/x2go
chown x2goprint:x2goprint %{_localstatedir}/spool/x2goprint
# Initialize the session database
[ ! -f %{_localstatedir}/lib/x2go/x2go_sessions ] && %{_sbindir}/x2godbadmin --createdb || :
%systemd_post x2gocleansessions.service

%preun
%systemd_preun x2gocleansessions.service

%postun
%_postun_userdel x2gouser
%_postun_userdel x2goprint

#----------------------------------------------------------------------------

%prep
%setup -q

# Set path
find -type f | xargs sed -i -r -e '/^LIBDIR=/s,/lib/,/%{_lib}/,'
sed -i -e 's,/lib/,/%{_lib}/,' x2goserver/bin/x2gopath
# Don't try to be root
sed -i -e 's/-o root -g root//' */Makefile
# Perl pure_install
sed -i -e 's/perl install/perl pure_install/' Makefile

%build
%setup_compile_flags
export LC_ALL=C
%make \
	PREFIX=%{_prefix}

%install
export LC_ALL=C
%makeinstall_std \
	PREFIX=%{_prefix} \
	INSTALL_DIR="install -d -m 755" \
	INSTALL_FILE="install -m 644" \
	INSTALL_PROGRAM="install -m 755"

rm -f %{buildroot}%{_sysconfdir}/x2go/Xsession.d

mkdir -p %{buildroot}%{_unitdir}
install -m0644 x2goserver.service %{buildroot}%{_unitdir}/%{name}.service
install -m0644 %{SOURCE1} %{buildroot}%{_unitdir}/x2gocleansessions.service

find %{buildroot} -name .placeholder -delete
mkdir -p %{buildroot}%{_localstatedir}/lib/x2go
mkdir -p %{buildroot}%{_localstatedir}/spool/x2goprint

cat  > README.install.urpmi << EOF

DATABASE SETUP
-----------------

You need either an sqlite or a postgresql database for running x2go.
If you want to run x2go just on a single server, sqlite is sufficient, for
running x2go on a multi server setup, postgresql is required.

 $ x2godbadmin --createdb


DEFAULT: SQLite setup
------------------------

This variant is the default X2go database setup. The X2go database keeps track
of running/suspended/finished X2go sessions, mounted devices, etc. If you use
SQLite as DB backend, X2go will run on one single server.

For multi-X2goServer support use the PostgreSQL setup variant of X2go server.
All files should be present for this setup. If not, please report it as a bug.


ALTERNATIVE: PostgreSQL setup
--------------------------------

This variant is for a setup of x2goserver that uses a PostgreSQL database
backend...

The exact installation of x2goserver with PostgreSQL support is described
here: http://wiki.x2go.org/doku.php/wiki:advanced:multi-node:x2goserver-pgsql

LOCAL FOLDER SHARING
-----------------------

Users that shall be able to use X2go's local folder sharing functionality 
(via sshfs) have to be members of your server system's ,,fuse'' group

 $ usermod -a -G fuse <username>


PRINTING
-----------

Also users that shall be able to send print jobs to client-side printers have
to be members of the server-side ,,fuse'' group (see above).

As X2go printing setups can be rather versatile, details on X2go printing are 
explained in the project wiki:
http://wiki.x2go.org/doku.php/doc:installation:printing
EOF
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20285 |21mr|xalan-j2-2.7.1-40
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%global cvs_version 2_7_1

Name:           xalan-j2
Version:        2.7.1
Release:        40
Epoch:          0
Summary:        Java XSLT processor
# src/org/apache/xpath/domapi/XPathStylesheetDOM3Exception.java is W3C
License:        ASL 2.0 and W3C
URL:            http://xalan.apache.org/

# ./generate-tarball.sh
Source0:        %{name}-%{version}.tar.gz
Source1:        %{name}-serializer-MANIFEST.MF
Source2:        http://repo1.maven.org/maven2/xalan/xalan/2.7.1/xalan-2.7.1.pom
Source3:        http://repo1.maven.org/maven2/xalan/serializer/2.7.1/serializer-2.7.1.pom
Source4:        xsltc-%{version}.pom
Source5:        %{name}-MANIFEST.MF
# Remove bundled binaries which cannot be easily verified for licensing
Source6:        generate-tarball.sh

Patch0:         %{name}-noxsltcdeps.patch
# Fix CVE-2014-0107: insufficient constraints in secure processing
# feature (oCERT-2014-002).  Generated form upstream revisions 1581058
# and 1581426.
Patch2:         %{name}-CVE-2014-0107.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  apache-parent
BuildRequires:  bcel
BuildRequires:  java_cup
BuildRequires:  regexp
BuildRequires:  sed
BuildRequires:  glassfish-servlet-api
BuildRequires:  xerces-j2 >= 0:2.7.1
BuildRequires:  xml-commons-apis >= 0:1.3

Requires:       xerces-j2

Provides:       jaxp_transform_impl

%description
Xalan is an XSLT processor for transforming XML documents into HTML,
text, or other XML document types. It implements the W3C Recommendations
for XSL Transformations (XSLT) and the XML Path Language (XPath). It can
be used from the command line, in an applet or a servlet, or as a module
in other program.

%package        xsltc
Summary:        XSLT compiler
License:        ASL 2.0
Requires:       java_cup
Requires:       bcel
Requires:       regexp
Requires:       xerces-j2

%description    xsltc
The XSLT Compiler is a Java-based tool for compiling XSLT stylesheets into
lightweight and portable Java byte codes called translets.

%package        manual
Summary:        Manual for %{name}
License:        ASL 2.0

%description    manual
Documentation for %{name}.

%package        javadoc
Summary:        Javadoc for %{name}
License:        ASL 2.0

%description    javadoc
Javadoc for %{name}.

%package        demo
Summary:        Demo for %{name}
License:        ASL 2.0
Requires:       %{name} = %{epoch}:%{version}-%{release}
Requires:       glassfish-servlet-api

%description    demo
Demonstrations and samples for %{name}.

%prep
%setup -q -n xalan-j_%{cvs_version}
%patch0 -p0
%patch2 -p1

find . -name '*.jar' -delete
find . -name '*.class' -delete

sed -i '/<!-- Expand jaxp sources/,/<delete file="${xml-commons-srcs.tar}"/{d}' build.xml

# Remove classpaths from manifests
sed -i '/class-path/I d' $(find -iname '*manifest*')

# Convert CR-LF to LF-only
sed -i 's/\r//' KEYS LICENSE.txt NOTICE.txt xdocs/style/resources/script.js \
    xdocs/sources/xsltc/README* `find -name '*.sh'`

%mvn_file :xalan %{name} jaxp_transform_impl
%mvn_file :serializer %{name}-serializer
%mvn_file :xsltc xsltc
%mvn_package :xsltc xsltc

%build
pushd lib
ln -sf $(build-classpath java_cup-runtime) runtime.jar
ln -sf $(build-classpath bcel) BCEL.jar
ln -sf $(build-classpath regexp) regexp.jar
ln -sf $(build-classpath xerces-j2) xercesImpl.jar
ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
popd
pushd tools
ln -sf $(build-classpath java_cup) java_cup.jar
ln -sf $(build-classpath ant) ant.jar
popd
export CLASSPATH=$(build-classpath glassfish-servlet-api)

ant \
  -Djava.awt.headless=true \
  -Dapi.j2se=%{_javadocdir}/java \
  -Dbuild.xalan-interpretive.jar=build/xalan-interpretive.jar \
  xalan-interpretive.jar\
  xsltc.unbundledjar \
  docs \
  javadocs \
  samples \
  servlet

# inject OSGi manifests
jar ufm build/serializer.jar %{SOURCE1}
jar ufm build/xalan-interpretive.jar %{SOURCE5}

%mvn_artifact %{SOURCE2} build/xalan-interpretive.jar
%mvn_artifact %{SOURCE3} build/serializer.jar
%mvn_artifact %{SOURCE4} build/xsltc.jar

%install
%mvn_install -J build/docs/apidocs

# demo
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
install -p -m 644 build/xalansamples.jar \
  $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-samples.jar
install -p -m 644 build/xalanservlet.war \
  $RPM_BUILD_ROOT%{_datadir}/%{name}/%{name}-servlet.war
cp -pr samples $RPM_BUILD_ROOT%{_datadir}/%{name}

# fix link between manual and javadoc
(cd build/docs; ln -sf %{_javadocdir}/%{name} apidocs)

%post
# update-alternatives will remove the symlink - preserve it
mv %{_javadir}/jaxp_transform_impl.jar{,.tmp} || :
# alternatives removed in f26
update-alternatives --remove jaxp_transform_impl %{_javadir}/%{name}.jar &>/dev/null || :
# restore the symlink
mv %{_javadir}/jaxp_transform_impl.jar{.tmp,} || :

%files -f .mfiles
%license LICENSE.txt NOTICE.txt
%doc KEYS readme.html

%files xsltc -f .mfiles-xsltc
%license LICENSE.txt NOTICE.txt

%files manual
%license LICENSE.txt NOTICE.txt
%doc build/docs/*

%files javadoc
%license LICENSE.txt NOTICE.txt
%doc %{_javadocdir}/%{name}

%files demo
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20286 |21mr|xapian-core-1.4.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname xapian
%define major 30
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d

Summary:	Search engine library
Name:		xapian-core
Version:	1.4.19
Release:	1
License:	GPLv2+
Group:		Databases
Url:		http://www.xapian.org/
Source0:	http://www.oligarchy.co.uk/xapian/%{version}/%{name}-%{version}.tar.xz
%ifarch %{ix86} %{x86_64} %{armx}
BuildRequires:	valgrind
%endif
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(zlib)
Requires:	%{libname} = %{EVRD}
Obsoletes:	xapian < %{EVRD}
Provides:	xapian = %{EVRD}

%description
Xapian is an Open Source Search Engine Library, released under the GPL. It's
written in C++, with bindings to allow use from Perl, Python, PHP, Java, Tcl,
C#, and Ruby (so far!)

Xapian is a highly adaptable toolkit which allows developers to easily add
advanced indexing and search facilities to their own applications. It supports
the Probabilistic Information Retrieval model and also supports a rich set of
boolean query operators.

%files
%{_bindir}/copydatabase
%{_bindir}/xapian-delve
%{_bindir}/quest
%{_bindir}/simpleexpand
%{_bindir}/simpleindex
%{_bindir}/simplesearch
%{_bindir}/xapian-compact
%{_bindir}/xapian-check
%{_bindir}/xapian-metadata
%{_bindir}/xapian-pos
%{_bindir}/xapian-progsrv
%{_bindir}/xapian-replicate
%{_bindir}/xapian-replicate-server
%{_bindir}/xapian-tcpsrv
%{_datadir}/xapian-core
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for %{name}
Group:		System/Libraries
Obsoletes:	%{_lib}xapian15 < 1.2.2

%description -n %{libname}
Shared library for %{name}.

%files -n %{libname}
%{_libdir}/libxapian.so.%{major}*

#----------------------------------------------------------------------------

%package  -n %{devname}
Summary:	Development files for %{name}
Group:		Development/Other
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{oname}-devel = %{EVRD}
Provides:	lib%{oname}-devel = %{EVRD}

%description -n %{devname}
Development files and headers for %{name}.

%files -n %{devname}
%doc %{_docdir}/%{name}/
%dir %{_includedir}/xapian
%{_bindir}/xapian-config
%{_includedir}/xapian/*.h
%{_includedir}/*.h
%{_datadir}/aclocal/xapian.m4
%{_libdir}/libxapian.so
%{_libdir}/cmake/xapian/*.cmake
%{_libdir}/pkgconfig/xapian-core.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
%ifarch %{armx} %{riscv}
	--disable-sse \
%endif
	--enable-shared \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20287 |21mr|xapool-1.5.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          xapool
Version:       1.5.0
Release:       15
Summary:       Open source XA JDBC Pool
License:       LGPLv2+
Group:         Development/Java
URL:           http://xapool.ow2.org/
# wget http://download.forge.objectweb.org/xapool/xapool-1.5.0-src.tgz
# tar -xf xapool-1.5.0-src.tgz
# find xapool-1.5.0-src -name "*.jar" -delete
# find xapool-1.5.0-src -name "*.class" -delete
# find xapool-1.5.0-src -name "*.java~" -delete
# rm -rf $(find xapool-1.5.0-src -name "CVS")
# tar czf xapool-1.5.0-src-clean.tar.gz xapool-1.5.0-src
Source0:       %{name}-%{version}-src-clean.tar.gz
Source1:       http://repo1.maven.org/maven2/com/experlog/%{name}/%{version}/%{name}-%{version}.pom
# disable p6spy howl-logger oracle classes12 support
Patch0:        %{name}-%{version}-build.patch
Patch1:        %{name}-%{version}-jdk7.patch

BuildRequires: ant
BuildRequires: apache-commons-logging
BuildRequires: geronimo-jta
BuildRequires: java-devel
BuildRequires: javapackages-local

BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
XAPool is a software component which allows to:

 - Store objects with a Generic Pool
 - Export a DataSource (javax.sql.DataSource)
 - Export a XADataSource (javax.sql.XADataSource)

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{version}-src
find . -name "*.jar" -delete
find . -name "*.class" -delete
find . -name "*.java~" -delete

rm -rf $(find . -name "CVS")

%patch0 -p0
%patch1 -p1
sed -i "s|Class-Path: idb.jar classes12.jar jta-spec1_0_1.jar log4j.jar commons-logging.jar p6psy.jar||" archive/xapool.mf

ln -sf $(build-classpath commons-logging) externals/
ln -sf $(build-classpath geronimo-jta) externals/

rm -r src/org/enhydra/jdbc/instantdb \
  src/org/enhydra/jdbc/oracle

%mvn_file com.experlog:%{name} %{name}

%build

ant dist

%install
%mvn_artifact %{SOURCE1} output/dist/lib/%{name}.jar
%mvn_install -J output/dist/jdoc

%files -f .mfiles
%doc README.txt

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20288 |21mr|xapps-2.2.8-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	xapp

%define	major 1
%define gir_major 1.0
%define	libname %mklibname %{oname} %{major}
%define girname %mklibname %{oname}-gir %{gir_major}
%define	devname %mklibname %{oname} -d

Summary:	Common files for XApp desktop apps
Name:		xapps
Version:	2.2.8
Release:	3
License:	GPLv2+ and LGPLv2+
Group:		Graphical desktop/Other
Url:		https://github.com/linuxmint/xapps
Source0:	https://github.com/linuxmint/xapps/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	http://packages.linuxmint.com/pool/main/f/flags/flags_1.0.2.tar.xz
BuildRequires:	gtk-doc
BuildRequires:	meson
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(dbusmenu-gtk3-0.4)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libgnomekbd)
BuildRequires:	pkgconfig(pygobject-3.0)
Requires:	%{libname} = %{EVRD}
Requires:	%{name}-desktop-schemas = %{EVRD}
Requires:	%{name}-icons = %{EVRD}
# pull XFCE-specific script if XFCE is installed (that script calls xfconf-query)
Requires:	(%{name}-xfce = %{EVRD} if %{_bindir}/xfconf-query)

%description
This project gathers the components which are common
to multiple desktop environments and required to implement
cross-DE solutions.

%files -f %{oname}.lang
%license COPYING
%doc AUTHORS README.md
%{_bindir}/pastebin
%{_bindir}/upload-system-info
%{_datadir}/dbus-1/services/org.mate.panel.applet.MateXAppStatusAppletFactory.service
%{_datadir}/dbus-1/services/org.x.StatusNotifierWatcher.service
%{_datadir}/format
%{_datadir}/glade/catalogs/%{oname}-glade-catalog.xml
%{_datadir}/iso-flag-png/*.png
%{_datadir}/mate-panel/applets/org.x.MateXAppStatusApplet.mate-panel-applet
%{_libexecdir}/%{name}/__pycache__/applet_constants.cpython-*.pyc
%{_libexecdir}/%{name}/__pycache__/mate-%{oname}-status-applet.cpython-*.pyc
%{_libexecdir}/%{name}/applet_constants.py
%{_libexecdir}/%{name}/mate-%{oname}-status-applet.py
%{_libexecdir}/%{name}/sn-watcher/%{oname}-sn-watcher
%{_sysconfdir}/X11/xinit.d/80%{oname}-gtk3-module.sh
%{_sysconfdir}/xdg/autostart/%{oname}-sn-watcher.desktop

#----------------------------------------------------------------------------

%package icons
Summary:	Icons for xapps
Group:		Graphical desktop/Other
# splitted from the main package (used in e.g. xviewer)
Conflicts:	%{name} < 2.2.8-3

%description icons
This package contains icons for xapps.

%files icons
%license COPYING
%doc AUTHORS
%{_iconsdir}/hicolor/scalable/*/*.svg

#----------------------------------------------------------------------------

# xviewer uses xapps-desktop-schemas, xapps-icons and can call xfce4-set-wallpaper
# if XDG_CURRENT_DESKTOP=xfce, but it does not need other parts of xapps

%package xfce
Summary:	XFCE-specific parts of xapps
Group:		Graphical desktop/Xfce
# splitted from the main package
Conflicts:	%{name} < 2.2.8-3

%description xfce
XFCE-specific parts of xapps

%files xfce
%license COPYING
%doc AUTHORS
%{_bindir}/xfce4-set-wallpaper

#----------------------------------------------------------------------------

%package desktop-schemas
Summary:	Schemas for %{name}
Group:		Graphical desktop/Other
Requires:	glib2.0-common

%description desktop-schemas
This package contains schemas for %{name}.

%files desktop-schemas
%license COPYING
%doc AUTHORS
%{_datadir}/glib-2.0/schemas/org.x.apps.gschema.xml

#----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python3 bindings for %{name}
Group:		Development/Python
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-python = %{EVRD}

%description -n python3-%{name}
This package contains the python3 bindings for %{name}.

%files -n python3-%{name}
%license COPYING
%doc AUTHORS
%{python3_sitearch}/gi/overrides/XApp.py
%{python3_sitearch}/gi/overrides/__pycache__/XApp.cpython-*.pyc

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	XApp library
Group:		System/Libraries

%description -n %{libname}
Shared library used by Xapp apps.

%files -n %{libname}
%license COPYING
%doc AUTHORS
%{_libdir}/lib%{oname}.so.%{major}
%{_libdir}/lib%{oname}.so.%{version}

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface description for %{name}
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{girname}
GObject Introspection interface description for %{name}.

%files -n %{girname}
%license COPYING
%doc AUTHORS
%{_libdir}/girepository-1.0/XApp-%{gir_major}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{libname}
Group:		Development/C
Requires:	%{girname} = %{EVRD}
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Files for development with %{name}.

%files -n %{devname}
%license COPYING
%doc AUTHORS
%{_datadir}/gir-1.0/XApp-%{gir_major}.gir
%{_datadir}/gtk-doc/html/lib%{oname}
%{_datadir}/vala/vapi/%{oname}.*
%{_includedir}/%{oname}/lib%{oname}/%{oname}-*.h
%{_libdir}/gtk-3.0/modules/lib%{oname}-gtk3-module.so
%{_libdir}/lib%{oname}.so
%{_libdir}/pkgconfig/%{oname}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%meson -Ddocs=true
%meson_build

%install
%meson_install
tar -xf %{SOURCE1} -C %{buildroot}%{_datadir} --strip 3

%find_lang %{oname}

# ROSA has another directory
mkdir -p %{buildroot}%{_sysconfdir}/X11/xinit.d
mv %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d/80%{oname}-gtk3-module.sh %{buildroot}%{_sysconfdir}/X11/xinit.d
rmdir %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc.d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20289 |21mr|xauth-1.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X authority file utility
Name:		xauth
Version:	1.1
Release:	5
Epoch:		1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xtrans)

%description
The xauth program is used to edit and display the authorization information
used in connecting to the X server. This program is usually used to extract
authorization records from one machine and merge them in on another (as is the
case when using remote logins or granting access to other users).

%files
%{_bindir}/xauth
%{_mandir}/man1/xauth.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20290 |21mr|Xaw3d-1.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 7
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A version of the MIT Athena widget set for X
Name:		Xaw3d
Version:	1.6.3
Release:	1
License:	MIT
Group:		System/Libraries
Url:		ftp://ftp.x.org/contrib/widgets/Xaw3d/
Source0:	http://xorg.freedesktop.org/individual/lib/lib%{name}-%{version}.tar.bz2
Patch1:		libXaw3d-soname-7.patch
BuildRequires:	bison
BuildRequires:	flex
BuildRequires:	imake
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xt)
BuildRequires:	x11-util-macros

%description
Xaw3d is an enhanced version of the MIT Athena Widget set for
the X Window System. Xaw3d adds a three-dimensional look to applications
with minimal or no source code changes.

You should install Xaw3d if you are using applications which incorporate
the MIT Athena widget set and you'd like to incorporate a 3D look into
those applications.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A version of the MIT Athena widget set for X
Group:		System/Libraries

%description -n %{libname}
Xaw3d is an enhanced version of the MIT Athena Widget set for
the X Window System. Xaw3d adds a three-dimensional look to applications
with minimal or no source code changes.

You should install Xaw3d if you are using applications which incorporate
the MIT Athena widget set and you'd like to incorporate a 3D look into
those applications.

%files -n %{libname}
%{_libdir}/libXaw3d.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries for development using Xaw3d
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Xaw3d is an enhanced version of the MIT Athena widget set for
the X Window System. Xaw3d adds a three-dimensional look to those
applications with minimal or no source code changes. Xaw3d-devel includes
the header files and static libraries for developing programs that take
full advantage of Xaw3d's features.

You should install Xaw3d-devel if you are going to develop applications
using the Xaw3d widget set.  You'll also need to install the Xaw3d
package.

%files -n %{devname}
%{_includedir}/X11/Xaw3d
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%setup -q -n lib%{name}-%{version}
%apply_patches

libtoolize --force
aclocal
automake -a
autoconf

%configure \
                --enable-arrow-scrollbars \
                --enable-gray-stipples \
                --disable-static

%install
%makeinstall_std
# Useless as it contains mostly build instructions
rm -rf %{buildroot}%{_docdir}/lib%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20291 |21mr|xbean-4.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without     equinox
%bcond_without     groovy
%bcond_without     spring
%bcond_with        blueprint

Name:           xbean
Summary:        Java plugin based web server
Version:        4.14
Release:        1
License:        ASL 2.0

URL:            http://geronimo.apache.org/xbean/
Source0:        http://repo2.maven.org/maven2/org/apache/%{name}/%{name}/%{version}/%{name}-%{version}-source-release.zip

# Compatibility with Eclipse Luna (rhbz#1087461)
Patch1:         0002-Port-to-Eclipse-Luna-OSGi.patch
Patch2:         0003-Port-to-QDox-2.0.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-logging:commons-logging-api)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:1.2.12)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
BuildRequires:  mvn(org.osgi:org.osgi.core)
BuildRequires:  mvn(org.ow2.asm:asm)
BuildRequires:  mvn(org.ow2.asm:asm-commons)
BuildRequires:  mvn(org.slf4j:slf4j-api)

%if %{with equinox}
BuildRequires:  mvn(org.eclipse:osgi)
%endif

%if %{with groovy}
BuildRequires:  mvn(org.codehaus.groovy:groovy-all)
%endif

%if %{with spring}
BuildRequires:  mvn(ant:ant)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(com.thoughtworks.qdox:qdox)
BuildRequires:  mvn(org.apache.maven:maven-archiver)
BuildRequires:  mvn(org.apache.maven:maven-artifact)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven:maven-project)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.codehaus.plexus:plexus-archiver)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(org.springframework:spring-beans)
BuildRequires:  mvn(org.springframework:spring-context)
BuildRequires:  mvn(org.springframework:spring-web)
%endif

%description
The goal of XBean project is to create a plugin based server
analogous to Eclipse being a plugin based IDE. XBean will be able to
discover, download and install server plugins from an Internet based
repository. In addition, we include support for multiple IoC systems,
support for running with no IoC system, JMX without JMX code,
lifecycle and class loader management, and a rock solid Spring
integration.


%if %{with spring}
# blueprint module fails to compile
%if %{with blueprint}
%package        blueprint
Summary:        Schema-driven namespace handler for Apache Aries Blueprint

%description    blueprint
This package provides %{summary}.
%endif

%package        classloader
Summary:        A flexibie multi-parent classloader

%description    classloader
This package provides %{summary}.

%package        spring
Summary:        Schema-driven namespace handler for spring contexts
Requires:       %{name} = %{version}-%{release}

%description    spring
This package provides %{summary}.

%package        -n maven-%{name}-plugin
Summary:        XBean plugin for Apache Maven

%description    -n maven-%{name}-plugin
This package provides %{summary}.
%endif


%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.


%prep
%setup -q
# build failing on this due to doxia-sitetools problems
rm src/site/site.xml

%if %{with equinox}
%patch1 -p1
%endif
%patch2 -p1

%pom_remove_parent
%pom_remove_dep mx4j:mx4j

# Unshade ASM
%pom_remove_dep -r :xbean-asm7-shaded
%pom_remove_dep -r :xbean-finder-shaded
%pom_disable_module xbean-asm7-shaded
%pom_disable_module xbean-finder-shaded
%pom_add_dep org.apache.xbean:xbean-asm-util:%{version} xbean-reflect
%pom_xpath_remove pom:optional xbean-reflect xbean-asm-util
%pom_xpath_remove 'pom:scope[text()="provided"]' xbean-reflect xbean-asm-util
sed -i 's/org\.apache\.xbean\.asm7/org.objectweb.asm/g' `find xbean-reflect -name '*.java'`

# Prevent modules depending on springframework from building.
%if %{without spring}
   %pom_remove_dep org.springframework:
   #%%pom_disable_module xbean-blueprint
   %pom_disable_module xbean-classloader
   %pom_disable_module xbean-spring
   %pom_disable_module maven-xbean-plugin
%else
   %mvn_package :xbean-classloader classloader
   %mvn_package :xbean-spring spring
   %mvn_package :maven-xbean-plugin maven-xbean-plugin
%endif
# blueprint FTBFS, disable for now
%pom_disable_module xbean-blueprint

%if %{without equinox}
  %pom_remove_dep :xbean-bundleutils xbean-finder
  rm -r xbean-finder/src/main/java/org/apache/xbean/finder{,/archive}/Bundle*
  %pom_disable_module xbean-bundleutils
%endif

%if %{without groovy}
%pom_disable_module xbean-telnet
%endif

# maven-xbean-plugin invocation makes no sense as there are no namespaces
%pom_remove_plugin :maven-xbean-plugin xbean-classloader

# As auditing tool RAT is useful for upstream only.
%pom_remove_plugin :apache-rat-plugin

# disable copy of internal aries-blueprint
sed -i "s|<Private-Package>|<!--Private-Package>|" xbean-blueprint/pom.xml
sed -i "s|</Private-Package>|</Private-Package-->|" xbean-blueprint/pom.xml


%build
%mvn_build %{?with_spring:-f}


%install
%mvn_install


%files -f .mfiles
%doc LICENSE NOTICE

%if %{with spring}
%if %{with blueprint}
%files blueprint -f .mfiles-blueprint
%doc LICENSE NOTICE %{name}-blueprint/target/restaurant.xsd*
%endif
%files classloader -f .mfiles-classloader
%doc LICENSE NOTICE

%files spring -f .mfiles-spring
%doc LICENSE NOTICE

%files -n maven-%{name}-plugin -f .mfiles-maven-%{name}-plugin
%doc LICENSE NOTICE
%endif

%files javadoc -f .mfiles-javadoc
%doc LICENSE NOTICE



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20292 |21mr|xbiff-1.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Mailbox flag for X
Name:		xbiff
Version:	1.0.4
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-data-bitmaps
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xext)
BuildRequires:  pkgconfig(xmu)
BuildRequires:  pkgconfig(x11)

%description
The xbiff program displays a little image of a mailbox. When there is no mail,
the flag on the mailbox is down. When mail arrives, the flag goes up and the
mailbox beeps.

%files
%{_bindir}/xbiff
%{_mandir}/man1/xbiff.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20293 |21mr|xcalc-1.1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: xcalc
Version:	1.1.0
Release:	1
Summary: Scientific calculator for X

Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: libxt-devel >= 1.0.0
BuildRequires: libxaw-devel >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
Xcalc is a scientific calculator desktop accessory that can emulate a TI-30
or an HP-10C.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xcalc
%{_datadir}/X11/app-defaults/XCalc
%{_datadir}/X11/app-defaults/XCalc-color
%{_mandir}/man1/xcalc.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20294 |21mr|xcb-util-0.4.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xcb-util %{major}
%define devname %mklibname xcb-util -d

Summary:	A number of libraries which sit on top of libxcb
Name:		xcb-util
Version:	0.4.1
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xcb.freedesktop.org
Source0:	http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.xz
BuildRequires:	gperf
BuildRequires:	x11-util-macros
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(xcb)

%description
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	xcb-util library package
Group:		System/X11
Conflicts:	%{_lib}xcb1 < 1.7-2
Conflicts:	%{_lib}xcb-composite0 < 1.7-2
Conflicts:	%{_lib}xcb-damage0 < 1.7-2
Conflicts:	%{_lib}xcb-dpms0 < 1.7-2
Conflicts:	%{_lib}xcb-dri2_0 < 1.7-2
Conflicts:	%{_lib}xcb-glx0 < 1.7-2
Conflicts:	%{_lib}xcb-randr0 < 1.7-2
Conflicts:	%{_lib}xcb-render0 < 1.7-2
Conflicts:	%{_lib}xcb-record0 < 1.7-2
Conflicts:	%{_lib}xcb-res0 < 1.7-2
Conflicts:	%{_lib}xcb-screensaver0 < 1.7-2
Conflicts:	%{_lib}xcb-shape0 < 1.7-2
Conflicts:	%{_lib}xcb-shm0 < 1.7-2
Conflicts:	%{_lib}xcb-sync0 < 1.7-2
Conflicts:	%{_lib}xcb-xevie0 < 1.7-2
Conflicts:	%{_lib}xcb-xf86dri0 < 1.7-2
Conflicts:	%{_lib}xcb-xfixes0 < 1.7-2
Conflicts:	%{_lib}xcb-xinerama0 < 1.7-2
Conflicts:	%{_lib}xcb-xprint0 < 1.7-2
Conflicts:	%{_lib}xcb-xtest0 < 1.7-2
Conflicts:	%{_lib}xcb-xv0 < 1.7-2
Conflicts:	%{_lib}xcb-xvmc0 < 1.7-2

%description -n %{libname}
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

%files -n %{libname}
%{_libdir}/libxcb-util.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	A number of libraries which sit on top of libxcb
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	xcb-util-devel = %{EVRD}
Obsoletes:	%{_lib}xcb-static-devel < 0.3.9

%description -n %{devname}
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

%files -n %{devname}
%{_includedir}/xcb/xcb_atom.h
%{_includedir}/xcb/xcb_aux.h
#%{_includedir}/xcb/xcb_bitops.h
%{_includedir}/xcb/xcb_event.h
%{_includedir}/xcb/xcb_util.h
%{_libdir}/libxcb-util.so
%{_libdir}/pkgconfig/xcb-atom.pc
%{_libdir}/pkgconfig/xcb-aux.pc
%{_libdir}/pkgconfig/xcb-event.pc
%{_libdir}/pkgconfig/xcb-util.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20295 |21mr|xcb-util-cursor-0.1.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname xcb-cursor %{major}
%define devname %mklibname xcb-cursor -d

Summary:	xcb-util's xcb-cursor
Name:		xcb-util-cursor
Version:	0.1.3
Release:	5
License:	MIT
Group:		System/X11
Url:		http://xcb.freedesktop.org
Source0:	http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(xcb-image)
BuildRequires:	pkgconfig(xcb-render)
BuildRequires:	pkgconfig(xcb-renderutil)
BuildRequires:	pkgconfig(xorg-macros)

%description
This is the libXcursor port to XCB.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	xcb-util-cursor library package
Group:		System/X11
Obsoletes:	%{_lib}xcb-util-cursor0 < 0.1.1-2

%description -n %{libname}
This is the libXcursor port to XCB.

%files -n %{libname}
%{_libdir}/libxcb-cursor.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	xcb-util-cursor development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}xcb-util-cursor-devel < 0.1.1-2

%description -n %{devname}
This pakcage includes the development files required to build software against
%{name}.

%files -n %{devname}
%doc ChangeLog NEWS README
%{_includedir}/xcb/*.h
%{_libdir}/libxcb-cursor.so
%{_libdir}/pkgconfig/xcb-cursor.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure --disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20296 |21mr|xcb-util-image-0.4.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d
%define develnamest %mklibname %{name} -d -s

Summary:	xcb-util's xcb-image
Name:		xcb-util-image
Version:	0.4.0
Release:	6
Url:		http://xcb.freedesktop.org
Source0:	http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
License:	MIT
Group:		System/X11
Patch0:		werror-fix.patch
BuildRequires:	xcb-util-devel >= 0.3.9
BuildRequires:	x11-util-macros

%description
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

%package -n %{libname}
Summary:	xcb-util-image library package
Group:		System/X11
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	xcb-util-image = %{EVRD}

%description -n %{libname}
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

This is the xcb-util-image library package.

%package -n %{develname}
Summary:	xcb-util-image development files
Group:		Development/C
Provides:	libxcb-util-image-devel = %{version}-%{release}
Provides:	xcb-util-image-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Conflicts:	%{mklibname xcb-util -d} < 0.3.9
Conflicts:	%{mklibname xcb-util -d -s} < 0.3.9

%description -n %{develname}
This pakcage includes the development files required to build software against
%{name}.


%package -n %{develnamest}
Summary:	xcb-util-image development files
Group:		Development/C
Provides:	libxcb-util-image-devel-static = %{version}-%{release}
Provides:	xcb-util-image-devel-static = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Requires:	xcb-util-image-devel = %{version}-%{release}
Conflicts:	%{mklibname xcb-util -d} < 0.3.9
Conflicts:	%{mklibname xcb-util -d -s} < 0.3.9

%description -n %{develnamest}
This pakcage includes the development files required to build software against
%{name}.


%prep
%autosetup -p1

%build
%configure --enable-static
%make_build

%install
rm -rf %{buildroot}
%make_install

%files -n %{libname}
%{_libdir}/libxcb-image.so.%{major}*

%files -n %{develname}
%doc ChangeLog NEWS README
%{_includedir}/xcb/xcb_image.h
%{_includedir}/xcb/xcb_pixel.h
%{_includedir}/xcb/xcb_bitops.h
%{_libdir}/libxcb-image.so
%{_libdir}/pkgconfig/xcb-image.pc

%files -n %{develnamest}
%{_libdir}/libxcb-image.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20297 |21mr|xcb-util-keysyms-0.4.0-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	xcb-util's xcb-keysyms
Name:		xcb-util-keysyms
Version:	0.4.0
Release:	9
Url:		http://xcb.freedesktop.org
Source0:	http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
License:	MIT
Group:		System/X11
BuildRequires:	xcb-util-devel >= 0.3.9
BuildRequires:	x11-util-macros

%description
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	xcb-util-keysyms library package
Group:		System/X11
Conflicts:	%{mklibname xcb-keysyms 1} < 0.3.9
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	xcb-util-keysyms = %{EVRD}

%description -n %{libname}
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

This is the xcb-util-keysyms library package.

%files -n %{libname}
%{_libdir}/libxcb-keysyms.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	xcb-util-keysyms development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libxcb-util-keysyms-devel = %{EVRD}
Provides:	xcb-util-keysyms-devel = %{EVRD}
Conflicts:	%{mklibname xcb-util -d} < 0.3.9
Conflicts:	%{mklibname xcb-util -d -s} < 0.3.9

%description -n %{devname}
This pakcage includes the development files required to build software against
%{name}.

%files -n %{devname}
%doc ChangeLog NEWS README
%{_includedir}/xcb/xcb_keysyms.h
%{_libdir}/libxcb-keysyms.so
%{_libdir}/pkgconfig/xcb-keysyms.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-static
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20298 |21mr|xcb-util-renderutil-0.3.9-9
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define develname %mklibname %{name} -d

Summary:	Xcb-util's xcb-renderutil

Name:		xcb-util-renderutil
Version:	0.3.9
Release:	9
Url:		http://xcb.freedesktop.org
Source0:	http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
License:	MIT
Group:		System/X11
BuildRequires:	xcb-util-devel >= 0.3.8
BuildRequires:	x11-util-macros

%description
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

%package -n %{libname}
Summary:	xcb-util-renderutil library package
Group:		System/X11
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	xcb-util-renderutil = %{EVRD}

%description -n %{libname}
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

This is the xcb-util-renderutil library package.

%package -n %{develname}
Summary:	xcb-util-renderutil development files

Group:		Development/C
Provides: 	libxcb-util-renderutil-devel = %{version}-%{release}
Provides:	xcb-util-renderutil-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Conflicts:	%{mklibname xcb-util -d} < 0.3.8
Conflicts:	%{mklibname xcb-util -d -s} < 0.3.8

%description -n %{develname}
This pakcage includes the development files required to build software against
%{name}.

%prep
%setup -q

%build
%configure --enable-static
%make

%install
%makeinstall_std

%files -n %{libname}
%doc ChangeLog NEWS README
%{_libdir}/libxcb-render-util.so.%{major}*

%files -n %{develname}
%{_includedir}/xcb/xcb_renderutil.h
%{_libdir}/libxcb-render-util.a
%{_libdir}/libxcb-render-util.so
%{_libdir}/pkgconfig/xcb-renderutil.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20299 |21mr|xcb-util-wm-0.4.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ewmh_major 2
%define icccm_major 4

%define libewmh %mklibname xcb-ewmh %{ewmh_major}
%define libicccm %mklibname xcb-icccm %{icccm_major}
%define develname %mklibname %{name} -d
%define develnamest %mklibname %{name} -d -s

Summary:	xcb-util-wm

Name:		xcb-util-wm
Version:	0.4.1
Release:	10
Url:		http://xcb.freedesktop.org
Source0:	http://xcb.freedesktop.org/dist/%{name}-%{version}.tar.bz2
License:	MIT
Group:		System/X11
BuildRequires:	xcb-util-devel >= 0.3.9
BuildRequires:	x11-util-macros

%description
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

%package -n %{libewmh}
Summary:	Xcb-ewmh library package
Group:		System/X11
# compat with Fedora/RH
# it is a separate package in Fedora/RH
Provides:	xcb-util-wm = %{EVRD}


%description -n %{libewmh}
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

%package -n %{libicccm}
Summary:	Xcb-icccm library package

Group:		System/X11

%description -n %{libicccm}
The xcb-util module provides a number of libraries which sit on top of
libxcb, the core X protocol library, and some of the extension
libraries. These experimental libraries provide convenience functions
and interfaces which make the raw X protocol more usable. Some of the
libraries also provide client-side code which is not strictly part of
the X protocol but which have traditionally been provided by Xlib.

%package -n %{develname}
Summary:	xcb-util-wm development headers

Group:		Development/C
Provides:	libxcb-util-wm-devel = %{version}-%{release}
Provides:	xcb-util-wm-devel = %{version}-%{release}
Requires:	%{libewmh} = %{version}-%{release}
Requires:	%{libicccm} = %{version}-%{release}
Conflicts:	%{mklibname xcb-util -d} < 0.3.9
Conflicts:	%{mklibname xcb-util -d -s} < 0.3.9

%description -n %{develname}
This package includes the development files required to build software against
%{name}.

%package -n %{develnamest}
Summary:	xcb-util-wm development static files

Group:		Development/C
Provides:	libxcb-util-wm-devel-static = %{version}-%{release}
Provides:	xcb-util-wm-devel-static = %{version}-%{release}
Requires:	%{libewmh} = %{version}-%{release}
Requires:	%{libicccm} = %{version}-%{release}
Requires:	xcb-util-wm-devel = %{version}-%{release}
Conflicts:	%{mklibname xcb-util -d} < 0.3.9
Conflicts:	%{mklibname xcb-util -d -s} < 0.3.9

%description -n %{develnamest}
This package includes the static development
files required to build software against
%{name}.

%prep
%setup -q

%build
%configure --enable-static
%make

%install
%makeinstall_std

%files -n %{libewmh}
%{_libdir}/libxcb-ewmh.so.%{ewmh_major}*

%files -n %{libicccm}
%{_libdir}/libxcb-icccm.so.%{icccm_major}*

%files -n %{develnamest}
%{_libdir}/libxcb-ewmh.a
%{_libdir}/libxcb-icccm.a

%files -n %{develname}
%doc ChangeLog NEWS README
%{_includedir}/xcb/xcb_ewmh.h
%{_includedir}/xcb/xcb_icccm.h
%{_libdir}/libxcb-ewmh.so
%{_libdir}/libxcb-icccm.so
%{_libdir}/pkgconfig/xcb-ewmh.pc
%{_libdir}/pkgconfig/xcb-icccm.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20300 |21mr|xclipboard-1.1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xclipboard
Version:	1.1.3
Release:	6
Summary:	X clipboard client

Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: libxt-devel >= 1.0.0
BuildRequires: libxaw-devel >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
The xclipboard program is used to collect and display text selections that are
sent to the clipboard by other clients. It is typically used to save clipboard
selections for later use. It stores each clipboard selection as a separate
string, each of which can be selected. Each time clipboard is asserted by
another application, xclipboard transfers the contents of that selection to a
new buffer and displays it in the text window.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xclipboard
%{_bindir}/xcutsel
%{_datadir}/X11/app-defaults/XClipboard
%{_mandir}/man1/xclipboard.*
%{_mandir}/man1/xcutsel.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20301 |21mr|xclock-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure %nil

Summary:	Analog / digital clock for X
Name:	    xclock
Version:	1.1.1
Release:	1
License:	MIT
Group:	    Development/X11
Url:	    http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz


BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xt) >= 1.0.0
BuildRequires:	pkgconfig(xaw7) >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	pkgconfig(xrender) >= 0.9.0
BuildRequires:	pkgconfig(xft) >= 2.1.8.2
BuildRequires:	pkgconfig(xkbfile) >= 1.0.1

%description
The xclock program displays the time in analog or digital form. The time is
continuously updated at a frequency which may be specified by the user.

%prep
%setup -q

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%doc COPYING ChangeLog README.md
%{_bindir}/xclock
%{_datadir}/X11/app-defaults/XClock-color
%{_datadir}/X11/app-defaults/XClock
%{_mandir}/man1/xclock.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20302 |21mr|xcmsdb-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Device Color Characterization utility for X Color Management System
Name:		xcmsdb
Version:	1.0.6
Release:	1
License:	MIT
Group:		Development/X11
Url:	    http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
xcmsdb is used to load, query, or remove Device Color Characterization
data stored in properties on the root window of the screen as 
specified in section 7, Device Color Characterization, of the ICCCM.
Device Color Characterization data (also called the Device Profile) is
an integral part of Xlib's X Color Management System (Xcms), necessary
for proper conversion of color specification between device-
independent and device-dependent forms.

%prep
%setup -q

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/xcmsdb
%{_mandir}/man1/xcmsdb.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20303 |21mr|xconsole-1.0.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Monitor system console messages with X
Name:		xconsole
Version:	1.0.8
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
BuildRequires:	x11-util-macros
BuildRequires:	libxaw-devel
BuildRequires:	libxt-devel

%description
The xconsole program displays messages which are usually sent to /dev/console.

%files
%{_bindir}/xconsole
%{_datadir}/X11/app-defaults/XConsole
%{_mandir}/man1/xconsole.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20304 |21mr|xcursorgen-1.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: xcursorgen
Version:	1.0.7
Release:	2
Summary: Create an X cursor file from a collection of PNG images

Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: pkgconfig(libpng) >= 1.2.8
BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xcursor) >= 1.1.5.2
BuildRequires: x11-util-macros >= 1.0.1

%description
Xcursorgen creates an X cursor file from a collection of PNG images.

%prep
%setup -q -n %{name}-%{version}

%build
%configure --x-includes=%{_includedir}\
--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xcursorgen
%{_mandir}/man1/xcursorgen.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20305 |21mr|xdg-compliance-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xdg-compliance
Version:	1.3.1
Release:	1
License:	 MIT
URL:		https://gitlab.com/somini/xdg-autostart
Source0:	xdg-autostart-v%{version}.tar.gz
Source1:	xdg-autostart.xinit
Source2:	update-menus.xinit
BuildRequires:	meson
BuildRequires:	vala
BuildRequires:	pkgconfig(glib-2.0)

#------------------------------------------------------------------------------#

# package xdg-compliance

Summary:	Packages to help old desktop environments follow XDG standards
Group:		Graphical desktop/Other

Requires:	%{name}-autostart
Requires:	%{name}-menu

%description
This meta-package requires %{name}-autostart and %{name}-menu.

%files

#------------------------------------------------------------------------------#

%package autostart
Summary:	XDG Autostart compliance for old desktop environments
Group:		Graphical desktop/Other

%description autostart
This package provides a xinit.d script that emulates XDG Autostart compliance
for old desktop environments.

%files autostart
%{_bindir}/xdg-autostart
%{_sysconfdir}/X11/xinit.d/xdg-autostart

#------------------------------------------------------------------------------#

%package menu
Summary:	User menus for old desktop environments based on XDG Menu
Group:		Graphical desktop/Other

%description menu
This package creates user-level menus for old desktop environments following
the XDG Menu standard.

%files menu
%{_sysconfdir}/X11/xinit.d/update-menus

#------------------------------------------------------------------------------#

%prep
%autosetup -p1 -n xdg-autostart-v%{version}

%build
%meson
%meson_build

%install
install -D -m 755 %{_target_platform}/xdg-autostart %{buildroot}%{_bindir}/xdg-autostart

install -D -m 755 %{SOURCE1} %{buildroot}%{_sysconfdir}/X11/xinit.d/xdg-autostart
install -D -m 755 %{SOURCE2} %{buildroot}%{_sysconfdir}/X11/xinit.d/update-menus

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20306 |21mr|xdg-dbus-proxy-0.1.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xdg-dbus-proxy
Version:        0.1.2
Release:        2
Summary:        Filtering proxy for D-Bus connections
Group:          Security
License:        LGPLv2+
URL:            https://github.com/flatpak/xdg-dbus-proxy/
Source0:        https://github.com/flatpak/xdg-dbus-proxy/releases/download/%{version}/%{name}-%{version}.tar.xz

BuildRequires:  docbook-style-xsl
BuildRequires:  pkgconfig(gio-2.0)
BuildRequires:  pkgconfig(gio-unix-2.0)
BuildRequires:  pkgconfig(glib-2.0)
BuildRequires:  xsltproc
BuildRequires:  autoconf-archive
BuildRequires:  autoconf

Requires:       dbus

%description
xdg-dbus-proxy is a filtering proxy for D-Bus connections. It was originally
part of the flatpak project, but it has been broken out as a standalone module
to facilitate using it in other contexts.

%prep
%autosetup -p1

%build
autoreconf -fi
%configure
%make_build

%install
%make_install

%files
%license COPYING
%{_bindir}/xdg-dbus-proxy
%{_mandir}/man1/xdg-dbus-proxy.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20307 |21mr|xdg-desktop-portal-1.14.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_without geoclue
%bcond_without pipewire

Summary:	Portal frontend service to flatpak
Name:		xdg-desktop-portal
Version:	1.14.4
Release:	2
License:	LGPLv2+
Group:		System/Configuration/Packaging
Url:		https://github.com/flatpak/xdg-desktop-portal/
Source0:	https://github.com/flatpak/xdg-desktop-portal/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(libportal)
%if %{with geoclue}
BuildRequires:	pkgconfig(libgeoclue-2.0)
%endif
%if %{with pipewire}
BuildRequires:	pkgconfig(libpipewire-0.3)
%endif
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(flatpak)
BuildRequires:	pkgconfig(fuse3)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
Requires(post,preun):	systemd

%description
xdg-desktop-portal works by exposing a series of D-Bus interfaces known as
portals under a well-known name (org.freedesktop.portal.Desktop) and object
path (/org/freedesktop/portal/desktop). The portal interfaces include APIs for
file access, opening URIs, printing and others.

%files -f %{name}.lang
%{_libexecdir}/xdg-desktop-portal
%{_libexecdir}/xdg-document-portal
%{_libexecdir}/xdg-permission-store
%{_libexecdir}/xdg-desktop-portal-rewrite-launchers
%{_libexecdir}/xdg-desktop-portal-validate-icon
%{_datadir}/dbus-1/services/org.freedesktop.portal.Desktop.service
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.PermissionStore.service
%{_datadir}/dbus-1/services/org.freedesktop.portal.Documents.service
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/*
%{_userunitdir}/%{name}.service
%{_userunitdir}/xdg-document-portal.service
%{_userunitdir}/xdg-permission-store.service
%{_userunitdir}/xdg-desktop-portal-rewrite-launchers.service

%post
%systemd_user_post %{name}.service
%systemd_user_post xdg-document-portal.service
%systemd_user_post xdg-permission-store.service
%systemd_user_post xdg-desktop-portal-rewrite-launchers.service

%preun
%systemd_user_preun %{name}.service
%systemd_user_preun xdg-document-portal.service
%systemd_user_preun xdg-permission-store.service
%systemd_user_preun xdg-desktop-portal-rewrite-launchers.service
#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/Other

%description devel
Development files for %{name}.

%files devel
%{_datadir}/dbus-1/interfaces/org.freedesktop.portal.*.xml
%{_datadir}/dbus-1/interfaces/org.freedesktop.impl.portal.*.xml
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--disable-docbook-docs \
%if %{with geoclue}
	--enable-geoclue \
%else
	--disable-geoclue \
%endif
%if %{with pipewire}
	--enable-pipewire
%else
	--disable-pipewire
%endif

%make

%install
%make_install

# This directory is used by implementations such as xdg-desktop-portal-gtk
mkdir -p %{buildroot}%{_datadir}/%{name}/portals

#move pkgconfig to right place
mkdir -p %{buildroot}%{_libdir}/pkgconfig
cp -r %{buildroot}%{_datadir}/pkgconfig/*  %{buildroot}%{_libdir}/pkgconfig/
rm -r %{buildroot}%{_datadir}/pkgconfig

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20308 |21mr|xdg-desktop-portal-gnome-42.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Backend implementation for xdg-desktop-portal using GNOME
Name:		xdg-desktop-portal-gnome
Version:	42.3
Release:	3
Group:		Graphical desktop/GNOME
License:	LGPLv2+
Url:		https://download.gnome.org/sources/xdg-desktop-portal-gnome
Source0:	https://download.gnome.org/sources/xdg-desktop-portal-gnome/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gettext
BuildRequires:	meson
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(gnome-desktop-4)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(libadwaita-1)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(xdg-desktop-portal)
Requires:	dbus
Requires:	dbus-common
Requires:	xdg-desktop-portal

%description
A backend implementation for xdg-desktop-portal that is using various pieces of
GNOME infrastructure, such as the org.gnome.Shell.Screenshot or
org.gnome.SessionManager D-Bus interfaces.

%files -f %{name}.lang
%doc NEWS README.md
%license COPYING
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.gnome.service
%{_datadir}/xdg-desktop-portal/portals/gnome.portal
%{_libexecdir}/%{name}
%{_userunitdir}/%{name}.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson -Dsystemduserunitdir=%{_userunitdir}
%meson_build

%install
%meson_install

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20309 |21mr|xdg-desktop-portal-gtk-1.14.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global xdg_desktop_portal_version 1.14.1

Name:           xdg-desktop-portal-gtk
Version:        1.14.0
Release:        2
Summary:        Backend implementation for xdg-desktop-portal using GTK+
Group:          Graphical desktop/GNOME
License:        LGPLv2+
URL:            https://github.com/flatpak/%{name}
Source0:        https://github.com/flatpak/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
BuildRequires:  gettext
BuildRequires:  systemd
BuildRequires:  pkgconfig(fontconfig)
BuildRequires:  pkgconfig(gsettings-desktop-schemas)
BuildRequires:  pkgconfig(gtk+-unix-print-3.0)
BuildRequires:  pkgconfig(xdg-desktop-portal) >= %{xdg_desktop_portal_version}
Requires:	dbus
Requires:	gsettings-desktop-schemas
Requires:	xdg-desktop-portal >= %{xdg_desktop_portal_version}
# Use rich deps to pull in this package when flatpak and gtk3 are both installed
Supplements:    (flatpak and gtk+3.0)
Supplements:    (flatpak and gtk4)

%description
A backend implementation for xdg-desktop-portal that is using GTK+.

%prep
%autosetup -p1

%build
# All backends that are disabled are instead provided by
# xdg-desktop-portal-gnome, to keep this package free of GNOME dependencies.
%configure \
    --disable-silent-rules \
    --with-systemduserunitdir=%{_userunitdir}
%make


%install
%make_install
%find_lang %{name}


%post
%systemd_user_post %{name}.service

%preun
%systemd_user_preun %{name}.service


%files -f %{name}.lang
%license COPYING
%doc NEWS
%{_libexecdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.gtk.service
%{_datadir}/xdg-desktop-portal/portals/gtk.portal
%{_userunitdir}/%{name}.service


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20310 |21mr|xdg-desktop-portal-kde-5.27.11-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Backend implementation for xdg-desktop-portal using Qt/KF5
Name:		xdg-desktop-portal-kde
Version:	5.27.11
Release:	2
License:	GPLv2+
Group:		Graphical desktop/KDE
Url:		https://www.kde.org/
Source0:	https://download.kde.org/stable/plasma/%{version}/%{name}-%{version}.tar.xz
Source1:	xdg-desktop-portal-kde-5.27_ru.tar.gz
BuildRequires:	extra-cmake-modules
BuildRequires:	kf5config-devel
BuildRequires:	kf5coreaddons-devel
BuildRequires:	kf5declarative-devel
BuildRequires:	kf5i18n-devel
BuildRequires:	kf5kio-devel
BuildRequires:	kf5kirigami2-devel
BuildRequires:	kf5notifications-devel
BuildRequires:	kf5plasma-devel
BuildRequires:	kf5wayland-devel
BuildRequires:	kf5widgetsaddons-devel
BuildRequires:	kf5windowsystem-devel
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(libpipewire-0.3)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5Qml)
BuildRequires:	pkgconfig(Qt5QmlModels)
BuildRequires:	pkgconfig(Qt5QmlWorkerScript)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5QuickTest)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Quick)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5QuickWidgets)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5WaylandClient)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-egl)
BuildRequires: 	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(xkbcommon)
BuildRequires:	pkgconfig(xkbcommon-x11)
BuildRequires:	%{_lib}qt5quickparticles-devel
BuildRequires:	%{_lib}qt5quickshapes-devel
BuildRequires:	plasma-wayland-protocols-devel
BuildRequires:	qt5-wayland-client
BuildRequires:	qt5-wayland-compositor
BuildRequires:	wayland-devel
BuildRequires:	kio-fuse
Requires:	flatpak
Requires:	xdg-desktop-portal

%description
A backend implementation for xdg-desktop-portal that is using Qt/KF5
and various pieces of KDE infrastructure.

%files -f %{name}.lang
%{_kde5_applicationsdir}/org.freedesktop.impl.portal.desktop.kde.desktop
%{_kde5_libexecdir}/xdg-desktop-portal-kde
%{_kde5_datadir}/xdg-desktop-portal/portals/kde.portal
%{_kde5_notificationsdir}/xdg-desktop-portal-kde.notifyrc
%{_datadir}/dbus-1/services/org.freedesktop.impl.portal.desktop.kde.service
%{_userunitdir}/plasma-xdg-desktop-portal-kde.service
%{_kde5_datadir}/qlogging-categories5/xdp-kde.categories
%{_kde5_datadir}/xdg-desktop-portal/kde-portals.conf

#----------------------------------------------------------------------------

%prep
%setup -n %{name}-%{version}

pushd po
tar -xvzf %{SOURCE1}
popd

%build
%cmake_kde5
%make

%install
%makeinstall_std -C build

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20311 |21mr|xdgmenumaker-2.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xdgmenumaker
Version:	2.3
Release:	4
License:	GPLv3
Summary:	A command line tool that generates application menus
Group:		System/Configuration/Other
Url:		https://github.com/gapan/xdgmenumaker
Source0:	https://github.com/gapan/xdgmenumaker/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Patch0:		xdgmenumaker-wine-desktop.patch

BuildRequires:	txt2tags

Requires:	python3-pyxdg
Requires:	python3-gobject
Requires:	gobject-introspection
Requires:	python3-pillow
BuildArch:	noarch

%description
xdgmenumaker is a command line tool, written in python, that generates
application menus using xdg information, by scanning *.desktop files
in all $XDG_DATA_DIRS/applications directories.

%prep
%autosetup -p1

%build
make man

%install
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install

%files
%doc AUTHORS COPYING README.md
%{_bindir}/%{name}*
%{_datadir}/desktop-directories
%{_mandir}/man1/%{name}.1.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20312 |21mr|xdg-user-dirs-0.17-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure %nil

Summary:	XDG user dirs
Name:		xdg-user-dirs
Version:	0.17
Release:	7
License:	GPLv2+
Group:		System/Libraries
Url:		http://freedesktop.org/wiki/Software/xdg-user-dirs
Source0:	http://user-dirs.freedesktop.org/releases/%{name}-%{version}.tar.gz
Source1:	user-dirs-update.service
# use fuzzy translations (for Downloads)
# https://bugzilla.redhat.com/show_bug.cgi?id=532399
# (GvM) Since 2014 this patch is 0-byte (WTF?); 
# drop it and use the one from Mageia
#Patch0:	use-fuzzy.patch
Patch0:		xdg-user-dirs-fdo-use-fuzzy.patch
BuildRequires:	docbook-style-xsl
BuildRequires:	gettext
BuildRequires:	xsltproc

%description
xdg-user-dirs is a tool to help manage "well known" user directories like
the desktop folder and the music folder. It also handles localization
(i.e. translation) of the filenames.

%files -f %{name}.lang
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%config(noreplace) %{_sysconfdir}/xdg/user-dirs.conf
%config(noreplace) %{_sysconfdir}/xdg/user-dirs.defaults
%{_bindir}/xdg-user-dir
%{_bindir}/xdg-user-dirs-update
%{_mandir}/man1/xdg-user-dir.1*
%{_mandir}/man1/xdg-user-dirs-update.1*
%{_mandir}/man5/user-dirs.conf.5*
%{_mandir}/man5/user-dirs.defaults.5*
%{_mandir}/man5/user-dirs.dirs.5*
%{_userunitdir}/user-dirs-update.service

%post
%systemd_user_post user-dirs-update.service

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure --enable-documentation
%make
make -C po update-po

%install
%makeinstall_std
# most DEs execute /etc/xdg/autostart/*.desktop after starting most of the DE,
# that's incorrect, because than xdg-user-dirs-update is ran too late,
# so we've made a systemd user service which executes xdg-user-dirs-update
# before the Xorg/DE is started
rm %{buildroot}/%{_sysconfdir}/xdg/autostart/xdg-user-dirs.desktop
install -d %{buildroot}%{_userunitdir}
install -m 644 %{SOURCE1} %{buildroot}/%{_userunitdir}

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20313 |21mr|xdg-user-dirs-gtk-0.9-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	XDG user dirs support for GNOME/GTK+
Name:		xdg-user-dirs-gtk
Version:	0.9
Release:	7
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		http://www.gnome.org/
Source0:	http://ftp.gnome.org/pub/gnome/sources/xdg-user-dirs-gtk/%{version}/%{name}-%{version}.tar.xz
# (fc) 0.5-2mdv add KDE info to desktop file
Patch0:		xdg-user-dirs-gtk-0.9-kde.patch
# (fc) 0.5-2mdv detect mdk-folders entries in gtk bookmarks and replace them with standard entries
Patch1:		xdg-user-dirs-gtk-0.5-mdkfolders.patch
BuildRequires:	gtk2-devel
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	xdg-user-dirs
BuildRequires:	intltool
Requires:	xdg-user-dirs

%description
xdg-user-dirs-gtk is a companion to xdg-user-dirs that integrates it into
the Gnome desktop and Gtk+ applications.

It gets run during login and does two things:
* Tracks changes of locale and prompts the user so the directories
  can be changed.
* Creates a default gtk bookmarks file if there is none, based
  on a set of xdg user dirs.

%prep
%setup -q
%patch0 -p1 -b .kde
%patch1 -p1 -b .mdkfolders

%build
%configure
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%defattr(-,root,root)
%doc AUTHORS ChangeLog README NEWS
%config(noreplace) %{_sysconfdir}/xdg/autostart/user-dirs-update-gtk.desktop
%{_bindir}/xdg-user-dirs-gtk-update

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20314 |21mr|xdg-utils-1.2.0-0.gitd4f00e.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# sources from upstream git
# Why git snapshot? See e.g. https://bugzilla.rosalinux.ru/show_bug.cgi?id=14127
%define commit d4f00e1d803038af4f245949d8c747a384117852
%define commit_short %(echo %{commit} | head -c6)

Summary:	A basic desktop integration tools for any Free Desktop
Name:		xdg-utils
Version:	1.2.0
Release:	0.git%{commit_short}.2
License:	MIT
Group:		System/Base
Url:		https://www.freedesktop.org/wiki/Software/xdg-utils/
Source0:	https://gitlab.freedesktop.org/xdg/xdg-utils/-/archive/%{commit}/%{name}-%{commit}.tar.gz
Patch1:		0001-enable-additional-scripts.patch
Patch2:		0002-File-dialog-lxqt.patch
Patch3:		xdg-utils-1.1.3-xfce.patch
Patch6:		CVE-2020-27748.patch
BuildRequires:	docbook-dtd412-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	gawk
BuildRequires:	lynx
BuildRequires:	xmlto
BuildRequires:	xsltproc
Requires:	desktop-file-utils
Requires:	xprop
Requires:	xset
BuildArch:	noarch

%description
This version of xdg-utils contains the following commands:
xdg-desktop-menu:	command line tool for (un)installing desktop menu items.
xdg-desktop-icon:	command line tool for (un)installing icons to the desktop.
xdg-icon-resource:	command line tool for (un)installing icon resources.
xdg-screensaver:	command line tool for controlling the screensaver.
xdg-mime:	command line tool for querying information about file type
			handling and adding descriptions for new file types.
xdg-open:	opens a file or URL in the user's preferred application.
xdg-email:	command line tool for sending mail using the user's preferred
			e-mail composer.
xdg-su:		run a program as root after prompting for the root password.

%files
%{_bindir}/xdg-*
%{_mandir}/man1/xdg*.*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
%configure

%make scripts-clean -C scripts
%make man scripts -C scripts

%make
%make -C scripts


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20315 |21mr|xdg-utils-cxx-1.0.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		xdg-utils-cxx
Version:	1.0.1
Release:	1
Summary:	Implementation of the FreeDesktop specifications to be used in C++ projects
Group:		Development/C++
License:	MIT
Url:		https://github.com/azubieta/xdg-utils-cxx
Source0:	https://github.com/azubieta/xdg-utils-cxx/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
BuildRequires:	cmake

%description
Implementation of the Free Desktop Standards in C++.
This project was started to fulfill the need of a reliable implementations 
of such standards in the AppImage project. It is totally standalone and only 
depends on the standard c++ libraries (stdlib).

%files
%{_includedir}/XdgUtils
%{_libdir}/XdgUtils
%{_libdir}/cmake/XdgUtils

#------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20316 |21mr|Xdialog-2.3.1-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _duplicate_files_terminate_build 0

Summary:	A replacement for the cdialog program for X
Name:		Xdialog
Version:	2.3.1
Release:	6
Source0:	%{name}-%{version}.tar.bz2
Patch0:		Xdialog-2.2.1-fix-str-fmt.patch
Group:		Development/Other
License:	GPL
URL:		http://xdialog.dyns.net/
BuildRequires:	bison
BuildRequires:	gtk+2-devel
BuildRequires:	glib2-devel
Provides:	xmsg-dialog

%description
Xdialog is designed to be a drop in replacement for the cdialog program.
It converts any terminal based program into a program with an X-windows
interface. The dialogs are easier to see and use and the treeview adds an
extra dimension to the way menus can be displayed.

%files -f %{name}.lang
%defattr(-,root,root,-)
%doc %{_docdir}/Xdialog*
%doc ChangeLog COPYING samples
%doc doc/*.html doc/*.png
%{_mandir}/man1/*
%{_bindir}/*

#--------------------------------------------------------------
%prep
%setup -q
%patch0 -p0

%build

%configure --with-gtk2

# don't strip (retarded crap!)
find -type f -name "Makefile" | xargs perl -pi -e "s|^INSTALL_STRIP_PROGRAM.*|INSTALL_STRIP_PROGRAM = \"\\\${SHELL} \\\$\(install_sh\) -c\"|g"
find -type f -name "Makefile" | xargs perl -pi -e "s|INSTALL_STRIP_FLAG=-s|INSTALL_STRIP_FLAG=|g" 
find -type f -name "Makefile" | xargs perl -pi -e "s|-Wall -s|-Wall|g" 

%make

%install
rm -rf %{buildroot}

%makeinstall docdir=%{buildroot}%{_docdir}/%{name}

%{find_lang} %{name}

%clean
rm -rf %{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20317 |21mr|xditview-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xditview
Version:	1.0.5
Release:	1
Summary:	Display ditroff output
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: pkgconfig(xt) >= 1.0.0
BuildRequires: xaw-devel >= 1.0.1
BuildRequires: pkgconfig(xorg-macros) >= 1.0.1

%description
Display ditroff output.

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/xditview
%{_datadir}/X11/app-defaults/Xditview
%{_datadir}/X11/app-defaults/Xditview-chrtr
%{_includedir}/X11/bitmaps/ldblarrow
%{_includedir}/X11/bitmaps/rdblarrow
%{_mandir}/man1/xditview.1*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20318 |21mr|xdm-1.1.11-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define xdm_libdir %{_datadir}/X11/xdm

Summary:	X Display Manager with support for XDMCP
Name:		xdm
Version:	1.1.11
Release:	12
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Source1:	xdm.pamd
Source2:	xdm.service
Patch0:		xdm-libbsd.patch
Patch4:		0004-Support-kdm-extended-syntax-to-reserve-a-server-for.patch
#Patch5		0005-Initialize-the-greeter-only-after-checking-if-the-th.patch
#Patch6:	0006-Add-console-kit-support-to-xdm.patch
#Patch7:	0007-Add-files-required-by-consolekit-support.patch
BuildRequires:	systemd
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xau)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xdmcp)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xt)
Requires:	sessreg
Requires:	systemd
Requires:	xinitrc
Requires:	xrdb
Requires(post,preun,postun):	systemd

%description
Xdm manages a collection of X displays, which may be on the local host or
remote servers. The design of xdm was guided by the needs of X terminals as
well as The Open Group standard XDMCP, the X Display Manager Control Protocol.
Xdm provides services similar to those provided by init, getty and login on
character terminals: prompting for login name and password, authenticating the
user, and running a session.

%files
%config(noreplace) %{_sysconfdir}/pam.d/xdm
%config(noreplace) %{_sysconfdir}/logrotate.d/xdm
%dir /var/lib/xdm
%{_bindir}/xdm
%{_bindir}/xdmshell
%{_mandir}/man1/xdm.*
%{_mandir}/man1/xdmshell.*
%{xdm_libdir}/*
%{_datadir}/X11/app-defaults/Chooser
%{_unitdir}/xdm.service

%pre
if [ -d %{xdm_libdir}/authdir ]; then
	# this is now a symlink
	rm -rf %{xdm_libdir}/authdir
fi

#post
#/bin/systemctl enable xdm.service 2>&1 || :

%preun
/bin/systemctl disable xdm.service 2>&1 || :

%postun
/bin/systemctl daemon-reload 2>&1 || :

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
# patch 6 requires autoreconf
autoreconf -v --install
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir} \
	--with-xdmlibdir=%{xdm_libdir} \
	--with-pam \
	--enable-xdmshell \
	--with-systemdsystemunitdir=%{_unitdir}
%make

%install
%makeinstall_std

LC_ALL=C
LANG=C
export LC_ALL LANG

# remove files that are in xinitrc
rm -rf %{buildroot}%{xdm_libdir}/{[A-Z]*,xdm-config}

# remove unused devel files
rm -rf %{buildroot}%{xdm_libdir}/*.{a,la}

# install PAM file
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
install -m 644 %{SOURCE1} %{buildroot}/etc/pam.d/xdm

install -d %{buildroot}/var/lib/xdm
ln -sf /var/lib/xdm %{buildroot}%{xdm_libdir}/authdir

# logrotate
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
cat << EOF > %{buildroot}%{_sysconfdir}/logrotate.d/xdm
/var/log/xdm-error.log {
    notifempty
    missingok
    nocompress
}
EOF

#Replace native service
rm -f %{buildroot}%{_unitdir}/xdm.service
install -Dpm 644 %{SOURCE2} %{buildroot}%{_unitdir}/xdm.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20319 |21mr|xdotool-3.20160805.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Fake keyboard/mouse input, window management, and more
Name:		xdotool
Version:	3.20160805.1
Release:	1
License:	BSD
Group:		Toys
Url:		http://www.semicomplete.com/projects/xdotool
Source0:	https://github.com/jordansissel/%{name}/archive/v%{version}/%{name}-%{version}.tar.gz
Patch0:		xdotool-3.20160805.1-Makefile.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xkbcommon)

%description
This tool lets you simulate keyboard input and mouse activity, move and resize
windows, etc. It does this using X11's XTEST extension and other Xlib
functions.

Additionally, you can search for windows and move, resize, hide, and modify
window properties like the title. If your window manager supports it, you can
use xdotool to switch desktops, move windows between desktops, and change the
number of desktops.

%files
%{_bindir}/xdotool
%{_mandir}/man1/xdotool.1*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library for %{name}
Group:		System/Libraries

%description -n %{libname}
This package contains library for %{name}.

%files -n %{libname}
%{_libdir}/libxdo.so.%{major}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development files for %{name}.

%files -n %{devname}
%{_libdir}/libxdo.so
%{_includedir}/xdo.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1

%build
%setup_compile_flags
%make

%install
%makeinstall_std \
	PREFIX=%{_prefix} \
	INSTALLMAN=%{_datadir}/man \
	INSTALLLIB=%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20320 |21mr|xdpyinfo-1.3.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Display information utility for X
Name:		xdpyinfo
Version:	1.3.3
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(dmx)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xcomposite)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xtst)
BuildRequires:	pkgconfig(xxf86dga)
BuildRequires:	pkgconfig(xxf86misc)
BuildRequires:	pkgconfig(xxf86vm)

%description
Xdpyinfo is a utility for displaying information about an X server. It is used
to examine the capabilities of a server, the predefined values for various
parameters used in communicating between clients and the server, and the
different types of screens and visuals that are available.

%files
%{_bindir}/xdpyinfo
%{_mandir}/man1/xdpyinfo.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure	\
	--x-includes=%{_includedir}	\
	--x-libraries=%{_libdir}
%make

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20321 |21mr|xdriinfo-1.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xdriinfo
Version:	1.0.7
Release:	1
Summary:	Query configuration information of DRI drivers
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
License:	MIT

BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	x11-proto-devel >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	pkgconfig(gl)

%description
Driinfo can be used to query configuration information of direct rendering
drivers (DRI).

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/xdriinfo
%{_mandir}/man1/xdriinfo.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20322 |21mr|xedit-1.2.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xedit
Version:	1.2.2
Release:	5
Summary:	Simple text editor for X
Group:		Development/X11
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT
BuildRequires:	pkgconfig(xorg-macros) >= 1.1.5
BuildRequires:	xaw-devel >= 1.0.4
Requires:	x11-data-bitmaps
Requires:	aspell aspell-en grep words
Requires:	ctags
Requires:	x11-font-alias
# sgml mode
Requires:	x11-font-dec-misc
Requires:	x11-font-misc-misc
# courier (most modes) helvetica (sgml/html edit modes)
Requires:	x11-font-adobe-75dpi x11-font-adobe-100dpi
# lucidatypewriter (most modes)
Requires:	x11-font-bh-lucidatypewriter-75dpi x11-font-bh-lucidatypewriter-100dpi
# lucida (hmtl mode)
Requires:	x11-font-bh-75dpi x11-font-bh-100dpi

%description
Xedit provides a simple text editor for X.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/xedit
%{_libdir}/X11/xedit
%{_datadir}/X11/app-defaults/Xedit
%{_datadir}/X11/app-defaults/Xedit-color
%{_mandir}/man1/xedit.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20323 |21mr|xerces-c-3.2.3-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 3.2
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Xerces-C++ validating XML parser
Name:		xerces-c
Version:	3.2.3
Release:	5
Epoch:		1
License:	Apache License
Group:		System/Libraries
Url:		http://xml.apache.org/xerces-c/
Source0:	http://mirrors.ukfast.co.uk/sites/ftp.apache.org/xerces/c/%(echo %{version}|cut -d. -f1)/sources/xerces-c-%{version}.tar.xz
BuildRequires:	icu
BuildRequires:	pkgconfig(icu-i18n)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(zlib)
Patch0:		CVE-2018-1311-mitigation.patch

%description
Xerces-C++ is a validating XML parser written in a portable subset of C++.
Xerces-C++ makes it easy to give your application the ability to read and
write XML data. A shared library is provided for parsing, generating,
manipulating, and validating XML documents.

The parser provides high performance, modularity, and scalability. Source
code, samples and API documentation are provided with the parser. For
portability, care has been taken to make minimal use of templates, no RTTI,
and minimal use of #ifdefs.

%files
%doc LICENSE
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Xerces-c library
Group:		System/Libraries

%description -n %{libname}
Xerces-C++ is a validating XML parser written in a portable subset of C++.
Xerces-C++ makes it easy to give your application the ability to read and
write XML data. A shared library is provided for parsing, generating,
manipulating, and validating XML documents.

This package contains the shared xerces-c library.

%files -n %{libname}
%doc LICENSE
%{_libdir}/libxerces-c-%{major}.so

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for Xerces-C++ validating XML parser
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	libxerces-c-devel = %{EVRD}
Conflicts:	%{_lib}xerces-c28-devel

%description -n %{devname}
Xerces-C++ is a validating XML parser written in a portable subset of C++.
Xerces-C++ makes it easy to give your application the ability to read and
write XML data. A shared library is provided for parsing, generating,
manipulating, and validating XML documents.

This package contains development files such as header files you can use to
develop XML applications with Xerces-C++.

%files -n %{devname}
%doc LICENSE
%{_includedir}/xercesc
%{_libdir}/libxerces-c.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%package doc
Summary:	Documentation for Xerces-C++ validating XML parser
Group:		Books/Other

%description doc
Xerces-C++ is a validating XML parser written in a portable subset of C++.
Xerces-C++ makes it easy to give your application the ability to read and
write XML data. A shared library is provided for parsing, generating,
manipulating, and validating XML documents.

This package contains the documentation for Xerces-C++.

%files doc
%doc CREDITS LICENSE doc/*

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches


%build
%configure \
	--disable-static \
	--enable-netaccessor-curl \
	--enable-transcoder-icu \
%ifarch %{ix86}
	--disable-sse2 \
%endif
	--enable-msgloader-icu
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20324 |21mr|xerces-j2-2.12.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global cvs_version 2_12_0

%define __requires_exclude system.bundle

Name:          xerces-j2
Version:       2.12.0
Release:       4
Summary:       Java XML parser
# Most of the source is ASL 2.0
# W3C licensed files:
# src/org/apache/xerces/dom3/as
# src/org/w3c/dom/html/HTMLDOMImplementation.java
License:       ASL 2.0 and W3C
URL:           http://xerces.apache.org/xerces2-j/

Source0:       http://mirror.ox.ac.uk/sites/rsync.apache.org/xerces/j/source/Xerces-J-src.%{version}.tar.gz
Source1:       %{name}-version.sh
Source2:       %{name}-constants.sh
Source11:      %{name}-version.1
Source12:      %{name}-constants.1

# Custom javac ant task used by the build
Source3:       https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_%{cvs_version}/tools/src/XJavac.java

# Custom doclet tags used in javadocs
Source5:       https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_%{cvs_version}/tools/src/ExperimentalTaglet.java
Source6:       https://svn.apache.org/repos/asf/xerces/java/tags/Xerces-J_%{cvs_version}/tools/src/InternalTaglet.java

Source7:       %{name}-pom.xml

# Patch the build so that it doesn't try to use bundled xml-commons source
Patch0:        %{name}-build.patch

# Patch the manifest so that it includes OSGi stuff
Patch1:        %{name}-manifest.patch

Patch1000:	CVE-2022-23437.patch
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: apache-parent
BuildRequires: xalan-j2 >= 2.7.1
BuildRequires: xml-commons-apis >= 1.4.01
BuildRequires: xml-commons-resolver >= 1.2

Requires:      xalan-j2 >= 2.7.1
Requires:      xml-commons-apis >= 1.4.01
Requires:      xml-commons-resolver >= 1.2
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:      javapackages-tools

Provides:      jaxp_parser_impl = 1.4
Provides:      %{name}-scripts = %{version}-%{release}

Obsoletes:     %{name}-scripts < 2.11.0-6

# This documentation is provided by xml-commons-apis
Obsoletes:     %{name}-javadoc-apis < %{version}-%{release}

# http://mail-archives.apache.org/mod_mbox/xerces-j-dev/201008.mbox/%3COF8D7E2F83.0271A181-ON8525777F.00528302-8525777F.0054BBE0@ca.ibm.com%3E
Obsoletes:     %{name}-manual < %{version}-%{release}

%description
Welcome to the future! Xerces2 is the next generation of high performance,
fully compliant XML parsers in the Apache Xerces family. This new version of
Xerces introduces the Xerces Native Interface (XNI), a complete framework for
building parser components and configurations that is extremely modular and
easy to program.

The Apache Xerces2 parser is the reference implementation of XNI but other
parser components, configurations, and parsers can be written using the Xerces
Native Interface. For complete design and implementation documents, refer to
the XNI Manual.

Xerces2 is a fully conforming XML Schema processor. For more information,
refer to the XML Schema page.

Xerces2 also provides a complete implementation of the Document Object Model
Level 3 Core and Load/Save W3C Recommendations and provides a complete
implementation of the XML Inclusions (XInclude) W3C Recommendation. It also
provides support for OASIS XML Catalogs v1.1.

Xerces2 is able to parse documents written according to the XML 1.1
Recommendation, except that it does not yet provide an option to enable
normalization checking as described in section 2.13 of this specification. It
also handles name spaces according to the XML Namespaces 1.1 Recommendation,
and will correctly serialize XML 1.1 documents if the DOM level 3 load/save
APIs are in use.

%package        javadoc
Summary:        Javadocs for %{name}

# Consolidating all javadocs into one package
Obsoletes:      %{name}-javadoc-impl < %{version}-%{release}
Obsoletes:      %{name}-javadoc-xs < %{version}-%{release}
Obsoletes:      %{name}-javadoc-xni < %{version}-%{release}
Obsoletes:      %{name}-javadoc-other < %{version}-%{release}

%description    javadoc
This package contains the API documentation for %{name}.

%package        demo
Summary:        Demonstrations and samples for %{name}
Requires:       %{name} = %{version}-%{release}

%description    demo
%{summary}.

%prep
%setup -q -n xerces-%{cvs_version}
%patch0 -p0 -b .orig
%patch1 -p0 -b .orig
%patch1000 -p1

# Copy the custom ant tasks into place
mkdir -p tools/org/apache/xerces/util
mkdir -p tools/bin
cp -a %{SOURCE3} %{SOURCE5} %{SOURCE6} tools/org/apache/xerces/util

# Make sure upstream hasn't sneaked in any jars we don't know about
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

sed -i 's/\r//' LICENSE README NOTICE

# legacy aliases for compatability
%mvn_alias : xerces:xerces xerces:xmlParserAPIs apache:xerces-j2
%mvn_file : %{name} jaxp_parser_impl

%build
pushd tools

# Build custom ant tasks
javac -classpath $(build-classpath ant) org/apache/xerces/util/XJavac.java
jar cf bin/xjavac.jar org/apache/xerces/util/XJavac.class

# Build custom doc taglets
javac -classpath /usr/lib/jvm/java/lib/tools.jar org/apache/xerces/util/*Taglet.java
jar cf bin/xerces2taglets.jar org/apache/xerces/util/*Taglet.class

ln -sf $(build-classpath xalan-j2-serializer) serializer.jar
ln -sf $(build-classpath xml-commons-apis) xml-apis.jar
ln -sf $(build-classpath xml-commons-resolver) resolver.jar
ln -sf $(build-classpath xerces-j2) x.jar
popd

# Build everything
export ANT_OPTS="-Xmx256m -Djava.endorsed.dirs=$(pwd)/tools -Djava.awt.headless=true -Dbuild.sysclasspath=first -Ddisconnected=true"
ant -Djavac.source=1.5 -Djavac.target=1.5 \
    -Dbuild.compiler=modern \
    clean jars javadocs

%mvn_artifact %{SOURCE7} build/xercesImpl.jar

%install
%mvn_install

# javadoc
mkdir -p %{buildroot}%{_javadocdir}/%{name}
mkdir -p %{buildroot}%{_javadocdir}/%{name}/impl
mkdir -p %{buildroot}%{_javadocdir}/%{name}/xs
mkdir -p %{buildroot}%{_javadocdir}/%{name}/xni
mkdir -p %{buildroot}%{_javadocdir}/%{name}/other

cp -pr build/docs/javadocs/xerces2/* %{buildroot}%{_javadocdir}/%{name}/impl
cp -pr build/docs/javadocs/api/* %{buildroot}%{_javadocdir}/%{name}/xs
cp -pr build/docs/javadocs/xni/* %{buildroot}%{_javadocdir}/%{name}/xni
cp -pr build/docs/javadocs/other/* %{buildroot}%{_javadocdir}/%{name}/other

# scripts
install -pD -m755 -T %{SOURCE1} %{buildroot}%{_bindir}/%{name}-version
install -pD -m755 -T %{SOURCE2} %{buildroot}%{_bindir}/%{name}-constants

# manual pages
install -d -m 755 %{buildroot}%{_mandir}/man1
install -p -m 644 %{SOURCE11} %{buildroot}%{_mandir}/man1
install -p -m 644 %{SOURCE12} %{buildroot}%{_mandir}/man1

# demo
install -pD -T build/xercesSamples.jar %{buildroot}%{_datadir}/%{name}/%{name}-samples.jar
cp -pr data %{buildroot}%{_datadir}/%{name}

%post
# alternatives suppoort removed in f26
update-alternatives --remove jaxp_parser_impl %{_javadir}/%{name}.jar >/dev/null 2>&1 || :
# it deletes the link, set it up again
ln -sf %{name}.jar %{_javadir}/jaxp_parser_impl.jar

%files -f .mfiles
%doc LICENSE NOTICE README
%{_bindir}/*
%{_mandir}/*/*

%files javadoc
%{_javadocdir}/%{name}

%files demo
%{_datadir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20325 |21mr|xev-1.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Print contents of X events
Name:		xev
Version:	1.2.4
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xrandr)

%description
Xev creates a window and then asks the X server to send it events whenever
anything happens to the window (such as it being moved, resized, typed in,
clicked in, etc.). It is useful for testing input devices.

%files
%{_bindir}/xev
%{_mandir}/man1/xev.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20326 |21mr|xeyes-1.1.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A follow the mouse X demo
Name:		xeyes
Version:	1.1.2
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(xt)

%description
xeyes is a graphical computer program showing two googly eyes which
follow the cursor movements on the screen as if they were watching it.

%files
%{_bindir}/xeyes
%{_mandir}/man1/xeyes.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20327 |21mr|xf86dga-1.0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xf86dga
Version:	1.0.3
Release:	7
Summary:	Test program for the XFree86-DGA extension
Group:		Development/X11
URL:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT
BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xxf86dga) >= 1.1.0
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	autoconf

%description
Dga is a simple test client for the XFree86-DGA extension. It fills the screen
with a different colour for each key pressed. It prints some basic framebuffer
parameters, and also keyboard and pointer events to stdout. 

%prep
%setup -q -n %{name}-%{version}

%build
autoreconf -ifs
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/dga
%{_mandir}/man1/dga.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20328 |21mr|xfd-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xfd
Version:	1.1.4
Release:	1
Summary:	Display all the characters in an X font

Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
License:	MIT

BuildRequires: pkgconfig(fontconfig) >= 2.3.93
BuildRequires: freetype2-devel >= 2.1.10
BuildRequires: pkgconfig(xft) >= 2.1.8.2
BuildRequires: libxt-devel >= 1.0.0
BuildRequires: libxaw-devel >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1
BuildRequires: pkgconfig(xkbfile)

%description
The xfd utility creates a window containing the name of the font being
displayed, a row of command buttons, several lines of text for
displaying character metrics, and a grid containing one glyph per cell.
The characters are shown in increasing order from left to right, top
to bottom.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/xfd
%{_datadir}/X11/app-defaults/Xfd
%{_mandir}/man1/xfd.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20329 |21mr|xfig-3.2.8b-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	An X Window System tool for drawing basic vector graphics
Name:		xfig
Epoch:		1
Version:	3.2.8b
Release:	2
License:	MIT
Group:		Graphics
Url:		https://mcj.sourceforge.io/
Source0:	https://sourceforge.net/projects/mcj/files/%{name}-%{version}.tar.xz
Source3:	xfig.appdata.xml
Patch0:		xfig-3.2.8b-readers.patch
Patch1:		xfig-3.2.8b-fix-desktop-file.patch
BuildRequires:	appstream-util
BuildRequires:	ghostscript
BuildRequires:	transfig
BuildRequires:	htmldoc
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw3d) >= 1.6.3
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xpm)
Requires:	aspell
Requires:	ghostscript
Requires:	transfig >= 3.2.8b
Requires:	xdg-utils

%description
Xfig is an X Window System tool for creating basic vector graphics, including
bezier curves, lines, rulers and more.  The resulting graphics can be saved,
printed on PostScript printers or converted to a variety of other formats
(e.g., X11 bitmaps, Encapsulated PostScript, LaTeX).
You should install this package if you need a simple program to create vector
graphics.

%files
%config(noreplace) %{_sysconfdir}/X11/app-defaults/Fig
%docdir %{_docdir}/%{name}
%{_docdir}/%{name}
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/CompKeyDB
%dir %{_datadir}/%{name}/Libraries
%{_datadir}/%{name}/Libraries/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/appdata/%{name}.appdata.xml
%{_iconsdir}/%{name}.png
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%autosetup -p1


%build
%configure	--enable-splash \
		--with-appdefaultdir="%{_sysconfdir}/X11/app-defaults/" \
		--with-icondir="%{_iconsdir}"

%make


%install
%makeinstall_std

# Some more doc stuff...
install -m 644 CHANGES FIGAPPS README doc/TODO %{buildroot}%{_docdir}/%{name}

mkdir -p %{buildroot}%{_datadir}/appdata
install -p -m 644 %{SOURCE3} %{buildroot}%{_datadir}/appdata
appstream-util validate-relax --nonet \
  %{buildroot}%{_datadir}/appdata/%{name}.appdata.xml

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20330 |21mr|xfindproxy-1.0.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Locate proxy services
Name:		xfindproxy
Version:	1.0.4
Release:	5
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xt)

%description
xfindproxy is a program used to locate available proxy services.
It utilizes the Proxy Management Protocol to communicate with a proxy
manager. The proxy manager keeps track of all available proxy services,
starts new proxies when necessary, and makes sure that proxies are shared
whenever possible.

%files
%{_bindir}/xfindproxy
%{_mandir}/man1/xfindproxy.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20331 |21mr|xfontsel-1.0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: xfontsel
Version: 1.0.6
Release: 2
Summary: Point and click selection of X11 font names

Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: libxt-devel >= 1.0.0
BuildRequires: libxaw-devel >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
The xfontsel application provides a simple way to display the fonts known to
your X server, examine samples of each, and retrieve the X Logical Font
Description ("XLFD") full name for a font.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xfontsel
%{_datadir}/X11/app-defaults/XFontSel
%{_mandir}/man1/xfontsel.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20332 |21mr|xforms-1.2.4-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname_orig libforms
%define libname %mklibname forms %{major}
%define libname_devel %mklibname forms -d

Name:		xforms
Summary:	A X11 toolkit library
Version:	1.2.4
Release:	6
License:	LGPL
Group:		System/Libraries
Url:		http://xforms-toolkit.org/
Source0:	http://download.savannah.gnu.org/releases/xforms/%{name}-%{version}.tar.gz
Patch0:		xforms-1.2.4-gcc10.patch
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)

%description
xforms is a graphical toolkit library.

%files
%{_bindir}/*
%{_mandir}/man1/*

#--------------------------------------------------------------------
%package -n %{libname}
Summary:	Libraries for the xforms toolkit
Group:		System/Libraries

%description -n %{libname}
This package contains the runtime libraries for the xforms toolkit.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#--------------------------------------------------------------------
%package -n %{libname_devel}
Summary:	Development files for the xforms toolkit
Group:		Development/C
Provides:	%{libname_orig}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}
Obsoletes:	%{mklibname -d forms 1} < 1.2.4
Obsoletes:	%{mklibname -d -s forms 1} < 1.2.4
Obsoletes:	%{mklibname forms -s -d} < 1.2.4

%description -n	%{libname_devel}
This package contains development headers and libraries for xforms.
Install this if you intend to develop / compile programs with xforms.

%files -n %{libname_devel}
%{_includedir}/*
%{_mandir}/man5/*
%{_libdir}/*.so

#--------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static \
	--disable-demos \
	--enable-optimization="%{optflags}"
%make X_PRE_LIBS=""

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20333 |21mr|xfs-1.2.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fontpath %{_sysconfdir}/X11/fontpath.d

Summary:	Font server for X11
Name:		xfs
Version:	1.2.0
Release:	4
License:	MIT
Group:		System/Servers
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Source1:	xfs.init
Source2:	xfs.sysconfig
Source3:	xfs.config
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(fontutil)
BuildRequires:	pkgconfig(libfs)
BuildRequires:	pkgconfig(xfont)
BuildRequires:	pkgconfig(xfont2)
BuildRequires:	pkgconfig(xtrans)
Requires:	fstobdf
Requires:	fslsfonts
Requires:	showfont
Requires(pre,post,preun,postun):	rpm-helper

%description
This is a font server for X11.  You can serve fonts to other X servers
remotely with this package, and the remote system will be able to use all
fonts installed on the font server, even if they are not installed on the
remote computer.

%files
%attr(-,xfs,xfs) %dir %{_sysconfdir}/X11/fs
%{_libdir}/X11/fs
%{_bindir}/xfs
%{_mandir}/man1/xfs.*
%attr(-,xfs,xfs) %config(noreplace) %{_sysconfdir}/X11/fs/config
%dir %{_sysconfdir}/X11/fontpath.d
%{_sysconfdir}/rc.d/init.d/xfs
%{_sysconfdir}/sysconfig/xfs

%pre
%_pre_useradd xfs /etc/X11/fs /bin/false
# for msec high security levels
%_pre_groupadd xgrp xfs

%post
%_post_service xfs
# handle init sequence change
if [ -f /etc/rc5.d/S90xfs ] && grep -q 'chkconfig: 2345 20 10' /etc/init.d/xfs; then
	/sbin/chkconfig --add xfs
fi

%preun
%_preun_service xfs

%postun
%_postun_userdel xfs

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-default-font-path=%{fontpath} \
	--disable-devel-docs

%make configdir=%{_sysconfdir}/X11/fs

%install
%makeinstall_std configdir=%{_sysconfdir}/X11/fs

install -d 755 %{buildroot}%{fontpath}

# initscript
mkdir -p %{buildroot}%{_sysconfdir}/rc.d/init.d/
install -m 0755 %{SOURCE1} %{buildroot}%{_sysconfdir}/rc.d/init.d/xfs
mkdir -p %{buildroot}%{_sysconfdir}/sysconfig/
install -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/xfs

# config
# remove the default
rm -f %{buildroot}%{_sysconfdir}/X11/fs/config
#install ours
install -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/X11/fs/config

# add backward compatibility link for /usr/lib/X11/fs (#23423)
install -d -m 755 %{buildroot}%{_libdir}/X11/
ln -s ../../../%{_sysconfdir}/X11/fs %{buildroot}%{_libdir}/X11/fs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20334 |21mr|xfsdump-3.1.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Administrative utilities for the XFS filesystem
Name:		xfsdump
Version:	3.1.11
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://oss.sgi.com/projects/xfs/
Source0:	https://kernel.org/pub/linux/utils/fs/xfs/xfsdump/%{name}-%{version}.tar.xz
BuildRequires:	libtool
BuildRequires:	attr-devel
BuildRequires:	xfsprogs-devel
BuildRequires:	pkgconfig(ncursesw)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(uuid)

%description
The xfsdump package contains xfsdump, xfsrestore and a number of
other utilities for administering XFS filesystems.

xfsdump examines files in a filesystem, determines which need to be
backed up, and copies those files to a specified disk, tape or other
storage medium. It uses XFS-specific directives for optimizing the
dump of an XFS filesystem, and also knows how to backup XFS extended
attributes. Backups created with xfsdump are "endian safe" and can
thus be transfered between Linux machines of different architectures
and also between IRIX machines.

xfsrestore performs the inverse function of xfsdump; it can restore a
full backup of a filesystem. Subsequent incremental backups can then
be layered on top of the full backup. Single files and directory
subtrees may be restored from full or partial backups.

%files -f %{name}.lang
%doc doc/CHANGES.gz doc/COPYING doc/README.xfsdump
/sbin/dump.xfs
/sbin/restore.xfs
/sbin/xfsdump
/sbin/xfsrestore
%{_sbindir}/xfsdump
%{_sbindir}/xfsinvutil
%{_sbindir}/xfsrestore
%{_mandir}/man8/dump.xfs*
%{_mandir}/man8/restore.xfs*
%{_mandir}/man8/xfsdump.8*
%{_mandir}/man8/xfsinvutil.8*
%{_mandir}/man8/xfsrestore.8*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
export DEBUG="-DNDEBUG"
export OPTIMIZER="%{optflags}"
%configure
%make DEBUG="-DNDEBUG" OPTIMIZER="%{optflags}"

%install
make install DIST_ROOT=%{buildroot}/

# nuke files already packaged as %doc
rm -rf %{buildroot}%{_datadir}/doc/xfsdump/

# for coerency, rename xfsdump|xfsrestore to dump|restore.xfs
mv %{buildroot}/sbin/xfsdump %{buildroot}/sbin/dump.xfs
mv %{buildroot}/sbin/xfsrestore %{buildroot}/sbin/restore.xfs
ln -sf /sbin/dump.xfs %{buildroot}/sbin/xfsdump
ln -sf /sbin/restore.xfs %{buildroot}/sbin/xfsrestore
ln -sf %{_mandir}/man8/xfsdump.8 %{buildroot}%{_mandir}/man8/dump.xfs
ln -sf %{_mandir}/man8/xfsrestore.8 %{buildroot}%{_mandir}/man8/restore.xfs

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20335 |21mr|xfsinfo-1.0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X font server information utility
Name:		xfsinfo
Version:	1.0.6
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(libfs)
BuildRequires:	pkgconfig(x11)

%description
Xfsinfo is an utility for displaying information about an X font server, such
as the list of capabilities, catalogues, alternate servers and more.

%files
%{_bindir}/xfsinfo
%{_mandir}/man1/xfsinfo.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20336 |21mr|xfsprogs-6.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define major 1

%define libname %mklibname handle %{major}
%define devname %mklibname handle -d
%define sdevname %mklibname handle -d -s

Summary:	Utilities for managing the XFS filesystem
Name:		xfsprogs
Version:	6.1.1
Release:	1
License:	GPLv2+
Group:		System/Kernel and hardware
Url:		http://oss.sgi.com/projects/xfs/
Source0:	https://www.kernel.org/pub/linux/utils/fs/xfs/xfsprogs/%{name}-%{version}.tar.xz
Patch1:		xfsprogs-4.9.0-underlinking.patch
BuildRequires:	libtool
BuildRequires:	readline-devel
BuildRequires:  pkgconfig(inih)
BuildRequires:  pkgconfig(liburcu)
BuildRequires:	pkgconfig(ext2fs)
BuildRequires:	pkgconfig(uuid)
BuildRequires:	pkgconfig(blkid)
BuildRequires:	pkgconfig(systemd)
Requires:	common-licenses
Conflicts:	xfsdump < 3.0.0

%description
A set of commands to use the XFS filesystem, including mkfs.xfs.

XFS is a high performance journaling filesystem which originated
on the SGI IRIX platform.  It is completely multi-threaded, can
support large files and large filesystems, extended attributes,
variable block sizes, is extent based, and makes extensive use of
Btrees (directories, extents, free space) to aid both performance
and scalability.

Refer to the documentation at http://oss.sgi.com/projects/xfs/
for complete details. This implementation is on-disk compatible
with the IRIX version of XFS.

%files -f %{name}.lang
%doc doc/CHANGES.gz doc/CREDITS README
/sbin/xfs_admin
/sbin/xfs_bmap
# /sbin/xfs_check
/sbin/xfs_copy
/sbin/xfs_db
/sbin/xfs_freeze
/sbin/xfs_growfs
/sbin/xfs_info
/sbin/xfs_io
/sbin/xfs_logprint
/sbin/xfs_mkfile
/sbin/xfs_ncheck
/sbin/xfs_quota
/sbin/xfs_rtcp
/sbin/xfs_mdrestore
/sbin/xfs_metadump
/sbin/xfs_estimate
/sbin/xfs_fsr
/sbin/fsck.xfs
/sbin/mkfs.xfs
/sbin/xfs_repair
/sbin/xfs_scrub
/sbin/xfs_scrub_all
/sbin/xfs_spaceman
%{_mandir}/man[85]/*
%{_datadir}/%{name}/mkfs/*.conf
/lib/systemd/system/xfs_scrub@.service
/lib/systemd/system/xfs_scrub_all.service
/lib/systemd/system/xfs_scrub_all.timer
/lib/systemd/system/xfs_scrub_fail@.service
%dir /%{_lib}/xfsprogs
/%{_lib}/xfsprogs/xfs_scrub_all.cron
/%{_lib}/xfsprogs/xfs_scrub_fail

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for xfsprogs
License:	LGPLv2.1+
Group:		System/Libraries

%description -n %{libname}
This package contains the library needed to run programs dynamically
linked with libhandle.

%files -n %{libname}
%doc README
/%{_lib}/libhandle.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	XFS filesystem-specific libraries and headers
Group:		Development/C
License:	LGPLv2.1+
Requires:	%{libname} = %{EVRD}
# For uuid/uuid.h included in /usr/include/xfs/linux.h
Requires:	pkgconfig(uuid)
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
%{devname} contains the libraries and header files needed to
develop XFS filesystem-specific programs.

You should install %{devname} if you want to develop XFS
filesystem-specific programs, If you install %{devname}, you'll
also want to install xfsprogs.

%files -n %{devname}
%doc README
%{_libdir}/libhandle.so
%{_includedir}/xfs
%{_mandir}/man3/*
%{_mandir}/man2/*

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	XFS filesystem-specific static libraries
Group:		Development/C
License:	LGPLv2.1+
Requires:	%{devname} = %{EVRD}
Provides:	%{name}-static-devel = %{EVRD}

%description -n %{sdevname}
%{devname} contains the static libraries needed to
develop XFS filesystem-specific programs.

You should install %{sdevname} if you want to develop XFS
filesystem-specific programs, If you install %{sdevname}, you'll
also want to install xfsprogs.

%files -n %{sdevname}
%{_libdir}/libhandle.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1
aclocal -I m4
autoconf

%build
export DEBUG="-DNDEBUG"
export OPTIMIZER="%{optflags}"

%configure --libdir=/%{_lib} \
		--libexecdir=%{_libdir} \
		--sbindir=/sbin \
		--bindir=/usr/sbin \
		--enable-gettext=yes \
		--enable-static \
		--enable-editline=no \
		--enable-shared=yes \
		--enable-readine=yes

%make DEBUG=-DNDEBUG OPTIMIZER="%{optflags}"

%install
make install DIST_ROOT=%{buildroot}/
make install-dev DIST_ROOT=%{buildroot}/

install -d %{buildroot}%{_libdir}
rm %{buildroot}/%{_lib}/libhandle.so
ln -sr %{buildroot}/%{_lib}/libhandle.so.%{major}.* %{buildroot}%{_libdir}/libhandle.so
mv %{buildroot}/%{_lib}/libhandle.a %{buildroot}%{_libdir}/libhandle.a

chmod +x %{buildroot}/%{_lib}/libhandle.so.%{major}*

# nuke files already packaged as %doc
rm -r %{buildroot}%{_datadir}/doc/xfsprogs/
%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20337 |21mr|xfwp-1.0.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X firewall proxy
Name:		xfwp
Version:	1.0.2
Release:	12
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(x11)

%description
The X firewall proxy (xfwp) is an application layer gateway proxy that
may be run on a network firewall host to forward X traffic across the
firewall. Used in conjunction with the X server Security extension and
authorization checking, xfwp constitutes a safe, simple, and reliable
mechanism both to hide the addresses of X servers located on the
Intranet and to enforce a server connection policy.

%files
%{_bindir}/xfwp
%{_mandir}/man1/xfwp.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
   --disable-selective-werror

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20338 |21mr|xgamma-1.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xgamma
Version:	1.0.7
Release:	1
Summary:	Alter a monitor's gamma correction through the X server
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
License:	MIT

BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xxf86vm) >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
Alter a monitor's gamma correction through the X server

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/xgamma
%{_mandir}/man1/xgamma.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20339 |21mr|xgc-1.0.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xgc
Version:	1.0.5
Release:	4
Summary:	X graphics demo

Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: libxt-devel >= 1.0.0
BuildRequires: libxaw-devel >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1
BuildRequires:	flex

%description
The xgc program demonstrates various features of the X graphics primitives.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xgc
%{_datadir}/X11/app-defaults/Xgc
%{_datadir}/X11/app-defaults/Xgc-color
%{_mandir}/man1/xgc.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20340 |21mr|xhost-1.0.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: xhost
Version:	1.0.8
Release:	2
Summary: Server access control program for X

Group: Development/X11
Source0: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Patch0:	xhost-1.0.6-compile.patch
License: MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xau) >= 1.0.0
BuildRequires: pkgconfig(xmu) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1
Conflicts: setup < 2.7.10

%description
The xhost program is used to add and delete host names or user names to the
list allowed to make connections to the X server. In the case of hosts, this
provides a rudimentary form of privacy control and security. It is only
sufficient for a workstation (single user) environment, although it does limit
the worst abuses. Environments which require more sophisticated measures should
implement the user-based mechanism or use the hooks in the protocol for passing
other authentication data to the server.

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std


%files
%{_bindir}/xhost
%{_mandir}/man1/xhost.1%{_extension}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20341 |21mr|xinetd-2.3.15-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Powerful replacement for inetd
Name:		xinetd
Version:	2.3.15
Release:	13
License:	BSD
Group:		System/Base
Url:		http://www.xinetd.org
Source0:	http://www.xinetd.org/%{name}-%{version}.tar.gz
Source1:	xinetd.init
Source2:	xinetd.default.config
Source3:	convert.pl
Source4:	xinetd-ttime
Source5:	xinetd-utime
Source6:	xinetd-tdtime
Source7:	xinetd-udtime
Source8:	xinetd-echo
Source9:	xinetd-uecho
Source10:	xinetd-chargen
Source11:	xinetd-uchargen
Source12:	xinetd.sysconf
Source13:	xinetd-servers
Source14:	xinetd-services
Source15:	xinetd-xadmin
Source50:	faq.html
Source100:	%{name}.rpmlintrc
Patch0:		xinetd-2.3.15-pie.patch
Patch4:		xinetd-2.3.14-bind-ipv6.patch
Patch6:		xinetd-2.3.14-man-section.patch
Patch7:		xinetd-2.3.15-PIE.patch
Patch8:		xinetd-2.3.14-ident-bind.patch
Patch9:		xinetd-2.3.14-readable-debuginfo.patch
# Patch for clean reconfiguration using newer versions of autotools
Patch10:	xinetd-2.3.14-autoconf.patch
# Completely rewritten socket handling code (it uses poll() instead 
# of select() function)
Patch11:	xinetd-2.3.15-poll.patch
# New configuration option (limit for files opened by child process)
Patch12:	xinetd-2.3.14-file-limit.patch
# When using tcpmux, xinetd ended up with sigsegv
# (detection of NULL pointer in pollfd structure was missing)
Patch13:	xinetd-2.3.14-tcpmux.patch
# When service is destroyed, destroy also its
# file descriptor in array given to poll function
Patch14:	xinetd-2.3.14-clean-pfd.patch
# xinetd confuses ipv6 and ipv4 port parsing
# - furtunately, they have the same format, so everything
#   works even without this patch
Patch15:	xinetd-2.3.14-ipv6confusion.patch
# This fixes bug #593904 - online reconfiguration caused log message
# flood when turning off UDP service
Patch16:	xinetd-2.3.14-udp-reconfig.patch
Patch18:	xinetd-2.3.14-rpc-specific-port.patch
Patch19:	xinetd-2.3.14-signal-log-hang.patch
Patch20:	xinetd-2.3.14-fix-type-punned-ptr.patch
# Fix leaking file descriptors and pfd_array wasting
# This fixes #702670
Patch21:	xinetd-2.3.14-leaking-fds.patch
# Fix memory corruption when loading a large number of services
# This fixes #720390
Patch22:	xinetd-2.3.14-many-services.patch
# Remove realloc of fds that was causing memory corruption
Patch23:	xinetd-2.3.14-realloc-remove.patch
# Fix leaking descriptor when starting a service fails
Patch24:	xinetd-2.3.14-leaking-fds-2a.patch
# Fix #770858 - Instances limit in xinetd can be easily bypassed
Patch25:	xinetd-2.3.14-instances.patch
# Fix #809272 - Service disabled due to bind failure
Patch26:	xinetd-2.3.14-retry-svc-activate-in-cps-restart.patch
Patch27:	xinetd-2.3.15-fix-include-flask.h.patch

Patch90:	xinetd-2.3.15-tirpc.patch
Patch91:	xinetd-2.3.15-CVE-2013-4342.patch

BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	tcp_wrappers-devel
Requires:	tcp_wrappers
Requires(post,preun,postun):	rpm-helper
Provides:	xinetd-devel = %{EVRD}
Provides:	netkit-base = %{EVRD}

%description
xinetd is a powerful replacement for inetd.
xinetd has access control machanisms, extensive logging capabilities,
the ability to make services available based on time, and can place
limits on the number of servers that can be started, among other things.

xinetd has the ability to redirect TCP streams to a remote host and
port. This is useful for those of that use ip masquerading, or NAT,
and want to be able to reach your internal hosts.

xinetd also has the ability to bind specific services to specific
interfaces. This is useful when you want to make services available
for your internal network, but not the rest of the world.  Or to have
a different service running on the same port, but different interfaces.

%files
%doc INSTALL README FAQ.html CHANGELOG COPYRIGHT xinetd/sample.conf
%config(noreplace) %{_sysconfdir}/sysconfig/xinetd
%config(noreplace) %{_sysconfdir}/xinetd.conf
%{_initrddir}/xinetd
%dir %{_sysconfdir}/xinetd.d
%{_sbindir}/xinetd
%{_sbindir}/inetdconvert
%{_mandir}/*/*

%post
%_post_service %{name}

%preun
%_preun_service %{name}

#----------------------------------------------------------------------------

%package simple-services
Summary:	Internal xinetd simple services
License:	BSD
Group:		System/Base
Requires:	xinetd

%description simple-services
Internal xinetd simple services (not very useful one):

- chargen

Chargen is short for Character Generator and is a service that generates
random characters either in one UDP packet containing a random number (between
0 and 512) of characters, or a TCP session. The UDP Chargen server looks for a
UDP packet on port 19 and responds with the random character packet.

With TCP Chargen, the server sends as a continuous stream of TCP packets once
a connection is made, and until the session closes. The data is thrown away.
Chargen is used to find the cause for dropped packets. It uses TCP/UDP port
19. An infiltrator can create a DoS attack by spoofing an IP address and
causing two devices to send random traffic to each other.

RFC 864 describes the Chargen service.

- daytime

The Daytime protocol is another testing tool and uses port 13 for both UDP and
TCP versions. On receipt of a datagram to port 13, the server in the UDP
version, sends the current date and time in ASCII format in a datagram. The
TCP version, on receipt of a datagram to port 13, and once the connection is
established, sends the date and time in ASCII format and closes the
connection.

RFC 867 describes the Daytime service.

- echo

Echo uses UDP and TCP port 7 and is used as a debgging tool to send any
datagrams received from a source, back to that source. The risk with this is
that someone who has access to the network can overload devices via the Echo
service amounting to a DoS attack.

RFC 862 describes the Echo service.

- time

- servers

Show servers running

- services

Show available services

- xadmin

Show servers running and available services

%files simple-services
%config(noreplace) %{_sysconfdir}/xinetd.d/*

#----------------------------------------------------------------------------

%prep
%setup -q
install -m 0644 %{SOURCE50} FAQ.html
#chmod a+r INSTALL README FAQ.html CHANGELOG COPYRIGHT xinetd/sample.conf
%ifarch sparcv9 sparc64
%patch7 -p0 -b .PIE
%else
%patch0 -p0 -b .pie
%endif
%patch4 -p1 -b .bind
%patch6 -p1 -b .man-section
%patch8 -p1 -b .ident-bind
%patch9 -p1 -b .readable-debuginfo
%patch10 -p1 -b .autoconf
%patch11 -p1 -b .poll
%patch12 -p1 -b .file-limit
%patch13 -p1 -b .tcpmux
%patch14 -p1 -b .clean-pfd
%patch15 -p1 -b .ipv6confusion
%patch16 -p1 -b .udp-reconfig
%patch18 -p1 -b .rpc-specific-port
%patch19 -p1 -b .signal-log-hang
%patch20 -p1 -b .fix-type-punned-ptr
%patch21 -p1 -b .leaking-fds
%patch22 -p1 -b .many-services
%patch23 -p1 -b .realloc-remove
%patch24 -p1 -b .leaking-fds-2a
%patch25 -p1 -b .instances
%patch26 -p1 -b .retry-svc-activate
%patch27 -p1 -b .include-flask

%patch90 -p1 -b .tirpc
%patch91 -p1 -b .CVE-2013-4342

%build
aclocal
autoconf
export LDFLAGS="$LDFLAGS -Wl,-z,relro,-z,now"
%configure --with-loadavg --with-inet6 %{!?tcp_wrappers:--with-libwrap} --with-labeled-networking
%make

%install
%makeinstall \
    DAEMONDIR=%{buildroot}%{_sbindir} \
    MANDIR=%{buildroot}/%{_mandir} \
    FMODE="-m 644"

install -m 755 %{SOURCE3} %{buildroot}%{_sbindir}/inetdconvert

install -d -m 755 %{buildroot}%{_sysconfdir}
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/xinetd.conf

install -d -m 755 %{buildroot}%{_initrddir}/
install -m 755 %{SOURCE1} %{buildroot}%{_initrddir}/xinetd

install -d -m 755 %{buildroot}%{_sysconfdir}/xinetd.d
install -m 644 %{SOURCE4} %{buildroot}%{_sysconfdir}/xinetd.d/time
install -m 644 %{SOURCE5} %{buildroot}%{_sysconfdir}/xinetd.d/time-udp
install -m 644 %{SOURCE6} %{buildroot}%{_sysconfdir}/xinetd.d/daytime
install -m 644 %{SOURCE7} %{buildroot}%{_sysconfdir}/xinetd.d/daytime-udp
install -m 644 %{SOURCE8} %{buildroot}%{_sysconfdir}/xinetd.d/echo
install -m 644 %{SOURCE9} %{buildroot}%{_sysconfdir}/xinetd.d/echo-udp
install -m 644 %{SOURCE10} %{buildroot}%{_sysconfdir}/xinetd.d/chargen
install -m 644 %{SOURCE11} %{buildroot}%{_sysconfdir}/xinetd.d/chargen-udp
install -m 644 %{SOURCE14} %{buildroot}%{_sysconfdir}/xinetd.d/services

install -d -m 755 %{buildroot}%{_sysconfdir}/sysconfig
install -m 644 %{SOURCE12} %{buildroot}%{_sysconfdir}/sysconfig/xinetd

# no need to ship this one since we provide inetdconvert
rm -f %{buildroot}%{_sbindir}/itox
rm -f %{buildroot}%{_sbindir}/xconv.pl
rm -f %{buildroot}/%{_mandir}/man8/itox*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20342 |21mr|xinit-1.4.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bootstrap  0

Summary:	Initialize an X session
Name:		xinit
Version:	1.4.1
Release:	3
License:	MIT
Group:		System/X11
Url:		http://cgit.freedesktop.org/xorg/app/xinit
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
# Fedora specific patches
# (fc) prevent freeze from applications trying to read stdin (Fedora bug #214649)
Patch1: xinit-1.0.2-client-session.patch
# A few fixes submitted upstream, rhbz#1177513, rhbz#1203780
Patch5: 0003-startx-Make-startx-auto-display-select-work-with-per.patch

# Mageia patches:

# (fc) 1.0.2-2mdv read modifications for startx (argument parsing)
# This patch is part of the old "startx" patch.
# We need to check why exactly this patch is needed, but it does these things:
# - it removes the default client and server from the startx arguments, so if
#   nothing is specified the default server or client will be the one chosen by
#   xinit
# - it uses trap to make sure the "cleanup" function will be run
# - it partially undoes upstream commit 9632367abd03108f3636b05e9f2fd92f5c28dabe
# - it enables commands like "startx startxfce4", which don't work in the
#   unpatched version (should be "startx /usr/bin/startxfce4")
#Previous versions of this patch had a bug where xinit would be run twice if some
#macros were defined.
Patch50: xinit-1.3.4-startx-arguments.patch

# (fc) unset XDG_SESSION_COOKIE in startx (Fedora bug #489999)
Patch53: xinit-1.0.9-unset.patch

# (pz) this patch was taken from the old startx.patch
Patch54: xinit-1.3.4-replace-xterm-for-xvt.patch

# (cg) use the current vt to maintain the current session status.
Patch55: xinit-1.3.2-use-current-vt.patch

BuildRequires:	pkgconfig(x11)
BuildRequires:	x11-util-macros >= 1.0.1
Requires:	xinitrc
%if !%{bootstrap}
Requires:	which
%endif

%description
The xinit program is used to start the X Window System server and a first
client program on systems that cannot start X directly from /etc/init or in
environments that use multiple window systems. When this first client exits,
xinit will kill the X server and then terminate.

%files
%{_bindir}/xinit
%{_bindir}/startx
%{_mandir}/man1/startx.1*
%{_mandir}/man1/xinit.1*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch1 -p1
%patch5 -p1

# Mga patches:
%patch50 -p1 -b .orig

%patch53 -p1 -b .unset
%patch54 -p1 -b .xvt

%build
%configure
%make XINITDIR=/etc/X11/xinit

%install
%makeinstall_std

#don't use xorg xinitrc file, use our own, provided by xinitrc package
rm -fr %{buildroot}%{_libdir}/X11/xinit/xinitrc
rm -fr %{buildroot}%{_sysconfdir}/X11/xinit/xinitrc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20343 |21mr|xinitrc-2.4.49-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The default startup script for the X Window System
Name:		xinitrc
Version:	2.4.49
Release:	2
License:	Public Domain
Group:		System/X11
Url:		https://www.rosalinux.ru
Source0:	gdm.conf
Source1:	GiveConsole
Source2:	kdm.conf
Source3:	TakeConsole
Source4:	x11-Xresources
Source5:	Xaccess
Source6:	xdm.conf
Source7:	xdm-config
Source8:	xdm-Xsession
Source9:	xinitrc-fixkeyboard
Source11:	xinitrc-RunWM
Source12:	xinitrc-Xclients
Source13:	xinitrc-XIM
Source14:	xinitrc-xinitrc
Source15:	xinitrc-Xmodmap
Source16:	Xresources
Source17:	Xservers
Source18:	Xsession
Source19:	Xsetup_0
Source20:	Xwilling
Source21:	xdm-Xstartup
Source22:	xdm-Xreset
Source23:	XIM.xinit
Requires:	x11-server-xorg
# Because of <basedir>/X11 directory handling
Requires:	x11-server-common >= 1.4.2
Requires:	xdpyinfo
Requires:	xmodmap
Requires:	xsetroot
Requires:	/bin/sh
Requires:	/bin/grep
Requires:	%{_bindir}/pgrep
Requires:	sessreg
Requires:	xrdb
BuildArch:	noarch

%description
The xinitrc package contains the xinitrc file, a script which is used
to configure your X Window System session or to start a window manager.

%prep

%build

%install

R=%{buildroot}
	
mkdir -p $R%{_sysconfdir}/X11/{xdm,xinit}
install -m755 %{SOURCE18} $R%{_sysconfdir}/X11/
install -m644 %{SOURCE4} $R%{_sysconfdir}/X11/Xresources

mkdir $R%{_sysconfdir}/X11/{xinit,xsetup}.d
install -m 755 %{SOURCE23} $R%{_sysconfdir}/X11/xinit.d/02XIM
mkdir $R%{_sysconfdir}/X11/wmsession.d
mkdir -p $R%{_datadir}/X11/xdm
install -m755 {%{SOURCE20},%{SOURCE19},%{SOURCE3},%{SOURCE1}} $R%{_datadir}/X11/xdm
ln -s ../../..%{_datadir}/X11/xdm/{Xwilling,Xsetup_0,TakeConsole,GiveConsole} $R%{_sysconfdir}/X11/xdm
install -m644 %{SOURCE7} %{SOURCE17} %{SOURCE16} %{SOURCE5} $R%{_sysconfdir}/X11/xdm
ln -s ../../../..%{_sysconfdir}/X11/xdm/{xdm-config,Xservers,Xresources,Xaccess} $R%{_datadir}/X11/xdm
install -m755 %{SOURCE8} $R%{_datadir}/X11/xdm/Xsession

install -m755 %{SOURCE22} $R%{_datadir}/X11/xdm/Xreset
install -m755 %{SOURCE21} $R%{_datadir}/X11/xdm/Xstartup
ln -s ../../..%{_datadir}/X11/xdm/{Xsession,Xreset,Xstartup} $R%{_sysconfdir}/X11/xdm

install -m644 %{SOURCE15} $R%{_sysconfdir}/X11/Xmodmap
install -m644 %{SOURCE14} $R%{_sysconfdir}/X11/xinit/xinitrc
install -m644 %{SOURCE12} $R%{_sysconfdir}/X11/xinit/Xclients
install -m755 %{SOURCE9} $R%{_sysconfdir}/X11/xinit/fixkeyboard
install -m644 %{SOURCE13} $R%{_sysconfdir}/X11/xinit/XIM

mkdir -p $R%{_bindir}/
install -m755 %{SOURCE11} $R%{_bindir}/RunWM
for i in Fvwm95 MWM AfterStep WindowMaker; do ln -sf RunWM $R%{_bindir}/RunWM.$i;done

mkdir -p $R%{_datadir}/X11/dm.d
install -m644 %{SOURCE2} $R%{_datadir}/X11/dm.d/10kdm.conf
install -m644 %{SOURCE0} $R%{_datadir}/X11/dm.d/20gdm.conf
install -m644 %{SOURCE6} $R%{_datadir}/X11/dm.d/30xdm.conf

%files
%config(noreplace) %{_sysconfdir}/X11/Xmodmap
%config(noreplace) %{_sysconfdir}/X11/Xresources
%config(noreplace) %{_sysconfdir}/X11/xdm/xdm-config
%config(noreplace) %{_sysconfdir}/X11/xdm/Xservers
%config(noreplace) %{_sysconfdir}/X11/xdm/Xresources
%config(noreplace) %{_sysconfdir}/X11/xdm/Xaccess
%{_sysconfdir}/X11/xdm/GiveConsole
%{_sysconfdir}/X11/xdm/TakeConsole
%{_sysconfdir}/X11/xdm/Xreset
%{_sysconfdir}/X11/xdm/Xsession
%{_sysconfdir}/X11/xdm/Xsetup_0
%{_sysconfdir}/X11/xdm/Xstartup
%{_sysconfdir}/X11/xdm/Xwilling
%dir %{_sysconfdir}/X11/wmsession.d
%dir %{_sysconfdir}/X11/xinit
%dir %{_sysconfdir}/X11/xinit.d
%dir %{_sysconfdir}/X11/xsetup.d
%{_sysconfdir}/X11/Xsession
%{_sysconfdir}/X11/xinit.d/02XIM
%{_sysconfdir}/X11/xinit/XIM
%{_sysconfdir}/X11/xinit/Xclients
%{_sysconfdir}/X11/xinit/fixkeyboard
%{_sysconfdir}/X11/xinit/xinitrc
%{_bindir}/RunWM
%{_bindir}/RunWM.AfterStep
%{_bindir}/RunWM.Fvwm95
%{_bindir}/RunWM.MWM
%{_bindir}/RunWM.WindowMaker
%{_datadir}/X11/dm.d
%{_datadir}/X11/xdm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20344 |21mr|xinput-1.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Runtime configuration and test of XInput devices
Name:		xinput
Version:	1.6.3
Release:	1
License:	MIT
Group:		System/X11
Url:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(inputproto)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xrandr)

%description
Runtime configuration and test of XInput devices.

%files
%doc README ChangeLog
%{_bindir}/xinput
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20345 |21mr|xkbcomp-1.4.5-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Compile XKB keyboard description
Name:		xkbcomp
Version:	1.4.5
Release:	3
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Patch0:		xkbcomp-1.4.5-suppress-keysym-warnings-at-the-default-warnings.patch
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xkbfile)

%description
The xkbcomp keymap compiler converts a description of an XKB keymap into one of
several output formats. The most common use for xkbcomp is to create a compiled
keymap file (.xkm extension) which can be read directly by XKB-capable X
servers or utilities.

%files
%{_bindir}/xkbcomp
%{_mandir}/man1/xkbcomp.1*

#----------------------------------------------------------------------------

%package devel
Summary:	Devel file for xkbcomp
Requires:	%{name} = %{EVRD}

%description devel
This packages contains the devel file for xkbcomp.

%files devel
%{_libdir}/pkgconfig/xkbcomp.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20346 |21mr|xkbevd-1.1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xkbevd
Version:	1.1.4
Release:	5
Summary:	XKB event daemon
Group:		Development/X11
URL:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xkbfile) >= 1.0.1
BuildRequires:	x11-util-macros >= 1.0.1
BuildRequires:	bison

%description
The xkbevd event daemon listens for specified XKB events and executes
requested commands if they occur. The configuration file consists of a
list of event specification/action pairs and/or variable definitions.

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
mkdir -p %{buildroot}/%{_datadir}/X11/xkb
install -m 644 example.cf xkbevd.cf %{buildroot}/%{_datadir}/X11/xkb
%makeinstall_std

%files
%{_bindir}/xkbevd
%{_mandir}/man1/xkbevd.1*
%{_datadir}/X11/xkb/*.cf
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20347 |21mr|xkbprint-1.0.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Print an XKB keyboard description
Name:		xkbprint
Version:	1.0.6
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xkbfile)

%description
The xkbprint comman generates a printable or encapsulated PostScript
description of the XKB keyboard description specified by a file.

%files
%{_bindir}/xkbprint
%{_mandir}/man1/xkbprint.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20348 |21mr|xkbutils-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X.Org X11 XKB utilities
Name:		xkbutils
Version:	1.0.5
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xkbfile)

%description
This package provides several XKB utilities for X.org.

%files
%doc README.md
%license COPYING
%{_bindir}/xkbbell
%{_bindir}/xkbvleds
%{_bindir}/xkbwatch
%{_mandir}/man1/*.1.*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}-%{version}

%build
%configure	\
	--x-includes=%{_includedir}	\
	--x-libraries=%{_libdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20349 |21mr|xkeyboard-config-2.35.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	XKB data files
Name:		xkeyboard-config
Version:	2.35.1
Release:	4
Epoch:		1
License:	MIT
Group:		Development/X11
Url:		https://www.freedesktop.org/wiki/Software/XKeyboardConfig
Source0:	https://www.x.org/releases/individual/data/xkeyboard-config/%{name}-%{version}.tar.xz
#Patch0:		xkeyboard-config-2.35.1-resolve-keysym-warnings.patch
# Re-enable Ctrl-Alt-Backspace (zapping) by default
Patch9:		xkeyboard-config-2.32-Enable-zapping-by-default.patch
# Breton keyboard
Patch12:	xkeyboard-config-2.35.1-breton-support.patch
BuildRequires:	glib-gettextize
BuildRequires:	intltool
BuildRequires:	meson
BuildRequires:	perl-XML-Parser
BuildRequires:	x11-util-macros
BuildRequires:	xkbcomp
BuildRequires:	xsltproc
BuildRequires:	gettext-devel
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(x11)
Provides:	x11-data-xkbdata = %{EVRD}
Obsoletes:	x11-data-xkbdata < %{EVRD}
BuildArch:	noarch

%description
Xkeyboard-config provides consistent, well-structured, frequently released of X
keyboard configuration data (XKB) for various X Window System implementations.

%files -f %{name}.lang
%dir %{_datadir}/X11/xkb/
%attr(0755,root,root) %dir %{_localstatedir}/lib/xkb
%{_datadir}/X11/xkb/*
%{_datadir}/pkgconfig/xkeyboard-config.pc
%{_mandir}/man7/xkeyboard-config.7.*

%pre
# this was a directory in the old installation
if [ -d "%{_datadir}/X11/xkb/compiled" ]; then
	rm -rf %{_datadir}/X11/xkb/compiled
fi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson	\
	-Dcompat-rules=true	\
	-Dxorg-rules-symlinks=true
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_localstatedir}/lib/xkb
#need this symlink for xkb to work (Mdv bug #34195)
ln -snf %{_localstatedir}/lib/xkb %{buildroot}%{_datadir}/X11/xkb/compiled

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20350 |21mr|xkill-1.0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Kill a client by its X resource
Name:		xkill
Version:	1.0.5
Release:	2
License:	MIT
Group:		Monitoring
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Source11:	%{name}-mini.png
Source12:	%{name}-std.png
Source13:	%{name}-large.png
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%description
Xkill is a utility for forcing the X server to close connections to clients.
This program is very dangerous, but is useful for aborting programs that have
displayed undesired windows on a user's screen.

%files
%{_bindir}/xkill
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_miconsdir}/xkill.png
%{_iconsdir}/xkill.png
%{_liconsdir}/xkill.png

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=XKill
Comment=Kill a client by its X resource
Exec=/usr/bin/xkill
Icon=xkill
Terminal=false
Type=Application
StartupNotify=true
Categories=System;Monitor;
NoDisplay=true
EOF

install -m644 %{SOURCE11} -D %{buildroot}%{_miconsdir}/xkill.png
install -m644 %{SOURCE12} -D %{buildroot}%{_iconsdir}/xkill.png
install -m644 %{SOURCE13} -D %{buildroot}%{_liconsdir}/xkill.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20351 |21mr|xl2tpd-1.3.16-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define sname xl2tpd

Summary:	Layer 2 Tunnelling Protocol Daemon (RFC 2661)
Name:		xl2tpd
Version:	1.3.16
Release:	3
License:	GPLv2
Url:		https://github.com/xelerance/xl2tpd
Group:		System/Base
Source0:	https://github.com/xelerance/xl2tpd/archive/v%{version}.tar.gz
Source1:	xl2tpd.service
Source2:	tmpfiles-xl2tpd.conf

Patch1:		%{sname}.c.patch
Patch2:		%{sname}-nokernel.patch

Requires:	ppp >= 2.4.5
# If you want to authenticate against a Microsoft PDC/Active Directory
# Requires: samba-winbind
BuildRequires:	libpcap-devel
BuildRequires:	systemd-units
BuildRequires:	pkgconfig(openssl)
Requires(post,preun,postun): systemd
Requires:	(strongswan or libreswan)

Conflicts:	xl2tpd-kernel
Provides:	l2tpd
Provides:	xl2tpd-nokernel

%description
xl2tpd is an implementation of the Layer 2 Tunnelling Protocol (RFC 2661).
L2TP allows you to tunnel PPP over UDP. Some ISPs use L2TP to tunnel user
sessions from dial-in servers (modem banks, ADSL DSLAMs) to back-end PPP
servers. Another important application is Virtual Private Networks where
the IPsec protocol is used to secure the L2TP connection (L2TP/IPsec,
RFC 3193). The L2TP/IPsec protocol is mainly used by Windows and 
Mac OS X clients. On Linux, xl2tpd can be used in combination with IPsec
implementations such as Openswan.
Example configuration files for such a setup are included in this RPM.

xl2tpd works by opening a pseudo-tty for communicating with pppd.
It runs completely in userspace.

xl2tpd supports IPsec SA Reference tracking to enable overlapping internak
NAT'ed IP's by different clients (eg all clients connecting from their
linksys internal IP 192.168.1.101) as well as multiple clients behind
the same NAT router.

xl2tpd supports the pppol2tp kernel mode operations on 2.6.23 or higher,
or via a patch in contrib for 2.4.x kernels.

Xl2tpd is based on the 0.69 L2TP by Jeff McAdams <jeffm@iglou.com>
It was de-facto maintained by Jacco de Leeuw <jacco2@dds.nl> in 2002 and 2003.

%prep
%autosetup -p1 -n %{sname}-%{version}

%build
export CFLAGS="$CFLAGS -fPIC -Wall"
export DFLAGS="$RPM_OPT_FLAGS -g "
export LDFLAGS="$LDFLAGS -pie -Wl,-z,relro -Wl,-z,now"
%make

%install
make DESTDIR=%{buildroot} PREFIX=%{_prefix} install
install -d 0755 %{buildroot}%{_unitdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{sname}.service
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 %{SOURCE2} %{buildroot}%{_tmpfilesdir}/%{sname}.conf

install -p -D -m644 examples/%{sname}.conf %{buildroot}%{_sysconfdir}/%{sname}/%{sname}.conf
install -p -D -m644 examples/ppp-options.%{sname} %{buildroot}%{_sysconfdir}/ppp/options.%{sname}
install -p -D -m600 doc/l2tp-secrets.sample %{buildroot}%{_sysconfdir}/%{sname}/l2tp-secrets
install -p -D -m600 examples/chapsecrets.sample %{buildroot}%{_sysconfdir}/ppp/chap-secrets.sample

%post
%tmpfiles_create %{sname}.conf
%_post_service %{sname}

%preun
%_preun_service %{sname}


%files
%doc BUGS CHANGES CREDITS LICENSE README.* TODO
%doc doc/README.patents examples/chapsecrets.sample
%{_sbindir}/%{sname}
%{_sbindir}/%{sname}-control
%{_bindir}/pfc
%{_mandir}/*/*
%dir %{_sysconfdir}/%{sname}
%config(noreplace) %{_sysconfdir}/%{sname}/*
%config(noreplace) %{_sysconfdir}/ppp/*
%ghost %dir %{_localstatedir}/run/%{sname}
%{_unitdir}/%{sname}.service
%config(noreplace) %{_tmpfilesdir}/%{sname}.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20352 |21mr|xlhtml-0.5-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%define major 2
%define libname %mklibname cole %{major}
%define devname %mklibname cole -d

Summary:	Excel 95 and later file converter
Name:		xlhtml
Version:	0.5
Release:	17
License:	GPLv2+
Group:		Text tools
Url:		http://chicago.sourceforge.net/xlhtml/
Source0:	%{name}-%{version}.tar.bz2
Patch0:		xlhtml-0.5.diff
Requires:	xlhtml-cole

%description
xlHtml is an Excel 95 and later file converter. Its html output can be
used as a Netscape Plug-in to let you view xls e-mail attachments. It
can also extract regions of a spreadsheet and convert the spreadsheet
to pure text rather than html.

%files
%doc xlhtml/TODO xlhtml/README README-ppthtml
%{_bindir}/nsopen
%{_bindir}/nspptview
%{_bindir}/nsxlview
%{_bindir}/ppthtml
%{_bindir}/xlhtml
%{_mandir}/*/*

#----------------------------------------------------------------------------

%package -n xlhtml-cole
Summary:	Free C OLE library
Group:		Text tools

%description -n xlhtml-cole
Using cole, you can access Microsoft "Structured Storage" files. The
most popular Microsoft programs generate "Structured Storage" files,
including the Microsoft suite for offices. StarDivision's suite
(StarOffice) generates "Structured Storage" files, too. FlashPix file
format is "Structured Storage", too.

%files -n xlhtml-cole
%doc AUTHORS COPYING ChangeLog NEWS cole/TODO README
%{_bindir}/cole_extract
%{_bindir}/cole_isfs
%{_bindir}/cole_isfs_fast
%{_bindir}/cole_tree

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Free C OLE shared library
Group:		System/Libraries
Conflicts:	xlhtml-cole < 0.5-14

%description -n %{libname}
Free C OLE shared library.

%files -n %{libname}
%{_libdir}/libcole.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for free C OLE shared library
Group:		Development/C++
Provides:	%{name}-devel = %{EVRD}
Provides:	cole-devel = %{EVRD}
Conflicts:	xlhtml-cole < 0.5-14

%description -n %{devname}
Development files for free C OLE shared library.

%files -n %{devname}
%{_bindir}/cole-config
%{_libdir}/libcole.so
%{_includedir}/cole

#----------------------------------------------------------------------------

%prep
%setup -q
%patch -p0

mv ppthtml/README README-ppthtml

%build
autoreconf -fi
%configure \
	--disable-static
%make
%make -C cole/utils

%install
%makeinstall_std
# xlhtml-cole
install -m 755 cole/cole-config %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_includedir}/cole
install cole/cole.h %{buildroot}%{_includedir}/cole
install cole/utils/cole_extract %{buildroot}%{_bindir}
install cole/utils/cole_isfs %{buildroot}%{_bindir}
install cole/utils/cole_isfs_fast %{buildroot}%{_bindir}
install cole/utils/cole_tree %{buildroot}%{_bindir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20353 |21mr|xli-20061110-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define fver 2006-11-10

Summary:	XLI - X11 Image Loading Utility
Name:		xli
Version:	20061110
Release:	17
License:	MIT
Group:		Graphics
Url:		http://pantransit.reptiles.org/prog/
Source0:	http://pantransit.reptiles.org/prog/%{name}/%{name}-%{fver}.tar.gz
Patch1:		xli-1.17.0-mdkpath.patch
Patch2:		xli-1.17.0-compile-fixes.patch
BuildRequires:	gccmakedep
BuildRequires:	imake
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
This utility will view several types of images under X11, or load
images onto the X11 root window.  Can view the following image types
under X11:

FBM Image, Sun Rasterfile, CMU WM Raster, Portable Bit Map (PBM, PGM,
PPM), Faces Project, GIF Image, JFIF style jpeg Image, Utah RLE Image,
Windows, OS/2 RLE Image, Photograph on CD Image, X Window Dump, Targa 
Image, McIDAS areafile, G3 FAX Image, PC Paintbrush Image, GEM Bit Image,
MacPaint Image, X Pixmap (.xpm), XBitmap

%files
%doc chkgamma.jpg README* ABOUTGAMMA
%{_bindir}/*
%config(noreplace) %{_sysconfdir}/X11/app-defaults/*
%{_mandir}/*/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{fver}

%build
xmkmf -a
%make \
	CFLAGS="%{optflags}" \
	EXTRA_LDOPTIONS="%{ldflags}"

for i in xli xlito; do cp -f $i.man $i.1; done
cp -f xliguide.man xliguide.5

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sysconfdir}/X11/app-defaults/
make install SYSPATHFILE=%{buildroot}%{_sysconfdir}/X11/app-defaults/Xli BINDIR=%{buildroot}%{_bindir}

for i in *.1;do install -m644 $i -D %{buildroot}%{_mandir}/man1/$i;done
install -m644 xliguide.5 -D %{buildroot}%{_mandir}/man5/xliguide.5

ln -sf xli %{buildroot}%{_bindir}/xsetbg
ln -sf xli %{buildroot}%{_bindir}/xview
ln -sf xli %{buildroot}%{_bindir}/xloadimage

# quick fix for doc permissions
chmod 644 README*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20354 |21mr|xload-1.1.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	System load average display for X
Name:		xload
Version:	1.1.4
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
BuildRequires:	libxaw-devel
BuildRequires:	libxt-devel
BuildRequires:	x11-util-macros

%description
The xload program displays a periodically updating histogram of the system
load average.

%files
%{_bindir}/%{name}
%{_datadir}/X11/app-defaults/XLoad
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20355 |21mr|xlockmore-5.46-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xlockmore
Summary:	An X terminal locking program
Version:	5.46
Release:	4
License:	BSD
Group:		Graphical desktop/Other
Url:		http://www.tux.org/~bagleyd/xlockmore.html
Source:		http://www.tux.org/~bagleyd/xlock/%{name}-%{version}/%{name}-%{version}.tar.xz
Source1:	xlock.pamd
Patch0:		xlockmore-5.46-soundpath.patch
Patch3:		xlockmore-5.30-include_ftgl_path.patch
Requires:	pam >= 0.59
Requires:	fortune-mod
Requires:	pam
#fhimpe: needed for chkpwd group
Requires:	setup >= 2.7.12-2
BuildRequires:	esound-devel 
BuildRequires:	gtk+2-devel
BuildRequires:	mesa-common-devel 
BuildRequires:	pam-devel 
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	xpm-devel 
BuildRequires:	pkgconfig(xt)

%description
The xlockmore utility is an enhanced version of the standard xlock
program, which allows you to lock an X session so that other users
can't access it.  Xlockmore runs a provided screensaver until you type
in your password.

Install the xlockmore package if you need a locking program to secure
X sessions.

%package gtk2
Summary:	A GTK2 front-end to xlockmore
Url:		http://www.tux.org/~bagleyd/xlockmore.html
Group:		Graphical desktop/Other
License:	BSD
Requires:	xlockmore

%description gtk2
A GTK2 front-end to xlockmore.

%prep
%setup -q
%patch0 -p1 -b .soundpath
%patch3 -p1 -b .include_ftgl_path

%{__sed} -i -e "s,/lib,/%{_lib},g" configure

%build
export CXXFLAGS="-laudiofile"
autoconf

%configure \
	--without-motif \
	--with-gtk2 \
	--without-gtk \
	--enable-pam \
	--enable-syslog \
	--disable-setuid \
	--with-crypt \
	--without-rplay \
	--enable-appdefaultdir=%{_datadir}/X11/app-defaults
make

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/sounds/xlockmore
mkdir -p %{buildroot}%{_datadir}/xlock

perl -p -i -e 's/-o root//g' Makefile */Makefile

install -m 755 xlock/xlock -D %{buildroot}%{_bindir}/xlock
install -m 755 xglock/xglock -D %{buildroot}%{_bindir}/xglock
install -m644 xlock/xlock.man -D %{buildroot}%{_mandir}/man1/xlock.1
install -m644 xlock/XLock.ad -D %{buildroot}%{_datadir}/X11/app-defaults/XLock
install -m644 %{SOURCE1} -D %{buildroot}%{_sysconfdir}/pam.d/xlock
install -m755 xlock/xlock -D %{buildroot}%{_bindir}/xlock

cp sounds/*.au %{buildroot}%{_datadir}/sounds/xlockmore
rm -rf %{buildroot}%{_mandir}/xlock.1*
chmod 755 %{buildroot}%{_bindir}/xlock


mkdir -p %{buildroot}%{_datadir}/applications

cat >> %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Xlock
Comment=X11 screen saver
Comment[ru]=Хранитель экрана для X11
Icon=gnome-lockscreen.png
Exec=xlock
Terminal=false
Type=Application
Category=System;
NotShowIn=MATE;
EOF

%clean

%files
%attr(2755,root,chkpwd) %{_bindir}/xlock
%{_mandir}/man1/xlock.1*
%config(noreplace) %{_datadir}/X11/app-defaults/XLock
%{_datadir}/sounds/xlockmore
%{_datadir}/applications/%{name}.desktop
%config(noreplace) %{_sysconfdir}/pam.d/*

%files gtk2
%{_bindir}/xglock
%{_datadir}/xlock

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20356 |21mr|xlogo-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xlogo
Version:	1.0.5
Release:	1
Summary:	X Window System logo
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: pkgconfig(xext)
BuildRequires: pkgconfig(xt)
BuildRequires: pkgconfig(xaw7)
BuildRequires: pkgconfig(xrender) >= 0.9.0.2
BuildRequires: pkgconfig(xorg-macros) >= 1.0.1
BuildRequires: pkgconfig(xft) >= 2.1.8.2

%description
The xlogo program displays the X Window System logo.

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/xlogo
%{_datadir}/X11/app-defaults/XLogo-color
%{_datadir}/X11/app-defaults/XLogo
%{_mandir}/man1/xlogo.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20357 |21mr|xlsatoms-1.1.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xlsatoms
Version:	1.1.3
Release:	2
Summary:	List interned atoms defined on server
Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires:	xcb-devel
BuildRequires:	x11-util-macros >= 1.0.1

%description
Xlsatoms lists the interned atoms. By default, all atoms starting
from 1 (the lowest atom value defined by the protocol) are listed
until unknown atom is found. If an explicit range is given, xlsatoms
will try all atoms in the range, regardless of whether or not any
are undefined.

%prep
%setup -q -n %{name}-%{version}

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/xlsatoms
%{_mandir}/man1/xlsatoms.1*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20358 |21mr|xlsclients-1.1.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	List client applications running on a display
Name:		xlsclients
Version:	1.1.4
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xcb)
BuildRequires:	pkgconfig(xcb-util)

%description
Xlsclients is a utility for listing information about the client
applications running on a display. It may be used to generate scripts
representing a snapshot of the user's current session.

%files
%{_bindir}/xlsclients
%{_mandir}/man1/xlsclients.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20359 |21mr|xlsfonts-1.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Server font list displayer for X
Name:		xlsfonts
Version:	1.0.7
Release:	1
Group:		Development/X11
License:	MIT
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)

%description
Xlsfonts lists the fonts that match the given pattern. The wildcard character
"*" may be used to match any sequence of characters (including none), and "?"
to match any single character.

%files
%{_bindir}/xlsfonts
%{_mandir}/man1/xlsfonts.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure	\
	--x-includes=%{_includedir}	\
	--x-libraries=%{_libdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20360 |21mr|xmag-1.0.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Magnify parts of the screen
Name:		xmag
Version:	1.0.7
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
Source1:	xmag.xpm
Source2:	xmag.xpm.large
Source3:	xmag.xpm.mini
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
The xmag program allows you to magnify portions of an X screen.

%files
%{_bindir}/xmag
%{_datadir}/X11/app-defaults/Xmag
%{_mandir}/man1/xmag.1*
%{_datadir}/icons/xmag.xpm
%{_datadir}/icons/*/xmag.xpm

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

# install icons
mkdir -p %{buildroot}%{_datadir}/icons/large
mkdir -p %{buildroot}%{_datadir}/icons/mini

install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/xmag.xpm
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/large/xmag.xpm
install -m0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/mini/xmag.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20361 |21mr|xman-1.1.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	enable_xprint 0

Name:		xman
Version:	1.1.5
Release:	1
Summary:	Manual page display program for the X Window System
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2

# Not really required, but configure checks for /etc/man.config
# to know if should or not use it.
BuildRequires:	man
BuildRequires:	xaw-devel >= 1.0.1
%if %{enable_xprint}
BuildRequires:	libxprintutil-devel >= 1.0.1
BuildRequires:	pkgconfig(xp) >= 1.0.0
%endif
BuildRequires:	pkgconfig(xorg-macros) >= 1.0.1

%description
Xman is a manual page display program for the X Window System.

%prep
%setup -q

%build
%global optflags %{optflags} -Wno-error -Wno-tautological-pointer-compare
%configure \
%if %{enable_xprint}
		--enable-xprint
%else
		--disable-xprint
%endif
%make

%install
%makeinstall_std

%files
%{_bindir}/xman
%{_datadir}/X11/xman.help
%{_datadir}/X11/app-defaults/Xman
%{_mandir}/man1/xman.*
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20362 |21mr|xmessage-1.0.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Display a message or query in a window
Name:		xmessage
Version:	1.0.5
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
The xmessage program displays a window containing a message from the command
line, a file, or standard input.

%files
%{_bindir}/xmessage
%{_datadir}/X11/app-defaults/Xmessage-color
%{_datadir}/X11/app-defaults/Xmessage
%{_mandir}/man1/xmessage.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20363 |21mr|xmlbeans-2.6.0-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%bcond_with bootstrap
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}

Name:           xmlbeans
Version:        2.6.0
Release:        19%{?with_bootstrap:.boot}
Summary:        XML-Java binding tool
URL:            http://xmlbeans.apache.org/
Source0:        http://www.apache.org/dist/xmlbeans/source/%{name}-%{version}-src.tgz
# Pom file is not available from maven repository for the
# currently released version
Source1:        %{name}-%{version}.pom
Source2:        http://repo1.maven.org/maven2/org/apache/%{name}/%{name}-xpath/%{version}/%{name}-xpath-%{version}.pom
Source3:        http://repo1.maven.org/maven2/org/apache/%{name}/%{name}-xmlpublic/%{version}/%{name}-xmlpublic-%{version}.pom
Patch0:         xmlbeans-2.6.0-nodownload.patch
Patch1:         0001-Update-to-newer-saxon-API.patch
Patch2:         xmlbeans-2.6.0-iso-8859-1-encoding.patch
Patch3:         xmlbeans-2.6.0-jsr-bundle.patch
Patch4:         xmlbeans-scripts-classpath.patch
# error: cannot access TypeStoreUser
Patch5:         xmlbeans-2.6.0-java8.patch
Group:          Development/Java
License:        ASL 2.0

%if %without bootstrap
BuildRequires:  xmlbeans
%endif
BuildRequires:  java-devel
BuildRequires:  jpackage-utils >= 0:1.5
# add_maven_depmap macro is now located in javapackages-local
BuildRequires:  javapackages-local
BuildRequires:  ant >= 0:1.6, ant-junit, ant-contrib, junit
BuildRequires:  xml-commons-resolver >= 0:1.1
BuildRequires:  bea-stax-api
BuildRequires:  saxon >= 8
Requires:       jpackage-utils >= 0:1.6
Requires:       java-headless

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
XMLBeans is a tool that allows you to access the full power 
of XML in a Java friendly way. It is an XML-Java binding tool. 
The idea is that you can take advantage the richness and 
features of XML and XML Schema and have these features mapped 
as naturally as possible to the equivalent Java language and 
typing constructs. XMLBeans uses XML Schema to compile Java 
interfaces and classes that you can then use to access and 
modify XML instance data. Using XMLBeans is similar to using 
any other Java interface/class, you will see things like 
getFoo or setFoo just as you would expect when working with 
Java. While a major use of XMLBeans is to access your XML 
instance data with strongly typed Java classes there are also 
API's that allow you access to the full XML infoset (XMLBeans 
keeps full XML Infoset fidelity) as well as to allow you to 
reflect into the XML schema itself through an XML Schema 
Object model.


%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
%{summary}.


%package manual
Summary:        Documents for %{name}

%description manual
%{summary}.


%package scripts
Summary:        Scripts for %{name}
Requires:       %{name} = %{version}-%{release}

%description scripts
%{summary}.


%prep
%setup -q -n %{name}-%{version}
%patch0 -p1 -b .nodownload
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p0

%build
# Piccolo and jam are rebuilt from source and bundled with xbean
# ant clean.jars leaves some dangling jars around, do not use it
find . \( -name '*.jar' -o -name '*.zip' \) \
        -not -name 'piccolo*.jar' -not -name 'jam*.jar' \
        %{?with_bootstrap:-not -name 'oldxbean.jar' } \
        -print -delete

# Replace bundled libraries
mkdir -p build/lib
ln -sf $(build-classpath xml-commons-resolver) build/lib/resolver.jar
ln -sf $(build-classpath xmlbeans/xbean) external/lib/oldxbean.jar
ln -sf $(build-classpath bea-stax-api) external/lib/jsr173_1.0_api.jar
ln -sf $(build-classpath saxon/saxon) external/lib/saxon9.jar
ln -sf $(build-classpath saxon/saxon) external/lib/saxon9-dom.jar

# Fix CRLF
sed 's/\r//' -i LICENSE.txt NOTICE.txt README.txt docs/stylesheet.css docs/xmlbeans.css docs/guide/tools.html

# Build
ant -Djavac.source=1.6 -Djavac.target=1.6 default docs

%install
# jar
install -d -m 0755 $RPM_BUILD_ROOT%{_javadir}/%{name}
install -p -m 0644 build/lib/xmlpublic.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/xmlpublic.jar
install -p -m 0644 build/lib/xbean_xpath.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/xbean_xpath.jar
install -p -m 0644 build/lib/xbean.jar $RPM_BUILD_ROOT%{_javadir}/%{name}/xbean.jar

mkdir -p $RPM_BUILD_ROOT%{_mavenpomdir}
install -pm 644 %{SOURCE1} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-xbean.pom
%add_maven_depmap JPP.%{name}-xbean.pom %{name}/xbean.jar
install -pm 644 %{SOURCE2} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-xbean_xpath.pom
%add_maven_depmap JPP.%{name}-xbean_xpath.pom %{name}/xbean_xpath.jar
install -pm 644 %{SOURCE3} $RPM_BUILD_ROOT%{_mavenpomdir}/JPP.%{name}-xmlpublic.pom
%add_maven_depmap JPP.%{name}-xmlpublic.pom %{name}/xmlpublic.jar

# bin
install -d -m 0755 $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/dumpxsb   $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/inst2xsd  $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/scomp     $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/sdownload $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/sfactor   $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/svalidate $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/validate  $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/xpretty   $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/xsd2inst  $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/xsdtree   $RPM_BUILD_ROOT%{_bindir}
install -p -m 0755 bin/xstc      $RPM_BUILD_ROOT%{_bindir}


# javadoc
install -d -m 755 $RPM_BUILD_ROOT%{_javadocdir}/%{name}
cp -pr build/docs/reference/* $RPM_BUILD_ROOT%{_javadocdir}/%{name}
rm -rf build/docs/reference

# manual
install -d -m 755 $RPM_BUILD_ROOT%{_pkgdocdir}
cp -pr build/docs/* README.txt $RPM_BUILD_ROOT%{_pkgdocdir}

%files -f .mfiles
%dir %{_pkgdocdir}
%doc %{_pkgdocdir}/README.txt
%license LICENSE.txt NOTICE.txt

%files javadoc
%dir %{_pkgdocdir}
%doc %{_pkgdocdir}/README.txt
%doc %{_javadocdir}/%{name}
%license LICENSE.txt NOTICE.txt

%files manual
%{_pkgdocdir}

%files scripts
%attr(0755,root,root) %{_bindir}/*



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20364 |21mr|xmlbeans-maven-plugin-2.3.3-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          xmlbeans-maven-plugin
Version:       2.3.3
Release:       12
Summary:       Maven XML Beans Plugin
License:       ASL 2.0
Url:           http://mojo.codehaus.org/xmlbeans-maven-plugin/
# svn export https://svn.codehaus.org/mojo/tags/xmlbeans-maven-plugin-2.3.3
# tar cJf xmlbeans-maven-plugin-2.3.3.tar.xz xmlbeans-maven-plugin-2.3.3
Source0:       %{name}-%{version}.tar.xz
# xmlbeans-maven-plugin package don't include the license file
Source1:       http://www.apache.org/licenses/LICENSE-2.0.txt

BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven:maven-artifact)
BuildRequires: mvn(org.apache.maven:maven-core)
BuildRequires: mvn(org.apache.maven:maven-model)
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires: mvn(org.apache.xmlbeans:xmlbeans)
BuildRequires: mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires: mvn(org.codehaus.plexus:plexus-utils)
BuildRequires: mvn(stax:stax-api)
BuildRequires: mvn(xml-resolver:xml-resolver)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Maven XML Beans Plugin provides integration of the
Apache XML Beans for Maven. Runs the xmlbeans
parser/code generator against schemes in files and
dependent jars.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

cp -p %{SOURCE1} .
sed -i 's/\r//' LICENSE-2.0.txt

# these test fails
# [INFO] XMLBeans discrete xsd's in a jar test for MXMLBEANS-21  FAILURE [0.665s]
# Caused by: org.sonatype.aether.transfer.ArtifactNotFoundException: 
# Could not find artifact org.codehaus.mojo:xmlbeans-maven-plugin:pom:latest
# in local.central (file:///..../BUILD/xmlbeans-maven-plugin-2.3.3/.m2)
rm -r src/it/mxmlbeans-21/*

%pom_remove_dep org.apache.maven:maven-project
%pom_add_dep org.apache.maven:maven-core:any:compile

%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :jdepend-maven-plugin
rm -r pom.xml.orig

%mvn_file : %{name}

%build

%mvn_build -- -Dmojo.java.target=1.5

%install
%mvn_install

%files -f .mfiles
%license LICENSE-2.0.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE-2.0.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20365 |21mr|xml-commons-apis12-1.2.04-17
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	JAXP 1.2, DOM 2, SAX 2.0.1, SAX2-ext 1.0 apis
Name:		xml-commons-apis12
Epoch:		1
Version:	1.2.04
Release:	17
Group:		System/Libraries
Url:		http://xml.apache.org/commons/
License:	ASL 2.0 and W3C and Public Domain
# svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-external-1_2_04/
Source0:	xml-commons-external-1.2.04.tar.gz
BuildRequires:	ant
BuildRequires:	jpackage-utils >= 0:1.6
Requires:	jpackage-utils >= 0:1.6
Provides:	jaxp = 1.2
Provides:	dom = 2
Provides:	sax = 2.0.1
Provides:	xslt = 1.0
Obsoletes:	xml-commons-jaxp-1.2-apis < %{EVRD}
BuildArch:	noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
DOM 2 org.w3c.dom and SAX XML 2.0 org.xml.sax processor apis used 
by several pieces of Apache software. XSLT 1.0.
This version includes the JAXP 1.2 APIs -- Java API for XML 
Processing 1.2, i.e. javax.xml{.parsers,.transform}

%files
%defattr(0644,root,root,0755)
%{_javadir}/%{name}*.jar
%{_javadir}/jaxp12.jar
%{_javadir}/dom2.jar
%{_javadir}/xml-commons-jaxp-1.2-apis.jar
%doc xml-commons-external-1_2_04/java/external/LICENSE
%doc xml-commons-external-1_2_04/java/external/LICENSE.dom-documentation.txt
%doc xml-commons-external-1_2_04/java/external/LICENSE.dom-software.txt
%doc xml-commons-external-1_2_04/java/external/LICENSE.sax.txt
%doc xml-commons-external-1_2_04/java/external/README.dom.txt
%doc xml-commons-external-1_2_04/java/external/README-sax
%doc xml-commons-external-1_2_04/java/external/README.sax.txt
%doc xml-commons-external-1_2_04/java/external/NOTICE

#----------------------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java
Provides:	%{name}-apis-javadoc = %{EVRD}
Provides:	xml-commons-jaxp-1.2-apis-javadoc = %{EVRD}
Obsoletes:	xml-commons-jaxp-1.2-apis-javadoc < %{EVRD}

%description javadoc
Javadoc for %{name}.

%files javadoc
%defattr(0644,root,root,0755)
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

#----------------------------------------------------------------------------

%package manual
Summary:	Documentation for %{name}
Group:		Development/Java

%description manual
Documentation for %{name}.

%files manual
%defattr(0644,root,root,0755)
%{_docdir}/%{name}-%{version}

#----------------------------------------------------------------------------

%prep
%setup -q -c

%build
ant -f xml-commons-external-1_2_04/java/external/build.xml jar javadoc

%install
install -d -m 755 %{buildroot}%{_javadir}
install -m 644 xml-commons-external-1_2_04/java/external/build/xml-apis.jar \
    %{buildroot}%{_javadir}/%{name}-%{version}.jar

pushd %{buildroot}%{_javadir}
for jar in *-%{version}*; do
ln -sf ${jar} $(echo $jar | sed -e 's|-%{version}\.jar|.jar|');
done

ln -sf %{name}.jar xml-commons-jaxp-1.2-apis.jar
ln -sf %{name}.jar jaxp12.jar
ln -sf %{name}.jar dom2.jar
popd


# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr xml-commons-external-1_2_04/java/external/build/docs/javadoc/* \
    %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}
rm -rf xml-commons-external-1_2_04/java/external/build/docs/javadoc

# manuals
install -d -m 755 %{buildroot}%{_docdir}/%{name}-%{version}
cp -pr xml-commons-external-1_2_04/java/external/build/docs/* %{buildroot}%{_docdir}/%{name}-%{version}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20366 |21mr|xml-commons-apis-1.4.01-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          xml-commons-apis
Version:       1.4.01
Epoch:         2
Release:       28
Summary:       APIs for DOM, SAX, and JAXP
License:       ASL 2.0 and W3C and Public Domain
URL:           http://xml.apache.org/commons/
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

# From source control because the published tarball doesn't include some docs:
#   svn export http://svn.apache.org/repos/asf/xml/commons/tags/xml-commons-external-1_4_01/java/external/
#   tar czf xml-commons-external-1.4.01-src.tar.gz external
Source0:       xml-commons-external-%{version}-src.tar.gz
Source1:       %{name}-MANIFEST.MF
Source2:       %{name}-ext-MANIFEST.MF
Source3:       http://repo1.maven.org/maven2/xml-apis/xml-apis/2.0.2/xml-apis-2.0.2.pom
Source4:       http://repo1.maven.org/maven2/xml-apis/xml-apis-ext/1.3.04/xml-apis-ext-1.3.04.pom

BuildRequires: javapackages-local
BuildRequires: ant
BuildRequires: apache-parent

Provides:      xml-commons = %{version}-%{release}

# TODO: Ugh, this next line should be dropped since it actually provides JAXP 1.4 now...
Provides:      xml-commons-jaxp-1.3-apis = %{version}-%{release}

%description
xml-commons-apis is designed to organize and have common packaging for
the various externally-defined standard interfaces for XML. This
includes the DOM, SAX, and JAXP.

%package manual
Summary:       Manual for %{name}

%description manual
%{summary}.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
%{summary}.

%prep
%setup -q -n external
# Make sure upstream hasn't sneaked in any jars we don't know about
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

# Fix file encodings
iconv -f iso8859-1 -t utf-8 LICENSE.dom-documentation.txt > \
  LICENSE.dom-doc.temp && mv -f LICENSE.dom-doc.temp LICENSE.dom-documentation.txt
iconv -f iso8859-1 -t utf-8 LICENSE.dom-software.txt > \
  LICENSE.dom-sof.temp && mv -f LICENSE.dom-sof.temp LICENSE.dom-software.txt

# remove bogus section from poms
cp %{SOURCE3} %{SOURCE4} .
sed -i '/distributionManagement/,/\/distributionManagement/ {d}' *.pom

%mvn_file :xml-apis xml-commons-apis jaxp13 jaxp xml-commons-jaxp-1.3-apis
%mvn_file :xml-apis-ext xml-commons-apis-ext
%mvn_alias :xml-apis-ext xerces:dom3-xml-apis

%build
ant -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 jar javadoc

# inject OSGi manifests
jar ufm build/xml-apis.jar %{SOURCE1}
jar ufm build/xml-apis-ext.jar %{SOURCE2}

%mvn_artifact xml-apis-[0-9]*.pom build/xml-apis.jar
%mvn_artifact xml-apis-ext*.pom build/xml-apis-ext.jar

%install
%mvn_install -J build/docs/javadoc

# prevent apis javadoc from being included in doc
rm -rf build/docs/javadoc

%files -f .mfiles
%doc LICENSE NOTICE
%doc LICENSE.dom-documentation.txt README.dom.txt
%doc LICENSE.dom-software.txt LICENSE.sac.html
%doc LICENSE.sax.txt README-sax  README.sax.txt

%files manual
%doc build/docs/*

%files javadoc
%{_javadocdir}/*


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20367 |21mr|xml-commons-resolver-1.2-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xml-commons-resolver
Epoch:          2
Version:        1.2
Release:        28
Summary:        Resolver subproject of xml-commons
License:        ASL 2.0
URL:            http://xerces.apache.org/xml-commons/components/resolver/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/xerces/xml-commons/%{name}-%{version}.tar.gz
Source5:        %{name}-pom.xml
Source6:        %{name}-resolver.1
Source7:        %{name}-xparse.1
Source8:        %{name}-xread.1

Patch0:         %{name}-1.2-crosslink.patch
Patch1:         %{name}-1.2-osgi.patch

BuildRequires:  javapackages-local
BuildRequires:  ant
BuildRequires:  apache-parent
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description
Resolver subproject of xml-commons.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1

# remove all binary libs and prebuilt javadocs
find . -name "*.jar" -exec rm -f {} \;
rm -rf docs
sed -i 's/\r//' KEYS LICENSE.resolver.txt NOTICE-resolver.txt

%mvn_file : xml-commons-resolver xml-resolver

%build
%ant -f resolver.xml jar javadocs
%mvn_artifact %{SOURCE5} build/resolver.jar

%install
%mvn_install -J build/apidocs/resolver

# Scripts
mkdir -p $RPM_BUILD_ROOT%{_bindir}
%jpackage_script org.apache.xml.resolver.apps.resolver "" "" %{name} xml-resolver true
%jpackage_script org.apache.xml.resolver.apps.xread "" "" %{name} xml-xread true
%jpackage_script org.apache.xml.resolver.apps.xparse "" "" %{name} xml-xparse true

# Man pages
install -d -m 755 ${RPM_BUILD_ROOT}%{_mandir}/man1
install -p -m 644 %{SOURCE6} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-resolver.1
install -p -m 644 %{SOURCE7} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-xparse.1
install -p -m 644 %{SOURCE8} ${RPM_BUILD_ROOT}%{_mandir}/man1/xml-xread.1

%files -f .mfiles
%doc KEYS LICENSE.resolver.txt NOTICE-resolver.txt
%{_mandir}/man1/*
%{_bindir}/xml-*

%files javadoc -f .mfiles-javadoc
%doc LICENSE.resolver.txt NOTICE-resolver.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20368 |21mr|xmldb-api-0.1-0.1.20011111cvs.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define bname        xmldb
%define cvs_version    20011111cvs

Name:       xmldb-api
Version:    0.1
Release:    0.1.%{cvs_version}.3
Epoch:      1
Summary:    XML:DB API for Java
License:    BSD
Group:      Development/Java
# wget http://trumpetti.atm.tut.fi/gentoo/distfiles/xmldb-api-11112001.tar.gz
Source0:     xmldb-xapi-%{cvs_version}-src.tar.gz
# http://sources.gentoo.org/viewcvs.py/gentoo-x86/dev-java/xmldb/files/build-20011111.xml?rev=1.1.1.1&view=markup
Source1:    %{name}-build.xml
Source2:    %{name}-license.txt
Patch0:     %{name}-syntaxfix.patch
Url:        http://xmldb-org.sourceforge.net
BuildRequires:    ant >= 0:1.6
BuildRequires:    java-rpmbuild >= 0:1.6
BuildRequires:    junit
BuildRequires:    xalan-j2
BuildRequires:    xerces-j2
BuildRequires:    xml-commons-jaxp-1.3-apis
Requires(pre):    jpackage-utils >= 0:1.6
Requires(post):   jpackage-utils >= 0:1.6
Requires:         junit
Requires:         xalan-j2
BuildArch:      noarch

# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The API interfaces are what driver developers must implement when creating a
new driver and are the interfaces that applications are developed against. 
Along with the interfaces a concrete DriverManager implementation is also
provides.

%package sdk
Summary:    SDK for %{name}
Group:      Development/Java
Requires:   %{name} = %{epoch}:%{version}-%{release}

%description sdk
The reference implementation provides a very simple file system based
implementation of the XML:DB API. This provides what is basically a very
simple native XML database that uses directories to represent collections and
just stores the XML in files.

The driver development kit provides a set of base classes that can be 
extended to simplify and speed the development of XML:DB API drivers. These
classes are used to provide the basis for the reference implementation and
therefore a simple example of how a driver can be implemented. Using the SDK
classes significantly reduces the amount of code that must be written to
create a new driver.

Along with the SDK base classes the SDK also contains a set of jUnit test
cases that can be used to help validate the driver while it is being
developed. The test cases are still in development but there are enough tests
currently to be useful.

%package javadoc
Summary:        Javadoc for %{name}
Group:          Development/Java

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n xmldb 
find -name '*.class' -exec rm -f '{}' \;
find -name '*.jar' -exec rm -f '{}' \;

cp %{SOURCE1} build.xml

%patch0

%build
export CLASSPATH=$(build-classpath junit xalan-j2 xerces-j2)
usejikes=false 
%{ant} -Dant.build.javac.source=1.5 -Dant.build.javac.target=1.5 -Dsrc=. -Djarname=%{name} -Dsdk.jarname=%{name}-sdk jar javadoc

%install

# jars
install -d -m 755 %{buildroot}%{_javadir}
install -m 644 dist/%{name}.jar %{buildroot}%{_javadir}/%{name}-%{version}.jar
install -m 644 dist/%{name}-sdk.jar %{buildroot}%{_javadir}/%{name}-sdk-%{version}.jar
(cd %{buildroot}%{_javadir} && for jar in *-%{version}*; do ln -sf ${jar} ${jar/-%{version}/}; done)
# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -pr dist/doc/api %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

#license
install -d -m 755 %{buildroot}/%{_docdir}/%{name}-%{version}
cp %{SOURCE2} %{buildroot}/%{_docdir}/%{name}-%{version}

%files
%doc %{_docdir}/%{name}-%{version}
%{_javadir}/%{name}-%{version}.jar
%{_javadir}/%{name}.jar

%files sdk
%{_javadir}/%{name}-sdk-%{version}.jar
%{_javadir}/%{name}-sdk.jar

%files javadoc
%doc %{_javadocdir}/%{name}-%{version}
%doc %{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20369 |21mr|xmlenc-0.53-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          xmlenc
Version:       0.53
Release:       19
Summary:       Light-weight XML output library for Java
License:       BSD
#  http://xmlenc.sourceforge.net/
URL:           https://github.com/znerd/xmlenc/
Source0:       https://github.com/znerd/xmlenc/archive/%{name}-%{version}.tar.gz

BuildRequires: mvn(org.znerd:znerd-oss-parent:pom:)
# test deps
BuildRequires: mvn(junit:junit)

BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
# required by enforcer-plugin
BuildRequires: mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
This library is a fast stream-based XML output library for Java. 
Main design goals are performance, simplicity and pureness. 

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}

%prep
%setup -q -n %{name}-%{name}-%{version}

find . -name "*.class" -delete
find . -name ".*" -delete
find . -name "*.jar" -type f -delete

%mvn_file : %{name}
%mvn_alias : "%{name}:%{name}"

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.txt README.txt THANKS.txt
%license COPYRIGHT.txt

%files javadoc -f .mfiles-javadoc
%license COPYRIGHT.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20370 |21mr|xmlgraphics-commons-2.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xmlgraphics-commons
Version:        2.3
Release:        2
Epoch:          0
Summary:        XML Graphics Commons

License:        ASL 2.0
URL:            http://xmlgraphics.apache.org/
Source0:        http://archive.apache.org/dist/xmlgraphics/commons/source/xmlgraphics-commons-%{version}-src.tar.gz

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(commons-io:commons-io)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.mockito:mockito-core)
BuildRequires:  mvn(xml-resolver:xml-resolver)

%description
Apache XML Graphics Commons is a library that consists of
several reusable components used by Apache Batik and
Apache FOP. Many of these components can easily be used
separately outside the domains of SVG and XSL-FO. You will
find components such as a PDF library, an RTF library,
Graphics2D implementations that let you generate PDF &
PostScript files, and much more.

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q %{name}-%{version}

find -name "*.jar" -delete

# Disable plugins not needed for RPM build
%pom_remove_plugin :maven-checkstyle-plugin
%pom_remove_plugin :findbugs-maven-plugin

# Make into OSGi bundle
%pom_xpath_inject pom:project '<packaging>bundle</packaging>'
%pom_add_plugin org.apache.felix:maven-bundle-plugin . \
" <extensions>true</extensions>
  <configuration>
    <instructions>
      <Bundle-SymbolicName>org.apache.xmlgraphics</Bundle-SymbolicName>
    </instructions>
  </configuration>"

%build
%mvn_file : %{name}
%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE
%doc README

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20371 |21mr|xml-maven-plugin-1.0.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xml-maven-plugin
Summary:        Maven XML Plugin
Version:        1.0.2
Release:        4
License:        ASL 2.0
Group:          Development/Java
URL:            https://www.mojohaus.org/xml-maven-plugin/
Source0:        https://repo1.maven.org/maven2/org/codehaus/mojo/%{name}/%{version}/%{name}-%{version}-source-release.zip

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache.maven:maven-core)
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
BuildRequires:  mvn(org.apache.maven.plugins:maven-invoker-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
BuildRequires:  mvn(org.codehaus.mojo:mojo-parent:pom:)
BuildRequires:  mvn(org.codehaus.plexus:plexus-io)
BuildRequires:  mvn(org.codehaus.plexus:plexus-resources)
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
BuildRequires:  mvn(xml-resolver:xml-resolver)

%description
A plugin for various XML related tasks like validation and transformation.


%package javadoc
Summary:       Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.


%prep
%setup -q

for d in LICENSE NOTICE ; do
  iconv -f iso8859-1 -t utf-8 $d.txt > $d.txt.conv && mv -f $d.txt.conv $d.txt
  sed -i 's/\r//' $d.txt
done

# Add the version
sed -i 's|stylesheet |stylesheet version="1.0" |'  src/it/it8/src/main/xsl/it8.xsl


%build
%mvn_build -f


%install
%mvn_install


%files -f .mfiles
%license LICENSE.txt NOTICE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20372 |21mr|xmlrpc-3.1.3-23
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xmlrpc
Version:        3.1.3
Release:        23
Epoch:          1
Summary:        Java XML-RPC implementation
License:        ASL 2.0
URL:            http://ws.apache.org/xmlrpc/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://www.apache.org/dist/ws/xmlrpc/sources/apache-xmlrpc-%{version}-src.tar.bz2
Patch0:         %{name}-client-addosgimanifest.patch
Patch1:         %{name}-common-addosgimanifest.patch
Patch2:         %{name}-javax-methods.patch
Patch3:         %{name}-server-addosgimanifest.patch
Patch4:         %{name}-disallow-deserialization-of-ex-serializable-tags.patch
Patch5:         %{name}-disallow-loading-external-dtd.patch

BuildRequires:  maven-local
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(commons-httpclient:commons-httpclient)
BuildRequires:  mvn(commons-logging:commons-logging)
BuildRequires:  mvn(javax.servlet:servlet-api)
BuildRequires:  mvn(org.apache.ws.commons.util:ws-commons-util)


%description
Apache XML-RPC is a Java implementation of XML-RPC, a popular protocol
that uses XML over HTTP to implement remote procedure calls.
Apache XML-RPC was previously known as Helma XML-RPC. If you have code
using the Helma library, all you should have to do is change the import
statements in your code from helma.xmlrpc.* to org.apache.xmlrpc.*.

%package javadoc
Summary:    Javadoc for %{name}

%description javadoc
Javadoc for %{name}.

%package common
Summary:    Common classes for XML-RPC client and server implementations
# Provide xmlrpc is not here because it would be useless due to different jar names
Obsoletes:  %{name} < 3.1.3
Obsoletes:  %{name}3-common < 3.1.3-13
Provides:   %{name}3-common = 3.1.3-13

%description common
%{summary}.

%package client
Summary:    XML-RPC client implementation
Obsoletes:  %{name}3-client < 3.1.3-13
Provides:   %{name}3-client = 3.1.3-13

%description client
%{summary}.

%package server
Summary:    XML-RPC server implementation
Obsoletes:  %{name}3-server < 3.1.3-13
Provides:   %{name}3-server = 3.1.3-13

%description server
%{summary}.

%prep
%setup -q -n apache-%{name}-%{version}-src
%patch2 -p1
pushd client
%patch0 -b .sav
popd
pushd common
%patch1 -b .sav
popd
pushd server
%patch3 -b .sav
popd
%patch4 -p1
%patch5 -p1

sed -i 's/\r//' LICENSE.txt

%pom_disable_module dist
%pom_remove_dep jaxme:jaxmeapi common
# This dep is no longer supplied by ws-commons-util
%pom_add_dep junit:junit:3.8.1:test

%mvn_file :{*} @1
%mvn_package :*-common %{name}

%build
# FIXME: ignore test failure because server part needs network
%mvn_build -s -- -Dmaven.test.failure.ignore=true

%install
%mvn_install

%files common -f .mfiles-%{name}
%license LICENSE.txt NOTICE.txt

%files client -f .mfiles-%{name}-client

%files server -f .mfiles-%{name}-server

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt NOTICE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20373 |21mr|xmlrpc-c-1.51.06-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major_c 3
%define major_cpp 8
%define major_ssl 1
%define libxmlrpc_c %mklibname xmlrpc %{major_c}
%define libxmlrpc_cpp %mklibname xmlrpc++ %{major_cpp}
%define libxmlrpc_ccpp %mklibname xmlrpc_cpp %{major_cpp}
%define libxmlrpc_ssl_c %mklibname ssl %{major_ssl}
%define libxmlrpc_abyss_c %mklibname xmlrpc_abyss %{major_c}
%define libxmlrpc_abyss_cpp %mklibname xmlrpc_abyss %{major_cpp}
%define libxmlrpc_client_c %mklibname xmlrpc_client %{major_c}
%define libxmlrpc_client_cpp %mklibname xmlrpc_client++ %{major_cpp}
%define libxmlrpc_packetsocket_c %mklibname xmlrpc_packetsocket %{major_cpp}
%define libxmlrpc_server_c %mklibname xmlrpc_server %{major_c}
%define libxmlrpc_server_cpp %mklibname xmlrpc_server++ %{major_cpp}
%define libxmlrpc_server_abyss_c %mklibname xmlrpc_server_abyss %{major_c}
%define libxmlrpc_server_abyss_cpp %mklibname xmlrpc_server_abyss++ %{major_cpp}
%define libxmlrpc_server_cgi_c %mklibname xmlrpc_server_cgi %{major_c}
%define libxmlrpc_server_cgi_cpp %mklibname xmlrpc_server_cgi++ %{major_cpp}
%define libxmlrpc_server_pstream_cpp %mklibname xmlrpc_server_pstream++ %{major_cpp}

%define util_major 4
%define libxmlrpc_util_c %mklibname xmlrpc_util %{util_major}
%define libxmlrpc_util_cpp %mklibname xmlrpc_util++ %{major_cpp}

%define libxmlrpc_xmltok %mklibname xmlrpc_xmltok %{major_c}
%define libxmlrpc_xmlparse %mklibname xmlrpc_xmlparse %{major_c}

%define devname %mklibname %{name} -d

Summary:	Programming library for writing an XML-RPC server or client in C or C++
Name:		xmlrpc-c
Version:	1.51.06
Release:	2
License:	BSD
Group:		System/Libraries
Url:		http://xmlrpc-c.sourceforge.net/
Source0:	https://netix.dl.sourceforge.net/project/xmlrpc-c/Xmlrpc-c%20Super%20Stable/%{version}/%{name}-%{version}.tgz
Source100:	dfs.cc
Source101:	dso-fixup

# Upstreamable patches
Patch101:       0001-xmlrpc_server_abyss-use-va_args-properly.patch
Patch102:       0002-Use-proper-datatypes-for-long-long.patch
Patch103:       0003-allow-30x-redirections.patch
# Backported patches
# https://sourceforge.net/p/xmlrpc-c/code/2981/

# Meson buildsystem, see https://blogs.gnome.org/ignatenko/2016/12/17/meson-%E2%99%A5-xmlrpc-c/
Patch1001:      0001-add-meson-buildsystem-definitions.patch
Patch1002:      0002-chmod-x-xml-rpc-api2txt.patch

BuildRequires:	meson
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(openssl)

%description
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files
%doc doc/COPYING doc/CREDITS doc/DEVELOPING doc/HISTORY doc/SECURITY doc/TESTING doc/TODO
%{_bindir}/xml*
%{_mandir}/man1/xml*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5
Obsoletes:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_c}
%{_libdir}/libxmlrpc.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_cpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_cpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_cpp}
%{_libdir}/libxmlrpc++.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_ccpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_ccpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_ccpp}
%{_libdir}/libxmlrpc_cpp.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_abyss_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_abyss_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_abyss_c}
%{_libdir}/libxmlrpc_abyss.so.%{major_c}*

%package -n %{libxmlrpc_abyss_cpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries

%description -n %{libxmlrpc_abyss_cpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_abyss_cpp}
%{_libdir}/libxmlrpc_abyss++.so.%{major_cpp}*

%package -n %{libxmlrpc_ssl_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_ssl_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_ssl_c}
%{_libdir}/libxmlrpc_openssl.so.%{major_ssl}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_client_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_client_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_client_c}
%{_libdir}/libxmlrpc_client.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_client_cpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_client_cpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_client_cpp}
%{_libdir}/libxmlrpc_client++.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_packetsocket_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_packetsocket_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_packetsocket_c}
%{_libdir}/libxmlrpc_packetsocket.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_server_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_server_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_server_c}
%{_libdir}/libxmlrpc_server.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_server_cpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_server_cpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_server_cpp}
%{_libdir}/libxmlrpc_server++.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_server_abyss_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_server_abyss_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_server_abyss_c}
%{_libdir}/libxmlrpc_server_abyss.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_server_abyss_cpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_server_abyss_cpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_server_abyss_cpp}
%{_libdir}/libxmlrpc_server_abyss++.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_server_cgi_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_server_cgi_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_server_cgi_c}
%{_libdir}/libxmlrpc_server_cgi.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_server_cgi_cpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_server_cgi_cpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_server_cgi_cpp}
%{_libdir}/libxmlrpc_server_cgi++.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_server_pstream_cpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_server_pstream_cpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_server_pstream_cpp}
%{_libdir}/libxmlrpc_server_pstream++.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_util_cpp}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_util_cpp}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_util_cpp}
%{_libdir}/libxmlrpc_util++.so.%{major_cpp}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_util_c}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_util_c}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_util_c}
%{_libdir}/libxmlrpc_util.so.%{util_major}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_xmltok}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_xmltok}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_xmltok}
%{_libdir}/libxmlrpc_xmltok.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n %{libxmlrpc_xmlparse}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Conflicts:	%{_lib}xmlrpc-c3 < 1.32.5

%description -n %{libxmlrpc_xmlparse}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

%files -n %{libxmlrpc_xmlparse}
%{_libdir}/libxmlrpc_xmlparse.so.%{major_c}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Programming library for writing an XML-RPC server or client in C or C++
Group:		System/Libraries
Requires:	%{libxmlrpc_c} = %{EVRD}
Requires:	%{libxmlrpc_cpp} = %{EVRD}
Requires:	%{libxmlrpc_ccpp} = %{EVRD}
Requires:	%{libxmlrpc_abyss_c} = %{EVRD}
Requires:	%{libxmlrpc_abyss_cpp} = %{EVRD}
Requires:	%{libxmlrpc_client_c} = %{EVRD}
Requires:	%{libxmlrpc_client_cpp} = %{EVRD}
Requires:	%{libxmlrpc_packetsocket_c} = %{EVRD}
Requires:	%{libxmlrpc_server_c} = %{EVRD}
Requires:	%{libxmlrpc_server_cpp} = %{EVRD}
Requires:	%{libxmlrpc_server_abyss_c} = %{EVRD}
Requires:	%{libxmlrpc_server_abyss_cpp} = %{EVRD}
Requires:	%{libxmlrpc_server_cgi_c} = %{EVRD}
Requires:	%{libxmlrpc_server_cgi_cpp} = %{EVRD}
Requires:	%{libxmlrpc_server_pstream_cpp} = %{EVRD}
Requires:	%{libxmlrpc_util_c} = %{EVRD}
Requires:	%{libxmlrpc_util_cpp} = %{EVRD}
Requires:	%{libxmlrpc_ssl_c} = %{EVRD}
Requires:	%{libxmlrpc_xmltok} = %{EVRD}
Requires:	%{libxmlrpc_xmlparse} = %{EVRD}
Requires:	pkgconfig(libxml-2.0)
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
XML-RPC is a quick-and-easy way to make procedure calls over the Internet.
It converts the procedure call into XML document, sends it to a remote
server using HTTP, and gets back the response as XML.

This library provides a modular implementation of XML-RPC for C and C++.

This package contains the developement files.

%files -n %{devname}
%{_bindir}/xmlrpc-c-config
%{_includedir}/*.h
%{_includedir}/%{name}
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/*.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%__cxx %{optflags} %{SOURCE100} -o depsort

%meson
%meson_build


%install
%meson_install

bash %{SOURCE101} "%{buildroot}" "%{_libdir}" 'libxmlrpc' %{buildroot}%{_libdir}/libxmlrpc*.so.[0-9]

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20374 |21mr|xmlrpc-epi-0.54.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname xmlrpc-epi %{major}
%define devname %mklibname xmlrpc-epi -d

Summary:	An implementation of the XML-RPC protocol in C
Name:		xmlrpc-epi
Version:	0.54.2
Release:	10
License:	BSD
Group:		System/Libraries
URL:		http://xmlrpc-epi.sourceforge.net
Source0:	http://sunet.dl.sourceforge.net/sourceforge/xmlrpc-epi/xmlrpc-epi-%{version}.tar.bz2
Patch0:		xmlrpc-epi-0.51-format_not_a_string_literal_and_no_format_arguments.diff
Patch1:		xmlrpc-epi-0.54-no_samples.diff
Patch2:		xmlrpc-epi-0.54.2-CVE-2016-6296.patch
Patch3:		xmlrpc-epi-0.54.2-php5.6.40.patch
BuildRequires:	pkgconfig(expat)

%description
xmlrpc-epi is an implementation of the xmlrpc protocol in C. It provides an 
easy to use API for developers to serialize RPC requests to and from XML.
It does *not* include a transport layer, such as HTTP. The API is primarily
based upon proprietary code written for internal usage at Epinions.com, and
was later modified to incorporate concepts from the xmlrpc protocol.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing XMLPC support in C
Group:		System/Libraries

%description -n %{libname}
xmlrpc-epi is an implementation of the xmlrpc protocol in C. It provides an 
easy to use API for developers to serialize RPC requests to and from XML.
It does *not* include a transport layer, such as HTTP. The API is primarily
based upon proprietary code written for internal usage at Epinions.com, and
was later modified to incorporate concepts from the xmlrpc protocol.

%files -n %{libname}
%doc AUTHORS COPYING ChangeLog README
%{_libdir}/libxmlrpc-epi.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries, includes, etc. to develop XML and HTML applications
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	libxmlrpc-devel = %{EVRD}
Provides:	xmlrpc-epi-devel = %{EVRD}

%description -n %{devname}
xmlrpc-epi is an implementation of the xmlrpc protocol in C. It provides an
easy to use API for developers to serialize RPC requests to and from XML.
It does *not* include a transport layer, such as HTTP. The API is primarily
based upon proprietary code written for internal usage at Epinions.com, and
was later modified to incorporate concepts from the xmlrpc protocol.

%files -n %{devname}
%doc INSTALL
%dir %{_includedir}/xmlrpc-epi
%{_includedir}/xmlrpc-epi/*
%{_libdir}/libxmlrpc-epi.so

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .format_not_a_string_literal_and_no_format_arguments
%patch1 -p0 -b .no_samples
%patch2 -p1
%patch3 -p1

# Make it lib64 aware
find . -name "Makefile.*" | xargs perl -pi -e "s,-L\@prefix\@/lib,,g"

perl -pi -e "s,-L/usr/local/lib\b,," configure*
perl -pi -e "s|withval/lib|withval/%{_lib}|g" configure*

%build
autoreconf -fi
%configure \
	--disable-static

#don't use parallel compilation, it is broken 
# (tpg) this is better ;)
%(echo %make|perl -pe 's/-j\d+/-j1/g')

%install

%makeinstall_std

# fix file conflicts
install -d %{buildroot}%{_includedir}/xmlrpc-epi
mv %{buildroot}%{_includedir}/*.h %{buildroot}%{_includedir}/xmlrpc-epi/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20375 |21mr|XmlSchema-2.2.3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           XmlSchema
Version:        2.2.3
Release:        4
Summary:        Lightweight schema object model
License:        ASL 2.0
URL:            http://ws.apache.org/xmlschema/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://archive.apache.org/dist/ws/xmlschema/%{version}/xmlschema-%{version}-source-release.zip

BuildRequires:  maven-local
BuildRequires:  mvn(com.google.guava:guava-testlib)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-assembly-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
BuildRequires:  mvn(xerces:xercesImpl)
BuildRequires:  mvn(xmlunit:xmlunit)

%description
Commons XMLSchema is a lightweight schema object model that can be 
used to manipulate or generate a schema.

%package javadoc
Summary:      API documentation for %{name}

%description javadoc
This package contains API documentation for %{name}.

%prep
%setup -q -n xmlschema-%{version}

# Fix line endings
sed -i -e 's/\r//g' RELEASE-NOTE.txt

# Missing deps on org.ops4j for this module
%pom_disable_module xmlschema-bundle-test

# This module contains only testdata and according to upstream, should not be deployed
%pom_disable_module w3c-testcases

# Compatibility alias
%mvn_alias :xmlschema-core org.apache.ws.commons.schema:XmlSchema

%build
%mvn_build -- -P!sourcecheck

%install
%mvn_install

%files -f .mfiles
%license LICENSE NOTICE
%doc README.txt RELEASE-NOTE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20376 |21mr|xmlsec1-1.2.37-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname xmlsec1_ %{major}
%define devname %mklibname xmlsec1 -d
%define libname_gcrypt %mklibname xmlsec1-gcrypt %{major}
%define libname_gnutls %mklibname xmlsec1-gnutls %{major}
%define libname_nss %mklibname xmlsec1-nss %{major}
%define libname_openssl %mklibname xmlsec1-openssl %{major}

Summary:	Library providing support for "XML Signature" and "XML Encryption"
Name:		xmlsec1
Version:	1.2.37
Release:	2
License:	MIT
Group:		System/Libraries
Url:		http://www.aleksey.com/xmlsec
Source0:	http://www.aleksey.com/xmlsec/download/%{name}-%{version}.tar.gz
Patch1:		xmlsec1-1.2.16-linkage.patch
BuildRequires:	libtool-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(nss)
BuildRequires:	pkgconfig(openssl)

%description
XML Security Library is a C library based on LibXML2  and OpenSSL.
The library was created with a goal to support major XML security
standards "XML Digital Signature" and "XML Encryption".

%files
%doc %{_mandir}/man1/xmlsec1.1*
%{_bindir}/xmlsec1

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Library providing support for "XML Signature" and "XML Encryption"
Group:		System/Libraries
Obsoletes:	%{_lib}xmlsec1-1 < 1.2.16

%description -n %{libname}
XML Security Library is a C library based on LibXML2  and OpenSSL.
The library was created with a goal to support major XML security
standards "XML Digital Signature" and "XML Encryption".

%files -n %{libname}
%{_libdir}/libxmlsec1.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_gcrypt}
Summary:	Gcrypt crypto plugin for XML Security Library
Group:		System/Libraries

%description -n %{libname_gcrypt}
gcrypt plugin for XML Security Library provides gcrypt based crypto services
for the xmlsec library.

%files -n %{libname_gcrypt}
%{_libdir}/libxmlsec1-gcrypt.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_gnutls}
Summary:	Gnutls crypto plugin for XML Security Library
Group:		System/Libraries

%description -n %{libname_gnutls}
gnutls plugin for XML Security Library provides gnutls based crypto services
for the xmlsec library.

%files -n %{libname_gnutls}
%{_libdir}/libxmlsec1-gnutls.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_nss}
Summary:	NSS crypto plugin for XML Security Library
Group:		System/Libraries

%description -n %{libname_nss}
NSS plugin for XML Security Library provides NSS based crypto services
for the xmlsec library.

%files -n %{libname_nss}
%{_libdir}/libxmlsec1-nss.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{libname_openssl}
Summary:	OpenSSL crypto plugin for XML Security Library
Group:		System/Libraries

%description -n %{libname_openssl}
OpenSSL plugin for XML Security Library provides OpenSSL based crypto services
for the xmlsec library.

%files -n %{libname_openssl}
%{_libdir}/libxmlsec1-openssl.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Libraries to develop applications with XML security
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{libname_gcrypt} = %{EVRD}
Requires:	%{libname_gnutls} = %{EVRD}
Requires:	%{libname_nss} = %{EVRD}
Requires:	%{libname_openssl} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}xmlsec1-gnutls-devel < 1.2.16
Obsoletes:	%{_lib}xmlsec1-nss-devel < 1.2.16
Obsoletes:	%{_lib}xmlsec1-openssl-devel < 1.2.16

%description -n %{devname}
Libraries you can use to develop applications with XML security standarts.

%files -n %{devname}
%doc AUTHORS HACKING ChangeLog NEWS Copyright
%doc %{_mandir}/man1/xmlsec1-config.1*
%{_bindir}/xmlsec1-config
%{_includedir}/xmlsec1
%{_datadir}/aclocal/xmlsec1.m4
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/xmlsec1Conf.sh
%{_docdir}/xmlsec1/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure \
	--disable-static
%make_build

%install
%make_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20377 |21mr|xml-security-2.0.6-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oname xmlsec
%global _version %(echo %{version} | tr . _ )

Name:           xml-security
Version:        2.0.6
Release:        8
Epoch:          0
Summary:        Implementation of W3C security standards for XML
License:        ASL 2.0
Group:          Development/Java
URL:            http://santuario.apache.org/
Source0:        http://www.apache.org/dist/santuario/java-library/%{_version}/%{oname}-%{version}-source-release.zip
# Unavailable class in jetty8/9 org.eclipse.jetty.io.Buffer
Patch0:         xml-security-2.0.2-remove-Buffer.patch

BuildRequires:  maven-local
BuildRequires:  mvn(commons-codec:commons-codec)
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(log4j:log4j:1.2.17)
BuildRequires:  mvn(org.apache:apache:pom:)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.bouncycastle:bcprov-jdk15on)
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires:  mvn(org.eclipse.jetty:jetty-server)
BuildRequires:  mvn(org.eclipse.jetty:jetty-servlet)
BuildRequires:  mvn(org.jvnet.jaxb2.maven2:maven-jaxb22-plugin)
BuildRequires:  mvn(org.slf4j:slf4j-api)
BuildRequires:  mvn(org.slf4j:slf4j-log4j12)
BuildRequires:  mvn(xalan:xalan)
BuildRequires:  mvn(xerces:xercesImpl)
BuildRequires:  mvn(xml-apis:xml-apis)
BuildRequires:  mvn(xmlunit:xmlunit)

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The XML Security project is aimed at providing implementation
of security standards for XML. Currently the focus is on the
W3C standards :
- XML-Signature Syntax and Processing; and
- XML Encryption Syntax and Processing.

%package javadoc
Summary:        Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%package demo
Summary:        Samples for %{name}

%description demo
Samples for %{name}.

%prep
%setup -q -n %{oname}-%{version}
%pom_xpath_set "pom:properties/pom:jetty.version" 9.0.5.v20130815
%patch0 -p0

%pom_remove_plugin :maven-pmd-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :animal-sniffer-maven-plugin
# Use org.codehaus.mojo:extra-enforcer-rules:jar:1.0-beta-3
%pom_remove_plugin :maven-enforcer-plugin
%pom_xpath_remove "pom:plugin[pom:artifactId = 'maven-javadoc-plugin']/pom:executions"

%pom_xpath_set "pom:plugin[pom:groupId = 'org.jvnet.jaxb2.maven2' ]/pom:artifactId" maven-jaxb22-plugin

%pom_xpath_remove "pom:profiles/pom:profile[pom:id = 'eclipse.moxy']"

# javax.xml.crypto.MarshalException: ECKeyValue not supported
rm -r src/test/java/javax/xml/crypto/test/dsig/InteropXMLDSig11Test.java
# UnrecoverableKey
rm -r src/test/java/javax/xml/crypto/test/dsig/PKSignatureAlgorithmTest.java \
 src/test/java/org/apache/xml/security/test/dom/algorithms/DigestAlgorithmTest.java \
 src/test/java/org/apache/xml/security/test/dom/algorithms/PKSignatureAlgorithmTest.java \
 src/test/java/org/apache/xml/security/test/dom/signature/ECDSASignatureTest.java

# Fails for various reason
rm -r src/test/java/org/apache/xml/security/test/stax/signature/IAIKTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationReferenceURIResolverTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/SignatureDigestVerificationTest.java \
 src/test/java/org/apache/xml/security/test/dom/algorithms/SymmetricEncryptionAlgorithmTest.java \
 src/test/java/org/apache/xml/security/test/dom/encryption/XMLEncryption11Test.java \
 src/test/java/org/apache/xml/security/test/stax/encryption/XMLEncryption11Test.java \
 src/test/java/org/apache/xml/security/test/stax/XMLSecurityStreamWriterTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/PKSignatureCreationTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/SignatureDigestCreationTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/PKSignatureVerificationTest.java \
 src/test/java/org/apache/xml/security/test/stax/transformer/TransformEnvelopedSignatureTest.java \
 src/test/java/org/apache/xml/security/test/stax/transformer/TransformIdentityTest.java \
 src/test/java/org/apache/xml/security/test/stax/XMLSecurityEventWriterTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/SignatureCreationTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/SignatureEncryptionTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/PhaosTest.java \
 src/test/java/org/apache/xml/security/test/dom/interop/BaltimoreTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/BaltimoreTest.java \
 src/test/java/org/apache/xml/security/test/stax/encryption/SymmetricEncryptionVerificationTest.java \
 src/test/java/org/apache/xml/security/test/stax/encryption/SymmetricEncryptionCreationTest.java \
 src/test/java/javax/xml/crypto/test/dsig/SignatureDigestMethodTest.java \
 src/test/java/org/apache/xml/security/test/stax/signature/SignatureVerificationTest.java \
 src/test/java/org/apache/xml/security/test/stax/XMLSecEventTest.java

# NoSuchAlgorithmException: unsupported algorithm
rm -r src/test/java/javax/xml/crypto/test/dsig/HMACSignatureAlgorithmTest.java
# KeyException: ECKeyValue not supported
rm -r src/test/java/javax/xml/crypto/test/dsig/CreateInteropXMLDSig11Test.java

%mvn_file :%{oname} %{name} %{oname}

%build

# On ARM builder test suite fails @ random
# java.lang.NoClassDefFoundError: Could not initialize class org.apache.xml.security.stax.ext.XMLSec
%mvn_build -f

%install
%mvn_install

chmod 644 samples/org/apache/xml/security/samples/encryption/*.java
install -d -m 755 $RPM_BUILD_ROOT%{_datadir}/%{name}
cp -pr samples/* $RPM_BUILD_ROOT%{_datadir}/%{name}

%files -f .mfiles
%license LICENSE NOTICE

%files javadoc -f .mfiles-javadoc
%license LICENSE NOTICE

%files demo
%{_datadir}/%{name}
%license LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20378 |21mr|xml-security-c-2.0.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 20
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	C++ Implementation of W3C security standards for XML
Name:		xml-security-c
Version:	2.0.2
Release:	2
License:	ASL 2.0
Group:		System/Libraries
Url:		http://santuario.apache.org/c/
Source0:	https://www.apache.org/dist/santuario/c-library/%{name}-%{version}.tar.gz
# From Fedora
Patch1:		xml-security-c-ac_fixes.patch
# In contrib
#BuildRequires:	xalan-c-devel
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(xerces-c)

%description
The xml-security-c library is a C++ implementation of the XML Digital Signature
specification. The library makes use of the Apache XML project's Xerces-C XML
Parser and Xalan-C XSLT processor. The latter is used for processing XPath and
XSLT transforms.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	C++ Implementation of W3C security standards for XML
Group:		System/Libraries
Provides:	%{name} = %{EVRD}

%description -n %{libname}
The xml-security-c library is a C++ implementation of the XML Digital Signature
specification. The library makes use of the Apache XML project's Xerces-C XML
Parser and Xalan-C XSLT processor. The latter is used for processing XPath and
XSLT transforms.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for xml-security-c
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package provides development files for xml-security-c, a C++ library for
XML Digital Signatures.

%files -n %{devname}
%doc CHANGELOG.txt NOTICE.txt
%license LICENSE.txt
%{_includedir}/xsec
%{_libdir}/lib%{name}.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches
find . -type f -execdir sed -r -i 's/XALAN_USING_XALAN\(([^\(\)]+)\);*/using xalanc::\1;/g' '{}' '+'

%build
autoreconf -fi
%configure \
	--disable-debug \
	--disable-static \
	--without-nss \
	--with-openssl \
	--without-xalan
%make

%install
%makeinstall_std

# Remove unneed developer files
rm -rf %{buildroot}%{_bindir}

# Add need file
cp xsec/utils/XSECDOMUtils.hpp %{buildroot}%{_includedir}/xsec/utils/

%check
%make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20379 |21mr|xmlstarlet-1.6.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xmlstarlet
Version:	1.6.1
Release:	3
Summary:	Command Line XML Toolkit
License:	MIT
Group:		File tools
Source:		http://xmlstar.sourceforge.net/downloads/%{name}-%{version}.tar.gz
URL:		http://xmlstar.sourceforge.net
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	xmlto
BuildRequires:	automake
BuildRequires:	autoconf
BuildRequires:	docbook-style-xsl

%description
XMLStarlet is a set of command line utilities which can be used
to transform, query, validate, and edit XML documents and files
using simple set of shell commands in similar way it is done for
plain text files using UNIX grep, sed, awk, diff, patch, join, etc
commands.

%prep
%setup -q

%build
autoreconf -fiv
%configure \
	--disable-static-libs \
	--with-libxml-include-prefix=%{_includedir}/libxml2
%make
pushd doc
xmlto man xmlstarlet-man.xml --skip-validation
xmlto html-nochunks xmlstarlet-ug.xml --skip-validation
./gen-doc > xmlstarlet.txt
popd

%install
%makeinstall_std
mv %{buildroot}%{_bindir}/xml %{buildroot}%{_bindir}/xmlstarlet

%clean

%files
%doc AUTHORS ChangeLog NEWS README Copyright TODO doc/xmlstarlet.txt doc/xmlstarlet-ug.html html.css
%{_bindir}/xml*
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20380 |21mr|xmlstreambuffer-1.5.4-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          xmlstreambuffer
Version:       1.5.4
Release:       10
Summary:       XML Stream Buffer
License:       CDDL or GPLv2 with exceptions
Url:           http://java.net/projects/xmlstreambuffer/
# svn export https://svn.java.net/svn/xmlstreambuffer~svn/tags/streambuffer-1.5.4/ xmlstreambuffer-1.5.4
# find xmlstreambuffer-1.5.4/ -name '*.class' -delete
# find xmlstreambuffer-1.5.4/ -name '*.jar' -delete
# find xmlstreambuffer-1.5.4/ -name '*.zip' -delete
# tar cJf xmlstreambuffer-1.5.4.tar.xz xmlstreambuffer-1.5.4
Source0:       %{name}-%{version}.tar.xz
# wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt
# xmlstreambuffer package don't include the license file
Source1:       glassfish-LICENSE.txt

BuildRequires: jvnet-parent
BuildRequires: maven-local
BuildRequires: maven-enforcer-plugin
BuildRequires: maven-plugin-bundle
BuildRequires: maven-surefire-provider-junit
BuildRequires: stax-ex >= 1.7.1
# test deps
BuildRequires: junit
BuildRequires: woodstox-core

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
A stream buffer is a stream-based representation of an XML
info-set in Java. Stream buffers are designed to: provide
very efficient stream-based memory representations of XML
info-sets; and be created and processed using any Java-based
XML API.
Conceptually a stream buffer is similar to the representation
used in the Xerces deferred DOM implementation, with the crucial
difference that a stream buffer does not store hierarchical
information like parent and sibling information. The deferred
DOM implementation reduces memory usage when large XML documents
are parsed but only a subset of the document needs to be processed.
(Note that using deferred DOM will be more expensive than
non-deferred DOM in terms of memory and processing if all
the document is traversed.)
Stream buffers may be used as an efficient alternative to DOM where:
* most or all of an XML info-set will eventually get traversed; and/or
* targeted access to certain parts of an XML info-set are required
 and need to be efficiently processed using stream-based APIs like
 SAX or StAX.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q

%pom_remove_plugin :maven-deploy-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :findbugs-maven-plugin
%pom_remove_plugin :glassfish-copyright-maven-plugin
%pom_remove_plugin :cobertura-maven-plugin
%pom_remove_plugin :buildnumber-maven-plugin
%pom_remove_plugin :maven-enforcer-plugin

%pom_xpath_set "pom:dependency[pom:groupId = 'org.codehaus.woodstox']/pom:artifactId" woodstox-core-asl

cp -p %{SOURCE1} LICENSE.txt
sed -i 's/\r//' LICENSE.txt

rm -r test/com/sun/xml/stream/buffer/stax/InscopeNamespaceTest.java

%mvn_file :streambuffer %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20381 |21mr|xmlto-0.0.28-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define backend passivetex

Summary:	A tool for converting XML files to various formats
Name:		xmlto
Version:	0.0.28
Release:	6
License:	GPLv2+
Group:		Publishing
Url:		https://fedorahosted.org/xmlto/
Source0:	https://fedorahosted.org/releases/x/m/xmlto/%{name}-%{version}.tar.bz2
BuildRequires:	docbook-dtd-xml
BuildRequires:	docbook-style-xsl
BuildRequires:	util-linux
BuildRequires:	xsltproc
Requires:	util-linux
Requires:	xmlto-notex
# For full functionality, we need passivetex.
Requires:	xmltex

%description
This is a package for converting XML files to various formats using XSL
stylesheets.

%files

#----------------------------------------------------------------------------

%package -n xmlto-notex
Summary:	xmlto without the TeX dependency
Group:		Publishing
# We rely entirely on the DocBook XSL stylesheets!
Requires:	docbook-style-xsl >= 1.56.0
Requires:	docbook-dtd-xml
Requires:	xsltproc
Requires:	docbook-dtd42-xml
Requires:	docbook-dtd44-xml
Requires:	docbook-dtd412-xml
Conflicts:	xmlto < 0.0.28-5

%description -n xmlto-notex
xmlto without the TeX dependencies. Normally, the xmlto package is preferable.

%files -n xmlto-notex
%{_bindir}/*
%{_mandir}/*/*
%{_datadir}/xmlto

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--with-backend=%{backend}
%make_build

%install
%make_install

[ -d %{buildroot}%{_datadir}/xmlto/xsl ] || \
  mkdir %{buildroot}%{_datadir}/xmlto/xsl

%check
make check

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20382 |21mr|xmltoman-0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xmltoman
Version:        0.4
Release:        4
Summary:        Scripts for converting XML to roff or HTML

Group:          Publishing
License:        GPLv2+
URL:            http://sourceforge.net/projects/xmltoman/
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
Patch0:         xmltoman-0.3-timestamps.patch

BuildRequires:  perl(XML::Parser)
BuildArch:      noarch

%description
This package provides xmltoman and xmlmantohtml scripts, to compile
the xml representation of manual page to either roff source, or HTML
(while providing the CSS stylesheet for eye-candy look). XSL stylesheet
for doing rougly the same job is provided.


%prep
%setup -q
%patch0 -p1 -b .timestamps


%build
make


%install
make install PREFIX=%{_prefix} DESTDIR=$RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%{_bindir}/xmltoman
%{_bindir}/xmlmantohtml
%{_datadir}/xmltoman
%doc COPYING README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20383 |21mr|xmltool-3.3-24
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xmltool
Version:        3.3
Release:        24
Summary:        Tool to manage XML documents through a Fluent Interface

License:        ASL 2.0
URL:            http://code.google.com/p/xmltool
### upstream only provides binaries or source without build scripts
# tar creation instructions
# svn export http://xmltool.googlecode.com/svn/tags/xmltool-3.3 xmltool
# tar cfJ xmltool-3.3.tar.xz xmltool
Source0:        %{name}-%{version}.tar.xz
Patch0:         fix-deprecated-assembly-goal.patch
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  java-devel
BuildRequires:  jpackage-utils
BuildRequires:  maven-assembly-plugin
BuildRequires:  maven-local
BuildRequires:  maven-remote-resources-plugin
BuildRequires:  maven-source-plugin
BuildRequires:  maven-surefire-provider-testng
BuildRequires:  apache-resource-bundles

%description
XMLTool is a very simple Java library to be able to do all sorts of common 
operations with an XML document. Java developers often end up writing the same 
code for processing XML, transforming, etc. This easy to use class puts it all 
together, using the Fluent Interface pattern to facilitate XML manipulations. 

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}

%patch0 -p0

# Fix end-of-line encoding
sed -i 's/\r//' LICENSE.txt

%mvn_file : %{name}

# Remove dep on maven-wagon and maven-license plugins
%pom_xpath_remove "pom:build/pom:extensions"
%pom_remove_plugin com.google.code.maven-license-plugin:maven-license-plugin


%build
# Disable tests because they require an internet connection to run!
%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%doc LICENSE.txt

%files javadoc -f .mfiles-javadoc
%doc LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20384 |21mr|xmlunit-2.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2007, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

Name:           xmlunit
Summary:        Provides classes to do asserts on xml
Epoch:          0
Version:        2.6.3
Release:        1
# xmlunit2 is licensed under ASL 2.0, xmlunit-legacy is still BSD-licensed
License:        ASL 2.0 and BSD

URL:            https://www.xmlunit.org/
Source0:        https://github.com/xmlunit/xmlunit/releases/download/v%{version}/%{name}-%{version}-src.tar.gz

Patch0:         0001-Disable-tests-requiring-network-access.patch

Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-shade-plugin)
BuildRequires:  mvn(org.assertj:assertj-core)
BuildRequires:  mvn(org.hamcrest:hamcrest-core)
BuildRequires:  mvn(org.hamcrest:hamcrest-library)
BuildRequires:  mvn(org.mockito:mockito-core)

%description
XMLUnit provides you with the tools to verify the XML you emit is the one you
want to create. It provides helpers to validate against an XML Schema, assert
the values of XPath queries or compare XML documents against expected outcomes.


%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
Javadoc for %{name}


%package        assertj
Summary:        Assertj for %{name}

%description    assertj
This package provides %{summary}.


%package        core
Summary:        Core package for %{name}

%description    core
This package provides %{summary}.


%package        legacy
Summary:        Legacy package for %{name}

%description    legacy
This package provides %{summary}.


%package        matchers
Summary:        Matchers for %{name}

%description    matchers
This package provides %{summary}.


%package        placeholders
Summary:        Placeholders for %{name}

%description    placeholders
This package provides %{summary}.


%prep
%setup -q -n %{name}-%{version}-src

%patch0 -p1

%pom_remove_plugin org.codehaus.mojo:buildnumber-maven-plugin
%pom_remove_plugin :maven-assembly-plugin

%mvn_alias "org.xmlunit:xmlunit-legacy" "xmlunit:xmlunit"


%build
%mvn_build -s


%install
%mvn_install


%files -f .mfiles-xmlunit-parent
%doc README.md CONTRIBUTING.md RELEASE_NOTES.md
%license LICENSE

%files javadoc -f .mfiles-javadoc
%files assertj -f .mfiles-xmlunit-assertj
%files core -f .mfiles-xmlunit-core
%files legacy -f .mfiles-xmlunit-legacy
%files matchers -f .mfiles-xmlunit-matchers
%files placeholders -f .mfiles-xmlunit-placeholders



@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20385 |21mr|xmodmap-1.0.11-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility for modifying keymaps and pointer button mappings in X
Name:		xmodmap
Version:	1.0.11
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)

%description
The xmodmap program is used to edit and display the keyboard modifier map and
keymap table that are used by client applications to convert event keycodes
into keysyms.

It has been obsoloted by XKB.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure	\
	--x-includes=%{_includedir}	\
	--x-libraries=%{_libdir}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20386 |21mr|xmore-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xmore
Version:	1.0.3
Release:	1
Summary:	Plain text display program for the X Window System
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: libxt-devel >= 1.0.0
BuildRequires: libxaw-devel >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
Xmore is a plain text display program for the X Window System.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir} \
		--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/xmore
%{_datadir}/X11/app-defaults/XMore
%{_mandir}/man1/xmore.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20387 |21mr|xmpcore-5.1.2-12
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          xmpcore
Version:       5.1.2
Release:       12
Summary:       Java XMP Library
License:       BSD
Group:         Development/Java
URL:           http://www.adobe.com/devnet/xmp.html
Source0:       http://repo1.maven.org/maven2/com/adobe/xmp/%{name}/%{version}/%{name}-%{version}-sources.jar
# from http://repo1.maven.org/maven2/com/adobe/xmp/xmpcore/5.1.2/xmpcore-5.1.2.pom
# customized:
# fix compiler,javadoc-plugin configuration
# fix manifest entries
Source1:       %{name}-%{version}.pom
# from http://download.macromedia.com/pub/developer/xmp/sdk/XMP-Toolkit-SDK-5.1.2.zip
Source2:       %{name}-BSD-License.txt
BuildRequires: buildnumber-maven-plugin
BuildRequires: maven-local
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
The XMP Library for Java is based on the
C++ XMPCore library and the API is similar.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -c

mkdir java
mv com java/
rm -r META-INF

cp -p %{SOURCE1} pom.xml
cp -p %{SOURCE2} BSD-License.txt
sed -i 's/\r//' BSD-License.txt

%mvn_file : %{name}

%build

%mvn_build

%install
%mvn_install

%files -f .mfiles
%license BSD-License.txt

%files javadoc -f .mfiles-javadoc
%license BSD-License.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20388 |21mr|xmvn-3.0.0-26
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# XMvn uses OSGi environment provided by Tycho, it shouldn't require
# any additional bundles.
%global __requires_exclude %{?__requires_exclude:%__requires_exclude|}^osgi\\($

# Integration tests are disabled by default, but you can run them by
# adding "--with its" to rpmbuild or mock invocation.
%bcond_with its

%bcond_without gradle

Name:           xmvn
Version:        3.0.0
Release:        26
Summary:        Local Extensions for Apache Maven
License:        ASL 2.0
URL:            https://fedora-java.github.io/xmvn/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/fedora-java/xmvn/releases/download/%{version}/xmvn-%{version}.tar.xz

Patch0:         0001-Fix-installer-plugin-loading.patch
Patch1:         0001-Port-to-Gradle-4.2.patch
Patch2:         0001-Port-to-Gradle-4.3.1.patch
Patch3:         0001-Support-setting-Xdoclint-none-in-m-javadoc-p-3.0.0.patch
Patch4:         0001-Fix-configuration-of-aliased-plugins.patch
Patch5:         0001-Don-t-use-JAXB-for-converting-bytes-to-hex-string.patch
Patch6:         0001-Use-apache-commons-compress-for-manifest-injection-a.patch
Patch7:         0001-port-to-gradle-4.4.1.patch
Patch8:         0001-test-Fix-XML-namespace-in-installer-test-resources.patch
Patch9:         0001-Port-to-Xmlunit-2.6.2.patch

BuildRequires:  maven >= 3.5.0
BuildRequires:  maven-local
BuildRequires:  apache-commons-compress
BuildRequires:  beust-jcommander
BuildRequires:  cglib
BuildRequires:  maven-dependency-plugin
BuildRequires:  maven-plugin-build-helper
BuildRequires:  maven-assembly-plugin
BuildRequires:  maven-install-plugin
BuildRequires:  maven-plugin-plugin
BuildRequires:  objectweb-asm
BuildRequires:  modello
BuildRequires:  xmlunit-assertj
BuildRequires:  apache-ivy
BuildRequires:  junit
BuildRequires:  easymock
BuildRequires:  maven-invoker
BuildRequires:  plexus-containers-container-default
BuildRequires:  plexus-containers-component-annotations
BuildRequires:  plexus-containers-component-metadata
%if %{with gradle}
BuildRequires:  gradle >= 4.4.1
%endif

Requires:       %{name}-minimal = %{version}-%{release}
Requires:       maven >= 3.4.0

%description
This package provides extensions for Apache Maven that can be used to
manage system artifact repository and use it to resolve Maven
artifacts in offline mode, as well as Maven plugins to help with
creating RPM packages containing Maven artifacts.

%package        minimal
Summary:        Dependency-reduced version of XMvn
Requires:       maven-lib >= 3.4.0
Requires:       %{name}-api = %{version}-%{release}
Requires:       %{name}-connector-aether = %{version}-%{release}
Requires:       %{name}-core = %{version}-%{release}
Requires:       apache-commons-cli
Requires:       apache-commons-lang3
Requires:       atinject
Requires:       google-guice
Requires:       guava20
Requires:       maven-lib
Requires:       maven-resolver-api
Requires:       maven-resolver-impl
Requires:       maven-resolver-spi
Requires:       maven-resolver-util
Requires:       maven-wagon-provider-api
Requires:       plexus-cipher
Requires:       plexus-classworlds
Requires:       plexus-containers-component-annotations
Requires:       plexus-interpolation
Requires:       plexus-sec-dispatcher
Requires:       plexus-utils
Requires:       sisu-inject
Requires:       sisu-plexus
Requires:       slf4j

%description    minimal
This package provides minimal version of XMvn, incapable of using
remote repositories.

%package        parent-pom
Summary:        XMvn Parent POM

%description    parent-pom
This package provides XMvn parent POM.

%package        api
Summary:        XMvn API

%description    api
This package provides XMvn API module which contains public interface
for functionality implemented by XMvn Core.

%package        core
Summary:        XMvn Core

%description    core
This package provides XMvn Core module, which implements the essential
functionality of XMvn such as resolution of artifacts from system
repository.

%package        connector-aether
Summary:        XMvn Connector for Maven Resolver

%description    connector-aether
This package provides XMvn Connector for Maven Resolver, which
provides integration of Maven Resolver with XMvn.  It provides an
adapter which allows XMvn resolver to be used as Maven workspace
reader.

%if %{with gradle}
%package        connector-gradle
Summary:        XMvn Connector for Gradle

%description    connector-gradle
This package provides XMvn Connector for Gradle, which provides
integration of Gradle with XMvn.  It provides an adapter which allows
XMvn resolver to be used as Gradle resolver.
%endif

%package        connector-ivy
Summary:        XMvn Connector for Apache Ivy

%description    connector-ivy
This package provides XMvn Connector for Apache Ivy, which provides
integration of Apache Ivy with XMvn.  It provides an adapter which
allows XMvn resolver to be used as Ivy resolver.

%package        mojo
Summary:        XMvn MOJO

%description    mojo
This package provides XMvn MOJO, which is a Maven plugin that consists
of several MOJOs.  Some goals of these MOJOs are intended to be
attached to default Maven lifecycle when building packages, others can
be called directly from Maven command line.

%package        tools-pom
Summary:        XMvn Tools POM

%description    tools-pom
This package provides XMvn Tools parent POM.

%package        resolve
Summary:        XMvn Resolver
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    resolve
This package provides XMvn Resolver, which is a very simple
commald-line tool to resolve Maven artifacts from system repositories.
Basically it's just an interface to artifact resolution mechanism
implemented by XMvn Core.  The primary intended use case of XMvn
Resolver is debugging local artifact repositories.

%package        bisect
Summary:        XMvn Bisect
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    bisect
This package provides XMvn Bisect, which is a debugging tool that can
diagnose build failures by using bisection method.

%package        subst
Summary:        XMvn Subst
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    subst
This package provides XMvn Subst, which is a tool that can substitute
Maven artifact files with symbolic links to corresponding files in
artifact repository.

%package        install
Summary:        XMvn Install
Requires:       apache-commons-compress
# Explicit javapackages-tools requires since scripts use
# /usr/share/java-utils/java-functions
Requires:       javapackages-tools

%description    install
This package provides XMvn Install, which is a command-line interface
to XMvn installer.  The installer reads reactor metadata and performs
artifact installation according to specified configuration.

%package        javadoc
Summary:        API documentation for %{name}

%description    javadoc
This package provides %{summary}.

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch8 -p1
%patch9 -p1

# Bisect IT has no chances of working in local, offline mode, without
# network access - it needs to access remote repositories.
find -name BisectIntegrationTest.java -delete

# Resolver IT won't work either - it tries to execute JAR file, which
# relies on Class-Path in manifest, which is forbidden in Fedora...
find -name ResolverIntegrationTest.java -delete

%pom_remove_plugin -r :maven-site-plugin

%mvn_package ":xmvn{,-it}" __noinstall

%if %{without gradle}
%pom_disable_module xmvn-connector-gradle
%endif

# Upstream code quality checks, not relevant when building RPMs
%pom_remove_plugin -r :apache-rat-plugin
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :jacoco-maven-plugin
# FIXME pom macros don't seem to support submodules in profile
%pom_remove_plugin :jacoco-maven-plugin xmvn-it

# remove dependency plugin maven-binaries execution
# we provide apache-maven by symlink
%pom_xpath_remove "pom:executions/pom:execution[pom:id[text()='maven-binaries']]"

# Don't put Class-Path attributes in manifests
%pom_remove_plugin :maven-jar-plugin xmvn-tools

# get mavenVersion that is expected
maven_home=$(realpath $(dirname $(realpath $(which mvn)))/..)
mver=$(sed -n '/<mavenVersion>/{s/.*>\(.*\)<.*/\1/;p}' \
           xmvn-parent/pom.xml)
mkdir -p target/dependency/
cp -aL ${maven_home} target/dependency/apache-maven-$mver

%build
%if %{with its}
%mvn_build -s -j -- -Prun-its
%else
%mvn_build -s -j
%endif

tar --delay-directory-restore -xvf target/*tar.bz2
chmod -R +rwX %{name}-%{version}*
# These are installed as doc
rm -f %{name}-%{version}*/{AUTHORS-XMVN,README-XMVN.md,LICENSE,NOTICE,NOTICE-XMVN}
# Not needed - we use JPackage launcher scripts
rm -Rf %{name}-%{version}*/lib/{installer,resolver,subst,bisect}/
# Irrelevant Maven launcher scripts
rm -f %{name}-%{version}*/bin/*


%install
%mvn_install

maven_home=$(realpath $(dirname $(realpath $(which mvn)))/..)

install -d -m 755 %{buildroot}%{_datadir}/%{name}
cp -r %{name}-%{version}*/* %{buildroot}%{_datadir}/%{name}/

for cmd in mvn mvnDebug; do
    cat <<EOF >%{buildroot}%{_datadir}/%{name}/bin/$cmd
#!/bin/sh -e
export _FEDORA_MAVEN_HOME="%{_datadir}/%{name}"
exec ${maven_home}/bin/$cmd "\${@}"
EOF
    chmod 755 %{buildroot}%{_datadir}/%{name}/bin/$cmd
done

# helper scripts
%jpackage_script org.fedoraproject.xmvn.tools.bisect.BisectCli "" "-Dxmvn.home=%{_datadir}/%{name}" xmvn/xmvn-bisect:beust-jcommander:maven-invoker:plexus/utils xmvn-bisect
%jpackage_script org.fedoraproject.xmvn.tools.install.cli.InstallerCli "" "" xmvn/xmvn-install:xmvn/xmvn-api:xmvn/xmvn-core:beust-jcommander:slf4j/api:slf4j/simple:objectweb-asm/asm:commons-compress xmvn-install
%jpackage_script org.fedoraproject.xmvn.tools.resolve.ResolverCli "" "" xmvn/xmvn-resolve:xmvn/xmvn-api:xmvn/xmvn-core:beust-jcommander xmvn-resolve
%jpackage_script org.fedoraproject.xmvn.tools.subst.SubstCli "" "" xmvn/xmvn-subst:xmvn/xmvn-api:xmvn/xmvn-core:beust-jcommander xmvn-subst

# copy over maven lib directory
cp -r ${maven_home}/lib/* %{buildroot}%{_datadir}/%{name}/lib/

# possibly recreate symlinks that can be automated with xmvn-subst
%{name}-subst -s -R %{buildroot} %{buildroot}%{_datadir}/%{name}/

# /usr/bin/xmvn
ln -s %{_datadir}/%{name}/bin/mvn %{buildroot}%{_bindir}/%{name}

# mvn-local symlink
ln -s %{name} %{buildroot}%{_bindir}/mvn-local

# make sure our conf is identical to maven so yum won't freak out
install -d -m 755 %{buildroot}%{_datadir}/%{name}/conf/
cp -P ${maven_home}/conf/settings.xml %{buildroot}%{_datadir}/%{name}/conf/
cp -P ${maven_home}/bin/m2.conf %{buildroot}%{_datadir}/%{name}/bin/

%files
%{_bindir}/mvn-local

%files minimal
%{_bindir}/%{name}
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/bin
%dir %{_datadir}/%{name}/lib
%{_datadir}/%{name}/lib/*.jar
%{_datadir}/%{name}/lib/ext
%{_datadir}/%{name}/lib/jansi-native
%{_datadir}/%{name}/bin/m2.conf
%{_datadir}/%{name}/bin/mvn
%{_datadir}/%{name}/bin/mvnDebug
%{_datadir}/%{name}/boot
%{_datadir}/%{name}/conf

%files parent-pom -f .mfiles-xmvn-parent
%doc LICENSE NOTICE

%files core -f .mfiles-xmvn-core

%files api -f .mfiles-xmvn-api
%doc LICENSE NOTICE
%doc AUTHORS README.md

%files connector-aether -f .mfiles-xmvn-connector-aether

%if %{with gradle}
%files connector-gradle -f .mfiles-xmvn-connector-gradle
%endif

%files connector-ivy -f .mfiles-xmvn-connector-ivy

%files mojo -f .mfiles-xmvn-mojo

%files tools-pom -f .mfiles-xmvn-tools

%files resolve -f .mfiles-xmvn-resolve
%{_bindir}/%{name}-resolve

%files bisect -f .mfiles-xmvn-bisect
%{_bindir}/%{name}-bisect

%files subst -f .mfiles-xmvn-subst
%{_bindir}/%{name}-subst

%files install -f .mfiles-xmvn-install
%{_bindir}/%{name}-install

%files javadoc
%doc LICENSE NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20389 |21mr|xnio-3.4.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global namedreltag .Final
%global namedversion %{version}%{?namedreltag}

Name:             xnio
Version:          3.4.0
Release:          5
Summary:          JBoss XNIO
# LGPLv2+ ./api/src/main/java/org/xnio/ObjectProperties.java
License:          ASL 2.0 and LGPLv2+
URL:              http://www.jboss.org/xnio
Source0:          https://github.com/xnio/xnio/archive/%{namedversion}/%{name}-%{namedversion}.tar.gz
Group:            Development/Java
BuildArch:        noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

BuildRequires:    maven-local
BuildRequires:    mvn(java_cup:java_cup)
BuildRequires:    mvn(jdepend:jdepend)
BuildRequires:    mvn(junit:junit)
BuildRequires:    mvn(org.jboss:jboss-parent:pom:)
BuildRequires:    mvn(org.jboss.apiviz:apiviz)
BuildRequires:    mvn(org.jboss.byteman:byteman)
BuildRequires:    mvn(org.jboss.byteman:byteman-bmunit)
BuildRequires:    mvn(org.jboss.byteman:byteman-install)
BuildRequires:    mvn(org.jboss.logging:jboss-logging)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-annotations)
BuildRequires:    mvn(org.jboss.logging:jboss-logging-processor)
BuildRequires:    mvn(org.jboss.logmanager:jboss-logmanager)
BuildRequires:    mvn(org.jboss.maven.plugins:maven-injection-plugin)
BuildRequires:    mvn(org.jmock:jmock)
BuildRequires:    mvn(org.jmock:jmock-junit4)
BuildRequires:    mvn(org.wildfly.common:wildfly-common)

%description
A simplified low-level I/O layer which can be used anywhere you are
using NIO today. It frees you from the hassle of dealing with Selectors and
the lack of NIO support for multicast sockets and non-socket I/O, while still
maintaining all the capabilities present in NIO.

%package javadoc
Summary:          Javadoc for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -n %{name}-%{namedversion}

%pom_remove_plugin "org.jboss.bridger:bridger" api
%pom_remove_plugin -r :maven-source-plugin

#  @ random fails in koji (arm) builder
rm nio-impl/src/test/java/org/xnio/nio/test/MultiThreadedNioSslTcpConnectionTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/NioSslTcpChannelTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/NioSslTcpConnectionTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/NioStartTLSTcpChannelTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/NioStartTLSTcpConnectionTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/MultiThreadedNioSslTcpChannelTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/MultiThreadedNioStartTLSTcpConnectionTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/MultiThreadedNioStartTLSTcpChannelTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/NioTcpConnectionTestCase.java \
 nio-impl/src/test/java/org/xnio/nio/test/MultiThreadedNioTcpConnectionTestCase.java
 
%build

%mvn_build -f

%install
%mvn_install

%files -f .mfiles
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20390 |21mr|xom-1.2.10-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright (c) 2000-2005, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

# To build with dom4j issue rpmbuild --with dom4j xom.spec

%define with_dom4j %{?_with_dom4j:1}%{!?_with_dom4j:0}
%define without_dom4j %{!?_with_dom4j:1}%{?_with_dom4j:0}

Summary:        XML Object Model
Name:           xom
Version:        1.2.10
Release:        13
Epoch:          0
License:        LGPLv2
URL:            http://www.xom.nu
Source0:        http://www.cafeconleche.org/XOM/%{name}-%{version}-src.tar.gz

# Don't download jaxen, set javac target/source to 1.5
Patch0:         %{name}-build.patch

BuildRequires:  ant >= 0:1.6
BuildRequires:  javapackages-local
BuildRequires:  javapackages-tools
BuildRequires:  jarjar
BuildRequires:  jaxen
BuildRequires:  junit
BuildRequires:  xalan-j2
BuildRequires:  xerces-j2
%if %{with_dom4j}
BuildRequires:  dom4j
%endif
BuildRequires:  xml-commons-apis
BuildRequires:  tagsoup
# Use JAXP implementation in JDK
BuildRequires:  java-devel
BuildRequires:  xml-commons-resolver
BuildRequires:  servlet

Requires:  jaxen
Requires:  xalan-j2
Requires:  xerces-j2
Requires:  xml-commons-apis

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}


%description
XOM is a new XML object model. It is an open source (LGPL),
tree-based API for processing XML with Java that strives
for correctness, simplicity, and performance, in that order.
XOM is designed to be easy to learn and easy to use. It
works very straight-forwardly, and has a very shallow
learning curve. Assuming you're already familiar with XML,
you should be able to get up and running with XOM very quickly.

%package javadoc
Summary:        API documentation for %{name}

%description javadoc
This package provides %{summary}.

%package demo
Summary:        Samples for %{name}
Requires:       %{name} = %{version}-%{release}

%description demo
This package provides %{summary}.

%prep
%setup -q -n XOM

find \( -name '*.jar' -or -name '*.class' \) -delete

%patch0 -p1

# fix non ASCII chars
for s in src/nu/xom/tests/BuilderTest.java\
 src/nu/xom/tests/SerializerTest.java;do
  native2ascii -encoding UTF8 ${s} ${s}
done

# Fix encoding
sed -i 's/\r//g' LICENSE.txt
sed -i "s,59 Temple Place,51 Franklin Street,;s,Suite 330,Fifth Floor,;s,02111-1307,02110-1301,"  $(find -name "*.java") \
 LICENSE.txt lgpl.txt

%build
mkdir -p lib
pushd lib
ln -sf $(build-classpath junit) junit.jar
ln -sf $(build-classpath xerces-j2) dtd-xercesImpl.jar
ln -sf $(build-classpath xalan-j2) xalan.jar
ln -sf $(build-classpath xml-commons-apis) xmlParserAPIs.jar
ln -sf $(build-classpath jaxen) jaxen.jar

# jarjar has more than one jars
while IFS=':' read -ra JARJAR_JARS; do 
    for j in "${JARJAR_JARS[@]}";do 
        ln -sf $j $(basename $j .jar)-1.0.jar
    done
done <<<$(build-classpath jarjar)
popd
mkdir -p lib2
pushd lib2
ln -sf $(build-classpath tagsoup) tagsoup-1.2.jar
ln -sf $(build-classpath xml-commons-resolver) resolver.jar

%if %{with_dom4j}
ln -sf $(build-classpath dom4j) dom4j.jar
%endif

ln -sf $(build-classpath servlet) servlet.jar
popd

ant -v compile15 jar samples betterdoc maven2

pushd build/apidocs
for f in `find -name \*.css -o -name \*.html`; do
  sed -i 's/\r//g' $f
done
popd

mv build/maven2/project.xml build/maven2/pom.xml
%pom_add_dep jaxen:jaxen build/maven2/pom.xml
%mvn_artifact build/maven2/pom.xml build/%{name}-%{version}.jar
%mvn_alias xom:xom com.io7m.xom:xom

%install
%mvn_install
# For compatibility
# jars
ln -s xom/%{name}.jar %{buildroot}%{_javadir}/%{name}.jar
#install -d -m 755 %{buildroot}%{_javadir}
#install -m 644 build/%{name}-%{version}.jar \
#  %{buildroot}%{_javadir}/%{name}.jar

# javadoc
install -d -m 755 %{buildroot}%{_javadocdir}/%{name}
cp -pr build/apidocs/* %{buildroot}%{_javadocdir}/%{name}

# demo
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -m 644 build/xom-samples.jar %{buildroot}%{_datadir}/%{name}

# POM
install -d -m 755 %{buildroot}%{_mavenpomdir}
ln -s xom/xom.pom %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
#install -m 644 build/maven2/pom.xml %{buildroot}%{_mavenpomdir}/JPP-%{name}.pom
#%add_maven_1depmap JPP-%{name}.pom %{name}.jar

%files -f .mfiles
%doc README.txt
%doc LICENSE.txt
%doc Todo.txt
%doc lgpl.txt
%{_javadir}/%{name}.jar
%{_mavenpomdir}/JPP-%{name}.pom

%files javadoc
%{_javadocdir}/%{name}
%doc LICENSE.txt
%doc lgpl.txt

%files demo
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/xom-samples.jar


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20391 |21mr|xorg-x11-7.7-28
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libxorg %mklibname xorg-x11

Summary:	X11 metapackage
Name:		xorg-x11
Version:	7.7
Release:	28
License:	MIT
Group:		Development/X11

Requires:	x11-data-bitmaps
Requires:	x11-server-xorg
Requires:	x11-tools
Requires:	x11-docs
Requires:	fonts-ttf-dejavu
Requires:	fonts-ttf-liberation
Requires:	x11-font-type1
Requires:	x11-font-misc
Requires:	libx11
Requires:	x11-data-cursor-themes

%description
X11 metapackage.

%files

#------------------------------------------------------------------------------

%package -n %{libxorg}
Summary:	X11 libraries
Group:		Development/X11

Requires:	libdmx
Requires:	libdrm
Requires:	libfontenc
Requires:	libfs
Requires:	libice
Requires:	libsm
Requires:	libx11
Requires:	libxau
Requires:	libxaw7
Requires:	libxcomposite
Requires:	libxcursor
Requires:	libxdamage
Requires:	libxdmcp
Requires:	libxext
Requires:	libxfixes
Requires:	libxfont
Requires:	libxft
Requires:	libxi
Requires:	%{_lib}xinerama1
Requires:	libxkbfile
Requires:	libxmu
Requires:	libxpm
Requires:	libxrandr
Requires:	libxrender
Requires:	libxres
Requires:	libxscrnsaver
Requires:	%{_lib}xt6
Requires:	%{_lib}xtst6
Requires:	%{_lib}xv1
Requires:	libxvmc
Requires:	%{_lib}xxf86dga1
Requires:	%{_lib}xxf86misc1
Requires:	%{_lib}xxf86vm1

%description -n %{libxorg}
X11 libraries.

%files -n %{libxorg}

#------------------------------------------------------------------------------

%package -n %{libxorg}-devel
Summary:	Development tools and files for X11
Group:		Development/X11
Provides:	XFree86-devel = %{EVRD}
Provides:	X11-devel = %{EVRD}

Requires:	pkgconfig(xcb)
Requires:	pkgconfig(dmx)
Requires:	pkgconfig(libdrm)
Requires:	pkgconfig(fontenc)
Requires:	pkgconfig(libfs)
Requires:	pkgconfig(ice)
Requires:	pkgconfig(gl)
Requires:	pkgconfig(glu)
Requires:	pkgconfig(glut)
Requires:	pkgconfig(sm)
Requires:	pkgconfig(x11)
Requires:	pkgconfig(xau)
Requires:	pkgconfig(xaw7)
Requires:	pkgconfig(xcomposite)
Requires:	pkgconfig(xcursor)
Requires:	pkgconfig(xdamage)
Requires:	pkgconfig(xdmcp)
Requires:	pkgconfig(xext)
Requires:	pkgconfig(xfixes)
Requires:	pkgconfig(xfont)
Requires:	pkgconfig(xft)
Requires:	pkgconfig(xi)
Requires:	pkgconfig(xinerama)
Requires:	pkgconfig(xkbfile)
Requires:	pkgconfig(xmu)
Requires:	pkgconfig(xpm)
Requires:	pkgconfig(xrandr)
Requires:	pkgconfig(xrender)
Requires:	pkgconfig(xres)
Requires:	pkgconfig(xscrnsaver)
Requires:	pkgconfig(xt)
Requires:	pkgconfig(xtst)
Requires:	pkgconfig(xv)
Requires:	pkgconfig(xvmc)
Requires:	pkgconfig(xxf86dga)
Requires:	pkgconfig(xxf86misc)
Requires:	pkgconfig(xxf86vm)
Requires:	x11-proto-devel
Requires:	x11-server-devel
Requires:	x11-xtrans-devel

Obsoletes:	%{libxorg}-static-devel < %{EVRD}

%description -n %{libxorg}-devel
Development tools and files for X11.

%files -n %{libxorg}-devel

#------------------------------------------------------------------------------

%package 75dpi-fonts
Summary:	A set of 75 dpi resolution fonts for the X Window System
Group:		System/Fonts/X11 bitmap
Provides:	XFree86-75dpi-fonts = %{EVRD}
Provides:	X11-75dpi-fonts = %{EVRD}
Requires:	x11-font-adobe-75dpi
Requires:	x11-font-alias
Requires:	x11-font-bh-75dpi
Requires:	x11-font-bh-lucidatypewriter-75dpi
Requires:	x11-font-bitstream-75dpi

%description 75dpi-fonts
X11-75dpi-fonts contains the 75 dpi fonts used
on most X Window Systems. If you're going to use the
X Window System, you should install this package, unless
you have a monitor which can support 100 dpi resolution.
In that case, you may prefer the 100dpi fonts available in
the X11-100dpi-fonts package.

%files 75dpi-fonts

#------------------------------------------------------------------------------

%package 100dpi-fonts
Summary:	X Window System 100dpi fonts
Group:		System/Fonts/X11 bitmap
Provides:	XFree86-ISO8859-2-100dpi-fonts = %{EVRD}
Provides:	XFree86-ISO8859-9-100dpi-fonts = %{EVRD}
Provides:	XFree86-100dpi-fonts = %{EVRD}
Provides:	X11-100dpi-fonts = %{EVRD}

Requires:	x11-font-adobe-100dpi
Requires:	x11-font-alias
Requires:	x11-font-bh-100dpi
Requires:	x11-font-bh-lucidatypewriter-100dpi
Requires:	x11-font-bitstream-100dpi

%description 100dpi-fonts
If you're going to use the X Window System and you have a
high resolution monitor capable of 100 dpi, you should install
X11-100dpi-fonts. This package contains a set of
100 dpi fonts used on most Linux systems.

%files 100dpi-fonts

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20392 |21mr|xorgxrdp-0.10.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#global xorg_server_version %(pkg-config --silence-errors --modversion xorg-server || echo 0)

Summary:        Implementation of xrdp backend as Xorg modules
Name:           xorgxrdp
Version:        0.10.2
Release:        1
Group:          Networking/Remote access
License:        MIT
URL:            https://github.com/neutrinolabs/xorgxrdp
Source0:        https://github.com/neutrinolabs/xorgxrdp/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch0:         xorgxrdp-drm-headers.patch
BuildRequires:  nasm
BuildRequires:  xrdp-devel
BuildRequires:  pkgconfig(xfont2)
BuildRequires:  pkgconfig(xorg-server)
BuildRequires:  pkgconfig(libdrm)

# Stick to Xorg ABI against which these modules were built
Requires:       x11-server-common%{_isa} %(xserver-sdk-abi-requires videodrv)

%description
xorgxrdp is a set of X11 modules that make Xorg act as a backend for
xrdp. Xorg with xorgxrdp is the most advanced xrdp backend with support
for screen resizing and multiple monitors.
Often used with xrdp as a terminal server.

%files
%license COPYING
%doc README.md
%dir %{_sysconfdir}/X11/xrdp
%config(noreplace) %{_sysconfdir}/X11/xrdp/xorg.conf
%{_libdir}/xorg/modules/drivers/xrdpdev_drv.so
%{_libdir}/xorg/modules/input/xrdpkeyb_drv.so
%{_libdir}/xorg/modules/input/xrdpmouse_drv.so
%{_libdir}/xorg/modules/libxorgxrdp.so
#------------------------------------------------------------------------ 

%prep
%autosetup -p1

%build
%configure
%make_build

%install
%make_install

rm %{buildroot}%{_libdir}/xorg/modules/*.la
rm %{buildroot}%{_libdir}/xorg/modules/*/*.la

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20393 |21mr|xorriso-1.5.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	ISO 9660 Rock Ridge Filesystem Manipulator
Name:		xorriso
Version:	1.5.4
Release:	1
License:	GPLv3+
Group:		Archiving/Cd burning
Url:		http://www.gnu.org/software/xorriso/xorriso_eng.html
Source0:	http://www.gnu.org/software/xorriso/%{name}-%{version}.tar.gz
Source1:	http://www.gnu.org/software/xorriso/%{name}-%{version}.tar.gz.sig
BuildRequires:	acl-devel
BuildRequires:	attr-devel
BuildRequires:	bzip2-devel
BuildRequires:	pkgconfig(zlib)

%description
xorriso copies file objects from POSIX compliant filesystems into Rock Ridge 
enhanced ISO 9660 filesystems and allows session-wise manipulation of such
filesystems.

%files
%doc AUTHORS README texinfo.tex
%{_bindir}/osirrox
%{_bindir}/xorrecord
%{_bindir}/xorriso
%{_bindir}/xorrisofs
%{_bindir}/xorriso-dd-target
%{_bindir}/xorriso-tcltk
%{_datadir}/info/xorr*.info*
%{_mandir}/man1/xorr*.1*

#-------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20394 |21mr|xplanet-1.3.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	OpenGL based planet renderer
Name:		xplanet
Version:	1.3.1
Release:	1
License:	GPLv2+
Group:		Toys
Url:		http://xplanet.sourceforge.net/
Source0:	http://freefr.dl.sourceforge.net/sourceforge/xplanet/%{name}-%{version}.tar.gz
#fix new api calls to libgif5
Patch0:		xplanet-1.3.1-giflib5.patch
#Fix compilation with GCC 6
Patch1:		xplanet-1.3.1-gcc6.patch
BuildRequires:	giflib-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(pango)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xscrnsaver)

%description
Xplanet is similar to Xearth, where an image of the earth is rendered into
an X window. Azimuthal, Mercator, Mollweide, orthographic, or rectangular
projections can be displayed as well as a window with a globe the user can
rotate interactively. The other planets and some satellites may also be
displayed. The latest version, as well as maps for other planets can be
found at http://xplanet.sourceforge.net. Xplanet can support separate
night and day maps, as well as a separate cloud map.

%files
%doc COPYING ChangeLog
%{_mandir}/man1/%{name}.1*
%{_bindir}/*
%{_datadir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
# the macro break X output
%configure --with-xscreensaver --with-x
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20395 |21mr|xplc-0.3.13-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Component system
Name:		xplc
Version:	0.3.13
Release:	20
License: 	LGPLv2+
Group:		System/Libraries
Url:		http://xplc.sourceforge.net
Source0:	http://downloads.sourceforge.net/xplc/%{name}-%{version}.tar.bz2
# Install devel libraries to /usr/lib and not /usr/lib/%name-%version
Patch0:		xplc-0.3.13-devel-location.patch
# rename uuidgen to xplc-uuidgen
Patch1:		xplc-0.3.13-uuidgen.patch
Patch2:		xplc-0.3.13-as-needed.patch
Patch3:		xplc-0.3.13-soname.patch
Patch4:		xplc-0.3.13-case.patch
BuildRequires:	pkgconfig(ext2fs)

%description
XPLC ("Cross-Platform Lightweight Components") is a component system that will
provide extensibility and reusability both inside and between applications, 
while being portable across platforms (and languages) and having the lowest 
possible overhead (both in machine resources and programming effort).

#----------------------------------------------------------------------------

%package uuidgen
Summary:	Component system
Group:		System/Libraries

%description uuidgen
XPLC ("Cross-Platform Lightweight Components") is a component system that will
provide extensibility and reusability both inside and between applications, 
while being portable across platforms (and languages) and having the lowest 
possible overhead (both in machine resources and programming effort). This
packages contains the UUID generation tools that are provided with XPLC. The
'uuidgen' tool is renamed 'xplc-uuidgen' to avoid conflict with the 'uuidgen'
tool in the e2fs-progs package.

%files uuidgen
%{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Component system
Group:		System/Libraries

%description -n %{libname}
XPLC ("Cross-Platform Lightweight Components") is a component system that will
provide extensibility and reusability both inside and between applications, 
while being portable across platforms (and languages) and having the lowest 
possible overhead (both in machine resources and programming effort).

%files -n %{libname}
%doc NEWS README TODO
%{_libdir}/libxplc.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for XPLC
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
XPLC ("Cross-Platform Lightweight Components") is a component system that will
provide extensibility and reusability both inside and between applications, 
while being portable across platforms (and languages) and having the lowest 
possible overhead (both in machine resources and programming effort). This 
package contains the files needed for developing applications which use 
XPLC.

%files -n %{devname}
%{_includedir}/%{name}-%{version}
%{_libdir}/*.a
%{_libdir}/libxplc.so
%{_libdir}/pkgconfig/*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .devel
%patch1 -p1 -b .uuid
%patch2 -p0 -b .needed
%patch3 -p0 -b .soname
%patch4 -p1

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20396 |21mr|xpp3-1.1.4-21.c
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global oversion 1.1.4c

Summary:        XML Pull Parser
Name:           xpp3
Version:        1.1.4
Release:        21.c
License:        ASL 1.1
Group:          Development/Java
URL:            http://www.extreme.indiana.edu/xgws/xsoap/xpp/mxp1/index.html
Source0:        http://www.extreme.indiana.edu/dist/java-repository/xpp3/distributions/xpp3-%{oversion}_src.tgz
Source1:        http://repo1.maven.org/maven2/xpp3/xpp3/%{oversion}/xpp3-%{oversion}.pom
Source2:        http://repo1.maven.org/maven2/xpp3/xpp3_xpath/%{oversion}/xpp3_xpath-%{oversion}.pom
Source3:        http://repo1.maven.org/maven2/xpp3/xpp3_min/%{oversion}/xpp3_min-%{oversion}.pom
Source4:        %{name}-%{oversion}-OSGI-MANIFEST.MF
Patch0:         %{name}-link-docs-locally.patch

BuildRequires:  javapackages-local
BuildRequires:  java-javadoc
BuildRequires:  ant
BuildRequires:  junit

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
XML Pull Parser 3rd Edition (XPP3) MXP1 is an XmlPull
parsing engine that is based on ideas from XPP and in
particular XPP2 but completely revised and rewritten to
take best advantage of latest JIT JVMs such as Hotspot in JDK 1.4.

%package minimal
Summary:        Minimal XML Pull Parser

%description minimal
Minimal XML pull parser implementation.

%package javadoc
Summary:        Javadoc for %{name}
Requires:       java-javadoc

%description javadoc
Javadoc for %{name}.

%prep
%setup -q -n %{name}-%{oversion}
# remove all binary libs
find -name \*.jar -delete
# Remove class bundled from Axis (now it's bundled in JRE)
rm -rf src/java/builder/javax

%patch0

# "src/java/addons_tests" does not exist
sed -i 's|depends="junit_main,junit_addons"|depends="junit_main"|' build.xml

# relax javadoc linting
sed -i '/<javadoc/aadditionalparam="-Xdoclint:none"' build.xml

%build
export CLASSPATH=$(build-classpath junit)
ant xpp3 junit apidoc

# Add OSGi metadata
jar ufm build/%{name}-%{oversion}.jar %{SOURCE4}

%install
%mvn_file ':{*}' @1
%mvn_package :xpp3_min minimal

%mvn_artifact %{SOURCE1} build/%{name}-%{oversion}.jar
%mvn_artifact %{SOURCE2} build/%{name}_xpath-%{oversion}.jar
%mvn_artifact %{SOURCE3} build/%{name}_min-%{oversion}.jar

# Javadocs
%mvn_install -J doc/api

%files -f .mfiles
%doc README.html doc/*.txt doc/*.html
%license LICENSE.txt

%files minimal -f .mfiles-minimal
%license LICENSE.txt

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20397 |21mr|xpr-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xpr
Version:	1.0.5
Release:	1
Summary:	Dump an X window directly to a printer
Group:		Development/X11
License:	MIT
URL:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	x11-util-macros

%description
Xpr takes as input a window dump file produced by xwd(1) and formats it for
output on PostScript printers, the Digital LN03 or LA100, the IBM PP3812 page
printer, the HP LaserJet (or other PCL printers), or the HP PaintJet.

%prep
%setup -q

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/xpr
%{_bindir}/xdpr
%{_mandir}/man1/xdpr.1*
%{_mandir}/man1/xpr.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20398 |21mr|xprop-1.2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Property displayer for X
Name:		xprop
Version:	1.2.5
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%description
The xprop utility is for displaying window and font properties in an X server.

%files
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%configure
%make

%install
%makeinstall_std
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20399 |21mr|xrandr-1.5.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Primitive command line interface to RandR extension
Name:		xrandr
Version:	1.5.1
Release:	2
License:	MIT
Group:		System/X11
Url:		http://www.x.org/wiki/Projects/XRandR
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.xz
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xrender)

%description
Xrandr is a command line application used to set the screen size,
orientation, reflection and/or the active display(s) using the RandR
extension.

%files
%{_bindir}/xrandr
%{_mandir}/man1/xrandr.1.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

# (cg) NB Until we package nickle and cairo-5c (that works) kill this
rm -f %{buildroot}%{_bindir}/xkeystone

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20400 |21mr|xrdb-1.2.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: xrdb
Version:	1.2.1
Release:	1
Summary: X server resource database utility

Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xmu) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1
Requires: mcpp

%description
Xrdb is used to get or set the contents of the RESOURCE_MANAGER property on the
root window of screen 0, or the SCREEN_RESOURCES property on the root window of
any or all screens, or everything combined.

%prep
%setup -q -n %{name}-%{version}

%build
%configure --with-cpp=%{_bindir}/mcpp

%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xrdb
%{_mandir}/man1/xrdb.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20401 |21mr|xrdp-0.10.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

%define	major 0
%define	libname %mklibname rfxencode %{major}
%define	devname %mklibname rfxencode  -d

Summary:	Open source remote desktop protocol (RDP) server
Name:		xrdp
Epoch:		1
Version:	0.10.1
Release:	2
License:	GPLv2+ with exceptions
Group:		Networking/Remote access
Url:		http://xrdp.sourceforge.net/
Source0:	https://github.com/neutrinolabs/xrdp/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1:	xrdp-sesman.pamd
Source2:	%{name}.sysconfig
Source3:	%{name}.logrotate
Source4:	%{name}.sysusers.conf
Source5:	startwm.sh
Source100:	%{name}.rpmlintrc
Patch1:		0001-ROSA-generate-keys-and-certificates-before-service-s.patch
Patch4:		%{name}-0.9.19-xrdp-ini-adapt.patch
# TODO: upstreamize it
Patch5:		0001-Read-etc-locale.conf.patch
Patch6:		0001-ROSA-force-non-SUID-Xorg.patch
Patch7:		alt-add-russian-keyboard.patch
BuildRequires:	libtool
BuildRequires:	nasm
BuildRequires:	lame-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(fdk-aac)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(imlib2)
# XXX krb5 is disabled, https://github.com/neutrinolabs/xrdp/issues/1715
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(openssl) >= 0.9.8
BuildRequires:	pkgconfig(opusfile)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xfixes)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(systemd)
Requires:	cert-sh-functions
#vnc-server provides Xvnc (tigervnc-server in fedora)
Requires:	tigervnc-server
# For terminal Xorg sessions
Requires:	xorgxrdp
# startwm.sh, xinitrc
Requires:	/etc/X11/xdm/Xsession
Requires:	bash
# hardcoded by Patch6, non-SUID Xorg
Requires:	x11-server-xorg
Requires(post):	/bin/systemd-sysusers

%description
The goal of this project is to provide a fully functional Linux terminal
server, capable of accepting connections from rdesktop and Microsoft's own
terminal server / remote desktop clients.

%files
%doc COPYING *.md
%dir %{_libdir}/%{name}
%dir %{_sysconfdir}/%{name}
%dir %{_sysconfdir}/%{name}/pulse
%dir %{_datadir}/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/%{name}.ini
%config(noreplace) %{_sysconfdir}/pam.d/%{name}-sesman
%config(noreplace) %{_sysconfdir}/logrotate.d/%{name}
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%config(noreplace) %{_sysconfdir}/%{name}/sesman.ini
%config(noreplace) %{_sysconfdir}/%{name}/reconnectwm.sh
%config(noreplace) %{_sysconfdir}/%{name}/startwm.sh
%{_sysconfdir}/%{name}/startwm_upstream.sh
%{_sysconfdir}/%{name}/km*.ini
%{_sysconfdir}/%{name}/%{name}_keyboard.ini
%{_bindir}/xrdp-dumpfv1
%{_bindir}/%{name}-genkeymap
%{_bindir}/%{name}-sesadmin
%{_bindir}/%{name}-keygen
%{_bindir}/%{name}-sesrun
#%%{_bindir}/xrdp-sestest
%{_bindir}/%{name}-dis
%{_sbindir}/%{name}-chansrv
%{_sbindir}/%{name}
%{_sbindir}/%{name}-sesman
%{_datadir}/%{name}/ad256.bmp
%{_datadir}/%{name}/cursor0.cur
%{_datadir}/%{name}/cursor1.cur
%{_datadir}/%{name}/xrdp256.bmp
%{_datadir}/%{name}/sans-10.fv1
%{_datadir}/%{name}/ad24b.bmp
%{_datadir}/%{name}/xrdp24b.bmp
%{_datadir}/%{name}/xrdp_logo.bmp
%{_datadir}/%{name}/README.logo
%{_datadir}/%{name}/sans-18.fv1
%{_datadir}/%{name}/xrdp_logo.png
%{_sysusersdir}/%{name}.conf
%{_mandir}/man5/*
%{_mandir}/man8/*
%{_mandir}/man1/*
%{_libdir}/%{name}/lib*.so.*
%{_libdir}/%{name}/libcommon.so
%{_libdir}/%{name}/libmc.so
%{_libdir}/%{name}/libvnc.so
%{_libdir}/%{name}/libxrdp.so
%{_libdir}/%{name}/libxup.so
%{_libdir}/%{name}/libxrdpapi.so
%{_libdir}/%{name}/libipm.so
%{_libdir}/%{name}/libsesman.so
%{_libdir}/%{name}/libtoml.so
%{_libexecdir}/%{name}/waitforx
%{_libexecdir}/%{name}/xrdp-sesexec
%{_sysconfdir}/%{name}/pulse/default.pa
%{_unitdir}/%{name}-sesman.service
%{_unitdir}/%{name}.service
%ghost %{_localstatedir}/log/%{name}-sesman.log
%attr(0600,root,root) %verify(not size md5 mtime) %{_sysconfdir}/%{name}/rsakeys.ini

%post
%sysusers_create %{name}.conf
%systemd_post %{name}
%systemd_post %{name}-sesman.service

%preun
%systemd_preun %{name}.service
%systemd_preun %{name}-sesman.service

#----------------------------------------------------------------------------

%package devel
Summary:	Headers and pkg-config files needed to compile xrdp backends
Group:		Development/Other

%description devel
This package contains headers necessary for developing xrdp backends that
talk to xrdp.

%files devel
%doc COPYING
%{_includedir}/%{name}*
%{_libdir}/pkgconfig/%{name}.pc
%{_includedir}/ms-*.h
#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Never hardcode rpaths
sed -i -e 's/^\(AM_CONDITIONAL(GOT_PREFIX,\).*$/\1 false)/' configure.ac

sed -i -e 's,@OPENSSLDIR@,%{_openssldir},g' xrdp/xrdp.ini

# OpenSSL < 1.1 does not support TLS v1.3
%if %{mdvver} < 201910
sed -i -e 's!, TLSv1.3!!g' xrdp/xrdp.ini
%endif

%build
./bootstrap
# --disable-kerberos: https://github.com/neutrinolabs/xrdp/issues/1715
# --enable-kerberos REPLACES PAM with krb-ONLY authentication,
# but PAM can be conigured to authenticate using krb, e.g. in a AD/FreeIPA/LDAP domain,
# that is why direct usage of libkrb5 API makes no sense and kerberos is disabled here.
export CFLAGS="%{optflags} -fno-strict-aliasing"
%configure	\
				--enable-fdkaac \
				--enable-fuse \
				--enable-jpeg \
				--enable-opus \
				--with-imlib2=yes \
				--enable-mp3lame \
				--enable-pixman \
				--enable-rfxcodec \
				--enable-ipv6 \
				--disable-kerberos \
				--enable-static
%make

%install
%makeinstall_std

# Remove *.a files (they are needed by the build, so we
# cannot disable them at configure time)
find %{buildroot} -name '*.a' -exec rm {} \;

# Install xrdp to pam.d /etc/pam.d/xrdp-sesman
install -Dp -m 644 %{SOURCE1} %{buildroot}%{_sysconfdir}/pam.d/%{name}-sesman

# Install xrdp sysconfig /etc/sysconfig/xrdp
install -Dp -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sysconfig/%{name}

# Install logrotate /etc/logrotate.d/xrdp
install -Dp -m 644 %{SOURCE3} %{buildroot}%{_sysconfdir}/logrotate.d/%{name}

# Install log file /var/log/xrdp-sesman.log
mkdir -p %{buildroot}%{_localstatedir}/log/
touch %{buildroot}%{_localstatedir}/log/%{name}-sesman.log

# Provide a rsakeys.ini
touch %{buildroot}%{_sysconfdir}/%{name}/rsakeys.ini
chmod 0600 %{buildroot}%{_sysconfdir}/%{name}/rsakeys.ini

# Remove useless stuff...
rm -f %{buildroot}%{_includedir}/painter.h
rm -f %{buildroot}%{_libdir}/libpainter.*
rm -f %{buildroot}%{_libdir}/pkgconfig/libpainter.pc
rm -f %{buildroot}%{_sysconfdir}/%{name}/%{name}.sh
# ..and something we provide in %%post
rm -f %{buildroot}%{_sysconfdir}/%{name}/*.pem

# lib rfxcodec now not build as shared lib, drop devel files
rm -f %{buildroot}%{_includedir}/rfxcodec_*.h
#rm -f %{buildroot}%{_includedir}/ms-*.h
rm -f %{buildroot}%{_libdir}/pkgconfig/rfxcodec.pc

mkdir -p %{buildroot}%{_sysusersdir}
install -m0644 %{SOURCE4} %{buildroot}%{_sysusersdir}/%{name}.conf

# XXX Temporary solution probably, not all DEs have symlink /usr/share/xsessions/default.desktop
# TODO: fix startup via /etc/X11/Xsession or sth like that
mv -v %{buildroot}%{_sysconfdir}/%{name}/startwm.sh %{buildroot}%{_sysconfdir}/%{name}/startwm_upstream.sh
install -m0755 %{SOURCE5} %{buildroot}%{_sysconfdir}/%{name}/startwm.sh

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20402 |21mr|xrefresh-1.0.6-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Refresh all or part of an X screen
Name:		xrefresh
Version:	1.0.6
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
Source1:	xrefresh.xpm
Source2:	xrefresh.xpm.large
Source3:	xrefresh.xpm.mini
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xorg-macros)
BuildRequires:	pkgconfig(xproto)

%description
Xrefresh is a simple X program that causes all or part of your screen to be
repainted. This is useful when system messages have messed up your screen.

%files
%{_bindir}/xrefresh
%{_mandir}/man1/xrefresh.1*
%{_datadir}/icons/xrefresh.xpm
%{_datadir}/icons/*/xrefresh.xpm

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

# install icons
mkdir -p %{buildroot}%{_datadir}/icons/large
mkdir -p %{buildroot}%{_datadir}/icons/mini

install -m0644 %{SOURCE1} %{buildroot}%{_datadir}/icons/xrefresh.xpm
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/icons/large/xrefresh.xpm
install -m0644 %{SOURCE3} %{buildroot}%{_datadir}/icons/mini/xrefresh.xpm

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20403 |21mr|xsane-0.999-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define launchers /etc/dynamic/launchers/scanner

Summary:	Frontend for the SANE scanner interface
Name:		xsane
Version:	0.999
Release:	19
License:	GPLv2+
Group:		Graphics
Url:		http://www.xsane.org/
Source0:	ftp://ftp.sane-project.org/pub/sane/xsane/%{name}-%{version}.tar.gz
Source1:	xsane-russian-docs.tar.xz
Source2:	xsane.desktop
# Large icon from here: http://doc.ubuntu-fr.org/_detail/graphisme/1176139936.png?id=xsane
Source3:	xsane.png
Patch0:		xsane-0.99-browser.patch
Patch2:		xsane-ru-po.patch
Patch3:		xsane-0.995-close-fds.patch
Patch4:		xsane-0.997-no-file-selected.patch
Patch5:		xsane-0.998-libpng.patch
Patch6:		xsane-0.998-preview-selection.patch
Patch7:		xsane-0.998-wmclass.patch
Patch10:	xsane-0.995-xdg-open.patch
Patch11:	xsane-0.996-no-eula.patch
Patch12:	xsane-0.997-off-root-build.patch
Patch13:	xsane-0.997-ipv6.patch
Patch14:	xsane-0.999-man-page.patch
Patch15:	xsane-0.999-pdf-no-high-bpp.patch
Patch16:	xsane-0.999-lcms2.patch
Patch17:	xsane-0.999-snprintf-update.patch
Patch18:	xsane-0.999-signal-handling.patch
Patch19:	xsane-0.999-coverity.patch
Patch20:	0001-Add-scrollbar-to-device-list.patch

# Contains "www-browser" script
Requires:	desktop-common-data
# This is for the drakxtools so that they can install a GUI for scanning
# but decide depending on the system environment which GUI actually to
# install
Provides:	scanner-gui
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(lcms)
BuildRequires:	pkgconfig(libgphoto2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(libv4l1)
BuildRequires:	pkgconfig(libv4l2)
BuildRequires:	pkgconfig(sane-backends)
Requires(post,postun):	update-alternatives
Recommends:	gocr

%description
XSane is an X based interface for the SANE (Scanner Access Now Easy)
library, which provides access to scanners, digital cameras, and other
capture devices.  XSane is written in GTK+ and provides control for
performing the scan and then manipulating the captured image.

You may install xsane-gimp if you want the GIMP plug-in.

%files -f %{name}.lang
%doc xsane*
%config(noreplace) %{launchers}/%{name}.desktop
%{_bindir}/xsane
%dir %{_datadir}/sane
%{_datadir}/sane/*
%{_mandir}/man1/*
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.xpm
%{_iconsdir}/hicolor/*/apps/*

%post
update-alternatives --install %{launchers}/kde.desktop scanner.kde.dynamic %{launchers}/%{name}.desktop 30
update-alternatives --install %{launchers}/gnome.desktop scanner.gnome.dynamic %{launchers}/%{name}.desktop 30

%postun
if [ $1 = 0 ]; then
  update-alternatives --remove scanner.kde.dynamic %{launchers}/%{name}.desktop
  update-alternatives --remove scanner.gnome.dynamic %{launchers}/%{name}.desktop
fi

#----------------------------------------------------------------------------

%package gimp
Summary:	GIMP plug-in which provides the SANE scanner interface
Group:		Graphics
Requires:	%{name} >= %{EVRD}
Requires:	sane >= 1.0

%description gimp
This package provides the regular XSane frontend for the SANE scanner
interface, but it works as a GIMP 2.0 plug-in.  You must have GIMP 2.0 (or
newer) installed to use this package.

%files gimp
%doc xsane*
%{_bindir}/xsane-gimp

%post gimp
if [ -d %{_libdir}/gimp ]; then
  GIMPDIR=`ls -d %{_libdir}/gimp/[012]*`
  [ -z "$GIMPDIR" ] && exit 0
  for i in $GIMPDIR;do
  [ -d $i/plug-ins ] || mkdir -p $i/plug-ins
  %{__ln_s} -f %{_bindir}/xsane-gimp $i/plug-ins/xsane
  done
fi

%postun gimp
if [ $1 = 0 ]; then
  if [ -d %{_libdir}/gimp ]; then
    GIMPDIR=`ls -d %{_libdir}/gimp/[012]*`
        [ -z "$GIMPDIR" ] && exit 0
        for i in $GIMPDIR;do
    [ -d $i/plug-ins ] || mkdir -p $i/plug-ins
    rm -f $i/plug-ins/xsane
        done
  fi
fi

#----------------------------------------------------------------------------

%prep
%setup -q
cat %{SOURCE2} > src/xsane.desktop
%patch0 -p0 -b .www-browser
%patch2 -p1 -b .po-file
%patch3 -p1
%patch4 -p1
%patch5 -p1
%patch6 -p1
%patch7 -p1
%patch10 -p1
%patch11 -p1
%patch12 -p1
%patch13 -p1
%patch14 -p1
%patch15 -p1
%patch16 -p1
%patch17 -p1
%patch18 -p1
%patch19 -p1
%patch20 -p1

%build
%configure --with-install-root=%{buildroot} 

perl -pi -e 's#LDFLAGS  =  -L/usr/lib -Wl,-rpath,/usr/lib#LDFLAGS  =  -L/usr/lib -Wl#' src/Makefile
##perl -pi -e 's#ja\.(po|gmo)##' po/Makefile
%make
mv src/xsane src/xsane-gimp

make clean

%configure --with-install-root=%{buildroot} --disable-gimp
perl -pi -e 's#LDFLAGS  =  -L/usr/lib -Wl,-rpath,/usr/lib#LDFLAGS  =  -L/usr/lib -Wl#' src/Makefile
##perl -pi -e 's#ja\.(po|gmo)##' po/Makefile
%make

%install
%makeinstall_std

install src/xsane-gimp %{buildroot}%{_bindir}
%find_lang %{name}
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{128x128,48x48,32x32,16x16}/apps
convert -scale 128 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png
convert -scale 48 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert -scale 32 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert -scale 16 %{SOURCE3} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png

# dynamic desktop support
mkdir -p %{buildroot}%{launchers}
cat > %{buildroot}%{launchers}/%{name}.desktop << EOF
[Desktop Entry]
Name=XSane \$device
Comment=XSane
Exec=%{_bindir}/xsane
Terminal=false
Icon=%{name}
Type=Application
EOF

mkdir -p %{buildroot}%{_datadir}/sane/xsane/doc/ru/
tar xaf %{SOURCE1} -C %{buildroot}%{_datadir}/sane/xsane/doc/ru/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20404 |21mr|xscreensaver-6.08-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define disable_inappropriate 1
%{?_with_inappropriate: %{expand: %%global disable_inappropriate 0}}
%{?_without_inappropriate: %{expand: %%global disable_inappropriate 1}}

Summary:	A set of X Window System screensavers
Name:		xscreensaver
Version:	6.08
Release:	1
License:	BSD
Group:		Graphical desktop/Other
Url:		https://github.com/Zygo/xscreensaver
Source0:	http://www.jwz.org/xscreensaver/%{name}-%{version}.tar.gz
Source1:	xscreensaver-capplet.png
Source2:	dmctl
Source3:	update-xscreensaver-hacks
Source4:	ru.po
Source5:	logo-180.xpm
Patch0:		xscreensaver-6.08-defaultconfig.patch
Patch1:		xscreensaver-5.09-noGL.patch
Patch2:		xscreensaver-6.08-add-desktop-category.patch
Patch3:		xscreensaver-5.45-sanitize-hacks.patch
# From Fedora
# See bug 472061
Patch21:	xscreensaver-6.06-webcollage-default-nonet.patch
BuildRequires:	bc
BuildRequires:	fortune-mod
BuildRequires:	imagemagick
BuildRequires:	intltool
BuildRequires:	makedepend
BuildRequires:	gle-devel
BuildRequires:	jpeg-devel
BuildRequires:	pam-devel
BuildRequires:	pkgconfig(gdk-pixbuf-xlib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(glut)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xi)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(xxf86misc)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	fortune-mod
Requires:	sysvinit-tools
Requires:	xdg-utils
Requires:	%{name}-common = %{EVRD}

%description
The xscreensaver package contains a variety of screensavers for your
mind-numbing, ambition-eroding, time-wasting, hypnotized viewing
pleasure.

Install the xscreensaver package if you need screensavers for use with
the X Window System.

%files -f %{name}.lang
%doc README
%attr(755,root,chkpwd) %{_bindir}/%{name}
%{_bindir}/dmctl
%{_bindir}/%{name}-command
%{_bindir}/%{name}-demo
%{_bindir}/%{name}-settings
%config(noreplace) %{_sysconfdir}/pam.d/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/applications/%{name}-settings.desktop
%{_datadir}/fonts/%{name}
%{_datadir}/%{name}/%{name}.service
%{_datadir}/pixmaps/*
%dir %{_datadir}/%{name}
%{_iconsdir}/hicolor/*/apps/*.png
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/%{name}-command.1.*
%{_mandir}/man1/%{name}-demo.1.*
%{_mandir}/man1/%{name}-settings.1.*

#--------------------------------------------------------------------

%package base
Summary:	A set of screensavers
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}
Conflicts:	xscreensaver < 5.00-2
Requires:	words

%description base
Various screensavers used by Xscreensaver.

%files base -f base.files
%{_sbindir}/update-%{name}-hacks

#--------------------------------------------------------------------

%package common
Summary:	Utilities used by xscreensaver screensavers
Group:		Graphical desktop/Other
Conflicts:	xscreensaver < 5.00-2
Provides:	%{name}-utils

%description common
Utilities used by xscreensaver screensavers.

%files common
%{_datadir}/%{name}/config/README
%{_datadir}/X11/app-defaults/*
%dir %{_datadir}/%{name}/config
%dir %{_libexecdir}/%{name}
%{_libexecdir}/%{name}/%{name}-auth
%{_libexecdir}/%{name}/%{name}-gfx
%{_libexecdir}/%{name}/%{name}-systemd
%{_mandir}/man6/%{name}-auth.6.*
%{_mandir}/man6/%{name}-gfx.6.*
%{_mandir}/man6/%{name}-systemd.6.*

#--------------------------------------------------------------------

%package gl
Summary:	A set of GL screensavers
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}
Requires(post):	%{name}-common = %{EVRD}
Requires(postun):	%{name}-common = %{EVRD}

%description gl
The xscreensaver-gl package contains even more screensavers for your
mind-numbing, ambition-eroding, time-wasting, hypnotized viewing
pleasure. These screensavers require OpenGL or Mesa support.

Install the xscreensaver-gl package if you need more screensavers for
use with the X Window System and you have OpenGL or Mesa installed.

%files gl -f gl-extras.files
%doc README.GL

%post gl
sed -i -e 's/\A-\s+GL:/ GL:/' %{_datadir}/X11/app-defaults/XScreenSaver

%postun gl
sed -i -e '/\A\s*GL:/ and print "- $_" or print "$_"' %{_datadir}/X11/app-defaults/XScreenSaver

#--------------------------------------------------------------------

%package matrix
Summary:	The Matrix screensavers
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}

%description matrix
The xscreensaver-matrix package contains two screensavers for
xscreensaver based on the movie The Matrix. It is in restricted because
there might by copyright problems with the artwork used in this
screensavers.


%files matrix
%doc README.GL
%{_datadir}/%{name}/config/glmatrix.xml
%{_datadir}/%{name}/config/xmatrix.xml
%{_libexecdir}/%{name}/glmatrix
%{_libexecdir}/%{name}/xmatrix
%{_mandir}/man6/glmatrix.6*
%{_mandir}/man6/xmatrix.6*

#--------------------------------------------------------------------

%package extrusion
Summary:	OpenGL screensaver
Group:		Graphical desktop/Other
Requires:	%{name}-common = %{EVRD}

%description extrusion
The xscreensaver-extrusion package contains the extrusion
screensaversfor your mind-numbing, ambition-eroding, time-wasting,
hypnotized viewing pleasure. This screensaver requires OpenGL or Mesa
support.

This screensaver is in a separate package, because it is the only
application for the ROSA Linux distribution which requires the GLE
extrusion library.

%files extrusion
%doc README.GL
%{_datadir}/%{name}/config/extrusion.xml
%{_libexecdir}/%{name}/extrusion
%{_mandir}/man6/extrusion.6*

#--------------------------------------------------------------------

%prep
%autosetup -p1
cp -f %{SOURCE4} ./
cp -f %{SOURCE5} utils/images
# ex. do-not-claim-on-old-version.patch
sed -i "/SED/ s/[0-9]/9/g" utils/version.h

%ifarch %{e2k}
sed -i 's/__extension__//' hacks/glx/dymaxionmap.c
%endif

for i in pt_BR.po pt.po sk.po; do
	iconv -f ISO-8859-1 -t UTF-8//TRANSLIT po/$i -o $i && mv -f $i po/$i
done

%build
%ifarch %{arm} aarch64
export CFLAGS="%optflags -flax-vector-conversions"
%endif

mv po/Makefile.in.in po/Makefile.in.in.save
touch config.rpath
autoreconf -vfi
mv -f po/Makefile.in.in.save po/Makefile.in.in
pushd po
sed -i	\
	-e "s/MKINSTALLDIRS = @MKINSTALLDIRS@/MKINSTALLDIRS\t= install -d/"	\
	-e "s/POFILES = ..shell echo ..po./POTFILES\t= da.po de.po es.po et.po fi.po fr.po hu.po it.po ja.po ko.po nb.po nl.po pl.po pt.po pt_BR.po ru.po sk.po sv.po vi.po wa.po zh_CN.po zh_TW.po/"	\
	-e "s/GMOFILES = ..shell echo ..gmo./GMOTFILES\t=\x24 da.gmo de.gmo es.gmo et.gmo fi.gmo fr.gmo hu.gmo it.gmo ja.gmo ko.gmo nb.gmo nl.gmo pl.gmo pt.gmo pt_BR.gmo ru.gmo sk.gmo sv.gmo vi.gmo wa.gmo zh_CN.gmo zh_TW.gmo/"	\
	-e "s/CATALOGS = @CATALOGS@/CATALOGS\t=\x24 da.gmo de.gmo es.gmo et.gmo fi.gmo fr.gmo hu.gmo it.gmo ja.gmo ko.gmo nb.gmo nl.gmo pl.gmo pt.gmo pt_BR.gmo ru.gmo sk.gmo sv.gmo vi.gmo wa.gmo zh_CN.gmo zh_TW.gmo/"	\
	-e "s/CATOBJEXT = @CATOBJEXT@/CATOBJEXT\t= .gmo/"	\
	-e "s/INSTOBJEXT = @INSTOBJEXT@/INSTOBJEXT\t= .mo/"	\
	Makefile.in.in
popd

# Fix the %%configure-breaking
# ac_unrecognized_opts check
sed -i '/exit 2$/d' configure.ac configure
%configure	\
	--enable-locking		\
	--enable-pam-check-account-type	\
	--enable-root-passwd		\
	--with-browser=xdg-open		\
	--with-dpms-ext			\
	--with-gl			\
	--with-gle			\
	--with-gtk			\
	--with-image-directory=%{_datadir}/mdk/screensaver	\
	--with-jpeg			\
	--with-login-manager=dmctl	\
	--without-kerberos		\
	--without-motif			\
	--without-setuid-hacks		\
	--with-pam			\
	--with-pixbuf			\
	--with-randr-ext		\
	--with-shadow			\
	--with-text-file=%{_sysconfdir}/release	\
	--with-xdbe-ext			\
	--with-xf86gamma-ext		\
	--with-xf86vmode-ext		\
	--with-xinerama-ext		\
	--with-xshm-ext
sed -i "/cd po/ s/.*/#&/" Makefile
make distdepend
sed -i "/cd po/ s/^#//" Makefile
make depend DEPEND="makedepend -I$(gcc -print-search-dirs|sed -e 's#^install: \(.*\).*#\1#g'|head -n1)/include"
#make depend
sed 's/\@ALL_LINGUAS\@/"da de es et fi fr hu it ja ko nb nl pl pt pt_BR ru sk sv vi wa zh_CN zh_TW"/' -i po/Makefile
%make

%install
rm -rf %{buildroot} gl-extras.files base.files %{name}.lang
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_libexecdir}/%{name}
mkdir -p %{buildroot}%{_mandir}/man6
mkdir -p %{buildroot}%{_sysconfdir}/pam.d
mkdir -p %{buildroot}%{_sysconfdir}/X11/app-defaults

make install	\
	AD_DIR=%{_datadir}/X11/app-defaults/	\
	bindir=%{_bindir}		\
	GNOME_BINDIR=%{_bindir}		\
	GNOME_DATADIR=%{_datadir}	\
	gnulocaledir=%{_datadir}/locale	\
	install_prefix=%{buildroot}	\
	KDEDIR=%{_prefix}		\
	mandir=%{_mandir}

sed -i "/Name=/aName[ru]=Хранитель экрана" %{buildroot}%{_datadir}/applications/%{name}-settings.desktop
sed -i "s/\(Name[ru]=Хранитель экрана\) X/\1/" %{buildroot}%{_datadir}/applications/%{name}.desktop

install -p -m755 %{SOURCE3} -D %{buildroot}%{_sbindir}/update-%{name}-hacks

# Custom wrapper for gdmflexiserver and kdmctl
install -m 755 %{SOURCE2} %{buildroot}%{_bindir}/dmctl

cat<<EOF >README.GL
The xscreensaver-gl package contains even more screensavers for your
mind-numbing, ambition-eroding, time-wasting, hypnotized viewing
pleasure. These screensavers require OpenGL or Mesa support.

Install the xscreensaver-gl package if you need more screensavers for
use with the X Window System and you have OpenGL or Mesa installed.
EOF

#icons
mkdir -p %{buildroot}%{_datadir}/pixmaps
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
cp %{SOURCE1} %{buildroot}%{_datadir}/pixmaps
convert -scale 16x16 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert -scale 32x32 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
ln -s %{_datadir}/pixmaps/%{name}-capplet.png %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png

#remove unpackaged files
rm -f %{buildroot}%{_datadir}/%{name}/config/xjack.xml
rm -f %{buildroot}%{_mandir}/man6/xjack.6
rm -f %{buildroot}%{_libexecdir}/%{name}/xjack

# This function prints a list of things that get installed.
# It does this by parsing the output of a dummy run of "make install".
#
list_files() {
	make -s install_prefix=%{buildroot} mandir=%{_mandir}/ \
	bindir=%{_bindir} INSTALL=true "$@"			\
	| sed -n -e 's@.* \(/[^ ]*\)$@\1@p'			\
	| sed	-e "s@^%{buildroot}@@"				\
		-e "s@/[a-z][a-z]*/\.\./@/@"			\
	| sed	-e 's@\(.*/man/.*\)@\1\*@'			\
	| sed	-e 's@\(.*/app-defaults/\)@%config \1@'		\
		-e 's@\(.*/pam\.d/\)@%config(missingok) \1@'	\
	| sort
}

# Generate three lists of files for the three packages.
#
dd=%{_builddir}/%{name}-%{version}
( cd hacks/glx	; list_files install > $dd/gl-extras.files)
( cd hacks	; list_files install > $dd/base.files)

#gw remove the files we don't package:
perl -pi -e "s/.*(xjack|matrix|extrusion).*//" gl-extras.files base.files

%find_lang %{name}

echo -e 'msgid "Show the what the unlock dialog will look like."\nmsgstr "Показать, как будет выглядеть диалоговое окно разблокировки."' >> ru.po
msgfmt ru.po -o %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/%{name}.mo

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20405 |21mr|xsd-4.1.0-0.a11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rel a11

Summary:	W3C XML schema to C++ data binding compiler
Name:		xsd
Version:	4.1.0
Release:	0.%{rel}
Group:		Development/C++
# Exceptions permit otherwise GPLv2 incompatible combination with ASL 2.0
License:	GPLv2+ with exceptions and ASL 2.0
Url:		http://www.codesynthesis.com/products/xsd/
Source0:	https://codesynthesis.com/~boris/tmp/xsd/%{version}.%{rel}/xsd-%{version}.%{rel}+dep.tar.bz2
# Suggestion sent to upstream via e-mail 20090707
Patch0:		xsd-4.1.0-xsdcxx-rename.patch
BuildRequires:	m4
BuildRequires:	boost-devel
BuildRequires:	pkgconfig(xerces-c)
BuildRequires:	ghostscript
# Requires:  ace-devel - only needed for applications using
#                        Adaptive Communication Environment (ACE) streams,
#                        enable when Fedora gets ACE packages.
#                        See http://www.cs.wustl.edu/~schmidt/ACE.html and
#                        https://bugzilla.redhat.com/show_bug.cgi?id=450164

%description
CodeSynthesis XSD is an open-source, cross-platform W3C XML Schema to
C++ data binding compiler. Provided with an XML instance specification
(XML Schema), it generates C++ classes that represent the given
vocabulary as well as parsing and serialization code.
You can then access the data stored in XML using types and functions
that semantically correspond to your application domain rather than
dealing with intricacies of reading and writing XML.

%files
%doc docdir/*
%{_bindir}/xsdcxx
%{_mandir}/man1/xsdcxx.1*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for xsd
Group:		Development/C++
Requires:	pkgconfig(xerces-c)
Requires:	%{name} = %{EVRD}

%description devel
This package provides development files for xsd.

%files devel
%{_includedir}/xsd/

#----------------------------------------------------------------------------

%package doc
Summary:	API documentation files for %{name}
Group:		Documentation

%description doc
This package contains API documentation for %{name}.

%files doc
%doc apidocdir/*

#----------------------------------------------------------------------------

%prep
%setup -qn xsd-%{version}.%{rel}+dep
%patch0 -p0 -b .xsdcxx-rename

%build
make \
	verbose=0 \
	CXXFLAGS="%{optflags} -std=c++14" \
	BOOST_LINK_SYSTEM=y

%install
rm -rf apidocdir

%makeinstall_std \
	verbose=0 \
	CXXFLAGS="%{optflags}" \
	install_prefix="%{buildroot}%{_prefix}" \
	BOOST_LINK_SYSTEM=y

# Split API documentation to -doc subpackage.
mkdir apidocdir
mv %{buildroot}%{_datadir}/doc/xsd/*.{xhtml,css} apidocdir/
mv %{buildroot}%{_datadir}/doc/xsd/cxx/ apidocdir/
mv %{buildroot}%{_datadir}/doc/xsd/ docdir/

# Convert to utf-8.
for file in docdir/NEWS; do
    mv $file timestamp
    iconv -f ISO-8859-1 -t UTF-8 -o $file timestamp
    touch -r timestamp $file
done

# Rename binary to xsdcxx to avoid conflicting with mono-web package.
# Sent suggestion to upstream via e-mail 20090707
# they will consider renaming in 4.0.0
mv %{buildroot}%{_bindir}/xsd %{buildroot}%{_bindir}/xsdcxx
mv %{buildroot}%{_mandir}/man1/xsd.1 %{buildroot}%{_mandir}/man1/xsdcxx.1

# Remove duplicate docs.
rm -rf %{buildroot}%{_datadir}/doc/libxsd

# Remove Microsoft Visual C++ compiler helper files.
rm -rf %{buildroot}%{_includedir}/xsd/cxx/compilers

# Remove redundant PostScript files that rpmlint grunts about not being UTF8
# See: https://bugzilla.redhat.com/show_bug.cgi?id=502024#c27
# for Boris Kolpackov's explanation about those
find apidocdir -name "*.ps" | xargs rm -f
# Remove other unwanted crap
find apidocdir -name "*.doxygen" \
            -o -name "makefile" \
            -o -name "*.html2ps" | xargs rm -f

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20406 |21mr|xset-1.2.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	User preference utility for X
Name:		xset
Version:	1.2.4
Release:	2
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xmu)

%description
The xset program is used to set various user preference options of the display.

%files
%{_bindir}/xset
%{_mandir}/man1/xset.*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20407 |21mr|xsetmode-1.0.0-20
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Set the mode for an XInput device
Name:		xsetmode
Version:	1.0.0
Release:	20
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)

%description
Xsetmode sets the mode of an XInput device to either absolute or relative.

%files
%{_bindir}/xsetmode
%{_mandir}/man1/xsetmode.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir} \
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20408 |21mr|xsetpointer-1.0.1-19
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Set an X Input device as the main pointer
Name:		xsetpointer
Version:	1.0.1
Release:	19
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT
BuildRequires:	x11-util-macros
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xi)

%description
Xsetpointer sets an XInput device as the main pointer.

%files
%{_bindir}/xsetpointer
%{_mandir}/man1/xsetpointer.1*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--x-includes=%{_includedir}\
	--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20409 |21mr|xsetroot-1.1.2-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xsetroot
Version:	1.1.2
Release:	3
Summary:	Root window parameter setting utility for X

Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xmu) >= 1.0.0
BuildRequires: x11-data-bitmaps >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1
BuildRequires: pkgconfig(xcursor)
BuildRequires: pkgconfig(xproto) >= 7.0.25


%description
The setroot program allows to tailor the appearance of the background
("root") window on a workstation display running X.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir} \
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xsetroot
%{_mandir}/man1/xsetroot.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20410 |21mr|xsettingsd-1.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Provides settings to X11 applications via the XSETTINGS specification
Name:		xsettingsd
Version:	1.0.2
Release:	1
Group:		Graphical desktop/Other
License:	BSD
Url:		https://github.com/derat/xsettingsd
Source0:	https://github.com/derat/xsettingsd/archive/v%{version}.tar.gz
BuildRequires:	cmake
BuildRequires:	scons
BuildRequires:	pkgconfig(x11)

%description
xsettingsd is a daemon that implements the XSETTINGS specification.
It is intended to be small, fast, and minimally dependent on other
libraries.  It can serve as an alternative to gnome-settings-daemon for
users who are not using the GNOME desktop environment but who still run
GTK+ applications and want to configure things such as themes, font
antialiasing/hinting, and UI sound effects.

%prep
%autosetup -p1

%build
%cmake
%make

%install
%makeinstall_std -C build

%files
%doc COPYING
%{_bindir}/%{name}
%{_bindir}/dump_xsettings
%{_mandir}/man1/%{name}.1.*
%{_mandir}/man1/dump_xsettings.1.*
%{_userunitdir}/xsettingsd.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20411 |21mr|xsm-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X Session Manager
Name:		xsm
Version:	1.0.5
Release:	1
License:	MIT
Group:		Development/X11
Url:		http://xorg.freedesktop.org
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.gz
BuildRequires:	netkit-rsh
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xt)

%description
Xsm is a session manager. A session is a group of applications, each of which
has a particular state. xsm allows you to create arbitrary sessions - for
example, you might have a "light" session, a "development" session, or an
"xterminal" session. Each session can have its own set of applications. Within
a session, you can perform a "checkpoint" to save application state, or a
"shutdown" to save state and exit the session. When you log back in to the
system, you can load a specific session, and you can delete sessions you no
longer want to keep.

Some session managers simply allow you to manually specify a list of
applications to be started in a session. xsm is more powerful because it lets
you run applications and have them automatically become part of the session. On
a simple level, xsm is useful because it gives you this ability to easily
define which applications are in a session. The true power of xsm, however, can
be taken advantage of when more and more applications learn to save and restore
their state.

%files
%{_bindir}/xsm
%{_datadir}/X11/app-defaults/XSm
%{_mandir}/man1/xsm.1*
%{_sysconfdir}/X11/xsm/system.xsm

#------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20412 |21mr|xsom-0-22.20110809svn
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global checkout 20110809

Name: xsom
Version: 0
Release: 22.%{checkout}svn
Summary: XML Schema Object Model (XSOM)
License: CDDL-1.1 or GPLv2 with exceptions
URL: http://xsom.java.net

# svn export https://svn.java.net/svn/xsom~sources/tags/xsom-20110809 xsom-20110809svn
# find xsom-20110809svn/ -name '*.class' -delete
# find xsom-20110809svn/ -name '*.class' -delete
# tar czf xsom-20110809svn.tar.gz xsom-20110809svn
Source0: %{name}-%{checkout}svn.tar.gz

# We need this because one of the original tests tries to download
# it from the website, but that doesn't work in Koji:
Source1: http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd

Patch0: %{name}-%{checkout}svn-pom.patch

BuildRequires:  maven-local
BuildRequires:  mvn(junit:junit)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(relaxngDatatype:relaxngDatatype)
BuildRequires:  relaxngcc

Group:          Development/Java
BuildArch: noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
XML Schema Object Model (XSOM) is a Java library that allows applications to
easily parse XML Schema documents and inspect information in them. It is
expected to be useful for applications that need to take XML Schema as an
input.  The library is a straight-forward implement of "schema components" as
defined in the XML Schema spec part 1.  Refer to this specification of how this
object model works. 

%package javadoc
Summary: Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{checkout}svn
%patch0 -p1

# Replace the URL of the XSD file used by the tests with its
# absolute filesystem location:
sed -i \
  's|http://docs.oasis-open.org/regrep/v3.0/schema/lcm.xsd|file://%{SOURCE1}|' \
  test/XSOMParserTest.java

pushd lib
  ln -sf `build-classpath relaxngcc` relaxngcc.jar
popd

%build
%mvn_build -- -Dproject.build.sourceEncoding=UTF-8

%install
%mvn_install

%files -f .mfiles
%doc license.txt

%files javadoc -f .mfiles-javadoc
%doc license.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20413 |21mr|xstdcmap-1.0.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xstdcmap
Version:	1.0.4
Release:	2
Summary:	X standard colormap utility

Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xmu) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
The xstdcmap utility can be used to selectively define standard
colormap properties. It is intended to be run from a user's X startup
script to create standard colormap definitions in order to facilitate
sharing of scarce colormap resources among clients. Where at all
possible, colormaps are created with read-only allocations.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xstdcmap
%{_mandir}/man1/xstdcmap.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20414 |21mr|xstream-1.4.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Copyright statement from JPackage this file is derived from:

# Copyright (c) 2000-2007, JPackage Project
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions
# are met:
#
# 1. Redistributions of source code must retain the above copyright
#    notice, this list of conditions and the following disclaimer.
# 2. Redistributions in binary form must reproduce the above copyright
#    notice, this list of conditions and the following disclaimer in the
#    documentation and/or other materials provided with the
#    distribution.
# 3. Neither the name of the JPackage Project nor the names of its
#    contributors may be used to endorse or promote products derived
#    from this software without specific prior written permission.
#
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#

%bcond_without hibernate

Name:           xstream
Version:        1.4.20
Release:        1
Summary:        Java XML serialization library
License:        BSD
URL:            http://x-stream.github.io/
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://repo1.maven.org/maven2/com/thoughtworks/%{name}/%{name}-distribution/%{version}/%{name}-distribution-%{version}-src.zip
# opensuse patch
Patch0:		Revert-MXParser-changes.patch
BuildRequires:  maven-local
BuildRequires:  mvn(cglib:cglib)
BuildRequires:  mvn(dom4j:dom4j)
BuildRequires:  mvn(javax.xml.bind:jaxb-api)
BuildRequires:  mvn(joda-time:joda-time)
BuildRequires:  mvn(net.sf.kxml:kxml2-min)
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires:  mvn(org.apache.maven.plugins:maven-antrun-plugin)
BuildRequires:  mvn(org.codehaus.mojo:build-helper-maven-plugin)
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)
BuildRequires:  mvn(org.jdom:jdom)
BuildRequires:  mvn(org.jdom:jdom2)
BuildRequires:  mvn(stax:stax)
BuildRequires:  mvn(stax:stax-api)
BuildRequires:  mvn(xpp3:xpp3)
BuildRequires:  mvn(xpp3:xpp3_min)

%if %{with hibernate}
BuildRequires:  mvn(javassist:javassist)
BuildRequires:  mvn(org.codehaus.jettison:jettison)
BuildRequires:  mvn(org.hibernate:hibernate-core)
BuildRequires:  mvn(org.hibernate:hibernate-envers)
BuildRequires:  mvn(org.slf4j:slf4j-simple)
BuildRequires:  mvn(xom:xom)
%endif


%description
XStream is a simple library to serialize objects to XML 
and back again. A high level facade is supplied that 
simplifies common use cases. Custom objects can be serialized 
without need for specifying mappings. Speed and low memory 
footprint are a crucial part of the design, making it suitable 
for large object graphs or systems with high message throughput. 
No information is duplicated that can be obtained via reflection. 
This results in XML that is easier to read for humans and more 
compact than native Java serialization. XStream serializes internal 
fields, including private and final. Supports non-public and inner 
classes. Classes are not required to have default constructor. 
Duplicate references encountered in the object-model will be 
maintained. Supports circular references. By implementing an 
interface, XStream can serialize directly to/from any tree 
structure (not just XML). Strategies can be registered allowing 
customization of how particular types are represented as XML. 
When an exception occurs due to malformed XML, detailed diagnostics 
are provided to help isolate and fix the problem.


%package        javadoc
Summary:        Javadoc for %{name}

%description    javadoc
%{name} API documentation.

%if %{with hibernate}
%package        hibernate
Summary:        hibernate module for %{name}
Requires:       %{name} = %{version}-%{release}

%description    hibernate
hibernate module for %{name}.
%endif

%package        benchmark
Summary:        benchmark module for %{name}
Requires:       %{name} = %{version}-%{release}

%description    benchmark
benchmark module for %{name}.

%package parent
Summary:        Parent POM for %{name}
Requires:       %{name} = %{version}-%{release}

%description parent
Parent POM for %{name}.


%prep
%setup -qn %{name}-%{version}
find . -name "*.class" -print -delete
find . -name "*.jar" -print -delete

%patch0 -p1

# Require org.codehaus.xsite:xsite-maven-plugin
%pom_disable_module xstream-distribution

# missing artifacts:
#  org.openjdk.jmh:jmh-core:jar:1.11.1
#  org.openjdk.jmh:jmh-generator-annprocess:jar:1.11.1
%pom_disable_module xstream-jmh

# Unwanted
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-eclipse-plugin
%pom_remove_plugin :maven-release-plugin
%pom_remove_plugin :xsite-maven-plugin

%pom_xpath_set "pom:dependency[pom:groupId = 'org.codehaus.woodstox' ]/pom:artifactId" woodstox-core-asl
%pom_xpath_set "pom:dependency[pom:groupId = 'org.codehaus.woodstox' ]/pom:artifactId" woodstox-core-asl xstream
%pom_xpath_set "pom:dependency[pom:groupId = 'cglib' ]/pom:artifactId" cglib
%pom_xpath_set "pom:dependency[pom:groupId = 'cglib' ]/pom:artifactId" cglib xstream
%if 0
# Replace old xmlpull dependency with xpp3
%pom_change_dep :xmlpull xpp3:xpp3:1.1.4c xstream
# Require unavailable proxytoys:proxytoys
%endif
%pom_remove_plugin :maven-dependency-plugin xstream

%pom_remove_plugin :maven-javadoc-plugin xstream

# provided by JDK
%pom_remove_dep javax.activation:activation xstream

%pom_xpath_set "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'cglib' ]/pom:artifactId" cglib xstream-hibernate
%pom_xpath_inject "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'junit' ]" "<scope>test</scope>" xstream-hibernate
%pom_remove_plugin :maven-dependency-plugin xstream-hibernate
%pom_remove_plugin :maven-javadoc-plugin xstream-hibernate

%pom_xpath_inject "pom:project/pom:dependencies/pom:dependency[pom:groupId = 'junit' ]" "<scope>test</scope>" xstream-benchmark
%pom_remove_plugin :maven-javadoc-plugin xstream-benchmark

%if %{without hibernate}
# Don't build hibernate module
%pom_disable_module xstream-hibernate
# Disable support for some lesser used XML backends
%pom_remove_dep -r xom:xom
%pom_remove_dep -r org.codehaus.jettison:jettison
rm xstream/src/java/com/thoughtworks/xstream/io/xml/Xom*
rm xstream/src/java/com/thoughtworks/xstream/io/json/Jettison*
rm xstream-benchmark/src/java/com/thoughtworks/xstream/tools/benchmark/products/XStreamXom.java
%endif

%mvn_file :%{name} %{name}/%{name} %{name}
%mvn_file :%{name}-benchmark %{name}/%{name}-benchmark %{name}-benchmark

%mvn_package :%{name}

%build
# test skipped for unavailable test deps (com.megginson.sax:xml-writer)
%mvn_build -f -s -- -Dversion.java.source=8

%install
%mvn_install

%files -f .mfiles
%doc README.txt
%license LICENSE.txt

%files parent -f .mfiles-%{name}-parent

%if %{with hibernate}
%files hibernate -f .mfiles-%{name}-hibernate
%endif

%files benchmark -f .mfiles-%{name}-benchmark

%files javadoc -f .mfiles-javadoc
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20415 |21mr|xtb-6.7.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 6
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%global blaslib openblas

Name:           xtb
Version:        6.7.1
Release:        1%{?dist}
Summary:        Semiempirical Extended Tight-Binding Program Package
Group:          Sciences/Other
License:        LGPLv3+
URL:            https://github.com/grimme-lab/xtb/
Source0:        https://github.com/grimme-lab/xtb/archive/v%{version}/xtb-%{version}.tar.gz

# Fedora versioning
Patch0:         xtb-6.5.1-fedora.patch
# Add sanity checks to environment variables, https://github.com/grimme-lab/xtb/pull/317
Patch4:         xtb-6.3.2-environment.patch

#BuildRequires:  cmake
BuildRequires:  pkgconfig(dftd4)
BuildRequires:  gcc-gfortran
BuildRequires:  gomp-devel
BuildRequires:  multicharge-devel
BuildRequires:  meson
#BuildRequires:  ninja
BuildRequires:  %{blaslib}-devel
# To generate man pages
BuildRequires:  rubygem-asciidoctor
# The program queries $HOSTNAME at runtime and so fails to run in mock without this
BuildRequires:  hostname
# New in 6.5.0
BuildRequires:  mctc-lib-devel
BuildRequires:  test-drive-devel

# Need data files to run
Requires:       %{name}-data = %{version}-%{release}

%description
The xtb program package developed by the Grimme group in Bonn.

%files
# LGPLv3+ license is stated at bottom of README.md
%doc README.md CONTRIBUTING.md
%license COPYING COPYING.LESSER README.md
%{_mandir}/man1/xtb.1*
%{_mandir}/man7/xcontrol.7*
%{_bindir}/xtb
#----------------------------------------------------
%package data
Summary:   Data files for xtb
BuildArch: noarch

%description data
This package contains the data files for xtb.

%files data
%{_sysconfdir}/profile.d/xtb.sh
%{_sysconfdir}/profile.d/xtb.csh
%{_datadir}/xtb/
#----------------------------------------------------
%package -n %{libname}
Summary:   %{name} shared library
Summary:   Shared libraries for xtb
# The program queries $HOSTNAME at runtime and so fails to run in mock without this
Requires:  hostname
# Need data files to run
Requires:  %{name}-data = %{EVRD}

%description -n %{libname}
This package contains the shared libraries for xtb.

%files -n %{libname}
%{_libdir}/libxtb.so.%{major}*
#----------------------------------------------------
%package -n %{devname}
Summary:   Development headers for xtb
Requires:  %{libname} = %{EVRD}
Provides:  %{name}-devel = %{EVRD}

%description -n %{devname}
This package contains development headers for xtb.

%files -n %{devname}
%{_includedir}/xtb.h
%{_libdir}/libxtb.so
%{_libdir}/pkgconfig/xtb.pc
#----------------------------------------------------
%prep
%autosetup -p1

%build
export FFLAGS="%{optflags} -I%{_fmoddir} -fPIC"
export FCLAGS="%{optflags} -I%{_fmoddir} -fPIC"
%meson -Dlapack=custom -Dcustom_libraries=%{blaslib} -Dtblite=disabled
date=$(date)
# Create customized Fedora versioning
cat > %{_target_platform}/xtb_version.fh <<EOF
character(len=*),parameter :: version = "%{version}-%{release}%{dist}"
character(len=*),parameter :: date = "$date"
character(len=*),parameter :: author = "Fedora project"
EOF
%meson_build

%install
%meson_install
# Remove static library
rm %{buildroot}%{_libdir}/libxtb.a
# Remove environment module files
rm -rf %{buildroot}%{_datadir}/modules

# Create profile files
mkdir -p %{buildroot}%{_sysconfdir}/profile.d
cat > %{buildroot}%{_sysconfdir}/profile.d/xtb.sh <<EOF
XTBPATH=%{_datadir}/xtb
export XTBPATH
EOF
cat > %{buildroot}%{_sysconfdir}/profile.d/xtb.csh <<EOF
setenv XTBPATH %{_datadir}/xtb
EOF

%check
# Set missing environment variable
#export HOSTNAME=$(hostname)
# Turn off use of OpenMP parallelism since tests are already run in parallel
#export OMP_NUM_THREADS=1
# Tests time out
#meson_test --timeout-multiplier=10

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20416 |21mr|xterm-386-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	The standard terminal emulator for the X Window System
Name:		xterm
Version:	386
Release:	1
License:	MIT
Group:		Terminals
Url:		http://invisible-island.net/xterm/
Source0:    https://invisible-island.net/archives/xterm/%{name}-%{version}.tgz
#Source1:	ftp://invisible-island.net/xterm/%%{name}-%%{version}.tgz.asc
Source11:	%{name}-16x16.png
Source12:	%{name}-32x32.png
Source13:	%{name}-48x48.png
# from http://www.vim.org/scripts/script.php?script_id=1349, public domain
Source20:	colortest.pl
Source100:	%{name}.rpmlintrc
BuildRequires:	desktop-file-utils
BuildRequires:	groff-base
BuildRequires:	luit
BuildRequires:	man2html-core
BuildRequires:	x11-proto-devel
BuildRequires:	pkgconfig(fontconfig)
BuildRequires:	pkgconfig(ncurses)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xcursor)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xinerama)
BuildRequires:	pkgconfig(xpm)
BuildRequires:	pkgconfig(xmu)
BuildRequires:	pkgconfig(xt)
Requires:	luit
#Requires(post,postun):	update-alternatives

%description
The XTerm program is the standard terminal emulator for the X Window System. It
provides DEC VT102/VT220 and Tektronix 4014 compatible terminals for programs
that can't use the window system directly. If the underlying operating system
supports terminal resizing capabilities (for example, the SIGWINCH signal in
systems derived from 4.3bsd), xterm will use the facilities to notify programs
running in the window whenever it is resized.
The xterm included in this package has support for 256 colors enabled.

%files
%doc ctlseqs.txt colortest.pl
%{_bindir}/*
%{_mandir}/*/*
%{_datadir}/X11/app-defaults/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/*.png
%{_iconsdir}/hicolor/scalable/apps/*.svg
%{_datadir}/pixmaps/*.xpm

#----------------------------------------------------------------------------

%prep
%setup -q
cp %{SOURCE20} .


%build
%configure \
	--disable-full-tgetent \
	--enable-wide-chars \
	--x-includes=%{_includedir}/freetype2 \
	--enable-luit \
	--enable-256-color \
	--with-app-defaults=%{_datadir}/X11/app-defaults \
	--with-icon-theme=hicolor \
	--with-icondir="%{_datadir}/icons"

%make


%install
%makeinstall_std

# NOTE: encodingMode: locale means to follow the charset encoding of the
# locale. A quite complete unicode font is set as the default (instead of the
# very poor "fixed" one). a quick cat is used instead of patching the sources;
# it shoulmd be made the default imho
# locale: true means to use luit to convert locale encoding to unicode
# for display.
# luit support is needed for it to work -- pablo
cat << EOF >> %{buildroot}%{_datadir}/X11/app-defaults/XTerm

*.vt100.font: -misc-fixed-medium-r-normal--15-140-75-75-c-90-iso10646-1
*.vt100.encodingMode: locale
*.locale: true
*.PtyInitialErase: on
*.backarrowKeyIsErase: on
*.allowFontOps: false
*.allowTcapOps: false
*.disallowedWindowOps: 1,2,3,4,5,6,7,8,9,11,13,14,18,19,20,21,GetSelection,SetSelection,SetWinLines,SetXprop
EOF

# The sources provide a .desktop file, but it requires too many changes:
# provide a custom one
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=XTerm
Comment=Standard terminal emulator
Comment[ru]=Стандартный эмулятор терминала для X
Exec=%{name} -name Terminal
Icon=%{name}-terminal
Terminal=false
Type=Application
StartupNotify=true
NotShowIn=KDE;
NoDisplay=true
Categories=TerminalEmulator;System;Utility;
EOF

# Fix icons
for xpm in xterm{-color_32x32,-color_48x48,_32x32,_48x48}.xpm; do
	rm -f %{buildroot}%{_datadir}/pixmaps/$xpm
done
mkdir -p %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32}/apps
install -m 644 %{SOURCE11} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}-terminal.png
install -m 644 %{SOURCE12} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}-terminal.png
install -m 644 %{SOURCE13} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}-terminal.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20417 |21mr|xtrap-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xtrap
Version:	1.0.3
Release:	1
Summary:	XTrap sample clients 
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires:	pkgconfig(x11) >= 1.0.0
BuildRequires:	pkgconfig(xtrap) >= 1.0.0
BuildRequires:	x11-util-macros >= 1.0.1

%description
These commands are SAMPLE CLIENTS provided with the XTrap X Server
Extension Sources, Version 3.3. XTrap is an X Server extension which
facilitates the capturing of server protocol and synthesizing core
input events.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/xtrapin
%{_bindir}/xtrapproto
%{_bindir}/xtrapreset
%{_bindir}/xtrapstats
%{_bindir}/xtrapchar
%{_bindir}/xtrapinfo
%{_bindir}/xtrapout
%{_mandir}/man1/xtrapstats.*
%{_mandir}/man1/xtrapproto.*
%{_mandir}/man1/xtrapreset.*
%{_mandir}/man1/xtrapout.*
%{_mandir}/man1/xtrapinfo.*
%{_mandir}/man1/xtrapin.*
%{_mandir}/man1/xtrapchar.*
%{_mandir}/man1/xtrap.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20418 |21mr|xvid-1.3.7-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define major 4
%define libname %mklibname xvidcore %{major}
%define devname %mklibname %{name} -d

Summary:	Video codec compatible with DivX 4
Name:		xvid
Version:	1.3.7
Release:	3
License:	GPLv2+
Group:		System/Libraries
Url:		http://www.xvid.com
Source0:	http://downloads.xvid.com/downloads/xvidcore-%{version}.tar.gz
BuildRequires:	yasm

%description
This is a video codec based on the original OpenDivX codec. It's
compatible with DivX and MPEG 4.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Video codec compatible with DivX 4
Group:		System/Libraries

%description -n %{libname}
This is a video codec based on the original OpenDivX codec. It's
compatible with DivX and MPEG 4.

%files -n %{libname}
%{_libdir}/libxvidcore.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Video codec compatible with DivX 4, development files
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	xvid4-devel = %{EVRD}

%description -n %{devname}
This is a video codec based on the original OpenDivX codec. It's
compatible with DivX and MPEG 4.

This package contains the header files and static libraries needed to
build programs with the xvid codec using it's native API.

%files -n %{devname}
%doc ChangeLog CodingStyle TODO AUTHORS
%{_libdir}/libxvidcore.so
%{_includedir}/xvid.h

#----------------------------------------------------------------------------

%prep
%setup -qn xvidcore

%build
cd build/generic
%configure
%make

%install
cd build/generic
%makeinstall

rm -f %{buildroot}%{_libdir}/libxvidcore.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20419 |21mr|xvidtune-1.0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xvidtune
Version:	1.0.3
Release:	7
Summary:	Video mode tuner for X.org
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: libxt-devel >= 1.0.0
BuildRequires: libxxf86vm-devel >= 1.0.0
BuildRequires: libxaw-devel >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
Xvidtune is a client interface to the X server video mode extension
(XFree86-VidModeExtension).

%prep
%setup -q -n %{name}-%{version}

%build
%configure
%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/xvidtune
%{_datadir}/X11/app-defaults/Xvidtune
%{_mandir}/man1/xvidtune.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20420 |21mr|xviewer-3.2.12-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Image viewer
Name:		xviewer
Version:	3.2.12
Release:	3
License:	GPLv2+
Group:		Graphics
Url:		https://github.com/linuxmint/xviewer
Source0:	https://github.com/linuxmint/xviewer/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
# https://github.com/linuxmint/xviewer/commit/00eb314e
Patch0:		00eb314e23f48e74582d70623777d6740d14fe0d.patch
BuildRequires:	desktop-file-utils
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	meson
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(atk)
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(dbus-glib-1)
BuildRequires:	pkgconfig(exempi-2.0)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gdk-pixbuf-2.0)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(cinnamon-desktop)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gsettings-desktop-schemas)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(gtk+-unix-print-3.0)
BuildRequires:	pkgconfig(lcms2)
BuildRequires:	pkgconfig(libexif)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	pkgconfig(libpeas-gtk-1.0)
BuildRequires:	pkgconfig(librsvg-2.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(shared-mime-info)
BuildRequires:	pkgconfig(xapp)
Requires:	cinnamon-desktop
Requires:	xapps-desktop-schemas
Requires:	xapps-icons
# calls xfce4-set-wallpaper on XFCE (which calls xfconf-query)
# Install only if XFCE is installed
Requires:	(xapps-xfce if %{_bindir}/xfconf-query)
Requires:	typelib(Peas) = 1.0
Requires:	typelib(PeasGtk) = 1.0

%description
This is Xviewer, a fast and functional image viewer.

%files -f %{name}.lang
%license COPYING
%doc AUTHORS README.md
%{_bindir}/%{name}
%{_libdir}/%{name}
%{_metainfodir}/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/help/*/%{name}
%{_datadir}/glib-2.0/schemas/*.xml
%{_iconsdir}/hicolor/*/apps
%{_datadir}/%{name}
%{_mandir}/man1/%{name}.1*

#----------------------------------------------------------------------------

%package devel
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
This package contains the development files to develop plugins
for %{name}.

%files devel
%{_includedir}/%{name}
%{_libdir}/pkgconfig/%{name}.pc
%{_datadir}/gtk-doc/html/xviewer

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%meson
%meson_build

%install
%meson_install

mkdir -p %{buildroot}%{_mandir}/man1
cp debian/%{name}.1 %{buildroot}%{_mandir}/man1/
rm -rf %{buildroot}%{_iconsdir}/hicolor/icon-theme.cache

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20421 |21mr|xvinfo-1.1.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: xvinfo
Version: 1.1.4
Release: 3
Summary: Print out X-Video extension adaptor information

Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xv) >= 1.0.1
BuildRequires: x11-util-macros >= 1.0.1

%description
Xvinfo prints out the capabilities of any video adaptors associated with the
display that are accesible through the X-Video extension.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%clean

%files
%{_bindir}/xvinfo
%{_mandir}/man1/xvinfo.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20422 |21mr|xwayland-23.2.7-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	X server that runs under Wayland
Name:		xwayland
Version:	23.2.7
Release:	1
# inherited Epoch from x11-server where xxway;and was built previously
Epoch:		1
License:	MIT
Group:		System/X11
Url:		http://www.x.org
Source0:	https://www.x.org/releases/individual/xserver/%{name}-%{version}.tar.xz
# Removes bulk warnings in the log
Patch0:		fix.Exec.patch
# CVE-2024-9632
Patch1:    0001-xkb-Fix-buffer-overflow-in-_XkbSetCompatMap.patch
BuildRequires:	meson
BuildRequires:	cmake
BuildRequires:	wayland-devel
BuildRequires:	pkgconfig(wayland-client)
BuildRequires:	pkgconfig(wayland-protocols)
BuildRequires:	pkgconfig(wayland-eglstream-protocols)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	pkgconfig(xtrans)
BuildRequires:	pkgconfig(libgcrypt)
BuildRequires:	pkgconfig(pixman-1)
BuildRequires:	pkgconfig(xshmfence)
BuildRequires:	pkgconfig(xkbfile)
BuildRequires:	pkgconfig(xkbcomp)
BuildRequires:	pkgconfig(xfont2)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	pkgconfig(libdrm)
BuildRequires:	pkgconfig(libxcvt)
BuildRequires:	pkgconfig(epoxy)
BuildRequires:	pkgconfig(dri)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(gbm)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(libmd)
Requires:	x11-server-common
Requires:	dri-drivers
Requires:	%{_lib}EGL1
# https://abf.io/import/x11-server/commit/7063109fe89e73c
Obsoletes:	x11-server-xwayland < 1:21.1.2
Conflicts:	x11-server-xwayland < 1:21.1.2
Provides:	x11-server-xwayland = %{EVRD}

%description
This package provides an X server running on top of wayland,
using wayland input devices for input and forwarding either
the root window or individual top-level windows as wayland
surfaces.

%package devel
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
Development files and headers for %{name}.

%prep
%autosetup -p1

%build
%meson \
	-Dglamor=true \
	-Ddri3=true \
	-Dxcsecurity=true \
	-Dxwayland_eglstream=true \
	-Dbuilder_addr="%{disturl}" \
	-Dbuilder_string="Build ID: %{name} %{version}-%{release}" \
	-Dvendor_name="%{vendor}" \
	-Dvendor_name_short="%{distsuffix}" \
	-Dvendor_web="%{bugurl}" \
	-Dxkb_dir="%{_datadir}/X11/xkb" \
	-Dxkb_output_dir="%{_localstatedir}/lib/xkb" \
	-Ddefault_font_path="catalogue:%{_sysconfdir}/X11/fontpath.d,built-ins"

%meson_build

%install
%meson_install

# (tpg) remove useless files
rm -rf %{buildroot}%{_mandir}/man1/Xserver.1*
rm -rf %{buildroot}%{_libdir}/xorg
rm -Rf %{buildroot}%{_includedir}/xorg
rm -Rf %{buildroot}%{_datadir}/aclocal
rm -Rf %{buildroot}%{_localstatedir}/lib/xkb

%files
%{_datadir}/applications/org.freedesktop.Xwayland.desktop
%{_bindir}/Xwayland
%{_mandir}/man1/Xwayland.1*

%files devel
%{_libdir}/pkgconfig/xwayland.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20423 |21mr|xwd-1.0.7-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xwd
Version:	1.0.7
Release:	2
Summary:	Dump an image of an X window

Group:		Development/X11
Source0:	http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xkbfile)
BuildRequires: pkgconfig(xmu) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
Xwd is an X Window System window dumping utility. Xwd allows X users to store
window images in a specially formatted dump file. This file can then be read by
various other X utilities for redisplay, printing, editing, formatting,
archiving, image processing, etc.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
%makeinstall_std

%files
%{_bindir}/xwd
%{_mandir}/man1/xwd.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20424 |21mr|xwininfo-1.1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_rebuild_configure %nil

Name: xwininfo
Version:	1.1.5
Release:	2
Summary: Window information utility for X

Group: Development/X11
Source: http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License: MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: pkgconfig(xext) >= 1.0.0
BuildRequires: pkgconfig(xmu) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
Xwininfo is a utility for displaying information about windows.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make_build

%install
%make_install

%clean

%files
%{_bindir}/xwininfo
%{_mandir}/man1/xwininfo.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20425 |21mr|xwud-1.0.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		xwud
Version:	1.0.5
Release:	1
Summary:	Image displayer for X
Group:		Development/X11
Source:		http://xorg.freedesktop.org/releases/individual/app/%{name}-%{version}.tar.bz2
License:	MIT

BuildRequires: pkgconfig(x11) >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1

%description
Xwud is an X Window System image undumping utility. Xwud allows X
users to display in a window an image saved in a specially formatted
dump file, such as produced by xwd.

%prep
%setup -q -n %{name}-%{version}

%build
%configure	--x-includes=%{_includedir}\
		--x-libraries=%{_libdir}

%make

%install
rm -rf %{buildroot}
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/xwud
%{_mandir}/man1/xwud.*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20426 |21mr|xxhash-0.8.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname	%mklibname %name %{major}
%define devname	%mklibname -d %name


Name:		xxhash
Version:	0.8.0
Release:	2
Summary:	Extremely fast hash algorithm
Group:		System/Libraries

#		The source for the library (xxhash.c and xxhash.h) is BSD
#		The source for the command line tool (xxhsum.c) is GPLv2+
License:	BSD and GPLv2+
URL:		http://www.xxhash.com/
Source0:	https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz

%description
xxHash is an Extremely fast Hash algorithm, running at RAM speed
limits. It successfully completes the SMHasher test suite which
evaluates collision, dispersion and randomness qualities of hash
functions. Code is highly portable, and hashes are identical on all
platforms (little / big endian).

%package -n	%{libname}
Summary:	Extremely fast hash algorithm - library
License:	BSD


%description -n %{libname}
xxHash is an Extremely fast Hash algorithm, running at RAM speed
limits. It successfully completes the SMHasher test suite which
evaluates collision, dispersion and randomness qualities of hash
functions. Code is highly portable, and hashes are identical on all
platforms (little / big endian).

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the xxhash library

%prep
%setup -q -n xxHash-%{version}

%build
%setup_compile_flags
%make_build CFLAGS="%{optflags} -fPIC -O3" FLAGS="%{ldflags} -fPIC"

%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir}
rm %{buildroot}/%{_libdir}/libxxhash.a

%check
make check
make test-xxhsum-c

%files
%{_bindir}/xxh*sum
%{_mandir}/man1/xxh*sum.1*

%files -n %{libname}
%{_libdir}/libxxhash.so.*

%files -n %{devname}
%license LICENSE
%doc README.md
%{_includedir}/xxhash.h
%{_includedir}/xxh3.h
%{_libdir}/libxxhash.so
%{_libdir}/pkgconfig/libxxhash.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20427 |21mr|xxhash-0.8.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname	%mklibname %name %{major}
%define devname	%mklibname -d %name


Name:		xxhash
Version:	0.8.1
Release:	1
Summary:	Extremely fast hash algorithm
Group:		System/Libraries

#		The source for the library (xxhash.c and xxhash.h) is BSD
#		The source for the command line tool (xxhsum.c) is GPLv2+
License:	BSD and GPLv2+
URL:		http://www.xxhash.com/
Source0:	https://github.com/Cyan4973/xxHash/archive/v%{version}/%{name}-%{version}.tar.gz

%description
xxHash is an Extremely fast Hash algorithm, running at RAM speed
limits. It successfully completes the SMHasher test suite which
evaluates collision, dispersion and randomness qualities of hash
functions. Code is highly portable, and hashes are identical on all
platforms (little / big endian).

%package -n	%{libname}
Summary:	Extremely fast hash algorithm - library
License:	BSD


%description -n %{libname}
xxHash is an Extremely fast Hash algorithm, running at RAM speed
limits. It successfully completes the SMHasher test suite which
evaluates collision, dispersion and randomness qualities of hash
functions. Code is highly portable, and hashes are identical on all
platforms (little / big endian).

%package -n	%{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for the xxhash library

%prep
%setup -q -n xxHash-%{version}

%build
%setup_compile_flags
%make_build CFLAGS="%{optflags} -fPIC -O3" FLAGS="%{ldflags} -fPIC"

%install
make install DESTDIR=%{buildroot} PREFIX=%{_prefix} LIBDIR=%{_libdir}
rm %{buildroot}/%{_libdir}/libxxhash.a

%check
make check
make test-xxhsum-c

%files
%{_bindir}/xxh*sum
%{_mandir}/man1/xxh*sum.1*

%files -n %{libname}
%{_libdir}/libxxhash.so.*

%files -n %{devname}
%license LICENSE
%doc README.md
%{_includedir}/xxhash.h
%{_includedir}/xxh3.h
%{_libdir}/libxxhash.so
%{_libdir}/pkgconfig/libxxhash.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20428 |21mr|xz-5.2.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 5
%define lname lzma
%define libname %mklibname %{lname} %{major}
%define devname %mklibname %{lname} -d

%define gitdate 0

Summary:	XZ utils
Name:		xz
Version:	5.2.9
Release:	1
License:	Public Domain
Group:		Archiving/Compression
Url:		https://tukaani.org/xz/
Source0:	https://tukaani.org/xz/%{name}-%{version}.tar.xz
Source1:		xzme
Patch0:		xz-5.2.0-text-tune.patch
Patch1:		xz-5.2.9-man-page-day.patch
# clearlinux
Patch2:		speedup.patch
Patch3:		default-threading.patch
Patch4:		io-size.patch
# Needed by check suite
BuildRequires:	diffutils
%rename	lzma
%rename	lzma-utils

%description
XZ provides very high compression ratio and fast decompression. The core of
the XZ utils is Igor Pavlov's LZMA SDK containing the actual LZMA
encoder/decoder. LZMA utils add a few scripts which provide gzip-like
command line interface and a couple of other XZ related tools. It also
provides:
- Average compression ratio 30% better than that of gzip and 15% better than
   that of bzip2.
- Decompression speed is only little slower than that of gzip, being two to
   five times faster than bzip2.
- In fast mode, compresses faster than bzip2 with a comparable compression
   ratio.
- Achieving the best compression ratios takes four to even twelve times longer
  than with bzip2. However. this doesn't affect decompressing speed.
- Very similar command line interface than what gzip and bzip2 have.

%files -f %{name}.lang
%doc %{_docdir}/%{name}
%{_bindir}/*
%{_mandir}/man1/*
%{_mandir}/*/man1

#----------------------------------------------------------------------------

%package -n	%{libname}
Summary:	Libraries for decoding XZ/LZMA compression
Group:		System/Libraries
# Compat with Fedora/RH
Provides:		xz-libs = %{EVRD}

%description -n	%{libname}
Libraries for decoding XZ/LZMA compression.

%files -n %{libname}
%doc COPYING
/%{_lib}/liblzma.so.%{major}*

#----------------------------------------------------------------------------

%package -n	%{devname}
Summary:	Devel libraries & headers for liblzma
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:		%{lname}-devel = %{EVRD}
Provides:		lib%{lname}-devel = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
Devel libraries & headers for liblzma.

%files -n %{devname}
%doc COPYING
%{_includedir}/%{lname}.h
%dir %{_includedir}/%{lname}
%{_includedir}/%{lname}/*.h
%{_libdir}/*.so
%{_libdir}/*.a
%{_libdir}/pkgconfig/lib%{lname}.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Patch3 turns on multithreading by default, but there are memory limits on 32 bit
# and xz(1) and liblzma do not control it by themselves
# https://bugzilla.redhat.com/show_bug.cgi?id=1196786
# https://github.com/rpm-software-management/rpm/commit/a60f36a55cff3331e8bef3a1ab95c87d313911bb
# It makes xz fail in various places, e.g. when building the Linux kernel
%if "%{__isa_bits}" != "64"
%patch3 -p1 -R
%endif

%build
%config_update
export CONFIGURE_TOP=`pwd`
mkdir objs
pushd objs
	CFLAGS="%{optflags} -O3 -funroll-loops" \
	%configure --enable-static
	%make
popd


%install
%makeinstall_std -C objs

install -d %{buildroot}/%{_lib}
mv %{buildroot}%{_libdir}/*.so.* %{buildroot}/%{_lib}/
rm -f %{buildroot}%{_libdir}/liblzma.so
ln -sr %{buildroot}/%{_lib}/liblzma.so.%{major} %{buildroot}%{_libdir}/liblzma.so

install -m755 %{SOURCE1} -D %{buildroot}%{_bindir}/xzme

%find_lang %{name}


%check
make check -C objs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20429 |21mr|xz-java-1.8-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           xz-java
Version:        1.8
Release:        5
Summary:        Java implementation of XZ data compression
License:        Public Domain
URL:            http://tukaani.org/xz/java.html
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        http://tukaani.org/xz/xz-java-%{version}.zip

BuildRequires:  javapackages-local
BuildRequires:  ant

%description
A complete implementation of XZ data compression in Java.

It features full support for the .xz file format specification version 1.0.4,
single-threaded streamed compression and decompression, single-threaded
decompression with limited random access support, raw streams (no .xz headers)
for advanced users, including LZMA2 with preset dictionary.

%package javadoc
Summary:        Javadocs for %{name}

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -q -c %{name}-%{version}

%mvn_file : %{name} xz

%build
# During documentation generation the upstream build.xml tries to download
# package-list from oracle.com. Create a dummy package-list to prevent that.
mkdir -p extdoc && touch extdoc/package-list

ant maven

%install
%mvn_artifact build/maven/xz-%{version}.pom build/jar/xz.jar

%mvn_install -J build/doc

%files -f .mfiles
%doc README THANKS
%license COPYING

%files javadoc -f .mfiles-javadoc
%license COPYING


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20430 |21mr|yajl-2.1.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 2
%define libname %mklibname %{name} %{major}
%define devname %mklibname -d %{name}

Name:		yajl
Version:	2.1.0
Release:	2
Summary:	Yet Another JSON Library
License:	ISC License
Group:		System/Libraries
Url:		http://lloyd.github.com/yajl/
Source0:	https://github.com/lloyd/yajl/archive/%{version}.tar.gz
Patch0:		CVE-2023-33460.patch
BuildRequires:	doxygen
BuildRequires:	cmake
Requires:	%{libname} = %{EVRD}

%description
Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser
written in ANSI C, and a small validating JSON generator. YAJL is released
under the ISC license.

%package -n %{libname}
Summary:	%{summary}
Provides:	lib%{name}

%description -n %{libname}
Yet Another JSON Library. YAJL is a small event-driven (SAX-style) JSON parser
written in ANSI C, and a small validating JSON generator. YAJL is released
under the ISC license.

%package -n %{devname}
Summary:	Development files for using %{name}
Group:		Development/C
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
Development files for using %{name}

%prep
%autosetup -p1

%build
%cmake
%make_build

%install
%__rm -rf %{buildroot}
%make_install -C build

%__rm -f %{buildroot}%{_libdir}/*.a

%files
%{_bindir}/json_reformat
%{_bindir}/json_verify

%files -n %{libname}
%{_libdir}/libyajl.so.*

%files -n %{devname}
%{_libdir}/libyajl.so
%{_includedir}/yajl
%{_datadir}/pkgconfig/yajl.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20431 |21mr|yaml-0.2.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 0
%define major 2
%define libname %mklibname %{name} %{api} %{major}
%define develname %mklibname %{name} -d

Summary:	YAML 1.1 parser and emitter written in C
Name:		yaml
Version:	0.2.5
Release:	2
License:	MIT
Group:		System/Libraries
URL:		http://pyyaml.org/wiki/LibYAML
Source0:	https://github.com/yaml/libyaml/archive/%{version}.tar.gz
BuildRequires:	doxygen

%description
LibYAML is a YAML 1.1 parser and emitter written in C.

%package -n	%{libname}
Summary:	YAML 1.1 parser and emitter written in C
Group:		System/Libraries

%description -n	%{libname}
This package contains the shared libraries for %{name}

%package -n	%develname
Summary:	Development library and header files for the %{name} library
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n	%{develname}
This package contains the devel %{libname} library and its header
files.

%prep
%setup -qn lib%{name}-%{version}

%build
libtoolize --copy --force
autoreconf -fiv
%configure --disable-static
%make_build

%install
%make_install

%files -n %{libname}
%{_libdir}/lib*.so.%{major}*

%files -n %{develname}
%{_includedir}/*.h
%{_libdir}/lib*.so
%{_libdir}/pkgconfig/yaml-0.1.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20432 |21mr|yaml-cpp-0.3-0.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Name:		yaml-cpp-0.3
Version:	0.3.0
Release:	6
Summary:	A YAML parser and emitter for C++
Group:		Development/C++
License:	MIT
URL:		http://code.google.com/p/yaml-cpp/
Source0:	http://yaml-cpp.googlecode.com/files/yaml-cpp-%{version}.tar.gz
BuildRequires:	cmake

%description
yaml-cpp is a YAML parser and emitter in C++ written around the YAML 1.2 spec.

%package	-n %{libname}
Summary:	A YAML parser and emitter for C++
Group:		System/Libraries
License:	MIT
Obsoletes:	%{name} < 0.3.0

%description	-n %{libname}
yaml-cpp is a YAML parser and emitter in C++ written around the YAML 1.2 spec.

%package	-n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
License:	MIT
Obsoletes:	%{name}-devel < 0.3.0
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{libname} = %{version}-%{release}

%description	-n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%prep
%setup -q -n yaml-cpp
# Fix eol
sed -i 's/\r//' license.txt

%build
# ask cmake to not strip binaries
%cmake -DYAML_CPP_BUILD_TOOLS=0
%make VERBOSE=1

%install
%makeinstall_std -C build

%files -n %{libname}
%{_libdir}/*.so.%{major}*

%files -n %{devname}
%{_includedir}/yaml-cpp/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20433 |21mr|yaml-cpp-0.6.3-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0.6
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	A YAML parser and emitter for C++
Name:		yaml-cpp
Version:	0.6.3
Release:	2
License:	MIT
Group:		Development/C++
URL:		https://github.com/jbeder/yaml-cpp
Source0:	https://github.com/jbeder/yaml-cpp/archive/%{name}-%{version}.tar.gz
BuildRequires:	cmake ninja

%description
yaml-cpp is a YAML parser and emitter in C++ written around the YAML 1.2 spec.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	A YAML parser and emitter for C++
Group:		System/Libraries
Obsoletes:	%{name} < %{version}

%description -n %{libname}
yaml-cpp is a YAML parser and emitter in C++ written around the YAML 1.2 spec.

%files -n %{libname}
%{_libdir}/*.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Requires:	boost-devel
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{name}-devel < 0.5

%description -n %{devname}
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.

%files -n %{devname}
%{_includedir}/yaml-cpp/
%{_libdir}/*.so
%{_libdir}/pkgconfig/*.pc
%{_libdir}/cmake/yaml-cpp

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{name}-%{version}

%build
%cmake \
	-DYAML_CPP_BUILD_TESTS=OFF \
	-DYAML_CPP_BUILD_TOOLS=OFF \
	-DYAML_BUILD_SHARED_LIBS=ON \
	-DBUILD_GMOCK:BOOL=OFF \
	-DBUILD_GTEST:BOOL=OFF \
	-G Ninja

%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20434 |21mr|yarn-1.22.19-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define nodejs_libdir %{_prefix}/lib/node_modules/npm/node_modules

Summary:	Fast, reliable, and secure node dependency management
Name:		yarn
Version:	1.22.19
Release:	1
License:	BSD
Group:		Development/Tools
Url:		https://yarnpkg.com
Source0:	https://github.com/yarnpkg/yarn/releases/download/v%{version}/%{name}-v%{version}.tar.gz
Requires:	gcc-c++
Requires:	nodejs
BuildArch:	noarch

%description
Fast, reliable, and secure dependency management. Yarn: Fast,
reliable, and secure dependency management.

Fast: Yarn caches every package it downloads so it never needs to
again. It also parallelizes operations to maximize resource
utilization so install times are faster than ever.

Reliable: Using a detailed, but concise, lockfile format, and a
deterministic algorithm for installs, Yarn is able to guarantee that
an install that worked on one system will work exactly the same way on
any other system.

Secure: Yarn uses checksums to verify the integrity of every installed
package before its code is executed.

%files
%doc LICENSE
%{_bindir}/yarn
%{_bindir}/yarnpkg
%{nodejs_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-v%{version}

rm bin/*.cmd
rm bin/yarn
rm bin/yarnpkg

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{nodejs_libdir}/%{name}

cp -a lib bin package.json %{buildroot}%{nodejs_libdir}/%{name}/
chmod 755 %{buildroot}%{nodejs_libdir}/%{name}/bin/%{name}.js
ln -s %{nodejs_libdir}/%{name}/bin/%{name}.js %{buildroot}%{_bindir}/%{name}
ln -s %{name} %{buildroot}%{_bindir}/yarnpkg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20435 |21mr|yasm-1.3.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Modular Assembler
Name:		yasm
Version:	1.3.0
Release:	6
License:	BSD
Group:		Development/Tools
Url:		http://www.tortall.net/projects/yasm/
Source0:	http://www.tortall.net/projects/yasm/releases/%{name}-%{version}.tar.gz
Patch0:		0001-Update-elf-objfmt.c.patch
Patch1:		yasm-autoconf-2.71.patch 
BuildRequires:	python2-cython
BuildRequires:	bison
BuildRequires:	xmlto
BuildRequires:	pkgconfig(python2)

%description
Yasm is a complete rewrite of the NASM assembler under the "new" BSD
License (some portions are under other licenses, see COPYING for
details). It is designed from the ground up to allow for multiple
assembler syntaxes to be supported (eg, NASM, TASM, GAS, etc.) in
addition to multiple output object formats and even multiple
instruction sets. Another primary module of the overall design is an
optimizer module.

%files
%doc AUTHORS
%{_bindir}/*
%{_mandir}/man1/yasm.1*
%{_mandir}/man7/yasm_arch.7*
%{_mandir}/man7/yasm_dbgfmts.7.*
%{_mandir}/man7/yasm_objfmts.7.*
%{_mandir}/man7/yasm_parsers.7.*

#----------------------------------------------------------------------------

%package devel
Summary:	Development headers and files for %{name}
Group:		Development/C
Requires:	%{name} = %{EVRD}

%description devel
Development headers and files for %{name}.

%files devel
%{_libdir}/lib*.a
%{_includedir}/libyasm
%{_includedir}/libyasm.h
%{_includedir}/libyasm-stdint.h

#----------------------------------------------------------------------------

%package python2
Summary:	Python bindings for %{name}
Group:		Development/Python
Requires:	%{name} = %{EVRD}

%description python2
Python bindings for %{name}.

%files python2
%{py2_puresitedir}/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
export PYTHON=%{__python2}
%configure \
	--disable-rpath \
	--enable-python \
	--enable-python-bindings

%make

%install
%makeinstall_std

rm -f %{buildroot}%{_libdir}/yasm/*.a

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20436 |21mr|ydiff-1.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		ydiff
Version:	1.3
Release:	1
Summary:	View colored, incremental diff
Group:		Text tools
URL:		https://github.com/ymattw/ydiff
License:	BSD
Source0:	https://github.com/ymattw/ydiff/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires:	python3-devel
BuildRequires:	python3-setuptools
BuildArch:	noarch

Requires:	less
Requires:	python3-%{name}

%description
Term based tool to view colored, incremental diff in a Git/Mercurial/Svn
workspace or from stdin, with side by side (similar to diff -y) and auto
pager support.

%files
%doc README.rst
%license LICENSE
%{_bindir}/ydiff

#----------------------------------------------------
%package -n python3-%{name}
Summary:	%{summary}
Group:		Development/Python

%description -n python3-%{name}
Python library that implements API used by ydiff tool.

%files -n python3-%{name}
%{python3_sitelib}/__pycache__/*
%{python3_sitelib}/%{name}.py
%{python3_sitelib}/%{name}-%{version}-py%{python3_version}.egg-info

#----------------------------------------------------
%prep
%autosetup -n %{name}-%{version}

/usr/bin/sed -i '/#!\/usr\/bin\/env python/d' ydiff.py

%build
%py3_build

%install
%py3_install


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20437 |21mr|yecht-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global commitversion 157cf13
%global dlversion 0.0.2-0-g157cf13
%global cluster jruby

Name:     yecht
Version:  1.0
Release:  10
Summary:  A YAML processor based on Syck
Group:    Development/Java
License:  MIT
URL:      http://github.com/%{cluster}/%{name}
Source0:  https://github.com/%{cluster}/%{name}/archive/%{name}-%{version}.zip
Patch0:   disable-jruby-dep.patch

BuildRequires: java-devel
BuildRequires: jpackage-utils
BuildRequires: maven-local
BuildRequires: mvn(org.sonatype.oss:oss-parent:pom:)
Requires: java-headless
Requires: jpackage-utils

BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Yecht is a Syck port, a YAML 1.0 processor for Ruby.

%package javadoc
Summary:        Javadocs for %{name}
Requires:       jpackage-utils

%description javadoc
This package contains the API documentation for %{name}.

%prep
%setup -n %{name}-%{name}-%{version}
%patch0

find ./ -name '*.jar' -exec rm -f '{}' \; 
find ./ -name '*.class' -exec rm -f '{}' \; 

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles

%files javadoc -f .mfiles-javadoc


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20438 |21mr|yelp-42.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME 3 help browser
Name:		yelp
Version:	42.1
Release:	2
License:	GPLv2+
Group:		Graphical desktop/GNOME
Url:		https://download.gnome.org/sources/yelp
Source0:	https://download.gnome.org/sources/yelp/%{url_ver}/%{name}-%{version}.tar.xz
Source1:	yelp.png
# https://bugzilla.gnome.org/show_bug.cgi?id=687960
Patch1:		0001-Center-new-windows.patch
BuildRequires:	appstream-util
BuildRequires:	desktop-file-utils
BuildRequires:	gnome-common
BuildRequires:	gtk-doc
BuildRequires:	gtk-doc-mkpdf
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	bzip2-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(appstream-glib)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gio-unix-2.0)
BuildRequires:	pkgconfig(gnome-doc-utils)
BuildRequires:	pkgconfig(gtk4)
BuildRequires:	pkgconfig(gtk+-unix-print-3.0)
BuildRequires:	pkgconfig(libexslt)
BuildRequires:	pkgconfig(libhandy-1)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(libxslt)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(webkit2gtk-4.0)
BuildRequires:	pkgconfig(yelp-xsl)
Requires:	gnome-doc-utils
Requires:	man
Requires:	yelp-xsl

%description
Help browser for GNOME 3 which supports docbook documents, info and man.

%files -f %{name}.lang
%doc README TODO AUTHORS NEWS
%{_appdatadir}/yelp.appdata.xml
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/glib-2.0/schemas/org.gnome.yelp.gschema.xml
%{_datadir}/icons/hicolor/*/*
%{_datadir}/%{name}
%{_datadir}/pixmaps/gnome-help.png
%{_datadir}/yelp-xsl/xslt/common/domains/yelp.xml
%dir %{_datadir}/gnome/help
%{_libdir}/yelp/web-extensions/libyelpwebextension.so

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Libraries for %{name}
Group:		System/Libraries
Requires:	%{name} >= %{EVRD}

%description -n %{libname}
This package contains libraries used by the yelp help browser.

%files -n %{libname}
%{_libdir}/lib%{name}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/GNOME and GTK+
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This package contains header files and documentation for the libraries
in the yelp-libs package.

%files -n %{devname}
%{_includedir}/lib%{name}
%{_libdir}/lib%{name}.so

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%configure \
	--disable-rpath			\
	--disable-schemas-compile	\
	--disable-static		\
	--enable-debug			\
	--enable-gtk-doc		\
	--enable-gtk-doc-pdf		\
	--with-webkit2gtk-4-0
%make

%install
%makeinstall_std

desktop-file-install \
	--remove-category="Application"			\
	--add-only-show-in="GNOME"			\
	--add-category="Documentation"			\
	--dir %{buildroot}%{_datadir}/applications	\
	%{buildroot}%{_datadir}/applications/*

install -Dpm644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/gnome-help.png

mkdir -p -m 755 %{buildroot}%{_datadir}/gnome/help

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20439 |21mr|yelp-tools-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	Create, manage, and publish documentation for Yelp
Name:		yelp-tools
Version:	42.0
Release:	2
License:	GPLv2+
Group:		System/Internationalization
Url:		https://download.gnome.org/sources/yelp-tools
Source0:	https://download.gnome.org/sources/yelp-tools/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	meson
BuildRequires:	xsltproc
BuildRequires:	python3dist(lxml)
BuildRequires:	pkgconfig(yelp-xsl)
Requires:	libxml2-utils
Requires:	yelp-xsl
BuildArch:	noarch

%description
yelp-tools is a collection of scripts and build utilities to help create,
manage, and publish documentation for Yelp and the web. Most of the heavy
lifting is done by packages like yelp-xsl and itstool. This package just
wraps things up in a developer-friendly way.

%files
%doc AUTHORS README
%{_bindir}/yelp-build
%{_bindir}/yelp-check
%{_bindir}/yelp-new
%{_datadir}/aclocal/yelp.m4
%{_datadir}/help/C/%{name}/*.page
%{_datadir}/yelp-tools

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson -Dhelp=true
%meson_build

%install
%meson_install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20440 |21mr|yelp-xsl-42.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1)

Summary:	GNOME XML documentation utilities
Name:		yelp-xsl
Version:	42.0
Release:	2
License:	LGPLv2+ and GPLv2+
Group:		Publishing
Url:		https://download.gnome.org/sources/yelp-xsl
Source0:	https://download.gnome.org/sources/yelp-xsl/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxslt-proc
BuildRequires:	pkgconfig(libxslt)
BuildArch:	noarch

%description
yelp-xsl is a collection of documentation utilities for the Gnome
project. Notably, it contains utilities for building documentation and
all auxiliary files in your source tree, and it contains the DocBook
XSLT stylesheets that were once distributed with Yelp.

%files
%doc AUTHORS README
%{_datadir}/%{name}
%{_datadir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20441 |21mr|ykclient-2.15-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 3
%define libname %mklibname ykclient %{major}
%define devname %mklibname ykclient -d

Summary:	Implements online validation of Yubikey OTPs
Name:		ykclient
Version:	2.15
Release:	2
License:	BSD
Group:		System/Libraries
Url:		https://github.com/Yubico/yubico-c-client
Source0:	https://github.com/Yubico/yubico-c-client/archive/%{name}-%{version}.tar.gz
BuildRequires:	chrpath
BuildRequires:	help2man
BuildRequires:	libtool
BuildRequires:	pkgconfig(libcurl)
Conflicts:	%{_lib}ykclient3 < 2.12-10

%description
This is a library written in C to validate a Yubikey OTP against the Yubico
online server.

%files
%doc AUTHORS NEWS README
%{_bindir}/ykclient
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Implements online validation of Yubikey OTPs
Group:		System/Libraries

%description -n %{libname}
This is a library written in C to validate a Yubikey OTP against the Yubico
online server.

%files -n %{libname}
%{_libdir}/libykclient.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Static library and header files for the libykclientt library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
This is a library written in C to validate a Yubikey OTP against the Yubico
online server.

This package contains the static libyubikey-client library and its
header files.

%files -n %{devname}
%{_includedir}/*
%{_libdir}/libykclient.so

#----------------------------------------------------------------------------

%prep
%setup -qn yubico-c-client-%{name}-%{version}

%build
autoreconf -fi
%configure \
	--disable-static

%make

%install
%makeinstall_std

# nuke rpath
chrpath -d %{buildroot}%{_bindir}/ykclient

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20442 |21mr|ykpers-1.20.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define libname %mklibname ykpers1_ 1
%define devname %mklibname ykpers1 -d

Name:           ykpers
Version:        1.20.0
Release:        3
Summary:        Yubikey personalization program
License:        BSD
Group:			System/Base
Url:            http://opensource.yubico.com/yubikey-personalization/
Source0:        https://github.com/Yubico/yubikey-personalization/archive/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# From Fedora
Patch0:         ykpers-args-extern.patch
# https://github.com/Yubico/yubikey-personalization/commit/0aa2e2cae
Patch1:         0aa2e2cae2e1777863993a10c809bb50f4cde7f8.patch
BuildRequires: pkgconfig(libusb-1.0)
BuildRequires: libyubikey-devel
BuildRequires: systemd-units
BuildRequires: gcc
BuildRequires: %{_bindir}/a2x
BuildRequires: %{_bindir}/xsltproc
Provides: yubikey-personalization = %{EVRD}

%description
Yubico's YubiKey can be re-programmed with a new AES key.
These tools make this an easy task.

%files
%license COPYING
%doc AUTHORS README NEWS
%doc doc/Compatibility.asciidoc
%doc doc/USB-Hid-Issue.asciidoc
%{_bindir}/ykinfo
%{_bindir}/ykpersonalize
%{_bindir}/ykchalresp
%{_mandir}/man1/ykpersonalize.1*
%{_mandir}/man1/ykchalresp.1*
%{_mandir}/man1/ykinfo.1*
%{_udevrulesdir}/69-yubikey.rules

#-----------------------------------------------------------------------

%package -n %{libname}
Summary:		library for %{summary}
Group:			System/Libraries
# Was named incorrectly for a few days
%if %{mdvver} == 201910
Obsoletes:		%{mklibname ykpers_1 1} < 1.20.0-3
Conflicts:		%{mklibname ykpers_1 1} < 1.20.0-3
%endif

%description -n %{libname}
library for %{summary}

%files -n %{libname}
%license COPYING
%doc AUTHORS README NEWS
%doc doc/Compatibility.asciidoc
%doc doc/USB-Hid-Issue.asciidoc
%{_libdir}/libykpers-1.so.1
%{_libdir}/libykpers-1.so.%{version}

#-----------------------------------------------------------------------

%package -n %{devname}
Summary:		Development files for %{summary}
Group:			Development/C
Requires:		%{libname}%{?_isa} = %{EVRD}
Provides:		%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for %{summary}.
This package contains the header file needed to develop applications that
use ykpers.

%files -n %{devname}
%license COPYING
%doc AUTHORS README NEWS
%doc doc/Compatibility.asciidoc
%doc doc/USB-Hid-Issue.asciidoc
%{_libdir}/pkgconfig/ykpers-1.pc
%{_libdir}/libykpers-1.so
%{_includedir}/ykpers-1

#-----------------------------------------------------------------------

%prep
%autosetup -p1 -n yubikey-personalization-%{version}

%build
%configure \
	--enable-static=no \
	--disable-rpath \
    --with-udevrulesdir=%{_udevrulesdir} \
    --with-backend=libusb-1.0

# (From Fedora) --disable-rpath doesn't work for the configure script
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20443 |21mr|ytalk-3.3.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A chat program
Name:		ytalk
Version: 	3.3.0
Release: 	15
License:	BSD
Group:		Networking/Chat
URL:		https://ytalk.ourproject.org/
Source0:	ftp://ftp.ourproject.org/pub/ytalk/ytalk-%{version}.tar.gz
Source1:	ytalkrc
BuildRequires:	ncurses-devel

%description
The YTalk program is essentially a chat program for multiple users. YTalk works
just like the UNIX talk program and even communicates with the same talk
daemon(s), but YTalk allows for multiple connections (unlike UNIX talk). YTalk
also supports redirection of program output to other users as well as an
easy-to-use menu of commands.

Install the ytalk package if you need a chat program for multiple users.

%prep
%setup -q

%build
%configure
%make 

%install
%makeinstall_std

%files
%defattr(-,root,root)
%doc README ChangeLog
%config(noreplace) %{_sysconfdir}/%{name}rc
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20444 |21mr|yt-dlp-2024.08.06-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# gi-find-deps.sh is very slow but is not needed here, it may be installed locally
%define __typelib_path %{nil}

Summary:	Small command-line program to download videos and audio from different websites
Name:		yt-dlp
Version:	2024.08.06
Release:	1
License:	Public Domain and GPLv2+
Group:		Video
Url:		https://github.com/yt-dlp/yt-dlp
# pure source from Github requires at least pandoc which is not packaged
Source0:	https://github.com/yt-dlp/yt-dlp/releases/download/%{version}/yt-dlp.tar.gz?/yt-dlp-%{version}.tar.gz
# for rosa2021.1
Patch0001:	0001-Decrease-versions.patch

BuildRequires:	ffmpeg
BuildRequires:	gnupg2
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3egg(hatchling)
BuildRequires:	python3egg(pip)
BuildRequires:	python3egg(setuptools)
BuildRequires:	pyproject-rpm-macros
BuildRequires:	zip

Requires:	python3-%{name} = %{EVRD}

Recommends:	ffmpeg

# youtube-dl is not developed anymore, it is a fork of it
Obsoletes:	youtube-dl < 2021.10.10

Provides:	youtube-dl = %{EVRD}

BuildArch:	noarch

%description
Small command-line program to download videos and audio from different websites.
Fork of youtube-dl.

%files
%license LICENSE
%doc README.*
%{_bindir}/%{name}
%{_bindir}/youtube-dl
%{_datadir}/zsh/site-functions/_%{name}
%{_mandir}/man1/%{name}.1*
%{_datadir}/bash-completion/completions/%{name}
%{_datadir}/fish/vendor_completions.d/%{name}.fish

#-----------------------------------------------------------------------------

%package -n python3-%{name}
Summary:	Python 3 bindings for %{name}
Group:		Development/Python
Obsoletes:	python3-yt-dlp < 2024.03.10
BuildArch:	noarch

%description -n python3-%{name}
This package contains the Python 3 bindings for %{name} (fork of youtube-dl)

%files -n python3-%{name}
%license LICENSE
%doc README.*
%{python3_sitelib}/yt_dlp
%{python3_sitelib}/yt_dlp-*.dist-info

#-----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}

# for autoinstall BuildRequires
#%%generate_buildrequires
#%%pyproject_buildrequires -r

%build
# include completions
make completion-bash completion-zsh completion-fish
%pyproject_wheel

%install
%pyproject_install

# force the binary to use python 3 environment by default
sed -i -e 's,#!/usr/bin/env python,#!%{__python3},' %{buildroot}%{_bindir}/%{name}

# installed as %%doc into standard location
rm -fvr %{buildroot}%{_datadir}/doc

# compat symlink (e.g. mpv can use youtube-dl, but it is not developed anymore)
( cd %{buildroot}%{_bindir} && ln -s %{name} youtube-dl )

# fix permits
pushd  %{buildroot}%{_bindir}
    chmod a+rx yt-dlp youtube-dl
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20445 |21mr|zabbix5.0-5.0.40-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO, maybe sometime:
# * Allow for nginx?
# * Consider using systemd's ReadWriteDirectories

#TODO: systemctl reload seems to be necessary after switching with Alternatives
#TODO: If the DB path for a Sqlite proxy is configured wrong, it requires systemctl restart. Start doesn't work.

%define srcname zabbix
# clients and servers of different major versions may be incompatible or not fully compatible with each other,
# so we package different major versions separately, keeping in mind that ROSA may be a client or a server
# working with clients or servers on not ROSA where zabbix is of a different major version
%define major 5.0
%bcond_without selinux

# Web interface may be not usable to e.g. old php
%if %{mdvver} >= 202110
%bcond_without web
%else
# php is old (5.x)
%bcond_with web
%endif

# agent2 is written in golang
%bcond_without agent2

%if %{mdvver} >= 202110
%define major_metadata() %{expand:\
Provides: zabbix%{?1:-%{1}} = %{EVRD} \
Obsoletes: zabbix%{?1:-%{1}} < 1:5.0.14-3 \
Conflicts: zabbix%{?1:-%{1}} < 1:5.0.14-3 \
}
%else
%define major_metadata() %{nil}
%endif

# autoreconf is enough
%define _disable_rebuild_configure 1

# I'm fed up with rediffing patches
%define _default_patch_fuzz 2

Name:		zabbix%{major}
Version:	5.0.40
Release:	1
Epoch:		2
Summary:	Open-source monitoring solution for your IT infrastructure
Group:		Monitoring
License:	GPLv2+
URL:		https://www.zabbix.com
Source0:	https://cdn.zabbix.com/zabbix/sources/stable/%{major}/zabbix-%{version}.tar.gz
Source1:	%{srcname}-web.conf
Source2:	zabbix.sysusers.conf
Source3:	zabbixsrv.sysusers.conf
Source5:	%{srcname}-logrotate.in
Source9:	%{srcname}-tmpfiles-zabbix.conf
# systemd units -- Alternatives switches between them (they state their dependencies)
# https://support.zabbix.com/browse/ZBXNEXT-1593
Source10:	%{srcname}-agent.service
Source11:	%{srcname}-proxy-mysql.service
Source12:	%{srcname}-proxy-pgsql.service
Source13:	%{srcname}-proxy-sqlite3.service
Source14:	%{srcname}-server-mysql.service
Source15:	%{srcname}-server-pgsql.service
Source17:	%{srcname}-tmpfiles-zabbixsrv.conf
Source18:	%{srcname}.te
Source19:	%{srcname}.if
Source20:	%{srcname}.fc
Source21:	%{srcname}-agent2.service
# Bundle go modules manually (./upd.sh does it himself):
# abf fetch
# tar -xvf zabbix-*.tar.gz
# cd zabbix-5.0.19/src/go
# go mod vendor
# cd -
# XZ_OPT="-T0 -v" tar cJf zabbix-%%{version}-go-mod-vendor.tar.xz zabbix-%%{version}/src/go/vendor
Source22:	%{srcname}-%{version}-go-mod-vendor.tar.xz
Patch0:		config.patch
Patch1:		0001-Enable-include-files-by-defaults.patch

#BuildRequires:	mariadb-connector-c-devel
BuildRequires:	net-snmp-devel
BuildRequires:	unixODBC-devel
BuildRequires:	libxml2-devel
BuildRequires:	libevent-devel
BuildRequires:	pcre-devel
BuildRequires:	systemd-units
BuildRequires:	mysql-devel
BuildRequires:	net-snmp-devel
BuildRequires:	openldap-devel
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(openssl)
#BuildRequires:	pkgconfig(iksemel)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(OpenIPMI)
BuildRequires:	pkgconfig(sqlite3)
%if %{with agent2}
BuildRequires:	golang
%endif

%description
Zabbix is software that monitors numerous parameters of a network and the
health and integrity of servers. Zabbix uses a flexible notification mechanism
that allows users to configure e-mail based alerts for virtually any event.
This allows a fast reaction to server problems. Zabbix offers excellent
reporting and data visualization features based on the stored data.
This makes Zabbix ideal for capacity planning.

Zabbix supports both polling and trapping. All Zabbix reports and statistics,
as well as configuration parameters are accessed through a web-based front end.
A web-based front end ensures that the status of your network and the health of
your servers can be assessed from any location. Properly configured, Zabbix can
play an important role in monitoring IT infrastructure. This is equally true
for small organizations with a few servers and for large companies with a
multitude of servers.

#-----------------------------------------------------------------------

%package common
Summary:	Common utilities and configs for Zabbix
Requires:	logrotate
%if %{with selinux}
# This ensures that the *-selinux package and all it’s dependencies are not pulled
# into containers and other systems that do not use SELinux
Requires:	(%{name}-selinux if selinux-policy)
%endif
# files were moved from 2 subpackages into this one
Conflicts:	zabbix5.0 < 2:5.0.19-2
Conflicts:	zabbix < 2:5.0.19-2
Conflicts:	zabbix5.0-agent < 2:5.0.19-2
Conflicts:	zabbix-agent < 2:5.0.19-2
Obsoletes:	zabbix5.0 < 2:5.0.19-2
Obsoletes:	zabbix < 2:5.0.19-2

%description common
Common utilities and configs for Zabbix

%files common
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%dir %{_sysconfdir}/%{srcname}
%{_bindir}/zabbix_get
%{_bindir}/zabbix_sender
%{_mandir}/man1/zabbix_get.1*
%{_mandir}/man1/zabbix_sender.1*

#-----------------------------------------------------------------------

%package dbfiles-mysql
Summary:	Zabbix database schemas, images, data and patches
BuildArch:	noarch
%major_metadata dbfiles-mysql

%description dbfiles-mysql
Zabbix database schemas, images, data and patches necessary for creating
and/or updating MySQL databases

%files dbfiles-mysql
%license COPYING
%{_datadir}/%{srcname}-mysql/

#-----------------------------------------------------------------------

%package dbfiles-pgsql
Summary:	Zabbix database schemas, images, data and patches
BuildArch:	noarch
%major_metadata dbfiles-pgsql

%description dbfiles-pgsql
Zabbix database schemas, images, data and patches necessary for creating
and/or updating PostgreSQL databases

%files dbfiles-pgsql
%license COPYING
%{_datadir}/%{srcname}-postgresql/

#-----------------------------------------------------------------------

%package dbfiles-sqlite3
Summary:	Zabbix database schemas and patches
BuildArch:	noarch
%major_metadata dbfiles-sqlite3

%description dbfiles-sqlite3
Zabbix database schemas and patches necessary for creating
and/or updating SQLite databases

%files dbfiles-sqlite3
%license COPYING
%{_datadir}/%{srcname}-sqlite3/

#-----------------------------------------------------------------------

%package server
Summary:	Zabbix server common files
BuildArch:	noarch
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-server-implementation = %{EVRD}
# default to mysql if nothing else is specified
Suggests:	%{name}-server-mysql
Requires:	fping
Requires:	traceroute
Requires(pre):	/bin/systemd-sysusers
%major_metadata server

%description server
Zabbix server common files

%files server
%doc misc/snmptrap/zabbix_trap_receiver.pl
%attr(0755,zabbixsrv,zabbixsrv) %dir %{_rundir}/zabbixsrv/
%{_tmpfilesdir}/zabbixsrv.conf
# symlink
%config(noreplace) %{_sysconfdir}/%{srcname}/zabbix_server.conf
%attr(0640,root,zabbixsrv) %config(noreplace) %{_sysconfdir}/zabbix_server.conf
%attr(0775,root,zabbixsrv) %dir %{_localstatedir}/log/zabbixsrv
# symlink
%{_sysconfdir}/%{srcname}/externalscripts
# symlink
%{_sysconfdir}/%{srcname}/alertscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_server
%ghost %{_sbindir}/zabbix_server
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/tmp
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/alertscripts
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/externalscripts
%ghost %{_unitdir}/zabbix-server.service
%{_mandir}/man8/zabbix_server.8*
%{_sysusersdir}/zabbixsrv.conf

%pre server
%sysusers_create_package zabbixsrv %{SOURCE3}

%post server
%systemd_post zabbix-server.service

if [ $1 -gt 1 ] ; then
  # Apply permissions also in *.rpmnew upgrades from old permissive ones
  chmod 0640 %{_sysconfdir}/zabbix_server.conf
  chown root:zabbixsrv %{_sysconfdir}/zabbix_server.conf
fi
:

%preun server
%systemd_preun zabbix-server.service

%postun server
%systemd_postun_with_restart zabbix-server.service

#-----------------------------------------------------------------------

%package server-mysql
Summary:	Zabbix server compiled to use MySQL
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-dbfiles-mysql
Requires:	%{name}-server = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
Provides:	%{name}-server-implementation = %{EVRD}
%major_metadata server-mysql

%description server-mysql
Zabbix server compiled to use MySQL

%files server-mysql
%{_sbindir}/zabbix_server_mysql
%{_unitdir}/zabbix-server-mysql.service

%post server-mysql
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_server \
    %{srcname}-server %{_sbindir}/%{srcname}_server_mysql 10 \
        --slave %{_unitdir}/zabbix-server.service %{srcname}-server-systemd \
            %{_unitdir}/zabbix-server-mysql.service

%postun server-mysql
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-server %{_sbindir}/%{srcname}_server_mysql
fi


#-----------------------------------------------------------------------

%package server-pgsql
Summary:	Zabbix server compiled to use PostgreSQL
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires:	%{name}-dbfiles-pgsql
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
Provides:	%{name}-server-implementation = %{EVRD}
%major_metadata server-pgsql

%description server-pgsql
Zabbix server compiled to use PostgreSQL

%files server-pgsql
%{_sbindir}/zabbix_server_pgsql
%{_unitdir}/zabbix-server-pgsql.service

%post server-pgsql
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_server \
    %{srcname}-server %{_sbindir}/%{srcname}_server_pgsql 10 \
        --slave %{_unitdir}/zabbix-server.service %{srcname}-server-systemd \
            %{_unitdir}/zabbix-server-pgsql.service

%postun server-pgsql
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-server %{_sbindir}/%{srcname}_server_pgsql
fi

#-----------------------------------------------------------------------

%package agent-common
Summary:	Common files for Zabbix agent and agent2
Requires:	%{name}-common = %{EVRD}
Requires(pre):	/bin/systemd-sysusers
# files were moved
Conflicts:	zabbix-agent < 2:5.0.19-2
Conflicts:	zabbix5.0-agent < 2:5.0.19-2
%major_metadata agent-common

%description agent-common
Common files for Zabbix agent and agent2

%files agent-common
%{_tmpfilesdir}/zabbix.conf
%{_sysusersdir}/zabbix.conf
%attr(0775,root,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0750,zabbix,zabbix) %dir %{_sharedstatedir}/zabbix

%pre agent-common
%sysusers_create_package zabbix %{SOURCE2}

#-----------------------------------------------------------------------

%package agent
Summary:	Zabbix agent
Requires:	%{name}-common = %{EVRD}
Requires(pre):	%{name}-agent-common = %{EVRD}
%major_metadata agent

%description agent
Zabbix agent, to be installed on monitored systems

%files agent
%doc conf/zabbix_agentd/*.conf
# symlink
%{_sysconfdir}/%{srcname}/zabbix_agentd.conf
%config(noreplace) %attr(0640,root,zabbix) %{_sysconfdir}/zabbix_agentd.conf
%dir %attr(0750,root,zabbix) %{_sysconfdir}/%{srcname}/zabbix_agentd.d
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_agentd
%{_unitdir}/zabbix-agent.service
%{_sbindir}/zabbix_agentd
%{_mandir}/man8/zabbix_agentd.8*

%post agent
%systemd_post zabbix-agent.service

%preun agent
%systemd_preun zabbix-agent.service

%postun agent
%systemd_postun_with_restart zabbix-agent.service

#-----------------------------------------------------------------------
%if %{with agent2}

%package agent2
Summary:	Zabbix agent2
Requires:	%{name}-common = %{EVRD}
Requires(pre):	%{name}-agent-common = %{EVRD}
%major_metadata agent2

%description agent2
Zabbix agent2, to be installed on monitored systems

%files agent2
# symlink
%{_sysconfdir}/%{srcname}/zabbix_agent2.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.conf
%dir %attr(0750,root,zabbix) %{_sysconfdir}/%{srcname}/zabbix_agent2.d
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_agent2
%{_sbindir}/zabbix_agent2
%{_unitdir}/zabbix-agent2.service
#%%{_mandir}/man8/zabbix_agent2.8*

%post agent2
%systemd_post zabbix-agent2.service

%preun agent2
%systemd_preun zabbix-agent2.service

%postun agent2
%systemd_postun_with_restart zabbix-agent2.service

%endif #with agent2
#-----------------------------------------------------------------------

%package proxy
Summary:	Zabbix proxy common files
BuildArch:	noarch
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-proxy-implementation = %{EVRD}
Requires(pre):	/bin/systemd-sysusers
Requires:	fping
%major_metadata proxy

%description proxy
Zabbix proxy commmon files

%files proxy
%doc misc/snmptrap/zabbix_trap_receiver.pl
%{_tmpfilesdir}/zabbixsrv.conf
# symlink
%{_sysconfdir}/%{srcname}/zabbix_proxy.conf
%attr(0640,root,zabbixsrv) %config(noreplace) %{_sysconfdir}/zabbix_proxy.conf
%attr(0775,root,zabbixsrv) %dir %{_localstatedir}/log/zabbixsrv
# symlink
%{_sysconfdir}/%{srcname}/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_proxy
%ghost %{_sbindir}/zabbix_proxy
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/tmp
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/alertscripts
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/externalscripts
%ghost %{_unitdir}/zabbix-proxy.service
%{_mandir}/man8/zabbix_proxy.8*
%{_sysusersdir}/zabbixsrv.conf

%pre proxy
%sysusers_create_package zabbixsrv %{SOURCE3}

%post proxy
%systemd_post zabbix-proxy.service

if [ $1 -gt 1 ] ; then
  # Apply permissions also in *.rpmnew upgrades from old permissive ones
  chmod 0640 %{_sysconfdir}/zabbix_proxy.conf
  chown root:zabbixsrv %{_sysconfdir}/zabbix_proxy.conf
fi
:

%preun proxy
%systemd_preun zabbix-proxy.service

%postun proxy
%systemd_postun_with_restart zabbix-proxy.service

#-----------------------------------------------------------------------

%package proxy-mysql
Summary:	Zabbix proxy compiled to use MySQL
Requires:	%{name}-proxy = %{EVRD}
Requires:	%{name}-dbfiles-mysql
Provides:	%{name}-proxy-implementation = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
%major_metadata proxy-mysql

%description proxy-mysql
Zabbix proxy compiled to use MySQL

%files proxy-mysql
%{_sbindir}/zabbix_proxy_mysql
%{_unitdir}/zabbix-proxy-mysql.service

%post proxy-mysql
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_proxy \
    %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_mysql 10 \
        --slave %{_unitdir}/zabbix-proxy.service %{srcname}-proxy-systemd \
            %{_unitdir}/zabbix-proxy-mysql.service


%postun proxy-mysql
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_mysql
fi


#-----------------------------------------------------------------------

%package proxy-pgsql
Summary:	Zabbix proxy compiled to use PostgreSQL
Requires:	%{name}-proxy = %{EVRD}
Requires:	%{name}-dbfiles-pgsql
Provides:	%{name}-proxy-implementation = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
%major_metadata proxy-pgsql

%description proxy-pgsql
Zabbix proxy compiled to use PostgreSQL

%files proxy-pgsql
%{_sbindir}/zabbix_proxy_pgsql
%{_unitdir}/zabbix-proxy-pgsql.service

%post proxy-pgsql
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_proxy \
    %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_pgsql 10 \
        --slave %{_unitdir}/zabbix-proxy.service %{srcname}-proxy-systemd \
            %{_unitdir}/zabbix-proxy-pgsql.service

%postun proxy-pgsql
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_pgsql
fi


#-----------------------------------------------------------------------

%package proxy-sqlite3
Summary:	Zabbix proxy compiled to use SQLite
Requires:	%{name}-proxy = %{EVRD}
Requires:	%{name}-dbfiles-sqlite3
Provides:	%{name}-proxy-implementation = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
%major_metadata proxy-sqlite3

%description proxy-sqlite3
Zabbix proxy compiled to use SQLite

%files proxy-sqlite3
%{_sbindir}/zabbix_proxy_sqlite3
%{_unitdir}/zabbix-proxy-sqlite3.service

%post proxy-sqlite3
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_proxy \
    %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_sqlite3 10 \
        --slave %{_unitdir}/zabbix-proxy.service %{srcname}-proxy-systemd \
            %{_unitdir}/zabbix-proxy-sqlite3.service

%postun proxy-sqlite3
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_sqlite3
fi

#-----------------------------------------------------------------------
%if %{with web}

%package web
Summary:	Zabbix Web Frontend
BuildArch:	noarch
# Don't remove "php". Everything else only depends on php-common
# and you'll end up with no module for Apache!
Requires:	php
Requires:	php-gd
Requires:	php-bcmath
Requires:	php-ldap
Requires:	php-mbstring
Requires:	php-xml
Requires:	php-gettext
Requires:	php-fpm
Requires:	php-sockets
# jquery 3.3.1 and jquery-ui 1.12.1 in the sources
Requires:	js-jquery3
Provides:	bundled(js-jquery-ui) = 1.12.1
# prototype 1.6.1 in the sources, Fedora package is dead
#Requires:	prototype
Requires:	dejavu-sans-fonts
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-web-database = %{EVRD}
# configs are for httpd
Requires:	apache-base
Requires:	apache-mod_php
# owner of files in this package
Requires(pre):	user(apache)
Requires(pre):	group(apache)
%major_metadata web

%description web
The php frontend to display the Zabbix web interface.

%files web
%dir %attr(0750,apache,apache) %{_sysconfdir}/%{srcname}/web
%ghost %attr(0644,apache,apache) %config(noreplace) %{_sysconfdir}/%{srcname}/web/zabbix.conf.php
%attr(0644,apache,apache) %config(noreplace) %{_sysconfdir}/%{srcname}/web/maintenance.inc.php
%config(noreplace) %{_sysconfdir}/httpd/conf.d/zabbix.conf
%{_datadir}/%{srcname}

#-----------------------------------------------------------------------

%package web-mysql
Summary:	Zabbix web frontend for MySQL
BuildArch:	noarch
Requires:	%{name}-web = %{EVRD}
Requires:	php-mysqli
Provides:	%{name}-web-database = %{EVRD}
%major_metadata web-mysql

%description web-mysql
Zabbix web frontend for MySQL

%files web-mysql

#-----------------------------------------------------------------------

%package web-pgsql
Summary:	Zabbix web frontend for PostgreSQL
BuildArch:	noarch
Requires:	%{name}-web = %{EVRD}
Requires:	php-pgsql
Provides:	%{name}-web-database = %{EVRD}
%major_metadata web-pgsql

%description web-pgsql
Zabbix web frontend for PostgreSQL


%files web-pgsql

%endif #with_web
#-----------------------------------------------------------------------

%if %{with selinux}
# SELinux subpackage
%package selinux
Summary:	Zabbix SELinux policy
BuildArch:	noarch
Requires:	selinux-policy
Requires(post):	selinux-policy
BuildRequires:	selinux-policy-devel
%major_metadata selinux
%{?selinux_requires}

%description selinux
Custom SELinux policy module

%files selinux
%{_datadir}/selinux/packages/targeted/%{srcname}.pp.*
%ghost %{_sharedstatedir}/selinux/targeted/active/modules/200/%{srcname}

# SELinux contexts are saved so that only affected files can be
# relabeled after the policy module installation
%pre selinux
%selinux_relabel_pre -s targeted

%post selinux
%selinux_modules_install -s targeted %{_datadir}/selinux/packages/targeted/%{srcname}.pp.bz2

%postun selinux
if [ $1 -eq 0 ]; then
    %selinux_modules_uninstall -s targeted %{srcname}
fi

%posttrans selinux
%selinux_relabel_post -s targeted

%endif

#-----------------------------------------------------------------------

%package js
Summary:	Zabbix JS
Group:		Monitoring
%major_metadata js

%description js
Zabbix js command line utility.

%files js
%{_bindir}/zabbix_js

#-----------------------------------------------------------------------

%prep
%setup0 -q -n %{srcname}-%{version}%{?prerelease:.%{prerelease}} -b 22
%autopatch -p1

# Remove bundled java libs
rm -rf src/zabbix_java/lib/*.jar

# Remove prebuilt Windows binaries
rm -rf bin

# Override creation of statically named directory for alertscripts and externalscripts
# https://support.zabbix.com/browse/ZBX-6159
sed -i '/CURL_SSL_.*_LOCATION\|SCRIPTS_PATH/s|\${datadir}/zabbix|/var/lib/zabbixsrv|' \
    configure

# Kill off .htaccess files, options set in SOURCE1
rm -f frontends/php/app/.htaccess
rm -f frontends/php/conf/.htaccess
rm -f frontends/php/include/.htaccess
rm -f frontends/php/local/.htaccess

# Common
# Settings with hard-coded defaults that are not suitable for Fedora
# are explicitly set, leaving the comment with the default value in place.
# Settings without hard-coded defaults are simply replaced -- be they
# comments or explicit settings!

# Also replace the datadir placeholder that is not expanded, but effective
sed -i \
    -e '\|^# LogFileSize=.*|a LogFileSize=0' \
    -e 's|^DBUser=root|DBUser=zabbix|' \
    -e 's|^# DBSocket=/tmp/mysql.sock|# DBSocket=%{_sharedstatedir}/mysql/mysql.sock|' \
    -e '\|^# ExternalScripts=|a ExternalScripts=%{_sharedstatedir}/zabbixsrv/externalscripts' \
    -e '\|^# AlertScriptsPath=|a AlertScriptsPath=%{_sharedstatedir}/zabbixsrv/alertscripts' \
    -e '\|^# TmpDir=\/tmp|a TmpDir=%{_sharedstatedir}/zabbixsrv/tmp' \
    -e 's|/usr/local||' \
    -e 's|\${datadir}|/usr/share|' \
    -e 's|/etc/zabbix_agentd.conf.d|%{_sysconfdir}/%{srcname}/zabbix_agentd.d|' \
    -e 's|/etc/zabbix_agent2.conf.d|%{_sysconfdir}/%{srcname}/zabbix_agent2.d|' \
    conf/zabbix_agentd.conf \
    src/go/conf/zabbix_agent2.conf \
    conf/zabbix_proxy.conf \
    conf/zabbix_server.conf

sed -i \
    -e '\|^# PidFile=.*|a PidFile=%{_rundir}/zabbix/zabbix_agentd.pid' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agentd.log|' \
    conf/zabbix_agentd.conf

sed -i \
    -e '\|^# PidFile=.*|a PidFile=%{_rundir}/zabbix/zabbix_agent2.pid' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agent2.log|' \
    src/go/conf/zabbix_agent2.conf

sed -i \
    -e '\|^# PidFile=.*|a PidFile=%{_rundir}/zabbixsrv/zabbix_proxy.pid' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbixsrv/zabbix_proxy.log|' \
    conf/zabbix_proxy.conf

sed -i \
    -e '\|^# PidFile=.*|a PidFile=%{_rundir}/zabbixsrv/zabbix_server.pid' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbixsrv/zabbix_server.log|' \
    conf/zabbix_server.conf

# `go install` into $RPM_BUILD_ROOT
sed -i'' -E -e 's,^GOBIN=.+,GOBIN=%{buildroot}%{_sbindir},' configure.ac

%build
autoreconf -if

common_flags="
    --enable-dependency-tracking
    --enable-proxy
    --enable-ipv6
    --enable-agent
    %{?with_agent2:--enable-agent2}
    --disable-java
    --with-net-snmp
    --with-ldap
    --with-libcurl
    --with-openipmi
    --with-unixodbc
    --with-ssh2
    --with-libxml2
    --with-libevent
    --with-libpcre
    --with-openssl
"

# Frontend doesn't work for SQLite, thus don't build server
%configure $common_flags --with-sqlite3
%make_build
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_sqlite3

%configure $common_flags --with-mysql --enable-server
make clean
%make_build
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_mysql
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_mysql

%configure $common_flags --with-postgresql --enable-server
make clean
%make_build
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_pgsql
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_pgsql

# Ghosted alternatives
touch src/zabbix_server/zabbix_server
touch src/zabbix_proxy/zabbix_proxy

%if %{with selinux}
# SELinux policy (originally from selinux-policy-contrib)
# this policy module will override the production module
mkdir selinux
cp -p %{SOURCE18} selinux/
cp -p %{SOURCE19} selinux/
cp -p %{SOURCE20} selinux/

make -f %{_datadir}/selinux/devel/Makefile %{srcname}.pp
bzip2 -9 %{srcname}.pp
%endif


%install
# Configuration, runtime and start-up
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}/web
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
mkdir -p %{buildroot}%{_localstatedir}/log/zabbix
mkdir -p %{buildroot}%{_localstatedir}/log/zabbixsrv
mkdir -p %{buildroot}%{_unitdir}

# systemd tmpfiles
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 -p %{SOURCE9} %{buildroot}%{_tmpfilesdir}/zabbix.conf
install -m 0644 -p %{SOURCE17} %{buildroot}%{_tmpfilesdir}/zabbixsrv.conf
mkdir -p %{buildroot}%{_rundir}
install -d -m 0755 %{buildroot}%{_rundir}/zabbix/
install -d -m 0755 %{buildroot}%{_rundir}/zabbixsrv/

# Frontend
mkdir -p %{buildroot}%{_datadir}/%{srcname}

# Home directory for the agent;
# The other home directory is created during installation
mkdir -p %{buildroot}%{_sharedstatedir}/zabbix

# Install binaries
make DESTDIR=%{buildroot} install
install -m 0755 -p src/zabbix_server/zabbix_server_* %{buildroot}%{_sbindir}/
install -m 0755 -p src/zabbix_proxy/zabbix_proxy_* %{buildroot}%{_sbindir}/

%if %{with web}
# Install the frontend after removing backup files from patching
find . -name '*.orig' -exec rm {} \;
cp -a ui/* %{buildroot}%{_datadir}/%{srcname}

# Prepare ghosted config file
touch %{buildroot}%{_sysconfdir}/%{srcname}/web/zabbix.conf.php

# Replace bundled font and JS libraries
# There is no jquery-ui package yet
#pushd %{buildroot}%{_datadir}/%{srcname}/fonts/
#rm DejaVuSans.ttf && ln -sf %{_datadir}/fonts/dejavu/DejaVuSans.ttf
#popd
pushd %{buildroot}%{_datadir}/%{srcname}/js/vendors/
rm jquery.js && ln -sf %{_datadir}/javascript/jquery/3/jquery.min.js jquery.js
popd

# Move MVC override directory out; We are not owning or creating this directory!
#TODO: README dort
rm -r frontends/php/local/ && ln -sf %{_usr}/local/share/zabbix/local %{buildroot}%{_datadir}/%{srcname}/local
#TODO: local vielleicht doch unter /etc/zabbix/web?

# This file is used to switch the frontend to maintenance mode
mv %{buildroot}%{_datadir}/%{srcname}/conf/maintenance.inc.php %{buildroot}%{_sysconfdir}/%{srcname}/web/maintenance.inc.php

# Drop Apache config file in place
install -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{srcname}.conf
%endif #with_web

# Install log rotation
sed -e 's|COMPONENT|agentd|g; s|USER|zabbix|g' %{SOURCE5} > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_agentd
%if %{with agent2}
sed -e 's|COMPONENT|agent2|g; s|USER|zabbix|g' %{SOURCE5} > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_agent2
%endif
sed -e 's|COMPONENT|server|g; s|USER|zabbixsrv|g' %{SOURCE5} > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_server
sed -e 's|COMPONENT|proxy|g; s|USER|zabbixsrv|g' %{SOURCE5} > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_proxy

# Install different systemd units because of the requirements for DBMS daemons
install -m 0644 -p %{SOURCE10} %{buildroot}%{_unitdir}/zabbix-agent.service
%if %{with agent2}
install -m 0644 -p %{SOURCE21} %{buildroot}%{_unitdir}/zabbix-agent2.service
%endif
install -m 0644 -p %{SOURCE11} %{buildroot}%{_unitdir}/zabbix-proxy-mysql.service
install -m 0644 -p %{SOURCE12} %{buildroot}%{_unitdir}/zabbix-proxy-pgsql.service
install -m 0644 -p %{SOURCE13} %{buildroot}%{_unitdir}/zabbix-proxy-sqlite3.service
install -m 0644 -p %{SOURCE14} %{buildroot}%{_unitdir}/zabbix-server-mysql.service
install -m 0644 -p %{SOURCE15} %{buildroot}%{_unitdir}/zabbix-server-pgsql.service

# Ghosted alternatives
touch %{buildroot}%{_unitdir}/zabbix-server.service
touch %{buildroot}%{_unitdir}/zabbix-proxy.service

# Install compatibility links for config files
#TODO: Switch to .wants files instead!
ln -sf ../zabbix_agentd.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agentd.conf
%if %{with agent2}
ln -sf ../zabbix_agent2.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agent2.conf
%endif
ln -sf ../zabbix_server.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_server.conf
ln -sf ../zabbix_proxy.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_proxy.conf
ln -sf ../../%{_sharedstatedir}/zabbixsrv/externalscripts %{buildroot}%{_sysconfdir}/%{srcname}/externalscripts
ln -sf ../../%{_sharedstatedir}/zabbixsrv/alertscripts %{buildroot}%{_sysconfdir}/%{srcname}/alertscripts
#TODO: What does that do to existing directories?

mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agentd.d
%if %{with agent2}
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agent2.d
%endif

# install scripts and modules directories
# XXX already exists in rosa2019.05...
%if %{mdvver} >= 202110
mkdir -p %{buildroot}/%{_sharedstatedir}/zabbixsrv/
mv %{buildroot}%{_datadir}/zabbix/alertscripts %{buildroot}/%{_sharedstatedir}/zabbixsrv/
mv %{buildroot}%{_datadir}/zabbix/externalscripts %{buildroot}/%{_sharedstatedir}/zabbixsrv/
%endif

# Directory for fping spooling files
mkdir -p %{buildroot}%{_sharedstatedir}/zabbixsrv/tmp

# Install sql files
for db in postgresql mysql; do
    mkdir %{buildroot}%{_datadir}/%{srcname}-$db
    cp -p database/$db/*.sql %{buildroot}%{_datadir}/%{srcname}-$db
done

install -dm 755 %{buildroot}%{_datadir}/%{srcname}-sqlite3
cp -p database/sqlite3/schema.sql %{buildroot}%{_datadir}/%{srcname}-sqlite3

%if %{with selinux}
install -D -m 0644 %{srcname}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/targeted/%{srcname}.pp.bz2
%endif

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/zabbix.conf
install -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/zabbixsrv.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20446 |21mr|zabbix7.0-7.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# TODO, maybe sometime:
# * Allow for nginx?
# * Consider using systemd's ReadWriteDirectories

#TODO: systemctl reload seems to be necessary after switching with Alternatives
#TODO: If the DB path for a Sqlite proxy is configured wrong, it requires systemctl restart. Start doesn't work.

%define srcname zabbix
# clients and servers of different major versions may be incompatible or not fully compatible with each other,
# so we package different major versions separately, keeping in mind that ROSA may be a client or a server
# working with clients or servers on not ROSA where zabbix is of a different major version
%define major 7.0
%bcond_without selinux

# Web interface may be not usable to e.g. old php
%if %{mdvver} >= 202110
%bcond_without web
%else
# php is old (5.x)
%bcond_with web
%endif

# agent2 is written in golang
%bcond_without agent2

%if %{mdvver} >= 202110
%define major_metadata() %{expand:\
Provides: zabbix%{?1:-%{1}} = %{EVRD} \
Obsoletes: zabbix%{?1:-%{1}} < 7.0 \
Conflicts: zabbix%{?1:-%{1}} < 7.0 \
}
%else
%define major_metadata() %{nil}
%endif

# autoreconf is enough
%define _disable_rebuild_configure 1

# I'm fed up with rediffing patches
%define _default_patch_fuzz 2

Name:		zabbix%{major}
Version:	7.0.3
Release:	1
Summary:	Open-source monitoring solution for your IT infrastructure
Group:		Monitoring
License:	GPLv2+
URL:		https://www.zabbix.com
Source0:	https://cdn.zabbix.com/zabbix/sources/stable/%{major}/zabbix-%{version}.tar.gz
Source1:	%{srcname}-web.conf
Source2:	zabbix.sysusers.conf
Source3:	zabbixsrv.sysusers.conf
Source5:	%{srcname}-logrotate.in
Source9:	%{srcname}-tmpfiles-zabbix.conf
# systemd units -- Alternatives switches between them (they state their dependencies)
# https://support.zabbix.com/browse/ZBXNEXT-1593
Source10:	%{srcname}-agent.service
Source11:	%{srcname}-proxy-mysql.service
Source12:	%{srcname}-proxy-pgsql.service
Source13:	%{srcname}-proxy-sqlite3.service
Source14:	%{srcname}-server-mysql.service
Source15:	%{srcname}-server-pgsql.service
Source17:	%{srcname}-tmpfiles-zabbixsrv.conf
Source18:	%{srcname}.te
Source19:	%{srcname}.if
Source20:	%{srcname}.fc
Source21:	%{srcname}-agent2.service
# Bundle go modules manually (./upd.sh does it himself):
# abf fetch
# tar -xvf zabbix-*.tar.gz
# cd zabbix-5.0.19/src/go
# go mod vendor
# cd -
# XZ_OPT="-T0 -v" tar cJf zabbix-%%{version}-go-mod-vendor.tar.xz zabbix-%%{version}/src/go/vendor
Source22:	%{srcname}-%{version}-go-mod-vendor.tar.xz
Patch0:		config.patch
Patch1:		0001-Enable-include-files-by-defaults.patch

#BuildRequires:	mariadb-connector-c-devel
BuildRequires:	net-snmp-devel
BuildRequires:	unixODBC-devel
BuildRequires:	libxml2-devel
BuildRequires:	libevent-devel
BuildRequires:	pcre-devel
BuildRequires:	systemd-units
BuildRequires:	mysql-devel
BuildRequires:	net-snmp-devel
BuildRequires:	openldap-devel
BuildRequires:	unixODBC-devel
BuildRequires:	pkgconfig(gnutls)
BuildRequires:	pkgconfig(openssl)
#BuildRequires:	pkgconfig(iksemel)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libpq)
BuildRequires:	pkgconfig(libssh2)
BuildRequires:	pkgconfig(OpenIPMI)
BuildRequires:	pkgconfig(sqlite3)
%if %{with agent2}
BuildRequires:	golang
%endif

%description
Zabbix is software that monitors numerous parameters of a network and the
health and integrity of servers. Zabbix uses a flexible notification mechanism
that allows users to configure e-mail based alerts for virtually any event.
This allows a fast reaction to server problems. Zabbix offers excellent
reporting and data visualization features based on the stored data.
This makes Zabbix ideal for capacity planning.

Zabbix supports both polling and trapping. All Zabbix reports and statistics,
as well as configuration parameters are accessed through a web-based front end.
A web-based front end ensures that the status of your network and the health of
your servers can be assessed from any location. Properly configured, Zabbix can
play an important role in monitoring IT infrastructure. This is equally true
for small organizations with a few servers and for large companies with a
multitude of servers.

#-----------------------------------------------------------------------

%package common
Summary:	Common utilities and configs for Zabbix
Requires:	logrotate
%if %{with selinux}
# This ensures that the *-selinux package and all it’s dependencies are not pulled
# into containers and other systems that do not use SELinux
Requires:	(%{name}-selinux if selinux-policy)
%endif
# files were moved from 2 subpackages into this one
Conflicts:	zabbix5.0
Conflicts:	zabbix < 7.0
Conflicts:	zabbix5.0-agent
Conflicts:	zabbix-agent < 7.0

%description common
Common utilities and configs for Zabbix

%files common
%license COPYING
%doc AUTHORS ChangeLog NEWS README
%dir %{_sysconfdir}/%{srcname}
%{_bindir}/zabbix_get
%{_bindir}/zabbix_sender
%{_mandir}/man1/zabbix_get.1*
%{_mandir}/man1/zabbix_sender.1*

#-----------------------------------------------------------------------

%package dbfiles-mysql
Summary:	Zabbix database schemas, images, data and patches
BuildArch:	noarch
%major_metadata dbfiles-mysql

%description dbfiles-mysql
Zabbix database schemas, images, data and patches necessary for creating
and/or updating MySQL databases

%files dbfiles-mysql
%license COPYING
%{_datadir}/%{srcname}-mysql/

#-----------------------------------------------------------------------

%package dbfiles-pgsql
Summary:	Zabbix database schemas, images, data and patches
BuildArch:	noarch
%major_metadata dbfiles-pgsql

%description dbfiles-pgsql
Zabbix database schemas, images, data and patches necessary for creating
and/or updating PostgreSQL databases

%files dbfiles-pgsql
%license COPYING
%{_datadir}/%{srcname}-postgresql/

#-----------------------------------------------------------------------

%package dbfiles-sqlite3
Summary:	Zabbix database schemas and patches
BuildArch:	noarch
%major_metadata dbfiles-sqlite3

%description dbfiles-sqlite3
Zabbix database schemas and patches necessary for creating
and/or updating SQLite databases

%files dbfiles-sqlite3
%license COPYING
%{_datadir}/%{srcname}-sqlite3/

#-----------------------------------------------------------------------

%package server
Summary:	Zabbix server common files
BuildArch:	noarch
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-server-implementation = %{EVRD}
# default to mysql if nothing else is specified
Suggests:	%{name}-server-mysql
Requires:	fping
Requires:	traceroute
Requires(pre):	/bin/systemd-sysusers
%major_metadata server

%description server
Zabbix server common files

%files server
%doc misc/snmptrap/zabbix_trap_receiver.pl
%attr(0755,zabbixsrv,zabbixsrv) %dir %{_rundir}/zabbixsrv/
%{_tmpfilesdir}/zabbixsrv.conf
# symlink
%config(noreplace) %{_sysconfdir}/%{srcname}/zabbix_server.conf
%attr(0640,root,zabbixsrv) %config(noreplace) %{_sysconfdir}/zabbix_server.conf
%attr(0775,root,zabbixsrv) %dir %{_localstatedir}/log/zabbixsrv
# symlink
%{_sysconfdir}/%{srcname}/externalscripts
# symlink
%{_sysconfdir}/%{srcname}/alertscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_server
%ghost %{_sbindir}/zabbix_server
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/tmp
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/alertscripts
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/externalscripts
%ghost %{_unitdir}/zabbix-server.service
%{_mandir}/man8/zabbix_server.8*
%{_sysusersdir}/zabbixsrv.conf

%pre server
%sysusers_create_package zabbixsrv %{SOURCE3}

%post server
%systemd_post zabbix-server.service

if [ $1 -gt 1 ] ; then
  # Apply permissions also in *.rpmnew upgrades from old permissive ones
  chmod 0640 %{_sysconfdir}/zabbix_server.conf
  chown root:zabbixsrv %{_sysconfdir}/zabbix_server.conf
fi
:

%preun server
%systemd_preun zabbix-server.service

%postun server
%systemd_postun_with_restart zabbix-server.service

#-----------------------------------------------------------------------

%package server-mysql
Summary:	Zabbix server compiled to use MySQL
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-dbfiles-mysql
Requires:	%{name}-server = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
Provides:	%{name}-server-implementation = %{EVRD}
%major_metadata server-mysql

%description server-mysql
Zabbix server compiled to use MySQL

%files server-mysql
%{_sbindir}/zabbix_server_mysql
%{_unitdir}/zabbix-server-mysql.service

%post server-mysql
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_server \
    %{srcname}-server %{_sbindir}/%{srcname}_server_mysql 10 \
        --slave %{_unitdir}/zabbix-server.service %{srcname}-server-systemd \
            %{_unitdir}/zabbix-server-mysql.service

%postun server-mysql
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-server %{_sbindir}/%{srcname}_server_mysql
fi


#-----------------------------------------------------------------------

%package server-pgsql
Summary:	Zabbix server compiled to use PostgreSQL
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires:	%{name}-dbfiles-pgsql
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
Provides:	%{name}-server-implementation = %{EVRD}
%major_metadata server-pgsql

%description server-pgsql
Zabbix server compiled to use PostgreSQL

%files server-pgsql
%{_sbindir}/zabbix_server_pgsql
%{_unitdir}/zabbix-server-pgsql.service

%post server-pgsql
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_server \
    %{srcname}-server %{_sbindir}/%{srcname}_server_pgsql 10 \
        --slave %{_unitdir}/zabbix-server.service %{srcname}-server-systemd \
            %{_unitdir}/zabbix-server-pgsql.service

%postun server-pgsql
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-server %{_sbindir}/%{srcname}_server_pgsql
fi

#-----------------------------------------------------------------------

%package agent-common
Summary:	Common files for Zabbix agent and agent2
Requires:	%{name}-common = %{EVRD}
Requires(pre):	/bin/systemd-sysusers
# files were moved
Conflicts:	zabbix-agent < 7.0
Conflicts:	zabbix5.0-agent
%major_metadata agent-common

%description agent-common
Common files for Zabbix agent and agent2

%files agent-common
%{_tmpfilesdir}/zabbix.conf
%{_sysusersdir}/zabbix.conf
%attr(0775,root,zabbix) %dir %{_localstatedir}/log/zabbix
%attr(0750,zabbix,zabbix) %dir %{_sharedstatedir}/zabbix

%pre agent-common
%sysusers_create_package zabbix %{SOURCE2}

#-----------------------------------------------------------------------

%package agent
Summary:	Zabbix agent
Requires:	%{name}-common = %{EVRD}
Requires(pre):	%{name}-agent-common = %{EVRD}
%major_metadata agent

%description agent
Zabbix agent, to be installed on monitored systems

%files agent
%doc conf/zabbix_agentd/*.conf
# symlink
%{_sysconfdir}/%{srcname}/zabbix_agentd.conf
%config(noreplace) %attr(0640,root,zabbix) %{_sysconfdir}/zabbix_agentd.conf
%dir %attr(0750,root,zabbix) %{_sysconfdir}/%{srcname}/zabbix_agentd.d
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_agentd
%{_unitdir}/zabbix-agent.service
%{_sbindir}/zabbix_agentd
%{_mandir}/man8/zabbix_agentd.8*

%post agent
%systemd_post zabbix-agent.service

%preun agent
%systemd_preun zabbix-agent.service

%postun agent
%systemd_postun_with_restart zabbix-agent.service

#-----------------------------------------------------------------------
%if %{with agent2}

%package agent2
Summary:	Zabbix agent2
Requires:	%{name}-common = %{EVRD}
Requires(pre):	%{name}-agent-common = %{EVRD}
%major_metadata agent2

%description agent2
Zabbix agent2, to be installed on monitored systems

%files agent2
# symlink
%{_sysconfdir}/%{srcname}/zabbix_agent2.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.conf
%dir %attr(0750,root,zabbix) %{_sysconfdir}/%{srcname}/zabbix_agent2.d
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_agent2
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/ceph.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/docker.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/memcached.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/modbus.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/mqtt.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/mysql.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/oracle.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/redis.conf
%config(noreplace) %attr(0640,root,zabbix)  %{_sysconfdir}/zabbix_agent2.d/plugins.d/smart.conf
%{_sbindir}/zabbix_agent2
%{_unitdir}/zabbix-agent2.service
%{_mandir}/man8/zabbix_agent2.8*

%post agent2
%systemd_post zabbix-agent2.service

%preun agent2
%systemd_preun zabbix-agent2.service

%postun agent2
%systemd_postun_with_restart zabbix-agent2.service

%endif #with agent2
#-----------------------------------------------------------------------

%package proxy
Summary:	Zabbix proxy common files
BuildArch:	noarch
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-proxy-implementation = %{EVRD}
Requires(pre):	/bin/systemd-sysusers
Requires:	fping
%major_metadata proxy

%description proxy
Zabbix proxy commmon files

%files proxy
%doc misc/snmptrap/zabbix_trap_receiver.pl
%{_tmpfilesdir}/zabbixsrv.conf
# symlink
%{_sysconfdir}/%{srcname}/zabbix_proxy.conf
%attr(0640,root,zabbixsrv) %config(noreplace) %{_sysconfdir}/zabbix_proxy.conf
%attr(0775,root,zabbixsrv) %dir %{_localstatedir}/log/zabbixsrv
# symlink
%{_sysconfdir}/%{srcname}/externalscripts
%config(noreplace) %{_sysconfdir}/logrotate.d/zabbix_proxy
%ghost %{_sbindir}/zabbix_proxy
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/tmp
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/alertscripts
%attr(0750,zabbixsrv,zabbixsrv) %dir %{_sharedstatedir}/zabbixsrv/externalscripts
%ghost %{_unitdir}/zabbix-proxy.service
%{_mandir}/man8/zabbix_proxy.8*
%{_sysusersdir}/zabbixsrv.conf

%pre proxy
%sysusers_create_package zabbixsrv %{SOURCE3}

%post proxy
%systemd_post zabbix-proxy.service

if [ $1 -gt 1 ] ; then
  # Apply permissions also in *.rpmnew upgrades from old permissive ones
  chmod 0640 %{_sysconfdir}/zabbix_proxy.conf
  chown root:zabbixsrv %{_sysconfdir}/zabbix_proxy.conf
fi
:

%preun proxy
%systemd_preun zabbix-proxy.service

%postun proxy
%systemd_postun_with_restart zabbix-proxy.service

#-----------------------------------------------------------------------

%package proxy-mysql
Summary:	Zabbix proxy compiled to use MySQL
Requires:	%{name}-proxy = %{EVRD}
Requires:	%{name}-dbfiles-mysql
Provides:	%{name}-proxy-implementation = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
%major_metadata proxy-mysql

%description proxy-mysql
Zabbix proxy compiled to use MySQL

%files proxy-mysql
%{_sbindir}/zabbix_proxy_mysql
%{_unitdir}/zabbix-proxy-mysql.service

%post proxy-mysql
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_proxy \
    %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_mysql 10 \
        --slave %{_unitdir}/zabbix-proxy.service %{srcname}-proxy-systemd \
            %{_unitdir}/zabbix-proxy-mysql.service


%postun proxy-mysql
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_mysql
fi


#-----------------------------------------------------------------------

%package proxy-pgsql
Summary:	Zabbix proxy compiled to use PostgreSQL
Requires:	%{name}-proxy = %{EVRD}
Requires:	%{name}-dbfiles-pgsql
Provides:	%{name}-proxy-implementation = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
%major_metadata proxy-pgsql

%description proxy-pgsql
Zabbix proxy compiled to use PostgreSQL

%files proxy-pgsql
%{_sbindir}/zabbix_proxy_pgsql
%{_unitdir}/zabbix-proxy-pgsql.service

%post proxy-pgsql
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_proxy \
    %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_pgsql 10 \
        --slave %{_unitdir}/zabbix-proxy.service %{srcname}-proxy-systemd \
            %{_unitdir}/zabbix-proxy-pgsql.service

%postun proxy-pgsql
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_pgsql
fi


#-----------------------------------------------------------------------

%package proxy-sqlite3
Summary:	Zabbix proxy compiled to use SQLite
Requires:	%{name}-proxy = %{EVRD}
Requires:	%{name}-dbfiles-sqlite3
Provides:	%{name}-proxy-implementation = %{EVRD}
Requires(post):	%{_sbindir}/update-alternatives
Requires(preun): %{_sbindir}/alternatives
Requires(postun): %{_sbindir}/update-alternatives
%major_metadata proxy-sqlite3

%description proxy-sqlite3
Zabbix proxy compiled to use SQLite

%files proxy-sqlite3
%{_sbindir}/zabbix_proxy_sqlite3
%{_unitdir}/zabbix-proxy-sqlite3.service

%post proxy-sqlite3
%{_sbindir}/update-alternatives --install %{_sbindir}/%{srcname}_proxy \
    %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_sqlite3 10 \
        --slave %{_unitdir}/zabbix-proxy.service %{srcname}-proxy-systemd \
            %{_unitdir}/zabbix-proxy-sqlite3.service

%postun proxy-sqlite3
if [ $1 -eq 0 ] ; then
    %{_sbindir}/update-alternatives --remove %{srcname}-proxy %{_sbindir}/%{srcname}_proxy_sqlite3
fi

#-----------------------------------------------------------------------
%if %{with web}

%package web
Summary:	Zabbix Web Frontend
BuildArch:	noarch
# Don't remove "php". Everything else only depends on php-common
# and you'll end up with no module for Apache!
Requires:	php
Requires:	php-gd
Requires:	php-bcmath
Requires:	php-ldap
Requires:	php-mbstring
Requires:	php-xml
Requires:	php-gettext
Requires:	php-fpm
Requires:	php-sockets
# jquery 3.3.1 and jquery-ui 1.12.1 in the sources
Requires:	js-jquery3
Provides:	bundled(js-jquery-ui) = 1.12.1
# prototype 1.6.1 in the sources, Fedora package is dead
#Requires:	prototype
Requires:	dejavu-sans-fonts
Requires:	%{name}-common = %{EVRD}
Requires:	%{name}-web-database = %{EVRD}
# configs are for httpd
Requires:	apache-base
Requires:	apache-mod_php
# owner of files in this package
Requires(pre):	user(apache)
Requires(pre):	group(apache)
%major_metadata web

%description web
The php frontend to display the Zabbix web interface.

%files web
%dir %attr(0750,apache,apache) %{_sysconfdir}/%{srcname}/web
%ghost %attr(0644,apache,apache) %config(noreplace) %{_sysconfdir}/%{srcname}/web/zabbix.conf.php
%attr(0644,apache,apache) %config(noreplace) %{_sysconfdir}/%{srcname}/web/maintenance.inc.php
%config(noreplace) %{_sysconfdir}/httpd/conf.d/zabbix.conf
%{_datadir}/%{srcname}

#-----------------------------------------------------------------------

%package web-mysql
Summary:	Zabbix web frontend for MySQL
BuildArch:	noarch
Requires:	%{name}-web = %{EVRD}
Requires:	php-mysqli
Provides:	%{name}-web-database = %{EVRD}
%major_metadata web-mysql

%description web-mysql
Zabbix web frontend for MySQL

%files web-mysql

#-----------------------------------------------------------------------

%package web-pgsql
Summary:	Zabbix web frontend for PostgreSQL
BuildArch:	noarch
Requires:	%{name}-web = %{EVRD}
Requires:	php-pgsql
Provides:	%{name}-web-database = %{EVRD}
%major_metadata web-pgsql

%description web-pgsql
Zabbix web frontend for PostgreSQL


%files web-pgsql

%endif #with_web
#-----------------------------------------------------------------------

%if %{with selinux}
# SELinux subpackage
%package selinux
Summary:	Zabbix SELinux policy
BuildArch:	noarch
Requires:	selinux-policy
Requires(post):	selinux-policy
BuildRequires:	selinux-policy-devel
%major_metadata selinux
%{?selinux_requires}

%description selinux
Custom SELinux policy module

%files selinux
%{_datadir}/selinux/packages/targeted/%{srcname}.pp.*
%ghost %{_sharedstatedir}/selinux/targeted/active/modules/200/%{srcname}

# SELinux contexts are saved so that only affected files can be
# relabeled after the policy module installation
%pre selinux
%selinux_relabel_pre -s targeted

%post selinux
%selinux_modules_install -s targeted %{_datadir}/selinux/packages/targeted/%{srcname}.pp.bz2

%postun selinux
if [ $1 -eq 0 ]; then
    %selinux_modules_uninstall -s targeted %{srcname}
fi

%posttrans selinux
%selinux_relabel_post -s targeted

%endif

#-----------------------------------------------------------------------

%package js
Summary:	Zabbix JS
Group:		Monitoring
%major_metadata js

%description js
Zabbix js command line utility.

%files js
%{_bindir}/zabbix_js

#-----------------------------------------------------------------------

%prep
%setup -q -n %{srcname}-%{version}%{?prerelease:.%{prerelease}} -b 22
%autopatch -p1

# Remove bundled java libs
rm -rf src/zabbix_java/lib/*.jar

# Remove prebuilt Windows binaries
rm -rf bin

# Override creation of statically named directory for alertscripts and externalscripts
# https://support.zabbix.com/browse/ZBX-6159
sed -i '/CURL_SSL_.*_LOCATION\|SCRIPTS_PATH/s|\${datadir}/zabbix|/var/lib/zabbixsrv|' \
    configure

# Kill off .htaccess files, options set in SOURCE1
rm -f frontends/php/app/.htaccess
rm -f frontends/php/conf/.htaccess
rm -f frontends/php/include/.htaccess
rm -f frontends/php/local/.htaccess

# Common
# Settings with hard-coded defaults that are not suitable for Fedora
# are explicitly set, leaving the comment with the default value in place.
# Settings without hard-coded defaults are simply replaced -- be they
# comments or explicit settings!

# Also replace the datadir placeholder that is not expanded, but effective
sed -i \
    -e '\|^# LogFileSize=.*|a LogFileSize=0' \
    -e 's|^DBUser=root|DBUser=zabbix|' \
    -e 's|^# DBSocket=/tmp/mysql.sock|# DBSocket=%{_sharedstatedir}/mysql/mysql.sock|' \
    -e '\|^# ExternalScripts=|a ExternalScripts=%{_sharedstatedir}/zabbixsrv/externalscripts' \
    -e '\|^# AlertScriptsPath=|a AlertScriptsPath=%{_sharedstatedir}/zabbixsrv/alertscripts' \
    -e '\|^# TmpDir=\/tmp|a TmpDir=%{_sharedstatedir}/zabbixsrv/tmp' \
    -e 's|/usr/local||' \
    -e 's|\${datadir}|/usr/share|' \
    -e 's|/etc/zabbix_agentd.conf.d|%{_sysconfdir}/%{srcname}/zabbix_agentd.d|' \
    -e 's|/etc/zabbix_agent2.conf.d|%{_sysconfdir}/%{srcname}/zabbix_agent2.d|' \
    conf/zabbix_agentd.conf \
    src/go/conf/zabbix_agent2.conf \
    conf/zabbix_proxy.conf \
    conf/zabbix_server.conf

sed -i \
    -e '\|^# PidFile=.*|a PidFile=%{_rundir}/zabbix/zabbix_agentd.pid' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agentd.log|' \
    conf/zabbix_agentd.conf

sed -i \
    -e '\|^# PidFile=.*|a PidFile=%{_rundir}/zabbix/zabbix_agent2.pid' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbix/zabbix_agent2.log|' \
    src/go/conf/zabbix_agent2.conf

sed -i \
    -e '\|^# PidFile=.*|a PidFile=%{_rundir}/zabbixsrv/zabbix_proxy.pid' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbixsrv/zabbix_proxy.log|' \
    conf/zabbix_proxy.conf

sed -i \
    -e '\|^# PidFile=.*|a PidFile=%{_rundir}/zabbixsrv/zabbix_server.pid' \
    -e 's|^LogFile=.*|LogFile=%{_localstatedir}/log/zabbixsrv/zabbix_server.log|' \
    conf/zabbix_server.conf

# `go install` into $RPM_BUILD_ROOT
sed -i'' -E -e 's,^GOBIN=.+,GOBIN=%{buildroot}%{_sbindir},' configure.ac

%build
autoreconf -if

common_flags="
    --enable-dependency-tracking
    --enable-proxy
    --enable-ipv6
    --enable-agent
    %{?with_agent2:--enable-agent2}
    --disable-java
    --with-net-snmp
    --with-ldap
    --with-libcurl
    --with-openipmi
    --with-unixodbc
    --with-ssh2
    --with-libxml2
    --with-libevent
    --with-libpcre
    --with-openssl
"

# Frontend doesn't work for SQLite, thus don't build server
%configure $common_flags --with-sqlite3
%make_build
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_sqlite3

%configure $common_flags --with-mysql --enable-server
make clean
%make_build
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_mysql
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_mysql

%configure $common_flags --with-postgresql --enable-server
make clean
%make_build
mv src/zabbix_server/zabbix_server src/zabbix_server/zabbix_server_pgsql
mv src/zabbix_proxy/zabbix_proxy src/zabbix_proxy/zabbix_proxy_pgsql

# Ghosted alternatives
touch src/zabbix_server/zabbix_server
touch src/zabbix_proxy/zabbix_proxy

%if %{with selinux}
# SELinux policy (originally from selinux-policy-contrib)
# this policy module will override the production module
mkdir selinux
cp -p %{SOURCE18} selinux/
cp -p %{SOURCE19} selinux/
cp -p %{SOURCE20} selinux/

make -f %{_datadir}/selinux/devel/Makefile %{srcname}.pp
bzip2 -9 %{srcname}.pp
%endif


%install
# Configuration, runtime and start-up
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}/web
mkdir -p %{buildroot}%{_sysconfdir}/logrotate.d
mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d
mkdir -p %{buildroot}%{_localstatedir}/log/zabbix
mkdir -p %{buildroot}%{_localstatedir}/log/zabbixsrv
mkdir -p %{buildroot}%{_unitdir}

# systemd tmpfiles
mkdir -p %{buildroot}%{_tmpfilesdir}
install -m 0644 -p %{SOURCE9} %{buildroot}%{_tmpfilesdir}/zabbix.conf
install -m 0644 -p %{SOURCE17} %{buildroot}%{_tmpfilesdir}/zabbixsrv.conf
mkdir -p %{buildroot}%{_rundir}
install -d -m 0755 %{buildroot}%{_rundir}/zabbix/
install -d -m 0755 %{buildroot}%{_rundir}/zabbixsrv/

# Frontend
mkdir -p %{buildroot}%{_datadir}/%{srcname}

# Home directory for the agent;
# The other home directory is created during installation
mkdir -p %{buildroot}%{_sharedstatedir}/zabbix

# Install binaries
make DESTDIR=%{buildroot} install
install -m 0755 -p src/zabbix_server/zabbix_server_* %{buildroot}%{_sbindir}/
install -m 0755 -p src/zabbix_proxy/zabbix_proxy_* %{buildroot}%{_sbindir}/

%if %{with web}
# Install the frontend after removing backup files from patching
find . -name '*.orig' -exec rm {} \;
cp -a ui/* %{buildroot}%{_datadir}/%{srcname}

# Prepare ghosted config file
touch %{buildroot}%{_sysconfdir}/%{srcname}/web/zabbix.conf.php

# Replace bundled font and JS libraries
# There is no jquery-ui package yet
#pushd %{buildroot}%{_datadir}/%{srcname}/fonts/
#rm DejaVuSans.ttf && ln -sf %{_datadir}/fonts/dejavu/DejaVuSans.ttf
#popd
pushd %{buildroot}%{_datadir}/%{srcname}/js/vendors/
rm jquery.js && ln -sf %{_datadir}/javascript/jquery/3/jquery.min.js jquery.js
popd

# Move MVC override directory out; We are not owning or creating this directory!
#TODO: README dort
rm -r frontends/php/local/ && ln -sf %{_usr}/local/share/zabbix/local %{buildroot}%{_datadir}/%{srcname}/local
#TODO: local vielleicht doch unter /etc/zabbix/web?

# This file is used to switch the frontend to maintenance mode
mv %{buildroot}%{_datadir}/%{srcname}/conf/maintenance.inc.php %{buildroot}%{_sysconfdir}/%{srcname}/web/maintenance.inc.php

# Drop Apache config file in place
install -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{srcname}.conf
%endif #with_web

# Install log rotation
sed -e 's|COMPONENT|agentd|g; s|USER|zabbix|g' %{SOURCE5} > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_agentd
%if %{with agent2}
sed -e 's|COMPONENT|agent2|g; s|USER|zabbix|g' %{SOURCE5} > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_agent2
%endif
sed -e 's|COMPONENT|server|g; s|USER|zabbixsrv|g' %{SOURCE5} > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_server
sed -e 's|COMPONENT|proxy|g; s|USER|zabbixsrv|g' %{SOURCE5} > \
     %{buildroot}%{_sysconfdir}/logrotate.d/zabbix_proxy

# Install different systemd units because of the requirements for DBMS daemons
install -m 0644 -p %{SOURCE10} %{buildroot}%{_unitdir}/zabbix-agent.service
%if %{with agent2}
install -m 0644 -p %{SOURCE21} %{buildroot}%{_unitdir}/zabbix-agent2.service
%endif
install -m 0644 -p %{SOURCE11} %{buildroot}%{_unitdir}/zabbix-proxy-mysql.service
install -m 0644 -p %{SOURCE12} %{buildroot}%{_unitdir}/zabbix-proxy-pgsql.service
install -m 0644 -p %{SOURCE13} %{buildroot}%{_unitdir}/zabbix-proxy-sqlite3.service
install -m 0644 -p %{SOURCE14} %{buildroot}%{_unitdir}/zabbix-server-mysql.service
install -m 0644 -p %{SOURCE15} %{buildroot}%{_unitdir}/zabbix-server-pgsql.service

# Ghosted alternatives
touch %{buildroot}%{_unitdir}/zabbix-server.service
touch %{buildroot}%{_unitdir}/zabbix-proxy.service

# Install compatibility links for config files
#TODO: Switch to .wants files instead!
ln -sf ../zabbix_agentd.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agentd.conf
%if %{with agent2}
ln -sf ../zabbix_agent2.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agent2.conf
%endif
ln -sf ../zabbix_server.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_server.conf
ln -sf ../zabbix_proxy.conf %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_proxy.conf
ln -sf ../../%{_sharedstatedir}/zabbixsrv/externalscripts %{buildroot}%{_sysconfdir}/%{srcname}/externalscripts
ln -sf ../../%{_sharedstatedir}/zabbixsrv/alertscripts %{buildroot}%{_sysconfdir}/%{srcname}/alertscripts
#TODO: What does that do to existing directories?

mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agentd.d
%if %{with agent2}
mkdir -p %{buildroot}%{_sysconfdir}/%{srcname}/zabbix_agent2.d
%endif

# install scripts and modules directories
# XXX already exists in rosa2019.05...
%if %{mdvver} >= 202110
mkdir -p %{buildroot}/%{_sharedstatedir}/zabbixsrv/
mv %{buildroot}%{_datadir}/zabbix/alertscripts %{buildroot}/%{_sharedstatedir}/zabbixsrv/
mv %{buildroot}%{_datadir}/zabbix/externalscripts %{buildroot}/%{_sharedstatedir}/zabbixsrv/
%endif

# Directory for fping spooling files
mkdir -p %{buildroot}%{_sharedstatedir}/zabbixsrv/tmp

# Install sql files
for db in postgresql mysql; do
    mkdir %{buildroot}%{_datadir}/%{srcname}-$db
    cp -p database/$db/*.sql %{buildroot}%{_datadir}/%{srcname}-$db
done

install -dm 755 %{buildroot}%{_datadir}/%{srcname}-sqlite3
cp -p database/sqlite3/schema.sql %{buildroot}%{_datadir}/%{srcname}-sqlite3

%if %{with selinux}
install -D -m 0644 %{srcname}.pp.bz2 %{buildroot}%{_datadir}/selinux/packages/targeted/%{srcname}.pp.bz2
%endif

#install sysuser config
install -d %{buildroot}%{_sysusersdir}/
install -m0644 %{SOURCE2} %{buildroot}%{_sysusersdir}/zabbix.conf
install -m0644 %{SOURCE3} %{buildroot}%{_sysusersdir}/zabbixsrv.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20447 |21mr|zchunk-1.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname zck %{major}
%define devname %mklibname zck -d

Summary:	Compressed file format that allows easy deltas
Name:		zchunk
Version:	1.2.2
Release:	2
License:	BSD and MIT
Group:		Archiving/Compression
Url:		https://github.com/zchunk/zchunk
Source0:	%{url}/archive/%{version}/%{name}-%{version}.tar.gz
Patch0:		CVE-2023-46228.patch
BuildRequires:	meson
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libzstd)
BuildRequires:	pkgconfig(openssl)
Requires:	%{libname} = %{EVRD}

%description
zchunk is a compressed file format that splits the file into independent
chunks.  This allows you to only download the differences when downloading a
new version of the file, and also makes zchunk files efficient over rsync.
zchunk files are protected with strong checksums to verify that the file you
downloaded is in fact the file you wanted.

%files
%doc README.md LICENSE
%{_bindir}/zck*
%{_bindir}/unzck
%{_libexecdir}/zck_gen_xml_dictionary
%{_mandir}/man1/*.1.*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Zchunk library
Group:		System/Libraries

%description -n %{libname}
zchunk is a compressed file format that splits the file into independent
chunks.  This allows you to only download the differences when downloading a
new version of the file, and also makes zchunk files efficient over rsync.
zchunk files are protected with strong checksums to verify that the file you
downloaded is in fact the file you wanted.

This package contains the zchunk library, libzck.

%files -n %{libname}
%doc README.md LICENSE
%{_libdir}/libzck.so.%{major}
%{_libdir}/libzck.so.%{version}

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Headers for building against zchunk
Group:		Development/C
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the headers necessary for building against the zchunk
library, libzck.

%files -n %{devname}
%doc zchunk_format.txt
%{_libdir}/libzck.so
%{_libdir}/pkgconfig/zck.pc
%{_includedir}/zck.h

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# Remove bundled sha libraries
rm -rf src/lib/hash/sha*

%build
%meson -Dwith-openssl=enabled -Dwith-zstd=enabled
%meson_build

%install
%meson_install

# Install script for generating XML dictionaries
install -Dpm 0755 contrib/gen_xml_dictionary %{buildroot}%{_libexecdir}/zck_gen_xml_dictionary

%check
%meson_test

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20448 |21mr|zd1211-firmware-1.5-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Firmware files for the ZD1211 chip
Name: zd1211-firmware
Version:	1.5
Release:	2
Source0: http://prdownloads.sourceforge.net/zd1211/%{name}-%{version}.tar.bz2
License: GPL
Group: System/Kernel and hardware
Url: http://sourceforge.net/projects/zd1211/
BuildArch: noarch

%description
This package contains the firmware files for the ZD1211 chip, which is
used in WLAN USB sticks.
The files are generated from C header files distributed in the
original ZyDAS ZD1211 driver under the GNU Public License.
The full source of the original ZYDAS driver is available from
http://www.deine-taler.de/zd1211/

%prep
%setup -q -n %{name}

%build

%install
install -d %{buildroot}/lib/firmware/zd1211
install -m644 zd1211* %{buildroot}/lib/firmware/zd1211

%files
%doc README
/lib/firmware/zd1211/zd1211*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20449 |21mr|zeek-4.0.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude libc.so.6\\(GLIBC_PRIVATE\\)

%define binpac_major 0
%define libbinpac %mklibname binpac %{binpac_major}
%define devbinpac %mklibname binpac -d

%define broker_major 2
%define libbroker %mklibname broker %{broker_major}
%define devbroker %mklibname broker -d

%define caf_major 0
%define libcaf_core %mklibname caf_core %{caf_major}
%define libcaf_io %mklibname caf_io %{caf_major}
%define libcaf_openssl %mklibname caf_openssl %{caf_major}
%define devcaf %mklibname caf -d

%define sdevparaglob %mklibname paraglob -d -s

Summary:	The Zeek Network Security Monitor
Name:		zeek
Version:	4.0.2
Release:	1
License:	BSD
Group:		Monitoring
Url:		https://www.zeek.org
Source0:	https://download.zeek.org/zeek-%{version}.tar.gz
BuildRequires:	bison
BuildRequires:	cmake
BuildRequires:	flex
BuildRequires:	glibc-static-devel
BuildRequires:	jemalloc-devel
BuildRequires:	pkgconfig(libmaxminddb)
BuildRequires:	pcap-devel
#We don't have it yet
#BuildRequires:	rocksdb-devel
BuildRequires:	pkgconfig(krb5)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(zlib)

%description
Zeek is a powerful network analysis framework that is much different from
the typical IDS you may know. While focusing on network security monitoring,
Zeek provides a comprehensive platform for more general network traffic
analysis as well.

%files
%doc COPYING NEWS README.md
%{_bindir}/bifcl
%{_bindir}/binpac
%{_bindir}/paraglob-test
%{_bindir}/zeek
%{_datadir}/%{name}
%dir %{_libdir}/%{name}
%dir %{_libdir}/%{name}/plugins
%{_mandir}/man8/%{name}.8*
%{_bindir}/broker-benchmark
%{_bindir}/broker-cluster-benchmark

#----------------------------------------------------------------------------

%package -n %{libbinpac}
Summary:	Zeek's protocol parser generator shared library
Group:		System/Libraries

%description -n %{libbinpac}
Zeek's protocol parser generator shared library.

%files -n %{libbinpac}
%{_libdir}/libbinpac.so.%{binpac_major}*

#----------------------------------------------------------------------------

%package -n %{devbinpac}
Summary:	Zeek's protocol parser generator library development files
Group:		Development/C
Requires:	%{libbinpac} = %{EVRD}
Provides:	binpac-devel = %{EVRD}

%description -n %{devbinpac}
Zeek's protocol parser generator library development files.

%files -n %{devbinpac}
%{_includedir}/binpac
%{_libdir}/libbinpac.so

#----------------------------------------------------------------------------

%package -n %{libbroker}
Summary:	Zeek's messaging shared library
Group:		System/Libraries

%description -n %{libbroker}
Zeek's messaging shared library.

%files -n %{libbroker}
%{_libdir}/libbroker.so.%{broker_major}*
%{_libdir}/libbroker.so.3

#----------------------------------------------------------------------------

%package -n %{devbroker}
Summary:	Zeek's messaging library development files
Group:		Development/C++
Requires:	%{libbroker} = %{EVRD}
Provides:	broker-devel = %{EVRD}

%description -n %{devbroker}
Zeek's messaging library development files.

%files -n %{devbroker}
%{_includedir}/broker
%{_libdir}/libbroker.so

#----------------------------------------------------------------------------

%package -n %{libcaf_core}
Summary:	Open source implementation of the Actor Model in C++ shared library
Group:		System/Libraries

%description -n %{libcaf_core}
Open source implementation of the Actor Model in C++ shared library.

%files -n %{libcaf_core}
%{_libdir}/libcaf_core.so.%{caf_major}*

#----------------------------------------------------------------------------

%package -n %{libcaf_io}
Summary:	Open source implementation of the Actor Model in C++ shared library
Group:		System/Libraries

%description -n %{libcaf_io}
Open source implementation of the Actor Model in C++ shared library.

%files -n %{libcaf_io}
%{_libdir}/libcaf_io.so.%{caf_major}*

#----------------------------------------------------------------------------

%package -n %{libcaf_openssl}
Summary:	Open source implementation of the Actor Model in C++ shared library
Group:		System/Libraries

%description -n %{libcaf_openssl}
Open source implementation of the Actor Model in C++ shared library.

%files -n %{libcaf_openssl}
%{_libdir}/libcaf_openssl.so.%{caf_major}*

#----------------------------------------------------------------------------

%package -n %{devcaf}
Summary:	Open source implementation of the Actor Model in C++ development files
Group:		Development/C++
Requires:	%{libcaf_core} = %{EVRD}
Requires:	%{libcaf_io} = %{EVRD}
Requires:	%{libcaf_openssl} = %{EVRD}
Provides:	caf-devel = %{EVRD}

%description -n %{devcaf}
Open source implementation of the Actor Model in C++ development files.

%files -n %{devcaf}
%{_includedir}/caf
%{_libdir}/libcaf_core.so
%{_libdir}/libcaf_io.so
%{_libdir}/libcaf_openssl.so
%{_libdir}/cmake/CAF/CAFConfig.cmake
%{_libdir}/cmake/CAF/CAFConfigVersion.cmake
%{_libdir}/cmake/CAF/CAFTargets-relwithdebinfo.cmake
%{_libdir}/cmake/CAF/CAFTargets.cmake

#----------------------------------------------------------------------------

%package -n %{sdevparaglob}
Summary:	Data structure for matching a string against a large list of patterns
Group:		Development/C
Provides:	paraglob-devel = %{EVRD}

%description -n %{sdevparaglob}
Development headers and static library for data structure for matching a string
against a large list of patterns.

%files -n %{sdevparaglob}
%{_includedir}/paraglob/
%{_libdir}/libparaglob.a

#----------------------------------------------------------------------------

%package devel
Summary:	Zeek's development files
Group:		Development/C
# Not sure if they are really required... (abondrov)
Requires:	%{devbinpac} = %{EVRD}
Requires:	%{devbroker} = %{EVRD}
Requires:	%{devcaf} = %{EVRD}
Requires:	%{sdevparaglob} = %{EVRD}

%description devel
Zeek's development files.

%files devel
%{_bindir}/zeek-config
%{_includedir}/zeek

#----------------------------------------------------------------------------

%package -n python3-broker
Summary:	Python bindings for Zeek's messaging library
Group:		Development/Python
Requires:	pythonegg(ipaddress)

%description -n python3-broker
Python bindings for Zeek's messaging library.

%files -n python3-broker
%{python3_sitearch}/broker/*
#%%{python3_sitearch}/broker/__pycache__/*

#----------------------------------------------------------------------------

%prep
%autosetup -p1

%build
%cmake \
	-DENABLE_JEMALLOC:BOOL=ON \
	-DZEEK_PYTHON_DIR=%{python3_sitearch}/broker

%make V=1

%install
%makeinstall_std -C build

# We don't need support for legacy stuff
rm -f %{buildroot}%{_bindir}/bro
rm -f %{buildroot}%{_bindir}/bro-config
rm -f %{buildroot}%{_bindir}/zeek-wrapper

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20450 |21mr|zeitgeist-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define api 2.0
%define major 0
%define libname %mklibname %{name} %{api} %{major}
%define girname %mklibname %{name}-gir %{api}
%define devname %mklibname %{name} %{api} -d

Summary:	Event logging framework for the desktop
Name:		zeitgeist
Version:	1.0.3
Release:	1
License:	LGPLv3
Group:		System/Libraries
Url:		http://launchpad.net/zeitgeist
Source0:	http://launchpad.net/%{name}/1.0/%{version}/+download/%{name}-%{version}.tar.xz
# include upstream patches for vala 0.52 support
Patch1:		0001-use-genericarray-api-only.patch
Patch2:		0002-fix-syntax-of-namespace-docs.patch
Patch3:		0003-sync-custom-g-assert-cmp-bindings.patch
BuildRequires:	intltool
BuildRequires:	python3-rdflib
BuildRequires:	raptor2
BuildRequires:	vala-tools
BuildRequires:	pkgconfig(xapian-core)
BuildRequires:	pkgconfig(dbus-1)
BuildRequires:	pkgconfig(gobject-introspection-1.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(json-glib-1.0)
BuildRequires:	pkgconfig(python3)
BuildRequires:	pkgconfig(sqlite3)
BuildRequires:	pkgconfig(telepathy-glib) >= 0.18.0
BuildRequires:	pkgconfig(vapigen)
Requires:	python3-dbus
Requires:	python3-storm

%description
Zeitgeist is an "Event Logging Framework" that provides cross
application awareness of the desktop's activities.

You worked on a file, but you cannot remember where you saved it? You
visited a web page about basketball three days ago, but you cannot
find the URL in your browser's history? No problem, this is where
Zeitgeist enters the scene. It knows a lot about your activities and
has a feature rich D-Bus API which allows GUI applications like
gnome-zeitgeist, zeitgeistfs and others to present you your
activities in a readable way.

%files
%doc AUTHORS NEWS
%{_sysconfdir}/xdg/autostart/*.desktop
%{_bindir}/%{name}*
%{_libexecdir}/zeitgeist/zeitgeist-fts
%{_datadir}/%{name}
%{_datadir}/bash-completion/completions/zeitgeist-daemon
%{_datadir}/dbus-1/services/org.gnome.zeitgeist.Engine.service
%{_datadir}/dbus-1/services/org.gnome.zeitgeist.SimpleIndexer.service
%{_mandir}/man1/%{name}*.1*
%{_userunitdir}/zeitgeist.service
%{_userunitdir}/zeitgeist-fts.service
%{py3_puresitedir}/%{name}

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Shared library for Zeitgeist
Group:		System/Libraries

%description -n %{libname}
This is a library to provide data to %{name}

%files -n %{libname}
%{_libdir}/libzeitgeist-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{girname}
Summary:	GObject Introspection interface library for Zeitgeist
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}
Conflicts:	%{_lib}zeitgeist2.0_0 < 1.0

%description -n %{girname}
GObject Introspection interface library for Zeitgeist.

%files -n %{girname}
%{_libdir}/girepository-1.0/Zeitgeist-%{api}.typelib

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for Zeitgeist
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Requires:	%{girname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Obsoletes:	%{_lib}%{name}2-devel < 1.0

%description -n %{devname}
Development files for Zeitgeist.

%files -n %{devname}
%{_includedir}/zeitgeist-%{api}
%{_libdir}/libzeitgeist-%{api}.so
%{_datadir}/gir-1.0/Zeitgeist-%{api}.gir
%{_datadir}/pkgconfig/zeitgeist-%{api}.pc
%{_datadir}/vala/vapi/zeitgeist-%{api}.deps
%{_datadir}/vala/vapi/zeitgeist-%{api}.vapi
%{_datadir}/vala/vapi/zeitgeist-datamodel-%{api}.vapi

#----------------------------------------------------------------------------

%prep
%autosetup -p1

## nuke unwanted rpaths, see also
## https://fedoraproject.org/wiki/Packaging/Guidelines#Beware_of_Rpath
sed -i -e 's|"/lib /usr/lib|"/%{_lib} %{_libdir}|' configure


%build
export PYTHON=%{__python3}
%configure \
	--enable-fts
%make

%install
%makeinstall_std pkgconfigdir=%{_datadir}/pkgconfig
rm -f %{buildroot}%{_mandir}/man1/%{name}-datahub.1*
rm -rf %{buildroot}%{_prefix}/doc/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20451 |21mr|zenity-3.42.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define url_ver %(echo %{version}|cut -d. -f1,2)

%bcond_without  webkit

Summary:	Call GNOME dialog boxes from the command line
Name:		zenity
Version:	3.42.1
Release:	2
License:	LGPLv2+
Group:		Development/GNOME and GTK+
Url:		https://download.gnome.org/sources/zenity
Source0:	https://download.gnome.org/sources/zenity/%{url_ver}/%{name}-%{version}.tar.xz
BuildRequires:	gnome-common
BuildRequires:	intltool
BuildRequires:	itstool
BuildRequires:	libxml2-utils
BuildRequires:	libxslt-proc
BuildRequires:	meson
BuildRequires:	yelp-tools
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)
BuildRequires:	pkgconfig(libnotify)
%if !%{without webkit}
BuildRequires:	pkgconfig(webkit2gtk-4.0)
%endif
BuildRequires:	pkgconfig(x11)

%description
Zenity allows you to display dialog boxes from the commandline and shell
scripts.

%files -f %{name}-0.1.lang
%doc AUTHORS HACKING NEWS README THANKS TODO
%license COPYING
%{_bindir}/*
%{_datadir}/%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%meson	\
	-Dlibnotify=true	\
%if !%{without webkit}
	-Dwebkitgtk=true
%endif

%meson_build

%install
%meson_install

%find_lang %{name}-0.1 --with-gnome --all-name

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20452 |21mr|zerofree-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Utility to force unused ext2 inodes and blocks to zero
Name:   	zerofree
Version:	1.1.1
Release:	1
License:	GPLv2
Group:  	File tools
URL:    	https://frippery.org/uml/
Source0:	https://frippery.org/uml/%{name}-%{version}.tgz
Source1:	https://frippery.org/uml/sparsify.c
Source2:	https://frippery.org/uml/index.html
Source3:	zerofree.sgml
Source4:	zerofree.8
BuildRequires:	pkgconfig(ext2fs)


%description
zerofree is a utility to set unused filesystem inodes and blocks of an
ext2 filesystem to zero.  This can improve the compressibility and
privacy of an ext2 filesystem.

This tool was inspired by the ext2fs privacy (i.e. secure deletion)
patch described in a Linux kernel mailing list thread.

WARNING: The filesystem to be processed should be unmounted or mounted
read-only.  The tool tries to check this before running, but you
should be careful.


%prep
%setup -q
cp -p %{SOURCE1} .
cp -p %{SOURCE2} .


%build
%make_build CC="gcc $RPM_OPT_FLAGS"
%{__cc} $RPM_OPT_FLAGS sparsify.c -o sparsify -lext2fs


%install
install -D -p -m 755 zerofree $RPM_BUILD_ROOT%{_sbindir}/zerofree
install -D -p -m 755 sparsify $RPM_BUILD_ROOT%{_sbindir}/sparsify
install -D -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_mandir}/man8/zerofree.8


%files
%doc index.html
%license COPYING
%{_sbindir}/zerofree
%{_sbindir}/sparsify
%{_mandir}/man8/zerofree.8*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20453 |21mr|zeromq-4.3.4-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#define	debug_package %%{nil}

%define	cppversion	4.7.1

%define	major 5
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Software library for fast, message-based applications
Name:		zeromq
Version:	4.3.4
Release:	2
License:	LGPLv3+
Group:		Development/Other
Url:		http://www.zeromq.org
Source0:	https://github.com/zeromq/libzmq/releases/download/v%{version}/%{name}-%{version}.tar.gz
Source1:	https://github.com/zeromq/cppzmq/archive/v%{cppversion}.tar.gz?/cppzmq-%{cppversion}.tar.gz
BuildRequires:	asciidoc
BuildRequires:	xmlto
BuildRequires:	cmake
BuildRequires:	libstdc++-devel
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libsodium)
%ifnarch %{riscv}
BuildRequires:	valgrind
%endif
%ifnarch %{e2k}
BuildRequires:	pkgconfig(libunwind)
%endif
BuildRequires:	pkgconfig(openpgm-5.2)
BuildRequires:	pkgconfig(uuid)

%description
The 0MQ lightweight messaging kernel is a library which extends the standard
socket interfaces with features traditionally provided by specialized
messaging middle-ware products. 0MQ sockets provide an abstraction of
asynchronous message queues, multiple messaging patterns, message filtering
(subscriptions), seamless access to multiple transport protocols and more.

%files
%doc AUTHORS COPYING* NEWS
%{_docdir}/zmqcpp/*
%{_bindir}/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Software library for fast, message-based applications
Group:		System/Libraries

%description -n %{libname}
The 0MQ lightweight messaging kernel is a library which extends the standard
socket interfaces with features traditionally provided by specialized
messaging middle-ware products. 0MQ sockets provide an abstraction of
asynchronous message queues, multiple messaging patterns, message filtering
(subscriptions), seamless access to multiple transport protocols and more.
This package contains the ${name} shared library.

%files -n %{libname}
%doc AUTHORS COPYING* NEWS
%{_libdir}/libzmq.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The 0MQ lightweight messaging kernel is a library which extends the standard
socket interfaces with features traditionally provided by specialized
messaging middle-ware products. 0MQ sockets provide an abstraction of
asynchronous message queues, multiple messaging patterns, message filtering
(subscriptions), seamless access to multiple transport protocols and more.
This package contains the libraries and header files needed to develop
applications that use %{name}.

%files -n %{devname}
%doc AUTHORS COPYING* NEWS
%{_libdir}/libzmq.so
%{_libdir}/pkgconfig/libzmq.pc
%{_libdir}/cmake/ZeroMQ/*.cmake
%{_includedir}/zmq*
%optional %{_mandir}/man3/zmq*
%optional %{_mandir}/man7/zmq*

#----------------------------------------------------------------------------

%prep
%setup -a 1 -q

%build
%cmake -DBUILD_SHARED=ON -DWITH_DOC=OFF
%make_build

%install
%make_install -C build

pushd cppzmq-%{cppversion}
install -D -m 0644 zmq.hpp %{buildroot}%{_includedir}
install -D -m 0644 zmq_addon.hpp %{buildroot}%{_includedir}
install -d %{buildroot}%{_docdir}/zmqcpp
install -D -m 0644 LICENSE README.md %{buildroot}/%{_docdir}/zmqcpp
popd

rm -fv %{buildroot}/%{_datadir}/zmq/*.txt
rm -fv %{buildroot}/%{_libdir}/*.a
%check
#make check V=1 -C build || cat ./test-suite.log

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20454 |21mr|zfs-fuse-0.7.2.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _hardened_build 1

Summary:	ZFS ported to Linux FUSE
Name:		zfs-fuse
Version:	0.7.2.2
Release:	2
Group:		System/Libraries
License:	CDDL
Url:		https://github.com/gordan-bobic/zfs-fuse
Source00:	http://github.com/gordan-bobic/zfs-fuse/archive/%{name}-%{version}.tar.gz
Source01:	zfs-fuse.service
Source02:	zfs-fuse.scrub
Source03:	zfs-fuse.sysconfig
Source04:	zfs-fuse-helper
Patch0:		zfs-fuse-0.7.2.2-stack.patch
Patch1:		zfs-fuse-0.7.2.2-python3.patch
Patch2:		tirpc.patch
Patch3:		common.patch
BuildRequires:	libaio-devel
BuildRequires:	scons
BuildRequires:	attr-devel
BuildRequires:	pkgconfig(bzip2)
BuildRequires:	pkgconfig(fuse)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(lzo2)
BuildRequires:	pkgconfig(openssl)
BuildRequires:	pkgconfig(systemd)
BuildRequires:	pkgconfig(zlib)
Requires:	fuse
Requires(post):	systemd
Requires(preun): systemd
Requires(postun): systemd
# (2010 karsten@redhat.com) zfs-fuse doesn't have s390(x) implementations for atomic instructions
ExcludeArch:	s390 s390x %{arm} aarch64

%description
ZFS is an advanced modern general-purpose filesystem from Sun
Microsystems, originally designed for Solaris/OpenSolaris.

This project is a port of ZFS to the FUSE framework for the Linux
operating system.

%files
%doc BUGS CHANGES contrib HACKING README README.NFS STATUS TESTING TODO
%license LICENSE
%{_mandir}/man8/zdb.8.*
%{_mandir}/man8/zfs.8.*
%{_mandir}/man8/zfs-fuse.8.*
%{_mandir}/man8/zpool.8.*
%{_mandir}/man8/zstreamdump.8.*
%{_sbindir}/mount.zfs
%{_sbindir}/zdb
%{_sbindir}/zfs
%{_sbindir}/zfs-fuse
%{_sbindir}/zfs-fuse-helper
%{_sbindir}/zpool
%{_sbindir}/zstreamdump
%{_sbindir}/ztest
%{_sysconfdir}/cron.weekly/98-%{name}-scrub
%{_sysconfdir}/%{name}/
%config(noreplace) %{_sysconfdir}/sysconfig/%{name}
%{_unitdir}/%{name}.service

%post
# Move cache if upgrading
oldcache=/etc/zfs/zpool.cache      # this changed per 0.6.9, only needed when upgrading from earlier versions
newcache=/var/lib/zfs/zpool.cache

if [[ -f $oldcache && ! -e $newcache ]]; then
	echo "Moving existing zpool.cache to new location"
	mkdir -p $(dirname $newcache)
	mv $oldcache $newcache
else
	 if [ -e $oldcache ]; then
		echo "Note: old zpool.cache present but no longer used ($oldcache)"
	fi
fi

%_post_service zfs-fuse

%preun
%_preun_service zfs-fuse

%postun
%systemd_postun_with_restart zfs-fuse.service
echo "Removing files since we removed the last package"
rm -rf /var/run/zfs
rm -rf /var/lock/zfs

#------------------------------------------------------------------

%prep
%setup -q
%patch0 -p0
%patch1 -p1
%patch2 -p1
%patch3 -p0

f=LICENSE
mv $f $f.iso88591
iconv -o $f -f iso88591 -t utf8 $f.iso88591
rm -f $f.iso88591

chmod -x contrib/test-datasets
chmod -x contrib/find-binaries
chmod -x contrib/solaris/fixfiles.py
chmod -x contrib/zfsstress.py
%config_update

%build
export CCFLAGS="%{optflags}"
pushd src

scons debug=2 optim='%{optflags}'

%install
pushd src
%scons_install debug=1 install_dir=%{_sbindir} man_dir=%{_mandir}/man8/ cfg_dir=%{_sysconfdir}/%{name}

install -Dp -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/%{name}.service
install -Dp -m 0755 %{SOURCE2} %{buildroot}%{_sysconfdir}/cron.weekly/98-%{name}-scrub
install -Dp -m 0644 %{SOURCE3} %{buildroot}%{_sysconfdir}/sysconfig/%{name}
install -Dp -m 0755 %{SOURCE4} %{buildroot}%{_sbindir}/zfs-fuse-helper

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20455 |21mr|zimg-3.0.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	major 2
%define	libname %mklibname %{name} %{major}
%define	devname %mklibname %{name} -d

Summary:	Resizing, color space and bit depth conversion library
Name:		zimg
Version:	3.0.4
Release:	1
License:	LGPLv2+
Group:		Video
Url:		https://github.com/sekrit-twc/zimg
Source0:	https://github.com/sekrit-twc/zimg/archive/release-%{version}/%{name}-release-%{version}.tar.gz

%description
The "z" library implements the commonly required image processing basics of
scaling, color space conversion, and depth conversion. A simple API enables
conversion between any supported formats to operate with minimal knowledge
from the programmer. All library routines were designed from the ground-up
with flexibility, thread-safety, and correctness as first priorities.
Allocation, buffering, and I/O are cleanly separated from processing, allowing
the programmer to adapt "z" to many scenarios.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Resizing, color space and bit depth conversion library
Group:		System/Libraries

%description -n %{libname}
The "z" library implements the commonly required image processing basics of
scaling, color space conversion, and depth conversion. A simple API enables
conversion between any supported formats to operate with minimal knowledge
from the programmer. All library routines were designed from the ground-up
with flexibility, thread-safety, and correctness as first priorities.
Allocation, buffering, and I/O are cleanly separated from processing, allowing
the programmer to adapt "z" to many scenarios.

%files -n %{libname}
%doc COPYING
%{_libdir}/libzimg.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
The "z" library implements the commonly required image processing basics of
scaling, color space conversion, and depth conversion.
This package contains the development files for the %{name} library.

%files -n %{devname}
%doc COPYING ChangeLog README.md
%{_includedir}/%{name}.h
%{_includedir}/zimg++.hpp
%{_libdir}/libzimg.so
%{_libdir}/pkgconfig/%{name}.pc

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-release-%{version}


%build
autoreconf -vfi
%configure --disable-static

%make


%install
%makeinstall_std

rm -rf %{buildroot}%{_datadir}/doc/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20456 |21mr|zinc-0.3.1-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           zinc
Version:        0.3.1
Release:        8
Summary:        Incremental scala compiler
License:        ASL 2.0
URL:            https://github.com/typesafehub/zinc
Group:          Development/Java
BuildArch:      noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

Source0:        https://github.com/typesafehub/zinc/archive/v%{version}.tar.gz
Source1:        http://repo1.maven.org/maven2/com/typesafe/zinc/zinc/%{version}/zinc-%{version}.pom
# ASL mandates that the licence file be included in redistributed source
Source2:        http://www.apache.org/licenses/LICENSE-2.0.txt

# Patch fixes compilation failure, which is probably caused by
# incompatible Scala version
Patch0:         0001-Fix-file-filtering.patch

BuildRequires:  javapackages-local
BuildRequires:  mvn(org.scala-lang:scala-library)
BuildRequires:  mvn(org.scala-sbt:incremental-compiler)
BuildRequires:  mvn(com.martiansoftware:nailgun-server)

%description
Zinc is a stand-alone version of sbt's incremental compiler.

%prep
%setup -q
rm -rf src/scriptit dist nailgun project

%patch0 -p1

cp %{SOURCE1} pom.xml
cp %{SOURCE2} LICENSE.txt

%pom_xpath_remove "pom:dependency[pom:classifier='sources']"
%pom_change_dep :incremental-compiler org.scala-sbt:

%build
scalac -cp $(build-classpath sbt nailgun) src/main/scala/com/typesafe/zinc/*
jar cf zinc.jar com
%mvn_artifact pom.xml zinc.jar

%install
%mvn_install

%files -f .mfiles
%doc README.md
%license LICENSE.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20457 |21mr|zip-3.0-15
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define filever %(echo %{version}|sed s/\\\\\.//)

Summary:	A file compression and packaging utility compatible with PKZIP
Name:		zip
Version:	3.0
Release:	15
License:	BSD-like
Group:		Archiving/Compression
Url:		http://www.info-zip.org/pub/infozip/
Source0:	http://dfn.dl.sourceforge.net/sourceforge/infozip/%{name}%{filever}.zip
Patch0:		zip-2.3-unforce-cflags.patch
Patch1:		zip-2.3-noninteractivepassword+testencrypedfile.patch
Patch2:		zip-3.0-format_not_a_string_literal_and_no_format_arguments.diff
Patch3:		zip-3.0-LDFLAGS.diff
Patch4:		CVE-2018-13410.patch
BuildRequires:	bzip2-devel

%description
The zip program is a compression and file packaging utility. Zip is analogous
to a combination of the UNIX tar and compress commands and is compatible with
PKZIP (a compression and file packaging utility for MS-DOS systems).

Install the zip package if you need to compress files using the zip program.

This version support crypto encryption.

%files
%doc BUGS CHANGES INSTALL README TODO WHATSNEW WHERE LICENSE
%attr(0755,root,root) %{_bindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}%{filever}
%patch0 -p1 -b .cflags
%patch1 -p0 -b .pass
%patch2 -p0 -b .format_not_a_string_literal_and_no_format_arguments
%patch3 -p0 -b .LDFLAGS
%patch4 -p1

%build
make -ef unix/Makefile \
	prefix=%{prefix} \
	CC="gcc %{optflags} \
	-D_FILE_OFFSET_BITS=64" \
	LOCAL_ZIP="%{optflags}" \
	LDFLAGS="%{ldflags}" \
	generic_gcc

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1

%makeinstall -f unix/Makefile \
	MANDIR=%{buildroot}%{_mandir}/man1 \
	INSTALL=install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20458 |21mr|zlib-1.2.13-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#%%global __provides_exclude_from ^%%{_libdir}/pkgconfig/minizip\\.pc$
%define shortname z
%define major 1
%define libname %mklibname %{shortname} %{major}
%define devname %mklibname %{shortname} -d
%define biarchname lib%{shortname}%{major}
%define libminizip %mklibname minizip %{major}
%define devminizip %mklibname minizip -d

%bcond_without minizip

Summary:	The zlib compression and decompression library
Name:		zlib
Version:	1.2.13
Release:	1
License:	zlib and Boost
Group:		System/Libraries
Url:		http://www.zlib.net
Source0:	https://github.com/madler/zlib/archive/v%{version}/%{name}-%{version}.tar.gz
# https://github.com/madler/zlib/pull/210
Patch0:		zlib-1.2.5-minizip-fixuncrypt.patch
Patch6:		CVE-2023-45853.patch

%description
Zlib is a general-purpose, patent-free, lossless data compression
library which is used by many different programs.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	The zlib compression and decompression library
Group:		System/Libraries
%rename		%{_lib}zlib1
%rename		%{name}
%rename		%{name}1

%description -n %{libname}
The zlib compression library provides in-memory compression and
decompression functions, including integrity checks of the uncompressed
data.  This version of the library supports only one compression method
(deflation), but other algorithms may be added later, which will have
the same stream interface.  The zlib library is used by many different
system programs.

%files -n %{libname}
%doc README
%{_libdir}/libz.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and libraries for developing apps which will use zlib
Group:		Development/C
Provides:   zlib-static-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
%rename		%{_lib}zlib-devel
%rename		%{name}-devel
%rename		%{name}1-devel

%description -n %{devname}
The zlib-devel package contains the header files and libraries needed
to develop programs that use the zlib compression and decompression
library.

%files -n %{devname}
%doc README ChangeLog doc/algorithm.txt
%{_includedir}/*
%{_libdir}/*.a
%{_libdir}/*.so
%{_libdir}/pkgconfig/zlib.pc
%{_mandir}/man3/zlib.3*
%if %{with minizip}
%exclude %{_libdir}/libminizip.so
%exclude %{_includedir}/minizip
%endif

#----------------------------------------------------------------------------

%if %{with minizip}
%package -n %{libminizip}
Summary:	Library for manipulation with .zip archives
Group:		System/Libraries
Requires:	%{libname} = %{EVRD}

%description -n %{libminizip}
Minizip is a library for manipulation with files from .zip archives.

%files -n %{libminizip}
%{_libdir}/libminizip.so.%{major}*
%endif

#----------------------------------------------------------------------------

%if %{with minizip}
%package -n %{devminizip}
Summary:	Development files for the minizip library
Group:		Development/C
Requires:	%{libminizip} = %{EVRD}
Requires:	%{devname} = %{EVRD}
Provides:	minizip-devel = %{EVRD}

%description -n %{devminizip}
This package contains the libraries and header files needed for
developing applications which use minizip.

%files -n %{devminizip}
%{_libdir}/pkgconfig/minizip.pc
%{_libdir}/libminizip.so
%{_includedir}/minizip/*
%endif

#----------------------------------------------------------------------------

%prep
%autosetup -p1

iconv -f iso-8859-2 -t utf-8 < ChangeLog > ChangeLog.tmp
mv ChangeLog.tmp ChangeLog

%build
export CFLAGS="%{optflags}"
export LDFLAGS="$LDFLAGS -Wl,-z,relro -Wl,-z,now"
# no-autotools, %%configure is not compatible
./configure --libdir=%{_libdir} --includedir=%{_includedir} --prefix=%{_prefix}
sed -i 's|CC=gcc|CC=%{__cc}|g' Makefile
sed -i 's|LDSHARED=gcc|LDSHARED=%{__cc}|g' Makefile
%make_build CC=%{__cc}

%if %{with minizip}
cd contrib/minizip
autoreconf --install
%configure --enable-static=no
%make CC=%{__cc}
%endif

%check
make test

%install
%make_install

%if %{with minizip}
%make_install -C contrib/minizip
# https://github.com/madler/zlib/pull/229
rm %{buildroot}%{_includedir}/minizip/crypt.h
%endif

find %{buildroot} -name '*.la' -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20459 |21mr|znerd-oss-parent-3-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          znerd-oss-parent
Version:       3
Release:       18
Summary:       Znerd.org OSS Parent
License:       BSD
URL:           https://github.com/znerd/znerd-oss-parent
Source0:       https://github.com/znerd/%{name}/archive/%{name}-%{version}.tar.gz

BuildRequires: maven-local
BuildRequires: mvn(org.apache.maven.plugins:maven-enforcer-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-release-plugin)
# required by enforcer-plugin
BuildRequires: mvn(org.apache.maven.shared:maven-common-artifact-filters)
BuildRequires: mvn(org.apache.maven.shared:maven-shared-components:pom:)
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
Parent for znerd.org OSS Projects.

%prep
%setup -q -n %{name}-%{name}-%{version}

%pom_remove_plugin org.apache.maven.plugins:maven-eclipse-plugin

%build
%mvn_build

%install
%mvn_install

%files -f .mfiles
%doc CHANGES.txt README.txt
%license COPYRIGHT.txt


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20460 |21mr|zookeeper-3.4.9-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global _hardened_build 1
%global skiptests       1

Name:          zookeeper
Version:       3.4.9
Release:       13
Summary:       A high-performance coordination service for distributed applications
License:       ASL 2.0 and BSD
Group:         Development/Java
URL:           https://zookeeper.apache.org/
Source0:       https://www.apache.org/dist/%{name}/%{name}-%{version}.tar.gz
Source1:       %{name}-ZooInspector-template.pom
Source2:       %{name}.service
Source3:       zkEnv.sh

Patch1:        %{name}-3.4.5-zktreeutil-gcc.patch
Patch2:        %{name}-3.4.9-ivy-build.patch
Patch3:        %{name}-3.4.9-server.patch
# ZOOKEEPER-1643; patch accepted in 3.5.0
Patch4:        mt_adaptor.c.patch
Patch5:        0001-cppunit-config-no-longer-exists-use-pkg-config.patch
Patch6:        missing-pom.template.patch


BuildRequires: autoconf
BuildRequires: automake
BuildRequires: boost-devel
BuildRequires: pkgconfig(cppunit)
BuildRequires: dos2unix
BuildRequires: doxygen
BuildRequires: gcc-c++
BuildRequires: graphviz
BuildRequires: java-devel
BuildRequires: java-javadoc
BuildRequires: jpackage-utils
BuildRequires: libtool
BuildRequires: libxml2-devel
BuildRequires: python3-devel

BuildRequires: ant
BuildRequires: ant-junit
BuildRequires: apache-ivy
BuildRequires: checkstyle
BuildRequires: ivy-local
BuildRequires: javapackages-tools

BuildRequires: jtoaster
BuildRequires: junit
BuildRequires: jdiff
BuildRequires: mvn(org.slf4j:slf4j-log4j12)
BuildRequires: objectweb-pom
BuildRequires: jline1
BuildRequires: netty3
Requires:      log4j12
BuildRequires: mvn(log4j:log4j)
BuildRequires: jline
BuildRequires: netty
Requires:      log4j

BuildRequires: json_simple

BuildRequires: mockito
BuildRequires: slf4j
BuildRequires: xerces-j2
BuildRequires: xml-commons-apis

# remove later on.
BuildRequires: apache-commons-parent
BuildRequires: jetty-server
BuildRequires: jetty-servlet
BuildRequires: systemd

Requires:      checkstyle
Requires:      jline1
Requires:      jtoaster
Requires:      junit
Requires:      mockito
Requires:      netty3
Requires:      slf4j
Requires:      java
Requires:      jpackage-utils
Requires:      %{name}-java = %{version}-%{release}

%description
ZooKeeper is a centralized service for maintaining configuration information,
naming, providing distributed synchronization, and providing group services.

##############################################
%package devel
Summary:       Development files for the %{name} library
Requires:      %{name}%{?_isa} = %{version}-%{release}

%description devel
Development files for the ZooKeeper C client library.

##############################################
%package java
Summary:        Java interface for %{name}
Requires:       %{name}%{?_isa} = %{version}-%{release}

%description java
The %{name}-java package contains Java bindings for %{name}.

##############################################
%package javadoc
Summary:       Javadoc for %{name}
Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description javadoc
This package contains javadoc for %{name}.

%package -n python3-%{name}
%{?python_provide:%python_provide python3-%{name}}
Summary:       Python support for %{name}
Requires:      %{name}%{?_isa} = %{version}-%{release}

%description -n python3-%{name}
Python bindings for %{name}.

%prep
%autosetup -p1

# Do not treat C compile-time warnings as errors
sed -i -e's/-Werror//' src/c/Makefile.am

iconv -f iso8859-1 -t utf-8 src/c/ChangeLog > src/c/ChangeLog.conv && mv -f src/c/ChangeLog.conv src/c/ChangeLog
sed -i 's/\r//' src/c/ChangeLog

sed -i 's|<exec executable="hostname" outputproperty="host.name"/>|<!--exec executable="hostname" outputproperty="host.name"/-->|' build.xml
sed -i 's|<attribute name="Built-On" value="${host.name}" />|<attribute name="Built-On" value="${user.name}" />|' build.xml

sed -i 's@^dataDir=.*$@dataDir=%{_sharedstatedir}/zookeeper/data\ndataLogDir=%{_sharedstatedir}/zookeeper/log@' conf/zoo_sample.cfg

%build
%ant -Divy.mode=local \
-DCLASSPATH=/usr/share/java/log4j12-1.2.17.jar \
-Dtarget.jdk=1.5 \
-Djavadoc.link.java=%{_javadocdir}/java \
-Dant.build.javac.source=1.5 \
-Dant.build.javac.target=1.5 \
package

# cppunit-config patch touches configure.ac in these dirs
pushd src/recipes/lock/src/c
autoreconf -if
popd
pushd src/recipes/queue/src/c
autoreconf -if
popd

pushd src/c
autoreconf -if
%configure --disable-static --disable-rpath
%{__make} %{?_smp_mflags}
popd

## TODO: install utilities?

%check
%if %skiptests
  echo "Testing disabled, please enable in mock"
%else
  %ant -Divy.mode=local test
%endif

%install

# the following is used to update zkEnv.sh
# find . -name "*.jar" -exec basename {} \; |sort|uniq
# remove items that don't belong and update execute build-classpath

#install the c tools
pushd src/c
%make_install
popd

# install the java dependencies.
mkdir -p %{buildroot}%{_javadir}/%{name}
install -pm 644 build/%{name}-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
install -pm 644 build/%{name}-%{version}-test.jar %{buildroot}%{_javadir}/%{name}/%{name}-tests.jar
install -pm 644 build/contrib/ZooInspector/%{name}-%{version}-ZooInspector.jar %{buildroot}%{_javadir}/%{name}/%{name}-ZooInspector.jar

install -pm 755 bin/zkCleanup.sh %{buildroot}%{_bindir}
install -pm 755 bin/zkCli.sh %{buildroot}%{_bindir}
install -pm 755 bin/zkServer.sh %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_libexecdir}
install -pm 755 %{SOURCE3} %{buildroot}%{_libexecdir}

%if 0%{?fedora} >= 21 || 0%{?rhel} > 7
mkdir -p %{buildroot}%{_datadir}/maven-metadata
mkdir -p %{buildroot}%{_datadir}/maven-poms
install -pm 644 build/%{name}-%{version}/dist-maven/%{name}-%{version}.pom %{buildroot}%{_datadir}/maven-poms/%{name}-%{name}.pom

%add_maven_depmap %{name}-%{name}.pom %{name}/%{name}.jar
%add_maven_depmap org.apache.zookeeper:zookeeper::tests:%{version} %{name}/%{name}-tests.jar

install -pm 644 %{SOURCE1} %{buildroot}%{_datadir}/maven-poms/%{name}-%{name}-ZooInspector.pom
sed -i "s|@version@|%{version}|" %{buildroot}%{_datadir}/maven-poms/%{name}-%{name}-ZooInspector.pom
%add_maven_depmap %{name}-%{name}-ZooInspector.pom %{name}/%{name}-ZooInspector.jar
%else
mkdir -p %{buildroot}%{_mavenpomdir}
install -pm 644 build/%{name}-%{version}/dist-maven/%{name}-%{version}.pom %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}.pom

%add_maven_depmap JPP.%{name}-%{name}.pom %{name}/%{name}.jar
%add_maven_depmap org.apache.zookeeper:zookeeper::tests:%{version} %{name}/%{name}-tests.jar

install -pm 644 %{SOURCE1} %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-ZooInspector.pom
sed -i "s|@version@|%{version}|" %{buildroot}%{_mavenpomdir}/JPP.%{name}-%{name}-ZooInspector.pom
%add_maven_depmap JPP.%{name}-%{name}-ZooInspector.pom %{name}/%{name}-ZooInspector.jar
%endif

mkdir -p %{buildroot}%{_javadocdir}/%{name}
cp -pr build/docs/api/* %{buildroot}%{_javadocdir}/%{name}/

pushd src/contrib/zkpython
%{__python3} src/python/setup.py build --build-base=$PWD/build \
install --root=%{buildroot} ;\
chmod 0755 %{buildroot}%{python3_sitearch}/zookeeper.cpython-*.so
popd

find %{buildroot} -name '*.la' -exec rm -f {} ';'
find %{buildroot} -name '*.a' -exec rm -f {} ';'

mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_sysconfdir}/zookeeper
mkdir -p %{buildroot}%{_localstatedir}/log/zookeeper
mkdir -p %{buildroot}%{_sharedstatedir}/zookeeper
mkdir -p %{buildroot}%{_sharedstatedir}/zookeeper/data
mkdir -p %{buildroot}%{_sharedstatedir}/zookeeper/log
install -p -m 0644 %{SOURCE2} %{buildroot}%{_unitdir}
install -p -m 0640 conf/log4j.properties %{buildroot}%{_sysconfdir}/zookeeper
install -p -m 0640 conf/zoo_sample.cfg %{buildroot}%{_sysconfdir}/zookeeper
touch %{buildroot}%{_sysconfdir}/zookeeper/zoo.cfg
touch %{buildroot}%{_sharedstatedir}/zookeeper/data/myid

%pre
getent group zookeeper >/dev/null || groupadd -r zookeeper
getent passwd zookeeper >/dev/null || \
    useradd -r -g zookeeper -d %{_sharedstatedir}/zookeeper -s /sbin/nologin \
    -c "ZooKeeper service account" zookeeper

%post
%systemd_post zookeeper.service
/sbin/ldconfig

%preun
%systemd_preun zookeeper.service

%postun
%systemd_postun_with_restart zookeeper.service
/sbin/ldconfig

%files
%{_bindir}/cli_mt
%{_bindir}/cli_st
%{_bindir}/load_gen
%{_bindir}/zk*.sh
%{_libexecdir}/zkEnv.sh
%{_libdir}/lib*.so.*

%attr(0755,root,root) %dir %{_sysconfdir}/zookeeper
%attr(0644,root,root) %ghost %config(noreplace) %{_sysconfdir}/zookeeper/zoo.cfg
%attr(0644,root,root) %{_sysconfdir}/zookeeper/zoo_sample.cfg
%attr(0644,root,root) %config(noreplace) %{_sysconfdir}/zookeeper/log4j.properties

%attr(0755,zookeeper,zookeeper) %dir %{_localstatedir}/log/zookeeper
%attr(0755,root,root) %dir %{_sharedstatedir}/zookeeper
%attr(0750,zookeeper,zookeeper) %dir %{_sharedstatedir}/zookeeper/data
%attr(0640,zookeeper,zookeeper) %ghost %{_sharedstatedir}/zookeeper/data/myid
%attr(0755,zookeeper,zookeeper) %dir %{_sharedstatedir}/zookeeper/log
%{_unitdir}/zookeeper.service
%doc CHANGES.txt LICENSE.txt NOTICE.txt README.txt

%files java
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/%{name}.jar
%{_javadir}/%{name}/%{name}-tests.jar
%{_javadir}/%{name}/%{name}-ZooInspector.jar
%{_datadir}/maven-metadata/%{name}.xml
%{_mavenpomdir}/JPP.%{name}-%{name}.pom
%{_mavenpomdir}/JPP.%{name}-%{name}-ZooInspector.pom
%doc CHANGES.txt LICENSE.txt NOTICE.txt README.txt


%files devel
%{_includedir}/%{name}/
%{_libdir}/*.so
%doc src/c/LICENSE src/c/NOTICE.txt

%files javadoc
%{_javadocdir}/%{name}
%doc LICENSE.txt NOTICE.txt

%files -n python3-%{name}
%{python3_sitearch}/ZooKeeper-?.?-py%{python3_version}.egg-info
%{python3_sitearch}/zookeeper.cpython-*.so
%doc LICENSE.txt NOTICE.txt src/contrib/zkpython/README


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20461 |21mr|zram-init-11.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		zram-init
Version:	11.1
Release:	1

Summary:	Init and set up swap device in /dev/zram0
License:	GPL
Group:		System/Base
BuildArch:	noarch
Source0:	https://github.com/vaeth/zram-init/archive/v%{version}.zip
# for %%check
BuildRequires:	%{_bindir}/gettext.sh
Requires:	%{_bindir}/gettext.sh


%description
A wrapper script for the zram kernel module with interactive and init support

%prep
%autosetup -p1
sed -i -e 's,^#!/usr/bin/env sh$,#!/bin/sh,g' sbin/zram-init.in

%install
%make_install \
	MODIFY_SHEBANG=false \
	PREFIX=%{_prefix} \
	SYSCONFDIR=%{_sysconfdir} \
	BINDIR=%{buildroot}/sbin \
	SYSTEMDDIR=%{buildroot}%{_unitdir}

rm -fv %{buildroot}/etc/conf.d/zram-init
rm -fv %{buildroot}/etc/init.d/zram-init

%find_lang %{name}

%files -f %{name}.lang
/etc/modprobe.d/zram.conf
%{_unitdir}/zram_btrfs.service
%{_unitdir}/zram_swap.service
%{_unitdir}/zram_tmp.service
%{_unitdir}/zram_var_tmp.service
/sbin/zram-init
%{_mandir}/de/man8/zram-init.8.*
%{_mandir}/man8/zram-init.8.*
%{_datadir}/zsh/site-functions/_zram-init

%check
%{buildroot}/sbin/zram-init -h

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20462 |21mr|zsh-5.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _disable_ld_no_undefined 1

Summary:	A shell with lots of features
Name:		zsh
Version:	5.9
Release:	1
Epoch:		1
License:	BSD-like
Group:		Shells
Url:		http://www.zsh.org
Source0:	http://www.zsh.org/pub/%{name}-%{version}.tar.xz
Source1:	http://www.zsh.org/pub/%{name}-%{version}-doc.tar.xz
Source2:	zcfg-rosa.tar.bz2
Source3:	http://zsh.sourceforge.net/Guide/zshguide.pdf
Source4:	zsh.urpmi_comp
BuildRequires:	groff
BuildRequires:	texinfo
BuildRequires:	gdbm-devel
BuildRequires:	pkgconfig(libpcre)
BuildRequires:	pkgconfig(ncurses)
Requires(post,postun):	rpm-helper
# bash has special completions for dnf which use sqlite3
Recommends: (%{_bindir}/sqlite3 if dnf)

%description
Zsh is a UNIX command interpreter (shell) usable as an interactive login shell
and as a shell script command processor. Of the standard shells, zsh most
closely resembles ksh but includes many enhancements. Zsh has command-line
editing, built-in spelling correction, programmable command completion, shell
functions (with autoloading), a history mechanism, and a lots of other
features.
Install the zsh package if you'd like to try out a different shell.

%files
%doc README LICENCE Etc/BUGS Etc/CONTRIBUTORS Etc/FAQ FEATURES MACHINES
%doc NEWS Etc/zsh-development-guide Etc/completion-style-guide
%doc %{_datadir}/%{name}/%{version}/help
%config(noreplace) %{_sysconfdir}/z*
/bin/%{name}
%{_bindir}/%{name}
%{_mandir}/man1/*.1*
%{_infodir}/*.info*
%dir %{_datadir}/zsh
%dir %{_datadir}/zsh/%{version}/
%{_datadir}/zsh/%{version}/functions
%{_datadir}/zsh/%{version}/scripts
%{_datadir}/zsh/%{version}/zshrc_default
%dir %{_libdir}/zsh
%{_libdir}/zsh/%{version}/
%{_datadir}/zsh/site-functions/

%post
%_post_shelladd /bin/zsh

%preun
%_preun_shelldel /bin/zsh

#----------------------------------------------------------------------------

%package doc
Summary:	The doc package of zsh
Group:		Books/Computer books

%description doc
Zsh is a UNIX command interpreter (shell) usable as an
interactive login shell and as a shell script command
processor. Of the standard shells, zsh most closely resembles
ksh but includes many enhancements. Zsh has command-line editing,
built-in spelling correction, programmable command completion,
shell functions (with autoloading), a history mechanism, and a
lots of other features

This package include doc guid examples and manual for zsh.

%files doc
#remove executable rights from files
%defattr (644, root, root, 644)
%doc docroot/*

#----------------------------------------------------------------------------

%prep
%setup -q -a 2 -a 1
%apply_patches

mv %{name}-%{version}/Doc/* Doc/
install -m 0644 %{SOURCE4}  Completion/Mandriva/Command/_urpmi

# remove temporary files
find | grep '~$' | xargs rm -f
perl -pi -e 's|/usr/local/bin/|%{_bindir}/|' Functions/Misc/{run-help,checkmail,zcalc}


%build
# check for tcsetpgrp fails with "configure: error: no controlling tty" when
# building by bot; force tcsetpgrp
%configure \
	--enable-etcdir=%{_sysconfdir} \
	--enable-function-subdirs \
%ifarch sparc
	--disable-lfs \
%endif
	--enable-pcre \
	--with-tcsetpgrp
make all

%install
%makeinstall_std
make install.info DESTDIR=%{buildroot}

# copy Mandriva Configuration files
mkdir -p %{buildroot}/{bin,etc}
cp -a zcfg/etc/z* %{buildroot}%{_sysconfdir}
cp -a zcfg/share/zshrc_default %{buildroot}%{_datadir}/zsh/%{version}/zshrc_default

# Process /etc/profile.d/* script in ksh mode, not POSIX sh, as Fedora,
# to support some bashisms like '[[ ... =~ regex ]]'
# https://src.fedoraproject.org/rpms/zsh/blob/rawhide/f/zshrc.rhs
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=11325
sed -i'' -e 's,emulate -R sh -c,emulate -R ksh -c,' %{buildroot}%{_sysconfdir}/zshrc

# this prevents RPM helper from adding dependency on /usr/bin/zsh
find %{buildroot}%{_datadir}/zsh/%{version} -type f -exec chmod 0644 '{}' \;

# Backward compatibilie should be removed in the others times.
mkdir -p %{buildroot}/bin
( cd %{buildroot}/bin && ln -s ../%{_bindir}/zsh zsh )

# zshall.1 includes all other man pages which does not work with compressed
# files. Generate full contents here
pushd %{buildroot}%{_mandir} && {
	/usr/bin/soelim man1/zshall.1 > zshall-full
	mv zshall-full man1/zshall.1
	popd
}

rm -f %{buildroot}%{_bindir}/zsh-%{version}

#install doc
rm -rf docroot
mkdir -p docroot/{Info_html,Examples,Documentation}/
cp -a README docroot/
cp -a Functions/Misc/* Misc/* Util/* docroot/Examples/
cp -a ChangeLog* docroot/Documentation
cp -a StartupFiles docroot/
cp -a Etc/* docroot/Documentation
cp -a Doc/*html docroot/Info_html/

mkdir -p docroot/Zsh_Guide
install -m 644 %{SOURCE3} docroot/Zsh_Guide

# Doc
rm -f docroot/{StartupFiles/.distfiles,Examples/{Makefile*,*.yo},Documentation/{Makefile*,*.yo}}
find docroot/ -name 'Makefile*' -o -name '.yo'|xargs rm -f
find docroot/ -type f|xargs perl -pi -e 's@^#!%{_prefix}/local/bin/(perl|zsh)@#!%{_bindir}/\1@'
mv docroot/Examples/compctl-examples docroot/StartupFiles

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20463 |21mr|zstd-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname zstd
%define major 1
%define libname %mklibname %{oname} %{major}
%define devname %mklibname %{oname} -d
# static libraries are used by qemu. Please don't disable them.
%define sdevname %mklibname %{name} -d -s

%bcond_with tests

Summary:	Zstd compression library
Name:		zstd
Version:	1.5.2
Release:	1
License:	BSD and GPLv2+
Group:		Archiving/Compression
Url:		http://www.zstd.net/
Source0:	https://github.com/facebook/zstd/archive/v%{version}/%{name}-%{version}.tar.gz
BuildRequires:	gtest-devel
BuildRequires:	pkgconfig(liblz4)
BuildRequires:	pkgconfig(liblzma)
BuildRequires:	pkgconfig(zlib)
BuildRequires:	cmake
BuildRequires:	ninja

%description
Zstd, short for Zstandard, is a fast lossless compression algorithm,
targeting real-time compression scenarios at zlib-level compression ratio.

%files
%{_bindir}/%{name}
%{_bindir}/%{name}cat
%{_bindir}/%{name}grep
%{_bindir}/%{name}less
%{_bindir}/%{name}mt
%{_bindir}/p%{name}
%{_bindir}/un%{name}
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Zstd shared library
Group:		System/Libraries

%description -n %{libname}
Zstandard compression shared library.

%files -n %{libname}
%{_libdir}/libzstd.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for Zstd library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Header files for Zstd library.

%files -n %{devname}
%doc %{_docdir}/zstd
%{_includedir}/*.h
%{_libdir}/pkgconfig/libzstd.pc
%{_libdir}/libzstd.so
%{_libdir}/cmake/%{name}/*.cmake

#----------------------------------------------------------------------------

%package -n %{sdevname}
Summary:	Static libraries for zstd
Group:		Development/C
Requires:	%{devname} = %{version}-%{release}

%description -n	%{sdevname}
Static library for zstd.

%files -n %{sdevname}
%{_libdir}/libzstd.a

#----------------------------------------------------------------------------

%prep
%autosetup -p1
# Get rid of -L/usr/lib insanity
sed -i -e 's,-L\${libdir} ,,g' lib/*.pc.in
sed -i -e '/^Cflags:/d' lib/*.pc.in
find -name .gitignore -delete
# Don't use obsolete standards
# https://github.com/facebook/zstd/issues/3163
sed -i -e 's,c99,gnu2a,g' build/cmake/CMakeModules/AddZstdCompilationFlags.cmake

%build
%set_build_flags
pushd build/cmake
%cmake -DZSTD_BUILD_CONTRIB:BOOL=ON \
	-DZSTD_LEGACY_SUPPORT:BOOL=ON \
	-DZSTD_LZ4_SUPPORT:BOOL=ON \
	-DZSTD_LZMA_SUPPORT:BOOL=ON \
	-DZSTD_PROGRAMS_LINK_SHARED:BOOL=ON \
	-DZSTD_ZLIB_SUPPORT:BOOL=ON -G Ninja

%ninja_build
popd

%install
pushd build/cmake
%ninja_install -C build
install -m 755 build/contrib/pzstd/pzstd %{buildroot}%{_bindir}/
install -D -m644 build/programs/%{name}.1 %{buildroot}%{_mandir}/man1/p%{name}.1
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20464 |21mr|zvbi-0.2.35-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Raw VBI, Teletext and Closed Caption decoding library
Name:		zvbi
Version:	0.2.35
Release:	6
Epoch:		1
License:	GPLv2+
Group:		Video
Url:		http://zapping.sourceforge.net/
Source0:	http://prdownloads.sourceforge.net/zapping/%{name}-%{version}.tar.bz2
Source1:	gtkdoc-common.pl
Patch0:		zvbi-0.2.31-linkage_fix.diff
Patch2:		zvbi-0.2.7-fix-build.patch
BuildRequires:	doxygen
BuildRequires:	gtk-doc
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(x11)
Requires:	gettext >= 0.10.36

%description
Non versionated files of zvbi, mainly libzvbi0 translations.

%files -f %{name}.lang
%defattr(644,root,root,755)
%doc COPYING
%attr(755,root,root) %{_bindir}/*
%attr(755,root,root) %{_sbindir}/*
%{_mandir}/man1/*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Raw VBI, Teletext and Closed Caption decoding library
Group:		System/Libraries

%description -n %{libname}
VBI stands for Vertical Blanking Interval, a gap between the image
data transmitted in an analog video signal. This gap is used to
transmit AM modulated data for various data services like Teletext and
Closed Caption.

The zvbi library provides routines to:
* read from raw VBI sampling devices (both V4L and V4L2 API are supported),
* a versatile raw vbi bit slicer,
* decoders for various data services and basic search,
* demodulate raw to sliced VBI data,
* interpret the data of several popular services.
* render and export functions for text pages.

The library is the vbi decoding backbone of the Zapping Gnome TV viewer
and Zapzilla Teletext browser.

%files -n %{libname}
%doc AUTHORS COPYING NEWS README
%{_libdir}/libzvbi.so.%{major}*
%{_libdir}/libzvbi-chains.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files for developing apps which will use libzvbi
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Provides:	lib%{name}-devel = %{EVRD}

%description -n %{devname}
Header files and static library of bzip2 functions, for developing apps which
will use the zvbi library (aka libzvbi).

%files -n %{devname}
%defattr(644,root,root,755)
%doc BUGS ChangeLog COPYING TODO doc/html
%{_libdir}/lib*.so
%{_libdir}/lib*.a
%{_libdir}/pkgconfig/*
%{_includedir}/libzvbi.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .linkage_fix
%patch2 -p0 -b .build

%build
autoreconf -fi

%configure \
	--enable-static
# gtkdoc fix:
cp %{SOURCE1} doc/
%make

%install
%makeinstall_std

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20465 |21mr|zxcvbn-c-2.5-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname zxcvbn-c
%define devname %mklibname zxcvbn-c -d

Summary:	Password strength estimator
Name:		zxcvbn-c
Version:	2.5
Release:	1
License:	MIT
Group:		System/Libraries
URL:		https://github.com/tsyrogit/%{name}
Source0:	https://github.com/tsyrogit/%{name}/archive/refs/tags/v%{version}.tar.gz
# CMake build system support
Patch0:		https://github.com/tsyrogit/%{name}/commit/baec608049cb166e493906142d0e951af45f93b2.patch
Patch1:		https://github.com/tsyrogit/%{name}/commit/31948901f613a8500e710fe13772591e4ab245bc.patch
BuildRequires:	cmake
BuildRequires:	ninja

%description
This is a C/C++ implementation of the zxcvbn
password strength estimation.

%files
%{_bindir}/dictgen
%{_datadir}/zxcvbn

#----------------------------------------------------------

%package -n %{libname}
Summary:	Password strength estimator
Group:		System/Libraries

%description -n %{libname}
Password strength estimator

%files -n %{libname}
%{_libdir}/libzxcvbn.so.%{major}*

#----------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	zxcvbn-devel = %{EVRD}

%description -n %{devname}
Development files (Headers etc.) for %{name}.
%{name} is a password strength estimation library.

%files -n %{devname}
%{_includedir}/dict-crc.h
%{_includedir}/dict-src.h
%{_includedir}/zxcvbn.h
%{_libdir}/libzxcvbn.so

#----------------------------------------------------------

%prep
%autosetup -p1
%cmake \
	-G Ninja

%build
%ninja_build -C build

%install
# No install target yet...
mkdir -p \
	%{buildroot}%{_includedir} \
	%{buildroot}%{_datadir}/zxcvbn \
	%{buildroot}%{_libdir} \
	%{buildroot}%{_bindir}
mv *.h build/*.h %{buildroot}%{_includedir}/
mv build/libzxcvbn.so* %{buildroot}%{_libdir}/
mv build/dictgen %{buildroot}%{_bindir}/
mv build/zxcvbn.dict %{buildroot}%{_datadir}/zxcvbn/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20466 |21mr|zxing-3.2.1-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:          zxing
Version:       3.2.1
Release:       10
Summary:       Java multi-format 1D/2D bar-code image processing library
License:       ASL 2.0
URL:           https://github.com/zxing/zxing/
# remove unused files (126MB)
# sh zxing-repack.sh <VERSION>
Source0:       %{name}-%{version}.tar.xz
Source1:       zxing-repack.sh
# FTBFS fix manually cherry picked from upstream commit
#   https://github.com/zxing/zxing/commit/e2afb336e2f7afaa9d0895c4d16e9e85013c2f3d
Patch0:        zxing-3.2.1-deprecated-JCommander-usage.patch

BuildRequires: maven-local
BuildRequires: mvn(com.beust:jcommander)
BuildRequires: mvn(junit:junit)

# https://fedorahosted.org/fpc/ticket/574
Provides: bundled(barcode4j)

Group:          Development/Java
BuildArch:     noarch
# Java stack is not supported on x86_32
ExcludeArch: %{ix86}

%description
ZXing ("zebra crossing") is an open-source,
multi-format 1D/2D bar-code image processing library
implemented in Java, with ports to other languages.

%package javase
Summary:       ZXing Java SE extensions

%description javase
Java SE-specific extensions to core ZXing library.

%package parent
Summary:       ZXing Parent POM

%description parent
This package provides ZXing Parent POM.

%package javadoc
Summary:       Javadoc for %{name}

%description javadoc
This package contains javadoc for %{name}.

%prep
%setup -q -n %{name}-%{name}-%{version}
%patch0

%pom_remove_dep com.google.android:
%pom_remove_dep :android-core
%pom_remove_dep :android-integration

%pom_disable_module android-core
%pom_disable_module android-integration
# use com.google.gwt:gwt-{servlet,user}:2.6.1,org.codehaus.mojo:gwt-maven-plugin
%pom_disable_module zxing.appspot.com
%pom_disable_module zxingorg

# Unwanted/unneeded tasks
%pom_remove_plugin -r :maven-site-plugin
%pom_remove_plugin -r :maven-source-plugin
%pom_remove_plugin -r :maven-javadoc-plugin
%pom_remove_plugin -r :maven-dependency-plugin
%pom_remove_plugin -r :maven-release-plugin
# Break build
%pom_remove_plugin -r :maven-checkstyle-plugin
%pom_remove_plugin -r :maven-enforcer-plugin
%pom_remove_plugin -r :apache-rat-plugin
# Unavailble plugin
%pom_remove_plugin -r :clirr-maven-plugin

# Unavailable test resources
rm -r core/src/test/java/com/google/zxing/qrcode/QRCodeWriterTestCase.java \
 core/src/test/java/com/google/zxing/qrcode/QRCodeBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/datamatrix/DataMatrixBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/pdf417/PDF417BlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/EAN13BlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/Code39BlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/UPCEANExtensionBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/UPCABlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/Code93BlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/UPCEBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/Code128BlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/CodabarBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/ITFBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/negative \
 core/src/test/java/com/google/zxing/oned/EAN8BlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/Code39ExtendedBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/rss/RSS14BlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/rss/expanded/RSSExpandedBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/rss/expanded/RSSExpandedStackedBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/aztec/AztecBlackBox*TestCase.java \
 core/src/test/java/com/google/zxing/oned/rss/expanded/RSSExpandedInternalTestCase.java \
 core/src/test/java/com/google/zxing/oned/rss/expanded/RSSExpandedStackedInternalTestCase.java \
 core/src/test/java/com/google/zxing/oned/rss/expanded/RSSExpandedImage2stringTestCase.java \
 core/src/test/java/com/google/zxing/oned/rss/expanded/RSSExpandedImage2binaryTestCase.java \
 core/src/test/java/com/google/zxing/oned/rss/expanded/RSSExpandedImage2resultTestCase.java

sed -i '/DataMatrixBlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/Code39BlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/EAN13BlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/UPCABlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/UPCABlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/UPCEBlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/PDF417BlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/QRCodeBlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/Code128BlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/ITFBlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/EAN8BlackBox/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java
sed -i '/Code39ExtendedBlackBox2TestCase/d' core/src/test/java/com/google/zxing/AllPositiveBlackBoxTester.java

%build

%mvn_build -s

%install
%mvn_install

%files -f .mfiles-core
%doc AUTHORS CHANGES README.md
%license COPYING NOTICE

%files javase -f .mfiles-javase
%license COPYING NOTICE

%files parent -f .mfiles-zxing-parent
%license COPYING NOTICE

%files javadoc -f .mfiles-javadoc
%license COPYING NOTICE


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20467 |21mr|zxing-cpp-1.4.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 1
%define libname %mklibname ZXing %{major}
%define devname %mklibname ZXing -d

Summary:	C++ port of the ZXing ("Zebra Crossing") barcode scanning library
Name:		zxing-cpp
Version:	1.4.0
Release:	2
Group:		System/Libraries
License:	LGPLv2.1+
Url:		https://github.com/nu-book/zxing-cpp
Source0:	https://github.com/nu-book/zxing-cpp/archive/refs/tags/v%{version}.tar.gz?/%{name}-%{version}.tar.gz
# Upstream 1.4.0 removes the BitArray.h header (but keeps the class)
# but LibreOffice 7.4.0.1 still relies on that header.
# (And we aren't sure yet if the removal is intentional).
# https://github.com/nu-book/zxing-cpp/issues/361
Patch0:		zxing-1.4.0-restore-BitArray-header.patch
BuildRequires:	cmake
BuildRequires:	ninja

%description
This project is a C++ port of ZXing Library.

Same as ZXing, following barcode are supported:
* 1D product: UPC-A UPC-E EAN-8 EAN-13
* 1D industrial: Code 39, Code 93, Code 128, Codabar,
  ITF, RSS-14, RSS-Expanded
* 2D: QR Code, Data Matrix, Aztec (beta), PDF 417 (beta)

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries

%description -n %{libname}
This project is a C++ port of ZXing Library.

Same as ZXing, following barcode are supported:
* 1D product: UPC-A UPC-E EAN-8 EAN-13
* 1D industrial: Code 39, Code 93, Code 128, Codabar,
  ITF, RSS-14, RSS-Expanded
* 2D: QR Code, Data Matrix, Aztec (beta), PDF 417 (beta)

%files -n %{libname}
%doc LICENSE README.md
%{_libdir}/libZXing.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for %{name}
Group:		Development/C++
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This package contains the development files for %{name}.

%files -n %{devname}
%doc LICENSE README.md
%{_includedir}/ZXing
%{_libdir}/*.so
%{_libdir}/cmake/*
%{_libdir}/pkgconfig/zxing.pc

#----------------------------------------------------------------------------

%prep
%autosetup -p1
%ifarch %{e2k}
# fix error: cannot deduce "auto" type
sed -i '/{PointI{0, 1}/s/, {1/, PointI{1/g' core/src/ConcentricFinder.cpp
sed -i '/{PointF{0, 1}/s/, {1/, PointF{1/g' core/src/ConcentricFinder.h
sed -E -i '/std::pair\(tl/s/\{(..), \{/std::pair{\1, PointI{/g' core/src/qrcode/QRDetector.cpp
sed -i '1i #define preferred_separator preferred_separator_zxing' test/blackbox/ZXFilesystem.h
%endif

%build
%cmake -DBUILD_EXAMPLES=OFF \
	-DBUILD_BLACKBOX_TESTS=OFF \
	-DBUILD_UNIT_TESTS=OFF \
	-DBUILD_PYTHON_MODULE=OFF \
	-G Ninja
%ninja_build

%install
%ninja_install -C build

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20468 |21mr|zziplib-0.13.72-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The libraries are named libxxx-0.so.13.yyy:
# consider the first number as "api" and the next as "major"
%define	api	0
%define	major	13
%define	libname	%mklibname zzip- %{api} %{major}
%define	libfseeko	%mklibname zzipfseeko- %{api} %{major}
%define	libmmapped	%mklibname zzipmmapped- %{api} %{major}
%define	libwrap		%mklibname zzipwrap- %{api} %{major}
%define	devname	%mklibname %{name} -d

Summary:	ZZipLib - libZ-based ZIP-access Library
Name:		zziplib
Version:	0.13.72
Release:	1
License:	LGPLv2.1+
Group:		Archiving/Compression
Url:		https://github.com/gdraheim/zziplib
Source0:	https://github.com/gdraheim/zziplib/archive/v%{version}.tar.gz
BuildRequires:	perl >= 5.0.0
# OE: python and pkgconfig are required for making the docs
BuildRequires:	python3 >= 2.3
BuildRequires:	zip
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib) >= 1.1.4

%description
Zziplib library provides read access to zipped files in a zip-archive, using
compression based solely on free algorithms provided by zlib. It provides an
additional API to transparently access files being either real files or zipped
files with the same filepath argument. This is handy to package many files
being shared data into a single zip file - as it is sometimes used with
gamedata or script repositories. The library itself is fully multithreaded and
it is namespace clean, using the zzip_ prefix for its exports and declarations.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	ZZipLib - libZ-based ZIP-access Library
Group:		System/Libraries
Provides:	%{name} = %{EVRD}
Requires:	%{libfseeko} = %{EVRD}
Requires:	%{libmmapped} = %{EVRD}
Requires:	%{libwrap} = %{EVRD}
%rename		zziplib0
%rename		%{_lib}zziplib0

%description -n %{libname}
Zziplib library provides read access to zipped files in a zip-archive, using
compression based solely on free algorithms provided by zlib. It provides an
additional API to transparently access files being either real files or zipped
files with the same filepath argument. This is handy to package many files
being shared data into a single zip file - as it is sometimes used with
gamedata or script repositories. The library itself is fully multithreaded and
it is namespace clean, using the zzip_ prefix for its exports and declarations.
This package contains the main library.

%files -n %{libname}
%doc docs/COPYING*
%{_libdir}/libzzip-%{api}.so.*

#----------------------------------------------------------------------------

%package -n %{libfseeko}
Summary:	ZZipLib - libZ-based ZIP-access Library
Group:		System/Libraries
Conflicts:	%{_lib}zziplib0 <= 0.13.62-4

%description -n %{libfseeko}
The Zziplib library provides read access to zipped files in a zip-archive,
using compression based solely on free algorithms provided by zlib.
This package contains a library for zziplib.

%files -n %{libfseeko}
%doc docs/COPYING*
%{_libdir}/libzzipfseeko-%{api}.so.%{major}*
%{_libdir}/libzzipfseeko-%{api}.so.10
%{_libdir}/libzzipfseeko-%{api}.so.11
%{_libdir}/libzzipfseeko-%{api}.so.12

#----------------------------------------------------------------------------

%package -n %{libmmapped}
Summary:	ZZipLib - libZ-based ZIP-access Library
Group:		System/Libraries
Conflicts:	%{_lib}zziplib0 <= 0.13.62-4

%description -n %{libmmapped}
The Zziplib library provides read access to zipped files in a zip-archive,
using compression based solely on free algorithms provided by zlib.
This package contains a library for zziplib.

%files -n %{libmmapped}
%doc docs/COPYING*
%{_libdir}/libzzipmmapped-%{api}.so.%{major}*
%{_libdir}/libzzipmmapped-%{api}.so.10
%{_libdir}/libzzipmmapped-%{api}.so.11
%{_libdir}/libzzipmmapped-%{api}.so.12

#----------------------------------------------------------------------------

%package -n %{libwrap}
Summary:	ZZipLib - libZ-based ZIP-access Library
Group:		System/Libraries
Conflicts:	%{_lib}zziplib0 <= 0.13.62-4

%description -n %{libwrap}
The Zziplib library provides read access to zipped files in a zip-archive,
using compression based solely on free algorithms provided by zlib.
This package contains a library for zziplib.

%files -n %{libwrap}
%doc docs/COPYING*
%{_libdir}/libzzipwrap-%{api}.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	ZZipLib - Development Files
Group:		Development/Other
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}
Requires:	%{libfseeko} = %{EVRD}
Requires:	%{libmmapped} = %{EVRD}
Requires:	%{libwrap} = %{EVRD}
Requires:	%{name}-utils = %{version}-%{release}
%rename		zziplib0-devel

%description -n %{devname}
The Zziplib library provides read access to zipped files in a zip-archive,
using compression based solely on free algorithms provided by zlib.
This package contains the header files needed to develop programs using
zziplib.

%files -n %{devname}
%doc docs/README* ChangeLog README TODO
%{_libdir}/libzzip*.so
%{_includedir}/*.h
%dir %{_includedir}/zzip
%{_includedir}/zzip/*.h
%dir %{_includedir}/SDL_rwops_zzip
%{_includedir}/SDL_rwops_zzip/SDL_rwops_zzip.*
%{_libdir}/pkgconfig/*.pc
%{_datadir}/aclocal/*.m4
%{_mandir}/man3/*

#----------------------------------------------------------------------------

%package	utils
Summary:	Utilities for the zziplib library
Group:		Archiving/Compression
Conflicts:	%{devname} <= 0.13.62-4

%description utils
Zziplib library provides read access to zipped files in a zip-archive, using
compression based solely on free algorithms provided by zlib. It provides an
additional API to transparently access files being either real files or zipped
files with the same filepath argument. This is handy to package many files
being shared data into a single zip file - as it is sometimes used with
gamedata or script repositories. The library itself is fully multithreaded and
it is namespace clean, using the zzip_ prefix for its exports and
declarations.
This packages contains all the utilities that come with the zziplib library.

%files utils
%doc docs/COPYING*
%{_bindir}/unzzip*
%{_bindir}/zz*
%{_bindir}/unzip-mem

#----------------------------------------------------------------------------

%prep
%autosetup -p1

# perl path fix
find -type f | xargs perl -pi -e "s|/usr/local/bin/perl|%{_bindir}/perl|g"

%build
%cmake -DZZIPTEST=OFF
%make_build


%install
%make_install -C build

%check
export PYTHON=%{_bindir}/python3
%make_build -C  build check || exit 0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20469 |21nr|amdgpu-pro-17.10.414273-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# The version and release of the driver as specified by AMD.
%define basever 17.10
%define baserel 414273

# Names of the packages with libraries. These libraries are only used by
# the pre-built components of AMDGPU PRO, so the names do not follow the
# usual packaging conventions here.
%define libdrm %mklibname amdgpu-pro_drm
%define libgl %mklibname amdgpu-pro_gl
%define libvdpau %mklibname amdgpu-pro_vdpau
%define libopencl %mklibname amdgpu-pro_opencl
%define libvulkan %mklibname amdgpu-pro_vulkan

# Priority for the alternatives. Any number higher than 500 (the default
# priority the X11 server uses) would do.
%define priority 1016

# Specify the required version of video driver ABI provides by 
# x11-server-common.
%if %{mdvver} >= 201610
# X11 server 1.19.x
%define videodrv_major 23
%else
# X11 server 1.17.x
%define videodrv_major 19
%ifarch x86_64
%define xorg_aux_pack xorg-1.17-%{basever}.%{baserel}-x86_64
%else
%define xorg_aux_pack xorg-1.17-%{basever}.%{baserel}-i586
%endif
%endif

%ifarch x86_64
%define pkg_suffix _amd64
%define deb_libpath /usr/lib/x86_64-linux-gnu
%define optlibdir /opt/amdgpu-pro/lib/x86_64-linux-gnu
%define optlibdir32 /opt/amdgpu-pro/lib/i386-linux-gnu
%else
%define pkg_suffix _i386
%define deb_libpath /usr/lib/i386-linux-gnu
%define optlibdir /opt/amdgpu-pro/lib/i386-linux-gnu
%endif

%define optbindir /opt/amdgpu-pro/bin
%define optincludedir /opt/amdgpu-pro/include
%define optmandir /opt/amdgpu-pro/share/man
%define optxmoddir /opt/amdgpu-pro/lib/xorg/modules/

%define xorg_confdir %{_datadir}/X11/xorg.conf.d
%define udevdir /lib/udev/rules.d

%define patchopts -p1 --no-backup-if-mismatch --fuzz=0

# --------------------------------------------------------------------------

# Older package names, for obsoletes:
%define oldlibdri %mklibname amdgpu-pro_dri
%define oldlibdrm %mklibname amdgpu-pro_drm 2
%define oldlibdrm_amdgpu %mklibname amdgpu-pro_drm_amdgpu 1
%define oldlibegl %mklibname amdgpu-pro_egl 1
%define oldlibgbm %mklibname amdgpu-pro_gbm 1
%define oldlibgl %mklibname amdgpu-pro_gl 1
%define oldlibgles %mklibname amdgpu-pro_gles 2
%define oldlibkms %mklibname amdgpu-pro_kms 1
%define oldlibopencl %mklibname amdgpu-pro_opencl 1
%define olddevopencl %mklibname amdgpu-pro_opencl-devel -d
%define oldlibvdpau %mklibname amdgpu-pro_vdpau 1

# --------------------------------------------------------------------------

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

# --------------------------------------------------------------------------

# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# --------------------------------------------------------------------------

# Do not provide libGL.so.1 and the like. Unrelated packages should not
# pull in any AMDGPU PRO package when they just need libGL.so.1, etc.
%define __noautoprov '(.*)\\.so(.*)|devel\\(lib(.*)'

# Do not create requirements for the OpenCL libraries automatically, there
# are no such provides due to __noautoprov above.
# The respective packages should be listed in "Requires" explicitly.
# Besides that, some of the libraries packaged here require libtinfo as
# 'libtinfo.so.5(NCURSES_TINFO_5.0.19991023)(64bit)'. Our libtinfo, however,
# does not provide such versioned stuff, so let us simply require the
# library explicitly for now and see if things go well.
%define __noautoreq 'libOpenCL\\.so(.*)|.*NCURSES_TINFO_5.*'

# --------------------------------------------------------------------------

Summary:	AMDGPU PRO drivers provided by AMD
Name:		amdgpu-pro
Version:	%{basever}.%{baserel}
Release:	8
License:	Freeware
URL:		http://support.amd.com/en-us/kb-articles/Pages/AMDGPU-PRO-Driver-for-Linux-Release-Notes.aspx
Group:		System/Kernel and hardware
Source0:	https://www2.ati.com/drivers/linux/ubuntu/%{name}-%{basever}-%{baserel}.tar.xz
%if %{mdvver} < 201610
# ROSA releases based on rosa2014.1 have X11 server 1.17 while AMDGPU PRO
# 17.10 is build for X11 server 1.18.x for Ubuntu 16.04. So, the X11 modules
# are unlikely to work there as they are. Here are the replacements extracted
# from the packages for RHEL 7.3 that still uses X11 server 1.17.
Source1:	%{xorg_aux_pack}.tar.xz
%endif
Source100:	%{name}.rpmlintrc

# Patches from ArchLinux
Patch1:		0001-disable-firmware-copy.patch
Patch2:		0002-linux-4.9-fixes.patch
Patch3:		0003-Change-seq_printf-format-for-64-bit-context.patch
Patch4:		0004-fix-warnings-for-Werror.patch

# ROSA-specific
Patch100:	0100-adapt-prebuild-to-rosa-dkms.patch

Provides:	should-restart = system

Requires:	%{name}-graphics = %{EVRD}
Requires:	%{name}-computing = %{EVRD}


%description
This package pulls in the commonly used components of AMDGPU PRO. If you are
not sure which packages to install to get AMDGPU PRO, install this one.

%files
# No files

# --------------------------------------------------------------------------

%package	computing
Summary:	OpenCL components of AMDGPU PRO
Group:		System/X11

Requires:	%{name}-core = %{EVRD}
Requires:	%{name}-clinfo = %{EVRD}
Requires:	%{name}-opencl-icd = %{EVRD}
Requires:	%{libopencl} = %{EVRD}

Obsoletes:	%{olddevopencl} < %{EVRD}

%description	computing
This package pulls in the OpenCL components of AMDGPU PRO.

%files		computing
# No files

# --------------------------------------------------------------------------

%package	graphics
Summary:	Graphics components of AMDGPU PRO
Group:		System/X11

Requires:	%{name}-core = %{EVRD}
Requires:	%{libgl} = %{EVRD}
%if %{mdvver} >= 201610
Requires:	%{libvdpau} = %{EVRD}
%endif
Requires:	%{libvulkan} = %{EVRD}
Requires:	x11-driver-video-%{name} = %{EVRD}

%description	graphics
This package pulls in the graphics components of AMDGPU PRO and instructs
the X11 server to use the AMDGPU PRO driver.

%files		graphics
%dir %{_sysconfdir}/amd
%{_sysconfdir}/amd/amdrc
%dir %{_sysconfdir}/gbm
%{_sysconfdir}/gbm/gbm.conf
%{xorg_confdir}/10-amdgpu-pro.conf

# ? Is it OK to package 10-amdgpu-pro.conf here?
# Should it be created by the appropriate graphics configuration tools
# (XFdrake and the like) instead?

# --------------------------------------------------------------------------

%ifarch %ix86

# A convenience 32-bit package. It can be used on 64-bit systems to install
# the libraries needed to run games from Steam, etc.
%package	lib32
Summary:	32-bit AMDGPU PRO libraries
Group:		System/Libraries

Requires:	%{libgl} = %{EVRD}
%if %{mdvver} >= 201610
Requires:	%{libvdpau} = %{EVRD}
%endif
Requires:	%{libvulkan} = %{EVRD}

%description	lib32
This package pulls in the 32-bit libraries needed to run 32-bit applications
using AMDGPU PRO graphics in a 64-bit system.

%files		lib32
# No files

%endif

# --------------------------------------------------------------------------

%package	core
Summary:	This package switches the GPU stack to AMDGPU PRO
Group:		System/X11

Requires:	%{libdrm} = %{EVRD}
Requires:	linux-firmware >= 20170517

%description	core
This package switches the GPU stack to AMDGPU PRO.

%files		core
%dir %{_sysconfdir}/amd
%{_sysconfdir}/amd/amdapfxx.blb
%dir %{_sysconfdir}/%{name}
%{_sysconfdir}/%{name}/ld.so.conf
%{udevdir}/91-drm_pro-modeset.rules

%posttrans	core
%{_sbindir}/update-alternatives --install \
	%{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{name}/ld.so.conf %{priority}

%{_sbindir}/update-alternatives --set gl_conf %{_sysconfdir}/%{name}/ld.so.conf

# The alternative ld.so.conf we have set above changed the paths where the
# system should look for the libraries first. Run ldconfig, just in case.
# The library packages or the meta-packages that pull them in should also
# do this for the system to know where to find libGL.so.1 and such.
/sbin/ldconfig -X

%preun	core
if [ $1 -eq 0 ]; then
	%{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{name}/ld.so.conf
fi

%postun	core
# We may have restored the original search paths for the libraries.
# Run ldconfig again to make sure the system will use them.
/sbin/ldconfig -X

# --------------------------------------------------------------------------

%package -n	dkms-%{name}
Summary:	Replacements for the in-kernel amdgpu modules
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun): dkms

%description -n	dkms-%{name}
Kernel modules to manage AMD GPUs. Some of such modules, e.g., "amdgpu",
are provided by the kernel too. The modules built from this DKMS package,
may, however, have more features implemented, potentially at the cost of
stability. If the userspace components of AMDGPU PRO work OK for you with
the stock modules provided in the kernel packages, you probably do not need
this DKMS package.

%files -n	dkms-%{name}
%dir /usr/src/%{name}-%{version}-%{release}
/usr/src/%{name}-%{version}-%{release}/*
%dir %{_sysconfdir}/modprobe.d
%{_sysconfdir}/modprobe.d/blacklist-radeon.conf
%{_datadir}/dkms/modules_to_force_install/amdgpu-pro
/usr/lib/dracut/dracut.conf.d/10-amdgpu-pro.conf
%{_sysconfdir}/depmod.d/10-amdgpu-pro.conf

%post -n	dkms-%{name}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# It is unclear why, but it seems that dkms does not always call depmod
# when needed.
# Do it explicitly.
/sbin/depmod -a

%preun -n	dkms-%{name}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || true

%postun
# Same as in _post, just in case.
/sbin/depmod -a

# --------------------------------------------------------------------------

%package -n	%{libdrm}
Summary:	Userspace interface to kernel DRM services
Group:		System/Libraries

Obsoletes:	%{oldlibdrm} < %{EVRD}
Obsoletes:	%{oldlibdrm_amdgpu} < %{EVRD}
Obsoletes:	%{oldlibkms} < %{EVRD}
Obsoletes:	%{name}-libdrm-tools


%description -n	%{libdrm}
Userspace interface to kernel DRM services.

%files -n	%{libdrm}
%dir %{optlibdir}
%{optlibdir}/libdrm*.so*
%{optlibdir}/libkms.so*
%dir %{optbindir}
%{optbindir}/amdgpu_test
%{optbindir}/kms-steal-crtc
%{optbindir}/kms-universal-planes
%{optbindir}/kmstest
%{optbindir}/modeprint
%{optbindir}/modetest
%{optbindir}/proptest
%{optbindir}/vbltest

%post -n	%{libdrm}
# The core package installs ld.so.conf with the non-standard library paths.
# Make sure the linker knows about that.
/sbin/ldconfig -X

%postun -n	%{libdrm}
/sbin/ldconfig -X

# --------------------------------------------------------------------------

%package -n	%{libgl}
Summary:	OpenGL-related runtime libraries
Group:		System/Libraries
Requires:	%{libdrm} = %{EVRD}

Obsoletes:	%{oldlibdri} < %{EVRD}
Obsoletes:	%{oldlibegl} < %{EVRD}
Obsoletes:	%{oldlibgbm} < %{EVRD}
Obsoletes:	%{oldlibgl} < %{EVRD}
Obsoletes:	%{oldlibgles} < %{EVRD}

%description -n	%{libgl}
OpenGL-related runtime libraries.

%files -n	%{libgl}
%{deb_libpath}/dri
%{_libdir}/dri/amdgpu_dri.so
%{optlibdir}/libGL.so*
%{optlibdir}/libEGL.so*
%{optlibdir}/libGLESv2.so*
%{optlibdir}/libgbm.so*
%dir %{optlibdir}/gbm
%{optlibdir}/gbm/*.so

%post -n	%{libgl}
# See the notes for libdrm above.
/sbin/ldconfig -X

%postun -n	%{libgl}
/sbin/ldconfig -X

# --------------------------------------------------------------------------

%if %{mdvver} >= 201610

# vdpau libraries packaged here also require version GLIBCXX_3.4.21 from
# libstdc++.so.6 which is provided in rosa2016.1 and newer but not in
# rosa2014.1.

%package -n	%{libvdpau}
Summary:	AMDGPU Pro VDPAU driver
Group:		System/X11
Requires:	%{libdrm} = %{EVRD}
Requires:	%{libgl} = %{EVRD}
# See the note about libtinfo above.
Requires:	%{_lib}tinfo5

Obsoletes:	%{oldlibvdpau} < %{EVRD}


%description -n	%{libvdpau}
AMDGPU Pro VDPAU driver.

%files -n	%{libvdpau}
%dir %{optlibdir}/vdpau
%{optlibdir}/vdpau/libvdpau_amdgpu.so*
%dir %{optlibdir}/dri
%{optlibdir}/dri/radeonsi_drv_video.so
%{_libdir}/vdpau/libvdpau_amdgpu.so*

%endif

# --------------------------------------------------------------------------

%package -n	%{libvulkan}
Summary:	AMDGPU PRO Vulkan driver
Group:		System/X11

Requires:	%{name}-core = %{EVRD}
Requires:	vulkan
Provides:	%{name}-vulkan-driver = %{EVRD}

%description -n	%{libvulkan}
AMDGPU PRO Vulkan driver.

%files -n	%{libvulkan}
%dir %{_sysconfdir}/vulkan/icd.d
%{_sysconfdir}/vulkan/icd.d/amd_icd*.json
%{optlibdir}/amdvlk*.so

# --------------------------------------------------------------------------

%package -n	%{libopencl}
Summary:	AMD OpenCL ICD Loader library
Group:		System/Libraries
Requires:	%{name}-core

Obsoletes:	%{oldlibopencl} < %{EVRD}

%description -n	%{libopencl}
AMD OpenCL ICD Loader library.

%files -n	%{libopencl}
%{optlibdir}/libOpenCL.so*

%post -n	%{libopencl}
# See the notes for libdrm above.
/sbin/ldconfig -X

%postun -n	%{libopencl}
/sbin/ldconfig -X

# --------------------------------------------------------------------------

%package	opencl-icd
Summary:	Non-free AMD OpenCL ICD Loaders
Group:		System/X11

%description	opencl-icd
Non-free AMD OpenCL ICD Loaders.

%files		opencl-icd
%{_sysconfdir}/OpenCL/vendors/*.icd
%{optlibdir}/libamdocl*.so*

# --------------------------------------------------------------------------

%package	clinfo
Summary:	AMD OpenCL info utility
Group:		System/X11

Requires:	%{libopencl} = %{EVRD}
Requires:	%{name}-opencl-icd = %{EVRD}

%description	clinfo
AMD OpenCL info utility.

%files		clinfo
%{optbindir}/clinfo

# --------------------------------------------------------------------------

%package -n	x11-driver-video-%{name}
Summary:	AMDGPU PRO X11 driver
Group:		System/X11

Requires:	%{name}-core = %{EVRD}
Requires:	%{libdrm} = %{EVRD}
Requires:	%{libgl} = %{EVRD}
Requires:	xserver-abi(videodrv-%{videodrv_major})
# See the note about libtinfo above.
Requires:	%{_lib}tinfo5

Conflicts:	x11-driver-video-fglrx

# Now that AMDGPU PRO keeps its X11 modules in /opt tree, the conflict with
# the opensource driver might be unnecessary, they might be able to
# coexist.
#Conflicts:	x11-driver-video-amdgpu

%description -n	x11-driver-video-%{name}
This package contains the AMDGPU PRO X11 driver.

%files -n 	x11-driver-video-%{name}
%dir %{optxmoddir}
%{optxmoddir}/libglamoregl.so
%dir %{optxmoddir}/drivers
%{optxmoddir}/drivers/*_drv.so
%dir %{optxmoddir}/extensions
%{optxmoddir}/extensions/libglx.so
%dir %{optmandir}/man4
%{optmandir}/man4/*
%{optbindir}/amdgpu-pro-px
# libomx_mesa.so needs 'libstdc++.so.6(GLIBCXX_3.4.21)(64bit)' which is
# provided in rosa2016.1 and newer but not in rosa2014.1
%if %{mdvver} >= 201610
%dir %{optlibdir}/libomxil-bellagio0
%{optlibdir}/libomxil-bellagio0/libomx_mesa.so
%dir %{optlibdir}/gstreamer-1.0
%{optlibdir}/gstreamer-1.0/libgstomx.so
%dir %{_sysconfdir}/xdg
%{_sysconfdir}/xdg/gstomx.conf
%endif
# --------------------------------------------------------------------------

%prep
%if %{mdvver} >= 201610
%setup -qn %{name}-%{basever}-%{baserel}
%else
%setup -qn %{name}-%{basever}-%{baserel} -a 1
%endif

%build

%install

for pkg in *%{pkg_suffix}.deb *_all.deb; do
# Unpack all packages except the ones with development files.
	echo "${pkg}" | grep -qF -- '-dev_' && continue
	ar x ${pkg} && tar -C "%{buildroot}" -xf data.tar.xz
	if test ${?} -ne 0; then
		echo "ERROR: failed to unpack ${pkg}."
		exit 1
	fi
	rm -f data.tar.xz control.tar.* debian-binary
done

# Remove Debian-specific doc files.
rm -rf %{buildroot}%{_datadir}/doc

install -d -m 755 %{buildroot}%{_libdir}
mv %{buildroot}%{deb_libpath}/* %{buildroot}%{_libdir}/
rm -r %{buildroot}%{deb_libpath}/

# Some libraries from these packages (libglx.so?) may have the path to
# the DRI driver hard-coded, hence this ugly hack.
install -d -m 755 %{buildroot}%{deb_libpath}
ln -s %{_libdir}/dri %{buildroot}%{deb_libpath}/dri

# ld.so.conf
install -d -m 755 %{buildroot}%{_sysconfdir}/%{name}
echo "%{optlibdir}" >> %{buildroot}%{_sysconfdir}/%{name}/ld.so.conf
%ifarch x86_64
echo "%{optlibdir32}" >> %{buildroot}%{_sysconfdir}/%{name}/ld.so.conf
%endif

# Fixup X11 module path.
sed -ri "s,/usr/lib/xorg/modules,%{_libdir}/xorg/modules,g" %{buildroot}%{_datadir}/X11/xorg.conf.d/10-amdgpu-pro.conf

%if %{mdvver} >= 201610
# Fixup library path.
sed -ri "s,/usr/lib,%{_libdir},g" %{buildroot}%{_sysconfdir}/xdg/gstomx.conf

# Is this really needed? ArchLinux does it, not sure why.
install -d -m 755 %{buildroot}%{_libdir}/vdpau/
ln -s %{optlibdir}/vdpau/libvdpau_amdgpu.so.1.0.0 %{buildroot}%{_libdir}/vdpau/
ln -s %{optlibdir}/vdpau/libvdpau_amdgpu.so.1 %{buildroot}%{_libdir}/vdpau/
ln -s %{optlibdir}/vdpau/libvdpau_amdgpu.so %{buildroot}%{_libdir}/vdpau/

%else
# See the comments for x11-driver-video-amdgpu-pro and vdpau packages.
rm -f %{buildroot}%{_sysconfdir}/xdg/gstomx.conf
rm -rf %{buildroot}%{optlibdir}/libomxil-bellagio0
rm -rf %{buildroot}%{optlibdir}/gstreamer-1.0

rm -rf %{buildroot}%{optlibdir}/vdpau
rm -f %{buildroot}%{optlibdir}/dri/radeonsi_drv_video.so
rm -r %{buildroot}%{optlibdir}/dri
%endif

%if %{mdvver} < 201610
# Replace X11 modules with the ones built for the needed version of X11 server.
rm -rf %{buildroot}%{optxmoddir}/*
mv %{xorg_aux_pack}/modules/* %{buildroot}%{optxmoddir}/
%endif

# Needed for DKMS to operate.
mv %{buildroot}/usr/src/%{name}-%{basever}-%{baserel} %{buildroot}/usr/src/%{name}-%{version}-%{release}

# Apply patches to the sources of the kernel module, etc.
# We do not use %%patchN here because that may leave backup files which
# are not needed in the package.
pushd %{buildroot}/usr/src/%{name}-%{version}-%{release}
patch %{patchopts} < %{PATCH1}
patch %{patchopts} < %{PATCH2}
patch %{patchopts} < %{PATCH3}
patch %{patchopts} < %{PATCH4}

patch %{patchopts} < %{PATCH100}
sed -ri "s,@SOURCEDIR@,/usr/src/%{name}-%{version}-%{release},g" pre-build.sh
sed -ri "s,@BUILDDIR@,/var/lib/dkms/%{name}/%{version}-%{release}/build,g" pre-build.sh
popd

# Make sure dracut does not include the stock amdgpu kernel modules into
# initrd, that could cause problems for AMDGPU PRO.
install -d -m 755 %{buildroot}/usr/lib/dracut/dracut.conf.d/
echo "omit_drivers+=\" amdgpu amdkfd \"" > %{buildroot}/usr/lib/dracut/dracut.conf.d/10-amdgpu-pro.conf

# Make sure depmod searches /updates for the drivers first, thus giving
# priority to the kernel modules from AMDGPU PRO packages. It probably
# should do that by default but it is not always the case at the moment.
install -d -m 755 %{buildroot}%{_sysconfdir}/depmod.d/
echo "search updates built-in" > %{buildroot}%{_sysconfdir}/depmod.d/10-amdgpu-pro.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20470 |21nr|assistant-install-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Download and install Assistant
Name:		assistant-install
Version:	1.0
Release:	1
License:	Proprietary
Group:		Networking/Remote access
Url:		https://xn--80akicokc0aablc.xn--p1ai/
Source0:	%{name}.desktop
Source1:	%{name}.png
Source2:	%{name}
ExclusiveArch:	x86_64

%description
This is an installer for Assistant.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep

%build
# Nothing to build yet

%install
# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications/

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

# install script file
mkdir -p %{buildroot}%{_bindir}/
install -m755 %{SOURCE2} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20471 |21nr|atmel-firmware-1.3-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name atmel-firmware
%define version 1.3
%define release 6
%define url http://www.thekelleys.org.uk/

Name:		%{name}
Version: 	%{version}
Release: 	%{release}
License: 	Distributable
Group:		System/Kernel and hardware
URL: 		%{url}
Source0: 	%{name}-%{version}.tar.bz2
Summary: 	Firmware for Atmel at76c50x wireless network chips
BuildArch: 	noarch

%description
The drivers for Atmel at76c50x wireless network chipss in the
Linux 2.6.x kernel and at http://at76c503a.berlios.de/ do not 
include the firmware and this firmware needs to be loaded by 
the host on most cards using these chips. 
This package provides the firmware images which 
should be automatically loaded as needed by the hotplug system. It also 
provides a small loader utility which can be used to accomplish the 
same thing when hotplug is not in use. 

%prep
%setup -q

%build

%install
rm -rf $RPM_BUILD_ROOT

mkdir -p -m 755 $RPM_BUILD_ROOT/lib/firmware
cp images/* $RPM_BUILD_ROOT/lib/firmware
cp images.usb/* $RPM_BUILD_ROOT/lib/firmware

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README COPYING 
/lib/firmware/*.bin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20472 |21nr|b43-firmware-install-0.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           b43-firmware-install
Summary:        Package that installs proprietary firmware for Broadcom 43xx chips
Version:        0.1
Release:        5
Source:         %name-%version.tar.bz2
License:        GPLv3
Group:          System/Configuration/Networking
URL:            https://github.com/mikhirev/b43-firmware-install
BuildArch:      noarch
Requires:       b43-fwcutter >= 015

%description
This package contains script, that automatically downloads precompiled
proprietary broadcom-wl driver and extracts firmware from it using
b43-fwcutter.

There are no any proprietary components in package itself. Driver will be
downloaded after ihnstallation, so you need working Internet connection. You
can also install firmware later by running b43-firmware-install as root.


%prep
%setup -q

%build

%install
install -D -m 755 b43-firmware-install %{buildroot}/usr/sbin/b43-firmware-install

%post
/usr/sbin/b43-firmware-install

%postun
rm -rf /lib/firmware/b43

%files
%defattr(-,root,root)
/usr/sbin/b43-firmware-install
%doc README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20473 |21nr|beneath-a-steel-sky-1.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Not %%{_datadir}...
%define	scummvmdir %{_gamesdatadir}/scummvm/

Summary:	Adventure game using scummvm
Name:	beneath-a-steel-sky
Version:	1.2
Release:	4
License:	Freeware
Group:	Games/Adventure
Url:		https://scummvm.org
Source0:	bass-cd-%{version}.tar.bz2
# Do what Mandriva does: take from Debian the launcher, icons, manpages
Source1:	https://deb.debian.org/debian/pool/main/b/beneath-a-steel-sky/beneath-a-steel-sky_0.0372-7.debian.tar.xz
Source2:	bass-48.png
Source3:	bass-32.png
Source4:	bass-16.png
BuildRequires:	desktop-file-utils
BuildRequires:	gettext
BuildRequires:	unzip
Requires:	scummvm
BuildArch:	noarch

%description
A science-fiction thriller set in a bleak post-apocalyptic vision of the future
Beneath a Steel Sky revolves around "Union City", where selfishness,
rivalry, and corruption by its citizens seems to be all too common, those who
can afford it live underground, away from the pollution and social problems
which are plaguing the city. 

You take on the role of Robert Foster, an outcast of sorts from the city since
a boy who was raised in a remote environment outside of Union City simply
termed "the gap". Robert's mother took him away from Union City as a child on
their way to "Hobart" but the helicopter crashed on its way, unfortunately
Robert's mother dies, but he survives and is left to be raised by a local
tribe from the gap. 
Years later, Union City security drops by and abducts Robert, killing his
tribe in the process; upon reaching the city the helicopter taking him there
crashes with him escaping, high upon a tower block in the middle of the city
he sets out to discover the truth about his past, and to seek vengeance for
the killing of his tribe.
This game was released by Revolution studio to help the scummvm project.
However, this is not a free game (free as free speech ), even if source code
can be seen. That's why it belongs to the non-free repository.

%files -f sky.lang
%doc readme.txt
%{_gamesbindir}/sky
%{scummvmdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/scalable/apps/%{name}.svg
%{_mandir}/man6/sky.6.*
%{_mandir}/de/man6/sky.6.*
%{_mandir}/sv/man6/sky.6.*

#-----------------------------------------------------------------------------

%prep
%setup -qn bass-cd-%{version} -a1


%build
# Pre-built stuff: only process translation files
pushd debian/po
	msgfmt -o de.mo de.po
	msgfmt -o fr.mo fr.po
	msgfmt -o sv.mo sv.po
popd


%install
# Install the game
mkdir -p %{buildroot}/%{scummvmdir}/%{name}
cp sky* %{buildroot}/%{scummvmdir}/%{name}

# Install launcher script
install -m 755 -D debian/sky %{buildroot}%{_gamesbindir}/sky

# Install .desktop file and fix it
install -m 644 -D debian/%{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop
desktop-file-edit --set-key="Terminal" --set-value="false" \
						--set-key="StartupNotify" --set-value="true" \
						--set-key="Exec" --set-value="sky" \
						%{buildroot}%{_datadir}/applications/%{name}.desktop

# Install our icons...
install -m 644 -D %{SOURCE2} %{buildroot}%{_liconsdir}/%{name}.png
install -m 644 -D %{SOURCE3} %{buildroot}%{_iconsdir}/%{name}.png
install -m 644 -D %{SOURCE4} %{buildroot}%{_miconsdir}/%{name}.png
# ... and the one from Debian
install -m 644 -D debian/icons/%{name}.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

# Install man pages
install -m 644 -D debian/sky.6 %{buildroot}%{_mandir}/man6/sky.6
install -m 644 -D debian/sky.de.6 %{buildroot}%{_mandir}/de/man6/sky.6
install -m 644 -D debian/sky.sv.6 %{buildroot}%{_mandir}/sv/man6/sky.6

# Instal translation files
install -m 644 -D debian/po/de.mo %{buildroot}%{_datadir}/locale/de/LC_MESSAGES/sky.mo
install -m 644 -D debian/po/fr.mo %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/sky.mo
install -m 644 -D debian/po/sv.mo %{buildroot}%{_datadir}/locale/sv/LC_MESSAGES/sky.mo

%find_lang sky

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20474 |21nr|bluez-firmware-1.2-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Bluetooth firmware utilities
Name:		bluez-firmware
Version:	1.2
Release:	10
License:	Freeware
Group:		Communications
Url:		http://bluez.sourceforge.net/
Source0:	%{name}-%{version}.tar.bz2
BuildArch:	noarch

%description
Bluetooth(TM) Firmware. Package contains firmware images for some
Bluetooth(TM) adapters. Currently supported are:
    * Broadcom Corporation BCM2033
    * AVM Computersysteme Vertriebs GmbH BLUEFRITZ! USB

The BLUETOOTH trademarks are owned by Bluetooth SIG, Inc., USA.

%files
%doc AUTHORS ChangeLog
/lib/firmware/*

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%configure \
	--libdir=/lib
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20475 |21nr|boycotadvance-0.2.8-0.r1.4.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# the emulator is close-sourced and debug package is empty
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define rel	1

Summary:	Gameboy Advance emulator
Name:		boycotadvance
Version:	0.2.8
Release:	0.r1.4.%{rel}
Epoch:		1
Group:		Emulators
License:	Freeware
URL:		http://boycottadvance.emuunlim.com/
Source0:	http://sdlemu.ngemu.com/releases/BoyCottAdvance-SDL-0.2.8R1.i386.linux.tar.gz
BuildRequires:	chrpath
ExclusiveArch:	%ix86

%description
Boycot Advance is a portable program for emulating the Nintendo 
Gameboy Advance software platform.

%prep
%setup -q -n boyca-sdl
perl -p -i -e 's|\r\n|\n|g' docs/*.TXT

%build

%install
mkdir -p %{buildroot}%{_bindir}
chrpath -d boyca
install -m 755 boyca %{buildroot}%{_bindir}/boyca
mkdir -p %{buildroot}%{_sysconfdir}
install -m 755 boyca.cfg %{buildroot}%{_sysconfdir}/boyca.cfg
(cd %{buildroot}%{_bindir} && ln -s %{_sysconfdir}/boyca.cfg boyca.cfg)

%files
%defattr(0644,root,root,0755)
%doc boyca.cfg docs/*.TXT PongFighter/*.zip
%attr(0755,root,root) %{_bindir}/boyca
%config(noreplace) %{_sysconfdir}/boyca.cfg
%{_bindir}/boyca.cfg

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20476 |21nr|broadcom-wl-6.30.223.271-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname	hybrid-v35
%define kname	wl

%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

Summary:	Proprietary driver for Broadcom wireless adapters
Name:		broadcom-wl
Version:	6.30.223.271
Release:	18
Source0:	http://www.broadcom.com/docs/linux_sta/%{oname}-nodebug-pcoem-6_30_223_271.tar.gz
Source1:	http://www.broadcom.com/docs/linux_sta/%{oname}_64-nodebug-pcoem-6_30_223_271.tar.gz
Source2:	broadcom-wl-blacklist.conf
Source3:	%{name}.rpmlintrc
Source4:	Kbuild
Source6:	broadcom-wl-alias.conf
Source7:	README.dnf
# fix crash (ubuntu, mga#16390)
Patch6:		broadcom-wl-6.30.223.271-fix-null-pointer-crash.patch
# fix build with 4.3 (aur)
Patch7:		broadcom-wl-6.30.223.271-kernel-4.3-rdtscl-buildfix.patch
# (tmb) fix build with 4.7
Patch8:		broadcom-wl-6.30.223.271-kernel-4.7-buildfix.patch
# (tmb) fix build with 4.8 (aur)
Patch9:		broadcom-wl-6.30.223.271-kernel-4.8-buildfix.patch
# (tmb) fix build with 4.11 (debian)
Patch10:	broadcom-wl-6.30.223.271-kernel-4.11-buildfix.patch
# (tmb) fix build with 4.12 (aur)
Patch11:	broadcom-wl-6.30.223.271-kernel-4.12-buildfix.patch
# (tmb) fix build with 4.14 (debian)
Patch12:	broadcom-wl-6.30.223.271-kernel-4.14-buildfix.patch
# (tmb) fix build with 4.15 (debian)
Patch13:	broadcom-wl-6.30.223.271-kernel-4.15-buildfix.patch
# (tmb) fix build with 5.1
Patch14:	broadcom-wl-6.30.223.271-kernel-5.1-buildfix.patch
# fix kernel warnings (debian)
Patch15:	broadcom-wl-6.30.223.271-debian-fix-kernel-warnings.patch
# fix mac profile discrepancy (debian)
Patch16:	broadcom-wl-6.30.223.271-fix_mac_profile_discrepancy.patch
# Allow normal users to send ioctl requests (debian)
Patch17:	broadcom-wl-6.30.223.271-allow-user_ioctl.patch
# (tmb) default wifi interface name should be wlan, not eth
Patch18:	broadcom-wl-6.30.223.271-ifname-wlan.patch
# (tmb) fix build with 5.6
Patch19:	broadcom-wl-6.30.223.271-kernel-5.6-buildfix.patch
# (tmb) disable time-date warnign
Patch20:	broadcom-wl-6.30.223.271-no-date-time.patch
# fix build error "/bin/sh: 1: [: Illegal number:" (debian)
Patch21:	broadcom-wl-6.30.223.271-debian-fix-dkms-build-error.patch
# fix build with 5.9 (debian)
Patch22:	broadcom-wl-6.30.223.271-kernel-5.9-buildfix.patch

License:	Freeware
Group:		System/Kernel and hardware
URL:		http://www.broadcom.com/support/802.11

%description
This package contains the proprietary driver for Broadcom wireless
adapters. The driver supports BCM4312-, BCM4313-, BCM4321-, BCM4322-, 
BCM43224-, BCM43225-, BCM43227- and BCM43228-based hardware.

%package -n dkms-%{name}
Summary:	Kernel module for Broadcom wireless adapters
Group:		System/Kernel and hardware
Requires(post):		dkms
Requires(preun):	dkms
Requires:	dracut >= 046
Requires:	%{name}-common

%description -n dkms-%{name}
This package contains the proprietary driver for Broadcom wireless
adapters. The driver supports BCM4312-, BCM4313-, BCM4321-, BCM4322-, 
BCM43224-, BCM43225-, BCM43227- and BCM43228-based hardware.

%files -n dkms-%{name}
%defattr(0644,root,root,0755)
%doc lib/LICENSE.txt
%dir %{_usr}/src/%{name}-%{version}-%{release}
%{_usr}/src/%{name}-%{version}-%{release}/*
%{_docdir}/%{name}/README.dnf

#---------------------------------------------------------------------------

%package -n %{name}-common
Summary:	Common files for Broadcom-wl drivers
Group:		System/Kernel and hardware

%description -n %{name}-common
This package contains the blacklist and ldetect-lst files shared
between dkms-broadcom-wl and the prebuilt broadcom-wl-* drivers.

%files -n %{name}-common
%config %{_sysconfdir}/modprobe.d/%{name}-alias.conf
%config %{_sysconfdir}/modprobe.d/%{name}-blacklist.conf

#---------------------------------------------------------------------------

%prep
%ifarch x86_64
%setup -q -T -c -a1 %{oname}
%else
%setup -q -T -c -a0 %{oname}
%endif

%autopatch -p1

# The Makefile from the upstream package contains the stuff related to
# WEXT support in the kernel, deprecated quite a while ago. In addition,
# the make rules listed there use `uname -r` in the path to the kernel
# build directory which prevents the user from building the driver for a
# kernel other than the running one.
# A Kbuild file we provide should be free from these issues.
rm -f Makefile
cp -p %{SOURCE4} .

# From the .spec file used in Fedora: convert LICENSE.txt to UTF-8 and
# tidy line endings.
iconv -f iso8859-1 -t UTF8 lib/LICENSE.txt -o lib/LICENSE.txt
sed -i 's/\r$//' lib/LICENSE.txt

%build

%install
# add aliases to force loading wl module for supported devices
install -m755 -d %{buildroot}/etc/modprobe.d/
install -m644 %{SOURCE2} %{buildroot}%{_sysconfdir}/modprobe.d
install -m644 %{SOURCE6} %{buildroot}%{_sysconfdir}/modprobe.d

mkdir -p %{buildroot}%{_docdir}/%{name}
install -p -m755 %{SOURCE7} %{buildroot}%{_docdir}/%{name}

# install dkms sources
mkdir -p %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}
cp -R * %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/
cat > %{buildroot}%{_usr}/src/%{name}-%{version}-%{release}/dkms.conf << EOF
MAKE="make -C \$kernel_source_dir M=\\\$(pwd)"
PACKAGE_NAME=%{name}
PACKAGE_VERSION=%{version}-%{release}
DEST_MODULE_LOCATION=/kernel/3rdparty/%{name}
BUILT_MODULE_NAME=%{kname}
AUTOINSTALL=yes
EOF

%post -n dkms-%{name}
set -x
/usr/sbin/dkms --rpm_safe_upgrade add -m %{name} -v %{version}-%{release}
if [ -z "$DURING_INSTALL" ] ; then
    /usr/sbin/dkms --rpm_safe_upgrade build -m %{name} -v %{version}-%{release} &&
    /usr/sbin/dkms --rpm_safe_upgrade install -m %{name} -v %{version}-%{release}
fi

%preun -n dkms-%{name}
# rmmod can fail
/sbin/rmmod %{kname} >/dev/null 2>&1 ||:
set -x
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{name} -v %{version}-%{release} --all || :

%posttrans -n %{name}-common
if [ -z "$DURING_INSTALL" ] ; then
    /sbin/rmmod b43 >/dev/null 2>&1 ||:
    /sbin/rmmod b43legacy >/dev/null 2>&1 ||:
    /sbin/rmmod brcmfmac >/dev/null 2>&1 ||:
    /sbin/rmmod brcmsmac >/dev/null 2>&1 ||:
    /sbin/rmmod bcma >/dev/null 2>&1 ||:
    /sbin/rmmod ssb >/dev/null 2>&1 ||:
    /sbin/modprobe wl >/dev/null 2>&1 ||:
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20477 |21nr|bumblebee-3.2.1-18
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Workaround to build with GCC 10
%global optflags %{optflags} -fcommon
%bcond_with git
%if %{with git}
%define gitdate 20120228
%endif
# Use nouveau driver by default
%bcond_with nouveau

Summary:	Support for NVidia Optimus laptops on Linux
Name:		bumblebee
Group:		System/Kernel and hardware
Version:	3.2.1
Release:	18
License:	GPLv3
Url:		https://github.com/Bumblebee-Project/bumblebee
# source from git repo git://github.com/Bumblebee-Project/Bumblebee.git
# we need to change to develop branch to allow changing to nouveau without
# using nvidia paths
#Source0:	https://github.com/downloads/Bumblebee-Project/Bumblebee/%{name}-%{!?with_git:%{version}}%{?with_git:%{gitdate}}.tar.%{?with_git:xz}%{!?with_git:gz}
Source0:	http://bumblebee-project.org/%{name}-%{version}.tar.gz

# Patch series from https://github.com/arafey/Bumblebee.
# Should fix automatic unload of nvidia-modeset, nvidia-uvm and nvidia-drm
# with the newer NVidia drivers.
# http://bugs.rosalinux.ru/show_bug.cgi?id=6976
Patch0:		0001-Dirty-fix-for-issue-699.patch
Patch1:		0002-Added-nvidia_modeset-detection-for-issue-699.patch
Patch2:		0003-Fix-nvidia_uvm-just-like-nvidia_modeset.patch
Patch3:		0004-Workaround-for-nvidia_drm-in-newer-drivers.patch

# Additional patch to fix the previous ones
Patch4:		0005-Unload-modules-one-by-one-and-in-the-correct-order.patch

BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libbsd)
BuildRequires:	help2man
Requires(pre):	update-alternatives
Requires(post,preun):	systemd-units
Requires(pre):	rpm-helper
Requires(post):	/sbin/modprobe
Requires:	VirtualGL
Requires:	%mklibname VirtualGL
%ifarch x86_64
Requires:	libVirtualGL
%endif
%if %{with nouveau}
Requires:	x11-driver-video-nouveau
%else
# NOTE: Install preferred version of NVIDIA driver via XFdrake
# Requires:	x11-driver-video-nvidia-current
%endif

%description
Bumblebee daemon is a rewrite of the original Bumblebee service, providing
an elegant and stable means of managing Optimus hybrid graphics chip sets.
A primary goal of this project is to not only enable use of the discrete
GPU for rendering, but also to enable smart power management of the dGPU
when it's not in use.

%files
%doc README.markdown doc/RELEASE_NOTES_3_2_1 README.install.urpmi
%{_sysconfdir}/bash_completion.d/bumblebee
%dir %{_sysconfdir}/bumblebee/
%dir %{_sysconfdir}/bumblebee/xorg.conf.d/
%config(noreplace) %{_sysconfdir}/bumblebee/bumblebee.conf
%config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nouveau
%config(noreplace) %{_sysconfdir}/bumblebee/xorg.conf.nvidia
%{_sbindir}/bumblebeed
%{_bindir}/optirun
%{_bindir}/bumblebee-bugreport
%{_mandir}/man1/bumblebeed.1.*
%{_mandir}/man1/optirun.1.*
%{_sysconfdir}/bumblebee/xorg.conf.d/10-dummy.conf
%{_sysconfdir}/bumblebee/modprobe.conf
%{_udevrulesdir}/99-bumblebee-nvidia-dev.rules
%{_unitdir}/bumblebeed.service

%pre
%_pre_groupadd %{name}
if [ "$1" -eq "1" ];then
  users=$(getent passwd | awk -F: '$3 >= 500 && $3 < 60000 {print $1}')
  for user in $users; do
    gpasswd -a $user bumblebee
  done
#  /usr/sbin/update-alternatives --set gl_conf %{_sysconfdir}/ld.so.conf.d/GL/standard.conf
fi

%post
# blacklist nouveau
grub2-cfg-mod --add "rdblacklist=nouveau"
update-grub2
# run bumblebeed
%_post_service bumblebeed
# Simple: still needs this since in release 3 services were not set
# enabled and seams that still isnt properly handeled in %%_post_service
if [ "$1" -ge "1" ]; then
  # Enable (but don't start) the unit by default
  /bin/systemctl enable bumblebeed.service
  # Start bumblebeed service
  /bin/systemctl start bumblebeed.service
fi

%preun
%_preun_service bumblebeed

%postun
# We need this since "%%_postun_groupdel %%{name}" doesnt remove the group if
# set to a user
if [ "$1" -eq "0" ];then
  %{_sbindir}/groupdel bumblebee
fi
# un-blacklist nouveau on uninstall
if [ "$1" -eq "0" ];then
  grub2-cfg-mod --del "rdblacklist=nouveau"
  update-grub2
fi

# Simple: we need to ensure bumblebee group isnt removed when upgrading
# This doesnt need exist for Mageia 2
%triggerpostun -- %{name} < 3.0-9
%_pre_groupadd %{name}
users=$(getent passwd | awk -F: '$3 >= 500 && $3 < 60000 {print $1}')
for user in $users; do
  gpasswd -a $user bumblebee
done

#--------------------------------------------------------------------
%prep
%setup -q%{?with_git:n %{name}}
%apply_patches

cat > README.install.urpmi <<EOF
Use XFdrake to configure X to use the correct NVIDIA driver. Any needed
packages will be automatically installed if not already present.

1. Run XFdrake
2. Go to the Video Driver list
3. Select the preferred driver from the list
4. Reboot

%build
%{?with_git:NOCONFIGURE=1 autoreconf -fi}
%configure \
%if %{with nouveau}
CONF_DRIVER=nouveau \
%else
CONF_DRIVER=nvidia \
CONF_DRIVER_MODULE_NVIDIA=nvidia \
%endif
CONF_KEEPONEXIT=true \
CONF_TURNOFFATEXIT=false \
CONF_PM_METHOD=auto \
%ifarch x86_64
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia:%{_libdir}/nvidia:%{_usr}/lib/libglvnd:%{_libdir}/libglvnd \
CONF_MODPATH_NVIDIA=%{_usr}/lib/nvidia/xorg,%{_libdir}/nvidia/xorg,%{_usr}/lib/xorg/modules,%{_libdir}/xorg/modules,%{_usr}/lib/xorg/extra-modules,%{_usr}/xorg/extra-modules \
CONF_PRIMUS_LD_PATH=%{_usr}/lib/primus:%{_libdir}/primus
%else
CONF_LDPATH_NVIDIA=%{_usr}/lib/nvidia:%{_usr}/lib/libglvnd \
CONF_MODPATH_NVIDIA=%{_usr}/lib/nvidia/xorg,%{_usr}/lib/xorg/modules,%{_usr}/lib/xorg/extra-modules \
CONF_PRIMUS_LD_PATH=%{_usr}/lib/primus
%endif

%make

%install
%makeinstall_std
echo "nvidia && bumblebee" > %{buildroot}%{_sysconfdir}/bumblebee/modprobe.conf

install -D -m644 scripts/systemd/bumblebeed.service %{buildroot}%{_unitdir}/bumblebeed.service

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20478 |21nr|cg-3.1.0013-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define major 0
%define libname %mklibname cg %{major}
%define devname %mklibname cg -d

# libGLU.so doesn'tGL- exist as a provide, so we require GL-devel and add this exception
%if %{_use_internal_dependency_generator}
%global __requires_exclude libGLU.so
%else
%define _requires_exceptions libGLU.so
%endif

Summary:	Cg Toolkit - GPU Shader Authoring Language
Name:		cg
Version:	3.1.0013
Release:	5
License:	Freeware
Group:		Development/C
URL:		http://developer.nvidia.com/object/cg_toolkit.html
Source0:	http://developer.download.nvidia.com/cg/Cg_2.2/Cg-3.1_April2012_x86.tgz
Source1:	http://developer.download.nvidia.com/cg/Cg_2.2/Cg-3.1_April2012_x86_64.tgz
BuildRequires:	recode
Provides:	Cg = %{EVRD}
ExclusiveArch:	%{ix86} x86_64

%description
The award-winning Cg Toolkit enables software developers to add the latest 
interactive effects to real-time applications with a comprehensive solution 
that works across platforms and graphics API containing:

    * Compiler for the Cg 2.2 language
    * Cg/CgFX Runtime libraries for OpenGL and Direct3D
    * User's Manual and documentation on the Cg Language, Runtime APIs, Cg 
       Library, CgFX States, and Cg Profiles
    * Numerous Cg examples

Supporting dozens of different OpenGL and DirectX profile targets, Cg 
2.2 allows you to incorporate stunning, interactive effects within your 
3D applications and share them between other Cg applications, across 
graphics APIs, and most operating systems (Windows 2000, XP, Vista, Mac 
OS X for Tiger &  Leopard, x86 Linux 32-bit & 64-bit, x86 Solaris 32-bit 
& 64-bit).

This package contains documentation.

%files
%defattr(0644,root,root,0755)
%{_docdir}/%{name}
%exclude %{_docdir}/%{name}/examples

#------------------------------------------------------------------------------

%package examples
Summary:	Examples from %{name}
Group:		Development/C
Provides:	Cg-examples = %{EVRD}
Requires:	%{name} = %{EVRD}

%description examples
Several examples of programs using Cg toolkit.

%files examples
%defattr(0644,root,root,0755)
%{_docdir}/%{name}/examples

#------------------------------------------------------------------------------

%package -n %{libname}
Summary:	Dynamic libraries from %{name}
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}
Provides:	libCg = %{EVRD}

%description -n %{libname}
Dynamic libraries from Cg toolkit.

%files -n %{libname}
%defattr(0755,root,root,0755)
%{_libdir}/*

#------------------------------------------------------------------------------

%package -n %{devname}
Summary:	Header files and static libraries from %{name}
Group:		Development/C
Requires:	lib%{name} = %{version}
Requires:	pkgconfig(gl)
Requires:	pkgconfig(glu)
Provides:	%{name}-devel = %{EVRD}
Provides:	Cg-devel = %{EVRD}
Obsoletes:	%{name}-devel < %{EVRD}
Obsoletes:	Cg-devel < %{EVRD}

%description -n %{devname}
Binaries (compiler), libraries and includes files for developing programs 
based on Cg toolkit.

%files -n %{devname}
%defattr(0644,root,root,0755)
%attr(0755,root,root) %{_bindir}/cgc
%attr(0755,root,root) %{_bindir}/cgfxcat
%attr(0755,root,root) %{_bindir}/cginfo
%{_docdir}/%{devname}
%{_includedir}/Cg

#------------------------------------------------------------------------------

%install
#uncompress the right tarball according to the arch
mkdir -p %{buildroot}
cd %{buildroot}
%ifarch %ix86
tar xvzf %{SOURCE0}
%else
tar xvzf %{SOURCE1}
%endif

#move the doc to the right directory
mkdir -p %{buildroot}%{_docdir}/%{name}
mv %{buildroot}/usr/local/Cg/* %{buildroot}%{_docdir}/%{name}

#include the license in subpackages, too
mkdir %{buildroot}%{_docdir}/%{libname}
mkdir %{buildroot}%{_docdir}/%{devname}
cp %{buildroot}%{_docdir}/%{name}/docs/license.txt %{buildroot}%{_docdir}/%{devname}

# To avoid extra Provides
rm -rf %{buildroot}%{_docdir}/%{name}/examples/Trace

#License doesn't allow us to modify the binaries and libraries
export DONT_STRIP=1

chmod 0755 %{buildroot}%{_libdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20479 |21nr|clementine-1.4.0-1.rc1.868.1plf
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
######################
# Hardcode PLF build
%bcond_without plf
######################

%if %{with plf}
# Make EVR of plf build higher than regular to allow update, needed with rpm5 mkrel
%define	extrarelsuffix plf
%endif

%define	gstapi 1.0
%define	oname Clementine

%define	gitcommit 868-g65319d495
%define	rc_rel %(echo %{gitcommit} |cut -d- -f1)

Summary:	A cross-platform music player based on Amarok 1.4
Name:		clementine
Version:	1.4.0
Release:	1.rc1.%{rc_rel}.1%{?extrarelsuffix}
License:	GPLv3+
Group:		Sound
Url:		https://www.clementine-player.org/
Source0:	https://github.com/clementine-player/Clementine/releases/download/%{version}rc1-%{gitcommit}/%{name}-%{version}rc1-%{gitcommit}.tar.xz
Source1:	%{oname}.conf
Source100:	%{name}.rpmlintrc
# Search albums at metal-archives.com (Encyclopaedia Metallum) from:
# - Now Playing widget (album art context menu) - current album
# - Playlist (selected songs context menu) - unique selected albums
Patch0:		clementine-1.4.0rc1-864-g0fab61278-metalarchives.patch
Patch1:		clementine-1.4.0rc1-864-g0fab61278-cmake-string.patch
# Localization issues
Patch2:		clementine-1.4.0rc1-864-g0fab61278-fix-l10n-issues.patch
Patch3:		clementine-1.4.0rc1-864-g0fab61278-desktop-initial-pref-add-play-folder.patch
# Remove default shortcuts because they steals focus when using GNOME
# https://github.com/clementine-player/Clementine/issues/6191
Patch6:		clementine-1.4.0-remove-default-shortcuts.patch
Patch7:		clementine-1.4.0rc1-804-g333203c97-fix-splitting-desktop-gnome.patch
BuildRequires:	cmake
BuildRequires:	gettext
BuildRequires:	kde5-macros
BuildRequires:	qt5-linguist-tools
BuildRequires:	boost-devel
BuildRequires:	fftw3-devel
BuildRequires:	gmock-devel
BuildRequires:	gtest-devel
BuildRequires:	liblastfm-qt5-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(cryptopp)
BuildRequires:	pkgconfig(cryptopp)
BuildRequires:	pkgconfig(gio-2.0)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glew)
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gstreamer-app-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-audio-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-base-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-%{gstapi})
BuildRequires:	pkgconfig(gstreamer-tag-%{gstapi})
BuildRequires:	pkgconfig(libavcodec)
BuildRequires:	pkgconfig(libavutil)
BuildRequires:	pkgconfig(libcdio)
BuildRequires:	pkgconfig(libchromaprint)
BuildRequires:	pkgconfig(libgpod-1.0)
BuildRequires:	pkgconfig(libmtp) >= 1.0
# Needed, but there is a copy in-tree
#BuildRequires:	pkgconfig(libmygpo-qt5)
# For Google Drive and Amazon Cloud integration
BuildRequires:	pkgconfig(libsparsehash)
BuildRequires:	pkgconfig(libpulse)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(protobuf)
BuildRequires:	pkgconfig(Qt5Concurrent)
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5DBus)
BuildRequires:	pkgconfig(Qt5Network)
BuildRequires:	pkgconfig(Qt5OpenGL)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Test)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5X11Extras)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(taglib)
BuildRequires:	pkgconfig(x11)
%if %{with plf}
BuildRequires:	pkgconfig(libspotify)
BuildRequires:	protobuf-static-devel
# libspotify not available on aarch64
ExcludeArch:	aarch64
%endif
Requires:	libprojectm-data
Requires:	gstreamer%{gstapi}-flac
Requires:	gstreamer%{gstapi}-plugins-ugly
Recommends:		gstreamer%{gstapi}-decoders-audio
Recommends:		gstreamer%{gstapi}-faac
Recommends:		gstreamer%{gstapi}-faad
Recommends:		gstreamer%{gstapi}-lame
# Needed to be able to mount ipod/iphone/ipad (not tested locally) but it's also pulling gvfs
# which is needed at least to mount mtp devices (tested locally)
Recommends:		gvfs-iphone

%description
Clementine is a modern music player and library organizer. Clementine is
a port of Amarok 1.4, with some features rewritten to take advantage of
Qt5.
Features:
	* Search and play your local music library.
	* Listen to internet radio from Last.fm, SomaFM and Magnatune.
	* Tabbed playlists, import and export M3U, XSPF, PLS and ASX.
	* Visualisations from projectM.
	* Transcode music into MP3, Ogg Vorbis, Ogg Speex, FLAC or AAC.
	* Edit tags on MP3 and OGG files, organize your music.
	* Download missing album cover art from Last.fm.
	* Remote control using a Wii Remote, MPRIS or the command-line.
	* Copy music to your iPod, iPhone, MTP or mass-storage USB player.
	* Queue manage.

%files
%doc Changelog README.md
%license COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-tagreader
%config(noreplace) %{_sysconfdir}/%{oname}/%{oname}.conf
%{_datadir}/applications/org.clementine_player.Clementine.desktop
%{_datadir}/metainfo/org.clementine_player.Clementine.appdata.xml
%{_datadir}/%{name}/projectm-presets
%{_iconsdir}/hicolor/*/apps/org.clementine_player.Clementine.*
%{_kde5_services}/%{name}-*.protocol

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{version}rc1-%{gitcommit}

# Fix perms
find . -name "*.hpp" -o -name "*.h" -o -name ".cpp" |xargs chmod 0644


%build
%cmake_qt5
%make


%install
%makeinstall_std -C build

install -m 644 -D %{SOURCE1} %{buildroot}%{_sysconfdir}/%{oname}/%{oname}.conf

%if %{with plf}
# Ugly hack, not sure why those directory trees appear
rm -rf %{buildroot}/tmp/*
rm -rf %{buildroot}/build/spotify/*
rm -rf %{buildroot}/builddir/build/BUILD/*/build/spotify/*/blob
%endif

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20480 |21nr|clustalw-2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	General purpose multiple alignment program
Name:		clustalw
Version:	2.1
Release:	4
License:	GPLv3 and LGPLv3
URL:		http://www.clustal.org
Source:		http://www.clustal.org/download/%{version}/clustalw-%{version}.tar.gz
Group:		Sciences/Biology

%description
CLUSTAL W and CLUSTAL X Multiple Sequence Alignment Programs
                (version 2.1, 17th Nov 2010)                

Contact email address: clustalw@ucd.ie

For details and citation purposes see paper "Clustal W and Clustal X
version 2.0", Larkin M., et al. Bioinformatics 2007 23(21):2947-2948
http://bioinformatics.oxfordjournals.org/cgi/content/full/23/21/2947

Clustal X provides a window-based user interface to the ClustalW
multiple alignment program.                                     

%prep
%setup -q clustalw-%{version}

%build
%configure
%make

%install
rm -fr %buildroot
%makeinstall_std

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc README COPYING COPYING.LESSER clustalw_help
%_bindir/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20481 |21nr|clustalx-2.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	GUI interface for ClustalW
Name:		clustalx
Version:	2.1
Release:	3
License:	GPLv3 and LGPLv3
URL:		http://www.clustal.org
BuildRequires:	qt4-devel
Source:		http://www.clustal.org/download/%{version}/clustalx-%{version}.tar.gz
Group:		Sciences/Biology

%description
CLUSTAL W and CLUSTAL X Multiple Sequence Alignment Programs
                (version 2.1, 17th Nov 2010)

Contact email address: clustalw@ucd.ie

For details and citation purposes see paper "Clustal W and Clustal X
version 2.0", Larkin M., et al. Bioinformatics 2007 23(21):2947-2948
http://bioinformatics.oxfordjournals.org/cgi/content/full/23/21/2947

Clustal X provides a window-based user interface to the ClustalW
multiple alignment program.

%prep
%setup -q clustalx-%{version}
rm -f moc_*

%build
%qmake_qt4
%make

%install
rm -fr %buildroot
mkdir -p %buildroot%_bindir
install -m755 clustalx %buildroot%_bindir/clustalx

mkdir -p %buildroot%_datadir/applications
cat << EOF > %buildroot%_datadir/applications/mandriva-%name.desktop
[Desktop Entry]
Name=Clustal X
Comment=GUI interface for ClustalW
Exec=%{name}
Icon=biology
Terminal=false
Type=Application
Categories=Biology;Science;Qt;
EOF

%clean
rm -rf %{buildroot}

%if %mdkversion < 200900
%post
%update_menus
%endif

%if %mdkversion < 200900
%postun
%clean_menus
%endif

%files
%defattr(-,root,root)
%doc README COPYING COPYING.LESSER clustalx.hlp
%_bindir/*
%_datadir/applications/mandriva-%name.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20482 |21nr|cndrvcups-common-5.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@

Summary:	Canon Printer Driver Common PPD files for Linux
Name:		cndrvcups-common
Version:	5.50
Release:	1
License:	See the LICENSE-*.txt file.
Group:		System/Printing
# repack from linux-UFRII-drv-v550-m17n-00.tar.gz/Sources
Source0:	%{name}-%{version}.tar.gz
BuildArch:		noarch

%description
Canon Printer Driver Common PPD files for Linux.

%files
%{_datadir}/cups/model

#------------------------------------------------------------------------------------

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_datadir}/cups/model

find . -type f -name *.ppd -exec install -c -m644 {} %{buildroot}%{_datadir}/cups/model \;

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20483 |21nr|cndrvcups-lb-3.20-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define README_VERSION 2.5x
%define RELEASE 1

%ifarch x86_64
%define libs32 /usr/lib
%define locallibs /usr/lib64
%else
%define libs32 %{_libdir}
%define locallibs /usr/lib
%endif

%if %{_use_internal_dependency_generator}
%define __noautoreq 'devel.*'
%else
%define _requires_exceptions devel.*
%endif

Summary:	Canon UFR II / LIPSLX Printer Driver
Name:		cndrvcups-lb
Version:	3.20
Release:	3
License:	See the LICENSE*.txt file.
# Copyright: Copyright CANON INC. 2004-2012. All Rights Reserved.
Vendor:		CANON INC.
Group:		System/Printing
# http://support-au.canon.com.au/contents/AU/EN/0100270808.html
Source0:	cndrvcups-lb-%{version}-%{RELEASE}.tar.gz
BuildRequires:	cndrvcups-common >= %{version}
BuildRequires:	libtool gettext
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	cups-devel
Requires:	cndrvcups-common >= %{version}

Conflicts:	cndrvcups-ufr2-uk
Conflicts:	cndrvcups-ufr2-us
Conflicts:	cndrvcups-ufr2-lipslx

ExclusiveArch: %{ix86}

%description 
Canon UFR II / LIPSLX Printer Driver for Linux. 
This UFR II / LIPSLX printer driver provides printing functions
for Canon LBP/iR printers operating under the CUPS
(Common UNIX Printing System) environment.

%files
%doc README*.txt
%defattr(-,root,root)
%{libs32}/libcnlbcm.so*
%{libs32}/libcanonufr2.*
%{libs32}/libufr2filter.*
%{libs32}/libEnoJBIG.*
%{libs32}/libEnoJPEG.*
%{libs32}/libcaiocnpkbidi.*
%{_bindir}/cnpkbidi
%{_bindir}/cnpkmoduleufr2
%{_libdir}/libcnpkufr2.*
%{_libdir}/cups/filter/pstoufr2cpca
#%{_libdir}/cups/backend/cnusb
%{_prefix}/share/cups/model/CNCUPS*ZK.ppd
%{_prefix}/share/caepcm/C*
%{_prefix}/share/cnpkbidi/cnpkbidi*
%{_prefix}/share/ufr2filter/ThLB*
%{_includedir}/cnpklibufr2.h
# cngplp
%{locallibs}/libuictlufr2.*
%{_prefix}/share/cngplp/cngplp_ufr2.glade
%{_prefix}/share/cngplp/CN*ZK.res
%{_prefix}/share/cngplp/common_ufr2.res
%{_prefix}/share/cngplp/func_config_ufr2.xml
%{_prefix}/share/locale/ja/LC_MESSAGES/libuictlufr2*.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/libuictlufr2*.mo
%{_prefix}/share/locale/it/LC_MESSAGES/libuictlufr2*.mo
%{_prefix}/share/locale/de/LC_MESSAGES/libuictlufr2*.mo
%{_prefix}/share/locale/es/LC_MESSAGES/libuictlufr2*.mo

#--------------------------------------------------------------------

%prep
%setup -q

cd ppd
./autogen.sh --prefix=%{_prefix} 

cd ../pstoufr2cpca
cp Makefile.am Makefile.in
cp filter/Makefile.am filter/Makefile.in
NOCONFIGURE=1 ./autogen.sh --prefix=%{_prefix} --libdir=%{_libdir}
autoreconf
./configure --prefix=%{_prefix} --libdir=%{_libdir}

#cd ../backend
#./autogen.sh --prefix=%{_prefix} --libdir=%{_libdir}

cd ../cpca
NOCONFIGURE=1 ./autogen.sh --prefix=%{_prefix} --enable-progpath=%{_bindir} --libdir=%{_libdir} --enable-static --disable-shared
autoreconf
./configure --prefix=%{_prefix} --libdir=%{_libdir}
cd ..

cd cngplp
NOCONFIGURE=1 ./autogen.sh --libdir=%{locallibs}
autoreconf
cp configure.ac configure.in
./configure --libdir=%{locallibs}

cd files
./autogen.sh
cd ..

cd ..
 
%build
make 

%install

mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{libs32}
mkdir -p %{buildroot}%{_libdir}
mkdir -p %{buildroot}%{_libdir}/cups/filter
mkdir -p %{buildroot}%{_libdir}/cups/backend
mkdir -p %{buildroot}%{_prefix}/share/cups/model
mkdir -p %{buildroot}%{_prefix}/share/caepcm
mkdir -p %{buildroot}%{_prefix}/share/cnpkbidi
mkdir -p %{buildroot}%{_prefix}/share/ufr2filter
mkdir -p %{buildroot}%{_includedir}
# cngplp
mkdir -pv %{buildroot}%{locallibs}
mkdir -pv %{buildroot}%{_prefix}/share/cngplp

make install DESTDIR=%{buildroot}

install -c -m 4755 libs/cnpkmoduleufr2 %{buildroot}%{_bindir}

install -c    -m 755 libs/libcanonufr2.la %{buildroot}%{libs32}
install -c -s -m 755 libs/libcanonufr2.so.1.0.0 %{buildroot}%{libs32}
install -c -s -m 755 libs/libufr2filter.so.1.0.0 %{buildroot}%{libs32}
install -c -s -m 755 libs/libEnoJBIG.so.1.0.0 %{buildroot}%{libs32}
install -c -s -m 755 libs/libEnoJPEG.so.1.0.0 %{buildroot}%{libs32}
install -c -s -m 755 libs/cnpkbidi %{buildroot}%{_bindir}
install -c -s -m 755 libs/libcaiocnpkbidi.so.1.0.0 %{buildroot}%{libs32}

install -c -m 644 data/CnLB* %{buildroot}%{_prefix}/share/caepcm
install -c -m 644 libs/cnpkbidi_info* %{buildroot}%{_prefix}/share/cnpkbidi
install -c -m 644 libs/ThLB* %{buildroot}%{_prefix}/share/ufr2filter

install -c -m 755 libs/libcnlbcm.so.1.0 %{buildroot}%{libs32}

# just remove these files to provide the same content as rpms from canon site
rm -f %{buildroot}%{_datadir}/cups/model/CN*ZJ.ppd
rm -f %{buildroot}%{_datadir}/cups/model/CN*ZS.ppd
rm -f %{buildroot}%{_prefix}/share/cngplp/CN*ZJ.res
rm -f %{buildroot}%{_prefix}/share/cngplp/CN*ZS.res

mkdir -p %{buildroot}%{_prefix}/share/locale/
mv %{buildroot}%{_prefix}/local/share/locale/* %{buildroot}%{_prefix}/share/locale/
rm -rf %{buildroot}%{_prefix}/local

cd %{buildroot}%{libs32}
ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so
ln -sf libcanonufr2.so.1.0.0 libcanonufr2.so.1
ln -sf libufr2filter.so.1.0.0 libufr2filter.so
ln -sf libufr2filter.so.1.0.0 libufr2filter.so.1
ln -sf libEnoJBIG.so.1.0.0 libEnoJBIG.so
ln -sf libEnoJBIG.so.1.0.0 libEnoJBIG.so.1
ln -sf libEnoJPEG.so.1.0.0 libEnoJPEG.so
ln -sf libEnoJPEG.so.1.0.0 libEnoJPEG.so.1
ln -sf libcaiocnpkbidi.so.1.0.0 libcaiocnpkbidi.so
ln -sf libcaiocnpkbidi.so.1.0.0 libcaiocnpkbidi.so.1
ln -sf libcnlbcm.so.1.0 libcnlbcm.so.1
ln -sf libcnlbcm.so.1.0 libcnlbcm.so
cd -

%post
if [ -d /usr/lib64/cups ]; then
	if [ -d /usr/lib/cups ]; then
		cd /usr/lib/cups/backend
		ln -sf ../../../lib64/cups/backend/cnusb cnusb
		cd /usr/lib/cups/filter
		ln -sf ../../../lib64/cups/filter/pstoufr2cpca pstoufr2cpca
	fi
fi
if [ -x /sbin/ldconfig ]; then
	/sbin/ldconfig
fi
%postun
if [ $1 = 0 ]; then
	if [ -d /usr/lib64/cups ]; then
		if [ -d /usr/lib/cups ]; then
			cd /usr/lib/cups/backend
			rm -f cnusb
			cd /usr/lib/cups/filter
			rm -f pstoufr2cpca
		fi
	fi
fi
if [ -x /sbin/ldconfig ]; then
	/sbin/ldconfig
fi

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20484 |21nr|cnrdrvcups-lb-5.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define VERSION 5.50

%ifarch x86_64
%define	_machine_type "MACHINETYPE=x86_64"
%define	_cflags "CFLAGS=-m64 -march=x86-64"
%define	_libsarch libs64/intel
%else
%ifarch aarch64
%define	_machine_type "MACHINETYPE=aarch64"
%define _cflags "CFLAGS=-fsigned-char"
%define	_libsarch libs64/arm
%else
%ifarch mips64el
%define	_machine_type "MACHINETYPE=mips64el"
%define _cflags ""
%define	_libsarch libs64/mips
%else
%define	_machine_type "MACHINETYPE=i686"
%define	_cflags "CFLAGS=-m32 -march=i686"
%define	_libsarch libs32/intel
%endif
%endif
%endif
%define locallibs  /usr/lib

%define common_dir cnrdrvcups-common-%{VERSION}
%define driver_dir cnrdrvcups-lb-%{VERSION}
%define utility_dir cnrdrvcups-utility-%{VERSION}
%define b_lib_dir %{_builddir}/lib
%define b_include_dir %{_builddir}/include

%define debug_package %{nil}

#==== introduction ============================================================================================

Summary:	Canon UFR II / LIPSLX Printer Driver for Linux v%{VERSION}
Name:		cnrdrvcups-lb
Version:	%{VERSION}
Release:	1
License:	See the LICENSE*.txt file.
# Copyright: Copyright CANON INC. 2004
Vendor:		CANON INC.
Group:		System/Printing
# extracted archive from linux-UFRII-drv-v550-m17n-00.tar.gz/Sources
Source0:	cnrdrvcups-lb-%{version}.tar.gz
BuildRequires:	pkgconfig(glib-2.0)
BuildRequires:	cups-devel
BuildRequires:	libxml2-devel
BuildRequires:	gettext-devel
BuildRequires:	pkgconfig(libglade-2.0)
BuildRequires:	pkgconfig(gtk+-3.0)

%description 
Canon UFR II / LIPSLX Printer Driver for Linux. 
This UFR II / LIPSLX printer driver provides printing functions for Canon LBP/iR
printers operating under the CUPS (Common UNIX Printing System) environment.

#-----------------------------------------------------------------------
%package -n cnrdrvcups-ufr2-uk
Summary: Canon UFR II Printer Driver for Linux v%{VERSION}
License: See the LICENSE*.txt file.
Vendor: CANON INC.
Group: System/Printing
Recommends: cndrvcups-common

%description -n cnrdrvcups-ufr2-uk
Canon UFR II Printer Driver for Linux. 
This UFR II printer driver provides printing functions for Canon LBP/iR
printers operating under the CUPS (Common UNIX Printing System) environment.

%files -n cnrdrvcups-ufr2-uk
%defattr(-,root,root)

%{_prefix}/share/locale/ja/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/de/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/es/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/it/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/cngplp2.mo
# cngplp
%{_prefix}/share/cngplp2/cngplp.ui
#
%{_prefix}/bin/cngplp2
%{_prefix}/bin/cnjatool2
%{_prefix}/lib/cups/backend/cnusbufr2
%{_sysconfdir}/cngplp2/account
%{_sysconfdir}/cngplp2/options

%{_libdir}/libcaiowrapufr2.so*

%{_libdir}/libcaepcmufr2.so*
%{_libdir}/libcanon_slimufr2.so*

%{_prefix}/share/caepcm/ufr2/C*
%{_prefix}/share/cups/usb/canon-laser-printer_ufr2.usb-quirks
%{_libdir}/libColorGearCufr2.so*

%{_libdir}/libcnlbcmr.so*
%{_libdir}/libcanonufr2r.*
%{_libdir}/libufr2filterr.*
%{_libdir}/libcaiocnpkbidir.*
%{_bindir}/cnpkbidir
%{_bindir}/cnpkmoduleufr2r

%{_prefix}/lib/cups/filter/rastertoufr2
%{_prefix}/lib/cups/filter/pdftocpca
%{_bindir}/cnrsdrvufr2
%{_bindir}/cnjbigufr2
%{_bindir}/cnpdfdrv

%{_prefix}/share/cups/model/CNRCUPS*ZK.ppd
%{_prefix}/share/cnpkbidir/cnpkbidi*
%{_prefix}/share/ufr2filterr/ThLB*
# cngplp
%{_libdir}/libuictlufr2r.*
%{_prefix}/share/cngplp2/cngplp_ufr2.ui
%{_prefix}/share/cngplp2/CN*ZK.res
%{_prefix}/share/cngplp2/common_ufr2.res
%{_prefix}/share/cngplp2/func_config_ufr2.xml
%{_prefix}/share/locale/ja/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/it/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/de/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/es/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/libuictlufr2r*.mo

%{_prefix}/share/cnsetuputil2/cnsetuputil.ui
%{_prefix}/share/locale/ja/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/de/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/es/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/it/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/bin/cnsetuputil2

%exclude %{_libdir}/libColorGearC.so*

#-----------------------------------------------------------------------

%package -n cnrdrvcups-ufr2-us
Summary: Canon UFR II Printer Driver for Linux v%{VERSION}
License: See the LICENSE*.txt file.
Vendor: CANON INC.
Group: System/Printing
Recommends: cndrvcups-common

%description -n cnrdrvcups-ufr2-us
Canon UFR II Printer Driver for Linux. 
This UFR II printer driver provides printing functions for Canon LBP/iR
printers operating under the CUPS (Common UNIX Printing System) environment.

%files -n cnrdrvcups-ufr2-us
%defattr(-,root,root)

%{_prefix}/share/locale/ja/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/de/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/es/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/it/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/cngplp2.mo
# cngplp
%{_prefix}/share/cngplp2/cngplp.ui
#
%{_prefix}/bin/cngplp2
%{_prefix}/bin/cnjatool2
%{_prefix}/lib/cups/backend/cnusbufr2
%{_sysconfdir}/cngplp2/account
%{_sysconfdir}/cngplp2/options

%{_libdir}/libcaiowrapufr2.so*

%{_libdir}/libcaepcmufr2.so*
%{_libdir}/libcanon_slimufr2.so*

%{_prefix}/share/caepcm/ufr2/C*
%{_prefix}/share/cups/usb/canon-laser-printer_ufr2.usb-quirks
%{_libdir}/libColorGearCufr2.so*

%{_libdir}/libcnlbcmr.so*
%{_libdir}/libcanonufr2r.*
%{_libdir}/libufr2filterr.*
%{_libdir}/libcaiocnpkbidir.*
%{_bindir}/cnpkbidir
%{_bindir}/cnpkmoduleufr2r

%{_prefix}/lib/cups/filter/rastertoufr2
%{_prefix}/lib/cups/filter/pdftocpca
%{_bindir}/cnrsdrvufr2
%{_bindir}/cnjbigufr2
%{_bindir}/cnpdfdrv

%{_prefix}/share/cups/model/CNRCUPS*ZS.ppd
%{_prefix}/share/cnpkbidir/cnpkbidi*
%{_prefix}/share/ufr2filterr/ThLB*
# cngplp
%{_libdir}/libuictlufr2r.*
%{_prefix}/share/cngplp2/cngplp_ufr2.ui
%{_prefix}/share/cngplp2/CN*ZS.res
%{_prefix}/share/cngplp2/common_ufr2.res
%{_prefix}/share/cngplp2/func_config_ufr2.xml
%{_prefix}/share/locale/ja/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/it/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/de/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/es/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/libuictlufr2r*.mo

%{_prefix}/share/cnsetuputil2/cnsetuputil.ui
%{_prefix}/share/locale/ja/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/de/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/es/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/it/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/bin/cnsetuputil2

%exclude %{_libdir}/libColorGearC.so*

#-----------------------------------------------------------------------

%package -n cnrdrvcups-lipslx
Summary: Canon LIPSLX Printer Driver for Linux v%{VERSION}
License: See the LICENSE*.txt file.
Vendor: CANON INC.
Group: System/Printing

%description -n cnrdrvcups-lipslx
Canon LIPSLX Printer Driver for Linux. 
This LIPSLX printer driver provides printing functions for Canon LBP/iR
printers operating under the CUPS (Common UNIX Printing System) environment.

%files -n cnrdrvcups-lipslx

%{_prefix}/share/locale/ja/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/de/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/es/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/it/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/cngplp2.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/cngplp2.mo
# cngplp
%{_prefix}/share/cngplp2/cngplp.ui
#
%{_prefix}/bin/cngplp2
%{_prefix}/bin/cnjatool2
%{_prefix}/lib/cups/backend/cnusbufr2
%{_sysconfdir}/cngplp2/account
%{_sysconfdir}/cngplp2/options

%{_libdir}/libcaiowrapufr2.so*

%{_libdir}/libcaepcmufr2.so*
%{_libdir}/libcanon_slimufr2.so*

%{_prefix}/share/caepcm/ufr2/C*
%{_prefix}/share/cups/usb/canon-laser-printer_ufr2.usb-quirks
%{_libdir}/libColorGearCufr2.so*

%defattr(-,root,root)
%{_libdir}/libcnlbcmr.so*
%{_libdir}/libcanonufr2r.*
%{_libdir}/libufr2filterr.*
%{_libdir}/libcaiocnpkbidir.*
%{_bindir}/cnpkbidir
%{_bindir}/cnpkmoduleufr2r

%{_prefix}/lib/cups/filter/rastertoufr2
%{_prefix}/lib/cups/filter/pdftocpca
%{_bindir}/cnrsdrvufr2
%{_bindir}/cnjbigufr2
%{_bindir}/cnpdfdrv

%{_prefix}/share/cups/model/CNRCUPS*ZJ.ppd
%{_prefix}/share/cnpkbidir/cnpkbidi*
%{_prefix}/share/ufr2filterr/ThLB*
# cngplp
%{_libdir}/libuictlufr2r.*
%{_prefix}/share/cngplp2/cngplp_ufr2.ui
%{_prefix}/share/cngplp2/CN*ZJ.res
%{_prefix}/share/cngplp2/common_ufr2.res
%{_prefix}/share/cngplp2/func_config_ufr2.xml
%{_prefix}/share/locale/ja/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/it/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/de/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/es/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/libuictlufr2r*.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/libuictlufr2r*.mo

%{_prefix}/share/cnsetuputil2/cnsetuputil.ui
%{_prefix}/share/locale/ja/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/de/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/es/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/fr/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/it/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/zh_CN/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/ko/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/share/locale/zh_TW/LC_MESSAGES/cnsetuputil2.mo
%{_prefix}/bin/cnsetuputil2

%exclude %{_libdir}/libColorGearC.so*

#==== prep section ============================================================================================
%prep
%setup -q

##### common #####
	cd %{_builddir}/%{common_dir}
	cd buftool
	NOCONFIGURE=1 ./autogen.sh %{_machine_type} %{_cflags} --prefix=%{_prefix} --libdir=%{_libdir} --enable-progpath=%{_bindir} --disable-shared --enable-static
	autoreconf
	cp configure.ac configure.in
	./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-progpath=%{_bindir} --disable-shared --enable-static

	cd ../cngplp
	NOCONFIGURE=1 ./autogen.sh --libdir=%{locallibs} --prefix=%{_prefix} COMMON_SUFFIX=2
	autoreconf
	cp configure.ac configure.in
	./configure --libdir=%{locallibs} --prefix=%{_prefix} COMMON_SUFFIX=2

	cd ../backend
	NOCONFIGURE=1 ./autogen.sh %{_machine_type} %{_cflags} --prefix=%{_prefix} --libdir=%{_libdir} MODULE_SUFFIX=ufr2
	autoreconf
	cp configure.ac configure.in
	./configure --prefix=%{_prefix} --libdir=%{_libdir} MODULE_SUFFIX=ufr2

	cd ../rasterfilter
	NOCONFIGURE=1 ./autogen.sh %{_machine_type} %{_cflags} --prefix=%{_prefix} --libdir=%{_libdir}
	autoreconf
	cp configure.ac configure.in
	./configure --prefix=%{_prefix} --libdir=%{_libdir}

	cd ../cnjbig
	NOCONFIGURE=1 ./autogen.sh %{_machine_type} %{_cflags} --prefix=%{_prefix}
	autoreconf
	cp configure.ac configure.in
	./configure --prefix=%{_prefix}

	cd ..

	cd ..
##### driver #####
	cd %{_builddir}/%{driver_dir}

	cd cpca
	NOCONFIGURE=1 ./autogen.sh %{_machine_type} %{_cflags} --prefix=%{_prefix} --libdir=%{_libdir} --enable-progpath=%{_bindir}
	autoreconf
	cp configure.ac configure.in
	./configure --prefix=%{_prefix} --libdir=%{_libdir} --enable-progpath=%{_bindir}

	cd ../cngplp
	NOCONFIGURE=1 ./autogen.sh %{_machine_type} %{_cflags} --prefix=%{_prefix} --libdir=%{_libdir}
	autoreconf
	cp configure.ac configure.in
	./configure --prefix=%{_prefix} --libdir=%{_libdir}

	cd files
	NOCONFIGURE=1 ./autogen.sh %{_machine_type} %{_cflags}
	autoreconf
	cp configure.ac configure.in
	./configure
	cd ..

	cd ../pdftocpca
	NOCONFIGURE=1 ./autogen.sh %{_machine_type} %{_cflags} --libdir=%{_libdir}
	autoreconf
	cp configure.ac configure.in
	./configure --libdir=%{_libdir}
	cd ..

	cd ..


##### utility #####
	cd %{_builddir}/%{utility_dir}
	cd ..

#==== build section ============================================================================================
%build
	cd %{_builddir}/%{common_dir}
	cd buftool
	make
	cp libbuftool.a %{b_lib_dir}/
	cp buftool.h %{b_include_dir}/
	cp buflist.h %{b_include_dir}/
	cd ..

	make

	cd ..

	cd %{_builddir}/%{driver_dir}
	make
	cd ..

#==== install section ============================================================================================
%install

mkdir -pv %{_libdir}
mkdir -pv %{buildroot}%{_bindir}
mkdir -pv %{buildroot}%{_libdir}
mkdir -pv %{buildroot}%{_prefix}/lib/cups/filter
mkdir -pv %{buildroot}%{_prefix}/lib/cups/backend/
mkdir -pv %{buildroot}%{_includedir}
mkdir -pv %{buildroot}%{_prefix}/share/locale/ja/LC_MESSAGES
mkdir -pv %{buildroot}%{_prefix}/share/cups/usb
mkdir -pv %{buildroot}%{_prefix}/share/cups/model
mkdir -pv %{buildroot}%{_prefix}/share/caepcm/ufr2
mkdir -pv %{buildroot}%{_prefix}/share/cnpkbidir
mkdir -pv %{buildroot}%{_prefix}/share/ufr2filterr
# cngplp
mkdir -pv %{buildroot}%{_prefix}/share/cngplp2/
mkdir -pv %{buildroot}%{locallibs}
#utility
mkdir -pv %{buildroot}%{_prefix}/share/cnsetuputil2
mkdir -pv %{buildroot}%{_prefix}/share/locale/ja/LC_MESSAGES
mkdir -pv %{buildroot}%{_prefix}/share/locale/de/LC_MESSAGES
mkdir -pv %{buildroot}%{_prefix}/share/locale/es/LC_MESSAGES
mkdir -pv %{buildroot}%{_prefix}/share/locale/fr/LC_MESSAGES
mkdir -pv %{buildroot}%{_prefix}/share/locale/it/LC_MESSAGES
mkdir -pv %{buildroot}%{_prefix}/share/locale/zh_CN/LC_MESSAGES
mkdir -pv %{buildroot}%{_prefix}/share/locale/ko/LC_MESSAGES
mkdir -pv %{buildroot}%{_prefix}/share/locale/zh_TW/LC_MESSAGES

#### common ####
	cd ${RPM_BUILD_DIR}/%{common_dir}
	%make_install COMMON_SUFFIX=2

	install -c -m 644 Rule/canon-laser-printer.usb-quirks	%{buildroot}%{_prefix}/share/cups/usb/canon-laser-printer_ufr2.usb-quirks
	cd -

cd %{b_lib_dir}
install -c -m 755 %{_libsarch}/libcaiowrapufr2.so.1.0.0		%{buildroot}%{_libdir}
install -c -m 755 %{_libsarch}/libcaepcmufr2.so.1.0			%{buildroot}%{_libdir}
install -c -m 755 %{_libsarch}/libColorGearCufr2.so.2.0.0    %{buildroot}%{_libdir}
install -c -m 644 data/ufr2/*.ICC	%{buildroot}%{_prefix}/share/caepcm/ufr2
install -c -m 644 data/ufr2/*.icc	%{buildroot}%{_prefix}/share/caepcm/ufr2
install -c -m 644 data/ufr2/*.PRF	%{buildroot}%{_prefix}/share/caepcm/ufr2
install -c -m 755 %{_libsarch}/libcanon_slimufr2.so.1.0.0		%{buildroot}%{_libdir}
cd -

cd %{buildroot}%{_libdir}
ln -sf libcaepcmufr2.so.1.0			libcaepcmufr2.so.1
ln -sf libcaepcmufr2.so.1.0			libcaepcmufr2.so
ln -sf libcaiowrapufr2.so.1.0.0		libcaiowrapufr2.so.1
ln -sf libcaiowrapufr2.so.1.0.0		libcaiowrapufr2.so
ln -sf libcanon_slimufr2.so.1.0.0		libcanon_slimufr2.so.1
ln -sf libcanon_slimufr2.so.1.0.0		libcanon_slimufr2.so
ln -sf libColorGearCufr2.so.2.0.0   libColorGearCufr2.so.2
ln -sf libColorGearCufr2.so.2.0.0   libColorGearCufr2.so
cd -

#### driver ####
	cd ${RPM_BUILD_DIR}/%{driver_dir}
	%make_install

	install -c -m 644 ppd/CN*.ppd	%{buildroot}%{_prefix}/share/cups/model
	cd -

cd %{b_lib_dir}
install -c -m 4755 %{_libsarch}/cnpkmoduleufr2r 	%{buildroot}%{_bindir}
install -c -m 755 %{_libsarch}/cnpdfdrv 			%{buildroot}%{_bindir}
install -c -m 755 %{_libsarch}/libcanonufr2r.so.1.0.0  %{buildroot}%{_libdir}
install -c -m 755 %{_libsarch}/libufr2filterr.so.1.0.0   %{buildroot}%{_libdir}
install -c -m 755 %{_libsarch}/cnpkbidir   %{buildroot}%{_bindir}
install -c -m 755 %{_libsarch}/libcaiocnpkbidir.so.1.0.0   %{buildroot}%{_libdir}
install -c -m 755 %{_libsarch}/cnrsdrvufr2 	%{buildroot}%{_bindir}
install -c -m 644 data/ufr2/CnLB*	%{buildroot}%{_prefix}/share/caepcm/ufr2
install -c -m 644 %{_libsarch}/cnpkbidir_info*	%{buildroot}%{_prefix}/share/cnpkbidir
install -c -m 644 %{_libsarch}/ThLB*	%{buildroot}%{_prefix}/share/ufr2filterr
install -c -m 755 %{_libsarch}/libcnlbcmr.so.1.0			%{buildroot}%{_libdir}
cd -

cd %{buildroot}%{_libdir}
ln -sf libcanonufr2r.so.1.0.0 libcanonufr2r.so
ln -sf libcanonufr2r.so.1.0.0 libcanonufr2r.so.1
ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so
ln -sf libufr2filterr.so.1.0.0 libufr2filterr.so.1
ln -sf libcaiocnpkbidir.so.1.0.0 libcaiocnpkbidir.so
ln -sf libcaiocnpkbidir.so.1.0.0 libcaiocnpkbidir.so.1
ln -sf libcnlbcmr.so.1.0			libcnlbcmr.so.1
ln -sf libcnlbcmr.so.1.0			libcnlbcmr.so
ln -sf libuictlufr2r.so.1.0.0	libuictlufr2r.so.1
ln -sf libuictlufr2r.so.1.0.0	libuictlufr2r.so
cd -

#### utility ####
cd ${RPM_BUILD_DIR}/%{utility_dir}
install -c -m 644 data/cnsetuputil.ui	%{buildroot}%{_prefix}/share/cnsetuputil2
cd %{b_lib_dir}
install -c -m 755 %{_libsarch}/cnsetuputil2	%{buildroot}%{_prefix}/bin
install -c -m 644 %{_libsarch}/ja/LC_MESSAGES/cnsetuputil2.mo       %{buildroot}%{_prefix}/share/locale/ja/LC_MESSAGES
install -c -m 644 %{_libsarch}/de/LC_MESSAGES/cnsetuputil2.mo       %{buildroot}%{_prefix}/share/locale/de/LC_MESSAGES
install -c -m 644 %{_libsarch}/es/LC_MESSAGES/cnsetuputil2.mo       %{buildroot}%{_prefix}/share/locale/es/LC_MESSAGES
install -c -m 644 %{_libsarch}/fr/LC_MESSAGES/cnsetuputil2.mo       %{buildroot}%{_prefix}/share/locale/fr/LC_MESSAGES
install -c -m 644 %{_libsarch}/it/LC_MESSAGES/cnsetuputil2.mo       %{buildroot}%{_prefix}/share/locale/it/LC_MESSAGES
install -c -m 644 %{_libsarch}/zh_CN/LC_MESSAGES/cnsetuputil2.mo    %{buildroot}%{_prefix}/share/locale/zh_CN/LC_MESSAGES
install -c -m 644 %{_libsarch}/ko/LC_MESSAGES/cnsetuputil2.mo       %{buildroot}%{_prefix}/share/locale/ko/LC_MESSAGES
install -c -m 644 %{_libsarch}/zh_TW/LC_MESSAGES/cnsetuputil2.mo    %{buildroot}%{_prefix}/share/locale/zh_TW/LC_MESSAGES
cd -


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20485 |21nr|dahdi-firmware-2.6.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		dahdi-firmware
Summary:	Non-free firmware for dahdi
Group:		System/Kernel and hardware
Version:	2.6.1
Release:	3
License:	Proprietary
URL:		http://www.asterisk.org/
# firmware extracted from http://downloads.asterisk.org/pub/telephony/dahdi-linux/dahdi-linux-%{version}.tar.gz
Source0:	%{name}-%{version}.tar.xz
BuildArch:	noarch

Requires:	make wget

%description
This package includes the non-free firmwares from the DAHDI tarball as well
as downloading script for the Digium firmwares that are normally downloaded
on 'make install'.

Attention: you need active Internet connection during this package
installation. If Network was unavailable, you can download and install firmware
later by running the following command as root:

  make -C %{_datadir}/%{name} HOTPLUG_FIRMWARE=yes hotplug-install

%prep
%setup -q

%build

%install
install -d -m 755 %{buildroot}%{_datadir}/dahdi
cp xpp/firmwares/*.hex %{buildroot}%{_datadir}/dahdi/
install -D -m 644 firmware/Makefile %{buildroot}%{_datadir}/%{name}/Makefile

%post
make -C %{_datadir}/%{name} HOTPLUG_FIRMWARE=yes hotplug-install

%preun
make -C %{_datadir}/%{name} HOTPLUG_FIRMWARE=yes hotplug-uninstall

%files
%doc xpp/firmwares/LICENSE.firmware
%doc xpp/firmwares/README
%{_datadir}/dahdi/*
%{_datadir}/%{name}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20486 |21nr|dangerdeep-data-0.4-0_pre3327.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define prerel 0_pre3327

Summary:	Data package for dangerdeep
Name:		dangerdeep-data
Version:	0.4
Release:	%{prerel}.1
License:	Freeware
Group:		Games/Simulation
Url:		http://dangerdeep.sourceforge.net/
Source0:	http://heanet.dl.sourceforge.net/project/dangerdeep/%{version}.%{release}/%{name}-%{version}.%{prerel}.zip
BuildArch:	noarch

%description
Danger from the deep (aka dangerdeep) is a Free / Open Source World War II
german submarine simulation. It is currently available for Linux/i386 and
Windows, but since it uses SDL/OpenGL it should be portable to other operating
systems or platforms. (If anyone whishes to port it, please contact us.) This
game is planned as tactical simulation and will be as realistic as our time and
knowledge of physics allows. It's current state is ALPHA, but it is playable.

This is a non-free package due the non commercial purposes of it's
distribution.

%files
%doc LICENSE
%{_gamesdatadir}/dangerdeep

#----------------------------------------------------------------------------

%prep
%setup -qn data

%build

%install
install -d -m 755 %{buildroot}%{_gamesdatadir}/dangerdeep
cp -r convoys \
	environment \
	flotillas \
	fonts \
	images \
	maps \
	menus \
	missions \
	models \
	objects \
	shaders \
	sounds \
	texts \
	textures \
	%{buildroot}%{_gamesdatadir}/dangerdeep

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20487 |21nr|dektec-0-0.20091104.3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name dektec
%define version 0
%define release 0.20091104.3

Name:      %name
Version:   %version
Release:   %release
License:   Proprietary
Source0:   LinuxSDK.zip
Group:     Development/Kernel
Buildroot: %{_tmppath}/%{realname}-%{realversion}-%{realrelease}-buildroot
Summary:   Libraries and utilities for using Dektec cards
Url:       http://www.dektec.com/downloads/Drivers.asp
ExclusiveArch: %ix86

%description
This package contains libraries and utilities for using Dektec cards.

%package utils
Summary:   Utilities for Dektec cards
Group:     Development/Kernel

%description utils
DtPlay:        Command-line player application
DtRecord:      Command-line recorder application
DtRmxUtil:     Command-line remultiplexing utility

%package devel
Summary:   Libraries for Dektec cards
Group:     Development/C++

%description devel
C++ API that wraps the driver calls into an easy-to-use and
object-oriented programming interface.

%prep
%setup -q -n LinuxSDK

%build
make -C DtRecord
make -C DtPlay

%install
rm -rf %buildroot

mkdir -p %buildroot%_bindir
cp -a DtPlay/DtPlay %buildroot%_bindir
cp -a DtRecord/DtRecord %buildroot%_bindir
cp -a DtRmxUtil/DtRmxUtil %buildroot%_bindir
chmod 0755 %buildroot%_bindir/DtRmxUtil

mkdir -p %buildroot%_includedir
cp -a DTAPI/Include/DTAPI.h %buildroot%_includedir
mkdir -p %buildroot%_libdir
%if "%{?_lib}" == "lib64"
cp -a DTAPI/DTAPI64.o %buildroot%_libdir
%else
cp -a DTAPI/DTAPI.o %buildroot%_libdir
%endif

%clean
rm -rf %buildroot

%files utils
%defattr(-,root,root)
%_bindir/*

%files devel
%defattr(-,root,root)
%doc DTAPI/Doc/DTAPI.pdf
%_includedir/*
%_libdir/*.o

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20488 |21nr|discord-0.0.9-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	All-in-one voice and text chat for gamers
Name:		discord
Version:	0.0.9
Release:	2
License:	Freeware
Group:		Networking/Chat
Url:		https://discordapp.com/
Source0:	https://dl.discordapp.net/apps/linux/%{version}/%{name}-%{version}.deb
# Not auto-detected, force it
Requires:	%{_lib}c++1
ExclusiveArch:	x86_64

%description
All-in-one voice and text chat for gamers that’s free, secure,
and works on both your desktop and phone. Stop paying for
TeamSpeak servers and hassling with Skype. Simplify your life.

%files
%{_bindir}/discord
%{_datadir}/pixmaps/discord.png
%{_datadir}/applications/discord.desktop
%{_datadir}/discord
%{_datadir}/doc/discord

#----------------------------------------------------------------------------

%prep

%build

%install
ar p %{SOURCE0} data.tar.xz | unxz | tar x -C %{buildroot}

rm -rf %{buildroot}%{_datadir}/lintian

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20489 |21nr|draftsight-2019.3.0.4107-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __os_install_post %{nil}
%define debug_package %{nil}
%define dsver 2019SP3

%define __spec_helper_post %{nil}

%global __provides_exclude libphonon.*|libQt.*|libq.*


Summary:	Professional CAD system: supported file formats are DWT, DXF and DWG
Name:		draftsight
Version:	2019.3.0.4107
Release:	4
License:	Standalone license, activation required
Group:		Graphics
Url:		http://www.3ds.com/products-services/draftsight/download-draftsight
Source0:	http://dl-ak.solidworks.com/nonsecure/draftsight/%{dsver}/draftSight.rpm
Source1:	draftsight-2019SP3-fix-mime-types.patch
Source2:	ft-rockey.rules
Source100:	%{name}.rpmlintrc
BuildRequires:	desktop-file-utils
Requires:	gnome-icon-theme
Requires:	xdg-utils
Requires:	%mklibname audio 2
Requires:	%mklibname cups 2
Requires:	%mklibname glu 1
Requires:	%mklibname phonon 4
Requires:	%mklibname udev 1
Requires:	%mklibname uuid 1
Requires:	%mklibname x11_ 6
Requires:	%mklibname z 1
AutoReqProv:	No
ExclusiveArch:	x86_64

%description
Free CAD software for your DWG files by Dassault Systèmes
(standalone license). DraftSight lets professional CAD users, students
and educators create, edit and view DWG files. DraftSight runs on
Windows®, Mac® and Linux.

%files
/opt/dassault-systemes
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/16x16/apps/*.png
%{_iconsdir}/hicolor/16x16/mimetypes/*.png
%{_iconsdir}/gnome/16x16/apps/*.png
%{_iconsdir}/gnome/16x16/mimetypes/*.png
%{_iconsdir}/hicolor/32x32/apps/*.png
%{_iconsdir}/hicolor/32x32/mimetypes/*.png
%{_iconsdir}/gnome/32x32/apps/*.png
%{_iconsdir}/gnome/32x32/mimetypes/*.png
%{_iconsdir}/hicolor/48x48/apps/*.png
%{_iconsdir}/hicolor/48x48/mimetypes/*.png
%{_iconsdir}/gnome/48x48/apps/*.png
%{_iconsdir}/gnome/48x48/mimetypes/*.png
%{_iconsdir}/hicolor/64x64/apps/*.png
%{_iconsdir}/hicolor/64x64/mimetypes/*.png
%{_iconsdir}/gnome/64x64/apps/*.png
%{_iconsdir}/gnome/64x64/mimetypes/*.png
%{_iconsdir}/hicolor/128x128/apps/*.png
%{_iconsdir}/hicolor/128x128/mimetypes/*.png
%{_iconsdir}/gnome/128x128/apps/*.png
%{_iconsdir}/gnome/128x128/mimetypes/*.png
%{_datadir}/pixmaps/dassault-systemes.%{name}.png
%{_datadir}/mime/packages/*.xml
%{_localstatedir}/opt/dassault-systemes
%config(noreplace) %{_sysconfdir}/udev/rules.d/ft-rockey.rules

#----------------------------------------------------------------------------

%prep
%setup -q -c -T

%build

%install
mkdir -p %{buildroot}
pushd %{buildroot}
rpm2cpio %{SOURCE0} | cpio -idV --quiet

# Fix *.desktop file and mime-types:
patch -p1 < %{SOURCE1}

# Create a launcher
mkdir -p %{buildroot}%{_bindir}
echo "#!/bin/sh" > %{buildroot}%{_bindir}/%{name}
echo "LD_PRELOAD=/%{_lib}/libuuid.so.1:/%{_lib}/libudev.so.1 /opt/dassault-systemes/DraftSight/Linux/DraftSight" >> %{buildroot}%{_bindir}/%{name}
chmod a+x %{buildroot}%{_bindir}/%{name}

# Move *.desktop file to datadir:
mkdir -p %{buildroot}%{_datadir}/applications
mv %{buildroot}/opt/dassault-systemes/DraftSight/Resources/dassault-systemes_%{name}.desktop %{buildroot}%{_datadir}/applications/dassault-systemes_%{name}.desktop

# Install mime-types:
mkdir -p %{buildroot}%{_datadir}/mime/packages
mv %{buildroot}/opt/dassault-systemes/DraftSight/Resources/dassault-systemes_%{name}-dwg.xml %{buildroot}%{_datadir}/mime/packages/dassault-systemes_%{name}-dwg.xml
mv %{buildroot}/opt/dassault-systemes/DraftSight/Resources/dassault-systemes_%{name}-dwt.xml %{buildroot}%{_datadir}/mime/packages/dassault-systemes_%{name}-dwt.xml
#mv %%{buildroot}/opt/dassault-systemes/DraftSight/Resources/dassault-systemes_%%{name}-dxf.xml %%{buildroot}%%{_datadir}/mime/packages/dassault-systemes_%%{name}-dxf.xml
popd

# Install pixmaps:
for SIZE in 16 32 48 64 128; do
  mkdir -p %{buildroot}%{_iconsdir}/hicolor/${SIZE}x${SIZE}/apps
  mkdir -p %{buildroot}%{_iconsdir}/hicolor/${SIZE}x${SIZE}/mimetypes
  mkdir -p %{buildroot}%{_iconsdir}/gnome/${SIZE}x${SIZE}/apps
  mkdir -p %{buildroot}%{_iconsdir}/gnome/${SIZE}x${SIZE}/mimetypes
  cp %{buildroot}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${SIZE}x${SIZE}/program.png %{buildroot}%{_iconsdir}/hicolor/${SIZE}x${SIZE}/apps/dassault-systemes.%{name}.png
  mv %{buildroot}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${SIZE}x${SIZE}/program.png %{buildroot}%{_iconsdir}/gnome/${SIZE}x${SIZE}/apps/dassault-systemes.%{name}.png
  cp %{buildroot}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${SIZE}x${SIZE}/file-dwg.png %{buildroot}%{_iconsdir}/hicolor/${SIZE}x${SIZE}/mimetypes/application-vnd.dassault-systemes.%{name}-dwg.png
  mv %{buildroot}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${SIZE}x${SIZE}/file-dwg.png %{buildroot}%{_iconsdir}/gnome/${SIZE}x${SIZE}/mimetypes/application-vnd.dassault-systemes.%{name}-dwg.png
#  cp %{buildroot}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${SIZE}x${SIZE}/file-dxf.png %{buildroot}%{_iconsdir}/hicolor/${SIZE}x${SIZE}/mimetypes/application-vnd.dassault-systemes.%{name}-dxf.png
#  mv %{buildroot}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${SIZE}x${SIZE}/file-dxf.png %{buildroot}%{_iconsdir}/gnome/${SIZE}x${SIZE}/mimetypes/application-vnd.dassault-systemes.%{name}-dxf.png
  cp %{buildroot}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${SIZE}x${SIZE}/file-dwt.png %{buildroot}%{_iconsdir}/hicolor/${SIZE}x${SIZE}/mimetypes/application-vnd.dassault-systemes.%{name}-dwt.png
  mv %{buildroot}/opt/dassault-systemes/DraftSight/Resources/pixmaps/${SIZE}x${SIZE}/file-dwt.png %{buildroot}%{_iconsdir}/gnome/${SIZE}x${SIZE}/mimetypes/application-vnd.dassault-systemes.%{name}-dwt.png
done
mkdir -p %{buildroot}%{_datadir}/pixmaps
cp %{buildroot}%{_iconsdir}/hicolor/48x48/apps/dassault-systemes.%{name}.png %{buildroot}%{_datadir}/pixmaps/dassault-systemes.%{name}.png

# Remove unused resources:
rm -rf %{buildroot}/opt/dassault-systemes/DraftSight/Resources

# Fix missing genltshp.shx:
pushd %{buildroot}/opt/dassault-systemes/DraftSight/Fonts
ln -s LTypeShp.shx genltshp.shx
popd

# Install udev rule (prepare for dongle):
if [ %{_sysconfdir}/udev/rules.d/ ]; then
mkdir -p %{buildroot}%{_sysconfdir}/udev/rules.d
install -m 644 %{SOURCE2} %{buildroot}%{_sysconfdir}/udev/rules.d/ft-rockey.rules
fi

find %{buildroot} -type f -empty -delete

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20490 |21nr|drascula-1.0-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define scummvmdir %{_datadir}/scummvm/

Name:		drascula
Version:	1.0
Release:	5
Summary:	Drascula: The Vampire Strikes Back - Adventure Game
Group:		Games/Adventure
License:	Freeware
URL:		http://wiki.scummvm.org/index.php/Drascula:_The_Vampire_Strikes_Back
Source0:	http://downloads.sourceforge.net/scummvm/%{name}-%{version}.zip
Source1:	http://downloads.sourceforge.net/scummvm/%{name}-int-1.1.zip
Source2:	http://downloads.sourceforge.net/scummvm/drascula-audio-2.0.zip
Source3:	drascula-v6.dat
Source4:	drascula.png
BuildRequires:	unzip
BuildArch:	noarch
Requires:	scummvm

%description
You play the role of John Hacker, a British estate agent, who travels to a
small village of Transylvania in order to negotiate the sale of some ground
of Gibraltar with the Count Drascula. 
But unfortunately Hacker is not aware of who is Drascula in reality: the most
terrible vampire with just one idea on his mind: DOMINATING the World
demonstrating that he is even more evil than his brother Vlad.

%prep
%setup -q -n %{name} -c %{name}
unzip -oqqj %{SOURCE1}
unzip -oqqj %{SOURCE2}

%install
%__install -d -m 755 %{buildroot}%{_gamesbindir}
# startscript
%__cat > %{buildroot}%{_gamesbindir}/%{name} <<'EOF'
#!/bin/bash
# Basic switch of language according to locale defined in Unix systems
case "$LC_MESSAGES" in
    de* )
        language="de"
	;;
    es* )
        language="es"
	;;
    fr* )
        language="fr"
	;;
    it* )
        language="it"
	;;
    * )
        language="en"
	;;
esac
scummvm -f -n -m 128 -p %{scummvmdir}/%{name} --language=$language %{name}
EOF

%__chmod 755 %{buildroot}%{_gamesbindir}/%{name}

%__mkdir_p %{buildroot}/%{scummvmdir}/%{name}
%__install -p -m 644 Packet.001 PACKET.00? *.ogg %{buildroot}/%{scummvmdir}/%{name}
%__install -p -m 644 %{SOURCE3} %{buildroot}/%{scummvmdir}/%{name}/drascula.dat

%__mkdir_p %{buildroot}%{_datadir}/applications
%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=Drascula: The Vampire Strikes Back
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;AdventureGame;
EOF

mkdir -p %{buildroot}/%{_iconsdir}/%{name}
install -p -m 644 %{SOURCE4} %{buildroot}/%{_iconsdir}/%{name}.png

%clean

%files
%doc readme.txt drascula.doc
%{_gamesbindir}/%{name}
%{scummvmdir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20491 |21nr|eduke32-2.0.4svn10166-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define svn 20221225-10166-122aee012

%define svndate %(echo %{svn} |cut -d- -f1)
%define svnver %(echo %{svn} |cut -d- -f2)
%define svngit %(echo %{svn} |cut -d- -f3)

Summary:	Source port of Duke Nukem 3D
Name:		eduke32
Version:	2.0.4svn%{svnver}
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.eduke32.com/
Source0:	https://dukeworld.com/eduke32/synthesis/%{svn}/eduke32_src_%{svn}.tar.xz
Source1:	%{name}_32x32.png
Source2:	%{name}_48x48.png
Source3:	%{name}_64x64.png
Source4:	%{name}_128x128.png
Source5:	%{name}.desktop
Source6:	%{name}-demo-install.sh
BuildRequires:	nasm
BuildRequires:	libstdc++-static-devel
BuildRequires:	flac-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vpx)
BuildRequires:	pkgconfig(xrender)
Requires:	eduke32_engine = %{EVRD}

%description
EDuke32 is a source port of the classic PC first person shooter Duke Nukem 3D.

This game is non-free because it requires non-free data to function.

%files
%doc package/common/buildlic.txt
%doc package/common/gpl-2.0.txt
%{_gamesbindir}/%{name}-demo-install
%dir %{_gamesdatadir}/%{name}/
%{_gamesdatadir}/%{name}/m32help.hlp
%{_gamesdatadir}/%{name}/sehelp.hlp
%{_gamesdatadir}/%{name}/sthelp.hlp
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png

#----------------------------------------------------------------------------

%package gui
Summary:	Eduke32 GUI game
Group:		Games/Arcade
Requires:	update-alternatives
Provides:	eduke32 = %{EVRD}
Provides:	eduke32_engine = %{EVRD}

%description gui
Eduke32 package with nice simple GTK loader.

%files gui
%ghost %{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-gui
%{_datadir}/applications/%{name}-gui.desktop

%preun gui
if [ "$1" = 0 ] ; then
	update-alternatives --remove %{name} %{_gamesbindir}/%{name}-gui
fi

%post gui
update-alternatives --install %{_gamesbindir}/%{name} %{name} %{_gamesbindir}/%{name}-gui 11

#----------------------------------------------------------------------------

%package console
Summary:	Eduke32 Console game
Group:		Games/Arcade
Requires:	update-alternatives
Provides:	eduke32 = %{EVRD}
Provides:	eduke32_engine = %{EVRD}

%description console
Classic console Eduke32 without GUI launcher.

%files console
%{_gamesbindir}/%{name}-console
%{_datadir}/applications/%{name}-console.desktop

%preun console
if [ "$1" = 0 ] ; then
	update-alternatives --remove %{name} %{_gamesbindir}/%{name}-console
fi

%post console
update-alternatives --install %{_gamesbindir}/%{name} %{name} %{_gamesbindir}/%{name}-console 11

#----------------------------------------------------------------------------

%package mapeditor
Summary:	Eduke32 map editor
Group:		Games/Arcade
Requires:	update-alternatives

%description mapeditor
Eduke32 maps editor based on BUILD engine.

# both versions of editor are packed but only GUI one is preffered but can be changed
# with use of update-alternatives
%files mapeditor
%ghost %{_gamesbindir}/mapster32
%{_gamesbindir}/mapster32-gui
%{_gamesbindir}/mapster32-console

%preun mapeditor
if [ "$1" = 0 ] ; then
	update-alternatives --remove mapster32 %{_gamesbindir}/mapster32-console
	update-alternatives --remove mapster32 %{_gamesbindir}/mapster32-gui
fi

%post mapeditor
update-alternatives --install %{_gamesbindir}/mapster32 mapster32 %{_gamesbindir}/mapster32-console 11
update-alternatives --install %{_gamesbindir}/mapster32 mapster32 %{_gamesbindir}/mapster32-gui 12

#----------------------------------------------------------------------------

%package utils
Summary:	Eduke32 build tools
Group:		Games/Arcade

%description utils
Eduke32 build tools.

%files utils
%{_bindir}/kextract
%{_bindir}/kgroup
%{_bindir}/transpal
%{_bindir}/wad2art
%{_bindir}/wad2map

#----------------------------------------------------------------------------

%prep
%setup -q -n eduke32_%{svn}
cp %{SOURCE1} .
cp %{SOURCE2} .
cp %{SOURCE3} .
cp %{SOURCE4} .
cp %{SOURCE5} .
cp %{SOURCE6} .

%build
make veryclean
%make \
	BASEASFLAGS=""		\
	BASECFLAGS="%{optflags}"	\
	BASELDFLAGS="%{ldflags}"	\
	HAVE_GTK2=1		\
	RELEASE=1		\
	SDL_TARGET=2
mv %{name} %{name}-gui
mv mapster32 mapster32-gui
make veryclean

make \
	BASEASFLAGS=""		\
	BASECFLAGS="%{optflags}"	\
	BASELDFLAGS="%{ldflags}"	\
	RELEASE=1		\
	SDL_TARGET=2		\
	WITHOUT_GTK=1
mv %{name} %{name}-console
mv mapster32 mapster32-console

make veryclean
make utils \
	BASEASFLAGS=""		\
	BASECFLAGS="%{optflags}"	\
	BASELDFLAGS="%{ldflags}"	\
	RELEASE=1		\
	SDL_TARGET=2

touch %{name}
touch mapster32

%install
# ghost version of files...
install -Dm 0755 %{name} %{buildroot}%{_gamesbindir}/%{name}
install -Dm 0755 mapster32 %{buildroot}%{_gamesbindir}/mapster32
# shareware demo installer script
install -Dm 0755 %{name}-demo-install.sh %{buildroot}%{_gamesbindir}/%{name}-demo-install
# gui versions of game engine
install -Dm 0755 %{name}-gui %{buildroot}%{_gamesbindir}/%{name}-gui
install -Dm 0755 mapster32-gui %{buildroot}%{_gamesbindir}/mapster32-gui
# console versions of game engine
install -Dm 0755 mapster32-console %{buildroot}%{_gamesbindir}/mapster32-console
install -Dm 0755 %{name}-console %{buildroot}%{_gamesbindir}/%{name}-console
# data files and help files for editor
install -Dm 0644 package/sdk/SEHELP.HLP %{buildroot}%{_gamesdatadir}/%{name}/sehelp.hlp
install -Dm 0644 package/sdk/STHELP.HLP %{buildroot}%{_gamesdatadir}/%{name}/sthelp.hlp
install -Dm 0644 package/sdk/m32help.hlp %{buildroot}%{_gamesdatadir}/%{name}/m32help.hlp

install -Dm 0644 %{name}_32x32.png %{buildroot}%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
install -Dm 0644 %{name}_48x48.png %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/%{name}.png
install -Dm 0644 %{name}_64x64.png %{buildroot}%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
install -Dm 0644 %{name}_128x128.png %{buildroot}%{_datadir}/icons/hicolor/128x128/apps/%{name}.png

# utils
install -Dm 0755 kextract %{buildroot}%{_bindir}/kextract
install -Dm 0755 kgroup %{buildroot}%{_bindir}/kgroup
install -Dm 0755 transpal %{buildroot}%{_bindir}/transpal
install -Dm 0755 wad2art %{buildroot}%{_bindir}/wad2art
install -Dm 0755 wad2map %{buildroot}%{_bindir}/wad2map

mkdir %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}-gui.desktop << EOF
[Desktop Entry]
Name=Duke Nukem 3D GUI
Comment=Eduke32 GUI game
Exec=%{_gamesbindir}/%{name}-gui
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}-console.desktop << EOF
[Desktop Entry]
Name=Duke Nukem 3D Console
Comment=Eduke32 Console game
Exec=%{_gamesbindir}/%{name}-console
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20492 |21nr|eduke32-hrp-4.2.132-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		eduke32-hrp
Version:	4.2.132
Release:	4
License:	Freeware
Summary:	Duke Nukem 3D High Resolution Pack
Group:		Games/Arcade
URL:		http://hrp.eduke4.net/
Source0:	http://www.duke4.org/files/nightfright/beta/polymer_hrp132.zip
BuildArch:	noarch
Requires:	eduke32_engine >= 2.0.1

%description
For all Duke fans who want to play the game again in a modern
Windows environment with 3D accelerated graphics, the Duke3D
community has created the High Resolution Pack (HRP). Utilizing
the amazing skills of various texturing and modelling artists,
the project´s goal is to replace all textures and sprites with
high-res versions, optimizing it for latest OpenGL ports.


%prep
%setup -q -c %{name}-%{version}

%install
mkdir -p %{buildroot}%{_gamesdatadir}/eduke32/autoload/
install -Dm 0644 %{SOURCE0} %{buildroot}%{_gamesdatadir}/eduke32/autoload/duke3d_hrp.zip

%files
%{_gamesdatadir}/eduke32/autoload/duke3d_hrp.zip
%doc hrp_art_license.txt hrp_readme.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20493 |21nr|emacs-mpg123-1.50-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define rname mpg123

%define flavor emacs

Summary:	A front-end program to mpg123 under Emacs/XEmacs
Name:		emacs-%{rname}
Version:	1.50
Release:	6
Source0:	http://www.gentei.org/~yuuji/software/mpg123el/%{rname}.el
Source1:	%{name}-autostart.el
License:	Freeware
Group:		Editors
BuildRequires:	%{flavor}
BuildRequires:	perl
BuildRequires:	emacs-bin
Requires:	%{rname}
BuildArch:	noarch
URL:		http://www.gentei.org/~yuuji/software/mpg123el/

%description
A front-end program to mpg123 under Emacs/XEmacs.

%prep
iconv -f EUC-JP -t UTF-8 %{SOURCE0} > %{rname}.el
sed -i -e 's,euc-jp,utf-8,g' %{rname}.el
#install -m 644 %{SOURCE0} %{rname}.el

%build
for i in %{flavor};do
$i -batch -q -no-site-file -f batch-byte-compile %{rname}.el 
mv %{rname}.elc $i-%{rname}.elc
done

#Maybe need adjust
perl -n -e 'last if /^\(/;last if /^;;; Code/; print' < %{SOURCE0} > DOCUMENTATION

%install
rm -rf %{buildroot}

for i in %{flavor};do
install -D -m644 $i-%{rname}.elc %{buildroot}%{_datadir}/$i/site-lisp/$i-%{rname}.elc
[[ $i = emacs ]] && install -D -m644 %{rname}.el %{buildroot}%{_datadir}/emacs/site-lisp/%{rname}.el
done

install -d %buildroot%{_sysconfdir}/emacs/site-start.d
cat << EOF > %buildroot%{_sysconfdir}/emacs/site-start.d/%{name}.el
%{expand:%(%__cat %{SOURCE1})}
EOF


%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc DOCUMENTATION
%config(noreplace) /etc/emacs/site-start.d/%{name}.el
%{_datadir}/*/site-lisp/*el*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20494 |21nr|fheroes2-0.9.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Free implementation of Heroes of the Might and Magic II engine
Name:		fheroes2
Epoch:		1
Version:	0.9.4
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		https://ihhub.github.io/fheroes2/
Source0:	https://github.com/ihhub/fheroes2/archive/refs/tags/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source2:	fheroes2.sh
Source3:	fheroes2.png
Source4:	fheroes2.desktop
Source5:	fheroes2.cfg
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(SDL2_image)
BuildRequires:	pkgconfig(SDL2_mixer)
BuildRequires:	pkgconfig(SDL2_net)
BuildRequires:	pkgconfig(SDL2_ttf)
BuildRequires:	pkgconfig(zlib)

%description
Free implementation of Heroes of the Might and Magic II engine.
You need to copy files from data and maps directories from original game
into your /usr/share/games/fheroes2/{maps,data} directories respectively.

%files
%doc changelog.txt LICENSE README.md
%{_gamesbindir}/*
%{_gamesdatadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q


%build
%setup_compile_flags
%make \
	WITH_AI=simple \
	WITH_SDL2="ON" \
	CONFIGURE_FHEROES2_DATA="%{_gamesdatadir}/%{name}/"


%install
# No automated install: 
# 1) Create directory structure
mkdir -p %{buildroot}%{_gamesbindir}
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/{data,maps}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps

# 2) install what we need where we need it
install -pm 755 src/dist/%{name} %{buildroot}%{_gamesbindir}/%{name}.bin
install -pm 755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}
install -pm 644 %{name}.key %{buildroot}%{_gamesdatadir}/%{name}/
install -pm 644 %{SOURCE3} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -pm 644 %{SOURCE4} %{buildroot}%{_datadir}/applications/%{name}.desktop
install -pm 644 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20495 |21nr|flash-player-plugin-32.0.0.465-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{mdvver} < 201610
%global __requires_exclude GLIBCXX_3.4.21
%endif

%ifarch aarch64
%global __requires_exclude lib*
%endif

# backportability
%define _localstatedir /var
%define debug_package %{nil}

Summary:	Flash Player plugin for browsers
Name:		flash-player-plugin
Version:	32.0.0.465
Release:	2
License:	Proprietary
Url:		http://www.adobe.com/products/flashplayer/
Source0:	https://fpdownload.adobe.com/get/flashplayer/pdc/%{version}/flash_player_npapi_linux.i386.tar.gz
Source1:	https://fpdownload.adobe.com/get/flashplayer/pdc/%{version}/flash_player_npapi_linux.x86_64.tar.gz
Source100:	%{name}.rpmlintrc
Group:		Networking/WWW
Requires:	curl
Requires(post):	curl
Provides:	flashplayer-plugin == %{version}

# obtained by objdump -x /usr/lib/mozilla/plugins/libflashplayer.so | grep NEEDED
# helper: for i in $(objdump -p libflashplayer.so  | grep NEEDED | awk '{ print $2 }'); do
#	  echo -n "$i: "; rpm -qf /usr/lib64/$i; done
#		libX11.so.6	libXext.so.6	libXt.so.6	libfreetype.so.6
Requires:	%{_lib}x11_6	%{_lib}xext6	%{_lib}xt6	%{_lib}freetype6
#		libfontconfig.so.1	libgtk-x11-2.0.so.0, libgdk-x11-2.0.so.0
Requires:	%{_lib}fontconfig1	%{_lib}gtk+2.0_0
#		libatk-1.0.so.0	libgdk_pixbuf-2.0.so.0	libpangocairo-1.0.so.0, libpango-1.0.so.0
Requires:	%{_lib}atk1.0_0	%{_lib}gdk_pixbuf2.0_0	%{_lib}pango1.0_0
#		libcairo.so.2	libgobject-2.0.so.0, libgmodule-2.0.so.0, libglib-2.0.so.0
Requires:	%{_lib}cairo2	%{_lib}glib2.0_0
#		libnss3.so, libsmime3.so, libssl3.so	libplds4.so, libplc4.so, libnspr4.so
Requires:	%{_lib}nss3				%{_lib}nspr4
# required for audio, dlopened:
Requires:	%{_lib}alsa2
# dlopened:
Requires:	%{_lib}curl4
# dlopened, for video acceleration:
Recommends:	%{_lib}vdpau1
#
Obsoletes:	FlashPlayer < 9.0.115.0-5
Obsoletes:	flashplayer < %{version}
Obsoletes:	flash-plugin < %{version}
Obsoletes:	FlashPlayer-plugin < %{version}
Obsoletes:	flashplayer-plugin < %{version}

# Conflict with free plugins to avoid user confusion as to which one is
# actually used:
Conflicts:	gnash-firefox-plugin
Conflicts:	swfdec-mozilla
Conflicts:	lightspark-mozilla-plugin
Conflicts:	libflashsupport < 0.20080000.1
Obsoletes:	flash-player-plugin10.2 < 10.2.152

%description
Adobe Flash Player plugin for browsers.

NOTE: This package does not contain the Flash Player itself. The
software will be automatically downloaded from Adobe during package
installation. Alternatively you can use the command
"download-flash-player-plugin" manually.

Installing this package indicates acceptance of the EULA, available
from http://www.adobe.com/products/eulas/players/flash/.

%files
%{_bindir}/flash-player-properties
%{_libdir}/mozilla/plugins/*.so
%{_datadir}/applications/*.desktop
%{_datadir}/icons/*
%{_datadir}/pixmaps/*

#-------------------------------------------------------------------

%package kde
Summary:	KDE workspace files
Group:		Networking/WWW
Requires:	%{name} = %{version}

%description kde
Adobe Flash files to work with KDE

%files kde
%ifnarch aarch64
%{_libdir}/kde4/kcm_adobe_flash_player.so
%endif
%ifarch x86_64 aarch64
# Adobe added symlink for some reason
/usr/lib/kde4/kcm_adobe_flash_player.so
%endif
%{_datadir}/kde4/*

#-------------------------------------------------------------------

%prep
%setup -c -T

%build

%install
mkdir -p %{buildroot}
cd %{buildroot}
%ifarch x86_64
tar xzf %{SOURCE1}
%else
tar xzf %{SOURCE0}
%endif

mkdir -p %{buildroot}%{_libdir}/mozilla/plugins/
chmod 0755 libflashplayer.so
mv libflashplayer.so %{buildroot}%{_libdir}/mozilla/plugins/

rm -f %{buildroot}/readme.txt
rm -rf %{buildroot}/LGPL
rm -rf %{buildroot}/license.pdf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20496 |21nr|flight-of-the-amazon-queen-1.0.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define scummvmdir %{_datadir}/scummvm/

Summary:	A adventure game using scummvm
Name:		flight-of-the-amazon-queen
Version:	1.0.0
Release:	3
Source0:	http://prdownloads.sourceforge.net/scummvm/FOTAQ_Talkie.tar.bz2
License:	Freeware
Url:		http://scummvm.org
Group:		Games/Adventure
Requires:	scummvm
BuildArch:	noarch

%description
Flight of the Amazon Queen is a 2D point-and-click adventure game set
in the 1940s, originally published for DOS and the Amiga.  You assume
the role of Joe King, a pilot for hire who is given the job of
flyingFaye Russell (a famous movie star) into the Amazon jungle for a
photo shoot. Of course, things never go according to plans. After an
unfortunate turn of events they find themselves stranded in the heart
of the Amazon jungle, where Joe will embark on a quest to rescue a
kidnapped princess and in the process, discover the true sinister
intentions of a suspiciously located Lederhosen company. In a rich 2D
environment, Joe will cross paths with a variety of unlikely jungle
inhabitants including, but not limited to, a tribe of Amazon women and
6-foot- tall pygmies.

This game was released by Krome Studios to help the scummvm
project. However, this is not a free game ( free as freespeech ), even
if source code can be seen.

%prep
%setup -q -n FOTAQ_Talkie/

%build

%install
%__rm -rf %{buildroot}
%__mkdir -p %{buildroot}/%{scummvmdir}/%{name}
%__cp queen* %{buildroot}/%{scummvmdir}/%{name}

%__mkdir -p %{buildroot}%{_datadir}/applications

%__cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Flight Of The Amazon Queen
Comment=%{summary}
Exec=%{_gamesbindir}/scummvm -p%{scummvmdir}/%{name}  queen
Icon=scummvm
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;AdventureGame;
EOF

%clean
%__rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc readme.txt
%{scummvmdir}/%{name}
%{_datadir}/applications/mandriva-*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20497 |21nr|flvstreamer-2.1c1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name 	flvstreamer
%define version 2.1c1
%define release 3

Summary: 	Open source command line RTMP client
Name: 		%{name}
Version: 	%{version}
Release: 	%{release}
License: 	GPLv2+
Group: 		Networking/File transfer
Url: 		http://savannah.nongnu.org/projects/flvstreamer
Source: 	http://mirrors.linhub.com/savannah/flvstreamer/source/flvstreamer-%{version}.tar.gz

%description
Flvstreamer is an open source command-line RTMP client intended to stream 
audio or video content from all types of flash or rtmp servers. Forked from 
rtmpdump v1.6 with encrypted rtmp and swf verification support removed. This 
tool provides free interoperability with the previously undocumented adobe 
RTMP protocol so widely in use on the internet today. It was developed 
entirely by reverse engineering methods and without access to any proprietary 
or restrictive-license protocol specifications. 

%prep
%setup -q -n %{name}

%build
%make posix OPT="%optflags" XLDFLAGS="%{?ldflags}"

%install
rm -fr $RPM_BUILD_ROOT
mkdir -p %{buildroot}%{_bindir}
find -type f -perm -u+x | xargs install -m755 -t %{buildroot}%{_bindir}

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README ChangeLog
%{_bindir}/flvstreamer
%{_bindir}/streams
%{_bindir}/rtmpsrv
%{_bindir}/rtmpsuck

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20498 |21nr|fmod3-3.75-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define		oname fmod
%define		major 3
%define		libname %mklibname %{oname} %{major}
%define		develname %mklibname %{oname} -d
%define		oversion 375

Summary:	Fast, powerful, easy to use sound system
Name:		fmod3
Version:	3.75
Release:	4
License:	FMOD Licence (free for non-commercial use)
Group:		System/Libraries
URL:		http://www.fmod.org/
Source:		http://www.fmod.org/files/fmodapi%{oversion}linux.tar.gz
ExclusiveArch:	%{ix86}

%description
FMOD is a fast, powerful, and easy to use sound system. It runs on
Windows, Linux, Windows CE, and now also on Macintosh, GameCube, PS2,
and XBox. FMOD supports 3D sound, midi, mods, mp3, ogg vorbis, wma, aiff,
recording, obstruction/occlusion, cd playback (analog or digital), cd ripping,
mmx, internet streaming, dsp effects, spectrum analysis, user created samples
and streams, synchronization support, ASIO, EAX 2&3, C/C++/VB/Delphi and more.

%package -n %{libname}
Summary:	Fast, powerful, easy to use sound system
Group:		System/Libraries
# Library doesn't have soname so linked stuff requires just libfmod.so
Provides:	libfmod.so

%description -n %{libname}
FMOD is a fast, powerful, and easy to use sound system. It runs on
Windows, Linux, Windows CE, and now also on Macintosh, GameCube, PS2,
and XBox. FMOD supports 3D sound, midi, mods, mp3, ogg vorbis, wma, aiff,
recording, obstruction/occlusion, cd playback (analog or digital), cd ripping,
mmx, internet streaming, dsp effects, spectrum analysis, user created samples
and streams, synchronization support, ASIO, EAX 2&3, C/C++/VB/Delphi and more.

%package -n %{develname}
Summary:	Header files and documentation for %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	lib%{name}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}

%description -n %{develname}
This package contains the header files and development documentation
for %{name}. If you like to develop programs using %{name}, you will
need to install %{name}-devel.

%prep
%setup -qn fmodapi%{oversion}linux

%install
install -Dp -m0755 api/libfmod-%{version}.so %{buildroot}%{_libdir}/libfmod-%{version}.so.%{major}
ln -s %{_libdir}/libfmod-%{version}.so.%{major} %{buildroot}%{_libdir}/libfmod.so

install -d %{buildroot}%{_includedir}/fmod3/
cp api/inc/*.h %{buildroot}%{_includedir}/fmod3/

%files -n %{libname}
%defattr(-, root, root, 0755)
%doc README.TXT
%{_libdir}/*.so.*

%files -n %{develname}
%defattr(644, root, root, 0755)
%doc documentation/* media/ samples/
%{_includedir}/fmod3/
%{_libdir}/*.so

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20499 |21nr|fmod4-4.44.64-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define libname %mklibname fmod %{version}
%define devname %mklibname %{name} -d

%define sversion %(echo %{version} |tr -d .)

Summary:	Fast, powerful, easy to use sound system
Name:		fmod4
Version:	4.44.64
Release:	1
License:	Proprietary
Group:		System/Libraries
Url:		http://www.fmod.org/
Source0:	https://zdoom.org/files/fmod/fmodapi%{sversion}linux.tar.gz
ExclusiveArch:	%{ix86} x86_64

%description
FMOD is a fast, powerful, and easy to use sound system. It runs on Windows,
Linux, Windows CE, and now also on Macintosh, GameCube, PS2, and XBox.
FMOD supports 3D sound, midi, mods, mp3, ogg vorbis, wma, aiff, recording,
obstruction/occlusion, cd playback (analog or digital), cd ripping, mmx,
internet streaming, dsp effects, spectrum analysis, user created samples and
streams, synchronization support, ASIO, EAX 2&3, C/C++/VB/Delphi and more.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Fast, powerful, easy to use sound system
Group:		System/Libraries

%description -n %{libname}
FMOD is a fast, powerful, and easy to use sound system. It runs on Windows,
Linux, Windows CE, and now also on Macintosh, GameCube, PS2, and XBox.
FMOD supports 3D sound, midi, mods, mp3, ogg vorbis, wma, aiff, recording,
obstruction/occlusion, cd playback (analog or digital), cd ripping, mmx,
internet streaming, dsp effects, spectrum analysis, user created samples and
streams, synchronization support, ASIO, EAX 2&3, C/C++/VB/Delphi and more.

%files -n %{libname}
%doc documentation/revision.txt
%license documentation/LICENSE.TXT
%ifarch %{ix86}
%{_libdir}/libfmodex-%{version}.so
%{_libdir}/libfmodexL-%{version}.so
%else
%{_libdir}/libfmodex64-%{version}.so
%{_libdir}/libfmodexL64-%{version}.so
%endif

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for FMOD4
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}

%description -n %{devname}
Development files for FMOD4.

%files -n %{devname}
%doc documentation/*.pdf
%{_includedir}/fmodex/*.h
%ifarch %{ix86}
%{_libdir}/libfmodex.so
%{_libdir}/libfmodexL.so
%else
%{_libdir}/libfmodex64.so
%{_libdir}/libfmodexL64.so
%endif

#----------------------------------------------------------------------------

%prep
%setup -q -n fmodapi%{sversion}linux

%build

%install
mkdir -p %{buildroot}%{_includedir}/fmodex
mkdir -p %{buildroot}%{_libdir}

cp api/inc/*.h %{buildroot}%{_includedir}/fmodex

%ifarch %{ix86}
cp api/lib/libfmodex.so %{buildroot}%{_libdir}/
cp api/lib/libfmodexL.so %{buildroot}%{_libdir}/
cp api/lib/libfmodex-%{version}.so %{buildroot}%{_libdir}/
cp api/lib/libfmodexL-%{version}.so %{buildroot}%{_libdir}/
%else
cp api/lib/libfmodex64.so %{buildroot}%{_libdir}/
cp api/lib/libfmodexL64.so %{buildroot}%{_libdir}/
cp api/lib/libfmodex64-%{version}.so %{buildroot}%{_libdir}/
cp api/lib/libfmodexL64-%{version}.so %{buildroot}%{_libdir}/
%endif

cp -r documentation ..

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20500 |21nr|fmsx-6.0-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname fMSX

#define _disable_ld_no_undefined 1
%global optflags %{optflags} -fcommon

%define oversion %(echo %{version} | tr -d .)

Summary:	MSX Emulator
Name:		fmsx
Version:	6.0
Release:	2
License:	Freeware
Group:		Emulators
Url:		http://fms.komkon.org/fMSX/
Source0:	http://fms.komkon.org/fMSX/%{oname}%{oversion}.zip
Source1:	%{name}.png
# Required ROM Images
Source2:	ROMs.tar.gz
Patch0:		fMSX43-optflags.patch
Patch2:		fMSX43-datapath.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libpulse-simple)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
MSX Emulator.

%files
%doc fMSX/fMSX.html
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qc -a2
%patch0 -p0
%patch2 -p0

%build
cd fMSX/Unix
%make

%install
mkdir -p %{buildroot}%{_gamesbindir}
install -m 755 fMSX/Unix/fmsx %{buildroot}%{_gamesbindir}/%{name}
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}
install -m 644 ROMs/* %{buildroot}%{_gamesdatadir}/%{name}/

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=fMSX
Comment=MSX emulator
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;Emulator;
EOF

# install menu icons
for N in 16 32 48 64 128 256;
do
convert %{SOURCE1} -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20501 |21nr|foomatic-db-nonfree-20230510-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		foomatic-db-nonfree
Version:	20230510
Release:	1
Summary:	Foomatic database extensions
License:	GPLv2 and MIT
Group:		System/Servers
Url:		http://www.linuxprinting.org/
Source:		https://www.openprinting.org/download/foomatic/%{name}-%{version}.tar.gz
# Perl script to clean up Manufacturer entries in the PPD files, so that
# drivers are sorted by the printer manufacturer in the graphical frontends
Source2:	cleanppd.pl.bz2
Requires:	foomatic-db-engine
BuildArch:	noarch
BuildRequires:	autoconf
BuildRequires:	automake
BuildRequires:	cups
BuildRequires:	cups-common
BuildRequires:	foomatic-db-engine

%description
Foomatic database extension with manufacturer-supplied PPD files released
under non-free licenses.

%files
%doc COPYING README USAGE
%_datadir/foomatic/db/source/driver/*.xml
%_datadir/foomatic/db/source/PPD/*

# Restart the CUPS daemon when it is running, but do not start it when it
# is not running. The restart of the CUPS daemon updates the CUPS-internal
# PPD index

%post
/sbin/service cups condrestart > /dev/null 2>/dev/null || :

%postun
/sbin/service cups condrestart > /dev/null 2>/dev/null || :

#-----------------------------------------------------------------------------

%prep
%setup -q 


%build
# Makefile generation ("./make_configure" for CVS snapshots)
./make_configure
# Fix for lib64 architectures, avoid patch
perl -pi -e "s@/usr/lib/(cups|pdq|ppr)@%{_libdir}/\1@g" configure

# We do not compress the PPDs now, so that we can do a clean-up
%configure

# "make" is not needed for this package, there is nothing to build

# Delete drivers with empty command line prototype, they would give
# unusable printer/driver combos.
#FOOMATICDB=`pwd` %%{_sbindir}/foomatic-cleanupdrivers

# Correct recommended driver "gimp-print" or "gutenprint", must be 
# "gutenprint-ijs.5.0".
for f in db/source/printer/*.xml; do
	perl -p -i -e 's:<driver>(gimp-|guten)print</driver>:<driver>gutenprint-ijs.5.0</driver>:' $f
done


%install
# Do not use "make" macro, as parallelized build of Foomatic does not work.

# Install data files
make	PREFIX=%{_prefix} \
		DESTDIR=%{buildroot} \
		install

# Uncompress Perl script for cleaning up the PPD files...
bzcat %{SOURCE2} > ./cleanppd.pl
chmod a+rx ./cleanppd.pl
# ...and do the clean-up
find %{buildroot}%{_datadir}/foomatic/db/source/PPD -name "*.ppd" -exec ./cleanppd.pl '{}' \;

# Remove PPDs which are not Adobe-compliant and therefore not working with
# CUPS 1.1.20 or newer
for ppd in `find %{buildroot}%{_datadir}/foomatic/db/source/PPD -name "*.ppd.gz"`
do
	cupstestppd -q $ppd || (
		rm -f $ppd && \
		echo "$ppd not Adobe-compliant. Deleted." && \
		echo $ppd >> deletedppds-%{name}-%{version}-%{release}.txt
	)
done

# Correct permissions
for f in %{buildroot}%{_datadir}/foomatic/db/source/*/*.xml; do
	chmod a-x $f
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20502 |21nr|FoxitReader-1.1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           FoxitReader
License:        Freeware
Group:          Office
Summary:        Foxit Reader is a free PDF document viewer
Version:        1.1.0
Release:        4
URL:            http://www.foxitsoftware.com/pdf/desklinux/index.html
Source0:        %{name}-%{version}.tar.gz
Source1:        fx-icon.png
Source2:        FoxitReader_ru.po
Source3:        FoxitReader_ru.mo

# Explicitly mention this for cases when the package is installed on a 64bit system
Requires:	 libpango-modules1.0

ExclusiveArch:	%{ix86}

%description
Foxit Reader is a free PDF document viewer for the Linux platform, with
a new streamlined interface, user-customized toolbar, incredibly small
size, breezing-fast launch speed and rich features. This empowers PDF
document users with Zoom function, Navigation function, Bookmarks,
Thumbnails, Text Selection Tool, Snapshot, and Full Screen capabilities.
Foxit Reader for Desktop Linux is provided by Foxit Corporation free for
non-commercial use.

%prep
%setup -q

%install
mkdir -p %{buildroot}%{_bindir}
install -m 0755 FoxitReader %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/foxit
install -m 0644 fum.fhd fpdfcjk.bin %{buildroot}%{_datadir}/foxit
mkdir -p %{buildroot}%{_datadir}/applications

%__cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Encoding=UTF-8
Name=FoxitReader
Name[ru]=FoxitReader
Type=Application
Comment=PDF Viewer
Comment[ru]=Просмотр PDF
Terminal=false
Exec=FoxitReader
Icon=fx-icon
Categories=Qt;KDE;Graphics;Office;Viewer;X-MandrivaLinux-Multimedia-Graphics;
GenericName=FoxitReader
X-Desktop-File-Install-Version=1.1
MimeType=application/pdf;application/x-gzpdf;application/x-bzpdf;
EOF

mkdir -p %{buildroot}%{_iconsdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_iconsdir}/fx-icon.png
mkdir -p %{buildroot}%{_docdir}/%{name}
install -m 644 Readme.txt %{buildroot}%{_docdir}/%{name}

mkdir -p %{buildroot}%{_datadir}/locale/{de,fr,ja,zh_CN,zh_TW,ru}/LC_MESSAGES
for lang in de fr ja zh_CN zh_TW; do
  cp po/$lang/%{name}.mo %{buildroot}%{_datadir}/locale/$lang/LC_MESSAGES/
done

cp %{SOURCE3} %{buildroot}%{_datadir}/locale/ru/LC_MESSAGES/%{name}.mo

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/foxit/*
%{_docdir}/%{name}/*
%{_iconsdir}/fx-icon.png
%{_datadir}/applications/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20503 |21nr|freecol-0.11.6-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	FreeCol is an open version of the game Colonization
Name:		freecol
Version:	0.11.6
Release:	1
License:	GPLv2+
Group:		Games/Strategy
Url:		http://www.freecol.org/
Source0:	http://prdownloads.sourceforge.net/freecol/freecol-%{version}-src.zip
Patch0:		freecol-0.11.2-mga-ant-force-utf8-encoding.patch
BuildRequires:	ant
BuildRequires:	unzip
BuildRequires:	xerces-j2
BuildRequires:	java-devel >= 1.6
Requires:	java >= 1.6
Requires:	desktop-common-data
BuildArch:	noarch

%description
FreeCol is an open version of Colonization. It is a Civilization-like game in
which the player has to conquer the new world.

%files
%defattr(0755,root,root,0755)
%{_bindir}/freecol
%defattr(0644,root,root,0755)
%doc packaging/common/{COPYING,README}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/games/freecol
%{_datadir}/pixmaps/freecol.xpm

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name}
%patch0 -p1

%build
ant

%install
mkdir -p %{buildroot}%{_datadir}/games/freecol
cp FreeCol.jar %{buildroot}%{_datadir}/games/freecol
cp -a {data,jars} %{buildroot}%{_datadir}/games/freecol

mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/freecol << EOF
#!/bin/sh

java -Xmx256M -jar %{_datadir}/games/freecol/FreeCol.jar \\
	--freecol-data %{_datadir}/games/freecol/data
EOF

mkdir -p %{buildroot}%{_datadir}/pixmaps
cp packaging/common/freecol.xpm %{buildroot}%{_datadir}/pixmaps

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=FreeCol
Comment=FreeCol is an open version of the game Colonization
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;StrategyGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20504 |21nr|gcad3d-2.46.20-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
#useless empty debug 
%define debug_package	%{nil}

Name:		gcad3d
Version:	2.46.20
Release:	1
Summary:	A 3D CAD CAM application
Group:		Graphics
License:	Freeware
URL:		http://www.gcad3d.org/
# source is extracted from .deb packages in Downloads section
Source0:	%{name}-%{version}.tar.bz2
ExclusiveArch:	x86_64

%description
gCAD3D is a 3D CAD CAM application that features an integrated 3D OpenGL
viewer, a program interpreter for geometry and NC-commands in 3D, an 
integrated NC-processor, and a programming interface for user programs.

It can
-Import and display data from Iges, Step, wire frame and solid objects 
-Create and modify wire frame elements
-Create surfaces
-Create simple solid bodies
-Assemble user-created ancillary programs
-Export wire frame elements as DXF and Iges
-Export surfaces as Vrml-1, Vrml-2, obj, tw Iges

It cannot yet
-Blend or modify surfaces
-Create or modify complex solid bodies

%prep
%setup -q

%build
# nothing to build 

%install
mkdir -p %{buildroot}%{_prefix}
cp -r * %{buildroot}/

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop <<@@@
[Desktop Entry]
Name=gCAD3D
Exec=%{name}
Icon=gcad3d
Comment=A 3D CAD CAM application
Type=Application
Categories=Graphics;
Terminal=false
@@@


rm -rf %{buildroot}%{_datadir}/menu

%files
%{_docdir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/%{name}
%{_prefix}/lib/%{name}
%{_datadir}/pixmaps/gcad3d.xpm


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20505 |21nr|get-assistant-2.9.1909.1801-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define tmp_download_dir %{_localstatedir}/lib/%{oname}
%define oname assistant
%define oversion 169

Summary:	Remote monitoring and management system client application "Assistant"
Name:		get-%{oname}
Version:	2.9.1909.1801
Release:	1
License:	Proprietary
Group:		Networking/Remote access
Url:		https://xn--80akicokc0aablc.xn--p1ai
Requires:	wget
Provides:	%{oname} = %{EVRD}
Obsoletes:	%{oname}-install
ExclusiveArch:	x86_64

%description
The system of remote monitoring and control "Assistant" is designed for
remote monitoring, management, maintenance of personal computers and
servers, organization of remote technical support, remote work and training.

The client application implements remote management of workstations
and servers, file sharing, as well as communication in text and voice chats.

%files

%pre
mkdir -p %{tmp_download_dir}
[[ -d %{tmp_download_dir} ]] || exit 1
cd %{tmp_download_dir} || exit 1

wget --force-clobber --timeout=30 --tries=3 \
"https://xn--80akicokc0aablc.xn--p1ai/%D1%81%D0%BA%D0%B0%D1%87%D0%B0%D1%82%D1%8C/Download/%{oversion}"

%post
tmp_extract_dir=$(mktemp -d)
if ! [[ -d $tmp_extract_dir ]]; then
echo "Failed to create temporary directory"
rm -r %{tmp_download_dir}
exit 1
fi

if [ `rpm -q get-assistant | wc -w` == 1 ]
then
	rpm -e get-assistant
fi

%define tmp_assistant_dir ${tmp_extract_dir}/%{oname}-%{version}

mkdir -p %{tmp_assistant_dir}
cd %{tmp_assistant_dir}
rpm2cpio %{tmp_download_dir}/%{oversion} | cpio -idmv

if ! [[ -d %{tmp_assistant_dir} ]]; then
echo "Extracted file folder missing"
cd ..
rm -rf ${tmp_extract_dir}
rm -r %{tmp_download_dir}
exit 1
fi

mkdir -p %{_datadir} /opt
mv -f %{tmp_assistant_dir}%{_datadir}/%{oname}d %{_datadir}/
mv -f %{tmp_assistant_dir}/opt/%{oname} /opt/

cd ..
rm -r ${tmp_extract_dir} %{tmp_download_dir}

# Remove assistant-install package if we have it installed
if [ `rpm -q assistant-install | wc -w` == 1 ]
then
	rpm -e assistant-install
fi

cat > %{_datadir}/applications/%{oname}.desktop << EOF
[Desktop Entry]
Type=Application
Name=Assistant
GenericName=Assistant
Name[ru]=Ассистент
GenericName[ru]=Ассистент
Comment=Remote access
Comment[ru]=Удаленное управление
Exec=/opt/%{oname}/scripts/%{oname}.sh
Icon=/opt/%{oname}/share/icons/%{oname}.png
Path=/opt/%{oname}/
NoDisplay=false
StartupNotify=true
Terminal=0
Categories=Network;
EOF

cat > %{_bindir}/%{oname} << EOF
#!/bin/sh
/opt/%{oname}/scripts/%{oname}.sh
EOF
chmod 755 %{_bindir}/%{oname}

%preun
rm -rf %{_datadir}/%{oname}d
rm -rf /opt/%{oname}
rm -f %{_datadir}/applications/%{oname}.desktop
rm -f %{_bindir}/%{oname}

#----------------------------------------------------------------------------

%prep

%build

%install

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20506 |21nr|get_iplayer-2.80-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude perl\\(Programme(.*)\\)|perl\\(Streamer\\)
%endif


Summary:	iPlayer TV, Radio, Podcase, Programmes stream tool
Name:		get_iplayer
Version:	2.80
Release:	6
License:	GPL
Group:		Networking/File transfer
Url:		http://www.infradead.org/get_iplayer/html/get_iplayer.html
Source:		ftp://ftp.infradead.org/pub/get_iplayer/get_iplayer-%{version}.tar.gz
Recommends:	flvstreamer
BuildArch:	noarch

%description
Lists, searches and records BBC iPlayer TV/Radio, BBC Podcast and 
ITVplayer TV programmes

Note: This is the version from:
  http://www.infradead.org/get_iplayer/html/get_iplayer.html
which is a fork/continuation of the original from:
  http://linuxcentre.net/getiplayer
which was discontinued as outlined here:
  http://linuxcentre.net/get_iplayer-dropped-in-response
  -to-bbcs-lack-of-support-for-open-source

%prep
%setup -q

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_mandir}/man1
mkdir -p %{buildroot}%{_datadir}/%{name}/plugins

install -m 755 get_iplayer %{buildroot}%{_bindir}
install -m 644 plugins/*.plugin %{buildroot}%{_datadir}/%{name}/plugins/

%files
%doc README.txt
%{_bindir}/get_iplayer
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/plugins
%{_datadir}/%{name}/plugins/*.plugin

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20507 |21nr|get-okimfpsdrv-1.7-0.231228.4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define obuild 231228
%define dwurl http://www.oki.com/uk/printing/download/okimfpsdrv-%{version}-0.x86_64_%{obuild}.rpm

%undefine dont_check_python_shebangs
%global debug_package %{nil}

Name: get-okimfpsdrv
Summary: Proprietary, not freely distributable drivers for OKI scanners (and some OEM MFPs, e.g. Kraftway)
Group: System/Printing
# License https://www.oki.com/uk/printing/support/drivers-and-utilities/software-license-agreement/index.html
# does not allow to redistribute this, that is why we have to download them from OKI website
License: Proprietary, not distributable
Url: https://www.oki.com/uk/printing/support/drivers-and-utilities/colour-multifunction/44473104/
Version: 1.7
Release: 0.%{obuild}.4
Source0: %{dwurl}
# there is i386 deb, it may be repacked
ExclusiveArch: x86_64
# From https://aur.archlinux.org/cgit/aur.git/tree/okiscand.service?h=okimfpsdrv
Source1: okiscand.service
Source2: kraftway.diff
Source3: LICENSE
BuildRequires: systemd-units
BuildRequires: python2
Requires: cpio
Requires: coreutils
Requires: sed
Requires: wget
# For GUI utilities which seem to be incompatible with modern Python2
Requires: /var/local
Requires: %{_bindir}/patch
Requires: %{_bindir}/rpm2cpio
Requires: %{_bindir}/xargs
Requires: /usr/bin/python2
Requires: /usr/bin/pnmtops
Requires: /etc/sane.d/dll.conf
Requires: libusb-1.0.so.0%{_arch_tag_suffix}

%description
Proprietary, not freely distributable drivers for OKI scanners (and some OEM MFPs, e.g. Kraftway)
Proprietary license does not allow to redistribute them, that is why this package
tries to download, unpack and fix RPM from the official website,
or takes an RPM from /var/tmp/%(echo %{dwurl} | awk -F '/' '{print $NF}') if it exists.

%files
%license LICENSE
%{_unitdir}/okiscand.service
%{_presetdir}/80-okiscand.preset
%{_datadir}/%{name}/kraftway.diff

#-------------------------------------------------------------------------------------------------

%prep
%setup -T -c -n %{name}-%{version}
install -m0644 %{SOURCE3} LICENSE

%build

%install

mkdir -p %{buildroot}%{_datadir}/%{name}
install -m0644 %{SOURCE2} %{buildroot}%{_datadir}/%{name}/kraftway.diff

mkdir -p %{buildroot}%{_unitdir}
mkdir -p %{buildroot}%{_presetdir}
install -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/okiscand.service
# emulating chkconfig behaviour from original RPM - enable by default
echo 'enable okiscand.service' > %{buildroot}%{_presetdir}/80-okiscand.preset

%post
tmpdir="$(mktemp -d)"
cd "$tmpdir"
file="%(echo %{dwurl} | awk -F '/' '{print $NF}')"
if [ -f "/var/tmp/${file}" ]
	then file="/var/tmp/${file}"
	else wget "%{dwurl}"
fi
if ! file "$file" | grep -q 'RPM v3'; then
	echo "ERROR: A wrong file has been downloaded!"
	exit 1
fi
rpm2cpio "$file" | cpio -idmv 2>log
patch -p1 < %{_datadir}/%{name}/kraftway.diff
rm -fr ./etc/init.d
# do not autostart this strange application
mkdir -p ./usr/share/applications/
mv ./etc/xdg/autostart/okimfp-assistant-applet.desktop ./usr/share/applications/
# okiscand: (path=/usr/libexec/okimfpdrv/device.conf) [errno=2, No such file or directory]
#touch ./usr/libexec/okimfpdrv/device.conf
rm -fr ./etc/xdg
# translations of backen lead to bugs, e.g. the driver receive params in Russian and cannot understand them
rm -f ./usr/share/locale/*/LC_MESSAGES/sane-backend-oki.mo
find . -type f | xargs sed -i \
	-e 's,^#!/usr/bin/python$,#!%{__python2},g' \
	-e 's,^#!/usr/bin/env python$,#!%{__python2},g'
rm -fv "$file"
cp -r ./usr /
cp -r ./etc /
grep '^\./' log | sed -e 's,^./,/,g' > /var/local/%{name}.list
echo /usr/share/applications/okimfp-assistant-applet.desktop >> /var/local/%{name}.list
#echo /usr/libexec/okimfpdrv/device.conf >> /var/local/%{name}.list
cd
rm -fr "$tmpdir"

echo oki >> /etc/sane.d/dll.conf

%systemd_post okiscand.service
systemctl start okiscand || :

%preun
%systemd_preun okiscand.service

%postun
# Do this even on package upgrade to avoid leaving any moved/removed files
cat /var/local/%{name}.list | xargs rm -f #no -r
sed -i -e '/^oki$/d' /etc/sane.d/dll.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20508 |21nr|get-skype-4.3.0.37-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define instdir			%{_datadir}/skype
%define langdir			%{instdir}/lang
%define avatardir		%{instdir}/avatars
%define sounddir		%{instdir}/sounds
%define docdir			%{_datadir}/doc/skype
%define dbusdir			%{_sysconfdir}/dbus-1/system.d

ExclusiveArch:	%{ix86}

# When updating tarball check that download size in description
# is correct

%ifarch %{ix86}
%define tar_name		skype
%define md5			95db8f2072b9acd6f79ed42da3d6db79
%endif

%define tmp_download_dir	%{_localstatedir}/lib/%{name}

# Don't generate dependencies for bundled libs
AutoReqProv:	no

Summary:	Download and Install Skype
Name:		get-skype
Version:	4.3.0.37
Release:	7
License:	Proprietary
Group:		Networking/Instant messaging
Url:		http://www.skype.com
Requires:	wget
%ifarch %{ix86}
Requires:	libfreetype6
Requires:	libqtcore4
Requires:	libqtdbus4
Requires:	libqtnetwork4
Requires:	libqtwebkit4
Requires:	libqtgui4
Requires:	libqtsvg4
Requires:	libqtxml4
Requires:	libxscrnsaver1
Requires:	libxv1
Requires:	libv4l-wrappers
Requires:	libalsa2
Requires:	libpulseaudio0
%endif

Obsoletes:	skype < %{version}
Provides:	skype = %{version}-%{release}

# The following are lists of filenames (124 in total) placed 
# in versioned text files to save clutter in the spec file.
Source0:	avatars-%{version}.txt
Source1:	sounds-%{version}.txt
Source2:	lang-%{version}.txt
# skype-txt-gen is a script to generate the above txt files, it
# also computes the md5sum from a downloaded version.
# See notes in the script.
Source3:	skype-txt-gen
# Manually created skype.desktop to replace invalid original in tar.bz2
Source4:	skype.desktop
# Dependencies for x86_64 package
Source5:	skypelibs.tar.xz
# Disable rpmlint for /opt
Source6:	get-skype.rpmlintrc

%description
This is an installer for Skype-%{version}.

This package does not contain any program files as the Skype license does
not allow distribution. By installing this package you will download and
install Skype from skype.com.
You must accept the Skype EULA before using it.
Please be patient, this is a 23 MB download and may take some time.
Removing this package will uninstall Skype from your system.

%files
%ghost %doc %{docdir}
%{_bindir}/skype
%attr(0644, root, root) %{_datadir}/applications/skype.desktop
%ghost %{_iconsdir}/skype.png
%ghost %{_iconsdir}/SkypeBlue_*.png
%ghost %{instdir}
%ghost %{dbusdir}/skype.conf

%pre
mkdir -p %{tmp_download_dir}
[[ -d %{tmp_download_dir} ]] || exit 1
cd %{tmp_download_dir} || exit 1

%ifarch %{ix86}
wget --force-clobber --timeout=30 --tries=3 "http://download.skype.com/linux/skype-%{version}.tar.bz2"
%endif

[[ -f %{tar_name}-%{version}.tar.bz2 ]] || { echo "Download failed"; rm -r %{tmp_download_dir}; exit 1; }
md5chk=$(md5sum %{tar_name}-%{version}.tar.bz2 | cut -d' ' -f1)
[[ %{md5} = $md5chk ]] || { echo "Download checksum failed"; rm %{tar_name}-%{version}.tar.bz2;\
cd ..; rm -r %{tmp_download_dir}; exit 1; }

%post
tmp_extract_dir=$(mktemp -d)
if ! [[ -d $tmp_extract_dir ]]; then
echo "Failed to create temporary directory"
rm -r %{tmp_download_dir} 
exit 1
fi

%ifarch %{ix86}
%define tmp_skype_dir ${tmp_extract_dir}/%{tar_name}-%{version}
%endif

cd ${tmp_extract_dir}
tar jxf %{tmp_download_dir}/%{tar_name}-%{version}.tar.bz2

if ! [[ -d %{tmp_skype_dir} ]]; then
echo "Extracted file folder missing"
cd ..
rm -rf ${tmp_extract_dir}
rm -r %{tmp_download_dir}
exit 1
fi

# If any extra files are installed here then 
# corresponding ghost files need to be added in files

mkdir -p %{instdir}/{avatars,lang,sounds}

cp -f %{tmp_skype_dir}/icons/* %{_iconsdir}
cp -f %{_iconsdir}/SkypeBlue_48x48.png %{_iconsdir}/skype.png
mv -f %{tmp_skype_dir}/skype.conf %{dbusdir}
mv -f %{tmp_skype_dir}/LICENSE %{docdir}
mv -f %{tmp_skype_dir}/README %{docdir}
mv -f %{tmp_skype_dir}/skype %{instdir}
cp -f %{tmp_skype_dir}/avatars/* %{avatardir}/
cp -f %{tmp_skype_dir}/lang/* %{langdir}/
cp -f %{tmp_skype_dir}/sounds/* %{sounddir}/
cd ..
rm -r ${tmp_extract_dir} %{tmp_download_dir}

# Remove skype-install package if we have it installed
if [ `rpm -q skype-install | wc -w` == 1 ]
then
    rpm -e skype-install
fi

#----------------------------------------------------------------------------

%install
install -d -m 0755 %{buildroot}%{_bindir}
install -d -m 0755 %{buildroot}%{_datadir}/applications
install -m 755 %{SOURCE4} %{buildroot}%{_datadir}/applications/
install -d -m 0755 %{buildroot}%{instdir}
touch %{buildroot}%{instdir}/skype
install -d -m 0755 %{buildroot}%{dbusdir}
touch %{buildroot}%{dbusdir}/skype.conf
install -d -m 0755 %{buildroot}%{docdir}
touch %{buildroot}%{docdir}/{LICENSE,README}

install -d -m 0755 %{buildroot}%{instdir}/icons
install -d -m 0755 %{buildroot}%{_iconsdir}
touch %{buildroot}%{_iconsdir}/skype.png
for i in 16 32 48; do
touch %{buildroot}%{_iconsdir}/SkypeBlue_${i}x${i}.png
touch %{buildroot}%{instdir}/icons/SkypeBlue_${i}x${i}.png
done

install -d -m 0755 %{buildroot}%{avatardir}
while read line; do
touch %{buildroot}%{avatardir}/"$line"
done < %{SOURCE0}

install -d -m 0755 %{buildroot}%{sounddir}
while read line; do
touch %{buildroot}%{sounddir}/"$line"
done < %{SOURCE1}

install -d -m 0755 %{buildroot}%{langdir}
while read line; do
touch %{buildroot}%{langdir}/skype_"$line"
done < %{SOURCE2}

%ifarch %{ix86}
echo '#!/bin/bash
if [ "`pidof skype`" != "" ]; then
    echo "Skype is already running!"
else
    env LD_PRELOAD=/usr/lib/libv4l/v4l2convert.so PULSE_LATENCY_MSEC=60 %{instdir}/skype "$@"
fi' \
 > %{buildroot}%{_bindir}/skype && chmod +x %{buildroot}%{_bindir}/skype
%endif


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20509 |21nr|get-sublime-text-3207-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define instdir %{_datadir}/sublimetext

# When updating tarball check that download size in description
# is correct
%ifarch x86_64
%define md5 187d5f46fdf8b628fbc4686984591529
%endif

%ifarch %{ix86}
%define md5 db99e55dbb77ede7edbe2e149534c7e8
%endif

%define tmp_download_dir %{_localstatedir}/lib/%{name}

# Don't generate dependencies for bundled libs
AutoReqProv:	no

Summary:	Download and Install Sublime Text
Name:		get-sublime-text
Version:	3207
Release:	2
License:	Proprietary
Group:		Development/Other
Url:		http://www.sublimetext.com/
Requires(pre):	wget
Requires:	nodejs
Source4:	sublimetext.desktop
#Source100:	%{name}.rpmlintrc

%description
This is an installer for Sublime Text %{version}.

This package does not contain any program files as the Sublime Text license
does not allow distribution. By installing this package you will download and
install Sublime Text from http://www.sublimetext.com/.

Sublime Text 2 may be downloaded and evaluated for free, however a license must
be purchased for continued use. There is currently no enforced time limit for
the evaluation.

Please be patient, this is a 5 MB download and may take some time.
Removing this package will uninstall Sublime Text from your system.

%files
%{_bindir}/*
%attr(0644, root, root) %{_datadir}/applications/*.desktop
%ghost %{instdir}
%ghost %{_iconsdir}/hicolor/16x16/apps/sublime-text.png
%ghost %{_iconsdir}/hicolor/32x32/apps/sublime-text.png
%ghost %{_iconsdir}/hicolor/48x48/apps/sublime-text.png
%ghost %{_iconsdir}/hicolor/128x128/apps/sublime-text.png
%ghost %{_iconsdir}/hicolor/256x256/apps/sublime-text.png

%pre
mkdir -p %{tmp_download_dir}
[[ -d %{tmp_download_dir} ]] || exit 1
cd %{tmp_download_dir} || exit 1

%ifarch x86_64
wget --force-clobber --timeout=30 --tries=3 "https://download.sublimetext.com/sublime_text_3_build_%{version}_x64.tar.bz2" -O %{name}-%{version}.tar.bz2
%endif

%ifarch %{ix86}
wget --force-clobber --timeout=30 --tries=3 "https://download.sublimetext.com/sublime_text_3_build_%{version}_x32.tar.bz2" -O %{name}-%{version}.tar.bz2
%endif

[[ -f %{name}-%{version}.tar.bz2 ]] || { echo "Download failed"; rm -r %{tmp_download_dir}; exit 1; }
md5chk=$(md5sum %{name}-%{version}.tar.bz2 | cut -d' ' -f1)
[[ %{md5} = $md5chk ]] || { echo "Download checksum failed ($md5chk vs %{md5})"; rm %{name}-%{version}.tar.bz2;\
cd ..; rm -r %{tmp_download_dir}; exit 1; }

#----------------------------------------------------------------------------

%install
install -d -m 0755 %{buildroot}%{_bindir}
install -d -m 0755 %{buildroot}%{_datadir}/applications
install -m 755 %{SOURCE4} %{buildroot}%{_datadir}/applications/
install -d -m 0755 %{buildroot}%{instdir}

for s in 16 32 48 128 256; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/
	touch %{buildroot}%{_iconsdir}/hicolor/${s}x${s}/apps/sublime-text.png
done

echo '#!/bin/sh
pushd /usr/share/sublimetext
./sublime_text
popd
' \
 > %{buildroot}%{_bindir}/sublimetext && chmod +x %{buildroot}%{_bindir}/sublimetext

%post
rm -rf %{instdir}
mkdir -p %{instdir}
cd %{instdir}
tar jxf %{tmp_download_dir}/%{name}-%{version}.tar.bz2
mv "sublime_text_3"/* .
rmdir "sublime_text_3"
rm -r %{tmp_download_dir}
for s in 16 32 48 128 256; do
	cp Icon/${s}x${s}/sublime-text.png %{_iconsdir}/hicolor/${s}x${s}/apps/
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20510 |21nr|get-yandex-browser-1.1.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname yandex-browser

Summary:	Download and Install Yandex.Browser
Name:		get-yandex-browser
Version:	1.1.1
Release:	1
Epoch:		1
License:	Proprietary
Group:		Networking/WWW
Url:		https://browser.yandex.ru
Source0:	yandex-browser-install.desktop
Source1:	https://upload.wikimedia.org/wikipedia/commons/8/80/Yandex_Browser_logo.svg
Source2:	yandex-browser-install
Source3:	org.rosalinux.yandex-browser-install.policy
Source4:	yandex-browser-repo-install.desktop
Source5:	yb-repo-install.png
Source6:	yandex-browser-repo-install
Source7:	org.rosalinux.yandex-browser-repo-install.policy
# Need in rosa2021.1
Requires:	gstreamer1.0-faad
Requires:	wget
Requires(pre):	lynx
Requires(pre):	zenity
Conflicts:	yandex-browser
ExclusiveArch:	x86_64

%description
This is an installer for Yandex Browser.

This package does not contain any program files as the Yandex Browser license
does not allow distribution. By installing this package you will download and
install Yandex Browser from browser.yandex.ru.
You must accept the Yandex Browser EULA before using it.
Please be patient, this is a ~100MB download and may take some time.
Removing this package will uninstall Yandex Browser from your system.

%files
%ghost %{_bindir}/%{oname}-corporate
%ghost %{_bindir}/%{oname}-stable
%ghost %config(noreplace) %{_sysconfdir}/yandex-browser-corporate.conf
%ghost %config(noreplace) %{_sysconfdir}/yandex-browser-rosa.conf
%ghost %config(noreplace) %{_sysconfdir}/yandex-browser-stable.conf
%ghost %{_datadir}/appdata/%{oname}.appdata.xml
%ghost %{_datadir}/applications/%{oname}.desktop
%ghost %{_datadir}/gnome-control-center/default-apps/%{oname}.xml
%ghost %{_mandir}/man1/%{oname}.1.gz
%ghost %{_mandir}/man1/%{oname}-corporate.1.gz
%ghost %{_mandir}/man1/%{oname}-stable.1.gz
%ghost %{_sysconfdir}/cron.daily/%{oname}
%ghost %{_sysconfdir}/xdg/autostart/%{oname}_user_setup.desktop
%{_sysconfdir}/skel/.config/autostart/gnome-keyring-first-start.desktop

%pre
mkdir -p /opt/yandex/browser-rpm
pushd /opt/yandex/browser-rpm
# For run when zenity
if [ "$(pidof zenity)" ]; then
	export VIBOR="$(zenity --question --switch --title="Выбор варианта браузера" --text="Какой вариант поставки браузера найти и использовать?\nЕсли не ясно, что выбрать, нажмите \"По умолчанию\" (Enter)" --extra-button="По умолчанию" --extra-button="Стабильный" --extra-button="Корпоративный" --extra-button="Роса" --extra-button="Отмена" 2>/dev/null)"
	if [ "$VIBOR" = "Отмена" ] || [ "$VIBOR" = "" ]; then exit 1; fi
	if [ "$VIBOR" = "Корпоративный" ]; then rm -f %{_sysconfdir}/yandex-browser-*.conf; touch %{_sysconfdir}/yandex-browser-corporate.conf; fi
	if [ "$VIBOR" = "Роса" ]; then rm -f %{_sysconfdir}/yandex-browser-*.conf; touch %{_sysconfdir}/yandex-browser-rosa.conf; fi
	if [ "$VIBOR" = "Стабильный" ]; then rm -f %{_sysconfdir}/yandex-browser-*.conf; touch %{_sysconfdir}/yandex-browser-stable.conf; fi
fi
# For default
if ! [ -f %{_sysconfdir}/yandex-browser-corporate.conf ] && ! [ -f %{_sysconfdir}/yandex-browser-rosa.conf ] && ! [ -f %{_sysconfdir}/yandex-browser-stable.conf ]; then touch %{_sysconfdir}/yandex-browser-rosa.conf; fi
case "$(ls %{_sysconfdir}/yandex-browser-*.conf |rev |cut -d. -f2 |cut -d- -f1 |rev |head -n1)" in
	corporate)
		file_name=$(lynx -dump "https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/" |grep "yandex-browser-corporate" |head -n1 |cut -c4-)
		wget --force-clobber --timeout=30 --tries=3 https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/$file_name || rm -rf /opt/yandex/browser-rpm
		echo $file_name > %{_sysconfdir}/yandex-browser-corporate.conf
	;;
	rosa)
		file_name=$(lynx -dump "http://abf-downloads.rosalinux.ru/rosa%{rosa_release}/repository/x86_64/non-free/release" |grep "/yandex-browser-" |head -n1 |cut -d/ -f9)
		wget --force-clobber --timeout=30 --tries=3 http://abf-downloads.rosalinux.ru/rosa%{rosa_release}/repository/x86_64/non-free/release/$file_name || rm -rf /opt/yandex/browser-rpm
		echo $file_name > %{_sysconfdir}/yandex-browser-rosa.conf
	;;
	stable)
		file_name=$(lynx -dump "https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/" |grep "yandex-browser-stable" |head -n1 |cut -c4-)
		wget --force-clobber --timeout=30 --tries=3 https://repo.yandex.ru/yandex-browser/rpm/stable/x86_64/$file_name || rm -rf /opt/yandex/browser-rpm
		echo $file_name > %{_sysconfdir}/yandex-browser-stable.conf
	;;
	*)
		file_name=$(lynx -dump "http://abf-downloads.rosalinux.ru/rosa%{rosa_release}/repository/x86_64/non-free/release" |grep "/yandex-browser-" |head -n1 |cut -d/ -f9)
		wget --force-clobber --timeout=30 --tries=3 http://abf-downloads.rosalinux.ru/rosa%{rosa_release}/repository/x86_64/non-free/release/$file_name || rm -rf /opt/yandex/browser-rpm
		echo $file_name > %{_sysconfdir}/yandex-browser-rosa.conf
	;;
esac
popd
[ -d /opt/yandex/browser-rpm ] || exit 1

[ -f %{_sysconfdir}/skel/.config/autostart/gnome-keyring-first-start.desktop ] || pkill gnome-keyring &>/dev/null || :

%posttrans
pushd /opt/yandex/browser-rpm
	rpm2cpio *.rpm | cpio -idm
	mkdir -p %{_bindir}
	mkdir -p %{_datadir}/appdata
	mkdir -p %{_datadir}/applications
	mkdir -p %{_datadir}/gnome-control-center/default-apps
	mkdir -p %{_mandir}/man1
	mkdir -p /opt/yandex/browser/auto
	cp -fP ./usr/bin/%{oname}-* %{_bindir}
	cp -f ./usr/share/appdata/%{oname}.appdata.xml %{_datadir}/appdata
	cp -f ./usr/share/applications/%{oname}.desktop %{_datadir}/applications
	cp -f ./usr/share/gnome-control-center/default-apps/%{oname}.xml %{_datadir}/gnome-control-center/default-apps
	cp -fP ./usr/share/man/man1/%{oname}.1.* %{_mandir}/man1
	cp -f ./usr/share/man/man1/%{oname}-*.1.* %{_mandir}/man1
	cp -rf ./opt/yandex/browser /opt/yandex
	cp -f ./etc/cron.daily/%{oname} /opt/yandex/browser/auto &>/dev/null || :
	cp -f ./etc/xdg/autostart/%{oname}_user_setup.desktop /opt/yandex/browser/auto
popd
rm -rf /opt/yandex/browser-rpm

%postun
rm -rf /opt/yandex/browser || :
rmdir /opt/yandex &>/dev/null || :

#----------------------------------------------------------------------------

%package autoupdate
Summary:	Autoupdate Yandex Browser from repo.yandex.ru
Group:		Networking/WWW
Requires:	%{name} = %{EVRD}
OrderWithRequires: %{name} = %{EVRD}
Recommends:	cronie

%description autoupdate
Autoupdate Yandex Browser from repo.yandex.ru.

%files autoupdate

%posttrans autoupdate
mkdir -p %{_sysconfdir}/cron.daily
mkdir -p %{_sysconfdir}/xdg/autostart
mv -f /opt/yandex/browser/auto/%{oname} %{_sysconfdir}/cron.daily/ &>/dev/null || :
mv -f /opt/yandex/browser/auto/%{oname}_user_setup.desktop %{_sysconfdir}/xdg/autostart/ &>/dev/null || :

%postun autoupdate
mv -f %{_sysconfdir}/cron.daily/%{oname} /opt/yandex/browser/ &>/dev/null || :
mv -f %{_sysconfdir}/xdg/autostart/%{oname}_user_setup.desktop /opt/yandex/browser/ &>/dev/null || :

#----------------------------------------------------------------------------

%package -n %{oname}-install
Summary:	Desktop for install or update Yandex Browser
Group:		Networking/WWW
Requires:	zenity

%description -n %{oname}-install
Desktop for install Yandex Browser.

%files -n %{oname}-install
%{_bindir}/%{oname}-install
%{_datadir}/applications/%{oname}-install.desktop
%{_datadir}/polkit-1/actions/org.rosalinux.yandex-browser-install.policy
%{_iconsdir}/hicolor/scalable/apps/%{oname}-install.svg

#----------------------------------------------------------------------------

%package -n %{oname}-repo-install
Summary:	Desktop for install Yandex Browser from repo
Group:		Networking/WWW

%description -n %{oname}-repo-install
Desktop for install Yandex Browser from repo.

%files -n %{oname}-repo-install
%{_bindir}/%{oname}-repo-install
%{_datadir}/applications/%{oname}-repo-install.desktop
%{_datadir}/polkit-1/actions/org.rosalinux.yandex-browser-repo-install.policy
%{_iconsdir}/hicolor/48x48/apps/yb-repo-install.png

#----------------------------------------------------------------------------

%prep

%build

%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/polkit-1/actions/
mkdir -p %{buildroot}%{_iconsdir}/hicolor/scalable/apps
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications/
install -m644 %{SOURCE1} %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{oname}-install.svg
install -m755 %{SOURCE2} %{buildroot}%{_bindir}/
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/polkit-1/actions/org.rosalinux.yandex-browser-install.policy

mkdir -p %{buildroot}%{_iconsdir}/hicolor/48x48/apps
install -m644 %{SOURCE4} %{buildroot}%{_datadir}/applications/
install -m644 %{SOURCE5} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/yb-repo-install.png
install -m755 %{SOURCE6} %{buildroot}%{_bindir}/
install -m644 %{SOURCE7} %{buildroot}%{_datadir}/polkit-1/actions/org.rosalinux.yandex-browser-repo-install.policy

mkdir -p %{buildroot}%{_sysconfdir}/skel/.config/autostart
cat > %{buildroot}%{_sysconfdir}/skel/.config/autostart/gnome-keyring-first-start.desktop <<EOF
[Desktop Entry]
Type=Application
Name=Yandex Browser prestarter
Comment=Reset gnome-keyring-daemon for start Yandex Browser on first boot
Exec=sh -c "gnome-keyring-daemon -r -d; rm -f ~/.config/autostart/gnome-keyring-first-start.desktop"
X-GNOME-Autostart-enabled=true
X-GNOME-AutoRestart=false
NoDisplay=true
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20511 |21nr|hexen2-1.5.9-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# RPM spec file for RedHat and Fedora.
# $Id: hexen2.spec 6014 2018-02-20 08:21:10Z sezero $

# build options :
# --without alsa: build without alsa audio support
# --without midi: build without a midi driver support
#		 (defunct: there is no linux midi "driver" yet,
#		  midi playback is by timidity for now.)
# --without timidity: build without timidity music streaming support
# --without wavmusic: build without wav music streaming support
# --without mp3: build without mp3 music streaming support
# --with mpg123: build mp3 music streaming using libmpg123 instead of libmad
# --without ogg: build without ogg/vorbis music streaming support
# --with flac: build with flac music streaming support
# --with opus: build with opus music streaming support
# --with mikmod: build with mikmod (tracker) music streaming support
# --with umx: build with unreal umx music streaming support
# --without asm: do not use x86 assembly even on an intel cpu

%define debug_package %{nil}

%ifnarch %{ix86}
%define _without_asm 1
%endif

# default build options
%{!?_without_asm:%define asm_buildopt USE_X86_ASM=yes}
%{!?_without_alsa:%define alsa_buildopt USE_ALSA=yes}
%{!?_without_midi:%define midi_buildopt USE_MIDI=yes}
%{!?_without_timidity:%define timidity_buildopt USE_CODEC_TIMIDITY=yes}
%{!?_without_wavmusic:%define wavmusic_buildopt USE_CODEC_WAVE=yes}
%{!?_with_mpg123:%define mp3_libraryopt MP3LIB=mad}
%{!?_without_mp3:%define mp3_buildopt USE_CODEC_MP3=yes}
%{!?_without_ogg:%define ogg_buildopt USE_CODEC_VORBIS=yes}
%{!?_with_flac:%define flac_buildopt USE_CODEC_FLAC=no}
%{!?_with_opus:%define opus_buildopt USE_CODEC_OPUS=no}
%{!?_with_mikmod:%define mikmod_buildopt USE_CODEC_MIKMOD=no}
%{!?_with_umx:%define umx_buildopt USE_CODEC_UMX=no}
# build option overrides
%{?_without_asm:%define asm_buildopt USE_X86_ASM=no}
%{?_without_alsa:%define alsa_buildopt USE_ALSA=no}
%{?_without_midi:%define midi_buildopt USE_MIDI=no}
%{?_without_timidity:%define timidity_buildopt USE_CODEC_TIMIDITY=no}
%{?_without_wavmusic:%define wavmusic_buildopt USE_CODEC_WAVE=no}
%{?_with_mpg123:%define mp3_libraryopt MP3LIB=mpg123}
%{?_without_mp3:%define mp3_buildopt USE_CODEC_MP3=no}
%{?_without_ogg:%define ogg_buildopt USE_CODEC_VORBIS=no}
%{?_with_flac:%define flac_buildopt USE_CODEC_FLAC=yes}
%{?_with_opus:%define opus_buildopt USE_CODEC_OPUS=yes}
%{?_with_mikmod:%define mikmod_buildopt USE_CODEC_MIKMOD=yes}
%{?_with_umx:%define umx_buildopt USE_CODEC_UMX=yes}
# all build options passed to makefile
%define engine_buildopt	%{asm_buildopt} %{alsa_buildopt} %{midi_buildopt} %{timidity_buildopt} %{wavmusic_buildopt} %{mp3_buildopt} %{mp3_libraryopt} %{ogg_buildopt} %{opus_buildopt} %{flac_buildopt} %{mikmod_buildopt} %{umx_buildopt}

%define gamecode_ver	1.29b

Name:		hexen2
License:	GPLv2
Group:		Games/Arcade
Version:	1.5.9
Release:	1
Summary:	Hexen II: Hammer of Thyrion
URL:		http://uhexen2.sourceforge.net/
Source:		http://download.sourceforge.net/uhexen2/hexen2source-%{version}.tgz
#Source1:	http://download.sourceforge.net/uhexen2/gamedata-src-%{gamecode_ver}.tgz
Source1:	http://download.sourceforge.net/uhexen2/hexen2source-gamecode-%{version}.tgz
Source2:	http://download.sourceforge.net/uhexen2/hexenworld-pakfiles-0.15.tgz
BuildRoot:	%{_tmppath}/%{name}-%{version}-build
BuildRequires:	SDL-devel >= 1.2.4
%{!?_without_mp3:BuildRequires:  %{!?_with_mpg123:libmad-devel}%{?_with_mpg123:libmpg123-devel >= 1.12.0}}
%{!?_without_ogg:BuildRequires:  libogg-devel libvorbis-devel}
%{?_with_flac:BuildRequires:  flac-devel}
%{?_with_opus:BuildRequires:  opus-devel opusfile-devel}
%{?_with_mikmod:BuildRequires:  libmikmod-devel}
%{!?_without_asm:BuildRequires:  nasm >= 0.98.38}
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
Obsoletes:	hexen2-missionpack
# timidity++-patches requirement is non-fatal
#%{!?_without_timidity:Requires: timidity++-patches}
# these will be picked by rpm already
#%{?_with_flac:Requires: flac}
#%{?_with_opus:Requires: opus opusfile}
#%{!?_without_mp3:Requires: %{!?_with_mpg123:libmad}%{?_with_mpg123:libmpg123 >= 1.12.0}}
#%{!?_without_ogg:Requires: libvorbis}
#%{?_with_mikmod:Requires: libmikmod}

%description
Hexen II is a class based shooter game by Raven Software from 1997.
Hammer of Thyrion is a port of the GPL'ed Hexen II source code.
This package contains binaries that will run both the original game
and the Portal of Praevus mission pack, and a dedicated server.

%package -n hexenworld
Group:		Games/Arcade
Summary:	HexenWorld Client and Server
Requires:	%{name} >= %{version}

%description -n hexenworld
Hexen II is a class based shooter game by Raven Software from 1997.
HexenWorld is an extension of Hexen II with internet play enhancements.
Hammer of Thyrion is a port of the GPL'ed Hexen II source code.
This package contains the files which are required to run a HexenWorld
server or client, and a master server application.

%prep
%setup -q -n hexen2source-%{version} -a1 -a2

%build
# Build the main game binaries
%{__make} -C engine/hexen2 %{engine_buildopt} h2
# use localclean instead of clean to avoid building timidity every time
%{__make} -s -C engine/hexen2 localclean
%{__make} -C engine/hexen2 %{engine_buildopt} glh2
%{__make} -s -C engine/hexen2 localclean
# Build the dedicated server
%{__make} -C engine/hexen2/server
# HexenWorld binaries
%{__make} -C engine/hexenworld/server
%{__make} -C engine/hexenworld/client %{engine_buildopt} hw
%{__make} -s -C engine/hexenworld/client localclean
%{__make} -C engine/hexenworld/client %{engine_buildopt} glhw
# HexenWorld master server
%{__make} -C hw_utils/hwmaster

# Build h2patch
%{__make} -C h2patch

# Build the hcode compiler
%{__make} -C utils/hcc
# Build the game-code
utils/hcc/hcc -src gamecode-%{gamecode_ver}/hc/h2 -os
utils/hcc/hcc -src gamecode-%{gamecode_ver}/hc/h2 -os -name progs2.src
utils/hcc/hcc -src gamecode-%{gamecode_ver}/hc/portals -os -oi -on
utils/hcc/hcc -src gamecode-%{gamecode_ver}/hc/hw -os -oi -on
#utils/hcc/hcc -src gamecode-%{gamecode_ver}/hc/siege -os -oi -on

# Done building

%install
%{__rm} -rf %{buildroot}
%{__mkdir_p} %{buildroot}/%{_prefix}/games/%{name}/docs
%{__install} -D -m755 engine/hexen2/glhexen2 %{buildroot}/%{_prefix}/games/%{name}/glhexen2
%{__install} -D -m755 engine/hexen2/hexen2 %{buildroot}/%{_prefix}/games/%{name}/hexen2
%{__install} -D -m755 engine/hexen2/server/h2ded %{buildroot}/%{_prefix}/games/%{name}/h2ded
%{__install} -D -m755 engine/hexenworld/client/hwcl %{buildroot}/%{_prefix}/games/%{name}/hwcl
%{__install} -D -m755 engine/hexenworld/client/glhwcl %{buildroot}/%{_prefix}/games/%{name}/glhwcl
%{__install} -D -m755 engine/hexenworld/server/hwsv %{buildroot}/%{_prefix}/games/%{name}/hwsv
%{__install} -D -m755 hw_utils/hwmaster/hwmaster %{buildroot}/%{_prefix}/games/%{name}/hwmaster
%{__install} -D -m755 h2patch/h2patch %{buildroot}/%{_prefix}/games/%{name}/h2patch

# Install the run script and make symlinks to it
%{__install} -D -m755 scripts/hexen2-run.sh %{buildroot}/%{_bindir}/hexen2-run.sh
%{__ln_s} hexen2-run.sh %{buildroot}/%{_bindir}/glhexen2
%{__ln_s} hexen2-run.sh %{buildroot}/%{_bindir}/hexen2
%{__ln_s} hexen2-run.sh %{buildroot}/%{_bindir}/h2ded
%{__ln_s} hexen2-run.sh %{buildroot}/%{_bindir}/glhwcl
%{__ln_s} hexen2-run.sh %{buildroot}/%{_bindir}/hwcl
%{__ln_s} hexen2-run.sh %{buildroot}/%{_bindir}/hwsv

# Install the cd-rip scripts
%{__install} -D -m755 scripts/cdrip_hexen2.sh %{buildroot}/%{_prefix}/games/%{name}/cdrip_hexen2.sh
%{__install} -D -m755 scripts/cdrip_hexen2_xplosiv.sh %{buildroot}/%{_prefix}/games/%{name}/cdrip_hexen2_xplosiv.sh
%{__install} -D -m755 scripts/cdrip_hexen2_matroxm3d.sh %{buildroot}/%{_prefix}/games/%{name}/cdrip_hexen2_matroxm3d.sh
%{__install} -D -m755 scripts/cdrip_missionpack.sh %{buildroot}/%{_prefix}/games/%{name}/cdrip_missionpack.sh

# Install the docs
%{__install} -D -m644 docs/README %{buildroot}/%{_prefix}/games/%{name}/docs/README
%{__install} -D -m644 docs/COPYING %{buildroot}/%{_prefix}/games/%{name}/docs/COPYING
%{__install} -D -m644 docs/BUGS %{buildroot}/%{_prefix}/games/%{name}/docs/BUGS
%{__install} -D -m644 docs/TODO %{buildroot}/%{_prefix}/games/%{name}/docs/TODO
%{__install} -D -m644 docs/ABOUT %{buildroot}/%{_prefix}/games/%{name}/docs/ABOUT
%{__install} -D -m644 docs/AUTHORS %{buildroot}/%{_prefix}/games/%{name}/docs/AUTHORS
%{__install} -D -m644 docs/Features %{buildroot}/%{_prefix}/games/%{name}/docs/Features
%{__install} -D -m644 docs/CHANGES %{buildroot}/%{_prefix}/games/%{name}/docs/CHANGES
%{__install} -D -m644 docs/CHANGES.old %{buildroot}/%{_prefix}/games/%{name}/docs/CHANGES.old
%{__install} -D -m644 docs/README.music %{buildroot}/%{_prefix}/games/%{name}/docs/README.music
%{__install} -D -m644 docs/README.3dfx %{buildroot}/%{_prefix}/games/%{name}/docs/README.3dfx
%{__install} -D -m644 docs/README.hwcl %{buildroot}/%{_prefix}/games/%{name}/docs/README.hwcl
%{__install} -D -m644 docs/README.hwsv %{buildroot}/%{_prefix}/games/%{name}/docs/README.hwsv
%{__install} -D -m644 docs/README.hwmaster %{buildroot}/%{_prefix}/games/%{name}/docs/README.hwmaster
%{__install} -D -m644 docs/SrcNotes.txt %{buildroot}/%{_prefix}/games/%{name}/docs/SrcNotes.txt
%{__install} -D -m644 docs/ReleaseNotes %{buildroot}/%{_prefix}/games/%{name}/docs/ReleaseNotes
%{__install} -D -m644 docs/ReleaseNotes.old %{buildroot}/%{_prefix}/games/%{name}/docs/ReleaseNotes.old

# Install the gamedata
%{__mkdir_p} %{buildroot}/%{_prefix}/games/%{name}/data1/
%{__install} -D -m644 gamecode-%{gamecode_ver}/hc/h2/progs.dat %{buildroot}/%{_prefix}/games/%{name}/data1/progs.dat
%{__install} -D -m644 gamecode-%{gamecode_ver}/hc/h2/progs2.dat %{buildroot}/%{_prefix}/games/%{name}/data1/progs2.dat
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/h2/hexen.rc %{buildroot}/%{_prefix}/games/%{name}/data1/hexen.rc
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/h2/strings.txt %{buildroot}/%{_prefix}/games/%{name}/data1/strings.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/h2/default.cfg %{buildroot}/%{_prefix}/games/%{name}/data1/default.cfg
%{__mkdir_p} %{buildroot}/%{_prefix}/games/%{name}/portals/
%{__install} -D -m644 gamecode-%{gamecode_ver}/hc/portals/progs.dat %{buildroot}/%{_prefix}/games/%{name}/portals/progs.dat
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/portals/hexen.rc %{buildroot}/%{_prefix}/games/%{name}/portals/hexen.rc
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/portals/strings.txt %{buildroot}/%{_prefix}/games/%{name}/portals/strings.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/portals/infolist.txt %{buildroot}/%{_prefix}/games/%{name}/portals/infolist.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/portals/maplist.txt %{buildroot}/%{_prefix}/games/%{name}/portals/maplist.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/portals/puzzles.txt %{buildroot}/%{_prefix}/games/%{name}/portals/puzzles.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/portals/default.cfg %{buildroot}/%{_prefix}/games/%{name}/portals/default.cfg
%{__mkdir_p} %{buildroot}/%{_prefix}/games/%{name}/hw/
%{__install} -D -m644 gamecode-%{gamecode_ver}/hc/hw/hwprogs.dat %{buildroot}/%{_prefix}/games/%{name}/hw/hwprogs.dat
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/hw/mapcycle.cfg %{buildroot}/%{_prefix}/games/%{name}/hw/mapcycle.cfg
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/hw/server.cfg %{buildroot}/%{_prefix}/games/%{name}/hw/server.cfg
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/hw/strings.txt %{buildroot}/%{_prefix}/games/%{name}/hw/strings.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/res/hw/default.cfg %{buildroot}/%{_prefix}/games/%{name}/hw/default.cfg
%{__install} -D -m644 hw/pak4.pak %{buildroot}/%{_prefix}/games/%{name}/hw/pak4.pak

# Install ent fixes handling map quirks
%{__mkdir_p} %{buildroot}/%{_prefix}/games/%{name}/data1/maps/
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/README.txt %{buildroot}/%{_prefix}/games/%{name}/data1/maps/README.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/cath.ent %{buildroot}/%{_prefix}/games/%{name}/data1/maps/cath.ent
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/cath.txt %{buildroot}/%{_prefix}/games/%{name}/data1/maps/cath.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/demo2.ent %{buildroot}/%{_prefix}/games/%{name}/data1/maps/demo2.ent
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/demo2.txt %{buildroot}/%{_prefix}/games/%{name}/data1/maps/demo2.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/egypt4.ent %{buildroot}/%{_prefix}/games/%{name}/data1/maps/egypt4.ent
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/egypt4.txt %{buildroot}/%{_prefix}/games/%{name}/data1/maps/egypt4.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/egypt5.ent %{buildroot}/%{_prefix}/games/%{name}/data1/maps/egypt5.ent
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/egypt5.txt %{buildroot}/%{_prefix}/games/%{name}/data1/maps/egypt5.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/romeric5.ent %{buildroot}/%{_prefix}/games/%{name}/data1/maps/romeric5.ent
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/romeric5.txt %{buildroot}/%{_prefix}/games/%{name}/data1/maps/romeric5.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/tower.ent %{buildroot}/%{_prefix}/games/%{name}/data1/maps/tower.ent
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/data1/maps/tower.txt %{buildroot}/%{_prefix}/games/%{name}/data1/maps/tower.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/portals/maps/README.txt %{buildroot}/%{_prefix}/games/%{name}/portals/maps/README.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/portals/maps/tibet2.ent %{buildroot}/%{_prefix}/games/%{name}/portals/maps/tibet2.ent
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/portals/maps/tibet2.txt %{buildroot}/%{_prefix}/games/%{name}/portals/maps/tibet2.txt
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/portals/maps/tibet9.ent %{buildroot}/%{_prefix}/games/%{name}/portals/maps/tibet9.ent
%{__install} -D -m644 gamecode-%{gamecode_ver}/mapfixes/portals/maps/tibet9.txt %{buildroot}/%{_prefix}/games/%{name}/portals/maps/tibet9.txt

# Install the pak deltas
%{__mkdir_p} %{buildroot}/%{_prefix}/games/%{name}/patchdat/
%{__mkdir_p} %{buildroot}/%{_prefix}/games/%{name}/patchdat/data1
%{__install} -D -m644 gamecode-%{gamecode_ver}/patch111/patchdat/data1/data1pk0.xd3 %{buildroot}/%{_prefix}/games/%{name}/patchdat/data1/data1pk0.xd3
%{__install} -D -m644 gamecode-%{gamecode_ver}/patch111/patchdat/data1/data1pk1.xd3 %{buildroot}/%{_prefix}/games/%{name}/patchdat/data1/data1pk1.xd3
%{__install} -D -m644 gamecode-%{gamecode_ver}/patch111/patchdat.txt %{buildroot}/%{_prefix}/games/%{name}/patchdat.txt

%{__install} -D -m644 engine/resource/hexen2.png %{buildroot}/%{_prefix}/games/%{name}/hexen2.png

%clean
%{__rm} -rf %{buildroot}

%files
%defattr(-,root,root)
%{_bindir}/hexen2-run.sh
%{_bindir}/glhexen2
%{_bindir}/hexen2
%{_bindir}/h2ded
%{_prefix}/games/%{name}/hexen2
%{_prefix}/games/%{name}/glhexen2
%{_prefix}/games/%{name}/h2ded
%{_prefix}/games/%{name}/h2patch
%{_prefix}/games/%{name}/patchdat/data1/data1pk0.xd3
%{_prefix}/games/%{name}/patchdat/data1/data1pk1.xd3
%{_prefix}/games/%{name}/patchdat.txt
%{_prefix}/games/%{name}/data1/progs.dat
%{_prefix}/games/%{name}/data1/progs2.dat
%{_prefix}/games/%{name}/data1/hexen.rc
%{_prefix}/games/%{name}/data1/strings.txt
%{_prefix}/games/%{name}/data1/default.cfg
%{_prefix}/games/%{name}/data1/maps/README.txt
%{_prefix}/games/%{name}/data1/maps/cath.ent
%{_prefix}/games/%{name}/data1/maps/cath.txt
%{_prefix}/games/%{name}/data1/maps/demo2.ent
%{_prefix}/games/%{name}/data1/maps/demo2.txt
%{_prefix}/games/%{name}/data1/maps/egypt4.ent
%{_prefix}/games/%{name}/data1/maps/egypt4.txt
%{_prefix}/games/%{name}/data1/maps/egypt5.ent
%{_prefix}/games/%{name}/data1/maps/egypt5.txt
%{_prefix}/games/%{name}/data1/maps/romeric5.ent
%{_prefix}/games/%{name}/data1/maps/romeric5.txt
%{_prefix}/games/%{name}/data1/maps/tower.ent
%{_prefix}/games/%{name}/data1/maps/tower.txt
%{_prefix}/games/%{name}/portals/progs.dat
%{_prefix}/games/%{name}/portals/hexen.rc
%{_prefix}/games/%{name}/portals/strings.txt
%{_prefix}/games/%{name}/portals/puzzles.txt
%{_prefix}/games/%{name}/portals/infolist.txt
%{_prefix}/games/%{name}/portals/maplist.txt
%{_prefix}/games/%{name}/portals/default.cfg
%{_prefix}/games/%{name}/portals/maps/README.txt
%{_prefix}/games/%{name}/portals/maps/tibet2.ent
%{_prefix}/games/%{name}/portals/maps/tibet2.txt
%{_prefix}/games/%{name}/portals/maps/tibet9.ent
%{_prefix}/games/%{name}/portals/maps/tibet9.txt
%{_prefix}/games/%{name}/cdrip_hexen2.sh
%{_prefix}/games/%{name}/cdrip_hexen2_xplosiv.sh
%{_prefix}/games/%{name}/cdrip_hexen2_matroxm3d.sh
%{_prefix}/games/%{name}/cdrip_missionpack.sh
%{_prefix}/games/%{name}/docs/README
%{_prefix}/games/%{name}/docs/COPYING
%{_prefix}/games/%{name}/docs/BUGS
%{_prefix}/games/%{name}/docs/ABOUT
%{_prefix}/games/%{name}/docs/AUTHORS
%{_prefix}/games/%{name}/docs/Features
%{_prefix}/games/%{name}/docs/CHANGES
%{_prefix}/games/%{name}/docs/CHANGES.old
%{_prefix}/games/%{name}/docs/README.music
%{_prefix}/games/%{name}/docs/README.3dfx
%{_prefix}/games/%{name}/docs/TODO
%{_prefix}/games/%{name}/docs/SrcNotes.txt
%{_prefix}/games/%{name}/docs/ReleaseNotes
%{_prefix}/games/%{name}/docs/ReleaseNotes.old
%{_prefix}/games/%{name}/hexen2.png

%files -n hexenworld
%defattr(-,root,root)
%{_bindir}/glhwcl
%{_bindir}/hwcl
%{_bindir}/hwsv
%{_prefix}/games/%{name}/hwsv
%{_prefix}/games/%{name}/hwmaster
%{_prefix}/games/%{name}/hwcl
%{_prefix}/games/%{name}/glhwcl
%{_prefix}/games/%{name}/hw/hwprogs.dat
%{_prefix}/games/%{name}/hw/mapcycle.cfg
%{_prefix}/games/%{name}/hw/server.cfg
%{_prefix}/games/%{name}/hw/pak4.pak
%{_prefix}/games/%{name}/hw/strings.txt
%{_prefix}/games/%{name}/hw/default.cfg
%{_prefix}/games/%{name}/docs/README.hwcl
%{_prefix}/games/%{name}/docs/README.hwsv
%{_prefix}/games/%{name}/docs/README.hwmaster

%changelog
* Tue Feb 20 2018 O.Sezer <sezero@users.sourceforge.net> 1.5.9-1
- Version 1.5.9.
- Bump gamecode version to 1.29b

* Mon May 30 2016 O.Sezer <sezero@users.sourceforge.net> 1.5.8-1
- Bump version to 1.5.8.
- Bump gamecode version to 1.29a

* Thu Jan 21 2016 O.Sezer <sezero@users.sourceforge.net> 1.5.7-1
- Removed gtk launcher, added a shell script to run different
  versions of the game, instead.
- Use hcc's new -os switch when building the hcode
- Added --with flac|mikmod|umx build options
- Bump version to 1.5.7.
- Bump gamecode version to 1.29

* Fri Mar 08 2013 O.Sezer <sezero@users.sourceforge.net> 1.5.6-1
- Add --with opus build option
- Bump version to 1.5.6.
- Bump gamecode version to 1.28

* Tue Sep 11 2012 O.Sezer <sezero@users.sourceforge.net> 1.5.5-1
- Adjusted gamedata resource installation after txt->res rename
- Adjusted h2ded build and installation after moved Makefile.sv
- Bump version to 1.5.5
- Bump gamecode version to 1.27

* Tue Jun 19 2012 O.Sezer <sezero@users.sourceforge.net> 1.5.4-1
- Changed --without gtk2 option to --with gtk1.
- Removed the beta/prerelease versioning stuff.
- Bump gamecode version to 1.26.
- Updated documents installation after the ReleaseNotes* changes.
- Bump version to 1.5.4

* Sat Apr 07 2012 O.Sezer <sezero@users.sourceforge.net> 1.5.3-1
- Bump version to 1.5.3

* Wed Feb 15 2012 O.Sezer <sezero@users.sourceforge.net> 1.5.2-1
- Added --with gtk3 build option for the launcher

* Sat Jan 14 2012 O.Sezer <sezero@users.sourceforge.net>
- gamecode version 1.25

* Sat Dec 17 2011 O.Sezer <sezero@users.sourceforge.net>
- Install the AUTHORS file

* Fri Dec 02 2011 O.Sezer <sezero@users.sourceforge.net>
- Bumped version to 1.5.2

* Mon Nov 21 2011 O.Sezer <sezero@users.sourceforge.net> 1.5.1-1
- Install the cd-rip scripts for the less common game media, too.

* Tue Oct 18 2011 O.Sezer <sezero@users.sourceforge.net>
- Fixed some typoes
- Install the CHANGES.old document.

* Fri Oct 14 2011 O.Sezer <sezero@users.sourceforge.net>
- Bumped version to 1.5.1
- Adjusted for build system changes

* Thu Sep 15 2011 O.Sezer <sezero@users.sourceforge.net> 1.5.0-1
- 1.5.0-final.

* Fri Aug 05 2011 O.Sezer <sezero@users.sourceforge.net>
- docs/ReleaseNotes-1.4.4 is no more.

* Mon Jun 20 2011 O.Sezer <sezero@users.sourceforge.net>
- Install the cd-rip scripts.

* Sun Jun 19 2011 O.Sezer <sezero@users.sourceforge.net>
- Install modified entities for the cathedral map to handle the map's
  quirks.

* Sun Jun 05 2011 O.Sezer <sezero@users.sourceforge.net>
- Build the main game progs using the new hcc tool.

* Wed Jun 01 2011 O.Sezer <sezero@users.sourceforge.net>
- Update spec file after the xdelta3/h2patch changes.

* Fri May 20 2011 O.Sezer <sezero@users.sourceforge.net>
- Install fixed entities for the tower map to handle the map's quirks.

* Wed May 04 2011 O.Sezer <sezero@users.sourceforge.net>
- Install demo2 and egypt4 entity fixes for handling map quirks.

* Tue Mar 08 2011 O.Sezer <sezero@users.sourceforge.net>
- Fix license tag as GPLv2.
- Add missing missing pack map entity fixes to the packaged files list.

* Thu Mar 03 2011 O.Sezer <sezero@users.sourceforge.net>
- Nasm version 0.98 can not be supported anymore due to its inability to
  handle -I arguments. Bumped the minimum required version to 0.98.38.

* Sun Feb 27 2011 O.Sezer <sezero@users.sourceforge.net>
- Add support for building against libmpg123 instead of libmad.

* Tue Jan 04 2011 O.Sezer <sezero@users.sourceforge.net>
- Install tibet2/tibet9 ent fixes for handling map quirks.

* Wed Dec 29 2010 O.Sezer <sezero@users.sourceforge.net>
- Install ent fixes handling map quirks.

* Sun Dec 19 2010 O.Sezer <sezero@users.sourceforge.net>
- Added new build options after the music playback changes.
- Dropped SDL_mixer dependency which is not used anymore.
- Added README.music among the installed documents.
- Reworked the style we use for passing the build options to the makefiles.
- Fixed icon path.

* Fri Dec 17 2010 O.Sezer <sezero@users.sourceforge.net>
- Moved xdelta under the libs directory.

* Fri Apr 04 2008 O.Sezer <sezero@users.sourceforge.net> 1.4.3-1
- 1.4.3-final.

* Tue Feb 05 2008 O.Sezer <sezero@users.sourceforge.net>
- incremented the gamecode version number to 1.19a

* Wed Oct 03 2007 O.Sezer <sezero@users.sourceforge.net> 1.4.2-1
- 1.4.2-final.

* Mon Aug 13 2007 O.Sezer <sezero@users.sourceforge.net>
- removed the .gtk1 suffix from launcher gtk-1.2 builds

* Fri Jun 15 2007 O.Sezer <sezero@users.sourceforge.net>
- The software renderer clients can now be compiled on non-intel.

* Tue Apr 10 2007 O.Sezer <sezero@users.sourceforge.net>
- xdelta now builds without autotools.

* Tue Mar 20 2007 O.Sezer <sezero@users.sourceforge.net>
- xdelta version is 1.1.4: rename the binary properly.

* Sun Mar 18 2007 O.Sezer <sezero@users.sourceforge.net>
- gamecode version changed to 1.17.

* Mon Feb 05 2007 O.Sezer <sezero@users.sourceforge.net>
- xdelta is now included in the source tarball.

* Fri Dec 01 2006 O.Sezer <sezero@users.sourceforge.net> 1.4.1-2
- Version 1.4.1-rev1 :
  - Updated to gamedata-1.16a
  - Updated to xdelta-1.1.3b
  - Updated the URLs

* Wed Oct 18 2006 O.Sezer <sezero@users.sourceforge.net> 1.4.1-1
- Merged the hexen2 and mission pack packages.
- Added build option --without midi.
- Added build option --without alsa.
- Added build option --without asm.
- Disabled x86 assembly on non-intel cpus.
- Do not build or package the software renderer versions when not
  using x86 assembly until we fix them properly.
- Version 1.4.1-final.

* Mon Aug 14 2006 O.Sezer <sezero@users.sourceforge.net>
- Added the dedicated server to the packaged binaries.
  Preparing for a future 1.4.1 release.

* Tue Apr 18 2006 O.Sezer <sezero@users.sourceforge.net> 1.4.0-7
- More packaging tidy-ups for 1.4.0-final

* Sun Apr 16 2006 O.Sezer <sezero@users.sourceforge.net>
- Back to xdelta: removed loki_patch. All of its fancy bloat can
  be done in a shell script, which is more customizable.

* Tue Apr 04 2006 O.Sezer <sezero@users.sourceforge.net>
- Since 1.4.0-rc2 no mission pack specific binaries are needed.

* Sun Mar 26 2006 O.Sezer <sezero@users.sourceforge.net>
- Moved hexenworld related documentation to the hexenworld package
  lib3dfxgamma is no longer needed. not packaging it.

* Thu Mar 02 2006 O.Sezer <sezero@users.sourceforge.net>
- Added Features to the packaged documentation

* Wed Mar 01 2006 O.Sezer <sezero@users.sourceforge.net>
- Updated after the utilities reorganization

* Sun Feb 12 2006 O.Sezer <sezero@users.sourceforge.net>
- Updated for a future 1.4.0

* Mon Aug 29 2005 O.Sezer <sezero@users.sourceforge.net> 1.3.0-2
- Patch: We need to remove OS checks from the update_h2 script

* Sun Aug 21 2005 O.Sezer <sezero@users.sourceforge.net> 1.3.0-1
- First sketchy spec file for RedHat and Fedora Core


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20512 |21nr|hheretic-0.2.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			hheretic
Summary:		Hacked Heretic is a Linux port of Raven Games old shooter, Heretic
License:		GPL
Group:			Games/Arcade
Version:		0.2.3
Release:		1
URL:			http://hheretic.sourceforge.net/
Source:			http://downloads.sourceforge.net/hheretic/%{name}-%{version}-src.tgz
Source1:		%{name}.png
Source90:		%{name}-rpmlintrc
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
Requires:	TiMidity++

%description
Hacked Heretic is a Linux port of Raven Game's old shooter, Heretic.

This is a new release of Dan's excellent Hacked Heretic, by the
authors of Hammer of Thyrion (Heretic II). We're applying fixes,
adding a few features, and ensuring it runs on most *nix operating
systems.

This package contains the OpenGL enabled binary.

%package sdl
Summary:	Hacked Heretic is a Linux port of Raven Game's old shooter, Heretic
Group:		Games/Arcade

%description sdl
Hacked Heretic is a Linux port of Raven Game's old shooter, Heretic.

This is a new release of Dan's excellent Hacked Heretic, by the
authors of Heretic II. We're applying fixes,
adding a few features, and ensuring it runs on most *nix operating
systems.

This package contains the sdl enabled binary.

%package shareware
Summary:	Hacked Heretic is a Linux port of Raven Game's old shooter, Heretic
Group:		Games/Arcade
Requires:	%{name}

%description shareware
Hacked Heretic is a Linux port of Raven Game's old shooter, Heretic.

Those without the full retail version of Heretic can still play the
shareware.


%prep
%setup -q -n %{name}-%{version}-src

%build
# compile the OpenGL version (hheretic-gl)
%configure \
	--with-audio=sdlmixer
%make

# compile the software version (hheretic-sdl)
%make clean
%configure \
	--disable-gl \
	--with-audio=sdlmixer
%make

%install
# wrapper startscript
%__install -dm 755 %{buildroot}%{_gamesbindir}
for i in gl sdl; do
	%{__cat} > %{name}-$i.sh << EOF
#!/bin/bash
if [ ! -f \$HOME/.hheretic/version-%{version} ]; then
	mkdir -p \$HOME/.hheretic

	# if shareware is installed create a link
	if [ -f %{_datadir}/games/%{name}/heretic.wad ]; then
		cd \$HOME/.hheretic
		ln -s %{_datadir}/games/%{name}/heretic.wad .
	fi
	touch version-%{version}
fi
cd \$HOME/.hheretic
%{_prefix}/games/%{name}-$i "\$@"
EOF

	%__install -m 755 %{name}-$i.sh \
		%{buildroot}%{_gamesbindir}
done

# install the gamedata
%__install -dm 755 %{buildroot}/%{_datadir}/games/%{name} \
	%{buildroot}%{_datadir}/games/%{name}

%__install -dm 755 %{buildroot}%{_prefix}/games/%{name}
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
for i in gl sdl; do
	# binaries
	%__install -m 755 %{name}-$i \
		%{buildroot}%{_prefix}/games

	# icon
	 %__install -m 644 %{SOURCE1} \
	 	%{buildroot}%{_datadir}/pixmaps/%{name}-$i.png
done

# install menu entry
%__install -dm 755 %{buildroot}%{_datadir}/applications
%{__cat} > %{name}-gl.desktop << EOF
[Desktop Entry]
Name=Hacked Heretic (OpenGL)
GenericName=Hacked Heretic (OpenGL)
Comment=Hacked Heretic is a Linux port of Raven Game's old shooter, Heretic
Exec=%{name}-gl.sh
Icon=%{name}-gl
Terminal=false
Type=Application
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

%{__cat} > %{name}-sdl.desktop << EOF
[Desktop Entry]
Name=Hacked Heretic (SDL)
GenericName=Hacked Heretic (SDL)
Comment=Hacked Heretic is a Linux port of Raven Game's old shooter, Heretic
Exec=%{name}-sdl.sh
Icon=%{name}-sdl
Terminal=false
Type=Application
Categories=Game;ArcadeGame;X-MandrivaLinux-MoreApplications-Games-Arcade;
EOF

%__install -m 644 %{name}*.desktop \
	%{buildroot}%{_datadir}/applications

%files
%doc AUTHORS ChangeLog LICENSE TODO
%{_gamesbindir}/%{name}-gl.sh
%{_prefix}/games/%{name}-gl
%{_datadir}/pixmaps/%{name}-gl.png
%{_datadir}/applications/%{name}-gl.desktop

%files sdl
%{_gamesbindir}/%{name}-sdl.sh
%{_prefix}/games/%{name}-sdl
%{_datadir}/pixmaps/%{name}-sdl.png
%{_datadir}/applications/%{name}-sdl.desktop

%files shareware
%defattr(-,root,root)
# %doc README.sharewarewad
# %dir %{_datadir}/games/%{name}
# %{_datadir}/games/%{name}/*.wad

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20513 |21nr|hhexen-1.6.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:			hhexen
Summary:		Hacked Hexen is a Linux port of Raven Games old shooter, Hexen
License:		GPL
Group:			Games/Arcade
Version:		1.6.3
Release:		1
URL:			http://hhexen.sourceforge.net/
Source:			http://downloads.sourceforge.net/hhexen/%{name}-%{version}-src.tgz
Source1:		%{name}.png
Source90:		%{name}-rpmlintrc
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)
Requires:	TiMidity++

%description
Hacked Hexen is a Linux port of Raven Game's old shooter, Hexen.

This is a new release of Dan's excellent Hacked Hexen, by the
authors of Hammer of Thyrion (Hexen II). We're applying fixes,
adding a few features, and ensuring it runs on most *nix operating
systems.

This package contains the OpenGL enabled binary.

This package is non-free because it requires non-free data. 

%package sdl
Summary:	Hacked Hexen is a Linux port of Raven Game's old shooter, Hexen
Group:		Games/Arcade

%description sdl
Hacked Hexen is a Linux port of Raven Game's old shooter, Hexen.

This is a new release of Dan's excellent Hacked Hexen, by the
authors of Hammer of Thyrion (Hexen II). We're applying fixes,
adding a few features, and ensuring it runs on most *nix operating
systems.

This package contains the sdl enabled binary.

%prep
%setup -q -n %{name}-%{version}-src 

%build
# compile the OpenGL version (hhexen-gl)
%configure \
	--with-audio=sdlmixer
%__make %{?jobs:-j%{jobs}}

# compile the software version (hhexen-sdl)
%__make clean
%configure \
	--disable-gl \
	--with-audio=sdlmixer
%__make %{?jobs:-j%{jobs}}

%install
# wrapper startscript
%__install -dm 755 %{buildroot}%{_bindir}
for i in gl sdl; do
	%{__cat} > %{name}-$i.sh << EOF
#!/bin/bash
if [ ! -f \$HOME/.hhexen/version-%{version} ]; then
	mkdir -p \$HOME/.hhexen
fi
cd \$HOME/.hhexen
%{_prefix}/games/%{name}-$i "\$@"
EOF

	%__install -m 755 %{name}-$i.sh \
		%{buildroot}%{_bindir}
done

# install the gamedata
%__install -dm 755 %{buildroot}/%{_datadir}/games/%{name}
%__install -dm 755 %{buildroot}%{_prefix}/games/%{name}
%__install -dm 755 %{buildroot}%{_datadir}/pixmaps
for i in gl sdl; do
	# binaries
	%__install -m 755 %{name}-$i \
		%{buildroot}%{_prefix}/games

	# icon
	%__install -m 644 %{SOURCE1} \
		%{buildroot}%{_datadir}/pixmaps/%{name}-$i.png
done

# install menu entry
%__install -dm 755 %{buildroot}%{_datadir}/applications
%{__cat} > %{name}-gl.desktop << EOF
[Desktop Entry]
Name=Hacked Hexen (OpenGL)
GenericName=Hacked Hexen (OpenGL)
Comment=Hacked Hexen is a Linux port of Raven Game's old shooter, Hexen
Exec=%{name}-gl.sh
Icon=%{name}-gl
Terminal=false
Type=Application
#Encoding=UTF-8
EOF

%{__cat} > %{name}-sdl.desktop << EOF
[Desktop Entry]
Name=Hacked Hexen (SDL)
GenericName=Hacked Hexen (SDL)
Comment=Hacked Hexen is a Linux port of Raven Game's old shooter, Hexen
Exec=%{name}-sdl.sh
Icon=%{name}-sdl
Terminal=false
Type=Application
#Encoding=UTF-8
EOF

%__install -m 644 %{name}*.desktop \
	%{buildroot}%{_datadir}/applications

%files
%doc AUTHORS ChangeLog LICENSE README-* RELEASE TODO WADFILES
%{_bindir}/%{name}-gl.sh
%{_prefix}/games/%{name}-gl
%{_datadir}/pixmaps/%{name}-gl.png
%{_datadir}/applications/%{name}-gl.desktop

%files sdl
%{_bindir}/%{name}-sdl.sh
%{_prefix}/games/%{name}-sdl
%{_datadir}/pixmaps/%{name}-sdl.png
%{_datadir}/applications/%{name}-sdl.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20514 |21nr|hoh-1.01-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# the game is close-sourced and no longer developed so debug is useless
%define		_enable_debug_packages %{nil}
%define		debug_package %{nil}

%if %{_use_internal_dependency_generator}
%global __provides_exclude libstdc++-libc6.2-2.so.3
%endif

Name:		hoh
Version:	1.01
Release:	4
Summary:	Remake of the 80's 8-bit classic game Head over Heels
Group:		Games/Arcade
License:	Freeware
URL:		http://retrospec.sgn.net/game/hoh
Source0:	http://retrospec.sgn.net/games/hoh/bin/hohlin-101.tar.bz2
Source1:	http://retrospec.sgn.net/games/hoh/bin/hoh-update-101.tar.bz2
Source2:	%{name}.png
BuildRequires:	imagemagick
ExclusiveArch:	%{ix86}

%description
Remake of the 80's 8-bit classic game Head over Heels.

%prep
%setup -q -c -a1

%build

%install
# wrapper script
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/bash
export LD_LIBRARY_PATH=%{_libdir}/%{name}/runtime
cd %{_libdir}/%{name}
exec ./HoH \$@
EOF
chmod 755 %{buildroot}%{_bindir}/%{name}

# game files
mkdir -p %{buildroot}%{_libdir}/%{name}
cp -af %{name}-install-%{version}/data/* %{buildroot}%{_libdir}/%{name}/
cp -af %{name}-update-%{version}/data/HoH %{buildroot}%{_libdir}/%{name}/

# icons
for N in 16 32 64 128; do
	convert %{SOURCE2} -resize ${N}x${N} $N.png;
done
install -D 16.png %{buildroot}%{_miconsdir}/%{name}.png
install -D 32.png %{buildroot}%{_liconsdir}/%{name}.png
install -D %{SOURCE2} %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
install -D 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# menu-entry
mkdir -p  %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Head over Heels
Comment=Retro 80's classic
Exec=hoh
Icon=hoh
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

%files
%defattr(644,root,root,755)
%doc %{name}-install-%{version}/docs %{name}-install-%{version}/readme.txt
%attr(755,root,root) %{_bindir}/%{name}
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/Sound
%dir %{_libdir}/%{name}/runtime
%attr(755,root,root) %{_libdir}/%{name}/runtime/*
%attr(755,root,root) %{_libdir}/%{name}/HoH
%{_libdir}/%{name}/HoHOriginal.dat
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20515 |21nr|ideas-1.0.3.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define sversion 1039

Summary:	Nintendo DS and GBA Emulator
Name:		ideas
Version:	1.0.3.9
Release:	4
License:	Freeware
Group:		Emulators
Url:		http://ideasemu.biz/index.php
Source0:	%{name}%{sversion}.tar.bz2
Source1:	%{name}.png
Source2:	acekardplugin.zip
Source3:	DsPad1.6.1.zip
Source4:	syncroaud.tar
Source5:	wifiplugin.zip
BuildRequires:	imagemagick
ExclusiveArch:	%{ix86}

%description
iDeaS is an emulator that runs a lot of commercial games on PC with OpenGL.

iDeaS has emulated the ARM7 GameBoy Advance processor at 100%, and the ARM9
dual screen processor at 99%; enabling it to run many commercial ROMs,
including Super Mario 64 DS and Pokémon Diamond & Pearl (with a few graphical
errors). The touch screen is fully emulated with a cursor instead of a hand,
and a keyboard can be used to emulate the Nintendo DS buttons.

iDeaS uses a plugin system that originally came from the UltraHLE Nintendo 64
emulator so that further support can achieved without looking at the source
code of the emulator.

%files
%attr (644,root,root) %doc readme.txt
%{_bindir}/%{name}
%{_libdir}/games/%{name}/%{name}
%{_libdir}/games/%{name}/PlugIn/*.so
# desktop integration
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -c -n %{name}%{sversion}

%build
#unpack plugins
unzip %{SOURCE2}
unzip %{SOURCE3}
tar xf %{SOURCE4}
unzip %{SOURCE5}

%install
# install section
mkdir -p %{buildroot}%{_bindir}

cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/bash
%{_libdir}/games/%{name}/%{name}
EOF

chmod +x %{buildroot}%{_bindir}/%{name}

install -D -m 755 %{name} %{buildroot}%{_libdir}/games/%{name}/%{name}

install -D -m 755 Linux/acekard.so %{buildroot}%{_libdir}/games/%{name}/PlugIn/acekard.so
install -D -m 755 Linux/wifi.so %{buildroot}%{_libdir}/games/%{name}/PlugIn/wifi.so
install -D -m 755 syncro_aud_alsa.so %{buildroot}%{_libdir}/games/%{name}/PlugIn/syncro_aud_alsa.so
install -D -m 755 dspad1.6.1/libDsPad.so %{buildroot}%{_libdir}/games/%{name}/PlugIn/libDsPad.so

#Icons
mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -c -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

mkdir -p %{buildroot}/%{_miconsdir} \
	 %{buildroot}/%{_liconsdir} \
	 %{buildroot}/%{_iconsdir}

install -m 644 %{SOURCE1} %{buildroot}/%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE1} %{buildroot}/%{_iconsdir}/%{name}.png
install -m 644 %{SOURCE1} %{buildroot}/%{_liconsdir}/%{name}.png
convert %{buildroot}%{_miconsdir}/%{name}.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
convert %{buildroot}%{_iconsdir}/%{name}.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png

# install menu entries
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=iDeaS
Comment=Nintendo DS and GBA Emulator
Exec=%{name}
Icon=%{name}
Type=Application
Terminal=false
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20516 |21nr|iodoom3-1.3.1.1304-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		iodoom3
Version:	1.3.1.1304
Release:	5
Summary:	Doom 3 engine
Group:		Games/Arcade
License:	GPLv3+
URL:		http://www.iodoom3.org
# From git, see more at http://www.iodoom3.org/download/
Source0:	%{name}-%{version}.tar.bz2
Source1:	%{name}.png
Patch0:		iodoom3-1.3.1.1304-datapath.patch
# https://github.com/albertz/iodoom3/commit/350616aab643eceb106631af81d3bb960a0dcb70
Patch1:		iodoom3-1.3.1.1304-x86_64.patch
Patch2:		iodoom3-1.3.1.1304-gcc6.patch
Patch3:		iodoom3-1.3.1.1304-gcc6-2.patch
BuildRequires:	imagemagick
BuildRequires:	scons
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(zlib)
Provides:	doom3 = 1.3.1
# 64 bit build is too buggy, segfaults at start and requires lots of patching
ExclusiveArch:	%{ix86}

%description
On November 22, 2011 id Software released the source code to Doom 3.
This project aims to build upon that source code release by cleaning up,
fixing bugs, and adding features. The permant goal is to create the
open-source Doom 3 distribution upon which people base their games and
projects. Project developers also seek to have the perfect version of the
game engine for playing Doom 3, it’s expansion pack Resurrection of Evil,
and all popular mods.

WARNING! Playing Doom 3 still requires a legitimate copy of the game.
You can purchase a copy from Steam or your favorite retailer.

Place "base" folder from the Doom 3 installation to:
%{_gamesdatadir}/doom3/


%prep
%setup -q
%patch0 -p1
%patch2 -p1
%patch3 -p1
sed -i s,"/usr/lib/libz.a","%{_libdir}/libz.a",g neo/sys/scons/SConscript.curl
# Ask CD-KEY only for network game
sed -i s,"ID_ENFORCE_KEY 1","ID_ENFORCE_KEY 0",g neo/framework/BuildDefines.h

%build
pushd neo
%scons TARGET_MONO=1 TARGET_CORE=0 TARGET_GAME=0 TARGET_D3XP=0
popd
for N in 16 32 64 128; do convert %{SOURCE1} -resize ${N}x${N} $N.png; done

%install
install -D neo/doom-mon* %{buildroot}%{_gamesbindir}/%{name}
install -D 16.png %{buildroot}%{_miconsdir}/%{name}.png
install -D 32.png %{buildroot}%{_liconsdir}/%{name}.png
install -D 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Doom 3
Comment=A first-person science fiction horror video game
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

mkdir -p %{buildroot}%{_gamesdatadir}/doom3

%files
%doc README.txt COPYING.txt id-readme.txt
%{_gamesbindir}/%{name}
%dir %{_gamesdatadir}/doom3
%{_datadir}/applications/%{name}.desktop
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20517 |21nr|iodoom3-dhewm3-1.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# These are private
%if %{_use_internal_dependency_generator}
%global __provides_exclude d3xp\\.so|base\\.so
%endif

%define sname dhewm3

Summary:	Doom 3 engine
Name:		iodoom3-%{sname}
Version:	1.5.2
Release:	1
License:	GPLv3+
Group:		Games/Arcade
Url:		https://github.com/dhewm/dhewm3/
Source0:	https://github.com/dhewm/dhewm3/archive/%{version}.tar.gz?/%{sname}-%{version}.tar.gz
Source1:	%{sname}.png
# Don't override CXX flags
Patch0:		dhewm3-1.5.2-cflags.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(zlib)
Provides:	%{sname} = %{EVRD}
Provides:	doom3 = %{version}

%description
On November 22, 2011 id Software released the source code to Doom 3.

dhewm 3 is a Doom 3 GPL source modification. The goal of dhewm 3 is
bring Doom 3 with the help of SDL to all suitable platforms.

Compared to the original Doom 3, the changes of dhewm 3 worth mentioning are:
- 64bit port
- SDL for low level OS support, OpenGL and input handling
- OpenAL for audio output, all OS specific audio backends are gone
- OpenAL EFX for EAX reverb effects (read: EAX on all platforms)
- A portable build system based on CMake
- (Cross-)compilation with mingw-w64

WARNING! Playing Doom 3 still requires a legitimate copy of the game.
You can purchase a copy from Steam or your favorite retailer.

Place "base" folder from the Doom 3 installation to:
%{_gamesdatadir}/%{sname}/

%files
%doc README.md
%license COPYING.txt
%{_gamesbindir}/%{sname}
%dir %attr(0777,root,root) %{_gamesdatadir}/%{sname}
%{_libdir}/games/%{sname}
%{_datadir}/applications/%{sname}.desktop
%{_liconsdir}/%{sname}.png
%{_miconsdir}/%{sname}.png
%{_iconsdir}/hicolor/*/apps/%{sname}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{sname}-%{version}
sed -i s,"ID_ENFORCE_KEY 1","ID_ENFORCE_KEY 0",g neo/framework/BuildDefines.h

%build
pushd neo
%cmake	\
	-DCMAKE_INSTALL_BINDIR=%{_gamesbindir}		\
	-DCMAKE_INSTALL_DATADIR=%{_gamesdatadir}	\
	-DCMAKE_INSTALL_LIBDIR=%{_libdir}/games
%make
popd
for N in 16 32 64 128; do convert %{SOURCE1} -resize ${N}x${N} $N.png; done

%install
pushd neo
%makeinstall_std -C build
popd
install -D 16.png %{buildroot}%{_miconsdir}/%{sname}.png
install -D 32.png %{buildroot}%{_liconsdir}/%{sname}.png
install -D 64.png %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{sname}.png
install -D 128.png %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{sname}.png

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{sname}.desktop << EOF
[Desktop Entry]
Name=Doom 3 (dhewm3)
Comment=A first-person science fiction horror video game
Exec=%{sname}
Icon=%{sname}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

mkdir -p %{buildroot}%{_gamesdatadir}/%{sname}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20518 |21nr|ipw2100-firmware-1.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: ipw2100-firmware
Version: 1.3
Release: 7
Summary: Intel PRO/Wireless 2100 firmware
Source: ipw2100-fw-%{version}.tgz
License: Proprietary
Group: System/Kernel and hardware
URL: http://ipw2100.sourceforge.net
BuildArch: noarch

%description
Firmware for Intel PRO/Wireless 2100 (IPW2100) mini PCI adapter support.

%prep
%setup -qc

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}/lib/firmware
install -m644 *.fw %{buildroot}/lib/firmware/

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc LICENSE
/lib/firmware/*.fw

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20519 |21nr|ipw2200-firmware-3.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: ipw2200-firmware
Version: 3.1
Release: 5
Summary: Intel PRO/Wireless 2200BG firmware
Source: ipw2200-fw-%{version}.tgz
License: Proprietary
Group: System/Kernel and hardware
URL: http://ipw2200.sourceforge.net
BuildArch: noarch

%description
Firmware for Intel PRO/Wireless 2200BG (IPW2200) mini PCI adapter support.

%prep
%setup -q -n ipw2200-fw-%{version}

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}/lib/firmware
install -m644 *.fw %{buildroot}/lib/firmware/

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc LICENSE.*
/lib/firmware/*.fw

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20520 |21nr|ipw3945d-1.7.22-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name ipw3945d
%define version 1.7.22
%define mdkrelease 5
%define release %mkrel %{mdkrelease}

# dont generate a debug package 
# otherwise we'll end up with an empty rpm
%define _enable_debug_packages 0
%define install %%install

Summary:	Intel PRO/Wireless 3945 (IPW3945ABG) 
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	%{name}-%{version}.tar.bz2
Patch0:		ipw3945d-1.7.22-net.patch
License:	proprietary
Url:		http://sourceforge.net/projects/ipw3945
Group:		System/Kernel and hardware
Prefix:		%{_prefix}
Requires:	drakxtools >= 10-34.2mdk
Requires(preun):	rpm-helper
Requires(post):	rpm-helper


%description
Regulatory daemon for the Intel PRO/Wireless 3945 (IPW3945ABG) Wifi adapter.

%prep
%setup -q 
%patch0 -p1 -b .net

%build

%install
cd $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/%{_sbindir}
%ifarch %{ix86}
install -m755 x86/%{name}  $RPM_BUILD_ROOT/%{_sbindir}
%endif
%ifarch x86_64
install -m755 x86_64/%{name}  $RPM_BUILD_ROOT/%{_sbindir}
%endif

install -m755 %{name}-{start,stop} $RPM_BUILD_ROOT/%{_sbindir}
perl -pi -e 's,\B/sbin/%{name},/usr/sbin/%{name},' $RPM_BUILD_ROOT/%{_sbindir}/%{name}-{start,stop}

install -d $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d
cat > $RPM_BUILD_ROOT%{_sysconfdir}/modprobe.d/%{name} <<EOF
install ipw3945 [ -w /var/run ] && /sbin/modprobe --ignore-install ipw3945 && /usr/sbin/ipw3945d-start
remove  ipw3945 /usr/sbin/ipw3945d-stop ; /sbin/modprobe -r --ignore-remove ipw3945
EOF

%clean
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc LICENSE.ipw3945d
%doc README.ipw3945d
%{_sbindir}/ipw3945d
%{_sbindir}/%{name}-start
%{_sbindir}/%{name}-stop
%{_sysconfdir}/modprobe.d/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20521 |21nr|ipw3945-ucode-1.14.2-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name ipw3945-ucode
%define version 1.14.2
%define mdkrelease 2
%define release %mkrel %{mdkrelease}

Summary:	Intel PRO/Wireless 3945 (IPW3945ABG) microcode
Name:		%{name}
Version:	%{version}
Release:	%{release}
Source0:	%{name}-%{version}.tgz
License:	proprietary
Url:		http://sourceforge.net/projects/ipw3945
Group:		System/Kernel and hardware
BuildArch:	noarch
Prefix:		%{_prefix}
Requires:	drakxtools >= 10-34.2mdk

%description
Firmware for the Intel PRO/Wireless 3945 (IPW3945ABG) Wifi adapter.

%prep
%setup -q 

%build

%install
cd $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT/lib/firmware
install -m644 *.ucode $RPM_BUILD_ROOT/lib/firmware

%clean
rm -rf $RPM_BUILD_DIR/%{name}-%{version}
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc LICENSE.ipw3945-ucode
/lib/firmware/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20522 |21nr|iscan-nonfree-2.30.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define ver_data 1.39.1
%define ver_main 2.30.4
%define plugindir %(gimptool-2.0 --gimpplugindir 2> /dev/null)
%define oname iscan
%define _disable_lto 1
%define _disable_rebuild_configure 1
%global __provides_exclude libsane\\.so\\.1(.*)

Summary:	EPSON Image Scan! front-end for scanners and all-in-ones
Name:		%{oname}-nonfree
Version:	%{ver_main}
Release:	1
License:	GPLv2+ and AVASYSPL
Group:		System/Kernel and hardware
Url:		http://download.ebz.epson.net/dsc/search/01/search/?OSC=LX
Source0:	http://support.epson.net/linux/src/scanner/iscan/%{oname}_%{version}-2.tar.gz
Source1:	http://support.epson.net/linux/src/scanner/iscan/iscan-data_%{ver_data}-2.tar.gz
Source2:	epkowa.conf
Source100:	%{name}.rpmlintrc
# PATCH-FIX-UPSTREAM libpng15.patch (export from arch) -- Build iscan against libpng15 by giovanni
Patch0:		libpng15.patch
Patch1:		jpegstream.patch
# PATCH-FIX-UPSTREAM -- https://bugs.gentoo.org/692708
Patch2:		iscan-2.30.4.2-sscanf.patch
Patch3:		iscan-2.30.4.2-c99.patch
BuildRequires:	gettext
BuildRequires:	jpeg-devel
BuildRequires:	libtool
BuildRequires:	libtool-devel
BuildRequires:	systemd
BuildRequires:	pkgconfig(gimp-2.0)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(libpng16)
BuildRequires:	pkgconfig(libtiff-4)
BuildRequires:	pkgconfig(libusb-1.0)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	pkgconfig(udev)
Requires:	%{name}-data
Conflicts:	sane-backends-iscan
ExclusiveArch:	%{x86_64}

%description
Image Scan! is a graphical scanner utility for people that do not need all
the bells and whistles provided by several of the other utilities out there
(xsane, QuiteInsane, Kooka).

At the moment it only supports SEIKO EPSON scanners and all-in-ones.
However, the scanner driver it provides can be used by any other SANE
standard compliant scanner utility.

Note that several scanners require a non-free plugin before they can be
used with this software

%files -f %{oname}.lang
%doc NEWS README AUTHORS COPYING
%doc non-free/COPYING.*.txt
%doc doc/xinetd.sane
%dir %{_sysconfdir}/sane.d
%dir %{_sysconfdir}/sane.d/dll.d
%config %{_sysconfdir}/sane.d/epkowa.conf
%config %{_sysconfdir}/sane.d/dll.d/epkowa.conf
%{_bindir}/%{oname}
%{_bindir}/%{oname}-registry
%{_libdir}/libesmod.so*
%{_libdir}/sane/libsane-epkowa.so*
%{_libdir}/gimp/2.0/plug-ins/iscan
%{_mandir}/man1/iscan.1.*
%{_mandir}/man5/sane-epkowa.5.*
%{_mandir}/man8/iscan-registry.8.*

#----------------------------------------------------------------------------

%package data
Summary:	Image Scan! for Linux data files
Version:	%{ver_data}
Group:		System/Kernel and hardware
Requires:	xsltproc
BuildArch:	noarch

%description data
Provides the necessary support files for Image Scan! for Linux, including
device information and policy file generation logic.

Image Scan! for Linux will not function without this package.

%files data
%doc %{oname}-data-%{ver_data}/COPYING
%doc %{oname}-data-%{ver_data}/NEWS
%doc %{oname}-data-%{ver_data}/KNOWN-PROBLEMS
%doc %{oname}-data-%{ver_data}/SUPPORTED-DEVICES
%{_prefix}/lib/iscan-data
%{_datadir}/iscan-data
%{_udevhwdbdir}/%{oname}-data.hwdb

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{ver_main}
%setup -q -D -T -a 1 -n %{oname}-%{ver_main}

%patch0
%patch1 -p2
%patch2 -p1
%patch3 -p1

# Fix for CXX ABI different than 1002 (export from arch)
ln -s libesmod-x86_64.c2.so non-free/libesmod-x86_64.so

%build
# Build iscan
#touch aclocal.m4
#autoreconf -fiv
#./bootstrap
export CFLAGS="$(echo %{optflags} | sed 's/\-fstack-clash-protection//')"
export CXXFLAGS="${CFLAGS}"
export LDFLAGS="${LDFLAGS} -ldl -lpng16"
%configure \
  --sbindir=%{_bindir} \
  --enable-dependency-reduction \
  --enable-frontend \
  --enable-jpeg \
  --enable-tiff \
  --enable-png \
  --enable-gimp \
  --enable-static=no

%make

# Build data
cd %{oname}-data-%{ver_data}
%configure --libdir="%{_prefix}/lib"
%make
%make %{oname}-data.hwdb

%install
# iscan: install files
make DESTDIR=%{buildroot} install %{?_smp_mflags}
install -d %{buildroot}%{plugindir}/plug-ins
ln -s %{_bindir}/iscan %{buildroot}%{_libdir}/gimp/2.0/plug-ins/iscan
install -D -m 0644 backend/epkowa.conf %{buildroot}%{_sysconfdir}/sane.d/epkowa.conf
install -D -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/sane.d/dll.d/epkowa.conf

find %{buildroot} \( -name \*.la -o -name \*.so  \) -exec rm {} \;

%find_lang %{oname}

# data: install files
cd %{oname}-data-%{ver_data}
make DESTDIR=%{buildroot} install %{?_smp_mflags}

install -D -m 0644 %{oname}-data.hwdb %{buildroot}/%{_udevhwdbdir}/%{oname}-data.hwdb

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20523 |21nr|iwlwifi-3945-ucode-15.32.2.9-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Intel PRO/Wireless 3945ABG/BG microcode
Name: iwlwifi-3945-ucode
Epoch: 1
Version: 15.32.2.9
Release: 3
Source0: http://www.intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-%{version}.tgz
Source1: http://www.intellinuxwireless.org/iwlwifi/downloads/iwlwifi-3945-ucode-15.28.1.8.tgz
License: Proprietary
Group: System/Kernel and hardware
Url: http://intellinuxwireless.org/
BuildArch: noarch

%description
The file iwlwifi-3945-*.ucode provided in this package is required to be
present on your system in order for the Intel PRO/Wireless 3945ABG/BG Network
Connection Adapter driver for Linux (iwl3945) to be able to operate
on your system.

%prep
%setup -q -a 1

# provide old firmware with ucode_api=1 for compatibility with older kernels
cp iwlwifi-3945-ucode-15.28.1.8/iwlwifi-3945-1.ucode .
cp iwlwifi-3945-ucode-15.28.1.8/README.iwlwifi-3945-ucode \
   README.iwlwifi-3945-ucode-1
mv README.iwlwifi-3945-ucode README.iwlwifi-3945-ucode-2

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}/lib/firmware
install -m644 *.ucode %{buildroot}/lib/firmware/

%clean
rm -rf %{buildroot}

%files
%defattr(0644,root,root,0755)
%doc LICENSE.* README.*
/lib/firmware/*.ucode

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20524 |21nr|iwlwifi-4965-ucode-228.61.2.24-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary: Intel Wireless WiFi Link 4965AGN microcode
Name: iwlwifi-4965-ucode
Version: 228.61.2.24
Release: 3
Source0: http://www.intellinuxwireless.org/iwlwifi/downloads/%{name}-%{version}.tgz
Source1: http://www.intellinuxwireless.org/iwlwifi/downloads/iwlwifi-4965-ucode-228.57.1.21.tgz
License: Proprietary
Group: System/Kernel and hardware
Url: http://intellinuxwireless.org/
BuildArch: noarch

%description
The files iwlwifi-4965-*.ucode provided in this package are required to be
present on your system in order for the Intel Wireless WiFi Link 4965AGN
driver for Linux (iwl4965/iwlagn) to be able to operate on your system.

%prep
%setup -q -a 1

# provide old firmware with ucode_api=1 for compatibility with older kernels
cp iwlwifi-4965-ucode-228.57.1.21/iwlwifi-4965-1.ucode .
cp iwlwifi-4965-ucode-228.57.1.21/README.iwlwifi-4965-ucode \
   README.iwlwifi-4965-ucode-1
mv README.iwlwifi-4965-ucode README.iwlwifi-4965-ucode-2

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}/lib/firmware
install -m644 *.ucode %{buildroot}/lib/firmware/

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc LICENSE.* README.*
/lib/firmware/*.ucode

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20525 |21nr|java3d-1.5.2-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		java3d
Version:	1.5.2
Release:	6
Summary:	The Java 3D API
Group:		Development/Java
License:	BSD, GPL
URL:		https://java3d.java.net/
# svn export https://svn.java.net/svn/j3d-core~svn/tags/rel-1_5_2-fcs j3d-core-1.5.2
# tar czf j3d-core-1.5.2-src-svn.tar.gz j3d-core
Source0:	j3d-core-%{version}-src-svn.tar.gz
# http://java.net/projects/j3d-core-utils
# svn export https://svn.java.net/svn/j3d-core-utils~svn/tags/rel-1_5_2-fcs j3d-core-utils
# tar czf j3d-core-utils-1.5.2-src-svn.tar.gz j3d-core-utils
Source1:	j3d-core-utils-%{version}-src-svn.tar.gz
# svn export https://svn.java.net/svn/j3d-optional-utils~svn/tags/rel-1_5_2-fcs j3d-optional-utils
# tar czf j3d-optional-utils-1.5.2-src-svn.tar.gz j3d-optional-utils
Source4:	j3d-optional-utils-%{version}-src-svn.tar.gz
# svn export https://svn.java.net/svn/j3d-examples~svn/tags/rel-1_5_2-fcs j3d-examples
# tar czf j3d-examples-1.5.2-src-svn.tar.gz j3d-examples
Source5:	j3d-examples-%{version}-src-svn.tar.gz
Patch0:		01_fix_powerpc_ftbfs.patch
Patch1:		02_fix_generic_ftbfs.patch
Patch2:		03_fix_ia64_ftbfs.patch
Patch3:		04_no_maxmemory.patch
Patch4:		05_pic_amd64.patch
Patch5:		05_pic_i586.patch
Patch6:		06_java-compat.patch

BuildRequires:	ant
BuildRequires:	ant-junit
BuildRequires:	glibc-devel
BuildRequires:	java-devel
BuildRequires:	jogl
BuildRequires:	jpackage-utils
BuildRequires:	junit
BuildRequires:	junit4
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)
BuildRequires:	vecmath
BuildRequires:	xerces-j2
BuildRequires:	xml-commons-apis
BuildRequires:	java-rpmbuild

Requires:	java
Requires:	jpackage-utils

Provides:	j3dcore == %{version}
Provides:	j3dutils == %{version}

%description
The Java 3D API provides a set of object-oriented interfaces that
support a simple, high-level programming model you can use to
build, render, and control the behavior of 3D objects and visual
environments. With the Java 3D API, you can incorporate high quality,
scalable, platform-independent 3D graphics into applications andvecmath
applets based on Java technology.

%files
%doc j3d-core/*.txt j3d-core/*.html j3d-core/docs
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/j3dcore-%{version}.jar
%{_javadir}/%{name}/j3dcore.jar
%{_javadir}/%{name}/j3dutils-%{version}.jar
%{_javadir}/%{name}/j3dutils.jar
%{_libdir}/libj3dcore-ogl.so

#-------------------------------------------------------------------------

%package examples
# http://java.net/projects/j3d-examples
Summary:	Java 3D Example Programs
Group:		Development/Java
Requires:	%{name} = %{version}-%{release}
Requires:	jpackage-utils

%description examples
The Java 3D API.

This package contains Java 3D Example Programs.

%files examples
%doc j3d-examples/*.txt j3d-examples/*.html
%{_javadir}/%{name}/j3d-examples.jar

#-------------------------------------------------------------------------

%package optional-utils
# http://java.net/projects/j3d-optional-utils
Summary:	Java 3D Optional Utilities
Group:		Development/Java
Requires:	%{name} = %{version}-%{release}
Requires:	jpackage-utils

%description optional-utils
The Java 3D API.

This package contains Java 3D Optional Utilities.

#%files optional-utils
#%doc j3d-optional-utils/*.txt j3d-optional-utils/joalmixer/README.txt
#%{_javadir}/%{name}/joalmixer.jar

#-------------------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java
Requires:	%{name} = %{version}-%{release}
Requires:	jpackage-utils

%description javadoc
The Java 3D API.

This package contains javadoc for %{name}

%files javadoc
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

#-------------------------------------------------------------------------

%prep
%setup -q -T -c -n %{name}-%{version}
# core
tar xf %{SOURCE0}
# core-utils
tar xf %{SOURCE1}
# optional-utils
#tar xf %{SOURCE4}
# examples
tar xf %{SOURCE5}

%apply_patches

for j in $(find . -name "*.jar"); do
  mv $j $j.no
done

for c in $(find . -name "*.class"); do
  rm -f $c
done

%build
export ANT_OPTS=-Xmx256m
export CLASSPATH=$PWD/j3d-core/build/default/opt/lib/ext/j3dcore.jar:junit.jar:%{_datadir}/java/vecmath.jar

pushd j3d-core
	%ant \
	-Dant.javadoc.maxmemory=512m \
	-Dbuild.type=stable \
	jar-opt docs-public
popd

# TODO require JOAL http://java.net/projects/joal/ and OpenAL
#pushd j3d-optional-utils
#	%ant dist
#popd

CLASSPATH=$CLASSPATH:$PWD/j3d-core/build/default/opt/lib/ext/j3dutils.jar
pushd j3d-examples
	%ant all
popd


%install
mkdir -p %{buildroot}%{_javadir}/%{name}
mkdir -p %{buildroot}%{_libdir}

install -m 644 j3d-core/build/default/opt/lib/ext/j3dcore.jar \
    %{buildroot}%{_javadir}/%{name}/j3dcore-%{version}.jar
install -m 644 j3d-core/build/default/opt/lib/ext/j3dutils.jar \
    %{buildroot}%{_javadir}/%{name}/j3dutils-%{version}.jar
#install -m 644 j3d-optional-utils/joalmixer/build/lib/ext/joalmixer.jar\
#    %{buildroot}%{_javadir}/java3d/
install -m 644 j3d-examples/dist/j3d-examples.jar \
    %{buildroot}%{_javadir}/%{name}/

(
  cd %{buildroot}%{_javadir}/%{name}
  for jar in *-%{version}*; do
    ln -sf ${jar} ${jar/-%{version}/}
  done
)

# TODO build libj3dcore-ogl-cg.so require NVDIA CG Toolkit
install -m 755 j3d-core/build/default/opt/native/libj3dcore-ogl.so \
    %{buildroot}%{_libdir}/libj3dcore-ogl.so

mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a j3d-core/build/*/javadocs/docs-public/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20526 |21nr|java3d-1.5.2-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Name:		java3d
Version:	1.5.2
Release:	8
Summary:	The Java 3D API
Group:		Development/Java
License:	BSD, GPL
URL:		https://java3d.java.net/
# svn export https://svn.java.net/svn/j3d-core~svn/tags/rel-1_5_2-fcs j3d-core-1.5.2
# tar czf j3d-core-1.5.2-src-svn.tar.gz j3d-core
Source0:	j3d-core-%{version}-src-svn.tar.gz
# http://java.net/projects/j3d-core-utils
# svn export https://svn.java.net/svn/j3d-core-utils~svn/tags/rel-1_5_2-fcs j3d-core-utils
# tar czf j3d-core-utils-1.5.2-src-svn.tar.gz j3d-core-utils
Source1:	j3d-core-utils-%{version}-src-svn.tar.gz
# svn export https://svn.java.net/svn/j3d-optional-utils~svn/tags/rel-1_5_2-fcs j3d-optional-utils
# tar czf j3d-optional-utils-1.5.2-src-svn.tar.gz j3d-optional-utils
Source4:	j3d-optional-utils-%{version}-src-svn.tar.gz
# svn export https://svn.java.net/svn/j3d-examples~svn/tags/rel-1_5_2-fcs j3d-examples
# tar czf j3d-examples-1.5.2-src-svn.tar.gz j3d-examples
Source5:	j3d-examples-%{version}-src-svn.tar.gz
Patch0:		01_fix_powerpc_ftbfs.patch
Patch1:		02_fix_generic_ftbfs.patch
Patch2:		03_fix_ia64_ftbfs.patch
Patch3:		04_no_maxmemory.patch
Patch4:		05_pic_amd64.patch
Patch5:		05_pic_i586.patch
Patch6:		06_java-compat.patch

BuildRequires:	ant
BuildRequires:	ant-junit
BuildRequires:	glibc-devel
BuildRequires:	java-devel
BuildRequires:	jogl
BuildRequires:	jpackage-utils
BuildRequires:	junit
BuildRequires:	junit4
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libnsl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
BuildRequires:	pkgconfig(xt)
BuildRequires:	vecmath
BuildRequires:	xerces-j2
BuildRequires:	xml-commons-apis
BuildRequires:	java-rpmbuild

# Java stack is not supported on x86_32, jogl not build on arm
ExcludeArch: %{ix86} aarch64

Requires:	java
Requires:	jpackage-utils

Provides:	j3dcore == %{version}
Provides:	j3dutils == %{version}

%description
The Java 3D API provides a set of object-oriented interfaces that
support a simple, high-level programming model you can use to
build, render, and control the behavior of 3D objects and visual
environments. With the Java 3D API, you can incorporate high quality,
scalable, platform-independent 3D graphics into applications andvecmath
applets based on Java technology.

%files
%doc j3d-core/*.txt j3d-core/*.html j3d-core/docs
%dir %{_javadir}/%{name}
%{_javadir}/%{name}/j3dcore-%{version}.jar
%{_javadir}/%{name}/j3dcore.jar
%{_javadir}/%{name}/j3dutils-%{version}.jar
%{_javadir}/%{name}/j3dutils.jar
%{_libdir}/libj3dcore-ogl.so

#-------------------------------------------------------------------------

%package examples
# http://java.net/projects/j3d-examples
Summary:	Java 3D Example Programs
Group:		Development/Java
Requires:	%{name} = %{version}-%{release}
Requires:	jpackage-utils

%description examples
The Java 3D API.

This package contains Java 3D Example Programs.

%files examples
%doc j3d-examples/*.txt j3d-examples/*.html
%{_javadir}/%{name}/j3d-examples.jar

#-------------------------------------------------------------------------

%package optional-utils
# http://java.net/projects/j3d-optional-utils
Summary:	Java 3D Optional Utilities
Group:		Development/Java
Requires:	%{name} = %{version}-%{release}
Requires:	jpackage-utils

%description optional-utils
The Java 3D API.

This package contains Java 3D Optional Utilities.

#%files optional-utils
#%doc j3d-optional-utils/*.txt j3d-optional-utils/joalmixer/README.txt
#%{_javadir}/%{name}/joalmixer.jar

#-------------------------------------------------------------------------

%package javadoc
Summary:	Javadoc for %{name}
Group:		Development/Java
Requires:	%{name} = %{version}-%{release}
Requires:	jpackage-utils

%description javadoc
The Java 3D API.

This package contains javadoc for %{name}

%files javadoc
%{_javadocdir}/%{name}-%{version}
%{_javadocdir}/%{name}

#-------------------------------------------------------------------------

%prep
%setup -q -T -c -n %{name}-%{version}
# core
tar xf %{SOURCE0}
# core-utils
tar xf %{SOURCE1}
# optional-utils
#tar xf %{SOURCE4}
# examples
tar xf %{SOURCE5}

%apply_patches

for j in $(find . -name "*.jar"); do
  mv $j $j.no
done

for c in $(find . -name "*.class"); do
  rm -f $c
done

%build
export ANT_OPTS=-Xmx256m
export CLASSPATH=$PWD/j3d-core/build/default/opt/lib/ext/j3dcore.jar:junit.jar:%{_datadir}/java/vecmath.jar

pushd j3d-core
	%ant \
	-Dant.javadoc.maxmemory=512m \
	-Dbuild.type=stable \
	jar-opt docs-public
popd

# TODO require JOAL http://java.net/projects/joal/ and OpenAL
#pushd j3d-optional-utils
#	%ant dist
#popd

CLASSPATH=$CLASSPATH:$PWD/j3d-core/build/default/opt/lib/ext/j3dutils.jar
pushd j3d-examples
	%ant all
popd


%install
mkdir -p %{buildroot}%{_javadir}/%{name}
mkdir -p %{buildroot}%{_libdir}

install -m 644 j3d-core/build/default/opt/lib/ext/j3dcore.jar \
    %{buildroot}%{_javadir}/%{name}/j3dcore-%{version}.jar
install -m 644 j3d-core/build/default/opt/lib/ext/j3dutils.jar \
    %{buildroot}%{_javadir}/%{name}/j3dutils-%{version}.jar
#install -m 644 j3d-optional-utils/joalmixer/build/lib/ext/joalmixer.jar\
#    %{buildroot}%{_javadir}/java3d/
install -m 644 j3d-examples/dist/j3d-examples.jar \
    %{buildroot}%{_javadir}/%{name}/

(
  cd %{buildroot}%{_javadir}/%{name}
  for jar in *-%{version}*; do
    ln -sf ${jar} ${jar/-%{version}/}
  done
)

# TODO build libj3dcore-ogl-cg.so require NVDIA CG Toolkit
install -m 755 j3d-core/build/default/opt/native/libj3dcore-ogl.so \
    %{buildroot}%{_libdir}/libj3dcore-ogl.so

mkdir -p %{buildroot}%{_javadocdir}/%{name}-%{version}
cp -a j3d-core/build/*/javadocs/docs-public/* %{buildroot}%{_javadocdir}/%{name}-%{version}
ln -s %{name}-%{version} %{buildroot}%{_javadocdir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20527 |21nr|jsmath-fonts-3.0-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		jsmath-fonts
Version:	3.0
Release:	3
License:	Freeware
Summary:	jsMath TrueType fonts
Group:		System/Fonts/True type 

Source:		http://www.math.union.edu/~dpvc/jsMath/download/TeX-fonts-linux.tgz
BuildArch:	noarch
URL:		http://www.math.union.edu/~dpvc/jsMath/download/jsMath-fonts.html

%description
The jsMath package is designed to work best if you have installed the TeX
font set. This package provides a set of TeX ttf fonts for Linux systems.

%prep
%setup -q -n TeX-fonts-linux

%build

%install
mkdir -p %{buildroot}%{_datadir}/fonts/jsMath
install -m644 *.ttf %{buildroot}%{_datadir}/fonts/jsMath

%clean
rm -rf %{buildroot}

%files
%defattr (-,root,root)
%dir %{_datadir}/fonts/jsMath
%{_datadir}/fonts/jsMath/*.ttf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20528 |21nr|kant-kash-3-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define		kashdir			%{_datadir}/kash

Name:		kant-kash
Group:		Sciences/Mathematics
License:	Proprietary
Summary:	Computational Algebraic Number Theory
Version:	3
Release:	4
Source0:	ftp://ftp.math.tu-berlin.de/pub/algebra/Kant/Kash_3/KASH3-Linux-i686-2008-07-31.tar.bz2
URL:		http://www.math.tu-berlin.de/~kant/kash.html
ExclusiveArch:	%{ix86}

%description
KANT is a software package for mathematicians interested in algebraic number
theory. For those KANT is a tool for sophisticated computations in number
fields, in global function fields, and in local fields.

%prep
%setup -q -n KASH3-Linux-i686-2008-07-31

%build

%install
mkdir -p %{buildroot}%{kashdir}
cp -far * %{buildroot}%{kashdir}
# non-standard/incomplete
rm -fr %{buildroot}%{kashdir}/html/cgi-bin

mkdir -p  %{buildroot}%{_bindir}
pushd  %{buildroot}%{_bindir}
    cat > %{buildroot}%{_bindir}/kash3 << EOF
#!/bin/sh

%{kashdir}/kash3 -l %{kashdir}/lib "\$@"
EOF
    chmod +x %{buildroot}%{_bindir}/kash3
    ln -s kash3 kash
popd

%files
%{_bindir}/*
%dir %{kashdir}
%{kashdir}/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20529 |21nr|kega-fusion-363x-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define oname Fusion

Summary:	Sega Genesis/32X/Master System/CD/SG-1000/Pico Emulator
Name:		kega-fusion
Version:	363x
Release:	5
License:	Freeware
Group:		Emulators
Url:		http://www.eidolons-inn.net/tiki-index.php?page=Kega
Source0:	%{oname}%{version}.tar.gz
Source1:	%{oname}.png
BuildRequires:	imagemagick
BuildRequires:	upx
Requires:	libpango-modules1.0
ExclusiveArch:	%{ix86}

%description
Kega Fusion is a Sega SG1000, SC3000, SF7000, Master System, Game Gear,
Genesis/Megadrive, SVP, Pico, SegaCD/MegaCD and 32X emulator.

Requires BIOS ROMs for Sega CD and 32X.

%files
%doc History.txt Readme.txt
%{_bindir}/%{name}
%{_iconsdir}/*.png
%{_miconsdir}/*.png
%{_liconsdir}/*.png
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}

%build
upx -d %{oname}

%install
# install section
install -D -m 755 %{oname} %{buildroot}%{_bindir}/%{name}

#Icons
mkdir -p %{buildroot}%{_datadir}/pixmaps/
install -c -m 644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

mkdir -p %{buildroot}/%{_miconsdir}
mkdir -p %{buildroot}/%{_liconsdir}
mkdir -p %{buildroot}/%{_iconsdir}

install -m 644 %{SOURCE1} %{buildroot}/%{_miconsdir}/%{name}.png
install -m 644 %{SOURCE1} %{buildroot}/%{_iconsdir}/%{name}.png
install -m 644 %{SOURCE1} %{buildroot}/%{_liconsdir}/%{name}.png
convert %{buildroot}%{_miconsdir}/%{name}.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
convert %{buildroot}%{_iconsdir}/%{name}.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png

# install menu entries
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=%{name}
Comment=Sega Genesis/32X/Master System/CD/SG-1000/Pico Emulator
Exec=%{name}
Icon=%{name}
Type=Application
Terminal=false
Categories=Game;Emulator;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20530 |21nr|kegs-0.91-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Apple IIgs emulator
Name:		kegs
Version:	0.91
Release:	1
License:	COPYRIGHT
Group:		Emulators
Source0:	%{name}.%{version}.tar.gz
Patch0:		%{name}.%{version}.dif
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)

%description
Requires ROM and disk images to work.

%files
%{_bindir}/xkegs
%{_datadir}/%{name}/config.kegs

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}.%{version}
%patch0 -p0

%build
# build section
cd src
rm -f vars
cat <<EOT >vars
TARGET = xkegs
OBJECTS = \$(OBJECTS1) xdriver.o
CCOPTS = %{optflags}
%ifarch %{ix86} x86_64 %{arm}
OPTS = -DKEGS_LITTLE_ENDIAN -DNDEBUG
%else
OPTS = -DNDEBUG
%endif
SUFFIX =
NAME = xkegs
LDFLAGS =
LDOPTS =
LD = \$(CC)
EXTRA_LIBS = -lXext
EXTRA_SPECIALS =

AS = cc
PERL = perl

XOPTS =
EOT

%make

%install
# install section
install -D -m 755 xkegs %{buildroot}%{_bindir}/xkegs
install -D -m 644 config.kegs %{buildroot}%{_datadir}/%{name}/config.kegs

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20531 |21nr|libspotify-12.1.51-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define lib_major	12
%define lib_name	%mklibname spotify %{lib_major}
%define develname	%mklibname -d spotify

%define debug_package %{nil}

Summary: Library to write applications that utilize the Spotify music streaming service
Name: libspotify
Version: 12.1.51
Release: 7
%ifarch %{ix86}
Source0: https://developer.spotify.com/download/libspotify/libspotify-%{version}-Linux-i686-release.tar.gz
%else
Source0: https://developer.spotify.com/download/libspotify/libspotify-%{version}-Linux-x86_64-release.tar.gz
%endif
License: Proprietary
Group: System/Libraries
Url: https://developer.spotify.com/technologies/libspotify/
ExclusiveArch: %{ix86} x86_64

%description
The libspotify C API package allows third-party developers to write
applications that utilize the Spotify music streaming service.

%package -n %{lib_name}
Summary:	Dynamic libraries for spotify
Group:		System/Libraries

%description -n %{lib_name}
The libspotify C API package allows third-party developers to write
applications that utilize the Spotify music streaming service.

%package doc
Summary:        Documentation of the spotify library
Group:          Development/C
BuildArch: noarch

%description doc
Documentation of the spotify library.

%package -n %{develname}
Summary:	Development files for spotify
Group:		Development/C
Provides:	%{name}-devel = %{version}-%{release}
Requires:	%{lib_name} = %{version}
Obsoletes:	%{name}-devel < %{version}

%description -n %{develname}
Files needed in order to develop applications using spotify.

%prep
%ifarch %{ix86}
%setup -q -n %{name}-%{version}-Linux-i686-release
%else
%setup -q -n %{name}-%{version}-Linux-x86_64-release
%endif

%build

%install
mkdir -p %{buildroot}%{_libdir} %{buildroot}%{_includedir} %{buildroot}%{_datadir}
%ifarch x86_64
sed -i 's%/lib%/lib64%' lib/pkgconfig/%{name}.pc
%endif
cp -r lib/* %{buildroot}%{_libdir}
cp -r include/* %{buildroot}%{_includedir}
cp -r share/* %{buildroot}%{_datadir}
cp ChangeLog LICENSE licenses.xhtml Makefile README %{buildroot}%{_docdir}/%{name}

%files -n %{lib_name}
%{_libdir}/*.so.%{lib_major}*

%files -n %{develname}
%dir %{_includedir}/%{name}
%{_includedir}/%{name}/*
%{_libdir}/pkgconfig/*
%{_libdir}/*.so

%files doc
%dir %{_docdir}/%{name}
%doc %{_docdir}/%{name}/*
%doc %{_datadir}/man3

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20532 |21nr|lie-2.2.2-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Interactive computations of a Lie group theoretic nature
Name:		lie
Version:	2.2.2
Release:	4
# No license file, and apparently only available from sagemath.org
# as the documented homepage neither ftp server directory exist anymre
License:	Freeware
Group:		Sciences/Mathematics
Url:	http://www.sagemath.org
Source0:	http://www.sagemath.org/packages/optional/%{name}-%{version}.p3.spkg
BuildRequires:	bison
BuildRequires:	readline-devel
BuildRequires:	pkgconfig(ncurses)

%description
LiE purpose is to enable mathematicians and physicists to obtain on-line
information as well as to interactively perform computations of a Lie group
theoretic nature. It focuses on the representation theory of complex semisimple
(reductive) Lie groups and algebras, and on the structure of their Weyl
groups and root systems. The basic objects of computation are vectors and
matrices with integer entries, and polynomials with integral coefficients.
These objects are used to represent weights, (sets of) roots, characters and
similar objects relating to Lie groups and algebras. LiE does not compute
directly with elements of the Lie groups and algebras themselves, but the
computations may be parametrised by the type of the Lie group or algebra for
which they should be performed.

%files
%doc src/manual/manual.dvi
%{_bindir}/lie
%dir %{_datadir}/lie
%{_datadir}/lie/*

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}-%{version}.p3

%build
pushd src
make CFLAGS="%{optflags}"
popd

%install
pushd src
for dir in progs gapfiles; do
    mkdir -p %{buildroot}/%{_datadir}/lie/$dir
    cp -fa $dir/* %{buildroot}/%{_datadir}/lie/$dir
done

cp -fa INFO* LEARN* %{buildroot}/%{_datadir}/lie
cp -fa Lie.exe %{buildroot}/%{_datadir}/lie

mkdir -p %{buildroot}%{_bindir}

cat > %{buildroot}%{_bindir}/lie << EOF
#!/bin/sh

LD=%{_datadir}/lie
exec \$LD/Lie.exe initfile \$LD
EOF

chmod +x %{buildroot}%{_bindir}/lie
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20533 |21nr|lphdisk-0.9.1-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Format Phoenix NoteBIOS hibernation partitions under Linux
Name:		lphdisk
Version:	0.9.1
Release:	7
License:	Artistic
Group:		System/Kernel and hardware
Url:		http://www.procyon.com/~pda/lphdisk
Source0:	http://www.procyon.com/~pda/lphdisk/%{name}-%{version}.tar.bz2
Patch0:		lphdisk-0.9.1-debian.patch
Patch1:		lphdisk-0.9.1-lrmi.patch
ExclusiveArch:	%{ix86}

%description
lphdisk is a linux reimplementation of the PHDISK.EXE (DOS) utility provided
with most Phoenix NoteBIOS-equipped laptop models.  It will properly format a
NoteBIOS hibernation partition (type A0) to make it usable by the BIOS for
suspending to disk, avoiding the need to use buggy and outdated DOS utilities
to perform this configuration step.

PLEASE NOTE: this is a very old tool for very old laptops. Unless you're very
sure you need it...you probably don't. Move along, nothing to see here.

%files
%doc ChangeLog CREDITS LICENSE NEWS README TODO
%{_sbindir}/lphdisk
%{_mandir}/man8/lphdisk.8*

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1 -b .debian
%patch1 -p1 -b .lrmi

%build
%make

%install
mkdir -p %{buildroot}%{_mandir}/man8
mkdir -p %{buildroot}%{_sbindir}

install -m 755 lphdisk %{buildroot}%{_sbindir}
install -m 644 lphdisk.8 %{buildroot}%{_mandir}/man8

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20534 |21nr|master-pdf-editor-5.9.85-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global debug_package %{nil}
%global __provides_exclude .so|devel
%global __requires_exclude .so|devel

%define major %(echo %{version} |cut -d. -f1)

Summary:	PDF Editor
Name:		master-pdf-editor
Version:	5.9.85
Release:	1
License:	Proprietary
Group:		Office
Url:		https://code-industry.ru/get-master-pdf-editor-for-linux
Source0:	https://code-industry.ru/public/%{name}-%{version}-qt5.x86_64-ocr.rpm
Source1:	https://code-industry.ru/public/%{name}-%{version}-qt5.arm64-astra-ocr.deb
Source100:	%{name}.rpmlintrc
Requires:	%{_lib}qt5concurrent5
Recommends:	%{name}-ocr = %{EVRD}
ExclusiveArch:	x86_64 aarch64

%description
Master PDF Editor is the optimal solution for PDF 
files editing in Linux. It enables you to create,
edit, view, encrypt, sign and print interactive
PDF documents.

%files
%license license*.txt
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/masterpdfeditor%{major}.png
/opt/%{name}-%{major}/*
%optional %{_sysconfdir}/digsig
%exclude /opt/%{name}-%{major}/help

#----------------------------------------------------------------------------

%package ocr
Summary:	Offline ocr part of Master PDF Editor
Group:		Office

%description ocr
Master PDF Editor is the optimal solution for PDF 
files editing in Linux. It enables you to create,
edit, view, encrypt, sign and print interactive
PDF documents.

%files ocr
%{_datadir}/masterpdfeditor
/opt/%{name}-%{major}/help

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -c -T
%ifarch x86_64
rpm2cpio %{SOURCE0} |cpio -idV --quiet
%else
ar p %{SOURCE1} data.tar.xz |unxz |tar x
%endif

%build

%install
cp -rf * %{buildroot}
mkdir -p %{buildroot}%{_bindir}

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Type=Application
Name=Master PDF Editor
Comment=Edit PDF files
Comment[ru]=Редактирование PDF файлов
Exec=/opt/%{name}-%{major}/masterpdfeditor%{major} %f
Icon=masterpdfeditor%{major}
Path=/opt/%{name}-%{major}
NoDisplay=false
StartupNotify=true
Terminal=false
Categories=Qt;KDE;Graphics;Office;Viewer;
MimeType=application/pdf;application/x-bzpdf;application/x-gzpdf;
X-KDE-SubstituteUID=false
EOF

cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh
/opt/%{name}-%{major}/masterpdfeditor%{major}
EOF
chmod +x %{buildroot}%{_bindir}/%{name}

cp %{buildroot}/opt/%{name}-%{major}/license*.txt ./
rm -f %{buildroot}%{_datadir}/applications/masterpdfeditor%{major}.desktop
rm -f %{buildroot}/opt/%{name}-%{major}/*.desktop
rm -f %{buildroot}/opt/%{name}-%{major}/license*.txt

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20535 |21nr|mccgdi-2.0.10-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Proprietary program - no debug info
%define debug_package %{nil}
# *.so symlinks, do not generate odd devel() reqs
%global __develgen_requires %{nil}

Name:		mccgdi
Version:	2.0.10
Release:	3
Group:		System/Printing
Summary:	Panasonic Multi-Function Station Printer
License:	Proprietary
URL:		https://panasonic.net/cns/pcc/support/fax/common/table/linuxdriver.html
Source0:	https://www.psn-web.net/cs/support/fax/common/file/Linux_PrnDriver/Driver_Install_files/mccgdi-%{version}-i686.tar.gz
Source1:	https://www.psn-web.net/cs/support/fax/common/file/Linux_PrnDriver/Driver_Install_files/mccgdi-%{version}-x86_64.tar.gz
Source2:	mccgdi.rpmlintrc
Patch0:		mccgdi-2.0.10-i686-destdir.patch
Patch1:		mccgdi-2.0.10-x86_64-destdir.patch
Requires:	cups
Requires:	cups-filters
# proprietary driver for scanners in the same MFPs
Recommends:	(panamfs-scan-sane if sane-backends)
BuildRequires:	cups
BuildRequires:	cups-filters
ExclusiveArch:	%{ix86} x86_64

%description
Panasonic Multi-Function Station Printer

%files
/usr/lib/cups/filter/L_H0JDGCZAZ
%{_libdir}/*.so*
%{_datadir}/panasonic-print
%{_datadir}/cups/model/panasonic
%{_datadir}/applications/*
# symlink to /usr/share/panasonic-print
/usr/local/share/panasonic

#----------------------------------------------------

%prep
# % setup -qTc
%ifarch %{ix86}
%setup -b0 -n %{name}-%{version}-i686
%patch0 -p1
%else
%setup -b1 -n %{name}-%{version}-x86_64
%patch1 -p1
%endif

%build

%install
mkdir -p %{buildroot}%{_libdir}/cups/filter
mkdir -p %{buildroot}/usr/lib

DESTDIR=%{buildroot} ./install-driver

%ifarch x86_64
mkdir -p %{buildroot}%{_libdir}
mv %{buildroot}/usr/lib/* %{buildroot}%{_libdir}/
mv %{buildroot}/usr/lib64/cups %{buildroot}/usr/lib/cups
%endif

sed %{buildroot}%{_datadir}/cups/model/panasonic/L_Panasonic-MB1600-gdi.ppd -e 's,1600,1900,g' > \
    %{buildroot}%{_datadir}/cups/model/panasonic/L_Panasonic-MB1900-gdi.ppd

# ELF blobs have hardcoded paths /usr/local/share/panasonic (27 symbols),
# change to /usr/share/print-panasonic (also 27 symbols)
find . -type f -print | xargs sed -i -e 's,/usr/local/share/panasonic,/usr/share/panasonic-print,g'
mv %{buildroot}/usr/share/panasonic %{buildroot}/usr/share/panasonic-print
# help it load its own library
sed -i -e 's,/usr/lib/%s.so.1,/usr/lib64/%s.so,g' %{buildroot}/usr/lib/cups/filter/L_H0JDGCZAZ

# What for is it setuid (4755)??
chmod 0755 %{buildroot}/usr/share/panasonic-print/printer/bin/L_H0JDUCZAZ

# What for is it 777??
chmod 755 %{buildroot}/usr/share/panasonic-print/printer/conf

chmod 644 %{buildroot}/usr/share/cups/model/panasonic/*.ppd \
          %{buildroot}/usr/share/panasonic-print/printer/data/*/*.RCT

# unfortunately, sed is not enough, proprietary blob continues to go into /usr/local
mkdir -p %{buildroot}/usr/local/share/
ln -s ../../share/panasonic-print %{buildroot}/usr/local/share/panasonic

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20536 |21nr|megacli-8.07.14-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package          %{nil}

%define up_name Linux_MegaCLI

Summary:	Manage SAS RAID controllers
Name:		megacli
Version:	8.07.14
Release:	1
License:	Commercial
Group:		System/Configuration/Hardware
URL:		http://www.lsi.com
Source0:	8-07-14_MegaCLI.zip
ExcludeArch:	%{armx}

%description
MegaCli is used to manage SAS RAID controllers.

%prep
%setup -q -n Linux
#unzip MegaCliLin.zip
rpm2cpio MegaCli-%{version}-1.noarch.rpm | cpio -id

%build

%install
export DONT_STRIP=1

install -d -m 755 %{buildroot}/sbin
%ifarch x86_64
install -m 755 opt/MegaRAID/MegaCli/MegaCli64 %{buildroot}/sbin/megacli
%else
install -m 755 opt/MegaRAID/MegaCli/MegaCli %{buildroot}/sbin/megacli
%endif

%files 
%doc ../%{version}_MegaCLI.txt
/sbin/megacli

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20537 |21nr|nautilus-dropbox-2020.03.04-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Dropbox extension for Nautilus
Name:		nautilus-dropbox
Version:	2020.03.04
Release:	1
License:	GPLv2+ and CC-BY-ND
Group:		Graphical desktop/GNOME
Url:		https://www.dropbox.com/install
Source0:	https://linux.dropbox.com/packages/%{name}-%{version}.tar.bz2
BuildRequires:	pkgconfig(libnautilus-extension)
BuildRequires:	pkgconfig(pygobject-3.0)
BuildRequires:	python3egg(docutils)
Requires:	dropbox
Requires:	nautilus

%description 
Dropbox extension for Nautilus.
It requires proprietary dropbox daemon that will be automatically downloaded
and installed.

%files
%doc AUTHORS COPYING
%{_datadir}/%{name}/*
%{_libdir}/nautilus/extensions-3.0/libnautilus-dropbox.so

#--------------------------------------------------------------------

%package -n dropbox
Summary:	Dropbox client daemon
Group:		Networking/File transfer
License:	GPLv2+
Requires:	python3-gobject3
Requires:	python3-gpgme
Requires:	wget
Conflicts:	%{name} < 1.6.1-2

%description -n dropbox
Command-line Dropbox client. Currently not all features are realised.
It requires proprietary dropbox daemon to operate. Run `dropbox start -i'
to download and install it automatically.

%files -n dropbox
%doc AUTHORS
%{_bindir}/dropbox
%{_datadir}/applications/dropbox.desktop
%{_iconsdir}/hicolor/*/*/*
%{_mandir}/man?/*

#--------------------------------------------------------------------

%prep
%setup -q


%build
%configure --disable-static
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20538 |21nr|nvidia410-410.104-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# (tpg) disable interall rpm dependency generator
# define _use_internal_dependency_generator 0

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define name		nvidia410

# When updating, please add new ids to ldetect-lst (merge2pcitable.pl)
%define version		410.104

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		x11-driver-video-%{drivername}
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin
# The entry in Cards+ this driver should be associated with, if there is
# no entry in ldetect-lst default pcitable:
# cooker ldetect-lst should be up-to-date
%define ldetect_cards_name	%nil

%define pkgname %{pkgname64}

# http://bugs.rosalinux.ru/show_bug.cgi?id=7791
%if %{mdvver} >= 201610
%bcond_without external_glvnd
%else
%bcond_with external_glvnd
%endif

# Other packages should not require any NVIDIA libraries, and this package
# should not be pulled in when libGL.so.1 is required
%if %{_use_internal_dependency_generator}
%define __noautoprov '(.*)\\.so(.*)|devel\\(libGL(.*)|devel\\(libEGL.*'
%define common_requires_exceptions libGLcore\\.so|libnv.*\\.so|libGL(.*)
%else
%define _provides_exceptions \\.so
%define common_requires_exceptions libGLcore\\.so\\|libnv.*\\.so
%endif

# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%if %{_use_internal_dependency_generator}
%define __noautoreq '%{common_requires_exceptions}|lib.*so\\.[^(]+(\\([^)]+\\))?$'
%else
%define __noautoreq %{common_requires_exceptions}\\|lib.*so\\.[^(]\\+\\(([^)]\\+)\\)\\?$
%endif

# (anssi) Workaround wrong linking as of 310.19.
# This will probably be fixed soon (at least similar issues have been in the past).
# https://devtalk.nvidia.com/default/topic/523762/libnvidia-encode-so-310-19-has-dependency-on-missing-library/
%define _exclude_files_from_autoreq libnvidia-encode.so.%version

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		%{name}
Version:	%{version}
Release:	2

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2

Source100:	%{name}.rpmlintrc
Source101:	README.urpmi

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	x86_64

BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives >= 1.9.0
Requires(postun): update-alternatives >= 1.9.0
Requires:	x11-server-common
Suggests:	%{drivername}-doc-html = %{version}
# Proper support for versioned kmod() was added in 2008.1:
Requires:	kmod(%{modulename}) = %{version}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1

Requires:	ldetect-lst >= 0.2

%if %{with external_glvnd}
Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles
# ldconfig -X in the post script must see these libraries installed:
Requires(post):	%{_lib}glvnd-glx
Requires(post):	%{_lib}glvnd-egl
Requires(post):	%{_lib}glvnd-gles

# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Requires:	libgldispatch0
Requires:	libopengl0
Requires:	libglvnd-glx
Requires:	libglvnd-egl
Requires:	libglvnd-gles
# ldconfig -X in the post script must see these libraries installed:
Requires(post):	libglvnd-glx
Requires(post):	libglvnd-egl
Requires(post):	libglvnd-gles
%endif

Provides:	nvidia = %{version}-%{release}

Conflicts:	nvidia-current-cuda-opencl <= 295.59-1
Conflicts:	nvidia-current
Conflicts:	x11-driver-video-nvidia-current
Suggests:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

Please use XFdrake to configure your NVIDIA card. The correct packages
will be automatically installed and configured in this case.

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	dracut >= 046

# Helps when nvidia-current is based on the same version of the drivers.
Conflicts:	dkms-nvidia-current

# DKMS package for each long-lived branch should provide this.
# It is needed to prevent the situation when several drivers from different
# branches are installed at the same time. Each of the drivers will have
# alias "nvidia" for modprobe, so they cannot co-exist.
Provides:	nvidia-driver-long-lived = %{version}-%{release}
Conflicts:	nvidia-driver-long-lived < %{version}-%{release}

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{version}-%{release}
Requires:	%{drivername}-cuda-opencl = %{version}-%{release}
Conflicts:	nvidia-current-devel
Provides:	nvidia-devel = %{version}-%{release}
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{version}-%{release}
Provides:	nvidia-cuda = %{version}-%{release}
Requires:	kmod(%{modulename}) = %{version}
Conflicts:	x11-driver-video-nvidia-current <= 295.59
Conflicts:	nvidia-current-cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{version}-%{release}

Conflicts:	nvidia-current-doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build
# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

# README.urpmi
cp %{SOURCE101} .

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
Comment=Configure NVIDIA X driver
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		parseparams arch
%if ! %{with external_glvnd}
		install_file nvidia $nvidia_libdir
%endif
		;;
	GLVND_SYMLINK)
		parseparams arch dest
%if ! %{with external_glvnd}
		install_lib_symlink nvidia $nvidia_libdir
%endif
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		parseparams arch glvnd
%if ! %{with external_glvnd}
		# Skip non-GLVND libraries
		# https://devtalk.nvidia.com/default/topic/915640/unix-graphics-announcements-and-news/multiple-glx-client-libraries-in-the-nvidia-linux-driver-installer-package/
		[ t"${glvnd}" == "tGLVND" ] && install_file nvidia $nvidia_libdir
%endif
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		# Skip non-GLVND libraries
		parseparams arch dest glvnd
%if ! %{with external_glvnd}
		[ t"${glvnd}" == "tGLVND" ] && install_lib_symlink nvidia $nvidia_libdir
%endif
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-debugdump)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		install_file nvidia %{_sysconfdir}/vulkan/icd.d
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
%if %{with external_glvnd}
echo "%{_libdir}/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

%if %{with external_glvnd}
echo "/usr/lib/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

%if %{with external_glvnd}
LIBGL_SUBST=libGLX_nvidia.so.0
%else
LIBGL_SUBST=libGL.so.1
%endif
mv %{buildroot}%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json{.template,}
sed -ri "s,__NV_VK_ICD__,${LIBGL_SUBST},g" %{buildroot}%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json

# XFdrake may check if the driver is installed by looking for libglx.so
# in /usr/lib*/nvidia<version>/xorg. Let us make sure it is there.
pushd %{buildroot}%{nvidia_extensionsdir}
ln -s libglxserver_nvidia.so.%{version} libglx.so
popd

%post -n %{driverpkgname}
# XFdrake used to generate an nvidia.conf file
[ -L %{_sysconfdir}/modprobe.d/nvidia.conf ] || rm -f %{_sysconfdir}/modprobe.d/nvidia.conf

current_glconf="$(readlink -e %{_sysconfdir}/ld.so.conf.d/GL.conf)"

# owned by libvdpau1, created in case libvdpau1 is installed only just after
# this package
mkdir -p %{_libdir}/vdpau

%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%post -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files
# other documentation files are listed in nvidia.files
%doc README.urpmi

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%dir %{_sysconfdir}/vulkan/icd.d
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%dir %{_datadir}/glvnd/egl_vendor.d
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%dir %{_datadir}/egl/egl_external_platform.d
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/tls
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%if ! %{with external_glvnd}
%{nvidia_libdir}/libGL.so.1.0.0
%{nvidia_libdir}/libGL.so.1
%{nvidia_libdir}/libGLX.so.0
%{nvidia_libdir}/libGLdispatch.so.0
%{nvidia_libdir}/libOpenGL.so.0
%{nvidia_libdir}/libEGL.so.1
%{nvidia_libdir}/libGLESv1_CM.so.1
%{nvidia_libdir}/libGLESv2.so.2
%endif
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-fatbinaryloader.so.%{version}
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ifr.so.1
%{nvidia_libdir}/libnvidia-ifr.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/tls/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-cbl.so.%{version}
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/tls
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%if ! %{with external_glvnd}
%{nvidia_libdir32}/libGL.so.1.0.0
%{nvidia_libdir32}/libGL.so.1
%{nvidia_libdir32}/libGLX.so.0
%{nvidia_libdir32}/libGLdispatch.so.0
%{nvidia_libdir32}/libOpenGL.so.0
%{nvidia_libdir32}/libEGL.so.1
%{nvidia_libdir32}/libGLESv1_CM.so.1
%{nvidia_libdir32}/libGLESv2.so.2
%endif
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-fatbinaryloader.so.%{version}
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ifr.so.1
%{nvidia_libdir32}/libnvidia-ifr.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/tls/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
# avoid unowned directory
%dir %{_prefix}/lib/vdpau
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_modulesdir}/libnvidia-wfb.so.1
%{nvidia_modulesdir}/libnvidia-wfb.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_extensionsdir}/libglx.so
%{nvidia_driversdir}/nvidia_drv.so

%files -n %{drivername}-devel -f %{pkgname}/nvidia-devel.files
%if ! %{with external_glvnd}
%{nvidia_libdir}/libGL.so
%{nvidia_libdir}/libOpenGL.so
%{nvidia_libdir}/libGLX.so
%{nvidia_libdir}/libEGL.so
%{nvidia_libdir}/libGLESv1_CM.so
%{nvidia_libdir}/libGLESv2.so
%endif
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libnvidia-ifr.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-encode.so
%if ! %{with external_glvnd}
%{nvidia_libdir32}/libGL.so
%{nvidia_libdir32}/libOpenGL.so
%{nvidia_libdir32}/libGLX.so
%{nvidia_libdir32}/libEGL.so
%{nvidia_libdir32}/libGLESv1_CM.so
%{nvidia_libdir32}/libGLESv2.so
%endif
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libnvidia-ifr.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-encode.so


%files -n dkms-%{drivername}
%doc %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}

%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl -f %{pkgname}/nvidia-cuda.files
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20539 |21nr|nvidia430-430.50-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# (tpg) disable interall rpm dependency generator
# define _use_internal_dependency_generator 0

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define name		nvidia410

# When updating, please add new ids to ldetect-lst (merge2pcitable.pl)
%define version		410.104

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		x11-driver-video-%{drivername}
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin
# The entry in Cards+ this driver should be associated with, if there is
# no entry in ldetect-lst default pcitable:
# cooker ldetect-lst should be up-to-date
%define ldetect_cards_name	%nil

%define pkgname %{pkgname64}

# http://bugs.rosalinux.ru/show_bug.cgi?id=7791
%if %{mdvver} >= 201610
%bcond_without external_glvnd
%else
%bcond_with external_glvnd
%endif

# Other packages should not require any NVIDIA libraries, and this package
# should not be pulled in when libGL.so.1 is required
%if %{_use_internal_dependency_generator}
%define __noautoprov '(.*)\\.so(.*)|devel\\(libGL(.*)|devel\\(libEGL.*'
%define common_requires_exceptions libGLcore\\.so|libnv.*\\.so|libGL(.*)
%else
%define _provides_exceptions \\.so
%define common_requires_exceptions libGLcore\\.so\\|libnv.*\\.so
%endif

# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%if %{_use_internal_dependency_generator}
%define __noautoreq '%{common_requires_exceptions}|lib.*so\\.[^(]+(\\([^)]+\\))?$'
%else
%define __noautoreq %{common_requires_exceptions}\\|lib.*so\\.[^(]\\+\\(([^)]\\+)\\)\\?$
%endif

# (anssi) Workaround wrong linking as of 310.19.
# This will probably be fixed soon (at least similar issues have been in the past).
# https://devtalk.nvidia.com/default/topic/523762/libnvidia-encode-so-310-19-has-dependency-on-missing-library/
%define _exclude_files_from_autoreq libnvidia-encode.so.%version

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		%{name}
Version:	%{version}
Release:	2

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2

Source100:	%{name}.rpmlintrc
Source101:	README.urpmi

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	x86_64

BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives >= 1.9.0
Requires(postun): update-alternatives >= 1.9.0
Requires:	x11-server-common
Suggests:	%{drivername}-doc-html = %{version}
# Proper support for versioned kmod() was added in 2008.1:
Requires:	kmod(%{modulename}) = %{version}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1

Requires:	ldetect-lst >= 0.2

%if %{with external_glvnd}
Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles
# ldconfig -X in the post script must see these libraries installed:
Requires(post):	%{_lib}glvnd-glx
Requires(post):	%{_lib}glvnd-egl
Requires(post):	%{_lib}glvnd-gles

# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Requires:	libgldispatch0
Requires:	libopengl0
Requires:	libglvnd-glx
Requires:	libglvnd-egl
Requires:	libglvnd-gles
# ldconfig -X in the post script must see these libraries installed:
Requires(post):	libglvnd-glx
Requires(post):	libglvnd-egl
Requires(post):	libglvnd-gles
%endif

Provides:	nvidia = %{version}-%{release}

Conflicts:	nvidia-current-cuda-opencl <= 295.59-1
Conflicts:	nvidia-current
Conflicts:	x11-driver-video-nvidia-current
Suggests:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

Please use XFdrake to configure your NVIDIA card. The correct packages
will be automatically installed and configured in this case.

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	dracut >= 046

# Helps when nvidia-current is based on the same version of the drivers.
Conflicts:	dkms-nvidia-current

# DKMS package for each long-lived branch should provide this.
# It is needed to prevent the situation when several drivers from different
# branches are installed at the same time. Each of the drivers will have
# alias "nvidia" for modprobe, so they cannot co-exist.
Provides:	nvidia-driver-long-lived = %{version}-%{release}
Conflicts:	nvidia-driver-long-lived < %{version}-%{release}

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{version}-%{release}
Requires:	%{drivername}-cuda-opencl = %{version}-%{release}
Conflicts:	nvidia-current-devel
Provides:	nvidia-devel = %{version}-%{release}
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{version}-%{release}
Provides:	nvidia-cuda = %{version}-%{release}
Requires:	kmod(%{modulename}) = %{version}
Conflicts:	x11-driver-video-nvidia-current <= 295.59
Conflicts:	nvidia-current-cuda-opencl

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{version}-%{release}

Conflicts:	nvidia-current-doc-html

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build
# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

# README.urpmi
cp %{SOURCE101} .

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
Comment=Configure NVIDIA X driver
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		parseparams arch
%if ! %{with external_glvnd}
		install_file nvidia $nvidia_libdir
%endif
		;;
	GLVND_SYMLINK)
		parseparams arch dest
%if ! %{with external_glvnd}
		install_lib_symlink nvidia $nvidia_libdir
%endif
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		parseparams arch glvnd
%if ! %{with external_glvnd}
		# Skip non-GLVND libraries
		# https://devtalk.nvidia.com/default/topic/915640/unix-graphics-announcements-and-news/multiple-glx-client-libraries-in-the-nvidia-linux-driver-installer-package/
		[ t"${glvnd}" == "tGLVND" ] && install_file nvidia $nvidia_libdir
%endif
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		# Skip non-GLVND libraries
		parseparams arch dest glvnd
%if ! %{with external_glvnd}
		[ t"${glvnd}" == "tGLVND" ] && install_lib_symlink nvidia $nvidia_libdir
%endif
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-debugdump)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		install_file nvidia %{_sysconfdir}/vulkan/icd.d
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
%if %{with external_glvnd}
echo "%{_libdir}/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

%if %{with external_glvnd}
echo "/usr/lib/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
%endif
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

%if %{with external_glvnd}
LIBGL_SUBST=libGLX_nvidia.so.0
%else
LIBGL_SUBST=libGL.so.1
%endif
mv %{buildroot}%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json{.template,}
sed -ri "s,__NV_VK_ICD__,${LIBGL_SUBST},g" %{buildroot}%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json

# XFdrake may check if the driver is installed by looking for libglx.so
# in /usr/lib*/nvidia<version>/xorg. Let us make sure it is there.
pushd %{buildroot}%{nvidia_extensionsdir}
ln -s libglxserver_nvidia.so.%{version} libglx.so
popd

%post -n %{driverpkgname}
# XFdrake used to generate an nvidia.conf file
[ -L %{_sysconfdir}/modprobe.d/nvidia.conf ] || rm -f %{_sysconfdir}/modprobe.d/nvidia.conf

current_glconf="$(readlink -e %{_sysconfdir}/ld.so.conf.d/GL.conf)"

# owned by libvdpau1, created in case libvdpau1 is installed only just after
# this package
mkdir -p %{_libdir}/vdpau

%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%post -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files
# other documentation files are listed in nvidia.files
%doc README.urpmi

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%dir %{_sysconfdir}/vulkan/icd.d
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%dir %{_datadir}/glvnd/egl_vendor.d
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%dir %{_datadir}/egl/egl_external_platform.d
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/tls
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%if ! %{with external_glvnd}
%{nvidia_libdir}/libGL.so.1.0.0
%{nvidia_libdir}/libGL.so.1
%{nvidia_libdir}/libGLX.so.0
%{nvidia_libdir}/libGLdispatch.so.0
%{nvidia_libdir}/libOpenGL.so.0
%{nvidia_libdir}/libEGL.so.1
%{nvidia_libdir}/libGLESv1_CM.so.1
%{nvidia_libdir}/libGLESv2.so.2
%endif
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-fatbinaryloader.so.%{version}
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ifr.so.1
%{nvidia_libdir}/libnvidia-ifr.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/tls/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-cbl.so.%{version}
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/tls
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%if ! %{with external_glvnd}
%{nvidia_libdir32}/libGL.so.1.0.0
%{nvidia_libdir32}/libGL.so.1
%{nvidia_libdir32}/libGLX.so.0
%{nvidia_libdir32}/libGLdispatch.so.0
%{nvidia_libdir32}/libOpenGL.so.0
%{nvidia_libdir32}/libEGL.so.1
%{nvidia_libdir32}/libGLESv1_CM.so.1
%{nvidia_libdir32}/libGLESv2.so.2
%endif
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-fatbinaryloader.so.%{version}
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ifr.so.1
%{nvidia_libdir32}/libnvidia-ifr.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/tls/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
# avoid unowned directory
%dir %{_prefix}/lib/vdpau
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_modulesdir}/libnvidia-wfb.so.1
%{nvidia_modulesdir}/libnvidia-wfb.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_extensionsdir}/libglx.so
%{nvidia_driversdir}/nvidia_drv.so

%files -n %{drivername}-devel -f %{pkgname}/nvidia-devel.files
%if ! %{with external_glvnd}
%{nvidia_libdir}/libGL.so
%{nvidia_libdir}/libOpenGL.so
%{nvidia_libdir}/libGLX.so
%{nvidia_libdir}/libEGL.so
%{nvidia_libdir}/libGLESv1_CM.so
%{nvidia_libdir}/libGLESv2.so
%endif
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libnvidia-ifr.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-encode.so
%if ! %{with external_glvnd}
%{nvidia_libdir32}/libGL.so
%{nvidia_libdir32}/libOpenGL.so
%{nvidia_libdir32}/libGLX.so
%{nvidia_libdir32}/libEGL.so
%{nvidia_libdir32}/libGLESv1_CM.so
%{nvidia_libdir32}/libGLESv2.so
%endif
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libnvidia-ifr.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-encode.so


%files -n dkms-%{drivername}
%doc %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}

%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl -f %{pkgname}/nvidia-cuda.files
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20540 |21nr|nvidia460-460.80-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# (tpg) disable interall rpm dependency generator
# define _use_internal_dependency_generator 0

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define name		nvidia460

# When updating, please add new ids to ldetect-lst (merge2pcitable.pl)
%define version		460.80

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		x11-driver-video-%{drivername}
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin
# The entry in Cards+ this driver should be associated with, if there is
# no entry in ldetect-lst default pcitable:
# cooker ldetect-lst should be up-to-date
%define ldetect_cards_name	%nil

%define pkgname %{pkgname64}

%bcond_without force_32bit_deps

# Other packages should not require any NVIDIA libraries, and this package
# should not be pulled in when libGL.so.1 is required
%if %{_use_internal_dependency_generator}
%global __provides_exclude (.*)\\.so(.*)|devel\\(libGL(.*)|devel\\(libEGL.*
%define common_requires_exceptions libGLcore\\.so|libnv.*\\.so|libGL(.*)
%else
%define _provides_exceptions \\.so
%define common_requires_exceptions libGLcore\\.so\\|libnv.*\\.so
%endif

# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%if %{_use_internal_dependency_generator}
%global __requires_exclude %{common_requires_exceptions}|lib.*so\\.[^(]+(\\([^)]+\\))?$
%else
%global __requires_exclude %{common_requires_exceptions}\\|lib.*so\\.[^(]\\+\\(([^)]\\+)\\)\\?$
%endif

# (anssi) Workaround wrong linking as of 310.19.
# This will probably be fixed soon (at least similar issues have been in the past).
# https://devtalk.nvidia.com/default/topic/523762/libnvidia-encode-so-310-19-has-dependency-on-missing-library/
%define _exclude_files_from_autoreq libnvidia-encode.so.%version

Summary:	NVIDIA proprietary X.org driver and libraries
Name:		%{name}
Version:	%{version}
Release:	1

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2

Source100:	%{name}.rpmlintrc
Source101:	README.urpmi

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	x86_64

BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, long-lived branch.

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires(post): update-alternatives >= 1.9.0
Requires(postun): update-alternatives >= 1.9.0
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{version}
# Proper support for versioned kmod() was added in 2008.1:
Requires:	kmod(%{modulename}) = %{version}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1

Requires:	ldetect-lst >= 0.4

Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles
# ldconfig -X in the post script must see these libraries installed:
Requires(post):	%{_lib}glvnd-glx
Requires(post):	%{_lib}glvnd-egl
Requires(post):	%{_lib}glvnd-gles

# Package cannot be installed as BuildRequires if it requires both
# 64 and 32 bit packages. Needed for python-pyopencl build on ABF.
%if %{with force_32bit_deps}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Requires:	libgldispatch0
Requires:	libopengl0
Requires:	libglvnd-glx
Requires:	libglvnd-egl
Requires:	libglvnd-gles
# ldconfig -X in the post script must see these libraries installed:
Requires(post):	libglvnd-glx
Requires(post):	libglvnd-egl
Requires(post):	libglvnd-gles
%endif

Provides:	nvidia = %{version}-%{release}

Conflicts:	nvidia-current-cuda-opencl <= 295.59-1
Conflicts:	nvidia-current
Conflicts:	x11-driver-video-nvidia-current
Recommends:	nvidia-additional-settings

# nvidia430 is superceded by nvidia440
Obsoletes:	x11-driver-video-nvidia430 < %{version}-%{release}

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

Please use XFdrake to configure your NVIDIA card. The correct packages
will be automatically installed and configured in this case.

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	dracut >= 046

# Helps when nvidia-current is based on the same version of the drivers.
Conflicts:	dkms-nvidia-current

# nvidia430 is superceded by nvidia440
Obsoletes:	dkms-nvidia430 < %{version}-%{release}

# DKMS package for each long-lived branch should provide this.
# It is needed to prevent the situation when several drivers from different
# branches are installed at the same time. Each of the drivers will have
# alias "nvidia" for modprobe, so they cannot co-exist.
Provides:	nvidia-driver-long-lived = %{version}-%{release}
Conflicts:	nvidia-driver-long-lived < %{version}-%{release}

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
Requires:	%{driverpkgname} = %{version}-%{release}
Requires:	%{drivername}-cuda-opencl = %{version}-%{release}
Conflicts:	nvidia-current-devel
Provides:	nvidia-devel = %{version}-%{release}
Requires:	%{_lib}vdpau-devel

# nvidia430 is superceded by nvidia440
Obsoletes:	nvidia430-devel < %{version}-%{release}

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{version}-%{release}
Provides:	nvidia-cuda = %{version}-%{release}
Requires:	kmod(%{modulename}) = %{version}
Conflicts:	x11-driver-video-nvidia-current <= 295.59
Conflicts:	nvidia-current-cuda-opencl

# nvidia430 is superceded by nvidia440
Obsoletes:	nvidia430-cuda-opencl < %{version}-%{release}

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{version}-%{release}

Conflicts:	nvidia-current-doc-html

# nvidia430 is superceded by nvidia440
Obsoletes:	nvidia430-doc-html < %{version}-%{release}

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build
# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

# README.urpmi
cp %{SOURCE101} .

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
GenericName=Configure NVIDIA X driver
GenericName[ru]=Настройка драйвера NVIDIA X
Comment=Configure NVIDIA X driver
Comment[ru]=Настройка драйвера NVIDIA X
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
		
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		;;
	GLVND_SYMLINK)
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-debugdump|*nvidia-ngx-updater)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	INTERNAL_UTILITY*)
		case "$file" in
		*libglvnd_install_checker*)
			# ROSA does provide libglvnd, the checker is not needed.
			continue
			;;
		*)
			error_unhandled "unknown file $file of type $type to be installed, see .manifest."
			;;
		esac
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		parseparams dest
		install_file nvidia %{_sysconfdir}/vulkan/${dest}
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because XFdrake should create the
		# Xorg config appropriately.
		;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-ngx-updater
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
echo "%{_libdir}/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

echo "/usr/lib/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia<version>" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

# XFdrake may check if the driver is installed by looking for libglx.so
# in /usr/lib*/nvidia<version>/xorg. Let us make sure it is there.
pushd %{buildroot}%{nvidia_extensionsdir}
ln -s libglxserver_nvidia.so.%{version} libglx.so
popd

%post -n %{driverpkgname}
# XFdrake used to generate an nvidia.conf file
[ -L %{_sysconfdir}/modprobe.d/nvidia.conf ] || rm -f %{_sysconfdir}/modprobe.d/nvidia.conf

current_glconf="$(readlink -e %{_sysconfdir}/ld.so.conf.d/GL.conf)"

# owned by libvdpau1, created in case libvdpau1 is installed only just after
# this package
mkdir -p %{_libdir}/vdpau

%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-ngx-updater nvidia-ngx-updater %{nvidia_bindir}/nvidia-ngx-updater \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

%post -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files
# other documentation files are listed in nvidia.files
%doc README.urpmi

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%dir %{_sysconfdir}/vulkan/icd.d
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%dir %{_sysconfdir}/vulkan/implicit_layer.d/
%{_sysconfdir}/vulkan/implicit_layer.d/nvidia_layers.json
%dir %{_datadir}/glvnd/egl_vendor.d
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%dir %{_datadir}/egl/egl_external_platform.d
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-ngx-updater
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-ngx-updater
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ifr.so.1
%{nvidia_libdir}/libnvidia-ifr.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-cbl.so.%{version}
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%{nvidia_libdir}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir}/libnvidia-opticalflow.so.1
%{nvidia_libdir}/libnvidia-allocator.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.1
%{nvidia_libdir}/libnvidia-ngx.so.%{version}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ifr.so.1
%{nvidia_libdir32}/libnvidia-ifr.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.1
%{nvidia_libdir32}/libnvidia-allocator.so.%{version}
%{nvidia_libdir32}/libnvidia-allocator.so.1

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
# avoid unowned directory
%dir %{_prefix}/lib/vdpau
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_extensionsdir}/libglx.so
%{nvidia_driversdir}/nvidia_drv.so

%files -n %{drivername}-devel
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libnvidia-ifr.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-encode.so
%{nvidia_libdir}/libnvidia-opticalflow.so
%{nvidia_libdir}/libnvidia-allocator.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libnvidia-ifr.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-opticalflow.so
%{nvidia_libdir32}/libnvidia-allocator.so


%files -n dkms-%{drivername}
%doc %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}

%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20541 |21nr|nvidia-cuda-toolkit-7.5.18-13
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __requires_exclude libncurses.so.*|libcuda.so.*|libcudart.so.*|devel\\(libcuda.*\\)|devel\\(libcudart.*\\)|python\\(abi\\)|libnvcuvid\\.so\\.(.*)
%global __provides_exclude_from /usr/libnvvp
%global __requires_exclude_from /usr/libnvvp
%global __provides_exclude libcairo\\.so\\.2(.*)
%else
%define _requires_exceptions libcuda.so.*\\|libcudart.so.*\\|devel(libcuda.*)\\|devel(libcudart.*)\\|python(abi)\\|libnvcuvid.so.*
%endif

%define debug_package %{nil}

# Internal build number, ID or something.
%define buildno 19867135

Summary:	NVIDIA CUDA Toolkit libraries
Name:		nvidia-cuda-toolkit
Version:	7.5.18
Release:	13
License:	Freeware
Group:		System/Libraries
Url:		http://www.nvidia.com/cuda/
Source0:	http://developer.download.nvidia.com/compute/cuda/7.5/Prod/local_installers/cuda_%{version}_linux.run
Source1:	nvidia-cuda-toolkit-7.5.18-gcc5.patch
Source10:	nvvp.desktop
Source11:	nsight.desktop
Source100:	nvidia-cuda-toolkit.rpmlintrc
# CUDA is no longer supported on 32-bit Linux systems.
ExclusiveArch:	x86_64

# We don't require installation of the NVIDIA graphics drivers so that 
# folks can do CUDA development on systems without NVIDIA hardware.

# A library, libcudainj.so, was introduced in CUDA 4.1, which depends
# on libcuda.so. It is not needed to compile CUDA programs, though.

%description
NVIDIA(R) CUDA(TM) is a general purpose parallel computing architecture
that leverages the parallel compute engine in NVIDIA graphics
processing units (GPUs) to solve many complex computational problems
in a fraction of the time required on a CPU. It includes the CUDA
Instruction Set Architecture (ISA) and the parallel compute engine in
the GPU. To program to the CUDA(TM) architecture, developers can, today,
use C, one of the most widely used high-level programming languages,
which can then be run at great performance on a CUDA(TM) enabled
processor. Other languages will be supported in the future, including
FORTRAN and C++.

This package contains the libraries and attendant files needed to run
programs that make use of CUDA.

%files
%{_libdir}/*.so.*

#----------------------------------------------------------------------------

%package devel
Summary:	NVIDIA CUDA Toolkit development files
Group:		Development/C
Requires:	%{name} = %{EVRD}
Requires:	opencl-headers
Requires:	pkgconfig(ncurses)
Recommends:	gcc-c++

%description devel
NVIDIA(R) CUDA(TM) is a general purpose parallel computing architecture
that leverages the parallel compute engine in NVIDIA graphics
processing units (GPUs) to solve many complex computational problems
in a fraction of the time required on a CPU. It includes the CUDA
Instruction Set Architecture (ISA) and the parallel compute engine in
the GPU. To program to the CUDA(TM) architecture, developers can, today,
use C, one of the most widely used high-level programming languages,
which can then be run at great performance on a CUDA(TM) enabled
processor. Other languages will be supported in the future, including
FORTRAN and C++.

This package contains the development files needed to build programs
that make use of CUDA.

%files devel
%doc %{_docdir}/%{name}-devel/*
%{_bindir}/*
%exclude %{_bindir}/nvvp
%exclude %{_bindir}/nsight
%{_libdir}/*.so
%{_libdir}/stubs/*.so
%{_libdir}/*.a
%{_includedir}/*
%{_usr}/nvvm/*
%{_datadir}/%{name}/*

#----------------------------------------------------------------------------

%package -n nvidia-compute-profiler
Summary:	NVIDIA Compute Visual Profiler
Group:		Development/Other
BuildRequires:	imagemagick
Requires:	java
Requires:	nvidia-cuda-toolkit-devel
Recommends:	%{name} = %{EVRD}
Obsoletes:	nvidia-cuda-profiler < %{EVRD}
Obsoletes:	nvidia-opencl-profiler < %{EVRD}

# We don't strictly require NVIDIA CUDA Toolkit, because the profiler
# could be used to analyze CSV profile logs obtained elsewhere.

%description -n nvidia-compute-profiler
NVIDIA(R) CUDA(TM) is a general purpose parallel computing architecture
that leverages the parallel compute engine in NVIDIA graphics
processing units (GPUs) to solve many complex computational problems
in a fraction of the time required on a CPU. It includes the CUDA
Instruction Set Architecture (ISA) and the parallel compute engine in
the GPU. To program to the CUDA(TM) architecture, developers can, today,
use C, one of the most widely used high-level programming languages,
which can then be run at great performance on a CUDA(TM) enabled
processor. Other languages will be supported in the future, including
FORTRAN and C++.

This package contains the Compute Visual Profiler for CUDA and OpenCL.

%files -n nvidia-compute-profiler
%{_bindir}/nvvp
%{_usr}/libnvvp/.eclipseproduct
%{_usr}/libnvvp/*
%{_datadir}/applications/nvvp.desktop
%{_iconsdir}/hicolor/*/apps/nvvp.png

#----------------------------------------------------------------------------

%package -n nvidia-nsight
Summary:	NVIDIA Nsight IDE
Group:		Development/Other
Requires:	java

# We don't strictly require NVIDIA CUDA Toolkit, because Nsight IDE
# could be used to develop CUDA programs on a remote node.

%description -n nvidia-nsight
NVIDIA(R) CUDA(TM) is a general purpose parallel computing architecture
that leverages the parallel compute engine in NVIDIA graphics
processing units (GPUs) to solve many complex computational problems
in a fraction of the time required on a CPU. It includes the CUDA
Instruction Set Architecture (ISA) and the parallel compute engine in
the GPU. To program to the CUDA architecture, developers can, today,
use C++, one of the most widely used high-level programming languages,
which can then be run at great performance on a CUDA enabled
processor. Support for other languages, like FORTRAN, Python or Java,
is available from third parties.

This package contains Nsight Eclipse Edition, a full-featured CUDA IDE.

%files -n nvidia-nsight
%{_bindir}/nsight
%{_usr}/libnsight/.eclipseproduct
%{_usr}/libnsight/*
%{_datadir}/applications/nsight.desktop
%{_iconsdir}/hicolor/*/apps/nsight.png

#----------------------------------------------------------------------------

%prep
%setup -q -T -c %{name}-%{version}

%build

%install
install -d -m 755 %{buildroot}%{_usr}
install -d -m 755 %{buildroot}%{_datadir}/%{name}
install -d -m 755 %{buildroot}/%{_docdir}/%{name}-devel
install -d -m755 %{buildroot}%{_datadir}/applications

bash %{SOURCE0} --tar xf -C .
./run_files/cuda-linux64-rel-%{version}-%{buildno}.run --tar xf -C %{buildroot}%{_usr}
pushd %{buildroot}%{_includedir}
patch -p1 <%{SOURCE1}
popd

# Use files from opencl-headers package instead
rm -rf %{buildroot}%{_includedir}/CL

# Do not package libOpenCL.so* libraries here, they are already provided by
# other packages.
rm -f %{buildroot}%{_libdir}/libOpenCL.so*

rm -rf %{buildroot}/usr/lib
sed -i 's/lib/lib64/g' %{buildroot}%{_bindir}/nvcc.profile
# (tmb) restore libdevice
sed -i 's/lib64device/libdevice/g' %{buildroot}%{_bindir}/nvcc.profile

mv %{buildroot}%{_usr}/doc %{buildroot}/%{_docdir}/%{name}-devel/
rm -rf %{buildroot}%{_usr}/install-linux.pl
mv %{buildroot}%{_usr}/{extras,src,tools} %{buildroot}/%{_datadir}/%{name}
rm -rf %{buildroot}/%{_usr}/jre

rm -f %{buildroot}%{_usr}/InstallUtils.pm
rm -f %{buildroot}%{_usr}/uninstall_cuda.pl
rm -f %{buildroot}%{_usr}/version.txt

rm -rf %{buildroot}%{_datadir}/gdb/

mv %{buildroot}%{_usr}/EULA.txt %{buildroot}%{_docdir}/%{name}-devel/
mv %{buildroot}%{_usr}/CUDA_Toolkit_Release_Notes.txt %{buildroot}%{_docdir}/%{name}-devel/

for S in 16 24 32 48 64 128 192 256; do
 install -d -m755 %{buildroot}%{_iconsdir}/hicolor/$S\x$S/apps
 convert -scale $S\x$S %{buildroot}/%{_usr}/libnvvp/icon.xpm %{buildroot}%{_iconsdir}/hicolor/$S\x$S/apps/nvvp.png
 convert -scale $S\x$S %{buildroot}/%{_usr}/libnsight/icon.xpm %{buildroot}%{_iconsdir}/hicolor/$S\x$S/apps/nsight.png
done

install -m644 %{SOURCE10} %{buildroot}%{_datadir}/applications/
install -m644 %{SOURCE11} %{buildroot}%{_datadir}/applications/

sed -i 's|../jre/bin/java|/usr/bin/java|' %{buildroot}%{_usr}/libnvvp/nvvp.ini

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20542 |21nr|nvidia-current-450.57-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# FIXME: fix the cases when immediate symbol resolution is not enough.
# For the present, fall back to the old symbol resolution rules for ld.
%define _disable_ld_now 1

# (tpg) disable interall rpm dependency generator
# define _use_internal_dependency_generator 0

# Disable debug rpms.
%define _enable_debug_packages	%{nil}
%define debug_package		%{nil}

%define name		nvidia-current
%define version		450.57

%define priority	9700

%define pkgname64	NVIDIA-Linux-x86_64-%{version}

%define drivername		%{name}
%define driverpkgname		x11-driver-video-%{drivername}
%define modulename		nvidia
# for description and documentation
%define xorg_extra_modules	%{_libdir}/xorg/extra-modules
%define nvidia_driversdir	%{_libdir}/%{drivername}/xorg
%define nvidia_extensionsdir	%{_libdir}/%{drivername}/xorg
%define nvidia_modulesdir	%{_libdir}/%{drivername}/xorg
%define nvidia_libdir		%{_libdir}/%{drivername}
%define nvidia_libdir32		%{_prefix}/lib/%{drivername}
%define nvidia_bindir		%{nvidia_libdir}/bin

%define xorg_conf_backup	%{_sysconfdir}/X11/xorg.conf-pre-%{drivername}.bak

# The entry in Cards+ this driver should be associated with, if there is
# no entry in ldetect-lst default pcitable:
# cooker ldetect-lst should be up-to-date
%define ldetect_cards_name	%nil

%define pkgname %{pkgname64}

%bcond_without force_32bit_deps

# Other packages should not require any NVIDIA libraries, and this package
# should not be pulled in when libGL.so.1 is required
%if %{_use_internal_dependency_generator}
%global __provides_exclude (.*)\\.so(.*)|devel\\(libGL(.*)|devel\\(libEGL.*
%define common_requires_exceptions libGLcore\\.so|libnv.*\\.so|libGL(.*)
%else
%define _provides_exceptions \\.so
%define common_requires_exceptions libGLcore\\.so\\|libnv.*\\.so
%endif

# (anssi) Allow installing of 64-bit package if the runtime dependencies
# of 32-bit libraries are not satisfied. If a 32-bit package that requires
# libGL.so.1 is installed, the 32-bit mesa libs are pulled in and that will
# pull the dependencies of 32-bit nvidia libraries in as well.
%if %{_use_internal_dependency_generator}
%global __requires_exclude %{common_requires_exceptions}|lib.*so\\.[^(]+(\\([^)]+\\))?$
%else
%global __requires_exclude %{common_requires_exceptions}\\|lib.*so\\.[^(]\\+\\(([^)]\\+)\\)\\?$
%endif

# (anssi) Workaround wrong linking as of 310.19.
# This will probably be fixed soon (at least similar issues have been in the past).
# https://devtalk.nvidia.com/default/topic/523762/libnvidia-encode-so-310-19-has-dependency-on-missing-library/
%define _exclude_files_from_autoreq libnvidia-encode.so.%version

Summary:	NVIDIA proprietary X.org driver and libraries, current driver series
Name:		%{name}
Version:	%{version}
Release:	1

Source0:	http://download.nvidia.com/XFree86/Linux-x86_64/%{version}/%{pkgname64}.run
# GPLv2 source code; see also http://cgit.freedesktop.org/~aplattner/
Source2:	http://download.nvidia.com/XFree86/nvidia-settings/nvidia-settings-%{version}.tar.bz2
Source3:	http://download.nvidia.com/XFree86/nvidia-xconfig/nvidia-xconfig-%{version}.tar.bz2
Source4:	http://download.nvidia.com/XFree86/nvidia-modprobe/nvidia-modprobe-%{version}.tar.bz2
Source5:	http://download.nvidia.com/XFree86/nvidia-persistenced/nvidia-persistenced-%{version}.tar.bz2

Source100:	%{name}.rpmlintrc
Source101:	README.urpmi

# Allow building the drivers with a different GCC version than the kernel.
# Might be risky but it is still better than failed builds of the drivers
# resulting in broken graphics at the users' machines after a GCC update.
Patch1:		no-cc-version-check.patch

License:	Freeware
URL:		http://www.nvidia.com/object/unix.html
Group:		System/Kernel and hardware
Provides:	should-restart = system

# Staring from v396.x, 32-bit x86 systems are not supported by the driver.
ExclusiveArch:	x86_64

BuildRequires:	imagemagick
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(gtk+-2.0)
BuildRequires:	pkgconfig(xv)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(egl)
BuildRequires:	pkgconfig(xxf86vm)
BuildRequires:	pkgconfig(vdpau) >= 1.1
BuildRequires:	pkgconfig(libtirpc)
BuildRequires:	pkgconfig(dbus-1)

%description
The proprietary driver for NVidia GPUs, "current" ("short-lived") branch.
Note that hybrid graphics ("Optimus") is not supported officially with
nvidia-current.

%package -n %{driverpkgname}
Summary:	NVIDIA proprietary X.org driver and libraries
Group:		System/Kernel and hardware
Requires:	x11-server-common
Recommends:	%{drivername}-doc-html = %{version}
# Proper support for versioned kmod() was added in 2008.1:
Requires:	kmod(%{modulename}) = %{version}
# At least mplayer dlopens libvdpau.so.1, so the software will not pull in
# the vdpau library package. We ensure its installation here.
Requires:	%{_lib}vdpau1 >= 1.1
# We need grub2 to add nomodeset!
Requires(pre):	grub2 >= 2.00-34
Requires(post):	pciutils
Requires(post,postun):	update-alternatives >= 1.9.0

# Just in case some long-lived nvidia package is based on the same version
# of the drivers
Requires:	dkms-%{drivername} = %{version}-%{release}

Requires:	%{_lib}gldispatch0
Requires:	%{_lib}opengl0
Requires:	%{_lib}glvnd-glx
Requires:	%{_lib}glvnd-egl
Requires:	%{_lib}glvnd-gles
# ldconfig -X in the post script must see these libraries installed:
Requires(post):	%{_lib}glvnd-glx
Requires(post):	%{_lib}glvnd-egl
Requires(post):	%{_lib}glvnd-gles

# Package cannot be installed as BuildRequires if it requires both
# 64 and 32 bit packages. Needed for python-pyopencl build on ABF.
%if %{with force_32bit_deps}
# Pull the 32-bit GLVND libraries in as well, the 32-bit applications
# running on 64-bit systems (e.g. Steam) might need them.
Requires:	libgldispatch0
Requires:	libopengl0
Requires:	libglvnd-glx
Requires:	libglvnd-egl
Requires:	libglvnd-gles
# ldconfig -X in the post script must see these libraries installed:
Requires(post):	libglvnd-glx
Requires(post):	libglvnd-egl
Requires(post):	libglvnd-gles
%endif

Conflicts:	nvidia-current-cuda-opencl <= 295.59-1
Recommends:	nvidia-additional-settings

%description -n %{driverpkgname}
NVIDIA proprietary X.org graphics driver, related libraries and
configuration tools.

Please use XFdrake to configure your NVIDIA card. The correct packages
will be automatically installed and configured in this case.

%package -n dkms-%{drivername}
Summary:	Kernel module to manage NVIDIA GPUs
Group:		System/Kernel and hardware
Requires:	dkms
Requires(post):	dkms
Requires(preun):	dkms
Requires:	dracut >= 046

# DKMS package for each long-lived branch provides nvidia-driver-long-lived.
# The "conflicts" clause is needed to prevent the situation when several
# drivers from different branches are installed at the same time. Each of
# the drivers will have alias "nvidia" for modprobe, so they cannot
# co-exist.
Conflicts:	nvidia-driver-long-lived

%description -n dkms-%{drivername}
Kernel module to manage NVIDIA GPUs. This
is to be used with the %{driverpkgname} package.

%package -n %{drivername}-devel
Summary:	NVIDIA OpenGL/CUDA development libraries and headers
Group:		Development/C
# Requires:	%{driverpkgname} = %{version}-%{release}
# Requires:	%{drivername}-cuda-opencl = %{version}-%{release}
Provides:	nvidia-devel = %{version}-%{release}
Requires:	%{_lib}vdpau-devel

%description -n %{drivername}-devel
NVIDIA OpenGL/CUDA headers. This package is not required for normal use.

%package -n %{drivername}-cuda-opencl
Summary:	CUDA and OpenCL libraries for NVIDIA proprietary driver
Group:		System/Kernel and hardware
Provides:	%{drivername}-cuda = %{version}-%{release}
Requires:	kmod(%{modulename}) = %{version}
Conflicts:	x11-driver-video-nvidia-current <= 295.59

%description -n %{drivername}-cuda-opencl
Cuda and OpenCL libraries for NVIDIA proprietary driver. This package is not
required for normal use, it provides libraries to use NVIDIA cards for High
Performance Computing (HPC).

# HTML doc splitted off because of size, for live cds:
%package -n %{drivername}-doc-html
Summary:	NVIDIA html documentation (%{drivername})
Group:		System/Kernel and hardware
Requires:	%{driverpkgname} = %{version}-%{release}

%description -n %{drivername}-doc-html
HTML version of the README.txt file provided in package
%{driverpkgname}.

%prep
%setup -q -c -T -a 2 -a 3 -a 4 -a 5
sh %{SOURCE0} --extract-only

pushd %{pkgname}/
rm -rf usr/src/nv/precompiled
%patch1 -p1
popd

# We need a different dkms.conf because the one supplied in the upstream
# is actually a template. The real file is generated from it by
# nvidia-installer which we do not use.
pushd %{pkgname}/kernel
mv dkms.conf dkms.conf.orig

# Notes from the original dkms.conf:
# ---------------
# By default, DKMS will add KERNELRELEASE to the make command line; however,
# this will cause the kernel module build to infer that it was invoked via
# Kbuild directly instead of DKMS. The dkms(8) manual page recommends quoting
# the 'make' command name to suppress this behavior.
# ---------------
cat > dkms.conf <<EOF
PACKAGE_NAME="nvidia"
PACKAGE_VERSION="%{version}"
BUILT_MODULE_NAME[0]="nvidia"
DEST_MODULE_LOCATION[0]="/kernel/drivers/video"
BUILT_MODULE_NAME[1]="nvidia-modeset"
DEST_MODULE_LOCATION[1]="/kernel/drivers/video"
BUILT_MODULE_NAME[2]="nvidia-drm"
DEST_MODULE_LOCATION[2]="/kernel/drivers/video"
BUILT_MODULE_NAME[3]="nvidia-uvm"
DEST_MODULE_LOCATION[3]="/kernel/drivers/video"
MAKE="'make' KERNEL_UNAME=\${kernelver} IGNORE_XEN_PRESENCE=1 IGNORE_CC_MISMATCH=1 modules"
CLEAN="'make' clean"
AUTOINSTALL="yes"
EOF
popd

rm -f nvidia-settings-%{version}/src/*/*.a

%build
# The code contains dozens on top of dozens on top of dozens of "false" positives
export CFLAGS="%optflags -Wno-error=format-security"
export CXXFLAGS="$CFLAGS"
export LDFLAGS="%{?ldflags}"
%make -C nvidia-settings-%{version}/src/libXNVCtrl
%make -C nvidia-settings-%{version}
%make -C nvidia-xconfig-%{version}
%make -C nvidia-modprobe-%{version}
%make -C nvidia-persistenced-%{version} LIBS="-ltirpc -ldl"

%install

# README.urpmi
cp %{SOURCE101} .

cd %{pkgname}

# dkms
install -d -m755 %{buildroot}%{_usrsrc}/%{drivername}-%{version}-%{release}

# menu entry
install -d -m755 %{buildroot}%{_datadir}/%{drivername}
cat > %{buildroot}%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop <<EOF
[Desktop Entry]
Name=NVIDIA Display Settings
Comment=Configure NVIDIA X driver
Exec=%{_bindir}/nvidia-settings
Icon=%{drivername}-settings
Terminal=false
Type=Application
Categories=GTK;Settings;HardwareSettings;X-MandrivaLinux-System-Configuration;
EOF

install -d -m755	%{buildroot}%{_datadir}/applications
touch			%{buildroot}%{_datadir}/applications/rosa-nvidia-settings.desktop

# icons
install -d -m755 %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48}/apps
convert -strip nvidia-settings.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
convert -strip nvidia-settings.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

error_fatal() {
	echo "Error: $@." >&2
	exit 1
}

error_unhandled() {
	echo "Warning: $@." >&2
	echo "Warning: $@." >> warns.log
	# cause distro builds to fail in case of unhandled files
	exit 1
}

parseparams() {
	for value in $rest; do
		local param=$1
		[ -n "$param" ] || error_fatal "unhandled parameter $value"
		shift
		eval $param=$value

		[ -n "$value" ] || error_fatal "empty $param"

		# resolve libdir based on $arch
		if [ "$param" = "arch" ]; then
			case "$arch" in
			NATIVE)		nvidia_libdir=%{nvidia_libdir};;
			COMPAT32)	nvidia_libdir=%{nvidia_libdir32};;
			*)		error_fatal "unknown arch $arch"
			esac
		fi
	done
}

add_to_list() {
	# on distro builds, only use .manifest for doc files
	[ "${2#%doc}" = "${2}" ] && return
	local list="$1.files"
	local entry="$2"
	echo $entry >> $list
}

install_symlink() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	ln -s $dest %{buildroot}$dir/$file
	add_to_list $pkg $dir/$file
}

install_lib_symlink() {
	local pkg="$1"
	local dir="$2"
	case "$file" in
	libvdpau_*.so)
		# vdpau drivers => not put into -devel
		;;
	*.so)
		pkg=nvidia-devel;;
	esac
	install_symlink $pkg $dir
}

install_file_only() {
	local pkg="$1"
	local dir="$2"
	mkdir -p %{buildroot}$dir
	# replace 0444 with more usual 0644
	[ "$perms" = "0444" ] && perms="0644"
	install -m $perms $file %{buildroot}$dir
}

install_file() {
	local pkg="$1"
	local dir="$2"
	install_file_only $pkg $dir
	add_to_list $pkg $dir/$(basename $file)
}

get_module_dir() {
	local subdir="$1"
	case "$subdir" in
	extensions*)	echo %{nvidia_extensionsdir};;
	drivers/)	echo %{nvidia_driversdir};;
	/)		echo %{nvidia_modulesdir};;
	*)		error_unhandled "unhandled module subdir $subdir"
			echo %{nvidia_modulesdir};;
	esac
}

for file in nvidia.files nvidia-devel.files nvidia-cuda.files nvidia-dkms.files nvidia-html.files; do
	rm -f $file
	touch $file
done

# install files according to .manifest
cat .manifest | tail -n +9 | sort | uniq | while read line; do
	arch=
	style=
	subdir=
	dest=
	nvidia_libdir=
	inherit_path_str=
	glvnd=

	rest=${line%%%%MODULE:*}
	file=${rest%%%% *}
	rest=${rest#* }
	perms=${rest%%%% *}
	rest=${rest#* }
	type=${rest%%%% *}
	[ "${rest#* }" = "$rest" ] && rest= || rest=${rest#* }

	case "$type" in
	CUDA_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	CUDA_SYMLINK)
		parseparams arch subdir dest
		install_lib_symlink nvidia-cuda $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	ENCODEAPI_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	EXPLICIT_PATH)
		parseparams dest
		install_file nvidia %{_datadir}/nvidia
		;;
	NVCUVID_LIB)
		parseparams arch subdir
		install_file nvidia-cuda $nvidia_libdir/$subdir
		;;
	NVCUVID_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia-cuda $nvidia_libdir
		;;
	NVIFR_LIB)
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	NVIFR_LIB_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	OPENGL_LIB)
		parseparams arch
		install_file nvidia $nvidia_libdir
		;;
	OPENGL_SYMLINK)
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;
	GLVND_LIB)
		;;
	GLVND_SYMLINK)
		;;
	GLX_CLIENT_LIB|EGL_CLIENT_LIB)
		;;
	GLX_CLIENT_SYMLINK|EGL_CLIENT_SYMLINK)
		;;
	TLS_LIB)
		parseparams arch style subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	TLS_SYMLINK)
		parseparams arch style subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB)
		# backward-compatibility
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	UTILITY_LIB_SYMLINK)
		# backward-compatibility
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch dest
		install_lib_symlink nvidia $nvidia_libdir
		;;

	OPENCL_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_LIB_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_LIB)
		[ -n "${rest}" ] || rest="NATIVE $rest"
		parseparams arch subdir
		install_file nvidia $nvidia_libdir/$subdir
		;;
	OPENCL_WRAPPER_SYMLINK)
		[ "${rest#* }" != "$rest" ] || rest="NATIVE $rest"
		parseparams arch subdir dest
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_LIB)
		parseparams arch subdir
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_file nvidia $nvidia_libdir/$subdir
		;;
	VDPAU_WRAPPER_SYMLINK)
		parseparams arch subdir dest
		case $file in *libvdpau_nvidia.so*);; *) continue; esac
		install_lib_symlink nvidia $nvidia_libdir/$subdir
		;;
	XLIB_STATIC_LIB)
		install_file nvidia-devel %{nvidia_libdir}
		;;
	XLIB_SHARED_LIB)
		install_file nvidia %{nvidia_libdir}
		;;
	XLIB_SYMLINK)
		parseparams dest
		install_lib_symlink nvidia %{nvidia_libdir}
		;;
	LIBGL_LA)
		# (Anssi) we don't install .la files
		;;
	XMODULE_SHARED_LIB|GLX_MODULE_SHARED_LIB)
		parseparams subdir
		install_file nvidia $(get_module_dir $subdir)
		;;
	XMODULE_NEWSYM)
		# symlink that is created only if it doesn't already
		# exist (i.e. as part of x11-server)
		case "$file" in
		libwfb.so)
			continue
			;;
		*)
			error_unhandled "unknown XMODULE_NEWSYM type file $file, skipped"
			continue
		esac
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	XMODULE_SYMLINK|GLX_MODULE_SYMLINK)
		parseparams subdir dest
		install_symlink nvidia $(get_module_dir $subdir)
		;;
	VDPAU_HEADER)
		continue
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	OPENGL_HEADER|CUDA_HEADER)
		parseparams subdir
		install_file_only nvidia-devel %{_includedir}/%{drivername}/$subdir
		;;
	DOCUMENTATION)
		parseparams subdir
		case $subdir in
		*/html)
			add_to_list nvidia-html "%%doc %{pkgname}/$file"
			continue
			;;
		*/include/*)
			continue
			;;
		esac
		case $file in
		*XF86Config*|*nvidia-settings.png)
			continue;;
		esac
		add_to_list nvidia "%%doc %{pkgname}/$file"
		;;
	MANPAGE|NVIDIA_MODPROBE_MANPAGE)
		parseparams subdir
		case "$file" in
		*nvidia-installer*)
			# not installed
			continue
			;;
		*nvidia-settings*|*nvidia-xconfig*|*nvidia-modprobe*|*nvidia-persistenced*)
			# installed separately below
			continue
			;;
		*nvidia-smi*|*nvidia-cuda-mps-control*)
			# ok
			;;
		*)
			error_unhandled "skipped unknown man page $(basename $file)"
			continue
		esac
		install_file_only nvidia %{_mandir}/$subdir
		;;
	UTILITY_BINARY)
		case "$file" in
		*nvidia-settings|*nvidia-xconfig|*nvidia-persistenced)
			# not installed, we install our own copy
			continue
			;;
		*nvidia-smi|*nvidia-bug-report.sh|*nvidia-debugdump)
			# ok
			;;
		*nvidia-cuda-mps-control|*nvidia-cuda-mps-server)
			# ok
			;;
		*)
			error_unhandled "unknown binary $(basename $file) will be installed to %{nvidia_bindir}/$(basename $file)"
			;;
		esac
		install_file nvidia %{nvidia_bindir}
		;;
	UTILITY_BIN_SYMLINK)
		case $file in nvidia-uninstall) continue;; esac
		parseparams dest
		install_symlink nvidia %{nvidia_bindir}
		;;
	INTERNAL_UTILITY*)
		case "$file" in
		*libglvnd_install_checker*)
			# ROSA does provide libglvnd, the checker is not needed.
			continue
			;;
		*)
			error_unhandled "unknown file $file of type $type to be installed, see .manifest."
			;;
		esac
		;;
	NVIDIA_MODPROBE)
		# A suid-root tool (GPLv2) used as fallback for loading the module and
		# creating the device nodes in case the driver component is running as
		# a non-root user (e.g. a CUDA application). While the module is automatically
		# loaded by udev rules, the device nodes are not automatically created
		# like with regular drivers and therefore this tool is installed on
		# ROSA as well, at least for now.
		;;
	INSTALLER_BINARY)
		# not installed
		;;
	KERNEL_MODULE_SRC)
		# These lines now have an item like "INHERIT_PATH_DEPTH:1"
		# It specifies, how many components of the path to skip.
		# For example, the manifest mat contain the following line:
		#   kernel/nvidia/nv.c 0644 KERNEL_MODULE_SRC INHERIT_PATH_DEPTH:1
		# Skip one component of the path as suggested by INHERIT_PATH_DEPTH:1,
		# and we get "nvidia/nv.c", which should be installed as
		# /usr/src/<driver-version-release>/nvidia/nv.c.
		parseparams inherit_path_str
		if [ $inherit_path_str != "INHERIT_PATH_DEPTH:1" ]; then
			error_unhandled "unexpected option for $file: \"$inherit_path_str\"."
		fi
		dest=$(echo $file | sed 's/[^/]*\///')
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}/$(dirname $dest)
		;;
	DKMS_CONF)
		# We will replace it with our own dkms.conf below but the
		# file must be listed anyway.
		install_file nvidia-dkms %{_usrsrc}/%{drivername}-%{version}-%{release}
		;;
	CUDA_ICD)
		# in theory this should go to the cuda subpackage, but it goes into the main package
		# as this avoids one broken symlink and it is small enough to not cause space issues
		install_file nvidia %{_sysconfdir}/%{drivername}
		;;
	VULKAN_ICD_JSON)
		parseparams dest
		install_file nvidia %{_sysconfdir}/vulkan/${dest}
		;;
	GLVND_EGL_ICD_JSON)
		install_file nvidia %{_datadir}/glvnd/egl_vendor.d
		;;
	EGL_EXTERNAL_PLATFORM_JSON)
		install_file nvidia %{_datadir}/egl/egl_external_platform.d/
		;;
	APPLICATION_PROFILE)
		parseparams subdir
		# application profile filenames are versioned, we can use a common
		# non-alternativesized directory
		install_file nvidia %{_datadir}/nvidia/$subdir
		;;
	DOT_DESKTOP)
		# we provide our own for now
		;;
	XORG_OUTPUTCLASS_CONFIG)
		# nvidia-drm-outputclass.conf allows to load the appropriate
		# X11 driver automatically if nvidia kernel module is used
		# by the graphics device. Xorg >= 1.16.
		# Not needed in our case, because we create the
		# Xorg config appropriately.
		;;
	*)
		error_unhandled "file $(basename $file) of unknown type $type will be skipped"
	esac
done

[ -z "$warnings" ] || echo "Please file a bug about the above warnings at http://bugs.rosalinux.ru/." >> warns.log

# Create the convenience symlinks. As the packages with nvidia are mutually
# exclusive now, there is no need to use alternatives for this.
ln -s %{nvidia_libdir} %{buildroot}%{_libdir}/nvidia
ln -s %{nvidia_libdir32} %{buildroot}%{_prefix}/lib/nvidia

# confirm SONAME; if something else than libvdpau_nvidia.so or libvdpau_nvidia.so.1, adapt .spec as needed:
[ "$(objdump -p %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} | grep SONAME | gawk '{ print $2 }')" = "libvdpau_nvidia.so.1" ]

rm -f %{buildroot}%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.1
rm -f %{buildroot}%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.1

# vdpau alternative symlink
install -d -m755 %{buildroot}%{_libdir}/vdpau
touch %{buildroot}%{_libdir}/vdpau/libvdpau_nvidia.so.1
install -d -m755 %{buildroot}%{_prefix}/lib/vdpau
touch %{buildroot}%{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

# self-built binaries
install -m755 ../nvidia-settings-%{version}/src/_out/*/nvidia-settings %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig %{buildroot}%{nvidia_bindir}
install -m755 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced %{buildroot}%{nvidia_bindir}
install -m4755 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe %{buildroot}%{nvidia_bindir}

# binary alternatives
install -d -m755			%{buildroot}%{_bindir}
touch					%{buildroot}%{_bindir}/nvidia-debugdump
touch					%{buildroot}%{_bindir}/nvidia-settings
touch					%{buildroot}%{_bindir}/nvidia-smi
touch					%{buildroot}%{_bindir}/nvidia-xconfig
touch					%{buildroot}%{_bindir}/nvidia-bug-report.sh
touch					%{buildroot}%{_bindir}/nvidia-modprobe
touch					%{buildroot}%{_bindir}/nvidia-persistenced
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-control
touch					%{buildroot}%{_bindir}/nvidia-cuda-mps-server
# rpmlint:
chmod 0755				%{buildroot}%{_bindir}/*

# install man pages
install -m644 ../nvidia-settings-%{version}/doc/_out/*/nvidia-settings.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-xconfig-%{version}/_out/*/nvidia-xconfig.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-modprobe-%{version}/_out/*/nvidia-modprobe.1 %{buildroot}%{_mandir}/man1
install -m644 ../nvidia-persistenced-%{version}/_out/*/nvidia-persistenced.1 %{buildroot}%{_mandir}/man1

# bug #41638 - whatis entries of nvidia man pages appear wrong
gunzip %{buildroot}%{_mandir}/man1/*.gz
sed -r -i '/^nvidia\\-[a-z]+ \\- NVIDIA/s,^nvidia\\-,nvidia-,' %{buildroot}%{_mandir}/man1/*.1
cd %{buildroot}%{_mandir}/man1
rename nvidia alt-%{drivername} *
cd -
touch %{buildroot}%{_mandir}/man1/nvidia-xconfig.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-settings.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-modprobe.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-persistenced.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-smi.1%{_extension}
touch %{buildroot}%{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}

# cuda nvidia.icd
install -d -m755		%{buildroot}%{_sysconfdir}/OpenCL/vendors
touch				%{buildroot}%{_sysconfdir}/OpenCL/vendors/nvidia.icd

# ld.so.conf
install -d -m755		%{buildroot}%{_sysconfdir}/%{drivername}
echo "%{_libdir}/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

echo "/usr/lib/libglvnd" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf
echo "%{nvidia_libdir32}" >>	%{buildroot}%{_sysconfdir}/%{drivername}/ld.so.conf

install -d -m755		%{buildroot}%{_sysconfdir}/ld.so.conf.d
touch				%{buildroot}%{_sysconfdir}/ld.so.conf.d/GL.conf

# modprobe.d
install -d -m755			%{buildroot}%{_sysconfdir}/modprobe.d

# Allow the users to load this kernel module as "nvidia-current" as well.
echo "alias %{drivername} nvidia" > %{buildroot}%{_sysconfdir}/modprobe.d/%{drivername}.conf

# xinit script
install -d -m755 %{buildroot}%{_sysconfdir}/%{drivername}
cat > %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit <<EOF
# to be sourced
#
# Do not modify this file; the changes will be overwritten.
# If you want to disable automatic configuration loading, create
# /etc/sysconfig/nvidia-settings with this line: LOAD_NVIDIA_SETTINGS="no"
#
LOAD_NVIDIA_SETTINGS="yes"
[ -f %{_sysconfdir}/sysconfig/nvidia-settings ] && . %{_sysconfdir}/sysconfig/nvidia-settings
[ "\$LOAD_NVIDIA_SETTINGS" = "yes" ] && %{_bindir}/nvidia-settings --load-config-only
EOF
chmod 0755 %{buildroot}%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
install -d -m755 %{buildroot}%{_sysconfdir}/X11/xinit.d
touch %{buildroot}%{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit

export EXCLUDE_FROM_STRIP="$(find %{buildroot} -type f \! -name nvidia-settings \! -name nvidia-xconfig \! -name nvidia-modprobe \! -name nvidia-persistenced)"

# XFdrake may check if the driver is installed by looking for libglx.so
# in /usr/lib*/nvidia<version>/xorg. Let us make sure it is there.
pushd %{buildroot}%{nvidia_extensionsdir}
ln -s libglxserver_nvidia.so.%{version} libglx.so
popd

%post -n %{driverpkgname}

# On the first install, generate xorg.conf, backup the old one, if present.
# We cannot simply add it to the list of files because it needs info from
# the system the driver will run on: BUS ID for the video adapter.
if [ $1 -eq 1 ]; then
	if [ -f %{_sysconfdir}/X11/xorg.conf ]; then
		echo "Warning: %{_sysconfdir}/X11/xorg.conf will be replaced with a new file."
		echo "%{xorg_conf_backup} will be the backup of the original xorg.conf."

		mv %{_sysconfdir}/X11/xorg.conf %{xorg_conf_backup}
	fi

# The first of the video adapters by NVidia.
	DEV_LINE=$(lspci -vnn | grep -E -i '(VGA compatible controller|3D controller|Display controller).*NVIDIA' | head -n 1)
	echo $DEV_LINE | grep -E '^[0-9]+:[0-9]+\.[0-9]+\s+' > /dev/null 2>&1
	if test $? -ne 0; then
		echo "Error: no suitable devices found."
		exit 1
	fi

	BUSID_GPU=$(echo $DEV_LINE | awk '{ split($1, ids, "[.:]"); printf("%d:%d:%d", ids[1], ids[2], ids[3]); }')

	cat > %{_sysconfdir}/X11/xorg.conf <<EOF
Section "ServerFlags"
Option "DontZap" "False"
AllowMouseOpenFail
EndSection

Section "Device"
Identifier "device1"
VendorName "NVIDIA Corporation"
BoardName "Proprietary (nvidia-current)"
Driver "nvidia"
BusID "PCI:$BUSID_GPU"
Option "DPMS"
Option "DynamicTwinView" "false"
Option "AddARGBGLXVisuals"
Option "NoLogo" "1"
Option "Coolbits" "4"
EndSection
EOF
fi

# XFdrake used to generate an nvidia.conf file
[ -L %{_sysconfdir}/modprobe.d/nvidia.conf ] || rm -f %{_sysconfdir}/modprobe.d/nvidia.conf

current_glconf="$(readlink -e %{_sysconfdir}/ld.so.conf.d/GL.conf)"

# owned by libvdpau1, created in case libvdpau1 is installed only just after
# this package
mkdir -p %{_libdir}/vdpau

%{_sbindir}/update-alternatives \
	--install %{_sysconfdir}/ld.so.conf.d/GL.conf gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf %{priority} \
	--slave %{_mandir}/man1/nvidia-settings.1%{_extension} man_nvidiasettings%{_extension} %{_mandir}/man1/alt-%{drivername}-settings.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-xconfig.1%{_extension} man_nvidiaxconfig%{_extension} %{_mandir}/man1/alt-%{drivername}-xconfig.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-smi.1%{_extension} nvidia-smi.1%{_extension} %{_mandir}/man1/alt-%{drivername}-smi.1%{_extension} \
	--slave %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension} nvidia-cuda-mps-control.1%{_extension} %{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1%{_extension} \
	--slave %{_datadir}/applications/rosa-nvidia-settings.desktop nvidia_desktop %{_datadir}/%{drivername}/rosa-nvidia-settings.desktop \
	--slave %{_bindir}/nvidia-settings nvidia_settings %{nvidia_bindir}/nvidia-settings \
	--slave %{_bindir}/nvidia-smi nvidia_smi %{nvidia_bindir}/nvidia-smi \
	--slave %{_bindir}/nvidia-xconfig nvidia_xconfig %{nvidia_bindir}/nvidia-xconfig \
	--slave %{_bindir}/nvidia-debugdump nvidia-debugdump %{nvidia_bindir}/nvidia-debugdump \
	--slave %{_bindir}/nvidia-bug-report.sh nvidia_bug_report %{nvidia_bindir}/nvidia-bug-report.sh \
	--slave %{_bindir}/nvidia-cuda-mps-control nvidia-cuda-mps-control %{nvidia_bindir}/nvidia-cuda-mps-control \
	--slave %{_bindir}/nvidia-cuda-mps-server nvidia-cuda-mps-server %{nvidia_bindir}/nvidia-cuda-mps-server \
	--slave %{_bindir}/nvidia-modprobe nvidia-modprobe %{nvidia_bindir}/nvidia-modprobe \
	--slave %{_bindir}/nvidia-persistenced nvidia-persistenced %{nvidia_bindir}/nvidia-persistenced \
	--slave %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit nvidia-settings.xinit %{_sysconfdir}/%{drivername}/nvidia-settings.xinit \
	--slave %{_libdir}/vdpau/libvdpau_nvidia.so.1 %{_lib}vdpau_nvidia.so.1 %{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{_sysconfdir}/OpenCL/vendors/nvidia.icd nvidia.icd %{_sysconfdir}/%{drivername}/nvidia.icd \
	--slave %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1 libvdpau_nvidia.so.1 %{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version} \
	--slave %{xorg_extra_modules} xorg_extra_modules %{nvidia_extensionsdir}

# Unlike the drivers from long-lived branches (nvidia<version>)
# nvidia-current is not installed by XFdrake. So, it should perform all
# setup tasks by itself.
%{_sbindir}/update-alternatives --set gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf

# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

# Add 'nomodeset' to grub2 string and update grub2.cfg. No need to worry
# about Optimus here: it is not officially supported with nvidia-current.
echo "INFO: Adding 'nomodeset'".
/usr/sbin/grub2-cfg-mod --add nomodeset
/usr/sbin/update-grub2

%postun -n %{driverpkgname}
if [ ! -f %{_sysconfdir}/%{drivername}/ld.so.conf ]; then
  %{_sbindir}/update-alternatives --remove gl_conf %{_sysconfdir}/%{drivername}/ld.so.conf
fi
# explicit /sbin/ldconfig due to alternatives
/sbin/ldconfig -X

if [ $1 -eq 0 ]; then
# Remove the generated xorg.conf.
	rm -f %{_sysconfdir}/X11/xorg.conf
fi

%if "%{ldetect_cards_name}" != ""
[ -x %{_sbindir}/update-ldetect-lst ] && %{_sbindir}/update-ldetect-lst || :
%endif

# Del 'nomodeset' from the boot-time kernel options.
if [ $1 -eq 0 ] ; then
	/usr/sbin/grub2-cfg-mod --del nomodeset
	/usr/sbin/update-grub2
fi

%post -n %{drivername}-cuda-opencl
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
# The applications like Blender may need to find libcuda.so, for example.
/sbin/ldconfig -X

%postun -n %{drivername}-devel
# Explicit /sbin/ldconfig due to a non-standard library directory.
/sbin/ldconfig -X

%post -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade add -m %{drivername} -v %{version}-%{release}

# Build and install the driver for all available kernels that have devel
# files, no matter how these kernels were installed (from RPMs or manually).
# Do not fail the installation of the package if the build fails for some
# kernels, this may happen during testing, etc.
for kk in /lib/modules/*; do
	kk=$(echo $kk | sed 's/^\/lib\/modules\///');
	if test -d "/lib/modules/$kk/build"; then
# Remove the modules that use the obsolete naming convention first
# to make the upgrade smoother (otherwise they may remain in the system
# and cause trouble).
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia3*.ko
		rm -f /lib/modules/$kk/kernel/drivers/video/nvidia-current.ko
# Now build and install the newer modules
		/usr/sbin/dkms --rpm_safe_upgrade build -m %{drivername} -v %{version}-%{release} -k $kk &&
		/usr/sbin/dkms --rpm_safe_upgrade install -m %{drivername} -v %{version}-%{release} -k $kk || true
	else
		echo "WARNING: No development files for kernel \"$kk\"" > /dev/stderr;
	fi;
done

# Just in case the user reboots the system too quickly and sync is not
# done automatically.
sync

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%preun -n dkms-%{drivername}
/usr/sbin/dkms --rpm_safe_upgrade remove -m %{drivername} -v %{version}-%{release} --all || true

# rmmod any old driver if present and not in use (e.g. by X)
modprobe -r nvidia > /dev/null 2>&1 || true

%files -n %{driverpkgname} -f %{pkgname}/nvidia.files
# other documentation files are listed in nvidia.files
%doc README.urpmi

# ld.so.conf, modprobe.conf, xinit
%ghost %{_sysconfdir}/ld.so.conf.d/GL.conf
%ghost %{_sysconfdir}/X11/xinit.d/nvidia-settings.xinit
%dir %{_sysconfdir}/%{drivername}
%{_sysconfdir}/modprobe.d/%{drivername}.conf
%{_sysconfdir}/%{drivername}/ld.so.conf
%{_sysconfdir}/%{drivername}/nvidia-settings.xinit
%{_sysconfdir}/%{drivername}/nvidia.icd
%dir %{_sysconfdir}/vulkan/icd.d
%{_sysconfdir}/vulkan/icd.d/nvidia_icd.json
%dir %{_sysconfdir}/vulkan/implicit_layer.d/
%{_sysconfdir}/vulkan/implicit_layer.d/nvidia_layers.json
%dir %{_datadir}/glvnd/egl_vendor.d
%{_datadir}/glvnd/egl_vendor.d/10_nvidia.json
%dir %{_datadir}/egl/egl_external_platform.d
%{_datadir}/egl/egl_external_platform.d/10_nvidia_wayland.json
%dir %{_datadir}/nvidia
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-rc
%{_datadir}/nvidia/nvidia-application-profiles-%{version}-key-documentation

%dir %{_sysconfdir}/OpenCL
%dir %{_sysconfdir}/OpenCL/vendors
%ghost %{_sysconfdir}/OpenCL/vendors/nvidia.icd

%ghost %{_bindir}/nvidia-debugdump
%ghost %{_bindir}/nvidia-settings
%ghost %{_bindir}/nvidia-smi
%ghost %{_bindir}/nvidia-xconfig
%ghost %{_bindir}/nvidia-modprobe
%ghost %{_bindir}/nvidia-persistenced
%ghost %{_bindir}/nvidia-bug-report.sh
%ghost %{_bindir}/nvidia-cuda-mps-control
%ghost %{_bindir}/nvidia-cuda-mps-server
%dir %{nvidia_bindir}
%{nvidia_bindir}/nvidia-debugdump
%{nvidia_bindir}/nvidia-settings
%{nvidia_bindir}/nvidia-smi
%{nvidia_bindir}/nvidia-xconfig
%{nvidia_bindir}/nvidia-modprobe
%{nvidia_bindir}/nvidia-persistenced
%{nvidia_bindir}/nvidia-bug-report.sh
%{nvidia_bindir}/nvidia-cuda-mps-control
%{nvidia_bindir}/nvidia-cuda-mps-server

%ghost %{_mandir}/man1/nvidia-xconfig.1%{_extension}
%ghost %{_mandir}/man1/nvidia-settings.1%{_extension}
%ghost %{_mandir}/man1/nvidia-modprobe.1%{_extension}
%ghost %{_mandir}/man1/nvidia-persistenced.1%{_extension}
%ghost %{_mandir}/man1/nvidia-smi.1%{_extension}
%ghost %{_mandir}/man1/nvidia-cuda-mps-control.1%{_extension}
%{_mandir}/man1/alt-%{drivername}-xconfig.1*
%{_mandir}/man1/alt-%{drivername}-settings.1*
%{_mandir}/man1/alt-%{drivername}-modprobe.1*
%{_mandir}/man1/alt-%{drivername}-persistenced.1*
%{_mandir}/man1/alt-%{drivername}-smi.1*
%{_mandir}/man1/alt-%{drivername}-cuda-mps-control.1*

%ghost %{_datadir}/applications/rosa-nvidia-settings.desktop
%dir %{_datadir}/%{drivername}
%{_datadir}/%{drivername}/rosa-nvidia-settings.desktop

%{_iconsdir}/hicolor/16x16/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/32x32/apps/%{drivername}-settings.png
%{_iconsdir}/hicolor/48x48/apps/%{drivername}-settings.png

%dir %{nvidia_libdir}
%dir %{nvidia_libdir}/vdpau
%{_libdir}/nvidia
%{nvidia_libdir}/libGLX_nvidia.so.%{version}
%{nvidia_libdir}/libGLX_nvidia.so.0
%{nvidia_libdir}/libGLX_indirect.so.0
%{nvidia_libdir}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir}/libnvidia-glcore.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.%{version}
%{nvidia_libdir}/libnvidia-tls.so.%{version}
%{nvidia_libdir}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir}/libEGL_nvidia.so.0
%{nvidia_libdir}/libEGL_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir}/libGLESv2_nvidia.so.2
%{nvidia_libdir}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir}/libnvidia-glsi.so.%{version}
%{nvidia_libdir}/libnvidia-cfg.so.1
%{nvidia_libdir}/libnvidia-fbc.so.1
%{nvidia_libdir}/libnvidia-fbc.so.%{version}
%{nvidia_libdir}/libnvidia-ifr.so.1
%{nvidia_libdir}/libnvidia-ifr.so.%{version}
%{nvidia_libdir}/libnvidia-ml.so.1
%{nvidia_libdir}/libnvidia-ml.so.%{version}
%{nvidia_libdir}/libvdpau_nvidia.so
%{nvidia_libdir}/libnvidia-gtk2.so.%{version}
%{nvidia_libdir}/libnvidia-gtk3.so.%{version}
%{nvidia_libdir}/libnvidia-egl-wayland.so.1*
%{nvidia_libdir}/libnvidia-cbl.so.%{version}
%{nvidia_libdir}/libnvidia-rtcore.so.%{version}
%{nvidia_libdir}/libnvoptix.so.%{version}
%{nvidia_libdir}/libnvoptix.so.1
%{nvidia_libdir}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir}/libnvidia-opticalflow.so.1
%{nvidia_libdir}/libnvidia-allocator.so.%{version}
%{nvidia_libdir}/libnvidia-allocator.so.1
%{nvidia_libdir}/libnvidia-ngx.so.%{version}
%dir %{nvidia_libdir32}
%dir %{nvidia_libdir32}/vdpau
%{_prefix}/lib/nvidia
%{nvidia_libdir32}/libGLX_nvidia.so.%{version}
%{nvidia_libdir32}/libGLX_nvidia.so.0
%{nvidia_libdir32}/libGLX_indirect.so.0
%{nvidia_libdir32}/libnvidia-ptxjitcompiler.so*
%{nvidia_libdir32}/libnvidia-glcore.so.%{version}
%{nvidia_libdir32}/libnvidia-ifr.so.1
%{nvidia_libdir32}/libnvidia-ifr.so.%{version}
%{nvidia_libdir32}/libnvidia-ml.so.1
%{nvidia_libdir32}/libnvidia-ml.so.%{version}
%{nvidia_libdir32}/libnvidia-tls.so.%{version}
%{nvidia_libdir32}/libnvidia-glvkspirv.so.%{version}
%{nvidia_libdir32}/libvdpau_nvidia.so
%{nvidia_libdir32}/vdpau/libvdpau_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-fbc.so.1
%{nvidia_libdir32}/libnvidia-fbc.so.%{version}
%{nvidia_libdir32}/libEGL_nvidia.so.0
%{nvidia_libdir32}/libEGL_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.1
%{nvidia_libdir32}/libGLESv1_CM_nvidia.so.%{version}
%{nvidia_libdir32}/libGLESv2_nvidia.so.2
%{nvidia_libdir32}/libGLESv2_nvidia.so.%{version}
%{nvidia_libdir32}/libnvidia-eglcore.so.%{version}
%{nvidia_libdir32}/libnvidia-glsi.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.%{version}
%{nvidia_libdir32}/libnvidia-opticalflow.so.1
%{nvidia_libdir32}/libnvidia-allocator.so.%{version}
%{nvidia_libdir32}/libnvidia-allocator.so.1

%ghost %{_libdir}/vdpau/libvdpau_nvidia.so.1
# avoid unowned directory
%dir %{_prefix}/lib/vdpau
%ghost %{_prefix}/lib/vdpau/libvdpau_nvidia.so.1

%dir %{nvidia_modulesdir}
%{nvidia_extensionsdir}/libglxserver_nvidia.so.%{version}
%{nvidia_extensionsdir}/libglxserver_nvidia.so
%{nvidia_extensionsdir}/libglx.so
%{nvidia_driversdir}/nvidia_drv.so

%files -n %{drivername}-devel
%{nvidia_libdir}/libcuda.so
%{nvidia_libdir}/libnvcuvid.so
%{nvidia_libdir}/libnvidia-cfg.so
%{nvidia_libdir}/libnvidia-fbc.so
%{nvidia_libdir}/libnvidia-ifr.so
%{nvidia_libdir}/libOpenCL.so
%{nvidia_libdir}/libnvidia-ml.so
%{nvidia_libdir}/libnvidia-encode.so
%{nvidia_libdir}/libnvidia-opticalflow.so
%{nvidia_libdir}/libnvidia-allocator.so
%{nvidia_libdir32}/libcuda.so
%{nvidia_libdir32}/libnvcuvid.so
%{nvidia_libdir32}/libnvidia-fbc.so
%{nvidia_libdir32}/libnvidia-ifr.so
%{nvidia_libdir32}/libOpenCL.so
%{nvidia_libdir32}/libnvidia-ml.so
%{nvidia_libdir32}/libnvidia-encode.so
%{nvidia_libdir32}/libnvidia-opticalflow.so
%{nvidia_libdir32}/libnvidia-allocator.so


%files -n dkms-%{drivername}
%doc %{pkgname}/LICENSE
%{_usrsrc}/%{drivername}-%{version}-%{release}

%files -n %{drivername}-doc-html -f %{pkgname}/nvidia-html.files

%files -n %{drivername}-cuda-opencl
%{nvidia_libdir}/libnvcuvid.so.%{version}
%{nvidia_libdir}/libnvcuvid.so.1
%{nvidia_libdir}/libnvidia-encode.so.1
%{nvidia_libdir}/libnvidia-encode.so.%{version}
%{nvidia_libdir}/libOpenCL.so.1.0.0
%{nvidia_libdir}/libOpenCL.so.1.0
%{nvidia_libdir}/libOpenCL.so.1
%{nvidia_libdir}/libnvidia-compiler.so.%{version}
%{nvidia_libdir}/libcuda.so.%{version}
%{nvidia_libdir}/libcuda.so.1
%{nvidia_libdir}/libnvidia-opencl.so.%{version}
%{nvidia_libdir}/libnvidia-opencl.so.1
%{nvidia_libdir32}/libnvidia-opencl.so.*
%{nvidia_libdir32}/libnvcuvid.so.%{version}
%{nvidia_libdir32}/libnvcuvid.so.1
%{nvidia_libdir32}/libnvidia-encode.so.1
%{nvidia_libdir32}/libnvidia-encode.so.%{version}
%{nvidia_libdir32}/libOpenCL.so.1.0.0
%{nvidia_libdir32}/libOpenCL.so.1.0
%{nvidia_libdir32}/libOpenCL.so.1
%{nvidia_libdir32}/libnvidia-compiler.so.%{version}
%{nvidia_libdir32}/libcuda.so.%{version}
%{nvidia_libdir32}/libcuda.so.1

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20543 |21nr|nwfermi-0-0.git8bbe39.6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# abf.io/import/nwfermi is in non-free,
# abf.io/import/kernel-source-nwfermi is in main,
# binary kernel modules are built when building kernels

%define commit 8bbe39739b6c024ae4383e10da45498a6f05b75a
%define commit_short %(echo %{commit} | head -c6)

# probe with this thing installed and smartboard connected:
# https://linux-hardware.org/?probe=001109b89b

Summary:	Proprietary userspace software for NextWindow touchscreens
Name:		nwfermi
Version:	0
Release:	0.git%{commit_short}.6
License:	Proprietary
Group:		System/X11
Url:		https://github.com/glorang/nwfermi
Source0:	https://github.com/glorang/nwfermi/archive/%{commit}.tar.gz?/%{name}-%{commit}.tar.gz
# keep in sync with kernel-source-nwfermi
Patch1:	    more-devices.diff
BuildRequires:	x11-util-macros
BuildRequires:	pkgconfig(libevdev)
BuildRequires:	pkgconfig(xorg-server)
BuildRequires:	pkgconfig(xproto)
BuildRequires:	patchelf
Requires:	x11-driver-input-nwfermi
# nwfermi-proprietary-daemon is 32 bit only
%ifarch %{x86_64} %{ix86}
Recommends:	nwfermi-proprietary-daemon(x86-32)
%endif
Recommends:	(kernel-module-nwfermi-6.1-generic if kernel-6.1-generic)
Recommends:	(kernel-module-nwfermi-6.6-generic if kernel-6.6-generic)
# Wayland is not supported by this old thing
Recommends:	(gdm-default-to-xorg if gdm)

%description
Proprietary userspace software for NextWindow touchscreens.
Xorg input module is built from source and is available on all arches.
The daemon is a proprietary blob without source code and is available on x86_64 only.
Works only in Xorg, does not support Wayland.
This is a meta package that pulls dependencies.

%files
%doc README.md

#------------------------------------------------------------------

%package -n x11-driver-input-nwfermi
Summary:	Xorg input driver for NextWindow touchscreens
Group:		System/X11
Recommends:	(kernel-module-nwfermi-6.1-generic if kernel-6.1-generic)
Recommends:	(kernel-module-nwfermi-6.6-generic if kernel-6.6-generic)

%description -n x11-driver-input-nwfermi
Xorg input driver for NextWindow touchscreens.
Requires the nwfermi kernel module.
This Xorg driver is built from source.

%files -n x11-driver-input-nwfermi
%license usr/src/xf86-input-nextwindow-0.3.4/COPYING
%{_libdir}/xorg/modules/input/*.so
%{_datadir}/X11/xorg.conf.d/10-nwfermi.conf
%{_datadir}/man/man4/nextwindow.4*

#------------------------------------------------------------------

%ifarch %{ix86}

%package proprietary-daemon
Summary:	Repackaged propietary daemon for NextWindow touchscreens
Group:		System/X11
# no deps here to avoid potentially pulling 32 bit packages instead of 64 bit ones

%description proprietary-daemon
Repackaged propietary 32 bit daemon for NextWindow touchscreens.
Requires the nwfermi kernel module.

%files proprietary-daemon
%license LICENSE-NW
%doc README.md
%{_udevrulesdir}/40-nw-fermi.rules
%{_unitdir}/nwfermi@.service
%{_unitdir}/fwprod-1926-1846.service
%{_unitdir}/fwprod-1926-1878.service
%{_sbindir}/fwprod
%{_sbindir}/nwfermi_daemon

%post proprietary-daemon
%systemd_post fwprod-1926-1846.service
%systemd_post fwprod-1926-1878.service

%preun proprietary-daemon
%systemd_preun fwprod-1926-1846.service
%systemd_preun fwprod-1926-1878.service

%endif
#------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-%{commit}

%build
pushd usr/src/xf86-input-nextwindow-0.3.4
autoreconf -if
%configure
%make
popd

%install
mkdir -p %{buildroot}%{_datadir}/X11/xorg.conf.d
install -m644 etc/X11/xorg.conf.d/10-nwfermi.conf %{buildroot}%{_datadir}/X11/xorg.conf.d

%ifarch %{ix86}
mkdir -p %{buildroot}%{_udevrulesdir}
install -m644 etc/udev/rules.d/40-nw-fermi.rules %{buildroot}%{_udevrulesdir}

mkdir -p %{buildroot}%{_unitdir}
install -m644 etc/systemd/system/*.service %{buildroot}%{_unitdir}

mkdir -p %{buildroot}%{_sbindir}
cp usr/sbin/nwfermi_daemon %{buildroot}%{_sbindir}
cp usr/sbin/fwprod %{buildroot}%{_sbindir}
patchelf --replace-needed libudev.so.0 libudev.so.1 %{buildroot}%{_sbindir}/fwprod
%endif

%makeinstall_std -C usr/src/xf86-input-nextwindow-0.3.4

rm -fvr %{buildroot}%{_libdir}/pkgconfig

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20544 |21nr|ogre-cg-plugin-13.5.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname ogre

%define major 13.5

Summary:	CgProgramManager plugin for OGRE
Name:		%{oname}-cg-plugin
Version:	13.5.2
Release:	1
License:	LGPLv2+
Group:		System/Libraries
Url:		http://www.ogre3d.org/
Source0:	https://github.com/OGRECave/ogre/archive/v%{version}.tar.gz
Source1:	https://github.com/ocornut/imgui/archive/v1.87.tar.gz
Patch1:		ogre-SDL-headers.patch
Patch2:		ogre-imgui-dir.patch
BuildRequires:	cmake
BuildRequires:	ninja
BuildRequires:	atomic-devel
BuildRequires:	boost-devel
BuildRequires:	cg-devel
BuildRequires:	freeimage-devel
BuildRequires:	pkgconfig(tinyxml2)
BuildRequires:	pugixml-devel
BuildRequires:	pkgconfig(cppunit)
BuildRequires:	pkgconfig(freetype2)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(ice)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(sm)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xaw7)
BuildRequires:	pkgconfig(xrandr)
BuildRequires:	pkgconfig(xt)
BuildRequires:	pkgconfig(zziplib)
Requires:	ogre >= %{version}
# cg-devel not build on arm and other
ExclusiveArch:	%{ix86} %{x86_64}

%description
This package contains CgProgramManager plugin for OGRE.

%files
%{_libdir}/OGRE/Plugin_CgProgramManager.so.%{major}
%{_libdir}/OGRE/Plugin_CgProgramManager.so

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version} -a1
find . -type f -name "*.h"-o -name "*.cpp" -exec chmod 644 {} \;
rm -rf build/
mkdir -p build/imgui
cp -r imgui-*/* build/imgui/

%build
%cmake -G Ninja \
	-DOGRE_BUILD_DOCS:BOOL=OFF \
	-DOGRE_BUILD_DEPENDENCIES=OFF \
	-DOGRE_BUILD_PLUGIN_CG:BOOL=ON \
	-DOGRE_INSTALL_SAMPLES:BOOL=OFF \
	-DOGRE_INSTALL_SAMPLES_SOURCE:BOOL=OFF \
	-DOGRE_CONFIG_MEMTRACK_RELEASE:BOOL=OFF \
	-DOGRE_NODELESS_POSITIONING=ON


%ninja_build

%install
mkdir -p %{buildroot}%{_libdir}/OGRE
cp build/lib/Plugin_CgProgramManager.so* %{buildroot}%{_libdir}/OGRE/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20545 |21nr|openmotif-2.3.8-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define intern_name openMotif
%define major 4
%define libname %mklibname %{name} %{major}
%define devname %mklibname %{name} -d

Summary:	Open Motif runtime libraries and executables
Name:		openmotif
Version:	2.3.8
Release:	1
License:	Open Group Public License
Group:		System/Libraries
Url:		http://www.motifzone.net/
Source0:	https://downloads.sourceforge.net/project/motif/Motif%20%{version}%20Source%20Code/motif-%{version}.tar.gz
Source1:	xmbind
Patch0:		openMotif-2.3.8-no_demos.patch
Patch1:		openMotif-2.2.3-uil_lib.patch
Patch2:		openMotif-2.3.0-rgbtxt.patch
Patch3:		openMotif-2.3.8-mwmrc_dir.patch
Patch4:		openMotif-2.3.8-bindings.patch
Patch5:		openMotif-2.3.0-no_X11R6.patch
Patch6:		openMotif-2.3.0-fix-str-fmt.patch
BuildRequires:	byacc
BuildRequires:	flex
BuildRequires:	x11-data-bitmaps
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(xft)
BuildRequires:	pkgconfig(xp)
BuildRequires:	pkgconfig(xt)
Conflicts:	lesstif <= 0.92.32-6

%description
This is the Open Motif %{version} runtime environment. It includes the
Motif shared libraries, needed to run applications which are dynamically
linked against Motif, and the Motif Window Manager "mwm".

%files
%doc COPYING README RELEASE RELNOTES
%{_sysconfdir}/X11/xinit/xinitrc.d/xmbind.sh
%{_sysconfdir}/X11/mwm/system.mwmrc
%{_bindir}/mwm
%{_bindir}/xmbind
%{_includedir}/X11/bitmaps/*
%{_datadir}/X11/bindings
%{_mandir}/man1/mwm*
%{_mandir}/man1/xmbind*
%{_mandir}/man4/mwmrc*

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	Open Motif libraries
Group:		System/Libraries
Provides:	lib%{name} = %{EVRD}

%description -n %{libname}
These are the libraries provided by is the Open Motif %{version} runtime
environment.

%files -n %{libname}
%{_libdir}/libMrm.so.%{major}*
%{_libdir}/libUil.so.%{major}*
%{_libdir}/libXm.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Open Motif development libraries and header files
Group:		Development/C
Conflicts:	lesstif-devel <= 0.92.32-6
Provides:	lib%{name}-devel = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Requires:	%{libname} = %{EVRD}

%description -n %{devname}
This is the Open Motif %{version} development environment. It includes the
static libraries and header files necessary to build Motif applications.

%files -n %{devname}
%{_bindir}/uil
%{_includedir}/Mrm
%{_includedir}/Xm
%{_includedir}/uil
%{_libdir}/lib*.a
%{_libdir}/lib*.so
%{_mandir}/man1/uil.1*
%{_mandir}/man3/*
%{_mandir}/man5/*

#----------------------------------------------------------------------------

%prep
%setup -q -n motif-%{version}
%patch0 -p1 -b .no_demos
%patch1 -p1 -b .uil_lib
%patch2 -p0 -b .rgbtxt
%patch3 -p1 -b .mwmrc_dir
%patch4 -p1 -b .bindings
%patch5 -p0 -b .no_X11R6
%patch6 -p1 -b .str-fmt

for i in doc/man/man3/{XmColumn,XmDataField}.3; do
	iconv -f windows-1252 -t utf-8 < "$i" > "${i}_"
	mv "${i}_" "$i"
done

%build
CFLAGS="%{optflags} -D_FILE_OFFSET_BITS=64" \
./configure \
	--prefix=%{_prefix} \
	--libdir=%{_libdir} \
	--enable-static

# do not use rpath
perl -pi -e 's|hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=\"-L\\\$libdir\"|g;' libtool

export LD_LIBRARY_PATH=`pwd`/lib/Mrm/.libs:`pwd`/lib/Xm/.libs
make clean
make

%install
export LD_LIBRARY_PATH=`pwd`/lib/Mrm/.libs:`pwd`/lib/Xm/.libs
make DESTDIR=%{buildroot} prefix=%{_prefix} install
mkdir -p %{buildroot}/etc/X11/xinit/xinitrc.d \
         %{buildroot}%{_includedir}

install -m 755 %{SOURCE1} %{buildroot}/etc/X11/xinit/xinitrc.d/xmbind.sh

rm -fr %{buildroot}%{_datadir}/Xm/doc

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20546 |21nr|opentyrian-2.1-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Classic shoot-em-up arcade port
Name:		opentyrian
Version:	2.1
Release:	5
License:	GPLv2+
Group:		Games/Arcade
Url:		http://code.google.com/p/opentyrian/
# mercurial snapshot
Source0:	%{name}-%{version}.tar.bz2
# script to download game data
# Google doesn't allow easy direct downloads so use MIB hosting
Source1:	%{name}-installer
Source2:	%{name}.png
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_net)
Requires:	unzip
Requires:	Xdialog

%description
OpenTyrian is a port of the DOS shoot-em-up Tyrian. Jason Emery generously
gave the OpenTyrian developers a copy of the Tyrian 2.1 source code, which
has since been ported from Turbo Pascal to C.

The port uses SDL, making it easily cross-platform.

Tyrian is an arcade-style vertical scrolling shooter. The story is set
in 20,031 where you play as Trent Hawkins, a skilled fighter-pilot employed
to fight Microsol and save the galaxy.

%files
%doc COPYING README CREDITS NEWS
%{_bindir}/*
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q

%build
%make release EXTRA_CFLAGS="%{optflags}" STRIP=true

%install
install -Dpm 755 %{name} %{buildroot}%{_bindir}/%{name}
install -Dpm 755 %{SOURCE1} %{buildroot}%{_bindir}/%{name}-installer

mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE2} %{buildroot}%{_datadir}/pixmaps/%{name}.png

mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop  <<EOF
[Desktop Entry]
Name=OpenTyrian
Comment=%{summary}
Exec=%{name}-installer
Icon=%{name}
Type=Application
Terminal=false
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20547 |21nr|opera-blink-73.0.3856.284-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}
%define rname opera

# Do not make provides from plugins
%global __provides_exclude_from ^%{_libdir}/%{rname}.*/.*\\.so
# Do not require filtered out provides
%global __requires_exclude_from ^%{_libdir}/%{rname}.*/.*\\.so
%global __requires_exclude ^libffmpeg\\.so.*$

Summary:	Fast and secure web browser
Name:		opera-blink
Version:	73.0.3856.284
Release:	2
License:	Proprietary
Group:		Networking/WWW
Url:		http://www.opera.com/browser
Source0:	http://download2.operacdn.com/ftp/pub/opera/desktop/%{version}/linux/%{rname}-stable_%{version}_amd64.deb
Source2:	%{name}.rpmlintrc
Source3:	opera.desktop
Provides:	%{rname}
ExclusiveArch:	x86_64

%description
Opera is a fast, secure and user-friendly web browser. It
includes web developer tools, news aggregation, and the ability
to compress data via Opera Turbo on congested networks.

%files
%{_defaultdocdir}/%{rname}-%{version}
%{_bindir}/%{rname}
%{_libdir}/%{rname}/*
%{_datadir}/applications/%{rname}.desktop
%{_datadir}/icons/*
%{_datadir}/pixmaps/*
%{_datadir}/mime/packages/opera-stable.xml

#----------------------------------------------------------------------------

%prep
%setup -q -c -T

%build

%install
mkdir -p %{buildroot}

# Extract DEB packages:
pushd %{buildroot}
	ar p %{SOURCE0} data.tar.xz | xz -d > %{rname}-%{version}.x86_64.tar
	tar -xf %{rname}-%{version}.x86_64.tar
popd

# Move /usr/lib/%%{arch}-linux-gnu/%%{rname} to %%{_libdir}:
mv %{buildroot}/usr/lib/x86_64-linux-gnu/%{rname} %{buildroot}/usr/lib/
rm -rf %{buildroot}/usr/lib/x86_64-linux-gnu
mv %{buildroot}/usr/lib %{buildroot}%{_libdir}

# Modify DOC directory
mv %{buildroot}%{_datadir}/doc/%{rname}-stable %{buildroot}%{_datadir}/doc/%{rname}-%{version}

# Use our desktop file
rm -f %{buildroot}%{_datadir}/applications/%{rname}.desktop
install -m644 %{SOURCE3} %{buildroot}%{_datadir}/applications/%{rname}.desktop

# Create necessary symbolic link
mkdir -p %{buildroot}%{_libdir}/%{rname}/lib
pushd %{buildroot}%{_libdir}/%{rname}/lib
	ln -s %{_libdir}/libssl.so.10 libssl.so.1.0.0
popd

# Fix symlink:
pushd %{buildroot}%{_bindir}
	rm %{rname}
	ln -s ../lib64/%{rname}/%{rname} %{rname}
popd

# Fix <opera_sandbox> attributes:
chmod 4755 %{buildroot}%{_libdir}/%{rname}/opera_sandbox

# Remove unused directories and tarball:
pushd %{buildroot}
	rm %{rname}-%{version}.x86_64.tar
	rm -rf %{buildroot}%{_datadir}/lintian
	rm -rf %{buildroot}%{_datadir}/menu
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20548 |21nr|panamfs-scan-1.3.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Proprietary program - no debug info
%define debug_package %{nil}

%global __provides_exclude libsane.*

Name:		panamfs-scan
Version:	1.3.1
Release:	3
Group:		System/Printing
Summary:	Panasonic Multi-Function Station Scanner
License:	Proprietary
URL:		https://panasonic.net/cns/pcc/support/fax/common/table/linuxdriver.html
Source0:	https://www.psn-web.net/cs/support/fax/common/file/Linux_ScanDriver/panamfs-scan-%{version}-i686.tar.gz
Source1:	https://www.psn-web.net/cs/support/fax/common/file/Linux_ScanDriver/panamfs-scan-%{version}-x86_64.tar.gz
# save PDFs into SRPM/file-store, may be useful if they are removed by Panasonic
Source2:	https://www.psn-web.net/cs/support/fax/common/file/Linux_ScanDriver/ScannerDriver_Ubuntu_ENG_011.pdf
Source3:	https://www.psn-web.net/cs/support/fax/common/file/Linux_ScanDriver/ScannerDriver_RedHat_ENG_011.pdf
Source100:	%{name}.rpmlintrc
Patch0:		panamfs-scan-1.3.1-i686-destdir.patch
Patch1:		panamfs-scan-1.3.1-x86_64-destdir.patch
BuildRequires:	sane
BuildRequires:	sane-backends
# proprietary driver for the same MFPs
Recommends:	(mccgdi if cups)
ExclusiveArch:	%{ix86} %{x86_64}

%description
Prorietary (non-free) software for Panasonic scanners/MFPs

#---------------------------------------------------------

%package sane
Summary:	Prorietary (non-free) SANE driver for Panasonic scanners/MFPs
Requires:	sane-backends
Provides:	%{NAME} = %{EVRD}
%if %{mdvver} <= 202110
Conflicts:	%{NAME} < 1.3.1-2
%endif

%description sane
Prorietary (non-free) SANE driver for Panasonic scanners/MFPs

%files sane
%dir %{_datadir}/panasonic
%dir %{_datadir}/panasonic/scanner
%{_datadir}/panasonic/scanner/data
%{_datadir}/panasonic/scanner/Version.html
%config(noreplace) /etc/sane.d/panamfs.conf
%config(noreplace) /etc/sane.d/dll.d/panamfs
%{_libdir}/sane/libsane-panamfs.so*
%{_udevrulesdir}/59-panamfs-sane.rules

#---------------------------------------------------------

%package push
Summary:	Support of scanning by clicking a button on Panasonic scanner/MFP
Summary(ru_RU.UTF-8):	Поддержка сканирования нажатием кнопки на сканере/МФУ Panasonic
Requires:	%{NAME}-sane = %{EVRD}
%if %{mdvver} <= 202110
Conflicts:	%{NAME} < 1.3.1-2
Obsoletes:	%{NAME} < 1.3.1-2
%endif

%description push
Support of scanning by clicking a button on Panasonic scanner/MFP.
Do not install this package if you do not really need it. %{NAME}-sane is enough.

%description -l ru_RU.UTF-8 push
Поддержка сканирования нажатием кнопки на сканере/МФУ Panasonic.
Не устанавливайте этот пакет, если не понимаете, для чего он нужен. Достаточно %{NAME}-sane.

%files push
%doc *.pdf
%{_bindir}/PanasonicMFSTools
%{_bindir}/PanasonicMFSscan
%{_datadir}/applications/PanasonicMFSTools.desktop
%{_datadir}/panasonic/scanner/bin
/etc/xdg/autostart/PanasonicMFSpushd.desktop
/etc/init.d/panasoniclpd-init
/etc/rc2.d/S80panasoniclpd-init
/etc/rc3.d/S80panasoniclpd-init
/etc/rc4.d/S80panasoniclpd-init
/etc/rc5.d/S80panasoniclpd-init

#---------------------------------------------------------

%prep
# % setup -qTc
%ifarch %{ix86}
%setup -b0 -n %{name}-%{version}-i686
%patch0 -p1
%else
%setup -b1 -n %{name}-%{version}-x86_64
%patch1 -p1
%endif

cp %{SOURCE2} %{SOURCE3} .

sed -i install-driver -e 's,/usr/lib/sane,%{_libdir}/sane,g'
grep -Irl /usr/local | xargs sed -i -e 's,/usr/local,/usr,g'

%build

%install
mkdir -p %{buildroot}%{_libdir}/sane
mkdir -p %{buildroot}/usr/bin
mkdir -p %{buildroot}/etc/rc2.d
mkdir -p %{buildroot}/etc/rc3.d
mkdir -p %{buildroot}/etc/rc4.d
mkdir -p %{buildroot}/etc/rc5.d
mkdir -p %{buildroot}/etc/init.d
mkdir -p %{buildroot}/etc/xdg/autostart/
mkdir -p %{buildroot}/etc/sane.d

DESTDIR=%{buildroot} ./install-driver

mkdir -p %{buildroot}/etc/sane.d/dll.d/
echo panamfs > %{buildroot}/etc/sane.d/dll.d/panamfs

# makes no sense when installed as RPM
unlink %{buildroot}%{_datadir}/panasonic/scanner/uninstall-driver

mkdir -p %{buildroot}%{_udevrulesdir}

cat > %{buildroot}%{_udevrulesdir}/59-panamfs-sane.rules << 'EOF'
# based on 60-libsane.rules
ACTION=="remove", GOTO="panamfs_rules_end"
ENV{DEVTYPE}=="usb_device", GOTO="panamfs_create_usb_dev"
SUBSYSTEM=="usb_device", GOTO="panamfs_usb_rules_begin"
SUBSYSTEM!="usb_device", GOTO="panamfs_usb_rules_end"
LABEL="panamfs_create_usb_dev"
LABEL="panamfs_usb_rules_begin"
# ScannerDriver_Ubuntu_ENG_011.pdf suggests to do like this - match by vendor ID only.
# There is no list of device IDs, Panasonic KX-MB1900 is 04da:0f07
# but we do not have all other devices, so let's leave only vendor ID here...
# This package is not free and so is not preinstalled on systems that do not need it.
ATTR{idVendor}=="04da", MODE="0644", GROUP="usb", ENV{libsane_matched}="yes"
LABEL="panamfs_usb_rules_end"
LABEL="panamfs_rules_end"
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20549 |21nr|phoenix-emu-2.8-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

%define sver %(echo %{version} | sed s,'\\.',,g)

Summary:	3DO emulator
Name:		phoenix-emu
Version:	2.8
Release:	2
License:	Freeware
Group:		Emulators
Url:		http://www.arts-union.ru/node/23
Source0:	http://www.arts-union.ru/sites/default/files/ph%{sver}-lin-x86.zip
Source1:	http://www.arts-union.ru/sites/default/files/ph%{sver}-lin-x64.zip
BuildRequires:	imagemagick
ExclusiveArch:	%{ix86} x86_64

%description
3DO emulator. Requires a BIOS image.

%files
%{_bindir}/%{name}
%attr(777,-,-) %dir %{_libdir}/%{name}
%attr(777,-,-) %dir %{_libdir}/%{name}/scalers
%attr(777,-,-) %dir %{_libdir}/%{name}/shaders
%attr(777,-,-) %dir %{_libdir}/%{name}/skin
%{_libdir}/%{name}/%{name}-real
%{_libdir}/%{name}/scalers/*
%{_libdir}/%{name}/shaders/*
%{_libdir}/%{name}/skin/*
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%setup -qcT
%ifarch %{ix86}
unzip %{SOURCE0}
%else
unzip %{SOURCE1}
%endif

%build

%install
mkdir -p %{buildroot}%{_libdir}/%{name}
install -m 0755 PhoenixEmuProject %{buildroot}%{_libdir}/%{name}/%{name}-real
cp -r scalers %{buildroot}%{_libdir}/%{name}/
cp -r shaders %{buildroot}%{_libdir}/%{name}/
cp -r skin %{buildroot}%{_libdir}/%{name}/

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Phoenix-Emu
Comment=3DO Emulator
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;Emulator;
EOF

# install menu icons
for N in 16 32 48 64 128 256;
do
convert logo.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

# install wrapper script
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} << EOF
cd %{_libdir}/%{name}
./%{name}-real "\$@"
EOF
chmod 0755 %{buildroot}%{_bindir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20550 |21nr|primus-0.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%if %{_use_internal_dependency_generator}
%global __provides_exclude libGL\\.so\\.1(.*)
%endif

%define gl_major 1
%define libgl %mklibname %{name}_gl %{gl_major}

Summary:	Faster OpenGL offloading for Bumblebee
Name:		primus
Version:	0.2
Release:	5
License:	Custom
Group:		System/Kernel and hardware
Url:		https://github.com/amonakov/primus
Source0:	%{name}-%{version}.tar.gz
Source1:	primusrun
Patch0:		primus-git-build-with-ldflags.patch

BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xproto)

Requires:	%{libgl} = %{EVRD}
%ifarch x86_64
Requires:	lib%{name}_gl%{gl_major} = %{EVRD}
%endif
Requires:	bumblebee

%description
Primus is a shared library that provides OpenGL and GLX APIs and 
implements low-overhead local-only client-side OpenGL offloading via GLX 
forking, similar to VirtualGL. It intercepts GLX calls and redirects GL 
rendering to a secondary X display, presumably driven by a faster GPU. 
On swapping buffers, rendered contents are read back using a PBO and 
copied onto the drawable it was supposed to be rendered on in the first 
place.

%files
%doc LICENSE.txt README.md
%attr(0755,root,root) %{_bindir}/primusrun

#----------------------------------------------------------------------------

%package -n	%{libgl}
Summary:	Implementation of the OpenGL API - GLX runtime
Group:		System/Libraries

# Let us pull in libGL and its dependencies from Mesa as well.
# Primus actually uses them.
Requires:	%{_lib}gl1

# Make it easier to install 32-bit libGL from primus on 64-bit systems
# (e.g., for Steam, etc.)
%ifarch %{ix86}
Provides:	%{name}-lib32 = %{EVRD}
%endif

%description -n	%{libgl}
Implementation of the OpenGL API - GLX runtime.

%files -n	%{libgl}
%dir %{_libdir}/primus
%{_libdir}/primus/libGL.so.1

#----------------------------------------------------------------------------

%prep
%setup -q
%apply_patches

%build
%make

%install
# install all files into the BuildRoot
install -D lib/libGL.so.1 %{buildroot}%{_libdir}/primus/libGL.so.1
install -D %{SOURCE1} %{buildroot}%{_bindir}/primusrun

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20551 |21nr|printer-driver-rastertolilo-0-0.git505af9.1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define commit 505af9a28e8504c448027c493525f094684ffe9d
%define commit_short %(echo %{commit} | head -c6)

Summary:	Proprietary filter (driver) for printers Ricoh SP 210 and 211
Name:		printer-driver-rastertolilo
Version:	0
Release:	0.git%{commit_short}.1
License:	Public Domain
Group:		System/Printing
# see also: https://github.com/droidzone/ricohsp210
Url:		https://github.com/revisitor/ricoh-sp100
Source0:	https://github.com/revisitor/ricoh-sp100/archive/%{commit}.tar.gz?/ricoh-sp100-%{commit}.tar.gz
# we package a 32 bit blob
ExclusiveArch:	%{ix86}

%description
Proprietary filter (driver) for printers Ricoh SP 210 and Ricoh SP 211

%files
%license LICENSE
/usr/lib/cups/filter/rastertolilo
# co-owned with other packages
%dir %{_datadir}/cups/model/ricoh
%{_datadir}/cups/model/ricoh/RICOH_SP_210.ppd
%{_datadir}/cups/model/ricoh/RICOH_SP_211.ppd

#------------------------------------------------------------------

%prep
%autosetup -p1 -n ricoh-sp100-%{commit}

%install
mkdir -p %{buildroot}%{_datadir}/cups/model/ricoh
# other PPDs are packaged from the same source in printer-driver-pstoricohddst-gdi
install -m644 ppd/RICOH_SP_210.ppd %{buildroot}%{_datadir}/cups/model/ricoh/
install -m644 ppd/RICOH_SP_211.ppd %{buildroot}%{_datadir}/cups/model/ricoh/
mkdir -p %{buildroot}/usr/lib/cups/filter
# 32 bit blob
# see also: https://unix.stackexchange.com/a/217841
install -m755 rastertolilo %{buildroot}/usr/lib/cups/filter/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20552 |21nr|prism54-firmware-1.0.4.3-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define name prism54-firmware
%define version 1.0.4.3
%define isl3877_version 1.1.0.0
%define isl3886_version 2.7.0.0
%define release 8

Summary: Firmware for the Linux prism54 driver
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://prism54.org/firmware/%{version}.arm
Source1: http://prism54.org/firmware/%{isl3877_version}.arm
Source2: http://daemonizer.de/prism54/prism54-fw/fw-softmac/lmac_%{isl3886_version}.arm
License: Maybe redistributable
Group: System/Kernel and hardware
Url: http://wireless.kernel.org/en/users/Drivers/p54#firmware
BuildArch: noarch


%description
Firmware for the Linux Kernel prism54 driver.

%install
rm -rf %{buildroot}
mkdir -p %{buildroot}/lib/firmware
install %{SOURCE0} %{buildroot}/lib/firmware/isl3890
install %{SOURCE1} %{buildroot}/lib/firmware/isl3877
install %{SOURCE1} %{buildroot}/lib/firmware/isl3886

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
/lib/firmware/isl38*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20553 |21nr|prototype-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Award-winning RType clone
Name:		prototype
Version:	1.0
Release:	4
License:	Freeware
Group:		Games/Arcade
URL:		http://xout.blackened-interactive.com/ProtoType/Prototype.html
Source0:	http://xout.blackened-interactive.com/dump/new/ProtoType_src.zip
Source1:	http://xout.blackened-interactive.com/ProtoType/ProtoType.zip
# some patches (0-6) depend on each other, we must fix it it future
# these patches are from Gentoo with few modifications
Patch0:		prototype-1.0-makefile.patch
Patch1:		prototype-1.0-includes.patch
Patch2:		prototype-1.0-sdlrendertarget.patch
Patch3:		prototype-1.0-setstate.patch
Patch4:		prototype-1.0-linuxfixes.patch
Patch5:		prototype-1.0-hacks.patch
Patch6:		prototype-1.0-homedir.patch
BuildRequires:	devil-devel
BuildRequires:	fmod3-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	dos2unix
BuildRequires:	imagemagick
# fmod3 is 32 bit only so this one is too
ExclusiveArch:	%{ix86}

%description
Inspired by an old favourite of mine, Prototype pits you against a horde
of enemies in this short but fun RType clone. Prototype has been featured
in numerous magazines and even was awarded "Freeware Game of the month" in
PC Zone It was also awarded first place in the first shmup-dev competition.

%prep
%setup -q -c -a 1
dos2unix *.cpp *.h
%patch0 -p0
%patch1 -p0
%patch2 -p0
%patch3 -p0
%patch4 -p0
%patch5 -p0
%patch6 -p0
for i in *.cpp; do sed -i "$i" -e "s:Data/:"%{_gamesdatadir}"/"%{name}"/:g"; done
mv ProtoType/Data/Gfx/forcecharge.png ProtoType/Data/Gfx/ForceCharge.png
mv ProtoType/Data/Gfx/chainParticle.png ProtoType/Data/Gfx/ChainParticle.png
mv ProtoType/Data/Gfx/Ladybird.png ProtoType/Data/Gfx/LadyBird.png
mv ProtoType/Data/Gfx/Turret1.png ProtoType/Data/Gfx/turret1.png
mv ProtoType/Data/Gfx/StarBurst.png ProtoType/Data/Gfx/Starburst.png
mv ProtoType/Data/Gfx/forceblast.png ProtoType/Data/Gfx/Forceblast.png
mv ProtoType/Data/Gfx/Fireball.png ProtoType/Data/Gfx/FireBall.png
mv ProtoType/Data/Gfx/anim_back1.png ProtoType/Data/Gfx/Anim_back1.png
mv ProtoType/Data/Gfx/anim_back2.png ProtoType/Data/Gfx/Anim_back2.png
mv ProtoType/Data/Gfx/anim_Fore1.png ProtoType/Data/Gfx/Anim_Fore1.png
mv ProtoType/Data/Gfx/anim_Fore2.png ProtoType/Data/Gfx/Anim_Fore2.png
mv ProtoType/Data/Gfx/anim_Fore3.png ProtoType/Data/Gfx/Anim_Fore3.png
mv ProtoType/Data/Gfx/WaterSplash.png ProtoType/Data/Gfx/watersplash.png
mv ProtoType/Data/Gfx/PrototypeMk1.png ProtoType/Data/Gfx/Prototypemk1.png
mv ProtoType/Data/Sound/deflection.wav ProtoType/Data/Sound/Deflection.wav
mv ProtoType/Data/Sound/smallExplosion.wav ProtoType/Data/Sound/SmallExplosion.wav
mv ProtoType/Data/Sound/PickUp.wav ProtoType/Data/Sound/Pickup.wav
mv ProtoType/Data/Sound/UI_Select.wav ProtoType/Data/Sound/UI_select.wav

%build
%make

%install
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/mandriva-%{name}.desktop << EOF
[Desktop Entry]
Name=Prototype
Comment=Award-winning RType clone
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

install -d %{buildroot}{%{_iconsdir},%{_miconsdir},%{_liconsdir}}
install -d %{buildroot}%{_iconsdir}/hicolor/{16x16,32x32,48x48,64x64,128x128}/apps
convert ProtoType/Data/Gfx/FireBug.png -resize 32x32 %{buildroot}%{_iconsdir}/%{name}.png
convert ProtoType/Data/Gfx/FireBug.png -resize 48x48 %{buildroot}%{_liconsdir}/%{name}.png
convert ProtoType/Data/Gfx/FireBug.png -resize 16x16 %{buildroot}%{_miconsdir}/%{name}.png
convert ProtoType/Data/Gfx/FireBug.png -resize 16x16 %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
convert ProtoType/Data/Gfx/FireBug.png -resize 32x32 %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
convert ProtoType/Data/Gfx/FireBug.png -resize 48x48 %{buildroot}%{_iconsdir}/hicolor/48x48/apps/%{name}.png
convert ProtoType/Data/Gfx/FireBug.png -resize 64x64 %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
convert ProtoType/Data/Gfx/FireBug.png -resize 128x128 %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

install -d %{buildroot}%{_gamesdatadir}/%{name}
install -d %{buildroot}%{_gamesbindir}
mv %{name} %{buildroot}%{_gamesbindir}/%{name}

cp -r ProtoType/Data/* %{buildroot}%{_gamesdatadir}/%{name}/

%files
%doc ProtoType/README.txt
%{_gamesbindir}/%{name}
%{_datadir}/applications/mandriva-%{name}.desktop
%{_gamesdatadir}/%{name}
%{_iconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_iconsdir}/hicolor/*/apps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20554 |21nr|python3-pyopencl-2016.1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define module pyopencl

%define __noautoreq libOpenCL.*

Summary:	Python wrapper for OpenCL

Name:		python3-%{module}
Version:	2016.1
Release:	3
License:	MIT
Group:		Development/Python
Url:		http://mathema.tician.de/software/pyopencl
Source0:	%{module}-%{version}.tar.gz
BuildRequires:	nvidia-current-cuda-opencl
BuildRequires:	python3-cffi
BuildRequires:	python3-mako
BuildRequires:	python3-numpy-devel
BuildRequires:	python3-pytools
BuildRequires:	python3-setuptools
BuildRequires:	python3-sphinx
BuildRequires:	python3-six
BuildRequires:	nvidia-cuda-toolkit-devel
BuildRequires:	nvidia-current-devel
BuildRequires:	pkgconfig(python3)
Requires:	nvidia-current-cuda-opencl
ExclusiveArch:	x86_64

%description
PyOpenCL gives you easy, Pythonic access to the OpenCL parallel
computation API. What makes PyOpenCL special?

* Object cleanup tied to lifetime of objects. This idiom, often called
  RAII in C++, makes it much easier to write correct, leak- and
  crash-free code.
* Completeness. PyOpenCL puts the full power of OpenCL’s API at your
  disposal, if you wish. Every obscure get_info() query and all CL
  calls are accessible.
* Automatic Error Checking. All errors are automatically translated
  into Python exceptions.
* Speed. PyOpenCL's base layer is written in C++, so all the niceties
  above are virtually free.
* Helpful Documentation.

This package has been build against NVIDIA's OpenCL implementation.

%files
%doc examples/
%{py3_platsitedir}/pyopencl*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
python3 ./configure.py --cl-lib-dir=/usr/lib/nvidia-current,/usr/lib64/nvidia-current
python3 setup.py build

#pushd doc/
#export PYTHONPATH=`dir -d ../build/lib.linux*`
#make PAPER=letter html
#find -name .buildinfo | xargs rm -f
#popd

%install
PYTHONDONTWRITEBYTECODE=  python3 setup.py install --root=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20555 |21nr|python-pycuda-2021.1-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define pypi_name	pycuda

# CUDA version used to build the package:
%define cuda_ver 7.5.18

# NVIDIA driver version required by CUDA:
%define driver_ver 375.26

# Since x11-driver-video-nvidia* doesn't explicitly provide
# this, it shouldn't be included in the requires list:
%if %{_use_internal_dependency_generator}
%global __requires_exclude libcuda.*
%else
%define _requires_exceptions libcuda.*
%endif
# keep private private
%global __provides_exclude _pvt_struct.so|_driver.so

%bcond_with doc

Summary:	Python wrapper for NVIDIA's CUDA API
Name:		python-%{pypi_name}
Version:	2021.1
Release:	1
License:	MIT
Group:		Development/Python
Url:		https://mathema.tician.de/software/pycuda
Source0:	https://pypi.io/packages/source/p/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
BuildRequires:	nvidia-cuda-toolkit-devel >= %{cuda_ver}
BuildRequires:	nvidia-devel >= %{driver_ver}
BuildRequires:	boost-devel
Requires:	nvidia-cuda-toolkit >= %{cuda_ver}
Requires:	nvidia-cuda >= %{driver_ver}
Requires:	nvidia >= %{driver_ver}
ExclusiveArch:	x86_64

%description
PyCuda lets you access Nvidia's CUDA parallel computation API from
Python. Several wrappers of the CUDA API already exist - so what's so
special about PyCuda?

* Object cleanup tied to lifetime of objects. This idiom, often called
  RAII in C++, makes it much easier to write correct, leak- and
  crash-free code. PyCuda knows about dependencies, too, so (for
  example) it won't detach from a context before all memory allocated
  in it is also freed.
* Convenience. Abstractions like pycuda.driver.Sourcepypi_name and
  pycuda.gpuarray.GPUArray make CUDA programming even more convenient
  than with Nvidia's C-based runtime.
* Completeness. PyCuda puts the full power of CUDA's driver API at
  your disposal, if you wish.
* Automatic Error Checking. All CUDA errors are automatically
  translated into Python exceptions.
* Speed. PyCuda's base layer is written in C++, so all the niceties
  above are virtually free.
* Helpful Documentation.

#---------------------------------------------------------------

%package -n python3-%{pypi_name}
Group:		Development/Python
Summary:	Python wrapper for NVIDIA CUDA
BuildRequires:	python3egg(numpy)
BuildRequires:	python3-numpy-devel
%if %{with doc}
BuildRequires:	python3-sphinx
BuildRequires:	python3-sphinx-copybutton
%endif
BuildRequires:	python3egg(setuptools)
BuildRequires:	pkgconfig(python3)
BuildRequires:	python3-numpy-devel
Requires:	python3egg(pytools)
Requires:	python3egg(pytest) >= 2.6.4
Requires:	python3egg(decorator) >= 3.2.0
Requires:	nvidia-cuda-toolkit >= %{cuda_ver}
Requires:	nvidia-cuda >= %{driver_ver}
Requires:	nvidia >= %{driver_ver}

%description -n python3-%{pypi_name}
PyCuda lets you access Nvidia's CUDA parallel computation API from
Python. Several wrappers of the CUDA API already exist - so what's so
special about PyCuda?

* Object cleanup tied to lifetime of objects. This idiom, often called
  RAII in C++, makes it much easier to write correct, leak- and
  crash-free code. PyCuda knows about dependencies, too, so (for
  example) it won't detach from a context before all memory allocated
  in it is also freed.
* Convenience. Abstractions like pycuda.driver.Sourcepypi_name and
  pycuda.gpuarray.GPUArray make CUDA programming even more convenient
  than with Nvidia's C-based runtime.
* Completeness. PyCuda puts the full power of CUDA's driver API at
  your disposal, if you wish.
* Automatic Error Checking. All CUDA errors are automatically
  translated into Python exceptions.
* Speed. PyCuda's base layer is written in C++, so all the niceties
  above are virtually free.
* Helpful Documentation.
This is python3 pypi_name.

%files -n python3-%{pypi_name}
%doc README_SETUP.txt
%if %{with doc}
%doc html
%endif
%{py3_platsitedir}/%{pypi_name}
%{py3_platsitedir}/%{pypi_name}-%{version}-py*.egg-info

#--------------------------------------------------------------------

%prep
%setup -qn %{pypi_name}-%{version}
rm -rf %{pypi_name}-%{version}/%{pypi_name}.egg-info

%if %{with doc}
sphinx-build doc/source html && rm -rf html/.{doctrees,buildinfo}
%endif

%build
python3 ./configure.py --cudadrv-lib-dir=/usr/lib/nvidia-current,/usr/lib64/nvidia-current \
  --boost-inc-dir=%{_includedir},%{_includedir}/boost \
  --boost-lib-dir=%{_libdir} \
  --boost-python-libname=boost_python3 \
  --boost-thread-libname=boost_thread

%install
python3 setup.py install --root=%{buildroot}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20556 |21nr|python-pyopencl-2016.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%define module pyopencl

%define __noautoreq libOpenCL.*

Summary:	Python wrapper for OpenCL

Name:		python-%{module}
Version:	2016.1
Release:	4
License:	MIT
Group:		Development/Python
Url:		http://mathema.tician.de/software/pyopencl
Source0:	%{module}-%{version}.tar.gz
BuildRequires:	nvidia-current-cuda-opencl
BuildRequires:	python-cffi
BuildRequires:	python-mako
BuildRequires:	python-numpy-devel
BuildRequires:	python-pytools
BuildRequires:	python-setuptools
BuildRequires:	python-sphinx
BuildRequires:	nvidia-cuda-toolkit-devel
BuildRequires:	nvidia-current-devel
BuildRequires:	pkgconfig(python)
Requires:	nvidia-current-cuda-opencl
ExclusiveArch:	x86_64

%description
PyOpenCL gives you easy, Pythonic access to the OpenCL parallel
computation API. What makes PyOpenCL special?

* Object cleanup tied to lifetime of objects. This idiom, often called
  RAII in C++, makes it much easier to write correct, leak- and
  crash-free code.
* Completeness. PyOpenCL puts the full power of OpenCL’s API at your
  disposal, if you wish. Every obscure get_info() query and all CL
  calls are accessible.
* Automatic Error Checking. All errors are automatically translated
  into Python exceptions.
* Speed. PyOpenCL's base layer is written in C++, so all the niceties
  above are virtually free.
* Helpful Documentation.

This package has been build against NVIDIA's OpenCL implementation.

%files
%doc examples/
%{py_platsitedir}/pyopencl*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{module}-%{version}

%build
%__python ./configure.py --cl-lib-dir=/usr/lib/nvidia-current,/usr/lib64/nvidia-current
%__python setup.py build

# pushd doc/
# export PYTHONPATH=`dir -d ../build/lib.linux*`
# make PAPER=letter html
# find -name .buildinfo | xargs rm -f
# popd

%install
PYTHONDONTWRITEBYTECODE= %__python setup.py install --root=%{buildroot}


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20557 |21nr|raine-0.91.19-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# Debug is not properly generated and we don't need it anyway here
%define	_enable_debug_packages %{nil}
%define	debug_package %{nil}

%define	build_optimization 0
%{?_with_optimization: %{expand: %%global build_optimization 1}}

Summary:	An arcade emulator
Name:		raine
Version:	0.91.19
Release:	2
#i.e: "Raine license", open-source freeware, distributable
License:	Freeware
Group:		Emulators
Url:		http://raine.1emulation.com/
Source0:	https://github.com/zelurker/raine/archive/%{version}.tar.gz?/%{name}-%{version}.tar.gz
Source1:	icons.zip
Source2:	rainedocs.zip
Source3:	http://raine.1emulation.com/archive/command.7z
Source5:	shots.pl
Source6:	raine-neocd-cheats.tar.gz
Source7:	http://raine.1emulation.com/archive/hiscore-211.7z
Source8:	raine-fonts.tar.bz2
Source9:	raine-bitmaps.tar.bz2
Source10:	http://raine.1emulation.com/archive/history-%{name}-2.28.7z
Source11:	http://raine.1emulation.com/archive/blend_201501.7z
Source20:	%{name}.rpmlintrc
Patch0:		raine-0.91.10-makefile-libs.patch
ExcludeArch:	%{armx}

# emudx sources from : http://raine.1emulation.com/download/extras.html
# to add an emudx file :
# add its basename to the emudx_sources list below 
%define emudx_sources "dkongg dkongm froggerg froggerm galdxg galdxm\
 mspacmang pacmang"
#mspacmanm pacmanm
# this generates Source1xx tags (400 max)
%(echo %{emudx_sources} | awk 'BEGIN { RS=" "; n=0 }; { print "Source"100+n":\t"$1".dx2"; n++ };')
# this generates the list of emudx files for the install step
%define emudx_files %(echo %{emudx_sources} | awk 'BEGIN { RS=" "; files="" }; { files=files" %{_sourcedir}/"$1".dx2"}; END { print files };')

# artwork sources from : http://raine.1emulation.com/download/extras.html
# to add an artwork archive :
# add its basename to the artwork_sources list below
%define artwork_sources "1941 19xx arbalest arkanoid arknoid2 batrider\
 bjtwin block darius2 ddonpach dfeveron dkong dogyuun donpachi downtown\
 driftout extrmatn fireshrk frogger ghoulsu gunbird majest12 matmania\
 mercs msh mspacman msword ninjaw outzone pacman pacplus pengo puckman\
 s1945 sf2ce slammast ssi superman tdragon terracre thunderl tknight\
 tndrcade varth vimana warriorb xmcota"
# this generates Source5xx tags
%(echo %{artwork_sources} | awk 'BEGIN { RS=" "; n=0 }; { print "Source"500+n":\t"$1".zip"; n++ };')
# this generates the list of artwork files for the install step
%define artwork_files %(echo %{artwork_sources} | awk 'BEGIN { RS=" "; files="" }; { files=files" %{_sourcedir}/"$1".zip"}; END { print files };')

BuildRequires:	desktop-file-utils
BuildRequires:	nasm
BuildRequires:	p7zip
BuildRequires:	SDL_sound-devel
BuildRequires:	smpeg-devel
# the rest
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libmikmod)
BuildRequires:	pkgconfig(libpng)
BuildRequires:	pkgconfig(muparser)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_ttf)
BuildRequires:	pkgconfig(vorbisfile)
#ExclusiveArch:	%%{ix86}
%rename	%{name}-neocd
Provides:	neoraine = %{EVRD}
# For the shots script
Requires:	wget

%description
Raine is an emulator, it emulates some M68000 and M68020 arcade games and is
mainly focused on Taito and Jaleco games hardware. Since 0.62 Raine was merged
with NeoRaine into one emulator.
To play NeoGeo CD games you need neocd.bin (or neocd.zip), which is the neocd
bios, to be in the (neo)raine's data directory:
%{_gamesdatadir}/raine .

%files -f %{name}.lang
%doc %{name}.txt %{name}.lyx
%{_gamesbindir}/%{name}
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/cheats.cfg
%{_gamesdatadir}/%{name}/debug_dips.txt
%{_gamesdatadir}/%{name}/command.dat
%{_gamesdatadir}/%{name}/hiscore.dat
%{_gamesdatadir}/%{name}/history.dat
# Ex-neocd files
%{_gamesdatadir}/%{name}/neocheats.cfg
%{_gamesdatadir}/%{name}/shots.pl
%{_gamesdatadir}/%{name}/bitmaps
%{_gamesdatadir}/%{name}/blend
%{_gamesdatadir}/%{name}/fonts
%{_gamesdatadir}/%{name}/roms
%{_gamesdatadir}/%{name}/scripts
%{_gamesdatadir}/%{name}/shaders
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/%{name}.png
%{_miconsdir}/%{name}.png
%{_liconsdir}/%{name}.png
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%package artwork
Summary:	Artwork for Raine
Group:		Emulators
Requires:	raine

%description artwork
Artwork for Raine. These files are pictures used mainly to fill the ugly
black borders in vertical games.

%files artwork
%doc raine.txt
%{_gamesdatadir}/raine/artwork

#----------------------------------------------------------------------------

%package emudx2
Summary:	Files to enhance emulation of old arcade games in raine
Group:		Emulators
Requires:	raine

%description emudx2
Files to enhance emulation of old arcade games. Donkey Kong, Frogger,
Galaxian, Pac-Man and Ms. Pac-Man are suported.
It requires the roms to be enhanced and the raine emulator.

%files emudx2
%doc raine.txt
%{_gamesdatadir}/raine/emudx

#----------------------------------------------------------------------------

%prep
%setup -q
%setup -q -T -D -a 1 -a 2 -a 6 -a 8 -a 9
7za x -y %{SOURCE3}
7za x -y %{SOURCE7}
7za x -y %{SOURCE10}
7za x -y %{SOURCE11}
%patch0 -p1


%build
%ifarch x86_64
rm -f cpuinfo
export OSTYPE
%make NO_ASM=1
%else
%if !%{build_optimization}
rm -f cpuinfo
echo "_MARCH=-march=i686 " > cpuinfo
echo "CPU=pentiumpro" >> cpuinfo
%else
rm -f cpuinfo
%endif
export OSTYPE
%make
%endif


%install
%ifarch x86_64
%makeinstall_std NO_ASM=1
%else
%makeinstall_std
%endif

# Install history, command, hiscore...
install -D -m 644 history.dat %{buildroot}%{_gamesdatadir}/%{name}/history.dat
install -D -m 644 command.dat %{buildroot}%{_gamesdatadir}/%{name}/command.dat
install -D -m 644 hiscore.dat %{buildroot}%{_gamesdatadir}/%{name}/hiscore.dat
install -D -m 644 config/cheats.cfg %{buildroot}%{_gamesdatadir}/%{name}/cheats.cfg
install -D -m 644 config/neocheats.cfg %{buildroot}%{_gamesdatadir}/%{name}/neocheats.cfg

# Install icons
install -D -m 644 Raine48x48.png %{buildroot}%{_liconsdir}/%{name}.png
install -D -m 644 Raine32X32.png %{buildroot}%{_iconsdir}/%{name}.png
install -D -m 644 Raine16X16.png %{buildroot}%{_miconsdir}/%{name}.png

# Install .desktop file
desktop-file-install --vendor="" \
	--remove-key="Encoding" \
	--dir %{buildroot}%{_datadir}/applications/ \
	%{buildroot}%{_datadir}/applications/*

# Install artwork
mkdir -p %{buildroot}%{_gamesdatadir}/%{name}/artwork
install -m 644 %{artwork_files} %{buildroot}%{_gamesdatadir}/%{name}/artwork

# Install emudx stuff
install -d -m 755 %{buildroot}%{_gamesdatadir}/%{name}/emudx
install -m 644 %{emudx_files} %{buildroot}%{_gamesdatadir}/%{name}/emudx

# Install blend files
install -d -m 755 %{buildroot}%{_gamesdatadir}/%{name}/blend
install -m 644 blend/*.bld %{buildroot}%{_gamesdatadir}/%{name}/blend

# Install screenshot perl script
install -D -m 755 %{SOURCE5} %{buildroot}%{_gamesdatadir}/%{name}/shots.pl

%find_lang %{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20558 |21nr|rbdoom3-bfg-1.0.3-7
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname RBDOOM-3-BFG

Summary:	Doom 3: BFG Edition game engine
Name:		rbdoom3-bfg
Version:	1.0.3
Release:	7
License:	GPLv3+
Group:		Games/Arcade
Url:		https://github.com/RobertBeckebans/RBDOOM-3-BFG
# https://github.com/RobertBeckebans/RBDOOM-3-BFG/archive/v%{version}.tar.gz
Source0:	%{oname}-%{version}.tar.gz
Source1:	%{name}.png
# Don't override CXX flags
Patch0:		rbdoom3-bfg-1.0.2-cflags.patch
Patch1:		rbdoom3-bfg-1.0.2-static.patch
Patch2:		rbdoom3-bfg-1.0.3-path.patch
Patch3:		rbdoom3-bfg-1.0.3-ffmpeg29.patch
Patch4:		rbdoom3-bfg-1.0.3-gcc7.patch
Patch5:		rbdoom3-bfg-1.0.3-gcc8.patch
Patch6:		rbdoom3-bfg-1.0.3-c++14.patch
BuildRequires:	cmake
BuildRequires:	imagemagick
BuildRequires:	ffmpeg-devel
BuildRequires:	jpeg-devel
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(zlib)
Provides:	%{oname} = %{EVRD}
Provides:	doom3-bfg = %{version}

%description
Doom 3: BFG Edition game engine with soft shadows, cleaned up source, Linux
and 64 bit support.

WARNING! Playing Doom 3: BFG Edition still requires a legitimate copy of
the game. You can purchase a copy from Steam or your favorite retailer.

Place "base" folder from the Doom 3 installation to:
%{_gamesdatadir}/%{name}/
or
$HOME/.rbdoom3bfg/

%files
%doc README.txt
%license COPYING.txt
%{_gamesbindir}/%{name}
%dir %attr(0777,root,root) %{_gamesdatadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{oname}-%{version}

%build
%global optflags %{optflags} -std=c++14
pushd neo
%cmake
%make
popd

%install
mkdir -p %{buildroot}%{_gamesbindir}
install -m 0755 neo/build/RBDoom3BFG %{buildroot}%{_gamesbindir}/%{name}

# menu-entry
mkdir -p %{buildroot}%{_datadir}/applications
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Doom 3: BFG Edition
Comment=A first-person science fiction horror video game
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
Categories=Game;ArcadeGame;
EOF

# install menu icons
for N in 16 32 48 64 128;
do
convert %{SOURCE1} -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

mkdir -p %{buildroot}%{_gamesdatadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20559 |21nr|roadfighter-1.0.1269-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Konami's Road Fighter remake
Name:		roadfighter
Version:	1.0.1269
Release:	4
# http://www.braingames.getput.com/forum/forum_posts.asp?TID=678&PN=1
License:	Distributable
Group:		Games/Arcade
Url:		http://roadfighter.jorito.net/
Source0:	http://braingames.jorito.net/roadfighter/downloads/%{name}.src_%{version}.tgz
Patch0:		roadfighter-1.0.1269-Makefile.patch
Patch1:		roadfighter-1.0.1269-sformat.patch
Patch2:		roadfighter-1.0.1269-datapath.patch
Patch3:		roadfighter-1.0.1269-desktop.patch
Patch4:		roadfighter-1.0.1269-build-fix.patch
BuildRequires:	desktop-file-utils
BuildRequires:	imagemagick
BuildRequires:	SDL_sound-devel
BuildRequires:	pkgconfig(SDL_image)
BuildRequires:	pkgconfig(SDL_mixer)
BuildRequires:	pkgconfig(SDL_ttf)

%description
This is a remake of a car-based arcade game developed by Konami and released
in 1984. The goal is to reach the finish line within the stages without
running out of time, hitting other cars or running out of fuel.

%files
%doc readme.txt
%{_gamesbindir}/%{name}
%{_gamesdatadir}/%{name}
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_datadir}/applications/%{name}.desktop

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1

# Fix char encondig
iconv --from=ISO-8859-1 --to=UTF-8 readme.txt > readme.txt.utf8
touch -r readme.txt readme.txt.utf8
mv readme.txt.utf8 readme.txt

%build
export CFLAGS="%{optflags}"
%make

%install
# Install game and data
install -d %{buildroot}%{_gamesbindir}
install -m 755 -p %{name} %{buildroot}%{_gamesbindir}/
install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -pr fonts graphics maps sound %{buildroot}%{_gamesdatadir}/%{name}/

# Install icon
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/32x32/apps
convert -resize 32x32 \
  -frame 0x3 \
  -transparent '#dfdfdf' \
  build/linux/roadfighter.png \
  %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png

# Install desktop file
mkdir -p %{buildroot}%{_datadir}/applications
desktop-file-install \
  --dir %{buildroot}%{_datadir}/applications \
  build/linux/%{name}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20560 |21nr|rott-1.1.2-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define Werror_cflags	%nil

Name:		rott
Version:	1.1.2
Release:	5
Summary:	Rise of the Triad
Group:		Games/Arcade
License:	GPL
URL:		http://icculus.org/rott/
Source0:	http://icculus.org/rott/releases/%{name}-%{version}.tar.gz
Source1:	%{name}-shareware.sh
Source2:	%{name}-registered.sh
Source3:	%{name}.autodlrc
Source4:	%{name}-shareware.desktop
Source5:	%{name}-registered.desktop
Source6:	%{name}.png
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(SDL_mixer)

%description
This is the icculus.org Linux port of Apogee's classic 3d shooter
Rise of the Triad, which has been released under the GPL by Apogee.
This version is enhanced with the 'high' resolution rendering from
the winrott port.

%package shareware
Summary:	Rise of the Triad shareware version
Group:		Games/Arcade
Requires:	autodownloader

%description shareware
This is the icculus.org Linux port of Apogee's classic 3d shooter
Rise of the Triad (RotT), which has been released under the GPL by
Apogee. This version is enhanced with the 'high' resolution
rendering from the winrott port.

This package contains the engine for the shareware version of RotT.
In order to play the shareware version, you will need the shareware
datafiles. Which can be freely downloaded from Apogee/3DRealms, but
cannot be distributed as a package. When you start RotT for the
first time it will offer to download the datafiles for you.

%package registered
Summary:	Rise of the Triad registered version
Group:		Games/Arcade
Requires:	zenity

%description registered
This is the icculus.org Linux port of Apogee's classic 3d shooter
Rise of the Triad (RotT), which has been released under the GPL by
Apogee. This version is enhanced with the 'high' resolution
rendering from the winrott port.

This package contains the engine for the registered version of RotT.
If you own the registered version, this allows you to play the
registered version under Linux. Place the registered RotT datafiles
in a dir and start rott-registered from this dir.

%prep
%setup -q

%build
pushd rott
	%make EXTRACFLAGS="%{optflags} -Wno-unused -Wno-pointer-sign -fno-strict-aliasing"
	mv %{name} %{name}-shareware.bin

	make clean
	%make SHAREWARE=0 EXTRACFLAGS="%{optflags} -Wno-unused -Wno-pointer-sign -fno-strict-aliasing"
	mv %{name} %{name}-registered.bin
popd

%install
# no make install target, DIY
install -dm 755 %{buildroot}%{_gamesbindir}
install -m 755 %{name}/%{name}-* %{buildroot}%{_gamesbindir}
install -m 755 %{SOURCE1} %{buildroot}%{_gamesbindir}/%{name}-shareware
install -m 755 %{SOURCE2} %{buildroot}%{_gamesbindir}/%{name}-registered

# the autodownloader-stuff
install -dm 755 %{buildroot}%{_gamesdatadir}/%{name}
install -m 644 %{SOURCE3} %{buildroot}%{_gamesdatadir}/%{name}

# desktop file and icon stuff
install -dm 755 %{buildroot}%{_datadir}/pixmaps
install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/%{name}.png
install -m 644 %{SOURCE6} %{buildroot}%{_datadir}/pixmaps/%{name}-shareware.png

install -dm 755 %{buildroot}%{_datadir}/applications
install -m 644 %{SOURCE4} %{buildroot}%{_datadir}/applications

install -m 644 %{SOURCE5} %{buildroot}%{_datadir}/applications

# man-page
install -dm 755 %{buildroot}%{_mandir}/man6
install -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}-shareware.6
install -m 644 doc/%{name}.6 %{buildroot}%{_mandir}/man6/%{name}-registered.6

%files shareware
%doc README doc/*.txt
%{_gamesbindir}/%{name}-shareware*
%dir %{_gamesdatadir}/%{name}
%{_gamesdatadir}/%{name}/rott.autodlrc
%{_mandir}/man6/%{name}-shareware.6*
%{_datadir}/applications/%{name}-shareware.desktop
%{_datadir}/pixmaps/%{name}-shareware.png

%files registered
%doc README doc/*.txt
%{_gamesbindir}/%{name}-registered*
%dir %{_gamesdatadir}/%{name}
%{_mandir}/man6/%{name}-registered.6*
%{_datadir}/applications/%{name}-registered.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20561 |21./rosa_platform_2021.1/repository/SRPMS/non-free/release-rpm-backup/yandex-browser-24.10.4.815-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^lib(ffmpeg|EGL|GLES|vk_swiftshader|vulkan|abt-bindings|flutter_engine|qt5_shim|qt6_shim|textclassifier)
%global __provides_exclude ^lib(ffmpeg|EGL|GLES|vk_swiftshader|vulkan|abt-bindings|flutter_engine|qt5_shim|qt6_shim|textclassifier)

Summary:	Yandex Browser
Name:		yandex-browser
Version:	24.10.4.815
Release:	1
License:	Multiple, see http://browser.yandex.ru/
Group:		Networking/WWW
Url:		http://browser.yandex.ru/
# https://disk.yandex.ru/d/zaA7S3BpROQrBg - manually download for disk.yandex.ru bug
Source0:	%{name}-stable-%{version}-1.x86_64.rpm
# now ffmpeg-plugin-browser not needed (developers yandex browser say)
Source100:	%{name}.rpmlintrc
Requires:	ca-certificates
Requires:	gstreamer1.0-faad
Requires:	gstreamer1.0-libav
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	wget
Requires:	xdg-utils
ExclusiveArch:	%{x86_64}

%description
The web browser from Yandex
Yandex Browser is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.

%files
%{_bindir}/%{name}-stable
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnome-control-center/default-apps/%{name}.xml
%dir /opt/yandex/
%{_mandir}/man1/yandex*
/opt/yandex/browser
%{_sysconfdir}/xdg/autostart/%{name}_user_setup.desktop
%{_datadir}/kf5/plasma/shells/org.kde.plasma.desktop/contents/updates/add_yandex-browser_to_kde_panel.js

#------------------------------------------------------------------

%prep

%build

%install
pushd %{buildroot}
rpm2cpio %{SOURCE0} | cpio -idmv
popd

rm -rf %{buildroot}/usr/lib/.build-id
rm -rf %{buildroot}/%{_datadir}/lintian

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20562 |21nr|samsung-unified-driver3-3.00.90-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

# Should always be 5
%define libstdc %mklibname stdc++ 5
# Should always be 3
%define libtiff %mklibname tiff 3

Summary:	Samsung Unified Linux Driver
Name:		samsung-unified-driver3
Version:	3.00.90
Release:	1
License:	Distributable
Group:		System/Printing
Url:		http://www.bchemnet.com/suldr/
Source0:	http://www.bchemnet.com/suldr/driver/UnifiedLinuxDriver-%{version}.tar.gz
Source1:	samsung-unified-printer-98_smfp_autoconf_samsung.rules
Source2:	samsung-unified-printer-99_smfp_autoconf_samsung.rules
Source100:	%{name}.rpmlintrc
Provides:	samsung-mfp = %{EVRD}
Requires:	cups
Conflicts:	samsung-unified-driver
ExcludeArch:	%{armx}

%description
Samsung Unified Linux Driver.

%files
%{_bindir}/*
%{_libdir}/libmfp.so*
%{_libdir}/cups/filter/*
%{_datadir}/samsung-unified-driver3
%{_initrddir}/smfpd
%{_sysconfdir}/sane.d/dll.d/smfp
%{_sysconfdir}/udev/rules.d/98_smfpautoconf.rules
%{_sysconfdir}/udev/rules.d/99_smfpautoconf.rules
%{_sysconfdir}/sane.d/smfp.conf
%{_sbindir}/smfpd
%{_libdir}/cups/backend/mfp
%{_libdir}/sane/libsane-smfp.so*
%{_datadir}/cups/model
/opt/Samsung
%{_sysconfdir}/cups/pstosecps.convs
%{_sysconfdir}/cups/pstosecps.types
%{_sysconfdir}/cups/pstospjlps.convs
%{_sysconfdir}/cups/pstospjlps.types
%{_sysconfdir}/cups/smfp.convs
%{_sysconfdir}/cups/smfp.types
/opt/smfp-common/%{_lib}/libnetsnmp.so.10
/opt/smfp-common/%{_lib}/libnetsnmp.so.10.0.2

#----------------------------------------------------------------------------

%package -n %{libstdc}
Summary:	stdc++5 shared library (compat)
Group:		System/Libraries
Conflicts:	%{name} < 3.00.37-3

%description -n %{libstdc}
stdc++5 shared library (compat).

%files -n %{libstdc}
%{_libdir}/libstdc++.so.5*

#----------------------------------------------------------------------------

%package -n %{libtiff}
Summary:	tiff3 shared library (compat)
Group:		System/Libraries
# For compat reasons
Provides:	libtiff = %{EVRD}
Conflicts:	%{name} < 3.00.37-3

%description -n %{libtiff}
tiff3 shared library (compat).

%files -n %{libtiff}
%{_libdir}/libtiff.so.3*

#----------------------------------------------------------------------------

%prep
%setup -q -c
find . -name *htm -exec chmod a-x {} \;
find . -name *htm -exec chmod a+r {} \;

%build

%install
install -d %{buildroot}%{_datadir}/%{name}
cp -a cdroot/Linux/noarch/at_root/* %{buildroot}/

install -d %{buildroot}%{_datadir}/cups/model/samsung/cms
cp -a cdroot/Linux/noarch/at_opt/share/ppd/cms/* %{buildroot}%{_datadir}/cups/model/samsung/cms/
cp -a cdroot/Linux/noarch/at_opt/share/ppd/*.ppd %{buildroot}%{_datadir}/cups/model/
find %{buildroot}%{_datadir}/cups/model/ -name "*.ppd" | xargs gzip -9
# cp -a cdroot/Linux/noarch/at_opt/share/locale %{buildroot}%{_datadir}
cp -a cdroot/Linux/noarch/at_opt/share/{doc,help,images,utils} %{buildroot}%{_datadir}/%{name}/

install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/98_smfpautoconf.rules
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/udev/rules.d/99_smfpautoconf.rules

mkdir %{buildroot}%{_libdir}
pushd cdroot/Linux/noarch
%ifarch x86_64
for i in libstdc++-5-x86_64.tar.gz libtiff-3-x86_64.tar.gz
%else
for i in libstdc++-5-i386.tar.gz libtiff-3-i386.tar.gz
%endif
do
    tar xzf $i
    mv ./usr/lib*/* %{buildroot}/usr/lib*/
done
popd

%ifarch x86_64
cd cdroot/Linux/x86_64
%else
cd cdroot/Linux/i386
%endif

cp -a at_root/* %{buildroot}/
cp -a at_opt/* %{buildroot}%{_prefix}

ln -s libmfp.so.1.0.1 %{buildroot}%{_libdir}/libmfp.so.1
ln -s libmfp.so.1.0.1 %{buildroot}%{_libdir}/libmfp.so
ln -s libsane-smfp.1.0.1 %{buildroot}%{_libdir}/sane/libsane-smfp.so.1
ln -s libsane-smfp.so.1 %{buildroot}%{_libdir}/sane/libsane-smfp.so
install -d %{buildroot}%{_sysconfdir}/sane.d/dll.d
echo "smfp" >> %{buildroot}%{_sysconfdir}/sane.d/dll.d/smfp
chmod 644 %{buildroot}%{_sysconfdir}/sane.d/dll.d/smfp

install -d %{buildroot}%{_libdir}/cups/{backend,filter}

install -d %{buildroot}/opt/Samsung/mfp/{bin,share/images}

cd ../../..
install -m644 cdroot/Linux/OEM.ini %{buildroot}/opt/Samsung/mfp/share/OEM.ini
install -D -m755 cdroot/Linux/noarch/smfpd.sh %{buildroot}%{_initrddir}/smfpd

install -D -m0644 cdroot/Linux/noarch/at_opt/share/images/Configurator.png \
   %{buildroot}/opt/Samsung/mfp/share/images/Configurator.png

rm -rf %{buildroot}/usr/uninstall
rm -f %{buildroot}/usr/bin/gettext
rm -f %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/install.mo

rm -f %{buildroot}/opt/Samsung/mfp/bin/ImageManager*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20563 |21nr|samsung-unified-driver-4.01.17-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package	%{nil}

Summary:	Samsung Unified Linux Driver
Name:		samsung-unified-driver
Version:	4.01.17
Release:	4
License:	Distributable
Group:		System/Printing
Url:		http://www.bchemnet.com/suldr/
Source0:	http://www.bchemnet.com/suldr/driver/UnifiedLinuxDriver-%{version}.tar.gz
Source1:	samsung-unified-printer-98_smfp_autoconf_samsung.rules
Source2:	samsung-unified-printer-99_smfp_autoconf_samsung.rules
Source100:	%{name}.rpmlintrc
## AUTOBUILDREQ-BEGIN
BuildRequires:	cups-devel
BuildRequires:	glibc-devel
BuildRequires:	qt4-devel
BuildRequires:	stdc++-devel
BuildRequires:	tiff-devel
BuildRequires:	pkgconfig(libusb)
BuildRequires:	pkgconfig(libxml-2.0)
BuildRequires:	pkgconfig(sane-backends)
BuildRequires:	pkgconfig(x11)
BuildRequires:	pkgconfig(xext)
## AUTOBUILDREQ-END
Provides:	samsung-mfp = %{EVRD}
Requires:	cups
ExcludeArch:	%{armx}

%description
Samsung Unified Linux Driver.

%files -f sane-smfp.lang
%{_initrddir}/smfpd
%{_sysconfdir}/sane.d/dll.d/smfp
%{_sysconfdir}/udev/rules.d/98_smfpautoconf.rules
%{_sysconfdir}/udev/rules.d/99_smfpautoconf.rules
%{_sysconfdir}/sane.d/smfp.conf
%{_sbindir}/smfpd
%{_bindir}/netdiscovery
%{_libdir}/cups/backend/mfp
%{_libdir}/cups/filter/pstosecps
%{_libdir}/cups/filter/pstospl
%{_libdir}/cups/filter/pstosplc
%{_libdir}/cups/filter/rastertospl
%{_libdir}/cups/filter/rastertosplc
%{_libdir}/libmfp.so*
%{_libdir}/sane/libsane-smfp.so*
%{_datadir}/cups/model/*.ppd*
%dir %{_datadir}/cups/model/samsung
%{_datadir}/cups/model/samsung/cms/*.cts
#%{_datadir}/cups/model/samsung/cms
#%{_datadir}/ppd/cms/*.cts
%dir %{_datadir}/samsung-unified-driver
%{_datadir}/samsung-unified-driver/*
%{_datadir}/applications/Samsung-Configurator.desktop
/opt/smfp-common/lib/libnetsnmp.so.10.0.2
/opt/smfp-common/lib/libscmssc.so
/opt/smfp-common/printer/.version
/opt/smfp-common/lib/libnetsnmp.so.10
%dir /opt/Samsung/mfp/
%dir /opt/Samsung/mfp/bin
/opt/Samsung/mfp/bin/*
%dir /opt/Samsung/mfp/plugins
/opt/Samsung/mfp/plugins/*
%dir /opt/Samsung/mfp/share
/opt/Samsung/mfp/share/OEM.ini
%dir /opt/Samsung/mfp/share/images
/opt/Samsung/mfp/share/images/Configurator.png
%doc cdroot/Linux/noarch/eula/eula.htm
%doc cdroot/Linux/noarch/eula/eula-fr.htm

#----------------------------------------------------------------------------

%prep
%setup -q -c

%build

%install
install -d %{buildroot}%{_datadir}/%{name}
cp -a cdroot/Linux/noarch/at_root/* %{buildroot}/

install -d %{buildroot}%{_datadir}/cups/model/samsung/cms
cp -a cdroot/Linux/noarch/at_opt/share/ppd/cms/* %{buildroot}%{_datadir}/cups/model/samsung/cms/
cp -a cdroot/Linux/noarch/at_opt/share/ppd/*.ppd %{buildroot}%{_datadir}/cups/model/
find %{buildroot}%{_datadir}/cups/model/ -name "*.ppd" | xargs gzip -9
cp -a cdroot/Linux/noarch/at_opt/share/locale %{buildroot}%{_datadir}
cp -a cdroot/Linux/noarch/at_opt/share/{doc,help,help-fr,images,utils} %{buildroot}%{_datadir}/%{name}/

install -D -m0644 %{SOURCE1} %{buildroot}%{_sysconfdir}/udev/rules.d/98_smfpautoconf.rules
install -D -m0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/udev/rules.d/99_smfpautoconf.rules

%ifarch x86_64
cd cdroot/Linux/x86_64
%else
cd cdroot/Linux/i386
%endif

cp -a at_root/* %{buildroot}/
cp -a at_opt/* %{buildroot}%{_prefix}

ln -s libmfp.so.1.0.1 %{buildroot}%{_libdir}/libmfp.so.1
ln -s libmfp.so.1.0.1 %{buildroot}%{_libdir}/libmfp.so
ln -s libsane-smfp.1.0.1 %{buildroot}%{_libdir}/sane/libsane-smfp.so.1
ln -s libsane-smfp.so.1 %{buildroot}%{_libdir}/sane/libsane-smfp.so
install -d %{buildroot}%{_sysconfdir}/sane.d/dll.d
echo "smfp" >> %{buildroot}%{_sysconfdir}/sane.d/dll.d/smfp
chmod 644 %{buildroot}%{_sysconfdir}/sane.d/dll.d/smfp

install -d %{buildroot}%{_libdir}/cups/{backend,filter}
cp pstosecps pstospl pstosplc rastertospl rastertosplc %{buildroot}%{_libdir}/cups/filter/
cp mfp %{buildroot}%{_libdir}/cups/backend/

install -m0755 libscmssc.so %{buildroot}/opt/smfp-common/lib/

install -d %{buildroot}/opt/Samsung/mfp/{bin,share/images}
cp -a qt4/at_opt/bin/* %{buildroot}/opt/Samsung/mfp/bin
cp -a qt4/at_opt/plugins %{buildroot}/opt/Samsung/mfp/

cd ../../..
install -m644 cdroot/Linux/OEM.ini %{buildroot}/opt/Samsung/mfp/share/OEM.ini
install -D -m755 cdroot/Linux/noarch/smfpd.sh %{buildroot}%{_initrddir}/smfpd

# samsung configurator desktop entries
sed -i "s|\$VENDOR|Samsung|" cdroot/Linux/noarch/desktop/*.in
cat >> cdroot/Linux/noarch/desktop/configurator.desktop.in << _EOF
Categories=System;Settings;HardwareSettings;Printing;
_EOF

install -D -m0644 cdroot/Linux/noarch/desktop/configurator.desktop.in \
   %{buildroot}%{_datadir}/applications/Samsung-Configurator.desktop
install -D -m0644 cdroot/Linux/noarch/at_opt/share/images/Configurator.png \
   %{buildroot}/opt/Samsung/mfp/share/images/Configurator.png

rm -rf %{buildroot}/usr/uninstall
rm -f %{buildroot}/usr/bin/gettext
rm -f %{buildroot}%{_datadir}/locale/fr/LC_MESSAGES/install.mo

rm -f %{buildroot}/opt/Samsung/mfp/bin/ImageManager*

%find_lang sane-smfp

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20564 |21nr|sane-firmware-1.0-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Scanner firmware to be used by SANE
Name:		sane-firmware
Version:	1.0
Release:	4
License: 	Proprietary
Group:		Graphics
Url:		http://www.sane-project.org/
Source0:	http://www.meier-geinitz.de/sane/gt68xx-backend/firmware/A2Nfw.usb

%description
This package contains additional firmware to allow some scanners
to work with SANE (Scanner Access Now Easy).

%prep
%setup -qcT

%build
# Nothing to do

%install
mkdir -p %{buildroot}%{_datadir}/sane/gt68xx/
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/sane/gt68xx/

%files
%{_datadir}/sane/gt68xx/*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20565 |21nr|sflowtool-3.26-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		sflowtool
Summary:	sflowtool is a utility for collecting and processing sFlow data
Version:	3.26
Release:	3
License:	Other
Source0:	http://www.inmon.com/bin/%{name}-%{version}.tar.gz
Group:		System/Configuration/Networking
URL:		http://www.inmon.com/technology/sflowTools.php

%description
The sFlow toolkit provides command
line utilities and scripts for analyzing sFlow data.
sflowtool interfaces to utilities such as tcpdump,
ntop and Snort for detailed packet tracing and analysis,
NetFlow compatible collectors for IP flow accounting,
and provides text based output that can be used in scripts
to provide customized analysis and reporting and for 
integrating with other tools such as MRTG or rrdtool.

%prep
%setup -q

%build
%configure
%make

%install
%makeinstall_std

%files
%{_bindir}/%{name}
%doc AUTHORS INSTALL NEWS ChangeLog README

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20566 |21nr|shareware_doom_iwad-1.9-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:		shareware_doom_iwad
BuildArch:	noarch
Version:	1.9
Release:	4
Summary:	Doom v1.9 shareware iwad
# http://www.3ddownloads.com/showfile.php3?file_id=7486
Source0:	%{name}.zip
License:	Shareware
Group:		Games/Arcade
URL:		http://www.doomworld.com/classicdoom/info/shareware.php
%description
Shareware Doom v1.9 iwad.

%install
unzip -o %{SOURCE0}
install -D -m 644 DOOM1.WAD %{buildroot}/%{_gamesdatadir}/doom/doom1.wad

%clean
rm -rf %{buildroot}

%files
%{_gamesdatadir}/doom/doom1.wad

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20567 |21nr|shorten-3.6.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	A fast, low complexity waveform coder
Name:		shorten
Version:	3.6.1
Release:	2
License:	Distributable
Group:		Sound
Url:		http://shnutils.freeshell.org/shorten/
Source0:	http://shnutils.freeshell.org/shorten/dist/src/%{name}-%{version}.tar.gz

%description
Shorten is a low complexity and fast waveform coder (i.e. audio compressor),
originally written by Tony Robinson at SoftSound. It can operate in both lossy
and lossless modes.

%files
%doc AUTHORS ChangeLog COPYING README doc/LICENSE doc/TODO doc/tr156.ps
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*

#-----------------------------------------------------------------------------

%prep
%setup -q


%build
%configure
%make


%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20568 |21nr|skype-install-1.0-10
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Download and install Skype
Name:		skype-install
Version:	1.0
Release:	10
License:	Proprietary
Group:		Networking/Instant messaging
Url:		http://www.skype.com/
Source0:	skype-install.desktop
Source1:	skype-install.png
Source2:	skype-install
ExclusiveArch:	x86_64

%description
This is an installer for Skype.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep

%build
# Nothing to build yet

%install
# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications/

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

# install script file
mkdir -p %{buildroot}%{_bindir}/
install -m755 %{SOURCE2} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20569 |21nr|smathstudio-1.0-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Small mathematic packet with MathCad style
Name:		smathstudio
Version:	1.0
Release:	1
License:	EULA
Group:		Sciences/Mathematics
URL:		http://ru.smath.info/forum/default.aspx?g=posts&t=130

Source0:	https://smath.com/ru-RU/Files/Download/Lw2xA/SMathStudioDesktop.1_0_8348.Mono.tar.gz
Source1:	SSLogo48.png
#Source2: Text_RUS.lang

Requires: mono, mono-winforms

%description
A free mathematical package with a graphical interface for the calculation 
of mathematical expressions, and constructing two-dimensional and
three-dimensional graphs.

%build
#nothing

%prep
%setup -q -c -n %{name}-%{version}
rm -f %{name}_desktop_mono
gzip lang/*
gzip book/*
gzip examples/*
gzip plugins/*
gzip entries/*
gzip snippets/*
# fix wrong-script-end-of-line-encoding
sed -i 's/\r//' EULA/*
# fix permissions
chmod -x EULA/*
chmod -x book/*
chmod -x snippets/*
chmod -x lang/*
chmod -x entries/*

%install
mkdir -p %{buildroot}%{_datadir}/%{name}
cp -af * %{buildroot}%{_datadir}/%{name}/
rm -rf %{buildroot}%{_datadir}/%{name}/EULA

mkdir -p %{buildroot}%{_datadir}/pixmaps
install -Dm644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/%{name}.png

install -dm 755 %{buildroot}%{_datadir}/applications
cat > %{name}.desktop << EOF
[Desktop Entry]
Name=SMathStudio
GenericName=SMath Studio Desktop
Comment=Mathematical editor with MathCad style
Comment[ru]=Математический редактор a-la MathCad
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Education;Math;
EOF
install -m 0644 %{name}.desktop %{buildroot}%{_datadir}/applications/%{name}.desktop

install -dm 755 %{buildroot}%{_bindir}
cat > %{name} << EOF
#!/bin/bash
cd %{_datadir}/%{name}
exec mono "%{_datadir}/%{name}/SMathStudio_Desktop.exe" "\$@"
EOF
install -m 755 %{name} %{buildroot}%{_bindir}/%{name}

%post
gzip -d %{_datadir}/%{name}/lang/*.gz
gzip -d %{_datadir}/%{name}/examples/*.gz
gzip -d %{_datadir}/%{name}/book/*.gz
gzip -d %{_datadir}/%{name}/plugins/*.gz
gzip -d %{_datadir}/%{name}/entries/*.gz
gzip -d %{_datadir}/%{name}/snippets/*.gz

%postun
rm -rf %{_datadir}/%{name}

%files
%doc EULA/*
%{_datadir}/%{name}
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20570 |21nr|softmaker-freeoffice-2016-759.2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

# The revision number should match the first three digits
# shown in TextMaker's Help > About
%define revision 759

%define oversion 16

Summary:	SoftMaker FreeOffice
Name:		softmaker-freeoffice
Version:	2016
Release:	%{revision}.2
License:	Freeware
Group:		Office
Url:		http://www.freeoffice.com
# Not allowed to re-distribute outside of ROSA products and repositories
Source0:	%{name}-%{revision}.tgz
Source1:	softmaker-freeoffice-license.txt
# Hunspell dictionaries
Source10:	http://www.softmaker.net/down/hunspell/softmaker-hunspell-russian.sox
Source11:	softmaker-hunspell-byelorussian-official.sox
Source12:	softmaker-hunspell-french-recommended.sox
Source13:	softmaker-hunspell-italian.sox
Source14:	softmaker-hunspell-polish.sox
Source15:	softmaker-hunspell-spanish-spain.sox
Source16:	softmaker-hunspell-ukrainian.sox
# Adjust desktop files for our needs
Patch0:		softmaker-freeoffice-2016-desktop.patch
BuildRequires:	imagemagick
ExclusiveArch:	%{ix86}

%description
SoftMaker FreeOffice is a complete office suite.

It is reliable, lightning-fast, and Microsoft Office-compatible and comes
with a word processor, spreadsheet, and presentation graphics software.

Important! This edition of SoftMaker FreeOffice doesn't require a product key.
It's not allowed to be distributed outside of ROSA repositories and products.

%files
%doc softmaker-freeoffice-license.txt
%{_bindir}/planmaker
%{_bindir}/presentations
%{_bindir}/textmaker
%{_datadir}/applications/planmaker.desktop
%{_datadir}/applications/presentations.desktop
%{_datadir}/applications/textmaker.desktop
%{_datadir}/mime/packages/%{name}.xml
%{_iconsdir}/hicolor/*/apps/planmaker.png
%{_iconsdir}/hicolor/*/apps/presentations.png
%{_iconsdir}/hicolor/*/apps/textmaker.png
%{_iconsdir}/hicolor/*/mimetypes/application-x-pmd.png
%{_iconsdir}/hicolor/*/mimetypes/application-x-prd.png
%{_iconsdir}/hicolor/*/mimetypes/application-x-tmd.png
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/*

%post
if [ `rpm -q softmaker-freeoffice-install | wc -w` == 1 ]
then
    rpm -e softmaker-freeoffice-install
fi

#----------------------------------------------------------------------------

%prep
%setup -q -c
cp %{SOURCE1} .

mkdir smfree
tar xf freeoffice.tgz -C smfree
rm -f freeoffice.tgz
%patch0 -p1

# Because x86_64 package is a mix of 32 bit main binaries and smserver64
# we should rather ship pure 32 bit package only
rm -f smfree/smserver64

# mv master/ofl%{oversion}files/smfree/mime .
# Use standard icons from icon themes for mimetypes
sed -i s,application-x-pmd,x-office-spreadsheet,g smfree/mime/%{name}%{oversion}.xml
sed -i s,application-x-prd,x-office-presentation,g smfree/mime/%{name}%{oversion}.xml
sed -i s,application-x-tmd,x-office-document,g smfree/mime/%{name}%{oversion}.xml

# Hunspell dictionaries
mkdir smfree/hunspell
unzip %{SOURCE10} -d smfree/hunspell/ru_RU/
unzip %{SOURCE11} -d smfree/hunspell/be_BY_Official/
unzip %{SOURCE12} -d smfree/hunspell/fr_FR_Recommended/
unzip %{SOURCE13} -d smfree/hunspell/it_IT/
unzip %{SOURCE14} -d smfree/hunspell/pl_PL/
unzip %{SOURCE15} -d smfree/hunspell/es_ES/
unzip %{SOURCE16} -d smfree/hunspell/uk_UA/

%build

%install
# Copy main files
mkdir -p %{buildroot}%{_libdir}/%{name}
cp -r smfree/* %{buildroot}%{_libdir}/%{name}/
#cp -r shared_free/* %{buildroot}%{_libdir}/%{name}/
chmod 755 %{buildroot}%{_libdir}/%{name}/planmaker
chmod 755 %{buildroot}%{_libdir}/%{name}/presentations
chmod 755 %{buildroot}%{_libdir}/%{name}/textmaker

# Create symlinks to run applications
mkdir -p %{buildroot}%{_bindir}

# Install desktop files
mkdir -p %{buildroot}%{_datadir}/applications/
install -m 644 smfree/mime/pml%{oversion}.dsk %{buildroot}%{_datadir}/applications/planmaker.desktop
install -m 644 smfree/mime/prl%{oversion}.dsk %{buildroot}%{_datadir}/applications/presentations.desktop
install -m 644 smfree/mime/tml%{oversion}.dsk %{buildroot}%{_datadir}/applications/textmaker.desktop

# Install menu icons
for N in 16 32 48 64 128 256 512;
do
install -D -m 0644 smfree/icons/pml_${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/planmaker.png
install -D -m 0644 smfree/icons/prl_${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/presentations.png
install -D -m 0644 smfree/icons/tml_${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/textmaker.png
done

# Install mime icons (not used for now)
for N in 16 32 48 64 128;
do
install -D -m 0644 smfree/icons/pmd_${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/mimetypes/application-x-pmd.png
install -D -m 0644 smfree/icons/prd_${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/mimetypes/application-x-prd.png
install -D -m 0644 smfree/icons/tmd_${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/mimetypes/application-x-tmd.png
done

# Install mimetypes
mkdir -p %{buildroot}%{_datadir}/mime/packages/
install -m 644 smfree/mime/%{name}%{oversion}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml

# Create wrappers to run applications
mkdir -p %{buildroot}%{_bindir}

cat > %{buildroot}%{_bindir}/planmaker << EOF
#!/bin/sh
# A script to run PlanMaker
if test ! -e \$HOME/.softmaker/hunspell
then
    mkdir -p \$HOME/.softmaker/hunspell/
    cp -r %{_libdir}/%{name}/hunspell/* \$HOME/.softmaker/hunspell/
fi
%{_libdir}/%{name}/planmaker "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/planmaker

cat > %{buildroot}%{_bindir}/presentations << EOF
#!/bin/sh
# A script to run Presentations
if test ! -e \$HOME/.softmaker/hunspell
then
    mkdir -p \$HOME/.softmaker/hunspell/
    cp -r %{_libdir}/%{name}/hunspell/* \$HOME/.softmaker/hunspell/
fi
ext="\${@##*.}"
shopt -s nocasematch
case "\$ext" in
    "prs" ) %{_libdir}/%{name}/presentations -S\""\$@"\";;
    "pps" ) %{_libdir}/%{name}/presentations -S\""\$@"\";;
    "ppsx" ) %{_libdir}/%{name}/presentations -S\""\$@"\";;
    * ) %{_libdir}/%{name}/presentations "\$@";;
esac
EOF
chmod +x %{buildroot}%{_bindir}/presentations

cat > %{buildroot}%{_bindir}/textmaker << EOF
#!/bin/sh
# A script to run TextMaker
if test ! -e \$HOME/.softmaker/hunspell
then
    mkdir -p \$HOME/.softmaker/hunspell/
    cp -r %{_libdir}/%{name}/hunspell/* \$HOME/.softmaker/hunspell/
fi
LD_LIBRARY_PATH=\$LD_LIBRARY_PATH:%{_libdir}/%{name}/dpf %{_libdir}/%{name}/textmaker "\$@"
EOF
chmod +x %{buildroot}%{_bindir}/textmaker

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20571 |21nr|softmaker-freeoffice-install-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Download and install SoftMaker FreeOffice
Name:		softmaker-freeoffice-install
Version:	1.0
Release:	8
License:	Proprietary
Group:		Office
Url:		http://www.freeoffice.com
Source0:	softmaker-freeoffice-install.desktop
Source1:	softmaker-freeoffice-install.png
Source2:	softmaker-freeoffice-install

%description
This is an installer for SoftMaker FreeOffice.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep

%build
# Nothing to build yet

%install
# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications/

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

# install script file
mkdir -p %{buildroot}%{_bindir}/
install -m755 %{SOURCE2} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20572 |21nr|sokoban-1.0.3-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug_package %{nil}

Summary:	Sokoban in space puzzle game
Name:		sokoban
# Fake version number: there is no one, only release date: 2011/12/31
Version:	1.0.3
Release:	1
License:	Proprietary
Group:		Games/Puzzles
Url:		http://dansoft.krasnokamensk.ru/more.html?id=1014
Source0:	http://dansoft.krasnokamensk.ru/data/1014/%{name}_linux.tar.gz
Source1:	%{name}.desktop
Source100:	%{name}.rpmlintrc
Patch0:		sokoban-fix-game-and-libraries-path.patch
BuildRequires:	imagemagick
BuildRequires:	pkgconfig(libpng)

%description
Sokoban in space is a puzzle game.

%files
%doc COPYING
%{_gamesbindir}/%{name}
%{_gamesdatadir}/dansoft/%{name}/
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}_linux

# Fix sRGB profile in the provided images
for i in $(find -type f -name "*.png")
do
convert $i -strip $i
done


%build
# Pre-built stuff: nothing to do...


%install
# Install the wrapper script
install -dm755 %{buildroot}%{_gamesbindir}
cp -R %{name}.sh %{buildroot}%{_gamesbindir}/%{name}
chmod 755 %{buildroot}%{_gamesbindir}/%{name}


# Install the game data
mkdir -p %{buildroot}%{_gamesdatadir}/dansoft/%{name}/
cp -R -t %{buildroot}%{_gamesdatadir}/dansoft/%{name} *
rm -fr %{buildroot}%{_gamesdatadir}/dansoft/%{name}/%{name}.sh
rm -rf %{buildroot}%{_gamesdatadir}/dansoft/%{name}/libs/*
# Need world write permits here
chmod 777 %{buildroot}%{_gamesdatadir}/dansoft/%{name}/maps
chmod 777 %{buildroot}%{_gamesdatadir}/dansoft/%{name}/repeat
chmod 777 %{buildroot}%{_gamesdatadir}/dansoft/%{name}/sandbox


# Massage and install provided icons
for size in 128x128 96x96 64x64 48x48 32x32 22x22 16x16 ; do
	install -dm 0755 %{buildroot}%{_iconsdir}/hicolor/$size/apps
	convert -strip -resize $size images/%{name}.png %{buildroot}%{_iconsdir}/hicolor/$size/apps/%{name}.png
done


# Install menu our entry
desktop-file-install --dir=%{buildroot}%{_datadir}/applications %{SOURCE1} 

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20573 |21nr|sopcast-player-0.8.5-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# In fact, it's noarch package but it depends on 32 bit only sp-auth
# So keep sopcast-player 32 bit only too
%define _enable_debug_packages %{nil}
%define debug_package %{nil}

Summary:	A GUI front-end to SopCast
Name:		sopcast-player
Version:	0.8.5
Release:	4
License:	GPLv2+
Group:		Video
Url:		http://code.google.com/p/sopcast-player/
Source0:	http://sopcast-player.googlecode.com/files/%{name}-%{version}.tar.gz
BuildRequires:	python-setuptools
BuildRequires:	gettext
BuildRequires:	vlc-devel
Requires:	sp-auth
Requires:	pygtk2
Requires:	pygtk2.0-libglade
Requires:	python
Requires:	vlc
ExclusiveArch:	%{ix86}

%description
SopCast Player is designed to be an easy to use Linux GUI front-end for the p2p
streaming technology developed by SopCast. SopCast Player features an 
integrated video player, a channel guide, and bookmarks. Once SopCast Player is
installed it simply "just works" with no required configuration.

%prep
%setup -qn %{name}

%build
%setup_compile_flags
%make

%install
%makeinstall_std

%find_lang %{name}

%files -f %{name}.lang
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.svg


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20574 |21nr|sp-auth-3.2.6-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%if %{_use_internal_dependency_generator}
%global __provides_exclude libstdc++(.*)
%global __requires_exclude libstdc++(.*)|(.*)GLIBC_PRIVATE(.*)
%endif

Summary:	SopCast client
Name:		sp-auth
Version:	3.2.6
Release:	4
License:	Freeware
Group:		Video
Url:		http://code.google.com/p/sopcast-player/
Source0:	http://sopcast-player.googlecode.com/files/%{name}-%{version}.tar.gz
Source1:	libstdcpp5.tgz
ExclusiveArch:	%{ix86}

%description
Command line version of SopCast client.

%files
%{_bindir}/sp-sc-auth
%{_libdir}/%{name}

#----------------------------------------------------------------------------

%prep
%setup -q -n %{name} -a 1

%build
# Nothing

%install
mkdir -p %{buildroot}%{_libdir}/%{name}
install -m 0755 sp-sc-auth %{buildroot}%{_libdir}/%{name}/
install -m 0755 usr/lib/libstdc++.so.5.0.1 %{buildroot}%{_libdir}/%{name}/

pushd %{buildroot}%{_libdir}/%{name}
ln -s libstdc++.so.5.0.1 libstdc++.so.5
popd

# Wrapper
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/sp-sc-auth << EOF
#!/bin/bash

pushd %{_libdir}/%{name}
LD_PRELOAD=./libstdc++.so.5 ./sp-sc-auth \$@
popd
EOF

chmod 0755 %{buildroot}%{_bindir}/sp-sc-auth

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20575 |21nr|spear-demo-1-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           spear-demo
Version:        1
Release:        3
Summary:        Spear of Destiny Demo data files
Group:          Games/Adventure
License:        Distributable
URL:            http://www.idsoftware.com/games/wolfenstein/spear/
#Source0:        ftp://ftp.padua.org/pub/msdos/dos/games/local/soddemo.zip
# repack to tar.gz
Source0:        soddemo.tar.gz
BuildArch:      noarch

%description
This package contains date files for the demo of 
id Software's first-person shooter Wolfenstein 3D: Spear of Destiny.

%prep
%setup -q -n soddemo
sed -i 's|\r||g' SOD.DOC


%build
# nothing to build data files only

%install
mkdir -p %{buildroot}%{_datadir}/spear/demo
install -p -m 644 *.SDM %{buildroot}%{_datadir}/spear/demo


%files
%defattr(-,root,root,-)
%doc SOD.DOC
%{_datadir}/spear

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20576 |21nr|spectrum-roms-20081224-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define 	version 20081224

Name:           spectrum-roms
Version:        %{version}
Release:        3
Summary:        A collection of Spectrum ROM images
Group:          Emulators
License:        Distributable
URL:            http://www.chiark.greenend.org.uk/~cjwatson/code/spectrum-roms/
Source0:        http://www.chiark.greenend.org.uk/~cjwatson/code/%{name}/%{name}-%{version}.tar.gz
Source1:        %{name}-distribution.txt
BuildArch:      noarch

%description
This package provides images of the read-only memories from various
versions of the Sinclair Spectrum. They can be used with various emulators.

%prep
%setup -q -n %{name}

%build
%make

%install
rm -rf %{buildroot}
make install DESTDIR=%{buildroot}%{_prefix}

install -pm 0644 %{SOURCE1} distribution.txt

rm -rf %{buildroot}%{_docdir}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc ChangeLog README distribution.txt
%{_datadir}/%{name}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20577 |21nr|speedtouch-firmware-0.1-11
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define oname speedtouch_mgmt

Summary:	Alcatel Speedtouch USB adsl modem microcode
Name:		speedtouch-firmware
Version:	0.1
Release:	11
License:	Commercial
Group:		System/Kernel and hardware
#http://download.ethomson.com/download/WebUpgrade_MacOSX_R3.zip
#http://download.ethomson.com/download/KQD6_R204.zip
#http://www.speedtouch.com/download/drivers/USB/SpeedTouch330_firmware_3012.zip
Url: 		http://speedtouch.sourceforge.net
Source0:	%{oname}-%{version}.tar.bz2
BuildRequires:	speedtouch-firmware-extractor
BuildArch:	noarch

%description
Alcatel Speedtouch USB adsl modem microcode. Copyright Alcatel.
Needed to make the modem work.

%files
/lib/firmware/speedtch-*.bin.*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname}-%{version}
mv mgmt.o mgmt_rev0.o

%build
for rev in 0 2 4; do
  /usr/sbin/firmware-extractor mgmt_rev$rev.o
  for stage in 1 2; do
    mv speedtch-$stage.bin speedtch-$stage.bin.$rev
  done
done

%install
mkdir -p -m 755 %{buildroot}/lib/firmware
install -m 644 speedtch-*.bin.* %{buildroot}/lib/firmware

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20578 |21nr|steam-1.0.0.75-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

%global __requires_exclude libOpenCL.so.*

Summary:	Installer for Valve's digital software distribution service
Name:		steam
Version:	1.0.0.75
Release:	2
License:	Freeware
Group:		Games/Other
Url:		https://github.com/ValveSoftware/steam-for-linux
Source0:	http://repo.steampowered.com/steam/pool/steam/s/steam/%{name}_%{version}.tar.gz
Source1:	%{name}.rpmlintrc
Patch2:		fix-execution-with-system-runtime.patch
Patch3:		steam-no-dumps.patch
Patch4:		steam_1.0.0.71-desktop.patch
Patch5:		steam_input_rules.patch
Patch6:		steam_vr_rules.patch
Patch7:		steam_1.0.0.74-use-system-locales.patch

BuildRequires:	hicolor-icon-theme

Requires:	alsa-lib
Requires:	awk
Requires:	coreutils
Requires:	curl
Requires:	libcurl-openssl%{_isa}
# binaries built on Debian/Ubuntu are often linked to libcurl-gnutls.so.4
Requires:	libcurl-gnutls%{_isa}
Requires:	dbus
Requires:	desktop-file-utils
Requires:	fonts-ttf-liberation
Requires:	gdk-pixbuf2.0
Requires:	gio2.0-32
Requires:	gtk+2.0
Requires:	heimdal-libs
Requires:	hicolor-icon-theme
Requires:	nss
Requires:	openal
Requires:	pulseaudio
Requires:	xterm
Requires:	xz
Requires:	zenity

# Packages required to run Steam using the native system libraries
# rather than the runtime it keeps (which may be quite old):
%ifarch %{x86_64}
Requires:	lib64opencl1
%endif
Requires:	libacl1
Requires:	libalsa-plugins
Requires:	libalsa-plugins-jack
Requires:	libalsa-plugins-pulseaudio
Requires:	libappindicator1
Requires:	libasound2
Requires:	libasyncns0
Requires:	libatk1.0_0
Requires:	libattr1
Requires:	libavahi-client3
Requires:	libavahi-common3
Requires:	libavcodec58
Requires:	libavformat58
Requires:	libavutil56
Requires:	libbzip2_1
Requires:	libcairo2
Requires:	libcanberra0
Requires:	libcanberra-gtk0
Requires:	libcap2
Requires:	libcg0
Requires:	libcups2
Requires:	libcurl-openssl(x86-32)
Requires:	libcurl-gnutls(x86-32)
Requires:	libdbus-1_3
Requires:	libdbus-glib-1_2
Requires:	libdbusmenu-glib4
Requires:	libdbusmenu-gtk4
Requires:	libdconf1
Requires:	libdrm2
Requires:	libexif12
Requires:	libexpat1
Requires:	libext2fs2
Requires:	libffi7
Requires:	libflac8
Requires:	libfontconfig1
Requires:	libfreebl3
Requires:	libfreeglut3
Requires:	libfreetype6
Requires:	libgcc1
Requires:	libGConf2_4
Requires:	libgcrypt20
Requires:	libgcrypt20
Requires:	libgdk_pixbuf2.0_0
Requires:	libgdk_pixbuf_xlib2.0_0
Requires:	libgio2.0_0
Requires:	libgl1
Requires:	libglapi0
Requires:	libglib2.0_0
Requires:	libglu1
Requires:	libgmodule2.0_0
Requires:	libgmp10
Requires:	libgobject2.0_0
Requires:	libgomp1
Requires:	libgpg-error0
Requires:	libgraphite2_3
Requires:	libgssapi_krb5_2
Requires:	libgstreamer1.0_0
Requires:	libgstreamer-plugins-base1.0_0
Requires:	libgthread2.0_0
Requires:	libgtk+2.0_0
Requires:	libgtk-engines2
Requires:	libgtk-modules2.0
Requires:	libgudev1.0_0
Requires:	libharfbuzz0
Requires:	libice6
Requires:	libidn12
Requires:	libindicator7
Requires:	libjack0
Requires:	libjacknet0
Requires:	libjasper4
Requires:	libjpeg62
Requires:	libjpeg8
Requires:	libjson-c5
Requires:	libk5crypto3
Requires:	libkeyutils1
Requires:	libkrb5_3
Requires:	libkrb5support0
Requires:	liblcms2_2
Requires:	libldap2.4_2
Requires:	libltdl7
Requires:	liblzma5
Requires:	libmurrine
Requires:	libncurses6
Requires:	libncursesw6
Requires:	libnm0
Requires:	libnotify4
Requires:	libnspr4
Requires:	libnss3
Requires:	libogg0
Requires:	libopenal1
Requires:	libopencl1
Requires:	libopenssl-engines1.1
Requires:	liborc0.4_0
Requires:	liborc-test0.4_0
Requires:	libp11-kit0
Requires:	libpango1.0_0
Requires:	libpangocairo1.0_0
Requires:	libpangoft2_1.0_0
Requires:	libpango-modules1.0
Requires:	libpangoxft1.0_0
Requires:	libpci3
Requires:	libpcre1
Requires:	libpcrecpp0
Requires:	libpipewire0.3_0
Requires:	libpixman1_0
Requires:	libpng16
Requires:	libpulseaudio0
Requires:	librtmp0
Requires:	libsamplerate0
Requires:	libsasl2
Requires:	libsasl2-plug-sasldb
Requires:	libSDL1.2_0
Requires:	libSDL2_2.0_0
Requires:	libSDL2_image2.0_0
Requires:	libSDL2_mixer2.0_0
Requires:	libSDL2_net2.0_0
Requires:	libSDL2_ttf2.0_0
Requires:	libSDL_image1.2_0
Requires:	libSDL_mixer1.2_0
Requires:	libSDL_ttf2.0_0
Requires:	libselinux1
Requires:	libsm6
Requires:	libsndfile1
Requires:	libspeex1
Requires:	libsqlite3_0
Requires:	libstdc++6
Requires:	libswscaler5
Requires:	libsystemd0
Requires:	libtdb1
Requires:	libtheora0
Requires:	libtheoradec1
Requires:	libtheoraenc1
# Requires:	libtinfo5
Requires:	libudev1
Requires:	libusb1.0_0
Requires:	libuuid1
Requires:	libva2
Requires:	libvdpau1
Requires:	libvdpau-trace
Requires:	libvorbis0
Requires:	libvorbisenc2
Requires:	libvorbisfile3
Requires:	libvpx6
Requires:	libvulkan1
Requires:	libwrap0
Requires:	libx11_6
Requires:	libx11-xcb1
Requires:	libxau6
Requires:	libxaw7
Requires:	libxcb1
Requires:	libxcb-composite0
Requires:	libxcb-damage0
Requires:	libxcb-dpms0
Requires:	libxcb-dri2_0
Requires:	libxcb-dri3_0
Requires:	libxcb-glx0
Requires:	libxcb-present0
Requires:	libxcb-randr0
Requires:	libxcb-record0
Requires:	libxcb-render0
Requires:	libxcb-res0
Requires:	libxcb-screensaver0
Requires:	libxcb-shape0
Requires:	libxcb-shm0
Requires:	libxcb-sync1
Requires:	libxcb-xf86dri0
Requires:	libxcb-xfixes0
Requires:	libxcb-xinerama0
Requires:	libxcb-xkb1
Requires:	libxcb-xtest0
Requires:	libxcb-xv0
Requires:	libxcb-xvmc0
Requires:	libxcomposite1
Requires:	libxcursor1
Requires:	libxdamage1
Requires:	libxdmcp6
Requires:	libxext6
Requires:	libxfixes3
Requires:	libxft2
Requires:	libxi6
Requires:	libxinerama1
Requires:	libxml2_2
Requires:	libxmu6
Requires:	libxpm4
Requires:	libxrandr2
Requires:	libxrender1
Requires:	libxscrnsaver1
Requires:	libxshmfence1
Requires:	libxt6
Requires:	libxtst6
Requires:	libxxf86vm1
Requires:	libz1
# A compat symlink is created in %%install
Requires:	/%{_lib}/libudev.so.1

Requires:	libgldispatch0
Requires:	libopengl0
Requires:	libglvnd-glx
Requires:	libglvnd-egl
Requires:	libglvnd-gles

# GPU-specific drivers are pulled bellow by mesa(x86-32),
# but at least a software GPU-agnostic renderer is needed
Requires:	libdri-drivers-swrast
# 32 bit OpenGL and Vulkan drivers
Recommends:	mesa(x86-32)

# Add some restricted package to Suggests
Recommends:	libtxc-dxtn
# For the case when 32bit steam is launched on 64bit machine
# (http://bugs.rosalinux.ru/show_bug.cgi?id=6505)
Recommends:	lib64txc-dxtn

ExclusiveArch:	%{ix86} %{x86_64}

%description
Steam is a software distribution service with an online store, automated
installation, automatic updates, achievements, SteamCloud synchronized
savegame and screenshot functionality, and many social features.

%files
%doc %{_docdir}/*
%{_appdatadir}/com.valvesoftware.Steam.metainfo.xml
%{_bindir}/steam*
%{_datadir}/applications/steam.desktop
%{_datadir}/pixmaps/steam*.png
%{_iconsdir}/hicolor/*/apps/steam.*
%dir %{_libdir}/steam
%{_libdir}/steam/libudev.so.0
%{_mandir}/man6/steam.6.*
%{_prefix}/lib/steam/bin_steam.sh*
%{_prefix}/lib/steam/bin_steamdeps.py*
%{_prefix}/lib/steam/bootstraplinux_ubuntu12_32.tar.xz
%{_prefix}/lib/steam/steam_launcher
%{_prefix}/lib/steam/__pycache__/bin_steamdeps.cpython-*.pyc
%{_prefix}/lib/steam/steam.desktop
%{_udevrulesdir}/60-steam-input.rules
%{_udevrulesdir}/60-steam-vr.rules

#----------------------------------------------------------------------------

%prep
%autosetup -p1 -n %{name}-launcher

%build

%install
%makeinstall_std

# Rename steamdeps, it's not working on non-Debian based distros
mv -f %{buildroot}%{_bindir}/steamdeps %{buildroot}%{_bindir}/steamdeps.save

install -D -m644 lib/udev/rules.d/60-steam-input.rules %{buildroot}%{_udevrulesdir}/60-steam-input.rules
install -D -m644 lib/udev/rules.d/60-steam-vr.rules %{buildroot}%{_udevrulesdir}/60-steam-vr.rules

# Create the compatibility symlinks.
# Steam still requires libudev.so.0 but seems to work OK with libudev.so.1.
install -d -m755 %{buildroot}%{_libdir}/steam
ln -sf /%{_lib}/libudev.so.1 %{buildroot}%{_libdir}/steam/libudev.so.0

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20579 |21nr|steam-install-1.0-8
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Download and install Steam
Name:		steam-install
Version:	1.0
Release:	8
License:	Freeware
Group:		Games/Other
Url:		http://www.valvesoftware.com/
Source0:	steam-install.desktop
Source1:	steam-install.png
Source2:	steam-install

%description
This is an installer for Valve Steam.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep

%build
# Nothing to build yet

%install
# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications/

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

# install script file
mkdir -p %{buildroot}%{_bindir}/
install -m755 %{SOURCE2} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20580 |21nr|szip-2.1-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%bcond_with	encoder		# build with encoder (may require license)

%define major 2
%define libname %mklibname sz %{major}
%define devname %mklibname sz -d

Summary:	SZIP - Science Data Lossless Compression library
Name:		szip
Version:	2.1
Release:	4
%if %{with encoder}
License:	Free for non-commercial, scientific use only in HDF software
%else
License:	Free for use in HDF software
%endif
Group:		System/Libraries
Url:		http://hdf.ncsa.uiuc.edu/doc_resource/SZIP/
Source0:	ftp://ftp.hdfgroup.org/lib-external/szip/%{version}/%{name}-%{version}.tar.gz
Patch0:		%{name}-opt.patch
Patch1:		%{name}-linking.patch
BuildRequires:	libtool

%description
SZIP is an implementation of the extended-Rice lossless compression
algorithm. The Consultative Committee on Space Data Systems (CCSDS)
has adopted the extended-Rice algorithm for international standards
for space applications. SZIP is reported to provide fast and effective
compression, specifically for the EOS data generated by the NASA Earth
Observatory System (EOS). It was originally developed at University of
New Mexico (UNM) and integrated with HDF4 by UNM researchers and
developers.

#----------------------------------------------------------------------------

%package -n %{libname}
Summary:	SZIP - Science Data Lossless Compression library
Group:		System/Libraries
Conflicts:	szip < 2.1-2
Obsoletes:	szip < 2.1-2

%description -n %{libname}
SZIP is an implementation of the extended-Rice lossless compression
algorithm. The Consultative Committee on Space Data Systems (CCSDS)
has adopted the extended-Rice algorithm for international standards
for space applications. SZIP is reported to provide fast and effective
compression, specifically for the EOS data generated by the NASA Earth
Observatory System (EOS). It was originally developed at University of
New Mexico (UNM) and integrated with HDF4 by UNM researchers and
developers.

%files -n %{libname}
%doc COPYING RELEASE.txt
%{_libdir}/libsz.so.%{major}*

#----------------------------------------------------------------------------

%package -n %{devname}
Summary:	Development files for SZIP library
Group:		Development/C
Requires:	%{libname} = %{EVRD}
Provides:	%{name}-devel = %{EVRD}
Conflicts:	szip-devel < 2.1-2
Obsoletes:	szip-devel < 2.1-2

%description -n %{devname}
Development files for SZIP library.

%files -n %{devname}
%{_libdir}/libsz.so
%{_includedir}/*.h

#----------------------------------------------------------------------------

%prep
%setup -q
%patch0 -p1
%patch1 -p1

%build
autoreconf -fi
%configure \
	--disable-static \
	%{!?with_encoder:--disable-encoding}
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20581 |21nr|teamviewer-15.4.4445-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define dont_strip 1
%define basever 15
%define debug_package %{nil}

Summary:	Remote Control Application
Name:		teamviewer
Version:	15.4.4445
Release:	1
Vendor:		TeamViewer GmbH
License:	Proprietary; includes substantial Free Software components, notably the Wine Project.
Group:		Networking/Remote access
Url:		http://www.teamviewer.com/
%ifarch x86_64
Source0:	https://download.teamviewer.com/download/%{name}_%{version}_amd64.tar.xz
%else
Source0:	https://download.teamviewer.com/download/%{name}_%{version}_i386.tar.xz
%endif
Source1:	teamviewer.rpmlintrc
Source2:	80-%{name}.preset
AutoReqProv:	no
Requires:	bash
Requires:	desktop-common-data
Requires:	expat
Requires:	%{_lib}alsa2
Requires:	%{_lib}dbus-1_3
Requires:	%{_lib}fontconfig1
Requires:	%{_lib}freetype6
Requires:	%{_lib}jpeg62
Requires:	%{_lib}png0
Requires:	%{_lib}sm6
Requires:	%{_lib}xext6
Requires:	%{_lib}xtst6
Requires:	%{_lib}xdamage1
Requires:	%{_lib}xfixes3
Requires:	%{_lib}xinerama1
Requires:	%{_lib}xrandr2
Requires:	%{_lib}xrender1
Requires:	%{_lib}freetype6
Requires:	lsb
Requires:	glibc >= 2.13
Requires:	%{_lib}stdc++6 >= 4.5.2
Requires:	%{_lib}qt5x11extras5
Requires:	zlib
Conflicts:	teamviewer9 teamviewer8 teamviewer7 teamviewer6 teamviewer5 teamviewer10 teamviewer12 teamviewer13
Provides:	teamviewer%{basever}

%description
TeamViewer is a remote control application. 
TeamViewer provides easy, fast and secure remote access
to Linux, Windows PCs, and Macs.

TeamViewer is free for personal use.
You can use TeamViewer completely free of charge
to access your private computers or to help your friends 
with their computer problems.

To buy a license for commercial use, please visit http://www.teamviewer.com

%files
%doc README.urpmi
%{_bindir}/%{name}*
%{_sbindir}/%{name}*
/etc/%{name}
/opt/%{name}
/var/log/%{name}
%{_datadir}/applications/%{name}.desktop
%{_unitdir}/%{name}d.service
%{_sysconfdir}/pam.d/*
%{_sysconfdir}/security/console.apps/*
%{_iconsdir}/hicolor/*/apps/%{name}.png
%{_presetdir}/80-%{name}.preset

%post
%systemd_post %{name}d.service

%preun
%systemd_preun %{name}d.service

%postun
%systemd_postun_with_restart %{name}d.service

#----------------------------------------------------------------

%prep
%setup -qn %{name}

%build

%install
# extract TeamViewer archive
mkdir -p %{buildroot}
tar xf %{SOURCE0} -C %{buildroot}/
mkdir -p %{buildroot}/opt
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_sbindir}
mkdir -p %{buildroot}/etc
mkdir -p %{buildroot}/var/log
mv %{buildroot}/%{name} %{buildroot}/opt/
chmod -R ugoa+w %{buildroot}/opt/%{name}

install -d %{buildroot}%{_datadir}/applications

cat > README.urpmi <<EOF
The 32-bit version of the device no longer works 
in a 64-bit environment, use the 64-bit version!

32-разрядная версия teamviewer больше не работает 
в 64 разрядном окружении, используйте 64 разрядную 
версию!
EOF

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Version=1.0
Encoding=UTF-8
Name=TeamViewer %{basever}
Comment=TeamViewer Remote Control Application
Comment[ru]=Утилита для удаленного управления другим ПК
Exec=%{name}
Icon=%{name}
Type=Application
Categories=Network;
EOF

ln -s /opt/%{name}/tv_bin/script/%{name} %{buildroot}%{_sbindir}/teamviewer
ln -s /opt/%{name}/logfiles %{buildroot}/var/log/%{name}
ln -s /opt/%{name}/config %{buildroot}/etc/%{name}

pushd %{buildroot}%{_bindir}
ln -s teamviewer teamviewer%{basever}
popd

install -D -p -m 644 %{buildroot}/opt/teamviewer/tv_bin/script/teamviewerd.service %{buildroot}%{_unitdir}/%{name}d.service

# consolehelper configuration
ln -sf %{_bindir}/consolehelper %{buildroot}%{_bindir}/%{name}

mkdir -p %{buildroot}%{_sysconfdir}/pam.d/
mkdir -p %{buildroot}%{_sysconfdir}/security/console.apps

cat > %{buildroot}%{_sysconfdir}/security/console.apps/%{name} <<EOF
USER=root
PROGRAM=/usr/sbin/%{name}
FALLBACK=false
SESSION=true
EOF

cat > %{buildroot}%{_sysconfdir}/pam.d/%{name}  <<EOF
#%PAM-1.0
auth            include         config-util-user
account         include         config-util-user
session         include         config-util-user
EOF

# install menu to hicolor theme icons
pushd %{buildroot}/opt/teamviewer/tv_bin/desktop/
for N in 16 20 24 32 48 256;
do
install -D -m 0644 teamviewer_${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done
popd

install -D -m 0644 %{SOURCE2} %{buildroot}%{_presetdir}/80-%{name}.preset

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20582 |21nr|t-lasku-1.26.1-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define debug_package %{nil}

Summary:	Finnish invoicing software
Name:		t-lasku
Version:	1.26.1
Release:	2
License:	BSD
Group:		Office
Url:		http://helineva.net/%{name}/
Source0:	http://helineva.net/%{name}/%{name}-%{version}-i386.tar.gz
Source1:	http://helineva.net/%{name}/%{name}-%{version}-amd64.tar.gz
Patch0:		t-lasku-build-flags.patch
BuildRequires:	pkgconfig(Qt5Core)
BuildRequires:	pkgconfig(Qt5Gui)
BuildRequires:	pkgconfig(Qt5PrintSupport)
BuildRequires:	pkgconfig(Qt5Script)
BuildRequires:	pkgconfig(Qt5Sql)
BuildRequires:	pkgconfig(Qt5Widgets)
BuildRequires:	pkgconfig(Qt5Xml)
BuildRequires:	pkgconfig(Qt5XmlPatterns)
Requires:	qt5-database-plugin-sqlite
ExclusiveArch:	%{ix86} x86_64

%description
T-lasku is a Finnish invoicing software for Linux.

%files
%doc COPYING
%{_bindir}/%{name}
%{_bindir}/%{name}-cli
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%prep
%ifarch x86_64
%setup -q -T -b1
%else
%setup -q -T -b0
%endif
%patch0 -p1

%build
%setup_compile_flags
%make

%install
%makeinstall_std

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20583 |21nr|unrar-6.2.2-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Decompressor for .rar format archives
Name:		unrar
Version:	6.2.2
Release:	1
Epoch:		1
License:	Freeware
Group:		Archiving/Compression
Url:		http://www.rarlab.com/rar_add.htm
Source0:	http://www.rarlab.com/rar/%{name}src-%{version}.tar.gz

%description
The unrar program is used to uncompress .rar format archives, which were
somewhat popular on DOS based machines.

%files
%doc license.txt readme.txt
%{_bindir}/unrar
%{_libdir}/libunrar.so

#----------------------------------------------------------------------------

%prep
%setup -qn %{name}

%build
# Build main binary
make -f makefile \
	CXXFLAGS="%{optflags} -fPIC" \
	CC=%{__cc} \
	CXX=%{__cxx} \
	LDFLAGS="%{ldflags} -pthread" \
	STRIP=true \
	unrar

mv unrar unrar.bin

# Build runtime library (dynamically loaded by Double Commander and maybe other software)
make -f makefile \
	CXXFLAGS="%{optflags} -fPIC" \
	CC=%{__cc} \
	CXX=%{__cxx} \
	LDFLAGS="%{ldflags} -pthread" \
	STRIP=true \
	lib

%install
install -d -m 755 %{buildroot}%{_bindir}
install -m 755 unrar.bin %{buildroot}%{_bindir}/unrar

install -d -m 755 %{buildroot}%{_libdir}
install -m 755 libunrar.so %{buildroot}%{_libdir}

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20584 |21nr|urbanterror-4.3.4-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define _build_pkgcheck_set %{nil}
%define _build_pkgcheck_srpm %{nil}

%define oname UrbanTerror
%define oversion 43
%define majver 4.3
%define minver 4

Summary:	Urban Terror is a free multi-player first person shooter
Name:		urbanterror
Version:	%{majver}.%{minver}
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://urbanterror.info
Source0:	http://cdn.urbanterror.info/urt/%{oversion}/releases/zips/%{oname}%{oversion}%{minver}_full.zip
Source1:	https://github.com/Barbatos/ioq3-for-UrbanTerror-4/archive/release-%{version}.tar.gz?/ioq3-for-%{oname}-4-release-%{version}.tar.gz
Source10:	%{name}-128.png
Source11:	%{name}-64.png
Source12:	%{name}-32.png
Source13:	%{name}-16.png
Patch0:		urbanterror-4.2.021-q3asm.patch
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(ogg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(vorbisfile)
BuildRequires:	pkgconfig(xxf86vm)
Requires:	%{name}-data = %{version}
ExcludeArch:	%{armx}

%description
Urban Terror(TM) is a free multi-player first person shooter developed by 
FrozenSand, that (thanks to the ioquake3-code) does not require Quake III 
Arena anymore. It is available for Windows, Linux and Macintosh. 
The current version is 4.3.

Urban Terror can be described as a Hollywood tactical shooter; somewhat 
realism based, but the motto is "fun over realism". This results in a very 
unique, enjoyable and addictive game.

No registration required: Install&play!

%files
%doc %{oname}%{oversion}/q3ut4/*.txt %{oname}%{oversion}/q3ut4/*.doc
%{_gamesbindir}/%{name}
%{_gamesbindir}/%{name}-server
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.png

#----------------------------------------------------------------------------

%package data
Summary:	Urban Terror data files (graphics, music, maps etc)
License:	Freeware
Group:		Games/Arcade
Requires:	%{name} = %{version}
BuildArch:	noarch

%description data
Data files used to play Urban Terror.

Warning! Read the license for data files carefully.

"Urban Terror is distributed free over the Internet and is covered by the
Quake 3 SDK licence agreement. The mod files may not be sold [in any form]
or distributed on physical media unless with permission from iD Software."

%files data
%dir %{_gamesdatadir}/%{name}/q3ut4
%{_gamesdatadir}/%{name}/q3ut4/*

#----------------------------------------------------------------------------

%prep
%setup -q -n %{oname} -c -a 1
pushd ioq3-for-%{oname}-4-release-%{version}
perl -pi -e "s|static	int		callMask = 0|int		callMask = 0|" code/qcommon/vm_x86.c
%patch0 -p1
popd

%build
%ifarch %{ix86}
export CFLAGS+=" -fno-strict-aliasing -Wno-error=format-security -DDEBUG -g -msse -msse2"
%else
export CFLAGS+=" -fno-strict-aliasing -Wno-error=format-security -DDEBUG -g"
%endif
mkdir -p build
pushd ioq3-for-%{oname}-4-release-%{version}
%make \
	DEFAULT_BASEDIR=%{_gamesdatadir}/%{name} \
	USE_CURL=1 \
	USE_OPENAL=1 \
	USE_CODEC_VORBIS=1 \
	BUILD_CLIENT=1 \
	BUILD_SERVER=1
cp build/*/*-UrT.* ../build/
cp build/*/*-UrT-Ded.* ../build/
popd

%install
install -d %{buildroot}%{_gamesbindir}
cp build/*-UrT-Ded.* %{buildroot}%{_gamesbindir}/%{name}-server
cp build/*-UrT.* %{buildroot}%{_gamesbindir}/%{name}

install -d %{buildroot}%{_gamesdatadir}/%{name}
cp -r %{oname}%{oversion}/q3ut4 %{buildroot}%{_gamesdatadir}/%{name}/

install -D -m 644 %{SOURCE13} %{buildroot}%{_iconsdir}/hicolor/16x16/apps/%{name}.png
install -D -m 644 %{SOURCE12} %{buildroot}%{_iconsdir}/hicolor/32x32/apps/%{name}.png
install -D -m 644 %{SOURCE11} %{buildroot}%{_iconsdir}/hicolor/64x64/apps/%{name}.png
install -D -m 644 %{SOURCE10} %{buildroot}%{_iconsdir}/hicolor/128x128/apps/%{name}.png

install -d %{buildroot}%{_datadir}/applications

cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=Urban Terror
Comment=%{summary}
Exec=%{_gamesbindir}/%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20585 |21nr|viber-13.3.1.22-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define __os_install_post %{nil}
%define _build_pkgcheck_set %{nil}
%define debug_package %{nil}

%global __provides_exclude lib*\|qml*
%global __requires_exclude libc++\|libcrypto\|libicu\|libpng\|libqface\|libQt5\|libqgsttools_p\|libqrencod\|libxcb-xineram\|libViberRTC

Summary:	Free instant messages and calls
Name:		viber
Version:	13.3.1.22
Release:	1
License:	Proprietary
Group:		Networking/Instant messaging
Url:		http://viber.com
Source0:	http://download.cdn.viber.com/cdn/desktop/Linux/%{name}.deb
Source100:	%{name}.rpmlintrc
ExclusiveArch:	x86_64

%description
Free Text & Calls.
 Join Viber for Desktop to for a one-of-a-kind calling
 and messaging experience right on your computer!
 With Viber for Desktop you can make free international
 calls from your computer to any other Viber user,
 resting assured your calls and messages are
 protected by end-to-end encryption.
 Feel free to call, text, send photos and video messages,
 play YouTube videos and express yourself with stickers
 and GIFs no matter your location.
 Viber for Desktop also provides you with Viber Out's
 low-rate calling plans to any landline or mobile so
 you can reach out to friends and family who don't have
 an internet connection or cell phone.
 Easily sync between your mobile's chat history and
 contact list in order to start enjoying Viber for Desktop

%files
/opt/viber
%{_bindir}/%{name}
%{_datadir}/applications/*.desktop
%{_iconsdir}/hicolor/*/apps/viber.*
%{_datadir}/pixmaps/*
%{_datadir}/%{name}/*

%post
if [ `rpm -q viber-install | wc -w` == 1 ]
then
	rpm -e viber-install
fi

#----------------------------------------------------------------------------

%prep
%setup -q -c -T

%build

%install
# Extract DEB packages:
pushd %{buildroot}
	ar p %{SOURCE0} data.tar.xz | xz -d > %{name}-%{version}.x86_64.tar
	tar -xf %{name}-%{version}.x86_64.tar
popd

# Install menu icons
pushd %{buildroot}/opt/viber/icons/
for N in 16 24 32 48 64 96 128 256;
do
install -D -m 0644 ${N}x${N}.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done
popd
mv %{buildroot}%{_iconsdir}/hicolor/scalable/apps/Viber.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{name}.svg

# Fix executable attributes:
chmod 755 %{buildroot}/opt/%{name}/Viber
mkdir -p %{buildroot}/%{_bindir}
ln -sr %{buildroot}/opt/%{name}/Viber %{buildroot}/%{_bindir}/viber

# Remove unused directories and tarball:
rm %{buildroot}/%{name}-%{version}.x86_64.tar

# We don't like the quality of proprietary Viber, we have to make symlinks,
# otherwise it cannot find this or that, see strace.
# We should not set LD_LIBRARY_PATH, QT_QPA_PLATFORM_PLUGIN_PATH and other env vars,
# because this breaks applications which are run by Viber process (are its children)
# because environmental variables are saved
# and e.g. kde-open5 tries to run with Viber's Qt plugins.
pushd %{buildroot}/opt/viber/
for dir in plugins libexec translations resources
do
	for i in `ls "$dir"`
	do
		ln -s "${dir}/${i}" "$i" || :
	done
done
popd

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20586 |21nr|viber-install-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Download and install Viber
Name:		viber-install
Version:	1.0
Release:	6
License:	Proprietary
Group:		Networking/Instant messaging
Url:		http://viber.com
Source0:	viber-install.desktop
Source1:	viber-install.png
Source2:	viber-install
ExclusiveArch:	x86_64

%description
This is an installer for Viber.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep

%build
# Nothing to build yet

%install
# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications/

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

# install script file
mkdir -p %{buildroot}%{_bindir}/
install -m755 %{SOURCE2} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20587 |21nr|vk-3.1.13-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
# To avoid out of memory error
%define _build_pkgcheck_set %{nil}

%define debug_package %{nil}

%global __requires_exclude_from /opt/vk/resources
%global __requires_exclude libffmpeg.so*|libnode.so*

%define _vkdir /opt/vk

Summary:	Simple and Easy App for Messaging on VK
Name:		vk
Version:	3.1.13
Release:	2
License:	Freeware
Group:		Networking/Instant messaging
Url:		https://vk.com/messenger
# No direct urls
Source0:	%{name}-x86_64.zip
Source1:	%{name}-x86.zip
BuildRequires:	imagemagick
AutoProv:	no
ExcludeArch:	%{armx}

%description
Simple and Easy App for Messaging on VK.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_iconsdir}/hicolor/*/apps/%{name}.*
%{_vkdir}/*

#----------------------------------------------------------------------------

%prep
%setup -qc -T
%ifarch x86_64
unzip -qq %{SOURCE0}
%else
unzip -qq %{SOURCE1}
%endif

%build

%install
mkdir -p %{buildroot}%{_vkdir}
cp -a * %{buildroot}%{_vkdir}/

# install binary wrapper
mkdir -p %{buildroot}%{_bindir}
cat > %{buildroot}%{_bindir}/%{name} << EOF
#!/bin/sh
pushd %{_vkdir}
./vk --disable-gpu
popd
EOF
chmod 755 %{buildroot}%{_bindir}/%{name}

# install menu entry
mkdir -p %{buildroot}%{_datadir}/applications/
cat > %{buildroot}%{_datadir}/applications/%{name}.desktop << EOF
[Desktop Entry]
Name=VK Messenger
Comment=Simple and Easy App for Messaging on VK
Exec=%{name}
Icon=%{name}
Terminal=false
Type=Application
StartupNotify=true
Categories=Network;InstantMessaging;
EOF

# install menu icons
for N in 16 32 48 64 128 256;
do
convert icon256.png -scale ${N}x${N} $N.png;
install -D -m 0644 $N.png %{buildroot}%{_iconsdir}/hicolor/${N}x${N}/apps/%{name}.png
done

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20588 |21nr|wolf3d-shareware-1.4-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           wolf3d-shareware
Version:        1.4
Release:        5
Summary:        Wolfenstein 3D shareware Episode
Group:          Games/Adventure
License:        Shareware
URL:            http://www.3drealms.com/wolf3d/index.html
Source0:        ftp://ftp.3drealms.com/share/1wolf14.zip
Source1:        extract.c
BuildArch:      noarch
BuildRequires:	pkgconfig(libdynamite)
Requires:       wolf4sdl-shareware

%description
This package contains the shareware Episode of id Software's classic
first-person shooter Wolfenstein 3D.

%prep
%setup -q -c


%build
gcc -o extract %{SOURCE1} -ldynamite
./extract W3DSW14.SHR
iconv -f CP850 -t UTF-8 vendor.doc > tmp
cat tmp | sed 's|\r||g' > vendor.doc
touch -r W3DSW14.SHR vendor.doc *.wl1


%install
mkdir -p %{buildroot}%{_datadir}/wolf3d/shareware
install -p -m 666 *.wl1 %{buildroot}%{_datadir}/wolf3d/shareware


%files
%defattr(-,root,root,-)
%doc vendor.doc
%{_datadir}/wolf3d

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20589 |21nr|wolf4sdl-1.7-5
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name:           wolf4sdl
Version:        1.7
Release:        5
Summary:        SDL port of id Software Wolfenstein 3D
Group:          Games/Arcade
License:        Distributable
URL:            http://www.alice-dsl.net/mkroll/
Source0:        http://www.alice-dsl.net/mkroll/bins/Wolf4SDL-1.7-src.zip
Source1:        %{name}.desktop
Patch2:         Wolf4SDL-1.6-registered-apogee.patch
Patch3:         Wolf4SDL-1.6-shareware.patch
Patch4:         Wolf4SDL-1.6-spear.patch
Patch5:         Wolf4SDL-1.6-speardemo.patch
BuildRequires:  SDL-devel SDL_mixer-devel desktop-file-utils

%description
Maybe it was the fact that people got to blow away Nazis. Maybe it was the \
sheer challenge of it all. For whatever reason, Wolfenstein 3D and Spear of \
Destiny, pioneered the first-person shooter genre and brought its legendary \
creators, id Software, worldwide notoriety and numerous awards. In fact, The \
Computer Gaming World Hall of Fame recognized Wolfenstein 3D as helping to \
shape the overall direction of the computer gaming industry. \
\
Wolf4SDL is an open-source port of id Software's classic first-person shooter \
Wolfenstein 3D to the cross-platform multimedia library "Simple DirectMedia \
Layer (SDL)" (http://www.libsdl.org). It is meant to keep the original feel \
while taking advantage of some improvements.

%package        registered-id
Summary:        SDL port of Wolfenstein 3D - id Software registered version
URL:            http://www.idsoftware.com/games/wolfenstein/wolf3d/

%description registered-id
This package contains %{name} compiled for playing the registered version of
Wolfenstein 3D as sold by id Software:
http://www.idsoftware.com/games/wolfenstein/wolf3d/

You will need the original registered version's data files to play the
registered version. Place the data files under /usr/share/wolf3d/registered-id
before starting %{name}-registered-id. Note all file-names must be lowercase!



%package        registered-apogee
Summary:        SDL port of Wolfenstein 3D - Apogee registered version
URL:            http://www.3drealms.com/wolf3d/index.html

%description registered-apogee
This package contains %{name} compiled for playing the registered version of
Wolfenstein 3D as sold by Apogee / 3Drealms here:
http://www.3drealms.com/wolf3d/index.html

You will need the original registered version's data files to play the
registered version. Place the data files under
/usr/share/wolf3d/registered-apogee before starting
%{name}-registered-apogee. Note all file-names must be lowercase!



%package        shareware
Summary:        SDL port of id Software's Wolfenstein 3D - shareware version
URL:            http://www.3drealms.com/wolf3d/index.html
Requires:       wolf3d-shareware

%description shareware
This package contains %{name} compiled for playing the shareware version of
Wolfenstein 3D.



%package        spear
Summary:        SDL port of Wolfenstein 3D - Spear of Destiny version
URL:            http://www.idsoftware.com/games/wolfenstein/spear/

%description spear
This package contains %{name} compiled for playing the Spear of Destiny
prequel to Wolfenstein 3D, sold by id Software:
http://www.idsoftware.com/games/wolfenstein/spear/

You will need the original Spear of Destiny data files to play.
Place the data files under /usr/share/spear/full before starting
%{name}-spear. Note all file-names must be lowercase!



%package        spear-demo
Summary:        SDL port of Wolfenstein 3D - Spear of Destiny demo version
URL:            http://www.idsoftware.com/games/wolfenstein/spear/
Requires:       spear-demo

%description spear-demo
This package contains %{name} compiled for playing the demo of the Spear of
Destiny prequel to Wolfenstein 3D.



%prep
%setup -c -T -n Wolf4SDL-%{version}-src
# Must unpack ourselves to make zip do dos2unix conversion
pushd .. && unzip -a -q %{SOURCE0} && popd
# %patch0 -p1
# %patch1 -p1
# for i in debian/patches/*.patch; do
#     patch -p1 < $i
# done


%build
CFLAGS="$RPM_OPT_FLAGS -Wno-sign-compare -Wno-switch -Wno-unused-result"
CFLAGS="$CFLAGS -fno-toplevel-reorder $(sdl-config --cflags)"

make %{?_smp_mflags} \
    CFLAGS="$CFLAGS -DDATADIR=\\\"/usr/share/wolf3d/registered-id/\\\""
mv wolf3d %{name}-registered-id
cp %{SOURCE1} %{name}-registered-id.desktop
sed -i 's|@NAME@|Wolfenstein 3D Registered (id)|g' \
    %{name}-registered-id.desktop
sed -i 's|@VARIANT@|registered-id|g' %{name}-registered-id.desktop
make clean

patch -p1 < %{PATCH2}
make %{?_smp_mflags} \
    CFLAGS="$CFLAGS -DDATADIR=\\\"/usr/share/wolf3d/registered-apogee/\\\""
mv wolf3d %{name}-registered-apogee
cp %{SOURCE1} %{name}-registered-apogee.desktop
sed -i 's|@NAME@|Wolfenstein 3D Registered (Apogee)|g' \
    %{name}-registered-apogee.desktop
sed -i 's|@VARIANT@|registered-apogee|g' %{name}-registered-apogee.desktop
make clean

patch -p1 < %{PATCH3}
make %{?_smp_mflags} \
    CFLAGS="$CFLAGS -DDATADIR=\\\"/usr/share/wolf3d/shareware/\\\""
mv wolf3d %{name}-shareware
cp %{SOURCE1} %{name}-shareware.desktop
sed -i 's|@NAME@|Wolfenstein 3D Shareware (Apogee)|g' %{name}-shareware.desktop
sed -i 's|@VARIANT@|shareware|g' %{name}-shareware.desktop
make clean

patch -p1 < %{PATCH4}
make %{?_smp_mflags} \
    CFLAGS="$CFLAGS -DDATADIR=\\\"/usr/share/spear/full/\\\""
mv wolf3d %{name}-spear
cp %{SOURCE1} %{name}-spear.desktop
sed -i 's|@NAME@|Spear of Destiny|g' %{name}-spear.desktop
sed -i 's|@VARIANT@|spear|g' %{name}-spear.desktop
make clean

patch -p1 < %{PATCH5}
make %{?_smp_mflags} \
    CFLAGS="$CFLAGS -DDATADIR=\\\"/usr/share/spear/demo/\\\""
mv wolf3d %{name}-spear-demo
cp %{SOURCE1} %{name}-spear-demo.desktop
sed -i 's|@NAME@|Spear of Destiny Demo|g' %{name}-spear-demo.desktop
sed -i 's|@VARIANT@|spear-demo|g' %{name}-spear-demo.desktop


%install
mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{_datadir}/applications
mkdir -p %{buildroot}%{_datadir}/pixmaps

# Help launchers for shareware and spear-demo

cat > %{buildroot}%{_bindir}/%{name}-shareware <<EOF
#!/bin/bash

cd /usr/share/wolf3d/shareware/ && %{name}-shareware.real

EOF

cat > %{buildroot}%{_bindir}/%{name}-spear-demo <<EOF
#!/bin/bash

cd /usr/share/spear/demo/ && %{name}-spear-demo.real

EOF

chmod a+x %{buildroot}%{_bindir}/%{name}-spear-demo


install -m 755 %{name}-registered-id %{buildroot}%{_bindir}/%{name}-registered-id
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
    %{name}-registered-id.desktop
mkdir -p %{buildroot}%{_datadir}/wolf3d/registered-id

install -m 755 %{name}-registered-apogee %{buildroot}%{_bindir}/%{name}-registered-apogee
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
    %{name}-registered-apogee.desktop
mkdir -p %{buildroot}%{_datadir}/wolf3d/registered-apogee

install -m 755 %{name}-shareware %{buildroot}%{_bindir}/%{name}-shareware.real
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
    %{name}-shareware.desktop

install -m 755 %{name}-spear %{buildroot}%{_bindir}/%{name}-spear
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
    %{name}-spear.desktop
mkdir -p %{buildroot}%{_datadir}/spear/full

install -m 755 %{name}-spear-demo %{buildroot}%{_bindir}/%{name}-spear-demo.real
desktop-file-install --dir %{buildroot}%{_datadir}/applications \
    %{name}-spear-demo.desktop


%clean


%files registered-id
%defattr(-,root,root,-)
%doc Changes.txt README.txt license-*.txt
%{_bindir}/%{name}-registered-id
%{_datadir}/applications/%{name}-registered-id.desktop
%dir %{_datadir}/wolf3d
%dir %{_datadir}/wolf3d/registered-id

%files registered-apogee
%defattr(-,root,root,-)
%doc Changes.txt README.txt license-*.txt
%{_bindir}/%{name}-registered-apogee
%{_datadir}/applications/%{name}-registered-apogee.desktop
%dir %{_datadir}/wolf3d
%dir %{_datadir}/wolf3d/registered-apogee

%files shareware
%defattr(-,root,root,-)
%doc Changes.txt README.txt license-*.txt
%{_bindir}/%{name}-shareware
%{_bindir}/%{name}-shareware.real
%{_datadir}/applications/%{name}-shareware.desktop

%files spear
%defattr(-,root,root,-)
%doc Changes.txt README.txt license-*.txt
%{_bindir}/%{name}-spear
%{_datadir}/applications/%{name}-spear.desktop
%dir %{_datadir}/spear
%dir %{_datadir}/spear/full

%files spear-demo
%defattr(-,root,root,-)
%doc Changes.txt README.txt license-*.txt
%{_bindir}/%{name}-spear-demo
%{_bindir}/%{name}-spear-demo.real
%{_datadir}/applications/%{name}-spear-demo.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20590 |21nr|x11-font-adobe-utopia-100dpi-1.0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-adobe-utopia-100dpi
Version: 1.0.4
Release: 3
Summary: Xorg X11 font adobe-utopia-100dpi
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-adobe-utopia-100dpi-%{version}.tar.bz2
# License doesn't say we can modify the software
License: Adobe Utopia
BuildArch: noarch
BuildRequires: x11-font-util >= 1.2
BuildRequires: x11-util-macros >= 1.0.1
Conflicts: xorg-x11-100dpi-fonts <= 6.9.0
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font adobe-utopia-100dpi

%prep
%setup -q -n font-adobe-utopia-100dpi-%{version}

%build
%configure --prefix=/usr --x-includes=%{_includedir}\
	    --x-libraries=%{_libdir} --with-fontdir=%_datadir/fonts/100dpi

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/100dpi/fonts.dir
rm -f %{buildroot}%_datadir/fonts/100dpi/fonts.scale

%post
mkfontscale %_datadir/fonts/100dpi
mkfontdir %_datadir/fonts/100dpi

%postun
mkfontscale %_datadir/fonts/100dpi
mkfontdir %_datadir/fonts/100dpi

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%_datadir/fonts/100dpi/UT*.pcf.gz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20591 |21nr|x11-font-adobe-utopia-75dpi-1.0.4-4
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-adobe-utopia-75dpi
Version: 1.0.4
Release: 4
Summary: Xorg X11 font adobe-utopia-75dpi
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-adobe-utopia-75dpi-%{version}.tar.bz2
# License doesn't say we can modify the software
License: Adobe Utopia
BuildArch: noarch
BuildRequires: x11-font-util >= 1.2
BuildRequires: x11-util-macros >= 1.0.1
Conflicts: xorg-x11-75dpi-fonts <= 6.9.0
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font adobe-utopia-75dpi

%prep
%setup -q -n font-adobe-utopia-75dpi-%{version}

%build
%configure --prefix=/usr --x-includes=%{_includedir}\
	    --x-libraries=%{_libdir} --with-fontdir=%_datadir/fonts/75dpi

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/75dpi/fonts.dir
rm -f %{buildroot}%_datadir/fonts/75dpi/fonts.scale

%post
mkfontscale %_datadir/fonts/75dpi
mkfontdir %_datadir/fonts/75dpi

%postun
mkfontscale %_datadir/fonts/75dpi
mkfontdir %_datadir/fonts/75dpi

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%_datadir/fonts/75dpi/UT*.pcf.gz

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20592 |21nr|x11-font-adobe-utopia-type1-1.0.4-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-adobe-utopia-type1
Version: 1.0.4
Release: 3
Summary: Xorg X11 font adobe-utopia-type1
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-adobe-utopia-type1-%{version}.tar.bz2
# License doesn't say we can modify the software
License: Adobe Utopia
BuildArch: noarch
BuildRequires: fontconfig
BuildRequires: x11-font-util >= 1.2
BuildRequires: x11-util-macros >= 1.0.1
Conflicts: xorg-x11 <= 6.9.0
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font adobe-utopia-type1

%prep
%setup -q -n font-adobe-utopia-type1-%{version}

%build
%configure --prefix=/usr --x-includes=%{_includedir}\
	    --x-libraries=%{_libdir} --with-fontdir=%_datadir/fonts/Type1

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/Type1/fonts.dir
rm -f %{buildroot}%_datadir/fonts/Type1/fonts.scale

%post
mkfontscale %_datadir/fonts/Type1
mkfontdir %_datadir/fonts/Type1

%postun
mkfontscale %_datadir/fonts/Type1
mkfontdir %_datadir/fonts/Type1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%_datadir/fonts/Type1/UT*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20593 |21nr|x11-font-bh-ttf-1.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-bh-ttf
Version: 1.0.3
Release: 3
Summary: Xorg X11 font bh-ttf
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-bh-ttf-%{version}.tar.bz2
# We may not modify the software!
License: Bigelow & Holmes Font License
BuildArch: noarch
BuildRequires: fontconfig
BuildRequires: x11-font-util >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1
Conflicts: xorg-x11 <= 6.9.0
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font bh-ttf

%prep
%setup -q -n font-bh-ttf-%{version}

%build
%configure --prefix=/usr --x-includes=%{_includedir}\
	    --x-libraries=%{_libdir} --with-fontdir=%_datadir/fonts/TTF

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/TTF/fonts.dir
rm -f %{buildroot}%_datadir/fonts/TTF/fonts.scale

%post
mkfontscale %_datadir/fonts/TTF
mkfontdir %_datadir/fonts/TTF

%postun
mkfontscale %_datadir/fonts/TTF
mkfontdir %_datadir/fonts/TTF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%_datadir/fonts/TTF/luxi*.ttf
/etc/fonts/conf.avail/42-luxi-mono.conf
/etc/fonts/conf.d/42-luxi-mono.conf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20594 |21nr|x11-font-bh-type1-1.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-bh-type1
Version: 1.0.3
Release: 3
Summary: Xorg X11 font bh-type1
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-bh-type1-%{version}.tar.bz2
# We may not modify the software!
License: Bigelow & Holmes Font License
BuildArch: noarch
BuildRequires: fontconfig
BuildRequires: x11-font-util >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1
Conflicts: xorg-x11 <= 6.9.0
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font bh-type1

%prep
%setup -q -n font-bh-type1-%{version}

%build
%configure --prefix=/usr --x-includes=%{_includedir}\
	    --x-libraries=%{_libdir} --with-fontdir=%_datadir/fonts/Type1

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/Type1/fonts.dir
rm -f %{buildroot}%_datadir/fonts/Type1/fonts.scale

%post
mkfontscale %_datadir/fonts/Type1
mkfontdir %_datadir/fonts/Type1

%postun
mkfontscale %_datadir/fonts/Type1
mkfontdir %_datadir/fonts/Type1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%_datadir/fonts/Type1/l04*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20595 |21nr|x11-font-ibm-type1-1.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-ibm-type1
Version: 1.0.3
Release: 3
Summary: Xorg X11 font ibm-type1
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-ibm-type1-%{version}.tar.bz2
# License doesn't say we can modify the software
License: IBM Courier
BuildArch: noarch
BuildRequires: fontconfig
BuildRequires: x11-font-util >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.1
Conflicts: xorg-x11 <= 6.9.0
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font ibm-type1

%prep
%setup -q -n font-ibm-type1-%{version}

%build
%configure --prefix=/usr --x-includes=%{_includedir}\
	    --x-libraries=%{_libdir} --with-fontdir=%_datadir/fonts/Type1

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/Type1/fonts.dir
rm -f %{buildroot}%_datadir/fonts/Type1/fonts.scale

%post
mkfontscale %_datadir/fonts/Type1
mkfontdir %_datadir/fonts/Type1

%postun
mkfontscale %_datadir/fonts/Type1
mkfontdir %_datadir/fonts/Type1

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%_datadir/fonts/Type1/cour*

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20596 |21nr|x11-font-misc-meltho-1.0.3-3
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Name: x11-font-misc-meltho
Version: 1.0.3
Release: 3
Summary: Xorg X11 font misc-meltho
Group: Development/X11
URL: http://xorg.freedesktop.org
Source: http://xorg.freedesktop.org/releases/individual/font/font-misc-meltho-%{version}.tar.bz2
# We may not modify the software!
License: Meltho Font License
BuildArch: noarch
BuildRequires: x11-font-util >= 1.0.0
BuildRequires: x11-util-macros >= 1.0.2
BuildRequires: fontconfig 
Requires(post): mkfontdir
Requires(postun): mkfontdir
Requires(post): mkfontscale
Requires(postun): mkfontscale

%description
Xorg X11 font misc-meltho

%prep
%setup -q -n font-misc-meltho-%{version}

%build
%configure --prefix=/usr --x-includes=%{_includedir}\
	    --x-libraries=%{_libdir} --with-fontdir=%_datadir/fonts/OTF

%make

%install
rm -rf %{buildroot}
%makeinstall_std
rm -f %{buildroot}%_datadir/fonts/OTF/fonts.dir
rm -f %{buildroot}%_datadir/fonts/OTF/fonts.scale

%post
mkfontscale %_datadir/fonts/OTF
mkfontdir %_datadir/fonts/OTF

%postun
mkfontscale %_datadir/fonts/OTF
mkfontdir %_datadir/fonts/OTF

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc COPYING
%_datadir/fonts/OTF/SyrCOM*.otf

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20597 |21nr|xnview-0.99-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	debug %nil
%define	debug_package %nil
%define	oname XnView
%global DONT_REMOVE_RPATH 1

Name:		xnview
Version:	0.99
Release:	1
Summary:	Best Photo Viewer, Image Resizer & Batch Converter
URL:		https://www.xnview.com
%ifarch		x86_64
Source0:	https://download.xnview.com/XnViewMP-linux-x64.tgz
%else
# x32 latest version is 0.88
Source0:	https://download.xnview.com/XnViewMP-linux.tgz
%endif
Source1000:	%{name}.rpmlintrc
License:	Free
Group:		Graphics
AutoReqProv:	no
Prefix:		/opt
ExcludeArch:	%{armx}

%description
XnView MP is the enhanced version of XnView Classic. 
It is a powerful picture viewer, browser and converter for
Windows, Mac and Linux. This software can read more than
500 formats change picture size, reduce picture file size
and much more!

%prep
%setup -qn %{oname}

%build
## no build

%install
export DONT_REMOVE_RPATH=1
install -d %{buildroot}/%{prefix}/%{oname}
install -d %{buildroot}/%{_datadir}/applications
cp -a . %{buildroot}/%{prefix}/%{oname}
install %{oname}.desktop %{buildroot}/%{_datadir}/applications/

%post
ln -s %{prefix}/%{oname}/%{name}.sh %{_bindir}/%{name}

%postun
rm -f %{_bindir}/%{name}

%files
%doc license.txt
%{prefix}/%{oname}
%{_datadir}/applications/%{oname}.desktop

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20598 |21nr|yamagi-quake2-7.45-1
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define	oname		quake2
%define	rogue_source	%{oname}-rogue
%define	xatrix_source	%{oname}-xatrix
%define	ctf_source		%{oname}-ctf
%define	rogue_version	2.07
%define	xatrix_version	2.08
%define	ctf_version		1.07
%define	roguedir	%{rogue_source}-%{rogue_version}
%define	xatrixdir	%{xatrix_source}-%{xatrix_version}
%define	ctfdir		%{ctf_source}-%{ctf_version}

Summary:	Yamagi Quake II is an enhanced client for id Software's Quake II
Name:		yamagi-%{oname}
Version:	7.45
Release:	1
License:	GPLv2+
Group:		Games/Arcade
Url:		http://www.yamagi.org/quake2/
Source0:	http://deponie.yamagi.org/quake2/%{oname}-%{version}.tar.xz
Source1:	http://deponie.yamagi.org/quake2/%{rogue_source}-%{rogue_version}.tar.xz
Source2:	http://deponie.yamagi.org/quake2/%{xatrix_source}-%{xatrix_version}.tar.xz
Source3:	http://deponie.yamagi.org/quake2/%{ctf_source}-%{ctf_version}.tar.xz
Source6:	q2ded.sh
Source7:	q2ded.cfg
Source8:	q2ctf.sh
Source9:	q2ctf.cfg
Source100:	yamagi-quake2.rpmlintrc
BuildRequires:	imagemagick
BuildRequires:	aalib-devel
BuildRequires:	svgalib-devel
BuildRequires:	pkgconfig(alsa)
BuildRequires:	pkgconfig(gl)
BuildRequires:	pkgconfig(glu)
BuildRequires:	pkgconfig(libcurl)
BuildRequires:	pkgconfig(libjpeg)
BuildRequires:	pkgconfig(openal)
BuildRequires:	pkgconfig(sdl2)
BuildRequires:	pkgconfig(vorbis)
BuildRequires:	pkgconfig(xrender)
BuildRequires:	pkgconfig(zlib)
# Seems to be removed in new versions
%rename	%{name}-glx

%description
Shortly after landing on an alien surface you learn that hundreds of your men
have been reduced to just a few.  Now you must fight your way through heavily
fortified military installations, lower the city's defenses and shut down
the enemy's war machine. Only then will the fate of humanity be known.

* Larger, mission-based levels:
You have a series of complex missions, what you do in one level could affect
another.  One false move and you could alert security, flood an entire
passageway, or worse.

* Superior artificial intelligence:
This time the enemy has IQs the size of their appetites.  The can evade your
attack, strategically position themselves for an ambush and hunt your ass 
down.

* In-your-face sound and graphics
hear distant combat explosions and rockets whizzing past your head.  And with
a compatible 3-D graphics accelerator, experience smoother 16-bit graphics and
real-time lighting effects.

* Wicked multiplayer capabilities
More than 32 players, friends or foes, can do at it in a bloody deathmatch via
LAN and over the internet.

You need PAK files for Quake II to run this game: install them 
in %{_gamesdatadir}/quake2.

%files
%doc LICENSE CHANGELOG README.md
%attr(755,root,root) %{_gamesbindir}/%{oname}
%{_gamesbindir}/%{oname}.bin
%{_gamesbindir}/ref_gl1.so
%{_gamesbindir}/ref_gl3.so
%dir %{_libdir}/games/%{oname}
%{_libdir}/games/%{oname}/baseq2
%{_datadir}/applications/%{oname}.desktop
%{_iconsdir}/hicolor/scalable/apps/%{oname}.svg
%{_iconsdir}/hicolor/*x*/apps/%{oname}.png
%{_gamesdatadir}/%{oname}/baseq2

#----------------------------------------------------------------------------

%package ctf
Summary:	Quake II Capture the Flag for Linux
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
Requires:	%{name}-server = %{EVRD}
Requires(post,preun):	rpm-helper

%description ctf
Quake II Capture The Flag (Q2CTF) is a multiplayer addon for Quake2 that 
features a simple set of rules for team based play. It features eight unique 
maps and special powerups to enhance and make the gameplay more exciting.

Q2CTF requires the full retail version of Quake II installed in order to 
play. Once installed, you simple need to connect to a Quake2 game server 
that is running the Q2CTF addon.

-- You need PAK files for Quake II to run this game --

%files ctf
%doc LICENSE
%attr(755,root,root) %{_initrddir}/q2ctf
%dir %{_sysconfdir}/%{oname}/ctf
%config(noreplace) %{_sysconfdir}/%{oname}/ctf/server.cfg
%{_libdir}/games/%{oname}/ctf
%{_gamesdatadir}/%{oname}/ctf
%{_datadir}/applications/%{oname}-ctf.desktop

%post ctf
%_post_service q2ctf

%preun ctf
%_preun_service q2ctf

#----------------------------------------------------------------------------

%package xatrix
Summary:	Quake II Mission Pack #1: "The Reckoning" for Linux
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}

%description xatrix
This archive contains Mission Pack "The Reckoning" for Quake II.
The Reckoning is sure to get your heart pumping...well, if you can avoid 
getting gibbed by the Strogg. Check out just some of the features below that 
will give you the cardiac workout you need!

* 18 arduous levels to conquer & 7 brutal deathmatch exclusive levels:
Dive into a series of mission-based campaigns and ransack your way through 
three all-new hazardous episodes. Experience bioluminescent life forms, 
stalagmites and stalactites and other breathtaking environments. 

* Fresh foes to defeat:
Gekks are lighting-fast creatures that will hunt you down, leaping from the 
shadows to claw or bite. Though innocent looking, the Repair Bot has the 
ability to awaken dead Strogg from eternal sleep.

* Added weapons to wield:
The Phalanx Particle Canon emits a pulsing stream of deadly energy into 
unsuspecting foes.

The Trap sucks nearby enemies inside and turns them into food cubes for 
player consumption.

The Ion Ripper fires a blast of glowing boomerangs capable of ricocheting 
off of walls to track targets.

-- You need PAK files for Quake II to run this game --

%files xatrix
%doc LICENSE
%{_libdir}/games/%{oname}/xatrix
%{_gamesdatadir}/%{oname}/xatrix
%{_datadir}/applications/%{oname}-xatrix.desktop

#----------------------------------------------------------------------------

%package rogue
Summary:	Quake II Mission Pack #2: "Ground Zero" for Linux
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}

%description rogue
This archive contains Mission Pack "Ground Zero" for Quake II.

The Alien Assault Continues.
Take out the Big Gun, sounded simple enough, except the Stroggs were waiting. 
You and a few Marines like you, are the lucky ones. The Gravity Well, the 
Stroggs' newest weapon in its arsenal against mankind, is operational. You've 
made it down in one piece and are still able to contact the fleet. With the 
fleet trapped around Stroggos, five percent of ground forces surviving, and 
that number dwindling by the second, your orders have changed: Free your 
comrades in orbit. Destroy the Gravity Well!

New Enemies:
Get ready to face the toughest horde of Stroggs, straight from the bio-vats. 
The Stalker, Turrets, Daedalus, Medic Commander, Carrier and the Queen Bitch 
herself, the Black Widow.

14 Entirely new levels and 10 new deathmatch levels:
Brand new real estate with the same dynamic sense of reality and dramatic 
visuals as Quake II. These new environments will challenge even the biggest 
Quake II aficionado.

New Power-ups:
Tag 'em and Bag 'em. Deathmatch specific power-ups: the Vengeance Sphere, 
Hunter Sphere, and Anti-matter Bomb. With everything that we've cooked up for 
you here, you're sure to annihilate anyone or anything foolish enough to 
call you foe.

New Weapons:
The Chainsaw, ETF Rifle, and Plasma Beam. If you can't get the job done with 
these babies, it's time to go back to Basic.

Accept no substitutes! Official, id-authorized mission packs outpace the rest!

-- You need PAK files for Quake II to run this game --

%files rogue
%doc LICENSE
%{_libdir}/games/quake2/rogue
%{_gamesdatadir}/quake2/rogue
%{_datadir}/applications/%{oname}-rogue.desktop

#----------------------------------------------------------------------------

%package server
Summary:	Quake II server
Group:		Games/Arcade
Requires:	%{name} = %{EVRD}
Requires(post,preun):	rpm-helper

%description server
This archive contains the Quake II dedicated server.

-- You need PAK files for Quake II to run this game --

%files server
%doc LICENSE
%attr(755,root,root) %{_initrddir}/q2ded
%attr(755,root,root) %{_gamesbindir}/q2ded
%dir %{_sysconfdir}/%{oname}
%dir %{_sysconfdir}/%{oname}/baseq2
%config(noreplace) %{_sysconfdir}/%{oname}/baseq2/server.cfg
%{_gamesbindir}/q2ded.bin

%post server
%_post_service q2ded

%preun server
%_preun_service q2ded

#----------------------------------------------------------------------------

%prep
%setup -q -a1 -a2 -a3 -n %{oname}-%{version}

# Fix perms
find . -name "*.c" -o -name "*.h"| xargs chmod -x


%build
%setup_compile_flags
%ifarch %{ix86} x86_64
export OPTFLAGS="%{optflags} -ffast-math -funroll-loops -falign-loops=2 -falign-jumps=2 -falign-functions=2 -fno-strict-aliasing"
%else
export OPTFLAGS="%{optflags} -ffast-math -funroll-loops -fomit-frame-pointer -fexpensive-optimizations"
%endif

%define options WITH_SYSTEMWIDE=yes WITH_SYSTEMDIR=%{_gamesdatadir}/quake2/ WITH_RPATH=no ARCH=%{_arch}
%make %{options}
%make %{options} -C %{roguedir}
%make %{options} -C %{xatrixdir}
%make %{options} -C %{ctfdir}


%install
# Create needed dirs
install -d %{buildroot}%{_sysconfdir}/%{oname}/{baseq2,ctf,rogue,xatrix}
install -d %{buildroot}%{_gamesbindir}
install -d %{buildroot}%{_gamesdatadir}/%{oname}/{baseq2,ctf,rogue,xatrix}
install -d %{buildroot}%{_libdir}/games/%{oname}/{baseq2,ctf,rogue,xatrix}

# Install files
rel="release"
cp $rel/%{oname} %{buildroot}%{_gamesbindir}/%{oname}.bin
cp $rel/q2ded %{buildroot}%{_gamesbindir}/q2ded.bin
cp $rel/ref_gl1.so %{buildroot}%{_gamesbindir}/ref_gl1.so
cp $rel/ref_gl3.so %{buildroot}%{_gamesbindir}/ref_gl3.so
cp $rel/baseq2/game.so %{buildroot}%{_libdir}/games/%{oname}/baseq2/

install -m644 %{SOURCE7} -D %{buildroot}%{_sysconfdir}/%{oname}/baseq2/server.cfg
install -m644 %{SOURCE9} -D %{buildroot}%{_sysconfdir}/%{oname}/ctf/server.cfg

install -m755 %{SOURCE6} -D %{buildroot}%{_initrddir}/q2ded
install -m755 %{SOURCE8} -D %{buildroot}%{_initrddir}/q2ctf

# Fix paths
for FILE in q2ded q2ctf ; do
# Edit path to q2ded in initscript
	sed -i -e "s|daemon[ ].*\${NAME}|daemon %{_gamesbindir}/\${NAME}|" %{buildroot}%{_initrddir}/${FILE}
# Edit path to %%{_sysconfdir} in initscript
	sed -i -e "s|^Q2_CONFIGDIR=.*|Q2_CONFIGDIR=\"%{_sysconfdir}/%{oname}\"|" %{buildroot}%{_initrddir}/${FILE}
done

# Create wrapper scripts:
# 1. Main script
cat << EOF > %{buildroot}%{_gamesbindir}/%{oname}
#!/bin/sh

%{_gamesbindir}/%{oname}.bin +set basedir %{_libdir}/games/%{oname} \$*

exit 0
EOF
chmod +x %{buildroot}%{_gamesbindir}/%{oname}
# 2. Editor script
cat << EOF > %{buildroot}%{_gamesbindir}/q2ded
#!/bin/sh

%{_gamesbindir}/%{oname}.bin +set basedir %{_libdir}/games/%{oname} \$*

exit 0
EOF
chmod +x %{buildroot}%{_gamesbindir}/q2ded

# Install the provided icons...
install -D -m 0644 stuff/icon/Quake2.svg %{buildroot}%{_iconsdir}/hicolor/scalable/apps/%{oname}.svg
install -D -m 0644 stuff/icon/Quake2.png %{buildroot}%{_iconsdir}/hicolor/512x512/apps/%{oname}.png
# ...and resize it to have more sizes
for i in 16x16 22x22 32x32 48x48 64x64 256x256; do
	mkdir -p %{buildroot}%{_iconsdir}/hicolor/$i/apps
	convert stuff/icon/Quake2.png -resize $i %{buildroot}%{_iconsdir}/hicolor/$i/apps/%{oname}.png
done

# Provide menu entries
mkdir -p %{buildroot}%{_datadir}/applications

cat << EOF > %{buildroot}%{_datadir}/applications/%{oname}.desktop
[Desktop Entry]
Name=Quake II
Comment=First-person shooter
Exec=%{oname}
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=false
Categories=Game;ArcadeGame;
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/%{oname}-xatrix.desktop
[Desktop Entry]
Name=Quake II: The Reckoning
Comment=First-person shooter
Exec=%{oname} +set game xatrix
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/%{oname}-rogue.desktop
[Desktop Entry]
Name=Quake II: Ground Zero
Comment=First-person shooter
Exec=%{oname} +set game rogue
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

cat << EOF > %{buildroot}%{_datadir}/applications/%{oname}-ctf.desktop
[Desktop Entry]
Name=Quake II: Capture The Flag
Comment=First-person shooter
Exec=%{oname} +set game ctf
Icon=%{oname}
Terminal=false
Type=Application
StartupNotify=true
Categories=Game;ArcadeGame;
EOF

# Create links from basedir to configdir
ln -sf %{_sysconfdir}/%{oname}/baseq2/server.cfg %{buildroot}%{_libdir}/games/%{oname}/baseq2/server.cfg
for FILE in pak0.pak pak1.pak pak2.pak maxpak.pak ; do
    ln -sf %{_gamesdatadir}/%{oname}/baseq2/${FILE} %{buildroot}%{_libdir}/games/%{oname}/baseq2/${FILE}
done
ln -sfn %{_gamesdatadir}/%{oname}/baseq2/video %{buildroot}%{_libdir}/games/%{oname}/baseq2/video
ln -sf %{_sysconfdir}/%{oname}/ctf/server.cfg %{buildroot}%{_libdir}/games/%{oname}/ctf/server.cfg
ln -sf %{_gamesdatadir}/%{oname}/ctf/pak0.pak %{buildroot}%{_libdir}/games/%{oname}/ctf/pak0.pak
ln -sf %{_gamesdatadir}/%{oname}/rogue/pak0.pak %{buildroot}%{_libdir}/games/%{oname}/rogue/pak0.pak
ln -sf %{_gamesdatadir}/%{oname}/xatrix/pak0.pak %{buildroot}%{_libdir}/games/%{oname}/xatrix/pak0.pak


@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20599 |21nr|yandex-browser-24.10.4.815-2
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%global __requires_exclude ^lib(ffmpeg|EGL|GLES|vk_swiftshader|vulkan|abt-bindings|flutter_engine|qt5_shim|qt6_shim|textclassifier)
%global __provides_exclude ^lib(ffmpeg|EGL|GLES|vk_swiftshader|vulkan|abt-bindings|flutter_engine|qt5_shim|qt6_shim|textclassifier)

Summary:	Yandex Browser
Name:		yandex-browser
Version:	24.10.4.815
Release:	2
License:	Multiple, see http://browser.yandex.ru/
Group:		Networking/WWW
Url:		http://browser.yandex.ru/
# https://disk.yandex.ru/d/zaA7S3BpROQrBg - manually download for disk.yandex.ru bug
Source0:	%{name}-stable-%{version}-1.x86_64.rpm
# now ffmpeg-plugin-browser not needed (developers yandex browser say)
Source100:	%{name}.rpmlintrc
Requires:	ca-certificates
Requires:	gstreamer1.0-faad
Requires:	gstreamer1.0-libav
Requires:	gstreamer1.0-plugins-bad
Requires:	gstreamer1.0-plugins-base
Requires:	gstreamer1.0-plugins-good
Requires:	wget
Requires:	xdg-utils
ExclusiveArch:	%{x86_64}

%description
The web browser from Yandex
Yandex Browser is a browser that combines a minimal design with sophisticated technology to make the web faster, safer, and easier.

%files
%{_bindir}/%{name}-stable
%{_datadir}/appdata/%{name}.appdata.xml
%{_datadir}/applications/%{name}.desktop
%{_datadir}/gnome-control-center/default-apps/%{name}.xml
%dir /opt/yandex/
%{_mandir}/man1/yandex*
/opt/yandex/browser
%{_sysconfdir}/xdg/autostart/%{name}_user_setup.desktop
#%{_datadir}/kf5/plasma/shells/org.kde.plasma.desktop/contents/updates/add_yandex-browser_to_kde_panel.js

#------------------------------------------------------------------

%prep

%build

%install
pushd %{buildroot}
rpm2cpio %{SOURCE0} | cpio -idmv
popd

rm -rf %{buildroot}/usr/lib/.build-id
rm -rf %{buildroot}/%{_datadir}/lintian

# Remove crap that breaks starting KDE Plasma!!!
# https://bugzilla.rosalinux.ru/show_bug.cgi?id=14761
rm -rfv %{buildroot}%{_datadir}/kf5

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20600 |21nr|yandex-browser-install-1.0-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Summary:	Download and install YandexBrowser
Name:		yandex-browser-install
Version:	1.0
Release:	6
License:	Proprietary
Group:		Networking/WWW
Url:		https://browser.yandex.ru
Source0:	yandex-browser-install.desktop
Source1:	yandex-browser-install.png
Source2:	yandex-browser-install
ExclusiveArch:	x86_64

%description
This is an installer for Yandex.Browser.

%files
%{_bindir}/%{name}
%{_datadir}/applications/%{name}.desktop
%{_datadir}/pixmaps/%{name}.png

#----------------------------------------------------------------------------

%prep

%build
# Nothing to build yet

%install
# desktop file
mkdir -p %{buildroot}%{_datadir}/applications
install -m644 %{SOURCE0} %{buildroot}%{_datadir}/applications/

# icon file
mkdir -p %{buildroot}%{_datadir}/pixmaps
install -m644 %{SOURCE1} %{buildroot}%{_datadir}/pixmaps/

# install script file
mkdir -p %{buildroot}%{_bindir}/
install -m755 %{SOURCE2} %{buildroot}%{_bindir}/

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@ 20601 |21nr|zd1201-firmware-0.14-6
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
%define module zd1201
%define name %{module}-firmware
%define version 0.14
%define distname %{module}-%{version}-fw
%define release 6

Summary: Firmware files for the ZD1201 chip
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://prdownloads.sourceforge.net/linux-lc100020/%{distname}.tar.bz2
License: As-Is
Group: System/Kernel and hardware
Url: http://linux-lc100020.sourceforge.net/
BuildArch: noarch

%description
This package contains the firmware needed for the zd1201 devices to work.

This package contains two files, zd1201.fw is the firmware file for
using the device as a normal 802.11b client. The file zd1201-ap.fw is
used to put the device in access point mode.

%prep
%setup -q -n %{distname}

%build

%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT/lib/firmware
install -m644 %{module}*.fw $RPM_BUILD_ROOT/lib/firmware/

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc README
/lib/firmware/%{module}*.fw
